Files
hatchet/api-contracts/events/events.proto
Gabe Ruttner 4054d170d8 chore: proto naming conventions (#2913)
* fix: add type override in sqlc.yaml

* chore: gen sqlc

* chore: big find and replace

* chore: more

* fix: clean up bunch of outdated `.Valid` refs

* refactor: remove `sqlchelpers.uuidFromStr()` in favor of `uuid.MustParse()`

* refactor: remove uuidToStr

* fix: lint

* fix: use pointers for null uuids

* chore: clean up more null pointers

* chore: clean up a bunch more

* fix: couple more

* fix: some types on the api

* fix: incorrectly non-null param

* fix: more nullable params

* fix: more refs

* refactor: start replacing tenant id strings with uuids

* refactor: more tenant id uuid casting

* refactor: fix a bunch more

* refactor: more

* refactor: more

* refactor: is that all of them?!

* fix: panic

* fix: rm scans

* fix: unwind some broken things

* chore: tests

* fix: rebase issues

* fix: more tests

* fix: nil checks

* Refactor: Make all UUIDs into `uuid.UUID` (#2897)

* refactor: remove a bunch more string uuids

* refactor: pointers and lists

* refactor: fix all the refs

* refactor: fix a few more

* fix: config loader

* fix: revert some changes

* fix: tests

* fix: test

* chore: proto

* fix: durable listener

* fix: some more string types

* fix: python health worker sleep

* fix: remove a bunch of `MustParse`s from the various gRPC servers

* fix: rm more uuid.MustParse calls

* fix: rm mustparse from api

* fix: test

* fix: merge issues

* fix: handle a bunch more uses of `MustParse` everywhere

* fix: nil id for worker label

* fix: more casting in the oss

* fix: more id parsing

* fix: stringify jwt opt

* fix: couple more bugs in untyped calls

* fix: more types

* fix: broken test

* refactor: implement `GetKeyUuid`

* cleanup

* gen

* missed name

* slot naming consistency

* snake_case

* lint

* regenerate python

* typescript sdk

* deprecated getters

* lint

* fix tests

* version bumps

* chore: regen sqlc

* chore: replace pgtype.UUID again

* fix: bunch more type errors

* no compat

* fix: remove isort

* note

* Update sdks/python/CHANGELOG.md

Co-authored-by: matt <mrkaye97@gmail.com>

* feedback

* fix: no isort in ci

* tui

* ts lint

* lint

* weird undefined

* fix test

* last changes

* lint

* fix: ts child spawning

* consistent naming

* map fields

---------

Co-authored-by: mrkaye97 <mrkaye97@gmail.com>
2026-02-05 10:35:13 -08:00

116 lines
2.5 KiB
Protocol Buffer

syntax = "proto3";
option go_package = "github.com/hatchet-dev/hatchet/internal/services/ingestor/contracts";
import "google/protobuf/timestamp.proto";
service EventsService {
rpc Push(PushEventRequest) returns (Event) {}
rpc BulkPush(BulkPushEventRequest) returns (Events) {}
rpc ReplaySingleEvent(ReplayEventRequest) returns (Event) {}
rpc PutLog(PutLogRequest) returns (PutLogResponse) {}
rpc PutStreamEvent(PutStreamEventRequest) returns (PutStreamEventResponse) {}
}
message Event {
// the tenant id
string tenant_id = 1;
// the id of the event
string event_id = 2;
// the key for the event
string key = 3;
// the payload for the event
string payload = 4;
// when the event was generated
google.protobuf.Timestamp event_timestamp = 5;
// the additional metadata for the event
optional string additional_metadata = 6;
// the scope associated with this filter. Used for subsetting candidate filters at evaluation time
optional string scope = 7;
}
message Events {
repeated Event events = 1;
}
message PutLogRequest {
// the task external run id for the request
string task_run_external_id = 1;
// when the log line was created
google.protobuf.Timestamp created_at = 2;
// the log line message
string message = 3;
// the log line level
optional string level = 4;
// associated log line metadata
string metadata = 5;
// the retry count of the task run
optional int32 task_retry_count = 6;
}
message PutLogResponse {}
message PutStreamEventRequest {
// the task external run id for the request
string task_run_external_id = 1;
// when the stream event was created
google.protobuf.Timestamp created_at = 2;
// the stream event message
bytes message = 3;
// associated stream event metadata
string metadata = 5;
optional int64 event_index = 6;
}
message PutStreamEventResponse {}
message BulkPushEventRequest {
repeated PushEventRequest events = 1;
}
message PushEventRequest {
// the key for the event
string key = 1;
// the payload for the event
string payload = 2;
// when the event was generated
google.protobuf.Timestamp event_timestamp = 3;
// metadata for the event
optional string additional_metadata = 4;
optional int32 priority = 5;
// the scope associated with this filter. Used for subsetting candidate filters at evaluation time
optional string scope = 6;
}
message ReplayEventRequest {
// the event id to replay
string event_id = 1;
}