Files
archie/internal/contracts/state/v1/harness_secret.pb.go
T
sam 0dae907dad refactor(state)!: split StateStoreService into per-domain services
One gRPC service per domain in state.v1 (tasks, executions, accounts, identities, packages, captures, bindings, access, orgs, alerts and so on), each with its own server type in staterpc. RPC and message names and numbers are unchanged.
2026-10-25 19:54:27 +11:00

403 lines
14 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: state/v1/harness_secret.proto
package statev1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// HarnessSecret mirrors internal/domain/harnesssecret.Secret -- one org's
// captured OAuth token set for a credential binding's service
// (docs/prds/external-agent-harness.md, Credentials).
type HarnessSecret struct {
state protoimpl.MessageState `protogen:"open.v1"`
Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
AccessToken string `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
RefreshToken string `protobuf:"bytes,4,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
TokenType string `protobuf:"bytes,5,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
Scopes []string `protobuf:"bytes,8,rep,name=scopes,proto3" json:"scopes,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HarnessSecret) Reset() {
*x = HarnessSecret{}
mi := &file_state_v1_harness_secret_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HarnessSecret) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HarnessSecret) ProtoMessage() {}
func (x *HarnessSecret) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_harness_secret_proto_msgTypes[0]
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 HarnessSecret.ProtoReflect.Descriptor instead.
func (*HarnessSecret) Descriptor() ([]byte, []int) {
return file_state_v1_harness_secret_proto_rawDescGZIP(), []int{0}
}
func (x *HarnessSecret) GetService() string {
if x != nil {
return x.Service
}
return ""
}
func (x *HarnessSecret) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *HarnessSecret) GetRefreshToken() string {
if x != nil {
return x.RefreshToken
}
return ""
}
func (x *HarnessSecret) GetTokenType() string {
if x != nil {
return x.TokenType
}
return ""
}
func (x *HarnessSecret) GetExpiresAt() *timestamppb.Timestamp {
if x != nil {
return x.ExpiresAt
}
return nil
}
func (x *HarnessSecret) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
func (x *HarnessSecret) GetScopes() []string {
if x != nil {
return x.Scopes
}
return nil
}
type GetHarnessSecretRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
RunCredential string `protobuf:"bytes,3,opt,name=run_credential,json=runCredential,proto3" json:"run_credential,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetHarnessSecretRequest) Reset() {
*x = GetHarnessSecretRequest{}
mi := &file_state_v1_harness_secret_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetHarnessSecretRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetHarnessSecretRequest) ProtoMessage() {}
func (x *GetHarnessSecretRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_harness_secret_proto_msgTypes[1]
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 GetHarnessSecretRequest.ProtoReflect.Descriptor instead.
func (*GetHarnessSecretRequest) Descriptor() ([]byte, []int) {
return file_state_v1_harness_secret_proto_rawDescGZIP(), []int{1}
}
func (x *GetHarnessSecretRequest) GetService() string {
if x != nil {
return x.Service
}
return ""
}
func (x *GetHarnessSecretRequest) GetRunCredential() string {
if x != nil {
return x.RunCredential
}
return ""
}
type GetHarnessSecretResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Secret *HarnessSecret `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
Org string `protobuf:"bytes,2,opt,name=org,proto3" json:"org,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetHarnessSecretResponse) Reset() {
*x = GetHarnessSecretResponse{}
mi := &file_state_v1_harness_secret_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetHarnessSecretResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetHarnessSecretResponse) ProtoMessage() {}
func (x *GetHarnessSecretResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_harness_secret_proto_msgTypes[2]
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 GetHarnessSecretResponse.ProtoReflect.Descriptor instead.
func (*GetHarnessSecretResponse) Descriptor() ([]byte, []int) {
return file_state_v1_harness_secret_proto_rawDescGZIP(), []int{2}
}
func (x *GetHarnessSecretResponse) GetSecret() *HarnessSecret {
if x != nil {
return x.Secret
}
return nil
}
func (x *GetHarnessSecretResponse) GetOrg() string {
if x != nil {
return x.Org
}
return ""
}
type PutHarnessSecretRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Secret *HarnessSecret `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
RunCredential string `protobuf:"bytes,2,opt,name=run_credential,json=runCredential,proto3" json:"run_credential,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PutHarnessSecretRequest) Reset() {
*x = PutHarnessSecretRequest{}
mi := &file_state_v1_harness_secret_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PutHarnessSecretRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PutHarnessSecretRequest) ProtoMessage() {}
func (x *PutHarnessSecretRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_harness_secret_proto_msgTypes[3]
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 PutHarnessSecretRequest.ProtoReflect.Descriptor instead.
func (*PutHarnessSecretRequest) Descriptor() ([]byte, []int) {
return file_state_v1_harness_secret_proto_rawDescGZIP(), []int{3}
}
func (x *PutHarnessSecretRequest) GetSecret() *HarnessSecret {
if x != nil {
return x.Secret
}
return nil
}
func (x *PutHarnessSecretRequest) GetRunCredential() string {
if x != nil {
return x.RunCredential
}
return ""
}
type PutHarnessSecretResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PutHarnessSecretResponse) Reset() {
*x = PutHarnessSecretResponse{}
mi := &file_state_v1_harness_secret_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PutHarnessSecretResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PutHarnessSecretResponse) ProtoMessage() {}
func (x *PutHarnessSecretResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_harness_secret_proto_msgTypes[4]
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 PutHarnessSecretResponse.ProtoReflect.Descriptor instead.
func (*PutHarnessSecretResponse) Descriptor() ([]byte, []int) {
return file_state_v1_harness_secret_proto_rawDescGZIP(), []int{4}
}
var File_state_v1_harness_secret_proto protoreflect.FileDescriptor
const file_state_v1_harness_secret_proto_rawDesc = "" +
"\n" +
"\x1dstate/v1/harness_secret.proto\x12\bstate.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa9\x02\n" +
"\rHarnessSecret\x12\x18\n" +
"\aservice\x18\x02 \x01(\tR\aservice\x12!\n" +
"\faccess_token\x18\x03 \x01(\tR\vaccessToken\x12#\n" +
"\rrefresh_token\x18\x04 \x01(\tR\frefreshToken\x12\x1d\n" +
"\n" +
"token_type\x18\x05 \x01(\tR\ttokenType\x129\n" +
"\n" +
"expires_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x129\n" +
"\n" +
"updated_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x16\n" +
"\x06scopes\x18\b \x03(\tR\x06scopesJ\x04\b\x01\x10\x02R\x03org\"e\n" +
"\x17GetHarnessSecretRequest\x12\x18\n" +
"\aservice\x18\x02 \x01(\tR\aservice\x12%\n" +
"\x0erun_credential\x18\x03 \x01(\tR\rrunCredentialJ\x04\b\x01\x10\x02R\x03org\"]\n" +
"\x18GetHarnessSecretResponse\x12/\n" +
"\x06secret\x18\x01 \x01(\v2\x17.state.v1.HarnessSecretR\x06secret\x12\x10\n" +
"\x03org\x18\x02 \x01(\tR\x03org\"q\n" +
"\x17PutHarnessSecretRequest\x12/\n" +
"\x06secret\x18\x01 \x01(\v2\x17.state.v1.HarnessSecretR\x06secret\x12%\n" +
"\x0erun_credential\x18\x02 \x01(\tR\rrunCredential\"\x1a\n" +
"\x18PutHarnessSecretResponse2\xcc\x01\n" +
"\x14HarnessSecretService\x12Y\n" +
"\x10GetHarnessSecret\x12!.state.v1.GetHarnessSecretRequest\x1a\".state.v1.GetHarnessSecretResponse\x12Y\n" +
"\x10PutHarnessSecret\x12!.state.v1.PutHarnessSecretRequest\x1a\".state.v1.PutHarnessSecretResponseB\xac\x01\n" +
"\fcom.state.v1B\x12HarnessSecretProtoP\x01ZGgithub.com/samcharles93/archie-core/internal/contracts/state/v1;statev1\xa2\x02\x03SXX\xaa\x02\bState.V1\xca\x02\bState\\V1\xe2\x02\x14State\\V1\\GPBMetadata\xea\x02\tState::V1b\x06proto3"
var (
file_state_v1_harness_secret_proto_rawDescOnce sync.Once
file_state_v1_harness_secret_proto_rawDescData []byte
)
func file_state_v1_harness_secret_proto_rawDescGZIP() []byte {
file_state_v1_harness_secret_proto_rawDescOnce.Do(func() {
file_state_v1_harness_secret_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_state_v1_harness_secret_proto_rawDesc), len(file_state_v1_harness_secret_proto_rawDesc)))
})
return file_state_v1_harness_secret_proto_rawDescData
}
var file_state_v1_harness_secret_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_state_v1_harness_secret_proto_goTypes = []any{
(*HarnessSecret)(nil), // 0: state.v1.HarnessSecret
(*GetHarnessSecretRequest)(nil), // 1: state.v1.GetHarnessSecretRequest
(*GetHarnessSecretResponse)(nil), // 2: state.v1.GetHarnessSecretResponse
(*PutHarnessSecretRequest)(nil), // 3: state.v1.PutHarnessSecretRequest
(*PutHarnessSecretResponse)(nil), // 4: state.v1.PutHarnessSecretResponse
(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
}
var file_state_v1_harness_secret_proto_depIdxs = []int32{
5, // 0: state.v1.HarnessSecret.expires_at:type_name -> google.protobuf.Timestamp
5, // 1: state.v1.HarnessSecret.updated_at:type_name -> google.protobuf.Timestamp
0, // 2: state.v1.GetHarnessSecretResponse.secret:type_name -> state.v1.HarnessSecret
0, // 3: state.v1.PutHarnessSecretRequest.secret:type_name -> state.v1.HarnessSecret
1, // 4: state.v1.HarnessSecretService.GetHarnessSecret:input_type -> state.v1.GetHarnessSecretRequest
3, // 5: state.v1.HarnessSecretService.PutHarnessSecret:input_type -> state.v1.PutHarnessSecretRequest
2, // 6: state.v1.HarnessSecretService.GetHarnessSecret:output_type -> state.v1.GetHarnessSecretResponse
4, // 7: state.v1.HarnessSecretService.PutHarnessSecret:output_type -> state.v1.PutHarnessSecretResponse
6, // [6:8] is the sub-list for method output_type
4, // [4:6] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_state_v1_harness_secret_proto_init() }
func file_state_v1_harness_secret_proto_init() {
if File_state_v1_harness_secret_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_state_v1_harness_secret_proto_rawDesc), len(file_state_v1_harness_secret_proto_rawDesc)),
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_state_v1_harness_secret_proto_goTypes,
DependencyIndexes: file_state_v1_harness_secret_proto_depIdxs,
MessageInfos: file_state_v1_harness_secret_proto_msgTypes,
}.Build()
File_state_v1_harness_secret_proto = out.File
file_state_v1_harness_secret_proto_goTypes = nil
file_state_v1_harness_secret_proto_depIdxs = nil
}