import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import Long from "long"; import type { CallContext, CallOptions } from "nice-grpc-common"; import { PaginationRequest, PaginationResponse } from "../../filter/v2beta/filter.js"; import { PrivateLabelingSetting, Project, ProjectFieldName, ProjectGrant, ProjectGrantFieldName, ProjectGrantSearchFilter, ProjectRole, ProjectRoleFieldName, ProjectRoleSearchFilter, ProjectSearchFilter } from "./query.js"; export declare const protobufPackage = "zitadel.project.v2beta"; export interface CreateProjectRequest { /** The unique identifier of the organization the project belongs to. */ organizationId: string; /** The unique identifier of the project. */ id?: string | undefined; /** Name of the project. */ name: string; /** Enable this setting to provide role information to your application. For OpenID Connect, the roles can be requested from the UserInfo endpoint or sent in the ID or Access Token, based on your application's configuration. */ projectRoleAssertion: boolean; /** Deny authentication if the user has no authorization assigned to this project. Authorizations to the project without assigned a specific role to the user are allowed. */ authorizationRequired: boolean; /** Before a user can be authenticated, it is verified that their affiliated organization has been granted access to this project. Authentication is not permitted for users from unauthorized organizations. */ projectAccessRequired: boolean; /** Define which private labeling/branding should trigger when getting to a login of this project. */ privateLabelingSetting: PrivateLabelingSetting; } export interface CreateProjectResponse { /** The unique identifier of the newly created project. */ id: string; /** The timestamp of the project creation. */ creationDate: Date | undefined; } export interface UpdateProjectRequest { id: string; /** Name of the project. */ name?: string | undefined; /** Enable this setting to have role information included in the user info endpoint. It is also dependent on your application settings to include it in tokens and other types. */ projectRoleAssertion?: boolean | undefined; /** When enabled ZITADEL will check if a user has a role of this project assigned when login into an application of this project. */ projectRoleCheck?: boolean | undefined; /** When enabled ZITADEL will check if the organization of the user, that is trying to log in, has a grant to this project. */ hasProjectCheck?: boolean | undefined; /** Define which private labeling/branding should trigger when getting to a login of this project. */ privateLabelingSetting?: PrivateLabelingSetting | undefined; } export interface UpdateProjectResponse { /** The timestamp of the change of the project. */ changeDate: Date | undefined; } export interface DeleteProjectRequest { /** The unique identifier of the project. */ id: string; } export interface DeleteProjectResponse { /** * The timestamp of the deletion of the project. * Note that the deletion date is only guaranteed to be set if the deletion was successful during the request. * In case the deletion occurred in a previous request, the deletion date might be empty. */ deletionDate: Date | undefined; } export interface GetProjectRequest { /** The unique identifier of the project. */ id: string; } export interface GetProjectResponse { project: Project | undefined; } export interface ListProjectsRequest { /** List limitations and ordering. */ pagination?: PaginationRequest | 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?: ProjectFieldName | undefined; /** Define the criteria to query for. */ filters: ProjectSearchFilter[]; } export interface ListProjectsResponse { pagination: PaginationResponse | undefined; projects: Project[]; } export interface DeactivateProjectRequest { /** The unique identifier of the project. */ id: string; } export interface DeactivateProjectResponse { /** The timestamp of the change of the project. */ changeDate: Date | undefined; } export interface ActivateProjectRequest { /** The unique identifier of the project. */ id: string; } export interface ActivateProjectResponse { /** The timestamp of the change of the project. */ changeDate: Date | undefined; } export interface AddProjectRoleRequest { /** ID of the project. */ projectId: string; /** The key is the only relevant attribute for ZITADEL regarding the authorization checks. */ roleKey: string; /** Name displayed for the role. */ displayName: string; /** The group is only used for display purposes. That you have better handling, like giving all the roles from a group to a user. */ group?: string | undefined; } export interface AddProjectRoleResponse { /** The timestamp of the project role creation. */ creationDate: Date | undefined; } export interface UpdateProjectRoleRequest { /** ID of the project. */ projectId: string; /** The key is the only relevant attribute for ZITADEL regarding the authorization checks. */ roleKey: string; /** Name displayed for the role. */ displayName?: string | undefined; /** The group is only used for display purposes. That you have better handling, like giving all the roles from a group to a user. */ group?: string | undefined; } export interface UpdateProjectRoleResponse { /** The timestamp of the change of the project role. */ changeDate: Date | undefined; } export interface RemoveProjectRoleRequest { /** ID of the project. */ projectId: string; /** The key is the only relevant attribute for ZITADEL regarding the authorization checks. */ roleKey: string; } export interface RemoveProjectRoleResponse { /** * The timestamp of the removal of the project role. * Note that the removal date is only guaranteed to be set if the removal was successful during the request. * In case the removal occurred in a previous request, the removal date might be empty. */ removalDate: Date | undefined; } export interface ListProjectRolesRequest { /** ID of the project. */ projectId: string; /** List limitations and ordering. */ pagination?: PaginationRequest | 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?: ProjectRoleFieldName | undefined; /** Define the criteria to query for. */ filters: ProjectRoleSearchFilter[]; } export interface ListProjectRolesResponse { pagination: PaginationResponse | undefined; projectRoles: ProjectRole[]; } export interface CreateProjectGrantRequest { /** ID of the project. */ projectId: string; /** Organization the project is granted to. */ grantedOrganizationId: string; /** Keys of the role available for the project grant. */ roleKeys: string[]; } export interface CreateProjectGrantResponse { /** The timestamp of the project grant creation. */ creationDate: Date | undefined; } export interface UpdateProjectGrantRequest { /** ID of the project. */ projectId: string; /** Organization the project is granted to. */ grantedOrganizationId: string; /** Keys of the role available for the project grant. */ roleKeys: string[]; } export interface UpdateProjectGrantResponse { /** The timestamp of the change of the project grant. */ changeDate: Date | undefined; } export interface DeleteProjectGrantRequest { /** ID of the project. */ projectId: string; /** Organization the project is granted to. */ grantedOrganizationId: string; } export interface DeleteProjectGrantResponse { /** * The timestamp of the deletion of the project grant. * Note that the deletion date is only guaranteed to be set if the deletion was successful during the request. * In case the deletion occurred in a previous request, the deletion date might be empty. */ deletionDate: Date | undefined; } export interface DeactivateProjectGrantRequest { /** ID of the project. */ projectId: string; /** Organization the project is granted to. */ grantedOrganizationId: string; } export interface DeactivateProjectGrantResponse { /** The timestamp of the change of the project grant. */ changeDate: Date | undefined; } export interface ActivateProjectGrantRequest { /** ID of the project. */ projectId: string; /** Organization the project is granted to. */ grantedOrganizationId: string; } export interface ActivateProjectGrantResponse { /** The timestamp of the change of the project grant. */ changeDate: Date | undefined; } export interface ListProjectGrantsRequest { /** List limitations and ordering. */ pagination?: PaginationRequest | 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?: ProjectGrantFieldName | undefined; /** Define the criteria to query for. */ filters: ProjectGrantSearchFilter[]; } export interface ListProjectGrantsResponse { pagination: PaginationResponse | undefined; projectGrants: ProjectGrant[]; } export declare const CreateProjectRequest: MessageFns; export declare const CreateProjectResponse: MessageFns; export declare const UpdateProjectRequest: MessageFns; export declare const UpdateProjectResponse: MessageFns; export declare const DeleteProjectRequest: MessageFns; export declare const DeleteProjectResponse: MessageFns; export declare const GetProjectRequest: MessageFns; export declare const GetProjectResponse: MessageFns; export declare const ListProjectsRequest: MessageFns; export declare const ListProjectsResponse: MessageFns; export declare const DeactivateProjectRequest: MessageFns; export declare const DeactivateProjectResponse: MessageFns; export declare const ActivateProjectRequest: MessageFns; export declare const ActivateProjectResponse: MessageFns; export declare const AddProjectRoleRequest: MessageFns; export declare const AddProjectRoleResponse: MessageFns; export declare const UpdateProjectRoleRequest: MessageFns; export declare const UpdateProjectRoleResponse: MessageFns; export declare const RemoveProjectRoleRequest: MessageFns; export declare const RemoveProjectRoleResponse: MessageFns; export declare const ListProjectRolesRequest: MessageFns; export declare const ListProjectRolesResponse: MessageFns; export declare const CreateProjectGrantRequest: MessageFns; export declare const CreateProjectGrantResponse: MessageFns; export declare const UpdateProjectGrantRequest: MessageFns; export declare const UpdateProjectGrantResponse: MessageFns; export declare const DeleteProjectGrantRequest: MessageFns; export declare const DeleteProjectGrantResponse: MessageFns; export declare const DeactivateProjectGrantRequest: MessageFns; export declare const DeactivateProjectGrantResponse: MessageFns; export declare const ActivateProjectGrantRequest: MessageFns; export declare const ActivateProjectGrantResponse: MessageFns; export declare const ListProjectGrantsRequest: MessageFns; export declare const ListProjectGrantsResponse: MessageFns; /** * Service to manage projects. * * Deprecated: use project service v2 instead. This service will be removed in the next major version of ZITADEL. */ export type ProjectServiceDefinition = typeof ProjectServiceDefinition; export declare const ProjectServiceDefinition: { readonly name: "ProjectService"; readonly fullName: "zitadel.project.v2beta.ProjectService"; readonly methods: { /** * Create Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Create a new Project. * * Required permission: * - `project.create` */ readonly createProject: { readonly name: "CreateProject"; 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]; }; }; }; /** * Update Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Update an existing project. * * Required permission: * - `project.write` */ readonly updateProject: { readonly name: "UpdateProject"; 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 Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Delete an existing project. * In case the project is not found, the request will return a successful response as * the desired state is already achieved. * * Required permission: * - `project.delete` */ readonly deleteProject: { readonly name: "DeleteProject"; 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]; }; }; }; /** * Get Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Returns the project identified by the requested ID. * * Required permission: * - `project.read` */ readonly getProject: { readonly name: "GetProject"; 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]; }; }; }; /** * List Projects * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * List all matching projects. By default all projects of the instance that the caller has permission to read are returned. * Make sure to include a limit and sorting for pagination. * * Required permission: * - `project.read` */ readonly listProjects: { readonly name: "ListProjects"; 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 Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Set the state of a project to deactivated. Request returns no error if the project is already deactivated. * Applications under deactivated projects are not able to login anymore. * * Required permission: * - `project.write` */ readonly deactivateProject: { readonly name: "DeactivateProject"; 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]; }; }; }; /** * Activate Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Set the state of a project to active. Request returns no error if the project is already activated. * * Required permission: * - `project.write` */ readonly activateProject: { readonly name: "ActivateProject"; 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]; }; }; }; /** * Add Project Role * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Add a new project role to a project. The key must be unique within the project. * * Required permission: * - `project.role.write` */ readonly addProjectRole: { readonly name: "AddProjectRole"; 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]; }; }; }; /** * Update Project Role * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Change a project role. The key is not editable. If a key should change, remove the role and create a new one. * * Required permission: * - `project.role.write` */ readonly updateProjectRole: { readonly name: "UpdateProjectRole"; 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]; }; }; }; /** * Remove Project Role * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Removes the role from the project and on every resource it has a dependency. This includes project grants and user grants. * * Required permission: * - `project.role.write` */ readonly removeProjectRole: { readonly name: "RemoveProjectRole"; 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]; }; }; }; /** * List Project Roles * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Returns all roles of a project matching the search query. * * Required permission: * - `project.role.read` */ readonly listProjectRoles: { readonly name: "ListProjectRoles"; 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 Project Grant * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Grant a project to another organization. * The project grant will allow the granted organization to access the project and manage the authorizations for its users. * * Required permission: * - `project.grant.create` */ readonly createProjectGrant: { readonly name: "CreateProjectGrant"; 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]; }; }; }; /** * Update Project Grant * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Change the roles of the project that is granted to another organization. * The project grant will allow the granted organization to access the project and manage the authorizations for its users. * * Required permission: * - `project.grant.write` */ readonly updateProjectGrant: { readonly name: "UpdateProjectGrant"; 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 Project Grant * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Delete a project grant. All user grants for this project grant will also be removed. * A user will not have access to the project afterward (if permissions are checked). * In case the project grant is not found, the request will return a successful response as * the desired state is already achieved. * * Required permission: * - `project.grant.delete` */ readonly deleteProjectGrant: { readonly name: "DeleteProjectGrant"; 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 Project Grant * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Set the state of the project grant to deactivated. * Applications under deactivated projects grants are not able to login anymore. * * Required permission: * - `project.grant.write` */ readonly deactivateProjectGrant: { readonly name: "DeactivateProjectGrant"; 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]; }; }; }; /** * Activate Project Grant * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Set the state of the project grant to activated. * * Required permission: * - `project.grant.write` */ readonly activateProjectGrant: { readonly name: "ActivateProjectGrant"; 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]; }; }; }; /** * List Project Grants * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Returns a list of project grants. A project grant is when the organization grants its project to another organization. * * Required permission: * - `project.grant.read` */ readonly listProjectGrants: { readonly name: "ListProjectGrants"; 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 ProjectServiceImplementation { /** * Create Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Create a new Project. * * Required permission: * - `project.create` */ createProject(request: CreateProjectRequest, context: CallContext & CallContextExt): Promise>; /** * Update Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Update an existing project. * * Required permission: * - `project.write` */ updateProject(request: UpdateProjectRequest, context: CallContext & CallContextExt): Promise>; /** * Delete Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Delete an existing project. * In case the project is not found, the request will return a successful response as * the desired state is already achieved. * * Required permission: * - `project.delete` */ deleteProject(request: DeleteProjectRequest, context: CallContext & CallContextExt): Promise>; /** * Get Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Returns the project identified by the requested ID. * * Required permission: * - `project.read` */ getProject(request: GetProjectRequest, context: CallContext & CallContextExt): Promise>; /** * List Projects * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * List all matching projects. By default all projects of the instance that the caller has permission to read are returned. * Make sure to include a limit and sorting for pagination. * * Required permission: * - `project.read` */ listProjects(request: ListProjectsRequest, context: CallContext & CallContextExt): Promise>; /** * Deactivate Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Set the state of a project to deactivated. Request returns no error if the project is already deactivated. * Applications under deactivated projects are not able to login anymore. * * Required permission: * - `project.write` */ deactivateProject(request: DeactivateProjectRequest, context: CallContext & CallContextExt): Promise>; /** * Activate Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Set the state of a project to active. Request returns no error if the project is already activated. * * Required permission: * - `project.write` */ activateProject(request: ActivateProjectRequest, context: CallContext & CallContextExt): Promise>; /** * Add Project Role * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Add a new project role to a project. The key must be unique within the project. * * Required permission: * - `project.role.write` */ addProjectRole(request: AddProjectRoleRequest, context: CallContext & CallContextExt): Promise>; /** * Update Project Role * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Change a project role. The key is not editable. If a key should change, remove the role and create a new one. * * Required permission: * - `project.role.write` */ updateProjectRole(request: UpdateProjectRoleRequest, context: CallContext & CallContextExt): Promise>; /** * Remove Project Role * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Removes the role from the project and on every resource it has a dependency. This includes project grants and user grants. * * Required permission: * - `project.role.write` */ removeProjectRole(request: RemoveProjectRoleRequest, context: CallContext & CallContextExt): Promise>; /** * List Project Roles * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Returns all roles of a project matching the search query. * * Required permission: * - `project.role.read` */ listProjectRoles(request: ListProjectRolesRequest, context: CallContext & CallContextExt): Promise>; /** * Create Project Grant * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Grant a project to another organization. * The project grant will allow the granted organization to access the project and manage the authorizations for its users. * * Required permission: * - `project.grant.create` */ createProjectGrant(request: CreateProjectGrantRequest, context: CallContext & CallContextExt): Promise>; /** * Update Project Grant * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Change the roles of the project that is granted to another organization. * The project grant will allow the granted organization to access the project and manage the authorizations for its users. * * Required permission: * - `project.grant.write` */ updateProjectGrant(request: UpdateProjectGrantRequest, context: CallContext & CallContextExt): Promise>; /** * Delete Project Grant * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Delete a project grant. All user grants for this project grant will also be removed. * A user will not have access to the project afterward (if permissions are checked). * In case the project grant is not found, the request will return a successful response as * the desired state is already achieved. * * Required permission: * - `project.grant.delete` */ deleteProjectGrant(request: DeleteProjectGrantRequest, context: CallContext & CallContextExt): Promise>; /** * Deactivate Project Grant * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Set the state of the project grant to deactivated. * Applications under deactivated projects grants are not able to login anymore. * * Required permission: * - `project.grant.write` */ deactivateProjectGrant(request: DeactivateProjectGrantRequest, context: CallContext & CallContextExt): Promise>; /** * Activate Project Grant * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Set the state of the project grant to activated. * * Required permission: * - `project.grant.write` */ activateProjectGrant(request: ActivateProjectGrantRequest, context: CallContext & CallContextExt): Promise>; /** * List Project Grants * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Returns a list of project grants. A project grant is when the organization grants its project to another organization. * * Required permission: * - `project.grant.read` */ listProjectGrants(request: ListProjectGrantsRequest, context: CallContext & CallContextExt): Promise>; } export interface ProjectServiceClient { /** * Create Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Create a new Project. * * Required permission: * - `project.create` */ createProject(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Update Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Update an existing project. * * Required permission: * - `project.write` */ updateProject(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Delete Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Delete an existing project. * In case the project is not found, the request will return a successful response as * the desired state is already achieved. * * Required permission: * - `project.delete` */ deleteProject(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Get Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Returns the project identified by the requested ID. * * Required permission: * - `project.read` */ getProject(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * List Projects * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * List all matching projects. By default all projects of the instance that the caller has permission to read are returned. * Make sure to include a limit and sorting for pagination. * * Required permission: * - `project.read` */ listProjects(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Deactivate Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Set the state of a project to deactivated. Request returns no error if the project is already deactivated. * Applications under deactivated projects are not able to login anymore. * * Required permission: * - `project.write` */ deactivateProject(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Activate Project * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Set the state of a project to active. Request returns no error if the project is already activated. * * Required permission: * - `project.write` */ activateProject(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Add Project Role * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Add a new project role to a project. The key must be unique within the project. * * Required permission: * - `project.role.write` */ addProjectRole(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Update Project Role * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Change a project role. The key is not editable. If a key should change, remove the role and create a new one. * * Required permission: * - `project.role.write` */ updateProjectRole(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Remove Project Role * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Removes the role from the project and on every resource it has a dependency. This includes project grants and user grants. * * Required permission: * - `project.role.write` */ removeProjectRole(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * List Project Roles * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Returns all roles of a project matching the search query. * * Required permission: * - `project.role.read` */ listProjectRoles(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Create Project Grant * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Grant a project to another organization. * The project grant will allow the granted organization to access the project and manage the authorizations for its users. * * Required permission: * - `project.grant.create` */ createProjectGrant(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Update Project Grant * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Change the roles of the project that is granted to another organization. * The project grant will allow the granted organization to access the project and manage the authorizations for its users. * * Required permission: * - `project.grant.write` */ updateProjectGrant(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Delete Project Grant * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Delete a project grant. All user grants for this project grant will also be removed. * A user will not have access to the project afterward (if permissions are checked). * In case the project grant is not found, the request will return a successful response as * the desired state is already achieved. * * Required permission: * - `project.grant.delete` */ deleteProjectGrant(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Deactivate Project Grant * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Set the state of the project grant to deactivated. * Applications under deactivated projects grants are not able to login anymore. * * Required permission: * - `project.grant.write` */ deactivateProjectGrant(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Activate Project Grant * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Set the state of the project grant to activated. * * Required permission: * - `project.grant.write` */ activateProjectGrant(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * List Project Grants * * Deprecated: please move to the corresponding endpoint under project service v2. This endpoint will be removed with the next major version of ZITADEL. * * Returns a list of project grants. A project grant is when the organization grants its project to another organization. * * Required permission: * - `project.grant.read` */ listProjectGrants(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 {};