From 43326dc9d74bc6dc1031fa159196895ff292a493 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 16 Sep 2024 00:28:21 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.396.9 --- .speakeasy/gen.lock | 18 +++---- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 13 +++-- README.md | 50 +++++++++++--------- RELEASES.md | 12 ++++- codeSamples.yaml | 2 +- docs/models/components/domainschema.md | 3 +- docs/models/components/registereddomain.md | 12 +++++ docs/models/components/workspaceschema.md | 1 + docs/sdks/links/README.md | 2 +- pyproject.toml | 2 +- src/dub/analytics.py | 20 ++++---- src/dub/domains.py | 12 ++--- src/dub/events.py | 12 ++--- src/dub/links.py | 38 ++++++--------- src/dub/models/components/__init__.py | 9 +++- src/dub/models/components/domainschema.py | 43 +++++++++++++++-- src/dub/models/components/workspaceschema.py | 5 ++ src/dub/models/operations/listevents.py | 2 +- src/dub/sdkconfiguration.py | 6 +-- 20 files changed, 165 insertions(+), 99 deletions(-) create mode 100644 docs/models/components/registereddomain.md diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index c822c3b..5dca4fc 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ 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 @@ -14,9 +14,10 @@ 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 @@ -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 @@ -684,7 +686,7 @@ examples: idOrSlug: "" responses: "200": - application/json: {"id": "", "name": "", "slug": "", "plan": "business extra", "stripeId": "", "billingCycleStart": "900.65", "stripeConnectId": "", "inviteCode": "", "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": "", "conversionEnabled": true, "createdAt": "", "users": [], "domains": []} + application/json: {"id": "", "name": "", "slug": "", "plan": "business extra", "stripeId": "", "billingCycleStart": "900.65", "stripeConnectId": "", "inviteCode": "", "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": "", "conversionEnabled": true, "dotLinkClaimed": true, "createdAt": "", "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": @@ -710,7 +712,7 @@ examples: idOrSlug: "" responses: "200": - application/json: {"id": "", "name": "", "slug": "", "plan": "enterprise", "stripeId": "", "billingCycleStart": "245.55", "stripeConnectId": "", "inviteCode": "", "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": "", "conversionEnabled": true, "createdAt": "", "users": [], "domains": []} + application/json: {"id": "", "name": "", "slug": "", "plan": "enterprise", "stripeId": "", "billingCycleStart": "245.55", "stripeConnectId": "", "inviteCode": "", "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": "", "conversionEnabled": true, "dotLinkClaimed": false, "createdAt": "", "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": diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 71e1b3f..b807820 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true python: - version: 0.9.0 + version: 0.10.0 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 0f36217..d87b717 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -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 @@ -11,11 +11,10 @@ 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 diff --git a/README.md b/README.md index dd86c7e..5023249 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,25 @@ asyncio.run(main()) ## Available Resources and Operations +
+Available methods + +### [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 @@ -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) @@ -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 + +
diff --git a/RELEASES.md b/RELEASES.md index 593ddad..ee84992 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -356,4 +356,14 @@ Based on: ### Generated - [python v0.9.0] . ### Releases -- [PyPI v0.9.0] https://pypi.org/project/dub/0.9.0 - . \ No newline at end of file +- [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 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 87d5abd..95afbd5 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -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 diff --git a/docs/models/components/domainschema.md b/docs/models/components/domainschema.md index 6749ae5..9cc679a 100644 --- a/docs/models/components/domainschema.md +++ b/docs/models/components/domainschema.md @@ -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 | \ No newline at end of file +| `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. | | \ No newline at end of file diff --git a/docs/models/components/registereddomain.md b/docs/models/components/registereddomain.md new file mode 100644 index 0000000..8202db1 --- /dev/null +++ b/docs/models/components/registereddomain.md @@ -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. | \ No newline at end of file diff --git a/docs/models/components/workspaceschema.md b/docs/models/components/workspaceschema.md index 6f44b2b..201b2e6 100644 --- a/docs/models/components/workspaceschema.md +++ b/docs/models/components/workspaceschema.md @@ -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. | diff --git a/docs/sdks/links/README.md b/docs/sdks/links/README.md index a07c44f..1d8394d 100644 --- a/docs/sdks/links/README.md +++ b/docs/sdks/links/README.md @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 3b146ad..403c94f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/dub/analytics.py b/src/dub/analytics.py index 3c20b08..d850622 100644 --- a/src/dub/analytics.py +++ b/src/dub/analytics.py @@ -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, @@ -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, diff --git a/src/dub/domains.py b/src/dub/domains.py index 6e93637..b5e4548 100644 --- a/src/dub/domains.py +++ b/src/dub/domains.py @@ -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, @@ -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, diff --git a/src/dub/events.py b/src/dub/events.py index f7a7e85..b236bde 100644 --- a/src/dub/events.py +++ b/src/dub/events.py @@ -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, @@ -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, diff --git a/src/dub/links.py b/src/dub/links.py index 22647b5..8315a8b 100644 --- a/src/dub/links.py +++ b/src/dub/links.py @@ -13,9 +13,7 @@ class Links(BaseSDK): def list( self, *, - request: Optional[ - Union[operations.GetLinksRequest, operations.GetLinksRequestTypedDict] - ] = None, + request: Union[operations.GetLinksRequest, operations.GetLinksRequestTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -169,9 +167,7 @@ def next_func() -> Optional[operations.GetLinksResponse]: async def list_async( self, *, - request: Optional[ - Union[operations.GetLinksRequest, operations.GetLinksRequestTypedDict] - ] = None, + request: Union[operations.GetLinksRequest, operations.GetLinksRequestTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -577,12 +573,9 @@ async def create_async( def count( self, *, - request: Optional[ - Union[ - operations.GetLinksCountRequest, - operations.GetLinksCountRequestTypedDict, - ] - ] = None, + request: Union[ + operations.GetLinksCountRequest, operations.GetLinksCountRequestTypedDict + ], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -700,12 +693,9 @@ def count( async def count_async( self, *, - request: Optional[ - Union[ - operations.GetLinksCountRequest, - operations.GetLinksCountRequestTypedDict, - ] - ] = None, + request: Union[ + operations.GetLinksCountRequest, operations.GetLinksCountRequestTypedDict + ], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -823,9 +813,9 @@ async def count_async( def get( self, *, - request: Optional[ - Union[operations.GetLinkInfoRequest, operations.GetLinkInfoRequestTypedDict] - ] = None, + request: Union[ + operations.GetLinkInfoRequest, operations.GetLinkInfoRequestTypedDict + ], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -943,9 +933,9 @@ def get( async def get_async( self, *, - request: Optional[ - Union[operations.GetLinkInfoRequest, operations.GetLinkInfoRequestTypedDict] - ] = None, + request: Union[ + operations.GetLinkInfoRequest, operations.GetLinkInfoRequestTypedDict + ], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, diff --git a/src/dub/models/components/__init__.py b/src/dub/models/components/__init__.py index 7ef5830..56d7de3 100644 --- a/src/dub/models/components/__init__.py +++ b/src/dub/models/components/__init__.py @@ -32,7 +32,12 @@ ) from .continentcode import ContinentCode from .countrycode import CountryCode -from .domainschema import DomainSchema, DomainSchemaTypedDict +from .domainschema import ( + DomainSchema, + DomainSchemaTypedDict, + RegisteredDomain, + RegisteredDomainTypedDict, +) from .leadevent import ( Customer, CustomerTypedDict, @@ -199,6 +204,8 @@ "OneTypedDict", "PaymentProcessor", "Plan", + "RegisteredDomain", + "RegisteredDomainTypedDict", "Role", "Sale", "SaleEvent", diff --git a/src/dub/models/components/domainschema.py b/src/dub/models/components/domainschema.py index 29f7a87..552db1d 100644 --- a/src/dub/models/components/domainschema.py +++ b/src/dub/models/components/domainschema.py @@ -1,13 +1,37 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from dub.types import BaseModel, Nullable, UNSET_SENTINEL +from dub.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL import pydantic from pydantic import model_serializer from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired +class RegisteredDomainTypedDict(TypedDict): + r"""The registered domain record.""" + + id: str + r"""The ID of the registered domain record.""" + created_at: str + r"""The date the domain was created.""" + expires_at: str + r"""The date the domain expires.""" + + +class RegisteredDomain(BaseModel): + r"""The registered domain record.""" + + id: str + r"""The ID of the registered domain record.""" + + created_at: Annotated[str, pydantic.Field(alias="createdAt")] + r"""The date the domain was created.""" + + expires_at: Annotated[str, pydantic.Field(alias="expiresAt")] + r"""The date the domain expires.""" + + class DomainSchemaTypedDict(TypedDict): id: str r"""The unique identifier of the domain.""" @@ -27,6 +51,8 @@ class DomainSchemaTypedDict(TypedDict): r"""Whether the domain is archived.""" placeholder: NotRequired[str] r"""Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.""" + registered_domain: NotRequired[Nullable[RegisteredDomainTypedDict]] + r"""The registered domain record.""" class DomainSchema(BaseModel): @@ -57,10 +83,21 @@ class DomainSchema(BaseModel): placeholder: Optional[str] = "https://dub.co/help/article/what-is-dub" r"""Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.""" + registered_domain: Annotated[ + OptionalNullable[RegisteredDomain], pydantic.Field(alias="registeredDomain") + ] = UNSET + r"""The registered domain record.""" + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["verified", "primary", "archived", "placeholder"] - nullable_fields = ["expiredUrl"] + optional_fields = [ + "verified", + "primary", + "archived", + "placeholder", + "registeredDomain", + ] + nullable_fields = ["expiredUrl", "registeredDomain"] null_default_fields = [] serialized = handler(self) diff --git a/src/dub/models/components/workspaceschema.py b/src/dub/models/components/workspaceschema.py index ef43c8c..a349a93 100644 --- a/src/dub/models/components/workspaceschema.py +++ b/src/dub/models/components/workspaceschema.py @@ -101,6 +101,8 @@ class WorkspaceSchemaTypedDict(TypedDict): r"""The ID of the referral link of the workspace.""" conversion_enabled: bool r"""Whether the workspace has conversion tracking enabled (d.to/conversions).""" + dot_link_claimed: bool + r"""Whether the workspace has claimed a free .link domain. (dub.link/free)""" created_at: str r"""The date and time when the workspace was created.""" users: List[UsersTypedDict] @@ -177,6 +179,9 @@ class WorkspaceSchema(BaseModel): conversion_enabled: Annotated[bool, pydantic.Field(alias="conversionEnabled")] r"""Whether the workspace has conversion tracking enabled (d.to/conversions).""" + dot_link_claimed: Annotated[bool, pydantic.Field(alias="dotLinkClaimed")] + r"""Whether the workspace has claimed a free .link domain. (dub.link/free)""" + created_at: Annotated[str, pydantic.Field(alias="createdAt")] r"""The date and time when the workspace was created.""" diff --git a/src/dub/models/operations/listevents.py b/src/dub/models/operations/listevents.py index 70fd20e..842f4b1 100644 --- a/src/dub/models/operations/listevents.py +++ b/src/dub/models/operations/listevents.py @@ -219,7 +219,7 @@ class ListEventsRequest(BaseModel): page: Annotated[ Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 0 + ] = 1 limit: Annotated[ Optional[float], diff --git a/src/dub/sdkconfiguration.py b/src/dub/sdkconfiguration.py index d1fe82d..deb346b 100644 --- a/src/dub/sdkconfiguration.py +++ b/src/dub/sdkconfiguration.py @@ -29,9 +29,9 @@ class SDKConfiguration: server_idx: Optional[int] = 0 language: str = "python" openapi_doc_version: str = "0.0.1" - sdk_version: str = "0.9.0" - gen_version: str = "2.415.0" - user_agent: str = "speakeasy-sdk/python 0.9.0 2.415.0 0.0.1 dub" + sdk_version: str = "0.10.0" + gen_version: str = "2.415.7" + user_agent: str = "speakeasy-sdk/python 0.10.0 2.415.7 0.0.1 dub" retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET) timeout_ms: Optional[int] = None