@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,427 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies
|
|
2
|
+
// @generated from protobuf file "com/daml/ledger/api/v2/admin/package_management_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
|
+
import { Timestamp } from '../../../../../../google/protobuf/timestamp.js';
|
|
14
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
15
|
+
class ListKnownPackagesRequest$Type extends MessageType {
|
|
16
|
+
constructor() {
|
|
17
|
+
super('com.daml.ledger.api.v2.admin.ListKnownPackagesRequest', []);
|
|
18
|
+
}
|
|
19
|
+
create(value) {
|
|
20
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
21
|
+
if (value !== undefined)
|
|
22
|
+
reflectionMergePartial(this, message, value);
|
|
23
|
+
return message;
|
|
24
|
+
}
|
|
25
|
+
internalBinaryRead(reader, length, options, target) {
|
|
26
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
27
|
+
while (reader.pos < end) {
|
|
28
|
+
let [fieldNo, wireType] = reader.tag();
|
|
29
|
+
switch (fieldNo) {
|
|
30
|
+
default:
|
|
31
|
+
let u = options.readUnknownField;
|
|
32
|
+
if (u === 'throw')
|
|
33
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
34
|
+
let d = reader.skip(wireType);
|
|
35
|
+
if (u !== false)
|
|
36
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return message;
|
|
40
|
+
}
|
|
41
|
+
internalBinaryWrite(message, writer, options) {
|
|
42
|
+
let u = options.writeUnknownFields;
|
|
43
|
+
if (u !== false)
|
|
44
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
45
|
+
return writer;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.ListKnownPackagesRequest
|
|
50
|
+
*/
|
|
51
|
+
export const ListKnownPackagesRequest = new ListKnownPackagesRequest$Type();
|
|
52
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
53
|
+
class ListKnownPackagesResponse$Type extends MessageType {
|
|
54
|
+
constructor() {
|
|
55
|
+
super('com.daml.ledger.api.v2.admin.ListKnownPackagesResponse', [
|
|
56
|
+
{
|
|
57
|
+
no: 1,
|
|
58
|
+
name: 'package_details',
|
|
59
|
+
kind: 'message',
|
|
60
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
61
|
+
T: () => PackageDetails,
|
|
62
|
+
},
|
|
63
|
+
]);
|
|
64
|
+
}
|
|
65
|
+
create(value) {
|
|
66
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
67
|
+
message.packageDetails = [];
|
|
68
|
+
if (value !== undefined)
|
|
69
|
+
reflectionMergePartial(this, message, value);
|
|
70
|
+
return message;
|
|
71
|
+
}
|
|
72
|
+
internalBinaryRead(reader, length, options, target) {
|
|
73
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
74
|
+
while (reader.pos < end) {
|
|
75
|
+
let [fieldNo, wireType] = reader.tag();
|
|
76
|
+
switch (fieldNo) {
|
|
77
|
+
case /* repeated com.daml.ledger.api.v2.admin.PackageDetails package_details */ 1:
|
|
78
|
+
message.packageDetails.push(PackageDetails.internalBinaryRead(reader, reader.uint32(), options));
|
|
79
|
+
break;
|
|
80
|
+
default:
|
|
81
|
+
let u = options.readUnknownField;
|
|
82
|
+
if (u === 'throw')
|
|
83
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
84
|
+
let d = reader.skip(wireType);
|
|
85
|
+
if (u !== false)
|
|
86
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return message;
|
|
90
|
+
}
|
|
91
|
+
internalBinaryWrite(message, writer, options) {
|
|
92
|
+
/* repeated com.daml.ledger.api.v2.admin.PackageDetails package_details = 1; */
|
|
93
|
+
for (let i = 0; i < message.packageDetails.length; i++)
|
|
94
|
+
PackageDetails.internalBinaryWrite(message.packageDetails[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
95
|
+
let u = options.writeUnknownFields;
|
|
96
|
+
if (u !== false)
|
|
97
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
98
|
+
return writer;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.ListKnownPackagesResponse
|
|
103
|
+
*/
|
|
104
|
+
export const ListKnownPackagesResponse = new ListKnownPackagesResponse$Type();
|
|
105
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
106
|
+
class PackageDetails$Type extends MessageType {
|
|
107
|
+
constructor() {
|
|
108
|
+
super('com.daml.ledger.api.v2.admin.PackageDetails', [
|
|
109
|
+
{
|
|
110
|
+
no: 1,
|
|
111
|
+
name: 'package_id',
|
|
112
|
+
kind: 'scalar',
|
|
113
|
+
T: 9 /*ScalarType.STRING*/,
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
no: 2,
|
|
117
|
+
name: 'package_size',
|
|
118
|
+
kind: 'scalar',
|
|
119
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
120
|
+
L: 0 /*LongType.BIGINT*/,
|
|
121
|
+
},
|
|
122
|
+
{ no: 3, name: 'known_since', kind: 'message', T: () => Timestamp },
|
|
123
|
+
{ no: 4, name: 'name', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },
|
|
124
|
+
{
|
|
125
|
+
no: 5,
|
|
126
|
+
name: 'version',
|
|
127
|
+
kind: 'scalar',
|
|
128
|
+
T: 9 /*ScalarType.STRING*/,
|
|
129
|
+
},
|
|
130
|
+
]);
|
|
131
|
+
}
|
|
132
|
+
create(value) {
|
|
133
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
134
|
+
message.packageId = '';
|
|
135
|
+
message.packageSize = 0n;
|
|
136
|
+
message.name = '';
|
|
137
|
+
message.version = '';
|
|
138
|
+
if (value !== undefined)
|
|
139
|
+
reflectionMergePartial(this, message, value);
|
|
140
|
+
return message;
|
|
141
|
+
}
|
|
142
|
+
internalBinaryRead(reader, length, options, target) {
|
|
143
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
144
|
+
while (reader.pos < end) {
|
|
145
|
+
let [fieldNo, wireType] = reader.tag();
|
|
146
|
+
switch (fieldNo) {
|
|
147
|
+
case /* string package_id */ 1:
|
|
148
|
+
message.packageId = reader.string();
|
|
149
|
+
break;
|
|
150
|
+
case /* uint64 package_size */ 2:
|
|
151
|
+
message.packageSize = reader.uint64().toBigInt();
|
|
152
|
+
break;
|
|
153
|
+
case /* google.protobuf.Timestamp known_since */ 3:
|
|
154
|
+
message.knownSince = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.knownSince);
|
|
155
|
+
break;
|
|
156
|
+
case /* string name */ 4:
|
|
157
|
+
message.name = reader.string();
|
|
158
|
+
break;
|
|
159
|
+
case /* string version */ 5:
|
|
160
|
+
message.version = reader.string();
|
|
161
|
+
break;
|
|
162
|
+
default:
|
|
163
|
+
let u = options.readUnknownField;
|
|
164
|
+
if (u === 'throw')
|
|
165
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
166
|
+
let d = reader.skip(wireType);
|
|
167
|
+
if (u !== false)
|
|
168
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return message;
|
|
172
|
+
}
|
|
173
|
+
internalBinaryWrite(message, writer, options) {
|
|
174
|
+
/* string package_id = 1; */
|
|
175
|
+
if (message.packageId !== '')
|
|
176
|
+
writer.tag(1, WireType.LengthDelimited).string(message.packageId);
|
|
177
|
+
/* uint64 package_size = 2; */
|
|
178
|
+
if (message.packageSize !== 0n)
|
|
179
|
+
writer.tag(2, WireType.Varint).uint64(message.packageSize);
|
|
180
|
+
/* google.protobuf.Timestamp known_since = 3; */
|
|
181
|
+
if (message.knownSince)
|
|
182
|
+
Timestamp.internalBinaryWrite(message.knownSince, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
183
|
+
/* string name = 4; */
|
|
184
|
+
if (message.name !== '')
|
|
185
|
+
writer.tag(4, WireType.LengthDelimited).string(message.name);
|
|
186
|
+
/* string version = 5; */
|
|
187
|
+
if (message.version !== '')
|
|
188
|
+
writer.tag(5, WireType.LengthDelimited).string(message.version);
|
|
189
|
+
let u = options.writeUnknownFields;
|
|
190
|
+
if (u !== false)
|
|
191
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
192
|
+
return writer;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.PackageDetails
|
|
197
|
+
*/
|
|
198
|
+
export const PackageDetails = new PackageDetails$Type();
|
|
199
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
200
|
+
class UploadDarFileRequest$Type extends MessageType {
|
|
201
|
+
constructor() {
|
|
202
|
+
super('com.daml.ledger.api.v2.admin.UploadDarFileRequest', [
|
|
203
|
+
{
|
|
204
|
+
no: 1,
|
|
205
|
+
name: 'dar_file',
|
|
206
|
+
kind: 'scalar',
|
|
207
|
+
T: 12 /*ScalarType.BYTES*/,
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
no: 2,
|
|
211
|
+
name: 'submission_id',
|
|
212
|
+
kind: 'scalar',
|
|
213
|
+
T: 9 /*ScalarType.STRING*/,
|
|
214
|
+
},
|
|
215
|
+
]);
|
|
216
|
+
}
|
|
217
|
+
create(value) {
|
|
218
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
219
|
+
message.darFile = new Uint8Array(0);
|
|
220
|
+
message.submissionId = '';
|
|
221
|
+
if (value !== undefined)
|
|
222
|
+
reflectionMergePartial(this, message, value);
|
|
223
|
+
return message;
|
|
224
|
+
}
|
|
225
|
+
internalBinaryRead(reader, length, options, target) {
|
|
226
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
227
|
+
while (reader.pos < end) {
|
|
228
|
+
let [fieldNo, wireType] = reader.tag();
|
|
229
|
+
switch (fieldNo) {
|
|
230
|
+
case /* bytes dar_file */ 1:
|
|
231
|
+
message.darFile = reader.bytes();
|
|
232
|
+
break;
|
|
233
|
+
case /* string submission_id */ 2:
|
|
234
|
+
message.submissionId = reader.string();
|
|
235
|
+
break;
|
|
236
|
+
default:
|
|
237
|
+
let u = options.readUnknownField;
|
|
238
|
+
if (u === 'throw')
|
|
239
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
240
|
+
let d = reader.skip(wireType);
|
|
241
|
+
if (u !== false)
|
|
242
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return message;
|
|
246
|
+
}
|
|
247
|
+
internalBinaryWrite(message, writer, options) {
|
|
248
|
+
/* bytes dar_file = 1; */
|
|
249
|
+
if (message.darFile.length)
|
|
250
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.darFile);
|
|
251
|
+
/* string submission_id = 2; */
|
|
252
|
+
if (message.submissionId !== '')
|
|
253
|
+
writer.tag(2, WireType.LengthDelimited).string(message.submissionId);
|
|
254
|
+
let u = options.writeUnknownFields;
|
|
255
|
+
if (u !== false)
|
|
256
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
257
|
+
return writer;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.UploadDarFileRequest
|
|
262
|
+
*/
|
|
263
|
+
export const UploadDarFileRequest = new UploadDarFileRequest$Type();
|
|
264
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
265
|
+
class UploadDarFileResponse$Type extends MessageType {
|
|
266
|
+
constructor() {
|
|
267
|
+
super('com.daml.ledger.api.v2.admin.UploadDarFileResponse', []);
|
|
268
|
+
}
|
|
269
|
+
create(value) {
|
|
270
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
271
|
+
if (value !== undefined)
|
|
272
|
+
reflectionMergePartial(this, message, value);
|
|
273
|
+
return message;
|
|
274
|
+
}
|
|
275
|
+
internalBinaryRead(reader, length, options, target) {
|
|
276
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
277
|
+
while (reader.pos < end) {
|
|
278
|
+
let [fieldNo, wireType] = reader.tag();
|
|
279
|
+
switch (fieldNo) {
|
|
280
|
+
default:
|
|
281
|
+
let u = options.readUnknownField;
|
|
282
|
+
if (u === 'throw')
|
|
283
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
284
|
+
let d = reader.skip(wireType);
|
|
285
|
+
if (u !== false)
|
|
286
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
return message;
|
|
290
|
+
}
|
|
291
|
+
internalBinaryWrite(message, writer, options) {
|
|
292
|
+
let u = options.writeUnknownFields;
|
|
293
|
+
if (u !== false)
|
|
294
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
295
|
+
return writer;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.UploadDarFileResponse
|
|
300
|
+
*/
|
|
301
|
+
export const UploadDarFileResponse = new UploadDarFileResponse$Type();
|
|
302
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
303
|
+
class ValidateDarFileRequest$Type extends MessageType {
|
|
304
|
+
constructor() {
|
|
305
|
+
super('com.daml.ledger.api.v2.admin.ValidateDarFileRequest', [
|
|
306
|
+
{
|
|
307
|
+
no: 1,
|
|
308
|
+
name: 'dar_file',
|
|
309
|
+
kind: 'scalar',
|
|
310
|
+
T: 12 /*ScalarType.BYTES*/,
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
no: 2,
|
|
314
|
+
name: 'submission_id',
|
|
315
|
+
kind: 'scalar',
|
|
316
|
+
T: 9 /*ScalarType.STRING*/,
|
|
317
|
+
},
|
|
318
|
+
]);
|
|
319
|
+
}
|
|
320
|
+
create(value) {
|
|
321
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
322
|
+
message.darFile = new Uint8Array(0);
|
|
323
|
+
message.submissionId = '';
|
|
324
|
+
if (value !== undefined)
|
|
325
|
+
reflectionMergePartial(this, message, value);
|
|
326
|
+
return message;
|
|
327
|
+
}
|
|
328
|
+
internalBinaryRead(reader, length, options, target) {
|
|
329
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
330
|
+
while (reader.pos < end) {
|
|
331
|
+
let [fieldNo, wireType] = reader.tag();
|
|
332
|
+
switch (fieldNo) {
|
|
333
|
+
case /* bytes dar_file */ 1:
|
|
334
|
+
message.darFile = reader.bytes();
|
|
335
|
+
break;
|
|
336
|
+
case /* string submission_id */ 2:
|
|
337
|
+
message.submissionId = reader.string();
|
|
338
|
+
break;
|
|
339
|
+
default:
|
|
340
|
+
let u = options.readUnknownField;
|
|
341
|
+
if (u === 'throw')
|
|
342
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
343
|
+
let d = reader.skip(wireType);
|
|
344
|
+
if (u !== false)
|
|
345
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
return message;
|
|
349
|
+
}
|
|
350
|
+
internalBinaryWrite(message, writer, options) {
|
|
351
|
+
/* bytes dar_file = 1; */
|
|
352
|
+
if (message.darFile.length)
|
|
353
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.darFile);
|
|
354
|
+
/* string submission_id = 2; */
|
|
355
|
+
if (message.submissionId !== '')
|
|
356
|
+
writer.tag(2, WireType.LengthDelimited).string(message.submissionId);
|
|
357
|
+
let u = options.writeUnknownFields;
|
|
358
|
+
if (u !== false)
|
|
359
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
360
|
+
return writer;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.ValidateDarFileRequest
|
|
365
|
+
*/
|
|
366
|
+
export const ValidateDarFileRequest = new ValidateDarFileRequest$Type();
|
|
367
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
368
|
+
class ValidateDarFileResponse$Type extends MessageType {
|
|
369
|
+
constructor() {
|
|
370
|
+
super('com.daml.ledger.api.v2.admin.ValidateDarFileResponse', []);
|
|
371
|
+
}
|
|
372
|
+
create(value) {
|
|
373
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
374
|
+
if (value !== undefined)
|
|
375
|
+
reflectionMergePartial(this, message, value);
|
|
376
|
+
return message;
|
|
377
|
+
}
|
|
378
|
+
internalBinaryRead(reader, length, options, target) {
|
|
379
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
380
|
+
while (reader.pos < end) {
|
|
381
|
+
let [fieldNo, wireType] = reader.tag();
|
|
382
|
+
switch (fieldNo) {
|
|
383
|
+
default:
|
|
384
|
+
let u = options.readUnknownField;
|
|
385
|
+
if (u === 'throw')
|
|
386
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
387
|
+
let d = reader.skip(wireType);
|
|
388
|
+
if (u !== false)
|
|
389
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
return message;
|
|
393
|
+
}
|
|
394
|
+
internalBinaryWrite(message, writer, options) {
|
|
395
|
+
let u = options.writeUnknownFields;
|
|
396
|
+
if (u !== false)
|
|
397
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
398
|
+
return writer;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.ValidateDarFileResponse
|
|
403
|
+
*/
|
|
404
|
+
export const ValidateDarFileResponse = new ValidateDarFileResponse$Type();
|
|
405
|
+
/**
|
|
406
|
+
* @generated ServiceType for protobuf service com.daml.ledger.api.v2.admin.PackageManagementService
|
|
407
|
+
*/
|
|
408
|
+
export const PackageManagementService = new ServiceType('com.daml.ledger.api.v2.admin.PackageManagementService', [
|
|
409
|
+
{
|
|
410
|
+
name: 'ListKnownPackages',
|
|
411
|
+
options: {},
|
|
412
|
+
I: ListKnownPackagesRequest,
|
|
413
|
+
O: ListKnownPackagesResponse,
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
name: 'UploadDarFile',
|
|
417
|
+
options: {},
|
|
418
|
+
I: UploadDarFileRequest,
|
|
419
|
+
O: UploadDarFileResponse,
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
name: 'ValidateDarFile',
|
|
423
|
+
options: {},
|
|
424
|
+
I: ValidateDarFileRequest,
|
|
425
|
+
O: ValidateDarFileResponse,
|
|
426
|
+
},
|
|
427
|
+
]);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { RpcTransport } from '@protobuf-ts/runtime-rpc';
|
|
2
|
+
import type { ServiceInfo } from '@protobuf-ts/runtime-rpc';
|
|
3
|
+
import type { PruneResponse } from './participant_pruning_service.js';
|
|
4
|
+
import type { PruneRequest } from './participant_pruning_service.js';
|
|
5
|
+
import type { UnaryCall } from '@protobuf-ts/runtime-rpc';
|
|
6
|
+
import type { RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
7
|
+
/**
|
|
8
|
+
* Prunes/truncates the "oldest" transactions from the participant (the participant Ledger Api Server plus any other
|
|
9
|
+
* participant-local state) by removing a portion of the ledger in such a way that the set of future, allowed
|
|
10
|
+
* commands are not affected.
|
|
11
|
+
*
|
|
12
|
+
* This enables:
|
|
13
|
+
*
|
|
14
|
+
* 1. keeping the "inactive" portion of the ledger to a manageable size and
|
|
15
|
+
* 2. removing inactive state to honor the right to be forgotten.
|
|
16
|
+
*
|
|
17
|
+
* @generated from protobuf service com.daml.ledger.api.v2.admin.ParticipantPruningService
|
|
18
|
+
*/
|
|
19
|
+
export interface IParticipantPruningServiceClient {
|
|
20
|
+
/**
|
|
21
|
+
* Prune the ledger specifying the offset before and at which ledger transactions should be removed. Only returns when
|
|
22
|
+
* the potentially long-running prune request ends successfully or with an error.
|
|
23
|
+
*
|
|
24
|
+
* @generated from protobuf rpc: Prune
|
|
25
|
+
*/
|
|
26
|
+
prune(input: PruneRequest, options?: RpcOptions): UnaryCall<PruneRequest, PruneResponse>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Prunes/truncates the "oldest" transactions from the participant (the participant Ledger Api Server plus any other
|
|
30
|
+
* participant-local state) by removing a portion of the ledger in such a way that the set of future, allowed
|
|
31
|
+
* commands are not affected.
|
|
32
|
+
*
|
|
33
|
+
* This enables:
|
|
34
|
+
*
|
|
35
|
+
* 1. keeping the "inactive" portion of the ledger to a manageable size and
|
|
36
|
+
* 2. removing inactive state to honor the right to be forgotten.
|
|
37
|
+
*
|
|
38
|
+
* @generated from protobuf service com.daml.ledger.api.v2.admin.ParticipantPruningService
|
|
39
|
+
*/
|
|
40
|
+
export declare class ParticipantPruningServiceClient implements IParticipantPruningServiceClient, ServiceInfo {
|
|
41
|
+
private readonly _transport;
|
|
42
|
+
typeName: string;
|
|
43
|
+
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
44
|
+
options: {
|
|
45
|
+
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
|
|
46
|
+
};
|
|
47
|
+
constructor(_transport: RpcTransport);
|
|
48
|
+
/**
|
|
49
|
+
* Prune the ledger specifying the offset before and at which ledger transactions should be removed. Only returns when
|
|
50
|
+
* the potentially long-running prune request ends successfully or with an error.
|
|
51
|
+
*
|
|
52
|
+
* @generated from protobuf rpc: Prune
|
|
53
|
+
*/
|
|
54
|
+
prune(input: PruneRequest, options?: RpcOptions): UnaryCall<PruneRequest, PruneResponse>;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=participant_pruning_service.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"participant_pruning_service.client.d.ts","sourceRoot":"","sources":["../../../../../../../../src/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAG3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAI1D;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;;OAKG;IACH,KAAK,CACD,KAAK,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,UAAU,GACrB,SAAS,CAAC,YAAY,EAAE,aAAa,CAAC,CAAA;CAC5C;AAID;;;;;;;;;;;GAWG;AACH,qBAAa,+BACT,YAAW,gCAAgC,EAAE,WAAW;IAK5C,OAAO,CAAC,QAAQ,CAAC,UAAU;IAHvC,QAAQ,SAAqC;IAC7C,OAAO,4DAAoC;IAC3C,OAAO;;MAAoC;gBACd,UAAU,EAAE,YAAY;IACrD;;;;;OAKG;IACH,KAAK,CACD,KAAK,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,UAAU,GACrB,SAAS,CAAC,YAAY,EAAE,aAAa,CAAC;CAW5C"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ParticipantPruningService } from './participant_pruning_service.js';
|
|
2
|
+
import { stackIntercept } from '@protobuf-ts/runtime-rpc';
|
|
3
|
+
// Status: experimental interface, will change before it is deemed production
|
|
4
|
+
// ready
|
|
5
|
+
/**
|
|
6
|
+
* Prunes/truncates the "oldest" transactions from the participant (the participant Ledger Api Server plus any other
|
|
7
|
+
* participant-local state) by removing a portion of the ledger in such a way that the set of future, allowed
|
|
8
|
+
* commands are not affected.
|
|
9
|
+
*
|
|
10
|
+
* This enables:
|
|
11
|
+
*
|
|
12
|
+
* 1. keeping the "inactive" portion of the ledger to a manageable size and
|
|
13
|
+
* 2. removing inactive state to honor the right to be forgotten.
|
|
14
|
+
*
|
|
15
|
+
* @generated from protobuf service com.daml.ledger.api.v2.admin.ParticipantPruningService
|
|
16
|
+
*/
|
|
17
|
+
export class ParticipantPruningServiceClient {
|
|
18
|
+
_transport;
|
|
19
|
+
typeName = ParticipantPruningService.typeName;
|
|
20
|
+
methods = ParticipantPruningService.methods;
|
|
21
|
+
options = ParticipantPruningService.options;
|
|
22
|
+
constructor(_transport) {
|
|
23
|
+
this._transport = _transport;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Prune the ledger specifying the offset before and at which ledger transactions should be removed. Only returns when
|
|
27
|
+
* the potentially long-running prune request ends successfully or with an error.
|
|
28
|
+
*
|
|
29
|
+
* @generated from protobuf rpc: Prune
|
|
30
|
+
*/
|
|
31
|
+
prune(input, options) {
|
|
32
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
33
|
+
return stackIntercept('unary', this._transport, method, opt, input);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ServiceType } from '@protobuf-ts/runtime-rpc';
|
|
2
|
+
import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
|
|
3
|
+
import type { IBinaryWriter } from '@protobuf-ts/runtime';
|
|
4
|
+
import type { BinaryReadOptions } from '@protobuf-ts/runtime';
|
|
5
|
+
import type { IBinaryReader } from '@protobuf-ts/runtime';
|
|
6
|
+
import type { PartialMessage } from '@protobuf-ts/runtime';
|
|
7
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
8
|
+
/**
|
|
9
|
+
* @generated from protobuf message com.daml.ledger.api.v2.admin.PruneRequest
|
|
10
|
+
*/
|
|
11
|
+
export interface PruneRequest {
|
|
12
|
+
/**
|
|
13
|
+
* Inclusive valid absolute offset (positive integer) up to which the ledger is to be pruned.
|
|
14
|
+
* By default the following data is pruned:
|
|
15
|
+
*
|
|
16
|
+
* 1. All normal and divulged contracts that have been archived before
|
|
17
|
+
* `prune_up_to`.
|
|
18
|
+
* 2. All transaction events and completions before `prune_up_to`
|
|
19
|
+
*
|
|
20
|
+
* @generated from protobuf field: int64 prune_up_to = 1
|
|
21
|
+
*/
|
|
22
|
+
pruneUpTo: bigint;
|
|
23
|
+
/**
|
|
24
|
+
* Unique submission identifier.
|
|
25
|
+
* Optional, defaults to a random identifier, used for logging.
|
|
26
|
+
*
|
|
27
|
+
* @generated from protobuf field: string submission_id = 2
|
|
28
|
+
*/
|
|
29
|
+
submissionId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Prune all immediately and retroactively divulged contracts created before `prune_up_to`
|
|
32
|
+
* independent of whether they were archived before `prune_up_to`. Useful to avoid leaking
|
|
33
|
+
* storage on participant nodes that can see a divulged contract but not its archival.
|
|
34
|
+
*
|
|
35
|
+
* Application developers SHOULD write their Daml applications
|
|
36
|
+
* such that they do not rely on divulged contracts; i.e., no warnings from
|
|
37
|
+
* using divulged contracts as inputs to transactions are emitted.
|
|
38
|
+
*
|
|
39
|
+
* Participant node operators SHOULD set the `prune_all_divulged_contracts` flag to avoid leaking
|
|
40
|
+
* storage due to accumulating unarchived divulged contracts PROVIDED that:
|
|
41
|
+
*
|
|
42
|
+
* 1. no application using this participant node relies on divulgence OR
|
|
43
|
+
* 2. divulged contracts on which applications rely have been re-divulged after the `prune_up_to` offset.
|
|
44
|
+
*
|
|
45
|
+
* @generated from protobuf field: bool prune_all_divulged_contracts = 3
|
|
46
|
+
*/
|
|
47
|
+
pruneAllDivulgedContracts: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Empty for now, but may contain fields in the future
|
|
51
|
+
*
|
|
52
|
+
* @generated from protobuf message com.daml.ledger.api.v2.admin.PruneResponse
|
|
53
|
+
*/
|
|
54
|
+
export interface PruneResponse {
|
|
55
|
+
}
|
|
56
|
+
declare class PruneRequest$Type extends MessageType<PruneRequest> {
|
|
57
|
+
constructor();
|
|
58
|
+
create(value?: PartialMessage<PruneRequest>): PruneRequest;
|
|
59
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PruneRequest): PruneRequest;
|
|
60
|
+
internalBinaryWrite(message: PruneRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.PruneRequest
|
|
64
|
+
*/
|
|
65
|
+
export declare const PruneRequest: PruneRequest$Type;
|
|
66
|
+
declare class PruneResponse$Type extends MessageType<PruneResponse> {
|
|
67
|
+
constructor();
|
|
68
|
+
create(value?: PartialMessage<PruneResponse>): PruneResponse;
|
|
69
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PruneResponse): PruneResponse;
|
|
70
|
+
internalBinaryWrite(message: PruneResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.PruneResponse
|
|
74
|
+
*/
|
|
75
|
+
export declare const PruneResponse: PruneResponse$Type;
|
|
76
|
+
/**
|
|
77
|
+
* @generated ServiceType for protobuf service com.daml.ledger.api.v2.admin.ParticipantPruningService
|
|
78
|
+
*/
|
|
79
|
+
export declare const ParticipantPruningService: ServiceType;
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=participant_pruning_service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"participant_pruning_service.d.ts","sourceRoot":"","sources":["../../../../../../../../src/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;;;;;;;;OASG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAA;IACpB;;;;;;;;;;;;;;;;OAgBG;IACH,yBAAyB,EAAE,OAAO,CAAA;CACrC;AACD;;;;GAIG;AACH,MAAM,WAAW,aAAa;CAAG;AAEjC,cAAM,iBAAkB,SAAQ,WAAW,CAAC,YAAY,CAAC;;IAwBrD,MAAM,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,GAAG,YAAY;IAS1D,kBAAkB,CACd,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,YAAY,GACtB,YAAY;IAkCf,mBAAmB,CACf,OAAO,EAAE,YAAY,EACrB,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,kBAAkB,GAC5B,aAAa;CAqBnB;AACD;;GAEG;AACH,eAAO,MAAM,YAAY,mBAA0B,CAAA;AAEnD,cAAM,kBAAmB,SAAQ,WAAW,CAAC,aAAa,CAAC;;IAIvD,MAAM,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,GAAG,aAAa;IAM5D,kBAAkB,CACd,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,aAAa,GACvB,aAAa;IAyBhB,mBAAmB,CACf,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,kBAAkB,GAC5B,aAAa;CAUnB;AACD;;GAEG;AACH,eAAO,MAAM,aAAa,oBAA2B,CAAA;AACrD;;GAEG;AACH,eAAO,MAAM,yBAAyB,aAGrC,CAAA"}
|