UNPKG

@fairmint/canton-node-sdk

Version:
30 lines 1.59 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/events/events-by-contract-id"; export declare const EventsByContractIdParamsSchema: z.ZodObject<{ contractId: z.ZodString; readAs: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$strip>; export type EventsByContractIdParams = z.infer<typeof EventsByContractIdParamsSchema>; export type EventsByContractIdRequest = paths[typeof endpoint]['post']['requestBody']['content']['application/json']; export type EventsByContractIdResponse = paths[typeof endpoint]['post']['responses']['200']['content']['application/json']; /** * Retrieves events for a specific contract ID with filtering options * * @example * ```typescript * const events = await client.getEventsByContractId({ * contractId: 'contract-123', * readAs: ['party1', 'party2'] * }); * ```; */ export declare const GetEventsByContractId: new (client: import("../../../../../core").BaseClient) => import("../../../../../core").ApiOperation<{ contractId: string; readAs?: string[] | undefined; }, { created?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["JsCreated"]; archived?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["JsArchived"]; }>; export {}; //# sourceMappingURL=get-events-by-contract-id.d.ts.map