Skip to content

Commit

Permalink
Merge pull request #49 from dubinc/speakeasy-sdk-regen-1727483109
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.10.5
  • Loading branch information
devkiran committed Sep 28, 2024
2 parents ae3ea86 + a7de4e9 commit d2f0146
Show file tree
Hide file tree
Showing 12 changed files with 67 additions and 48 deletions.
16 changes: 8 additions & 8 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
lockVersion: 2.0.0
id: ab657d60-207e-43a4-8cc8-692a672950ed
management:
docChecksum: b6e0f68b0350f243f5aab5565767940a
docChecksum: 596f43d83d9b42d6000040c93ba5018d
docVersion: 0.0.1
speakeasyVersion: 1.402.14
generationVersion: 2.422.22
releaseVersion: 0.10.4
configChecksum: 93254d6650913362353a8fa99d818ad7
speakeasyVersion: 1.404.5
generationVersion: 2.426.2
releaseVersion: 0.10.5
configChecksum: 6b01942061f48e729f98b19eb05ed8f7
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.3
core: 5.5.5
core: 5.5.6
defaultEnabledRetries: 0.2.0
deprecations: 3.0.0
enumUnions: 0.1.0
Expand All @@ -30,7 +30,7 @@ features:
nameOverrides: 3.0.0
nullables: 1.0.0
pagination: 3.0.1
responseFormat: 1.0.0
responseFormat: 1.0.1
retries: 3.0.2
sdkHooks: 1.0.0
unions: 3.0.2
Expand Down Expand Up @@ -414,7 +414,7 @@ examples:
parameters:
query:
linkId: "clux0rgak00011..."
externalId: "ext_123456"
externalId: "123456"
responses:
"200":
application/json: {"id": "<id>", "domain": "ringed-blow.name", "key": "<key>", "externalId": "<value>", "url": "https://monumental-spaghetti.name", "expiresAt": "<value>", "expiredUrl": "http://wiggly-substitution.info", "password": "fKH9v5zJBmg5IWA", "title": "<value>", "description": "Optional reciprocal projection", "image": "https://loremflickr.com/640/480", "video": "<value>", "ios": "<value>", "android": "<value>", "tagId": "<value>", "tags": [], "comments": "<value>", "shortLink": "https://hefty-festival.net", "qrCode": "https://pale-civilisation.name", "utm_source": "<value>", "utm_medium": "<value>", "utm_campaign": "<value>", "utm_term": "<value>", "utm_content": "<value>", "userId": "<value>", "workspaceId": "<value>", "lastClicked": "<value>", "createdAt": "<value>", "updatedAt": "<value>", "projectId": "<value>"}
Expand Down
4 changes: 3 additions & 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.10.4
version: 0.10.5
additionalDependencies:
dev: {}
main: {}
Expand All @@ -22,6 +22,8 @@ python:
clientServerStatusCodesAsErrors: true
description: Python Client SDK Generated by Speakeasy
enumFormat: enum
fixFlags:
responseRequiredSep2024: false
flattenGlobalSecurity: true
flattenRequests: false
imports:
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.402.14
speakeasyVersion: 1.404.5
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:8b95abe86b87787dca60a1fbb328ea3370155aaabe7af807a418f112393b69a4
sourceBlobDigest: sha256:2b482a30f98caef2b1911bab83e2719324801f91a62b4a81b37743d75e0ee6d8
sourceRevisionDigest: sha256:b698d362a90d333325b43aba792d9a768c11e1f17e7bc6177bfcef7e2b4bf558
sourceBlobDigest: sha256:aebbbd7ee707413102e8144ce5e26f309eab4403a2141e7afafb1cd8e055335c
tags:
- latest
- main
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:8b95abe86b87787dca60a1fbb328ea3370155aaabe7af807a418f112393b69a4
sourceBlobDigest: sha256:2b482a30f98caef2b1911bab83e2719324801f91a62b4a81b37743d75e0ee6d8
sourceRevisionDigest: sha256:b698d362a90d333325b43aba792d9a768c11e1f17e7bc6177bfcef7e2b4bf558
sourceBlobDigest: sha256:aebbbd7ee707413102e8144ce5e26f309eab4403a2141e7afafb1cd8e055335c
codeSamplesNamespace: code-samples-python-my-first-target
codeSamplesRevisionDigest: sha256:cbd9ea94f18794c4d84f5bd971652361ca774b1da7182ad9a0265e5235e8707f
codeSamplesRevisionDigest: sha256:1036c5df23d47a04af96fa039b75afa029d580885169fa72b1db58b7cc75656c
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 @@ -406,4 +406,14 @@ Based on:
### Generated
- [python v0.10.4] .
### Releases
- [PyPI v0.10.4] https://pypi.org/project/dub/0.10.4 - .
- [PyPI v0.10.4] https://pypi.org/project/dub/0.10.4 - .

## 2024-09-28 00:25:03
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.404.5 (2.426.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.10.5] .
### Releases
- [PyPI v0.10.5] https://pypi.org/project/dub/0.10.5 - .
15 changes: 6 additions & 9 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,6 @@ actions:
)
res = s.links.update_many(request={
"link_ids": [
"<value>",
],
"data": {
"url": "https://google.com",
"tag_ids": [
Expand Down Expand Up @@ -297,7 +294,7 @@ actions:
res = s.links.get(request={
"link_id": "clux0rgak00011...",
"external_id": "ext_123456",
"external_id": "123456",
})
if res is not None:
Expand Down Expand Up @@ -338,7 +335,7 @@ actions:
token="DUB_API_KEY",
)
res = s.links.delete(link_id="<value>")
res = s.links.delete(link_id="<id>")
if res is not None:
# handle response
Expand All @@ -355,7 +352,7 @@ actions:
token="DUB_API_KEY",
)
res = s.links.update(link_id="<value>", request_body={
res = s.links.update(link_id="<id>", request_body={
"url": "https://google.com",
"external_id": "123456",
"tag_ids": [
Expand Down Expand Up @@ -502,9 +499,9 @@ actions:
)
res = s.track.lead(request={
"click_id": "<value>",
"click_id": "<id>",
"event_name": "Sign up",
"customer_id": "<value>",
"customer_id": "<id>",
})
if res is not None:
Expand All @@ -524,7 +521,7 @@ actions:
)
res = s.track.sale(request={
"customer_id": "<value>",
"customer_id": "<id>",
"amount": 996500,
"payment_processor": operations.PaymentProcessor.PADDLE,
"event_name": "Purchase",
Expand Down
9 changes: 5 additions & 4 deletions docs/models/operations/bulkupdatelinksrequestbody.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
| `link_ids` | List[*str*] | :heavy_check_mark: | N/A |
| `data` | [operations.Data](../../models/operations/data.md) | :heavy_check_mark: | N/A |
| Field | Type | Required | Description |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `data` | [operations.Data](../../models/operations/data.md) | :heavy_check_mark: | N/A |
| `link_ids` | List[*str*] | :heavy_minus_sign: | The IDs of the links to update. Takes precedence over `externalIds`. |
| `external_ids` | List[*str*] | :heavy_minus_sign: | The external IDs of the links to update as stored in your database. |
12 changes: 6 additions & 6 deletions docs/models/operations/getlinkinforequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## Fields

| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| `domain` | *Optional[str]* | :heavy_minus_sign: | N/A | |
| `key` | *Optional[str]* | :heavy_minus_sign: | The key of the link to retrieve. E.g. for `d.to/github`, the key is `github`. | |
| `link_id` | *Optional[str]* | :heavy_minus_sign: | The unique ID of the short link. | clux0rgak00011... |
| `external_id` | *Optional[str]* | :heavy_minus_sign: | This is the ID of the link in the your database. Must be prefixed with `ext_` when passed as a query parameter. | ext_123456 |
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| `domain` | *Optional[str]* | :heavy_minus_sign: | N/A | |
| `key` | *Optional[str]* | :heavy_minus_sign: | The key of the link to retrieve. E.g. for `d.to/github`, the key is `github`. | |
| `link_id` | *Optional[str]* | :heavy_minus_sign: | The unique ID of the short link. | clux0rgak00011... |
| `external_id` | *Optional[str]* | :heavy_minus_sign: | This is the ID of the link in the your database. | 123456 |
8 changes: 4 additions & 4 deletions docs/sdks/links/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ s = Dub(

res = s.links.get(request={
"link_id": "clux0rgak00011...",
"external_id": "ext_123456",
"external_id": "123456",
})

if res is not None:
Expand Down Expand Up @@ -397,15 +397,15 @@ s = Dub(
)

res = s.links.update_many(request={
"link_ids": [
"<value>",
],
"data": {
"url": "https://google.com",
"tag_ids": [
"clux0rgak00011...",
],
},
"link_ids": [
"<value>",
],
})

if res is not None:
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.10.4"
version = "0.10.5"
description = "Python Client SDK Generated by Speakeasy"
authors = ["Speakeasy",]
readme = "README-PYPI.md"
Expand Down
15 changes: 12 additions & 3 deletions src/dub/models/operations/bulkupdatelinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,20 @@ def serialize_model(self, handler):


class BulkUpdateLinksRequestBodyTypedDict(TypedDict):
link_ids: List[str]
data: DataTypedDict
link_ids: NotRequired[List[str]]
r"""The IDs of the links to update. Takes precedence over `externalIds`."""
external_ids: NotRequired[List[str]]
r"""The external IDs of the links to update as stored in your database."""


class BulkUpdateLinksRequestBody(BaseModel):
link_ids: Annotated[List[str], pydantic.Field(alias="linkIds")]

data: Data

link_ids: Annotated[Optional[List[str]], pydantic.Field(alias="linkIds")] = None
r"""The IDs of the links to update. Takes precedence over `externalIds`."""

external_ids: Annotated[
Optional[List[str]], pydantic.Field(alias="externalIds")
] = None
r"""The external IDs of the links to update as stored in your database."""
4 changes: 2 additions & 2 deletions src/dub/models/operations/getlinkinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class GetLinkInfoRequestTypedDict(TypedDict):
link_id: NotRequired[str]
r"""The unique ID of the short link."""
external_id: NotRequired[str]
r"""This is the ID of the link in the your database. Must be prefixed with `ext_` when passed as a query parameter."""
r"""This is the ID of the link in the your database."""


class GetLinkInfoRequest(BaseModel):
Expand All @@ -42,4 +42,4 @@ class GetLinkInfoRequest(BaseModel):
pydantic.Field(alias="externalId"),
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
] = None
r"""This is the ID of the link in the your database. Must be prefixed with `ext_` when passed as a query parameter."""
r"""This is the ID of the link in the your database."""
6 changes: 3 additions & 3 deletions src/dub/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.10.4"
gen_version: str = "2.422.22"
user_agent: str = "speakeasy-sdk/python 0.10.4 2.422.22 0.0.1 dub"
sdk_version: str = "0.10.5"
gen_version: str = "2.426.2"
user_agent: str = "speakeasy-sdk/python 0.10.5 2.426.2 0.0.1 dub"
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
timeout_ms: Optional[int] = None

Expand Down

0 comments on commit d2f0146

Please sign in to comment.