UNPKG

@fairmint/canton-node-sdk

Version:
55 lines 2.27 kB
import { BaseClient } from '../../../../../core'; import { z } from 'zod'; export declare const AllocatePartyParamsSchema: z.ZodObject<{ partyIdHint: z.ZodString; identityProviderId: z.ZodString; localMetadata: z.ZodOptional<z.ZodObject<{ resourceVersion: z.ZodOptional<z.ZodString>; annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, z.core.$strip>>; }, z.core.$strip>; export type AllocatePartyParams = z.infer<typeof AllocatePartyParamsSchema>; /** * @description Allocate a new party to the participant node * @example * ```typescript * const result = await client.allocateParty({ * partyIdHint: 'alice', * identityProviderId: 'default' * }); * console.log(`Allocated party: ${result.partyDetails.party}`); * ``` */ export declare const AllocateParty: { new (client: BaseClient): { execute(params: { partyIdHint: string; identityProviderId: string; localMetadata?: { resourceVersion?: string | undefined; annotations?: Record<string, string> | undefined; } | undefined; }): Promise<{ partyDetails: { party: string; isLocal: boolean; localMetadata?: { resourceVersion: string; annotations: Record<string, string>; } | undefined; identityProviderId?: string | undefined; }; }>; client: BaseClient; validateParams<T>(params: T, schema: z.ZodSchema<T>): T; makeGetRequest<T>(url: string, config?: import("../../../../../core").RequestConfig): Promise<T>; makePostRequest<T>(url: string, data: unknown, config?: import("../../../../../core").RequestConfig): Promise<T>; makeDeleteRequest<T>(url: string, config?: import("../../../../../core").RequestConfig): Promise<T>; makePatchRequest<T>(url: string, data: unknown, config?: import("../../../../../core").RequestConfig): Promise<T>; getManagedParties(): string[]; getPartyId(): string | undefined; getApiUrl(): string; buildPartyList(additionalParties?: string[]): string[]; }; }; //# sourceMappingURL=post.d.ts.map