Skip to content

Commit

Permalink
Merge pull request #78 from dubinc/speakeasy-sdk-regen-1739146827
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.11.25
  • Loading branch information
devkiran authored Feb 12, 2025
2 parents ddb1466 + a32605d commit 6e42d5d
Show file tree
Hide file tree
Showing 126 changed files with 3,630 additions and 322 deletions.
221 changes: 199 additions & 22 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
php:
version: 0.11.24
version: 0.11.25
additionalDependencies:
autoload: {}
autoload-dev: {}
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.487.0
speakeasyVersion: 1.488.0
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:9e3263ee932aa1080b3fec6a6b12747e9958efae38e87e36373ce7be2d8a7a04
sourceBlobDigest: sha256:302af5af57801c13e8eae76439ce161f3027ad63927e360e1152ba4f786f7d91
sourceRevisionDigest: sha256:e4adea36821d8c2383095d5eedeaa4b74c31ba1132a6e1ef66dd90fea2274aca
sourceBlobDigest: sha256:cefa494187073dd8bb1eebde5639c67f6f8ede53421ce7fd329ea379e75153ca
tags:
- latest
- speakeasy-sdk-regen-1738887580
- speakeasy-sdk-regen-1739146827
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:9e3263ee932aa1080b3fec6a6b12747e9958efae38e87e36373ce7be2d8a7a04
sourceBlobDigest: sha256:302af5af57801c13e8eae76439ce161f3027ad63927e360e1152ba4f786f7d91
sourceRevisionDigest: sha256:e4adea36821d8c2383095d5eedeaa4b74c31ba1132a6e1ef66dd90fea2274aca
sourceBlobDigest: sha256:cefa494187073dd8bb1eebde5639c67f6f8ede53421ce7fd329ea379e75153ca
codeSamplesNamespace: code-samples-php-my-first-target
codeSamplesRevisionDigest: sha256:a3f91f4e23b90a8f60d69358e0d343bba6f4d82c0944e889274f7b8c53bc5e56
codeSamplesRevisionDigest: sha256:c7f8713451be5d22cc878a720d41fa3ef592c3af005db2a20967b8effaa8328c
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@ if ($response->responseBodies !== null) {

* [list](docs/sdks/events/README.md#list) - Retrieve a list of events

### [folders](docs/sdks/folders/README.md)

* [create](docs/sdks/folders/README.md#create) - Create a new folder
* [delete](docs/sdks/folders/README.md#delete) - Delete a folder
* [list](docs/sdks/folders/README.md#list) - Retrieve a list of folders
* [update](docs/sdks/folders/README.md#update) - Update a folder

### [links](docs/sdks/links/README.md)

* [createMany](docs/sdks/links/README.md#createmany) - Bulk create links
Expand All @@ -212,6 +219,7 @@ if ($response->responseBodies !== null) {

* [create](docs/sdks/partners/README.md#create) - Create a new partner
* [createLink](docs/sdks/partners/README.md#createlink) - Create a link for a partner
* [analytics](docs/sdks/partners/README.md#analytics) - Retrieve analytics for a partner
* [upsertLink](docs/sdks/partners/README.md#upsertlink) - Upsert a link for a partner

### [qrCodes](docs/sdks/qrcodes/README.md)
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -690,4 +690,14 @@ Based on:
### Generated
- [php v0.11.24] .
### Releases
- [Composer v0.11.24] https://packagist.org/packages/dub/dub-php#v0.11.24 - .
- [Composer v0.11.24] https://packagist.org/packages/dub/dub-php#v0.11.24 - .

## 2025-02-12 00:19:18
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.488.0 (2.506.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [php v0.11.25] .
### Releases
- [Composer v0.11.25] https://packagist.org/packages/dub/dub-php#v0.11.25 - .
34 changes: 32 additions & 2 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,30 @@ actions:
- "lang": "php"
"label": "listEvents"
"source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$request = new Operations\\ListEventsRequest(\n city: 'New York',\n device: 'Desktop',\n browser: 'Chrome',\n os: 'Windows',\n referer: 'google.com',\n refererUrl: 'https://dub.co/blog',\n);\n\n$response = $sdk->events->list(\n request: $request\n);\n\nif ($response->oneOf !== null) {\n // handle response\n}"
- target: $["paths"]["/folders"]["get"]
update:
"x-codeSamples":
- "lang": "php"
"label": "listFolders"
"source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n\n\n$response = $sdk->folders->list(\n search: '<value>'\n);\n\nif ($response->folderSchemas !== null) {\n // handle response\n}"
- target: $["paths"]["/folders"]["post"]
update:
"x-codeSamples":
- "lang": "php"
"label": "createFolder"
"source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$request = new Operations\\CreateFolderRequestBody(\n name: '<value>',\n);\n\n$response = $sdk->folders->create(\n request: $request\n);\n\nif ($response->folderSchema !== null) {\n // handle response\n}"
- target: $["paths"]["/folders/{id}"]["delete"]
update:
"x-codeSamples":
- "lang": "php"
"label": "deleteFolder"
"source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n\n\n$response = $sdk->folders->delete(\n id: '<id>'\n);\n\nif ($response->object !== null) {\n // handle response\n}"
- target: $["paths"]["/folders/{id}"]["patch"]
update:
"x-codeSamples":
- "lang": "php"
"label": "updateFolder"
"source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$requestBody = new Operations\\UpdateFolderRequestBody();\n\n$response = $sdk->folders->update(\n id: '<id>',\n requestBody: $requestBody\n\n);\n\nif ($response->folderSchema !== null) {\n // handle response\n}"
- target: $["paths"]["/links"]["get"]
update:
"x-codeSamples":
Expand Down Expand Up @@ -135,18 +159,24 @@ actions:
- "lang": "php"
"label": "createPartner"
"source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$request = new Operations\\CreatePartnerRequestBody(\n programId: '<id>',\n name: '<value>',\n email: '[email protected]',\n username: 'Aaliyah_Borer',\n linkProps: new Operations\\LinkProps(\n externalId: '123456',\n tagIds: [\n 'clux0rgak00011...',\n ],\n ),\n);\n\n$response = $sdk->partners->create(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}"
- target: $["paths"]["/partners/analytics"]["get"]
update:
"x-codeSamples":
- "lang": "php"
"label": "retrievePartnerAnalytics"
"source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$request = new Operations\\RetrievePartnerAnalyticsRequest(\n programId: '<id>',\n);\n\n$response = $sdk->partners->analytics(\n request: $request\n);\n\nif ($response->oneOf !== null) {\n // handle response\n}"
- target: $["paths"]["/partners/links"]["post"]
update:
"x-codeSamples":
- "lang": "php"
"label": "createPartnerLink"
"source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$request = new Operations\\CreatePartnerLinkRequestBody(\n programId: '<id>',\n url: 'https://necessary-brief.name',\n linkProps: new Operations\\CreatePartnerLinkLinkProps(\n externalId: '123456',\n tagIds: [\n 'clux0rgak00011...',\n ],\n ),\n);\n\n$response = $sdk->partners->createLink(\n request: $request\n);\n\nif ($response->linkSchema !== null) {\n // handle response\n}"
"source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$request = new Operations\\CreatePartnerLinkRequestBody(\n programId: '<id>',\n linkProps: new Operations\\CreatePartnerLinkLinkProps(\n externalId: '123456',\n tagIds: [\n 'clux0rgak00011...',\n ],\n ),\n);\n\n$response = $sdk->partners->createLink(\n request: $request\n);\n\nif ($response->linkSchema !== null) {\n // handle response\n}"
- target: $["paths"]["/partners/links/upsert"]["put"]
update:
"x-codeSamples":
- "lang": "php"
"label": "upsertPartnerLink"
"source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$request = new Operations\\UpsertPartnerLinkRequestBody(\n programId: '<id>',\n url: 'https://unsteady-lobster.com/',\n linkProps: new Operations\\UpsertPartnerLinkLinkProps(\n externalId: '123456',\n tagIds: [\n 'clux0rgak00011...',\n ],\n ),\n);\n\n$response = $sdk->partners->upsertLink(\n request: $request\n);\n\nif ($response->linkSchema !== null) {\n // handle response\n}"
"source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$request = new Operations\\UpsertPartnerLinkRequestBody(\n programId: '<id>',\n linkProps: new Operations\\UpsertPartnerLinkLinkProps(\n externalId: '123456',\n tagIds: [\n 'clux0rgak00011...',\n ],\n ),\n);\n\n$response = $sdk->partners->upsertLink(\n request: $request\n);\n\nif ($response->linkSchema !== null) {\n // handle response\n}"
- target: $["paths"]["/qr"]["get"]
update:
"x-codeSamples":
Expand Down
11 changes: 11 additions & 0 deletions docs/Models/Components/AccessLevel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AccessLevel

The access level of the folder within the workspace.


## Values

| Name | Value |
| ------- | ------- |
| `Read` | read |
| `Write` | write |
1 change: 1 addition & 0 deletions docs/Models/Components/Data.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
| `publicStats` | *?bool* | :heavy_minus_sign: | N/A |
| ~~`tagId`~~ | *string* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>The unique ID of the tag assigned to the short link. This field is deprecated – use `tags` instead. |
| `tags` | array<[Components\TagSchema](../../Models/Components/TagSchema.md)> | :heavy_check_mark: | The tags assigned to the short link. |
| `folderId` | *string* | :heavy_check_mark: | The unique ID of the folder assigned to the short link. |
| `comments` | *string* | :heavy_check_mark: | The comments for the short link. |
| `utmSource` | *string* | :heavy_check_mark: | The UTM source of the short link. |
| `utmMedium` | *string* | :heavy_check_mark: | The UTM medium of the short link. |
Expand Down
13 changes: 13 additions & 0 deletions docs/Models/Components/FolderSchema.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# FolderSchema


## Fields

| Field | Type | Required | Description |
| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- |
| `id` | *string* | :heavy_check_mark: | The unique ID of the folder. |
| `name` | *string* | :heavy_check_mark: | The name of the folder. |
| `createdAt` | *string* | :heavy_check_mark: | The date the folder was created. |
| `updatedAt` | *string* | :heavy_check_mark: | The date the folder was updated. |
| `linkCount` | *?float* | :heavy_minus_sign: | The number of links in the folder. |
| `accessLevel` | [?Components\AccessLevel](../../Models/Components/AccessLevel.md) | :heavy_minus_sign: | The access level of the folder within the workspace. |
Loading

0 comments on commit 6e42d5d

Please sign in to comment.