@adcp/sdk 17.0.0-beta.0 → 17.0.0-beta.2

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.
Files changed (277) hide show
  1. package/dist/lib/adapters/keyed-account-store.js +1 -1
  2. package/dist/lib/adapters/keyed-account-store.mjs +1 -1
  3. package/dist/lib/adapters/version/3.0/brand-fields.d.mts +7 -1
  4. package/dist/lib/adapters/version/3.0/brand-fields.d.ts +7 -1
  5. package/dist/lib/adapters/version/3.0/brand-fields.js +139 -3
  6. package/dist/lib/adapters/version/3.0/brand-fields.mjs +136 -2
  7. package/dist/lib/adapters/version/3.0/index.js +6 -0
  8. package/dist/lib/adapters/version/3.0/index.mjs +7 -1
  9. package/dist/lib/adapters/version/3.1/bidding.js +1 -1
  10. package/dist/lib/adapters/version/3.1/bidding.mjs +1 -1
  11. package/dist/lib/adapters/version/types.d.mts +5 -0
  12. package/dist/lib/adapters/version/types.d.ts +5 -0
  13. package/dist/lib/canonical-references/index.js +2 -0
  14. package/dist/lib/canonical-references/index.mjs +2 -0
  15. package/dist/lib/client/account-changes.d.mts +3 -1
  16. package/dist/lib/client/account-changes.d.ts +3 -1
  17. package/dist/lib/client/account-changes.js +22 -2
  18. package/dist/lib/client/account-changes.mjs +22 -2
  19. package/dist/lib/conformance/oracle.js +3 -2
  20. package/dist/lib/conformance/oracle.mjs +3 -2
  21. package/dist/lib/core/AgentClient.d.mts +165 -1
  22. package/dist/lib/core/AgentClient.d.ts +165 -1
  23. package/dist/lib/core/AgentClient.js +446 -8
  24. package/dist/lib/core/AgentClient.mjs +446 -8
  25. package/dist/lib/core/ConversationTypes.d.mts +8 -0
  26. package/dist/lib/core/ConversationTypes.d.ts +8 -0
  27. package/dist/lib/core/ProtocolResponseParser.d.mts +1 -1
  28. package/dist/lib/core/ProtocolResponseParser.d.ts +1 -1
  29. package/dist/lib/core/ProtocolResponseParser.js +28 -18
  30. package/dist/lib/core/ProtocolResponseParser.mjs +11 -1
  31. package/dist/lib/core/ResponseValidator.js +1 -1
  32. package/dist/lib/core/ResponseValidator.mjs +1 -1
  33. package/dist/lib/core/SingleAgentClient.d.mts +122 -7
  34. package/dist/lib/core/SingleAgentClient.d.ts +122 -7
  35. package/dist/lib/core/SingleAgentClient.js +601 -96
  36. package/dist/lib/core/SingleAgentClient.mjs +590 -84
  37. package/dist/lib/core/TaskExecutor.d.mts +7 -0
  38. package/dist/lib/core/TaskExecutor.d.ts +7 -0
  39. package/dist/lib/core/TaskExecutor.js +23 -8
  40. package/dist/lib/core/TaskExecutor.mjs +23 -8
  41. package/dist/lib/core/task-status.d.mts +2 -0
  42. package/dist/lib/core/task-status.d.ts +2 -0
  43. package/dist/lib/core/task-status.js +11 -2
  44. package/dist/lib/core/task-status.mjs +9 -1
  45. package/dist/lib/errors/index.d.mts +22 -0
  46. package/dist/lib/errors/index.d.ts +22 -0
  47. package/dist/lib/errors/index.js +43 -0
  48. package/dist/lib/errors/index.mjs +42 -0
  49. package/dist/lib/identity-3.3/trust.d.mts +1 -4
  50. package/dist/lib/identity-3.3/trust.d.ts +1 -4
  51. package/dist/lib/identity-3.3/trust.js +34 -21
  52. package/dist/lib/identity-3.3/trust.mjs +34 -21
  53. package/dist/lib/identity-3.3/validation.js +5 -3
  54. package/dist/lib/identity-3.3/validation.mjs +6 -4
  55. package/dist/lib/index.d.mts +7 -53
  56. package/dist/lib/index.d.ts +7 -53
  57. package/dist/lib/index.js +13 -0
  58. package/dist/lib/index.mjs +9 -0
  59. package/dist/lib/media-buy/compatibility.js +6 -1
  60. package/dist/lib/media-buy/compatibility.mjs +6 -1
  61. package/dist/lib/protocols/mcp-modern.d.mts +2 -0
  62. package/dist/lib/protocols/mcp-modern.d.ts +2 -0
  63. package/dist/lib/protocols/mcp-modern.js +31 -5
  64. package/dist/lib/protocols/mcp-modern.mjs +31 -5
  65. package/dist/lib/protocols/mcp-scope.d.mts +6 -1
  66. package/dist/lib/protocols/mcp-scope.d.ts +6 -1
  67. package/dist/lib/protocols/mcp-scope.js +25 -3
  68. package/dist/lib/protocols/mcp-scope.mjs +24 -3
  69. package/dist/lib/protocols/mcp.js +12 -6
  70. package/dist/lib/protocols/mcp.mjs +13 -6
  71. package/dist/lib/reporting/inspection.js +1 -0
  72. package/dist/lib/reporting/inspection.mjs +1 -0
  73. package/dist/lib/reporting/ledger/coverage.d.mts +5 -0
  74. package/dist/lib/reporting/ledger/coverage.d.ts +5 -0
  75. package/dist/lib/reporting/ledger/coverage.js +37 -3
  76. package/dist/lib/reporting/ledger/coverage.mjs +36 -3
  77. package/dist/lib/reporting/ledger/handler.js +7 -4
  78. package/dist/lib/reporting/ledger/handler.mjs +7 -4
  79. package/dist/lib/reporting/ledger/producer.js +215 -69
  80. package/dist/lib/reporting/ledger/producer.mjs +217 -70
  81. package/dist/lib/reporting/ledger/schedule.d.mts +2 -2
  82. package/dist/lib/reporting/ledger/schedule.d.ts +2 -2
  83. package/dist/lib/reporting/ledger/schedule.js +8 -5
  84. package/dist/lib/reporting/ledger/schedule.mjs +8 -5
  85. package/dist/lib/reporting/ledger/status-ingest.d.mts +1 -1
  86. package/dist/lib/reporting/ledger/status-ingest.d.ts +1 -1
  87. package/dist/lib/reporting/ledger/status-ingest.js +4 -3
  88. package/dist/lib/reporting/ledger/status-ingest.mjs +4 -3
  89. package/dist/lib/reporting/ledger/types.d.mts +36 -1
  90. package/dist/lib/reporting/ledger/types.d.ts +36 -1
  91. package/dist/lib/reporting/service/index.d.mts +14 -1
  92. package/dist/lib/reporting/service/index.d.ts +14 -1
  93. package/dist/lib/reporting/service/index.js +24 -12
  94. package/dist/lib/reporting/service/index.mjs +24 -12
  95. package/dist/lib/schemas/browser.d.mts +2 -0
  96. package/dist/lib/schemas/browser.d.ts +2 -0
  97. package/dist/lib/schemas/browser.js +3 -0
  98. package/dist/lib/schemas/browser.mjs +2 -0
  99. package/dist/lib/schemas/index.d.mts +5 -3
  100. package/dist/lib/schemas/index.d.ts +5 -3
  101. package/dist/lib/schemas/index.js +5 -0
  102. package/dist/lib/schemas/index.mjs +4 -0
  103. package/dist/lib/server/account-response-identity.d.mts +17 -0
  104. package/dist/lib/server/account-response-identity.d.ts +17 -0
  105. package/dist/lib/server/account-response-identity.js +52 -0
  106. package/dist/lib/server/account-response-identity.mjs +28 -0
  107. package/dist/lib/server/account-sync-contract.js +2 -2
  108. package/dist/lib/server/account-sync-contract.mjs +2 -2
  109. package/dist/lib/server/create-adcp-server.js +33 -20
  110. package/dist/lib/server/create-adcp-server.mjs +36 -12
  111. package/dist/lib/server/decisioning/account.d.mts +36 -10
  112. package/dist/lib/server/decisioning/account.d.ts +36 -10
  113. package/dist/lib/server/decisioning/account.js +33 -14
  114. package/dist/lib/server/decisioning/account.mjs +33 -14
  115. package/dist/lib/server/decisioning/runtime/from-platform.d.mts +5 -5
  116. package/dist/lib/server/decisioning/runtime/from-platform.d.ts +5 -5
  117. package/dist/lib/server/decisioning/runtime/from-platform.js +4 -4
  118. package/dist/lib/server/decisioning/runtime/from-platform.mjs +4 -4
  119. package/dist/lib/server/media-buy-store.d.mts +26 -12
  120. package/dist/lib/server/media-buy-store.d.ts +26 -12
  121. package/dist/lib/server/media-buy-store.js +69 -21
  122. package/dist/lib/server/media-buy-store.mjs +69 -21
  123. package/dist/lib/server/notification-subscriptions/runtime.d.mts +1 -1
  124. package/dist/lib/server/notification-subscriptions/runtime.d.ts +1 -1
  125. package/dist/lib/server/notification-subscriptions/runtime.js +4 -0
  126. package/dist/lib/server/notification-subscriptions/runtime.mjs +4 -0
  127. package/dist/lib/server/responses.js +9 -1
  128. package/dist/lib/server/responses.mjs +9 -1
  129. package/dist/lib/signing/agent-fetch.d.mts +1 -1
  130. package/dist/lib/signing/agent-fetch.d.ts +1 -1
  131. package/dist/lib/signing/agent-fetch.js +3 -3
  132. package/dist/lib/signing/agent-fetch.mjs +3 -3
  133. package/dist/lib/testing/client.d.mts +1 -0
  134. package/dist/lib/testing/client.d.ts +1 -0
  135. package/dist/lib/testing/client.js +6 -5
  136. package/dist/lib/testing/client.mjs +6 -5
  137. package/dist/lib/testing/storyboard/agent-routing.d.mts +5 -2
  138. package/dist/lib/testing/storyboard/agent-routing.d.ts +5 -2
  139. package/dist/lib/testing/storyboard/agent-routing.js +11 -4
  140. package/dist/lib/testing/storyboard/agent-routing.mjs +11 -4
  141. package/dist/lib/testing/storyboard/canonical-format-satisfaction.js +60 -14
  142. package/dist/lib/testing/storyboard/canonical-format-satisfaction.mjs +60 -14
  143. package/dist/lib/testing/storyboard/compliance.d.mts +2 -5
  144. package/dist/lib/testing/storyboard/compliance.d.ts +2 -5
  145. package/dist/lib/testing/storyboard/compliance.js +62 -13
  146. package/dist/lib/testing/storyboard/compliance.mjs +63 -14
  147. package/dist/lib/testing/storyboard/context.d.mts +13 -3
  148. package/dist/lib/testing/storyboard/context.d.ts +13 -3
  149. package/dist/lib/testing/storyboard/context.js +15 -10
  150. package/dist/lib/testing/storyboard/context.mjs +15 -10
  151. package/dist/lib/testing/storyboard/request-signing/vector-loader.d.mts +2 -0
  152. package/dist/lib/testing/storyboard/request-signing/vector-loader.d.ts +2 -0
  153. package/dist/lib/testing/storyboard/request-signing/vector-loader.js +11 -0
  154. package/dist/lib/testing/storyboard/request-signing/vector-loader.mjs +10 -0
  155. package/dist/lib/testing/storyboard/runner.js +141 -13
  156. package/dist/lib/testing/storyboard/runner.mjs +141 -13
  157. package/dist/lib/testing/storyboard/validations.d.mts +1 -1
  158. package/dist/lib/testing/storyboard/validations.d.ts +1 -1
  159. package/dist/lib/testing/storyboard/validations.js +4 -1
  160. package/dist/lib/testing/storyboard/validations.mjs +4 -1
  161. package/dist/lib/testing/test-controller.js +3 -0
  162. package/dist/lib/testing/test-controller.mjs +3 -0
  163. package/dist/lib/types/accept-proposal.d.ts +20 -28
  164. package/dist/lib/types/asset-instances.d.mts +1 -1
  165. package/dist/lib/types/asset-instances.d.ts +1 -1
  166. package/dist/lib/types/buy-products.d.ts +20 -28
  167. package/dist/lib/types/check-governance.d.ts +20 -28
  168. package/dist/lib/types/comply-test-controller.d.ts +20 -28
  169. package/dist/lib/types/control-media-buy.d.ts +20 -28
  170. package/dist/lib/types/core.generated.d.mts +273 -184
  171. package/dist/lib/types/core.generated.d.ts +273 -184
  172. package/dist/lib/types/create-media-buy.d.ts +20 -28
  173. package/dist/lib/types/get-media-buys.d.ts +20 -28
  174. package/dist/lib/types/get-products.d.ts +20 -28
  175. package/dist/lib/types/index.d.mts +6 -1
  176. package/dist/lib/types/index.d.ts +6 -1
  177. package/dist/lib/types/index.js +6 -1
  178. package/dist/lib/types/index.mjs +4 -1
  179. package/dist/lib/types/inline-enums.generated.d.mts +30 -4
  180. package/dist/lib/types/inline-enums.generated.d.ts +30 -4
  181. package/dist/lib/types/inline-enums.generated.js +41 -2
  182. package/dist/lib/types/inline-enums.generated.mjs +28 -2
  183. package/dist/lib/types/list-products.d.ts +20 -28
  184. package/dist/lib/types/list-proposals.d.ts +20 -28
  185. package/dist/lib/types/media-buy-delivery-report.d.mts +6 -0
  186. package/dist/lib/types/media-buy-delivery-report.d.ts +6 -0
  187. package/dist/lib/types/media-buy-delivery-report.js +16 -0
  188. package/dist/lib/types/media-buy-delivery-report.mjs +0 -0
  189. package/dist/lib/types/refine-proposals.d.ts +20 -28
  190. package/dist/lib/types/request-proposals.d.ts +20 -28
  191. package/dist/lib/types/schemas.generated.d.ts +63113 -127273
  192. package/dist/lib/types/schemas.generated.js +759 -770
  193. package/dist/lib/types/schemas.generated.mjs +759 -770
  194. package/dist/lib/types/targeting-keys.generated.d.mts +4 -0
  195. package/dist/lib/types/targeting-keys.generated.d.ts +4 -0
  196. package/dist/lib/types/targeting-keys.generated.js +109 -0
  197. package/dist/lib/types/targeting-keys.generated.mjs +84 -0
  198. package/dist/lib/types/tools.generated.d.mts +2 -68
  199. package/dist/lib/types/tools.generated.d.ts +2 -68
  200. package/dist/lib/types/update-media-buy.d.ts +20 -28
  201. package/dist/lib/utils/adcp-version-config.js +5 -2
  202. package/dist/lib/utils/adcp-version-config.mjs +5 -2
  203. package/dist/lib/utils/envelope-status-compat.d.mts +18 -1
  204. package/dist/lib/utils/envelope-status-compat.d.ts +18 -1
  205. package/dist/lib/utils/envelope-status-compat.js +11 -5
  206. package/dist/lib/utils/envelope-status-compat.mjs +11 -5
  207. package/dist/lib/utils/response-unwrapper.js +18 -10
  208. package/dist/lib/utils/response-unwrapper.mjs +18 -10
  209. package/dist/lib/v2/format-schema/resolver.js +1 -1
  210. package/dist/lib/v2/format-schema/resolver.mjs +1 -1
  211. package/dist/lib/v2/projection/creative-delivery.js +159 -39
  212. package/dist/lib/v2/projection/creative-delivery.mjs +163 -39
  213. package/dist/lib/v2/projection/index.d.mts +1 -0
  214. package/dist/lib/v2/projection/index.d.ts +1 -0
  215. package/dist/lib/v2/projection/index.js +3 -0
  216. package/dist/lib/v2/projection/index.mjs +2 -0
  217. package/dist/lib/v2/projection/legacy-metadata.d.mts +19 -0
  218. package/dist/lib/v2/projection/legacy-metadata.d.ts +19 -0
  219. package/dist/lib/v2/projection/legacy-metadata.js +91 -0
  220. package/dist/lib/v2/projection/legacy-metadata.mjs +86 -0
  221. package/dist/lib/v2/projection/v1-to-v2.d.mts +1 -1
  222. package/dist/lib/v2/projection/v1-to-v2.d.ts +1 -1
  223. package/dist/lib/v2/projection/v1-to-v2.js +12 -9
  224. package/dist/lib/v2/projection/v1-to-v2.mjs +12 -9
  225. package/dist/lib/validation/budget-allocation.d.mts +3 -3
  226. package/dist/lib/validation/budget-allocation.d.ts +3 -3
  227. package/dist/lib/validation/compact-schema.d.mts +27 -0
  228. package/dist/lib/validation/compact-schema.d.ts +27 -0
  229. package/dist/lib/validation/compact-schema.js +276 -0
  230. package/dist/lib/validation/compact-schema.mjs +250 -0
  231. package/dist/lib/validation/media-buy-delivery-report.d.mts +8 -0
  232. package/dist/lib/validation/media-buy-delivery-report.d.ts +8 -0
  233. package/dist/lib/validation/media-buy-delivery-report.js +31 -0
  234. package/dist/lib/validation/media-buy-delivery-report.mjs +7 -0
  235. package/dist/lib/validation/nonempty-array.d.mts +15 -0
  236. package/dist/lib/validation/nonempty-array.d.ts +15 -0
  237. package/dist/lib/validation/nonempty-array.js +41 -0
  238. package/dist/lib/validation/nonempty-array.mjs +7 -0
  239. package/dist/lib/validation/schema-diagnostic-origins.d.mts +21 -0
  240. package/dist/lib/validation/schema-diagnostic-origins.d.ts +21 -0
  241. package/dist/lib/validation/schema-diagnostic-origins.js +193 -0
  242. package/dist/lib/validation/schema-diagnostic-origins.mjs +169 -0
  243. package/dist/lib/validation/schema-loader.js +86 -16
  244. package/dist/lib/validation/schema-loader.mjs +82 -16
  245. package/dist/lib/validation/schema-validator.d.mts +10 -19
  246. package/dist/lib/validation/schema-validator.d.ts +10 -19
  247. package/dist/lib/validation/schema-validator.js +136 -43
  248. package/dist/lib/validation/schema-validator.mjs +140 -44
  249. package/dist/lib/validation/sync-creatives.d.mts +22 -22
  250. package/dist/lib/validation/sync-creatives.d.ts +22 -22
  251. package/dist/lib/version.d.mts +3 -3
  252. package/dist/lib/version.d.ts +3 -3
  253. package/dist/lib/version.js +3 -3
  254. package/dist/lib/version.mjs +3 -3
  255. package/dist/lib/webhooks/index.d.mts +3 -0
  256. package/dist/lib/webhooks/index.d.ts +3 -0
  257. package/dist/lib/webhooks/index.js +3 -0
  258. package/dist/lib/webhooks/index.mjs +2 -0
  259. package/dist/lib/webhooks/media-buy-delivery.d.mts +43 -0
  260. package/dist/lib/webhooks/media-buy-delivery.d.ts +43 -0
  261. package/dist/lib/webhooks/media-buy-delivery.js +119 -0
  262. package/dist/lib/webhooks/media-buy-delivery.mjs +94 -0
  263. package/docs/TYPE-SUMMARY.md +2 -2
  264. package/docs/guides/COLLECTION-FIXTURE-FOUNDATION.md +11 -0
  265. package/docs/guides/DELIVERY-WEBHOOK-PARSING.md +142 -0
  266. package/docs/guides/DISCOVERY-CACHE-AND-SESSION-REUSE.md +27 -1
  267. package/docs/guides/REPORTING-LEDGER.md +93 -0
  268. package/docs/guides/REPORTING-STABILITY.md +1 -1
  269. package/docs/guides/TYPED-CLIENT-TOOLS.md +49 -0
  270. package/docs/llms.txt +2 -2
  271. package/docs/migration-14.x-rc-worksheet.md +4 -4
  272. package/docs/migration-16-to-17.md +202 -2
  273. package/docs/migration-6.6-to-6.7.md +14 -0
  274. package/docs/migration-account-change-feed.md +15 -0
  275. package/docs/migration-reporting-storage-package.md +1 -1
  276. package/docs/recipes/verifying-inbound-webhooks.md +18 -2
  277. package/package.json +2 -2
@@ -125,9 +125,21 @@ class AgentClient {
125
125
  get executor() {
126
126
  return this.client.executor;
127
127
  }
128
- /** Poll one authoritative server task status for compatibility coordinators. @internal */
129
- getTaskStatus(taskId, transport, signal, wireOptions) {
130
- return this.client.getTaskStatus(taskId, transport, signal, wireOptions);
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
- // ====== TASK MANAGEMENT DELEGATION ======
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
  /**