From a75215cd604de1a4a7603cb56efa96645263c8a5 Mon Sep 17 00:00:00 2001 From: Denys Smirnov Date: Tue, 8 Sep 2026 20:14:26 +0200 Subject: [PATCH] Add separate inbound and outbound statuses for phone numbers. --- .changeset/sip-numbers-statuses.md | 6 + livekit/livekit_phone_number.pb.go | 276 +++++++++++++++++++------- livekit/livekit_phone_number.twirp.go | 170 ++++++++-------- protobufs/livekit_phone_number.proto | 19 +- 4 files changed, 316 insertions(+), 155 deletions(-) create mode 100644 .changeset/sip-numbers-statuses.md diff --git a/.changeset/sip-numbers-statuses.md b/.changeset/sip-numbers-statuses.md new file mode 100644 index 000000000..cf8f9af15 --- /dev/null +++ b/.changeset/sip-numbers-statuses.md @@ -0,0 +1,6 @@ +--- +"github.com/livekit/protocol": patch +"@livekit/protocol": patch +--- + +Add separate inbound and outbound statuses for phone numbers. diff --git a/livekit/livekit_phone_number.pb.go b/livekit/livekit_phone_number.pb.go index 25a2c26c5..ae973e57c 100644 --- a/livekit/livekit_phone_number.pb.go +++ b/livekit/livekit_phone_number.pb.go @@ -31,7 +31,7 @@ const ( 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) + PhoneNumberStatus_PHONE_NUMBER_STATUS_OFFLINE PhoneNumberStatus = 4 // Number is offline (provider is unreachable) ) // Enum value maps for PhoneNumberStatus. @@ -79,6 +79,107 @@ func (PhoneNumberStatus) EnumDescriptor() ([]byte, []int) { return file_livekit_phone_number_proto_rawDescGZIP(), []int{0} } +type PhoneNumberInboundStatus int32 + +const ( + PhoneNumberInboundStatus_PHONE_NUMBER_IN_STATUS_UNSPECIFIED PhoneNumberInboundStatus = 0 // Default value + PhoneNumberInboundStatus_PHONE_NUMBER_IN_STATUS_ACTIVE PhoneNumberInboundStatus = 1 // Number is serving inbound calls + PhoneNumberInboundStatus_PHONE_NUMBER_IN_STATUS_UNAVAILABLE PhoneNumberInboundStatus = 2 // Inbound calling is unavailable + PhoneNumberInboundStatus_PHONE_NUMBER_IN_STATUS_DETACHED PhoneNumberInboundStatus = 3 // Number is not serving calls (not associated with dispatch rules) +) + +// Enum value maps for PhoneNumberInboundStatus. +var ( + PhoneNumberInboundStatus_name = map[int32]string{ + 0: "PHONE_NUMBER_IN_STATUS_UNSPECIFIED", + 1: "PHONE_NUMBER_IN_STATUS_ACTIVE", + 2: "PHONE_NUMBER_IN_STATUS_UNAVAILABLE", + 3: "PHONE_NUMBER_IN_STATUS_DETACHED", + } + PhoneNumberInboundStatus_value = map[string]int32{ + "PHONE_NUMBER_IN_STATUS_UNSPECIFIED": 0, + "PHONE_NUMBER_IN_STATUS_ACTIVE": 1, + "PHONE_NUMBER_IN_STATUS_UNAVAILABLE": 2, + "PHONE_NUMBER_IN_STATUS_DETACHED": 3, + } +) + +func (x PhoneNumberInboundStatus) Enum() *PhoneNumberInboundStatus { + p := new(PhoneNumberInboundStatus) + *p = x + return p +} + +func (x PhoneNumberInboundStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PhoneNumberInboundStatus) Descriptor() protoreflect.EnumDescriptor { + return file_livekit_phone_number_proto_enumTypes[1].Descriptor() +} + +func (PhoneNumberInboundStatus) Type() protoreflect.EnumType { + return &file_livekit_phone_number_proto_enumTypes[1] +} + +func (x PhoneNumberInboundStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PhoneNumberInboundStatus.Descriptor instead. +func (PhoneNumberInboundStatus) EnumDescriptor() ([]byte, []int) { + return file_livekit_phone_number_proto_rawDescGZIP(), []int{1} +} + +type PhoneNumberOutboundStatus int32 + +const ( + PhoneNumberOutboundStatus_PHONE_NUMBER_OUT_STATUS_UNSPECIFIED PhoneNumberOutboundStatus = 0 // Default value + PhoneNumberOutboundStatus_PHONE_NUMBER_OUT_STATUS_ACTIVE PhoneNumberOutboundStatus = 1 // Number is can be used to initiate outbound calls + PhoneNumberOutboundStatus_PHONE_NUMBER_OUT_STATUS_UNAVAILABLE PhoneNumberOutboundStatus = 2 // Outbound calling is unavailable +) + +// Enum value maps for PhoneNumberOutboundStatus. +var ( + PhoneNumberOutboundStatus_name = map[int32]string{ + 0: "PHONE_NUMBER_OUT_STATUS_UNSPECIFIED", + 1: "PHONE_NUMBER_OUT_STATUS_ACTIVE", + 2: "PHONE_NUMBER_OUT_STATUS_UNAVAILABLE", + } + PhoneNumberOutboundStatus_value = map[string]int32{ + "PHONE_NUMBER_OUT_STATUS_UNSPECIFIED": 0, + "PHONE_NUMBER_OUT_STATUS_ACTIVE": 1, + "PHONE_NUMBER_OUT_STATUS_UNAVAILABLE": 2, + } +) + +func (x PhoneNumberOutboundStatus) Enum() *PhoneNumberOutboundStatus { + p := new(PhoneNumberOutboundStatus) + *p = x + return p +} + +func (x PhoneNumberOutboundStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PhoneNumberOutboundStatus) Descriptor() protoreflect.EnumDescriptor { + return file_livekit_phone_number_proto_enumTypes[2].Descriptor() +} + +func (PhoneNumberOutboundStatus) Type() protoreflect.EnumType { + return &file_livekit_phone_number_proto_enumTypes[2] +} + +func (x PhoneNumberOutboundStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PhoneNumberOutboundStatus.Descriptor instead. +func (PhoneNumberOutboundStatus) EnumDescriptor() ([]byte, []int) { + return file_livekit_phone_number_proto_rawDescGZIP(), []int{2} +} + // Phone number type enumeration type PhoneNumberType int32 @@ -116,11 +217,11 @@ func (x PhoneNumberType) String() string { } func (PhoneNumberType) Descriptor() protoreflect.EnumDescriptor { - return file_livekit_phone_number_proto_enumTypes[1].Descriptor() + return file_livekit_phone_number_proto_enumTypes[3].Descriptor() } func (PhoneNumberType) Type() protoreflect.EnumType { - return &file_livekit_phone_number_proto_enumTypes[1] + return &file_livekit_phone_number_proto_enumTypes[3] } func (x PhoneNumberType) Number() protoreflect.EnumNumber { @@ -129,7 +230,7 @@ func (x PhoneNumberType) Number() protoreflect.EnumNumber { // Deprecated: Use PhoneNumberType.Descriptor instead. func (PhoneNumberType) EnumDescriptor() ([]byte, []int) { - return file_livekit_phone_number_proto_rawDescGZIP(), []int{1} + return file_livekit_phone_number_proto_rawDescGZIP(), []int{3} } // SearchPhoneNumbersRequest - Request to search available phone numbers @@ -794,22 +895,24 @@ func (*ReleasePhoneNumbersResponse) Descriptor() ([]byte, []int) { // 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 - Name string `protobuf:"bytes,17,opt,name=name,proto3" json:"name,omitempty"` // Human-readable name/label for the phone number - 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) + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier + Name string `protobuf:"bytes,17,opt,name=name,proto3" json:"name,omitempty"` // Human-readable name/label for the phone number + 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 + InboundStatus PhoneNumberInboundStatus `protobuf:"varint,18,opt,name=inbound_status,json=inboundStatus,proto3,enum=livekit.PhoneNumberInboundStatus" json:"inbound_status,omitempty"` // Inbound calling status + OutboundStatus PhoneNumberOutboundStatus `protobuf:"varint,19,opt,name=outbound_status,json=outboundStatus,proto3,enum=livekit.PhoneNumberOutboundStatus" json:"outbound_status,omitempty"` // Outbound calling 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 @@ -938,6 +1041,20 @@ func (x *PhoneNumber) GetStatus() PhoneNumberStatus { return PhoneNumberStatus_PHONE_NUMBER_STATUS_UNSPECIFIED } +func (x *PhoneNumber) GetInboundStatus() PhoneNumberInboundStatus { + if x != nil { + return x.InboundStatus + } + return PhoneNumberInboundStatus_PHONE_NUMBER_IN_STATUS_UNSPECIFIED +} + +func (x *PhoneNumber) GetOutboundStatus() PhoneNumberOutboundStatus { + if x != nil { + return x.OutboundStatus + } + return PhoneNumberOutboundStatus_PHONE_NUMBER_OUT_STATUS_UNSPECIFIED +} + func (x *PhoneNumber) GetAssignedAt() *timestamppb.Timestamp { if x != nil { return x.AssignedAt @@ -1027,7 +1144,7 @@ const file_livekit_phone_number_proto_rawDesc = "" + "\x1aReleasePhoneNumbersRequest\x12\x10\n" + "\x03ids\x18\x01 \x03(\tR\x03ids\x12#\n" + "\rphone_numbers\x18\x02 \x03(\tR\fphoneNumbers\"\x1d\n" + - "\x1bReleasePhoneNumbersResponse\"\xe4\x05\n" + + "\x1bReleasePhoneNumbersResponse\"\xfb\x06\n" + "\vPhoneNumber\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + "\x04name\x18\x11 \x01(\tR\x04name\x12\x1f\n" + @@ -1047,7 +1164,9 @@ const file_livekit_phone_number_proto_rawDesc = "" + "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" + + "\x06status\x18\f \x01(\x0e2\x1a.livekit.PhoneNumberStatusR\x06status\x12H\n" + + "\x0einbound_status\x18\x12 \x01(\x0e2!.livekit.PhoneNumberInboundStatusR\rinboundStatus\x12K\n" + + "\x0foutbound_status\x18\x13 \x01(\x0e2\".livekit.PhoneNumberOutboundStatusR\x0eoutboundStatus\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" + @@ -1059,7 +1178,16 @@ const file_livekit_phone_number_proto_rawDesc = "" + "\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" + + "\x1bPHONE_NUMBER_STATUS_OFFLINE\x10\x04*\xb2\x01\n" + + "\x18PhoneNumberInboundStatus\x12&\n" + + "\"PHONE_NUMBER_IN_STATUS_UNSPECIFIED\x10\x00\x12!\n" + + "\x1dPHONE_NUMBER_IN_STATUS_ACTIVE\x10\x01\x12&\n" + + "\"PHONE_NUMBER_IN_STATUS_UNAVAILABLE\x10\x02\x12#\n" + + "\x1fPHONE_NUMBER_IN_STATUS_DETACHED\x10\x03*\x91\x01\n" + + "\x19PhoneNumberOutboundStatus\x12'\n" + + "#PHONE_NUMBER_OUT_STATUS_UNSPECIFIED\x10\x00\x12\"\n" + + "\x1ePHONE_NUMBER_OUT_STATUS_ACTIVE\x10\x01\x12'\n" + + "#PHONE_NUMBER_OUT_STATUS_UNAVAILABLE\x10\x02*\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" + @@ -1085,61 +1213,65 @@ func file_livekit_phone_number_proto_rawDescGZIP() []byte { return file_livekit_phone_number_proto_rawDescData } -var file_livekit_phone_number_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_livekit_phone_number_proto_enumTypes = make([]protoimpl.EnumInfo, 4) 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 + (PhoneNumberInboundStatus)(0), // 1: livekit.PhoneNumberInboundStatus + (PhoneNumberOutboundStatus)(0), // 2: livekit.PhoneNumberOutboundStatus + (PhoneNumberType)(0), // 3: livekit.PhoneNumberType + (*SearchPhoneNumbersRequest)(nil), // 4: livekit.SearchPhoneNumbersRequest + (*SearchPhoneNumbersResponse)(nil), // 5: livekit.SearchPhoneNumbersResponse + (*PurchasePhoneNumberRequest)(nil), // 6: livekit.PurchasePhoneNumberRequest + (*PurchasePhoneNumberResponse)(nil), // 7: livekit.PurchasePhoneNumberResponse + (*ListPhoneNumbersRequest)(nil), // 8: livekit.ListPhoneNumbersRequest + (*ListPhoneNumbersResponse)(nil), // 9: livekit.ListPhoneNumbersResponse + (*GetPhoneNumberRequest)(nil), // 10: livekit.GetPhoneNumberRequest + (*GetPhoneNumberResponse)(nil), // 11: livekit.GetPhoneNumberResponse + (*UpdatePhoneNumberRequest)(nil), // 12: livekit.UpdatePhoneNumberRequest + (*UpdatePhoneNumberResponse)(nil), // 13: livekit.UpdatePhoneNumberResponse + (*ReleasePhoneNumbersRequest)(nil), // 14: livekit.ReleasePhoneNumbersRequest + (*ReleasePhoneNumbersResponse)(nil), // 15: livekit.ReleasePhoneNumbersResponse + (*PhoneNumber)(nil), // 16: livekit.PhoneNumber + (*TokenPagination)(nil), // 17: livekit.TokenPagination + (*timestamppb.Timestamp)(nil), // 18: 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 + 17, // 0: livekit.SearchPhoneNumbersRequest.page_token:type_name -> livekit.TokenPagination + 16, // 1: livekit.SearchPhoneNumbersResponse.items:type_name -> livekit.PhoneNumber + 17, // 2: livekit.SearchPhoneNumbersResponse.next_page_token:type_name -> livekit.TokenPagination + 16, // 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 + 17, // 5: livekit.ListPhoneNumbersRequest.page_token:type_name -> livekit.TokenPagination + 16, // 6: livekit.ListPhoneNumbersResponse.items:type_name -> livekit.PhoneNumber + 17, // 7: livekit.ListPhoneNumbersResponse.next_page_token:type_name -> livekit.TokenPagination + 16, // 8: livekit.GetPhoneNumberResponse.phone_number:type_name -> livekit.PhoneNumber + 16, // 9: livekit.UpdatePhoneNumberResponse.phone_number:type_name -> livekit.PhoneNumber + 3, // 10: livekit.PhoneNumber.number_type:type_name -> livekit.PhoneNumberType + 18, // 11: livekit.PhoneNumber.created_at:type_name -> google.protobuf.Timestamp + 18, // 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 + 1, // 14: livekit.PhoneNumber.inbound_status:type_name -> livekit.PhoneNumberInboundStatus + 2, // 15: livekit.PhoneNumber.outbound_status:type_name -> livekit.PhoneNumberOutboundStatus + 18, // 16: livekit.PhoneNumber.assigned_at:type_name -> google.protobuf.Timestamp + 18, // 17: livekit.PhoneNumber.released_at:type_name -> google.protobuf.Timestamp + 4, // 18: livekit.PhoneNumberService.SearchPhoneNumbers:input_type -> livekit.SearchPhoneNumbersRequest + 6, // 19: livekit.PhoneNumberService.PurchasePhoneNumber:input_type -> livekit.PurchasePhoneNumberRequest + 8, // 20: livekit.PhoneNumberService.ListPhoneNumbers:input_type -> livekit.ListPhoneNumbersRequest + 10, // 21: livekit.PhoneNumberService.GetPhoneNumber:input_type -> livekit.GetPhoneNumberRequest + 12, // 22: livekit.PhoneNumberService.UpdatePhoneNumber:input_type -> livekit.UpdatePhoneNumberRequest + 14, // 23: livekit.PhoneNumberService.ReleasePhoneNumbers:input_type -> livekit.ReleasePhoneNumbersRequest + 5, // 24: livekit.PhoneNumberService.SearchPhoneNumbers:output_type -> livekit.SearchPhoneNumbersResponse + 7, // 25: livekit.PhoneNumberService.PurchasePhoneNumber:output_type -> livekit.PurchasePhoneNumberResponse + 9, // 26: livekit.PhoneNumberService.ListPhoneNumbers:output_type -> livekit.ListPhoneNumbersResponse + 11, // 27: livekit.PhoneNumberService.GetPhoneNumber:output_type -> livekit.GetPhoneNumberResponse + 13, // 28: livekit.PhoneNumberService.UpdatePhoneNumber:output_type -> livekit.UpdatePhoneNumberResponse + 15, // 29: livekit.PhoneNumberService.ReleasePhoneNumbers:output_type -> livekit.ReleasePhoneNumbersResponse + 24, // [24:30] is the sub-list for method output_type + 18, // [18:24] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name } func init() { file_livekit_phone_number_proto_init() } @@ -1158,7 +1290,7 @@ func file_livekit_phone_number_proto_init() { 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, + NumEnums: 4, NumMessages: 13, NumExtensions: 0, NumServices: 1, diff --git a/livekit/livekit_phone_number.twirp.go b/livekit/livekit_phone_number.twirp.go index 4e52c02d8..b1cdd5a54 100644 --- a/livekit/livekit_phone_number.twirp.go +++ b/livekit/livekit_phone_number.twirp.go @@ -1919,85 +1919,93 @@ func (s *phoneNumberServiceServer) PathPrefix() string { } var twirpFileDescriptor8 = []byte{ - // 1269 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xd1, 0x6e, 0xe3, 0x44, - 0x17, 0xce, 0x24, 0x4d, 0xb7, 0x39, 0x49, 0xdb, 0x74, 0xb6, 0xbb, 0x75, 0xdd, 0xdd, 0x6d, 0xd6, - 0xfd, 0xf5, 0x2b, 0xda, 0x8b, 0x54, 0x5b, 0xd0, 0xa2, 0x5d, 0xb8, 0x20, 0x69, 0xdd, 0x4d, 0xd8, - 0x6c, 0x1a, 0x9c, 0x14, 0x58, 0x84, 0x64, 0xb9, 0xce, 0x34, 0x1d, 0xad, 0x63, 0x1b,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x14, 0x9b, 0x31, 0xaa, 0xc9, 0x8f, 0x17, 0x20, 0xa2, 0xd4, 0x03, 0x58, 0x9b, 0xef, 0xc0, 0xf8, - 0x51, 0x14, 0x96, 0x3a, 0x08, 0xc8, 0xbb, 0x99, 0xfe, 0x28, 0xe9, 0x57, 0xb0, 0x91, 0x68, 0x45, - 0xf8, 0xba, 0x9c, 0xac, 0xf6, 0x2c, 0x2b, 0x8b, 0x20, 0x71, 0xc6, 0x53, 0xba, 0x47, 0x8c, 0xf1, - 0xec, 0x86, 0x15, 0x63, 0x7c, 0x51, 0x03, 0xca, 0xb5, 0x8e, 0xbf, 0xdc, 0x1b, 0x53, 0x76, 0x31, - 0x3d, 0x6b, 0x98, 0xce, 0x64, 0x3f, 0x8c, 0x09, 0xfe, 0xd0, 0x99, 0x8e, 0x35, 0x33, 0xfc, 0x98, - 0x5f, 0xed, 0xd2, 0x4b, 0xf2, 0x8a, 0x1f, 0x20, 0x77, 0xfd, 0x91, 0x5f, 0x0b, 0xbf, 0x5f, 0xbc, - 0x10, 0x86, 0xb3, 0x65, 0x11, 0xf2, 0xde, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb2, 0x23, 0xe0, - 0x48, 0x38, 0x0e, 0x00, 0x00, + // 1393 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xcf, 0x6e, 0xdb, 0x46, + 0x13, 0xd7, 0x4a, 0xb6, 0x63, 0x8d, 0xfe, 0x58, 0xde, 0x38, 0x31, 0x4d, 0xc7, 0xb1, 0x4c, 0x7f, + 0xc8, 0x27, 0xf8, 0x20, 0x23, 0xfe, 0x3e, 0xa4, 0x48, 0xda, 0x43, 0x25, 0x9b, 0x8e, 0xd4, 0x28, + 0x92, 0x4a, 0xc9, 0x69, 0x53, 0x14, 0x20, 0x28, 0x69, 0x2d, 0x2f, 0x42, 0x91, 0x2c, 0xb9, 0x0a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e1, 0x98, 0xb2, 0xab, 0xe9, 0xa0, 0x3a, 0x34, + 0x27, 0xc7, 0x7e, 0x8c, 0xf7, 0xc3, 0x3e, 0x34, 0xf5, 0x99, 0xe1, 0xfb, 0x74, 0xa1, 0x45, 0xdf, + 0x92, 0x17, 0xee, 0x05, 0xba, 0xae, 0xdf, 0xd2, 0x45, 0x7f, 0xfd, 0xec, 0x19, 0x37, 0x0c, 0xd6, + 0x78, 0xc8, 0xff, 0xfe, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x3e, 0xdb, 0x66, 0x46, 0x18, 0x10, 0x00, + 0x00, } diff --git a/protobufs/livekit_phone_number.proto b/protobufs/livekit_phone_number.proto index a149b3cc1..796aefb8d 100644 --- a/protobufs/livekit_phone_number.proto +++ b/protobufs/livekit_phone_number.proto @@ -17,7 +17,20 @@ enum PhoneNumberStatus { PHONE_NUMBER_STATUS_ACTIVE = 1; // Number is active and ready for use PHONE_NUMBER_STATUS_PENDING = 2; // Number is being provisioned PHONE_NUMBER_STATUS_RELEASED = 3; // Number has been released - PHONE_NUMBER_STATUS_OFFLINE = 4; // Number is offline (not associated with any dispatch rule) + PHONE_NUMBER_STATUS_OFFLINE = 4; // Number is offline (provider is unreachable) +} + +enum PhoneNumberInboundStatus { + PHONE_NUMBER_IN_STATUS_UNSPECIFIED = 0; // Default value + PHONE_NUMBER_IN_STATUS_ACTIVE = 1; // Number is serving inbound calls + PHONE_NUMBER_IN_STATUS_UNAVAILABLE = 2; // Inbound calling is unavailable + PHONE_NUMBER_IN_STATUS_DETACHED = 3; // Number is not serving calls (not associated with dispatch rules) +} + +enum PhoneNumberOutboundStatus { + PHONE_NUMBER_OUT_STATUS_UNSPECIFIED = 0; // Default value + PHONE_NUMBER_OUT_STATUS_ACTIVE = 1; // Number is can be used to initiate outbound calls + PHONE_NUMBER_OUT_STATUS_UNAVAILABLE = 2; // Outbound calling is unavailable } // Phone number type enumeration @@ -83,7 +96,7 @@ message PurchasePhoneNumberResponse { // ListPhoneNumbersRequest - Request to list phone numbers message ListPhoneNumbersRequest { optional int32 limit = 1; // Maximum number of results (default: 50) - repeated PhoneNumberStatus statuses = 2; // Filter by statuses (active, pending, released) + repeated PhoneNumberStatus statuses = 2; // Filter by statuses (active, pending, released) optional TokenPagination page_token = 3; // Token for pagination (empty for first page) optional string sip_dispatch_rule_id = 4 [(logger.name) = "sipDispatchRuleID"]; // Filter by SIP dispatch rule ID } @@ -146,6 +159,8 @@ message PhoneNumber { google.protobuf.Timestamp updated_at = 10; // Last update timestamp repeated string capabilities = 11; // Available capabilities (e.g., "voice", "sms") PhoneNumberStatus status = 12; // Current status + PhoneNumberInboundStatus inbound_status = 18; // Inbound calling status + PhoneNumberOutboundStatus outbound_status = 19; // Outbound calling status google.protobuf.Timestamp assigned_at = 13; // Assignment timestamp google.protobuf.Timestamp released_at = 14; // Release timestamp (if applicable) string sip_dispatch_rule_id = 15 [deprecated=true, (logger.name) = "sipDispatchRuleID"]; // Associated SIP dispatch rule ID (deprecated: use sip_dispatch_rule_ids instead)