mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-09 08:53:39 +00:00
aa9518ac02
* integrate docs into nav * generator for local use, production needs to be set by env * fix typo * local dev * docs: annotate the first user endpoints in the management api * docs: annotate the first user endpoints in the management api * docs: annotate the first user endpoints in the management api * docs: annotate the first user endpoints in the management api * docs: add header params * rewrite docs links and improve ci * tweak build command * fix path * Update docs/docusaurus.config.js Co-authored-by: Max Peintner <max@caos.ch> * fix docker * docs: add header params * docs: Add tags to management api. add some descriptions * docs: more descriptions * docs: more descriptions * docs: required fields * docs: example request * docs: example request * docs: example request * docs: example request * docs: example request * docs: user metadata requests * docs: user requests * docs: user requests * docs: user requests * docs: user requests * docs: change nav add first methods to authentication api * docs: auth api * docs: auth api * docs: auth api * docs: auth api * docs: auth api * docs: api sidenav * chore: use buf without docker * fix deploy * fix ci * fix vercel * docs: admin * docs: admin api docs * docs: admin api docs * docs: admin api docs * docs: admin api docs * docs: security * docs: security * docs: admin api * docs: change to env vars * docs: auth api * docs: remove assets, deprecated requests, menu * reworked page with PaloAltoNetworks/docusaurus-openapi-docs * works with the resolutions * fix broken build by adding assets again * add tags to menu * chore: improve build speed * no-minify * test ssr * ssr 20 * use lazy * increase mem * use default mem * change names * docs: remove assets, deprecated requests, menu * docs: management api * docs: management api * docs: management api * docs: sidebar * not the best word smithing but it is ;-) * more typos * merge main * fix some error * trial * update grpc gateway * trigger vercel build * docs: deprecated requests * docs: deprecated requests --------- Co-authored-by: Fabienne <fabienne.gerschwiler@gmail.com> Co-authored-by: Max Peintner <max@caos.ch>
204 lines
6.6 KiB
Protocol Buffer
204 lines
6.6 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "zitadel/user.proto";
|
|
import "zitadel/idp.proto";
|
|
import "zitadel/org.proto";
|
|
import "zitadel/management.proto";
|
|
import "zitadel/auth_n_key.proto";
|
|
|
|
import "protoc-gen-openapiv2/options/annotations.proto";
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
import "validate/validate.proto";
|
|
|
|
package zitadel.v1.v1;
|
|
|
|
option go_package ="github.com/zitadel/zitadel/pkg/grpc/v1";
|
|
|
|
message AddCustomOrgIAMPolicyRequest {
|
|
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
|
|
json_schema: {
|
|
required: ["org_id"]
|
|
};
|
|
};
|
|
|
|
string org_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;
|
|
}
|
|
];
|
|
bool user_login_must_be_domain = 2 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "the username has to end with the domain of its organization"
|
|
}
|
|
]; // the username has to end with the domain of its organization (uniqueness is organization based)
|
|
}
|
|
message ImportDataOrg {
|
|
repeated DataOrg orgs = 1;
|
|
}
|
|
|
|
message DataOrg {
|
|
string org_id = 1;
|
|
zitadel.management.v1.AddOrgRequest org = 3;
|
|
AddCustomOrgIAMPolicyRequest iam_policy = 4;
|
|
zitadel.management.v1.AddCustomLabelPolicyRequest label_policy = 5;
|
|
zitadel.management.v1.AddCustomLockoutPolicyRequest lockout_policy = 6;
|
|
zitadel.management.v1.AddCustomLoginPolicyRequest login_policy = 7;
|
|
zitadel.management.v1.AddCustomPasswordComplexityPolicyRequest password_complexity_policy = 8;
|
|
zitadel.management.v1.AddCustomPrivacyPolicyRequest privacy_policy = 9;
|
|
|
|
repeated DataProject projects = 10;
|
|
repeated zitadel.management.v1.AddProjectRoleRequest project_roles = 11;
|
|
repeated DataAPIApplication api_apps = 12;
|
|
repeated DataOIDCApplication oidc_apps = 13;
|
|
repeated DataHumanUser human_users = 14;
|
|
repeated DataMachineUser machine_users = 15;
|
|
repeated SetTriggerActionsRequest trigger_actions = 16;
|
|
repeated DataAction actions = 17;
|
|
|
|
repeated DataProjectGrant project_grants = 18;
|
|
repeated zitadel.management.v1.AddUserGrantRequest user_grants = 19;
|
|
|
|
repeated zitadel.management.v1.AddOrgMemberRequest org_members = 20;
|
|
repeated zitadel.management.v1.AddProjectMemberRequest project_members = 21;
|
|
repeated zitadel.management.v1.AddProjectGrantMemberRequest project_grant_members = 22;
|
|
|
|
repeated zitadel.management.v1.SetUserMetadataRequest user_metadata = 23;
|
|
|
|
repeated zitadel.management.v1.SetCustomLoginTextsRequest login_texts = 24;
|
|
|
|
repeated zitadel.management.v1.SetCustomInitMessageTextRequest init_messages = 25;
|
|
repeated zitadel.management.v1.SetCustomPasswordResetMessageTextRequest password_reset_messages = 26;
|
|
repeated zitadel.management.v1.SetCustomVerifyEmailMessageTextRequest verify_email_messages = 27;
|
|
repeated zitadel.management.v1.SetCustomVerifyPhoneMessageTextRequest verify_phone_messages = 28;
|
|
repeated zitadel.management.v1.SetCustomDomainClaimedMessageTextRequest domain_claimed_messages = 29;
|
|
repeated zitadel.management.v1.SetCustomPasswordlessRegistrationMessageTextRequest passwordless_registration_messages = 30;
|
|
|
|
repeated DataOIDCIDP oidc_idps = 31;
|
|
repeated DataJWTIDP jwt_idps = 32;
|
|
|
|
repeated zitadel.management.v1.AddSecondFactorToLoginPolicyRequest second_factors = 33;
|
|
repeated zitadel.management.v1.AddMultiFactorToLoginPolicyRequest multi_factors = 34;
|
|
repeated zitadel.management.v1.AddIDPToLoginPolicyRequest idps = 35;
|
|
|
|
repeated zitadel.idp.v1.IDPUserLink user_links = 36;
|
|
repeated zitadel.org.v1.Domain domains = 37;
|
|
|
|
repeated DataAppKey app_keys = 38;
|
|
repeated DataMachineKey machine_keys = 39;
|
|
}
|
|
|
|
message DataOIDCIDP{
|
|
string idp_id = 1;
|
|
zitadel.management.v1.AddOrgOIDCIDPRequest idp = 2;
|
|
}
|
|
message DataJWTIDP{
|
|
string idp_id = 1;
|
|
zitadel.management.v1.AddOrgJWTIDPRequest idp = 32;
|
|
}
|
|
|
|
message ExportHumanUser {
|
|
message Profile {
|
|
string first_name = 1 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
|
string last_name = 2 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
|
string nick_name = 3 [(validate.rules).string = {max_len: 200}];
|
|
string display_name = 4 [(validate.rules).string = {max_len: 200}];
|
|
string preferred_language = 5 [(validate.rules).string = {max_len: 10}];
|
|
zitadel.user.v1.Gender gender = 6;
|
|
}
|
|
message Email {
|
|
string email = 1 [(validate.rules).string.email = true]; //TODO: check if no value is allowed
|
|
bool is_email_verified = 2;
|
|
}
|
|
message Phone {
|
|
// has to be a global number
|
|
string phone = 1 [(validate.rules).string = {min_len: 1, max_len: 50, prefix: "+"}];
|
|
bool is_phone_verified = 2;
|
|
}
|
|
message HashedPassword{
|
|
string value = 1;
|
|
string algorithm = 2;
|
|
}
|
|
|
|
string user_name = 1 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
|
|
|
Profile profile = 2 [(validate.rules).message.required = true];
|
|
Email email = 3 [(validate.rules).message.required = true];
|
|
Phone phone = 4;
|
|
string password = 5;
|
|
HashedPassword hashed_password = 6;
|
|
bool password_change_required = 7;
|
|
bool request_passwordless_registration = 8;
|
|
|
|
string otp_code = 9;
|
|
}
|
|
|
|
message DataAppKey {
|
|
string id = 1;
|
|
string project_id = 2;
|
|
string app_id = 3;
|
|
string client_id = 4;
|
|
zitadel.authn.v1.KeyType type = 5;
|
|
google.protobuf.Timestamp expiration_date = 6;
|
|
bytes public_key = 7;
|
|
}
|
|
|
|
message DataMachineKey {
|
|
string key_id = 1;
|
|
string user_id = 2;
|
|
zitadel.authn.v1.KeyType type = 3;
|
|
google.protobuf.Timestamp expiration_date = 4;
|
|
bytes public_key = 5;
|
|
}
|
|
|
|
message DataProject {
|
|
string project_id = 1;
|
|
zitadel.management.v1.AddProjectRequest project = 2;
|
|
}
|
|
message DataAPIApplication {
|
|
string app_id = 1;
|
|
zitadel.management.v1.AddAPIAppRequest app = 2;
|
|
}
|
|
message DataOIDCApplication {
|
|
string app_id = 1;
|
|
zitadel.management.v1.AddOIDCAppRequest app = 2;
|
|
}
|
|
message DataHumanUser {
|
|
string user_id = 1;
|
|
zitadel.management.v1.ImportHumanUserRequest user = 2;
|
|
}
|
|
message DataMachineUser {
|
|
string user_id = 1;
|
|
zitadel.management.v1.AddMachineUserRequest user = 2;
|
|
}
|
|
message DataAction {
|
|
string action_id = 1;
|
|
zitadel.management.v1.CreateActionRequest action = 2;
|
|
}
|
|
message DataProjectGrant {
|
|
string grant_id = 1;
|
|
zitadel.management.v1.AddProjectGrantRequest project_grant = 2;
|
|
}
|
|
|
|
message SetTriggerActionsRequest {
|
|
FlowType flow_type = 1;
|
|
TriggerType trigger_type = 2;
|
|
repeated string action_ids = 3;
|
|
}
|
|
|
|
enum FlowType {
|
|
FLOW_TYPE_UNSPECIFIED = 0;
|
|
FLOW_TYPE_EXTERNAL_AUTHENTICATION = 1;
|
|
}
|
|
|
|
enum TriggerType {
|
|
TRIGGER_TYPE_UNSPECIFIED = 0;
|
|
TRIGGER_TYPE_POST_AUTHENTICATION = 1;
|
|
TRIGGER_TYPE_PRE_CREATION = 2;
|
|
TRIGGER_TYPE_POST_CREATION = 3;
|
|
}
|