@adcp/sdk 17.0.0-beta.1 → 17.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/adapters/keyed-account-store.js +1 -1
- package/dist/lib/adapters/keyed-account-store.mjs +1 -1
- package/dist/lib/adapters/version/3.0/brand-fields.d.mts +7 -1
- package/dist/lib/adapters/version/3.0/brand-fields.d.ts +7 -1
- package/dist/lib/adapters/version/3.0/brand-fields.js +139 -3
- package/dist/lib/adapters/version/3.0/brand-fields.mjs +136 -2
- package/dist/lib/adapters/version/3.0/index.js +6 -0
- package/dist/lib/adapters/version/3.0/index.mjs +7 -1
- package/dist/lib/adapters/version/index.d.mts +9 -0
- package/dist/lib/adapters/version/index.d.ts +9 -0
- package/dist/lib/adapters/version/index.js +20 -6
- package/dist/lib/adapters/version/index.mjs +15 -2
- package/dist/lib/adapters/version/types.d.mts +5 -0
- package/dist/lib/adapters/version/types.d.ts +5 -0
- package/dist/lib/canonical-references/index.js +2 -0
- package/dist/lib/canonical-references/index.mjs +2 -0
- package/dist/lib/client/account-changes.d.mts +3 -1
- package/dist/lib/client/account-changes.d.ts +3 -1
- package/dist/lib/client/account-changes.js +22 -2
- package/dist/lib/client/account-changes.mjs +22 -2
- package/dist/lib/conformance/oracle.js +3 -2
- package/dist/lib/conformance/oracle.mjs +3 -2
- package/dist/lib/core/AgentClient.d.mts +165 -1
- package/dist/lib/core/AgentClient.d.ts +165 -1
- package/dist/lib/core/AgentClient.js +446 -8
- package/dist/lib/core/AgentClient.mjs +446 -8
- package/dist/lib/core/ConversationTypes.d.mts +8 -0
- package/dist/lib/core/ConversationTypes.d.ts +8 -0
- package/dist/lib/core/ProtocolResponseParser.d.mts +1 -1
- package/dist/lib/core/ProtocolResponseParser.d.ts +1 -1
- package/dist/lib/core/ProtocolResponseParser.js +28 -18
- package/dist/lib/core/ProtocolResponseParser.mjs +11 -1
- package/dist/lib/core/SingleAgentClient.d.mts +115 -2
- package/dist/lib/core/SingleAgentClient.d.ts +115 -2
- package/dist/lib/core/SingleAgentClient.js +547 -67
- package/dist/lib/core/SingleAgentClient.mjs +534 -54
- package/dist/lib/core/TaskExecutor.d.mts +7 -0
- package/dist/lib/core/TaskExecutor.d.ts +7 -0
- package/dist/lib/core/TaskExecutor.js +18 -5
- package/dist/lib/core/TaskExecutor.mjs +18 -5
- package/dist/lib/core/task-status.d.mts +2 -0
- package/dist/lib/core/task-status.d.ts +2 -0
- package/dist/lib/core/task-status.js +11 -2
- package/dist/lib/core/task-status.mjs +9 -1
- package/dist/lib/identity-3.3/trust.d.mts +1 -4
- package/dist/lib/identity-3.3/trust.d.ts +1 -4
- package/dist/lib/identity-3.3/trust.js +43 -23
- package/dist/lib/identity-3.3/trust.mjs +43 -23
- package/dist/lib/identity-3.3/validation.js +5 -3
- package/dist/lib/identity-3.3/validation.mjs +6 -4
- package/dist/lib/index.d.mts +6 -52
- package/dist/lib/index.d.ts +6 -52
- package/dist/lib/index.js +11 -0
- package/dist/lib/index.mjs +7 -0
- package/dist/lib/media-buy/compatibility.js +6 -1
- package/dist/lib/media-buy/compatibility.mjs +6 -1
- package/dist/lib/protocols/mcp-scope.d.mts +3 -0
- package/dist/lib/protocols/mcp-scope.d.ts +3 -0
- package/dist/lib/protocols/mcp-scope.js +8 -3
- package/dist/lib/protocols/mcp-scope.mjs +8 -3
- package/dist/lib/reporting/inspection.js +1 -0
- package/dist/lib/reporting/inspection.mjs +1 -0
- package/dist/lib/reporting/ledger/coverage.d.mts +5 -0
- package/dist/lib/reporting/ledger/coverage.d.ts +5 -0
- package/dist/lib/reporting/ledger/coverage.js +37 -3
- package/dist/lib/reporting/ledger/coverage.mjs +36 -3
- package/dist/lib/reporting/ledger/handler.js +7 -4
- package/dist/lib/reporting/ledger/handler.mjs +7 -4
- package/dist/lib/reporting/ledger/producer.js +215 -69
- package/dist/lib/reporting/ledger/producer.mjs +217 -70
- package/dist/lib/reporting/ledger/schedule.d.mts +2 -2
- package/dist/lib/reporting/ledger/schedule.d.ts +2 -2
- package/dist/lib/reporting/ledger/schedule.js +8 -5
- package/dist/lib/reporting/ledger/schedule.mjs +8 -5
- package/dist/lib/reporting/ledger/status-ingest.d.mts +1 -1
- package/dist/lib/reporting/ledger/status-ingest.d.ts +1 -1
- package/dist/lib/reporting/ledger/status-ingest.js +4 -3
- package/dist/lib/reporting/ledger/status-ingest.mjs +4 -3
- package/dist/lib/reporting/ledger/types.d.mts +36 -1
- package/dist/lib/reporting/ledger/types.d.ts +36 -1
- package/dist/lib/reporting/service/index.d.mts +14 -1
- package/dist/lib/reporting/service/index.d.ts +14 -1
- package/dist/lib/reporting/service/index.js +24 -12
- package/dist/lib/reporting/service/index.mjs +24 -12
- package/dist/lib/schemas/browser.d.mts +2 -0
- package/dist/lib/schemas/browser.d.ts +2 -0
- package/dist/lib/schemas/browser.js +3 -0
- package/dist/lib/schemas/browser.mjs +2 -0
- package/dist/lib/schemas/index.d.mts +5 -3
- package/dist/lib/schemas/index.d.ts +5 -3
- package/dist/lib/schemas/index.js +5 -0
- package/dist/lib/schemas/index.mjs +4 -0
- package/dist/lib/server/a2a-adapter.js +2 -1
- package/dist/lib/server/a2a-adapter.mjs +2 -1
- package/dist/lib/server/account-response-identity.d.mts +17 -0
- package/dist/lib/server/account-response-identity.d.ts +17 -0
- package/dist/lib/server/account-response-identity.js +52 -0
- package/dist/lib/server/account-response-identity.mjs +28 -0
- package/dist/lib/server/account-sync-contract.js +2 -2
- package/dist/lib/server/account-sync-contract.mjs +2 -2
- package/dist/lib/server/auth-signature.d.mts +2 -2
- package/dist/lib/server/auth-signature.d.ts +2 -2
- package/dist/lib/server/auth-signature.js +3 -0
- package/dist/lib/server/auth-signature.mjs +3 -0
- package/dist/lib/server/create-adcp-server.d.mts +2 -2
- package/dist/lib/server/create-adcp-server.d.ts +2 -2
- package/dist/lib/server/create-adcp-server.js +58 -23
- package/dist/lib/server/create-adcp-server.mjs +61 -15
- package/dist/lib/server/decisioning/account.d.mts +36 -10
- package/dist/lib/server/decisioning/account.d.ts +36 -10
- package/dist/lib/server/decisioning/account.js +33 -14
- package/dist/lib/server/decisioning/account.mjs +33 -14
- package/dist/lib/server/decisioning/runtime/from-platform.d.mts +5 -5
- package/dist/lib/server/decisioning/runtime/from-platform.d.ts +5 -5
- package/dist/lib/server/decisioning/runtime/from-platform.js +4 -4
- package/dist/lib/server/decisioning/runtime/from-platform.mjs +4 -4
- package/dist/lib/server/media-buy-store.d.mts +26 -12
- package/dist/lib/server/media-buy-store.d.ts +26 -12
- package/dist/lib/server/media-buy-store.js +69 -21
- package/dist/lib/server/media-buy-store.mjs +69 -21
- package/dist/lib/server/notification-subscriptions/runtime.d.mts +1 -1
- package/dist/lib/server/notification-subscriptions/runtime.d.ts +1 -1
- package/dist/lib/server/notification-subscriptions/runtime.js +4 -0
- package/dist/lib/server/notification-subscriptions/runtime.mjs +4 -0
- package/dist/lib/server/responses.js +9 -1
- package/dist/lib/server/responses.mjs +9 -1
- package/dist/lib/server/serve.js +3 -1
- package/dist/lib/server/serve.mjs +3 -1
- package/dist/lib/server/signed-request-transport.d.mts +1 -0
- package/dist/lib/server/signed-request-transport.d.ts +1 -0
- package/dist/lib/server/signed-request-transport.js +46 -0
- package/dist/lib/server/signed-request-transport.mjs +20 -0
- package/dist/lib/server/test-controller.d.mts +1 -0
- package/dist/lib/server/test-controller.d.ts +1 -0
- package/dist/lib/server/test-controller.js +5 -1
- package/dist/lib/server/test-controller.mjs +5 -1
- package/dist/lib/signing/agent-fetch.d.mts +1 -1
- package/dist/lib/signing/agent-fetch.d.ts +1 -1
- package/dist/lib/signing/agent-fetch.js +3 -3
- package/dist/lib/signing/agent-fetch.mjs +3 -3
- package/dist/lib/testing/index.d.mts +1 -0
- package/dist/lib/testing/index.d.ts +1 -0
- package/dist/lib/testing/index.js +3 -0
- package/dist/lib/testing/index.mjs +2 -0
- package/dist/lib/testing/storyboard/canonical-format-satisfaction.js +61 -29
- package/dist/lib/testing/storyboard/canonical-format-satisfaction.mjs +61 -29
- package/dist/lib/testing/storyboard/compliance.d.mts +2 -5
- package/dist/lib/testing/storyboard/compliance.d.ts +2 -5
- package/dist/lib/testing/storyboard/compliance.js +62 -13
- package/dist/lib/testing/storyboard/compliance.mjs +63 -14
- package/dist/lib/testing/storyboard/index.d.mts +1 -0
- package/dist/lib/testing/storyboard/index.d.ts +1 -0
- package/dist/lib/testing/storyboard/index.js +3 -0
- package/dist/lib/testing/storyboard/index.mjs +2 -0
- package/dist/lib/testing/storyboard/loader.js +7 -0
- package/dist/lib/testing/storyboard/loader.mjs +7 -0
- package/dist/lib/testing/storyboard/request-builder.js +9 -6
- package/dist/lib/testing/storyboard/request-builder.mjs +9 -6
- package/dist/lib/testing/storyboard/request-signing/vector-loader.d.mts +2 -0
- package/dist/lib/testing/storyboard/request-signing/vector-loader.d.ts +2 -0
- package/dist/lib/testing/storyboard/request-signing/vector-loader.js +11 -0
- package/dist/lib/testing/storyboard/request-signing/vector-loader.mjs +10 -0
- package/dist/lib/testing/storyboard/runner.js +59 -6
- package/dist/lib/testing/storyboard/runner.mjs +59 -6
- package/dist/lib/testing/storyboard/types.d.mts +18 -0
- package/dist/lib/testing/storyboard/types.d.ts +18 -0
- package/dist/lib/testing/storyboard/validations.d.mts +1 -1
- package/dist/lib/testing/storyboard/validations.d.ts +1 -1
- package/dist/lib/testing/storyboard/web-bot-auth.d.mts +10 -0
- package/dist/lib/testing/storyboard/web-bot-auth.d.ts +10 -0
- package/dist/lib/testing/storyboard/web-bot-auth.js +80 -0
- package/dist/lib/testing/storyboard/web-bot-auth.mjs +56 -0
- package/dist/lib/types/accept-proposal.d.ts +20 -28
- package/dist/lib/types/asset-instances.d.mts +1 -1
- package/dist/lib/types/asset-instances.d.ts +1 -1
- package/dist/lib/types/buy-products.d.ts +20 -28
- package/dist/lib/types/check-governance.d.ts +20 -28
- package/dist/lib/types/comply-test-controller.d.ts +20 -28
- package/dist/lib/types/control-media-buy.d.ts +20 -28
- package/dist/lib/types/core.generated.d.mts +273 -184
- package/dist/lib/types/core.generated.d.ts +273 -184
- package/dist/lib/types/create-media-buy.d.ts +20 -28
- package/dist/lib/types/get-media-buys.d.ts +20 -28
- package/dist/lib/types/get-products.d.ts +20 -28
- package/dist/lib/types/index.d.mts +6 -1
- package/dist/lib/types/index.d.ts +6 -1
- package/dist/lib/types/index.js +6 -1
- package/dist/lib/types/index.mjs +4 -1
- package/dist/lib/types/inline-enums.generated.d.mts +30 -4
- package/dist/lib/types/inline-enums.generated.d.ts +30 -4
- package/dist/lib/types/inline-enums.generated.js +41 -2
- package/dist/lib/types/inline-enums.generated.mjs +28 -2
- package/dist/lib/types/list-products.d.ts +20 -28
- package/dist/lib/types/list-proposals.d.ts +20 -28
- package/dist/lib/types/media-buy-delivery-report.d.mts +6 -0
- package/dist/lib/types/media-buy-delivery-report.d.ts +6 -0
- package/dist/lib/types/media-buy-delivery-report.js +16 -0
- package/dist/lib/types/media-buy-delivery-report.mjs +0 -0
- package/dist/lib/types/refine-proposals.d.ts +20 -28
- package/dist/lib/types/request-proposals.d.ts +20 -28
- package/dist/lib/types/schemas.generated.d.ts +63113 -127273
- package/dist/lib/types/schemas.generated.js +759 -770
- package/dist/lib/types/schemas.generated.mjs +759 -770
- package/dist/lib/types/targeting-keys.generated.d.mts +4 -0
- package/dist/lib/types/targeting-keys.generated.d.ts +4 -0
- package/dist/lib/types/targeting-keys.generated.js +109 -0
- package/dist/lib/types/targeting-keys.generated.mjs +84 -0
- package/dist/lib/types/tools.generated.d.mts +2 -68
- package/dist/lib/types/tools.generated.d.ts +2 -68
- package/dist/lib/types/update-media-buy.d.ts +20 -28
- package/dist/lib/utils/adcp-version-config.js +5 -2
- package/dist/lib/utils/adcp-version-config.mjs +5 -2
- package/dist/lib/utils/response-unwrapper.js +6 -1
- package/dist/lib/utils/response-unwrapper.mjs +6 -1
- package/dist/lib/v2/format-schema/resolver.js +1 -1
- package/dist/lib/v2/format-schema/resolver.mjs +1 -1
- package/dist/lib/v2/projection/creative-delivery.js +104 -29
- package/dist/lib/v2/projection/creative-delivery.mjs +108 -29
- package/dist/lib/v2/projection/index.d.mts +1 -0
- package/dist/lib/v2/projection/index.d.ts +1 -0
- package/dist/lib/v2/projection/index.js +3 -0
- package/dist/lib/v2/projection/index.mjs +2 -0
- package/dist/lib/v2/projection/legacy-metadata.d.mts +19 -0
- package/dist/lib/v2/projection/legacy-metadata.d.ts +19 -0
- package/dist/lib/v2/projection/legacy-metadata.js +91 -0
- package/dist/lib/v2/projection/legacy-metadata.mjs +86 -0
- package/dist/lib/v2/projection/v1-to-v2.d.mts +1 -1
- package/dist/lib/v2/projection/v1-to-v2.d.ts +1 -1
- package/dist/lib/v2/projection/v1-to-v2.js +12 -9
- package/dist/lib/v2/projection/v1-to-v2.mjs +12 -9
- package/dist/lib/validation/budget-allocation.d.mts +3 -3
- package/dist/lib/validation/budget-allocation.d.ts +3 -3
- package/dist/lib/validation/compact-schema.d.mts +27 -0
- package/dist/lib/validation/compact-schema.d.ts +27 -0
- package/dist/lib/validation/compact-schema.js +276 -0
- package/dist/lib/validation/compact-schema.mjs +250 -0
- package/dist/lib/validation/media-buy-delivery-report.d.mts +8 -0
- package/dist/lib/validation/media-buy-delivery-report.d.ts +8 -0
- package/dist/lib/validation/media-buy-delivery-report.js +31 -0
- package/dist/lib/validation/media-buy-delivery-report.mjs +7 -0
- package/dist/lib/validation/nonempty-array.d.mts +15 -0
- package/dist/lib/validation/nonempty-array.d.ts +15 -0
- package/dist/lib/validation/nonempty-array.js +41 -0
- package/dist/lib/validation/nonempty-array.mjs +7 -0
- package/dist/lib/validation/schema-diagnostic-origins.d.mts +21 -0
- package/dist/lib/validation/schema-diagnostic-origins.d.ts +21 -0
- package/dist/lib/validation/schema-diagnostic-origins.js +193 -0
- package/dist/lib/validation/schema-diagnostic-origins.mjs +169 -0
- package/dist/lib/validation/schema-loader.js +86 -16
- package/dist/lib/validation/schema-loader.mjs +82 -16
- package/dist/lib/validation/schema-validator.d.mts +10 -19
- package/dist/lib/validation/schema-validator.d.ts +10 -19
- package/dist/lib/validation/schema-validator.js +135 -42
- package/dist/lib/validation/schema-validator.mjs +139 -43
- package/dist/lib/validation/sync-creatives.d.mts +22 -22
- package/dist/lib/validation/sync-creatives.d.ts +22 -22
- package/dist/lib/version.d.mts +3 -3
- package/dist/lib/version.d.ts +3 -3
- package/dist/lib/version.js +3 -3
- package/dist/lib/version.mjs +3 -3
- package/dist/lib/webhooks/index.d.mts +3 -0
- package/dist/lib/webhooks/index.d.ts +3 -0
- package/dist/lib/webhooks/index.js +3 -0
- package/dist/lib/webhooks/index.mjs +2 -0
- package/dist/lib/webhooks/media-buy-delivery.d.mts +43 -0
- package/dist/lib/webhooks/media-buy-delivery.d.ts +43 -0
- package/dist/lib/webhooks/media-buy-delivery.js +119 -0
- package/dist/lib/webhooks/media-buy-delivery.mjs +94 -0
- package/docs/TYPE-SUMMARY.md +2 -2
- package/docs/guides/DELIVERY-WEBHOOK-PARSING.md +142 -0
- package/docs/guides/DISCOVERY-CACHE-AND-SESSION-REUSE.md +15 -0
- package/docs/guides/REPORTING-LEDGER.md +93 -0
- package/docs/guides/REPORTING-STABILITY.md +1 -1
- package/docs/guides/TYPED-CLIENT-TOOLS.md +49 -0
- package/docs/llms.txt +2 -2
- package/docs/migration-14.x-rc-worksheet.md +4 -4
- package/docs/migration-16-to-17.md +218 -14
- package/docs/migration-6.6-to-6.7.md +14 -0
- package/docs/migration-account-change-feed.md +15 -0
- package/docs/migration-agent-identity-3.3.md +106 -4
- package/docs/recipes/verifying-inbound-webhooks.md +18 -2
- package/package.json +16 -3
|
@@ -125,9 +125,21 @@ class AgentClient {
|
|
|
125
125
|
get executor() {
|
|
126
126
|
return this.client.executor;
|
|
127
127
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
getTaskStatus(taskIdOrParams, transportOrHandler, signalOrOptions, wireOptions) {
|
|
129
|
+
if (typeof taskIdOrParams !== "string") {
|
|
130
|
+
return this.executeTask(
|
|
131
|
+
"get_task_status",
|
|
132
|
+
taskIdOrParams,
|
|
133
|
+
transportOrHandler,
|
|
134
|
+
signalOrOptions
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
return this.client.getTaskStatus(
|
|
138
|
+
taskIdOrParams,
|
|
139
|
+
transportOrHandler,
|
|
140
|
+
signalOrOptions,
|
|
141
|
+
wireOptions
|
|
142
|
+
);
|
|
131
143
|
}
|
|
132
144
|
/** Register restart/replica callback recovery for a compatibility coordinator. @internal */
|
|
133
145
|
registerDurableSettlementRecovery(recoverer) {
|
|
@@ -950,6 +962,429 @@ class AgentClient {
|
|
|
950
962
|
this.retainSession(result);
|
|
951
963
|
return result;
|
|
952
964
|
}
|
|
965
|
+
/** Execute the AdCP acquire_rights tool. */
|
|
966
|
+
async acquireRights(params, inputHandler, options) {
|
|
967
|
+
const result = await this.client.executeTask(
|
|
968
|
+
"acquire_rights",
|
|
969
|
+
params,
|
|
970
|
+
inputHandler,
|
|
971
|
+
this.withSession("acquire_rights", options)
|
|
972
|
+
);
|
|
973
|
+
this.retainSession(result);
|
|
974
|
+
return result;
|
|
975
|
+
}
|
|
976
|
+
/** Generate, transform, refine, retrieve, or adapt creative manifests for advertised creative capabilities. */
|
|
977
|
+
async buildCreative(params, inputHandler, options) {
|
|
978
|
+
const result = await this.client.executeTask(
|
|
979
|
+
"build_creative",
|
|
980
|
+
params,
|
|
981
|
+
inputHandler,
|
|
982
|
+
this.withSession("build_creative", options)
|
|
983
|
+
);
|
|
984
|
+
this.retainSession(result);
|
|
985
|
+
return result;
|
|
986
|
+
}
|
|
987
|
+
/** Execute the AdCP calibrate_content tool. */
|
|
988
|
+
async calibrateContent(params, inputHandler, options) {
|
|
989
|
+
const result = await this.client.executeTask(
|
|
990
|
+
"calibrate_content",
|
|
991
|
+
params,
|
|
992
|
+
inputHandler,
|
|
993
|
+
this.withSession("calibrate_content", options)
|
|
994
|
+
);
|
|
995
|
+
this.retainSession(result);
|
|
996
|
+
return result;
|
|
997
|
+
}
|
|
998
|
+
/** Execute the AdCP check_governance tool. */
|
|
999
|
+
async checkGovernance(params, inputHandler, options) {
|
|
1000
|
+
const result = await this.client.executeTask(
|
|
1001
|
+
"check_governance",
|
|
1002
|
+
params,
|
|
1003
|
+
inputHandler,
|
|
1004
|
+
this.withSession("check_governance", options)
|
|
1005
|
+
);
|
|
1006
|
+
this.retainSession(result);
|
|
1007
|
+
return result;
|
|
1008
|
+
}
|
|
1009
|
+
/** Control a seller compliance scenario. Intended for conformance testing. */
|
|
1010
|
+
async complyTestController(params, inputHandler, options) {
|
|
1011
|
+
const result = await this.client.executeTask(
|
|
1012
|
+
"comply_test_controller",
|
|
1013
|
+
params,
|
|
1014
|
+
inputHandler,
|
|
1015
|
+
this.withSession("comply_test_controller", options)
|
|
1016
|
+
);
|
|
1017
|
+
this.retainSession(result);
|
|
1018
|
+
return result;
|
|
1019
|
+
}
|
|
1020
|
+
/** Execute the AdCP create_collection_list tool. */
|
|
1021
|
+
async createCollectionList(params, inputHandler, options) {
|
|
1022
|
+
const result = await this.client.executeTask(
|
|
1023
|
+
"create_collection_list",
|
|
1024
|
+
params,
|
|
1025
|
+
inputHandler,
|
|
1026
|
+
this.withSession("create_collection_list", options)
|
|
1027
|
+
);
|
|
1028
|
+
this.retainSession(result);
|
|
1029
|
+
return result;
|
|
1030
|
+
}
|
|
1031
|
+
/** Execute the AdCP create_content_standards tool. */
|
|
1032
|
+
async createContentStandards(params, inputHandler, options) {
|
|
1033
|
+
const result = await this.client.executeTask(
|
|
1034
|
+
"create_content_standards",
|
|
1035
|
+
params,
|
|
1036
|
+
inputHandler,
|
|
1037
|
+
this.withSession("create_content_standards", options)
|
|
1038
|
+
);
|
|
1039
|
+
this.retainSession(result);
|
|
1040
|
+
return result;
|
|
1041
|
+
}
|
|
1042
|
+
/** Execute the AdCP delete_collection_list tool. */
|
|
1043
|
+
async deleteCollectionList(params, inputHandler, options) {
|
|
1044
|
+
const result = await this.client.executeTask(
|
|
1045
|
+
"delete_collection_list",
|
|
1046
|
+
params,
|
|
1047
|
+
inputHandler,
|
|
1048
|
+
this.withSession("delete_collection_list", options)
|
|
1049
|
+
);
|
|
1050
|
+
this.retainSession(result);
|
|
1051
|
+
return result;
|
|
1052
|
+
}
|
|
1053
|
+
/** Retrieve spend, credit or balance status, and invoice history for an operator-billed account. */
|
|
1054
|
+
async getAccountFinancials(params, inputHandler, options) {
|
|
1055
|
+
const result = await this.client.executeTask(
|
|
1056
|
+
"get_account_financials",
|
|
1057
|
+
params,
|
|
1058
|
+
inputHandler,
|
|
1059
|
+
this.withSession("get_account_financials", options)
|
|
1060
|
+
);
|
|
1061
|
+
this.retainSession(result);
|
|
1062
|
+
return result;
|
|
1063
|
+
}
|
|
1064
|
+
/** Execute the AdCP get_brand_identity tool. */
|
|
1065
|
+
async getBrandIdentity(params, inputHandler, options) {
|
|
1066
|
+
const result = await this.client.executeTask(
|
|
1067
|
+
"get_brand_identity",
|
|
1068
|
+
params,
|
|
1069
|
+
inputHandler,
|
|
1070
|
+
this.withSession("get_brand_identity", options)
|
|
1071
|
+
);
|
|
1072
|
+
this.retainSession(result);
|
|
1073
|
+
return result;
|
|
1074
|
+
}
|
|
1075
|
+
/** Execute the AdCP get_collection_list tool. */
|
|
1076
|
+
async getCollectionList(params, inputHandler, options) {
|
|
1077
|
+
const result = await this.client.executeTask(
|
|
1078
|
+
"get_collection_list",
|
|
1079
|
+
params,
|
|
1080
|
+
inputHandler,
|
|
1081
|
+
this.withSession("get_collection_list", options)
|
|
1082
|
+
);
|
|
1083
|
+
this.retainSession(result);
|
|
1084
|
+
return result;
|
|
1085
|
+
}
|
|
1086
|
+
/** Execute the AdCP get_content_standards tool. */
|
|
1087
|
+
async getContentStandards(params, inputHandler, options) {
|
|
1088
|
+
const result = await this.client.executeTask(
|
|
1089
|
+
"get_content_standards",
|
|
1090
|
+
params,
|
|
1091
|
+
inputHandler,
|
|
1092
|
+
this.withSession("get_content_standards", options)
|
|
1093
|
+
);
|
|
1094
|
+
this.retainSession(result);
|
|
1095
|
+
return result;
|
|
1096
|
+
}
|
|
1097
|
+
/** Evaluate a creative manifest and return scored safety, content, quality, and governance features. */
|
|
1098
|
+
async getCreativeFeatures(params, inputHandler, options) {
|
|
1099
|
+
const result = await this.client.executeTask(
|
|
1100
|
+
"get_creative_features",
|
|
1101
|
+
params,
|
|
1102
|
+
inputHandler,
|
|
1103
|
+
this.withSession("get_creative_features", options)
|
|
1104
|
+
);
|
|
1105
|
+
this.retainSession(result);
|
|
1106
|
+
return result;
|
|
1107
|
+
}
|
|
1108
|
+
/** Execute the AdCP get_media_buy_artifacts tool. */
|
|
1109
|
+
async getMediaBuyArtifacts(params, inputHandler, options) {
|
|
1110
|
+
const result = await this.client.executeTask(
|
|
1111
|
+
"get_media_buy_artifacts",
|
|
1112
|
+
params,
|
|
1113
|
+
inputHandler,
|
|
1114
|
+
this.withSession("get_media_buy_artifacts", options)
|
|
1115
|
+
);
|
|
1116
|
+
this.retainSession(result);
|
|
1117
|
+
return result;
|
|
1118
|
+
}
|
|
1119
|
+
/** Execute the AdCP get_plan_audit_logs tool. */
|
|
1120
|
+
async getPlanAuditLogs(params, inputHandler, options) {
|
|
1121
|
+
const result = await this.client.getPlanAuditLogs(
|
|
1122
|
+
params,
|
|
1123
|
+
inputHandler,
|
|
1124
|
+
this.withSession("get_plan_audit_logs", options)
|
|
1125
|
+
);
|
|
1126
|
+
this.retainSession(result);
|
|
1127
|
+
return result;
|
|
1128
|
+
}
|
|
1129
|
+
/** Check reporting health, enumerate expected periods and all retained revisions, or resolve one exact reporting revision. */
|
|
1130
|
+
async getReportingStatus(params, inputHandler, options) {
|
|
1131
|
+
const result = await this.client.executeTask(
|
|
1132
|
+
"get_reporting_status",
|
|
1133
|
+
params,
|
|
1134
|
+
inputHandler,
|
|
1135
|
+
this.withSession("get_reporting_status", options)
|
|
1136
|
+
);
|
|
1137
|
+
this.retainSession(result);
|
|
1138
|
+
return result;
|
|
1139
|
+
}
|
|
1140
|
+
/** Execute the AdCP get_rights tool. */
|
|
1141
|
+
async getRights(params, inputHandler, options) {
|
|
1142
|
+
const result = await this.client.executeTask(
|
|
1143
|
+
"get_rights",
|
|
1144
|
+
params,
|
|
1145
|
+
inputHandler,
|
|
1146
|
+
this.withSession("get_rights", options)
|
|
1147
|
+
);
|
|
1148
|
+
this.retainSession(result);
|
|
1149
|
+
return result;
|
|
1150
|
+
}
|
|
1151
|
+
/** Execute the AdCP list_collection_lists tool. */
|
|
1152
|
+
async listCollectionLists(params, inputHandler, options) {
|
|
1153
|
+
const result = await this.client.executeTask(
|
|
1154
|
+
"list_collection_lists",
|
|
1155
|
+
params,
|
|
1156
|
+
inputHandler,
|
|
1157
|
+
this.withSession("list_collection_lists", options)
|
|
1158
|
+
);
|
|
1159
|
+
this.retainSession(result);
|
|
1160
|
+
return result;
|
|
1161
|
+
}
|
|
1162
|
+
/** Execute the AdCP list_content_standards tool. */
|
|
1163
|
+
async listContentStandards(params, inputHandler, options) {
|
|
1164
|
+
const result = await this.client.executeTask(
|
|
1165
|
+
"list_content_standards",
|
|
1166
|
+
params,
|
|
1167
|
+
inputHandler,
|
|
1168
|
+
this.withSession("list_content_standards", options)
|
|
1169
|
+
);
|
|
1170
|
+
this.retainSession(result);
|
|
1171
|
+
return result;
|
|
1172
|
+
}
|
|
1173
|
+
/** Execute the AdCP list_creative_formats tool. */
|
|
1174
|
+
async listCreativeFormats(params, inputHandler, options) {
|
|
1175
|
+
const result = await this.client.executeTask(
|
|
1176
|
+
"list_creative_formats",
|
|
1177
|
+
params,
|
|
1178
|
+
inputHandler,
|
|
1179
|
+
this.withSession("list_creative_formats", options)
|
|
1180
|
+
);
|
|
1181
|
+
this.retainSession(result);
|
|
1182
|
+
return result;
|
|
1183
|
+
}
|
|
1184
|
+
/** Discover account-scoped creative transformers and their selectable configuration options. */
|
|
1185
|
+
async listTransformers(params, inputHandler, options) {
|
|
1186
|
+
const result = await this.client.executeTask(
|
|
1187
|
+
"list_transformers",
|
|
1188
|
+
params,
|
|
1189
|
+
inputHandler,
|
|
1190
|
+
this.withSession("list_transformers", options)
|
|
1191
|
+
);
|
|
1192
|
+
this.retainSession(result);
|
|
1193
|
+
return result;
|
|
1194
|
+
}
|
|
1195
|
+
/** Log batches of marketing events against a configured event source for measurement and attribution. */
|
|
1196
|
+
async logEvent(params, inputHandler, options) {
|
|
1197
|
+
const result = await this.client.executeTask(
|
|
1198
|
+
"log_event",
|
|
1199
|
+
params,
|
|
1200
|
+
inputHandler,
|
|
1201
|
+
this.withSession("log_event", options)
|
|
1202
|
+
);
|
|
1203
|
+
this.retainSession(result);
|
|
1204
|
+
return result;
|
|
1205
|
+
}
|
|
1206
|
+
/** Execute the AdCP report_plan_outcome tool. */
|
|
1207
|
+
async reportPlanOutcome(params, inputHandler, options) {
|
|
1208
|
+
const result = await this.client.executeTask(
|
|
1209
|
+
"report_plan_outcome",
|
|
1210
|
+
params,
|
|
1211
|
+
inputHandler,
|
|
1212
|
+
this.withSession("report_plan_outcome", options)
|
|
1213
|
+
);
|
|
1214
|
+
this.retainSession(result);
|
|
1215
|
+
return result;
|
|
1216
|
+
}
|
|
1217
|
+
/** Report vendor-service consumption and final measurements for revenue tracking and billing reconciliation. */
|
|
1218
|
+
async reportUsage(params, inputHandler, options) {
|
|
1219
|
+
const result = await this.client.executeTask(
|
|
1220
|
+
"report_usage",
|
|
1221
|
+
params,
|
|
1222
|
+
inputHandler,
|
|
1223
|
+
this.withSession("report_usage", options)
|
|
1224
|
+
);
|
|
1225
|
+
this.retainSession(result);
|
|
1226
|
+
return result;
|
|
1227
|
+
}
|
|
1228
|
+
/** Execute the AdCP search_brands tool. */
|
|
1229
|
+
async searchBrands(params, inputHandler, options) {
|
|
1230
|
+
const result = await this.client.executeTask(
|
|
1231
|
+
"search_brands",
|
|
1232
|
+
params,
|
|
1233
|
+
inputHandler,
|
|
1234
|
+
this.withSession("search_brands", options)
|
|
1235
|
+
);
|
|
1236
|
+
this.retainSession(result);
|
|
1237
|
+
return result;
|
|
1238
|
+
}
|
|
1239
|
+
/** List or synchronize buyer-managed account catalog feeds, suppress or restore specific items, and read current availability state. */
|
|
1240
|
+
async syncCatalogs(params, inputHandler, options) {
|
|
1241
|
+
const result = await this.client.executeTask(
|
|
1242
|
+
"sync_catalogs",
|
|
1243
|
+
params,
|
|
1244
|
+
inputHandler,
|
|
1245
|
+
this.withSession("sync_catalogs", options)
|
|
1246
|
+
);
|
|
1247
|
+
this.retainSession(result);
|
|
1248
|
+
return result;
|
|
1249
|
+
}
|
|
1250
|
+
/** List or synchronize account event sources with upsert and optional replacement semantics. */
|
|
1251
|
+
async syncEventSources(params, inputHandler, options) {
|
|
1252
|
+
const result = await this.client.executeTask(
|
|
1253
|
+
"sync_event_sources",
|
|
1254
|
+
params,
|
|
1255
|
+
inputHandler,
|
|
1256
|
+
this.withSession("sync_event_sources", options)
|
|
1257
|
+
);
|
|
1258
|
+
this.retainSession(result);
|
|
1259
|
+
return result;
|
|
1260
|
+
}
|
|
1261
|
+
/** Bind or replace the governance agent used for approval across specific advertiser accounts. */
|
|
1262
|
+
async syncGovernance(params, inputHandler, options) {
|
|
1263
|
+
const result = await this.client.executeTask(
|
|
1264
|
+
"sync_governance",
|
|
1265
|
+
params,
|
|
1266
|
+
inputHandler,
|
|
1267
|
+
this.withSession("sync_governance", options)
|
|
1268
|
+
);
|
|
1269
|
+
this.retainSession(result);
|
|
1270
|
+
return result;
|
|
1271
|
+
}
|
|
1272
|
+
/** Execute the AdCP sync_plans tool. */
|
|
1273
|
+
async syncPlans(params, inputHandler, options) {
|
|
1274
|
+
const result = await this.client.syncPlans(params, inputHandler, this.withSession("sync_plans", options));
|
|
1275
|
+
this.retainSession(result);
|
|
1276
|
+
return result;
|
|
1277
|
+
}
|
|
1278
|
+
/** Record a consumer's independently verified reporting totals and destination evidence in the seller ledger. */
|
|
1279
|
+
async syncReportingReceipts(params, inputHandler, options) {
|
|
1280
|
+
const result = await this.client.executeTask(
|
|
1281
|
+
"sync_reporting_receipts",
|
|
1282
|
+
params,
|
|
1283
|
+
inputHandler,
|
|
1284
|
+
this.withSession("sync_reporting_receipts", options)
|
|
1285
|
+
);
|
|
1286
|
+
this.retainSession(result);
|
|
1287
|
+
return result;
|
|
1288
|
+
}
|
|
1289
|
+
/** Tell a seller whether expected reporting was received, omitted, missing, unreadable, or contradictory. */
|
|
1290
|
+
async syncReportingStatus(params, inputHandler, options) {
|
|
1291
|
+
const result = await this.client.executeTask(
|
|
1292
|
+
"sync_reporting_status",
|
|
1293
|
+
params,
|
|
1294
|
+
inputHandler,
|
|
1295
|
+
this.withSession("sync_reporting_status", options)
|
|
1296
|
+
);
|
|
1297
|
+
this.retainSession(result);
|
|
1298
|
+
return result;
|
|
1299
|
+
}
|
|
1300
|
+
/** Execute the AdCP update_collection_list tool. */
|
|
1301
|
+
async updateCollectionList(params, inputHandler, options) {
|
|
1302
|
+
const result = await this.client.executeTask(
|
|
1303
|
+
"update_collection_list",
|
|
1304
|
+
params,
|
|
1305
|
+
inputHandler,
|
|
1306
|
+
this.withSession("update_collection_list", options)
|
|
1307
|
+
);
|
|
1308
|
+
this.retainSession(result);
|
|
1309
|
+
return result;
|
|
1310
|
+
}
|
|
1311
|
+
/** Execute the AdCP update_content_standards tool. */
|
|
1312
|
+
async updateContentStandards(params, inputHandler, options) {
|
|
1313
|
+
const result = await this.client.executeTask(
|
|
1314
|
+
"update_content_standards",
|
|
1315
|
+
params,
|
|
1316
|
+
inputHandler,
|
|
1317
|
+
this.withSession("update_content_standards", options)
|
|
1318
|
+
);
|
|
1319
|
+
this.retainSession(result);
|
|
1320
|
+
return result;
|
|
1321
|
+
}
|
|
1322
|
+
/** Execute the AdCP update_rights tool. */
|
|
1323
|
+
async updateRights(params, inputHandler, options) {
|
|
1324
|
+
const result = await this.client.executeTask(
|
|
1325
|
+
"update_rights",
|
|
1326
|
+
params,
|
|
1327
|
+
inputHandler,
|
|
1328
|
+
this.withSession("update_rights", options)
|
|
1329
|
+
);
|
|
1330
|
+
this.retainSession(result);
|
|
1331
|
+
return result;
|
|
1332
|
+
}
|
|
1333
|
+
/** Execute the AdCP validate_content_delivery tool. */
|
|
1334
|
+
async validateContentDelivery(params, inputHandler, options) {
|
|
1335
|
+
const result = await this.client.executeTask(
|
|
1336
|
+
"validate_content_delivery",
|
|
1337
|
+
params,
|
|
1338
|
+
inputHandler,
|
|
1339
|
+
this.withSession("validate_content_delivery", options)
|
|
1340
|
+
);
|
|
1341
|
+
this.retainSession(result);
|
|
1342
|
+
return result;
|
|
1343
|
+
}
|
|
1344
|
+
/** Preflight a creative manifest against canonical formats, products, third-party formats, or agent capabilities. */
|
|
1345
|
+
async validateInput(params, inputHandler, options) {
|
|
1346
|
+
const result = await this.client.executeTask(
|
|
1347
|
+
"validate_input",
|
|
1348
|
+
params,
|
|
1349
|
+
inputHandler,
|
|
1350
|
+
this.withSession("validate_input", options)
|
|
1351
|
+
);
|
|
1352
|
+
this.retainSession(result);
|
|
1353
|
+
return result;
|
|
1354
|
+
}
|
|
1355
|
+
/** Execute the AdCP validate_property_delivery tool. */
|
|
1356
|
+
async validatePropertyDelivery(params, inputHandler, options) {
|
|
1357
|
+
const result = await this.client.executeTask(
|
|
1358
|
+
"validate_property_delivery",
|
|
1359
|
+
params,
|
|
1360
|
+
inputHandler,
|
|
1361
|
+
this.withSession("validate_property_delivery", options)
|
|
1362
|
+
);
|
|
1363
|
+
this.retainSession(result);
|
|
1364
|
+
return result;
|
|
1365
|
+
}
|
|
1366
|
+
/** Execute the AdCP verify_brand_claim tool. */
|
|
1367
|
+
async verifyBrandClaim(params, inputHandler, options) {
|
|
1368
|
+
const result = await this.client.executeTask(
|
|
1369
|
+
"verify_brand_claim",
|
|
1370
|
+
params,
|
|
1371
|
+
inputHandler,
|
|
1372
|
+
this.withSession("verify_brand_claim", options)
|
|
1373
|
+
);
|
|
1374
|
+
this.retainSession(result);
|
|
1375
|
+
return result;
|
|
1376
|
+
}
|
|
1377
|
+
/** Execute the AdCP verify_brand_claims tool. */
|
|
1378
|
+
async verifyBrandClaims(params, inputHandler, options) {
|
|
1379
|
+
const result = await this.client.executeTask(
|
|
1380
|
+
"verify_brand_claims",
|
|
1381
|
+
params,
|
|
1382
|
+
inputHandler,
|
|
1383
|
+
this.withSession("verify_brand_claims", options)
|
|
1384
|
+
);
|
|
1385
|
+
this.retainSession(result);
|
|
1386
|
+
return result;
|
|
1387
|
+
}
|
|
953
1388
|
// ====== GOVERNANCE TASKS ======
|
|
954
1389
|
/**
|
|
955
1390
|
* Create a property list
|
|
@@ -1344,6 +1779,12 @@ class AgentClient {
|
|
|
1344
1779
|
return this.getMediaBuyDelivery(params, inputHandler, options);
|
|
1345
1780
|
case "get_creative_delivery":
|
|
1346
1781
|
return this.getCreativeDelivery(params, inputHandler, options);
|
|
1782
|
+
case "preview_creative":
|
|
1783
|
+
return this.previewCreative(params, inputHandler, options);
|
|
1784
|
+
case "sync_plans":
|
|
1785
|
+
return this.syncPlans(params, inputHandler, options);
|
|
1786
|
+
case "get_plan_audit_logs":
|
|
1787
|
+
return this.getPlanAuditLogs(params, inputHandler, options);
|
|
1347
1788
|
case "get_principal":
|
|
1348
1789
|
return this.getPrincipal(params, inputHandler, options);
|
|
1349
1790
|
case "sync_principal":
|
|
@@ -1374,11 +1815,8 @@ class AgentClient {
|
|
|
1374
1815
|
this.retainSession(result);
|
|
1375
1816
|
return result;
|
|
1376
1817
|
}
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
* List all tasks for this agent
|
|
1380
|
-
*/
|
|
1381
|
-
async listTasks() {
|
|
1818
|
+
async listTasks(params, inputHandler, options) {
|
|
1819
|
+
if (params !== void 0) return this.executeTask("list_tasks", params, inputHandler, options);
|
|
1382
1820
|
return (await this.client.listTasks()).map(import_request_proposals_guard.assertNativeRequestProposalsTask);
|
|
1383
1821
|
}
|
|
1384
1822
|
/**
|