Skip to content

Commit

Permalink
Merge pull request #38 from dubinc/speakeasy-sdk-regen-1728778847
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.8.0
  • Loading branch information
devkiran authored Oct 13, 2024
2 parents 6ec26d0 + cb032b2 commit 28b869e
Show file tree
Hide file tree
Showing 27 changed files with 305 additions and 158 deletions.
13 changes: 8 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 43187d3e-7c3c-4c11-b5d4-4b2334fb6d96
management:
docChecksum: 8620b0f24a0133906ad7b91d73cc1651
docChecksum: a31838ebdf42ec2dd03d62aa6a2b788e
docVersion: 0.0.1
speakeasyVersion: 1.410.0
generationVersion: 2.434.1
releaseVersion: 0.7.0
configChecksum: 007f5a8816c52013295fe822a0183d6d
speakeasyVersion: 1.418.1
generationVersion: 2.438.3
releaseVersion: 0.8.0
configChecksum: 1a1e970ef8164057282fa6582c0855fc
repoURL: https://github.com/dubinc/dub-php.git
installationURL: https://github.com/dubinc/dub-php
published: true
Expand All @@ -22,6 +22,7 @@ features:
globalSecurityFlattening: 0.1.1
globalServerURLs: 2.82.1
includes: 2.81.1
methodArguments: 0.1.0
nameOverrides: 2.81.2
nullables: 1.0.0
responseFormat: 0.1.0
Expand Down Expand Up @@ -442,6 +443,8 @@ generatedFiles:
- src/SDKConfiguration.php
- src/Tags.php
- src/Track.php
- src/Utils/BigDecimalHandler.php
- src/Utils/BigIntHandler.php
- src/Utils/DateHandler.php
- src/Utils/DateTimeHandler.php
- src/Utils/DefaultRequest.php
Expand Down
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
php:
version: 0.7.0
version: 0.8.0
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: true
imports:
Expand All @@ -28,6 +28,7 @@ php:
enabled: false
svcName: openapi
maxMethodParams: 4
methodArguments: infer-optional-args
namespace: Dub
outputModelSuffix: output
packageName: dub/dub-php
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.410.0
speakeasyVersion: 1.418.1
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:1d21d889d6d503cdb0b4c5ec4743e423f9244c7e26d083a87e9e43d427a2a84b
sourceBlobDigest: sha256:bb86fada285bc8f668248f0458c4c2b992a67b17c3e59d839c9d4e5f15850b8a
sourceRevisionDigest: sha256:978cca65ec3e69f5d78ffc261300d951cc69ecf4a916b5c28586ec7d51c1bba8
sourceBlobDigest: sha256:669f003487611af850e92287f4eaaf8d7ec1c94e336922f2c00a6522f36893e6
tags:
- latest
- main
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:1d21d889d6d503cdb0b4c5ec4743e423f9244c7e26d083a87e9e43d427a2a84b
sourceBlobDigest: sha256:bb86fada285bc8f668248f0458c4c2b992a67b17c3e59d839c9d4e5f15850b8a
sourceRevisionDigest: sha256:978cca65ec3e69f5d78ffc261300d951cc69ecf4a916b5c28586ec7d51c1bba8
sourceBlobDigest: sha256:669f003487611af850e92287f4eaaf8d7ec1c94e336922f2c00a6522f36893e6
codeSamplesNamespace: code-samples-php-my-first-target
codeSamplesRevisionDigest: sha256:52966a6ed9ed3e173e97022eb3f04e60e551372ddd58fe2cbaf96225dffcc4dc
codeSamplesRevisionDigest: sha256:18086347a54be7821c45400d515b694586ef99408fa8847f30cc8cca62806980
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,14 @@ Based on:
### Generated
- [php v0.7.0] .
### Releases
- [Composer v0.7.0] https://packagist.org/packages/dub/dub-php#v0.7.0 - .
- [Composer v0.7.0] https://packagist.org/packages/dub/dub-php#v0.7.0 - .

## 2024-10-13 00:20:42
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.418.1 (2.438.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [php v0.8.0] .
### Releases
- [Composer v0.8.0] https://packagist.org/packages/dub/dub-php#v0.8.0 - .
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"guzzlehttp/guzzle": "^7.0",
"speakeasy/serializer": "^3.40.0",
"brick/date-time": "^0.7.0",
"phpdocumentor/type-resolver": "^1.8"
"phpdocumentor/type-resolver": "^1.8",
"brick/math": "^0.12.1"
},
"require-dev": {
"laravel/pint": "^1.18.1",
Expand Down
7 changes: 3 additions & 4 deletions src/Analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ public function __construct(SDKConfiguration $sdkConfig)
*
* Retrieve analytics for a link, a domain, or the authenticated workspace. The response type depends on the `event` and `type` query parameters.
*
* @param Operations\RetrieveAnalyticsRequest $request
* @param ?Operations\RetrieveAnalyticsRequest $request
* @return Operations\RetrieveAnalyticsResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function retrieve(
?Operations\RetrieveAnalyticsRequest $request,
): Operations\RetrieveAnalyticsResponse {
public function retrieve(?Operations\RetrieveAnalyticsRequest $request = null): Operations\RetrieveAnalyticsResponse
{
$baseUrl = $this->sdkConfiguration->getServerUrl();
$url = Utils\Utils::generateUrl($baseUrl, '/analytics');
$options = ['http_errors' => false];
Expand Down
26 changes: 9 additions & 17 deletions src/Domains.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ public function __construct(SDKConfiguration $sdkConfig)
*
* Create a domain for the authenticated workspace.
*
* @param Operations\CreateDomainRequestBody $request
* @param ?Operations\CreateDomainRequestBody $request
* @return Operations\CreateDomainResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function create(
?Operations\CreateDomainRequestBody $request,
): Operations\CreateDomainResponse {
public function create(?Operations\CreateDomainRequestBody $request = null): Operations\CreateDomainResponse
{
$baseUrl = $this->sdkConfiguration->getServerUrl();
$url = Utils\Utils::generateUrl($baseUrl, '/domains');
$options = ['http_errors' => false];
Expand Down Expand Up @@ -155,12 +154,8 @@ public function create(
* @return Operations\ListDomainsResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function list(
?bool $archived = null,
?string $search = null,
?float $page = null,
?float $pageSize = null,
): Operations\ListDomainsResponse {
public function list(?bool $archived = null, ?string $search = null, ?float $page = null, ?float $pageSize = null): Operations\ListDomainsResponse
{
$request = new Operations\ListDomainsRequest(
archived: $archived,
search: $search,
Expand Down Expand Up @@ -283,10 +278,8 @@ public function list(
* @return Operations\UpdateDomainResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function update(
string $slug,
?Operations\UpdateDomainRequestBody $requestBody = null,
): Operations\UpdateDomainResponse {
public function update(string $slug, ?Operations\UpdateDomainRequestBody $requestBody = null): Operations\UpdateDomainResponse
{
$request = new Operations\UpdateDomainRequest(
slug: $slug,
requestBody: $requestBody,
Expand Down Expand Up @@ -409,9 +402,8 @@ public function update(
* @return Operations\DeleteDomainResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function delete(
string $slug,
): Operations\DeleteDomainResponse {
public function delete(string $slug): Operations\DeleteDomainResponse
{
$request = new Operations\DeleteDomainRequest(
slug: $slug,
);
Expand Down
7 changes: 3 additions & 4 deletions src/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ public function __construct(SDKConfiguration $sdkConfig)
*
* Retrieve a paginated list of events for the authenticated workspace.
*
* @param Operations\ListEventsRequest $request
* @param ?Operations\ListEventsRequest $request
* @return Operations\ListEventsResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function list(
?Operations\ListEventsRequest $request,
): Operations\ListEventsResponse {
public function list(?Operations\ListEventsRequest $request = null): Operations\ListEventsResponse
{
$baseUrl = $this->sdkConfiguration->getServerUrl();
$url = Utils\Utils::generateUrl($baseUrl, '/events');
$options = ['http_errors' => false];
Expand Down
66 changes: 26 additions & 40 deletions src/Links.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ public function __construct(SDKConfiguration $sdkConfig)
*
* Create a new link for the authenticated workspace.
*
* @param Operations\CreateLinkRequestBody $request
* @param ?Operations\CreateLinkRequestBody $request
* @return Operations\CreateLinkResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function create(
?Operations\CreateLinkRequestBody $request,
): Operations\CreateLinkResponse {
public function create(?Operations\CreateLinkRequestBody $request = null): Operations\CreateLinkResponse
{
$baseUrl = $this->sdkConfiguration->getServerUrl();
$url = Utils\Utils::generateUrl($baseUrl, '/links');
$options = ['http_errors' => false];
Expand Down Expand Up @@ -148,13 +147,12 @@ public function create(
*
* Retrieve a paginated list of links for the authenticated workspace.
*
* @param Operations\GetLinksRequest $request
* @param ?Operations\GetLinksRequest $request
* @return Operations\GetLinksResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function list(
?Operations\GetLinksRequest $request,
): Operations\GetLinksResponse {
public function list(?Operations\GetLinksRequest $request = null): Operations\GetLinksResponse
{
$baseUrl = $this->sdkConfiguration->getServerUrl();
$url = Utils\Utils::generateUrl($baseUrl, '/links');
$options = ['http_errors' => false];
Expand Down Expand Up @@ -266,13 +264,12 @@ public function list(
*
* Retrieve the number of links for the authenticated workspace.
*
* @param Operations\GetLinksCountRequest $request
* @param ?Operations\GetLinksCountRequest $request
* @return Operations\GetLinksCountResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function count(
?Operations\GetLinksCountRequest $request,
): Operations\GetLinksCountResponse {
public function count(?Operations\GetLinksCountRequest $request = null): Operations\GetLinksCountResponse
{
$baseUrl = $this->sdkConfiguration->getServerUrl();
$url = Utils\Utils::generateUrl($baseUrl, '/links/count');
$options = ['http_errors' => false];
Expand Down Expand Up @@ -391,12 +388,8 @@ public function count(
* @return Operations\GetLinkInfoResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function get(
?string $domain = null,
?string $key = null,
?string $linkId = null,
?string $externalId = null,
): Operations\GetLinkInfoResponse {
public function get(?string $domain = null, ?string $key = null, ?string $linkId = null, ?string $externalId = null): Operations\GetLinkInfoResponse
{
$request = new Operations\GetLinkInfoRequest(
domain: $domain,
key: $key,
Expand Down Expand Up @@ -519,10 +512,8 @@ public function get(
* @return Operations\UpdateLinkResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function update(
string $linkId,
?Operations\UpdateLinkRequestBody $requestBody = null,
): Operations\UpdateLinkResponse {
public function update(string $linkId, ?Operations\UpdateLinkRequestBody $requestBody = null): Operations\UpdateLinkResponse
{
$request = new Operations\UpdateLinkRequest(
linkId: $linkId,
requestBody: $requestBody,
Expand Down Expand Up @@ -645,9 +636,8 @@ public function update(
* @return Operations\DeleteLinkResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function delete(
string $linkId,
): Operations\DeleteLinkResponse {
public function delete(string $linkId): Operations\DeleteLinkResponse
{
$request = new Operations\DeleteLinkRequest(
linkId: $linkId,
);
Expand Down Expand Up @@ -761,13 +751,12 @@ public function delete(
*
* Bulk create up to 100 links for the authenticated workspace.
*
* @param array<Operations\RequestBody> $request
* @param ?array<Operations\RequestBody> $request
* @return Operations\BulkCreateLinksResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function createMany(
?array $request,
): Operations\BulkCreateLinksResponse {
public function createMany(?array $request = null): Operations\BulkCreateLinksResponse
{
$baseUrl = $this->sdkConfiguration->getServerUrl();
$url = Utils\Utils::generateUrl($baseUrl, '/links/bulk');
$options = ['http_errors' => false];
Expand Down Expand Up @@ -882,13 +871,12 @@ public function createMany(
*
* Bulk update up to 100 links with the same data for the authenticated workspace.
*
* @param Operations\BulkUpdateLinksRequestBody $request
* @param ?Operations\BulkUpdateLinksRequestBody $request
* @return Operations\BulkUpdateLinksResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function updateMany(
?Operations\BulkUpdateLinksRequestBody $request,
): Operations\BulkUpdateLinksResponse {
public function updateMany(?Operations\BulkUpdateLinksRequestBody $request = null): Operations\BulkUpdateLinksResponse
{
$baseUrl = $this->sdkConfiguration->getServerUrl();
$url = Utils\Utils::generateUrl($baseUrl, '/links/bulk');
$options = ['http_errors' => false];
Expand Down Expand Up @@ -1007,9 +995,8 @@ public function updateMany(
* @return Operations\BulkDeleteLinksResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function deleteMany(
array $linkIds,
): Operations\BulkDeleteLinksResponse {
public function deleteMany(array $linkIds): Operations\BulkDeleteLinksResponse
{
$request = new Operations\BulkDeleteLinksRequest(
linkIds: $linkIds,
);
Expand Down Expand Up @@ -1124,13 +1111,12 @@ public function deleteMany(
*
* Upsert a link for the authenticated workspace by its URL. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created.
*
* @param Operations\UpsertLinkRequestBody $request
* @param ?Operations\UpsertLinkRequestBody $request
* @return Operations\UpsertLinkResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function upsert(
?Operations\UpsertLinkRequestBody $request,
): Operations\UpsertLinkResponse {
public function upsert(?Operations\UpsertLinkRequestBody $request = null): Operations\UpsertLinkResponse
{
$baseUrl = $this->sdkConfiguration->getServerUrl();
$url = Utils\Utils::generateUrl($baseUrl, '/links/upsert');
$options = ['http_errors' => false];
Expand Down
5 changes: 2 additions & 3 deletions src/Metatags.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public function __construct(SDKConfiguration $sdkConfig)
* @return Operations\GetMetatagsResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function get(
string $url,
): Operations\GetMetatagsResponse {
public function get(string $url): Operations\GetMetatagsResponse
{
$request = new Operations\GetMetatagsRequest(
url: $url,
);
Expand Down
5 changes: 2 additions & 3 deletions src/QRCodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public function __construct(SDKConfiguration $sdkConfig)
* @return Operations\GetQRCodeResponse
* @throws \Dub\Models\Errors\SDKException
*/
public function get(
?Operations\GetQRCodeRequest $request,
): Operations\GetQRCodeResponse {
public function get(Operations\GetQRCodeRequest $request): Operations\GetQRCodeResponse
{
$baseUrl = $this->sdkConfiguration->getServerUrl();
$url = Utils\Utils::generateUrl($baseUrl, '/qr');
$options = ['http_errors' => false];
Expand Down
6 changes: 3 additions & 3 deletions src/SDKConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ class SDKConfiguration

public string $openapiDocVersion = '0.0.1';

public string $sdkVersion = '0.7.0';
public string $sdkVersion = '0.8.0';

public string $genVersion = '2.434.1';
public string $genVersion = '2.438.3';

public string $userAgent = 'speakeasy-sdk/php 0.7.0 2.434.1 0.0.1 dub/dub-php';
public string $userAgent = 'speakeasy-sdk/php 0.8.0 2.438.3 0.0.1 dub/dub-php';

public function getServerUrl(): string
{
Expand Down
Loading

0 comments on commit 28b869e

Please sign in to comment.