smartcomply-web-sdk 1.0.12 → 1.0.14

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.
@@ -39,7 +39,7 @@ var SmartComplySDK = (() => {
39
39
  // src/client/Config.ts
40
40
  var BASE_URLS = {
41
41
  sandbox: "https://dev-adhere.smartcomply.com",
42
- production: "https://api.smartcomply.com"
42
+ production: "https://adhere-api.smartcomply.com"
43
43
  };
44
44
 
45
45
  // src/errors/SDKError.ts
@@ -221,7 +221,7 @@ var SmartComplySDK = (() => {
221
221
  /**
222
222
  * Verify a user's identity.
223
223
  *
224
- * POST /v1/sdk/onboarding/verify/
224
+ * POST /v1/onboarding/verify/
225
225
  * Auth: x-access-token: <sessionToken>
226
226
  *
227
227
  * Sends identity_type_id (from ChannelItem.id) and dynamic fields
@@ -233,7 +233,7 @@ var SmartComplySDK = (() => {
233
233
  async verify(params) {
234
234
  return this.http.sessionRequest(
235
235
  "POST",
236
- "/v1/sdk/onboarding/verify/",
236
+ "/v1/onboarding/verify/",
237
237
  {
238
238
  identity_type_id: params.identity_type_id,
239
239
  fields: params.fields
@@ -5091,7 +5091,7 @@ var SmartComplySDK = (() => {
5091
5091
  /**
5092
5092
  * Step 1: Create a liveness challenge entry.
5093
5093
  *
5094
- * POST /v1/sdk/liveness/create/
5094
+ * POST /v1/liveness/create/
5095
5095
  * Auth: x-access-token: <sessionToken>
5096
5096
  * Content-Type: multipart/form-data
5097
5097
  */
@@ -5139,14 +5139,14 @@ var SmartComplySDK = (() => {
5139
5139
  formData.append("fingerprint_id", params.fingerprint_id);
5140
5140
  }
5141
5141
  return this.http.uploadWithSession(
5142
- "/v1/sdk/liveness/create/",
5142
+ "/v1/liveness/create/",
5143
5143
  formData
5144
5144
  );
5145
5145
  }
5146
5146
  /**
5147
5147
  * Step 3: Submit liveness video recording.
5148
5148
  *
5149
- * POST /v1/sdk/liveness/submit/
5149
+ * POST /v1/liveness/submit/
5150
5150
  * Auth: x-access-token: <sessionToken>
5151
5151
  * Content-Type: multipart/form-data
5152
5152
  *
@@ -5168,7 +5168,7 @@ var SmartComplySDK = (() => {
5168
5168
  formData.append("video_size_bytes", String(videoSizeBytes));
5169
5169
  }
5170
5170
  return this.http.uploadWithSession(
5171
- "/v1/sdk/liveness/submit/",
5171
+ "/v1/liveness/submit/",
5172
5172
  formData
5173
5173
  );
5174
5174
  }
@@ -5176,10 +5176,10 @@ var SmartComplySDK = (() => {
5176
5176
  * Poll the public SDK status endpoint for the final verification result.
5177
5177
  * Safe to call after the session has been revoked (no auth required).
5178
5178
  *
5179
- * GET /v1/sdk/liveness/<entryId>/sdk-result/
5179
+ * GET /v1/liveness/<entryId>/sdk-result/
5180
5180
  */
5181
5181
  async pollResult(entryId) {
5182
- return this.http.publicGet(`/v1/sdk/liveness/${entryId}/sdk-result/`);
5182
+ return this.http.publicGet(`/v1/liveness/${entryId}/sdk-result/`);
5183
5183
  }
5184
5184
  /**
5185
5185
  * Full liveness check — orchestrates the entire flow:
@@ -5486,7 +5486,7 @@ var SmartComplySDK = (() => {
5486
5486
  /**
5487
5487
  * Create a new SDK session.
5488
5488
  *
5489
- * POST /v1/sdk/session/create/
5489
+ * POST /v1/session/create/
5490
5490
  * Auth: Authorization: Bearer <apiKey>
5491
5491
  * Body: { client_id: "<uuid>" }
5492
5492
  *
@@ -5495,7 +5495,7 @@ var SmartComplySDK = (() => {
5495
5495
  async createSession() {
5496
5496
  const response = await this.http.request(
5497
5497
  "POST",
5498
- "/v1/sdk/session/create/",
5498
+ "/v1/session/create/",
5499
5499
  { client_id: this.clientId }
5500
5500
  );
5501
5501
  this._sessionToken = response.token;
@@ -5507,7 +5507,7 @@ var SmartComplySDK = (() => {
5507
5507
  * Fetch SDK configuration from the backend.
5508
5508
  * Must be called after createSession().
5509
5509
  *
5510
- * GET /v1/sdk/initialize/
5510
+ * GET /v1/initialize/
5511
5511
  * Auth: x-access-token: <sessionToken>
5512
5512
  *
5513
5513
  * Returns: { brand_name, theme, verification_type, channels, redirect_url, ... }
@@ -5515,7 +5515,7 @@ var SmartComplySDK = (() => {
5515
5515
  async initializeConfig() {
5516
5516
  const config = await this.http.sessionRequest(
5517
5517
  "GET",
5518
- "/v1/sdk/initialize/"
5518
+ "/v1/initialize/"
5519
5519
  );
5520
5520
  this._sdkConfig = config;
5521
5521
  return config;