gdc-sdk-node-ts 2.3.24 → 2.3.26

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.
@@ -419,6 +419,11 @@ export type GrantProfessionalAccessInput = {
419
419
  actions: string[];
420
420
  consentIdentifier?: string;
421
421
  consentDate?: string;
422
+ /**
423
+ * ISO 8601 instant after which this grant must no longer authorize access.
424
+ * It is persisted and signed as the canonical `Consent.period-end` claim.
425
+ */
426
+ periodEnd?: string;
422
427
  decision?: 'permit' | 'deny';
423
428
  /** Permission-request Communication identifier or thread being answered. */
424
429
  eventBasedOn?: string;
@@ -713,6 +713,7 @@ export async function grantProfessionalAccessWithDeps(routeCtx, input, deps) {
713
713
  actions: input.actions,
714
714
  consentIdentifier: input.consentIdentifier,
715
715
  consentDate: input.consentDate,
716
+ periodEnd: input.periodEnd,
716
717
  decision: input.decision,
717
718
  eventBasedOn: input.eventBasedOn,
718
719
  sourceReference: input.sourceReference,
@@ -11,7 +11,10 @@ export function buildGrantProfessionalAccessClaimsWithCid(input, createRuntimeUu
11
11
  actions: Array.isArray(input?.actions) ? input.actions : [],
12
12
  consentIdentifier: input.consentIdentifier,
13
13
  consentDate: input.consentDate,
14
+ periodEnd: input.periodEnd,
14
15
  decision: input.decision,
16
+ eventBasedOn: input.eventBasedOn,
17
+ sourceReference: input.sourceReference,
15
18
  attachmentContentType: input.attachmentContentType,
16
19
  attachmentBase64: input.attachmentBase64,
17
20
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-sdk-node-ts",
3
- "version": "2.3.24",
3
+ "version": "2.3.26",
4
4
  "description": "Next-generation Node runtime package for the GDC SDK family",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Antifraud Services Inc.",
@@ -37,8 +37,8 @@
37
37
  "test:e2e:live-gw:clean": "bash ./scripts/run-live-gw-clean.sh"
38
38
  },
39
39
  "dependencies": {
40
- "gdc-common-utils-ts": "^2.3.21",
41
- "gdc-sdk-core-ts": "~2.3.14"
40
+ "gdc-common-utils-ts": "^2.3.24",
41
+ "gdc-sdk-core-ts": "~2.3.16"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^20.14.10",