@fairmint/canton-node-sdk 0.0.307 → 0.0.309
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 +101 -0
- package/build/src/clients/ledger-json-api/openapi.d.ts +15 -0
- package/build/src/clients/ledger-json-api/openapi.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/openapi.js +3 -0
- package/build/src/clients/ledger-json-api/openapi.js.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit-reassignment.d.ts +16 -36
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit-reassignment.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.d.ts +30 -56
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.js +1 -3
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/completions.d.ts +78 -2
- package/build/src/clients/ledger-json-api/operations/v2/commands/completions.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-reassignment.d.ts +6 -22
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-reassignment.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts +88 -26
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.d.ts +29 -53
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.d.ts +57 -3
- package/build/src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/aggregate-parties.d.ts +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/aggregate-parties.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/external/allocate-external-party.d.ts +1 -1
- 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/generate-topology.d.ts +4 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/external/generate-topology.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/external/generate-topology.js +6 -0
- package/build/src/clients/ledger-json-api/operations/v2/parties/external/generate-topology.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-participant-id.d.ts +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-participant-id.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-party-details.d.ts +11 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-party-details.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/update-party-details.d.ts +12 -2
- package/build/src/clients/ledger-json-api/operations/v2/parties/update-party-details.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/active-contracts-request.d.ts +4 -2
- package/build/src/clients/ledger-json-api/operations/v2/state/active-contracts-request.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/active-contracts-request.js +5 -5
- package/build/src/clients/ledger-json-api/operations/v2/state/active-contracts-request.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-connected-synchronizers.d.ts +6 -2
- package/build/src/clients/ledger-json-api/operations/v2/state/get-connected-synchronizers.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-latest-pruned-offsets.d.ts +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-latest-pruned-offsets.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-ledger-end.d.ts +5 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-ledger-end.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.d.ts +234 -2
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.d.ts +234 -2
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-updates-page.d.ts +236 -2
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-updates-page.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.js +1 -2
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/create-user.d.ts +72 -12
- package/build/src/clients/ledger-json-api/operations/v2/users/create-user.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/delete-user.d.ts +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/delete-user.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/get-user.d.ts +14 -2
- package/build/src/clients/ledger-json-api/operations/v2/users/get-user.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.d.ts +58 -12
- 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/list-user-rights.d.ts +44 -2
- 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-users.d.ts +14 -2
- package/build/src/clients/ledger-json-api/operations/v2/users/list-users.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.d.ts +58 -12
- package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.d.ts +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user.d.ts +14 -2
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/commands.d.ts +19 -29
- package/build/src/clients/ledger-json-api/schemas/api/commands.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/commands.js +36 -17
- package/build/src/clients/ledger-json-api/schemas/api/commands.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/completions.d.ts +3 -0
- package/build/src/clients/ledger-json-api/schemas/api/completions.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/completions.js +4 -2
- package/build/src/clients/ledger-json-api/schemas/api/completions.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/contracts.d.ts +2 -2
- package/build/src/clients/ledger-json-api/schemas/api/contracts.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/created-event.d.ts +18 -4
- package/build/src/clients/ledger-json-api/schemas/api/created-event.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/created-event.js +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/dars.d.ts +3 -3
- package/build/src/clients/ledger-json-api/schemas/api/dars.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/interactive-submission.d.ts +71 -34
- package/build/src/clients/ledger-json-api/schemas/api/interactive-submission.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/interactive-submission.js +13 -10
- package/build/src/clients/ledger-json-api/schemas/api/interactive-submission.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/reassignment.d.ts +36 -52
- package/build/src/clients/ledger-json-api/schemas/api/reassignment.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/commands.d.ts +18 -62
- package/build/src/clients/ledger-json-api/schemas/operations/commands.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/dars.d.ts +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/dars.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/users.d.ts +243 -95
- 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 +18 -28
- package/build/src/clients/ledger-json-api/schemas/operations/users.js.map +1 -1
- package/build/src/utils/external-signing/execute-external-transaction.js +3 -1
- package/build/src/utils/external-signing/execute-external-transaction.js.map +1 -1
- package/build/src/utils/external-signing/external-party-onboarding.js +3 -1
- package/build/src/utils/external-signing/external-party-onboarding.js.map +1 -1
- package/build/src/utils/external-signing/prepare-external-transaction.d.ts +4 -1
- package/build/src/utils/external-signing/prepare-external-transaction.d.ts.map +1 -1
- package/build/src/utils/external-signing/prepare-external-transaction.js.map +1 -1
- package/build/src/utils/external-signing/prepared-transaction.d.ts +5 -4
- package/build/src/utils/external-signing/prepared-transaction.d.ts.map +1 -1
- package/build/src/utils/external-signing/prepared-transaction.js +11 -8
- package/build/src/utils/external-signing/prepared-transaction.js.map +1 -1
- package/build/src/utils/ledger/user-rights.d.ts.map +1 -1
- package/build/src/utils/ledger/user-rights.js +6 -3
- package/build/src/utils/ledger/user-rights.js.map +1 -1
- package/build/src/utils/token-standard/v2/constants.d.ts +51 -0
- package/build/src/utils/token-standard/v2/constants.d.ts.map +1 -0
- package/build/src/utils/token-standard/v2/constants.js +54 -0
- package/build/src/utils/token-standard/v2/constants.js.map +1 -0
- package/build/src/utils/token-standard/v2/holdings.d.ts +0 -1
- package/build/src/utils/token-standard/v2/holdings.d.ts.map +1 -1
- package/build/src/utils/token-standard/v2/holdings.js +3 -3
- package/build/src/utils/token-standard/v2/holdings.js.map +1 -1
- package/build/src/utils/token-standard/v2/index.d.ts +1 -0
- package/build/src/utils/token-standard/v2/index.d.ts.map +1 -1
- package/build/src/utils/token-standard/v2/index.js +1 -0
- package/build/src/utils/token-standard/v2/index.js.map +1 -1
- package/build/src/wallets/amulet/registry.d.ts.map +1 -1
- package/build/src/wallets/amulet/registry.js +10 -91
- package/build/src/wallets/amulet/registry.js.map +1 -1
- package/build/src/wallets/cip103.d.ts.map +1 -1
- package/build/src/wallets/cip103.js +5 -1
- package/build/src/wallets/cip103.js.map +1 -1
- package/build/src/wallets/commands.d.ts +6 -0
- package/build/src/wallets/commands.d.ts.map +1 -1
- package/build/src/wallets/commands.js +22 -0
- package/build/src/wallets/commands.js.map +1 -1
- package/build/src/wallets/contracts.d.ts +80 -5
- package/build/src/wallets/contracts.d.ts.map +1 -1
- package/build/src/wallets/contracts.js +174 -2
- package/build/src/wallets/contracts.js.map +1 -1
- package/build/src/wallets/errors.d.ts +8 -1
- package/build/src/wallets/errors.d.ts.map +1 -1
- package/build/src/wallets/errors.js +5 -1
- package/build/src/wallets/errors.js.map +1 -1
- package/build/src/wallets/holding-view.d.ts +33 -1
- package/build/src/wallets/holding-view.d.ts.map +1 -1
- package/build/src/wallets/holding-view.js +49 -1
- package/build/src/wallets/holding-view.js.map +1 -1
- package/build/src/wallets/holdings.d.ts +38 -8
- package/build/src/wallets/holdings.d.ts.map +1 -1
- package/build/src/wallets/holdings.js +49 -9
- package/build/src/wallets/holdings.js.map +1 -1
- package/build/src/wallets/index.d.ts +11 -2
- package/build/src/wallets/index.d.ts.map +1 -1
- package/build/src/wallets/index.js +25 -2
- package/build/src/wallets/index.js.map +1 -1
- package/build/src/wallets/registry-http.d.ts +32 -0
- package/build/src/wallets/registry-http.d.ts.map +1 -0
- package/build/src/wallets/registry-http.js +105 -0
- package/build/src/wallets/registry-http.js.map +1 -0
- package/build/src/wallets/store.d.ts +3 -0
- package/build/src/wallets/store.d.ts.map +1 -1
- package/build/src/wallets/store.js +2 -1
- package/build/src/wallets/store.js.map +1 -1
- package/build/src/wallets/token-registry.d.ts +126 -0
- package/build/src/wallets/token-registry.d.ts.map +1 -0
- package/build/src/wallets/token-registry.js +249 -0
- package/build/src/wallets/token-registry.js.map +1 -0
- package/build/src/wallets/tokens.d.ts +16 -4
- package/build/src/wallets/tokens.d.ts.map +1 -1
- package/build/src/wallets/tokens.js +21 -15
- package/build/src/wallets/tokens.js.map +1 -1
- package/build/src/wallets/wallet.d.ts +30 -0
- package/build/src/wallets/wallet.d.ts.map +1 -1
- package/build/src/wallets/wallet.js +377 -18
- package/build/src/wallets/wallet.js.map +1 -1
- package/package.json +3 -2
- package/build/src/generated/canton/community/app/src/pack/examples/09-json-api/typescript/openapi.d.ts +0 -8798
- package/build/src/generated/canton/community/app/src/pack/examples/09-json-api/typescript/openapi.d.ts.map +0 -1
- package/build/src/generated/canton/community/app/src/pack/examples/09-json-api/typescript/openapi.js +0 -7
- package/build/src/generated/canton/community/app/src/pack/examples/09-json-api/typescript/openapi.js.map +0 -1
- package/build/src/generated/canton/community/app/src/pack/examples/14-multisync/openapi.d.ts +0 -8798
- package/build/src/generated/canton/community/app/src/pack/examples/14-multisync/openapi.d.ts.map +0 -1
- package/build/src/generated/canton/community/app/src/pack/examples/14-multisync/openapi.js +0 -7
- package/build/src/generated/canton/community/app/src/pack/examples/14-multisync/openapi.js.map +0 -1
- package/build/src/generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi.d.ts +0 -8798
- package/build/src/generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi.d.ts.map +0 -1
- package/build/src/generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi.js +0 -7
- package/build/src/generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi.js.map +0 -1
package/README.md
CHANGED
|
@@ -40,6 +40,24 @@ main().catch((error: unknown) => {
|
|
|
40
40
|
});
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
## Ledger JSON API version
|
|
44
|
+
|
|
45
|
+
The Ledger JSON API client targets Canton's Ledger JSON API **3.7** (MainNet and DevNet run 3.7) and
|
|
46
|
+
only that version: requests and response types follow the 3.7 spec, and older participants are not
|
|
47
|
+
supported. Its OpenAPI types come from Digital Asset's
|
|
48
|
+
[`@canton-network/core-ledger-client-types`](https://www.npmjs.com/package/@canton-network/core-ledger-client-types)
|
|
49
|
+
(namespace `v3_7`), exact-pinned as a dependency. That package is ESM, but the SDK only imports its
|
|
50
|
+
types (with `resolution-mode: 'import'`), so nothing loads it at runtime; it is a dependency so that
|
|
51
|
+
the SDK's declarations resolve for consumers. Interactive submission prepares and executes under
|
|
52
|
+
hashing scheme V2 (the default), V3 or V4; V4 needs a synchronizer on protocol version 36 or later.
|
|
53
|
+
The declarations use import attributes, so consumers need TypeScript 5.3 or later.
|
|
54
|
+
|
|
55
|
+
Request shapes follow the 3.7 spec: a user right's fields sit under `value`
|
|
56
|
+
(`{ CanActAs: { value: { party } } }`, with `Empty` taking none), and so do a reassignment command's
|
|
57
|
+
(`{ UnassignCommand: { value: { contractId, source, target } } }`). Assign and unassign commands go
|
|
58
|
+
only in `reassignmentCommands` (`submitAndWaitForReassignment`, `asyncSubmitReassignment`), not in
|
|
59
|
+
the `commands` of a submission.
|
|
60
|
+
|
|
43
61
|
## Generic Ledger JSON API requests
|
|
44
62
|
|
|
45
63
|
`LedgerJsonApiClient.request` takes a call in the shape of DA's `LedgerProvider`
|
|
@@ -608,6 +626,89 @@ const store = createWalletStore({
|
|
|
608
626
|
(24 h by default), so persist the key with its `expiresAt` (at most that window away), retry with
|
|
609
627
|
both unchanged, and keep your own record of the outcome if a key must never send twice.
|
|
610
628
|
|
|
629
|
+
### Token-standard registries
|
|
630
|
+
|
|
631
|
+
Beside DA's registry and Canton Coin, a wallet reads any CIP-56 / CIP-0112 registry it is given by
|
|
632
|
+
URL and admin party. The SDK implements the ratified token standard only; a registry's own,
|
|
633
|
+
non-standard interfaces are left to a library outside the SDK, which reads their raw views (see
|
|
634
|
+
`extraInterfaceIds` below):
|
|
635
|
+
|
|
636
|
+
```ts
|
|
637
|
+
const store = createWalletStore({
|
|
638
|
+
session,
|
|
639
|
+
registries: [
|
|
640
|
+
{
|
|
641
|
+
url: 'https://registry.example', // serves /registry/... at its root
|
|
642
|
+
adminParty: 'registry::1220…', // pinned: the instruments' admin
|
|
643
|
+
name: 'The example registry', // how errors name it
|
|
644
|
+
requiredSignatories: ['issuer::1220…'], // optional: further parties that must have signed
|
|
645
|
+
trustedTemplates: ['#my-package:My.Module:MyHolding'], // optional: narrow to reviewed templates
|
|
646
|
+
interfaces: ['holding-v2', 'transfer-instruction-v2'], // optional: default all of them
|
|
647
|
+
// optional: further interfaces whose raw views are passed on, never decoded
|
|
648
|
+
extraInterfaceIds: ['#example-profile-v1:Example.Profile.V1:Profile'],
|
|
649
|
+
},
|
|
650
|
+
],
|
|
651
|
+
});
|
|
652
|
+
```
|
|
653
|
+
|
|
654
|
+
- Trust: no template outside DA's and Canton Coin's is trusted blanket-wide. A contract counts only
|
|
655
|
+
when its instrument admin is a configured registry, that admin and the registry's
|
|
656
|
+
`requiredSignatories` signed it, and it is of a `trustedTemplates` entry when those are set. The
|
|
657
|
+
owner's signature is not required: CIP-0112 lets a registry keep a holding in its custody.
|
|
658
|
+
- The admin is pinned and the registry's `adminId` (`GET /registry/metadata/v1/info`) is checked
|
|
659
|
+
against it: a registry of another admin, or one that cannot be read, has its instrument metadata
|
|
660
|
+
ignored and its choice contexts refused with a `RegistryResponseError` before anything is
|
|
661
|
+
submitted.
|
|
662
|
+
- Holdings are read through `HoldingV2` (else `HoldingV1`) as `source: 'token-standard'`; each held
|
|
663
|
+
instrument is looked up by id at its registry (`GET /registry/metadata/v1/instruments/{id}`). The
|
|
664
|
+
wallet does not transfer or burn a configured registry's tokens (`WalletToken.isTokenStandard`;
|
|
665
|
+
`planTransfer` and `requestBurn` refuse them, decided by the instrument the party holds, so a DA
|
|
666
|
+
instrument of the same admin stays on the DA path).
|
|
667
|
+
- Transfer instructions are read as `transferOffers` with `registry: 'token-standard'` (fields from
|
|
668
|
+
the V2 view, else the V1 one; `standards` lists the versions the contract implements) and answered
|
|
669
|
+
through V1 whenever the contract implements it: `TransferInstruction_*` with `{extraArgs}` on
|
|
670
|
+
`#splice-api-token-transfer-instruction-v1` and the registry's
|
|
671
|
+
`/registry/transfer-instruction/v1/{cid}/choice-contexts/{action}`. So a holder's signer needs no
|
|
672
|
+
policy beyond the CIP-56 V1 choices. A contract that implements only V2 is answered through V2
|
|
673
|
+
(`{actors: [party], extraArgs}`, `/registry/transfer-instruction/v2/...`). When the contract
|
|
674
|
+
implements V2, its `availableActions` must let the party act alone, or the action is refused
|
|
675
|
+
first.
|
|
676
|
+
- Mint offers are incoming transfer offers with `mint: true`: their sender is the CIP-0112 mint
|
|
677
|
+
account (the stub party `TOKEN_STANDARD_V1_SPECIAL_ACCOUNT_OWNER_STUB` through V1), reported as
|
|
678
|
+
the instrument admin. The holder accepts or rejects them through V1 like any offer. The admin's
|
|
679
|
+
wallet sees them as outgoing and withdraws them through V2 only (their V1 sender is the stub
|
|
680
|
+
party, so a V1 withdrawal is refused on the ledger); a mint offer that implements only V1 cannot
|
|
681
|
+
be withdrawn. A mint offer to the admin itself is both incoming and outgoing for it.
|
|
682
|
+
- A V1-only instruction keeps its V1 status (`v1Status`): it can be accepted or rejected only while
|
|
683
|
+
`pending-receiver-acceptance`; while `pending-internal-workflow` only its sender may withdraw it.
|
|
684
|
+
- What is read: the interfaces the configured registries name in `interfaces` (all of
|
|
685
|
+
`TOKEN_STANDARD_INTERFACES` by default), each with its view. Name only those the registry uses.
|
|
686
|
+
The V1 interfaces' filters match Canton Coin's holdings and instructions too, so they count toward
|
|
687
|
+
the participant's list limit even with `cantonCoin: false`; an instruction read without its V1
|
|
688
|
+
view is answered through V2. When the participant refuses a read because it does not have an
|
|
689
|
+
interface's package (`PACKAGE_NAMES_NOT_FOUND`, `TEMPLATES_OR_INTERFACES_NOT_FOUND`), the wallet
|
|
690
|
+
reads again without the registry interfaces the refusal names (all of them when it names none), so
|
|
691
|
+
DA and Canton Coin state still load; `state.registryInterfacesUnavailable` names what was left out
|
|
692
|
+
(a standard interface by its name, an extra one by its id). A wallet without `registries` reads
|
|
693
|
+
exactly as before, and a registry without `extraInterfaceIds` reads standard interfaces only.
|
|
694
|
+
- Extra interface views: `extraInterfaceIds` takes full interface ids (`#package-name:Module:Entity`
|
|
695
|
+
or `<package-id>:Module:Entity`). The state snapshot asks for their views beside the standard
|
|
696
|
+
ones, and each holding and transfer offer of that registry carries the views it has as
|
|
697
|
+
`interfaceViews`, keyed by the id as configured. The wallet neither decodes nor checks them; which
|
|
698
|
+
contracts count is decided by the standard views and the trust rules above. The ledger reports a
|
|
699
|
+
view by package id, so a view is matched to its id by `Module:Entity`: two different configured
|
|
700
|
+
ids (in one registry or across registries) that share a `Module:Entity` are refused. Decode them
|
|
701
|
+
with the library that defines the interface:
|
|
702
|
+
|
|
703
|
+
```ts
|
|
704
|
+
const PROFILE = '#example-profile-v1:Example.Profile.V1:Profile';
|
|
705
|
+
const state = await wallet.loadState();
|
|
706
|
+
for (const holding of state.holdings) {
|
|
707
|
+
const raw = holding.interfaceViews?.[PROFILE]; // undefined when the contract does not implement it
|
|
708
|
+
if (raw !== undefined) showProfile(decodeExampleProfile(raw)); // your library, not the SDK
|
|
709
|
+
}
|
|
710
|
+
```
|
|
711
|
+
|
|
611
712
|
### The ownership routes
|
|
612
713
|
|
|
613
714
|
`store.act({ type: 'proveOwnership', challengeUrl, verifyUrl })` is the browser half of an ownership
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ledger JSON API OpenAPI types (Canton 3.7), from Digital Asset's `@canton-network/core-ledger-client-types`.
|
|
3
|
+
*
|
|
4
|
+
* Type-only: nothing here loads the package at runtime. The package is ESM, so the import carries `resolution-mode:
|
|
5
|
+
* 'import'`; without it, CommonJS consumers on `node16`/`nodenext` resolution get TS1541 when they check this package's
|
|
6
|
+
* declarations.
|
|
7
|
+
*/
|
|
8
|
+
import type { v3_7 } from '@canton-network/core-ledger-client-types' with { 'resolution-mode': 'import' };
|
|
9
|
+
/** Ledger JSON API 3.7 paths. */
|
|
10
|
+
export type paths = v3_7.paths;
|
|
11
|
+
/** Ledger JSON API 3.7 components (schemas, responses, parameters). */
|
|
12
|
+
export type components = v3_7.components;
|
|
13
|
+
/** Ledger JSON API 3.7 operations. */
|
|
14
|
+
export type operations = v3_7.operations;
|
|
15
|
+
//# sourceMappingURL=openapi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../../../../src/clients/ledger-json-api/openapi.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0CAA0C,CAAC,OAAO,iBAAiB,EAAE,QAAQ,EAAE,CAAC;AAE1G,iCAAiC;AACjC,MAAM,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;AAC/B,uEAAuE;AACvE,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;AACzC,sCAAsC;AACtC,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openapi.js","sourceRoot":"","sources":["../../../../src/clients/ledger-json-api/openapi.ts"],"names":[],"mappings":""}
|
package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit-reassignment.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type { paths } from '
|
|
2
|
+
import type { paths } from '../../../../openapi';
|
|
3
3
|
declare const endpoint = "/v2/commands/async/submit-reassignment";
|
|
4
4
|
export declare const AsyncSubmitReassignmentParamsSchema: z.ZodObject<{
|
|
5
5
|
reassignmentCommands: z.ZodObject<{
|
|
@@ -9,19 +9,15 @@ export declare const AsyncSubmitReassignmentParamsSchema: z.ZodObject<{
|
|
|
9
9
|
submitter: z.ZodString;
|
|
10
10
|
submissionId: z.ZodOptional<z.ZodString>;
|
|
11
11
|
commands: z.ZodArray<z.ZodObject<{
|
|
12
|
-
command: z.ZodUnion<readonly [z.
|
|
13
|
-
AssignCommand:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}, z.core.$
|
|
19
|
-
UnassignCommand:
|
|
20
|
-
|
|
21
|
-
source: z.ZodString;
|
|
22
|
-
target: z.ZodString;
|
|
23
|
-
}, z.core.$strict>;
|
|
24
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
12
|
+
command: z.ZodUnion<readonly [z.ZodType<{
|
|
13
|
+
AssignCommand: import("../../../../openapi").components['schemas']['AssignCommand'];
|
|
14
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
15
|
+
AssignCommand: import("../../../../openapi").components['schemas']['AssignCommand'];
|
|
16
|
+
}, unknown>>, z.ZodType<{
|
|
17
|
+
UnassignCommand: import("../../../../openapi").components['schemas']['UnassignCommand'];
|
|
18
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
19
|
+
UnassignCommand: import("../../../../openapi").components['schemas']['UnassignCommand'];
|
|
20
|
+
}, unknown>>, z.ZodObject<{
|
|
25
21
|
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
26
22
|
}, z.core.$strip>]>;
|
|
27
23
|
}, z.core.$strip>>;
|
|
@@ -39,19 +35,11 @@ export declare const AsyncSubmitReassignment: new (client: import("../../../../.
|
|
|
39
35
|
submissionId?: string | undefined;
|
|
40
36
|
commands: {
|
|
41
37
|
command: {
|
|
42
|
-
|
|
43
|
-
reassignmentId: string;
|
|
44
|
-
source: string;
|
|
45
|
-
target: string;
|
|
46
|
-
};
|
|
38
|
+
Empty: Record<string, never>;
|
|
47
39
|
} | {
|
|
48
|
-
|
|
49
|
-
contractId: string;
|
|
50
|
-
source: string;
|
|
51
|
-
target: string;
|
|
52
|
-
};
|
|
40
|
+
AssignCommand: import("../../../../openapi").components['schemas']['AssignCommand'];
|
|
53
41
|
} | {
|
|
54
|
-
|
|
42
|
+
UnassignCommand: import("../../../../openapi").components['schemas']['UnassignCommand'];
|
|
55
43
|
};
|
|
56
44
|
}[];
|
|
57
45
|
};
|
|
@@ -64,19 +52,11 @@ export declare const AsyncSubmitReassignment: new (client: import("../../../../.
|
|
|
64
52
|
submissionId?: string | undefined;
|
|
65
53
|
commands: {
|
|
66
54
|
command: {
|
|
67
|
-
|
|
68
|
-
reassignmentId: string;
|
|
69
|
-
source: string;
|
|
70
|
-
target: string;
|
|
71
|
-
};
|
|
55
|
+
Empty: Record<string, never>;
|
|
72
56
|
} | {
|
|
73
|
-
|
|
74
|
-
contractId: string;
|
|
75
|
-
source: string;
|
|
76
|
-
target: string;
|
|
77
|
-
};
|
|
57
|
+
AssignCommand: import("../../../../openapi").components['schemas']['AssignCommand'];
|
|
78
58
|
} | {
|
|
79
|
-
|
|
59
|
+
UnassignCommand: import("../../../../openapi").components['schemas']['UnassignCommand'];
|
|
80
60
|
};
|
|
81
61
|
}[];
|
|
82
62
|
};
|
package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit-reassignment.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-reassignment.d.ts","sourceRoot":"","sources":["../../../../../../../../src/clients/ledger-json-api/operations/v2/commands/async/submit-reassignment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"submit-reassignment.d.ts","sourceRoot":"","sources":["../../../../../../../../src/clients/ledger-json-api/operations/v2/commands/async/submit-reassignment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAGjD,QAAA,MAAM,QAAQ,2CAA2C,CAAC;AAE1D,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;iBAE9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,8BAA8B,GACxC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAC/E,MAAM,MAAM,+BAA+B,GACzC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEpF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUlC,CAAC"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { type z } from 'zod';
|
|
2
|
-
import type { paths } from '
|
|
2
|
+
import type { paths } from '../../../../openapi';
|
|
3
3
|
import { AsyncSubmitParamsSchema } from '../../../../schemas/operations';
|
|
4
4
|
declare const endpoint: '/v2/commands/async/submit';
|
|
5
5
|
export type AsyncSubmitParams = z.infer<typeof AsyncSubmitParamsSchema>;
|
|
6
6
|
export type AsyncSubmitResponse = paths[typeof endpoint]['post']['responses']['200']['content']['application/json'];
|
|
7
|
-
/**
|
|
8
|
-
* Submits commands without blocking (`async-submit`). Pair with completion polling/stream for confirmation.
|
|
9
|
-
*/
|
|
7
|
+
/** Submits commands without blocking (`async-submit`). Pair with completion polling/stream for confirmation. */
|
|
10
8
|
export declare const AsyncSubmit: new (client: import("../../../../../..").BaseClient) => import("../../../../../..").ApiOperation<{
|
|
11
9
|
commands: ({
|
|
12
|
-
|
|
10
|
+
CreateAndExerciseCommand: {
|
|
13
11
|
templateId: string;
|
|
14
12
|
createArguments: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
15
13
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
@@ -36,11 +34,6 @@ export declare const AsyncSubmit: new (client: import("../../../../../..").BaseC
|
|
|
36
34
|
} | null)[] | {
|
|
37
35
|
[key: string]: string | number | boolean | any | any | null;
|
|
38
36
|
} | null>;
|
|
39
|
-
};
|
|
40
|
-
} | {
|
|
41
|
-
ExerciseCommand: {
|
|
42
|
-
templateId: string;
|
|
43
|
-
contractId: string;
|
|
44
37
|
choice: string;
|
|
45
38
|
choiceArgument: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
46
39
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -69,7 +62,7 @@ export declare const AsyncSubmit: new (client: import("../../../../../..").BaseC
|
|
|
69
62
|
} | null>;
|
|
70
63
|
};
|
|
71
64
|
} | {
|
|
72
|
-
|
|
65
|
+
CreateCommand: {
|
|
73
66
|
templateId: string;
|
|
74
67
|
createArguments: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
75
68
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -96,8 +89,11 @@ export declare const AsyncSubmit: new (client: import("../../../../../..").BaseC
|
|
|
96
89
|
} | null)[] | {
|
|
97
90
|
[key: string]: string | number | boolean | any | any | null;
|
|
98
91
|
} | null>;
|
|
99
|
-
|
|
100
|
-
|
|
92
|
+
};
|
|
93
|
+
} | {
|
|
94
|
+
ExerciseByKeyCommand: {
|
|
95
|
+
templateId: string;
|
|
96
|
+
contractKey: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
101
97
|
[key: string]: string | number | boolean | any | any | null;
|
|
102
98
|
} | null)[] | {
|
|
103
99
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -122,11 +118,8 @@ export declare const AsyncSubmit: new (client: import("../../../../../..").BaseC
|
|
|
122
118
|
} | null)[] | {
|
|
123
119
|
[key: string]: string | number | boolean | any | any | null;
|
|
124
120
|
} | null>;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
ExerciseByKeyCommand: {
|
|
128
|
-
templateId: string;
|
|
129
|
-
contractKey: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
121
|
+
choice: string;
|
|
122
|
+
choiceArgument: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
130
123
|
[key: string]: string | number | boolean | any | any | null;
|
|
131
124
|
} | null)[] | {
|
|
132
125
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -151,6 +144,11 @@ export declare const AsyncSubmit: new (client: import("../../../../../..").BaseC
|
|
|
151
144
|
} | null)[] | {
|
|
152
145
|
[key: string]: string | number | boolean | any | any | null;
|
|
153
146
|
} | null>;
|
|
147
|
+
};
|
|
148
|
+
} | {
|
|
149
|
+
ExerciseCommand: {
|
|
150
|
+
templateId: string;
|
|
151
|
+
contractId: string;
|
|
154
152
|
choice: string;
|
|
155
153
|
choiceArgument: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
156
154
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -178,18 +176,6 @@ export declare const AsyncSubmit: new (client: import("../../../../../..").BaseC
|
|
|
178
176
|
[key: string]: string | number | boolean | any | any | null;
|
|
179
177
|
} | null>;
|
|
180
178
|
};
|
|
181
|
-
} | {
|
|
182
|
-
AssignCommand: {
|
|
183
|
-
reassignmentId: string;
|
|
184
|
-
source: string;
|
|
185
|
-
target: string;
|
|
186
|
-
};
|
|
187
|
-
} | {
|
|
188
|
-
UnassignCommand: {
|
|
189
|
-
contractId: string;
|
|
190
|
-
source: string;
|
|
191
|
-
target: string;
|
|
192
|
-
};
|
|
193
179
|
})[];
|
|
194
180
|
commandId?: string | undefined;
|
|
195
181
|
actAs?: string[] | undefined;
|
|
@@ -259,7 +245,7 @@ export declare const AsyncSubmit: new (client: import("../../../../../..").BaseC
|
|
|
259
245
|
}[] | undefined;
|
|
260
246
|
}, Record<string, never>, import("../../../../../..").OperationExecuteOptions<{
|
|
261
247
|
commands: ({
|
|
262
|
-
|
|
248
|
+
CreateAndExerciseCommand: {
|
|
263
249
|
templateId: string;
|
|
264
250
|
createArguments: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
265
251
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -286,11 +272,6 @@ export declare const AsyncSubmit: new (client: import("../../../../../..").BaseC
|
|
|
286
272
|
} | null)[] | {
|
|
287
273
|
[key: string]: string | number | boolean | any | any | null;
|
|
288
274
|
} | null>;
|
|
289
|
-
};
|
|
290
|
-
} | {
|
|
291
|
-
ExerciseCommand: {
|
|
292
|
-
templateId: string;
|
|
293
|
-
contractId: string;
|
|
294
275
|
choice: string;
|
|
295
276
|
choiceArgument: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
296
277
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -319,7 +300,7 @@ export declare const AsyncSubmit: new (client: import("../../../../../..").BaseC
|
|
|
319
300
|
} | null>;
|
|
320
301
|
};
|
|
321
302
|
} | {
|
|
322
|
-
|
|
303
|
+
CreateCommand: {
|
|
323
304
|
templateId: string;
|
|
324
305
|
createArguments: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
325
306
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -346,8 +327,11 @@ export declare const AsyncSubmit: new (client: import("../../../../../..").BaseC
|
|
|
346
327
|
} | null)[] | {
|
|
347
328
|
[key: string]: string | number | boolean | any | any | null;
|
|
348
329
|
} | null>;
|
|
349
|
-
|
|
350
|
-
|
|
330
|
+
};
|
|
331
|
+
} | {
|
|
332
|
+
ExerciseByKeyCommand: {
|
|
333
|
+
templateId: string;
|
|
334
|
+
contractKey: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
351
335
|
[key: string]: string | number | boolean | any | any | null;
|
|
352
336
|
} | null)[] | {
|
|
353
337
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -372,11 +356,8 @@ export declare const AsyncSubmit: new (client: import("../../../../../..").BaseC
|
|
|
372
356
|
} | null)[] | {
|
|
373
357
|
[key: string]: string | number | boolean | any | any | null;
|
|
374
358
|
} | null>;
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
ExerciseByKeyCommand: {
|
|
378
|
-
templateId: string;
|
|
379
|
-
contractKey: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
359
|
+
choice: string;
|
|
360
|
+
choiceArgument: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
380
361
|
[key: string]: string | number | boolean | any | any | null;
|
|
381
362
|
} | null)[] | {
|
|
382
363
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -401,6 +382,11 @@ export declare const AsyncSubmit: new (client: import("../../../../../..").BaseC
|
|
|
401
382
|
} | null)[] | {
|
|
402
383
|
[key: string]: string | number | boolean | any | any | null;
|
|
403
384
|
} | null>;
|
|
385
|
+
};
|
|
386
|
+
} | {
|
|
387
|
+
ExerciseCommand: {
|
|
388
|
+
templateId: string;
|
|
389
|
+
contractId: string;
|
|
404
390
|
choice: string;
|
|
405
391
|
choiceArgument: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
406
392
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -428,18 +414,6 @@ export declare const AsyncSubmit: new (client: import("../../../../../..").BaseC
|
|
|
428
414
|
[key: string]: string | number | boolean | any | any | null;
|
|
429
415
|
} | null>;
|
|
430
416
|
};
|
|
431
|
-
} | {
|
|
432
|
-
AssignCommand: {
|
|
433
|
-
reassignmentId: string;
|
|
434
|
-
source: string;
|
|
435
|
-
target: string;
|
|
436
|
-
};
|
|
437
|
-
} | {
|
|
438
|
-
UnassignCommand: {
|
|
439
|
-
contractId: string;
|
|
440
|
-
source: string;
|
|
441
|
-
target: string;
|
|
442
|
-
};
|
|
443
417
|
})[];
|
|
444
418
|
commandId?: string | undefined;
|
|
445
419
|
actAs?: string[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit.d.ts","sourceRoot":"","sources":["../../../../../../../../src/clients/ledger-json-api/operations/v2/commands/async/submit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"submit.d.ts","sourceRoot":"","sources":["../../../../../../../../src/clients/ledger-json-api/operations/v2/commands/async/submit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,QAAA,MAAM,QAAQ,EAAG,2BAAoC,CAAC;AAMtD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEpH,gHAAgH;AAChH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAStB,CAAC"}
|
|
@@ -4,9 +4,7 @@ exports.AsyncSubmit = void 0;
|
|
|
4
4
|
const core_1 = require("../../../../../../core");
|
|
5
5
|
const operations_1 = require("../../../../schemas/operations");
|
|
6
6
|
const endpoint = '/v2/commands/async/submit';
|
|
7
|
-
/**
|
|
8
|
-
* Submits commands without blocking (`async-submit`). Pair with completion polling/stream for confirmation.
|
|
9
|
-
*/
|
|
7
|
+
/** Submits commands without blocking (`async-submit`). Pair with completion polling/stream for confirmation. */
|
|
10
8
|
exports.AsyncSubmit = (0, core_1.createApiOperation)({
|
|
11
9
|
paramsSchema: operations_1.AsyncSubmitParamsSchema,
|
|
12
10
|
method: 'POST',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit.js","sourceRoot":"","sources":["../../../../../../../../src/clients/ledger-json-api/operations/v2/commands/async/submit.ts"],"names":[],"mappings":";;;AACA,iDAA4D;AAE5D,+DAAyE;AAEzE,MAAM,QAAQ,GAAG,2BAAoC,CAAC;AAUtD
|
|
1
|
+
{"version":3,"file":"submit.js","sourceRoot":"","sources":["../../../../../../../../src/clients/ledger-json-api/operations/v2/commands/async/submit.ts"],"names":[],"mappings":";;;AACA,iDAA4D;AAE5D,+DAAyE;AAEzE,MAAM,QAAQ,GAAG,2BAAoC,CAAC;AAUtD,gHAAgH;AACnG,QAAA,WAAW,GAAG,IAAA,yBAAkB,EAAyC;IACpF,YAAY,EAAE,oCAAuB;IACrC,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,QAAQ,EAAE;IACrD,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;QACrC,GAAG,MAAM;QACT,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,gBAAgB,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;QACzG,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;KAC7C,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type { paths } from '
|
|
2
|
+
import type { paths } from '../../../openapi';
|
|
3
3
|
declare const endpoint = "/v2/commands/completions";
|
|
4
4
|
export declare const CompletionsParamsSchema: z.ZodObject<{
|
|
5
5
|
userId: z.ZodString;
|
|
@@ -23,7 +23,83 @@ export declare const Completions: new (client: import("../../../../..").BaseClie
|
|
|
23
23
|
limit?: number | undefined;
|
|
24
24
|
streamIdleTimeoutMs?: number | undefined;
|
|
25
25
|
}, {
|
|
26
|
-
completionResponse?:
|
|
26
|
+
completionResponse?: {
|
|
27
|
+
Completion: {
|
|
28
|
+
value: {
|
|
29
|
+
commandId: string;
|
|
30
|
+
status?: {
|
|
31
|
+
code: number;
|
|
32
|
+
message: string;
|
|
33
|
+
details?: {
|
|
34
|
+
typeUrl: string;
|
|
35
|
+
value: string;
|
|
36
|
+
unknownFields: {
|
|
37
|
+
fields: {
|
|
38
|
+
[key: string]: {
|
|
39
|
+
varint?: number[];
|
|
40
|
+
fixed64?: number[];
|
|
41
|
+
fixed32?: number[];
|
|
42
|
+
lengthDelimited?: string[];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
valueDecoded?: string;
|
|
47
|
+
}[];
|
|
48
|
+
};
|
|
49
|
+
updateId?: string;
|
|
50
|
+
userId: string;
|
|
51
|
+
actAs: string[];
|
|
52
|
+
submissionId?: string;
|
|
53
|
+
deduplicationPeriod?: {
|
|
54
|
+
DeduplicationDuration: {
|
|
55
|
+
value: {
|
|
56
|
+
seconds: number;
|
|
57
|
+
nanos: number;
|
|
58
|
+
unknownFields?: {
|
|
59
|
+
fields: {
|
|
60
|
+
[key: string]: {
|
|
61
|
+
varint?: number[];
|
|
62
|
+
fixed64?: number[];
|
|
63
|
+
fixed32?: number[];
|
|
64
|
+
lengthDelimited?: string[];
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
} | {
|
|
71
|
+
DeduplicationOffset: {
|
|
72
|
+
value: number;
|
|
73
|
+
};
|
|
74
|
+
} | {
|
|
75
|
+
Empty: Record<string, never>;
|
|
76
|
+
};
|
|
77
|
+
traceContext?: {
|
|
78
|
+
traceparent?: string;
|
|
79
|
+
tracestate?: string;
|
|
80
|
+
};
|
|
81
|
+
offset: number;
|
|
82
|
+
synchronizerTime: {
|
|
83
|
+
synchronizerId: string;
|
|
84
|
+
recordTime: string;
|
|
85
|
+
};
|
|
86
|
+
paidTrafficCost?: number;
|
|
87
|
+
transactionHash?: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
} | {
|
|
91
|
+
Empty: Record<string, never>;
|
|
92
|
+
} | {
|
|
93
|
+
OffsetCheckpoint: {
|
|
94
|
+
value: {
|
|
95
|
+
offset: number;
|
|
96
|
+
synchronizerTimes?: {
|
|
97
|
+
synchronizerId: string;
|
|
98
|
+
recordTime: string;
|
|
99
|
+
}[];
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
27
103
|
}[], import("../../../../..").OperationExecuteOptions<{
|
|
28
104
|
userId: string;
|
|
29
105
|
parties: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/completions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/completions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C,QAAA,MAAM,QAAQ,6BAA6B,CAAC;AAE5C,eAAO,MAAM,uBAAuB;;;;;;iBAMlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAC9G,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEpH;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmBtB,CAAC"}
|
|
@@ -24,19 +24,11 @@ export declare const SubmitAndWaitForReassignment: new (client: import("../../..
|
|
|
24
24
|
submissionId?: string | undefined;
|
|
25
25
|
commands: {
|
|
26
26
|
command: {
|
|
27
|
-
|
|
28
|
-
reassignmentId: string;
|
|
29
|
-
source: string;
|
|
30
|
-
target: string;
|
|
31
|
-
};
|
|
27
|
+
Empty: Record<string, never>;
|
|
32
28
|
} | {
|
|
33
|
-
|
|
34
|
-
contractId: string;
|
|
35
|
-
source: string;
|
|
36
|
-
target: string;
|
|
37
|
-
};
|
|
29
|
+
AssignCommand: import("../../../openapi").components['schemas']['AssignCommand'];
|
|
38
30
|
} | {
|
|
39
|
-
|
|
31
|
+
UnassignCommand: import("../../../openapi").components['schemas']['UnassignCommand'];
|
|
40
32
|
};
|
|
41
33
|
}[];
|
|
42
34
|
};
|
|
@@ -206,19 +198,11 @@ export declare const SubmitAndWaitForReassignment: new (client: import("../../..
|
|
|
206
198
|
submissionId?: string | undefined;
|
|
207
199
|
commands: {
|
|
208
200
|
command: {
|
|
209
|
-
|
|
210
|
-
reassignmentId: string;
|
|
211
|
-
source: string;
|
|
212
|
-
target: string;
|
|
213
|
-
};
|
|
201
|
+
Empty: Record<string, never>;
|
|
214
202
|
} | {
|
|
215
|
-
|
|
216
|
-
contractId: string;
|
|
217
|
-
source: string;
|
|
218
|
-
target: string;
|
|
219
|
-
};
|
|
203
|
+
AssignCommand: import("../../../openapi").components['schemas']['AssignCommand'];
|
|
220
204
|
} | {
|
|
221
|
-
|
|
205
|
+
UnassignCommand: import("../../../openapi").components['schemas']['UnassignCommand'];
|
|
222
206
|
};
|
|
223
207
|
}[];
|
|
224
208
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-and-wait-for-reassignment.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-reassignment.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"submit-and-wait-for-reassignment.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-reassignment.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYvC,CAAC"}
|