UNPKG

@fairmint/canton-node-sdk

Version:
65 lines 3.41 kB
import { z } from 'zod'; import type { paths } from '../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi'; declare const endpoint: "/v2/commands/submit-and-wait-for-transaction-tree"; export declare const SubmitAndWaitForTransactionTreeParamsSchema: z.ZodObject<{ 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>]>>; commandId: z.ZodOptional<z.ZodString>; actAs: z.ZodOptional<z.ZodArray<z.ZodString>>; userId: z.ZodOptional<z.ZodString>; readAs: z.ZodOptional<z.ZodArray<z.ZodString>>; workflowId: z.ZodOptional<z.ZodString>; deduplicationPeriod: z.ZodOptional<z.ZodAny>; minLedgerTimeAbs: z.ZodOptional<z.ZodString>; minLedgerTimeRel: z.ZodOptional<z.ZodAny>; submissionId: z.ZodOptional<z.ZodString>; disclosedContracts: z.ZodOptional<z.ZodArray<z.ZodAny>>; synchronizerId: z.ZodOptional<z.ZodString>; packageIdSelectionPreference: z.ZodOptional<z.ZodArray<z.ZodString>>; prefetchContractKeys: z.ZodOptional<z.ZodArray<z.ZodAny>>; }, z.core.$strip>; export type SubmitAndWaitForTransactionTreeParams = z.infer<typeof SubmitAndWaitForTransactionTreeParamsSchema>; export type SubmitAndWaitForTransactionTreeResponse = paths[typeof endpoint]['post']['responses']['200']['content']['application/json']; export declare const SubmitAndWaitForTransactionTree: new (client: import("../../../../../core").BaseClient) => import("../../../../../core").ApiOperation<{ commands: ({ CreateCommand: { templateId: string; createArguments: Record<string, string | number | boolean | any[] | Record<string, any> | null>; }; } | { ExerciseCommand: { templateId: string; contractId: string; choice: string; choiceArgument: Record<string, string | number | boolean | any[] | Record<string, any> | null>; }; })[]; commandId?: string | undefined; actAs?: string[] | undefined; userId?: string | undefined; readAs?: string[] | undefined; workflowId?: string | undefined; deduplicationPeriod?: any; minLedgerTimeAbs?: string | undefined; minLedgerTimeRel?: any; submissionId?: string | undefined; disclosedContracts?: any[] | undefined; synchronizerId?: string | undefined; packageIdSelectionPreference?: string[] | undefined; prefetchContractKeys?: any[] | undefined; }, { transactionTree: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["JsTransactionTree"]; }>; export {}; //# sourceMappingURL=submit-and-wait-for-transaction-tree.d.ts.map