Skip to content
Merged
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
2,623 changes: 2,180 additions & 443 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

17 changes: 14 additions & 3 deletions .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,23 @@ generation:
requestResponseComponentNamesFeb2024: true
securityFeb2025: true
sharedErrorComponentsApr2025: false
sharedNestedComponentsJan2026: false
nameOverrideFeb2026: false
auth:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
hoistGlobalSecurity: true
schemas:
allOfMergeStrategy: shallowMerge
requestBodyFieldName: ""
versioningStrategy: automatic
persistentEdits: {}
tests:
generateTests: true
generateNewTests: false
skipResponseBodyAssertions: false
java:
version: 0.12.0
version: 0.13.0
additionalDependencies: []
additionalPlugins: []
artifactID: workflows
Expand All @@ -37,10 +41,13 @@ java:
companyURL: https://www.thetradedesk.com/
defaultErrorName: APIException
enableCustomCodeRegions: false
enableFormatting: false
enableSlf4jLogging: false
enableStreamingUploads: false
enhancedUnionMemberResolution: true
envVarPrefix: WORKFLOWS
flattenGlobalSecurity: true
forwardCompatibleEnumsByDefault: false
forwardCompatibleUnionsByDefault: "false"
generateOptionalUnionAccessors: false
generateSpringBootStarter: true
githubURL: github.com/thetradedesk/ttd-workflows-java
Expand All @@ -53,6 +60,7 @@ java:
operations: models/operations
shared: models/components
webhooks: models/webhooks
inferUnionDiscriminators: false
inputModelSuffix: input
languageVersion: 11
license:
Expand All @@ -61,9 +69,12 @@ java:
url: https://mit-license.org/
maxMethodParams: 999
methodArguments: infer-optional-args
multipartArrayFormat: legacy
nullFriendlyParameters: false
openUnions: true
operationScopedParams: true
outputModelSuffix: output
projectName: ttd-workflows
respectTitlesForPrimitiveUnionMembers: false
responseFormat: envelope-http
templateVersion: v2
unionStrategy: populated-fields
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.659.0
speakeasyVersion: 1.725.0
sources:
Workflows API:
sourceNamespace: workflows-api
sourceRevisionDigest: sha256:3aa657c02887fcb0ef2cfab5f5bdb208acba9d6931520130b81c496004dd5c30
sourceBlobDigest: sha256:36e1dc69edd63f499614e073d4730afdb239c8a265f7ef5414f2315276d7653a
sourceRevisionDigest: sha256:e8ba2c15b5fa5b8de156cf9a129bff68c179cf1a538d15e2c1b245665b75b9f3
sourceBlobDigest: sha256:5ab89ff6c030e33e8594b1983e5de278b3a0d49c7cfc443048ffaeb23bc85c66
tags:
- latest
- speakeasy-sdk-regen-1762133040
- speakeasy-sdk-regen-1765243467
- v1
targets:
ttd-workflows:
source: Workflows API
sourceNamespace: workflows-api
sourceRevisionDigest: sha256:3aa657c02887fcb0ef2cfab5f5bdb208acba9d6931520130b81c496004dd5c30
sourceBlobDigest: sha256:36e1dc69edd63f499614e073d4730afdb239c8a265f7ef5414f2315276d7653a
sourceRevisionDigest: sha256:e8ba2c15b5fa5b8de156cf9a129bff68c179cf1a538d15e2c1b245665b75b9f3
sourceBlobDigest: sha256:5ab89ff6c030e33e8594b1983e5de278b3a0d49c7cfc443048ffaeb23bc85c66
codeSamplesNamespace: workflows-api-java-code-samples
codeSamplesRevisionDigest: sha256:3c1de06201eb90df74c8494ac195ce46b3140ce5b07a65202a1a74a0e735cb37
codeSamplesRevisionDigest: sha256:d3b0b88554ee9d84733c42f746ed55b03525fb3b690221fe97b484091c557c74
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
123 changes: 114 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.thetradedesk:workflows:0.12.0'
implementation 'com.thetradedesk:workflows:0.13.0'
```

Maven:
```xml
<dependency>
<groupId>com.thetradedesk</groupId>
<artifactId>workflows</artifactId>
<version>0.12.0</version>
<version>0.13.0</version>
</dependency>
```

Expand Down Expand Up @@ -646,6 +646,23 @@ public class Application {
.frequencyGoal(534735)
.resetIntervalInMinutes(788122)
.build()))
.inventoryTargeting(AdGroupWorkflowInventoryTargetingInput.builder()
.dealGroupIdsToInclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealGroupIdsToExclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealIdsToExclude(List.of(
117039L,
278677L,
217940L))
.dealIdsToInclude(JsonNullable.of(null))
.includeDefaultOnDeals(true)
.build())
.isNonDecisioned(true)
.flights(List.of(
AdGroupWorkflowFlightInput.builder()
.campaignFlightId(874887L)
Expand Down Expand Up @@ -678,15 +695,15 @@ public class Application {
<details open>
<summary>Available methods</summary>

### [adGroup()](docs/sdks/adgroup/README.md)
### [AdGroup](docs/sdks/adgroup/README.md)

* [createAdGroup](docs/sdks/adgroup/README.md#createadgroup) - Create a new ad group
* [updateAdGroup](docs/sdks/adgroup/README.md#updateadgroup) - Update an ad group
* [archiveAdGroups](docs/sdks/adgroup/README.md#archiveadgroups) - Archive multiple ad groups
* [createAdGroupsJob](docs/sdks/adgroup/README.md#createadgroupsjob) - Submit a job to create multiple new ad groups
* [updateAdGroupsJob](docs/sdks/adgroup/README.md#updateadgroupsjob) - Submit a job to update multiple ad groups

### [campaign()](docs/sdks/campaign/README.md)
### [Campaign](docs/sdks/campaign/README.md)

* [create](docs/sdks/campaign/README.md#create) - Create a new campaign
* [updateCampaign](docs/sdks/campaign/README.md#updatecampaign) - Update a campaign
Expand All @@ -695,22 +712,22 @@ public class Application {
* [archiveCampaigns](docs/sdks/campaign/README.md#archivecampaigns) - Archive multiple campaigns
* [getVersion](docs/sdks/campaign/README.md#getversion) - Get a campaign's version

### [dmp()](docs/sdks/dmp/README.md)
### [Dmp](docs/sdks/dmp/README.md)

* [getFirstPartyDataJob](docs/sdks/dmp/README.md#getfirstpartydatajob) - Submit a job for first-party data retrieval for an advertiser
* [getThirdPartyDataJob](docs/sdks/dmp/README.md#getthirdpartydatajob) - Submit a job for third-party data retrieval for a partner

### [graphQLRequest()](docs/sdks/graphqlrequest/README.md)
### [GraphQLRequest](docs/sdks/graphqlrequest/README.md)

* [submitGraphQlRequest](docs/sdks/graphqlrequest/README.md#submitgraphqlrequest) - Submit a valid GraphQL query or mutation
* [submitGraphQlBulkQueryJob](docs/sdks/graphqlrequest/README.md#submitgraphqlbulkqueryjob) - Submit a valid bulk GraphQL query job

### [jobStatus()](docs/sdks/jobstatus/README.md)
### [JobStatus](docs/sdks/jobstatus/README.md)

* [getGraphQlBulkJobStatus](docs/sdks/jobstatus/README.md#getgraphqlbulkjobstatus) - Get the status of a previously submitted GraphQL bulk job
* [getJobStatus](docs/sdks/jobstatus/README.md#getjobstatus) - Get the status of a previously submitted job

### [restRequest()](docs/sdks/restrequest/README.md)
### [RESTRequest](docs/sdks/restrequest/README.md)

* [submitRestRequest](docs/sdks/restrequest/README.md#submitrestrequest) - Submit a valid REST request

Expand Down Expand Up @@ -841,6 +858,23 @@ public class Application {
.frequencyGoal(534735)
.resetIntervalInMinutes(788122)
.build()))
.inventoryTargeting(AdGroupWorkflowInventoryTargetingInput.builder()
.dealGroupIdsToInclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealGroupIdsToExclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealIdsToExclude(List.of(
117039L,
278677L,
217940L))
.dealIdsToInclude(JsonNullable.of(null))
.includeDefaultOnDeals(true)
.build())
.isNonDecisioned(true)
.flights(List.of(
AdGroupWorkflowFlightInput.builder()
.campaignFlightId(874887L)
Expand Down Expand Up @@ -1005,6 +1039,23 @@ public class Application {
.frequencyGoal(534735)
.resetIntervalInMinutes(788122)
.build()))
.inventoryTargeting(AdGroupWorkflowInventoryTargetingInput.builder()
.dealGroupIdsToInclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealGroupIdsToExclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealIdsToExclude(List.of(
117039L,
278677L,
217940L))
.dealIdsToInclude(JsonNullable.of(null))
.includeDefaultOnDeals(true)
.build())
.isNonDecisioned(true)
.flights(List.of(
AdGroupWorkflowFlightInput.builder()
.campaignFlightId(874887L)
Expand Down Expand Up @@ -1168,6 +1219,23 @@ public class Application {
.frequencyGoal(534735)
.resetIntervalInMinutes(788122)
.build()))
.inventoryTargeting(AdGroupWorkflowInventoryTargetingInput.builder()
.dealGroupIdsToInclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealGroupIdsToExclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealIdsToExclude(List.of(
117039L,
278677L,
217940L))
.dealIdsToInclude(JsonNullable.of(null))
.includeDefaultOnDeals(true)
.build())
.isNonDecisioned(true)
.flights(List.of(
AdGroupWorkflowFlightInput.builder()
.campaignFlightId(874887L)
Expand Down Expand Up @@ -1376,6 +1444,23 @@ public class Application {
.frequencyGoal(534735)
.resetIntervalInMinutes(788122)
.build()))
.inventoryTargeting(AdGroupWorkflowInventoryTargetingInput.builder()
.dealGroupIdsToInclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealGroupIdsToExclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealIdsToExclude(List.of(
117039L,
278677L,
217940L))
.dealIdsToInclude(JsonNullable.of(null))
.includeDefaultOnDeals(true)
.build())
.isNonDecisioned(true)
.flights(List.of(
AdGroupWorkflowFlightInput.builder()
.campaignFlightId(874887L)
Expand Down Expand Up @@ -1520,6 +1605,23 @@ public class Application {
.frequencyGoal(534735)
.resetIntervalInMinutes(788122)
.build()))
.inventoryTargeting(AdGroupWorkflowInventoryTargetingInput.builder()
.dealGroupIdsToInclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealGroupIdsToExclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealIdsToExclude(List.of(
117039L,
278677L,
217940L))
.dealIdsToInclude(JsonNullable.of(null))
.includeDefaultOnDeals(true)
.build())
.isNonDecisioned(true)
.flights(List.of(
AdGroupWorkflowFlightInput.builder()
.campaignFlightId(874887L)
Expand Down Expand Up @@ -1686,9 +1788,11 @@ public class Application {
## Debugging

### Debug

You can setup your SDK to emit debug logs for SDK requests and responses.

For request and response logging (especially json bodies), call `enableHTTPDebugLogging(boolean)` on the SDK builder like so:

```java
SDK.builder()
.enableHTTPDebugLogging(true)
Expand All @@ -1706,10 +1810,11 @@ Response body:
"token": "global"
}
```
__WARNING__: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
__WARNING__: This logging should only be used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.

__NOTE__: This is a convenience method that calls `HTTPClient.enableDebugLogging()`. The `SpeakeasyHTTPClient` honors this setting. If you are using a custom HTTP client, it is up to the custom client to honor this setting.


Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
<!-- End Debugging [debug] -->

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,14 @@ Based on:
### Generated
- [java v0.12.0] .
### Releases
- [Maven Central v0.12.0] https://central.sonatype.com/artifact/com.thetradedesk/workflows/0.12.0 - .
- [Maven Central v0.12.0] https://central.sonatype.com/artifact/com.thetradedesk/workflows/0.12.0 - .

## 2026-02-24 01:58:53
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.725.0 (2.836.5) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.13.0] .
### Releases
- [Maven Central v0.13.0] https://central.sonatype.com/artifact/com.thetradedesk/workflows/0.13.0 - .
17 changes: 17 additions & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,23 @@ public class Application {
.frequencyGoal(534735)
.resetIntervalInMinutes(788122)
.build()))
.inventoryTargeting(AdGroupWorkflowInventoryTargetingInput.builder()
.dealGroupIdsToInclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealGroupIdsToExclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealIdsToExclude(List.of(
117039L,
278677L,
217940L))
.dealIdsToInclude(JsonNullable.of(null))
.includeDefaultOnDeals(true)
.build())
.isNonDecisioned(true)
.flights(List.of(
AdGroupWorkflowFlightInput.builder()
.campaignFlightId(874887L)
Expand Down
Loading