UNPKG

@fairmint/canton-node-sdk

Version:
54 lines 1.87 kB
import { type z } from 'zod'; import type { paths } from '../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi'; import { GrantUserRightsParamsSchema } from '../../../schemas/operations'; type Endpoint = '/v2/users/{user-id}/rights'; export type GrantUserRightsParams = z.infer<typeof GrantUserRightsParamsSchema>; export type GrantUserRightsResponse = paths[Endpoint]['post']['responses']['200']['content']['application/json']; export declare const GrantUserRights: new (client: import("../../../../../core").BaseClient) => import("../../../../../core").ApiOperation<{ userId: string; rights?: { kind: { CanActAs: { value: { party: string; }; }; } | { CanReadAs: { value: { party: string; }; }; } | { CanReadAsAnyParty: { value: Record<string, never>; }; } | { CanExecuteAs: { value: { party: string; }; }; } | { CanExecuteAsAnyParty: { value: Record<string, never>; }; } | { Empty: { value: Record<string, never>; }; } | { IdentityProviderAdmin: { value: Record<string, never>; }; } | { ParticipantAdmin: { value: Record<string, never>; }; }; }[] | undefined; }, { newlyGrantedRights?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["Right"][]; }>; export {}; //# sourceMappingURL=grant-user-rights.d.ts.map