@c15t/node-sdk 2.0.0-rc.6 → 2.0.0-rc.8

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.
@@ -1,4 +1,4 @@
1
- import type { CheckConsentOutput, CheckConsentQuery, GetSubjectOutput, GetSubjectQuery, InitOutput, ListSubjectsOutput, ListSubjectsQuery, PatchSubjectFullInput, PatchSubjectOutput, PostSubjectInput, PostSubjectOutput, StatusOutput } from '../../schema/dist-types/types';
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 '../../../schema/dist-types/types';
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 { InitOutput } from '../../../schema/dist-types/types';
1
+ import type { InitOutput } 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 { StatusOutput } from '../../../schema/dist-types/types';
1
+ import type { StatusOutput } 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 '../../../schema/dist-types/types';
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
  /**
@@ -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 '../../schema/dist-types/types';
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-rc.6",
3
+ "version": "2.0.0-rc.8",
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",
@@ -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,7 +57,7 @@
57
57
  "test:watch": "vitest"
58
58
  },
59
59
  "dependencies": {
60
- "@c15t/backend": "2.0.0-rc.6",
60
+ "@c15t/backend": "2.0.0-rc.8",
61
61
  "@orpc/client": "1.13.13",
62
62
  "@orpc/contract": "1.13.13",
63
63
  "@orpc/openapi-client": "^1.13.13",