@distrohelena/canton-typescript-sdk 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -0
- package/dist/client/canton-client.d.ts +4 -0
- package/dist/client/canton-client.js +5 -0
- package/dist/client/canton-hashing-client.d.ts +8 -0
- package/dist/client/canton-hashing-client.js +16 -0
- package/dist/client/external-party-activation-client.d.ts +15 -0
- package/dist/client/external-party-activation-client.js +126 -0
- package/dist/client/external-party-activation-request.d.ts +15 -0
- package/dist/client/external-party-activation-request.js +14 -0
- package/dist/client/external-party-activation-response.d.ts +13 -0
- package/dist/client/external-party-activation-response.js +12 -0
- package/dist/client/service-registry.d.ts +2 -0
- package/dist/client/service-registry.js +124 -0
- package/dist/core/hashing/canton-hash.d.ts +3 -0
- package/dist/core/hashing/canton-hash.js +24 -0
- package/dist/core/transports/transport.interface.d.ts +48 -0
- package/dist/core/types/canton-hash-purpose.d.ts +4 -0
- package/dist/core/types/canton-hash-purpose.js +5 -0
- package/dist/core/types/external-party/external-party-crypto-key-format.d.ts +6 -0
- package/dist/core/types/external-party/external-party-crypto-key-format.js +7 -0
- package/dist/core/types/external-party/external-party-onboarding-transaction.d.ts +9 -0
- package/dist/core/types/external-party/external-party-onboarding-transaction.js +8 -0
- package/dist/core/types/external-party/external-party-signature-format.d.ts +7 -0
- package/dist/core/types/external-party/external-party-signature-format.js +8 -0
- package/dist/core/types/external-party/external-party-signature.d.ts +14 -0
- package/dist/core/types/external-party/external-party-signature.js +16 -0
- package/dist/core/types/external-party/external-party-signing-algorithm-spec.d.ts +7 -0
- package/dist/core/types/external-party/external-party-signing-algorithm-spec.js +8 -0
- package/dist/core/types/external-party/external-party-signing-key-spec.d.ts +8 -0
- package/dist/core/types/external-party/external-party-signing-key-spec.js +9 -0
- package/dist/core/types/external-party/external-party-signing-public-key.d.ts +12 -0
- package/dist/core/types/external-party/external-party-signing-public-key.js +12 -0
- package/dist/core/types/requests/add-party-async-request.d.ts +27 -0
- package/dist/core/types/requests/add-party-async-request.js +25 -0
- package/dist/core/types/requests/add-topology-transactions-request.d.ts +16 -0
- package/dist/core/types/requests/add-topology-transactions-request.js +12 -0
- package/dist/core/types/requests/allocate-external-party-request.d.ts +18 -0
- package/dist/core/types/requests/allocate-external-party-request.js +16 -0
- package/dist/core/types/requests/assemble-signed-topology-transactions-request.d.ts +10 -0
- package/dist/core/types/requests/assemble-signed-topology-transactions-request.js +8 -0
- package/dist/core/types/requests/authorize-topology-transactions-request.d.ts +37 -0
- package/dist/core/types/requests/authorize-topology-transactions-request.js +35 -0
- package/dist/core/types/requests/clear-party-onboarding-flag-request.d.ts +13 -0
- package/dist/core/types/requests/clear-party-onboarding-flag-request.js +12 -0
- package/dist/core/types/requests/create-temporary-topology-store-request.d.ts +8 -0
- package/dist/core/types/requests/create-temporary-topology-store-request.js +8 -0
- package/dist/core/types/requests/drop-temporary-topology-store-request.d.ts +7 -0
- package/dist/core/types/requests/drop-temporary-topology-store-request.js +6 -0
- package/dist/core/types/requests/generate-external-party-topology-request.d.ts +19 -0
- package/dist/core/types/requests/generate-external-party-topology-request.js +21 -0
- package/dist/core/types/requests/generate-topology-transactions-request.d.ts +26 -0
- package/dist/core/types/requests/generate-topology-transactions-request.js +22 -0
- package/dist/core/types/requests/get-active-contracts-page-request.d.ts +12 -0
- package/dist/core/types/requests/get-active-contracts-page-request.js +12 -0
- package/dist/core/types/requests/import-topology-snapshot-request.d.ts +12 -0
- package/dist/core/types/requests/import-topology-snapshot-request.js +10 -0
- package/dist/core/types/requests/import-topology-snapshot-v2-request.d.ts +12 -0
- package/dist/core/types/requests/import-topology-snapshot-v2-request.js +10 -0
- package/dist/core/types/requests/sign-topology-transactions-request.d.ts +15 -0
- package/dist/core/types/requests/sign-topology-transactions-request.js +12 -0
- package/dist/core/types/responses/add-party-async-response.d.ts +6 -0
- package/dist/core/types/responses/add-party-async-response.js +6 -0
- package/dist/core/types/responses/add-topology-transactions-response.d.ts +3 -0
- package/dist/core/types/responses/add-topology-transactions-response.js +5 -0
- package/dist/core/types/responses/allocate-external-party-response.d.ts +6 -0
- package/dist/core/types/responses/allocate-external-party-response.js +6 -0
- package/dist/core/types/responses/authorize-topology-transactions-response.d.ts +7 -0
- package/dist/core/types/responses/authorize-topology-transactions-response.js +6 -0
- package/dist/core/types/responses/clear-party-onboarding-flag-response.d.ts +8 -0
- package/dist/core/types/responses/clear-party-onboarding-flag-response.js +8 -0
- package/dist/core/types/responses/create-temporary-topology-store-response.d.ts +7 -0
- package/dist/core/types/responses/create-temporary-topology-store-response.js +6 -0
- package/dist/core/types/responses/drop-temporary-topology-store-response.d.ts +3 -0
- package/dist/core/types/responses/drop-temporary-topology-store-response.js +5 -0
- package/dist/core/types/responses/generate-external-party-topology-response.d.ts +12 -0
- package/dist/core/types/responses/generate-external-party-topology-response.js +12 -0
- package/dist/core/types/responses/generate-topology-transactions-response.d.ts +7 -0
- package/dist/core/types/responses/generate-topology-transactions-response.js +6 -0
- package/dist/core/types/responses/get-active-contracts-page-response.d.ts +4 -0
- package/dist/core/types/responses/get-active-contracts-page-response.js +4 -0
- package/dist/core/types/responses/import-topology-snapshot-response.d.ts +3 -0
- package/dist/core/types/responses/import-topology-snapshot-response.js +5 -0
- package/dist/core/types/responses/import-topology-snapshot-v2-response.d.ts +3 -0
- package/dist/core/types/responses/import-topology-snapshot-v2-response.js +5 -0
- package/dist/core/types/responses/sign-topology-transactions-response.d.ts +7 -0
- package/dist/core/types/responses/sign-topology-transactions-response.js +6 -0
- package/dist/core/types/topology/external-topology-signature.d.ts +18 -0
- package/dist/core/types/topology/external-topology-signature.js +16 -0
- package/dist/core/types/topology/generated-topology-transaction.d.ts +8 -0
- package/dist/core/types/topology/generated-topology-transaction.js +8 -0
- package/dist/core/types/topology/multi-topology-transaction-signature.d.ts +9 -0
- package/dist/core/types/topology/multi-topology-transaction-signature.js +8 -0
- package/dist/core/types/topology/prepared-topology-transaction.d.ts +10 -0
- package/dist/core/types/topology/prepared-topology-transaction.js +10 -0
- package/dist/core/types/topology/signed-topology-transaction.d.ts +14 -0
- package/dist/core/types/topology/signed-topology-transaction.js +14 -0
- package/dist/core/types/topology/topology-force-flag.d.ts +8 -0
- package/dist/core/types/topology/topology-force-flag.js +9 -0
- package/dist/core/types/topology/topology-mapping.d.ts +16 -0
- package/dist/core/types/topology/topology-mapping.js +1 -0
- package/dist/core/types/topology/topology-public-key.d.ts +4 -0
- package/dist/core/types/topology/topology-public-key.js +4 -0
- package/dist/core/types/topology/topology-signature-delegation.d.ts +18 -0
- package/dist/core/types/topology/topology-signature-delegation.js +20 -0
- package/dist/core/types/topology/topology-signature-format.d.ts +3 -0
- package/dist/core/types/topology/topology-signature-format.js +4 -0
- package/dist/core/types/topology/topology-transaction-signature.d.ts +15 -0
- package/dist/core/types/topology/topology-transaction-signature.js +14 -0
- package/dist/daml-lf/container/dar-archive-loader.js +9 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.js +50 -0
- package/dist/services/participant-party-management/participant-party-management-service-client.d.ts +8 -0
- package/dist/services/participant-party-management/participant-party-management-service-client.js +8 -0
- package/dist/services/party-management/party-management-service-client.d.ts +8 -0
- package/dist/services/party-management/party-management-service-client.js +8 -0
- package/dist/services/state/state-service-client.d.ts +1 -1
- package/dist/services/state/state-service-client.js +1 -1
- package/dist/services/topology-manager-write/topology-manager-write-service-client.d.ts +42 -0
- package/dist/services/topology-manager-write/topology-manager-write-service-client.js +44 -0
- package/dist/services/topology-manager-write/topology-signed-transaction-assembler.d.ts +3 -0
- package/dist/services/topology-manager-write/topology-signed-transaction-assembler.js +78 -0
- package/dist/transports/grpc/grpc-channel-factory.d.ts +16 -2
- package/dist/transports/grpc/grpc-channel-factory.js +56 -0
- package/dist/transports/grpc/grpc-transport.d.ts +20 -0
- package/dist/transports/grpc/grpc-transport.js +72 -1
- package/dist/transports/grpc/mappers/contracts-mapper.d.ts +6 -0
- package/dist/transports/grpc/mappers/contracts-mapper.js +40 -19
- package/dist/transports/grpc/mappers/external-party-management-mapper.d.ts +9 -0
- package/dist/transports/grpc/mappers/external-party-management-mapper.js +126 -0
- package/dist/transports/grpc/mappers/participant-party-management-mapper.d.ts +9 -2
- package/dist/transports/grpc/mappers/participant-party-management-mapper.js +56 -1
- package/dist/transports/grpc/mappers/topology-common-mapper.js +3 -0
- package/dist/transports/grpc/mappers/topology-manager-write-mapper.d.ts +33 -0
- package/dist/transports/grpc/mappers/topology-manager-write-mapper.js +451 -0
- package/dist/transports/json/json-transport.d.ts +20 -0
- package/dist/transports/json/json-transport.js +59 -6
- package/dist/transports/json/mappers/parties-mapper.d.ts +13 -2
- package/dist/transports/json/mappers/parties-mapper.js +15 -1
- package/package.json +4 -2
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { TransportFeatures } from "./transport-features.interface.js";
|
|
2
|
+
import { AllocateExternalPartyRequest } from "../types/requests/allocate-external-party-request.js";
|
|
2
3
|
import { AllocatePartyRequest } from "../types/requests/allocate-party-request.js";
|
|
4
|
+
import { AddPartyAsyncRequest } from "../types/requests/add-party-async-request.js";
|
|
5
|
+
import { AddTopologyTransactionsRequest } from "../types/requests/add-topology-transactions-request.js";
|
|
6
|
+
import { AuthorizeTopologyTransactionsRequest } from "../types/requests/authorize-topology-transactions-request.js";
|
|
7
|
+
import { ClearPartyOnboardingFlagRequest } from "../types/requests/clear-party-onboarding-flag-request.js";
|
|
3
8
|
import { GrantUserRightsRequest } from "../types/requests/grant-user-rights-request.js";
|
|
9
|
+
import { CreateTemporaryTopologyStoreRequest } from "../types/requests/create-temporary-topology-store-request.js";
|
|
4
10
|
import { GetActiveContractsPageRequest } from "../types/requests/get-active-contracts-page-request.js";
|
|
5
11
|
import { GetActiveContractsRequest } from "../types/requests/get-active-contracts-request.js";
|
|
6
12
|
import { GetCompletionsRequest } from "../types/requests/get-completions-request.js";
|
|
@@ -41,7 +47,12 @@ import { GetUpdateByOffsetRequest } from "../types/requests/get-update-by-offset
|
|
|
41
47
|
import { GetUpdatesRequest } from "../types/requests/get-updates-request.js";
|
|
42
48
|
import { GetUpdatesPageRequest } from "../types/requests/get-updates-page-request.js";
|
|
43
49
|
import { GetUserRequest } from "../types/requests/get-user-request.js";
|
|
50
|
+
import { DropTemporaryTopologyStoreRequest } from "../types/requests/drop-temporary-topology-store-request.js";
|
|
51
|
+
import { GenerateTopologyTransactionsRequest } from "../types/requests/generate-topology-transactions-request.js";
|
|
52
|
+
import { GenerateExternalPartyTopologyRequest } from "../types/requests/generate-external-party-topology-request.js";
|
|
44
53
|
import { HealthCheckRequest } from "../types/requests/health-check-request.js";
|
|
54
|
+
import { ImportTopologySnapshotRequest } from "../types/requests/import-topology-snapshot-request.js";
|
|
55
|
+
import { ImportTopologySnapshotV2Request } from "../types/requests/import-topology-snapshot-v2-request.js";
|
|
45
56
|
import { ListAllRequest } from "../types/requests/list-all-request.js";
|
|
46
57
|
import { ListAllV2Request } from "../types/requests/list-all-v2-request.js";
|
|
47
58
|
import { ListAvailableStoresRequest } from "../types/requests/list-available-stores-request.js";
|
|
@@ -79,6 +90,7 @@ import { TopologyListVettedPackagesRequest } from "../types/requests/topology-li
|
|
|
79
90
|
import { TrafficControlStateRequest } from "../types/requests/traffic-control-state-request.js";
|
|
80
91
|
import { UploadDarFileRequest } from "../types/requests/upload-dar-file-request.js";
|
|
81
92
|
import { ParticipantListPackagesRequest } from "../types/requests/participant-list-packages-request.js";
|
|
93
|
+
import { SignTopologyTransactionsRequest } from "../types/requests/sign-topology-transactions-request.js";
|
|
82
94
|
import { GetPackageContentsResponse } from "../types/responses/get-package-contents-response.js";
|
|
83
95
|
import { GetConnectedSynchronizersResponse } from "../types/responses/get-connected-synchronizers-response.js";
|
|
84
96
|
import { CountInFlightResponse } from "../types/responses/count-in-flight-response.js";
|
|
@@ -104,6 +116,7 @@ import { GetParticipantPruningScheduleResponse } from "../types/responses/get-pa
|
|
|
104
116
|
import { GetParticipantIdResponse } from "../types/responses/get-participant-id-response.js";
|
|
105
117
|
import { GetParticipantStatusResponse } from "../types/responses/get-participant-status-response.js";
|
|
106
118
|
import { GetPartiesResponse } from "../types/responses/get-parties-response.js";
|
|
119
|
+
import { GenerateExternalPartyTopologyResponse } from "../types/responses/generate-external-party-topology-response.js";
|
|
107
120
|
import { GetPruningScheduleResponse } from "../types/responses/get-pruning-schedule-response.js";
|
|
108
121
|
import { GetResourceLimitsResponse } from "../types/responses/get-resource-limits-response.js";
|
|
109
122
|
import { GetSafePruningOffsetResponse } from "../types/responses/get-safe-pruning-offset-response.js";
|
|
@@ -116,8 +129,18 @@ import { GetActiveContractsPageResponse } from "../types/responses/get-active-co
|
|
|
116
129
|
import { GetLedgerApiVersionResponse } from "../types/responses/get-ledger-api-version-response.js";
|
|
117
130
|
import { GetUpdatesPageResponse } from "../types/responses/get-updates-page-response.js";
|
|
118
131
|
import { GetUserResponse } from "../types/responses/get-user-response.js";
|
|
132
|
+
import { AddPartyAsyncResponse } from "../types/responses/add-party-async-response.js";
|
|
133
|
+
import { AddTopologyTransactionsResponse } from "../types/responses/add-topology-transactions-response.js";
|
|
134
|
+
import { AllocateExternalPartyResponse } from "../types/responses/allocate-external-party-response.js";
|
|
135
|
+
import { AuthorizeTopologyTransactionsResponse } from "../types/responses/authorize-topology-transactions-response.js";
|
|
136
|
+
import { ClearPartyOnboardingFlagResponse } from "../types/responses/clear-party-onboarding-flag-response.js";
|
|
137
|
+
import { CreateTemporaryTopologyStoreResponse } from "../types/responses/create-temporary-topology-store-response.js";
|
|
138
|
+
import { DropTemporaryTopologyStoreResponse } from "../types/responses/drop-temporary-topology-store-response.js";
|
|
139
|
+
import { GenerateTopologyTransactionsResponse } from "../types/responses/generate-topology-transactions-response.js";
|
|
119
140
|
import { GrantUserRightsResponse } from "../types/responses/grant-user-rights-response.js";
|
|
120
141
|
import { HealthCheckResponse } from "../types/responses/health-check-response.js";
|
|
142
|
+
import { ImportTopologySnapshotResponse } from "../types/responses/import-topology-snapshot-response.js";
|
|
143
|
+
import { ImportTopologySnapshotV2Response } from "../types/responses/import-topology-snapshot-v2-response.js";
|
|
121
144
|
import { ListAllResponse } from "../types/responses/list-all-response.js";
|
|
122
145
|
import { ListAllV2Response } from "../types/responses/list-all-v2-response.js";
|
|
123
146
|
import { ListAvailableStoresResponse } from "../types/responses/list-available-stores-response.js";
|
|
@@ -150,6 +173,7 @@ import { LookupReceivedAcsCommitmentsResponse } from "../types/responses/lookup-
|
|
|
150
173
|
import { LookupSentAcsCommitmentsResponse } from "../types/responses/lookup-sent-acs-commitments-response.js";
|
|
151
174
|
import { LookupOffsetByTimeResponse } from "../types/responses/lookup-offset-by-time-response.js";
|
|
152
175
|
import { OpenCommitmentResponse } from "../types/responses/open-commitment-response.js";
|
|
176
|
+
import { SignTopologyTransactionsResponse } from "../types/responses/sign-topology-transactions-response.js";
|
|
153
177
|
import { TopologyListPartiesResponse } from "../types/responses/topology-list-parties-response.js";
|
|
154
178
|
import { ListVettedPackagesResponse } from "../types/responses/list-vetted-packages-response.js";
|
|
155
179
|
import { TopologyListVettedPackagesResponse } from "../types/responses/topology-list-vetted-packages-response.js";
|
|
@@ -174,6 +198,10 @@ export interface ITransport {
|
|
|
174
198
|
checkHealthAsync(request: HealthCheckRequest, options?: RequestOptions): Promise<HealthCheckResponse>;
|
|
175
199
|
/** Allocates a party. Supported on JSON and gRPC. */
|
|
176
200
|
allocatePartyAsync(request: AllocatePartyRequest, options?: RequestOptions): Promise<AllocatePartyResponse>;
|
|
201
|
+
/** Generates external-party topology through the ledger-admin API. Supported on gRPC; JSON rejects it. */
|
|
202
|
+
generateExternalPartyTopologyAsync(request: GenerateExternalPartyTopologyRequest, options?: RequestOptions): Promise<GenerateExternalPartyTopologyResponse>;
|
|
203
|
+
/** Allocates an external party through the ledger-admin API. Supported on gRPC; JSON rejects it. */
|
|
204
|
+
allocateExternalPartyAsync(request: AllocateExternalPartyRequest, options?: RequestOptions): Promise<AllocateExternalPartyResponse>;
|
|
177
205
|
/** Lists known parties. Supported on JSON and gRPC. */
|
|
178
206
|
listKnownPartiesAsync(request: ListKnownPartiesRequest, options?: RequestOptions): Promise<ListKnownPartiesResponse>;
|
|
179
207
|
/** Reads the host participant identifier. Supported on gRPC; JSON rejects it. */
|
|
@@ -236,6 +264,10 @@ export interface ITransport {
|
|
|
236
264
|
lookupSentAcsCommitmentsAsync(request: LookupSentAcsCommitmentsRequest, options?: RequestOptions): Promise<LookupSentAcsCommitmentsResponse>;
|
|
237
265
|
/** Reads received ACS commitments. Supported on gRPC; JSON rejects it. */
|
|
238
266
|
lookupReceivedAcsCommitmentsAsync(request: LookupReceivedAcsCommitmentsRequest, options?: RequestOptions): Promise<LookupReceivedAcsCommitmentsResponse>;
|
|
267
|
+
/** Starts online party replication on the target participant. Supported on gRPC; JSON rejects it. */
|
|
268
|
+
addPartyAsync(request: AddPartyAsyncRequest, options?: RequestOptions): Promise<AddPartyAsyncResponse>;
|
|
269
|
+
/** Clears an onboarding flag on the target participant. Supported on gRPC; JSON rejects it. */
|
|
270
|
+
clearPartyOnboardingFlagAsync(request: ClearPartyOnboardingFlagRequest, options?: RequestOptions): Promise<ClearPartyOnboardingFlagResponse>;
|
|
239
271
|
/** Reads the highest participant ledger offset before or at a timestamp. Supported on gRPC; JSON rejects it. */
|
|
240
272
|
getHighestOffsetByTimestampAsync(request: GetHighestOffsetByTimestampRequest, options?: RequestOptions): Promise<GetHighestOffsetByTimestampResponse>;
|
|
241
273
|
/** Reads the safe participant pruning offset. Supported on gRPC; JSON rejects it. */
|
|
@@ -278,6 +310,22 @@ export interface ITransport {
|
|
|
278
310
|
listSynchronizerTrustCertificateAsync(request: ListSynchronizerTrustCertificateRequest, options?: RequestOptions): Promise<ListSynchronizerTrustCertificateResponse>;
|
|
279
311
|
/** Reads participant synchronizer permissions. Supported on gRPC; JSON rejects it. */
|
|
280
312
|
listParticipantSynchronizerPermissionAsync(request: ListParticipantSynchronizerPermissionRequest, options?: RequestOptions): Promise<ListParticipantSynchronizerPermissionResponse>;
|
|
313
|
+
/** Authorizes topology transactions. Supported on gRPC; JSON rejects it. */
|
|
314
|
+
authorizeTopologyTransactionsAsync(request: AuthorizeTopologyTransactionsRequest, options?: RequestOptions): Promise<AuthorizeTopologyTransactionsResponse>;
|
|
315
|
+
/** Adds topology transactions to a topology store. Supported on gRPC; JSON rejects it. */
|
|
316
|
+
addTopologyTransactionsAsync(request: AddTopologyTransactionsRequest, options?: RequestOptions): Promise<AddTopologyTransactionsResponse>;
|
|
317
|
+
/** Imports a serialized topology snapshot. Supported on gRPC; JSON rejects it. */
|
|
318
|
+
importTopologySnapshotAsync(request: ImportTopologySnapshotRequest, options?: RequestOptions): Promise<ImportTopologySnapshotResponse>;
|
|
319
|
+
/** Imports a serialized topology snapshot using the V2 RPC. Supported on gRPC; JSON rejects it. */
|
|
320
|
+
importTopologySnapshotV2Async(request: ImportTopologySnapshotV2Request, options?: RequestOptions): Promise<ImportTopologySnapshotV2Response>;
|
|
321
|
+
/** Adds local signatures to topology transactions. Supported on gRPC; JSON rejects it. */
|
|
322
|
+
signTopologyTransactionsAsync(request: SignTopologyTransactionsRequest, options?: RequestOptions): Promise<SignTopologyTransactionsResponse>;
|
|
323
|
+
/** Generates topology transactions from raw proposals. Supported on gRPC; JSON rejects it. */
|
|
324
|
+
generateTopologyTransactionsAsync(request: GenerateTopologyTransactionsRequest, options?: RequestOptions): Promise<GenerateTopologyTransactionsResponse>;
|
|
325
|
+
/** Creates a temporary topology store. Supported on gRPC; JSON rejects it. */
|
|
326
|
+
createTemporaryTopologyStoreAsync(request: CreateTemporaryTopologyStoreRequest, options?: RequestOptions): Promise<CreateTemporaryTopologyStoreResponse>;
|
|
327
|
+
/** Drops a temporary topology store. Supported on gRPC; JSON rejects it. */
|
|
328
|
+
dropTemporaryTopologyStoreAsync(request: DropTemporaryTopologyStoreRequest, options?: RequestOptions): Promise<DropTemporaryTopologyStoreResponse>;
|
|
281
329
|
/** Reads party hosting limits. Supported on gRPC; JSON rejects it. */
|
|
282
330
|
listPartyHostingLimitsAsync(request: ListPartyHostingLimitsRequest, options?: RequestOptions): Promise<ListPartyHostingLimitsResponse>;
|
|
283
331
|
/** Reads topology vetted packages. Supported on gRPC; JSON rejects it. */
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export var CantonHashPurpose;
|
|
2
|
+
(function (CantonHashPurpose) {
|
|
3
|
+
CantonHashPurpose[CantonHashPurpose["topologyTransactionSignature"] = 11] = "topologyTransactionSignature";
|
|
4
|
+
CantonHashPurpose[CantonHashPurpose["publicKeyFingerprint"] = 12] = "publicKeyFingerprint";
|
|
5
|
+
})(CantonHashPurpose || (CantonHashPurpose = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var ExternalPartyCryptoKeyFormat;
|
|
2
|
+
(function (ExternalPartyCryptoKeyFormat) {
|
|
3
|
+
ExternalPartyCryptoKeyFormat["unspecified"] = "unspecified";
|
|
4
|
+
ExternalPartyCryptoKeyFormat["der"] = "der";
|
|
5
|
+
ExternalPartyCryptoKeyFormat["raw"] = "raw";
|
|
6
|
+
ExternalPartyCryptoKeyFormat["derX509SubjectPublicKeyInfo"] = "derX509SubjectPublicKeyInfo";
|
|
7
|
+
})(ExternalPartyCryptoKeyFormat || (ExternalPartyCryptoKeyFormat = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExternalPartySignature } from "./external-party-signature.js";
|
|
2
|
+
export declare class ExternalPartyOnboardingTransaction {
|
|
3
|
+
readonly transaction: Uint8Array;
|
|
4
|
+
readonly signatures: ExternalPartySignature[];
|
|
5
|
+
constructor(init?: {
|
|
6
|
+
transaction?: Uint8Array;
|
|
7
|
+
signatures?: ExternalPartySignature[];
|
|
8
|
+
});
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var ExternalPartySignatureFormat;
|
|
2
|
+
(function (ExternalPartySignatureFormat) {
|
|
3
|
+
ExternalPartySignatureFormat["unspecified"] = "unspecified";
|
|
4
|
+
ExternalPartySignatureFormat["raw"] = "raw";
|
|
5
|
+
ExternalPartySignatureFormat["der"] = "der";
|
|
6
|
+
ExternalPartySignatureFormat["concat"] = "concat";
|
|
7
|
+
ExternalPartySignatureFormat["symbolic"] = "symbolic";
|
|
8
|
+
})(ExternalPartySignatureFormat || (ExternalPartySignatureFormat = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ExternalPartySignatureFormat } from "./external-party-signature-format.js";
|
|
2
|
+
import { ExternalPartySigningAlgorithmSpec } from "./external-party-signing-algorithm-spec.js";
|
|
3
|
+
export declare class ExternalPartySignature {
|
|
4
|
+
readonly format: ExternalPartySignatureFormat;
|
|
5
|
+
readonly signature: Uint8Array;
|
|
6
|
+
readonly signedByFingerprint: string;
|
|
7
|
+
readonly signingAlgorithmSpec: ExternalPartySigningAlgorithmSpec;
|
|
8
|
+
constructor(init?: {
|
|
9
|
+
format?: ExternalPartySignatureFormat;
|
|
10
|
+
signature?: Uint8Array;
|
|
11
|
+
signedByFingerprint?: string;
|
|
12
|
+
signingAlgorithmSpec?: ExternalPartySigningAlgorithmSpec;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ExternalPartySignatureFormat } from "./external-party-signature-format.js";
|
|
2
|
+
import { ExternalPartySigningAlgorithmSpec } from "./external-party-signing-algorithm-spec.js";
|
|
3
|
+
export class ExternalPartySignature {
|
|
4
|
+
format;
|
|
5
|
+
signature;
|
|
6
|
+
signedByFingerprint;
|
|
7
|
+
signingAlgorithmSpec;
|
|
8
|
+
constructor(init = {}) {
|
|
9
|
+
this.format = init.format ?? ExternalPartySignatureFormat.unspecified;
|
|
10
|
+
this.signature = new Uint8Array(init.signature ?? []);
|
|
11
|
+
this.signedByFingerprint = init.signedByFingerprint ?? "";
|
|
12
|
+
this.signingAlgorithmSpec =
|
|
13
|
+
init.signingAlgorithmSpec
|
|
14
|
+
?? ExternalPartySigningAlgorithmSpec.unspecified;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var ExternalPartySigningAlgorithmSpec;
|
|
2
|
+
(function (ExternalPartySigningAlgorithmSpec) {
|
|
3
|
+
ExternalPartySigningAlgorithmSpec["unspecified"] = "unspecified";
|
|
4
|
+
ExternalPartySigningAlgorithmSpec["ed25519"] = "ed25519";
|
|
5
|
+
ExternalPartySigningAlgorithmSpec["ecDsaSha256"] = "ecDsaSha256";
|
|
6
|
+
ExternalPartySigningAlgorithmSpec["ecDsaSha384"] = "ecDsaSha384";
|
|
7
|
+
ExternalPartySigningAlgorithmSpec["mlDsa65"] = "mlDsa65";
|
|
8
|
+
})(ExternalPartySigningAlgorithmSpec || (ExternalPartySigningAlgorithmSpec = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var ExternalPartySigningKeySpec;
|
|
2
|
+
(function (ExternalPartySigningKeySpec) {
|
|
3
|
+
ExternalPartySigningKeySpec["unspecified"] = "unspecified";
|
|
4
|
+
ExternalPartySigningKeySpec["ecCurve25519"] = "ecCurve25519";
|
|
5
|
+
ExternalPartySigningKeySpec["ecP256"] = "ecP256";
|
|
6
|
+
ExternalPartySigningKeySpec["ecP384"] = "ecP384";
|
|
7
|
+
ExternalPartySigningKeySpec["ecSecp256k1"] = "ecSecp256k1";
|
|
8
|
+
ExternalPartySigningKeySpec["mlDsa65"] = "mlDsa65";
|
|
9
|
+
})(ExternalPartySigningKeySpec || (ExternalPartySigningKeySpec = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ExternalPartyCryptoKeyFormat } from "./external-party-crypto-key-format.js";
|
|
2
|
+
import { ExternalPartySigningKeySpec } from "./external-party-signing-key-spec.js";
|
|
3
|
+
export declare class ExternalPartySigningPublicKey {
|
|
4
|
+
readonly format: ExternalPartyCryptoKeyFormat;
|
|
5
|
+
readonly keyData: Uint8Array;
|
|
6
|
+
readonly keySpec: ExternalPartySigningKeySpec;
|
|
7
|
+
constructor(init?: {
|
|
8
|
+
format?: ExternalPartyCryptoKeyFormat;
|
|
9
|
+
keyData?: Uint8Array;
|
|
10
|
+
keySpec?: ExternalPartySigningKeySpec;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ExternalPartyCryptoKeyFormat } from "./external-party-crypto-key-format.js";
|
|
2
|
+
import { ExternalPartySigningKeySpec } from "./external-party-signing-key-spec.js";
|
|
3
|
+
export class ExternalPartySigningPublicKey {
|
|
4
|
+
format;
|
|
5
|
+
keyData;
|
|
6
|
+
keySpec;
|
|
7
|
+
constructor(init = {}) {
|
|
8
|
+
this.format = init.format ?? ExternalPartyCryptoKeyFormat.unspecified;
|
|
9
|
+
this.keyData = new Uint8Array(init.keyData ?? []);
|
|
10
|
+
this.keySpec = init.keySpec ?? ExternalPartySigningKeySpec.unspecified;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ParticipantPermission } from "../topology/participant-permission.js";
|
|
2
|
+
export declare class AddPartyAsyncArguments {
|
|
3
|
+
readonly partyId: string;
|
|
4
|
+
readonly synchronizerId: string;
|
|
5
|
+
readonly sourceParticipantUid: string;
|
|
6
|
+
readonly topologySerial: number;
|
|
7
|
+
readonly participantPermission: ParticipantPermission;
|
|
8
|
+
constructor(init: {
|
|
9
|
+
partyId: string;
|
|
10
|
+
synchronizerId: string;
|
|
11
|
+
sourceParticipantUid: string;
|
|
12
|
+
topologySerial: number;
|
|
13
|
+
participantPermission?: ParticipantPermission;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export declare class AddPartyAsyncRequest {
|
|
17
|
+
readonly arguments: AddPartyAsyncArguments;
|
|
18
|
+
constructor(init: {
|
|
19
|
+
arguments: AddPartyAsyncArguments | {
|
|
20
|
+
partyId: string;
|
|
21
|
+
synchronizerId: string;
|
|
22
|
+
sourceParticipantUid: string;
|
|
23
|
+
topologySerial: number;
|
|
24
|
+
participantPermission?: ParticipantPermission;
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ParticipantPermission } from "../topology/participant-permission.js";
|
|
2
|
+
export class AddPartyAsyncArguments {
|
|
3
|
+
partyId;
|
|
4
|
+
synchronizerId;
|
|
5
|
+
sourceParticipantUid;
|
|
6
|
+
topologySerial;
|
|
7
|
+
participantPermission;
|
|
8
|
+
constructor(init) {
|
|
9
|
+
this.partyId = init.partyId;
|
|
10
|
+
this.synchronizerId = init.synchronizerId;
|
|
11
|
+
this.sourceParticipantUid = init.sourceParticipantUid;
|
|
12
|
+
this.topologySerial = init.topologySerial;
|
|
13
|
+
this.participantPermission =
|
|
14
|
+
init.participantPermission ?? ParticipantPermission.unspecified;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export class AddPartyAsyncRequest {
|
|
18
|
+
arguments;
|
|
19
|
+
constructor(init) {
|
|
20
|
+
this.arguments =
|
|
21
|
+
init.arguments instanceof AddPartyAsyncArguments
|
|
22
|
+
? init.arguments
|
|
23
|
+
: new AddPartyAsyncArguments(init.arguments);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SignedTopologyTransaction } from "../topology/signed-topology-transaction.js";
|
|
2
|
+
import { TopologyDuration } from "../topology/topology-duration.js";
|
|
3
|
+
import { TopologyForceFlag } from "../topology/topology-force-flag.js";
|
|
4
|
+
import { TopologyStoreId } from "../topology/topology-store-id.js";
|
|
5
|
+
export declare class AddTopologyTransactionsRequest {
|
|
6
|
+
readonly transactions: SignedTopologyTransaction[];
|
|
7
|
+
readonly forceChanges: TopologyForceFlag[];
|
|
8
|
+
readonly store?: TopologyStoreId;
|
|
9
|
+
readonly waitToBecomeEffective?: TopologyDuration;
|
|
10
|
+
constructor(init?: {
|
|
11
|
+
transactions?: SignedTopologyTransaction[];
|
|
12
|
+
forceChanges?: TopologyForceFlag[];
|
|
13
|
+
store?: TopologyStoreId;
|
|
14
|
+
waitToBecomeEffective?: TopologyDuration;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export class AddTopologyTransactionsRequest {
|
|
2
|
+
transactions;
|
|
3
|
+
forceChanges;
|
|
4
|
+
store;
|
|
5
|
+
waitToBecomeEffective;
|
|
6
|
+
constructor(init = {}) {
|
|
7
|
+
this.transactions = [...(init.transactions ?? [])];
|
|
8
|
+
this.forceChanges = [...(init.forceChanges ?? [])];
|
|
9
|
+
this.store = init.store;
|
|
10
|
+
this.waitToBecomeEffective = init.waitToBecomeEffective;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ExternalPartyOnboardingTransaction } from "../external-party/external-party-onboarding-transaction.js";
|
|
2
|
+
import { ExternalPartySignature } from "../external-party/external-party-signature.js";
|
|
3
|
+
export declare class AllocateExternalPartyRequest {
|
|
4
|
+
readonly synchronizer: string;
|
|
5
|
+
readonly onboardingTransactions: ExternalPartyOnboardingTransaction[];
|
|
6
|
+
readonly multiHashSignatures: ExternalPartySignature[];
|
|
7
|
+
readonly identityProviderId?: string;
|
|
8
|
+
readonly waitForAllocation?: boolean;
|
|
9
|
+
readonly userId?: string;
|
|
10
|
+
constructor(init?: {
|
|
11
|
+
synchronizer?: string;
|
|
12
|
+
onboardingTransactions?: ExternalPartyOnboardingTransaction[];
|
|
13
|
+
multiHashSignatures?: ExternalPartySignature[];
|
|
14
|
+
identityProviderId?: string;
|
|
15
|
+
waitForAllocation?: boolean;
|
|
16
|
+
userId?: string;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export class AllocateExternalPartyRequest {
|
|
2
|
+
synchronizer;
|
|
3
|
+
onboardingTransactions;
|
|
4
|
+
multiHashSignatures;
|
|
5
|
+
identityProviderId;
|
|
6
|
+
waitForAllocation;
|
|
7
|
+
userId;
|
|
8
|
+
constructor(init = {}) {
|
|
9
|
+
this.synchronizer = init.synchronizer ?? "";
|
|
10
|
+
this.onboardingTransactions = [...(init.onboardingTransactions ?? [])];
|
|
11
|
+
this.multiHashSignatures = [...(init.multiHashSignatures ?? [])];
|
|
12
|
+
this.identityProviderId = init.identityProviderId;
|
|
13
|
+
this.waitForAllocation = init.waitForAllocation;
|
|
14
|
+
this.userId = init.userId;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ExternalTopologySignature } from "../topology/external-topology-signature.js";
|
|
2
|
+
import { PreparedTopologyTransaction } from "../topology/prepared-topology-transaction.js";
|
|
3
|
+
export declare class AssembleSignedTopologyTransactionsRequest {
|
|
4
|
+
readonly preparedTransactions: PreparedTopologyTransaction[];
|
|
5
|
+
readonly signatures: ExternalTopologySignature[];
|
|
6
|
+
constructor(init?: {
|
|
7
|
+
preparedTransactions?: PreparedTopologyTransaction[];
|
|
8
|
+
signatures?: ExternalTopologySignature[];
|
|
9
|
+
});
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { TopologyDuration } from "../topology/topology-duration.js";
|
|
2
|
+
import { TopologyForceFlag } from "../topology/topology-force-flag.js";
|
|
3
|
+
import { TopologyMapping } from "../topology/topology-mapping.js";
|
|
4
|
+
import { TopologyMappingOperation } from "../topology/topology-mapping-operation.js";
|
|
5
|
+
import { TopologyStoreId } from "../topology/topology-store-id.js";
|
|
6
|
+
export declare class AuthorizeTopologyTransactionsProposal {
|
|
7
|
+
readonly operation: TopologyMappingOperation;
|
|
8
|
+
readonly serial: number;
|
|
9
|
+
readonly mapping?: TopologyMapping;
|
|
10
|
+
constructor(init?: {
|
|
11
|
+
operation?: TopologyMappingOperation;
|
|
12
|
+
serial?: number;
|
|
13
|
+
mapping?: TopologyMapping;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export declare class AuthorizeTopologyTransactionsRequest {
|
|
17
|
+
readonly proposal?: AuthorizeTopologyTransactionsProposal;
|
|
18
|
+
readonly transactionHash?: string;
|
|
19
|
+
readonly mustFullyAuthorize: boolean;
|
|
20
|
+
readonly forceChanges: TopologyForceFlag[];
|
|
21
|
+
readonly signedBy: string[];
|
|
22
|
+
readonly store?: TopologyStoreId;
|
|
23
|
+
readonly waitToBecomeEffective?: TopologyDuration;
|
|
24
|
+
constructor(init?: {
|
|
25
|
+
proposal?: AuthorizeTopologyTransactionsProposal | {
|
|
26
|
+
operation?: TopologyMappingOperation;
|
|
27
|
+
serial?: number;
|
|
28
|
+
mapping?: TopologyMapping;
|
|
29
|
+
};
|
|
30
|
+
transactionHash?: string;
|
|
31
|
+
mustFullyAuthorize?: boolean;
|
|
32
|
+
forceChanges?: TopologyForceFlag[];
|
|
33
|
+
signedBy?: string[];
|
|
34
|
+
store?: TopologyStoreId;
|
|
35
|
+
waitToBecomeEffective?: TopologyDuration;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { TopologyMappingOperation } from "../topology/topology-mapping-operation.js";
|
|
2
|
+
export class AuthorizeTopologyTransactionsProposal {
|
|
3
|
+
operation;
|
|
4
|
+
serial;
|
|
5
|
+
mapping;
|
|
6
|
+
constructor(init = {}) {
|
|
7
|
+
this.operation =
|
|
8
|
+
init.operation ?? TopologyMappingOperation.unspecified;
|
|
9
|
+
this.serial = init.serial ?? 0;
|
|
10
|
+
this.mapping = init.mapping;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export class AuthorizeTopologyTransactionsRequest {
|
|
14
|
+
proposal;
|
|
15
|
+
transactionHash;
|
|
16
|
+
mustFullyAuthorize;
|
|
17
|
+
forceChanges;
|
|
18
|
+
signedBy;
|
|
19
|
+
store;
|
|
20
|
+
waitToBecomeEffective;
|
|
21
|
+
constructor(init = {}) {
|
|
22
|
+
this.proposal =
|
|
23
|
+
init.proposal === undefined
|
|
24
|
+
? undefined
|
|
25
|
+
: init.proposal instanceof AuthorizeTopologyTransactionsProposal
|
|
26
|
+
? init.proposal
|
|
27
|
+
: new AuthorizeTopologyTransactionsProposal(init.proposal);
|
|
28
|
+
this.transactionHash = init.transactionHash;
|
|
29
|
+
this.mustFullyAuthorize = init.mustFullyAuthorize ?? false;
|
|
30
|
+
this.forceChanges = [...(init.forceChanges ?? [])];
|
|
31
|
+
this.signedBy = [...(init.signedBy ?? [])];
|
|
32
|
+
this.store = init.store;
|
|
33
|
+
this.waitToBecomeEffective = init.waitToBecomeEffective;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TopologyDuration } from "../topology/topology-duration.js";
|
|
2
|
+
export declare class ClearPartyOnboardingFlagRequest {
|
|
3
|
+
readonly partyId: string;
|
|
4
|
+
readonly synchronizerId: string;
|
|
5
|
+
readonly beginOffsetExclusive: string;
|
|
6
|
+
readonly waitForActivationTimeout?: TopologyDuration;
|
|
7
|
+
constructor(init: {
|
|
8
|
+
partyId: string;
|
|
9
|
+
synchronizerId: string;
|
|
10
|
+
beginOffsetExclusive: string;
|
|
11
|
+
waitForActivationTimeout?: TopologyDuration;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export class ClearPartyOnboardingFlagRequest {
|
|
2
|
+
partyId;
|
|
3
|
+
synchronizerId;
|
|
4
|
+
beginOffsetExclusive;
|
|
5
|
+
waitForActivationTimeout;
|
|
6
|
+
constructor(init) {
|
|
7
|
+
this.partyId = init.partyId;
|
|
8
|
+
this.synchronizerId = init.synchronizerId;
|
|
9
|
+
this.beginOffsetExclusive = init.beginOffsetExclusive;
|
|
10
|
+
this.waitForActivationTimeout = init.waitForActivationTimeout;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ExternalPartySigningPublicKey } from "../external-party/external-party-signing-public-key.js";
|
|
2
|
+
export declare class GenerateExternalPartyTopologyRequest {
|
|
3
|
+
readonly synchronizer: string;
|
|
4
|
+
readonly partyHint: string;
|
|
5
|
+
readonly publicKey?: ExternalPartySigningPublicKey;
|
|
6
|
+
readonly localParticipantObservationOnly: boolean;
|
|
7
|
+
readonly otherConfirmingParticipantUids: string[];
|
|
8
|
+
readonly confirmationThreshold: number;
|
|
9
|
+
readonly observingParticipantUids: string[];
|
|
10
|
+
constructor(init?: {
|
|
11
|
+
synchronizer?: string;
|
|
12
|
+
partyHint?: string;
|
|
13
|
+
publicKey?: ExternalPartySigningPublicKey;
|
|
14
|
+
localParticipantObservationOnly?: boolean;
|
|
15
|
+
otherConfirmingParticipantUids?: string[];
|
|
16
|
+
confirmationThreshold?: number;
|
|
17
|
+
observingParticipantUids?: string[];
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export class GenerateExternalPartyTopologyRequest {
|
|
2
|
+
synchronizer;
|
|
3
|
+
partyHint;
|
|
4
|
+
publicKey;
|
|
5
|
+
localParticipantObservationOnly;
|
|
6
|
+
otherConfirmingParticipantUids;
|
|
7
|
+
confirmationThreshold;
|
|
8
|
+
observingParticipantUids;
|
|
9
|
+
constructor(init = {}) {
|
|
10
|
+
this.synchronizer = init.synchronizer ?? "";
|
|
11
|
+
this.partyHint = init.partyHint ?? "";
|
|
12
|
+
this.publicKey = init.publicKey;
|
|
13
|
+
this.localParticipantObservationOnly =
|
|
14
|
+
init.localParticipantObservationOnly ?? false;
|
|
15
|
+
this.otherConfirmingParticipantUids = [
|
|
16
|
+
...(init.otherConfirmingParticipantUids ?? []),
|
|
17
|
+
];
|
|
18
|
+
this.confirmationThreshold = init.confirmationThreshold ?? 0;
|
|
19
|
+
this.observingParticipantUids = [...(init.observingParticipantUids ?? [])];
|
|
20
|
+
}
|
|
21
|
+
}
|