Packages

Strictly typed Ada gRPC SDK for Elixir

Current section

Files

Jump to
ada_sdk lib ada v1 events.pb.ex
Raw

lib/ada/v1/events.pb.ex

defmodule Ada.V1.PublicEventType do
@moduledoc false
use Protobuf,
enum: true,
full_name: "ada.v1.PublicEventType",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field(:PUBLIC_EVENT_TYPE_UNSPECIFIED, 0)
field(:PUBLIC_EVENT_TYPE_MEMORY_INGEST_STARTED, 1)
field(:PUBLIC_EVENT_TYPE_MEMORY_INGEST_FINISHED, 2)
field(:PUBLIC_EVENT_TYPE_MEMORY_RECALL_STARTED, 3)
field(:PUBLIC_EVENT_TYPE_MEMORY_RECALL_FINISHED, 4)
end
defmodule Ada.V1.OperationStatus do
@moduledoc false
use Protobuf,
enum: true,
full_name: "ada.v1.OperationStatus",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field(:OPERATION_STATUS_UNSPECIFIED, 0)
field(:OPERATION_STATUS_SUCCEEDED, 1)
field(:OPERATION_STATUS_FAILED, 2)
end
defmodule Ada.V1.RecallRequestKind do
@moduledoc false
use Protobuf,
enum: true,
full_name: "ada.v1.RecallRequestKind",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field(:RECALL_REQUEST_KIND_UNSPECIFIED, 0)
field(:RECALL_REQUEST_KIND_RECALL, 1)
field(:RECALL_REQUEST_KIND_ENTITY_DOSSIER, 2)
field(:RECALL_REQUEST_KIND_TIMELINE, 3)
field(:RECALL_REQUEST_KIND_CONTRADICTIONS, 4)
field(:RECALL_REQUEST_KIND_COMMUNITY_DOSSIER, 5)
field(:RECALL_REQUEST_KIND_CHANGE_RECALL, 6)
field(:RECALL_REQUEST_KIND_RELATIONSHIP_DOSSIER, 7)
end
defmodule Ada.V1.StreamScopeMode do
@moduledoc false
use Protobuf,
enum: true,
full_name: "ada.v1.StreamScopeMode",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field(:STREAM_SCOPE_MODE_UNSPECIFIED, 0)
field(:STREAM_SCOPE_MODE_PRINCIPAL, 1)
field(:STREAM_SCOPE_MODE_VISIBLE, 2)
end
defmodule Ada.V1.EventCorrelation do
@moduledoc false
use Protobuf,
full_name: "ada.v1.EventCorrelation",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field(:principal_id, 1, type: :string, json_name: "principalId")
field(:trace_id, 2, type: :string, json_name: "traceId")
field(:invocation_id, 3, type: :string, json_name: "invocationId")
field(:run_id, 4, type: :string, json_name: "runId")
field(:channel, 5, type: :string)
field(:target_kind, 6, type: :string, json_name: "targetKind")
field(:target_name, 7, type: :string, json_name: "targetName")
field(:session_id, 8, type: :string, json_name: "sessionId")
end
defmodule Ada.V1.PublicEventMetadata do
@moduledoc false
use Protobuf,
full_name: "ada.v1.PublicEventMetadata",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field(:source, 1, type: :string)
field(:correlation, 2, type: Ada.V1.EventCorrelation)
end
defmodule Ada.V1.IngestRecordCounts do
@moduledoc false
use Protobuf,
full_name: "ada.v1.IngestRecordCounts",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field(:entities, 1, type: :int64)
field(:relations, 2, type: :int64)
field(:atoms, 3, type: :int64)
field(:events, 4, type: :int64)
field(:commitments, 5, type: :int64)
field(:decisions, 6, type: :int64)
field(:action_items, 7, type: :int64, json_name: "actionItems")
field(:meetings, 8, type: :int64)
field(:observations, 9, type: :int64)
field(:intentions, 10, type: :int64)
field(:priorities, 11, type: :int64)
field(:contradictions, 12, type: :int64)
field(:knowledge_events, 13, type: :int64, json_name: "knowledgeEvents")
end
defmodule Ada.V1.MemoryIngestStarted do
@moduledoc false
use Protobuf,
full_name: "ada.v1.MemoryIngestStarted",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field(:document_id, 1, type: :string, json_name: "documentId")
field(:job_id, 2, type: :string, json_name: "jobId")
field(:source_type, 3, type: :string, json_name: "sourceType")
field(:content_type, 4, type: :string, json_name: "contentType")
field(:source_id, 5, type: :string, json_name: "sourceId")
field(:counts, 6, type: Ada.V1.IngestRecordCounts)
end
defmodule Ada.V1.MemoryIngestFinished do
@moduledoc false
use Protobuf,
full_name: "ada.v1.MemoryIngestFinished",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field(:document_id, 1, type: :string, json_name: "documentId")
field(:job_id, 2, type: :string, json_name: "jobId")
field(:status, 3, type: Ada.V1.OperationStatus, enum: true)
field(:duration_ms, 4, type: :int64, json_name: "durationMs")
field(:changed_families, 5, repeated: true, type: :string, json_name: "changedFamilies")
field(:counts, 6, type: Ada.V1.IngestRecordCounts)
field(:error_class, 7, type: :string, json_name: "errorClass")
field(:error_message, 8, type: :string, json_name: "errorMessage")
end
defmodule Ada.V1.MemoryRecallStarted do
@moduledoc false
use Protobuf,
full_name: "ada.v1.MemoryRecallStarted",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field(:request_kind, 1, type: Ada.V1.RecallRequestKind, json_name: "requestKind", enum: true)
end
defmodule Ada.V1.MemoryRecallFinished do
@moduledoc false
use Protobuf,
full_name: "ada.v1.MemoryRecallFinished",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field(:request_kind, 1, type: Ada.V1.RecallRequestKind, json_name: "requestKind", enum: true)
field(:status, 2, type: Ada.V1.OperationStatus, enum: true)
field(:duration_ms, 3, type: :int64, json_name: "durationMs")
field(:results_count, 4, type: :int64, json_name: "resultsCount")
field(:actors_count, 5, type: :int64, json_name: "actorsCount")
field(:tensions_count, 6, type: :int64, json_name: "tensionsCount")
field(:communities_count, 7, type: :int64, json_name: "communitiesCount")
field(:summaries_count, 8, type: :int64, json_name: "summariesCount")
field(:total_items, 9, type: :int64, json_name: "totalItems")
field(:degraded, 10, type: :bool)
field(:cache_hit, 11, type: :bool, json_name: "cacheHit")
field(:error_class, 12, type: :string, json_name: "errorClass")
field(:error_message, 13, type: :string, json_name: "errorMessage")
end
defmodule Ada.V1.PublicEvent do
@moduledoc false
use Protobuf,
full_name: "ada.v1.PublicEvent",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
oneof(:event, 0)
field(:id, 1, type: :string)
field(:spec_version, 2, type: :int32, json_name: "specVersion")
field(:occurred_at, 4, type: Google.Protobuf.Timestamp, json_name: "occurredAt")
field(:principal_id, 5, type: :string, json_name: "principalId")
field(:summary, 6, type: :string)
field(:metadata, 8, type: Ada.V1.PublicEventMetadata)
field(:memory_ingest_started, 20,
type: Ada.V1.MemoryIngestStarted,
json_name: "memoryIngestStarted",
oneof: 0
)
field(:memory_ingest_finished, 21,
type: Ada.V1.MemoryIngestFinished,
json_name: "memoryIngestFinished",
oneof: 0
)
field(:memory_recall_started, 22,
type: Ada.V1.MemoryRecallStarted,
json_name: "memoryRecallStarted",
oneof: 0
)
field(:memory_recall_finished, 23,
type: Ada.V1.MemoryRecallFinished,
json_name: "memoryRecallFinished",
oneof: 0
)
end
defmodule Ada.V1.PublicEventStreamEvent do
@moduledoc false
use Protobuf,
full_name: "ada.v1.PublicEventStreamEvent",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field(:cursor, 1, type: :string)
field(:event, 2, type: Ada.V1.PublicEvent)
end
defmodule Ada.V1.StreamPublicEventsRequest do
@moduledoc false
use Protobuf,
full_name: "ada.v1.StreamPublicEventsRequest",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field(:event_types, 1,
repeated: true,
type: Ada.V1.PublicEventType,
json_name: "eventTypes",
enum: true
)
field(:after_event_id, 2, type: :string, json_name: "afterEventId")
field(:replay_limit, 3, type: :int32, json_name: "replayLimit")
field(:principal_id, 100, type: :string, json_name: "principalId")
field(:scope_mode, 101, type: Ada.V1.StreamScopeMode, json_name: "scopeMode", enum: true)
end
defmodule Ada.V1.GetPublicEventCatalogRequest do
@moduledoc false
use Protobuf,
full_name: "ada.v1.GetPublicEventCatalogRequest",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
end
defmodule Ada.V1.GetPublicEventCatalogResponse do
@moduledoc false
use Protobuf,
full_name: "ada.v1.GetPublicEventCatalogResponse",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
field(:event_types, 1,
repeated: true,
type: Ada.V1.PublicEventType,
json_name: "eventTypes",
enum: true
)
end
defmodule Ada.V1.PublicEventService.Service do
@moduledoc false
use GRPC.Service, name: "ada.v1.PublicEventService", protoc_gen_elixir_version: "0.17.0"
rpc(
:StreamPublicEvents,
Ada.V1.StreamPublicEventsRequest,
stream(Ada.V1.PublicEventStreamEvent)
)
rpc(
:GetPublicEventCatalog,
Ada.V1.GetPublicEventCatalogRequest,
Ada.V1.GetPublicEventCatalogResponse
)
end
defmodule Ada.V1.PublicEventService.Stub do
@moduledoc false
use GRPC.Stub, service: Ada.V1.PublicEventService.Service
end