From 5c922038f9da5415d291174c934be2015cab13d6 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 25 Oct 2026 16:21:01 +1100 Subject: [PATCH] fix(access): check the policy version before each decision archied, archie-ui and the tool gateway re-read the stored policies on a 30s ticker, so a forbid written seconds earlier did not stop a run. One instance-wide revision now moves inside the transaction of every policy write, and a decision reads it first and rebuilds the engine only when it moved. A version read that fails, or a policy list that fails after a bump, refuses with ErrChainUnavailable instead of standing on the last chain, so three call sites now treat unavailable as availability rather than denial: dispatch leaves the capture for the next cycle, a task start parks transient, and the tool gateway reports the tool as unavailable. --- internal/app/archied/bootstrap.go | 3 +- internal/app/archiegateway/tools.go | 3 +- internal/app/archieui/compose.go | 1 - internal/app/archieui/run.go | 9 +- internal/contracts/state/v1/state.pb.go | 1434 +++++++++-------- internal/contracts/state/v1/state_grpc.pb.go | 44 + internal/daemon/daemon.go | 9 +- internal/daemon/workflow_identity.go | 38 +- internal/domain/access/store.go | 10 +- internal/gateway/tool_access.go | 17 +- internal/infrastructure/access/engine.go | 13 +- internal/infrastructure/access/live.go | 155 +- internal/infrastructure/access/live_test.go | 94 +- internal/infrastructure/postgres/access.go | 84 +- .../0058_access_policy_revision.sql | 18 + .../postgres/postgresdb/access.sql.go | 27 + .../postgres/postgresdb/models.go | 6 + .../postgres/queries/access.sql | 11 + .../infrastructure/readiness/probes_test.go | 4 +- internal/infrastructure/staterpc/access.go | 11 + .../infrastructure/staterpc/access_client.go | 8 + internal/webui/api_access_policies.go | 11 - internal/webui/api_orgs.go | 6 - internal/webui/server.go | 3 - proto/state/v1/state.proto | 6 + 25 files changed, 1228 insertions(+), 797 deletions(-) create mode 100644 internal/infrastructure/postgres/migrations/0058_access_policy_revision.sql diff --git a/internal/app/archied/bootstrap.go b/internal/app/archied/bootstrap.go index 32c503530..43d09d179 100644 --- a/internal/app/archied/bootstrap.go +++ b/internal/app/archied/bootstrap.go @@ -326,12 +326,11 @@ func (b *boot) openAccessChain(ctx context.Context) error { if !ok { return fmt.Errorf("state store policy reader unavailable") } - live := infraaccess.NewPending(source.ListPolicies, b.log) + live := infraaccess.NewPending(ctx, source.PoliciesVersion, source.ListPolicies, b.log) if err := live.Reload(ctx); err != nil { b.log.Warn("workflow policies unavailable; execution remains denied", "err", err) } b.accessChain, b.accessLive = live, live - go live.Run(ctx, applystatus.RestampInterval) return nil } diff --git a/internal/app/archiegateway/tools.go b/internal/app/archiegateway/tools.go index e77d7a6c5..378696437 100644 --- a/internal/app/archiegateway/tools.go +++ b/internal/app/archiegateway/tools.go @@ -13,7 +13,6 @@ import ( "github.com/samcharles93/archie-core/internal/agentexec/modelloop" "github.com/samcharles93/archie-core/internal/config" "github.com/samcharles93/archie-core/internal/domain/access" - "github.com/samcharles93/archie-core/internal/domain/applystatus" "github.com/samcharles93/archie-core/internal/domain/binding" "github.com/samcharles93/archie-core/internal/domain/eventtype" "github.com/samcharles93/archie-core/internal/gateway" @@ -107,7 +106,7 @@ func (b *server) registerStandaloneTools(ctx context.Context) { // registry, so chat turns and Kit harnesses (through the task-tool RPCs) both // reach them, each in its own caller's org. func (b *server) registerWorkflowTools(ctx context.Context) { - authz := infraaccess.StartLive(ctx, b.stateStore.ListPolicies, applystatus.RestampInterval, b.log) + authz := infraaccess.StartLive(ctx, b.stateStore.ListPolicies, b.stateStore.PoliciesVersion, b.log) workflows := controlplanerpc.NewWorkflows(b.stateStore.ControlPlane()) entries := append(gateway.WorkflowTools(workflows, authz), gateway.IntegrationTools(integrationSource{Workflows: workflows, store: b.stateStore}, authz)...) for _, entry := range entries { diff --git a/internal/app/archieui/compose.go b/internal/app/archieui/compose.go index 1b286d77e..860c8b8ff 100644 --- a/internal/app/archieui/compose.go +++ b/internal/app/archieui/compose.go @@ -125,7 +125,6 @@ func compose(ctx context.Context, d deps) *webui.Server { // The policy chain: wired together or not at all. srv.Refusals = refusalStore(d.Store) srv.Access = d.Access - srv.ReloadAccess = d.Access.Reload srv.Principals = d.Principals srv.Denials = d.Denials wireTaskLogs(d, srv) diff --git a/internal/app/archieui/run.go b/internal/app/archieui/run.go index 2bc5cbb5b..2f23479cf 100644 --- a/internal/app/archieui/run.go +++ b/internal/app/archieui/run.go @@ -14,7 +14,6 @@ import ( "time" "github.com/samcharles93/archie-core/internal/app/servicekit" - "github.com/samcharles93/archie-core/internal/domain/applystatus" "github.com/samcharles93/archie-core/internal/domain/identity" "github.com/samcharles93/archie-core/internal/domain/presence" infraaccess "github.com/samcharles93/archie-core/internal/infrastructure/access" @@ -28,11 +27,11 @@ import ( ) // buildAccessChain starts the live access engine over the stored policies. -// It refuses every request until Run's first load succeeds and keeps -// retrying, so a State Store or database that is down or slow at start -// closes the dashboard rather than opening it or stopping it. +// It refuses every request until the first load succeeds, so a State Store or +// database that is down or slow at start closes the dashboard rather than +// opening it or stopping it. func buildAccessChain(ctx context.Context, store *staterpc.Client, log *slog.Logger) *infraaccess.Live { - return infraaccess.StartLive(ctx, store.ListPolicies, applystatus.RestampInterval, log) + return infraaccess.StartLive(ctx, store.ListPolicies, store.PoliciesVersion, log) } // Run serves the dashboard until ctx is cancelled. It resolves its own diff --git a/internal/contracts/state/v1/state.pb.go b/internal/contracts/state/v1/state.pb.go index 5fd11fadb..fdf3143ca 100644 --- a/internal/contracts/state/v1/state.pb.go +++ b/internal/contracts/state/v1/state.pb.go @@ -14542,6 +14542,86 @@ func (x *ListPoliciesResponse) GetPolicies() []*AccessPolicy { return nil } +type GetPoliciesVersionRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetPoliciesVersionRequest) Reset() { + *x = GetPoliciesVersionRequest{} + mi := &file_state_v1_state_proto_msgTypes[265] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetPoliciesVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPoliciesVersionRequest) ProtoMessage() {} + +func (x *GetPoliciesVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[265] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetPoliciesVersionRequest.ProtoReflect.Descriptor instead. +func (*GetPoliciesVersionRequest) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{265} +} + +type GetPoliciesVersionResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetPoliciesVersionResponse) Reset() { + *x = GetPoliciesVersionResponse{} + mi := &file_state_v1_state_proto_msgTypes[266] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetPoliciesVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPoliciesVersionResponse) ProtoMessage() {} + +func (x *GetPoliciesVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[266] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetPoliciesVersionResponse.ProtoReflect.Descriptor instead. +func (*GetPoliciesVersionResponse) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{266} +} + +func (x *GetPoliciesVersionResponse) GetVersion() int64 { + if x != nil { + return x.Version + } + return 0 +} + type PutPolicyRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Policy *AccessPolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` @@ -14551,7 +14631,7 @@ type PutPolicyRequest struct { func (x *PutPolicyRequest) Reset() { *x = PutPolicyRequest{} - mi := &file_state_v1_state_proto_msgTypes[265] + mi := &file_state_v1_state_proto_msgTypes[267] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14563,7 +14643,7 @@ func (x *PutPolicyRequest) String() string { func (*PutPolicyRequest) ProtoMessage() {} func (x *PutPolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[265] + mi := &file_state_v1_state_proto_msgTypes[267] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14576,7 +14656,7 @@ func (x *PutPolicyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PutPolicyRequest.ProtoReflect.Descriptor instead. func (*PutPolicyRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{265} + return file_state_v1_state_proto_rawDescGZIP(), []int{267} } func (x *PutPolicyRequest) GetPolicy() *AccessPolicy { @@ -14595,7 +14675,7 @@ type PutPolicyResponse struct { func (x *PutPolicyResponse) Reset() { *x = PutPolicyResponse{} - mi := &file_state_v1_state_proto_msgTypes[266] + mi := &file_state_v1_state_proto_msgTypes[268] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14607,7 +14687,7 @@ func (x *PutPolicyResponse) String() string { func (*PutPolicyResponse) ProtoMessage() {} func (x *PutPolicyResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[266] + mi := &file_state_v1_state_proto_msgTypes[268] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14620,7 +14700,7 @@ func (x *PutPolicyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PutPolicyResponse.ProtoReflect.Descriptor instead. func (*PutPolicyResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{266} + return file_state_v1_state_proto_rawDescGZIP(), []int{268} } func (x *PutPolicyResponse) GetVersion() int64 { @@ -14639,7 +14719,7 @@ type DeletePolicyRequest struct { func (x *DeletePolicyRequest) Reset() { *x = DeletePolicyRequest{} - mi := &file_state_v1_state_proto_msgTypes[267] + mi := &file_state_v1_state_proto_msgTypes[269] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14651,7 +14731,7 @@ func (x *DeletePolicyRequest) String() string { func (*DeletePolicyRequest) ProtoMessage() {} func (x *DeletePolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[267] + mi := &file_state_v1_state_proto_msgTypes[269] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14664,7 +14744,7 @@ func (x *DeletePolicyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePolicyRequest.ProtoReflect.Descriptor instead. func (*DeletePolicyRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{267} + return file_state_v1_state_proto_rawDescGZIP(), []int{269} } func (x *DeletePolicyRequest) GetPolicy() *AccessPolicy { @@ -14682,7 +14762,7 @@ type DeletePolicyResponse struct { func (x *DeletePolicyResponse) Reset() { *x = DeletePolicyResponse{} - mi := &file_state_v1_state_proto_msgTypes[268] + mi := &file_state_v1_state_proto_msgTypes[270] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14694,7 +14774,7 @@ func (x *DeletePolicyResponse) String() string { func (*DeletePolicyResponse) ProtoMessage() {} func (x *DeletePolicyResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[268] + mi := &file_state_v1_state_proto_msgTypes[270] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14707,7 +14787,7 @@ func (x *DeletePolicyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePolicyResponse.ProtoReflect.Descriptor instead. func (*DeletePolicyResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{268} + return file_state_v1_state_proto_rawDescGZIP(), []int{270} } type EnsureShippedOrgPoliciesRequest struct { @@ -14719,7 +14799,7 @@ type EnsureShippedOrgPoliciesRequest struct { func (x *EnsureShippedOrgPoliciesRequest) Reset() { *x = EnsureShippedOrgPoliciesRequest{} - mi := &file_state_v1_state_proto_msgTypes[269] + mi := &file_state_v1_state_proto_msgTypes[271] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14731,7 +14811,7 @@ func (x *EnsureShippedOrgPoliciesRequest) String() string { func (*EnsureShippedOrgPoliciesRequest) ProtoMessage() {} func (x *EnsureShippedOrgPoliciesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[269] + mi := &file_state_v1_state_proto_msgTypes[271] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14744,7 +14824,7 @@ func (x *EnsureShippedOrgPoliciesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EnsureShippedOrgPoliciesRequest.ProtoReflect.Descriptor instead. func (*EnsureShippedOrgPoliciesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{269} + return file_state_v1_state_proto_rawDescGZIP(), []int{271} } func (x *EnsureShippedOrgPoliciesRequest) GetOrgId() string { @@ -14762,7 +14842,7 @@ type EnsureShippedOrgPoliciesResponse struct { func (x *EnsureShippedOrgPoliciesResponse) Reset() { *x = EnsureShippedOrgPoliciesResponse{} - mi := &file_state_v1_state_proto_msgTypes[270] + mi := &file_state_v1_state_proto_msgTypes[272] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14774,7 +14854,7 @@ func (x *EnsureShippedOrgPoliciesResponse) String() string { func (*EnsureShippedOrgPoliciesResponse) ProtoMessage() {} func (x *EnsureShippedOrgPoliciesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[270] + mi := &file_state_v1_state_proto_msgTypes[272] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14787,7 +14867,7 @@ func (x *EnsureShippedOrgPoliciesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EnsureShippedOrgPoliciesResponse.ProtoReflect.Descriptor instead. func (*EnsureShippedOrgPoliciesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{270} + return file_state_v1_state_proto_rawDescGZIP(), []int{272} } // AccessDenial mirrors internal/domain/access.Denial: one refusal with the @@ -14810,7 +14890,7 @@ type AccessDenial struct { func (x *AccessDenial) Reset() { *x = AccessDenial{} - mi := &file_state_v1_state_proto_msgTypes[271] + mi := &file_state_v1_state_proto_msgTypes[273] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14822,7 +14902,7 @@ func (x *AccessDenial) String() string { func (*AccessDenial) ProtoMessage() {} func (x *AccessDenial) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[271] + mi := &file_state_v1_state_proto_msgTypes[273] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14835,7 +14915,7 @@ func (x *AccessDenial) ProtoReflect() protoreflect.Message { // Deprecated: Use AccessDenial.ProtoReflect.Descriptor instead. func (*AccessDenial) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{271} + return file_state_v1_state_proto_rawDescGZIP(), []int{273} } func (x *AccessDenial) GetOrgId() string { @@ -14910,7 +14990,7 @@ type RecordDenialRequest struct { func (x *RecordDenialRequest) Reset() { *x = RecordDenialRequest{} - mi := &file_state_v1_state_proto_msgTypes[272] + mi := &file_state_v1_state_proto_msgTypes[274] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14922,7 +15002,7 @@ func (x *RecordDenialRequest) String() string { func (*RecordDenialRequest) ProtoMessage() {} func (x *RecordDenialRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[272] + mi := &file_state_v1_state_proto_msgTypes[274] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14935,7 +15015,7 @@ func (x *RecordDenialRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordDenialRequest.ProtoReflect.Descriptor instead. func (*RecordDenialRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{272} + return file_state_v1_state_proto_rawDescGZIP(), []int{274} } func (x *RecordDenialRequest) GetDenial() *AccessDenial { @@ -14953,7 +15033,7 @@ type RecordDenialResponse struct { func (x *RecordDenialResponse) Reset() { *x = RecordDenialResponse{} - mi := &file_state_v1_state_proto_msgTypes[273] + mi := &file_state_v1_state_proto_msgTypes[275] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14965,7 +15045,7 @@ func (x *RecordDenialResponse) String() string { func (*RecordDenialResponse) ProtoMessage() {} func (x *RecordDenialResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[273] + mi := &file_state_v1_state_proto_msgTypes[275] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14978,7 +15058,7 @@ func (x *RecordDenialResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordDenialResponse.ProtoReflect.Descriptor instead. func (*RecordDenialResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{273} + return file_state_v1_state_proto_rawDescGZIP(), []int{275} } type ListDenialsRequest struct { @@ -14990,7 +15070,7 @@ type ListDenialsRequest struct { func (x *ListDenialsRequest) Reset() { *x = ListDenialsRequest{} - mi := &file_state_v1_state_proto_msgTypes[274] + mi := &file_state_v1_state_proto_msgTypes[276] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15002,7 +15082,7 @@ func (x *ListDenialsRequest) String() string { func (*ListDenialsRequest) ProtoMessage() {} func (x *ListDenialsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[274] + mi := &file_state_v1_state_proto_msgTypes[276] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15015,7 +15095,7 @@ func (x *ListDenialsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDenialsRequest.ProtoReflect.Descriptor instead. func (*ListDenialsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{274} + return file_state_v1_state_proto_rawDescGZIP(), []int{276} } func (x *ListDenialsRequest) GetLimit() int32 { @@ -15034,7 +15114,7 @@ type ListDenialsResponse struct { func (x *ListDenialsResponse) Reset() { *x = ListDenialsResponse{} - mi := &file_state_v1_state_proto_msgTypes[275] + mi := &file_state_v1_state_proto_msgTypes[277] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15046,7 +15126,7 @@ func (x *ListDenialsResponse) String() string { func (*ListDenialsResponse) ProtoMessage() {} func (x *ListDenialsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[275] + mi := &file_state_v1_state_proto_msgTypes[277] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15059,7 +15139,7 @@ func (x *ListDenialsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDenialsResponse.ProtoReflect.Descriptor instead. func (*ListDenialsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{275} + return file_state_v1_state_proto_rawDescGZIP(), []int{277} } func (x *ListDenialsResponse) GetDenials() []*AccessDenial { @@ -15080,7 +15160,7 @@ type Org struct { func (x *Org) Reset() { *x = Org{} - mi := &file_state_v1_state_proto_msgTypes[276] + mi := &file_state_v1_state_proto_msgTypes[278] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15092,7 +15172,7 @@ func (x *Org) String() string { func (*Org) ProtoMessage() {} func (x *Org) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[276] + mi := &file_state_v1_state_proto_msgTypes[278] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15105,7 +15185,7 @@ func (x *Org) ProtoReflect() protoreflect.Message { // Deprecated: Use Org.ProtoReflect.Descriptor instead. func (*Org) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{276} + return file_state_v1_state_proto_rawDescGZIP(), []int{278} } func (x *Org) GetId() string { @@ -15135,7 +15215,7 @@ type Workspace struct { func (x *Workspace) Reset() { *x = Workspace{} - mi := &file_state_v1_state_proto_msgTypes[277] + mi := &file_state_v1_state_proto_msgTypes[279] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15147,7 +15227,7 @@ func (x *Workspace) String() string { func (*Workspace) ProtoMessage() {} func (x *Workspace) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[277] + mi := &file_state_v1_state_proto_msgTypes[279] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15160,7 +15240,7 @@ func (x *Workspace) ProtoReflect() protoreflect.Message { // Deprecated: Use Workspace.ProtoReflect.Descriptor instead. func (*Workspace) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{277} + return file_state_v1_state_proto_rawDescGZIP(), []int{279} } func (x *Workspace) GetId() string { @@ -15206,7 +15286,7 @@ type Member struct { func (x *Member) Reset() { *x = Member{} - mi := &file_state_v1_state_proto_msgTypes[278] + mi := &file_state_v1_state_proto_msgTypes[280] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15218,7 +15298,7 @@ func (x *Member) String() string { func (*Member) ProtoMessage() {} func (x *Member) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[278] + mi := &file_state_v1_state_proto_msgTypes[280] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15231,7 +15311,7 @@ func (x *Member) ProtoReflect() protoreflect.Message { // Deprecated: Use Member.ProtoReflect.Descriptor instead. func (*Member) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{278} + return file_state_v1_state_proto_rawDescGZIP(), []int{280} } func (x *Member) GetIdentityId() string { @@ -15277,7 +15357,7 @@ type ListOrgsRequest struct { func (x *ListOrgsRequest) Reset() { *x = ListOrgsRequest{} - mi := &file_state_v1_state_proto_msgTypes[279] + mi := &file_state_v1_state_proto_msgTypes[281] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15289,7 +15369,7 @@ func (x *ListOrgsRequest) String() string { func (*ListOrgsRequest) ProtoMessage() {} func (x *ListOrgsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[279] + mi := &file_state_v1_state_proto_msgTypes[281] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15302,7 +15382,7 @@ func (x *ListOrgsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListOrgsRequest.ProtoReflect.Descriptor instead. func (*ListOrgsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{279} + return file_state_v1_state_proto_rawDescGZIP(), []int{281} } type ListOrgsResponse struct { @@ -15314,7 +15394,7 @@ type ListOrgsResponse struct { func (x *ListOrgsResponse) Reset() { *x = ListOrgsResponse{} - mi := &file_state_v1_state_proto_msgTypes[280] + mi := &file_state_v1_state_proto_msgTypes[282] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15326,7 +15406,7 @@ func (x *ListOrgsResponse) String() string { func (*ListOrgsResponse) ProtoMessage() {} func (x *ListOrgsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[280] + mi := &file_state_v1_state_proto_msgTypes[282] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15339,7 +15419,7 @@ func (x *ListOrgsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListOrgsResponse.ProtoReflect.Descriptor instead. func (*ListOrgsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{280} + return file_state_v1_state_proto_rawDescGZIP(), []int{282} } func (x *ListOrgsResponse) GetOrgs() []*Org { @@ -15358,7 +15438,7 @@ type GetOrgRequest struct { func (x *GetOrgRequest) Reset() { *x = GetOrgRequest{} - mi := &file_state_v1_state_proto_msgTypes[281] + mi := &file_state_v1_state_proto_msgTypes[283] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15370,7 +15450,7 @@ func (x *GetOrgRequest) String() string { func (*GetOrgRequest) ProtoMessage() {} func (x *GetOrgRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[281] + mi := &file_state_v1_state_proto_msgTypes[283] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15383,7 +15463,7 @@ func (x *GetOrgRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetOrgRequest.ProtoReflect.Descriptor instead. func (*GetOrgRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{281} + return file_state_v1_state_proto_rawDescGZIP(), []int{283} } func (x *GetOrgRequest) GetOrgId() string { @@ -15402,7 +15482,7 @@ type GetOrgResponse struct { func (x *GetOrgResponse) Reset() { *x = GetOrgResponse{} - mi := &file_state_v1_state_proto_msgTypes[282] + mi := &file_state_v1_state_proto_msgTypes[284] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15414,7 +15494,7 @@ func (x *GetOrgResponse) String() string { func (*GetOrgResponse) ProtoMessage() {} func (x *GetOrgResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[282] + mi := &file_state_v1_state_proto_msgTypes[284] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15427,7 +15507,7 @@ func (x *GetOrgResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetOrgResponse.ProtoReflect.Descriptor instead. func (*GetOrgResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{282} + return file_state_v1_state_proto_rawDescGZIP(), []int{284} } func (x *GetOrgResponse) GetOrg() *Org { @@ -15450,7 +15530,7 @@ type CreateOrgRequest struct { func (x *CreateOrgRequest) Reset() { *x = CreateOrgRequest{} - mi := &file_state_v1_state_proto_msgTypes[283] + mi := &file_state_v1_state_proto_msgTypes[285] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15462,7 +15542,7 @@ func (x *CreateOrgRequest) String() string { func (*CreateOrgRequest) ProtoMessage() {} func (x *CreateOrgRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[283] + mi := &file_state_v1_state_proto_msgTypes[285] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15475,7 +15555,7 @@ func (x *CreateOrgRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateOrgRequest.ProtoReflect.Descriptor instead. func (*CreateOrgRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{283} + return file_state_v1_state_proto_rawDescGZIP(), []int{285} } func (x *CreateOrgRequest) GetId() string { @@ -15508,7 +15588,7 @@ type CreateOrgResponse struct { func (x *CreateOrgResponse) Reset() { *x = CreateOrgResponse{} - mi := &file_state_v1_state_proto_msgTypes[284] + mi := &file_state_v1_state_proto_msgTypes[286] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15520,7 +15600,7 @@ func (x *CreateOrgResponse) String() string { func (*CreateOrgResponse) ProtoMessage() {} func (x *CreateOrgResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[284] + mi := &file_state_v1_state_proto_msgTypes[286] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15533,7 +15613,7 @@ func (x *CreateOrgResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateOrgResponse.ProtoReflect.Descriptor instead. func (*CreateOrgResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{284} + return file_state_v1_state_proto_rawDescGZIP(), []int{286} } func (x *CreateOrgResponse) GetOrg() *Org { @@ -15552,7 +15632,7 @@ type ListWorkspacesRequest struct { func (x *ListWorkspacesRequest) Reset() { *x = ListWorkspacesRequest{} - mi := &file_state_v1_state_proto_msgTypes[285] + mi := &file_state_v1_state_proto_msgTypes[287] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15564,7 +15644,7 @@ func (x *ListWorkspacesRequest) String() string { func (*ListWorkspacesRequest) ProtoMessage() {} func (x *ListWorkspacesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[285] + mi := &file_state_v1_state_proto_msgTypes[287] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15577,7 +15657,7 @@ func (x *ListWorkspacesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListWorkspacesRequest.ProtoReflect.Descriptor instead. func (*ListWorkspacesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{285} + return file_state_v1_state_proto_rawDescGZIP(), []int{287} } func (x *ListWorkspacesRequest) GetOrgId() string { @@ -15596,7 +15676,7 @@ type ListWorkspacesResponse struct { func (x *ListWorkspacesResponse) Reset() { *x = ListWorkspacesResponse{} - mi := &file_state_v1_state_proto_msgTypes[286] + mi := &file_state_v1_state_proto_msgTypes[288] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15608,7 +15688,7 @@ func (x *ListWorkspacesResponse) String() string { func (*ListWorkspacesResponse) ProtoMessage() {} func (x *ListWorkspacesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[286] + mi := &file_state_v1_state_proto_msgTypes[288] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15621,7 +15701,7 @@ func (x *ListWorkspacesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListWorkspacesResponse.ProtoReflect.Descriptor instead. func (*ListWorkspacesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{286} + return file_state_v1_state_proto_rawDescGZIP(), []int{288} } func (x *ListWorkspacesResponse) GetWorkspaces() []*Workspace { @@ -15643,7 +15723,7 @@ type CreateWorkspaceRequest struct { func (x *CreateWorkspaceRequest) Reset() { *x = CreateWorkspaceRequest{} - mi := &file_state_v1_state_proto_msgTypes[287] + mi := &file_state_v1_state_proto_msgTypes[289] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15655,7 +15735,7 @@ func (x *CreateWorkspaceRequest) String() string { func (*CreateWorkspaceRequest) ProtoMessage() {} func (x *CreateWorkspaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[287] + mi := &file_state_v1_state_proto_msgTypes[289] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15668,7 +15748,7 @@ func (x *CreateWorkspaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateWorkspaceRequest.ProtoReflect.Descriptor instead. func (*CreateWorkspaceRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{287} + return file_state_v1_state_proto_rawDescGZIP(), []int{289} } func (x *CreateWorkspaceRequest) GetOrgId() string { @@ -15708,7 +15788,7 @@ type CreateWorkspaceResponse struct { func (x *CreateWorkspaceResponse) Reset() { *x = CreateWorkspaceResponse{} - mi := &file_state_v1_state_proto_msgTypes[288] + mi := &file_state_v1_state_proto_msgTypes[290] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15720,7 +15800,7 @@ func (x *CreateWorkspaceResponse) String() string { func (*CreateWorkspaceResponse) ProtoMessage() {} func (x *CreateWorkspaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[288] + mi := &file_state_v1_state_proto_msgTypes[290] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15733,7 +15813,7 @@ func (x *CreateWorkspaceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateWorkspaceResponse.ProtoReflect.Descriptor instead. func (*CreateWorkspaceResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{288} + return file_state_v1_state_proto_rawDescGZIP(), []int{290} } func (x *CreateWorkspaceResponse) GetWorkspace() *Workspace { @@ -15752,7 +15832,7 @@ type ListMembersRequest struct { func (x *ListMembersRequest) Reset() { *x = ListMembersRequest{} - mi := &file_state_v1_state_proto_msgTypes[289] + mi := &file_state_v1_state_proto_msgTypes[291] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15764,7 +15844,7 @@ func (x *ListMembersRequest) String() string { func (*ListMembersRequest) ProtoMessage() {} func (x *ListMembersRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[289] + mi := &file_state_v1_state_proto_msgTypes[291] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15777,7 +15857,7 @@ func (x *ListMembersRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListMembersRequest.ProtoReflect.Descriptor instead. func (*ListMembersRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{289} + return file_state_v1_state_proto_rawDescGZIP(), []int{291} } func (x *ListMembersRequest) GetOrgId() string { @@ -15796,7 +15876,7 @@ type ListMembersResponse struct { func (x *ListMembersResponse) Reset() { *x = ListMembersResponse{} - mi := &file_state_v1_state_proto_msgTypes[290] + mi := &file_state_v1_state_proto_msgTypes[292] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15808,7 +15888,7 @@ func (x *ListMembersResponse) String() string { func (*ListMembersResponse) ProtoMessage() {} func (x *ListMembersResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[290] + mi := &file_state_v1_state_proto_msgTypes[292] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15821,7 +15901,7 @@ func (x *ListMembersResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListMembersResponse.ProtoReflect.Descriptor instead. func (*ListMembersResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{290} + return file_state_v1_state_proto_rawDescGZIP(), []int{292} } func (x *ListMembersResponse) GetMembers() []*Member { @@ -15843,7 +15923,7 @@ type SetMembershipRequest struct { func (x *SetMembershipRequest) Reset() { *x = SetMembershipRequest{} - mi := &file_state_v1_state_proto_msgTypes[291] + mi := &file_state_v1_state_proto_msgTypes[293] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15855,7 +15935,7 @@ func (x *SetMembershipRequest) String() string { func (*SetMembershipRequest) ProtoMessage() {} func (x *SetMembershipRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[291] + mi := &file_state_v1_state_proto_msgTypes[293] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15868,7 +15948,7 @@ func (x *SetMembershipRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetMembershipRequest.ProtoReflect.Descriptor instead. func (*SetMembershipRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{291} + return file_state_v1_state_proto_rawDescGZIP(), []int{293} } func (x *SetMembershipRequest) GetOrgId() string { @@ -15907,7 +15987,7 @@ type SetMembershipResponse struct { func (x *SetMembershipResponse) Reset() { *x = SetMembershipResponse{} - mi := &file_state_v1_state_proto_msgTypes[292] + mi := &file_state_v1_state_proto_msgTypes[294] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15919,7 +15999,7 @@ func (x *SetMembershipResponse) String() string { func (*SetMembershipResponse) ProtoMessage() {} func (x *SetMembershipResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[292] + mi := &file_state_v1_state_proto_msgTypes[294] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15932,7 +16012,7 @@ func (x *SetMembershipResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetMembershipResponse.ProtoReflect.Descriptor instead. func (*SetMembershipResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{292} + return file_state_v1_state_proto_rawDescGZIP(), []int{294} } type RemoveMembershipRequest struct { @@ -15946,7 +16026,7 @@ type RemoveMembershipRequest struct { func (x *RemoveMembershipRequest) Reset() { *x = RemoveMembershipRequest{} - mi := &file_state_v1_state_proto_msgTypes[293] + mi := &file_state_v1_state_proto_msgTypes[295] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15958,7 +16038,7 @@ func (x *RemoveMembershipRequest) String() string { func (*RemoveMembershipRequest) ProtoMessage() {} func (x *RemoveMembershipRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[293] + mi := &file_state_v1_state_proto_msgTypes[295] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15971,7 +16051,7 @@ func (x *RemoveMembershipRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveMembershipRequest.ProtoReflect.Descriptor instead. func (*RemoveMembershipRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{293} + return file_state_v1_state_proto_rawDescGZIP(), []int{295} } func (x *RemoveMembershipRequest) GetOrgId() string { @@ -16003,7 +16083,7 @@ type RemoveMembershipResponse struct { func (x *RemoveMembershipResponse) Reset() { *x = RemoveMembershipResponse{} - mi := &file_state_v1_state_proto_msgTypes[294] + mi := &file_state_v1_state_proto_msgTypes[296] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16015,7 +16095,7 @@ func (x *RemoveMembershipResponse) String() string { func (*RemoveMembershipResponse) ProtoMessage() {} func (x *RemoveMembershipResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[294] + mi := &file_state_v1_state_proto_msgTypes[296] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16028,7 +16108,7 @@ func (x *RemoveMembershipResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveMembershipResponse.ProtoReflect.Descriptor instead. func (*RemoveMembershipResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{294} + return file_state_v1_state_proto_rawDescGZIP(), []int{296} } type AssignAgentRequest struct { @@ -16041,7 +16121,7 @@ type AssignAgentRequest struct { func (x *AssignAgentRequest) Reset() { *x = AssignAgentRequest{} - mi := &file_state_v1_state_proto_msgTypes[295] + mi := &file_state_v1_state_proto_msgTypes[297] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16053,7 +16133,7 @@ func (x *AssignAgentRequest) String() string { func (*AssignAgentRequest) ProtoMessage() {} func (x *AssignAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[295] + mi := &file_state_v1_state_proto_msgTypes[297] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16066,7 +16146,7 @@ func (x *AssignAgentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AssignAgentRequest.ProtoReflect.Descriptor instead. func (*AssignAgentRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{295} + return file_state_v1_state_proto_rawDescGZIP(), []int{297} } func (x *AssignAgentRequest) GetOrgId() string { @@ -16091,7 +16171,7 @@ type AssignAgentResponse struct { func (x *AssignAgentResponse) Reset() { *x = AssignAgentResponse{} - mi := &file_state_v1_state_proto_msgTypes[296] + mi := &file_state_v1_state_proto_msgTypes[298] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16103,7 +16183,7 @@ func (x *AssignAgentResponse) String() string { func (*AssignAgentResponse) ProtoMessage() {} func (x *AssignAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[296] + mi := &file_state_v1_state_proto_msgTypes[298] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16116,7 +16196,7 @@ func (x *AssignAgentResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AssignAgentResponse.ProtoReflect.Descriptor instead. func (*AssignAgentResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{296} + return file_state_v1_state_proto_rawDescGZIP(), []int{298} } type RecentLogsRequest struct { @@ -16128,7 +16208,7 @@ type RecentLogsRequest struct { func (x *RecentLogsRequest) Reset() { *x = RecentLogsRequest{} - mi := &file_state_v1_state_proto_msgTypes[297] + mi := &file_state_v1_state_proto_msgTypes[299] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16140,7 +16220,7 @@ func (x *RecentLogsRequest) String() string { func (*RecentLogsRequest) ProtoMessage() {} func (x *RecentLogsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[297] + mi := &file_state_v1_state_proto_msgTypes[299] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16153,7 +16233,7 @@ func (x *RecentLogsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecentLogsRequest.ProtoReflect.Descriptor instead. func (*RecentLogsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{297} + return file_state_v1_state_proto_rawDescGZIP(), []int{299} } func (x *RecentLogsRequest) GetQuery() *v1.LogQuery { @@ -16172,7 +16252,7 @@ type RecentLogsResponse struct { func (x *RecentLogsResponse) Reset() { *x = RecentLogsResponse{} - mi := &file_state_v1_state_proto_msgTypes[298] + mi := &file_state_v1_state_proto_msgTypes[300] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16184,7 +16264,7 @@ func (x *RecentLogsResponse) String() string { func (*RecentLogsResponse) ProtoMessage() {} func (x *RecentLogsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[298] + mi := &file_state_v1_state_proto_msgTypes[300] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16197,7 +16277,7 @@ func (x *RecentLogsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecentLogsResponse.ProtoReflect.Descriptor instead. func (*RecentLogsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{298} + return file_state_v1_state_proto_rawDescGZIP(), []int{300} } func (x *RecentLogsResponse) GetSnapshot() *v1.LogSnapshot { @@ -16230,7 +16310,7 @@ type UsageRecord struct { func (x *UsageRecord) Reset() { *x = UsageRecord{} - mi := &file_state_v1_state_proto_msgTypes[299] + mi := &file_state_v1_state_proto_msgTypes[301] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16242,7 +16322,7 @@ func (x *UsageRecord) String() string { func (*UsageRecord) ProtoMessage() {} func (x *UsageRecord) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[299] + mi := &file_state_v1_state_proto_msgTypes[301] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16255,7 +16335,7 @@ func (x *UsageRecord) ProtoReflect() protoreflect.Message { // Deprecated: Use UsageRecord.ProtoReflect.Descriptor instead. func (*UsageRecord) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{299} + return file_state_v1_state_proto_rawDescGZIP(), []int{301} } func (x *UsageRecord) GetSource() string { @@ -16351,7 +16431,7 @@ type RecordUsageRequest struct { func (x *RecordUsageRequest) Reset() { *x = RecordUsageRequest{} - mi := &file_state_v1_state_proto_msgTypes[300] + mi := &file_state_v1_state_proto_msgTypes[302] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16363,7 +16443,7 @@ func (x *RecordUsageRequest) String() string { func (*RecordUsageRequest) ProtoMessage() {} func (x *RecordUsageRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[300] + mi := &file_state_v1_state_proto_msgTypes[302] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16376,7 +16456,7 @@ func (x *RecordUsageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordUsageRequest.ProtoReflect.Descriptor instead. func (*RecordUsageRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{300} + return file_state_v1_state_proto_rawDescGZIP(), []int{302} } func (x *RecordUsageRequest) GetRecord() *UsageRecord { @@ -16394,7 +16474,7 @@ type RecordUsageResponse struct { func (x *RecordUsageResponse) Reset() { *x = RecordUsageResponse{} - mi := &file_state_v1_state_proto_msgTypes[301] + mi := &file_state_v1_state_proto_msgTypes[303] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16406,7 +16486,7 @@ func (x *RecordUsageResponse) String() string { func (*RecordUsageResponse) ProtoMessage() {} func (x *RecordUsageResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[301] + mi := &file_state_v1_state_proto_msgTypes[303] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16419,7 +16499,7 @@ func (x *RecordUsageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordUsageResponse.ProtoReflect.Descriptor instead. func (*RecordUsageResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{301} + return file_state_v1_state_proto_rawDescGZIP(), []int{303} } type TaskModelsRequest struct { @@ -16431,7 +16511,7 @@ type TaskModelsRequest struct { func (x *TaskModelsRequest) Reset() { *x = TaskModelsRequest{} - mi := &file_state_v1_state_proto_msgTypes[302] + mi := &file_state_v1_state_proto_msgTypes[304] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16443,7 +16523,7 @@ func (x *TaskModelsRequest) String() string { func (*TaskModelsRequest) ProtoMessage() {} func (x *TaskModelsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[302] + mi := &file_state_v1_state_proto_msgTypes[304] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16456,7 +16536,7 @@ func (x *TaskModelsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskModelsRequest.ProtoReflect.Descriptor instead. func (*TaskModelsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{302} + return file_state_v1_state_proto_rawDescGZIP(), []int{304} } func (x *TaskModelsRequest) GetTaskId() int64 { @@ -16475,7 +16555,7 @@ type TaskInstructionsRequest struct { func (x *TaskInstructionsRequest) Reset() { *x = TaskInstructionsRequest{} - mi := &file_state_v1_state_proto_msgTypes[303] + mi := &file_state_v1_state_proto_msgTypes[305] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16487,7 +16567,7 @@ func (x *TaskInstructionsRequest) String() string { func (*TaskInstructionsRequest) ProtoMessage() {} func (x *TaskInstructionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[303] + mi := &file_state_v1_state_proto_msgTypes[305] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16500,7 +16580,7 @@ func (x *TaskInstructionsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskInstructionsRequest.ProtoReflect.Descriptor instead. func (*TaskInstructionsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{303} + return file_state_v1_state_proto_rawDescGZIP(), []int{305} } func (x *TaskInstructionsRequest) GetTaskId() int64 { @@ -16520,7 +16600,7 @@ type TaskInstructionsResponse struct { func (x *TaskInstructionsResponse) Reset() { *x = TaskInstructionsResponse{} - mi := &file_state_v1_state_proto_msgTypes[304] + mi := &file_state_v1_state_proto_msgTypes[306] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16532,7 +16612,7 @@ func (x *TaskInstructionsResponse) String() string { func (*TaskInstructionsResponse) ProtoMessage() {} func (x *TaskInstructionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[304] + mi := &file_state_v1_state_proto_msgTypes[306] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16545,7 +16625,7 @@ func (x *TaskInstructionsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskInstructionsResponse.ProtoReflect.Descriptor instead. func (*TaskInstructionsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{304} + return file_state_v1_state_proto_rawDescGZIP(), []int{306} } func (x *TaskInstructionsResponse) GetInstance() string { @@ -16573,7 +16653,7 @@ type TaskModelsResponse struct { func (x *TaskModelsResponse) Reset() { *x = TaskModelsResponse{} - mi := &file_state_v1_state_proto_msgTypes[305] + mi := &file_state_v1_state_proto_msgTypes[307] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16585,7 +16665,7 @@ func (x *TaskModelsResponse) String() string { func (*TaskModelsResponse) ProtoMessage() {} func (x *TaskModelsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[305] + mi := &file_state_v1_state_proto_msgTypes[307] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16598,7 +16678,7 @@ func (x *TaskModelsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskModelsResponse.ProtoReflect.Descriptor instead. func (*TaskModelsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{305} + return file_state_v1_state_proto_rawDescGZIP(), []int{307} } func (x *TaskModelsResponse) GetOrgId() string { @@ -16640,7 +16720,7 @@ type ModelProvider struct { func (x *ModelProvider) Reset() { *x = ModelProvider{} - mi := &file_state_v1_state_proto_msgTypes[306] + mi := &file_state_v1_state_proto_msgTypes[308] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16652,7 +16732,7 @@ func (x *ModelProvider) String() string { func (*ModelProvider) ProtoMessage() {} func (x *ModelProvider) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[306] + mi := &file_state_v1_state_proto_msgTypes[308] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16665,7 +16745,7 @@ func (x *ModelProvider) ProtoReflect() protoreflect.Message { // Deprecated: Use ModelProvider.ProtoReflect.Descriptor instead. func (*ModelProvider) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{306} + return file_state_v1_state_proto_rawDescGZIP(), []int{308} } func (x *ModelProvider) GetClass() string { @@ -16711,7 +16791,7 @@ type CallerModelsRequest struct { func (x *CallerModelsRequest) Reset() { *x = CallerModelsRequest{} - mi := &file_state_v1_state_proto_msgTypes[307] + mi := &file_state_v1_state_proto_msgTypes[309] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16723,7 +16803,7 @@ func (x *CallerModelsRequest) String() string { func (*CallerModelsRequest) ProtoMessage() {} func (x *CallerModelsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[307] + mi := &file_state_v1_state_proto_msgTypes[309] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16736,7 +16816,7 @@ func (x *CallerModelsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CallerModelsRequest.ProtoReflect.Descriptor instead. func (*CallerModelsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{307} + return file_state_v1_state_proto_rawDescGZIP(), []int{309} } type CallerModelsResponse struct { @@ -16749,7 +16829,7 @@ type CallerModelsResponse struct { func (x *CallerModelsResponse) Reset() { *x = CallerModelsResponse{} - mi := &file_state_v1_state_proto_msgTypes[308] + mi := &file_state_v1_state_proto_msgTypes[310] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16761,7 +16841,7 @@ func (x *CallerModelsResponse) String() string { func (*CallerModelsResponse) ProtoMessage() {} func (x *CallerModelsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[308] + mi := &file_state_v1_state_proto_msgTypes[310] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16774,7 +16854,7 @@ func (x *CallerModelsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CallerModelsResponse.ProtoReflect.Descriptor instead. func (*CallerModelsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{308} + return file_state_v1_state_proto_rawDescGZIP(), []int{310} } func (x *CallerModelsResponse) GetOrgId() string { @@ -16817,7 +16897,7 @@ type Alert struct { func (x *Alert) Reset() { *x = Alert{} - mi := &file_state_v1_state_proto_msgTypes[309] + mi := &file_state_v1_state_proto_msgTypes[311] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16829,7 +16909,7 @@ func (x *Alert) String() string { func (*Alert) ProtoMessage() {} func (x *Alert) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[309] + mi := &file_state_v1_state_proto_msgTypes[311] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16842,7 +16922,7 @@ func (x *Alert) ProtoReflect() protoreflect.Message { // Deprecated: Use Alert.ProtoReflect.Descriptor instead. func (*Alert) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{309} + return file_state_v1_state_proto_rawDescGZIP(), []int{311} } func (x *Alert) GetId() int64 { @@ -16972,7 +17052,7 @@ type AlertDelivery struct { func (x *AlertDelivery) Reset() { *x = AlertDelivery{} - mi := &file_state_v1_state_proto_msgTypes[310] + mi := &file_state_v1_state_proto_msgTypes[312] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16984,7 +17064,7 @@ func (x *AlertDelivery) String() string { func (*AlertDelivery) ProtoMessage() {} func (x *AlertDelivery) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[310] + mi := &file_state_v1_state_proto_msgTypes[312] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16997,7 +17077,7 @@ func (x *AlertDelivery) ProtoReflect() protoreflect.Message { // Deprecated: Use AlertDelivery.ProtoReflect.Descriptor instead. func (*AlertDelivery) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{310} + return file_state_v1_state_proto_rawDescGZIP(), []int{312} } func (x *AlertDelivery) GetId() int64 { @@ -17047,7 +17127,7 @@ type AlertAttempt struct { func (x *AlertAttempt) Reset() { *x = AlertAttempt{} - mi := &file_state_v1_state_proto_msgTypes[311] + mi := &file_state_v1_state_proto_msgTypes[313] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17059,7 +17139,7 @@ func (x *AlertAttempt) String() string { func (*AlertAttempt) ProtoMessage() {} func (x *AlertAttempt) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[311] + mi := &file_state_v1_state_proto_msgTypes[313] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17072,7 +17152,7 @@ func (x *AlertAttempt) ProtoReflect() protoreflect.Message { // Deprecated: Use AlertAttempt.ProtoReflect.Descriptor instead. func (*AlertAttempt) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{311} + return file_state_v1_state_proto_rawDescGZIP(), []int{313} } func (x *AlertAttempt) GetN() int64 { @@ -17121,7 +17201,7 @@ type RaiseAlertRequest struct { func (x *RaiseAlertRequest) Reset() { *x = RaiseAlertRequest{} - mi := &file_state_v1_state_proto_msgTypes[312] + mi := &file_state_v1_state_proto_msgTypes[314] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17133,7 +17213,7 @@ func (x *RaiseAlertRequest) String() string { func (*RaiseAlertRequest) ProtoMessage() {} func (x *RaiseAlertRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[312] + mi := &file_state_v1_state_proto_msgTypes[314] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17146,7 +17226,7 @@ func (x *RaiseAlertRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RaiseAlertRequest.ProtoReflect.Descriptor instead. func (*RaiseAlertRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{312} + return file_state_v1_state_proto_rawDescGZIP(), []int{314} } func (x *RaiseAlertRequest) GetOrgId() string { @@ -17214,7 +17294,7 @@ type RaiseAlertResponse struct { func (x *RaiseAlertResponse) Reset() { *x = RaiseAlertResponse{} - mi := &file_state_v1_state_proto_msgTypes[313] + mi := &file_state_v1_state_proto_msgTypes[315] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17226,7 +17306,7 @@ func (x *RaiseAlertResponse) String() string { func (*RaiseAlertResponse) ProtoMessage() {} func (x *RaiseAlertResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[313] + mi := &file_state_v1_state_proto_msgTypes[315] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17239,7 +17319,7 @@ func (x *RaiseAlertResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RaiseAlertResponse.ProtoReflect.Descriptor instead. func (*RaiseAlertResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{313} + return file_state_v1_state_proto_rawDescGZIP(), []int{315} } func (x *RaiseAlertResponse) GetAlert() *Alert { @@ -17260,7 +17340,7 @@ type ResolveAlertRequest struct { func (x *ResolveAlertRequest) Reset() { *x = ResolveAlertRequest{} - mi := &file_state_v1_state_proto_msgTypes[314] + mi := &file_state_v1_state_proto_msgTypes[316] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17272,7 +17352,7 @@ func (x *ResolveAlertRequest) String() string { func (*ResolveAlertRequest) ProtoMessage() {} func (x *ResolveAlertRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[314] + mi := &file_state_v1_state_proto_msgTypes[316] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17285,7 +17365,7 @@ func (x *ResolveAlertRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ResolveAlertRequest.ProtoReflect.Descriptor instead. func (*ResolveAlertRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{314} + return file_state_v1_state_proto_rawDescGZIP(), []int{316} } func (x *ResolveAlertRequest) GetOrgId() string { @@ -17317,7 +17397,7 @@ type ResolveAlertResponse struct { func (x *ResolveAlertResponse) Reset() { *x = ResolveAlertResponse{} - mi := &file_state_v1_state_proto_msgTypes[315] + mi := &file_state_v1_state_proto_msgTypes[317] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17329,7 +17409,7 @@ func (x *ResolveAlertResponse) String() string { func (*ResolveAlertResponse) ProtoMessage() {} func (x *ResolveAlertResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[315] + mi := &file_state_v1_state_proto_msgTypes[317] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17342,7 +17422,7 @@ func (x *ResolveAlertResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ResolveAlertResponse.ProtoReflect.Descriptor instead. func (*ResolveAlertResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{315} + return file_state_v1_state_proto_rawDescGZIP(), []int{317} } type DismissAlertRequest struct { @@ -17355,7 +17435,7 @@ type DismissAlertRequest struct { func (x *DismissAlertRequest) Reset() { *x = DismissAlertRequest{} - mi := &file_state_v1_state_proto_msgTypes[316] + mi := &file_state_v1_state_proto_msgTypes[318] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17367,7 +17447,7 @@ func (x *DismissAlertRequest) String() string { func (*DismissAlertRequest) ProtoMessage() {} func (x *DismissAlertRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[316] + mi := &file_state_v1_state_proto_msgTypes[318] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17380,7 +17460,7 @@ func (x *DismissAlertRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DismissAlertRequest.ProtoReflect.Descriptor instead. func (*DismissAlertRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{316} + return file_state_v1_state_proto_rawDescGZIP(), []int{318} } func (x *DismissAlertRequest) GetOrgId() string { @@ -17405,7 +17485,7 @@ type DismissAlertResponse struct { func (x *DismissAlertResponse) Reset() { *x = DismissAlertResponse{} - mi := &file_state_v1_state_proto_msgTypes[317] + mi := &file_state_v1_state_proto_msgTypes[319] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17417,7 +17497,7 @@ func (x *DismissAlertResponse) String() string { func (*DismissAlertResponse) ProtoMessage() {} func (x *DismissAlertResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[317] + mi := &file_state_v1_state_proto_msgTypes[319] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17430,7 +17510,7 @@ func (x *DismissAlertResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DismissAlertResponse.ProtoReflect.Descriptor instead. func (*DismissAlertResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{317} + return file_state_v1_state_proto_rawDescGZIP(), []int{319} } type ListAlertsRequest struct { @@ -17445,7 +17525,7 @@ type ListAlertsRequest struct { func (x *ListAlertsRequest) Reset() { *x = ListAlertsRequest{} - mi := &file_state_v1_state_proto_msgTypes[318] + mi := &file_state_v1_state_proto_msgTypes[320] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17457,7 +17537,7 @@ func (x *ListAlertsRequest) String() string { func (*ListAlertsRequest) ProtoMessage() {} func (x *ListAlertsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[318] + mi := &file_state_v1_state_proto_msgTypes[320] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17470,7 +17550,7 @@ func (x *ListAlertsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAlertsRequest.ProtoReflect.Descriptor instead. func (*ListAlertsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{318} + return file_state_v1_state_proto_rawDescGZIP(), []int{320} } func (x *ListAlertsRequest) GetOrgId() string { @@ -17503,7 +17583,7 @@ type ListAlertsResponse struct { func (x *ListAlertsResponse) Reset() { *x = ListAlertsResponse{} - mi := &file_state_v1_state_proto_msgTypes[319] + mi := &file_state_v1_state_proto_msgTypes[321] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17515,7 +17595,7 @@ func (x *ListAlertsResponse) String() string { func (*ListAlertsResponse) ProtoMessage() {} func (x *ListAlertsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[319] + mi := &file_state_v1_state_proto_msgTypes[321] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17528,7 +17608,7 @@ func (x *ListAlertsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAlertsResponse.ProtoReflect.Descriptor instead. func (*ListAlertsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{319} + return file_state_v1_state_proto_rawDescGZIP(), []int{321} } func (x *ListAlertsResponse) GetAlerts() []*Alert { @@ -17547,7 +17627,7 @@ type ClaimAlertDeliveriesRequest struct { func (x *ClaimAlertDeliveriesRequest) Reset() { *x = ClaimAlertDeliveriesRequest{} - mi := &file_state_v1_state_proto_msgTypes[320] + mi := &file_state_v1_state_proto_msgTypes[322] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17559,7 +17639,7 @@ func (x *ClaimAlertDeliveriesRequest) String() string { func (*ClaimAlertDeliveriesRequest) ProtoMessage() {} func (x *ClaimAlertDeliveriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[320] + mi := &file_state_v1_state_proto_msgTypes[322] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17572,7 +17652,7 @@ func (x *ClaimAlertDeliveriesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ClaimAlertDeliveriesRequest.ProtoReflect.Descriptor instead. func (*ClaimAlertDeliveriesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{320} + return file_state_v1_state_proto_rawDescGZIP(), []int{322} } func (x *ClaimAlertDeliveriesRequest) GetLimit() int32 { @@ -17594,7 +17674,7 @@ type DueAlertDelivery struct { func (x *DueAlertDelivery) Reset() { *x = DueAlertDelivery{} - mi := &file_state_v1_state_proto_msgTypes[321] + mi := &file_state_v1_state_proto_msgTypes[323] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17606,7 +17686,7 @@ func (x *DueAlertDelivery) String() string { func (*DueAlertDelivery) ProtoMessage() {} func (x *DueAlertDelivery) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[321] + mi := &file_state_v1_state_proto_msgTypes[323] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17619,7 +17699,7 @@ func (x *DueAlertDelivery) ProtoReflect() protoreflect.Message { // Deprecated: Use DueAlertDelivery.ProtoReflect.Descriptor instead. func (*DueAlertDelivery) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{321} + return file_state_v1_state_proto_rawDescGZIP(), []int{323} } func (x *DueAlertDelivery) GetDelivery() *AlertDelivery { @@ -17652,7 +17732,7 @@ type ClaimAlertDeliveriesResponse struct { func (x *ClaimAlertDeliveriesResponse) Reset() { *x = ClaimAlertDeliveriesResponse{} - mi := &file_state_v1_state_proto_msgTypes[322] + mi := &file_state_v1_state_proto_msgTypes[324] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17664,7 +17744,7 @@ func (x *ClaimAlertDeliveriesResponse) String() string { func (*ClaimAlertDeliveriesResponse) ProtoMessage() {} func (x *ClaimAlertDeliveriesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[322] + mi := &file_state_v1_state_proto_msgTypes[324] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17677,7 +17757,7 @@ func (x *ClaimAlertDeliveriesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ClaimAlertDeliveriesResponse.ProtoReflect.Descriptor instead. func (*ClaimAlertDeliveriesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{322} + return file_state_v1_state_proto_rawDescGZIP(), []int{324} } func (x *ClaimAlertDeliveriesResponse) GetDue() []*DueAlertDelivery { @@ -17700,7 +17780,7 @@ type RecordAlertAttemptRequest struct { func (x *RecordAlertAttemptRequest) Reset() { *x = RecordAlertAttemptRequest{} - mi := &file_state_v1_state_proto_msgTypes[323] + mi := &file_state_v1_state_proto_msgTypes[325] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17712,7 +17792,7 @@ func (x *RecordAlertAttemptRequest) String() string { func (*RecordAlertAttemptRequest) ProtoMessage() {} func (x *RecordAlertAttemptRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[323] + mi := &file_state_v1_state_proto_msgTypes[325] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17725,7 +17805,7 @@ func (x *RecordAlertAttemptRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordAlertAttemptRequest.ProtoReflect.Descriptor instead. func (*RecordAlertAttemptRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{323} + return file_state_v1_state_proto_rawDescGZIP(), []int{325} } func (x *RecordAlertAttemptRequest) GetDeliveryId() int64 { @@ -17764,7 +17844,7 @@ type RecordAlertAttemptResponse struct { func (x *RecordAlertAttemptResponse) Reset() { *x = RecordAlertAttemptResponse{} - mi := &file_state_v1_state_proto_msgTypes[324] + mi := &file_state_v1_state_proto_msgTypes[326] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17776,7 +17856,7 @@ func (x *RecordAlertAttemptResponse) String() string { func (*RecordAlertAttemptResponse) ProtoMessage() {} func (x *RecordAlertAttemptResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[324] + mi := &file_state_v1_state_proto_msgTypes[326] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17789,7 +17869,7 @@ func (x *RecordAlertAttemptResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordAlertAttemptResponse.ProtoReflect.Descriptor instead. func (*RecordAlertAttemptResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{324} + return file_state_v1_state_proto_rawDescGZIP(), []int{326} } type AccountSetupRequest struct { @@ -17800,7 +17880,7 @@ type AccountSetupRequest struct { func (x *AccountSetupRequest) Reset() { *x = AccountSetupRequest{} - mi := &file_state_v1_state_proto_msgTypes[325] + mi := &file_state_v1_state_proto_msgTypes[327] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17812,7 +17892,7 @@ func (x *AccountSetupRequest) String() string { func (*AccountSetupRequest) ProtoMessage() {} func (x *AccountSetupRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[325] + mi := &file_state_v1_state_proto_msgTypes[327] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17825,7 +17905,7 @@ func (x *AccountSetupRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AccountSetupRequest.ProtoReflect.Descriptor instead. func (*AccountSetupRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{325} + return file_state_v1_state_proto_rawDescGZIP(), []int{327} } type AccountSetupResponse struct { @@ -17837,7 +17917,7 @@ type AccountSetupResponse struct { func (x *AccountSetupResponse) Reset() { *x = AccountSetupResponse{} - mi := &file_state_v1_state_proto_msgTypes[326] + mi := &file_state_v1_state_proto_msgTypes[328] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17849,7 +17929,7 @@ func (x *AccountSetupResponse) String() string { func (*AccountSetupResponse) ProtoMessage() {} func (x *AccountSetupResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[326] + mi := &file_state_v1_state_proto_msgTypes[328] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17862,7 +17942,7 @@ func (x *AccountSetupResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AccountSetupResponse.ProtoReflect.Descriptor instead. func (*AccountSetupResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{326} + return file_state_v1_state_proto_rawDescGZIP(), []int{328} } func (x *AccountSetupResponse) GetRequired() bool { @@ -17888,7 +17968,7 @@ type RegisterAccountRequest struct { func (x *RegisterAccountRequest) Reset() { *x = RegisterAccountRequest{} - mi := &file_state_v1_state_proto_msgTypes[327] + mi := &file_state_v1_state_proto_msgTypes[329] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17900,7 +17980,7 @@ func (x *RegisterAccountRequest) String() string { func (*RegisterAccountRequest) ProtoMessage() {} func (x *RegisterAccountRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[327] + mi := &file_state_v1_state_proto_msgTypes[329] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17913,7 +17993,7 @@ func (x *RegisterAccountRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RegisterAccountRequest.ProtoReflect.Descriptor instead. func (*RegisterAccountRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{327} + return file_state_v1_state_proto_rawDescGZIP(), []int{329} } func (x *RegisterAccountRequest) GetEmail() string { @@ -17981,7 +18061,7 @@ type RegisterAccountResponse struct { func (x *RegisterAccountResponse) Reset() { *x = RegisterAccountResponse{} - mi := &file_state_v1_state_proto_msgTypes[328] + mi := &file_state_v1_state_proto_msgTypes[330] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17993,7 +18073,7 @@ func (x *RegisterAccountResponse) String() string { func (*RegisterAccountResponse) ProtoMessage() {} func (x *RegisterAccountResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[328] + mi := &file_state_v1_state_proto_msgTypes[330] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18006,7 +18086,7 @@ func (x *RegisterAccountResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RegisterAccountResponse.ProtoReflect.Descriptor instead. func (*RegisterAccountResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{328} + return file_state_v1_state_proto_rawDescGZIP(), []int{330} } func (x *RegisterAccountResponse) GetIdentity() *Identity { @@ -18026,7 +18106,7 @@ type SignInAccountRequest struct { func (x *SignInAccountRequest) Reset() { *x = SignInAccountRequest{} - mi := &file_state_v1_state_proto_msgTypes[329] + mi := &file_state_v1_state_proto_msgTypes[331] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18038,7 +18118,7 @@ func (x *SignInAccountRequest) String() string { func (*SignInAccountRequest) ProtoMessage() {} func (x *SignInAccountRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[329] + mi := &file_state_v1_state_proto_msgTypes[331] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18051,7 +18131,7 @@ func (x *SignInAccountRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SignInAccountRequest.ProtoReflect.Descriptor instead. func (*SignInAccountRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{329} + return file_state_v1_state_proto_rawDescGZIP(), []int{331} } func (x *SignInAccountRequest) GetEmail() string { @@ -18079,7 +18159,7 @@ type SignInAccountResponse struct { func (x *SignInAccountResponse) Reset() { *x = SignInAccountResponse{} - mi := &file_state_v1_state_proto_msgTypes[330] + mi := &file_state_v1_state_proto_msgTypes[332] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18091,7 +18171,7 @@ func (x *SignInAccountResponse) String() string { func (*SignInAccountResponse) ProtoMessage() {} func (x *SignInAccountResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[330] + mi := &file_state_v1_state_proto_msgTypes[332] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18104,7 +18184,7 @@ func (x *SignInAccountResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SignInAccountResponse.ProtoReflect.Descriptor instead. func (*SignInAccountResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{330} + return file_state_v1_state_proto_rawDescGZIP(), []int{332} } func (x *SignInAccountResponse) GetIdentity() *Identity { @@ -18137,7 +18217,7 @@ type ResolveAccountSessionRequest struct { func (x *ResolveAccountSessionRequest) Reset() { *x = ResolveAccountSessionRequest{} - mi := &file_state_v1_state_proto_msgTypes[331] + mi := &file_state_v1_state_proto_msgTypes[333] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18149,7 +18229,7 @@ func (x *ResolveAccountSessionRequest) String() string { func (*ResolveAccountSessionRequest) ProtoMessage() {} func (x *ResolveAccountSessionRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[331] + mi := &file_state_v1_state_proto_msgTypes[333] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18162,7 +18242,7 @@ func (x *ResolveAccountSessionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ResolveAccountSessionRequest.ProtoReflect.Descriptor instead. func (*ResolveAccountSessionRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{331} + return file_state_v1_state_proto_rawDescGZIP(), []int{333} } func (x *ResolveAccountSessionRequest) GetToken() string { @@ -18181,7 +18261,7 @@ type ResolveAccountSessionResponse struct { func (x *ResolveAccountSessionResponse) Reset() { *x = ResolveAccountSessionResponse{} - mi := &file_state_v1_state_proto_msgTypes[332] + mi := &file_state_v1_state_proto_msgTypes[334] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18193,7 +18273,7 @@ func (x *ResolveAccountSessionResponse) String() string { func (*ResolveAccountSessionResponse) ProtoMessage() {} func (x *ResolveAccountSessionResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[332] + mi := &file_state_v1_state_proto_msgTypes[334] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18206,7 +18286,7 @@ func (x *ResolveAccountSessionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ResolveAccountSessionResponse.ProtoReflect.Descriptor instead. func (*ResolveAccountSessionResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{332} + return file_state_v1_state_proto_rawDescGZIP(), []int{334} } func (x *ResolveAccountSessionResponse) GetIdentity() *Identity { @@ -18225,7 +18305,7 @@ type SignOutAccountRequest struct { func (x *SignOutAccountRequest) Reset() { *x = SignOutAccountRequest{} - mi := &file_state_v1_state_proto_msgTypes[333] + mi := &file_state_v1_state_proto_msgTypes[335] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18237,7 +18317,7 @@ func (x *SignOutAccountRequest) String() string { func (*SignOutAccountRequest) ProtoMessage() {} func (x *SignOutAccountRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[333] + mi := &file_state_v1_state_proto_msgTypes[335] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18250,7 +18330,7 @@ func (x *SignOutAccountRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SignOutAccountRequest.ProtoReflect.Descriptor instead. func (*SignOutAccountRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{333} + return file_state_v1_state_proto_rawDescGZIP(), []int{335} } func (x *SignOutAccountRequest) GetToken() string { @@ -18268,7 +18348,7 @@ type SignOutAccountResponse struct { func (x *SignOutAccountResponse) Reset() { *x = SignOutAccountResponse{} - mi := &file_state_v1_state_proto_msgTypes[334] + mi := &file_state_v1_state_proto_msgTypes[336] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18280,7 +18360,7 @@ func (x *SignOutAccountResponse) String() string { func (*SignOutAccountResponse) ProtoMessage() {} func (x *SignOutAccountResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[334] + mi := &file_state_v1_state_proto_msgTypes[336] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18293,7 +18373,7 @@ func (x *SignOutAccountResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SignOutAccountResponse.ProtoReflect.Descriptor instead. func (*SignOutAccountResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{334} + return file_state_v1_state_proto_rawDescGZIP(), []int{336} } type ChangeAccountPasswordRequest struct { @@ -18306,7 +18386,7 @@ type ChangeAccountPasswordRequest struct { func (x *ChangeAccountPasswordRequest) Reset() { *x = ChangeAccountPasswordRequest{} - mi := &file_state_v1_state_proto_msgTypes[335] + mi := &file_state_v1_state_proto_msgTypes[337] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18318,7 +18398,7 @@ func (x *ChangeAccountPasswordRequest) String() string { func (*ChangeAccountPasswordRequest) ProtoMessage() {} func (x *ChangeAccountPasswordRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[335] + mi := &file_state_v1_state_proto_msgTypes[337] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18331,7 +18411,7 @@ func (x *ChangeAccountPasswordRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ChangeAccountPasswordRequest.ProtoReflect.Descriptor instead. func (*ChangeAccountPasswordRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{335} + return file_state_v1_state_proto_rawDescGZIP(), []int{337} } func (x *ChangeAccountPasswordRequest) GetCurrentPassword() string { @@ -18356,7 +18436,7 @@ type ChangeAccountPasswordResponse struct { func (x *ChangeAccountPasswordResponse) Reset() { *x = ChangeAccountPasswordResponse{} - mi := &file_state_v1_state_proto_msgTypes[336] + mi := &file_state_v1_state_proto_msgTypes[338] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18368,7 +18448,7 @@ func (x *ChangeAccountPasswordResponse) String() string { func (*ChangeAccountPasswordResponse) ProtoMessage() {} func (x *ChangeAccountPasswordResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[336] + mi := &file_state_v1_state_proto_msgTypes[338] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18381,7 +18461,7 @@ func (x *ChangeAccountPasswordResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ChangeAccountPasswordResponse.ProtoReflect.Descriptor instead. func (*ChangeAccountPasswordResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{336} + return file_state_v1_state_proto_rawDescGZIP(), []int{338} } type AuthenticationSettings struct { @@ -18396,7 +18476,7 @@ type AuthenticationSettings struct { func (x *AuthenticationSettings) Reset() { *x = AuthenticationSettings{} - mi := &file_state_v1_state_proto_msgTypes[337] + mi := &file_state_v1_state_proto_msgTypes[339] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18408,7 +18488,7 @@ func (x *AuthenticationSettings) String() string { func (*AuthenticationSettings) ProtoMessage() {} func (x *AuthenticationSettings) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[337] + mi := &file_state_v1_state_proto_msgTypes[339] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18421,7 +18501,7 @@ func (x *AuthenticationSettings) ProtoReflect() protoreflect.Message { // Deprecated: Use AuthenticationSettings.ProtoReflect.Descriptor instead. func (*AuthenticationSettings) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{337} + return file_state_v1_state_proto_rawDescGZIP(), []int{339} } func (x *AuthenticationSettings) GetPublicUrl() string { @@ -18460,7 +18540,7 @@ type GetAuthenticationSettingsRequest struct { func (x *GetAuthenticationSettingsRequest) Reset() { *x = GetAuthenticationSettingsRequest{} - mi := &file_state_v1_state_proto_msgTypes[338] + mi := &file_state_v1_state_proto_msgTypes[340] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18472,7 +18552,7 @@ func (x *GetAuthenticationSettingsRequest) String() string { func (*GetAuthenticationSettingsRequest) ProtoMessage() {} func (x *GetAuthenticationSettingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[338] + mi := &file_state_v1_state_proto_msgTypes[340] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18485,7 +18565,7 @@ func (x *GetAuthenticationSettingsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAuthenticationSettingsRequest.ProtoReflect.Descriptor instead. func (*GetAuthenticationSettingsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{338} + return file_state_v1_state_proto_rawDescGZIP(), []int{340} } type GetAuthenticationSettingsResponse struct { @@ -18497,7 +18577,7 @@ type GetAuthenticationSettingsResponse struct { func (x *GetAuthenticationSettingsResponse) Reset() { *x = GetAuthenticationSettingsResponse{} - mi := &file_state_v1_state_proto_msgTypes[339] + mi := &file_state_v1_state_proto_msgTypes[341] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18509,7 +18589,7 @@ func (x *GetAuthenticationSettingsResponse) String() string { func (*GetAuthenticationSettingsResponse) ProtoMessage() {} func (x *GetAuthenticationSettingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[339] + mi := &file_state_v1_state_proto_msgTypes[341] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18522,7 +18602,7 @@ func (x *GetAuthenticationSettingsResponse) ProtoReflect() protoreflect.Message // Deprecated: Use GetAuthenticationSettingsResponse.ProtoReflect.Descriptor instead. func (*GetAuthenticationSettingsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{339} + return file_state_v1_state_proto_rawDescGZIP(), []int{341} } func (x *GetAuthenticationSettingsResponse) GetSettings() *AuthenticationSettings { @@ -18541,7 +18621,7 @@ type SaveAuthenticationSettingsRequest struct { func (x *SaveAuthenticationSettingsRequest) Reset() { *x = SaveAuthenticationSettingsRequest{} - mi := &file_state_v1_state_proto_msgTypes[340] + mi := &file_state_v1_state_proto_msgTypes[342] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18553,7 +18633,7 @@ func (x *SaveAuthenticationSettingsRequest) String() string { func (*SaveAuthenticationSettingsRequest) ProtoMessage() {} func (x *SaveAuthenticationSettingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[340] + mi := &file_state_v1_state_proto_msgTypes[342] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18566,7 +18646,7 @@ func (x *SaveAuthenticationSettingsRequest) ProtoReflect() protoreflect.Message // Deprecated: Use SaveAuthenticationSettingsRequest.ProtoReflect.Descriptor instead. func (*SaveAuthenticationSettingsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{340} + return file_state_v1_state_proto_rawDescGZIP(), []int{342} } func (x *SaveAuthenticationSettingsRequest) GetSettings() *AuthenticationSettings { @@ -18584,7 +18664,7 @@ type SaveAuthenticationSettingsResponse struct { func (x *SaveAuthenticationSettingsResponse) Reset() { *x = SaveAuthenticationSettingsResponse{} - mi := &file_state_v1_state_proto_msgTypes[341] + mi := &file_state_v1_state_proto_msgTypes[343] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18596,7 +18676,7 @@ func (x *SaveAuthenticationSettingsResponse) String() string { func (*SaveAuthenticationSettingsResponse) ProtoMessage() {} func (x *SaveAuthenticationSettingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[341] + mi := &file_state_v1_state_proto_msgTypes[343] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18609,7 +18689,7 @@ func (x *SaveAuthenticationSettingsResponse) ProtoReflect() protoreflect.Message // Deprecated: Use SaveAuthenticationSettingsResponse.ProtoReflect.Descriptor instead. func (*SaveAuthenticationSettingsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{341} + return file_state_v1_state_proto_rawDescGZIP(), []int{343} } type BeginPasskeyRequest struct { @@ -18621,7 +18701,7 @@ type BeginPasskeyRequest struct { func (x *BeginPasskeyRequest) Reset() { *x = BeginPasskeyRequest{} - mi := &file_state_v1_state_proto_msgTypes[342] + mi := &file_state_v1_state_proto_msgTypes[344] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18633,7 +18713,7 @@ func (x *BeginPasskeyRequest) String() string { func (*BeginPasskeyRequest) ProtoMessage() {} func (x *BeginPasskeyRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[342] + mi := &file_state_v1_state_proto_msgTypes[344] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18646,7 +18726,7 @@ func (x *BeginPasskeyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BeginPasskeyRequest.ProtoReflect.Descriptor instead. func (*BeginPasskeyRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{342} + return file_state_v1_state_proto_rawDescGZIP(), []int{344} } func (x *BeginPasskeyRequest) GetRegistration() bool { @@ -18666,7 +18746,7 @@ type BeginPasskeyResponse struct { func (x *BeginPasskeyResponse) Reset() { *x = BeginPasskeyResponse{} - mi := &file_state_v1_state_proto_msgTypes[343] + mi := &file_state_v1_state_proto_msgTypes[345] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18678,7 +18758,7 @@ func (x *BeginPasskeyResponse) String() string { func (*BeginPasskeyResponse) ProtoMessage() {} func (x *BeginPasskeyResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[343] + mi := &file_state_v1_state_proto_msgTypes[345] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18691,7 +18771,7 @@ func (x *BeginPasskeyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use BeginPasskeyResponse.ProtoReflect.Descriptor instead. func (*BeginPasskeyResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{343} + return file_state_v1_state_proto_rawDescGZIP(), []int{345} } func (x *BeginPasskeyResponse) GetToken() string { @@ -18720,7 +18800,7 @@ type FinishPasskeyRequest struct { func (x *FinishPasskeyRequest) Reset() { *x = FinishPasskeyRequest{} - mi := &file_state_v1_state_proto_msgTypes[344] + mi := &file_state_v1_state_proto_msgTypes[346] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18732,7 +18812,7 @@ func (x *FinishPasskeyRequest) String() string { func (*FinishPasskeyRequest) ProtoMessage() {} func (x *FinishPasskeyRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[344] + mi := &file_state_v1_state_proto_msgTypes[346] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18745,7 +18825,7 @@ func (x *FinishPasskeyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use FinishPasskeyRequest.ProtoReflect.Descriptor instead. func (*FinishPasskeyRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{344} + return file_state_v1_state_proto_rawDescGZIP(), []int{346} } func (x *FinishPasskeyRequest) GetToken() string { @@ -18787,7 +18867,7 @@ type FinishPasskeyResponse struct { func (x *FinishPasskeyResponse) Reset() { *x = FinishPasskeyResponse{} - mi := &file_state_v1_state_proto_msgTypes[345] + mi := &file_state_v1_state_proto_msgTypes[347] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18799,7 +18879,7 @@ func (x *FinishPasskeyResponse) String() string { func (*FinishPasskeyResponse) ProtoMessage() {} func (x *FinishPasskeyResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[345] + mi := &file_state_v1_state_proto_msgTypes[347] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18812,7 +18892,7 @@ func (x *FinishPasskeyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use FinishPasskeyResponse.ProtoReflect.Descriptor instead. func (*FinishPasskeyResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{345} + return file_state_v1_state_proto_rawDescGZIP(), []int{347} } func (x *FinishPasskeyResponse) GetIdentity() *Identity { @@ -18846,7 +18926,7 @@ type Passkey struct { func (x *Passkey) Reset() { *x = Passkey{} - mi := &file_state_v1_state_proto_msgTypes[346] + mi := &file_state_v1_state_proto_msgTypes[348] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18858,7 +18938,7 @@ func (x *Passkey) String() string { func (*Passkey) ProtoMessage() {} func (x *Passkey) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[346] + mi := &file_state_v1_state_proto_msgTypes[348] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18871,7 +18951,7 @@ func (x *Passkey) ProtoReflect() protoreflect.Message { // Deprecated: Use Passkey.ProtoReflect.Descriptor instead. func (*Passkey) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{346} + return file_state_v1_state_proto_rawDescGZIP(), []int{348} } func (x *Passkey) GetId() string { @@ -18896,7 +18976,7 @@ type ListPasskeysRequest struct { func (x *ListPasskeysRequest) Reset() { *x = ListPasskeysRequest{} - mi := &file_state_v1_state_proto_msgTypes[347] + mi := &file_state_v1_state_proto_msgTypes[349] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18908,7 +18988,7 @@ func (x *ListPasskeysRequest) String() string { func (*ListPasskeysRequest) ProtoMessage() {} func (x *ListPasskeysRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[347] + mi := &file_state_v1_state_proto_msgTypes[349] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18921,7 +19001,7 @@ func (x *ListPasskeysRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPasskeysRequest.ProtoReflect.Descriptor instead. func (*ListPasskeysRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{347} + return file_state_v1_state_proto_rawDescGZIP(), []int{349} } type ListPasskeysResponse struct { @@ -18933,7 +19013,7 @@ type ListPasskeysResponse struct { func (x *ListPasskeysResponse) Reset() { *x = ListPasskeysResponse{} - mi := &file_state_v1_state_proto_msgTypes[348] + mi := &file_state_v1_state_proto_msgTypes[350] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18945,7 +19025,7 @@ func (x *ListPasskeysResponse) String() string { func (*ListPasskeysResponse) ProtoMessage() {} func (x *ListPasskeysResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[348] + mi := &file_state_v1_state_proto_msgTypes[350] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18958,7 +19038,7 @@ func (x *ListPasskeysResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPasskeysResponse.ProtoReflect.Descriptor instead. func (*ListPasskeysResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{348} + return file_state_v1_state_proto_rawDescGZIP(), []int{350} } func (x *ListPasskeysResponse) GetPasskeys() []*Passkey { @@ -18977,7 +19057,7 @@ type DeletePasskeyRequest struct { func (x *DeletePasskeyRequest) Reset() { *x = DeletePasskeyRequest{} - mi := &file_state_v1_state_proto_msgTypes[349] + mi := &file_state_v1_state_proto_msgTypes[351] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18989,7 +19069,7 @@ func (x *DeletePasskeyRequest) String() string { func (*DeletePasskeyRequest) ProtoMessage() {} func (x *DeletePasskeyRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[349] + mi := &file_state_v1_state_proto_msgTypes[351] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19002,7 +19082,7 @@ func (x *DeletePasskeyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePasskeyRequest.ProtoReflect.Descriptor instead. func (*DeletePasskeyRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{349} + return file_state_v1_state_proto_rawDescGZIP(), []int{351} } func (x *DeletePasskeyRequest) GetId() string { @@ -19020,7 +19100,7 @@ type DeletePasskeyResponse struct { func (x *DeletePasskeyResponse) Reset() { *x = DeletePasskeyResponse{} - mi := &file_state_v1_state_proto_msgTypes[350] + mi := &file_state_v1_state_proto_msgTypes[352] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19032,7 +19112,7 @@ func (x *DeletePasskeyResponse) String() string { func (*DeletePasskeyResponse) ProtoMessage() {} func (x *DeletePasskeyResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[350] + mi := &file_state_v1_state_proto_msgTypes[352] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19045,7 +19125,7 @@ func (x *DeletePasskeyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePasskeyResponse.ProtoReflect.Descriptor instead. func (*DeletePasskeyResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{350} + return file_state_v1_state_proto_rawDescGZIP(), []int{352} } type OpenAccountSessionRequest struct { @@ -19057,7 +19137,7 @@ type OpenAccountSessionRequest struct { func (x *OpenAccountSessionRequest) Reset() { *x = OpenAccountSessionRequest{} - mi := &file_state_v1_state_proto_msgTypes[351] + mi := &file_state_v1_state_proto_msgTypes[353] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19069,7 +19149,7 @@ func (x *OpenAccountSessionRequest) String() string { func (*OpenAccountSessionRequest) ProtoMessage() {} func (x *OpenAccountSessionRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[351] + mi := &file_state_v1_state_proto_msgTypes[353] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19082,7 +19162,7 @@ func (x *OpenAccountSessionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use OpenAccountSessionRequest.ProtoReflect.Descriptor instead. func (*OpenAccountSessionRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{351} + return file_state_v1_state_proto_rawDescGZIP(), []int{353} } func (x *OpenAccountSessionRequest) GetExpiresAt() *timestamppb.Timestamp { @@ -19103,7 +19183,7 @@ type OpenAccountSessionResponse struct { func (x *OpenAccountSessionResponse) Reset() { *x = OpenAccountSessionResponse{} - mi := &file_state_v1_state_proto_msgTypes[352] + mi := &file_state_v1_state_proto_msgTypes[354] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19115,7 +19195,7 @@ func (x *OpenAccountSessionResponse) String() string { func (*OpenAccountSessionResponse) ProtoMessage() {} func (x *OpenAccountSessionResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[352] + mi := &file_state_v1_state_proto_msgTypes[354] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19128,7 +19208,7 @@ func (x *OpenAccountSessionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use OpenAccountSessionResponse.ProtoReflect.Descriptor instead. func (*OpenAccountSessionResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{352} + return file_state_v1_state_proto_rawDescGZIP(), []int{354} } func (x *OpenAccountSessionResponse) GetIdentity() *Identity { @@ -19161,7 +19241,7 @@ type RequireFreshAccountSessionRequest struct { func (x *RequireFreshAccountSessionRequest) Reset() { *x = RequireFreshAccountSessionRequest{} - mi := &file_state_v1_state_proto_msgTypes[353] + mi := &file_state_v1_state_proto_msgTypes[355] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19173,7 +19253,7 @@ func (x *RequireFreshAccountSessionRequest) String() string { func (*RequireFreshAccountSessionRequest) ProtoMessage() {} func (x *RequireFreshAccountSessionRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[353] + mi := &file_state_v1_state_proto_msgTypes[355] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19186,7 +19266,7 @@ func (x *RequireFreshAccountSessionRequest) ProtoReflect() protoreflect.Message // Deprecated: Use RequireFreshAccountSessionRequest.ProtoReflect.Descriptor instead. func (*RequireFreshAccountSessionRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{353} + return file_state_v1_state_proto_rawDescGZIP(), []int{355} } func (x *RequireFreshAccountSessionRequest) GetToken() string { @@ -19204,7 +19284,7 @@ type RequireFreshAccountSessionResponse struct { func (x *RequireFreshAccountSessionResponse) Reset() { *x = RequireFreshAccountSessionResponse{} - mi := &file_state_v1_state_proto_msgTypes[354] + mi := &file_state_v1_state_proto_msgTypes[356] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19216,7 +19296,7 @@ func (x *RequireFreshAccountSessionResponse) String() string { func (*RequireFreshAccountSessionResponse) ProtoMessage() {} func (x *RequireFreshAccountSessionResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[354] + mi := &file_state_v1_state_proto_msgTypes[356] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19229,7 +19309,7 @@ func (x *RequireFreshAccountSessionResponse) ProtoReflect() protoreflect.Message // Deprecated: Use RequireFreshAccountSessionResponse.ProtoReflect.Descriptor instead. func (*RequireFreshAccountSessionResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{354} + return file_state_v1_state_proto_rawDescGZIP(), []int{356} } type CreateAccountRecoveryRequest struct { @@ -19240,7 +19320,7 @@ type CreateAccountRecoveryRequest struct { func (x *CreateAccountRecoveryRequest) Reset() { *x = CreateAccountRecoveryRequest{} - mi := &file_state_v1_state_proto_msgTypes[355] + mi := &file_state_v1_state_proto_msgTypes[357] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19252,7 +19332,7 @@ func (x *CreateAccountRecoveryRequest) String() string { func (*CreateAccountRecoveryRequest) ProtoMessage() {} func (x *CreateAccountRecoveryRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[355] + mi := &file_state_v1_state_proto_msgTypes[357] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19265,7 +19345,7 @@ func (x *CreateAccountRecoveryRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateAccountRecoveryRequest.ProtoReflect.Descriptor instead. func (*CreateAccountRecoveryRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{355} + return file_state_v1_state_proto_rawDescGZIP(), []int{357} } type CreateAccountRecoveryResponse struct { @@ -19277,7 +19357,7 @@ type CreateAccountRecoveryResponse struct { func (x *CreateAccountRecoveryResponse) Reset() { *x = CreateAccountRecoveryResponse{} - mi := &file_state_v1_state_proto_msgTypes[356] + mi := &file_state_v1_state_proto_msgTypes[358] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19289,7 +19369,7 @@ func (x *CreateAccountRecoveryResponse) String() string { func (*CreateAccountRecoveryResponse) ProtoMessage() {} func (x *CreateAccountRecoveryResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[356] + mi := &file_state_v1_state_proto_msgTypes[358] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19302,7 +19382,7 @@ func (x *CreateAccountRecoveryResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateAccountRecoveryResponse.ProtoReflect.Descriptor instead. func (*CreateAccountRecoveryResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{356} + return file_state_v1_state_proto_rawDescGZIP(), []int{358} } func (x *CreateAccountRecoveryResponse) GetCode() string { @@ -19323,7 +19403,7 @@ type RecoverAccountRequest struct { func (x *RecoverAccountRequest) Reset() { *x = RecoverAccountRequest{} - mi := &file_state_v1_state_proto_msgTypes[357] + mi := &file_state_v1_state_proto_msgTypes[359] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19335,7 +19415,7 @@ func (x *RecoverAccountRequest) String() string { func (*RecoverAccountRequest) ProtoMessage() {} func (x *RecoverAccountRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[357] + mi := &file_state_v1_state_proto_msgTypes[359] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19348,7 +19428,7 @@ func (x *RecoverAccountRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecoverAccountRequest.ProtoReflect.Descriptor instead. func (*RecoverAccountRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{357} + return file_state_v1_state_proto_rawDescGZIP(), []int{359} } func (x *RecoverAccountRequest) GetEmail() string { @@ -19380,7 +19460,7 @@ type RecoverAccountResponse struct { func (x *RecoverAccountResponse) Reset() { *x = RecoverAccountResponse{} - mi := &file_state_v1_state_proto_msgTypes[358] + mi := &file_state_v1_state_proto_msgTypes[360] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19392,7 +19472,7 @@ func (x *RecoverAccountResponse) String() string { func (*RecoverAccountResponse) ProtoMessage() {} func (x *RecoverAccountResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[358] + mi := &file_state_v1_state_proto_msgTypes[360] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19405,7 +19485,7 @@ func (x *RecoverAccountResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecoverAccountResponse.ProtoReflect.Descriptor instead. func (*RecoverAccountResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{358} + return file_state_v1_state_proto_rawDescGZIP(), []int{360} } type ListOrgAgentsRequest struct { @@ -19417,7 +19497,7 @@ type ListOrgAgentsRequest struct { func (x *ListOrgAgentsRequest) Reset() { *x = ListOrgAgentsRequest{} - mi := &file_state_v1_state_proto_msgTypes[359] + mi := &file_state_v1_state_proto_msgTypes[361] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19429,7 +19509,7 @@ func (x *ListOrgAgentsRequest) String() string { func (*ListOrgAgentsRequest) ProtoMessage() {} func (x *ListOrgAgentsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[359] + mi := &file_state_v1_state_proto_msgTypes[361] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19442,7 +19522,7 @@ func (x *ListOrgAgentsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListOrgAgentsRequest.ProtoReflect.Descriptor instead. func (*ListOrgAgentsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{359} + return file_state_v1_state_proto_rawDescGZIP(), []int{361} } func (x *ListOrgAgentsRequest) GetOrgId() string { @@ -19462,7 +19542,7 @@ type AgentAssignment struct { func (x *AgentAssignment) Reset() { *x = AgentAssignment{} - mi := &file_state_v1_state_proto_msgTypes[360] + mi := &file_state_v1_state_proto_msgTypes[362] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19474,7 +19554,7 @@ func (x *AgentAssignment) String() string { func (*AgentAssignment) ProtoMessage() {} func (x *AgentAssignment) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[360] + mi := &file_state_v1_state_proto_msgTypes[362] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19487,7 +19567,7 @@ func (x *AgentAssignment) ProtoReflect() protoreflect.Message { // Deprecated: Use AgentAssignment.ProtoReflect.Descriptor instead. func (*AgentAssignment) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{360} + return file_state_v1_state_proto_rawDescGZIP(), []int{362} } func (x *AgentAssignment) GetIdentityId() string { @@ -19513,7 +19593,7 @@ type ListOrgAgentsResponse struct { func (x *ListOrgAgentsResponse) Reset() { *x = ListOrgAgentsResponse{} - mi := &file_state_v1_state_proto_msgTypes[361] + mi := &file_state_v1_state_proto_msgTypes[363] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -19525,7 +19605,7 @@ func (x *ListOrgAgentsResponse) String() string { func (*ListOrgAgentsResponse) ProtoMessage() {} func (x *ListOrgAgentsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[361] + mi := &file_state_v1_state_proto_msgTypes[363] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19538,7 +19618,7 @@ func (x *ListOrgAgentsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListOrgAgentsResponse.ProtoReflect.Descriptor instead. func (*ListOrgAgentsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{361} + return file_state_v1_state_proto_rawDescGZIP(), []int{363} } func (x *ListOrgAgentsResponse) GetAgents() []*AgentAssignment { @@ -20512,7 +20592,10 @@ const file_state_v1_state_proto_rawDesc = "" + "\x04text\x18\a \x01(\tR\x04text\"\x15\n" + "\x13ListPoliciesRequest\"J\n" + "\x14ListPoliciesResponse\x122\n" + - "\bpolicies\x18\x01 \x03(\v2\x16.state.v1.AccessPolicyR\bpolicies\"B\n" + + "\bpolicies\x18\x01 \x03(\v2\x16.state.v1.AccessPolicyR\bpolicies\"\x1b\n" + + "\x19GetPoliciesVersionRequest\"6\n" + + "\x1aGetPoliciesVersionResponse\x12\x18\n" + + "\aversion\x18\x01 \x01(\x03R\aversion\"B\n" + "\x10PutPolicyRequest\x12.\n" + "\x06policy\x18\x01 \x01(\v2\x16.state.v1.AccessPolicyR\x06policy\"-\n" + "\x11PutPolicyResponse\x12\x18\n" + @@ -20829,7 +20912,7 @@ const file_state_v1_state_proto_rawDesc = "" + "identityId\x12\x15\n" + "\x06org_id\x18\x02 \x01(\tR\x05orgId\"J\n" + "\x15ListOrgAgentsResponse\x121\n" + - "\x06agents\x18\x01 \x03(\v2\x19.state.v1.AgentAssignmentR\x06agents2\x95j\n" + + "\x06agents\x18\x01 \x03(\v2\x19.state.v1.AgentAssignmentR\x06agents2\xf6j\n" + "\x11StateStoreService\x12G\n" + "\n" + "RecentLogs\x12\x1b.state.v1.RecentLogsRequest\x1a\x1c.state.v1.RecentLogsResponse\x12S\n" + @@ -20974,7 +21057,8 @@ const file_state_v1_state_proto_rawDesc = "" + "\x0fEnqueueCallTask\x12 .state.v1.EnqueueCallTaskRequest\x1a!.state.v1.EnqueueCallTaskResponse\x12_\n" + "\x12WorkflowCallStatus\x12#.state.v1.WorkflowCallStatusRequest\x1a$.state.v1.WorkflowCallStatusResponse\x12M\n" + "\fGetPrincipal\x12\x1d.state.v1.GetPrincipalRequest\x1a\x1e.state.v1.GetPrincipalResponse\x12M\n" + - "\fListPolicies\x12\x1d.state.v1.ListPoliciesRequest\x1a\x1e.state.v1.ListPoliciesResponse\x12D\n" + + "\fListPolicies\x12\x1d.state.v1.ListPoliciesRequest\x1a\x1e.state.v1.ListPoliciesResponse\x12_\n" + + "\x12GetPoliciesVersion\x12#.state.v1.GetPoliciesVersionRequest\x1a$.state.v1.GetPoliciesVersionResponse\x12D\n" + "\tPutPolicy\x12\x1a.state.v1.PutPolicyRequest\x1a\x1b.state.v1.PutPolicyResponse\x12M\n" + "\fDeletePolicy\x12\x1d.state.v1.DeletePolicyRequest\x1a\x1e.state.v1.DeletePolicyResponse\x12q\n" + "\x18EnsureShippedOrgPolicies\x12).state.v1.EnsureShippedOrgPoliciesRequest\x1a*.state.v1.EnsureShippedOrgPoliciesResponse\x12M\n" + @@ -21013,7 +21097,7 @@ func file_state_v1_state_proto_rawDescGZIP() []byte { return file_state_v1_state_proto_rawDescData } -var file_state_v1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 367) +var file_state_v1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 369) var file_state_v1_state_proto_goTypes = []any{ (*RegisterTaskGrantRequest)(nil), // 0: state.v1.RegisterTaskGrantRequest (*RegisterTaskGrantResponse)(nil), // 1: state.v1.RegisterTaskGrantResponse @@ -21280,115 +21364,117 @@ var file_state_v1_state_proto_goTypes = []any{ (*AccessPolicy)(nil), // 262: state.v1.AccessPolicy (*ListPoliciesRequest)(nil), // 263: state.v1.ListPoliciesRequest (*ListPoliciesResponse)(nil), // 264: state.v1.ListPoliciesResponse - (*PutPolicyRequest)(nil), // 265: state.v1.PutPolicyRequest - (*PutPolicyResponse)(nil), // 266: state.v1.PutPolicyResponse - (*DeletePolicyRequest)(nil), // 267: state.v1.DeletePolicyRequest - (*DeletePolicyResponse)(nil), // 268: state.v1.DeletePolicyResponse - (*EnsureShippedOrgPoliciesRequest)(nil), // 269: state.v1.EnsureShippedOrgPoliciesRequest - (*EnsureShippedOrgPoliciesResponse)(nil), // 270: state.v1.EnsureShippedOrgPoliciesResponse - (*AccessDenial)(nil), // 271: state.v1.AccessDenial - (*RecordDenialRequest)(nil), // 272: state.v1.RecordDenialRequest - (*RecordDenialResponse)(nil), // 273: state.v1.RecordDenialResponse - (*ListDenialsRequest)(nil), // 274: state.v1.ListDenialsRequest - (*ListDenialsResponse)(nil), // 275: state.v1.ListDenialsResponse - (*Org)(nil), // 276: state.v1.Org - (*Workspace)(nil), // 277: state.v1.Workspace - (*Member)(nil), // 278: state.v1.Member - (*ListOrgsRequest)(nil), // 279: state.v1.ListOrgsRequest - (*ListOrgsResponse)(nil), // 280: state.v1.ListOrgsResponse - (*GetOrgRequest)(nil), // 281: state.v1.GetOrgRequest - (*GetOrgResponse)(nil), // 282: state.v1.GetOrgResponse - (*CreateOrgRequest)(nil), // 283: state.v1.CreateOrgRequest - (*CreateOrgResponse)(nil), // 284: state.v1.CreateOrgResponse - (*ListWorkspacesRequest)(nil), // 285: state.v1.ListWorkspacesRequest - (*ListWorkspacesResponse)(nil), // 286: state.v1.ListWorkspacesResponse - (*CreateWorkspaceRequest)(nil), // 287: state.v1.CreateWorkspaceRequest - (*CreateWorkspaceResponse)(nil), // 288: state.v1.CreateWorkspaceResponse - (*ListMembersRequest)(nil), // 289: state.v1.ListMembersRequest - (*ListMembersResponse)(nil), // 290: state.v1.ListMembersResponse - (*SetMembershipRequest)(nil), // 291: state.v1.SetMembershipRequest - (*SetMembershipResponse)(nil), // 292: state.v1.SetMembershipResponse - (*RemoveMembershipRequest)(nil), // 293: state.v1.RemoveMembershipRequest - (*RemoveMembershipResponse)(nil), // 294: state.v1.RemoveMembershipResponse - (*AssignAgentRequest)(nil), // 295: state.v1.AssignAgentRequest - (*AssignAgentResponse)(nil), // 296: state.v1.AssignAgentResponse - (*RecentLogsRequest)(nil), // 297: state.v1.RecentLogsRequest - (*RecentLogsResponse)(nil), // 298: state.v1.RecentLogsResponse - (*UsageRecord)(nil), // 299: state.v1.UsageRecord - (*RecordUsageRequest)(nil), // 300: state.v1.RecordUsageRequest - (*RecordUsageResponse)(nil), // 301: state.v1.RecordUsageResponse - (*TaskModelsRequest)(nil), // 302: state.v1.TaskModelsRequest - (*TaskInstructionsRequest)(nil), // 303: state.v1.TaskInstructionsRequest - (*TaskInstructionsResponse)(nil), // 304: state.v1.TaskInstructionsResponse - (*TaskModelsResponse)(nil), // 305: state.v1.TaskModelsResponse - (*ModelProvider)(nil), // 306: state.v1.ModelProvider - (*CallerModelsRequest)(nil), // 307: state.v1.CallerModelsRequest - (*CallerModelsResponse)(nil), // 308: state.v1.CallerModelsResponse - (*Alert)(nil), // 309: state.v1.Alert - (*AlertDelivery)(nil), // 310: state.v1.AlertDelivery - (*AlertAttempt)(nil), // 311: state.v1.AlertAttempt - (*RaiseAlertRequest)(nil), // 312: state.v1.RaiseAlertRequest - (*RaiseAlertResponse)(nil), // 313: state.v1.RaiseAlertResponse - (*ResolveAlertRequest)(nil), // 314: state.v1.ResolveAlertRequest - (*ResolveAlertResponse)(nil), // 315: state.v1.ResolveAlertResponse - (*DismissAlertRequest)(nil), // 316: state.v1.DismissAlertRequest - (*DismissAlertResponse)(nil), // 317: state.v1.DismissAlertResponse - (*ListAlertsRequest)(nil), // 318: state.v1.ListAlertsRequest - (*ListAlertsResponse)(nil), // 319: state.v1.ListAlertsResponse - (*ClaimAlertDeliveriesRequest)(nil), // 320: state.v1.ClaimAlertDeliveriesRequest - (*DueAlertDelivery)(nil), // 321: state.v1.DueAlertDelivery - (*ClaimAlertDeliveriesResponse)(nil), // 322: state.v1.ClaimAlertDeliveriesResponse - (*RecordAlertAttemptRequest)(nil), // 323: state.v1.RecordAlertAttemptRequest - (*RecordAlertAttemptResponse)(nil), // 324: state.v1.RecordAlertAttemptResponse - (*AccountSetupRequest)(nil), // 325: state.v1.AccountSetupRequest - (*AccountSetupResponse)(nil), // 326: state.v1.AccountSetupResponse - (*RegisterAccountRequest)(nil), // 327: state.v1.RegisterAccountRequest - (*RegisterAccountResponse)(nil), // 328: state.v1.RegisterAccountResponse - (*SignInAccountRequest)(nil), // 329: state.v1.SignInAccountRequest - (*SignInAccountResponse)(nil), // 330: state.v1.SignInAccountResponse - (*ResolveAccountSessionRequest)(nil), // 331: state.v1.ResolveAccountSessionRequest - (*ResolveAccountSessionResponse)(nil), // 332: state.v1.ResolveAccountSessionResponse - (*SignOutAccountRequest)(nil), // 333: state.v1.SignOutAccountRequest - (*SignOutAccountResponse)(nil), // 334: state.v1.SignOutAccountResponse - (*ChangeAccountPasswordRequest)(nil), // 335: state.v1.ChangeAccountPasswordRequest - (*ChangeAccountPasswordResponse)(nil), // 336: state.v1.ChangeAccountPasswordResponse - (*AuthenticationSettings)(nil), // 337: state.v1.AuthenticationSettings - (*GetAuthenticationSettingsRequest)(nil), // 338: state.v1.GetAuthenticationSettingsRequest - (*GetAuthenticationSettingsResponse)(nil), // 339: state.v1.GetAuthenticationSettingsResponse - (*SaveAuthenticationSettingsRequest)(nil), // 340: state.v1.SaveAuthenticationSettingsRequest - (*SaveAuthenticationSettingsResponse)(nil), // 341: state.v1.SaveAuthenticationSettingsResponse - (*BeginPasskeyRequest)(nil), // 342: state.v1.BeginPasskeyRequest - (*BeginPasskeyResponse)(nil), // 343: state.v1.BeginPasskeyResponse - (*FinishPasskeyRequest)(nil), // 344: state.v1.FinishPasskeyRequest - (*FinishPasskeyResponse)(nil), // 345: state.v1.FinishPasskeyResponse - (*Passkey)(nil), // 346: state.v1.Passkey - (*ListPasskeysRequest)(nil), // 347: state.v1.ListPasskeysRequest - (*ListPasskeysResponse)(nil), // 348: state.v1.ListPasskeysResponse - (*DeletePasskeyRequest)(nil), // 349: state.v1.DeletePasskeyRequest - (*DeletePasskeyResponse)(nil), // 350: state.v1.DeletePasskeyResponse - (*OpenAccountSessionRequest)(nil), // 351: state.v1.OpenAccountSessionRequest - (*OpenAccountSessionResponse)(nil), // 352: state.v1.OpenAccountSessionResponse - (*RequireFreshAccountSessionRequest)(nil), // 353: state.v1.RequireFreshAccountSessionRequest - (*RequireFreshAccountSessionResponse)(nil), // 354: state.v1.RequireFreshAccountSessionResponse - (*CreateAccountRecoveryRequest)(nil), // 355: state.v1.CreateAccountRecoveryRequest - (*CreateAccountRecoveryResponse)(nil), // 356: state.v1.CreateAccountRecoveryResponse - (*RecoverAccountRequest)(nil), // 357: state.v1.RecoverAccountRequest - (*RecoverAccountResponse)(nil), // 358: state.v1.RecoverAccountResponse - (*ListOrgAgentsRequest)(nil), // 359: state.v1.ListOrgAgentsRequest - (*AgentAssignment)(nil), // 360: state.v1.AgentAssignment - (*ListOrgAgentsResponse)(nil), // 361: state.v1.ListOrgAgentsResponse - nil, // 362: state.v1.EventType.SchemaEntry - nil, // 363: state.v1.StatusCountsResponse.CountsEntry - nil, // 364: state.v1.TaskModelsResponse.AliasesEntry - nil, // 365: state.v1.TaskModelsResponse.ProvidersEntry - nil, // 366: state.v1.CallerModelsResponse.AliasesEntry - (*timestamppb.Timestamp)(nil), // 367: google.protobuf.Timestamp - (*v1.LogQuery)(nil), // 368: logging.v1.LogQuery - (*v1.LogSnapshot)(nil), // 369: logging.v1.LogSnapshot + (*GetPoliciesVersionRequest)(nil), // 265: state.v1.GetPoliciesVersionRequest + (*GetPoliciesVersionResponse)(nil), // 266: state.v1.GetPoliciesVersionResponse + (*PutPolicyRequest)(nil), // 267: state.v1.PutPolicyRequest + (*PutPolicyResponse)(nil), // 268: state.v1.PutPolicyResponse + (*DeletePolicyRequest)(nil), // 269: state.v1.DeletePolicyRequest + (*DeletePolicyResponse)(nil), // 270: state.v1.DeletePolicyResponse + (*EnsureShippedOrgPoliciesRequest)(nil), // 271: state.v1.EnsureShippedOrgPoliciesRequest + (*EnsureShippedOrgPoliciesResponse)(nil), // 272: state.v1.EnsureShippedOrgPoliciesResponse + (*AccessDenial)(nil), // 273: state.v1.AccessDenial + (*RecordDenialRequest)(nil), // 274: state.v1.RecordDenialRequest + (*RecordDenialResponse)(nil), // 275: state.v1.RecordDenialResponse + (*ListDenialsRequest)(nil), // 276: state.v1.ListDenialsRequest + (*ListDenialsResponse)(nil), // 277: state.v1.ListDenialsResponse + (*Org)(nil), // 278: state.v1.Org + (*Workspace)(nil), // 279: state.v1.Workspace + (*Member)(nil), // 280: state.v1.Member + (*ListOrgsRequest)(nil), // 281: state.v1.ListOrgsRequest + (*ListOrgsResponse)(nil), // 282: state.v1.ListOrgsResponse + (*GetOrgRequest)(nil), // 283: state.v1.GetOrgRequest + (*GetOrgResponse)(nil), // 284: state.v1.GetOrgResponse + (*CreateOrgRequest)(nil), // 285: state.v1.CreateOrgRequest + (*CreateOrgResponse)(nil), // 286: state.v1.CreateOrgResponse + (*ListWorkspacesRequest)(nil), // 287: state.v1.ListWorkspacesRequest + (*ListWorkspacesResponse)(nil), // 288: state.v1.ListWorkspacesResponse + (*CreateWorkspaceRequest)(nil), // 289: state.v1.CreateWorkspaceRequest + (*CreateWorkspaceResponse)(nil), // 290: state.v1.CreateWorkspaceResponse + (*ListMembersRequest)(nil), // 291: state.v1.ListMembersRequest + (*ListMembersResponse)(nil), // 292: state.v1.ListMembersResponse + (*SetMembershipRequest)(nil), // 293: state.v1.SetMembershipRequest + (*SetMembershipResponse)(nil), // 294: state.v1.SetMembershipResponse + (*RemoveMembershipRequest)(nil), // 295: state.v1.RemoveMembershipRequest + (*RemoveMembershipResponse)(nil), // 296: state.v1.RemoveMembershipResponse + (*AssignAgentRequest)(nil), // 297: state.v1.AssignAgentRequest + (*AssignAgentResponse)(nil), // 298: state.v1.AssignAgentResponse + (*RecentLogsRequest)(nil), // 299: state.v1.RecentLogsRequest + (*RecentLogsResponse)(nil), // 300: state.v1.RecentLogsResponse + (*UsageRecord)(nil), // 301: state.v1.UsageRecord + (*RecordUsageRequest)(nil), // 302: state.v1.RecordUsageRequest + (*RecordUsageResponse)(nil), // 303: state.v1.RecordUsageResponse + (*TaskModelsRequest)(nil), // 304: state.v1.TaskModelsRequest + (*TaskInstructionsRequest)(nil), // 305: state.v1.TaskInstructionsRequest + (*TaskInstructionsResponse)(nil), // 306: state.v1.TaskInstructionsResponse + (*TaskModelsResponse)(nil), // 307: state.v1.TaskModelsResponse + (*ModelProvider)(nil), // 308: state.v1.ModelProvider + (*CallerModelsRequest)(nil), // 309: state.v1.CallerModelsRequest + (*CallerModelsResponse)(nil), // 310: state.v1.CallerModelsResponse + (*Alert)(nil), // 311: state.v1.Alert + (*AlertDelivery)(nil), // 312: state.v1.AlertDelivery + (*AlertAttempt)(nil), // 313: state.v1.AlertAttempt + (*RaiseAlertRequest)(nil), // 314: state.v1.RaiseAlertRequest + (*RaiseAlertResponse)(nil), // 315: state.v1.RaiseAlertResponse + (*ResolveAlertRequest)(nil), // 316: state.v1.ResolveAlertRequest + (*ResolveAlertResponse)(nil), // 317: state.v1.ResolveAlertResponse + (*DismissAlertRequest)(nil), // 318: state.v1.DismissAlertRequest + (*DismissAlertResponse)(nil), // 319: state.v1.DismissAlertResponse + (*ListAlertsRequest)(nil), // 320: state.v1.ListAlertsRequest + (*ListAlertsResponse)(nil), // 321: state.v1.ListAlertsResponse + (*ClaimAlertDeliveriesRequest)(nil), // 322: state.v1.ClaimAlertDeliveriesRequest + (*DueAlertDelivery)(nil), // 323: state.v1.DueAlertDelivery + (*ClaimAlertDeliveriesResponse)(nil), // 324: state.v1.ClaimAlertDeliveriesResponse + (*RecordAlertAttemptRequest)(nil), // 325: state.v1.RecordAlertAttemptRequest + (*RecordAlertAttemptResponse)(nil), // 326: state.v1.RecordAlertAttemptResponse + (*AccountSetupRequest)(nil), // 327: state.v1.AccountSetupRequest + (*AccountSetupResponse)(nil), // 328: state.v1.AccountSetupResponse + (*RegisterAccountRequest)(nil), // 329: state.v1.RegisterAccountRequest + (*RegisterAccountResponse)(nil), // 330: state.v1.RegisterAccountResponse + (*SignInAccountRequest)(nil), // 331: state.v1.SignInAccountRequest + (*SignInAccountResponse)(nil), // 332: state.v1.SignInAccountResponse + (*ResolveAccountSessionRequest)(nil), // 333: state.v1.ResolveAccountSessionRequest + (*ResolveAccountSessionResponse)(nil), // 334: state.v1.ResolveAccountSessionResponse + (*SignOutAccountRequest)(nil), // 335: state.v1.SignOutAccountRequest + (*SignOutAccountResponse)(nil), // 336: state.v1.SignOutAccountResponse + (*ChangeAccountPasswordRequest)(nil), // 337: state.v1.ChangeAccountPasswordRequest + (*ChangeAccountPasswordResponse)(nil), // 338: state.v1.ChangeAccountPasswordResponse + (*AuthenticationSettings)(nil), // 339: state.v1.AuthenticationSettings + (*GetAuthenticationSettingsRequest)(nil), // 340: state.v1.GetAuthenticationSettingsRequest + (*GetAuthenticationSettingsResponse)(nil), // 341: state.v1.GetAuthenticationSettingsResponse + (*SaveAuthenticationSettingsRequest)(nil), // 342: state.v1.SaveAuthenticationSettingsRequest + (*SaveAuthenticationSettingsResponse)(nil), // 343: state.v1.SaveAuthenticationSettingsResponse + (*BeginPasskeyRequest)(nil), // 344: state.v1.BeginPasskeyRequest + (*BeginPasskeyResponse)(nil), // 345: state.v1.BeginPasskeyResponse + (*FinishPasskeyRequest)(nil), // 346: state.v1.FinishPasskeyRequest + (*FinishPasskeyResponse)(nil), // 347: state.v1.FinishPasskeyResponse + (*Passkey)(nil), // 348: state.v1.Passkey + (*ListPasskeysRequest)(nil), // 349: state.v1.ListPasskeysRequest + (*ListPasskeysResponse)(nil), // 350: state.v1.ListPasskeysResponse + (*DeletePasskeyRequest)(nil), // 351: state.v1.DeletePasskeyRequest + (*DeletePasskeyResponse)(nil), // 352: state.v1.DeletePasskeyResponse + (*OpenAccountSessionRequest)(nil), // 353: state.v1.OpenAccountSessionRequest + (*OpenAccountSessionResponse)(nil), // 354: state.v1.OpenAccountSessionResponse + (*RequireFreshAccountSessionRequest)(nil), // 355: state.v1.RequireFreshAccountSessionRequest + (*RequireFreshAccountSessionResponse)(nil), // 356: state.v1.RequireFreshAccountSessionResponse + (*CreateAccountRecoveryRequest)(nil), // 357: state.v1.CreateAccountRecoveryRequest + (*CreateAccountRecoveryResponse)(nil), // 358: state.v1.CreateAccountRecoveryResponse + (*RecoverAccountRequest)(nil), // 359: state.v1.RecoverAccountRequest + (*RecoverAccountResponse)(nil), // 360: state.v1.RecoverAccountResponse + (*ListOrgAgentsRequest)(nil), // 361: state.v1.ListOrgAgentsRequest + (*AgentAssignment)(nil), // 362: state.v1.AgentAssignment + (*ListOrgAgentsResponse)(nil), // 363: state.v1.ListOrgAgentsResponse + nil, // 364: state.v1.EventType.SchemaEntry + nil, // 365: state.v1.StatusCountsResponse.CountsEntry + nil, // 366: state.v1.TaskModelsResponse.AliasesEntry + nil, // 367: state.v1.TaskModelsResponse.ProvidersEntry + nil, // 368: state.v1.CallerModelsResponse.AliasesEntry + (*timestamppb.Timestamp)(nil), // 369: google.protobuf.Timestamp + (*v1.LogQuery)(nil), // 370: logging.v1.LogQuery + (*v1.LogSnapshot)(nil), // 371: logging.v1.LogSnapshot } var file_state_v1_state_proto_depIdxs = []int32{ - 367, // 0: state.v1.Identity.created_at:type_name -> google.protobuf.Timestamp - 367, // 1: state.v1.Identity.updated_at:type_name -> google.protobuf.Timestamp + 369, // 0: state.v1.Identity.created_at:type_name -> google.protobuf.Timestamp + 369, // 1: state.v1.Identity.updated_at:type_name -> google.protobuf.Timestamp 6, // 2: state.v1.ListIdentitiesResponse.identities:type_name -> state.v1.Identity 6, // 3: state.v1.GetIdentityResponse.identity:type_name -> state.v1.Identity 7, // 4: state.v1.CreateIdentityRequest.audit:type_name -> state.v1.IdentityAudit @@ -21405,26 +21491,26 @@ var file_state_v1_state_proto_depIdxs = []int32{ 7, // 15: state.v1.BindIdentitySubjectRequest.audit:type_name -> state.v1.IdentityAudit 6, // 16: state.v1.BindIdentitySubjectResponse.identity:type_name -> state.v1.Identity 6, // 17: state.v1.ClaimIdentitySubjectResponse.identity:type_name -> state.v1.Identity - 367, // 18: state.v1.PersonalToken.created_at:type_name -> google.protobuf.Timestamp + 369, // 18: state.v1.PersonalToken.created_at:type_name -> google.protobuf.Timestamp 28, // 19: state.v1.ListPersonalTokensResponse.tokens:type_name -> state.v1.PersonalToken - 367, // 20: state.v1.Task.created_at:type_name -> google.protobuf.Timestamp - 367, // 21: state.v1.Task.updated_at:type_name -> google.protobuf.Timestamp - 367, // 22: state.v1.Event.at:type_name -> google.protobuf.Timestamp - 367, // 23: state.v1.CapturedEvent.received_at:type_name -> google.protobuf.Timestamp + 369, // 20: state.v1.Task.created_at:type_name -> google.protobuf.Timestamp + 369, // 21: state.v1.Task.updated_at:type_name -> google.protobuf.Timestamp + 369, // 22: state.v1.Event.at:type_name -> google.protobuf.Timestamp + 369, // 23: state.v1.CapturedEvent.received_at:type_name -> google.protobuf.Timestamp 38, // 24: state.v1.EventType.header_conditions:type_name -> state.v1.EventTypeHeaderCondition 39, // 25: state.v1.EventType.payload_conditions:type_name -> state.v1.EventTypePayloadCondition - 362, // 26: state.v1.EventType.schema:type_name -> state.v1.EventType.SchemaEntry - 367, // 27: state.v1.EventType.created_at:type_name -> google.protobuf.Timestamp - 367, // 28: state.v1.EventType.updated_at:type_name -> google.protobuf.Timestamp + 364, // 26: state.v1.EventType.schema:type_name -> state.v1.EventType.SchemaEntry + 369, // 27: state.v1.EventType.created_at:type_name -> google.protobuf.Timestamp + 369, // 28: state.v1.EventType.updated_at:type_name -> google.protobuf.Timestamp 41, // 29: state.v1.Mapping.fields:type_name -> state.v1.MappingField - 367, // 30: state.v1.Mapping.created_at:type_name -> google.protobuf.Timestamp - 367, // 31: state.v1.Mapping.updated_at:type_name -> google.protobuf.Timestamp - 367, // 32: state.v1.Mapping.last_matched_at:type_name -> google.protobuf.Timestamp + 369, // 30: state.v1.Mapping.created_at:type_name -> google.protobuf.Timestamp + 369, // 31: state.v1.Mapping.updated_at:type_name -> google.protobuf.Timestamp + 369, // 32: state.v1.Mapping.last_matched_at:type_name -> google.protobuf.Timestamp 43, // 33: state.v1.Binding.matcher:type_name -> state.v1.BindingMatcher - 367, // 34: state.v1.Binding.created_at:type_name -> google.protobuf.Timestamp - 367, // 35: state.v1.Binding.updated_at:type_name -> google.protobuf.Timestamp - 367, // 36: state.v1.Source.created_at:type_name -> google.protobuf.Timestamp - 367, // 37: state.v1.Source.updated_at:type_name -> google.protobuf.Timestamp + 369, // 34: state.v1.Binding.created_at:type_name -> google.protobuf.Timestamp + 369, // 35: state.v1.Binding.updated_at:type_name -> google.protobuf.Timestamp + 369, // 36: state.v1.Source.created_at:type_name -> google.protobuf.Timestamp + 369, // 37: state.v1.Source.updated_at:type_name -> google.protobuf.Timestamp 35, // 38: state.v1.ActiveTasksByOriginResponse.tasks:type_name -> state.v1.Task 35, // 39: state.v1.UnpostedOutcomesResponse.tasks:type_name -> state.v1.Task 35, // 40: state.v1.EnqueueChatTaskResponse.task:type_name -> state.v1.Task @@ -21432,11 +21518,11 @@ var file_state_v1_state_proto_depIdxs = []int32{ 35, // 42: state.v1.ClaimByIssueResponse.task:type_name -> state.v1.Task 36, // 43: state.v1.StartStepResponse.event:type_name -> state.v1.Event 36, // 44: state.v1.FinishStepResponse.event:type_name -> state.v1.Event - 367, // 45: state.v1.StepExecution.started_at:type_name -> google.protobuf.Timestamp - 367, // 46: state.v1.StepExecution.finished_at:type_name -> google.protobuf.Timestamp + 369, // 45: state.v1.StepExecution.started_at:type_name -> google.protobuf.Timestamp + 369, // 46: state.v1.StepExecution.finished_at:type_name -> google.protobuf.Timestamp 71, // 47: state.v1.ListStepsResponse.steps:type_name -> state.v1.StepExecution - 367, // 48: state.v1.HarnessSecret.expires_at:type_name -> google.protobuf.Timestamp - 367, // 49: state.v1.HarnessSecret.updated_at:type_name -> google.protobuf.Timestamp + 369, // 48: state.v1.HarnessSecret.expires_at:type_name -> google.protobuf.Timestamp + 369, // 49: state.v1.HarnessSecret.updated_at:type_name -> google.protobuf.Timestamp 74, // 50: state.v1.GetHarnessSecretResponse.secret:type_name -> state.v1.HarnessSecret 74, // 51: state.v1.PutHarnessSecretRequest.secret:type_name -> state.v1.HarnessSecret 35, // 52: state.v1.UpdateRequest.task:type_name -> state.v1.Task @@ -21445,35 +21531,35 @@ var file_state_v1_state_proto_depIdxs = []int32{ 35, // 55: state.v1.OpenTaskByPRResponse.task:type_name -> state.v1.Task 35, // 56: state.v1.TaskByIDResponse.task:type_name -> state.v1.Task 35, // 57: state.v1.OpenPRsResponse.tasks:type_name -> state.v1.Task - 367, // 58: state.v1.TasksRequest.after_updated_at:type_name -> google.protobuf.Timestamp + 369, // 58: state.v1.TasksRequest.after_updated_at:type_name -> google.protobuf.Timestamp 35, // 59: state.v1.TasksResponse.tasks:type_name -> state.v1.Task - 363, // 60: state.v1.StatusCountsResponse.counts:type_name -> state.v1.StatusCountsResponse.CountsEntry + 365, // 60: state.v1.StatusCountsResponse.counts:type_name -> state.v1.StatusCountsResponse.CountsEntry 36, // 61: state.v1.InsertEventRequest.event:type_name -> state.v1.Event 36, // 62: state.v1.EventsSinceResponse.events:type_name -> state.v1.Event 36, // 63: state.v1.TaskEventsResponse.events:type_name -> state.v1.Event 46, // 64: state.v1.WorkflowStatsResponse.stats:type_name -> state.v1.WorkflowStat 47, // 65: state.v1.StageStatsResponse.stats:type_name -> state.v1.StageStat 48, // 66: state.v1.TokensByDayResponse.tokens:type_name -> state.v1.DayTokens - 367, // 67: state.v1.ConfigSnapshot.published_at:type_name -> google.protobuf.Timestamp + 369, // 67: state.v1.ConfigSnapshot.published_at:type_name -> google.protobuf.Timestamp 125, // 68: state.v1.PutConfigSnapshotRequest.snapshot:type_name -> state.v1.ConfigSnapshot 125, // 69: state.v1.GetConfigSnapshotResponse.snapshot:type_name -> state.v1.ConfigSnapshot - 367, // 70: state.v1.ChannelStatus.observed_at:type_name -> google.protobuf.Timestamp + 369, // 70: state.v1.ChannelStatus.observed_at:type_name -> google.protobuf.Timestamp 130, // 71: state.v1.PutChannelStatusRequest.channels:type_name -> state.v1.ChannelStatus 130, // 72: state.v1.ListChannelStatusResponse.channels:type_name -> state.v1.ChannelStatus - 367, // 73: state.v1.ApplyStatus.reported_at:type_name -> google.protobuf.Timestamp + 369, // 73: state.v1.ApplyStatus.reported_at:type_name -> google.protobuf.Timestamp 135, // 74: state.v1.PutApplyStatusRequest.status:type_name -> state.v1.ApplyStatus 135, // 75: state.v1.ListApplyStatusResponse.statuses:type_name -> state.v1.ApplyStatus - 367, // 76: state.v1.Presence.started_at:type_name -> google.protobuf.Timestamp - 367, // 77: state.v1.Presence.reported_at:type_name -> google.protobuf.Timestamp + 369, // 76: state.v1.Presence.started_at:type_name -> google.protobuf.Timestamp + 369, // 77: state.v1.Presence.reported_at:type_name -> google.protobuf.Timestamp 140, // 78: state.v1.Presence.checks:type_name -> state.v1.DependencyCheck - 367, // 79: state.v1.RecordCaptureRefusalRequest.refused_at:type_name -> google.protobuf.Timestamp - 367, // 80: state.v1.ListCaptureRefusalsRequest.since:type_name -> google.protobuf.Timestamp + 369, // 79: state.v1.RecordCaptureRefusalRequest.refused_at:type_name -> google.protobuf.Timestamp + 369, // 80: state.v1.ListCaptureRefusalsRequest.since:type_name -> google.protobuf.Timestamp 145, // 81: state.v1.ListCaptureRefusalsResponse.sources:type_name -> state.v1.CaptureRefusals 141, // 82: state.v1.PutPresenceRequest.presence:type_name -> state.v1.Presence 141, // 83: state.v1.ListPresenceResponse.presences:type_name -> state.v1.Presence - 367, // 84: state.v1.TaskLogEntry.time:type_name -> google.protobuf.Timestamp - 367, // 85: state.v1.ReadTaskLogRequest.since:type_name -> google.protobuf.Timestamp - 367, // 86: state.v1.ReadTaskLogRequest.until:type_name -> google.protobuf.Timestamp + 369, // 84: state.v1.TaskLogEntry.time:type_name -> google.protobuf.Timestamp + 369, // 85: state.v1.ReadTaskLogRequest.since:type_name -> google.protobuf.Timestamp + 369, // 86: state.v1.ReadTaskLogRequest.until:type_name -> google.protobuf.Timestamp 151, // 87: state.v1.ReadTaskLogResponse.entries:type_name -> state.v1.TaskLogEntry 37, // 88: state.v1.InsertCaptureRequest.capture:type_name -> state.v1.CapturedEvent 37, // 89: state.v1.StreamCapturesResponse.capture:type_name -> state.v1.CapturedEvent @@ -21492,7 +21578,7 @@ var file_state_v1_state_proto_depIdxs = []int32{ 45, // 102: state.v1.GetSourceResponse.source:type_name -> state.v1.Source 45, // 103: state.v1.ListSourcesResponse.sources:type_name -> state.v1.Source 44, // 104: state.v1.ArmedBindingsForSourceResponse.bindings:type_name -> state.v1.Binding - 367, // 105: state.v1.Dispatch.dispatched_at:type_name -> google.protobuf.Timestamp + 369, // 105: state.v1.Dispatch.dispatched_at:type_name -> google.protobuf.Timestamp 217, // 106: state.v1.ListDispatchesResponse.dispatches:type_name -> state.v1.Dispatch 37, // 107: state.v1.StreamUndispatchedCapturesResponse.capture:type_name -> state.v1.CapturedEvent 35, // 108: state.v1.EnqueueBindingTaskResponse.task:type_name -> state.v1.Task @@ -21519,49 +21605,49 @@ var file_state_v1_state_proto_depIdxs = []int32{ 262, // 129: state.v1.ListPoliciesResponse.policies:type_name -> state.v1.AccessPolicy 262, // 130: state.v1.PutPolicyRequest.policy:type_name -> state.v1.AccessPolicy 262, // 131: state.v1.DeletePolicyRequest.policy:type_name -> state.v1.AccessPolicy - 367, // 132: state.v1.AccessDenial.at:type_name -> google.protobuf.Timestamp - 271, // 133: state.v1.RecordDenialRequest.denial:type_name -> state.v1.AccessDenial - 271, // 134: state.v1.ListDenialsResponse.denials:type_name -> state.v1.AccessDenial - 276, // 135: state.v1.ListOrgsResponse.orgs:type_name -> state.v1.Org - 276, // 136: state.v1.GetOrgResponse.org:type_name -> state.v1.Org - 276, // 137: state.v1.CreateOrgResponse.org:type_name -> state.v1.Org - 277, // 138: state.v1.ListWorkspacesResponse.workspaces:type_name -> state.v1.Workspace - 277, // 139: state.v1.CreateWorkspaceResponse.workspace:type_name -> state.v1.Workspace - 278, // 140: state.v1.ListMembersResponse.members:type_name -> state.v1.Member - 368, // 141: state.v1.RecentLogsRequest.query:type_name -> logging.v1.LogQuery - 369, // 142: state.v1.RecentLogsResponse.snapshot:type_name -> logging.v1.LogSnapshot - 367, // 143: state.v1.UsageRecord.at:type_name -> google.protobuf.Timestamp - 299, // 144: state.v1.RecordUsageRequest.record:type_name -> state.v1.UsageRecord - 364, // 145: state.v1.TaskModelsResponse.aliases:type_name -> state.v1.TaskModelsResponse.AliasesEntry - 365, // 146: state.v1.TaskModelsResponse.providers:type_name -> state.v1.TaskModelsResponse.ProvidersEntry - 366, // 147: state.v1.CallerModelsResponse.aliases:type_name -> state.v1.CallerModelsResponse.AliasesEntry - 367, // 148: state.v1.Alert.first_raised:type_name -> google.protobuf.Timestamp - 367, // 149: state.v1.Alert.last_seen:type_name -> google.protobuf.Timestamp - 367, // 150: state.v1.Alert.closed_at:type_name -> google.protobuf.Timestamp - 310, // 151: state.v1.Alert.deliveries:type_name -> state.v1.AlertDelivery - 367, // 152: state.v1.AlertDelivery.created_at:type_name -> google.protobuf.Timestamp - 311, // 153: state.v1.AlertDelivery.attempts:type_name -> state.v1.AlertAttempt - 367, // 154: state.v1.AlertAttempt.at:type_name -> google.protobuf.Timestamp - 309, // 155: state.v1.RaiseAlertResponse.alert:type_name -> state.v1.Alert - 309, // 156: state.v1.ListAlertsResponse.alerts:type_name -> state.v1.Alert - 310, // 157: state.v1.DueAlertDelivery.delivery:type_name -> state.v1.AlertDelivery - 309, // 158: state.v1.DueAlertDelivery.alert:type_name -> state.v1.Alert - 321, // 159: state.v1.ClaimAlertDeliveriesResponse.due:type_name -> state.v1.DueAlertDelivery + 369, // 132: state.v1.AccessDenial.at:type_name -> google.protobuf.Timestamp + 273, // 133: state.v1.RecordDenialRequest.denial:type_name -> state.v1.AccessDenial + 273, // 134: state.v1.ListDenialsResponse.denials:type_name -> state.v1.AccessDenial + 278, // 135: state.v1.ListOrgsResponse.orgs:type_name -> state.v1.Org + 278, // 136: state.v1.GetOrgResponse.org:type_name -> state.v1.Org + 278, // 137: state.v1.CreateOrgResponse.org:type_name -> state.v1.Org + 279, // 138: state.v1.ListWorkspacesResponse.workspaces:type_name -> state.v1.Workspace + 279, // 139: state.v1.CreateWorkspaceResponse.workspace:type_name -> state.v1.Workspace + 280, // 140: state.v1.ListMembersResponse.members:type_name -> state.v1.Member + 370, // 141: state.v1.RecentLogsRequest.query:type_name -> logging.v1.LogQuery + 371, // 142: state.v1.RecentLogsResponse.snapshot:type_name -> logging.v1.LogSnapshot + 369, // 143: state.v1.UsageRecord.at:type_name -> google.protobuf.Timestamp + 301, // 144: state.v1.RecordUsageRequest.record:type_name -> state.v1.UsageRecord + 366, // 145: state.v1.TaskModelsResponse.aliases:type_name -> state.v1.TaskModelsResponse.AliasesEntry + 367, // 146: state.v1.TaskModelsResponse.providers:type_name -> state.v1.TaskModelsResponse.ProvidersEntry + 368, // 147: state.v1.CallerModelsResponse.aliases:type_name -> state.v1.CallerModelsResponse.AliasesEntry + 369, // 148: state.v1.Alert.first_raised:type_name -> google.protobuf.Timestamp + 369, // 149: state.v1.Alert.last_seen:type_name -> google.protobuf.Timestamp + 369, // 150: state.v1.Alert.closed_at:type_name -> google.protobuf.Timestamp + 312, // 151: state.v1.Alert.deliveries:type_name -> state.v1.AlertDelivery + 369, // 152: state.v1.AlertDelivery.created_at:type_name -> google.protobuf.Timestamp + 313, // 153: state.v1.AlertDelivery.attempts:type_name -> state.v1.AlertAttempt + 369, // 154: state.v1.AlertAttempt.at:type_name -> google.protobuf.Timestamp + 311, // 155: state.v1.RaiseAlertResponse.alert:type_name -> state.v1.Alert + 311, // 156: state.v1.ListAlertsResponse.alerts:type_name -> state.v1.Alert + 312, // 157: state.v1.DueAlertDelivery.delivery:type_name -> state.v1.AlertDelivery + 311, // 158: state.v1.DueAlertDelivery.alert:type_name -> state.v1.Alert + 323, // 159: state.v1.ClaimAlertDeliveriesResponse.due:type_name -> state.v1.DueAlertDelivery 6, // 160: state.v1.RegisterAccountResponse.identity:type_name -> state.v1.Identity 6, // 161: state.v1.SignInAccountResponse.identity:type_name -> state.v1.Identity - 367, // 162: state.v1.SignInAccountResponse.expires_at:type_name -> google.protobuf.Timestamp + 369, // 162: state.v1.SignInAccountResponse.expires_at:type_name -> google.protobuf.Timestamp 6, // 163: state.v1.ResolveAccountSessionResponse.identity:type_name -> state.v1.Identity - 337, // 164: state.v1.GetAuthenticationSettingsResponse.settings:type_name -> state.v1.AuthenticationSettings - 337, // 165: state.v1.SaveAuthenticationSettingsRequest.settings:type_name -> state.v1.AuthenticationSettings + 339, // 164: state.v1.GetAuthenticationSettingsResponse.settings:type_name -> state.v1.AuthenticationSettings + 339, // 165: state.v1.SaveAuthenticationSettingsRequest.settings:type_name -> state.v1.AuthenticationSettings 6, // 166: state.v1.FinishPasskeyResponse.identity:type_name -> state.v1.Identity - 367, // 167: state.v1.FinishPasskeyResponse.expires_at:type_name -> google.protobuf.Timestamp - 346, // 168: state.v1.ListPasskeysResponse.passkeys:type_name -> state.v1.Passkey - 367, // 169: state.v1.OpenAccountSessionRequest.expires_at:type_name -> google.protobuf.Timestamp + 369, // 167: state.v1.FinishPasskeyResponse.expires_at:type_name -> google.protobuf.Timestamp + 348, // 168: state.v1.ListPasskeysResponse.passkeys:type_name -> state.v1.Passkey + 369, // 169: state.v1.OpenAccountSessionRequest.expires_at:type_name -> google.protobuf.Timestamp 6, // 170: state.v1.OpenAccountSessionResponse.identity:type_name -> state.v1.Identity - 367, // 171: state.v1.OpenAccountSessionResponse.expires_at:type_name -> google.protobuf.Timestamp - 360, // 172: state.v1.ListOrgAgentsResponse.agents:type_name -> state.v1.AgentAssignment - 306, // 173: state.v1.TaskModelsResponse.ProvidersEntry.value:type_name -> state.v1.ModelProvider - 297, // 174: state.v1.StateStoreService.RecentLogs:input_type -> state.v1.RecentLogsRequest + 369, // 171: state.v1.OpenAccountSessionResponse.expires_at:type_name -> google.protobuf.Timestamp + 362, // 172: state.v1.ListOrgAgentsResponse.agents:type_name -> state.v1.AgentAssignment + 308, // 173: state.v1.TaskModelsResponse.ProvidersEntry.value:type_name -> state.v1.ModelProvider + 299, // 174: state.v1.StateStoreService.RecentLogs:input_type -> state.v1.RecentLogsRequest 234, // 175: state.v1.StateStoreService.InstallPackage:input_type -> state.v1.InstallPackageRequest 237, // 176: state.v1.StateStoreService.ListCatalogue:input_type -> state.v1.ListCatalogueRequest 239, // 177: state.v1.StateStoreService.InstallFromCatalogue:input_type -> state.v1.InstallFromCatalogueRequest @@ -21577,22 +21663,22 @@ var file_state_v1_state_proto_depIdxs = []int32{ 2, // 187: state.v1.StateStoreService.RevokeTaskGrant:input_type -> state.v1.RevokeTaskGrantRequest 4, // 188: state.v1.StateStoreService.ResolveTaskGrant:input_type -> state.v1.ResolveTaskGrantRequest 8, // 189: state.v1.StateStoreService.ListIdentities:input_type -> state.v1.ListIdentitiesRequest - 338, // 190: state.v1.StateStoreService.GetAuthenticationSettings:input_type -> state.v1.GetAuthenticationSettingsRequest - 340, // 191: state.v1.StateStoreService.SaveAuthenticationSettings:input_type -> state.v1.SaveAuthenticationSettingsRequest - 342, // 192: state.v1.StateStoreService.BeginPasskey:input_type -> state.v1.BeginPasskeyRequest - 344, // 193: state.v1.StateStoreService.FinishPasskey:input_type -> state.v1.FinishPasskeyRequest - 347, // 194: state.v1.StateStoreService.ListPasskeys:input_type -> state.v1.ListPasskeysRequest - 349, // 195: state.v1.StateStoreService.DeletePasskey:input_type -> state.v1.DeletePasskeyRequest - 351, // 196: state.v1.StateStoreService.OpenAccountSession:input_type -> state.v1.OpenAccountSessionRequest - 353, // 197: state.v1.StateStoreService.RequireFreshAccountSession:input_type -> state.v1.RequireFreshAccountSessionRequest - 355, // 198: state.v1.StateStoreService.CreateAccountRecovery:input_type -> state.v1.CreateAccountRecoveryRequest - 357, // 199: state.v1.StateStoreService.RecoverAccount:input_type -> state.v1.RecoverAccountRequest - 325, // 200: state.v1.StateStoreService.AccountSetup:input_type -> state.v1.AccountSetupRequest - 327, // 201: state.v1.StateStoreService.RegisterAccount:input_type -> state.v1.RegisterAccountRequest - 329, // 202: state.v1.StateStoreService.SignInAccount:input_type -> state.v1.SignInAccountRequest - 331, // 203: state.v1.StateStoreService.ResolveAccountSession:input_type -> state.v1.ResolveAccountSessionRequest - 333, // 204: state.v1.StateStoreService.SignOutAccount:input_type -> state.v1.SignOutAccountRequest - 335, // 205: state.v1.StateStoreService.ChangeAccountPassword:input_type -> state.v1.ChangeAccountPasswordRequest + 340, // 190: state.v1.StateStoreService.GetAuthenticationSettings:input_type -> state.v1.GetAuthenticationSettingsRequest + 342, // 191: state.v1.StateStoreService.SaveAuthenticationSettings:input_type -> state.v1.SaveAuthenticationSettingsRequest + 344, // 192: state.v1.StateStoreService.BeginPasskey:input_type -> state.v1.BeginPasskeyRequest + 346, // 193: state.v1.StateStoreService.FinishPasskey:input_type -> state.v1.FinishPasskeyRequest + 349, // 194: state.v1.StateStoreService.ListPasskeys:input_type -> state.v1.ListPasskeysRequest + 351, // 195: state.v1.StateStoreService.DeletePasskey:input_type -> state.v1.DeletePasskeyRequest + 353, // 196: state.v1.StateStoreService.OpenAccountSession:input_type -> state.v1.OpenAccountSessionRequest + 355, // 197: state.v1.StateStoreService.RequireFreshAccountSession:input_type -> state.v1.RequireFreshAccountSessionRequest + 357, // 198: state.v1.StateStoreService.CreateAccountRecovery:input_type -> state.v1.CreateAccountRecoveryRequest + 359, // 199: state.v1.StateStoreService.RecoverAccount:input_type -> state.v1.RecoverAccountRequest + 327, // 200: state.v1.StateStoreService.AccountSetup:input_type -> state.v1.AccountSetupRequest + 329, // 201: state.v1.StateStoreService.RegisterAccount:input_type -> state.v1.RegisterAccountRequest + 331, // 202: state.v1.StateStoreService.SignInAccount:input_type -> state.v1.SignInAccountRequest + 333, // 203: state.v1.StateStoreService.ResolveAccountSession:input_type -> state.v1.ResolveAccountSessionRequest + 335, // 204: state.v1.StateStoreService.SignOutAccount:input_type -> state.v1.SignOutAccountRequest + 337, // 205: state.v1.StateStoreService.ChangeAccountPassword:input_type -> state.v1.ChangeAccountPasswordRequest 10, // 206: state.v1.StateStoreService.GetIdentity:input_type -> state.v1.GetIdentityRequest 12, // 207: state.v1.StateStoreService.CreateIdentity:input_type -> state.v1.CreateIdentityRequest 13, // 208: state.v1.StateStoreService.RenameIdentity:input_type -> state.v1.RenameIdentityRequest @@ -21615,10 +21701,10 @@ var file_state_v1_state_proto_depIdxs = []int32{ 63, // 225: state.v1.StateStoreService.Transition:input_type -> state.v1.TransitionRequest 79, // 226: state.v1.StateStoreService.Update:input_type -> state.v1.UpdateRequest 65, // 227: state.v1.StateStoreService.StartStep:input_type -> state.v1.StartStepRequest - 300, // 228: state.v1.StateStoreService.RecordUsage:input_type -> state.v1.RecordUsageRequest - 302, // 229: state.v1.StateStoreService.TaskModels:input_type -> state.v1.TaskModelsRequest - 303, // 230: state.v1.StateStoreService.TaskInstructions:input_type -> state.v1.TaskInstructionsRequest - 307, // 231: state.v1.StateStoreService.CallerModels:input_type -> state.v1.CallerModelsRequest + 302, // 228: state.v1.StateStoreService.RecordUsage:input_type -> state.v1.RecordUsageRequest + 304, // 229: state.v1.StateStoreService.TaskModels:input_type -> state.v1.TaskModelsRequest + 305, // 230: state.v1.StateStoreService.TaskInstructions:input_type -> state.v1.TaskInstructionsRequest + 309, // 231: state.v1.StateStoreService.CallerModels:input_type -> state.v1.CallerModelsRequest 67, // 232: state.v1.StateStoreService.FinishStep:input_type -> state.v1.FinishStepRequest 69, // 233: state.v1.StateStoreService.CancelExecution:input_type -> state.v1.CancelExecutionRequest 72, // 234: state.v1.StateStoreService.ListSteps:input_type -> state.v1.ListStepsRequest @@ -21697,186 +21783,188 @@ var file_state_v1_state_proto_depIdxs = []int32{ 229, // 307: state.v1.StateStoreService.WorkflowCallStatus:input_type -> state.v1.WorkflowCallStatusRequest 257, // 308: state.v1.StateStoreService.GetPrincipal:input_type -> state.v1.GetPrincipalRequest 263, // 309: state.v1.StateStoreService.ListPolicies:input_type -> state.v1.ListPoliciesRequest - 265, // 310: state.v1.StateStoreService.PutPolicy:input_type -> state.v1.PutPolicyRequest - 267, // 311: state.v1.StateStoreService.DeletePolicy:input_type -> state.v1.DeletePolicyRequest - 269, // 312: state.v1.StateStoreService.EnsureShippedOrgPolicies:input_type -> state.v1.EnsureShippedOrgPoliciesRequest - 272, // 313: state.v1.StateStoreService.RecordDenial:input_type -> state.v1.RecordDenialRequest - 274, // 314: state.v1.StateStoreService.ListDenials:input_type -> state.v1.ListDenialsRequest - 279, // 315: state.v1.StateStoreService.ListOrgs:input_type -> state.v1.ListOrgsRequest - 281, // 316: state.v1.StateStoreService.GetOrg:input_type -> state.v1.GetOrgRequest - 283, // 317: state.v1.StateStoreService.CreateOrg:input_type -> state.v1.CreateOrgRequest - 285, // 318: state.v1.StateStoreService.ListWorkspaces:input_type -> state.v1.ListWorkspacesRequest - 287, // 319: state.v1.StateStoreService.CreateWorkspace:input_type -> state.v1.CreateWorkspaceRequest - 289, // 320: state.v1.StateStoreService.ListMembers:input_type -> state.v1.ListMembersRequest - 291, // 321: state.v1.StateStoreService.SetMembership:input_type -> state.v1.SetMembershipRequest - 293, // 322: state.v1.StateStoreService.RemoveMembership:input_type -> state.v1.RemoveMembershipRequest - 359, // 323: state.v1.StateStoreService.ListOrgAgents:input_type -> state.v1.ListOrgAgentsRequest - 295, // 324: state.v1.StateStoreService.AssignAgent:input_type -> state.v1.AssignAgentRequest - 312, // 325: state.v1.StateStoreService.RaiseAlert:input_type -> state.v1.RaiseAlertRequest - 314, // 326: state.v1.StateStoreService.ResolveAlert:input_type -> state.v1.ResolveAlertRequest - 316, // 327: state.v1.StateStoreService.DismissAlert:input_type -> state.v1.DismissAlertRequest - 318, // 328: state.v1.StateStoreService.ListAlerts:input_type -> state.v1.ListAlertsRequest - 320, // 329: state.v1.StateStoreService.ClaimAlertDeliveries:input_type -> state.v1.ClaimAlertDeliveriesRequest - 323, // 330: state.v1.StateStoreService.RecordAlertAttempt:input_type -> state.v1.RecordAlertAttemptRequest - 298, // 331: state.v1.StateStoreService.RecentLogs:output_type -> state.v1.RecentLogsResponse - 235, // 332: state.v1.StateStoreService.InstallPackage:output_type -> state.v1.InstallPackageResponse - 238, // 333: state.v1.StateStoreService.ListCatalogue:output_type -> state.v1.ListCatalogueResponse - 240, // 334: state.v1.StateStoreService.InstallFromCatalogue:output_type -> state.v1.InstallFromCatalogueResponse - 242, // 335: state.v1.StateStoreService.GetInstalledPackage:output_type -> state.v1.GetInstalledPackageResponse - 244, // 336: state.v1.StateStoreService.ListInstalledPackages:output_type -> state.v1.ListInstalledPackagesResponse - 246, // 337: state.v1.StateStoreService.AcceptPackageAuthority:output_type -> state.v1.AcceptPackageAuthorityResponse - 248, // 338: state.v1.StateStoreService.RemoveInstalledPackage:output_type -> state.v1.RemoveInstalledPackageResponse - 250, // 339: state.v1.StateStoreService.UpdatePackage:output_type -> state.v1.UpdatePackageResponse - 252, // 340: state.v1.StateStoreService.ApprovePackageUpdate:output_type -> state.v1.ApprovePackageUpdateResponse - 254, // 341: state.v1.StateStoreService.RollbackPackage:output_type -> state.v1.RollbackPackageResponse - 256, // 342: state.v1.StateStoreService.SetPackageUpdatePolicy:output_type -> state.v1.SetPackageUpdatePolicyResponse - 1, // 343: state.v1.StateStoreService.RegisterTaskGrant:output_type -> state.v1.RegisterTaskGrantResponse - 3, // 344: state.v1.StateStoreService.RevokeTaskGrant:output_type -> state.v1.RevokeTaskGrantResponse - 5, // 345: state.v1.StateStoreService.ResolveTaskGrant:output_type -> state.v1.ResolveTaskGrantResponse - 9, // 346: state.v1.StateStoreService.ListIdentities:output_type -> state.v1.ListIdentitiesResponse - 339, // 347: state.v1.StateStoreService.GetAuthenticationSettings:output_type -> state.v1.GetAuthenticationSettingsResponse - 341, // 348: state.v1.StateStoreService.SaveAuthenticationSettings:output_type -> state.v1.SaveAuthenticationSettingsResponse - 343, // 349: state.v1.StateStoreService.BeginPasskey:output_type -> state.v1.BeginPasskeyResponse - 345, // 350: state.v1.StateStoreService.FinishPasskey:output_type -> state.v1.FinishPasskeyResponse - 348, // 351: state.v1.StateStoreService.ListPasskeys:output_type -> state.v1.ListPasskeysResponse - 350, // 352: state.v1.StateStoreService.DeletePasskey:output_type -> state.v1.DeletePasskeyResponse - 352, // 353: state.v1.StateStoreService.OpenAccountSession:output_type -> state.v1.OpenAccountSessionResponse - 354, // 354: state.v1.StateStoreService.RequireFreshAccountSession:output_type -> state.v1.RequireFreshAccountSessionResponse - 356, // 355: state.v1.StateStoreService.CreateAccountRecovery:output_type -> state.v1.CreateAccountRecoveryResponse - 358, // 356: state.v1.StateStoreService.RecoverAccount:output_type -> state.v1.RecoverAccountResponse - 326, // 357: state.v1.StateStoreService.AccountSetup:output_type -> state.v1.AccountSetupResponse - 328, // 358: state.v1.StateStoreService.RegisterAccount:output_type -> state.v1.RegisterAccountResponse - 330, // 359: state.v1.StateStoreService.SignInAccount:output_type -> state.v1.SignInAccountResponse - 332, // 360: state.v1.StateStoreService.ResolveAccountSession:output_type -> state.v1.ResolveAccountSessionResponse - 334, // 361: state.v1.StateStoreService.SignOutAccount:output_type -> state.v1.SignOutAccountResponse - 336, // 362: state.v1.StateStoreService.ChangeAccountPassword:output_type -> state.v1.ChangeAccountPasswordResponse - 11, // 363: state.v1.StateStoreService.GetIdentity:output_type -> state.v1.GetIdentityResponse - 17, // 364: state.v1.StateStoreService.CreateIdentity:output_type -> state.v1.CreateIdentityResponse - 18, // 365: state.v1.StateStoreService.RenameIdentity:output_type -> state.v1.RenameIdentityResponse - 19, // 366: state.v1.StateStoreService.SuspendIdentity:output_type -> state.v1.SuspendIdentityResponse - 20, // 367: state.v1.StateStoreService.ReactivateIdentity:output_type -> state.v1.ReactivateIdentityResponse - 21, // 368: state.v1.StateStoreService.RetireIdentity:output_type -> state.v1.RetireIdentityResponse - 23, // 369: state.v1.StateStoreService.ResolveIdentitySubject:output_type -> state.v1.ResolveIdentitySubjectResponse - 25, // 370: state.v1.StateStoreService.BindIdentitySubject:output_type -> state.v1.BindIdentitySubjectResponse - 27, // 371: state.v1.StateStoreService.ClaimIdentitySubject:output_type -> state.v1.ClaimIdentitySubjectResponse - 30, // 372: state.v1.StateStoreService.AddPersonalToken:output_type -> state.v1.AddPersonalTokenResponse - 32, // 373: state.v1.StateStoreService.ListPersonalTokens:output_type -> state.v1.ListPersonalTokensResponse - 34, // 374: state.v1.StateStoreService.RevokePersonalToken:output_type -> state.v1.RevokePersonalTokenResponse - 50, // 375: state.v1.StateStoreService.EnqueueIssue:output_type -> state.v1.EnqueueIssueResponse - 58, // 376: state.v1.StateStoreService.EnqueueChatTask:output_type -> state.v1.EnqueueChatTaskResponse - 52, // 377: state.v1.StateStoreService.ActiveTasksByOrigin:output_type -> state.v1.ActiveTasksByOriginResponse - 54, // 378: state.v1.StateStoreService.UnpostedOutcomes:output_type -> state.v1.UnpostedOutcomesResponse - 56, // 379: state.v1.StateStoreService.MarkOutcomePosted:output_type -> state.v1.MarkOutcomePostedResponse - 60, // 380: state.v1.StateStoreService.ClaimNext:output_type -> state.v1.ClaimNextResponse - 62, // 381: state.v1.StateStoreService.ClaimByIssue:output_type -> state.v1.ClaimByIssueResponse - 64, // 382: state.v1.StateStoreService.Transition:output_type -> state.v1.TransitionResponse - 80, // 383: state.v1.StateStoreService.Update:output_type -> state.v1.UpdateResponse - 66, // 384: state.v1.StateStoreService.StartStep:output_type -> state.v1.StartStepResponse - 301, // 385: state.v1.StateStoreService.RecordUsage:output_type -> state.v1.RecordUsageResponse - 305, // 386: state.v1.StateStoreService.TaskModels:output_type -> state.v1.TaskModelsResponse - 304, // 387: state.v1.StateStoreService.TaskInstructions:output_type -> state.v1.TaskInstructionsResponse - 308, // 388: state.v1.StateStoreService.CallerModels:output_type -> state.v1.CallerModelsResponse - 68, // 389: state.v1.StateStoreService.FinishStep:output_type -> state.v1.FinishStepResponse - 70, // 390: state.v1.StateStoreService.CancelExecution:output_type -> state.v1.CancelExecutionResponse - 73, // 391: state.v1.StateStoreService.ListSteps:output_type -> state.v1.ListStepsResponse - 76, // 392: state.v1.StateStoreService.GetHarnessSecret:output_type -> state.v1.GetHarnessSecretResponse - 78, // 393: state.v1.StateStoreService.PutHarnessSecret:output_type -> state.v1.PutHarnessSecretResponse - 82, // 394: state.v1.StateStoreService.Requeue:output_type -> state.v1.RequeueResponse - 84, // 395: state.v1.StateStoreService.ParkTask:output_type -> state.v1.ParkTaskResponse - 86, // 396: state.v1.StateStoreService.RecoverStale:output_type -> state.v1.RecoverStaleResponse - 88, // 397: state.v1.StateStoreService.ArchiveTask:output_type -> state.v1.ArchiveTaskResponse - 90, // 398: state.v1.StateStoreService.RetryTask:output_type -> state.v1.RetryTaskResponse - 92, // 399: state.v1.StateStoreService.RespondReviewGate:output_type -> state.v1.RespondReviewGateResponse - 94, // 400: state.v1.StateStoreService.BeginRemediation:output_type -> state.v1.BeginRemediationResponse - 96, // 401: state.v1.StateStoreService.UpdateReviewPayload:output_type -> state.v1.UpdateReviewPayloadResponse - 98, // 402: state.v1.StateStoreService.SetReviewCursors:output_type -> state.v1.SetReviewCursorsResponse - 100, // 403: state.v1.StateStoreService.TaskByIssue:output_type -> state.v1.TaskByIssueResponse - 102, // 404: state.v1.StateStoreService.OpenTaskByPR:output_type -> state.v1.OpenTaskByPRResponse - 104, // 405: state.v1.StateStoreService.TaskByID:output_type -> state.v1.TaskByIDResponse - 106, // 406: state.v1.StateStoreService.OpenPRs:output_type -> state.v1.OpenPRsResponse - 108, // 407: state.v1.StateStoreService.ClearTerminalTasks:output_type -> state.v1.ClearTerminalTasksResponse - 110, // 408: state.v1.StateStoreService.Tasks:output_type -> state.v1.TasksResponse - 112, // 409: state.v1.StateStoreService.StatusCounts:output_type -> state.v1.StatusCountsResponse - 114, // 410: state.v1.StateStoreService.InsertEvent:output_type -> state.v1.InsertEventResponse - 116, // 411: state.v1.StateStoreService.EventsSince:output_type -> state.v1.EventsSinceResponse - 118, // 412: state.v1.StateStoreService.TaskEvents:output_type -> state.v1.TaskEventsResponse - 120, // 413: state.v1.StateStoreService.WorkflowStats:output_type -> state.v1.WorkflowStatsResponse - 122, // 414: state.v1.StateStoreService.StageStats:output_type -> state.v1.StageStatsResponse - 124, // 415: state.v1.StateStoreService.TokensByDay:output_type -> state.v1.TokensByDayResponse - 127, // 416: state.v1.StateStoreService.PutConfigSnapshot:output_type -> state.v1.PutConfigSnapshotResponse - 129, // 417: state.v1.StateStoreService.GetConfigSnapshot:output_type -> state.v1.GetConfigSnapshotResponse - 132, // 418: state.v1.StateStoreService.PutChannelStatus:output_type -> state.v1.PutChannelStatusResponse - 134, // 419: state.v1.StateStoreService.ListChannelStatus:output_type -> state.v1.ListChannelStatusResponse - 137, // 420: state.v1.StateStoreService.PutApplyStatus:output_type -> state.v1.PutApplyStatusResponse - 139, // 421: state.v1.StateStoreService.ListApplyStatus:output_type -> state.v1.ListApplyStatusResponse - 148, // 422: state.v1.StateStoreService.PutPresence:output_type -> state.v1.PutPresenceResponse - 143, // 423: state.v1.StateStoreService.RecordCaptureRefusal:output_type -> state.v1.RecordCaptureRefusalResponse - 146, // 424: state.v1.StateStoreService.ListCaptureRefusals:output_type -> state.v1.ListCaptureRefusalsResponse - 150, // 425: state.v1.StateStoreService.ListPresence:output_type -> state.v1.ListPresenceResponse - 153, // 426: state.v1.StateStoreService.ReadTaskLog:output_type -> state.v1.ReadTaskLogResponse - 155, // 427: state.v1.StateStoreService.StreamTaskLogContent:output_type -> state.v1.StreamTaskLogContentResponse - 157, // 428: state.v1.StateStoreService.InsertCapture:output_type -> state.v1.InsertCaptureResponse - 159, // 429: state.v1.StateStoreService.StreamCaptures:output_type -> state.v1.StreamCapturesResponse - 161, // 430: state.v1.StateStoreService.InsertMapping:output_type -> state.v1.InsertMappingResponse - 163, // 431: state.v1.StateStoreService.GetMapping:output_type -> state.v1.GetMappingResponse - 165, // 432: state.v1.StateStoreService.ListMappings:output_type -> state.v1.ListMappingsResponse - 167, // 433: state.v1.StateStoreService.UpdateMapping:output_type -> state.v1.UpdateMappingResponse - 169, // 434: state.v1.StateStoreService.DeleteMapping:output_type -> state.v1.DeleteMappingResponse - 171, // 435: state.v1.StateStoreService.RecordMappingMatch:output_type -> state.v1.RecordMappingMatchResponse - 173, // 436: state.v1.StateStoreService.InsertEventType:output_type -> state.v1.InsertEventTypeResponse - 175, // 437: state.v1.StateStoreService.UpdateEventType:output_type -> state.v1.UpdateEventTypeResponse - 177, // 438: state.v1.StateStoreService.DeleteEventType:output_type -> state.v1.DeleteEventTypeResponse - 179, // 439: state.v1.StateStoreService.ListEventTypes:output_type -> state.v1.ListEventTypesResponse - 181, // 440: state.v1.StateStoreService.InsertBinding:output_type -> state.v1.InsertBindingResponse - 183, // 441: state.v1.StateStoreService.GetBinding:output_type -> state.v1.GetBindingResponse - 185, // 442: state.v1.StateStoreService.ListBindings:output_type -> state.v1.ListBindingsResponse - 218, // 443: state.v1.StateStoreService.ListDispatches:output_type -> state.v1.ListDispatchesResponse - 187, // 444: state.v1.StateStoreService.UpdateBinding:output_type -> state.v1.UpdateBindingResponse - 189, // 445: state.v1.StateStoreService.DeleteBinding:output_type -> state.v1.DeleteBindingResponse - 191, // 446: state.v1.StateStoreService.ApproveBinding:output_type -> state.v1.ApproveBindingResponse - 199, // 447: state.v1.StateStoreService.PauseBinding:output_type -> state.v1.PauseBindingResponse - 201, // 448: state.v1.StateStoreService.ResumeBinding:output_type -> state.v1.ResumeBindingResponse - 203, // 449: state.v1.StateStoreService.InsertSource:output_type -> state.v1.InsertSourceResponse - 205, // 450: state.v1.StateStoreService.GetSource:output_type -> state.v1.GetSourceResponse - 207, // 451: state.v1.StateStoreService.ListSources:output_type -> state.v1.ListSourcesResponse - 209, // 452: state.v1.StateStoreService.SetSourceSigning:output_type -> state.v1.SetSourceSigningResponse - 211, // 453: state.v1.StateStoreService.SetSourceSecret:output_type -> state.v1.SetSourceSecretResponse - 193, // 454: state.v1.StateStoreService.SetSourceName:output_type -> state.v1.SetSourceNameResponse - 195, // 455: state.v1.StateStoreService.SetSourceDeliveryHeader:output_type -> state.v1.SetSourceDeliveryHeaderResponse - 197, // 456: state.v1.StateStoreService.DeleteSource:output_type -> state.v1.DeleteSourceResponse - 213, // 457: state.v1.StateStoreService.ArmedBindingsForSource:output_type -> state.v1.ArmedBindingsForSourceResponse - 215, // 458: state.v1.StateStoreService.RecordDispatch:output_type -> state.v1.RecordDispatchResponse - 220, // 459: state.v1.StateStoreService.RecordPlaybookDispatch:output_type -> state.v1.RecordPlaybookDispatchResponse - 222, // 460: state.v1.StateStoreService.DeletePlaybookDispatches:output_type -> state.v1.DeletePlaybookDispatchesResponse - 224, // 461: state.v1.StateStoreService.StreamUndispatchedCaptures:output_type -> state.v1.StreamUndispatchedCapturesResponse - 226, // 462: state.v1.StateStoreService.EnqueueBindingTask:output_type -> state.v1.EnqueueBindingTaskResponse - 228, // 463: state.v1.StateStoreService.EnqueueCallTask:output_type -> state.v1.EnqueueCallTaskResponse - 230, // 464: state.v1.StateStoreService.WorkflowCallStatus:output_type -> state.v1.WorkflowCallStatusResponse - 261, // 465: state.v1.StateStoreService.GetPrincipal:output_type -> state.v1.GetPrincipalResponse - 264, // 466: state.v1.StateStoreService.ListPolicies:output_type -> state.v1.ListPoliciesResponse - 266, // 467: state.v1.StateStoreService.PutPolicy:output_type -> state.v1.PutPolicyResponse - 268, // 468: state.v1.StateStoreService.DeletePolicy:output_type -> state.v1.DeletePolicyResponse - 270, // 469: state.v1.StateStoreService.EnsureShippedOrgPolicies:output_type -> state.v1.EnsureShippedOrgPoliciesResponse - 273, // 470: state.v1.StateStoreService.RecordDenial:output_type -> state.v1.RecordDenialResponse - 275, // 471: state.v1.StateStoreService.ListDenials:output_type -> state.v1.ListDenialsResponse - 280, // 472: state.v1.StateStoreService.ListOrgs:output_type -> state.v1.ListOrgsResponse - 282, // 473: state.v1.StateStoreService.GetOrg:output_type -> state.v1.GetOrgResponse - 284, // 474: state.v1.StateStoreService.CreateOrg:output_type -> state.v1.CreateOrgResponse - 286, // 475: state.v1.StateStoreService.ListWorkspaces:output_type -> state.v1.ListWorkspacesResponse - 288, // 476: state.v1.StateStoreService.CreateWorkspace:output_type -> state.v1.CreateWorkspaceResponse - 290, // 477: state.v1.StateStoreService.ListMembers:output_type -> state.v1.ListMembersResponse - 292, // 478: state.v1.StateStoreService.SetMembership:output_type -> state.v1.SetMembershipResponse - 294, // 479: state.v1.StateStoreService.RemoveMembership:output_type -> state.v1.RemoveMembershipResponse - 361, // 480: state.v1.StateStoreService.ListOrgAgents:output_type -> state.v1.ListOrgAgentsResponse - 296, // 481: state.v1.StateStoreService.AssignAgent:output_type -> state.v1.AssignAgentResponse - 313, // 482: state.v1.StateStoreService.RaiseAlert:output_type -> state.v1.RaiseAlertResponse - 315, // 483: state.v1.StateStoreService.ResolveAlert:output_type -> state.v1.ResolveAlertResponse - 317, // 484: state.v1.StateStoreService.DismissAlert:output_type -> state.v1.DismissAlertResponse - 319, // 485: state.v1.StateStoreService.ListAlerts:output_type -> state.v1.ListAlertsResponse - 322, // 486: state.v1.StateStoreService.ClaimAlertDeliveries:output_type -> state.v1.ClaimAlertDeliveriesResponse - 324, // 487: state.v1.StateStoreService.RecordAlertAttempt:output_type -> state.v1.RecordAlertAttemptResponse - 331, // [331:488] is the sub-list for method output_type - 174, // [174:331] is the sub-list for method input_type + 265, // 310: state.v1.StateStoreService.GetPoliciesVersion:input_type -> state.v1.GetPoliciesVersionRequest + 267, // 311: state.v1.StateStoreService.PutPolicy:input_type -> state.v1.PutPolicyRequest + 269, // 312: state.v1.StateStoreService.DeletePolicy:input_type -> state.v1.DeletePolicyRequest + 271, // 313: state.v1.StateStoreService.EnsureShippedOrgPolicies:input_type -> state.v1.EnsureShippedOrgPoliciesRequest + 274, // 314: state.v1.StateStoreService.RecordDenial:input_type -> state.v1.RecordDenialRequest + 276, // 315: state.v1.StateStoreService.ListDenials:input_type -> state.v1.ListDenialsRequest + 281, // 316: state.v1.StateStoreService.ListOrgs:input_type -> state.v1.ListOrgsRequest + 283, // 317: state.v1.StateStoreService.GetOrg:input_type -> state.v1.GetOrgRequest + 285, // 318: state.v1.StateStoreService.CreateOrg:input_type -> state.v1.CreateOrgRequest + 287, // 319: state.v1.StateStoreService.ListWorkspaces:input_type -> state.v1.ListWorkspacesRequest + 289, // 320: state.v1.StateStoreService.CreateWorkspace:input_type -> state.v1.CreateWorkspaceRequest + 291, // 321: state.v1.StateStoreService.ListMembers:input_type -> state.v1.ListMembersRequest + 293, // 322: state.v1.StateStoreService.SetMembership:input_type -> state.v1.SetMembershipRequest + 295, // 323: state.v1.StateStoreService.RemoveMembership:input_type -> state.v1.RemoveMembershipRequest + 361, // 324: state.v1.StateStoreService.ListOrgAgents:input_type -> state.v1.ListOrgAgentsRequest + 297, // 325: state.v1.StateStoreService.AssignAgent:input_type -> state.v1.AssignAgentRequest + 314, // 326: state.v1.StateStoreService.RaiseAlert:input_type -> state.v1.RaiseAlertRequest + 316, // 327: state.v1.StateStoreService.ResolveAlert:input_type -> state.v1.ResolveAlertRequest + 318, // 328: state.v1.StateStoreService.DismissAlert:input_type -> state.v1.DismissAlertRequest + 320, // 329: state.v1.StateStoreService.ListAlerts:input_type -> state.v1.ListAlertsRequest + 322, // 330: state.v1.StateStoreService.ClaimAlertDeliveries:input_type -> state.v1.ClaimAlertDeliveriesRequest + 325, // 331: state.v1.StateStoreService.RecordAlertAttempt:input_type -> state.v1.RecordAlertAttemptRequest + 300, // 332: state.v1.StateStoreService.RecentLogs:output_type -> state.v1.RecentLogsResponse + 235, // 333: state.v1.StateStoreService.InstallPackage:output_type -> state.v1.InstallPackageResponse + 238, // 334: state.v1.StateStoreService.ListCatalogue:output_type -> state.v1.ListCatalogueResponse + 240, // 335: state.v1.StateStoreService.InstallFromCatalogue:output_type -> state.v1.InstallFromCatalogueResponse + 242, // 336: state.v1.StateStoreService.GetInstalledPackage:output_type -> state.v1.GetInstalledPackageResponse + 244, // 337: state.v1.StateStoreService.ListInstalledPackages:output_type -> state.v1.ListInstalledPackagesResponse + 246, // 338: state.v1.StateStoreService.AcceptPackageAuthority:output_type -> state.v1.AcceptPackageAuthorityResponse + 248, // 339: state.v1.StateStoreService.RemoveInstalledPackage:output_type -> state.v1.RemoveInstalledPackageResponse + 250, // 340: state.v1.StateStoreService.UpdatePackage:output_type -> state.v1.UpdatePackageResponse + 252, // 341: state.v1.StateStoreService.ApprovePackageUpdate:output_type -> state.v1.ApprovePackageUpdateResponse + 254, // 342: state.v1.StateStoreService.RollbackPackage:output_type -> state.v1.RollbackPackageResponse + 256, // 343: state.v1.StateStoreService.SetPackageUpdatePolicy:output_type -> state.v1.SetPackageUpdatePolicyResponse + 1, // 344: state.v1.StateStoreService.RegisterTaskGrant:output_type -> state.v1.RegisterTaskGrantResponse + 3, // 345: state.v1.StateStoreService.RevokeTaskGrant:output_type -> state.v1.RevokeTaskGrantResponse + 5, // 346: state.v1.StateStoreService.ResolveTaskGrant:output_type -> state.v1.ResolveTaskGrantResponse + 9, // 347: state.v1.StateStoreService.ListIdentities:output_type -> state.v1.ListIdentitiesResponse + 341, // 348: state.v1.StateStoreService.GetAuthenticationSettings:output_type -> state.v1.GetAuthenticationSettingsResponse + 343, // 349: state.v1.StateStoreService.SaveAuthenticationSettings:output_type -> state.v1.SaveAuthenticationSettingsResponse + 345, // 350: state.v1.StateStoreService.BeginPasskey:output_type -> state.v1.BeginPasskeyResponse + 347, // 351: state.v1.StateStoreService.FinishPasskey:output_type -> state.v1.FinishPasskeyResponse + 350, // 352: state.v1.StateStoreService.ListPasskeys:output_type -> state.v1.ListPasskeysResponse + 352, // 353: state.v1.StateStoreService.DeletePasskey:output_type -> state.v1.DeletePasskeyResponse + 354, // 354: state.v1.StateStoreService.OpenAccountSession:output_type -> state.v1.OpenAccountSessionResponse + 356, // 355: state.v1.StateStoreService.RequireFreshAccountSession:output_type -> state.v1.RequireFreshAccountSessionResponse + 358, // 356: state.v1.StateStoreService.CreateAccountRecovery:output_type -> state.v1.CreateAccountRecoveryResponse + 360, // 357: state.v1.StateStoreService.RecoverAccount:output_type -> state.v1.RecoverAccountResponse + 328, // 358: state.v1.StateStoreService.AccountSetup:output_type -> state.v1.AccountSetupResponse + 330, // 359: state.v1.StateStoreService.RegisterAccount:output_type -> state.v1.RegisterAccountResponse + 332, // 360: state.v1.StateStoreService.SignInAccount:output_type -> state.v1.SignInAccountResponse + 334, // 361: state.v1.StateStoreService.ResolveAccountSession:output_type -> state.v1.ResolveAccountSessionResponse + 336, // 362: state.v1.StateStoreService.SignOutAccount:output_type -> state.v1.SignOutAccountResponse + 338, // 363: state.v1.StateStoreService.ChangeAccountPassword:output_type -> state.v1.ChangeAccountPasswordResponse + 11, // 364: state.v1.StateStoreService.GetIdentity:output_type -> state.v1.GetIdentityResponse + 17, // 365: state.v1.StateStoreService.CreateIdentity:output_type -> state.v1.CreateIdentityResponse + 18, // 366: state.v1.StateStoreService.RenameIdentity:output_type -> state.v1.RenameIdentityResponse + 19, // 367: state.v1.StateStoreService.SuspendIdentity:output_type -> state.v1.SuspendIdentityResponse + 20, // 368: state.v1.StateStoreService.ReactivateIdentity:output_type -> state.v1.ReactivateIdentityResponse + 21, // 369: state.v1.StateStoreService.RetireIdentity:output_type -> state.v1.RetireIdentityResponse + 23, // 370: state.v1.StateStoreService.ResolveIdentitySubject:output_type -> state.v1.ResolveIdentitySubjectResponse + 25, // 371: state.v1.StateStoreService.BindIdentitySubject:output_type -> state.v1.BindIdentitySubjectResponse + 27, // 372: state.v1.StateStoreService.ClaimIdentitySubject:output_type -> state.v1.ClaimIdentitySubjectResponse + 30, // 373: state.v1.StateStoreService.AddPersonalToken:output_type -> state.v1.AddPersonalTokenResponse + 32, // 374: state.v1.StateStoreService.ListPersonalTokens:output_type -> state.v1.ListPersonalTokensResponse + 34, // 375: state.v1.StateStoreService.RevokePersonalToken:output_type -> state.v1.RevokePersonalTokenResponse + 50, // 376: state.v1.StateStoreService.EnqueueIssue:output_type -> state.v1.EnqueueIssueResponse + 58, // 377: state.v1.StateStoreService.EnqueueChatTask:output_type -> state.v1.EnqueueChatTaskResponse + 52, // 378: state.v1.StateStoreService.ActiveTasksByOrigin:output_type -> state.v1.ActiveTasksByOriginResponse + 54, // 379: state.v1.StateStoreService.UnpostedOutcomes:output_type -> state.v1.UnpostedOutcomesResponse + 56, // 380: state.v1.StateStoreService.MarkOutcomePosted:output_type -> state.v1.MarkOutcomePostedResponse + 60, // 381: state.v1.StateStoreService.ClaimNext:output_type -> state.v1.ClaimNextResponse + 62, // 382: state.v1.StateStoreService.ClaimByIssue:output_type -> state.v1.ClaimByIssueResponse + 64, // 383: state.v1.StateStoreService.Transition:output_type -> state.v1.TransitionResponse + 80, // 384: state.v1.StateStoreService.Update:output_type -> state.v1.UpdateResponse + 66, // 385: state.v1.StateStoreService.StartStep:output_type -> state.v1.StartStepResponse + 303, // 386: state.v1.StateStoreService.RecordUsage:output_type -> state.v1.RecordUsageResponse + 307, // 387: state.v1.StateStoreService.TaskModels:output_type -> state.v1.TaskModelsResponse + 306, // 388: state.v1.StateStoreService.TaskInstructions:output_type -> state.v1.TaskInstructionsResponse + 310, // 389: state.v1.StateStoreService.CallerModels:output_type -> state.v1.CallerModelsResponse + 68, // 390: state.v1.StateStoreService.FinishStep:output_type -> state.v1.FinishStepResponse + 70, // 391: state.v1.StateStoreService.CancelExecution:output_type -> state.v1.CancelExecutionResponse + 73, // 392: state.v1.StateStoreService.ListSteps:output_type -> state.v1.ListStepsResponse + 76, // 393: state.v1.StateStoreService.GetHarnessSecret:output_type -> state.v1.GetHarnessSecretResponse + 78, // 394: state.v1.StateStoreService.PutHarnessSecret:output_type -> state.v1.PutHarnessSecretResponse + 82, // 395: state.v1.StateStoreService.Requeue:output_type -> state.v1.RequeueResponse + 84, // 396: state.v1.StateStoreService.ParkTask:output_type -> state.v1.ParkTaskResponse + 86, // 397: state.v1.StateStoreService.RecoverStale:output_type -> state.v1.RecoverStaleResponse + 88, // 398: state.v1.StateStoreService.ArchiveTask:output_type -> state.v1.ArchiveTaskResponse + 90, // 399: state.v1.StateStoreService.RetryTask:output_type -> state.v1.RetryTaskResponse + 92, // 400: state.v1.StateStoreService.RespondReviewGate:output_type -> state.v1.RespondReviewGateResponse + 94, // 401: state.v1.StateStoreService.BeginRemediation:output_type -> state.v1.BeginRemediationResponse + 96, // 402: state.v1.StateStoreService.UpdateReviewPayload:output_type -> state.v1.UpdateReviewPayloadResponse + 98, // 403: state.v1.StateStoreService.SetReviewCursors:output_type -> state.v1.SetReviewCursorsResponse + 100, // 404: state.v1.StateStoreService.TaskByIssue:output_type -> state.v1.TaskByIssueResponse + 102, // 405: state.v1.StateStoreService.OpenTaskByPR:output_type -> state.v1.OpenTaskByPRResponse + 104, // 406: state.v1.StateStoreService.TaskByID:output_type -> state.v1.TaskByIDResponse + 106, // 407: state.v1.StateStoreService.OpenPRs:output_type -> state.v1.OpenPRsResponse + 108, // 408: state.v1.StateStoreService.ClearTerminalTasks:output_type -> state.v1.ClearTerminalTasksResponse + 110, // 409: state.v1.StateStoreService.Tasks:output_type -> state.v1.TasksResponse + 112, // 410: state.v1.StateStoreService.StatusCounts:output_type -> state.v1.StatusCountsResponse + 114, // 411: state.v1.StateStoreService.InsertEvent:output_type -> state.v1.InsertEventResponse + 116, // 412: state.v1.StateStoreService.EventsSince:output_type -> state.v1.EventsSinceResponse + 118, // 413: state.v1.StateStoreService.TaskEvents:output_type -> state.v1.TaskEventsResponse + 120, // 414: state.v1.StateStoreService.WorkflowStats:output_type -> state.v1.WorkflowStatsResponse + 122, // 415: state.v1.StateStoreService.StageStats:output_type -> state.v1.StageStatsResponse + 124, // 416: state.v1.StateStoreService.TokensByDay:output_type -> state.v1.TokensByDayResponse + 127, // 417: state.v1.StateStoreService.PutConfigSnapshot:output_type -> state.v1.PutConfigSnapshotResponse + 129, // 418: state.v1.StateStoreService.GetConfigSnapshot:output_type -> state.v1.GetConfigSnapshotResponse + 132, // 419: state.v1.StateStoreService.PutChannelStatus:output_type -> state.v1.PutChannelStatusResponse + 134, // 420: state.v1.StateStoreService.ListChannelStatus:output_type -> state.v1.ListChannelStatusResponse + 137, // 421: state.v1.StateStoreService.PutApplyStatus:output_type -> state.v1.PutApplyStatusResponse + 139, // 422: state.v1.StateStoreService.ListApplyStatus:output_type -> state.v1.ListApplyStatusResponse + 148, // 423: state.v1.StateStoreService.PutPresence:output_type -> state.v1.PutPresenceResponse + 143, // 424: state.v1.StateStoreService.RecordCaptureRefusal:output_type -> state.v1.RecordCaptureRefusalResponse + 146, // 425: state.v1.StateStoreService.ListCaptureRefusals:output_type -> state.v1.ListCaptureRefusalsResponse + 150, // 426: state.v1.StateStoreService.ListPresence:output_type -> state.v1.ListPresenceResponse + 153, // 427: state.v1.StateStoreService.ReadTaskLog:output_type -> state.v1.ReadTaskLogResponse + 155, // 428: state.v1.StateStoreService.StreamTaskLogContent:output_type -> state.v1.StreamTaskLogContentResponse + 157, // 429: state.v1.StateStoreService.InsertCapture:output_type -> state.v1.InsertCaptureResponse + 159, // 430: state.v1.StateStoreService.StreamCaptures:output_type -> state.v1.StreamCapturesResponse + 161, // 431: state.v1.StateStoreService.InsertMapping:output_type -> state.v1.InsertMappingResponse + 163, // 432: state.v1.StateStoreService.GetMapping:output_type -> state.v1.GetMappingResponse + 165, // 433: state.v1.StateStoreService.ListMappings:output_type -> state.v1.ListMappingsResponse + 167, // 434: state.v1.StateStoreService.UpdateMapping:output_type -> state.v1.UpdateMappingResponse + 169, // 435: state.v1.StateStoreService.DeleteMapping:output_type -> state.v1.DeleteMappingResponse + 171, // 436: state.v1.StateStoreService.RecordMappingMatch:output_type -> state.v1.RecordMappingMatchResponse + 173, // 437: state.v1.StateStoreService.InsertEventType:output_type -> state.v1.InsertEventTypeResponse + 175, // 438: state.v1.StateStoreService.UpdateEventType:output_type -> state.v1.UpdateEventTypeResponse + 177, // 439: state.v1.StateStoreService.DeleteEventType:output_type -> state.v1.DeleteEventTypeResponse + 179, // 440: state.v1.StateStoreService.ListEventTypes:output_type -> state.v1.ListEventTypesResponse + 181, // 441: state.v1.StateStoreService.InsertBinding:output_type -> state.v1.InsertBindingResponse + 183, // 442: state.v1.StateStoreService.GetBinding:output_type -> state.v1.GetBindingResponse + 185, // 443: state.v1.StateStoreService.ListBindings:output_type -> state.v1.ListBindingsResponse + 218, // 444: state.v1.StateStoreService.ListDispatches:output_type -> state.v1.ListDispatchesResponse + 187, // 445: state.v1.StateStoreService.UpdateBinding:output_type -> state.v1.UpdateBindingResponse + 189, // 446: state.v1.StateStoreService.DeleteBinding:output_type -> state.v1.DeleteBindingResponse + 191, // 447: state.v1.StateStoreService.ApproveBinding:output_type -> state.v1.ApproveBindingResponse + 199, // 448: state.v1.StateStoreService.PauseBinding:output_type -> state.v1.PauseBindingResponse + 201, // 449: state.v1.StateStoreService.ResumeBinding:output_type -> state.v1.ResumeBindingResponse + 203, // 450: state.v1.StateStoreService.InsertSource:output_type -> state.v1.InsertSourceResponse + 205, // 451: state.v1.StateStoreService.GetSource:output_type -> state.v1.GetSourceResponse + 207, // 452: state.v1.StateStoreService.ListSources:output_type -> state.v1.ListSourcesResponse + 209, // 453: state.v1.StateStoreService.SetSourceSigning:output_type -> state.v1.SetSourceSigningResponse + 211, // 454: state.v1.StateStoreService.SetSourceSecret:output_type -> state.v1.SetSourceSecretResponse + 193, // 455: state.v1.StateStoreService.SetSourceName:output_type -> state.v1.SetSourceNameResponse + 195, // 456: state.v1.StateStoreService.SetSourceDeliveryHeader:output_type -> state.v1.SetSourceDeliveryHeaderResponse + 197, // 457: state.v1.StateStoreService.DeleteSource:output_type -> state.v1.DeleteSourceResponse + 213, // 458: state.v1.StateStoreService.ArmedBindingsForSource:output_type -> state.v1.ArmedBindingsForSourceResponse + 215, // 459: state.v1.StateStoreService.RecordDispatch:output_type -> state.v1.RecordDispatchResponse + 220, // 460: state.v1.StateStoreService.RecordPlaybookDispatch:output_type -> state.v1.RecordPlaybookDispatchResponse + 222, // 461: state.v1.StateStoreService.DeletePlaybookDispatches:output_type -> state.v1.DeletePlaybookDispatchesResponse + 224, // 462: state.v1.StateStoreService.StreamUndispatchedCaptures:output_type -> state.v1.StreamUndispatchedCapturesResponse + 226, // 463: state.v1.StateStoreService.EnqueueBindingTask:output_type -> state.v1.EnqueueBindingTaskResponse + 228, // 464: state.v1.StateStoreService.EnqueueCallTask:output_type -> state.v1.EnqueueCallTaskResponse + 230, // 465: state.v1.StateStoreService.WorkflowCallStatus:output_type -> state.v1.WorkflowCallStatusResponse + 261, // 466: state.v1.StateStoreService.GetPrincipal:output_type -> state.v1.GetPrincipalResponse + 264, // 467: state.v1.StateStoreService.ListPolicies:output_type -> state.v1.ListPoliciesResponse + 266, // 468: state.v1.StateStoreService.GetPoliciesVersion:output_type -> state.v1.GetPoliciesVersionResponse + 268, // 469: state.v1.StateStoreService.PutPolicy:output_type -> state.v1.PutPolicyResponse + 270, // 470: state.v1.StateStoreService.DeletePolicy:output_type -> state.v1.DeletePolicyResponse + 272, // 471: state.v1.StateStoreService.EnsureShippedOrgPolicies:output_type -> state.v1.EnsureShippedOrgPoliciesResponse + 275, // 472: state.v1.StateStoreService.RecordDenial:output_type -> state.v1.RecordDenialResponse + 277, // 473: state.v1.StateStoreService.ListDenials:output_type -> state.v1.ListDenialsResponse + 282, // 474: state.v1.StateStoreService.ListOrgs:output_type -> state.v1.ListOrgsResponse + 284, // 475: state.v1.StateStoreService.GetOrg:output_type -> state.v1.GetOrgResponse + 286, // 476: state.v1.StateStoreService.CreateOrg:output_type -> state.v1.CreateOrgResponse + 288, // 477: state.v1.StateStoreService.ListWorkspaces:output_type -> state.v1.ListWorkspacesResponse + 290, // 478: state.v1.StateStoreService.CreateWorkspace:output_type -> state.v1.CreateWorkspaceResponse + 292, // 479: state.v1.StateStoreService.ListMembers:output_type -> state.v1.ListMembersResponse + 294, // 480: state.v1.StateStoreService.SetMembership:output_type -> state.v1.SetMembershipResponse + 296, // 481: state.v1.StateStoreService.RemoveMembership:output_type -> state.v1.RemoveMembershipResponse + 363, // 482: state.v1.StateStoreService.ListOrgAgents:output_type -> state.v1.ListOrgAgentsResponse + 298, // 483: state.v1.StateStoreService.AssignAgent:output_type -> state.v1.AssignAgentResponse + 315, // 484: state.v1.StateStoreService.RaiseAlert:output_type -> state.v1.RaiseAlertResponse + 317, // 485: state.v1.StateStoreService.ResolveAlert:output_type -> state.v1.ResolveAlertResponse + 319, // 486: state.v1.StateStoreService.DismissAlert:output_type -> state.v1.DismissAlertResponse + 321, // 487: state.v1.StateStoreService.ListAlerts:output_type -> state.v1.ListAlertsResponse + 324, // 488: state.v1.StateStoreService.ClaimAlertDeliveries:output_type -> state.v1.ClaimAlertDeliveriesResponse + 326, // 489: state.v1.StateStoreService.RecordAlertAttempt:output_type -> state.v1.RecordAlertAttemptResponse + 332, // [332:490] is the sub-list for method output_type + 174, // [174:332] is the sub-list for method input_type 174, // [174:174] is the sub-list for extension type_name 174, // [174:174] is the sub-list for extension extendee 0, // [0:174] is the sub-list for field type_name @@ -21893,7 +21981,7 @@ func file_state_v1_state_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_state_v1_state_proto_rawDesc), len(file_state_v1_state_proto_rawDesc)), NumEnums: 0, - NumMessages: 367, + NumMessages: 369, NumExtensions: 0, NumServices: 1, }, diff --git a/internal/contracts/state/v1/state_grpc.pb.go b/internal/contracts/state/v1/state_grpc.pb.go index 18a332579..ff99f1e27 100644 --- a/internal/contracts/state/v1/state_grpc.pb.go +++ b/internal/contracts/state/v1/state_grpc.pb.go @@ -155,6 +155,7 @@ const ( StateStoreService_WorkflowCallStatus_FullMethodName = "/state.v1.StateStoreService/WorkflowCallStatus" StateStoreService_GetPrincipal_FullMethodName = "/state.v1.StateStoreService/GetPrincipal" StateStoreService_ListPolicies_FullMethodName = "/state.v1.StateStoreService/ListPolicies" + StateStoreService_GetPoliciesVersion_FullMethodName = "/state.v1.StateStoreService/GetPoliciesVersion" StateStoreService_PutPolicy_FullMethodName = "/state.v1.StateStoreService/PutPolicy" StateStoreService_DeletePolicy_FullMethodName = "/state.v1.StateStoreService/DeletePolicy" StateStoreService_EnsureShippedOrgPolicies_FullMethodName = "/state.v1.StateStoreService/EnsureShippedOrgPolicies" @@ -437,6 +438,10 @@ type StateStoreServiceClient interface { // it serves, and its memberships (internal/domain/access). GetPrincipal(ctx context.Context, in *GetPrincipalRequest, opts ...grpc.CallOption) (*GetPrincipalResponse, error) ListPolicies(ctx context.Context, in *ListPoliciesRequest, opts ...grpc.CallOption) (*ListPoliciesResponse, error) + // GetPoliciesVersion is the instance-wide policy version an authorizer reads + // before each decision to know whether the chain it holds is current. A + // caller must read it before ListPolicies, never after. + GetPoliciesVersion(ctx context.Context, in *GetPoliciesVersionRequest, opts ...grpc.CallOption) (*GetPoliciesVersionResponse, error) PutPolicy(ctx context.Context, in *PutPolicyRequest, opts ...grpc.CallOption) (*PutPolicyResponse, error) DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*DeletePolicyResponse, error) EnsureShippedOrgPolicies(ctx context.Context, in *EnsureShippedOrgPoliciesRequest, opts ...grpc.CallOption) (*EnsureShippedOrgPoliciesResponse, error) @@ -1866,6 +1871,16 @@ func (c *stateStoreServiceClient) ListPolicies(ctx context.Context, in *ListPoli return out, nil } +func (c *stateStoreServiceClient) GetPoliciesVersion(ctx context.Context, in *GetPoliciesVersionRequest, opts ...grpc.CallOption) (*GetPoliciesVersionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetPoliciesVersionResponse) + err := c.cc.Invoke(ctx, StateStoreService_GetPoliciesVersion_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *stateStoreServiceClient) PutPolicy(ctx context.Context, in *PutPolicyRequest, opts ...grpc.CallOption) (*PutPolicyResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PutPolicyResponse) @@ -2335,6 +2350,10 @@ type StateStoreServiceServer interface { // it serves, and its memberships (internal/domain/access). GetPrincipal(context.Context, *GetPrincipalRequest) (*GetPrincipalResponse, error) ListPolicies(context.Context, *ListPoliciesRequest) (*ListPoliciesResponse, error) + // GetPoliciesVersion is the instance-wide policy version an authorizer reads + // before each decision to know whether the chain it holds is current. A + // caller must read it before ListPolicies, never after. + GetPoliciesVersion(context.Context, *GetPoliciesVersionRequest) (*GetPoliciesVersionResponse, error) PutPolicy(context.Context, *PutPolicyRequest) (*PutPolicyResponse, error) DeletePolicy(context.Context, *DeletePolicyRequest) (*DeletePolicyResponse, error) EnsureShippedOrgPolicies(context.Context, *EnsureShippedOrgPoliciesRequest) (*EnsureShippedOrgPoliciesResponse, error) @@ -2785,6 +2804,9 @@ func (UnimplementedStateStoreServiceServer) GetPrincipal(context.Context, *GetPr func (UnimplementedStateStoreServiceServer) ListPolicies(context.Context, *ListPoliciesRequest) (*ListPoliciesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListPolicies not implemented") } +func (UnimplementedStateStoreServiceServer) GetPoliciesVersion(context.Context, *GetPoliciesVersionRequest) (*GetPoliciesVersionResponse, error) { + return nil, status.Error(codes.Unimplemented, "method GetPoliciesVersion not implemented") +} func (UnimplementedStateStoreServiceServer) PutPolicy(context.Context, *PutPolicyRequest) (*PutPolicyResponse, error) { return nil, status.Error(codes.Unimplemented, "method PutPolicy not implemented") } @@ -5296,6 +5318,24 @@ func _StateStoreService_ListPolicies_Handler(srv interface{}, ctx context.Contex return interceptor(ctx, in, info, handler) } +func _StateStoreService_GetPoliciesVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetPoliciesVersionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StateStoreServiceServer).GetPoliciesVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: StateStoreService_GetPoliciesVersion_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StateStoreServiceServer).GetPoliciesVersion(ctx, req.(*GetPoliciesVersionRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _StateStoreService_PutPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PutPolicyRequest) if err := dec(in); err != nil { @@ -6213,6 +6253,10 @@ var StateStoreService_ServiceDesc = grpc.ServiceDesc{ MethodName: "ListPolicies", Handler: _StateStoreService_ListPolicies_Handler, }, + { + MethodName: "GetPoliciesVersion", + Handler: _StateStoreService_GetPoliciesVersion_Handler, + }, { MethodName: "PutPolicy", Handler: _StateStoreService_PutPolicy_Handler, diff --git a/internal/daemon/daemon.go b/internal/daemon/daemon.go index 02040ecf2..17ddc9269 100644 --- a/internal/daemon/daemon.go +++ b/internal/daemon/daemon.go @@ -613,7 +613,7 @@ func (d *Daemon) dispatchOneBinding(ctx context.Context, b binding.Binding, c st // The chain decides dispatch: the binding's principal may `run` this // workflow in its workspace, and the event's signature result and address // travel with the request. A denial is terminal; an unavailable principal - // leaves the capture listed for the next cycle. + // or policy chain leaves the capture listed for the next cycle. if !d.authorizeDispatch(ctx, b, c, target) { return } @@ -664,6 +664,13 @@ func (d *Daemon) authorizeDispatch(ctx context.Context, b binding.Binding, c sto if decision.Allowed { return true } + if errors.Is(decision.Err, access.ErrChainUnavailable) { + // Nothing was evaluated. Recording it would mark the pair evaluated for + // good, so a State Store blip would drop the capture instead of leaving + // it for the next cycle. + d.Log.Warn("binding dispatch: access chain unavailable; dispatch left for the next cycle", "binding", b.ID, "capture", c.ID, "err", decision.Err) + return false + } if d.Denials != nil { denial := access.Denial{ Principal: principal.IdentityID, Org: principal.Org, Action: access.ActionRun, diff --git a/internal/daemon/workflow_identity.go b/internal/daemon/workflow_identity.go index b7318414f..82e872b5a 100644 --- a/internal/daemon/workflow_identity.go +++ b/internal/daemon/workflow_identity.go @@ -43,12 +43,12 @@ func (d *Daemon) adoptWorkflowIdentity(ctx context.Context, task *workflow.Task) d.parkBlockedTask(ctx, task, "workflow "+task.Workflow+": "+err.Error(), pinParkClass(err), parkBlocker(err)) return false } - if !d.mayRunWorkflow(ctx, task, d.publisherIdentity(task.Identity)) { - d.parkBlockedTask(ctx, task, "the identity that started it may not run workflow "+task.Workflow, taskstate.ParkNeedsHuman, taskstate.BlockerPolicyDenied) + if allowed, err := d.mayRunWorkflow(ctx, task, d.publisherIdentity(task.Identity)); !allowed { + d.parkRefusedRun(ctx, task, "the identity that started it may not run workflow "+task.Workflow, err) return false } - if !d.mayRunWorkflow(ctx, task, runsAs) { - d.parkBlockedTask(ctx, task, "identity "+iface.Identity+" may not run workflow "+task.Workflow, taskstate.ParkNeedsHuman, taskstate.BlockerPolicyDenied) + if allowed, err := d.mayRunWorkflow(ctx, task, runsAs); !allowed { + d.parkRefusedRun(ctx, task, "identity "+iface.Identity+" may not run workflow "+task.Workflow, err) return false } // In memory only: the stored identity stays the starter's, so every @@ -125,15 +125,16 @@ func (d *Daemon) databaseExecutionIdentity(ctx context.Context, task *workflow.T // mayRunWorkflow asks the policy chain whether id may run the task's // workflow, recording a denial. No chain allows it, as every other check on -// an install that has not built one. -func (d *Daemon) mayRunWorkflow(ctx context.Context, task *workflow.Task, id identity.IdentityID) bool { +// an install that has not built one. The error reports a chain that could not +// be consulted, which is not a denial: nothing was evaluated. +func (d *Daemon) mayRunWorkflow(ctx context.Context, task *workflow.Task, id identity.IdentityID) (bool, error) { if d.Access == nil || d.Principals == nil { - return true + return true, nil } principal, err := d.Principals.PrincipalFor(ctx, id) if err != nil { d.Log.Warn("workflow identity: principal unavailable", "task", task.ID, "identity", id, "err", err) - return false + return false, nil } resource := access.Resource{Kind: access.KindWorkflow, ID: task.Workflow, Org: task.Org, Workspace: task.Workspace} if resource.Org == "" { @@ -141,7 +142,12 @@ func (d *Daemon) mayRunWorkflow(ctx context.Context, task *workflow.Task, id ide } decision := d.Access.Authorize(principal, access.ActionRun, resource, access.Context{Signature: task.BindingSignature, Addr: task.BindingAddr}) if decision.Allowed { - return true + return true, nil + } + if errors.Is(decision.Err, access.ErrChainUnavailable) { + // Nothing was evaluated, so there is no denial to record and no + // operator to involve: the chain will answer once the store does. + return false, pinFailure{taskstate.ParkTransient, decision.Err} } if d.Denials != nil { denial := access.Denial{ @@ -152,5 +158,17 @@ func (d *Daemon) mayRunWorkflow(ctx context.Context, task *workflow.Task, id ide d.Log.Warn("workflow identity: record denial", "task", task.ID, "err", err) } } - return false + return false, nil +} + +// parkRefusedRun parks a task whose workflow identity check did not permit it. +// A denial is the operator's to fix, but a chain that could not be read is a +// store that will answer again, so it parks transient rather than demanding a +// human for a blip. +func (d *Daemon) parkRefusedRun(ctx context.Context, task *workflow.Task, reason string, err error) { + class, blocker := taskstate.ParkNeedsHuman, taskstate.BlockerPolicyDenied + if err != nil { + class, blocker = pinParkClass(err), parkBlocker(err) + } + d.parkBlockedTask(ctx, task, reason, class, blocker) } diff --git a/internal/domain/access/store.go b/internal/domain/access/store.go index e06c657d9..bc83ce862 100644 --- a/internal/domain/access/store.go +++ b/internal/domain/access/store.go @@ -10,12 +10,18 @@ import ( ) // PolicyStore persists stored policies. Versioned per level: PutPolicy -// returns the level's new version, so a policy change is one version bump -// the engine's next load can detect. Every change is an audit event naming +// returns the level's new version. PoliciesVersion carries the ordering +// guarantee the authorizers rely on: it moves on every write in the instance, +// in the same transaction as the write. Every change is an audit event naming // who made it. type PolicyStore interface { // ListPolicies returns every stored policy across levels. ListPolicies(ctx context.Context) ([]Policy, error) + // PoliciesVersion returns the instance-wide policy version: it changes on + // every policy write in the instance and only then, and never moves down, + // so an authorizer that reads it before each decision knows whether the + // chain it holds is current. + PoliciesVersion(ctx context.Context) (int64, error) // PutPolicy stores or replaces one policy by its (level, scope, ID) // key, and returns the level's new version. PutPolicy(ctx context.Context, p Policy) (int64, error) diff --git a/internal/gateway/tool_access.go b/internal/gateway/tool_access.go index 234af3ce0..97a965d2e 100644 --- a/internal/gateway/tool_access.go +++ b/internal/gateway/tool_access.go @@ -2,6 +2,7 @@ package gateway import ( "context" + "errors" "fmt" "github.com/samcharles93/archie-core/internal/domain/access" @@ -12,7 +13,9 @@ import ( // the context carries: the person chatting, or a task's identity. It asks with // the action and resource the dashboard asks for the same request, so a tool // never reaches further than its caller could through the dashboard. A -// context with no principal is refused. +// context with no principal is refused, and so is a chain that cannot be +// read -- reported as unavailable rather than as a permission the caller +// lacks. func guarded(authz access.Authorizer, action access.Action, kind access.ResourceKind, id func(map[string]any) string, entry tools.ToolEntry) tools.ToolEntry { handler := entry.Handler entry.Handler = func(ctx context.Context, input map[string]any) (any, error) { @@ -24,10 +27,16 @@ func guarded(authz access.Authorizer, action access.Action, kind access.Resource if id != nil { resource.ID = id(input) } - if !authz.Authorize(p, action, resource, access.Context{}).Allowed { - return nil, fmt.Errorf("%s: %s may not %s this %s", entry.Name, p.IdentityID, action, kind) + decision := authz.Authorize(p, action, resource, access.Context{}) + if decision.Allowed { + return handler(ctx, input) } - return handler(ctx, input) + if errors.Is(decision.Err, access.ErrChainUnavailable) { + // Nothing was evaluated. Telling the caller it may not do this would + // send it looking for a permission it already holds. + return nil, fmt.Errorf("%s: access policies unavailable, retry shortly", entry.Name) + } + return nil, fmt.Errorf("%s: %s may not %s this %s", entry.Name, p.IdentityID, action, kind) } return entry } diff --git a/internal/infrastructure/access/engine.go b/internal/infrastructure/access/engine.go index 1b710c01a..00be64c9e 100644 --- a/internal/infrastructure/access/engine.go +++ b/internal/infrastructure/access/engine.go @@ -5,6 +5,7 @@ package access import ( "fmt" + "sync" cedar "github.com/cedar-policy/cedar-go" "github.com/cedar-policy/cedar-go/types" @@ -282,9 +283,13 @@ func (e *Engine) chain(p access.Principal, r access.Resource) []*levelSet { return out } -// schemaValidator returns the resolved schema, building it once. The schema -// is part of the shipped vocabulary and cannot change at runtime. -func schemaValidator() (*validate.Validator, error) { +// schemaValidator returns the resolved schema, built once for the process. The +// schema is part of the shipped vocabulary and cannot change at runtime, so +// parsing it per policy -- which every rebuild used to do -- cost one schema +// parse per policy instead of one per process. validate.Validator only reads +// the resolved schema, so rebuilds that run concurrently (this package's and +// the account path's) can share it. +var schemaValidator = sync.OnceValues(func() (*validate.Validator, error) { var sch schema.Schema if err := sch.UnmarshalCedar([]byte(schemaText)); err != nil { return nil, err @@ -294,4 +299,4 @@ func schemaValidator() (*validate.Validator, error) { return nil, err } return validate.New(resolved), nil -} +}) diff --git a/internal/infrastructure/access/live.go b/internal/infrastructure/access/live.go index 3c1ceffd6..5eae1dbea 100644 --- a/internal/infrastructure/access/live.go +++ b/internal/infrastructure/access/live.go @@ -3,6 +3,7 @@ package access import ( "context" "log/slog" + "sync" "sync/atomic" "time" @@ -10,29 +11,112 @@ import ( "github.com/samcharles93/archie-core/internal/domain/org" ) -// Live is an engine rebuilt from the stored policies, so a policy edited in -// the State Store reaches every process that authorizes without a restart. -// A failed reload keeps the last engine. +// versionTimeout bounds one check of the version and the policies. The +// Authorizer contract carries no context, so the check owns its deadline: +// without one a hung State Store would hang every decision in the process +// instead of refusing. +const versionTimeout = 5 * time.Second + +// Live is an engine rebuilt from the stored policies whenever their version +// moves, so a policy edit is enforced by the next decision rather than by a +// reload interval. A check that cannot read the store refuses: the chain it +// holds may predate the edit, and standing on it would be exactly the allow +// the edit meant to remove. type Live struct { - load func(context.Context) ([]access.Policy, error) - log *slog.Logger + // ctx is the process lifetime: no request's context reaches a check. + // + //nolint:containedctx // The Authorizer contract carries no context, so the check has nothing but the process's own to derive a deadline from. + ctx context.Context + version func(context.Context) (int64, error) + load func(context.Context) ([]access.Policy, error) + log *slog.Logger + engine atomic.Pointer[Engine] + // mu serialises rebuilds, so a burst of edits costs one rebuild per + // version observed rather than one per decision. + mu sync.Mutex + stamp atomic.Int64 } -// NewPending returns a chain whose engine refuses every request until Run or -// Reload loads the stored policies, so a process that starts before its State -// Store is closed rather than opened. -func NewPending(load func(context.Context) ([]access.Policy, error), log *slog.Logger) *Live { - l := &Live{load: load, log: log} +// NewPending returns a chain whose engine refuses every request until the +// stored policies load, so a process that starts before its State Store is +// closed rather than opened. +// +// The loader is called as the service, never as a principal: a list scoped to +// one org would cache that org's policies under the instance-wide version, and +// every other org's policies would stay missing for as long as the version +// holds. +func NewPending(ctx context.Context, version func(context.Context) (int64, error), load func(context.Context) ([]access.Policy, error), log *slog.Logger) *Live { + l := &Live{ + ctx: ctx, + version: version, + load: func(ctx context.Context) ([]access.Policy, error) { + return load(access.WithoutPrincipal(ctx)) + }, + log: log, + } l.engine.Store(pendingEngine) + // No version has been read yet, so the first decision loads even if the + // store reports zero. + l.stamp.Store(-1) return l } // Ready reports whether the stored policies have loaded. func (l *Live) Ready() bool { return l.engine.Load().Ready() } -// Reload rebuilds the engine from the store now. +// Reload rebuilds the engine from the store now, without waiting for a +// decision, so a process can report a store it could not read at start. It +// holds the same deadline a decision does: a decision that waits on a rebuild +// must not wait forever on a store that never answers. func (l *Live) Reload(ctx context.Context) error { + ctx, cancel := context.WithTimeout(ctx, versionTimeout) + defer cancel() + l.mu.Lock() + defer l.mu.Unlock() + version, err := l.version(ctx) + if err != nil { + return err + } + return l.apply(ctx, version) +} + +// current returns the engine for the version the store reports, rebuilding it +// when the version moved since the engine was built. A check that cannot read +// the store returns the pending engine, which refuses everything. +func (l *Live) current() *Engine { + ctx, cancel := context.WithTimeout(l.ctx, versionTimeout) + defer cancel() + + // The version before the list, never after and never in the same + // transaction: stamped with a version read first, a rebuilt engine can only + // be newer than its stamp, which costs one more rebuild. The other order + // lets an engine hold content from before an edit while stamped as current, + // and no later check would ever see a version it had not already applied. + version, err := l.version(ctx) + if err != nil { + l.log.Warn("access policy version unavailable; refusing until it is readable", "err", err) + return pendingEngine + } + if version == l.stamp.Load() { + return l.engine.Load() + } + l.mu.Lock() + defer l.mu.Unlock() + // A decision that waited on the lock has already rebuilt for this version. + if version == l.stamp.Load() { + return l.engine.Load() + } + if err := l.apply(ctx, version); err != nil { + l.log.Warn("access policies not reloaded; refusing until they load", "err", err) + return pendingEngine + } + return l.engine.Load() +} + +// apply loads the policies and swaps in the engine they describe, stamped with +// the version read before them. The caller holds mu. +func (l *Live) apply(ctx context.Context, version int64) error { stored, err := l.load(ctx) if err != nil { return err @@ -42,55 +126,30 @@ func (l *Live) Reload(ctx context.Context) error { l.log.Error("stored access policy is invalid and denies its level", "policy", problem.Policy.ID, "level", problem.Policy.Level, "err", problem.Err) } + // The engine before the stamp: a check that reads the stamp must find the + // engine it names. l.engine.Store(engine) + l.stamp.Store(version) return nil } -// Run loads at once, then reloads on every interval until ctx ends, so the -// first load does not wait an interval after the State Store returns. -func (l *Live) Run(ctx context.Context, interval time.Duration) { - ticker := time.NewTicker(interval) - defer ticker.Stop() - for { - l.reload(ctx) - select { - case <-ctx.Done(): - return - case <-ticker.C: - } - } -} - -func (l *Live) reload(ctx context.Context) { - err := l.Reload(ctx) - if err == nil || ctx.Err() != nil { - return - } - if l.Ready() { - l.log.Warn("access policies not reloaded; keeping the last chain", "err", err) - return - } - l.log.Warn("access policies not loaded; requests are refused until they load", "err", err) -} - func (l *Live) Authorize(p access.Principal, a access.Action, r access.Resource, c access.Context) access.Decision { - return l.engine.Load().Authorize(p, a, r, c) + return l.current().Authorize(p, a, r, c) } func (l *Live) AuthorizeDelivery(orgID org.OrgID, sourcePath, addr string) access.Decision { - return l.engine.Load().AuthorizeDelivery(orgID, sourcePath, addr) + return l.current().AuthorizeDelivery(orgID, sourcePath, addr) } // Problems reports the current engine's invalid policies. func (l *Live) Problems() []Problem { return l.engine.Load().Problems() } -// StartLive loads the stored policies through list and keeps them current -// until ctx ends. The chain decides for every org, so it loads as the -// service, never as the person whose policy edit triggered a reload. -func StartLive(ctx context.Context, list func(context.Context) ([]access.Policy, error), interval time.Duration, log *slog.Logger) *Live { - live := NewPending(func(ctx context.Context) ([]access.Policy, error) { - return list(access.WithoutPrincipal(ctx)) - }, log) - go live.Run(ctx, interval) +// StartLive loads the stored policies through list and keeps them current as +// they change. +func StartLive(ctx context.Context, list func(context.Context) ([]access.Policy, error), version func(context.Context) (int64, error), log *slog.Logger) *Live { + live := NewPending(ctx, version, list, log) + if err := live.Reload(ctx); err != nil { + log.Warn("access policies not loaded; requests are refused until they load", "err", err) + } return live } diff --git a/internal/infrastructure/access/live_test.go b/internal/infrastructure/access/live_test.go index 6dce2777b..4eaef8b09 100644 --- a/internal/infrastructure/access/live_test.go +++ b/internal/infrastructure/access/live_test.go @@ -13,7 +13,9 @@ import ( // is up refuses every request until the first load succeeds, then allows. func TestPendingChainRefusesUntilLoaded(t *testing.T) { loaded := false - live := NewPending(func(context.Context) ([]access.Policy, error) { + live := NewPending(t.Context(), func(context.Context) (int64, error) { + return 1, nil + }, func(context.Context) ([]access.Policy, error) { if !loaded { return nil, errors.New("store down") } @@ -50,3 +52,93 @@ func TestPendingChainRefusesUntilLoaded(t *testing.T) { t.Fatalf("after load = %+v, want allowed", decision) } } + +// fakePolicyStore is a State Store stub: the policy version, the policy list, +// and the read failures a policy write can land between. +type fakePolicyStore struct { + version int64 + policies []access.Policy + versionErr error + listErr error +} + +func (s *fakePolicyStore) PoliciesVersion(context.Context) (int64, error) { + if s.versionErr != nil { + return 0, s.versionErr + } + return s.version, nil +} + +func (s *fakePolicyStore) ListPolicies(context.Context) ([]access.Policy, error) { + if s.listErr != nil { + return nil, s.listErr + } + return s.policies, nil +} + +// TestLiveAppliesAPolicyEditBeforeTheNextDecision pins the ordering guarantee a +// policy edit gets: the next decision after a write returns is decided by the +// edited chain, and a store failure in between refuses rather than standing on +// the chain the process happens to hold. +func TestLiveAppliesAPolicyEditBeforeTheNextDecision(t *testing.T) { + // The process starts with no stored policies, which allow everything, so + // the forbid is the edit under test. + forbidAll := access.Policy{ID: "forbid-all", Level: access.LevelInstance, Text: `forbid(principal, action, resource);`} + storeDown := errors.New("state store down") + request := func(live *Live) access.Decision { + return live.Authorize(access.SharedTokenOwner(), access.ActionRead, + access.Resource{Kind: access.KindDashboard}, access.Context{}) + } + tests := []struct { + name string + write func(store *fakePolicyStore) + wantAllowed bool + wantUnavailable bool + }{ + { + name: "an unchanged version keeps the chain", + write: func(store *fakePolicyStore) { store.policies = []access.Policy{forbidAll} }, + wantAllowed: true, + }, + { + name: "a bumped version applies the forbid", + write: func(store *fakePolicyStore) { store.policies = []access.Policy{forbidAll}; store.version++ }, + }, + { + name: "a failed version read refuses", + write: func(store *fakePolicyStore) { + store.policies = []access.Policy{forbidAll} + store.version++ + store.versionErr = storeDown + }, + wantUnavailable: true, + }, + { + // The chain held is stamped below the version, so it may predate + // the edit: keeping it is how a forbid survives a store blip. + name: "a failed list read after a bump refuses instead of keeping the old chain", + write: func(store *fakePolicyStore) { store.version++; store.listErr = storeDown }, + wantUnavailable: true, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + store := &fakePolicyStore{version: 1} + live := NewPending(t.Context(), store.PoliciesVersion, store.ListPolicies, slog.New(slog.DiscardHandler)) + if err := live.Reload(t.Context()); err != nil { + t.Fatal(err) + } + if decision := request(live); !decision.Allowed { + t.Fatalf("before the edit = %+v, want allowed so the edit is what refuses", decision) + } + tt.write(store) + decision := request(live) + if decision.Allowed != tt.wantAllowed { + t.Fatalf("after the edit = %+v, want allowed %v", decision, tt.wantAllowed) + } + if unavailable := errors.Is(decision.Err, access.ErrChainUnavailable); unavailable != tt.wantUnavailable { + t.Fatalf("after the edit = %+v, want unavailable %v", decision, tt.wantUnavailable) + } + }) + } +} diff --git a/internal/infrastructure/postgres/access.go b/internal/infrastructure/postgres/access.go index 21e9a92ee..b58970f10 100644 --- a/internal/infrastructure/postgres/access.go +++ b/internal/infrastructure/postgres/access.go @@ -1,7 +1,9 @@ // Access policies and denial records: the Postgres implementation of // internal/domain/access's PolicyStore, Resetter and DenialStore. // Policy changes are versioned per level -// scope and audited as one sys_audit row per change naming who made it. +// scope and audited as one sys_audit row per change naming who made it; +// every write also bumps the instance-wide revision in the same transaction, +// which is what tells an authorizer whether the chain it holds is current. package postgres import ( @@ -80,6 +82,38 @@ func (s *Store) ListPolicies(ctx context.Context) ([]access.Policy, error) { return out, nil } +// writePolicy runs one policy mutation and the instance-wide version bump in +// one transaction, and returns the new version. Every write path goes through +// it so no path can move the policies without moving the version the +// authorizers check: a mutation that lands without the bump would let a +// process keep deciding on the chain that predates it. +func (s *Store) writePolicy(ctx context.Context, write func(q *postgresdb.Queries) error) (int64, error) { + var version int64 + err := pgx.BeginFunc(ctx, s.pool, func(tx pgx.Tx) error { + q := s.queries().WithTx(tx) + if err := write(q); err != nil { + return err + } + bumped, err := q.BumpAccessPolicyRevision(ctx) + if err != nil { + return err + } + version = bumped + return nil + }) + if err != nil { + return 0, err + } + return version, nil +} + +// PoliciesVersion returns the instance-wide policy version: it moves on every +// policy write in the instance and only then, so an authorizer that reads it +// before each decision can tell whether the chain it holds is current. +func (s *Store) PoliciesVersion(ctx context.Context) (int64, error) { + return s.queries().AccessPolicyRevision(ctx) +} + // PutPolicy stores or replaces one policy by its scope+ID key, bumps the // level's version, and writes the audit row -- in one transaction, so a // version that never moved cannot advertise a change that half-landed. @@ -87,11 +121,9 @@ func (s *Store) PutPolicy(ctx context.Context, p access.Policy) (int64, error) { if err := p.Validate(); err != nil { return 0, err } - q := s.queries() level, orgID, wsID, kind, id, policyID := accessScopeOf(p) var version int64 - err := pgx.BeginFunc(ctx, s.pool, func(tx pgx.Tx) error { - q := q.WithTx(tx) + _, err := s.writePolicy(ctx, func(q *postgresdb.Queries) error { if err := q.UpsertAccessPolicy(ctx, postgresdb.UpsertAccessPolicyParams{ Level: level, OrgID: orgID, WorkspaceID: wsID, ObjectKind: kind, ObjectID: id, @@ -128,25 +160,28 @@ func (s *Store) DeletePolicy(ctx context.Context, p access.Policy) error { return err } level, orgID, wsID, kind, id, policyID := accessScopeOf(p) - deleted, err := s.queries().DeleteAccessPolicy(ctx, postgresdb.DeleteAccessPolicyParams{ - Level: level, OrgID: orgID, WorkspaceID: wsID, - ObjectKind: kind, ObjectID: id, PolicyID: policyID, - }) - if err != nil { - return err - } - if deleted == 0 { - return access.ErrPolicyNotFound - } - if _, err := s.queries().UpsertAccessPolicyVersion(ctx, postgresdb.UpsertAccessPolicyVersionParams{ - Level: level, OrgID: orgID, WorkspaceID: wsID, - }); err != nil { - return err - } - // A level-scope with no policies left keeps no version row. - return s.queries().DeleteAccessPolicyVersion(ctx, postgresdb.DeleteAccessPolicyVersionParams{ - Level: level, OrgID: orgID, WorkspaceID: wsID, + _, err := s.writePolicy(ctx, func(q *postgresdb.Queries) error { + deleted, err := q.DeleteAccessPolicy(ctx, postgresdb.DeleteAccessPolicyParams{ + Level: level, OrgID: orgID, WorkspaceID: wsID, + ObjectKind: kind, ObjectID: id, PolicyID: policyID, + }) + if err != nil { + return err + } + if deleted == 0 { + return access.ErrPolicyNotFound + } + if _, err := q.UpsertAccessPolicyVersion(ctx, postgresdb.UpsertAccessPolicyVersionParams{ + Level: level, OrgID: orgID, WorkspaceID: wsID, + }); err != nil { + return err + } + // A level-scope with no policies left keeps no version row. + return q.DeleteAccessPolicyVersion(ctx, postgresdb.DeleteAccessPolicyVersionParams{ + Level: level, OrgID: orgID, WorkspaceID: wsID, + }) }) + return err } // EnsureShippedOrgPolicies seeds an org's shipped role policies when it @@ -194,7 +229,10 @@ func (s *Store) ResetOrgPolicies(ctx context.Context, orgID org.OrgID) error { // ResetInstancePolicies removes every stored instance policy. The // cross-org forbid is engine-enforced and survives any reset. func (s *Store) ResetInstancePolicies(ctx context.Context) error { - return s.queries().ResetInstancePolicies(ctx) + _, err := s.writePolicy(ctx, func(q *postgresdb.Queries) error { + return q.ResetInstancePolicies(ctx) + }) + return err } // RecordResetAudit records the one audit row a reset is written as. diff --git a/internal/infrastructure/postgres/migrations/0058_access_policy_revision.sql b/internal/infrastructure/postgres/migrations/0058_access_policy_revision.sql new file mode 100644 index 000000000..56e50b6e9 --- /dev/null +++ b/internal/infrastructure/postgres/migrations/0058_access_policy_revision.sql @@ -0,0 +1,18 @@ +-- One instance-wide policy version, bumped inside the transaction of every +-- policy write, so a process that authorizes can tell before each decision +-- whether its engine is current. Per-level counters cannot carry that: an edit +-- outside the level that currently holds the highest version is invisible, a +-- delete can move the highest version down, and an instance reset writes no +-- version at all. A singleton row, because access_policy_versions.level only +-- admits the real levels. + +-- +goose Up +CREATE TABLE access_policy_revision ( + only_row boolean PRIMARY KEY DEFAULT true CHECK (only_row), + version bigint NOT NULL DEFAULT 1, + updated_at timestamptz NOT NULL DEFAULT now() +); +INSERT INTO access_policy_revision (only_row) VALUES (true); + +-- +goose Down +DROP TABLE access_policy_revision; diff --git a/internal/infrastructure/postgres/postgresdb/access.sql.go b/internal/infrastructure/postgres/postgresdb/access.sql.go index 9699c15b4..b21aa5f01 100644 --- a/internal/infrastructure/postgres/postgresdb/access.sql.go +++ b/internal/infrastructure/postgres/postgresdb/access.sql.go @@ -11,6 +11,33 @@ import ( "github.com/jackc/pgx/v5/pgtype" ) +const accessPolicyRevision = `-- name: AccessPolicyRevision :one +SELECT version FROM access_policy_revision +` + +func (q *Queries) AccessPolicyRevision(ctx context.Context) (int64, error) { + row := q.db.QueryRow(ctx, accessPolicyRevision) + var version int64 + err := row.Scan(&version) + return version, err +} + +const bumpAccessPolicyRevision = `-- name: BumpAccessPolicyRevision :one +INSERT INTO access_policy_revision (only_row, version) VALUES (true, 1) +ON CONFLICT (only_row) +DO UPDATE SET version = access_policy_revision.version + 1, updated_at = now() +RETURNING version +` + +// The instance-wide version. It moves inside the transaction of every policy +// write, so it changes exactly when the policy snapshot changes. +func (q *Queries) BumpAccessPolicyRevision(ctx context.Context) (int64, error) { + row := q.db.QueryRow(ctx, bumpAccessPolicyRevision) + var version int64 + err := row.Scan(&version) + return version, err +} + const countShippedOrgPolicies = `-- name: CountShippedOrgPolicies :one SELECT count(*) FROM access_policies WHERE level = 'org' AND org_id = $1 AND policy_id = ANY($2::text[]) diff --git a/internal/infrastructure/postgres/postgresdb/models.go b/internal/infrastructure/postgres/postgresdb/models.go index 348c64638..16f6a3564 100644 --- a/internal/infrastructure/postgres/postgresdb/models.go +++ b/internal/infrastructure/postgres/postgresdb/models.go @@ -36,6 +36,12 @@ type AccessPolicy struct { UpdatedAt time.Time } +type AccessPolicyRevision struct { + OnlyRow bool + Version int64 + UpdatedAt time.Time +} + type AccessPolicyVersion struct { Level string OrgID string diff --git a/internal/infrastructure/postgres/queries/access.sql b/internal/infrastructure/postgres/queries/access.sql index 63c3267cf..35566d626 100644 --- a/internal/infrastructure/postgres/queries/access.sql +++ b/internal/infrastructure/postgres/queries/access.sql @@ -62,3 +62,14 @@ FROM access_denials WHERE org_id = $1 ORDER BY id DESC LIMIT $2; -- name: InsertAccessResetAudit :exec INSERT INTO sys_audit (at, table_name, record_key, field, record_version, actor, source, request_id) VALUES (now(), 'access_policies', $1, 'reset', 1, 'archied access reset', 'archied', ''); + +-- name: BumpAccessPolicyRevision :one +-- The instance-wide version. It moves inside the transaction of every policy +-- write, so it changes exactly when the policy snapshot changes. +INSERT INTO access_policy_revision (only_row, version) VALUES (true, 1) +ON CONFLICT (only_row) +DO UPDATE SET version = access_policy_revision.version + 1, updated_at = now() +RETURNING version; + +-- name: AccessPolicyRevision :one +SELECT version FROM access_policy_revision; diff --git a/internal/infrastructure/readiness/probes_test.go b/internal/infrastructure/readiness/probes_test.go index b828b6f96..6b7cec56a 100644 --- a/internal/infrastructure/readiness/probes_test.go +++ b/internal/infrastructure/readiness/probes_test.go @@ -16,7 +16,9 @@ import ( // once they do, without rebuilding the probe. func TestProblemProbeFollowsTheChain(t *testing.T) { up := false - chain := infraaccess.NewPending(func(context.Context) ([]access.Policy, error) { + chain := infraaccess.NewPending(t.Context(), func(context.Context) (int64, error) { + return 1, nil + }, func(context.Context) ([]access.Policy, error) { if !up { return nil, errors.New("store down") } diff --git a/internal/infrastructure/staterpc/access.go b/internal/infrastructure/staterpc/access.go index b1bf86af4..68a2fd4a7 100644 --- a/internal/infrastructure/staterpc/access.go +++ b/internal/infrastructure/staterpc/access.go @@ -113,6 +113,17 @@ func (s *server) ListPolicies(ctx context.Context, _ *pb.ListPoliciesRequest) (* return &pb.ListPoliciesResponse{Policies: out}, nil } +func (s *server) GetPoliciesVersion(ctx context.Context, _ *pb.GetPoliciesVersionRequest) (*pb.GetPoliciesVersionResponse, error) { + if s.deps.Policies == nil { + return nil, errPoliciesUnavailable + } + version, err := s.deps.Policies.PoliciesVersion(ctx) + if err != nil { + return nil, accessStatus(err) + } + return &pb.GetPoliciesVersionResponse{Version: version}, nil +} + func (s *server) PutPolicy(ctx context.Context, request *pb.PutPolicyRequest) (*pb.PutPolicyResponse, error) { if s.deps.Policies == nil { return nil, errPoliciesUnavailable diff --git a/internal/infrastructure/staterpc/access_client.go b/internal/infrastructure/staterpc/access_client.go index 7f3a962cc..74788d831 100644 --- a/internal/infrastructure/staterpc/access_client.go +++ b/internal/infrastructure/staterpc/access_client.go @@ -52,6 +52,14 @@ func (c *Client) ListPolicies(ctx context.Context) ([]access.Policy, error) { return mapValues(r.Policies, accessPolicyValue), nil } +func (c *Client) PoliciesVersion(ctx context.Context) (int64, error) { + r, err := c.client.GetPoliciesVersion(ctx, &pb.GetPoliciesVersionRequest{}) + if err != nil { + return 0, unmapError(err) + } + return r.GetVersion(), nil +} + func (c *Client) PutPolicy(ctx context.Context, p access.Policy) (int64, error) { r, err := c.client.PutPolicy(ctx, &pb.PutPolicyRequest{Policy: accessPolicyProto(p)}) if err != nil { diff --git a/internal/webui/api_access_policies.go b/internal/webui/api_access_policies.go index f78330489..6be089ba1 100644 --- a/internal/webui/api_access_policies.go +++ b/internal/webui/api_access_policies.go @@ -49,7 +49,6 @@ func (s *Server) handlePutPolicy(w http.ResponseWriter, r *http.Request) { writePolicyError(w, err) return } - s.reloadAccess(r) writeJSON(w, map[string]int64{"version": version}) } @@ -62,19 +61,9 @@ func (s *Server) handleDeletePolicy(w http.ResponseWriter, r *http.Request) { writePolicyError(w, err) return } - s.reloadAccess(r) w.WriteHeader(http.StatusNoContent) } -func (s *Server) reloadAccess(r *http.Request) { - if s.ReloadAccess == nil { - return - } - if err := s.ReloadAccess(r.Context()); err != nil && s.Log != nil { - s.Log.Warn("access chain not reloaded after a policy edit; the periodic reload will apply it", "err", err) - } -} - // decodePolicy reads a policy and pins it to the caller's org: no request // field chooses the org, and instance policies are not edited here. func (s *Server) decodePolicy(w http.ResponseWriter, r *http.Request) (access.Policy, bool) { diff --git a/internal/webui/api_orgs.go b/internal/webui/api_orgs.go index 8ccb2fbf1..54f4b6a95 100644 --- a/internal/webui/api_orgs.go +++ b/internal/webui/api_orgs.go @@ -82,12 +82,6 @@ func (s *Server) handleOrgCreate(w http.ResponseWriter, r *http.Request) { writeOrgError(w, err) return } - // The new org's role policies were seeded; load them so its owner can act. - if s.ReloadAccess != nil { - if err := s.ReloadAccess(r.Context()); err != nil { - s.logf("reload access after org create", "err", err) - } - } w.WriteHeader(http.StatusCreated) writeJSON(w, map[string]any{"org": created}) } diff --git a/internal/webui/server.go b/internal/webui/server.go index 8b2ee85d9..0fcabae5f 100644 --- a/internal/webui/server.go +++ b/internal/webui/server.go @@ -115,9 +115,6 @@ type Server struct { // Policies is the stored access policy chain, behind the policies page. // Nil answers 503. Policies access.PolicyStore - // ReloadAccess rebuilds Access from the stored policies, so an edit here - // applies to the next request. Nil leaves the periodic reload. - ReloadAccess func(context.Context) error // now is the clock applyState reads staleness against. Nil means // time.Now; tests set it to pin a record's age. now func() time.Time diff --git a/proto/state/v1/state.proto b/proto/state/v1/state.proto index 4eab022c8..ea1a7c407 100644 --- a/proto/state/v1/state.proto +++ b/proto/state/v1/state.proto @@ -278,6 +278,10 @@ service StateStoreService { // it serves, and its memberships (internal/domain/access). rpc GetPrincipal(GetPrincipalRequest) returns (GetPrincipalResponse); rpc ListPolicies(ListPoliciesRequest) returns (ListPoliciesResponse); + // GetPoliciesVersion is the instance-wide policy version an authorizer reads + // before each decision to know whether the chain it holds is current. A + // caller must read it before ListPolicies, never after. + rpc GetPoliciesVersion(GetPoliciesVersionRequest) returns (GetPoliciesVersionResponse); rpc PutPolicy(PutPolicyRequest) returns (PutPolicyResponse); rpc DeletePolicy(DeletePolicyRequest) returns (DeletePolicyResponse); rpc EnsureShippedOrgPolicies(EnsureShippedOrgPoliciesRequest) returns (EnsureShippedOrgPoliciesResponse); @@ -1549,6 +1553,8 @@ message AccessPolicy { } message ListPoliciesRequest {} message ListPoliciesResponse { repeated AccessPolicy policies = 1; } +message GetPoliciesVersionRequest {} +message GetPoliciesVersionResponse { int64 version = 1; } message PutPolicyRequest { AccessPolicy policy = 1; } message PutPolicyResponse { int64 version = 1; } message DeletePolicyRequest { AccessPolicy policy = 1; }