@adcp/sdk 17.0.0-beta.19 → 17.0.0-beta.20
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/README.md +1 -1
- package/dist/lib/registry/index.d.mts +6 -0
- package/dist/lib/registry/index.d.ts +6 -0
- package/dist/lib/registry/index.js +10 -4
- package/dist/lib/registry/index.mjs +10 -4
- package/dist/lib/reporting/ledger/status-ingest.d.mts +1 -1
- package/dist/lib/reporting/ledger/status-ingest.d.ts +1 -1
- package/dist/lib/schemas/browser.d.mts +2 -0
- package/dist/lib/schemas/browser.d.ts +2 -0
- package/dist/lib/schemas/index.d.mts +2 -0
- package/dist/lib/schemas/index.d.ts +2 -0
- package/dist/lib/testing/storyboard/validations.d.mts +1 -1
- package/dist/lib/testing/storyboard/validations.d.ts +1 -1
- package/dist/lib/v2/projection/creative-delivery.d.mts +2 -6
- package/dist/lib/v2/projection/creative-delivery.d.ts +2 -6
- package/dist/lib/v2/projection/types.d.mts +12 -1
- package/dist/lib/v2/projection/types.d.ts +12 -1
- package/dist/lib/validation/get-products-request.d.mts +3 -111
- package/dist/lib/validation/get-products-request.d.ts +3 -111
- package/dist/lib/validation/nonempty-array.d.mts +1 -15
- package/dist/lib/validation/sync-creatives.d.mts +24 -1124
- package/dist/lib/validation/sync-creatives.d.ts +24 -1124
- 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.mjs +3 -3
- package/docs/TYPE-SUMMARY.md +2 -2
- package/docs/ZOD-SCHEMAS.md +2 -2
- package/docs/guides/MEDIA-BUY-ACTION-ASSESSMENT.md +2 -1
- package/docs/llms.txt +2 -2
- package/docs/migration-14.x-rc-worksheet.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
const health = EventSourceHealthSchema.parse(rawHealth);
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
The browser entry also exports `GetProductsRequestSchema` and `LegacyGetProductsRequestSchema`, `BiddingPolicySchema`, `CanonicalBudgetAllocationSchema`, and the strict `SyncCreatives*` validators, with the same validation behavior as the Node entry. It has no Node built-ins in its import graph. JSON Schema loading and tool registration helpers remain available from `@adcp/sdk/schemas`. The generated schemas still initialize together, so importing one schema can retain the full generated module in a browser bundle; per-schema tree-shaking is tracked in [#3178](https://github.com/adcontextprotocol/adcp-client/issues/3178).
|
|
82
|
+
The browser entry also exports `GetProductsRequestSchema` and `LegacyGetProductsRequestSchema`, `BiddingPolicySchema`, `CanonicalBudgetAllocationSchema`, and the strict `SyncCreatives*` validators, with the same validation behavior as the Node entry. It has no Node built-ins in its import graph (runtime or type declarations). JSON Schema loading and tool registration helpers remain available from `@adcp/sdk/schemas`. The generated schemas still initialize together, so importing one schema can retain the full generated module in a browser bundle; per-schema tree-shaking is tracked in [#3178](https://github.com/adcontextprotocol/adcp-client/issues/3178).
|
|
83
83
|
|
|
84
84
|
### Focused client runtime (`@adcp/sdk/client/core`)
|
|
85
85
|
|
|
@@ -514,6 +514,12 @@ export declare class RegistryClient {
|
|
|
514
514
|
private withSources;
|
|
515
515
|
private preview;
|
|
516
516
|
private requestError;
|
|
517
|
+
/**
|
|
518
|
+
* Serialize every option as a query parameter, so a filter the generated
|
|
519
|
+
* options type gains (such as `listBrands`' `house_domain`) reaches the
|
|
520
|
+
* registry instead of being dropped. Empty strings and nullish values are
|
|
521
|
+
* left out.
|
|
522
|
+
*/
|
|
517
523
|
private buildParams;
|
|
518
524
|
private setTrueParam;
|
|
519
525
|
private appendParamValues;
|
|
@@ -514,6 +514,12 @@ export declare class RegistryClient {
|
|
|
514
514
|
private withSources;
|
|
515
515
|
private preview;
|
|
516
516
|
private requestError;
|
|
517
|
+
/**
|
|
518
|
+
* Serialize every option as a query parameter, so a filter the generated
|
|
519
|
+
* options type gains (such as `listBrands`' `house_domain`) reaches the
|
|
520
|
+
* registry instead of being dropped. Empty strings and nullish values are
|
|
521
|
+
* left out.
|
|
522
|
+
*/
|
|
517
523
|
private buildParams;
|
|
518
524
|
private setTrueParam;
|
|
519
525
|
private appendParamValues;
|
|
@@ -1353,13 +1353,19 @@ class RegistryClient {
|
|
|
1353
1353
|
...cause !== void 0 ? { cause } : {}
|
|
1354
1354
|
});
|
|
1355
1355
|
}
|
|
1356
|
+
/**
|
|
1357
|
+
* Serialize every option as a query parameter, so a filter the generated
|
|
1358
|
+
* options type gains (such as `listBrands`' `house_domain`) reaches the
|
|
1359
|
+
* registry instead of being dropped. Empty strings and nullish values are
|
|
1360
|
+
* left out.
|
|
1361
|
+
*/
|
|
1356
1362
|
buildParams(options) {
|
|
1357
1363
|
if (!options) return "";
|
|
1358
1364
|
const params = new URLSearchParams();
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1365
|
+
for (const [key, value] of Object.entries(options)) {
|
|
1366
|
+
if (value == null || value === "") continue;
|
|
1367
|
+
params.set(key, String(value));
|
|
1368
|
+
}
|
|
1363
1369
|
const qs = params.toString();
|
|
1364
1370
|
return qs ? "?" + qs : "";
|
|
1365
1371
|
}
|
|
@@ -1323,13 +1323,19 @@ class RegistryClient {
|
|
|
1323
1323
|
...cause !== void 0 ? { cause } : {}
|
|
1324
1324
|
});
|
|
1325
1325
|
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Serialize every option as a query parameter, so a filter the generated
|
|
1328
|
+
* options type gains (such as `listBrands`' `house_domain`) reaches the
|
|
1329
|
+
* registry instead of being dropped. Empty strings and nullish values are
|
|
1330
|
+
* left out.
|
|
1331
|
+
*/
|
|
1326
1332
|
buildParams(options) {
|
|
1327
1333
|
if (!options) return "";
|
|
1328
1334
|
const params = new URLSearchParams();
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1335
|
+
for (const [key, value] of Object.entries(options)) {
|
|
1336
|
+
if (value == null || value === "") continue;
|
|
1337
|
+
params.set(key, String(value));
|
|
1338
|
+
}
|
|
1333
1339
|
const qs = params.toString();
|
|
1334
1340
|
return qs ? "?" + qs : "";
|
|
1335
1341
|
}
|
|
@@ -204,7 +204,7 @@ export declare const SyncReportingStatusRequestV1Schema: z.ZodObject<{
|
|
|
204
204
|
brand: z.ZodObject<{
|
|
205
205
|
domain: z.ZodString;
|
|
206
206
|
brand_id: z.ZodOptional<z.ZodString>;
|
|
207
|
-
countries: z.ZodOptional<import("../../
|
|
207
|
+
countries: z.ZodOptional<import("../../schemas/index.mjs").NonemptyArraySchema<z.ZodString>>;
|
|
208
208
|
}, z.core.$loose>;
|
|
209
209
|
operator: z.ZodString;
|
|
210
210
|
operator_unit: z.ZodOptional<z.ZodObject<{
|
|
@@ -204,7 +204,7 @@ export declare const SyncReportingStatusRequestV1Schema: z.ZodObject<{
|
|
|
204
204
|
brand: z.ZodObject<{
|
|
205
205
|
domain: z.ZodString;
|
|
206
206
|
brand_id: z.ZodOptional<z.ZodString>;
|
|
207
|
-
countries: z.ZodOptional<import("../../
|
|
207
|
+
countries: z.ZodOptional<import("../../schemas").NonemptyArraySchema<z.ZodString>>;
|
|
208
208
|
}, z.core.$loose>;
|
|
209
209
|
operator: z.ZodString;
|
|
210
210
|
operator_unit: z.ZodOptional<z.ZodObject<{
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
export * from '../types/schemas.generated.mjs';
|
|
9
9
|
export { GetProductsRequestSchema, LegacyGetProductsRequestSchema } from '../validation/get-products-request.mjs';
|
|
10
10
|
export type { LooseObjectSchemaFor } from '../validation/get-products-request.mjs';
|
|
11
|
+
export type { CanonicalGetProductsRequest } from '../v2/projection/types.mjs';
|
|
12
|
+
export type { NonemptyArraySchema } from '../validation/nonempty-array.mjs';
|
|
11
13
|
export { BiddingPolicySchema } from '../validation/bidding-policy.mjs';
|
|
12
14
|
export { CanonicalBudgetAllocationSchema } from '../validation/budget-allocation.mjs';
|
|
13
15
|
export { SyncCreativesItemSchema, SyncCreativesSuccessStrictSchema, SyncCreativesResponseStrictSchema, SyncCreativesActionSchema, } from '../validation/sync-creatives.mjs';
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
export * from '../types/schemas.generated';
|
|
9
9
|
export { GetProductsRequestSchema, LegacyGetProductsRequestSchema } from '../validation/get-products-request';
|
|
10
10
|
export type { LooseObjectSchemaFor } from '../validation/get-products-request';
|
|
11
|
+
export type { CanonicalGetProductsRequest } from '../v2/projection/types';
|
|
12
|
+
export type { NonemptyArraySchema } from '../validation/nonempty-array';
|
|
11
13
|
export { BiddingPolicySchema } from '../validation/bidding-policy';
|
|
12
14
|
export { CanonicalBudgetAllocationSchema } from '../validation/budget-allocation';
|
|
13
15
|
export { SyncCreativesItemSchema, SyncCreativesSuccessStrictSchema, SyncCreativesResponseStrictSchema, SyncCreativesActionSchema, } from '../validation/sync-creatives';
|
|
@@ -50,6 +50,8 @@ export type { AgentOAuthClientCredentials } from '../types/adcp.mjs';
|
|
|
50
50
|
export type { AssetVariant, PlacementPresentationDocument, PlacementPresentationReference, } from '../types/core.generated.mjs';
|
|
51
51
|
export { GetProductsRequestSchema, LegacyGetProductsRequestSchema } from '../validation/get-products-request.mjs';
|
|
52
52
|
export type { LooseObjectSchemaFor } from '../validation/get-products-request.mjs';
|
|
53
|
+
export type { CanonicalGetProductsRequest } from '../v2/projection/types.mjs';
|
|
54
|
+
export type { NonemptyArraySchema } from '../validation/nonempty-array.mjs';
|
|
53
55
|
export { BiddingPolicySchema } from '../validation/bidding-policy.mjs';
|
|
54
56
|
export { CanonicalBudgetAllocationSchema } from '../validation/budget-allocation.mjs';
|
|
55
57
|
export { TOOL_REQUEST_SCHEMAS } from '../utils/tool-request-schemas.mjs';
|
|
@@ -50,6 +50,8 @@ export type { AgentOAuthClientCredentials } from '../types/adcp';
|
|
|
50
50
|
export type { AssetVariant, PlacementPresentationDocument, PlacementPresentationReference, } from '../types/core.generated';
|
|
51
51
|
export { GetProductsRequestSchema, LegacyGetProductsRequestSchema } from '../validation/get-products-request';
|
|
52
52
|
export type { LooseObjectSchemaFor } from '../validation/get-products-request';
|
|
53
|
+
export type { CanonicalGetProductsRequest } from '../v2/projection/types';
|
|
54
|
+
export type { NonemptyArraySchema } from '../validation/nonempty-array';
|
|
53
55
|
export { BiddingPolicySchema } from '../validation/bidding-policy';
|
|
54
56
|
export { CanonicalBudgetAllocationSchema } from '../validation/budget-allocation';
|
|
55
57
|
export { TOOL_REQUEST_SCHEMAS } from '../utils/tool-request-schemas';
|
|
@@ -200,7 +200,7 @@ export interface UpstreamTrafficQueryResult {
|
|
|
200
200
|
*/
|
|
201
201
|
export declare function runValidations(validations: StoryboardValidation[], context: ValidationContext): ValidationResult[];
|
|
202
202
|
/** Capability semver emitted in run summaries and used for advisory expiry. */
|
|
203
|
-
export declare const RUNNER_CAPABILITY_VERSION = "17.0.0-beta.
|
|
203
|
+
export declare const RUNNER_CAPABILITY_VERSION = "17.0.0-beta.20";
|
|
204
204
|
/** True when a failed validation contributes to the owning step's grade. */
|
|
205
205
|
export declare function validationFailsStep(result: ValidationResult): boolean;
|
|
206
206
|
/**
|
|
@@ -200,7 +200,7 @@ export interface UpstreamTrafficQueryResult {
|
|
|
200
200
|
*/
|
|
201
201
|
export declare function runValidations(validations: StoryboardValidation[], context: ValidationContext): ValidationResult[];
|
|
202
202
|
/** Capability semver emitted in run summaries and used for advisory expiry. */
|
|
203
|
-
export declare const RUNNER_CAPABILITY_VERSION = "17.0.0-beta.
|
|
203
|
+
export declare const RUNNER_CAPABILITY_VERSION = "17.0.0-beta.20";
|
|
204
204
|
/** True when a failed validation contributes to the owning step's grade. */
|
|
205
205
|
export declare function validationFailsStep(result: ValidationResult): boolean;
|
|
206
206
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreativeAsset, CreateMediaBuyRequest, CreateMediaBuyResponse, FormatOptionReference,
|
|
1
|
+
import type { CreativeAsset, CreateMediaBuyRequest, CreateMediaBuyResponse, FormatOptionReference, GetProductsResponse, GetCreativeDeliveryResponse, GetMediaBuyDeliveryResponse, GetMediaBuysResponse, CreativeFilters, ListCreativesResponse, ListCreativesRequest, PackageRequest, PackageUpdate, Package, Placement, PreviewCreativeRequest, PreviewCreativeResponse, Product, SyncCreativesRequest, SyncCreativesResponse, UpdateMediaBuyRequest, UpdateMediaBuyResponse } from '../../types/tools.generated.mjs';
|
|
2
2
|
import type { LegacyFormatConverter } from './v1-to-v2.mjs';
|
|
3
3
|
import type { CanonicalFormatLegacyResolver } from './v2-to-v1.mjs';
|
|
4
4
|
import type { CanonicalFormatKind, ProjectionDiagnostic, V1FormatId } from './types.mjs';
|
|
@@ -62,11 +62,7 @@ export type CanonicalProduct = Omit<CanonicalCreativeResponse<Product>, 'format_
|
|
|
62
62
|
format_options: NonEmptyCanonicalFormatDeclarations;
|
|
63
63
|
placements?: CanonicalPlacement[];
|
|
64
64
|
};
|
|
65
|
-
type
|
|
66
|
-
/** Primary product discovery request cannot ask the SDK to expose legacy format IDs. */
|
|
67
|
-
export type CanonicalGetProductsRequest = Omit<GetProductsRequest, 'fields'> & {
|
|
68
|
-
fields?: CanonicalGetProductsField[];
|
|
69
|
-
};
|
|
65
|
+
export type { CanonicalGetProductsRequest } from './types.mjs';
|
|
70
66
|
export type CanonicalGetProductsResponse = Omit<CanonicalCreativeResponse<GetProductsResponse>, 'products'> & {
|
|
71
67
|
products: CanonicalProduct[];
|
|
72
68
|
projection: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreativeAsset, CreateMediaBuyRequest, CreateMediaBuyResponse, FormatOptionReference,
|
|
1
|
+
import type { CreativeAsset, CreateMediaBuyRequest, CreateMediaBuyResponse, FormatOptionReference, GetProductsResponse, GetCreativeDeliveryResponse, GetMediaBuyDeliveryResponse, GetMediaBuysResponse, CreativeFilters, ListCreativesResponse, ListCreativesRequest, PackageRequest, PackageUpdate, Package, Placement, PreviewCreativeRequest, PreviewCreativeResponse, Product, SyncCreativesRequest, SyncCreativesResponse, UpdateMediaBuyRequest, UpdateMediaBuyResponse } from '../../types/tools.generated';
|
|
2
2
|
import type { LegacyFormatConverter } from './v1-to-v2';
|
|
3
3
|
import type { CanonicalFormatLegacyResolver } from './v2-to-v1';
|
|
4
4
|
import type { CanonicalFormatKind, ProjectionDiagnostic, V1FormatId } from './types';
|
|
@@ -62,11 +62,7 @@ export type CanonicalProduct = Omit<CanonicalCreativeResponse<Product>, 'format_
|
|
|
62
62
|
format_options: NonEmptyCanonicalFormatDeclarations;
|
|
63
63
|
placements?: CanonicalPlacement[];
|
|
64
64
|
};
|
|
65
|
-
type
|
|
66
|
-
/** Primary product discovery request cannot ask the SDK to expose legacy format IDs. */
|
|
67
|
-
export type CanonicalGetProductsRequest = Omit<GetProductsRequest, 'fields'> & {
|
|
68
|
-
fields?: CanonicalGetProductsField[];
|
|
69
|
-
};
|
|
65
|
+
export type { CanonicalGetProductsRequest } from './types';
|
|
70
66
|
export type CanonicalGetProductsResponse = Omit<CanonicalCreativeResponse<GetProductsResponse>, 'products'> & {
|
|
71
67
|
products: CanonicalProduct[];
|
|
72
68
|
projection: {
|
|
@@ -9,7 +9,17 @@
|
|
|
9
9
|
* generated `ProductFormatDeclaration` types; these projection-local shapes
|
|
10
10
|
* remain for legacy projection APIs and diagnostics.
|
|
11
11
|
*/
|
|
12
|
-
import type { CanonicalFormatOption, FormatReferenceStructuredObject, ProductFormatDeclaration } from '../../types/tools.generated.mjs';
|
|
12
|
+
import type { CanonicalFormatOption, FormatReferenceStructuredObject, GetProductsRequest, ProductFormatDeclaration } from '../../types/tools.generated.mjs';
|
|
13
|
+
type CanonicalGetProductsField = Exclude<NonNullable<GetProductsRequest['fields']>[number], 'format_ids'>;
|
|
14
|
+
/**
|
|
15
|
+
* Primary product discovery request cannot ask the SDK to expose legacy format IDs.
|
|
16
|
+
*
|
|
17
|
+
* Declared here rather than in `creative-delivery` so the browser-safe
|
|
18
|
+
* `GetProductsRequestSchema` declaration does not pull in Node-only types.
|
|
19
|
+
*/
|
|
20
|
+
export type CanonicalGetProductsRequest = Omit<GetProductsRequest, 'fields'> & {
|
|
21
|
+
fields?: CanonicalGetProductsField[];
|
|
22
|
+
};
|
|
13
23
|
/** v1 format_id (`{ agent_url, id }`). Same shape in 3.0 and 3.1. */
|
|
14
24
|
export interface V1FormatId {
|
|
15
25
|
agent_url: string;
|
|
@@ -290,3 +300,4 @@ export type ProjectionDiagnostic = (ProjectionDiagnosticBase & {
|
|
|
290
300
|
};
|
|
291
301
|
};
|
|
292
302
|
});
|
|
303
|
+
export {};
|
|
@@ -9,7 +9,17 @@
|
|
|
9
9
|
* generated `ProductFormatDeclaration` types; these projection-local shapes
|
|
10
10
|
* remain for legacy projection APIs and diagnostics.
|
|
11
11
|
*/
|
|
12
|
-
import type { CanonicalFormatOption, FormatReferenceStructuredObject, ProductFormatDeclaration } from '../../types/tools.generated';
|
|
12
|
+
import type { CanonicalFormatOption, FormatReferenceStructuredObject, GetProductsRequest, ProductFormatDeclaration } from '../../types/tools.generated';
|
|
13
|
+
type CanonicalGetProductsField = Exclude<NonNullable<GetProductsRequest['fields']>[number], 'format_ids'>;
|
|
14
|
+
/**
|
|
15
|
+
* Primary product discovery request cannot ask the SDK to expose legacy format IDs.
|
|
16
|
+
*
|
|
17
|
+
* Declared here rather than in `creative-delivery` so the browser-safe
|
|
18
|
+
* `GetProductsRequestSchema` declaration does not pull in Node-only types.
|
|
19
|
+
*/
|
|
20
|
+
export type CanonicalGetProductsRequest = Omit<GetProductsRequest, 'fields'> & {
|
|
21
|
+
fields?: CanonicalGetProductsField[];
|
|
22
|
+
};
|
|
13
23
|
/** v1 format_id (`{ agent_url, id }`). Same shape in 3.0 and 3.1. */
|
|
14
24
|
export interface V1FormatId {
|
|
15
25
|
agent_url: string;
|
|
@@ -290,3 +300,4 @@ export type ProjectionDiagnostic = (ProjectionDiagnosticBase & {
|
|
|
290
300
|
};
|
|
291
301
|
};
|
|
292
302
|
});
|
|
303
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import
|
|
2
|
+
import { GetProductsRequestSchema as GeneratedGetProductsRequestSchema } from '../types/schemas.generated.mjs';
|
|
3
|
+
import type { CanonicalGetProductsRequest } from '../v2/projection/types.mjs';
|
|
3
4
|
type LooseObjectShapeFor<T extends object> = {
|
|
4
5
|
[K in keyof T]-?: undefined extends T[K] ? z.ZodOptional<z.ZodType<Exclude<T[K], undefined>, Exclude<T[K], undefined>>> : z.ZodType<T[K], T[K]>;
|
|
5
6
|
};
|
|
@@ -13,116 +14,7 @@ export type LooseObjectSchemaFor<T extends object> = {
|
|
|
13
14
|
extend<U extends z.core.$ZodShape>(shape: U): LooseObjectSchemaFor<Omit<T, keyof U> & ZodShapeOutput<U>>;
|
|
14
15
|
} & z.ZodObject<LooseObjectShapeFor<T>, z.core.$loose> & z.ZodType<T & Record<string, unknown>, T & Record<string, unknown>>;
|
|
15
16
|
/** Wire-compatible request schema, including the legacy `format_ids` selector. */
|
|
16
|
-
export declare const LegacyGetProductsRequestSchema:
|
|
17
|
-
adcp_version: z.ZodOptional<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
18
|
-
adcp_major_version: z.ZodOptional<z.ZodType<number, number, z.core.$ZodTypeInternals<number, number>>>;
|
|
19
|
-
idempotency_key: z.ZodOptional<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
20
|
-
buying_mode: z.ZodType<"brief" | "wholesale" | "refine", "brief" | "wholesale" | "refine", z.core.$ZodTypeInternals<"brief" | "wholesale" | "refine", "brief" | "wholesale" | "refine">>;
|
|
21
|
-
brief: z.ZodOptional<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
22
|
-
refine: z.ZodOptional<z.ZodType<({
|
|
23
|
-
scope: "request";
|
|
24
|
-
ask: string;
|
|
25
|
-
} | {
|
|
26
|
-
scope: "product";
|
|
27
|
-
product_id: string;
|
|
28
|
-
action?: "include" | "omit" | "more_like_this";
|
|
29
|
-
ask?: string;
|
|
30
|
-
package?: import("../types/tools.generated.mjs").PackageForecastInput;
|
|
31
|
-
} | {
|
|
32
|
-
scope: "proposal";
|
|
33
|
-
proposal_id: string;
|
|
34
|
-
action?: "include" | "omit" | "finalize";
|
|
35
|
-
ask?: string;
|
|
36
|
-
})[], ({
|
|
37
|
-
scope: "request";
|
|
38
|
-
ask: string;
|
|
39
|
-
} | {
|
|
40
|
-
scope: "product";
|
|
41
|
-
product_id: string;
|
|
42
|
-
action?: "include" | "omit" | "more_like_this";
|
|
43
|
-
ask?: string;
|
|
44
|
-
package?: import("../types/tools.generated.mjs").PackageForecastInput;
|
|
45
|
-
} | {
|
|
46
|
-
scope: "proposal";
|
|
47
|
-
proposal_id: string;
|
|
48
|
-
action?: "include" | "omit" | "finalize";
|
|
49
|
-
ask?: string;
|
|
50
|
-
})[], z.core.$ZodTypeInternals<({
|
|
51
|
-
scope: "request";
|
|
52
|
-
ask: string;
|
|
53
|
-
} | {
|
|
54
|
-
scope: "product";
|
|
55
|
-
product_id: string;
|
|
56
|
-
action?: "include" | "omit" | "more_like_this";
|
|
57
|
-
ask?: string;
|
|
58
|
-
package?: import("../types/tools.generated.mjs").PackageForecastInput;
|
|
59
|
-
} | {
|
|
60
|
-
scope: "proposal";
|
|
61
|
-
proposal_id: string;
|
|
62
|
-
action?: "include" | "omit" | "finalize";
|
|
63
|
-
ask?: string;
|
|
64
|
-
})[], ({
|
|
65
|
-
scope: "request";
|
|
66
|
-
ask: string;
|
|
67
|
-
} | {
|
|
68
|
-
scope: "product";
|
|
69
|
-
product_id: string;
|
|
70
|
-
action?: "include" | "omit" | "more_like_this";
|
|
71
|
-
ask?: string;
|
|
72
|
-
package?: import("../types/tools.generated.mjs").PackageForecastInput;
|
|
73
|
-
} | {
|
|
74
|
-
scope: "proposal";
|
|
75
|
-
proposal_id: string;
|
|
76
|
-
action?: "include" | "omit" | "finalize";
|
|
77
|
-
ask?: string;
|
|
78
|
-
})[]>>>;
|
|
79
|
-
brand: z.ZodOptional<z.ZodType<import("../index.mjs").BrandReference, import("../index.mjs").BrandReference, z.core.$ZodTypeInternals<import("../index.mjs").BrandReference, import("../index.mjs").BrandReference>>>;
|
|
80
|
-
acceptance_context: z.ZodOptional<z.ZodType<import("../types/tools.generated.mjs").AcceptanceContext, import("../types/tools.generated.mjs").AcceptanceContext, z.core.$ZodTypeInternals<import("../types/tools.generated.mjs").AcceptanceContext, import("../types/tools.generated.mjs").AcceptanceContext>>>;
|
|
81
|
-
catalog: z.ZodOptional<z.ZodType<import("../index.mjs").Catalog, import("../index.mjs").Catalog, z.core.$ZodTypeInternals<import("../index.mjs").Catalog, import("../index.mjs").Catalog>>>;
|
|
82
|
-
account: z.ZodOptional<z.ZodType<import("../index.mjs").AccountReference, import("../index.mjs").AccountReference, z.core.$ZodTypeInternals<import("../index.mjs").AccountReference, import("../index.mjs").AccountReference>>>;
|
|
83
|
-
preferred_delivery_types: z.ZodOptional<z.ZodType<import("../types/core.generated.mjs").DeliveryType[], import("../types/core.generated.mjs").DeliveryType[], z.core.$ZodTypeInternals<import("../types/core.generated.mjs").DeliveryType[], import("../types/core.generated.mjs").DeliveryType[]>>>;
|
|
84
|
-
filters: z.ZodOptional<z.ZodType<import("../types/tools.generated.mjs").ProductFilters, import("../types/tools.generated.mjs").ProductFilters, z.core.$ZodTypeInternals<import("../types/tools.generated.mjs").ProductFilters, import("../types/tools.generated.mjs").ProductFilters>>>;
|
|
85
|
-
targeting_overlay: z.ZodOptional<z.ZodType<import("../index.mjs").TargetingOverlay, import("../index.mjs").TargetingOverlay, z.core.$ZodTypeInternals<import("../index.mjs").TargetingOverlay, import("../index.mjs").TargetingOverlay>>>;
|
|
86
|
-
media_buy_frequency_cap: z.ZodOptional<z.ZodType<{
|
|
87
|
-
suppress?: import("../index.mjs").Duration;
|
|
88
|
-
suppress_minutes?: number;
|
|
89
|
-
max_impressions?: number;
|
|
90
|
-
per?: import("../index.mjs").ReachUnit;
|
|
91
|
-
window?: import("../index.mjs").Duration;
|
|
92
|
-
}, {
|
|
93
|
-
suppress?: import("../index.mjs").Duration;
|
|
94
|
-
suppress_minutes?: number;
|
|
95
|
-
max_impressions?: number;
|
|
96
|
-
per?: import("../index.mjs").ReachUnit;
|
|
97
|
-
window?: import("../index.mjs").Duration;
|
|
98
|
-
}, z.core.$ZodTypeInternals<{
|
|
99
|
-
suppress?: import("../index.mjs").Duration;
|
|
100
|
-
suppress_minutes?: number;
|
|
101
|
-
max_impressions?: number;
|
|
102
|
-
per?: import("../index.mjs").ReachUnit;
|
|
103
|
-
window?: import("../index.mjs").Duration;
|
|
104
|
-
}, {
|
|
105
|
-
suppress?: import("../index.mjs").Duration;
|
|
106
|
-
suppress_minutes?: number;
|
|
107
|
-
max_impressions?: number;
|
|
108
|
-
per?: import("../index.mjs").ReachUnit;
|
|
109
|
-
window?: import("../index.mjs").Duration;
|
|
110
|
-
}>>>;
|
|
111
|
-
required_overlay_support: z.ZodOptional<z.ZodType<import("../types/core.generated.mjs").TargetingOverlayRequirements, import("../types/core.generated.mjs").TargetingOverlayRequirements, z.core.$ZodTypeInternals<import("../types/core.generated.mjs").TargetingOverlayRequirements, import("../types/core.generated.mjs").TargetingOverlayRequirements>>>;
|
|
112
|
-
required_media_buy_support: z.ZodOptional<z.ZodType<import("../types/tools.generated.mjs").ProductMediaBuySupportRequirements, import("../types/tools.generated.mjs").ProductMediaBuySupportRequirements, z.core.$ZodTypeInternals<import("../types/tools.generated.mjs").ProductMediaBuySupportRequirements, import("../types/tools.generated.mjs").ProductMediaBuySupportRequirements>>>;
|
|
113
|
-
property_list: z.ZodOptional<z.ZodType<import("../types/tools.generated.mjs").PropertyListReference, import("../types/tools.generated.mjs").PropertyListReference, z.core.$ZodTypeInternals<import("../types/tools.generated.mjs").PropertyListReference, import("../types/tools.generated.mjs").PropertyListReference>>>;
|
|
114
|
-
include_execution_readiness: z.ZodOptional<z.ZodType<boolean, boolean, z.core.$ZodTypeInternals<boolean, boolean>>>;
|
|
115
|
-
fields: z.ZodOptional<z.ZodType<("name" | "audience_evidence" | "identity" | "forecast" | "description" | "collections" | "publisher_properties" | "product_id" | "channels" | "video_placement_types" | "audio_distribution_types" | "sponsored_placement_types" | "social_placement_surfaces" | "format_options" | "placements" | "delivery_type" | "exclusivity" | "pricing_options" | "reporting_capabilities" | "measurement_terms" | "performance_standards" | "catalog_types" | "signal_targeting_allowed" | "signal_targeting_rules" | "demographic_targeting" | "overlay_support" | "collection_targeting_allowed" | "installments" | "media_buy_support" | "audience_evidence_selections" | "max_optimization_goals" | "catalog_match" | "list_applications" | "brief_relevance" | "targeting_resolution" | "acceptance_policy_profile_ids" | "execution_requirements" | "expires_at" | "allowed_actions" | "creative_policy" | "product_card" | "format_ids" | "outcome_measurement" | "delivery_measurement" | "metric_optimization" | "conversion_tracking" | "data_provider_signals" | "included_signals" | "signal_targeting_options" | "is_custom" | "product_card_detailed" | "enforced_policies" | "trusted_match")[], ("name" | "audience_evidence" | "identity" | "forecast" | "description" | "collections" | "publisher_properties" | "product_id" | "channels" | "video_placement_types" | "audio_distribution_types" | "sponsored_placement_types" | "social_placement_surfaces" | "format_options" | "placements" | "delivery_type" | "exclusivity" | "pricing_options" | "reporting_capabilities" | "measurement_terms" | "performance_standards" | "catalog_types" | "signal_targeting_allowed" | "signal_targeting_rules" | "demographic_targeting" | "overlay_support" | "collection_targeting_allowed" | "installments" | "media_buy_support" | "audience_evidence_selections" | "max_optimization_goals" | "catalog_match" | "list_applications" | "brief_relevance" | "targeting_resolution" | "acceptance_policy_profile_ids" | "execution_requirements" | "expires_at" | "allowed_actions" | "creative_policy" | "product_card" | "format_ids" | "outcome_measurement" | "delivery_measurement" | "metric_optimization" | "conversion_tracking" | "data_provider_signals" | "included_signals" | "signal_targeting_options" | "is_custom" | "product_card_detailed" | "enforced_policies" | "trusted_match")[], z.core.$ZodTypeInternals<("name" | "audience_evidence" | "identity" | "forecast" | "description" | "collections" | "publisher_properties" | "product_id" | "channels" | "video_placement_types" | "audio_distribution_types" | "sponsored_placement_types" | "social_placement_surfaces" | "format_options" | "placements" | "delivery_type" | "exclusivity" | "pricing_options" | "reporting_capabilities" | "measurement_terms" | "performance_standards" | "catalog_types" | "signal_targeting_allowed" | "signal_targeting_rules" | "demographic_targeting" | "overlay_support" | "collection_targeting_allowed" | "installments" | "media_buy_support" | "audience_evidence_selections" | "max_optimization_goals" | "catalog_match" | "list_applications" | "brief_relevance" | "targeting_resolution" | "acceptance_policy_profile_ids" | "execution_requirements" | "expires_at" | "allowed_actions" | "creative_policy" | "product_card" | "format_ids" | "outcome_measurement" | "delivery_measurement" | "metric_optimization" | "conversion_tracking" | "data_provider_signals" | "included_signals" | "signal_targeting_options" | "is_custom" | "product_card_detailed" | "enforced_policies" | "trusted_match")[], ("name" | "audience_evidence" | "identity" | "forecast" | "description" | "collections" | "publisher_properties" | "product_id" | "channels" | "video_placement_types" | "audio_distribution_types" | "sponsored_placement_types" | "social_placement_surfaces" | "format_options" | "placements" | "delivery_type" | "exclusivity" | "pricing_options" | "reporting_capabilities" | "measurement_terms" | "performance_standards" | "catalog_types" | "signal_targeting_allowed" | "signal_targeting_rules" | "demographic_targeting" | "overlay_support" | "collection_targeting_allowed" | "installments" | "media_buy_support" | "audience_evidence_selections" | "max_optimization_goals" | "catalog_match" | "list_applications" | "brief_relevance" | "targeting_resolution" | "acceptance_policy_profile_ids" | "execution_requirements" | "expires_at" | "allowed_actions" | "creative_policy" | "product_card" | "format_ids" | "outcome_measurement" | "delivery_measurement" | "metric_optimization" | "conversion_tracking" | "data_provider_signals" | "included_signals" | "signal_targeting_options" | "is_custom" | "product_card_detailed" | "enforced_policies" | "trusted_match")[]>>>;
|
|
116
|
-
include_collections: z.ZodOptional<z.ZodType<boolean, boolean, z.core.$ZodTypeInternals<boolean, boolean>>>;
|
|
117
|
-
time_budget: z.ZodOptional<z.ZodType<import("../index.mjs").Duration, import("../index.mjs").Duration, z.core.$ZodTypeInternals<import("../index.mjs").Duration, import("../index.mjs").Duration>>>;
|
|
118
|
-
push_notification_config: z.ZodOptional<z.ZodType<import("../types/tools.generated.mjs").PushNotificationConfig, import("../types/tools.generated.mjs").PushNotificationConfig, z.core.$ZodTypeInternals<import("../types/tools.generated.mjs").PushNotificationConfig, import("../types/tools.generated.mjs").PushNotificationConfig>>>;
|
|
119
|
-
pagination: z.ZodOptional<z.ZodType<import("../index.mjs").PaginationRequest, import("../index.mjs").PaginationRequest, z.core.$ZodTypeInternals<import("../index.mjs").PaginationRequest, import("../index.mjs").PaginationRequest>>>;
|
|
120
|
-
if_wholesale_feed_version: z.ZodOptional<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
121
|
-
if_pricing_version: z.ZodOptional<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
122
|
-
context: z.ZodOptional<z.ZodType<import("../types/tools.generated.mjs").ContextObject, import("../types/tools.generated.mjs").ContextObject, z.core.$ZodTypeInternals<import("../types/tools.generated.mjs").ContextObject, import("../types/tools.generated.mjs").ContextObject>>>;
|
|
123
|
-
required_policies: z.ZodOptional<z.ZodType<string[], string[], z.core.$ZodTypeInternals<string[], string[]>>>;
|
|
124
|
-
ext: z.ZodOptional<z.ZodType<import("../index.mjs").ExtensionObject, import("../index.mjs").ExtensionObject, z.core.$ZodTypeInternals<import("../index.mjs").ExtensionObject, import("../index.mjs").ExtensionObject>>>;
|
|
125
|
-
}, z.core.$loose> & z.ZodType<import("../index.mjs").LegacyGetProductsRequest & Record<string, unknown>, import("../index.mjs").LegacyGetProductsRequest & Record<string, unknown>, z.core.$ZodTypeInternals<import("../index.mjs").LegacyGetProductsRequest & Record<string, unknown>, import("../index.mjs").LegacyGetProductsRequest & Record<string, unknown>>>;
|
|
17
|
+
export declare const LegacyGetProductsRequestSchema: typeof GeneratedGetProductsRequestSchema;
|
|
126
18
|
/** Primary request schema; legacy `format_ids` selection is rejected. */
|
|
127
19
|
export declare const GetProductsRequestSchema: LooseObjectSchemaFor<CanonicalGetProductsRequest>;
|
|
128
20
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import
|
|
2
|
+
import { GetProductsRequestSchema as GeneratedGetProductsRequestSchema } from '../types/schemas.generated';
|
|
3
|
+
import type { CanonicalGetProductsRequest } from '../v2/projection/types';
|
|
3
4
|
type LooseObjectShapeFor<T extends object> = {
|
|
4
5
|
[K in keyof T]-?: undefined extends T[K] ? z.ZodOptional<z.ZodType<Exclude<T[K], undefined>, Exclude<T[K], undefined>>> : z.ZodType<T[K], T[K]>;
|
|
5
6
|
};
|
|
@@ -13,116 +14,7 @@ export type LooseObjectSchemaFor<T extends object> = {
|
|
|
13
14
|
extend<U extends z.core.$ZodShape>(shape: U): LooseObjectSchemaFor<Omit<T, keyof U> & ZodShapeOutput<U>>;
|
|
14
15
|
} & z.ZodObject<LooseObjectShapeFor<T>, z.core.$loose> & z.ZodType<T & Record<string, unknown>, T & Record<string, unknown>>;
|
|
15
16
|
/** Wire-compatible request schema, including the legacy `format_ids` selector. */
|
|
16
|
-
export declare const LegacyGetProductsRequestSchema:
|
|
17
|
-
adcp_version: z.ZodOptional<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
18
|
-
adcp_major_version: z.ZodOptional<z.ZodType<number, number, z.core.$ZodTypeInternals<number, number>>>;
|
|
19
|
-
idempotency_key: z.ZodOptional<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
20
|
-
buying_mode: z.ZodType<"brief" | "wholesale" | "refine", "brief" | "wholesale" | "refine", z.core.$ZodTypeInternals<"brief" | "wholesale" | "refine", "brief" | "wholesale" | "refine">>;
|
|
21
|
-
brief: z.ZodOptional<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
22
|
-
refine: z.ZodOptional<z.ZodType<({
|
|
23
|
-
scope: "request";
|
|
24
|
-
ask: string;
|
|
25
|
-
} | {
|
|
26
|
-
scope: "product";
|
|
27
|
-
product_id: string;
|
|
28
|
-
action?: "include" | "omit" | "more_like_this";
|
|
29
|
-
ask?: string;
|
|
30
|
-
package?: import("../types/tools.generated").PackageForecastInput;
|
|
31
|
-
} | {
|
|
32
|
-
scope: "proposal";
|
|
33
|
-
proposal_id: string;
|
|
34
|
-
action?: "include" | "omit" | "finalize";
|
|
35
|
-
ask?: string;
|
|
36
|
-
})[], ({
|
|
37
|
-
scope: "request";
|
|
38
|
-
ask: string;
|
|
39
|
-
} | {
|
|
40
|
-
scope: "product";
|
|
41
|
-
product_id: string;
|
|
42
|
-
action?: "include" | "omit" | "more_like_this";
|
|
43
|
-
ask?: string;
|
|
44
|
-
package?: import("../types/tools.generated").PackageForecastInput;
|
|
45
|
-
} | {
|
|
46
|
-
scope: "proposal";
|
|
47
|
-
proposal_id: string;
|
|
48
|
-
action?: "include" | "omit" | "finalize";
|
|
49
|
-
ask?: string;
|
|
50
|
-
})[], z.core.$ZodTypeInternals<({
|
|
51
|
-
scope: "request";
|
|
52
|
-
ask: string;
|
|
53
|
-
} | {
|
|
54
|
-
scope: "product";
|
|
55
|
-
product_id: string;
|
|
56
|
-
action?: "include" | "omit" | "more_like_this";
|
|
57
|
-
ask?: string;
|
|
58
|
-
package?: import("../types/tools.generated").PackageForecastInput;
|
|
59
|
-
} | {
|
|
60
|
-
scope: "proposal";
|
|
61
|
-
proposal_id: string;
|
|
62
|
-
action?: "include" | "omit" | "finalize";
|
|
63
|
-
ask?: string;
|
|
64
|
-
})[], ({
|
|
65
|
-
scope: "request";
|
|
66
|
-
ask: string;
|
|
67
|
-
} | {
|
|
68
|
-
scope: "product";
|
|
69
|
-
product_id: string;
|
|
70
|
-
action?: "include" | "omit" | "more_like_this";
|
|
71
|
-
ask?: string;
|
|
72
|
-
package?: import("../types/tools.generated").PackageForecastInput;
|
|
73
|
-
} | {
|
|
74
|
-
scope: "proposal";
|
|
75
|
-
proposal_id: string;
|
|
76
|
-
action?: "include" | "omit" | "finalize";
|
|
77
|
-
ask?: string;
|
|
78
|
-
})[]>>>;
|
|
79
|
-
brand: z.ZodOptional<z.ZodType<import("..").BrandReference, import("..").BrandReference, z.core.$ZodTypeInternals<import("..").BrandReference, import("..").BrandReference>>>;
|
|
80
|
-
acceptance_context: z.ZodOptional<z.ZodType<import("../types/tools.generated").AcceptanceContext, import("../types/tools.generated").AcceptanceContext, z.core.$ZodTypeInternals<import("../types/tools.generated").AcceptanceContext, import("../types/tools.generated").AcceptanceContext>>>;
|
|
81
|
-
catalog: z.ZodOptional<z.ZodType<import("..").Catalog, import("..").Catalog, z.core.$ZodTypeInternals<import("..").Catalog, import("..").Catalog>>>;
|
|
82
|
-
account: z.ZodOptional<z.ZodType<import("..").AccountReference, import("..").AccountReference, z.core.$ZodTypeInternals<import("..").AccountReference, import("..").AccountReference>>>;
|
|
83
|
-
preferred_delivery_types: z.ZodOptional<z.ZodType<import("../types/core.generated").DeliveryType[], import("../types/core.generated").DeliveryType[], z.core.$ZodTypeInternals<import("../types/core.generated").DeliveryType[], import("../types/core.generated").DeliveryType[]>>>;
|
|
84
|
-
filters: z.ZodOptional<z.ZodType<import("../types/tools.generated").ProductFilters, import("../types/tools.generated").ProductFilters, z.core.$ZodTypeInternals<import("../types/tools.generated").ProductFilters, import("../types/tools.generated").ProductFilters>>>;
|
|
85
|
-
targeting_overlay: z.ZodOptional<z.ZodType<import("..").TargetingOverlay, import("..").TargetingOverlay, z.core.$ZodTypeInternals<import("..").TargetingOverlay, import("..").TargetingOverlay>>>;
|
|
86
|
-
media_buy_frequency_cap: z.ZodOptional<z.ZodType<{
|
|
87
|
-
suppress?: import("..").Duration;
|
|
88
|
-
suppress_minutes?: number;
|
|
89
|
-
max_impressions?: number;
|
|
90
|
-
per?: import("..").ReachUnit;
|
|
91
|
-
window?: import("..").Duration;
|
|
92
|
-
}, {
|
|
93
|
-
suppress?: import("..").Duration;
|
|
94
|
-
suppress_minutes?: number;
|
|
95
|
-
max_impressions?: number;
|
|
96
|
-
per?: import("..").ReachUnit;
|
|
97
|
-
window?: import("..").Duration;
|
|
98
|
-
}, z.core.$ZodTypeInternals<{
|
|
99
|
-
suppress?: import("..").Duration;
|
|
100
|
-
suppress_minutes?: number;
|
|
101
|
-
max_impressions?: number;
|
|
102
|
-
per?: import("..").ReachUnit;
|
|
103
|
-
window?: import("..").Duration;
|
|
104
|
-
}, {
|
|
105
|
-
suppress?: import("..").Duration;
|
|
106
|
-
suppress_minutes?: number;
|
|
107
|
-
max_impressions?: number;
|
|
108
|
-
per?: import("..").ReachUnit;
|
|
109
|
-
window?: import("..").Duration;
|
|
110
|
-
}>>>;
|
|
111
|
-
required_overlay_support: z.ZodOptional<z.ZodType<import("../types/core.generated").TargetingOverlayRequirements, import("../types/core.generated").TargetingOverlayRequirements, z.core.$ZodTypeInternals<import("../types/core.generated").TargetingOverlayRequirements, import("../types/core.generated").TargetingOverlayRequirements>>>;
|
|
112
|
-
required_media_buy_support: z.ZodOptional<z.ZodType<import("../types/tools.generated").ProductMediaBuySupportRequirements, import("../types/tools.generated").ProductMediaBuySupportRequirements, z.core.$ZodTypeInternals<import("../types/tools.generated").ProductMediaBuySupportRequirements, import("../types/tools.generated").ProductMediaBuySupportRequirements>>>;
|
|
113
|
-
property_list: z.ZodOptional<z.ZodType<import("../types/tools.generated").PropertyListReference, import("../types/tools.generated").PropertyListReference, z.core.$ZodTypeInternals<import("../types/tools.generated").PropertyListReference, import("../types/tools.generated").PropertyListReference>>>;
|
|
114
|
-
include_execution_readiness: z.ZodOptional<z.ZodType<boolean, boolean, z.core.$ZodTypeInternals<boolean, boolean>>>;
|
|
115
|
-
fields: z.ZodOptional<z.ZodType<("name" | "audience_evidence" | "identity" | "forecast" | "description" | "collections" | "publisher_properties" | "product_id" | "channels" | "video_placement_types" | "audio_distribution_types" | "sponsored_placement_types" | "social_placement_surfaces" | "format_options" | "placements" | "delivery_type" | "exclusivity" | "pricing_options" | "reporting_capabilities" | "measurement_terms" | "performance_standards" | "catalog_types" | "signal_targeting_allowed" | "signal_targeting_rules" | "demographic_targeting" | "overlay_support" | "collection_targeting_allowed" | "installments" | "media_buy_support" | "audience_evidence_selections" | "max_optimization_goals" | "catalog_match" | "list_applications" | "brief_relevance" | "targeting_resolution" | "acceptance_policy_profile_ids" | "execution_requirements" | "expires_at" | "allowed_actions" | "creative_policy" | "product_card" | "format_ids" | "outcome_measurement" | "delivery_measurement" | "metric_optimization" | "conversion_tracking" | "data_provider_signals" | "included_signals" | "signal_targeting_options" | "is_custom" | "product_card_detailed" | "enforced_policies" | "trusted_match")[], ("name" | "audience_evidence" | "identity" | "forecast" | "description" | "collections" | "publisher_properties" | "product_id" | "channels" | "video_placement_types" | "audio_distribution_types" | "sponsored_placement_types" | "social_placement_surfaces" | "format_options" | "placements" | "delivery_type" | "exclusivity" | "pricing_options" | "reporting_capabilities" | "measurement_terms" | "performance_standards" | "catalog_types" | "signal_targeting_allowed" | "signal_targeting_rules" | "demographic_targeting" | "overlay_support" | "collection_targeting_allowed" | "installments" | "media_buy_support" | "audience_evidence_selections" | "max_optimization_goals" | "catalog_match" | "list_applications" | "brief_relevance" | "targeting_resolution" | "acceptance_policy_profile_ids" | "execution_requirements" | "expires_at" | "allowed_actions" | "creative_policy" | "product_card" | "format_ids" | "outcome_measurement" | "delivery_measurement" | "metric_optimization" | "conversion_tracking" | "data_provider_signals" | "included_signals" | "signal_targeting_options" | "is_custom" | "product_card_detailed" | "enforced_policies" | "trusted_match")[], z.core.$ZodTypeInternals<("name" | "audience_evidence" | "identity" | "forecast" | "description" | "collections" | "publisher_properties" | "product_id" | "channels" | "video_placement_types" | "audio_distribution_types" | "sponsored_placement_types" | "social_placement_surfaces" | "format_options" | "placements" | "delivery_type" | "exclusivity" | "pricing_options" | "reporting_capabilities" | "measurement_terms" | "performance_standards" | "catalog_types" | "signal_targeting_allowed" | "signal_targeting_rules" | "demographic_targeting" | "overlay_support" | "collection_targeting_allowed" | "installments" | "media_buy_support" | "audience_evidence_selections" | "max_optimization_goals" | "catalog_match" | "list_applications" | "brief_relevance" | "targeting_resolution" | "acceptance_policy_profile_ids" | "execution_requirements" | "expires_at" | "allowed_actions" | "creative_policy" | "product_card" | "format_ids" | "outcome_measurement" | "delivery_measurement" | "metric_optimization" | "conversion_tracking" | "data_provider_signals" | "included_signals" | "signal_targeting_options" | "is_custom" | "product_card_detailed" | "enforced_policies" | "trusted_match")[], ("name" | "audience_evidence" | "identity" | "forecast" | "description" | "collections" | "publisher_properties" | "product_id" | "channels" | "video_placement_types" | "audio_distribution_types" | "sponsored_placement_types" | "social_placement_surfaces" | "format_options" | "placements" | "delivery_type" | "exclusivity" | "pricing_options" | "reporting_capabilities" | "measurement_terms" | "performance_standards" | "catalog_types" | "signal_targeting_allowed" | "signal_targeting_rules" | "demographic_targeting" | "overlay_support" | "collection_targeting_allowed" | "installments" | "media_buy_support" | "audience_evidence_selections" | "max_optimization_goals" | "catalog_match" | "list_applications" | "brief_relevance" | "targeting_resolution" | "acceptance_policy_profile_ids" | "execution_requirements" | "expires_at" | "allowed_actions" | "creative_policy" | "product_card" | "format_ids" | "outcome_measurement" | "delivery_measurement" | "metric_optimization" | "conversion_tracking" | "data_provider_signals" | "included_signals" | "signal_targeting_options" | "is_custom" | "product_card_detailed" | "enforced_policies" | "trusted_match")[]>>>;
|
|
116
|
-
include_collections: z.ZodOptional<z.ZodType<boolean, boolean, z.core.$ZodTypeInternals<boolean, boolean>>>;
|
|
117
|
-
time_budget: z.ZodOptional<z.ZodType<import("..").Duration, import("..").Duration, z.core.$ZodTypeInternals<import("..").Duration, import("..").Duration>>>;
|
|
118
|
-
push_notification_config: z.ZodOptional<z.ZodType<import("../types/tools.generated").PushNotificationConfig, import("../types/tools.generated").PushNotificationConfig, z.core.$ZodTypeInternals<import("../types/tools.generated").PushNotificationConfig, import("../types/tools.generated").PushNotificationConfig>>>;
|
|
119
|
-
pagination: z.ZodOptional<z.ZodType<import("..").PaginationRequest, import("..").PaginationRequest, z.core.$ZodTypeInternals<import("..").PaginationRequest, import("..").PaginationRequest>>>;
|
|
120
|
-
if_wholesale_feed_version: z.ZodOptional<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
121
|
-
if_pricing_version: z.ZodOptional<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
122
|
-
context: z.ZodOptional<z.ZodType<import("../types/tools.generated").ContextObject, import("../types/tools.generated").ContextObject, z.core.$ZodTypeInternals<import("../types/tools.generated").ContextObject, import("../types/tools.generated").ContextObject>>>;
|
|
123
|
-
required_policies: z.ZodOptional<z.ZodType<string[], string[], z.core.$ZodTypeInternals<string[], string[]>>>;
|
|
124
|
-
ext: z.ZodOptional<z.ZodType<import("..").ExtensionObject, import("..").ExtensionObject, z.core.$ZodTypeInternals<import("..").ExtensionObject, import("..").ExtensionObject>>>;
|
|
125
|
-
}, z.core.$loose> & z.ZodType<import("..").LegacyGetProductsRequest & Record<string, unknown>, import("..").LegacyGetProductsRequest & Record<string, unknown>, z.core.$ZodTypeInternals<import("..").LegacyGetProductsRequest & Record<string, unknown>, import("..").LegacyGetProductsRequest & Record<string, unknown>>>;
|
|
17
|
+
export declare const LegacyGetProductsRequestSchema: typeof GeneratedGetProductsRequestSchema;
|
|
126
18
|
/** Primary request schema; legacy `format_ids` selection is rejected. */
|
|
127
19
|
export declare const GetProductsRequestSchema: LooseObjectSchemaFor<CanonicalGetProductsRequest>;
|
|
128
20
|
export {};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
type ArrayBoundMethods = 'min' | 'max' | 'length' | 'nonempty';
|
|
3
|
-
/** A normal ZodArray whose checked minimum is reflected in its input/output. */
|
|
4
|
-
export interface NonemptyArraySchema<Element extends z.ZodType> extends Omit<z.ZodArray<Element>, keyof z.ZodType | ArrayBoundMethods>, z.ZodType<[z.output<Element>, ...z.output<Element>[]], [z.input<Element>, ...z.input<Element>[]]> {
|
|
5
|
-
min(...args: Parameters<z.ZodArray<Element>['min']>): this;
|
|
6
|
-
max(...args: Parameters<z.ZodArray<Element>['max']>): this;
|
|
7
|
-
length(...args: Parameters<z.ZodArray<Element>['length']>): this;
|
|
8
|
-
nonempty(...args: Parameters<z.ZodArray<Element>['nonempty']>): this;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Zod 4's .min(1) retains an array type. Reflect the enforced bound without
|
|
12
|
-
* turning homogeneous wire arrays into JSON Schema prefixItems tuples.
|
|
13
|
-
*/
|
|
14
|
-
export declare function nonemptyArray<Element extends z.ZodType>(element: Element): NonemptyArraySchema<Element>;
|
|
15
|
-
export {};
|
|
1
|
+
export * from './nonempty-array.js';
|