Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
219 changes: 112 additions & 107 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
version: 0.13.2
version: 0.14.0
additionalDependencies:
dev: {}
main: {}
Expand All @@ -40,13 +40,19 @@ python:
authors:
- Speakeasy
baseErrorName: WorkflowsError
bodyVariantOverloads: false
clientServerStatusCodesAsErrors: true
constFieldCasing: upper
defaultErrorName: APIError
description: Python Client SDK Generated by Speakeasy.
durationFormat: false
enableCustomCodeRegions: false
enumFormat: enum
envVarPrefix: WORKFLOWS
errorSchemaValidation: true
eventStreamClassNames:
async: EventStreamAsync
sync: EventStream
fixFlags:
asyncPaginationSep2025: false
conflictResistantModelImportsFeb2026: false
Expand All @@ -56,6 +62,7 @@ python:
flatteningOrder: parameters-first
forwardCompatibleEnumsByDefault: false
forwardCompatibleUnionsByDefault: "false"
httpClientLibrary: httpx
imports:
option: openapi
paths:
Expand All @@ -66,22 +73,29 @@ python:
webhooks: ""
inferUnionDiscriminators: true
inputModelSuffix: input
inputTypedDictSuffix: TypedDict
legacyPyright: true
license:
name: The MIT License (MIT)
shortName: MIT
url: https://mit-license.org/
maxMethodParams: 999
methodArguments: infer-optional-args
methodTimeoutArgument: timeout-ms
methodTimeoutUnits: milliseconds
moduleName: ""
multipartArrayFormat: legacy
optionalDependencies: {}
outputModelSuffix: output
packageManager: poetry
packageName: ttd-workflows
preApplyUnionDiscriminators: false
pytestFilterWarnings: []
pytestTimeout: 0
rawResponseHelpers: false
responseFormat: envelope-http
responseSchemaValidation: true
sseFlatResponse: false
templateVersion: v2
useAsyncHooks: false
uuidFormat: false
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.761.9
speakeasyVersion: 1.795.0
sources:
Workflows API:
sourceNamespace: workflows-api
sourceRevisionDigest: sha256:c0361fc8e1482a4c2b0ae46aaa4e45d24c3779d1ffb7d442b9046c04fd08238e
sourceBlobDigest: sha256:cdd970e2c07ad4263764ca4afecd0598c4e49bb7768466a7f793ad21cb6274d6
sourceRevisionDigest: sha256:41ba8ac66d26f058696b46430503eb096bd33f6591986c3ce6f0657ad28a6ed3
sourceBlobDigest: sha256:4dbe04d4965133e657cf658464af825dcf2e99053b953e5e249f456fc7fba28a
tags:
- latest
- v1
targets:
workflows:
source: Workflows API
sourceNamespace: workflows-api
sourceRevisionDigest: sha256:c0361fc8e1482a4c2b0ae46aaa4e45d24c3779d1ffb7d442b9046c04fd08238e
sourceBlobDigest: sha256:cdd970e2c07ad4263764ca4afecd0598c4e49bb7768466a7f793ad21cb6274d6
sourceRevisionDigest: sha256:41ba8ac66d26f058696b46430503eb096bd33f6591986c3ce6f0657ad28a6ed3
sourceBlobDigest: sha256:4dbe04d4965133e657cf658464af825dcf2e99053b953e5e249f456fc7fba28a
codeSamplesNamespace: workflows-api-python-code-samples
codeSamplesRevisionDigest: sha256:3365674691c8475c13d0eb927a559128edb88b4b8f5bf4d61a6a4c957d43f59f
codeSamplesRevisionDigest: sha256:4e27e359b49b83fc25719103f31d4628448597694880a33172f371577f4e752e
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
20 changes: 20 additions & 0 deletions README-PYPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ with Workflows(
"vcpm_in_advertiser_currency": 4649.53,
"cpcv_in_advertiser_currency": 313.95,
"miaozhen_otp_in_percent": 4704.1,
"new_buyer_target_value": 785382,
},
"creative_ids": None,
"associated_bid_lists": [
Expand Down Expand Up @@ -645,6 +646,7 @@ with Workflows(
"vcpm_in_advertiser_currency": 4649.53,
"cpcv_in_advertiser_currency": 313.95,
"miaozhen_otp_in_percent": 4704.1,
"new_buyer_target_value": 785382,
},
"creative_ids": None,
"associated_bid_lists": [
Expand Down Expand Up @@ -803,6 +805,7 @@ with Workflows(
"vcpm_in_advertiser_currency": 4649.53,
"cpcv_in_advertiser_currency": 313.95,
"miaozhen_otp_in_percent": 4704.1,
"new_buyer_target_value": 785382,
},
"creative_ids": None,
"associated_bid_lists": [
Expand Down Expand Up @@ -975,6 +978,7 @@ with Workflows(
"vcpm_in_advertiser_currency": 4649.53,
"cpcv_in_advertiser_currency": 313.95,
"miaozhen_otp_in_percent": 4704.1,
"new_buyer_target_value": 785382,
},
"creative_ids": None,
"associated_bid_lists": [
Expand Down Expand Up @@ -1181,6 +1185,7 @@ with Workflows(
"vcpm_in_advertiser_currency": 4649.53,
"cpcv_in_advertiser_currency": 313.95,
"miaozhen_otp_in_percent": 4704.1,
"new_buyer_target_value": 785382,
},
"creative_ids": None,
"associated_bid_lists": [
Expand Down Expand Up @@ -1339,6 +1344,7 @@ with Workflows(
"vcpm_in_advertiser_currency": 4649.53,
"cpcv_in_advertiser_currency": 313.95,
"miaozhen_otp_in_percent": 4704.1,
"new_buyer_target_value": 785382,
},
"creative_ids": None,
"associated_bid_lists": [
Expand Down Expand Up @@ -1524,6 +1530,20 @@ class CustomClient(AsyncHttpClient):

s = Workflows(async_client=CustomClient(httpx.AsyncClient()))
```
### httpx2 (Pydantic's httpx fork)

[httpx2](https://httpx2.pydantic.dev/) is Pydantic's maintained fork of `httpx`. To run this SDK on httpx2, call `alias_httpx()` at your program's entry point, before importing the SDK, so every `import httpx` — including the ones inside the SDK — resolves to `httpx2`:
```python
import httpx2

httpx2.alias_httpx()

from ttd_workflows import Workflows

s = Workflows()
```

An SDK can also be generated against httpx2 directly, so it depends on the fork instead of `httpx`, by setting `python.httpClientLibrary: httpx2` in `gen.yaml`.
<!-- End Custom HTTP Client [http-client] -->

<!-- Start Resource Management [resource-management] -->
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ with Workflows(
"vcpm_in_advertiser_currency": 4649.53,
"cpcv_in_advertiser_currency": 313.95,
"miaozhen_otp_in_percent": 4704.1,
"new_buyer_target_value": 785382,
},
"creative_ids": None,
"associated_bid_lists": [
Expand Down Expand Up @@ -645,6 +646,7 @@ with Workflows(
"vcpm_in_advertiser_currency": 4649.53,
"cpcv_in_advertiser_currency": 313.95,
"miaozhen_otp_in_percent": 4704.1,
"new_buyer_target_value": 785382,
},
"creative_ids": None,
"associated_bid_lists": [
Expand Down Expand Up @@ -803,6 +805,7 @@ with Workflows(
"vcpm_in_advertiser_currency": 4649.53,
"cpcv_in_advertiser_currency": 313.95,
"miaozhen_otp_in_percent": 4704.1,
"new_buyer_target_value": 785382,
},
"creative_ids": None,
"associated_bid_lists": [
Expand Down Expand Up @@ -975,6 +978,7 @@ with Workflows(
"vcpm_in_advertiser_currency": 4649.53,
"cpcv_in_advertiser_currency": 313.95,
"miaozhen_otp_in_percent": 4704.1,
"new_buyer_target_value": 785382,
},
"creative_ids": None,
"associated_bid_lists": [
Expand Down Expand Up @@ -1181,6 +1185,7 @@ with Workflows(
"vcpm_in_advertiser_currency": 4649.53,
"cpcv_in_advertiser_currency": 313.95,
"miaozhen_otp_in_percent": 4704.1,
"new_buyer_target_value": 785382,
},
"creative_ids": None,
"associated_bid_lists": [
Expand Down Expand Up @@ -1339,6 +1344,7 @@ with Workflows(
"vcpm_in_advertiser_currency": 4649.53,
"cpcv_in_advertiser_currency": 313.95,
"miaozhen_otp_in_percent": 4704.1,
"new_buyer_target_value": 785382,
},
"creative_ids": None,
"associated_bid_lists": [
Expand Down Expand Up @@ -1524,6 +1530,20 @@ class CustomClient(AsyncHttpClient):

s = Workflows(async_client=CustomClient(httpx.AsyncClient()))
```
### httpx2 (Pydantic's httpx fork)

[httpx2](https://httpx2.pydantic.dev/) is Pydantic's maintained fork of `httpx`. To run this SDK on httpx2, call `alias_httpx()` at your program's entry point, before importing the SDK, so every `import httpx` — including the ones inside the SDK — resolves to `httpx2`:
```python
import httpx2

httpx2.alias_httpx()

from ttd_workflows import Workflows

s = Workflows()
```

An SDK can also be generated against httpx2 directly, so it depends on the fork instead of `httpx`, by setting `python.httpClientLibrary: httpx2` in `gen.yaml`.
<!-- End Custom HTTP Client [http-client] -->

<!-- Start Resource Management [resource-management] -->
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,14 @@ Based on:
### Generated
- [python v0.13.2] .
### Releases
- [PyPI v0.13.2] https://pypi.org/project/ttd-workflows/0.13.2 - .
- [PyPI v0.13.2] https://pypi.org/project/ttd-workflows/0.13.2 - .

## 2026-08-19 00:04:40
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.795.0 (2.931.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.14.0] .
### Releases
- [PyPI v0.14.0] https://pypi.org/project/ttd-workflows/0.14.0 - .
2 changes: 2 additions & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ with Workflows(
"vcpm_in_advertiser_currency": 4649.53,
"cpcv_in_advertiser_currency": 313.95,
"miaozhen_otp_in_percent": 4704.1,
"new_buyer_target_value": 785382,
},
"creative_ids": None,
"associated_bid_lists": [
Expand Down Expand Up @@ -209,6 +210,7 @@ async def main():
"vcpm_in_advertiser_currency": 4649.53,
"cpcv_in_advertiser_currency": 313.95,
"miaozhen_otp_in_percent": 4704.1,
"new_buyer_target_value": 785382,
},
"creative_ids": None,
"associated_bid_lists": [
Expand Down
2 changes: 1 addition & 1 deletion docs/models/adgroupbudget.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| Field | Type | Required | Description |
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
| `allocation_type` | [models.AllocationType](../models/allocationtype.md) | :heavy_check_mark: | N/A |
| `budget_in_advertiser_currency` | *float* | :heavy_check_mark: | N/A |
| `budget_in_advertiser_currency` | *Nullable[float]* | :heavy_check_mark: | N/A |
| `budget_in_impressions` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A |
| `daily_target_in_advertiser_currency` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A |
| `daily_target_in_impressions` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A |
2 changes: 1 addition & 1 deletion docs/models/adgroupflight.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| Field | Type | Required | Description |
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
| `allocation_type` | [models.AllocationType](../models/allocationtype.md) | :heavy_check_mark: | N/A |
| `budget_in_advertiser_currency` | *float* | :heavy_check_mark: | N/A |
| `budget_in_advertiser_currency` | *Nullable[float]* | :heavy_check_mark: | N/A |
| `budget_in_impressions` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A |
| `daily_target_in_advertiser_currency` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A |
| `daily_target_in_impressions` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A |
Expand Down
3 changes: 2 additions & 1 deletion docs/models/adgrouproigoal.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
| `viewability_in_percent` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A |
| `vcpm_in_advertiser_currency` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A |
| `cpcv_in_advertiser_currency` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A |
| `miaozhen_otp_in_percent` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A |
| `miaozhen_otp_in_percent` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A |
| `new_buyer_target_value` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A |
3 changes: 2 additions & 1 deletion docs/models/adgroupworkflowroigoalinput.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
| `viewability_in_percent` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A |
| `vcpm_in_advertiser_currency` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A |
| `cpcv_in_advertiser_currency` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A |
| `miaozhen_otp_in_percent` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A |
| `miaozhen_otp_in_percent` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A |
| `new_buyer_target_value` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A |
5 changes: 0 additions & 5 deletions docs/models/dimensionalbiddingdimensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ value = DimensionalBiddingDimensions.UNKNOWN_DIMENSION
| `HAS_AD_FORMAT_ID` | HasAdFormatId |
| `HAS_DOMAIN_FRAGMENT_ID` | HasDomainFragmentId |
| `HAS_UNIVERSAL_CATEGORY_TAXONOMY_ID` | HasUniversalCategoryTaxonomyId |
| `HAS_PLACEMENT_POSITION_RELATIVE_TO_FOLD_ID` | HasPlacementPositionRelativeToFoldId |
| `HAS_ADVERTISER_TARGETING_DATA_ID` | HasAdvertiserTargetingDataId |
| `HAS_BROWSER_ID` | HasBrowserId |
| `HAS_CARRIER_ID` | HasCarrierId |
Expand Down Expand Up @@ -67,8 +66,6 @@ value = DimensionalBiddingDimensions.UNKNOWN_DIMENSION
| `HAS_PEER39_VIEWABILITY_CATEGORY_ID` | HasPeer39ViewabilityCategoryId |
| `HAS_VIDEO_COMPLETION_RATE_SCORE_RANGE` | HasVideoCompletionRateScoreRange |
| `HAS_INTERNET_CONNECTION_TYPE_ID` | HasInternetConnectionTypeId |
| `HAS_AD_BUG_PAGE_QUALITY_CATEGORY_ID` | HasAdBugPageQualityCategoryId |
| `HAS_AD_BUG_VIDEO_PAGE_QUALITY_CATEGORY_ID` | HasAdBugVideoPageQualityCategoryId |
| `HAS_RTB_ASIA_PAGE_QUALITY_CATEGORY_ID` | HasRTBAsiaPageQualityCategoryId |
| `HAS_RTB_ASIA_VIDEO_PAGE_QUALITY_CATEGORY_ID` | HasRTBAsiaVideoPageQualityCategoryId |
| `HAS_TTD_CONTEXTUAL_CATEGORY_ID` | HasTTDContextualCategoryId |
Expand All @@ -86,8 +83,6 @@ value = DimensionalBiddingDimensions.UNKNOWN_DIMENSION
| `HAS_DOMAIN_CLASS_ID` | HasDomainClassId |
| `HAS_GEOFENCE_THIRD_PARTY_DATA_AND_BRAND` | HasGeofenceThirdPartyDataAndBrand |
| `HAS_PRE_BID_CONTEXTUAL_CATEGORY_ID` | HasPreBidContextualCategoryId |
| `HAS_MIAOZHEN_PAGE_QUALITY_CATEGORY_ID` | HasMiaozhenPageQualityCategoryId |
| `HAS_MIAOZHEN_VIDEO_PAGE_QUALITY_CATEGORY_ID` | HasMiaozhenVideoPageQualityCategoryId |
| `HAS_TENCENT_PAGE_QUALITY_CATEGORY_ID` | HasTencentPageQualityCategoryId |
| `HAS_CONTENT_GENRE` | HasContentGenre |
| `HAS_CONTENT_LIVESTREAM` | HasContentLivestream |
Expand Down
3 changes: 2 additions & 1 deletion docs/models/passthroughfeetype.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ value = PassThroughFeeType.NONE
| `FEE_CPM` | FeeCPM |
| `RATE_CPM` | RateCPM |
| `RATE_CPC` | RateCPC |
| `CUSTOM_PMP_PARTNER_DATA_COST_PERCENTAGE` | CustomPmpPartnerDataCostPercentage |
| `CUSTOM_PMP_PARTNER_DATA_COST_PERCENTAGE` | CustomPmpPartnerDataCostPercentage |
| `MEDIA_DATA_FEE_FEATURES_COST_PERCENTAGE` | MediaDataFeeFeaturesCostPercentage |
1 change: 1 addition & 0 deletions docs/sdks/adgroup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ with Workflows(
"vcpm_in_advertiser_currency": 8251.2,
"cpcv_in_advertiser_currency": 4502.77,
"miaozhen_otp_in_percent": 2362.43,
"new_buyer_target_value": 901233,
},
"creative_ids": [
"<value 1>",
Expand Down
2 changes: 2 additions & 0 deletions docs/sdks/adgroups/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ with Workflows(
"vcpm_in_advertiser_currency": 4649.53,
"cpcv_in_advertiser_currency": 313.95,
"miaozhen_otp_in_percent": 4704.1,
"new_buyer_target_value": 785382,
},
"creative_ids": None,
"associated_bid_lists": [
Expand Down Expand Up @@ -246,6 +247,7 @@ with Workflows(
"vcpm_in_advertiser_currency": 1135.94,
"cpcv_in_advertiser_currency": 6372.45,
"miaozhen_otp_in_percent": 8405.28,
"new_buyer_target_value": 93512,
},
"creative_ids": [
"<value 1>",
Expand Down
Loading