Files
slash-e/proto/gen/api/v1/workspace_service.pb.go
T

805 lines
28 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.7
// protoc (unknown)
// source: api/v1/workspace_service.proto
package apiv1
import (
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type IdentityProvider_Type int32
const (
IdentityProvider_TYPE_UNSPECIFIED IdentityProvider_Type = 0
IdentityProvider_OAUTH2 IdentityProvider_Type = 1
)
// Enum value maps for IdentityProvider_Type.
var (
IdentityProvider_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "OAUTH2",
}
IdentityProvider_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"OAUTH2": 1,
}
)
func (x IdentityProvider_Type) Enum() *IdentityProvider_Type {
p := new(IdentityProvider_Type)
*p = x
return p
}
func (x IdentityProvider_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (IdentityProvider_Type) Descriptor() protoreflect.EnumDescriptor {
return file_api_v1_workspace_service_proto_enumTypes[0].Descriptor()
}
func (IdentityProvider_Type) Type() protoreflect.EnumType {
return &file_api_v1_workspace_service_proto_enumTypes[0]
}
func (x IdentityProvider_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use IdentityProvider_Type.Descriptor instead.
func (IdentityProvider_Type) EnumDescriptor() ([]byte, []int) {
return file_api_v1_workspace_service_proto_rawDescGZIP(), []int{2, 0}
}
type WorkspaceProfile struct {
state protoimpl.MessageState `protogen:"open.v1"`
// 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"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WorkspaceProfile) Reset() {
*x = WorkspaceProfile{}
mi := &file_api_v1_workspace_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WorkspaceProfile) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkspaceProfile) ProtoMessage() {}
func (x *WorkspaceProfile) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_workspace_service_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WorkspaceProfile.ProtoReflect.Descriptor instead.
func (*WorkspaceProfile) Descriptor() ([]byte, []int) {
return file_api_v1_workspace_service_proto_rawDescGZIP(), []int{0}
}
func (x *WorkspaceProfile) GetMode() string {
if x != nil {
return x.Mode
}
return ""
}
func (x *WorkspaceProfile) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *WorkspaceProfile) GetOwner() string {
if x != nil {
return x.Owner
}
return ""
}
func (x *WorkspaceProfile) GetSubscription() *Subscription {
if x != nil {
return x.Subscription
}
return nil
}
func (x *WorkspaceProfile) GetCustomStyle() string {
if x != nil {
return x.CustomStyle
}
return ""
}
func (x *WorkspaceProfile) GetBranding() []byte {
if x != nil {
return x.Branding
}
return nil
}
type WorkspaceSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// 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 `protobuf:"varint,4,opt,name=default_visibility,json=defaultVisibility,proto3,enum=slash.api.v1.Visibility" json:"default_visibility,omitempty"`
// 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 `protobuf:"varint,6,opt,name=disallow_user_registration,json=disallowUserRegistration,proto3" json:"disallow_user_registration,omitempty"`
// Whether to disallow password authentication.
DisallowPasswordAuth bool `protobuf:"varint,7,opt,name=disallow_password_auth,json=disallowPasswordAuth,proto3" json:"disallow_password_auth,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WorkspaceSetting) Reset() {
*x = WorkspaceSetting{}
mi := &file_api_v1_workspace_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WorkspaceSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkspaceSetting) ProtoMessage() {}
func (x *WorkspaceSetting) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_workspace_service_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WorkspaceSetting.ProtoReflect.Descriptor instead.
func (*WorkspaceSetting) Descriptor() ([]byte, []int) {
return file_api_v1_workspace_service_proto_rawDescGZIP(), []int{1}
}
func (x *WorkspaceSetting) GetInstanceUrl() string {
if x != nil {
return x.InstanceUrl
}
return ""
}
func (x *WorkspaceSetting) GetBranding() []byte {
if x != nil {
return x.Branding
}
return nil
}
func (x *WorkspaceSetting) GetCustomStyle() string {
if x != nil {
return x.CustomStyle
}
return ""
}
func (x *WorkspaceSetting) GetDefaultVisibility() Visibility {
if x != nil {
return x.DefaultVisibility
}
return Visibility_VISIBILITY_UNSPECIFIED
}
func (x *WorkspaceSetting) GetIdentityProviders() []*IdentityProvider {
if x != nil {
return x.IdentityProviders
}
return nil
}
func (x *WorkspaceSetting) GetDisallowUserRegistration() bool {
if x != nil {
return x.DisallowUserRegistration
}
return false
}
func (x *WorkspaceSetting) GetDisallowPasswordAuth() bool {
if x != nil {
return x.DisallowPasswordAuth
}
return false
}
type IdentityProvider struct {
state protoimpl.MessageState `protogen:"open.v1"`
// 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"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *IdentityProvider) Reset() {
*x = IdentityProvider{}
mi := &file_api_v1_workspace_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *IdentityProvider) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IdentityProvider) ProtoMessage() {}
func (x *IdentityProvider) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_workspace_service_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IdentityProvider.ProtoReflect.Descriptor instead.
func (*IdentityProvider) Descriptor() ([]byte, []int) {
return file_api_v1_workspace_service_proto_rawDescGZIP(), []int{2}
}
func (x *IdentityProvider) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *IdentityProvider) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *IdentityProvider) GetType() IdentityProvider_Type {
if x != nil {
return x.Type
}
return IdentityProvider_TYPE_UNSPECIFIED
}
func (x *IdentityProvider) GetConfig() *IdentityProviderConfig {
if x != nil {
return x.Config
}
return nil
}
type IdentityProviderConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Config:
//
// *IdentityProviderConfig_Oauth2
Config isIdentityProviderConfig_Config `protobuf_oneof:"config"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *IdentityProviderConfig) Reset() {
*x = IdentityProviderConfig{}
mi := &file_api_v1_workspace_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *IdentityProviderConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IdentityProviderConfig) ProtoMessage() {}
func (x *IdentityProviderConfig) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_workspace_service_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IdentityProviderConfig.ProtoReflect.Descriptor instead.
func (*IdentityProviderConfig) Descriptor() ([]byte, []int) {
return file_api_v1_workspace_service_proto_rawDescGZIP(), []int{3}
}
func (x *IdentityProviderConfig) GetConfig() isIdentityProviderConfig_Config {
if x != nil {
return x.Config
}
return nil
}
func (x *IdentityProviderConfig) GetOauth2() *IdentityProviderConfig_OAuth2Config {
if x != nil {
if x, ok := x.Config.(*IdentityProviderConfig_Oauth2); ok {
return x.Oauth2
}
}
return nil
}
type isIdentityProviderConfig_Config interface {
isIdentityProviderConfig_Config()
}
type IdentityProviderConfig_Oauth2 struct {
Oauth2 *IdentityProviderConfig_OAuth2Config `protobuf:"bytes,1,opt,name=oauth2,proto3,oneof"`
}
func (*IdentityProviderConfig_Oauth2) isIdentityProviderConfig_Config() {}
type GetWorkspaceProfileRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetWorkspaceProfileRequest) Reset() {
*x = GetWorkspaceProfileRequest{}
mi := &file_api_v1_workspace_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetWorkspaceProfileRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetWorkspaceProfileRequest) ProtoMessage() {}
func (x *GetWorkspaceProfileRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_workspace_service_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetWorkspaceProfileRequest.ProtoReflect.Descriptor instead.
func (*GetWorkspaceProfileRequest) Descriptor() ([]byte, []int) {
return file_api_v1_workspace_service_proto_rawDescGZIP(), []int{4}
}
type GetWorkspaceSettingRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetWorkspaceSettingRequest) Reset() {
*x = GetWorkspaceSettingRequest{}
mi := &file_api_v1_workspace_service_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetWorkspaceSettingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetWorkspaceSettingRequest) ProtoMessage() {}
func (x *GetWorkspaceSettingRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_workspace_service_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetWorkspaceSettingRequest.ProtoReflect.Descriptor instead.
func (*GetWorkspaceSettingRequest) Descriptor() ([]byte, []int) {
return file_api_v1_workspace_service_proto_rawDescGZIP(), []int{5}
}
type UpdateWorkspaceSettingRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// 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"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateWorkspaceSettingRequest) Reset() {
*x = UpdateWorkspaceSettingRequest{}
mi := &file_api_v1_workspace_service_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateWorkspaceSettingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateWorkspaceSettingRequest) ProtoMessage() {}
func (x *UpdateWorkspaceSettingRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_workspace_service_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateWorkspaceSettingRequest.ProtoReflect.Descriptor instead.
func (*UpdateWorkspaceSettingRequest) Descriptor() ([]byte, []int) {
return file_api_v1_workspace_service_proto_rawDescGZIP(), []int{6}
}
func (x *UpdateWorkspaceSettingRequest) GetSetting() *WorkspaceSetting {
if x != nil {
return x.Setting
}
return nil
}
func (x *UpdateWorkspaceSettingRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
type IdentityProviderConfig_FieldMapping struct {
state protoimpl.MessageState `protogen:"open.v1"`
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"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *IdentityProviderConfig_FieldMapping) Reset() {
*x = IdentityProviderConfig_FieldMapping{}
mi := &file_api_v1_workspace_service_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *IdentityProviderConfig_FieldMapping) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IdentityProviderConfig_FieldMapping) ProtoMessage() {}
func (x *IdentityProviderConfig_FieldMapping) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_workspace_service_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IdentityProviderConfig_FieldMapping.ProtoReflect.Descriptor instead.
func (*IdentityProviderConfig_FieldMapping) Descriptor() ([]byte, []int) {
return file_api_v1_workspace_service_proto_rawDescGZIP(), []int{3, 0}
}
func (x *IdentityProviderConfig_FieldMapping) GetIdentifier() string {
if x != nil {
return x.Identifier
}
return ""
}
func (x *IdentityProviderConfig_FieldMapping) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
type IdentityProviderConfig_OAuth2Config struct {
state protoimpl.MessageState `protogen:"open.v1"`
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"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *IdentityProviderConfig_OAuth2Config) Reset() {
*x = IdentityProviderConfig_OAuth2Config{}
mi := &file_api_v1_workspace_service_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *IdentityProviderConfig_OAuth2Config) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IdentityProviderConfig_OAuth2Config) ProtoMessage() {}
func (x *IdentityProviderConfig_OAuth2Config) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_workspace_service_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IdentityProviderConfig_OAuth2Config.ProtoReflect.Descriptor instead.
func (*IdentityProviderConfig_OAuth2Config) Descriptor() ([]byte, []int) {
return file_api_v1_workspace_service_proto_rawDescGZIP(), []int{3, 1}
}
func (x *IdentityProviderConfig_OAuth2Config) GetClientId() string {
if x != nil {
return x.ClientId
}
return ""
}
func (x *IdentityProviderConfig_OAuth2Config) GetClientSecret() string {
if x != nil {
return x.ClientSecret
}
return ""
}
func (x *IdentityProviderConfig_OAuth2Config) GetAuthUrl() string {
if x != nil {
return x.AuthUrl
}
return ""
}
func (x *IdentityProviderConfig_OAuth2Config) GetTokenUrl() string {
if x != nil {
return x.TokenUrl
}
return ""
}
func (x *IdentityProviderConfig_OAuth2Config) GetUserInfoUrl() string {
if x != nil {
return x.UserInfoUrl
}
return ""
}
func (x *IdentityProviderConfig_OAuth2Config) GetScopes() []string {
if x != nil {
return x.Scopes
}
return nil
}
func (x *IdentityProviderConfig_OAuth2Config) GetFieldMapping() *IdentityProviderConfig_FieldMapping {
if x != nil {
return x.FieldMapping
}
return nil
}
var File_api_v1_workspace_service_proto protoreflect.FileDescriptor
const file_api_v1_workspace_service_proto_rawDesc = "" +
"\n" +
"\x1eapi/v1/workspace_service.proto\x12\fslash.api.v1\x1a\x13api/v1/common.proto\x1a!api/v1/subscription_service.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a google/protobuf/field_mask.proto\"\xd5\x01\n" +
"\x10WorkspaceProfile\x12\x12\n" +
"\x04mode\x18\x01 \x01(\tR\x04mode\x12\x18\n" +
"\aversion\x18\x02 \x01(\tR\aversion\x12\x14\n" +
"\x05owner\x18\x03 \x01(\tR\x05owner\x12>\n" +
"\fsubscription\x18\x04 \x01(\v2\x1a.slash.api.v1.SubscriptionR\fsubscription\x12!\n" +
"\fcustom_style\x18\x05 \x01(\tR\vcustomStyle\x12\x1a\n" +
"\bbranding\x18\x06 \x01(\fR\bbranding\"\x80\x03\n" +
"\x10WorkspaceSetting\x12!\n" +
"\finstance_url\x18\x01 \x01(\tR\vinstanceUrl\x12\x1a\n" +
"\bbranding\x18\x02 \x01(\fR\bbranding\x12!\n" +
"\fcustom_style\x18\x03 \x01(\tR\vcustomStyle\x12G\n" +
"\x12default_visibility\x18\x04 \x01(\x0e2\x18.slash.api.v1.VisibilityR\x11defaultVisibility\x12M\n" +
"\x12identity_providers\x18\x05 \x03(\v2\x1e.slash.api.v1.IdentityProviderR\x11identityProviders\x12<\n" +
"\x1adisallow_user_registration\x18\x06 \x01(\bR\x18disallowUserRegistration\x124\n" +
"\x16disallow_password_auth\x18\a \x01(\bR\x14disallowPasswordAuth\"\xd9\x01\n" +
"\x10IdentityProvider\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
"\x05title\x18\x02 \x01(\tR\x05title\x127\n" +
"\x04type\x18\x03 \x01(\x0e2#.slash.api.v1.IdentityProvider.TypeR\x04type\x12<\n" +
"\x06config\x18\x04 \x01(\v2$.slash.api.v1.IdentityProviderConfigR\x06config\"(\n" +
"\x04Type\x12\x14\n" +
"\x10TYPE_UNSPECIFIED\x10\x00\x12\n" +
"\n" +
"\x06OAUTH2\x10\x01\"\xe1\x03\n" +
"\x16IdentityProviderConfig\x12K\n" +
"\x06oauth2\x18\x01 \x01(\v21.slash.api.v1.IdentityProviderConfig.OAuth2ConfigH\x00R\x06oauth2\x1aQ\n" +
"\fFieldMapping\x12\x1e\n" +
"\n" +
"identifier\x18\x01 \x01(\tR\n" +
"identifier\x12!\n" +
"\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x1a\x9c\x02\n" +
"\fOAuth2Config\x12\x1b\n" +
"\tclient_id\x18\x01 \x01(\tR\bclientId\x12#\n" +
"\rclient_secret\x18\x02 \x01(\tR\fclientSecret\x12\x19\n" +
"\bauth_url\x18\x03 \x01(\tR\aauthUrl\x12\x1b\n" +
"\ttoken_url\x18\x04 \x01(\tR\btokenUrl\x12\"\n" +
"\ruser_info_url\x18\x05 \x01(\tR\vuserInfoUrl\x12\x16\n" +
"\x06scopes\x18\x06 \x03(\tR\x06scopes\x12V\n" +
"\rfield_mapping\x18\a \x01(\v21.slash.api.v1.IdentityProviderConfig.FieldMappingR\ffieldMappingB\b\n" +
"\x06config\"\x1c\n" +
"\x1aGetWorkspaceProfileRequest\"\x1c\n" +
"\x1aGetWorkspaceSettingRequest\"\x96\x01\n" +
"\x1dUpdateWorkspaceSettingRequest\x128\n" +
"\asetting\x18\x01 \x01(\v2\x1e.slash.api.v1.WorkspaceSettingR\asetting\x12;\n" +
"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" +
"updateMask2\xc6\x03\n" +
"\x10WorkspaceService\x12\x82\x01\n" +
"\x13GetWorkspaceProfile\x12(.slash.api.v1.GetWorkspaceProfileRequest\x1a\x1e.slash.api.v1.WorkspaceProfile\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/api/v1/workspace/profile\x12\x82\x01\n" +
"\x13GetWorkspaceSetting\x12(.slash.api.v1.GetWorkspaceSettingRequest\x1a\x1e.slash.api.v1.WorkspaceSetting\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/api/v1/workspace/setting\x12\xa7\x01\n" +
"\x16UpdateWorkspaceSetting\x12+.slash.api.v1.UpdateWorkspaceSettingRequest\x1a\x1e.slash.api.v1.WorkspaceSetting\"@\xdaA\x13setting,update_mask\x82\xd3\xe4\x93\x02$:\asetting2\x19/api/v1/workspace/settingB\xb3\x01\n" +
"\x10com.slash.api.v1B\x15WorkspaceServiceProtoP\x01Z6github.com/yourselfhosted/slash/proto/gen/api/v1;apiv1\xa2\x02\x03SAX\xaa\x02\fSlash.Api.V1\xca\x02\fSlash\\Api\\V1\xe2\x02\x18Slash\\Api\\V1\\GPBMetadata\xea\x02\x0eSlash::Api::V1b\x06proto3"
var (
file_api_v1_workspace_service_proto_rawDescOnce sync.Once
file_api_v1_workspace_service_proto_rawDescData []byte
)
func file_api_v1_workspace_service_proto_rawDescGZIP() []byte {
file_api_v1_workspace_service_proto_rawDescOnce.Do(func() {
file_api_v1_workspace_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_v1_workspace_service_proto_rawDesc), len(file_api_v1_workspace_service_proto_rawDesc)))
})
return file_api_v1_workspace_service_proto_rawDescData
}
var file_api_v1_workspace_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_api_v1_workspace_service_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_api_v1_workspace_service_proto_goTypes = []any{
(IdentityProvider_Type)(0), // 0: slash.api.v1.IdentityProvider.Type
(*WorkspaceProfile)(nil), // 1: slash.api.v1.WorkspaceProfile
(*WorkspaceSetting)(nil), // 2: slash.api.v1.WorkspaceSetting
(*IdentityProvider)(nil), // 3: slash.api.v1.IdentityProvider
(*IdentityProviderConfig)(nil), // 4: slash.api.v1.IdentityProviderConfig
(*GetWorkspaceProfileRequest)(nil), // 5: slash.api.v1.GetWorkspaceProfileRequest
(*GetWorkspaceSettingRequest)(nil), // 6: slash.api.v1.GetWorkspaceSettingRequest
(*UpdateWorkspaceSettingRequest)(nil), // 7: slash.api.v1.UpdateWorkspaceSettingRequest
(*IdentityProviderConfig_FieldMapping)(nil), // 8: slash.api.v1.IdentityProviderConfig.FieldMapping
(*IdentityProviderConfig_OAuth2Config)(nil), // 9: slash.api.v1.IdentityProviderConfig.OAuth2Config
(*Subscription)(nil), // 10: slash.api.v1.Subscription
(Visibility)(0), // 11: slash.api.v1.Visibility
(*fieldmaskpb.FieldMask)(nil), // 12: google.protobuf.FieldMask
}
var file_api_v1_workspace_service_proto_depIdxs = []int32{
10, // 0: slash.api.v1.WorkspaceProfile.subscription:type_name -> slash.api.v1.Subscription
11, // 1: slash.api.v1.WorkspaceSetting.default_visibility:type_name -> slash.api.v1.Visibility
3, // 2: slash.api.v1.WorkspaceSetting.identity_providers:type_name -> slash.api.v1.IdentityProvider
0, // 3: slash.api.v1.IdentityProvider.type:type_name -> slash.api.v1.IdentityProvider.Type
4, // 4: slash.api.v1.IdentityProvider.config:type_name -> slash.api.v1.IdentityProviderConfig
9, // 5: slash.api.v1.IdentityProviderConfig.oauth2:type_name -> slash.api.v1.IdentityProviderConfig.OAuth2Config
2, // 6: slash.api.v1.UpdateWorkspaceSettingRequest.setting:type_name -> slash.api.v1.WorkspaceSetting
12, // 7: slash.api.v1.UpdateWorkspaceSettingRequest.update_mask:type_name -> google.protobuf.FieldMask
8, // 8: slash.api.v1.IdentityProviderConfig.OAuth2Config.field_mapping:type_name -> slash.api.v1.IdentityProviderConfig.FieldMapping
5, // 9: slash.api.v1.WorkspaceService.GetWorkspaceProfile:input_type -> slash.api.v1.GetWorkspaceProfileRequest
6, // 10: slash.api.v1.WorkspaceService.GetWorkspaceSetting:input_type -> slash.api.v1.GetWorkspaceSettingRequest
7, // 11: slash.api.v1.WorkspaceService.UpdateWorkspaceSetting:input_type -> slash.api.v1.UpdateWorkspaceSettingRequest
1, // 12: slash.api.v1.WorkspaceService.GetWorkspaceProfile:output_type -> slash.api.v1.WorkspaceProfile
2, // 13: slash.api.v1.WorkspaceService.GetWorkspaceSetting:output_type -> slash.api.v1.WorkspaceSetting
2, // 14: slash.api.v1.WorkspaceService.UpdateWorkspaceSetting:output_type -> slash.api.v1.WorkspaceSetting
12, // [12:15] is the sub-list for method output_type
9, // [9:12] is the sub-list for method input_type
9, // [9:9] is the sub-list for extension type_name
9, // [9:9] is the sub-list for extension extendee
0, // [0:9] is the sub-list for field type_name
}
func init() { file_api_v1_workspace_service_proto_init() }
func file_api_v1_workspace_service_proto_init() {
if File_api_v1_workspace_service_proto != nil {
return
}
file_api_v1_common_proto_init()
file_api_v1_subscription_service_proto_init()
file_api_v1_workspace_service_proto_msgTypes[3].OneofWrappers = []any{
(*IdentityProviderConfig_Oauth2)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_v1_workspace_service_proto_rawDesc), len(file_api_v1_workspace_service_proto_rawDesc)),
NumEnums: 1,
NumMessages: 9,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_api_v1_workspace_service_proto_goTypes,
DependencyIndexes: file_api_v1_workspace_service_proto_depIdxs,
EnumInfos: file_api_v1_workspace_service_proto_enumTypes,
MessageInfos: file_api_v1_workspace_service_proto_msgTypes,
}.Build()
File_api_v1_workspace_service_proto = out.File
file_api_v1_workspace_service_proto_goTypes = nil
file_api_v1_workspace_service_proto_depIdxs = nil
}