From 3c6168d0261e2ed6487676a7575ee3554435305b Mon Sep 17 00:00:00 2001 From: Fabi Date: Mon, 11 Sep 2023 07:26:31 +0200 Subject: [PATCH] fix: increase limit for action scripts (#6520) fix: increase action limit --- proto/zitadel/management.proto | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/proto/zitadel/management.proto b/proto/zitadel/management.proto index 7b3058844e..5285d2ffdc 100644 --- a/proto/zitadel/management.proto +++ b/proto/zitadel/management.proto @@ -12657,13 +12657,13 @@ message CreateActionRequest { } ]; string script = 2 [ - (validate.rules).string = {min_len: 1, max_len: 2000}, + (validate.rules).string = {min_len: 1, max_bytes: 40000}, (google.api.field_behavior) = REQUIRED, (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"function log(context, calls){console.log(context)}\""; description: "Javascript code that should be executed" min_length: 1; - max_length: 2000; + max_length: 10000; } ]; google.protobuf.Duration timeout = 3 [ @@ -12706,9 +12706,12 @@ message UpdateActionRequest { } ]; string script = 3 [ - (validate.rules).string = {min_len: 1, max_len: 2000}, + (validate.rules).string = {min_len: 1, max_bytes: 40000}, (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"function log(context, calls){console.log(context)}\""; + description: "Javascript code that should be executed" + min_length: 1; + max_length: 10000; } ]; google.protobuf.Duration timeout = 4 [