Packages
cratis_chronicle_contracts
17.0.1
17.0.2
17.0.1
17.0.0
16.45.3
16.45.2
16.45.1
16.45.0
16.44.2
16.44.1
16.44.0
16.43.0
16.42.2
16.42.1
16.42.0
16.41.0
16.40.0
16.39.2
16.39.1
16.39.0
16.38.6
16.38.5
16.38.4
16.38.3
16.38.2
16.38.1
16.38.0
16.37.2
16.37.1
16.37.0
16.36.3
16.36.2
16.36.1
16.36.0
16.35.8
16.35.7
16.35.6
16.35.5
16.35.4
16.35.3
16.35.2
16.35.1
16.35.0
16.34.3
16.34.2
16.34.1
16.34.0
16.33.1
16.33.0
16.32.0
16.31.0
16.30.1
16.30.0
16.29.1
16.29.0
16.28.0
16.27.0
16.26.3
16.26.2
16.26.1
16.26.0
16.25.0
16.24.1
16.24.0
16.23.0
16.22.4
16.22.3
16.22.2
16.22.1
16.22.0
16.21.0
16.20.0
16.19.3
16.19.2
16.19.1
16.19.0
16.18.0
16.17.0
16.16.1
16.16.0
16.15.0
16.13.4
16.13.3
16.13.2
16.13.1
16.13.0
16.12.0
16.11.1
16.11.0
16.10.0
16.9.4
16.9.3
16.9.2
16.9.1
16.9.0
16.8.1
16.8.0
16.7.0
16.6.1
16.6.0
16.5.0
16.4.1
16.4.0
16.3.1
16.3.0
16.2.1
16.2.0
16.1.1
16.1.0
16.0.6
16.0.5
16.0.4
16.0.3
16.0.2
16.0.1
16.0.0
15.41.0
15.40.0
15.39.1
15.39.0
15.38.4
15.38.3
15.38.2
15.38.1
15.38.0
15.37.0
15.36.1
15.36.0
15.35.8
15.35.7
15.35.6
15.35.5
15.35.4
15.35.3
15.35.2
15.35.1
15.35.0
15.34.13
15.34.12
15.34.11
15.34.10
15.34.9
15.34.8
15.34.7
15.34.6
15.34.5
15.34.4
15.34.3
15.34.2
15.31.5
15.31.4
15.31.3
15.31.2
15.31.1
15.31.0
15.30.2
15.30.1
15.30.0
15.29.8
15.29.7
15.29.6
15.29.4
15.29.3
15.29.2
15.29.1
15.29.0
15.28.0
15.27.3
15.27.2
15.27.1
15.27.0
15.26.11
15.26.10
15.26.9
15.26.8
15.26.7
15.26.6
15.26.5
15.26.4
15.26.3
15.26.1
15.25.5
15.25.4
15.25.3
Generated Elixir gRPC contracts for Cratis Chronicle - the open-source event-sourcing database
Current section
Files
Jump to
Current section
Files
lib/generated/observation_webhooks.pb.ex
defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.AuthorizationType do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :None, 0
field :Basic, 1
field :Bearer, 2
field :OAuth, 3
end
defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.ValidationResultSeverity do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Unknown, 0
field :Information, 1
field :Warning, 2
field :Error, 3
end
defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.AddWebhookRequest.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.AddWebhookRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Name, 2, type: :string
field :Url, 3, type: :string
field :EventSequenceId, 4, type: :string
field :EventTypes, 5,
repeated: true,
type: Cratis.Chronicle.Contracts.Observation.Webhooks.EventType
field :AuthorizationType, 6,
type: Cratis.Chronicle.Contracts.Observation.Webhooks.AuthorizationType,
enum: true
field :BasicUsername, 7, type: :string
field :BasicPassword, 8, type: :string
field :BearerToken, 9, type: :string
field :OAuthAuthority, 10, type: :string
field :OAuthClientId, 11, type: :string
field :OAuthClientSecret, 12, type: :string
field :Headers, 13,
repeated: true,
type: Cratis.Chronicle.Contracts.Observation.Webhooks.AddWebhookRequest.HeadersEntry,
map: true
field :IsReplayable, 14, type: :bool
field :IsActive, 15, type: :bool
end
defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.AddWebhooksRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Webhooks, 2,
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.CommandResult do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :CorrelationId, 1, type: Bcl.Guid
field :IsAuthorized, 2, type: :bool
field :ValidationResults, 3,
repeated: true,
type: Cratis.Chronicle.Contracts.Observation.Webhooks.ValidationResult
field :ExceptionMessages, 4, repeated: true, type: :string
field :ExceptionStackTrace, 5, type: :string
field :AuthorizationFailureReason, 6, 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.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.ObserveWebhooksRequest 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.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.QueryResult_IEnumerable_WebhookDetailsResponse do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :CorrelationId, 1, type: Bcl.Guid
field :IsAuthorized, 2, type: :bool
field :ValidationResults, 3,
repeated: true,
type: Cratis.Chronicle.Contracts.Observation.Webhooks.ValidationResult
field :ExceptionMessages, 4, repeated: true, type: :string
field :ExceptionStackTrace, 5, type: :string
field :Data, 6,
repeated: true,
type: Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookDetailsResponse
end
defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.RemoveWebhookRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
field :WebhookId, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.RemoveWebhooksRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Webhooks, 2, repeated: true, type: :string
end
defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.ValidationResult do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Severity, 1,
type: Cratis.Chronicle.Contracts.Observation.Webhooks.ValidationResultSeverity,
enum: true
field :Message, 2, type: :string
field :Members, 3, repeated: true, 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.WebhookDetailsResponse.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.WebhookDetailsResponse do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Identifier, 1, type: :string
field :Url, 2, type: :string
field :EventSequenceId, 3, type: :string
field :EventTypes, 4,
repeated: true,
type: Cratis.Chronicle.Contracts.Observation.Webhooks.EventType
field :AuthorizationType, 5,
type: Cratis.Chronicle.Contracts.Observation.Webhooks.AuthorizationType,
enum: true
field :Headers, 6,
repeated: true,
type: Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookDetailsResponse.HeadersEntry,
map: true
field :IsReplayable, 7, type: :bool
field :IsActive, 8, type: :bool
field :Id, 9, type: :string
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 :AddWebhook,
Cratis.Chronicle.Contracts.Observation.Webhooks.AddWebhookRequest,
Cratis.Chronicle.Contracts.Observation.Webhooks.CommandResult
rpc :AddWebhooks,
Cratis.Chronicle.Contracts.Observation.Webhooks.AddWebhooksRequest,
Cratis.Chronicle.Contracts.Observation.Webhooks.CommandResult
rpc :GetWebhooks,
Cratis.Chronicle.Contracts.Observation.Webhooks.GetWebhooksRequest,
Cratis.Chronicle.Contracts.Observation.Webhooks.QueryResult_IEnumerable_WebhookDetailsResponse
rpc :ObserveWebhooks,
Cratis.Chronicle.Contracts.Observation.Webhooks.ObserveWebhooksRequest,
stream(
Cratis.Chronicle.Contracts.Observation.Webhooks.QueryResult_IEnumerable_WebhookDetailsResponse
)
rpc :RemoveWebhook,
Cratis.Chronicle.Contracts.Observation.Webhooks.RemoveWebhookRequest,
Cratis.Chronicle.Contracts.Observation.Webhooks.CommandResult
rpc :RemoveWebhooks,
Cratis.Chronicle.Contracts.Observation.Webhooks.RemoveWebhooksRequest,
Cratis.Chronicle.Contracts.Observation.Webhooks.CommandResult
end
defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.Webhooks.Stub do
@moduledoc false
use GRPC.Stub, service: Cratis.Chronicle.Contracts.Observation.Webhooks.Webhooks.Service
end