UNPKG

@fairmint/canton-node-sdk

Version:
146 lines 5 kB
import { z } from 'zod'; /** * Trace context for distributed tracing. */ export declare const TraceContextSchema: 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>; /** * Filter for active contracts and events. */ export declare const FilterSchema: 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>; /** * Deduplication duration. */ export declare const DeduplicationDurationSchema: z.ZodObject<{ seconds: z.ZodNumber; }, z.core.$strip>; /** * Deduplication offset. */ export declare const DeduplicationOffsetSchema: z.ZodObject<{ offset: z.ZodNumber; }, z.core.$strip>; /** * Empty deduplication period. */ export declare const EmptyDeduplicationSchema: z.ZodObject<{}, z.core.$strip>; /** * Minimum ledger time relative to submission. */ export declare const MinLedgerTimeRelSchema: z.ZodObject<{ seconds: z.ZodNumber; }, z.core.$strip>; /** * Contract key for prefetching. */ export declare const PrefetchContractKeySchema: z.ZodObject<{ templateId: z.ZodString; contractKey: z.ZodRecord<z.ZodString, z.ZodAny>; }, z.core.$strip>; /** * Update mask for partial updates. */ export declare const UpdateMaskSchema: z.ZodObject<{ paths: z.ZodArray<z.ZodString>; }, z.core.$strip>; /** * Experimental features configuration. */ export declare const ExperimentalFeaturesSchema: z.ZodObject<{ staticTime: z.ZodObject<{ supported: z.ZodBoolean; }, z.core.$strip>; commandInspectionService: z.ZodObject<{ supported: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>; /** * User management features configuration. */ export declare const UserManagementFeaturesSchema: z.ZodObject<{ supported: z.ZodBoolean; maxRightsPerUser: z.ZodNumber; maxUsersPageSize: z.ZodNumber; }, z.core.$strip>; /** * Party management features configuration. */ export declare const PartyManagementFeaturesSchema: z.ZodObject<{ maxPartiesPageSize: z.ZodNumber; }, z.core.$strip>; /** * Duration with seconds and nanoseconds. */ export declare const DurationSchema: z.ZodObject<{ seconds: z.ZodNumber; nanos: z.ZodNumber; unknownFields: z.ZodObject<{ fields: z.ZodRecord<z.ZodString, z.ZodAny>; }, z.core.$strip>; }, z.core.$strip>; /** * Offset checkpoint features configuration. */ export declare const OffsetCheckpointFeaturesSchema: 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>; /** * API features supported by the endpoint. */ export declare const ApiFeaturesSchema: 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>; export type TraceContext = z.infer<typeof TraceContextSchema>; export type Filter = z.infer<typeof FilterSchema>; export type DeduplicationDuration = z.infer<typeof DeduplicationDurationSchema>; export type DeduplicationOffset = z.infer<typeof DeduplicationOffsetSchema>; export type EmptyDeduplication = z.infer<typeof EmptyDeduplicationSchema>; export type MinLedgerTimeRel = z.infer<typeof MinLedgerTimeRelSchema>; export type PrefetchContractKey = z.infer<typeof PrefetchContractKeySchema>; export type UpdateMask = z.infer<typeof UpdateMaskSchema>; export type ExperimentalFeatures = z.infer<typeof ExperimentalFeaturesSchema>; export type UserManagementFeatures = z.infer<typeof UserManagementFeaturesSchema>; export type PartyManagementFeatures = z.infer<typeof PartyManagementFeaturesSchema>; export type Duration = z.infer<typeof DurationSchema>; export type OffsetCheckpointFeatures = z.infer<typeof OffsetCheckpointFeaturesSchema>; export type ApiFeatures = z.infer<typeof ApiFeaturesSchema>; //# sourceMappingURL=common.d.ts.map