UNPKG

@fairmint/canton-node-sdk

Version:
31 lines 1.81 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/users/{user-id}/rights"; export declare const ListUserRightsParamsSchema: z.ZodObject<{ userId: z.ZodString; identityProviderId: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export type ListUserRightsParams = z.infer<typeof ListUserRightsParamsSchema>; export type ListUserRightsResponse = paths[typeof endpoint]['get']['responses']['200']['content']['application/json']; export declare const ListUserRights: { new (client: import("../../../../../core").BaseClient): { execute(params: { userId: string; identityProviderId?: string | undefined; }): Promise<{ rights?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["Right"][]; }>; client: import("../../../../../core").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[]; }; }; export {}; //# sourceMappingURL=list-user-rights.d.ts.map