@c15t/node-sdk 3.0.0 → 3.1.0-canary.0
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/index.js +2 -1
- package/dist-types/contract.d.ts +8 -0
- package/dist-types/version.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -738,6 +738,7 @@ const path_buildPath = function(template, params) {
|
|
|
738
738
|
const values = params;
|
|
739
739
|
return template.replace(/:(?<name>[A-Za-z]+)/gu, (_match, name)=>encodeURIComponent(values[name] ?? ''));
|
|
740
740
|
};
|
|
741
|
+
const version = '3.1.0-canary.0';
|
|
741
742
|
const RETRYABLE_STATUSES = new Set([
|
|
742
743
|
408,
|
|
743
744
|
429,
|
|
@@ -750,7 +751,7 @@ const ownedHeaders = (options, requestId, hasBody)=>{
|
|
|
750
751
|
const headers = {
|
|
751
752
|
accept: 'application/json',
|
|
752
753
|
[POLICY_CONTRACT_HEADER]: String(POLICY_CONTRACT_VERSION),
|
|
753
|
-
'x-c15t-version':
|
|
754
|
+
'x-c15t-version': version,
|
|
754
755
|
'x-request-id': requestId
|
|
755
756
|
};
|
|
756
757
|
if (hasBody) headers['content-type'] = 'application/json';
|
package/dist-types/contract.d.ts
CHANGED
|
@@ -152,6 +152,7 @@ export declare const endpoints: {
|
|
|
152
152
|
};
|
|
153
153
|
}, "DATABASE_ERROR" | "EXTERNAL_ID_REQUIRED" | "TYPE_REQUIRED" | "UNAUTHORIZED">;
|
|
154
154
|
readonly createSubject: Endpoint<"/subjects", (Omit<{
|
|
155
|
+
addtlConsent?: string | undefined;
|
|
155
156
|
consentAction?: string | undefined;
|
|
156
157
|
documentSnapshotToken?: string | undefined;
|
|
157
158
|
domain: string;
|
|
@@ -239,6 +240,7 @@ export declare const endpoints: {
|
|
|
239
240
|
/** When consent was given: a `Date` or epoch milliseconds. */
|
|
240
241
|
readonly givenAt: Date | number;
|
|
241
242
|
}) | (Omit<{
|
|
243
|
+
addtlConsent?: string | undefined;
|
|
242
244
|
consentAction?: string | undefined;
|
|
243
245
|
documentSnapshotToken?: string | undefined;
|
|
244
246
|
domain: string;
|
|
@@ -266,6 +268,7 @@ export declare const endpoints: {
|
|
|
266
268
|
/** When consent was given: a `Date` or epoch milliseconds. */
|
|
267
269
|
readonly givenAt: Date | number;
|
|
268
270
|
}) | (Omit<{
|
|
271
|
+
addtlConsent?: string | undefined;
|
|
269
272
|
consentAction?: string | undefined;
|
|
270
273
|
documentSnapshotToken?: string | undefined;
|
|
271
274
|
domain: string;
|
|
@@ -467,6 +470,11 @@ export declare const endpoints: {
|
|
|
467
470
|
};
|
|
468
471
|
}, "DATABASE_ERROR" | "EXTERNAL_ID_REQUIRED" | "IDENTITY_CONFLICT" | "IDENTITY_TOKEN_INVALID" | "NOT_FOUND">;
|
|
469
472
|
readonly init: Endpoint<"/init", C15tInitRequest | undefined, {
|
|
473
|
+
adTechProviders?: {
|
|
474
|
+
id: number;
|
|
475
|
+
name: string;
|
|
476
|
+
policyUrl: string;
|
|
477
|
+
}[] | undefined;
|
|
470
478
|
branding: "c15t" | "consent" | "inth" | "none";
|
|
471
479
|
cmpId?: number | undefined;
|
|
472
480
|
customVendors?: {
|
package/dist-types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.0.0";
|
|
1
|
+
export declare const version = "3.1.0-canary.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c15t/node-sdk",
|
|
3
|
-
"version": "3.0.0",
|
|
3
|
+
"version": "3.1.0-canary.0",
|
|
4
4
|
"description": "Typed client for the c15t consent API: check consent, link users, record consents and publish legal documents from server code.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"c15t",
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"test:watch": "bun prebuild && vitest"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@c15t/schema": "3.0.0"
|
|
65
|
+
"@c15t/schema": "3.1.0-canary.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@c15t/backend": "3.0.0",
|
|
68
|
+
"@c15t/backend": "3.1.0-canary.0",
|
|
69
69
|
"@c15t/typescript-config": "0.0.1",
|
|
70
70
|
"@c15t/vitest-config": "1.0.0",
|
|
71
71
|
"@types/node": "25.5.0",
|