Skip to content

Commit

Permalink
Merge pull request #44 from dubinc/speakeasy-sdk-regen-1726446364
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.10.0
  • Loading branch information
devkiran authored Sep 16, 2024
2 parents cb7cba0 + 43326dc commit 5526a01
Show file tree
Hide file tree
Showing 20 changed files with 165 additions and 99 deletions.
18 changes: 10 additions & 8 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
lockVersion: 2.0.0
id: ab657d60-207e-43a4-8cc8-692a672950ed
management:
docChecksum: ffa6151096521151b68b6e0bf18ca941
docChecksum: 5124eb4c8a9ec61cd5ee7393fdecd832
docVersion: 0.0.1
speakeasyVersion: 1.396.2
generationVersion: 2.415.0
releaseVersion: 0.9.0
configChecksum: 3c2fffca0bb494702e993f6616c5fe46
speakeasyVersion: 1.396.9
generationVersion: 2.415.7
releaseVersion: 0.10.0
configChecksum: 11cf0e223e15b4c6524bcda59bd42651
repoURL: https://github.com/dubinc/dub-python.git
installationURL: https://github.com/dubinc/dub-python.git
published: true
features:
python:
additionalDependencies: 1.0.0
constsAndDefaults: 1.0.2
core: 5.5.0
core: 5.5.3
defaultEnabledRetries: 0.2.0
deprecations: 3.0.0
enumUnions: 0.1.0
envVarSecurityUsage: 0.3.1
errors: 3.0.0
examples: 3.0.0
Expand Down Expand Up @@ -78,6 +79,7 @@ generatedFiles:
- docs/models/components/one.md
- docs/models/components/paymentprocessor.md
- docs/models/components/plan.md
- docs/models/components/registereddomain.md
- docs/models/components/role.md
- docs/models/components/sale.md
- docs/models/components/saleevent.md
Expand Down Expand Up @@ -684,7 +686,7 @@ examples:
idOrSlug: "<value>"
responses:
"200":
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "plan": "business extra", "stripeId": "<value>", "billingCycleStart": "900.65", "stripeConnectId": "<value>", "inviteCode": "<value>", "usage": "5588.34", "usageLimit": "8441.99", "linksUsage": "5442.21", "linksLimit": "8306.36", "salesUsage": "5212.35", "salesLimit": "785.92", "domainsLimit": "9699.61", "tagsLimit": "8661.61", "usersLimit": "4580.49", "aiUsage": "7352.87", "aiLimit": "4508.24", "referralLinkId": "<value>", "conversionEnabled": true, "createdAt": "<value>", "users": [], "domains": []}
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "plan": "business extra", "stripeId": "<value>", "billingCycleStart": "900.65", "stripeConnectId": "<value>", "inviteCode": "<value>", "usage": "5588.34", "usageLimit": "8441.99", "linksUsage": "5442.21", "linksLimit": "8306.36", "salesUsage": "5212.35", "salesLimit": "785.92", "domainsLimit": "9699.61", "tagsLimit": "8661.61", "usersLimit": "4580.49", "aiUsage": "7352.87", "aiLimit": "4508.24", "referralLinkId": "<value>", "conversionEnabled": true, "dotLinkClaimed": true, "createdAt": "<value>", "users": [], "domains": []}
"400":
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
"401":
Expand All @@ -710,7 +712,7 @@ examples:
idOrSlug: "<value>"
responses:
"200":
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "plan": "enterprise", "stripeId": "<value>", "billingCycleStart": "245.55", "stripeConnectId": "<value>", "inviteCode": "<value>", "usage": "5971.29", "usageLimit": "156.52", "linksUsage": "3446.2", "linksLimit": "7084.55", "salesUsage": "9914.64", "salesLimit": "2703.24", "domainsLimit": "6276.9", "tagsLimit": "6841.99", "usersLimit": "4888.52", "aiUsage": "4430.76", "aiLimit": "9840.08", "referralLinkId": "<value>", "conversionEnabled": true, "createdAt": "<value>", "users": [], "domains": []}
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "plan": "enterprise", "stripeId": "<value>", "billingCycleStart": "245.55", "stripeConnectId": "<value>", "inviteCode": "<value>", "usage": "5971.29", "usageLimit": "156.52", "linksUsage": "3446.2", "linksLimit": "7084.55", "salesUsage": "9914.64", "salesLimit": "2703.24", "domainsLimit": "6276.9", "tagsLimit": "6841.99", "usersLimit": "4888.52", "aiUsage": "4430.76", "aiLimit": "9840.08", "referralLinkId": "<value>", "conversionEnabled": true, "dotLinkClaimed": false, "createdAt": "<value>", "users": [], "domains": []}
"400":
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
"401":
Expand Down
2 changes: 1 addition & 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
python:
version: 0.9.0
version: 0.10.0
additionalDependencies:
dev: {}
main: {}
Expand Down
13 changes: 6 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
speakeasyVersion: 1.396.2
speakeasyVersion: 1.396.9
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:512f06c146b9225033dbb7e50459551363d20e9368e529b29f059c23cb5599e1
sourceBlobDigest: sha256:9f8350387b136077fbceb629df43a304ad0b6806b0265dd1ed4b868d69a55d93
sourceRevisionDigest: sha256:7fb2a00f7c2f9c38bc7339786bec7331d817f76c8494dd32e999e213f552dcd5
sourceBlobDigest: sha256:55c25e2b2e157a7628471de6d6e928bc9c03722c98cc0a4d364937aa3f541429
tags:
- latest
- main
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:512f06c146b9225033dbb7e50459551363d20e9368e529b29f059c23cb5599e1
sourceBlobDigest: sha256:9f8350387b136077fbceb629df43a304ad0b6806b0265dd1ed4b868d69a55d93
sourceRevisionDigest: sha256:7fb2a00f7c2f9c38bc7339786bec7331d817f76c8494dd32e999e213f552dcd5
sourceBlobDigest: sha256:55c25e2b2e157a7628471de6d6e928bc9c03722c98cc0a4d364937aa3f541429
codeSamplesNamespace: code-samples-python-my-first-target
codeSamplesRevisionDigest: sha256:427d269e7c44b914e211a2b2efc2135540c63c3e3060528d4d837b7875b55b49
outLocation: /github/workspace/repo
codeSamplesRevisionDigest: sha256:3a9a990d04cbb6fc19ccf679dbda3a1c1fe65f0f3fd8d7895663849dc99a2831
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
50 changes: 28 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,25 @@ asyncio.run(main())
<!-- Start Available Resources and Operations [operations] -->
## Available Resources and Operations

<details open>
<summary>Available methods</summary>

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

* [retrieve](docs/sdks/analytics/README.md#retrieve) - Retrieve analytics for a link, a domain, or the authenticated workspace.

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

* [list](docs/sdks/domains/README.md#list) - Retrieve a list of 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


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

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

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

* [list](docs/sdks/links/README.md#list) - Retrieve a list of links
Expand All @@ -173,22 +192,13 @@ asyncio.run(main())
* [update_many](docs/sdks/links/README.md#update_many) - Bulk update links
* [upsert](docs/sdks/links/README.md#upsert) - Upsert a link

### [qr_codes](docs/sdks/qrcodes/README.md)

* [get](docs/sdks/qrcodes/README.md#get) - Retrieve a QR code

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

* [retrieve](docs/sdks/analytics/README.md#retrieve) - Retrieve analytics for a link, a domain, or the authenticated workspace.

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

* [list](docs/sdks/events/README.md#list) - Retrieve a list of events
* [get](docs/sdks/metatags/README.md#get) - Retrieve the metatags for a URL

### [workspaces](docs/sdks/workspaces/README.md)
### [qr_codes](docs/sdks/qrcodes/README.md)

* [get](docs/sdks/workspaces/README.md#get) - Retrieve a workspace
* [update](docs/sdks/workspaces/README.md#update) - Update a workspace
* [get](docs/sdks/qrcodes/README.md#get) - Retrieve a QR code

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

Expand All @@ -197,22 +207,18 @@ asyncio.run(main())
* [delete](docs/sdks/tags/README.md#delete) - Delete a tag
* [update](docs/sdks/tags/README.md#update) - Update a tag

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

* [list](docs/sdks/domains/README.md#list) - Retrieve a list of 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

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

* [lead](docs/sdks/track/README.md#lead) - Track a lead
* [sale](docs/sdks/track/README.md#sale) - Track a sale
* [customer](docs/sdks/track/README.md#customer) - Track a customer

### [metatags](docs/sdks/metatags/README.md)
### [workspaces](docs/sdks/workspaces/README.md)

* [get](docs/sdks/metatags/README.md#get) - Retrieve the metatags for a URL
* [get](docs/sdks/workspaces/README.md#get) - Retrieve a workspace
* [update](docs/sdks/workspaces/README.md#update) - Update a workspace

</details>
<!-- End Available Resources and Operations [operations] -->

<!-- Start Error Handling [errors] -->
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,4 +356,14 @@ Based on:
### Generated
- [python v0.9.0] .
### Releases
- [PyPI v0.9.0] https://pypi.org/project/dub/0.9.0 - .
- [PyPI v0.9.0] https://pypi.org/project/dub/0.9.0 - .

## 2024-09-16 00:25:59
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.396.9 (2.415.7) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.10.0] .
### Releases
- [PyPI v0.10.0] https://pypi.org/project/dub/0.10.0 - .
2 changes: 1 addition & 1 deletion codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ actions:
token="DUB_API_KEY",
)
res = s.links.count()
res = s.links.count(request={})
if res is not None:
# handle response
Expand Down
3 changes: 2 additions & 1 deletion docs/models/components/domainschema.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
| `verified` | *Optional[bool]* | :heavy_minus_sign: | Whether the domain is verified. | |
| `primary` | *Optional[bool]* | :heavy_minus_sign: | Whether the domain is the primary domain for the workspace. | |
| `archived` | *Optional[bool]* | :heavy_minus_sign: | Whether the domain is archived. | |
| `placeholder` | *Optional[str]* | :heavy_minus_sign: | Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened. | https://dub.co/help/article/what-is-dub |
| `placeholder` | *Optional[str]* | :heavy_minus_sign: | Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened. | https://dub.co/help/article/what-is-dub |
| `registered_domain` | [OptionalNullable[components.RegisteredDomain]](../../models/components/registereddomain.md) | :heavy_minus_sign: | The registered domain record. | |
12 changes: 12 additions & 0 deletions docs/models/components/registereddomain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# RegisteredDomain

The registered domain record.


## Fields

| Field | Type | Required | Description |
| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- |
| `id` | *str* | :heavy_check_mark: | The ID of the registered domain record. |
| `created_at` | *str* | :heavy_check_mark: | The date the domain was created. |
| `expires_at` | *str* | :heavy_check_mark: | The date the domain expires. |
1 change: 1 addition & 0 deletions docs/models/components/workspaceschema.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
| `ai_limit` | *float* | :heavy_check_mark: | The AI limit of the workspace. |
| `referral_link_id` | *Nullable[str]* | :heavy_check_mark: | The ID of the referral link of the workspace. |
| `conversion_enabled` | *bool* | :heavy_check_mark: | Whether the workspace has conversion tracking enabled (d.to/conversions). |
| `dot_link_claimed` | *bool* | :heavy_check_mark: | Whether the workspace has claimed a free .link domain. (dub.link/free) |
| `created_at` | *str* | :heavy_check_mark: | The date and time when the workspace was created. |
| `users` | List[[components.Users](../../models/components/users.md)] | :heavy_check_mark: | The role of the authenticated user in the workspace. |
| `domains` | List[[components.Domains](../../models/components/domains.md)] | :heavy_check_mark: | The domains of the workspace. |
Expand Down
2 changes: 1 addition & 1 deletion docs/sdks/links/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ s = Dub(
token="DUB_API_KEY",
)

res = s.links.count()
res = s.links.count(request={})

if res is not None:
# handle response
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dub"
version = "0.9.0"
version = "0.10.0"
description = "Python Client SDK Generated by Speakeasy"
authors = ["Speakeasy",]
readme = "README-PYPI.md"
Expand Down
20 changes: 8 additions & 12 deletions src/dub/analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ class Analytics(BaseSDK):
def retrieve(
self,
*,
request: Optional[
Union[
operations.RetrieveAnalyticsRequest,
operations.RetrieveAnalyticsRequestTypedDict,
]
] = None,
request: Union[
operations.RetrieveAnalyticsRequest,
operations.RetrieveAnalyticsRequestTypedDict,
],
retries: OptionalNullable[utils.RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
Expand Down Expand Up @@ -137,12 +135,10 @@ def retrieve(
async def retrieve_async(
self,
*,
request: Optional[
Union[
operations.RetrieveAnalyticsRequest,
operations.RetrieveAnalyticsRequestTypedDict,
]
] = None,
request: Union[
operations.RetrieveAnalyticsRequest,
operations.RetrieveAnalyticsRequestTypedDict,
],
retries: OptionalNullable[utils.RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
Expand Down
12 changes: 6 additions & 6 deletions src/dub/domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ class Domains(BaseSDK):
def list(
self,
*,
request: Optional[
Union[operations.ListDomainsRequest, operations.ListDomainsRequestTypedDict]
] = None,
request: Union[
operations.ListDomainsRequest, operations.ListDomainsRequestTypedDict
],
retries: OptionalNullable[utils.RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
Expand Down Expand Up @@ -162,9 +162,9 @@ def next_func() -> Optional[operations.ListDomainsResponse]:
async def list_async(
self,
*,
request: Optional[
Union[operations.ListDomainsRequest, operations.ListDomainsRequestTypedDict]
] = None,
request: Union[
operations.ListDomainsRequest, operations.ListDomainsRequestTypedDict
],
retries: OptionalNullable[utils.RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
Expand Down
12 changes: 6 additions & 6 deletions src/dub/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ class Events(BaseSDK):
def list(
self,
*,
request: Optional[
Union[operations.ListEventsRequest, operations.ListEventsRequestTypedDict]
] = None,
request: Union[
operations.ListEventsRequest, operations.ListEventsRequestTypedDict
],
retries: OptionalNullable[utils.RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
Expand Down Expand Up @@ -134,9 +134,9 @@ def list(
async def list_async(
self,
*,
request: Optional[
Union[operations.ListEventsRequest, operations.ListEventsRequestTypedDict]
] = None,
request: Union[
operations.ListEventsRequest, operations.ListEventsRequestTypedDict
],
retries: OptionalNullable[utils.RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
Expand Down
Loading

0 comments on commit 5526a01

Please sign in to comment.