@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,135 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies
|
|
2
|
+
// @generated from protobuf file "com/daml/ledger/api/v2/admin/participant_pruning_service.proto" (package "com.daml.ledger.api.v2.admin", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
6
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
//
|
|
8
|
+
import { ServiceType } from '@protobuf-ts/runtime-rpc';
|
|
9
|
+
import { WireType } from '@protobuf-ts/runtime';
|
|
10
|
+
import { UnknownFieldHandler } from '@protobuf-ts/runtime';
|
|
11
|
+
import { reflectionMergePartial } from '@protobuf-ts/runtime';
|
|
12
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
13
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
14
|
+
class PruneRequest$Type extends MessageType {
|
|
15
|
+
constructor() {
|
|
16
|
+
super('com.daml.ledger.api.v2.admin.PruneRequest', [
|
|
17
|
+
{
|
|
18
|
+
no: 1,
|
|
19
|
+
name: 'prune_up_to',
|
|
20
|
+
kind: 'scalar',
|
|
21
|
+
T: 3 /*ScalarType.INT64*/,
|
|
22
|
+
L: 0 /*LongType.BIGINT*/,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
no: 2,
|
|
26
|
+
name: 'submission_id',
|
|
27
|
+
kind: 'scalar',
|
|
28
|
+
T: 9 /*ScalarType.STRING*/,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
no: 3,
|
|
32
|
+
name: 'prune_all_divulged_contracts',
|
|
33
|
+
kind: 'scalar',
|
|
34
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
35
|
+
},
|
|
36
|
+
]);
|
|
37
|
+
}
|
|
38
|
+
create(value) {
|
|
39
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
40
|
+
message.pruneUpTo = 0n;
|
|
41
|
+
message.submissionId = '';
|
|
42
|
+
message.pruneAllDivulgedContracts = false;
|
|
43
|
+
if (value !== undefined)
|
|
44
|
+
reflectionMergePartial(this, message, value);
|
|
45
|
+
return message;
|
|
46
|
+
}
|
|
47
|
+
internalBinaryRead(reader, length, options, target) {
|
|
48
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
49
|
+
while (reader.pos < end) {
|
|
50
|
+
let [fieldNo, wireType] = reader.tag();
|
|
51
|
+
switch (fieldNo) {
|
|
52
|
+
case /* int64 prune_up_to */ 1:
|
|
53
|
+
message.pruneUpTo = reader.int64().toBigInt();
|
|
54
|
+
break;
|
|
55
|
+
case /* string submission_id */ 2:
|
|
56
|
+
message.submissionId = reader.string();
|
|
57
|
+
break;
|
|
58
|
+
case /* bool prune_all_divulged_contracts */ 3:
|
|
59
|
+
message.pruneAllDivulgedContracts = reader.bool();
|
|
60
|
+
break;
|
|
61
|
+
default:
|
|
62
|
+
let u = options.readUnknownField;
|
|
63
|
+
if (u === 'throw')
|
|
64
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
65
|
+
let d = reader.skip(wireType);
|
|
66
|
+
if (u !== false)
|
|
67
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return message;
|
|
71
|
+
}
|
|
72
|
+
internalBinaryWrite(message, writer, options) {
|
|
73
|
+
/* int64 prune_up_to = 1; */
|
|
74
|
+
if (message.pruneUpTo !== 0n)
|
|
75
|
+
writer.tag(1, WireType.Varint).int64(message.pruneUpTo);
|
|
76
|
+
/* string submission_id = 2; */
|
|
77
|
+
if (message.submissionId !== '')
|
|
78
|
+
writer.tag(2, WireType.LengthDelimited).string(message.submissionId);
|
|
79
|
+
/* bool prune_all_divulged_contracts = 3; */
|
|
80
|
+
if (message.pruneAllDivulgedContracts !== false)
|
|
81
|
+
writer
|
|
82
|
+
.tag(3, WireType.Varint)
|
|
83
|
+
.bool(message.pruneAllDivulgedContracts);
|
|
84
|
+
let u = options.writeUnknownFields;
|
|
85
|
+
if (u !== false)
|
|
86
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
87
|
+
return writer;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.PruneRequest
|
|
92
|
+
*/
|
|
93
|
+
export const PruneRequest = new PruneRequest$Type();
|
|
94
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
95
|
+
class PruneResponse$Type extends MessageType {
|
|
96
|
+
constructor() {
|
|
97
|
+
super('com.daml.ledger.api.v2.admin.PruneResponse', []);
|
|
98
|
+
}
|
|
99
|
+
create(value) {
|
|
100
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
101
|
+
if (value !== undefined)
|
|
102
|
+
reflectionMergePartial(this, message, value);
|
|
103
|
+
return message;
|
|
104
|
+
}
|
|
105
|
+
internalBinaryRead(reader, length, options, target) {
|
|
106
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
107
|
+
while (reader.pos < end) {
|
|
108
|
+
let [fieldNo, wireType] = reader.tag();
|
|
109
|
+
switch (fieldNo) {
|
|
110
|
+
default:
|
|
111
|
+
let u = options.readUnknownField;
|
|
112
|
+
if (u === 'throw')
|
|
113
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
114
|
+
let d = reader.skip(wireType);
|
|
115
|
+
if (u !== false)
|
|
116
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return message;
|
|
120
|
+
}
|
|
121
|
+
internalBinaryWrite(message, writer, options) {
|
|
122
|
+
let u = options.writeUnknownFields;
|
|
123
|
+
if (u !== false)
|
|
124
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
125
|
+
return writer;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.PruneResponse
|
|
130
|
+
*/
|
|
131
|
+
export const PruneResponse = new PruneResponse$Type();
|
|
132
|
+
/**
|
|
133
|
+
* @generated ServiceType for protobuf service com.daml.ledger.api.v2.admin.ParticipantPruningService
|
|
134
|
+
*/
|
|
135
|
+
export const ParticipantPruningService = new ServiceType('com.daml.ledger.api.v2.admin.ParticipantPruningService', [{ name: 'Prune', options: {}, I: PruneRequest, O: PruneResponse }]);
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import type { RpcTransport } from '@protobuf-ts/runtime-rpc';
|
|
2
|
+
import type { ServiceInfo } from '@protobuf-ts/runtime-rpc';
|
|
3
|
+
import type { UpdatePartyIdentityProviderIdResponse } from './party_management_service.js';
|
|
4
|
+
import type { UpdatePartyIdentityProviderIdRequest } from './party_management_service.js';
|
|
5
|
+
import type { UpdatePartyDetailsResponse } from './party_management_service.js';
|
|
6
|
+
import type { UpdatePartyDetailsRequest } from './party_management_service.js';
|
|
7
|
+
import type { AllocatePartyResponse } from './party_management_service.js';
|
|
8
|
+
import type { AllocatePartyRequest } from './party_management_service.js';
|
|
9
|
+
import type { ListKnownPartiesResponse } from './party_management_service.js';
|
|
10
|
+
import type { ListKnownPartiesRequest } from './party_management_service.js';
|
|
11
|
+
import type { GetPartiesResponse } from './party_management_service.js';
|
|
12
|
+
import type { GetPartiesRequest } from './party_management_service.js';
|
|
13
|
+
import type { GetParticipantIdResponse } from './party_management_service.js';
|
|
14
|
+
import type { GetParticipantIdRequest } from './party_management_service.js';
|
|
15
|
+
import type { UnaryCall } from '@protobuf-ts/runtime-rpc';
|
|
16
|
+
import type { RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
17
|
+
/**
|
|
18
|
+
* This service allows inspecting the party management state of the ledger known to the participant
|
|
19
|
+
* and managing the participant-local party metadata.
|
|
20
|
+
*
|
|
21
|
+
* The authorization rules for its RPCs are specified on the ``<RpcName>Request``
|
|
22
|
+
* messages as boolean expressions over these facts:
|
|
23
|
+
*
|
|
24
|
+
* 1. ``HasRight(r)`` denoting whether the authenticated user has right ``r`` and
|
|
25
|
+
* 2. ``IsAuthenticatedIdentityProviderAdmin(idp)`` denoting whether ``idp`` is equal to the ``identity_provider_id``
|
|
26
|
+
* of the authenticated user and the user has an IdentityProviderAdmin right.
|
|
27
|
+
*
|
|
28
|
+
* If `identity_provider_id` is set to an empty string, then it's effectively set to the value of access token's 'iss' field if that is provided.
|
|
29
|
+
* If `identity_provider_id` remains an empty string, the default identity provider will be assumed.
|
|
30
|
+
*
|
|
31
|
+
* The fields of request messages (and sub-messages) are marked either as ``Optional`` or ``Required``:
|
|
32
|
+
*
|
|
33
|
+
* 1. ``Optional`` denoting the client may leave the field unset when sending a request.
|
|
34
|
+
* 2. ``Required`` denoting the client must set the field to a non-default value when sending a request.
|
|
35
|
+
*
|
|
36
|
+
* A party details resource is described by the ``PartyDetails`` message,
|
|
37
|
+
* A party details resource, once it has been created, can be modified using the ``UpdatePartyDetails`` RPC.
|
|
38
|
+
* The only fields that can be modified are those marked as ``Modifiable``.
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf service com.daml.ledger.api.v2.admin.PartyManagementService
|
|
41
|
+
*/
|
|
42
|
+
export interface IPartyManagementServiceClient {
|
|
43
|
+
/**
|
|
44
|
+
* Return the identifier of the participant.
|
|
45
|
+
* All horizontally scaled replicas should return the same id.
|
|
46
|
+
* daml-on-kv-ledger: returns an identifier supplied on command line at launch time
|
|
47
|
+
* canton: returns globally unique identifier of the participant
|
|
48
|
+
*
|
|
49
|
+
* @generated from protobuf rpc: GetParticipantId
|
|
50
|
+
*/
|
|
51
|
+
getParticipantId(input: GetParticipantIdRequest, options?: RpcOptions): UnaryCall<GetParticipantIdRequest, GetParticipantIdResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Get the party details of the given parties. Only known parties will be
|
|
54
|
+
* returned in the list.
|
|
55
|
+
*
|
|
56
|
+
* @generated from protobuf rpc: GetParties
|
|
57
|
+
*/
|
|
58
|
+
getParties(input: GetPartiesRequest, options?: RpcOptions): UnaryCall<GetPartiesRequest, GetPartiesResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* List the parties known by the participant.
|
|
61
|
+
* The list returned contains parties whose ledger access is facilitated by
|
|
62
|
+
* the participant and the ones maintained elsewhere.
|
|
63
|
+
*
|
|
64
|
+
* @generated from protobuf rpc: ListKnownParties
|
|
65
|
+
*/
|
|
66
|
+
listKnownParties(input: ListKnownPartiesRequest, options?: RpcOptions): UnaryCall<ListKnownPartiesRequest, ListKnownPartiesResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Allocates a new party on a ledger and adds it to the set managed by the participant.
|
|
69
|
+
* Caller specifies a party identifier suggestion, the actual identifier
|
|
70
|
+
* allocated might be different and is implementation specific.
|
|
71
|
+
* Caller can specify party metadata that is stored locally on the participant.
|
|
72
|
+
* This call may:
|
|
73
|
+
*
|
|
74
|
+
* - Succeed, in which case the actual allocated identifier is visible in
|
|
75
|
+
* the response.
|
|
76
|
+
* - Respond with a gRPC error
|
|
77
|
+
*
|
|
78
|
+
* daml-on-kv-ledger: suggestion's uniqueness is checked by the validators in
|
|
79
|
+
* the consensus layer and call rejected if the identifier is already present.
|
|
80
|
+
* canton: completely different globally unique identifier is allocated.
|
|
81
|
+
* Behind the scenes calls to an internal protocol are made. As that protocol
|
|
82
|
+
* is richer than the surface protocol, the arguments take implicit values
|
|
83
|
+
* The party identifier suggestion must be a valid party name. Party names are required to be non-empty US-ASCII strings built from letters, digits, space,
|
|
84
|
+
* colon, minus and underscore limited to 255 chars
|
|
85
|
+
*
|
|
86
|
+
* @generated from protobuf rpc: AllocateParty
|
|
87
|
+
*/
|
|
88
|
+
allocateParty(input: AllocatePartyRequest, options?: RpcOptions): UnaryCall<AllocatePartyRequest, AllocatePartyResponse>;
|
|
89
|
+
/**
|
|
90
|
+
* Update selected modifiable participant-local attributes of a party details resource.
|
|
91
|
+
* Can update the participant's local information for local parties.
|
|
92
|
+
*
|
|
93
|
+
* @generated from protobuf rpc: UpdatePartyDetails
|
|
94
|
+
*/
|
|
95
|
+
updatePartyDetails(input: UpdatePartyDetailsRequest, options?: RpcOptions): UnaryCall<UpdatePartyDetailsRequest, UpdatePartyDetailsResponse>;
|
|
96
|
+
/**
|
|
97
|
+
* Update the assignment of a party from one IDP to another.
|
|
98
|
+
*
|
|
99
|
+
* @generated from protobuf rpc: UpdatePartyIdentityProviderId
|
|
100
|
+
*/
|
|
101
|
+
updatePartyIdentityProviderId(input: UpdatePartyIdentityProviderIdRequest, options?: RpcOptions): UnaryCall<UpdatePartyIdentityProviderIdRequest, UpdatePartyIdentityProviderIdResponse>;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* This service allows inspecting the party management state of the ledger known to the participant
|
|
105
|
+
* and managing the participant-local party metadata.
|
|
106
|
+
*
|
|
107
|
+
* The authorization rules for its RPCs are specified on the ``<RpcName>Request``
|
|
108
|
+
* messages as boolean expressions over these facts:
|
|
109
|
+
*
|
|
110
|
+
* 1. ``HasRight(r)`` denoting whether the authenticated user has right ``r`` and
|
|
111
|
+
* 2. ``IsAuthenticatedIdentityProviderAdmin(idp)`` denoting whether ``idp`` is equal to the ``identity_provider_id``
|
|
112
|
+
* of the authenticated user and the user has an IdentityProviderAdmin right.
|
|
113
|
+
*
|
|
114
|
+
* If `identity_provider_id` is set to an empty string, then it's effectively set to the value of access token's 'iss' field if that is provided.
|
|
115
|
+
* If `identity_provider_id` remains an empty string, the default identity provider will be assumed.
|
|
116
|
+
*
|
|
117
|
+
* The fields of request messages (and sub-messages) are marked either as ``Optional`` or ``Required``:
|
|
118
|
+
*
|
|
119
|
+
* 1. ``Optional`` denoting the client may leave the field unset when sending a request.
|
|
120
|
+
* 2. ``Required`` denoting the client must set the field to a non-default value when sending a request.
|
|
121
|
+
*
|
|
122
|
+
* A party details resource is described by the ``PartyDetails`` message,
|
|
123
|
+
* A party details resource, once it has been created, can be modified using the ``UpdatePartyDetails`` RPC.
|
|
124
|
+
* The only fields that can be modified are those marked as ``Modifiable``.
|
|
125
|
+
*
|
|
126
|
+
* @generated from protobuf service com.daml.ledger.api.v2.admin.PartyManagementService
|
|
127
|
+
*/
|
|
128
|
+
export declare class PartyManagementServiceClient implements IPartyManagementServiceClient, ServiceInfo {
|
|
129
|
+
private readonly _transport;
|
|
130
|
+
typeName: string;
|
|
131
|
+
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
132
|
+
options: {
|
|
133
|
+
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
|
|
134
|
+
};
|
|
135
|
+
constructor(_transport: RpcTransport);
|
|
136
|
+
/**
|
|
137
|
+
* Return the identifier of the participant.
|
|
138
|
+
* All horizontally scaled replicas should return the same id.
|
|
139
|
+
* daml-on-kv-ledger: returns an identifier supplied on command line at launch time
|
|
140
|
+
* canton: returns globally unique identifier of the participant
|
|
141
|
+
*
|
|
142
|
+
* @generated from protobuf rpc: GetParticipantId
|
|
143
|
+
*/
|
|
144
|
+
getParticipantId(input: GetParticipantIdRequest, options?: RpcOptions): UnaryCall<GetParticipantIdRequest, GetParticipantIdResponse>;
|
|
145
|
+
/**
|
|
146
|
+
* Get the party details of the given parties. Only known parties will be
|
|
147
|
+
* returned in the list.
|
|
148
|
+
*
|
|
149
|
+
* @generated from protobuf rpc: GetParties
|
|
150
|
+
*/
|
|
151
|
+
getParties(input: GetPartiesRequest, options?: RpcOptions): UnaryCall<GetPartiesRequest, GetPartiesResponse>;
|
|
152
|
+
/**
|
|
153
|
+
* List the parties known by the participant.
|
|
154
|
+
* The list returned contains parties whose ledger access is facilitated by
|
|
155
|
+
* the participant and the ones maintained elsewhere.
|
|
156
|
+
*
|
|
157
|
+
* @generated from protobuf rpc: ListKnownParties
|
|
158
|
+
*/
|
|
159
|
+
listKnownParties(input: ListKnownPartiesRequest, options?: RpcOptions): UnaryCall<ListKnownPartiesRequest, ListKnownPartiesResponse>;
|
|
160
|
+
/**
|
|
161
|
+
* Allocates a new party on a ledger and adds it to the set managed by the participant.
|
|
162
|
+
* Caller specifies a party identifier suggestion, the actual identifier
|
|
163
|
+
* allocated might be different and is implementation specific.
|
|
164
|
+
* Caller can specify party metadata that is stored locally on the participant.
|
|
165
|
+
* This call may:
|
|
166
|
+
*
|
|
167
|
+
* - Succeed, in which case the actual allocated identifier is visible in
|
|
168
|
+
* the response.
|
|
169
|
+
* - Respond with a gRPC error
|
|
170
|
+
*
|
|
171
|
+
* daml-on-kv-ledger: suggestion's uniqueness is checked by the validators in
|
|
172
|
+
* the consensus layer and call rejected if the identifier is already present.
|
|
173
|
+
* canton: completely different globally unique identifier is allocated.
|
|
174
|
+
* Behind the scenes calls to an internal protocol are made. As that protocol
|
|
175
|
+
* is richer than the surface protocol, the arguments take implicit values
|
|
176
|
+
* The party identifier suggestion must be a valid party name. Party names are required to be non-empty US-ASCII strings built from letters, digits, space,
|
|
177
|
+
* colon, minus and underscore limited to 255 chars
|
|
178
|
+
*
|
|
179
|
+
* @generated from protobuf rpc: AllocateParty
|
|
180
|
+
*/
|
|
181
|
+
allocateParty(input: AllocatePartyRequest, options?: RpcOptions): UnaryCall<AllocatePartyRequest, AllocatePartyResponse>;
|
|
182
|
+
/**
|
|
183
|
+
* Update selected modifiable participant-local attributes of a party details resource.
|
|
184
|
+
* Can update the participant's local information for local parties.
|
|
185
|
+
*
|
|
186
|
+
* @generated from protobuf rpc: UpdatePartyDetails
|
|
187
|
+
*/
|
|
188
|
+
updatePartyDetails(input: UpdatePartyDetailsRequest, options?: RpcOptions): UnaryCall<UpdatePartyDetailsRequest, UpdatePartyDetailsResponse>;
|
|
189
|
+
/**
|
|
190
|
+
* Update the assignment of a party from one IDP to another.
|
|
191
|
+
*
|
|
192
|
+
* @generated from protobuf rpc: UpdatePartyIdentityProviderId
|
|
193
|
+
*/
|
|
194
|
+
updatePartyIdentityProviderId(input: UpdatePartyIdentityProviderIdRequest, options?: RpcOptions): UnaryCall<UpdatePartyIdentityProviderIdRequest, UpdatePartyIdentityProviderIdResponse>;
|
|
195
|
+
}
|
|
196
|
+
//# sourceMappingURL=party_management_service.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"party_management_service.client.d.ts","sourceRoot":"","sources":["../../../../../../../../src/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { PartyManagementService } from './party_management_service.js';
|
|
2
|
+
import { stackIntercept } from '@protobuf-ts/runtime-rpc';
|
|
3
|
+
/**
|
|
4
|
+
* This service allows inspecting the party management state of the ledger known to the participant
|
|
5
|
+
* and managing the participant-local party metadata.
|
|
6
|
+
*
|
|
7
|
+
* The authorization rules for its RPCs are specified on the ``<RpcName>Request``
|
|
8
|
+
* messages as boolean expressions over these facts:
|
|
9
|
+
*
|
|
10
|
+
* 1. ``HasRight(r)`` denoting whether the authenticated user has right ``r`` and
|
|
11
|
+
* 2. ``IsAuthenticatedIdentityProviderAdmin(idp)`` denoting whether ``idp`` is equal to the ``identity_provider_id``
|
|
12
|
+
* of the authenticated user and the user has an IdentityProviderAdmin right.
|
|
13
|
+
*
|
|
14
|
+
* If `identity_provider_id` is set to an empty string, then it's effectively set to the value of access token's 'iss' field if that is provided.
|
|
15
|
+
* If `identity_provider_id` remains an empty string, the default identity provider will be assumed.
|
|
16
|
+
*
|
|
17
|
+
* The fields of request messages (and sub-messages) are marked either as ``Optional`` or ``Required``:
|
|
18
|
+
*
|
|
19
|
+
* 1. ``Optional`` denoting the client may leave the field unset when sending a request.
|
|
20
|
+
* 2. ``Required`` denoting the client must set the field to a non-default value when sending a request.
|
|
21
|
+
*
|
|
22
|
+
* A party details resource is described by the ``PartyDetails`` message,
|
|
23
|
+
* A party details resource, once it has been created, can be modified using the ``UpdatePartyDetails`` RPC.
|
|
24
|
+
* The only fields that can be modified are those marked as ``Modifiable``.
|
|
25
|
+
*
|
|
26
|
+
* @generated from protobuf service com.daml.ledger.api.v2.admin.PartyManagementService
|
|
27
|
+
*/
|
|
28
|
+
export class PartyManagementServiceClient {
|
|
29
|
+
_transport;
|
|
30
|
+
typeName = PartyManagementService.typeName;
|
|
31
|
+
methods = PartyManagementService.methods;
|
|
32
|
+
options = PartyManagementService.options;
|
|
33
|
+
constructor(_transport) {
|
|
34
|
+
this._transport = _transport;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Return the identifier of the participant.
|
|
38
|
+
* All horizontally scaled replicas should return the same id.
|
|
39
|
+
* daml-on-kv-ledger: returns an identifier supplied on command line at launch time
|
|
40
|
+
* canton: returns globally unique identifier of the participant
|
|
41
|
+
*
|
|
42
|
+
* @generated from protobuf rpc: GetParticipantId
|
|
43
|
+
*/
|
|
44
|
+
getParticipantId(input, options) {
|
|
45
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
46
|
+
return stackIntercept('unary', this._transport, method, opt, input);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get the party details of the given parties. Only known parties will be
|
|
50
|
+
* returned in the list.
|
|
51
|
+
*
|
|
52
|
+
* @generated from protobuf rpc: GetParties
|
|
53
|
+
*/
|
|
54
|
+
getParties(input, options) {
|
|
55
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
56
|
+
return stackIntercept('unary', this._transport, method, opt, input);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* List the parties known by the participant.
|
|
60
|
+
* The list returned contains parties whose ledger access is facilitated by
|
|
61
|
+
* the participant and the ones maintained elsewhere.
|
|
62
|
+
*
|
|
63
|
+
* @generated from protobuf rpc: ListKnownParties
|
|
64
|
+
*/
|
|
65
|
+
listKnownParties(input, options) {
|
|
66
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
67
|
+
return stackIntercept('unary', this._transport, method, opt, input);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Allocates a new party on a ledger and adds it to the set managed by the participant.
|
|
71
|
+
* Caller specifies a party identifier suggestion, the actual identifier
|
|
72
|
+
* allocated might be different and is implementation specific.
|
|
73
|
+
* Caller can specify party metadata that is stored locally on the participant.
|
|
74
|
+
* This call may:
|
|
75
|
+
*
|
|
76
|
+
* - Succeed, in which case the actual allocated identifier is visible in
|
|
77
|
+
* the response.
|
|
78
|
+
* - Respond with a gRPC error
|
|
79
|
+
*
|
|
80
|
+
* daml-on-kv-ledger: suggestion's uniqueness is checked by the validators in
|
|
81
|
+
* the consensus layer and call rejected if the identifier is already present.
|
|
82
|
+
* canton: completely different globally unique identifier is allocated.
|
|
83
|
+
* Behind the scenes calls to an internal protocol are made. As that protocol
|
|
84
|
+
* is richer than the surface protocol, the arguments take implicit values
|
|
85
|
+
* The party identifier suggestion must be a valid party name. Party names are required to be non-empty US-ASCII strings built from letters, digits, space,
|
|
86
|
+
* colon, minus and underscore limited to 255 chars
|
|
87
|
+
*
|
|
88
|
+
* @generated from protobuf rpc: AllocateParty
|
|
89
|
+
*/
|
|
90
|
+
allocateParty(input, options) {
|
|
91
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
92
|
+
return stackIntercept('unary', this._transport, method, opt, input);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Update selected modifiable participant-local attributes of a party details resource.
|
|
96
|
+
* Can update the participant's local information for local parties.
|
|
97
|
+
*
|
|
98
|
+
* @generated from protobuf rpc: UpdatePartyDetails
|
|
99
|
+
*/
|
|
100
|
+
updatePartyDetails(input, options) {
|
|
101
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
102
|
+
return stackIntercept('unary', this._transport, method, opt, input);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Update the assignment of a party from one IDP to another.
|
|
106
|
+
*
|
|
107
|
+
* @generated from protobuf rpc: UpdatePartyIdentityProviderId
|
|
108
|
+
*/
|
|
109
|
+
updatePartyIdentityProviderId(input, options) {
|
|
110
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
111
|
+
return stackIntercept('unary', this._transport, method, opt, input);
|
|
112
|
+
}
|
|
113
|
+
}
|