@idos-network/kwil-infra 1.1.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.
Files changed (58) hide show
  1. package/.turbo/turbo-build.log +47 -0
  2. package/.turbo/turbo-test.log +126 -0
  3. package/.turbo/turbo-typecheck.log +5 -0
  4. package/CHANGELOG.md +20 -0
  5. package/LICENSE +21 -0
  6. package/README.md +63 -0
  7. package/dist/actions/index.d.mts +2 -0
  8. package/dist/actions/index.mjs +1371 -0
  9. package/dist/actions/index.mjs.map +1 -0
  10. package/dist/facesign/index.d.mts +2 -0
  11. package/dist/facesign/index.mjs +2 -0
  12. package/dist/facesign-signer-ADd4EASX.d.mts +29 -0
  13. package/dist/facesign-signer-ADd4EASX.d.mts.map +1 -0
  14. package/dist/facesign-signer-BY9Nti9F.mjs +244 -0
  15. package/dist/facesign-signer-BY9Nti9F.mjs.map +1 -0
  16. package/dist/index-Ci6QhKJo.d.mts +644 -0
  17. package/dist/index-Ci6QhKJo.d.mts.map +1 -0
  18. package/dist/index.d.mts +2 -0
  19. package/dist/index.mjs +429 -0
  20. package/dist/index.mjs.map +1 -0
  21. package/dist/signature-verification/index.d.mts +14 -0
  22. package/dist/signature-verification/index.d.mts.map +1 -0
  23. package/dist/signature-verification/index.mjs +140 -0
  24. package/dist/signature-verification/index.mjs.map +1 -0
  25. package/dist/xrp/utils.d.mts +1165 -0
  26. package/dist/xrp/utils.d.mts.map +1 -0
  27. package/dist/xrp/utils.mjs +105 -0
  28. package/dist/xrp/utils.mjs.map +1 -0
  29. package/dist/xrpl-credentials/index.d.mts +179 -0
  30. package/dist/xrpl-credentials/index.d.mts.map +1 -0
  31. package/dist/xrpl-credentials/index.mjs +224 -0
  32. package/dist/xrpl-credentials/index.mjs.map +1 -0
  33. package/package.json +93 -0
  34. package/src/actions/actions.ts +2197 -0
  35. package/src/actions/index.ts +55 -0
  36. package/src/create-kwil-client.ts +144 -0
  37. package/src/create-kwil-signer.ts +270 -0
  38. package/src/facesign/facesign-signer.ts +327 -0
  39. package/src/facesign/index.ts +2 -0
  40. package/src/index.ts +7 -0
  41. package/src/near/create-near-wallet-kwil-signer.ts +245 -0
  42. package/src/near/get-config.ts +43 -0
  43. package/src/near/nep413.ts +62 -0
  44. package/src/near/signature-verification.ts +85 -0
  45. package/src/signature-verification/evm.ts +33 -0
  46. package/src/signature-verification/facesign.ts +19 -0
  47. package/src/signature-verification/index.test.ts +110 -0
  48. package/src/signature-verification/index.ts +72 -0
  49. package/src/signature-verification/stellar.ts +31 -0
  50. package/src/xrp/signature-verification.ts +18 -0
  51. package/src/xrp/signer.ts +43 -0
  52. package/src/xrp/utils.ts +178 -0
  53. package/src/xrpl-credentials/accept.ts +143 -0
  54. package/src/xrpl-credentials/create.ts +199 -0
  55. package/src/xrpl-credentials/index.ts +12 -0
  56. package/tsconfig.json +33 -0
  57. package/tsdown.config.ts +13 -0
  58. package/vitest.config.ts +6 -0
@@ -0,0 +1,644 @@
1
+ import { n as FaceSignSignerProvider } from "./facesign-signer-ADd4EASX.mjs";
2
+ import { KwilSigner, KwilSigner as KwilSigner$1, NodeKwil, Utils, WebKwil } from "@idos-network/kwil-js";
3
+ import * as z from "zod";
4
+ import nacl from "tweetnacl";
5
+ import { Store } from "@idos-network/utils/store";
6
+ import { Wallet } from "@near-wallet-selector/core";
7
+ import { Keypair } from "@stellar/stellar-sdk";
8
+ import { JsonRpcSigner, Wallet as Wallet$1 } from "ethers";
9
+ import { KeyPair } from "near-api-js";
10
+ import { KeyPair as KeyPair$1 } from "ripple-keypairs/src/types.ts";
11
+
12
+ //#region src/create-kwil-client.d.ts
13
+ type CreateKwilClientParams = {
14
+ chainId?: string;
15
+ nodeUrl: string;
16
+ };
17
+ type KwilActions = typeof actionSchema;
18
+ type ActionName = keyof KwilActions;
19
+ type AllKwilCallAction = { [Name in ActionName]: {
20
+ name: Name;
21
+ inputs: Record<KwilActions[Name][number]["name"], any>;
22
+ } };
23
+ type KwilCallActionRequestParams = AllKwilCallAction[ActionName];
24
+ type AllKwilExecuteAction = { [Name in ActionName]: AllKwilCallAction[Name] & {
25
+ description: string;
26
+ } };
27
+ type KwilExecuteActionRequestParams = AllKwilExecuteAction[ActionName];
28
+ /**
29
+ * A client for interacting with kwil with type-safe abstractions for `call` and `execute`.
30
+ * Has utility methods for creating actions and setting a signer.
31
+ */
32
+ declare class KwilActionClient {
33
+ #private;
34
+ signer?: KwilSigner;
35
+ readonly client: NodeKwil | WebKwil;
36
+ constructor(client: NodeKwil | WebKwil);
37
+ /**
38
+ * Calls an action on the kwil nodes. This similar to `GET` like request.
39
+ */
40
+ call<T = unknown>(params: KwilCallActionRequestParams, signer?: KwilSigner | undefined): Promise<T>;
41
+ /**
42
+ * Executes an action on the kwil nodes. This similar to `POST` like request.
43
+ */
44
+ execute(params: KwilExecuteActionRequestParams, signer?: KwilSigner | undefined, synchronous?: boolean): Promise<string | undefined>;
45
+ setSigner(signer: KwilSigner | undefined): void;
46
+ }
47
+ /**
48
+ * Create a kwil client for node.js environment
49
+ */
50
+ declare const createNodeKwilClient: (params: CreateKwilClientParams) => Promise<KwilActionClient>;
51
+ /**
52
+ * Create a kwil client for browser environment
53
+ */
54
+ declare const createWebKwilClient: (params: CreateKwilClientParams) => Promise<KwilActionClient>;
55
+ //#endregion
56
+ //#region src/create-kwil-signer.d.ts
57
+ type Wallet$2 = Wallet$1 | JsonRpcSigner | Wallet | CustomKwilSigner | FaceSignSignerProvider;
58
+ interface CustomKwilSigner extends KwilSigner {
59
+ publicAddress: string;
60
+ signatureType: string;
61
+ publicKey: string;
62
+ walletType: string;
63
+ signMessage: (message: Uint8Array | string) => Promise<Uint8Array>;
64
+ }
65
+ type KwilSignerType = KeyPair | Wallet$1 | nacl.SignKeyPair | JsonRpcSigner | Keypair | KeyPair$1;
66
+ type SignerAddress = string;
67
+ type SignerPublicKey = string | undefined;
68
+ /**
69
+ * Creates a `KwilSigner` and its associated `SignerAddress`.
70
+ *
71
+ * This function is explicitly marked as being for backend use only because it doesn't reset
72
+ * the KGW cookie when logging out and re-logging in with a different wallet.
73
+ */
74
+ declare function createServerKwilSigner(signer: KwilSignerType): Promise<[KwilSigner, SignerAddress]>;
75
+ declare function createClientKwilSigner(store: Store, kwilClient: KwilActionClient, wallet: Wallet$2): Promise<[KwilSigner, SignerAddress, SignerPublicKey, WalletType]>;
76
+ //#endregion
77
+ //#region src/near/create-near-wallet-kwil-signer.d.ts
78
+ declare function implicitAddressFromPublicKey(publicKey: string): string;
79
+ declare function getNearFullAccessPublicKeys(namedAddress: string): Promise<string[] | undefined>;
80
+ declare function signNearMessage(wallet: Wallet, message: string, recipient?: string): Promise<string>;
81
+ //#endregion
82
+ //#region src/actions/actions.d.ts
83
+ declare const DataType: typeof Utils.DataType;
84
+ declare const WALLET_TYPES: readonly ["EVM", "NEAR", "XRPL", "Stellar", "FaceSign"];
85
+ type WalletType = (typeof WALLET_TYPES)[number];
86
+ declare const walletTypeSchema: z.ZodType<WalletType>;
87
+ declare const ENCRYPTION_PASSWORD_STORES: readonly ["user", "mpc"];
88
+ type EncryptionPasswordStore = (typeof ENCRYPTION_PASSWORD_STORES)[number];
89
+ declare const encryptionPasswordStoreSchema: z.ZodType<EncryptionPasswordStore>;
90
+ type ActionSchemaElement = {
91
+ name: string;
92
+ type: typeof DataType.Uuid | typeof DataType.Text | typeof DataType.Int | typeof DataType.Boolean;
93
+ };
94
+ declare const actionSchema: Record<string, ActionSchemaElement[]>;
95
+ declare const AddInserterAsOwnerInputSchema: z.ZodObject<{
96
+ id: z.ZodUUID;
97
+ name: z.ZodString;
98
+ }>;
99
+ type AddInserterAsOwnerInput = z.infer<typeof AddInserterAsOwnerInputSchema>;
100
+ /** INSERTER AND DELEGATE ACTIONS */
101
+ declare function addInserterAsOwner(kwilClient: KwilActionClient, params: AddInserterAsOwnerInput): Promise<void>;
102
+ declare const DeleteInserterAsOwnerInputSchema: z.ZodObject<{
103
+ id: z.ZodUUID;
104
+ }>;
105
+ type DeleteInserterAsOwnerInput = z.infer<typeof DeleteInserterAsOwnerInputSchema>;
106
+ declare function deleteInserterAsOwner(kwilClient: KwilActionClient, params: DeleteInserterAsOwnerInput): Promise<void>;
107
+ declare const AddDelegateAsOwnerInputSchema: z.ZodObject<{
108
+ address: z.ZodString;
109
+ inserter_id: z.ZodUUID;
110
+ }>;
111
+ type AddDelegateAsOwnerInput = z.infer<typeof AddDelegateAsOwnerInputSchema>;
112
+ declare function addDelegateAsOwner(kwilClient: KwilActionClient, params: AddDelegateAsOwnerInput): Promise<void>;
113
+ declare const DeleteDelegateAsOwnerInputSchema: z.ZodObject<{
114
+ address: z.ZodString;
115
+ }>;
116
+ type DeleteDelegateAsOwnerInput = z.infer<typeof DeleteDelegateAsOwnerInputSchema>;
117
+ declare function deleteDelegateAsOwner(kwilClient: KwilActionClient, params: DeleteDelegateAsOwnerInput): Promise<void>;
118
+ declare const AddUserAsInserterInputSchema: z.ZodObject<{
119
+ id: z.ZodUUID;
120
+ recipient_encryption_public_key: z.ZodString;
121
+ encryption_password_store: z.ZodType<EncryptionPasswordStore>;
122
+ }>;
123
+ type AddUserAsInserterInput = z.infer<typeof AddUserAsInserterInputSchema>;
124
+ /** USER ACTIONS */
125
+ declare function addUserAsInserter(kwilClient: KwilActionClient, params: AddUserAsInserterInput): Promise<void>;
126
+ declare const UpdateUserPubKeyAsInserterInputSchema: z.ZodObject<{
127
+ id: z.ZodUUID;
128
+ recipient_encryption_public_key: z.ZodString;
129
+ encryption_password_store: z.ZodType<EncryptionPasswordStore>;
130
+ }>;
131
+ type UpdateUserPubKeyAsInserterInput = z.infer<typeof UpdateUserPubKeyAsInserterInputSchema>;
132
+ declare function updateUserPubKeyAsInserter(kwilClient: KwilActionClient, params: UpdateUserPubKeyAsInserterInput): Promise<void>;
133
+ declare const GetUserOutputSchema: z.ZodObject<{
134
+ id: z.ZodUUID;
135
+ recipient_encryption_public_key: z.ZodString;
136
+ encryption_password_store: z.ZodType<EncryptionPasswordStore>;
137
+ }>;
138
+ type GetUserOutput = z.infer<typeof GetUserOutputSchema>;
139
+ declare function getUser(kwilClient: KwilActionClient): Promise<GetUserOutput>;
140
+ declare const GetUserAsInserterInputSchema: z.ZodObject<{
141
+ id: z.ZodUUID;
142
+ }>;
143
+ type GetUserAsInserterInput = z.infer<typeof GetUserAsInserterInputSchema>;
144
+ declare const GetUserAsInserterOutputSchema: z.ZodObject<{
145
+ id: z.ZodUUID;
146
+ recipient_encryption_public_key: z.ZodString;
147
+ encryption_password_store: z.ZodType<EncryptionPasswordStore>;
148
+ inserter: z.ZodString;
149
+ }>;
150
+ type GetUserAsInserterOutput = z.infer<typeof GetUserAsInserterOutputSchema>;
151
+ declare function getUserAsInserter(kwilClient: KwilActionClient, params: GetUserAsInserterInput): Promise<GetUserAsInserterOutput>;
152
+ declare const UpsertWalletAsInserterInputSchema: z.ZodObject<{
153
+ id: z.ZodUUID;
154
+ user_id: z.ZodUUID;
155
+ address: z.ZodString;
156
+ public_key: z.ZodNullable<z.ZodString>;
157
+ wallet_type: z.ZodType<WalletType>;
158
+ message: z.ZodString;
159
+ signature: z.ZodString;
160
+ }>;
161
+ type UpsertWalletAsInserterInput = z.infer<typeof UpsertWalletAsInserterInputSchema>;
162
+ /** WALLET ACTIONS */
163
+ declare function upsertWalletAsInserter(kwilClient: KwilActionClient, params: UpsertWalletAsInserterInput): Promise<void>;
164
+ declare const AddWalletInputSchema: z.ZodObject<{
165
+ id: z.ZodUUID;
166
+ address: z.ZodString;
167
+ public_key: z.ZodNullable<z.ZodString>;
168
+ wallet_type: z.ZodType<WalletType>;
169
+ message: z.ZodString;
170
+ signature: z.ZodString;
171
+ }>;
172
+ type AddWalletInput = z.infer<typeof AddWalletInputSchema>;
173
+ declare function addWallet(kwilClient: KwilActionClient, params: AddWalletInput): Promise<void>;
174
+ declare const GetWalletsOutputSchema: z.ZodObject<{
175
+ id: z.ZodUUID;
176
+ user_id: z.ZodUUID;
177
+ address: z.ZodString;
178
+ public_key: z.ZodNullable<z.ZodString>;
179
+ wallet_type: z.ZodType<WalletType>;
180
+ message: z.ZodString;
181
+ signature: z.ZodString;
182
+ inserter: z.ZodNullable<z.ZodString>;
183
+ }>;
184
+ type GetWalletsOutput = z.infer<typeof GetWalletsOutputSchema>;
185
+ declare function getWallets(kwilClient: KwilActionClient): Promise<GetWalletsOutput[]>;
186
+ declare const RemoveWalletInputSchema: z.ZodObject<{
187
+ id: z.ZodUUID;
188
+ }>;
189
+ type RemoveWalletInput = z.infer<typeof RemoveWalletInputSchema>;
190
+ declare function removeWallet(kwilClient: KwilActionClient, params: RemoveWalletInput): Promise<void>;
191
+ declare const UpsertCredentialAsInserterInputSchema: z.ZodObject<{
192
+ id: z.ZodUUID;
193
+ user_id: z.ZodUUID;
194
+ issuer_auth_public_key: z.ZodString;
195
+ encryptor_public_key: z.ZodString;
196
+ content: z.ZodString;
197
+ public_notes: z.ZodString;
198
+ public_notes_signature: z.ZodString;
199
+ broader_signature: z.ZodString;
200
+ }>;
201
+ type UpsertCredentialAsInserterInput = z.infer<typeof UpsertCredentialAsInserterInputSchema>;
202
+ /**
203
+ * CREDENTIAL ACTIONS
204
+ * throw an error if not authorized
205
+ */
206
+ declare function upsertCredentialAsInserter(kwilClient: KwilActionClient, params: UpsertCredentialAsInserterInput): Promise<void>;
207
+ declare const AddCredentialInputSchema: z.ZodObject<{
208
+ id: z.ZodUUID;
209
+ issuer_auth_public_key: z.ZodString;
210
+ encryptor_public_key: z.ZodString;
211
+ content: z.ZodString;
212
+ public_notes: z.ZodString;
213
+ public_notes_signature: z.ZodString;
214
+ broader_signature: z.ZodString;
215
+ }>;
216
+ type AddCredentialInput = z.infer<typeof AddCredentialInputSchema>;
217
+ declare function addCredential(kwilClient: KwilActionClient, params: AddCredentialInput): Promise<void>;
218
+ declare const GetCredentialsOutputSchema: z.ZodObject<{
219
+ id: z.ZodUUID;
220
+ user_id: z.ZodUUID;
221
+ public_notes: z.ZodString;
222
+ issuer_auth_public_key: z.ZodString;
223
+ inserter: z.ZodNullable<z.ZodString>;
224
+ original_id: z.ZodNullable<z.ZodUUID>;
225
+ }>;
226
+ type GetCredentialsOutput = z.infer<typeof GetCredentialsOutputSchema>;
227
+ declare function getCredentials(kwilClient: KwilActionClient): Promise<GetCredentialsOutput[]>;
228
+ declare const GetCredentialsSharedByUserInputSchema: z.ZodObject<{
229
+ user_id: z.ZodUUID;
230
+ original_issuer_auth_public_key: z.ZodNullable<z.ZodString>;
231
+ }>;
232
+ type GetCredentialsSharedByUserInput = z.infer<typeof GetCredentialsSharedByUserInputSchema>;
233
+ declare const GetCredentialsSharedByUserOutputSchema: z.ZodObject<{
234
+ id: z.ZodUUID;
235
+ user_id: z.ZodUUID;
236
+ public_notes: z.ZodString;
237
+ encryptor_public_key: z.ZodString;
238
+ issuer_auth_public_key: z.ZodString;
239
+ inserter: z.ZodNullable<z.ZodString>;
240
+ original_id: z.ZodNullable<z.ZodUUID>;
241
+ }>;
242
+ type GetCredentialsSharedByUserOutput = z.infer<typeof GetCredentialsSharedByUserOutputSchema>;
243
+ declare function getCredentialsSharedByUser(kwilClient: KwilActionClient, params: GetCredentialsSharedByUserInput): Promise<GetCredentialsSharedByUserOutput[]>;
244
+ declare const EditCredentialInputSchema: z.ZodObject<{
245
+ id: z.ZodUUID;
246
+ public_notes: z.ZodString;
247
+ public_notes_signature: z.ZodString;
248
+ broader_signature: z.ZodString;
249
+ content: z.ZodString;
250
+ encryptor_public_key: z.ZodString;
251
+ issuer_auth_public_key: z.ZodString;
252
+ }>;
253
+ type EditCredentialInput = z.infer<typeof EditCredentialInputSchema>;
254
+ /**
255
+ * we forbid to edit a copy
256
+ * only copies can have AGs, so data_id in AGs is id of a copy
257
+ * if $id is shared_credentials.copy_id - it is a copy
258
+ */
259
+ declare function editCredential(kwilClient: KwilActionClient, params: EditCredentialInput): Promise<void>;
260
+ declare const EditPublicNotesAsIssuerInputSchema: z.ZodObject<{
261
+ public_notes_id: z.ZodString;
262
+ public_notes: z.ZodString;
263
+ }>;
264
+ type EditPublicNotesAsIssuerInput = z.infer<typeof EditPublicNotesAsIssuerInputSchema>;
265
+ /**
266
+ * Be aware that @caller here is ed25519 public key, hex encoded.
267
+ * All other @caller in the schema are either secp256k1 or nep413
268
+ * This action can't be called by kwil-cli (as kwil-cli uses secp256k1 only)
269
+ */
270
+ declare function editPublicNotesAsIssuer(kwilClient: KwilActionClient, params: EditPublicNotesAsIssuerInput): Promise<void>;
271
+ declare const RemoveCredentialInputSchema: z.ZodObject<{
272
+ id: z.ZodUUID;
273
+ }>;
274
+ type RemoveCredentialInput = z.infer<typeof RemoveCredentialInputSchema>;
275
+ declare function removeCredential(kwilClient: KwilActionClient, params: RemoveCredentialInput): Promise<void>;
276
+ declare const RescindSharedCredentialInputSchema: z.ZodObject<{
277
+ credential_id: z.ZodUUID;
278
+ }>;
279
+ type RescindSharedCredentialInput = z.infer<typeof RescindSharedCredentialInputSchema>;
280
+ declare function rescindSharedCredential(kwilClient: KwilActionClient, params: RescindSharedCredentialInput): Promise<void>;
281
+ declare const ShareCredentialInputSchema: z.ZodObject<{
282
+ id: z.ZodUUID;
283
+ original_credential_id: z.ZodUUID;
284
+ public_notes: z.ZodString;
285
+ public_notes_signature: z.ZodString;
286
+ broader_signature: z.ZodString;
287
+ content: z.ZodString;
288
+ content_hash: z.ZodString;
289
+ encryptor_public_key: z.ZodString;
290
+ issuer_auth_public_key: z.ZodString;
291
+ grantee_wallet_identifier: z.ZodString;
292
+ locked_until: z.ZodNumber;
293
+ }>;
294
+ type ShareCredentialInput = z.infer<typeof ShareCredentialInputSchema>;
295
+ declare function shareCredential(kwilClient: KwilActionClient, params: ShareCredentialInput): Promise<void>;
296
+ declare const CreateCredentialsByDwgInputSchema: z.ZodObject<{
297
+ issuer_auth_public_key: z.ZodString;
298
+ original_encryptor_public_key: z.ZodString;
299
+ original_credential_id: z.ZodUUID;
300
+ original_content: z.ZodString;
301
+ original_public_notes: z.ZodString;
302
+ original_public_notes_signature: z.ZodString;
303
+ original_broader_signature: z.ZodString;
304
+ copy_encryptor_public_key: z.ZodString;
305
+ copy_credential_id: z.ZodUUID;
306
+ copy_content: z.ZodString;
307
+ copy_public_notes_signature: z.ZodString;
308
+ copy_broader_signature: z.ZodString;
309
+ content_hash: z.ZodString;
310
+ dwg_owner: z.ZodString;
311
+ dwg_grantee: z.ZodString;
312
+ dwg_issuer_public_key: z.ZodString;
313
+ dwg_id: z.ZodUUID;
314
+ dwg_access_grant_timelock: z.ZodString;
315
+ dwg_not_before: z.ZodString;
316
+ dwg_not_after: z.ZodString;
317
+ dwg_signature: z.ZodString;
318
+ }>;
319
+ type CreateCredentialsByDwgInput = z.infer<typeof CreateCredentialsByDwgInputSchema>;
320
+ /**
321
+ * Delegated write credential actions
322
+ * For access grant
323
+ * Check the content creator (encryptor) of credentials is the issuer that user delegated to issue the credentials
324
+ * Get the wallet type and public key for XRPL/NEAR wallets from database
325
+ * Will fail if not in the RFC3339 format
326
+ * Check the format and precedence
327
+ * Check if current block timestamp in time range allowed by write grant.
328
+ * @block_timestamp is a timestamp of previous block, which is can be a few seconds earlier
329
+ * (max is 6 seconds in current network consensus settings) then a time on a requester's machine.
330
+ * Also, if requester's machine has wrong time, it can be an issue.
331
+ * Insert original credential
332
+ * Insert copy credential
333
+ */
334
+ declare function createCredentialsByDwg(kwilClient: KwilActionClient, params: CreateCredentialsByDwgInput): Promise<void>;
335
+ declare const CredentialExistAsInserterInputSchema: z.ZodObject<{
336
+ id: z.ZodUUID;
337
+ }>;
338
+ type CredentialExistAsInserterInput = z.infer<typeof CredentialExistAsInserterInputSchema>;
339
+ declare const CredentialExistAsInserterOutputSchema: z.ZodObject<{
340
+ credential_exist: z.ZodBoolean;
341
+ }>;
342
+ type CredentialExistAsInserterOutput = z.infer<typeof CredentialExistAsInserterOutputSchema>;
343
+ declare function credentialExistAsInserter(kwilClient: KwilActionClient, params: CredentialExistAsInserterInput): Promise<CredentialExistAsInserterOutput>;
344
+ declare const GetCredentialOwnedInputSchema: z.ZodObject<{
345
+ id: z.ZodUUID;
346
+ }>;
347
+ type GetCredentialOwnedInput = z.infer<typeof GetCredentialOwnedInputSchema>;
348
+ declare const GetCredentialOwnedOutputSchema: z.ZodObject<{
349
+ id: z.ZodUUID;
350
+ user_id: z.ZodUUID;
351
+ public_notes: z.ZodString;
352
+ content: z.ZodString;
353
+ encryptor_public_key: z.ZodString;
354
+ issuer_auth_public_key: z.ZodString;
355
+ inserter: z.ZodNullable<z.ZodString>;
356
+ }>;
357
+ type GetCredentialOwnedOutput = z.infer<typeof GetCredentialOwnedOutputSchema>;
358
+ declare function getCredentialOwned(kwilClient: KwilActionClient, params: GetCredentialOwnedInput): Promise<GetCredentialOwnedOutput[]>;
359
+ declare const GetCredentialSharedInputSchema: z.ZodObject<{
360
+ id: z.ZodUUID;
361
+ }>;
362
+ type GetCredentialSharedInput = z.infer<typeof GetCredentialSharedInputSchema>;
363
+ declare const GetCredentialSharedOutputSchema: z.ZodObject<{
364
+ id: z.ZodUUID;
365
+ user_id: z.ZodUUID;
366
+ public_notes: z.ZodString;
367
+ content: z.ZodString;
368
+ encryptor_public_key: z.ZodString;
369
+ issuer_auth_public_key: z.ZodString;
370
+ inserter: z.ZodNullable<z.ZodString>;
371
+ }>;
372
+ type GetCredentialSharedOutput = z.infer<typeof GetCredentialSharedOutputSchema>;
373
+ /** As a credential copy doesn't contain PUBLIC notes, we return respective original credential PUBLIC notes */
374
+ declare function getCredentialShared(kwilClient: KwilActionClient, params: GetCredentialSharedInput): Promise<GetCredentialSharedOutput[]>;
375
+ declare const GetSiblingCredentialIdInputSchema: z.ZodObject<{
376
+ content_hash: z.ZodString;
377
+ }>;
378
+ type GetSiblingCredentialIdInput = z.infer<typeof GetSiblingCredentialIdInputSchema>;
379
+ declare const GetSiblingCredentialIdOutputSchema: z.ZodObject<{
380
+ id: z.ZodUUID;
381
+ }>;
382
+ type GetSiblingCredentialIdOutput = z.infer<typeof GetSiblingCredentialIdOutputSchema>;
383
+ declare function getSiblingCredentialId(kwilClient: KwilActionClient, params: GetSiblingCredentialIdInput): Promise<GetSiblingCredentialIdOutput>;
384
+ declare const AddAttributeAsInserterInputSchema: z.ZodObject<{
385
+ id: z.ZodUUID;
386
+ user_id: z.ZodUUID;
387
+ attribute_key: z.ZodString;
388
+ value: z.ZodString;
389
+ }>;
390
+ type AddAttributeAsInserterInput = z.infer<typeof AddAttributeAsInserterInputSchema>;
391
+ /** ATTRIBUTE ACTIONS */
392
+ declare function addAttributeAsInserter(kwilClient: KwilActionClient, params: AddAttributeAsInserterInput): Promise<void>;
393
+ declare const AddAttributeInputSchema: z.ZodObject<{
394
+ id: z.ZodUUID;
395
+ attribute_key: z.ZodString;
396
+ value: z.ZodString;
397
+ }>;
398
+ type AddAttributeInput = z.infer<typeof AddAttributeInputSchema>;
399
+ declare function addAttribute(kwilClient: KwilActionClient, params: AddAttributeInput): Promise<void>;
400
+ declare const GetAttributesOutputSchema: z.ZodObject<{
401
+ id: z.ZodUUID;
402
+ user_id: z.ZodUUID;
403
+ attribute_key: z.ZodString;
404
+ value: z.ZodString;
405
+ original_id: z.ZodUUID;
406
+ }>;
407
+ type GetAttributesOutput = z.infer<typeof GetAttributesOutputSchema>;
408
+ declare function getAttributes(kwilClient: KwilActionClient): Promise<GetAttributesOutput[]>;
409
+ declare const EditAttributeInputSchema: z.ZodObject<{
410
+ id: z.ZodUUID;
411
+ attribute_key: z.ZodString;
412
+ value: z.ZodString;
413
+ }>;
414
+ type EditAttributeInput = z.infer<typeof EditAttributeInputSchema>;
415
+ declare function editAttribute(kwilClient: KwilActionClient, params: EditAttributeInput): Promise<void>;
416
+ declare const RemoveAttributeInputSchema: z.ZodObject<{
417
+ id: z.ZodUUID;
418
+ }>;
419
+ type RemoveAttributeInput = z.infer<typeof RemoveAttributeInputSchema>;
420
+ declare function removeAttribute(kwilClient: KwilActionClient, params: RemoveAttributeInput): Promise<void>;
421
+ declare const ShareAttributeInputSchema: z.ZodObject<{
422
+ id: z.ZodUUID;
423
+ original_attribute_id: z.ZodUUID;
424
+ attribute_key: z.ZodString;
425
+ value: z.ZodString;
426
+ }>;
427
+ type ShareAttributeInput = z.infer<typeof ShareAttributeInputSchema>;
428
+ declare function shareAttribute(kwilClient: KwilActionClient, params: ShareAttributeInput): Promise<void>;
429
+ declare const DwgMessageInputSchema: z.ZodObject<{
430
+ owner_wallet_identifier: z.ZodString;
431
+ grantee_wallet_identifier: z.ZodString;
432
+ issuer_public_key: z.ZodString;
433
+ id: z.ZodUUID;
434
+ access_grant_timelock: z.ZodString;
435
+ not_usable_before: z.ZodString;
436
+ not_usable_after: z.ZodString;
437
+ }>;
438
+ type DwgMessageInput = z.infer<typeof DwgMessageInputSchema>;
439
+ declare const DwgMessageOutputSchema: z.ZodObject<{
440
+ message: z.ZodString;
441
+ }>;
442
+ type DwgMessageOutput = z.infer<typeof DwgMessageOutputSchema>;
443
+ /**
444
+ * WRITE GRANTS ACTIONS
445
+ * Must be in yyyy-mm-ddThh:mm:ssZ format
446
+ * Must be in yyyy-mm-ddThh:mm:ssZ format
447
+ * Must be in yyyy-mm-ddThh:mm:ssZ format
448
+ * Will fail if not in the yyyy-mm-ddThh:mm:ssZ format, and not comply to RFC3339
449
+ * Check the format and precedence
450
+ */
451
+ declare function dwgMessage(kwilClient: KwilActionClient, params: DwgMessageInput): Promise<DwgMessageOutput>;
452
+ declare const RevokeAccessGrantInputSchema: z.ZodObject<{
453
+ id: z.ZodUUID;
454
+ }>;
455
+ type RevokeAccessGrantInput = z.infer<typeof RevokeAccessGrantInputSchema>;
456
+ /** ACCESS GRANTS ACTIONS */
457
+ declare function revokeAccessGrant(kwilClient: KwilActionClient, params: RevokeAccessGrantInput): Promise<void>;
458
+ declare const GetAccessGrantsOwnedOutputSchema: z.ZodObject<{
459
+ id: z.ZodUUID;
460
+ ag_owner_user_id: z.ZodUUID;
461
+ ag_grantee_wallet_identifier: z.ZodString;
462
+ data_id: z.ZodUUID;
463
+ locked_until: z.ZodNumber;
464
+ content_hash: z.ZodNullable<z.ZodString>;
465
+ inserter_type: z.ZodString;
466
+ inserter_id: z.ZodString;
467
+ }>;
468
+ type GetAccessGrantsOwnedOutput = z.infer<typeof GetAccessGrantsOwnedOutputSchema>;
469
+ declare function getAccessGrantsOwned(kwilClient: KwilActionClient): Promise<GetAccessGrantsOwnedOutput[]>;
470
+ declare const GetAccessGrantsGrantedInputSchema: z.ZodObject<{
471
+ user_id: z.ZodNullable<z.ZodUUID>;
472
+ page: z.ZodNumber;
473
+ size: z.ZodNumber;
474
+ }>;
475
+ type GetAccessGrantsGrantedInput = z.infer<typeof GetAccessGrantsGrantedInputSchema>;
476
+ declare const GetAccessGrantsGrantedOutputSchema: z.ZodObject<{
477
+ id: z.ZodUUID;
478
+ ag_owner_user_id: z.ZodUUID;
479
+ ag_grantee_wallet_identifier: z.ZodString;
480
+ data_id: z.ZodUUID;
481
+ locked_until: z.ZodNumber;
482
+ content_hash: z.ZodNullable<z.ZodString>;
483
+ inserter_type: z.ZodString;
484
+ inserter_id: z.ZodString;
485
+ }>;
486
+ type GetAccessGrantsGrantedOutput = z.infer<typeof GetAccessGrantsGrantedOutputSchema>;
487
+ /**
488
+ * As arguments can be undefined (user can not send them at all), we have to have default values: page=1, size=20
489
+ * Page number starts from 1, as UI usually shows to user in pagination element
490
+ * Ordering is consistent because we use height as first ordering parameter
491
+ */
492
+ declare function getAccessGrantsGranted(kwilClient: KwilActionClient, params: GetAccessGrantsGrantedInput): Promise<GetAccessGrantsGrantedOutput[]>;
493
+ declare const GetAccessGrantsGrantedCountInputSchema: z.ZodObject<{
494
+ user_id: z.ZodNullable<z.ZodUUID>;
495
+ }>;
496
+ type GetAccessGrantsGrantedCountInput = z.infer<typeof GetAccessGrantsGrantedCountInputSchema>;
497
+ declare const GetAccessGrantsGrantedCountOutputSchema: z.ZodObject<{
498
+ count: z.ZodNumber;
499
+ }>;
500
+ type GetAccessGrantsGrantedCountOutput = z.infer<typeof GetAccessGrantsGrantedCountOutputSchema>;
501
+ declare function getAccessGrantsGrantedCount(kwilClient: KwilActionClient, params: GetAccessGrantsGrantedCountInput): Promise<GetAccessGrantsGrantedCountOutput>;
502
+ declare const HasLockedAccessGrantsInputSchema: z.ZodObject<{
503
+ id: z.ZodUUID;
504
+ }>;
505
+ type HasLockedAccessGrantsInput = z.infer<typeof HasLockedAccessGrantsInputSchema>;
506
+ declare const HasLockedAccessGrantsOutputSchema: z.ZodObject<{
507
+ has: z.ZodBoolean;
508
+ }>;
509
+ type HasLockedAccessGrantsOutput = z.infer<typeof HasLockedAccessGrantsOutputSchema>;
510
+ declare function hasLockedAccessGrants(kwilClient: KwilActionClient, params: HasLockedAccessGrantsInput): Promise<HasLockedAccessGrantsOutput>;
511
+ declare const DagMessageInputSchema: z.ZodObject<{
512
+ dag_owner_wallet_identifier: z.ZodString;
513
+ dag_grantee_wallet_identifier: z.ZodString;
514
+ dag_data_id: z.ZodUUID;
515
+ dag_locked_until: z.ZodNumber;
516
+ dag_content_hash: z.ZodString;
517
+ }>;
518
+ type DagMessageInput = z.infer<typeof DagMessageInputSchema>;
519
+ declare const DagMessageOutputSchema: z.ZodObject<{
520
+ message: z.ZodString;
521
+ }>;
522
+ type DagMessageOutput = z.infer<typeof DagMessageOutputSchema>;
523
+ declare function dagMessage(kwilClient: KwilActionClient, params: DagMessageInput): Promise<DagMessageOutput>;
524
+ declare const CreateAgByDagForCopyInputSchema: z.ZodObject<{
525
+ dag_owner_wallet_identifier: z.ZodString;
526
+ dag_grantee_wallet_identifier: z.ZodString;
527
+ dag_data_id: z.ZodUUID;
528
+ dag_locked_until: z.ZodNumber;
529
+ dag_content_hash: z.ZodString;
530
+ dag_signature: z.ZodString;
531
+ }>;
532
+ type CreateAgByDagForCopyInput = z.infer<typeof CreateAgByDagForCopyInputSchema>;
533
+ /**
534
+ * Get the wallet type and public key for XRPL/NEAR wallets from database
535
+ * This works for EVM-compatible signatures only
536
+ */
537
+ declare function createAgByDagForCopy(kwilClient: KwilActionClient, params: CreateAgByDagForCopyInput): Promise<void>;
538
+ declare const GetAccessGrantsForCredentialInputSchema: z.ZodObject<{
539
+ credential_id: z.ZodUUID;
540
+ }>;
541
+ type GetAccessGrantsForCredentialInput = z.infer<typeof GetAccessGrantsForCredentialInputSchema>;
542
+ declare const GetAccessGrantsForCredentialOutputSchema: z.ZodObject<{
543
+ id: z.ZodUUID;
544
+ ag_owner_user_id: z.ZodUUID;
545
+ ag_grantee_wallet_identifier: z.ZodString;
546
+ data_id: z.ZodUUID;
547
+ locked_until: z.ZodNumber;
548
+ content_hash: z.ZodNullable<z.ZodString>;
549
+ inserter_type: z.ZodString;
550
+ inserter_id: z.ZodString;
551
+ }>;
552
+ type GetAccessGrantsForCredentialOutput = z.infer<typeof GetAccessGrantsForCredentialOutputSchema>;
553
+ declare function getAccessGrantsForCredential(kwilClient: KwilActionClient, params: GetAccessGrantsForCredentialInput): Promise<GetAccessGrantsForCredentialOutput[]>;
554
+ declare const HasProfileInputSchema: z.ZodObject<{
555
+ address: z.ZodString;
556
+ }>;
557
+ type HasProfileInput = z.infer<typeof HasProfileInputSchema>;
558
+ declare const HasProfileOutputSchema: z.ZodObject<{
559
+ has_profile: z.ZodBoolean;
560
+ }>;
561
+ type HasProfileOutput = z.infer<typeof HasProfileOutputSchema>;
562
+ /**
563
+ * OTHER ACTIONS
564
+ * Should we improve it to work with near wallets too?
565
+ */
566
+ declare function hasProfile(kwilClient: KwilActionClient, params: HasProfileInput): Promise<HasProfileOutput>;
567
+ declare const CheckBalanceInputSchema: z.ZodObject<{
568
+ address: z.ZodString;
569
+ token: z.ZodString;
570
+ }>;
571
+ type CheckBalanceInput = z.infer<typeof CheckBalanceInputSchema>;
572
+ declare const CheckBalanceOutputSchema: z.ZodObject<{
573
+ balance: z.ZodNumber;
574
+ }>;
575
+ type CheckBalanceOutput = z.infer<typeof CheckBalanceOutputSchema>;
576
+ /** GAS AND FEES */
577
+ declare function checkBalance(kwilClient: KwilActionClient, params: CheckBalanceInput): Promise<CheckBalanceOutput>;
578
+ declare const GetWalletWithBalanceInputSchema: z.ZodObject<{
579
+ token: z.ZodString;
580
+ }>;
581
+ type GetWalletWithBalanceInput = z.infer<typeof GetWalletWithBalanceInputSchema>;
582
+ declare const GetWalletWithBalanceOutputSchema: z.ZodObject<{
583
+ wallet_address: z.ZodString;
584
+ }>;
585
+ type GetWalletWithBalanceOutput = z.infer<typeof GetWalletWithBalanceOutputSchema>;
586
+ /**
587
+ * even if the @caller is not EVM address, there is no harm to try to get the balance, it will return nothing
588
+ * because bridge.balance can only have records with EVM addresses (it is filled from EVM-compatible contract events)
589
+ */
590
+ declare function getWalletWithBalance(kwilClient: KwilActionClient, params: GetWalletWithBalanceInput): Promise<GetWalletWithBalanceOutput>;
591
+ declare const RequestWithdrawalInputSchema: z.ZodObject<{
592
+ token: z.ZodString;
593
+ }>;
594
+ type RequestWithdrawalInput = z.infer<typeof RequestWithdrawalInputSchema>;
595
+ /** we use lock_admin()+issue() because bridge() is tied to @caller */
596
+ declare function requestWithdrawal(kwilClient: KwilActionClient, params: RequestWithdrawalInput): Promise<void>;
597
+ declare const GetAllowanceOutputSchema: z.ZodObject<{
598
+ gas_allowance: z.ZodNumber;
599
+ }>;
600
+ type GetAllowanceOutput = z.infer<typeof GetAllowanceOutputSchema>;
601
+ /** FaceSign should not be able to call this */
602
+ declare function getAllowance(kwilClient: KwilActionClient): Promise<GetAllowanceOutput>;
603
+ declare function actionCostingGas(kwilClient: KwilActionClient): Promise<void>;
604
+ declare const ActionCostingIdosTokenInputSchema: z.ZodObject<{
605
+ amount: z.ZodNumber;
606
+ }>;
607
+ type ActionCostingIdosTokenInput = z.infer<typeof ActionCostingIdosTokenInputSchema>;
608
+ declare function actionCostingIdosToken(kwilClient: KwilActionClient, params: ActionCostingIdosTokenInput): Promise<void>;
609
+ declare const GetIssuerFeeInputSchema: z.ZodObject<{
610
+ credential_id: z.ZodUUID;
611
+ }>;
612
+ type GetIssuerFeeInput = z.infer<typeof GetIssuerFeeInputSchema>;
613
+ declare const GetIssuerFeeOutputSchema: z.ZodObject<{
614
+ issuer_fee: z.ZodNumber;
615
+ }>;
616
+ type GetIssuerFeeOutput = z.infer<typeof GetIssuerFeeOutputSchema>;
617
+ declare function getIssuerFee(kwilClient: KwilActionClient, params: GetIssuerFeeInput): Promise<GetIssuerFeeOutput>;
618
+ declare const ActionCostingFeeInputSchema: z.ZodObject<{
619
+ credential_id: z.ZodUUID;
620
+ }>;
621
+ type ActionCostingFeeInput = z.infer<typeof ActionCostingFeeInputSchema>;
622
+ declare function actionCostingFee(kwilClient: KwilActionClient, params: ActionCostingFeeInput): Promise<void>;
623
+ declare const RequestBalanceWithdrawalInputSchema: z.ZodObject<{
624
+ token: z.ZodString;
625
+ evm_address_to: z.ZodString;
626
+ }>;
627
+ type RequestBalanceWithdrawalInput = z.infer<typeof RequestBalanceWithdrawalInputSchema>;
628
+ declare function requestBalanceWithdrawal(kwilClient: KwilActionClient, params: RequestBalanceWithdrawalInput): Promise<void>;
629
+ //#endregion
630
+ //#region src/actions/index.d.ts
631
+ type idOSUser = AddUserAsInserterInput;
632
+ type idOSGrant = GetAccessGrantsGrantedOutput;
633
+ type idOSCredential = GetCredentialSharedOutput;
634
+ type idOSCredentialListItem = GetCredentialsOutput;
635
+ type idOSUserAttribute = GetAttributesOutput;
636
+ type idOSWallet = UpsertWalletAsInserterInput;
637
+ type idOSDelegatedWriteGrant = DwgMessageInput;
638
+ declare function addWallets(kwilClient: KwilActionClient, wallets: AddWalletInput[]): Promise<void>;
639
+ declare function removeWallets(kwilClient: KwilActionClient, ids: string[]): Promise<void>;
640
+ declare const GET_GRANTS_DEFAULT_RECORDS_PER_PAGE = 10;
641
+ declare function getGrants(kwilClient: KwilActionClient, params?: Partial<GetAccessGrantsGrantedInput>): Promise<idOSGrant[]>;
642
+ //#endregion
643
+ export { DwgMessageInputSchema as $, checkBalance as $n, KwilActionClient as $r, GetUserAsInserterOutputSchema as $t, AddWalletInputSchema as A, ShareAttributeInput as An, removeCredential as Ar, GetCredentialOwnedOutput as At, CredentialExistAsInserterInputSchema as B, WALLET_TYPES as Bn, upsertWalletAsInserter as Br, GetCredentialsSharedByUserOutput as Bt, AddDelegateAsOwnerInput as C, RequestBalanceWithdrawalInputSchema as Cn, getUser as Cr, GetAccessGrantsOwnedOutputSchema as Ct, AddUserAsInserterInput as D, RescindSharedCredentialInputSchema as Dn, hasLockedAccessGrants as Dr, GetAttributesOutputSchema as Dt, AddInserterAsOwnerInputSchema as E, RescindSharedCredentialInput as En, getWallets as Er, GetAttributesOutput as Et, CreateAgByDagForCopyInput as F, UpdateUserPubKeyAsInserterInputSchema as Fn, revokeAccessGrant as Fr, GetCredentialSharedOutputSchema as Ft, DagMessageOutput as G, actionSchema as Gn, CustomKwilSigner as Gr, GetIssuerFeeOutputSchema as Gt, CredentialExistAsInserterOutputSchema as H, actionCostingFee as Hn, getNearFullAccessPublicKeys as Hr, GetIssuerFeeInput as Ht, CreateAgByDagForCopyInputSchema as I, UpsertCredentialAsInserterInput as In, shareAttribute as Ir, GetCredentialsOutput as It, DeleteDelegateAsOwnerInput as J, addCredential as Jn, SignerAddress as Jr, GetSiblingCredentialIdOutput as Jt, DagMessageOutputSchema as K, addAttribute as Kn, KwilSigner$1 as Kr, GetSiblingCredentialIdInput as Kt, CreateCredentialsByDwgInput as L, UpsertCredentialAsInserterInputSchema as Ln, shareCredential as Lr, GetCredentialsOutputSchema as Lt, CheckBalanceInputSchema as M, ShareCredentialInput as Mn, requestBalanceWithdrawal as Mr, GetCredentialSharedInput as Mt, CheckBalanceOutput as N, ShareCredentialInputSchema as Nn, requestWithdrawal as Nr, GetCredentialSharedInputSchema as Nt, AddUserAsInserterInputSchema as O, RevokeAccessGrantInput as On, hasProfile as Or, GetCredentialOwnedInput as Ot, CheckBalanceOutputSchema as P, UpdateUserPubKeyAsInserterInput as Pn, rescindSharedCredential as Pr, GetCredentialSharedOutput as Pt, DwgMessageInput as Q, addWallet as Qn, createServerKwilSigner as Qr, GetUserAsInserterOutput as Qt, CreateCredentialsByDwgInputSchema as R, UpsertWalletAsInserterInput as Rn, updateUserPubKeyAsInserter as Rr, GetCredentialsSharedByUserInput as Rt, AddCredentialInputSchema as S, RequestBalanceWithdrawalInput as Sn, getSiblingCredentialId as Sr, GetAccessGrantsOwnedOutput as St, AddInserterAsOwnerInput as T, RequestWithdrawalInputSchema as Tn, getWalletWithBalance as Tr, GetAllowanceOutputSchema as Tt, DagMessageInput as U, actionCostingGas as Un, implicitAddressFromPublicKey as Ur, GetIssuerFeeInputSchema as Ut, CredentialExistAsInserterOutput as V, WalletType as Vn, walletTypeSchema as Vr, GetCredentialsSharedByUserOutputSchema as Vt, DagMessageInputSchema as W, actionCostingIdosToken as Wn, signNearMessage as Wr, GetIssuerFeeOutput as Wt, DeleteInserterAsOwnerInput as X, addInserterAsOwner as Xn, Wallet$2 as Xr, GetUserAsInserterInput as Xt, DeleteDelegateAsOwnerInputSchema as Y, addDelegateAsOwner as Yn, SignerPublicKey as Yr, GetSiblingCredentialIdOutputSchema as Yt, DeleteInserterAsOwnerInputSchema as Z, addUserAsInserter as Zn, createClientKwilSigner as Zr, GetUserAsInserterInputSchema as Zt, AddAttributeAsInserterInput as _, RemoveAttributeInputSchema as _n, getCredentialOwned as _r, GetAccessGrantsGrantedCountOutputSchema as _t, idOSCredentialListItem as a, GetWalletWithBalanceOutputSchema as an, deleteInserterAsOwner as ar, EditCredentialInput as at, AddAttributeInputSchema as b, RemoveWalletInput as bn, getCredentialsSharedByUser as br, GetAccessGrantsGrantedOutput as bt, idOSUser as c, HasLockedAccessGrantsInput as cn, editCredential as cr, EditPublicNotesAsIssuerInputSchema as ct, removeWallets as d, HasLockedAccessGrantsOutputSchema as dn, getAccessGrantsForCredential as dr, GetAccessGrantsForCredentialInputSchema as dt, createNodeKwilClient as ei, GetUserOutput as en, createAgByDagForCopy as er, DwgMessageOutput as et, ActionCostingFeeInput as f, HasProfileInput as fn, getAccessGrantsGranted as fr, GetAccessGrantsForCredentialOutput as ft, ActionSchemaElement as g, RemoveAttributeInput as gn, getAttributes as gr, GetAccessGrantsGrantedCountOutput as gt, ActionCostingIdosTokenInputSchema as h, HasProfileOutputSchema as hn, getAllowance as hr, GetAccessGrantsGrantedCountInputSchema as ht, idOSCredential as i, GetWalletWithBalanceOutput as in, deleteDelegateAsOwner as ir, EditAttributeInputSchema as it, CheckBalanceInput as j, ShareAttributeInputSchema as jn, removeWallet as jr, GetCredentialOwnedOutputSchema as jt, AddWalletInput as k, RevokeAccessGrantInputSchema as kn, removeAttribute as kr, GetCredentialOwnedInputSchema as kt, idOSUserAttribute as l, HasLockedAccessGrantsInputSchema as ln, editPublicNotesAsIssuer as lr, EncryptionPasswordStore as lt, ActionCostingIdosTokenInput as m, HasProfileOutput as mn, getAccessGrantsOwned as mr, GetAccessGrantsGrantedCountInput as mt, addWallets as n, GetWalletWithBalanceInput as nn, credentialExistAsInserter as nr, ENCRYPTION_PASSWORD_STORES as nt, idOSDelegatedWriteGrant as o, GetWalletsOutput as on, dwgMessage as or, EditCredentialInputSchema as ot, ActionCostingFeeInputSchema as p, HasProfileInputSchema as pn, getAccessGrantsGrantedCount as pr, GetAccessGrantsForCredentialOutputSchema as pt, DataType as q, addAttributeAsInserter as qn, KwilSignerType as qr, GetSiblingCredentialIdInputSchema as qt, getGrants as r, GetWalletWithBalanceInputSchema as rn, dagMessage as rr, EditAttributeInput as rt, idOSGrant as s, GetWalletsOutputSchema as sn, editAttribute as sr, EditPublicNotesAsIssuerInput as st, GET_GRANTS_DEFAULT_RECORDS_PER_PAGE as t, createWebKwilClient as ti, GetUserOutputSchema as tn, createCredentialsByDwg as tr, DwgMessageOutputSchema as tt, idOSWallet as u, HasLockedAccessGrantsOutput as un, encryptionPasswordStoreSchema as ur, GetAccessGrantsForCredentialInput as ut, AddAttributeAsInserterInputSchema as v, RemoveCredentialInput as vn, getCredentialShared as vr, GetAccessGrantsGrantedInput as vt, AddDelegateAsOwnerInputSchema as w, RequestWithdrawalInput as wn, getUserAsInserter as wr, GetAllowanceOutput as wt, AddCredentialInput as x, RemoveWalletInputSchema as xn, getIssuerFee as xr, GetAccessGrantsGrantedOutputSchema as xt, AddAttributeInput as y, RemoveCredentialInputSchema as yn, getCredentials as yr, GetAccessGrantsGrantedInputSchema as yt, CredentialExistAsInserterInput as z, UpsertWalletAsInserterInputSchema as zn, upsertCredentialAsInserter as zr, GetCredentialsSharedByUserInputSchema as zt };
644
+ //# sourceMappingURL=index-Ci6QhKJo.d.mts.map