Documentation
¶
Index ¶
- Variables
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetAccountNumber() uint32
- func (x *Account) GetAllowance() *AllowanceObservation
- func (x *Account) GetDrawsCredits() bool
- func (x *Account) GetEmail() string
- func (x *Account) GetKey() string
- func (x *Account) GetOffersConfiguredModel() bool
- func (x *Account) GetPlan() string
- func (x *Account) GetProvider() Provider
- func (x *Account) GetReserveStatus() string
- func (x *Account) GetSignInEndsAt() *timestamppb.Timestamp
- func (x *Account) GetState() AccountState
- func (x *Account) GetUnavailableReason() string
- func (x *Account) GetUnavailableUntil() *timestamppb.Timestamp
- func (x *Account) GetUsable() bool
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type AccountDay
- func (*AccountDay) Descriptor() ([]byte, []int)deprecated
- func (x *AccountDay) GetAccountKey() string
- func (x *AccountDay) GetCostNanoUsd() int64
- func (x *AccountDay) GetStartedAt() *timestamppb.Timestamp
- func (x *AccountDay) GetTokens() int64
- func (*AccountDay) ProtoMessage()
- func (x *AccountDay) ProtoReflect() protoreflect.Message
- func (x *AccountDay) Reset()
- func (x *AccountDay) String() string
- type AccountState
- func (AccountState) Descriptor() protoreflect.EnumDescriptor
- func (x AccountState) Enum() *AccountState
- func (AccountState) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccountState) Number() protoreflect.EnumNumber
- func (x AccountState) String() string
- func (AccountState) Type() protoreflect.EnumType
- type AccountTotal
- func (*AccountTotal) Descriptor() ([]byte, []int)deprecated
- func (x *AccountTotal) GetAccountKey() string
- func (x *AccountTotal) GetCostNanoUsd() int64
- func (x *AccountTotal) GetTokens() int64
- func (*AccountTotal) ProtoMessage()
- func (x *AccountTotal) ProtoReflect() protoreflect.Message
- func (x *AccountTotal) Reset()
- func (x *AccountTotal) String() string
- type AllowanceObservation
- func (*AllowanceObservation) Descriptor() ([]byte, []int)deprecated
- func (x *AllowanceObservation) GetAllowed() bool
- func (x *AllowanceObservation) GetAvailableResetCredits() uint32
- func (x *AllowanceObservation) GetCreditBalance() float64
- func (x *AllowanceObservation) GetLimitReached() bool
- func (x *AllowanceObservation) GetObservedAt() *timestamppb.Timestamp
- func (x *AllowanceObservation) GetStoredResets() []*StoredReset
- func (x *AllowanceObservation) GetWindows() []*AllowanceWindow
- func (*AllowanceObservation) ProtoMessage()
- func (x *AllowanceObservation) ProtoReflect() protoreflect.Message
- func (x *AllowanceObservation) Reset()
- func (x *AllowanceObservation) String() string
- type AllowanceWindow
- func (*AllowanceWindow) Descriptor() ([]byte, []int)deprecated
- func (x *AllowanceWindow) GetModelId() string
- func (x *AllowanceWindow) GetModelName() string
- func (x *AllowanceWindow) GetPeriodSeconds() int64
- func (x *AllowanceWindow) GetResetAt() *timestamppb.Timestamp
- func (x *AllowanceWindow) GetUsedPercent() float64
- func (*AllowanceWindow) ProtoMessage()
- func (x *AllowanceWindow) ProtoReflect() protoreflect.Message
- func (x *AllowanceWindow) Reset()
- func (x *AllowanceWindow) String() string
- type CompletedTask
- func (*CompletedTask) Descriptor() ([]byte, []int)deprecated
- func (x *CompletedTask) GetAccountKeys() []string
- func (x *CompletedTask) GetCostNanoUsd() int64
- func (x *CompletedTask) GetLastCompletedAt() *timestamppb.Timestamp
- func (x *CompletedTask) GetTaskId() string
- func (x *CompletedTask) GetTitle() string
- func (x *CompletedTask) GetTokens() int64
- func (*CompletedTask) ProtoMessage()
- func (x *CompletedTask) ProtoReflect() protoreflect.Message
- func (x *CompletedTask) Reset()
- func (x *CompletedTask) String() string
- type Connection
- type MenuSnapshot
- func (*MenuSnapshot) Descriptor() ([]byte, []int)deprecated
- func (x *MenuSnapshot) GetAccountDays() []*AccountDay
- func (x *MenuSnapshot) GetAccounts() []*Account
- func (x *MenuSnapshot) GetConnection() *Connection
- func (x *MenuSnapshot) GetGeneratedAt() *timestamppb.Timestamp
- func (x *MenuSnapshot) GetProviderBurns() []*ProviderBurn
- func (x *MenuSnapshot) GetProxyActivity() *ProxyActivity
- func (x *MenuSnapshot) GetReportingPeriods() []*ReportingPeriod
- func (*MenuSnapshot) ProtoMessage()
- func (x *MenuSnapshot) ProtoReflect() protoreflect.Message
- func (x *MenuSnapshot) Reset()
- func (x *MenuSnapshot) String() string
- type ModelRequestCounts
- func (*ModelRequestCounts) Descriptor() ([]byte, []int)deprecated
- func (x *ModelRequestCounts) GetFailed() int64
- func (x *ModelRequestCounts) GetInterrupted() int64
- func (x *ModelRequestCounts) GetRequests() int64
- func (x *ModelRequestCounts) GetSuccessful() int64
- func (*ModelRequestCounts) ProtoMessage()
- func (x *ModelRequestCounts) ProtoReflect() protoreflect.Message
- func (x *ModelRequestCounts) Reset()
- func (x *ModelRequestCounts) String() string
- type Provider
- type ProviderBurn
- func (*ProviderBurn) Descriptor() ([]byte, []int)deprecated
- func (x *ProviderBurn) GetAccountsPerWeek() float64
- func (x *ProviderBurn) GetProvider() Provider
- func (*ProviderBurn) ProtoMessage()
- func (x *ProviderBurn) ProtoReflect() protoreflect.Message
- func (x *ProviderBurn) Reset()
- func (x *ProviderBurn) String() string
- type ProxyAccountActivity
- func (*ProxyAccountActivity) Descriptor() ([]byte, []int)deprecated
- func (x *ProxyAccountActivity) GetAccountKey() string
- func (x *ProxyAccountActivity) GetCompletedResponses() int64
- func (x *ProxyAccountActivity) GetRequestCounts() *ModelRequestCounts
- func (x *ProxyAccountActivity) GetTokens() int64
- func (*ProxyAccountActivity) ProtoMessage()
- func (x *ProxyAccountActivity) ProtoReflect() protoreflect.Message
- func (x *ProxyAccountActivity) Reset()
- func (x *ProxyAccountActivity) String() string
- type ProxyActivity
- func (*ProxyActivity) Descriptor() ([]byte, []int)deprecated
- func (x *ProxyActivity) GetAccounts() []*ProxyAccountActivity
- func (x *ProxyActivity) GetEndedAt() *timestamppb.Timestamp
- func (x *ProxyActivity) GetRequestsStartedAt() *timestamppb.Timestamp
- func (x *ProxyActivity) GetStartedAt() *timestamppb.Timestamp
- func (x *ProxyActivity) GetTasks() []*CompletedTask
- func (*ProxyActivity) ProtoMessage()
- func (x *ProxyActivity) ProtoReflect() protoreflect.Message
- func (x *ProxyActivity) Reset()
- func (x *ProxyActivity) String() string
- type ReportingPeriod
- func (*ReportingPeriod) Descriptor() ([]byte, []int)deprecated
- func (x *ReportingPeriod) GetAccounts() []*AccountTotal
- func (x *ReportingPeriod) GetEndedAt() *timestamppb.Timestamp
- func (x *ReportingPeriod) GetKind() ReportingPeriodKind
- func (x *ReportingPeriod) GetStartedAt() *timestamppb.Timestamp
- func (x *ReportingPeriod) GetTaskUsage() *TaskUsageReport
- func (*ReportingPeriod) ProtoMessage()
- func (x *ReportingPeriod) ProtoReflect() protoreflect.Message
- func (x *ReportingPeriod) Reset()
- func (x *ReportingPeriod) String() string
- type ReportingPeriodKind
- func (ReportingPeriodKind) Descriptor() protoreflect.EnumDescriptor
- func (x ReportingPeriodKind) Enum() *ReportingPeriodKind
- func (ReportingPeriodKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReportingPeriodKind) Number() protoreflect.EnumNumber
- func (x ReportingPeriodKind) String() string
- func (ReportingPeriodKind) Type() protoreflect.EnumType
- type ResetKind
- type StoredReset
- func (*StoredReset) Descriptor() ([]byte, []int)deprecated
- func (x *StoredReset) GetCount() uint32
- func (x *StoredReset) GetExpiresAt() *timestamppb.Timestamp
- func (x *StoredReset) GetKind() ResetKind
- func (*StoredReset) ProtoMessage()
- func (x *StoredReset) ProtoReflect() protoreflect.Message
- func (x *StoredReset) Reset()
- func (x *StoredReset) String() string
- type TaskUsageReport
Constants ¶
This section is empty.
Variables ¶
var ( Provider_name = map[int32]string{ 0: "PROVIDER_UNSPECIFIED", 1: "PROVIDER_CHATGPT", 2: "PROVIDER_CLAUDE", } Provider_value = map[string]int32{ "PROVIDER_UNSPECIFIED": 0, "PROVIDER_CHATGPT": 1, "PROVIDER_CLAUDE": 2, } )
Enum value maps for Provider.
var ( AccountState_name = map[int32]string{ 0: "ACCOUNT_STATE_UNSPECIFIED", 1: "ACCOUNT_STATE_READY", 2: "ACCOUNT_STATE_LIMITED", 3: "ACCOUNT_STATE_SIGN_IN_REQUIRED", 4: "ACCOUNT_STATE_CREDENTIALS_UNAVAILABLE", 5: "ACCOUNT_STATE_USAGE_CHECK_FAILED", } AccountState_value = map[string]int32{ "ACCOUNT_STATE_UNSPECIFIED": 0, "ACCOUNT_STATE_READY": 1, "ACCOUNT_STATE_LIMITED": 2, "ACCOUNT_STATE_SIGN_IN_REQUIRED": 3, "ACCOUNT_STATE_CREDENTIALS_UNAVAILABLE": 4, "ACCOUNT_STATE_USAGE_CHECK_FAILED": 5, } )
Enum value maps for AccountState.
var ( ResetKind_name = map[int32]string{ 0: "RESET_KIND_UNSPECIFIED", 1: "RESET_KIND_WEEKLY", 2: "RESET_KIND_FIVE_HOUR", 3: "RESET_KIND_FULL", 4: "RESET_KIND_FABLE", } ResetKind_value = map[string]int32{ "RESET_KIND_UNSPECIFIED": 0, "RESET_KIND_WEEKLY": 1, "RESET_KIND_FIVE_HOUR": 2, "RESET_KIND_FULL": 3, "RESET_KIND_FABLE": 4, } )
Enum value maps for ResetKind.
var ( ReportingPeriodKind_name = map[int32]string{ 0: "REPORTING_PERIOD_UNSPECIFIED", 1: "REPORTING_PERIOD_TODAY", 2: "REPORTING_PERIOD_SEVEN_DAYS", 3: "REPORTING_PERIOD_THIRTY_DAYS", } ReportingPeriodKind_value = map[string]int32{ "REPORTING_PERIOD_UNSPECIFIED": 0, "REPORTING_PERIOD_TODAY": 1, "REPORTING_PERIOD_SEVEN_DAYS": 2, "REPORTING_PERIOD_THIRTY_DAYS": 3, } )
Enum value maps for ReportingPeriodKind.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
Plan string `protobuf:"bytes,3,opt,name=plan,proto3" json:"plan,omitempty"`
State AccountState `protobuf:"varint,4,opt,name=state,proto3,enum=codex_switch.menu.AccountState" json:"state,omitempty"`
Allowance *AllowanceObservation `protobuf:"bytes,5,opt,name=allowance,proto3" json:"allowance,omitempty"`
AccountNumber uint32 `protobuf:"varint,6,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
Usable bool `protobuf:"varint,7,opt,name=usable,proto3" json:"usable,omitempty"`
// usable. It holds no time: unavailable_until is when it ends, if known.
UnavailableReason string `protobuf:"bytes,8,opt,name=unavailable_reason,json=unavailableReason,proto3" json:"unavailable_reason,omitempty"`
// The account's plan offers the model Codex is configured to use, so it is
// part of the pool for current work even while its allowance is used up.
OffersConfiguredModel bool `` /* 127-byte string literal not displayed */
Provider Provider `protobuf:"varint,10,opt,name=provider,proto3,enum=codex_switch.menu.Provider" json:"provider,omitempty"`
// Why new work goes elsewhere while the account remains usable.
ReserveStatus string `protobuf:"bytes,11,opt,name=reserve_status,json=reserveStatus,proto3" json:"reserve_status,omitempty"`
// The account takes new work although its included allowance is used up:
// OpenAI draws its usage credits for it.
DrawsCredits bool `protobuf:"varint,13,opt,name=draws_credits,json=drawsCredits,proto3" json:"draws_credits,omitempty"`
// When a Claude sign-in ends and the account must sign in again. Anthropic
// sets it when the sign-in is approved; renewals do not move it.
SignInEndsAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=sign_in_ends_at,json=signInEndsAt,proto3" json:"sign_in_ends_at,omitempty"`
// contains filtered or unexported fields
}
func (*Account) Descriptor
deprecated
func (*Account) GetAccountNumber ¶
func (*Account) GetAllowance ¶
func (x *Account) GetAllowance() *AllowanceObservation
func (*Account) GetDrawsCredits ¶ added in v0.1.11
func (*Account) GetOffersConfiguredModel ¶
func (*Account) GetProvider ¶
func (*Account) GetReserveStatus ¶
func (*Account) GetSignInEndsAt ¶ added in v0.1.12
func (x *Account) GetSignInEndsAt() *timestamppb.Timestamp
func (*Account) GetState ¶
func (x *Account) GetState() AccountState
func (*Account) GetUnavailableReason ¶
func (*Account) GetUnavailableUntil ¶ added in v0.1.11
func (x *Account) GetUnavailableUntil() *timestamppb.Timestamp
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type AccountDay ¶
type AccountDay struct {
AccountKey string `protobuf:"bytes,1,opt,name=account_key,json=accountKey,proto3" json:"account_key,omitempty"`
StartedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
Tokens int64 `protobuf:"varint,3,opt,name=tokens,proto3" json:"tokens,omitempty"`
CostNanoUsd *int64 `protobuf:"varint,4,opt,name=cost_nano_usd,json=costNanoUsd,proto3,oneof" json:"cost_nano_usd,omitempty"`
// contains filtered or unexported fields
}
func (*AccountDay) Descriptor
deprecated
func (*AccountDay) Descriptor() ([]byte, []int)
Deprecated: Use AccountDay.ProtoReflect.Descriptor instead.
func (*AccountDay) GetAccountKey ¶
func (x *AccountDay) GetAccountKey() string
func (*AccountDay) GetCostNanoUsd ¶
func (x *AccountDay) GetCostNanoUsd() int64
func (*AccountDay) GetStartedAt ¶
func (x *AccountDay) GetStartedAt() *timestamppb.Timestamp
func (*AccountDay) GetTokens ¶
func (x *AccountDay) GetTokens() int64
func (*AccountDay) ProtoMessage ¶
func (*AccountDay) ProtoMessage()
func (*AccountDay) ProtoReflect ¶
func (x *AccountDay) ProtoReflect() protoreflect.Message
func (*AccountDay) Reset ¶
func (x *AccountDay) Reset()
func (*AccountDay) String ¶
func (x *AccountDay) String() string
type AccountState ¶
type AccountState int32
const ( AccountState_ACCOUNT_STATE_UNSPECIFIED AccountState = 0 AccountState_ACCOUNT_STATE_READY AccountState = 1 AccountState_ACCOUNT_STATE_LIMITED AccountState = 2 AccountState_ACCOUNT_STATE_SIGN_IN_REQUIRED AccountState = 3 AccountState_ACCOUNT_STATE_CREDENTIALS_UNAVAILABLE AccountState = 4 AccountState_ACCOUNT_STATE_USAGE_CHECK_FAILED AccountState = 5 )
func (AccountState) Descriptor ¶
func (AccountState) Descriptor() protoreflect.EnumDescriptor
func (AccountState) Enum ¶
func (x AccountState) Enum() *AccountState
func (AccountState) EnumDescriptor
deprecated
func (AccountState) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccountState.Descriptor instead.
func (AccountState) Number ¶
func (x AccountState) Number() protoreflect.EnumNumber
func (AccountState) String ¶
func (x AccountState) String() string
func (AccountState) Type ¶
func (AccountState) Type() protoreflect.EnumType
type AccountTotal ¶
type AccountTotal struct {
AccountKey string `protobuf:"bytes,1,opt,name=account_key,json=accountKey,proto3" json:"account_key,omitempty"`
Tokens int64 `protobuf:"varint,2,opt,name=tokens,proto3" json:"tokens,omitempty"`
CostNanoUsd *int64 `protobuf:"varint,3,opt,name=cost_nano_usd,json=costNanoUsd,proto3,oneof" json:"cost_nano_usd,omitempty"`
// contains filtered or unexported fields
}
func (*AccountTotal) Descriptor
deprecated
func (*AccountTotal) Descriptor() ([]byte, []int)
Deprecated: Use AccountTotal.ProtoReflect.Descriptor instead.
func (*AccountTotal) GetAccountKey ¶
func (x *AccountTotal) GetAccountKey() string
func (*AccountTotal) GetCostNanoUsd ¶
func (x *AccountTotal) GetCostNanoUsd() int64
func (*AccountTotal) GetTokens ¶
func (x *AccountTotal) GetTokens() int64
func (*AccountTotal) ProtoMessage ¶
func (*AccountTotal) ProtoMessage()
func (*AccountTotal) ProtoReflect ¶
func (x *AccountTotal) ProtoReflect() protoreflect.Message
func (*AccountTotal) Reset ¶
func (x *AccountTotal) Reset()
func (*AccountTotal) String ¶
func (x *AccountTotal) String() string
type AllowanceObservation ¶
type AllowanceObservation struct {
ObservedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=observed_at,json=observedAt,proto3" json:"observed_at,omitempty"`
Allowed bool `protobuf:"varint,2,opt,name=allowed,proto3" json:"allowed,omitempty"`
LimitReached bool `protobuf:"varint,3,opt,name=limit_reached,json=limitReached,proto3" json:"limit_reached,omitempty"`
Windows []*AllowanceWindow `protobuf:"bytes,4,rep,name=windows,proto3" json:"windows,omitempty"`
// How many resets the account holds; absent when the provider has not said.
// It is above zero with stored_resets empty when only the number is known:
// the provider's list is unread or older than its count, or the proxy
// serving the snapshot is a build that sends no list.
AvailableResetCredits *uint32 `` /* 133-byte string literal not displayed */
// The usage credit balance, which OpenAI draws once the included allowance
// is used up; absent when OpenAI reports none.
CreditBalance *float64 `protobuf:"fixed64,6,opt,name=credit_balance,json=creditBalance,proto3,oneof" json:"credit_balance,omitempty"`
// The resets the account holds, soonest expiry first, when the provider's
// list of them is known.
StoredResets []*StoredReset `protobuf:"bytes,7,rep,name=stored_resets,json=storedResets,proto3" json:"stored_resets,omitempty"`
// contains filtered or unexported fields
}
func (*AllowanceObservation) Descriptor
deprecated
func (*AllowanceObservation) Descriptor() ([]byte, []int)
Deprecated: Use AllowanceObservation.ProtoReflect.Descriptor instead.
func (*AllowanceObservation) GetAllowed ¶
func (x *AllowanceObservation) GetAllowed() bool
func (*AllowanceObservation) GetAvailableResetCredits ¶
func (x *AllowanceObservation) GetAvailableResetCredits() uint32
func (*AllowanceObservation) GetCreditBalance ¶ added in v0.1.11
func (x *AllowanceObservation) GetCreditBalance() float64
func (*AllowanceObservation) GetLimitReached ¶
func (x *AllowanceObservation) GetLimitReached() bool
func (*AllowanceObservation) GetObservedAt ¶
func (x *AllowanceObservation) GetObservedAt() *timestamppb.Timestamp
func (*AllowanceObservation) GetStoredResets ¶ added in v0.1.11
func (x *AllowanceObservation) GetStoredResets() []*StoredReset
func (*AllowanceObservation) GetWindows ¶
func (x *AllowanceObservation) GetWindows() []*AllowanceWindow
func (*AllowanceObservation) ProtoMessage ¶
func (*AllowanceObservation) ProtoMessage()
func (*AllowanceObservation) ProtoReflect ¶
func (x *AllowanceObservation) ProtoReflect() protoreflect.Message
func (*AllowanceObservation) Reset ¶
func (x *AllowanceObservation) Reset()
func (*AllowanceObservation) String ¶
func (x *AllowanceObservation) String() string
type AllowanceWindow ¶
type AllowanceWindow struct {
PeriodSeconds int64 `protobuf:"varint,1,opt,name=period_seconds,json=periodSeconds,proto3" json:"period_seconds,omitempty"`
UsedPercent float64 `protobuf:"fixed64,2,opt,name=used_percent,json=usedPercent,proto3" json:"used_percent,omitempty"`
ResetAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=reset_at,json=resetAt,proto3" json:"reset_at,omitempty"`
// Empty for a window shared by all models.
ModelId string `protobuf:"bytes,4,opt,name=model_id,json=modelId,proto3" json:"model_id,omitempty"`
ModelName string `protobuf:"bytes,5,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"`
// contains filtered or unexported fields
}
func (*AllowanceWindow) Descriptor
deprecated
func (*AllowanceWindow) Descriptor() ([]byte, []int)
Deprecated: Use AllowanceWindow.ProtoReflect.Descriptor instead.
func (*AllowanceWindow) GetModelId ¶
func (x *AllowanceWindow) GetModelId() string
func (*AllowanceWindow) GetModelName ¶
func (x *AllowanceWindow) GetModelName() string
func (*AllowanceWindow) GetPeriodSeconds ¶
func (x *AllowanceWindow) GetPeriodSeconds() int64
func (*AllowanceWindow) GetResetAt ¶
func (x *AllowanceWindow) GetResetAt() *timestamppb.Timestamp
func (*AllowanceWindow) GetUsedPercent ¶
func (x *AllowanceWindow) GetUsedPercent() float64
func (*AllowanceWindow) ProtoMessage ¶
func (*AllowanceWindow) ProtoMessage()
func (*AllowanceWindow) ProtoReflect ¶
func (x *AllowanceWindow) ProtoReflect() protoreflect.Message
func (*AllowanceWindow) Reset ¶
func (x *AllowanceWindow) Reset()
func (*AllowanceWindow) String ¶
func (x *AllowanceWindow) String() string
type CompletedTask ¶
type CompletedTask struct {
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
AccountKeys []string `protobuf:"bytes,2,rep,name=account_keys,json=accountKeys,proto3" json:"account_keys,omitempty"`
Title *string `protobuf:"bytes,3,opt,name=title,proto3,oneof" json:"title,omitempty"`
LastCompletedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_completed_at,json=lastCompletedAt,proto3" json:"last_completed_at,omitempty"`
Tokens *int64 `protobuf:"varint,5,opt,name=tokens,proto3,oneof" json:"tokens,omitempty"`
CostNanoUsd *int64 `protobuf:"varint,6,opt,name=cost_nano_usd,json=costNanoUsd,proto3,oneof" json:"cost_nano_usd,omitempty"`
// contains filtered or unexported fields
}
func (*CompletedTask) Descriptor
deprecated
func (*CompletedTask) Descriptor() ([]byte, []int)
Deprecated: Use CompletedTask.ProtoReflect.Descriptor instead.
func (*CompletedTask) GetAccountKeys ¶
func (x *CompletedTask) GetAccountKeys() []string
func (*CompletedTask) GetCostNanoUsd ¶
func (x *CompletedTask) GetCostNanoUsd() int64
func (*CompletedTask) GetLastCompletedAt ¶
func (x *CompletedTask) GetLastCompletedAt() *timestamppb.Timestamp
func (*CompletedTask) GetTaskId ¶
func (x *CompletedTask) GetTaskId() string
func (*CompletedTask) GetTitle ¶
func (x *CompletedTask) GetTitle() string
func (*CompletedTask) GetTokens ¶
func (x *CompletedTask) GetTokens() int64
func (*CompletedTask) ProtoMessage ¶
func (*CompletedTask) ProtoMessage()
func (*CompletedTask) ProtoReflect ¶
func (x *CompletedTask) ProtoReflect() protoreflect.Message
func (*CompletedTask) Reset ¶
func (x *CompletedTask) Reset()
func (*CompletedTask) String ¶
func (x *CompletedTask) String() string
type Connection ¶
type Connection struct {
NewTasksConfigured bool `protobuf:"varint,1,opt,name=new_tasks_configured,json=newTasksConfigured,proto3" json:"new_tasks_configured,omitempty"`
// contains filtered or unexported fields
}
func (*Connection) Descriptor
deprecated
func (*Connection) Descriptor() ([]byte, []int)
Deprecated: Use Connection.ProtoReflect.Descriptor instead.
func (*Connection) GetNewTasksConfigured ¶
func (x *Connection) GetNewTasksConfigured() bool
func (*Connection) ProtoMessage ¶
func (*Connection) ProtoMessage()
func (*Connection) ProtoReflect ¶
func (x *Connection) ProtoReflect() protoreflect.Message
func (*Connection) Reset ¶
func (x *Connection) Reset()
func (*Connection) String ¶
func (x *Connection) String() string
type MenuSnapshot ¶
type MenuSnapshot struct {
GeneratedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=generated_at,json=generatedAt,proto3" json:"generated_at,omitempty"`
Accounts []*Account `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"`
Connection *Connection `protobuf:"bytes,4,opt,name=connection,proto3" json:"connection,omitempty"`
ReportingPeriods []*ReportingPeriod `protobuf:"bytes,5,rep,name=reporting_periods,json=reportingPeriods,proto3" json:"reporting_periods,omitempty"`
ProxyActivity *ProxyActivity `protobuf:"bytes,6,opt,name=proxy_activity,json=proxyActivity,proto3" json:"proxy_activity,omitempty"`
// Each account's usage per UTC date for the last 30 days, oldest first.
AccountDays []*AccountDay `protobuf:"bytes,7,rep,name=account_days,json=accountDays,proto3" json:"account_days,omitempty"`
ProviderBurns []*ProviderBurn `protobuf:"bytes,8,rep,name=provider_burns,json=providerBurns,proto3" json:"provider_burns,omitempty"`
// contains filtered or unexported fields
}
func (*MenuSnapshot) Descriptor
deprecated
func (*MenuSnapshot) Descriptor() ([]byte, []int)
Deprecated: Use MenuSnapshot.ProtoReflect.Descriptor instead.
func (*MenuSnapshot) GetAccountDays ¶
func (x *MenuSnapshot) GetAccountDays() []*AccountDay
func (*MenuSnapshot) GetAccounts ¶
func (x *MenuSnapshot) GetAccounts() []*Account
func (*MenuSnapshot) GetConnection ¶
func (x *MenuSnapshot) GetConnection() *Connection
func (*MenuSnapshot) GetGeneratedAt ¶
func (x *MenuSnapshot) GetGeneratedAt() *timestamppb.Timestamp
func (*MenuSnapshot) GetProviderBurns ¶ added in v0.1.1
func (x *MenuSnapshot) GetProviderBurns() []*ProviderBurn
func (*MenuSnapshot) GetProxyActivity ¶
func (x *MenuSnapshot) GetProxyActivity() *ProxyActivity
func (*MenuSnapshot) GetReportingPeriods ¶
func (x *MenuSnapshot) GetReportingPeriods() []*ReportingPeriod
func (*MenuSnapshot) ProtoMessage ¶
func (*MenuSnapshot) ProtoMessage()
func (*MenuSnapshot) ProtoReflect ¶
func (x *MenuSnapshot) ProtoReflect() protoreflect.Message
func (*MenuSnapshot) Reset ¶
func (x *MenuSnapshot) Reset()
func (*MenuSnapshot) String ¶
func (x *MenuSnapshot) String() string
type ModelRequestCounts ¶
type ModelRequestCounts struct {
Requests int64 `protobuf:"varint,1,opt,name=requests,proto3" json:"requests,omitempty"`
Successful int64 `protobuf:"varint,2,opt,name=successful,proto3" json:"successful,omitempty"`
Failed int64 `protobuf:"varint,3,opt,name=failed,proto3" json:"failed,omitempty"`
Interrupted int64 `protobuf:"varint,4,opt,name=interrupted,proto3" json:"interrupted,omitempty"`
// contains filtered or unexported fields
}
func (*ModelRequestCounts) Descriptor
deprecated
func (*ModelRequestCounts) Descriptor() ([]byte, []int)
Deprecated: Use ModelRequestCounts.ProtoReflect.Descriptor instead.
func (*ModelRequestCounts) GetFailed ¶
func (x *ModelRequestCounts) GetFailed() int64
func (*ModelRequestCounts) GetInterrupted ¶
func (x *ModelRequestCounts) GetInterrupted() int64
func (*ModelRequestCounts) GetRequests ¶
func (x *ModelRequestCounts) GetRequests() int64
func (*ModelRequestCounts) GetSuccessful ¶
func (x *ModelRequestCounts) GetSuccessful() int64
func (*ModelRequestCounts) ProtoMessage ¶
func (*ModelRequestCounts) ProtoMessage()
func (*ModelRequestCounts) ProtoReflect ¶
func (x *ModelRequestCounts) ProtoReflect() protoreflect.Message
func (*ModelRequestCounts) Reset ¶
func (x *ModelRequestCounts) Reset()
func (*ModelRequestCounts) String ¶
func (x *ModelRequestCounts) String() string
type Provider ¶
type Provider int32
func (Provider) Descriptor ¶
func (Provider) Descriptor() protoreflect.EnumDescriptor
func (Provider) EnumDescriptor
deprecated
func (Provider) Number ¶
func (x Provider) Number() protoreflect.EnumNumber
func (Provider) Type ¶
func (Provider) Type() protoreflect.EnumType
type ProviderBurn ¶ added in v0.1.1
type ProviderBurn struct {
Provider Provider `protobuf:"varint,1,opt,name=provider,proto3,enum=codex_switch.menu.Provider" json:"provider,omitempty"`
AccountsPerWeek float64 `protobuf:"fixed64,2,opt,name=accounts_per_week,json=accountsPerWeek,proto3" json:"accounts_per_week,omitempty"`
// contains filtered or unexported fields
}
func (*ProviderBurn) Descriptor
deprecated
added in
v0.1.1
func (*ProviderBurn) Descriptor() ([]byte, []int)
Deprecated: Use ProviderBurn.ProtoReflect.Descriptor instead.
func (*ProviderBurn) GetAccountsPerWeek ¶ added in v0.1.1
func (x *ProviderBurn) GetAccountsPerWeek() float64
func (*ProviderBurn) GetProvider ¶ added in v0.1.1
func (x *ProviderBurn) GetProvider() Provider
func (*ProviderBurn) ProtoMessage ¶ added in v0.1.1
func (*ProviderBurn) ProtoMessage()
func (*ProviderBurn) ProtoReflect ¶ added in v0.1.1
func (x *ProviderBurn) ProtoReflect() protoreflect.Message
func (*ProviderBurn) Reset ¶ added in v0.1.1
func (x *ProviderBurn) Reset()
func (*ProviderBurn) String ¶ added in v0.1.1
func (x *ProviderBurn) String() string
type ProxyAccountActivity ¶
type ProxyAccountActivity struct {
AccountKey string `protobuf:"bytes,1,opt,name=account_key,json=accountKey,proto3" json:"account_key,omitempty"`
CompletedResponses int64 `protobuf:"varint,2,opt,name=completed_responses,json=completedResponses,proto3" json:"completed_responses,omitempty"`
Tokens int64 `protobuf:"varint,3,opt,name=tokens,proto3" json:"tokens,omitempty"`
RequestCounts *ModelRequestCounts `protobuf:"bytes,4,opt,name=request_counts,json=requestCounts,proto3" json:"request_counts,omitempty"`
// contains filtered or unexported fields
}
func (*ProxyAccountActivity) Descriptor
deprecated
func (*ProxyAccountActivity) Descriptor() ([]byte, []int)
Deprecated: Use ProxyAccountActivity.ProtoReflect.Descriptor instead.
func (*ProxyAccountActivity) GetAccountKey ¶
func (x *ProxyAccountActivity) GetAccountKey() string
func (*ProxyAccountActivity) GetCompletedResponses ¶
func (x *ProxyAccountActivity) GetCompletedResponses() int64
func (*ProxyAccountActivity) GetRequestCounts ¶
func (x *ProxyAccountActivity) GetRequestCounts() *ModelRequestCounts
func (*ProxyAccountActivity) GetTokens ¶
func (x *ProxyAccountActivity) GetTokens() int64
func (*ProxyAccountActivity) ProtoMessage ¶
func (*ProxyAccountActivity) ProtoMessage()
func (*ProxyAccountActivity) ProtoReflect ¶
func (x *ProxyAccountActivity) ProtoReflect() protoreflect.Message
func (*ProxyAccountActivity) Reset ¶
func (x *ProxyAccountActivity) Reset()
func (*ProxyAccountActivity) String ¶
func (x *ProxyAccountActivity) String() string
type ProxyActivity ¶
type ProxyActivity struct {
StartedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
EndedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"`
Accounts []*ProxyAccountActivity `protobuf:"bytes,3,rep,name=accounts,proto3" json:"accounts,omitempty"`
Tasks []*CompletedTask `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"`
RequestsStartedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=requests_started_at,json=requestsStartedAt,proto3" json:"requests_started_at,omitempty"`
// contains filtered or unexported fields
}
func (*ProxyActivity) Descriptor
deprecated
func (*ProxyActivity) Descriptor() ([]byte, []int)
Deprecated: Use ProxyActivity.ProtoReflect.Descriptor instead.
func (*ProxyActivity) GetAccounts ¶
func (x *ProxyActivity) GetAccounts() []*ProxyAccountActivity
func (*ProxyActivity) GetEndedAt ¶
func (x *ProxyActivity) GetEndedAt() *timestamppb.Timestamp
func (*ProxyActivity) GetRequestsStartedAt ¶
func (x *ProxyActivity) GetRequestsStartedAt() *timestamppb.Timestamp
func (*ProxyActivity) GetStartedAt ¶
func (x *ProxyActivity) GetStartedAt() *timestamppb.Timestamp
func (*ProxyActivity) GetTasks ¶
func (x *ProxyActivity) GetTasks() []*CompletedTask
func (*ProxyActivity) ProtoMessage ¶
func (*ProxyActivity) ProtoMessage()
func (*ProxyActivity) ProtoReflect ¶
func (x *ProxyActivity) ProtoReflect() protoreflect.Message
func (*ProxyActivity) Reset ¶
func (x *ProxyActivity) Reset()
func (*ProxyActivity) String ¶
func (x *ProxyActivity) String() string
type ReportingPeriod ¶
type ReportingPeriod struct {
Kind ReportingPeriodKind `protobuf:"varint,1,opt,name=kind,proto3,enum=codex_switch.menu.ReportingPeriodKind" json:"kind,omitempty"`
StartedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
EndedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"`
Accounts []*AccountTotal `protobuf:"bytes,4,rep,name=accounts,proto3" json:"accounts,omitempty"`
TaskUsage *TaskUsageReport `protobuf:"bytes,5,opt,name=task_usage,json=taskUsage,proto3" json:"task_usage,omitempty"`
// contains filtered or unexported fields
}
func (*ReportingPeriod) Descriptor
deprecated
func (*ReportingPeriod) Descriptor() ([]byte, []int)
Deprecated: Use ReportingPeriod.ProtoReflect.Descriptor instead.
func (*ReportingPeriod) GetAccounts ¶
func (x *ReportingPeriod) GetAccounts() []*AccountTotal
func (*ReportingPeriod) GetEndedAt ¶
func (x *ReportingPeriod) GetEndedAt() *timestamppb.Timestamp
func (*ReportingPeriod) GetKind ¶
func (x *ReportingPeriod) GetKind() ReportingPeriodKind
func (*ReportingPeriod) GetStartedAt ¶
func (x *ReportingPeriod) GetStartedAt() *timestamppb.Timestamp
func (*ReportingPeriod) GetTaskUsage ¶
func (x *ReportingPeriod) GetTaskUsage() *TaskUsageReport
func (*ReportingPeriod) ProtoMessage ¶
func (*ReportingPeriod) ProtoMessage()
func (*ReportingPeriod) ProtoReflect ¶
func (x *ReportingPeriod) ProtoReflect() protoreflect.Message
func (*ReportingPeriod) Reset ¶
func (x *ReportingPeriod) Reset()
func (*ReportingPeriod) String ¶
func (x *ReportingPeriod) String() string
type ReportingPeriodKind ¶
type ReportingPeriodKind int32
const ( ReportingPeriodKind_REPORTING_PERIOD_UNSPECIFIED ReportingPeriodKind = 0 ReportingPeriodKind_REPORTING_PERIOD_TODAY ReportingPeriodKind = 1 ReportingPeriodKind_REPORTING_PERIOD_SEVEN_DAYS ReportingPeriodKind = 2 ReportingPeriodKind_REPORTING_PERIOD_THIRTY_DAYS ReportingPeriodKind = 3 )
func (ReportingPeriodKind) Descriptor ¶
func (ReportingPeriodKind) Descriptor() protoreflect.EnumDescriptor
func (ReportingPeriodKind) Enum ¶
func (x ReportingPeriodKind) Enum() *ReportingPeriodKind
func (ReportingPeriodKind) EnumDescriptor
deprecated
func (ReportingPeriodKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReportingPeriodKind.Descriptor instead.
func (ReportingPeriodKind) Number ¶
func (x ReportingPeriodKind) Number() protoreflect.EnumNumber
func (ReportingPeriodKind) String ¶
func (x ReportingPeriodKind) String() string
func (ReportingPeriodKind) Type ¶
func (ReportingPeriodKind) Type() protoreflect.EnumType
type ResetKind ¶ added in v0.1.11
type ResetKind int32
What a stored reset gives back when it is spent.
const ( // A kind the provider names in no way this build knows. ResetKind_RESET_KIND_UNSPECIFIED ResetKind = 0 // The weekly allowance for every model. ResetKind_RESET_KIND_WEEKLY ResetKind = 1 // The five-hour allowance. ResetKind_RESET_KIND_FIVE_HOUR ResetKind = 2 // The five-hour and weekly allowances. ResetKind_RESET_KIND_FULL ResetKind = 3 // What Fable models used of the week: the Fable allowance is full again and // the weekly allowance regains that share. The week keeps its reset time. ResetKind_RESET_KIND_FABLE ResetKind = 4 )
func (ResetKind) Descriptor ¶ added in v0.1.11
func (ResetKind) Descriptor() protoreflect.EnumDescriptor
func (ResetKind) EnumDescriptor
deprecated
added in
v0.1.11
func (ResetKind) Number ¶ added in v0.1.11
func (x ResetKind) Number() protoreflect.EnumNumber
func (ResetKind) Type ¶ added in v0.1.11
func (ResetKind) Type() protoreflect.EnumType
type StoredReset ¶ added in v0.1.11
type StoredReset struct {
Kind ResetKind `protobuf:"varint,1,opt,name=kind,proto3,enum=codex_switch.menu.ResetKind" json:"kind,omitempty"`
Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// Absent when the provider states no expiry.
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
// contains filtered or unexported fields
}
Resets of one kind that an account holds and that expire together.
func (*StoredReset) Descriptor
deprecated
added in
v0.1.11
func (*StoredReset) Descriptor() ([]byte, []int)
Deprecated: Use StoredReset.ProtoReflect.Descriptor instead.
func (*StoredReset) GetCount ¶ added in v0.1.11
func (x *StoredReset) GetCount() uint32
func (*StoredReset) GetExpiresAt ¶ added in v0.1.11
func (x *StoredReset) GetExpiresAt() *timestamppb.Timestamp
func (*StoredReset) GetKind ¶ added in v0.1.11
func (x *StoredReset) GetKind() ResetKind
func (*StoredReset) ProtoMessage ¶ added in v0.1.11
func (*StoredReset) ProtoMessage()
func (*StoredReset) ProtoReflect ¶ added in v0.1.11
func (x *StoredReset) ProtoReflect() protoreflect.Message
func (*StoredReset) Reset ¶ added in v0.1.11
func (x *StoredReset) Reset()
func (*StoredReset) String ¶ added in v0.1.11
func (x *StoredReset) String() string
type TaskUsageReport ¶
type TaskUsageReport struct {
Tasks []*CompletedTask `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"`
// contains filtered or unexported fields
}
func (*TaskUsageReport) Descriptor
deprecated
func (*TaskUsageReport) Descriptor() ([]byte, []int)
Deprecated: Use TaskUsageReport.ProtoReflect.Descriptor instead.
func (*TaskUsageReport) GetTasks ¶
func (x *TaskUsageReport) GetTasks() []*CompletedTask
func (*TaskUsageReport) ProtoMessage ¶
func (*TaskUsageReport) ProtoMessage()
func (*TaskUsageReport) ProtoReflect ¶
func (x *TaskUsageReport) ProtoReflect() protoreflect.Message
func (*TaskUsageReport) Reset ¶
func (x *TaskUsageReport) Reset()
func (*TaskUsageReport) String ¶
func (x *TaskUsageReport) String() string