import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import Long from "long"; import type { CallContext, CallOptions } from "nice-grpc-common"; import { Instance } from "../../../object/v3alpha/object.js"; import { Details, ListDetails, SearchQuery } from "../../object/v3alpha/object.js"; import { FieldName, GetUserSchema, PatchUserSchema, SearchFilter, UserSchema } from "./user_schema.js"; export declare const protobufPackage = "zitadel.resources.userschema.v3alpha"; export interface SearchUserSchemasRequest { instance?: Instance | undefined; /** list limitations and ordering. */ query?: SearchQuery | undefined; /** The field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent. */ sortingColumn?: FieldName | undefined; /** Define the criteria to filter for. */ filters: SearchFilter[]; } export interface SearchUserSchemasResponse { /** Details provides information about the returned result including total amount found. */ details: ListDetails | undefined; /** States by which field the results are sorted. */ sortingColumn: FieldName; /** The result contains the user schemas, which matched the queries. */ result: GetUserSchema[]; } export interface GetUserSchemaRequest { /** unique identifier of the schema. */ id: string; } export interface GetUserSchemaResponse { userSchema: GetUserSchema | undefined; } export interface CreateUserSchemaRequest { instance?: Instance | undefined; userSchema: UserSchema | undefined; } export interface CreateUserSchemaResponse { /** Details provide some base information (such as the last change date) of the schema. */ details: Details | undefined; } export interface PatchUserSchemaRequest { instance?: Instance | undefined; /** unique identifier of the schema. */ id: string; userSchema: PatchUserSchema | undefined; } export interface PatchUserSchemaResponse { /** Details provide some base information (such as the last change date) of the schema. */ details: Details | undefined; } export interface DeactivateUserSchemaRequest { instance?: Instance | undefined; /** unique identifier of the schema. */ id: string; } export interface DeactivateUserSchemaResponse { /** Details provide some base information (such as the last change date) of the schema. */ details: Details | undefined; } export interface ReactivateUserSchemaRequest { instance?: Instance | undefined; /** unique identifier of the schema. */ id: string; } export interface ReactivateUserSchemaResponse { /** Details provide some base information (such as the last change date) of the schema. */ details: Details | undefined; } export interface DeleteUserSchemaRequest { instance?: Instance | undefined; /** unique identifier of the schema. */ id: string; } export interface DeleteUserSchemaResponse { /** Details provide some base information (such as the last change date) of the schema. */ details: Details | undefined; } export declare const SearchUserSchemasRequest: MessageFns; export declare const SearchUserSchemasResponse: MessageFns; export declare const GetUserSchemaRequest: MessageFns; export declare const GetUserSchemaResponse: MessageFns; export declare const CreateUserSchemaRequest: MessageFns; export declare const CreateUserSchemaResponse: MessageFns; export declare const PatchUserSchemaRequest: MessageFns; export declare const PatchUserSchemaResponse: MessageFns; export declare const DeactivateUserSchemaRequest: MessageFns; export declare const DeactivateUserSchemaResponse: MessageFns; export declare const ReactivateUserSchemaRequest: MessageFns; export declare const ReactivateUserSchemaResponse: MessageFns; export declare const DeleteUserSchemaRequest: MessageFns; export declare const DeleteUserSchemaResponse: MessageFns; export type ZITADELUserSchemasDefinition = typeof ZITADELUserSchemasDefinition; export declare const ZITADELUserSchemasDefinition: { readonly name: "ZITADELUserSchemas"; readonly fullName: "zitadel.resources.userschema.v3alpha.ZITADELUserSchemas"; readonly methods: { /** * Search user schemas * * Search all matching user schemas. By default, we will return all user schema of your instance. Make sure to include a limit and sorting for pagination. */ readonly searchUserSchemas: { readonly name: "SearchUserSchemas"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * User schema by ID * * Returns the user schema identified by the requested ID. */ readonly getUserSchema: { readonly name: "GetUserSchema"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Create a user schema * * Create the first revision of a new user schema. The schema can then be used on users to store and validate their data. */ readonly createUserSchema: { readonly name: "CreateUserSchema"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Patch a user schema * * Patch an existing user schema to a new revision. Users based on the current revision will not be affected until they are updated. */ readonly patchUserSchema: { readonly name: "PatchUserSchema"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Deactivate a user schema * * Deactivate an existing user schema and change it into a read-only state. Users based on this schema cannot be updated anymore, but are still able to authenticate. */ readonly deactivateUserSchema: { readonly name: "DeactivateUserSchema"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Reactivate a user schema * * Reactivate an previously deactivated user schema and change it into an active state again. */ readonly reactivateUserSchema: { readonly name: "ReactivateUserSchema"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Delete a user schema * * Delete an existing user schema. This operation is only allowed if there are no associated users to it. */ readonly deleteUserSchema: { readonly name: "DeleteUserSchema"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; }; }; export interface ZITADELUserSchemasServiceImplementation { /** * Search user schemas * * Search all matching user schemas. By default, we will return all user schema of your instance. Make sure to include a limit and sorting for pagination. */ searchUserSchemas(request: SearchUserSchemasRequest, context: CallContext & CallContextExt): Promise>; /** * User schema by ID * * Returns the user schema identified by the requested ID. */ getUserSchema(request: GetUserSchemaRequest, context: CallContext & CallContextExt): Promise>; /** * Create a user schema * * Create the first revision of a new user schema. The schema can then be used on users to store and validate their data. */ createUserSchema(request: CreateUserSchemaRequest, context: CallContext & CallContextExt): Promise>; /** * Patch a user schema * * Patch an existing user schema to a new revision. Users based on the current revision will not be affected until they are updated. */ patchUserSchema(request: PatchUserSchemaRequest, context: CallContext & CallContextExt): Promise>; /** * Deactivate a user schema * * Deactivate an existing user schema and change it into a read-only state. Users based on this schema cannot be updated anymore, but are still able to authenticate. */ deactivateUserSchema(request: DeactivateUserSchemaRequest, context: CallContext & CallContextExt): Promise>; /** * Reactivate a user schema * * Reactivate an previously deactivated user schema and change it into an active state again. */ reactivateUserSchema(request: ReactivateUserSchemaRequest, context: CallContext & CallContextExt): Promise>; /** * Delete a user schema * * Delete an existing user schema. This operation is only allowed if there are no associated users to it. */ deleteUserSchema(request: DeleteUserSchemaRequest, context: CallContext & CallContextExt): Promise>; } export interface ZITADELUserSchemasClient { /** * Search user schemas * * Search all matching user schemas. By default, we will return all user schema of your instance. Make sure to include a limit and sorting for pagination. */ searchUserSchemas(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * User schema by ID * * Returns the user schema identified by the requested ID. */ getUserSchema(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Create a user schema * * Create the first revision of a new user schema. The schema can then be used on users to store and validate their data. */ createUserSchema(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Patch a user schema * * Patch an existing user schema to a new revision. Users based on the current revision will not be affected until they are updated. */ patchUserSchema(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Deactivate a user schema * * Deactivate an existing user schema and change it into a read-only state. Users based on this schema cannot be updated anymore, but are still able to authenticate. */ deactivateUserSchema(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Reactivate a user schema * * Reactivate an previously deactivated user schema and change it into an active state again. */ reactivateUserSchema(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Delete a user schema * * Delete an existing user schema. This operation is only allowed if there are no associated users to it. */ deleteUserSchema(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export interface MessageFns { encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; fromJSON(object: any): T; toJSON(message: T): unknown; create(base?: DeepPartial): T; fromPartial(object: DeepPartial): T; } export {};