From 1def49db5cfb76a03109634d6ef9869e2cebc1f0 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 20 Feb 2025 18:15:24 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.498.1 --- .speakeasy/gen.lock | 20 +- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 14 +- RELEASES.md | 12 +- docs/models/components/analyticscities.md | 17 +- .../components/analyticscitiesregion.md | 8 + docs/models/components/analyticscountries.md | 1 + docs/models/components/analyticsregions.md | 14 + .../models/components/analyticsregionscity.md | 8 + .../components/analyticsregionscountry.md | 259 +++++++++++++++ docs/models/components/region.md | 8 + .../retrieveanalyticsresponsebody.md | 6 + .../models/operations/trackleadrequestbody.md | 5 +- .../models/operations/tracksalerequestbody.md | 2 +- pyproject.toml | 2 +- src/dub/_version.py | 6 +- src/dub/models/components/__init__.py | 14 + src/dub/models/components/analyticscities.py | 15 +- .../models/components/analyticscountries.py | 7 + src/dub/models/components/analyticsregions.py | 305 ++++++++++++++++++ .../models/operations/retrieveanalytics.py | 3 + src/dub/models/operations/tracklead.py | 17 +- src/dub/models/operations/tracksale.py | 4 +- 23 files changed, 708 insertions(+), 41 deletions(-) create mode 100644 docs/models/components/analyticscitiesregion.md create mode 100644 docs/models/components/analyticsregions.md create mode 100644 docs/models/components/analyticsregionscity.md create mode 100644 docs/models/components/analyticsregionscountry.md create mode 100644 docs/models/components/region.md create mode 100644 src/dub/models/components/analyticsregions.py diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 27cffae..86db3b6 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: e3442b7d8a069ceffe7996dbc51acd18 + docChecksum: 5c0491cfcee25b41f205f3c48b5c0c8a docVersion: 0.0.1 - speakeasyVersion: 1.497.0 - generationVersion: 2.517.3 - releaseVersion: 0.18.5 - configChecksum: 3da779335ff7be5923bba36aab30fe8a + speakeasyVersion: 1.498.1 + generationVersion: 2.518.1 + releaseVersion: 0.18.6 + configChecksum: c30914588103c2b6d1244773d48ba67c repoURL: https://github.com/dubinc/dub-python.git installationURL: https://github.com/dubinc/dub-python.git published: true @@ -43,6 +43,7 @@ generatedFiles: - docs/models/components/analyticsbrowsers.md - docs/models/components/analyticscities.md - docs/models/components/analyticscitiescountry.md + - docs/models/components/analyticscitiesregion.md - docs/models/components/analyticscontinents.md - docs/models/components/analyticscount.md - docs/models/components/analyticscountries.md @@ -50,6 +51,9 @@ generatedFiles: - docs/models/components/analyticsos.md - docs/models/components/analyticsreferers.md - docs/models/components/analyticsrefererurls.md + - docs/models/components/analyticsregions.md + - docs/models/components/analyticsregionscity.md + - docs/models/components/analyticsregionscountry.md - docs/models/components/analyticstimeseries.md - docs/models/components/analyticstoplinks.md - docs/models/components/analyticstopurls.md @@ -115,6 +119,7 @@ generatedFiles: - docs/models/components/partnercreatedeventevent.md - docs/models/components/paymentprocessor.md - docs/models/components/plan.md + - docs/models/components/region.md - docs/models/components/registereddomain.md - docs/models/components/role.md - docs/models/components/sale.md @@ -374,6 +379,7 @@ generatedFiles: - src/dub/models/components/analyticsos.py - src/dub/models/components/analyticsreferers.py - src/dub/models/components/analyticsrefererurls.py + - src/dub/models/components/analyticsregions.py - src/dub/models/components/analyticstimeseries.py - src/dub/models/components/analyticstoplinks.py - src/dub/models/components/analyticstopurls.py @@ -758,7 +764,7 @@ examples: refererUrl: "https://dub.co/blog" responses: "200": - application/json: [{"city": "West Aubrey", "country": "MR", "clicks": 0, "leads": 0, "sales": 0, "saleAmount": 0}, {"city": "Creminfield", "country": "AZ", "clicks": 0, "leads": 0, "sales": 0, "saleAmount": 0}, {"city": "VonRuedenville", "country": "CF", "clicks": 0, "leads": 0, "sales": 0, "saleAmount": 0}] + application/json: [{"country": "MR", "region": "*", "city": "West Aubrey", "clicks": 0, "leads": 0, "sales": 0, "saleAmount": 0}, {"country": "AZ", "region": "*", "city": "Creminfield", "clicks": 0, "leads": 0, "sales": 0, "saleAmount": 0}, {"country": "CF", "region": "*", "city": "VonRuedenville", "clicks": 0, "leads": 0, "sales": 0, "saleAmount": 0}] "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": @@ -796,7 +802,7 @@ examples: sortBy: "timestamp" responses: "200": - application/json: [{"event": "sale", "eventId": "", "eventName": "", "link": {"id": "", "domain": "remorseful-concentration.biz", "key": "", "url": "https://primary-paintwork.com/", "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "expiresAt": "1762663605343", "expiredUrl": "https://black-poetry.name/", "password": "COyVtOrvIw1vLIJ", "title": "", "description": "despite er boom however when uh-huh", "image": "https://picsum.photos/seed/T1tZJLp1EG/3827/3109", "video": "https://loremflickr.com/2420/1632?lock=7470650813503352", "ios": "", "android": "", "geo": {}, "tagId": "", "tags": [{"id": "", "name": "", "color": "green"}], "folderId": "", "webhookIds": [], "comments": "tenement commonly softly boo massive sorrowful", "shortLink": "https://dense-custom.info/", "qrCode": "https://alive-lid.biz", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 0, "lastClicked": "", "leads": 0, "sales": 0, "saleAmount": 0, "createdAt": "1728076416897", "updatedAt": "1739950044897", "projectId": ""}, "click": {"id": "", "timestamp": "", "url": "https://utilized-quit.net/", "country": "Togo", "city": "Cormiermouth", "region": "", "continent": "North America", "device": "Mobile", "browser": "Chrome", "os": "Chrome OS", "referer": "gummy-cope.net", "refererUrl": "https://prickly-bourgeoisie.info/", "ip": "69bd:53cd:cebc:ac4b:d1e8:50e8:ee59:b0b3"}, "customer": {"id": "", "externalId": "", "name": "", "createdAt": "1738831961357"}, "sale": {"amount": 625809, "invoiceId": null, "paymentProcessor": "stripe"}, "saleAmount": 1401.42, "invoice_id": "", "payment_processor": "", "click_id": "", "link_id": "", "domain": "unruly-allegation.name", "key": "", "url": "https://fortunate-swim.info/", "continent": "Australia", "country": "Cook Islands", "city": "South Harryburgh", "device": "Mobile", "browser": "Safari", "os": "WebOS", "qr": 1523.03, "ip": "caf5:04dc:da9e:67cc:af3b:8caf:afbe:e39c"}, {"event": "sale", "eventId": "", "eventName": "", "link": {"id": "", "domain": "right-window.biz", "key": "", "url": "https://physical-experience.org/", "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "expiresAt": "1751354958941", "expiredUrl": "https://indelible-birdbath.net", "password": "4yMlkCXkK5ppW3u", "title": "", "description": "terribly gosh facilitate in", "image": "https://loremflickr.com/2596/954?lock=8527955982122580", "video": "https://loremflickr.com/3336/742?lock=2177640289466521", "ios": "", "android": "", "geo": {}, "tagId": "", "tags": [{"id": "", "name": "", "color": "red"}, {"id": "", "name": "", "color": "pink"}, {"id": "", "name": "", "color": "pink"}], "folderId": "", "webhookIds": ["", "", ""], "comments": "up so pro pish clear-cut an mid aw disconnection which wetly typeface usable underneath putrefy ah aha", "shortLink": "https://knowledgeable-season.info", "qrCode": "https://nimble-individual.biz/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 0, "lastClicked": "", "leads": 0, "sales": 0, "saleAmount": 0, "createdAt": "1738570682649", "updatedAt": "1739955766113", "projectId": ""}, "click": {"id": "", "timestamp": "", "url": "https://perfumed-marketplace.com/", "country": "Burundi", "city": "Stockton", "region": "", "continent": "Asia", "device": "Desktop", "browser": "Chrome", "os": "Symbian", "referer": "well-off-hygienic.org", "refererUrl": "https://ripe-ceramic.org", "ip": "eebc:cce9:cecf:ebeb:dfd9:15f2:a0cc:a3b1"}, "customer": {"id": "", "externalId": "", "name": "", "createdAt": "1722931627473"}, "sale": {"amount": 443316, "invoiceId": null, "paymentProcessor": "paddle"}, "saleAmount": 2634.98, "invoice_id": "", "payment_processor": "", "click_id": "", "link_id": "", "domain": "next-cricket.biz", "key": "", "url": "https://repentant-rust.name/", "continent": "Australia", "country": "Saint Helena", "city": "Luettgenfort", "device": "Mobile", "browser": "Safari", "os": "Chrome OS", "qr": 4390.32, "ip": "54.229.114.129"}] + application/json: [{"event": "sale", "eventId": "", "eventName": "", "link": {"id": "", "domain": "remorseful-concentration.biz", "key": "", "url": "https://primary-paintwork.com/", "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "expiresAt": "1762727685996", "expiredUrl": "https://black-poetry.name/", "password": "COyVtOrvIw1vLIJ", "title": "", "description": "despite er boom however when uh-huh", "image": "https://picsum.photos/seed/T1tZJLp1EG/3827/3109", "video": "https://loremflickr.com/2420/1632?lock=7470650813503352", "ios": "", "android": "", "geo": {}, "tagId": "", "tags": [{"id": "", "name": "", "color": "green"}], "folderId": "", "webhookIds": [], "comments": "tenement commonly softly boo massive sorrowful", "shortLink": "https://dense-custom.info/", "qrCode": "https://alive-lid.biz", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 0, "lastClicked": "", "leads": 0, "sales": 0, "saleAmount": 0, "createdAt": "1728140497547", "updatedAt": "1740014125546", "projectId": ""}, "click": {"id": "", "timestamp": "", "url": "https://utilized-quit.net/", "country": "Togo", "city": "Cormiermouth", "region": "", "continent": "North America", "device": "Mobile", "browser": "Chrome", "os": "Chrome OS", "referer": "gummy-cope.net", "refererUrl": "https://prickly-bourgeoisie.info/", "ip": "69bd:53cd:cebc:ac4b:d1e8:50e8:ee59:b0b3"}, "customer": {"id": "", "externalId": "", "name": "", "createdAt": "1738896042006"}, "sale": {"amount": 625809, "invoiceId": null, "paymentProcessor": "stripe"}, "saleAmount": 1401.42, "invoice_id": "", "payment_processor": "", "click_id": "", "link_id": "", "domain": "unruly-allegation.name", "key": "", "url": "https://fortunate-swim.info/", "continent": "Australia", "country": "Cook Islands", "city": "South Harryburgh", "device": "Mobile", "browser": "Safari", "os": "WebOS", "qr": 1523.03, "ip": "caf5:04dc:da9e:67cc:af3b:8caf:afbe:e39c"}, {"event": "sale", "eventId": "", "eventName": "", "link": {"id": "", "domain": "right-window.biz", "key": "", "url": "https://physical-experience.org/", "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "expiresAt": "1751419039592", "expiredUrl": "https://indelible-birdbath.net", "password": "4yMlkCXkK5ppW3u", "title": "", "description": "terribly gosh facilitate in", "image": "https://loremflickr.com/2596/954?lock=8527955982122580", "video": "https://loremflickr.com/3336/742?lock=2177640289466521", "ios": "", "android": "", "geo": {}, "tagId": "", "tags": [{"id": "", "name": "", "color": "red"}, {"id": "", "name": "", "color": "pink"}, {"id": "", "name": "", "color": "pink"}], "folderId": "", "webhookIds": ["", "", ""], "comments": "up so pro pish clear-cut an mid aw disconnection which wetly typeface usable underneath putrefy ah aha", "shortLink": "https://knowledgeable-season.info", "qrCode": "https://nimble-individual.biz/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 0, "lastClicked": "", "leads": 0, "sales": 0, "saleAmount": 0, "createdAt": "1738634763335", "updatedAt": "1740019846799", "projectId": ""}, "click": {"id": "", "timestamp": "", "url": "https://perfumed-marketplace.com/", "country": "Burundi", "city": "Stockton", "region": "", "continent": "Asia", "device": "Desktop", "browser": "Chrome", "os": "Symbian", "referer": "well-off-hygienic.org", "refererUrl": "https://ripe-ceramic.org", "ip": "eebc:cce9:cecf:ebeb:dfd9:15f2:a0cc:a3b1"}, "customer": {"id": "", "externalId": "", "name": "", "createdAt": "1722995708158"}, "sale": {"amount": 443316, "invoiceId": null, "paymentProcessor": "paddle"}, "saleAmount": 2634.98, "invoice_id": "", "payment_processor": "", "click_id": "", "link_id": "", "domain": "next-cricket.biz", "key": "", "url": "https://repentant-rust.name/", "continent": "Australia", "country": "Saint Helena", "city": "Luettgenfort", "device": "Mobile", "browser": "Safari", "os": "Chrome OS", "qr": 4390.32, "ip": "54.229.114.129"}] "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 5d3f4dc..a5d30eb 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -15,7 +15,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false python: - version: 0.18.5 + version: 0.18.6 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index b69e13c..045bc76 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.497.0 +speakeasyVersion: 1.498.1 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:f94e8ff39d53cbd80e1e9e46facf8c88b3f2a5111c691520d4555ebaffd51711 - sourceBlobDigest: sha256:3c6ed37567189334fc44a7c0a4de25f44d5bbff13fddc6a5e7c8878ee1edd642 + sourceRevisionDigest: sha256:55c6bfab0b39ad167f1b3bd478449d0e214859c69b7bbea68fb12c3b6be04f12 + sourceBlobDigest: sha256:01a5259b54a6234c30a4778be764e1c06a24d67b165e9bcf91a4342597365788 tags: - latest - - speakeasy-sdk-regen-1739924784 + - speakeasy-sdk-regen-1740075260 - 0.0.1 targets: my-first-target: source: dub sourceNamespace: dub - sourceRevisionDigest: sha256:f94e8ff39d53cbd80e1e9e46facf8c88b3f2a5111c691520d4555ebaffd51711 - sourceBlobDigest: sha256:3c6ed37567189334fc44a7c0a4de25f44d5bbff13fddc6a5e7c8878ee1edd642 + sourceRevisionDigest: sha256:55c6bfab0b39ad167f1b3bd478449d0e214859c69b7bbea68fb12c3b6be04f12 + sourceBlobDigest: sha256:01a5259b54a6234c30a4778be764e1c06a24d67b165e9bcf91a4342597365788 codeSamplesNamespace: code-samples-python-my-first-target - codeSamplesRevisionDigest: sha256:14b9e87dd9099db94daf259258dbfc37d312bc9b54605df90530bc4a0f6ce3c1 + codeSamplesRevisionDigest: sha256:370b3512a1c76d56689214547083096c7f876b1c2180fa9dd7168bdd6cb97645 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index e01ab83..509c8ca 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -886,4 +886,14 @@ Based on: ### Generated - [python v0.18.5] . ### Releases -- [PyPI v0.18.5] https://pypi.org/project/dub/0.18.5 - . \ No newline at end of file +- [PyPI v0.18.5] https://pypi.org/project/dub/0.18.5 - . + +## 2025-02-20 18:14:03 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.498.1 (2.518.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.18.6] . +### Releases +- [PyPI v0.18.6] https://pypi.org/project/dub/0.18.6 - . \ No newline at end of file diff --git a/docs/models/components/analyticscities.md b/docs/models/components/analyticscities.md index fbbe241..a7ee916 100644 --- a/docs/models/components/analyticscities.md +++ b/docs/models/components/analyticscities.md @@ -3,11 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `city` | *str* | :heavy_check_mark: | The name of the city | -| `country` | [components.AnalyticsCitiesCountry](../../models/components/analyticscitiescountry.md) | :heavy_check_mark: | The 2-letter country code of the city: https://d.to/geo | -| `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, in cents | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `country` | [components.AnalyticsCitiesCountry](../../models/components/analyticscitiescountry.md) | :heavy_check_mark: | The 2-letter country code of the city: https://d.to/geo | +| `city` | *str* | :heavy_check_mark: | The name of the city | +| `region` | [Optional[components.AnalyticsCitiesRegion]](../../models/components/analyticscitiesregion.md) | :heavy_minus_sign: | N/A | +| `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, in cents | \ No newline at end of file diff --git a/docs/models/components/analyticscitiesregion.md b/docs/models/components/analyticscitiesregion.md new file mode 100644 index 0000000..e7b3784 --- /dev/null +++ b/docs/models/components/analyticscitiesregion.md @@ -0,0 +1,8 @@ +# AnalyticsCitiesRegion + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `WILDCARD_` | * | \ No newline at end of file diff --git a/docs/models/components/analyticscountries.md b/docs/models/components/analyticscountries.md index 5f59ee6..c13c65f 100644 --- a/docs/models/components/analyticscountries.md +++ b/docs/models/components/analyticscountries.md @@ -6,6 +6,7 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | | `country` | [components.Country](../../models/components/country.md) | :heavy_check_mark: | The 2-letter ISO 3166-1 country code for the country associated with the location of the user. Learn more: https://d.to/geo | +| `region` | [Optional[components.Region]](../../models/components/region.md) | :heavy_minus_sign: | N/A | | `city` | [Optional[components.City]](../../models/components/city.md) | :heavy_minus_sign: | N/A | | `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 | diff --git a/docs/models/components/analyticsregions.md b/docs/models/components/analyticsregions.md new file mode 100644 index 0000000..b9d651c --- /dev/null +++ b/docs/models/components/analyticsregions.md @@ -0,0 +1,14 @@ +# AnalyticsRegions + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `country` | [components.AnalyticsRegionsCountry](../../models/components/analyticsregionscountry.md) | :heavy_check_mark: | The 2-letter country code of the region: https://d.to/geo | +| `region` | *str* | :heavy_check_mark: | The 2-letter ISO 3166-2 region code representing the region associated with the location of the user. | +| `city` | [Optional[components.AnalyticsRegionsCity]](../../models/components/analyticsregionscity.md) | :heavy_minus_sign: | N/A | +| `clicks` | *Optional[float]* | :heavy_minus_sign: | The number of clicks from this region | +| `leads` | *Optional[float]* | :heavy_minus_sign: | The number of leads from this region | +| `sales` | *Optional[float]* | :heavy_minus_sign: | The number of sales from this region | +| `sale_amount` | *Optional[float]* | :heavy_minus_sign: | The total amount of sales from this region, in cents | \ No newline at end of file diff --git a/docs/models/components/analyticsregionscity.md b/docs/models/components/analyticsregionscity.md new file mode 100644 index 0000000..5fcb831 --- /dev/null +++ b/docs/models/components/analyticsregionscity.md @@ -0,0 +1,8 @@ +# AnalyticsRegionsCity + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `WILDCARD_` | * | \ No newline at end of file diff --git a/docs/models/components/analyticsregionscountry.md b/docs/models/components/analyticsregionscountry.md new file mode 100644 index 0000000..eda8394 --- /dev/null +++ b/docs/models/components/analyticsregionscountry.md @@ -0,0 +1,259 @@ +# AnalyticsRegionsCountry + +The 2-letter country code of the region: https://d.to/geo + + +## Values + +| Name | Value | +| ----- | ----- | +| `AF` | AF | +| `AL` | AL | +| `DZ` | DZ | +| `AS` | AS | +| `AD` | AD | +| `AO` | AO | +| `AI` | AI | +| `AQ` | AQ | +| `AG` | AG | +| `AR` | AR | +| `AM` | AM | +| `AW` | AW | +| `AU` | AU | +| `AT` | AT | +| `AZ` | AZ | +| `BS` | BS | +| `BH` | BH | +| `BD` | BD | +| `BB` | BB | +| `BY` | BY | +| `BE` | BE | +| `BZ` | BZ | +| `BJ` | BJ | +| `BM` | BM | +| `BT` | BT | +| `BO` | BO | +| `BA` | BA | +| `BW` | BW | +| `BV` | BV | +| `BR` | BR | +| `IO` | IO | +| `BN` | BN | +| `BG` | BG | +| `BF` | BF | +| `BI` | BI | +| `KH` | KH | +| `CM` | CM | +| `CA` | CA | +| `CV` | CV | +| `KY` | KY | +| `CF` | CF | +| `TD` | TD | +| `CL` | CL | +| `CN` | CN | +| `CX` | CX | +| `CC` | CC | +| `CO` | CO | +| `KM` | KM | +| `CG` | CG | +| `CD` | CD | +| `CK` | CK | +| `CR` | CR | +| `CI` | CI | +| `HR` | HR | +| `CU` | CU | +| `CY` | CY | +| `CZ` | CZ | +| `DK` | DK | +| `DJ` | DJ | +| `DM` | DM | +| `DO` | DO | +| `EC` | EC | +| `EG` | EG | +| `SV` | SV | +| `GQ` | GQ | +| `ER` | ER | +| `EE` | EE | +| `ET` | ET | +| `FK` | FK | +| `FO` | FO | +| `FJ` | FJ | +| `FI` | FI | +| `FR` | FR | +| `GF` | GF | +| `PF` | PF | +| `TF` | TF | +| `GA` | GA | +| `GM` | GM | +| `GE` | GE | +| `DE` | DE | +| `GH` | GH | +| `GI` | GI | +| `GR` | GR | +| `GL` | GL | +| `GD` | GD | +| `GP` | GP | +| `GU` | GU | +| `GT` | GT | +| `GN` | GN | +| `GW` | GW | +| `GY` | GY | +| `HT` | HT | +| `HM` | HM | +| `VA` | VA | +| `HN` | HN | +| `HK` | HK | +| `HU` | HU | +| `IS` | IS | +| `IN` | IN | +| `ID` | ID | +| `IR` | IR | +| `IQ` | IQ | +| `IE` | IE | +| `IL` | IL | +| `IT` | IT | +| `JM` | JM | +| `JP` | JP | +| `JO` | JO | +| `KZ` | KZ | +| `KE` | KE | +| `KI` | KI | +| `KP` | KP | +| `KR` | KR | +| `KW` | KW | +| `KG` | KG | +| `LA` | LA | +| `LV` | LV | +| `LB` | LB | +| `LS` | LS | +| `LR` | LR | +| `LY` | LY | +| `LI` | LI | +| `LT` | LT | +| `LU` | LU | +| `MO` | MO | +| `MG` | MG | +| `MW` | MW | +| `MY` | MY | +| `MV` | MV | +| `ML` | ML | +| `MT` | MT | +| `MH` | MH | +| `MQ` | MQ | +| `MR` | MR | +| `MU` | MU | +| `YT` | YT | +| `MX` | MX | +| `FM` | FM | +| `MD` | MD | +| `MC` | MC | +| `MN` | MN | +| `MS` | MS | +| `MA` | MA | +| `MZ` | MZ | +| `MM` | MM | +| `NA` | NA | +| `NR` | NR | +| `NP` | NP | +| `NL` | NL | +| `NC` | NC | +| `NZ` | NZ | +| `NI` | NI | +| `NE` | NE | +| `NG` | NG | +| `NU` | NU | +| `NF` | NF | +| `MK` | MK | +| `MP` | MP | +| `NO` | NO | +| `OM` | OM | +| `PK` | PK | +| `PW` | PW | +| `PS` | PS | +| `PA` | PA | +| `PG` | PG | +| `PY` | PY | +| `PE` | PE | +| `PH` | PH | +| `PN` | PN | +| `PL` | PL | +| `PT` | PT | +| `PR` | PR | +| `QA` | QA | +| `RE` | RE | +| `RO` | RO | +| `RU` | RU | +| `RW` | RW | +| `SH` | SH | +| `KN` | KN | +| `LC` | LC | +| `PM` | PM | +| `VC` | VC | +| `WS` | WS | +| `SM` | SM | +| `ST` | ST | +| `SA` | SA | +| `SN` | SN | +| `SC` | SC | +| `SL` | SL | +| `SG` | SG | +| `SK` | SK | +| `SI` | SI | +| `SB` | SB | +| `SO` | SO | +| `ZA` | ZA | +| `GS` | GS | +| `ES` | ES | +| `LK` | LK | +| `SD` | SD | +| `SR` | SR | +| `SJ` | SJ | +| `SZ` | SZ | +| `SE` | SE | +| `CH` | CH | +| `SY` | SY | +| `TW` | TW | +| `TJ` | TJ | +| `TZ` | TZ | +| `TH` | TH | +| `TL` | TL | +| `TG` | TG | +| `TK` | TK | +| `TO` | TO | +| `TT` | TT | +| `TN` | TN | +| `TR` | TR | +| `TM` | TM | +| `TC` | TC | +| `TV` | TV | +| `UG` | UG | +| `UA` | UA | +| `AE` | AE | +| `GB` | GB | +| `US` | US | +| `UM` | UM | +| `UY` | UY | +| `UZ` | UZ | +| `VU` | VU | +| `VE` | VE | +| `VN` | VN | +| `VG` | VG | +| `VI` | VI | +| `WF` | WF | +| `EH` | EH | +| `YE` | YE | +| `ZM` | ZM | +| `ZW` | ZW | +| `AX` | AX | +| `BQ` | BQ | +| `CW` | CW | +| `GG` | GG | +| `IM` | IM | +| `JE` | JE | +| `ME` | ME | +| `BL` | BL | +| `MF` | MF | +| `RS` | RS | +| `SX` | SX | +| `SS` | SS | +| `XK` | XK | \ No newline at end of file diff --git a/docs/models/components/region.md b/docs/models/components/region.md new file mode 100644 index 0000000..48c5783 --- /dev/null +++ b/docs/models/components/region.md @@ -0,0 +1,8 @@ +# Region + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `WILDCARD_` | * | \ No newline at end of file diff --git a/docs/models/operations/retrieveanalyticsresponsebody.md b/docs/models/operations/retrieveanalyticsresponsebody.md index 326d378..8624758 100644 --- a/docs/models/operations/retrieveanalyticsresponsebody.md +++ b/docs/models/operations/retrieveanalyticsresponsebody.md @@ -29,6 +29,12 @@ value: List[components.AnalyticsContinents] = /* values here */ value: List[components.AnalyticsCountries] = /* values here */ ``` +### `List[components.AnalyticsRegions]` + +```python +value: List[components.AnalyticsRegions] = /* values here */ +``` + ### `List[components.AnalyticsCities]` ```python diff --git a/docs/models/operations/trackleadrequestbody.md b/docs/models/operations/trackleadrequestbody.md index e182f67..1c1acd7 100644 --- a/docs/models/operations/trackleadrequestbody.md +++ b/docs/models/operations/trackleadrequestbody.md @@ -5,8 +5,9 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `click_id` | *str* | :heavy_check_mark: | The ID of the click in th Dub. You can read this value from `dub_id` cookie. | | -| `event_name` | *str* | :heavy_check_mark: | The name of the event to track. | Sign up | +| `click_id` | *str* | :heavy_check_mark: | The ID of the click in Dub. You can read this value from `dub_id` cookie. | | +| `event_name` | *str* | :heavy_check_mark: | The name of the lead event to track. | Sign up | +| `event_quantity` | *OptionalNullable[float]* | :heavy_minus_sign: | The numerical value associated with this lead event (e.g., number of provisioned seats in a free trial). If defined as N, the lead event will be tracked N times. | | | `external_id` | *Optional[str]* | :heavy_minus_sign: | This is the unique identifier for the customer in the client's app. This is used to track the customer's journey. | | | ~~`customer_id`~~ | *OptionalNullable[str]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

This is the unique identifier for the customer in the client's app. This is used to track the customer's journey. | | | `customer_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the customer in the client's app. | | diff --git a/docs/models/operations/tracksalerequestbody.md b/docs/models/operations/tracksalerequestbody.md index c789bdf..741dd33 100644 --- a/docs/models/operations/tracksalerequestbody.md +++ b/docs/models/operations/tracksalerequestbody.md @@ -13,4 +13,4 @@ | `invoice_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The invoice ID of the sale. | | | `currency` | *Optional[str]* | :heavy_minus_sign: | The currency of the sale. Accepts ISO 4217 currency codes. | | | `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | Additional metadata to be stored with the sale event. | | -| `lead_event_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the lead event that occurred before the sale (case-sensitive). | Cloned template 1481267 | \ No newline at end of file +| `lead_event_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the lead event that occurred before the sale (case-sensitive). This is used to associate the sale event with a particular lead event (instead of the latest lead event, which is the default behavior). | Cloned template 1481267 | \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index dbf7d73..cab7564 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "dub" -version = "0.18.5" +version = "0.18.6" description = "Python Client SDK Generated by Speakeasy" authors = [{ name = "Speakeasy" },] readme = "README-PYPI.md" diff --git a/src/dub/_version.py b/src/dub/_version.py index 86e8c9a..1673c2a 100644 --- a/src/dub/_version.py +++ b/src/dub/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "dub" -__version__: str = "0.18.5" +__version__: str = "0.18.6" __openapi_doc_version__: str = "0.0.1" -__gen_version__: str = "2.517.3" -__user_agent__: str = "speakeasy-sdk/python 0.18.5 2.517.3 0.0.1 dub" +__gen_version__: str = "2.518.1" +__user_agent__: str = "speakeasy-sdk/python 0.18.6 2.518.1 0.0.1 dub" try: if __package__ is not None: diff --git a/src/dub/models/components/__init__.py b/src/dub/models/components/__init__.py index 2782618..be034b3 100644 --- a/src/dub/models/components/__init__.py +++ b/src/dub/models/components/__init__.py @@ -4,6 +4,7 @@ from .analyticscities import ( AnalyticsCities, AnalyticsCitiesCountry, + AnalyticsCitiesRegion, AnalyticsCitiesTypedDict, ) from .analyticscontinents import ( @@ -17,11 +18,18 @@ AnalyticsCountriesTypedDict, City, Country, + Region, ) from .analyticsdevices import AnalyticsDevices, AnalyticsDevicesTypedDict from .analyticsos import AnalyticsOS, AnalyticsOSTypedDict from .analyticsreferers import AnalyticsReferers, AnalyticsReferersTypedDict from .analyticsrefererurls import AnalyticsRefererUrls, AnalyticsRefererUrlsTypedDict +from .analyticsregions import ( + AnalyticsRegions, + AnalyticsRegionsCity, + AnalyticsRegionsCountry, + AnalyticsRegionsTypedDict, +) from .analyticstimeseries import AnalyticsTimeseries, AnalyticsTimeseriesTypedDict from .analyticstoplinks import AnalyticsTopLinks, AnalyticsTopLinksTypedDict from .analyticstopurls import AnalyticsTopUrls, AnalyticsTopUrlsTypedDict @@ -208,6 +216,7 @@ "AnalyticsBrowsersTypedDict", "AnalyticsCities", "AnalyticsCitiesCountry", + "AnalyticsCitiesRegion", "AnalyticsCitiesTypedDict", "AnalyticsContinents", "AnalyticsContinentsTypedDict", @@ -223,6 +232,10 @@ "AnalyticsRefererUrlsTypedDict", "AnalyticsReferers", "AnalyticsReferersTypedDict", + "AnalyticsRegions", + "AnalyticsRegionsCity", + "AnalyticsRegionsCountry", + "AnalyticsRegionsTypedDict", "AnalyticsTimeseries", "AnalyticsTimeseriesTypedDict", "AnalyticsTopLinks", @@ -335,6 +348,7 @@ "PartnerTypedDict", "PaymentProcessor", "Plan", + "Region", "RegisteredDomain", "RegisteredDomainTypedDict", "Role", diff --git a/src/dub/models/components/analyticscities.py b/src/dub/models/components/analyticscities.py index 2a747c8..445cd2a 100644 --- a/src/dub/models/components/analyticscities.py +++ b/src/dub/models/components/analyticscities.py @@ -263,11 +263,16 @@ class AnalyticsCitiesCountry(str, Enum): XK = "XK" +class AnalyticsCitiesRegion(str, Enum): + WILDCARD_ = "*" + + class AnalyticsCitiesTypedDict(TypedDict): - city: str - r"""The name of the city""" country: AnalyticsCitiesCountry r"""The 2-letter country code of the city: https://d.to/geo""" + city: str + r"""The name of the city""" + region: NotRequired[AnalyticsCitiesRegion] clicks: NotRequired[float] r"""The number of clicks from this city""" leads: NotRequired[float] @@ -279,11 +284,13 @@ class AnalyticsCitiesTypedDict(TypedDict): class AnalyticsCities(BaseModel): + country: AnalyticsCitiesCountry + r"""The 2-letter country code of the city: https://d.to/geo""" + city: str r"""The name of the city""" - country: AnalyticsCitiesCountry - r"""The 2-letter country code of the city: https://d.to/geo""" + region: Optional[AnalyticsCitiesRegion] = AnalyticsCitiesRegion.WILDCARD_ clicks: Optional[float] = 0 r"""The number of clicks from this city""" diff --git a/src/dub/models/components/analyticscountries.py b/src/dub/models/components/analyticscountries.py index c96730e..1a2a659 100644 --- a/src/dub/models/components/analyticscountries.py +++ b/src/dub/models/components/analyticscountries.py @@ -263,6 +263,10 @@ class Country(str, Enum): XK = "XK" +class Region(str, Enum): + WILDCARD_ = "*" + + class City(str, Enum): WILDCARD_ = "*" @@ -270,6 +274,7 @@ class City(str, Enum): class AnalyticsCountriesTypedDict(TypedDict): country: Country r"""The 2-letter ISO 3166-1 country code for the country associated with the location of the user. Learn more: https://d.to/geo""" + region: NotRequired[Region] city: NotRequired[City] clicks: NotRequired[float] r"""The number of clicks from this country""" @@ -285,6 +290,8 @@ class AnalyticsCountries(BaseModel): country: Country r"""The 2-letter ISO 3166-1 country code for the country associated with the location of the user. Learn more: https://d.to/geo""" + region: Optional[Region] = Region.WILDCARD_ + city: Optional[City] = City.WILDCARD_ clicks: Optional[float] = 0 diff --git a/src/dub/models/components/analyticsregions.py b/src/dub/models/components/analyticsregions.py new file mode 100644 index 0000000..2b3d096 --- /dev/null +++ b/src/dub/models/components/analyticsregions.py @@ -0,0 +1,305 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from dub.types import BaseModel +from enum import Enum +import pydantic +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class AnalyticsRegionsCountry(str, Enum): + r"""The 2-letter country code of the region: https://d.to/geo""" + + AF = "AF" + AL = "AL" + DZ = "DZ" + AS = "AS" + AD = "AD" + AO = "AO" + AI = "AI" + AQ = "AQ" + AG = "AG" + AR = "AR" + AM = "AM" + AW = "AW" + AU = "AU" + AT = "AT" + AZ = "AZ" + BS = "BS" + BH = "BH" + BD = "BD" + BB = "BB" + BY = "BY" + BE = "BE" + BZ = "BZ" + BJ = "BJ" + BM = "BM" + BT = "BT" + BO = "BO" + BA = "BA" + BW = "BW" + BV = "BV" + BR = "BR" + IO = "IO" + BN = "BN" + BG = "BG" + BF = "BF" + BI = "BI" + KH = "KH" + CM = "CM" + CA = "CA" + CV = "CV" + KY = "KY" + CF = "CF" + TD = "TD" + CL = "CL" + CN = "CN" + CX = "CX" + CC = "CC" + CO = "CO" + KM = "KM" + CG = "CG" + CD = "CD" + CK = "CK" + CR = "CR" + CI = "CI" + HR = "HR" + CU = "CU" + CY = "CY" + CZ = "CZ" + DK = "DK" + DJ = "DJ" + DM = "DM" + DO = "DO" + EC = "EC" + EG = "EG" + SV = "SV" + GQ = "GQ" + ER = "ER" + EE = "EE" + ET = "ET" + FK = "FK" + FO = "FO" + FJ = "FJ" + FI = "FI" + FR = "FR" + GF = "GF" + PF = "PF" + TF = "TF" + GA = "GA" + GM = "GM" + GE = "GE" + DE = "DE" + GH = "GH" + GI = "GI" + GR = "GR" + GL = "GL" + GD = "GD" + GP = "GP" + GU = "GU" + GT = "GT" + GN = "GN" + GW = "GW" + GY = "GY" + HT = "HT" + HM = "HM" + VA = "VA" + HN = "HN" + HK = "HK" + HU = "HU" + IS = "IS" + IN = "IN" + ID = "ID" + IR = "IR" + IQ = "IQ" + IE = "IE" + IL = "IL" + IT = "IT" + JM = "JM" + JP = "JP" + JO = "JO" + KZ = "KZ" + KE = "KE" + KI = "KI" + KP = "KP" + KR = "KR" + KW = "KW" + KG = "KG" + LA = "LA" + LV = "LV" + LB = "LB" + LS = "LS" + LR = "LR" + LY = "LY" + LI = "LI" + LT = "LT" + LU = "LU" + MO = "MO" + MG = "MG" + MW = "MW" + MY = "MY" + MV = "MV" + ML = "ML" + MT = "MT" + MH = "MH" + MQ = "MQ" + MR = "MR" + MU = "MU" + YT = "YT" + MX = "MX" + FM = "FM" + MD = "MD" + MC = "MC" + MN = "MN" + MS = "MS" + MA = "MA" + MZ = "MZ" + MM = "MM" + NA = "NA" + NR = "NR" + NP = "NP" + NL = "NL" + NC = "NC" + NZ = "NZ" + NI = "NI" + NE = "NE" + NG = "NG" + NU = "NU" + NF = "NF" + MK = "MK" + MP = "MP" + NO = "NO" + OM = "OM" + PK = "PK" + PW = "PW" + PS = "PS" + PA = "PA" + PG = "PG" + PY = "PY" + PE = "PE" + PH = "PH" + PN = "PN" + PL = "PL" + PT = "PT" + PR = "PR" + QA = "QA" + RE = "RE" + RO = "RO" + RU = "RU" + RW = "RW" + SH = "SH" + KN = "KN" + LC = "LC" + PM = "PM" + VC = "VC" + WS = "WS" + SM = "SM" + ST = "ST" + SA = "SA" + SN = "SN" + SC = "SC" + SL = "SL" + SG = "SG" + SK = "SK" + SI = "SI" + SB = "SB" + SO = "SO" + ZA = "ZA" + GS = "GS" + ES = "ES" + LK = "LK" + SD = "SD" + SR = "SR" + SJ = "SJ" + SZ = "SZ" + SE = "SE" + CH = "CH" + SY = "SY" + TW = "TW" + TJ = "TJ" + TZ = "TZ" + TH = "TH" + TL = "TL" + TG = "TG" + TK = "TK" + TO = "TO" + TT = "TT" + TN = "TN" + TR = "TR" + TM = "TM" + TC = "TC" + TV = "TV" + UG = "UG" + UA = "UA" + AE = "AE" + GB = "GB" + US = "US" + UM = "UM" + UY = "UY" + UZ = "UZ" + VU = "VU" + VE = "VE" + VN = "VN" + VG = "VG" + VI = "VI" + WF = "WF" + EH = "EH" + YE = "YE" + ZM = "ZM" + ZW = "ZW" + AX = "AX" + BQ = "BQ" + CW = "CW" + GG = "GG" + IM = "IM" + JE = "JE" + ME = "ME" + BL = "BL" + MF = "MF" + RS = "RS" + SX = "SX" + SS = "SS" + XK = "XK" + + +class AnalyticsRegionsCity(str, Enum): + WILDCARD_ = "*" + + +class AnalyticsRegionsTypedDict(TypedDict): + country: AnalyticsRegionsCountry + r"""The 2-letter country code of the region: https://d.to/geo""" + region: str + r"""The 2-letter ISO 3166-2 region code representing the region associated with the location of the user.""" + city: NotRequired[AnalyticsRegionsCity] + clicks: NotRequired[float] + r"""The number of clicks from this region""" + leads: NotRequired[float] + r"""The number of leads from this region""" + sales: NotRequired[float] + r"""The number of sales from this region""" + sale_amount: NotRequired[float] + r"""The total amount of sales from this region, in cents""" + + +class AnalyticsRegions(BaseModel): + country: AnalyticsRegionsCountry + r"""The 2-letter country code of the region: https://d.to/geo""" + + region: str + r"""The 2-letter ISO 3166-2 region code representing the region associated with the location of the user.""" + + city: Optional[AnalyticsRegionsCity] = AnalyticsRegionsCity.WILDCARD_ + + clicks: Optional[float] = 0 + r"""The number of clicks from this region""" + + leads: Optional[float] = 0 + r"""The number of leads from this region""" + + sales: Optional[float] = 0 + r"""The number of sales from this region""" + + sale_amount: Annotated[Optional[float], pydantic.Field(alias="saleAmount")] = 0 + r"""The total amount of sales from this region, in cents""" diff --git a/src/dub/models/operations/retrieveanalytics.py b/src/dub/models/operations/retrieveanalytics.py index 5951625..2d12e47 100644 --- a/src/dub/models/operations/retrieveanalytics.py +++ b/src/dub/models/operations/retrieveanalytics.py @@ -11,6 +11,7 @@ analyticsos as components_analyticsos, analyticsreferers as components_analyticsreferers, analyticsrefererurls as components_analyticsrefererurls, + analyticsregions as components_analyticsregions, analyticstimeseries as components_analyticstimeseries, analyticstoplinks as components_analyticstoplinks, analyticstopurls as components_analyticstopurls, @@ -460,6 +461,7 @@ def serialize_model(self, handler): List[components_analyticstimeseries.AnalyticsTimeseriesTypedDict], List[components_analyticscontinents.AnalyticsContinentsTypedDict], List[components_analyticscountries.AnalyticsCountriesTypedDict], + List[components_analyticsregions.AnalyticsRegionsTypedDict], List[components_analyticscities.AnalyticsCitiesTypedDict], List[components_analyticsdevices.AnalyticsDevicesTypedDict], List[components_analyticsbrowsers.AnalyticsBrowsersTypedDict], @@ -481,6 +483,7 @@ def serialize_model(self, handler): List[components_analyticstimeseries.AnalyticsTimeseries], List[components_analyticscontinents.AnalyticsContinents], List[components_analyticscountries.AnalyticsCountries], + List[components_analyticsregions.AnalyticsRegions], List[components_analyticscities.AnalyticsCities], List[components_analyticsdevices.AnalyticsDevices], List[components_analyticsbrowsers.AnalyticsBrowsers], diff --git a/src/dub/models/operations/tracklead.py b/src/dub/models/operations/tracklead.py index 3045d88..d3a7abb 100644 --- a/src/dub/models/operations/tracklead.py +++ b/src/dub/models/operations/tracklead.py @@ -10,9 +10,11 @@ class TrackLeadRequestBodyTypedDict(TypedDict): click_id: str - r"""The ID of the click in th Dub. You can read this value from `dub_id` cookie.""" + r"""The ID of the click in Dub. You can read this value from `dub_id` cookie.""" event_name: str - r"""The name of the event to track.""" + r"""The name of the lead event to track.""" + event_quantity: NotRequired[Nullable[float]] + r"""The numerical value associated with this lead event (e.g., number of provisioned seats in a free trial). If defined as N, the lead event will be tracked N times.""" external_id: NotRequired[str] r"""This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.""" customer_id: NotRequired[Nullable[str]] @@ -29,10 +31,15 @@ class TrackLeadRequestBodyTypedDict(TypedDict): class TrackLeadRequestBody(BaseModel): click_id: Annotated[str, pydantic.Field(alias="clickId")] - r"""The ID of the click in th Dub. You can read this value from `dub_id` cookie.""" + r"""The ID of the click in Dub. You can read this value from `dub_id` cookie.""" event_name: Annotated[str, pydantic.Field(alias="eventName")] - r"""The name of the event to track.""" + r"""The name of the lead event to track.""" + + event_quantity: Annotated[ + OptionalNullable[float], pydantic.Field(alias="eventQuantity") + ] = UNSET + r"""The numerical value associated with this lead event (e.g., number of provisioned seats in a free trial). If defined as N, the lead event will be tracked N times.""" external_id: Annotated[Optional[str], pydantic.Field(alias="externalId")] = "" r"""This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.""" @@ -67,6 +74,7 @@ class TrackLeadRequestBody(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [ + "eventQuantity", "externalId", "customerId", "customerName", @@ -75,6 +83,7 @@ def serialize_model(self, handler): "metadata", ] nullable_fields = [ + "eventQuantity", "customerId", "customerName", "customerEmail", diff --git a/src/dub/models/operations/tracksale.py b/src/dub/models/operations/tracksale.py index a216634..51b2fd1 100644 --- a/src/dub/models/operations/tracksale.py +++ b/src/dub/models/operations/tracksale.py @@ -35,7 +35,7 @@ class TrackSaleRequestBodyTypedDict(TypedDict): metadata: NotRequired[Nullable[Dict[str, Any]]] r"""Additional metadata to be stored with the sale event.""" lead_event_name: NotRequired[Nullable[str]] - r"""The name of the lead event that occurred before the sale (case-sensitive).""" + r"""The name of the lead event that occurred before the sale (case-sensitive). This is used to associate the sale event with a particular lead event (instead of the latest lead event, which is the default behavior).""" class TrackSaleRequestBody(BaseModel): @@ -76,7 +76,7 @@ class TrackSaleRequestBody(BaseModel): lead_event_name: Annotated[ OptionalNullable[str], pydantic.Field(alias="leadEventName") ] = None - r"""The name of the lead event that occurred before the sale (case-sensitive).""" + r"""The name of the lead event that occurred before the sale (case-sensitive). This is used to associate the sale event with a particular lead event (instead of the latest lead event, which is the default behavior).""" @model_serializer(mode="wrap") def serialize_model(self, handler): From 8352a58a26798a643f6132d55141d8e43691b7ea Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Thu, 20 Feb 2025 18:15:30 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow