syntax = "proto3"; package onprem.user.v1; option go_package="gitlab.com/on-prem-net/protocol/onprem/user/v1;userproto"; import "google/protobuf/field_mask.proto"; import "onprem/user/v1/error.proto"; import "onprem/user/v1/lambda.proto"; message LambdaFilter { optional string name = 1; optional string trigger_type_id = 2; reserved 3; optional string owner_team_id = 4; optional string owner_user_id = 5; optional string service_id = 6; } message CreateLambdaRequest { Lambda lambda = 1; } message CreateLambdaResponse { Lambda lambda = 1; } message DeleteLambdaRequest { string id = 1; } message DeleteLambdaResponse {} message FindLambdaRequest { string id = 1; } message FindLambdaResponse { Lambda lambda = 1; } message FindLambdasRequest { LambdaFilter filter = 1; reserved 2; google.protobuf.FieldMask field_mask = 3; } message FindLambdasResponse { repeated Lambda lambdas = 1; } message RunLambdaRequest { string lambda_id = 1; bytes event_json = 2; reserved 3; LambdaRunAt run_at = 4; // When provided, receiver should merge this blob into `event_json` as a `data` field optional bytes event_data = 5; } message RunLambdaResponse { bytes json = 1; optional bytes event_data = 2; optional string stderr = 3; } message UpdateLambdaRequest { Lambda lambda = 1; } message UpdateLambdaResponse { Lambda lambda = 1; } message ValidateLambdaRequest { Lambda lambda = 1; } message ValidateLambdaResponse { repeated ErrorObject errors = 1; }