@verdocs/js-sdk 4.2.6 → 4.2.7

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/dist/index.d.mts CHANGED
@@ -152,19 +152,16 @@ interface ISigningSessionRequest {
152
152
  * A Signing Session connects a caller to a role within an envelope, and can be used only for calls related to signing that envelope.
153
153
  */
154
154
  interface ISigningSession {
155
- profile_id: string;
156
- envelope_id: string;
157
- role: string;
158
- email: string;
159
- access_key: {
160
- id: string;
161
- type: string;
162
- };
163
- iss: string;
164
155
  aud: string;
165
- exp: number;
156
+ iss: string;
157
+ sub: string; // Verdocs profile_id
158
+ email: string;
159
+ email_verified: boolean;
166
160
  iat: number;
167
- [key: string]: any;
161
+ exp: number;
162
+ "https://verdocs.com/session_type": "signing";
163
+ "https://verdocs.com/envelope_id": string;
164
+ "https://verdocs.com/role_name": string;
168
165
  }
169
166
  /**
170
167
  * A User Session connects a caller to a Verdocs profile, and can be used for any operations that profile may perform.
@@ -172,11 +169,12 @@ interface ISigningSession {
172
169
  interface IUserSession {
173
170
  aud: string;
174
171
  iss: string;
175
- sub: string;
172
+ sub: string; // Auth0 user_id
176
173
  email: string;
177
174
  email_verified: boolean;
178
175
  iat: number;
179
176
  exp: number;
177
+ "https://verdocs.com/session_type": "user";
180
178
  "https://verdocs.com/profile_id": string;
181
179
  "https://verdocs.com/organization_id": string;
182
180
  }
@@ -1452,7 +1450,7 @@ interface IKbaIdentity {
1452
1450
  /**
1453
1451
  * Submit an identity response to a KBA challenge.
1454
1452
  */
1455
- declare const submitKbaIdentity: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, identity: IKbaIdentity) => Promise<IRecipientKbaStepNone | IRecipientKbaStepComplete | IRecipientKbaStepPin | IRecipientKbaStepIdentity | IRecipientKbaStepChallenge | IRecipientKbaStepFailed>;
1453
+ declare const submitKbaIdentity: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string, identity: IKbaIdentity) => Promise<IRecipientKbaStepNone | IRecipientKbaStepComplete | IRecipientKbaStepPin | IRecipientKbaStepIdentity | IRecipientKbaStepChallenge | IRecipientKbaStepFailed>;
1456
1454
  interface IKbaChallengeResponse {
1457
1455
  responses: {
1458
1456
  type: string;
package/dist/index.d.ts CHANGED
@@ -152,19 +152,16 @@ interface ISigningSessionRequest {
152
152
  * A Signing Session connects a caller to a role within an envelope, and can be used only for calls related to signing that envelope.
153
153
  */
154
154
  interface ISigningSession {
155
- profile_id: string;
156
- envelope_id: string;
157
- role: string;
158
- email: string;
159
- access_key: {
160
- id: string;
161
- type: string;
162
- };
163
- iss: string;
164
155
  aud: string;
165
- exp: number;
156
+ iss: string;
157
+ sub: string; // Verdocs profile_id
158
+ email: string;
159
+ email_verified: boolean;
166
160
  iat: number;
167
- [key: string]: any;
161
+ exp: number;
162
+ "https://verdocs.com/session_type": "signing";
163
+ "https://verdocs.com/envelope_id": string;
164
+ "https://verdocs.com/role_name": string;
168
165
  }
169
166
  /**
170
167
  * A User Session connects a caller to a Verdocs profile, and can be used for any operations that profile may perform.
@@ -172,11 +169,12 @@ interface ISigningSession {
172
169
  interface IUserSession {
173
170
  aud: string;
174
171
  iss: string;
175
- sub: string;
172
+ sub: string; // Auth0 user_id
176
173
  email: string;
177
174
  email_verified: boolean;
178
175
  iat: number;
179
176
  exp: number;
177
+ "https://verdocs.com/session_type": "user";
180
178
  "https://verdocs.com/profile_id": string;
181
179
  "https://verdocs.com/organization_id": string;
182
180
  }
@@ -1452,7 +1450,7 @@ interface IKbaIdentity {
1452
1450
  /**
1453
1451
  * Submit an identity response to a KBA challenge.
1454
1452
  */
1455
- declare const submitKbaIdentity: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, identity: IKbaIdentity) => Promise<IRecipientKbaStepNone | IRecipientKbaStepComplete | IRecipientKbaStepPin | IRecipientKbaStepIdentity | IRecipientKbaStepChallenge | IRecipientKbaStepFailed>;
1453
+ declare const submitKbaIdentity: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string, identity: IKbaIdentity) => Promise<IRecipientKbaStepNone | IRecipientKbaStepComplete | IRecipientKbaStepPin | IRecipientKbaStepIdentity | IRecipientKbaStepChallenge | IRecipientKbaStepFailed>;
1456
1454
  interface IKbaChallengeResponse {
1457
1455
  responses: {
1458
1456
  type: string;
package/dist/index.js CHANGED
@@ -1609,8 +1609,8 @@ const submitKbaPin = (endpoint, envelope_id, role_name, pin) => endpoint.api //
1609
1609
  /**
1610
1610
  * Submit an identity response to a KBA challenge.
1611
1611
  */
1612
- const submitKbaIdentity = (endpoint, envelopeId, roleName, identity) => endpoint.api //
1613
- .post(`/v2/kba/identity`, { envelopeId, roleName, identity })
1612
+ const submitKbaIdentity = (endpoint, envelope_id, role_name, identity) => endpoint.api //
1613
+ .post(`/v2/kba/identity`, { envelope_id, role_name, identity })
1614
1614
  .then((r) => r.data);
1615
1615
  /**
1616
1616
  * Submit an identity response to a KBA challenge. Answers should be submitted in the same order as