Skip to content

Commit

Permalink
Merge pull request #103 from dubinc/speakeasy-sdk-regen-1740961707
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.19.4
  • Loading branch information
devkiran authored Mar 3, 2025
2 parents d881a3f + c75979c commit dbf8dc6
Show file tree
Hide file tree
Showing 15 changed files with 68 additions and 32 deletions.
21 changes: 11 additions & 10 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 0.19.3
version: 0.19.4
additionalDependencies:
dev: {}
main: {}
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.508.0
speakeasyVersion: 1.508.1
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:984c7b2a1a385d923bbade2a2ba226aad133acab481e975fb368f04f384e4149
sourceBlobDigest: sha256:3215a31a6ebc724b61935a86a153943bd9d37344bd752873e647e0e8a5b7ce90
sourceRevisionDigest: sha256:1e47e0577b031bdcfbb69c63f4c95599ed3007381cd9ba8c7ebbae248751ea7c
sourceBlobDigest: sha256:a6033ff39e1570b48be27d53ad4bae552ea68439776d57be4abea12ecf13de18
tags:
- latest
- speakeasy-sdk-regen-1740788973
- speakeasy-sdk-regen-1740961707
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:984c7b2a1a385d923bbade2a2ba226aad133acab481e975fb368f04f384e4149
sourceBlobDigest: sha256:3215a31a6ebc724b61935a86a153943bd9d37344bd752873e647e0e8a5b7ce90
sourceRevisionDigest: sha256:1e47e0577b031bdcfbb69c63f4c95599ed3007381cd9ba8c7ebbae248751ea7c
sourceBlobDigest: sha256:a6033ff39e1570b48be27d53ad4bae552ea68439776d57be4abea12ecf13de18
codeSamplesNamespace: code-samples-python-my-first-target
codeSamplesRevisionDigest: sha256:6c492d22f680dda9ddb7499e54d71bd6a9ad8d736477a53da51e2a5eb27616e1
codeSamplesRevisionDigest: sha256:75e7a55b1751ad8632c72d7190c8ef9add6ceca86e1b03e4d5b9db71012bc3e0
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 @@ -936,4 +936,14 @@ Based on:
### Generated
- [python v0.19.3] .
### Releases
- [PyPI v0.19.3] https://pypi.org/project/dub/0.19.3 - .
- [PyPI v0.19.3] https://pypi.org/project/dub/0.19.3 - .

## 2025-03-03 00:28:12
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.508.1 (2.536.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.19.4] .
### Releases
- [PyPI v0.19.4] https://pypi.org/project/dub/0.19.4 - .
2 changes: 1 addition & 1 deletion docs/models/components/discount.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
| `coupon_id` | *Nullable[str]* | :heavy_check_mark: | N/A |
| `coupon_test_id` | *Nullable[str]* | :heavy_check_mark: | N/A |
| `amount` | *float* | :heavy_check_mark: | N/A |
| `type` | [components.Type](../../models/components/type.md) | :heavy_check_mark: | N/A |
| `type` | [components.LeadEventType](../../models/components/leadeventtype.md) | :heavy_check_mark: | N/A |
| `duration` | *Nullable[float]* | :heavy_check_mark: | N/A |
| `interval` | [Nullable[components.Interval]](../../models/components/interval.md) | :heavy_check_mark: | N/A |
1 change: 1 addition & 0 deletions docs/models/components/folderschema.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| `id` | *str* | :heavy_check_mark: | The unique ID of the folder. |
| `name` | *str* | :heavy_check_mark: | The name of the folder. |
| `type` | [components.Type](../../models/components/type.md) | :heavy_check_mark: | N/A |
| `created_at` | *str* | :heavy_check_mark: | The date the folder was created. |
| `updated_at` | *str* | :heavy_check_mark: | The date the folder was updated. |
| `access_level` | [OptionalNullable[components.AccessLevel]](../../models/components/accesslevel.md) | :heavy_minus_sign: | The access level of the folder within the workspace. |
Expand Down
9 changes: 9 additions & 0 deletions docs/models/components/leadeventtype.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# LeadEventType


## Values

| Name | Value |
| ------------ | ------------ |
| `PERCENTAGE` | percentage |
| `FLAT` | flat |
8 changes: 4 additions & 4 deletions docs/models/components/type.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Values

| Name | Value |
| ------------ | ------------ |
| `PERCENTAGE` | percentage |
| `FLAT` | flat |
| Name | Value |
| --------- | --------- |
| `DEFAULT` | default |
| `MEGA` | mega |
1 change: 1 addition & 0 deletions docs/models/components/workspaceschema.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
| `billing_cycle_start` | *float* | :heavy_check_mark: | The date and time when the billing cycle starts for the workspace. | |
| `payment_failed_at` | *Nullable[str]* | :heavy_check_mark: | The date and time when the payment failed for the workspace. | |
| `stripe_connect_id` | *Nullable[str]* | :heavy_check_mark: | The Stripe Connect ID of the workspace. | |
| `total_links` | *float* | :heavy_check_mark: | The total number of links in the workspace. | |
| `usage` | *float* | :heavy_check_mark: | The usage of the workspace. | |
| `usage_limit` | *float* | :heavy_check_mark: | The usage limit of the workspace. | |
| `links_usage` | *float* | :heavy_check_mark: | The links usage of the workspace. | |
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "dub"
version = "0.19.3"
version = "0.19.4"
description = "Python Client SDK Generated by Speakeasy"
authors = [{ name = "Speakeasy" },]
readme = "README-PYPI.md"
Expand Down
4 changes: 2 additions & 2 deletions src/dub/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import importlib.metadata

__title__: str = "dub"
__version__: str = "0.19.3"
__version__: str = "0.19.4"
__openapi_doc_version__: str = "0.0.1"
__gen_version__: str = "2.536.0"
__user_agent__: str = "speakeasy-sdk/python 0.19.3 2.536.0 0.0.1 dub"
__user_agent__: str = "speakeasy-sdk/python 0.19.4 2.536.0 0.0.1 dub"

try:
if __package__ is not None:
Expand Down
5 changes: 3 additions & 2 deletions src/dub/models/components/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
RegisteredDomain,
RegisteredDomainTypedDict,
)
from .folderschema import AccessLevel, FolderSchema, FolderSchemaTypedDict
from .folderschema import AccessLevel, FolderSchema, FolderSchemaTypedDict, Type
from .leadcreatedevent import (
LeadCreatedEvent,
LeadCreatedEventClick,
Expand Down Expand Up @@ -93,10 +93,10 @@
LeadEventGeoTypedDict,
LeadEventLink,
LeadEventLinkTypedDict,
LeadEventType,
LeadEventTypedDict,
Partner,
PartnerTypedDict,
Type,
)
from .linkclickedevent import (
LinkClickedEvent,
Expand Down Expand Up @@ -304,6 +304,7 @@
"LeadEventGeoTypedDict",
"LeadEventLink",
"LeadEventLinkTypedDict",
"LeadEventType",
"LeadEventTypedDict",
"Link",
"LinkClickedEvent",
Expand Down
8 changes: 8 additions & 0 deletions src/dub/models/components/folderschema.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
from typing_extensions import Annotated, NotRequired, TypedDict


class Type(str, Enum):
DEFAULT = "default"
MEGA = "mega"


class AccessLevel(str, Enum):
r"""The access level of the folder within the workspace."""

Expand All @@ -21,6 +26,7 @@ class FolderSchemaTypedDict(TypedDict):
r"""The unique ID of the folder."""
name: str
r"""The name of the folder."""
type: Type
created_at: str
r"""The date the folder was created."""
updated_at: str
Expand All @@ -38,6 +44,8 @@ class FolderSchema(BaseModel):
name: str
r"""The name of the folder."""

type: Type

created_at: Annotated[str, pydantic.Field(alias="createdAt")]
r"""The date the folder was created."""

Expand Down
6 changes: 3 additions & 3 deletions src/dub/models/components/leadevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ def serialize_model(self, handler):
return m


class Type(str, Enum):
class LeadEventType(str, Enum):
PERCENTAGE = "percentage"
FLAT = "flat"

Expand All @@ -1230,7 +1230,7 @@ class DiscountTypedDict(TypedDict):
coupon_id: Nullable[str]
coupon_test_id: Nullable[str]
amount: float
type: Type
type: LeadEventType
duration: Nullable[float]
interval: Nullable[Interval]

Expand All @@ -1244,7 +1244,7 @@ class Discount(BaseModel):

amount: float

type: Type
type: LeadEventType

duration: Nullable[float]

Expand Down
5 changes: 5 additions & 0 deletions src/dub/models/components/workspaceschema.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ class WorkspaceSchemaTypedDict(TypedDict):
r"""The date and time when the payment failed for the workspace."""
stripe_connect_id: Nullable[str]
r"""The Stripe Connect ID of the workspace."""
total_links: float
r"""The total number of links in the workspace."""
usage: float
r"""The usage of the workspace."""
usage_limit: float
Expand Down Expand Up @@ -153,6 +155,9 @@ class WorkspaceSchema(BaseModel):
stripe_connect_id: Annotated[Nullable[str], pydantic.Field(alias="stripeConnectId")]
r"""The Stripe Connect ID of the workspace."""

total_links: Annotated[float, pydantic.Field(alias="totalLinks")]
r"""The total number of links in the workspace."""

usage: float
r"""The usage of the workspace."""

Expand Down

0 comments on commit dbf8dc6

Please sign in to comment.