@c15t/node-sdk 3.0.0-alpha.4 → 3.0.0-alpha.6
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 +1 -1
- package/dist-types/client.d.ts +1 -1
- package/dist-types/contract.d.ts +4 -65
- package/dist-types/version.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -735,7 +735,7 @@ const path_buildPath = function(template, params) {
|
|
|
735
735
|
const values = params;
|
|
736
736
|
return template.replace(/:(?<name>[A-Za-z]+)/gu, (_match, name)=>encodeURIComponent(values[name] ?? ''));
|
|
737
737
|
};
|
|
738
|
-
const version = '3.0.0-alpha.
|
|
738
|
+
const version = '3.0.0-alpha.6';
|
|
739
739
|
const RETRYABLE_STATUSES = new Set([
|
|
740
740
|
408,
|
|
741
741
|
429,
|
package/dist-types/client.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ export interface C15tPublicClient {
|
|
|
85
85
|
/** Backend version and the request context it saw. */
|
|
86
86
|
status: (options?: C15tCallOptions) => Promise<C15tResult<StatusOutput, 'SERVICE_UNAVAILABLE'>>;
|
|
87
87
|
/**
|
|
88
|
-
* Resolves the consent banner for a visitor:
|
|
88
|
+
* Resolves the consent banner for a visitor: location, translations,
|
|
89
89
|
* policies. Pass the visitor's context when calling from a server.
|
|
90
90
|
*/
|
|
91
91
|
init: (request?: C15tInitRequest, options?: C15tCallOptions) => Promise<C15tResult<InitOutput>>;
|
package/dist-types/contract.d.ts
CHANGED
|
@@ -163,6 +163,7 @@ export declare const endpoints: {
|
|
|
163
163
|
metadata?: {
|
|
164
164
|
[x: string]: unknown;
|
|
165
165
|
} | undefined;
|
|
166
|
+
model?: string | undefined;
|
|
166
167
|
policySnapshotToken?: string | undefined;
|
|
167
168
|
subjectId: string;
|
|
168
169
|
tcString?: string | undefined;
|
|
@@ -248,6 +249,7 @@ export declare const endpoints: {
|
|
|
248
249
|
metadata?: {
|
|
249
250
|
[x: string]: unknown;
|
|
250
251
|
} | undefined;
|
|
252
|
+
model?: string | undefined;
|
|
251
253
|
policySnapshotToken?: string | undefined;
|
|
252
254
|
subjectId: string;
|
|
253
255
|
tcString?: string | undefined;
|
|
@@ -273,6 +275,7 @@ export declare const endpoints: {
|
|
|
273
275
|
metadata?: {
|
|
274
276
|
[x: string]: unknown;
|
|
275
277
|
} | undefined;
|
|
278
|
+
model?: string | undefined;
|
|
276
279
|
policySnapshotToken?: string | undefined;
|
|
277
280
|
subjectId: string;
|
|
278
281
|
tcString?: string | undefined;
|
|
@@ -617,7 +620,7 @@ export declare const endpoints: {
|
|
|
617
620
|
url: string;
|
|
618
621
|
vendorListVersion: number;
|
|
619
622
|
} | undefined;
|
|
620
|
-
|
|
623
|
+
hosting?: "inth" | "self-hosted" | undefined;
|
|
621
624
|
location: {
|
|
622
625
|
countryCode: string | null;
|
|
623
626
|
regionCode: string | null;
|
|
@@ -687,66 +690,6 @@ export declare const endpoints: {
|
|
|
687
690
|
translations: {
|
|
688
691
|
language: string;
|
|
689
692
|
translations: {
|
|
690
|
-
common: {
|
|
691
|
-
acceptAll: string;
|
|
692
|
-
acknowledge?: string | undefined;
|
|
693
|
-
customize: string;
|
|
694
|
-
dismiss?: string | undefined;
|
|
695
|
-
rejectAll: string;
|
|
696
|
-
save: string;
|
|
697
|
-
};
|
|
698
|
-
consentGate: {
|
|
699
|
-
actionButton: string;
|
|
700
|
-
title: string;
|
|
701
|
-
};
|
|
702
|
-
consentManagerDialog: {
|
|
703
|
-
description: string;
|
|
704
|
-
title: string;
|
|
705
|
-
vendors?: {
|
|
706
|
-
disabledByCategory?: string | undefined;
|
|
707
|
-
privacyPolicy?: string | undefined;
|
|
708
|
-
switchLabel?: string | undefined;
|
|
709
|
-
title?: string | undefined;
|
|
710
|
-
} | undefined;
|
|
711
|
-
};
|
|
712
|
-
consentTypes: {
|
|
713
|
-
experience: {
|
|
714
|
-
description: string;
|
|
715
|
-
title: string;
|
|
716
|
-
};
|
|
717
|
-
functionality: {
|
|
718
|
-
description: string;
|
|
719
|
-
title: string;
|
|
720
|
-
};
|
|
721
|
-
marketing: {
|
|
722
|
-
description: string;
|
|
723
|
-
title: string;
|
|
724
|
-
};
|
|
725
|
-
measurement: {
|
|
726
|
-
description: string;
|
|
727
|
-
title: string;
|
|
728
|
-
};
|
|
729
|
-
necessary: {
|
|
730
|
-
description: string;
|
|
731
|
-
title: string;
|
|
732
|
-
};
|
|
733
|
-
};
|
|
734
|
-
cookieBanner: {
|
|
735
|
-
description: string;
|
|
736
|
-
title: string;
|
|
737
|
-
noticeDescription?: string | undefined;
|
|
738
|
-
noticeTitle?: string | undefined;
|
|
739
|
-
};
|
|
740
|
-
legalLinks: {
|
|
741
|
-
cookiePolicy: string;
|
|
742
|
-
privacyPolicy: string;
|
|
743
|
-
termsOfService: string;
|
|
744
|
-
};
|
|
745
|
-
rights?: {
|
|
746
|
-
optOut?: string | undefined;
|
|
747
|
-
preferences?: string | undefined;
|
|
748
|
-
} | undefined;
|
|
749
|
-
} | {
|
|
750
693
|
common: {
|
|
751
694
|
acceptAll?: string | undefined;
|
|
752
695
|
acknowledge?: string | undefined;
|
|
@@ -797,10 +740,6 @@ export declare const endpoints: {
|
|
|
797
740
|
noticeDescription?: string | undefined;
|
|
798
741
|
noticeTitle?: string | undefined;
|
|
799
742
|
};
|
|
800
|
-
frame?: {
|
|
801
|
-
actionButton?: string | undefined;
|
|
802
|
-
title?: string | undefined;
|
|
803
|
-
} | undefined;
|
|
804
743
|
legalLinks?: {
|
|
805
744
|
cookiePolicy?: string | undefined;
|
|
806
745
|
privacyPolicy?: string | undefined;
|
package/dist-types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.0.0-alpha.
|
|
1
|
+
export declare const version = "3.0.0-alpha.6";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c15t/node-sdk",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.6",
|
|
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-alpha.
|
|
65
|
+
"@c15t/schema": "3.0.0-alpha.5"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@c15t/backend": "3.0.0-alpha.
|
|
68
|
+
"@c15t/backend": "3.0.0-alpha.6",
|
|
69
69
|
"@c15t/typescript-config": "0.0.1",
|
|
70
70
|
"@c15t/vitest-config": "1.0.0",
|
|
71
71
|
"@types/node": "25.5.0",
|