@adcp/client 3.3.3 → 3.4.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.
Files changed (46) hide show
  1. package/dist/lib/core/ADCPMultiAgentClient.d.ts +3 -1
  2. package/dist/lib/core/ADCPMultiAgentClient.d.ts.map +1 -1
  3. package/dist/lib/core/ADCPMultiAgentClient.js +4 -2
  4. package/dist/lib/core/ADCPMultiAgentClient.js.map +1 -1
  5. package/dist/lib/core/AgentClient.d.ts +29 -1
  6. package/dist/lib/core/AgentClient.d.ts.map +1 -1
  7. package/dist/lib/core/AgentClient.js +51 -2
  8. package/dist/lib/core/AgentClient.js.map +1 -1
  9. package/dist/lib/core/AsyncHandler.d.ts +23 -27
  10. package/dist/lib/core/AsyncHandler.d.ts.map +1 -1
  11. package/dist/lib/core/AsyncHandler.js +9 -19
  12. package/dist/lib/core/AsyncHandler.js.map +1 -1
  13. package/dist/lib/core/SingleAgentClient.d.ts +126 -22
  14. package/dist/lib/core/SingleAgentClient.d.ts.map +1 -1
  15. package/dist/lib/core/SingleAgentClient.js +371 -83
  16. package/dist/lib/core/SingleAgentClient.js.map +1 -1
  17. package/dist/lib/core/TaskExecutor.d.ts.map +1 -1
  18. package/dist/lib/core/TaskExecutor.js +3 -0
  19. package/dist/lib/core/TaskExecutor.js.map +1 -1
  20. package/dist/lib/index.d.ts +2 -1
  21. package/dist/lib/index.d.ts.map +1 -1
  22. package/dist/lib/index.js +36 -1
  23. package/dist/lib/index.js.map +1 -1
  24. package/dist/lib/types/adcp.d.ts +13 -25
  25. package/dist/lib/types/adcp.d.ts.map +1 -1
  26. package/dist/lib/types/core.generated.d.ts +489 -39
  27. package/dist/lib/types/core.generated.d.ts.map +1 -1
  28. package/dist/lib/types/core.generated.js +1 -1
  29. package/dist/lib/types/index.d.ts +1 -1
  30. package/dist/lib/types/index.d.ts.map +1 -1
  31. package/dist/lib/types/index.js.map +1 -1
  32. package/dist/lib/types/schemas.generated.d.ts +833 -212
  33. package/dist/lib/types/schemas.generated.d.ts.map +1 -1
  34. package/dist/lib/types/schemas.generated.js +146 -134
  35. package/dist/lib/types/schemas.generated.js.map +1 -1
  36. package/dist/lib/types/tools.generated.d.ts +241 -187
  37. package/dist/lib/types/tools.generated.d.ts.map +1 -1
  38. package/dist/lib/types/tools.generated.js +1 -1
  39. package/dist/lib/types/tools.generated.js.map +1 -1
  40. package/dist/lib/utils/typeGuards.d.ts +147 -0
  41. package/dist/lib/utils/typeGuards.d.ts.map +1 -0
  42. package/dist/lib/utils/typeGuards.js +240 -0
  43. package/dist/lib/utils/typeGuards.js.map +1 -0
  44. package/dist/lib/version.d.ts +3 -3
  45. package/dist/lib/version.js +3 -3
  46. package/package.json +1 -1
@@ -1311,44 +1311,6 @@ export interface FormatID3 {
1311
1311
  * Budget pacing strategy
1312
1312
  */
1313
1313
  export type Pacing = 'even' | 'asap' | 'front_loaded';
1314
- /**
1315
- * Image asset with URL and dimensions
1316
- */
1317
- export type ImageAsset = Dimensions & {
1318
- /**
1319
- * URL to the image asset
1320
- */
1321
- url: string;
1322
- /**
1323
- * Image file format (jpg, png, gif, webp, etc.)
1324
- */
1325
- format?: string;
1326
- /**
1327
- * Alternative text for accessibility
1328
- */
1329
- alt_text?: string;
1330
- };
1331
- /**
1332
- * Video asset with URL and specifications
1333
- */
1334
- export type VideoAsset = Dimensions & {
1335
- /**
1336
- * URL to the video asset
1337
- */
1338
- url: string;
1339
- /**
1340
- * Video duration in milliseconds
1341
- */
1342
- duration_ms?: number;
1343
- /**
1344
- * Video file format (mp4, webm, mov, etc.)
1345
- */
1346
- format?: string;
1347
- /**
1348
- * Video bitrate in kilobits per second
1349
- */
1350
- bitrate_kbps?: number;
1351
- };
1352
1314
  /**
1353
1315
  * JavaScript module type
1354
1316
  */
@@ -1671,7 +1633,36 @@ export interface CreativeAsset {
1671
1633
  /**
1672
1634
  * Structured format identifier with agent URL and format name. Can reference: (1) a concrete format with fixed dimensions (id only), (2) a template format without parameters (id only), or (3) a template format with parameters (id + dimensions/duration). Template formats accept parameters in format_id while concrete formats have fixed dimensions in their definition. Parameterized format IDs create unique, specific format variants.
1673
1635
  */
1674
- export interface Dimensions {
1636
+ export interface ImageAsset {
1637
+ /**
1638
+ * URL to the image asset
1639
+ */
1640
+ url: string;
1641
+ /**
1642
+ * Width in pixels
1643
+ */
1644
+ width: number;
1645
+ /**
1646
+ * Height in pixels
1647
+ */
1648
+ height: number;
1649
+ /**
1650
+ * Image file format (jpg, png, gif, webp, etc.)
1651
+ */
1652
+ format?: string;
1653
+ /**
1654
+ * Alternative text for accessibility
1655
+ */
1656
+ alt_text?: string;
1657
+ }
1658
+ /**
1659
+ * Video asset with URL and specifications
1660
+ */
1661
+ export interface VideoAsset {
1662
+ /**
1663
+ * URL to the video asset
1664
+ */
1665
+ url: string;
1675
1666
  /**
1676
1667
  * Width in pixels
1677
1668
  */
@@ -1680,6 +1671,18 @@ export interface Dimensions {
1680
1671
  * Height in pixels
1681
1672
  */
1682
1673
  height: number;
1674
+ /**
1675
+ * Video duration in milliseconds
1676
+ */
1677
+ duration_ms?: number;
1678
+ /**
1679
+ * Video file format (mp4, webm, mov, etc.)
1680
+ */
1681
+ format?: string;
1682
+ /**
1683
+ * Video bitrate in kilobits per second
1684
+ */
1685
+ bitrate_kbps?: number;
1683
1686
  }
1684
1687
  /**
1685
1688
  * Audio asset with URL and specifications
@@ -1864,7 +1867,11 @@ export interface PushNotificationConfig {
1864
1867
  /**
1865
1868
  * Response payload for create_media_buy task. Returns either complete success data OR error information, never both. This enforces atomic operation semantics - the media buy is either fully created or not created at all.
1866
1869
  */
1867
- export type CreateMediaBuyResponse = {
1870
+ export type CreateMediaBuyResponse = CreateMediaBuySuccess | CreateMediaBuyError;
1871
+ /**
1872
+ * Budget pacing strategy
1873
+ */
1874
+ export interface CreateMediaBuySuccess {
1868
1875
  /**
1869
1876
  * Publisher's unique identifier for the created media buy
1870
1877
  */
@@ -1883,18 +1890,9 @@ export type CreateMediaBuyResponse = {
1883
1890
  packages: Package[];
1884
1891
  context?: ContextObject;
1885
1892
  ext?: ExtensionObject;
1886
- } | {
1887
- /**
1888
- * Array of errors explaining why the operation failed
1889
- *
1890
- * @minItems 1
1891
- */
1892
- errors: [Error, ...Error[]];
1893
- context?: ContextObject;
1894
- ext?: ExtensionObject;
1895
- };
1893
+ }
1896
1894
  /**
1897
- * Budget pacing strategy
1895
+ * A specific product within a media buy (line item)
1898
1896
  */
1899
1897
  export interface Package {
1900
1898
  /**
@@ -1963,8 +1961,21 @@ export interface CreativeAssignment {
1963
1961
  /**
1964
1962
  * Structured format identifier with agent URL and format name. Can reference: (1) a concrete format with fixed dimensions (id only), (2) a template format without parameters (id only), or (3) a template format with parameters (id + dimensions/duration). Template formats accept parameters in format_id while concrete formats have fixed dimensions in their definition. Parameterized format IDs create unique, specific format variants.
1965
1963
  */
1964
+ export interface CreateMediaBuyError {
1965
+ /**
1966
+ * Array of errors explaining why the operation failed
1967
+ *
1968
+ * @minItems 1
1969
+ */
1970
+ errors: [Error, ...Error[]];
1971
+ context?: ContextObject;
1972
+ ext?: ExtensionObject;
1973
+ }
1974
+ /**
1975
+ * Standard error structure for task-specific errors and warnings
1976
+ */
1966
1977
  /**
1967
- * Image asset with URL and dimensions
1978
+ * JavaScript module type
1968
1979
  */
1969
1980
  export type ValidationMode = 'strict' | 'lenient';
1970
1981
  /**
@@ -2014,7 +2025,15 @@ export interface SyncCreativesRequest {
2014
2025
  /**
2015
2026
  * Response from creative sync operation. Returns either per-creative results (best-effort processing) OR operation-level errors (complete failure). This enforces atomic semantics at the operation level while allowing per-item failures within successful operations.
2016
2027
  */
2017
- export type SyncCreativesResponse = {
2028
+ export type SyncCreativesResponse = SyncCreativesSuccess | SyncCreativesError;
2029
+ /**
2030
+ * Action taken for this creative
2031
+ */
2032
+ export type CreativeAction = 'created' | 'updated' | 'unchanged' | 'failed' | 'deleted';
2033
+ /**
2034
+ * Success response - sync operation processed creatives (may include per-item failures)
2035
+ */
2036
+ export interface SyncCreativesSuccess {
2018
2037
  /**
2019
2038
  * Whether this was a dry run (no actual changes made)
2020
2039
  */
@@ -2071,7 +2090,11 @@ export type SyncCreativesResponse = {
2071
2090
  }[];
2072
2091
  context?: ContextObject;
2073
2092
  ext?: ExtensionObject;
2074
- } | {
2093
+ }
2094
+ /**
2095
+ * Opaque correlation data that is echoed unchanged in responses. Used for internal tracking, UI session IDs, trace IDs, and other caller-specific identifiers that don't affect protocol behavior. Context data is never parsed by AdCP agents - it's simply preserved and returned.
2096
+ */
2097
+ export interface SyncCreativesError {
2075
2098
  /**
2076
2099
  * Operation-level errors that prevented processing any creatives (e.g., authentication failure, service unavailable, invalid request format)
2077
2100
  *
@@ -2080,13 +2103,9 @@ export type SyncCreativesResponse = {
2080
2103
  errors: [Error, ...Error[]];
2081
2104
  context?: ContextObject;
2082
2105
  ext?: ExtensionObject;
2083
- };
2084
- /**
2085
- * Action taken for this creative
2086
- */
2087
- export type CreativeAction = 'created' | 'updated' | 'unchanged' | 'failed' | 'deleted';
2106
+ }
2088
2107
  /**
2089
- * Opaque correlation data that is echoed unchanged in responses. Used for internal tracking, UI session IDs, trace IDs, and other caller-specific identifiers that don't affect protocol behavior. Context data is never parsed by AdCP agents - it's simply preserved and returned.
2108
+ * Standard error structure for task-specific errors and warnings
2090
2109
  */
2091
2110
  /**
2092
2111
  * Filter by creative approval status
@@ -2500,7 +2519,11 @@ export interface UpdateMediaBuyRequest1 {
2500
2519
  /**
2501
2520
  * Response payload for update_media_buy task. Returns either complete success data OR error information, never both. This enforces atomic operation semantics - updates are either fully applied or not applied at all.
2502
2521
  */
2503
- export type UpdateMediaBuyResponse = {
2522
+ export type UpdateMediaBuyResponse = UpdateMediaBuySuccess | UpdateMediaBuyError;
2523
+ /**
2524
+ * Budget pacing strategy
2525
+ */
2526
+ export interface UpdateMediaBuySuccess {
2504
2527
  /**
2505
2528
  * Publisher's identifier for the media buy
2506
2529
  */
@@ -2519,7 +2542,11 @@ export type UpdateMediaBuyResponse = {
2519
2542
  affected_packages?: Package[];
2520
2543
  context?: ContextObject;
2521
2544
  ext?: ExtensionObject;
2522
- } | {
2545
+ }
2546
+ /**
2547
+ * A specific product within a media buy (line item)
2548
+ */
2549
+ export interface UpdateMediaBuyError {
2523
2550
  /**
2524
2551
  * Array of errors explaining why the operation failed
2525
2552
  *
@@ -2528,9 +2555,9 @@ export type UpdateMediaBuyResponse = {
2528
2555
  errors: [Error, ...Error[]];
2529
2556
  context?: ContextObject;
2530
2557
  ext?: ExtensionObject;
2531
- };
2558
+ }
2532
2559
  /**
2533
- * Budget pacing strategy
2560
+ * Standard error structure for task-specific errors and warnings
2534
2561
  */
2535
2562
  /**
2536
2563
  * Status of a media buy
@@ -2979,14 +3006,22 @@ export interface ProvidePerformanceFeedbackRequest1 {
2979
3006
  /**
2980
3007
  * Response payload for provide_performance_feedback task. Returns either success confirmation OR error information, never both.
2981
3008
  */
2982
- export type ProvidePerformanceFeedbackResponse = {
3009
+ export type ProvidePerformanceFeedbackResponse = ProvidePerformanceFeedbackSuccess | ProvidePerformanceFeedbackError;
3010
+ /**
3011
+ * Success response - feedback received and processed
3012
+ */
3013
+ export interface ProvidePerformanceFeedbackSuccess {
2983
3014
  /**
2984
3015
  * Whether the performance feedback was successfully received
2985
3016
  */
2986
3017
  success: true;
2987
3018
  context?: ContextObject;
2988
3019
  ext?: ExtensionObject;
2989
- } | {
3020
+ }
3021
+ /**
3022
+ * Opaque correlation data that is echoed unchanged in responses. Used for internal tracking, UI session IDs, trace IDs, and other caller-specific identifiers that don't affect protocol behavior. Context data is never parsed by AdCP agents - it's simply preserved and returned.
3023
+ */
3024
+ export interface ProvidePerformanceFeedbackError {
2990
3025
  /**
2991
3026
  * Array of errors explaining why feedback was rejected (e.g., invalid measurement period, missing campaign data)
2992
3027
  *
@@ -2995,12 +3030,12 @@ export type ProvidePerformanceFeedbackResponse = {
2995
3030
  errors: [Error, ...Error[]];
2996
3031
  context?: ContextObject;
2997
3032
  ext?: ExtensionObject;
2998
- };
3033
+ }
2999
3034
  /**
3000
- * Opaque correlation data that is echoed unchanged in responses. Used for internal tracking, UI session IDs, trace IDs, and other caller-specific identifiers that don't affect protocol behavior. Context data is never parsed by AdCP agents - it's simply preserved and returned.
3035
+ * Standard error structure for task-specific errors and warnings
3001
3036
  */
3002
3037
  /**
3003
- * Image asset with URL and dimensions
3038
+ * VAST (Video Ad Serving Template) tag for third-party video ad serving
3004
3039
  */
3005
3040
  export type HTTPMethod = 'GET' | 'POST';
3006
3041
  /**
@@ -3090,11 +3125,19 @@ export interface WebhookAsset {
3090
3125
  /**
3091
3126
  * Response containing the transformed or generated creative manifest, ready for use with preview_creative or sync_creatives. Returns either the complete creative manifest OR error information, never both.
3092
3127
  */
3093
- export type BuildCreativeResponse = {
3128
+ export type BuildCreativeResponse = BuildCreativeSuccess | BuildCreativeError;
3129
+ /**
3130
+ * VAST (Video Ad Serving Template) tag for third-party video ad serving
3131
+ */
3132
+ export interface BuildCreativeSuccess {
3094
3133
  creative_manifest: CreativeManifest;
3095
3134
  context?: ContextObject;
3096
3135
  ext?: ExtensionObject;
3097
- } | {
3136
+ }
3137
+ /**
3138
+ * The generated or transformed creative manifest
3139
+ */
3140
+ export interface BuildCreativeError {
3098
3141
  /**
3099
3142
  * Array of errors explaining why creative generation failed
3100
3143
  *
@@ -3103,9 +3146,9 @@ export type BuildCreativeResponse = {
3103
3146
  errors: [Error, ...Error[]];
3104
3147
  context?: ContextObject;
3105
3148
  ext?: ExtensionObject;
3106
- };
3149
+ }
3107
3150
  /**
3108
- * Image asset with URL and dimensions
3151
+ * Standard error structure for task-specific errors and warnings
3109
3152
  */
3110
3153
  /**
3111
3154
  * Request to generate previews of one or more creative manifests. Accepts either a single creative request or an array of requests for batch processing.
@@ -3217,7 +3260,7 @@ export type PreviewCreativeRequest = {
3217
3260
  ext?: ExtensionObject;
3218
3261
  };
3219
3262
  /**
3220
- * Image asset with URL and dimensions
3263
+ * VAST (Video Ad Serving Template) tag for third-party video ad serving
3221
3264
  */
3222
3265
  export type PreviewOutputFormat = 'url' | 'html';
3223
3266
  /**
@@ -3254,115 +3297,7 @@ export interface CreativeManifest1 {
3254
3297
  /**
3255
3298
  * Response containing preview links for one or more creatives. Format matches the request: single preview response for single requests, batch results for batch requests.
3256
3299
  */
3257
- export type PreviewCreativeResponse = {
3258
- /**
3259
- * Discriminator indicating this is a single preview response
3260
- */
3261
- response_type: 'single';
3262
- /**
3263
- * Array of preview variants. Each preview corresponds to an input set from the request. If no inputs were provided, returns a single default preview.
3264
- *
3265
- * @minItems 1
3266
- */
3267
- previews: [
3268
- {
3269
- /**
3270
- * Unique identifier for this preview variant
3271
- */
3272
- preview_id: string;
3273
- /**
3274
- * Array of rendered pieces for this preview variant. Most formats render as a single piece. Companion ad formats (video + banner), multi-placement formats, and adaptive formats render as multiple pieces.
3275
- *
3276
- * @minItems 1
3277
- */
3278
- renders: [PreviewRender, ...PreviewRender[]];
3279
- /**
3280
- * The input parameters that generated this preview variant. Echoes back the request input or shows defaults used.
3281
- */
3282
- input: {
3283
- /**
3284
- * Human-readable name for this variant
3285
- */
3286
- name: string;
3287
- /**
3288
- * Macro values applied to this variant
3289
- */
3290
- macros?: {
3291
- [k: string]: string;
3292
- };
3293
- /**
3294
- * Context description applied to this variant
3295
- */
3296
- context_description?: string;
3297
- };
3298
- },
3299
- ...{
3300
- /**
3301
- * Unique identifier for this preview variant
3302
- */
3303
- preview_id: string;
3304
- /**
3305
- * Array of rendered pieces for this preview variant. Most formats render as a single piece. Companion ad formats (video + banner), multi-placement formats, and adaptive formats render as multiple pieces.
3306
- *
3307
- * @minItems 1
3308
- */
3309
- renders: [PreviewRender, ...PreviewRender[]];
3310
- /**
3311
- * The input parameters that generated this preview variant. Echoes back the request input or shows defaults used.
3312
- */
3313
- input: {
3314
- /**
3315
- * Human-readable name for this variant
3316
- */
3317
- name: string;
3318
- /**
3319
- * Macro values applied to this variant
3320
- */
3321
- macros?: {
3322
- [k: string]: string;
3323
- };
3324
- /**
3325
- * Context description applied to this variant
3326
- */
3327
- context_description?: string;
3328
- };
3329
- }[]
3330
- ];
3331
- /**
3332
- * Optional URL to an interactive testing page that shows all preview variants with controls to switch between them, modify macro values, and test different scenarios.
3333
- */
3334
- interactive_url?: string;
3335
- /**
3336
- * ISO 8601 timestamp when preview links expire
3337
- */
3338
- expires_at: string;
3339
- context?: ContextObject;
3340
- ext?: ExtensionObject;
3341
- } | {
3342
- /**
3343
- * Discriminator indicating this is a batch preview response
3344
- */
3345
- response_type: 'batch';
3346
- /**
3347
- * Array of preview results corresponding to each request in the same order. results[0] is the result for requests[0], results[1] for requests[1], etc. Order is guaranteed even when some requests fail. Each result contains either a successful preview response or an error.
3348
- *
3349
- * @minItems 1
3350
- */
3351
- results: [
3352
- ({
3353
- success?: true;
3354
- } | {
3355
- success?: false;
3356
- }),
3357
- ...({
3358
- success?: true;
3359
- } | {
3360
- success?: false;
3361
- })[]
3362
- ];
3363
- context?: ContextObject;
3364
- ext?: ExtensionObject;
3365
- };
3300
+ export type PreviewCreativeResponse = PreviewCreativeSingleResponse | PreviewCreativeBatchResponse;
3366
3301
  /**
3367
3302
  * A single rendered piece of a creative preview with discriminated output format
3368
3303
  */
@@ -3506,9 +3441,120 @@ export type PreviewRender = {
3506
3441
  csp_policy?: string;
3507
3442
  };
3508
3443
  };
3444
+ /**
3445
+ * Single preview response - each preview URL returns an HTML page that can be embedded in an iframe
3446
+ */
3447
+ export interface PreviewCreativeSingleResponse {
3448
+ /**
3449
+ * Discriminator indicating this is a single preview response
3450
+ */
3451
+ response_type: 'single';
3452
+ /**
3453
+ * Array of preview variants. Each preview corresponds to an input set from the request. If no inputs were provided, returns a single default preview.
3454
+ *
3455
+ * @minItems 1
3456
+ */
3457
+ previews: [
3458
+ {
3459
+ /**
3460
+ * Unique identifier for this preview variant
3461
+ */
3462
+ preview_id: string;
3463
+ /**
3464
+ * Array of rendered pieces for this preview variant. Most formats render as a single piece. Companion ad formats (video + banner), multi-placement formats, and adaptive formats render as multiple pieces.
3465
+ *
3466
+ * @minItems 1
3467
+ */
3468
+ renders: [PreviewRender, ...PreviewRender[]];
3469
+ /**
3470
+ * The input parameters that generated this preview variant. Echoes back the request input or shows defaults used.
3471
+ */
3472
+ input: {
3473
+ /**
3474
+ * Human-readable name for this variant
3475
+ */
3476
+ name: string;
3477
+ /**
3478
+ * Macro values applied to this variant
3479
+ */
3480
+ macros?: {
3481
+ [k: string]: string;
3482
+ };
3483
+ /**
3484
+ * Context description applied to this variant
3485
+ */
3486
+ context_description?: string;
3487
+ };
3488
+ },
3489
+ ...{
3490
+ /**
3491
+ * Unique identifier for this preview variant
3492
+ */
3493
+ preview_id: string;
3494
+ /**
3495
+ * Array of rendered pieces for this preview variant. Most formats render as a single piece. Companion ad formats (video + banner), multi-placement formats, and adaptive formats render as multiple pieces.
3496
+ *
3497
+ * @minItems 1
3498
+ */
3499
+ renders: [PreviewRender, ...PreviewRender[]];
3500
+ /**
3501
+ * The input parameters that generated this preview variant. Echoes back the request input or shows defaults used.
3502
+ */
3503
+ input: {
3504
+ /**
3505
+ * Human-readable name for this variant
3506
+ */
3507
+ name: string;
3508
+ /**
3509
+ * Macro values applied to this variant
3510
+ */
3511
+ macros?: {
3512
+ [k: string]: string;
3513
+ };
3514
+ /**
3515
+ * Context description applied to this variant
3516
+ */
3517
+ context_description?: string;
3518
+ };
3519
+ }[]
3520
+ ];
3521
+ /**
3522
+ * Optional URL to an interactive testing page that shows all preview variants with controls to switch between them, modify macro values, and test different scenarios.
3523
+ */
3524
+ interactive_url?: string;
3525
+ /**
3526
+ * ISO 8601 timestamp when preview links expire
3527
+ */
3528
+ expires_at: string;
3529
+ context?: ContextObject;
3530
+ ext?: ExtensionObject;
3531
+ }
3509
3532
  /**
3510
3533
  * Opaque correlation data that is echoed unchanged in responses. Used for internal tracking, UI session IDs, trace IDs, and other caller-specific identifiers that don't affect protocol behavior. Context data is never parsed by AdCP agents - it's simply preserved and returned.
3511
3534
  */
3535
+ export interface PreviewCreativeBatchResponse {
3536
+ /**
3537
+ * Discriminator indicating this is a batch preview response
3538
+ */
3539
+ response_type: 'batch';
3540
+ /**
3541
+ * Array of preview results corresponding to each request in the same order. results[0] is the result for requests[0], results[1] for requests[1], etc. Order is guaranteed even when some requests fail. Each result contains either a successful preview response or an error.
3542
+ *
3543
+ * @minItems 1
3544
+ */
3545
+ results: [
3546
+ PreviewBatchResultSuccess | PreviewBatchResultError,
3547
+ ...(PreviewBatchResultSuccess | PreviewBatchResultError)[]
3548
+ ];
3549
+ context?: ContextObject;
3550
+ ext?: ExtensionObject;
3551
+ }
3552
+ export interface PreviewBatchResultSuccess {
3553
+ success?: true;
3554
+ }
3555
+ export interface PreviewBatchResultError {
3556
+ success?: false;
3557
+ }
3512
3558
  /**
3513
3559
  * A deployment target where signals can be activated (DSP, sales agent, etc.)
3514
3560
  */
@@ -3786,14 +3832,22 @@ export interface ActivateSignalRequest {
3786
3832
  /**
3787
3833
  * Response payload for activate_signal task. Returns either complete success data OR error information, never both. This enforces atomic operation semantics - the signal is either fully activated or not activated at all.
3788
3834
  */
3789
- export type ActivateSignalResponse = {
3835
+ export type ActivateSignalResponse = ActivateSignalSuccess | ActivateSignalError;
3836
+ /**
3837
+ * A signal deployment to a specific deployment target with activation status and key
3838
+ */
3839
+ export interface ActivateSignalSuccess {
3790
3840
  /**
3791
3841
  * Array of deployment results for each deployment target
3792
3842
  */
3793
3843
  deployments: Deployment[];
3794
3844
  context?: ContextObject;
3795
3845
  ext?: ExtensionObject;
3796
- } | {
3846
+ }
3847
+ /**
3848
+ * Opaque correlation data that is echoed unchanged in responses. Used for internal tracking, UI session IDs, trace IDs, and other caller-specific identifiers that don't affect protocol behavior. Context data is never parsed by AdCP agents - it's simply preserved and returned.
3849
+ */
3850
+ export interface ActivateSignalError {
3797
3851
  /**
3798
3852
  * Array of errors explaining why activation failed (e.g., platform connectivity issues, signal definition problems, authentication failures)
3799
3853
  *
@@ -3802,8 +3856,8 @@ export type ActivateSignalResponse = {
3802
3856
  errors: [Error, ...Error[]];
3803
3857
  context?: ContextObject;
3804
3858
  ext?: ExtensionObject;
3805
- };
3859
+ }
3806
3860
  /**
3807
- * A signal deployment to a specific deployment target with activation status and key
3861
+ * Standard error structure for task-specific errors and warnings
3808
3862
  */
3809
3863
  //# sourceMappingURL=tools.generated.d.ts.map