From 710957b2653627404e1586cb816a5ebfa5ef41e7 Mon Sep 17 00:00:00 2001 From: Alexandre de Souza Date: Mon, 7 Apr 2025 22:12:21 -0300 Subject: [PATCH] Use authorization group struct instead of string (#2981) --- proto/lib/livebook_proto/agent.pb.ex | 2 +- proto/lib/livebook_proto/agent_connected.pb.ex | 2 +- proto/lib/livebook_proto/agent_joined.pb.ex | 2 +- proto/lib/livebook_proto/agent_key.pb.ex | 2 +- proto/lib/livebook_proto/agent_left.pb.ex | 2 +- proto/lib/livebook_proto/app_deployment.pb.ex | 8 ++++++-- proto/lib/livebook_proto/app_deployment_started.pb.ex | 2 +- proto/lib/livebook_proto/app_deployment_status.pb.ex | 2 +- .../livebook_proto/app_deployment_status_report.pb.ex | 2 +- .../livebook_proto/app_deployment_status_type.pb.ex | 10 +++++++++- proto/lib/livebook_proto/app_deployment_stopped.pb.ex | 2 +- proto/lib/livebook_proto/app_deployment_updated.pb.ex | 2 +- proto/lib/livebook_proto/authorization_group.pb.ex | 6 ++++++ proto/lib/livebook_proto/billing_status.pb.ex | 2 +- .../lib/livebook_proto/billing_status_canceled.pb.ex | 2 +- .../lib/livebook_proto/billing_status_canceling.pb.ex | 2 +- .../livebook_proto/billing_status_trial_ended.pb.ex | 2 +- .../lib/livebook_proto/billing_status_trialing.pb.ex | 2 +- proto/lib/livebook_proto/deployment_group.pb.ex | 8 ++++++-- .../lib/livebook_proto/deployment_group_created.pb.ex | 2 +- .../lib/livebook_proto/deployment_group_deleted.pb.ex | 2 +- .../lib/livebook_proto/deployment_group_secret.pb.ex | 2 +- .../lib/livebook_proto/deployment_group_updated.pb.ex | 8 ++++++-- proto/lib/livebook_proto/environment_variable.pb.ex | 2 +- proto/lib/livebook_proto/error.pb.ex | 2 +- proto/lib/livebook_proto/event.pb.ex | 2 +- proto/lib/livebook_proto/file_system.pb.ex | 2 +- proto/lib/livebook_proto/file_system_created.pb.ex | 2 +- proto/lib/livebook_proto/file_system_deleted.pb.ex | 2 +- proto/lib/livebook_proto/file_system_updated.pb.ex | 2 +- proto/lib/livebook_proto/org_updated.pb.ex | 2 +- proto/lib/livebook_proto/secret.pb.ex | 2 +- proto/lib/livebook_proto/secret_created.pb.ex | 2 +- proto/lib/livebook_proto/secret_deleted.pb.ex | 2 +- proto/lib/livebook_proto/secret_updated.pb.ex | 2 +- proto/lib/livebook_proto/user_connected.pb.ex | 2 +- proto/lib/livebook_proto/user_deleted.pb.ex | 2 +- proto/messages.proto | 11 ++++++++--- 38 files changed, 73 insertions(+), 42 deletions(-) create mode 100644 proto/lib/livebook_proto/authorization_group.pb.ex diff --git a/proto/lib/livebook_proto/agent.pb.ex b/proto/lib/livebook_proto/agent.pb.ex index cd636899e..0a3140cf8 100644 --- a/proto/lib/livebook_proto/agent.pb.ex +++ b/proto/lib/livebook_proto/agent.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.Agent do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :id, 1, type: :string field :name, 2, type: :string diff --git a/proto/lib/livebook_proto/agent_connected.pb.ex b/proto/lib/livebook_proto/agent_connected.pb.ex index d3cb53823..8c874abdc 100644 --- a/proto/lib/livebook_proto/agent_connected.pb.ex +++ b/proto/lib/livebook_proto/agent_connected.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.AgentConnected do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :name, 2, type: :string field :public_key, 3, type: :string, json_name: "publicKey" diff --git a/proto/lib/livebook_proto/agent_joined.pb.ex b/proto/lib/livebook_proto/agent_joined.pb.ex index 1dcadc5b1..58c7bd101 100644 --- a/proto/lib/livebook_proto/agent_joined.pb.ex +++ b/proto/lib/livebook_proto/agent_joined.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.AgentJoined do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :agent, 1, type: LivebookProto.Agent end diff --git a/proto/lib/livebook_proto/agent_key.pb.ex b/proto/lib/livebook_proto/agent_key.pb.ex index 6dcbbda35..dcda2c729 100644 --- a/proto/lib/livebook_proto/agent_key.pb.ex +++ b/proto/lib/livebook_proto/agent_key.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.AgentKey do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :id, 1, type: :string field :key, 2, type: :string diff --git a/proto/lib/livebook_proto/agent_left.pb.ex b/proto/lib/livebook_proto/agent_left.pb.ex index fb8153c79..e74b9a7cf 100644 --- a/proto/lib/livebook_proto/agent_left.pb.ex +++ b/proto/lib/livebook_proto/agent_left.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.AgentLeft do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :id, 1, type: :string end diff --git a/proto/lib/livebook_proto/app_deployment.pb.ex b/proto/lib/livebook_proto/app_deployment.pb.ex index 25fc48f57..05346c922 100644 --- a/proto/lib/livebook_proto/app_deployment.pb.ex +++ b/proto/lib/livebook_proto/app_deployment.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.AppDeployment do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :id, 1, type: :string field :title, 2, type: :string @@ -12,5 +12,9 @@ defmodule LivebookProto.AppDeployment do field :multi_session, 9, type: :bool, json_name: "multiSession" field :access_type, 10, type: :string, json_name: "accessType" field :version, 11, type: :string - field :authorization_groups, 12, repeated: true, type: :string, json_name: "authorizationGroups" + + field :authorization_groups, 12, + repeated: true, + type: LivebookProto.AuthorizationGroup, + json_name: "authorizationGroups" end diff --git a/proto/lib/livebook_proto/app_deployment_started.pb.ex b/proto/lib/livebook_proto/app_deployment_started.pb.ex index 4eb0f3477..d4aab631b 100644 --- a/proto/lib/livebook_proto/app_deployment_started.pb.ex +++ b/proto/lib/livebook_proto/app_deployment_started.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.AppDeploymentStarted do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :app_deployment, 1, type: LivebookProto.AppDeployment, json_name: "appDeployment" end diff --git a/proto/lib/livebook_proto/app_deployment_status.pb.ex b/proto/lib/livebook_proto/app_deployment_status.pb.ex index ef63fdf9f..1127f059e 100644 --- a/proto/lib/livebook_proto/app_deployment_status.pb.ex +++ b/proto/lib/livebook_proto/app_deployment_status.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.AppDeploymentStatus do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :id, 1, type: :string field :deployment_group_id, 2, type: :string, json_name: "deploymentGroupId" diff --git a/proto/lib/livebook_proto/app_deployment_status_report.pb.ex b/proto/lib/livebook_proto/app_deployment_status_report.pb.ex index e1fb6f3bb..f4de1792e 100644 --- a/proto/lib/livebook_proto/app_deployment_status_report.pb.ex +++ b/proto/lib/livebook_proto/app_deployment_status_report.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.AppDeploymentStatusReport do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :app_deployment_statuses, 1, repeated: true, diff --git a/proto/lib/livebook_proto/app_deployment_status_type.pb.ex b/proto/lib/livebook_proto/app_deployment_status_type.pb.ex index bfe1a97c9..1eb7d713d 100644 --- a/proto/lib/livebook_proto/app_deployment_status_type.pb.ex +++ b/proto/lib/livebook_proto/app_deployment_status_type.pb.ex @@ -1,5 +1,13 @@ defmodule LivebookProto.AppDeploymentStatusType do - use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + @moduledoc """ + We're only using Enum in this case because + the Client is the source of the information, + and the Server will always be up-to-date. + + Otherwise, it shouldn't be used. + """ + + use Protobuf, enum: true, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :preparing, 0 field :available, 1 diff --git a/proto/lib/livebook_proto/app_deployment_stopped.pb.ex b/proto/lib/livebook_proto/app_deployment_stopped.pb.ex index 19b7fc108..a2322975f 100644 --- a/proto/lib/livebook_proto/app_deployment_stopped.pb.ex +++ b/proto/lib/livebook_proto/app_deployment_stopped.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.AppDeploymentStopped do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :id, 1, type: :string end diff --git a/proto/lib/livebook_proto/app_deployment_updated.pb.ex b/proto/lib/livebook_proto/app_deployment_updated.pb.ex index 062d22a1a..4167f7746 100644 --- a/proto/lib/livebook_proto/app_deployment_updated.pb.ex +++ b/proto/lib/livebook_proto/app_deployment_updated.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.AppDeploymentUpdated do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :app_deployment, 1, type: LivebookProto.AppDeployment, json_name: "appDeployment" end diff --git a/proto/lib/livebook_proto/authorization_group.pb.ex b/proto/lib/livebook_proto/authorization_group.pb.ex new file mode 100644 index 000000000..5f685aeac --- /dev/null +++ b/proto/lib/livebook_proto/authorization_group.pb.ex @@ -0,0 +1,6 @@ +defmodule LivebookProto.AuthorizationGroup do + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 + + field :oidc_provider_id, 1, type: :string, json_name: "oidcProviderId" + field :group_name, 2, type: :string, json_name: "groupName" +end diff --git a/proto/lib/livebook_proto/billing_status.pb.ex b/proto/lib/livebook_proto/billing_status.pb.ex index 7a1ec64f9..754921506 100644 --- a/proto/lib/livebook_proto/billing_status.pb.ex +++ b/proto/lib/livebook_proto/billing_status.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.BillingStatus do - use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 oneof :type, 0 diff --git a/proto/lib/livebook_proto/billing_status_canceled.pb.ex b/proto/lib/livebook_proto/billing_status_canceled.pb.ex index d101be913..0b230f83f 100644 --- a/proto/lib/livebook_proto/billing_status_canceled.pb.ex +++ b/proto/lib/livebook_proto/billing_status_canceled.pb.ex @@ -1,3 +1,3 @@ defmodule LivebookProto.BillingStatusCanceled do - use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 end diff --git a/proto/lib/livebook_proto/billing_status_canceling.pb.ex b/proto/lib/livebook_proto/billing_status_canceling.pb.ex index e81b6649e..c4a16b908 100644 --- a/proto/lib/livebook_proto/billing_status_canceling.pb.ex +++ b/proto/lib/livebook_proto/billing_status_canceling.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.BillingStatusCanceling do - use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :cancel_at, 1, type: :int64, json_name: "cancelAt" end diff --git a/proto/lib/livebook_proto/billing_status_trial_ended.pb.ex b/proto/lib/livebook_proto/billing_status_trial_ended.pb.ex index a888753ce..689110e42 100644 --- a/proto/lib/livebook_proto/billing_status_trial_ended.pb.ex +++ b/proto/lib/livebook_proto/billing_status_trial_ended.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.BillingStatusTrialEnded do - use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :trial_ends_at, 1, type: :int64, json_name: "trialEndsAt" end diff --git a/proto/lib/livebook_proto/billing_status_trialing.pb.ex b/proto/lib/livebook_proto/billing_status_trialing.pb.ex index 363b61d41..81ed4bbbb 100644 --- a/proto/lib/livebook_proto/billing_status_trialing.pb.ex +++ b/proto/lib/livebook_proto/billing_status_trialing.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.BillingStatusTrialing do - use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :trial_ends_at, 1, type: :int64, json_name: "trialEndsAt" end diff --git a/proto/lib/livebook_proto/deployment_group.pb.ex b/proto/lib/livebook_proto/deployment_group.pb.ex index a1be389aa..17de2ca14 100644 --- a/proto/lib/livebook_proto/deployment_group.pb.ex +++ b/proto/lib/livebook_proto/deployment_group.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.DeploymentGroup do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :id, 1, type: :string field :name, 2, type: :string @@ -17,5 +17,9 @@ defmodule LivebookProto.DeploymentGroup do json_name: "environmentVariables" field :teams_auth, 11, type: :bool, json_name: "teamsAuth" - field :authorization_groups, 12, repeated: true, type: :string, json_name: "authorizationGroups" + + field :authorization_groups, 12, + repeated: true, + type: LivebookProto.AuthorizationGroup, + json_name: "authorizationGroups" end diff --git a/proto/lib/livebook_proto/deployment_group_created.pb.ex b/proto/lib/livebook_proto/deployment_group_created.pb.ex index 2831fc43b..566c53055 100644 --- a/proto/lib/livebook_proto/deployment_group_created.pb.ex +++ b/proto/lib/livebook_proto/deployment_group_created.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.DeploymentGroupCreated do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :id, 1, type: :string field :name, 2, type: :string diff --git a/proto/lib/livebook_proto/deployment_group_deleted.pb.ex b/proto/lib/livebook_proto/deployment_group_deleted.pb.ex index 3ae250d03..de9b6b812 100644 --- a/proto/lib/livebook_proto/deployment_group_deleted.pb.ex +++ b/proto/lib/livebook_proto/deployment_group_deleted.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.DeploymentGroupDeleted do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :id, 1, type: :string end diff --git a/proto/lib/livebook_proto/deployment_group_secret.pb.ex b/proto/lib/livebook_proto/deployment_group_secret.pb.ex index e910beeb2..1096ded62 100644 --- a/proto/lib/livebook_proto/deployment_group_secret.pb.ex +++ b/proto/lib/livebook_proto/deployment_group_secret.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.DeploymentGroupSecret do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :name, 1, type: :string field :value, 2, type: :string diff --git a/proto/lib/livebook_proto/deployment_group_updated.pb.ex b/proto/lib/livebook_proto/deployment_group_updated.pb.ex index 457837597..d5c99b8d7 100644 --- a/proto/lib/livebook_proto/deployment_group_updated.pb.ex +++ b/proto/lib/livebook_proto/deployment_group_updated.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.DeploymentGroupUpdated do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :id, 1, type: :string field :name, 2, type: :string @@ -16,5 +16,9 @@ defmodule LivebookProto.DeploymentGroupUpdated do json_name: "environmentVariables" field :teams_auth, 10, type: :bool, json_name: "teamsAuth" - field :authorization_groups, 11, repeated: true, type: :string, json_name: "authorizationGroups" + + field :authorization_groups, 11, + repeated: true, + type: LivebookProto.AuthorizationGroup, + json_name: "authorizationGroups" end diff --git a/proto/lib/livebook_proto/environment_variable.pb.ex b/proto/lib/livebook_proto/environment_variable.pb.ex index 8efafb9ab..4267f17bc 100644 --- a/proto/lib/livebook_proto/environment_variable.pb.ex +++ b/proto/lib/livebook_proto/environment_variable.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.EnvironmentVariable do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :name, 1, type: :string field :value, 2, type: :string diff --git a/proto/lib/livebook_proto/error.pb.ex b/proto/lib/livebook_proto/error.pb.ex index 272f300b6..11c9ee00a 100644 --- a/proto/lib/livebook_proto/error.pb.ex +++ b/proto/lib/livebook_proto/error.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.Error do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :details, 1, type: :string end diff --git a/proto/lib/livebook_proto/event.pb.ex b/proto/lib/livebook_proto/event.pb.ex index 41fe6e401..b8354dc5b 100644 --- a/proto/lib/livebook_proto/event.pb.ex +++ b/proto/lib/livebook_proto/event.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.Event do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 oneof :type, 0 diff --git a/proto/lib/livebook_proto/file_system.pb.ex b/proto/lib/livebook_proto/file_system.pb.ex index a81c74bef..729ca5dc8 100644 --- a/proto/lib/livebook_proto/file_system.pb.ex +++ b/proto/lib/livebook_proto/file_system.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.FileSystem do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :id, 1, type: :string field :name, 2, type: :string diff --git a/proto/lib/livebook_proto/file_system_created.pb.ex b/proto/lib/livebook_proto/file_system_created.pb.ex index aa94c563d..90f061584 100644 --- a/proto/lib/livebook_proto/file_system_created.pb.ex +++ b/proto/lib/livebook_proto/file_system_created.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.FileSystemCreated do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :id, 1, type: :string field :name, 2, type: :string diff --git a/proto/lib/livebook_proto/file_system_deleted.pb.ex b/proto/lib/livebook_proto/file_system_deleted.pb.ex index b09fae535..a48ccf2b2 100644 --- a/proto/lib/livebook_proto/file_system_deleted.pb.ex +++ b/proto/lib/livebook_proto/file_system_deleted.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.FileSystemDeleted do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :id, 1, type: :string end diff --git a/proto/lib/livebook_proto/file_system_updated.pb.ex b/proto/lib/livebook_proto/file_system_updated.pb.ex index 50d8e6eff..23a7b2a77 100644 --- a/proto/lib/livebook_proto/file_system_updated.pb.ex +++ b/proto/lib/livebook_proto/file_system_updated.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.FileSystemUpdated do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :id, 1, type: :string field :name, 2, type: :string diff --git a/proto/lib/livebook_proto/org_updated.pb.ex b/proto/lib/livebook_proto/org_updated.pb.ex index af0eb8fc7..14877b61b 100644 --- a/proto/lib/livebook_proto/org_updated.pb.ex +++ b/proto/lib/livebook_proto/org_updated.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.OrgUpdated do - use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :id, 1, type: :string field :billing_status, 3, type: LivebookProto.BillingStatus, json_name: "billingStatus" diff --git a/proto/lib/livebook_proto/secret.pb.ex b/proto/lib/livebook_proto/secret.pb.ex index badcb6a8f..186168227 100644 --- a/proto/lib/livebook_proto/secret.pb.ex +++ b/proto/lib/livebook_proto/secret.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.Secret do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :name, 1, type: :string field :value, 2, type: :string diff --git a/proto/lib/livebook_proto/secret_created.pb.ex b/proto/lib/livebook_proto/secret_created.pb.ex index e5c6a82e7..f2be83c29 100644 --- a/proto/lib/livebook_proto/secret_created.pb.ex +++ b/proto/lib/livebook_proto/secret_created.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.SecretCreated do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :name, 1, type: :string field :value, 2, type: :string diff --git a/proto/lib/livebook_proto/secret_deleted.pb.ex b/proto/lib/livebook_proto/secret_deleted.pb.ex index bbc4c9cf2..8d11203cf 100644 --- a/proto/lib/livebook_proto/secret_deleted.pb.ex +++ b/proto/lib/livebook_proto/secret_deleted.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.SecretDeleted do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :name, 1, type: :string end diff --git a/proto/lib/livebook_proto/secret_updated.pb.ex b/proto/lib/livebook_proto/secret_updated.pb.ex index 6b6a701b6..352576c3e 100644 --- a/proto/lib/livebook_proto/secret_updated.pb.ex +++ b/proto/lib/livebook_proto/secret_updated.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.SecretUpdated do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :name, 1, type: :string field :value, 2, type: :string diff --git a/proto/lib/livebook_proto/user_connected.pb.ex b/proto/lib/livebook_proto/user_connected.pb.ex index 3f0272c68..251ed5a64 100644 --- a/proto/lib/livebook_proto/user_connected.pb.ex +++ b/proto/lib/livebook_proto/user_connected.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.UserConnected do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :name, 1, type: :string field :secrets, 2, repeated: true, type: LivebookProto.Secret diff --git a/proto/lib/livebook_proto/user_deleted.pb.ex b/proto/lib/livebook_proto/user_deleted.pb.ex index bb71b74c1..a6915bacb 100644 --- a/proto/lib/livebook_proto/user_deleted.pb.ex +++ b/proto/lib/livebook_proto/user_deleted.pb.ex @@ -1,5 +1,5 @@ defmodule LivebookProto.UserDeleted do - use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3 field :id, 1, type: :string end diff --git a/proto/messages.proto b/proto/messages.proto index ae72f8af1..e2d42f839 100644 --- a/proto/messages.proto +++ b/proto/messages.proto @@ -66,7 +66,7 @@ message DeploymentGroup { string url = 9; repeated EnvironmentVariable environment_variables = 10; bool teams_auth = 11; - repeated string authorization_groups = 12; + repeated AuthorizationGroup authorization_groups = 12; } message DeploymentGroupCreated { @@ -92,7 +92,7 @@ message DeploymentGroupUpdated { string url = 8; repeated EnvironmentVariable environment_variables = 9; bool teams_auth = 10; - repeated string authorization_groups = 11; + repeated AuthorizationGroup authorization_groups = 11; } message DeploymentGroupDeleted { @@ -139,7 +139,7 @@ message AppDeployment { bool multi_session = 9; string access_type = 10; string version = 11; - repeated string authorization_groups = 12; + repeated AuthorizationGroup authorization_groups = 12; } message AppDeploymentStarted { @@ -206,6 +206,11 @@ message EnvironmentVariable { string value = 2; } +message AuthorizationGroup { + string oidc_provider_id = 1; + string group_name = 2; +} + message Event { oneof type { SecretCreated secret_created = 1;