@idos-network/kwil-infra 1.5.0 → 2.2.2

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 (54) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/README.md +46 -1
  3. package/dist/actions/index.d.mts +2 -2
  4. package/dist/actions/index.mjs +1 -1370
  5. package/dist/actions/index.mjs.map +1 -1
  6. package/dist/facesign/index.d.mts +1 -1
  7. package/dist/facesign/index.mjs +1 -2
  8. package/dist/{facesign-signer-BC24j1eN.d.mts → facesign-signer-5I8juA7p.d.mts} +2 -1
  9. package/dist/facesign-signer-5I8juA7p.d.mts.map +1 -0
  10. package/dist/facesign-signer-z5T312uQ.mjs +2 -0
  11. package/dist/facesign-signer-z5T312uQ.mjs.map +1 -0
  12. package/dist/{index-iqkJfgWf.d.mts → index-Bqz6trCk.d.mts} +223 -136
  13. package/dist/index-Bqz6trCk.d.mts.map +1 -0
  14. package/dist/index.d.mts +2 -2
  15. package/dist/index.mjs +1 -429
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/signature-verification/index.d.mts +3 -4
  18. package/dist/signature-verification/index.d.mts.map +1 -1
  19. package/dist/signature-verification/index.mjs +1 -134
  20. package/dist/signature-verification/index.mjs.map +1 -1
  21. package/dist/xrp/utils.d.mts +130 -20
  22. package/dist/xrp/utils.d.mts.map +1 -1
  23. package/dist/xrp/utils.mjs +1 -104
  24. package/dist/xrp/utils.mjs.map +1 -1
  25. package/dist/xrpl-credentials/index.d.mts +6 -7
  26. package/dist/xrpl-credentials/index.d.mts.map +1 -1
  27. package/dist/xrpl-credentials/index.mjs +1 -223
  28. package/dist/xrpl-credentials/index.mjs.map +1 -1
  29. package/package.json +9 -8
  30. package/src/actions/actions.test.ts +189 -0
  31. package/src/actions/actions.ts +368 -467
  32. package/src/actions/index.ts +38 -0
  33. package/src/create-kgw-authenticated-fetch.test.ts +377 -0
  34. package/src/create-kgw-authenticated-fetch.ts +321 -0
  35. package/src/create-kwil-client.ts +33 -10
  36. package/src/create-kwil-signer.test.ts +80 -0
  37. package/src/create-kwil-signer.ts +31 -5
  38. package/src/facesign/facesign-signer.test.ts +77 -0
  39. package/src/facesign/facesign-signer.ts +50 -2
  40. package/src/index.ts +2 -0
  41. package/src/mm-token/create-mm-token-kwil-signer.test.ts +148 -0
  42. package/src/mm-token/create-mm-token-kwil-signer.ts +166 -0
  43. package/src/near/create-near-wallet-kwil-signer.ts +1 -1
  44. package/src/signature-verification/index.test.ts +18 -0
  45. package/src/signature-verification/index.ts +7 -1
  46. package/src/wait-for-kwil-tx.test.ts +92 -0
  47. package/src/wait-for-kwil-tx.ts +111 -0
  48. package/src/xrp/signer.ts +2 -1
  49. package/src/xrp/utils.ts +7 -25
  50. package/tsdown.config.ts +1 -0
  51. package/dist/facesign-signer-BC24j1eN.d.mts.map +0 -1
  52. package/dist/facesign-signer-qzCcwunk.mjs +0 -244
  53. package/dist/facesign-signer-qzCcwunk.mjs.map +0 -1
  54. package/dist/index-iqkJfgWf.d.mts.map +0 -1
@@ -1,13 +1,32 @@
1
- import { n as FaceSignSignerProvider } from "./facesign-signer-BC24j1eN.mjs";
1
+ import { n as FaceSignSignerProvider } from "./facesign-signer-5I8juA7p.mjs";
2
2
  import { KwilSigner, KwilSigner as KwilSigner$1, NodeKwil, Utils, WebKwil } from "@idos-network/kwil-js";
3
3
  import * as z from "zod";
4
+ import { BlobGateway, BlobGatewayParams } from "@idos-network/utils/blob-gateway";
4
5
  import nacl from "tweetnacl";
5
6
  import { Store } from "@idos-network/utils/store";
6
7
  import { Wallet } from "@near-wallet-selector/core";
7
8
  import { Keypair } from "@stellar/stellar-sdk";
8
9
  import { JsonRpcSigner, Wallet as Wallet$1 } from "ethers";
9
10
  import { KeyPair } from "near-api-js";
10
- import { KeyPair as KeyPair$1 } from "ripple-keypairs/src/types.ts";
11
+ import { KeyPair as KeyPair$1 } from "ripple-keypairs/src/types";
12
+ //#region src/wait-for-kwil-tx.d.ts
13
+ declare class KwilTxFailedError extends Error {
14
+ readonly txHash: string;
15
+ readonly code: number;
16
+ readonly log: string;
17
+ readonly height: number;
18
+ readonly name = "KwilTxFailedError";
19
+ constructor(txHash: string, code: number, log: string, height: number);
20
+ }
21
+ declare class KwilTxPollTimeoutError extends Error {
22
+ readonly txHash: string;
23
+ readonly deadlineMs: number;
24
+ readonly name = "KwilTxPollTimeoutError";
25
+ constructor(txHash: string, deadlineMs: number, options?: {
26
+ cause?: unknown;
27
+ });
28
+ }
29
+ //#endregion
11
30
  //#region src/create-kwil-client.d.ts
12
31
  type CreateKwilClientParams = {
13
32
  chainId?: string;
@@ -39,8 +58,19 @@ declare class KwilActionClient {
39
58
  call<T = unknown>(params: KwilCallActionRequestParams, signer?: KwilSigner | undefined): Promise<T>;
40
59
  /**
41
60
  * Executes an action on the kwil nodes. This similar to `POST` like request.
61
+ *
62
+ * When `synchronous` is true (default), the tx is broadcast without blocking the node,
63
+ * then confirmed by polling `txInfo` with exponential backoff.
42
64
  */
43
- execute(params: KwilExecuteActionRequestParams, signer?: KwilSigner | undefined, synchronous?: boolean): Promise<string | undefined>;
65
+ execute(params: KwilExecuteActionRequestParams, signer?: KwilSigner | undefined, synchronous?: boolean): Promise<string>;
66
+ /**
67
+ * Polls the node until a broadcast transaction is mined, or throws
68
+ * `KwilTxFailedError` / `KwilTxPollTimeoutError`.
69
+ *
70
+ * Called through `this` rather than directly so that it is a seam an
71
+ * instrumentation can wrap — the wait dominates the latency of `execute`.
72
+ */
73
+ waitForTx(txHash: string): Promise<void>;
44
74
  setSigner(signer: KwilSigner | undefined): void;
45
75
  }
46
76
  /**
@@ -52,8 +82,71 @@ declare const createNodeKwilClient: (params: CreateKwilClientParams) => Promise<
52
82
  */
53
83
  declare const createWebKwilClient: (params: CreateKwilClientParams) => Promise<KwilActionClient>;
54
84
  //#endregion
85
+ //#region src/mm-token/create-mm-token-kwil-signer.d.ts
86
+ /** Decoded UKYC capability envelope. KGW signature data is base64url(JSON of this). */
87
+ interface MmTokenEnvelope {
88
+ payload: MmTokenPayload | Record<string, unknown>;
89
+ signature: string;
90
+ }
91
+ interface MmTokenPayload {
92
+ signing_public_key: string;
93
+ storage_id?: string;
94
+ [key: string]: unknown;
95
+ }
96
+ /**
97
+ * One MM/UKYC capability, valid both as a KGW `mm_token` signer and as the
98
+ * `Authorization: AccessToken …` credential for UKYC blob requests.
99
+ */
100
+ type MmTokenAuth = KwilSigner & {
101
+ readonly mmTokenPayload: MmTokenPayload | Record<string, unknown>;
102
+ /** Exact encoded envelope KGW and UKYC storage verify. Non-enumerable, so it stays out of logs. */
103
+ readonly accessToken: string;
104
+ /**
105
+ * A capability signs its own envelope, never an arbitrary message. Declared so callers
106
+ * handling a `Wallet` union can keep asking wallets for a message signature.
107
+ */
108
+ readonly signMessage?: undefined;
109
+ };
110
+ declare function isMmTokenAuth(value: unknown): value is MmTokenAuth;
111
+ /** `storage_id` from the capability token used to construct this signer. */
112
+ declare function mmTokenStorageId(signer: KwilSigner): string;
113
+ declare function mmTokenCredentialContentUri(signer: KwilSigner, credentialId: string): string;
114
+ /**
115
+ * Build the MM authentication object for one UKYC capability.
116
+ *
117
+ * Pass the MetaMask-issued capability token as a **base64url-encoded** envelope string
118
+ * (what KGW verifies). A decoded `{ payload, signature }` object is also accepted and
119
+ * will be re-encoded.
120
+ *
121
+ * `signMessage` always returns the UTF-8 bytes of that encoded string — KGW ignores the
122
+ * request message and only verifies the envelope.
123
+ */
124
+ declare function createMmTokenAuth(encodedEnvelope: string | MmTokenEnvelope): MmTokenAuth;
125
+ //#endregion
126
+ //#region src/create-kgw-authenticated-fetch.d.ts
127
+ /** Return true when the response means KGW auth is missing/expired.
128
+ * May read the body only for `application/json` responses (those are probed via a clone). */
129
+ type KgwAuthFailurePredicate = (response: Response) => Promise<boolean> | boolean;
130
+ type CreateKgwAuthenticatedFetchParams = {
131
+ kwilClient: KwilActionClient;
132
+ signer: KwilSigner;
133
+ fetchFn?: typeof fetch;
134
+ isAuthFailure?: KgwAuthFailurePredicate;
135
+ };
136
+ type CreateKgwAuthenticatedBlobGatewayParams = CreateKgwAuthenticatedFetchParams & {
137
+ url: string;
138
+ maxFetchBytes?: BlobGatewayParams["maxFetchBytes"];
139
+ /**
140
+ * UKYC storage authority for blob requests. Defaults to `signer` when that signer
141
+ * is itself an MM authentication object, so the capability is never passed twice.
142
+ */
143
+ mmAuth?: MmTokenAuth;
144
+ };
145
+ declare function createKgwAuthenticatedBlobGateway({ url, maxFetchBytes, mmAuth, ...fetchParams }: CreateKgwAuthenticatedBlobGatewayParams): BlobGateway;
146
+ declare function createKgwAuthenticatedFetch({ kwilClient, signer, fetchFn, isAuthFailure }: CreateKgwAuthenticatedFetchParams): typeof fetch;
147
+ //#endregion
55
148
  //#region src/create-kwil-signer.d.ts
56
- type Wallet$2 = Wallet$1 | JsonRpcSigner | Wallet | CustomKwilSigner | FaceSignSignerProvider;
149
+ type Wallet$2 = Wallet$1 | JsonRpcSigner | Wallet | CustomKwilSigner | MmTokenAuth | FaceSignSignerProvider;
57
150
  interface CustomKwilSigner extends KwilSigner {
58
151
  publicAddress: string;
59
152
  signatureType: string;
@@ -61,7 +154,7 @@ interface CustomKwilSigner extends KwilSigner {
61
154
  walletType: string;
62
155
  signMessage: (message: Uint8Array | string) => Promise<Uint8Array>;
63
156
  }
64
- type KwilSignerType = KeyPair | Wallet$1 | nacl.SignKeyPair | JsonRpcSigner | Keypair | KeyPair$1;
157
+ type KwilSignerType = KeyPair | Wallet$1 | nacl.SignKeyPair | JsonRpcSigner | Keypair | KeyPair$1 | MmTokenAuth;
65
158
  type SignerAddress = string;
66
159
  type SignerPublicKey = string | undefined;
67
160
  /**
@@ -80,10 +173,10 @@ declare function signNearMessage(wallet: Wallet, message: string, recipient?: st
80
173
  //#endregion
81
174
  //#region src/actions/actions.d.ts
82
175
  declare const DataType: typeof Utils.DataType;
83
- declare const WALLET_TYPES: readonly ["EVM", "NEAR", "XRPL", "Stellar", "FaceSign"];
176
+ declare const WALLET_TYPES: readonly ["EVM", "NEAR", "XRPL", "Stellar", "FaceSign", "MM"];
84
177
  type WalletType = (typeof WALLET_TYPES)[number];
85
178
  declare const walletTypeSchema: z.ZodType<WalletType>;
86
- declare const ENCRYPTION_PASSWORD_STORES: readonly ["user", "mpc"];
179
+ declare const ENCRYPTION_PASSWORD_STORES: readonly ["user", "mpc", "mm"];
87
180
  type EncryptionPasswordStore = (typeof ENCRYPTION_PASSWORD_STORES)[number];
88
181
  declare const encryptionPasswordStoreSchema: z.ZodType<EncryptionPasswordStore>;
89
182
  type ActionSchemaElement = {
@@ -91,29 +184,6 @@ type ActionSchemaElement = {
91
184
  type: typeof DataType.Uuid | typeof DataType.Text | typeof DataType.Int | typeof DataType.Boolean;
92
185
  };
93
186
  declare const actionSchema: Record<string, ActionSchemaElement[]>;
94
- declare const AddInserterAsOwnerInputSchema: z.ZodObject<{
95
- id: z.ZodUUID;
96
- name: z.ZodString;
97
- }>;
98
- type AddInserterAsOwnerInput = z.infer<typeof AddInserterAsOwnerInputSchema>;
99
- /** INSERTER AND DELEGATE ACTIONS */
100
- declare function addInserterAsOwner(kwilClient: KwilActionClient, params: AddInserterAsOwnerInput): Promise<void>;
101
- declare const DeleteInserterAsOwnerInputSchema: z.ZodObject<{
102
- id: z.ZodUUID;
103
- }>;
104
- type DeleteInserterAsOwnerInput = z.infer<typeof DeleteInserterAsOwnerInputSchema>;
105
- declare function deleteInserterAsOwner(kwilClient: KwilActionClient, params: DeleteInserterAsOwnerInput): Promise<void>;
106
- declare const AddDelegateAsOwnerInputSchema: z.ZodObject<{
107
- address: z.ZodString;
108
- inserter_id: z.ZodUUID;
109
- }>;
110
- type AddDelegateAsOwnerInput = z.infer<typeof AddDelegateAsOwnerInputSchema>;
111
- declare function addDelegateAsOwner(kwilClient: KwilActionClient, params: AddDelegateAsOwnerInput): Promise<void>;
112
- declare const DeleteDelegateAsOwnerInputSchema: z.ZodObject<{
113
- address: z.ZodString;
114
- }>;
115
- type DeleteDelegateAsOwnerInput = z.infer<typeof DeleteDelegateAsOwnerInputSchema>;
116
- declare function deleteDelegateAsOwner(kwilClient: KwilActionClient, params: DeleteDelegateAsOwnerInput): Promise<void>;
117
187
  declare const AddUserAsInserterInputSchema: z.ZodObject<{
118
188
  id: z.ZodUUID;
119
189
  recipient_encryption_public_key: z.ZodString;
@@ -152,20 +222,35 @@ declare const UpsertWalletAsInserterInputSchema: z.ZodObject<{
152
222
  id: z.ZodUUID;
153
223
  user_id: z.ZodUUID;
154
224
  address: z.ZodString;
155
- public_key: z.ZodNullable<z.ZodString>;
225
+ public_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
226
  wallet_type: z.ZodType<WalletType>;
157
- message: z.ZodString;
227
+ not_before: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
228
+ not_after: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
158
229
  signature: z.ZodString;
159
230
  }>;
160
231
  type UpsertWalletAsInserterInput = z.infer<typeof UpsertWalletAsInserterInputSchema>;
161
232
  /** WALLET ACTIONS */
162
233
  declare function upsertWalletAsInserter(kwilClient: KwilActionClient, params: UpsertWalletAsInserterInput): Promise<void>;
234
+ declare const AddWalletMessageInputSchema: z.ZodObject<{
235
+ address: z.ZodString;
236
+ wallet_type: z.ZodType<WalletType>;
237
+ user_id: z.ZodUUID;
238
+ not_before: z.ZodISODateTime;
239
+ not_after: z.ZodISODateTime;
240
+ }>;
241
+ type AddWalletMessageInput = z.infer<typeof AddWalletMessageInputSchema>;
242
+ declare const AddWalletMessageOutputSchema: z.ZodObject<{
243
+ message: z.ZodString;
244
+ }>;
245
+ type AddWalletMessageOutput = z.infer<typeof AddWalletMessageOutputSchema>;
246
+ declare function addWalletMessage(kwilClient: KwilActionClient, params: AddWalletMessageInput): Promise<AddWalletMessageOutput>;
163
247
  declare const AddWalletInputSchema: z.ZodObject<{
164
248
  id: z.ZodUUID;
165
249
  address: z.ZodString;
166
- public_key: z.ZodNullable<z.ZodString>;
250
+ public_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
167
251
  wallet_type: z.ZodType<WalletType>;
168
- message: z.ZodString;
252
+ not_before: z.ZodISODateTime;
253
+ not_after: z.ZodISODateTime;
169
254
  signature: z.ZodString;
170
255
  }>;
171
256
  type AddWalletInput = z.infer<typeof AddWalletInputSchema>;
@@ -187,46 +272,37 @@ declare const RemoveWalletInputSchema: z.ZodObject<{
187
272
  }>;
188
273
  type RemoveWalletInput = z.infer<typeof RemoveWalletInputSchema>;
189
274
  declare function removeWallet(kwilClient: KwilActionClient, params: RemoveWalletInput): Promise<void>;
190
- declare const UpsertCredentialAsInserterInputSchema: z.ZodObject<{
191
- id: z.ZodUUID;
192
- user_id: z.ZodUUID;
193
- issuer_auth_public_key: z.ZodString;
194
- encryptor_public_key: z.ZodString;
195
- content: z.ZodString;
196
- public_notes: z.ZodString;
197
- public_notes_signature: z.ZodString;
198
- broader_signature: z.ZodString;
199
- }>;
200
- type UpsertCredentialAsInserterInput = z.infer<typeof UpsertCredentialAsInserterInputSchema>;
201
- /**
202
- * CREDENTIAL ACTIONS
203
- * throw an error if not authorized
204
- */
205
- declare function upsertCredentialAsInserter(kwilClient: KwilActionClient, params: UpsertCredentialAsInserterInput): Promise<void>;
206
- declare const AddCredentialInputSchema: z.ZodObject<{
207
- id: z.ZodUUID;
275
+ declare const CreatePreliminaryCredentialInputSchema: z.ZodObject<{
276
+ request_id: z.ZodUUID;
277
+ credential_id: z.ZodUUID;
208
278
  issuer_auth_public_key: z.ZodString;
209
279
  encryptor_public_key: z.ZodString;
210
- content: z.ZodString;
280
+ content_uri: z.ZodString;
281
+ content_size: z.ZodNumber;
282
+ content_hash: z.ZodString;
211
283
  public_notes: z.ZodString;
212
284
  public_notes_signature: z.ZodString;
213
285
  broader_signature: z.ZodString;
214
286
  }>;
215
- type AddCredentialInput = z.infer<typeof AddCredentialInputSchema>;
216
- declare function addCredential(kwilClient: KwilActionClient, params: AddCredentialInput): Promise<void>;
287
+ type CreatePreliminaryCredentialInput = z.infer<typeof CreatePreliminaryCredentialInputSchema>;
288
+ /** CREDENTIAL ACTIONS */
289
+ declare function createPreliminaryCredential(kwilClient: KwilActionClient, params: CreatePreliminaryCredentialInput): Promise<void>;
217
290
  declare const GetCredentialsOutputSchema: z.ZodObject<{
218
291
  id: z.ZodUUID;
219
292
  user_id: z.ZodUUID;
220
293
  public_notes: z.ZodString;
294
+ content_uri: z.ZodNullable<z.ZodString>;
295
+ content_size: z.ZodNullable<z.ZodNumber>;
221
296
  issuer_auth_public_key: z.ZodString;
222
- inserter: z.ZodNullable<z.ZodString>;
297
+ inserter_type: z.ZodNullable<z.ZodString>;
298
+ inserter_id: z.ZodNullable<z.ZodString>;
223
299
  original_id: z.ZodNullable<z.ZodUUID>;
224
300
  }>;
225
301
  type GetCredentialsOutput = z.infer<typeof GetCredentialsOutputSchema>;
226
302
  declare function getCredentials(kwilClient: KwilActionClient): Promise<GetCredentialsOutput[]>;
227
303
  declare const GetCredentialsSharedByUserInputSchema: z.ZodObject<{
228
304
  user_id: z.ZodUUID;
229
- original_issuer_auth_public_key: z.ZodNullable<z.ZodString>;
305
+ original_issuer_auth_public_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
306
  }>;
231
307
  type GetCredentialsSharedByUserInput = z.infer<typeof GetCredentialsSharedByUserInputSchema>;
232
308
  declare const GetCredentialsSharedByUserOutputSchema: z.ZodObject<{
@@ -235,27 +311,12 @@ declare const GetCredentialsSharedByUserOutputSchema: z.ZodObject<{
235
311
  public_notes: z.ZodString;
236
312
  encryptor_public_key: z.ZodString;
237
313
  issuer_auth_public_key: z.ZodString;
238
- inserter: z.ZodNullable<z.ZodString>;
314
+ inserter_type: z.ZodNullable<z.ZodString>;
315
+ inserter_id: z.ZodNullable<z.ZodString>;
239
316
  original_id: z.ZodNullable<z.ZodUUID>;
240
317
  }>;
241
318
  type GetCredentialsSharedByUserOutput = z.infer<typeof GetCredentialsSharedByUserOutputSchema>;
242
319
  declare function getCredentialsSharedByUser(kwilClient: KwilActionClient, params: GetCredentialsSharedByUserInput): Promise<GetCredentialsSharedByUserOutput[]>;
243
- declare const EditCredentialInputSchema: z.ZodObject<{
244
- id: z.ZodUUID;
245
- public_notes: z.ZodString;
246
- public_notes_signature: z.ZodString;
247
- broader_signature: z.ZodString;
248
- content: z.ZodString;
249
- encryptor_public_key: z.ZodString;
250
- issuer_auth_public_key: z.ZodString;
251
- }>;
252
- type EditCredentialInput = z.infer<typeof EditCredentialInputSchema>;
253
- /**
254
- * we forbid to edit a copy
255
- * only copies can have AGs, so data_id in AGs is id of a copy
256
- * if $id is shared_credentials.copy_id - it is a copy
257
- */
258
- declare function editCredential(kwilClient: KwilActionClient, params: EditCredentialInput): Promise<void>;
259
320
  declare const EditPublicNotesAsIssuerInputSchema: z.ZodObject<{
260
321
  public_notes_id: z.ZodString;
261
322
  public_notes: z.ZodString;
@@ -271,38 +332,53 @@ declare const RemoveCredentialInputSchema: z.ZodObject<{
271
332
  id: z.ZodUUID;
272
333
  }>;
273
334
  type RemoveCredentialInput = z.infer<typeof RemoveCredentialInputSchema>;
335
+ /**
336
+ * Already requested: succeed so the client can retry the blob DELETE.
337
+ * A second insert is impossible (credential_id is the primary key).
338
+ * Legacy inline credentials (no blob): delete immediately.
339
+ * Blob-backed: record intent; credential stays live until gateway finalizes.
340
+ */
274
341
  declare function removeCredential(kwilClient: KwilActionClient, params: RemoveCredentialInput): Promise<void>;
275
342
  declare const RescindSharedCredentialInputSchema: z.ZodObject<{
276
343
  credential_id: z.ZodUUID;
277
344
  }>;
278
345
  type RescindSharedCredentialInput = z.infer<typeof RescindSharedCredentialInputSchema>;
346
+ /**
347
+ * Already requested: succeed so the client can retry the blob DELETE.
348
+ * Legacy inline credentials (no blob): delete immediately.
349
+ */
279
350
  declare function rescindSharedCredential(kwilClient: KwilActionClient, params: RescindSharedCredentialInput): Promise<void>;
280
- declare const ShareCredentialInputSchema: z.ZodObject<{
281
- id: z.ZodUUID;
282
- original_credential_id: z.ZodUUID;
351
+ declare const SharePreliminaryCredentialInputSchema: z.ZodObject<{
352
+ request_id: z.ZodUUID;
353
+ copy_id: z.ZodUUID;
354
+ original_id: z.ZodUUID;
283
355
  public_notes: z.ZodString;
284
356
  public_notes_signature: z.ZodString;
285
357
  broader_signature: z.ZodString;
286
- content: z.ZodString;
358
+ content_uri: z.ZodString;
359
+ content_size: z.ZodNumber;
287
360
  content_hash: z.ZodString;
288
361
  encryptor_public_key: z.ZodString;
289
362
  issuer_auth_public_key: z.ZodString;
290
363
  grantee_wallet_identifier: z.ZodString;
291
364
  locked_until: z.ZodNumber;
292
365
  }>;
293
- type ShareCredentialInput = z.infer<typeof ShareCredentialInputSchema>;
294
- declare function shareCredential(kwilClient: KwilActionClient, params: ShareCredentialInput): Promise<void>;
295
- declare const CreateCredentialsByDwgInputSchema: z.ZodObject<{
366
+ type SharePreliminaryCredentialInput = z.infer<typeof SharePreliminaryCredentialInputSchema>;
367
+ declare function sharePreliminaryCredential(kwilClient: KwilActionClient, params: SharePreliminaryCredentialInput): Promise<void>;
368
+ declare const CreatePreliminaryCredentialsByDwgInputSchema: z.ZodObject<{
369
+ request_id: z.ZodUUID;
296
370
  issuer_auth_public_key: z.ZodString;
297
371
  original_encryptor_public_key: z.ZodString;
298
- original_credential_id: z.ZodUUID;
299
- original_content: z.ZodString;
372
+ original_id: z.ZodUUID;
373
+ original_content_uri: z.ZodString;
374
+ original_content_size: z.ZodNumber;
300
375
  original_public_notes: z.ZodString;
301
376
  original_public_notes_signature: z.ZodString;
302
377
  original_broader_signature: z.ZodString;
303
378
  copy_encryptor_public_key: z.ZodString;
304
- copy_credential_id: z.ZodUUID;
305
- copy_content: z.ZodString;
379
+ copy_id: z.ZodUUID;
380
+ copy_content_uri: z.ZodString;
381
+ copy_content_size: z.ZodNumber;
306
382
  copy_public_notes_signature: z.ZodString;
307
383
  copy_broader_signature: z.ZodString;
308
384
  content_hash: z.ZodString;
@@ -310,16 +386,25 @@ declare const CreateCredentialsByDwgInputSchema: z.ZodObject<{
310
386
  dwg_grantee: z.ZodString;
311
387
  dwg_issuer_public_key: z.ZodString;
312
388
  dwg_id: z.ZodUUID;
313
- dwg_access_grant_timelock: z.ZodString;
314
- dwg_not_before: z.ZodString;
315
- dwg_not_after: z.ZodString;
389
+ dwg_access_grant_timelock: z.ZodISODateTime;
390
+ dwg_not_before: z.ZodISODateTime;
391
+ dwg_not_after: z.ZodISODateTime;
316
392
  dwg_signature: z.ZodString;
317
393
  }>;
318
- type CreateCredentialsByDwgInput = z.infer<typeof CreateCredentialsByDwgInputSchema>;
394
+ type CreatePreliminaryCredentialsByDwgInput = z.infer<typeof CreatePreliminaryCredentialsByDwgInputSchema>;
319
395
  /**
320
396
  * Delegated write credential actions
321
397
  * For access grant
322
- * Check the content creator (encryptor) of credentials is the issuer that user delegated to issue the credentials
398
+ * We will use the same ids for preliminary credentials as for credentials, so we need to check if they already exist
399
+ * We capture gas upfront to prevent the real credential from being created if the gas is not enough
400
+ * The gas can be refunded fully or partially
401
+ * Temporary: an issuer is not an inserter/caller. A user grants a DWG to an issuer_key;
402
+ * the issuer must issue the credential and sign the proof with that same issuer_key.
403
+ * Today we approximate "same issuer" via delegates sharing an inserter_id.
404
+ * TODO: once the SDK distinguishes issuer_key from delegate_key, replace with:
405
+ * if $issuer_auth_public_key != $dwg_issuer_public_key {
406
+ * error('credentials issuer must be an issuer of delegated write grant');
407
+ * }
323
408
  * Get the wallet type and public key for XRPL/NEAR wallets from database
324
409
  * Will fail if not in the RFC3339 format
325
410
  * Check the format and precedence
@@ -327,10 +412,8 @@ type CreateCredentialsByDwgInput = z.infer<typeof CreateCredentialsByDwgInputSch
327
412
  * @block_timestamp is a timestamp of previous block, which is can be a few seconds earlier
328
413
  * (max is 6 seconds in current network consensus settings) then a time on a requester's machine.
329
414
  * Also, if requester's machine has wrong time, it can be an issue.
330
- * Insert original credential
331
- * Insert copy credential
332
415
  */
333
- declare function createCredentialsByDwg(kwilClient: KwilActionClient, params: CreateCredentialsByDwgInput): Promise<void>;
416
+ declare function createPreliminaryCredentialsByDwg(kwilClient: KwilActionClient, params: CreatePreliminaryCredentialsByDwgInput): Promise<void>;
334
417
  declare const CredentialExistAsInserterInputSchema: z.ZodObject<{
335
418
  id: z.ZodUUID;
336
419
  }>;
@@ -348,10 +431,13 @@ declare const GetCredentialOwnedOutputSchema: z.ZodObject<{
348
431
  id: z.ZodUUID;
349
432
  user_id: z.ZodUUID;
350
433
  public_notes: z.ZodString;
351
- content: z.ZodString;
434
+ content: z.ZodNullable<z.ZodString>;
435
+ content_uri: z.ZodNullable<z.ZodString>;
436
+ content_size: z.ZodNullable<z.ZodNumber>;
352
437
  encryptor_public_key: z.ZodString;
353
438
  issuer_auth_public_key: z.ZodString;
354
- inserter: z.ZodNullable<z.ZodString>;
439
+ inserter_type: z.ZodNullable<z.ZodString>;
440
+ inserter_id: z.ZodNullable<z.ZodString>;
355
441
  }>;
356
442
  type GetCredentialOwnedOutput = z.infer<typeof GetCredentialOwnedOutputSchema>;
357
443
  declare function getCredentialOwned(kwilClient: KwilActionClient, params: GetCredentialOwnedInput): Promise<GetCredentialOwnedOutput[]>;
@@ -363,10 +449,13 @@ declare const GetCredentialSharedOutputSchema: z.ZodObject<{
363
449
  id: z.ZodUUID;
364
450
  user_id: z.ZodUUID;
365
451
  public_notes: z.ZodString;
366
- content: z.ZodString;
452
+ content: z.ZodNullable<z.ZodString>;
453
+ content_uri: z.ZodNullable<z.ZodString>;
454
+ content_size: z.ZodNullable<z.ZodNumber>;
367
455
  encryptor_public_key: z.ZodString;
368
456
  issuer_auth_public_key: z.ZodString;
369
- inserter: z.ZodNullable<z.ZodString>;
457
+ inserter_type: z.ZodNullable<z.ZodString>;
458
+ inserter_id: z.ZodNullable<z.ZodString>;
370
459
  }>;
371
460
  type GetCredentialSharedOutput = z.infer<typeof GetCredentialSharedOutputSchema>;
372
461
  /** As a credential copy doesn't contain PUBLIC notes, we return respective original credential PUBLIC notes */
@@ -430,9 +519,9 @@ declare const DwgMessageInputSchema: z.ZodObject<{
430
519
  grantee_wallet_identifier: z.ZodString;
431
520
  issuer_public_key: z.ZodString;
432
521
  id: z.ZodUUID;
433
- access_grant_timelock: z.ZodString;
434
- not_usable_before: z.ZodString;
435
- not_usable_after: z.ZodString;
522
+ access_grant_timelock: z.ZodISODateTime;
523
+ not_usable_before: z.ZodISODateTime;
524
+ not_usable_after: z.ZodISODateTime;
436
525
  }>;
437
526
  type DwgMessageInput = z.infer<typeof DwgMessageInputSchema>;
438
527
  declare const DwgMessageOutputSchema: z.ZodObject<{
@@ -467,7 +556,7 @@ declare const GetAccessGrantsOwnedOutputSchema: z.ZodObject<{
467
556
  type GetAccessGrantsOwnedOutput = z.infer<typeof GetAccessGrantsOwnedOutputSchema>;
468
557
  declare function getAccessGrantsOwned(kwilClient: KwilActionClient): Promise<GetAccessGrantsOwnedOutput[]>;
469
558
  declare const GetAccessGrantsGrantedInputSchema: z.ZodObject<{
470
- user_id: z.ZodNullable<z.ZodUUID>;
559
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
471
560
  page: z.ZodNumber;
472
561
  size: z.ZodNumber;
473
562
  }>;
@@ -490,7 +579,7 @@ type GetAccessGrantsGrantedOutput = z.infer<typeof GetAccessGrantsGrantedOutputS
490
579
  */
491
580
  declare function getAccessGrantsGranted(kwilClient: KwilActionClient, params: GetAccessGrantsGrantedInput): Promise<GetAccessGrantsGrantedOutput[]>;
492
581
  declare const GetAccessGrantsGrantedCountInputSchema: z.ZodObject<{
493
- user_id: z.ZodNullable<z.ZodUUID>;
582
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
494
583
  }>;
495
584
  type GetAccessGrantsGrantedCountInput = z.infer<typeof GetAccessGrantsGrantedCountInputSchema>;
496
585
  declare const GetAccessGrantsGrantedCountOutputSchema: z.ZodObject<{
@@ -507,33 +596,6 @@ declare const HasLockedAccessGrantsOutputSchema: z.ZodObject<{
507
596
  }>;
508
597
  type HasLockedAccessGrantsOutput = z.infer<typeof HasLockedAccessGrantsOutputSchema>;
509
598
  declare function hasLockedAccessGrants(kwilClient: KwilActionClient, params: HasLockedAccessGrantsInput): Promise<HasLockedAccessGrantsOutput>;
510
- declare const DagMessageInputSchema: z.ZodObject<{
511
- dag_owner_wallet_identifier: z.ZodString;
512
- dag_grantee_wallet_identifier: z.ZodString;
513
- dag_data_id: z.ZodUUID;
514
- dag_locked_until: z.ZodNumber;
515
- dag_content_hash: z.ZodString;
516
- }>;
517
- type DagMessageInput = z.infer<typeof DagMessageInputSchema>;
518
- declare const DagMessageOutputSchema: z.ZodObject<{
519
- message: z.ZodString;
520
- }>;
521
- type DagMessageOutput = z.infer<typeof DagMessageOutputSchema>;
522
- declare function dagMessage(kwilClient: KwilActionClient, params: DagMessageInput): Promise<DagMessageOutput>;
523
- declare const CreateAgByDagForCopyInputSchema: z.ZodObject<{
524
- dag_owner_wallet_identifier: z.ZodString;
525
- dag_grantee_wallet_identifier: z.ZodString;
526
- dag_data_id: z.ZodUUID;
527
- dag_locked_until: z.ZodNumber;
528
- dag_content_hash: z.ZodString;
529
- dag_signature: z.ZodString;
530
- }>;
531
- type CreateAgByDagForCopyInput = z.infer<typeof CreateAgByDagForCopyInputSchema>;
532
- /**
533
- * Get the wallet type and public key for XRPL/NEAR wallets from database
534
- * This works for EVM-compatible signatures only
535
- */
536
- declare function createAgByDagForCopy(kwilClient: KwilActionClient, params: CreateAgByDagForCopyInput): Promise<void>;
537
599
  declare const GetAccessGrantsForCredentialInputSchema: z.ZodObject<{
538
600
  credential_id: z.ZodUUID;
539
601
  }>;
@@ -563,6 +625,25 @@ type HasProfileOutput = z.infer<typeof HasProfileOutputSchema>;
563
625
  * Should we improve it to work with near wallets too?
564
626
  */
565
627
  declare function hasProfile(kwilClient: KwilActionClient, params: HasProfileInput): Promise<HasProfileOutput>;
628
+ declare const SetCallerPayerInputSchema: z.ZodObject<{
629
+ address: z.ZodString;
630
+ }>;
631
+ type SetCallerPayerInput = z.infer<typeof SetCallerPayerInputSchema>;
632
+ declare function setCallerPayer(kwilClient: KwilActionClient, params: SetCallerPayerInput): Promise<void>;
633
+ declare const CheckCallerPayerInputSchema: z.ZodObject<{
634
+ address: z.ZodString;
635
+ }>;
636
+ type CheckCallerPayerInput = z.infer<typeof CheckCallerPayerInputSchema>;
637
+ declare const CheckCallerPayerOutputSchema: z.ZodObject<{
638
+ is_payer: z.ZodBoolean;
639
+ }>;
640
+ type CheckCallerPayerOutput = z.infer<typeof CheckCallerPayerOutputSchema>;
641
+ declare function checkCallerPayer(kwilClient: KwilActionClient, params: CheckCallerPayerInput): Promise<CheckCallerPayerOutput>;
642
+ declare const UnsetCallerPayerInputSchema: z.ZodObject<{
643
+ address: z.ZodString;
644
+ }>;
645
+ type UnsetCallerPayerInput = z.infer<typeof UnsetCallerPayerInputSchema>;
646
+ declare function unsetCallerPayer(kwilClient: KwilActionClient, params: UnsetCallerPayerInput): Promise<void>;
566
647
  declare const CheckBalanceInputSchema: z.ZodObject<{
567
648
  address: z.ZodString;
568
649
  token: z.ZodString;
@@ -572,20 +653,16 @@ declare const CheckBalanceOutputSchema: z.ZodObject<{
572
653
  balance: z.ZodNumber;
573
654
  }>;
574
655
  type CheckBalanceOutput = z.infer<typeof CheckBalanceOutputSchema>;
575
- /** GAS AND FEES */
576
656
  declare function checkBalance(kwilClient: KwilActionClient, params: CheckBalanceInput): Promise<CheckBalanceOutput>;
577
657
  declare const GetWalletWithBalanceInputSchema: z.ZodObject<{
578
658
  token: z.ZodString;
659
+ minimum_balance: z.ZodNumber;
579
660
  }>;
580
661
  type GetWalletWithBalanceInput = z.infer<typeof GetWalletWithBalanceInputSchema>;
581
662
  declare const GetWalletWithBalanceOutputSchema: z.ZodObject<{
582
663
  wallet_address: z.ZodString;
583
664
  }>;
584
665
  type GetWalletWithBalanceOutput = z.infer<typeof GetWalletWithBalanceOutputSchema>;
585
- /**
586
- * even if the @caller is not EVM address, there is no harm to try to get the balance, it will return nothing
587
- * because bridge.balance can only have records with EVM addresses (it is filled from EVM-compatible contract events)
588
- */
589
666
  declare function getWalletWithBalance(kwilClient: KwilActionClient, params: GetWalletWithBalanceInput): Promise<GetWalletWithBalanceOutput>;
590
667
  declare const RequestWithdrawalInputSchema: z.ZodObject<{
591
668
  token: z.ZodString;
@@ -634,10 +711,20 @@ type idOSCredentialListItem = GetCredentialsOutput;
634
711
  type idOSUserAttribute = GetAttributesOutput;
635
712
  type idOSWallet = UpsertWalletAsInserterInput;
636
713
  type idOSDelegatedWriteGrant = DwgMessageInput;
714
+ type DelegatedWriteGrantBaseParams = {
715
+ id: string;
716
+ ownerWalletIdentifier: string;
717
+ consumerWalletIdentifier: string;
718
+ issuerPublicKey: string;
719
+ accessGrantTimelock: string;
720
+ notUsableBefore: string;
721
+ notUsableAfter: string;
722
+ };
723
+ declare function toDelegatedWriteGrantBaseParams(params: idOSDelegatedWriteGrant): DelegatedWriteGrantBaseParams;
637
724
  declare function addWallets(kwilClient: KwilActionClient, wallets: AddWalletInput[]): Promise<void>;
638
725
  declare function removeWallets(kwilClient: KwilActionClient, ids: string[]): Promise<void>;
639
726
  declare const GET_GRANTS_DEFAULT_RECORDS_PER_PAGE = 10;
640
727
  declare function getGrants(kwilClient: KwilActionClient, params?: Partial<GetAccessGrantsGrantedInput>): Promise<idOSGrant[]>;
641
728
  //#endregion
642
- 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 };
643
- //# sourceMappingURL=index-iqkJfgWf.d.mts.map
729
+ export { EditAttributeInput as $, editAttribute as $n, createMmTokenAuth as $r, GetWalletWithBalanceOutputSchema as $t, AddWalletMessageOutputSchema as A, UnsetCallerPayerInput as An, unsetCallerPayer as Ar, GetCredentialsOutput as At, CreatePreliminaryCredentialInputSchema as B, actionCostingIdosToken as Bn, SignerAddress as Br, GetSiblingCredentialIdInput as Bt, AddUserAsInserterInput as C, RevokeAccessGrantInputSchema as Cn, requestBalanceWithdrawal as Cr, GetCredentialOwnedInputSchema as Ct, AddWalletMessageInput as D, ShareAttributeInputSchema as Dn, setCallerPayer as Dr, GetCredentialSharedInputSchema as Dt, AddWalletInputSchema as E, ShareAttributeInput as En, revokeAccessGrant as Er, GetCredentialSharedInput as Et, CheckCallerPayerInput as F, UpsertWalletAsInserterInputSchema as Fn, implicitAddressFromPublicKey as Fr, GetCredentialsSharedByUserOutputSchema as Ft, CredentialExistAsInserterOutput as G, addWallet as Gn, CreateKgwAuthenticatedBlobGatewayParams as Gr, GetUserAsInserterInputSchema as Gt, CreatePreliminaryCredentialsByDwgInputSchema as H, addAttribute as Hn, Wallet$2 as Hr, GetSiblingCredentialIdOutput as Ht, CheckCallerPayerInputSchema as I, WALLET_TYPES as In, signNearMessage as Ir, GetIssuerFeeInput as It, DwgMessageInput as J, checkCallerPayer as Jn, createKgwAuthenticatedBlobGateway as Jr, GetUserOutput as Jt, CredentialExistAsInserterOutputSchema as K, addWalletMessage as Kn, CreateKgwAuthenticatedFetchParams as Kr, GetUserAsInserterOutput as Kt, CheckCallerPayerOutput as L, WalletType as Ln, CustomKwilSigner as Lr, GetIssuerFeeInputSchema as Lt, CheckBalanceInputSchema as M, UpdateUserPubKeyAsInserterInput as Mn, upsertWalletAsInserter as Mr, GetCredentialsSharedByUserInput as Mt, CheckBalanceOutput as N, UpdateUserPubKeyAsInserterInputSchema as Nn, walletTypeSchema as Nr, GetCredentialsSharedByUserInputSchema as Nt, AddWalletMessageInputSchema as O, SharePreliminaryCredentialInput as On, shareAttribute as Or, GetCredentialSharedOutput as Ot, CheckBalanceOutputSchema as P, UpsertWalletAsInserterInput as Pn, getNearFullAccessPublicKeys as Pr, GetCredentialsSharedByUserOutput as Pt, ENCRYPTION_PASSWORD_STORES as Q, dwgMessage as Qn, MmTokenPayload as Qr, GetWalletWithBalanceOutput as Qt, CheckCallerPayerOutputSchema as R, actionCostingFee as Rn, KwilSigner$1 as Rr, GetIssuerFeeOutput as Rt, AddAttributeInputSchema as S, RevokeAccessGrantInput as Sn, removeWallet as Sr, GetCredentialOwnedInput as St, AddWalletInput as T, SetCallerPayerInputSchema as Tn, rescindSharedCredential as Tr, GetCredentialOwnedOutputSchema as Tt, CredentialExistAsInserterInput as U, addAttributeAsInserter as Un, createClientKwilSigner as Ur, GetSiblingCredentialIdOutputSchema as Ut, CreatePreliminaryCredentialsByDwgInput as V, actionSchema as Vn, SignerPublicKey as Vr, GetSiblingCredentialIdInputSchema as Vt, CredentialExistAsInserterInputSchema as W, addUserAsInserter as Wn, createServerKwilSigner as Wr, GetUserAsInserterInput as Wt, DwgMessageOutput as X, createPreliminaryCredentialsByDwg as Xn, MmTokenAuth as Xr, GetWalletWithBalanceInput as Xt, DwgMessageInputSchema as Y, createPreliminaryCredential as Yn, createKgwAuthenticatedFetch as Yr, GetUserOutputSchema as Yt, DwgMessageOutputSchema as Z, credentialExistAsInserter as Zn, MmTokenEnvelope as Zr, GetWalletWithBalanceInputSchema as Zt, ActionCostingIdosTokenInputSchema as _, RequestBalanceWithdrawalInputSchema as _n, getWallets as _r, GetAccessGrantsOwnedOutputSchema as _t, idOSCredential as a, createWebKwilClient as ai, HasLockedAccessGrantsOutputSchema as an, getAccessGrantsOwned as ar, GetAccessGrantsForCredentialInputSchema as at, AddAttributeAsInserterInputSchema as b, RescindSharedCredentialInput as bn, removeAttribute as br, GetAttributesOutput as bt, idOSGrant as c, HasProfileOutput as cn, getCredentialOwned as cr, GetAccessGrantsGrantedCountInput as ct, idOSWallet as d, RemoveAttributeInputSchema as dn, getCredentialsSharedByUser as dr, GetAccessGrantsGrantedCountOutputSchema as dt, isMmTokenAuth as ei, GetWalletsOutput as en, editPublicNotesAsIssuer as er, EditAttributeInputSchema as et, removeWallets as f, RemoveCredentialInput as fn, getIssuerFee as fr, GetAccessGrantsGrantedInput as ft, ActionCostingIdosTokenInput as g, RequestBalanceWithdrawalInput as gn, getWalletWithBalance as gr, GetAccessGrantsOwnedOutput as gt, ActionCostingFeeInputSchema as h, RemoveWalletInputSchema as hn, getUserAsInserter as hr, GetAccessGrantsGrantedOutputSchema as ht, getGrants as i, createNodeKwilClient as ii, HasLockedAccessGrantsOutput as in, getAccessGrantsGrantedCount as ir, GetAccessGrantsForCredentialInput as it, CheckBalanceInput as j, UnsetCallerPayerInputSchema as jn, updateUserPubKeyAsInserter as jr, GetCredentialsOutputSchema as jt, AddWalletMessageOutput as k, SharePreliminaryCredentialInputSchema as kn, sharePreliminaryCredential as kr, GetCredentialSharedOutputSchema as kt, idOSUser as l, HasProfileOutputSchema as ln, getCredentialShared as lr, GetAccessGrantsGrantedCountInputSchema as lt, ActionCostingFeeInput as m, RemoveWalletInput as mn, getUser as mr, GetAccessGrantsGrantedOutput as mt, GET_GRANTS_DEFAULT_RECORDS_PER_PAGE as n, mmTokenStorageId as ni, HasLockedAccessGrantsInput as nn, getAccessGrantsForCredential as nr, EditPublicNotesAsIssuerInputSchema as nt, idOSCredentialListItem as o, KwilTxFailedError as oi, HasProfileInput as on, getAllowance as or, GetAccessGrantsForCredentialOutput as ot, toDelegatedWriteGrantBaseParams as p, RemoveCredentialInputSchema as pn, getSiblingCredentialId as pr, GetAccessGrantsGrantedInputSchema as pt, DataType as q, checkBalance as qn, KgwAuthFailurePredicate as qr, GetUserAsInserterOutputSchema as qt, addWallets as r, KwilActionClient as ri, HasLockedAccessGrantsInputSchema as rn, getAccessGrantsGranted as rr, EncryptionPasswordStore as rt, idOSDelegatedWriteGrant as s, KwilTxPollTimeoutError as si, HasProfileInputSchema as sn, getAttributes as sr, GetAccessGrantsForCredentialOutputSchema as st, DelegatedWriteGrantBaseParams as t, mmTokenCredentialContentUri as ti, GetWalletsOutputSchema as tn, encryptionPasswordStoreSchema as tr, EditPublicNotesAsIssuerInput as tt, idOSUserAttribute as u, RemoveAttributeInput as un, getCredentials as ur, GetAccessGrantsGrantedCountOutput as ut, ActionSchemaElement as v, RequestWithdrawalInput as vn, hasLockedAccessGrants as vr, GetAllowanceOutput as vt, AddUserAsInserterInputSchema as w, SetCallerPayerInput as wn, requestWithdrawal as wr, GetCredentialOwnedOutput as wt, AddAttributeInput as x, RescindSharedCredentialInputSchema as xn, removeCredential as xr, GetAttributesOutputSchema as xt, AddAttributeAsInserterInput as y, RequestWithdrawalInputSchema as yn, hasProfile as yr, GetAllowanceOutputSchema as yt, CreatePreliminaryCredentialInput as z, actionCostingGas as zn, KwilSignerType as zr, GetIssuerFeeOutputSchema as zt };
730
+ //# sourceMappingURL=index-Bqz6trCk.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-Bqz6trCk.d.mts","names":[],"sources":["../src/wait-for-kwil-tx.ts","../src/create-kwil-client.ts","../src/mm-token/create-mm-token-kwil-signer.ts","../src/create-kgw-authenticated-fetch.ts","../src/create-kwil-signer.ts","../src/near/create-near-wallet-kwil-signer.ts","../src/actions/actions.ts","../src/actions/index.ts"],"mappings":";;;;;;;;;;;;cAca,0BAA0B;WAInC;WACA;WACA;WACA;WANO;EAET,YACE,gBACA,cACA,aACA;;cAMS,+BAA+B;WAIxC;WACA;WAJO;EAET,YACE,gBACA,oBACA;IAAY;;;;;KCnBX;EACH;EACA;;KAGG,qBAAqB;KACrB,mBAAmB;KAEnB,uBACF,QAAQ;EACP,MAAM;EAEN,QAAQ,OAAO,YAAY;;KAI1B,8BAA8B,kBAAkB;KAEhD,0BACF,QAAQ,aAAa,kBAAkB;EAAU;;KAG/C,iCAAiC,qBAAqB;;;;;cAM9C;;EACX,SAAS;WACA,QAAQ,WAAW;EAE5B,YAAY,QAAQ,WAAW;;;;EAyB/B,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AAW;KACX,YAAY;KACZ,iBAAiB;KACjB,yBAAyB;KACzB,oBAAoB;KACpB,aAAa;KACb,0BAA0B;KAE1B;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;iBAGc,gCACd,QAAQ,0BACP;iBA0BmB,WACpB,YAAY,kBACZ,SAAS,mBACR;iBAImB,cAAc,YAAY,kBAAkB,gBAAgB;cAIrE;iBAES,UACpB,YAAY,kBACZ,SAAQ,QAAQ,+BAKf,QAAQ"}
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { $r as KwilActionClient, Gr as CustomKwilSigner, Hr as getNearFullAccessPublicKeys, Jr as SignerAddress, Kr as KwilSigner, Qr as createServerKwilSigner, Ur as implicitAddressFromPublicKey, Wr as signNearMessage, Xr as Wallet, Yr as SignerPublicKey, Zr as createClientKwilSigner, ei as createNodeKwilClient, qr as KwilSignerType, ti as createWebKwilClient } from "./index-iqkJfgWf.mjs";
2
- export { CustomKwilSigner, KwilActionClient, KwilSigner, KwilSignerType, SignerAddress, SignerPublicKey, Wallet, createClientKwilSigner, createNodeKwilClient, createServerKwilSigner, createWebKwilClient, getNearFullAccessPublicKeys, implicitAddressFromPublicKey, signNearMessage };
1
+ import { $r as createMmTokenAuth, Br as SignerAddress, Fr as implicitAddressFromPublicKey, Gr as CreateKgwAuthenticatedBlobGatewayParams, Hr as Wallet, Ir as signNearMessage, Jr as createKgwAuthenticatedBlobGateway, Kr as CreateKgwAuthenticatedFetchParams, Lr as CustomKwilSigner, Pr as getNearFullAccessPublicKeys, Qr as MmTokenPayload, Rr as KwilSigner, Ur as createClientKwilSigner, Vr as SignerPublicKey, Wr as createServerKwilSigner, Xr as MmTokenAuth, Yr as createKgwAuthenticatedFetch, Zr as MmTokenEnvelope, ai as createWebKwilClient, ei as isMmTokenAuth, ii as createNodeKwilClient, ni as mmTokenStorageId, oi as KwilTxFailedError, qr as KgwAuthFailurePredicate, ri as KwilActionClient, si as KwilTxPollTimeoutError, ti as mmTokenCredentialContentUri, zr as KwilSignerType } from "./index-Bqz6trCk.mjs";
2
+ export { CreateKgwAuthenticatedBlobGatewayParams, CreateKgwAuthenticatedFetchParams, CustomKwilSigner, KgwAuthFailurePredicate, KwilActionClient, KwilSigner, KwilSignerType, KwilTxFailedError, KwilTxPollTimeoutError, MmTokenAuth, MmTokenEnvelope, MmTokenPayload, SignerAddress, SignerPublicKey, Wallet, createClientKwilSigner, createKgwAuthenticatedBlobGateway, createKgwAuthenticatedFetch, createMmTokenAuth, createNodeKwilClient, createServerKwilSigner, createWebKwilClient, getNearFullAccessPublicKeys, implicitAddressFromPublicKey, isMmTokenAuth, mmTokenCredentialContentUri, mmTokenStorageId, signNearMessage };