UNPKG

@fairmint/canton-node-sdk

Version:
174 lines 7.31 kB
import { z } from 'zod'; /** Schema for list users parameters. */ export declare const ListUsersParamsSchema: z.ZodObject<{ pageSize: z.ZodOptional<z.ZodNumber>; pageToken: z.ZodOptional<z.ZodString>; }, z.core.$strip>; /** Schema for create user parameters. */ export declare const CreateUserParamsSchema: z.ZodObject<{ user: z.ZodObject<{ id: z.ZodString; primaryParty: z.ZodOptional<z.ZodString>; isDeactivated: z.ZodBoolean; metadata: z.ZodOptional<z.ZodObject<{ resourceVersion: z.ZodString; annotations: z.ZodRecord<z.ZodString, z.ZodString>; }, z.core.$strip>>; }, z.core.$strip>; rights: z.ZodOptional<z.ZodArray<z.ZodObject<{ kind: z.ZodUnion<readonly [z.ZodObject<{ CanActAs: z.ZodObject<{ party: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ CanReadAs: z.ZodObject<{ party: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ CanReadAsAnyParty: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ Empty: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ IdentityProviderAdmin: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ ParticipantAdmin: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>]>; }, z.core.$strip>>>; }, z.core.$strip>; /** Schema for get user parameters. */ export declare const GetUserParamsSchema: z.ZodObject<{ userId: z.ZodString; }, z.core.$strip>; /** Schema for delete user parameters. */ export declare const DeleteUserParamsSchema: z.ZodObject<{ userId: z.ZodString; }, z.core.$strip>; /** Schema for update user parameters. */ export declare const UpdateUserParamsSchema: z.ZodObject<{ userId: z.ZodString; user: z.ZodObject<{ id: z.ZodString; primaryParty: z.ZodOptional<z.ZodString>; isDeactivated: z.ZodBoolean; metadata: z.ZodOptional<z.ZodObject<{ resourceVersion: z.ZodString; annotations: z.ZodRecord<z.ZodString, z.ZodString>; }, z.core.$strip>>; }, z.core.$strip>; updateMask: z.ZodObject<{ paths: z.ZodArray<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>; /** Schema for list user rights parameters. */ export declare const ListUserRightsParamsSchema: z.ZodObject<{ userId: z.ZodString; }, z.core.$strip>; /** Schema for grant user rights parameters. */ export declare const GrantUserRightsParamsSchema: z.ZodObject<{ userId: z.ZodString; rights: z.ZodOptional<z.ZodArray<z.ZodObject<{ kind: z.ZodUnion<readonly [z.ZodObject<{ CanActAs: z.ZodObject<{ value: z.ZodObject<{ party: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ CanReadAs: z.ZodObject<{ value: z.ZodObject<{ party: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ CanReadAsAnyParty: z.ZodObject<{ value: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ CanExecuteAs: z.ZodObject<{ value: z.ZodObject<{ party: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ CanExecuteAsAnyParty: z.ZodObject<{ value: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ Empty: z.ZodObject<{ value: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ IdentityProviderAdmin: z.ZodObject<{ value: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ ParticipantAdmin: z.ZodObject<{ value: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>]>; }, z.core.$strip>>>; }, z.core.$strip>; /** Schema for revoke user rights parameters. */ export declare const RevokeUserRightsParamsSchema: z.ZodObject<{ userId: z.ZodString; rights: z.ZodOptional<z.ZodArray<z.ZodObject<{ kind: z.ZodUnion<readonly [z.ZodObject<{ CanActAs: z.ZodObject<{ value: z.ZodObject<{ party: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ CanReadAs: z.ZodObject<{ value: z.ZodObject<{ party: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ CanReadAsAnyParty: z.ZodObject<{ value: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ CanExecuteAs: z.ZodObject<{ value: z.ZodObject<{ party: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ CanExecuteAsAnyParty: z.ZodObject<{ value: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ Empty: z.ZodObject<{ value: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ IdentityProviderAdmin: z.ZodObject<{ value: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ ParticipantAdmin: z.ZodObject<{ value: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>]>; }, z.core.$strip>>>; }, z.core.$strip>; /** Schema for update user identity provider parameters. */ export declare const UpdateUserIdentityProviderParamsSchema: z.ZodObject<{ userId: z.ZodString; sourceIdentityProviderId: z.ZodString; targetIdentityProviderId: z.ZodString; }, z.core.$strip>; /** Schema for get authenticated user parameters. */ export declare const GetAuthenticatedUserParamsSchema: z.ZodObject<{}, z.core.$strip>; export type ListUsersParams = z.infer<typeof ListUsersParamsSchema>; export type CreateUserParams = z.infer<typeof CreateUserParamsSchema>; export type GetUserParams = z.infer<typeof GetUserParamsSchema>; export type DeleteUserParams = z.infer<typeof DeleteUserParamsSchema>; export type UpdateUserParams = z.infer<typeof UpdateUserParamsSchema>; export type ListUserRightsParams = z.infer<typeof ListUserRightsParamsSchema>; export type GrantUserRightsParams = z.infer<typeof GrantUserRightsParamsSchema>; export type RevokeUserRightsParams = z.infer<typeof RevokeUserRightsParamsSchema>; export type UpdateUserIdentityProviderParams = z.infer<typeof UpdateUserIdentityProviderParamsSchema>; export type GetAuthenticatedUserParams = z.infer<typeof GetAuthenticatedUserParamsSchema>; //# sourceMappingURL=users.d.ts.map