@adcp/sdk 8.1.0-beta.7 → 8.1.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -1
- package/dist/lib/schemas/index.d.ts +68 -10
- package/dist/lib/schemas/index.d.ts.map +1 -1
- package/dist/lib/schemas/index.js +57 -16
- package/dist/lib/schemas/index.js.map +1 -1
- package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
- package/dist/lib/server/create-adcp-server.d.ts +54 -53
- package/dist/lib/server/create-adcp-server.d.ts.map +1 -1
- package/dist/lib/server/create-adcp-server.js +4 -1
- package/dist/lib/server/create-adcp-server.js.map +1 -1
- package/dist/lib/server/decisioning/account.d.ts +2 -1
- package/dist/lib/server/decisioning/account.d.ts.map +1 -1
- package/dist/lib/server/decisioning/account.js.map +1 -1
- package/dist/lib/server/decisioning/index.d.ts +9 -8
- 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/list-helpers.d.ts +3 -2
- package/dist/lib/server/decisioning/list-helpers.d.ts.map +1 -1
- package/dist/lib/server/decisioning/list-helpers.js +0 -1
- package/dist/lib/server/decisioning/list-helpers.js.map +1 -1
- package/dist/lib/server/decisioning/manifest-helpers.d.ts +8 -2
- package/dist/lib/server/decisioning/manifest-helpers.d.ts.map +1 -1
- package/dist/lib/server/decisioning/manifest-helpers.js +8 -2
- package/dist/lib/server/decisioning/manifest-helpers.js.map +1 -1
- package/dist/lib/server/decisioning/proposal/dispatch.d.ts +3 -2
- package/dist/lib/server/decisioning/proposal/dispatch.d.ts.map +1 -1
- package/dist/lib/server/decisioning/proposal/dispatch.js +0 -1
- package/dist/lib/server/decisioning/proposal/dispatch.js.map +1 -1
- package/dist/lib/server/decisioning/proposal/mock-manager.d.ts +3 -2
- package/dist/lib/server/decisioning/proposal/mock-manager.d.ts.map +1 -1
- package/dist/lib/server/decisioning/proposal/mock-manager.js.map +1 -1
- package/dist/lib/server/decisioning/proposal/types.d.ts +3 -2
- package/dist/lib/server/decisioning/proposal/types.d.ts.map +1 -1
- package/dist/lib/server/decisioning/proposal/types.js.map +1 -1
- package/dist/lib/server/decisioning/runtime/from-platform.d.ts.map +1 -1
- package/dist/lib/server/decisioning/runtime/from-platform.js.map +1 -1
- package/dist/lib/server/decisioning/specialisms/campaign-governance.d.ts +9 -4
- package/dist/lib/server/decisioning/specialisms/campaign-governance.d.ts.map +1 -1
- package/dist/lib/server/decisioning/specialisms/content-standards.d.ts +17 -8
- package/dist/lib/server/decisioning/specialisms/content-standards.d.ts.map +1 -1
- package/dist/lib/server/decisioning/specialisms/creative-ad-server.d.ts +9 -4
- package/dist/lib/server/decisioning/specialisms/creative-ad-server.d.ts.map +1 -1
- package/dist/lib/server/decisioning/specialisms/creative.d.ts +5 -2
- package/dist/lib/server/decisioning/specialisms/creative.d.ts.map +1 -1
- package/dist/lib/server/decisioning/specialisms/lists.d.ts +21 -10
- package/dist/lib/server/decisioning/specialisms/lists.d.ts.map +1 -1
- package/dist/lib/server/decisioning/specialisms/sales.d.ts +11 -5
- package/dist/lib/server/decisioning/specialisms/sales.d.ts.map +1 -1
- package/dist/lib/server/decisioning/specialisms/signals.d.ts +3 -1
- package/dist/lib/server/decisioning/specialisms/signals.d.ts.map +1 -1
- package/dist/lib/server/decisioning/specialisms/sponsored-intelligence.d.ts +9 -4
- package/dist/lib/server/decisioning/specialisms/sponsored-intelligence.d.ts.map +1 -1
- package/dist/lib/server/index.d.ts +1 -0
- package/dist/lib/server/index.d.ts.map +1 -1
- package/dist/lib/server/index.js.map +1 -1
- package/dist/lib/server/operational-platform.d.ts +4 -3
- package/dist/lib/server/operational-platform.d.ts.map +1 -1
- package/dist/lib/server/operational-platform.js.map +1 -1
- package/dist/lib/server/responses.d.ts +27 -26
- package/dist/lib/server/responses.d.ts.map +1 -1
- package/dist/lib/server/responses.js +49 -29
- package/dist/lib/server/responses.js.map +1 -1
- package/dist/lib/types/activate-signal.d.ts +647 -0
- package/dist/lib/types/build-creative.d.ts +2105 -0
- package/dist/lib/types/calibrate-content.d.ts +675 -0
- package/dist/lib/types/check-governance.d.ts +619 -0
- package/dist/lib/types/comply-test-controller.d.ts +8428 -0
- package/dist/lib/types/create-collection-list.d.ts +693 -0
- package/dist/lib/types/create-content-standards.d.ts +830 -0
- package/dist/lib/types/create-media-buy.d.ts +3374 -0
- package/dist/lib/types/create-property-list.d.ts +836 -0
- package/dist/lib/types/delete-collection-list.d.ts +497 -0
- package/dist/lib/types/delete-property-list.d.ts +497 -0
- package/dist/lib/types/get-account-financials.d.ts +624 -0
- package/dist/lib/types/get-adcp-capabilities.d.ts +2863 -0
- package/dist/lib/types/get-collection-list.d.ts +763 -0
- package/dist/lib/types/get-content-standards.d.ts +919 -0
- package/dist/lib/types/get-creative-delivery.d.ts +2219 -0
- package/dist/lib/types/get-creative-features.d.ts +1736 -0
- package/dist/lib/types/get-media-buy-artifacts.d.ts +864 -0
- package/dist/lib/types/get-media-buys.d.ts +1670 -0
- package/dist/lib/types/get-plan-audit-logs.d.ts +455 -0
- package/dist/lib/types/get-products.d.ts +4935 -0
- package/dist/lib/types/get-property-list.d.ts +874 -0
- package/dist/lib/types/get-signals.d.ts +986 -0
- package/dist/lib/types/index.d.ts +1 -0
- package/dist/lib/types/index.d.ts.map +1 -1
- package/dist/lib/types/index.js.map +1 -1
- package/dist/lib/types/inline-enums.generated.d.ts +163 -7
- package/dist/lib/types/inline-enums.generated.d.ts.map +1 -1
- package/dist/lib/types/inline-enums.generated.js +222 -9
- package/dist/lib/types/inline-enums.generated.js.map +1 -1
- package/dist/lib/types/list-accounts.d.ts +851 -0
- package/dist/lib/types/list-content-standards.d.ts +975 -0
- package/dist/lib/types/list-creative-formats.d.ts +3132 -0
- package/dist/lib/types/list-creatives.d.ts +2390 -0
- package/dist/lib/types/list-property-lists.d.ts +855 -0
- package/dist/lib/types/log-event.d.ts +373 -0
- package/dist/lib/types/per-tool-index.json +391 -0
- package/dist/lib/types/preview-creative.d.ts +1981 -0
- package/dist/lib/types/provide-performance-feedback.d.ts +218 -0
- package/dist/lib/types/report-plan-outcome.d.ts +433 -0
- package/dist/lib/types/report-usage.d.ts +579 -0
- package/dist/lib/types/schemas.generated.d.ts +465 -538
- package/dist/lib/types/schemas.generated.d.ts.map +1 -1
- package/dist/lib/types/schemas.generated.js +57 -57
- package/dist/lib/types/schemas.generated.js.map +1 -1
- package/dist/lib/types/server-payload.d.ts +22 -0
- package/dist/lib/types/server-payload.d.ts.map +1 -0
- package/dist/lib/types/server-payload.js +11 -0
- package/dist/lib/types/server-payload.js.map +1 -0
- package/dist/lib/types/si-get-offering.d.ts +259 -0
- package/dist/lib/types/si-initiate-session.d.ts +372 -0
- package/dist/lib/types/si-send-message.d.ts +300 -0
- package/dist/lib/types/si-terminate-session.d.ts +213 -0
- package/dist/lib/types/sync-accounts.d.ts +856 -0
- package/dist/lib/types/sync-audiences.d.ts +707 -0
- package/dist/lib/types/sync-catalogs.d.ts +766 -0
- package/dist/lib/types/sync-creatives.d.ts +2134 -0
- package/dist/lib/types/sync-event-sources.d.ts +665 -0
- package/dist/lib/types/sync-governance.d.ts +558 -0
- package/dist/lib/types/sync-plans.d.ts +979 -0
- package/dist/lib/types/update-collection-list.d.ts +697 -0
- package/dist/lib/types/update-content-standards.d.ts +847 -0
- package/dist/lib/types/update-media-buy.d.ts +3047 -0
- package/dist/lib/types/update-property-list.d.ts +840 -0
- package/dist/lib/types/validate-content-delivery.d.ts +722 -0
- package/dist/lib/types/validate-input.d.ts +1683 -0
- package/dist/lib/utils/tool-request-schemas.d.ts +8574 -1
- package/dist/lib/utils/tool-request-schemas.d.ts.map +1 -1
- package/dist/lib/utils/tool-request-schemas.js +4 -5
- package/dist/lib/utils/tool-request-schemas.js.map +1 -1
- package/dist/lib/version.d.ts +3 -3
- package/dist/lib/version.js +3 -3
- package/examples/hello_seller_adapter_guaranteed.ts +7 -8
- package/examples/hello_seller_adapter_non_guaranteed.ts +10 -12
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -29,9 +29,24 @@ AdCP operations are **distributed and asynchronous by default**. An agent might:
|
|
|
29
29
|
## Installation
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
|
-
npm install @adcp/sdk
|
|
32
|
+
npm install @adcp/sdk # 7.x (current latest, AdCP 3.0)
|
|
33
|
+
npm install @adcp/sdk@beta # 8.x beta (AdCP 3.1.0-beta)
|
|
33
34
|
```
|
|
34
35
|
|
|
36
|
+
Upgrading from v7? See **[MIGRATION-v8.md](./MIGRATION-v8.md)** — TL;DR is three changes for most adopters; full guide covers wire shape, type shape, and SDK behavior deltas.
|
|
37
|
+
|
|
38
|
+
### Narrow type imports (`@adcp/sdk/types/<tool>`)
|
|
39
|
+
|
|
40
|
+
Adopters who only need a single AdCP tool's types can import a per-tool slice instead of the full surface. Each slice is a self-contained `.d.ts` covering the tool's `Request` / `Response` / `Success` / `Error` / `Submitted` types and every type they reference:
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
import type { SyncAccountsRequest } from '@adcp/sdk/types/sync-accounts';
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Why bother: the full `@adcp/sdk` type surface is ~45,000 lines and crashes `tsc` at Node's default 4 GB heap under `strict + skipLibCheck:false`. A single per-tool slice peaks at ~50 MB. That's the difference between adopters chasing the cryptic `FATAL: mark-compact` Node flag and just having their build pass.
|
|
47
|
+
|
|
48
|
+
Slices use kebab-case filenames matching the schema cache (`sync_accounts` → `@adcp/sdk/types/sync-accounts`). Requires `moduleResolution: "node16"` / `"nodenext"` / `"bundler"` on the adopter side. A machine-readable index of available slices ships at `@adcp/sdk/types/per-tool-index.json`.
|
|
49
|
+
|
|
35
50
|
## Quick Start: Distributed Operations
|
|
36
51
|
|
|
37
52
|
```typescript
|
|
@@ -3,18 +3,22 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The generated Zod schemas in `../types/schemas.generated` cover every
|
|
5
5
|
* AdCP tool — the framework-registered {@link AdcpToolMap} tools AND
|
|
6
|
-
* tools like `creative_approval
|
|
7
|
-
* `customTools` extensions because the spec models them
|
|
8
|
-
*
|
|
6
|
+
* tools like `creative_approval`, `search_brands`, and brand verification
|
|
7
|
+
* tasks that ship as `customTools` extensions because the spec models them
|
|
8
|
+
* outside the SDK's framework-registered surface.
|
|
9
9
|
*
|
|
10
10
|
* This module re-exports the generated schemas plus two convenience
|
|
11
11
|
* helpers for the `customTools` registration path:
|
|
12
12
|
*
|
|
13
|
-
* - {@link TOOL_INPUT_SHAPES}: `toolName →
|
|
14
|
-
* pass as `inputSchema` to MCP SDK's `server.registerTool()
|
|
15
|
-
*
|
|
13
|
+
* - {@link TOOL_INPUT_SHAPES}: `toolName → raw Zod shape` map, ready to
|
|
14
|
+
* pass as `inputSchema` to MCP SDK's `server.registerTool()` when the
|
|
15
|
+
* request schema is a ZodObject.
|
|
16
|
+
* - {@link TOOL_INPUT_SCHEMAS}: `toolName → full Zod schema` map for
|
|
17
|
+
* custom tools whose request schema is a union/intersection and cannot
|
|
18
|
+
* be represented as a raw shape without weakening validation.
|
|
16
19
|
* - {@link customToolFor}: sugar for registering a single custom tool
|
|
17
20
|
* with type-safe `handler` params derived from the schema's shape.
|
|
21
|
+
* - {@link customToolForSchema}: same sugar for full Zod schemas.
|
|
18
22
|
*
|
|
19
23
|
* ```ts
|
|
20
24
|
* import { createAdcpServer } from '@adcp/sdk/server/legacy/v5';
|
|
@@ -34,9 +38,34 @@
|
|
|
34
38
|
* ```
|
|
35
39
|
*/
|
|
36
40
|
import type { z } from 'zod';
|
|
41
|
+
import * as schemas from '../types/schemas.generated';
|
|
42
|
+
import type { KnownToolRequestSchemas } from '../utils/tool-request-schemas';
|
|
37
43
|
export * from '../types/schemas.generated';
|
|
38
44
|
export { TOOL_REQUEST_SCHEMAS } from '../utils/tool-request-schemas';
|
|
39
45
|
type InputShape = Record<string, z.ZodType>;
|
|
46
|
+
type InputSchema = z.ZodType;
|
|
47
|
+
type ShapeOf<T> = T extends {
|
|
48
|
+
shape: infer TShape extends InputShape;
|
|
49
|
+
} ? TShape : never;
|
|
50
|
+
type ToolInputShapes = {
|
|
51
|
+
[K in keyof KnownToolRequestSchemas]: ShapeOf<KnownToolRequestSchemas[K]>;
|
|
52
|
+
} & {
|
|
53
|
+
creative_approval: typeof schemas.CreativeApprovalRequestSchema.shape;
|
|
54
|
+
search_brands: typeof schemas.SearchBrandsRequestSchema.shape;
|
|
55
|
+
verify_brand_claims: typeof schemas.VerifyBrandClaimsRequestBulkSchema.shape;
|
|
56
|
+
} & {
|
|
57
|
+
readonly [toolName: string]: Readonly<InputShape> | undefined;
|
|
58
|
+
};
|
|
59
|
+
type ToolInputSchemas = {
|
|
60
|
+
[K in keyof KnownToolRequestSchemas]: KnownToolRequestSchemas[K];
|
|
61
|
+
} & {
|
|
62
|
+
creative_approval: typeof schemas.CreativeApprovalRequestSchema;
|
|
63
|
+
search_brands: typeof schemas.SearchBrandsRequestSchema;
|
|
64
|
+
verify_brand_claim: typeof schemas.VerifyBrandClaimRequestSchema;
|
|
65
|
+
verify_brand_claims: typeof schemas.VerifyBrandClaimsRequestBulkSchema;
|
|
66
|
+
} & {
|
|
67
|
+
readonly [toolName: string]: InputSchema | undefined;
|
|
68
|
+
};
|
|
40
69
|
/**
|
|
41
70
|
* Map of every known AdCP tool name to its Zod input shape — i.e., the
|
|
42
71
|
* `.shape` of its request schema, ready to pass as `inputSchema` to MCP
|
|
@@ -46,16 +75,34 @@ type InputShape = Record<string, z.ZodType>;
|
|
|
46
75
|
* registered with the framework (get_products, create_media_buy,
|
|
47
76
|
* sync_catalogs, check_governance, comply_test_controller, all five
|
|
48
77
|
* *_collection_list tools, validate_property_delivery, acquire_rights,
|
|
49
|
-
* et al.) PLUS
|
|
50
|
-
*
|
|
51
|
-
*
|
|
78
|
+
* et al.) PLUS shape-compatible custom surfaces such as `creative_approval`,
|
|
79
|
+
* `search_brands`, and `verify_brand_claims` so sellers don't have to
|
|
80
|
+
* hand-author shapes for those either.
|
|
81
|
+
*
|
|
82
|
+
* `verify_brand_claim` is intentionally not present here: its request schema
|
|
83
|
+
* is an envelope intersected with a claim-variant union, so use
|
|
84
|
+
* {@link TOOL_INPUT_SCHEMAS} with {@link customToolForSchema} to preserve the
|
|
85
|
+
* discriminated union at validation time.
|
|
86
|
+
*
|
|
87
|
+
* Known tool names retain exact `.shape` field types for IDE completion and
|
|
88
|
+
* handler inference. Arbitrary string lookups return `undefined` until callers
|
|
89
|
+
* narrow the tool name to a known key.
|
|
52
90
|
*
|
|
53
91
|
* If a future AdCP release adds a new tool with a generated request
|
|
54
92
|
* schema, add its entry here (or to `TOOL_REQUEST_SCHEMAS` if it's
|
|
55
93
|
* framework-registrable) — CI's `ci:schema-check` catches missing
|
|
56
94
|
* map entries by diffing against the generated schemas.
|
|
57
95
|
*/
|
|
58
|
-
export declare const TOOL_INPUT_SHAPES: Readonly<
|
|
96
|
+
export declare const TOOL_INPUT_SHAPES: Readonly<ToolInputShapes>;
|
|
97
|
+
/**
|
|
98
|
+
* Map of known AdCP tool names to their full generated Zod request schemas.
|
|
99
|
+
*
|
|
100
|
+
* Prefer {@link TOOL_INPUT_SHAPES} when registering a shape-compatible tool
|
|
101
|
+
* with `registerTool()`. Use this map for union/intersection request schemas,
|
|
102
|
+
* notably `verify_brand_claim`, where a raw shape would lose the correlation
|
|
103
|
+
* between `claim_type` and the corresponding `claim` payload.
|
|
104
|
+
*/
|
|
105
|
+
export declare const TOOL_INPUT_SCHEMAS: Readonly<ToolInputSchemas>;
|
|
59
106
|
/**
|
|
60
107
|
* Register a custom tool with MCP-compatible `inputSchema` + handler
|
|
61
108
|
* wiring. Returns an object shaped for
|
|
@@ -73,4 +120,15 @@ export declare function customToolFor<TShape extends InputShape>(name: string, d
|
|
|
73
120
|
inputSchema: TShape;
|
|
74
121
|
handler: (args: z.input<z.ZodObject<TShape>>, extra?: unknown) => unknown | Promise<unknown>;
|
|
75
122
|
};
|
|
123
|
+
/**
|
|
124
|
+
* Register a custom tool whose MCP `inputSchema` is a full Zod schema rather
|
|
125
|
+
* than a raw shape. Use this for request schemas with top-level unions or
|
|
126
|
+
* intersections, where `.shape` would either be unavailable or would weaken
|
|
127
|
+
* runtime validation.
|
|
128
|
+
*/
|
|
129
|
+
export declare function customToolForSchema<TSchema extends InputSchema>(name: string, description: string, inputSchema: TSchema, handler: (args: z.input<TSchema>, extra?: unknown) => unknown | Promise<unknown>): {
|
|
130
|
+
description: string;
|
|
131
|
+
inputSchema: TSchema;
|
|
132
|
+
handler: (args: z.input<TSchema>, extra?: unknown) => unknown | Promise<unknown>;
|
|
133
|
+
};
|
|
76
134
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/schemas/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/schemas/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -4,18 +4,22 @@
|
|
|
4
4
|
*
|
|
5
5
|
* The generated Zod schemas in `../types/schemas.generated` cover every
|
|
6
6
|
* AdCP tool — the framework-registered {@link AdcpToolMap} tools AND
|
|
7
|
-
* tools like `creative_approval
|
|
8
|
-
* `customTools` extensions because the spec models them
|
|
9
|
-
*
|
|
7
|
+
* tools like `creative_approval`, `search_brands`, and brand verification
|
|
8
|
+
* tasks that ship as `customTools` extensions because the spec models them
|
|
9
|
+
* outside the SDK's framework-registered surface.
|
|
10
10
|
*
|
|
11
11
|
* This module re-exports the generated schemas plus two convenience
|
|
12
12
|
* helpers for the `customTools` registration path:
|
|
13
13
|
*
|
|
14
|
-
* - {@link TOOL_INPUT_SHAPES}: `toolName →
|
|
15
|
-
* pass as `inputSchema` to MCP SDK's `server.registerTool()
|
|
16
|
-
*
|
|
14
|
+
* - {@link TOOL_INPUT_SHAPES}: `toolName → raw Zod shape` map, ready to
|
|
15
|
+
* pass as `inputSchema` to MCP SDK's `server.registerTool()` when the
|
|
16
|
+
* request schema is a ZodObject.
|
|
17
|
+
* - {@link TOOL_INPUT_SCHEMAS}: `toolName → full Zod schema` map for
|
|
18
|
+
* custom tools whose request schema is a union/intersection and cannot
|
|
19
|
+
* be represented as a raw shape without weakening validation.
|
|
17
20
|
* - {@link customToolFor}: sugar for registering a single custom tool
|
|
18
21
|
* with type-safe `handler` params derived from the schema's shape.
|
|
22
|
+
* - {@link customToolForSchema}: same sugar for full Zod schemas.
|
|
19
23
|
*
|
|
20
24
|
* ```ts
|
|
21
25
|
* import { createAdcpServer } from '@adcp/sdk/server/legacy/v5';
|
|
@@ -71,17 +75,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
71
75
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
72
76
|
};
|
|
73
77
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74
|
-
exports.TOOL_INPUT_SHAPES = exports.TOOL_REQUEST_SCHEMAS = void 0;
|
|
78
|
+
exports.TOOL_INPUT_SCHEMAS = exports.TOOL_INPUT_SHAPES = exports.TOOL_REQUEST_SCHEMAS = void 0;
|
|
75
79
|
exports.customToolFor = customToolFor;
|
|
80
|
+
exports.customToolForSchema = customToolForSchema;
|
|
76
81
|
const schemas = __importStar(require("../types/schemas.generated"));
|
|
77
82
|
const tool_request_schemas_1 = require("../utils/tool-request-schemas");
|
|
78
83
|
__exportStar(require("../types/schemas.generated"), exports);
|
|
79
84
|
var tool_request_schemas_2 = require("../utils/tool-request-schemas");
|
|
80
85
|
Object.defineProperty(exports, "TOOL_REQUEST_SCHEMAS", { enumerable: true, get: function () { return tool_request_schemas_2.TOOL_REQUEST_SCHEMAS; } });
|
|
81
86
|
function shapeOf(s) {
|
|
82
|
-
|
|
83
|
-
return undefined;
|
|
84
|
-
const candidate = s.shape;
|
|
87
|
+
const candidate = s?.shape;
|
|
85
88
|
return candidate && typeof candidate === 'object' ? candidate : undefined;
|
|
86
89
|
}
|
|
87
90
|
/**
|
|
@@ -93,9 +96,18 @@ function shapeOf(s) {
|
|
|
93
96
|
* registered with the framework (get_products, create_media_buy,
|
|
94
97
|
* sync_catalogs, check_governance, comply_test_controller, all five
|
|
95
98
|
* *_collection_list tools, validate_property_delivery, acquire_rights,
|
|
96
|
-
* et al.) PLUS
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
+
* et al.) PLUS shape-compatible custom surfaces such as `creative_approval`,
|
|
100
|
+
* `search_brands`, and `verify_brand_claims` so sellers don't have to
|
|
101
|
+
* hand-author shapes for those either.
|
|
102
|
+
*
|
|
103
|
+
* `verify_brand_claim` is intentionally not present here: its request schema
|
|
104
|
+
* is an envelope intersected with a claim-variant union, so use
|
|
105
|
+
* {@link TOOL_INPUT_SCHEMAS} with {@link customToolForSchema} to preserve the
|
|
106
|
+
* discriminated union at validation time.
|
|
107
|
+
*
|
|
108
|
+
* Known tool names retain exact `.shape` field types for IDE completion and
|
|
109
|
+
* handler inference. Arbitrary string lookups return `undefined` until callers
|
|
110
|
+
* narrow the tool name to a known key.
|
|
99
111
|
*
|
|
100
112
|
* If a future AdCP release adds a new tool with a generated request
|
|
101
113
|
* schema, add its entry here (or to `TOOL_REQUEST_SCHEMAS` if it's
|
|
@@ -103,12 +115,31 @@ function shapeOf(s) {
|
|
|
103
115
|
* map entries by diffing against the generated schemas.
|
|
104
116
|
*/
|
|
105
117
|
exports.TOOL_INPUT_SHAPES = Object.freeze({
|
|
106
|
-
...Object.fromEntries(Object.entries(tool_request_schemas_1.TOOL_REQUEST_SCHEMAS).
|
|
118
|
+
...Object.fromEntries(Object.entries(tool_request_schemas_1.TOOL_REQUEST_SCHEMAS).map(([k, s]) => {
|
|
107
119
|
const shape = shapeOf(s);
|
|
108
|
-
|
|
120
|
+
if (!shape) {
|
|
121
|
+
throw new Error(`TOOL_REQUEST_SCHEMAS["${k}"] has no .shape — schema must be a ZodObject (use merge() not and())`);
|
|
122
|
+
}
|
|
123
|
+
return [k, shape];
|
|
109
124
|
})),
|
|
110
125
|
creative_approval: schemas.CreativeApprovalRequestSchema.shape,
|
|
111
|
-
|
|
126
|
+
search_brands: schemas.SearchBrandsRequestSchema.shape,
|
|
127
|
+
verify_brand_claims: schemas.VerifyBrandClaimsRequestBulkSchema.shape,
|
|
128
|
+
});
|
|
129
|
+
/**
|
|
130
|
+
* Map of known AdCP tool names to their full generated Zod request schemas.
|
|
131
|
+
*
|
|
132
|
+
* Prefer {@link TOOL_INPUT_SHAPES} when registering a shape-compatible tool
|
|
133
|
+
* with `registerTool()`. Use this map for union/intersection request schemas,
|
|
134
|
+
* notably `verify_brand_claim`, where a raw shape would lose the correlation
|
|
135
|
+
* between `claim_type` and the corresponding `claim` payload.
|
|
136
|
+
*/
|
|
137
|
+
exports.TOOL_INPUT_SCHEMAS = Object.freeze({
|
|
138
|
+
...tool_request_schemas_1.TOOL_REQUEST_SCHEMAS,
|
|
139
|
+
creative_approval: schemas.CreativeApprovalRequestSchema,
|
|
140
|
+
search_brands: schemas.SearchBrandsRequestSchema,
|
|
141
|
+
verify_brand_claim: schemas.VerifyBrandClaimRequestSchema,
|
|
142
|
+
verify_brand_claims: schemas.VerifyBrandClaimsRequestBulkSchema,
|
|
112
143
|
});
|
|
113
144
|
/**
|
|
114
145
|
* Register a custom tool with MCP-compatible `inputSchema` + handler
|
|
@@ -130,4 +161,14 @@ function customToolFor(name, description, inputSchema, handler) {
|
|
|
130
161
|
void name;
|
|
131
162
|
return { description, inputSchema, handler };
|
|
132
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Register a custom tool whose MCP `inputSchema` is a full Zod schema rather
|
|
166
|
+
* than a raw shape. Use this for request schemas with top-level unions or
|
|
167
|
+
* intersections, where `.shape` would either be unavailable or would weaken
|
|
168
|
+
* runtime validation.
|
|
169
|
+
*/
|
|
170
|
+
function customToolForSchema(name, description, inputSchema, handler) {
|
|
171
|
+
void name;
|
|
172
|
+
return { description, inputSchema, handler };
|
|
173
|
+
}
|
|
133
174
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/schemas/index.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/schemas/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+GH,sCAgBC;AAQD,kDAYC;AAhJD,oEAAsD;AACtD,wEAAqE;AAGrE,6DAA2C;AAC3C,sEAAqE;AAA5D,4HAAA,oBAAoB,OAAA;AA0B7B,SAAS,OAAO,CAAmC,CAAgB;IACjE,MAAM,SAAS,GAAG,CAAC,EAAE,KAAK,CAAC;IAC3B,OAAO,SAAS,IAAI,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5E,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACU,QAAA,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7C,GAAG,MAAM,CAAC,WAAW,CACnB,MAAM,CAAC,OAAO,CAAC,2CAAoB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE;QAClD,MAAM,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,MAAM,IAAI,KAAK,CACb,yBAAyB,CAAC,uEAAuE,CAClG,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,CAAC,EAAE,KAAK,CAAU,CAAC;IAC7B,CAAC,CAAC,CACH;IACD,iBAAiB,EAAE,OAAO,CAAC,6BAA6B,CAAC,KAAK;IAC9D,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,KAAK;IACtD,mBAAmB,EAAE,OAAO,CAAC,kCAAkC,CAAC,KAAK;CACtE,CAA8B,CAAC;AAEhC;;;;;;;GAOG;AACU,QAAA,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,GAAG,2CAAoB;IACvB,iBAAiB,EAAE,OAAO,CAAC,6BAA6B;IACxD,aAAa,EAAE,OAAO,CAAC,yBAAyB;IAChD,kBAAkB,EAAE,OAAO,CAAC,6BAA6B;IACzD,mBAAmB,EAAE,OAAO,CAAC,kCAAkC;CAChE,CAA+B,CAAC;AAEjC;;;;;;;;;;;GAWG;AACH,SAAgB,aAAa,CAC3B,IAAY,EACZ,WAAmB,EACnB,WAAmB,EACnB,OAA4F;IAM5F,yEAAyE;IACzE,wEAAwE;IACxE,uEAAuE;IACvE,8DAA8D;IAC9D,KAAK,IAAI,CAAC;IACV,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;AAC/C,CAAC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CACjC,IAAY,EACZ,WAAmB,EACnB,WAAoB,EACpB,OAAgF;IAMhF,KAAK,IAAI,CAAC;IACV,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;AAC/C,CAAC"}
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
"source_sha": "4e553ad955f83b49c7d221ab5c3ff78237ad02e3",
|
|
5
5
|
"source_tarball_sha256": "580656d6466ef9f0d1119985e6726c2efea718dc671e2ad30957fcb2fd54af0f",
|
|
6
6
|
"upstream_adcp_version": "2.5.3",
|
|
7
|
-
"synced_at": "2026-05-
|
|
7
|
+
"synced_at": "2026-05-24T20:49:31.609Z"
|
|
8
8
|
}
|
|
@@ -58,6 +58,7 @@ import type { AcquireRightsAcquired, AcquireRightsPendingApproval, AcquireRights
|
|
|
58
58
|
import type { GetProductsResponse, CreateMediaBuySuccess, CreateMediaBuyResponse, UpdateMediaBuySuccess, UpdateMediaBuyResponse, GetMediaBuysResponse, GetMediaBuyDeliveryResponse, ListAccountsResponse, ListCreativeFormatsResponse, ProvidePerformanceFeedbackSuccess, ProvidePerformanceFeedbackResponse, BuildCreativeSuccess, BuildCreativeMultiSuccess, BuildCreativeResponse, GetCreativeDeliveryResponse, ListCreativesResponse, SyncCreativesSuccess, SyncCreativesResponse, GetSignalsResponse, ActivateSignalSuccess, ActivateSignalResponse, GetAdCPCapabilitiesResponse, CreatePropertyListResponse, UpdatePropertyListResponse, GetPropertyListResponse, ListPropertyListsResponse, DeletePropertyListResponse, CreateCollectionListResponse, UpdateCollectionListResponse, GetCollectionListResponse, ListCollectionListsResponse, DeleteCollectionListResponse, SyncPlansResponse, CheckGovernanceResponse, ReportPlanOutcomeResponse, GetPlanAuditLogsResponse, SIGetOfferingResponse, SIInitiateSessionResponse, SISendMessageResponse, SITerminateSessionResponse, SyncEventSourcesSuccess, SyncEventSourcesResponse, LogEventSuccess, LogEventResponse, SyncAudiencesSuccess, SyncAudiencesResponse, SyncCatalogsSuccess, SyncCatalogsResponse, SyncAccountsSuccess, SyncAccountsResponse, SyncGovernanceSuccess, SyncGovernanceResponse, GetAccountFinancialsSuccess, GetAccountFinancialsResponse, GetCreativeFeaturesResponse, ReportUsageResponse, PreviewCreativeResponse, AccountReference, BrandReference, ListContentStandardsResponse, GetContentStandardsResponse, CreateContentStandardsResponse, UpdateContentStandardsResponse, CalibrateContentResponse, ValidateContentDeliveryResponse, GetMediaBuyArtifactsResponse } from '../types/tools.generated';
|
|
59
59
|
import type { MediaBuyFeatures, AccountCapabilities, CreativeCapabilities } from '../utils/capabilities';
|
|
60
60
|
import type { MediaChannel } from '../types/tools.generated';
|
|
61
|
+
import type { ServerPayload } from '../types/server-payload';
|
|
61
62
|
export interface AdcpLogger {
|
|
62
63
|
debug(message: string, data?: Record<string, unknown>): void;
|
|
63
64
|
info(message: string, data?: Record<string, unknown>): void;
|
|
@@ -186,267 +187,267 @@ export declare function requireSessionKey<TAccount = unknown>(ctx: HandlerContex
|
|
|
186
187
|
export interface AdcpToolMap {
|
|
187
188
|
get_products: {
|
|
188
189
|
params: z.input<typeof GetProductsRequestSchema>;
|
|
189
|
-
result: GetProductsResponse
|
|
190
|
+
result: ServerPayload<GetProductsResponse>;
|
|
190
191
|
response: GetProductsResponse;
|
|
191
192
|
};
|
|
192
193
|
create_media_buy: {
|
|
193
194
|
params: z.input<typeof CreateMediaBuyRequestSchema>;
|
|
194
|
-
result: CreateMediaBuySuccess
|
|
195
|
+
result: ServerPayload<CreateMediaBuySuccess>;
|
|
195
196
|
response: CreateMediaBuyResponse;
|
|
196
197
|
};
|
|
197
198
|
update_media_buy: {
|
|
198
199
|
params: z.input<typeof UpdateMediaBuyRequestSchema>;
|
|
199
|
-
result: UpdateMediaBuySuccess
|
|
200
|
+
result: ServerPayload<UpdateMediaBuySuccess>;
|
|
200
201
|
response: UpdateMediaBuyResponse;
|
|
201
202
|
};
|
|
202
203
|
get_media_buys: {
|
|
203
204
|
params: z.input<typeof GetMediaBuysRequestSchema>;
|
|
204
|
-
result: GetMediaBuysResponse
|
|
205
|
+
result: ServerPayload<GetMediaBuysResponse>;
|
|
205
206
|
response: GetMediaBuysResponse;
|
|
206
207
|
};
|
|
207
208
|
get_media_buy_delivery: {
|
|
208
209
|
params: z.input<typeof GetMediaBuyDeliveryRequestSchema>;
|
|
209
|
-
result: GetMediaBuyDeliveryResponse
|
|
210
|
+
result: ServerPayload<GetMediaBuyDeliveryResponse>;
|
|
210
211
|
response: GetMediaBuyDeliveryResponse;
|
|
211
212
|
};
|
|
212
213
|
provide_performance_feedback: {
|
|
213
214
|
params: z.input<typeof ProvidePerformanceFeedbackRequestSchema>;
|
|
214
|
-
result: ProvidePerformanceFeedbackSuccess
|
|
215
|
+
result: ServerPayload<ProvidePerformanceFeedbackSuccess>;
|
|
215
216
|
response: ProvidePerformanceFeedbackResponse;
|
|
216
217
|
};
|
|
217
218
|
list_creative_formats: {
|
|
218
219
|
params: z.input<typeof ListCreativeFormatsRequestSchema>;
|
|
219
|
-
result: ListCreativeFormatsResponse
|
|
220
|
+
result: ServerPayload<ListCreativeFormatsResponse>;
|
|
220
221
|
response: ListCreativeFormatsResponse;
|
|
221
222
|
};
|
|
222
223
|
build_creative: {
|
|
223
224
|
params: z.input<typeof BuildCreativeRequestSchema>;
|
|
224
|
-
result: BuildCreativeSuccess | BuildCreativeMultiSuccess
|
|
225
|
+
result: ServerPayload<BuildCreativeSuccess> | ServerPayload<BuildCreativeMultiSuccess>;
|
|
225
226
|
response: BuildCreativeResponse;
|
|
226
227
|
};
|
|
227
228
|
preview_creative: {
|
|
228
229
|
params: z.input<typeof PreviewCreativeRequestSchema>;
|
|
229
|
-
result: PreviewCreativeResponse
|
|
230
|
+
result: ServerPayload<PreviewCreativeResponse>;
|
|
230
231
|
response: PreviewCreativeResponse;
|
|
231
232
|
};
|
|
232
233
|
get_creative_delivery: {
|
|
233
234
|
params: z.input<typeof GetCreativeDeliveryRequestSchema>;
|
|
234
|
-
result: GetCreativeDeliveryResponse
|
|
235
|
+
result: ServerPayload<GetCreativeDeliveryResponse>;
|
|
235
236
|
response: GetCreativeDeliveryResponse;
|
|
236
237
|
};
|
|
237
238
|
list_creatives: {
|
|
238
239
|
params: z.input<typeof ListCreativesRequestSchema>;
|
|
239
|
-
result: ListCreativesResponse
|
|
240
|
+
result: ServerPayload<ListCreativesResponse>;
|
|
240
241
|
response: ListCreativesResponse;
|
|
241
242
|
};
|
|
242
243
|
sync_creatives: {
|
|
243
244
|
params: z.input<typeof SyncCreativesRequestSchema>;
|
|
244
|
-
result: SyncCreativesSuccess
|
|
245
|
+
result: ServerPayload<SyncCreativesSuccess>;
|
|
245
246
|
response: SyncCreativesResponse;
|
|
246
247
|
};
|
|
247
248
|
get_signals: {
|
|
248
249
|
params: z.input<typeof GetSignalsRequestSchema>;
|
|
249
|
-
result: GetSignalsResponse
|
|
250
|
+
result: ServerPayload<GetSignalsResponse>;
|
|
250
251
|
response: GetSignalsResponse;
|
|
251
252
|
};
|
|
252
253
|
activate_signal: {
|
|
253
254
|
params: z.input<typeof ActivateSignalRequestSchema>;
|
|
254
|
-
result: ActivateSignalSuccess
|
|
255
|
+
result: ServerPayload<ActivateSignalSuccess>;
|
|
255
256
|
response: ActivateSignalResponse;
|
|
256
257
|
};
|
|
257
258
|
list_accounts: {
|
|
258
259
|
params: z.input<typeof ListAccountsRequestSchema>;
|
|
259
|
-
result: ListAccountsResponse
|
|
260
|
+
result: ServerPayload<ListAccountsResponse>;
|
|
260
261
|
response: ListAccountsResponse;
|
|
261
262
|
};
|
|
262
263
|
sync_accounts: {
|
|
263
264
|
params: z.input<typeof SyncAccountsRequestSchema>;
|
|
264
|
-
result: SyncAccountsSuccess
|
|
265
|
+
result: ServerPayload<SyncAccountsSuccess>;
|
|
265
266
|
response: SyncAccountsResponse;
|
|
266
267
|
};
|
|
267
268
|
sync_governance: {
|
|
268
269
|
params: z.input<typeof SyncGovernanceRequestSchema>;
|
|
269
|
-
result: SyncGovernanceSuccess
|
|
270
|
+
result: ServerPayload<SyncGovernanceSuccess>;
|
|
270
271
|
response: SyncGovernanceResponse;
|
|
271
272
|
};
|
|
272
273
|
get_account_financials: {
|
|
273
274
|
params: z.input<typeof GetAccountFinancialsRequestSchema>;
|
|
274
|
-
result: GetAccountFinancialsSuccess
|
|
275
|
+
result: ServerPayload<GetAccountFinancialsSuccess>;
|
|
275
276
|
response: GetAccountFinancialsResponse;
|
|
276
277
|
};
|
|
277
278
|
report_usage: {
|
|
278
279
|
params: z.input<typeof ReportUsageRequestSchema>;
|
|
279
|
-
result: ReportUsageResponse
|
|
280
|
+
result: ServerPayload<ReportUsageResponse>;
|
|
280
281
|
response: ReportUsageResponse;
|
|
281
282
|
};
|
|
282
283
|
sync_event_sources: {
|
|
283
284
|
params: z.input<typeof SyncEventSourcesRequestSchema>;
|
|
284
|
-
result: SyncEventSourcesSuccess
|
|
285
|
+
result: ServerPayload<SyncEventSourcesSuccess>;
|
|
285
286
|
response: SyncEventSourcesResponse;
|
|
286
287
|
};
|
|
287
288
|
log_event: {
|
|
288
289
|
params: z.input<typeof LogEventRequestSchema>;
|
|
289
|
-
result: LogEventSuccess
|
|
290
|
+
result: ServerPayload<LogEventSuccess>;
|
|
290
291
|
response: LogEventResponse;
|
|
291
292
|
};
|
|
292
293
|
sync_audiences: {
|
|
293
294
|
params: z.input<typeof SyncAudiencesRequestSchema>;
|
|
294
|
-
result: SyncAudiencesSuccess
|
|
295
|
+
result: ServerPayload<SyncAudiencesSuccess>;
|
|
295
296
|
response: SyncAudiencesResponse;
|
|
296
297
|
};
|
|
297
298
|
sync_catalogs: {
|
|
298
299
|
params: z.input<typeof SyncCatalogsRequestSchema>;
|
|
299
|
-
result: SyncCatalogsSuccess
|
|
300
|
+
result: ServerPayload<SyncCatalogsSuccess>;
|
|
300
301
|
response: SyncCatalogsResponse;
|
|
301
302
|
};
|
|
302
303
|
create_property_list: {
|
|
303
304
|
params: z.input<typeof CreatePropertyListRequestSchema>;
|
|
304
|
-
result: CreatePropertyListResponse
|
|
305
|
+
result: ServerPayload<CreatePropertyListResponse>;
|
|
305
306
|
response: CreatePropertyListResponse;
|
|
306
307
|
};
|
|
307
308
|
update_property_list: {
|
|
308
309
|
params: z.input<typeof UpdatePropertyListRequestSchema>;
|
|
309
|
-
result: UpdatePropertyListResponse
|
|
310
|
+
result: ServerPayload<UpdatePropertyListResponse>;
|
|
310
311
|
response: UpdatePropertyListResponse;
|
|
311
312
|
};
|
|
312
313
|
get_property_list: {
|
|
313
314
|
params: z.input<typeof GetPropertyListRequestSchema>;
|
|
314
|
-
result: GetPropertyListResponse
|
|
315
|
+
result: ServerPayload<GetPropertyListResponse>;
|
|
315
316
|
response: GetPropertyListResponse;
|
|
316
317
|
};
|
|
317
318
|
list_property_lists: {
|
|
318
319
|
params: z.input<typeof ListPropertyListsRequestSchema>;
|
|
319
|
-
result: ListPropertyListsResponse
|
|
320
|
+
result: ServerPayload<ListPropertyListsResponse>;
|
|
320
321
|
response: ListPropertyListsResponse;
|
|
321
322
|
};
|
|
322
323
|
delete_property_list: {
|
|
323
324
|
params: z.input<typeof DeletePropertyListRequestSchema>;
|
|
324
|
-
result: DeletePropertyListResponse
|
|
325
|
+
result: ServerPayload<DeletePropertyListResponse>;
|
|
325
326
|
response: DeletePropertyListResponse;
|
|
326
327
|
};
|
|
327
328
|
create_collection_list: {
|
|
328
329
|
params: z.input<typeof CreateCollectionListRequestSchema>;
|
|
329
|
-
result: CreateCollectionListResponse
|
|
330
|
+
result: ServerPayload<CreateCollectionListResponse>;
|
|
330
331
|
response: CreateCollectionListResponse;
|
|
331
332
|
};
|
|
332
333
|
update_collection_list: {
|
|
333
334
|
params: z.input<typeof UpdateCollectionListRequestSchema>;
|
|
334
|
-
result: UpdateCollectionListResponse
|
|
335
|
+
result: ServerPayload<UpdateCollectionListResponse>;
|
|
335
336
|
response: UpdateCollectionListResponse;
|
|
336
337
|
};
|
|
337
338
|
get_collection_list: {
|
|
338
339
|
params: z.input<typeof GetCollectionListRequestSchema>;
|
|
339
|
-
result: GetCollectionListResponse
|
|
340
|
+
result: ServerPayload<GetCollectionListResponse>;
|
|
340
341
|
response: GetCollectionListResponse;
|
|
341
342
|
};
|
|
342
343
|
list_collection_lists: {
|
|
343
344
|
params: z.input<typeof ListCollectionListsRequestSchema>;
|
|
344
|
-
result: ListCollectionListsResponse
|
|
345
|
+
result: ServerPayload<ListCollectionListsResponse>;
|
|
345
346
|
response: ListCollectionListsResponse;
|
|
346
347
|
};
|
|
347
348
|
delete_collection_list: {
|
|
348
349
|
params: z.input<typeof DeleteCollectionListRequestSchema>;
|
|
349
|
-
result: DeleteCollectionListResponse
|
|
350
|
+
result: ServerPayload<DeleteCollectionListResponse>;
|
|
350
351
|
response: DeleteCollectionListResponse;
|
|
351
352
|
};
|
|
352
353
|
list_content_standards: {
|
|
353
354
|
params: z.input<typeof ListContentStandardsRequestSchema>;
|
|
354
|
-
result: ListContentStandardsResponse
|
|
355
|
+
result: ServerPayload<ListContentStandardsResponse>;
|
|
355
356
|
response: ListContentStandardsResponse;
|
|
356
357
|
};
|
|
357
358
|
get_content_standards: {
|
|
358
359
|
params: z.input<typeof GetContentStandardsRequestSchema>;
|
|
359
|
-
result: GetContentStandardsResponse
|
|
360
|
+
result: ServerPayload<GetContentStandardsResponse>;
|
|
360
361
|
response: GetContentStandardsResponse;
|
|
361
362
|
};
|
|
362
363
|
create_content_standards: {
|
|
363
364
|
params: z.input<typeof CreateContentStandardsRequestSchema>;
|
|
364
|
-
result: CreateContentStandardsResponse
|
|
365
|
+
result: ServerPayload<CreateContentStandardsResponse>;
|
|
365
366
|
response: CreateContentStandardsResponse;
|
|
366
367
|
};
|
|
367
368
|
update_content_standards: {
|
|
368
369
|
params: z.input<typeof UpdateContentStandardsRequestSchema>;
|
|
369
|
-
result: UpdateContentStandardsResponse
|
|
370
|
+
result: ServerPayload<UpdateContentStandardsResponse>;
|
|
370
371
|
response: UpdateContentStandardsResponse;
|
|
371
372
|
};
|
|
372
373
|
calibrate_content: {
|
|
373
374
|
params: z.input<typeof CalibrateContentRequestSchema>;
|
|
374
|
-
result: CalibrateContentResponse
|
|
375
|
+
result: ServerPayload<CalibrateContentResponse>;
|
|
375
376
|
response: CalibrateContentResponse;
|
|
376
377
|
};
|
|
377
378
|
validate_content_delivery: {
|
|
378
379
|
params: z.input<typeof ValidateContentDeliveryRequestSchema>;
|
|
379
|
-
result: ValidateContentDeliveryResponse
|
|
380
|
+
result: ServerPayload<ValidateContentDeliveryResponse>;
|
|
380
381
|
response: ValidateContentDeliveryResponse;
|
|
381
382
|
};
|
|
382
383
|
get_media_buy_artifacts: {
|
|
383
384
|
params: z.input<typeof GetMediaBuyArtifactsRequestSchema>;
|
|
384
|
-
result: GetMediaBuyArtifactsResponse
|
|
385
|
+
result: ServerPayload<GetMediaBuyArtifactsResponse>;
|
|
385
386
|
response: GetMediaBuyArtifactsResponse;
|
|
386
387
|
};
|
|
387
388
|
get_creative_features: {
|
|
388
389
|
params: z.input<typeof GetCreativeFeaturesRequestSchema>;
|
|
389
|
-
result: GetCreativeFeaturesResponse
|
|
390
|
+
result: ServerPayload<GetCreativeFeaturesResponse>;
|
|
390
391
|
response: GetCreativeFeaturesResponse;
|
|
391
392
|
};
|
|
392
393
|
sync_plans: {
|
|
393
394
|
params: z.input<typeof SyncPlansRequestSchema>;
|
|
394
|
-
result: SyncPlansResponse
|
|
395
|
+
result: ServerPayload<SyncPlansResponse>;
|
|
395
396
|
response: SyncPlansResponse;
|
|
396
397
|
};
|
|
397
398
|
check_governance: {
|
|
398
399
|
params: z.input<typeof CheckGovernanceRequestSchema>;
|
|
399
|
-
result: CheckGovernanceResponse
|
|
400
|
+
result: ServerPayload<CheckGovernanceResponse>;
|
|
400
401
|
response: CheckGovernanceResponse;
|
|
401
402
|
};
|
|
402
403
|
report_plan_outcome: {
|
|
403
404
|
params: z.input<typeof ReportPlanOutcomeRequestSchema>;
|
|
404
|
-
result: ReportPlanOutcomeResponse
|
|
405
|
+
result: ServerPayload<ReportPlanOutcomeResponse>;
|
|
405
406
|
response: ReportPlanOutcomeResponse;
|
|
406
407
|
};
|
|
407
408
|
get_plan_audit_logs: {
|
|
408
409
|
params: z.input<typeof GetPlanAuditLogsRequestSchema>;
|
|
409
|
-
result: GetPlanAuditLogsResponse
|
|
410
|
+
result: ServerPayload<GetPlanAuditLogsResponse>;
|
|
410
411
|
response: GetPlanAuditLogsResponse;
|
|
411
412
|
};
|
|
412
413
|
si_get_offering: {
|
|
413
414
|
params: z.input<typeof SIGetOfferingRequestSchema>;
|
|
414
|
-
result: SIGetOfferingResponse
|
|
415
|
+
result: ServerPayload<SIGetOfferingResponse>;
|
|
415
416
|
response: SIGetOfferingResponse;
|
|
416
417
|
};
|
|
417
418
|
si_initiate_session: {
|
|
418
419
|
params: z.input<typeof SIInitiateSessionRequestSchema>;
|
|
419
|
-
result: SIInitiateSessionResponse
|
|
420
|
+
result: ServerPayload<SIInitiateSessionResponse>;
|
|
420
421
|
response: SIInitiateSessionResponse;
|
|
421
422
|
};
|
|
422
423
|
si_send_message: {
|
|
423
424
|
params: z.input<typeof SISendMessageRequestSchema>;
|
|
424
|
-
result: SISendMessageResponse
|
|
425
|
+
result: ServerPayload<SISendMessageResponse>;
|
|
425
426
|
response: SISendMessageResponse;
|
|
426
427
|
};
|
|
427
428
|
si_terminate_session: {
|
|
428
429
|
params: z.input<typeof SITerminateSessionRequestSchema>;
|
|
429
|
-
result: SITerminateSessionResponse
|
|
430
|
+
result: ServerPayload<SITerminateSessionResponse>;
|
|
430
431
|
response: SITerminateSessionResponse;
|
|
431
432
|
};
|
|
432
433
|
get_brand_identity: {
|
|
433
434
|
params: z.input<typeof GetBrandIdentityRequestSchema>;
|
|
434
|
-
result: GetBrandIdentitySuccess
|
|
435
|
+
result: ServerPayload<GetBrandIdentitySuccess>;
|
|
435
436
|
response: GetBrandIdentitySuccess;
|
|
436
437
|
};
|
|
437
438
|
get_rights: {
|
|
438
439
|
params: z.input<typeof GetRightsRequestSchema>;
|
|
439
|
-
result: GetRightsSuccess
|
|
440
|
+
result: ServerPayload<GetRightsSuccess>;
|
|
440
441
|
response: GetRightsSuccess;
|
|
441
442
|
};
|
|
442
443
|
acquire_rights: {
|
|
443
444
|
params: z.input<typeof AcquireRightsRequestSchema>;
|
|
444
|
-
result: AcquireRightsAcquired | AcquireRightsPendingApproval | AcquireRightsRejected
|
|
445
|
+
result: ServerPayload<AcquireRightsAcquired> | ServerPayload<AcquireRightsPendingApproval> | ServerPayload<AcquireRightsRejected>;
|
|
445
446
|
response: AcquireRightsAcquired | AcquireRightsPendingApproval | AcquireRightsRejected;
|
|
446
447
|
};
|
|
447
448
|
update_rights: {
|
|
448
449
|
params: z.input<typeof UpdateRightsRequestSchema>;
|
|
449
|
-
result: UpdateRightsSuccess
|
|
450
|
+
result: ServerPayload<UpdateRightsSuccess>;
|
|
450
451
|
response: UpdateRightsResponse;
|
|
451
452
|
};
|
|
452
453
|
}
|