@adcp/sdk 10.0.0 → 10.0.1

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.
@@ -0,0 +1,3 @@
1
+ import type { VersionAdapter } from '../types';
2
+ export declare const getProductsAdapter: VersionAdapter;
3
+ //# sourceMappingURL=get-products.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-products.d.ts","sourceRoot":"","sources":["../../../../../src/lib/adapters/version/3.0/get-products.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAgB,MAAM,UAAU,CAAC;AAkB7D,eAAO,MAAM,kBAAkB,EAAE,cA+BhC,CAAC"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getProductsAdapter = void 0;
4
+ const adcp_version_config_1 = require("../../../utils/adcp-version-config");
5
+ const BRAND_DRIFT = {
6
+ type: 'pre31_brand_fields_stripped',
7
+ message: 'brand_kit_override stripped: field requires AdCP 3.1 but the target seller does not advertise 3.1 support. ' +
8
+ 'These fields will not reach the seller; brand identity (domain, brand_id) is preserved.',
9
+ strippedFields: ['brand_kit_override'],
10
+ };
11
+ const PRICING_FILTERS_DRIFT = {
12
+ type: 'pre31_pricing_currencies_stripped',
13
+ message: 'filters.pricing_currencies stripped: field requires AdCP 3.1 but the target seller does not advertise 3.1 support. ' +
14
+ 'The seller will return products in all available currencies.',
15
+ strippedFields: ['filters.pricing_currencies'],
16
+ };
17
+ exports.getProductsAdapter = {
18
+ toolName: 'get_products',
19
+ adaptRequest(params) {
20
+ if (!params || typeof params !== 'object')
21
+ return { params };
22
+ const req = params;
23
+ let adapted = req;
24
+ const drifts = [];
25
+ // Strip 3.1-only brand fields.
26
+ if (adapted.brand) {
27
+ const stripped = (0, adcp_version_config_1.omit31BrandFields)(adapted.brand);
28
+ if (stripped !== adapted.brand) {
29
+ adapted = { ...adapted, brand: stripped };
30
+ drifts.push(BRAND_DRIFT);
31
+ }
32
+ }
33
+ // Strip filters.pricing_currencies — 3.1-only filter. 3.0 sellers return
34
+ // UNSUPPORTED_FEATURE and 0 products when they receive this field.
35
+ if (adapted.filters && typeof adapted.filters === 'object') {
36
+ const filters = adapted.filters;
37
+ if ('pricing_currencies' in filters) {
38
+ const { pricing_currencies: _, ...restFilters } = filters;
39
+ adapted = { ...adapted, filters: restFilters };
40
+ drifts.push(PRICING_FILTERS_DRIFT);
41
+ }
42
+ }
43
+ if (adapted === req)
44
+ return { params };
45
+ return { params: adapted, drift: drifts[0] };
46
+ },
47
+ };
48
+ //# sourceMappingURL=get-products.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-products.js","sourceRoot":"","sources":["../../../../../src/lib/adapters/version/3.0/get-products.ts"],"names":[],"mappings":";;;AAAA,4EAAuE;AAGvE,MAAM,WAAW,GAAiB;IAChC,IAAI,EAAE,6BAA6B;IACnC,OAAO,EACL,6GAA6G;QAC7G,yFAAyF;IAC3F,cAAc,EAAE,CAAC,oBAAoB,CAAC;CACvC,CAAC;AAEF,MAAM,qBAAqB,GAAiB;IAC1C,IAAI,EAAE,mCAAmC;IACzC,OAAO,EACL,qHAAqH;QACrH,8DAA8D;IAChE,cAAc,EAAE,CAAC,4BAA4B,CAAC;CAC/C,CAAC;AAEW,QAAA,kBAAkB,GAAmB;IAChD,QAAQ,EAAE,cAAc;IACxB,YAAY,CAAC,MAAM;QACjB,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ;YAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAC7D,MAAM,GAAG,GAAG,MAAiC,CAAC;QAC9C,IAAI,OAAO,GAA4B,GAAG,CAAC;QAC3C,MAAM,MAAM,GAAmB,EAAE,CAAC;QAElC,+BAA+B;QAC/B,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;YAClB,MAAM,QAAQ,GAAG,IAAA,uCAAiB,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAClD,IAAI,QAAQ,KAAK,OAAO,CAAC,KAAK,EAAE,CAAC;gBAC/B,OAAO,GAAG,EAAE,GAAG,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;gBAC1C,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC3B,CAAC;QACH,CAAC;QAED,yEAAyE;QACzE,mEAAmE;QACnE,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,OAAO,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;YAC3D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAkC,CAAC;YAC3D,IAAI,oBAAoB,IAAI,OAAO,EAAE,CAAC;gBACpC,MAAM,EAAE,kBAAkB,EAAE,CAAC,EAAE,GAAG,WAAW,EAAE,GAAG,OAAO,CAAC;gBAC1D,OAAO,GAAG,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;gBAC/C,MAAM,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;YACrC,CAAC;QACH,CAAC;QAED,IAAI,OAAO,KAAK,GAAG;YAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QACvC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/C,CAAC;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/adapters/version/3.0/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,cAAc,CAIrD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/adapters/version/3.0/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,cAAc,CAIrD,CAAC"}
@@ -2,10 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.v30Adapters = void 0;
4
4
  const brand_fields_1 = require("./brand-fields");
5
+ const get_products_1 = require("./get-products");
5
6
  const sync_accounts_1 = require("./sync-accounts");
6
7
  exports.v30Adapters = [
7
8
  brand_fields_1.createMediaBuyAdapter,
8
- brand_fields_1.getProductsAdapter,
9
+ get_products_1.getProductsAdapter,
9
10
  sync_accounts_1.syncAccountsAdapter,
10
11
  ];
11
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/adapters/version/3.0/index.ts"],"names":[],"mappings":";;;AAAA,iDAA2E;AAC3E,mDAAsD;AAGzC,QAAA,WAAW,GAAkC;IACxD,oCAAqB;IACrB,iCAAkB;IAClB,mCAAmB;CACpB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/adapters/version/3.0/index.ts"],"names":[],"mappings":";;;AAAA,iDAAuD;AACvD,iDAAoD;AACpD,mDAAsD;AAGzC,QAAA,WAAW,GAAkC;IACxD,oCAAqB;IACrB,iCAAkB;IAClB,mCAAmB;CACpB,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-07-06T06:55:57.427Z"
7
+ "synced_at": "2026-07-06T22:47:43.294Z"
8
8
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * AdCP SDK library version
3
3
  */
4
- export declare const LIBRARY_VERSION = "10.0.0";
4
+ export declare const LIBRARY_VERSION = "10.0.1";
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: "10.0.0";
36
+ readonly library: "10.0.1";
37
37
  readonly adcp: "3.1.1";
38
38
  readonly compatibleVersions: readonly ["v2.5", "v2.6", "v3", "3.0.0-beta.1", "3.0-beta.1", "3.0-beta", "3.0.0-beta.3", "3.0-beta.3", "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.1.0", "3.1", "3.1.1"];
39
- readonly generatedAt: "2026-07-06T06:32:30.646Z";
39
+ readonly generatedAt: "2026-07-06T22:17:57.737Z";
40
40
  };
41
41
  /**
42
42
  * Get the AdCP specification version this library is built for
@@ -12,7 +12,7 @@ exports.toReleasePrecisionVersion = toReleasePrecisionVersion;
12
12
  /**
13
13
  * AdCP SDK library version
14
14
  */
15
- exports.LIBRARY_VERSION = '10.0.0';
15
+ exports.LIBRARY_VERSION = '10.0.1';
16
16
  /**
17
17
  * AdCP specification version this library is built for
18
18
  */
@@ -61,10 +61,10 @@ exports.COMPATIBLE_ADCP_VERSIONS = [
61
61
  * Full version information
62
62
  */
63
63
  exports.VERSION_INFO = {
64
- library: '10.0.0',
64
+ library: '10.0.1',
65
65
  adcp: '3.1.1',
66
66
  compatibleVersions: exports.COMPATIBLE_ADCP_VERSIONS,
67
- generatedAt: '2026-07-06T06:32:30.646Z',
67
+ generatedAt: '2026-07-06T22:17:57.737Z',
68
68
  };
69
69
  /**
70
70
  * Get the AdCP specification version this library is built for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adcp/sdk",
3
- "version": "10.0.0",
3
+ "version": "10.0.1",
4
4
  "description": "AdCP SDK — client, server, and compliance harnesses for the AdContext Protocol (MCP + A2A)",
5
5
  "workspaces": [
6
6
  ".",