Documentation ¶
Index ¶
- Variables
- type APIKey
- func (*APIKey) Descriptor() ([]byte, []int)deprecated
- func (x *APIKey) GetCreatedAt() *timestamppb.Timestamp
- func (x *APIKey) GetFull() string
- func (x *APIKey) GetId() string
- func (x *APIKey) GetName() string
- func (x *APIKey) GetPartial() string
- func (m *APIKey) GetToken() isAPIKey_Token
- func (*APIKey) ProtoMessage()
- func (x *APIKey) ProtoReflect() protoreflect.Message
- func (x *APIKey) Reset()
- func (x *APIKey) String() string
- type APIKey_Full
- type APIKey_Partial
- type AuthorizedUserRequest
- type AuthorizedUserResponse
- func (*AuthorizedUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizedUserResponse) GetUser() *User
- func (*AuthorizedUserResponse) ProtoMessage()
- func (x *AuthorizedUserResponse) ProtoReflect() protoreflect.Message
- func (x *AuthorizedUserResponse) Reset()
- func (x *AuthorizedUserResponse) String() string
- type CreateAPIKeyRequest
- func (*CreateAPIKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAPIKeyRequest) GetName() string
- func (*CreateAPIKeyRequest) ProtoMessage()
- func (x *CreateAPIKeyRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAPIKeyRequest) Reset()
- func (x *CreateAPIKeyRequest) String() string
- type CreateAPIKeyResponse
- func (*CreateAPIKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAPIKeyResponse) GetKey() *APIKey
- func (*CreateAPIKeyResponse) ProtoMessage()
- func (x *CreateAPIKeyResponse) ProtoReflect() protoreflect.Message
- func (x *CreateAPIKeyResponse) Reset()
- func (x *CreateAPIKeyResponse) String() string
- type DeleteAPIKeyRequest
- func (*DeleteAPIKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAPIKeyRequest) GetId() string
- func (*DeleteAPIKeyRequest) ProtoMessage()
- func (x *DeleteAPIKeyRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteAPIKeyRequest) Reset()
- func (x *DeleteAPIKeyRequest) String() string
- type DeleteAPIKeyResponse
- type Group
- type GroupProfile
- func (*GroupProfile) Descriptor() ([]byte, []int)deprecated
- func (x *GroupProfile) GetId() string
- func (x *GroupProfile) GetName() string
- func (*GroupProfile) ProtoMessage()
- func (x *GroupProfile) ProtoReflect() protoreflect.Message
- func (x *GroupProfile) Reset()
- func (x *GroupProfile) String() string
- type ListAPIKeysRequest
- type ListAPIKeysResponse
- func (*ListAPIKeysResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAPIKeysResponse) GetKeys() []*APIKey
- func (*ListAPIKeysResponse) ProtoMessage()
- func (x *ListAPIKeysResponse) ProtoReflect() protoreflect.Message
- func (x *ListAPIKeysResponse) Reset()
- func (x *ListAPIKeysResponse) String() string
- type OAuthLink
- func (*OAuthLink) Descriptor() ([]byte, []int)deprecated
- func (x *OAuthLink) GetAccessToken() string
- func (x *OAuthLink) GetCreatedAt() *timestamppb.Timestamp
- func (x *OAuthLink) GetId() string
- func (x *OAuthLink) GetProvider() OAuthProvider
- func (*OAuthLink) ProtoMessage()
- func (x *OAuthLink) ProtoReflect() protoreflect.Message
- func (x *OAuthLink) Reset()
- func (x *OAuthLink) String() string
- type OAuthLinkRequest
- func (*OAuthLinkRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OAuthLinkRequest) GetProvider() OAuthProvider
- func (x *OAuthLinkRequest) GetRedirectUrl() string
- func (*OAuthLinkRequest) ProtoMessage()
- func (x *OAuthLinkRequest) ProtoReflect() protoreflect.Message
- func (x *OAuthLinkRequest) Reset()
- func (x *OAuthLinkRequest) String() string
- type OAuthLinkResponse
- func (*OAuthLinkResponse) Descriptor() ([]byte, []int)deprecated
- func (m *OAuthLinkResponse) GetResponse() isOAuthLinkResponse_Response
- func (x *OAuthLinkResponse) GetSetupUrl() string
- func (x *OAuthLinkResponse) GetState() *OAuthLink
- func (*OAuthLinkResponse) ProtoMessage()
- func (x *OAuthLinkResponse) ProtoReflect() protoreflect.Message
- func (x *OAuthLinkResponse) Reset()
- func (x *OAuthLinkResponse) String() string
- type OAuthLinkResponse_SetupUrl
- type OAuthLinkResponse_State
- type OAuthProvider
- func (OAuthProvider) Descriptor() protoreflect.EnumDescriptor
- func (x OAuthProvider) Enum() *OAuthProvider
- func (OAuthProvider) EnumDescriptor() ([]byte, []int)deprecated
- func (x OAuthProvider) Number() protoreflect.EnumNumber
- func (x OAuthProvider) String() string
- func (OAuthProvider) Type() protoreflect.EnumType
- type SubscriptionPlan
- func (SubscriptionPlan) Descriptor() protoreflect.EnumDescriptor
- func (x SubscriptionPlan) Enum() *SubscriptionPlan
- func (SubscriptionPlan) EnumDescriptor() ([]byte, []int)deprecated
- func (x SubscriptionPlan) Number() protoreflect.EnumNumber
- func (x SubscriptionPlan) String() string
- func (SubscriptionPlan) Type() protoreflect.EnumType
- type UpdateSubscriptionRequest
- func (*UpdateSubscriptionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSubscriptionRequest) GetForceBillingPortal() bool
- func (x *UpdateSubscriptionRequest) GetPlan() SubscriptionPlan
- func (x *UpdateSubscriptionRequest) GetRedirectUrl() string
- func (x *UpdateSubscriptionRequest) GetUsageAddon() bool
- func (*UpdateSubscriptionRequest) ProtoMessage()
- func (x *UpdateSubscriptionRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSubscriptionRequest) Reset()
- func (x *UpdateSubscriptionRequest) String() string
- type UpdateSubscriptionResponse
- func (*UpdateSubscriptionResponse) Descriptor() ([]byte, []int)deprecated
- func (m *UpdateSubscriptionResponse) GetAction() isUpdateSubscriptionResponse_Action
- func (x *UpdateSubscriptionResponse) GetBillingPortalUrl() string
- func (x *UpdateSubscriptionResponse) GetCheckoutUrl() string
- func (x *UpdateSubscriptionResponse) GetNone() *UpdateSubscriptionResponse_None
- func (*UpdateSubscriptionResponse) ProtoMessage()
- func (x *UpdateSubscriptionResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateSubscriptionResponse) Reset()
- func (x *UpdateSubscriptionResponse) String() string
- type UpdateSubscriptionResponse_BillingPortalUrl
- type UpdateSubscriptionResponse_CheckoutUrl
- type UpdateSubscriptionResponse_None
- func (*UpdateSubscriptionResponse_None) Descriptor() ([]byte, []int)deprecated
- func (*UpdateSubscriptionResponse_None) ProtoMessage()
- func (x *UpdateSubscriptionResponse_None) ProtoReflect() protoreflect.Message
- func (x *UpdateSubscriptionResponse_None) Reset()
- func (x *UpdateSubscriptionResponse_None) String() string
- type UpdateSubscriptionResponse_None_
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetDeveloper() bool
- func (x *UpdateUserRequest) GetFirstName() string
- func (x *UpdateUserRequest) GetLastName() string
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type UpdateUserResponse
- type UsageRecordKind
- func (UsageRecordKind) Descriptor() protoreflect.EnumDescriptor
- func (x UsageRecordKind) Enum() *UsageRecordKind
- func (UsageRecordKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x UsageRecordKind) Number() protoreflect.EnumNumber
- func (x UsageRecordKind) String() string
- func (UsageRecordKind) Type() protoreflect.EnumType
- type UsageRequest
- type UsageResponse
- type UsageResponse_Record
- func (*UsageResponse_Record) Descriptor() ([]byte, []int)deprecated
- func (x *UsageResponse_Record) GetAccumulatedCents() int64
- func (x *UsageResponse_Record) GetCurrentValue() int64
- func (x *UsageResponse_Record) GetKind() UsageRecordKind
- func (*UsageResponse_Record) ProtoMessage()
- func (x *UsageResponse_Record) ProtoReflect() protoreflect.Message
- func (x *UsageResponse_Record) Reset()
- func (x *UsageResponse_Record) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetCreatedAt() *timestamppb.Timestamp
- func (x *User) GetDeveloper() bool
- func (x *User) GetProfile() *UserProfile
- func (x *User) GetSubscriptionPlan() SubscriptionPlan
- func (x *User) GetUsageAddon() bool
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserProfile
- func (*UserProfile) Descriptor() ([]byte, []int)deprecated
- func (x *UserProfile) GetEmailAddress() string
- func (x *UserProfile) GetFirstName() string
- func (x *UserProfile) GetId() string
- func (x *UserProfile) GetLastName() string
- func (*UserProfile) ProtoMessage()
- func (x *UserProfile) ProtoReflect() protoreflect.Message
- func (x *UserProfile) Reset()
- func (x *UserProfile) String() string
Constants ¶
This section is empty.
Variables ¶
var ( SubscriptionPlan_name = map[int32]string{ 0: "SUBSCRIPTION_PLAN_UNSPECIFIED", 1: "SUBSCRIPTION_PLAN_FREE", 2: "SUBSCRIPTION_PLAN_PRO", } SubscriptionPlan_value = map[string]int32{ "SUBSCRIPTION_PLAN_UNSPECIFIED": 0, "SUBSCRIPTION_PLAN_FREE": 1, "SUBSCRIPTION_PLAN_PRO": 2, } )
Enum value maps for SubscriptionPlan.
var ( OAuthProvider_name = map[int32]string{ 0: "O_AUTH_PROVIDER_UNSPECIFIED", 1: "O_AUTH_PROVIDER_GITHUB", } OAuthProvider_value = map[string]int32{ "O_AUTH_PROVIDER_UNSPECIFIED": 0, "O_AUTH_PROVIDER_GITHUB": 1, } )
Enum value maps for OAuthProvider.
var ( UsageRecordKind_name = map[int32]string{ 0: "USAGE_RECORD_KIND_UNSPECIFIED", 1: "USAGE_RECORD_KIND_RAW_STORAGE_BYTES", 2: "USAGE_RECORD_KIND_INDEX_STORAGE_BYTES", 3: "USAGE_RECORD_KIND_SEARCH_QUERIES", 4: "USAGE_RECORD_KIND_CONVERSE", } UsageRecordKind_value = map[string]int32{ "USAGE_RECORD_KIND_UNSPECIFIED": 0, "USAGE_RECORD_KIND_RAW_STORAGE_BYTES": 1, "USAGE_RECORD_KIND_INDEX_STORAGE_BYTES": 2, "USAGE_RECORD_KIND_SEARCH_QUERIES": 3, "USAGE_RECORD_KIND_CONVERSE": 4, } )
Enum value maps for UsageRecordKind.
var File_tenant_v1_tenant_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
type APIKey struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Types that are assignable to Token: // *APIKey_Full // *APIKey_Partial Token isAPIKey_Token `protobuf_oneof:"token"` // contains filtered or unexported fields }
APIKey is an API key for a user.
func (*APIKey) Descriptor
deprecated
func (*APIKey) GetCreatedAt ¶
func (x *APIKey) GetCreatedAt() *timestamppb.Timestamp
func (*APIKey) GetPartial ¶
func (*APIKey) ProtoMessage ¶
func (*APIKey) ProtoMessage()
func (*APIKey) ProtoReflect ¶
func (x *APIKey) ProtoReflect() protoreflect.Message
type APIKey_Full ¶
type APIKey_Full struct {
Full string `protobuf:"bytes,4,opt,name=full,proto3,oneof"`
}
type APIKey_Partial ¶
type APIKey_Partial struct {
Partial string `protobuf:"bytes,5,opt,name=partial,proto3,oneof"`
}
type AuthorizedUserRequest ¶
type AuthorizedUserRequest struct {
// contains filtered or unexported fields
}
AuthorizedUserRequest takes no parameters, as the authorization information is passed in the request context (i.e. cookies or headers).
func (*AuthorizedUserRequest) Descriptor
deprecated
func (*AuthorizedUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizedUserRequest.ProtoReflect.Descriptor instead.
func (*AuthorizedUserRequest) ProtoMessage ¶
func (*AuthorizedUserRequest) ProtoMessage()
func (*AuthorizedUserRequest) ProtoReflect ¶
func (x *AuthorizedUserRequest) ProtoReflect() protoreflect.Message
func (*AuthorizedUserRequest) Reset ¶
func (x *AuthorizedUserRequest) Reset()
func (*AuthorizedUserRequest) String ¶
func (x *AuthorizedUserRequest) String() string
type AuthorizedUserResponse ¶
type AuthorizedUserResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
AuthorizedUserResponse returns the user that's currently authorized.
func (*AuthorizedUserResponse) Descriptor
deprecated
func (*AuthorizedUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizedUserResponse.ProtoReflect.Descriptor instead.
func (*AuthorizedUserResponse) GetUser ¶
func (x *AuthorizedUserResponse) GetUser() *User
func (*AuthorizedUserResponse) ProtoMessage ¶
func (*AuthorizedUserResponse) ProtoMessage()
func (*AuthorizedUserResponse) ProtoReflect ¶
func (x *AuthorizedUserResponse) ProtoReflect() protoreflect.Message
func (*AuthorizedUserResponse) Reset ¶
func (x *AuthorizedUserResponse) Reset()
func (*AuthorizedUserResponse) String ¶
func (x *AuthorizedUserResponse) String() string
type CreateAPIKeyRequest ¶
type CreateAPIKeyRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
CreateAPIKeyRequest creates a new API key for the authorized user.
func (*CreateAPIKeyRequest) Descriptor
deprecated
func (*CreateAPIKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAPIKeyRequest.ProtoReflect.Descriptor instead.
func (*CreateAPIKeyRequest) GetName ¶
func (x *CreateAPIKeyRequest) GetName() string
func (*CreateAPIKeyRequest) ProtoMessage ¶
func (*CreateAPIKeyRequest) ProtoMessage()
func (*CreateAPIKeyRequest) ProtoReflect ¶
func (x *CreateAPIKeyRequest) ProtoReflect() protoreflect.Message
func (*CreateAPIKeyRequest) Reset ¶
func (x *CreateAPIKeyRequest) Reset()
func (*CreateAPIKeyRequest) String ¶
func (x *CreateAPIKeyRequest) String() string
type CreateAPIKeyResponse ¶
type CreateAPIKeyResponse struct { Key *APIKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
CreateAPIKeyResponse returns the newly created API key.
func (*CreateAPIKeyResponse) Descriptor
deprecated
func (*CreateAPIKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateAPIKeyResponse.ProtoReflect.Descriptor instead.
func (*CreateAPIKeyResponse) GetKey ¶
func (x *CreateAPIKeyResponse) GetKey() *APIKey
func (*CreateAPIKeyResponse) ProtoMessage ¶
func (*CreateAPIKeyResponse) ProtoMessage()
func (*CreateAPIKeyResponse) ProtoReflect ¶
func (x *CreateAPIKeyResponse) ProtoReflect() protoreflect.Message
func (*CreateAPIKeyResponse) Reset ¶
func (x *CreateAPIKeyResponse) Reset()
func (*CreateAPIKeyResponse) String ¶
func (x *CreateAPIKeyResponse) String() string
type DeleteAPIKeyRequest ¶
type DeleteAPIKeyRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
DeleteAPIKeyRequest deletes an API key for the authorized user.
func (*DeleteAPIKeyRequest) Descriptor
deprecated
func (*DeleteAPIKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAPIKeyRequest.ProtoReflect.Descriptor instead.
func (*DeleteAPIKeyRequest) GetId ¶
func (x *DeleteAPIKeyRequest) GetId() string
func (*DeleteAPIKeyRequest) ProtoMessage ¶
func (*DeleteAPIKeyRequest) ProtoMessage()
func (*DeleteAPIKeyRequest) ProtoReflect ¶
func (x *DeleteAPIKeyRequest) ProtoReflect() protoreflect.Message
func (*DeleteAPIKeyRequest) Reset ¶
func (x *DeleteAPIKeyRequest) Reset()
func (*DeleteAPIKeyRequest) String ¶
func (x *DeleteAPIKeyRequest) String() string
type DeleteAPIKeyResponse ¶
type DeleteAPIKeyResponse struct {
// contains filtered or unexported fields
}
DeleteAPIKeyResponse acknowledges the deletion of an API key.
func (*DeleteAPIKeyResponse) Descriptor
deprecated
func (*DeleteAPIKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAPIKeyResponse.ProtoReflect.Descriptor instead.
func (*DeleteAPIKeyResponse) ProtoMessage ¶
func (*DeleteAPIKeyResponse) ProtoMessage()
func (*DeleteAPIKeyResponse) ProtoReflect ¶
func (x *DeleteAPIKeyResponse) ProtoReflect() protoreflect.Message
func (*DeleteAPIKeyResponse) Reset ¶
func (x *DeleteAPIKeyResponse) Reset()
func (*DeleteAPIKeyResponse) String ¶
func (x *DeleteAPIKeyResponse) String() string
type Group ¶
type Group struct { Profile *GroupProfile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
Group is a group within the system.
func (*Group) Descriptor
deprecated
func (*Group) GetCreatedAt ¶
func (x *Group) GetCreatedAt() *timestamppb.Timestamp
func (*Group) GetProfile ¶
func (x *Group) GetProfile() *GroupProfile
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
type GroupProfile ¶
type GroupProfile struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
GroupProfile is the groups public profile.
func (*GroupProfile) Descriptor
deprecated
func (*GroupProfile) Descriptor() ([]byte, []int)
Deprecated: Use GroupProfile.ProtoReflect.Descriptor instead.
func (*GroupProfile) GetId ¶
func (x *GroupProfile) GetId() string
func (*GroupProfile) GetName ¶
func (x *GroupProfile) GetName() string
func (*GroupProfile) ProtoMessage ¶
func (*GroupProfile) ProtoMessage()
func (*GroupProfile) ProtoReflect ¶
func (x *GroupProfile) ProtoReflect() protoreflect.Message
func (*GroupProfile) Reset ¶
func (x *GroupProfile) Reset()
func (*GroupProfile) String ¶
func (x *GroupProfile) String() string
type ListAPIKeysRequest ¶
type ListAPIKeysRequest struct {
// contains filtered or unexported fields
}
ListAPIKeysRequest lists the API keys for the authorized user.
func (*ListAPIKeysRequest) Descriptor
deprecated
func (*ListAPIKeysRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAPIKeysRequest.ProtoReflect.Descriptor instead.
func (*ListAPIKeysRequest) ProtoMessage ¶
func (*ListAPIKeysRequest) ProtoMessage()
func (*ListAPIKeysRequest) ProtoReflect ¶
func (x *ListAPIKeysRequest) ProtoReflect() protoreflect.Message
func (*ListAPIKeysRequest) Reset ¶
func (x *ListAPIKeysRequest) Reset()
func (*ListAPIKeysRequest) String ¶
func (x *ListAPIKeysRequest) String() string
type ListAPIKeysResponse ¶
type ListAPIKeysResponse struct { Keys []*APIKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` // contains filtered or unexported fields }
ListAPIKeysResponse returns the API keys for the authorized user.
func (*ListAPIKeysResponse) Descriptor
deprecated
func (*ListAPIKeysResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAPIKeysResponse.ProtoReflect.Descriptor instead.
func (*ListAPIKeysResponse) GetKeys ¶
func (x *ListAPIKeysResponse) GetKeys() []*APIKey
func (*ListAPIKeysResponse) ProtoMessage ¶
func (*ListAPIKeysResponse) ProtoMessage()
func (*ListAPIKeysResponse) ProtoReflect ¶
func (x *ListAPIKeysResponse) ProtoReflect() protoreflect.Message
func (*ListAPIKeysResponse) Reset ¶
func (x *ListAPIKeysResponse) Reset()
func (*ListAPIKeysResponse) String ¶
func (x *ListAPIKeysResponse) String() string
type OAuthLink ¶
type OAuthLink struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` Provider OAuthProvider `protobuf:"varint,3,opt,name=provider,proto3,enum=tenant.v1.OAuthProvider" json:"provider,omitempty"` AccessToken string `protobuf:"bytes,4,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // contains filtered or unexported fields }
OAuthLink is a link to an external service.
func (*OAuthLink) Descriptor
deprecated
func (*OAuthLink) GetAccessToken ¶
func (*OAuthLink) GetCreatedAt ¶
func (x *OAuthLink) GetCreatedAt() *timestamppb.Timestamp
func (*OAuthLink) GetProvider ¶
func (x *OAuthLink) GetProvider() OAuthProvider
func (*OAuthLink) ProtoMessage ¶
func (*OAuthLink) ProtoMessage()
func (*OAuthLink) ProtoReflect ¶
func (x *OAuthLink) ProtoReflect() protoreflect.Message
type OAuthLinkRequest ¶
type OAuthLinkRequest struct { Provider OAuthProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=tenant.v1.OAuthProvider" json:"provider,omitempty"` RedirectUrl string `protobuf:"bytes,2,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"` // contains filtered or unexported fields }
OAuthLinkRequest allows users to make a number of links to external services.
func (*OAuthLinkRequest) Descriptor
deprecated
func (*OAuthLinkRequest) Descriptor() ([]byte, []int)
Deprecated: Use OAuthLinkRequest.ProtoReflect.Descriptor instead.
func (*OAuthLinkRequest) GetProvider ¶
func (x *OAuthLinkRequest) GetProvider() OAuthProvider
func (*OAuthLinkRequest) GetRedirectUrl ¶
func (x *OAuthLinkRequest) GetRedirectUrl() string
func (*OAuthLinkRequest) ProtoMessage ¶
func (*OAuthLinkRequest) ProtoMessage()
func (*OAuthLinkRequest) ProtoReflect ¶
func (x *OAuthLinkRequest) ProtoReflect() protoreflect.Message
func (*OAuthLinkRequest) Reset ¶
func (x *OAuthLinkRequest) Reset()
func (*OAuthLinkRequest) String ¶
func (x *OAuthLinkRequest) String() string
type OAuthLinkResponse ¶
type OAuthLinkResponse struct { // Types that are assignable to Response: // *OAuthLinkResponse_SetupUrl // *OAuthLinkResponse_State Response isOAuthLinkResponse_Response `protobuf_oneof:"response"` // contains filtered or unexported fields }
OAuthLinkResponse returns the current state of the link, or a setup URL.
func (*OAuthLinkResponse) Descriptor
deprecated
func (*OAuthLinkResponse) Descriptor() ([]byte, []int)
Deprecated: Use OAuthLinkResponse.ProtoReflect.Descriptor instead.
func (*OAuthLinkResponse) GetResponse ¶
func (m *OAuthLinkResponse) GetResponse() isOAuthLinkResponse_Response
func (*OAuthLinkResponse) GetSetupUrl ¶
func (x *OAuthLinkResponse) GetSetupUrl() string
func (*OAuthLinkResponse) GetState ¶
func (x *OAuthLinkResponse) GetState() *OAuthLink
func (*OAuthLinkResponse) ProtoMessage ¶
func (*OAuthLinkResponse) ProtoMessage()
func (*OAuthLinkResponse) ProtoReflect ¶
func (x *OAuthLinkResponse) ProtoReflect() protoreflect.Message
func (*OAuthLinkResponse) Reset ¶
func (x *OAuthLinkResponse) Reset()
func (*OAuthLinkResponse) String ¶
func (x *OAuthLinkResponse) String() string
type OAuthLinkResponse_SetupUrl ¶
type OAuthLinkResponse_SetupUrl struct {
SetupUrl string `protobuf:"bytes,1,opt,name=setup_url,json=setupUrl,proto3,oneof"`
}
type OAuthLinkResponse_State ¶
type OAuthLinkResponse_State struct {
State *OAuthLink `protobuf:"bytes,2,opt,name=state,proto3,oneof"`
}
type OAuthProvider ¶
type OAuthProvider int32
const ( OAuthProvider_O_AUTH_PROVIDER_UNSPECIFIED OAuthProvider = 0 OAuthProvider_O_AUTH_PROVIDER_GITHUB OAuthProvider = 1 )
func (OAuthProvider) Descriptor ¶
func (OAuthProvider) Descriptor() protoreflect.EnumDescriptor
func (OAuthProvider) Enum ¶
func (x OAuthProvider) Enum() *OAuthProvider
func (OAuthProvider) EnumDescriptor
deprecated
func (OAuthProvider) EnumDescriptor() ([]byte, []int)
Deprecated: Use OAuthProvider.Descriptor instead.
func (OAuthProvider) Number ¶
func (x OAuthProvider) Number() protoreflect.EnumNumber
func (OAuthProvider) String ¶
func (x OAuthProvider) String() string
func (OAuthProvider) Type ¶
func (OAuthProvider) Type() protoreflect.EnumType
type SubscriptionPlan ¶
type SubscriptionPlan int32
SubscriptionPlan is an enumeration over the various subscription plans.
const ( SubscriptionPlan_SUBSCRIPTION_PLAN_UNSPECIFIED SubscriptionPlan = 0 SubscriptionPlan_SUBSCRIPTION_PLAN_FREE SubscriptionPlan = 1 SubscriptionPlan_SUBSCRIPTION_PLAN_PRO SubscriptionPlan = 2 )
func (SubscriptionPlan) Descriptor ¶
func (SubscriptionPlan) Descriptor() protoreflect.EnumDescriptor
func (SubscriptionPlan) Enum ¶
func (x SubscriptionPlan) Enum() *SubscriptionPlan
func (SubscriptionPlan) EnumDescriptor
deprecated
func (SubscriptionPlan) EnumDescriptor() ([]byte, []int)
Deprecated: Use SubscriptionPlan.Descriptor instead.
func (SubscriptionPlan) Number ¶
func (x SubscriptionPlan) Number() protoreflect.EnumNumber
func (SubscriptionPlan) String ¶
func (x SubscriptionPlan) String() string
func (SubscriptionPlan) Type ¶
func (SubscriptionPlan) Type() protoreflect.EnumType
type UpdateSubscriptionRequest ¶
type UpdateSubscriptionRequest struct { Plan SubscriptionPlan `protobuf:"varint,1,opt,name=plan,proto3,enum=tenant.v1.SubscriptionPlan" json:"plan,omitempty"` UsageAddon bool `protobuf:"varint,2,opt,name=usage_addon,json=usageAddon,proto3" json:"usage_addon,omitempty"` // Force the billing portal to be used, even if we could update the subscription // ourselves (i.e. by cancelling it). This is useful when users want to access the // billing portal directly, i.e. to update their card details. ForceBillingPortal *bool `protobuf:"varint,3,opt,name=force_billing_portal,json=forceBillingPortal,proto3,oneof" json:"force_billing_portal,omitempty"` // The URL to redirect the user once they return to the site after taking some action // on Stripe. If not specified, will default to https://operand.ai. RedirectUrl *string `protobuf:"bytes,4,opt,name=redirect_url,json=redirectUrl,proto3,oneof" json:"redirect_url,omitempty"` // contains filtered or unexported fields }
UpdateSubscriptionRequest updates the user's subscription. This request allows the caller to pass in the desired end-state of the users subscription. The server will compute the necessary changes and return the required actions in the response.
func (*UpdateSubscriptionRequest) Descriptor
deprecated
func (*UpdateSubscriptionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSubscriptionRequest.ProtoReflect.Descriptor instead.
func (*UpdateSubscriptionRequest) GetForceBillingPortal ¶
func (x *UpdateSubscriptionRequest) GetForceBillingPortal() bool
func (*UpdateSubscriptionRequest) GetPlan ¶
func (x *UpdateSubscriptionRequest) GetPlan() SubscriptionPlan
func (*UpdateSubscriptionRequest) GetRedirectUrl ¶
func (x *UpdateSubscriptionRequest) GetRedirectUrl() string
func (*UpdateSubscriptionRequest) GetUsageAddon ¶
func (x *UpdateSubscriptionRequest) GetUsageAddon() bool
func (*UpdateSubscriptionRequest) ProtoMessage ¶
func (*UpdateSubscriptionRequest) ProtoMessage()
func (*UpdateSubscriptionRequest) ProtoReflect ¶
func (x *UpdateSubscriptionRequest) ProtoReflect() protoreflect.Message
func (*UpdateSubscriptionRequest) Reset ¶
func (x *UpdateSubscriptionRequest) Reset()
func (*UpdateSubscriptionRequest) String ¶
func (x *UpdateSubscriptionRequest) String() string
type UpdateSubscriptionResponse ¶
type UpdateSubscriptionResponse struct { // Types that are assignable to Action: // *UpdateSubscriptionResponse_None_ // *UpdateSubscriptionResponse_CheckoutUrl // *UpdateSubscriptionResponse_BillingPortalUrl Action isUpdateSubscriptionResponse_Action `protobuf_oneof:"action"` // contains filtered or unexported fields }
UpdateSubscriptionResponse returns the actions required to update the users subscription to the desired end-state passed in the request.
func (*UpdateSubscriptionResponse) Descriptor
deprecated
func (*UpdateSubscriptionResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSubscriptionResponse.ProtoReflect.Descriptor instead.
func (*UpdateSubscriptionResponse) GetAction ¶
func (m *UpdateSubscriptionResponse) GetAction() isUpdateSubscriptionResponse_Action
func (*UpdateSubscriptionResponse) GetBillingPortalUrl ¶
func (x *UpdateSubscriptionResponse) GetBillingPortalUrl() string
func (*UpdateSubscriptionResponse) GetCheckoutUrl ¶
func (x *UpdateSubscriptionResponse) GetCheckoutUrl() string
func (*UpdateSubscriptionResponse) GetNone ¶
func (x *UpdateSubscriptionResponse) GetNone() *UpdateSubscriptionResponse_None
func (*UpdateSubscriptionResponse) ProtoMessage ¶
func (*UpdateSubscriptionResponse) ProtoMessage()
func (*UpdateSubscriptionResponse) ProtoReflect ¶
func (x *UpdateSubscriptionResponse) ProtoReflect() protoreflect.Message
func (*UpdateSubscriptionResponse) Reset ¶
func (x *UpdateSubscriptionResponse) Reset()
func (*UpdateSubscriptionResponse) String ¶
func (x *UpdateSubscriptionResponse) String() string
type UpdateSubscriptionResponse_BillingPortalUrl ¶
type UpdateSubscriptionResponse_BillingPortalUrl struct {
BillingPortalUrl string `protobuf:"bytes,3,opt,name=billing_portal_url,json=billingPortalUrl,proto3,oneof"`
}
type UpdateSubscriptionResponse_CheckoutUrl ¶
type UpdateSubscriptionResponse_CheckoutUrl struct {
CheckoutUrl string `protobuf:"bytes,2,opt,name=checkout_url,json=checkoutUrl,proto3,oneof"`
}
type UpdateSubscriptionResponse_None ¶
type UpdateSubscriptionResponse_None struct {
// contains filtered or unexported fields
}
func (*UpdateSubscriptionResponse_None) Descriptor
deprecated
func (*UpdateSubscriptionResponse_None) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSubscriptionResponse_None.ProtoReflect.Descriptor instead.
func (*UpdateSubscriptionResponse_None) ProtoMessage ¶
func (*UpdateSubscriptionResponse_None) ProtoMessage()
func (*UpdateSubscriptionResponse_None) ProtoReflect ¶
func (x *UpdateSubscriptionResponse_None) ProtoReflect() protoreflect.Message
func (*UpdateSubscriptionResponse_None) Reset ¶
func (x *UpdateSubscriptionResponse_None) Reset()
func (*UpdateSubscriptionResponse_None) String ¶
func (x *UpdateSubscriptionResponse_None) String() string
type UpdateSubscriptionResponse_None_ ¶
type UpdateSubscriptionResponse_None_ struct {
None *UpdateSubscriptionResponse_None `protobuf:"bytes,1,opt,name=none,proto3,oneof"`
}
type UpdateUserRequest ¶
type UpdateUserRequest struct { FirstName *string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3,oneof" json:"first_name,omitempty"` LastName *string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3,oneof" json:"last_name,omitempty"` Developer *bool `protobuf:"varint,3,opt,name=developer,proto3,oneof" json:"developer,omitempty"` // contains filtered or unexported fields }
UpdateUserRequest updates the user's profile.
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetDeveloper ¶
func (x *UpdateUserRequest) GetDeveloper() bool
func (*UpdateUserRequest) GetFirstName ¶
func (x *UpdateUserRequest) GetFirstName() string
func (*UpdateUserRequest) GetLastName ¶
func (x *UpdateUserRequest) GetLastName() string
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
type UpdateUserResponse ¶
type UpdateUserResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
UpdateUserResponse returns the updated user.
func (*UpdateUserResponse) Descriptor
deprecated
func (*UpdateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.
func (*UpdateUserResponse) GetUser ¶
func (x *UpdateUserResponse) GetUser() *User
func (*UpdateUserResponse) ProtoMessage ¶
func (*UpdateUserResponse) ProtoMessage()
func (*UpdateUserResponse) ProtoReflect ¶
func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message
func (*UpdateUserResponse) Reset ¶
func (x *UpdateUserResponse) Reset()
func (*UpdateUserResponse) String ¶
func (x *UpdateUserResponse) String() string
type UsageRecordKind ¶
type UsageRecordKind int32
UsageRecordKind is an enumeration over various queryable usage records.
const ( UsageRecordKind_USAGE_RECORD_KIND_UNSPECIFIED UsageRecordKind = 0 UsageRecordKind_USAGE_RECORD_KIND_RAW_STORAGE_BYTES UsageRecordKind = 1 UsageRecordKind_USAGE_RECORD_KIND_INDEX_STORAGE_BYTES UsageRecordKind = 2 UsageRecordKind_USAGE_RECORD_KIND_SEARCH_QUERIES UsageRecordKind = 3 UsageRecordKind_USAGE_RECORD_KIND_CONVERSE UsageRecordKind = 4 )
func (UsageRecordKind) Descriptor ¶
func (UsageRecordKind) Descriptor() protoreflect.EnumDescriptor
func (UsageRecordKind) Enum ¶
func (x UsageRecordKind) Enum() *UsageRecordKind
func (UsageRecordKind) EnumDescriptor
deprecated
func (UsageRecordKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use UsageRecordKind.Descriptor instead.
func (UsageRecordKind) Number ¶
func (x UsageRecordKind) Number() protoreflect.EnumNumber
func (UsageRecordKind) String ¶
func (x UsageRecordKind) String() string
func (UsageRecordKind) Type ¶
func (UsageRecordKind) Type() protoreflect.EnumType
type UsageRequest ¶
type UsageRequest struct {
// contains filtered or unexported fields
}
UsageRequest queries the users usage statistics for the current period.
func (*UsageRequest) Descriptor
deprecated
func (*UsageRequest) Descriptor() ([]byte, []int)
Deprecated: Use UsageRequest.ProtoReflect.Descriptor instead.
func (*UsageRequest) ProtoMessage ¶
func (*UsageRequest) ProtoMessage()
func (*UsageRequest) ProtoReflect ¶
func (x *UsageRequest) ProtoReflect() protoreflect.Message
func (*UsageRequest) Reset ¶
func (x *UsageRequest) Reset()
func (*UsageRequest) String ¶
func (x *UsageRequest) String() string
type UsageResponse ¶
type UsageResponse struct { Records []*UsageResponse_Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` // contains filtered or unexported fields }
UsageResponse returns the users usage statistics for the current period.
func (*UsageResponse) Descriptor
deprecated
func (*UsageResponse) Descriptor() ([]byte, []int)
Deprecated: Use UsageResponse.ProtoReflect.Descriptor instead.
func (*UsageResponse) GetRecords ¶
func (x *UsageResponse) GetRecords() []*UsageResponse_Record
func (*UsageResponse) ProtoMessage ¶
func (*UsageResponse) ProtoMessage()
func (*UsageResponse) ProtoReflect ¶
func (x *UsageResponse) ProtoReflect() protoreflect.Message
func (*UsageResponse) Reset ¶
func (x *UsageResponse) Reset()
func (*UsageResponse) String ¶
func (x *UsageResponse) String() string
type UsageResponse_Record ¶
type UsageResponse_Record struct { Kind UsageRecordKind `protobuf:"varint,1,opt,name=kind,proto3,enum=tenant.v1.UsageRecordKind" json:"kind,omitempty"` CurrentValue int64 `protobuf:"varint,2,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"` AccumulatedCents int64 `protobuf:"varint,3,opt,name=accumulated_cents,json=accumulatedCents,proto3" json:"accumulated_cents,omitempty"` // contains filtered or unexported fields }
func (*UsageResponse_Record) Descriptor
deprecated
func (*UsageResponse_Record) Descriptor() ([]byte, []int)
Deprecated: Use UsageResponse_Record.ProtoReflect.Descriptor instead.
func (*UsageResponse_Record) GetAccumulatedCents ¶
func (x *UsageResponse_Record) GetAccumulatedCents() int64
func (*UsageResponse_Record) GetCurrentValue ¶
func (x *UsageResponse_Record) GetCurrentValue() int64
func (*UsageResponse_Record) GetKind ¶
func (x *UsageResponse_Record) GetKind() UsageRecordKind
func (*UsageResponse_Record) ProtoMessage ¶
func (*UsageResponse_Record) ProtoMessage()
func (*UsageResponse_Record) ProtoReflect ¶
func (x *UsageResponse_Record) ProtoReflect() protoreflect.Message
func (*UsageResponse_Record) Reset ¶
func (x *UsageResponse_Record) Reset()
func (*UsageResponse_Record) String ¶
func (x *UsageResponse_Record) String() string
type User ¶
type User struct { Profile *UserProfile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` Developer bool `protobuf:"varint,3,opt,name=developer,proto3" json:"developer,omitempty"` SubscriptionPlan SubscriptionPlan `` /* 142-byte string literal not displayed */ UsageAddon bool `protobuf:"varint,5,opt,name=usage_addon,json=usageAddon,proto3" json:"usage_addon,omitempty"` // contains filtered or unexported fields }
User is a user within the system.
func (*User) Descriptor
deprecated
func (*User) GetCreatedAt ¶
func (x *User) GetCreatedAt() *timestamppb.Timestamp
func (*User) GetDeveloper ¶
func (*User) GetProfile ¶
func (x *User) GetProfile() *UserProfile
func (*User) GetSubscriptionPlan ¶
func (x *User) GetSubscriptionPlan() SubscriptionPlan
func (*User) GetUsageAddon ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserProfile ¶
type UserProfile struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` EmailAddress string `protobuf:"bytes,2,opt,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"` FirstName *string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3,oneof" json:"first_name,omitempty"` LastName *string `protobuf:"bytes,4,opt,name=last_name,json=lastName,proto3,oneof" json:"last_name,omitempty"` // contains filtered or unexported fields }
UserProfile is the users public profile.
func (*UserProfile) Descriptor
deprecated
func (*UserProfile) Descriptor() ([]byte, []int)
Deprecated: Use UserProfile.ProtoReflect.Descriptor instead.
func (*UserProfile) GetEmailAddress ¶
func (x *UserProfile) GetEmailAddress() string
func (*UserProfile) GetFirstName ¶
func (x *UserProfile) GetFirstName() string
func (*UserProfile) GetId ¶
func (x *UserProfile) GetId() string
func (*UserProfile) GetLastName ¶
func (x *UserProfile) GetLastName() string
func (*UserProfile) ProtoMessage ¶
func (*UserProfile) ProtoMessage()
func (*UserProfile) ProtoReflect ¶
func (x *UserProfile) ProtoReflect() protoreflect.Message
func (*UserProfile) Reset ¶
func (x *UserProfile) Reset()
func (*UserProfile) String ¶
func (x *UserProfile) String() string