@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.
- package/dist/lib/adapters/roster-account-store.d.mts +9 -8
- package/dist/lib/adapters/roster-account-store.d.ts +9 -8
- package/dist/lib/adapters/roster-account-store.d.ts.map +1 -1
- package/dist/lib/adapters/roster-account-store.js +2 -1
- package/dist/lib/adapters/roster-account-store.js.map +1 -1
- package/dist/lib/adapters/roster-account-store.mjs +2 -1
- package/dist/lib/adapters/roster-account-store.mjs.map +1 -1
- package/dist/lib/net/address-guards.d.ts.map +1 -1
- package/dist/lib/net/address-guards.js +6 -0
- package/dist/lib/net/address-guards.js.map +1 -1
- package/dist/lib/net/address-guards.mjs +6 -0
- package/dist/lib/net/address-guards.mjs.map +1 -1
- package/dist/lib/net/ssrf-fetch.d.ts.map +1 -1
- package/dist/lib/net/ssrf-fetch.js +66 -53
- package/dist/lib/net/ssrf-fetch.js.map +1 -1
- package/dist/lib/net/ssrf-fetch.mjs +66 -53
- package/dist/lib/net/ssrf-fetch.mjs.map +1 -1
- package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
- package/dist/lib/server/account-mode.d.mts +2 -1
- package/dist/lib/server/account-mode.d.ts +2 -1
- package/dist/lib/server/account-mode.d.ts.map +1 -1
- package/dist/lib/server/account-mode.js +1 -0
- package/dist/lib/server/account-mode.js.map +1 -1
- package/dist/lib/server/account-mode.mjs +1 -0
- package/dist/lib/server/account-mode.mjs.map +1 -1
- package/dist/lib/server/create-adcp-server.d.mts +10 -6
- package/dist/lib/server/create-adcp-server.d.ts +10 -6
- package/dist/lib/server/create-adcp-server.d.ts.map +1 -1
- package/dist/lib/server/create-adcp-server.js +2 -1
- package/dist/lib/server/create-adcp-server.js.map +1 -1
- package/dist/lib/server/create-adcp-server.mjs +2 -1
- package/dist/lib/server/create-adcp-server.mjs.map +1 -1
- package/dist/lib/server/decisioning/account.d.mts +16 -11
- package/dist/lib/server/decisioning/account.d.ts +16 -11
- package/dist/lib/server/decisioning/account.d.ts.map +1 -1
- package/dist/lib/server/decisioning/account.js.map +1 -1
- package/dist/lib/server/decisioning/account.mjs.map +1 -1
- package/dist/lib/server/decisioning/pagination.d.mts +2 -0
- package/dist/lib/server/decisioning/pagination.d.ts +2 -0
- package/dist/lib/server/decisioning/pagination.d.ts.map +1 -1
- package/dist/lib/server/decisioning/pagination.js.map +1 -1
- package/dist/lib/server/decisioning/runtime/from-platform.d.mts +20 -14
- package/dist/lib/server/decisioning/runtime/from-platform.d.ts +20 -14
- package/dist/lib/server/decisioning/runtime/from-platform.d.ts.map +1 -1
- package/dist/lib/server/decisioning/runtime/from-platform.js +32 -6
- package/dist/lib/server/decisioning/runtime/from-platform.js.map +1 -1
- package/dist/lib/server/decisioning/runtime/from-platform.mjs +32 -6
- package/dist/lib/server/decisioning/runtime/from-platform.mjs.map +1 -1
- package/dist/lib/server/decisioning/specialisms/sales.d.mts +16 -4
- package/dist/lib/server/decisioning/specialisms/sales.d.ts +16 -4
- package/dist/lib/server/decisioning/specialisms/sales.d.ts.map +1 -1
- package/dist/lib/server/decisioning/specialisms/sales.js.map +1 -1
- package/dist/lib/server/index.d.ts.map +1 -1
- package/dist/lib/server/index.js.map +1 -1
- package/dist/lib/server/index.mjs.map +1 -1
- package/dist/lib/server/legacy/v5/index.d.mts +2 -1
- package/dist/lib/server/legacy/v5/index.d.ts +2 -1
- package/dist/lib/server/legacy/v5/index.d.ts.map +1 -1
- package/dist/lib/server/legacy/v5/index.js.map +1 -1
- package/dist/lib/server/legacy/v5/index.mjs.map +1 -1
- package/dist/lib/testing/compliance/comply.d.mts +2 -0
- package/dist/lib/testing/compliance/comply.d.ts +2 -0
- package/dist/lib/testing/compliance/comply.d.ts.map +1 -1
- package/dist/lib/testing/compliance/comply.js +45 -14
- package/dist/lib/testing/compliance/comply.js.map +1 -1
- package/dist/lib/testing/compliance/comply.mjs +45 -14
- package/dist/lib/testing/compliance/comply.mjs.map +1 -1
- package/dist/lib/testing/compliance/index.d.mts +1 -1
- package/dist/lib/testing/compliance/index.d.ts +1 -1
- package/dist/lib/testing/compliance/index.d.ts.map +1 -1
- package/dist/lib/testing/compliance/index.js.map +1 -1
- package/dist/lib/testing/compliance/index.mjs.map +1 -1
- package/dist/lib/testing/compliance/storyboard-tracks.d.ts.map +1 -1
- package/dist/lib/testing/compliance/storyboard-tracks.js +9 -1
- package/dist/lib/testing/compliance/storyboard-tracks.js.map +1 -1
- package/dist/lib/testing/compliance/storyboard-tracks.mjs +9 -1
- package/dist/lib/testing/compliance/storyboard-tracks.mjs.map +1 -1
- package/dist/lib/testing/compliance/types.d.mts +26 -25
- package/dist/lib/testing/compliance/types.d.ts +26 -25
- package/dist/lib/testing/compliance/types.d.ts.map +1 -1
- package/dist/lib/testing/compliance/types.js.map +1 -1
- package/dist/lib/testing/index.d.mts +2 -2
- package/dist/lib/testing/index.d.ts +2 -2
- package/dist/lib/testing/index.d.ts.map +1 -1
- package/dist/lib/testing/index.js +16 -0
- package/dist/lib/testing/index.js.map +1 -1
- package/dist/lib/testing/index.mjs +16 -0
- package/dist/lib/testing/index.mjs.map +1 -1
- package/dist/lib/testing/scenarios/media-buy.d.ts.map +1 -1
- package/dist/lib/testing/scenarios/media-buy.js +20 -12
- package/dist/lib/testing/scenarios/media-buy.js.map +1 -1
- package/dist/lib/testing/scenarios/media-buy.mjs +20 -12
- package/dist/lib/testing/scenarios/media-buy.mjs.map +1 -1
- package/dist/lib/testing/storyboard/creative-assets.d.mts +23 -0
- package/dist/lib/testing/storyboard/creative-assets.d.ts +23 -0
- package/dist/lib/testing/storyboard/creative-assets.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/creative-assets.js +322 -45
- package/dist/lib/testing/storyboard/creative-assets.js.map +1 -1
- package/dist/lib/testing/storyboard/creative-assets.mjs +321 -45
- package/dist/lib/testing/storyboard/creative-assets.mjs.map +1 -1
- package/dist/lib/testing/storyboard/index.d.mts +4 -1
- package/dist/lib/testing/storyboard/index.d.ts +4 -1
- package/dist/lib/testing/storyboard/index.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/index.js +20 -0
- package/dist/lib/testing/storyboard/index.js.map +1 -1
- package/dist/lib/testing/storyboard/index.mjs +19 -0
- package/dist/lib/testing/storyboard/index.mjs.map +1 -1
- package/dist/lib/testing/storyboard/oauth-metadata-graph/grader.d.mts +21 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/grader.d.ts +22 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/grader.d.ts.map +1 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/grader.js +668 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/grader.js.map +1 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/grader.mjs +638 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/grader.mjs.map +1 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/index.d.mts +5 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/index.d.ts +6 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/index.d.ts.map +1 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/index.js +44 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/index.js.map +1 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/index.mjs +20 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/index.mjs.map +1 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/types.d.mts +38 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/types.d.ts +39 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/types.d.ts.map +1 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/types.js +17 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/types.js.map +1 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/types.mjs +1 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/types.mjs.map +1 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/vector-loader.d.mts +32 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/vector-loader.d.ts +33 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/vector-loader.d.ts.map +1 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/vector-loader.js +105 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/vector-loader.js.map +1 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/vector-loader.mjs +80 -0
- package/dist/lib/testing/storyboard/oauth-metadata-graph/vector-loader.mjs.map +1 -0
- package/dist/lib/testing/storyboard/probes.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/probes.js +2 -1
- package/dist/lib/testing/storyboard/probes.js.map +1 -1
- package/dist/lib/testing/storyboard/probes.mjs +2 -1
- package/dist/lib/testing/storyboard/probes.mjs.map +1 -1
- package/dist/lib/testing/storyboard/runner.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/runner.js +382 -69
- package/dist/lib/testing/storyboard/runner.js.map +1 -1
- package/dist/lib/testing/storyboard/runner.mjs +387 -70
- package/dist/lib/testing/storyboard/runner.mjs.map +1 -1
- package/dist/lib/testing/storyboard/seeding.js +3 -1
- package/dist/lib/testing/storyboard/seeding.js.map +1 -1
- package/dist/lib/testing/storyboard/seeding.mjs +3 -1
- package/dist/lib/testing/storyboard/seeding.mjs.map +1 -1
- package/dist/lib/testing/storyboard/task-map.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/task-map.js +16 -2
- package/dist/lib/testing/storyboard/task-map.js.map +1 -1
- package/dist/lib/testing/storyboard/task-map.mjs +16 -2
- package/dist/lib/testing/storyboard/task-map.mjs.map +1 -1
- package/dist/lib/testing/storyboard/trusted-match-context-replay.d.mts +11 -0
- package/dist/lib/testing/storyboard/trusted-match-context-replay.d.ts +12 -0
- package/dist/lib/testing/storyboard/trusted-match-context-replay.d.ts.map +1 -0
- package/dist/lib/testing/storyboard/trusted-match-context-replay.js +340 -0
- package/dist/lib/testing/storyboard/trusted-match-context-replay.js.map +1 -0
- package/dist/lib/testing/storyboard/trusted-match-context-replay.mjs +316 -0
- package/dist/lib/testing/storyboard/trusted-match-context-replay.mjs.map +1 -0
- package/dist/lib/testing/storyboard/types.d.mts +84 -15
- package/dist/lib/testing/storyboard/types.d.ts +84 -15
- package/dist/lib/testing/storyboard/types.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/types.js +2 -0
- package/dist/lib/testing/storyboard/types.js.map +1 -1
- package/dist/lib/testing/storyboard/types.mjs +2 -0
- package/dist/lib/testing/storyboard/types.mjs.map +1 -1
- package/dist/lib/testing/storyboard/validations.d.mts +3 -0
- package/dist/lib/testing/storyboard/validations.d.ts +3 -0
- package/dist/lib/testing/storyboard/validations.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/validations.js +64 -24
- package/dist/lib/testing/storyboard/validations.js.map +1 -1
- package/dist/lib/testing/storyboard/validations.mjs +64 -24
- package/dist/lib/testing/storyboard/validations.mjs.map +1 -1
- package/dist/lib/types/server-payload-aliases.d.mts +8 -2
- package/dist/lib/types/server-payload-aliases.d.ts +8 -2
- package/dist/lib/types/server-payload-aliases.d.ts.map +1 -1
- package/dist/lib/types/server-payload-aliases.js.map +1 -1
- package/dist/lib/upstream-recorder/recorder.d.mts +7 -18
- package/dist/lib/upstream-recorder/recorder.d.ts +7 -18
- package/dist/lib/upstream-recorder/recorder.d.ts.map +1 -1
- package/dist/lib/upstream-recorder/recorder.js +17 -10
- package/dist/lib/upstream-recorder/recorder.js.map +1 -1
- package/dist/lib/upstream-recorder/recorder.mjs +12 -5
- package/dist/lib/upstream-recorder/recorder.mjs.map +1 -1
- package/dist/lib/utils/redact-secrets.d.ts.map +1 -1
- package/dist/lib/utils/redact-secrets.js +7 -1
- package/dist/lib/utils/redact-secrets.js.map +1 -1
- package/dist/lib/utils/redact-secrets.mjs +7 -1
- package/dist/lib/utils/redact-secrets.mjs.map +1 -1
- package/dist/lib/version.d.mts +3 -3
- package/dist/lib/version.d.ts +3 -3
- package/dist/lib/version.js +3 -3
- package/dist/lib/version.js.map +1 -1
- package/dist/lib/version.mjs +3 -3
- package/dist/lib/version.mjs.map +1 -1
- package/docs/guides/BUILD-AN-AGENT.md +4 -2
- package/docs/llms.txt +1 -1
- 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,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC3B,qBAAqB,EACrB,yBAAyB,EACzB,eAAe,EACf,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kB,GAAG,6BAA6B,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC,CAAC;AACnG,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,qBAAqB,CAAC,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,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,4BAA4B,EAC5B,8BAA8B,EAC9B,qBAAqB,EACrB,0BAA0B,EAC1B,+BAA+B,EAChC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,qBAAqB,EACrB,4BAA4B,EAC5B,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,uB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E,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
|
-
*
|
|
27
|
-
* normalized/redacted exactly as the recorder would store it
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
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
|
-
*
|
|
27
|
-
* normalized/redacted exactly as the recorder would store it
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
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;
|
|
1
|
+
{"version":3,"file":"recorder.d.ts","sourceRoot":"","sources":["../../../src/lib/upstream-recorder/recorder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAeH,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,CAkT9F;AAqJD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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
|
-
|
|
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)) {
|