feat: import upstream ZITADEL Login V2 v4.20.4 source workspace
This commit is contained in:
1 parent
eadd0e558b
commit
4404849fc4
644 files changed
+153201
-10
No files matched your search
@@ -0,0 +1,83 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package zitadel.org.v2;
|
||||
|
||||
option go_package = "github.com/zitadel/zitadel/pkg/grpc/org/v2;org";
|
||||
|
||||
import "google/api/field_behavior.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
import "validate/validate.proto";
|
||||
import "zitadel/object/v2/object.proto";
|
||||
|
||||
|
||||
message Organization {
|
||||
// ID is the unique identifier of the organization.
|
||||
string id = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"69629023906488334\""
|
||||
}
|
||||
];
|
||||
|
||||
// Details about the organizations' creation and change date.
|
||||
zitadel.object.v2.Details details = 2;
|
||||
|
||||
// Current state of the organization, for example active, inactive or deleted.
|
||||
OrganizationState state = 3;
|
||||
|
||||
// Name of the organization.
|
||||
string name = 4 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"ZITADEL\"";
|
||||
}
|
||||
];
|
||||
|
||||
// Organization Domain used in the organization.
|
||||
string primary_domain = 5 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"zitadel.cloud\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
enum OrganizationState {
|
||||
ORGANIZATION_STATE_UNSPECIFIED = 0;
|
||||
ORGANIZATION_STATE_ACTIVE = 1;
|
||||
ORGANIZATION_STATE_INACTIVE = 2;
|
||||
ORGANIZATION_STATE_REMOVED = 3;
|
||||
}
|
||||
|
||||
enum DomainValidationType {
|
||||
DOMAIN_VALIDATION_TYPE_UNSPECIFIED = 0;
|
||||
// HTTP validation requires you to host a specific file on your domain.
|
||||
// This file is checked by us to verify that you own the domain.
|
||||
DOMAIN_VALIDATION_TYPE_HTTP = 1;
|
||||
// DNS validation requires you to create a specific TXT record in your domain's DNS settings.
|
||||
// This record is checked by us to verify that you own the domain.
|
||||
DOMAIN_VALIDATION_TYPE_DNS = 2;
|
||||
}
|
||||
|
||||
message Domain {
|
||||
// OrganizationID is the unique identifier of the organization the domain belongs to.
|
||||
string organization_id = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"69629023906488334\""
|
||||
}
|
||||
];
|
||||
|
||||
// Domain is the fully qualified domain name.
|
||||
string domain = 2 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"zitadel.com\"";
|
||||
}
|
||||
];
|
||||
|
||||
// IsVerified is a boolean flag indicating if the domain has been verified.
|
||||
bool is_verified = 3;
|
||||
|
||||
// IsPrimary is a boolean flag indicating if the domain is the Organization Domain of the organization.
|
||||
bool is_primary = 4;
|
||||
|
||||
// ValidationType indicates the protocol used to validate the domain ownership.
|
||||
DomainValidationType validation_type = 5;
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,113 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package zitadel.org.v2;
|
||||
|
||||
option go_package = "github.com/zitadel/zitadel/pkg/grpc/org/v2;org";
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/field_behavior.proto";
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
import "validate/validate.proto";
|
||||
import "zitadel/org/v2/org.proto";
|
||||
import "zitadel/object/v2/object.proto";
|
||||
|
||||
|
||||
message SearchQuery {
|
||||
oneof query {
|
||||
option (validate.required) = true;
|
||||
|
||||
// Filter organizations by their name.
|
||||
OrganizationNameQuery name_query = 1;
|
||||
|
||||
// Filter organizations by their domain.
|
||||
OrganizationDomainQuery domain_query = 2;
|
||||
|
||||
// Filter organizations by their state.
|
||||
OrganizationStateQuery state_query = 3;
|
||||
|
||||
// Filter organizations by their id.
|
||||
OrganizationIDQuery id_query = 4;
|
||||
|
||||
// Filter for the default organization.
|
||||
DefaultOrganizationQuery default_query = 5;
|
||||
}
|
||||
}
|
||||
|
||||
message OrganizationNameQuery {
|
||||
// Name of the organization.
|
||||
string name = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"gigi-giraffe\"";
|
||||
}
|
||||
];
|
||||
|
||||
// Defines which text equality method is used.
|
||||
zitadel.object.v2.TextQueryMethod method = 2 [
|
||||
(validate.rules).enum.defined_only = true
|
||||
];
|
||||
}
|
||||
|
||||
message OrganizationDomainQuery {
|
||||
// Domain used in organization, not necessary primary domain.
|
||||
string domain = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"citadel.cloud\"";
|
||||
}
|
||||
];
|
||||
|
||||
// Defines which text equality method is used.
|
||||
zitadel.object.v2.TextQueryMethod method = 2 [
|
||||
(validate.rules).enum.defined_only = true
|
||||
];
|
||||
}
|
||||
|
||||
message OrganizationStateQuery {
|
||||
// Current state of the organization.
|
||||
OrganizationState state = 1 [
|
||||
(validate.rules).enum.defined_only = true
|
||||
];
|
||||
}
|
||||
|
||||
message OrganizationIDQuery {
|
||||
// Unique identifier of the organization.
|
||||
string id = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"69629023906488334\""
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
enum OrganizationFieldName {
|
||||
ORGANIZATION_FIELD_NAME_UNSPECIFIED = 0;
|
||||
ORGANIZATION_FIELD_NAME_NAME = 1;
|
||||
ORGANIZATION_FIELD_NAME_CREATION_DATE = 2;
|
||||
}
|
||||
|
||||
message DefaultOrganizationQuery {}
|
||||
|
||||
message DomainSearchFilter {
|
||||
oneof filter {
|
||||
option (validate.required) = true;
|
||||
|
||||
// Filter Organization Domains by their domain name.
|
||||
OrganizationDomainQuery domain_filter = 1;
|
||||
}
|
||||
}
|
||||
|
||||
enum DomainFieldName {
|
||||
DOMAIN_FIELD_NAME_UNSPECIFIED = 0;
|
||||
DOMAIN_FIELD_NAME_NAME = 1;
|
||||
DOMAIN_FIELD_NAME_CREATION_DATE = 2;
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package zitadel.org.v2beta;
|
||||
|
||||
option go_package = "github.com/zitadel/zitadel/pkg/grpc/org/v2beta;org";
|
||||
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
import "validate/validate.proto";
|
||||
import "zitadel/object/v2beta/object.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
message Organization {
|
||||
// Unique identifier of the organization.
|
||||
string id = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"69629023906488334\""
|
||||
}
|
||||
];
|
||||
|
||||
// The timestamp of the organization was created.
|
||||
google.protobuf.Timestamp creation_date = 2 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"2024-12-18T07:50:47.492Z\"";
|
||||
}
|
||||
];
|
||||
|
||||
// The timestamp of the verification of the Organization Domain.
|
||||
google.protobuf.Timestamp changed_date = 3 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"2025-01-23T10:34:18.051Z\"";
|
||||
}
|
||||
];
|
||||
|
||||
// Current state of the organization, for example active, inactive and deleted.
|
||||
OrgState state = 4;
|
||||
|
||||
// Name of the organization.
|
||||
string name = 5 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"ZITADEL\"";
|
||||
}
|
||||
];
|
||||
// Organization Domain used in the organization.
|
||||
string primary_domain = 6 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"zitadel.cloud\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
enum OrgState {
|
||||
ORG_STATE_UNSPECIFIED = 0;
|
||||
ORG_STATE_ACTIVE = 1;
|
||||
ORG_STATE_INACTIVE = 2;
|
||||
ORG_STATE_REMOVED = 3;
|
||||
}
|
||||
|
||||
enum OrgFieldName {
|
||||
ORG_FIELD_NAME_UNSPECIFIED = 0;
|
||||
ORG_FIELD_NAME_NAME = 1;
|
||||
ORG_FIELD_NAME_CREATION_DATE = 2;
|
||||
}
|
||||
|
||||
message OrganizationSearchFilter{
|
||||
oneof filter {
|
||||
option (validate.required) = true;
|
||||
|
||||
OrgNameFilter name_filter = 1;
|
||||
OrgDomainFilter domain_filter = 2;
|
||||
OrgStateFilter state_filter = 3;
|
||||
OrgIDFilter id_filter = 4;
|
||||
}
|
||||
}
|
||||
message OrgNameFilter {
|
||||
// Organization name.
|
||||
string name = 1 [
|
||||
(validate.rules).string = {max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"ZITADEL\"";
|
||||
}
|
||||
];
|
||||
// Defines which text equality method is used.
|
||||
zitadel.object.v2beta.TextQueryMethod method = 2 [
|
||||
(validate.rules).enum.defined_only = true
|
||||
];
|
||||
}
|
||||
|
||||
message OrgDomainFilter {
|
||||
// The domain.
|
||||
string domain = 1 [
|
||||
(validate.rules).string = {max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"zitadel.cloud\"";
|
||||
}
|
||||
];
|
||||
// Defines which text equality method is used.
|
||||
zitadel.object.v2beta.TextQueryMethod method = 2 [
|
||||
(validate.rules).enum.defined_only = true
|
||||
];
|
||||
}
|
||||
|
||||
message OrgStateFilter {
|
||||
// Current state of the organization.
|
||||
OrgState state = 1 [
|
||||
(validate.rules).enum.defined_only = true
|
||||
];
|
||||
}
|
||||
|
||||
message OrgIDFilter {
|
||||
// The Organization id.
|
||||
string id = 1 [
|
||||
(validate.rules).string = {max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"69629023906488334\""
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
// from proto/zitadel/org.proto
|
||||
message DomainSearchFilter {
|
||||
oneof filter {
|
||||
option (validate.required) = true;
|
||||
DomainNameFilter domain_name_filter = 1;
|
||||
}
|
||||
}
|
||||
|
||||
// from proto/zitadel/org.proto
|
||||
message DomainNameFilter {
|
||||
// The domain.
|
||||
string name = 1 [
|
||||
(validate.rules).string = {max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"zitadel.cloud\"";
|
||||
}
|
||||
];
|
||||
// Defines which text equality method is used.
|
||||
zitadel.object.v2beta.TextQueryMethod method = 2 [
|
||||
(validate.rules).enum.defined_only = true
|
||||
];
|
||||
}
|
||||
|
||||
// from proto/zitadel/org.proto
|
||||
message Domain {
|
||||
// The Organization id.
|
||||
string organization_id = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"69629023906488334\""
|
||||
}
|
||||
];
|
||||
// The domain name.
|
||||
string domain_name = 2 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"zitadel.com\"";
|
||||
}
|
||||
];
|
||||
// Defines if the domain is verified.
|
||||
bool is_verified = 3;
|
||||
// Defines if the domain is the Organization Domain.
|
||||
bool is_primary = 4;
|
||||
// Defines the protocol the domain was validated with.
|
||||
DomainValidationType validation_type = 5;
|
||||
}
|
||||
|
||||
// from proto/zitadel/org.proto
|
||||
enum DomainValidationType {
|
||||
DOMAIN_VALIDATION_TYPE_UNSPECIFIED = 0;
|
||||
DOMAIN_VALIDATION_TYPE_HTTP = 1;
|
||||
DOMAIN_VALIDATION_TYPE_DNS = 2;
|
||||
}
|
||||
@@ -0,0 +1,989 @@
|
||||
syntax = "proto3";
|
||||
|
||||
|
||||
package zitadel.org.v2beta;
|
||||
|
||||
import "zitadel/object/v2beta/object.proto";
|
||||
import "zitadel/protoc_gen_zitadel/v2/options.proto";
|
||||
import "zitadel/user/v2beta/auth.proto";
|
||||
import "zitadel/org/v2beta/org.proto";
|
||||
import "zitadel/metadata/v2beta/metadata.proto";
|
||||
import "zitadel/user/v2beta/user_service.proto";
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/field_behavior.proto";
|
||||
import "google/protobuf/struct.proto";
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
import "validate/validate.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "zitadel/filter/v2beta/filter.proto";
|
||||
|
||||
option go_package = "github.com/zitadel/zitadel/pkg/grpc/org/v2beta;org";
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
|
||||
info: {
|
||||
title: "Organization Service (Beta)";
|
||||
version: "2.0-beta";
|
||||
description: "This API is intended to manage organizations in a Zitadel instance. This project is in beta state. It can AND will continue breaking until the services provide the same functionality as the current login.";
|
||||
contact:{
|
||||
name: "ZITADEL"
|
||||
url: "https://zitadel.com"
|
||||
email: "hi@zitadel.com"
|
||||
}
|
||||
license: {
|
||||
name: "Apache 2.0",
|
||||
url: "https://github.com/zitadel/zitadel/blob/main/LICENSING.md";
|
||||
};
|
||||
};
|
||||
schemes: HTTPS;
|
||||
schemes: HTTP;
|
||||
|
||||
consumes: "application/json";
|
||||
consumes: "application/grpc";
|
||||
|
||||
produces: "application/json";
|
||||
produces: "application/grpc";
|
||||
|
||||
consumes: "application/grpc-web+proto";
|
||||
produces: "application/grpc-web+proto";
|
||||
|
||||
host: "$CUSTOM_DOMAIN";
|
||||
base_path: "/";
|
||||
|
||||
external_docs: {
|
||||
description: "Detailed information about ZITADEL",
|
||||
url: "https://zitadel.com/docs"
|
||||
}
|
||||
security_definitions: {
|
||||
security: {
|
||||
key: "OAuth2";
|
||||
value: {
|
||||
type: TYPE_OAUTH2;
|
||||
flow: FLOW_ACCESS_CODE;
|
||||
authorization_url: "$CUSTOM_DOMAIN/oauth/v2/authorize";
|
||||
token_url: "$CUSTOM_DOMAIN/oauth/v2/token";
|
||||
scopes: {
|
||||
scope: {
|
||||
key: "openid";
|
||||
value: "openid";
|
||||
}
|
||||
scope: {
|
||||
key: "urn:zitadel:iam:org:project:id:zitadel:aud";
|
||||
value: "urn:zitadel:iam:org:project:id:zitadel:aud";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
security: {
|
||||
security_requirement: {
|
||||
key: "OAuth2";
|
||||
value: {
|
||||
scope: "openid";
|
||||
scope: "urn:zitadel:iam:org:project:id:zitadel:aud";
|
||||
}
|
||||
}
|
||||
}
|
||||
responses: {
|
||||
key: "403";
|
||||
value: {
|
||||
description: "Returned when the user does not have permission to access the resource.";
|
||||
schema: {
|
||||
json_schema: {
|
||||
ref: "#/definitions/rpcStatus";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
responses: {
|
||||
key: "404";
|
||||
value: {
|
||||
description: "Returned when the resource does not exist.";
|
||||
schema: {
|
||||
json_schema: {
|
||||
ref: "#/definitions/rpcStatus";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// This service is intended to manage organizations in a Zitadel instance.
|
||||
//
|
||||
// Deprecated: use organization service v2 instead. This service will be removed in the next major version of ZITADEL.
|
||||
service OrganizationService {
|
||||
|
||||
// Create Organization
|
||||
//
|
||||
// Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER.
|
||||
//
|
||||
// Required permission:
|
||||
// - `org.create`
|
||||
//
|
||||
// Deprecated: Use [AddOrganization](/docs/reference/api/org/zitadel.org.v2.OrganizationService.AddOrganization) instead to create an organization.
|
||||
rpc CreateOrganization(CreateOrganizationRequest) returns (CreateOrganizationResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v2beta/organizations"
|
||||
body: "*"
|
||||
};
|
||||
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
permission: "authenticated"
|
||||
}
|
||||
};
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
responses: {
|
||||
key: "200";
|
||||
value: {
|
||||
description: "Organization created successfully";
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
key: "409"
|
||||
value: {
|
||||
description: "The organization to create already exists.";
|
||||
}
|
||||
};
|
||||
deprecated: true;
|
||||
};
|
||||
}
|
||||
|
||||
// Update Organization
|
||||
//
|
||||
// Deprecated: please move to the corresponding endpoint under organization service v2. This endpoint will be removed with the next major version of ZITADEL.
|
||||
//
|
||||
// Change the name of the organization.
|
||||
//
|
||||
// Required permission:
|
||||
// - `org.write`
|
||||
rpc UpdateOrganization(UpdateOrganizationRequest) returns (UpdateOrganizationResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v2beta/organizations/{id}"
|
||||
body: "*"
|
||||
};
|
||||
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
permission: "authenticated"
|
||||
}
|
||||
};
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
responses: {
|
||||
key: "200";
|
||||
value: {
|
||||
description: "Organization created successfully";
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
key: "404"
|
||||
value: {
|
||||
description: "Organisation's not found";
|
||||
}
|
||||
};
|
||||
responses: {
|
||||
key: "409"
|
||||
value: {
|
||||
description: "Organisation's name already taken";
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
// List Organizations
|
||||
//
|
||||
// Deprecated: please move to the corresponding endpoint under organization service v2. This endpoint will be removed with the next major version of ZITADEL.
|
||||
//
|
||||
// Returns a list of organizations that match the requesting filters. All filters are applied with an AND condition.
|
||||
//
|
||||
// Required permission:
|
||||
// - `org.read`
|
||||
//
|
||||
// Deprecated: Use [ListOrganizations](/docs/reference/api/org/zitadel.org.v2.OrganizationService.ListOrganizations) instead to list organizations.
|
||||
rpc ListOrganizations(ListOrganizationsRequest) returns (ListOrganizationsResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v2beta/organizations/search";
|
||||
body: "*";
|
||||
};
|
||||
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
permission: "authenticated";
|
||||
}
|
||||
};
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
responses: {
|
||||
key: "200";
|
||||
};
|
||||
deprecated: true;
|
||||
};
|
||||
}
|
||||
|
||||
// Delete Organization
|
||||
//
|
||||
// Deprecated: please move to the corresponding endpoint under organization service v2. This endpoint will be removed with the next major version of ZITADEL.
|
||||
//
|
||||
// Deletes the organization and all its resources (Users, Projects, Grants to and from the org). Users of this organization will not be able to log in.
|
||||
//
|
||||
// Required permission:
|
||||
// - `org.delete`
|
||||
rpc DeleteOrganization(DeleteOrganizationRequest) returns (DeleteOrganizationResponse) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v2beta/organizations/{id}"
|
||||
};
|
||||
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
permission: "authenticated";
|
||||
}
|
||||
};
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
responses: {
|
||||
key: "200";
|
||||
value: {
|
||||
description: "Organization created successfully";
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
key: "404"
|
||||
value: {
|
||||
description: "Organisation's not found";
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
// Set Organization Metadata
|
||||
//
|
||||
// Deprecated: please move to the corresponding endpoint under organization service v2. This endpoint will be removed with the next major version of ZITADEL.
|
||||
//
|
||||
// Adds or updates a metadata value for the requested key. Make sure the value is base64 encoded.
|
||||
//
|
||||
// Required permission:
|
||||
// - `org.write`
|
||||
rpc SetOrganizationMetadata(SetOrganizationMetadataRequest) returns (SetOrganizationMetadataResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v2beta/organizations/{organization_id}/metadata"
|
||||
body: "*"
|
||||
};
|
||||
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
permission: "authenticated"
|
||||
}
|
||||
};
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
responses: {
|
||||
key: "200";
|
||||
};
|
||||
responses: {
|
||||
// TODO This needs to chagne to 404
|
||||
key: "400"
|
||||
value: {
|
||||
description: "Organisation's not found";
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
// List Organization Metadata
|
||||
//
|
||||
// Deprecated: please move to the corresponding endpoint under organization service v2. This endpoint will be removed with the next major version of ZITADEL.
|
||||
//
|
||||
// List metadata of an organization filtered by query.
|
||||
//
|
||||
// Required permission:
|
||||
// - `org.read`
|
||||
rpc ListOrganizationMetadata(ListOrganizationMetadataRequest) returns (ListOrganizationMetadataResponse ) {
|
||||
option (google.api.http) = {
|
||||
post: "/v2beta/organizations/{organization_id}/metadata/search"
|
||||
body: "*"
|
||||
};
|
||||
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = { auth_option: {
|
||||
permission: "authenticated"
|
||||
}
|
||||
};
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
responses: {
|
||||
key: "200";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
// Delete Organization Metadata
|
||||
//
|
||||
// Deprecated: please move to the corresponding endpoint under organization service v2. This endpoint will be removed with the next major version of ZITADEL.
|
||||
//
|
||||
// Delete metadata objects from an organization with a specific key.
|
||||
//
|
||||
// Required permission:
|
||||
// - `org.write`
|
||||
rpc DeleteOrganizationMetadata(DeleteOrganizationMetadataRequest) returns (DeleteOrganizationMetadataResponse) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v2beta/organizations/{organization_id}/metadata"
|
||||
};
|
||||
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
permission: "authenticated"
|
||||
}
|
||||
};
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
responses: {
|
||||
key: "200";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
// Add Organization Domain
|
||||
//
|
||||
// Deprecated: please move to the corresponding endpoint under organization service v2. This endpoint will be removed with the next major version of ZITADEL.
|
||||
//
|
||||
// Add a new domain to an organization. The domains are used to identify to which organization a user belongs.
|
||||
//
|
||||
// Required permission:
|
||||
// - `org.write`
|
||||
rpc AddOrganizationDomain(AddOrganizationDomainRequest) returns (AddOrganizationDomainResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v2beta/organizations/{organization_id}/domains"
|
||||
body: "*"
|
||||
};
|
||||
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
permission: "authenticated"
|
||||
}
|
||||
};
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
responses: {
|
||||
key: "200";
|
||||
};
|
||||
responses: {
|
||||
key: "409"
|
||||
value: {
|
||||
description: "Domain already exists";
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
// List Organization Domains
|
||||
//
|
||||
// Deprecated: please move to the corresponding endpoint under organization service v2. This endpoint will be removed with the next major version of ZITADEL.
|
||||
//
|
||||
// Returns the list of registered domains of an organization. The domains are used to identify to which organization a user belongs.
|
||||
//
|
||||
// Required permission:
|
||||
// - `org.read`
|
||||
rpc ListOrganizationDomains(ListOrganizationDomainsRequest) returns (ListOrganizationDomainsResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v2beta/organizations/{organization_id}/domains/search"
|
||||
body: "*"
|
||||
};
|
||||
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
permission: "authenticated"
|
||||
}
|
||||
};
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
responses: {
|
||||
key: "200";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
// Delete Organization Domain
|
||||
//
|
||||
// Deprecated: please move to the corresponding endpoint under organization service v2. This endpoint will be removed with the next major version of ZITADEL.
|
||||
//
|
||||
// Delete a new domain from an organization. The domains are used to identify to which organization a user belongs. If the uses use the domain for login, this will not be possible afterwards. They have to use another domain instead.
|
||||
//
|
||||
// Required permission:
|
||||
// - `org.write`
|
||||
rpc DeleteOrganizationDomain(DeleteOrganizationDomainRequest) returns (DeleteOrganizationDomainResponse) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v2beta/organizations/{organization_id}/domains"
|
||||
};
|
||||
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
permission: "authenticated"
|
||||
}
|
||||
};
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
responses: {
|
||||
key: "200";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
// Generate Organization Domain Validation
|
||||
//
|
||||
// Deprecated: please move to the corresponding endpoint under organization service v2. This endpoint will be removed with the next major version of ZITADEL.
|
||||
//
|
||||
// Generate a new file to be able to verify your domain with DNS or HTTP challenge.
|
||||
//
|
||||
// Required permission:
|
||||
// - `org.write`
|
||||
rpc GenerateOrganizationDomainValidation(GenerateOrganizationDomainValidationRequest) returns (GenerateOrganizationDomainValidationResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v2beta/organizations/{organization_id}/domains/validation/generate"
|
||||
body: "*"
|
||||
};
|
||||
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
permission: "authenticated"
|
||||
}
|
||||
};
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
responses: {
|
||||
key: "200";
|
||||
};
|
||||
responses: {
|
||||
key: "404"
|
||||
value: {
|
||||
description: "Domain doesn't exist on organization";
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
// Verify Organization Domain
|
||||
//
|
||||
// Deprecated: please move to the corresponding endpoint under organization service v2. This endpoint will be removed with the next major version of ZITADEL.
|
||||
//
|
||||
// Make sure you have added the required verification to your domain, depending on the method you have chosen (HTTP or DNS challenge). Zitadel will check it and set the domain as verified if it was successful. A verify domain has to be unique.
|
||||
//
|
||||
// Required permission:
|
||||
// - `org.write`
|
||||
rpc VerifyOrganizationDomain(VerifyOrganizationDomainRequest) returns (VerifyOrganizationDomainResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v2beta/organizations/{organization_id}/domains/validation/verify"
|
||||
body: "*"
|
||||
};
|
||||
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
permission: "authenticated"
|
||||
}
|
||||
};
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
responses: {
|
||||
key: "200";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
// Deactivate Organization
|
||||
//
|
||||
// Deprecated: please move to the corresponding endpoint under organization service v2. This endpoint will be removed with the next major version of ZITADEL.
|
||||
//
|
||||
// Sets the state of my organization to deactivated. Users of this organization will not be able to log in.
|
||||
//
|
||||
// Required permission:
|
||||
// - `org.write`
|
||||
rpc DeactivateOrganization(DeactivateOrganizationRequest) returns (DeactivateOrganizationResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v2beta/organizations/{id}/deactivate"
|
||||
body: "*"
|
||||
};
|
||||
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
permission: "authenticated"
|
||||
}
|
||||
};
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
responses: {
|
||||
key: "200";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
// Activate Organization
|
||||
//
|
||||
// Deprecated: please move to the corresponding endpoint under organization service v2. This endpoint will be removed with the next major version of ZITADEL.
|
||||
//
|
||||
// Set the state of my organization to active. The state of the organization has to be deactivated to perform the request. Users of this organization will be able to log in again.
|
||||
//
|
||||
// Required permission:
|
||||
// - `org.write`
|
||||
rpc ActivateOrganization(ActivateOrganizationRequest) returns (ActivateOrganizationResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v2beta/organizations/{id}/activate"
|
||||
body: "*"
|
||||
};
|
||||
|
||||
option (zitadel.protoc_gen_zitadel.v2.options) = {
|
||||
auth_option: {
|
||||
permission: "authenticated"
|
||||
}
|
||||
};
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
responses: {
|
||||
key: "200";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
message CreateOrganizationRequest{
|
||||
// The Admin for the newly created Organization.
|
||||
message Admin {
|
||||
oneof user_type{
|
||||
string user_id = 1;
|
||||
zitadel.user.v2beta.AddHumanUserRequest human = 2;
|
||||
}
|
||||
// specify Organization Member Roles for the provided user (default is ORG_OWNER if roles are empty)
|
||||
repeated string roles = 3;
|
||||
}
|
||||
|
||||
// name of the Organization to be created.
|
||||
string name = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"ZITADEL\"";
|
||||
}
|
||||
];
|
||||
// Optionally set your own id unique for the organization.
|
||||
optional string id = 2 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200 },
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"69629012906488334\"";
|
||||
}
|
||||
];
|
||||
// Additional Admins for the Organization.
|
||||
repeated Admin admins = 3;
|
||||
}
|
||||
|
||||
message CreatedAdmin {
|
||||
string user_id = 1;
|
||||
optional string email_code = 2;
|
||||
optional string phone_code = 3;
|
||||
}
|
||||
|
||||
message AssignedAdmin {
|
||||
string user_id = 1;
|
||||
}
|
||||
|
||||
message OrganizationAdmin {
|
||||
// The admins created/assigned for the Organization.
|
||||
oneof OrganizationAdmin {
|
||||
CreatedAdmin created_admin = 1;
|
||||
AssignedAdmin assigned_admin = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message CreateOrganizationResponse{
|
||||
// The timestamp of the organization was created.
|
||||
google.protobuf.Timestamp creation_date = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"2024-12-18T07:50:47.492Z\"";
|
||||
}
|
||||
];
|
||||
|
||||
// Organization ID of the newly created organization.
|
||||
string id = 2 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"69629012906488334\"";
|
||||
}
|
||||
];
|
||||
|
||||
// The admins created/assigned for the Organization
|
||||
repeated OrganizationAdmin organization_admins = 3;
|
||||
}
|
||||
|
||||
message UpdateOrganizationRequest {
|
||||
// Organization ID for the Organization to be updated
|
||||
string id = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"69629012906488334\"";
|
||||
}
|
||||
];
|
||||
|
||||
// New Name for the Organization to be updated
|
||||
string name = 2 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"Customer 1\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message UpdateOrganizationResponse {
|
||||
// The timestamp of the update to the organization.
|
||||
google.protobuf.Timestamp change_date = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"2025-01-23T10:34:18.051Z\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message ListOrganizationsRequest {
|
||||
// List limitations and ordering.
|
||||
optional zitadel.filter.v2beta.PaginationRequest pagination = 1;
|
||||
// the field the result is sorted
|
||||
zitadel.org.v2beta.OrgFieldName sorting_column = 2;
|
||||
// Define the criteria to query for.
|
||||
// repeated ProjectRoleQuery filters = 4;
|
||||
repeated zitadel.org.v2beta.OrganizationSearchFilter filter = 3;
|
||||
}
|
||||
|
||||
message ListOrganizationsResponse {
|
||||
// Pagination of the Organizations results
|
||||
zitadel.filter.v2beta.PaginationResponse pagination = 1;
|
||||
// The Organizations requested
|
||||
repeated zitadel.org.v2beta.Organization organizations = 2;
|
||||
}
|
||||
|
||||
message DeleteOrganizationRequest {
|
||||
|
||||
// Organization ID for the Organization to be deleted
|
||||
string id = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"69629023906488334\"";
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message DeleteOrganizationResponse {
|
||||
// The timestamp of the deletion of the organization.
|
||||
google.protobuf.Timestamp deletion_date = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"2025-01-23T10:34:18.051Z\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message DeactivateOrganizationRequest {
|
||||
// Organization ID for the Organization to be deactivated
|
||||
string id = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"69629023906488334\"";
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message DeactivateOrganizationResponse {
|
||||
// The timestamp of the deactivation of the organization.
|
||||
google.protobuf.Timestamp change_date = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"2025-01-23T10:34:18.051Z\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message ActivateOrganizationRequest {
|
||||
// Organization ID for the Organization to be activated
|
||||
string id = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"69629023906488334\"";
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message ActivateOrganizationResponse {
|
||||
// The timestamp of the activation of the organization.
|
||||
google.protobuf.Timestamp change_date = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"2025-01-23T10:34:18.051Z\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message AddOrganizationDomainRequest {
|
||||
// Organization ID for the Organization for which the domain is to be added to.
|
||||
string organization_id = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"69629012906488334\"";
|
||||
}
|
||||
];
|
||||
// The domain you want to add to the organization.
|
||||
string domain = 2 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"testdomain.com\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message AddOrganizationDomainResponse {
|
||||
// The timestamp of the organization was created.
|
||||
google.protobuf.Timestamp creation_date = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"2024-12-18T07:50:47.492Z\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message ListOrganizationDomainsRequest {
|
||||
// Organization ID for the Organization which domains are to be listed.
|
||||
string organization_id = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"69629012906488334\"";
|
||||
}
|
||||
];
|
||||
|
||||
// List limitations and ordering.
|
||||
optional zitadel.filter.v2beta.PaginationRequest pagination = 2;
|
||||
// Define the criteria to query for.
|
||||
repeated DomainSearchFilter filters = 3;
|
||||
}
|
||||
|
||||
message ListOrganizationDomainsResponse {
|
||||
// Pagination of the Organizations domain results.
|
||||
zitadel.filter.v2beta.PaginationResponse pagination = 1;
|
||||
// The domains requested.
|
||||
repeated Domain domains = 2;
|
||||
}
|
||||
|
||||
message DeleteOrganizationDomainRequest {
|
||||
// Organization ID for the Organization which domain is to be deleted.
|
||||
string organization_id = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"69629012906488334\"";
|
||||
}
|
||||
];
|
||||
string domain = 2 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"testdomain.com\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message DeleteOrganizationDomainResponse {
|
||||
// The timestamp of the deletion of the Organization Domain.
|
||||
google.protobuf.Timestamp deletion_date = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"2025-01-23T10:34:18.051Z\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message GenerateOrganizationDomainValidationRequest {
|
||||
// Organization ID for the Organization which domain to be validated.
|
||||
string organization_id = 1 [
|
||||
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"69629012906488334\"";
|
||||
}
|
||||
];
|
||||
// The domain which to be deleted.
|
||||
string domain = 2 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"testdomain.com\"";
|
||||
}
|
||||
];
|
||||
DomainValidationType type = 3 [(validate.rules).enum = {defined_only: true, not_in: [0]}];
|
||||
}
|
||||
|
||||
message GenerateOrganizationDomainValidationResponse {
|
||||
// The token verify domain.
|
||||
string token = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"ofSBHsSAVHAoTIE4Iv2gwhaYhTjcY5QX\"";
|
||||
}
|
||||
];
|
||||
// URL used to verify the domain.
|
||||
string url = 2 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"https://testdomain.com/.well-known/zitadel-challenge/ofSBHsSAVHAoTIE4Iv2gwhaYhTjcY5QX\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message VerifyOrganizationDomainRequest {
|
||||
// Organization ID for the Organization domain to be verified.
|
||||
string organization_id = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"69629012906488334\"";
|
||||
}
|
||||
];
|
||||
// The domain to be verified.
|
||||
string domain = 2 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"testdomain.com\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message VerifyOrganizationDomainResponse {
|
||||
// The timestamp of the verification of the Organization Domain.
|
||||
google.protobuf.Timestamp change_date = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"2025-01-23T10:34:18.051Z\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message Metadata {
|
||||
// Key in the metadata key/value pair.
|
||||
string key = 1 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
||||
// Value in the metadata key/value pair.
|
||||
bytes value = 2 [(validate.rules).bytes = {min_len: 1, max_len: 500000}];
|
||||
}
|
||||
message SetOrganizationMetadataRequest{
|
||||
string organization_id = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"69629012906488334\"";
|
||||
}
|
||||
];
|
||||
// Metadata to set.
|
||||
repeated Metadata metadata = 2 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
title: "Medata (Key/Value)"
|
||||
description: "The values have to be base64 encoded.";
|
||||
example: "[{\"key\": \"test1\", \"value\": \"VGhpcyBpcyBteSBmaXJzdCB2YWx1ZQ==\"}, {\"key\": \"test2\", \"value\": \"VGhpcyBpcyBteSBzZWNvbmQgdmFsdWU=\"}]"
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message SetOrganizationMetadataResponse{
|
||||
// The timestamp of the update of the organization metadata.
|
||||
google.protobuf.Timestamp set_date = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"2025-01-23T10:34:18.051Z\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message ListOrganizationMetadataRequest {
|
||||
// Organization ID of Orgalization which metadata is to be listed.
|
||||
string organization_id = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"69629012906488334\"";
|
||||
}
|
||||
];
|
||||
|
||||
// List limitations and ordering.
|
||||
optional zitadel.filter.v2beta.PaginationRequest pagination = 2;
|
||||
// Define the criteria to query for.
|
||||
repeated zitadel.metadata.v2beta.MetadataQuery filter = 3;
|
||||
}
|
||||
|
||||
message ListOrganizationMetadataResponse {
|
||||
// Pagination of the Organizations metadata results.
|
||||
zitadel.filter.v2beta.PaginationResponse pagination = 1;
|
||||
// The Organization metadata requested.
|
||||
repeated zitadel.metadata.v2beta.Metadata metadata = 2;
|
||||
}
|
||||
|
||||
message DeleteOrganizationMetadataRequest {
|
||||
// Organization ID of Orgalization which metadata is to be deleted is stored on.
|
||||
string organization_id = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"69629012906488334\"";
|
||||
}
|
||||
];
|
||||
// The keys for the Organization metadata to be deleted.
|
||||
repeated string keys = 2 [(validate.rules).repeated.items.string = {min_len: 1, max_len: 200}];
|
||||
}
|
||||
|
||||
message DeleteOrganizationMetadataResponse{
|
||||
// The timestamp of the deletiion of the organization metadata.
|
||||
google.protobuf.Timestamp deletion_date = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"2025-01-23T10:34:18.051Z\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user