@fairmint/canton-node-sdk 0.0.288 → 0.0.290
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +178 -8
- package/build/src/clients/ledger-json-api/operations/v2/parties/external/allocate-external-party.d.ts +10 -2
- package/build/src/clients/ledger-json-api/operations/v2/parties/external/allocate-external-party.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/external/allocate-external-party.js +27 -3
- package/build/src/clients/ledger-json-api/operations/v2/parties/external/allocate-external-party.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/delete-user.js +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/delete-user.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/get-user.js +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/get-user.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.d.ts +2 -0
- package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.js +5 -6
- package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/list-user-rights.d.ts +3 -0
- package/build/src/clients/ledger-json-api/operations/v2/users/list-user-rights.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/list-user-rights.js +5 -3
- package/build/src/clients/ledger-json-api/operations/v2/users/list-user-rights.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.js +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.js +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user.js +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/users.d.ts +2 -0
- package/build/src/clients/ledger-json-api/schemas/operations/users.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/users.js +4 -0
- package/build/src/clients/ledger-json-api/schemas/operations/users.js.map +1 -1
- package/build/src/utils/external-signing/allocate-external-party.d.ts +2 -0
- package/build/src/utils/external-signing/allocate-external-party.d.ts.map +1 -1
- package/build/src/utils/external-signing/allocate-external-party.js +1 -0
- package/build/src/utils/external-signing/allocate-external-party.js.map +1 -1
- package/build/src/utils/external-signing/allocation-user-id.d.ts +6 -0
- package/build/src/utils/external-signing/allocation-user-id.d.ts.map +1 -0
- package/build/src/utils/external-signing/allocation-user-id.js +18 -0
- package/build/src/utils/external-signing/allocation-user-id.js.map +1 -0
- package/build/src/utils/external-signing/create-external-party.d.ts +6 -0
- package/build/src/utils/external-signing/create-external-party.d.ts.map +1 -1
- package/build/src/utils/external-signing/create-external-party.js +4 -1
- package/build/src/utils/external-signing/create-external-party.js.map +1 -1
- package/build/src/utils/external-signing/external-party-onboarding.d.ts +24 -0
- package/build/src/utils/external-signing/external-party-onboarding.d.ts.map +1 -1
- package/build/src/utils/external-signing/external-party-onboarding.js +71 -0
- package/build/src/utils/external-signing/external-party-onboarding.js.map +1 -1
- package/build/src/utils/external-signing/external-party-wallet.d.ts +110 -0
- package/build/src/utils/external-signing/external-party-wallet.d.ts.map +1 -1
- package/build/src/utils/external-signing/external-party-wallet.js +173 -1
- package/build/src/utils/external-signing/external-party-wallet.js.map +1 -1
- package/build/src/utils/external-signing/external-signing-client.d.ts +6 -0
- package/build/src/utils/external-signing/external-signing-client.d.ts.map +1 -1
- package/build/src/utils/external-signing/external-signing-client.js +4 -0
- package/build/src/utils/external-signing/external-signing-client.js.map +1 -1
- package/build/src/utils/token-standard/v1/holdings.d.ts +3 -9
- package/build/src/utils/token-standard/v1/holdings.d.ts.map +1 -1
- package/build/src/utils/token-standard/v1/holdings.js +6 -74
- package/build/src/utils/token-standard/v1/holdings.js.map +1 -1
- package/build/src/wallets/acs.d.ts.map +1 -1
- package/build/src/wallets/acs.js +21 -0
- package/build/src/wallets/acs.js.map +1 -1
- package/build/src/wallets/amulet/constants.d.ts +33 -0
- package/build/src/wallets/amulet/constants.d.ts.map +1 -0
- package/build/src/wallets/amulet/constants.js +34 -0
- package/build/src/wallets/amulet/constants.js.map +1 -0
- package/build/src/wallets/amulet/registry.d.ts +65 -0
- package/build/src/wallets/amulet/registry.d.ts.map +1 -0
- package/build/src/wallets/amulet/registry.js +187 -0
- package/build/src/wallets/amulet/registry.js.map +1 -0
- package/build/src/wallets/cip103.d.ts +17 -3
- package/build/src/wallets/cip103.d.ts.map +1 -1
- package/build/src/wallets/cip103.js +19 -6
- package/build/src/wallets/cip103.js.map +1 -1
- package/build/src/wallets/commands.d.ts +5 -0
- package/build/src/wallets/commands.d.ts.map +1 -1
- package/build/src/wallets/commands.js +23 -7
- package/build/src/wallets/commands.js.map +1 -1
- package/build/src/wallets/contracts.d.ts +56 -3
- package/build/src/wallets/contracts.d.ts.map +1 -1
- package/build/src/wallets/contracts.js +63 -11
- package/build/src/wallets/contracts.js.map +1 -1
- package/build/src/wallets/da-utilities/client.d.ts +4 -0
- package/build/src/wallets/da-utilities/client.d.ts.map +1 -1
- package/build/src/wallets/da-utilities/client.js +2 -0
- package/build/src/wallets/da-utilities/client.js.map +1 -1
- package/build/src/wallets/errors.d.ts +3 -1
- package/build/src/wallets/errors.d.ts.map +1 -1
- package/build/src/wallets/errors.js +3 -2
- package/build/src/wallets/errors.js.map +1 -1
- package/build/src/wallets/holding-view.d.ts +47 -0
- package/build/src/wallets/holding-view.d.ts.map +1 -0
- package/build/src/wallets/holding-view.js +121 -0
- package/build/src/wallets/holding-view.js.map +1 -0
- package/build/src/wallets/holdings.d.ts +59 -5
- package/build/src/wallets/holdings.d.ts.map +1 -1
- package/build/src/wallets/holdings.js +85 -15
- package/build/src/wallets/holdings.js.map +1 -1
- package/build/src/wallets/index.d.ts +20 -3
- package/build/src/wallets/index.d.ts.map +1 -1
- package/build/src/wallets/index.js +30 -1
- package/build/src/wallets/index.js.map +1 -1
- package/build/src/wallets/store.d.ts +19 -1
- package/build/src/wallets/store.d.ts.map +1 -1
- package/build/src/wallets/store.js +78 -3
- package/build/src/wallets/store.js.map +1 -1
- package/build/src/wallets/tokens.d.ts +120 -0
- package/build/src/wallets/tokens.d.ts.map +1 -0
- package/build/src/wallets/tokens.js +166 -0
- package/build/src/wallets/tokens.js.map +1 -0
- package/build/src/wallets/types.d.ts +14 -0
- package/build/src/wallets/types.d.ts.map +1 -1
- package/build/src/wallets/wallet.d.ts +81 -5
- package/build/src/wallets/wallet.d.ts.map +1 -1
- package/build/src/wallets/wallet.js +331 -49
- package/build/src/wallets/wallet.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -93,13 +93,16 @@ works). The package root also exports it as the `Wallets` namespace.
|
|
|
93
93
|
disconnected until the next `connect`), and `disconnect()`.
|
|
94
94
|
- `createWalletStore({ session })`: the page's state and actions. `view.state` is one ledger
|
|
95
95
|
snapshot: holdings, `balances` per instrument (with the registry's `metadata`), transfer offers in
|
|
96
|
-
and out, mint offers, burn requests and transfer preapprovals.
|
|
96
|
+
and out, mint offers, burn requests and transfer preapprovals. Transfer offers, mint offers and
|
|
97
|
+
burn requests carry `memo`: the payload's `splice.lfdecentralizedtrust.org/reason` metadata (the
|
|
98
|
+
sender's or issuer's note), or `null` when there is none. `store.act(action)` runs one typed
|
|
97
99
|
action, and `view.notices` lists what to show.
|
|
98
100
|
- `createWallet({ provider, partyId, network })`: the same actions for one party, without the store.
|
|
99
101
|
|
|
100
102
|
The actions are `acceptMintOffer`, `rejectMintOffer`, `acceptTransferOffer`, `rejectTransferOffer`,
|
|
101
|
-
`withdrawTransferOffer`, `
|
|
102
|
-
`
|
|
103
|
+
`withdrawTransferOffer`, `withdrawExpiredTransferOffers`, `reclaimLockedTokens`, `requestBurn`,
|
|
104
|
+
`cancelBurnRequest`, `planTransfer` then `submitTransfer`, `createTransferPreapproval`,
|
|
105
|
+
`removeTransferPreapproval` and `proveOwnership`.
|
|
103
106
|
|
|
104
107
|
```ts
|
|
105
108
|
// Offer the installed wallets, then connect the one the user picks.
|
|
@@ -196,16 +199,17 @@ if (plan !== null && confirm(plan.description)) await store.act({ type: 'submitT
|
|
|
196
199
|
result as succeeded for its party, a certain failure as failed, a failure before anything was
|
|
197
200
|
submitted not at all.
|
|
198
201
|
- A snapshot is one `/v2/state/ledger-end` call and one `POST /v2/state/active-contracts` filtered
|
|
199
|
-
to the five DA templates the wallet reads
|
|
200
|
-
`
|
|
201
|
-
|
|
202
|
-
|
|
202
|
+
to the five DA templates the wallet reads, plus, with Canton Coin on (the default), the
|
|
203
|
+
`HoldingV1` interface and Canton Coin's transfer instructions. A participant refuses a list longer
|
|
204
|
+
than its `http-list-max-elements-limit` (200 by default); the read then fails with an error that
|
|
205
|
+
says so. A read the wallet rate-limits is retried after 0.5, 1, 2 and 4 s (jittered), then shown
|
|
206
|
+
as a warning with Retry.
|
|
203
207
|
- `planTransfer` asks DA's registry how it will run the transfer (`plan.kind`: `direct` through the
|
|
204
208
|
receiver's preapproval, an `offer` the receiver must accept, or `self`).
|
|
205
209
|
`requirePreapproval: true` refuses anything but `direct` before anything is signed, and
|
|
206
210
|
`submitTransfer` refuses with `kind-changed` when the registry now answers another kind. An offer
|
|
207
211
|
keeps the sender's tokens locked until it is accepted, rejected or withdrawn; expiry alone does
|
|
208
|
-
not unlock them.
|
|
212
|
+
not unlock them (see [Expired offers](#expired-offers)).
|
|
209
213
|
- A plan, and every write, belongs to the connected wallet that made it: once the session switched
|
|
210
214
|
account or disconnected, it is refused before anything is read or signed. `submitTransfer` sends
|
|
211
215
|
only a plan the same store planned for its current wallet.
|
|
@@ -232,6 +236,172 @@ if (plan !== null && confirm(plan.description)) await store.act({ type: 'submitT
|
|
|
232
236
|
- Wallet discovery follows the Canton dApp SDK's announce handshake; a CIP that standardizes
|
|
233
237
|
discovery is still a draft, so `discoverCip103Wallets` will follow it once it settles.
|
|
234
238
|
|
|
239
|
+
### One panel per token
|
|
240
|
+
|
|
241
|
+
`walletTokens(view.state)` gives one entry per token the state names, Canton Coin and DA Registry
|
|
242
|
+
tokens in the same shape, so a page renders one token picker and one panel whatever the token. A
|
|
243
|
+
token the party is only offered (a mint offer or an incoming transfer before its first holding) is
|
|
244
|
+
listed too, with zero balances. Entries are sorted by `symbol`, then instrument id and admin.
|
|
245
|
+
|
|
246
|
+
```ts
|
|
247
|
+
import { walletTokens } from '@fairmint/canton-node-sdk/wallets';
|
|
248
|
+
|
|
249
|
+
const tokens = view.state === null ? [] : walletTokens(view.state);
|
|
250
|
+
// Picker: tokens.map((t) => <option key={t.key} value={t.key}>{t.symbol}</option>)
|
|
251
|
+
const token = tokens.find((t) => t.key === selectedKey) ?? tokens[0];
|
|
252
|
+
// token.available, token.locked, token.lockedReclaimable, token.canReclaim, token.decimals
|
|
253
|
+
// token.offers.{incoming, outgoing, expiredIncoming, expiredOutgoing}, token.mintOffers, token.burnRequests
|
|
254
|
+
// token.preapproval: the party's DA preapproval covering it, or null
|
|
255
|
+
// token.preapprovalStatus: 'covered' | 'none' | 'unknown' (Canton Coin)
|
|
256
|
+
// token.capabilities: { send, burn, preapprove, answerOffers, withdrawOffers, answerMintOffers }
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
- `symbol`, `name` and `decimals` are the registry's metadata (`CC` and `Canton Coin` for Canton
|
|
260
|
+
Coin, also when the party is only offered it), else the instrument id and 10 decimals.
|
|
261
|
+
- `offers.expiredIncoming` lists the incoming offers the party can no longer accept (the ledger
|
|
262
|
+
refuses it; rejecting still works): hide Accept on them.
|
|
263
|
+
- `capabilities` says what this wallet can do with the token today. For Canton Coin, `send`, `burn`,
|
|
264
|
+
`preapprove` and `answerMintOffers` are false (see [Canton Coin](#canton-coin)); answering
|
|
265
|
+
incoming offers and withdrawing its own are true. For a DA Registry token all are true.
|
|
266
|
+
- `preapproval` uses `coveringPreapproval(existing, { instrumentAdmin, instrumentIds })`, the same
|
|
267
|
+
rule `createTransferPreapproval` refuses with `already-exists` by: an issuer-wide preapproval
|
|
268
|
+
covers everything of its admin; one that lists ids covers a request whose ids it all names (never
|
|
269
|
+
an issuer-wide request). Use it to hide or disable a pre-approve button. For Canton Coin
|
|
270
|
+
`preapproval` is null and `preapprovalStatus` is `unknown`: its preapproval is a DSO-signed Splice
|
|
271
|
+
`TransferPreapproval` made through the party's validator, which this wallet does not read, so do
|
|
272
|
+
not say the party has none.
|
|
273
|
+
|
|
274
|
+
### Expired offers
|
|
275
|
+
|
|
276
|
+
A transfer offer's `executeBefore` only stops the receiver accepting it: the sender's tokens stay
|
|
277
|
+
locked until the sender withdraws it (or the receiver rejects it). `loadState` marks every offer
|
|
278
|
+
`expired` when its `executeBefore` has passed by the wallet's clock (the ledger decides by ledger
|
|
279
|
+
time, which can differ by a little), and each balance's `lockedInExpiredOffers` is the part of
|
|
280
|
+
`locked` that the party's own expired offers keep locked (`lockedReclaimable` in `walletTokens`).
|
|
281
|
+
|
|
282
|
+
```ts
|
|
283
|
+
if (token.canReclaim) {
|
|
284
|
+
// Button: `Reclaim ${token.lockedReclaimable} ${token.symbol}`
|
|
285
|
+
await store.act({ type: 'reclaimLockedTokens', instrumentId: token.instrumentId });
|
|
286
|
+
}
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
- `reclaimLockedTokens` unlocks everything of the token that no longer needs to be locked: it
|
|
290
|
+
withdraws the expired outgoing offers (below), then, for Canton Coin, releases each of the party's
|
|
291
|
+
own expired locks that no active offer names (`LockedAmulet_OwnerExpireLockV2`, which Splice lets
|
|
292
|
+
the owner alone run once `expiresAt` passed; a lock left after its offer is gone, for example from
|
|
293
|
+
an earlier run). `InstrumentBalance.lockedInExpiredLocks` is what those locks hold;
|
|
294
|
+
`lockedReclaimable` is both parts, capped at `locked`. `withdrawExpiredTransferOffers` does the
|
|
295
|
+
offers only.
|
|
296
|
+
- Both stop at the first failed submission. A failure before anything committed is thrown as usual;
|
|
297
|
+
after that, the call resolves with what committed (`withdrawn`, `released`), the failure
|
|
298
|
+
(`failed: { contractId, error }`, an `unknown` outcome included) and what it did not get to
|
|
299
|
+
(`notAttempted`). The store reports such a result as a failure whose message names what committed,
|
|
300
|
+
and an unknown outcome still locks writes until acknowledged.
|
|
301
|
+
|
|
302
|
+
- `withdrawExpiredTransferOffers` withdraws every expired outgoing offer of the token, oldest
|
|
303
|
+
deadline first, one `TransferInstruction_Withdraw` submission each, exactly as
|
|
304
|
+
`withdrawTransferOffer` sends it, with the choice context of the offer's own registry (Scan for
|
|
305
|
+
Canton Coin, DA's Utilities API for a DA token). It resolves with the offers withdrawn and is
|
|
306
|
+
refused with `not-found` when there is none.
|
|
307
|
+
- Canton Coin (checked against Splice's `AmuletTransferInstruction` and Scan's choice-context
|
|
308
|
+
handler): `TransferInstruction_Withdraw` has no deadline check, and Scan's withdraw context sets
|
|
309
|
+
`expire-lock` to whether the offer's `LockedAmulet` is still active. While it is, the withdrawal
|
|
310
|
+
unlocks it (`LockedAmulet_UnlockV2`, which the DSO's signature on the offer authorizes), so it
|
|
311
|
+
works on an expired offer. When the lock was already released (its owner ran
|
|
312
|
+
`LockedAmulet_OwnerExpireLockV2` after the lock's expiry), the withdrawal only archives the
|
|
313
|
+
expired offer. `lockedInExpiredOffers` counts the `LockedAmulet`'s own amount (which can exceed
|
|
314
|
+
the offered amount), and nothing once it is gone.
|
|
315
|
+
- DA tokens: DA's `TransferOffer` implements the same CIP-56 `TransferInstruction_Withdraw`
|
|
316
|
+
(controller: the sender), and the wallet asks DA's registry for its withdraw context. DA's
|
|
317
|
+
contract source is not public, so the reclaimable amount is an estimate: each expired offer's
|
|
318
|
+
amount (capped at the token's locked total), since its create argument names no locked holding.
|
|
319
|
+
Withdrawing still archives the expired offer either way.
|
|
320
|
+
|
|
321
|
+
### Canton Coin
|
|
322
|
+
|
|
323
|
+
Canton Coin is on by default: a wallet lists the party's Canton Coin with its other tokens and
|
|
324
|
+
Canton Coin transfer offers (for example a faucet's) beside DA's. One option configures it, on the
|
|
325
|
+
store or on `createWallet`:
|
|
326
|
+
|
|
327
|
+
```ts
|
|
328
|
+
const store = createWalletStore({
|
|
329
|
+
session,
|
|
330
|
+
// All optional; `{}` (or leaving it out) works on DevNet and MainNet.
|
|
331
|
+
cantonCoin: {
|
|
332
|
+
dsoParty: 'DSO::1220…', // pin the network's DSO party; else the registry's adminId is trusted
|
|
333
|
+
registryUrl: 'https://scan.example', // defaults to SV-1's Scan of the network
|
|
334
|
+
fetch: myFetch, // defaults to globalThis.fetch
|
|
335
|
+
},
|
|
336
|
+
});
|
|
337
|
+
// cantonCoin: false reads no Canton Coin and never calls Scan.
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
- What is read: `Amulet` and `LockedAmulet` holdings through their `HoldingV1` view, as `holdings`
|
|
341
|
+
with `source: 'amulet'` and a `balances` entry (`locked` apart) under the instrument
|
|
342
|
+
`{ admin: <DSO party>, id: 'Amulet' }` with the registry's metadata (`CANTON_COIN_METADATA` when
|
|
343
|
+
it does not answer); and `AmuletTransferInstruction`s to or from the party, as `transferOffers`
|
|
344
|
+
with `registry: 'amulet'` (DA's carry `registry: 'da'`).
|
|
345
|
+
- Trust: Canton Coin counts only when it is the confirmed DSO's and the DSO signed it (with the
|
|
346
|
+
owner for a holding, and every lock holder for a `LockedAmulet`; the sender for an offer). The DSO
|
|
347
|
+
party is resolved once per wallet, for holdings and offers alike: the pinned `dsoParty`, else the
|
|
348
|
+
`adminId` the registry answers at `/registry/metadata/v1/info`. The registry is asked only when
|
|
349
|
+
the party has Canton Coin, and a request is aborted after 5 s. A snapshot looks up the DSO and
|
|
350
|
+
Canton Coin's metadata at once and waits for them together: the very first lookup in full (at most
|
|
351
|
+
5 s, so a cold Scan does not report Canton Coin unavailable on a first load), later ones at most
|
|
352
|
+
1.5 s (a slower answer is cached for the next load). After a failure the registry is not asked
|
|
353
|
+
again for 30 s.
|
|
354
|
+
- With a pinned `dsoParty`, the registry's own `adminId` is still checked against it: a registry of
|
|
355
|
+
another DSO has its metadata ignored (`CANTON_COIN_METADATA` is shown) and its choice contexts
|
|
356
|
+
refused with a `RegistryResponseError` naming both parties, before anything is submitted. A
|
|
357
|
+
registry whose `adminId` cannot be read (no `adminId`, an error or a timeout) has its choice
|
|
358
|
+
contexts refused the same way: answering a Canton Coin offer fails closed.
|
|
359
|
+
- LocalNet and other custom networks: `network` is `devnet` or `mainnet`, so the default registry is
|
|
360
|
+
DevNet's or MainNet's SV-1 Scan, which names that network's DSO. Pass your own Scan as
|
|
361
|
+
`registryUrl` (or pin `dsoParty`), or the party's Canton Coin is silently left out: Canton Coin of
|
|
362
|
+
any other DSO is never listed and does not set `cantonCoinUnavailable` (anyone can create
|
|
363
|
+
look-alike contracts, so they never raise a warning).
|
|
364
|
+
- Fail closed: while the DSO cannot be confirmed, all Canton Coin is left out (never every DSO's)
|
|
365
|
+
and `state.cantonCoinUnavailable` is true; everything else in the snapshot is complete. The store
|
|
366
|
+
then shows a `canton-coin` warning notice with Retry.
|
|
367
|
+
- Offers: `acceptTransferOffer`, `rejectTransferOffer` and `withdrawTransferOffer` answer a Canton
|
|
368
|
+
Coin offer like a DA one, with the choice context from the Canton Coin registry. A DA offer never
|
|
369
|
+
waits on Scan, and a Canton Coin offer never waits on DA's Utilities API.
|
|
370
|
+
|
|
371
|
+
```ts
|
|
372
|
+
for (const offer of view.state?.transferOffers.incoming ?? []) {
|
|
373
|
+
if (offer.registry === 'amulet')
|
|
374
|
+
await store.act({ type: 'acceptTransferOffer', transferOfferCid: offer.contractId });
|
|
375
|
+
}
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
- Canton Coin is not transferred, burnt or pre-approved through this wallet: `planTransfer`,
|
|
379
|
+
`requestBurn` and `createTransferPreapproval` (for the DSO as `instrumentAdmin`) refuse it with
|
|
380
|
+
`invalid-input`. Unpinned, `createTransferPreapproval` asks Canton Coin's registry for the DSO
|
|
381
|
+
(bounded like a snapshot's lookup); when the registry cannot confirm it, the DA preapproval is
|
|
382
|
+
still created, inert for Canton Coin, rather than making DA writes depend on Scan.
|
|
383
|
+
- Upgrading: `balances` and `holdings` now include Canton Coin, and `Amulet` sorts before most
|
|
384
|
+
instrument ids, so a picker that takes the first balance may now default to Canton Coin. Filter
|
|
385
|
+
pickers for transfer, burn and pre-approval with `isCantonCoin` (`balance.source === 'amulet'`):
|
|
386
|
+
|
|
387
|
+
```ts
|
|
388
|
+
const sendable = state.balances.filter((b) => !isCantonCoin(b) && Number(b.unlocked) > 0);
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
- New fields stay optional for objects built by hand: `Holding.source` and
|
|
392
|
+
`InstrumentBalance.source` (absent reads as `'da-registry'`), `TransferOffer.registry` (absent:
|
|
393
|
+
`'da'`), `TransferOffer.expired` (absent: not expired), `TransferOffer.lockedHoldingCid`,
|
|
394
|
+
`InstrumentBalance.lockedInExpiredOffers` and `.lockedInExpiredLocks`, `Holding.lockExpiresAt`,
|
|
395
|
+
`MintOffer.memo` and `BurnRequest.memo` (absent: `null`) and `WalletState.cantonCoinUnavailable`.
|
|
396
|
+
The wallet always sets them (`lockedHoldingCid` only for a Canton Coin offer, `lockExpiresAt` only
|
|
397
|
+
for a Canton Coin lock with an absolute expiry).
|
|
398
|
+
- To send Canton Coin from a provider validator (a faucet), use
|
|
399
|
+
`ExternalPartyWalletBridge.offerProviderTransfer({ receiverPartyId, amount, idempotencyKey, expiresAt })`:
|
|
400
|
+
it settles at once when the receiver pre-approved Canton Coin, else it lands as an offer in the
|
|
401
|
+
receiver's inbox above. The validator deduplicates the key only within its deduplication window
|
|
402
|
+
(24 h by default), so persist the key with its `expiresAt` (at most that window away), retry with
|
|
403
|
+
both unchanged, and keep your own record of the outcome if a key must never send twice.
|
|
404
|
+
|
|
235
405
|
### The ownership routes
|
|
236
406
|
|
|
237
407
|
`store.act({ type: 'proveOwnership', challengeUrl, verifyUrl })` is the browser half of an ownership
|
|
@@ -2,6 +2,11 @@ import { z } from 'zod';
|
|
|
2
2
|
import { type BaseClient } from '../../../../../../core';
|
|
3
3
|
import type { paths } from '../../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi';
|
|
4
4
|
type GeneratedResponse = paths['/v2/parties/external/allocate']['post']['responses']['200']['content']['application/json'];
|
|
5
|
+
/**
|
|
6
|
+
* Participant user id, checked with Canton's own `User.id` rule (non-empty, at most 128 characters, each an ASCII
|
|
7
|
+
* alphanumeric or one of "@^$.!`-#+'~_|:()") after trimming, so the SDK refuses what the ledger would refuse.
|
|
8
|
+
*/
|
|
9
|
+
export declare const CantonUserIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
5
10
|
export declare const AllocateExternalPartyParamsSchema: z.ZodObject<{
|
|
6
11
|
synchronizer: z.ZodString;
|
|
7
12
|
onboardingTransactions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -22,6 +27,7 @@ export declare const AllocateExternalPartyParamsSchema: z.ZodObject<{
|
|
|
22
27
|
signingAlgorithmSpec: z.ZodString;
|
|
23
28
|
}, z.core.$strip>>>;
|
|
24
29
|
identityProviderId: z.ZodString;
|
|
30
|
+
userId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
25
31
|
}, z.core.$strip>;
|
|
26
32
|
export type AllocateExternalPartyParams = z.infer<typeof AllocateExternalPartyParamsSchema>;
|
|
27
33
|
export type AllocateExternalPartyResponse = GeneratedResponse;
|
|
@@ -29,8 +35,8 @@ export type AllocateExternalPartyResponse = GeneratedResponse;
|
|
|
29
35
|
* Allocate a new external party
|
|
30
36
|
*
|
|
31
37
|
* This endpoint completes the onboarding of an external party by submitting the topology transactions and signatures.
|
|
32
|
-
* The topology transactions and multi-hash should be obtained from the generate-topology
|
|
33
|
-
*
|
|
38
|
+
* The topology transactions and multi-hash should be obtained from the generate-topology endpoint and signed with the
|
|
39
|
+
* external party's private key.
|
|
34
40
|
*
|
|
35
41
|
* @example
|
|
36
42
|
* ```typescript
|
|
@@ -80,6 +86,7 @@ export declare const AllocateExternalParty: new (client: BaseClient) => import("
|
|
|
80
86
|
signingAlgorithmSpec: string;
|
|
81
87
|
}[] | undefined;
|
|
82
88
|
identityProviderId: string;
|
|
89
|
+
userId?: string | undefined;
|
|
83
90
|
}, {
|
|
84
91
|
partyId: string;
|
|
85
92
|
}, import("../../../../../..").OperationExecuteOptions<{
|
|
@@ -102,6 +109,7 @@ export declare const AllocateExternalParty: new (client: BaseClient) => import("
|
|
|
102
109
|
signingAlgorithmSpec: string;
|
|
103
110
|
}[] | undefined;
|
|
104
111
|
identityProviderId: string;
|
|
112
|
+
userId?: string | undefined;
|
|
105
113
|
}>>;
|
|
106
114
|
export {};
|
|
107
115
|
//# sourceMappingURL=allocate-external-party.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocate-external-party.d.ts","sourceRoot":"","sources":["../../../../../../../../src/clients/ledger-json-api/operations/v2/parties/external/allocate-external-party.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,UAAU,EAAsB,MAAM,wBAAwB,CAAC;AAC7E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8GAA8G,CAAC;AAI1I,KAAK,iBAAiB,GACpB,KAAK,CAAC,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"allocate-external-party.d.ts","sourceRoot":"","sources":["../../../../../../../../src/clients/ledger-json-api/operations/v2/parties/external/allocate-external-party.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,UAAU,EAAsB,MAAM,wBAAwB,CAAC;AAC7E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8GAA8G,CAAC;AAI1I,KAAK,iBAAiB,GACpB,KAAK,CAAC,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AA2BpG;;;GAGG;AACH,eAAO,MAAM,kBAAkB,wDAS3B,CAAC;AAGL,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;iBAc5C,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,MAAM,MAAM,6BAA6B,GAAG,iBAAiB,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAahC,CAAC"}
|
package/build/src/clients/ledger-json-api/operations/v2/parties/external/allocate-external-party.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllocateExternalParty = exports.AllocateExternalPartyParamsSchema = void 0;
|
|
3
|
+
exports.AllocateExternalParty = exports.AllocateExternalPartyParamsSchema = exports.CantonUserIdSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const core_1 = require("../../../../../../core");
|
|
6
6
|
// Schema for signature
|
|
@@ -20,6 +20,24 @@ const SignedTransactionSchema = zod_1.z.union([
|
|
|
20
20
|
transaction: zod_1.z.string(),
|
|
21
21
|
}),
|
|
22
22
|
]);
|
|
23
|
+
/** Longest participant user id Canton accepts (Ledger API `User.id`). */
|
|
24
|
+
const MAX_USER_ID_LENGTH = 128;
|
|
25
|
+
/** Characters Canton allows in a participant user id: ASCII alphanumerics and the symbols "@^$.!`-#+'~_|:()". */
|
|
26
|
+
const USER_ID_CHARACTERS = /^[a-zA-Z0-9@^$.!`\-#+'~_|:()]*$/;
|
|
27
|
+
/**
|
|
28
|
+
* Participant user id, checked with Canton's own `User.id` rule (non-empty, at most 128 characters, each an ASCII
|
|
29
|
+
* alphanumeric or one of "@^$.!`-#+'~_|:()") after trimming, so the SDK refuses what the ledger would refuse.
|
|
30
|
+
*/
|
|
31
|
+
exports.CantonUserIdSchema = zod_1.z
|
|
32
|
+
.string()
|
|
33
|
+
.transform((value) => value.trim())
|
|
34
|
+
.refine((value) => value.length > 0, { message: 'userId must not be empty' })
|
|
35
|
+
.refine((value) => value.length <= MAX_USER_ID_LENGTH, {
|
|
36
|
+
message: `userId must be at most ${MAX_USER_ID_LENGTH} characters`,
|
|
37
|
+
})
|
|
38
|
+
.refine((value) => USER_ID_CHARACTERS.test(value), {
|
|
39
|
+
message: "userId may contain only ASCII letters, digits and the symbols @^$.!`-#+'~_|:()",
|
|
40
|
+
});
|
|
23
41
|
// Schema for the parameters
|
|
24
42
|
exports.AllocateExternalPartyParamsSchema = zod_1.z.object({
|
|
25
43
|
/** Synchronizer ID on which to onboard the party */
|
|
@@ -30,13 +48,18 @@ exports.AllocateExternalPartyParamsSchema = zod_1.z.object({
|
|
|
30
48
|
multiHashSignatures: zod_1.z.array(SignatureSchema).optional(),
|
|
31
49
|
/** Identity provider ID. If not set, assume the party is managed by the default identity provider. */
|
|
32
50
|
identityProviderId: zod_1.z.string(),
|
|
51
|
+
/**
|
|
52
|
+
* Participant user that gets `CanActAs` on the new party (sent as `userId`). Trimmed, then checked with Canton's user
|
|
53
|
+
* id rule ({@link CantonUserIdSchema}). Omit it to grant no user rights (the ledger's default).
|
|
54
|
+
*/
|
|
55
|
+
userId: exports.CantonUserIdSchema.optional(),
|
|
33
56
|
});
|
|
34
57
|
/**
|
|
35
58
|
* Allocate a new external party
|
|
36
59
|
*
|
|
37
60
|
* This endpoint completes the onboarding of an external party by submitting the topology transactions and signatures.
|
|
38
|
-
* The topology transactions and multi-hash should be obtained from the generate-topology
|
|
39
|
-
*
|
|
61
|
+
* The topology transactions and multi-hash should be obtained from the generate-topology endpoint and signed with the
|
|
62
|
+
* external party's private key.
|
|
40
63
|
*
|
|
41
64
|
* @example
|
|
42
65
|
* ```typescript
|
|
@@ -77,6 +100,7 @@ exports.AllocateExternalParty = (0, core_1.createApiOperation)({
|
|
|
77
100
|
...(params.multiHashSignatures && {
|
|
78
101
|
multiHashSignatures: params.multiHashSignatures,
|
|
79
102
|
}),
|
|
103
|
+
...(params.userId !== undefined ? { userId: params.userId } : {}),
|
|
80
104
|
}),
|
|
81
105
|
});
|
|
82
106
|
//# sourceMappingURL=allocate-external-party.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocate-external-party.js","sourceRoot":"","sources":["../../../../../../../../src/clients/ledger-json-api/operations/v2/parties/external/allocate-external-party.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAA6E;AAQ7E,uBAAuB;AACvB,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,oBAAoB,EAAE,OAAC,CAAC,MAAM,EAAE;CACjC,CAAC,CAAC;AAEH,uFAAuF;AACvF,MAAM,uBAAuB,GAAG,OAAC,CAAC,KAAK,CAAC;IACtC,OAAC,CAAC,MAAM,CAAC;QACP,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;QACvB,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,eAAe,CAAC;KACrC,CAAC;IACF,OAAC,CAAC,MAAM,CAAC;QACP,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;KACxB,CAAC;CACH,CAAC,CAAC;AAEH,4BAA4B;AACf,QAAA,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,oDAAoD;IACpD,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,4FAA4F;IAC5F,sBAAsB,EAAE,OAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;IACxD,+FAA+F;IAC/F,mBAAmB,EAAE,OAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE;IACxD,sGAAsG;IACtG,kBAAkB,EAAE,OAAC,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"allocate-external-party.js","sourceRoot":"","sources":["../../../../../../../../src/clients/ledger-json-api/operations/v2/parties/external/allocate-external-party.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAA6E;AAQ7E,uBAAuB;AACvB,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,oBAAoB,EAAE,OAAC,CAAC,MAAM,EAAE;CACjC,CAAC,CAAC;AAEH,uFAAuF;AACvF,MAAM,uBAAuB,GAAG,OAAC,CAAC,KAAK,CAAC;IACtC,OAAC,CAAC,MAAM,CAAC;QACP,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;QACvB,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,eAAe,CAAC;KACrC,CAAC;IACF,OAAC,CAAC,MAAM,CAAC;QACP,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;KACxB,CAAC;CACH,CAAC,CAAC;AAEH,yEAAyE;AACzE,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAE/B,iHAAiH;AACjH,MAAM,kBAAkB,GAAG,iCAAiC,CAAC;AAE7D;;;GAGG;AACU,QAAA,kBAAkB,GAAG,OAAC;KAChC,MAAM,EAAE;KACR,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI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;QAC7C,sBAAsB,EAAE,MAAM,CAAC,sBAAsB;QACrD,GAAG,CAAC,MAAM,CAAC,mBAAmB,IAAI;YAChC,mBAAmB,EAAE,MAAM,CAAC,mBAAmB;SAChD,CAAC;QACF,GAAG,CAAC,MAAM,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAClE,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -9,6 +9,6 @@ exports.DeleteUserParamsSchema = zod_1.z.object({
|
|
|
9
9
|
exports.DeleteUser = (0, core_1.createApiOperation)({
|
|
10
10
|
paramsSchema: exports.DeleteUserParamsSchema,
|
|
11
11
|
method: 'DELETE',
|
|
12
|
-
buildUrl: (params, apiUrl) => `${apiUrl}/v2/users/${params.userId}`,
|
|
12
|
+
buildUrl: (params, apiUrl) => `${apiUrl}/v2/users/${encodeURIComponent(params.userId)}`,
|
|
13
13
|
});
|
|
14
14
|
//# sourceMappingURL=delete-user.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-user.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/delete-user.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAAyD;AAK5C,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAKU,QAAA,UAAU,GAAG,IAAA,yBAAkB,EAAuC;IACjF,YAAY,EAAE,QAAA,sBAAsB;IACpC,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,MAAM,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"delete-user.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/delete-user.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAAyD;AAK5C,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAKU,QAAA,UAAU,GAAG,IAAA,yBAAkB,EAAuC;IACjF,YAAY,EAAE,QAAA,sBAAsB;IACpC,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;CACxF,CAAC,CAAC"}
|
|
@@ -19,7 +19,7 @@ exports.GetUser = (0, core_1.createApiOperation)({
|
|
|
19
19
|
paramsSchema: exports.GetUserParamsSchema,
|
|
20
20
|
method: 'GET',
|
|
21
21
|
buildUrl: (params, apiUrl) => {
|
|
22
|
-
const baseUrl = `${apiUrl}/v2/users/${params.userId}`;
|
|
22
|
+
const baseUrl = `${apiUrl}/v2/users/${encodeURIComponent(params.userId)}`;
|
|
23
23
|
const queryParams = new URLSearchParams();
|
|
24
24
|
// Always pass empty string for identity-provider-id
|
|
25
25
|
queryParams.append('identity-provider-id', '');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/get-user.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAAyD;AAK5C,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAKH;;;;;;;;GAQG;AACU,QAAA,OAAO,GAAG,IAAA,yBAAkB,EAAiC;IACxE,YAAY,EAAE,QAAA,mBAAmB;IACjC,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE;QAC3B,MAAM,OAAO,GAAG,GAAG,MAAM,aAAa,MAAM,CAAC,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"get-user.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/get-user.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAAyD;AAK5C,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAKH;;;;;;;;GAQG;AACU,QAAA,OAAO,GAAG,IAAA,yBAAkB,EAAiC;IACxE,YAAY,EAAE,QAAA,mBAAmB;IACjC,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE;QAC3B,MAAM,OAAO,GAAG,GAAG,MAAM,aAAa,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1E,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,oDAAoD;QACpD,WAAW,CAAC,MAAM,CAAC,sBAAsB,EAAE,EAAE,CAAC,CAAC;QAC/C,MAAM,WAAW,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;QAC3C,OAAO,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IAC7D,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -6,6 +6,7 @@ export type GrantUserRightsParams = z.infer<typeof GrantUserRightsParamsSchema>;
|
|
|
6
6
|
export type GrantUserRightsResponse = paths[Endpoint]['post']['responses']['200']['content']['application/json'];
|
|
7
7
|
export declare const GrantUserRights: new (client: import("../../../../..").BaseClient) => import("../../../../..").ApiOperation<{
|
|
8
8
|
userId: string;
|
|
9
|
+
identityProviderId?: string | undefined;
|
|
9
10
|
rights?: {
|
|
10
11
|
kind: {
|
|
11
12
|
CanActAs: {
|
|
@@ -51,6 +52,7 @@ export declare const GrantUserRights: new (client: import("../../../../..").Base
|
|
|
51
52
|
newlyGrantedRights?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["Right"][];
|
|
52
53
|
}, import("../../../../..").OperationExecuteOptions<{
|
|
53
54
|
userId: string;
|
|
55
|
+
identityProviderId?: string | undefined;
|
|
54
56
|
rights?: {
|
|
55
57
|
kind: {
|
|
56
58
|
CanActAs: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grant-user-rights.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/grant-user-rights.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AACvI,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,KAAK,QAAQ,GAAG,4BAA4B,CAAC;AAG7C,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEjH,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"grant-user-rights.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/grant-user-rights.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AACvI,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,KAAK,QAAQ,GAAG,4BAA4B,CAAC;AAG7C,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEjH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAU1B,CAAC"}
|
|
@@ -6,13 +6,12 @@ const operations_1 = require("../../../schemas/operations");
|
|
|
6
6
|
exports.GrantUserRights = (0, core_1.createApiOperation)({
|
|
7
7
|
paramsSchema: operations_1.GrantUserRightsParamsSchema,
|
|
8
8
|
method: 'POST',
|
|
9
|
-
buildUrl: (params, apiUrl) => `${apiUrl}/v2/users/${params.userId}/rights`,
|
|
10
|
-
|
|
11
|
-
//
|
|
12
|
-
|
|
13
|
-
({
|
|
9
|
+
buildUrl: (params, apiUrl) => `${apiUrl}/v2/users/${encodeURIComponent(params.userId)}/rights`,
|
|
10
|
+
// Canton API expects userId in both the URL path (encoded) AND the request body (as given). identityProviderId
|
|
11
|
+
// defaults to '' (the default identity provider); an identity-provider admin passes its own.
|
|
12
|
+
buildRequestData: (params) => ({
|
|
14
13
|
...params,
|
|
15
|
-
identityProviderId: '',
|
|
14
|
+
identityProviderId: params.identityProviderId ?? '',
|
|
16
15
|
}),
|
|
17
16
|
});
|
|
18
17
|
//# sourceMappingURL=grant-user-rights.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grant-user-rights.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/grant-user-rights.ts"],"names":[],"mappings":";;;AACA,8CAAyD;AAEzD,4DAA0E;AAS7D,QAAA,eAAe,GAAG,IAAA,yBAAkB,EAAiD;IAChG,YAAY,EAAE,wCAA2B;IACzC,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,MAAM,CAAC,MAAM,SAAS;
|
|
1
|
+
{"version":3,"file":"grant-user-rights.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/grant-user-rights.ts"],"names":[],"mappings":";;;AACA,8CAAyD;AAEzD,4DAA0E;AAS7D,QAAA,eAAe,GAAG,IAAA,yBAAkB,EAAiD;IAChG,YAAY,EAAE,wCAA2B;IACzC,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS;IAC9F,+GAA+G;IAC/G,6FAA6F;IAC7F,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC7B,GAAG,MAAM;QACT,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,IAAI,EAAE;KACpD,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -3,15 +3,18 @@ import type { paths } from '../../../../../generated/canton/community/ledger/led
|
|
|
3
3
|
type Endpoint = '/v2/users/{user-id}/rights';
|
|
4
4
|
export declare const ListUserRightsParamsSchema: z.ZodObject<{
|
|
5
5
|
userId: z.ZodString;
|
|
6
|
+
identityProviderId: z.ZodOptional<z.ZodString>;
|
|
6
7
|
}, z.core.$strip>;
|
|
7
8
|
export type ListUserRightsParams = z.infer<typeof ListUserRightsParamsSchema>;
|
|
8
9
|
export type ListUserRightsResponse = paths[Endpoint]['get']['responses']['200']['content']['application/json'];
|
|
9
10
|
export declare const ListUserRights: new (client: import("../../../../..").BaseClient) => import("../../../../..").ApiOperation<{
|
|
10
11
|
userId: string;
|
|
12
|
+
identityProviderId?: string | undefined;
|
|
11
13
|
}, {
|
|
12
14
|
rights?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["Right"][];
|
|
13
15
|
}, import("../../../../..").OperationExecuteOptions<{
|
|
14
16
|
userId: string;
|
|
17
|
+
identityProviderId?: string | undefined;
|
|
15
18
|
}>>;
|
|
16
19
|
export {};
|
|
17
20
|
//# sourceMappingURL=list-user-rights.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-user-rights.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/list-user-rights.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AAEvI,KAAK,QAAQ,GAAG,4BAA4B,CAAC;AAE7C,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"list-user-rights.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/list-user-rights.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AAEvI,KAAK,QAAQ,GAAG,4BAA4B,CAAC;AAE7C,eAAO,MAAM,0BAA0B;;;iBAIrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAE/G,eAAO,MAAM,cAAc;;;;;;;;GAWzB,CAAC"}
|
|
@@ -5,15 +5,17 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const core_1 = require("../../../../../core");
|
|
6
6
|
exports.ListUserRightsParamsSchema = zod_1.z.object({
|
|
7
7
|
userId: zod_1.z.string(),
|
|
8
|
+
/** The user's identity provider; omitted or empty: the default identity provider. */
|
|
9
|
+
identityProviderId: zod_1.z.string().optional(),
|
|
8
10
|
});
|
|
9
11
|
exports.ListUserRights = (0, core_1.createApiOperation)({
|
|
10
12
|
paramsSchema: exports.ListUserRightsParamsSchema,
|
|
11
13
|
method: 'GET',
|
|
12
14
|
buildUrl: (params, apiUrl) => {
|
|
13
|
-
const baseUrl = `${apiUrl}/v2/users/${params.userId}/rights`;
|
|
15
|
+
const baseUrl = `${apiUrl}/v2/users/${encodeURIComponent(params.userId)}/rights`;
|
|
14
16
|
const queryParams = new URLSearchParams();
|
|
15
|
-
//
|
|
16
|
-
queryParams.append('identity-provider-id', '');
|
|
17
|
+
// Empty string: the default identity provider.
|
|
18
|
+
queryParams.append('identity-provider-id', params.identityProviderId ?? '');
|
|
17
19
|
const queryString = queryParams.toString();
|
|
18
20
|
return queryString ? `${baseUrl}?${queryString}` : baseUrl;
|
|
19
21
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-user-rights.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/list-user-rights.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAAyD;AAK5C,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"list-user-rights.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/list-user-rights.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAAyD;AAK5C,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,qFAAqF;IACrF,kBAAkB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAKU,QAAA,cAAc,GAAG,IAAA,yBAAkB,EAA+C;IAC7F,YAAY,EAAE,QAAA,0BAA0B;IACxC,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE;QAC3B,MAAM,OAAO,GAAG,GAAG,MAAM,aAAa,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC;QACjF,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,+CAA+C;QAC/C,WAAW,CAAC,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAAC,kBAAkB,IAAI,EAAE,CAAC,CAAC;QAC5E,MAAM,WAAW,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;QAC3C,OAAO,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IAC7D,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -6,7 +6,7 @@ const operations_1 = require("../../../schemas/operations");
|
|
|
6
6
|
exports.RevokeUserRights = (0, core_1.createApiOperation)({
|
|
7
7
|
paramsSchema: operations_1.RevokeUserRightsParamsSchema,
|
|
8
8
|
method: 'PATCH',
|
|
9
|
-
buildUrl: (params, apiUrl) => `${apiUrl}/v2/users/${params.userId}/rights`,
|
|
9
|
+
buildUrl: (params, apiUrl) => `${apiUrl}/v2/users/${encodeURIComponent(params.userId)}/rights`,
|
|
10
10
|
// Always inject empty string for identityProviderId
|
|
11
11
|
buildRequestData: (params) => ({
|
|
12
12
|
...params,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revoke-user-rights.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.ts"],"names":[],"mappings":";;;AACA,8CAAyD;AAEzD,4DAA2E;AAS9D,QAAA,gBAAgB,GAAG,IAAA,yBAAkB,EAAmD;IACnG,YAAY,EAAE,yCAA4B;IAC1C,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,MAAM,CAAC,MAAM,SAAS;
|
|
1
|
+
{"version":3,"file":"revoke-user-rights.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.ts"],"names":[],"mappings":";;;AACA,8CAAyD;AAEzD,4DAA2E;AAS9D,QAAA,gBAAgB,GAAG,IAAA,yBAAkB,EAAmD;IACnG,YAAY,EAAE,yCAA4B;IAC1C,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS;IAC9F,oDAAoD;IACpD,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC7B,GAAG,MAAM;QACT,kBAAkB,EAAE,EAAE;KACvB,CAAC;CACH,CAAC,CAAC"}
|
package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.js
CHANGED
|
@@ -6,7 +6,7 @@ const operations_1 = require("../../../schemas/operations");
|
|
|
6
6
|
exports.UpdateUserIdentityProvider = (0, core_1.createApiOperation)({
|
|
7
7
|
paramsSchema: operations_1.UpdateUserIdentityProviderParamsSchema,
|
|
8
8
|
method: 'PATCH',
|
|
9
|
-
buildUrl: (params, apiUrl) => `${apiUrl}/v2/users/${params.userId}/identity-provider-id`,
|
|
9
|
+
buildUrl: (params, apiUrl) => `${apiUrl}/v2/users/${encodeURIComponent(params.userId)}/identity-provider-id`,
|
|
10
10
|
buildRequestData: (params) => {
|
|
11
11
|
const { userId: _userId, ...requestBody } = params;
|
|
12
12
|
return requestBody;
|
package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user-identity-provider.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.ts"],"names":[],"mappings":";;;AACA,8CAAyD;AAEzD,4DAAqF;AAUxE,QAAA,0BAA0B,GAAG,IAAA,yBAAkB,EAG1D;IACA,YAAY,EAAE,mDAAsC;IACpD,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,MAAM,CAAC,MAAM,uBAAuB;
|
|
1
|
+
{"version":3,"file":"update-user-identity-provider.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.ts"],"names":[],"mappings":";;;AACA,8CAAyD;AAEzD,4DAAqF;AAUxE,QAAA,0BAA0B,GAAG,IAAA,yBAAkB,EAG1D;IACA,YAAY,EAAE,mDAAsC;IACpD,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,uBAAuB;IAC5G,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE;QAC3B,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,WAAW,EAAE,GAAG,MAAM,CAAC;QACnD,OAAO,WAAW,CAAC;IACrB,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -6,7 +6,7 @@ const operations_1 = require("../../../schemas/operations");
|
|
|
6
6
|
exports.UpdateUser = (0, core_1.createApiOperation)({
|
|
7
7
|
paramsSchema: operations_1.UpdateUserParamsSchema,
|
|
8
8
|
method: 'PATCH',
|
|
9
|
-
buildUrl: (params, apiUrl) => `${apiUrl}/v2/users/${params.userId}`,
|
|
9
|
+
buildUrl: (params, apiUrl) => `${apiUrl}/v2/users/${encodeURIComponent(params.userId)}`,
|
|
10
10
|
buildRequestData: (params) => {
|
|
11
11
|
const { userId: _userId, ...requestBody } = params;
|
|
12
12
|
return requestBody;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/update-user.ts"],"names":[],"mappings":";;;AACA,8CAAyD;AAEzD,4DAAqE;AASxD,QAAA,UAAU,GAAG,IAAA,yBAAkB,EAAuC;IACjF,YAAY,EAAE,mCAAsB;IACpC,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,MAAM,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"update-user.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/update-user.ts"],"names":[],"mappings":";;;AACA,8CAAyD;AAEzD,4DAAqE;AASxD,QAAA,UAAU,GAAG,IAAA,yBAAkB,EAAuC;IACjF,YAAY,EAAE,mCAAsB;IACpC,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;IACvF,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE;QAC3B,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,WAAW,EAAE,GAAG,MAAM,CAAC;QACnD,OAAO,WAAW,CAAC;IACrB,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -62,10 +62,12 @@ export declare const UpdateUserParamsSchema: z.ZodObject<{
|
|
|
62
62
|
/** Schema for list user rights parameters. */
|
|
63
63
|
export declare const ListUserRightsParamsSchema: z.ZodObject<{
|
|
64
64
|
userId: z.ZodString;
|
|
65
|
+
identityProviderId: z.ZodOptional<z.ZodString>;
|
|
65
66
|
}, z.core.$strip>;
|
|
66
67
|
/** Schema for grant user rights parameters. */
|
|
67
68
|
export declare const GrantUserRightsParamsSchema: z.ZodObject<{
|
|
68
69
|
userId: z.ZodString;
|
|
70
|
+
identityProviderId: z.ZodOptional<z.ZodString>;
|
|
69
71
|
rights: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
70
72
|
kind: z.ZodUnion<readonly [z.ZodObject<{
|
|
71
73
|
CanActAs: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,wCAAwC;AACxC,eAAO,MAAM,qBAAqB;;;iBAKhC,CAAC;AAEH,yCAAyC;AACzC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmCjC,CAAC;AAEH,sCAAsC;AACtC,eAAO,MAAM,mBAAmB;;iBAG9B,CAAC;AAEH,yCAAyC;AACzC,eAAO,MAAM,sBAAsB;;iBAGjC,CAAC;AAEH,yCAAyC;AACzC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;iBA0BjC,CAAC;AAEH,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,wCAAwC;AACxC,eAAO,MAAM,qBAAqB;;;iBAKhC,CAAC;AAEH,yCAAyC;AACzC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmCjC,CAAC;AAEH,sCAAsC;AACtC,eAAO,MAAM,mBAAmB;;iBAG9B,CAAC;AAEH,yCAAyC;AACzC,eAAO,MAAM,sBAAsB;;iBAGjC,CAAC;AAEH,yCAAyC;AACzC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;iBA0BjC,CAAC;AAEH,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B;;;iBAKrC,CAAC;AAEH,+CAA+C;AAC/C,eAAO,MAAM,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|
88
88
|
/** User ID to list rights for. */
|
|
89
89
|
userId: base_1.NonEmptyStringSchema,
|
|
90
|
+
/** The user's identity provider; omitted or empty: the default identity provider. */
|
|
91
|
+
identityProviderId: zod_1.z.string().optional(),
|
|
90
92
|
});
|
|
91
93
|
/** Schema for grant user rights parameters. */
|
|
92
94
|
exports.GrantUserRightsParamsSchema = zod_1.z.object({
|
|
93
95
|
/** User ID to grant rights to. */
|
|
94
96
|
userId: base_1.NonEmptyStringSchema,
|
|
97
|
+
/** The user's identity provider; omitted or empty: the default identity provider. */
|
|
98
|
+
identityProviderId: zod_1.z.string().optional(),
|
|
95
99
|
/** Rights to grant (optional). */
|
|
96
100
|
rights: zod_1.z
|
|
97
101
|
.array(zod_1.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/users.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iCAA8C;AAE9C,wCAAwC;AAC3B,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,qDAAqD;IACrD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,mDAAmD;IACnD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAEH,yCAAyC;AAC5B,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,0BAA0B;IAC1B,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,uBAAuB;QACvB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;QACd,6CAA6C;QAC7C,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,uCAAuC;QACvC,aAAa,EAAE,OAAC,CAAC,OAAO,EAAE;QAC1B,gCAAgC;QAChC,QAAQ,EAA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AAC;AAEH,yCAAyC;AAC5B,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,yBAAyB;IACzB,MAAM,EAAE,2BAAoB;CAC7B,CAAC,CAAC;AAEH,yCAAyC;AAC5B,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,yBAAyB;IACzB,MAAM,EAAE,2BAAoB;IAC5B,0BAA0B;IAC1B,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,uBAAuB;QACvB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;QACd,6CAA6C;QAC7C,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,uCAAuC;QACvC,aAAa,EAAE,OAAC,CAAC,OAAO,EAAE;QAC1B,gCAAgC;QAChC,QAAQ,EAAE,OAAC;aACR,MAAM,CAAC;YACN,wDAAwD;YACxD,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;YAC3B,oCAAoC;YACpC,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC;SAC9C,CAAC;aACD,QAAQ,EAAE;KACd,CAAC;IACF,uCAAuC;IACvC,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC;QACnB,oBAAoB;QACpB,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;KAC3B,CAAC;CACH,CAAC,CAAC;AAEH,8CAA8C;AACjC,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,kCAAkC;IAClC,MAAM,EAAE,2BAAoB;
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/users.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iCAA8C;AAE9C,wCAAwC;AAC3B,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAA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