@idos-network/client 1.0.0-rc.1.2 → 1.2.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/README.md CHANGED
@@ -1,11 +1,121 @@
1
1
  # idOS Client JavaScript SDK
2
2
 
3
- [![NPM](https://img.shields.io/npm/v/@idos-network/issuer-sdk-js?logo=npm)](https://www.npmjs.com/package/@idos-network/client-sdk-js) ![License](https://img.shields.io/badge/license-MIT-blue?&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NHB4IiBoZWlnaHQ9IjY0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjRkZGRkZGIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGcgaWQ9IlNWR1JlcG9fYmdDYXJyaWVyIiBzdHJva2Utd2lkdGg9IjAiPjwvZz48ZyBpZD0iU1ZHUmVwb190cmFjZXJDYXJyaWVyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvZz48ZyBpZD0iU1ZHUmVwb19pY29uQ2FycmllciI+IDxwYXRoIGQ9Ik0xNiAxNmwzLTggMy4wMDEgOEE1LjAwMiA1LjAwMiAwIDAxMTYgMTZ6Ij48L3BhdGg+IDxwYXRoIGQ9Ik0yIDE2bDMtOCAzLjAwMSA4QTUuMDAyIDUuMDAyIDAgMDEyIDE2eiI+PC9wYXRoPiA8cGF0aCBkPSJNNyAyMWgxMCI+PC9wYXRoPiA8cGF0aCBkPSJNMTIgM3YxOCI+PC9wYXRoPiA8cGF0aCBkPSJNMyA3aDJjMiAwIDUtMSA3LTIgMiAxIDUgMiA3IDJoMiI+PC9wYXRoPiA8L2c+PC9zdmc+Cg==)
3
+ [![NPM](https://img.shields.io/npm/v/@idos-network/client?logo=npm)](https://www.npmjs.com/package/@idos-network/client) ![License](https://img.shields.io/badge/license-MIT-blue?&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NHB4IiBoZWlnaHQ9IjY0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjRkZGRkZGIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGcgaWQ9IlNWR1JlcG9fYmdDYXJyaWVyIiBzdHJva2Utd2lkdGg9IjAiPjwvZz48ZyBpZD0iU1ZHUmVwb190cmFjZXJDYXJyaWVyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvZz48ZyBpZD0iU1ZHUmVwb19pY29uQ2FycmllciI+IDxwYXRoIGQ9Ik0xNiAxNmwzLTggMy4wMDEgOEE1LjAwMiA1LjAwMiAwIDAxMTYgMTZ6Ij48L3BhdGg+IDxwYXRoIGQ9Ik0yIDE2bDMtOCAzLjAwMSA4QTUuMDAyIDUuMDAyIDAgMDEyIDE2eiI+PC9wYXRoPiA8cGF0aCBkPSJNNyAyMWgxMCI+PC9wYXRoPiA8cGF0aCBkPSJNMTIgM3YxOCI+PC9wYXRoPiA8cGF0aCBkPSJNMyA3aDJjMiAwIDUtMSA3LTIgMiAxIDUgMiA3IDJoMiI+PC9wYXRoPiA8L2c+PC9zdmc+Cg==)
4
4
 
5
- ## Installing
5
+ > ⚖️ Legalities
6
+ >
7
+ > By downloading, installing, or implementing any of the idOS’ SDKs, you acknowledge that you have read and understood idOS’ Privacy Policy and Transparency Document.
8
+ >
9
+ > - <https://www.idos.network/legal/privacy-policy>
10
+ > - <https://www.idos.network/legal/transparency-document>
11
+
12
+ ## Installation
6
13
 
7
14
  Get [our NPM package](https://www.npmjs.com/package/@idos-network/client) and its dependencies with pnpm or the equivalent of your package manager of choice:
8
15
 
9
16
  ```bash
10
17
  pnpm add @idos-network/client
11
- ```
18
+ ```
19
+
20
+ ## Quick start
21
+
22
+ ```typescript
23
+ import {
24
+ createIDOSClient,
25
+ idOSClientLoggedIn,
26
+ type idOSClientWithUserSigner,
27
+ } from "@idos-network/client";
28
+
29
+ const idOSClientWithoutSigner = await createIDOSClient({
30
+ nodeUrl: "https://nodes.idos.network",
31
+ enclaveOptions: {
32
+ container: "#idosContainer",
33
+ },
34
+ }).createClient();
35
+
36
+ // Signer can be JsonRpcSigner, or check below for supported chains
37
+ const idOSClientWithSigner = await idOSClientWithoutSigner.withUserSigner(signer);
38
+
39
+ // Check if user is already in idOS onboarded
40
+ const hasProfile = await idOSClientWithSigner.hasProfile();
41
+
42
+ // If yes we can create a new session
43
+ const loggedInClient = await idOSClientWithSigner.logIn();
44
+
45
+ // User id and public encryption key
46
+ const profile = loggedInClient.user;
47
+
48
+ // Now we can filer over users credentials (no access to them)
49
+ const credentials = await loggedInClient.filterCredentials({
50
+ credentialLevelOrHigherFilter: {
51
+ userLevel: "basic",
52
+ requiredAddons: ["email", "liveness"],
53
+ },
54
+ });
55
+
56
+ // If we found a credentials which we can use, we will ask user for AccessGrant
57
+ // which we later can use in our consumer to get the users data
58
+ const ag = await loggedInClient.requestAccessGrant(credentials[0].id, {
59
+ consumerAuthPublicKey: "CONSUMER_PUBLIC_KEY",
60
+ consumerEncryptionPublicKey: "CONSUMER_ENC_PUBLIC_KEY",
61
+ lockedUntil: lockedUntil: Math.floor(Date.now() / 1000) + 90 * 24 * 60 * 60, // 3 months from now
62
+ });
63
+
64
+ // Also when the user is logged in, we can ask him to add another wallet
65
+ // wallet type is required.
66
+ await loggedInClient.addWallet({
67
+ id: "unique-wallet-id",
68
+ address: "0x...", // Wallet address
69
+ public_key: "0x...", // Public key in hex format
70
+ message: "Sign this message to prove you own this wallet",
71
+ signature: "0x...", // Signature of the message
72
+ wallet_type: "EVM", // Required: "EVM", "NEAR", "XRPL"...
73
+ });
74
+ ```
75
+
76
+ ### Supported Wallet Types
77
+
78
+ - `"evm"` - Ethereum Virtual Machine compatible wallets (Ethereum, Polygon, etc.)
79
+ - `"xrpl"` - XRP Ledger wallets
80
+ - `"near"` - NEAR Protocol wallets
81
+ - `"stellar"` - Stellar network wallets
82
+
83
+ ## Documentation
84
+
85
+ For complete documentation, examples, and implementation guides:
86
+
87
+ - 📖 **[Client Guide](../../docs/guide-client.md)** - Comprehensive implementation guide
88
+ - 🏗️ **[System Overview](../../docs/README.md)** - Understanding idOS architecture
89
+ - 🔒 **[Encryption](../../docs/encryption.md)** - Encryption key management
90
+ - ✍️ **[Signatures](../../docs/signatures.md)** - Signer implementation details
91
+
92
+ ## Key Features
93
+
94
+ - **Profile & Session Lifecycle** - Check profile existence, attach a wallet signer, and log users in/out
95
+ - **Enclave-Backed Encryption** - Generate user encryption profiles and decrypt credential content safely via the enclave
96
+ - **Credential Access & Filtering** - Fetch credentials, read decrypted content, and filter by issuer, level, and field rules
97
+ - **Credential Sharing Flows** - Request DAG/DWG messages, create access grants, and share credentials with controlled lock times
98
+ - **Wallet Management** - Add, list, and remove wallets (single or batch), including MPC-aware wallet synchronization
99
+ - **Multi-Chain Wallet Support** - Works with EVM, NEAR, XRPL, and Stellar wallet types
100
+
101
+ ## Support
102
+
103
+ Please follow the process outlined here: <https://github.com/idos-network/.github/blob/main/profile/README.md>
104
+
105
+ ---
106
+
107
+ ## Developing the SDK locally
108
+
109
+ Run:
110
+
111
+ ```bash
112
+ pnpm dev
113
+ ```
114
+
115
+ This will start the compiler in watch mode that will rebuild every time any of the source files are changed.
116
+
117
+ You can also create a production build by running the following command in the root folder of the SDK package:
118
+
119
+ ```bash
120
+ pnpm build
121
+ ```
package/dist/index.d.ts CHANGED
@@ -1,205 +1,12 @@
1
- import { KwilSigner, NodeKwil, Utils, WebKwil } from "@idos-network/kwil-js";
1
+ import { recordFilter } from "@idos-network/credentials/utils";
2
+ import { KwilActionClient, Wallet, signNearMessage } from "@idos-network/kwil-infra";
3
+ import { AddAttributeInput, AddWalletInput, DagMessageInput, GetAccessGrantsGrantedInput, GetWalletsOutput, ShareCredentialInput, WalletType, idOSCredential, idOSCredentialListItem, idOSDelegatedWriteGrant, idOSGrant, idOSUser, idOSUserAttribute, idOSWallet } from "@idos-network/kwil-infra/actions";
2
4
  import { Store } from "@idos-network/utils/store";
3
- import { BaseProvider, EnclaveOptions, PublicEncryptionProfile } from "@idos-network/utils/enclave";
4
- import { JsonRpcSigner, Wallet } from "ethers";
5
- import * as z from "zod";
6
- import { Wallet as Wallet$1 } from "@near-wallet-selector/core";
5
+ import { BaseProvider, EnclaveOptions, EncryptionPasswordStore, PublicEncryptionProfile } from "@idos-network/enclave";
6
+ import { KwilSigner } from "@idos-network/kwil-js";
7
+ import { idOSCredential as idOSCredential$1 } from "@idos-network/credentials/types";
8
+ import { AddAddressMessageToSign, AddAddressSignatureMessage, RemoveAddressMessageToSign, RemoveAddressSignatureMessage } from "@idos-network/enclave/mpc";
7
9
 
8
- //#region ../@core/src/kwil-infra/create-kwil-client.d.ts
9
- type KwilActions = typeof actionSchema;
10
- type ActionName = keyof KwilActions;
11
- type AllKwilCallAction = { [Name in ActionName]: {
12
- name: Name;
13
- // biome-ignore lint/suspicious/noExplicitAny: This is fine
14
- inputs: Record<KwilActions[Name][number]["name"], any>;
15
- } };
16
- type KwilCallActionRequestParams = AllKwilCallAction[ActionName];
17
- type AllKwilExecuteAction = { [Name in ActionName]: AllKwilCallAction[Name] & {
18
- description: string;
19
- } };
20
- type KwilExecuteActionRequestParams = AllKwilExecuteAction[ActionName];
21
- /**
22
- * A client for interacting with kwil with type-safe abstractions for `call` and `execute`.
23
- * Has utility methods for creating actions and setting a signer.
24
- */
25
- declare class KwilActionClient {
26
- #private;
27
- signer?: KwilSigner;
28
- readonly client: NodeKwil | WebKwil;
29
- constructor(client: NodeKwil | WebKwil);
30
- /**
31
- * Calls an action on the kwil nodes. This similar to `GET` like request.
32
- */
33
- call<T = unknown>(params: KwilCallActionRequestParams, signer?: KwilSigner | undefined): Promise<T>;
34
- /**
35
- * Executes an action on the kwil nodes. This similar to `POST` like request.
36
- */
37
- execute(params: KwilExecuteActionRequestParams, signer?: KwilSigner | undefined, synchronous?: boolean): Promise<string | undefined>;
38
- setSigner(signer: KwilSigner | undefined): void;
39
- }
40
- /**
41
- * Create a kwil client for node.js environment
42
- */
43
- //#endregion
44
- //#region ../@credentials/src/utils/types.d.ts
45
- type idOSCredential$1 = {
46
- id: string;
47
- user_id: string;
48
- issuer_auth_public_key: string;
49
- original_id?: string;
50
- public_notes: string;
51
- content: string;
52
- encryptor_public_key: string;
53
- };
54
- //#endregion
55
- //#region ../@core/src/types/index.d.ts
56
- type Wallet$2 = Wallet | JsonRpcSigner | Wallet$1 | CustomKwilSigner;
57
- //#endregion
58
- //#region ../@core/src/kwil-infra/create-kwil-signer.d.ts
59
- interface CustomKwilSigner extends KwilSigner {
60
- publicAddress: string;
61
- signatureType: string;
62
- }
63
- //#endregion
64
- //#region ../@core/src/kwil-infra/near/create-near-wallet-kwil-signer.d.ts
65
- declare function signNearMessage(wallet: Wallet$1, message: string, recipient?: string): Promise<string>;
66
- //#endregion
67
- //#region ../@core/src/kwil-actions/actions.d.ts
68
- // This file is generated by the generator. Do not edit it manually.
69
- declare const DataType: typeof Utils.DataType;
70
- type ActionSchemaElement = {
71
- name: string;
72
- type: typeof DataType.Uuid | typeof DataType.Text | typeof DataType.Int;
73
- };
74
- declare const actionSchema: Record<string, ActionSchemaElement[]>;
75
- declare const idOSUserSchema: z.ZodObject<{
76
- id: z.ZodUUID;
77
- recipient_encryption_public_key: z.ZodString;
78
- encryption_password_store: z.ZodString;
79
- }>;
80
- type idOSUser = z.infer<typeof idOSUserSchema>;
81
- /** USER ACTIONS */
82
-
83
- declare const idOSWalletSchema: z.ZodObject<{
84
- id: z.ZodUUID;
85
- user_id: z.ZodUUID;
86
- address: z.ZodString;
87
- public_key: z.ZodString;
88
- wallet_type: z.ZodString;
89
- message: z.ZodString;
90
- signature: z.ZodString;
91
- }>;
92
- type idOSWallet = z.infer<typeof idOSWalletSchema>;
93
- /** WALLET ACTIONS */
94
-
95
- declare const AddWalletInputSchema: z.ZodObject<{
96
- id: z.ZodUUID;
97
- address: z.ZodString;
98
- public_key: z.ZodString;
99
- message: z.ZodString;
100
- signature: z.ZodString;
101
- }>;
102
- type AddWalletInput = z.infer<typeof AddWalletInputSchema>;
103
- declare const GetWalletsOutputSchema: z.ZodObject<{
104
- id: z.ZodUUID;
105
- user_id: z.ZodUUID;
106
- address: z.ZodString;
107
- public_key: z.ZodString;
108
- wallet_type: z.ZodString;
109
- message: z.ZodString;
110
- signature: z.ZodString;
111
- inserter: z.ZodString;
112
- }>;
113
- type GetWalletsOutput = z.infer<typeof GetWalletsOutputSchema>;
114
- declare const idOSCredentialListItemSchema: z.ZodObject<{
115
- id: z.ZodUUID;
116
- user_id: z.ZodUUID;
117
- public_notes: z.ZodString;
118
- issuer_auth_public_key: z.ZodString;
119
- inserter: z.ZodString;
120
- original_id: z.ZodUUID;
121
- }>;
122
- type idOSCredentialListItem = z.infer<typeof idOSCredentialListItemSchema>;
123
- declare const ShareCredentialInputSchema: z.ZodObject<{
124
- id: z.ZodUUID;
125
- original_credential_id: z.ZodUUID;
126
- public_notes: z.ZodString;
127
- public_notes_signature: z.ZodString;
128
- broader_signature: z.ZodString;
129
- content: z.ZodString;
130
- content_hash: z.ZodString;
131
- encryptor_public_key: z.ZodString;
132
- issuer_auth_public_key: z.ZodString;
133
- grantee_wallet_identifier: z.ZodString;
134
- locked_until: z.ZodNumber;
135
- }>;
136
- type ShareCredentialInput = z.infer<typeof ShareCredentialInputSchema>;
137
- declare const idOSCredentialSchema: z.ZodObject<{
138
- id: z.ZodUUID;
139
- user_id: z.ZodUUID;
140
- public_notes: z.ZodString;
141
- content: z.ZodString;
142
- encryptor_public_key: z.ZodString;
143
- issuer_auth_public_key: z.ZodString;
144
- inserter: z.ZodString;
145
- }>;
146
- type idOSCredential = z.infer<typeof idOSCredentialSchema>;
147
- declare const AddAttributeInputSchema: z.ZodObject<{
148
- id: z.ZodUUID;
149
- attribute_key: z.ZodString;
150
- value: z.ZodString;
151
- }>;
152
- type AddAttributeInput = z.infer<typeof AddAttributeInputSchema>;
153
- declare const idOSUserAttributeSchema: z.ZodObject<{
154
- id: z.ZodUUID;
155
- user_id: z.ZodUUID;
156
- attribute_key: z.ZodString;
157
- value: z.ZodString;
158
- original_id: z.ZodUUID;
159
- }>;
160
- type idOSUserAttribute = z.infer<typeof idOSUserAttributeSchema>;
161
- declare const idOSDelegatedWriteGrantSchema: z.ZodObject<{
162
- owner_wallet_identifier: z.ZodString;
163
- grantee_wallet_identifier: z.ZodString;
164
- issuer_public_key: z.ZodString;
165
- id: z.ZodUUID;
166
- access_grant_timelock: z.ZodString;
167
- not_usable_before: z.ZodString;
168
- not_usable_after: z.ZodString;
169
- }>;
170
- type idOSDelegatedWriteGrant = z.infer<typeof idOSDelegatedWriteGrantSchema>;
171
- declare const idOSGrantSchema: z.ZodObject<{
172
- id: z.ZodUUID;
173
- ag_owner_user_id: z.ZodUUID;
174
- ag_grantee_wallet_identifier: z.ZodString;
175
- data_id: z.ZodUUID;
176
- locked_until: z.ZodNumber;
177
- content_hash: z.ZodString;
178
- inserter_type: z.ZodString;
179
- inserter_id: z.ZodString;
180
- }>;
181
- type idOSGrant = z.infer<typeof idOSGrantSchema>;
182
- declare const GetGrantsPaginatedInputSchema: z.ZodObject<{
183
- user_id: z.ZodNullable<z.ZodUUID>;
184
- page: z.ZodNumber;
185
- size: z.ZodNumber;
186
- }>;
187
- type GetGrantsPaginatedInput = z.infer<typeof GetGrantsPaginatedInputSchema>;
188
- /**
189
- * As arguments can be undefined (user can not send them at all), we have to have default values: page=1, size=20
190
- * Page number starts from 1, as UI usually shows to user in pagination element
191
- * Ordering is consistent because we use height as first ordering parameter
192
- */
193
-
194
- declare const DagMessageInputSchema: z.ZodObject<{
195
- dag_owner_wallet_identifier: z.ZodString;
196
- dag_grantee_wallet_identifier: z.ZodString;
197
- dag_data_id: z.ZodUUID;
198
- dag_locked_until: z.ZodNumber;
199
- dag_content_hash: z.ZodString;
200
- }>;
201
- type DagMessageInput = z.infer<typeof DagMessageInputSchema>;
202
- //#endregion
203
10
  //#region src/enclave/iframe-enclave.d.ts
204
11
  interface IframeEnclaveOptions extends EnclaveOptions {
205
12
  container: string;
@@ -210,6 +17,7 @@ declare class IframeEnclave extends BaseProvider<IframeEnclaveOptions> {
210
17
  private container;
211
18
  private iframe;
212
19
  private hostUrl;
20
+ private bound;
213
21
  constructor(options: IframeEnclaveOptions);
214
22
  /** @see parent method */
215
23
  load(): Promise<void>;
@@ -235,6 +43,10 @@ declare class IframeEnclave extends BaseProvider<IframeEnclaveOptions> {
235
43
  backupUserEncryptionProfile(): Promise<void>;
236
44
  /** @override parent method to call iframe */
237
45
  ensureUserEncryptionProfile(): Promise<PublicEncryptionProfile>;
46
+ addAddressMessageToSign(address: string, publicKey: string | undefined, addressToAddType: string): Promise<AddAddressMessageToSign>;
47
+ removeAddressMessageToSign(address: string, publicKey: string | undefined, addressToRemoveType: string): Promise<RemoveAddressMessageToSign>;
48
+ addAddressToMpcSecret(userId: string, message: AddAddressSignatureMessage, signature: string): Promise<string>;
49
+ removeAddressFromMpcSecret(userId: string, message: RemoveAddressSignatureMessage, signature: string): Promise<string>;
238
50
  private createAndLoadIframe;
239
51
  private showEnclave;
240
52
  private hideEnclave;
@@ -270,7 +82,7 @@ declare class idOSClientIdle {
270
82
  constructor(store: Store, kwilClient: KwilActionClient, enclaveProvider: BaseProvider);
271
83
  static fromConfig(params: idOSClientConfiguration<BaseProvider>): Promise<idOSClientIdle>;
272
84
  addressHasProfile(address: string): Promise<boolean>;
273
- withUserSigner(signer: Wallet$2): Promise<idOSClientWithUserSigner>;
85
+ withUserSigner(_signer: Wallet): Promise<idOSClientWithUserSigner>;
274
86
  logOut(): Promise<idOSClientIdle>;
275
87
  }
276
88
  declare class idOSClientWithUserSigner implements Omit<Properties<idOSClientIdle>, "state"> {
@@ -278,13 +90,15 @@ declare class idOSClientWithUserSigner implements Omit<Properties<idOSClientIdle
278
90
  readonly store: Store;
279
91
  readonly kwilClient: KwilActionClient;
280
92
  readonly enclaveProvider: BaseProvider;
281
- readonly signer: Wallet$2;
93
+ readonly signer: Wallet;
282
94
  readonly kwilSigner: KwilSigner;
283
95
  readonly walletIdentifier: string;
284
- constructor(idOSClientIdle: idOSClientIdle, signer: Wallet$2, kwilSigner: KwilSigner, walletIdentifier: string);
96
+ readonly walletPublicKey: string | undefined;
97
+ readonly walletType: WalletType;
98
+ constructor(idOSClientIdle: idOSClientIdle, signer: Wallet, kwilSigner: KwilSigner, walletIdentifier: string, walletPublicKey: string | undefined, walletType: WalletType);
285
99
  logOut(): Promise<idOSClientIdle>;
286
100
  hasProfile(): Promise<boolean>;
287
- createUserEncryptionProfile(userId: string): Promise<PublicEncryptionProfile>;
101
+ createUserEncryptionProfile(userId: string, forceEncryptionPasswordStore?: EncryptionPasswordStore): Promise<PublicEncryptionProfile>;
288
102
  logIn(): Promise<idOSClientLoggedIn>;
289
103
  }
290
104
  declare class idOSClientLoggedIn implements Omit<Properties<idOSClientWithUserSigner>, "state"> {
@@ -292,9 +106,11 @@ declare class idOSClientLoggedIn implements Omit<Properties<idOSClientWithUserSi
292
106
  readonly store: Store;
293
107
  readonly kwilClient: KwilActionClient;
294
108
  readonly enclaveProvider: BaseProvider;
295
- readonly signer: Wallet$2;
109
+ readonly signer: Wallet;
296
110
  readonly kwilSigner: KwilSigner;
297
111
  readonly walletIdentifier: string;
112
+ readonly walletPublicKey: string | undefined;
113
+ readonly walletType: WalletType;
298
114
  readonly user: idOSUser;
299
115
  constructor(idOSClientWithUserSigner: idOSClientWithUserSigner, user: idOSUser);
300
116
  logOut(): Promise<idOSClientIdle>;
@@ -310,17 +126,14 @@ declare class idOSClientLoggedIn implements Omit<Properties<idOSClientWithUserSi
310
126
  createAttribute(attribute: AddAttributeInput): Promise<AddAttributeInput>;
311
127
  getCredentialContentSha256Hash(id: string): Promise<string>;
312
128
  getCredentialContent(id: string): Promise<string>;
313
- createCredentialCopy(id: string, consumerRecipientEncryptionPublicKey: string, consumerAddress: string, lockedUntil: number): Promise<{
314
- id: string;
315
- }>;
316
129
  requestDAGMessage(params: DagMessageInput): Promise<string>;
317
- getGrants(params: GetGrantsPaginatedInput): Promise<{
130
+ getGrants(params: Partial<GetAccessGrantsGrantedInput>): Promise<{
318
131
  grants: idOSGrant[];
319
132
  totalCount: number;
320
133
  }>;
321
134
  addWallets(params: AddWalletInput[]): Promise<AddWalletInput[]>;
322
135
  getGrantsCount(): Promise<number>;
323
- getSharedCredential(id: string): Promise<idOSCredential | undefined>;
136
+ getCredentialShared(id: string): Promise<idOSCredential | undefined>;
324
137
  revokeAccessGrant(id: string): Promise<{
325
138
  id: string;
326
139
  }>;
@@ -335,26 +148,32 @@ declare class idOSClientLoggedIn implements Omit<Properties<idOSClientWithUserSi
335
148
  authPublicKey: string;
336
149
  }[];
337
150
  publicNotesFieldFilters?: {
338
- pick: Record<string, unknown[]>;
339
- omit: Record<string, unknown[]>;
151
+ pick: Parameters<typeof recordFilter>[1];
152
+ omit: Parameters<typeof recordFilter>[2];
340
153
  };
341
154
  privateFieldFilters?: {
342
- pick: Record<string, unknown[]>;
343
- omit: Record<string, unknown[]>;
155
+ pick: Parameters<typeof recordFilter>[1];
156
+ omit: Parameters<typeof recordFilter>[2];
157
+ };
158
+ credentialLevelOrHigherFilter?: {
159
+ userLevel: "basic" | "plus";
160
+ requiredAddons: ("liveness" | "email" | "phoneNumber")[];
344
161
  };
345
- }): Promise<idOSCredential[]>;
162
+ }): Promise<idOSCredentialListItem[]>;
346
163
  requestAccessGrant(credentialId: string, {
347
164
  consumerEncryptionPublicKey,
348
- consumerAuthPublicKey
165
+ consumerAuthPublicKey,
166
+ lockedUntil
349
167
  }: {
350
168
  consumerEncryptionPublicKey: string;
351
169
  consumerAuthPublicKey: string;
352
- }): Promise<idOSCredential>;
170
+ lockedUntil?: number;
171
+ }): Promise<ShareCredentialInput>;
353
172
  }
354
173
  declare function createIDOSClient(params: {
355
174
  nodeUrl: string;
356
175
  enclaveOptions: Omit<IframeEnclave["options"], "mode">;
357
176
  }): idOSClientConfiguration<IframeEnclave>;
358
177
  //#endregion
359
- export { IframeEnclave, createIDOSClient, idOSClient, idOSClientConfiguration, idOSClientIdle, idOSClientLoggedIn, idOSClientWithUserSigner, type idOSCredential, type idOSDelegatedWriteGrant, type idOSGrant, type idOSUser, type idOSUserAttribute, type idOSWallet, signNearMessage };
178
+ export { IframeEnclave, createIDOSClient, idOSClient, idOSClientConfiguration, idOSClientIdle, idOSClientLoggedIn, idOSClientWithUserSigner, type idOSCredential, type idOSCredentialListItem, type idOSDelegatedWriteGrant, type idOSGrant, type idOSUser, type idOSUserAttribute, type idOSWallet, signNearMessage };
360
179
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":["client: NodeKwil | WebKwil","params: KwilCallActionRequestParams","signer: KwilSigner | undefined","params: KwilExecuteActionRequestParams","createNodeKwilClient: (params: CreateKwilClientParams) => Promise<KwilActionClient>","params: CreateKwilClientParams","createWebKwilClient: (params: CreateKwilClientParams) => Promise<KwilActionClient>","CredentialFieldsSchema: z.ZodObject<{\n id: z.ZodString;\n level: z.ZodString;\n issued: z.ZodOptional<z.ZodDate>;\n approvedAt: z.ZodOptional<z.ZodDate>;\n expirationDate: z.ZodOptional<z.ZodDate>;\n}>","CredentialResidentialAddressSchema: z.ZodObject<{\n street: z.ZodString;\n houseNumber: z.ZodOptional<z.ZodString>;\n additionalAddressInfo: z.ZodOptional<z.ZodString>;\n region: z.ZodOptional<z.ZodString>;\n city: z.ZodString;\n postalCode: z.ZodString;\n country: z.ZodString;\n}>","IDDocumentTypeSchema: z.ZodEnum<{\n PASSPORT: \"PASSPORT\";\n DRIVERS: \"DRIVERS\";\n ID_CARD: \"ID_CARD\";\n}>","GenderSchema: z.ZodEnum<{\n M: \"M\";\n F: \"F\";\n OTHER: \"OTHER\";\n}>","CredentialSubjectSchema: z.ZodObject<{\n id: z.ZodString;\n applicantId: z.ZodOptional<z.ZodString>;\n inquiryId: z.ZodOptional<z.ZodString>;\n firstName: z.ZodString;\n middleName: z.ZodOptional<z.ZodString>;\n ssn: z.ZodOptional<z.ZodString>;\n gender: z.ZodOptional<typeof GenderSchema>;\n nationality: z.ZodOptional<z.ZodString>;\n familyName: z.ZodString;\n maidenName: z.ZodOptional<z.ZodString>;\n governmentId: z.ZodOptional<z.ZodString>;\n governmentIdType: z.ZodOptional<z.ZodString>;\n dateOfBirth: z.ZodDate;\n placeOfBirth: z.ZodOptional<z.ZodString>;\n email: z.ZodOptional<z.ZodEmail>;\n phoneNumber: z.ZodOptional<z.ZodString>;\n idDocumentCountry: z.ZodString;\n idDocumentNumber: z.ZodString;\n idDocumentType: typeof IDDocumentTypeSchema;\n idDocumentDateOfIssue: z.ZodOptional<z.ZodDate>;\n idDocumentDateOfExpiry: z.ZodOptional<z.ZodDate>;\n idDocumentFrontFile: z.ZodType<Buffer<ArrayBufferLike>>;\n idDocumentBackFile: z.ZodOptional<z.ZodType<Buffer<ArrayBufferLike>>>;\n selfieFile: z.ZodType<Buffer<ArrayBufferLike>>;\n residentialAddress: z.ZodOptional<typeof CredentialResidentialAddressSchema>;\n residentialAddressProofCategory: z.ZodOptional<z.ZodString>;\n residentialAddressProofDateOfIssue: z.ZodOptional<z.ZodDate>;\n residentialAddressProofFile: z.ZodOptional<z.ZodType<Buffer<ArrayBufferLike>>>;\n}>","message: Extract<IsleNodeMessage, { type: T }>","signer: KwilSignerType","store: Store","kwilClient: KwilActionClient","wallet: Wallet","signer: unknown","publicKey: string","namedAddress: string","wallet: NearWallet","message: string","currentAddress: string","store: Store","kwilClient: KwilActionClient","DataType: typeof Utils.DataType","actionSchema: Record<string, ActionSchemaElement[]>","idOSUserSchema: z.ZodObject<{\n id: z.ZodUUID;\n recipient_encryption_public_key: z.ZodString;\n encryption_password_store: z.ZodString;\n}>","kwilClient: KwilActionClient","params: idOSUser","GetUserOutputSchema: z.ZodObject<{\n id: z.ZodUUID;\n recipient_encryption_public_key: z.ZodString;\n encryption_password_store: z.ZodString;\n}>","idOSWalletSchema: z.ZodObject<{\n id: z.ZodUUID;\n user_id: z.ZodUUID;\n address: z.ZodString;\n public_key: z.ZodString;\n wallet_type: z.ZodString;\n message: z.ZodString;\n signature: z.ZodString;\n}>","params: idOSWallet","AddWalletInputSchema: z.ZodObject<{\n id: z.ZodUUID;\n address: z.ZodString;\n public_key: z.ZodString;\n message: z.ZodString;\n signature: z.ZodString;\n}>","params: AddWalletInput","GetWalletsOutputSchema: z.ZodObject<{\n id: z.ZodUUID;\n user_id: z.ZodUUID;\n address: z.ZodString;\n public_key: z.ZodString;\n wallet_type: z.ZodString;\n message: z.ZodString;\n signature: z.ZodString;\n inserter: z.ZodString;\n}>","RemoveWalletInputSchema: z.ZodObject<{\n id: z.ZodUUID;\n}>","params: RemoveWalletInput","idOSCredentialListItemSchema: z.ZodObject<{\n id: z.ZodUUID;\n user_id: z.ZodUUID;\n public_notes: z.ZodString;\n issuer_auth_public_key: z.ZodString;\n inserter: z.ZodString;\n original_id: z.ZodUUID;\n}>","GetCredentialsSharedByUserInputSchema: z.ZodObject<{\n user_id: z.ZodUUID;\n issuer_auth_public_key: z.ZodNullable<z.ZodString>;\n}>","GetCredentialsSharedByUserOutputSchema: z.ZodObject<{\n id: z.ZodUUID;\n user_id: z.ZodUUID;\n public_notes: z.ZodString;\n encryptor_public_key: z.ZodString;\n issuer_auth_public_key: z.ZodString;\n inserter: z.ZodString;\n original_id: z.ZodUUID;\n}>","params: GetCredentialsSharedByUserInput","EditCredentialAsIssuerParamsSchema: z.ZodObject<{\n public_notes_id: z.ZodString;\n public_notes: z.ZodString;\n}>","params: EditCredentialAsIssuerParams","RemoveCredentialInputSchema: z.ZodObject<{\n id: z.ZodUUID;\n}>","params: RemoveCredentialInput","ShareCredentialInputSchema: z.ZodObject<{\n id: z.ZodUUID;\n original_credential_id: z.ZodUUID;\n public_notes: z.ZodString;\n public_notes_signature: z.ZodString;\n broader_signature: z.ZodString;\n content: z.ZodString;\n content_hash: z.ZodString;\n encryptor_public_key: z.ZodString;\n issuer_auth_public_key: z.ZodString;\n grantee_wallet_identifier: z.ZodString;\n locked_until: z.ZodNumber;\n}>","params: ShareCredentialInput","CreateCredentialCopyInputSchema: z.ZodObject<{\n id: z.ZodUUID;\n original_credential_id: z.ZodUUID;\n public_notes: z.ZodString;\n public_notes_signature: z.ZodString;\n broader_signature: z.ZodString;\n content: z.ZodString;\n encryptor_public_key: z.ZodString;\n issuer_auth_public_key: z.ZodString;\n}>","params: CreateCredentialCopyInput","CreateCredentialByDelegatedWriteGrantInputSchema: z.ZodObject<{\n issuer_auth_public_key: z.ZodString;\n original_encryptor_public_key: z.ZodString;\n original_credential_id: z.ZodUUID;\n original_content: z.ZodString;\n original_public_notes: z.ZodString;\n original_public_notes_signature: z.ZodString;\n original_broader_signature: z.ZodString;\n copy_encryptor_public_key: z.ZodString;\n copy_credential_id: z.ZodUUID;\n copy_content: z.ZodString;\n copy_public_notes_signature: z.ZodString;\n copy_broader_signature: z.ZodString;\n content_hash: z.ZodString;\n dwg_owner: z.ZodString;\n dwg_grantee: z.ZodString;\n dwg_issuer_public_key: z.ZodString;\n dwg_id: z.ZodUUID;\n dwg_access_grant_timelock: z.ZodString;\n dwg_not_before: z.ZodString;\n dwg_not_after: z.ZodString;\n dwg_signature: z.ZodString;\n}>","params: CreateCredentialByDelegatedWriteGrantInput","GetCredentialOwnedInputSchema: z.ZodObject<{\n id: z.ZodUUID;\n}>","idOSCredentialSchema: z.ZodObject<{\n id: z.ZodUUID;\n user_id: z.ZodUUID;\n public_notes: z.ZodString;\n content: z.ZodString;\n encryptor_public_key: z.ZodString;\n issuer_auth_public_key: z.ZodString;\n inserter: z.ZodString;\n}>","params: GetCredentialOwnedInput","GetSharedCredentialInputSchema: z.ZodObject<{\n id: z.ZodUUID;\n}>","params: GetSharedCredentialInput","GetCredentialIdByContentHashInputSchema: z.ZodObject<{\n content_hash: z.ZodString;\n}>","GetCredentialIdByContentHashOutputSchema: z.ZodObject<{\n id: z.ZodUUID;\n}>","params: GetCredentialIdByContentHashInput","AddAttributeInputSchema: z.ZodObject<{\n id: z.ZodUUID;\n attribute_key: z.ZodString;\n value: z.ZodString;\n}>","params: AddAttributeInput","idOSUserAttributeSchema: z.ZodObject<{\n id: z.ZodUUID;\n user_id: z.ZodUUID;\n attribute_key: z.ZodString;\n value: z.ZodString;\n original_id: z.ZodUUID;\n}>","idOSDelegatedWriteGrantSchema: z.ZodObject<{\n owner_wallet_identifier: z.ZodString;\n grantee_wallet_identifier: z.ZodString;\n issuer_public_key: z.ZodString;\n id: z.ZodUUID;\n access_grant_timelock: z.ZodString;\n not_usable_before: z.ZodString;\n not_usable_after: z.ZodString;\n}>","DwgMessageOutputSchema: z.ZodObject<{\n message: z.ZodString;\n}>","params: idOSDelegatedWriteGrant","RevokeAccessGrantInputSchema: z.ZodObject<{\n id: z.ZodUUID;\n}>","params: RevokeAccessGrantInput","idOSGrantSchema: z.ZodObject<{\n id: z.ZodUUID;\n ag_owner_user_id: z.ZodUUID;\n ag_grantee_wallet_identifier: z.ZodString;\n data_id: z.ZodUUID;\n locked_until: z.ZodNumber;\n content_hash: z.ZodString;\n inserter_type: z.ZodString;\n inserter_id: z.ZodString;\n}>","GetGrantsPaginatedInputSchema: z.ZodObject<{\n user_id: z.ZodNullable<z.ZodUUID>;\n page: z.ZodNumber;\n size: z.ZodNumber;\n}>","params: GetGrantsPaginatedInput","GetGrantsCountInputSchema: z.ZodObject<{\n user_id: z.ZodNullable<z.ZodUUID>;\n}>","GetGrantsCountOutputSchema: z.ZodObject<{\n count: z.ZodNumber;\n}>","params: GetGrantsCountInput","DagMessageInputSchema: z.ZodObject<{\n dag_owner_wallet_identifier: z.ZodString;\n dag_grantee_wallet_identifier: z.ZodString;\n dag_data_id: z.ZodUUID;\n dag_locked_until: z.ZodNumber;\n dag_content_hash: z.ZodString;\n}>","DagMessageOutputSchema: z.ZodObject<{\n message: z.ZodString;\n}>","params: DagMessageInput","CreateAccessGrantByDagInputSchema: z.ZodObject<{\n dag_owner_wallet_identifier: z.ZodString;\n dag_grantee_wallet_identifier: z.ZodString;\n dag_data_id: z.ZodUUID;\n dag_locked_until: z.ZodNumber;\n dag_content_hash: z.ZodString;\n dag_signature: z.ZodString;\n}>","params: CreateAccessGrantByDagInput","GetAccessGrantsForCredentialInputSchema: z.ZodObject<{\n credential_id: z.ZodUUID;\n}>","GetAccessGrantsForCredentialOutputSchema: z.ZodObject<{\n id: z.ZodUUID;\n ag_owner_user_id: z.ZodUUID;\n ag_grantee_wallet_identifier: z.ZodString;\n data_id: z.ZodUUID;\n locked_until: z.ZodNumber;\n content_hash: z.ZodString;\n inserter_type: z.ZodString;\n inserter_id: z.ZodString;\n}>","params: GetAccessGrantsForCredentialInput","HasProfileInputSchema: z.ZodObject<{\n address: z.ZodString;\n}>","HasProfileOutputSchema: z.ZodObject<{\n has_profile: z.ZodBoolean;\n}>","params: HasProfileInput","GetPassportingPeersOutputSchema: z.ZodObject<{\n id: z.ZodUUID;\n name: z.ZodString;\n issuer_public_key: z.ZodString;\n passporting_server_url_base: z.ZodString;\n club_id: z.ZodUUID;\n club_name: z.ZodString;\n}>","options: IframeEnclaveOptions","options: Omit<IframeEnclaveOptions, \"container\" | \"url\">","message: string","credentials: idOSCredential[]","privateFieldFilters: { pick: Record<string, unknown[]>; omit: Record<string, unknown[]> }","message: Uint8Array","receiverPublicKey: Uint8Array","senderPublicKey: Uint8Array","params: {\n chainId?: string;\n nodeUrl: string;\n enclaveOptions: Omit<Provider[\"options\"], \"mode\">;\n enclaveProvider?: new (options: Omit<Provider[\"options\"], \"mode\">) => Provider;\n store?: Store;\n }","options: Omit<Provider[\"options\"], \"mode\">","store: Store","kwilClient: KwilActionClient","enclaveProvider: BaseProvider","params: idOSClientConfiguration<BaseProvider>","address: string","signer: Wallet","idOSClientIdle: idOSClientIdle","kwilSigner: KwilSigner","walletIdentifier: string","userId: string","idOSClientWithUserSigner: idOSClientWithUserSigner","user: idOSUser","params: idOSDelegatedWriteGrant","id: string","credential: ShareCredentialInput","attribute: AddAttributeInput","consumerRecipientEncryptionPublicKey: string","consumerAddress: string","lockedUntil: number","params: DagMessageInput","params: GetGrantsPaginatedInput","params: AddWalletInput[]","params: AddWalletInput","ids: string[]","requirements: {\n acceptedIssuers: {\n authPublicKey: string;\n }[];\n publicNotesFieldFilters?: {\n pick: Record<string, unknown[]>;\n omit: Record<string, unknown[]>;\n };\n privateFieldFilters?: {\n pick: Record<string, unknown[]>;\n omit: Record<string, unknown[]>;\n };\n }","credentialId: string","params: {\n nodeUrl: string;\n enclaveOptions: Omit<IframeEnclave[\"options\"], \"mode\">;\n}"],"sources":["../../@core/src/kwil-infra/create-kwil-client.ts","../../@credentials/src/utils/types.ts","../../@core/src/types/index.ts","../../@core/src/kwil-infra/create-kwil-signer.ts","../../@core/src/kwil-infra/near/create-near-wallet-kwil-signer.ts","../../@core/src/kwil-actions/actions.ts","../src/enclave/iframe-enclave.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;KAmBK,WAAA,UAAqB;KACrB,UAAA,SAAmB;AANnB,KAQA,iBAAA,GAHA,WAIM,UAJe,GAAA;EAAA,IACrB,EAIK,IAJL;EAAmB;EAEnB,MAAA,EAIO,MAJP,CAIc,WAJd,CAI0B,IAJ1B,CAAA,CAAA,MAAA,CAAA,CAAA,MAAA,CAAA,EAAA,GAAA,CAAA;CAAA,EAAA;KAQA,2BAAA,GAA8B,iBANzB,CAM2C,UAN3C,CAAA;KAQL,oBAAA,GANc,WAOR,UAPQ,GAOK,iBAPL,CAOuB,IAPvB,CAAA,GAAA;EAAA,WAAY,EAAA,MAAA;CAAA,EAAA;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