v2

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AuthServiceGetCurrentSessionProcedure is the fully-qualified name of the AuthService's
	// GetCurrentSession RPC.
	AuthServiceGetCurrentSessionProcedure = "/api.v2.AuthService/GetCurrentSession"
	// AuthServiceCreateSessionProcedure is the fully-qualified name of the AuthService's CreateSession
	// RPC.
	AuthServiceCreateSessionProcedure = "/api.v2.AuthService/CreateSession"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// MemoServiceCreateMemoProcedure is the fully-qualified name of the MemoService's CreateMemo RPC.
	MemoServiceCreateMemoProcedure = "/api.v2.MemoService/CreateMemo"
	// MemoServiceListMemosProcedure is the fully-qualified name of the MemoService's ListMemos RPC.
	MemoServiceListMemosProcedure = "/api.v2.MemoService/ListMemos"
	// MemoServiceGetMemoProcedure is the fully-qualified name of the MemoService's GetMemo RPC.
	MemoServiceGetMemoProcedure = "/api.v2.MemoService/GetMemo"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// UserServiceCreateUserProcedure is the fully-qualified name of the UserService's CreateUser RPC.
	UserServiceCreateUserProcedure = "/api.v2.UserService/CreateUser"
	// UserServiceUpdateUserProcedure is the fully-qualified name of the UserService's UpdateUser RPC.
	UserServiceUpdateUserProcedure = "/api.v2.UserService/UpdateUser"
	// UserServiceGetUserStatsProcedure is the fully-qualified name of the UserService's GetUserStats
	// RPC.
	UserServiceGetUserStatsProcedure = "/api.v2.UserService/GetUserStats"
	// UserServiceGetUserSettingProcedure is the fully-qualified name of the UserService's
	// GetUserSetting RPC.
	UserServiceGetUserSettingProcedure = "/api.v2.UserService/GetUserSetting"
	// UserServiceUpdateUserSettingProcedure is the fully-qualified name of the UserService's
	// UpdateUserSetting RPC.
	UserServiceUpdateUserSettingProcedure = "/api.v2.UserService/UpdateUserSetting"
	// UserServiceListUserSettingsProcedure is the fully-qualified name of the UserService's
	// ListUserSettings RPC.
	UserServiceListUserSettingsProcedure = "/api.v2.UserService/ListUserSettings"
	// UserServiceListUserSessionsProcedure is the fully-qualified name of the UserService's
	// ListUserSessions RPC.
	UserServiceListUserSessionsProcedure = "/api.v2.UserService/ListUserSessions"
	// UserServiceRevokeUserSessionProcedure is the fully-qualified name of the UserService's
	// RevokeUserSession RPC.
	UserServiceRevokeUserSessionProcedure = "/api.v2.UserService/RevokeUserSession"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// WorkspaceServiceGetWorkspaceProfileProcedure is the fully-qualified name of the
	// WorkspaceService's GetWorkspaceProfile RPC.
	WorkspaceServiceGetWorkspaceProfileProcedure = "/api.v2.WorkspaceService/GetWorkspaceProfile"
	// WorkspaceServiceGetWorkspaceSettingProcedure is the fully-qualified name of the
	// WorkspaceService's GetWorkspaceSetting RPC.
	WorkspaceServiceGetWorkspaceSettingProcedure = "/api.v2.WorkspaceService/GetWorkspaceSetting"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// AuthServiceName is the fully-qualified name of the AuthService service.
	AuthServiceName = "api.v2.AuthService"
)
View Source
const (
	// InboxServiceListInboxesProcedure is the fully-qualified name of the InboxService's ListInboxes
	// RPC.
	InboxServiceListInboxesProcedure = "/api.v2.InboxService/ListInboxes"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// InboxServiceName is the fully-qualified name of the InboxService service.
	InboxServiceName = "api.v2.InboxService"
)
View Source
const (
	// MarkdownServiceName is the fully-qualified name of the MarkdownService service.
	MarkdownServiceName = "api.v2.MarkdownService"
)
View Source
const (
	// MarkdownServiceParseMarkdownProcedure is the fully-qualified name of the MarkdownService's
	// ParseMarkdown RPC.
	MarkdownServiceParseMarkdownProcedure = "/api.v2.MarkdownService/ParseMarkdown"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// MemoServiceName is the fully-qualified name of the MemoService service.
	MemoServiceName = "api.v2.MemoService"
)
View Source
const (
	// UserServiceName is the fully-qualified name of the UserService service.
	UserServiceName = "api.v2.UserService"
)
View Source
const (
	// WorkspaceServiceName is the fully-qualified name of the WorkspaceService service.
	WorkspaceServiceName = "api.v2.WorkspaceService"
)

Variables

View Source
var File_api_v2_auth_proto protoreflect.FileDescriptor
View Source
var File_api_v2_inbox_proto protoreflect.FileDescriptor
View Source
var File_api_v2_markdown_proto protoreflect.FileDescriptor
View Source
var File_api_v2_memo_proto protoreflect.FileDescriptor
View Source
var File_api_v2_user_proto protoreflect.FileDescriptor
View Source
var File_api_v2_workspace_proto protoreflect.FileDescriptor

Functions

func NewAuthServiceHandler

func NewAuthServiceHandler(svc AuthServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAuthServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewInboxServiceHandler added in v0.1.2

func NewInboxServiceHandler(svc InboxServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewInboxServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewMarkdownServiceHandler

func NewMarkdownServiceHandler(svc MarkdownServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewMarkdownServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewMemoServiceHandler

func NewMemoServiceHandler(svc MemoServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewMemoServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewUserServiceHandler

func NewUserServiceHandler(svc UserServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewUserServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewWorkspaceServiceHandler

func NewWorkspaceServiceHandler(svc WorkspaceServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewWorkspaceServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type AuthServiceClient

type AuthServiceClient interface {
	// GetCurrentSession returns the current session information.
	GetCurrentSession(context.Context, *connect.Request[GetCurrentSessionRequest]) (*connect.Response[GetCurrentSessionResponse], error)
	// CreateSession authenticates a user and creates a new session.
	// Returns the authenticated user information upon successful authentication.
	CreateSession(context.Context, *connect.Request[CreateSessionRequest]) (*connect.Response[CreateSessionResponse], error)
}

AuthServiceClient is a client for the api.v2.AuthService service.

func NewAuthServiceClient

func NewAuthServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AuthServiceClient

NewAuthServiceClient constructs a client for the api.v2.AuthService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type AuthServiceHandler

type AuthServiceHandler interface {
	// GetCurrentSession returns the current session information.
	GetCurrentSession(context.Context, *connect.Request[GetCurrentSessionRequest]) (*connect.Response[GetCurrentSessionResponse], error)
	// CreateSession authenticates a user and creates a new session.
	// Returns the authenticated user information upon successful authentication.
	CreateSession(context.Context, *connect.Request[CreateSessionRequest]) (*connect.Response[CreateSessionResponse], error)
}

AuthServiceHandler is an implementation of the api.v2.AuthService service.

type CreateMemoRequest

type CreateMemoRequest struct {

	// Required. The memo to create.
	Memo *model.Memo `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"`
	// Optional. The memo ID to use for this memo.
	// If empty, a unique ID will be generated.
	MemoId string `protobuf:"bytes,2,opt,name=memo_id,json=memoId,proto3" json:"memo_id,omitempty"`
	// Optional. If set, validate the request but don't actually create the memo.
	ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// Optional. An idempotency token.
	RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMemoRequest) Descriptor deprecated

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

Deprecated: Use CreateMemoRequest.ProtoReflect.Descriptor instead.

func (*CreateMemoRequest) GetMemo

func (x *CreateMemoRequest) GetMemo() *model.Memo

func (*CreateMemoRequest) GetMemoId

func (x *CreateMemoRequest) GetMemoId() string

func (*CreateMemoRequest) GetRequestId

func (x *CreateMemoRequest) GetRequestId() string

func (*CreateMemoRequest) GetValidateOnly

func (x *CreateMemoRequest) GetValidateOnly() bool

func (*CreateMemoRequest) ProtoMessage

func (*CreateMemoRequest) ProtoMessage()

func (*CreateMemoRequest) ProtoReflect

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

func (*CreateMemoRequest) Reset

func (x *CreateMemoRequest) Reset()

func (*CreateMemoRequest) String

func (x *CreateMemoRequest) String() string

type CreateSessionRequest

type CreateSessionRequest struct {

	// Provide one authentication method (username/password or SSO).
	// Required field to specify the authentication method.
	//
	// Types that are valid to be assigned to Credentials:
	//
	//	*CreateSessionRequest_PasswordCredentials_
	//	*CreateSessionRequest_SsoCredentials
	Credentials isCreateSessionRequest_Credentials `protobuf_oneof:"credentials"`
	// contains filtered or unexported fields
}

func (*CreateSessionRequest) Descriptor deprecated

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

Deprecated: Use CreateSessionRequest.ProtoReflect.Descriptor instead.

func (*CreateSessionRequest) GetCredentials

func (x *CreateSessionRequest) GetCredentials() isCreateSessionRequest_Credentials

func (*CreateSessionRequest) GetPasswordCredentials

func (*CreateSessionRequest) GetSsoCredentials

func (*CreateSessionRequest) ProtoMessage

func (*CreateSessionRequest) ProtoMessage()

func (*CreateSessionRequest) ProtoReflect

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

func (*CreateSessionRequest) Reset

func (x *CreateSessionRequest) Reset()

func (*CreateSessionRequest) String

func (x *CreateSessionRequest) String() string

type CreateSessionRequest_PasswordCredentials

type CreateSessionRequest_PasswordCredentials struct {

	// The username to sign in with.
	// Required field for password-based authentication.
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// The password to sign in with.
	// Required field for password-based authentication.
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

Nested message for password-based authentication credentials.

func (*CreateSessionRequest_PasswordCredentials) Descriptor deprecated

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

Deprecated: Use CreateSessionRequest_PasswordCredentials.ProtoReflect.Descriptor instead.

func (*CreateSessionRequest_PasswordCredentials) GetPassword

func (*CreateSessionRequest_PasswordCredentials) GetUsername

func (*CreateSessionRequest_PasswordCredentials) ProtoMessage

func (*CreateSessionRequest_PasswordCredentials) ProtoReflect

func (*CreateSessionRequest_PasswordCredentials) Reset

func (*CreateSessionRequest_PasswordCredentials) String

type CreateSessionRequest_PasswordCredentials_

type CreateSessionRequest_PasswordCredentials_ struct {
	// Username and password authentication method.
	PasswordCredentials *CreateSessionRequest_PasswordCredentials `protobuf:"bytes,1,opt,name=password_credentials,json=passwordCredentials,proto3,oneof"`
}

type CreateSessionRequest_SSOCredentials

type CreateSessionRequest_SSOCredentials struct {

	// The ID of the SSO provider.
	// Required field to identify the SSO provider.
	IdpId int32 `protobuf:"varint,1,opt,name=idp_id,json=idpId,proto3" json:"idp_id,omitempty"`
	// The authorization code from the SSO provider.
	// Required field for completing the SSO flow.
	Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// The redirect URI used in the SSO flow.
	// Required field for security validation.
	RedirectUri string `protobuf:"bytes,3,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
	// contains filtered or unexported fields
}

Nested message for SSO authentication credentials.

func (*CreateSessionRequest_SSOCredentials) Descriptor deprecated

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

Deprecated: Use CreateSessionRequest_SSOCredentials.ProtoReflect.Descriptor instead.

func (*CreateSessionRequest_SSOCredentials) GetCode

func (*CreateSessionRequest_SSOCredentials) GetIdpId

func (*CreateSessionRequest_SSOCredentials) GetRedirectUri

func (x *CreateSessionRequest_SSOCredentials) GetRedirectUri() string

func (*CreateSessionRequest_SSOCredentials) ProtoMessage

func (*CreateSessionRequest_SSOCredentials) ProtoMessage()

func (*CreateSessionRequest_SSOCredentials) ProtoReflect

func (*CreateSessionRequest_SSOCredentials) Reset

func (*CreateSessionRequest_SSOCredentials) String

type CreateSessionRequest_SsoCredentials

type CreateSessionRequest_SsoCredentials struct {
	// SSO provider authentication method.
	SsoCredentials *CreateSessionRequest_SSOCredentials `protobuf:"bytes,2,opt,name=sso_credentials,json=ssoCredentials,proto3,oneof"`
}

type CreateSessionResponse

type CreateSessionResponse struct {

	// The authenticated user information.
	User *model.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// Last time the session was accessed.
	// Used for sliding expiration calculation (last_accessed_time + 2 weeks).
	LastAccessedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_accessed_at,json=lastAccessedAt,proto3" json:"last_accessed_at,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSessionResponse) Descriptor deprecated

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

Deprecated: Use CreateSessionResponse.ProtoReflect.Descriptor instead.

func (*CreateSessionResponse) GetLastAccessedAt

func (x *CreateSessionResponse) GetLastAccessedAt() *timestamppb.Timestamp

func (*CreateSessionResponse) GetUser

func (x *CreateSessionResponse) GetUser() *model.User

func (*CreateSessionResponse) ProtoMessage

func (*CreateSessionResponse) ProtoMessage()

func (*CreateSessionResponse) ProtoReflect

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

func (*CreateSessionResponse) Reset

func (x *CreateSessionResponse) Reset()

func (*CreateSessionResponse) String

func (x *CreateSessionResponse) String() string

type CreateUserRequest

type CreateUserRequest struct {

	// Required. The user to create.
	User *model.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetUser

func (x *CreateUserRequest) GetUser() *model.User

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type GetAuthStatusRequest

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

func (*GetAuthStatusRequest) Descriptor deprecated

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

Deprecated: Use GetAuthStatusRequest.ProtoReflect.Descriptor instead.

func (*GetAuthStatusRequest) ProtoMessage

func (*GetAuthStatusRequest) ProtoMessage()

func (*GetAuthStatusRequest) ProtoReflect

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

func (*GetAuthStatusRequest) Reset

func (x *GetAuthStatusRequest) Reset()

func (*GetAuthStatusRequest) String

func (x *GetAuthStatusRequest) String() string

type GetAuthStatusResponse

type GetAuthStatusResponse struct {
	User *model.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAuthStatusResponse) Descriptor deprecated

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

Deprecated: Use GetAuthStatusResponse.ProtoReflect.Descriptor instead.

func (*GetAuthStatusResponse) GetUser

func (x *GetAuthStatusResponse) GetUser() *model.User

func (*GetAuthStatusResponse) ProtoMessage

func (*GetAuthStatusResponse) ProtoMessage()

func (*GetAuthStatusResponse) ProtoReflect

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

func (*GetAuthStatusResponse) Reset

func (x *GetAuthStatusResponse) Reset()

func (*GetAuthStatusResponse) String

func (x *GetAuthStatusResponse) String() string

type GetCurrentSessionRequest

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

func (*GetCurrentSessionRequest) Descriptor deprecated

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

Deprecated: Use GetCurrentSessionRequest.ProtoReflect.Descriptor instead.

func (*GetCurrentSessionRequest) ProtoMessage

func (*GetCurrentSessionRequest) ProtoMessage()

func (*GetCurrentSessionRequest) ProtoReflect

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

func (*GetCurrentSessionRequest) Reset

func (x *GetCurrentSessionRequest) Reset()

func (*GetCurrentSessionRequest) String

func (x *GetCurrentSessionRequest) String() string

type GetCurrentSessionResponse

type GetCurrentSessionResponse struct {
	User *model.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// Last time the session was accessed.
	// Used for sliding expiration calculation (last_accessed_time + 2 weeks).
	LastAccessedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_accessed_at,json=lastAccessedAt,proto3" json:"last_accessed_at,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCurrentSessionResponse) Descriptor deprecated

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

Deprecated: Use GetCurrentSessionResponse.ProtoReflect.Descriptor instead.

func (*GetCurrentSessionResponse) GetLastAccessedAt

func (x *GetCurrentSessionResponse) GetLastAccessedAt() *timestamppb.Timestamp

func (*GetCurrentSessionResponse) GetUser

func (x *GetCurrentSessionResponse) GetUser() *model.User

func (*GetCurrentSessionResponse) ProtoMessage

func (*GetCurrentSessionResponse) ProtoMessage()

func (*GetCurrentSessionResponse) ProtoReflect

func (*GetCurrentSessionResponse) Reset

func (x *GetCurrentSessionResponse) Reset()

func (*GetCurrentSessionResponse) String

func (x *GetCurrentSessionResponse) String() string

type GetMemoRequest

type GetMemoRequest struct {

	// Required. The resource name of the memo.
	// Format: memos/{memo}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. The fields to return in the response.
	// If not specified, all fields are returned.
	ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMemoRequest) Descriptor deprecated

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

Deprecated: Use GetMemoRequest.ProtoReflect.Descriptor instead.

func (*GetMemoRequest) GetName

func (x *GetMemoRequest) GetName() string

func (*GetMemoRequest) GetReadMask

func (x *GetMemoRequest) GetReadMask() *fieldmaskpb.FieldMask

func (*GetMemoRequest) ProtoMessage

func (*GetMemoRequest) ProtoMessage()

func (*GetMemoRequest) ProtoReflect

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

func (*GetMemoRequest) Reset

func (x *GetMemoRequest) Reset()

func (*GetMemoRequest) String

func (x *GetMemoRequest) String() string

type GetUserSettingRequest added in v0.1.1

type GetUserSettingRequest struct {

	// Required. The resource name of the user setting.
	// Format: users/{user}/settings/{setting}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserSettingRequest) Descriptor deprecated added in v0.1.1

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

Deprecated: Use GetUserSettingRequest.ProtoReflect.Descriptor instead.

func (*GetUserSettingRequest) GetName added in v0.1.1

func (x *GetUserSettingRequest) GetName() string

func (*GetUserSettingRequest) ProtoMessage added in v0.1.1

func (*GetUserSettingRequest) ProtoMessage()

func (*GetUserSettingRequest) ProtoReflect added in v0.1.1

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

func (*GetUserSettingRequest) Reset added in v0.1.1

func (x *GetUserSettingRequest) Reset()

func (*GetUserSettingRequest) String added in v0.1.1

func (x *GetUserSettingRequest) String() string

type GetUserStatsRequest

type GetUserStatsRequest struct {

	// Required. The resource name of the user.
	// Format: users/{user}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserStatsRequest) Descriptor deprecated

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

Deprecated: Use GetUserStatsRequest.ProtoReflect.Descriptor instead.

func (*GetUserStatsRequest) GetName

func (x *GetUserStatsRequest) GetName() string

func (*GetUserStatsRequest) ProtoMessage

func (*GetUserStatsRequest) ProtoMessage()

func (*GetUserStatsRequest) ProtoReflect

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

func (*GetUserStatsRequest) Reset

func (x *GetUserStatsRequest) Reset()

func (*GetUserStatsRequest) String

func (x *GetUserStatsRequest) String() string

type GetWorkspaceProfileRequest

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

Request for workspace profile.

func (*GetWorkspaceProfileRequest) Descriptor deprecated

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

Deprecated: Use GetWorkspaceProfileRequest.ProtoReflect.Descriptor instead.

func (*GetWorkspaceProfileRequest) ProtoMessage

func (*GetWorkspaceProfileRequest) ProtoMessage()

func (*GetWorkspaceProfileRequest) ProtoReflect

func (*GetWorkspaceProfileRequest) Reset

func (x *GetWorkspaceProfileRequest) Reset()

func (*GetWorkspaceProfileRequest) String

func (x *GetWorkspaceProfileRequest) String() string

type GetWorkspaceSettingRequest

type GetWorkspaceSettingRequest struct {

	// The resource name of the workspace setting.
	// Format: workspace/settings/{setting}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for GetWorkspaceSetting method.

func (*GetWorkspaceSettingRequest) Descriptor deprecated

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

Deprecated: Use GetWorkspaceSettingRequest.ProtoReflect.Descriptor instead.

func (*GetWorkspaceSettingRequest) GetName

func (x *GetWorkspaceSettingRequest) GetName() string

func (*GetWorkspaceSettingRequest) ProtoMessage

func (*GetWorkspaceSettingRequest) ProtoMessage()

func (*GetWorkspaceSettingRequest) ProtoReflect

func (*GetWorkspaceSettingRequest) Reset

func (x *GetWorkspaceSettingRequest) Reset()

func (*GetWorkspaceSettingRequest) String

func (x *GetWorkspaceSettingRequest) String() string

type InboxServiceClient added in v0.1.2

type InboxServiceClient interface {
	// ListInboxes lists inboxes for a user.
	ListInboxes(context.Context, *connect.Request[ListInboxesRequest]) (*connect.Response[ListInboxesResponse], error)
}

InboxServiceClient is a client for the api.v2.InboxService service.

func NewInboxServiceClient added in v0.1.2

func NewInboxServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) InboxServiceClient

NewInboxServiceClient constructs a client for the api.v2.InboxService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type InboxServiceHandler added in v0.1.2

type InboxServiceHandler interface {
	// ListInboxes lists inboxes for a user.
	ListInboxes(context.Context, *connect.Request[ListInboxesRequest]) (*connect.Response[ListInboxesResponse], error)
}

InboxServiceHandler is an implementation of the api.v2.InboxService service.

type ListInboxesRequest added in v0.1.2

type ListInboxesRequest struct {

	// Required. The parent resource whose inboxes will be listed.
	// Format: users/{user}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of inboxes to return.
	// The service may return fewer than this value.
	// If unspecified, at most 50 inboxes will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A page token, received from a previous `ListInboxes` call.
	// Provide this to retrieve the subsequent page.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Optional. Filter to apply to the list results.
	// Example: "status=UNREAD" or "type=MEMO_COMMENT"
	// Supported operators: =, !=
	// Supported fields: status, type, sender, create_time
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. The order to sort results by.
	// Example: "create_time desc" or "status asc"
	OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

func (*ListInboxesRequest) Descriptor deprecated added in v0.1.2

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

Deprecated: Use ListInboxesRequest.ProtoReflect.Descriptor instead.

func (*ListInboxesRequest) GetFilter added in v0.1.2

func (x *ListInboxesRequest) GetFilter() string

func (*ListInboxesRequest) GetOrderBy added in v0.1.2

func (x *ListInboxesRequest) GetOrderBy() string

func (*ListInboxesRequest) GetPageSize added in v0.1.2

func (x *ListInboxesRequest) GetPageSize() int32

func (*ListInboxesRequest) GetPageToken added in v0.1.2

func (x *ListInboxesRequest) GetPageToken() string

func (*ListInboxesRequest) GetParent added in v0.1.2

func (x *ListInboxesRequest) GetParent() string

func (*ListInboxesRequest) ProtoMessage added in v0.1.2

func (*ListInboxesRequest) ProtoMessage()

func (*ListInboxesRequest) ProtoReflect added in v0.1.2

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

func (*ListInboxesRequest) Reset added in v0.1.2

func (x *ListInboxesRequest) Reset()

func (*ListInboxesRequest) String added in v0.1.2

func (x *ListInboxesRequest) String() string

type ListInboxesResponse added in v0.1.2

type ListInboxesResponse struct {

	// The list of inboxes.
	Inboxes []*model.Inbox `protobuf:"bytes,1,rep,name=inboxes,proto3" json:"inboxes,omitempty"`
	// A token that can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there are no subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// The total count of inboxes (may be approximate).
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListInboxesResponse) Descriptor deprecated added in v0.1.2

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

Deprecated: Use ListInboxesResponse.ProtoReflect.Descriptor instead.

func (*ListInboxesResponse) GetInboxes added in v0.1.2

func (x *ListInboxesResponse) GetInboxes() []*model.Inbox

func (*ListInboxesResponse) GetNextPageToken added in v0.1.2

func (x *ListInboxesResponse) GetNextPageToken() string

func (*ListInboxesResponse) GetTotalSize added in v0.1.2

func (x *ListInboxesResponse) GetTotalSize() int32

func (*ListInboxesResponse) ProtoMessage added in v0.1.2

func (*ListInboxesResponse) ProtoMessage()

func (*ListInboxesResponse) ProtoReflect added in v0.1.2

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

func (*ListInboxesResponse) Reset added in v0.1.2

func (x *ListInboxesResponse) Reset()

func (*ListInboxesResponse) String added in v0.1.2

func (x *ListInboxesResponse) String() string

type ListMemosRequest

type ListMemosRequest struct {

	// Optional. The maximum number of memos to return.
	// The service may return fewer than this value.
	// If unspecified, at most 50 memos will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A page token, received from a previous `ListMemos` call.
	// Provide this to retrieve the subsequent page.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Optional. The state of the memos to list.
	// Default to `NORMAL`. Set to `ARCHIVED` to list archived memos.
	State model.State `protobuf:"varint,3,opt,name=state,proto3,enum=model.State" json:"state,omitempty"`
	// Optional. The order to sort results by.
	// Default to "display_time desc".
	// Example: "display_time desc" or "create_time asc"
	OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// Optional. Filter to apply to the list results.
	// Filter is a CEL expression to filter memos.
	// Refer to `Shortcut.filter`.
	Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. If true, show deleted memos in the response.
	ShowDeleted bool `protobuf:"varint,6,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMemosRequest) Descriptor deprecated

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

Deprecated: Use ListMemosRequest.ProtoReflect.Descriptor instead.

func (*ListMemosRequest) GetFilter

func (x *ListMemosRequest) GetFilter() string

func (*ListMemosRequest) GetOrderBy

func (x *ListMemosRequest) GetOrderBy() string

func (*ListMemosRequest) GetPageSize

func (x *ListMemosRequest) GetPageSize() int32

func (*ListMemosRequest) GetPageToken

func (x *ListMemosRequest) GetPageToken() string

func (*ListMemosRequest) GetShowDeleted

func (x *ListMemosRequest) GetShowDeleted() bool

func (*ListMemosRequest) GetState

func (x *ListMemosRequest) GetState() model.State

func (*ListMemosRequest) ProtoMessage

func (*ListMemosRequest) ProtoMessage()

func (*ListMemosRequest) ProtoReflect

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

func (*ListMemosRequest) Reset

func (x *ListMemosRequest) Reset()

func (*ListMemosRequest) String

func (x *ListMemosRequest) String() string

type ListMemosResponse

type ListMemosResponse struct {

	// The list of memos.
	Memos []*model.Memo `protobuf:"bytes,1,rep,name=memos,proto3" json:"memos,omitempty"`
	// A token that can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there are no subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// The total count of memos (may be approximate).
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMemosResponse) Descriptor deprecated

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

Deprecated: Use ListMemosResponse.ProtoReflect.Descriptor instead.

func (*ListMemosResponse) GetMemos

func (x *ListMemosResponse) GetMemos() []*model.Memo

func (*ListMemosResponse) GetNextPageToken

func (x *ListMemosResponse) GetNextPageToken() string

func (*ListMemosResponse) GetTotalSize

func (x *ListMemosResponse) GetTotalSize() int32

func (*ListMemosResponse) ProtoMessage

func (*ListMemosResponse) ProtoMessage()

func (*ListMemosResponse) ProtoReflect

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

func (*ListMemosResponse) Reset

func (x *ListMemosResponse) Reset()

func (*ListMemosResponse) String

func (x *ListMemosResponse) String() string

type ListUserSessionsRequest added in v0.1.3

type ListUserSessionsRequest struct {

	// Required. The resource name of the parent.
	// Format: users/{user}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserSessionsRequest) Descriptor deprecated added in v0.1.3

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

Deprecated: Use ListUserSessionsRequest.ProtoReflect.Descriptor instead.

func (*ListUserSessionsRequest) GetParent added in v0.1.3

func (x *ListUserSessionsRequest) GetParent() string

func (*ListUserSessionsRequest) ProtoMessage added in v0.1.3

func (*ListUserSessionsRequest) ProtoMessage()

func (*ListUserSessionsRequest) ProtoReflect added in v0.1.3

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

func (*ListUserSessionsRequest) Reset added in v0.1.3

func (x *ListUserSessionsRequest) Reset()

func (*ListUserSessionsRequest) String added in v0.1.3

func (x *ListUserSessionsRequest) String() string

type ListUserSessionsResponse added in v0.1.3

type ListUserSessionsResponse struct {

	// The list of user sessions.
	Sessions []*model.UserSession `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserSessionsResponse) Descriptor deprecated added in v0.1.3

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

Deprecated: Use ListUserSessionsResponse.ProtoReflect.Descriptor instead.

func (*ListUserSessionsResponse) GetSessions added in v0.1.3

func (x *ListUserSessionsResponse) GetSessions() []*model.UserSession

func (*ListUserSessionsResponse) ProtoMessage added in v0.1.3

func (*ListUserSessionsResponse) ProtoMessage()

func (*ListUserSessionsResponse) ProtoReflect added in v0.1.3

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

func (*ListUserSessionsResponse) Reset added in v0.1.3

func (x *ListUserSessionsResponse) Reset()

func (*ListUserSessionsResponse) String added in v0.1.3

func (x *ListUserSessionsResponse) String() string

type ListUserSettingsRequest added in v0.1.1

type ListUserSettingsRequest struct {

	// Required. The parent resource whose settings will be listed.
	// Format: users/{user}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of settings to return.
	// The service may return fewer than this value.
	// If unspecified, at most 50 settings will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A page token, received from a previous `ListUserSettings` call.
	// Provide this to retrieve the subsequent page.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request message for ListUserSettings method.

func (*ListUserSettingsRequest) Descriptor deprecated added in v0.1.1

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

Deprecated: Use ListUserSettingsRequest.ProtoReflect.Descriptor instead.

func (*ListUserSettingsRequest) GetPageSize added in v0.1.1

func (x *ListUserSettingsRequest) GetPageSize() int32

func (*ListUserSettingsRequest) GetPageToken added in v0.1.1

func (x *ListUserSettingsRequest) GetPageToken() string

func (*ListUserSettingsRequest) GetParent added in v0.1.1

func (x *ListUserSettingsRequest) GetParent() string

func (*ListUserSettingsRequest) ProtoMessage added in v0.1.1

func (*ListUserSettingsRequest) ProtoMessage()

func (*ListUserSettingsRequest) ProtoReflect added in v0.1.1

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

func (*ListUserSettingsRequest) Reset added in v0.1.1

func (x *ListUserSettingsRequest) Reset()

func (*ListUserSettingsRequest) String added in v0.1.1

func (x *ListUserSettingsRequest) String() string

type ListUserSettingsResponse added in v0.1.1

type ListUserSettingsResponse struct {

	// The list of user settings.
	Settings []*model.UserSetting `protobuf:"bytes,1,rep,name=settings,proto3" json:"settings,omitempty"`
	// A token that can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there are no subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// The total count of settings (may be approximate).
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

Response message for ListUserSettings method.

func (*ListUserSettingsResponse) Descriptor deprecated added in v0.1.1

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

Deprecated: Use ListUserSettingsResponse.ProtoReflect.Descriptor instead.

func (*ListUserSettingsResponse) GetNextPageToken added in v0.1.1

func (x *ListUserSettingsResponse) GetNextPageToken() string

func (*ListUserSettingsResponse) GetSettings added in v0.1.1

func (x *ListUserSettingsResponse) GetSettings() []*model.UserSetting

func (*ListUserSettingsResponse) GetTotalSize added in v0.1.1

func (x *ListUserSettingsResponse) GetTotalSize() int32

func (*ListUserSettingsResponse) ProtoMessage added in v0.1.1

func (*ListUserSettingsResponse) ProtoMessage()

func (*ListUserSettingsResponse) ProtoReflect added in v0.1.1

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

func (*ListUserSettingsResponse) Reset added in v0.1.1

func (x *ListUserSettingsResponse) Reset()

func (*ListUserSettingsResponse) String added in v0.1.1

func (x *ListUserSettingsResponse) String() string

type MarkdownServiceClient

type MarkdownServiceClient interface {
	// ParseMarkdown parses the given markdown content and returns a list of nodes.
	// This is a utility method that transforms markdown text into structured nodes.
	ParseMarkdown(context.Context, *connect.Request[ParseMarkdownRequest]) (*connect.Response[ParseMarkdownResponse], error)
}

MarkdownServiceClient is a client for the api.v2.MarkdownService service.

func NewMarkdownServiceClient

func NewMarkdownServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) MarkdownServiceClient

NewMarkdownServiceClient constructs a client for the api.v2.MarkdownService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type MarkdownServiceHandler

type MarkdownServiceHandler interface {
	// ParseMarkdown parses the given markdown content and returns a list of nodes.
	// This is a utility method that transforms markdown text into structured nodes.
	ParseMarkdown(context.Context, *connect.Request[ParseMarkdownRequest]) (*connect.Response[ParseMarkdownResponse], error)
}

MarkdownServiceHandler is an implementation of the api.v2.MarkdownService service.

type MemoServiceClient

type MemoServiceClient interface {
	// CreateMemo creates a memo.
	CreateMemo(context.Context, *connect.Request[CreateMemoRequest]) (*connect.Response[model.Memo], error)
	// ListMemos lists memos with pagination and filter.
	ListMemos(context.Context, *connect.Request[ListMemosRequest]) (*connect.Response[ListMemosResponse], error)
	// GetMemo gets a memo.
	GetMemo(context.Context, *connect.Request[GetMemoRequest]) (*connect.Response[model.Memo], error)
}

MemoServiceClient is a client for the api.v2.MemoService service.

func NewMemoServiceClient

func NewMemoServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) MemoServiceClient

NewMemoServiceClient constructs a client for the api.v2.MemoService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type MemoServiceHandler

type MemoServiceHandler interface {
	// CreateMemo creates a memo.
	CreateMemo(context.Context, *connect.Request[CreateMemoRequest]) (*connect.Response[model.Memo], error)
	// ListMemos lists memos with pagination and filter.
	ListMemos(context.Context, *connect.Request[ListMemosRequest]) (*connect.Response[ListMemosResponse], error)
	// GetMemo gets a memo.
	GetMemo(context.Context, *connect.Request[GetMemoRequest]) (*connect.Response[model.Memo], error)
}

MemoServiceHandler is an implementation of the api.v2.MemoService service.

type ParseMarkdownRequest

type ParseMarkdownRequest struct {

	// The markdown content to parse.
	Markdown string `protobuf:"bytes,1,opt,name=markdown,proto3" json:"markdown,omitempty"`
	// contains filtered or unexported fields
}

func (*ParseMarkdownRequest) Descriptor deprecated

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

Deprecated: Use ParseMarkdownRequest.ProtoReflect.Descriptor instead.

func (*ParseMarkdownRequest) GetMarkdown

func (x *ParseMarkdownRequest) GetMarkdown() string

func (*ParseMarkdownRequest) ProtoMessage

func (*ParseMarkdownRequest) ProtoMessage()

func (*ParseMarkdownRequest) ProtoReflect

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

func (*ParseMarkdownRequest) Reset

func (x *ParseMarkdownRequest) Reset()

func (*ParseMarkdownRequest) String

func (x *ParseMarkdownRequest) String() string

type ParseMarkdownResponse

type ParseMarkdownResponse struct {

	// The parsed markdown nodes.
	Nodes []*model.Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// contains filtered or unexported fields
}

func (*ParseMarkdownResponse) Descriptor deprecated

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

Deprecated: Use ParseMarkdownResponse.ProtoReflect.Descriptor instead.

func (*ParseMarkdownResponse) GetNodes

func (x *ParseMarkdownResponse) GetNodes() []*model.Node

func (*ParseMarkdownResponse) ProtoMessage

func (*ParseMarkdownResponse) ProtoMessage()

func (*ParseMarkdownResponse) ProtoReflect

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

func (*ParseMarkdownResponse) Reset

func (x *ParseMarkdownResponse) Reset()

func (*ParseMarkdownResponse) String

func (x *ParseMarkdownResponse) String() string

type RevokeUserSessionRequest added in v0.1.3

type RevokeUserSessionRequest struct {

	// Required. The resource name of the session to revoke.
	// Format: users/{user}/sessions/{session}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*RevokeUserSessionRequest) Descriptor deprecated added in v0.1.3

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

Deprecated: Use RevokeUserSessionRequest.ProtoReflect.Descriptor instead.

func (*RevokeUserSessionRequest) GetName added in v0.1.3

func (x *RevokeUserSessionRequest) GetName() string

func (*RevokeUserSessionRequest) ProtoMessage added in v0.1.3

func (*RevokeUserSessionRequest) ProtoMessage()

func (*RevokeUserSessionRequest) ProtoReflect added in v0.1.3

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

func (*RevokeUserSessionRequest) Reset added in v0.1.3

func (x *RevokeUserSessionRequest) Reset()

func (*RevokeUserSessionRequest) String added in v0.1.3

func (x *RevokeUserSessionRequest) String() string

type SignInRequest

type SignInRequest struct {

	// The username to sign in with.
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// The password to sign in with.
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// Whether the session should never expire.
	NeverExpire bool `protobuf:"varint,3,opt,name=never_expire,json=neverExpire,proto3" json:"never_expire,omitempty"`
	// contains filtered or unexported fields
}

func (*SignInRequest) Descriptor deprecated

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

Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.

func (*SignInRequest) GetNeverExpire

func (x *SignInRequest) GetNeverExpire() bool

func (*SignInRequest) GetPassword

func (x *SignInRequest) GetPassword() string

func (*SignInRequest) GetUsername

func (x *SignInRequest) GetUsername() string

func (*SignInRequest) ProtoMessage

func (*SignInRequest) ProtoMessage()

func (*SignInRequest) ProtoReflect

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

func (*SignInRequest) Reset

func (x *SignInRequest) Reset()

func (*SignInRequest) String

func (x *SignInRequest) String() string

type SignOutRequest

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

func (*SignOutRequest) Descriptor deprecated

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

Deprecated: Use SignOutRequest.ProtoReflect.Descriptor instead.

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 SignUpRequest

type SignUpRequest struct {

	// The username to sign up with.
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// The password to sign up with.
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*SignUpRequest) Descriptor deprecated

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

Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.

func (*SignUpRequest) GetPassword

func (x *SignUpRequest) GetPassword() string

func (*SignUpRequest) GetUsername

func (x *SignUpRequest) GetUsername() string

func (*SignUpRequest) ProtoMessage

func (*SignUpRequest) ProtoMessage()

func (*SignUpRequest) ProtoReflect

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

func (*SignUpRequest) Reset

func (x *SignUpRequest) Reset()

func (*SignUpRequest) String

func (x *SignUpRequest) String() string

type UnimplementedAuthServiceHandler

type UnimplementedAuthServiceHandler struct{}

UnimplementedAuthServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedInboxServiceHandler added in v0.1.2

type UnimplementedInboxServiceHandler struct{}

UnimplementedInboxServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedInboxServiceHandler) ListInboxes added in v0.1.2

type UnimplementedMarkdownServiceHandler

type UnimplementedMarkdownServiceHandler struct{}

UnimplementedMarkdownServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedMemoServiceHandler

type UnimplementedMemoServiceHandler struct{}

UnimplementedMemoServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedMemoServiceHandler) CreateMemo

func (UnimplementedMemoServiceHandler) GetMemo

type UnimplementedUserServiceHandler

type UnimplementedUserServiceHandler struct{}

UnimplementedUserServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedUserServiceHandler) CreateUser

func (UnimplementedUserServiceHandler) GetUserSetting added in v0.1.1

func (UnimplementedUserServiceHandler) GetUserStats

func (UnimplementedUserServiceHandler) ListUserSessions added in v0.1.3

func (UnimplementedUserServiceHandler) ListUserSettings added in v0.1.1

func (UnimplementedUserServiceHandler) RevokeUserSession added in v0.1.3

func (UnimplementedUserServiceHandler) UpdateUser added in v0.1.3

func (UnimplementedUserServiceHandler) UpdateUserSetting added in v0.1.3

type UnimplementedWorkspaceServiceHandler

type UnimplementedWorkspaceServiceHandler struct{}

UnimplementedWorkspaceServiceHandler returns CodeUnimplemented from all methods.

type UpdateUserRequest added in v0.1.3

type UpdateUserRequest struct {

	// Required. The user to update.
	User *model.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// Required. The list of fields to update.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// Optional. If set to true, allows updating sensitive fields.
	AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated added in v0.1.3

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetAllowMissing added in v0.1.3

func (x *UpdateUserRequest) GetAllowMissing() bool

func (*UpdateUserRequest) GetUpdateMask added in v0.1.3

func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateUserRequest) GetUser added in v0.1.3

func (x *UpdateUserRequest) GetUser() *model.User

func (*UpdateUserRequest) ProtoMessage added in v0.1.3

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect added in v0.1.3

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

func (*UpdateUserRequest) Reset added in v0.1.3

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String added in v0.1.3

func (x *UpdateUserRequest) String() string

type UpdateUserSettingRequest added in v0.1.3

type UpdateUserSettingRequest struct {

	// Required. The user setting to update.
	Setting *model.UserSetting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"`
	// Required. The list of fields to update.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserSettingRequest) Descriptor deprecated added in v0.1.3

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

Deprecated: Use UpdateUserSettingRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserSettingRequest) GetSetting added in v0.1.3

func (x *UpdateUserSettingRequest) GetSetting() *model.UserSetting

func (*UpdateUserSettingRequest) GetUpdateMask added in v0.1.3

func (x *UpdateUserSettingRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateUserSettingRequest) ProtoMessage added in v0.1.3

func (*UpdateUserSettingRequest) ProtoMessage()

func (*UpdateUserSettingRequest) ProtoReflect added in v0.1.3

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

func (*UpdateUserSettingRequest) Reset added in v0.1.3

func (x *UpdateUserSettingRequest) Reset()

func (*UpdateUserSettingRequest) String added in v0.1.3

func (x *UpdateUserSettingRequest) String() string

type UserServiceClient

type UserServiceClient interface {
	// CreateUser creates a new user.
	CreateUser(context.Context, *connect.Request[CreateUserRequest]) (*connect.Response[model.User], error)
	// UpdateUser updates a user.
	UpdateUser(context.Context, *connect.Request[UpdateUserRequest]) (*connect.Response[model.User], error)
	// GetUserStats returns statistics for a specific user.
	GetUserStats(context.Context, *connect.Request[GetUserStatsRequest]) (*connect.Response[UserStats], error)
	// GetUserSetting returns the user setting.
	GetUserSetting(context.Context, *connect.Request[GetUserSettingRequest]) (*connect.Response[model.UserSetting], error)
	// UpdateUserSetting updates the user setting.
	UpdateUserSetting(context.Context, *connect.Request[UpdateUserSettingRequest]) (*connect.Response[model.UserSetting], error)
	// ListUserSettings returns a list of user settings.
	ListUserSettings(context.Context, *connect.Request[ListUserSettingsRequest]) (*connect.Response[ListUserSettingsResponse], error)
	// ListUserSessions returns a list of active sessions for a user.
	ListUserSessions(context.Context, *connect.Request[ListUserSessionsRequest]) (*connect.Response[ListUserSessionsResponse], error)
	// RevokeUserSession revokes a specific session for a user.
	RevokeUserSession(context.Context, *connect.Request[RevokeUserSessionRequest]) (*connect.Response[emptypb.Empty], error)
}

UserServiceClient is a client for the api.v2.UserService service.

func NewUserServiceClient

func NewUserServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) UserServiceClient

NewUserServiceClient constructs a client for the api.v2.UserService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type UserServiceHandler

type UserServiceHandler interface {
	// CreateUser creates a new user.
	CreateUser(context.Context, *connect.Request[CreateUserRequest]) (*connect.Response[model.User], error)
	// UpdateUser updates a user.
	UpdateUser(context.Context, *connect.Request[UpdateUserRequest]) (*connect.Response[model.User], error)
	// GetUserStats returns statistics for a specific user.
	GetUserStats(context.Context, *connect.Request[GetUserStatsRequest]) (*connect.Response[UserStats], error)
	// GetUserSetting returns the user setting.
	GetUserSetting(context.Context, *connect.Request[GetUserSettingRequest]) (*connect.Response[model.UserSetting], error)
	// UpdateUserSetting updates the user setting.
	UpdateUserSetting(context.Context, *connect.Request[UpdateUserSettingRequest]) (*connect.Response[model.UserSetting], error)
	// ListUserSettings returns a list of user settings.
	ListUserSettings(context.Context, *connect.Request[ListUserSettingsRequest]) (*connect.Response[ListUserSettingsResponse], error)
	// ListUserSessions returns a list of active sessions for a user.
	ListUserSessions(context.Context, *connect.Request[ListUserSessionsRequest]) (*connect.Response[ListUserSessionsResponse], error)
	// RevokeUserSession revokes a specific session for a user.
	RevokeUserSession(context.Context, *connect.Request[RevokeUserSessionRequest]) (*connect.Response[emptypb.Empty], error)
}

UserServiceHandler is an implementation of the api.v2.UserService service.

type UserStats

type UserStats struct {

	// The resource name of the user whose stats these are.
	// Format: users/{user}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The timestamps when the memos were displayed.
	MemoDisplayTimestamps []*timestamppb.Timestamp `` /* 126-byte string literal not displayed */
	// The stats of memo types.
	MemoTypeStats *UserStats_MemoTypeStats `protobuf:"bytes,3,opt,name=memo_type_stats,json=memoTypeStats,proto3" json:"memo_type_stats,omitempty"`
	// The count of tags.
	TagCount map[string]int32 `` /* 160-byte string literal not displayed */
	// The pinned memos of the user.
	PinnedMemos []string `protobuf:"bytes,5,rep,name=pinned_memos,json=pinnedMemos,proto3" json:"pinned_memos,omitempty"`
	// Total memo count.
	TotalMemoCount int32 `protobuf:"varint,6,opt,name=total_memo_count,json=totalMemoCount,proto3" json:"total_memo_count,omitempty"`
	// contains filtered or unexported fields
}

User statistics messages

func (*UserStats) Descriptor deprecated

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

Deprecated: Use UserStats.ProtoReflect.Descriptor instead.

func (*UserStats) GetMemoDisplayTimestamps

func (x *UserStats) GetMemoDisplayTimestamps() []*timestamppb.Timestamp

func (*UserStats) GetMemoTypeStats

func (x *UserStats) GetMemoTypeStats() *UserStats_MemoTypeStats

func (*UserStats) GetName

func (x *UserStats) GetName() string

func (*UserStats) GetPinnedMemos

func (x *UserStats) GetPinnedMemos() []string

func (*UserStats) GetTagCount

func (x *UserStats) GetTagCount() map[string]int32

func (*UserStats) GetTotalMemoCount

func (x *UserStats) GetTotalMemoCount() int32

func (*UserStats) ProtoMessage

func (*UserStats) ProtoMessage()

func (*UserStats) ProtoReflect

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

func (*UserStats) Reset

func (x *UserStats) Reset()

func (*UserStats) String

func (x *UserStats) String() string

type UserStats_MemoTypeStats

type UserStats_MemoTypeStats struct {
	LinkCount int32 `protobuf:"varint,1,opt,name=link_count,json=linkCount,proto3" json:"link_count,omitempty"`
	CodeCount int32 `protobuf:"varint,2,opt,name=code_count,json=codeCount,proto3" json:"code_count,omitempty"`
	TodoCount int32 `protobuf:"varint,3,opt,name=todo_count,json=todoCount,proto3" json:"todo_count,omitempty"`
	UndoCount int32 `protobuf:"varint,4,opt,name=undo_count,json=undoCount,proto3" json:"undo_count,omitempty"`
	// contains filtered or unexported fields
}

Memo type statistics.

func (*UserStats_MemoTypeStats) Descriptor deprecated

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

Deprecated: Use UserStats_MemoTypeStats.ProtoReflect.Descriptor instead.

func (*UserStats_MemoTypeStats) GetCodeCount

func (x *UserStats_MemoTypeStats) GetCodeCount() int32

func (*UserStats_MemoTypeStats) GetLinkCount

func (x *UserStats_MemoTypeStats) GetLinkCount() int32

func (*UserStats_MemoTypeStats) GetTodoCount

func (x *UserStats_MemoTypeStats) GetTodoCount() int32

func (*UserStats_MemoTypeStats) GetUndoCount

func (x *UserStats_MemoTypeStats) GetUndoCount() int32

func (*UserStats_MemoTypeStats) ProtoMessage

func (*UserStats_MemoTypeStats) ProtoMessage()

func (*UserStats_MemoTypeStats) ProtoReflect

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

func (*UserStats_MemoTypeStats) Reset

func (x *UserStats_MemoTypeStats) Reset()

func (*UserStats_MemoTypeStats) String

func (x *UserStats_MemoTypeStats) String() string

type WorkspaceServiceClient

type WorkspaceServiceClient interface {
	// Gets the workspace profile.
	GetWorkspaceProfile(context.Context, *connect.Request[GetWorkspaceProfileRequest]) (*connect.Response[model.WorkspaceProfile], error)
	// Gets a workspace setting.
	GetWorkspaceSetting(context.Context, *connect.Request[GetWorkspaceSettingRequest]) (*connect.Response[model.WorkspaceSetting], error)
}

WorkspaceServiceClient is a client for the api.v2.WorkspaceService service.

func NewWorkspaceServiceClient

func NewWorkspaceServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) WorkspaceServiceClient

NewWorkspaceServiceClient constructs a client for the api.v2.WorkspaceService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type WorkspaceServiceHandler

type WorkspaceServiceHandler interface {
	// Gets the workspace profile.
	GetWorkspaceProfile(context.Context, *connect.Request[GetWorkspaceProfileRequest]) (*connect.Response[model.WorkspaceProfile], error)
	// Gets a workspace setting.
	GetWorkspaceSetting(context.Context, *connect.Request[GetWorkspaceSettingRequest]) (*connect.Response[model.WorkspaceSetting], error)
}

WorkspaceServiceHandler is an implementation of the api.v2.WorkspaceService service.

Jump to

Keyboard shortcuts

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