cantonjs-splice-validator 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +143 -0
  2. package/dist/createAnsClient.d.ts +33 -0
  3. package/dist/createAnsClient.js +22 -0
  4. package/dist/createAnsClient.js.map +1 -0
  5. package/dist/createLegacyWalletClient.d.ts +51 -0
  6. package/dist/createLegacyWalletClient.js +81 -0
  7. package/dist/createLegacyWalletClient.js.map +1 -0
  8. package/dist/createScanProxyClient.d.ts +108 -0
  9. package/dist/createScanProxyClient.js +161 -0
  10. package/dist/createScanProxyClient.js.map +1 -0
  11. package/dist/experimental/createExperimentalScanProxyClient.d.ts +81 -0
  12. package/dist/experimental/createExperimentalScanProxyClient.js +135 -0
  13. package/dist/experimental/createExperimentalScanProxyClient.js.map +1 -0
  14. package/dist/experimental/createExperimentalValidatorInternalClient.d.ts +183 -0
  15. package/dist/experimental/createExperimentalValidatorInternalClient.js +327 -0
  16. package/dist/experimental/createExperimentalValidatorInternalClient.js.map +1 -0
  17. package/dist/experimental/index.d.ts +2 -0
  18. package/dist/experimental/index.js +3 -0
  19. package/dist/experimental/index.js.map +1 -0
  20. package/dist/generated/ans.types.d.ts +194 -0
  21. package/dist/generated/ans.types.js +6 -0
  22. package/dist/generated/ans.types.js.map +1 -0
  23. package/dist/generated/scanProxy.types.d.ts +836 -0
  24. package/dist/generated/scanProxy.types.js +6 -0
  25. package/dist/generated/scanProxy.types.js.map +1 -0
  26. package/dist/generated/validatorInternal.types.d.ts +1297 -0
  27. package/dist/generated/validatorInternal.types.js +6 -0
  28. package/dist/generated/validatorInternal.types.js.map +1 -0
  29. package/dist/generated/walletExternal.types.d.ts +544 -0
  30. package/dist/generated/walletExternal.types.js +6 -0
  31. package/dist/generated/walletExternal.types.js.map +1 -0
  32. package/dist/index.d.ts +5 -0
  33. package/dist/index.js +5 -0
  34. package/dist/index.js.map +1 -0
  35. package/package.json +67 -0
@@ -0,0 +1,1297 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/readyz": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ get: operations["isReady"];
14
+ put?: never;
15
+ post?: never;
16
+ delete?: never;
17
+ options?: never;
18
+ head?: never;
19
+ patch?: never;
20
+ trace?: never;
21
+ };
22
+ "/livez": {
23
+ parameters: {
24
+ query?: never;
25
+ header?: never;
26
+ path?: never;
27
+ cookie?: never;
28
+ };
29
+ get: operations["isLive"];
30
+ put?: never;
31
+ post?: never;
32
+ delete?: never;
33
+ options?: never;
34
+ head?: never;
35
+ patch?: never;
36
+ trace?: never;
37
+ };
38
+ "/v0/validator-user": {
39
+ parameters: {
40
+ query?: never;
41
+ header?: never;
42
+ path?: never;
43
+ cookie?: never;
44
+ };
45
+ /** @description Get public information about the validator operator. */
46
+ get: operations["getValidatorUserInfo"];
47
+ put?: never;
48
+ post?: never;
49
+ delete?: never;
50
+ options?: never;
51
+ head?: never;
52
+ patch?: never;
53
+ trace?: never;
54
+ };
55
+ "/v0/register": {
56
+ parameters: {
57
+ query?: never;
58
+ header?: never;
59
+ path?: never;
60
+ cookie?: never;
61
+ };
62
+ get?: never;
63
+ put?: never;
64
+ /**
65
+ * @description As an authenticated user, onboard yourself.
66
+ * Onboarding includes allocating a ledger API user and daml party,
67
+ * and setting up daml contracts required for the user to use a wallet on this validator.
68
+ *
69
+ * The ledger API user name is taken from the subject claim of the JWT token.
70
+ *
71
+ * Once this call returns a successful response, the user is fully onboarded.
72
+ * Use [v0/wallet/user-status](../../../../wallet/src/main/openapi/wallet-internal.yaml#/paths/v0/wallet/user-status)
73
+ * to check the status of the user onboarding.
74
+ */
75
+ post: operations["register"];
76
+ delete?: never;
77
+ options?: never;
78
+ head?: never;
79
+ patch?: never;
80
+ trace?: never;
81
+ };
82
+ "/v0/admin/users": {
83
+ parameters: {
84
+ query?: never;
85
+ header?: never;
86
+ path?: never;
87
+ cookie?: never;
88
+ };
89
+ /** @description Lists all users onboarded onto this validator. */
90
+ get: operations["listUsers"];
91
+ put?: never;
92
+ /**
93
+ * @description As the validator operator, onboard an arbitrary user specified in the request.
94
+ * Onboarding includes allocating a ledger API user and daml party,
95
+ * and setting up daml contracts required for the user to use a wallet on this validator.
96
+ *
97
+ * Once this call returns a successful response, the user is fully onboarded.
98
+ * Use [v0/wallet/user-status](../../../../wallet/src/main/openapi/wallet-internal.yaml#/paths/v0/wallet/user-status)
99
+ * to check the status of the user onboarding.
100
+ */
101
+ post: operations["onboardUser"];
102
+ delete?: never;
103
+ options?: never;
104
+ head?: never;
105
+ patch?: never;
106
+ trace?: never;
107
+ };
108
+ "/v0/admin/users/offboard": {
109
+ parameters: {
110
+ query?: never;
111
+ header?: never;
112
+ path?: never;
113
+ cookie?: never;
114
+ };
115
+ get?: never;
116
+ put?: never;
117
+ /**
118
+ * @description As the validator operator, offboard the user specified in the request.
119
+ * Offboarding archives the daml contracts required for the user to use a wallet on this validator.
120
+ * Offboarding deletes the ledger API user.
121
+ * Offboarding does not archive any other daml contracts owned by the user.
122
+ */
123
+ post: operations["offboardUser"];
124
+ delete?: never;
125
+ options?: never;
126
+ head?: never;
127
+ patch?: never;
128
+ trace?: never;
129
+ };
130
+ "/v0/admin/participant/identities": {
131
+ parameters: {
132
+ query?: never;
133
+ header?: never;
134
+ path?: never;
135
+ cookie?: never;
136
+ };
137
+ /**
138
+ * @description Returns a dump of participant identities.
139
+ *
140
+ * Use this endpoint if instructed to do so by an operational manual or support.
141
+ */
142
+ get: operations["dumpParticipantIdentities"];
143
+ put?: never;
144
+ post?: never;
145
+ delete?: never;
146
+ options?: never;
147
+ head?: never;
148
+ patch?: never;
149
+ trace?: never;
150
+ };
151
+ "/v0/admin/participant/global-domain-connection-config": {
152
+ parameters: {
153
+ query?: never;
154
+ header?: never;
155
+ path?: never;
156
+ cookie?: never;
157
+ };
158
+ /**
159
+ * @description Returns the connection configuration for the global synchronizer.
160
+ *
161
+ * Use this endpoint if instructed to do so by an operational manual or support.
162
+ */
163
+ get: operations["getDecentralizedSynchronizerConnectionConfig"];
164
+ put?: never;
165
+ post?: never;
166
+ delete?: never;
167
+ options?: never;
168
+ head?: never;
169
+ patch?: never;
170
+ trace?: never;
171
+ };
172
+ "/v0/admin/domain/data-snapshot": {
173
+ parameters: {
174
+ query?: never;
175
+ header?: never;
176
+ path?: never;
177
+ cookie?: never;
178
+ };
179
+ /**
180
+ * @description Returns a snapshot of the global synchronizer data for this validator.
181
+ * The snapshot includes a list of parties, the active contract set (ACS), and node identities.
182
+ *
183
+ * Use this endpoint if instructed to do so by an operational manual or support.
184
+ */
185
+ get: operations["getValidatorDomainDataSnapshot"];
186
+ put?: never;
187
+ post?: never;
188
+ delete?: never;
189
+ options?: never;
190
+ head?: never;
191
+ patch?: never;
192
+ trace?: never;
193
+ };
194
+ "/v0/admin/transfer-preapprovals/by-party/{receiver-party}": {
195
+ parameters: {
196
+ query?: never;
197
+ header?: never;
198
+ path?: never;
199
+ cookie?: never;
200
+ };
201
+ /** @description Lookup the `Splice.AmuletRules.TransferPreapproval` contract for the given receiver party. */
202
+ get: operations["lookupTransferPreapprovalByParty"];
203
+ put?: never;
204
+ post?: never;
205
+ /** @description Remove the `Splice.AmuletRules.TransferPreapproval` contract for the given receiver party. */
206
+ delete: operations["cancelTransferPreapprovalByParty"];
207
+ options?: never;
208
+ head?: never;
209
+ patch?: never;
210
+ trace?: never;
211
+ };
212
+ "/v0/admin/transfer-preapprovals": {
213
+ parameters: {
214
+ query?: never;
215
+ header?: never;
216
+ path?: never;
217
+ cookie?: never;
218
+ };
219
+ /** @description List all `Splice.AmuletRules.TransferPreapproval` contracts where the preapproval provider is the validator operator. */
220
+ get: operations["listTransferPreapprovals"];
221
+ put?: never;
222
+ post?: never;
223
+ delete?: never;
224
+ options?: never;
225
+ head?: never;
226
+ patch?: never;
227
+ trace?: never;
228
+ };
229
+ "/v0/admin/external-party/transfer-preapproval/prepare-send": {
230
+ parameters: {
231
+ query?: never;
232
+ header?: never;
233
+ path?: never;
234
+ cookie?: never;
235
+ };
236
+ get?: never;
237
+ put?: never;
238
+ /**
239
+ * @deprecated
240
+ * @description **Deprecated**. Prepare a transaction to create a TransferCommand with the given CC amount to the specified receiver
241
+ * from the externally hosted sender.
242
+ * The transaction then needs to be signed and submitted through
243
+ * /v0/admin/external-party/transfer-preapproval/submit-send.
244
+ */
245
+ post: operations["prepareTransferPreapprovalSend"];
246
+ delete?: never;
247
+ options?: never;
248
+ head?: never;
249
+ patch?: never;
250
+ trace?: never;
251
+ };
252
+ "/v0/admin/external-party/transfer-preapproval/submit-send": {
253
+ parameters: {
254
+ query?: never;
255
+ header?: never;
256
+ path?: never;
257
+ cookie?: never;
258
+ };
259
+ get?: never;
260
+ put?: never;
261
+ /**
262
+ * @deprecated
263
+ * @description **Deprecated**. Submit transaction generated by /v0/admin/transfer-preapproval/prepare-send
264
+ * together with its signature. Note that this only waits until the TransferCommand is created.
265
+ * The actual transfer will happen afterwards through automation run by the SVs.
266
+ */
267
+ post: operations["submitTransferPreapprovalSend"];
268
+ delete?: never;
269
+ options?: never;
270
+ head?: never;
271
+ patch?: never;
272
+ trace?: never;
273
+ };
274
+ "/v0/admin/external-party/topology/generate": {
275
+ parameters: {
276
+ query?: never;
277
+ header?: never;
278
+ path?: never;
279
+ cookie?: never;
280
+ };
281
+ get?: never;
282
+ put?: never;
283
+ /**
284
+ * @description Creates a root namespace topology transaction, which will create the party and sets the public key
285
+ * controlling the party namespace,
286
+ * a party to participant mapping topology transaction, which hosts the party on the participant with Confirmation rights,
287
+ * and a party to key mapping topology transaction, which sets the key to authorize daml transactions.
288
+ * The hash of each of these transactions will be signed along with the corresponding topology transaction (unchanged)
289
+ * in the /v0/admin/external-party/topology/submit endpoint
290
+ */
291
+ post: operations["generateExternalPartyTopology"];
292
+ delete?: never;
293
+ options?: never;
294
+ head?: never;
295
+ patch?: never;
296
+ trace?: never;
297
+ };
298
+ "/v0/admin/external-party/topology/submit": {
299
+ parameters: {
300
+ query?: never;
301
+ header?: never;
302
+ path?: never;
303
+ cookie?: never;
304
+ };
305
+ get?: never;
306
+ put?: never;
307
+ /**
308
+ * @description Constructs a SignedTopologyTransaction and writes the topology transactions to the authorized store.
309
+ * The input will consist of the unchanged topology transaction and the signed hash from the /v0/external-party-topology/generate endpoint
310
+ */
311
+ post: operations["submitExternalPartyTopology"];
312
+ delete?: never;
313
+ options?: never;
314
+ head?: never;
315
+ patch?: never;
316
+ trace?: never;
317
+ };
318
+ "/v0/admin/external-party/setup-proposal": {
319
+ parameters: {
320
+ query?: never;
321
+ header?: never;
322
+ path?: never;
323
+ cookie?: never;
324
+ };
325
+ /** @description List all ExternalPartySetupProposal contracts. */
326
+ get: operations["listExternalPartySetupProposals"];
327
+ put?: never;
328
+ /**
329
+ * @description Create the ExternalPartySetupProposal contract as the validator operator
330
+ * which then has to be accepted by the external party using /v0/admin/external-party/setup-proposal/prepare-accept
331
+ * and /v0/admin/external-party/setup-proposal/submit-accept
332
+ */
333
+ post: operations["createExternalPartySetupProposal"];
334
+ delete?: never;
335
+ options?: never;
336
+ head?: never;
337
+ patch?: never;
338
+ trace?: never;
339
+ };
340
+ "/v0/admin/external-party/setup-proposal/prepare-accept": {
341
+ parameters: {
342
+ query?: never;
343
+ header?: never;
344
+ path?: never;
345
+ cookie?: never;
346
+ };
347
+ get?: never;
348
+ put?: never;
349
+ /**
350
+ * @description Given a contract id of an ExternalPartySetupProposal, prepare the transaction
351
+ * to accept it such that it can be signed externally and then submitted using
352
+ * /v0/admin/external-party/setup-proposal/submit-accept
353
+ */
354
+ post: operations["prepareAcceptExternalPartySetupProposal"];
355
+ delete?: never;
356
+ options?: never;
357
+ head?: never;
358
+ patch?: never;
359
+ trace?: never;
360
+ };
361
+ "/v0/admin/external-party/setup-proposal/submit-accept": {
362
+ parameters: {
363
+ query?: never;
364
+ header?: never;
365
+ path?: never;
366
+ cookie?: never;
367
+ };
368
+ get?: never;
369
+ put?: never;
370
+ /**
371
+ * @description Submit a transaction prepared using /v0/admin/external-party/setup-proposal/prepare-accept
372
+ * together with its signature.
373
+ */
374
+ post: operations["submitAcceptExternalPartySetupProposal"];
375
+ delete?: never;
376
+ options?: never;
377
+ head?: never;
378
+ patch?: never;
379
+ trace?: never;
380
+ };
381
+ "/v0/admin/external-party/balance": {
382
+ parameters: {
383
+ query?: never;
384
+ header?: never;
385
+ path?: never;
386
+ cookie?: never;
387
+ };
388
+ /** @description Get the balance of an external party. */
389
+ get: operations["getExternalPartyBalance"];
390
+ put?: never;
391
+ post?: never;
392
+ delete?: never;
393
+ options?: never;
394
+ head?: never;
395
+ patch?: never;
396
+ trace?: never;
397
+ };
398
+ }
399
+ export type webhooks = Record<string, never>;
400
+ export interface components {
401
+ schemas: {
402
+ OnboardUserRequest: {
403
+ /** @description The name of the user to onboard. */
404
+ name: string;
405
+ /**
406
+ * @description The party id of the user to onboard.
407
+ * If no party_id is provided then a fresh party will be generated, using the 'name' as the Party Hint.
408
+ * If party_id is provided and createPartyIfMissing is false, then the party must already exist on the ledger. The existing party will be assigned to the user.
409
+ * If party_id is provided and createPartyIfMissing is true, then: if a party with the provided party_id exists, the user will be associated with it. Otherwise, a new party will be created using the provided party_id, and the user will be associated with that new party.
410
+ */
411
+ party_id?: string;
412
+ /**
413
+ * @description If true, create the party if it does not already exist on the ledger.
414
+ * Default is 'false'.
415
+ */
416
+ createPartyIfMissing?: boolean;
417
+ };
418
+ OnboardUserResponse: {
419
+ /** @description The daml party id of the user that was onboarded. */
420
+ party_id: string;
421
+ };
422
+ GenerateExternalPartyTopologyRequest: {
423
+ /** @description The actual party id will be constructed from this hint and a fingerprint of the public key. */
424
+ party_hint: string;
425
+ /** @description hex-encoded ed25519 public key */
426
+ public_key: string;
427
+ };
428
+ GenerateExternalPartyTopologyResponse: {
429
+ /** @description The generated party id of the external user. */
430
+ party_id: string;
431
+ topology_txs: components["schemas"]["TopologyTx"][];
432
+ };
433
+ TopologyTx: {
434
+ /** @description base64 encoded topology transaction */
435
+ topology_tx: string;
436
+ /** @description hex-encoded hash of the topology transaction */
437
+ hash: string;
438
+ };
439
+ SubmitExternalPartyTopologyRequest: {
440
+ /** @description hex-encoded ed25519 public key */
441
+ public_key: string;
442
+ signed_topology_txs: components["schemas"]["SignedTopologyTx"][];
443
+ };
444
+ SubmitExternalPartyTopologyResponse: {
445
+ party_id: string;
446
+ };
447
+ SignedTopologyTx: {
448
+ /**
449
+ * @description base64 encoded topology transaction, this should be identical to the topology transaction
450
+ * received from the /v0/external-party-topology/generate endpoint.
451
+ */
452
+ topology_tx: string;
453
+ /**
454
+ * @description hex-encoded ed25519 signature of the hash return by the generate endpoint in the form
455
+ * `${r}${s}`.
456
+ */
457
+ signed_hash: string;
458
+ };
459
+ RegistrationRequest: Record<string, never> | null;
460
+ RegistrationResponse: {
461
+ /** @description The party id of the user that was onboarded. */
462
+ party_id: string;
463
+ };
464
+ GetValidatorUserInfoResponse: {
465
+ /** @description The daml party id of the validator operator. */
466
+ party_id: string;
467
+ /** @description The ledger API user of the validator operator. */
468
+ user_name: string;
469
+ featured: boolean;
470
+ };
471
+ GetDecentralizedSynchronizerConnectionConfigResponse: {
472
+ sequencer_connections: components["schemas"]["SequencerConnections"];
473
+ };
474
+ ListUsersResponse: {
475
+ usernames: string[];
476
+ };
477
+ SequencerConnections: {
478
+ connections: components["schemas"]["SequencerAliasToConnections"][];
479
+ /** Format: int32 */
480
+ sequencer_trust_threshold: number;
481
+ /** Format: int32 */
482
+ sequencer_liveness_margin: number;
483
+ submission_request_amplification: components["schemas"]["SequencerSubmissionRequestAmplification"];
484
+ };
485
+ SequencerAliasToConnections: {
486
+ sequencer_alias: string;
487
+ endpoints: string[];
488
+ transport_security: boolean;
489
+ };
490
+ Dar: {
491
+ hash: string;
492
+ /** @description base64 encoded string of a dar package */
493
+ content: string;
494
+ };
495
+ DomainMigrationDump: {
496
+ participant: components["schemas"]["NodeIdentitiesDump"];
497
+ participant_users: components["schemas"]["ParticipantUsersData"];
498
+ /** @description base64 encoded string of acs snapshot for the requested party id */
499
+ acs_snapshot: string;
500
+ acs_timestamp: string;
501
+ dars: components["schemas"]["Dar"][];
502
+ /** Format: int64 */
503
+ migration_id: number;
504
+ domain_id: string;
505
+ created_at: string;
506
+ synchronizer_was_paused?: boolean;
507
+ /** @description If set to true, acs_snapshot is a filename */
508
+ separate_payload_files?: boolean;
509
+ /** @enum {string} */
510
+ acs_format?: "admin_api" | "ledger_api";
511
+ };
512
+ GetValidatorDomainDataSnapshotResponse: {
513
+ data_snapshot: components["schemas"]["DomainMigrationDump"];
514
+ /** Format: int64 */
515
+ migration_id: number;
516
+ };
517
+ SequencerSubmissionRequestAmplification: {
518
+ factor: number;
519
+ patience_seconds: number;
520
+ };
521
+ CreateExternalPartySetupProposalRequest: {
522
+ user_party_id: string;
523
+ };
524
+ CreateExternalPartySetupProposalResponse: {
525
+ contract_id: components["schemas"]["ContractId"];
526
+ };
527
+ ListExternalPartySetupProposalsResponse: {
528
+ contracts: components["schemas"]["ContractWithState"][];
529
+ };
530
+ PrepareAcceptExternalPartySetupProposalRequest: {
531
+ contract_id: components["schemas"]["ContractId"];
532
+ user_party_id: string;
533
+ /**
534
+ * @description When true, the response will contain additional details on how the transaction was encoded and hashed.
535
+ * This can be useful for troubleshooting of hash mismatches. Should only be used for debugging.
536
+ * @default false
537
+ */
538
+ verbose_hashing: boolean;
539
+ };
540
+ PrepareAcceptExternalPartySetupProposalResponse: {
541
+ /**
542
+ * @description base64-encoded transaction. The transaction corresponds to
543
+ * the protobuf definition of a `PreparedTransaction`
544
+ * https://github.com/digital-asset/canton/blob/main/community/ledger-api/src/main/protobuf/com/daml/ledger/api/v2/interactive_submission_data.proto#L18
545
+ * and can be decoded using standard protobuf libraries.
546
+ */
547
+ transaction: string;
548
+ /** @description Hex-encoded hash of the transaction */
549
+ tx_hash: string;
550
+ /**
551
+ * @description Optional additional details on how the transaction was encoded and hashed. Only set if verbose_hashing=true in the request.
552
+ * Note that there are no guarantees on the stability of the format or content of this field.
553
+ * Its content should NOT be parsed and should only be used for troubleshooting purposes.
554
+ */
555
+ hashing_details?: string;
556
+ };
557
+ SubmitAcceptExternalPartySetupProposalRequest: {
558
+ submission: components["schemas"]["ExternalPartySubmission"];
559
+ };
560
+ SubmitAcceptExternalPartySetupProposalResponse: {
561
+ transfer_preapproval_contract_id: components["schemas"]["ContractId"];
562
+ update_id: string;
563
+ };
564
+ ExternalPartyBalanceResponse: {
565
+ party_id: string;
566
+ total_unlocked_coin: string;
567
+ total_locked_coin: string;
568
+ total_coin_holdings: string;
569
+ accumulated_holding_fees_unlocked: string;
570
+ accumulated_holding_fees_locked: string;
571
+ accumulated_holding_fees_total: string;
572
+ total_available_coin: string;
573
+ /** Format: int64 */
574
+ computed_as_of_round: number;
575
+ };
576
+ ListTransferPreapprovalsResponse: {
577
+ contracts: components["schemas"]["ContractWithState"][];
578
+ };
579
+ LookupTransferPreapprovalByPartyResponse: {
580
+ transfer_preapproval: components["schemas"]["ContractWithState"];
581
+ };
582
+ PrepareTransferPreapprovalSendRequest: {
583
+ sender_party_id: string;
584
+ receiver_party_id: string;
585
+ amount: number;
586
+ /** Format: date-time */
587
+ expires_at: string;
588
+ /**
589
+ * Format: int64
590
+ * @description The expected value of the counter that is used to order and deduplicate TransferCommands. Starts at 0 and increases
591
+ * by 1 for each executed TransferCommand (independent of whether is succeeded or not). The most recent value can be read from scan
592
+ * through /v0/transfer-command-counter/{party}
593
+ */
594
+ nonce: number;
595
+ /**
596
+ * @description When true, the response will contain additional details on how the transaction was encoded and hashed.
597
+ * This can be useful for troubleshooting of hash mismatches. Should only be used for debugging.
598
+ * @default false
599
+ */
600
+ verbose_hashing: boolean;
601
+ description?: string;
602
+ };
603
+ PrepareTransferPreapprovalSendResponse: {
604
+ /**
605
+ * @description base64-encoded transaction. The transaction corresponds to
606
+ * the protobuf definition of a `PreparedTransaction`
607
+ * https://github.com/digital-asset/canton/blob/main/community/ledger-api/src/main/protobuf/com/daml/ledger/api/v2/interactive_submission_data.proto#L18
608
+ * and can be decoded using standard protobuf libraries.
609
+ */
610
+ transaction: string;
611
+ /** @description Hex-encoded hash of the transaction */
612
+ tx_hash: string;
613
+ /**
614
+ * @description Prefix of the ContractId of the created TransferCommand. Matches the contract id of the corresponding `Create` node in the prepared transaction which
615
+ * also only contains the prefix. The final transaction observed on the update stream or in the result of looking up the transfer command status on Scan
616
+ * adds an additional suffix to the contract id.
617
+ */
618
+ transfer_command_contract_id_prefix: string;
619
+ /**
620
+ * @description Optional additional details on how the transaction was encoded and hashed. Only set if verbose_hashing=true in the request.
621
+ * Note that there are no guarantees on the stability of the format or content of this field.
622
+ * Its content should NOT be parsed and should only be used for troubleshooting purposes.
623
+ */
624
+ hashing_details?: string;
625
+ };
626
+ SubmitTransferPreapprovalSendRequest: {
627
+ submission: components["schemas"]["ExternalPartySubmission"];
628
+ };
629
+ SubmitTransferPreapprovalSendResponse: {
630
+ update_id: string;
631
+ };
632
+ ExternalPartySubmission: {
633
+ party_id: string;
634
+ /**
635
+ * @description base64-encoded transaction. The transaction corresponds to
636
+ * the protobuf definition of a `PreparedTransaction`
637
+ * https://github.com/digital-asset/canton/blob/main/community/ledger-api/src/main/protobuf/com/daml/ledger/api/v2/interactive_submission_data.proto#L18
638
+ * and can be decoded using standard protobuf libraries.
639
+ */
640
+ transaction: string;
641
+ /**
642
+ * @description hex-encoded ed25519 signature of the hash return by the prepare endpoint in the form
643
+ * `${r}${s}`.
644
+ */
645
+ signed_tx_hash: string;
646
+ /** @description hex-encoded ed25519 public key */
647
+ public_key: string;
648
+ };
649
+ ErrorResponse: {
650
+ error: string;
651
+ };
652
+ KeyPair: {
653
+ keyPair: string;
654
+ name?: string;
655
+ };
656
+ KmsKeyId: {
657
+ /** @enum {string} */
658
+ type: "signing" | "encryption";
659
+ keyId: string;
660
+ name?: string;
661
+ };
662
+ NodeKey: components["schemas"]["KeyPair"] | components["schemas"]["KmsKeyId"];
663
+ NodeIdentitiesDump: {
664
+ id: string;
665
+ keys: components["schemas"]["NodeKey"][];
666
+ /** @description base64 encoded string of authorized store snapshot */
667
+ authorizedStoreSnapshot: string;
668
+ version?: string;
669
+ };
670
+ ParticipantIdentityProvider: {
671
+ id: string;
672
+ /** @default false */
673
+ isDeactivated: boolean;
674
+ jwksUrl: string;
675
+ issuer: string;
676
+ audience: string;
677
+ };
678
+ ParticipantUserRight: {
679
+ /** @enum {string} */
680
+ kind: "participantAdmin" | "canActAs" | "canReadAs" | "canExecuteAs" | "identityProviderAdmin" | "canReadAsAnyParty" | "canExecuteAsAnyParty";
681
+ party?: string;
682
+ };
683
+ ParticipantUserAnnotation: {
684
+ key: string;
685
+ value: string;
686
+ };
687
+ ParticipantUser: {
688
+ id: string;
689
+ primaryParty?: string;
690
+ rights: components["schemas"]["ParticipantUserRight"][];
691
+ /** @default false */
692
+ isDeactivated: boolean;
693
+ annotations: components["schemas"]["ParticipantUserAnnotation"][];
694
+ /** @default */
695
+ identityProviderId: string;
696
+ };
697
+ ParticipantUsersData: {
698
+ identityProviders: components["schemas"]["ParticipantIdentityProvider"][];
699
+ users: components["schemas"]["ParticipantUser"][];
700
+ };
701
+ Contract: {
702
+ template_id: string;
703
+ contract_id: string;
704
+ payload: Record<string, never>;
705
+ created_event_blob: string;
706
+ created_at: string;
707
+ };
708
+ ContractWithState: {
709
+ contract: components["schemas"]["Contract"];
710
+ domain_id?: string;
711
+ };
712
+ ContractId: string;
713
+ };
714
+ responses: {
715
+ /** @description bad request */
716
+ 400: {
717
+ headers: {
718
+ [name: string]: unknown;
719
+ };
720
+ content: {
721
+ "application/json": components["schemas"]["ErrorResponse"];
722
+ };
723
+ };
724
+ /** @description not found */
725
+ 404: {
726
+ headers: {
727
+ [name: string]: unknown;
728
+ };
729
+ content: {
730
+ "application/json": components["schemas"]["ErrorResponse"];
731
+ };
732
+ };
733
+ /** @description conflict */
734
+ 409: {
735
+ headers: {
736
+ [name: string]: unknown;
737
+ };
738
+ content: {
739
+ "application/json": components["schemas"]["ErrorResponse"];
740
+ };
741
+ };
742
+ /** @description internal server error */
743
+ 500: {
744
+ headers: {
745
+ [name: string]: unknown;
746
+ };
747
+ content: {
748
+ "application/json": components["schemas"]["ErrorResponse"];
749
+ };
750
+ };
751
+ /** @description not implemented */
752
+ 501: {
753
+ headers: {
754
+ [name: string]: unknown;
755
+ };
756
+ content: {
757
+ "application/json": components["schemas"]["ErrorResponse"];
758
+ };
759
+ };
760
+ };
761
+ parameters: never;
762
+ requestBodies: never;
763
+ headers: never;
764
+ pathItems: never;
765
+ }
766
+ export type $defs = Record<string, never>;
767
+ export interface operations {
768
+ isReady: {
769
+ parameters: {
770
+ query?: never;
771
+ header?: never;
772
+ path?: never;
773
+ cookie?: never;
774
+ };
775
+ requestBody?: never;
776
+ responses: {
777
+ /** @description ok */
778
+ 200: {
779
+ headers: {
780
+ [name: string]: unknown;
781
+ };
782
+ content?: never;
783
+ };
784
+ /** @description service_unavailable */
785
+ 503: {
786
+ headers: {
787
+ [name: string]: unknown;
788
+ };
789
+ content?: never;
790
+ };
791
+ };
792
+ };
793
+ isLive: {
794
+ parameters: {
795
+ query?: never;
796
+ header?: never;
797
+ path?: never;
798
+ cookie?: never;
799
+ };
800
+ requestBody?: never;
801
+ responses: {
802
+ /** @description ok */
803
+ 200: {
804
+ headers: {
805
+ [name: string]: unknown;
806
+ };
807
+ content?: never;
808
+ };
809
+ /** @description service_unavailable */
810
+ 503: {
811
+ headers: {
812
+ [name: string]: unknown;
813
+ };
814
+ content?: never;
815
+ };
816
+ };
817
+ };
818
+ getValidatorUserInfo: {
819
+ parameters: {
820
+ query?: never;
821
+ header?: never;
822
+ path?: never;
823
+ cookie?: never;
824
+ };
825
+ requestBody?: never;
826
+ responses: {
827
+ /** @description ok */
828
+ 200: {
829
+ headers: {
830
+ [name: string]: unknown;
831
+ };
832
+ content: {
833
+ "application/json": components["schemas"]["GetValidatorUserInfoResponse"];
834
+ };
835
+ };
836
+ };
837
+ };
838
+ register: {
839
+ parameters: {
840
+ query?: never;
841
+ header?: never;
842
+ path?: never;
843
+ cookie?: never;
844
+ };
845
+ requestBody?: {
846
+ content: {
847
+ "application/json": components["schemas"]["RegistrationRequest"];
848
+ };
849
+ };
850
+ responses: {
851
+ /** @description ok */
852
+ 200: {
853
+ headers: {
854
+ [name: string]: unknown;
855
+ };
856
+ content: {
857
+ "application/json": components["schemas"]["RegistrationResponse"];
858
+ };
859
+ };
860
+ };
861
+ };
862
+ listUsers: {
863
+ parameters: {
864
+ query?: never;
865
+ header?: never;
866
+ path?: never;
867
+ cookie?: never;
868
+ };
869
+ requestBody?: never;
870
+ responses: {
871
+ /** @description ok */
872
+ 200: {
873
+ headers: {
874
+ [name: string]: unknown;
875
+ };
876
+ content: {
877
+ "application/json": components["schemas"]["ListUsersResponse"];
878
+ };
879
+ };
880
+ };
881
+ };
882
+ onboardUser: {
883
+ parameters: {
884
+ query?: never;
885
+ header?: never;
886
+ path?: never;
887
+ cookie?: never;
888
+ };
889
+ requestBody: {
890
+ content: {
891
+ "application/json": components["schemas"]["OnboardUserRequest"];
892
+ };
893
+ };
894
+ responses: {
895
+ /** @description ok */
896
+ 200: {
897
+ headers: {
898
+ [name: string]: unknown;
899
+ };
900
+ content: {
901
+ "application/json": components["schemas"]["OnboardUserResponse"];
902
+ };
903
+ };
904
+ };
905
+ };
906
+ offboardUser: {
907
+ parameters: {
908
+ query: {
909
+ username: string;
910
+ };
911
+ header?: never;
912
+ path?: never;
913
+ cookie?: never;
914
+ };
915
+ requestBody?: never;
916
+ responses: {
917
+ /** @description ok */
918
+ 200: {
919
+ headers: {
920
+ [name: string]: unknown;
921
+ };
922
+ content?: never;
923
+ };
924
+ 404: components["responses"]["404"];
925
+ };
926
+ };
927
+ dumpParticipantIdentities: {
928
+ parameters: {
929
+ query?: never;
930
+ header?: never;
931
+ path?: never;
932
+ cookie?: never;
933
+ };
934
+ requestBody?: never;
935
+ responses: {
936
+ /** @description ok */
937
+ 200: {
938
+ headers: {
939
+ [name: string]: unknown;
940
+ };
941
+ content: {
942
+ "application/json": components["schemas"]["NodeIdentitiesDump"];
943
+ };
944
+ };
945
+ };
946
+ };
947
+ getDecentralizedSynchronizerConnectionConfig: {
948
+ parameters: {
949
+ query?: never;
950
+ header?: never;
951
+ path?: never;
952
+ cookie?: never;
953
+ };
954
+ requestBody?: never;
955
+ responses: {
956
+ /** @description ok */
957
+ 200: {
958
+ headers: {
959
+ [name: string]: unknown;
960
+ };
961
+ content: {
962
+ "application/json": components["schemas"]["GetDecentralizedSynchronizerConnectionConfigResponse"];
963
+ };
964
+ };
965
+ };
966
+ };
967
+ getValidatorDomainDataSnapshot: {
968
+ parameters: {
969
+ query: {
970
+ /**
971
+ * @description The timestamp as of which the dump (in particular, the ACS) is valid.
972
+ *
973
+ * Must in the ISO-8601 format in UTC timezone, e.g.,
974
+ * `yyyy-MM-dd'T'HH:mm:ss.SSS'Z'`.
975
+ */
976
+ timestamp: string;
977
+ /** @description The current migration id. */
978
+ migration_id?: number;
979
+ /**
980
+ * @description If true, do not check whether the provided timestamp is clean.
981
+ * Not recommended for production,
982
+ * see the `ExportAcs` endpoint of the `ParticipantRepairService` participant gRPC API.
983
+ */
984
+ force?: boolean;
985
+ };
986
+ header?: never;
987
+ path?: never;
988
+ cookie?: never;
989
+ };
990
+ requestBody?: never;
991
+ responses: {
992
+ /** @description ok */
993
+ 200: {
994
+ headers: {
995
+ [name: string]: unknown;
996
+ };
997
+ content: {
998
+ "application/json": components["schemas"]["GetValidatorDomainDataSnapshotResponse"];
999
+ };
1000
+ };
1001
+ 500: components["responses"]["500"];
1002
+ };
1003
+ };
1004
+ lookupTransferPreapprovalByParty: {
1005
+ parameters: {
1006
+ query?: never;
1007
+ header?: never;
1008
+ path: {
1009
+ "receiver-party": string;
1010
+ };
1011
+ cookie?: never;
1012
+ };
1013
+ requestBody?: never;
1014
+ responses: {
1015
+ /** @description ok */
1016
+ 200: {
1017
+ headers: {
1018
+ [name: string]: unknown;
1019
+ };
1020
+ content: {
1021
+ "application/json": components["schemas"]["LookupTransferPreapprovalByPartyResponse"];
1022
+ };
1023
+ };
1024
+ 404: components["responses"]["404"];
1025
+ };
1026
+ };
1027
+ cancelTransferPreapprovalByParty: {
1028
+ parameters: {
1029
+ query?: never;
1030
+ header?: never;
1031
+ path: {
1032
+ "receiver-party": string;
1033
+ };
1034
+ cookie?: never;
1035
+ };
1036
+ requestBody?: never;
1037
+ responses: {
1038
+ /** @description ok */
1039
+ 200: {
1040
+ headers: {
1041
+ [name: string]: unknown;
1042
+ };
1043
+ content?: never;
1044
+ };
1045
+ 404: components["responses"]["404"];
1046
+ };
1047
+ };
1048
+ listTransferPreapprovals: {
1049
+ parameters: {
1050
+ query?: never;
1051
+ header?: never;
1052
+ path?: never;
1053
+ cookie?: never;
1054
+ };
1055
+ requestBody?: never;
1056
+ responses: {
1057
+ /** @description ok */
1058
+ 200: {
1059
+ headers: {
1060
+ [name: string]: unknown;
1061
+ };
1062
+ content: {
1063
+ "application/json": components["schemas"]["ListTransferPreapprovalsResponse"];
1064
+ };
1065
+ };
1066
+ };
1067
+ };
1068
+ prepareTransferPreapprovalSend: {
1069
+ parameters: {
1070
+ query?: never;
1071
+ header?: never;
1072
+ path?: never;
1073
+ cookie?: never;
1074
+ };
1075
+ requestBody: {
1076
+ content: {
1077
+ "application/json": components["schemas"]["PrepareTransferPreapprovalSendRequest"];
1078
+ };
1079
+ };
1080
+ responses: {
1081
+ /** @description ok */
1082
+ 200: {
1083
+ headers: {
1084
+ [name: string]: unknown;
1085
+ };
1086
+ content: {
1087
+ "application/json": components["schemas"]["PrepareTransferPreapprovalSendResponse"];
1088
+ };
1089
+ };
1090
+ 400: components["responses"]["400"];
1091
+ 404: components["responses"]["404"];
1092
+ 501: components["responses"]["501"];
1093
+ };
1094
+ };
1095
+ submitTransferPreapprovalSend: {
1096
+ parameters: {
1097
+ query?: never;
1098
+ header?: never;
1099
+ path?: never;
1100
+ cookie?: never;
1101
+ };
1102
+ requestBody: {
1103
+ content: {
1104
+ "application/json": components["schemas"]["SubmitTransferPreapprovalSendRequest"];
1105
+ };
1106
+ };
1107
+ responses: {
1108
+ /** @description ok */
1109
+ 200: {
1110
+ headers: {
1111
+ [name: string]: unknown;
1112
+ };
1113
+ content: {
1114
+ "application/json": components["schemas"]["SubmitTransferPreapprovalSendResponse"];
1115
+ };
1116
+ };
1117
+ 400: components["responses"]["400"];
1118
+ 404: components["responses"]["404"];
1119
+ 501: components["responses"]["501"];
1120
+ };
1121
+ };
1122
+ generateExternalPartyTopology: {
1123
+ parameters: {
1124
+ query?: never;
1125
+ header?: never;
1126
+ path?: never;
1127
+ cookie?: never;
1128
+ };
1129
+ requestBody: {
1130
+ content: {
1131
+ "application/json": components["schemas"]["GenerateExternalPartyTopologyRequest"];
1132
+ };
1133
+ };
1134
+ responses: {
1135
+ /** @description ok */
1136
+ 200: {
1137
+ headers: {
1138
+ [name: string]: unknown;
1139
+ };
1140
+ content: {
1141
+ "application/json": components["schemas"]["GenerateExternalPartyTopologyResponse"];
1142
+ };
1143
+ };
1144
+ 501: components["responses"]["501"];
1145
+ };
1146
+ };
1147
+ submitExternalPartyTopology: {
1148
+ parameters: {
1149
+ query?: never;
1150
+ header?: never;
1151
+ path?: never;
1152
+ cookie?: never;
1153
+ };
1154
+ requestBody: {
1155
+ content: {
1156
+ "application/json": components["schemas"]["SubmitExternalPartyTopologyRequest"];
1157
+ };
1158
+ };
1159
+ responses: {
1160
+ /** @description ok */
1161
+ 200: {
1162
+ headers: {
1163
+ [name: string]: unknown;
1164
+ };
1165
+ content: {
1166
+ "application/json": components["schemas"]["SubmitExternalPartyTopologyResponse"];
1167
+ };
1168
+ };
1169
+ 501: components["responses"]["501"];
1170
+ };
1171
+ };
1172
+ listExternalPartySetupProposals: {
1173
+ parameters: {
1174
+ query?: never;
1175
+ header?: never;
1176
+ path?: never;
1177
+ cookie?: never;
1178
+ };
1179
+ requestBody?: never;
1180
+ responses: {
1181
+ /** @description ok */
1182
+ 200: {
1183
+ headers: {
1184
+ [name: string]: unknown;
1185
+ };
1186
+ content: {
1187
+ "application/json": components["schemas"]["ListExternalPartySetupProposalsResponse"];
1188
+ };
1189
+ };
1190
+ 501: components["responses"]["501"];
1191
+ };
1192
+ };
1193
+ createExternalPartySetupProposal: {
1194
+ parameters: {
1195
+ query?: never;
1196
+ header?: never;
1197
+ path?: never;
1198
+ cookie?: never;
1199
+ };
1200
+ requestBody: {
1201
+ content: {
1202
+ "application/json": components["schemas"]["CreateExternalPartySetupProposalRequest"];
1203
+ };
1204
+ };
1205
+ responses: {
1206
+ /** @description ok */
1207
+ 200: {
1208
+ headers: {
1209
+ [name: string]: unknown;
1210
+ };
1211
+ content: {
1212
+ "application/json": components["schemas"]["CreateExternalPartySetupProposalResponse"];
1213
+ };
1214
+ };
1215
+ 404: components["responses"]["404"];
1216
+ 409: components["responses"]["409"];
1217
+ 501: components["responses"]["501"];
1218
+ };
1219
+ };
1220
+ prepareAcceptExternalPartySetupProposal: {
1221
+ parameters: {
1222
+ query?: never;
1223
+ header?: never;
1224
+ path?: never;
1225
+ cookie?: never;
1226
+ };
1227
+ requestBody: {
1228
+ content: {
1229
+ "application/json": components["schemas"]["PrepareAcceptExternalPartySetupProposalRequest"];
1230
+ };
1231
+ };
1232
+ responses: {
1233
+ /** @description ok */
1234
+ 200: {
1235
+ headers: {
1236
+ [name: string]: unknown;
1237
+ };
1238
+ content: {
1239
+ "application/json": components["schemas"]["PrepareAcceptExternalPartySetupProposalResponse"];
1240
+ };
1241
+ };
1242
+ 400: components["responses"]["400"];
1243
+ 404: components["responses"]["404"];
1244
+ 501: components["responses"]["501"];
1245
+ };
1246
+ };
1247
+ submitAcceptExternalPartySetupProposal: {
1248
+ parameters: {
1249
+ query?: never;
1250
+ header?: never;
1251
+ path?: never;
1252
+ cookie?: never;
1253
+ };
1254
+ requestBody: {
1255
+ content: {
1256
+ "application/json": components["schemas"]["SubmitAcceptExternalPartySetupProposalRequest"];
1257
+ };
1258
+ };
1259
+ responses: {
1260
+ /** @description ok */
1261
+ 200: {
1262
+ headers: {
1263
+ [name: string]: unknown;
1264
+ };
1265
+ content: {
1266
+ "application/json": components["schemas"]["SubmitAcceptExternalPartySetupProposalResponse"];
1267
+ };
1268
+ };
1269
+ 404: components["responses"]["404"];
1270
+ 501: components["responses"]["501"];
1271
+ };
1272
+ };
1273
+ getExternalPartyBalance: {
1274
+ parameters: {
1275
+ query: {
1276
+ party_id: string;
1277
+ };
1278
+ header?: never;
1279
+ path?: never;
1280
+ cookie?: never;
1281
+ };
1282
+ requestBody?: never;
1283
+ responses: {
1284
+ /** @description ok */
1285
+ 200: {
1286
+ headers: {
1287
+ [name: string]: unknown;
1288
+ };
1289
+ content: {
1290
+ "application/json": components["schemas"]["ExternalPartyBalanceResponse"];
1291
+ };
1292
+ };
1293
+ 404: components["responses"]["404"];
1294
+ 501: components["responses"]["501"];
1295
+ };
1296
+ };
1297
+ }