@adcp/sdk 14.0.0-beta.11 → 14.0.0-beta.13
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/bin/adcp-storyboard-sandbox.js +16 -0
- package/bin/adcp.js +28 -30
- package/dist/lib/index.d.mts +3 -3
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +2 -0
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +3 -1
- package/dist/lib/index.mjs.map +1 -1
- package/dist/lib/schemas/index.d.mts +385 -1
- package/dist/lib/schemas/index.d.ts +385 -1
- package/dist/lib/schemas/index.d.ts.map +1 -1
- package/dist/lib/schemas/index.js +13 -0
- package/dist/lib/schemas/index.js.map +1 -1
- package/dist/lib/schemas/index.mjs +11 -0
- package/dist/lib/schemas/index.mjs.map +1 -1
- package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
- package/dist/lib/server/create-adcp-server.d.mts +2 -2
- package/dist/lib/server/create-adcp-server.d.ts +2 -2
- package/dist/lib/server/create-adcp-server.d.ts.map +1 -1
- package/dist/lib/server/create-adcp-server.js +6 -1
- package/dist/lib/server/create-adcp-server.js.map +1 -1
- package/dist/lib/server/create-adcp-server.mjs +6 -1
- package/dist/lib/server/create-adcp-server.mjs.map +1 -1
- package/dist/lib/server/decisioning/index.d.mts +3 -3
- package/dist/lib/server/decisioning/index.d.ts +3 -3
- package/dist/lib/server/decisioning/index.d.ts.map +1 -1
- package/dist/lib/server/decisioning/index.js.map +1 -1
- package/dist/lib/server/decisioning/index.mjs.map +1 -1
- package/dist/lib/server/decisioning/runtime/from-platform.d.mts +24 -17
- package/dist/lib/server/decisioning/runtime/from-platform.d.ts +24 -17
- package/dist/lib/server/decisioning/runtime/from-platform.d.ts.map +1 -1
- package/dist/lib/server/decisioning/runtime/from-platform.js +71 -42
- package/dist/lib/server/decisioning/runtime/from-platform.js.map +1 -1
- package/dist/lib/server/decisioning/runtime/from-platform.mjs +75 -43
- package/dist/lib/server/decisioning/runtime/from-platform.mjs.map +1 -1
- package/dist/lib/server/decisioning/runtime/postgres-task-registry.d.mts +15 -21
- package/dist/lib/server/decisioning/runtime/postgres-task-registry.d.ts +15 -21
- package/dist/lib/server/decisioning/runtime/postgres-task-registry.d.ts.map +1 -1
- package/dist/lib/server/decisioning/runtime/postgres-task-registry.js +100 -30
- package/dist/lib/server/decisioning/runtime/postgres-task-registry.js.map +1 -1
- package/dist/lib/server/decisioning/runtime/postgres-task-registry.mjs +100 -30
- package/dist/lib/server/decisioning/runtime/postgres-task-registry.mjs.map +1 -1
- package/dist/lib/server/decisioning/runtime/task-registry.d.mts +30 -16
- package/dist/lib/server/decisioning/runtime/task-registry.d.ts +30 -16
- package/dist/lib/server/decisioning/runtime/task-registry.d.ts.map +1 -1
- package/dist/lib/server/decisioning/runtime/task-registry.js +40 -20
- package/dist/lib/server/decisioning/runtime/task-registry.js.map +1 -1
- package/dist/lib/server/decisioning/runtime/task-registry.mjs +38 -19
- package/dist/lib/server/decisioning/runtime/task-registry.mjs.map +1 -1
- package/dist/lib/server/decisioning/runtime/to-context.d.mts +2 -2
- package/dist/lib/server/decisioning/runtime/to-context.d.ts +2 -2
- package/dist/lib/server/decisioning/runtime/to-context.d.ts.map +1 -1
- package/dist/lib/server/decisioning/runtime/to-context.js +2 -2
- package/dist/lib/server/decisioning/runtime/to-context.js.map +1 -1
- package/dist/lib/server/decisioning/runtime/to-context.mjs +2 -2
- package/dist/lib/server/decisioning/runtime/to-context.mjs.map +1 -1
- package/dist/lib/server/decisioning/specialisms/creative-ad-server.d.mts +3 -2
- package/dist/lib/server/decisioning/specialisms/creative-ad-server.d.ts +3 -2
- package/dist/lib/server/decisioning/specialisms/creative-ad-server.d.ts.map +1 -1
- package/dist/lib/server/decisioning/specialisms/creative-ad-server.js.map +1 -1
- package/dist/lib/server/decisioning/specialisms/creative.d.mts +10 -10
- package/dist/lib/server/decisioning/specialisms/creative.d.ts +10 -10
- package/dist/lib/server/decisioning/specialisms/creative.d.ts.map +1 -1
- package/dist/lib/server/decisioning/specialisms/creative.js.map +1 -1
- package/dist/lib/server/index.d.mts +1 -1
- package/dist/lib/server/index.d.ts +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/signing/agent-context.d.mts +1 -0
- package/dist/lib/signing/agent-context.d.ts +1 -0
- package/dist/lib/signing/agent-context.d.ts.map +1 -1
- package/dist/lib/signing/agent-context.js +37 -2
- package/dist/lib/signing/agent-context.js.map +1 -1
- package/dist/lib/signing/agent-context.mjs +38 -3
- package/dist/lib/signing/agent-context.mjs.map +1 -1
- package/dist/lib/signing/agent-fetch.d.mts +1 -2
- package/dist/lib/signing/agent-fetch.d.ts +1 -2
- package/dist/lib/signing/agent-fetch.d.ts.map +1 -1
- package/dist/lib/signing/agent-fetch.js +2 -0
- package/dist/lib/signing/agent-fetch.js.map +1 -1
- package/dist/lib/signing/agent-fetch.mjs +2 -0
- package/dist/lib/signing/agent-fetch.mjs.map +1 -1
- package/dist/lib/signing/agent-resolver/etld.js.map +1 -1
- package/dist/lib/signing/agent-resolver/etld.mjs.map +1 -1
- package/dist/lib/testing/client.d.mts +6 -0
- package/dist/lib/testing/client.d.ts +6 -0
- package/dist/lib/testing/client.d.ts.map +1 -1
- package/dist/lib/testing/client.js +76 -4
- package/dist/lib/testing/client.js.map +1 -1
- package/dist/lib/testing/client.mjs +75 -4
- package/dist/lib/testing/client.mjs.map +1 -1
- package/dist/lib/testing/compliance/comply.d.ts.map +1 -1
- package/dist/lib/testing/compliance/comply.js +6 -0
- package/dist/lib/testing/compliance/comply.js.map +1 -1
- package/dist/lib/testing/compliance/comply.mjs +7 -1
- package/dist/lib/testing/compliance/comply.mjs.map +1 -1
- package/dist/lib/testing/storyboard/default-invariants.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/default-invariants.js +11 -2
- package/dist/lib/testing/storyboard/default-invariants.js.map +1 -1
- package/dist/lib/testing/storyboard/default-invariants.mjs +11 -2
- package/dist/lib/testing/storyboard/default-invariants.mjs.map +1 -1
- package/dist/lib/testing/storyboard/index.d.mts +1 -1
- package/dist/lib/testing/storyboard/index.d.ts +1 -1
- package/dist/lib/testing/storyboard/index.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/index.js.map +1 -1
- package/dist/lib/testing/storyboard/index.mjs.map +1 -1
- package/dist/lib/testing/storyboard/loader.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/loader.js +14 -0
- package/dist/lib/testing/storyboard/loader.js.map +1 -1
- package/dist/lib/testing/storyboard/loader.mjs +14 -0
- package/dist/lib/testing/storyboard/loader.mjs.map +1 -1
- package/dist/lib/testing/storyboard/phase-condition.d.mts +41 -0
- package/dist/lib/testing/storyboard/phase-condition.d.ts +42 -0
- package/dist/lib/testing/storyboard/phase-condition.d.ts.map +1 -0
- package/dist/lib/testing/storyboard/phase-condition.js +215 -0
- package/dist/lib/testing/storyboard/phase-condition.js.map +1 -0
- package/dist/lib/testing/storyboard/phase-condition.mjs +189 -0
- package/dist/lib/testing/storyboard/phase-condition.mjs.map +1 -0
- package/dist/lib/testing/storyboard/request-builder.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/request-builder.js +15 -2
- package/dist/lib/testing/storyboard/request-builder.js.map +1 -1
- package/dist/lib/testing/storyboard/request-builder.mjs +15 -2
- package/dist/lib/testing/storyboard/request-builder.mjs.map +1 -1
- package/dist/lib/testing/storyboard/request-signing/functional-dispatch.d.mts +15 -0
- package/dist/lib/testing/storyboard/request-signing/functional-dispatch.d.ts +16 -0
- package/dist/lib/testing/storyboard/request-signing/functional-dispatch.d.ts.map +1 -0
- package/dist/lib/testing/storyboard/request-signing/functional-dispatch.js +106 -0
- package/dist/lib/testing/storyboard/request-signing/functional-dispatch.js.map +1 -0
- package/dist/lib/testing/storyboard/request-signing/functional-dispatch.mjs +82 -0
- package/dist/lib/testing/storyboard/request-signing/functional-dispatch.mjs.map +1 -0
- package/dist/lib/testing/storyboard/request-signing/test-kit.d.mts +15 -0
- package/dist/lib/testing/storyboard/request-signing/test-kit.d.ts +15 -0
- package/dist/lib/testing/storyboard/request-signing/test-kit.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/request-signing/test-kit.js +58 -0
- package/dist/lib/testing/storyboard/request-signing/test-kit.js.map +1 -1
- package/dist/lib/testing/storyboard/request-signing/test-kit.mjs +58 -0
- package/dist/lib/testing/storyboard/request-signing/test-kit.mjs.map +1 -1
- package/dist/lib/testing/storyboard/request-signing/vector-loader.d.mts +2 -0
- package/dist/lib/testing/storyboard/request-signing/vector-loader.d.ts +2 -0
- package/dist/lib/testing/storyboard/request-signing/vector-loader.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/request-signing/vector-loader.js +7 -1
- package/dist/lib/testing/storyboard/request-signing/vector-loader.js.map +1 -1
- package/dist/lib/testing/storyboard/request-signing/vector-loader.mjs +6 -1
- package/dist/lib/testing/storyboard/request-signing/vector-loader.mjs.map +1 -1
- package/dist/lib/testing/storyboard/runner.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/runner.js +67 -24
- package/dist/lib/testing/storyboard/runner.js.map +1 -1
- package/dist/lib/testing/storyboard/runner.mjs +67 -24
- package/dist/lib/testing/storyboard/runner.mjs.map +1 -1
- package/dist/lib/testing/storyboard/task-map.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/task-map.js +6 -2
- package/dist/lib/testing/storyboard/task-map.js.map +1 -1
- package/dist/lib/testing/storyboard/task-map.mjs +6 -2
- package/dist/lib/testing/storyboard/task-map.mjs.map +1 -1
- package/dist/lib/testing/storyboard/types.d.mts +5 -4
- package/dist/lib/testing/storyboard/types.d.ts +5 -4
- package/dist/lib/testing/storyboard/types.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/types.js.map +1 -1
- package/dist/lib/testing/storyboard/types.mjs.map +1 -1
- package/dist/lib/testing/storyboard/validations.d.mts +1 -1
- package/dist/lib/testing/storyboard/validations.d.ts +1 -1
- package/dist/lib/testing/storyboard/webhook-assertions.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/webhook-assertions.js +60 -4
- package/dist/lib/testing/storyboard/webhook-assertions.js.map +1 -1
- package/dist/lib/testing/storyboard/webhook-assertions.mjs +60 -4
- package/dist/lib/testing/storyboard/webhook-assertions.mjs.map +1 -1
- package/dist/lib/testing/storyboard/webhook-receiver.d.mts +15 -0
- package/dist/lib/testing/storyboard/webhook-receiver.d.ts +15 -0
- package/dist/lib/testing/storyboard/webhook-receiver.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/webhook-receiver.js +57 -6
- package/dist/lib/testing/storyboard/webhook-receiver.js.map +1 -1
- package/dist/lib/testing/storyboard/webhook-receiver.mjs +57 -6
- package/dist/lib/testing/storyboard/webhook-receiver.mjs.map +1 -1
- package/dist/lib/testing/types.d.mts +12 -0
- package/dist/lib/testing/types.d.ts +12 -0
- package/dist/lib/testing/types.d.ts.map +1 -1
- package/dist/lib/testing/types.js.map +1 -1
- package/dist/lib/types/comply-test-controller.d.ts +1 -14
- package/dist/lib/types/core.generated.d.mts +6 -3
- package/dist/lib/types/core.generated.d.ts +6 -3
- package/dist/lib/types/core.generated.d.ts.map +1 -1
- package/dist/lib/types/core.generated.js.map +1 -1
- package/dist/lib/types/get-products.d.ts +1 -14
- package/dist/lib/types/index.d.mts +1 -1
- package/dist/lib/types/index.d.ts +1 -1
- package/dist/lib/types/index.d.ts.map +1 -1
- package/dist/lib/types/index.js.map +1 -1
- package/dist/lib/types/index.mjs.map +1 -1
- package/dist/lib/types/list-transformers.d.ts +9 -5
- package/dist/lib/types/schemas.generated.d.ts +23 -352
- package/dist/lib/types/schemas.generated.d.ts.map +1 -1
- package/dist/lib/types/schemas.generated.js +7 -4
- package/dist/lib/types/schemas.generated.js.map +1 -1
- package/dist/lib/types/schemas.generated.mjs +6 -4
- package/dist/lib/types/schemas.generated.mjs.map +1 -1
- package/dist/lib/types/server-payload-aliases.d.mts +2 -1
- package/dist/lib/types/server-payload-aliases.d.ts +2 -1
- 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/types/tools.generated.d.mts +6 -3
- package/dist/lib/types/tools.generated.d.ts +6 -3
- package/dist/lib/types/tools.generated.d.ts.map +1 -1
- package/dist/lib/types/tools.generated.js.map +1 -1
- package/dist/lib/utils/build-creative-return-builders.d.mts +5 -1
- package/dist/lib/utils/build-creative-return-builders.d.ts +5 -1
- package/dist/lib/utils/build-creative-return-builders.d.ts.map +1 -1
- package/dist/lib/utils/build-creative-return-builders.js +9 -3
- package/dist/lib/utils/build-creative-return-builders.js.map +1 -1
- package/dist/lib/utils/build-creative-return-builders.mjs +7 -2
- package/dist/lib/utils/build-creative-return-builders.mjs.map +1 -1
- package/dist/lib/utils/response-unwrapper.js +1 -1
- package/dist/lib/utils/response-unwrapper.js.map +1 -1
- package/dist/lib/utils/response-unwrapper.mjs +1 -1
- package/dist/lib/utils/response-unwrapper.mjs.map +1 -1
- package/dist/lib/validation/schema-loader.d.ts.map +1 -1
- package/dist/lib/validation/schema-loader.js +16 -7
- package/dist/lib/validation/schema-loader.js.map +1 -1
- package/dist/lib/validation/schema-loader.mjs +16 -7
- package/dist/lib/validation/schema-loader.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/llms.txt +2 -2
- package/docs/migration-5.x-to-6.x.md +3 -2
- package/docs/migration-task-registry-scoping.md +61 -0
- package/examples/hello_seller_adapter_guaranteed.ts +1 -1
- package/package.json +5 -5
- package/skills/build-decisioning-creative-template/SKILL.md +2 -2
- package/skills/build-decisioning-platform/SKILL.md +4 -2
- package/skills/build-decisioning-platform/advanced/REFERENCE.md +7 -6
|
@@ -39,11 +39,395 @@
|
|
|
39
39
|
* });
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
42
|
-
import
|
|
42
|
+
import { z } from 'zod';
|
|
43
43
|
import * as schemas from '../types/schemas.generated';
|
|
44
|
+
import type { CanonicalGetProductsRequest } from '../v2/projection/creative-delivery';
|
|
44
45
|
import type { KnownToolRequestSchemas } from '../utils/tool-request-schemas';
|
|
45
46
|
import { type ResolvedToolSchemaDocument, type ResponseVariant } from '../validation/schema-loader';
|
|
46
47
|
export * from '../types/schemas.generated';
|
|
48
|
+
type LooseObjectSchemaFor<T extends object> = z.ZodObject<{
|
|
49
|
+
[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]>;
|
|
50
|
+
}, z.core.$loose> & z.ZodType<T & Record<string, unknown>, T & Record<string, unknown>>;
|
|
51
|
+
/** Wire-compatible request schema, including the legacy `format_ids` selector. */
|
|
52
|
+
export declare const LegacyGetProductsRequestSchema: z.ZodObject<{
|
|
53
|
+
adcp_version: z.ZodOptional<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
54
|
+
adcp_major_version: z.ZodOptional<z.ZodType<number, number, z.core.$ZodTypeInternals<number, number>>>;
|
|
55
|
+
idempotency_key: z.ZodOptional<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
56
|
+
buying_mode: z.ZodType<"brief" | "wholesale" | "refine", "brief" | "wholesale" | "refine", z.core.$ZodTypeInternals<"brief" | "wholesale" | "refine", "brief" | "wholesale" | "refine">>;
|
|
57
|
+
brief: z.ZodOptional<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
58
|
+
refine: z.ZodOptional<z.ZodType<({
|
|
59
|
+
scope: "request";
|
|
60
|
+
ask: string;
|
|
61
|
+
} | {
|
|
62
|
+
scope: "product";
|
|
63
|
+
product_id: string;
|
|
64
|
+
action?: "include" | "omit" | "more_like_this";
|
|
65
|
+
ask?: string;
|
|
66
|
+
} | {
|
|
67
|
+
scope: "proposal";
|
|
68
|
+
proposal_id: string;
|
|
69
|
+
action?: "include" | "omit" | "finalize";
|
|
70
|
+
ask?: string;
|
|
71
|
+
})[], ({
|
|
72
|
+
scope: "request";
|
|
73
|
+
ask: string;
|
|
74
|
+
} | {
|
|
75
|
+
scope: "product";
|
|
76
|
+
product_id: string;
|
|
77
|
+
action?: "include" | "omit" | "more_like_this";
|
|
78
|
+
ask?: string;
|
|
79
|
+
} | {
|
|
80
|
+
scope: "proposal";
|
|
81
|
+
proposal_id: string;
|
|
82
|
+
action?: "include" | "omit" | "finalize";
|
|
83
|
+
ask?: string;
|
|
84
|
+
})[], z.core.$ZodTypeInternals<({
|
|
85
|
+
scope: "request";
|
|
86
|
+
ask: string;
|
|
87
|
+
} | {
|
|
88
|
+
scope: "product";
|
|
89
|
+
product_id: string;
|
|
90
|
+
action?: "include" | "omit" | "more_like_this";
|
|
91
|
+
ask?: string;
|
|
92
|
+
} | {
|
|
93
|
+
scope: "proposal";
|
|
94
|
+
proposal_id: string;
|
|
95
|
+
action?: "include" | "omit" | "finalize";
|
|
96
|
+
ask?: string;
|
|
97
|
+
})[], ({
|
|
98
|
+
scope: "request";
|
|
99
|
+
ask: string;
|
|
100
|
+
} | {
|
|
101
|
+
scope: "product";
|
|
102
|
+
product_id: string;
|
|
103
|
+
action?: "include" | "omit" | "more_like_this";
|
|
104
|
+
ask?: string;
|
|
105
|
+
} | {
|
|
106
|
+
scope: "proposal";
|
|
107
|
+
proposal_id: string;
|
|
108
|
+
action?: "include" | "omit" | "finalize";
|
|
109
|
+
ask?: string;
|
|
110
|
+
})[]>>>;
|
|
111
|
+
brand: z.ZodOptional<z.ZodType<import("..").BrandReference, import("..").BrandReference, z.core.$ZodTypeInternals<import("..").BrandReference, import("..").BrandReference>>>;
|
|
112
|
+
catalog: z.ZodOptional<z.ZodType<import("..").Catalog, import("..").Catalog, z.core.$ZodTypeInternals<import("..").Catalog, import("..").Catalog>>>;
|
|
113
|
+
account: z.ZodOptional<z.ZodType<import("..").AccountReference, import("..").AccountReference, z.core.$ZodTypeInternals<import("..").AccountReference, import("..").AccountReference>>>;
|
|
114
|
+
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[]>>>;
|
|
115
|
+
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>>>;
|
|
116
|
+
targeting_overlay: z.ZodOptional<z.ZodType<{
|
|
117
|
+
geo_countries?: [string, ...string[]];
|
|
118
|
+
geo_countries_exclude?: [string, ...string[]];
|
|
119
|
+
geo_regions?: [string, ...string[]];
|
|
120
|
+
geo_regions_exclude?: [string, ...string[]];
|
|
121
|
+
geo_metros?: [{
|
|
122
|
+
system: import("../types/core.generated").MetroAreaSystem;
|
|
123
|
+
values: [string, ...string[]];
|
|
124
|
+
}, ...{
|
|
125
|
+
system: import("../types/core.generated").MetroAreaSystem;
|
|
126
|
+
values: [string, ...string[]];
|
|
127
|
+
}[]];
|
|
128
|
+
geo_metros_exclude?: [{
|
|
129
|
+
system: import("../types/core.generated").MetroAreaSystem;
|
|
130
|
+
values: [string, ...string[]];
|
|
131
|
+
}, ...{
|
|
132
|
+
system: import("../types/core.generated").MetroAreaSystem;
|
|
133
|
+
values: [string, ...string[]];
|
|
134
|
+
}[]];
|
|
135
|
+
geo_postal_areas?: [import("../types/tools.generated").PostalArea, ...import("../types/tools.generated").PostalArea[]];
|
|
136
|
+
geo_postal_areas_exclude?: [import("../types/tools.generated").PostalArea, ...import("../types/tools.generated").PostalArea[]];
|
|
137
|
+
geo_places?: [import("../types/tools.generated").GeographicPlaceArea, ...import("../types/tools.generated").GeographicPlaceArea[]];
|
|
138
|
+
geo_places_exclude?: [import("../types/tools.generated").GeographicPlaceArea, ...import("../types/tools.generated").GeographicPlaceArea[]];
|
|
139
|
+
daypart_targets?: [import("../types/tools.generated").DaypartTarget, ...import("../types/tools.generated").DaypartTarget[]];
|
|
140
|
+
axe_include_segment?: string;
|
|
141
|
+
axe_exclude_segment?: string;
|
|
142
|
+
audience_include?: [string, ...string[]];
|
|
143
|
+
audience_exclude?: [string, ...string[]];
|
|
144
|
+
signal_targeting_groups?: import("../types/tools.generated").PackageSignalTargetingGroups;
|
|
145
|
+
signal_targeting?: [import("..").SignalTargeting, ...import("..").SignalTargeting[]];
|
|
146
|
+
demographics?: import("../types/tools.generated").DemographicTargetingIntent;
|
|
147
|
+
frequency_cap?: import("..").FrequencyCap;
|
|
148
|
+
property_list?: import("../types/tools.generated").PropertyListReference;
|
|
149
|
+
property_list_exclude?: import("../types/tools.generated").PropertyListReference;
|
|
150
|
+
collection_list?: import("../types/tools.generated").CollectionListReference;
|
|
151
|
+
collection_list_exclude?: import("../types/tools.generated").CollectionListReference;
|
|
152
|
+
placement_selection?: import("../types/tools.generated").PlacementSelection;
|
|
153
|
+
age_restriction?: {
|
|
154
|
+
min: number;
|
|
155
|
+
verification_required?: boolean;
|
|
156
|
+
accepted_methods?: [import("../types/core.generated").AgeVerificationMethod, ...import("../types/core.generated").AgeVerificationMethod[]];
|
|
157
|
+
};
|
|
158
|
+
device_platform?: [import("../types/core.generated").DevicePlatform, ...import("../types/core.generated").DevicePlatform[]];
|
|
159
|
+
device_platform_exclude?: [import("../types/core.generated").DevicePlatform, ...import("../types/core.generated").DevicePlatform[]];
|
|
160
|
+
device_type?: [import("..").DeviceType, ...import("..").DeviceType[]];
|
|
161
|
+
device_type_exclude?: [import("..").DeviceType, ...import("..").DeviceType[]];
|
|
162
|
+
browser?: [import("../types/core.generated").BrowserFamily, ...import("../types/core.generated").BrowserFamily[]];
|
|
163
|
+
browser_exclude?: [import("../types/core.generated").BrowserFamily, ...import("../types/core.generated").BrowserFamily[]];
|
|
164
|
+
store_catchments?: [{
|
|
165
|
+
catalog_id: string;
|
|
166
|
+
store_ids?: [string, ...string[]];
|
|
167
|
+
catchment_ids?: [string, ...string[]];
|
|
168
|
+
}, ...{
|
|
169
|
+
catalog_id: string;
|
|
170
|
+
store_ids?: [string, ...string[]];
|
|
171
|
+
catchment_ids?: [string, ...string[]];
|
|
172
|
+
}[]];
|
|
173
|
+
geo_proximity?: [({} | {} | {}), ...({} | {} | {})[]];
|
|
174
|
+
language?: [import("../types/tools.generated").LanguageTag, ...import("../types/tools.generated").LanguageTag[]];
|
|
175
|
+
keyword_targets?: [{
|
|
176
|
+
keyword: string;
|
|
177
|
+
match_type: import("../types/core.generated").MatchType;
|
|
178
|
+
bid_price?: number;
|
|
179
|
+
}, ...{
|
|
180
|
+
keyword: string;
|
|
181
|
+
match_type: import("../types/core.generated").MatchType;
|
|
182
|
+
bid_price?: number;
|
|
183
|
+
}[]];
|
|
184
|
+
negative_keywords?: [{
|
|
185
|
+
keyword: string;
|
|
186
|
+
match_type: import("../types/core.generated").MatchType;
|
|
187
|
+
}, ...{
|
|
188
|
+
keyword: string;
|
|
189
|
+
match_type: import("../types/core.generated").MatchType;
|
|
190
|
+
}[]];
|
|
191
|
+
}, {
|
|
192
|
+
geo_countries?: [string, ...string[]];
|
|
193
|
+
geo_countries_exclude?: [string, ...string[]];
|
|
194
|
+
geo_regions?: [string, ...string[]];
|
|
195
|
+
geo_regions_exclude?: [string, ...string[]];
|
|
196
|
+
geo_metros?: [{
|
|
197
|
+
system: import("../types/core.generated").MetroAreaSystem;
|
|
198
|
+
values: [string, ...string[]];
|
|
199
|
+
}, ...{
|
|
200
|
+
system: import("../types/core.generated").MetroAreaSystem;
|
|
201
|
+
values: [string, ...string[]];
|
|
202
|
+
}[]];
|
|
203
|
+
geo_metros_exclude?: [{
|
|
204
|
+
system: import("../types/core.generated").MetroAreaSystem;
|
|
205
|
+
values: [string, ...string[]];
|
|
206
|
+
}, ...{
|
|
207
|
+
system: import("../types/core.generated").MetroAreaSystem;
|
|
208
|
+
values: [string, ...string[]];
|
|
209
|
+
}[]];
|
|
210
|
+
geo_postal_areas?: [import("../types/tools.generated").PostalArea, ...import("../types/tools.generated").PostalArea[]];
|
|
211
|
+
geo_postal_areas_exclude?: [import("../types/tools.generated").PostalArea, ...import("../types/tools.generated").PostalArea[]];
|
|
212
|
+
geo_places?: [import("../types/tools.generated").GeographicPlaceArea, ...import("../types/tools.generated").GeographicPlaceArea[]];
|
|
213
|
+
geo_places_exclude?: [import("../types/tools.generated").GeographicPlaceArea, ...import("../types/tools.generated").GeographicPlaceArea[]];
|
|
214
|
+
daypart_targets?: [import("../types/tools.generated").DaypartTarget, ...import("../types/tools.generated").DaypartTarget[]];
|
|
215
|
+
axe_include_segment?: string;
|
|
216
|
+
axe_exclude_segment?: string;
|
|
217
|
+
audience_include?: [string, ...string[]];
|
|
218
|
+
audience_exclude?: [string, ...string[]];
|
|
219
|
+
signal_targeting_groups?: import("../types/tools.generated").PackageSignalTargetingGroups;
|
|
220
|
+
signal_targeting?: [import("..").SignalTargeting, ...import("..").SignalTargeting[]];
|
|
221
|
+
demographics?: import("../types/tools.generated").DemographicTargetingIntent;
|
|
222
|
+
frequency_cap?: import("..").FrequencyCap;
|
|
223
|
+
property_list?: import("../types/tools.generated").PropertyListReference;
|
|
224
|
+
property_list_exclude?: import("../types/tools.generated").PropertyListReference;
|
|
225
|
+
collection_list?: import("../types/tools.generated").CollectionListReference;
|
|
226
|
+
collection_list_exclude?: import("../types/tools.generated").CollectionListReference;
|
|
227
|
+
placement_selection?: import("../types/tools.generated").PlacementSelection;
|
|
228
|
+
age_restriction?: {
|
|
229
|
+
min: number;
|
|
230
|
+
verification_required?: boolean;
|
|
231
|
+
accepted_methods?: [import("../types/core.generated").AgeVerificationMethod, ...import("../types/core.generated").AgeVerificationMethod[]];
|
|
232
|
+
};
|
|
233
|
+
device_platform?: [import("../types/core.generated").DevicePlatform, ...import("../types/core.generated").DevicePlatform[]];
|
|
234
|
+
device_platform_exclude?: [import("../types/core.generated").DevicePlatform, ...import("../types/core.generated").DevicePlatform[]];
|
|
235
|
+
device_type?: [import("..").DeviceType, ...import("..").DeviceType[]];
|
|
236
|
+
device_type_exclude?: [import("..").DeviceType, ...import("..").DeviceType[]];
|
|
237
|
+
browser?: [import("../types/core.generated").BrowserFamily, ...import("../types/core.generated").BrowserFamily[]];
|
|
238
|
+
browser_exclude?: [import("../types/core.generated").BrowserFamily, ...import("../types/core.generated").BrowserFamily[]];
|
|
239
|
+
store_catchments?: [{
|
|
240
|
+
catalog_id: string;
|
|
241
|
+
store_ids?: [string, ...string[]];
|
|
242
|
+
catchment_ids?: [string, ...string[]];
|
|
243
|
+
}, ...{
|
|
244
|
+
catalog_id: string;
|
|
245
|
+
store_ids?: [string, ...string[]];
|
|
246
|
+
catchment_ids?: [string, ...string[]];
|
|
247
|
+
}[]];
|
|
248
|
+
geo_proximity?: [({} | {} | {}), ...({} | {} | {})[]];
|
|
249
|
+
language?: [import("../types/tools.generated").LanguageTag, ...import("../types/tools.generated").LanguageTag[]];
|
|
250
|
+
keyword_targets?: [{
|
|
251
|
+
keyword: string;
|
|
252
|
+
match_type: import("../types/core.generated").MatchType;
|
|
253
|
+
bid_price?: number;
|
|
254
|
+
}, ...{
|
|
255
|
+
keyword: string;
|
|
256
|
+
match_type: import("../types/core.generated").MatchType;
|
|
257
|
+
bid_price?: number;
|
|
258
|
+
}[]];
|
|
259
|
+
negative_keywords?: [{
|
|
260
|
+
keyword: string;
|
|
261
|
+
match_type: import("../types/core.generated").MatchType;
|
|
262
|
+
}, ...{
|
|
263
|
+
keyword: string;
|
|
264
|
+
match_type: import("../types/core.generated").MatchType;
|
|
265
|
+
}[]];
|
|
266
|
+
}, z.core.$ZodTypeInternals<{
|
|
267
|
+
geo_countries?: [string, ...string[]];
|
|
268
|
+
geo_countries_exclude?: [string, ...string[]];
|
|
269
|
+
geo_regions?: [string, ...string[]];
|
|
270
|
+
geo_regions_exclude?: [string, ...string[]];
|
|
271
|
+
geo_metros?: [{
|
|
272
|
+
system: import("../types/core.generated").MetroAreaSystem;
|
|
273
|
+
values: [string, ...string[]];
|
|
274
|
+
}, ...{
|
|
275
|
+
system: import("../types/core.generated").MetroAreaSystem;
|
|
276
|
+
values: [string, ...string[]];
|
|
277
|
+
}[]];
|
|
278
|
+
geo_metros_exclude?: [{
|
|
279
|
+
system: import("../types/core.generated").MetroAreaSystem;
|
|
280
|
+
values: [string, ...string[]];
|
|
281
|
+
}, ...{
|
|
282
|
+
system: import("../types/core.generated").MetroAreaSystem;
|
|
283
|
+
values: [string, ...string[]];
|
|
284
|
+
}[]];
|
|
285
|
+
geo_postal_areas?: [import("../types/tools.generated").PostalArea, ...import("../types/tools.generated").PostalArea[]];
|
|
286
|
+
geo_postal_areas_exclude?: [import("../types/tools.generated").PostalArea, ...import("../types/tools.generated").PostalArea[]];
|
|
287
|
+
geo_places?: [import("../types/tools.generated").GeographicPlaceArea, ...import("../types/tools.generated").GeographicPlaceArea[]];
|
|
288
|
+
geo_places_exclude?: [import("../types/tools.generated").GeographicPlaceArea, ...import("../types/tools.generated").GeographicPlaceArea[]];
|
|
289
|
+
daypart_targets?: [import("../types/tools.generated").DaypartTarget, ...import("../types/tools.generated").DaypartTarget[]];
|
|
290
|
+
axe_include_segment?: string;
|
|
291
|
+
axe_exclude_segment?: string;
|
|
292
|
+
audience_include?: [string, ...string[]];
|
|
293
|
+
audience_exclude?: [string, ...string[]];
|
|
294
|
+
signal_targeting_groups?: import("../types/tools.generated").PackageSignalTargetingGroups;
|
|
295
|
+
signal_targeting?: [import("..").SignalTargeting, ...import("..").SignalTargeting[]];
|
|
296
|
+
demographics?: import("../types/tools.generated").DemographicTargetingIntent;
|
|
297
|
+
frequency_cap?: import("..").FrequencyCap;
|
|
298
|
+
property_list?: import("../types/tools.generated").PropertyListReference;
|
|
299
|
+
property_list_exclude?: import("../types/tools.generated").PropertyListReference;
|
|
300
|
+
collection_list?: import("../types/tools.generated").CollectionListReference;
|
|
301
|
+
collection_list_exclude?: import("../types/tools.generated").CollectionListReference;
|
|
302
|
+
placement_selection?: import("../types/tools.generated").PlacementSelection;
|
|
303
|
+
age_restriction?: {
|
|
304
|
+
min: number;
|
|
305
|
+
verification_required?: boolean;
|
|
306
|
+
accepted_methods?: [import("../types/core.generated").AgeVerificationMethod, ...import("../types/core.generated").AgeVerificationMethod[]];
|
|
307
|
+
};
|
|
308
|
+
device_platform?: [import("../types/core.generated").DevicePlatform, ...import("../types/core.generated").DevicePlatform[]];
|
|
309
|
+
device_platform_exclude?: [import("../types/core.generated").DevicePlatform, ...import("../types/core.generated").DevicePlatform[]];
|
|
310
|
+
device_type?: [import("..").DeviceType, ...import("..").DeviceType[]];
|
|
311
|
+
device_type_exclude?: [import("..").DeviceType, ...import("..").DeviceType[]];
|
|
312
|
+
browser?: [import("../types/core.generated").BrowserFamily, ...import("../types/core.generated").BrowserFamily[]];
|
|
313
|
+
browser_exclude?: [import("../types/core.generated").BrowserFamily, ...import("../types/core.generated").BrowserFamily[]];
|
|
314
|
+
store_catchments?: [{
|
|
315
|
+
catalog_id: string;
|
|
316
|
+
store_ids?: [string, ...string[]];
|
|
317
|
+
catchment_ids?: [string, ...string[]];
|
|
318
|
+
}, ...{
|
|
319
|
+
catalog_id: string;
|
|
320
|
+
store_ids?: [string, ...string[]];
|
|
321
|
+
catchment_ids?: [string, ...string[]];
|
|
322
|
+
}[]];
|
|
323
|
+
geo_proximity?: [({} | {} | {}), ...({} | {} | {})[]];
|
|
324
|
+
language?: [import("../types/tools.generated").LanguageTag, ...import("../types/tools.generated").LanguageTag[]];
|
|
325
|
+
keyword_targets?: [{
|
|
326
|
+
keyword: string;
|
|
327
|
+
match_type: import("../types/core.generated").MatchType;
|
|
328
|
+
bid_price?: number;
|
|
329
|
+
}, ...{
|
|
330
|
+
keyword: string;
|
|
331
|
+
match_type: import("../types/core.generated").MatchType;
|
|
332
|
+
bid_price?: number;
|
|
333
|
+
}[]];
|
|
334
|
+
negative_keywords?: [{
|
|
335
|
+
keyword: string;
|
|
336
|
+
match_type: import("../types/core.generated").MatchType;
|
|
337
|
+
}, ...{
|
|
338
|
+
keyword: string;
|
|
339
|
+
match_type: import("../types/core.generated").MatchType;
|
|
340
|
+
}[]];
|
|
341
|
+
}, {
|
|
342
|
+
geo_countries?: [string, ...string[]];
|
|
343
|
+
geo_countries_exclude?: [string, ...string[]];
|
|
344
|
+
geo_regions?: [string, ...string[]];
|
|
345
|
+
geo_regions_exclude?: [string, ...string[]];
|
|
346
|
+
geo_metros?: [{
|
|
347
|
+
system: import("../types/core.generated").MetroAreaSystem;
|
|
348
|
+
values: [string, ...string[]];
|
|
349
|
+
}, ...{
|
|
350
|
+
system: import("../types/core.generated").MetroAreaSystem;
|
|
351
|
+
values: [string, ...string[]];
|
|
352
|
+
}[]];
|
|
353
|
+
geo_metros_exclude?: [{
|
|
354
|
+
system: import("../types/core.generated").MetroAreaSystem;
|
|
355
|
+
values: [string, ...string[]];
|
|
356
|
+
}, ...{
|
|
357
|
+
system: import("../types/core.generated").MetroAreaSystem;
|
|
358
|
+
values: [string, ...string[]];
|
|
359
|
+
}[]];
|
|
360
|
+
geo_postal_areas?: [import("../types/tools.generated").PostalArea, ...import("../types/tools.generated").PostalArea[]];
|
|
361
|
+
geo_postal_areas_exclude?: [import("../types/tools.generated").PostalArea, ...import("../types/tools.generated").PostalArea[]];
|
|
362
|
+
geo_places?: [import("../types/tools.generated").GeographicPlaceArea, ...import("../types/tools.generated").GeographicPlaceArea[]];
|
|
363
|
+
geo_places_exclude?: [import("../types/tools.generated").GeographicPlaceArea, ...import("../types/tools.generated").GeographicPlaceArea[]];
|
|
364
|
+
daypart_targets?: [import("../types/tools.generated").DaypartTarget, ...import("../types/tools.generated").DaypartTarget[]];
|
|
365
|
+
axe_include_segment?: string;
|
|
366
|
+
axe_exclude_segment?: string;
|
|
367
|
+
audience_include?: [string, ...string[]];
|
|
368
|
+
audience_exclude?: [string, ...string[]];
|
|
369
|
+
signal_targeting_groups?: import("../types/tools.generated").PackageSignalTargetingGroups;
|
|
370
|
+
signal_targeting?: [import("..").SignalTargeting, ...import("..").SignalTargeting[]];
|
|
371
|
+
demographics?: import("../types/tools.generated").DemographicTargetingIntent;
|
|
372
|
+
frequency_cap?: import("..").FrequencyCap;
|
|
373
|
+
property_list?: import("../types/tools.generated").PropertyListReference;
|
|
374
|
+
property_list_exclude?: import("../types/tools.generated").PropertyListReference;
|
|
375
|
+
collection_list?: import("../types/tools.generated").CollectionListReference;
|
|
376
|
+
collection_list_exclude?: import("../types/tools.generated").CollectionListReference;
|
|
377
|
+
placement_selection?: import("../types/tools.generated").PlacementSelection;
|
|
378
|
+
age_restriction?: {
|
|
379
|
+
min: number;
|
|
380
|
+
verification_required?: boolean;
|
|
381
|
+
accepted_methods?: [import("../types/core.generated").AgeVerificationMethod, ...import("../types/core.generated").AgeVerificationMethod[]];
|
|
382
|
+
};
|
|
383
|
+
device_platform?: [import("../types/core.generated").DevicePlatform, ...import("../types/core.generated").DevicePlatform[]];
|
|
384
|
+
device_platform_exclude?: [import("../types/core.generated").DevicePlatform, ...import("../types/core.generated").DevicePlatform[]];
|
|
385
|
+
device_type?: [import("..").DeviceType, ...import("..").DeviceType[]];
|
|
386
|
+
device_type_exclude?: [import("..").DeviceType, ...import("..").DeviceType[]];
|
|
387
|
+
browser?: [import("../types/core.generated").BrowserFamily, ...import("../types/core.generated").BrowserFamily[]];
|
|
388
|
+
browser_exclude?: [import("../types/core.generated").BrowserFamily, ...import("../types/core.generated").BrowserFamily[]];
|
|
389
|
+
store_catchments?: [{
|
|
390
|
+
catalog_id: string;
|
|
391
|
+
store_ids?: [string, ...string[]];
|
|
392
|
+
catchment_ids?: [string, ...string[]];
|
|
393
|
+
}, ...{
|
|
394
|
+
catalog_id: string;
|
|
395
|
+
store_ids?: [string, ...string[]];
|
|
396
|
+
catchment_ids?: [string, ...string[]];
|
|
397
|
+
}[]];
|
|
398
|
+
geo_proximity?: [({} | {} | {}), ...({} | {} | {})[]];
|
|
399
|
+
language?: [import("../types/tools.generated").LanguageTag, ...import("../types/tools.generated").LanguageTag[]];
|
|
400
|
+
keyword_targets?: [{
|
|
401
|
+
keyword: string;
|
|
402
|
+
match_type: import("../types/core.generated").MatchType;
|
|
403
|
+
bid_price?: number;
|
|
404
|
+
}, ...{
|
|
405
|
+
keyword: string;
|
|
406
|
+
match_type: import("../types/core.generated").MatchType;
|
|
407
|
+
bid_price?: number;
|
|
408
|
+
}[]];
|
|
409
|
+
negative_keywords?: [{
|
|
410
|
+
keyword: string;
|
|
411
|
+
match_type: import("../types/core.generated").MatchType;
|
|
412
|
+
}, ...{
|
|
413
|
+
keyword: string;
|
|
414
|
+
match_type: import("../types/core.generated").MatchType;
|
|
415
|
+
}[]];
|
|
416
|
+
}>>>;
|
|
417
|
+
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>>>;
|
|
418
|
+
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>>>;
|
|
419
|
+
fields: z.ZodOptional<z.ZodType<("name" | "forecast" | "description" | "publisher_properties" | "audience_evidence" | "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" | "catalog_types" | "signal_targeting_allowed" | "signal_targeting_rules" | "demographic_targeting" | "audience_evidence_selections" | "max_optimization_goals" | "catalog_match" | "brief_relevance" | "expires_at" | "product_card" | "format_ids" | "outcome_measurement" | "delivery_measurement" | "creative_policy" | "metric_optimization" | "conversion_tracking" | "data_provider_signals" | "included_signals" | "signal_targeting_options" | "overlay_support" | "targeting_resolution" | "collections" | "collection_targeting_allowed" | "installments" | "is_custom" | "product_card_detailed" | "enforced_policies" | "trusted_match")[], ("name" | "forecast" | "description" | "publisher_properties" | "audience_evidence" | "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" | "catalog_types" | "signal_targeting_allowed" | "signal_targeting_rules" | "demographic_targeting" | "audience_evidence_selections" | "max_optimization_goals" | "catalog_match" | "brief_relevance" | "expires_at" | "product_card" | "format_ids" | "outcome_measurement" | "delivery_measurement" | "creative_policy" | "metric_optimization" | "conversion_tracking" | "data_provider_signals" | "included_signals" | "signal_targeting_options" | "overlay_support" | "targeting_resolution" | "collections" | "collection_targeting_allowed" | "installments" | "is_custom" | "product_card_detailed" | "enforced_policies" | "trusted_match")[], z.core.$ZodTypeInternals<("name" | "forecast" | "description" | "publisher_properties" | "audience_evidence" | "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" | "catalog_types" | "signal_targeting_allowed" | "signal_targeting_rules" | "demographic_targeting" | "audience_evidence_selections" | "max_optimization_goals" | "catalog_match" | "brief_relevance" | "expires_at" | "product_card" | "format_ids" | "outcome_measurement" | "delivery_measurement" | "creative_policy" | "metric_optimization" | "conversion_tracking" | "data_provider_signals" | "included_signals" | "signal_targeting_options" | "overlay_support" | "targeting_resolution" | "collections" | "collection_targeting_allowed" | "installments" | "is_custom" | "product_card_detailed" | "enforced_policies" | "trusted_match")[], ("name" | "forecast" | "description" | "publisher_properties" | "audience_evidence" | "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" | "catalog_types" | "signal_targeting_allowed" | "signal_targeting_rules" | "demographic_targeting" | "audience_evidence_selections" | "max_optimization_goals" | "catalog_match" | "brief_relevance" | "expires_at" | "product_card" | "format_ids" | "outcome_measurement" | "delivery_measurement" | "creative_policy" | "metric_optimization" | "conversion_tracking" | "data_provider_signals" | "included_signals" | "signal_targeting_options" | "overlay_support" | "targeting_resolution" | "collections" | "collection_targeting_allowed" | "installments" | "is_custom" | "product_card_detailed" | "enforced_policies" | "trusted_match")[]>>>;
|
|
420
|
+
time_budget: z.ZodOptional<z.ZodType<import("..").Duration, import("..").Duration, z.core.$ZodTypeInternals<import("..").Duration, import("..").Duration>>>;
|
|
421
|
+
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>>>;
|
|
422
|
+
pagination: z.ZodOptional<z.ZodType<import("..").PaginationRequest, import("..").PaginationRequest, z.core.$ZodTypeInternals<import("..").PaginationRequest, import("..").PaginationRequest>>>;
|
|
423
|
+
if_wholesale_feed_version: z.ZodOptional<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
424
|
+
if_pricing_version: z.ZodOptional<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
425
|
+
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>>>;
|
|
426
|
+
required_policies: z.ZodOptional<z.ZodType<string[], string[], z.core.$ZodTypeInternals<string[], string[]>>>;
|
|
427
|
+
ext: z.ZodOptional<z.ZodType<import("..").ExtensionObject, import("..").ExtensionObject, z.core.$ZodTypeInternals<import("..").ExtensionObject, import("..").ExtensionObject>>>;
|
|
428
|
+
}, 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>>>;
|
|
429
|
+
/** Primary request schema; legacy `format_ids` selection is rejected. */
|
|
430
|
+
export declare const GetProductsRequestSchema: LooseObjectSchemaFor<CanonicalGetProductsRequest>;
|
|
47
431
|
export { BiddingPolicySchema } from '../validation/bidding-policy';
|
|
48
432
|
export { CanonicalBudgetAllocationSchema } from '../validation/budget-allocation';
|
|
49
433
|
export { TOOL_REQUEST_SCHEMAS } from '../utils/tool-request-schemas';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC;AAEtD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAEtF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,eAAe,EACrB,MAAM,6BAA6B,CAAC;AAGrC,cAAc,4BAA4B,CAAC;AAE3C,KAAK,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,CAAC,SAAS,CACvD;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,SAAS,SAAS,CAAC,CAAC,CAAC,CAAC,GACpC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,GAC5E,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CAC1B,EACD,CAAC,CAAC,IAAI,CAAC,MAAM,CACd,GACC,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAEtE,kFAAkF;AAClF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA8L87mB,CAAC;4BAA2K,CAAC;;;;;;;;;;qBAAwgG,CAAC;yBAAiM,CAAC;;;qBAAoS,CAAC;yBAAiM,CAAC;;;;;;;qBAAu8D,CAAC;;;;qBAAkgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAA1yM,CAAC;4BAA2K,CAAC;;;;;;;;;;qBAAwgG,CAAC;yBAAiM,CAAC;;;qBAAoS,CAAC;yBAAiM,CAAC;;;;;;;qBAAu8D,CAAC;;;;qBAAkgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAA1yM,CAAC;4BAA2K,CAAC;;;;;;;;;;qBAAwgG,CAAC;yBAAiM,CAAC;;;qBAAoS,CAAC;yBAAiM,CAAC;;;;;;;qBAAu8D,CAAC;;;;qBAAkgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAA1yM,CAAC;4BAA2K,CAAC;;;;;;;;;;qBAAwgG,CAAC;yBAAiM,CAAC;;;qBAAoS,CAAC;yBAAiM,CAAC;;;;;;;qBAAu8D,CAAC;;;;qBAAkgB,CAAC;;;;;;;;;;;;;;;;;;;;;2TA9LrszB,CAAC;AAO/E,yEAAyE;AACzE,eAAO,MAAM,wBAAwB,EAEpB,oBAAoB,CAAC,2BAA2B,CAAC,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EACL,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,yBAAyB,GAC1B,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAElG,MAAM,WAAW,uBAAuB;IACtC,kFAAkF;IAClF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,+BAAgC,SAAQ,uBAAuB;IAC9E,6EAA6E;IAC7E,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B;AAED,MAAM,MAAM,mBAAmB,GAAG,0BAA0B,CAAC;AAE7D,sFAAsF;AACtF,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,uBAA4B,GACpC,mBAAmB,GAAG,SAAS,CAEjC;AAED,qFAAqF;AACrF,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,+BAAoC,GAC5C,mBAAmB,GAAG,SAAS,CAEjC;AAED,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;AAC5C,KAAK,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC;AAC7B,KAAK,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS;IAAE,KAAK,EAAE,MAAM,MAAM,SAAS,UAAU,CAAA;CAAE,GAAG,MAAM,GAAG,KAAK,CAAC;AACxF,KAAK,eAAe,GAAG;KACpB,CAAC,IAAI,MAAM,uBAAuB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;CAC1E,GAAG;IACF,iBAAiB,EAAE,OAAO,OAAO,CAAC,6BAA6B,CAAC,KAAK,CAAC;IACtE,aAAa,EAAE,OAAO,OAAO,CAAC,yBAAyB,CAAC,KAAK,CAAC;IAC9D,mBAAmB,EAAE,OAAO,OAAO,CAAC,kCAAkC,CAAC,KAAK,CAAC;CAC9E,GAAG;IACF,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC;CAC/D,CAAC;AAEF,KAAK,gBAAgB,GAAG;KACrB,CAAC,IAAI,MAAM,uBAAuB,GAAG,uBAAuB,CAAC,CAAC,CAAC;CACjE,GAAG;IACF,iBAAiB,EAAE,OAAO,OAAO,CAAC,6BAA6B,CAAC;IAChE,aAAa,EAAE,OAAO,OAAO,CAAC,yBAAyB,CAAC;IACxD,kBAAkB,EAAE,OAAO,OAAO,CAAC,6BAA6B,CAAC;IACjE,mBAAmB,EAAE,OAAO,OAAO,CAAC,kCAAkC,CAAC;CACxE,GAAG;IACF,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;CACtD,CAAC;AAOF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,iBAAiB,EAexB,QAAQ,CAAC,eAAe,CAAC,CAAC;AAEhC;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,EAMzB,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AAEjC;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,MAAM,SAAS,UAAU,EACrD,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,GAC3F;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9F,CAOA;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,SAAS,WAAW,EAC7D,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,OAAO,EACpB,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,GAC/E;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAClF,CAGA"}
|
|
@@ -31,6 +31,8 @@ var schemas_exports = {};
|
|
|
31
31
|
__export(schemas_exports, {
|
|
32
32
|
BiddingPolicySchema: () => import_bidding_policy.BiddingPolicySchema,
|
|
33
33
|
CanonicalBudgetAllocationSchema: () => import_budget_allocation.CanonicalBudgetAllocationSchema,
|
|
34
|
+
GetProductsRequestSchema: () => GetProductsRequestSchema,
|
|
35
|
+
LegacyGetProductsRequestSchema: () => LegacyGetProductsRequestSchema,
|
|
34
36
|
SyncCreativesActionSchema: () => import_sync_creatives.SyncCreativesActionSchema,
|
|
35
37
|
SyncCreativesItemSchema: () => import_sync_creatives.SyncCreativesItemSchema,
|
|
36
38
|
SyncCreativesResponseStrictSchema: () => import_sync_creatives.SyncCreativesResponseStrictSchema,
|
|
@@ -45,7 +47,9 @@ __export(schemas_exports, {
|
|
|
45
47
|
getToolResponseSchema: () => getToolResponseSchema
|
|
46
48
|
});
|
|
47
49
|
module.exports = __toCommonJS(schemas_exports);
|
|
50
|
+
var import_zod = require("zod");
|
|
48
51
|
var schemas = __toESM(require('../types/schemas.generated.js'));
|
|
52
|
+
var import_inline_enums = require('../types/inline-enums.generated.js');
|
|
49
53
|
var import_tool_request_schemas = require('../utils/tool-request-schemas.js');
|
|
50
54
|
var import_schema_loader = require('../validation/schema-loader.js');
|
|
51
55
|
var import_adcp_version_config = require('../utils/adcp-version-config.js');
|
|
@@ -55,6 +59,13 @@ var import_budget_allocation = require('../validation/budget-allocation.js');
|
|
|
55
59
|
var import_tool_request_schemas2 = require('../utils/tool-request-schemas.js');
|
|
56
60
|
var import_response_schemas = require('../utils/response-schemas.js');
|
|
57
61
|
var import_sync_creatives = require('../validation/sync-creatives.js');
|
|
62
|
+
const LegacyGetProductsRequestSchema = schemas.GetProductsRequestSchema;
|
|
63
|
+
const canonicalGetProductsFields = import_inline_enums.GetProductsRequest_FieldsValues.filter(
|
|
64
|
+
(field) => field !== "format_ids"
|
|
65
|
+
);
|
|
66
|
+
const GetProductsRequestSchema = schemas.GetProductsRequestSchema.safeExtend({
|
|
67
|
+
fields: import_zod.z.array(import_zod.z.enum(canonicalGetProductsFields)).optional()
|
|
68
|
+
});
|
|
58
69
|
function getToolInputSchema(toolName, options = {}) {
|
|
59
70
|
return (0, import_schema_loader.getToolSchemaDocument)(toolName, "request", (0, import_adcp_version_config.resolveAdcpVersion)(options.adcpVersion));
|
|
60
71
|
}
|
|
@@ -100,6 +111,8 @@ function customToolForSchema(name, description, inputSchema, handler) {
|
|
|
100
111
|
0 && (module.exports = {
|
|
101
112
|
BiddingPolicySchema,
|
|
102
113
|
CanonicalBudgetAllocationSchema,
|
|
114
|
+
GetProductsRequestSchema,
|
|
115
|
+
LegacyGetProductsRequestSchema,
|
|
103
116
|
SyncCreativesActionSchema,
|
|
104
117
|
SyncCreativesItemSchema,
|
|
105
118
|
SyncCreativesResponseStrictSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/schemas/index.ts"],"sourcesContent":["/**\n * Consolidated schema exports for MCP tool registration.\n *\n * The generated Zod schemas in `../types/schemas.generated` cover every\n * AdCP tool — the framework-registered {@link AdcpToolMap} tools AND\n * tools like `creative_approval`, `search_brands`, and brand verification\n * tasks that ship as `customTools` extensions because the spec models them\n * outside the SDK's framework-registered surface.\n *\n * This module re-exports the generated schemas plus two convenience\n * helpers for the `customTools` registration path:\n *\n * - {@link TOOL_INPUT_SHAPES}: `toolName → raw Zod shape` map, ready to\n * pass as `inputSchema` to MCP SDK's `server.registerTool()` when the\n * request schema is a ZodObject.\n * - {@link TOOL_INPUT_SCHEMAS}: `toolName → full Zod schema` map for\n * custom tools whose request schema is a union/intersection and cannot\n * be represented as a raw shape without weakening validation.\n * - {@link TOOL_RESPONSE_SCHEMAS}: `toolName → full Zod response schema`\n * map for response validation and compliance tooling.\n * - {@link customToolFor}: sugar for registering a single custom tool\n * with type-safe `handler` params derived from the schema's shape.\n * - {@link customToolForSchema}: same sugar for full Zod schemas.\n *\n * ```ts\n * import { createAdcpServer } from '@adcp/sdk/server/legacy/v5';\n * import { TOOL_INPUT_SHAPES, customToolFor } from '@adcp/sdk/schemas';\n *\n * createAdcpServer({\n * customTools: {\n * creative_approval: customToolFor(\n * 'creative_approval',\n * 'Accept a buyer creative for approval.',\n * TOOL_INPUT_SHAPES.creative_approval,\n * async (args, extra) => { ... },\n * ),\n * },\n * ...,\n * });\n * ```\n */\n\nimport type { z } from 'zod';\nimport * as schemas from '../types/schemas.generated';\nimport { TOOL_REQUEST_SCHEMAS } from '../utils/tool-request-schemas';\nimport type { KnownToolRequestSchemas } from '../utils/tool-request-schemas';\nimport {\n getToolSchemaDocument,\n type ResolvedToolSchemaDocument,\n type ResponseVariant,\n} from '../validation/schema-loader';\nimport { resolveAdcpVersion } from '../utils/adcp-version-config';\n\nexport * from '../types/schemas.generated';\nexport { BiddingPolicySchema } from '../validation/bidding-policy';\nexport { CanonicalBudgetAllocationSchema } from '../validation/budget-allocation';\nexport { TOOL_REQUEST_SCHEMAS } from '../utils/tool-request-schemas';\nexport { TOOL_RESPONSE_SCHEMAS } from '../utils/response-schemas';\nexport {\n SyncCreativesItemSchema,\n SyncCreativesSuccessStrictSchema,\n SyncCreativesResponseStrictSchema,\n SyncCreativesActionSchema,\n} from '../validation/sync-creatives';\nexport type { SyncCreativesItem, SyncCreativesSuccessStrict } from '../validation/sync-creatives';\n\nexport interface ToolSchemaLookupOptions {\n /** AdCP release/minor/legacy alias resolved through the bundled schema loader. */\n adcpVersion?: string;\n}\n\nexport interface ToolResponseSchemaLookupOptions extends ToolSchemaLookupOptions {\n /** Response arm to retrieve. Defaults to the synchronous response schema. */\n variant?: ResponseVariant;\n}\n\nexport type VersionedToolSchema = ResolvedToolSchemaDocument;\n\n/** Retrieve the protocol-authored request JSON Schema for a specific AdCP release. */\nexport function getToolInputSchema(\n toolName: string,\n options: ToolSchemaLookupOptions = {}\n): VersionedToolSchema | undefined {\n return getToolSchemaDocument(toolName, 'request', resolveAdcpVersion(options.adcpVersion));\n}\n\n/** Retrieve a protocol-authored response JSON Schema for a specific AdCP release. */\nexport function getToolResponseSchema(\n toolName: string,\n options: ToolResponseSchemaLookupOptions = {}\n): VersionedToolSchema | undefined {\n return getToolSchemaDocument(toolName, options.variant ?? 'sync', resolveAdcpVersion(options.adcpVersion));\n}\n\ntype InputShape = Record<string, z.ZodType>;\ntype InputSchema = z.ZodType;\ntype ShapeOf<T> = T extends { shape: infer TShape extends InputShape } ? TShape : never;\ntype ToolInputShapes = {\n [K in keyof KnownToolRequestSchemas]: ShapeOf<KnownToolRequestSchemas[K]>;\n} & {\n creative_approval: typeof schemas.CreativeApprovalRequestSchema.shape;\n search_brands: typeof schemas.SearchBrandsRequestSchema.shape;\n verify_brand_claims: typeof schemas.VerifyBrandClaimsRequestBulkSchema.shape;\n} & {\n readonly [toolName: string]: Readonly<InputShape> | undefined;\n};\n\ntype ToolInputSchemas = {\n [K in keyof KnownToolRequestSchemas]: KnownToolRequestSchemas[K];\n} & {\n creative_approval: typeof schemas.CreativeApprovalRequestSchema;\n search_brands: typeof schemas.SearchBrandsRequestSchema;\n verify_brand_claim: typeof schemas.VerifyBrandClaimRequestSchema;\n verify_brand_claims: typeof schemas.VerifyBrandClaimsRequestBulkSchema;\n} & {\n readonly [toolName: string]: InputSchema | undefined;\n};\n\nfunction shapeOf<T extends { shape?: InputShape }>(s: T | undefined): T['shape'] | undefined {\n const candidate = s?.shape;\n return candidate && typeof candidate === 'object' ? candidate : undefined;\n}\n\n/**\n * Map of every known AdCP tool name to its Zod input shape — i.e., the\n * `.shape` of its request schema, ready to pass as `inputSchema` to MCP\n * SDK's `server.registerTool()`.\n *\n * Superset of {@link TOOL_REQUEST_SCHEMAS}: covers every tool already\n * registered with the framework (get_products, create_media_buy,\n * sync_catalogs, check_governance, comply_test_controller, all five\n * *_collection_list tools, validate_property_delivery, acquire_rights,\n * et al.) PLUS shape-compatible custom surfaces such as `creative_approval`,\n * `search_brands`, and `verify_brand_claims` so sellers don't have to\n * hand-author shapes for those either.\n *\n * `verify_brand_claim` is intentionally not present here: its request schema\n * is an envelope intersected with a claim-variant union, so use\n * {@link TOOL_INPUT_SCHEMAS} with {@link customToolForSchema} to preserve the\n * discriminated union at validation time.\n *\n * Known tool names retain exact `.shape` field types for IDE completion and\n * handler inference. Arbitrary string lookups return `undefined` until callers\n * narrow the tool name to a known key.\n *\n * If a future AdCP release adds a new tool with a generated request\n * schema, add its entry here (or to `TOOL_REQUEST_SCHEMAS` if it's\n * framework-registrable) — CI's `ci:schema-check` catches missing\n * map entries by diffing against the generated schemas.\n */\nexport const TOOL_INPUT_SHAPES = Object.freeze({\n ...Object.fromEntries(\n Object.entries(TOOL_REQUEST_SCHEMAS).map(([k, s]) => {\n const shape = shapeOf(s);\n if (!shape) {\n throw new Error(\n `TOOL_REQUEST_SCHEMAS[\"${k}\"] has no .shape — schema must be a ZodObject (use merge() not and())`\n );\n }\n return [k, shape] as const;\n })\n ),\n creative_approval: schemas.CreativeApprovalRequestSchema.shape,\n search_brands: schemas.SearchBrandsRequestSchema.shape,\n verify_brand_claims: schemas.VerifyBrandClaimsRequestBulkSchema.shape,\n}) as Readonly<ToolInputShapes>;\n\n/**\n * Map of known AdCP tool names to their full generated Zod request schemas.\n *\n * Prefer {@link TOOL_INPUT_SHAPES} when registering a shape-compatible tool\n * with `registerTool()`. Use this map for union/intersection request schemas,\n * notably `verify_brand_claim`, where a raw shape would lose the correlation\n * between `claim_type` and the corresponding `claim` payload.\n */\nexport const TOOL_INPUT_SCHEMAS = Object.freeze({\n ...TOOL_REQUEST_SCHEMAS,\n creative_approval: schemas.CreativeApprovalRequestSchema,\n search_brands: schemas.SearchBrandsRequestSchema,\n verify_brand_claim: schemas.VerifyBrandClaimRequestSchema,\n verify_brand_claims: schemas.VerifyBrandClaimsRequestBulkSchema,\n}) as Readonly<ToolInputSchemas>;\n\n/**\n * Register a custom tool with MCP-compatible `inputSchema` + handler\n * wiring. Returns an object shaped for\n * `AdcpServerConfig.customTools[name]` — pass it straight through.\n *\n * Why it exists: sellers adding tools outside `AdcpToolMap` have to\n * publish an `inputSchema` via `tools/list` (MCP spec requirement). Doing\n * that by hand means authoring a Zod shape that matches the generated\n * AdCP spec schema — easy to drift silently. Using this helper guarantees\n * the advertised shape is the same shape the SDK validates the request\n * against.\n */\nexport function customToolFor<TShape extends InputShape>(\n name: string,\n description: string,\n inputSchema: TShape,\n handler: (args: z.input<z.ZodObject<TShape>>, extra?: unknown) => unknown | Promise<unknown>\n): {\n description: string;\n inputSchema: TShape;\n handler: (args: z.input<z.ZodObject<TShape>>, extra?: unknown) => unknown | Promise<unknown>;\n} {\n // `name` participates in the return contract's narrowing only indirectly\n // (via the caller's key when spread into `customTools`). Callers retain\n // it as a parameter so future stricter registration (logging, metrics,\n // schema-registry lookups) can be added without an API break.\n void name;\n return { description, inputSchema, handler };\n}\n\n/**\n * Register a custom tool whose MCP `inputSchema` is a full Zod schema rather\n * than a raw shape. Use this for request schemas with top-level unions or\n * intersections, where `.shape` would either be unavailable or would weaken\n * runtime validation.\n */\nexport function customToolForSchema<TSchema extends InputSchema>(\n name: string,\n description: string,\n inputSchema: TSchema,\n handler: (args: z.input<TSchema>, extra?: unknown) => unknown | Promise<unknown>\n): {\n description: string;\n inputSchema: TSchema;\n handler: (args: z.input<TSchema>, extra?: unknown) => unknown | Promise<unknown>;\n} {\n void name;\n return { description, inputSchema, handler };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2CA,cAAyB;AACzB,kCAAqC;AAErC,2BAIO;AACP,iCAAmC;AAEnC,4BAAc,uCArDd;AAsDA,4BAAoC;AACpC,+BAAgD;AAChD,IAAAA,+BAAqC;AACrC,8BAAsC;AACtC,4BAKO;AAgBA,SAAS,mBACd,UACA,UAAmC,CAAC,GACH;AACjC,aAAO,4CAAsB,UAAU,eAAW,+CAAmB,QAAQ,WAAW,CAAC;AAC3F;AAGO,SAAS,sBACd,UACA,UAA2C,CAAC,GACX;AACjC,aAAO,4CAAsB,UAAU,QAAQ,WAAW,YAAQ,+CAAmB,QAAQ,WAAW,CAAC;AAC3G;AA0BA,SAAS,QAA0C,GAA0C;AAC3F,QAAM,YAAY,GAAG;AACrB,SAAO,aAAa,OAAO,cAAc,WAAW,YAAY;AAClE;AA6BO,MAAM,oBAAoB,OAAO,OAAO;AAAA,EAC7C,GAAG,OAAO;AAAA,IACR,OAAO,QAAQ,gDAAoB,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM;AACnD,YAAM,QAAQ,QAAQ,CAAC;AACvB,UAAI,CAAC,OAAO;AACV,cAAM,IAAI;AAAA,UACR,yBAAyB,CAAC;AAAA,QAC5B;AAAA,MACF;AACA,aAAO,CAAC,GAAG,KAAK;AAAA,IAClB,CAAC;AAAA,EACH;AAAA,EACA,mBAAmB,QAAQ,8BAA8B;AAAA,EACzD,eAAe,QAAQ,0BAA0B;AAAA,EACjD,qBAAqB,QAAQ,mCAAmC;AAClE,CAAC;AAUM,MAAM,qBAAqB,OAAO,OAAO;AAAA,EAC9C,GAAG;AAAA,EACH,mBAAmB,QAAQ;AAAA,EAC3B,eAAe,QAAQ;AAAA,EACvB,oBAAoB,QAAQ;AAAA,EAC5B,qBAAqB,QAAQ;AAC/B,CAAC;AAcM,SAAS,cACd,MACA,aACA,aACA,SAKA;AAKA,OAAK;AACL,SAAO,EAAE,aAAa,aAAa,QAAQ;AAC7C;AAQO,SAAS,oBACd,MACA,aACA,aACA,SAKA;AACA,OAAK;AACL,SAAO,EAAE,aAAa,aAAa,QAAQ;AAC7C;","names":["import_tool_request_schemas"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/schemas/index.ts"],"sourcesContent":["/**\n * Consolidated schema exports for MCP tool registration.\n *\n * The generated Zod schemas in `../types/schemas.generated` cover every\n * AdCP tool — the framework-registered {@link AdcpToolMap} tools AND\n * tools like `creative_approval`, `search_brands`, and brand verification\n * tasks that ship as `customTools` extensions because the spec models them\n * outside the SDK's framework-registered surface.\n *\n * This module re-exports the generated schemas plus two convenience\n * helpers for the `customTools` registration path:\n *\n * - {@link TOOL_INPUT_SHAPES}: `toolName → raw Zod shape` map, ready to\n * pass as `inputSchema` to MCP SDK's `server.registerTool()` when the\n * request schema is a ZodObject.\n * - {@link TOOL_INPUT_SCHEMAS}: `toolName → full Zod schema` map for\n * custom tools whose request schema is a union/intersection and cannot\n * be represented as a raw shape without weakening validation.\n * - {@link TOOL_RESPONSE_SCHEMAS}: `toolName → full Zod response schema`\n * map for response validation and compliance tooling.\n * - {@link customToolFor}: sugar for registering a single custom tool\n * with type-safe `handler` params derived from the schema's shape.\n * - {@link customToolForSchema}: same sugar for full Zod schemas.\n *\n * ```ts\n * import { createAdcpServer } from '@adcp/sdk/server/legacy/v5';\n * import { TOOL_INPUT_SHAPES, customToolFor } from '@adcp/sdk/schemas';\n *\n * createAdcpServer({\n * customTools: {\n * creative_approval: customToolFor(\n * 'creative_approval',\n * 'Accept a buyer creative for approval.',\n * TOOL_INPUT_SHAPES.creative_approval,\n * async (args, extra) => { ... },\n * ),\n * },\n * ...,\n * });\n * ```\n */\n\nimport { z } from 'zod';\nimport * as schemas from '../types/schemas.generated';\nimport { GetProductsRequest_FieldsValues } from '../types/inline-enums.generated';\nimport type { CanonicalGetProductsRequest } from '../v2/projection/creative-delivery';\nimport { TOOL_REQUEST_SCHEMAS } from '../utils/tool-request-schemas';\nimport type { KnownToolRequestSchemas } from '../utils/tool-request-schemas';\nimport {\n getToolSchemaDocument,\n type ResolvedToolSchemaDocument,\n type ResponseVariant,\n} from '../validation/schema-loader';\nimport { resolveAdcpVersion } from '../utils/adcp-version-config';\n\nexport * from '../types/schemas.generated';\n\ntype LooseObjectSchemaFor<T extends object> = z.ZodObject<\n {\n [K in keyof T]-?: undefined extends T[K]\n ? z.ZodOptional<z.ZodType<Exclude<T[K], undefined>, Exclude<T[K], undefined>>>\n : z.ZodType<T[K], T[K]>;\n },\n z.core.$loose\n> &\n z.ZodType<T & Record<string, unknown>, T & Record<string, unknown>>;\n\n/** Wire-compatible request schema, including the legacy `format_ids` selector. */\nexport const LegacyGetProductsRequestSchema = schemas.GetProductsRequestSchema;\n\ntype CanonicalGetProductsField = NonNullable<CanonicalGetProductsRequest['fields']>[number];\nconst canonicalGetProductsFields = GetProductsRequest_FieldsValues.filter(\n (field): field is CanonicalGetProductsField => field !== 'format_ids'\n) as [CanonicalGetProductsField, ...CanonicalGetProductsField[]];\n\n/** Primary request schema; legacy `format_ids` selection is rejected. */\nexport const GetProductsRequestSchema = schemas.GetProductsRequestSchema.safeExtend({\n fields: z.array(z.enum(canonicalGetProductsFields)).optional(),\n}) as unknown as LooseObjectSchemaFor<CanonicalGetProductsRequest>;\n\nexport { BiddingPolicySchema } from '../validation/bidding-policy';\nexport { CanonicalBudgetAllocationSchema } from '../validation/budget-allocation';\nexport { TOOL_REQUEST_SCHEMAS } from '../utils/tool-request-schemas';\nexport { TOOL_RESPONSE_SCHEMAS } from '../utils/response-schemas';\nexport {\n SyncCreativesItemSchema,\n SyncCreativesSuccessStrictSchema,\n SyncCreativesResponseStrictSchema,\n SyncCreativesActionSchema,\n} from '../validation/sync-creatives';\nexport type { SyncCreativesItem, SyncCreativesSuccessStrict } from '../validation/sync-creatives';\n\nexport interface ToolSchemaLookupOptions {\n /** AdCP release/minor/legacy alias resolved through the bundled schema loader. */\n adcpVersion?: string;\n}\n\nexport interface ToolResponseSchemaLookupOptions extends ToolSchemaLookupOptions {\n /** Response arm to retrieve. Defaults to the synchronous response schema. */\n variant?: ResponseVariant;\n}\n\nexport type VersionedToolSchema = ResolvedToolSchemaDocument;\n\n/** Retrieve the protocol-authored request JSON Schema for a specific AdCP release. */\nexport function getToolInputSchema(\n toolName: string,\n options: ToolSchemaLookupOptions = {}\n): VersionedToolSchema | undefined {\n return getToolSchemaDocument(toolName, 'request', resolveAdcpVersion(options.adcpVersion));\n}\n\n/** Retrieve a protocol-authored response JSON Schema for a specific AdCP release. */\nexport function getToolResponseSchema(\n toolName: string,\n options: ToolResponseSchemaLookupOptions = {}\n): VersionedToolSchema | undefined {\n return getToolSchemaDocument(toolName, options.variant ?? 'sync', resolveAdcpVersion(options.adcpVersion));\n}\n\ntype InputShape = Record<string, z.ZodType>;\ntype InputSchema = z.ZodType;\ntype ShapeOf<T> = T extends { shape: infer TShape extends InputShape } ? TShape : never;\ntype ToolInputShapes = {\n [K in keyof KnownToolRequestSchemas]: ShapeOf<KnownToolRequestSchemas[K]>;\n} & {\n creative_approval: typeof schemas.CreativeApprovalRequestSchema.shape;\n search_brands: typeof schemas.SearchBrandsRequestSchema.shape;\n verify_brand_claims: typeof schemas.VerifyBrandClaimsRequestBulkSchema.shape;\n} & {\n readonly [toolName: string]: Readonly<InputShape> | undefined;\n};\n\ntype ToolInputSchemas = {\n [K in keyof KnownToolRequestSchemas]: KnownToolRequestSchemas[K];\n} & {\n creative_approval: typeof schemas.CreativeApprovalRequestSchema;\n search_brands: typeof schemas.SearchBrandsRequestSchema;\n verify_brand_claim: typeof schemas.VerifyBrandClaimRequestSchema;\n verify_brand_claims: typeof schemas.VerifyBrandClaimsRequestBulkSchema;\n} & {\n readonly [toolName: string]: InputSchema | undefined;\n};\n\nfunction shapeOf<T extends { shape?: InputShape }>(s: T | undefined): T['shape'] | undefined {\n const candidate = s?.shape;\n return candidate && typeof candidate === 'object' ? candidate : undefined;\n}\n\n/**\n * Map of every known AdCP tool name to its Zod input shape — i.e., the\n * `.shape` of its request schema, ready to pass as `inputSchema` to MCP\n * SDK's `server.registerTool()`.\n *\n * Superset of {@link TOOL_REQUEST_SCHEMAS}: covers every tool already\n * registered with the framework (get_products, create_media_buy,\n * sync_catalogs, check_governance, comply_test_controller, all five\n * *_collection_list tools, validate_property_delivery, acquire_rights,\n * et al.) PLUS shape-compatible custom surfaces such as `creative_approval`,\n * `search_brands`, and `verify_brand_claims` so sellers don't have to\n * hand-author shapes for those either.\n *\n * `verify_brand_claim` is intentionally not present here: its request schema\n * is an envelope intersected with a claim-variant union, so use\n * {@link TOOL_INPUT_SCHEMAS} with {@link customToolForSchema} to preserve the\n * discriminated union at validation time.\n *\n * Known tool names retain exact `.shape` field types for IDE completion and\n * handler inference. Arbitrary string lookups return `undefined` until callers\n * narrow the tool name to a known key.\n *\n * If a future AdCP release adds a new tool with a generated request\n * schema, add its entry here (or to `TOOL_REQUEST_SCHEMAS` if it's\n * framework-registrable) — CI's `ci:schema-check` catches missing\n * map entries by diffing against the generated schemas.\n */\nexport const TOOL_INPUT_SHAPES = Object.freeze({\n ...Object.fromEntries(\n Object.entries(TOOL_REQUEST_SCHEMAS).map(([k, s]) => {\n const shape = shapeOf(s);\n if (!shape) {\n throw new Error(\n `TOOL_REQUEST_SCHEMAS[\"${k}\"] has no .shape — schema must be a ZodObject (use merge() not and())`\n );\n }\n return [k, shape] as const;\n })\n ),\n creative_approval: schemas.CreativeApprovalRequestSchema.shape,\n search_brands: schemas.SearchBrandsRequestSchema.shape,\n verify_brand_claims: schemas.VerifyBrandClaimsRequestBulkSchema.shape,\n}) as Readonly<ToolInputShapes>;\n\n/**\n * Map of known AdCP tool names to their full generated Zod request schemas.\n *\n * Prefer {@link TOOL_INPUT_SHAPES} when registering a shape-compatible tool\n * with `registerTool()`. Use this map for union/intersection request schemas,\n * notably `verify_brand_claim`, where a raw shape would lose the correlation\n * between `claim_type` and the corresponding `claim` payload.\n */\nexport const TOOL_INPUT_SCHEMAS = Object.freeze({\n ...TOOL_REQUEST_SCHEMAS,\n creative_approval: schemas.CreativeApprovalRequestSchema,\n search_brands: schemas.SearchBrandsRequestSchema,\n verify_brand_claim: schemas.VerifyBrandClaimRequestSchema,\n verify_brand_claims: schemas.VerifyBrandClaimsRequestBulkSchema,\n}) as Readonly<ToolInputSchemas>;\n\n/**\n * Register a custom tool with MCP-compatible `inputSchema` + handler\n * wiring. Returns an object shaped for\n * `AdcpServerConfig.customTools[name]` — pass it straight through.\n *\n * Why it exists: sellers adding tools outside `AdcpToolMap` have to\n * publish an `inputSchema` via `tools/list` (MCP spec requirement). Doing\n * that by hand means authoring a Zod shape that matches the generated\n * AdCP spec schema — easy to drift silently. Using this helper guarantees\n * the advertised shape is the same shape the SDK validates the request\n * against.\n */\nexport function customToolFor<TShape extends InputShape>(\n name: string,\n description: string,\n inputSchema: TShape,\n handler: (args: z.input<z.ZodObject<TShape>>, extra?: unknown) => unknown | Promise<unknown>\n): {\n description: string;\n inputSchema: TShape;\n handler: (args: z.input<z.ZodObject<TShape>>, extra?: unknown) => unknown | Promise<unknown>;\n} {\n // `name` participates in the return contract's narrowing only indirectly\n // (via the caller's key when spread into `customTools`). Callers retain\n // it as a parameter so future stricter registration (logging, metrics,\n // schema-registry lookups) can be added without an API break.\n void name;\n return { description, inputSchema, handler };\n}\n\n/**\n * Register a custom tool whose MCP `inputSchema` is a full Zod schema rather\n * than a raw shape. Use this for request schemas with top-level unions or\n * intersections, where `.shape` would either be unavailable or would weaken\n * runtime validation.\n */\nexport function customToolForSchema<TSchema extends InputSchema>(\n name: string,\n description: string,\n inputSchema: TSchema,\n handler: (args: z.input<TSchema>, extra?: unknown) => unknown | Promise<unknown>\n): {\n description: string;\n inputSchema: TSchema;\n handler: (args: z.input<TSchema>, extra?: unknown) => unknown | Promise<unknown>;\n} {\n void name;\n return { description, inputSchema, handler };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA0CA,iBAAkB;AAClB,cAAyB;AACzB,0BAAgD;AAEhD,kCAAqC;AAErC,2BAIO;AACP,iCAAmC;AAEnC,4BAAc,uCAvDd;AAgFA,4BAAoC;AACpC,+BAAgD;AAChD,IAAAA,+BAAqC;AACrC,8BAAsC;AACtC,4BAKO;AArBA,MAAM,iCAAiC,QAAQ;AAGtD,MAAM,6BAA6B,oDAAgC;AAAA,EACjE,CAAC,UAA8C,UAAU;AAC3D;AAGO,MAAM,2BAA2B,QAAQ,yBAAyB,WAAW;AAAA,EAClF,QAAQ,aAAE,MAAM,aAAE,KAAK,0BAA0B,CAAC,EAAE,SAAS;AAC/D,CAAC;AA2BM,SAAS,mBACd,UACA,UAAmC,CAAC,GACH;AACjC,aAAO,4CAAsB,UAAU,eAAW,+CAAmB,QAAQ,WAAW,CAAC;AAC3F;AAGO,SAAS,sBACd,UACA,UAA2C,CAAC,GACX;AACjC,aAAO,4CAAsB,UAAU,QAAQ,WAAW,YAAQ,+CAAmB,QAAQ,WAAW,CAAC;AAC3G;AA0BA,SAAS,QAA0C,GAA0C;AAC3F,QAAM,YAAY,GAAG;AACrB,SAAO,aAAa,OAAO,cAAc,WAAW,YAAY;AAClE;AA6BO,MAAM,oBAAoB,OAAO,OAAO;AAAA,EAC7C,GAAG,OAAO;AAAA,IACR,OAAO,QAAQ,gDAAoB,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM;AACnD,YAAM,QAAQ,QAAQ,CAAC;AACvB,UAAI,CAAC,OAAO;AACV,cAAM,IAAI;AAAA,UACR,yBAAyB,CAAC;AAAA,QAC5B;AAAA,MACF;AACA,aAAO,CAAC,GAAG,KAAK;AAAA,IAClB,CAAC;AAAA,EACH;AAAA,EACA,mBAAmB,QAAQ,8BAA8B;AAAA,EACzD,eAAe,QAAQ,0BAA0B;AAAA,EACjD,qBAAqB,QAAQ,mCAAmC;AAClE,CAAC;AAUM,MAAM,qBAAqB,OAAO,OAAO;AAAA,EAC9C,GAAG;AAAA,EACH,mBAAmB,QAAQ;AAAA,EAC3B,eAAe,QAAQ;AAAA,EACvB,oBAAoB,QAAQ;AAAA,EAC5B,qBAAqB,QAAQ;AAC/B,CAAC;AAcM,SAAS,cACd,MACA,aACA,aACA,SAKA;AAKA,OAAK;AACL,SAAO,EAAE,aAAa,aAAa,QAAQ;AAC7C;AAQO,SAAS,oBACd,MACA,aACA,aACA,SAKA;AACA,OAAK;AACL,SAAO,EAAE,aAAa,aAAa,QAAQ;AAC7C;","names":["import_tool_request_schemas"]}
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import * as schemas from "../types/schemas.generated.mjs";
|
|
3
|
+
import { GetProductsRequest_FieldsValues } from "../types/inline-enums.generated.mjs";
|
|
2
4
|
import { TOOL_REQUEST_SCHEMAS } from "../utils/tool-request-schemas.mjs";
|
|
3
5
|
import {
|
|
4
6
|
getToolSchemaDocument
|
|
5
7
|
} from "../validation/schema-loader.mjs";
|
|
6
8
|
import { resolveAdcpVersion } from "../utils/adcp-version-config.mjs";
|
|
7
9
|
export * from "../types/schemas.generated.mjs";
|
|
10
|
+
const LegacyGetProductsRequestSchema = schemas.GetProductsRequestSchema;
|
|
11
|
+
const canonicalGetProductsFields = GetProductsRequest_FieldsValues.filter(
|
|
12
|
+
(field) => field !== "format_ids"
|
|
13
|
+
);
|
|
14
|
+
const GetProductsRequestSchema = schemas.GetProductsRequestSchema.safeExtend({
|
|
15
|
+
fields: z.array(z.enum(canonicalGetProductsFields)).optional()
|
|
16
|
+
});
|
|
8
17
|
import { BiddingPolicySchema } from "../validation/bidding-policy.mjs";
|
|
9
18
|
import { CanonicalBudgetAllocationSchema } from "../validation/budget-allocation.mjs";
|
|
10
19
|
import { TOOL_REQUEST_SCHEMAS as TOOL_REQUEST_SCHEMAS2 } from "../utils/tool-request-schemas.mjs";
|
|
@@ -59,6 +68,8 @@ function customToolForSchema(name, description, inputSchema, handler) {
|
|
|
59
68
|
export {
|
|
60
69
|
BiddingPolicySchema,
|
|
61
70
|
CanonicalBudgetAllocationSchema,
|
|
71
|
+
GetProductsRequestSchema,
|
|
72
|
+
LegacyGetProductsRequestSchema,
|
|
62
73
|
SyncCreativesActionSchema,
|
|
63
74
|
SyncCreativesItemSchema,
|
|
64
75
|
SyncCreativesResponseStrictSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/schemas/index.ts"],"sourcesContent":["/**\n * Consolidated schema exports for MCP tool registration.\n *\n * The generated Zod schemas in `../types/schemas.generated` cover every\n * AdCP tool — the framework-registered {@link AdcpToolMap} tools AND\n * tools like `creative_approval`, `search_brands`, and brand verification\n * tasks that ship as `customTools` extensions because the spec models them\n * outside the SDK's framework-registered surface.\n *\n * This module re-exports the generated schemas plus two convenience\n * helpers for the `customTools` registration path:\n *\n * - {@link TOOL_INPUT_SHAPES}: `toolName → raw Zod shape` map, ready to\n * pass as `inputSchema` to MCP SDK's `server.registerTool()` when the\n * request schema is a ZodObject.\n * - {@link TOOL_INPUT_SCHEMAS}: `toolName → full Zod schema` map for\n * custom tools whose request schema is a union/intersection and cannot\n * be represented as a raw shape without weakening validation.\n * - {@link TOOL_RESPONSE_SCHEMAS}: `toolName → full Zod response schema`\n * map for response validation and compliance tooling.\n * - {@link customToolFor}: sugar for registering a single custom tool\n * with type-safe `handler` params derived from the schema's shape.\n * - {@link customToolForSchema}: same sugar for full Zod schemas.\n *\n * ```ts\n * import { createAdcpServer } from '@adcp/sdk/server/legacy/v5';\n * import { TOOL_INPUT_SHAPES, customToolFor } from '@adcp/sdk/schemas';\n *\n * createAdcpServer({\n * customTools: {\n * creative_approval: customToolFor(\n * 'creative_approval',\n * 'Accept a buyer creative for approval.',\n * TOOL_INPUT_SHAPES.creative_approval,\n * async (args, extra) => { ... },\n * ),\n * },\n * ...,\n * });\n * ```\n */\n\nimport type { z } from 'zod';\nimport * as schemas from '../types/schemas.generated';\nimport { TOOL_REQUEST_SCHEMAS } from '../utils/tool-request-schemas';\nimport type { KnownToolRequestSchemas } from '../utils/tool-request-schemas';\nimport {\n getToolSchemaDocument,\n type ResolvedToolSchemaDocument,\n type ResponseVariant,\n} from '../validation/schema-loader';\nimport { resolveAdcpVersion } from '../utils/adcp-version-config';\n\nexport * from '../types/schemas.generated';\nexport { BiddingPolicySchema } from '../validation/bidding-policy';\nexport { CanonicalBudgetAllocationSchema } from '../validation/budget-allocation';\nexport { TOOL_REQUEST_SCHEMAS } from '../utils/tool-request-schemas';\nexport { TOOL_RESPONSE_SCHEMAS } from '../utils/response-schemas';\nexport {\n SyncCreativesItemSchema,\n SyncCreativesSuccessStrictSchema,\n SyncCreativesResponseStrictSchema,\n SyncCreativesActionSchema,\n} from '../validation/sync-creatives';\nexport type { SyncCreativesItem, SyncCreativesSuccessStrict } from '../validation/sync-creatives';\n\nexport interface ToolSchemaLookupOptions {\n /** AdCP release/minor/legacy alias resolved through the bundled schema loader. */\n adcpVersion?: string;\n}\n\nexport interface ToolResponseSchemaLookupOptions extends ToolSchemaLookupOptions {\n /** Response arm to retrieve. Defaults to the synchronous response schema. */\n variant?: ResponseVariant;\n}\n\nexport type VersionedToolSchema = ResolvedToolSchemaDocument;\n\n/** Retrieve the protocol-authored request JSON Schema for a specific AdCP release. */\nexport function getToolInputSchema(\n toolName: string,\n options: ToolSchemaLookupOptions = {}\n): VersionedToolSchema | undefined {\n return getToolSchemaDocument(toolName, 'request', resolveAdcpVersion(options.adcpVersion));\n}\n\n/** Retrieve a protocol-authored response JSON Schema for a specific AdCP release. */\nexport function getToolResponseSchema(\n toolName: string,\n options: ToolResponseSchemaLookupOptions = {}\n): VersionedToolSchema | undefined {\n return getToolSchemaDocument(toolName, options.variant ?? 'sync', resolveAdcpVersion(options.adcpVersion));\n}\n\ntype InputShape = Record<string, z.ZodType>;\ntype InputSchema = z.ZodType;\ntype ShapeOf<T> = T extends { shape: infer TShape extends InputShape } ? TShape : never;\ntype ToolInputShapes = {\n [K in keyof KnownToolRequestSchemas]: ShapeOf<KnownToolRequestSchemas[K]>;\n} & {\n creative_approval: typeof schemas.CreativeApprovalRequestSchema.shape;\n search_brands: typeof schemas.SearchBrandsRequestSchema.shape;\n verify_brand_claims: typeof schemas.VerifyBrandClaimsRequestBulkSchema.shape;\n} & {\n readonly [toolName: string]: Readonly<InputShape> | undefined;\n};\n\ntype ToolInputSchemas = {\n [K in keyof KnownToolRequestSchemas]: KnownToolRequestSchemas[K];\n} & {\n creative_approval: typeof schemas.CreativeApprovalRequestSchema;\n search_brands: typeof schemas.SearchBrandsRequestSchema;\n verify_brand_claim: typeof schemas.VerifyBrandClaimRequestSchema;\n verify_brand_claims: typeof schemas.VerifyBrandClaimsRequestBulkSchema;\n} & {\n readonly [toolName: string]: InputSchema | undefined;\n};\n\nfunction shapeOf<T extends { shape?: InputShape }>(s: T | undefined): T['shape'] | undefined {\n const candidate = s?.shape;\n return candidate && typeof candidate === 'object' ? candidate : undefined;\n}\n\n/**\n * Map of every known AdCP tool name to its Zod input shape — i.e., the\n * `.shape` of its request schema, ready to pass as `inputSchema` to MCP\n * SDK's `server.registerTool()`.\n *\n * Superset of {@link TOOL_REQUEST_SCHEMAS}: covers every tool already\n * registered with the framework (get_products, create_media_buy,\n * sync_catalogs, check_governance, comply_test_controller, all five\n * *_collection_list tools, validate_property_delivery, acquire_rights,\n * et al.) PLUS shape-compatible custom surfaces such as `creative_approval`,\n * `search_brands`, and `verify_brand_claims` so sellers don't have to\n * hand-author shapes for those either.\n *\n * `verify_brand_claim` is intentionally not present here: its request schema\n * is an envelope intersected with a claim-variant union, so use\n * {@link TOOL_INPUT_SCHEMAS} with {@link customToolForSchema} to preserve the\n * discriminated union at validation time.\n *\n * Known tool names retain exact `.shape` field types for IDE completion and\n * handler inference. Arbitrary string lookups return `undefined` until callers\n * narrow the tool name to a known key.\n *\n * If a future AdCP release adds a new tool with a generated request\n * schema, add its entry here (or to `TOOL_REQUEST_SCHEMAS` if it's\n * framework-registrable) — CI's `ci:schema-check` catches missing\n * map entries by diffing against the generated schemas.\n */\nexport const TOOL_INPUT_SHAPES = Object.freeze({\n ...Object.fromEntries(\n Object.entries(TOOL_REQUEST_SCHEMAS).map(([k, s]) => {\n const shape = shapeOf(s);\n if (!shape) {\n throw new Error(\n `TOOL_REQUEST_SCHEMAS[\"${k}\"] has no .shape — schema must be a ZodObject (use merge() not and())`\n );\n }\n return [k, shape] as const;\n })\n ),\n creative_approval: schemas.CreativeApprovalRequestSchema.shape,\n search_brands: schemas.SearchBrandsRequestSchema.shape,\n verify_brand_claims: schemas.VerifyBrandClaimsRequestBulkSchema.shape,\n}) as Readonly<ToolInputShapes>;\n\n/**\n * Map of known AdCP tool names to their full generated Zod request schemas.\n *\n * Prefer {@link TOOL_INPUT_SHAPES} when registering a shape-compatible tool\n * with `registerTool()`. Use this map for union/intersection request schemas,\n * notably `verify_brand_claim`, where a raw shape would lose the correlation\n * between `claim_type` and the corresponding `claim` payload.\n */\nexport const TOOL_INPUT_SCHEMAS = Object.freeze({\n ...TOOL_REQUEST_SCHEMAS,\n creative_approval: schemas.CreativeApprovalRequestSchema,\n search_brands: schemas.SearchBrandsRequestSchema,\n verify_brand_claim: schemas.VerifyBrandClaimRequestSchema,\n verify_brand_claims: schemas.VerifyBrandClaimsRequestBulkSchema,\n}) as Readonly<ToolInputSchemas>;\n\n/**\n * Register a custom tool with MCP-compatible `inputSchema` + handler\n * wiring. Returns an object shaped for\n * `AdcpServerConfig.customTools[name]` — pass it straight through.\n *\n * Why it exists: sellers adding tools outside `AdcpToolMap` have to\n * publish an `inputSchema` via `tools/list` (MCP spec requirement). Doing\n * that by hand means authoring a Zod shape that matches the generated\n * AdCP spec schema — easy to drift silently. Using this helper guarantees\n * the advertised shape is the same shape the SDK validates the request\n * against.\n */\nexport function customToolFor<TShape extends InputShape>(\n name: string,\n description: string,\n inputSchema: TShape,\n handler: (args: z.input<z.ZodObject<TShape>>, extra?: unknown) => unknown | Promise<unknown>\n): {\n description: string;\n inputSchema: TShape;\n handler: (args: z.input<z.ZodObject<TShape>>, extra?: unknown) => unknown | Promise<unknown>;\n} {\n // `name` participates in the return contract's narrowing only indirectly\n // (via the caller's key when spread into `customTools`). Callers retain\n // it as a parameter so future stricter registration (logging, metrics,\n // schema-registry lookups) can be added without an API break.\n void name;\n return { description, inputSchema, handler };\n}\n\n/**\n * Register a custom tool whose MCP `inputSchema` is a full Zod schema rather\n * than a raw shape. Use this for request schemas with top-level unions or\n * intersections, where `.shape` would either be unavailable or would weaken\n * runtime validation.\n */\nexport function customToolForSchema<TSchema extends InputSchema>(\n name: string,\n description: string,\n inputSchema: TSchema,\n handler: (args: z.input<TSchema>, extra?: unknown) => unknown | Promise<unknown>\n): {\n description: string;\n inputSchema: TSchema;\n handler: (args: z.input<TSchema>, extra?: unknown) => unknown | Promise<unknown>;\n} {\n void name;\n return { description, inputSchema, handler };\n}\n"],"mappings":"AA2CA,YAAY,aAAa;AACzB,SAAS,4BAA4B;AAErC;AAAA,EACE;AAAA,OAGK;AACP,SAAS,0BAA0B;AAEnC,cAAc;AACd,SAAS,2BAA2B;AACpC,SAAS,uCAAuC;AAChD,SAAS,wBAAAA,6BAA4B;AACrC,SAAS,6BAA6B;AACtC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAgBA,SAAS,mBACd,UACA,UAAmC,CAAC,GACH;AACjC,SAAO,sBAAsB,UAAU,WAAW,mBAAmB,QAAQ,WAAW,CAAC;AAC3F;AAGO,SAAS,sBACd,UACA,UAA2C,CAAC,GACX;AACjC,SAAO,sBAAsB,UAAU,QAAQ,WAAW,QAAQ,mBAAmB,QAAQ,WAAW,CAAC;AAC3G;AA0BA,SAAS,QAA0C,GAA0C;AAC3F,QAAM,YAAY,GAAG;AACrB,SAAO,aAAa,OAAO,cAAc,WAAW,YAAY;AAClE;AA6BO,MAAM,oBAAoB,OAAO,OAAO;AAAA,EAC7C,GAAG,OAAO;AAAA,IACR,OAAO,QAAQ,oBAAoB,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM;AACnD,YAAM,QAAQ,QAAQ,CAAC;AACvB,UAAI,CAAC,OAAO;AACV,cAAM,IAAI;AAAA,UACR,yBAAyB,CAAC;AAAA,QAC5B;AAAA,MACF;AACA,aAAO,CAAC,GAAG,KAAK;AAAA,IAClB,CAAC;AAAA,EACH;AAAA,EACA,mBAAmB,QAAQ,8BAA8B;AAAA,EACzD,eAAe,QAAQ,0BAA0B;AAAA,EACjD,qBAAqB,QAAQ,mCAAmC;AAClE,CAAC;AAUM,MAAM,qBAAqB,OAAO,OAAO;AAAA,EAC9C,GAAG;AAAA,EACH,mBAAmB,QAAQ;AAAA,EAC3B,eAAe,QAAQ;AAAA,EACvB,oBAAoB,QAAQ;AAAA,EAC5B,qBAAqB,QAAQ;AAC/B,CAAC;AAcM,SAAS,cACd,MACA,aACA,aACA,SAKA;AAKA,OAAK;AACL,SAAO,EAAE,aAAa,aAAa,QAAQ;AAC7C;AAQO,SAAS,oBACd,MACA,aACA,aACA,SAKA;AACA,OAAK;AACL,SAAO,EAAE,aAAa,aAAa,QAAQ;AAC7C;","names":["TOOL_REQUEST_SCHEMAS"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/schemas/index.ts"],"sourcesContent":["/**\n * Consolidated schema exports for MCP tool registration.\n *\n * The generated Zod schemas in `../types/schemas.generated` cover every\n * AdCP tool — the framework-registered {@link AdcpToolMap} tools AND\n * tools like `creative_approval`, `search_brands`, and brand verification\n * tasks that ship as `customTools` extensions because the spec models them\n * outside the SDK's framework-registered surface.\n *\n * This module re-exports the generated schemas plus two convenience\n * helpers for the `customTools` registration path:\n *\n * - {@link TOOL_INPUT_SHAPES}: `toolName → raw Zod shape` map, ready to\n * pass as `inputSchema` to MCP SDK's `server.registerTool()` when the\n * request schema is a ZodObject.\n * - {@link TOOL_INPUT_SCHEMAS}: `toolName → full Zod schema` map for\n * custom tools whose request schema is a union/intersection and cannot\n * be represented as a raw shape without weakening validation.\n * - {@link TOOL_RESPONSE_SCHEMAS}: `toolName → full Zod response schema`\n * map for response validation and compliance tooling.\n * - {@link customToolFor}: sugar for registering a single custom tool\n * with type-safe `handler` params derived from the schema's shape.\n * - {@link customToolForSchema}: same sugar for full Zod schemas.\n *\n * ```ts\n * import { createAdcpServer } from '@adcp/sdk/server/legacy/v5';\n * import { TOOL_INPUT_SHAPES, customToolFor } from '@adcp/sdk/schemas';\n *\n * createAdcpServer({\n * customTools: {\n * creative_approval: customToolFor(\n * 'creative_approval',\n * 'Accept a buyer creative for approval.',\n * TOOL_INPUT_SHAPES.creative_approval,\n * async (args, extra) => { ... },\n * ),\n * },\n * ...,\n * });\n * ```\n */\n\nimport { z } from 'zod';\nimport * as schemas from '../types/schemas.generated';\nimport { GetProductsRequest_FieldsValues } from '../types/inline-enums.generated';\nimport type { CanonicalGetProductsRequest } from '../v2/projection/creative-delivery';\nimport { TOOL_REQUEST_SCHEMAS } from '../utils/tool-request-schemas';\nimport type { KnownToolRequestSchemas } from '../utils/tool-request-schemas';\nimport {\n getToolSchemaDocument,\n type ResolvedToolSchemaDocument,\n type ResponseVariant,\n} from '../validation/schema-loader';\nimport { resolveAdcpVersion } from '../utils/adcp-version-config';\n\nexport * from '../types/schemas.generated';\n\ntype LooseObjectSchemaFor<T extends object> = z.ZodObject<\n {\n [K in keyof T]-?: undefined extends T[K]\n ? z.ZodOptional<z.ZodType<Exclude<T[K], undefined>, Exclude<T[K], undefined>>>\n : z.ZodType<T[K], T[K]>;\n },\n z.core.$loose\n> &\n z.ZodType<T & Record<string, unknown>, T & Record<string, unknown>>;\n\n/** Wire-compatible request schema, including the legacy `format_ids` selector. */\nexport const LegacyGetProductsRequestSchema = schemas.GetProductsRequestSchema;\n\ntype CanonicalGetProductsField = NonNullable<CanonicalGetProductsRequest['fields']>[number];\nconst canonicalGetProductsFields = GetProductsRequest_FieldsValues.filter(\n (field): field is CanonicalGetProductsField => field !== 'format_ids'\n) as [CanonicalGetProductsField, ...CanonicalGetProductsField[]];\n\n/** Primary request schema; legacy `format_ids` selection is rejected. */\nexport const GetProductsRequestSchema = schemas.GetProductsRequestSchema.safeExtend({\n fields: z.array(z.enum(canonicalGetProductsFields)).optional(),\n}) as unknown as LooseObjectSchemaFor<CanonicalGetProductsRequest>;\n\nexport { BiddingPolicySchema } from '../validation/bidding-policy';\nexport { CanonicalBudgetAllocationSchema } from '../validation/budget-allocation';\nexport { TOOL_REQUEST_SCHEMAS } from '../utils/tool-request-schemas';\nexport { TOOL_RESPONSE_SCHEMAS } from '../utils/response-schemas';\nexport {\n SyncCreativesItemSchema,\n SyncCreativesSuccessStrictSchema,\n SyncCreativesResponseStrictSchema,\n SyncCreativesActionSchema,\n} from '../validation/sync-creatives';\nexport type { SyncCreativesItem, SyncCreativesSuccessStrict } from '../validation/sync-creatives';\n\nexport interface ToolSchemaLookupOptions {\n /** AdCP release/minor/legacy alias resolved through the bundled schema loader. */\n adcpVersion?: string;\n}\n\nexport interface ToolResponseSchemaLookupOptions extends ToolSchemaLookupOptions {\n /** Response arm to retrieve. Defaults to the synchronous response schema. */\n variant?: ResponseVariant;\n}\n\nexport type VersionedToolSchema = ResolvedToolSchemaDocument;\n\n/** Retrieve the protocol-authored request JSON Schema for a specific AdCP release. */\nexport function getToolInputSchema(\n toolName: string,\n options: ToolSchemaLookupOptions = {}\n): VersionedToolSchema | undefined {\n return getToolSchemaDocument(toolName, 'request', resolveAdcpVersion(options.adcpVersion));\n}\n\n/** Retrieve a protocol-authored response JSON Schema for a specific AdCP release. */\nexport function getToolResponseSchema(\n toolName: string,\n options: ToolResponseSchemaLookupOptions = {}\n): VersionedToolSchema | undefined {\n return getToolSchemaDocument(toolName, options.variant ?? 'sync', resolveAdcpVersion(options.adcpVersion));\n}\n\ntype InputShape = Record<string, z.ZodType>;\ntype InputSchema = z.ZodType;\ntype ShapeOf<T> = T extends { shape: infer TShape extends InputShape } ? TShape : never;\ntype ToolInputShapes = {\n [K in keyof KnownToolRequestSchemas]: ShapeOf<KnownToolRequestSchemas[K]>;\n} & {\n creative_approval: typeof schemas.CreativeApprovalRequestSchema.shape;\n search_brands: typeof schemas.SearchBrandsRequestSchema.shape;\n verify_brand_claims: typeof schemas.VerifyBrandClaimsRequestBulkSchema.shape;\n} & {\n readonly [toolName: string]: Readonly<InputShape> | undefined;\n};\n\ntype ToolInputSchemas = {\n [K in keyof KnownToolRequestSchemas]: KnownToolRequestSchemas[K];\n} & {\n creative_approval: typeof schemas.CreativeApprovalRequestSchema;\n search_brands: typeof schemas.SearchBrandsRequestSchema;\n verify_brand_claim: typeof schemas.VerifyBrandClaimRequestSchema;\n verify_brand_claims: typeof schemas.VerifyBrandClaimsRequestBulkSchema;\n} & {\n readonly [toolName: string]: InputSchema | undefined;\n};\n\nfunction shapeOf<T extends { shape?: InputShape }>(s: T | undefined): T['shape'] | undefined {\n const candidate = s?.shape;\n return candidate && typeof candidate === 'object' ? candidate : undefined;\n}\n\n/**\n * Map of every known AdCP tool name to its Zod input shape — i.e., the\n * `.shape` of its request schema, ready to pass as `inputSchema` to MCP\n * SDK's `server.registerTool()`.\n *\n * Superset of {@link TOOL_REQUEST_SCHEMAS}: covers every tool already\n * registered with the framework (get_products, create_media_buy,\n * sync_catalogs, check_governance, comply_test_controller, all five\n * *_collection_list tools, validate_property_delivery, acquire_rights,\n * et al.) PLUS shape-compatible custom surfaces such as `creative_approval`,\n * `search_brands`, and `verify_brand_claims` so sellers don't have to\n * hand-author shapes for those either.\n *\n * `verify_brand_claim` is intentionally not present here: its request schema\n * is an envelope intersected with a claim-variant union, so use\n * {@link TOOL_INPUT_SCHEMAS} with {@link customToolForSchema} to preserve the\n * discriminated union at validation time.\n *\n * Known tool names retain exact `.shape` field types for IDE completion and\n * handler inference. Arbitrary string lookups return `undefined` until callers\n * narrow the tool name to a known key.\n *\n * If a future AdCP release adds a new tool with a generated request\n * schema, add its entry here (or to `TOOL_REQUEST_SCHEMAS` if it's\n * framework-registrable) — CI's `ci:schema-check` catches missing\n * map entries by diffing against the generated schemas.\n */\nexport const TOOL_INPUT_SHAPES = Object.freeze({\n ...Object.fromEntries(\n Object.entries(TOOL_REQUEST_SCHEMAS).map(([k, s]) => {\n const shape = shapeOf(s);\n if (!shape) {\n throw new Error(\n `TOOL_REQUEST_SCHEMAS[\"${k}\"] has no .shape — schema must be a ZodObject (use merge() not and())`\n );\n }\n return [k, shape] as const;\n })\n ),\n creative_approval: schemas.CreativeApprovalRequestSchema.shape,\n search_brands: schemas.SearchBrandsRequestSchema.shape,\n verify_brand_claims: schemas.VerifyBrandClaimsRequestBulkSchema.shape,\n}) as Readonly<ToolInputShapes>;\n\n/**\n * Map of known AdCP tool names to their full generated Zod request schemas.\n *\n * Prefer {@link TOOL_INPUT_SHAPES} when registering a shape-compatible tool\n * with `registerTool()`. Use this map for union/intersection request schemas,\n * notably `verify_brand_claim`, where a raw shape would lose the correlation\n * between `claim_type` and the corresponding `claim` payload.\n */\nexport const TOOL_INPUT_SCHEMAS = Object.freeze({\n ...TOOL_REQUEST_SCHEMAS,\n creative_approval: schemas.CreativeApprovalRequestSchema,\n search_brands: schemas.SearchBrandsRequestSchema,\n verify_brand_claim: schemas.VerifyBrandClaimRequestSchema,\n verify_brand_claims: schemas.VerifyBrandClaimsRequestBulkSchema,\n}) as Readonly<ToolInputSchemas>;\n\n/**\n * Register a custom tool with MCP-compatible `inputSchema` + handler\n * wiring. Returns an object shaped for\n * `AdcpServerConfig.customTools[name]` — pass it straight through.\n *\n * Why it exists: sellers adding tools outside `AdcpToolMap` have to\n * publish an `inputSchema` via `tools/list` (MCP spec requirement). Doing\n * that by hand means authoring a Zod shape that matches the generated\n * AdCP spec schema — easy to drift silently. Using this helper guarantees\n * the advertised shape is the same shape the SDK validates the request\n * against.\n */\nexport function customToolFor<TShape extends InputShape>(\n name: string,\n description: string,\n inputSchema: TShape,\n handler: (args: z.input<z.ZodObject<TShape>>, extra?: unknown) => unknown | Promise<unknown>\n): {\n description: string;\n inputSchema: TShape;\n handler: (args: z.input<z.ZodObject<TShape>>, extra?: unknown) => unknown | Promise<unknown>;\n} {\n // `name` participates in the return contract's narrowing only indirectly\n // (via the caller's key when spread into `customTools`). Callers retain\n // it as a parameter so future stricter registration (logging, metrics,\n // schema-registry lookups) can be added without an API break.\n void name;\n return { description, inputSchema, handler };\n}\n\n/**\n * Register a custom tool whose MCP `inputSchema` is a full Zod schema rather\n * than a raw shape. Use this for request schemas with top-level unions or\n * intersections, where `.shape` would either be unavailable or would weaken\n * runtime validation.\n */\nexport function customToolForSchema<TSchema extends InputSchema>(\n name: string,\n description: string,\n inputSchema: TSchema,\n handler: (args: z.input<TSchema>, extra?: unknown) => unknown | Promise<unknown>\n): {\n description: string;\n inputSchema: TSchema;\n handler: (args: z.input<TSchema>, extra?: unknown) => unknown | Promise<unknown>;\n} {\n void name;\n return { description, inputSchema, handler };\n}\n"],"mappings":"AA0CA,SAAS,SAAS;AAClB,YAAY,aAAa;AACzB,SAAS,uCAAuC;AAEhD,SAAS,4BAA4B;AAErC;AAAA,EACE;AAAA,OAGK;AACP,SAAS,0BAA0B;AAEnC,cAAc;AAaP,MAAM,iCAAiC,QAAQ;AAGtD,MAAM,6BAA6B,gCAAgC;AAAA,EACjE,CAAC,UAA8C,UAAU;AAC3D;AAGO,MAAM,2BAA2B,QAAQ,yBAAyB,WAAW;AAAA,EAClF,QAAQ,EAAE,MAAM,EAAE,KAAK,0BAA0B,CAAC,EAAE,SAAS;AAC/D,CAAC;AAED,SAAS,2BAA2B;AACpC,SAAS,uCAAuC;AAChD,SAAS,wBAAAA,6BAA4B;AACrC,SAAS,6BAA6B;AACtC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAgBA,SAAS,mBACd,UACA,UAAmC,CAAC,GACH;AACjC,SAAO,sBAAsB,UAAU,WAAW,mBAAmB,QAAQ,WAAW,CAAC;AAC3F;AAGO,SAAS,sBACd,UACA,UAA2C,CAAC,GACX;AACjC,SAAO,sBAAsB,UAAU,QAAQ,WAAW,QAAQ,mBAAmB,QAAQ,WAAW,CAAC;AAC3G;AA0BA,SAAS,QAA0C,GAA0C;AAC3F,QAAM,YAAY,GAAG;AACrB,SAAO,aAAa,OAAO,cAAc,WAAW,YAAY;AAClE;AA6BO,MAAM,oBAAoB,OAAO,OAAO;AAAA,EAC7C,GAAG,OAAO;AAAA,IACR,OAAO,QAAQ,oBAAoB,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM;AACnD,YAAM,QAAQ,QAAQ,CAAC;AACvB,UAAI,CAAC,OAAO;AACV,cAAM,IAAI;AAAA,UACR,yBAAyB,CAAC;AAAA,QAC5B;AAAA,MACF;AACA,aAAO,CAAC,GAAG,KAAK;AAAA,IAClB,CAAC;AAAA,EACH;AAAA,EACA,mBAAmB,QAAQ,8BAA8B;AAAA,EACzD,eAAe,QAAQ,0BAA0B;AAAA,EACjD,qBAAqB,QAAQ,mCAAmC;AAClE,CAAC;AAUM,MAAM,qBAAqB,OAAO,OAAO;AAAA,EAC9C,GAAG;AAAA,EACH,mBAAmB,QAAQ;AAAA,EAC3B,eAAe,QAAQ;AAAA,EACvB,oBAAoB,QAAQ;AAAA,EAC5B,qBAAqB,QAAQ;AAC/B,CAAC;AAcM,SAAS,cACd,MACA,aACA,aACA,SAKA;AAKA,OAAK;AACL,SAAO,EAAE,aAAa,aAAa,QAAQ;AAC7C;AAQO,SAAS,oBACd,MACA,aACA,aACA,SAKA;AACA,OAAK;AACL,SAAO,EAAE,aAAa,aAAa,QAAQ;AAC7C;","names":["TOOL_REQUEST_SCHEMAS"]}
|