@adcp/sdk 17.0.0-beta.30 → 17.0.0-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/testing/storyboard/context.js +14 -10
- package/dist/lib/testing/storyboard/context.mjs +14 -10
- package/dist/lib/testing/storyboard/validations.d.mts +1 -1
- package/dist/lib/testing/storyboard/validations.d.ts +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.mjs +3 -3
- package/docs/TYPE-SUMMARY.md +2 -2
- package/docs/llms.txt +2 -2
- package/docs/migration-14.x-rc-worksheet.md +4 -4
- package/package.json +1 -1
|
@@ -59,6 +59,18 @@ function asRecord(value) {
|
|
|
59
59
|
function readMediaBuyStatus(record) {
|
|
60
60
|
return (0, import_media_buy_status.getAuthoritativeMediaBuyStatus)(record);
|
|
61
61
|
}
|
|
62
|
+
const INTERIM_TASK_STATUSES = /* @__PURE__ */ new Set(["submitted", "working", "input-required"]);
|
|
63
|
+
function isInterimTaskEnvelope(data) {
|
|
64
|
+
return INTERIM_TASK_STATUSES.has(asRecord(data)?.status);
|
|
65
|
+
}
|
|
66
|
+
function extractTerminalMediaBuyFields(data, adcpVersion) {
|
|
67
|
+
if (isInterimTaskEnvelope(data)) return {};
|
|
68
|
+
const { mediaBuyId, status } = readMediaBuyFields(data, adcpVersion);
|
|
69
|
+
const extracted = {};
|
|
70
|
+
if (mediaBuyId) extracted.media_buy_id = mediaBuyId;
|
|
71
|
+
if (status) extracted.media_buy_status = status;
|
|
72
|
+
return extracted;
|
|
73
|
+
}
|
|
62
74
|
function readMediaBuyFields(data, adcpVersion) {
|
|
63
75
|
const outer = asRecord(data);
|
|
64
76
|
const nested = asRecord(outer?.media_buy);
|
|
@@ -187,18 +199,10 @@ const CONTEXT_EXTRACTORS = {
|
|
|
187
199
|
return readCompactMediaBuyFields(data);
|
|
188
200
|
},
|
|
189
201
|
create_media_buy(data, adcpVersion) {
|
|
190
|
-
|
|
191
|
-
const extracted = {};
|
|
192
|
-
if (mediaBuyId) extracted.media_buy_id = mediaBuyId;
|
|
193
|
-
if (status) extracted.media_buy_status = status;
|
|
194
|
-
return extracted;
|
|
202
|
+
return extractTerminalMediaBuyFields(data, adcpVersion);
|
|
195
203
|
},
|
|
196
204
|
update_media_buy(data, adcpVersion) {
|
|
197
|
-
|
|
198
|
-
const extracted = {};
|
|
199
|
-
if (mediaBuyId) extracted.media_buy_id = mediaBuyId;
|
|
200
|
-
if (status) extracted.media_buy_status = status;
|
|
201
|
-
return extracted;
|
|
205
|
+
return extractTerminalMediaBuyFields(data, adcpVersion);
|
|
202
206
|
},
|
|
203
207
|
get_media_buys(data) {
|
|
204
208
|
const d = data;
|
|
@@ -26,6 +26,18 @@ function asRecord(value) {
|
|
|
26
26
|
function readMediaBuyStatus(record) {
|
|
27
27
|
return getAuthoritativeMediaBuyStatus(record);
|
|
28
28
|
}
|
|
29
|
+
const INTERIM_TASK_STATUSES = /* @__PURE__ */ new Set(["submitted", "working", "input-required"]);
|
|
30
|
+
function isInterimTaskEnvelope(data) {
|
|
31
|
+
return INTERIM_TASK_STATUSES.has(asRecord(data)?.status);
|
|
32
|
+
}
|
|
33
|
+
function extractTerminalMediaBuyFields(data, adcpVersion) {
|
|
34
|
+
if (isInterimTaskEnvelope(data)) return {};
|
|
35
|
+
const { mediaBuyId, status } = readMediaBuyFields(data, adcpVersion);
|
|
36
|
+
const extracted = {};
|
|
37
|
+
if (mediaBuyId) extracted.media_buy_id = mediaBuyId;
|
|
38
|
+
if (status) extracted.media_buy_status = status;
|
|
39
|
+
return extracted;
|
|
40
|
+
}
|
|
29
41
|
function readMediaBuyFields(data, adcpVersion) {
|
|
30
42
|
const outer = asRecord(data);
|
|
31
43
|
const nested = asRecord(outer?.media_buy);
|
|
@@ -154,18 +166,10 @@ const CONTEXT_EXTRACTORS = {
|
|
|
154
166
|
return readCompactMediaBuyFields(data);
|
|
155
167
|
},
|
|
156
168
|
create_media_buy(data, adcpVersion) {
|
|
157
|
-
|
|
158
|
-
const extracted = {};
|
|
159
|
-
if (mediaBuyId) extracted.media_buy_id = mediaBuyId;
|
|
160
|
-
if (status) extracted.media_buy_status = status;
|
|
161
|
-
return extracted;
|
|
169
|
+
return extractTerminalMediaBuyFields(data, adcpVersion);
|
|
162
170
|
},
|
|
163
171
|
update_media_buy(data, adcpVersion) {
|
|
164
|
-
|
|
165
|
-
const extracted = {};
|
|
166
|
-
if (mediaBuyId) extracted.media_buy_id = mediaBuyId;
|
|
167
|
-
if (status) extracted.media_buy_status = status;
|
|
168
|
-
return extracted;
|
|
172
|
+
return extractTerminalMediaBuyFields(data, adcpVersion);
|
|
169
173
|
},
|
|
170
174
|
get_media_buys(data) {
|
|
171
175
|
const d = data;
|
|
@@ -200,7 +200,7 @@ export interface UpstreamTrafficQueryResult {
|
|
|
200
200
|
*/
|
|
201
201
|
export declare function runValidations(validations: StoryboardValidation[], context: ValidationContext): ValidationResult[];
|
|
202
202
|
/** Capability semver emitted in run summaries and used for advisory expiry. */
|
|
203
|
-
export declare const RUNNER_CAPABILITY_VERSION = "17.0.0-beta.
|
|
203
|
+
export declare const RUNNER_CAPABILITY_VERSION = "17.0.0-beta.31";
|
|
204
204
|
/** True when a failed validation contributes to the owning step's grade. */
|
|
205
205
|
export declare function validationFailsStep(result: ValidationResult): boolean;
|
|
206
206
|
/**
|
|
@@ -200,7 +200,7 @@ export interface UpstreamTrafficQueryResult {
|
|
|
200
200
|
*/
|
|
201
201
|
export declare function runValidations(validations: StoryboardValidation[], context: ValidationContext): ValidationResult[];
|
|
202
202
|
/** Capability semver emitted in run summaries and used for advisory expiry. */
|
|
203
|
-
export declare const RUNNER_CAPABILITY_VERSION = "17.0.0-beta.
|
|
203
|
+
export declare const RUNNER_CAPABILITY_VERSION = "17.0.0-beta.31";
|
|
204
204
|
/** True when a failed validation contributes to the owning step's grade. */
|
|
205
205
|
export declare function validationFailsStep(result: ValidationResult): boolean;
|
|
206
206
|
/**
|
package/dist/lib/version.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* AdCP SDK library version
|
|
3
3
|
*/
|
|
4
|
-
export declare const LIBRARY_VERSION = "17.0.0-beta.
|
|
4
|
+
export declare const LIBRARY_VERSION = "17.0.0-beta.31";
|
|
5
5
|
/**
|
|
6
6
|
* AdCP specification version this library is built for
|
|
7
7
|
*/
|
|
@@ -33,10 +33,10 @@ export type AdcpVersion = (typeof COMPATIBLE_ADCP_VERSIONS)[number];
|
|
|
33
33
|
* Full version information
|
|
34
34
|
*/
|
|
35
35
|
export declare const VERSION_INFO: {
|
|
36
|
-
readonly library: "17.0.0-beta.
|
|
36
|
+
readonly library: "17.0.0-beta.31";
|
|
37
37
|
readonly adcp: "3.3.0-rc.0";
|
|
38
38
|
readonly compatibleVersions: readonly ["v3", "3.0.0", "3.0", "3.0.1", "3.0.2", "3.0.3", "3.0.4", "3.0.5", "3.0.6", "3.0.7", "3.0.8", "3.0.9", "3.0.10", "3.0.11", "3.0.12", "3.0.13", "3.0.14", "3.0.15", "3.0.16", "3.0.17", "3.0.18", "3.0.19", "3.0.20", "3.0.21", "3.0.22", "3.0.23", "3.0.24", "3.0.25", "3.1.0", "3.1", "3.1.1", "3.1.2", "3.1.3", "3.1.4", "3.1.5", "3.1.6", "3.1.7", "3.1.8", "3.1.9", "3.1.10", "3.1.11", "3.1.12", "3.1.13", "3.1.14", "3.1.15", "3.1.16", "3.1.17", "3.1.18", "3.1.19", "3.1.20", "3.1.21", "3.1.22", "3.1.23", "3.1.24", "3.1.25", "3.1.26", "3.1.27", "3.1.28", "3.1.29", "3.1.30", "3.1.31", "3.2.1", "3.2", "3.2.2", "3.2.3", "3.2.4", "3.2.5", "3.2.6", "3.2.7", "3.2.8", "3.3.0-rc.0", "3.3-rc.0"];
|
|
39
|
-
readonly generatedAt: "2026-11-
|
|
39
|
+
readonly generatedAt: "2026-11-20T13:18:24.191Z";
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
42
42
|
* Get the AdCP specification version this library is built for
|
package/dist/lib/version.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* AdCP SDK library version
|
|
3
3
|
*/
|
|
4
|
-
export declare const LIBRARY_VERSION = "17.0.0-beta.
|
|
4
|
+
export declare const LIBRARY_VERSION = "17.0.0-beta.31";
|
|
5
5
|
/**
|
|
6
6
|
* AdCP specification version this library is built for
|
|
7
7
|
*/
|
|
@@ -33,10 +33,10 @@ export type AdcpVersion = (typeof COMPATIBLE_ADCP_VERSIONS)[number];
|
|
|
33
33
|
* Full version information
|
|
34
34
|
*/
|
|
35
35
|
export declare const VERSION_INFO: {
|
|
36
|
-
readonly library: "17.0.0-beta.
|
|
36
|
+
readonly library: "17.0.0-beta.31";
|
|
37
37
|
readonly adcp: "3.3.0-rc.0";
|
|
38
38
|
readonly compatibleVersions: readonly ["v3", "3.0.0", "3.0", "3.0.1", "3.0.2", "3.0.3", "3.0.4", "3.0.5", "3.0.6", "3.0.7", "3.0.8", "3.0.9", "3.0.10", "3.0.11", "3.0.12", "3.0.13", "3.0.14", "3.0.15", "3.0.16", "3.0.17", "3.0.18", "3.0.19", "3.0.20", "3.0.21", "3.0.22", "3.0.23", "3.0.24", "3.0.25", "3.1.0", "3.1", "3.1.1", "3.1.2", "3.1.3", "3.1.4", "3.1.5", "3.1.6", "3.1.7", "3.1.8", "3.1.9", "3.1.10", "3.1.11", "3.1.12", "3.1.13", "3.1.14", "3.1.15", "3.1.16", "3.1.17", "3.1.18", "3.1.19", "3.1.20", "3.1.21", "3.1.22", "3.1.23", "3.1.24", "3.1.25", "3.1.26", "3.1.27", "3.1.28", "3.1.29", "3.1.30", "3.1.31", "3.2.1", "3.2", "3.2.2", "3.2.3", "3.2.4", "3.2.5", "3.2.6", "3.2.7", "3.2.8", "3.3.0-rc.0", "3.3-rc.0"];
|
|
39
|
-
readonly generatedAt: "2026-11-
|
|
39
|
+
readonly generatedAt: "2026-11-20T13:18:24.191Z";
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
42
42
|
* Get the AdCP specification version this library is built for
|
package/dist/lib/version.js
CHANGED
|
@@ -31,7 +31,7 @@ __export(version_exports, {
|
|
|
31
31
|
toReleasePrecisionVersion: () => toReleasePrecisionVersion
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(version_exports);
|
|
34
|
-
const LIBRARY_VERSION = "17.0.0-beta.
|
|
34
|
+
const LIBRARY_VERSION = "17.0.0-beta.31";
|
|
35
35
|
const ADCP_VERSION = "3.3.0-rc.0";
|
|
36
36
|
const ADCP_MAJOR_VERSION = 3;
|
|
37
37
|
const COMPATIBLE_ADCP_VERSIONS = [
|
|
@@ -109,10 +109,10 @@ const COMPATIBLE_ADCP_VERSIONS = [
|
|
|
109
109
|
"3.3-rc.0"
|
|
110
110
|
];
|
|
111
111
|
const VERSION_INFO = {
|
|
112
|
-
library: "17.0.0-beta.
|
|
112
|
+
library: "17.0.0-beta.31",
|
|
113
113
|
adcp: "3.3.0-rc.0",
|
|
114
114
|
compatibleVersions: COMPATIBLE_ADCP_VERSIONS,
|
|
115
|
-
generatedAt: "2026-11-
|
|
115
|
+
generatedAt: "2026-11-20T13:18:24.191Z"
|
|
116
116
|
};
|
|
117
117
|
function getAdcpVersion() {
|
|
118
118
|
return ADCP_VERSION;
|
package/dist/lib/version.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const LIBRARY_VERSION = "17.0.0-beta.
|
|
1
|
+
const LIBRARY_VERSION = "17.0.0-beta.31";
|
|
2
2
|
const ADCP_VERSION = "3.3.0-rc.0";
|
|
3
3
|
const ADCP_MAJOR_VERSION = 3;
|
|
4
4
|
const COMPATIBLE_ADCP_VERSIONS = [
|
|
@@ -76,10 +76,10 @@ const COMPATIBLE_ADCP_VERSIONS = [
|
|
|
76
76
|
"3.3-rc.0"
|
|
77
77
|
];
|
|
78
78
|
const VERSION_INFO = {
|
|
79
|
-
library: "17.0.0-beta.
|
|
79
|
+
library: "17.0.0-beta.31",
|
|
80
80
|
adcp: "3.3.0-rc.0",
|
|
81
81
|
compatibleVersions: COMPATIBLE_ADCP_VERSIONS,
|
|
82
|
-
generatedAt: "2026-11-
|
|
82
|
+
generatedAt: "2026-11-20T13:18:24.191Z"
|
|
83
83
|
};
|
|
84
84
|
function getAdcpVersion() {
|
|
85
85
|
return ADCP_VERSION;
|
package/docs/TYPE-SUMMARY.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# AdCP Type Summary
|
|
2
2
|
|
|
3
|
-
> Generated at: 2026-11-
|
|
4
|
-
> @adcp/sdk v17.0.0-beta.
|
|
3
|
+
> Generated at: 2026-11-20
|
|
4
|
+
> @adcp/sdk v17.0.0-beta.31
|
|
5
5
|
|
|
6
6
|
Curated reference of the types that matter for using the AdCP client. For full generated types see `src/lib/types/tools.generated.ts` and `src/lib/types/core.generated.ts`.
|
|
7
7
|
|
package/docs/llms.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Ad Context Protocol (AdCP)
|
|
2
2
|
|
|
3
|
-
> Generated at: 2026-11-
|
|
4
|
-
> Library: @adcp/sdk v17.0.0-beta.
|
|
3
|
+
> Generated at: 2026-11-20
|
|
4
|
+
> Library: @adcp/sdk v17.0.0-beta.31
|
|
5
5
|
> AdCP major version: 3
|
|
6
6
|
> Canonical URL: https://adcontextprotocol.github.io/adcp-client/llms.txt
|
|
7
7
|
> Note: the `Library` stamp reflects the package.json version at doc-generation time. The narrative below describes the surface that lands on the next-published minor — including any 6.7 helpers documented here ahead of the release tag.
|
|
@@ -16,8 +16,8 @@ pin using `ADCP_VERSION` inside that tarball.
|
|
|
16
16
|
|
|
17
17
|
| Fact | Value |
|
|
18
18
|
| --- | --- |
|
|
19
|
-
| Checkout `package.json` version | `@adcp/sdk@17.0.0-beta.
|
|
20
|
-
| npm integrity | registry-derived after publication; run `npm view @adcp/sdk@17.0.0-beta.
|
|
19
|
+
| Checkout `package.json` version | `@adcp/sdk@17.0.0-beta.31` |
|
|
20
|
+
| npm integrity | registry-derived after publication; run `npm view @adcp/sdk@17.0.0-beta.31 dist.integrity` |
|
|
21
21
|
| Node.js runtime | `^20.19.0 || >=22.12.0` |
|
|
22
22
|
| Default AdCP wire release | `3.3.0-rc.0` |
|
|
23
23
|
| Maintained wire releases | `v3`, `3.0.0`, `3.0`, `3.0.1`, `3.0.2`, `3.0.3`, `3.0.4`, `3.0.5`, `3.0.6`, `3.0.7`, `3.0.8`, `3.0.9`, `3.0.10`, `3.0.11`, `3.0.12`, `3.0.13`, `3.0.14`, `3.0.15`, `3.0.16`, `3.0.17`, `3.0.18`, `3.0.19`, `3.0.20`, `3.0.21`, `3.0.22`, `3.0.23`, `3.0.24`, `3.0.25`, `3.1.0`, `3.1`, `3.1.1`, `3.1.2`, `3.1.3`, `3.1.4`, `3.1.5`, `3.1.6`, `3.1.7`, `3.1.8`, `3.1.9`, `3.1.10`, `3.1.11`, `3.1.12`, `3.1.13`, `3.1.14`, `3.1.15`, `3.1.16`, `3.1.17`, `3.1.18`, `3.1.19`, `3.1.20`, `3.1.21`, `3.1.22`, `3.1.23`, `3.1.24`, `3.1.25`, `3.1.26`, `3.1.27`, `3.1.28`, `3.1.29`, `3.1.30`, `3.1.31`, `3.2.1`, `3.2`, `3.2.2`, `3.2.3`, `3.2.4`, `3.2.5`, `3.2.6`, `3.2.7`, `3.2.8`, `3.3.0-rc.0`, `3.3-rc.0` |
|
|
@@ -26,8 +26,8 @@ pin using `ADCP_VERSION` inside that tarball.
|
|
|
26
26
|
For a checkout at the published release commit, install the exact package version:
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
npm install --save-exact '@adcp/sdk@17.0.0-beta.
|
|
30
|
-
npm view '@adcp/sdk@17.0.0-beta.
|
|
29
|
+
npm install --save-exact '@adcp/sdk@17.0.0-beta.31'
|
|
30
|
+
npm view '@adcp/sdk@17.0.0-beta.31' dist.integrity
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
### Required and optional peers
|