@c15t/node-sdk 2.0.0-rc.6 → 2.0.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/README.md +3 -3
- package/dist-types/client.d.ts +8 -2
- package/dist-types/endpoints/consent.d.ts +1 -1
- package/dist-types/endpoints/init.d.ts +1 -1
- package/dist-types/endpoints/status.d.ts +1 -1
- package/dist-types/endpoints/subjects.d.ts +1 -1
- package/dist-types/index.d.ts +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
[](https://github.com/c15t/c15t)
|
|
13
13
|
[](https://github.com/c15t/c15t/actions/workflows/ci.yml)
|
|
14
|
-
[](https://github.com/c15t/c15t/blob/main/LICENSE.md)
|
|
15
15
|
[](https://c15t.link/discord)
|
|
16
16
|
[](https://www.npmjs.com/package/@c15t/node-sdk)
|
|
17
17
|
[](https://github.com/c15t/c15t)
|
|
@@ -282,8 +282,8 @@ Our preference is that you make use of GitHub's private vulnerability reporting
|
|
|
282
282
|
|
|
283
283
|
## License
|
|
284
284
|
|
|
285
|
-
[
|
|
285
|
+
[Apache License 2.0](https://github.com/c15t/c15t/blob/main/LICENSE.md)
|
|
286
286
|
|
|
287
287
|
---
|
|
288
288
|
|
|
289
|
-
**Built
|
|
289
|
+
**Built by [Inth](https://inth.com?utm_source=github&utm_medium=repopage_%40c15t%2Fnode-sdk)**
|
package/dist-types/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CheckConsentOutput, CheckConsentQuery, GetSubjectOutput, GetSubjectQuery, InitOutput, ListSubjectsOutput, ListSubjectsQuery, PatchSubjectFullInput, PatchSubjectOutput, PostSubjectInput, PostSubjectOutput, StatusOutput } from '
|
|
1
|
+
import type { CheckConsentOutput, CheckConsentQuery, GetSubjectOutput, GetSubjectQuery, InitOutput, ListSubjectsOutput, ListSubjectsQuery, PatchSubjectFullInput, PatchSubjectOutput, PostSubjectInput, PostSubjectOutput, StatusOutput } from '@c15t/schema/types';
|
|
2
2
|
import type { C15TClientOptions, FetchOptions, ResponseContext } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* C15T Client for interacting with the consent management API
|
|
@@ -151,6 +151,9 @@ export declare class C15TClient {
|
|
|
151
151
|
id: string;
|
|
152
152
|
type: string;
|
|
153
153
|
policyId?: string | undefined;
|
|
154
|
+
policyVersion?: string | undefined;
|
|
155
|
+
policyHash?: string | undefined;
|
|
156
|
+
policyEffectiveDate?: Date | undefined;
|
|
154
157
|
isLatestPolicy: boolean;
|
|
155
158
|
preferences?: {
|
|
156
159
|
[x: string]: boolean;
|
|
@@ -181,6 +184,9 @@ export declare class C15TClient {
|
|
|
181
184
|
id: string;
|
|
182
185
|
type: string;
|
|
183
186
|
policyId?: string | undefined;
|
|
187
|
+
policyVersion?: string | undefined;
|
|
188
|
+
policyHash?: string | undefined;
|
|
189
|
+
policyEffectiveDate?: Date | undefined;
|
|
184
190
|
isLatestPolicy: boolean;
|
|
185
191
|
preferences?: {
|
|
186
192
|
[x: string]: boolean;
|
|
@@ -315,7 +321,7 @@ export declare class C15TClient {
|
|
|
315
321
|
} | undefined;
|
|
316
322
|
};
|
|
317
323
|
};
|
|
318
|
-
branding: "c15t" | "consent" | "none";
|
|
324
|
+
branding: "c15t" | "inth" | "consent" | "none";
|
|
319
325
|
gvl?: {
|
|
320
326
|
gvlSpecificationVersion: number;
|
|
321
327
|
vendorListVersion: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CheckConsentOutput, CheckConsentQuery } from '
|
|
1
|
+
import type { CheckConsentOutput, CheckConsentQuery } from '@c15t/schema/types';
|
|
2
2
|
import type { FetcherContext } from '../fetcher';
|
|
3
3
|
import type { FetchOptions, ResponseContext } from '../types';
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GetSubjectOutput, GetSubjectQuery, ListSubjectsOutput, ListSubjectsQuery, PatchSubjectFullInput, PatchSubjectOutput, PostSubjectInput, PostSubjectOutput } from '
|
|
1
|
+
import type { GetSubjectOutput, GetSubjectQuery, ListSubjectsOutput, ListSubjectsQuery, PatchSubjectFullInput, PatchSubjectOutput, PostSubjectInput, PostSubjectOutput } from '@c15t/schema/types';
|
|
2
2
|
import type { FetcherContext } from '../fetcher';
|
|
3
3
|
import type { FetchOptions, ResponseContext } from '../types';
|
|
4
4
|
/**
|
package/dist-types/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ import type { C15TClientOptions } from './types';
|
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
37
|
export declare function c15tClient(options?: C15TClientOptions): C15TClient;
|
|
38
|
-
export type { CheckConsentOutput, CheckConsentQuery, ConsentCheckResult, ConsentItem, GetSubjectInput, GetSubjectOutput, GetSubjectParams, GetSubjectQuery, InitOutput, ListSubjectsOutput, ListSubjectsQuery, PatchSubjectFullInput, PatchSubjectOutput, PostSubjectInput, PostSubjectOutput, StatusOutput, SubjectItem, } from '
|
|
38
|
+
export type { CheckConsentOutput, CheckConsentQuery, ConsentCheckResult, ConsentItem, GetSubjectInput, GetSubjectOutput, GetSubjectParams, GetSubjectQuery, InitOutput, ListSubjectsOutput, ListSubjectsQuery, PatchSubjectFullInput, PatchSubjectOutput, PostSubjectInput, PostSubjectOutput, StatusOutput, SubjectItem, } from '@c15t/schema/types';
|
|
39
39
|
export { C15TClient } from './client';
|
|
40
40
|
export { C15TError, isC15TError } from './error';
|
|
41
41
|
export type { FetcherContext } from './fetcher';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c15t/node-sdk",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Official Node.js SDK for c15t. Connects to the Consent Engine to read and write consent records and preferences. TypeScript-first, simple APIs, built-in auth and retries.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"url": "https://github.com/c15t/c15t.git",
|
|
26
26
|
"directory": "packages/node-sdk"
|
|
27
27
|
},
|
|
28
|
-
"license": "
|
|
28
|
+
"license": "Apache-2.0",
|
|
29
29
|
"type": "module",
|
|
30
30
|
"exports": {
|
|
31
31
|
".": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dist-types"
|
|
48
48
|
],
|
|
49
49
|
"scripts": {
|
|
50
|
-
"build": "rslib build",
|
|
50
|
+
"build": "rslib build && bun ../../scripts/normalize-dist-types.mjs",
|
|
51
51
|
"check-types": "tsc --noEmit",
|
|
52
52
|
"check-types:test": "tsc -p tsconfig.test.json",
|
|
53
53
|
"dev": "rslib build --watch",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"test:watch": "vitest"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@c15t/backend": "2.0.0
|
|
60
|
+
"@c15t/backend": "2.0.0",
|
|
61
61
|
"@orpc/client": "1.13.13",
|
|
62
62
|
"@orpc/contract": "1.13.13",
|
|
63
63
|
"@orpc/openapi-client": "^1.13.13",
|
|
64
64
|
"@orpc/server": "1.13.13"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@c15t/typescript-config": "0.0.1
|
|
67
|
+
"@c15t/typescript-config": "0.0.1",
|
|
68
68
|
"@c15t/vitest-config": "1.0.0",
|
|
69
69
|
"@electric-sql/pglite": "0.4.2",
|
|
70
70
|
"@libsql/kysely-libsql": "^0.4.1",
|