gdc-sdk-node-ts 2.3.28 → 2.4.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 CHANGED
@@ -726,14 +726,16 @@ Use `OrganizationControllerSdk.submitLegalOrganizationVerificationTransaction(..
726
726
 
727
727
  Existing-tenant recovery/reverification:
728
728
 
729
- - use `OrganizationControllerSdk.submitLegalOrganizationIssue(...)` or
730
- `NodeHttpClient.submitLegalOrganizationIssue(...)` to refresh the ICA-backed
729
+ - use `OrganizationControllerSdk.submitLegalOrganizationCredentialReissuance(...)` or
730
+ `NodeHttpClient.submitLegalOrganizationCredentialReissuance(...)` to refresh the ICA-backed
731
731
  verification for an already registered tenant without creating a new Offer
732
732
  - GW is expected to return one new controller activation code as
733
733
  `org.schema.IndividualProduct.serialNumber`
734
734
  - then continue with the existing helper chain:
735
- `recoverOrganizationControllerWithIssueWithDeps(...)`
735
+ `recoverOrganizationControllerWithCredentialReissuanceWithDeps(...)`
736
736
  or directly `_exchange -> _dcr`
737
+ - `submitLegalOrganizationIssue(...)` remains only as a deprecated alias named
738
+ after the underlying `Organization/_issue` route
737
739
  - for a reproducible local/staging runtime check, use:
738
740
  `npm run test:e2e:live-gw:issue-recovery`
739
741
  - for the deterministic controller-lifecycle contract that also proves
@@ -1,9 +1,19 @@
1
1
  // Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
2
2
  import { resolvePollOptionsFromSeconds } from './poll-options.js';
3
3
  export async function activateEmployeeDeviceWithActivationCodeWithDeps(deps) {
4
+ const deviceInfo = deps.input.dcrPayload.ext_device_info;
5
+ const redirectUris = deps.input.dcrPayload.redirect_uris;
6
+ const jwks = deps.input.dcrPayload.jwks;
7
+ const clientInstanceId = String(deviceInfo?.device_id
8
+ || (deps.input.dcrPayload.software_id ? `software:${deps.input.dcrPayload.software_id}` : '')
9
+ || (redirectUris?.[0] ? `redirect:${redirectUris[0]}` : '')
10
+ || (jwks?.keys?.[0]?.kid ? `key:${jwks.keys[0].kid}` : '')).trim();
11
+ if (!clientInstanceId)
12
+ throw new Error('Device activation requires a stable device, software, redirect, or key identifier.');
4
13
  const exchangePayload = {
5
14
  thid: `exchange-${createRuntimeUuid()}`,
6
15
  subject_token: deps.input.activationCode,
16
+ client_instance_id: clientInstanceId,
7
17
  };
8
18
  const exchange = await deps.submitAndPollWithBearerToken(deps.input.idToken, deps.identityTokenExchangePath(deps.routeCtx), deps.identityTokenExchangePollPath(deps.routeCtx), exchangePayload, deps.input.pollOptions);
9
19
  const pollBody = exchange.poll.body || {};
@@ -167,6 +167,12 @@ export declare class HttpRuntimeClient implements NodeRuntimeClient {
167
167
  * - expect GW CORE to reissue one controller activation code in the response
168
168
  * - do not call `confirmLegalOrganizationOrder(...)` after this flow
169
169
  */
170
+ submitLegalOrganizationCredentialReissuance(hostCtx: HostRouteContext, input: NodeLegalOrganizationVerificationTransactionInput, pollOptions?: PollOptions): Promise<SubmitAndPollResult>;
171
+ /**
172
+ * @deprecated Use `submitLegalOrganizationCredentialReissuance`.
173
+ * This alias remains for compatibility with clients named after the
174
+ * underlying `Organization/_issue` HTTP action.
175
+ */
170
176
  submitLegalOrganizationIssue(hostCtx: HostRouteContext, input: NodeLegalOrganizationVerificationTransactionInput, pollOptions?: PollOptions): Promise<SubmitAndPollResult>;
171
177
  /**
172
178
  * Submits one tenant-scoped DID document binding request.
@@ -15,7 +15,7 @@ import { startIndividualOrganizationWithDeps } from './individual-start.js';
15
15
  import { createOrganizationEmployeeWithDeps, disableIndividualMemberWithDeps, disableIndividualOrganizationWithDeps, disableOrganizationEmployeeWithDeps, listIndividualLicenseOffersWithDeps, listIndividualLicenseOrdersWithDeps, listIndividualLicensesWithDeps, addFreeIndividualMemberLicensesWithDeps, issueIndividualMemberLicenseWithDeps, transitionIndividualMemberLicenseWithDeps, listOrganizationLicenseOffersWithDeps, listOrganizationLicenseOrdersWithDeps, listOrganizationLicensesWithDeps, grantProfessionalAccessWithDeps, buildClinicalSectionUpdateIngestion, buildClinicalSummaryUpdateIngestion, ingestCommunicationAndUpdateIndexWithDeps, requestProfessionalAccessWithDeps, buildVitalSignBatchCommunicationFromSearchResponse, registerBlockchainArtifactAndUpdateIndexWithDeps, requestClinicalSummaryWithDeps, revokeProfessionalAccessWithDeps, searchCommunicationParticipantsWithDeps, purgeIndividualMemberWithDeps, purgeIndividualOrganizationWithDeps, purgeOrganizationEmployeeWithDeps, prepareEmployeeLifecycleMessageForTransport, searchIndividualLicensesWithDeps, searchIndividualLicenseOffersWithDeps, searchIndividualLicenseOrdersWithDeps, searchOrganizationLicensesWithDeps, searchOrganizationLicenseOffersWithDeps, searchOrganizationLicenseOrdersWithDeps, searchOrganizationEmployeesWithDeps, searchClinicalBundleWithDeps, searchLatestIpsWithDeps, upsertRelatedPersonAndPollWithDeps, normalizeCommunicationPathFormatSegment, } from './resource-operations.js';
16
16
  import { submitAndPollWithMethods } from './orchestration/client-port.js';
17
17
  import { buildRuntimeHeaders, fetchWithTimeout, parseResponseBody, pollBatchResponseWithRuntimeConfig, postJsonWithRuntimeConfig, postRenderedWithRuntimeConfig, } from './runtime-transport.js';
18
- import { activateOrganizationInGatewayFromIcaProofWithDeps, submitLegalOrganizationIssueWithDeps, submitLegalOrganizationVerificationTransactionWithDeps, submitOrganizationDidBindingWithDeps, } from './runtime-host-submission.js';
18
+ import { activateOrganizationInGatewayFromIcaProofWithDeps, submitLegalOrganizationCredentialReissuanceWithDeps, submitLegalOrganizationVerificationTransactionWithDeps, submitOrganizationDidBindingWithDeps, } from './runtime-host-submission.js';
19
19
  import { buildGrantProfessionalAccessClaimsWithCid } from './runtime-consent.js';
20
20
  import { RuntimeClientPaths } from './runtime-client-paths.js';
21
21
  import { runtimeUuid, wrapBundleAsGatewayTransactionMessage } from './runtime-message.js';
@@ -169,8 +169,8 @@ export class HttpRuntimeClient {
169
169
  * - expect GW CORE to reissue one controller activation code in the response
170
170
  * - do not call `confirmLegalOrganizationOrder(...)` after this flow
171
171
  */
172
- async submitLegalOrganizationIssue(hostCtx, input, pollOptions) {
173
- return submitLegalOrganizationIssueWithDeps({
172
+ async submitLegalOrganizationCredentialReissuance(hostCtx, input, pollOptions) {
173
+ return submitLegalOrganizationCredentialReissuanceWithDeps({
174
174
  hostCtx,
175
175
  verificationInput: input,
176
176
  pollOptions,
@@ -183,6 +183,14 @@ export class HttpRuntimeClient {
183
183
  : this.submitAndPoll.bind(this),
184
184
  });
185
185
  }
186
+ /**
187
+ * @deprecated Use `submitLegalOrganizationCredentialReissuance`.
188
+ * This alias remains for compatibility with clients named after the
189
+ * underlying `Organization/_issue` HTTP action.
190
+ */
191
+ async submitLegalOrganizationIssue(hostCtx, input, pollOptions) {
192
+ return this.submitLegalOrganizationCredentialReissuance(hostCtx, input, pollOptions);
193
+ }
186
194
  /**
187
195
  * Submits one tenant-scoped DID document binding request.
188
196
  *
@@ -54,6 +54,8 @@ export type NodeOrganizationDidBindingInput = OrganizationDidBindingInput;
54
54
  */
55
55
  export type RuntimeClient = {
56
56
  submitLegalOrganizationVerificationTransaction?: (hostCtx: HostRouteContext, input: NodeLegalOrganizationVerificationTransactionInput, pollOptions?: PollOptions) => Promise<SubmitAndPollResult>;
57
+ submitLegalOrganizationCredentialReissuance?: (hostCtx: HostRouteContext, input: NodeLegalOrganizationVerificationTransactionInput, pollOptions?: PollOptions) => Promise<SubmitAndPollResult>;
58
+ /** @deprecated Use `submitLegalOrganizationCredentialReissuance`. */
57
59
  submitLegalOrganizationIssue?: (hostCtx: HostRouteContext, input: NodeLegalOrganizationVerificationTransactionInput, pollOptions?: PollOptions) => Promise<SubmitAndPollResult>;
58
60
  submitOrganizationDidBinding?: (ctx: RouteContext, input: NodeOrganizationDidBindingInput, pollOptions?: PollOptions) => Promise<SubmitAndPollResult>;
59
61
  activateOrganizationInGatewayFromIcaProof?: (hostCtx: HostRouteContext, input: NodeOrganizationActivationInput, pollOptions?: PollOptions) => Promise<SubmitAndPollResult>;
@@ -33,6 +33,12 @@ export declare class OrganizationControllerSdk {
33
33
  * Starts the host-side existing-tenant legal-organization reissue flow that
34
34
  * refreshes verification and reissues one controller activation code.
35
35
  */
36
+ submitLegalOrganizationCredentialReissuance(hostCtx: HostRouteContext, input: NodeLegalOrganizationVerificationTransactionInput, pollOptions?: PollOptions): Promise<SubmitAndPollResult>;
37
+ /**
38
+ * @deprecated Use `submitLegalOrganizationCredentialReissuance`.
39
+ * The old name mirrors the transport route rather than the credential
40
+ * reissuance business operation.
41
+ */
36
42
  submitLegalOrganizationIssue(hostCtx: HostRouteContext, input: NodeLegalOrganizationVerificationTransactionInput, pollOptions?: PollOptions): Promise<SubmitAndPollResult>;
37
43
  /**
38
44
  * Binds the current tenant organization DID document to one public alias
@@ -32,8 +32,21 @@ export class OrganizationControllerSdk {
32
32
  * Starts the host-side existing-tenant legal-organization reissue flow that
33
33
  * refreshes verification and reissues one controller activation code.
34
34
  */
35
+ submitLegalOrganizationCredentialReissuance(hostCtx, input, pollOptions) {
36
+ const method = this.client.submitLegalOrganizationCredentialReissuance
37
+ || this.client.submitLegalOrganizationIssue;
38
+ if (!method) {
39
+ return requireClientMethod(this.client, 'submitLegalOrganizationCredentialReissuance')(hostCtx, input, pollOptions);
40
+ }
41
+ return method(hostCtx, input, pollOptions);
42
+ }
43
+ /**
44
+ * @deprecated Use `submitLegalOrganizationCredentialReissuance`.
45
+ * The old name mirrors the transport route rather than the credential
46
+ * reissuance business operation.
47
+ */
35
48
  submitLegalOrganizationIssue(hostCtx, input, pollOptions) {
36
- return requireClientMethod(this.client, 'submitLegalOrganizationIssue')(hostCtx, input, pollOptions);
49
+ return this.submitLegalOrganizationCredentialReissuance(hostCtx, input, pollOptions);
37
50
  }
38
51
  /**
39
52
  * Binds the current tenant organization DID document to one public alias
@@ -3,22 +3,30 @@ import type { HostRouteContext } from './host-onboarding.js';
3
3
  import type { RouteContext } from './individual-onboarding.js';
4
4
  import type { EmployeeDeviceActivationResult } from './device-activation.js';
5
5
  export type OrganizationControllerRecoveryInput = {
6
- issueInput: NodeLegalOrganizationVerificationTransactionInput;
6
+ credentialReissuanceInput?: NodeLegalOrganizationVerificationTransactionInput;
7
+ /** @deprecated Use `credentialReissuanceInput`. */
8
+ issueInput?: NodeLegalOrganizationVerificationTransactionInput;
7
9
  controllerIdToken: string;
8
10
  dcrPayload: Record<string, unknown>;
11
+ credentialReissuancePollOptions?: PollOptions;
12
+ /** @deprecated Use `credentialReissuancePollOptions`. */
9
13
  issuePollOptions?: PollOptions;
10
14
  activationPollOptions?: PollOptions;
11
15
  };
12
16
  export type OrganizationControllerRecoveryResult = {
17
+ credentialReissuance: SubmitAndPollResult;
18
+ /** @deprecated Use `credentialReissuance`. */
13
19
  issue: SubmitAndPollResult;
14
20
  activationCode: string;
15
21
  activation: EmployeeDeviceActivationResult;
16
22
  };
17
- type RecoverOrganizationControllerWithIssueDeps = {
23
+ type RecoverOrganizationControllerWithCredentialReissuanceDeps = {
18
24
  hostCtx: HostRouteContext;
19
25
  tenantCtx: RouteContext;
20
26
  input: OrganizationControllerRecoveryInput;
21
- submitLegalOrganizationIssue: (hostCtx: HostRouteContext, input: NodeLegalOrganizationVerificationTransactionInput, pollOptions?: PollOptions) => Promise<SubmitAndPollResult>;
27
+ submitLegalOrganizationCredentialReissuance?: (hostCtx: HostRouteContext, input: NodeLegalOrganizationVerificationTransactionInput, pollOptions?: PollOptions) => Promise<SubmitAndPollResult>;
28
+ /** @deprecated Use `submitLegalOrganizationCredentialReissuance`. */
29
+ submitLegalOrganizationIssue?: (hostCtx: HostRouteContext, input: NodeLegalOrganizationVerificationTransactionInput, pollOptions?: PollOptions) => Promise<SubmitAndPollResult>;
22
30
  identityTokenExchangePath: (ctx: RouteContext) => string;
23
31
  identityTokenExchangePollPath: (ctx: RouteContext) => string;
24
32
  identityDeviceDcrPath: (ctx: RouteContext) => string;
@@ -27,7 +35,9 @@ type RecoverOrganizationControllerWithIssueDeps = {
27
35
  thid?: string;
28
36
  } & Record<string, unknown>, pollOptions?: PollOptions) => Promise<SubmitAndPollResult>;
29
37
  };
30
- export declare function recoverOrganizationControllerWithIssueWithDeps(deps: RecoverOrganizationControllerWithIssueDeps): Promise<OrganizationControllerRecoveryResult>;
38
+ export declare function recoverOrganizationControllerWithCredentialReissuanceWithDeps(deps: RecoverOrganizationControllerWithCredentialReissuanceDeps): Promise<OrganizationControllerRecoveryResult>;
39
+ /** @deprecated Use `recoverOrganizationControllerWithCredentialReissuanceWithDeps`. */
40
+ export declare const recoverOrganizationControllerWithIssueWithDeps: typeof recoverOrganizationControllerWithCredentialReissuanceWithDeps;
31
41
  /**
32
42
  * Reads the opaque activation code from a successful Organization/_issue poll result.
33
43
  *
@@ -37,5 +47,7 @@ export declare function recoverOrganizationControllerWithIssueWithDeps(deps: Rec
37
47
  * its public `id`, is accepted. Unrelated identifiers are never interpreted as
38
48
  * activation material.
39
49
  */
40
- export declare function readOrganizationIssueActivationCode(result: SubmitAndPollResult): string;
50
+ export declare function readLegalOrganizationCredentialReissuanceActivationCode(result: SubmitAndPollResult): string;
51
+ /** @deprecated Use `readLegalOrganizationCredentialReissuanceActivationCode`. */
52
+ export declare const readOrganizationIssueActivationCode: typeof readLegalOrganizationCredentialReissuanceActivationCode;
41
53
  export {};
@@ -1,16 +1,26 @@
1
1
  // Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
2
2
  import { activateEmployeeDeviceWithActivationCodeWithDeps } from './device-activation.js';
3
- export async function recoverOrganizationControllerWithIssueWithDeps(deps) {
3
+ export async function recoverOrganizationControllerWithCredentialReissuanceWithDeps(deps) {
4
4
  /**
5
5
  * Existing-tenant controller recovery contract:
6
6
  * - `Organization/_issue` is expected to reissue controller activation
7
7
  * material only
8
8
  * - this flow must not depend on a new commercial Offer or Order step
9
9
  */
10
- const issue = await deps.submitLegalOrganizationIssue(deps.hostCtx, deps.input.issueInput, deps.input.issuePollOptions);
11
- const activationCode = readOrganizationIssueActivationCode(issue);
10
+ const submitCredentialReissuance = deps.submitLegalOrganizationCredentialReissuance
11
+ || deps.submitLegalOrganizationIssue;
12
+ if (!submitCredentialReissuance) {
13
+ throw new Error('recoverOrganizationControllerWithCredentialReissuance: missing credential reissuance client method.');
14
+ }
15
+ const credentialReissuanceInput = deps.input.credentialReissuanceInput
16
+ || deps.input.issueInput;
17
+ if (!credentialReissuanceInput) {
18
+ throw new Error('recoverOrganizationControllerWithCredentialReissuance: missing credentialReissuanceInput.');
19
+ }
20
+ const credentialReissuance = await submitCredentialReissuance(deps.hostCtx, credentialReissuanceInput, deps.input.credentialReissuancePollOptions || deps.input.issuePollOptions);
21
+ const activationCode = readLegalOrganizationCredentialReissuanceActivationCode(credentialReissuance);
12
22
  if (!activationCode) {
13
- throw new Error('recoverOrganizationControllerWithIssue: missing org.schema.IndividualProduct.serialNumber in Organization/_issue response.');
23
+ throw new Error('recoverOrganizationControllerWithCredentialReissuance: missing org.schema.IndividualProduct.serialNumber in Organization/_issue response.');
14
24
  }
15
25
  const activation = await activateEmployeeDeviceWithActivationCodeWithDeps({
16
26
  routeCtx: deps.tenantCtx,
@@ -27,11 +37,14 @@ export async function recoverOrganizationControllerWithIssueWithDeps(deps) {
27
37
  submitAndPollWithBearerToken: deps.submitAndPollWithBearerToken,
28
38
  });
29
39
  return {
30
- issue,
40
+ credentialReissuance,
41
+ issue: credentialReissuance,
31
42
  activationCode,
32
43
  activation,
33
44
  };
34
45
  }
46
+ /** @deprecated Use `recoverOrganizationControllerWithCredentialReissuanceWithDeps`. */
47
+ export const recoverOrganizationControllerWithIssueWithDeps = recoverOrganizationControllerWithCredentialReissuanceWithDeps;
35
48
  /**
36
49
  * Reads the opaque activation code from a successful Organization/_issue poll result.
37
50
  *
@@ -41,7 +54,7 @@ export async function recoverOrganizationControllerWithIssueWithDeps(deps) {
41
54
  * its public `id`, is accepted. Unrelated identifiers are never interpreted as
42
55
  * activation material.
43
56
  */
44
- export function readOrganizationIssueActivationCode(result) {
57
+ export function readLegalOrganizationCredentialReissuanceActivationCode(result) {
45
58
  const pollBody = (result?.poll?.body || {});
46
59
  for (const candidate of nestedObjects(pollBody)) {
47
60
  const claims = candidate.meta?.claims;
@@ -63,6 +76,8 @@ export function readOrganizationIssueActivationCode(result) {
63
76
  }
64
77
  return '';
65
78
  }
79
+ /** @deprecated Use `readLegalOrganizationCredentialReissuanceActivationCode`. */
80
+ export const readOrganizationIssueActivationCode = readLegalOrganizationCredentialReissuanceActivationCode;
66
81
  function nestedObjects(root) {
67
82
  const found = [];
68
83
  const pending = [{ value: root, depth: 0 }];
@@ -20,7 +20,7 @@ export declare function submitLegalOrganizationVerificationTransactionWithDeps(i
20
20
  pollPath: (ctx: HostRouteContext) => string;
21
21
  submitAndPoll: SubmitAndPollMethod;
22
22
  }): Promise<SubmitAndPollResult>;
23
- export declare function submitLegalOrganizationIssueWithDeps(input: {
23
+ export declare function submitLegalOrganizationCredentialReissuanceWithDeps(input: {
24
24
  hostCtx: HostRouteContext;
25
25
  verificationInput: NodeLegalOrganizationVerificationTransactionInput;
26
26
  pollOptions?: PollOptions;
@@ -35,6 +35,12 @@ export declare function submitLegalOrganizationIssueWithDeps(input: {
35
35
  pollPath: (ctx: HostRouteContext) => string;
36
36
  submitAndPoll: SubmitAndPollMethod;
37
37
  }): Promise<SubmitAndPollResult>;
38
+ /**
39
+ * @deprecated Use `submitLegalOrganizationCredentialReissuanceWithDeps`.
40
+ * The legacy name mirrors the HTTP `Organization/_issue` route but does not
41
+ * describe the business operation clearly.
42
+ */
43
+ export declare const submitLegalOrganizationIssueWithDeps: typeof submitLegalOrganizationCredentialReissuanceWithDeps;
38
44
  export declare function submitOrganizationDidBindingWithDeps(input: {
39
45
  routeCtx: RouteContext;
40
46
  bindingInput: NodeOrganizationDidBindingInput | OrganizationDidBindingInput;
@@ -12,7 +12,7 @@ export async function submitLegalOrganizationVerificationTransactionWithDeps(inp
12
12
  });
13
13
  return input.submitAndPoll(input.submitPath(input.hostCtx), input.pollPath(input.hostCtx), payload, input.pollOptions);
14
14
  }
15
- export async function submitLegalOrganizationIssueWithDeps(input) {
15
+ export async function submitLegalOrganizationCredentialReissuanceWithDeps(input) {
16
16
  const thid = `organization-issue-${input.createRuntimeUuid()}`;
17
17
  const jti = `organization-issue-jti-${input.createRuntimeUuid()}`;
18
18
  const verificationBundle = buildLegalOrganizationVerificationGatewayRequestBundle(input.verificationInput);
@@ -24,6 +24,12 @@ export async function submitLegalOrganizationIssueWithDeps(input) {
24
24
  });
25
25
  return input.submitAndPoll(input.submitPath(input.hostCtx), input.pollPath(input.hostCtx), payload, input.pollOptions);
26
26
  }
27
+ /**
28
+ * @deprecated Use `submitLegalOrganizationCredentialReissuanceWithDeps`.
29
+ * The legacy name mirrors the HTTP `Organization/_issue` route but does not
30
+ * describe the business operation clearly.
31
+ */
32
+ export const submitLegalOrganizationIssueWithDeps = submitLegalOrganizationCredentialReissuanceWithDeps;
27
33
  export async function submitOrganizationDidBindingWithDeps(input) {
28
34
  const thid = `organization-did-binding-${input.createRuntimeUuid()}`;
29
35
  const jti = `organization-did-binding-jti-${input.createRuntimeUuid()}`;
@@ -168,6 +168,8 @@ export declare class ServerProfileSessionManager {
168
168
  * DIDComm transport before a durable profile exists. The deterministic seed
169
169
  * remains server-only and the caller receives only the normal GW response.
170
170
  */
171
+ submitLegalOrganizationCredentialReissuanceWithBootstrapWallet(input: ServerProfileOrganizationIssueInput): Promise<SubmitAndPollResult>;
172
+ /** @deprecated Use `submitLegalOrganizationCredentialReissuanceWithBootstrapWallet`. */
171
173
  submitLegalOrganizationIssueWithBootstrapWallet(input: ServerProfileOrganizationIssueInput): Promise<SubmitAndPollResult>;
172
174
  listProfiles(ownerId: string): Promise<ServerProfileRecord[]>;
173
175
  unlock(input: ServerProfileUnlockInput): Promise<ResolvedServerProfileSession>;
@@ -100,11 +100,11 @@ export class ServerProfileSessionManager {
100
100
  * DIDComm transport before a durable profile exists. The deterministic seed
101
101
  * remains server-only and the caller receives only the normal GW response.
102
102
  */
103
- async submitLegalOrganizationIssueWithBootstrapWallet(input) {
103
+ async submitLegalOrganizationCredentialReissuanceWithBootstrapWallet(input) {
104
104
  requireBase64UrlSeed32(input.walletSeed);
105
105
  const walletKeyDerivationId = normalizedWalletKeyDerivationId(input.walletKeyDerivationId, '');
106
106
  if (!walletKeyDerivationId) {
107
- throw new Error('submitLegalOrganizationIssueWithBootstrapWallet requires walletKeyDerivationId.');
107
+ throw new Error('submitLegalOrganizationCredentialReissuanceWithBootstrapWallet requires walletKeyDerivationId.');
108
108
  }
109
109
  const wallet = await this.createWallet(walletKeyDerivationId, input.walletSeed);
110
110
  const context = walletContext(walletKeyDerivationId);
@@ -119,7 +119,11 @@ export class ServerProfileSessionManager {
119
119
  unpack: async (jwe) => (await wallet.unpackWithContext(jwe, { context })).content,
120
120
  },
121
121
  });
122
- return client.submitLegalOrganizationIssue(input.hostContext, input.verificationInput, input.pollOptions);
122
+ return client.submitLegalOrganizationCredentialReissuance(input.hostContext, input.verificationInput, input.pollOptions);
123
+ }
124
+ /** @deprecated Use `submitLegalOrganizationCredentialReissuanceWithBootstrapWallet`. */
125
+ async submitLegalOrganizationIssueWithBootstrapWallet(input) {
126
+ return this.submitLegalOrganizationCredentialReissuanceWithBootstrapWallet(input);
123
127
  }
124
128
  listProfiles(ownerId) {
125
129
  return this.options.store.listProfiles(ownerId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-sdk-node-ts",
3
- "version": "2.3.28",
3
+ "version": "2.4.0",
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,7 +37,7 @@
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.28",
40
+ "gdc-common-utils-ts": "^2.4.0",
41
41
  "gdc-sdk-core-ts": "~2.3.18"
42
42
  },
43
43
  "devDependencies": {