@adcp/sdk 14.0.0-beta.27 → 14.0.0-beta.28

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 (55) hide show
  1. package/dist/lib/core/AgentClient.d.mts +5 -1
  2. package/dist/lib/core/AgentClient.d.ts +5 -1
  3. package/dist/lib/core/SingleAgentClient.js +2 -0
  4. package/dist/lib/core/SingleAgentClient.mjs +2 -0
  5. package/dist/lib/index.d.mts +1 -0
  6. package/dist/lib/index.d.ts +1 -0
  7. package/dist/lib/index.js +2 -0
  8. package/dist/lib/index.mjs +1 -0
  9. package/dist/lib/reporting/evidence.d.mts +4 -0
  10. package/dist/lib/reporting/evidence.d.ts +4 -0
  11. package/dist/lib/reporting/evidence.js +136 -0
  12. package/dist/lib/reporting/evidence.mjs +109 -0
  13. package/dist/lib/reporting/index.d.mts +4 -0
  14. package/dist/lib/reporting/index.d.ts +4 -0
  15. package/dist/lib/reporting/index.js +45 -0
  16. package/dist/lib/reporting/index.mjs +24 -0
  17. package/dist/lib/reporting/inspection.d.mts +88 -0
  18. package/dist/lib/reporting/inspection.d.ts +88 -0
  19. package/dist/lib/reporting/inspection.js +1125 -0
  20. package/dist/lib/reporting/inspection.mjs +1094 -0
  21. package/dist/lib/reporting/reconciliation.d.mts +199 -0
  22. package/dist/lib/reporting/reconciliation.d.ts +199 -0
  23. package/dist/lib/reporting/reconciliation.js +870 -0
  24. package/dist/lib/reporting/reconciliation.mjs +844 -0
  25. package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
  26. package/dist/lib/server/decisioning/runtime/protocol-for-tool.js +1 -0
  27. package/dist/lib/server/decisioning/runtime/protocol-for-tool.mjs +1 -0
  28. package/dist/lib/server/wire-spec-fields.generated.d.mts +11 -1
  29. package/dist/lib/server/wire-spec-fields.generated.d.ts +11 -1
  30. package/dist/lib/server/wire-spec-fields.generated.js +10 -0
  31. package/dist/lib/server/wire-spec-fields.generated.mjs +10 -0
  32. package/dist/lib/testing/storyboard/runner.js +13 -2
  33. package/dist/lib/testing/storyboard/runner.mjs +13 -2
  34. package/dist/lib/testing/storyboard/types.d.mts +8 -0
  35. package/dist/lib/testing/storyboard/types.d.ts +8 -0
  36. package/dist/lib/testing/storyboard/validations.d.mts +1 -1
  37. package/dist/lib/testing/storyboard/validations.d.ts +1 -1
  38. package/dist/lib/types/index.d.mts +1 -0
  39. package/dist/lib/types/index.d.ts +1 -0
  40. package/dist/lib/types/schemas.generated.js +29 -2
  41. package/dist/lib/types/schemas.generated.mjs +29 -2
  42. package/dist/lib/utils/reporting-status-response.d.mts +2 -0
  43. package/dist/lib/utils/reporting-status-response.d.ts +2 -0
  44. package/dist/lib/utils/reporting-status-response.js +338 -0
  45. package/dist/lib/utils/reporting-status-response.mjs +319 -0
  46. package/dist/lib/utils/response-schemas.js +6 -1
  47. package/dist/lib/utils/response-schemas.mjs +6 -1
  48. package/dist/lib/version.d.mts +3 -3
  49. package/dist/lib/version.d.ts +3 -3
  50. package/dist/lib/version.js +3 -3
  51. package/dist/lib/version.mjs +3 -3
  52. package/docs/TYPE-SUMMARY.md +1 -1
  53. package/docs/guides/REPORTING-RECONCILIATION.md +107 -0
  54. package/docs/llms.txt +1 -1
  55. package/package.json +1 -1
@@ -4,5 +4,5 @@
4
4
  "source_sha": "4e553ad955f83b49c7d221ab5c3ff78237ad02e3",
5
5
  "source_tarball_sha256": "580656d6466ef9f0d1119985e6726c2efea718dc671e2ad30957fcb2fd54af0f",
6
6
  "upstream_adcp_version": "2.5.3",
7
- "synced_at": "2026-09-02T01:57:36.898Z"
7
+ "synced_at": "2026-09-02T12:51:04.339Z"
8
8
  }
@@ -96,6 +96,7 @@ const TOOL_PROTOCOL_MAP = {
96
96
  get_account_financials: "media-buy",
97
97
  report_usage: "media-buy",
98
98
  provide_performance_feedback: "media-buy",
99
+ get_reporting_status: "media-buy",
99
100
  sync_reporting_receipts: "media-buy",
100
101
  get_media_buys: "media-buy"
101
102
  };
@@ -71,6 +71,7 @@ const TOOL_PROTOCOL_MAP = {
71
71
  get_account_financials: "media-buy",
72
72
  report_usage: "media-buy",
73
73
  provide_performance_feedback: "media-buy",
74
+ get_reporting_status: "media-buy",
74
75
  sync_reporting_receipts: "media-buy",
75
76
  get_media_buys: "media-buy"
76
77
  };
@@ -1,4 +1,4 @@
1
- import type { AcquireRightsRequest, ActivateSignalRequest, BuildCreativeRequest, CalibrateContentRequest, CreateCollectionListRequest, CreateContentStandardsRequest, CreateMediaBuyRequest, CreatePropertyListRequest, DeleteCollectionListRequest, DeletePropertyListRequest, GetMediaBuyDeliveryRequest, LogEventRequest, ProvidePerformanceFeedbackRequest, ReportPlanOutcomeRequest, ReportUsageRequest, SIInitiateSessionRequest, SISendMessageRequest, SyncAccountsRequest, SyncAudiencesRequest, SyncCatalogsRequest, SyncCreativesRequest, SyncEventSourcesRequest, SyncGovernanceRequest, SyncPlansRequest, UpdateCollectionListRequest, UpdateContentStandardsRequest, UpdateMediaBuyRequest, UpdatePropertyListRequest, UpdateRightsRequest } from '../types/index.mjs';
1
+ import type { AcquireRightsRequest, ActivateSignalRequest, BuildCreativeRequest, CalibrateContentRequest, CreateCollectionListRequest, CreateContentStandardsRequest, CreateMediaBuyRequest, CreatePropertyListRequest, DeleteCollectionListRequest, DeletePropertyListRequest, GetMediaBuyDeliveryRequest, GetReportingStatusRequest, LogEventRequest, ProvidePerformanceFeedbackRequest, ReportPlanOutcomeRequest, ReportUsageRequest, SIInitiateSessionRequest, SISendMessageRequest, SyncAccountsRequest, SyncAudiencesRequest, SyncCatalogsRequest, SyncCreativesRequest, SyncEventSourcesRequest, SyncGovernanceRequest, SyncPlansRequest, SyncReportingReceiptsRequest, UpdateCollectionListRequest, UpdateContentStandardsRequest, UpdateMediaBuyRequest, UpdatePropertyListRequest, UpdateRightsRequest } from '../types/index.mjs';
2
2
  /**
3
3
  * Wire-spec field allowlists per request type. The `fields` values
4
4
  * are exact top-level property names from the AdCP request JSON
@@ -73,6 +73,11 @@ export declare const WIRE_SPEC_FIELDS: Readonly<{
73
73
  fields: readonly string[];
74
74
  __type: GetMediaBuyDeliveryRequest;
75
75
  }>;
76
+ /** schemas/cache/3.2.0-beta.10/media-buy/get-reporting-status-request.json */
77
+ readonly GetReportingStatusRequest: Readonly<{
78
+ fields: readonly string[];
79
+ __type: GetReportingStatusRequest;
80
+ }>;
76
81
  /** schemas/cache/3.2.0-beta.10/media-buy/log-event-request.json */
77
82
  readonly LogEventRequest: Readonly<{
78
83
  fields: readonly string[];
@@ -138,6 +143,11 @@ export declare const WIRE_SPEC_FIELDS: Readonly<{
138
143
  fields: readonly string[];
139
144
  __type: SyncPlansRequest;
140
145
  }>;
146
+ /** schemas/cache/3.2.0-beta.10/media-buy/sync-reporting-receipts-request.json */
147
+ readonly SyncReportingReceiptsRequest: Readonly<{
148
+ fields: readonly string[];
149
+ __type: SyncReportingReceiptsRequest;
150
+ }>;
141
151
  /** schemas/cache/3.2.0-beta.10/collection/update-collection-list-request.json */
142
152
  readonly UpdateCollectionListRequest: Readonly<{
143
153
  fields: readonly string[];
@@ -1,4 +1,4 @@
1
- import type { AcquireRightsRequest, ActivateSignalRequest, BuildCreativeRequest, CalibrateContentRequest, CreateCollectionListRequest, CreateContentStandardsRequest, CreateMediaBuyRequest, CreatePropertyListRequest, DeleteCollectionListRequest, DeletePropertyListRequest, GetMediaBuyDeliveryRequest, LogEventRequest, ProvidePerformanceFeedbackRequest, ReportPlanOutcomeRequest, ReportUsageRequest, SIInitiateSessionRequest, SISendMessageRequest, SyncAccountsRequest, SyncAudiencesRequest, SyncCatalogsRequest, SyncCreativesRequest, SyncEventSourcesRequest, SyncGovernanceRequest, SyncPlansRequest, UpdateCollectionListRequest, UpdateContentStandardsRequest, UpdateMediaBuyRequest, UpdatePropertyListRequest, UpdateRightsRequest } from '../types';
1
+ import type { AcquireRightsRequest, ActivateSignalRequest, BuildCreativeRequest, CalibrateContentRequest, CreateCollectionListRequest, CreateContentStandardsRequest, CreateMediaBuyRequest, CreatePropertyListRequest, DeleteCollectionListRequest, DeletePropertyListRequest, GetMediaBuyDeliveryRequest, GetReportingStatusRequest, LogEventRequest, ProvidePerformanceFeedbackRequest, ReportPlanOutcomeRequest, ReportUsageRequest, SIInitiateSessionRequest, SISendMessageRequest, SyncAccountsRequest, SyncAudiencesRequest, SyncCatalogsRequest, SyncCreativesRequest, SyncEventSourcesRequest, SyncGovernanceRequest, SyncPlansRequest, SyncReportingReceiptsRequest, UpdateCollectionListRequest, UpdateContentStandardsRequest, UpdateMediaBuyRequest, UpdatePropertyListRequest, UpdateRightsRequest } from '../types';
2
2
  /**
3
3
  * Wire-spec field allowlists per request type. The `fields` values
4
4
  * are exact top-level property names from the AdCP request JSON
@@ -73,6 +73,11 @@ export declare const WIRE_SPEC_FIELDS: Readonly<{
73
73
  fields: readonly string[];
74
74
  __type: GetMediaBuyDeliveryRequest;
75
75
  }>;
76
+ /** schemas/cache/3.2.0-beta.10/media-buy/get-reporting-status-request.json */
77
+ readonly GetReportingStatusRequest: Readonly<{
78
+ fields: readonly string[];
79
+ __type: GetReportingStatusRequest;
80
+ }>;
76
81
  /** schemas/cache/3.2.0-beta.10/media-buy/log-event-request.json */
77
82
  readonly LogEventRequest: Readonly<{
78
83
  fields: readonly string[];
@@ -138,6 +143,11 @@ export declare const WIRE_SPEC_FIELDS: Readonly<{
138
143
  fields: readonly string[];
139
144
  __type: SyncPlansRequest;
140
145
  }>;
146
+ /** schemas/cache/3.2.0-beta.10/media-buy/sync-reporting-receipts-request.json */
147
+ readonly SyncReportingReceiptsRequest: Readonly<{
148
+ fields: readonly string[];
149
+ __type: SyncReportingReceiptsRequest;
150
+ }>;
141
151
  /** schemas/cache/3.2.0-beta.10/collection/update-collection-list-request.json */
142
152
  readonly UpdateCollectionListRequest: Readonly<{
143
153
  fields: readonly string[];
@@ -77,6 +77,11 @@ const WIRE_SPEC_FIELDS = Object.freeze({
77
77
  fields: Object.freeze(["account", "adcp_major_version", "adcp_version", "attribution_window", "context", "end_date", "ext", "include_package_daily_breakdown", "include_window_breakdown", "media_buy_ids", "reporting_dimensions", "requested_metrics", "start_date", "status_filter", "time_granularity"]),
78
78
  __type: null
79
79
  }),
80
+ /** schemas/cache/3.2.0-beta.10/media-buy/get-reporting-status-request.json */
81
+ GetReportingStatusRequest: Object.freeze({
82
+ fields: Object.freeze(["account", "adcp_major_version", "adcp_version", "context", "delivery_config_ids", "ext", "feed_purposes", "finality", "health", "media_buy_ids", "pagination", "period", "reporting_revision_id", "view"]),
83
+ __type: null
84
+ }),
80
85
  /** schemas/cache/3.2.0-beta.10/media-buy/log-event-request.json */
81
86
  LogEventRequest: Object.freeze({
82
87
  fields: Object.freeze(["adcp_major_version", "adcp_version", "context", "event_source_id", "events", "ext", "idempotency_key", "test_event_code"]),
@@ -142,6 +147,11 @@ const WIRE_SPEC_FIELDS = Object.freeze({
142
147
  fields: Object.freeze(["adcp_major_version", "adcp_version", "context", "ext", "idempotency_key", "plans"]),
143
148
  __type: null
144
149
  }),
150
+ /** schemas/cache/3.2.0-beta.10/media-buy/sync-reporting-receipts-request.json */
151
+ SyncReportingReceiptsRequest: Object.freeze({
152
+ fields: Object.freeze(["account", "adcp_major_version", "adcp_version", "context", "ext", "idempotency_key", "receipts"]),
153
+ __type: null
154
+ }),
145
155
  /** schemas/cache/3.2.0-beta.10/collection/update-collection-list-request.json */
146
156
  UpdateCollectionListRequest: Object.freeze({
147
157
  fields: Object.freeze(["account", "adcp_major_version", "adcp_version", "base_collections", "brand", "context", "description", "ext", "filters", "idempotency_key", "list_id", "name", "webhook_url"]),
@@ -54,6 +54,11 @@ const WIRE_SPEC_FIELDS = Object.freeze({
54
54
  fields: Object.freeze(["account", "adcp_major_version", "adcp_version", "attribution_window", "context", "end_date", "ext", "include_package_daily_breakdown", "include_window_breakdown", "media_buy_ids", "reporting_dimensions", "requested_metrics", "start_date", "status_filter", "time_granularity"]),
55
55
  __type: null
56
56
  }),
57
+ /** schemas/cache/3.2.0-beta.10/media-buy/get-reporting-status-request.json */
58
+ GetReportingStatusRequest: Object.freeze({
59
+ fields: Object.freeze(["account", "adcp_major_version", "adcp_version", "context", "delivery_config_ids", "ext", "feed_purposes", "finality", "health", "media_buy_ids", "pagination", "period", "reporting_revision_id", "view"]),
60
+ __type: null
61
+ }),
57
62
  /** schemas/cache/3.2.0-beta.10/media-buy/log-event-request.json */
58
63
  LogEventRequest: Object.freeze({
59
64
  fields: Object.freeze(["adcp_major_version", "adcp_version", "context", "event_source_id", "events", "ext", "idempotency_key", "test_event_code"]),
@@ -119,6 +124,11 @@ const WIRE_SPEC_FIELDS = Object.freeze({
119
124
  fields: Object.freeze(["adcp_major_version", "adcp_version", "context", "ext", "idempotency_key", "plans"]),
120
125
  __type: null
121
126
  }),
127
+ /** schemas/cache/3.2.0-beta.10/media-buy/sync-reporting-receipts-request.json */
128
+ SyncReportingReceiptsRequest: Object.freeze({
129
+ fields: Object.freeze(["account", "adcp_major_version", "adcp_version", "context", "ext", "idempotency_key", "receipts"]),
130
+ __type: null
131
+ }),
122
132
  /** schemas/cache/3.2.0-beta.10/collection/update-collection-list-request.json */
123
133
  UpdateCollectionListRequest: Object.freeze({
124
134
  fields: Object.freeze(["account", "adcp_major_version", "adcp_version", "base_collections", "brand", "context", "description", "ext", "filters", "idempotency_key", "list_id", "name", "webhook_url"]),
@@ -3281,8 +3281,19 @@ async function executeStep(client, step, storyboardId, phaseId, context, allStep
3281
3281
  ...inputSchemaStripNotices.length > 0 && { notices: inputSchemaStripNotices }
3282
3282
  };
3283
3283
  }
3284
- if (step.expect_error && !taskResult?.data && taskResult?.error) {
3285
- taskResult = { ...taskResult, data: { error: taskResult.error } };
3284
+ const unstructuredStepError = taskResult?.error ?? (taskResult === void 0 ? stepResult.error : void 0);
3285
+ if (step.expect_error && !taskResult?.data && unstructuredStepError) {
3286
+ const localSchemaRejection = step.negative_path === "schema_invalid" && /^(?:Request validation failed for\b|Validation failed for field\b)/.test(unstructuredStepError);
3287
+ if (taskResult || localSchemaRejection) {
3288
+ taskResult = {
3289
+ ...taskResult ?? { success: false },
3290
+ error: unstructuredStepError,
3291
+ data: localSchemaRejection ? {
3292
+ errors: [{ code: "INVALID_REQUEST", message: unstructuredStepError }],
3293
+ synthetic: true
3294
+ } : { error: unstructuredStepError }
3295
+ };
3296
+ }
3286
3297
  }
3287
3298
  const responseDerivedSkip = detectResponseDerivedNotApplicable(
3288
3299
  effectiveStep,
@@ -3298,8 +3298,19 @@ async function executeStep(client, step, storyboardId, phaseId, context, allStep
3298
3298
  ...inputSchemaStripNotices.length > 0 && { notices: inputSchemaStripNotices }
3299
3299
  };
3300
3300
  }
3301
- if (step.expect_error && !taskResult?.data && taskResult?.error) {
3302
- taskResult = { ...taskResult, data: { error: taskResult.error } };
3301
+ const unstructuredStepError = taskResult?.error ?? (taskResult === void 0 ? stepResult.error : void 0);
3302
+ if (step.expect_error && !taskResult?.data && unstructuredStepError) {
3303
+ const localSchemaRejection = step.negative_path === "schema_invalid" && /^(?:Request validation failed for\b|Validation failed for field\b)/.test(unstructuredStepError);
3304
+ if (taskResult || localSchemaRejection) {
3305
+ taskResult = {
3306
+ ...taskResult ?? { success: false },
3307
+ error: unstructuredStepError,
3308
+ data: localSchemaRejection ? {
3309
+ errors: [{ code: "INVALID_REQUEST", message: unstructuredStepError }],
3310
+ synthetic: true
3311
+ } : { error: unstructuredStepError }
3312
+ };
3313
+ }
3303
3314
  }
3304
3315
  const responseDerivedSkip = detectResponseDerivedNotApplicable(
3305
3316
  effectiveStep,
@@ -730,6 +730,14 @@ export interface StoryboardStep {
730
730
  peer_substitutes_for?: string | string[];
731
731
  /** When true, the step passes if the task returns an error */
732
732
  expect_error?: boolean;
733
+ /**
734
+ * Classifies an expected rejection as either an intentionally malformed
735
+ * request (`schema_invalid`) or a schema-valid request rejected by seller
736
+ * policy/state (`payload_well_formed`). The distinction lets the runner
737
+ * treat an SDK-local request-schema rejection as `INVALID_REQUEST` without
738
+ * masking seller-side validation on well-formed negative paths.
739
+ */
740
+ negative_path?: 'schema_invalid' | 'payload_well_formed';
733
741
  /**
734
742
  * Per-step invariant opt-out. See `StepInvariantsObject`. Use when a
735
743
  * specific step deliberately trips a default invariant (e.g. a
@@ -730,6 +730,14 @@ export interface StoryboardStep {
730
730
  peer_substitutes_for?: string | string[];
731
731
  /** When true, the step passes if the task returns an error */
732
732
  expect_error?: boolean;
733
+ /**
734
+ * Classifies an expected rejection as either an intentionally malformed
735
+ * request (`schema_invalid`) or a schema-valid request rejected by seller
736
+ * policy/state (`payload_well_formed`). The distinction lets the runner
737
+ * treat an SDK-local request-schema rejection as `INVALID_REQUEST` without
738
+ * masking seller-side validation on well-formed negative paths.
739
+ */
740
+ negative_path?: 'schema_invalid' | 'payload_well_formed';
733
741
  /**
734
742
  * Per-step invariant opt-out. See `StepInvariantsObject`. Use when a
735
743
  * specific step deliberately trips a default invariant (e.g. a
@@ -197,7 +197,7 @@ export interface UpstreamTrafficQueryResult {
197
197
  */
198
198
  export declare function runValidations(validations: StoryboardValidation[], context: ValidationContext): ValidationResult[];
199
199
  /** Capability semver emitted in run summaries and used for advisory expiry. */
200
- export declare const RUNNER_CAPABILITY_VERSION = "14.0.0-beta.27";
200
+ export declare const RUNNER_CAPABILITY_VERSION = "14.0.0-beta.28";
201
201
  /** True when a failed validation contributes to the owning step's grade. */
202
202
  export declare function validationFailsStep(result: ValidationResult): boolean;
203
203
  /**
@@ -197,7 +197,7 @@ export interface UpstreamTrafficQueryResult {
197
197
  */
198
198
  export declare function runValidations(validations: StoryboardValidation[], context: ValidationContext): ValidationResult[];
199
199
  /** Capability semver emitted in run summaries and used for advisory expiry. */
200
- export declare const RUNNER_CAPABILITY_VERSION = "14.0.0-beta.27";
200
+ export declare const RUNNER_CAPABILITY_VERSION = "14.0.0-beta.28";
201
201
  /** True when a failed validation contributes to the owning step's grade. */
202
202
  export declare function validationFailsStep(result: ValidationResult): boolean;
203
203
  /**
@@ -14,6 +14,7 @@ export * from './server-payload-aliases.mjs';
14
14
  */
15
15
  export type FormatID = FormatReferenceStructuredObject;
16
16
  export type { AccountReference, AccountChange, ListAccountChangesRequest, ListAccountChangesResponse, ListAccountsRequest, ListAccountsResponse, SyncAccountsRequest, SyncAccountsResponse, SyncAccountsSuccess, SyncAccountsError, GetAccountFinancialsRequest, GetAccountFinancialsResponse, GetAccountFinancialsSuccess, GetAccountFinancialsError, } from './tools.generated.mjs';
17
+ export type { GetReportingStatusRequest, GetReportingStatusResponse, SyncReportingReceiptsRequest, SyncReportingReceiptsResponse, ReportingCanonicalContentDigest, ReportingControlTotal, ReportingMaterialization, ReportingObligation, ReportingReceipt, ReportingRevision, } from './tools.generated.mjs';
17
18
  export type { AdCPSpecialism, GetAdCPCapabilitiesRequest, GetAdCPCapabilitiesResponse } from './tools.generated.mjs';
18
19
  export type { GetProductsRequest, GetProductsResponse, GetProductsAsyncSubmitted, CreateMediaBuyRequest, CreateMediaBuyResponse, CreateMediaBuySuccess, CreateMediaBuyError, CreateMediaBuySubmitted, CreateMediaBuyAsyncSubmitted, UpdateMediaBuyRequest, UpdateMediaBuyResponse, UpdateMediaBuySuccess, UpdateMediaBuyError, UpdateMediaBuyAsyncSubmitted, GetMediaBuysRequest, GetMediaBuysResponse, GetMediaBuyDeliveryRequest, GetMediaBuyDeliveryResponse, GetMediaBuyArtifactsRequest, GetMediaBuyArtifactsResponse, ProvidePerformanceFeedbackRequest, ProvidePerformanceFeedbackResponse, ProvidePerformanceFeedbackSuccess, ProvidePerformanceFeedbackError, SyncPlansRequest, SyncPlansResponse, ReportUsageRequest, ReportUsageResponse, ReportPlanOutcomeRequest, ReportPlanOutcomeResponse, GetPlanAuditLogsRequest, GetPlanAuditLogsResponse, } from './tools.generated.mjs';
19
20
  export type { ListProductsRequest, ListProductsResponse, RequestProposalsRequest, RefineProposalsRequest, RefineProposalsResponse, DeclineProposalsRequest, DeclineProposalsResponse, BuyProductsRequest, BuyProductsResponse, AcceptProposalRequest, AcceptProposalResponse, ControlMediaBuyRequest, ControlMediaBuyResponse, } from './tools.generated.mjs';
@@ -14,6 +14,7 @@ export * from './server-payload-aliases';
14
14
  */
15
15
  export type FormatID = FormatReferenceStructuredObject;
16
16
  export type { AccountReference, AccountChange, ListAccountChangesRequest, ListAccountChangesResponse, ListAccountsRequest, ListAccountsResponse, SyncAccountsRequest, SyncAccountsResponse, SyncAccountsSuccess, SyncAccountsError, GetAccountFinancialsRequest, GetAccountFinancialsResponse, GetAccountFinancialsSuccess, GetAccountFinancialsError, } from './tools.generated';
17
+ export type { GetReportingStatusRequest, GetReportingStatusResponse, SyncReportingReceiptsRequest, SyncReportingReceiptsResponse, ReportingCanonicalContentDigest, ReportingControlTotal, ReportingMaterialization, ReportingObligation, ReportingReceipt, ReportingRevision, } from './tools.generated';
17
18
  export type { AdCPSpecialism, GetAdCPCapabilitiesRequest, GetAdCPCapabilitiesResponse } from './tools.generated';
18
19
  export type { GetProductsRequest, GetProductsResponse, GetProductsAsyncSubmitted, CreateMediaBuyRequest, CreateMediaBuyResponse, CreateMediaBuySuccess, CreateMediaBuyError, CreateMediaBuySubmitted, CreateMediaBuyAsyncSubmitted, UpdateMediaBuyRequest, UpdateMediaBuyResponse, UpdateMediaBuySuccess, UpdateMediaBuyError, UpdateMediaBuyAsyncSubmitted, GetMediaBuysRequest, GetMediaBuysResponse, GetMediaBuyDeliveryRequest, GetMediaBuyDeliveryResponse, GetMediaBuyArtifactsRequest, GetMediaBuyArtifactsResponse, ProvidePerformanceFeedbackRequest, ProvidePerformanceFeedbackResponse, ProvidePerformanceFeedbackSuccess, ProvidePerformanceFeedbackError, SyncPlansRequest, SyncPlansResponse, ReportUsageRequest, ReportUsageResponse, ReportPlanOutcomeRequest, ReportPlanOutcomeResponse, GetPlanAuditLogsRequest, GetPlanAuditLogsResponse, } from './tools.generated';
19
20
  export type { ListProductsRequest, ListProductsResponse, RequestProposalsRequest, RefineProposalsRequest, RefineProposalsResponse, DeclineProposalsRequest, DeclineProposalsResponse, BuyProductsRequest, BuyProductsResponse, AcceptProposalRequest, AcceptProposalResponse, ControlMediaBuyRequest, ControlMediaBuyResponse, } from './tools.generated';
@@ -2835,13 +2835,40 @@ const CanonicalFormatVASTAudioSchema = import_zod.z.object({
2835
2835
  vast_versions: import_zod.z.array(VASTVersionSchema).optional(),
2836
2836
  vast_version: VASTVersionSchema.optional(),
2837
2837
  media_file_requirements: VASTMediaFileRequirementsSchema.optional(),
2838
- duration_ms_range: import_zod.z.array(import_zod.z.number()).optional(),
2838
+ duration_ms_range: import_zod.z.array(import_zod.z.number().int().min(0)).length(2).optional(),
2839
2839
  duration_ms_exact: import_zod.z.int().min(1).optional(),
2840
2840
  skippable_after_ms: import_zod.z.int().min(0).optional(),
2841
2841
  max_wrapper_depth: import_zod.z.int().min(0).optional(),
2842
2842
  ssl_required: import_zod.z.boolean().optional(),
2843
2843
  companion_image_required: import_zod.z.boolean().optional()
2844
- }).passthrough();
2844
+ }).passthrough().superRefine((value, ctx) => {
2845
+ if (value.vast_version !== void 0 && value.vast_versions !== void 0) {
2846
+ ctx.addIssue({
2847
+ code: "custom",
2848
+ path: [],
2849
+ message: "audio VAST declarations cannot combine vast_version and vast_versions"
2850
+ });
2851
+ }
2852
+ const requirements = value.media_file_requirements;
2853
+ requirements?.mime_types?.forEach((mimeType, index) => {
2854
+ if (!/^audio\//i.test(mimeType)) {
2855
+ ctx.addIssue({
2856
+ code: "custom",
2857
+ path: ["media_file_requirements", "mime_types", index],
2858
+ message: "audio VAST media MIME types must use the audio/* family"
2859
+ });
2860
+ }
2861
+ });
2862
+ for (const dimension of ["min_width", "max_width", "min_height", "max_height"]) {
2863
+ if (requirements?.[dimension] !== void 0) {
2864
+ ctx.addIssue({
2865
+ code: "custom",
2866
+ path: ["media_file_requirements", dimension],
2867
+ message: "audio VAST media requirements cannot declare visual dimensions"
2868
+ });
2869
+ }
2870
+ }
2871
+ });
2845
2872
  const CanonicalFormatDAASTAudioSchema = import_zod.z.object({
2846
2873
  experimental: import_zod.z.boolean().optional(),
2847
2874
  deprecated: import_zod.z.boolean().optional(),
@@ -1440,13 +1440,40 @@ const CanonicalFormatVASTAudioSchema = z.object({
1440
1440
  vast_versions: z.array(VASTVersionSchema).optional(),
1441
1441
  vast_version: VASTVersionSchema.optional(),
1442
1442
  media_file_requirements: VASTMediaFileRequirementsSchema.optional(),
1443
- duration_ms_range: z.array(z.number()).optional(),
1443
+ duration_ms_range: z.array(z.number().int().min(0)).length(2).optional(),
1444
1444
  duration_ms_exact: z.int().min(1).optional(),
1445
1445
  skippable_after_ms: z.int().min(0).optional(),
1446
1446
  max_wrapper_depth: z.int().min(0).optional(),
1447
1447
  ssl_required: z.boolean().optional(),
1448
1448
  companion_image_required: z.boolean().optional()
1449
- }).passthrough();
1449
+ }).passthrough().superRefine((value, ctx) => {
1450
+ if (value.vast_version !== void 0 && value.vast_versions !== void 0) {
1451
+ ctx.addIssue({
1452
+ code: "custom",
1453
+ path: [],
1454
+ message: "audio VAST declarations cannot combine vast_version and vast_versions"
1455
+ });
1456
+ }
1457
+ const requirements = value.media_file_requirements;
1458
+ requirements?.mime_types?.forEach((mimeType, index) => {
1459
+ if (!/^audio\//i.test(mimeType)) {
1460
+ ctx.addIssue({
1461
+ code: "custom",
1462
+ path: ["media_file_requirements", "mime_types", index],
1463
+ message: "audio VAST media MIME types must use the audio/* family"
1464
+ });
1465
+ }
1466
+ });
1467
+ for (const dimension of ["min_width", "max_width", "min_height", "max_height"]) {
1468
+ if (requirements?.[dimension] !== void 0) {
1469
+ ctx.addIssue({
1470
+ code: "custom",
1471
+ path: ["media_file_requirements", dimension],
1472
+ message: "audio VAST media requirements cannot declare visual dimensions"
1473
+ });
1474
+ }
1475
+ }
1476
+ });
1450
1477
  const CanonicalFormatDAASTAudioSchema = z.object({
1451
1478
  experimental: z.boolean().optional(),
1452
1479
  deprecated: z.boolean().optional(),
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export declare const GetReportingStatusResponseCurrentSchema: z.ZodType;
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export declare const GetReportingStatusResponseCurrentSchema: z.ZodType;