From 5da223a8eba3a5e785278bb2362971b867954b41 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 30 Nov 2024 00:27:44 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.448.2 --- .speakeasy/gen.lock | 10 +++++----- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 12 ++++++------ RELEASES.md | 12 +++++++++++- docs/models/components/domainschema.md | 1 + docs/models/operations/createdomainrequestbody.md | 3 ++- docs/models/operations/updatedomainrequestbody.md | 3 ++- .../operations/updateworkspacerequestbody.md | 3 ++- pyproject.toml | 2 +- src/dub/_version.py | 2 +- src/dub/models/components/domainschema.py | 6 ++++++ src/dub/models/operations/createdomain.py | 15 +++++++++++++-- src/dub/models/operations/updatedomain.py | 8 +++++++- src/dub/models/operations/updateworkspace.py | 3 +++ src/dub/sdkconfiguration.py | 4 ++-- 15 files changed, 63 insertions(+), 23 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 27bb433..90235ed 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: 756dac9e9f7f9954fef9635bbe0c7ca8 + docChecksum: ebeafbab98f36580b94fa4a78ab949c3 docVersion: 0.0.1 speakeasyVersion: 1.448.2 generationVersion: 2.467.4 - releaseVersion: 0.15.1 - configChecksum: 235eb14c4c7d1833713ddca086e841c9 + releaseVersion: 0.15.2 + configChecksum: 929f8a76cc94c7c985cc6830d2ebbaa1 repoURL: https://github.com/dubinc/dub-python.git installationURL: https://github.com/dubinc/dub-python.git published: true @@ -903,7 +903,7 @@ examples: application/json: {"slug": "acme.com", "expiredUrl": "https://acme.com/expired", "notFoundUrl": "https://acme.com/not-found", "archived": false, "placeholder": "https://dub.co/help/article/what-is-dub"} responses: "201": - application/json: {"id": "", "slug": "acme.com", "placeholder": "https://dub.co/help/article/what-is-dub", "expiredUrl": "https://acme.com/expired", "notFoundUrl": "https://acme.com/not-found", "createdAt": "", "updatedAt": "", "registeredDomain": {"id": "", "createdAt": "", "expiresAt": ""}} + application/json: {"id": "", "slug": "acme.com", "placeholder": "https://dub.co/help/article/what-is-dub", "expiredUrl": "https://acme.com/expired", "notFoundUrl": "https://acme.com/not-found", "logo": "", "createdAt": "", "updatedAt": "", "registeredDomain": {"id": "", "createdAt": "", "expiresAt": ""}} "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": @@ -957,7 +957,7 @@ examples: application/json: {"slug": "acme.com", "expiredUrl": "https://acme.com/expired", "notFoundUrl": "https://acme.com/not-found", "archived": false, "placeholder": "https://dub.co/help/article/what-is-dub"} responses: "200": - application/json: {"id": "", "slug": "acme.com", "placeholder": "https://dub.co/help/article/what-is-dub", "expiredUrl": "https://acme.com/expired", "notFoundUrl": "https://acme.com/not-found", "createdAt": "", "updatedAt": "", "registeredDomain": {"id": "", "createdAt": "", "expiresAt": ""}} + application/json: {"id": "", "slug": "acme.com", "placeholder": "https://dub.co/help/article/what-is-dub", "expiredUrl": "https://acme.com/expired", "notFoundUrl": "https://acme.com/not-found", "logo": "", "createdAt": "", "updatedAt": "", "registeredDomain": {"id": "", "createdAt": "", "expiresAt": ""}} "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 551dc0a..ded7ccd 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false python: - version: 0.15.1 + version: 0.15.2 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 8658e5e..0afaf12 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,20 +2,20 @@ speakeasyVersion: 1.448.2 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:1402425c8983498d2c9f54cad7bae8883e83968a5dc0795863ca06f4b1c1e2f1 - sourceBlobDigest: sha256:5f528cabe38a31820b800b14443643d5abac1108834c10f71708337c523295ec + sourceRevisionDigest: sha256:684a05f75c6ecf2d25597e57048f0baa890e2a9bfa2c40d741edf39b55bb2d20 + sourceBlobDigest: sha256:e569918a366dca2572f96f5fbd89d740f0986fb203dea32229a9aa2ac9657d03 tags: - latest - - speakeasy-sdk-regen-1732753655 + - speakeasy-sdk-regen-1732926409 - 0.0.1 targets: my-first-target: source: dub sourceNamespace: dub - sourceRevisionDigest: sha256:1402425c8983498d2c9f54cad7bae8883e83968a5dc0795863ca06f4b1c1e2f1 - sourceBlobDigest: sha256:5f528cabe38a31820b800b14443643d5abac1108834c10f71708337c523295ec + sourceRevisionDigest: sha256:684a05f75c6ecf2d25597e57048f0baa890e2a9bfa2c40d741edf39b55bb2d20 + sourceBlobDigest: sha256:e569918a366dca2572f96f5fbd89d740f0986fb203dea32229a9aa2ac9657d03 codeSamplesNamespace: code-samples-python-my-first-target - codeSamplesRevisionDigest: sha256:f7a280144358267c3cd60b89b60e7c8f316955c3632fe997e2d5e0257588e906 + codeSamplesRevisionDigest: sha256:089255c9a9ffa807365b2becd7fe668192006bb988a5d86be5072f7d8feba2f3 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 6b464f1..7342b67 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -626,4 +626,14 @@ Based on: ### Generated - [python v0.15.1] . ### Releases -- [PyPI v0.15.1] https://pypi.org/project/dub/0.15.1 - . \ No newline at end of file +- [PyPI v0.15.1] https://pypi.org/project/dub/0.15.1 - . + +## 2024-11-30 00:26:45 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.448.2 (2.467.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.15.2] . +### Releases +- [PyPI v0.15.2] https://pypi.org/project/dub/0.15.2 - . \ No newline at end of file diff --git a/docs/models/components/domainschema.md b/docs/models/components/domainschema.md index 1609e4f..d13b2fa 100644 --- a/docs/models/components/domainschema.md +++ b/docs/models/components/domainschema.md @@ -10,6 +10,7 @@ | `placeholder` | *Nullable[str]* | :heavy_check_mark: | 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 | | `expired_url` | *Nullable[str]* | :heavy_check_mark: | The URL to redirect to when a link under this domain has expired. | https://acme.com/expired | | `not_found_url` | *Nullable[str]* | :heavy_check_mark: | The URL to redirect to when a link under this domain doesn't exist. | https://acme.com/not-found | +| `logo` | *Nullable[str]* | :heavy_check_mark: | The logo of the domain. | | | `created_at` | *str* | :heavy_check_mark: | The date the domain was created. | | | `updated_at` | *str* | :heavy_check_mark: | The date the domain was last updated. | | | `registered_domain` | [Nullable[components.RegisteredDomain]](../../models/components/registereddomain.md) | :heavy_check_mark: | The registered domain record. | | diff --git a/docs/models/operations/createdomainrequestbody.md b/docs/models/operations/createdomainrequestbody.md index 1418816..21a2689 100644 --- a/docs/models/operations/createdomainrequestbody.md +++ b/docs/models/operations/createdomainrequestbody.md @@ -9,4 +9,5 @@ | `expired_url` | *OptionalNullable[str]* | :heavy_minus_sign: | Redirect users to a specific URL when any link under this domain has expired. | https://acme.com/expired | | `not_found_url` | *OptionalNullable[str]* | :heavy_minus_sign: | Redirect users to a specific URL when a link under this domain doesn't exist. | https://acme.com/not-found | | `archived` | *Optional[bool]* | :heavy_minus_sign: | Whether to archive this domain. `false` will unarchive a previously archived domain. | false | -| `placeholder` | *OptionalNullable[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` | *OptionalNullable[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 | +| `logo` | *OptionalNullable[str]* | :heavy_minus_sign: | The logo of the domain. | | \ No newline at end of file diff --git a/docs/models/operations/updatedomainrequestbody.md b/docs/models/operations/updatedomainrequestbody.md index 8d56df5..94a0b0e 100644 --- a/docs/models/operations/updatedomainrequestbody.md +++ b/docs/models/operations/updatedomainrequestbody.md @@ -9,4 +9,5 @@ | `expired_url` | *OptionalNullable[str]* | :heavy_minus_sign: | Redirect users to a specific URL when any link under this domain has expired. | https://acme.com/expired | | `not_found_url` | *OptionalNullable[str]* | :heavy_minus_sign: | Redirect users to a specific URL when a link under this domain doesn't exist. | https://acme.com/not-found | | `archived` | *Optional[bool]* | :heavy_minus_sign: | Whether to archive this domain. `false` will unarchive a previously archived domain. | false | -| `placeholder` | *OptionalNullable[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` | *OptionalNullable[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 | +| `logo` | *OptionalNullable[str]* | :heavy_minus_sign: | The logo of the domain. | | \ No newline at end of file diff --git a/docs/models/operations/updateworkspacerequestbody.md b/docs/models/operations/updateworkspacerequestbody.md index 1ad891e..f29a014 100644 --- a/docs/models/operations/updateworkspacerequestbody.md +++ b/docs/models/operations/updateworkspacerequestbody.md @@ -6,4 +6,5 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `name` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `slug` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `slug` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `logo` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index f590d85..9295ef1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dub" -version = "0.15.1" +version = "0.15.2" description = "Python Client SDK Generated by Speakeasy" authors = ["Speakeasy",] readme = "README-PYPI.md" diff --git a/src/dub/_version.py b/src/dub/_version.py index fa7a0a0..a76314b 100644 --- a/src/dub/_version.py +++ b/src/dub/_version.py @@ -3,7 +3,7 @@ import importlib.metadata __title__: str = "dub" -__version__: str = "0.15.1" +__version__: str = "0.15.2" try: if __package__ is not None: diff --git a/src/dub/models/components/domainschema.py b/src/dub/models/components/domainschema.py index 1445109..0efebda 100644 --- a/src/dub/models/components/domainschema.py +++ b/src/dub/models/components/domainschema.py @@ -43,6 +43,8 @@ class DomainSchemaTypedDict(TypedDict): r"""The URL to redirect to when a link under this domain has expired.""" not_found_url: Nullable[str] r"""The URL to redirect to when a link under this domain doesn't exist.""" + logo: Nullable[str] + r"""The logo of the domain.""" created_at: str r"""The date the domain was created.""" updated_at: str @@ -73,6 +75,9 @@ class DomainSchema(BaseModel): not_found_url: Annotated[Nullable[str], pydantic.Field(alias="notFoundUrl")] r"""The URL to redirect to when a link under this domain doesn't exist.""" + logo: Nullable[str] + r"""The logo of the domain.""" + created_at: Annotated[str, pydantic.Field(alias="createdAt")] r"""The date the domain was created.""" @@ -100,6 +105,7 @@ def serialize_model(self, handler): "placeholder", "expiredUrl", "notFoundUrl", + "logo", "registeredDomain", ] null_default_fields = [] diff --git a/src/dub/models/operations/createdomain.py b/src/dub/models/operations/createdomain.py index b4ce201..33d61c7 100644 --- a/src/dub/models/operations/createdomain.py +++ b/src/dub/models/operations/createdomain.py @@ -19,6 +19,8 @@ class CreateDomainRequestBodyTypedDict(TypedDict): r"""Whether to archive this domain. `false` will unarchive a previously archived domain.""" placeholder: NotRequired[Nullable[str]] r"""Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.""" + logo: NotRequired[Nullable[str]] + r"""The logo of the domain.""" class CreateDomainRequestBody(BaseModel): @@ -41,10 +43,19 @@ class CreateDomainRequestBody(BaseModel): placeholder: OptionalNullable[str] = UNSET r"""Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.""" + logo: OptionalNullable[str] = UNSET + r"""The logo of the domain.""" + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["expiredUrl", "notFoundUrl", "archived", "placeholder"] - nullable_fields = ["expiredUrl", "notFoundUrl", "placeholder"] + optional_fields = [ + "expiredUrl", + "notFoundUrl", + "archived", + "placeholder", + "logo", + ] + nullable_fields = ["expiredUrl", "notFoundUrl", "placeholder", "logo"] null_default_fields = [] serialized = handler(self) diff --git a/src/dub/models/operations/updatedomain.py b/src/dub/models/operations/updatedomain.py index f2a16d3..e53ac9d 100644 --- a/src/dub/models/operations/updatedomain.py +++ b/src/dub/models/operations/updatedomain.py @@ -20,6 +20,8 @@ class UpdateDomainRequestBodyTypedDict(TypedDict): r"""Whether to archive this domain. `false` will unarchive a previously archived domain.""" placeholder: NotRequired[Nullable[str]] r"""Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.""" + logo: NotRequired[Nullable[str]] + r"""The logo of the domain.""" class UpdateDomainRequestBody(BaseModel): @@ -42,6 +44,9 @@ class UpdateDomainRequestBody(BaseModel): placeholder: OptionalNullable[str] = UNSET r"""Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.""" + logo: OptionalNullable[str] = UNSET + r"""The logo of the domain.""" + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [ @@ -50,8 +55,9 @@ def serialize_model(self, handler): "notFoundUrl", "archived", "placeholder", + "logo", ] - nullable_fields = ["expiredUrl", "notFoundUrl", "placeholder"] + nullable_fields = ["expiredUrl", "notFoundUrl", "placeholder", "logo"] null_default_fields = [] serialized = handler(self) diff --git a/src/dub/models/operations/updateworkspace.py b/src/dub/models/operations/updateworkspace.py index ac55a2c..f17c687 100644 --- a/src/dub/models/operations/updateworkspace.py +++ b/src/dub/models/operations/updateworkspace.py @@ -11,6 +11,7 @@ class UpdateWorkspaceRequestBodyTypedDict(TypedDict): name: NotRequired[str] slug: NotRequired[str] + logo: NotRequired[str] class UpdateWorkspaceRequestBody(BaseModel): @@ -18,6 +19,8 @@ class UpdateWorkspaceRequestBody(BaseModel): slug: Optional[str] = None + logo: Optional[str] = None + class UpdateWorkspaceRequestTypedDict(TypedDict): id_or_slug: str diff --git a/src/dub/sdkconfiguration.py b/src/dub/sdkconfiguration.py index d7f465e..4e2be69 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.15.1" + sdk_version: str = "0.15.2" gen_version: str = "2.467.4" - user_agent: str = "speakeasy-sdk/python 0.15.1 2.467.4 0.0.1 dub" + user_agent: str = "speakeasy-sdk/python 0.15.2 2.467.4 0.0.1 dub" retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET) timeout_ms: Optional[int] = None