UNPKG

@fairmint/canton-node-sdk

Version:
350 lines 15.6 kB
import { z } from 'zod'; /** Reassignment command wrapper. */ export declare const ReassignmentCommandSchema: z.ZodObject<{ command: z.ZodUnion<readonly [z.ZodObject<{ AssignCommand: z.ZodObject<{ AssignCommand: z.ZodObject<{ reassignmentId: z.ZodString; source: z.ZodString; target: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ UnassignCommand: z.ZodObject<{ UnassignCommand: z.ZodObject<{ contractId: z.ZodString; source: z.ZodString; target: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ Empty: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>]>; }, z.core.$strip>; /** Reassignment commands container. */ export declare const ReassignmentCommandsSchema: 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.ZodObject<{ command: z.ZodUnion<readonly [z.ZodObject<{ AssignCommand: z.ZodObject<{ AssignCommand: z.ZodObject<{ reassignmentId: z.ZodString; source: z.ZodString; target: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ UnassignCommand: z.ZodObject<{ UnassignCommand: z.ZodObject<{ contractId: z.ZodString; source: z.ZodString; target: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ Empty: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>]>; }, z.core.$strip>>; }, z.core.$strip>; /** Submit reassignment request. */ export declare const SubmitReassignmentRequestSchema: z.ZodObject<{ reassignmentCommands: 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.ZodObject<{ command: z.ZodUnion<readonly [z.ZodObject<{ AssignCommand: z.ZodObject<{ AssignCommand: z.ZodObject<{ reassignmentId: z.ZodString; source: z.ZodString; target: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ UnassignCommand: z.ZodObject<{ UnassignCommand: z.ZodObject<{ contractId: z.ZodString; source: z.ZodString; target: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ Empty: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>]>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>; /** Submit reassignment response. */ export declare const SubmitReassignmentResponseSchema: z.ZodObject<{}, z.core.$strip>; /** Submit and wait for reassignment request. */ export declare const SubmitAndWaitForReassignmentRequestSchema: z.ZodObject<{ reassignmentCommands: 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.ZodObject<{ command: z.ZodUnion<readonly [z.ZodObject<{ AssignCommand: z.ZodObject<{ AssignCommand: z.ZodObject<{ reassignmentId: z.ZodString; source: z.ZodString; target: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ UnassignCommand: z.ZodObject<{ UnassignCommand: z.ZodObject<{ contractId: z.ZodString; source: z.ZodString; target: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ Empty: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>]>; }, z.core.$strip>>; }, z.core.$strip>; 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>; /** Assignment event details. */ export declare const JsAssignmentEventSchema: z.ZodObject<{ source: z.ZodString; target: z.ZodString; reassignmentId: z.ZodString; submitter: z.ZodString; reassignmentCounter: z.ZodNumber; 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>; }, z.core.$strip>; /** Unassigned event details. */ export declare const JsUnassignedEventSchema: z.ZodObject<{ value: 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>; /** Reassignment event (oneOf assignment or unassigned). */ export declare const JsReassignmentEventSchema: z.ZodUnion<readonly [z.ZodObject<{ JsAssignmentEvent: z.ZodObject<{ source: z.ZodString; target: z.ZodString; reassignmentId: z.ZodString; submitter: z.ZodString; reassignmentCounter: z.ZodNumber; 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>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ JsUnassignedEvent: z.ZodObject<{ value: 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>]>; /** Complete reassignment view. */ export declare const JsReassignmentSchema: z.ZodObject<{ updateId: z.ZodString; commandId: z.ZodOptional<z.ZodString>; workflowId: z.ZodOptional<z.ZodString>; offset: z.ZodNumber; events: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{ JsAssignmentEvent: z.ZodObject<{ source: z.ZodString; target: z.ZodString; reassignmentId: z.ZodString; submitter: z.ZodString; reassignmentCounter: z.ZodNumber; 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>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ JsUnassignedEvent: z.ZodObject<{ value: 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>]>>; 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>; /** Submit and wait for reassignment response. */ export declare const JsSubmitAndWaitForReassignmentResponseSchema: z.ZodObject<{ reassignment: z.ZodObject<{ updateId: z.ZodString; commandId: z.ZodOptional<z.ZodString>; workflowId: z.ZodOptional<z.ZodString>; offset: z.ZodNumber; events: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{ JsAssignmentEvent: z.ZodObject<{ source: z.ZodString; target: z.ZodString; reassignmentId: z.ZodString; submitter: z.ZodString; reassignmentCounter: z.ZodNumber; 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>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ JsUnassignedEvent: z.ZodObject<{ value: 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>]>>; 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>; export type ReassignmentCommand = z.infer<typeof ReassignmentCommandSchema>; export type ReassignmentCommands = z.infer<typeof ReassignmentCommandsSchema>; export type SubmitReassignmentRequest = z.infer<typeof SubmitReassignmentRequestSchema>; export type SubmitReassignmentResponse = z.infer<typeof SubmitReassignmentResponseSchema>; export type SubmitAndWaitForReassignmentRequest = z.infer<typeof SubmitAndWaitForReassignmentRequestSchema>; export type JsAssignmentEvent = z.infer<typeof JsAssignmentEventSchema>; export type JsUnassignedEvent = z.infer<typeof JsUnassignedEventSchema>; export type JsReassignmentEvent = z.infer<typeof JsReassignmentEventSchema>; export type JsReassignment = z.infer<typeof JsReassignmentSchema>; export type JsSubmitAndWaitForReassignmentResponse = z.infer<typeof JsSubmitAndWaitForReassignmentResponseSchema>; //# sourceMappingURL=reassignment.d.ts.map