authv1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeviceSignInStatus_name = map[int32]string{
		0: "DEVICE_SIGN_IN_STATUS_UNSPECIFIED",
		1: "DEVICE_SIGN_IN_STATUS_PENDING",
		2: "DEVICE_SIGN_IN_STATUS_SLOW_DOWN",
		3: "DEVICE_SIGN_IN_STATUS_DONE",
	}
	DeviceSignInStatus_value = map[string]int32{
		"DEVICE_SIGN_IN_STATUS_UNSPECIFIED": 0,
		"DEVICE_SIGN_IN_STATUS_PENDING":     1,
		"DEVICE_SIGN_IN_STATUS_SLOW_DOWN":   2,
		"DEVICE_SIGN_IN_STATUS_DONE":        3,
	}
)

Enum value maps for DeviceSignInStatus.

View Source
var File_devopus_auth_v1_auth_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CompleteEmailSignInRequest

type CompleteEmailSignInRequest struct {
	ChallengeId string `protobuf:"bytes,1,opt,name=challenge_id,json=challengeId,proto3" json:"challenge_id,omitempty"`
	Code        string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	DeviceName  string `protobuf:"bytes,4,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"`
	// contains filtered or unexported fields
}

func (*CompleteEmailSignInRequest) Descriptor deprecated

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

Deprecated: Use CompleteEmailSignInRequest.ProtoReflect.Descriptor instead.

func (*CompleteEmailSignInRequest) GetChallengeId

func (x *CompleteEmailSignInRequest) GetChallengeId() string

func (*CompleteEmailSignInRequest) GetCode

func (x *CompleteEmailSignInRequest) GetCode() string

func (*CompleteEmailSignInRequest) GetDeviceName

func (x *CompleteEmailSignInRequest) GetDeviceName() string

func (*CompleteEmailSignInRequest) ProtoMessage

func (*CompleteEmailSignInRequest) ProtoMessage()

func (*CompleteEmailSignInRequest) ProtoReflect

func (*CompleteEmailSignInRequest) Reset

func (x *CompleteEmailSignInRequest) Reset()

func (*CompleteEmailSignInRequest) String

func (x *CompleteEmailSignInRequest) String() string

type CompleteEmailSignInResponse

type CompleteEmailSignInResponse struct {
	User   *User   `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Tokens *Tokens `protobuf:"bytes,2,opt,name=tokens,proto3" json:"tokens,omitempty"`
	// The account was created by this call.
	Created bool `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"`
	// contains filtered or unexported fields
}

func (*CompleteEmailSignInResponse) Descriptor deprecated

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

Deprecated: Use CompleteEmailSignInResponse.ProtoReflect.Descriptor instead.

func (*CompleteEmailSignInResponse) GetCreated

func (x *CompleteEmailSignInResponse) GetCreated() bool

func (*CompleteEmailSignInResponse) GetTokens

func (x *CompleteEmailSignInResponse) GetTokens() *Tokens

func (*CompleteEmailSignInResponse) GetUser

func (x *CompleteEmailSignInResponse) GetUser() *User

func (*CompleteEmailSignInResponse) ProtoMessage

func (*CompleteEmailSignInResponse) ProtoMessage()

func (*CompleteEmailSignInResponse) ProtoReflect

func (*CompleteEmailSignInResponse) Reset

func (x *CompleteEmailSignInResponse) Reset()

func (*CompleteEmailSignInResponse) String

func (x *CompleteEmailSignInResponse) String() string

type DeviceSignInStatus

type DeviceSignInStatus int32
const (
	DeviceSignInStatus_DEVICE_SIGN_IN_STATUS_UNSPECIFIED DeviceSignInStatus = 0
	// Not confirmed yet: poll again after the interval.
	DeviceSignInStatus_DEVICE_SIGN_IN_STATUS_PENDING DeviceSignInStatus = 1
	// Polled too often: wait 5 seconds longer between polls.
	DeviceSignInStatus_DEVICE_SIGN_IN_STATUS_SLOW_DOWN DeviceSignInStatus = 2
	// Confirmed: user and tokens are set.
	DeviceSignInStatus_DEVICE_SIGN_IN_STATUS_DONE DeviceSignInStatus = 3
)

func (DeviceSignInStatus) Descriptor

func (DeviceSignInStatus) Enum

func (DeviceSignInStatus) EnumDescriptor deprecated

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

Deprecated: Use DeviceSignInStatus.Descriptor instead.

func (DeviceSignInStatus) Number

func (DeviceSignInStatus) String

func (x DeviceSignInStatus) String() string

func (DeviceSignInStatus) Type

type ExchangeAuthorizationCodeRequest

type ExchangeAuthorizationCodeRequest struct {
	Code         string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	CodeVerifier string `protobuf:"bytes,2,opt,name=code_verifier,json=codeVerifier,proto3" json:"code_verifier,omitempty"`
	// Must be the redirect_uri of the authorization request.
	RedirectUri string `protobuf:"bytes,3,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
	DeviceName  string `protobuf:"bytes,4,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"`
	// contains filtered or unexported fields
}

func (*ExchangeAuthorizationCodeRequest) Descriptor deprecated

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

Deprecated: Use ExchangeAuthorizationCodeRequest.ProtoReflect.Descriptor instead.

func (*ExchangeAuthorizationCodeRequest) GetCode

func (*ExchangeAuthorizationCodeRequest) GetCodeVerifier

func (x *ExchangeAuthorizationCodeRequest) GetCodeVerifier() string

func (*ExchangeAuthorizationCodeRequest) GetDeviceName

func (x *ExchangeAuthorizationCodeRequest) GetDeviceName() string

func (*ExchangeAuthorizationCodeRequest) GetRedirectUri

func (x *ExchangeAuthorizationCodeRequest) GetRedirectUri() string

func (*ExchangeAuthorizationCodeRequest) ProtoMessage

func (*ExchangeAuthorizationCodeRequest) ProtoMessage()

func (*ExchangeAuthorizationCodeRequest) ProtoReflect

func (*ExchangeAuthorizationCodeRequest) Reset

func (*ExchangeAuthorizationCodeRequest) String

type ExchangeAuthorizationCodeResponse

type ExchangeAuthorizationCodeResponse struct {
	User   *User   `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Tokens *Tokens `protobuf:"bytes,2,opt,name=tokens,proto3" json:"tokens,omitempty"`
	// contains filtered or unexported fields
}

func (*ExchangeAuthorizationCodeResponse) Descriptor deprecated

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

Deprecated: Use ExchangeAuthorizationCodeResponse.ProtoReflect.Descriptor instead.

func (*ExchangeAuthorizationCodeResponse) GetTokens

func (x *ExchangeAuthorizationCodeResponse) GetTokens() *Tokens

func (*ExchangeAuthorizationCodeResponse) GetUser

func (*ExchangeAuthorizationCodeResponse) ProtoMessage

func (*ExchangeAuthorizationCodeResponse) ProtoMessage()

func (*ExchangeAuthorizationCodeResponse) ProtoReflect

func (*ExchangeAuthorizationCodeResponse) Reset

func (*ExchangeAuthorizationCodeResponse) String

type GetMeRequest

type GetMeRequest struct {
	// contains filtered or unexported fields
}

func (*GetMeRequest) Descriptor deprecated

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

Deprecated: Use GetMeRequest.ProtoReflect.Descriptor instead.

func (*GetMeRequest) ProtoMessage

func (*GetMeRequest) ProtoMessage()

func (*GetMeRequest) ProtoReflect

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

func (*GetMeRequest) Reset

func (x *GetMeRequest) Reset()

func (*GetMeRequest) String

func (x *GetMeRequest) String() string

type GetMeResponse

type GetMeResponse struct {
	User    *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Session *Session `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMeResponse) Descriptor deprecated

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

Deprecated: Use GetMeResponse.ProtoReflect.Descriptor instead.

func (*GetMeResponse) GetSession

func (x *GetMeResponse) GetSession() *Session

func (*GetMeResponse) GetUser

func (x *GetMeResponse) GetUser() *User

func (*GetMeResponse) ProtoMessage

func (*GetMeResponse) ProtoMessage()

func (*GetMeResponse) ProtoReflect

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

func (*GetMeResponse) Reset

func (x *GetMeResponse) Reset()

func (*GetMeResponse) String

func (x *GetMeResponse) String() string

type ListSessionsRequest

type ListSessionsRequest struct {
	// contains filtered or unexported fields
}

func (*ListSessionsRequest) Descriptor deprecated

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

Deprecated: Use ListSessionsRequest.ProtoReflect.Descriptor instead.

func (*ListSessionsRequest) ProtoMessage

func (*ListSessionsRequest) ProtoMessage()

func (*ListSessionsRequest) ProtoReflect

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

func (*ListSessionsRequest) Reset

func (x *ListSessionsRequest) Reset()

func (*ListSessionsRequest) String

func (x *ListSessionsRequest) String() string

type ListSessionsResponse

type ListSessionsResponse struct {
	Sessions []*Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSessionsResponse) Descriptor deprecated

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

Deprecated: Use ListSessionsResponse.ProtoReflect.Descriptor instead.

func (*ListSessionsResponse) GetSessions

func (x *ListSessionsResponse) GetSessions() []*Session

func (*ListSessionsResponse) ProtoMessage

func (*ListSessionsResponse) ProtoMessage()

func (*ListSessionsResponse) ProtoReflect

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

func (*ListSessionsResponse) Reset

func (x *ListSessionsResponse) Reset()

func (*ListSessionsResponse) String

func (x *ListSessionsResponse) String() string

type PollDeviceSignInRequest

type PollDeviceSignInRequest struct {
	DeviceCode string `protobuf:"bytes,1,opt,name=device_code,json=deviceCode,proto3" json:"device_code,omitempty"`
	// contains filtered or unexported fields
}

func (*PollDeviceSignInRequest) Descriptor deprecated

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

Deprecated: Use PollDeviceSignInRequest.ProtoReflect.Descriptor instead.

func (*PollDeviceSignInRequest) GetDeviceCode

func (x *PollDeviceSignInRequest) GetDeviceCode() string

func (*PollDeviceSignInRequest) ProtoMessage

func (*PollDeviceSignInRequest) ProtoMessage()

func (*PollDeviceSignInRequest) ProtoReflect

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

func (*PollDeviceSignInRequest) Reset

func (x *PollDeviceSignInRequest) Reset()

func (*PollDeviceSignInRequest) String

func (x *PollDeviceSignInRequest) String() string

type PollDeviceSignInResponse

type PollDeviceSignInResponse struct {
	Status DeviceSignInStatus `protobuf:"varint,1,opt,name=status,proto3,enum=devopus.auth.v1.DeviceSignInStatus" json:"status,omitempty"`
	User   *User              `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	Tokens *Tokens            `protobuf:"bytes,3,opt,name=tokens,proto3" json:"tokens,omitempty"`
	// contains filtered or unexported fields
}

func (*PollDeviceSignInResponse) Descriptor deprecated

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

Deprecated: Use PollDeviceSignInResponse.ProtoReflect.Descriptor instead.

func (*PollDeviceSignInResponse) GetStatus

func (*PollDeviceSignInResponse) GetTokens

func (x *PollDeviceSignInResponse) GetTokens() *Tokens

func (*PollDeviceSignInResponse) GetUser

func (x *PollDeviceSignInResponse) GetUser() *User

func (*PollDeviceSignInResponse) ProtoMessage

func (*PollDeviceSignInResponse) ProtoMessage()

func (*PollDeviceSignInResponse) ProtoReflect

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

func (*PollDeviceSignInResponse) Reset

func (x *PollDeviceSignInResponse) Reset()

func (*PollDeviceSignInResponse) String

func (x *PollDeviceSignInResponse) String() string

type RefreshRequest

type RefreshRequest struct {
	RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	// The access token's audience: a workspace id, or empty for Devopus itself.
	Audience string `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"`
	// contains filtered or unexported fields
}

func (*RefreshRequest) Descriptor deprecated

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

Deprecated: Use RefreshRequest.ProtoReflect.Descriptor instead.

func (*RefreshRequest) GetAudience

func (x *RefreshRequest) GetAudience() string

func (*RefreshRequest) GetRefreshToken

func (x *RefreshRequest) GetRefreshToken() string

func (*RefreshRequest) ProtoMessage

func (*RefreshRequest) ProtoMessage()

func (*RefreshRequest) ProtoReflect

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

func (*RefreshRequest) Reset

func (x *RefreshRequest) Reset()

func (*RefreshRequest) String

func (x *RefreshRequest) String() string

type RefreshResponse

type RefreshResponse struct {
	User   *User   `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Tokens *Tokens `protobuf:"bytes,2,opt,name=tokens,proto3" json:"tokens,omitempty"`
	// contains filtered or unexported fields
}

func (*RefreshResponse) Descriptor deprecated

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

Deprecated: Use RefreshResponse.ProtoReflect.Descriptor instead.

func (*RefreshResponse) GetTokens

func (x *RefreshResponse) GetTokens() *Tokens

func (*RefreshResponse) GetUser

func (x *RefreshResponse) GetUser() *User

func (*RefreshResponse) ProtoMessage

func (*RefreshResponse) ProtoMessage()

func (*RefreshResponse) ProtoReflect

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

func (*RefreshResponse) Reset

func (x *RefreshResponse) Reset()

func (*RefreshResponse) String

func (x *RefreshResponse) String() string

type RevokeSessionRequest

type RevokeSessionRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RevokeSessionRequest) Descriptor deprecated

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

Deprecated: Use RevokeSessionRequest.ProtoReflect.Descriptor instead.

func (*RevokeSessionRequest) GetSessionId

func (x *RevokeSessionRequest) GetSessionId() string

func (*RevokeSessionRequest) ProtoMessage

func (*RevokeSessionRequest) ProtoMessage()

func (*RevokeSessionRequest) ProtoReflect

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

func (*RevokeSessionRequest) Reset

func (x *RevokeSessionRequest) Reset()

func (*RevokeSessionRequest) String

func (x *RevokeSessionRequest) String() string

type RevokeSessionResponse

type RevokeSessionResponse struct {
	// contains filtered or unexported fields
}

func (*RevokeSessionResponse) Descriptor deprecated

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

Deprecated: Use RevokeSessionResponse.ProtoReflect.Descriptor instead.

func (*RevokeSessionResponse) ProtoMessage

func (*RevokeSessionResponse) ProtoMessage()

func (*RevokeSessionResponse) ProtoReflect

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

func (*RevokeSessionResponse) Reset

func (x *RevokeSessionResponse) Reset()

func (*RevokeSessionResponse) String

func (x *RevokeSessionResponse) String() string

type Session

type Session struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The device the session was opened on: its host name.
	DeviceName string                 `protobuf:"bytes,2,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"`
	CreatedAt  *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	LastUsedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_used_at,json=lastUsedAt,proto3" json:"last_used_at,omitempty"`
	// The session ends at idle_expires_at unless used before (each refresh moves it), and
	// at expires_at in any case.
	IdleExpiresAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=idle_expires_at,json=idleExpiresAt,proto3" json:"idle_expires_at,omitempty"`
	ExpiresAt     *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// The session the request came with.
	Current bool `protobuf:"varint,7,opt,name=current,proto3" json:"current,omitempty"`
	// contains filtered or unexported fields
}

func (*Session) Descriptor deprecated

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

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetCreatedAt

func (x *Session) GetCreatedAt() *timestamppb.Timestamp

func (*Session) GetCurrent

func (x *Session) GetCurrent() bool

func (*Session) GetDeviceName

func (x *Session) GetDeviceName() string

func (*Session) GetExpiresAt

func (x *Session) GetExpiresAt() *timestamppb.Timestamp

func (*Session) GetId

func (x *Session) GetId() string

func (*Session) GetIdleExpiresAt

func (x *Session) GetIdleExpiresAt() *timestamppb.Timestamp

func (*Session) GetLastUsedAt

func (x *Session) GetLastUsedAt() *timestamppb.Timestamp

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

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

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

type SignOutRequest

type SignOutRequest struct {
	RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*SignOutRequest) Descriptor deprecated

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

Deprecated: Use SignOutRequest.ProtoReflect.Descriptor instead.

func (*SignOutRequest) GetRefreshToken

func (x *SignOutRequest) GetRefreshToken() string

func (*SignOutRequest) ProtoMessage

func (*SignOutRequest) ProtoMessage()

func (*SignOutRequest) ProtoReflect

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

func (*SignOutRequest) Reset

func (x *SignOutRequest) Reset()

func (*SignOutRequest) String

func (x *SignOutRequest) String() string

type SignOutResponse

type SignOutResponse struct {
	// contains filtered or unexported fields
}

func (*SignOutResponse) Descriptor deprecated

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

Deprecated: Use SignOutResponse.ProtoReflect.Descriptor instead.

func (*SignOutResponse) ProtoMessage

func (*SignOutResponse) ProtoMessage()

func (*SignOutResponse) ProtoReflect

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

func (*SignOutResponse) Reset

func (x *SignOutResponse) Reset()

func (*SignOutResponse) String

func (x *SignOutResponse) String() string

type StartDeviceSignInRequest

type StartDeviceSignInRequest struct {
	DeviceName string `protobuf:"bytes,1,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"`
	DeviceId   string `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	// contains filtered or unexported fields
}

func (*StartDeviceSignInRequest) Descriptor deprecated

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

Deprecated: Use StartDeviceSignInRequest.ProtoReflect.Descriptor instead.

func (*StartDeviceSignInRequest) GetDeviceId

func (x *StartDeviceSignInRequest) GetDeviceId() string

func (*StartDeviceSignInRequest) GetDeviceName

func (x *StartDeviceSignInRequest) GetDeviceName() string

func (*StartDeviceSignInRequest) ProtoMessage

func (*StartDeviceSignInRequest) ProtoMessage()

func (*StartDeviceSignInRequest) ProtoReflect

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

func (*StartDeviceSignInRequest) Reset

func (x *StartDeviceSignInRequest) Reset()

func (*StartDeviceSignInRequest) String

func (x *StartDeviceSignInRequest) String() string

type StartDeviceSignInResponse

type StartDeviceSignInResponse struct {
	DeviceCode string `protobuf:"bytes,1,opt,name=device_code,json=deviceCode,proto3" json:"device_code,omitempty"`
	// What the person types on the page: XXXX-XXXX.
	UserCode        string `protobuf:"bytes,2,opt,name=user_code,json=userCode,proto3" json:"user_code,omitempty"`
	VerificationUri string `protobuf:"bytes,3,opt,name=verification_uri,json=verificationUri,proto3" json:"verification_uri,omitempty"`
	// The page with the user code filled in.
	VerificationUriComplete string                 `` /* 132-byte string literal not displayed */
	ExpiresAt               *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	IntervalSeconds         int32                  `protobuf:"varint,6,opt,name=interval_seconds,json=intervalSeconds,proto3" json:"interval_seconds,omitempty"`
	// contains filtered or unexported fields
}

func (*StartDeviceSignInResponse) Descriptor deprecated

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

Deprecated: Use StartDeviceSignInResponse.ProtoReflect.Descriptor instead.

func (*StartDeviceSignInResponse) GetDeviceCode

func (x *StartDeviceSignInResponse) GetDeviceCode() string

func (*StartDeviceSignInResponse) GetExpiresAt

func (x *StartDeviceSignInResponse) GetExpiresAt() *timestamppb.Timestamp

func (*StartDeviceSignInResponse) GetIntervalSeconds

func (x *StartDeviceSignInResponse) GetIntervalSeconds() int32

func (*StartDeviceSignInResponse) GetUserCode

func (x *StartDeviceSignInResponse) GetUserCode() string

func (*StartDeviceSignInResponse) GetVerificationUri

func (x *StartDeviceSignInResponse) GetVerificationUri() string

func (*StartDeviceSignInResponse) GetVerificationUriComplete

func (x *StartDeviceSignInResponse) GetVerificationUriComplete() string

func (*StartDeviceSignInResponse) ProtoMessage

func (*StartDeviceSignInResponse) ProtoMessage()

func (*StartDeviceSignInResponse) ProtoReflect

func (*StartDeviceSignInResponse) Reset

func (x *StartDeviceSignInResponse) Reset()

func (*StartDeviceSignInResponse) String

func (x *StartDeviceSignInResponse) String() string

type StartEmailSignInRequest

type StartEmailSignInRequest struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// A random id the client keeps per device: requests from one device are limited.
	DeviceId string `protobuf:"bytes,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	// contains filtered or unexported fields
}

func (*StartEmailSignInRequest) Descriptor deprecated

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

Deprecated: Use StartEmailSignInRequest.ProtoReflect.Descriptor instead.

func (*StartEmailSignInRequest) GetDeviceId

func (x *StartEmailSignInRequest) GetDeviceId() string

func (*StartEmailSignInRequest) GetEmail

func (x *StartEmailSignInRequest) GetEmail() string

func (*StartEmailSignInRequest) ProtoMessage

func (*StartEmailSignInRequest) ProtoMessage()

func (*StartEmailSignInRequest) ProtoReflect

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

func (*StartEmailSignInRequest) Reset

func (x *StartEmailSignInRequest) Reset()

func (*StartEmailSignInRequest) String

func (x *StartEmailSignInRequest) String() string

type StartEmailSignInResponse

type StartEmailSignInResponse struct {
	ChallengeId string                 `protobuf:"bytes,1,opt,name=challenge_id,json=challengeId,proto3" json:"challenge_id,omitempty"`
	ExpiresAt   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// contains filtered or unexported fields
}

func (*StartEmailSignInResponse) Descriptor deprecated

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

Deprecated: Use StartEmailSignInResponse.ProtoReflect.Descriptor instead.

func (*StartEmailSignInResponse) GetChallengeId

func (x *StartEmailSignInResponse) GetChallengeId() string

func (*StartEmailSignInResponse) GetExpiresAt

func (x *StartEmailSignInResponse) GetExpiresAt() *timestamppb.Timestamp

func (*StartEmailSignInResponse) ProtoMessage

func (*StartEmailSignInResponse) ProtoMessage()

func (*StartEmailSignInResponse) ProtoReflect

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

func (*StartEmailSignInResponse) Reset

func (x *StartEmailSignInResponse) Reset()

func (*StartEmailSignInResponse) String

func (x *StartEmailSignInResponse) String() string

type Tokens

type Tokens struct {

	// A signed JWT (EdDSA): sub is the user, sid the session.
	AccessToken     string                 `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	AccessExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=access_expires_at,json=accessExpiresAt,proto3" json:"access_expires_at,omitempty"`
	// Opaque; works once.
	RefreshToken string   `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	Session      *Session `protobuf:"bytes,4,opt,name=session,proto3" json:"session,omitempty"`
	// contains filtered or unexported fields
}

func (*Tokens) Descriptor deprecated

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

Deprecated: Use Tokens.ProtoReflect.Descriptor instead.

func (*Tokens) GetAccessExpiresAt

func (x *Tokens) GetAccessExpiresAt() *timestamppb.Timestamp

func (*Tokens) GetAccessToken

func (x *Tokens) GetAccessToken() string

func (*Tokens) GetRefreshToken

func (x *Tokens) GetRefreshToken() string

func (*Tokens) GetSession

func (x *Tokens) GetSession() *Session

func (*Tokens) ProtoMessage

func (*Tokens) ProtoMessage()

func (*Tokens) ProtoReflect

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

func (*Tokens) Reset

func (x *Tokens) Reset()

func (*Tokens) String

func (x *Tokens) String() string

type User

type User struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Email     string                 `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamppb.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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