UNPKG

@fairmint/canton-node-sdk

Version:
276 lines 13 kB
import { z } from 'zod'; export declare const CreatedTreeEventSchema: 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>; export declare const ExercisedTreeEventSchema: 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>; export declare const ArchivedTreeEventSchema: 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>; export declare const TreeEventSchema: 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>]>; /** Collection of filters for a party */ export declare const FiltersSchema: 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>; export declare const EventFormatSchema: 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>; export declare const EventsByContractIdRequestSchema: z.ZodObject<{ contractId: z.ZodString; eventFormat: 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.$strict>; export declare const CreatedEventSchema: 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; }, z.core.$strict>; synchronizerId: z.ZodString; }, z.core.$strict>; export declare const ArchivedEventSchema: 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.ZodArray<z.ZodString>; }, z.core.$strict>; synchronizerId: z.ZodString; }, z.core.$strict>; export declare const EventsByContractIdResponseSchema: z.ZodObject<{ created: z.ZodOptional<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; }, z.core.$strict>; synchronizerId: z.ZodString; }, z.core.$strict>>; archived: z.ZodOptional<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.ZodArray<z.ZodString>; }, z.core.$strict>; synchronizerId: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>; export type CreatedTreeEvent = z.infer<typeof CreatedTreeEventSchema>; export type ExercisedTreeEvent = z.infer<typeof ExercisedTreeEventSchema>; export type ArchivedTreeEvent = z.infer<typeof ArchivedTreeEventSchema>; export type TreeEvent = z.infer<typeof TreeEventSchema>; export type Filters = z.infer<typeof FiltersSchema>; export type EventFormat = z.infer<typeof EventFormatSchema>; export type EventsByContractIdRequest = z.infer<typeof EventsByContractIdRequestSchema>; export type CreatedEvent = z.infer<typeof CreatedEventSchema>; export type ArchivedEvent = z.infer<typeof ArchivedEventSchema>; export type { EventsByContractIdResponse } from '../../operations/v2/events/get-events-by-contract-id'; //# sourceMappingURL=events.d.ts.map