@fairmint/canton-node-sdk
Version:
Canton Node SDK
45 lines • 1.82 kB
TypeScript
import { z } from 'zod';
/**
* Schema for list packages parameters.
* No parameters required for listing packages.
*/
export declare const ListPackagesParamsSchema: z.ZodVoid;
/**
* Schema for upload DAR file parameters.
*/
export declare const UploadDarFileParamsSchema: z.ZodObject<{
darFile: z.ZodUnion<readonly [z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>, z.ZodString]>;
submissionId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
/**
* Schema for get package status parameters.
*/
export declare const GetPackageStatusParamsSchema: z.ZodObject<{
packageId: z.ZodString;
}, z.core.$strip>;
/**
* Schema for get preferred packages parameters.
*/
export declare const GetPreferredPackagesParamsSchema: z.ZodObject<{
packageVettingRequirements: z.ZodArray<z.ZodObject<{
parties: z.ZodArray<z.ZodString>;
packageName: z.ZodString;
}, z.core.$strip>>;
synchronizerId: z.ZodOptional<z.ZodString>;
vettingValidAt: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
/**
* Schema for get preferred package version parameters.
*/
export declare const GetPreferredPackageVersionParamsSchema: z.ZodObject<{
packageName: z.ZodString;
parties: z.ZodArray<z.ZodString>;
synchronizerId: z.ZodOptional<z.ZodString>;
vettingValidAt: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type ListPackagesParams = z.infer<typeof ListPackagesParamsSchema>;
export type UploadDarFileParams = z.infer<typeof UploadDarFileParamsSchema>;
export type GetPackageStatusParams = z.infer<typeof GetPackageStatusParamsSchema>;
export type GetPreferredPackagesParams = z.infer<typeof GetPreferredPackagesParamsSchema>;
export type GetPreferredPackageVersionParams = z.infer<typeof GetPreferredPackageVersionParamsSchema>;
//# sourceMappingURL=packages.d.ts.map