defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.ObserverOwner do @moduledoc false use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :None, 0 field :Client, 1 field :Kernel, 2 end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.AddWebhooks do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :EventStore, 1, type: :string field :Owner, 2, type: Cratis.Chronicle.Contracts.Observation.Webhooks.ObserverOwner, enum: true field :Webhooks, 3, repeated: true, type: Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookDefinition end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.BasicAuthorization do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Username, 1, type: :string field :Password, 2, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.BearerTokenAuthorization do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Token, 1, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.EventType do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Id, 1, type: :string field :Generation, 2, type: :uint32 field :Tombstone, 3, type: :bool end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.GetWebhooksRequest do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :EventStore, 1, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.IEnumerable_WebhookDefinition do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :items, 1, repeated: true, type: Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookDefinition end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.OAuthAuthorization do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Authority, 1, type: :string field :ClientId, 2, type: :string field :ClientSecret, 3, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.OneOf_BasicAuthorization_BearerTokenAuthorization_OAuthAuthorization do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Value0, 1, type: Cratis.Chronicle.Contracts.Observation.Webhooks.BasicAuthorization field :Value1, 2, type: Cratis.Chronicle.Contracts.Observation.Webhooks.BearerTokenAuthorization field :Value2, 3, type: Cratis.Chronicle.Contracts.Observation.Webhooks.OAuthAuthorization end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.RemoveWebhooks do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :EventStore, 1, type: :string field :Webhooks, 3, repeated: true, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.TestOAuthAuthorizationRequest do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Authority, 1, type: :string field :ClientId, 2, type: :string field :ClientSecret, 3, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.TestOAuthAuthorizationResponse do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Success, 1, type: :bool field :ErrorMessage, 2, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.TestWebhookRequest do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Target, 1, type: Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookTarget end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.TestWebhookResponse do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Success, 1, type: :bool field :ErrorMessage, 2, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookDefinition do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :EventSequenceId, 1, type: :string field :Identifier, 2, type: :string field :EventTypes, 3, repeated: true, type: Cratis.Chronicle.Contracts.Observation.Webhooks.EventType field :Target, 4, type: Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookTarget field :IsReplayable, 5, type: :bool field :IsActive, 6, type: :bool end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookTarget.HeadersEntry do @moduledoc false use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :key, 1, type: :string field :value, 2, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookTarget do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Url, 1, type: :string field :Authorization, 2, type: Cratis.Chronicle.Contracts.Observation.Webhooks.OneOf_BasicAuthorization_BearerTokenAuthorization_OAuthAuthorization field :Headers, 3, repeated: true, type: Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookTarget.HeadersEntry, map: true end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.Webhooks.Service do @moduledoc false use GRPC.Service, name: "Cratis.Chronicle.Contracts.Observation.Webhooks.Webhooks", protoc_gen_elixir_version: "0.17.0" rpc :Add, Cratis.Chronicle.Contracts.Observation.Webhooks.AddWebhooks, Google.Protobuf.Empty rpc :GetWebhooks, Cratis.Chronicle.Contracts.Observation.Webhooks.GetWebhooksRequest, Cratis.Chronicle.Contracts.Observation.Webhooks.IEnumerable_WebhookDefinition rpc :ObserveWebhooks, Cratis.Chronicle.Contracts.Observation.Webhooks.GetWebhooksRequest, stream(Cratis.Chronicle.Contracts.Observation.Webhooks.IEnumerable_WebhookDefinition) rpc :Remove, Cratis.Chronicle.Contracts.Observation.Webhooks.RemoveWebhooks, Google.Protobuf.Empty rpc :TestOAuthAuthorization, Cratis.Chronicle.Contracts.Observation.Webhooks.TestOAuthAuthorizationRequest, Cratis.Chronicle.Contracts.Observation.Webhooks.TestOAuthAuthorizationResponse rpc :TestWebhook, Cratis.Chronicle.Contracts.Observation.Webhooks.TestWebhookRequest, Cratis.Chronicle.Contracts.Observation.Webhooks.TestWebhookResponse end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.Webhooks.Stub do @moduledoc false use GRPC.Stub, service: Cratis.Chronicle.Contracts.Observation.Webhooks.Webhooks.Service end