@adcp/sdk 13.0.0-rc.8 → 13.0.0-rc.9

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 (200) hide show
  1. package/dist/lib/adapters/roster-account-store.d.mts +9 -8
  2. package/dist/lib/adapters/roster-account-store.d.ts +9 -8
  3. package/dist/lib/adapters/roster-account-store.d.ts.map +1 -1
  4. package/dist/lib/adapters/roster-account-store.js +2 -1
  5. package/dist/lib/adapters/roster-account-store.js.map +1 -1
  6. package/dist/lib/adapters/roster-account-store.mjs +2 -1
  7. package/dist/lib/adapters/roster-account-store.mjs.map +1 -1
  8. package/dist/lib/net/address-guards.d.ts.map +1 -1
  9. package/dist/lib/net/address-guards.js +6 -0
  10. package/dist/lib/net/address-guards.js.map +1 -1
  11. package/dist/lib/net/address-guards.mjs +6 -0
  12. package/dist/lib/net/address-guards.mjs.map +1 -1
  13. package/dist/lib/net/ssrf-fetch.d.ts.map +1 -1
  14. package/dist/lib/net/ssrf-fetch.js +66 -53
  15. package/dist/lib/net/ssrf-fetch.js.map +1 -1
  16. package/dist/lib/net/ssrf-fetch.mjs +66 -53
  17. package/dist/lib/net/ssrf-fetch.mjs.map +1 -1
  18. package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
  19. package/dist/lib/server/account-mode.d.mts +2 -1
  20. package/dist/lib/server/account-mode.d.ts +2 -1
  21. package/dist/lib/server/account-mode.d.ts.map +1 -1
  22. package/dist/lib/server/account-mode.js +1 -0
  23. package/dist/lib/server/account-mode.js.map +1 -1
  24. package/dist/lib/server/account-mode.mjs +1 -0
  25. package/dist/lib/server/account-mode.mjs.map +1 -1
  26. package/dist/lib/server/create-adcp-server.d.mts +10 -6
  27. package/dist/lib/server/create-adcp-server.d.ts +10 -6
  28. package/dist/lib/server/create-adcp-server.d.ts.map +1 -1
  29. package/dist/lib/server/create-adcp-server.js +2 -1
  30. package/dist/lib/server/create-adcp-server.js.map +1 -1
  31. package/dist/lib/server/create-adcp-server.mjs +2 -1
  32. package/dist/lib/server/create-adcp-server.mjs.map +1 -1
  33. package/dist/lib/server/decisioning/account.d.mts +16 -11
  34. package/dist/lib/server/decisioning/account.d.ts +16 -11
  35. package/dist/lib/server/decisioning/account.d.ts.map +1 -1
  36. package/dist/lib/server/decisioning/account.js.map +1 -1
  37. package/dist/lib/server/decisioning/account.mjs.map +1 -1
  38. package/dist/lib/server/decisioning/pagination.d.mts +2 -0
  39. package/dist/lib/server/decisioning/pagination.d.ts +2 -0
  40. package/dist/lib/server/decisioning/pagination.d.ts.map +1 -1
  41. package/dist/lib/server/decisioning/pagination.js.map +1 -1
  42. package/dist/lib/server/decisioning/runtime/from-platform.d.mts +20 -14
  43. package/dist/lib/server/decisioning/runtime/from-platform.d.ts +20 -14
  44. package/dist/lib/server/decisioning/runtime/from-platform.d.ts.map +1 -1
  45. package/dist/lib/server/decisioning/runtime/from-platform.js +32 -6
  46. package/dist/lib/server/decisioning/runtime/from-platform.js.map +1 -1
  47. package/dist/lib/server/decisioning/runtime/from-platform.mjs +32 -6
  48. package/dist/lib/server/decisioning/runtime/from-platform.mjs.map +1 -1
  49. package/dist/lib/server/decisioning/specialisms/sales.d.mts +16 -4
  50. package/dist/lib/server/decisioning/specialisms/sales.d.ts +16 -4
  51. package/dist/lib/server/decisioning/specialisms/sales.d.ts.map +1 -1
  52. package/dist/lib/server/decisioning/specialisms/sales.js.map +1 -1
  53. package/dist/lib/server/index.d.ts.map +1 -1
  54. package/dist/lib/server/index.js.map +1 -1
  55. package/dist/lib/server/index.mjs.map +1 -1
  56. package/dist/lib/server/legacy/v5/index.d.mts +2 -1
  57. package/dist/lib/server/legacy/v5/index.d.ts +2 -1
  58. package/dist/lib/server/legacy/v5/index.d.ts.map +1 -1
  59. package/dist/lib/server/legacy/v5/index.js.map +1 -1
  60. package/dist/lib/server/legacy/v5/index.mjs.map +1 -1
  61. package/dist/lib/testing/compliance/comply.d.mts +2 -0
  62. package/dist/lib/testing/compliance/comply.d.ts +2 -0
  63. package/dist/lib/testing/compliance/comply.d.ts.map +1 -1
  64. package/dist/lib/testing/compliance/comply.js +45 -14
  65. package/dist/lib/testing/compliance/comply.js.map +1 -1
  66. package/dist/lib/testing/compliance/comply.mjs +45 -14
  67. package/dist/lib/testing/compliance/comply.mjs.map +1 -1
  68. package/dist/lib/testing/compliance/index.d.mts +1 -1
  69. package/dist/lib/testing/compliance/index.d.ts +1 -1
  70. package/dist/lib/testing/compliance/index.d.ts.map +1 -1
  71. package/dist/lib/testing/compliance/index.js.map +1 -1
  72. package/dist/lib/testing/compliance/index.mjs.map +1 -1
  73. package/dist/lib/testing/compliance/storyboard-tracks.d.ts.map +1 -1
  74. package/dist/lib/testing/compliance/storyboard-tracks.js +9 -1
  75. package/dist/lib/testing/compliance/storyboard-tracks.js.map +1 -1
  76. package/dist/lib/testing/compliance/storyboard-tracks.mjs +9 -1
  77. package/dist/lib/testing/compliance/storyboard-tracks.mjs.map +1 -1
  78. package/dist/lib/testing/compliance/types.d.mts +26 -25
  79. package/dist/lib/testing/compliance/types.d.ts +26 -25
  80. package/dist/lib/testing/compliance/types.d.ts.map +1 -1
  81. package/dist/lib/testing/compliance/types.js.map +1 -1
  82. package/dist/lib/testing/index.d.mts +2 -2
  83. package/dist/lib/testing/index.d.ts +2 -2
  84. package/dist/lib/testing/index.d.ts.map +1 -1
  85. package/dist/lib/testing/index.js +16 -0
  86. package/dist/lib/testing/index.js.map +1 -1
  87. package/dist/lib/testing/index.mjs +16 -0
  88. package/dist/lib/testing/index.mjs.map +1 -1
  89. package/dist/lib/testing/scenarios/media-buy.d.ts.map +1 -1
  90. package/dist/lib/testing/scenarios/media-buy.js +20 -12
  91. package/dist/lib/testing/scenarios/media-buy.js.map +1 -1
  92. package/dist/lib/testing/scenarios/media-buy.mjs +20 -12
  93. package/dist/lib/testing/scenarios/media-buy.mjs.map +1 -1
  94. package/dist/lib/testing/storyboard/creative-assets.d.mts +23 -0
  95. package/dist/lib/testing/storyboard/creative-assets.d.ts +23 -0
  96. package/dist/lib/testing/storyboard/creative-assets.d.ts.map +1 -1
  97. package/dist/lib/testing/storyboard/creative-assets.js +322 -45
  98. package/dist/lib/testing/storyboard/creative-assets.js.map +1 -1
  99. package/dist/lib/testing/storyboard/creative-assets.mjs +321 -45
  100. package/dist/lib/testing/storyboard/creative-assets.mjs.map +1 -1
  101. package/dist/lib/testing/storyboard/index.d.mts +4 -1
  102. package/dist/lib/testing/storyboard/index.d.ts +4 -1
  103. package/dist/lib/testing/storyboard/index.d.ts.map +1 -1
  104. package/dist/lib/testing/storyboard/index.js +20 -0
  105. package/dist/lib/testing/storyboard/index.js.map +1 -1
  106. package/dist/lib/testing/storyboard/index.mjs +19 -0
  107. package/dist/lib/testing/storyboard/index.mjs.map +1 -1
  108. package/dist/lib/testing/storyboard/oauth-metadata-graph/grader.d.mts +21 -0
  109. package/dist/lib/testing/storyboard/oauth-metadata-graph/grader.d.ts +22 -0
  110. package/dist/lib/testing/storyboard/oauth-metadata-graph/grader.d.ts.map +1 -0
  111. package/dist/lib/testing/storyboard/oauth-metadata-graph/grader.js +668 -0
  112. package/dist/lib/testing/storyboard/oauth-metadata-graph/grader.js.map +1 -0
  113. package/dist/lib/testing/storyboard/oauth-metadata-graph/grader.mjs +638 -0
  114. package/dist/lib/testing/storyboard/oauth-metadata-graph/grader.mjs.map +1 -0
  115. package/dist/lib/testing/storyboard/oauth-metadata-graph/index.d.mts +5 -0
  116. package/dist/lib/testing/storyboard/oauth-metadata-graph/index.d.ts +6 -0
  117. package/dist/lib/testing/storyboard/oauth-metadata-graph/index.d.ts.map +1 -0
  118. package/dist/lib/testing/storyboard/oauth-metadata-graph/index.js +44 -0
  119. package/dist/lib/testing/storyboard/oauth-metadata-graph/index.js.map +1 -0
  120. package/dist/lib/testing/storyboard/oauth-metadata-graph/index.mjs +20 -0
  121. package/dist/lib/testing/storyboard/oauth-metadata-graph/index.mjs.map +1 -0
  122. package/dist/lib/testing/storyboard/oauth-metadata-graph/types.d.mts +38 -0
  123. package/dist/lib/testing/storyboard/oauth-metadata-graph/types.d.ts +39 -0
  124. package/dist/lib/testing/storyboard/oauth-metadata-graph/types.d.ts.map +1 -0
  125. package/dist/lib/testing/storyboard/oauth-metadata-graph/types.js +17 -0
  126. package/dist/lib/testing/storyboard/oauth-metadata-graph/types.js.map +1 -0
  127. package/dist/lib/testing/storyboard/oauth-metadata-graph/types.mjs +1 -0
  128. package/dist/lib/testing/storyboard/oauth-metadata-graph/types.mjs.map +1 -0
  129. package/dist/lib/testing/storyboard/oauth-metadata-graph/vector-loader.d.mts +32 -0
  130. package/dist/lib/testing/storyboard/oauth-metadata-graph/vector-loader.d.ts +33 -0
  131. package/dist/lib/testing/storyboard/oauth-metadata-graph/vector-loader.d.ts.map +1 -0
  132. package/dist/lib/testing/storyboard/oauth-metadata-graph/vector-loader.js +105 -0
  133. package/dist/lib/testing/storyboard/oauth-metadata-graph/vector-loader.js.map +1 -0
  134. package/dist/lib/testing/storyboard/oauth-metadata-graph/vector-loader.mjs +80 -0
  135. package/dist/lib/testing/storyboard/oauth-metadata-graph/vector-loader.mjs.map +1 -0
  136. package/dist/lib/testing/storyboard/probes.d.ts.map +1 -1
  137. package/dist/lib/testing/storyboard/probes.js +2 -1
  138. package/dist/lib/testing/storyboard/probes.js.map +1 -1
  139. package/dist/lib/testing/storyboard/probes.mjs +2 -1
  140. package/dist/lib/testing/storyboard/probes.mjs.map +1 -1
  141. package/dist/lib/testing/storyboard/runner.d.ts.map +1 -1
  142. package/dist/lib/testing/storyboard/runner.js +382 -69
  143. package/dist/lib/testing/storyboard/runner.js.map +1 -1
  144. package/dist/lib/testing/storyboard/runner.mjs +387 -70
  145. package/dist/lib/testing/storyboard/runner.mjs.map +1 -1
  146. package/dist/lib/testing/storyboard/seeding.js +3 -1
  147. package/dist/lib/testing/storyboard/seeding.js.map +1 -1
  148. package/dist/lib/testing/storyboard/seeding.mjs +3 -1
  149. package/dist/lib/testing/storyboard/seeding.mjs.map +1 -1
  150. package/dist/lib/testing/storyboard/task-map.d.ts.map +1 -1
  151. package/dist/lib/testing/storyboard/task-map.js +16 -2
  152. package/dist/lib/testing/storyboard/task-map.js.map +1 -1
  153. package/dist/lib/testing/storyboard/task-map.mjs +16 -2
  154. package/dist/lib/testing/storyboard/task-map.mjs.map +1 -1
  155. package/dist/lib/testing/storyboard/trusted-match-context-replay.d.mts +11 -0
  156. package/dist/lib/testing/storyboard/trusted-match-context-replay.d.ts +12 -0
  157. package/dist/lib/testing/storyboard/trusted-match-context-replay.d.ts.map +1 -0
  158. package/dist/lib/testing/storyboard/trusted-match-context-replay.js +340 -0
  159. package/dist/lib/testing/storyboard/trusted-match-context-replay.js.map +1 -0
  160. package/dist/lib/testing/storyboard/trusted-match-context-replay.mjs +316 -0
  161. package/dist/lib/testing/storyboard/trusted-match-context-replay.mjs.map +1 -0
  162. package/dist/lib/testing/storyboard/types.d.mts +84 -15
  163. package/dist/lib/testing/storyboard/types.d.ts +84 -15
  164. package/dist/lib/testing/storyboard/types.d.ts.map +1 -1
  165. package/dist/lib/testing/storyboard/types.js +2 -0
  166. package/dist/lib/testing/storyboard/types.js.map +1 -1
  167. package/dist/lib/testing/storyboard/types.mjs +2 -0
  168. package/dist/lib/testing/storyboard/types.mjs.map +1 -1
  169. package/dist/lib/testing/storyboard/validations.d.mts +3 -0
  170. package/dist/lib/testing/storyboard/validations.d.ts +3 -0
  171. package/dist/lib/testing/storyboard/validations.d.ts.map +1 -1
  172. package/dist/lib/testing/storyboard/validations.js +64 -24
  173. package/dist/lib/testing/storyboard/validations.js.map +1 -1
  174. package/dist/lib/testing/storyboard/validations.mjs +64 -24
  175. package/dist/lib/testing/storyboard/validations.mjs.map +1 -1
  176. package/dist/lib/types/server-payload-aliases.d.mts +8 -2
  177. package/dist/lib/types/server-payload-aliases.d.ts +8 -2
  178. package/dist/lib/types/server-payload-aliases.d.ts.map +1 -1
  179. package/dist/lib/types/server-payload-aliases.js.map +1 -1
  180. package/dist/lib/upstream-recorder/recorder.d.mts +7 -18
  181. package/dist/lib/upstream-recorder/recorder.d.ts +7 -18
  182. package/dist/lib/upstream-recorder/recorder.d.ts.map +1 -1
  183. package/dist/lib/upstream-recorder/recorder.js +17 -10
  184. package/dist/lib/upstream-recorder/recorder.js.map +1 -1
  185. package/dist/lib/upstream-recorder/recorder.mjs +12 -5
  186. package/dist/lib/upstream-recorder/recorder.mjs.map +1 -1
  187. package/dist/lib/utils/redact-secrets.d.ts.map +1 -1
  188. package/dist/lib/utils/redact-secrets.js +7 -1
  189. package/dist/lib/utils/redact-secrets.js.map +1 -1
  190. package/dist/lib/utils/redact-secrets.mjs +7 -1
  191. package/dist/lib/utils/redact-secrets.mjs.map +1 -1
  192. package/dist/lib/version.d.mts +3 -3
  193. package/dist/lib/version.d.ts +3 -3
  194. package/dist/lib/version.js +3 -3
  195. package/dist/lib/version.js.map +1 -1
  196. package/dist/lib/version.mjs +3 -3
  197. package/dist/lib/version.mjs.map +1 -1
  198. package/docs/guides/BUILD-AN-AGENT.md +4 -2
  199. package/docs/llms.txt +1 -1
  200. package/package.json +2 -2
@@ -6,9 +6,14 @@
6
6
  * fields such as `status`, `task_id`, and `adcp_version`. These aliases make
7
7
  * that distinction discoverable from the public barrels.
8
8
  */
9
- import type { ActivateSignalSuccess, BuildCreativeMultiSuccess, BuildCreativeSuccess, CalibrateContentResponse, CheckGovernanceResponse, CreateCollectionListResponse, CreateContentStandardsResponse, CreateMediaBuySuccess, CreatePropertyListResponse, DeleteCollectionListResponse, DeletePropertyListResponse, GetAccountFinancialsResponse, GetAccountFinancialsSuccess, GetAdCPCapabilitiesResponse, GetCollectionListResponse, GetContentStandardsResponse, GetCreativeDeliveryResponse, GetCreativeFeaturesResponse, GetMediaBuyArtifactsResponse, GetMediaBuyDeliveryResponse, GetMediaBuysResponse, GetPlanAuditLogsResponse, GetProductsResponse, GetPropertyListResponse, GetSignalsResponse, ListAccountsResponse, ListCollectionListsResponse, ListContentStandardsResponse, ListCreativeFormatsResponse, ListCreativesResponse, ListPropertyListsResponse, LogEventSuccess, PreviewCreativeResponse, ProvidePerformanceFeedbackSuccess, ReportPlanOutcomeResponse, ReportUsageResponse, SIGetOfferingResponse, SIInitiateSessionResponse, SISendMessageResponse, SITerminateSessionResponse, SyncAccountsResponse, SyncAccountsSuccess, SyncAudiencesSuccess, SyncCatalogsSuccess, SyncCreativesError, SyncCreativesSuccess, SyncEventSourcesSuccess, SyncGovernanceResponse, SyncGovernanceSuccess, SyncPlansResponse, UpdateCollectionListResponse, UpdateContentStandardsResponse, UpdateMediaBuySuccess, UpdatePropertyListResponse, ValidateContentDeliveryResponse } from './tools.generated.mjs';
9
+ import type { ActivateSignalSuccess, BuildCreativeMultiSuccess, BuildCreativeSuccess, CalibrateContentResponse, CheckGovernanceResponse, CreateCollectionListResponse, CreateContentStandardsResponse, CreateMediaBuyError, CreateMediaBuySuccess, CreatePropertyListResponse, DeleteCollectionListResponse, DeletePropertyListResponse, GetAccountFinancialsResponse, GetAccountFinancialsSuccess, GetAdCPCapabilitiesResponse, GetCollectionListResponse, GetContentStandardsResponse, GetCreativeDeliveryResponse, GetCreativeFeaturesResponse, GetMediaBuyArtifactsResponse, GetMediaBuyDeliveryResponse, GetMediaBuysResponse, GetPlanAuditLogsResponse, GetProductsResponse, GetPropertyListResponse, GetSignalsResponse, ListAccountsResponse, ListCollectionListsResponse, ListContentStandardsResponse, ListCreativeFormatsResponse, ListCreativesResponse, ListPropertyListsResponse, LogEventSuccess, PreviewCreativeResponse, ProvidePerformanceFeedbackSuccess, ReportPlanOutcomeResponse, ReportUsageResponse, SIGetOfferingResponse, SIInitiateSessionResponse, SISendMessageResponse, SITerminateSessionResponse, SyncAccountsResponse, SyncAccountsSuccess, SyncAudiencesSuccess, SyncCatalogsSuccess, SyncCreativesError, SyncCreativesSuccess, SyncEventSourcesSuccess, SyncGovernanceResponse, SyncGovernanceSuccess, SyncPlansResponse, UpdateCollectionListResponse, UpdateContentStandardsResponse, UpdateMediaBuySuccess, UpdatePropertyListResponse, ValidateContentDeliveryResponse } from './tools.generated.mjs';
10
10
  import type { AcquireRightsAcquired, AcquireRightsPendingApproval, AcquireRightsRejected, CreativeApproved, CreativePendingReview, CreativeRejected, GetBrandIdentitySuccess, GetRightsResponse, GetRightsSuccess, UpdateRightsSuccess } from './core.generated.mjs';
11
11
  import type { RequireCacheScopeWhenProducts, ServerPayload } from './server-payload.mjs';
12
+ type ExclusivePayload<TLeft, TRight> = (TLeft & {
13
+ [K in Exclude<keyof TRight, keyof TLeft>]?: never;
14
+ }) | (TRight & {
15
+ [K in Exclude<keyof TLeft, keyof TRight>]?: never;
16
+ });
12
17
  export type GetAdCPCapabilitiesPayload = ServerPayload<GetAdCPCapabilitiesResponse>;
13
18
  export type ListAccountsPayload = ServerPayload<ListAccountsResponse>;
14
19
  export type SyncAccountsPayload = ServerPayload<SyncAccountsResponse>;
@@ -19,7 +24,7 @@ export type ReportUsagePayload = ServerPayload<ReportUsageResponse>;
19
24
  export type GetAccountFinancialsPayload = ServerPayload<GetAccountFinancialsResponse>;
20
25
  export type GetAccountFinancialsSuccessPayload = ServerPayload<GetAccountFinancialsSuccess>;
21
26
  export type GetProductsPayload = RequireCacheScopeWhenProducts<ServerPayload<GetProductsResponse>>;
22
- export type CreateMediaBuyPayload = ServerPayload<CreateMediaBuySuccess>;
27
+ export type CreateMediaBuyPayload = ExclusivePayload<ServerPayload<CreateMediaBuySuccess>, ServerPayload<CreateMediaBuyError>>;
23
28
  export type UpdateMediaBuyPayload = ServerPayload<UpdateMediaBuySuccess>;
24
29
  export type GetMediaBuysPayload = ServerPayload<GetMediaBuysResponse>;
25
30
  export type GetMediaBuyDeliveryPayload = ServerPayload<GetMediaBuyDeliveryResponse>;
@@ -82,3 +87,4 @@ export type CreativeApprovedPayload = ServerPayload<CreativeApproved>;
82
87
  export type CreativeRejectedPayload = ServerPayload<CreativeRejected>;
83
88
  export type CreativePendingReviewPayload = ServerPayload<CreativePendingReview>;
84
89
  export type CreativeApprovalPayload = CreativeApprovedPayload | CreativeRejectedPayload | CreativePendingReviewPayload;
90
+ export {};
@@ -6,9 +6,14 @@
6
6
  * fields such as `status`, `task_id`, and `adcp_version`. These aliases make
7
7
  * that distinction discoverable from the public barrels.
8
8
  */
9
- import type { ActivateSignalSuccess, BuildCreativeMultiSuccess, BuildCreativeSuccess, CalibrateContentResponse, CheckGovernanceResponse, CreateCollectionListResponse, CreateContentStandardsResponse, CreateMediaBuySuccess, CreatePropertyListResponse, DeleteCollectionListResponse, DeletePropertyListResponse, GetAccountFinancialsResponse, GetAccountFinancialsSuccess, GetAdCPCapabilitiesResponse, GetCollectionListResponse, GetContentStandardsResponse, GetCreativeDeliveryResponse, GetCreativeFeaturesResponse, GetMediaBuyArtifactsResponse, GetMediaBuyDeliveryResponse, GetMediaBuysResponse, GetPlanAuditLogsResponse, GetProductsResponse, GetPropertyListResponse, GetSignalsResponse, ListAccountsResponse, ListCollectionListsResponse, ListContentStandardsResponse, ListCreativeFormatsResponse, ListCreativesResponse, ListPropertyListsResponse, LogEventSuccess, PreviewCreativeResponse, ProvidePerformanceFeedbackSuccess, ReportPlanOutcomeResponse, ReportUsageResponse, SIGetOfferingResponse, SIInitiateSessionResponse, SISendMessageResponse, SITerminateSessionResponse, SyncAccountsResponse, SyncAccountsSuccess, SyncAudiencesSuccess, SyncCatalogsSuccess, SyncCreativesError, SyncCreativesSuccess, SyncEventSourcesSuccess, SyncGovernanceResponse, SyncGovernanceSuccess, SyncPlansResponse, UpdateCollectionListResponse, UpdateContentStandardsResponse, UpdateMediaBuySuccess, UpdatePropertyListResponse, ValidateContentDeliveryResponse } from './tools.generated';
9
+ import type { ActivateSignalSuccess, BuildCreativeMultiSuccess, BuildCreativeSuccess, CalibrateContentResponse, CheckGovernanceResponse, CreateCollectionListResponse, CreateContentStandardsResponse, CreateMediaBuyError, CreateMediaBuySuccess, CreatePropertyListResponse, DeleteCollectionListResponse, DeletePropertyListResponse, GetAccountFinancialsResponse, GetAccountFinancialsSuccess, GetAdCPCapabilitiesResponse, GetCollectionListResponse, GetContentStandardsResponse, GetCreativeDeliveryResponse, GetCreativeFeaturesResponse, GetMediaBuyArtifactsResponse, GetMediaBuyDeliveryResponse, GetMediaBuysResponse, GetPlanAuditLogsResponse, GetProductsResponse, GetPropertyListResponse, GetSignalsResponse, ListAccountsResponse, ListCollectionListsResponse, ListContentStandardsResponse, ListCreativeFormatsResponse, ListCreativesResponse, ListPropertyListsResponse, LogEventSuccess, PreviewCreativeResponse, ProvidePerformanceFeedbackSuccess, ReportPlanOutcomeResponse, ReportUsageResponse, SIGetOfferingResponse, SIInitiateSessionResponse, SISendMessageResponse, SITerminateSessionResponse, SyncAccountsResponse, SyncAccountsSuccess, SyncAudiencesSuccess, SyncCatalogsSuccess, SyncCreativesError, SyncCreativesSuccess, SyncEventSourcesSuccess, SyncGovernanceResponse, SyncGovernanceSuccess, SyncPlansResponse, UpdateCollectionListResponse, UpdateContentStandardsResponse, UpdateMediaBuySuccess, UpdatePropertyListResponse, ValidateContentDeliveryResponse } from './tools.generated';
10
10
  import type { AcquireRightsAcquired, AcquireRightsPendingApproval, AcquireRightsRejected, CreativeApproved, CreativePendingReview, CreativeRejected, GetBrandIdentitySuccess, GetRightsResponse, GetRightsSuccess, UpdateRightsSuccess } from './core.generated';
11
11
  import type { RequireCacheScopeWhenProducts, ServerPayload } from './server-payload';
12
+ type ExclusivePayload<TLeft, TRight> = (TLeft & {
13
+ [K in Exclude<keyof TRight, keyof TLeft>]?: never;
14
+ }) | (TRight & {
15
+ [K in Exclude<keyof TLeft, keyof TRight>]?: never;
16
+ });
12
17
  export type GetAdCPCapabilitiesPayload = ServerPayload<GetAdCPCapabilitiesResponse>;
13
18
  export type ListAccountsPayload = ServerPayload<ListAccountsResponse>;
14
19
  export type SyncAccountsPayload = ServerPayload<SyncAccountsResponse>;
@@ -19,7 +24,7 @@ export type ReportUsagePayload = ServerPayload<ReportUsageResponse>;
19
24
  export type GetAccountFinancialsPayload = ServerPayload<GetAccountFinancialsResponse>;
20
25
  export type GetAccountFinancialsSuccessPayload = ServerPayload<GetAccountFinancialsSuccess>;
21
26
  export type GetProductsPayload = RequireCacheScopeWhenProducts<ServerPayload<GetProductsResponse>>;
22
- export type CreateMediaBuyPayload = ServerPayload<CreateMediaBuySuccess>;
27
+ export type CreateMediaBuyPayload = ExclusivePayload<ServerPayload<CreateMediaBuySuccess>, ServerPayload<CreateMediaBuyError>>;
23
28
  export type UpdateMediaBuyPayload = ServerPayload<UpdateMediaBuySuccess>;
24
29
  export type GetMediaBuysPayload = ServerPayload<GetMediaBuysResponse>;
25
30
  export type GetMediaBuyDeliveryPayload = ServerPayload<GetMediaBuyDeliveryResponse>;
@@ -82,4 +87,5 @@ export type CreativeApprovedPayload = ServerPayload<CreativeApproved>;
82
87
  export type CreativeRejectedPayload = ServerPayload<CreativeRejected>;
83
88
  export type CreativePendingReviewPayload = ServerPayload<CreativePendingReview>;
84
89
  export type CreativeApprovalPayload = CreativeApprovedPayload | CreativeRejectedPayload | CreativePendingReviewPayload;
90
+ export {};
85
91
  //# sourceMappingURL=server-payload-aliases.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server-payload-aliases.d.ts","sourceRoot":"","sources":["../../../src/lib/types/server-payload-aliases.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EAC9B,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,4BAA4B,EAC5B,2BAA2B,EAC3B,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,2BAA2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,oBAAoB,GAC5B,4BAA4B,GAC5B,mCAAmC,GACnC,4BAA4B,CAAC;AACjC,MAAM,MAAM,mBAAmB,GAAG,aAAa,CAAC,mBAAmB,CAAC,CAAC;AAErE,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC;AACtE,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC;AACtE,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC,qBAAqB,CAAC,CAAC;AAChF,MAAM,MAAM,uBAAuB,GAAG,uBAAuB,GAAG,uBAAuB,GAAG,4BAA4B,CAAC"}
1
+ {"version":3,"file":"server-payload-aliases.d.ts","sourceRoot":"","sources":["../../../src/lib/types/server-payload-aliases.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EAC9B,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,4BAA4B,EAC5B,2BAA2B,EAC3B,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC3B,qBAAqB,EACrB,yBAAyB,EACzB,eAAe,EACf,uBAAuB,EACvB,iCAAiC,EACjC,yBAAyB,EACzB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,uBAA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AAM,4BAA4B,GAAG,aAAa,CAAC,qBAAqB,CAAC,CAAC;AAChF,MAAM,MAAM,oBAAoB,GAC5B,4BAA4B,GAC5B,mCAAmC,GACnC,4BAA4B,CAAC;AACjC,MAAM,MAAM,mBAAmB,GAAG,aAAa,CAAC,mBAAmB,CAAC,CAAC;AAErE,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC;AACtE,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC;AACtE,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC,qBAAqB,CAAC,CAAC;AAChF,MAAM,MAAM,uBAAuB,GAAG,uBAAuB,GAAG,uBAAuB,GAAG,4BAA4B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/types/server-payload-aliases.ts"],"sourcesContent":["/**\n * Named server/adopter payload aliases for generated AdCP response types.\n *\n * Generated `*Response` and `*Success` types describe wire responses. Server\n * handlers return the domain payload before the SDK stamps protocol envelope\n * fields such as `status`, `task_id`, and `adcp_version`. These aliases make\n * that distinction discoverable from the public barrels.\n */\n\nimport type {\n ActivateSignalSuccess,\n BuildCreativeMultiSuccess,\n BuildCreativeSuccess,\n CalibrateContentResponse,\n CheckGovernanceResponse,\n CreateCollectionListResponse,\n CreateContentStandardsResponse,\n CreateMediaBuySuccess,\n CreatePropertyListResponse,\n DeleteCollectionListResponse,\n DeletePropertyListResponse,\n GetAccountFinancialsResponse,\n GetAccountFinancialsSuccess,\n GetAdCPCapabilitiesResponse,\n GetCollectionListResponse,\n GetContentStandardsResponse,\n GetCreativeDeliveryResponse,\n GetCreativeFeaturesResponse,\n GetMediaBuyArtifactsResponse,\n GetMediaBuyDeliveryResponse,\n GetMediaBuysResponse,\n GetPlanAuditLogsResponse,\n GetProductsResponse,\n GetPropertyListResponse,\n GetSignalsResponse,\n ListAccountsResponse,\n ListCollectionListsResponse,\n ListContentStandardsResponse,\n ListCreativeFormatsResponse,\n ListCreativesResponse,\n ListPropertyListsResponse,\n LogEventSuccess,\n PreviewCreativeResponse,\n ProvidePerformanceFeedbackSuccess,\n ReportPlanOutcomeResponse,\n ReportUsageResponse,\n SIGetOfferingResponse,\n SIInitiateSessionResponse,\n SISendMessageResponse,\n SITerminateSessionResponse,\n SyncAccountsResponse,\n SyncAccountsSuccess,\n SyncAudiencesSuccess,\n SyncCatalogsSuccess,\n SyncCreativesError,\n SyncCreativesSuccess,\n SyncEventSourcesSuccess,\n SyncGovernanceResponse,\n SyncGovernanceSuccess,\n SyncPlansResponse,\n UpdateCollectionListResponse,\n UpdateContentStandardsResponse,\n UpdateMediaBuySuccess,\n UpdatePropertyListResponse,\n ValidateContentDeliveryResponse,\n} from './tools.generated';\nimport type {\n AcquireRightsAcquired,\n AcquireRightsPendingApproval,\n AcquireRightsRejected,\n CreativeApproved,\n CreativePendingReview,\n CreativeRejected,\n GetBrandIdentitySuccess,\n GetRightsResponse,\n GetRightsSuccess,\n UpdateRightsSuccess,\n} from './core.generated';\nimport type { RequireCacheScopeWhenProducts, ServerPayload } from './server-payload';\n\nexport type GetAdCPCapabilitiesPayload = ServerPayload<GetAdCPCapabilitiesResponse>;\n\nexport type ListAccountsPayload = ServerPayload<ListAccountsResponse>;\nexport type SyncAccountsPayload = ServerPayload<SyncAccountsResponse>;\nexport type SyncAccountsSuccessPayload = ServerPayload<SyncAccountsSuccess>;\nexport type SyncGovernancePayload = ServerPayload<SyncGovernanceResponse>;\nexport type SyncGovernanceSuccessPayload = ServerPayload<SyncGovernanceSuccess>;\nexport type ReportUsagePayload = ServerPayload<ReportUsageResponse>;\nexport type GetAccountFinancialsPayload = ServerPayload<GetAccountFinancialsResponse>;\nexport type GetAccountFinancialsSuccessPayload = ServerPayload<GetAccountFinancialsSuccess>;\n\nexport type GetProductsPayload = RequireCacheScopeWhenProducts<ServerPayload<GetProductsResponse>>;\nexport type CreateMediaBuyPayload = ServerPayload<CreateMediaBuySuccess>;\nexport type UpdateMediaBuyPayload = ServerPayload<UpdateMediaBuySuccess>;\nexport type GetMediaBuysPayload = ServerPayload<GetMediaBuysResponse>;\nexport type GetMediaBuyDeliveryPayload = ServerPayload<GetMediaBuyDeliveryResponse>;\nexport type ProvidePerformanceFeedbackPayload = ServerPayload<ProvidePerformanceFeedbackSuccess>;\n/** Canonical server handler payload alias for `list_creative_formats`. */\nexport type ListCreativeFormatsPayload = ServerPayload<ListCreativeFormatsResponse>;\n/** Equivalent alias retained for response-centric naming/search. Prefer `ListCreativeFormatsPayload` in new code. */\nexport type ListCreativeFormatsResponsePayload = ListCreativeFormatsPayload;\n/** Equivalent alias retained for server-centric naming/search. Prefer `ListCreativeFormatsPayload` in new code. */\nexport type ListCreativeFormatsServerPayload = ListCreativeFormatsPayload;\nexport type ListCreativesPayload = ServerPayload<ListCreativesResponse>;\nexport type SyncCreativesSuccessPayload = ServerPayload<SyncCreativesSuccess>;\nexport type SyncCreativesErrorPayload = ServerPayload<SyncCreativesError>;\nexport type SyncCreativesPayload = SyncCreativesSuccessPayload | SyncCreativesErrorPayload;\nexport type SyncCatalogsPayload = ServerPayload<SyncCatalogsSuccess>;\nexport type SyncEventSourcesPayload = ServerPayload<SyncEventSourcesSuccess>;\nexport type LogEventPayload = ServerPayload<LogEventSuccess>;\n\nexport type GetSignalsPayload = ServerPayload<GetSignalsResponse>;\nexport type ActivateSignalPayload = ServerPayload<ActivateSignalSuccess>;\n\nexport type SyncAudiencesPayload = ServerPayload<SyncAudiencesSuccess>;\n\nexport type BuildCreativePayload = ServerPayload<BuildCreativeSuccess>;\nexport type BuildCreativeMultiPayload = ServerPayload<BuildCreativeMultiSuccess>;\nexport type PreviewCreativePayload = ServerPayload<PreviewCreativeResponse>;\nexport type GetCreativeDeliveryPayload = ServerPayload<GetCreativeDeliveryResponse>;\n\nexport type CreatePropertyListPayload = ServerPayload<CreatePropertyListResponse>;\nexport type UpdatePropertyListPayload = ServerPayload<UpdatePropertyListResponse>;\nexport type GetPropertyListPayload = ServerPayload<GetPropertyListResponse>;\nexport type ListPropertyListsPayload = ServerPayload<ListPropertyListsResponse>;\nexport type DeletePropertyListPayload = ServerPayload<DeletePropertyListResponse>;\nexport type CreateCollectionListPayload = ServerPayload<CreateCollectionListResponse>;\nexport type UpdateCollectionListPayload = ServerPayload<UpdateCollectionListResponse>;\nexport type GetCollectionListPayload = ServerPayload<GetCollectionListResponse>;\nexport type ListCollectionListsPayload = ServerPayload<ListCollectionListsResponse>;\nexport type DeleteCollectionListPayload = ServerPayload<DeleteCollectionListResponse>;\n\nexport type ListContentStandardsPayload = ServerPayload<ListContentStandardsResponse>;\nexport type GetContentStandardsPayload = ServerPayload<GetContentStandardsResponse>;\nexport type CreateContentStandardsPayload = ServerPayload<CreateContentStandardsResponse>;\nexport type UpdateContentStandardsPayload = ServerPayload<UpdateContentStandardsResponse>;\nexport type CalibrateContentPayload = ServerPayload<CalibrateContentResponse>;\nexport type ValidateContentDeliveryPayload = ServerPayload<ValidateContentDeliveryResponse>;\nexport type GetMediaBuyArtifactsPayload = ServerPayload<GetMediaBuyArtifactsResponse>;\nexport type GetCreativeFeaturesPayload = ServerPayload<GetCreativeFeaturesResponse>;\n\nexport type SyncPlansPayload = ServerPayload<SyncPlansResponse>;\nexport type CheckGovernancePayload = ServerPayload<CheckGovernanceResponse>;\nexport type ReportPlanOutcomePayload = ServerPayload<ReportPlanOutcomeResponse>;\nexport type GetPlanAuditLogsPayload = ServerPayload<GetPlanAuditLogsResponse>;\n\nexport type SIGetOfferingPayload = ServerPayload<SIGetOfferingResponse>;\nexport type SIInitiateSessionPayload = ServerPayload<SIInitiateSessionResponse>;\nexport type SISendMessagePayload = ServerPayload<SISendMessageResponse>;\nexport type SITerminateSessionPayload = ServerPayload<SITerminateSessionResponse>;\n\nexport type GetBrandIdentityPayload = ServerPayload<GetBrandIdentitySuccess>;\nexport type GetRightsPayload = ServerPayload<GetRightsSuccess>;\nexport type GetRightsResponsePayload = ServerPayload<GetRightsResponse>;\nexport type AcquireRightsAcquiredPayload = ServerPayload<AcquireRightsAcquired>;\nexport type AcquireRightsPendingApprovalPayload = ServerPayload<AcquireRightsPendingApproval>;\nexport type AcquireRightsRejectedPayload = ServerPayload<AcquireRightsRejected>;\nexport type AcquireRightsPayload =\n | AcquireRightsAcquiredPayload\n | AcquireRightsPendingApprovalPayload\n | AcquireRightsRejectedPayload;\nexport type UpdateRightsPayload = ServerPayload<UpdateRightsSuccess>;\n\nexport type CreativeApprovedPayload = ServerPayload<CreativeApproved>;\nexport type CreativeRejectedPayload = ServerPayload<CreativeRejected>;\nexport type CreativePendingReviewPayload = ServerPayload<CreativePendingReview>;\nexport type CreativeApprovalPayload = CreativeApprovedPayload | CreativeRejectedPayload | CreativePendingReviewPayload;\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../../src/lib/types/server-payload-aliases.ts"],"sourcesContent":["/**\n * Named server/adopter payload aliases for generated AdCP response types.\n *\n * Generated `*Response` and `*Success` types describe wire responses. Server\n * handlers return the domain payload before the SDK stamps protocol envelope\n * fields such as `status`, `task_id`, and `adcp_version`. These aliases make\n * that distinction discoverable from the public barrels.\n */\n\nimport type {\n ActivateSignalSuccess,\n BuildCreativeMultiSuccess,\n BuildCreativeSuccess,\n CalibrateContentResponse,\n CheckGovernanceResponse,\n CreateCollectionListResponse,\n CreateContentStandardsResponse,\n CreateMediaBuyError,\n CreateMediaBuySuccess,\n CreatePropertyListResponse,\n DeleteCollectionListResponse,\n DeletePropertyListResponse,\n GetAccountFinancialsResponse,\n GetAccountFinancialsSuccess,\n GetAdCPCapabilitiesResponse,\n GetCollectionListResponse,\n GetContentStandardsResponse,\n GetCreativeDeliveryResponse,\n GetCreativeFeaturesResponse,\n GetMediaBuyArtifactsResponse,\n GetMediaBuyDeliveryResponse,\n GetMediaBuysResponse,\n GetPlanAuditLogsResponse,\n GetProductsResponse,\n GetPropertyListResponse,\n GetSignalsResponse,\n ListAccountsResponse,\n ListCollectionListsResponse,\n ListContentStandardsResponse,\n ListCreativeFormatsResponse,\n ListCreativesResponse,\n ListPropertyListsResponse,\n LogEventSuccess,\n PreviewCreativeResponse,\n ProvidePerformanceFeedbackSuccess,\n ReportPlanOutcomeResponse,\n ReportUsageResponse,\n SIGetOfferingResponse,\n SIInitiateSessionResponse,\n SISendMessageResponse,\n SITerminateSessionResponse,\n SyncAccountsResponse,\n SyncAccountsSuccess,\n SyncAudiencesSuccess,\n SyncCatalogsSuccess,\n SyncCreativesError,\n SyncCreativesSuccess,\n SyncEventSourcesSuccess,\n SyncGovernanceResponse,\n SyncGovernanceSuccess,\n SyncPlansResponse,\n UpdateCollectionListResponse,\n UpdateContentStandardsResponse,\n UpdateMediaBuySuccess,\n UpdatePropertyListResponse,\n ValidateContentDeliveryResponse,\n} from './tools.generated';\nimport type {\n AcquireRightsAcquired,\n AcquireRightsPendingApproval,\n AcquireRightsRejected,\n CreativeApproved,\n CreativePendingReview,\n CreativeRejected,\n GetBrandIdentitySuccess,\n GetRightsResponse,\n GetRightsSuccess,\n UpdateRightsSuccess,\n} from './core.generated';\nimport type { RequireCacheScopeWhenProducts, ServerPayload } from './server-payload';\n\ntype ExclusivePayload<TLeft, TRight> =\n | (TLeft & { [K in Exclude<keyof TRight, keyof TLeft>]?: never })\n | (TRight & { [K in Exclude<keyof TLeft, keyof TRight>]?: never });\n\nexport type GetAdCPCapabilitiesPayload = ServerPayload<GetAdCPCapabilitiesResponse>;\n\nexport type ListAccountsPayload = ServerPayload<ListAccountsResponse>;\nexport type SyncAccountsPayload = ServerPayload<SyncAccountsResponse>;\nexport type SyncAccountsSuccessPayload = ServerPayload<SyncAccountsSuccess>;\nexport type SyncGovernancePayload = ServerPayload<SyncGovernanceResponse>;\nexport type SyncGovernanceSuccessPayload = ServerPayload<SyncGovernanceSuccess>;\nexport type ReportUsagePayload = ServerPayload<ReportUsageResponse>;\nexport type GetAccountFinancialsPayload = ServerPayload<GetAccountFinancialsResponse>;\nexport type GetAccountFinancialsSuccessPayload = ServerPayload<GetAccountFinancialsSuccess>;\n\nexport type GetProductsPayload = RequireCacheScopeWhenProducts<ServerPayload<GetProductsResponse>>;\nexport type CreateMediaBuyPayload = ExclusivePayload<\n ServerPayload<CreateMediaBuySuccess>,\n ServerPayload<CreateMediaBuyError>\n>;\nexport type UpdateMediaBuyPayload = ServerPayload<UpdateMediaBuySuccess>;\nexport type GetMediaBuysPayload = ServerPayload<GetMediaBuysResponse>;\nexport type GetMediaBuyDeliveryPayload = ServerPayload<GetMediaBuyDeliveryResponse>;\nexport type ProvidePerformanceFeedbackPayload = ServerPayload<ProvidePerformanceFeedbackSuccess>;\n/** Canonical server handler payload alias for `list_creative_formats`. */\nexport type ListCreativeFormatsPayload = ServerPayload<ListCreativeFormatsResponse>;\n/** Equivalent alias retained for response-centric naming/search. Prefer `ListCreativeFormatsPayload` in new code. */\nexport type ListCreativeFormatsResponsePayload = ListCreativeFormatsPayload;\n/** Equivalent alias retained for server-centric naming/search. Prefer `ListCreativeFormatsPayload` in new code. */\nexport type ListCreativeFormatsServerPayload = ListCreativeFormatsPayload;\nexport type ListCreativesPayload = ServerPayload<ListCreativesResponse>;\nexport type SyncCreativesSuccessPayload = ServerPayload<SyncCreativesSuccess>;\nexport type SyncCreativesErrorPayload = ServerPayload<SyncCreativesError>;\nexport type SyncCreativesPayload = SyncCreativesSuccessPayload | SyncCreativesErrorPayload;\nexport type SyncCatalogsPayload = ServerPayload<SyncCatalogsSuccess>;\nexport type SyncEventSourcesPayload = ServerPayload<SyncEventSourcesSuccess>;\nexport type LogEventPayload = ServerPayload<LogEventSuccess>;\n\nexport type GetSignalsPayload = ServerPayload<GetSignalsResponse>;\nexport type ActivateSignalPayload = ServerPayload<ActivateSignalSuccess>;\n\nexport type SyncAudiencesPayload = ServerPayload<SyncAudiencesSuccess>;\n\nexport type BuildCreativePayload = ServerPayload<BuildCreativeSuccess>;\nexport type BuildCreativeMultiPayload = ServerPayload<BuildCreativeMultiSuccess>;\nexport type PreviewCreativePayload = ServerPayload<PreviewCreativeResponse>;\nexport type GetCreativeDeliveryPayload = ServerPayload<GetCreativeDeliveryResponse>;\n\nexport type CreatePropertyListPayload = ServerPayload<CreatePropertyListResponse>;\nexport type UpdatePropertyListPayload = ServerPayload<UpdatePropertyListResponse>;\nexport type GetPropertyListPayload = ServerPayload<GetPropertyListResponse>;\nexport type ListPropertyListsPayload = ServerPayload<ListPropertyListsResponse>;\nexport type DeletePropertyListPayload = ServerPayload<DeletePropertyListResponse>;\nexport type CreateCollectionListPayload = ServerPayload<CreateCollectionListResponse>;\nexport type UpdateCollectionListPayload = ServerPayload<UpdateCollectionListResponse>;\nexport type GetCollectionListPayload = ServerPayload<GetCollectionListResponse>;\nexport type ListCollectionListsPayload = ServerPayload<ListCollectionListsResponse>;\nexport type DeleteCollectionListPayload = ServerPayload<DeleteCollectionListResponse>;\n\nexport type ListContentStandardsPayload = ServerPayload<ListContentStandardsResponse>;\nexport type GetContentStandardsPayload = ServerPayload<GetContentStandardsResponse>;\nexport type CreateContentStandardsPayload = ServerPayload<CreateContentStandardsResponse>;\nexport type UpdateContentStandardsPayload = ServerPayload<UpdateContentStandardsResponse>;\nexport type CalibrateContentPayload = ServerPayload<CalibrateContentResponse>;\nexport type ValidateContentDeliveryPayload = ServerPayload<ValidateContentDeliveryResponse>;\nexport type GetMediaBuyArtifactsPayload = ServerPayload<GetMediaBuyArtifactsResponse>;\nexport type GetCreativeFeaturesPayload = ServerPayload<GetCreativeFeaturesResponse>;\n\nexport type SyncPlansPayload = ServerPayload<SyncPlansResponse>;\nexport type CheckGovernancePayload = ServerPayload<CheckGovernanceResponse>;\nexport type ReportPlanOutcomePayload = ServerPayload<ReportPlanOutcomeResponse>;\nexport type GetPlanAuditLogsPayload = ServerPayload<GetPlanAuditLogsResponse>;\n\nexport type SIGetOfferingPayload = ServerPayload<SIGetOfferingResponse>;\nexport type SIInitiateSessionPayload = ServerPayload<SIInitiateSessionResponse>;\nexport type SISendMessagePayload = ServerPayload<SISendMessageResponse>;\nexport type SITerminateSessionPayload = ServerPayload<SITerminateSessionResponse>;\n\nexport type GetBrandIdentityPayload = ServerPayload<GetBrandIdentitySuccess>;\nexport type GetRightsPayload = ServerPayload<GetRightsSuccess>;\nexport type GetRightsResponsePayload = ServerPayload<GetRightsResponse>;\nexport type AcquireRightsAcquiredPayload = ServerPayload<AcquireRightsAcquired>;\nexport type AcquireRightsPendingApprovalPayload = ServerPayload<AcquireRightsPendingApproval>;\nexport type AcquireRightsRejectedPayload = ServerPayload<AcquireRightsRejected>;\nexport type AcquireRightsPayload =\n | AcquireRightsAcquiredPayload\n | AcquireRightsPendingApprovalPayload\n | AcquireRightsRejectedPayload;\nexport type UpdateRightsPayload = ServerPayload<UpdateRightsSuccess>;\n\nexport type CreativeApprovedPayload = ServerPayload<CreativeApproved>;\nexport type CreativeRejectedPayload = ServerPayload<CreativeRejected>;\nexport type CreativePendingReviewPayload = ServerPayload<CreativePendingReview>;\nexport type CreativeApprovalPayload = CreativeApprovedPayload | CreativeRejectedPayload | CreativePendingReviewPayload;\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -23,14 +23,13 @@ export declare function createUpstreamRecorder(options?: UpstreamRecorderOptions
23
23
  * - `createUpstreamRecorder({ redactPattern })` → `computePayloadDigestSha256(..., { redactPattern })`
24
24
  * - `createUpstreamRecorder({ maxPayloadBytes })` → `computePayloadDigestSha256(..., { maxPayloadBytes })`
25
25
  *
26
- * Prefer `{ prenormalized: true }` only when the payload has already been
27
- * normalized/redacted exactly as the recorder would store it; legacy `false`
28
- * remains accepted as the same prenormalized sentinel. The prenormalized path
29
- * skips redaction, so the helper rejects secret-shaped keys whose values are
30
- * not already the literal `"[redacted]"` marker or an explicit null
31
- * placeholder. For form-encoded bodies, duplicate secret-shaped keys are also
32
- * rejected because last-wins maps cannot prove that every original value was
33
- * inspected before hashing.
26
+ * Use `{ prenormalized: true }` only when the payload has already been
27
+ * normalized/redacted exactly as the recorder would store it. The
28
+ * prenormalized path skips redaction, so the helper rejects secret-shaped keys
29
+ * whose values are not already the literal `"[redacted]"` marker or an
30
+ * explicit null placeholder. For form-encoded bodies, duplicate secret-shaped
31
+ * keys are also rejected because last-wins maps cannot prove that every
32
+ * original value was inspected before hashing.
34
33
  *
35
34
  * JSON content is serialized with RFC 8785 JCS before hashing. When
36
35
  * `contentType` is JSON-shaped and `payload` is a string, the helper parses
@@ -46,16 +45,6 @@ export declare function createUpstreamRecorder(options?: UpstreamRecorderOptions
46
45
  * `query_upstream_traffic` wire contract.
47
46
  */
48
47
  export declare function computePayloadDigestSha256(payload: unknown, contentType?: string, options?: PayloadDigestOptions): string;
49
- /**
50
- * @deprecated Pass `{ redactPattern: /.../ }` instead of the bare `RegExp`
51
- * form. The legacy form remains accepted for this major.
52
- */
53
- export declare function computePayloadDigestSha256(payload: unknown, contentType: string | undefined, options: RegExp): string;
54
- /**
55
- * @deprecated Pass `{ prenormalized: true }` instead of `false`. The legacy
56
- * form remains accepted for this major.
57
- */
58
- export declare function computePayloadDigestSha256(payload: unknown, contentType: string | undefined, options: false): string;
59
48
  export type PayloadDigestOptions = {
60
49
  /**
61
50
  * Custom redaction pattern. Passing `false` is accepted only with
@@ -23,14 +23,13 @@ export declare function createUpstreamRecorder(options?: UpstreamRecorderOptions
23
23
  * - `createUpstreamRecorder({ redactPattern })` → `computePayloadDigestSha256(..., { redactPattern })`
24
24
  * - `createUpstreamRecorder({ maxPayloadBytes })` → `computePayloadDigestSha256(..., { maxPayloadBytes })`
25
25
  *
26
- * Prefer `{ prenormalized: true }` only when the payload has already been
27
- * normalized/redacted exactly as the recorder would store it; legacy `false`
28
- * remains accepted as the same prenormalized sentinel. The prenormalized path
29
- * skips redaction, so the helper rejects secret-shaped keys whose values are
30
- * not already the literal `"[redacted]"` marker or an explicit null
31
- * placeholder. For form-encoded bodies, duplicate secret-shaped keys are also
32
- * rejected because last-wins maps cannot prove that every original value was
33
- * inspected before hashing.
26
+ * Use `{ prenormalized: true }` only when the payload has already been
27
+ * normalized/redacted exactly as the recorder would store it. The
28
+ * prenormalized path skips redaction, so the helper rejects secret-shaped keys
29
+ * whose values are not already the literal `"[redacted]"` marker or an
30
+ * explicit null placeholder. For form-encoded bodies, duplicate secret-shaped
31
+ * keys are also rejected because last-wins maps cannot prove that every
32
+ * original value was inspected before hashing.
34
33
  *
35
34
  * JSON content is serialized with RFC 8785 JCS before hashing. When
36
35
  * `contentType` is JSON-shaped and `payload` is a string, the helper parses
@@ -46,16 +45,6 @@ export declare function createUpstreamRecorder(options?: UpstreamRecorderOptions
46
45
  * `query_upstream_traffic` wire contract.
47
46
  */
48
47
  export declare function computePayloadDigestSha256(payload: unknown, contentType?: string, options?: PayloadDigestOptions): string;
49
- /**
50
- * @deprecated Pass `{ redactPattern: /.../ }` instead of the bare `RegExp`
51
- * form. The legacy form remains accepted for this major.
52
- */
53
- export declare function computePayloadDigestSha256(payload: unknown, contentType: string | undefined, options: RegExp): string;
54
- /**
55
- * @deprecated Pass `{ prenormalized: true }` instead of `false`. The legacy
56
- * form remains accepted for this major.
57
- */
58
- export declare function computePayloadDigestSha256(payload: unknown, contentType: string | undefined, options: false): string;
59
48
  export type PayloadDigestOptions = {
60
49
  /**
61
50
  * Custom redaction pattern. Passing `false` is accepted only with
@@ -1 +1 @@
1
- {"version":3,"file":"recorder.d.ts","sourceRoot":"","sources":["../../../src/lib/upstream-recorder/recorder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAcH,OAAO,EAEL,KAAK,4BAA4B,EAIjC,KAAK,gBAAgB,EAGrB,KAAK,uBAAuB,EAE5B,KAAK,2BAA2B,EACjC,MAAM,SAAS,CAAC;AAiBjB,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,KAAK,EAAE,OAAO,CAAC;gBAEH,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;CAK7C;AA6BD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,uBAA4B,GAAG,gBAAgB,CA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;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,OAAO,EAChB,WAAW,SAAqB,EAChC,OAAO,GAAE,oBAAyB,GACjC,MAAM,CA6BR;AAQD,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC/B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAqKF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,2BAA2B,GAAG,4BAA4B,CAQhH"}
@@ -26,12 +26,13 @@ __export(recorder_exports, {
26
26
  module.exports = __toCommonJS(recorder_exports);
27
27
  var import_node_async_hooks = require("node:async_hooks");
28
28
  var import_node_crypto = require("node:crypto");
29
+ var import_types = require("node:util/types");
29
30
  var import_redact_secrets = require('../utils/redact-secrets.js');
30
31
  var import_glob = require('../utils/glob.js');
31
32
  var import_jcs = require('../utils/jcs.js');
32
33
  var import_json_depth = require('../utils/json-depth.js');
33
34
  var import_constants = require('./constants.js');
34
- var import_types = require('./types.js');
35
+ var import_types2 = require('./types.js');
35
36
  const DEFAULT_BUFFER_SIZE = 1e3;
36
37
  const DEFAULT_TTL_MS = 60 * 60 * 1e3;
37
38
  const DEFAULT_QUERY_LIMIT = 100;
@@ -156,7 +157,7 @@ function createUpstreamRecorder(options = {}) {
156
157
  function runWithPrincipal(principal, fn) {
157
158
  if (!isPrincipalString(principal)) {
158
159
  return Promise.reject(
159
- new import_types.UpstreamRecorderScopeError(
160
+ new import_types2.UpstreamRecorderScopeError(
160
161
  "runWithPrincipal: principal MUST be a non-empty string. Pass the same identifier you receive in your comply_test_controller handler."
161
162
  )
162
163
  );
@@ -167,7 +168,7 @@ function createUpstreamRecorder(options = {}) {
167
168
  const principal = explicitPrincipal ?? principalStorage.getStore();
168
169
  if (!isPrincipalString(principal)) {
169
170
  if (strict) {
170
- throw new import_types.UpstreamRecorderScopeError(
171
+ throw new import_types2.UpstreamRecorderScopeError(
171
172
  `record() called outside runWithPrincipal scope (method=${input.method}, url=${input.url}). Wrap the call site or pass an explicit principal.`
172
173
  );
173
174
  }
@@ -185,7 +186,7 @@ function createUpstreamRecorder(options = {}) {
185
186
  const principal = principalStorage.getStore();
186
187
  if (!principal) {
187
188
  if (strict) {
188
- throw new import_types.UpstreamRecorderScopeError(
189
+ throw new import_types2.UpstreamRecorderScopeError(
189
190
  `wrapFetch invoked outside runWithPrincipal scope (input=${typeof input === "string" ? input : input instanceof URL ? input.toString() : input.url}). Wrap the call site.`
190
191
  );
191
192
  }
@@ -236,7 +237,7 @@ function createUpstreamRecorder(options = {}) {
236
237
  }
237
238
  function query(params) {
238
239
  if (!isPrincipalString(params.principal)) {
239
- throw new import_types.UpstreamRecorderScopeError(
240
+ throw new import_types2.UpstreamRecorderScopeError(
240
241
  "query({ principal }): principal MUST be a non-empty string. Cross-principal isolation depends on this \u2014 passing an empty / non-string value would silently match no entries and conceal misconfiguration."
241
242
  );
242
243
  }
@@ -414,12 +415,13 @@ function assertJsonDepth(root) {
414
415
  function sha256Hex(value) {
415
416
  return (0, import_node_crypto.createHash)("sha256").update(value, "utf8").digest("hex");
416
417
  }
417
- function computePayloadDigestSha256(payload, contentType = "application/json", options = import_redact_secrets.SECRET_KEY_PATTERN) {
418
- const redactPattern = options instanceof RegExp || options === false ? options === false ? false : (0, import_redact_secrets.normalizeSecretKeyPattern)(options) : options?.prenormalized ? false : options?.redactPattern === false ? false : (0, import_redact_secrets.normalizeSecretKeyPattern)(options?.redactPattern ?? import_redact_secrets.SECRET_KEY_PATTERN);
419
- const prenormalizedSafetyPattern = typeof options === "object" && options !== null && !(options instanceof RegExp) && options.redactPattern instanceof RegExp ? (0, import_redact_secrets.normalizeSecretKeyPattern)(options.redactPattern) : import_redact_secrets.SECRET_KEY_PATTERN;
420
- const maxPayloadBytes = typeof options === "object" && options !== null && !(options instanceof RegExp) ? clamp(options.maxPayloadBytes, 0, 16 * 1024 * 1024, DEFAULT_MAX_PAYLOAD_BYTES) : DEFAULT_MAX_PAYLOAD_BYTES;
418
+ function computePayloadDigestSha256(payload, contentType = "application/json", options = {}) {
421
419
  try {
422
- if (typeof options === "object" && options !== null && !(options instanceof RegExp) && options.redactPattern === false && options.prenormalized !== true) {
420
+ assertPayloadDigestOptions(options);
421
+ const redactPattern = options.prenormalized ? false : options.redactPattern === false ? false : (0, import_redact_secrets.normalizeSecretKeyPattern)(options.redactPattern ?? import_redact_secrets.SECRET_KEY_PATTERN);
422
+ const prenormalizedSafetyPattern = (0, import_types.isRegExp)(options.redactPattern) ? (0, import_redact_secrets.normalizeSecretKeyPattern)(options.redactPattern) : import_redact_secrets.SECRET_KEY_PATTERN;
423
+ const maxPayloadBytes = clamp(options.maxPayloadBytes, 0, 16 * 1024 * 1024, DEFAULT_MAX_PAYLOAD_BYTES);
424
+ if (options.redactPattern === false && options.prenormalized !== true) {
423
425
  throw new PayloadDigestError("PayloadDigestOptions.redactPattern=false requires prenormalized=true");
424
426
  }
425
427
  const payloadForDigest = redactPattern === false ? assertPrenormalizedPayloadSafe(payload, contentType, prenormalizedSafetyPattern) : normalizeRecordedPayload(
@@ -434,6 +436,11 @@ function computePayloadDigestSha256(payload, contentType = "application/json", o
434
436
  throw new PayloadDigestError(err instanceof Error ? err.message : "Payload digest canonicalization failed", err);
435
437
  }
436
438
  }
439
+ function assertPayloadDigestOptions(options) {
440
+ if (typeof options !== "object" || options === null || (0, import_types.isRegExp)(options) || Array.isArray(options)) {
441
+ throw new PayloadDigestError("computePayloadDigestSha256 options must be a PayloadDigestOptions object");
442
+ }
443
+ }
437
444
  function assertPrenormalizedPayloadSafe(payload, contentType, pattern) {
438
445
  let scanTarget = payload;
439
446
  if (typeof payload === "string" && isJsonContentType(contentType)) {