Skip to content

Commit ce6e12f

Browse files
committed
chore(rbac/ce): refresh protos
1 parent e3772f2 commit ce6e12f

File tree

4 files changed

+84
-0
lines changed

4 files changed

+84
-0
lines changed

rbac/ce/lib/internal_api/organization.pb.ex

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ defmodule InternalApi.Organization.DescribeRequest do
4646
field(:org_id, 1, type: :string, json_name: "orgId")
4747
field(:org_username, 2, type: :string, json_name: "orgUsername")
4848
field(:include_quotas, 3, type: :bool, json_name: "includeQuotas")
49+
field(:soft_deleted, 4, type: :bool, json_name: "softDeleted")
4950
end
5051

5152
defmodule InternalApi.Organization.DescribeResponse do
@@ -63,6 +64,7 @@ defmodule InternalApi.Organization.DescribeManyRequest do
6364
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0"
6465

6566
field(:org_ids, 1, repeated: true, type: :string, json_name: "orgIds")
67+
field(:soft_deleted, 2, type: :bool, json_name: "softDeleted")
6668
end
6769

6870
defmodule InternalApi.Organization.DescribeManyResponse do
@@ -83,6 +85,7 @@ defmodule InternalApi.Organization.ListRequest do
8385
field(:order, 4, type: InternalApi.Organization.ListRequest.Order, enum: true)
8486
field(:page_size, 5, type: :int32, json_name: "pageSize")
8587
field(:page_token, 6, type: :string, json_name: "pageToken")
88+
field(:soft_deleted, 7, type: :bool, json_name: "softDeleted")
8689
end
8790

8891
defmodule InternalApi.Organization.ListResponse do
@@ -369,6 +372,14 @@ defmodule InternalApi.Organization.DestroyRequest do
369372
field(:org_id, 1, type: :string, json_name: "orgId")
370373
end
371374

375+
defmodule InternalApi.Organization.RestoreRequest do
376+
@moduledoc false
377+
378+
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0"
379+
380+
field(:org_id, 1, type: :string, json_name: "orgId")
381+
end
382+
372383
defmodule InternalApi.Organization.Organization do
373384
@moduledoc false
374385

@@ -620,6 +631,15 @@ defmodule InternalApi.Organization.OrganizationDailyUpdate do
620631
field(:timestamp, 11, type: Google.Protobuf.Timestamp)
621632
end
622633

634+
defmodule InternalApi.Organization.OrganizationRestored do
635+
@moduledoc false
636+
637+
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0"
638+
639+
field(:org_id, 1, type: :string, json_name: "orgId")
640+
field(:timestamp, 2, type: Google.Protobuf.Timestamp)
641+
end
642+
623643
defmodule InternalApi.Organization.OrganizationService.Service do
624644
@moduledoc false
625645

@@ -701,6 +721,8 @@ defmodule InternalApi.Organization.OrganizationService.Service do
701721

702722
rpc(:Destroy, InternalApi.Organization.DestroyRequest, Google.Protobuf.Empty)
703723

724+
rpc(:Restore, InternalApi.Organization.RestoreRequest, Google.Protobuf.Empty)
725+
704726
rpc(
705727
:RepositoryIntegrators,
706728
InternalApi.Organization.RepositoryIntegratorsRequest,

rbac/ce/lib/internal_api/projecthub.pb.ex

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ defmodule InternalApi.Projecthub.Project.Spec.Repository.RunType do
3939
field(:TAGS, 1)
4040
field(:PULL_REQUESTS, 2)
4141
field(:FORKED_PULL_REQUESTS, 3)
42+
field(:DRAFT_PULL_REQUESTS, 4)
4243
end
4344

4445
defmodule InternalApi.Projecthub.Project.Spec.Repository.Status.PipelineFile.Level do
@@ -391,6 +392,7 @@ defmodule InternalApi.Projecthub.ListRequest do
391392
field(:pagination, 2, type: InternalApi.Projecthub.PaginationRequest)
392393
field(:owner_id, 3, type: :string, json_name: "ownerId")
393394
field(:repo_url, 4, type: :string, json_name: "repoUrl")
395+
field(:soft_deleted, 5, type: :bool, json_name: "softDeleted")
394396
end
395397

396398
defmodule InternalApi.Projecthub.ListResponse do
@@ -437,6 +439,7 @@ defmodule InternalApi.Projecthub.DescribeRequest do
437439
field(:id, 2, type: :string)
438440
field(:name, 3, type: :string)
439441
field(:detailed, 4, type: :bool)
442+
field(:soft_deleted, 5, type: :bool, json_name: "softDeleted")
440443
end
441444

442445
defmodule InternalApi.Projecthub.DescribeResponse do
@@ -455,6 +458,7 @@ defmodule InternalApi.Projecthub.DescribeManyRequest do
455458

456459
field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta)
457460
field(:ids, 2, repeated: true, type: :string)
461+
field(:soft_deleted, 3, type: :bool, json_name: "softDeleted")
458462
end
459463

460464
defmodule InternalApi.Projecthub.DescribeManyResponse do
@@ -522,6 +526,23 @@ defmodule InternalApi.Projecthub.DestroyResponse do
522526
field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta)
523527
end
524528

529+
defmodule InternalApi.Projecthub.RestoreRequest do
530+
@moduledoc false
531+
532+
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0"
533+
534+
field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta)
535+
field(:id, 2, type: :string)
536+
end
537+
538+
defmodule InternalApi.Projecthub.RestoreResponse do
539+
@moduledoc false
540+
541+
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0"
542+
543+
field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta)
544+
end
545+
525546
defmodule InternalApi.Projecthub.UsersRequest do
526547
@moduledoc false
527548

@@ -557,6 +578,7 @@ defmodule InternalApi.Projecthub.CheckDeployKeyResponse.DeployKey do
557578
field(:title, 1, type: :string)
558579
field(:fingerprint, 2, type: :string)
559580
field(:created_at, 3, type: Google.Protobuf.Timestamp, json_name: "createdAt")
581+
field(:public_key, 4, type: :string, json_name: "publicKey")
560582
end
561583

562584
defmodule InternalApi.Projecthub.CheckDeployKeyResponse do
@@ -589,6 +611,7 @@ defmodule InternalApi.Projecthub.RegenerateDeployKeyResponse.DeployKey do
589611
field(:title, 1, type: :string)
590612
field(:fingerprint, 2, type: :string)
591613
field(:created_at, 3, type: Google.Protobuf.Timestamp, json_name: "createdAt")
614+
field(:public_key, 4, type: :string, json_name: "publicKey")
592615
end
593616

594617
defmodule InternalApi.Projecthub.RegenerateDeployKeyResponse do
@@ -718,6 +741,24 @@ defmodule InternalApi.Projecthub.FinishOnboardingResponse do
718741
field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta)
719742
end
720743

744+
defmodule InternalApi.Projecthub.RegenerateWebhookSecretRequest do
745+
@moduledoc false
746+
747+
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0"
748+
749+
field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta)
750+
field(:id, 2, type: :string)
751+
end
752+
753+
defmodule InternalApi.Projecthub.RegenerateWebhookSecretResponse do
754+
@moduledoc false
755+
756+
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0"
757+
758+
field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta)
759+
field(:secret, 2, type: :string)
760+
end
761+
721762
defmodule InternalApi.Projecthub.ProjectCreated do
722763
@moduledoc false
723764

@@ -738,6 +779,16 @@ defmodule InternalApi.Projecthub.ProjectDeleted do
738779
field(:org_id, 3, type: :string, json_name: "orgId")
739780
end
740781

782+
defmodule InternalApi.Projecthub.ProjectRestored do
783+
@moduledoc false
784+
785+
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0"
786+
787+
field(:project_id, 1, type: :string, json_name: "projectId")
788+
field(:timestamp, 2, type: Google.Protobuf.Timestamp)
789+
field(:org_id, 3, type: :string, json_name: "orgId")
790+
end
791+
741792
defmodule InternalApi.Projecthub.ProjectUpdated do
742793
@moduledoc false
743794

@@ -786,6 +837,8 @@ defmodule InternalApi.Projecthub.ProjectService.Service do
786837

787838
rpc(:Destroy, InternalApi.Projecthub.DestroyRequest, InternalApi.Projecthub.DestroyResponse)
788839

840+
rpc(:Restore, InternalApi.Projecthub.RestoreRequest, InternalApi.Projecthub.RestoreResponse)
841+
789842
rpc(:Users, InternalApi.Projecthub.UsersRequest, InternalApi.Projecthub.UsersResponse)
790843

791844
rpc(
@@ -812,6 +865,12 @@ defmodule InternalApi.Projecthub.ProjectService.Service do
812865
InternalApi.Projecthub.RegenerateWebhookResponse
813866
)
814867

868+
rpc(
869+
:RegenerateWebhookSecret,
870+
InternalApi.Projecthub.RegenerateWebhookSecretRequest,
871+
InternalApi.Projecthub.RegenerateWebhookSecretResponse
872+
)
873+
815874
rpc(
816875
:ChangeProjectOwner,
817876
InternalApi.Projecthub.ChangeProjectOwnerRequest,

rbac/ce/lib/internal_api/rbac.pb.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ defmodule InternalApi.RBAC.SubjectType do
55

66
field(:USER, 0)
77
field(:GROUP, 1)
8+
field(:SERVICE_ACCOUNT, 2)
89
end
910

1011
defmodule InternalApi.RBAC.Scope do
@@ -29,6 +30,7 @@ defmodule InternalApi.RBAC.RoleBindingSource do
2930
field(:ROLE_BINDING_SOURCE_GITLAB, 4)
3031
field(:ROLE_BINDING_SOURCE_SCIM, 5)
3132
field(:ROLE_BINDING_SOURCE_INHERITED_FROM_ORG_ROLE, 6)
33+
field(:ROLE_BINDING_SOURCE_SAML_JIT, 7)
3234
end
3335

3436
defmodule InternalApi.RBAC.ListUserPermissionsRequest do

rbac/ce/lib/internal_api/user.pb.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ defmodule InternalApi.User.User.CreationSource do
5656

5757
field(:NOT_SET, 0)
5858
field(:OKTA, 1)
59+
field(:SERVICE_ACCOUNT, 2)
5960
end
6061

6162
defmodule InternalApi.User.ListFavoritesRequest do

0 commit comments

Comments
 (0)