* move codecs from SFU, add helper to convert to pion type * generated protobuf * use user supplied fmtp if available, log warning if unknown combination --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1155 lines
43 KiB
Go
1155 lines
43 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v4.23.4
|
|
// source: livekit_phone_number.proto
|
|
|
|
package livekit
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
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)
|
|
)
|
|
|
|
// Phone number status enumeration
|
|
type PhoneNumberStatus int32
|
|
|
|
const (
|
|
PhoneNumberStatus_PHONE_NUMBER_STATUS_UNSPECIFIED PhoneNumberStatus = 0 // Default value
|
|
PhoneNumberStatus_PHONE_NUMBER_STATUS_ACTIVE PhoneNumberStatus = 1 // Number is active and ready for use
|
|
PhoneNumberStatus_PHONE_NUMBER_STATUS_PENDING PhoneNumberStatus = 2 // Number is being provisioned
|
|
PhoneNumberStatus_PHONE_NUMBER_STATUS_RELEASED PhoneNumberStatus = 3 // Number has been released
|
|
PhoneNumberStatus_PHONE_NUMBER_STATUS_OFFLINE PhoneNumberStatus = 4 // Number is offline (not associated with any dispatch rule)
|
|
)
|
|
|
|
// Enum value maps for PhoneNumberStatus.
|
|
var (
|
|
PhoneNumberStatus_name = map[int32]string{
|
|
0: "PHONE_NUMBER_STATUS_UNSPECIFIED",
|
|
1: "PHONE_NUMBER_STATUS_ACTIVE",
|
|
2: "PHONE_NUMBER_STATUS_PENDING",
|
|
3: "PHONE_NUMBER_STATUS_RELEASED",
|
|
4: "PHONE_NUMBER_STATUS_OFFLINE",
|
|
}
|
|
PhoneNumberStatus_value = map[string]int32{
|
|
"PHONE_NUMBER_STATUS_UNSPECIFIED": 0,
|
|
"PHONE_NUMBER_STATUS_ACTIVE": 1,
|
|
"PHONE_NUMBER_STATUS_PENDING": 2,
|
|
"PHONE_NUMBER_STATUS_RELEASED": 3,
|
|
"PHONE_NUMBER_STATUS_OFFLINE": 4,
|
|
}
|
|
)
|
|
|
|
func (x PhoneNumberStatus) Enum() *PhoneNumberStatus {
|
|
p := new(PhoneNumberStatus)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x PhoneNumberStatus) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (PhoneNumberStatus) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_livekit_phone_number_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (PhoneNumberStatus) Type() protoreflect.EnumType {
|
|
return &file_livekit_phone_number_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x PhoneNumberStatus) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use PhoneNumberStatus.Descriptor instead.
|
|
func (PhoneNumberStatus) EnumDescriptor() ([]byte, []int) {
|
|
return file_livekit_phone_number_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
// Phone number type enumeration
|
|
type PhoneNumberType int32
|
|
|
|
const (
|
|
PhoneNumberType_PHONE_NUMBER_TYPE_UNKNOWN PhoneNumberType = 0 // Default value - unknown or parsing error
|
|
PhoneNumberType_PHONE_NUMBER_TYPE_MOBILE PhoneNumberType = 1 // Mobile phone number
|
|
PhoneNumberType_PHONE_NUMBER_TYPE_LOCAL PhoneNumberType = 2 // Local/fixed line number
|
|
PhoneNumberType_PHONE_NUMBER_TYPE_TOLL_FREE PhoneNumberType = 3 // Toll-free number
|
|
)
|
|
|
|
// Enum value maps for PhoneNumberType.
|
|
var (
|
|
PhoneNumberType_name = map[int32]string{
|
|
0: "PHONE_NUMBER_TYPE_UNKNOWN",
|
|
1: "PHONE_NUMBER_TYPE_MOBILE",
|
|
2: "PHONE_NUMBER_TYPE_LOCAL",
|
|
3: "PHONE_NUMBER_TYPE_TOLL_FREE",
|
|
}
|
|
PhoneNumberType_value = map[string]int32{
|
|
"PHONE_NUMBER_TYPE_UNKNOWN": 0,
|
|
"PHONE_NUMBER_TYPE_MOBILE": 1,
|
|
"PHONE_NUMBER_TYPE_LOCAL": 2,
|
|
"PHONE_NUMBER_TYPE_TOLL_FREE": 3,
|
|
}
|
|
)
|
|
|
|
func (x PhoneNumberType) Enum() *PhoneNumberType {
|
|
p := new(PhoneNumberType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x PhoneNumberType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (PhoneNumberType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_livekit_phone_number_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (PhoneNumberType) Type() protoreflect.EnumType {
|
|
return &file_livekit_phone_number_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x PhoneNumberType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use PhoneNumberType.Descriptor instead.
|
|
func (PhoneNumberType) EnumDescriptor() ([]byte, []int) {
|
|
return file_livekit_phone_number_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
// SearchPhoneNumbersRequest - Request to search available phone numbers
|
|
type SearchPhoneNumbersRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CountryCode string `protobuf:"bytes,1,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"` // Filter by country code (e.g., "US", "CA")
|
|
AreaCode *string `protobuf:"bytes,2,opt,name=area_code,json=areaCode,proto3,oneof" json:"area_code,omitempty"` // Filter by area code (e.g., "415")
|
|
Limit *int32 `protobuf:"varint,3,opt,name=limit,proto3,oneof" json:"limit,omitempty"` // Maximum number of results (default: 50)
|
|
PageToken *TokenPagination `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3,oneof" json:"page_token,omitempty"` // Token for pagination (empty for first page)
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SearchPhoneNumbersRequest) Reset() {
|
|
*x = SearchPhoneNumbersRequest{}
|
|
mi := &file_livekit_phone_number_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SearchPhoneNumbersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SearchPhoneNumbersRequest) ProtoMessage() {}
|
|
|
|
func (x *SearchPhoneNumbersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_livekit_phone_number_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 SearchPhoneNumbersRequest.ProtoReflect.Descriptor instead.
|
|
func (*SearchPhoneNumbersRequest) Descriptor() ([]byte, []int) {
|
|
return file_livekit_phone_number_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *SearchPhoneNumbersRequest) GetCountryCode() string {
|
|
if x != nil {
|
|
return x.CountryCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SearchPhoneNumbersRequest) GetAreaCode() string {
|
|
if x != nil && x.AreaCode != nil {
|
|
return *x.AreaCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SearchPhoneNumbersRequest) GetLimit() int32 {
|
|
if x != nil && x.Limit != nil {
|
|
return *x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SearchPhoneNumbersRequest) GetPageToken() *TokenPagination {
|
|
if x != nil {
|
|
return x.PageToken
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SearchPhoneNumbersResponse - Response containing available phone numbers
|
|
type SearchPhoneNumbersResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Items []*PhoneNumber `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // List of available phone numbers
|
|
NextPageToken *TokenPagination `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // Token for next page (empty if no more pages)
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SearchPhoneNumbersResponse) Reset() {
|
|
*x = SearchPhoneNumbersResponse{}
|
|
mi := &file_livekit_phone_number_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SearchPhoneNumbersResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SearchPhoneNumbersResponse) ProtoMessage() {}
|
|
|
|
func (x *SearchPhoneNumbersResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_livekit_phone_number_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 SearchPhoneNumbersResponse.ProtoReflect.Descriptor instead.
|
|
func (*SearchPhoneNumbersResponse) Descriptor() ([]byte, []int) {
|
|
return file_livekit_phone_number_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *SearchPhoneNumbersResponse) GetItems() []*PhoneNumber {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SearchPhoneNumbersResponse) GetNextPageToken() *TokenPagination {
|
|
if x != nil {
|
|
return x.NextPageToken
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// PurchasePhoneNumberRequest - Request to purchase phone numbers
|
|
type PurchasePhoneNumberRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PhoneNumbers []string `protobuf:"bytes,1,rep,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"` // Phone numbers to purchase (e.g., ["+1234567890", "+1234567891"])
|
|
SipDispatchRuleId *string `protobuf:"bytes,2,opt,name=sip_dispatch_rule_id,json=sipDispatchRuleId,proto3,oneof" json:"sip_dispatch_rule_id,omitempty"` // SIP dispatch rule ID to apply to all purchased numbers
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PurchasePhoneNumberRequest) Reset() {
|
|
*x = PurchasePhoneNumberRequest{}
|
|
mi := &file_livekit_phone_number_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PurchasePhoneNumberRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PurchasePhoneNumberRequest) ProtoMessage() {}
|
|
|
|
func (x *PurchasePhoneNumberRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_livekit_phone_number_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 PurchasePhoneNumberRequest.ProtoReflect.Descriptor instead.
|
|
func (*PurchasePhoneNumberRequest) Descriptor() ([]byte, []int) {
|
|
return file_livekit_phone_number_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *PurchasePhoneNumberRequest) GetPhoneNumbers() []string {
|
|
if x != nil {
|
|
return x.PhoneNumbers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PurchasePhoneNumberRequest) GetSipDispatchRuleId() string {
|
|
if x != nil && x.SipDispatchRuleId != nil {
|
|
return *x.SipDispatchRuleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// PurchasePhoneNumberResponse - Response containing the purchased phone numbers
|
|
type PurchasePhoneNumberResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PhoneNumbers []*PhoneNumber `protobuf:"bytes,1,rep,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"` // Details of the purchased phone numbers
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PurchasePhoneNumberResponse) Reset() {
|
|
*x = PurchasePhoneNumberResponse{}
|
|
mi := &file_livekit_phone_number_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PurchasePhoneNumberResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PurchasePhoneNumberResponse) ProtoMessage() {}
|
|
|
|
func (x *PurchasePhoneNumberResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_livekit_phone_number_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 PurchasePhoneNumberResponse.ProtoReflect.Descriptor instead.
|
|
func (*PurchasePhoneNumberResponse) Descriptor() ([]byte, []int) {
|
|
return file_livekit_phone_number_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *PurchasePhoneNumberResponse) GetPhoneNumbers() []*PhoneNumber {
|
|
if x != nil {
|
|
return x.PhoneNumbers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// ListPhoneNumbersRequest - Request to list phone numbers
|
|
type ListPhoneNumbersRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Limit *int32 `protobuf:"varint,1,opt,name=limit,proto3,oneof" json:"limit,omitempty"` // Maximum number of results (default: 50)
|
|
Statuses []PhoneNumberStatus `protobuf:"varint,2,rep,packed,name=statuses,proto3,enum=livekit.PhoneNumberStatus" json:"statuses,omitempty"` // Filter by statuses (active, pending, released)
|
|
PageToken *TokenPagination `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3,oneof" json:"page_token,omitempty"` // Token for pagination (empty for first page)
|
|
SipDispatchRuleId *string `protobuf:"bytes,4,opt,name=sip_dispatch_rule_id,json=sipDispatchRuleId,proto3,oneof" json:"sip_dispatch_rule_id,omitempty"` // Filter by SIP dispatch rule ID
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListPhoneNumbersRequest) Reset() {
|
|
*x = ListPhoneNumbersRequest{}
|
|
mi := &file_livekit_phone_number_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListPhoneNumbersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListPhoneNumbersRequest) ProtoMessage() {}
|
|
|
|
func (x *ListPhoneNumbersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_livekit_phone_number_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 ListPhoneNumbersRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListPhoneNumbersRequest) Descriptor() ([]byte, []int) {
|
|
return file_livekit_phone_number_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ListPhoneNumbersRequest) GetLimit() int32 {
|
|
if x != nil && x.Limit != nil {
|
|
return *x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListPhoneNumbersRequest) GetStatuses() []PhoneNumberStatus {
|
|
if x != nil {
|
|
return x.Statuses
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListPhoneNumbersRequest) GetPageToken() *TokenPagination {
|
|
if x != nil {
|
|
return x.PageToken
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListPhoneNumbersRequest) GetSipDispatchRuleId() string {
|
|
if x != nil && x.SipDispatchRuleId != nil {
|
|
return *x.SipDispatchRuleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// ListPhoneNumbersResponse - Response containing phone numbers
|
|
type ListPhoneNumbersResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Items []*PhoneNumber `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // List of phone numbers
|
|
NextPageToken *TokenPagination `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // Token for next page (empty if no more pages)
|
|
TotalCount int32 `protobuf:"varint,3,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // Total number of phone numbers
|
|
OfflineCount int32 `protobuf:"varint,4,opt,name=offline_count,json=offlineCount,proto3" json:"offline_count,omitempty"` // Total number of offline phone numbers
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListPhoneNumbersResponse) Reset() {
|
|
*x = ListPhoneNumbersResponse{}
|
|
mi := &file_livekit_phone_number_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListPhoneNumbersResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListPhoneNumbersResponse) ProtoMessage() {}
|
|
|
|
func (x *ListPhoneNumbersResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_livekit_phone_number_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 ListPhoneNumbersResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListPhoneNumbersResponse) Descriptor() ([]byte, []int) {
|
|
return file_livekit_phone_number_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ListPhoneNumbersResponse) GetItems() []*PhoneNumber {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListPhoneNumbersResponse) GetNextPageToken() *TokenPagination {
|
|
if x != nil {
|
|
return x.NextPageToken
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListPhoneNumbersResponse) GetTotalCount() int32 {
|
|
if x != nil {
|
|
return x.TotalCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListPhoneNumbersResponse) GetOfflineCount() int32 {
|
|
if x != nil {
|
|
return x.OfflineCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// GetPhoneNumberRequest - Request to get a phone number
|
|
type GetPhoneNumberRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` // Use phone number ID for direct lookup
|
|
PhoneNumber *string `protobuf:"bytes,2,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"` // Use phone number string for lookup
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPhoneNumberRequest) Reset() {
|
|
*x = GetPhoneNumberRequest{}
|
|
mi := &file_livekit_phone_number_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPhoneNumberRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPhoneNumberRequest) ProtoMessage() {}
|
|
|
|
func (x *GetPhoneNumberRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_livekit_phone_number_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 GetPhoneNumberRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetPhoneNumberRequest) Descriptor() ([]byte, []int) {
|
|
return file_livekit_phone_number_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *GetPhoneNumberRequest) GetId() string {
|
|
if x != nil && x.Id != nil {
|
|
return *x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetPhoneNumberRequest) GetPhoneNumber() string {
|
|
if x != nil && x.PhoneNumber != nil {
|
|
return *x.PhoneNumber
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// GetPhoneNumberResponse - Response containing the phone number
|
|
type GetPhoneNumberResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PhoneNumber *PhoneNumber `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` // The phone number details
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPhoneNumberResponse) Reset() {
|
|
*x = GetPhoneNumberResponse{}
|
|
mi := &file_livekit_phone_number_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPhoneNumberResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPhoneNumberResponse) ProtoMessage() {}
|
|
|
|
func (x *GetPhoneNumberResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_livekit_phone_number_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 GetPhoneNumberResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetPhoneNumberResponse) Descriptor() ([]byte, []int) {
|
|
return file_livekit_phone_number_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *GetPhoneNumberResponse) GetPhoneNumber() *PhoneNumber {
|
|
if x != nil {
|
|
return x.PhoneNumber
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// UpdatePhoneNumberRequest - Request to update a phone number
|
|
type UpdatePhoneNumberRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` // Use phone number ID for direct lookup
|
|
PhoneNumber *string `protobuf:"bytes,2,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"` // Use phone number string for lookup
|
|
SipDispatchRuleId *string `protobuf:"bytes,3,opt,name=sip_dispatch_rule_id,json=sipDispatchRuleId,proto3,oneof" json:"sip_dispatch_rule_id,omitempty"` // SIP dispatch rule ID to assign to the phone number
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberRequest) Reset() {
|
|
*x = UpdatePhoneNumberRequest{}
|
|
mi := &file_livekit_phone_number_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdatePhoneNumberRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdatePhoneNumberRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_livekit_phone_number_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 UpdatePhoneNumberRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdatePhoneNumberRequest) Descriptor() ([]byte, []int) {
|
|
return file_livekit_phone_number_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberRequest) GetId() string {
|
|
if x != nil && x.Id != nil {
|
|
return *x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberRequest) GetPhoneNumber() string {
|
|
if x != nil && x.PhoneNumber != nil {
|
|
return *x.PhoneNumber
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberRequest) GetSipDispatchRuleId() string {
|
|
if x != nil && x.SipDispatchRuleId != nil {
|
|
return *x.SipDispatchRuleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// UpdatePhoneNumberResponse - Response containing the updated phone number
|
|
type UpdatePhoneNumberResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PhoneNumber *PhoneNumber `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` // The updated phone number details
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberResponse) Reset() {
|
|
*x = UpdatePhoneNumberResponse{}
|
|
mi := &file_livekit_phone_number_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdatePhoneNumberResponse) ProtoMessage() {}
|
|
|
|
func (x *UpdatePhoneNumberResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_livekit_phone_number_proto_msgTypes[9]
|
|
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 UpdatePhoneNumberResponse.ProtoReflect.Descriptor instead.
|
|
func (*UpdatePhoneNumberResponse) Descriptor() ([]byte, []int) {
|
|
return file_livekit_phone_number_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *UpdatePhoneNumberResponse) GetPhoneNumber() *PhoneNumber {
|
|
if x != nil {
|
|
return x.PhoneNumber
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// ReleasePhoneNumbersRequest - Request to release phone numbers
|
|
type ReleasePhoneNumbersRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` // Use phone number IDs for direct lookup
|
|
PhoneNumbers []string `protobuf:"bytes,2,rep,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"` // Use phone number strings for lookup
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ReleasePhoneNumbersRequest) Reset() {
|
|
*x = ReleasePhoneNumbersRequest{}
|
|
mi := &file_livekit_phone_number_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ReleasePhoneNumbersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ReleasePhoneNumbersRequest) ProtoMessage() {}
|
|
|
|
func (x *ReleasePhoneNumbersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_livekit_phone_number_proto_msgTypes[10]
|
|
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 ReleasePhoneNumbersRequest.ProtoReflect.Descriptor instead.
|
|
func (*ReleasePhoneNumbersRequest) Descriptor() ([]byte, []int) {
|
|
return file_livekit_phone_number_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *ReleasePhoneNumbersRequest) GetIds() []string {
|
|
if x != nil {
|
|
return x.Ids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ReleasePhoneNumbersRequest) GetPhoneNumbers() []string {
|
|
if x != nil {
|
|
return x.PhoneNumbers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// ReleasePhoneNumbersResponse - Response for releasing phone numbers
|
|
type ReleasePhoneNumbersResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ReleasePhoneNumbersResponse) Reset() {
|
|
*x = ReleasePhoneNumbersResponse{}
|
|
mi := &file_livekit_phone_number_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ReleasePhoneNumbersResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ReleasePhoneNumbersResponse) ProtoMessage() {}
|
|
|
|
func (x *ReleasePhoneNumbersResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_livekit_phone_number_proto_msgTypes[11]
|
|
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 ReleasePhoneNumbersResponse.ProtoReflect.Descriptor instead.
|
|
func (*ReleasePhoneNumbersResponse) Descriptor() ([]byte, []int) {
|
|
return file_livekit_phone_number_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
// PhoneNumber - Unified phone number type for inventory and purchased numbers
|
|
type PhoneNumber struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier
|
|
E164Format string `protobuf:"bytes,2,opt,name=e164_format,json=e164Format,proto3" json:"e164_format,omitempty"` // Phone number in E.164 format (e.g., "+14155552671")
|
|
CountryCode string `protobuf:"bytes,3,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"` // Country code (e.g., "US")
|
|
AreaCode string `protobuf:"bytes,4,opt,name=area_code,json=areaCode,proto3" json:"area_code,omitempty"` // Area code (e.g., "415")
|
|
NumberType PhoneNumberType `protobuf:"varint,5,opt,name=number_type,json=numberType,proto3,enum=livekit.PhoneNumberType" json:"number_type,omitempty"` // Number type (mobile, local, toll-free, unknown)
|
|
Locality string `protobuf:"bytes,6,opt,name=locality,proto3" json:"locality,omitempty"` // City/locality (e.g., "San Francisco")
|
|
Region string `protobuf:"bytes,7,opt,name=region,proto3" json:"region,omitempty"` // State/region (e.g., "CA")
|
|
SpamScore float64 `protobuf:"fixed64,8,opt,name=spam_score,json=spamScore,proto3" json:"spam_score,omitempty"` // Spam score for fraud detection
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Creation timestamp
|
|
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Last update timestamp
|
|
Capabilities []string `protobuf:"bytes,11,rep,name=capabilities,proto3" json:"capabilities,omitempty"` // Available capabilities (e.g., "voice", "sms")
|
|
Status PhoneNumberStatus `protobuf:"varint,12,opt,name=status,proto3,enum=livekit.PhoneNumberStatus" json:"status,omitempty"` // Current status
|
|
AssignedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=assigned_at,json=assignedAt,proto3" json:"assigned_at,omitempty"` // Assignment timestamp
|
|
ReleasedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=released_at,json=releasedAt,proto3" json:"released_at,omitempty"` // Release timestamp (if applicable)
|
|
// Deprecated: Marked as deprecated in livekit_phone_number.proto.
|
|
SipDispatchRuleId string `protobuf:"bytes,15,opt,name=sip_dispatch_rule_id,json=sipDispatchRuleId,proto3" json:"sip_dispatch_rule_id,omitempty"` // Associated SIP dispatch rule ID (deprecated: use sip_dispatch_rule_ids instead)
|
|
SipDispatchRuleIds []string `protobuf:"bytes,16,rep,name=sip_dispatch_rule_ids,json=sipDispatchRuleIds,proto3" json:"sip_dispatch_rule_ids,omitempty"` // Associated SIP dispatch rule IDs
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PhoneNumber) Reset() {
|
|
*x = PhoneNumber{}
|
|
mi := &file_livekit_phone_number_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PhoneNumber) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PhoneNumber) ProtoMessage() {}
|
|
|
|
func (x *PhoneNumber) ProtoReflect() protoreflect.Message {
|
|
mi := &file_livekit_phone_number_proto_msgTypes[12]
|
|
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 PhoneNumber.ProtoReflect.Descriptor instead.
|
|
func (*PhoneNumber) Descriptor() ([]byte, []int) {
|
|
return file_livekit_phone_number_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *PhoneNumber) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PhoneNumber) GetE164Format() string {
|
|
if x != nil {
|
|
return x.E164Format
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PhoneNumber) GetCountryCode() string {
|
|
if x != nil {
|
|
return x.CountryCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PhoneNumber) GetAreaCode() string {
|
|
if x != nil {
|
|
return x.AreaCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PhoneNumber) GetNumberType() PhoneNumberType {
|
|
if x != nil {
|
|
return x.NumberType
|
|
}
|
|
return PhoneNumberType_PHONE_NUMBER_TYPE_UNKNOWN
|
|
}
|
|
|
|
func (x *PhoneNumber) GetLocality() string {
|
|
if x != nil {
|
|
return x.Locality
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PhoneNumber) GetRegion() string {
|
|
if x != nil {
|
|
return x.Region
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PhoneNumber) GetSpamScore() float64 {
|
|
if x != nil {
|
|
return x.SpamScore
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PhoneNumber) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PhoneNumber) GetUpdatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PhoneNumber) GetCapabilities() []string {
|
|
if x != nil {
|
|
return x.Capabilities
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PhoneNumber) GetStatus() PhoneNumberStatus {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return PhoneNumberStatus_PHONE_NUMBER_STATUS_UNSPECIFIED
|
|
}
|
|
|
|
func (x *PhoneNumber) GetAssignedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.AssignedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PhoneNumber) GetReleasedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ReleasedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Deprecated: Marked as deprecated in livekit_phone_number.proto.
|
|
func (x *PhoneNumber) GetSipDispatchRuleId() string {
|
|
if x != nil {
|
|
return x.SipDispatchRuleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PhoneNumber) GetSipDispatchRuleIds() []string {
|
|
if x != nil {
|
|
return x.SipDispatchRuleIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_livekit_phone_number_proto protoreflect.FileDescriptor
|
|
|
|
const file_livekit_phone_number_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1alivekit_phone_number.proto\x12\alivekit\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x14livekit_models.proto\"\xe0\x01\n" +
|
|
"\x19SearchPhoneNumbersRequest\x12!\n" +
|
|
"\fcountry_code\x18\x01 \x01(\tR\vcountryCode\x12 \n" +
|
|
"\tarea_code\x18\x02 \x01(\tH\x00R\bareaCode\x88\x01\x01\x12\x19\n" +
|
|
"\x05limit\x18\x03 \x01(\x05H\x01R\x05limit\x88\x01\x01\x12<\n" +
|
|
"\n" +
|
|
"page_token\x18\x04 \x01(\v2\x18.livekit.TokenPaginationH\x02R\tpageToken\x88\x01\x01B\f\n" +
|
|
"\n" +
|
|
"_area_codeB\b\n" +
|
|
"\x06_limitB\r\n" +
|
|
"\v_page_token\"\x8a\x01\n" +
|
|
"\x1aSearchPhoneNumbersResponse\x12*\n" +
|
|
"\x05items\x18\x01 \x03(\v2\x14.livekit.PhoneNumberR\x05items\x12@\n" +
|
|
"\x0fnext_page_token\x18\x02 \x01(\v2\x18.livekit.TokenPaginationR\rnextPageToken\"\x90\x01\n" +
|
|
"\x1aPurchasePhoneNumberRequest\x12#\n" +
|
|
"\rphone_numbers\x18\x01 \x03(\tR\fphoneNumbers\x124\n" +
|
|
"\x14sip_dispatch_rule_id\x18\x02 \x01(\tH\x00R\x11sipDispatchRuleId\x88\x01\x01B\x17\n" +
|
|
"\x15_sip_dispatch_rule_id\"X\n" +
|
|
"\x1bPurchasePhoneNumberResponse\x129\n" +
|
|
"\rphone_numbers\x18\x01 \x03(\v2\x14.livekit.PhoneNumberR\fphoneNumbers\"\x92\x02\n" +
|
|
"\x17ListPhoneNumbersRequest\x12\x19\n" +
|
|
"\x05limit\x18\x01 \x01(\x05H\x00R\x05limit\x88\x01\x01\x126\n" +
|
|
"\bstatuses\x18\x02 \x03(\x0e2\x1a.livekit.PhoneNumberStatusR\bstatuses\x12<\n" +
|
|
"\n" +
|
|
"page_token\x18\x03 \x01(\v2\x18.livekit.TokenPaginationH\x01R\tpageToken\x88\x01\x01\x124\n" +
|
|
"\x14sip_dispatch_rule_id\x18\x04 \x01(\tH\x02R\x11sipDispatchRuleId\x88\x01\x01B\b\n" +
|
|
"\x06_limitB\r\n" +
|
|
"\v_page_tokenB\x17\n" +
|
|
"\x15_sip_dispatch_rule_id\"\xce\x01\n" +
|
|
"\x18ListPhoneNumbersResponse\x12*\n" +
|
|
"\x05items\x18\x01 \x03(\v2\x14.livekit.PhoneNumberR\x05items\x12@\n" +
|
|
"\x0fnext_page_token\x18\x02 \x01(\v2\x18.livekit.TokenPaginationR\rnextPageToken\x12\x1f\n" +
|
|
"\vtotal_count\x18\x03 \x01(\x05R\n" +
|
|
"totalCount\x12#\n" +
|
|
"\roffline_count\x18\x04 \x01(\x05R\fofflineCount\"l\n" +
|
|
"\x15GetPhoneNumberRequest\x12\x13\n" +
|
|
"\x02id\x18\x01 \x01(\tH\x00R\x02id\x88\x01\x01\x12&\n" +
|
|
"\fphone_number\x18\x02 \x01(\tH\x01R\vphoneNumber\x88\x01\x01B\x05\n" +
|
|
"\x03_idB\x0f\n" +
|
|
"\r_phone_number\"Q\n" +
|
|
"\x16GetPhoneNumberResponse\x127\n" +
|
|
"\fphone_number\x18\x01 \x01(\v2\x14.livekit.PhoneNumberR\vphoneNumber\"\xbe\x01\n" +
|
|
"\x18UpdatePhoneNumberRequest\x12\x13\n" +
|
|
"\x02id\x18\x01 \x01(\tH\x00R\x02id\x88\x01\x01\x12&\n" +
|
|
"\fphone_number\x18\x02 \x01(\tH\x01R\vphoneNumber\x88\x01\x01\x124\n" +
|
|
"\x14sip_dispatch_rule_id\x18\x03 \x01(\tH\x02R\x11sipDispatchRuleId\x88\x01\x01B\x05\n" +
|
|
"\x03_idB\x0f\n" +
|
|
"\r_phone_numberB\x17\n" +
|
|
"\x15_sip_dispatch_rule_id\"T\n" +
|
|
"\x19UpdatePhoneNumberResponse\x127\n" +
|
|
"\fphone_number\x18\x01 \x01(\v2\x14.livekit.PhoneNumberR\vphoneNumber\"S\n" +
|
|
"\x1aReleasePhoneNumbersRequest\x12\x10\n" +
|
|
"\x03ids\x18\x01 \x03(\tR\x03ids\x12#\n" +
|
|
"\rphone_numbers\x18\x02 \x03(\tR\fphoneNumbers\"\x1d\n" +
|
|
"\x1bReleasePhoneNumbersResponse\"\xbc\x05\n" +
|
|
"\vPhoneNumber\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1f\n" +
|
|
"\ve164_format\x18\x02 \x01(\tR\n" +
|
|
"e164Format\x12!\n" +
|
|
"\fcountry_code\x18\x03 \x01(\tR\vcountryCode\x12\x1b\n" +
|
|
"\tarea_code\x18\x04 \x01(\tR\bareaCode\x129\n" +
|
|
"\vnumber_type\x18\x05 \x01(\x0e2\x18.livekit.PhoneNumberTypeR\n" +
|
|
"numberType\x12\x1a\n" +
|
|
"\blocality\x18\x06 \x01(\tR\blocality\x12\x16\n" +
|
|
"\x06region\x18\a \x01(\tR\x06region\x12\x1d\n" +
|
|
"\n" +
|
|
"spam_score\x18\b \x01(\x01R\tspamScore\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
|
|
"\n" +
|
|
"updated_at\x18\n" +
|
|
" \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12\"\n" +
|
|
"\fcapabilities\x18\v \x03(\tR\fcapabilities\x122\n" +
|
|
"\x06status\x18\f \x01(\x0e2\x1a.livekit.PhoneNumberStatusR\x06status\x12;\n" +
|
|
"\vassigned_at\x18\r \x01(\v2\x1a.google.protobuf.TimestampR\n" +
|
|
"assignedAt\x12;\n" +
|
|
"\vreleased_at\x18\x0e \x01(\v2\x1a.google.protobuf.TimestampR\n" +
|
|
"releasedAt\x123\n" +
|
|
"\x14sip_dispatch_rule_id\x18\x0f \x01(\tB\x02\x18\x01R\x11sipDispatchRuleId\x121\n" +
|
|
"\x15sip_dispatch_rule_ids\x18\x10 \x03(\tR\x12sipDispatchRuleIds*\xbc\x01\n" +
|
|
"\x11PhoneNumberStatus\x12#\n" +
|
|
"\x1fPHONE_NUMBER_STATUS_UNSPECIFIED\x10\x00\x12\x1e\n" +
|
|
"\x1aPHONE_NUMBER_STATUS_ACTIVE\x10\x01\x12\x1f\n" +
|
|
"\x1bPHONE_NUMBER_STATUS_PENDING\x10\x02\x12 \n" +
|
|
"\x1cPHONE_NUMBER_STATUS_RELEASED\x10\x03\x12\x1f\n" +
|
|
"\x1bPHONE_NUMBER_STATUS_OFFLINE\x10\x04*\x8c\x01\n" +
|
|
"\x0fPhoneNumberType\x12\x1d\n" +
|
|
"\x19PHONE_NUMBER_TYPE_UNKNOWN\x10\x00\x12\x1c\n" +
|
|
"\x18PHONE_NUMBER_TYPE_MOBILE\x10\x01\x12\x1b\n" +
|
|
"\x17PHONE_NUMBER_TYPE_LOCAL\x10\x02\x12\x1f\n" +
|
|
"\x1bPHONE_NUMBER_TYPE_TOLL_FREE\x10\x032\xcb\x04\n" +
|
|
"\x12PhoneNumberService\x12_\n" +
|
|
"\x12SearchPhoneNumbers\x12\".livekit.SearchPhoneNumbersRequest\x1a#.livekit.SearchPhoneNumbersResponse\"\x00\x12b\n" +
|
|
"\x13PurchasePhoneNumber\x12#.livekit.PurchasePhoneNumberRequest\x1a$.livekit.PurchasePhoneNumberResponse\"\x00\x12Y\n" +
|
|
"\x10ListPhoneNumbers\x12 .livekit.ListPhoneNumbersRequest\x1a!.livekit.ListPhoneNumbersResponse\"\x00\x12S\n" +
|
|
"\x0eGetPhoneNumber\x12\x1e.livekit.GetPhoneNumberRequest\x1a\x1f.livekit.GetPhoneNumberResponse\"\x00\x12\\\n" +
|
|
"\x11UpdatePhoneNumber\x12!.livekit.UpdatePhoneNumberRequest\x1a\".livekit.UpdatePhoneNumberResponse\"\x00\x12b\n" +
|
|
"\x13ReleasePhoneNumbers\x12#.livekit.ReleasePhoneNumbersRequest\x1a$.livekit.ReleasePhoneNumbersResponse\"\x00BFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3"
|
|
|
|
var (
|
|
file_livekit_phone_number_proto_rawDescOnce sync.Once
|
|
file_livekit_phone_number_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_livekit_phone_number_proto_rawDescGZIP() []byte {
|
|
file_livekit_phone_number_proto_rawDescOnce.Do(func() {
|
|
file_livekit_phone_number_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_livekit_phone_number_proto_rawDesc), len(file_livekit_phone_number_proto_rawDesc)))
|
|
})
|
|
return file_livekit_phone_number_proto_rawDescData
|
|
}
|
|
|
|
var file_livekit_phone_number_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
|
var file_livekit_phone_number_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
|
var file_livekit_phone_number_proto_goTypes = []any{
|
|
(PhoneNumberStatus)(0), // 0: livekit.PhoneNumberStatus
|
|
(PhoneNumberType)(0), // 1: livekit.PhoneNumberType
|
|
(*SearchPhoneNumbersRequest)(nil), // 2: livekit.SearchPhoneNumbersRequest
|
|
(*SearchPhoneNumbersResponse)(nil), // 3: livekit.SearchPhoneNumbersResponse
|
|
(*PurchasePhoneNumberRequest)(nil), // 4: livekit.PurchasePhoneNumberRequest
|
|
(*PurchasePhoneNumberResponse)(nil), // 5: livekit.PurchasePhoneNumberResponse
|
|
(*ListPhoneNumbersRequest)(nil), // 6: livekit.ListPhoneNumbersRequest
|
|
(*ListPhoneNumbersResponse)(nil), // 7: livekit.ListPhoneNumbersResponse
|
|
(*GetPhoneNumberRequest)(nil), // 8: livekit.GetPhoneNumberRequest
|
|
(*GetPhoneNumberResponse)(nil), // 9: livekit.GetPhoneNumberResponse
|
|
(*UpdatePhoneNumberRequest)(nil), // 10: livekit.UpdatePhoneNumberRequest
|
|
(*UpdatePhoneNumberResponse)(nil), // 11: livekit.UpdatePhoneNumberResponse
|
|
(*ReleasePhoneNumbersRequest)(nil), // 12: livekit.ReleasePhoneNumbersRequest
|
|
(*ReleasePhoneNumbersResponse)(nil), // 13: livekit.ReleasePhoneNumbersResponse
|
|
(*PhoneNumber)(nil), // 14: livekit.PhoneNumber
|
|
(*TokenPagination)(nil), // 15: livekit.TokenPagination
|
|
(*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp
|
|
}
|
|
var file_livekit_phone_number_proto_depIdxs = []int32{
|
|
15, // 0: livekit.SearchPhoneNumbersRequest.page_token:type_name -> livekit.TokenPagination
|
|
14, // 1: livekit.SearchPhoneNumbersResponse.items:type_name -> livekit.PhoneNumber
|
|
15, // 2: livekit.SearchPhoneNumbersResponse.next_page_token:type_name -> livekit.TokenPagination
|
|
14, // 3: livekit.PurchasePhoneNumberResponse.phone_numbers:type_name -> livekit.PhoneNumber
|
|
0, // 4: livekit.ListPhoneNumbersRequest.statuses:type_name -> livekit.PhoneNumberStatus
|
|
15, // 5: livekit.ListPhoneNumbersRequest.page_token:type_name -> livekit.TokenPagination
|
|
14, // 6: livekit.ListPhoneNumbersResponse.items:type_name -> livekit.PhoneNumber
|
|
15, // 7: livekit.ListPhoneNumbersResponse.next_page_token:type_name -> livekit.TokenPagination
|
|
14, // 8: livekit.GetPhoneNumberResponse.phone_number:type_name -> livekit.PhoneNumber
|
|
14, // 9: livekit.UpdatePhoneNumberResponse.phone_number:type_name -> livekit.PhoneNumber
|
|
1, // 10: livekit.PhoneNumber.number_type:type_name -> livekit.PhoneNumberType
|
|
16, // 11: livekit.PhoneNumber.created_at:type_name -> google.protobuf.Timestamp
|
|
16, // 12: livekit.PhoneNumber.updated_at:type_name -> google.protobuf.Timestamp
|
|
0, // 13: livekit.PhoneNumber.status:type_name -> livekit.PhoneNumberStatus
|
|
16, // 14: livekit.PhoneNumber.assigned_at:type_name -> google.protobuf.Timestamp
|
|
16, // 15: livekit.PhoneNumber.released_at:type_name -> google.protobuf.Timestamp
|
|
2, // 16: livekit.PhoneNumberService.SearchPhoneNumbers:input_type -> livekit.SearchPhoneNumbersRequest
|
|
4, // 17: livekit.PhoneNumberService.PurchasePhoneNumber:input_type -> livekit.PurchasePhoneNumberRequest
|
|
6, // 18: livekit.PhoneNumberService.ListPhoneNumbers:input_type -> livekit.ListPhoneNumbersRequest
|
|
8, // 19: livekit.PhoneNumberService.GetPhoneNumber:input_type -> livekit.GetPhoneNumberRequest
|
|
10, // 20: livekit.PhoneNumberService.UpdatePhoneNumber:input_type -> livekit.UpdatePhoneNumberRequest
|
|
12, // 21: livekit.PhoneNumberService.ReleasePhoneNumbers:input_type -> livekit.ReleasePhoneNumbersRequest
|
|
3, // 22: livekit.PhoneNumberService.SearchPhoneNumbers:output_type -> livekit.SearchPhoneNumbersResponse
|
|
5, // 23: livekit.PhoneNumberService.PurchasePhoneNumber:output_type -> livekit.PurchasePhoneNumberResponse
|
|
7, // 24: livekit.PhoneNumberService.ListPhoneNumbers:output_type -> livekit.ListPhoneNumbersResponse
|
|
9, // 25: livekit.PhoneNumberService.GetPhoneNumber:output_type -> livekit.GetPhoneNumberResponse
|
|
11, // 26: livekit.PhoneNumberService.UpdatePhoneNumber:output_type -> livekit.UpdatePhoneNumberResponse
|
|
13, // 27: livekit.PhoneNumberService.ReleasePhoneNumbers:output_type -> livekit.ReleasePhoneNumbersResponse
|
|
22, // [22:28] is the sub-list for method output_type
|
|
16, // [16:22] is the sub-list for method input_type
|
|
16, // [16:16] is the sub-list for extension type_name
|
|
16, // [16:16] is the sub-list for extension extendee
|
|
0, // [0:16] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_livekit_phone_number_proto_init() }
|
|
func file_livekit_phone_number_proto_init() {
|
|
if File_livekit_phone_number_proto != nil {
|
|
return
|
|
}
|
|
file_livekit_models_proto_init()
|
|
file_livekit_phone_number_proto_msgTypes[0].OneofWrappers = []any{}
|
|
file_livekit_phone_number_proto_msgTypes[2].OneofWrappers = []any{}
|
|
file_livekit_phone_number_proto_msgTypes[4].OneofWrappers = []any{}
|
|
file_livekit_phone_number_proto_msgTypes[6].OneofWrappers = []any{}
|
|
file_livekit_phone_number_proto_msgTypes[8].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_livekit_phone_number_proto_rawDesc), len(file_livekit_phone_number_proto_rawDesc)),
|
|
NumEnums: 2,
|
|
NumMessages: 13,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_livekit_phone_number_proto_goTypes,
|
|
DependencyIndexes: file_livekit_phone_number_proto_depIdxs,
|
|
EnumInfos: file_livekit_phone_number_proto_enumTypes,
|
|
MessageInfos: file_livekit_phone_number_proto_msgTypes,
|
|
}.Build()
|
|
File_livekit_phone_number_proto = out.File
|
|
file_livekit_phone_number_proto_goTypes = nil
|
|
file_livekit_phone_number_proto_depIdxs = nil
|
|
}
|