@adcp/sdk 16.5.0 → 16.6.0
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/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/3.1/bidding.js +1 -1
- package/dist/lib/adapters/version/3.1/bidding.mjs +1 -1
- 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/ResponseValidator.js +1 -1
- package/dist/lib/core/ResponseValidator.mjs +1 -1
- package/dist/lib/core/SingleAgentClient.d.mts +116 -6
- package/dist/lib/core/SingleAgentClient.d.ts +116 -6
- package/dist/lib/core/SingleAgentClient.js +556 -84
- package/dist/lib/core/SingleAgentClient.mjs +545 -72
- package/dist/lib/core/TaskExecutor.d.mts +7 -0
- package/dist/lib/core/TaskExecutor.d.ts +7 -0
- package/dist/lib/core/TaskExecutor.js +23 -8
- package/dist/lib/core/TaskExecutor.mjs +23 -8
- 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/errors/index.d.mts +22 -0
- package/dist/lib/errors/index.d.ts +22 -0
- package/dist/lib/errors/index.js +43 -0
- package/dist/lib/errors/index.mjs +42 -0
- 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 +34 -21
- package/dist/lib/identity-3.3/trust.mjs +34 -21
- 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 +8 -54
- package/dist/lib/index.d.ts +8 -54
- package/dist/lib/index.js +15 -0
- package/dist/lib/index.mjs +11 -0
- package/dist/lib/media-buy/action-assessment.js +29 -3
- package/dist/lib/media-buy/action-assessment.mjs +32 -4
- package/dist/lib/media-buy/action-contracts.d.mts +3 -0
- package/dist/lib/media-buy/action-contracts.d.ts +3 -0
- package/dist/lib/media-buy/action-contracts.js +24 -1
- package/dist/lib/media-buy/action-contracts.mjs +22 -1
- package/dist/lib/media-buy/compatibility.js +6 -1
- package/dist/lib/media-buy/compatibility.mjs +6 -1
- package/dist/lib/media-buy/preflight.js +1 -1
- package/dist/lib/media-buy/preflight.mjs +3 -2
- package/dist/lib/media-buy/types.d.mts +6 -1
- package/dist/lib/media-buy/types.d.ts +6 -1
- package/dist/lib/protocols/mcp-modern.d.mts +2 -0
- package/dist/lib/protocols/mcp-modern.d.ts +2 -0
- package/dist/lib/protocols/mcp-modern.js +31 -5
- package/dist/lib/protocols/mcp-modern.mjs +31 -5
- package/dist/lib/protocols/mcp-scope.d.mts +6 -1
- package/dist/lib/protocols/mcp-scope.d.ts +6 -1
- package/dist/lib/protocols/mcp-scope.js +25 -3
- package/dist/lib/protocols/mcp-scope.mjs +24 -3
- package/dist/lib/protocols/mcp.js +12 -6
- package/dist/lib/protocols/mcp.mjs +13 -6
- package/dist/lib/reporting/inspection.js +1 -0
- package/dist/lib/reporting/inspection.mjs +1 -0
- 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 -2
- package/dist/lib/schemas/index.d.ts +5 -2
- package/dist/lib/schemas/index.js +5 -0
- package/dist/lib/schemas/index.mjs +4 -0
- 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 +1 -0
- package/dist/lib/server/account-sync-contract.mjs +1 -0
- package/dist/lib/server/create-adcp-server.js +32 -19
- package/dist/lib/server/create-adcp-server.mjs +36 -12
- package/dist/lib/server/decisioning/account.d.mts +13 -6
- package/dist/lib/server/decisioning/account.d.ts +13 -6
- package/dist/lib/server/decisioning/account.js +37 -15
- package/dist/lib/server/decisioning/account.mjs +37 -15
- 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 +6 -6
- package/dist/lib/server/decisioning/runtime/from-platform.mjs +6 -6
- package/dist/lib/server/index.d.mts +1 -1
- package/dist/lib/server/index.d.ts +1 -1
- package/dist/lib/server/index.js +2 -0
- package/dist/lib/server/index.mjs +2 -0
- package/dist/lib/server/media-buy-action-resolver.d.mts +3 -0
- package/dist/lib/server/media-buy-action-resolver.d.ts +3 -0
- package/dist/lib/server/media-buy-action-resolver.js +32 -0
- package/dist/lib/server/media-buy-action-resolver.mjs +32 -0
- 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/responses.js +9 -1
- package/dist/lib/server/responses.mjs +9 -1
- package/dist/lib/server/state-machine.d.mts +10 -11
- package/dist/lib/server/state-machine.d.ts +10 -11
- package/dist/lib/server/state-machine.js +20 -5
- package/dist/lib/server/state-machine.mjs +19 -5
- 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/client.d.mts +1 -0
- package/dist/lib/testing/client.d.ts +1 -0
- package/dist/lib/testing/client.js +6 -5
- package/dist/lib/testing/client.mjs +6 -5
- package/dist/lib/testing/storyboard/canonical-format-satisfaction.js +60 -14
- package/dist/lib/testing/storyboard/canonical-format-satisfaction.mjs +60 -14
- 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/context.d.mts +13 -3
- package/dist/lib/testing/storyboard/context.d.ts +13 -3
- package/dist/lib/testing/storyboard/context.js +15 -10
- package/dist/lib/testing/storyboard/context.mjs +15 -10
- package/dist/lib/testing/storyboard/default-invariants.js +10 -8
- package/dist/lib/testing/storyboard/default-invariants.mjs +11 -9
- 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 +23 -10
- package/dist/lib/testing/storyboard/runner.mjs +23 -10
- 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/validations.js +4 -1
- package/dist/lib/testing/storyboard/validations.mjs +4 -1
- package/dist/lib/testing/test-controller.js +3 -0
- package/dist/lib/testing/test-controller.mjs +3 -0
- package/dist/lib/types/asset-instances.d.mts +1 -1
- package/dist/lib/types/asset-instances.d.ts +1 -1
- package/dist/lib/types/index.d.mts +5 -0
- package/dist/lib/types/index.d.ts +5 -0
- 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/media-buy-delivery-report.d.mts +4 -0
- package/dist/lib/types/media-buy-delivery-report.d.ts +4 -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/schemas.generated.d.ts +20 -69
- package/dist/lib/types/schemas.generated.js +29 -46
- package/dist/lib/types/schemas.generated.mjs +29 -46
- 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 +105 -0
- package/dist/lib/types/targeting-keys.generated.mjs +80 -0
- package/dist/lib/utils/adcp-version-config.js +5 -2
- package/dist/lib/utils/adcp-version-config.mjs +5 -2
- package/dist/lib/utils/envelope-status-compat.d.mts +18 -1
- package/dist/lib/utils/envelope-status-compat.d.ts +18 -1
- package/dist/lib/utils/envelope-status-compat.js +11 -5
- package/dist/lib/utils/envelope-status-compat.mjs +11 -5
- package/dist/lib/utils/response-unwrapper.js +18 -10
- package/dist/lib/utils/response-unwrapper.mjs +18 -10
- 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 +123 -30
- package/dist/lib/v2/projection/creative-delivery.mjs +127 -30
- 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/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/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 +136 -43
- package/dist/lib/validation/schema-validator.mjs +140 -44
- 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/BUILD-AN-AGENT.md +9 -1
- package/docs/guides/DELIVERY-WEBHOOK-PARSING.md +135 -0
- package/docs/guides/DISCOVERY-CACHE-AND-SESSION-REUSE.md +15 -0
- package/docs/guides/TYPED-CLIENT-TOOLS.md +49 -0
- package/docs/llms.txt +3 -3
- package/docs/migration-14.x-rc-worksheet.md +4 -4
- package/docs/migration-6.6-to-6.7.md +14 -0
- package/docs/migration-account-change-feed.md +19 -0
- package/docs/releases/sdk-16.6-adoption-fixes.md +33 -0
- package/package.json +2 -2
|
@@ -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) {
|
|
@@ -928,6 +940,429 @@ class AgentClient {
|
|
|
928
940
|
this.retainSession(result);
|
|
929
941
|
return result;
|
|
930
942
|
}
|
|
943
|
+
/** Execute the AdCP acquire_rights tool. */
|
|
944
|
+
async acquireRights(params, inputHandler, options) {
|
|
945
|
+
const result = await this.client.executeTask(
|
|
946
|
+
"acquire_rights",
|
|
947
|
+
params,
|
|
948
|
+
inputHandler,
|
|
949
|
+
this.withSession("acquire_rights", options)
|
|
950
|
+
);
|
|
951
|
+
this.retainSession(result);
|
|
952
|
+
return result;
|
|
953
|
+
}
|
|
954
|
+
/** Generate, transform, refine, retrieve, or adapt creative manifests for advertised creative capabilities. */
|
|
955
|
+
async buildCreative(params, inputHandler, options) {
|
|
956
|
+
const result = await this.client.executeTask(
|
|
957
|
+
"build_creative",
|
|
958
|
+
params,
|
|
959
|
+
inputHandler,
|
|
960
|
+
this.withSession("build_creative", options)
|
|
961
|
+
);
|
|
962
|
+
this.retainSession(result);
|
|
963
|
+
return result;
|
|
964
|
+
}
|
|
965
|
+
/** Execute the AdCP calibrate_content tool. */
|
|
966
|
+
async calibrateContent(params, inputHandler, options) {
|
|
967
|
+
const result = await this.client.executeTask(
|
|
968
|
+
"calibrate_content",
|
|
969
|
+
params,
|
|
970
|
+
inputHandler,
|
|
971
|
+
this.withSession("calibrate_content", options)
|
|
972
|
+
);
|
|
973
|
+
this.retainSession(result);
|
|
974
|
+
return result;
|
|
975
|
+
}
|
|
976
|
+
/** Execute the AdCP check_governance tool. */
|
|
977
|
+
async checkGovernance(params, inputHandler, options) {
|
|
978
|
+
const result = await this.client.executeTask(
|
|
979
|
+
"check_governance",
|
|
980
|
+
params,
|
|
981
|
+
inputHandler,
|
|
982
|
+
this.withSession("check_governance", options)
|
|
983
|
+
);
|
|
984
|
+
this.retainSession(result);
|
|
985
|
+
return result;
|
|
986
|
+
}
|
|
987
|
+
/** Control a seller compliance scenario. Intended for conformance testing. */
|
|
988
|
+
async complyTestController(params, inputHandler, options) {
|
|
989
|
+
const result = await this.client.executeTask(
|
|
990
|
+
"comply_test_controller",
|
|
991
|
+
params,
|
|
992
|
+
inputHandler,
|
|
993
|
+
this.withSession("comply_test_controller", options)
|
|
994
|
+
);
|
|
995
|
+
this.retainSession(result);
|
|
996
|
+
return result;
|
|
997
|
+
}
|
|
998
|
+
/** Execute the AdCP create_collection_list tool. */
|
|
999
|
+
async createCollectionList(params, inputHandler, options) {
|
|
1000
|
+
const result = await this.client.executeTask(
|
|
1001
|
+
"create_collection_list",
|
|
1002
|
+
params,
|
|
1003
|
+
inputHandler,
|
|
1004
|
+
this.withSession("create_collection_list", options)
|
|
1005
|
+
);
|
|
1006
|
+
this.retainSession(result);
|
|
1007
|
+
return result;
|
|
1008
|
+
}
|
|
1009
|
+
/** Execute the AdCP create_content_standards tool. */
|
|
1010
|
+
async createContentStandards(params, inputHandler, options) {
|
|
1011
|
+
const result = await this.client.executeTask(
|
|
1012
|
+
"create_content_standards",
|
|
1013
|
+
params,
|
|
1014
|
+
inputHandler,
|
|
1015
|
+
this.withSession("create_content_standards", options)
|
|
1016
|
+
);
|
|
1017
|
+
this.retainSession(result);
|
|
1018
|
+
return result;
|
|
1019
|
+
}
|
|
1020
|
+
/** Execute the AdCP delete_collection_list tool. */
|
|
1021
|
+
async deleteCollectionList(params, inputHandler, options) {
|
|
1022
|
+
const result = await this.client.executeTask(
|
|
1023
|
+
"delete_collection_list",
|
|
1024
|
+
params,
|
|
1025
|
+
inputHandler,
|
|
1026
|
+
this.withSession("delete_collection_list", options)
|
|
1027
|
+
);
|
|
1028
|
+
this.retainSession(result);
|
|
1029
|
+
return result;
|
|
1030
|
+
}
|
|
1031
|
+
/** Retrieve spend, credit or balance status, and invoice history for an operator-billed account. */
|
|
1032
|
+
async getAccountFinancials(params, inputHandler, options) {
|
|
1033
|
+
const result = await this.client.executeTask(
|
|
1034
|
+
"get_account_financials",
|
|
1035
|
+
params,
|
|
1036
|
+
inputHandler,
|
|
1037
|
+
this.withSession("get_account_financials", options)
|
|
1038
|
+
);
|
|
1039
|
+
this.retainSession(result);
|
|
1040
|
+
return result;
|
|
1041
|
+
}
|
|
1042
|
+
/** Execute the AdCP get_brand_identity tool. */
|
|
1043
|
+
async getBrandIdentity(params, inputHandler, options) {
|
|
1044
|
+
const result = await this.client.executeTask(
|
|
1045
|
+
"get_brand_identity",
|
|
1046
|
+
params,
|
|
1047
|
+
inputHandler,
|
|
1048
|
+
this.withSession("get_brand_identity", options)
|
|
1049
|
+
);
|
|
1050
|
+
this.retainSession(result);
|
|
1051
|
+
return result;
|
|
1052
|
+
}
|
|
1053
|
+
/** Execute the AdCP get_collection_list tool. */
|
|
1054
|
+
async getCollectionList(params, inputHandler, options) {
|
|
1055
|
+
const result = await this.client.executeTask(
|
|
1056
|
+
"get_collection_list",
|
|
1057
|
+
params,
|
|
1058
|
+
inputHandler,
|
|
1059
|
+
this.withSession("get_collection_list", options)
|
|
1060
|
+
);
|
|
1061
|
+
this.retainSession(result);
|
|
1062
|
+
return result;
|
|
1063
|
+
}
|
|
1064
|
+
/** Execute the AdCP get_content_standards tool. */
|
|
1065
|
+
async getContentStandards(params, inputHandler, options) {
|
|
1066
|
+
const result = await this.client.executeTask(
|
|
1067
|
+
"get_content_standards",
|
|
1068
|
+
params,
|
|
1069
|
+
inputHandler,
|
|
1070
|
+
this.withSession("get_content_standards", options)
|
|
1071
|
+
);
|
|
1072
|
+
this.retainSession(result);
|
|
1073
|
+
return result;
|
|
1074
|
+
}
|
|
1075
|
+
/** Evaluate a creative manifest and return scored safety, content, quality, and governance features. */
|
|
1076
|
+
async getCreativeFeatures(params, inputHandler, options) {
|
|
1077
|
+
const result = await this.client.executeTask(
|
|
1078
|
+
"get_creative_features",
|
|
1079
|
+
params,
|
|
1080
|
+
inputHandler,
|
|
1081
|
+
this.withSession("get_creative_features", options)
|
|
1082
|
+
);
|
|
1083
|
+
this.retainSession(result);
|
|
1084
|
+
return result;
|
|
1085
|
+
}
|
|
1086
|
+
/** Execute the AdCP get_media_buy_artifacts tool. */
|
|
1087
|
+
async getMediaBuyArtifacts(params, inputHandler, options) {
|
|
1088
|
+
const result = await this.client.executeTask(
|
|
1089
|
+
"get_media_buy_artifacts",
|
|
1090
|
+
params,
|
|
1091
|
+
inputHandler,
|
|
1092
|
+
this.withSession("get_media_buy_artifacts", options)
|
|
1093
|
+
);
|
|
1094
|
+
this.retainSession(result);
|
|
1095
|
+
return result;
|
|
1096
|
+
}
|
|
1097
|
+
/** Execute the AdCP get_plan_audit_logs tool. */
|
|
1098
|
+
async getPlanAuditLogs(params, inputHandler, options) {
|
|
1099
|
+
const result = await this.client.getPlanAuditLogs(
|
|
1100
|
+
params,
|
|
1101
|
+
inputHandler,
|
|
1102
|
+
this.withSession("get_plan_audit_logs", options)
|
|
1103
|
+
);
|
|
1104
|
+
this.retainSession(result);
|
|
1105
|
+
return result;
|
|
1106
|
+
}
|
|
1107
|
+
/** Check reporting health, enumerate expected periods and all retained revisions, or resolve one exact reporting revision. */
|
|
1108
|
+
async getReportingStatus(params, inputHandler, options) {
|
|
1109
|
+
const result = await this.client.executeTask(
|
|
1110
|
+
"get_reporting_status",
|
|
1111
|
+
params,
|
|
1112
|
+
inputHandler,
|
|
1113
|
+
this.withSession("get_reporting_status", options)
|
|
1114
|
+
);
|
|
1115
|
+
this.retainSession(result);
|
|
1116
|
+
return result;
|
|
1117
|
+
}
|
|
1118
|
+
/** Execute the AdCP get_rights tool. */
|
|
1119
|
+
async getRights(params, inputHandler, options) {
|
|
1120
|
+
const result = await this.client.executeTask(
|
|
1121
|
+
"get_rights",
|
|
1122
|
+
params,
|
|
1123
|
+
inputHandler,
|
|
1124
|
+
this.withSession("get_rights", options)
|
|
1125
|
+
);
|
|
1126
|
+
this.retainSession(result);
|
|
1127
|
+
return result;
|
|
1128
|
+
}
|
|
1129
|
+
/** Execute the AdCP list_collection_lists tool. */
|
|
1130
|
+
async listCollectionLists(params, inputHandler, options) {
|
|
1131
|
+
const result = await this.client.executeTask(
|
|
1132
|
+
"list_collection_lists",
|
|
1133
|
+
params,
|
|
1134
|
+
inputHandler,
|
|
1135
|
+
this.withSession("list_collection_lists", options)
|
|
1136
|
+
);
|
|
1137
|
+
this.retainSession(result);
|
|
1138
|
+
return result;
|
|
1139
|
+
}
|
|
1140
|
+
/** Execute the AdCP list_content_standards tool. */
|
|
1141
|
+
async listContentStandards(params, inputHandler, options) {
|
|
1142
|
+
const result = await this.client.executeTask(
|
|
1143
|
+
"list_content_standards",
|
|
1144
|
+
params,
|
|
1145
|
+
inputHandler,
|
|
1146
|
+
this.withSession("list_content_standards", options)
|
|
1147
|
+
);
|
|
1148
|
+
this.retainSession(result);
|
|
1149
|
+
return result;
|
|
1150
|
+
}
|
|
1151
|
+
/** Execute the AdCP list_creative_formats tool. */
|
|
1152
|
+
async listCreativeFormats(params, inputHandler, options) {
|
|
1153
|
+
const result = await this.client.executeTask(
|
|
1154
|
+
"list_creative_formats",
|
|
1155
|
+
params,
|
|
1156
|
+
inputHandler,
|
|
1157
|
+
this.withSession("list_creative_formats", options)
|
|
1158
|
+
);
|
|
1159
|
+
this.retainSession(result);
|
|
1160
|
+
return result;
|
|
1161
|
+
}
|
|
1162
|
+
/** Discover account-scoped creative transformers and their selectable configuration options. */
|
|
1163
|
+
async listTransformers(params, inputHandler, options) {
|
|
1164
|
+
const result = await this.client.executeTask(
|
|
1165
|
+
"list_transformers",
|
|
1166
|
+
params,
|
|
1167
|
+
inputHandler,
|
|
1168
|
+
this.withSession("list_transformers", options)
|
|
1169
|
+
);
|
|
1170
|
+
this.retainSession(result);
|
|
1171
|
+
return result;
|
|
1172
|
+
}
|
|
1173
|
+
/** Log batches of marketing events against a configured event source for measurement and attribution. */
|
|
1174
|
+
async logEvent(params, inputHandler, options) {
|
|
1175
|
+
const result = await this.client.executeTask(
|
|
1176
|
+
"log_event",
|
|
1177
|
+
params,
|
|
1178
|
+
inputHandler,
|
|
1179
|
+
this.withSession("log_event", options)
|
|
1180
|
+
);
|
|
1181
|
+
this.retainSession(result);
|
|
1182
|
+
return result;
|
|
1183
|
+
}
|
|
1184
|
+
/** Execute the AdCP report_plan_outcome tool. */
|
|
1185
|
+
async reportPlanOutcome(params, inputHandler, options) {
|
|
1186
|
+
const result = await this.client.executeTask(
|
|
1187
|
+
"report_plan_outcome",
|
|
1188
|
+
params,
|
|
1189
|
+
inputHandler,
|
|
1190
|
+
this.withSession("report_plan_outcome", options)
|
|
1191
|
+
);
|
|
1192
|
+
this.retainSession(result);
|
|
1193
|
+
return result;
|
|
1194
|
+
}
|
|
1195
|
+
/** Report vendor-service consumption and final measurements for revenue tracking and billing reconciliation. */
|
|
1196
|
+
async reportUsage(params, inputHandler, options) {
|
|
1197
|
+
const result = await this.client.executeTask(
|
|
1198
|
+
"report_usage",
|
|
1199
|
+
params,
|
|
1200
|
+
inputHandler,
|
|
1201
|
+
this.withSession("report_usage", options)
|
|
1202
|
+
);
|
|
1203
|
+
this.retainSession(result);
|
|
1204
|
+
return result;
|
|
1205
|
+
}
|
|
1206
|
+
/** Execute the AdCP search_brands tool. */
|
|
1207
|
+
async searchBrands(params, inputHandler, options) {
|
|
1208
|
+
const result = await this.client.executeTask(
|
|
1209
|
+
"search_brands",
|
|
1210
|
+
params,
|
|
1211
|
+
inputHandler,
|
|
1212
|
+
this.withSession("search_brands", options)
|
|
1213
|
+
);
|
|
1214
|
+
this.retainSession(result);
|
|
1215
|
+
return result;
|
|
1216
|
+
}
|
|
1217
|
+
/** List or synchronize buyer-managed account catalog feeds, suppress or restore specific items, and read current availability state. */
|
|
1218
|
+
async syncCatalogs(params, inputHandler, options) {
|
|
1219
|
+
const result = await this.client.executeTask(
|
|
1220
|
+
"sync_catalogs",
|
|
1221
|
+
params,
|
|
1222
|
+
inputHandler,
|
|
1223
|
+
this.withSession("sync_catalogs", options)
|
|
1224
|
+
);
|
|
1225
|
+
this.retainSession(result);
|
|
1226
|
+
return result;
|
|
1227
|
+
}
|
|
1228
|
+
/** List or synchronize account event sources with upsert and optional replacement semantics. */
|
|
1229
|
+
async syncEventSources(params, inputHandler, options) {
|
|
1230
|
+
const result = await this.client.executeTask(
|
|
1231
|
+
"sync_event_sources",
|
|
1232
|
+
params,
|
|
1233
|
+
inputHandler,
|
|
1234
|
+
this.withSession("sync_event_sources", options)
|
|
1235
|
+
);
|
|
1236
|
+
this.retainSession(result);
|
|
1237
|
+
return result;
|
|
1238
|
+
}
|
|
1239
|
+
/** Bind or replace the governance agent used for approval across specific advertiser accounts. */
|
|
1240
|
+
async syncGovernance(params, inputHandler, options) {
|
|
1241
|
+
const result = await this.client.executeTask(
|
|
1242
|
+
"sync_governance",
|
|
1243
|
+
params,
|
|
1244
|
+
inputHandler,
|
|
1245
|
+
this.withSession("sync_governance", options)
|
|
1246
|
+
);
|
|
1247
|
+
this.retainSession(result);
|
|
1248
|
+
return result;
|
|
1249
|
+
}
|
|
1250
|
+
/** Execute the AdCP sync_plans tool. */
|
|
1251
|
+
async syncPlans(params, inputHandler, options) {
|
|
1252
|
+
const result = await this.client.syncPlans(params, inputHandler, this.withSession("sync_plans", options));
|
|
1253
|
+
this.retainSession(result);
|
|
1254
|
+
return result;
|
|
1255
|
+
}
|
|
1256
|
+
/** Record a consumer's independently verified reporting totals and destination evidence in the seller ledger. */
|
|
1257
|
+
async syncReportingReceipts(params, inputHandler, options) {
|
|
1258
|
+
const result = await this.client.executeTask(
|
|
1259
|
+
"sync_reporting_receipts",
|
|
1260
|
+
params,
|
|
1261
|
+
inputHandler,
|
|
1262
|
+
this.withSession("sync_reporting_receipts", options)
|
|
1263
|
+
);
|
|
1264
|
+
this.retainSession(result);
|
|
1265
|
+
return result;
|
|
1266
|
+
}
|
|
1267
|
+
/** Tell a seller whether expected reporting was received, omitted, missing, unreadable, or contradictory. */
|
|
1268
|
+
async syncReportingStatus(params, inputHandler, options) {
|
|
1269
|
+
const result = await this.client.executeTask(
|
|
1270
|
+
"sync_reporting_status",
|
|
1271
|
+
params,
|
|
1272
|
+
inputHandler,
|
|
1273
|
+
this.withSession("sync_reporting_status", options)
|
|
1274
|
+
);
|
|
1275
|
+
this.retainSession(result);
|
|
1276
|
+
return result;
|
|
1277
|
+
}
|
|
1278
|
+
/** Execute the AdCP update_collection_list tool. */
|
|
1279
|
+
async updateCollectionList(params, inputHandler, options) {
|
|
1280
|
+
const result = await this.client.executeTask(
|
|
1281
|
+
"update_collection_list",
|
|
1282
|
+
params,
|
|
1283
|
+
inputHandler,
|
|
1284
|
+
this.withSession("update_collection_list", options)
|
|
1285
|
+
);
|
|
1286
|
+
this.retainSession(result);
|
|
1287
|
+
return result;
|
|
1288
|
+
}
|
|
1289
|
+
/** Execute the AdCP update_content_standards tool. */
|
|
1290
|
+
async updateContentStandards(params, inputHandler, options) {
|
|
1291
|
+
const result = await this.client.executeTask(
|
|
1292
|
+
"update_content_standards",
|
|
1293
|
+
params,
|
|
1294
|
+
inputHandler,
|
|
1295
|
+
this.withSession("update_content_standards", options)
|
|
1296
|
+
);
|
|
1297
|
+
this.retainSession(result);
|
|
1298
|
+
return result;
|
|
1299
|
+
}
|
|
1300
|
+
/** Execute the AdCP update_rights tool. */
|
|
1301
|
+
async updateRights(params, inputHandler, options) {
|
|
1302
|
+
const result = await this.client.executeTask(
|
|
1303
|
+
"update_rights",
|
|
1304
|
+
params,
|
|
1305
|
+
inputHandler,
|
|
1306
|
+
this.withSession("update_rights", options)
|
|
1307
|
+
);
|
|
1308
|
+
this.retainSession(result);
|
|
1309
|
+
return result;
|
|
1310
|
+
}
|
|
1311
|
+
/** Execute the AdCP validate_content_delivery tool. */
|
|
1312
|
+
async validateContentDelivery(params, inputHandler, options) {
|
|
1313
|
+
const result = await this.client.executeTask(
|
|
1314
|
+
"validate_content_delivery",
|
|
1315
|
+
params,
|
|
1316
|
+
inputHandler,
|
|
1317
|
+
this.withSession("validate_content_delivery", options)
|
|
1318
|
+
);
|
|
1319
|
+
this.retainSession(result);
|
|
1320
|
+
return result;
|
|
1321
|
+
}
|
|
1322
|
+
/** Preflight a creative manifest against canonical formats, products, third-party formats, or agent capabilities. */
|
|
1323
|
+
async validateInput(params, inputHandler, options) {
|
|
1324
|
+
const result = await this.client.executeTask(
|
|
1325
|
+
"validate_input",
|
|
1326
|
+
params,
|
|
1327
|
+
inputHandler,
|
|
1328
|
+
this.withSession("validate_input", options)
|
|
1329
|
+
);
|
|
1330
|
+
this.retainSession(result);
|
|
1331
|
+
return result;
|
|
1332
|
+
}
|
|
1333
|
+
/** Execute the AdCP validate_property_delivery tool. */
|
|
1334
|
+
async validatePropertyDelivery(params, inputHandler, options) {
|
|
1335
|
+
const result = await this.client.executeTask(
|
|
1336
|
+
"validate_property_delivery",
|
|
1337
|
+
params,
|
|
1338
|
+
inputHandler,
|
|
1339
|
+
this.withSession("validate_property_delivery", options)
|
|
1340
|
+
);
|
|
1341
|
+
this.retainSession(result);
|
|
1342
|
+
return result;
|
|
1343
|
+
}
|
|
1344
|
+
/** Execute the AdCP verify_brand_claim tool. */
|
|
1345
|
+
async verifyBrandClaim(params, inputHandler, options) {
|
|
1346
|
+
const result = await this.client.executeTask(
|
|
1347
|
+
"verify_brand_claim",
|
|
1348
|
+
params,
|
|
1349
|
+
inputHandler,
|
|
1350
|
+
this.withSession("verify_brand_claim", options)
|
|
1351
|
+
);
|
|
1352
|
+
this.retainSession(result);
|
|
1353
|
+
return result;
|
|
1354
|
+
}
|
|
1355
|
+
/** Execute the AdCP verify_brand_claims tool. */
|
|
1356
|
+
async verifyBrandClaims(params, inputHandler, options) {
|
|
1357
|
+
const result = await this.client.executeTask(
|
|
1358
|
+
"verify_brand_claims",
|
|
1359
|
+
params,
|
|
1360
|
+
inputHandler,
|
|
1361
|
+
this.withSession("verify_brand_claims", options)
|
|
1362
|
+
);
|
|
1363
|
+
this.retainSession(result);
|
|
1364
|
+
return result;
|
|
1365
|
+
}
|
|
931
1366
|
// ====== GOVERNANCE TASKS ======
|
|
932
1367
|
/**
|
|
933
1368
|
* Create a property list
|
|
@@ -1322,6 +1757,12 @@ class AgentClient {
|
|
|
1322
1757
|
return this.getMediaBuyDelivery(params, inputHandler, options);
|
|
1323
1758
|
case "get_creative_delivery":
|
|
1324
1759
|
return this.getCreativeDelivery(params, inputHandler, options);
|
|
1760
|
+
case "preview_creative":
|
|
1761
|
+
return this.previewCreative(params, inputHandler, options);
|
|
1762
|
+
case "sync_plans":
|
|
1763
|
+
return this.syncPlans(params, inputHandler, options);
|
|
1764
|
+
case "get_plan_audit_logs":
|
|
1765
|
+
return this.getPlanAuditLogs(params, inputHandler, options);
|
|
1325
1766
|
case "get_principal":
|
|
1326
1767
|
return this.getPrincipal(params, inputHandler, options);
|
|
1327
1768
|
case "sync_principal":
|
|
@@ -1352,11 +1793,8 @@ class AgentClient {
|
|
|
1352
1793
|
this.retainSession(result);
|
|
1353
1794
|
return result;
|
|
1354
1795
|
}
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
* List all tasks for this agent
|
|
1358
|
-
*/
|
|
1359
|
-
async listTasks() {
|
|
1796
|
+
async listTasks(params, inputHandler, options) {
|
|
1797
|
+
if (params !== void 0) return this.executeTask("list_tasks", params, inputHandler, options);
|
|
1360
1798
|
return (await this.client.listTasks()).map(import_request_proposals_guard.assertNativeRequestProposalsTask);
|
|
1361
1799
|
}
|
|
1362
1800
|
/**
|