Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
394 changes: 296 additions & 98 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 @@ -29,7 +29,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
php:
version: 0.15.8
version: 0.15.9
additionalDependencies:
autoload: {}
autoload-dev: {}
Expand Down
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.761.1
speakeasyVersion: 1.761.9
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:4a1926451b6a6b193dc5c1a5042d53aa5d3d3b0723d3a46cadd19ed47abe7f73
sourceBlobDigest: sha256:8b713653ddf86c3bcb1a44ae0bf839eeb03a9c58c9ac6d4a35f2ae87e7f54f78
sourceRevisionDigest: sha256:0ec08cbcd2e443170af2f65a87a730ea85fee80c53b2ccc0e6e685c134b814e0
sourceBlobDigest: sha256:c95e6e9feaed9d2cc7d68eab9855dd6ee3ba77615f44e0538cd4a0f19080ab67
tags:
- latest
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:4a1926451b6a6b193dc5c1a5042d53aa5d3d3b0723d3a46cadd19ed47abe7f73
sourceBlobDigest: sha256:8b713653ddf86c3bcb1a44ae0bf839eeb03a9c58c9ac6d4a35f2ae87e7f54f78
sourceRevisionDigest: sha256:0ec08cbcd2e443170af2f65a87a730ea85fee80c53b2ccc0e6e685c134b814e0
sourceBlobDigest: sha256:c95e6e9feaed9d2cc7d68eab9855dd6ee3ba77615f44e0538cd4a0f19080ab67
codeSamplesNamespace: code-samples-php-my-first-target
codeSamplesRevisionDigest: sha256:8e4a0f75a73eb3a45b43390cb55fcaebdac92b1acc9651114f49ede19704975f
codeSamplesRevisionDigest: sha256:5f5c2d3d005c8ebecb48c78ffc8e23364717427a1f9166f39555efe4fecba097
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,14 @@ foreach ($responses as $response) {

### [Customers](docs/sdks/customers/README.md)

* [list](docs/sdks/customers/README.md#list) - Retrieve a list of customers
* [list](docs/sdks/customers/README.md#list) - List all customers
* [get](docs/sdks/customers/README.md#get) - Retrieve a customer
* [delete](docs/sdks/customers/README.md#delete) - Delete a customer
* [update](docs/sdks/customers/README.md#update) - Update a customer

### [Domains](docs/sdks/domains/README.md)

* [list](docs/sdks/domains/README.md#list) - Retrieve a list of domains
* [list](docs/sdks/domains/README.md#list) - List all domains
* [create](docs/sdks/domains/README.md#create) - Create a domain
* [delete](docs/sdks/domains/README.md#delete) - Delete a domain
* [update](docs/sdks/domains/README.md#update) - Update a domain
Expand All @@ -221,18 +221,18 @@ foreach ($responses as $response) {

### [Events](docs/sdks/events/README.md)

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

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

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

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

* [list](docs/sdks/links/README.md#list) - Retrieve a list of links
* [list](docs/sdks/links/README.md#list) - List all links
* [create](docs/sdks/links/README.md#create) - Create a link
* [count](docs/sdks/links/README.md#count) - Retrieve links count
* [get](docs/sdks/links/README.md#get) - Retrieve a link
Expand All @@ -243,6 +243,12 @@ foreach ($responses as $response) {
* [updateMany](docs/sdks/links/README.md#updatemany) - Bulk update links
* [upsert](docs/sdks/links/README.md#upsert) - Upsert a link

### [PartnerApplications](docs/sdks/partnerapplications/README.md)

* [list](docs/sdks/partnerapplications/README.md#list) - List all pending partner applications
* [approve](docs/sdks/partnerapplications/README.md#approve) - Approve a partner application
* [reject](docs/sdks/partnerapplications/README.md#reject) - Reject a partner application

### [Partners](docs/sdks/partners/README.md)

* [list](docs/sdks/partners/README.md#list) - List all partners
Expand All @@ -264,7 +270,7 @@ foreach ($responses as $response) {

### [Tags](docs/sdks/tags/README.md)

* [list](docs/sdks/tags/README.md#list) - Retrieve a list of tags
* [list](docs/sdks/tags/README.md#list) - List all tags
* [create](docs/sdks/tags/README.md#create) - Create a tag
* [delete](docs/sdks/tags/README.md#delete) - Delete a tag
* [update](docs/sdks/tags/README.md#update) - Update a tag
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1340,4 +1340,14 @@ Based on:
### Generated
- [php v0.15.8] .
### Releases
- [Composer v0.15.8] https://packagist.org/packages/dub/dub-php#v0.15.8 - .
- [Composer v0.15.8] https://packagist.org/packages/dub/dub-php#v0.15.8 - .

## 2026-04-24 22:18:03
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.761.9 (2.881.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [php v0.15.9] .
### Releases
- [Composer v0.15.9] https://packagist.org/packages/dub/dub-php#v0.15.9 - .
18 changes: 18 additions & 0 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,24 @@ actions:
- "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 timezone: 'America/New_York',\n query: 'metadata[\\'key\\']:\\'value\\'',\n);\n\n$response = $sdk->partners->analytics(\n request: $request\n);\n\nif ($response->oneOf !== null) {\n // handle response\n}"
- target: $["paths"]["/partners/applications"]["get"]
update:
"x-codeSamples":
- "lang": "php"
"label": "listPartnerApplications"
"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->partnerApplications->list(\n country: 'US',\n groupId: 'grp_123',\n page: 1,\n pageSize: 50\n\n);\n\nif ($response->responseBodies !== null) {\n // handle response\n}"
- target: $["paths"]["/partners/applications/approve"]["post"]
update:
"x-codeSamples":
- "lang": "php"
"label": "approvePartner"
"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\\ApprovePartnerRequestBody(\n partnerId: '<id>',\n);\n\n$response = $sdk->partnerApplications->approve(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}"
- target: $["paths"]["/partners/applications/reject"]["post"]
update:
"x-codeSamples":
- "lang": "php"
"label": "rejectPartner"
"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\\RejectPartnerRequestBody(\n partnerId: '<id>',\n);\n\n$response = $sdk->partnerApplications->reject(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}"
- target: $["paths"]["/partners/ban"]["post"]
update:
"x-codeSamples":
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"require-dev": {
"laravel/pint": "1.29.0",
"phpstan/phpstan": "2.1.44",
"phpunit/phpunit": ">=10",
"phpunit/phpunit": "^11.5.50 || ^12.5.8 || >=13.0.0",
"roave/security-advisories": "dev-latest"
},
"minimum-stability": "stable",
Expand Down
1 change: 1 addition & 0 deletions docs/Models/Components/PartnerEnrolledEventData.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
| `stripeConnectId` | *string* | :heavy_check_mark: | The partner's Stripe Connect ID (for receiving payouts via Stripe). |
| `payoutsEnabledAt` | *string* | :heavy_check_mark: | The date when the partner enabled payouts. |
| `trustedAt` | *string* | :heavy_check_mark: | The date when the partner received the trusted badge in the partner network. |
| `identityVerifiedAt` | *string* | :heavy_check_mark: | The date when the partner's identity was verified. |
| `programId` | *string* | :heavy_check_mark: | The program's unique ID on Dub. |
| `groupId` | *?string* | :heavy_minus_sign: | The partner's group ID on Dub. |
| `partnerId` | *string* | :heavy_check_mark: | The partner's unique ID on Dub. |
Expand Down
9 changes: 9 additions & 0 deletions docs/Models/Operations/ApplicationFormData.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ApplicationFormData


## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `label` | *string* | :heavy_check_mark: | N/A |
| `value` | *string* | :heavy_check_mark: | N/A |
9 changes: 9 additions & 0 deletions docs/Models/Operations/ApprovePartnerRequestBody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ApprovePartnerRequestBody


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `partnerId` | *string* | :heavy_check_mark: | The ID of the partner to approve. |
| `groupId` | *?string* | :heavy_minus_sign: | The ID of the group to assign the partner to. If not provided, the partner will be assigned to the group they applied to, or the program's default group if no application group is set. |
11 changes: 11 additions & 0 deletions docs/Models/Operations/ApprovePartnerResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ApprovePartnerResponse


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `object` | [?Operations\ApprovePartnerResponseBody](../../Models/Operations/ApprovePartnerResponseBody.md) | :heavy_minus_sign: | The approved partner |
10 changes: 10 additions & 0 deletions docs/Models/Operations/ApprovePartnerResponseBody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ApprovePartnerResponseBody

The approved partner


## Fields

| Field | Type | Required | Description |
| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- |
| `partnerId` | *string* | :heavy_check_mark: | The ID of the approved partner. |
Loading