@canton-network/core-ledger-proto 0.1.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.
- package/README.md +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts +58 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.js +34 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts +232 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.js +560 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts +144 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.js +85 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts +291 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.js +663 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts +76 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.js +96 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts +106 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.js +62 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts +199 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.js +427 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts +56 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.js +35 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts +81 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.js +135 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts +196 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.js +113 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts +413 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.js +867 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts +210 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.js +126 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts +758 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.js +1580 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts +66 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.js +38 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts +90 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.js +178 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts +99 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.client.js +61 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts +210 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.js +436 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts +80 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.js +47 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts +91 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.js +200 -0
- package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts +491 -0
- package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/commands.js +828 -0
- package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts +149 -0
- package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/completion.js +196 -0
- package/dist/_proto/com/daml/ledger/api/v2/event.d.ts +495 -0
- package/dist/_proto/com/daml/ledger/api/v2/event.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/event.js +723 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts +52 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.js +31 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts +150 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.js +291 -0
- package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts +96 -0
- package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/experimental_features.js +225 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts +43 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.js +85 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts +100 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.js +59 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts +877 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.js +1768 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts +259 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.js +667 -0
- package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts +69 -0
- package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.js +133 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts +41 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_reference.js +84 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts +68 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.client.js +43 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts +181 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.js +395 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts +308 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment.js +521 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts +193 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.js +350 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts +91 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.client.js +56 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts +448 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.js +874 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts +54 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.js +34 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts +78 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.js +168 -0
- package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts +211 -0
- package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.js +447 -0
- package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts +33 -0
- package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/trace_context.js +69 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts +252 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction.js +410 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts +453 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.js +815 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts +199 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.client.js +121 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts +424 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.js +853 -0
- package/dist/_proto/com/daml/ledger/api/v2/value.d.ts +500 -0
- package/dist/_proto/com/daml/ledger/api/v2/value.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/value.js +937 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts +40 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.client.js +25 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts +190 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.js +400 -0
- package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts +1028 -0
- package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.js +2110 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts +30 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.js +62 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts +168 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.js +395 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts +1105 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.js +2294 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts +278 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.js +654 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts +166 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.js +379 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts +199 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.js +136 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts +1195 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js +3342 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts +119 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.js +76 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts +607 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.js +1292 -0
- package/dist/_proto/google/protobuf/any.d.ts +177 -0
- package/dist/_proto/google/protobuf/any.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/any.js +175 -0
- package/dist/_proto/google/protobuf/descriptor.d.ts +1638 -0
- package/dist/_proto/google/protobuf/descriptor.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/descriptor.js +2999 -0
- package/dist/_proto/google/protobuf/duration.d.ts +114 -0
- package/dist/_proto/google/protobuf/duration.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/duration.js +113 -0
- package/dist/_proto/google/protobuf/empty.d.ts +33 -0
- package/dist/_proto/google/protobuf/empty.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/empty.js +41 -0
- package/dist/_proto/google/protobuf/field_mask.d.ts +240 -0
- package/dist/_proto/google/protobuf/field_mask.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/field_mask.js +95 -0
- package/dist/_proto/google/protobuf/struct.d.ts +187 -0
- package/dist/_proto/google/protobuf/struct.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/struct.js +417 -0
- package/dist/_proto/google/protobuf/timestamp.d.ts +159 -0
- package/dist/_proto/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/timestamp.js +157 -0
- package/dist/_proto/google/rpc/code.d.ts +219 -0
- package/dist/_proto/google/rpc/code.d.ts.map +1 -0
- package/dist/_proto/google/rpc/code.js +237 -0
- package/dist/_proto/google/rpc/context/attribute_context.d.ts +594 -0
- package/dist/_proto/google/rpc/context/attribute_context.d.ts.map +1 -0
- package/dist/_proto/google/rpc/context/attribute_context.js +1007 -0
- package/dist/_proto/google/rpc/context/audit_context.d.ts +62 -0
- package/dist/_proto/google/rpc/context/audit_context.d.ts.map +1 -0
- package/dist/_proto/google/rpc/context/audit_context.js +111 -0
- package/dist/_proto/google/rpc/error_details.d.ts +549 -0
- package/dist/_proto/google/rpc/error_details.d.ts.map +1 -0
- package/dist/_proto/google/rpc/error_details.js +918 -0
- package/dist/_proto/google/rpc/status.d.ts +55 -0
- package/dist/_proto/google/rpc/status.d.ts.map +1 -0
- package/dist/_proto/google/rpc/status.js +79 -0
- package/dist/_proto/scalapb/scalapb.d.ts +779 -0
- package/dist/_proto/scalapb/scalapb.d.ts.map +1 -0
- package/dist/_proto/scalapb/scalapb.js +1658 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/package.json +29 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
|
|
2
|
+
import type { IBinaryWriter } from '@protobuf-ts/runtime';
|
|
3
|
+
import type { BinaryReadOptions } from '@protobuf-ts/runtime';
|
|
4
|
+
import type { IBinaryReader } from '@protobuf-ts/runtime';
|
|
5
|
+
import type { PartialMessage } from '@protobuf-ts/runtime';
|
|
6
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
7
|
+
/**
|
|
8
|
+
* @generated from protobuf message com.daml.ledger.api.v2.ReassignmentCommands
|
|
9
|
+
*/
|
|
10
|
+
export interface ReassignmentCommands {
|
|
11
|
+
/**
|
|
12
|
+
* Identifier of the on-ledger workflow that this command is a part of.
|
|
13
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
14
|
+
* Optional
|
|
15
|
+
*
|
|
16
|
+
* @generated from protobuf field: string workflow_id = 1
|
|
17
|
+
*/
|
|
18
|
+
workflowId: string;
|
|
19
|
+
/**
|
|
20
|
+
* Uniquely identifies the participant user that issued the command.
|
|
21
|
+
* Must be a valid UserIdString (as described in ``value.proto``).
|
|
22
|
+
* Required unless authentication is used with a user token.
|
|
23
|
+
* In that case, the token's user-id will be used for the request's user_id.
|
|
24
|
+
*
|
|
25
|
+
* @generated from protobuf field: string user_id = 2
|
|
26
|
+
*/
|
|
27
|
+
userId: string;
|
|
28
|
+
/**
|
|
29
|
+
* Uniquely identifies the command.
|
|
30
|
+
* The triple (user_id, submitter, command_id) constitutes the change ID for the intended ledger change.
|
|
31
|
+
* The change ID can be used for matching the intended ledger changes with all their completions.
|
|
32
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
33
|
+
* Required
|
|
34
|
+
*
|
|
35
|
+
* @generated from protobuf field: string command_id = 3
|
|
36
|
+
*/
|
|
37
|
+
commandId: string;
|
|
38
|
+
/**
|
|
39
|
+
* Party on whose behalf the command should be executed.
|
|
40
|
+
* If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
|
|
41
|
+
* to act on behalf of the given party.
|
|
42
|
+
* Must be a valid PartyIdString (as described in ``value.proto``).
|
|
43
|
+
* Required
|
|
44
|
+
*
|
|
45
|
+
* @generated from protobuf field: string submitter = 4
|
|
46
|
+
*/
|
|
47
|
+
submitter: string;
|
|
48
|
+
/**
|
|
49
|
+
* A unique identifier to distinguish completions for different submissions with the same change ID.
|
|
50
|
+
* Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
|
|
51
|
+
* with the same change ID.
|
|
52
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
53
|
+
*
|
|
54
|
+
* If omitted, the participant or the committer may set a value of their choice.
|
|
55
|
+
* Optional
|
|
56
|
+
*
|
|
57
|
+
* @generated from protobuf field: string submission_id = 5
|
|
58
|
+
*/
|
|
59
|
+
submissionId: string;
|
|
60
|
+
/**
|
|
61
|
+
* Individual elements of this reassignment. Must be non-empty.
|
|
62
|
+
*
|
|
63
|
+
* @generated from protobuf field: repeated com.daml.ledger.api.v2.ReassignmentCommand commands = 6
|
|
64
|
+
*/
|
|
65
|
+
commands: ReassignmentCommand[];
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @generated from protobuf message com.daml.ledger.api.v2.ReassignmentCommand
|
|
69
|
+
*/
|
|
70
|
+
export interface ReassignmentCommand {
|
|
71
|
+
/**
|
|
72
|
+
* @generated from protobuf oneof: command
|
|
73
|
+
*/
|
|
74
|
+
command: {
|
|
75
|
+
oneofKind: 'unassignCommand';
|
|
76
|
+
/**
|
|
77
|
+
* @generated from protobuf field: com.daml.ledger.api.v2.UnassignCommand unassign_command = 1
|
|
78
|
+
*/
|
|
79
|
+
unassignCommand: UnassignCommand;
|
|
80
|
+
} | {
|
|
81
|
+
oneofKind: 'assignCommand';
|
|
82
|
+
/**
|
|
83
|
+
* @generated from protobuf field: com.daml.ledger.api.v2.AssignCommand assign_command = 2
|
|
84
|
+
*/
|
|
85
|
+
assignCommand: AssignCommand;
|
|
86
|
+
} | {
|
|
87
|
+
oneofKind: undefined;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Unassign a contract
|
|
92
|
+
*
|
|
93
|
+
* @generated from protobuf message com.daml.ledger.api.v2.UnassignCommand
|
|
94
|
+
*/
|
|
95
|
+
export interface UnassignCommand {
|
|
96
|
+
/**
|
|
97
|
+
* The ID of the contract the client wants to unassign.
|
|
98
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
99
|
+
* Required
|
|
100
|
+
*
|
|
101
|
+
* @generated from protobuf field: string contract_id = 1
|
|
102
|
+
*/
|
|
103
|
+
contractId: string;
|
|
104
|
+
/**
|
|
105
|
+
* The ID of the source synchronizer
|
|
106
|
+
* Must be a valid synchronizer id
|
|
107
|
+
* Required
|
|
108
|
+
*
|
|
109
|
+
* @generated from protobuf field: string source = 2
|
|
110
|
+
*/
|
|
111
|
+
source: string;
|
|
112
|
+
/**
|
|
113
|
+
* The ID of the target synchronizer
|
|
114
|
+
* Must be a valid synchronizer id
|
|
115
|
+
* Required
|
|
116
|
+
*
|
|
117
|
+
* @generated from protobuf field: string target = 3
|
|
118
|
+
*/
|
|
119
|
+
target: string;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Assign a contract
|
|
123
|
+
*
|
|
124
|
+
* @generated from protobuf message com.daml.ledger.api.v2.AssignCommand
|
|
125
|
+
*/
|
|
126
|
+
export interface AssignCommand {
|
|
127
|
+
/**
|
|
128
|
+
* The ID from the unassigned event to be completed by this assignment.
|
|
129
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
130
|
+
* Required
|
|
131
|
+
*
|
|
132
|
+
* @generated from protobuf field: string unassign_id = 1
|
|
133
|
+
*/
|
|
134
|
+
unassignId: string;
|
|
135
|
+
/**
|
|
136
|
+
* The ID of the source synchronizer
|
|
137
|
+
* Must be a valid synchronizer id
|
|
138
|
+
* Required
|
|
139
|
+
*
|
|
140
|
+
* @generated from protobuf field: string source = 2
|
|
141
|
+
*/
|
|
142
|
+
source: string;
|
|
143
|
+
/**
|
|
144
|
+
* The ID of the target synchronizer
|
|
145
|
+
* Must be a valid synchronizer id
|
|
146
|
+
* Required
|
|
147
|
+
*
|
|
148
|
+
* @generated from protobuf field: string target = 3
|
|
149
|
+
*/
|
|
150
|
+
target: string;
|
|
151
|
+
}
|
|
152
|
+
declare class ReassignmentCommands$Type extends MessageType<ReassignmentCommands> {
|
|
153
|
+
constructor();
|
|
154
|
+
create(value?: PartialMessage<ReassignmentCommands>): ReassignmentCommands;
|
|
155
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReassignmentCommands): ReassignmentCommands;
|
|
156
|
+
internalBinaryWrite(message: ReassignmentCommands, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.ReassignmentCommands
|
|
160
|
+
*/
|
|
161
|
+
export declare const ReassignmentCommands: ReassignmentCommands$Type;
|
|
162
|
+
declare class ReassignmentCommand$Type extends MessageType<ReassignmentCommand> {
|
|
163
|
+
constructor();
|
|
164
|
+
create(value?: PartialMessage<ReassignmentCommand>): ReassignmentCommand;
|
|
165
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReassignmentCommand): ReassignmentCommand;
|
|
166
|
+
internalBinaryWrite(message: ReassignmentCommand, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.ReassignmentCommand
|
|
170
|
+
*/
|
|
171
|
+
export declare const ReassignmentCommand: ReassignmentCommand$Type;
|
|
172
|
+
declare class UnassignCommand$Type extends MessageType<UnassignCommand> {
|
|
173
|
+
constructor();
|
|
174
|
+
create(value?: PartialMessage<UnassignCommand>): UnassignCommand;
|
|
175
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UnassignCommand): UnassignCommand;
|
|
176
|
+
internalBinaryWrite(message: UnassignCommand, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.UnassignCommand
|
|
180
|
+
*/
|
|
181
|
+
export declare const UnassignCommand: UnassignCommand$Type;
|
|
182
|
+
declare class AssignCommand$Type extends MessageType<AssignCommand> {
|
|
183
|
+
constructor();
|
|
184
|
+
create(value?: PartialMessage<AssignCommand>): AssignCommand;
|
|
185
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AssignCommand): AssignCommand;
|
|
186
|
+
internalBinaryWrite(message: AssignCommand, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.AssignCommand
|
|
190
|
+
*/
|
|
191
|
+
export declare const AssignCommand: AssignCommand$Type;
|
|
192
|
+
export {};
|
|
193
|
+
//# sourceMappingURL=reassignment_commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reassignment_commands.d.ts","sourceRoot":"","sources":["../../../../../../../src/_proto/com/daml/ledger/api/v2/reassignment_commands.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { WireType } from '@protobuf-ts/runtime';
|
|
2
|
+
import { UnknownFieldHandler } from '@protobuf-ts/runtime';
|
|
3
|
+
import { reflectionMergePartial } from '@protobuf-ts/runtime';
|
|
4
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
5
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
6
|
+
class ReassignmentCommands$Type extends MessageType {
|
|
7
|
+
constructor() {
|
|
8
|
+
super('com.daml.ledger.api.v2.ReassignmentCommands', [
|
|
9
|
+
{
|
|
10
|
+
no: 1,
|
|
11
|
+
name: 'workflow_id',
|
|
12
|
+
kind: 'scalar',
|
|
13
|
+
T: 9 /*ScalarType.STRING*/,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
no: 2,
|
|
17
|
+
name: 'user_id',
|
|
18
|
+
kind: 'scalar',
|
|
19
|
+
T: 9 /*ScalarType.STRING*/,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
no: 3,
|
|
23
|
+
name: 'command_id',
|
|
24
|
+
kind: 'scalar',
|
|
25
|
+
T: 9 /*ScalarType.STRING*/,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
no: 4,
|
|
29
|
+
name: 'submitter',
|
|
30
|
+
kind: 'scalar',
|
|
31
|
+
T: 9 /*ScalarType.STRING*/,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
no: 5,
|
|
35
|
+
name: 'submission_id',
|
|
36
|
+
kind: 'scalar',
|
|
37
|
+
T: 9 /*ScalarType.STRING*/,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
no: 6,
|
|
41
|
+
name: 'commands',
|
|
42
|
+
kind: 'message',
|
|
43
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
44
|
+
T: () => ReassignmentCommand,
|
|
45
|
+
},
|
|
46
|
+
]);
|
|
47
|
+
}
|
|
48
|
+
create(value) {
|
|
49
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
50
|
+
message.workflowId = '';
|
|
51
|
+
message.userId = '';
|
|
52
|
+
message.commandId = '';
|
|
53
|
+
message.submitter = '';
|
|
54
|
+
message.submissionId = '';
|
|
55
|
+
message.commands = [];
|
|
56
|
+
if (value !== undefined)
|
|
57
|
+
reflectionMergePartial(this, message, value);
|
|
58
|
+
return message;
|
|
59
|
+
}
|
|
60
|
+
internalBinaryRead(reader, length, options, target) {
|
|
61
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
62
|
+
while (reader.pos < end) {
|
|
63
|
+
let [fieldNo, wireType] = reader.tag();
|
|
64
|
+
switch (fieldNo) {
|
|
65
|
+
case /* string workflow_id */ 1:
|
|
66
|
+
message.workflowId = reader.string();
|
|
67
|
+
break;
|
|
68
|
+
case /* string user_id */ 2:
|
|
69
|
+
message.userId = reader.string();
|
|
70
|
+
break;
|
|
71
|
+
case /* string command_id */ 3:
|
|
72
|
+
message.commandId = reader.string();
|
|
73
|
+
break;
|
|
74
|
+
case /* string submitter */ 4:
|
|
75
|
+
message.submitter = reader.string();
|
|
76
|
+
break;
|
|
77
|
+
case /* string submission_id */ 5:
|
|
78
|
+
message.submissionId = reader.string();
|
|
79
|
+
break;
|
|
80
|
+
case /* repeated com.daml.ledger.api.v2.ReassignmentCommand commands */ 6:
|
|
81
|
+
message.commands.push(ReassignmentCommand.internalBinaryRead(reader, reader.uint32(), options));
|
|
82
|
+
break;
|
|
83
|
+
default:
|
|
84
|
+
let u = options.readUnknownField;
|
|
85
|
+
if (u === 'throw')
|
|
86
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
87
|
+
let d = reader.skip(wireType);
|
|
88
|
+
if (u !== false)
|
|
89
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return message;
|
|
93
|
+
}
|
|
94
|
+
internalBinaryWrite(message, writer, options) {
|
|
95
|
+
/* string workflow_id = 1; */
|
|
96
|
+
if (message.workflowId !== '')
|
|
97
|
+
writer.tag(1, WireType.LengthDelimited).string(message.workflowId);
|
|
98
|
+
/* string user_id = 2; */
|
|
99
|
+
if (message.userId !== '')
|
|
100
|
+
writer.tag(2, WireType.LengthDelimited).string(message.userId);
|
|
101
|
+
/* string command_id = 3; */
|
|
102
|
+
if (message.commandId !== '')
|
|
103
|
+
writer.tag(3, WireType.LengthDelimited).string(message.commandId);
|
|
104
|
+
/* string submitter = 4; */
|
|
105
|
+
if (message.submitter !== '')
|
|
106
|
+
writer.tag(4, WireType.LengthDelimited).string(message.submitter);
|
|
107
|
+
/* string submission_id = 5; */
|
|
108
|
+
if (message.submissionId !== '')
|
|
109
|
+
writer.tag(5, WireType.LengthDelimited).string(message.submissionId);
|
|
110
|
+
/* repeated com.daml.ledger.api.v2.ReassignmentCommand commands = 6; */
|
|
111
|
+
for (let i = 0; i < message.commands.length; i++)
|
|
112
|
+
ReassignmentCommand.internalBinaryWrite(message.commands[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
113
|
+
let u = options.writeUnknownFields;
|
|
114
|
+
if (u !== false)
|
|
115
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
116
|
+
return writer;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.ReassignmentCommands
|
|
121
|
+
*/
|
|
122
|
+
export const ReassignmentCommands = new ReassignmentCommands$Type();
|
|
123
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
124
|
+
class ReassignmentCommand$Type extends MessageType {
|
|
125
|
+
constructor() {
|
|
126
|
+
super('com.daml.ledger.api.v2.ReassignmentCommand', [
|
|
127
|
+
{
|
|
128
|
+
no: 1,
|
|
129
|
+
name: 'unassign_command',
|
|
130
|
+
kind: 'message',
|
|
131
|
+
oneof: 'command',
|
|
132
|
+
T: () => UnassignCommand,
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
no: 2,
|
|
136
|
+
name: 'assign_command',
|
|
137
|
+
kind: 'message',
|
|
138
|
+
oneof: 'command',
|
|
139
|
+
T: () => AssignCommand,
|
|
140
|
+
},
|
|
141
|
+
]);
|
|
142
|
+
}
|
|
143
|
+
create(value) {
|
|
144
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
145
|
+
message.command = { oneofKind: undefined };
|
|
146
|
+
if (value !== undefined)
|
|
147
|
+
reflectionMergePartial(this, message, value);
|
|
148
|
+
return message;
|
|
149
|
+
}
|
|
150
|
+
internalBinaryRead(reader, length, options, target) {
|
|
151
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
152
|
+
while (reader.pos < end) {
|
|
153
|
+
let [fieldNo, wireType] = reader.tag();
|
|
154
|
+
switch (fieldNo) {
|
|
155
|
+
case /* com.daml.ledger.api.v2.UnassignCommand unassign_command */ 1:
|
|
156
|
+
message.command = {
|
|
157
|
+
oneofKind: 'unassignCommand',
|
|
158
|
+
unassignCommand: UnassignCommand.internalBinaryRead(reader, reader.uint32(), options, message.command.unassignCommand),
|
|
159
|
+
};
|
|
160
|
+
break;
|
|
161
|
+
case /* com.daml.ledger.api.v2.AssignCommand assign_command */ 2:
|
|
162
|
+
message.command = {
|
|
163
|
+
oneofKind: 'assignCommand',
|
|
164
|
+
assignCommand: AssignCommand.internalBinaryRead(reader, reader.uint32(), options, message.command.assignCommand),
|
|
165
|
+
};
|
|
166
|
+
break;
|
|
167
|
+
default:
|
|
168
|
+
let u = options.readUnknownField;
|
|
169
|
+
if (u === 'throw')
|
|
170
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
171
|
+
let d = reader.skip(wireType);
|
|
172
|
+
if (u !== false)
|
|
173
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return message;
|
|
177
|
+
}
|
|
178
|
+
internalBinaryWrite(message, writer, options) {
|
|
179
|
+
/* com.daml.ledger.api.v2.UnassignCommand unassign_command = 1; */
|
|
180
|
+
if (message.command.oneofKind === 'unassignCommand')
|
|
181
|
+
UnassignCommand.internalBinaryWrite(message.command.unassignCommand, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
182
|
+
/* com.daml.ledger.api.v2.AssignCommand assign_command = 2; */
|
|
183
|
+
if (message.command.oneofKind === 'assignCommand')
|
|
184
|
+
AssignCommand.internalBinaryWrite(message.command.assignCommand, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
185
|
+
let u = options.writeUnknownFields;
|
|
186
|
+
if (u !== false)
|
|
187
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
188
|
+
return writer;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.ReassignmentCommand
|
|
193
|
+
*/
|
|
194
|
+
export const ReassignmentCommand = new ReassignmentCommand$Type();
|
|
195
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
196
|
+
class UnassignCommand$Type extends MessageType {
|
|
197
|
+
constructor() {
|
|
198
|
+
super('com.daml.ledger.api.v2.UnassignCommand', [
|
|
199
|
+
{
|
|
200
|
+
no: 1,
|
|
201
|
+
name: 'contract_id',
|
|
202
|
+
kind: 'scalar',
|
|
203
|
+
T: 9 /*ScalarType.STRING*/,
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
no: 2,
|
|
207
|
+
name: 'source',
|
|
208
|
+
kind: 'scalar',
|
|
209
|
+
T: 9 /*ScalarType.STRING*/,
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
no: 3,
|
|
213
|
+
name: 'target',
|
|
214
|
+
kind: 'scalar',
|
|
215
|
+
T: 9 /*ScalarType.STRING*/,
|
|
216
|
+
},
|
|
217
|
+
]);
|
|
218
|
+
}
|
|
219
|
+
create(value) {
|
|
220
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
221
|
+
message.contractId = '';
|
|
222
|
+
message.source = '';
|
|
223
|
+
message.target = '';
|
|
224
|
+
if (value !== undefined)
|
|
225
|
+
reflectionMergePartial(this, message, value);
|
|
226
|
+
return message;
|
|
227
|
+
}
|
|
228
|
+
internalBinaryRead(reader, length, options, target) {
|
|
229
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
230
|
+
while (reader.pos < end) {
|
|
231
|
+
let [fieldNo, wireType] = reader.tag();
|
|
232
|
+
switch (fieldNo) {
|
|
233
|
+
case /* string contract_id */ 1:
|
|
234
|
+
message.contractId = reader.string();
|
|
235
|
+
break;
|
|
236
|
+
case /* string source */ 2:
|
|
237
|
+
message.source = reader.string();
|
|
238
|
+
break;
|
|
239
|
+
case /* string target */ 3:
|
|
240
|
+
message.target = reader.string();
|
|
241
|
+
break;
|
|
242
|
+
default:
|
|
243
|
+
let u = options.readUnknownField;
|
|
244
|
+
if (u === 'throw')
|
|
245
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
246
|
+
let d = reader.skip(wireType);
|
|
247
|
+
if (u !== false)
|
|
248
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return message;
|
|
252
|
+
}
|
|
253
|
+
internalBinaryWrite(message, writer, options) {
|
|
254
|
+
/* string contract_id = 1; */
|
|
255
|
+
if (message.contractId !== '')
|
|
256
|
+
writer.tag(1, WireType.LengthDelimited).string(message.contractId);
|
|
257
|
+
/* string source = 2; */
|
|
258
|
+
if (message.source !== '')
|
|
259
|
+
writer.tag(2, WireType.LengthDelimited).string(message.source);
|
|
260
|
+
/* string target = 3; */
|
|
261
|
+
if (message.target !== '')
|
|
262
|
+
writer.tag(3, WireType.LengthDelimited).string(message.target);
|
|
263
|
+
let u = options.writeUnknownFields;
|
|
264
|
+
if (u !== false)
|
|
265
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
266
|
+
return writer;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.UnassignCommand
|
|
271
|
+
*/
|
|
272
|
+
export const UnassignCommand = new UnassignCommand$Type();
|
|
273
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
274
|
+
class AssignCommand$Type extends MessageType {
|
|
275
|
+
constructor() {
|
|
276
|
+
super('com.daml.ledger.api.v2.AssignCommand', [
|
|
277
|
+
{
|
|
278
|
+
no: 1,
|
|
279
|
+
name: 'unassign_id',
|
|
280
|
+
kind: 'scalar',
|
|
281
|
+
T: 9 /*ScalarType.STRING*/,
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
no: 2,
|
|
285
|
+
name: 'source',
|
|
286
|
+
kind: 'scalar',
|
|
287
|
+
T: 9 /*ScalarType.STRING*/,
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
no: 3,
|
|
291
|
+
name: 'target',
|
|
292
|
+
kind: 'scalar',
|
|
293
|
+
T: 9 /*ScalarType.STRING*/,
|
|
294
|
+
},
|
|
295
|
+
]);
|
|
296
|
+
}
|
|
297
|
+
create(value) {
|
|
298
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
299
|
+
message.unassignId = '';
|
|
300
|
+
message.source = '';
|
|
301
|
+
message.target = '';
|
|
302
|
+
if (value !== undefined)
|
|
303
|
+
reflectionMergePartial(this, message, value);
|
|
304
|
+
return message;
|
|
305
|
+
}
|
|
306
|
+
internalBinaryRead(reader, length, options, target) {
|
|
307
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
308
|
+
while (reader.pos < end) {
|
|
309
|
+
let [fieldNo, wireType] = reader.tag();
|
|
310
|
+
switch (fieldNo) {
|
|
311
|
+
case /* string unassign_id */ 1:
|
|
312
|
+
message.unassignId = reader.string();
|
|
313
|
+
break;
|
|
314
|
+
case /* string source */ 2:
|
|
315
|
+
message.source = reader.string();
|
|
316
|
+
break;
|
|
317
|
+
case /* string target */ 3:
|
|
318
|
+
message.target = reader.string();
|
|
319
|
+
break;
|
|
320
|
+
default:
|
|
321
|
+
let u = options.readUnknownField;
|
|
322
|
+
if (u === 'throw')
|
|
323
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
324
|
+
let d = reader.skip(wireType);
|
|
325
|
+
if (u !== false)
|
|
326
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
return message;
|
|
330
|
+
}
|
|
331
|
+
internalBinaryWrite(message, writer, options) {
|
|
332
|
+
/* string unassign_id = 1; */
|
|
333
|
+
if (message.unassignId !== '')
|
|
334
|
+
writer.tag(1, WireType.LengthDelimited).string(message.unassignId);
|
|
335
|
+
/* string source = 2; */
|
|
336
|
+
if (message.source !== '')
|
|
337
|
+
writer.tag(2, WireType.LengthDelimited).string(message.source);
|
|
338
|
+
/* string target = 3; */
|
|
339
|
+
if (message.target !== '')
|
|
340
|
+
writer.tag(3, WireType.LengthDelimited).string(message.target);
|
|
341
|
+
let u = options.writeUnknownFields;
|
|
342
|
+
if (u !== false)
|
|
343
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
344
|
+
return writer;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.AssignCommand
|
|
349
|
+
*/
|
|
350
|
+
export const AssignCommand = new AssignCommand$Type();
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { RpcTransport } from '@protobuf-ts/runtime-rpc';
|
|
2
|
+
import type { ServiceInfo } from '@protobuf-ts/runtime-rpc';
|
|
3
|
+
import type { GetLatestPrunedOffsetsResponse } from './state_service.js';
|
|
4
|
+
import type { GetLatestPrunedOffsetsRequest } from './state_service.js';
|
|
5
|
+
import type { GetLedgerEndResponse } from './state_service.js';
|
|
6
|
+
import type { GetLedgerEndRequest } from './state_service.js';
|
|
7
|
+
import type { GetConnectedSynchronizersResponse } from './state_service.js';
|
|
8
|
+
import type { GetConnectedSynchronizersRequest } from './state_service.js';
|
|
9
|
+
import type { UnaryCall } from '@protobuf-ts/runtime-rpc';
|
|
10
|
+
import type { GetActiveContractsResponse } from './state_service.js';
|
|
11
|
+
import type { GetActiveContractsRequest } from './state_service.js';
|
|
12
|
+
import type { ServerStreamingCall } from '@protobuf-ts/runtime-rpc';
|
|
13
|
+
import type { RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
14
|
+
/**
|
|
15
|
+
* Allows clients to get state from the ledger.
|
|
16
|
+
*
|
|
17
|
+
* @generated from protobuf service com.daml.ledger.api.v2.StateService
|
|
18
|
+
*/
|
|
19
|
+
export interface IStateServiceClient {
|
|
20
|
+
/**
|
|
21
|
+
* Returns a stream of the snapshot of the active contracts and incomplete (un)assignments at a ledger offset.
|
|
22
|
+
* If there are no active contracts, the stream returns a single response message with the offset at which the snapshot has been taken.
|
|
23
|
+
* Clients SHOULD use the offset in the last GetActiveContractsResponse message to continue streaming transactions with the update service.
|
|
24
|
+
* Clients SHOULD NOT assume that the set of active contracts they receive reflects the state at the ledger end.
|
|
25
|
+
*
|
|
26
|
+
* @generated from protobuf rpc: GetActiveContracts
|
|
27
|
+
*/
|
|
28
|
+
getActiveContracts(input: GetActiveContractsRequest, options?: RpcOptions): ServerStreamingCall<GetActiveContractsRequest, GetActiveContractsResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Get the list of connected synchronizers at the time of the query.
|
|
31
|
+
*
|
|
32
|
+
* @generated from protobuf rpc: GetConnectedSynchronizers
|
|
33
|
+
*/
|
|
34
|
+
getConnectedSynchronizers(input: GetConnectedSynchronizersRequest, options?: RpcOptions): UnaryCall<GetConnectedSynchronizersRequest, GetConnectedSynchronizersResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Get the current ledger end.
|
|
37
|
+
* Subscriptions started with the returned offset will serve events after this RPC was called.
|
|
38
|
+
*
|
|
39
|
+
* @generated from protobuf rpc: GetLedgerEnd
|
|
40
|
+
*/
|
|
41
|
+
getLedgerEnd(input: GetLedgerEndRequest, options?: RpcOptions): UnaryCall<GetLedgerEndRequest, GetLedgerEndResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Get the latest successfully pruned ledger offsets
|
|
44
|
+
*
|
|
45
|
+
* @generated from protobuf rpc: GetLatestPrunedOffsets
|
|
46
|
+
*/
|
|
47
|
+
getLatestPrunedOffsets(input: GetLatestPrunedOffsetsRequest, options?: RpcOptions): UnaryCall<GetLatestPrunedOffsetsRequest, GetLatestPrunedOffsetsResponse>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Allows clients to get state from the ledger.
|
|
51
|
+
*
|
|
52
|
+
* @generated from protobuf service com.daml.ledger.api.v2.StateService
|
|
53
|
+
*/
|
|
54
|
+
export declare class StateServiceClient implements IStateServiceClient, ServiceInfo {
|
|
55
|
+
private readonly _transport;
|
|
56
|
+
typeName: string;
|
|
57
|
+
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
58
|
+
options: {
|
|
59
|
+
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
|
|
60
|
+
};
|
|
61
|
+
constructor(_transport: RpcTransport);
|
|
62
|
+
/**
|
|
63
|
+
* Returns a stream of the snapshot of the active contracts and incomplete (un)assignments at a ledger offset.
|
|
64
|
+
* If there are no active contracts, the stream returns a single response message with the offset at which the snapshot has been taken.
|
|
65
|
+
* Clients SHOULD use the offset in the last GetActiveContractsResponse message to continue streaming transactions with the update service.
|
|
66
|
+
* Clients SHOULD NOT assume that the set of active contracts they receive reflects the state at the ledger end.
|
|
67
|
+
*
|
|
68
|
+
* @generated from protobuf rpc: GetActiveContracts
|
|
69
|
+
*/
|
|
70
|
+
getActiveContracts(input: GetActiveContractsRequest, options?: RpcOptions): ServerStreamingCall<GetActiveContractsRequest, GetActiveContractsResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* Get the list of connected synchronizers at the time of the query.
|
|
73
|
+
*
|
|
74
|
+
* @generated from protobuf rpc: GetConnectedSynchronizers
|
|
75
|
+
*/
|
|
76
|
+
getConnectedSynchronizers(input: GetConnectedSynchronizersRequest, options?: RpcOptions): UnaryCall<GetConnectedSynchronizersRequest, GetConnectedSynchronizersResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* Get the current ledger end.
|
|
79
|
+
* Subscriptions started with the returned offset will serve events after this RPC was called.
|
|
80
|
+
*
|
|
81
|
+
* @generated from protobuf rpc: GetLedgerEnd
|
|
82
|
+
*/
|
|
83
|
+
getLedgerEnd(input: GetLedgerEndRequest, options?: RpcOptions): UnaryCall<GetLedgerEndRequest, GetLedgerEndResponse>;
|
|
84
|
+
/**
|
|
85
|
+
* Get the latest successfully pruned ledger offsets
|
|
86
|
+
*
|
|
87
|
+
* @generated from protobuf rpc: GetLatestPrunedOffsets
|
|
88
|
+
*/
|
|
89
|
+
getLatestPrunedOffsets(input: GetLatestPrunedOffsetsRequest, options?: RpcOptions): UnaryCall<GetLatestPrunedOffsetsRequest, GetLatestPrunedOffsetsResponse>;
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=state_service.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state_service.client.d.ts","sourceRoot":"","sources":["../../../../../../../src/_proto/com/daml/ledger/api/v2/state_service.client.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAE3D,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAA;AACxE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAA;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAA;AAC3E,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAA;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAEzD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAA;AACpE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC1D;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;;OAOG;IACH,kBAAkB,CACd,KAAK,EAAE,yBAAyB,EAChC,OAAO,CAAC,EAAE,UAAU,GACrB,mBAAmB,CAClB,yBAAyB,EACzB,0BAA0B,CAC7B,CAAA;IACD;;;;OAIG;IACH,yBAAyB,CACrB,KAAK,EAAE,gCAAgC,EACvC,OAAO,CAAC,EAAE,UAAU,GACrB,SAAS,CACR,gCAAgC,EAChC,iCAAiC,CACpC,CAAA;IACD;;;;;OAKG;IACH,YAAY,CACR,KAAK,EAAE,mBAAmB,EAC1B,OAAO,CAAC,EAAE,UAAU,GACrB,SAAS,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,CAAA;IACvD;;;;OAIG;IACH,sBAAsB,CAClB,KAAK,EAAE,6BAA6B,EACpC,OAAO,CAAC,EAAE,UAAU,GACrB,SAAS,CAAC,6BAA6B,EAAE,8BAA8B,CAAC,CAAA;CAC9E;AACD;;;;GAIG;AACH,qBAAa,kBAAmB,YAAW,mBAAmB,EAAE,WAAW;IAI3D,OAAO,CAAC,QAAQ,CAAC,UAAU;IAHvC,QAAQ,SAAwB;IAChC,OAAO,4DAAuB;IAC9B,OAAO;;MAAuB;gBACD,UAAU,EAAE,YAAY;IACrD;;;;;;;OAOG;IACH,kBAAkB,CACd,KAAK,EAAE,yBAAyB,EAChC,OAAO,CAAC,EAAE,UAAU,GACrB,mBAAmB,CAClB,yBAAyB,EACzB,0BAA0B,CAC7B;IAQD;;;;OAIG;IACH,yBAAyB,CACrB,KAAK,EAAE,gCAAgC,EACvC,OAAO,CAAC,EAAE,UAAU,GACrB,SAAS,CACR,gCAAgC,EAChC,iCAAiC,CACpC;IAQD;;;;;OAKG;IACH,YAAY,CACR,KAAK,EAAE,mBAAmB,EAC1B,OAAO,CAAC,EAAE,UAAU,GACrB,SAAS,CAAC,mBAAmB,EAAE,oBAAoB,CAAC;IAWvD;;;;OAIG;IACH,sBAAsB,CAClB,KAAK,EAAE,6BAA6B,EACpC,OAAO,CAAC,EAAE,UAAU,GACrB,SAAS,CACR,6BAA6B,EAC7B,8BAA8B,CACjC;CAQJ"}
|