Skip to content

Commit

Permalink
Merge pull request #71 from dubinc/speakeasy-sdk-regen-1732926409
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.15.2
  • Loading branch information
devkiran authored Nov 30, 2024
2 parents 51deb61 + 5da223a commit f3f5cc3
Show file tree
Hide file tree
Showing 15 changed files with 63 additions and 23 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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": "<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": "<value>", "updatedAt": "<value>", "registeredDomain": {"id": "<id>", "createdAt": "<value>", "expiresAt": "<value>"}}
application/json: {"id": "<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": "<value>", "createdAt": "<value>", "updatedAt": "<value>", "registeredDomain": {"id": "<id>", "createdAt": "<value>", "expiresAt": "<value>"}}
"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 Expand Up @@ -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": "<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": "<value>", "updatedAt": "<value>", "registeredDomain": {"id": "<id>", "createdAt": "<value>", "expiresAt": "<value>"}}
application/json: {"id": "<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": "<value>", "createdAt": "<value>", "updatedAt": "<value>", "registeredDomain": {"id": "<id>", "createdAt": "<value>", "expiresAt": "<value>"}}
"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 @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 0.15.1
version: 0.15.2
additionalDependencies:
dev: {}
main: {}
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,4 +626,14 @@ Based on:
### Generated
- [python v0.15.1] .
### Releases
- [PyPI v0.15.1] https://pypi.org/project/dub/0.15.1 - .
- [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 - .
1 change: 1 addition & 0 deletions docs/models/components/domainschema.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. | |
Expand Down
3 changes: 2 additions & 1 deletion docs/models/operations/createdomainrequestbody.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| `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. | |
3 changes: 2 additions & 1 deletion docs/models/operations/updatedomainrequestbody.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| `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. | |
3 changes: 2 additions & 1 deletion docs/models/operations/updateworkspacerequestbody.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `name` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `slug` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `slug` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `logo` | *Optional[str]* | :heavy_minus_sign: | N/A |
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.15.1"
version = "0.15.2"
description = "Python Client SDK Generated by Speakeasy"
authors = ["Speakeasy",]
readme = "README-PYPI.md"
Expand Down
2 changes: 1 addition & 1 deletion src/dub/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions src/dub/models/components/domainschema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."""

Expand Down Expand Up @@ -100,6 +105,7 @@ def serialize_model(self, handler):
"placeholder",
"expiredUrl",
"notFoundUrl",
"logo",
"registeredDomain",
]
null_default_fields = []
Expand Down
15 changes: 13 additions & 2 deletions src/dub/models/operations/createdomain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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)
Expand Down
Loading

0 comments on commit f3f5cc3

Please sign in to comment.