@koraidv/core 1.5.5 → 1.7.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/dist/index.d.mts CHANGED
@@ -66,7 +66,7 @@ declare function getDocumentTypeInfo(type: DocumentType): DocumentTypeInfo;
66
66
  * SDK Configuration
67
67
  */
68
68
  interface Configuration {
69
- /** API key (starts with ck_live_ or ck_sandbox_) */
69
+ /** API key. Sandbox keys start with `sk_sandbox_`, production with `sk_live_`. */
70
70
  apiKey: string;
71
71
  /** Tenant ID (UUID) */
72
72
  tenantId: string;
package/dist/index.d.ts CHANGED
@@ -66,7 +66,7 @@ declare function getDocumentTypeInfo(type: DocumentType): DocumentTypeInfo;
66
66
  * SDK Configuration
67
67
  */
68
68
  interface Configuration {
69
- /** API key (starts with ck_live_ or ck_sandbox_) */
69
+ /** API key. Sandbox keys start with `sk_sandbox_`, production with `sk_live_`. */
70
70
  apiKey: string;
71
71
  /** Tenant ID (UUID) */
72
72
  tenantId: string;
package/dist/index.js CHANGED
@@ -826,7 +826,7 @@ var KoraIDV = class {
826
826
  this.apiClient = new ApiClient(this.configuration);
827
827
  }
828
828
  detectEnvironment(apiKey) {
829
- return apiKey.startsWith("ck_sandbox_") ? "sandbox" : "production";
829
+ return apiKey.startsWith("sk_sandbox_") ? "sandbox" : "production";
830
830
  }
831
831
  /**
832
832
  * Get supported countries and their document types from the API
package/dist/index.mjs CHANGED
@@ -782,7 +782,7 @@ var KoraIDV = class {
782
782
  this.apiClient = new ApiClient(this.configuration);
783
783
  }
784
784
  detectEnvironment(apiKey) {
785
- return apiKey.startsWith("ck_sandbox_") ? "sandbox" : "production";
785
+ return apiKey.startsWith("sk_sandbox_") ? "sandbox" : "production";
786
786
  }
787
787
  /**
788
788
  * Get supported countries and their document types from the API
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koraidv/core",
3
- "version": "1.5.5",
3
+ "version": "1.7.0",
4
4
  "description": "Kora IDV Core SDK - API Client and Utilities",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",