gdc-sdk-node-ts 2.9.18 → 2.9.19

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.
@@ -9,13 +9,20 @@ import type { NodeCapability } from '../session.js';
9
9
  import type { IndividualOrganizationLifecycleInput } from 'gdc-sdk-core-ts';
10
10
  import type { BlockchainArtifactRegistrationInput, ClinicalBundleSearchInput, ClinicalSectionUpdateInput, SubjectSectionUpdateInput, ClinicalSummaryReadResult, ClinicalSummaryRequestInput, ClinicalSummaryUpdateInput, CommunicationIngestionInput, CommunicationParticipantRuntimeSearchInput, DigitalTwinGenerationInput, DigitalTwinSecondaryUseConsentInput, DigitalTwinSecondaryUseConsentResult, DigitalTwinSubjectLinkPurgeInput, DigitalTwinSubjectLinkPurgeResult, GrantProfessionalAccessInput, GrantProfessionalAccessResult, IndividualMemberLifecycleInput, IndividualMemberLicenseAddInput, IndividualMemberLicenseInvitationInput, IndividualMemberLicenseTransitionInput, IpsOrFhirImportInput, LicenseListRuntimeSearchInput, LicenseOfferRuntimeSearchInput, LicenseOrderRuntimeSearchInput, RevokeProfessionalAccessInput, RevokeProfessionalAccessResult, ProfessionalAccessRequestDecisionInput, ProfessionalAccessRequestSearchInput, RelatedPersonUpsertInput } from '../resource-operations.js';
11
11
  import type { SmartTokenExchangeResult, SmartTokenRequestInput } from '../smart-token.js';
12
- /** Profile-owned defaults applied to subject-section mutations after unlock. */
12
+ /**
13
+ * Legacy compatibility default applied after unlock.
14
+ *
15
+ * New writes should pass the selected relationship explicitly as the
16
+ * document's `attester`; this default is retained so existing integrations do
17
+ * not break during the transition.
18
+ */
13
19
  export type IndividualControllerProfileDefaults = Readonly<{
14
20
  attester: SubjectSectionUpdateInput['attester'];
15
21
  }>;
16
22
  /**
17
- * High-level section input. An opened controller profile supplies its own
18
- * protected RESPRSN attester; standalone facades must still provide one.
23
+ * High-level section input. New writes pass the document attester explicitly.
24
+ * The optional shape remains compatible with opened facades created by older
25
+ * integrations, which still supply their protected RESPRSN assignment.
19
26
  */
20
27
  export type IndividualControllerSubjectSectionUpdateInput = Omit<SubjectSectionUpdateInput, 'attester'> & Partial<Pick<SubjectSectionUpdateInput, 'attester'>>;
21
28
  /**
@@ -56,7 +56,11 @@ export type ServerProfileRecord = Readonly<{
56
56
  clientId: string;
57
57
  /** Stable non-secret id of the browser/app installation registered by DCR. */
58
58
  clientInstanceId?: string;
59
- /** Profile identity used as Composition attester; never a per-write author. */
59
+ /**
60
+ * Authorized attester assignment retained for legacy profile/session
61
+ * compatibility. Every new document still carries its own explicit
62
+ * `Composition.attester` value.
63
+ */
60
64
  attester?: ServerProfileAttester;
61
65
  /** Stable FHIR creator/permission identity; channel and device values are aliases only. */
62
66
  clinicalCreatorBinding?: ClinicalCreatorBinding;
@@ -311,7 +315,7 @@ export type ResolvedServerProfileSession = Readonly<{
311
315
  accessToken: string;
312
316
  /** Relationship authorization selected for this subject, not for the wallet. */
313
317
  actorMode: ServerActorMode;
314
- /** Attester bound to this authenticated and unlocked profile. */
318
+ /** Attester selected for this subject relationship and current session. */
315
319
  attester?: ServerProfileAttester;
316
320
  secureTransportAdapter: SecureDidcommTransportAdapter;
317
321
  /** Storage adapter available only while the PIN-unlocked session is alive. */
@@ -360,6 +364,8 @@ export type OpenedServerIndividualController = Readonly<{
360
364
  sdk: IndividualControllerSdk;
361
365
  /** Returns the protected RelatedPerson URI for FHIR document attestation. */
362
366
  getAttesterUriForDocs(): string;
367
+ /** Returns the selected relationship to place explicitly on this document. */
368
+ getDocumentAttester(): ServerProfileAttester;
363
369
  }>;
364
370
  /** Session-bound individual-member facade using the same personal actor wallet. */
365
371
  export type OpenedServerIndividualMember = Readonly<{
@@ -847,6 +847,7 @@ export class ServerProfileSessionManager {
847
847
  }
848
848
  return reference;
849
849
  },
850
+ getDocumentAttester: () => profileAttester,
850
851
  };
851
852
  }
852
853
  /** Opens an accepted caregiver/member relationship after exact subject selection. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-sdk-node-ts",
3
- "version": "2.9.18",
3
+ "version": "2.9.19",
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.",
@@ -38,7 +38,7 @@
38
38
  "test:e2e:live-gw:clean": "bash ./scripts/run-live-gw-clean.sh"
39
39
  },
40
40
  "dependencies": {
41
- "gdc-common-utils-ts": "2.9.16",
41
+ "gdc-common-utils-ts": "2.9.18",
42
42
  "gdc-sdk-core-ts": "2.9.10"
43
43
  },
44
44
  "devDependencies": {