diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 373e99a..7d4964f 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: f3ea51a606238d49d3b0b22c61387b74 + docChecksum: 2e29304d123e35c2bf5bfc8eb02ad913 docVersion: 0.0.1 - speakeasyVersion: 1.393.2 - generationVersion: 2.413.0 - releaseVersion: 0.8.0 - configChecksum: 76e281b18b6eb3dff3af809f37f32cfe + speakeasyVersion: 1.395.1 + generationVersion: 2.415.0 + releaseVersion: 0.8.1 + configChecksum: 12ec008de108071d1ed6323ebf45861d repoURL: https://github.com/dubinc/dub-python.git installationURL: https://github.com/dubinc/dub-python.git published: true diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index c77c3a0..a6d6c6e 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true python: - version: 0.8.0 + version: 0.8.1 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index ef0ca99..1c3968d 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.393.2 +speakeasyVersion: 1.395.1 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:b00ae466a9b68eaea40095dcb63fa2c4168cafd87826cc649f17e26ca5549b42 - sourceBlobDigest: sha256:0e90c8d3b076518f1be419c39b3f750a5c7d9cd7a9cab7884c3b0cce033556c1 + sourceRevisionDigest: sha256:d3ad0bf0c2af0510d20bd29806e344ae6c891182441b48b2866ff39bc6194381 + sourceBlobDigest: sha256:b7fc38109d275a1b1765f0dacf3c095fbe30413b8914b7cd03fd1e7e0507b56f tags: - latest - main @@ -11,10 +11,10 @@ targets: my-first-target: source: dub sourceNamespace: dub - sourceRevisionDigest: sha256:b00ae466a9b68eaea40095dcb63fa2c4168cafd87826cc649f17e26ca5549b42 - sourceBlobDigest: sha256:0e90c8d3b076518f1be419c39b3f750a5c7d9cd7a9cab7884c3b0cce033556c1 + sourceRevisionDigest: sha256:d3ad0bf0c2af0510d20bd29806e344ae6c891182441b48b2866ff39bc6194381 + sourceBlobDigest: sha256:b7fc38109d275a1b1765f0dacf3c095fbe30413b8914b7cd03fd1e7e0507b56f codeSamplesNamespace: code-samples-python-my-first-target - codeSamplesRevisionDigest: sha256:1257e76d9b2b2b24365bb319045f3e4e48555538da889781d1ac891121e2b943 + codeSamplesRevisionDigest: sha256:1cbe942f6d82ff9d1daab543f6a0a2138fc282455b74792f2cde8d68bea23c49 outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/RELEASES.md b/RELEASES.md index 2f82fd1..f4ac1d8 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -336,4 +336,14 @@ Based on: ### Generated - [python v0.8.0] . ### Releases -- [PyPI v0.8.0] https://pypi.org/project/dub/0.8.0 - . \ No newline at end of file +- [PyPI v0.8.0] https://pypi.org/project/dub/0.8.0 - . + +## 2024-09-11 00:25:14 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.395.1 (2.415.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.8.1] . +### Releases +- [PyPI v0.8.1] https://pypi.org/project/dub/0.8.1 - . \ No newline at end of file diff --git a/docs/models/components/analyticsbrowsers.md b/docs/models/components/analyticsbrowsers.md index 40d31b4..60a87a2 100644 --- a/docs/models/components/analyticsbrowsers.md +++ b/docs/models/components/analyticsbrowsers.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| `browser` | *str* | :heavy_check_mark: | The name of the browser | -| `clicks` | *Optional[float]* | :heavy_minus_sign: | The number of clicks from this browser | -| `leads` | *Optional[float]* | :heavy_minus_sign: | The number of leads from this browser | -| `sales` | *Optional[float]* | :heavy_minus_sign: | The number of sales from this browser | -| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this browser | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `browser` | *str* | :heavy_check_mark: | The name of the browser | +| `clicks` | *Optional[float]* | :heavy_minus_sign: | The number of clicks from this browser | +| `leads` | *Optional[float]* | :heavy_minus_sign: | The number of leads from this browser | +| `sales` | *Optional[float]* | :heavy_minus_sign: | The number of sales from this browser | +| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this browser, in cents | \ No newline at end of file diff --git a/docs/models/components/analyticscities.md b/docs/models/components/analyticscities.md index ab42c97..fbbe241 100644 --- a/docs/models/components/analyticscities.md +++ b/docs/models/components/analyticscities.md @@ -10,4 +10,4 @@ | `clicks` | *Optional[float]* | :heavy_minus_sign: | The number of clicks from this city | | `leads` | *Optional[float]* | :heavy_minus_sign: | The number of leads from this city | | `sales` | *Optional[float]* | :heavy_minus_sign: | The number of sales from this city | -| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this city | \ No newline at end of file +| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this city, in cents | \ No newline at end of file diff --git a/docs/models/components/analyticscount.md b/docs/models/components/analyticscount.md index b4545de..5e64376 100644 --- a/docs/models/components/analyticscount.md +++ b/docs/models/components/analyticscount.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -| `clicks` | *Optional[float]* | :heavy_minus_sign: | The total number of clicks | -| `leads` | *Optional[float]* | :heavy_minus_sign: | The total number of leads | -| `sales` | *Optional[float]* | :heavy_minus_sign: | The total number of sales | -| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `clicks` | *Optional[float]* | :heavy_minus_sign: | The total number of clicks | +| `leads` | *Optional[float]* | :heavy_minus_sign: | The total number of leads | +| `sales` | *Optional[float]* | :heavy_minus_sign: | The total number of sales | +| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales, in cents | \ No newline at end of file diff --git a/docs/models/components/analyticscountries.md b/docs/models/components/analyticscountries.md index 053347b..5f59ee6 100644 --- a/docs/models/components/analyticscountries.md +++ b/docs/models/components/analyticscountries.md @@ -10,4 +10,4 @@ | `clicks` | *Optional[float]* | :heavy_minus_sign: | The number of clicks from this country | | `leads` | *Optional[float]* | :heavy_minus_sign: | The number of leads from this country | | `sales` | *Optional[float]* | :heavy_minus_sign: | The number of sales from this country | -| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this country | \ No newline at end of file +| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this country, in cents | \ No newline at end of file diff --git a/docs/models/components/analyticsdevices.md b/docs/models/components/analyticsdevices.md index 34cefe5..a96918e 100644 --- a/docs/models/components/analyticsdevices.md +++ b/docs/models/components/analyticsdevices.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `device` | *str* | :heavy_check_mark: | The name of the device | -| `clicks` | *Optional[float]* | :heavy_minus_sign: | The number of clicks from this device | -| `leads` | *Optional[float]* | :heavy_minus_sign: | The number of leads from this device | -| `sales` | *Optional[float]* | :heavy_minus_sign: | The number of sales from this device | -| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this device | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `device` | *str* | :heavy_check_mark: | The name of the device | +| `clicks` | *Optional[float]* | :heavy_minus_sign: | The number of clicks from this device | +| `leads` | *Optional[float]* | :heavy_minus_sign: | The number of leads from this device | +| `sales` | *Optional[float]* | :heavy_minus_sign: | The number of sales from this device | +| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this device, in cents | \ No newline at end of file diff --git a/docs/models/components/analyticsos.md b/docs/models/components/analyticsos.md index 5ebba01..3c23ae7 100644 --- a/docs/models/components/analyticsos.md +++ b/docs/models/components/analyticsos.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | -| `os` | *str* | :heavy_check_mark: | The name of the OS | -| `clicks` | *Optional[float]* | :heavy_minus_sign: | The number of clicks from this OS | -| `leads` | *Optional[float]* | :heavy_minus_sign: | The number of leads from this OS | -| `sales` | *Optional[float]* | :heavy_minus_sign: | The number of sales from this OS | -| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this OS | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `os` | *str* | :heavy_check_mark: | The name of the OS | +| `clicks` | *Optional[float]* | :heavy_minus_sign: | The number of clicks from this OS | +| `leads` | *Optional[float]* | :heavy_minus_sign: | The number of leads from this OS | +| `sales` | *Optional[float]* | :heavy_minus_sign: | The number of sales from this OS | +| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this OS, in cents | \ No newline at end of file diff --git a/docs/models/components/analyticsreferers.md b/docs/models/components/analyticsreferers.md index 144784b..e71cd62 100644 --- a/docs/models/components/analyticsreferers.md +++ b/docs/models/components/analyticsreferers.md @@ -9,4 +9,4 @@ | `clicks` | *Optional[float]* | :heavy_minus_sign: | The number of clicks from this referer | | `leads` | *Optional[float]* | :heavy_minus_sign: | The number of leads from this referer | | `sales` | *Optional[float]* | :heavy_minus_sign: | The number of sales from this referer | -| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this referer | \ No newline at end of file +| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this referer, in cents | \ No newline at end of file diff --git a/docs/models/components/analyticstimeseries.md b/docs/models/components/analyticstimeseries.md index 7b60d9c..3dc7eb5 100644 --- a/docs/models/components/analyticstimeseries.md +++ b/docs/models/components/analyticstimeseries.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| `start` | *str* | :heavy_check_mark: | The starting timestamp of the interval | -| `clicks` | *Optional[float]* | :heavy_minus_sign: | The number of clicks in the interval | -| `leads` | *Optional[float]* | :heavy_minus_sign: | The number of leads in the interval | -| `sales` | *Optional[float]* | :heavy_minus_sign: | The number of sales in the interval | -| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales in the interval | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `start` | *str* | :heavy_check_mark: | The starting timestamp of the interval | +| `clicks` | *Optional[float]* | :heavy_minus_sign: | The number of clicks in the interval | +| `leads` | *Optional[float]* | :heavy_minus_sign: | The number of leads in the interval | +| `sales` | *Optional[float]* | :heavy_minus_sign: | The number of sales in the interval | +| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales in the interval, in cents | \ No newline at end of file diff --git a/docs/models/components/analyticstoplinks.md b/docs/models/components/analyticstoplinks.md index a8e8a4b..7b9cb77 100644 --- a/docs/models/components/analyticstoplinks.md +++ b/docs/models/components/analyticstoplinks.md @@ -15,4 +15,4 @@ | `clicks` | *Optional[float]* | :heavy_minus_sign: | The number of clicks from this link | | `leads` | *Optional[float]* | :heavy_minus_sign: | The number of leads from this link | | `sales` | *Optional[float]* | :heavy_minus_sign: | The number of sales from this link | -| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this link | \ No newline at end of file +| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this link, in cents | \ No newline at end of file diff --git a/docs/models/components/analyticstopurls.md b/docs/models/components/analyticstopurls.md index 71127ec..4c6c5f9 100644 --- a/docs/models/components/analyticstopurls.md +++ b/docs/models/components/analyticstopurls.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| `url` | *str* | :heavy_check_mark: | The destination URL | -| `clicks` | *Optional[float]* | :heavy_minus_sign: | The number of clicks from this URL | -| `leads` | *Optional[float]* | :heavy_minus_sign: | The number of leads from this URL | -| `sales` | *Optional[float]* | :heavy_minus_sign: | The number of sales from this URL | -| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this URL | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| `url` | *str* | :heavy_check_mark: | The destination URL | +| `clicks` | *Optional[float]* | :heavy_minus_sign: | The number of clicks from this URL | +| `leads` | *Optional[float]* | :heavy_minus_sign: | The number of leads from this URL | +| `sales` | *Optional[float]* | :heavy_minus_sign: | The number of sales from this URL | +| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this URL, in cents | \ No newline at end of file diff --git a/docs/models/components/leadeventlink.md b/docs/models/components/leadeventlink.md index 527cd1d..805bc5b 100644 --- a/docs/models/components/leadeventlink.md +++ b/docs/models/components/leadeventlink.md @@ -30,7 +30,7 @@ | `utm_campaign` | *Nullable[str]* | :heavy_check_mark: | The UTM campaign of the short link. | | `utm_term` | *Nullable[str]* | :heavy_check_mark: | The UTM term of the short link. | | `utm_content` | *Nullable[str]* | :heavy_check_mark: | The UTM content of the short link. | -| `user_id` | *str* | :heavy_check_mark: | The user ID of the creator of the short link. | +| `user_id` | *Nullable[str]* | :heavy_check_mark: | N/A | | `workspace_id` | *str* | :heavy_check_mark: | The workspace ID of the short link. | | `last_clicked` | *str* | :heavy_check_mark: | N/A | | `created_at` | *str* | :heavy_check_mark: | N/A | diff --git a/docs/models/components/link.md b/docs/models/components/link.md index 26d47a8..82901ab 100644 --- a/docs/models/components/link.md +++ b/docs/models/components/link.md @@ -30,7 +30,7 @@ | `utm_campaign` | *Nullable[str]* | :heavy_check_mark: | The UTM campaign of the short link. | | `utm_term` | *Nullable[str]* | :heavy_check_mark: | The UTM term of the short link. | | `utm_content` | *Nullable[str]* | :heavy_check_mark: | The UTM content of the short link. | -| `user_id` | *str* | :heavy_check_mark: | The user ID of the creator of the short link. | +| `user_id` | *Nullable[str]* | :heavy_check_mark: | N/A | | `workspace_id` | *str* | :heavy_check_mark: | The workspace ID of the short link. | | `last_clicked` | *str* | :heavy_check_mark: | N/A | | `created_at` | *str* | :heavy_check_mark: | N/A | diff --git a/docs/models/components/saleeventlink.md b/docs/models/components/saleeventlink.md index d4a9a4c..782d54d 100644 --- a/docs/models/components/saleeventlink.md +++ b/docs/models/components/saleeventlink.md @@ -30,7 +30,7 @@ | `utm_campaign` | *Nullable[str]* | :heavy_check_mark: | The UTM campaign of the short link. | | `utm_term` | *Nullable[str]* | :heavy_check_mark: | The UTM term of the short link. | | `utm_content` | *Nullable[str]* | :heavy_check_mark: | The UTM content of the short link. | -| `user_id` | *str* | :heavy_check_mark: | The user ID of the creator of the short link. | +| `user_id` | *Nullable[str]* | :heavy_check_mark: | N/A | | `workspace_id` | *str* | :heavy_check_mark: | The workspace ID of the short link. | | `last_clicked` | *str* | :heavy_check_mark: | N/A | | `created_at` | *str* | :heavy_check_mark: | N/A | diff --git a/pyproject.toml b/pyproject.toml index 9661191..52f1539 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dub" -version = "0.8.0" +version = "0.8.1" description = "Python Client SDK Generated by Speakeasy" authors = ["Speakeasy",] readme = "README-PYPI.md" diff --git a/src/dub/models/components/analyticsbrowsers.py b/src/dub/models/components/analyticsbrowsers.py index 850499c..32749ca 100644 --- a/src/dub/models/components/analyticsbrowsers.py +++ b/src/dub/models/components/analyticsbrowsers.py @@ -17,7 +17,7 @@ class AnalyticsBrowsersTypedDict(TypedDict): sales: NotRequired[float] r"""The number of sales from this browser""" sale_amount: NotRequired[float] - r"""The total amount of sales from this browser""" + r"""The total amount of sales from this browser, in cents""" class AnalyticsBrowsers(BaseModel): @@ -34,4 +34,4 @@ class AnalyticsBrowsers(BaseModel): r"""The number of sales from this browser""" sale_amount: Annotated[Optional[float], pydantic.Field(alias="saleAmount")] = 0 - r"""The total amount of sales from this browser""" + r"""The total amount of sales from this browser, in cents""" diff --git a/src/dub/models/components/analyticscities.py b/src/dub/models/components/analyticscities.py index 73e2233..a2d7a93 100644 --- a/src/dub/models/components/analyticscities.py +++ b/src/dub/models/components/analyticscities.py @@ -275,7 +275,7 @@ class AnalyticsCitiesTypedDict(TypedDict): sales: NotRequired[float] r"""The number of sales from this city""" sale_amount: NotRequired[float] - r"""The total amount of sales from this city""" + r"""The total amount of sales from this city, in cents""" class AnalyticsCities(BaseModel): @@ -295,4 +295,4 @@ class AnalyticsCities(BaseModel): r"""The number of sales from this city""" sale_amount: Annotated[Optional[float], pydantic.Field(alias="saleAmount")] = 0 - r"""The total amount of sales from this city""" + r"""The total amount of sales from this city, in cents""" diff --git a/src/dub/models/components/analyticscount.py b/src/dub/models/components/analyticscount.py index 6948252..a7f5ef0 100644 --- a/src/dub/models/components/analyticscount.py +++ b/src/dub/models/components/analyticscount.py @@ -15,7 +15,7 @@ class AnalyticsCountTypedDict(TypedDict): sales: NotRequired[float] r"""The total number of sales""" sale_amount: NotRequired[float] - r"""The total amount of sales""" + r"""The total amount of sales, in cents""" class AnalyticsCount(BaseModel): @@ -29,4 +29,4 @@ class AnalyticsCount(BaseModel): r"""The total number of sales""" sale_amount: Annotated[Optional[float], pydantic.Field(alias="saleAmount")] = 0 - r"""The total amount of sales""" + r"""The total amount of sales, in cents""" diff --git a/src/dub/models/components/analyticscountries.py b/src/dub/models/components/analyticscountries.py index 4ceba20..2462276 100644 --- a/src/dub/models/components/analyticscountries.py +++ b/src/dub/models/components/analyticscountries.py @@ -278,7 +278,7 @@ class AnalyticsCountriesTypedDict(TypedDict): sales: NotRequired[float] r"""The number of sales from this country""" sale_amount: NotRequired[float] - r"""The total amount of sales from this country""" + r"""The total amount of sales from this country, in cents""" class AnalyticsCountries(BaseModel): @@ -297,4 +297,4 @@ class AnalyticsCountries(BaseModel): r"""The number of sales from this country""" sale_amount: Annotated[Optional[float], pydantic.Field(alias="saleAmount")] = 0 - r"""The total amount of sales from this country""" + r"""The total amount of sales from this country, in cents""" diff --git a/src/dub/models/components/analyticsdevices.py b/src/dub/models/components/analyticsdevices.py index 84d4919..1250322 100644 --- a/src/dub/models/components/analyticsdevices.py +++ b/src/dub/models/components/analyticsdevices.py @@ -17,7 +17,7 @@ class AnalyticsDevicesTypedDict(TypedDict): sales: NotRequired[float] r"""The number of sales from this device""" sale_amount: NotRequired[float] - r"""The total amount of sales from this device""" + r"""The total amount of sales from this device, in cents""" class AnalyticsDevices(BaseModel): @@ -34,4 +34,4 @@ class AnalyticsDevices(BaseModel): r"""The number of sales from this device""" sale_amount: Annotated[Optional[float], pydantic.Field(alias="saleAmount")] = 0 - r"""The total amount of sales from this device""" + r"""The total amount of sales from this device, in cents""" diff --git a/src/dub/models/components/analyticsos.py b/src/dub/models/components/analyticsos.py index a6cc0cf..03823a8 100644 --- a/src/dub/models/components/analyticsos.py +++ b/src/dub/models/components/analyticsos.py @@ -17,7 +17,7 @@ class AnalyticsOSTypedDict(TypedDict): sales: NotRequired[float] r"""The number of sales from this OS""" sale_amount: NotRequired[float] - r"""The total amount of sales from this OS""" + r"""The total amount of sales from this OS, in cents""" class AnalyticsOS(BaseModel): @@ -34,4 +34,4 @@ class AnalyticsOS(BaseModel): r"""The number of sales from this OS""" sale_amount: Annotated[Optional[float], pydantic.Field(alias="saleAmount")] = 0 - r"""The total amount of sales from this OS""" + r"""The total amount of sales from this OS, in cents""" diff --git a/src/dub/models/components/analyticsreferers.py b/src/dub/models/components/analyticsreferers.py index c387057..043c060 100644 --- a/src/dub/models/components/analyticsreferers.py +++ b/src/dub/models/components/analyticsreferers.py @@ -17,7 +17,7 @@ class AnalyticsReferersTypedDict(TypedDict): sales: NotRequired[float] r"""The number of sales from this referer""" sale_amount: NotRequired[float] - r"""The total amount of sales from this referer""" + r"""The total amount of sales from this referer, in cents""" class AnalyticsReferers(BaseModel): @@ -34,4 +34,4 @@ class AnalyticsReferers(BaseModel): r"""The number of sales from this referer""" sale_amount: Annotated[Optional[float], pydantic.Field(alias="saleAmount")] = 0 - r"""The total amount of sales from this referer""" + r"""The total amount of sales from this referer, in cents""" diff --git a/src/dub/models/components/analyticstimeseries.py b/src/dub/models/components/analyticstimeseries.py index b1505eb..a97f412 100644 --- a/src/dub/models/components/analyticstimeseries.py +++ b/src/dub/models/components/analyticstimeseries.py @@ -17,7 +17,7 @@ class AnalyticsTimeseriesTypedDict(TypedDict): sales: NotRequired[float] r"""The number of sales in the interval""" sale_amount: NotRequired[float] - r"""The total amount of sales in the interval""" + r"""The total amount of sales in the interval, in cents""" class AnalyticsTimeseries(BaseModel): @@ -34,4 +34,4 @@ class AnalyticsTimeseries(BaseModel): r"""The number of sales in the interval""" sale_amount: Annotated[Optional[float], pydantic.Field(alias="saleAmount")] = 0 - r"""The total amount of sales in the interval""" + r"""The total amount of sales in the interval, in cents""" diff --git a/src/dub/models/components/analyticstoplinks.py b/src/dub/models/components/analyticstoplinks.py index 620d155..16096a0 100644 --- a/src/dub/models/components/analyticstoplinks.py +++ b/src/dub/models/components/analyticstoplinks.py @@ -29,7 +29,7 @@ class AnalyticsTopLinksTypedDict(TypedDict): sales: NotRequired[float] r"""The number of sales from this link""" sale_amount: NotRequired[float] - r"""The total amount of sales from this link""" + r"""The total amount of sales from this link, in cents""" class AnalyticsTopLinks(BaseModel): @@ -69,4 +69,4 @@ class AnalyticsTopLinks(BaseModel): r"""The number of sales from this link""" sale_amount: Annotated[Optional[float], pydantic.Field(alias="saleAmount")] = 0 - r"""The total amount of sales from this link""" + r"""The total amount of sales from this link, in cents""" diff --git a/src/dub/models/components/analyticstopurls.py b/src/dub/models/components/analyticstopurls.py index 3eb361f..502346a 100644 --- a/src/dub/models/components/analyticstopurls.py +++ b/src/dub/models/components/analyticstopurls.py @@ -17,7 +17,7 @@ class AnalyticsTopUrlsTypedDict(TypedDict): sales: NotRequired[float] r"""The number of sales from this URL""" sale_amount: NotRequired[float] - r"""The total amount of sales from this URL""" + r"""The total amount of sales from this URL, in cents""" class AnalyticsTopUrls(BaseModel): @@ -34,4 +34,4 @@ class AnalyticsTopUrls(BaseModel): r"""The number of sales from this URL""" sale_amount: Annotated[Optional[float], pydantic.Field(alias="saleAmount")] = 0 - r"""The total amount of sales from this URL""" + r"""The total amount of sales from this URL, in cents""" diff --git a/src/dub/models/components/clickevent.py b/src/dub/models/components/clickevent.py index 7471361..837a67b 100644 --- a/src/dub/models/components/clickevent.py +++ b/src/dub/models/components/clickevent.py @@ -860,8 +860,7 @@ class LinkTypedDict(TypedDict): r"""The UTM term of the short link.""" utm_content: Nullable[str] r"""The UTM content of the short link.""" - user_id: str - r"""The user ID of the creator of the short link.""" + user_id: Nullable[str] workspace_id: str r"""The workspace ID of the short link.""" last_clicked: str @@ -965,8 +964,7 @@ class Link(BaseModel): utm_content: Nullable[str] r"""The UTM content of the short link.""" - user_id: Annotated[str, pydantic.Field(alias="userId")] - r"""The user ID of the creator of the short link.""" + user_id: Annotated[Nullable[str], pydantic.Field(alias="userId")] workspace_id: Annotated[str, pydantic.Field(alias="workspaceId")] r"""The workspace ID of the short link.""" @@ -1045,6 +1043,7 @@ def serialize_model(self, handler): "utm_campaign", "utm_term", "utm_content", + "userId", ] null_default_fields = [] diff --git a/src/dub/models/components/leadevent.py b/src/dub/models/components/leadevent.py index 95b4160..5eec9cc 100644 --- a/src/dub/models/components/leadevent.py +++ b/src/dub/models/components/leadevent.py @@ -860,8 +860,7 @@ class LeadEventLinkTypedDict(TypedDict): r"""The UTM term of the short link.""" utm_content: Nullable[str] r"""The UTM content of the short link.""" - user_id: str - r"""The user ID of the creator of the short link.""" + user_id: Nullable[str] workspace_id: str r"""The workspace ID of the short link.""" last_clicked: str @@ -965,8 +964,7 @@ class LeadEventLink(BaseModel): utm_content: Nullable[str] r"""The UTM content of the short link.""" - user_id: Annotated[str, pydantic.Field(alias="userId")] - r"""The user ID of the creator of the short link.""" + user_id: Annotated[Nullable[str], pydantic.Field(alias="userId")] workspace_id: Annotated[str, pydantic.Field(alias="workspaceId")] r"""The workspace ID of the short link.""" @@ -1045,6 +1043,7 @@ def serialize_model(self, handler): "utm_campaign", "utm_term", "utm_content", + "userId", ] null_default_fields = [] diff --git a/src/dub/models/components/saleevent.py b/src/dub/models/components/saleevent.py index 669be79..f783b1c 100644 --- a/src/dub/models/components/saleevent.py +++ b/src/dub/models/components/saleevent.py @@ -822,8 +822,7 @@ class SaleEventLinkTypedDict(TypedDict): r"""The UTM term of the short link.""" utm_content: Nullable[str] r"""The UTM content of the short link.""" - user_id: str - r"""The user ID of the creator of the short link.""" + user_id: Nullable[str] workspace_id: str r"""The workspace ID of the short link.""" last_clicked: str @@ -927,8 +926,7 @@ class SaleEventLink(BaseModel): utm_content: Nullable[str] r"""The UTM content of the short link.""" - user_id: Annotated[str, pydantic.Field(alias="userId")] - r"""The user ID of the creator of the short link.""" + user_id: Annotated[Nullable[str], pydantic.Field(alias="userId")] workspace_id: Annotated[str, pydantic.Field(alias="workspaceId")] r"""The workspace ID of the short link.""" @@ -1007,6 +1005,7 @@ def serialize_model(self, handler): "utm_campaign", "utm_term", "utm_content", + "userId", ] null_default_fields = [] diff --git a/src/dub/sdkconfiguration.py b/src/dub/sdkconfiguration.py index d2af4a7..ab31954 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.8.0" - gen_version: str = "2.413.0" - user_agent: str = "speakeasy-sdk/python 0.8.0 2.413.0 0.0.1 dub" + sdk_version: str = "0.8.1" + gen_version: str = "2.415.0" + user_agent: str = "speakeasy-sdk/python 0.8.1 2.415.0 0.0.1 dub" retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET) timeout_ms: Optional[int] = None