From 379316d7eaf68dbd79d7558740997750fad2fdb6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 23 Jan 2023 12:21:31 -0500 Subject: [PATCH] feat: updates to protobuf definitions for flipt v1.18.0 (#21) Co-authored-by: flipt-bot --- lib/auth/auth_pb.rb | 99 ++++++++++++++++++++++++++++++++++++ lib/auth/auth_services_pb.rb | 71 ++++++++++++++++++++++++++ lib/meta/meta_pb.rb | 18 +++++++ lib/meta/meta_services_pb.rb | 25 +++++++++ 4 files changed, 213 insertions(+) create mode 100644 lib/auth/auth_pb.rb create mode 100644 lib/auth/auth_services_pb.rb create mode 100644 lib/meta/meta_pb.rb create mode 100644 lib/meta/meta_services_pb.rb diff --git a/lib/auth/auth_pb.rb b/lib/auth/auth_pb.rb new file mode 100644 index 0000000..21ec4d7 --- /dev/null +++ b/lib/auth/auth_pb.rb @@ -0,0 +1,99 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: auth/auth.proto + +require 'google/protobuf' + +require 'google/protobuf/empty_pb' +require 'google/protobuf/timestamp_pb' +require 'google/protobuf/struct_pb' +require 'protoc-gen-openapiv2/options/annotations_pb' + +Google::Protobuf::DescriptorPool.generated_pool.build do + add_file("auth/auth.proto", :syntax => :proto3) do + add_message "flipt.auth.MethodInfo" do + optional :method, :enum, 1, "flipt.auth.Method", json_name: "method" + optional :enabled, :bool, 2, json_name: "enabled" + optional :session_compatible, :bool, 3, json_name: "sessionCompatible" + optional :metadata, :message, 4, "google.protobuf.Struct", json_name: "metadata" + end + add_message "flipt.auth.ListAuthenticationMethodsResponse" do + repeated :methods, :message, 1, "flipt.auth.MethodInfo", json_name: "methods" + end + add_message "flipt.auth.Authentication" do + optional :id, :string, 1, json_name: "id" + optional :method, :enum, 2, "flipt.auth.Method", json_name: "method" + optional :expires_at, :message, 3, "google.protobuf.Timestamp", json_name: "expiresAt" + optional :created_at, :message, 4, "google.protobuf.Timestamp", json_name: "createdAt" + optional :updated_at, :message, 5, "google.protobuf.Timestamp", json_name: "updatedAt" + map :metadata, :string, :string, 6 + end + add_message "flipt.auth.GetAuthenticationRequest" do + optional :id, :string, 1, json_name: "id" + end + add_message "flipt.auth.ListAuthenticationsRequest" do + optional :method, :enum, 1, "flipt.auth.Method", json_name: "method" + optional :limit, :int32, 2, json_name: "limit" + optional :page_token, :string, 3, json_name: "pageToken" + end + add_message "flipt.auth.ListAuthenticationsResponse" do + repeated :authentications, :message, 1, "flipt.auth.Authentication", json_name: "authentications" + optional :next_page_token, :string, 2, json_name: "nextPageToken" + end + add_message "flipt.auth.DeleteAuthenticationRequest" do + optional :id, :string, 1, json_name: "id" + end + add_message "flipt.auth.ExpireAuthenticationSelfRequest" do + proto3_optional :expires_at, :message, 1, "google.protobuf.Timestamp", json_name: "expiresAt" + end + add_message "flipt.auth.CreateTokenRequest" do + optional :name, :string, 1, json_name: "name" + optional :description, :string, 2, json_name: "description" + optional :expires_at, :message, 3, "google.protobuf.Timestamp", json_name: "expiresAt" + end + add_message "flipt.auth.CreateTokenResponse" do + optional :client_token, :string, 1, json_name: "clientToken" + optional :authentication, :message, 2, "flipt.auth.Authentication", json_name: "authentication" + end + add_message "flipt.auth.AuthorizeURLRequest" do + optional :provider, :string, 1, json_name: "provider" + optional :state, :string, 2, json_name: "state" + end + add_message "flipt.auth.AuthorizeURLResponse" do + optional :authorize_url, :string, 1, json_name: "authorizeUrl" + end + add_message "flipt.auth.CallbackRequest" do + optional :provider, :string, 1, json_name: "provider" + optional :code, :string, 2, json_name: "code" + optional :state, :string, 3, json_name: "state" + end + add_message "flipt.auth.CallbackResponse" do + optional :client_token, :string, 1, json_name: "clientToken" + optional :authentication, :message, 2, "flipt.auth.Authentication", json_name: "authentication" + end + add_enum "flipt.auth.Method" do + value :METHOD_NONE, 0 + value :METHOD_TOKEN, 1 + value :METHOD_OIDC, 2 + end + end +end + +module Flipt + module Auth + MethodInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("flipt.auth.MethodInfo").msgclass + ListAuthenticationMethodsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("flipt.auth.ListAuthenticationMethodsResponse").msgclass + Authentication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("flipt.auth.Authentication").msgclass + GetAuthenticationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("flipt.auth.GetAuthenticationRequest").msgclass + ListAuthenticationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("flipt.auth.ListAuthenticationsRequest").msgclass + ListAuthenticationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("flipt.auth.ListAuthenticationsResponse").msgclass + DeleteAuthenticationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("flipt.auth.DeleteAuthenticationRequest").msgclass + ExpireAuthenticationSelfRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("flipt.auth.ExpireAuthenticationSelfRequest").msgclass + CreateTokenRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("flipt.auth.CreateTokenRequest").msgclass + CreateTokenResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("flipt.auth.CreateTokenResponse").msgclass + AuthorizeURLRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("flipt.auth.AuthorizeURLRequest").msgclass + AuthorizeURLResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("flipt.auth.AuthorizeURLResponse").msgclass + CallbackRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("flipt.auth.CallbackRequest").msgclass + CallbackResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("flipt.auth.CallbackResponse").msgclass + Method = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("flipt.auth.Method").enummodule + end +end diff --git a/lib/auth/auth_services_pb.rb b/lib/auth/auth_services_pb.rb new file mode 100644 index 0000000..7c82cc9 --- /dev/null +++ b/lib/auth/auth_services_pb.rb @@ -0,0 +1,71 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: auth/auth.proto for package 'flipt.auth' + +require 'grpc' +require 'auth/auth_pb' + +module Flipt + module Auth + module PublicAuthenticationService + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'flipt.auth.PublicAuthenticationService' + + rpc :ListAuthenticationMethods, ::Google::Protobuf::Empty, ::Flipt::Auth::ListAuthenticationMethodsResponse + end + + Stub = Service.rpc_stub_class + end + module AuthenticationService + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'flipt.auth.AuthenticationService' + + rpc :GetAuthenticationSelf, ::Google::Protobuf::Empty, ::Flipt::Auth::Authentication + rpc :GetAuthentication, ::Flipt::Auth::GetAuthenticationRequest, ::Flipt::Auth::Authentication + rpc :ListAuthentications, ::Flipt::Auth::ListAuthenticationsRequest, ::Flipt::Auth::ListAuthenticationsResponse + rpc :DeleteAuthentication, ::Flipt::Auth::DeleteAuthenticationRequest, ::Google::Protobuf::Empty + rpc :ExpireAuthenticationSelf, ::Flipt::Auth::ExpireAuthenticationSelfRequest, ::Google::Protobuf::Empty + end + + Stub = Service.rpc_stub_class + end + module AuthenticationMethodTokenService + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'flipt.auth.AuthenticationMethodTokenService' + + rpc :CreateToken, ::Flipt::Auth::CreateTokenRequest, ::Flipt::Auth::CreateTokenResponse + end + + Stub = Service.rpc_stub_class + end + module AuthenticationMethodOIDCService + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'flipt.auth.AuthenticationMethodOIDCService' + + rpc :AuthorizeURL, ::Flipt::Auth::AuthorizeURLRequest, ::Flipt::Auth::AuthorizeURLResponse + rpc :Callback, ::Flipt::Auth::CallbackRequest, ::Flipt::Auth::CallbackResponse + end + + Stub = Service.rpc_stub_class + end + end +end diff --git a/lib/meta/meta_pb.rb b/lib/meta/meta_pb.rb new file mode 100644 index 0000000..8f2a571 --- /dev/null +++ b/lib/meta/meta_pb.rb @@ -0,0 +1,18 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: meta/meta.proto + +require 'google/protobuf' + +require 'google/api/httpbody_pb' +require 'google/protobuf/empty_pb' +require 'protoc-gen-openapiv2/options/annotations_pb' + +Google::Protobuf::DescriptorPool.generated_pool.build do + add_file("meta/meta.proto", :syntax => :proto3) do + end +end + +module Flipt + module Meta + end +end diff --git a/lib/meta/meta_services_pb.rb b/lib/meta/meta_services_pb.rb new file mode 100644 index 0000000..2ae5526 --- /dev/null +++ b/lib/meta/meta_services_pb.rb @@ -0,0 +1,25 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: meta/meta.proto for package 'flipt.meta' + +require 'grpc' +require 'meta/meta_pb' + +module Flipt + module Meta + module MetadataService + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'flipt.meta.MetadataService' + + rpc :GetConfiguration, ::Google::Protobuf::Empty, ::Google::Api::HttpBody + rpc :GetInfo, ::Google::Protobuf::Empty, ::Google::Api::HttpBody + end + + Stub = Service.rpc_stub_class + end + end +end