@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,78 @@
1
1
  # @idos-network/kwil-infra
2
2
 
3
+ ## 2.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - e1408a1: Publish via npm trusted publishing (OIDC) with provenance; expand `repository` field in package manifests.
8
+ - Updated dependencies [e1408a1]
9
+ - @idos-network/kwil-js@0.2.1
10
+ - @idos-network/utils@2.2.2
11
+
12
+ ## 2.2.1
13
+
14
+ ### Patch Changes
15
+
16
+ - ed9a1ad: Fail fast with a clear error when signing Kwil messages with Xaman (Xumm), which can't produce the raw message signature KGW verifies, and reject non-hex XRP signatures.
17
+ - @idos-network/utils@2.2.1
18
+
19
+ ## 2.2.0
20
+
21
+ ### Patch Changes
22
+
23
+ - 74180e3: Delete the FaceSign mnemonic when the signer resets, and clear the idOS enclave on logout.
24
+ - 3ae3d26: Add `@idos-network/instrumentation`: OpenTelemetry instrumentation for the idOS SDK.
25
+
26
+ Traces the public methods of `@idos-network/client`, `/consumer` and `/issuer`,
27
+ with the `KwilActionClient.call` / `.execute` round-trips they trigger nested
28
+ underneath as `db.*` spans. Every target is a class method, so patching works
29
+ through `patchModuleExports` with no ESM loader hook; `--import` stays supported
30
+ for automatic patching.
31
+
32
+ `KwilActionClient` gains a `waitForTx` method: the tx-confirmation polling a
33
+ synchronous `execute` already did, split out so it can be traced on its own.
34
+ Behavior is unchanged.
35
+
36
+ Arguments and return values are never recorded — they carry credentials and keys.
37
+ Use `requestHook` / `responseHook` to opt in per deployment.
38
+
39
+ - c27ea68: Use `@idos-network/kwil-js` 0.1.11.
40
+ - 3484957: Move `@idos-network/kwil-js` into the monorepo and align it with the other packages.
41
+
42
+ - ESM-only build via `tsdown`, tests on `vitest` (was `tsc` + a custom esbuild script and `jest`)
43
+ - Public subpath exports renamed: `@idos-network/kwil-js/dist/api_client/config` -> `/config`, `/dist/core/action` -> `/action`, `/dist/core/database` -> `/database`
44
+ - Removed the deprecated `getSchema`, `deploy`, `drop` and `listDatabases` methods, which only threw
45
+ - Dropped the `jssha`, `long` and `uuid` dependencies in favour of `@noble/hashes` and platform built-ins
46
+ - Integration tests moved to the private `kwil-js-integration` app, which runs them against a live Kwil node outside CI
47
+
48
+ - Updated dependencies [3484957]
49
+ - Updated dependencies [56b18ea]
50
+ - @idos-network/kwil-js@0.2.0
51
+ - @idos-network/utils@2.2.0
52
+
53
+ ## 2.1.0
54
+
55
+ ### Minor Changes
56
+
57
+ - e0a220c: Export `toDelegatedWriteGrantBaseParams` so DWG request input maps 1:1 into `createCredentialByDelegatedWriteGrant`. Canonicalize ed25519 signer identifiers and 64-character hexadecimal grantee identifiers to lowercase hex to match kwild `@caller`.
58
+
59
+ ### Patch Changes
60
+
61
+ - @idos-network/utils@2.1.0
62
+
63
+ ## 2.0.1
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies [1fb5dff]
68
+ - @idos-network/utils@2.0.1
69
+
70
+ ## 2.0.0
71
+
72
+ ### Patch Changes
73
+
74
+ - @idos-network/utils@2.0.0
75
+
3
76
  ## 1.5.0
4
77
 
5
78
  ### Patch Changes
package/README.md CHANGED
@@ -20,7 +20,7 @@ infrastructure. It includes:
20
20
 
21
21
  - Typed action helpers generated from the Kwil schema.
22
22
  - Client helpers to `call` and `execute` actions.
23
- - Signer helpers for EVM, NEAR, Stellar, XRPL, and custom signers.
23
+ - Signer helpers for EVM, NEAR, Stellar, XRPL, MM token (`mm_token`), and custom signers.
24
24
  - Signature verification utilities across supported wallet types.
25
25
  - XRPL wallet helpers (Xumm, GemWallet).
26
26
 
@@ -47,6 +47,51 @@ const kwil = await createNodeKwilClient({
47
47
  });
48
48
  ```
49
49
 
50
+ ## Authenticate with an MM (MetaMask UKYC) token
51
+
52
+ KGW `mm_token` auth expects a **base64url-encoded** envelope string — not raw JSON.
53
+ Decoded shape:
54
+
55
+ ```json
56
+ {
57
+ "payload": { "version": 1, "aud": "...", "signing_public_key": "...", "...": "..." },
58
+ "signature": "base64url(ed25519-signature-over-canonical-payload)"
59
+ }
60
+ ```
61
+
62
+ ```ts
63
+ import { createMmTokenAuth, createNodeKwilClient } from "@idos-network/kwil-infra";
64
+ import { getCredentials } from "@idos-network/kwil-infra/actions";
65
+
66
+ const kwil = await createNodeKwilClient({
67
+ nodeUrl: "https://kwil.your-node.example",
68
+ });
69
+
70
+ // MetaMask / UKYC issues this as a single base64url string.
71
+ const encodedMmToken =
72
+ "eyJwYXlsb2FkIjp7InZlcnNpb24iOjEsImF1ZCI6Im1ldGFtYXNrOnVzZXItc3RvcmFnZTp1a3ljIiwiLi4uIjpudWxsfSwic2lnbmF0dXJlIjoiLi4uIn0";
73
+
74
+ const mmAuth = createMmTokenAuth(encodedMmToken);
75
+ kwil.setSigner(mmAuth);
76
+
77
+ await getCredentials(kwil);
78
+ ```
79
+
80
+ `createMmTokenAuth` also accepts a decoded `{ payload, signature }` object and
81
+ re-encodes it. Prefer the encoded string from MetaMask so `signMessage` preserves the
82
+ exact bytes KGW will verify.
83
+
84
+ The returned object is one capability with two uses: it is a valid `KwilSigner` for KGW,
85
+ and it carries the encoded envelope as `accessToken` for UKYC blob requests. Pass it to
86
+ `client.withUserSigner()` or `idOSConsumer.init({ consumerSigner })` and the blob gateway
87
+ picks up that authorization automatically — never pass the raw token separately. A consumer
88
+ signing with a non-MM key can still read capability-authorized UKYC blobs by passing the
89
+ same object as `mmAuth`.
90
+
91
+ Note: `mm_token` callers cannot `add_wallet` / `remove_wallet` — MM wallets are inserted
92
+ by a trusted issuer (`wallet_type: "MM"`, with `address` and `public_key` both set to
93
+ `payload.signing_public_key`).
94
+
50
95
  ## Run actions
51
96
 
52
97
  ```ts
@@ -1,2 +1,2 @@
1
- import { $ as DwgMessageInputSchema, $n as checkBalance, $t as GetUserAsInserterOutputSchema, A as AddWalletInputSchema, An as ShareAttributeInput, Ar as removeCredential, At as GetCredentialOwnedOutput, B as CredentialExistAsInserterInputSchema, Bn as WALLET_TYPES, Br as upsertWalletAsInserter, Bt as GetCredentialsSharedByUserOutput, C as AddDelegateAsOwnerInput, Cn as RequestBalanceWithdrawalInputSchema, Cr as getUser, Ct as GetAccessGrantsOwnedOutputSchema, D as AddUserAsInserterInput, Dn as RescindSharedCredentialInputSchema, Dr as hasLockedAccessGrants, Dt as GetAttributesOutputSchema, E as AddInserterAsOwnerInputSchema, En as RescindSharedCredentialInput, Er as getWallets, Et as GetAttributesOutput, F as CreateAgByDagForCopyInput, Fn as UpdateUserPubKeyAsInserterInputSchema, Fr as revokeAccessGrant, Ft as GetCredentialSharedOutputSchema, G as DagMessageOutput, Gn as actionSchema, Gt as GetIssuerFeeOutputSchema, H as CredentialExistAsInserterOutputSchema, Hn as actionCostingFee, Ht as GetIssuerFeeInput, I as CreateAgByDagForCopyInputSchema, In as UpsertCredentialAsInserterInput, Ir as shareAttribute, It as GetCredentialsOutput, J as DeleteDelegateAsOwnerInput, Jn as addCredential, Jt as GetSiblingCredentialIdOutput, K as DagMessageOutputSchema, Kn as addAttribute, Kt as GetSiblingCredentialIdInput, L as CreateCredentialsByDwgInput, Ln as UpsertCredentialAsInserterInputSchema, Lr as shareCredential, Lt as GetCredentialsOutputSchema, M as CheckBalanceInputSchema, Mn as ShareCredentialInput, Mr as requestBalanceWithdrawal, Mt as GetCredentialSharedInput, N as CheckBalanceOutput, Nn as ShareCredentialInputSchema, Nr as requestWithdrawal, Nt as GetCredentialSharedInputSchema, O as AddUserAsInserterInputSchema, On as RevokeAccessGrantInput, Or as hasProfile, Ot as GetCredentialOwnedInput, P as CheckBalanceOutputSchema, Pn as UpdateUserPubKeyAsInserterInput, Pr as rescindSharedCredential, Pt as GetCredentialSharedOutput, Q as DwgMessageInput, Qn as addWallet, Qt as GetUserAsInserterOutput, R as CreateCredentialsByDwgInputSchema, Rn as UpsertWalletAsInserterInput, Rr as updateUserPubKeyAsInserter, Rt as GetCredentialsSharedByUserInput, S as AddCredentialInputSchema, Sn as RequestBalanceWithdrawalInput, Sr as getSiblingCredentialId, St as GetAccessGrantsOwnedOutput, T as AddInserterAsOwnerInput, Tn as RequestWithdrawalInputSchema, Tr as getWalletWithBalance, Tt as GetAllowanceOutputSchema, U as DagMessageInput, Un as actionCostingGas, Ut as GetIssuerFeeInputSchema, V as CredentialExistAsInserterOutput, Vn as WalletType, Vr as walletTypeSchema, Vt as GetCredentialsSharedByUserOutputSchema, W as DagMessageInputSchema, Wn as actionCostingIdosToken, Wt as GetIssuerFeeOutput, X as DeleteInserterAsOwnerInput, Xn as addInserterAsOwner, Xt as GetUserAsInserterInput, Y as DeleteDelegateAsOwnerInputSchema, Yn as addDelegateAsOwner, Yt as GetSiblingCredentialIdOutputSchema, Z as DeleteInserterAsOwnerInputSchema, Zn as addUserAsInserter, Zt as GetUserAsInserterInputSchema, _ as AddAttributeAsInserterInput, _n as RemoveAttributeInputSchema, _r as getCredentialOwned, _t as GetAccessGrantsGrantedCountOutputSchema, a as idOSCredentialListItem, an as GetWalletWithBalanceOutputSchema, ar as deleteInserterAsOwner, at as EditCredentialInput, b as AddAttributeInputSchema, bn as RemoveWalletInput, br as getCredentialsSharedByUser, bt as GetAccessGrantsGrantedOutput, c as idOSUser, cn as HasLockedAccessGrantsInput, cr as editCredential, ct as EditPublicNotesAsIssuerInputSchema, d as removeWallets, dn as HasLockedAccessGrantsOutputSchema, dr as getAccessGrantsForCredential, dt as GetAccessGrantsForCredentialInputSchema, en as GetUserOutput, er as createAgByDagForCopy, et as DwgMessageOutput, f as ActionCostingFeeInput, fn as HasProfileInput, fr as getAccessGrantsGranted, ft as GetAccessGrantsForCredentialOutput, g as ActionSchemaElement, gn as RemoveAttributeInput, gr as getAttributes, gt as GetAccessGrantsGrantedCountOutput, h as ActionCostingIdosTokenInputSchema, hn as HasProfileOutputSchema, hr as getAllowance, ht as GetAccessGrantsGrantedCountInputSchema, i as idOSCredential, in as GetWalletWithBalanceOutput, ir as deleteDelegateAsOwner, it as EditAttributeInputSchema, j as CheckBalanceInput, jn as ShareAttributeInputSchema, jr as removeWallet, jt as GetCredentialOwnedOutputSchema, k as AddWalletInput, kn as RevokeAccessGrantInputSchema, kr as removeAttribute, kt as GetCredentialOwnedInputSchema, l as idOSUserAttribute, ln as HasLockedAccessGrantsInputSchema, lr as editPublicNotesAsIssuer, lt as EncryptionPasswordStore, m as ActionCostingIdosTokenInput, mn as HasProfileOutput, mr as getAccessGrantsOwned, mt as GetAccessGrantsGrantedCountInput, n as addWallets, nn as GetWalletWithBalanceInput, nr as credentialExistAsInserter, nt as ENCRYPTION_PASSWORD_STORES, o as idOSDelegatedWriteGrant, on as GetWalletsOutput, or as dwgMessage, ot as EditCredentialInputSchema, p as ActionCostingFeeInputSchema, pn as HasProfileInputSchema, pr as getAccessGrantsGrantedCount, pt as GetAccessGrantsForCredentialOutputSchema, q as DataType, qn as addAttributeAsInserter, qt as GetSiblingCredentialIdInputSchema, r as getGrants, rn as GetWalletWithBalanceInputSchema, rr as dagMessage, rt as EditAttributeInput, s as idOSGrant, sn as GetWalletsOutputSchema, sr as editAttribute, st as EditPublicNotesAsIssuerInput, t as GET_GRANTS_DEFAULT_RECORDS_PER_PAGE, tn as GetUserOutputSchema, tr as createCredentialsByDwg, tt as DwgMessageOutputSchema, u as idOSWallet, un as HasLockedAccessGrantsOutput, ur as encryptionPasswordStoreSchema, ut as GetAccessGrantsForCredentialInput, v as AddAttributeAsInserterInputSchema, vn as RemoveCredentialInput, vr as getCredentialShared, vt as GetAccessGrantsGrantedInput, w as AddDelegateAsOwnerInputSchema, wn as RequestWithdrawalInput, wr as getUserAsInserter, wt as GetAllowanceOutput, x as AddCredentialInput, xn as RemoveWalletInputSchema, xr as getIssuerFee, xt as GetAccessGrantsGrantedOutputSchema, y as AddAttributeInput, yn as RemoveCredentialInputSchema, yr as getCredentials, yt as GetAccessGrantsGrantedInputSchema, z as CredentialExistAsInserterInput, zn as UpsertWalletAsInserterInputSchema, zr as upsertCredentialAsInserter, zt as GetCredentialsSharedByUserInputSchema } from "../index-iqkJfgWf.mjs";
2
- export { ActionCostingFeeInput, ActionCostingFeeInputSchema, ActionCostingIdosTokenInput, ActionCostingIdosTokenInputSchema, ActionSchemaElement, AddAttributeAsInserterInput, AddAttributeAsInserterInputSchema, AddAttributeInput, AddAttributeInputSchema, AddCredentialInput, AddCredentialInputSchema, AddDelegateAsOwnerInput, AddDelegateAsOwnerInputSchema, AddInserterAsOwnerInput, AddInserterAsOwnerInputSchema, AddUserAsInserterInput, AddUserAsInserterInputSchema, AddWalletInput, AddWalletInputSchema, CheckBalanceInput, CheckBalanceInputSchema, CheckBalanceOutput, CheckBalanceOutputSchema, CreateAgByDagForCopyInput, CreateAgByDagForCopyInputSchema, CreateCredentialsByDwgInput, CreateCredentialsByDwgInputSchema, CredentialExistAsInserterInput, CredentialExistAsInserterInputSchema, CredentialExistAsInserterOutput, CredentialExistAsInserterOutputSchema, DagMessageInput, DagMessageInputSchema, DagMessageOutput, DagMessageOutputSchema, DataType, DeleteDelegateAsOwnerInput, DeleteDelegateAsOwnerInputSchema, DeleteInserterAsOwnerInput, DeleteInserterAsOwnerInputSchema, DwgMessageInput, DwgMessageInputSchema, DwgMessageOutput, DwgMessageOutputSchema, ENCRYPTION_PASSWORD_STORES, EditAttributeInput, EditAttributeInputSchema, EditCredentialInput, EditCredentialInputSchema, EditPublicNotesAsIssuerInput, EditPublicNotesAsIssuerInputSchema, EncryptionPasswordStore, GET_GRANTS_DEFAULT_RECORDS_PER_PAGE, GetAccessGrantsForCredentialInput, GetAccessGrantsForCredentialInputSchema, GetAccessGrantsForCredentialOutput, GetAccessGrantsForCredentialOutputSchema, GetAccessGrantsGrantedCountInput, GetAccessGrantsGrantedCountInputSchema, GetAccessGrantsGrantedCountOutput, GetAccessGrantsGrantedCountOutputSchema, GetAccessGrantsGrantedInput, GetAccessGrantsGrantedInputSchema, GetAccessGrantsGrantedOutput, GetAccessGrantsGrantedOutputSchema, GetAccessGrantsOwnedOutput, GetAccessGrantsOwnedOutputSchema, GetAllowanceOutput, GetAllowanceOutputSchema, GetAttributesOutput, GetAttributesOutputSchema, GetCredentialOwnedInput, GetCredentialOwnedInputSchema, GetCredentialOwnedOutput, GetCredentialOwnedOutputSchema, GetCredentialSharedInput, GetCredentialSharedInputSchema, GetCredentialSharedOutput, GetCredentialSharedOutputSchema, GetCredentialsOutput, GetCredentialsOutputSchema, GetCredentialsSharedByUserInput, GetCredentialsSharedByUserInputSchema, GetCredentialsSharedByUserOutput, GetCredentialsSharedByUserOutputSchema, GetIssuerFeeInput, GetIssuerFeeInputSchema, GetIssuerFeeOutput, GetIssuerFeeOutputSchema, GetSiblingCredentialIdInput, GetSiblingCredentialIdInputSchema, GetSiblingCredentialIdOutput, GetSiblingCredentialIdOutputSchema, GetUserAsInserterInput, GetUserAsInserterInputSchema, GetUserAsInserterOutput, GetUserAsInserterOutputSchema, GetUserOutput, GetUserOutputSchema, GetWalletWithBalanceInput, GetWalletWithBalanceInputSchema, GetWalletWithBalanceOutput, GetWalletWithBalanceOutputSchema, GetWalletsOutput, GetWalletsOutputSchema, HasLockedAccessGrantsInput, HasLockedAccessGrantsInputSchema, HasLockedAccessGrantsOutput, HasLockedAccessGrantsOutputSchema, HasProfileInput, HasProfileInputSchema, HasProfileOutput, HasProfileOutputSchema, RemoveAttributeInput, RemoveAttributeInputSchema, RemoveCredentialInput, RemoveCredentialInputSchema, RemoveWalletInput, RemoveWalletInputSchema, RequestBalanceWithdrawalInput, RequestBalanceWithdrawalInputSchema, RequestWithdrawalInput, RequestWithdrawalInputSchema, RescindSharedCredentialInput, RescindSharedCredentialInputSchema, RevokeAccessGrantInput, RevokeAccessGrantInputSchema, ShareAttributeInput, ShareAttributeInputSchema, ShareCredentialInput, ShareCredentialInputSchema, UpdateUserPubKeyAsInserterInput, UpdateUserPubKeyAsInserterInputSchema, UpsertCredentialAsInserterInput, UpsertCredentialAsInserterInputSchema, UpsertWalletAsInserterInput, UpsertWalletAsInserterInputSchema, WALLET_TYPES, WalletType, actionCostingFee, actionCostingGas, actionCostingIdosToken, actionSchema, addAttribute, addAttributeAsInserter, addCredential, addDelegateAsOwner, addInserterAsOwner, addUserAsInserter, addWallet, addWallets, checkBalance, createAgByDagForCopy, createCredentialsByDwg, credentialExistAsInserter, dagMessage, deleteDelegateAsOwner, deleteInserterAsOwner, dwgMessage, editAttribute, editCredential, editPublicNotesAsIssuer, encryptionPasswordStoreSchema, getAccessGrantsForCredential, getAccessGrantsGranted, getAccessGrantsGrantedCount, getAccessGrantsOwned, getAllowance, getAttributes, getCredentialOwned, getCredentialShared, getCredentials, getCredentialsSharedByUser, getGrants, getIssuerFee, getSiblingCredentialId, getUser, getUserAsInserter, getWalletWithBalance, getWallets, hasLockedAccessGrants, hasProfile, idOSCredential, idOSCredentialListItem, idOSDelegatedWriteGrant, idOSGrant, idOSUser, idOSUserAttribute, idOSWallet, removeAttribute, removeCredential, removeWallet, removeWallets, requestBalanceWithdrawal, requestWithdrawal, rescindSharedCredential, revokeAccessGrant, shareAttribute, shareCredential, updateUserPubKeyAsInserter, upsertCredentialAsInserter, upsertWalletAsInserter, walletTypeSchema };
1
+ import { $ as EditAttributeInput, $n as editAttribute, $t as GetWalletWithBalanceOutputSchema, A as AddWalletMessageOutputSchema, An as UnsetCallerPayerInput, Ar as unsetCallerPayer, At as GetCredentialsOutput, B as CreatePreliminaryCredentialInputSchema, Bn as actionCostingIdosToken, Bt as GetSiblingCredentialIdInput, C as AddUserAsInserterInput, Cn as RevokeAccessGrantInputSchema, Cr as requestBalanceWithdrawal, Ct as GetCredentialOwnedInputSchema, D as AddWalletMessageInput, Dn as ShareAttributeInputSchema, Dr as setCallerPayer, Dt as GetCredentialSharedInputSchema, E as AddWalletInputSchema, En as ShareAttributeInput, Er as revokeAccessGrant, Et as GetCredentialSharedInput, F as CheckCallerPayerInput, Fn as UpsertWalletAsInserterInputSchema, Ft as GetCredentialsSharedByUserOutputSchema, G as CredentialExistAsInserterOutput, Gn as addWallet, Gt as GetUserAsInserterInputSchema, H as CreatePreliminaryCredentialsByDwgInputSchema, Hn as addAttribute, Ht as GetSiblingCredentialIdOutput, I as CheckCallerPayerInputSchema, In as WALLET_TYPES, It as GetIssuerFeeInput, J as DwgMessageInput, Jn as checkCallerPayer, Jt as GetUserOutput, K as CredentialExistAsInserterOutputSchema, Kn as addWalletMessage, Kt as GetUserAsInserterOutput, L as CheckCallerPayerOutput, Ln as WalletType, Lt as GetIssuerFeeInputSchema, M as CheckBalanceInputSchema, Mn as UpdateUserPubKeyAsInserterInput, Mr as upsertWalletAsInserter, Mt as GetCredentialsSharedByUserInput, N as CheckBalanceOutput, Nn as UpdateUserPubKeyAsInserterInputSchema, Nr as walletTypeSchema, Nt as GetCredentialsSharedByUserInputSchema, O as AddWalletMessageInputSchema, On as SharePreliminaryCredentialInput, Or as shareAttribute, Ot as GetCredentialSharedOutput, P as CheckBalanceOutputSchema, Pn as UpsertWalletAsInserterInput, Pt as GetCredentialsSharedByUserOutput, Q as ENCRYPTION_PASSWORD_STORES, Qn as dwgMessage, Qt as GetWalletWithBalanceOutput, R as CheckCallerPayerOutputSchema, Rn as actionCostingFee, Rt as GetIssuerFeeOutput, S as AddAttributeInputSchema, Sn as RevokeAccessGrantInput, Sr as removeWallet, St as GetCredentialOwnedInput, T as AddWalletInput, Tn as SetCallerPayerInputSchema, Tr as rescindSharedCredential, Tt as GetCredentialOwnedOutputSchema, U as CredentialExistAsInserterInput, Un as addAttributeAsInserter, Ut as GetSiblingCredentialIdOutputSchema, V as CreatePreliminaryCredentialsByDwgInput, Vn as actionSchema, Vt as GetSiblingCredentialIdInputSchema, W as CredentialExistAsInserterInputSchema, Wn as addUserAsInserter, Wt as GetUserAsInserterInput, X as DwgMessageOutput, Xn as createPreliminaryCredentialsByDwg, Xt as GetWalletWithBalanceInput, Y as DwgMessageInputSchema, Yn as createPreliminaryCredential, Yt as GetUserOutputSchema, Z as DwgMessageOutputSchema, Zn as credentialExistAsInserter, Zt as GetWalletWithBalanceInputSchema, _ as ActionCostingIdosTokenInputSchema, _n as RequestBalanceWithdrawalInputSchema, _r as getWallets, _t as GetAccessGrantsOwnedOutputSchema, a as idOSCredential, an as HasLockedAccessGrantsOutputSchema, ar as getAccessGrantsOwned, at as GetAccessGrantsForCredentialInputSchema, b as AddAttributeAsInserterInputSchema, bn as RescindSharedCredentialInput, br as removeAttribute, bt as GetAttributesOutput, c as idOSGrant, cn as HasProfileOutput, cr as getCredentialOwned, ct as GetAccessGrantsGrantedCountInput, d as idOSWallet, dn as RemoveAttributeInputSchema, dr as getCredentialsSharedByUser, dt as GetAccessGrantsGrantedCountOutputSchema, en as GetWalletsOutput, er as editPublicNotesAsIssuer, et as EditAttributeInputSchema, f as removeWallets, fn as RemoveCredentialInput, fr as getIssuerFee, ft as GetAccessGrantsGrantedInput, g as ActionCostingIdosTokenInput, gn as RequestBalanceWithdrawalInput, gr as getWalletWithBalance, gt as GetAccessGrantsOwnedOutput, h as ActionCostingFeeInputSchema, hn as RemoveWalletInputSchema, hr as getUserAsInserter, ht as GetAccessGrantsGrantedOutputSchema, i as getGrants, in as HasLockedAccessGrantsOutput, ir as getAccessGrantsGrantedCount, it as GetAccessGrantsForCredentialInput, j as CheckBalanceInput, jn as UnsetCallerPayerInputSchema, jr as updateUserPubKeyAsInserter, jt as GetCredentialsOutputSchema, k as AddWalletMessageOutput, kn as SharePreliminaryCredentialInputSchema, kr as sharePreliminaryCredential, kt as GetCredentialSharedOutputSchema, l as idOSUser, ln as HasProfileOutputSchema, lr as getCredentialShared, lt as GetAccessGrantsGrantedCountInputSchema, m as ActionCostingFeeInput, mn as RemoveWalletInput, mr as getUser, mt as GetAccessGrantsGrantedOutput, n as GET_GRANTS_DEFAULT_RECORDS_PER_PAGE, nn as HasLockedAccessGrantsInput, nr as getAccessGrantsForCredential, nt as EditPublicNotesAsIssuerInputSchema, o as idOSCredentialListItem, on as HasProfileInput, or as getAllowance, ot as GetAccessGrantsForCredentialOutput, p as toDelegatedWriteGrantBaseParams, pn as RemoveCredentialInputSchema, pr as getSiblingCredentialId, pt as GetAccessGrantsGrantedInputSchema, q as DataType, qn as checkBalance, qt as GetUserAsInserterOutputSchema, r as addWallets, rn as HasLockedAccessGrantsInputSchema, rr as getAccessGrantsGranted, rt as EncryptionPasswordStore, s as idOSDelegatedWriteGrant, sn as HasProfileInputSchema, sr as getAttributes, st as GetAccessGrantsForCredentialOutputSchema, t as DelegatedWriteGrantBaseParams, tn as GetWalletsOutputSchema, tr as encryptionPasswordStoreSchema, tt as EditPublicNotesAsIssuerInput, u as idOSUserAttribute, un as RemoveAttributeInput, ur as getCredentials, ut as GetAccessGrantsGrantedCountOutput, v as ActionSchemaElement, vn as RequestWithdrawalInput, vr as hasLockedAccessGrants, vt as GetAllowanceOutput, w as AddUserAsInserterInputSchema, wn as SetCallerPayerInput, wr as requestWithdrawal, wt as GetCredentialOwnedOutput, x as AddAttributeInput, xn as RescindSharedCredentialInputSchema, xr as removeCredential, xt as GetAttributesOutputSchema, y as AddAttributeAsInserterInput, yn as RequestWithdrawalInputSchema, yr as hasProfile, yt as GetAllowanceOutputSchema, z as CreatePreliminaryCredentialInput, zn as actionCostingGas, zt as GetIssuerFeeOutputSchema } from "../index-Bqz6trCk.mjs";
2
+ export { ActionCostingFeeInput, ActionCostingFeeInputSchema, ActionCostingIdosTokenInput, ActionCostingIdosTokenInputSchema, ActionSchemaElement, AddAttributeAsInserterInput, AddAttributeAsInserterInputSchema, AddAttributeInput, AddAttributeInputSchema, AddUserAsInserterInput, AddUserAsInserterInputSchema, AddWalletInput, AddWalletInputSchema, AddWalletMessageInput, AddWalletMessageInputSchema, AddWalletMessageOutput, AddWalletMessageOutputSchema, CheckBalanceInput, CheckBalanceInputSchema, CheckBalanceOutput, CheckBalanceOutputSchema, CheckCallerPayerInput, CheckCallerPayerInputSchema, CheckCallerPayerOutput, CheckCallerPayerOutputSchema, type CreatePreliminaryCredentialsByDwgInput as CreateCredentialsByDwgInput, CreatePreliminaryCredentialsByDwgInput, CreatePreliminaryCredentialsByDwgInputSchema as CreateCredentialsByDwgInputSchema, CreatePreliminaryCredentialsByDwgInputSchema, CreatePreliminaryCredentialInput, CreatePreliminaryCredentialInputSchema, CredentialExistAsInserterInput, CredentialExistAsInserterInputSchema, CredentialExistAsInserterOutput, CredentialExistAsInserterOutputSchema, DataType, DelegatedWriteGrantBaseParams, DwgMessageInput, DwgMessageInputSchema, DwgMessageOutput, DwgMessageOutputSchema, ENCRYPTION_PASSWORD_STORES, EditAttributeInput, EditAttributeInputSchema, EditPublicNotesAsIssuerInput, EditPublicNotesAsIssuerInputSchema, EncryptionPasswordStore, GET_GRANTS_DEFAULT_RECORDS_PER_PAGE, GetAccessGrantsForCredentialInput, GetAccessGrantsForCredentialInputSchema, GetAccessGrantsForCredentialOutput, GetAccessGrantsForCredentialOutputSchema, GetAccessGrantsGrantedCountInput, GetAccessGrantsGrantedCountInputSchema, GetAccessGrantsGrantedCountOutput, GetAccessGrantsGrantedCountOutputSchema, GetAccessGrantsGrantedInput, GetAccessGrantsGrantedInputSchema, GetAccessGrantsGrantedOutput, GetAccessGrantsGrantedOutputSchema, GetAccessGrantsOwnedOutput, GetAccessGrantsOwnedOutputSchema, GetAllowanceOutput, GetAllowanceOutputSchema, GetAttributesOutput, GetAttributesOutputSchema, GetCredentialOwnedInput, GetCredentialOwnedInputSchema, GetCredentialOwnedOutput, GetCredentialOwnedOutputSchema, GetCredentialSharedInput, GetCredentialSharedInputSchema, GetCredentialSharedOutput, GetCredentialSharedOutputSchema, GetCredentialsOutput, GetCredentialsOutputSchema, GetCredentialsSharedByUserInput, GetCredentialsSharedByUserInputSchema, GetCredentialsSharedByUserOutput, GetCredentialsSharedByUserOutputSchema, GetIssuerFeeInput, GetIssuerFeeInputSchema, GetIssuerFeeOutput, GetIssuerFeeOutputSchema, GetSiblingCredentialIdInput, GetSiblingCredentialIdInputSchema, GetSiblingCredentialIdOutput, GetSiblingCredentialIdOutputSchema, GetUserAsInserterInput, GetUserAsInserterInputSchema, GetUserAsInserterOutput, GetUserAsInserterOutputSchema, GetUserOutput, GetUserOutputSchema, GetWalletWithBalanceInput, GetWalletWithBalanceInputSchema, GetWalletWithBalanceOutput, GetWalletWithBalanceOutputSchema, GetWalletsOutput, GetWalletsOutputSchema, HasLockedAccessGrantsInput, HasLockedAccessGrantsInputSchema, HasLockedAccessGrantsOutput, HasLockedAccessGrantsOutputSchema, HasProfileInput, HasProfileInputSchema, HasProfileOutput, HasProfileOutputSchema, RemoveAttributeInput, RemoveAttributeInputSchema, RemoveCredentialInput, RemoveCredentialInputSchema, RemoveWalletInput, RemoveWalletInputSchema, RequestBalanceWithdrawalInput, RequestBalanceWithdrawalInputSchema, RequestWithdrawalInput, RequestWithdrawalInputSchema, RescindSharedCredentialInput, RescindSharedCredentialInputSchema, RevokeAccessGrantInput, RevokeAccessGrantInputSchema, SetCallerPayerInput, SetCallerPayerInputSchema, ShareAttributeInput, ShareAttributeInputSchema, type SharePreliminaryCredentialInput as ShareCredentialInput, SharePreliminaryCredentialInput, SharePreliminaryCredentialInputSchema as ShareCredentialInputSchema, SharePreliminaryCredentialInputSchema, UnsetCallerPayerInput, UnsetCallerPayerInputSchema, UpdateUserPubKeyAsInserterInput, UpdateUserPubKeyAsInserterInputSchema, UpsertWalletAsInserterInput, UpsertWalletAsInserterInputSchema, WALLET_TYPES, WalletType, actionCostingFee, actionCostingGas, actionCostingIdosToken, actionSchema, addAttribute, addAttributeAsInserter, addUserAsInserter, addWallet, addWalletMessage, addWallets, checkBalance, checkCallerPayer, createPreliminaryCredentialsByDwg as createCredentialsByDwg, createPreliminaryCredentialsByDwg, createPreliminaryCredential, credentialExistAsInserter, dwgMessage, editAttribute, editPublicNotesAsIssuer, encryptionPasswordStoreSchema, getAccessGrantsForCredential, getAccessGrantsGranted, getAccessGrantsGrantedCount, getAccessGrantsOwned, getAllowance, getAttributes, getCredentialOwned, getCredentialShared, getCredentials, getCredentialsSharedByUser, getGrants, getIssuerFee, getSiblingCredentialId, getUser, getUserAsInserter, getWalletWithBalance, getWallets, hasLockedAccessGrants, hasProfile, idOSCredential, idOSCredentialListItem, idOSDelegatedWriteGrant, idOSGrant, idOSUser, idOSUserAttribute, idOSWallet, removeAttribute, removeCredential, removeWallet, removeWallets, requestBalanceWithdrawal, requestWithdrawal, rescindSharedCredential, revokeAccessGrant, setCallerPayer, shareAttribute, sharePreliminaryCredential as shareCredential, sharePreliminaryCredential, toDelegatedWriteGrantBaseParams, unsetCallerPayer, updateUserPubKeyAsInserter, upsertWalletAsInserter, walletTypeSchema };