@keyringnetwork/keyring-connect-sdk 0.0.3 → 0.0.5

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.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { default as KeyringConnectSDK } from './main';
1
+ export { KeyringConnect } from './main';
2
2
  export * from './types';
package/dist/index.js CHANGED
@@ -13,11 +13,8 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
13
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
- var __importDefault = (this && this.__importDefault) || function (mod) {
17
- return (mod && mod.__esModule) ? mod : { "default": mod };
18
- };
19
16
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.KeyringConnectSDK = void 0;
17
+ exports.KeyringConnect = void 0;
21
18
  var main_1 = require("./main");
22
- Object.defineProperty(exports, "KeyringConnectSDK", { enumerable: true, get: function () { return __importDefault(main_1).default; } });
19
+ Object.defineProperty(exports, "KeyringConnect", { enumerable: true, get: function () { return main_1.KeyringConnect; } });
23
20
  __exportStar(require("./types"), exports);
package/dist/main.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ExtensionConfig, ExtensionState } from './types';
2
- export default class KeyringConnect {
2
+ export declare class KeyringConnect {
3
3
  static launchExtension(data: ExtensionConfig): Promise<void>;
4
4
  static isKeyringConnectInstalled(): Promise<boolean>;
5
5
  static getExtensionState(): Promise<ExtensionState>;
package/dist/main.js CHANGED
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.KeyringConnect = void 0;
12
13
  const env_1 = require("./env");
13
14
  const types_1 = require("./types");
14
15
  class KeyringConnect {
@@ -50,4 +51,4 @@ class KeyringConnect {
50
51
  });
51
52
  }
52
53
  }
53
- exports.default = KeyringConnect;
54
+ exports.KeyringConnect = KeyringConnect;
package/dist/types.d.ts CHANGED
@@ -21,6 +21,10 @@ export type ExtensionConfig = {
21
21
  * The policy ID of the client.
22
22
  */
23
23
  client_policy_id: number;
24
+ /**
25
+ * The entity ID of the client.
26
+ */
27
+ client_entity_id?: string;
24
28
  };
25
29
  proof_config?: {
26
30
  /**
@@ -32,6 +36,16 @@ export type ExtensionConfig = {
32
36
  */
33
37
  entity_type: string;
34
38
  };
39
+ krn_config?: {
40
+ /**
41
+ * The URL of the onboarding API.
42
+ */
43
+ onboarding_api_url?: string;
44
+ /**
45
+ * The URL of the datastore API.
46
+ */
47
+ datastore_api_url?: string;
48
+ };
35
49
  };
36
50
  export type ExtensionStatus = 'idle' | 'mounted' | 'proving' | 'prove_success' | 'error';
37
51
  export type AttestationStatus = 'onboarding_required' | 'onboarding_pending' | 'attestation_ready' | 'non_compliant';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keyringnetwork/keyring-connect-sdk",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "An SDK for interacting with Keyring Connect browser extension",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -32,6 +32,7 @@ const extensionConfig = {
32
32
  client_app_url: 'https://myapp.com',
33
33
  client_logo_url: 'https://myapp.com/logo.png',
34
34
  client_policy_id: 123,
35
+ client_entity_id: '123',
35
36
  },
36
37
  // Optional proof configuration
37
38
  proof_config: {
@@ -84,11 +85,16 @@ type ExtensionConfig = {
84
85
  client_app_url: string; // Your application's URL
85
86
  client_logo_url: string; // Your application's logo URL
86
87
  client_policy_id: number; // Your Keyring policy ID
88
+ client_entity_id?: string; // Your user's entity ID
87
89
  };
88
90
  proof_config?: {
89
91
  datasource: DataSource; // Configuration for the proof source
90
92
  entity_type: string; // Type of entity to verify
91
93
  };
94
+ krn_config?: {
95
+ onboarding_api_url?: string; // URL of the onboarding API
96
+ datastore_api_url?: string; // URL of the datastore API
97
+ };
92
98
  };
93
99
  ```
94
100