137 lines
3.5 KiB
Protocol Buffer
137 lines
3.5 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package zitadel.action.v2;
|
|
|
|
option go_package = "github.com/zitadel/zitadel/pkg/grpc/action/v2;action";
|
|
|
|
import "google/api/field_behavior.proto";
|
|
import "protoc-gen-openapiv2/options/annotations.proto";
|
|
import "validate/validate.proto";
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
import "zitadel/action/v2/execution.proto";
|
|
import "zitadel/filter/v2/filter.proto";
|
|
|
|
message ExecutionSearchFilter {
|
|
oneof filter {
|
|
option (validate.required) = true;
|
|
|
|
// Filter for executions that are executed when certain conditions are met.
|
|
InConditionsFilter in_conditions_filter = 1;
|
|
|
|
// Filter for executions of a certain type.
|
|
ExecutionTypeFilter execution_type_filter = 2;
|
|
|
|
// Filter for executions that include a specific target.
|
|
TargetFilter target_filter = 3;
|
|
}
|
|
}
|
|
|
|
message InConditionsFilter {
|
|
// Defines the conditions to query for.
|
|
repeated Condition conditions = 1;
|
|
}
|
|
|
|
message ExecutionTypeFilter {
|
|
// Defines the type to query for.
|
|
ExecutionType execution_type = 1;
|
|
}
|
|
|
|
message TargetFilter {
|
|
// Defines the id of the target that needs to be part of the execution.
|
|
string target_id = 1 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
example: "\"69629023906488334\"";
|
|
}
|
|
];
|
|
}
|
|
|
|
enum TargetFieldName {
|
|
TARGET_FIELD_NAME_UNSPECIFIED = 0;
|
|
TARGET_FIELD_NAME_ID = 1;
|
|
TARGET_FIELD_NAME_CREATED_DATE = 2;
|
|
TARGET_FIELD_NAME_CHANGED_DATE = 3;
|
|
TARGET_FIELD_NAME_NAME = 4;
|
|
TARGET_FIELD_NAME_TARGET_TYPE = 5;
|
|
TARGET_FIELD_NAME_URL = 6;
|
|
TARGET_FIELD_NAME_TIMEOUT = 7;
|
|
TARGET_FIELD_NAME_INTERRUPT_ON_ERROR = 8;
|
|
}
|
|
|
|
message TargetSearchFilter {
|
|
oneof filter {
|
|
option (validate.required) = true;
|
|
|
|
// Filter for targets with a specific name.
|
|
TargetNameFilter target_name_filter = 1;
|
|
|
|
// Filter for targets with specific ids.
|
|
InTargetIDsFilter in_target_ids_filter = 2;
|
|
}
|
|
}
|
|
|
|
message TargetNameFilter {
|
|
// Defines the name of the target to query for.
|
|
string target_name = 1 [
|
|
(validate.rules).string = {max_len: 200},
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
max_length: 200;
|
|
example: "\"ip_allow_list\"";
|
|
}
|
|
];
|
|
|
|
// Defines which text comparison method used for the name query.
|
|
zitadel.filter.v2.TextFilterMethod method = 2 [
|
|
(validate.rules).enum.defined_only = true
|
|
];
|
|
}
|
|
|
|
message InTargetIDsFilter {
|
|
// Defines the ids to query for.
|
|
repeated string target_ids = 1 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
example: "[\"69629023906488334\",\"69622366012355662\"]";
|
|
}
|
|
];
|
|
}
|
|
|
|
enum ExecutionType {
|
|
EXECUTION_TYPE_UNSPECIFIED = 0;
|
|
EXECUTION_TYPE_REQUEST = 1;
|
|
EXECUTION_TYPE_RESPONSE = 2;
|
|
EXECUTION_TYPE_EVENT = 3;
|
|
EXECUTION_TYPE_FUNCTION = 4;
|
|
}
|
|
|
|
|
|
enum ExecutionFieldName {
|
|
EXECUTION_FIELD_NAME_UNSPECIFIED = 0;
|
|
EXECUTION_FIELD_NAME_ID = 1;
|
|
EXECUTION_FIELD_NAME_CREATED_DATE = 2;
|
|
EXECUTION_FIELD_NAME_CHANGED_DATE = 3;
|
|
}
|
|
|
|
enum PublicKeyFieldName {
|
|
// Unspecified field name.
|
|
PUBLIC_KEY_FIELD_NAME_UNSPECIFIED = 0;
|
|
// Sort by creation date.
|
|
PUBLIC_KEY_FIELD_NAME_CREATION_DATE = 1;
|
|
// Sort by change date.
|
|
PUBLIC_KEY_FIELD_NAME_CHANGE_DATE = 2;
|
|
// Sort by expiration date.
|
|
PUBLIC_KEY_FIELD_NAME_EXPIRATION_DATE = 3;
|
|
}
|
|
|
|
message PublicKeySearchFilter {
|
|
oneof filter {
|
|
// Filter the keys by one or multiple ids.
|
|
filter.v2.InIDsFilter key_ids_filter = 1;
|
|
|
|
// Filter the keys by their active status.
|
|
bool active_filter = 2;
|
|
|
|
// Filter the keys by their expiration status.
|
|
filter.v2.TimestampFilter expiration_date_filter = 3;
|
|
}
|
|
}
|