@fairmint/canton-node-sdk
Version:
Canton Node SDK
411 lines • 17.6 kB
TypeScript
import { z } from 'zod';
/** Object metadata for resources. */
export declare const ObjectMetaSchema: z.ZodObject<{
resourceVersion: z.ZodString;
annotations: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strip>;
/** User rights types. */
export declare const CanActAsSchema: z.ZodObject<{
party: z.ZodString;
}, z.core.$strip>;
export declare const CanReadAsSchema: z.ZodObject<{
party: z.ZodString;
}, z.core.$strip>;
export declare const CanReadAsAnyPartySchema: z.ZodObject<{}, z.core.$strip>;
export declare const IdentityProviderAdminSchema: z.ZodObject<{}, z.core.$strip>;
export declare const ParticipantAdminSchema: z.ZodObject<{}, z.core.$strip>;
/** User right kind (oneOf all right types). */
export declare const RightKindSchema: 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>]>;
/** User right. */
export declare const RightSchema: 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>;
/** User details. */
export declare const UserSchema: 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>>;
identityProviderId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
/** Party details. */
export declare const PartyDetailsSchema: z.ZodObject<{
party: z.ZodString;
isLocal: z.ZodBoolean;
localMetadata: z.ZodOptional<z.ZodObject<{
resourceVersion: z.ZodString;
annotations: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strip>>;
identityProviderId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
/** Create user request. */
export declare const CreateUserRequestSchema: 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>>;
identityProviderId: z.ZodOptional<z.ZodString>;
}, 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>;
/** Create user response. */
export declare const CreateUserResponseSchema: 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>>;
identityProviderId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>;
/** Update user request. */
export declare const UpdateUserRequestSchema: 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>>;
identityProviderId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
updateMask: z.ZodObject<{
paths: z.ZodArray<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>;
/** Update user response. */
export declare const UpdateUserResponseSchema: 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>>;
identityProviderId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>;
/** Get user response. */
export declare const GetUserResponseSchema: 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>>;
identityProviderId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>;
/** List users response. */
export declare const ListUsersResponseSchema: z.ZodObject<{
users: z.ZodArray<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>>;
identityProviderId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
nextPageToken: z.ZodString;
}, z.core.$strip>;
/** List user rights response. */
export declare const ListUserRightsResponseSchema: z.ZodObject<{
rights: 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>;
/** Grant user rights request. */
export declare const GrantUserRightsRequestSchema: z.ZodObject<{
userId: z.ZodString;
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>>>;
identityProviderId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
/** Grant user rights response. */
export declare const GrantUserRightsResponseSchema: z.ZodObject<{
newlyGrantedRights: 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>;
/** Revoke user rights request. */
export declare const RevokeUserRightsRequestSchema: z.ZodObject<{
userId: z.ZodString;
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>>>;
identityProviderId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
/** Revoke user rights response. */
export declare const RevokeUserRightsResponseSchema: z.ZodObject<{
newlyRevokedRights: 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>;
/** Update user identity provider request. */
export declare const UpdateUserIdentityProviderIdRequestSchema: z.ZodObject<{
userId: z.ZodString;
sourceIdentityProviderId: z.ZodString;
targetIdentityProviderId: z.ZodString;
}, z.core.$strip>;
/** Update user identity provider response. */
export declare const UpdateUserIdentityProviderIdResponseSchema: z.ZodObject<{}, z.core.$strip>;
/** Delete user response. */
export declare const DeleteUserResponseSchema: z.ZodObject<{}, z.core.$strip>;
/** Allocate party request. */
export declare const AllocatePartyRequestSchema: z.ZodObject<{
partyIdHint: z.ZodOptional<z.ZodString>;
localMetadata: z.ZodOptional<z.ZodObject<{
resourceVersion: z.ZodString;
annotations: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strip>>;
identityProviderId: z.ZodOptional<z.ZodString>;
synchronizerId: z.ZodOptional<z.ZodString>;
userId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
/** Allocate party response. */
export declare const AllocatePartyResponseSchema: z.ZodObject<{
partyDetails: z.ZodObject<{
party: z.ZodString;
isLocal: z.ZodBoolean;
localMetadata: z.ZodOptional<z.ZodObject<{
resourceVersion: z.ZodString;
annotations: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strip>>;
identityProviderId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>;
/** Update party details request. */
export declare const UpdatePartyDetailsRequestSchema: z.ZodObject<{
partyDetails: z.ZodObject<{
party: z.ZodString;
isLocal: z.ZodBoolean;
localMetadata: z.ZodOptional<z.ZodObject<{
resourceVersion: z.ZodString;
annotations: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strip>>;
identityProviderId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
updateMask: z.ZodObject<{
paths: z.ZodArray<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>;
/** Update party details response. */
export declare const UpdatePartyDetailsResponseSchema: z.ZodObject<{
partyDetails: z.ZodObject<{
party: z.ZodString;
isLocal: z.ZodBoolean;
localMetadata: z.ZodOptional<z.ZodObject<{
resourceVersion: z.ZodString;
annotations: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strip>>;
identityProviderId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>;
/** List known parties response. */
export declare const ListKnownPartiesResponseSchema: z.ZodObject<{
partyDetails: z.ZodArray<z.ZodObject<{
party: z.ZodString;
isLocal: z.ZodBoolean;
localMetadata: z.ZodOptional<z.ZodObject<{
resourceVersion: z.ZodString;
annotations: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strip>>;
identityProviderId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
nextPageToken: z.ZodString;
}, z.core.$strip>;
/** Get parties response. */
export declare const GetPartiesResponseSchema: z.ZodObject<{
partyDetails: z.ZodArray<z.ZodObject<{
party: z.ZodString;
isLocal: z.ZodBoolean;
localMetadata: z.ZodOptional<z.ZodObject<{
resourceVersion: z.ZodString;
annotations: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strip>>;
identityProviderId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
/** Get participant ID response. */
export declare const GetParticipantIdResponseSchema: z.ZodObject<{
participantId: z.ZodString;
}, z.core.$strip>;
export type ObjectMeta = z.infer<typeof ObjectMetaSchema>;
export type CanActAs = z.infer<typeof CanActAsSchema>;
export type CanReadAs = z.infer<typeof CanReadAsSchema>;
export type CanReadAsAnyParty = z.infer<typeof CanReadAsAnyPartySchema>;
export type IdentityProviderAdmin = z.infer<typeof IdentityProviderAdminSchema>;
export type ParticipantAdmin = z.infer<typeof ParticipantAdminSchema>;
export type RightKind = z.infer<typeof RightKindSchema>;
export type Right = z.infer<typeof RightSchema>;
export type User = z.infer<typeof UserSchema>;
export type PartyDetails = z.infer<typeof PartyDetailsSchema>;
export type CreateUserRequest = z.infer<typeof CreateUserRequestSchema>;
export type CreateUserResponse = z.infer<typeof CreateUserResponseSchema>;
export type UpdateUserRequest = z.infer<typeof UpdateUserRequestSchema>;
export type UpdateUserResponse = z.infer<typeof UpdateUserResponseSchema>;
export type GetUserResponse = z.infer<typeof GetUserResponseSchema>;
export type ListUsersResponse = z.infer<typeof ListUsersResponseSchema>;
export type ListUserRightsResponse = z.infer<typeof ListUserRightsResponseSchema>;
export type GrantUserRightsRequest = z.infer<typeof GrantUserRightsRequestSchema>;
export type GrantUserRightsResponse = z.infer<typeof GrantUserRightsResponseSchema>;
export type RevokeUserRightsRequest = z.infer<typeof RevokeUserRightsRequestSchema>;
export type RevokeUserRightsResponse = z.infer<typeof RevokeUserRightsResponseSchema>;
export type UpdateUserIdentityProviderIdRequest = z.infer<typeof UpdateUserIdentityProviderIdRequestSchema>;
export type UpdateUserIdentityProviderIdResponse = z.infer<typeof UpdateUserIdentityProviderIdResponseSchema>;
export type DeleteUserResponse = z.infer<typeof DeleteUserResponseSchema>;
export type AllocatePartyRequest = z.infer<typeof AllocatePartyRequestSchema>;
export type AllocatePartyResponse = z.infer<typeof AllocatePartyResponseSchema>;
export type UpdatePartyDetailsRequest = z.infer<typeof UpdatePartyDetailsRequestSchema>;
export type UpdatePartyDetailsResponse = z.infer<typeof UpdatePartyDetailsResponseSchema>;
export type ListKnownPartiesResponse = z.infer<typeof ListKnownPartiesResponseSchema>;
export type GetPartiesResponse = z.infer<typeof GetPartiesResponseSchema>;
export type GetParticipantIdResponse = z.infer<typeof GetParticipantIdResponseSchema>;
//# sourceMappingURL=users.d.ts.map