apiv1

package
v1.0.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

README

Protocol Documentation

Table of Contents

Top

api/v1/common.proto

State
Name Number Description
STATE_UNSPECIFIED 0
ACTIVE 1
INACTIVE 2

Visibility
Name Number Description
VISIBILITY_UNSPECIFIED 0
WORKSPACE 1
PUBLIC 2

Top

api/v1/user_service.proto

CreateUserAccessTokenRequest
Field Type Label Description
id int32 id is the user id.
description string description is the description of the access token.
expires_at google.protobuf.Timestamp optional expires_at is the expiration time of the access token. If expires_at is not set, the access token will never expire.

CreateUserRequest
Field Type Label Description
user User

DeleteUserAccessTokenRequest
Field Type Label Description
id int32 id is the user id.
access_token string access_token is the access token to delete.

DeleteUserRequest
Field Type Label Description
id int32

GetUserRequest
Field Type Label Description
id int32

ListUserAccessTokensRequest
Field Type Label Description
id int32 id is the user id.

ListUserAccessTokensResponse
Field Type Label Description
access_tokens UserAccessToken repeated

ListUsersRequest

ListUsersResponse
Field Type Label Description
users User repeated

UpdateUserRequest
Field Type Label Description
user User
update_mask google.protobuf.FieldMask

User
Field Type Label Description
id int32
state State
created_time google.protobuf.Timestamp
updated_time google.protobuf.Timestamp
role Role
email string
nickname string
password string

UserAccessToken
Field Type Label Description
access_token string
description string
issued_at google.protobuf.Timestamp
expires_at google.protobuf.Timestamp

Role
Name Number Description
ROLE_UNSPECIFIED 0
ADMIN 1
USER 2

UserService
Method Name Request Type Response Type Description
ListUsers ListUsersRequest ListUsersResponse ListUsers returns a list of users.
GetUser GetUserRequest User GetUser returns a user by id.
CreateUser CreateUserRequest User CreateUser creates a new user.
UpdateUser UpdateUserRequest User
DeleteUser DeleteUserRequest .google.protobuf.Empty DeleteUser deletes a user by id.
ListUserAccessTokens ListUserAccessTokensRequest ListUserAccessTokensResponse ListUserAccessTokens returns a list of access tokens for a user.
CreateUserAccessToken CreateUserAccessTokenRequest UserAccessToken CreateUserAccessToken creates a new access token for a user.
DeleteUserAccessToken DeleteUserAccessTokenRequest .google.protobuf.Empty DeleteUserAccessToken deletes an access token for a user.

Top

api/v1/auth_service.proto

GetAuthStatusRequest

SignInRequest
Field Type Label Description
email string
password string

SignInWithSSORequest
Field Type Label Description
idp_id string The id of the SSO provider.
code string The code to sign in with.
redirect_uri string The redirect URI.

SignOutRequest

SignUpRequest
Field Type Label Description
email string
nickname string
password string

AuthService
Method Name Request Type Response Type Description
GetAuthStatus GetAuthStatusRequest User GetAuthStatus returns the current auth status of the user.
SignIn SignInRequest User SignIn signs in the user with the given username and password.
SignInWithSSO SignInWithSSORequest User SignInWithSSO signs in the user with the given SSO code.
SignUp SignUpRequest User SignUp signs up the user with the given username and password.
SignOut SignOutRequest .google.protobuf.Empty SignOut signs out the user.

Top

api/v1/collection_service.proto

Collection
Field Type Label Description
id int32
creator_id int32
created_time google.protobuf.Timestamp
updated_time google.protobuf.Timestamp
name string
title string
description string
shortcut_ids int32 repeated
visibility Visibility

CreateCollectionRequest
Field Type Label Description
collection Collection

DeleteCollectionRequest
Field Type Label Description
id int32

GetCollectionByNameRequest
Field Type Label Description
name string

GetCollectionRequest
Field Type Label Description
id int32

ListCollectionsRequest

ListCollectionsResponse
Field Type Label Description
collections Collection repeated

UpdateCollectionRequest
Field Type Label Description
collection Collection
update_mask google.protobuf.FieldMask

CollectionService
Method Name Request Type Response Type Description
ListCollections ListCollectionsRequest ListCollectionsResponse ListCollections returns a list of collections.
GetCollection GetCollectionRequest Collection GetCollection returns a collection by id.
GetCollectionByName GetCollectionByNameRequest Collection GetCollectionByName returns a collection by name.
CreateCollection CreateCollectionRequest Collection CreateCollection creates a collection.
UpdateCollection UpdateCollectionRequest Collection UpdateCollection updates a collection.
DeleteCollection DeleteCollectionRequest .google.protobuf.Empty DeleteCollection deletes a collection by id.

Top

api/v1/shortcut_service.proto

CreateShortcutRequest
Field Type Label Description
shortcut Shortcut

DeleteShortcutRequest
Field Type Label Description
id int32

GetShortcutAnalyticsRequest
Field Type Label Description
id int32

GetShortcutAnalyticsResponse
Field Type Label Description
references GetShortcutAnalyticsResponse.AnalyticsItem repeated
devices GetShortcutAnalyticsResponse.AnalyticsItem repeated
browsers GetShortcutAnalyticsResponse.AnalyticsItem repeated

GetShortcutAnalyticsResponse.AnalyticsItem
Field Type Label Description
name string
count int32

GetShortcutByNameRequest
Field Type Label Description
name string

GetShortcutRequest
Field Type Label Description
id int32

ListShortcutsRequest

ListShortcutsResponse
Field Type Label Description
shortcuts Shortcut repeated

Shortcut
Field Type Label Description
id int32
creator_id int32
created_time google.protobuf.Timestamp
updated_time google.protobuf.Timestamp
name string
link string
title string
tags string repeated
description string
visibility Visibility
view_count int32
og_metadata Shortcut.OpenGraphMetadata

Shortcut.OpenGraphMetadata
Field Type Label Description
title string
description string
image string

UpdateShortcutRequest
Field Type Label Description
shortcut Shortcut
update_mask google.protobuf.FieldMask

ShortcutService
Method Name Request Type Response Type Description
ListShortcuts ListShortcutsRequest ListShortcutsResponse ListShortcuts returns a list of shortcuts.
GetShortcut GetShortcutRequest Shortcut GetShortcut returns a shortcut by id.
GetShortcutByName GetShortcutByNameRequest Shortcut GetShortcutByName returns a shortcut by name.
CreateShortcut CreateShortcutRequest Shortcut CreateShortcut creates a shortcut.
UpdateShortcut UpdateShortcutRequest Shortcut UpdateShortcut updates a shortcut.
DeleteShortcut DeleteShortcutRequest .google.protobuf.Empty DeleteShortcut deletes a shortcut by name.
GetShortcutAnalytics GetShortcutAnalyticsRequest GetShortcutAnalyticsResponse GetShortcutAnalytics returns the analytics for a shortcut.

Top

api/v1/subscription_service.proto

DeleteSubscriptionRequest

GetSubscriptionRequest

Subscription
Field Type Label Description
plan PlanType
started_time google.protobuf.Timestamp
expires_time google.protobuf.Timestamp
features string repeated
seats int32
shortcuts_limit int32
collections_limit int32

UpdateSubscriptionRequest
Field Type Label Description
license_key string

PlanType
Name Number Description
PLAN_TYPE_UNSPECIFIED 0
FREE 1
PRO 2
ENTERPRISE 3

SubscriptionService
Method Name Request Type Response Type Description
GetSubscription GetSubscriptionRequest Subscription GetSubscription gets the current subscription of Slash instance.
UpdateSubscription UpdateSubscriptionRequest Subscription UpdateSubscription updates the subscription.
DeleteSubscription DeleteSubscriptionRequest Subscription DeleteSubscription deletes the subscription.

Top

api/v1/user_setting_service.proto

GetUserSettingRequest
Field Type Label Description
id int32 id is the user id.

UpdateUserSettingRequest
Field Type Label Description
id int32 id is the user id.
user_setting UserSetting user_setting is the user setting to update.
update_mask google.protobuf.FieldMask update_mask is the field mask to update.

UserSetting
Field Type Label Description
user_id int32
general UserSetting.GeneralSetting
access_tokens UserSetting.AccessTokensSetting

UserSetting.AccessTokensSetting
Field Type Label Description
access_tokens UserSetting.AccessTokensSetting.AccessToken repeated Nested repeated field

UserSetting.AccessTokensSetting.AccessToken
Field Type Label Description
access_token string The access token is a JWT token, including expiration time, issuer, etc.
description string A description for the access token.

UserSetting.GeneralSetting
Field Type Label Description
locale string
color_theme string

UserSettingService
Method Name Request Type Response Type Description
GetUserSetting GetUserSettingRequest UserSetting GetUserSetting returns the user setting.
UpdateUserSetting UpdateUserSettingRequest UserSetting UpdateUserSetting updates the user setting.

Top

api/v1/workspace_service.proto

GetWorkspaceProfileRequest

GetWorkspaceSettingRequest

IdentityProvider
Field Type Label Description
id string The unique identifier of the identity provider.
title string
type IdentityProvider.Type
config IdentityProviderConfig

IdentityProviderConfig
Field Type Label Description
oauth2 IdentityProviderConfig.OAuth2Config

IdentityProviderConfig.FieldMapping
Field Type Label Description
identifier string
display_name string

IdentityProviderConfig.OAuth2Config
Field Type Label Description
client_id string
client_secret string
auth_url string
token_url string
user_info_url string
scopes string repeated
field_mapping IdentityProviderConfig.FieldMapping

UpdateWorkspaceSettingRequest
Field Type Label Description
setting WorkspaceSetting The user setting.
update_mask google.protobuf.FieldMask The update mask.

WorkspaceProfile
Field Type Label Description
mode string Current workspace mode: dev, prod.
version string Current workspace version.
owner string The owner name. Format: "users/{id}"
subscription Subscription The workspace subscription.
custom_style string The custom style.
branding bytes The workspace branding.

WorkspaceSetting
Field Type Label Description
instance_url string The url of instance.
branding bytes The workspace custome branding.
custom_style string The custom style.
default_visibility Visibility The default visibility of shortcuts and collections.
identity_providers IdentityProvider repeated The identity providers.
disallow_user_registration bool Whether to disallow user registration by email&password.
disallow_password_auth bool Whether to disallow password authentication.

IdentityProvider.Type
Name Number Description
TYPE_UNSPECIFIED 0
OAUTH2 1

WorkspaceService
Method Name Request Type Response Type Description
GetWorkspaceProfile GetWorkspaceProfileRequest WorkspaceProfile
GetWorkspaceSetting GetWorkspaceSettingRequest WorkspaceSetting
UpdateWorkspaceSetting UpdateWorkspaceSettingRequest WorkspaceSetting

Scalar Value Types

.proto Type Notes C++ Java Python Go C# PHP Ruby
double double double float float64 double float Float
float float float float float32 float float Float
int32 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. int32 int int int32 int integer Bignum or Fixnum (as required)
int64 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. int64 long int/long int64 long integer/string Bignum
uint32 Uses variable-length encoding. uint32 int int/long uint32 uint integer Bignum or Fixnum (as required)
uint64 Uses variable-length encoding. uint64 long int/long uint64 ulong integer/string Bignum or Fixnum (as required)
sint32 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. int32 int int int32 int integer Bignum or Fixnum (as required)
sint64 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. int64 long int/long int64 long integer/string Bignum
fixed32 Always four bytes. More efficient than uint32 if values are often greater than 2^28. uint32 int int uint32 uint integer Bignum or Fixnum (as required)
fixed64 Always eight bytes. More efficient than uint64 if values are often greater than 2^56. uint64 long int/long uint64 ulong integer/string Bignum
sfixed32 Always four bytes. int32 int int int32 int integer Bignum or Fixnum (as required)
sfixed64 Always eight bytes. int64 long int/long int64 long integer/string Bignum
bool bool boolean boolean bool bool boolean TrueClass/FalseClass
string A string must always contain UTF-8 encoded or 7-bit ASCII text. string String str/unicode string string string String (UTF-8)
bytes May contain any arbitrary sequence of bytes. string ByteString str []byte ByteString string String (ASCII-8BIT)

Documentation

Overview

Package apiv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package apiv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package apiv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package apiv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package apiv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package apiv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package apiv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AuthService_GetAuthStatus_FullMethodName = "/slash.api.v1.AuthService/GetAuthStatus"
	AuthService_SignIn_FullMethodName        = "/slash.api.v1.AuthService/SignIn"
	AuthService_SignInWithSSO_FullMethodName = "/slash.api.v1.AuthService/SignInWithSSO"
	AuthService_SignUp_FullMethodName        = "/slash.api.v1.AuthService/SignUp"
	AuthService_SignOut_FullMethodName       = "/slash.api.v1.AuthService/SignOut"
)
View Source
const (
	CollectionService_ListCollections_FullMethodName     = "/slash.api.v1.CollectionService/ListCollections"
	CollectionService_GetCollection_FullMethodName       = "/slash.api.v1.CollectionService/GetCollection"
	CollectionService_GetCollectionByName_FullMethodName = "/slash.api.v1.CollectionService/GetCollectionByName"
	CollectionService_CreateCollection_FullMethodName    = "/slash.api.v1.CollectionService/CreateCollection"
	CollectionService_UpdateCollection_FullMethodName    = "/slash.api.v1.CollectionService/UpdateCollection"
	CollectionService_DeleteCollection_FullMethodName    = "/slash.api.v1.CollectionService/DeleteCollection"
)
View Source
const (
	ShortcutService_ListShortcuts_FullMethodName        = "/slash.api.v1.ShortcutService/ListShortcuts"
	ShortcutService_GetShortcut_FullMethodName          = "/slash.api.v1.ShortcutService/GetShortcut"
	ShortcutService_GetShortcutByName_FullMethodName    = "/slash.api.v1.ShortcutService/GetShortcutByName"
	ShortcutService_CreateShortcut_FullMethodName       = "/slash.api.v1.ShortcutService/CreateShortcut"
	ShortcutService_UpdateShortcut_FullMethodName       = "/slash.api.v1.ShortcutService/UpdateShortcut"
	ShortcutService_DeleteShortcut_FullMethodName       = "/slash.api.v1.ShortcutService/DeleteShortcut"
	ShortcutService_GetShortcutAnalytics_FullMethodName = "/slash.api.v1.ShortcutService/GetShortcutAnalytics"
)
View Source
const (
	SubscriptionService_GetSubscription_FullMethodName    = "/slash.api.v1.SubscriptionService/GetSubscription"
	SubscriptionService_UpdateSubscription_FullMethodName = "/slash.api.v1.SubscriptionService/UpdateSubscription"
	SubscriptionService_DeleteSubscription_FullMethodName = "/slash.api.v1.SubscriptionService/DeleteSubscription"
)
View Source
const (
	UserService_ListUsers_FullMethodName             = "/slash.api.v1.UserService/ListUsers"
	UserService_GetUser_FullMethodName               = "/slash.api.v1.UserService/GetUser"
	UserService_CreateUser_FullMethodName            = "/slash.api.v1.UserService/CreateUser"
	UserService_UpdateUser_FullMethodName            = "/slash.api.v1.UserService/UpdateUser"
	UserService_DeleteUser_FullMethodName            = "/slash.api.v1.UserService/DeleteUser"
	UserService_ListUserAccessTokens_FullMethodName  = "/slash.api.v1.UserService/ListUserAccessTokens"
	UserService_CreateUserAccessToken_FullMethodName = "/slash.api.v1.UserService/CreateUserAccessToken"
	UserService_DeleteUserAccessToken_FullMethodName = "/slash.api.v1.UserService/DeleteUserAccessToken"
)
View Source
const (
	UserSettingService_GetUserSetting_FullMethodName    = "/slash.api.v1.UserSettingService/GetUserSetting"
	UserSettingService_UpdateUserSetting_FullMethodName = "/slash.api.v1.UserSettingService/UpdateUserSetting"
)
View Source
const (
	WorkspaceService_GetWorkspaceProfile_FullMethodName    = "/slash.api.v1.WorkspaceService/GetWorkspaceProfile"
	WorkspaceService_GetWorkspaceSetting_FullMethodName    = "/slash.api.v1.WorkspaceService/GetWorkspaceSetting"
	WorkspaceService_UpdateWorkspaceSetting_FullMethodName = "/slash.api.v1.WorkspaceService/UpdateWorkspaceSetting"
)

Variables

View Source
var (
	State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "ACTIVE",
		2: "INACTIVE",
	}
	State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"ACTIVE":            1,
		"INACTIVE":          2,
	}
)

Enum value maps for State.

View Source
var (
	Visibility_name = map[int32]string{
		0: "VISIBILITY_UNSPECIFIED",
		1: "WORKSPACE",
		2: "PUBLIC",
	}
	Visibility_value = map[string]int32{
		"VISIBILITY_UNSPECIFIED": 0,
		"WORKSPACE":              1,
		"PUBLIC":                 2,
	}
)

Enum value maps for Visibility.

View Source
var (
	PlanType_name = map[int32]string{
		0: "PLAN_TYPE_UNSPECIFIED",
		1: "FREE",
		2: "PRO",
		3: "ENTERPRISE",
	}
	PlanType_value = map[string]int32{
		"PLAN_TYPE_UNSPECIFIED": 0,
		"FREE":                  1,
		"PRO":                   2,
		"ENTERPRISE":            3,
	}
)

Enum value maps for PlanType.

View Source
var (
	Role_name = map[int32]string{
		0: "ROLE_UNSPECIFIED",
		1: "ADMIN",
		2: "USER",
	}
	Role_value = map[string]int32{
		"ROLE_UNSPECIFIED": 0,
		"ADMIN":            1,
		"USER":             2,
	}
)

Enum value maps for Role.

View Source
var (
	IdentityProvider_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "OAUTH2",
	}
	IdentityProvider_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"OAUTH2":           1,
	}
)

Enum value maps for IdentityProvider_Type.

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "slash.api.v1.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAuthStatus",
			Handler:    _AuthService_GetAuthStatus_Handler,
		},
		{
			MethodName: "SignIn",
			Handler:    _AuthService_SignIn_Handler,
		},
		{
			MethodName: "SignInWithSSO",
			Handler:    _AuthService_SignInWithSSO_Handler,
		},
		{
			MethodName: "SignUp",
			Handler:    _AuthService_SignUp_Handler,
		},
		{
			MethodName: "SignOut",
			Handler:    _AuthService_SignOut_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/auth_service.proto",
}

AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var CollectionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "slash.api.v1.CollectionService",
	HandlerType: (*CollectionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListCollections",
			Handler:    _CollectionService_ListCollections_Handler,
		},
		{
			MethodName: "GetCollection",
			Handler:    _CollectionService_GetCollection_Handler,
		},
		{
			MethodName: "GetCollectionByName",
			Handler:    _CollectionService_GetCollectionByName_Handler,
		},
		{
			MethodName: "CreateCollection",
			Handler:    _CollectionService_CreateCollection_Handler,
		},
		{
			MethodName: "UpdateCollection",
			Handler:    _CollectionService_UpdateCollection_Handler,
		},
		{
			MethodName: "DeleteCollection",
			Handler:    _CollectionService_DeleteCollection_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/collection_service.proto",
}

CollectionService_ServiceDesc is the grpc.ServiceDesc for CollectionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_v1_auth_service_proto protoreflect.FileDescriptor
View Source
var File_api_v1_collection_service_proto protoreflect.FileDescriptor
View Source
var File_api_v1_common_proto protoreflect.FileDescriptor
View Source
var File_api_v1_shortcut_service_proto protoreflect.FileDescriptor
View Source
var File_api_v1_subscription_service_proto protoreflect.FileDescriptor
View Source
var File_api_v1_user_service_proto protoreflect.FileDescriptor
View Source
var File_api_v1_user_setting_service_proto protoreflect.FileDescriptor
View Source
var File_api_v1_workspace_service_proto protoreflect.FileDescriptor
View Source
var ShortcutService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "slash.api.v1.ShortcutService",
	HandlerType: (*ShortcutServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListShortcuts",
			Handler:    _ShortcutService_ListShortcuts_Handler,
		},
		{
			MethodName: "GetShortcut",
			Handler:    _ShortcutService_GetShortcut_Handler,
		},
		{
			MethodName: "GetShortcutByName",
			Handler:    _ShortcutService_GetShortcutByName_Handler,
		},
		{
			MethodName: "CreateShortcut",
			Handler:    _ShortcutService_CreateShortcut_Handler,
		},
		{
			MethodName: "UpdateShortcut",
			Handler:    _ShortcutService_UpdateShortcut_Handler,
		},
		{
			MethodName: "DeleteShortcut",
			Handler:    _ShortcutService_DeleteShortcut_Handler,
		},
		{
			MethodName: "GetShortcutAnalytics",
			Handler:    _ShortcutService_GetShortcutAnalytics_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/shortcut_service.proto",
}

ShortcutService_ServiceDesc is the grpc.ServiceDesc for ShortcutService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var SubscriptionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "slash.api.v1.SubscriptionService",
	HandlerType: (*SubscriptionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSubscription",
			Handler:    _SubscriptionService_GetSubscription_Handler,
		},
		{
			MethodName: "UpdateSubscription",
			Handler:    _SubscriptionService_UpdateSubscription_Handler,
		},
		{
			MethodName: "DeleteSubscription",
			Handler:    _SubscriptionService_DeleteSubscription_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/subscription_service.proto",
}

SubscriptionService_ServiceDesc is the grpc.ServiceDesc for SubscriptionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "slash.api.v1.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListUsers",
			Handler:    _UserService_ListUsers_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
		{
			MethodName: "ListUserAccessTokens",
			Handler:    _UserService_ListUserAccessTokens_Handler,
		},
		{
			MethodName: "CreateUserAccessToken",
			Handler:    _UserService_CreateUserAccessToken_Handler,
		},
		{
			MethodName: "DeleteUserAccessToken",
			Handler:    _UserService_DeleteUserAccessToken_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/user_service.proto",
}

UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var UserSettingService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "slash.api.v1.UserSettingService",
	HandlerType: (*UserSettingServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUserSetting",
			Handler:    _UserSettingService_GetUserSetting_Handler,
		},
		{
			MethodName: "UpdateUserSetting",
			Handler:    _UserSettingService_UpdateUserSetting_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/user_setting_service.proto",
}

UserSettingService_ServiceDesc is the grpc.ServiceDesc for UserSettingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var WorkspaceService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "slash.api.v1.WorkspaceService",
	HandlerType: (*WorkspaceServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetWorkspaceProfile",
			Handler:    _WorkspaceService_GetWorkspaceProfile_Handler,
		},
		{
			MethodName: "GetWorkspaceSetting",
			Handler:    _WorkspaceService_GetWorkspaceSetting_Handler,
		},
		{
			MethodName: "UpdateWorkspaceSetting",
			Handler:    _WorkspaceService_UpdateWorkspaceSetting_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/workspace_service.proto",
}

WorkspaceService_ServiceDesc is the grpc.ServiceDesc for WorkspaceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAuthServiceHandler

func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAuthServiceHandler registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAuthServiceHandlerClient

func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error

RegisterAuthServiceHandlerClient registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterAuthServiceHandlerFromEndpoint

func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAuthServiceHandlerFromEndpoint is same as RegisterAuthServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAuthServiceHandlerServer

func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error

RegisterAuthServiceHandlerServer registers the http handlers for service AuthService to "mux". UnaryRPC :call AuthServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

func RegisterCollectionServiceHandler

func RegisterCollectionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCollectionServiceHandler registers the http handlers for service CollectionService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCollectionServiceHandlerClient

func RegisterCollectionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CollectionServiceClient) error

RegisterCollectionServiceHandlerClient registers the http handlers for service CollectionService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CollectionServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CollectionServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CollectionServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterCollectionServiceHandlerFromEndpoint

func RegisterCollectionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCollectionServiceHandlerFromEndpoint is same as RegisterCollectionServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCollectionServiceHandlerServer

func RegisterCollectionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CollectionServiceServer) error

RegisterCollectionServiceHandlerServer registers the http handlers for service CollectionService to "mux". UnaryRPC :call CollectionServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCollectionServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterCollectionServiceServer

func RegisterCollectionServiceServer(s grpc.ServiceRegistrar, srv CollectionServiceServer)

func RegisterShortcutServiceHandler

func RegisterShortcutServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterShortcutServiceHandler registers the http handlers for service ShortcutService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterShortcutServiceHandlerClient

func RegisterShortcutServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ShortcutServiceClient) error

RegisterShortcutServiceHandlerClient registers the http handlers for service ShortcutService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ShortcutServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ShortcutServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ShortcutServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterShortcutServiceHandlerFromEndpoint

func RegisterShortcutServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterShortcutServiceHandlerFromEndpoint is same as RegisterShortcutServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterShortcutServiceHandlerServer

func RegisterShortcutServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ShortcutServiceServer) error

RegisterShortcutServiceHandlerServer registers the http handlers for service ShortcutService to "mux". UnaryRPC :call ShortcutServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterShortcutServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterShortcutServiceServer

func RegisterShortcutServiceServer(s grpc.ServiceRegistrar, srv ShortcutServiceServer)

func RegisterSubscriptionServiceHandler

func RegisterSubscriptionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSubscriptionServiceHandler registers the http handlers for service SubscriptionService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSubscriptionServiceHandlerClient

func RegisterSubscriptionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SubscriptionServiceClient) error

RegisterSubscriptionServiceHandlerClient registers the http handlers for service SubscriptionService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SubscriptionServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SubscriptionServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SubscriptionServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterSubscriptionServiceHandlerFromEndpoint

func RegisterSubscriptionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSubscriptionServiceHandlerFromEndpoint is same as RegisterSubscriptionServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSubscriptionServiceHandlerServer

func RegisterSubscriptionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SubscriptionServiceServer) error

RegisterSubscriptionServiceHandlerServer registers the http handlers for service SubscriptionService to "mux". UnaryRPC :call SubscriptionServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSubscriptionServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterSubscriptionServiceServer

func RegisterSubscriptionServiceServer(s grpc.ServiceRegistrar, srv SubscriptionServiceServer)

func RegisterUserServiceHandler

func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUserServiceHandlerClient

func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error

RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterUserServiceHandlerFromEndpoint

func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUserServiceHandlerServer

func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error

RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

func RegisterUserSettingServiceHandler

func RegisterUserSettingServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUserSettingServiceHandler registers the http handlers for service UserSettingService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUserSettingServiceHandlerClient

func RegisterUserSettingServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserSettingServiceClient) error

RegisterUserSettingServiceHandlerClient registers the http handlers for service UserSettingService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserSettingServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserSettingServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserSettingServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterUserSettingServiceHandlerFromEndpoint

func RegisterUserSettingServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUserSettingServiceHandlerFromEndpoint is same as RegisterUserSettingServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUserSettingServiceHandlerServer

func RegisterUserSettingServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserSettingServiceServer) error

RegisterUserSettingServiceHandlerServer registers the http handlers for service UserSettingService to "mux". UnaryRPC :call UserSettingServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserSettingServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterUserSettingServiceServer

func RegisterUserSettingServiceServer(s grpc.ServiceRegistrar, srv UserSettingServiceServer)

func RegisterWorkspaceServiceHandler

func RegisterWorkspaceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterWorkspaceServiceHandler registers the http handlers for service WorkspaceService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterWorkspaceServiceHandlerClient

func RegisterWorkspaceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WorkspaceServiceClient) error

RegisterWorkspaceServiceHandlerClient registers the http handlers for service WorkspaceService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WorkspaceServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WorkspaceServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "WorkspaceServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterWorkspaceServiceHandlerFromEndpoint

func RegisterWorkspaceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterWorkspaceServiceHandlerFromEndpoint is same as RegisterWorkspaceServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterWorkspaceServiceHandlerServer

func RegisterWorkspaceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WorkspaceServiceServer) error

RegisterWorkspaceServiceHandlerServer registers the http handlers for service WorkspaceService to "mux". UnaryRPC :call WorkspaceServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterWorkspaceServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterWorkspaceServiceServer

func RegisterWorkspaceServiceServer(s grpc.ServiceRegistrar, srv WorkspaceServiceServer)

Types

type AuthServiceClient

type AuthServiceClient interface {
	// GetAuthStatus returns the current auth status of the user.
	GetAuthStatus(ctx context.Context, in *GetAuthStatusRequest, opts ...grpc.CallOption) (*User, error)
	// SignIn signs in the user with the given username and password.
	SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*User, error)
	// SignInWithSSO signs in the user with the given SSO code.
	SignInWithSSO(ctx context.Context, in *SignInWithSSORequest, opts ...grpc.CallOption) (*User, error)
	// SignUp signs up the user with the given username and password.
	SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*User, error)
	// SignOut signs out the user.
	SignOut(ctx context.Context, in *SignOutRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

AuthServiceClient is the client API for AuthService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AuthServiceServer

type AuthServiceServer interface {
	// GetAuthStatus returns the current auth status of the user.
	GetAuthStatus(context.Context, *GetAuthStatusRequest) (*User, error)
	// SignIn signs in the user with the given username and password.
	SignIn(context.Context, *SignInRequest) (*User, error)
	// SignInWithSSO signs in the user with the given SSO code.
	SignInWithSSO(context.Context, *SignInWithSSORequest) (*User, error)
	// SignUp signs up the user with the given username and password.
	SignUp(context.Context, *SignUpRequest) (*User, error)
	// SignOut signs out the user.
	SignOut(context.Context, *SignOutRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility.

type Collection

type Collection struct {
	Id          int32                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	CreatorId   int32                  `protobuf:"varint,2,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
	CreatedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
	UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,omitempty"`
	Name        string                 `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	Title       string                 `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`
	Description string                 `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
	ShortcutIds []int32                `protobuf:"varint,9,rep,packed,name=shortcut_ids,json=shortcutIds,proto3" json:"shortcut_ids,omitempty"`
	Visibility  Visibility             `protobuf:"varint,10,opt,name=visibility,proto3,enum=slash.api.v1.Visibility" json:"visibility,omitempty"`
	// contains filtered or unexported fields
}

func (*Collection) Descriptor deprecated

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

Deprecated: Use Collection.ProtoReflect.Descriptor instead.

func (*Collection) GetCreatedTime

func (x *Collection) GetCreatedTime() *timestamppb.Timestamp

func (*Collection) GetCreatorId

func (x *Collection) GetCreatorId() int32

func (*Collection) GetDescription

func (x *Collection) GetDescription() string

func (*Collection) GetId

func (x *Collection) GetId() int32

func (*Collection) GetName

func (x *Collection) GetName() string

func (*Collection) GetShortcutIds

func (x *Collection) GetShortcutIds() []int32

func (*Collection) GetTitle

func (x *Collection) GetTitle() string

func (*Collection) GetUpdatedTime

func (x *Collection) GetUpdatedTime() *timestamppb.Timestamp

func (*Collection) GetVisibility

func (x *Collection) GetVisibility() Visibility

func (*Collection) ProtoMessage

func (*Collection) ProtoMessage()

func (*Collection) ProtoReflect

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

func (*Collection) Reset

func (x *Collection) Reset()

func (*Collection) String

func (x *Collection) String() string

type CollectionServiceClient

type CollectionServiceClient interface {
	// ListCollections returns a list of collections.
	ListCollections(ctx context.Context, in *ListCollectionsRequest, opts ...grpc.CallOption) (*ListCollectionsResponse, error)
	// GetCollection returns a collection by id.
	GetCollection(ctx context.Context, in *GetCollectionRequest, opts ...grpc.CallOption) (*Collection, error)
	// GetCollectionByName returns a collection by name.
	GetCollectionByName(ctx context.Context, in *GetCollectionByNameRequest, opts ...grpc.CallOption) (*Collection, error)
	// CreateCollection creates a collection.
	CreateCollection(ctx context.Context, in *CreateCollectionRequest, opts ...grpc.CallOption) (*Collection, error)
	// UpdateCollection updates a collection.
	UpdateCollection(ctx context.Context, in *UpdateCollectionRequest, opts ...grpc.CallOption) (*Collection, error)
	// DeleteCollection deletes a collection by id.
	DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

CollectionServiceClient is the client API for CollectionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CollectionServiceServer

type CollectionServiceServer interface {
	// ListCollections returns a list of collections.
	ListCollections(context.Context, *ListCollectionsRequest) (*ListCollectionsResponse, error)
	// GetCollection returns a collection by id.
	GetCollection(context.Context, *GetCollectionRequest) (*Collection, error)
	// GetCollectionByName returns a collection by name.
	GetCollectionByName(context.Context, *GetCollectionByNameRequest) (*Collection, error)
	// CreateCollection creates a collection.
	CreateCollection(context.Context, *CreateCollectionRequest) (*Collection, error)
	// UpdateCollection updates a collection.
	UpdateCollection(context.Context, *UpdateCollectionRequest) (*Collection, error)
	// DeleteCollection deletes a collection by id.
	DeleteCollection(context.Context, *DeleteCollectionRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

CollectionServiceServer is the server API for CollectionService service. All implementations must embed UnimplementedCollectionServiceServer for forward compatibility.

type CreateCollectionRequest

type CreateCollectionRequest struct {
	Collection *Collection `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCollectionRequest) Descriptor deprecated

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

Deprecated: Use CreateCollectionRequest.ProtoReflect.Descriptor instead.

func (*CreateCollectionRequest) GetCollection

func (x *CreateCollectionRequest) GetCollection() *Collection

func (*CreateCollectionRequest) ProtoMessage

func (*CreateCollectionRequest) ProtoMessage()

func (*CreateCollectionRequest) ProtoReflect

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

func (*CreateCollectionRequest) Reset

func (x *CreateCollectionRequest) Reset()

func (*CreateCollectionRequest) String

func (x *CreateCollectionRequest) String() string

type CreateShortcutRequest

type CreateShortcutRequest struct {
	Shortcut *Shortcut `protobuf:"bytes,1,opt,name=shortcut,proto3" json:"shortcut,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateShortcutRequest) Descriptor deprecated

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

Deprecated: Use CreateShortcutRequest.ProtoReflect.Descriptor instead.

func (*CreateShortcutRequest) GetShortcut

func (x *CreateShortcutRequest) GetShortcut() *Shortcut

func (*CreateShortcutRequest) ProtoMessage

func (*CreateShortcutRequest) ProtoMessage()

func (*CreateShortcutRequest) ProtoReflect

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

func (*CreateShortcutRequest) Reset

func (x *CreateShortcutRequest) Reset()

func (*CreateShortcutRequest) String

func (x *CreateShortcutRequest) String() string

type CreateUserAccessTokenRequest

type CreateUserAccessTokenRequest struct {

	// id is the user id.
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// description is the description of the access token.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// expires_at is the expiration time of the access token.
	// If expires_at is not set, the access token will never expire.
	ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserAccessTokenRequest) Descriptor deprecated

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

Deprecated: Use CreateUserAccessTokenRequest.ProtoReflect.Descriptor instead.

func (*CreateUserAccessTokenRequest) GetDescription

func (x *CreateUserAccessTokenRequest) GetDescription() string

func (*CreateUserAccessTokenRequest) GetExpiresAt

func (*CreateUserAccessTokenRequest) GetId

func (*CreateUserAccessTokenRequest) ProtoMessage

func (*CreateUserAccessTokenRequest) ProtoMessage()

func (*CreateUserAccessTokenRequest) ProtoReflect

func (*CreateUserAccessTokenRequest) Reset

func (x *CreateUserAccessTokenRequest) Reset()

func (*CreateUserAccessTokenRequest) String

type CreateUserRequest

type CreateUserRequest struct {
	User *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() *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 DeleteCollectionRequest

type DeleteCollectionRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCollectionRequest) Descriptor deprecated

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

Deprecated: Use DeleteCollectionRequest.ProtoReflect.Descriptor instead.

func (*DeleteCollectionRequest) GetId

func (x *DeleteCollectionRequest) GetId() int32

func (*DeleteCollectionRequest) ProtoMessage

func (*DeleteCollectionRequest) ProtoMessage()

func (*DeleteCollectionRequest) ProtoReflect

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

func (*DeleteCollectionRequest) Reset

func (x *DeleteCollectionRequest) Reset()

func (*DeleteCollectionRequest) String

func (x *DeleteCollectionRequest) String() string

type DeleteShortcutRequest

type DeleteShortcutRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteShortcutRequest) Descriptor deprecated

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

Deprecated: Use DeleteShortcutRequest.ProtoReflect.Descriptor instead.

func (*DeleteShortcutRequest) GetId

func (x *DeleteShortcutRequest) GetId() int32

func (*DeleteShortcutRequest) ProtoMessage

func (*DeleteShortcutRequest) ProtoMessage()

func (*DeleteShortcutRequest) ProtoReflect

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

func (*DeleteShortcutRequest) Reset

func (x *DeleteShortcutRequest) Reset()

func (*DeleteShortcutRequest) String

func (x *DeleteShortcutRequest) String() string

type DeleteSubscriptionRequest

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

func (*DeleteSubscriptionRequest) Descriptor deprecated

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

Deprecated: Use DeleteSubscriptionRequest.ProtoReflect.Descriptor instead.

func (*DeleteSubscriptionRequest) ProtoMessage

func (*DeleteSubscriptionRequest) ProtoMessage()

func (*DeleteSubscriptionRequest) ProtoReflect

func (*DeleteSubscriptionRequest) Reset

func (x *DeleteSubscriptionRequest) Reset()

func (*DeleteSubscriptionRequest) String

func (x *DeleteSubscriptionRequest) String() string

type DeleteUserAccessTokenRequest

type DeleteUserAccessTokenRequest struct {

	// id is the user id.
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// access_token is the access token to delete.
	AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserAccessTokenRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserAccessTokenRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserAccessTokenRequest) GetAccessToken

func (x *DeleteUserAccessTokenRequest) GetAccessToken() string

func (*DeleteUserAccessTokenRequest) GetId

func (*DeleteUserAccessTokenRequest) ProtoMessage

func (*DeleteUserAccessTokenRequest) ProtoMessage()

func (*DeleteUserAccessTokenRequest) ProtoReflect

func (*DeleteUserAccessTokenRequest) Reset

func (x *DeleteUserAccessTokenRequest) Reset()

func (*DeleteUserAccessTokenRequest) String

type DeleteUserRequest

type DeleteUserRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetId

func (x *DeleteUserRequest) GetId() int32

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) 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 GetCollectionByNameRequest

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

func (*GetCollectionByNameRequest) Descriptor deprecated

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

Deprecated: Use GetCollectionByNameRequest.ProtoReflect.Descriptor instead.

func (*GetCollectionByNameRequest) GetName

func (x *GetCollectionByNameRequest) GetName() string

func (*GetCollectionByNameRequest) ProtoMessage

func (*GetCollectionByNameRequest) ProtoMessage()

func (*GetCollectionByNameRequest) ProtoReflect

func (*GetCollectionByNameRequest) Reset

func (x *GetCollectionByNameRequest) Reset()

func (*GetCollectionByNameRequest) String

func (x *GetCollectionByNameRequest) String() string

type GetCollectionRequest

type GetCollectionRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCollectionRequest) Descriptor deprecated

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

Deprecated: Use GetCollectionRequest.ProtoReflect.Descriptor instead.

func (*GetCollectionRequest) GetId

func (x *GetCollectionRequest) GetId() int32

func (*GetCollectionRequest) ProtoMessage

func (*GetCollectionRequest) ProtoMessage()

func (*GetCollectionRequest) ProtoReflect

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

func (*GetCollectionRequest) Reset

func (x *GetCollectionRequest) Reset()

func (*GetCollectionRequest) String

func (x *GetCollectionRequest) String() string

type GetShortcutAnalyticsRequest

type GetShortcutAnalyticsRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetShortcutAnalyticsRequest) Descriptor deprecated

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

Deprecated: Use GetShortcutAnalyticsRequest.ProtoReflect.Descriptor instead.

func (*GetShortcutAnalyticsRequest) GetId

func (*GetShortcutAnalyticsRequest) ProtoMessage

func (*GetShortcutAnalyticsRequest) ProtoMessage()

func (*GetShortcutAnalyticsRequest) ProtoReflect

func (*GetShortcutAnalyticsRequest) Reset

func (x *GetShortcutAnalyticsRequest) Reset()

func (*GetShortcutAnalyticsRequest) String

func (x *GetShortcutAnalyticsRequest) String() string

type GetShortcutAnalyticsResponse

type GetShortcutAnalyticsResponse struct {
	References []*GetShortcutAnalyticsResponse_AnalyticsItem `protobuf:"bytes,1,rep,name=references,proto3" json:"references,omitempty"`
	Devices    []*GetShortcutAnalyticsResponse_AnalyticsItem `protobuf:"bytes,2,rep,name=devices,proto3" json:"devices,omitempty"`
	Browsers   []*GetShortcutAnalyticsResponse_AnalyticsItem `protobuf:"bytes,3,rep,name=browsers,proto3" json:"browsers,omitempty"`
	// contains filtered or unexported fields
}

func (*GetShortcutAnalyticsResponse) Descriptor deprecated

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

Deprecated: Use GetShortcutAnalyticsResponse.ProtoReflect.Descriptor instead.

func (*GetShortcutAnalyticsResponse) GetBrowsers

func (*GetShortcutAnalyticsResponse) GetDevices

func (*GetShortcutAnalyticsResponse) GetReferences

func (*GetShortcutAnalyticsResponse) ProtoMessage

func (*GetShortcutAnalyticsResponse) ProtoMessage()

func (*GetShortcutAnalyticsResponse) ProtoReflect

func (*GetShortcutAnalyticsResponse) Reset

func (x *GetShortcutAnalyticsResponse) Reset()

func (*GetShortcutAnalyticsResponse) String

type GetShortcutAnalyticsResponse_AnalyticsItem

type GetShortcutAnalyticsResponse_AnalyticsItem struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Count int32  `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*GetShortcutAnalyticsResponse_AnalyticsItem) Descriptor deprecated

Deprecated: Use GetShortcutAnalyticsResponse_AnalyticsItem.ProtoReflect.Descriptor instead.

func (*GetShortcutAnalyticsResponse_AnalyticsItem) GetCount

func (*GetShortcutAnalyticsResponse_AnalyticsItem) GetName

func (*GetShortcutAnalyticsResponse_AnalyticsItem) ProtoMessage

func (*GetShortcutAnalyticsResponse_AnalyticsItem) ProtoReflect

func (*GetShortcutAnalyticsResponse_AnalyticsItem) Reset

func (*GetShortcutAnalyticsResponse_AnalyticsItem) String

type GetShortcutByNameRequest

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

func (*GetShortcutByNameRequest) Descriptor deprecated

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

Deprecated: Use GetShortcutByNameRequest.ProtoReflect.Descriptor instead.

func (*GetShortcutByNameRequest) GetName

func (x *GetShortcutByNameRequest) GetName() string

func (*GetShortcutByNameRequest) ProtoMessage

func (*GetShortcutByNameRequest) ProtoMessage()

func (*GetShortcutByNameRequest) ProtoReflect

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

func (*GetShortcutByNameRequest) Reset

func (x *GetShortcutByNameRequest) Reset()

func (*GetShortcutByNameRequest) String

func (x *GetShortcutByNameRequest) String() string

type GetShortcutRequest

type GetShortcutRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetShortcutRequest) Descriptor deprecated

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

Deprecated: Use GetShortcutRequest.ProtoReflect.Descriptor instead.

func (*GetShortcutRequest) GetId

func (x *GetShortcutRequest) GetId() int32

func (*GetShortcutRequest) ProtoMessage

func (*GetShortcutRequest) ProtoMessage()

func (*GetShortcutRequest) ProtoReflect

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

func (*GetShortcutRequest) Reset

func (x *GetShortcutRequest) Reset()

func (*GetShortcutRequest) String

func (x *GetShortcutRequest) String() string

type GetSubscriptionRequest

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

func (*GetSubscriptionRequest) Descriptor deprecated

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

Deprecated: Use GetSubscriptionRequest.ProtoReflect.Descriptor instead.

func (*GetSubscriptionRequest) ProtoMessage

func (*GetSubscriptionRequest) ProtoMessage()

func (*GetSubscriptionRequest) ProtoReflect

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

func (*GetSubscriptionRequest) Reset

func (x *GetSubscriptionRequest) Reset()

func (*GetSubscriptionRequest) String

func (x *GetSubscriptionRequest) String() string

type GetUserRequest

type GetUserRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() int32

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserSettingRequest

type GetUserSettingRequest struct {

	// id is the user id.
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserSettingRequest) Descriptor deprecated

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

Deprecated: Use GetUserSettingRequest.ProtoReflect.Descriptor instead.

func (*GetUserSettingRequest) GetId

func (x *GetUserSettingRequest) GetId() int32

func (*GetUserSettingRequest) ProtoMessage

func (*GetUserSettingRequest) ProtoMessage()

func (*GetUserSettingRequest) ProtoReflect

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

func (*GetUserSettingRequest) Reset

func (x *GetUserSettingRequest) Reset()

func (*GetUserSettingRequest) String

func (x *GetUserSettingRequest) String() string

type GetWorkspaceProfileRequest

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

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 {
	// contains filtered or unexported fields
}

func (*GetWorkspaceSettingRequest) Descriptor deprecated

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

Deprecated: Use GetWorkspaceSettingRequest.ProtoReflect.Descriptor instead.

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 IdentityProvider

type IdentityProvider struct {

	// The unique identifier of the identity provider.
	Id     string                  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title  string                  `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Type   IdentityProvider_Type   `protobuf:"varint,3,opt,name=type,proto3,enum=slash.api.v1.IdentityProvider_Type" json:"type,omitempty"`
	Config *IdentityProviderConfig `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*IdentityProvider) Descriptor deprecated

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

Deprecated: Use IdentityProvider.ProtoReflect.Descriptor instead.

func (*IdentityProvider) GetConfig

func (x *IdentityProvider) GetConfig() *IdentityProviderConfig

func (*IdentityProvider) GetId

func (x *IdentityProvider) GetId() string

func (*IdentityProvider) GetTitle

func (x *IdentityProvider) GetTitle() string

func (*IdentityProvider) GetType

func (*IdentityProvider) ProtoMessage

func (*IdentityProvider) ProtoMessage()

func (*IdentityProvider) ProtoReflect

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

func (*IdentityProvider) Reset

func (x *IdentityProvider) Reset()

func (*IdentityProvider) String

func (x *IdentityProvider) String() string

type IdentityProviderConfig

type IdentityProviderConfig struct {

	// Types that are assignable to Config:
	//
	//	*IdentityProviderConfig_Oauth2
	Config isIdentityProviderConfig_Config `protobuf_oneof:"config"`
	// contains filtered or unexported fields
}

func (*IdentityProviderConfig) Descriptor deprecated

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

Deprecated: Use IdentityProviderConfig.ProtoReflect.Descriptor instead.

func (*IdentityProviderConfig) GetConfig

func (m *IdentityProviderConfig) GetConfig() isIdentityProviderConfig_Config

func (*IdentityProviderConfig) GetOauth2

func (*IdentityProviderConfig) ProtoMessage

func (*IdentityProviderConfig) ProtoMessage()

func (*IdentityProviderConfig) ProtoReflect

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

func (*IdentityProviderConfig) Reset

func (x *IdentityProviderConfig) Reset()

func (*IdentityProviderConfig) String

func (x *IdentityProviderConfig) String() string

type IdentityProviderConfig_FieldMapping

type IdentityProviderConfig_FieldMapping struct {
	Identifier  string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// contains filtered or unexported fields
}

func (*IdentityProviderConfig_FieldMapping) Descriptor deprecated

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

Deprecated: Use IdentityProviderConfig_FieldMapping.ProtoReflect.Descriptor instead.

func (*IdentityProviderConfig_FieldMapping) GetDisplayName

func (x *IdentityProviderConfig_FieldMapping) GetDisplayName() string

func (*IdentityProviderConfig_FieldMapping) GetIdentifier

func (x *IdentityProviderConfig_FieldMapping) GetIdentifier() string

func (*IdentityProviderConfig_FieldMapping) ProtoMessage

func (*IdentityProviderConfig_FieldMapping) ProtoMessage()

func (*IdentityProviderConfig_FieldMapping) ProtoReflect

func (*IdentityProviderConfig_FieldMapping) Reset

func (*IdentityProviderConfig_FieldMapping) String

type IdentityProviderConfig_OAuth2Config

type IdentityProviderConfig_OAuth2Config struct {
	ClientId     string                               `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	ClientSecret string                               `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	AuthUrl      string                               `protobuf:"bytes,3,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"`
	TokenUrl     string                               `protobuf:"bytes,4,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"`
	UserInfoUrl  string                               `protobuf:"bytes,5,opt,name=user_info_url,json=userInfoUrl,proto3" json:"user_info_url,omitempty"`
	Scopes       []string                             `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"`
	FieldMapping *IdentityProviderConfig_FieldMapping `protobuf:"bytes,7,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`
	// contains filtered or unexported fields
}

func (*IdentityProviderConfig_OAuth2Config) Descriptor deprecated

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

Deprecated: Use IdentityProviderConfig_OAuth2Config.ProtoReflect.Descriptor instead.

func (*IdentityProviderConfig_OAuth2Config) GetAuthUrl

func (*IdentityProviderConfig_OAuth2Config) GetClientId

func (*IdentityProviderConfig_OAuth2Config) GetClientSecret

func (x *IdentityProviderConfig_OAuth2Config) GetClientSecret() string

func (*IdentityProviderConfig_OAuth2Config) GetFieldMapping

func (*IdentityProviderConfig_OAuth2Config) GetScopes

func (*IdentityProviderConfig_OAuth2Config) GetTokenUrl

func (*IdentityProviderConfig_OAuth2Config) GetUserInfoUrl

func (x *IdentityProviderConfig_OAuth2Config) GetUserInfoUrl() string

func (*IdentityProviderConfig_OAuth2Config) ProtoMessage

func (*IdentityProviderConfig_OAuth2Config) ProtoMessage()

func (*IdentityProviderConfig_OAuth2Config) ProtoReflect

func (*IdentityProviderConfig_OAuth2Config) Reset

func (*IdentityProviderConfig_OAuth2Config) String

type IdentityProviderConfig_Oauth2

type IdentityProviderConfig_Oauth2 struct {
	Oauth2 *IdentityProviderConfig_OAuth2Config `protobuf:"bytes,1,opt,name=oauth2,proto3,oneof"`
}

type IdentityProvider_Type

type IdentityProvider_Type int32
const (
	IdentityProvider_TYPE_UNSPECIFIED IdentityProvider_Type = 0
	IdentityProvider_OAUTH2           IdentityProvider_Type = 1
)

func (IdentityProvider_Type) Descriptor

func (IdentityProvider_Type) Enum

func (IdentityProvider_Type) EnumDescriptor deprecated

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

Deprecated: Use IdentityProvider_Type.Descriptor instead.

func (IdentityProvider_Type) Number

func (IdentityProvider_Type) String

func (x IdentityProvider_Type) String() string

func (IdentityProvider_Type) Type

type ListCollectionsRequest

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

func (*ListCollectionsRequest) Descriptor deprecated

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

Deprecated: Use ListCollectionsRequest.ProtoReflect.Descriptor instead.

func (*ListCollectionsRequest) ProtoMessage

func (*ListCollectionsRequest) ProtoMessage()

func (*ListCollectionsRequest) ProtoReflect

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

func (*ListCollectionsRequest) Reset

func (x *ListCollectionsRequest) Reset()

func (*ListCollectionsRequest) String

func (x *ListCollectionsRequest) String() string

type ListCollectionsResponse

type ListCollectionsResponse struct {
	Collections []*Collection `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCollectionsResponse) Descriptor deprecated

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

Deprecated: Use ListCollectionsResponse.ProtoReflect.Descriptor instead.

func (*ListCollectionsResponse) GetCollections

func (x *ListCollectionsResponse) GetCollections() []*Collection

func (*ListCollectionsResponse) ProtoMessage

func (*ListCollectionsResponse) ProtoMessage()

func (*ListCollectionsResponse) ProtoReflect

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

func (*ListCollectionsResponse) Reset

func (x *ListCollectionsResponse) Reset()

func (*ListCollectionsResponse) String

func (x *ListCollectionsResponse) String() string

type ListShortcutsRequest

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

func (*ListShortcutsRequest) Descriptor deprecated

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

Deprecated: Use ListShortcutsRequest.ProtoReflect.Descriptor instead.

func (*ListShortcutsRequest) ProtoMessage

func (*ListShortcutsRequest) ProtoMessage()

func (*ListShortcutsRequest) ProtoReflect

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

func (*ListShortcutsRequest) Reset

func (x *ListShortcutsRequest) Reset()

func (*ListShortcutsRequest) String

func (x *ListShortcutsRequest) String() string

type ListShortcutsResponse

type ListShortcutsResponse struct {
	Shortcuts []*Shortcut `protobuf:"bytes,1,rep,name=shortcuts,proto3" json:"shortcuts,omitempty"`
	// contains filtered or unexported fields
}

func (*ListShortcutsResponse) Descriptor deprecated

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

Deprecated: Use ListShortcutsResponse.ProtoReflect.Descriptor instead.

func (*ListShortcutsResponse) GetShortcuts

func (x *ListShortcutsResponse) GetShortcuts() []*Shortcut

func (*ListShortcutsResponse) ProtoMessage

func (*ListShortcutsResponse) ProtoMessage()

func (*ListShortcutsResponse) ProtoReflect

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

func (*ListShortcutsResponse) Reset

func (x *ListShortcutsResponse) Reset()

func (*ListShortcutsResponse) String

func (x *ListShortcutsResponse) String() string

type ListUserAccessTokensRequest

type ListUserAccessTokensRequest struct {

	// id is the user id.
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserAccessTokensRequest) Descriptor deprecated

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

Deprecated: Use ListUserAccessTokensRequest.ProtoReflect.Descriptor instead.

func (*ListUserAccessTokensRequest) GetId

func (*ListUserAccessTokensRequest) ProtoMessage

func (*ListUserAccessTokensRequest) ProtoMessage()

func (*ListUserAccessTokensRequest) ProtoReflect

func (*ListUserAccessTokensRequest) Reset

func (x *ListUserAccessTokensRequest) Reset()

func (*ListUserAccessTokensRequest) String

func (x *ListUserAccessTokensRequest) String() string

type ListUserAccessTokensResponse

type ListUserAccessTokensResponse struct {
	AccessTokens []*UserAccessToken `protobuf:"bytes,1,rep,name=access_tokens,json=accessTokens,proto3" json:"access_tokens,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserAccessTokensResponse) Descriptor deprecated

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

Deprecated: Use ListUserAccessTokensResponse.ProtoReflect.Descriptor instead.

func (*ListUserAccessTokensResponse) GetAccessTokens

func (x *ListUserAccessTokensResponse) GetAccessTokens() []*UserAccessToken

func (*ListUserAccessTokensResponse) ProtoMessage

func (*ListUserAccessTokensResponse) ProtoMessage()

func (*ListUserAccessTokensResponse) ProtoReflect

func (*ListUserAccessTokensResponse) Reset

func (x *ListUserAccessTokensResponse) Reset()

func (*ListUserAccessTokensResponse) String

type ListUsersRequest

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

func (*ListUsersRequest) Descriptor deprecated

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

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect

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

func (*ListUsersRequest) Reset

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (x *ListUsersRequest) String() string

type ListUsersResponse

type ListUsersResponse struct {
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersResponse) Descriptor deprecated

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

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

func (*ListUsersResponse) GetUsers

func (x *ListUsersResponse) GetUsers() []*User

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect

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

func (*ListUsersResponse) Reset

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) String

func (x *ListUsersResponse) String() string

type PlanType

type PlanType int32
const (
	PlanType_PLAN_TYPE_UNSPECIFIED PlanType = 0
	PlanType_FREE                  PlanType = 1
	PlanType_PRO                   PlanType = 2
	PlanType_ENTERPRISE            PlanType = 3
)

func (PlanType) Descriptor

func (PlanType) Descriptor() protoreflect.EnumDescriptor

func (PlanType) Enum

func (x PlanType) Enum() *PlanType

func (PlanType) EnumDescriptor deprecated

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

Deprecated: Use PlanType.Descriptor instead.

func (PlanType) Number

func (x PlanType) Number() protoreflect.EnumNumber

func (PlanType) String

func (x PlanType) String() string

func (PlanType) Type

type Role

type Role int32
const (
	Role_ROLE_UNSPECIFIED Role = 0
	Role_ADMIN            Role = 1
	Role_USER             Role = 2
)

func (Role) Descriptor

func (Role) Descriptor() protoreflect.EnumDescriptor

func (Role) Enum

func (x Role) Enum() *Role

func (Role) EnumDescriptor deprecated

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

Deprecated: Use Role.Descriptor instead.

func (Role) Number

func (x Role) Number() protoreflect.EnumNumber

func (Role) String

func (x Role) String() string

func (Role) Type

func (Role) Type() protoreflect.EnumType

type Shortcut

type Shortcut struct {
	Id          int32                       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	CreatorId   int32                       `protobuf:"varint,2,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
	CreatedTime *timestamppb.Timestamp      `protobuf:"bytes,3,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
	UpdatedTime *timestamppb.Timestamp      `protobuf:"bytes,4,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,omitempty"`
	Name        string                      `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	Link        string                      `protobuf:"bytes,7,opt,name=link,proto3" json:"link,omitempty"`
	Title       string                      `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"`
	Tags        []string                    `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty"`
	Description string                      `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"`
	Visibility  Visibility                  `protobuf:"varint,11,opt,name=visibility,proto3,enum=slash.api.v1.Visibility" json:"visibility,omitempty"`
	ViewCount   int32                       `protobuf:"varint,12,opt,name=view_count,json=viewCount,proto3" json:"view_count,omitempty"`
	OgMetadata  *Shortcut_OpenGraphMetadata `protobuf:"bytes,13,opt,name=og_metadata,json=ogMetadata,proto3" json:"og_metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Shortcut) Descriptor deprecated

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

Deprecated: Use Shortcut.ProtoReflect.Descriptor instead.

func (*Shortcut) GetCreatedTime

func (x *Shortcut) GetCreatedTime() *timestamppb.Timestamp

func (*Shortcut) GetCreatorId

func (x *Shortcut) GetCreatorId() int32

func (*Shortcut) GetDescription

func (x *Shortcut) GetDescription() string

func (*Shortcut) GetId

func (x *Shortcut) GetId() int32
func (x *Shortcut) GetLink() string

func (*Shortcut) GetName

func (x *Shortcut) GetName() string

func (*Shortcut) GetOgMetadata

func (x *Shortcut) GetOgMetadata() *Shortcut_OpenGraphMetadata

func (*Shortcut) GetTags

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

func (*Shortcut) GetTitle

func (x *Shortcut) GetTitle() string

func (*Shortcut) GetUpdatedTime

func (x *Shortcut) GetUpdatedTime() *timestamppb.Timestamp

func (*Shortcut) GetViewCount

func (x *Shortcut) GetViewCount() int32

func (*Shortcut) GetVisibility

func (x *Shortcut) GetVisibility() Visibility

func (*Shortcut) ProtoMessage

func (*Shortcut) ProtoMessage()

func (*Shortcut) ProtoReflect

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

func (*Shortcut) Reset

func (x *Shortcut) Reset()

func (*Shortcut) String

func (x *Shortcut) String() string

type ShortcutServiceClient

type ShortcutServiceClient interface {
	// ListShortcuts returns a list of shortcuts.
	ListShortcuts(ctx context.Context, in *ListShortcutsRequest, opts ...grpc.CallOption) (*ListShortcutsResponse, error)
	// GetShortcut returns a shortcut by id.
	GetShortcut(ctx context.Context, in *GetShortcutRequest, opts ...grpc.CallOption) (*Shortcut, error)
	// GetShortcutByName returns a shortcut by name.
	GetShortcutByName(ctx context.Context, in *GetShortcutByNameRequest, opts ...grpc.CallOption) (*Shortcut, error)
	// CreateShortcut creates a shortcut.
	CreateShortcut(ctx context.Context, in *CreateShortcutRequest, opts ...grpc.CallOption) (*Shortcut, error)
	// UpdateShortcut updates a shortcut.
	UpdateShortcut(ctx context.Context, in *UpdateShortcutRequest, opts ...grpc.CallOption) (*Shortcut, error)
	// DeleteShortcut deletes a shortcut by name.
	DeleteShortcut(ctx context.Context, in *DeleteShortcutRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// GetShortcutAnalytics returns the analytics for a shortcut.
	GetShortcutAnalytics(ctx context.Context, in *GetShortcutAnalyticsRequest, opts ...grpc.CallOption) (*GetShortcutAnalyticsResponse, error)
}

ShortcutServiceClient is the client API for ShortcutService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ShortcutServiceServer

type ShortcutServiceServer interface {
	// ListShortcuts returns a list of shortcuts.
	ListShortcuts(context.Context, *ListShortcutsRequest) (*ListShortcutsResponse, error)
	// GetShortcut returns a shortcut by id.
	GetShortcut(context.Context, *GetShortcutRequest) (*Shortcut, error)
	// GetShortcutByName returns a shortcut by name.
	GetShortcutByName(context.Context, *GetShortcutByNameRequest) (*Shortcut, error)
	// CreateShortcut creates a shortcut.
	CreateShortcut(context.Context, *CreateShortcutRequest) (*Shortcut, error)
	// UpdateShortcut updates a shortcut.
	UpdateShortcut(context.Context, *UpdateShortcutRequest) (*Shortcut, error)
	// DeleteShortcut deletes a shortcut by name.
	DeleteShortcut(context.Context, *DeleteShortcutRequest) (*emptypb.Empty, error)
	// GetShortcutAnalytics returns the analytics for a shortcut.
	GetShortcutAnalytics(context.Context, *GetShortcutAnalyticsRequest) (*GetShortcutAnalyticsResponse, error)
	// contains filtered or unexported methods
}

ShortcutServiceServer is the server API for ShortcutService service. All implementations must embed UnimplementedShortcutServiceServer for forward compatibility.

type Shortcut_OpenGraphMetadata

type Shortcut_OpenGraphMetadata struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Image       string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*Shortcut_OpenGraphMetadata) Descriptor deprecated

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

Deprecated: Use Shortcut_OpenGraphMetadata.ProtoReflect.Descriptor instead.

func (*Shortcut_OpenGraphMetadata) GetDescription

func (x *Shortcut_OpenGraphMetadata) GetDescription() string

func (*Shortcut_OpenGraphMetadata) GetImage

func (x *Shortcut_OpenGraphMetadata) GetImage() string

func (*Shortcut_OpenGraphMetadata) GetTitle

func (x *Shortcut_OpenGraphMetadata) GetTitle() string

func (*Shortcut_OpenGraphMetadata) ProtoMessage

func (*Shortcut_OpenGraphMetadata) ProtoMessage()

func (*Shortcut_OpenGraphMetadata) ProtoReflect

func (*Shortcut_OpenGraphMetadata) Reset

func (x *Shortcut_OpenGraphMetadata) Reset()

func (*Shortcut_OpenGraphMetadata) String

func (x *Shortcut_OpenGraphMetadata) String() string

type SignInRequest

type SignInRequest struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*SignInRequest) Descriptor deprecated

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

Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.

func (*SignInRequest) GetEmail

func (x *SignInRequest) GetEmail() string

func (*SignInRequest) GetPassword

func (x *SignInRequest) GetPassword() 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 SignInWithSSORequest

type SignInWithSSORequest struct {

	// The id of the SSO provider.
	IdpId string `protobuf:"bytes,1,opt,name=idp_id,json=idpId,proto3" json:"idp_id,omitempty"`
	// The code to sign in with.
	Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// The redirect URI.
	RedirectUri string `protobuf:"bytes,3,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
	// contains filtered or unexported fields
}

func (*SignInWithSSORequest) Descriptor deprecated

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

Deprecated: Use SignInWithSSORequest.ProtoReflect.Descriptor instead.

func (*SignInWithSSORequest) GetCode

func (x *SignInWithSSORequest) GetCode() string

func (*SignInWithSSORequest) GetIdpId

func (x *SignInWithSSORequest) GetIdpId() string

func (*SignInWithSSORequest) GetRedirectUri

func (x *SignInWithSSORequest) GetRedirectUri() string

func (*SignInWithSSORequest) ProtoMessage

func (*SignInWithSSORequest) ProtoMessage()

func (*SignInWithSSORequest) ProtoReflect

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

func (*SignInWithSSORequest) Reset

func (x *SignInWithSSORequest) Reset()

func (*SignInWithSSORequest) String

func (x *SignInWithSSORequest) 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 {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Password string `protobuf:"bytes,3,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) GetEmail

func (x *SignUpRequest) GetEmail() string

func (*SignUpRequest) GetNickname

func (x *SignUpRequest) GetNickname() string

func (*SignUpRequest) GetPassword

func (x *SignUpRequest) GetPassword() 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 State

type State int32
const (
	State_STATE_UNSPECIFIED State = 0
	State_ACTIVE            State = 1
	State_INACTIVE          State = 2
)

func (State) Descriptor

func (State) Descriptor() protoreflect.EnumDescriptor

func (State) Enum

func (x State) Enum() *State

func (State) EnumDescriptor deprecated

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

Deprecated: Use State.Descriptor instead.

func (State) Number

func (x State) Number() protoreflect.EnumNumber

func (State) String

func (x State) String() string

func (State) Type

func (State) Type() protoreflect.EnumType

type Subscription

type Subscription struct {
	Plan             PlanType               `protobuf:"varint,1,opt,name=plan,proto3,enum=slash.api.v1.PlanType" json:"plan,omitempty"`
	StartedTime      *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"`
	ExpiresTime      *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_time,json=expiresTime,proto3" json:"expires_time,omitempty"`
	Features         []string               `protobuf:"bytes,4,rep,name=features,proto3" json:"features,omitempty"`
	Seats            int32                  `protobuf:"varint,5,opt,name=seats,proto3" json:"seats,omitempty"`
	ShortcutsLimit   int32                  `protobuf:"varint,6,opt,name=shortcuts_limit,json=shortcutsLimit,proto3" json:"shortcuts_limit,omitempty"`
	CollectionsLimit int32                  `protobuf:"varint,7,opt,name=collections_limit,json=collectionsLimit,proto3" json:"collections_limit,omitempty"`
	// contains filtered or unexported fields
}

func (*Subscription) Descriptor deprecated

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

Deprecated: Use Subscription.ProtoReflect.Descriptor instead.

func (*Subscription) GetCollectionsLimit

func (x *Subscription) GetCollectionsLimit() int32

func (*Subscription) GetExpiresTime

func (x *Subscription) GetExpiresTime() *timestamppb.Timestamp

func (*Subscription) GetFeatures

func (x *Subscription) GetFeatures() []string

func (*Subscription) GetPlan

func (x *Subscription) GetPlan() PlanType

func (*Subscription) GetSeats

func (x *Subscription) GetSeats() int32

func (*Subscription) GetShortcutsLimit

func (x *Subscription) GetShortcutsLimit() int32

func (*Subscription) GetStartedTime

func (x *Subscription) GetStartedTime() *timestamppb.Timestamp

func (*Subscription) ProtoMessage

func (*Subscription) ProtoMessage()

func (*Subscription) ProtoReflect

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

func (*Subscription) Reset

func (x *Subscription) Reset()

func (*Subscription) String

func (x *Subscription) String() string

type SubscriptionServiceClient

type SubscriptionServiceClient interface {
	// GetSubscription gets the current subscription of Slash instance.
	GetSubscription(ctx context.Context, in *GetSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error)
	// UpdateSubscription updates the subscription.
	UpdateSubscription(ctx context.Context, in *UpdateSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error)
	// DeleteSubscription deletes the subscription.
	DeleteSubscription(ctx context.Context, in *DeleteSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error)
}

SubscriptionServiceClient is the client API for SubscriptionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type SubscriptionServiceServer

type SubscriptionServiceServer interface {
	// GetSubscription gets the current subscription of Slash instance.
	GetSubscription(context.Context, *GetSubscriptionRequest) (*Subscription, error)
	// UpdateSubscription updates the subscription.
	UpdateSubscription(context.Context, *UpdateSubscriptionRequest) (*Subscription, error)
	// DeleteSubscription deletes the subscription.
	DeleteSubscription(context.Context, *DeleteSubscriptionRequest) (*Subscription, error)
	// contains filtered or unexported methods
}

SubscriptionServiceServer is the server API for SubscriptionService service. All implementations must embed UnimplementedSubscriptionServiceServer for forward compatibility.

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct{}

UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAuthServiceServer) GetAuthStatus

func (UnimplementedAuthServiceServer) SignIn

func (UnimplementedAuthServiceServer) SignInWithSSO

func (UnimplementedAuthServiceServer) SignOut

func (UnimplementedAuthServiceServer) SignUp

type UnimplementedCollectionServiceServer

type UnimplementedCollectionServiceServer struct{}

UnimplementedCollectionServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedCollectionServiceServer) CreateCollection

func (UnimplementedCollectionServiceServer) DeleteCollection

func (UnimplementedCollectionServiceServer) GetCollection

func (UnimplementedCollectionServiceServer) GetCollectionByName

func (UnimplementedCollectionServiceServer) ListCollections

func (UnimplementedCollectionServiceServer) UpdateCollection

type UnimplementedShortcutServiceServer

type UnimplementedShortcutServiceServer struct{}

UnimplementedShortcutServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedShortcutServiceServer) CreateShortcut

func (UnimplementedShortcutServiceServer) DeleteShortcut

func (UnimplementedShortcutServiceServer) GetShortcut

func (UnimplementedShortcutServiceServer) GetShortcutByName

func (UnimplementedShortcutServiceServer) ListShortcuts

func (UnimplementedShortcutServiceServer) UpdateShortcut

type UnimplementedSubscriptionServiceServer

type UnimplementedSubscriptionServiceServer struct{}

UnimplementedSubscriptionServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedSubscriptionServiceServer) DeleteSubscription

func (UnimplementedSubscriptionServiceServer) GetSubscription

func (UnimplementedSubscriptionServiceServer) UpdateSubscription

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct{}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) CreateUserAccessToken

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) DeleteUserAccessToken

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) ListUsers

func (UnimplementedUserServiceServer) UpdateUser

type UnimplementedUserSettingServiceServer

type UnimplementedUserSettingServiceServer struct{}

UnimplementedUserSettingServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedUserSettingServiceServer) GetUserSetting

func (UnimplementedUserSettingServiceServer) UpdateUserSetting

type UnimplementedWorkspaceServiceServer

type UnimplementedWorkspaceServiceServer struct{}

UnimplementedWorkspaceServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedWorkspaceServiceServer) GetWorkspaceProfile

func (UnimplementedWorkspaceServiceServer) GetWorkspaceSetting

func (UnimplementedWorkspaceServiceServer) UpdateWorkspaceSetting

type UnsafeAuthServiceServer

type UnsafeAuthServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.

type UnsafeCollectionServiceServer

type UnsafeCollectionServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCollectionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CollectionServiceServer will result in compilation errors.

type UnsafeShortcutServiceServer

type UnsafeShortcutServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeShortcutServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShortcutServiceServer will result in compilation errors.

type UnsafeSubscriptionServiceServer

type UnsafeSubscriptionServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSubscriptionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SubscriptionServiceServer will result in compilation errors.

type UnsafeUserServiceServer

type UnsafeUserServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.

type UnsafeUserSettingServiceServer

type UnsafeUserSettingServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserSettingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserSettingServiceServer will result in compilation errors.

type UnsafeWorkspaceServiceServer

type UnsafeWorkspaceServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeWorkspaceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WorkspaceServiceServer will result in compilation errors.

type UpdateCollectionRequest

type UpdateCollectionRequest struct {
	Collection *Collection            `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCollectionRequest) Descriptor deprecated

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

Deprecated: Use UpdateCollectionRequest.ProtoReflect.Descriptor instead.

func (*UpdateCollectionRequest) GetCollection

func (x *UpdateCollectionRequest) GetCollection() *Collection

func (*UpdateCollectionRequest) GetUpdateMask

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

func (*UpdateCollectionRequest) ProtoMessage

func (*UpdateCollectionRequest) ProtoMessage()

func (*UpdateCollectionRequest) ProtoReflect

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

func (*UpdateCollectionRequest) Reset

func (x *UpdateCollectionRequest) Reset()

func (*UpdateCollectionRequest) String

func (x *UpdateCollectionRequest) String() string

type UpdateShortcutRequest

type UpdateShortcutRequest struct {
	Shortcut   *Shortcut              `protobuf:"bytes,1,opt,name=shortcut,proto3" json:"shortcut,omitempty"`
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateShortcutRequest) Descriptor deprecated

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

Deprecated: Use UpdateShortcutRequest.ProtoReflect.Descriptor instead.

func (*UpdateShortcutRequest) GetShortcut

func (x *UpdateShortcutRequest) GetShortcut() *Shortcut

func (*UpdateShortcutRequest) GetUpdateMask

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

func (*UpdateShortcutRequest) ProtoMessage

func (*UpdateShortcutRequest) ProtoMessage()

func (*UpdateShortcutRequest) ProtoReflect

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

func (*UpdateShortcutRequest) Reset

func (x *UpdateShortcutRequest) Reset()

func (*UpdateShortcutRequest) String

func (x *UpdateShortcutRequest) String() string

type UpdateSubscriptionRequest

type UpdateSubscriptionRequest struct {
	LicenseKey string `protobuf:"bytes,1,opt,name=license_key,json=licenseKey,proto3" json:"license_key,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSubscriptionRequest) Descriptor deprecated

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

Deprecated: Use UpdateSubscriptionRequest.ProtoReflect.Descriptor instead.

func (*UpdateSubscriptionRequest) GetLicenseKey

func (x *UpdateSubscriptionRequest) GetLicenseKey() string

func (*UpdateSubscriptionRequest) ProtoMessage

func (*UpdateSubscriptionRequest) ProtoMessage()

func (*UpdateSubscriptionRequest) ProtoReflect

func (*UpdateSubscriptionRequest) Reset

func (x *UpdateSubscriptionRequest) Reset()

func (*UpdateSubscriptionRequest) String

func (x *UpdateSubscriptionRequest) String() string

type UpdateUserRequest

type UpdateUserRequest struct {
	User       *User                  `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetUpdateMask

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

func (*UpdateUserRequest) GetUser

func (x *UpdateUserRequest) GetUser() *User

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type UpdateUserSettingRequest

type UpdateUserSettingRequest struct {

	// id is the user id.
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// user_setting is the user setting to update.
	UserSetting *UserSetting `protobuf:"bytes,2,opt,name=user_setting,json=userSetting,proto3" json:"user_setting,omitempty"`
	// update_mask is the field mask to update.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserSettingRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserSettingRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserSettingRequest) GetId

func (x *UpdateUserSettingRequest) GetId() int32

func (*UpdateUserSettingRequest) GetUpdateMask

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

func (*UpdateUserSettingRequest) GetUserSetting

func (x *UpdateUserSettingRequest) GetUserSetting() *UserSetting

func (*UpdateUserSettingRequest) ProtoMessage

func (*UpdateUserSettingRequest) ProtoMessage()

func (*UpdateUserSettingRequest) ProtoReflect

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

func (*UpdateUserSettingRequest) Reset

func (x *UpdateUserSettingRequest) Reset()

func (*UpdateUserSettingRequest) String

func (x *UpdateUserSettingRequest) String() string

type UpdateWorkspaceSettingRequest

type UpdateWorkspaceSettingRequest struct {

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

func (*UpdateWorkspaceSettingRequest) Descriptor deprecated

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

Deprecated: Use UpdateWorkspaceSettingRequest.ProtoReflect.Descriptor instead.

func (*UpdateWorkspaceSettingRequest) GetSetting

func (*UpdateWorkspaceSettingRequest) GetUpdateMask

func (*UpdateWorkspaceSettingRequest) ProtoMessage

func (*UpdateWorkspaceSettingRequest) ProtoMessage()

func (*UpdateWorkspaceSettingRequest) ProtoReflect

func (*UpdateWorkspaceSettingRequest) Reset

func (x *UpdateWorkspaceSettingRequest) Reset()

func (*UpdateWorkspaceSettingRequest) String

type User

type User struct {
	Id          int32                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	State       State                  `protobuf:"varint,2,opt,name=state,proto3,enum=slash.api.v1.State" json:"state,omitempty"`
	CreatedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
	UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,omitempty"`
	Role        Role                   `protobuf:"varint,6,opt,name=role,proto3,enum=slash.api.v1.Role" json:"role,omitempty"`
	Email       string                 `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"`
	Nickname    string                 `protobuf:"bytes,8,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Password    string                 `protobuf:"bytes,9,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreatedTime

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

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() int32

func (*User) GetNickname

func (x *User) GetNickname() string

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetRole

func (x *User) GetRole() Role

func (*User) GetState

func (x *User) GetState() State

func (*User) GetUpdatedTime

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

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

type UserAccessToken

type UserAccessToken struct {
	AccessToken string                 `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	Description string                 `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	IssuedAt    *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
	ExpiresAt   *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// contains filtered or unexported fields
}

func (*UserAccessToken) Descriptor deprecated

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

Deprecated: Use UserAccessToken.ProtoReflect.Descriptor instead.

func (*UserAccessToken) GetAccessToken

func (x *UserAccessToken) GetAccessToken() string

func (*UserAccessToken) GetDescription

func (x *UserAccessToken) GetDescription() string

func (*UserAccessToken) GetExpiresAt

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

func (*UserAccessToken) GetIssuedAt

func (x *UserAccessToken) GetIssuedAt() *timestamppb.Timestamp

func (*UserAccessToken) ProtoMessage

func (*UserAccessToken) ProtoMessage()

func (*UserAccessToken) ProtoReflect

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

func (*UserAccessToken) Reset

func (x *UserAccessToken) Reset()

func (*UserAccessToken) String

func (x *UserAccessToken) String() string

type UserServiceClient

type UserServiceClient interface {
	// ListUsers returns a list of users.
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
	// GetUser returns a user by id.
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
	// CreateUser creates a new user.
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error)
	// DeleteUser deletes a user by id.
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ListUserAccessTokens returns a list of access tokens for a user.
	ListUserAccessTokens(ctx context.Context, in *ListUserAccessTokensRequest, opts ...grpc.CallOption) (*ListUserAccessTokensResponse, error)
	// CreateUserAccessToken creates a new access token for a user.
	CreateUserAccessToken(ctx context.Context, in *CreateUserAccessTokenRequest, opts ...grpc.CallOption) (*UserAccessToken, error)
	// DeleteUserAccessToken deletes an access token for a user.
	DeleteUserAccessToken(ctx context.Context, in *DeleteUserAccessTokenRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

UserServiceClient is the client API for UserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type UserServiceServer

type UserServiceServer interface {
	// ListUsers returns a list of users.
	ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
	// GetUser returns a user by id.
	GetUser(context.Context, *GetUserRequest) (*User, error)
	// CreateUser creates a new user.
	CreateUser(context.Context, *CreateUserRequest) (*User, error)
	UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
	// DeleteUser deletes a user by id.
	DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
	// ListUserAccessTokens returns a list of access tokens for a user.
	ListUserAccessTokens(context.Context, *ListUserAccessTokensRequest) (*ListUserAccessTokensResponse, error)
	// CreateUserAccessToken creates a new access token for a user.
	CreateUserAccessToken(context.Context, *CreateUserAccessTokenRequest) (*UserAccessToken, error)
	// DeleteUserAccessToken deletes an access token for a user.
	DeleteUserAccessToken(context.Context, *DeleteUserAccessTokenRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility.

type UserSetting

type UserSetting struct {
	UserId       int32                            `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	General      *UserSetting_GeneralSetting      `protobuf:"bytes,2,opt,name=general,proto3" json:"general,omitempty"`
	AccessTokens *UserSetting_AccessTokensSetting `protobuf:"bytes,3,opt,name=access_tokens,json=accessTokens,proto3" json:"access_tokens,omitempty"`
	// contains filtered or unexported fields
}

func (*UserSetting) Descriptor deprecated

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

Deprecated: Use UserSetting.ProtoReflect.Descriptor instead.

func (*UserSetting) GetAccessTokens

func (x *UserSetting) GetAccessTokens() *UserSetting_AccessTokensSetting

func (*UserSetting) GetGeneral

func (x *UserSetting) GetGeneral() *UserSetting_GeneralSetting

func (*UserSetting) GetUserId

func (x *UserSetting) GetUserId() int32

func (*UserSetting) ProtoMessage

func (*UserSetting) ProtoMessage()

func (*UserSetting) ProtoReflect

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

func (*UserSetting) Reset

func (x *UserSetting) Reset()

func (*UserSetting) String

func (x *UserSetting) String() string

type UserSettingServiceClient

type UserSettingServiceClient interface {
	// GetUserSetting returns the user setting.
	GetUserSetting(ctx context.Context, in *GetUserSettingRequest, opts ...grpc.CallOption) (*UserSetting, error)
	// UpdateUserSetting updates the user setting.
	UpdateUserSetting(ctx context.Context, in *UpdateUserSettingRequest, opts ...grpc.CallOption) (*UserSetting, error)
}

UserSettingServiceClient is the client API for UserSettingService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type UserSettingServiceServer

type UserSettingServiceServer interface {
	// GetUserSetting returns the user setting.
	GetUserSetting(context.Context, *GetUserSettingRequest) (*UserSetting, error)
	// UpdateUserSetting updates the user setting.
	UpdateUserSetting(context.Context, *UpdateUserSettingRequest) (*UserSetting, error)
	// contains filtered or unexported methods
}

UserSettingServiceServer is the server API for UserSettingService service. All implementations must embed UnimplementedUserSettingServiceServer for forward compatibility.

type UserSetting_AccessTokensSetting

type UserSetting_AccessTokensSetting struct {
	AccessTokens []*UserSetting_AccessTokensSetting_AccessToken `protobuf:"bytes,1,rep,name=access_tokens,json=accessTokens,proto3" json:"access_tokens,omitempty"` // Nested repeated field
	// contains filtered or unexported fields
}

func (*UserSetting_AccessTokensSetting) Descriptor deprecated

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

Deprecated: Use UserSetting_AccessTokensSetting.ProtoReflect.Descriptor instead.

func (*UserSetting_AccessTokensSetting) GetAccessTokens

func (*UserSetting_AccessTokensSetting) ProtoMessage

func (*UserSetting_AccessTokensSetting) ProtoMessage()

func (*UserSetting_AccessTokensSetting) ProtoReflect

func (*UserSetting_AccessTokensSetting) Reset

func (*UserSetting_AccessTokensSetting) String

type UserSetting_AccessTokensSetting_AccessToken

type UserSetting_AccessTokensSetting_AccessToken struct {

	// The access token is a JWT token, including expiration time, issuer, etc.
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// A description for the access token.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*UserSetting_AccessTokensSetting_AccessToken) Descriptor deprecated

Deprecated: Use UserSetting_AccessTokensSetting_AccessToken.ProtoReflect.Descriptor instead.

func (*UserSetting_AccessTokensSetting_AccessToken) GetAccessToken

func (*UserSetting_AccessTokensSetting_AccessToken) GetDescription

func (*UserSetting_AccessTokensSetting_AccessToken) ProtoMessage

func (*UserSetting_AccessTokensSetting_AccessToken) ProtoReflect

func (*UserSetting_AccessTokensSetting_AccessToken) Reset

func (*UserSetting_AccessTokensSetting_AccessToken) String

type UserSetting_GeneralSetting

type UserSetting_GeneralSetting struct {
	Locale     string `protobuf:"bytes,1,opt,name=locale,proto3" json:"locale,omitempty"`
	ColorTheme string `protobuf:"bytes,2,opt,name=color_theme,json=colorTheme,proto3" json:"color_theme,omitempty"`
	// contains filtered or unexported fields
}

func (*UserSetting_GeneralSetting) Descriptor deprecated

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

Deprecated: Use UserSetting_GeneralSetting.ProtoReflect.Descriptor instead.

func (*UserSetting_GeneralSetting) GetColorTheme

func (x *UserSetting_GeneralSetting) GetColorTheme() string

func (*UserSetting_GeneralSetting) GetLocale

func (x *UserSetting_GeneralSetting) GetLocale() string

func (*UserSetting_GeneralSetting) ProtoMessage

func (*UserSetting_GeneralSetting) ProtoMessage()

func (*UserSetting_GeneralSetting) ProtoReflect

func (*UserSetting_GeneralSetting) Reset

func (x *UserSetting_GeneralSetting) Reset()

func (*UserSetting_GeneralSetting) String

func (x *UserSetting_GeneralSetting) String() string

type Visibility

type Visibility int32
const (
	Visibility_VISIBILITY_UNSPECIFIED Visibility = 0
	Visibility_WORKSPACE              Visibility = 1
	Visibility_PUBLIC                 Visibility = 2
)

func (Visibility) Descriptor

func (Visibility) Descriptor() protoreflect.EnumDescriptor

func (Visibility) Enum

func (x Visibility) Enum() *Visibility

func (Visibility) EnumDescriptor deprecated

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

Deprecated: Use Visibility.Descriptor instead.

func (Visibility) Number

func (x Visibility) Number() protoreflect.EnumNumber

func (Visibility) String

func (x Visibility) String() string

func (Visibility) Type

type WorkspaceProfile

type WorkspaceProfile struct {

	// Current workspace mode: dev, prod.
	Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"`
	// Current workspace version.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// The owner name.
	// Format: "users/{id}"
	Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	// The workspace subscription.
	Subscription *Subscription `protobuf:"bytes,4,opt,name=subscription,proto3" json:"subscription,omitempty"`
	// The custom style.
	CustomStyle string `protobuf:"bytes,5,opt,name=custom_style,json=customStyle,proto3" json:"custom_style,omitempty"`
	// The workspace branding.
	Branding []byte `protobuf:"bytes,6,opt,name=branding,proto3" json:"branding,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkspaceProfile) Descriptor deprecated

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

Deprecated: Use WorkspaceProfile.ProtoReflect.Descriptor instead.

func (*WorkspaceProfile) GetBranding

func (x *WorkspaceProfile) GetBranding() []byte

func (*WorkspaceProfile) GetCustomStyle

func (x *WorkspaceProfile) GetCustomStyle() string

func (*WorkspaceProfile) GetMode

func (x *WorkspaceProfile) GetMode() string

func (*WorkspaceProfile) GetOwner

func (x *WorkspaceProfile) GetOwner() string

func (*WorkspaceProfile) GetSubscription

func (x *WorkspaceProfile) GetSubscription() *Subscription

func (*WorkspaceProfile) GetVersion

func (x *WorkspaceProfile) GetVersion() string

func (*WorkspaceProfile) ProtoMessage

func (*WorkspaceProfile) ProtoMessage()

func (*WorkspaceProfile) ProtoReflect

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

func (*WorkspaceProfile) Reset

func (x *WorkspaceProfile) Reset()

func (*WorkspaceProfile) String

func (x *WorkspaceProfile) String() string

type WorkspaceServiceClient

type WorkspaceServiceClient interface {
	GetWorkspaceProfile(ctx context.Context, in *GetWorkspaceProfileRequest, opts ...grpc.CallOption) (*WorkspaceProfile, error)
	GetWorkspaceSetting(ctx context.Context, in *GetWorkspaceSettingRequest, opts ...grpc.CallOption) (*WorkspaceSetting, error)
	UpdateWorkspaceSetting(ctx context.Context, in *UpdateWorkspaceSettingRequest, opts ...grpc.CallOption) (*WorkspaceSetting, error)
}

WorkspaceServiceClient is the client API for WorkspaceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type WorkspaceServiceServer

type WorkspaceServiceServer interface {
	GetWorkspaceProfile(context.Context, *GetWorkspaceProfileRequest) (*WorkspaceProfile, error)
	GetWorkspaceSetting(context.Context, *GetWorkspaceSettingRequest) (*WorkspaceSetting, error)
	UpdateWorkspaceSetting(context.Context, *UpdateWorkspaceSettingRequest) (*WorkspaceSetting, error)
	// contains filtered or unexported methods
}

WorkspaceServiceServer is the server API for WorkspaceService service. All implementations must embed UnimplementedWorkspaceServiceServer for forward compatibility.

type WorkspaceSetting

type WorkspaceSetting struct {

	// The url of instance.
	InstanceUrl string `protobuf:"bytes,1,opt,name=instance_url,json=instanceUrl,proto3" json:"instance_url,omitempty"`
	// The workspace custome branding.
	Branding []byte `protobuf:"bytes,2,opt,name=branding,proto3" json:"branding,omitempty"`
	// The custom style.
	CustomStyle string `protobuf:"bytes,3,opt,name=custom_style,json=customStyle,proto3" json:"custom_style,omitempty"`
	// The default visibility of shortcuts and collections.
	DefaultVisibility Visibility `` /* 142-byte string literal not displayed */
	// The identity providers.
	IdentityProviders []*IdentityProvider `protobuf:"bytes,5,rep,name=identity_providers,json=identityProviders,proto3" json:"identity_providers,omitempty"`
	// Whether to disallow user registration by email&password.
	DisallowUserRegistration bool `` /* 136-byte string literal not displayed */
	// Whether to disallow password authentication.
	DisallowPasswordAuth bool `protobuf:"varint,7,opt,name=disallow_password_auth,json=disallowPasswordAuth,proto3" json:"disallow_password_auth,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkspaceSetting) Descriptor deprecated

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

Deprecated: Use WorkspaceSetting.ProtoReflect.Descriptor instead.

func (*WorkspaceSetting) GetBranding

func (x *WorkspaceSetting) GetBranding() []byte

func (*WorkspaceSetting) GetCustomStyle

func (x *WorkspaceSetting) GetCustomStyle() string

func (*WorkspaceSetting) GetDefaultVisibility

func (x *WorkspaceSetting) GetDefaultVisibility() Visibility

func (*WorkspaceSetting) GetDisallowPasswordAuth

func (x *WorkspaceSetting) GetDisallowPasswordAuth() bool

func (*WorkspaceSetting) GetDisallowUserRegistration

func (x *WorkspaceSetting) GetDisallowUserRegistration() bool

func (*WorkspaceSetting) GetIdentityProviders

func (x *WorkspaceSetting) GetIdentityProviders() []*IdentityProvider

func (*WorkspaceSetting) GetInstanceUrl

func (x *WorkspaceSetting) GetInstanceUrl() string

func (*WorkspaceSetting) ProtoMessage

func (*WorkspaceSetting) ProtoMessage()

func (*WorkspaceSetting) ProtoReflect

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

func (*WorkspaceSetting) Reset

func (x *WorkspaceSetting) Reset()

func (*WorkspaceSetting) String

func (x *WorkspaceSetting) String() string

Jump to

Keyboard shortcuts

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