@fairmint/canton-node-sdk
Version:
Canton Node SDK
1,021 lines (1,020 loc) • 66.8 kB
TypeScript
import { z } from 'zod';
/**
* Update event kind (oneOf all update event types).
*/
export declare const JsUpdateEventKindSchema: z.ZodUnion<readonly [z.ZodObject<{
JsCreated: 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>;
}, z.core.$strip>, z.ZodObject<{
JsArchived: 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>;
}, z.core.$strip>, z.ZodObject<{
JsAssigned: 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.ZodObject<{
JsUnassigned: 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>]>;
/**
* Update event details.
*/
export declare const JsUpdateEventSchema: z.ZodObject<{
kind: z.ZodUnion<readonly [z.ZodObject<{
JsCreated: 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>;
}, z.core.$strip>, z.ZodObject<{
JsArchived: 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>;
}, z.core.$strip>, z.ZodObject<{
JsAssigned: 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.ZodObject<{
JsUnassigned: 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>]>;
synchronizerId: z.ZodString;
reassignmentCounter: z.ZodNumber;
}, z.core.$strip>;
/**
* Transaction details.
*/
export declare const JsTransactionSchema: z.ZodObject<{
updateId: z.ZodString;
commandId: z.ZodOptional<z.ZodString>;
workflowId: z.ZodOptional<z.ZodString>;
effectiveAt: z.ZodString;
offset: z.ZodNumber;
events: z.ZodArray<z.ZodObject<{
kind: z.ZodUnion<readonly [z.ZodObject<{
JsCreated: 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>;
}, z.core.$strip>, z.ZodObject<{
JsArchived: 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>;
}, z.core.$strip>, z.ZodObject<{
JsAssigned: 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.ZodObject<{
JsUnassigned: 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>]>;
synchronizerId: z.ZodString;
reassignmentCounter: z.ZodNumber;
}, z.core.$strip>>;
traceContext: z.ZodOptional<z.ZodObject<{
traceId: z.ZodOptional<z.ZodString>;
spanId: z.ZodOptional<z.ZodString>;
parentSpanId: z.ZodOptional<z.ZodString>;
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, z.core.$strip>>;
recordTime: z.ZodString;
}, z.core.$strip>;
/**
* Transaction tree details.
*/
export declare const JsTransactionTreeSchema: z.ZodObject<{
updateId: z.ZodString;
commandId: z.ZodOptional<z.ZodString>;
workflowId: z.ZodOptional<z.ZodString>;
effectiveAt: z.ZodString;
offset: z.ZodNumber;
eventsById: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
CreatedTreeEvent: z.ZodObject<{
value: 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.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ExercisedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
interfaceId: z.ZodNullable<z.ZodString>;
choice: z.ZodString;
choiceArgument: 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>]>>;
actingParties: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
exerciseResult: 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>]>>;
packageName: z.ZodString;
consuming: z.ZodBoolean;
lastDescendantNodeId: z.ZodOptional<z.ZodNumber>;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ArchivedTreeEvent: z.ZodObject<{
value: 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.$strict>;
}, z.core.$strict>;
}, z.core.$strict>]>>;
recordTime: z.ZodString;
}, z.core.$strip>;
/**
* Update (oneOf transaction or transaction tree).
*/
export declare const JsUpdateSchema: z.ZodUnion<readonly [z.ZodObject<{
JsTransaction: z.ZodObject<{
updateId: z.ZodString;
commandId: z.ZodOptional<z.ZodString>;
workflowId: z.ZodOptional<z.ZodString>;
effectiveAt: z.ZodString;
offset: z.ZodNumber;
events: z.ZodArray<z.ZodObject<{
kind: z.ZodUnion<readonly [z.ZodObject<{
JsCreated: 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>;
}, z.core.$strip>, z.ZodObject<{
JsArchived: 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>;
}, z.core.$strip>, z.ZodObject<{
JsAssigned: 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.ZodObject<{
JsUnassigned: 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>]>;
synchronizerId: z.ZodString;
reassignmentCounter: z.ZodNumber;
}, z.core.$strip>>;
traceContext: z.ZodOptional<z.ZodObject<{
traceId: z.ZodOptional<z.ZodString>;
spanId: z.ZodOptional<z.ZodString>;
parentSpanId: z.ZodOptional<z.ZodString>;
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, z.core.$strip>>;
recordTime: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
JsTransactionTree: z.ZodObject<{
updateId: z.ZodString;
commandId: z.ZodOptional<z.ZodString>;
workflowId: z.ZodOptional<z.ZodString>;
effectiveAt: z.ZodString;
offset: z.ZodNumber;
eventsById: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
CreatedTreeEvent: z.ZodObject<{
value: 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.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ExercisedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
interfaceId: z.ZodNullable<z.ZodString>;
choice: z.ZodString;
choiceArgument: 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>]>>;
actingParties: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
exerciseResult: 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>]>>;
packageName: z.ZodString;
consuming: z.ZodBoolean;
lastDescendantNodeId: z.ZodOptional<z.ZodNumber>;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ArchivedTreeEvent: z.ZodObject<{
value: 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.$strict>;
}, z.core.$strict>;
}, z.core.$strict>]>>;
recordTime: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>]>;
/**
* Update stream request.
*/
export declare const UpdateStreamRequestSchema: z.ZodObject<{
userId: z.ZodOptional<z.ZodString>;
parties: z.ZodArray<z.ZodString>;
beginExclusive: z.ZodOptional<z.ZodNumber>;
eventFormat: z.ZodOptional<z.ZodObject<{
verbose: z.ZodBoolean;
filtersByParty: z.ZodRecord<z.ZodString, z.ZodObject<{
cumulative: z.ZodArray<z.ZodString>;
}, z.core.$strict>>;
includeCreatedEventBlob: z.ZodOptional<z.ZodBoolean>;
includeInterfaceViews: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strict>>;
}, z.core.$strip>;
/**
* Update stream response.
*/
export declare const UpdateStreamResponseSchema: z.ZodObject<{
update: z.ZodUnion<readonly [z.ZodObject<{
JsTransaction: z.ZodObject<{
updateId: z.ZodString;
commandId: z.ZodOptional<z.ZodString>;
workflowId: z.ZodOptional<z.ZodString>;
effectiveAt: z.ZodString;
offset: z.ZodNumber;
events: z.ZodArray<z.ZodObject<{
kind: z.ZodUnion<readonly [z.ZodObject<{
JsCreated: 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>;
}, z.core.$strip>, z.ZodObject<{
JsArchived: 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>;
}, z.core.$strip>, z.ZodObject<{
JsAssigned: 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.ZodObject<{
JsUnassigned: 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>]>;
synchronizerId: z.ZodString;
reassignmentCounter: z.ZodNumber;
}, z.core.$strip>>;
traceContext: z.ZodOptional<z.ZodObject<{
traceId: z.ZodOptional<z.ZodString>;
spanId: z.ZodOptional<z.ZodString>;
parentSpanId: z.ZodOptional<z.ZodString>;
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, z.core.$strip>>;
recordTime: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
JsTransactionTree: z.ZodObject<{
updateId: z.ZodString;
commandId: z.ZodOptional<z.ZodString>;
workflowId: z.ZodOptional<z.ZodString>;
effectiveAt: z.ZodString;
offset: z.ZodNumber;
eventsById: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
CreatedTreeEvent: z.ZodObject<{
value: 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.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ExercisedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
interfaceId: z.ZodNullable<z.ZodString>;
choice: z.ZodString;
choiceArgument: 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>]>>;
actingParties: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
exerciseResult: 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>]>>;
packageName: z.ZodString;
consuming: z.ZodBoolean;
lastDescendantNodeId: z.ZodOptional<z.ZodNumber>;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ArchivedTreeEvent: z.ZodObject<{
value: 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.$strict>;
}, z.core.$strict>;
}, z.core.$strict>]>>;
recordTime: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>]>;
}, z.core.$strip>;
/**
* Submit and wait for transaction request.
*/
export declare const JsSubmitAndWaitForTransactionRequestSchema: z.ZodObject<{
commands: z.ZodObject<{
workflowId: z.ZodOptional<z.ZodString>;
userId: z.ZodString;
commandId: z.ZodString;
submitter: z.ZodString;
submissionId: z.ZodOptional<z.ZodString>;
commands: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
CreateCommand: z.ZodObject<{
templateId: z.ZodString;
createArguments: 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>]>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ExerciseCommand: z.ZodObject<{
templateId: z.ZodString;
contractId: z.ZodString;
choice: z.ZodString;
choiceArgument: 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>]>>;
}, z.core.$strict>;
}, z.core.$strict>]>>;
deduplicationPeriod: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
DeduplicationDuration: z.ZodObject<{
seconds: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
DeduplicationOffset: z.ZodObject<{
offset: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
Empty: z.ZodObject<{}, z.core.$strip>;
}, z.core.$strip>]>>;
minLedgerTimeRel: z.ZodOptional<z.ZodObject<{
seconds: z.ZodNumber;
}, z.core.$strip>>;
disclosedContracts: z.ZodOptional<z.ZodArray<z.ZodObject<{
templateId: z.ZodOptional<z.ZodString>;
contractId: z.ZodString;
createdEventBlob: z.ZodString;
synchronizerId: z.ZodString;
}, z.core.$strict>>>;
prefetchContractKeys: z.ZodOptional<z.ZodArray<z.ZodObject<{
templateId: z.ZodString;
contractKey: z.ZodRecord<z.ZodString, z.ZodAny>;
}, z.core.$strip>>>;
}, z.core.$strip>;
eventFormat: z.ZodOptional<z.ZodObject<{
verbose: z.ZodBoolean;
filtersByParty: z.ZodRecord<z.ZodString, z.ZodObject<{
cumulative: z.ZodArray<z.ZodString>;
}, z.core.$strict>>;
includeCreatedEventBlob: z.ZodOptional<z.ZodBoolean>;
includeInterfaceViews: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strict>>;
}, z.core.$strip>;
/**
* Submit and wait for transaction response.
*/
export declare const JsSubmitAndWaitForTransactionResponseSchema: z.ZodObject<{
transaction: z.ZodObject<{
updateId: z.ZodString;
commandId: z.ZodOptional<z.ZodString>;
workflowId: z.ZodOptional<z.ZodString>;
effectiveAt: z.ZodString;
offset: z.ZodNumber;
events: z.ZodArray<z.ZodObject<{
kind: z.ZodUnion<readonly [z.ZodObject<{
JsCreated: 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>;
}, z.core.$strip>, z.ZodObject<{
JsArchived: 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>;
}, z.core.$strip>, z.ZodObject<{
JsAssigned: 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.ZodObject<{
JsUnassigned: 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>]>;
synchronizerId: z.ZodString;
reassignmentCounter: z.ZodNumber;
}, z.core.$strip>>;
traceContext: z.ZodOptional<z.ZodObject<{
traceId: z.ZodOptional<z.ZodString>;
spanId: z.ZodOptional<z.ZodString>;
parentSpanId: z.ZodOptional<z.ZodString>;
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, z.core.$strip>>;
recordTime: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>;
/**
* Submit and wait response.
*/
export declare const SubmitAndWaitResponseSchema: z.ZodObject<{
update: z.ZodUnion<readonly [z.ZodObject<{
JsTransaction: z.ZodObject<{
updateId: z.ZodString;
commandId: z.ZodOptional<z.ZodString>;
workflowId: z.ZodOptional<z.ZodString>;
effectiveAt: z.ZodString;
offset: z.ZodNumber;
events: z.ZodArray<z.ZodObject<{
kind: z.ZodUnion<readonly [z.ZodObject<{
JsCreated: 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>;
}, z.core.$strip>, z.ZodObject<{
JsArchived: 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>;
}, z.core.$strip>, z.ZodObject<{
JsAssigned: 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.ZodObject<{
JsUnassigned: 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>]>;
synchronizerId: z.ZodString;
reassignmentCounter: z.ZodNumber;
}, z.core.$strip>>;
traceContext: z.ZodOptional<z.ZodObject<{
traceId: z.ZodOptional<z.ZodString>;
spanId: z.ZodOptional<z.ZodString>;
parentSpanId: z.ZodOptional<z.ZodString>;
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, z.core.$strip>>;
recordTime: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
JsTransactionTree: z.ZodObject<{
updateId: z.ZodString;
commandId: z.ZodOptional<z.ZodString>;
workflowId: z.ZodOptional<z.ZodString>;
effectiveAt: z.ZodString;
offset: z.ZodNumber;
eventsById: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
CreatedTreeEvent: z.ZodObject<{
value: 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.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ExercisedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
interfaceId: z.ZodNullable<z.ZodString>;
choice: z.ZodString;
choiceArgument: 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>]>>;
actingParties: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
exerciseResult: 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>]>>;
packageName: z.ZodString;
consuming: z.ZodBoolean;
lastDescendantNodeId: z.ZodOptional<z.ZodNumber>;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ArchivedTreeEvent: z.ZodObject<{
value: 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.$strict>;
}, z.core.$strict>;
}, z.core.$strict>]>>;
recordTime: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>]>;
}, z.core.$strip>;
/**
* Get updates response (array of updates).
*/
export declare const GetUpdatesResponseSchema: z.ZodArray<z.ZodObject<{
update: z.ZodUnion<readonly [z.ZodObject<{
JsTransaction: z.ZodObject<{
updateId: z.ZodString;
commandId: z.ZodOptional<z.ZodString>;
workflowId: z.ZodOptional<z.ZodString>;
effectiveAt: z.ZodString;
offset: z.ZodNumber;
events: z.ZodArray<z.ZodObject<{
kind: z.ZodUnion<readonly [z.ZodObject<{
JsCreated: 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>;
}, z.core.$strip>, z.ZodObject<{
JsArchived: 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>;
}, z.core.$strip>, z.ZodObject<{
JsAssigned: 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.ZodObject<{
JsUnassigned: 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>]>;
synchronizerId: z.ZodString;
reassignmentCounter: z.ZodNumber;
}, z.core.$strip>>;
traceContext: z.ZodOptional<z.ZodObject<{
traceId: z.ZodOptional<z.ZodString>;
spanId: z.ZodOptional<z.ZodString>;
parentSpanId: z.ZodOptional<z.ZodString>;
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, z.core.$strip>>;
recordTime: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
JsTransactionTree: z.ZodObject<{
updateId: z.ZodString;
commandId: z.ZodOptional<z.ZodString>;
workflowId: z.ZodOptional<z.ZodString>;
effectiveAt: z.ZodString;
offset: z.ZodNumber;
eventsById: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
CreatedTreeEvent: z.ZodObject<{
value: 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.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ExercisedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
interfaceId: z.ZodNullable<z.ZodString>;
choice: z.ZodString;
choiceArgument: 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>]>>;
actingParties: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
exerciseResult: 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>]>>;
packageName: z.ZodString;
consuming: z.ZodBoolean;
lastDescendantNodeId: z.ZodOptional<z.ZodNumber>;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ArchivedTreeEvent: z.ZodObject<{
value: 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.$strict>;
}, z.core.$strict>;
}, z.core.$strict>]>>;
recordTime: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>]>;
}, z.core.$strip>>;
/**
* Get update trees response (array of transaction trees).
*/
export declare const GetUpdateTreesResponseSchema: z.ZodArray<z.ZodObject<{
update: z.ZodObject<{
JsTransactionTree: z.ZodObject<{
updateId: z.ZodString;
commandId: z.ZodOptional<z.ZodString>;
workflowId: z.ZodOptional<z.ZodString>;
effectiveAt: z.ZodString;
offset: z.ZodNumber;
eventsById: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
CreatedTreeEvent: z.ZodObject<{
value: 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.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ExercisedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
interfaceId: z.ZodNullable<z.ZodString>;
choice: z.ZodString;
choiceArgument: 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>]>>;
actingParties: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
exerciseResult: 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>]>>;
packageName: z.ZodString;
consuming: z.ZodBoolean;
lastDescendantNodeId: z.ZodOptional<z.ZodNumber>;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ArchivedTreeEvent: z.ZodObject<{
value: 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.$strict>;