mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 17:57:33 +00:00
feat: api v2beta to api v2 (#8283)
# Which Problems Are Solved The v2beta services are stable but not GA. # How the Problems Are Solved The v2beta services are copied to v2. The corresponding v1 and v2beta services are deprecated. # Additional Context Closes #7236 --------- Co-authored-by: Elio Bischof <elio@zitadel.com>
This commit is contained in:
@@ -11,7 +11,7 @@ import "validate/validate.proto";
|
||||
import "zitadel/action/v3alpha/target.proto";
|
||||
import "zitadel/action/v3alpha/execution.proto";
|
||||
import "zitadel/action/v3alpha/query.proto";
|
||||
import "zitadel/object/v2beta/object.proto";
|
||||
import "zitadel/object/v2/object.proto";
|
||||
import "zitadel/protoc_gen_zitadel/v2/options.proto";
|
||||
|
||||
option go_package = "github.com/zitadel/zitadel/pkg/grpc/action/v3alpha;action";
|
||||
@@ -449,7 +449,7 @@ message CreateTargetResponse {
|
||||
// ID is the read-only unique identifier of the target.
|
||||
string id = 1;
|
||||
// Details provide some base information (such as the last change date) of the target.
|
||||
zitadel.object.v2beta.Details details = 2;
|
||||
zitadel.object.v2.Details details = 2;
|
||||
}
|
||||
|
||||
message UpdateTargetRequest {
|
||||
@@ -498,7 +498,7 @@ message UpdateTargetRequest {
|
||||
|
||||
message UpdateTargetResponse {
|
||||
// Details provide some base information (such as the last change date) of the target.
|
||||
zitadel.object.v2beta.Details details = 1;
|
||||
zitadel.object.v2.Details details = 1;
|
||||
}
|
||||
|
||||
message DeleteTargetRequest {
|
||||
@@ -516,12 +516,12 @@ message DeleteTargetRequest {
|
||||
|
||||
message DeleteTargetResponse {
|
||||
// Details provide some base information (such as the last change date) of the target.
|
||||
zitadel.object.v2beta.Details details = 1;
|
||||
zitadel.object.v2.Details details = 1;
|
||||
}
|
||||
|
||||
message ListTargetsRequest {
|
||||
// list limitations and ordering.
|
||||
zitadel.object.v2beta.ListQuery query = 1;
|
||||
zitadel.object.v2.ListQuery query = 1;
|
||||
// the field the result is sorted.
|
||||
zitadel.action.v3alpha.TargetFieldName sorting_column = 2 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
@@ -534,7 +534,7 @@ message ListTargetsRequest {
|
||||
|
||||
message ListTargetsResponse {
|
||||
// Details provides information about the returned result including total amount found.
|
||||
zitadel.object.v2beta.ListDetails details = 1;
|
||||
zitadel.object.v2.ListDetails details = 1;
|
||||
// States by which field the results are sorted.
|
||||
zitadel.action.v3alpha.TargetFieldName sorting_column = 2;
|
||||
// The result contains the user schemas, which matched the queries.
|
||||
@@ -567,7 +567,7 @@ message SetExecutionRequest {
|
||||
|
||||
message SetExecutionResponse {
|
||||
// Details provide some base information (such as the last change date) of the execution.
|
||||
zitadel.object.v2beta.Details details = 2;
|
||||
zitadel.object.v2.Details details = 2;
|
||||
}
|
||||
|
||||
message DeleteExecutionRequest {
|
||||
@@ -577,19 +577,19 @@ message DeleteExecutionRequest {
|
||||
|
||||
message DeleteExecutionResponse {
|
||||
// Details provide some base information (such as the last change date) of the execution.
|
||||
zitadel.object.v2beta.Details details = 1;
|
||||
zitadel.object.v2.Details details = 1;
|
||||
}
|
||||
|
||||
message ListExecutionsRequest {
|
||||
// list limitations and ordering.
|
||||
zitadel.object.v2beta.ListQuery query = 1;
|
||||
zitadel.object.v2.ListQuery query = 1;
|
||||
// Define the criteria to query for.
|
||||
repeated zitadel.action.v3alpha.SearchQuery queries = 2;
|
||||
}
|
||||
|
||||
message ListExecutionsResponse {
|
||||
// Details provides information about the returned result including total amount found.
|
||||
zitadel.object.v2beta.ListDetails details = 1;
|
||||
zitadel.object.v2.ListDetails details = 1;
|
||||
// The result contains the executions, which matched the queries.
|
||||
repeated zitadel.action.v3alpha.Execution result = 2;
|
||||
}
|
||||
|
@@ -8,7 +8,7 @@ import "google/protobuf/duration.proto";
|
||||
import "google/protobuf/struct.proto";
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
import "validate/validate.proto";
|
||||
import "zitadel/object/v2beta/object.proto";
|
||||
import "zitadel/object/v2/object.proto";
|
||||
import "zitadel/protoc_gen_zitadel/v2/options.proto";
|
||||
|
||||
option go_package = "github.com/zitadel/zitadel/pkg/grpc/action/v3alpha;action";
|
||||
@@ -16,7 +16,7 @@ option go_package = "github.com/zitadel/zitadel/pkg/grpc/action/v3alpha;action";
|
||||
message Execution {
|
||||
Condition Condition = 1;
|
||||
// Details provide some base information (such as the last change date) of the target.
|
||||
zitadel.object.v2beta.Details details = 2;
|
||||
zitadel.object.v2.Details details = 2;
|
||||
// List of ordered list of targets/includes called during the execution.
|
||||
repeated ExecutionTargetType targets = 3;
|
||||
}
|
||||
@@ -55,7 +55,7 @@ message RequestExecution {
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1,
|
||||
max_length: 1000,
|
||||
example: "\"/zitadel.session.v2beta.SessionService/ListSessions\"";
|
||||
example: "\"/zitadel.session.v2.SessionService/ListSessions\"";
|
||||
}
|
||||
];
|
||||
// GRPC-service as condition.
|
||||
@@ -64,7 +64,7 @@ message RequestExecution {
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1,
|
||||
max_length: 1000,
|
||||
example: "\"zitadel.session.v2beta.SessionService\"";
|
||||
example: "\"zitadel.session.v2.SessionService\"";
|
||||
}
|
||||
];
|
||||
// All calls to any available service and endpoint as condition.
|
||||
@@ -81,7 +81,7 @@ message ResponseExecution {
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1,
|
||||
max_length: 1000,
|
||||
example: "\"/zitadel.session.v2beta.SessionService/ListSessions\"";
|
||||
example: "\"/zitadel.session.v2.SessionService/ListSessions\"";
|
||||
}
|
||||
];
|
||||
// GRPC-service as condition.
|
||||
@@ -90,7 +90,7 @@ message ResponseExecution {
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
min_length: 1,
|
||||
max_length: 1000,
|
||||
example: "\"zitadel.session.v2beta.SessionService\"";
|
||||
example: "\"zitadel.session.v2.SessionService\"";
|
||||
}
|
||||
];
|
||||
// All calls to any available service and endpoint as condition.
|
||||
|
@@ -7,7 +7,7 @@ option go_package = "github.com/zitadel/zitadel/pkg/grpc/action/v3alpha;action";
|
||||
import "google/api/field_behavior.proto";
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
import "validate/validate.proto";
|
||||
import "zitadel/object/v2beta/object.proto";
|
||||
import "zitadel/object/v2/object.proto";
|
||||
import "zitadel/action/v3alpha/execution.proto";
|
||||
|
||||
message SearchQuery {
|
||||
@@ -46,7 +46,7 @@ message IncludeQuery {
|
||||
Condition include = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "the id of the include"
|
||||
example: "\"request.zitadel.session.v2beta.SessionService\"";
|
||||
example: "\"request.zitadel.session.v2.SessionService\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
@@ -70,7 +70,7 @@ message TargetNameQuery {
|
||||
}
|
||||
];
|
||||
// Defines which text comparison method used for the name query.
|
||||
zitadel.object.v2beta.TextQueryMethod method = 2 [
|
||||
zitadel.object.v2.TextQueryMethod method = 2 [
|
||||
(validate.rules).enum.defined_only = true,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "defines which text equality method is used";
|
||||
|
@@ -8,7 +8,7 @@ import "google/protobuf/duration.proto";
|
||||
import "google/protobuf/struct.proto";
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
import "validate/validate.proto";
|
||||
import "zitadel/object/v2beta/object.proto";
|
||||
import "zitadel/object/v2/object.proto";
|
||||
import "zitadel/protoc_gen_zitadel/v2/options.proto";
|
||||
|
||||
option go_package = "github.com/zitadel/zitadel/pkg/grpc/action/v3alpha;action";
|
||||
@@ -36,7 +36,7 @@ message Target {
|
||||
}
|
||||
];
|
||||
// Details provide some base information (such as the last change date) of the target.
|
||||
zitadel.object.v2beta.Details details = 2;
|
||||
zitadel.object.v2.Details details = 2;
|
||||
|
||||
// Unique name of the target.
|
||||
string name = 3 [
|
||||
|
@@ -1005,6 +1005,7 @@ service ManagementService {
|
||||
}
|
||||
|
||||
// Deprecated: not used anymore in user state
|
||||
// To resend a verification email use the user service v2 ResendEmailCode
|
||||
rpc ResendHumanInitialization(ResendHumanInitializationRequest) returns (ResendHumanInitializationResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/users/{user_id}/_resend_initialization"
|
||||
|
@@ -6,7 +6,7 @@ import "google/api/field_behavior.proto";
|
||||
import "google/protobuf/struct.proto";
|
||||
import "validate/validate.proto";
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
import "zitadel/object/v2beta/object.proto";
|
||||
import "zitadel/object/v2/object.proto";
|
||||
|
||||
option go_package = "github.com/zitadel/zitadel/pkg/grpc/user/schema/v3alpha";
|
||||
|
||||
@@ -19,7 +19,7 @@ message UserSchema {
|
||||
}
|
||||
];
|
||||
// Details provide some base information (such as the last change date) of the schema.
|
||||
zitadel.object.v2beta.Details details = 2;
|
||||
zitadel.object.v2.Details details = 2;
|
||||
// Type is a human readable text describing the schema.
|
||||
string type = 3 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
@@ -119,7 +119,7 @@ message IDQuery {
|
||||
}
|
||||
];
|
||||
// Defines which text comparison method used for the id query.
|
||||
zitadel.object.v2beta.TextQueryMethod method = 2 [
|
||||
zitadel.object.v2.TextQueryMethod method = 2 [
|
||||
(validate.rules).enum.defined_only = true
|
||||
];
|
||||
}
|
||||
@@ -135,7 +135,7 @@ message TypeQuery {
|
||||
}
|
||||
];
|
||||
// Defines which text comparison method used for the type query.
|
||||
zitadel.object.v2beta.TextQueryMethod method = 2 [
|
||||
zitadel.object.v2.TextQueryMethod method = 2 [
|
||||
(validate.rules).enum.defined_only = true
|
||||
];
|
||||
}
|
||||
|
@@ -8,7 +8,7 @@ import "google/protobuf/duration.proto";
|
||||
import "google/protobuf/struct.proto";
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
import "validate/validate.proto";
|
||||
import "zitadel/object/v2beta/object.proto";
|
||||
import "zitadel/object/v2/object.proto";
|
||||
import "zitadel/protoc_gen_zitadel/v2/options.proto";
|
||||
import "zitadel/user/schema/v3alpha/user_schema.proto";
|
||||
|
||||
@@ -299,7 +299,7 @@ service UserSchemaService {
|
||||
|
||||
message ListUserSchemasRequest {
|
||||
// list limitations and ordering.
|
||||
zitadel.object.v2beta.ListQuery query = 1;
|
||||
zitadel.object.v2.ListQuery query = 1;
|
||||
// the field the result is sorted.
|
||||
zitadel.user.schema.v3alpha.FieldName sorting_column = 2 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
@@ -312,7 +312,7 @@ message ListUserSchemasRequest {
|
||||
|
||||
message ListUserSchemasResponse {
|
||||
// Details provides information about the returned result including total amount found.
|
||||
zitadel.object.v2beta.ListDetails details = 1;
|
||||
zitadel.object.v2.ListDetails details = 1;
|
||||
// States by which field the results are sorted.
|
||||
zitadel.user.schema.v3alpha.FieldName sorting_column = 2;
|
||||
// The result contains the user schemas, which matched the queries.
|
||||
@@ -376,7 +376,7 @@ message CreateUserSchemaResponse {
|
||||
// ID is the read-only unique identifier of the schema.
|
||||
string id = 1;
|
||||
// Details provide some base information (such as the last change date) of the schema.
|
||||
zitadel.object.v2beta.Details details = 2;
|
||||
zitadel.object.v2.Details details = 2;
|
||||
}
|
||||
|
||||
|
||||
@@ -416,7 +416,7 @@ message UpdateUserSchemaRequest {
|
||||
|
||||
message UpdateUserSchemaResponse {
|
||||
// Details provide some base information (such as the last change date) of the schema.
|
||||
zitadel.object.v2beta.Details details = 1;
|
||||
zitadel.object.v2.Details details = 1;
|
||||
}
|
||||
|
||||
message DeactivateUserSchemaRequest {
|
||||
@@ -426,7 +426,7 @@ message DeactivateUserSchemaRequest {
|
||||
|
||||
message DeactivateUserSchemaResponse {
|
||||
// Details provide some base information (such as the last change date) of the schema.
|
||||
zitadel.object.v2beta.Details details = 1;
|
||||
zitadel.object.v2.Details details = 1;
|
||||
}
|
||||
|
||||
message ReactivateUserSchemaRequest {
|
||||
@@ -436,7 +436,7 @@ message ReactivateUserSchemaRequest {
|
||||
|
||||
message ReactivateUserSchemaResponse {
|
||||
// Details provide some base information (such as the last change date) of the schema.
|
||||
zitadel.object.v2beta.Details details = 1;
|
||||
zitadel.object.v2.Details details = 1;
|
||||
}
|
||||
|
||||
message DeleteUserSchemaRequest {
|
||||
@@ -446,7 +446,7 @@ message DeleteUserSchemaRequest {
|
||||
|
||||
message DeleteUserSchemaResponse {
|
||||
// Details provide some base information (such as the last change date) of the schema.
|
||||
zitadel.object.v2beta.Details details = 1;
|
||||
zitadel.object.v2.Details details = 1;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user