@fairmint/canton-node-sdk
Version:
Canton Node SDK
415 lines • 18.9 kB
TypeScript
import { z } from 'zod';
/** Get active contracts request. */
export declare const GetActiveContractsRequestSchema: z.ZodObject<{
filter: z.ZodOptional<z.ZodObject<{
filtersByParty: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
cumulative: z.ZodArray<z.ZodString>;
}, z.core.$strict>>>;
verbose: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>>;
verbose: z.ZodOptional<z.ZodBoolean>;
activeAtOffset: z.ZodNumber;
eventFormat: z.ZodOptional<z.ZodObject<{
verbose: z.ZodBoolean;
filtersByParty: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
cumulative: z.ZodOptional<z.ZodArray<z.ZodObject<{
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
Empty: z.ZodObject<{}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
InterfaceFilter: z.ZodObject<{
value: z.ZodObject<{
interfaceId: z.ZodString;
includeInterfaceView: z.ZodBoolean;
includeCreatedEventBlob: z.ZodBoolean;
}, z.core.$strip>;
}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
TemplateFilter: z.ZodObject<{
value: z.ZodObject<{
templateId: z.ZodString;
includeCreatedEventBlob: z.ZodBoolean;
}, z.core.$strip>;
}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
WildcardFilter: z.ZodObject<{
value: z.ZodObject<{
includeCreatedEventBlob: z.ZodBoolean;
}, z.core.$strip>;
}, z.core.$strip>;
}, z.core.$strip>]>;
}, z.core.$strip>>>;
}, z.core.$strict>>>;
includeCreatedEventBlob: z.ZodOptional<z.ZodBoolean>;
includeInterfaceViews: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strict>>;
}, z.core.$strip>;
/** Active contract details. */
export declare const JsActiveContractSchema: z.ZodObject<{
createdEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
contractKey: z.ZodNullable<z.ZodString>;
createArgument: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
createdEventBlob: z.ZodString;
interfaceViews: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
signatories: z.ZodArray<z.ZodString>;
observers: z.ZodArray<z.ZodString>;
createdAt: z.ZodString;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>;
synchronizerId: z.ZodString;
reassignmentCounter: z.ZodNumber;
}, z.core.$strip>;
/** Archived contract details. */
export declare const JsArchivedSchema: z.ZodObject<{
archivedEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
witnessParties: z.ZodArray<z.ZodString>;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>;
synchronizerId: z.ZodString;
}, z.core.$strip>;
/** Incomplete assigned contract details. */
export declare const JsIncompleteAssignedSchema: z.ZodObject<{
assignedEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
source: z.ZodString;
target: z.ZodString;
reassignmentId: z.ZodString;
submitter: z.ZodString;
reassignmentCounter: z.ZodNumber;
packageName: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>;
/** Incomplete unassigned contract details. */
export declare const JsIncompleteUnassignedSchema: z.ZodObject<{
createdEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
contractKey: z.ZodNullable<z.ZodString>;
createArgument: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
createdEventBlob: z.ZodString;
interfaceViews: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
signatories: z.ZodArray<z.ZodString>;
observers: z.ZodArray<z.ZodString>;
createdAt: z.ZodString;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>;
unassignedEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
source: z.ZodString;
target: z.ZodString;
reassignmentId: z.ZodString;
submitter: z.ZodString;
reassignmentCounter: z.ZodNumber;
packageName: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>;
/** Empty contract entry. */
export declare const JsEmptySchema: z.ZodObject<{}, z.core.$strip>;
/** Contract entry (oneOf all contract entry types). */
export declare const JsContractEntrySchema: z.ZodUnion<readonly [z.ZodObject<{
JsActiveContract: z.ZodObject<{
createdEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
contractKey: z.ZodNullable<z.ZodString>;
createArgument: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
createdEventBlob: z.ZodString;
interfaceViews: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
signatories: z.ZodArray<z.ZodString>;
observers: z.ZodArray<z.ZodString>;
createdAt: z.ZodString;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>;
synchronizerId: z.ZodString;
reassignmentCounter: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
JsEmpty: z.ZodObject<{}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
JsIncompleteAssigned: z.ZodObject<{
assignedEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
source: z.ZodString;
target: z.ZodString;
reassignmentId: z.ZodString;
submitter: z.ZodString;
reassignmentCounter: z.ZodNumber;
packageName: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
JsIncompleteUnassigned: z.ZodObject<{
createdEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
contractKey: z.ZodNullable<z.ZodString>;
createArgument: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
createdEventBlob: z.ZodString;
interfaceViews: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
signatories: z.ZodArray<z.ZodString>;
observers: z.ZodArray<z.ZodString>;
createdAt: z.ZodString;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>;
unassignedEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
source: z.ZodString;
target: z.ZodString;
reassignmentId: z.ZodString;
submitter: z.ZodString;
reassignmentCounter: z.ZodNumber;
packageName: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>;
}, z.core.$strip>]>;
/** Get active contracts response item. */
export declare const JsGetActiveContractsResponseItemSchema: z.ZodObject<{
workflowId: z.ZodOptional<z.ZodString>;
contractEntry: z.ZodUnion<readonly [z.ZodObject<{
JsActiveContract: z.ZodObject<{
createdEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
contractKey: z.ZodNullable<z.ZodString>;
createArgument: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
createdEventBlob: z.ZodString;
interfaceViews: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
signatories: z.ZodArray<z.ZodString>;
observers: z.ZodArray<z.ZodString>;
createdAt: z.ZodString;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>;
synchronizerId: z.ZodString;
reassignmentCounter: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
JsEmpty: z.ZodObject<{}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
JsIncompleteAssigned: z.ZodObject<{
assignedEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
source: z.ZodString;
target: z.ZodString;
reassignmentId: z.ZodString;
submitter: z.ZodString;
reassignmentCounter: z.ZodNumber;
packageName: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
JsIncompleteUnassigned: z.ZodObject<{
createdEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
contractKey: z.ZodNullable<z.ZodString>;
createArgument: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
createdEventBlob: z.ZodString;
interfaceViews: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
signatories: z.ZodArray<z.ZodString>;
observers: z.ZodArray<z.ZodString>;
createdAt: z.ZodString;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>;
unassignedEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
source: z.ZodString;
target: z.ZodString;
reassignmentId: z.ZodString;
submitter: z.ZodString;
reassignmentCounter: z.ZodNumber;
packageName: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>;
}, z.core.$strip>]>;
}, z.core.$strip>;
/** Get active contracts response (array of contract entries). */
export declare const JsGetActiveContractsResponseSchema: z.ZodArray<z.ZodObject<{
workflowId: z.ZodOptional<z.ZodString>;
contractEntry: z.ZodUnion<readonly [z.ZodObject<{
JsActiveContract: z.ZodObject<{
createdEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
contractKey: z.ZodNullable<z.ZodString>;
createArgument: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
createdEventBlob: z.ZodString;
interfaceViews: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
signatories: z.ZodArray<z.ZodString>;
observers: z.ZodArray<z.ZodString>;
createdAt: z.ZodString;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>;
synchronizerId: z.ZodString;
reassignmentCounter: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
JsEmpty: z.ZodObject<{}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
JsIncompleteAssigned: z.ZodObject<{
assignedEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
source: z.ZodString;
target: z.ZodString;
reassignmentId: z.ZodString;
submitter: z.ZodString;
reassignmentCounter: z.ZodNumber;
packageName: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
JsIncompleteUnassigned: z.ZodObject<{
createdEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
contractKey: z.ZodNullable<z.ZodString>;
createArgument: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
createdEventBlob: z.ZodString;
interfaceViews: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
signatories: z.ZodArray<z.ZodString>;
observers: z.ZodArray<z.ZodString>;
createdAt: z.ZodString;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>;
unassignedEvent: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
source: z.ZodString;
target: z.ZodString;
reassignmentId: z.ZodString;
submitter: z.ZodString;
reassignmentCounter: z.ZodNumber;
packageName: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>;
}, z.core.$strip>]>;
}, z.core.$strip>>;
/** Get ledger end response. */
export declare const GetLedgerEndResponseSchema: z.ZodObject<{
offset: z.ZodNumber;
}, z.core.$strip>;
/** Get latest pruned offsets response. */
export declare const GetLatestPrunedOffsetsResponseSchema: z.ZodObject<{
participantPrunedUpToInclusive: z.ZodNumber;
allDivulgedContractsPrunedUpToInclusive: z.ZodNumber;
}, z.core.$strip>;
/** Connected synchronizer details. */
export declare const ConnectedSynchronizerSchema: z.ZodObject<{
synchronizerAlias: z.ZodString;
synchronizerId: z.ZodString;
permission: z.ZodString;
}, z.core.$strip>;
/** Get connected synchronizers response. */
export declare const GetConnectedSynchronizersResponseSchema: z.ZodObject<{
connectedSynchronizers: z.ZodArray<z.ZodObject<{
synchronizerAlias: z.ZodString;
synchronizerId: z.ZodString;
permission: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strip>;
/** Get ledger API version response. */
export declare const GetLedgerApiVersionResponseSchema: z.ZodObject<{
version: z.ZodString;
features: z.ZodOptional<z.ZodObject<{
experimental: z.ZodObject<{
staticTime: z.ZodObject<{
supported: z.ZodBoolean;
}, z.core.$strip>;
commandInspectionService: z.ZodObject<{
supported: z.ZodBoolean;
}, z.core.$strip>;
}, z.core.$strip>;
userManagement: z.ZodObject<{
supported: z.ZodBoolean;
maxRightsPerUser: z.ZodNumber;
maxUsersPageSize: z.ZodNumber;
}, z.core.$strip>;
partyManagement: z.ZodObject<{
maxPartiesPageSize: z.ZodNumber;
}, z.core.$strip>;
offsetCheckpoint: z.ZodObject<{
maxOffsetCheckpointEmissionDelay: z.ZodObject<{
seconds: z.ZodNumber;
nanos: z.ZodNumber;
unknownFields: z.ZodObject<{
fields: z.ZodRecord<z.ZodString, z.ZodAny>;
}, z.core.$strip>;
}, z.core.$strip>;
}, z.core.$strip>;
}, z.core.$strip>>;
}, z.core.$strip>;
export type GetActiveContractsRequest = z.infer<typeof GetActiveContractsRequestSchema>;
export type JsActiveContract = z.infer<typeof JsActiveContractSchema>;
export type JsArchived = z.infer<typeof JsArchivedSchema>;
export type JsIncompleteAssigned = z.infer<typeof JsIncompleteAssignedSchema>;
export type JsIncompleteUnassigned = z.infer<typeof JsIncompleteUnassignedSchema>;
export type JsEmpty = z.infer<typeof JsEmptySchema>;
export type JsContractEntry = z.infer<typeof JsContractEntrySchema>;
export type JsGetActiveContractsResponseItem = z.infer<typeof JsGetActiveContractsResponseItemSchema>;
export type JsGetActiveContractsResponse = z.infer<typeof JsGetActiveContractsResponseSchema>;
export type GetLedgerEndResponse = z.infer<typeof GetLedgerEndResponseSchema>;
export type GetLatestPrunedOffsetsResponse = z.infer<typeof GetLatestPrunedOffsetsResponseSchema>;
export type ConnectedSynchronizer = z.infer<typeof ConnectedSynchronizerSchema>;
export type GetConnectedSynchronizersResponse = z.infer<typeof GetConnectedSynchronizersResponseSchema>;
export type GetLedgerApiVersionResponse = z.infer<typeof GetLedgerApiVersionResponseSchema>;
//# sourceMappingURL=state.d.ts.map