@keyringnetwork/keyring-connect-sdk 1.0.5 → 1.0.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/main.js CHANGED
@@ -123,12 +123,12 @@ class KeyringConnect {
123
123
  },
124
124
  krn_config: config.krn_config
125
125
  ? {
126
- onboarding_api_url: config.krn_config.onboarding_api_url,
127
- datastore_api_url: config.krn_config.datastore_api_url,
126
+ keyring_api_url: config.krn_config.keyring_api_url,
128
127
  analytics_api_url: config.krn_config.analytics_api_url,
129
128
  isolate_proving: config.krn_config.isolate_proving,
130
129
  notaryUrl: config.krn_config.notaryUrl,
131
130
  notaryWebsocketUrl: config.krn_config.notaryWebsocketUrl,
131
+ websocketProxyUrl: config.krn_config.websocketProxyUrl,
132
132
  }
133
133
  : undefined,
134
134
  proof_config: config.proof_config,
package/dist/types.d.ts CHANGED
@@ -33,14 +33,14 @@ export type ExtensionSDKConfig = {
33
33
  * @note this is meant to be used for internal testing and development purposes.
34
34
  */
35
35
  krn_config?: {
36
- onboarding_api_url?: string;
37
- datastore_api_url?: string;
36
+ keyring_api_url?: string;
38
37
  analytics_api_url?: string;
39
38
  auth0_id_token?: string;
40
39
  entity_id?: string;
41
40
  isolate_proving?: boolean;
42
41
  notaryUrl?: string;
43
42
  notaryWebsocketUrl?: string;
43
+ websocketProxyUrl?: string;
44
44
  };
45
45
  };
46
46
  export type ExtensionLaunchConfig = {
@@ -56,18 +56,18 @@ export type ExtensionLaunchConfig = {
56
56
  entity_type?: string;
57
57
  };
58
58
  krn_config?: {
59
- onboarding_api_url?: string;
60
- datastore_api_url?: string;
59
+ keyring_api_url?: string;
61
60
  analytics_api_url?: string;
62
61
  isolate_proving?: boolean;
63
62
  notaryUrl?: string;
64
63
  notaryWebsocketUrl?: string;
64
+ websocketProxyUrl?: string;
65
65
  };
66
66
  auth_user?: any;
67
67
  };
68
- export type ExtensionStatus = 'idle' | 'mounted' | 'proving' | 'prove_success' | 'error';
69
- export type AttestationStatus = 'onboarding_required' | 'onboarding_pending' | 'attestation_ready' | 'non_compliant';
70
- export type CredentialStatus = 'expired' | 'valid' | 'none';
68
+ export type ExtensionStatus = "idle" | "mounted" | "proving" | "prove_success" | "error";
69
+ export type AttestationStatus = "onboarding_required" | "onboarding_pending" | "attestation_ready" | "non_compliant";
70
+ export type CredentialStatus = "expired" | "valid" | "none";
71
71
  export type User = {
72
72
  /**
73
73
  * Off-chain attestation status.
@@ -101,7 +101,7 @@ export interface DataSource {
101
101
  id: string;
102
102
  name: string;
103
103
  label: string;
104
- user_actions?: string[];
104
+ user_actions: string[];
105
105
  link: string;
106
106
  login_url: string;
107
107
  target_url: string | null;
@@ -119,9 +119,9 @@ export interface TlsnEndpoint {
119
119
  method: string;
120
120
  headers: string[];
121
121
  disclosable_fields: DisclosableField[];
122
- required_cookies?: string[] | null;
123
- data_bounds?: DataBounds | null;
124
- body?: string | null;
122
+ required_cookies: string[] | null;
123
+ data_bounds: DataBounds | null;
124
+ body: string | null;
125
125
  }
126
126
  export interface Claim {
127
127
  id: string;
@@ -136,4 +136,5 @@ export interface DataBounds {
136
136
  export interface DisclosableField {
137
137
  label: string;
138
138
  path: string;
139
+ key: string;
139
140
  }
package/package.json CHANGED
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "name": "@keyringnetwork/keyring-connect-sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
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",
7
+ "scripts": {
8
+ "build": "rm -rf dist && tsc",
9
+ "dev": "tsc --watch",
10
+ "publish": "pnpm build && npm publish"
11
+ },
7
12
  "files": [
8
13
  "dist"
9
14
  ],
@@ -16,9 +21,5 @@
16
21
  },
17
22
  "dependencies": {
18
23
  "jwt-decode": "^4.0.0"
19
- },
20
- "scripts": {
21
- "build": "rm -rf dist && tsc",
22
- "dev": "tsc --watch"
23
24
  }
24
25
  }