@distrohelena/canton-typescript-sdk 1.0.1 → 1.0.3

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.
@@ -240,7 +240,7 @@ class GrpcContractCache {
240
240
  async writeSnapshotAsync(parties, key, activeAtOffset, contracts, creationMetadata, outcome) {
241
241
  const expiresAtEpochMs = effectiveExpiryEpochMs(this.now, this.ttlMs);
242
242
  const snapshot = {
243
- version: 2,
243
+ version: 3,
244
244
  endpointScope: this.endpointScope,
245
245
  parties,
246
246
  activeAtOffset,
@@ -314,7 +314,7 @@ class GrpcContractCache {
314
314
  : {}),
315
315
  };
316
316
  const snapshot = {
317
- version: 2,
317
+ version: 3,
318
318
  endpointScope: this.endpointScope,
319
319
  parties,
320
320
  activeAtOffset: activeAtOffset,
@@ -416,7 +416,7 @@ function asCompatibleSnapshot(value, endpointScope, parties, nowEpochMs, ignoreE
416
416
  const expiresAtEpochMs = candidate.expiresAtEpochMs;
417
417
  const contracts = materializeContractRows(candidate.contracts);
418
418
  const creationMetadata = materializeCreationMetadata(candidate.creationMetadata, contracts);
419
- if (version !== 2
419
+ if (version !== 3
420
420
  || storedEndpointScope !== endpointScope
421
421
  || (rawParties !== undefined && storedParties === undefined)
422
422
  || !sameParties(storedParties, parties)
@@ -144,16 +144,22 @@ function int64(value, name) {
144
144
  }
145
145
  function timestamp(value) {
146
146
  int64(value, "timestamp");
147
- if (BigInt(value) < -62135596800000000n || BigInt(value) > 253402300799999999n) {
147
+ const micros = BigInt(value);
148
+ if (micros < -62135596800000000n || micros > 253402300799999999n) {
148
149
  throw new validation_error_js_1.ValidationError("gRPC query timestamp is outside the Ledger API range");
149
150
  }
150
- return value;
151
+ // Daml-LF JSON encoding, as stored by PQS: sub-second part of length 0, 3, or 6.
152
+ const seconds = micros >= 0n || micros % 1000000n === 0n ? micros / 1000000n : micros / 1000000n - 1n;
153
+ const fraction = micros - seconds * 1000000n;
154
+ const base = new Date(Number(seconds) * 1000).toISOString().slice(0, 19);
155
+ const subSecond = fraction === 0n ? "" : fraction % 1000n === 0n ? `.${(fraction / 1000n).toString().padStart(3, "0")}` : `.${fraction.toString().padStart(6, "0")}`;
156
+ return `${base}${subSecond}Z`;
151
157
  }
152
158
  function date(value) {
153
159
  if (!Number.isInteger(value) || value < MIN_DATE_EPOCH_DAY || value > MAX_DATE_EPOCH_DAY) {
154
160
  throw new validation_error_js_1.ValidationError("gRPC query date is outside the Ledger API range");
155
161
  }
156
- return value;
162
+ return new Date(value * 86_400_000).toISOString().slice(0, 10);
157
163
  }
158
164
  function numeric(value) {
159
165
  if (!/^[+-]?\d{1,38}(?:\.\d{0,37})?$/.test(value)) {
@@ -311,12 +311,12 @@ class GrpcTransport {
311
311
  this.throwIfDisposed();
312
312
  let payload;
313
313
  try {
314
- payload = await this.operations.listPartyToKeyMappingAsync(request, options);
314
+ payload = await this.operations.listPartyToKeyMappingAsync((0, topology_manager_read_mapper_js_1.mapGrpcListPartyToKeyMappingRequest)(request), options);
315
315
  }
316
316
  catch (error) {
317
317
  this.throwPartyTopologyReadCompatibilityError(error, "topologyManagerReadService.listPartyToKeyMappingAsync");
318
318
  }
319
- return payload;
319
+ return (0, topology_manager_read_mapper_js_1.mapGrpcListPartyToKeyMappingResponse)(payload);
320
320
  }
321
321
  async listSynchronizerTrustCertificateAsync(request, options) {
322
322
  this.throwIfDisposed();
@@ -6,6 +6,7 @@ import { AllocatePartyRequest } from "../types/requests/allocate-party-request.j
6
6
  import { GetActiveContractsRequest } from "../types/requests/get-active-contracts-request.js";
7
7
  import { GetUserRequest } from "../types/requests/get-user-request.js";
8
8
  import { ListKnownPartiesRequest } from "../types/requests/list-known-parties-request.js";
9
+ import { ListPartyToKeyMappingRequest } from "../types/requests/list-party-to-key-mapping-request.js";
9
10
  import { ListPartyToParticipantRequest } from "../types/requests/list-party-to-participant-request.js";
10
11
  import { ListUserRightsRequest } from "../types/requests/list-user-rights-request.js";
11
12
  import { ListUsersRequest } from "../types/requests/list-users-request.js";
@@ -17,11 +18,12 @@ import type { GetHighestOffsetByTimestampRequest, GetHighestOffsetByTimestampRes
17
18
  import type { GetNoWaitCommitmentsFromRequest, GetNoWaitCommitmentsFromResponse, GetParticipantScheduleRequest as GetParticipantPruningScheduleRequest, GetParticipantScheduleResponse as GetParticipantPruningScheduleResponse, GetScheduleRequest as GetPruningScheduleRequest, GetScheduleResponse as GetPruningScheduleResponse } from "../../transports/grpc/generated/canton/com/digitalasset/canton/admin/pruning/v30/pruning.js";
18
19
  import { AllocatePartyResponse } from "../types/responses/allocate-party-response.js";
19
20
  import { GetUserResponse } from "../types/responses/get-user-response.js";
21
+ import { ListPartyToKeyMappingResponse } from "../types/responses/list-party-to-key-mapping-response.js";
20
22
  import { ListPartyToParticipantResponse } from "../types/responses/list-party-to-participant-response.js";
21
23
  import { ListUserRightsResponse } from "../types/responses/list-user-rights-response.js";
22
24
  import { ListUsersResponse } from "../types/responses/list-users-response.js";
23
25
  import type { AllocateExternalPartyRequest, AllocateExternalPartyResponse, GenerateExternalPartyTopologyRequest, GenerateExternalPartyTopologyResponse } from "../../transports/grpc/generated/canton/com/daml/ledger/api/v2/admin/party_management_service.js";
24
- import type { ListAllV2Request, ListAllV2Response, ListAllRequest, ListAllResponse, ListAvailableStoresRequest, ListAvailableStoresResponse, ListLsuAnnouncementRequest, ListLsuAnnouncementResponse, ListLsuSequencerConnectionSuccessorRequest, ListLsuSequencerConnectionSuccessorResponse, ListMediatorSynchronizerStateRequest, ListMediatorSynchronizerStateResponse, ListSequencingParametersStateRequest, ListSequencingParametersStateResponse, ListSynchronizerParametersStateRequest, ListSynchronizerParametersStateResponse, ListVettedPackagesRequest as TopologyListVettedPackagesRequest, ListVettedPackagesResponse as TopologyListVettedPackagesResponse, ListPartyHostingLimitsRequest, ListPartyHostingLimitsResponse, ListParticipantSynchronizerPermissionRequest, ListParticipantSynchronizerPermissionResponse, ListSynchronizerTrustCertificateRequest, ListSynchronizerTrustCertificateResponse, ListPartyToKeyMappingRequest, ListPartyToKeyMappingResponse, ListOwnerToKeyMappingRequest, ListOwnerToKeyMappingResponse, ListDecentralizedNamespaceDefinitionRequest, ListDecentralizedNamespaceDefinitionResponse, ListNamespaceDelegationRequest, ListNamespaceDelegationResponse, ListSequencerSynchronizerStateRequest, ListSequencerSynchronizerStateResponse } from "../../transports/grpc/generated/canton/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js";
26
+ import type { ListAllV2Request, ListAllV2Response, ListAllRequest, ListAllResponse, ListAvailableStoresRequest, ListAvailableStoresResponse, ListLsuAnnouncementRequest, ListLsuAnnouncementResponse, ListLsuSequencerConnectionSuccessorRequest, ListLsuSequencerConnectionSuccessorResponse, ListMediatorSynchronizerStateRequest, ListMediatorSynchronizerStateResponse, ListSequencingParametersStateRequest, ListSequencingParametersStateResponse, ListSynchronizerParametersStateRequest, ListSynchronizerParametersStateResponse, ListVettedPackagesRequest as TopologyListVettedPackagesRequest, ListVettedPackagesResponse as TopologyListVettedPackagesResponse, ListPartyHostingLimitsRequest, ListPartyHostingLimitsResponse, ListParticipantSynchronizerPermissionRequest, ListParticipantSynchronizerPermissionResponse, ListSynchronizerTrustCertificateRequest, ListSynchronizerTrustCertificateResponse, ListOwnerToKeyMappingRequest, ListOwnerToKeyMappingResponse, ListDecentralizedNamespaceDefinitionRequest, ListDecentralizedNamespaceDefinitionResponse, ListNamespaceDelegationRequest, ListNamespaceDelegationResponse, ListSequencerSynchronizerStateRequest, ListSequencerSynchronizerStateResponse } from "../../transports/grpc/generated/canton/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js";
25
27
  import type { GetSynchronizerIdRequest, GetSynchronizerIdResponse, ListConnectedSynchronizersRequest, ListConnectedSynchronizersResponse, ListRegisteredSynchronizersRequest, ListRegisteredSynchronizersResponse } from "../../transports/grpc/generated/canton/com/digitalasset/canton/admin/participant/v30/synchronizer_connectivity_service.js";
26
28
  import type { AddPartyAsyncRequest, AddPartyAsyncResponse, ClearPartyOnboardingFlagRequest, ClearPartyOnboardingFlagResponse } from "../../transports/grpc/generated/canton/com/digitalasset/canton/admin/participant/v30/party_management_service.js";
27
29
  import type { GetSafePruningOffsetRequest, GetSafePruningOffsetResponse } from "../../transports/grpc/generated/canton/com/digitalasset/canton/admin/participant/v30/pruning_service.js";
@@ -236,7 +236,7 @@ export class GrpcContractCache {
236
236
  async writeSnapshotAsync(parties, key, activeAtOffset, contracts, creationMetadata, outcome) {
237
237
  const expiresAtEpochMs = effectiveExpiryEpochMs(this.now, this.ttlMs);
238
238
  const snapshot = {
239
- version: 2,
239
+ version: 3,
240
240
  endpointScope: this.endpointScope,
241
241
  parties,
242
242
  activeAtOffset,
@@ -310,7 +310,7 @@ export class GrpcContractCache {
310
310
  : {}),
311
311
  };
312
312
  const snapshot = {
313
- version: 2,
313
+ version: 3,
314
314
  endpointScope: this.endpointScope,
315
315
  parties,
316
316
  activeAtOffset: activeAtOffset,
@@ -411,7 +411,7 @@ function asCompatibleSnapshot(value, endpointScope, parties, nowEpochMs, ignoreE
411
411
  const expiresAtEpochMs = candidate.expiresAtEpochMs;
412
412
  const contracts = materializeContractRows(candidate.contracts);
413
413
  const creationMetadata = materializeCreationMetadata(candidate.creationMetadata, contracts);
414
- if (version !== 2
414
+ if (version !== 3
415
415
  || storedEndpointScope !== endpointScope
416
416
  || (rawParties !== undefined && storedParties === undefined)
417
417
  || !sameParties(storedParties, parties)
@@ -135,16 +135,22 @@ function int64(value, name) {
135
135
  }
136
136
  function timestamp(value) {
137
137
  int64(value, "timestamp");
138
- if (BigInt(value) < -62135596800000000n || BigInt(value) > 253402300799999999n) {
138
+ const micros = BigInt(value);
139
+ if (micros < -62135596800000000n || micros > 253402300799999999n) {
139
140
  throw new ValidationError("gRPC query timestamp is outside the Ledger API range");
140
141
  }
141
- return value;
142
+ // Daml-LF JSON encoding, as stored by PQS: sub-second part of length 0, 3, or 6.
143
+ const seconds = micros >= 0n || micros % 1000000n === 0n ? micros / 1000000n : micros / 1000000n - 1n;
144
+ const fraction = micros - seconds * 1000000n;
145
+ const base = new Date(Number(seconds) * 1000).toISOString().slice(0, 19);
146
+ const subSecond = fraction === 0n ? "" : fraction % 1000n === 0n ? `.${(fraction / 1000n).toString().padStart(3, "0")}` : `.${fraction.toString().padStart(6, "0")}`;
147
+ return `${base}${subSecond}Z`;
142
148
  }
143
149
  function date(value) {
144
150
  if (!Number.isInteger(value) || value < MIN_DATE_EPOCH_DAY || value > MAX_DATE_EPOCH_DAY) {
145
151
  throw new ValidationError("gRPC query date is outside the Ledger API range");
146
152
  }
147
- return value;
153
+ return new Date(value * 86_400_000).toISOString().slice(0, 10);
148
154
  }
149
155
  function numeric(value) {
150
156
  if (!/^[+-]?\d{1,38}(?:\.\d{0,37})?$/.test(value)) {
@@ -1,8 +1,10 @@
1
+ import { ListPartyToKeyMappingRequest } from "../../core/types/requests/list-party-to-key-mapping-request.js";
2
+ import { ListPartyToKeyMappingResponse } from "../../core/types/responses/list-party-to-key-mapping-response.js";
1
3
  import { ITransport } from "../../core/transports/transport.interface.js";
2
4
  import { RequestOptions } from "../../core/types/request-options.js";
3
5
  import { ListPartyToParticipantRequest } from "../../core/types/requests/list-party-to-participant-request.js";
4
6
  import { ListPartyToParticipantResponse } from "../../core/types/responses/list-party-to-participant-response.js";
5
- import type { ListAllV2Request, ListAllV2Response, ListAllRequest, ListAllResponse, ListAvailableStoresRequest, ListAvailableStoresResponse, ListLsuAnnouncementRequest, ListLsuAnnouncementResponse, ListLsuSequencerConnectionSuccessorRequest, ListLsuSequencerConnectionSuccessorResponse, ListMediatorSynchronizerStateRequest, ListMediatorSynchronizerStateResponse, ListSequencingParametersStateRequest, ListSequencingParametersStateResponse, ListSynchronizerParametersStateRequest, ListSynchronizerParametersStateResponse, ListVettedPackagesRequest as TopologyListVettedPackagesRequest, ListVettedPackagesResponse as TopologyListVettedPackagesResponse, ListPartyHostingLimitsRequest, ListPartyHostingLimitsResponse, ListParticipantSynchronizerPermissionRequest, ListParticipantSynchronizerPermissionResponse, ListSynchronizerTrustCertificateRequest, ListSynchronizerTrustCertificateResponse, ListPartyToKeyMappingRequest, ListPartyToKeyMappingResponse, ListOwnerToKeyMappingRequest, ListOwnerToKeyMappingResponse, ListDecentralizedNamespaceDefinitionRequest, ListDecentralizedNamespaceDefinitionResponse, ListNamespaceDelegationRequest, ListNamespaceDelegationResponse, ListSequencerSynchronizerStateRequest, ListSequencerSynchronizerStateResponse } from "../../transports/grpc/generated/canton/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js";
7
+ import type { ListAllV2Request, ListAllV2Response, ListAllRequest, ListAllResponse, ListAvailableStoresRequest, ListAvailableStoresResponse, ListLsuAnnouncementRequest, ListLsuAnnouncementResponse, ListLsuSequencerConnectionSuccessorRequest, ListLsuSequencerConnectionSuccessorResponse, ListMediatorSynchronizerStateRequest, ListMediatorSynchronizerStateResponse, ListSequencingParametersStateRequest, ListSequencingParametersStateResponse, ListSynchronizerParametersStateRequest, ListSynchronizerParametersStateResponse, ListVettedPackagesRequest as TopologyListVettedPackagesRequest, ListVettedPackagesResponse as TopologyListVettedPackagesResponse, ListPartyHostingLimitsRequest, ListPartyHostingLimitsResponse, ListParticipantSynchronizerPermissionRequest, ListParticipantSynchronizerPermissionResponse, ListSynchronizerTrustCertificateRequest, ListSynchronizerTrustCertificateResponse, ListOwnerToKeyMappingRequest, ListOwnerToKeyMappingResponse, ListDecentralizedNamespaceDefinitionRequest, ListDecentralizedNamespaceDefinitionResponse, ListNamespaceDelegationRequest, ListNamespaceDelegationResponse, ListSequencerSynchronizerStateRequest, ListSequencerSynchronizerStateResponse } from "../../transports/grpc/generated/canton/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js";
6
8
  export declare class TopologyManagerReadServiceClient {
7
9
  private readonly transport;
8
10
  constructor(transport: ITransport);
@@ -3,6 +3,7 @@ import { AllocatePartyRequest } from "../../core/types/requests/allocate-party-r
3
3
  import { GetActiveContractsRequest } from "../../core/types/requests/get-active-contracts-request.js";
4
4
  import { GetUserRequest } from "../../core/types/requests/get-user-request.js";
5
5
  import { ListKnownPartiesRequest } from "../../core/types/requests/list-known-parties-request.js";
6
+ import { ListPartyToKeyMappingRequest } from "../../core/types/requests/list-party-to-key-mapping-request.js";
6
7
  import { ListPartyToParticipantRequest } from "../../core/types/requests/list-party-to-participant-request.js";
7
8
  import { ListUserRightsRequest } from "../../core/types/requests/list-user-rights-request.js";
8
9
  import { ListUsersRequest } from "../../core/types/requests/list-users-request.js";
@@ -13,6 +14,7 @@ import { PreparedCommandSubmission } from "../../core/types/prepared-command-sub
13
14
  import { AllocatePartyResponse as SdkAllocatePartyResponse } from "../../core/types/responses/allocate-party-response.js";
14
15
  import { GetUserResponse } from "../../core/types/responses/get-user-response.js";
15
16
  import { ListKnownPartiesResponse as SdkListKnownPartiesResponse } from "../../core/types/responses/list-known-parties-response.js";
17
+ import { ListPartyToKeyMappingResponse } from "../../core/types/responses/list-party-to-key-mapping-response.js";
16
18
  import { ListPartyToParticipantResponse } from "../../core/types/responses/list-party-to-participant-response.js";
17
19
  import { ListUserRightsResponse } from "../../core/types/responses/list-user-rights-response.js";
18
20
  import { ListUsersResponse } from "../../core/types/responses/list-users-response.js";
@@ -50,7 +52,7 @@ import type { TrafficControlStateRequest, TrafficControlStateResponse } from "./
50
52
  import { ParticipantStatusRequest, ParticipantStatusResponse as ProtobufParticipantStatusResponse } from "./generated/canton/com/digitalasset/canton/admin/participant/v30/participant_status_service.js";
51
53
  import { ListKeyOwnersRequest as ProtobufListKeyOwnersRequest, ListKeyOwnersResponse as ProtobufListKeyOwnersResponse, ListPartiesRequest as ProtobufTopologyListPartiesRequest, ListPartiesResponse as ProtobufTopologyListPartiesResponse } from "./generated/canton/com/digitalasset/canton/topology/admin/v30/topology_aggregation_service.js";
52
54
  import type { AddTransactionsRequest as ProtobufAddTransactionsRequest, AddTransactionsResponse as ProtobufAddTransactionsResponse, AuthorizeRequest as ProtobufAuthorizeRequest, AuthorizeResponse as ProtobufAuthorizeResponse, CreateTemporaryTopologyStoreRequest as ProtobufCreateTemporaryTopologyStoreRequest, CreateTemporaryTopologyStoreResponse as ProtobufCreateTemporaryTopologyStoreResponse, DropTemporaryTopologyStoreRequest as ProtobufDropTemporaryTopologyStoreRequest, DropTemporaryTopologyStoreResponse as ProtobufDropTemporaryTopologyStoreResponse, GenerateTransactionsRequest as ProtobufGenerateTransactionsRequest, GenerateTransactionsResponse as ProtobufGenerateTransactionsResponse, ImportTopologySnapshotRequest as ProtobufImportTopologySnapshotRequest, ImportTopologySnapshotResponse as ProtobufImportTopologySnapshotResponse, ImportTopologySnapshotV2Request as ProtobufImportTopologySnapshotV2Request, ImportTopologySnapshotV2Response as ProtobufImportTopologySnapshotV2Response, SignTransactionsRequest as ProtobufSignTransactionsRequest, SignTransactionsResponse as ProtobufSignTransactionsResponse } from "./generated/canton/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.js";
53
- import { ListAllRequest as ProtobufTopologyListAllRequest, ListAllResponse as ProtobufTopologyListAllResponse, ListAllV2Request as ProtobufTopologyListAllV2Request, ListAllV2Response as ProtobufTopologyListAllV2Response, ListAvailableStoresRequest as ProtobufListAvailableStoresRequest, ListAvailableStoresResponse as ProtobufListAvailableStoresResponse, ListDecentralizedNamespaceDefinitionRequest as ProtobufListDecentralizedNamespaceDefinitionRequest, ListDecentralizedNamespaceDefinitionResponse as ProtobufListDecentralizedNamespaceDefinitionResponse, ListLsuAnnouncementRequest as ProtobufListLsuAnnouncementRequest, ListLsuAnnouncementResponse as ProtobufListLsuAnnouncementResponse, ListLsuSequencerConnectionSuccessorRequest as ProtobufListLsuSequencerConnectionSuccessorRequest, ListLsuSequencerConnectionSuccessorResponse as ProtobufListLsuSequencerConnectionSuccessorResponse, ListMediatorSynchronizerStateRequest as ProtobufListMediatorSynchronizerStateRequest, ListMediatorSynchronizerStateResponse as ProtobufListMediatorSynchronizerStateResponse, ListNamespaceDelegationRequest as ProtobufListNamespaceDelegationRequest, ListNamespaceDelegationResponse as ProtobufListNamespaceDelegationResponse, ListOwnerToKeyMappingRequest as ProtobufListOwnerToKeyMappingRequest, ListOwnerToKeyMappingResponse as ProtobufListOwnerToKeyMappingResponse, ListParticipantSynchronizerPermissionRequest as ProtobufListParticipantSynchronizerPermissionRequest, ListParticipantSynchronizerPermissionResponse as ProtobufListParticipantSynchronizerPermissionResponse, ListPartyHostingLimitsRequest as ProtobufListPartyHostingLimitsRequest, ListPartyHostingLimitsResponse as ProtobufListPartyHostingLimitsResponse, ListPartyToKeyMappingRequest as ProtobufListPartyToKeyMappingRequest, ListPartyToKeyMappingResponse as ProtobufListPartyToKeyMappingResponse, ListSequencerSynchronizerStateRequest as ProtobufListSequencerSynchronizerStateRequest, ListSequencerSynchronizerStateResponse as ProtobufListSequencerSynchronizerStateResponse, ListSequencingParametersStateRequest as ProtobufListSequencingParametersStateRequest, ListSequencingParametersStateResponse as ProtobufListSequencingParametersStateResponse, ListSynchronizerParametersStateRequest as ProtobufListSynchronizerParametersStateRequest, ListSynchronizerParametersStateResponse as ProtobufListSynchronizerParametersStateResponse, ListSynchronizerTrustCertificateRequest as ProtobufListSynchronizerTrustCertificateRequest, ListSynchronizerTrustCertificateResponse as ProtobufListSynchronizerTrustCertificateResponse, ListVettedPackagesRequest as ProtobufTopologyListVettedPackagesRequest, ListVettedPackagesResponse as ProtobufTopologyListVettedPackagesResponse } from "./generated/canton/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js";
55
+ import { ListAllRequest as ProtobufTopologyListAllRequest, ListAllResponse as ProtobufTopologyListAllResponse, ListAllV2Request as ProtobufTopologyListAllV2Request, ListAllV2Response as ProtobufTopologyListAllV2Response, ListAvailableStoresRequest as ProtobufListAvailableStoresRequest, ListAvailableStoresResponse as ProtobufListAvailableStoresResponse, ListDecentralizedNamespaceDefinitionRequest as ProtobufListDecentralizedNamespaceDefinitionRequest, ListDecentralizedNamespaceDefinitionResponse as ProtobufListDecentralizedNamespaceDefinitionResponse, ListLsuAnnouncementRequest as ProtobufListLsuAnnouncementRequest, ListLsuAnnouncementResponse as ProtobufListLsuAnnouncementResponse, ListLsuSequencerConnectionSuccessorRequest as ProtobufListLsuSequencerConnectionSuccessorRequest, ListLsuSequencerConnectionSuccessorResponse as ProtobufListLsuSequencerConnectionSuccessorResponse, ListMediatorSynchronizerStateRequest as ProtobufListMediatorSynchronizerStateRequest, ListMediatorSynchronizerStateResponse as ProtobufListMediatorSynchronizerStateResponse, ListNamespaceDelegationRequest as ProtobufListNamespaceDelegationRequest, ListNamespaceDelegationResponse as ProtobufListNamespaceDelegationResponse, ListOwnerToKeyMappingRequest as ProtobufListOwnerToKeyMappingRequest, ListOwnerToKeyMappingResponse as ProtobufListOwnerToKeyMappingResponse, ListParticipantSynchronizerPermissionRequest as ProtobufListParticipantSynchronizerPermissionRequest, ListParticipantSynchronizerPermissionResponse as ProtobufListParticipantSynchronizerPermissionResponse, ListPartyHostingLimitsRequest as ProtobufListPartyHostingLimitsRequest, ListPartyHostingLimitsResponse as ProtobufListPartyHostingLimitsResponse, ListSequencerSynchronizerStateRequest as ProtobufListSequencerSynchronizerStateRequest, ListSequencerSynchronizerStateResponse as ProtobufListSequencerSynchronizerStateResponse, ListSequencingParametersStateRequest as ProtobufListSequencingParametersStateRequest, ListSequencingParametersStateResponse as ProtobufListSequencingParametersStateResponse, ListSynchronizerParametersStateRequest as ProtobufListSynchronizerParametersStateRequest, ListSynchronizerParametersStateResponse as ProtobufListSynchronizerParametersStateResponse, ListSynchronizerTrustCertificateRequest as ProtobufListSynchronizerTrustCertificateRequest, ListSynchronizerTrustCertificateResponse as ProtobufListSynchronizerTrustCertificateResponse, ListVettedPackagesRequest as ProtobufTopologyListVettedPackagesRequest, ListVettedPackagesResponse as ProtobufTopologyListVettedPackagesResponse } from "./generated/canton/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js";
54
56
  export declare class GrpcTransport implements ITransport {
55
57
  private readonly operations;
56
58
  private disposed;
@@ -115,7 +117,7 @@ export declare class GrpcTransport implements ITransport {
115
117
  listNamespaceDelegationAsync(request: ProtobufListNamespaceDelegationRequest, options?: RequestOptions): Promise<ProtobufListNamespaceDelegationResponse>;
116
118
  listDecentralizedNamespaceDefinitionAsync(request: ProtobufListDecentralizedNamespaceDefinitionRequest, options?: RequestOptions): Promise<ProtobufListDecentralizedNamespaceDefinitionResponse>;
117
119
  listOwnerToKeyMappingAsync(request: ProtobufListOwnerToKeyMappingRequest, options?: RequestOptions): Promise<ProtobufListOwnerToKeyMappingResponse>;
118
- listPartyToKeyMappingAsync(request: ProtobufListPartyToKeyMappingRequest, options?: RequestOptions): Promise<ProtobufListPartyToKeyMappingResponse>;
120
+ listPartyToKeyMappingAsync(request: ListPartyToKeyMappingRequest, options?: RequestOptions): Promise<ListPartyToKeyMappingResponse>;
119
121
  listSynchronizerTrustCertificateAsync(request: ProtobufListSynchronizerTrustCertificateRequest, options?: RequestOptions): Promise<ProtobufListSynchronizerTrustCertificateResponse>;
120
122
  listParticipantSynchronizerPermissionAsync(request: ProtobufListParticipantSynchronizerPermissionRequest, options?: RequestOptions): Promise<ProtobufListParticipantSynchronizerPermissionResponse>;
121
123
  authorizeTopologyTransactionsAsync(request: ProtobufAuthorizeRequest, options?: RequestOptions): Promise<ProtobufAuthorizeResponse>;
@@ -10,7 +10,7 @@ import { createGrpcOperations, } from "./grpc-channel-factory.js";
10
10
  import { mapGrpcSubmitCommand, mapGrpcSubmitCommandsForTransactionRequest, mapGrpcSubmitCommandTransaction, mapGrpcSubmitCommandsRequest, } from "./mappers/commands-mapper.js";
11
11
  import { mapGrpcExecuteSubmissionAndWaitRequest, mapGrpcInteractiveSubmitCommand, mapGrpcPrepareSubmissionRequest, } from "./mappers/interactive-command-mapper.js";
12
12
  import { mapGrpcCreateParty, mapGrpcCreatePartyRequest, mapGrpcListParties, mapGrpcListPartiesRequest } from "./mappers/parties-mapper.js";
13
- import { mapGrpcListPartyToParticipantRequest, mapGrpcListPartyToParticipantResponse, } from "./mappers/topology-manager-read-mapper.js";
13
+ import { mapGrpcListPartyToKeyMappingRequest, mapGrpcListPartyToKeyMappingResponse, mapGrpcListPartyToParticipantRequest, mapGrpcListPartyToParticipantResponse, } from "./mappers/topology-manager-read-mapper.js";
14
14
  import { mapGrpcGetUser, mapGrpcGetUserRequest, mapGrpcListUserRights, mapGrpcListUserRightsRequest, mapGrpcListUsers, mapGrpcListUsersRequest, } from "./mappers/users-mapper.js";
15
15
  import { ObjectDisposedError } from "../../core/errors/object-disposed-error.js";
16
16
  export class GrpcTransport {
@@ -307,12 +307,12 @@ export class GrpcTransport {
307
307
  this.throwIfDisposed();
308
308
  let payload;
309
309
  try {
310
- payload = await this.operations.listPartyToKeyMappingAsync(request, options);
310
+ payload = await this.operations.listPartyToKeyMappingAsync(mapGrpcListPartyToKeyMappingRequest(request), options);
311
311
  }
312
312
  catch (error) {
313
313
  this.throwPartyTopologyReadCompatibilityError(error, "topologyManagerReadService.listPartyToKeyMappingAsync");
314
314
  }
315
- return payload;
315
+ return mapGrpcListPartyToKeyMappingResponse(payload);
316
316
  }
317
317
  async listSynchronizerTrustCertificateAsync(request, options) {
318
318
  this.throwIfDisposed();
@@ -2,12 +2,14 @@ import { AllocatePartyRequest } from "../../core/types/requests/allocate-party-r
2
2
  import { GetActiveContractsRequest } from "../../core/types/requests/get-active-contracts-request.js";
3
3
  import { GetUserRequest } from "../../core/types/requests/get-user-request.js";
4
4
  import { ListKnownPartiesRequest } from "../../core/types/requests/list-known-parties-request.js";
5
+ import { ListPartyToKeyMappingRequest } from "../../core/types/requests/list-party-to-key-mapping-request.js";
5
6
  import { ListPartyToParticipantRequest } from "../../core/types/requests/list-party-to-participant-request.js";
6
7
  import { ListUserRightsRequest } from "../../core/types/requests/list-user-rights-request.js";
7
8
  import { ListUsersRequest } from "../../core/types/requests/list-users-request.js";
8
9
  import { SubmitCommandsRequest } from "../../core/types/requests/submit-commands-request.js";
9
10
  import { AllocatePartyResponse } from "../../core/types/responses/allocate-party-response.js";
10
11
  import { GetUserResponse } from "../../core/types/responses/get-user-response.js";
12
+ import { ListPartyToKeyMappingResponse } from "../../core/types/responses/list-party-to-key-mapping-response.js";
11
13
  import { ListPartyToParticipantResponse } from "../../core/types/responses/list-party-to-participant-response.js";
12
14
  import { ListUserRightsResponse } from "../../core/types/responses/list-user-rights-response.js";
13
15
  import { ListUsersResponse } from "../../core/types/responses/list-users-response.js";
@@ -17,7 +19,7 @@ import type { GetContractRequest, GetContractResponse } from "../grpc/generated/
17
19
  import type { AddPartyAsyncRequest, AddPartyAsyncResponse, ClearPartyOnboardingFlagRequest, ClearPartyOnboardingFlagResponse, GetHighestOffsetByTimestampRequest, GetHighestOffsetByTimestampResponse } from "../grpc/generated/canton/com/digitalasset/canton/admin/participant/v30/party_management_service.js";
18
20
  import type { GetEventsByContractIdRequest, GetEventsByContractIdResponse } from "../grpc/generated/canton/com/daml/ledger/api/v2/event_query_service.js";
19
21
  import type { CurrentTimeRequest, CurrentTimeResponse, GetIdRequest, GetIdResponse } from "../grpc/generated/canton/com/digitalasset/canton/topology/admin/v30/initialization_service.js";
20
- import type { ListAllRequest, ListAllResponse, ListLsuAnnouncementRequest, ListLsuAnnouncementResponse, ListLsuSequencerConnectionSuccessorRequest, ListLsuSequencerConnectionSuccessorResponse, ListMediatorSynchronizerStateRequest, ListMediatorSynchronizerStateResponse, ListSequencingParametersStateRequest, ListSequencingParametersStateResponse, ListSynchronizerParametersStateRequest, ListSynchronizerParametersStateResponse, ListVettedPackagesRequest as TopologyListVettedPackagesRequest, ListVettedPackagesResponse as TopologyListVettedPackagesResponse, ListPartyHostingLimitsRequest, ListPartyHostingLimitsResponse, ListParticipantSynchronizerPermissionRequest, ListParticipantSynchronizerPermissionResponse, ListSynchronizerTrustCertificateRequest, ListSynchronizerTrustCertificateResponse, ListPartyToKeyMappingRequest, ListPartyToKeyMappingResponse, ListOwnerToKeyMappingRequest, ListOwnerToKeyMappingResponse, ListDecentralizedNamespaceDefinitionRequest, ListDecentralizedNamespaceDefinitionResponse, ListNamespaceDelegationRequest, ListNamespaceDelegationResponse, ListSequencerSynchronizerStateRequest, ListSequencerSynchronizerStateResponse } from "../grpc/generated/canton/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js";
22
+ import type { ListAllRequest, ListAllResponse, ListLsuAnnouncementRequest, ListLsuAnnouncementResponse, ListLsuSequencerConnectionSuccessorRequest, ListLsuSequencerConnectionSuccessorResponse, ListMediatorSynchronizerStateRequest, ListMediatorSynchronizerStateResponse, ListSequencingParametersStateRequest, ListSequencingParametersStateResponse, ListSynchronizerParametersStateRequest, ListSynchronizerParametersStateResponse, ListVettedPackagesRequest as TopologyListVettedPackagesRequest, ListVettedPackagesResponse as TopologyListVettedPackagesResponse, ListPartyHostingLimitsRequest, ListPartyHostingLimitsResponse, ListParticipantSynchronizerPermissionRequest, ListParticipantSynchronizerPermissionResponse, ListSynchronizerTrustCertificateRequest, ListSynchronizerTrustCertificateResponse, ListOwnerToKeyMappingRequest, ListOwnerToKeyMappingResponse, ListDecentralizedNamespaceDefinitionRequest, ListDecentralizedNamespaceDefinitionResponse, ListNamespaceDelegationRequest, ListNamespaceDelegationResponse, ListSequencerSynchronizerStateRequest, ListSequencerSynchronizerStateResponse } from "../grpc/generated/canton/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js";
21
23
  import type { GetParticipantIdRequest, GetParticipantIdResponse, GetPartiesRequest, GetPartiesResponse } from "../grpc/generated/canton/com/daml/ledger/api/v2/admin/party_management_service.js";
22
24
  import type { GetResourceLimitsRequest, GetResourceLimitsResponse } from "../grpc/generated/canton/com/digitalasset/canton/admin/participant/v30/resource_management_service.js";
23
25
  import type { GetNoWaitCommitmentsFromRequest, GetNoWaitCommitmentsFromResponse, GetParticipantScheduleRequest as GetParticipantPruningScheduleRequest, GetParticipantScheduleResponse as GetParticipantPruningScheduleResponse, GetScheduleRequest as GetPruningScheduleRequest, GetScheduleResponse as GetPruningScheduleResponse } from "../grpc/generated/canton/com/digitalasset/canton/admin/pruning/v30/pruning.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@distrohelena/canton-typescript-sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",