apiv1

package
v0.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CheckoutProduct_name = map[int32]string{
		0: "CHECKOUT_PRODUCT_UNSPECIFIED",
		1: "CHECKOUT_PRODUCT_BASIC",
		2: "CHECKOUT_PRODUCT_PRO",
	}
	CheckoutProduct_value = map[string]int32{
		"CHECKOUT_PRODUCT_UNSPECIFIED": 0,
		"CHECKOUT_PRODUCT_BASIC":       1,
		"CHECKOUT_PRODUCT_PRO":         2,
	}
)

Enum value maps for CheckoutProduct.

View Source
var (
	DeviceHandshakeResponse_AccountTier_name = map[int32]string{
		0: "ACCOUNT_TIER_UNSPECIFIED",
		1: "ACCOUNT_TIER_FREE",
		2: "ACCOUNT_TIER_TRIAL",
		3: "ACCOUNT_TIER_BASIC",
		4: "ACCOUNT_TIER_PRO",
	}
	DeviceHandshakeResponse_AccountTier_value = map[string]int32{
		"ACCOUNT_TIER_UNSPECIFIED": 0,
		"ACCOUNT_TIER_FREE":        1,
		"ACCOUNT_TIER_TRIAL":       2,
		"ACCOUNT_TIER_BASIC":       3,
		"ACCOUNT_TIER_PRO":         4,
	}
)

Enum value maps for DeviceHandshakeResponse_AccountTier.

View Source
var File_api_v1_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CheckoutGetLinkRequest

type CheckoutGetLinkRequest struct {
	Product CheckoutProduct `protobuf:"varint,1,opt,name=product,proto3,enum=api.v1.CheckoutProduct" json:"product,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckoutGetLinkRequest) Descriptor deprecated

func (*CheckoutGetLinkRequest) Descriptor() ([]byte, []int)

Deprecated: Use CheckoutGetLinkRequest.ProtoReflect.Descriptor instead.

func (*CheckoutGetLinkRequest) GetProduct

func (x *CheckoutGetLinkRequest) GetProduct() CheckoutProduct

func (*CheckoutGetLinkRequest) ProtoMessage

func (*CheckoutGetLinkRequest) ProtoMessage()

func (*CheckoutGetLinkRequest) ProtoReflect

func (x *CheckoutGetLinkRequest) ProtoReflect() protoreflect.Message

func (*CheckoutGetLinkRequest) Reset

func (x *CheckoutGetLinkRequest) Reset()

func (*CheckoutGetLinkRequest) String

func (x *CheckoutGetLinkRequest) String() string

type CheckoutGetLinkResponse

type CheckoutGetLinkResponse struct {
	Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckoutGetLinkResponse) Descriptor deprecated

func (*CheckoutGetLinkResponse) Descriptor() ([]byte, []int)

Deprecated: Use CheckoutGetLinkResponse.ProtoReflect.Descriptor instead.

func (x *CheckoutGetLinkResponse) GetLink() string

func (*CheckoutGetLinkResponse) ProtoMessage

func (*CheckoutGetLinkResponse) ProtoMessage()

func (*CheckoutGetLinkResponse) ProtoReflect

func (x *CheckoutGetLinkResponse) ProtoReflect() protoreflect.Message

func (*CheckoutGetLinkResponse) Reset

func (x *CheckoutGetLinkResponse) Reset()

func (*CheckoutGetLinkResponse) String

func (x *CheckoutGetLinkResponse) String() string

type CheckoutProduct

type CheckoutProduct int32

--------------------------------------------------------- Checkout & Subscription Management ---------------------------------------------------------

const (
	CheckoutProduct_CHECKOUT_PRODUCT_UNSPECIFIED CheckoutProduct = 0
	CheckoutProduct_CHECKOUT_PRODUCT_BASIC       CheckoutProduct = 1
	CheckoutProduct_CHECKOUT_PRODUCT_PRO         CheckoutProduct = 2
)

func (CheckoutProduct) Descriptor

func (CheckoutProduct) Enum

func (x CheckoutProduct) Enum() *CheckoutProduct

func (CheckoutProduct) EnumDescriptor deprecated

func (CheckoutProduct) EnumDescriptor() ([]byte, []int)

Deprecated: Use CheckoutProduct.Descriptor instead.

func (CheckoutProduct) Number

func (CheckoutProduct) String

func (x CheckoutProduct) String() string

func (CheckoutProduct) Type

type DeviceHandshakeRequest

type DeviceHandshakeRequest struct {
	DeviceFingerprint string `protobuf:"bytes,1,opt,name=device_fingerprint,json=deviceFingerprint,proto3" json:"device_fingerprint,omitempty"`
	OsPlatform        string `protobuf:"bytes,2,opt,name=os_platform,json=osPlatform,proto3" json:"os_platform,omitempty"` // e.g. "darwin", "windows" - for analytics
	OsVersion         string `protobuf:"bytes,3,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"`    // e.g. "14.2.1"
	AppVersion        string `protobuf:"bytes,4,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` // e.g. "1.0.4" - allows force-update checks
	// contains filtered or unexported fields
}

--------------------------------------------------------- IDENTITY MANAGEMENT ---------------------------------------------------------

func (*DeviceHandshakeRequest) Descriptor deprecated

func (*DeviceHandshakeRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeviceHandshakeRequest.ProtoReflect.Descriptor instead.

func (*DeviceHandshakeRequest) GetAppVersion

func (x *DeviceHandshakeRequest) GetAppVersion() string

func (*DeviceHandshakeRequest) GetDeviceFingerprint

func (x *DeviceHandshakeRequest) GetDeviceFingerprint() string

func (*DeviceHandshakeRequest) GetOsPlatform

func (x *DeviceHandshakeRequest) GetOsPlatform() string

func (*DeviceHandshakeRequest) GetOsVersion

func (x *DeviceHandshakeRequest) GetOsVersion() string

func (*DeviceHandshakeRequest) ProtoMessage

func (*DeviceHandshakeRequest) ProtoMessage()

func (*DeviceHandshakeRequest) ProtoReflect

func (x *DeviceHandshakeRequest) ProtoReflect() protoreflect.Message

func (*DeviceHandshakeRequest) Reset

func (x *DeviceHandshakeRequest) Reset()

func (*DeviceHandshakeRequest) String

func (x *DeviceHandshakeRequest) String() string

type DeviceHandshakeResponse

type DeviceHandshakeResponse struct {
	UserId       int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`                  // The user ID
	SessionToken string `protobuf:"bytes,2,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` // The PASETO v2.local token
	ExpiresAt    int64  `protobuf:"varint,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`         // Unix timestamp (hint for client refresh)
	// Limits / Account Status
	AccountTier DeviceHandshakeResponse_AccountTier `` /* 143-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DeviceHandshakeResponse) Descriptor deprecated

func (*DeviceHandshakeResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeviceHandshakeResponse.ProtoReflect.Descriptor instead.

func (*DeviceHandshakeResponse) GetAccountTier

func (*DeviceHandshakeResponse) GetExpiresAt

func (x *DeviceHandshakeResponse) GetExpiresAt() int64

func (*DeviceHandshakeResponse) GetSessionToken

func (x *DeviceHandshakeResponse) GetSessionToken() string

func (*DeviceHandshakeResponse) GetUserId

func (x *DeviceHandshakeResponse) GetUserId() int64

func (*DeviceHandshakeResponse) ProtoMessage

func (*DeviceHandshakeResponse) ProtoMessage()

func (*DeviceHandshakeResponse) ProtoReflect

func (x *DeviceHandshakeResponse) ProtoReflect() protoreflect.Message

func (*DeviceHandshakeResponse) Reset

func (x *DeviceHandshakeResponse) Reset()

func (*DeviceHandshakeResponse) String

func (x *DeviceHandshakeResponse) String() string

type DeviceHandshakeResponse_AccountTier

type DeviceHandshakeResponse_AccountTier int32
const (
	DeviceHandshakeResponse_ACCOUNT_TIER_UNSPECIFIED DeviceHandshakeResponse_AccountTier = 0
	DeviceHandshakeResponse_ACCOUNT_TIER_FREE        DeviceHandshakeResponse_AccountTier = 1
	DeviceHandshakeResponse_ACCOUNT_TIER_TRIAL       DeviceHandshakeResponse_AccountTier = 2
	DeviceHandshakeResponse_ACCOUNT_TIER_BASIC       DeviceHandshakeResponse_AccountTier = 3
	DeviceHandshakeResponse_ACCOUNT_TIER_PRO         DeviceHandshakeResponse_AccountTier = 4
)

func (DeviceHandshakeResponse_AccountTier) Descriptor

func (DeviceHandshakeResponse_AccountTier) Enum

func (DeviceHandshakeResponse_AccountTier) EnumDescriptor deprecated

func (DeviceHandshakeResponse_AccountTier) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeviceHandshakeResponse_AccountTier.Descriptor instead.

func (DeviceHandshakeResponse_AccountTier) Number

func (DeviceHandshakeResponse_AccountTier) String

func (DeviceHandshakeResponse_AccountTier) Type

type LLMClassifyRequest

type LLMClassifyRequest struct {
	BundleId               string `protobuf:"bytes,1,opt,name=bundle_id,json=bundleId,proto3" json:"bundle_id,omitempty"`
	WindowTitle            string `protobuf:"bytes,2,opt,name=window_title,json=windowTitle,proto3" json:"window_title,omitempty"`
	WebsiteUrl             string `protobuf:"bytes,3,opt,name=website_url,json=websiteUrl,proto3" json:"website_url,omitempty"`
	WebsiteTitle           string `protobuf:"bytes,4,opt,name=website_title,json=websiteTitle,proto3" json:"website_title,omitempty"`
	WebsiteDescription     string `protobuf:"bytes,5,opt,name=website_description,json=websiteDescription,proto3" json:"website_description,omitempty"`
	WebsiteContentSnapshot string `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

--------------------------------------------------------- LLM METHODS ---------------------------------------------------------

func (*LLMClassifyRequest) Descriptor deprecated

func (*LLMClassifyRequest) Descriptor() ([]byte, []int)

Deprecated: Use LLMClassifyRequest.ProtoReflect.Descriptor instead.

func (*LLMClassifyRequest) GetBundleId

func (x *LLMClassifyRequest) GetBundleId() string

func (*LLMClassifyRequest) GetWebsiteContentSnapshot

func (x *LLMClassifyRequest) GetWebsiteContentSnapshot() string

func (*LLMClassifyRequest) GetWebsiteDescription

func (x *LLMClassifyRequest) GetWebsiteDescription() string

func (*LLMClassifyRequest) GetWebsiteTitle

func (x *LLMClassifyRequest) GetWebsiteTitle() string

func (*LLMClassifyRequest) GetWebsiteUrl

func (x *LLMClassifyRequest) GetWebsiteUrl() string

func (*LLMClassifyRequest) GetWindowTitle

func (x *LLMClassifyRequest) GetWindowTitle() string

func (*LLMClassifyRequest) ProtoMessage

func (*LLMClassifyRequest) ProtoMessage()

func (*LLMClassifyRequest) ProtoReflect

func (x *LLMClassifyRequest) ProtoReflect() protoreflect.Message

func (*LLMClassifyRequest) Reset

func (x *LLMClassifyRequest) Reset()

func (*LLMClassifyRequest) String

func (x *LLMClassifyRequest) String() string

type LLMClassifyResponse

type LLMClassifyResponse struct {
	Classification               string   `protobuf:"bytes,1,opt,name=classification,proto3" json:"classification,omitempty"`
	Reasoning                    string   `protobuf:"bytes,2,opt,name=reasoning,proto3" json:"reasoning,omitempty"`
	Tags                         []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
	DetectedProject              string   `protobuf:"bytes,4,opt,name=detected_project,json=detectedProject,proto3" json:"detected_project,omitempty"`
	DetectedCommunicationChannel string   `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LLMClassifyResponse) Descriptor deprecated

func (*LLMClassifyResponse) Descriptor() ([]byte, []int)

Deprecated: Use LLMClassifyResponse.ProtoReflect.Descriptor instead.

func (*LLMClassifyResponse) GetClassification

func (x *LLMClassifyResponse) GetClassification() string

func (*LLMClassifyResponse) GetDetectedCommunicationChannel

func (x *LLMClassifyResponse) GetDetectedCommunicationChannel() string

func (*LLMClassifyResponse) GetDetectedProject

func (x *LLMClassifyResponse) GetDetectedProject() string

func (*LLMClassifyResponse) GetReasoning

func (x *LLMClassifyResponse) GetReasoning() string

func (*LLMClassifyResponse) GetTags

func (x *LLMClassifyResponse) GetTags() []string

func (*LLMClassifyResponse) ProtoMessage

func (*LLMClassifyResponse) ProtoMessage()

func (*LLMClassifyResponse) ProtoReflect

func (x *LLMClassifyResponse) ProtoReflect() protoreflect.Message

func (*LLMClassifyResponse) Reset

func (x *LLMClassifyResponse) Reset()

func (*LLMClassifyResponse) String

func (x *LLMClassifyResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL