telnyx 5.150.0 → 5.152.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -531
  3. data/README.md +10 -1
  4. data/lib/telnyx/models/advanced_order_create_params.rb +1 -86
  5. data/lib/telnyx/models/advanced_order_update_requirement_group_params.rb +1 -88
  6. data/lib/telnyx/models/ai_retrieve_conversation_histories_params.rb +22 -48
  7. data/lib/telnyx/models/ai_retrieve_conversation_histories_response.rb +10 -50
  8. data/lib/telnyx/models/calls/deepgram_nova2_config.rb +23 -1
  9. data/lib/telnyx/models/calls/deepgram_nova3_config.rb +22 -1
  10. data/lib/telnyx/models/calls/transcription_start_request.rb +5 -3
  11. data/lib/telnyx/models/dir/email_verification_status_wrapped.rb +82 -0
  12. data/lib/telnyx/models/dir/reference.rb +125 -0
  13. data/lib/telnyx/models/dir/reference_create_params.rb +43 -0
  14. data/lib/telnyx/models/dir/reference_input.rb +74 -0
  15. data/lib/telnyx/models/dir/reference_list.rb +18 -0
  16. data/lib/telnyx/models/dir/{phone_number_delete_all_params.rb → reference_list_params.rb} +3 -9
  17. data/lib/telnyx/models/dir/reference_update_params.rb +103 -0
  18. data/lib/telnyx/models/dir/reference_update_response.rb +23 -0
  19. data/lib/telnyx/models/dir/verify_email_confirm_params.rb +31 -0
  20. data/lib/telnyx/models/dir/verify_email_create_params.rb +22 -0
  21. data/lib/telnyx/models/dir/verify_email_list_params.rb +22 -0
  22. data/lib/telnyx/models/dir_update_infringement_params.rb +6 -2
  23. data/lib/telnyx/models/enterprises/dir_create_params.rb +10 -10
  24. data/lib/telnyx/models/public_internet_gateway.rb +24 -1
  25. data/lib/telnyx/models/storage/kv_create_params.rb +24 -0
  26. data/lib/telnyx/models/storage/kv_delete_params.rb +22 -0
  27. data/lib/telnyx/models/storage/kv_list_params.rb +32 -0
  28. data/lib/telnyx/models/storage/kv_namespace.rb +75 -0
  29. data/lib/telnyx/models/storage/kv_namespace_response_wrapper.rb +18 -0
  30. data/lib/telnyx/models/storage/kv_retrieve_params.rb +22 -0
  31. data/lib/telnyx/models/storage/kvs/key_delete_params.rb +30 -0
  32. data/lib/telnyx/models/storage/kvs/key_list_params.rb +49 -0
  33. data/lib/telnyx/models/storage/kvs/key_list_response.rb +82 -0
  34. data/lib/telnyx/models/storage/kvs/key_retrieve_params.rb +30 -0
  35. data/lib/telnyx/models/storage/kvs/key_update_params.rb +53 -0
  36. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +9 -69
  37. data/lib/telnyx/models/virtual_cross_connect_create.rb +176 -2
  38. data/lib/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rb +31 -0
  39. data/lib/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rb +54 -0
  40. data/lib/telnyx/models/wireguard_interface.rb +24 -1
  41. data/lib/telnyx/resources/ai.rb +20 -21
  42. data/lib/telnyx/resources/calls/actions.rb +1 -1
  43. data/lib/telnyx/resources/dir/references.rb +139 -0
  44. data/lib/telnyx/resources/dir/verify_email.rb +91 -0
  45. data/lib/telnyx/resources/dir.rb +17 -1
  46. data/lib/telnyx/resources/documents.rb +1 -1
  47. data/lib/telnyx/resources/enterprises/dir.rb +3 -3
  48. data/lib/telnyx/resources/storage/kvs/keys.rb +154 -0
  49. data/lib/telnyx/resources/storage/kvs.rb +115 -0
  50. data/lib/telnyx/resources/storage.rb +5 -0
  51. data/lib/telnyx/resources/whatsapp/phone_numbers.rb +27 -0
  52. data/lib/telnyx/version.rb +1 -1
  53. data/lib/telnyx.rb +29 -2
  54. data/rbi/telnyx/models/advanced_order_create_params.rbi +4 -198
  55. data/rbi/telnyx/models/advanced_order_update_requirement_group_params.rbi +2 -219
  56. data/rbi/telnyx/models/ai/assistant_get_texml_response.rbi +1 -1
  57. data/rbi/telnyx/models/ai/assistants/instruction_enhance_response.rbi +1 -1
  58. data/rbi/telnyx/models/ai_retrieve_conversation_histories_params.rbi +30 -97
  59. data/rbi/telnyx/models/ai_retrieve_conversation_histories_response.rbi +10 -85
  60. data/rbi/telnyx/models/calls/deepgram_nova2_config.rbi +34 -0
  61. data/rbi/telnyx/models/calls/deepgram_nova3_config.rbi +32 -0
  62. data/rbi/telnyx/models/calls/transcription_start_request.rbi +5 -0
  63. data/rbi/telnyx/models/dir/email_verification_status_wrapped.rbi +184 -0
  64. data/rbi/telnyx/models/dir/reference.rbi +162 -0
  65. data/rbi/telnyx/models/dir/reference_create_params.rbi +66 -0
  66. data/rbi/telnyx/models/dir/reference_input.rbi +93 -0
  67. data/rbi/telnyx/models/dir/reference_list.rbi +29 -0
  68. data/rbi/telnyx/models/dir/reference_list_params.rbi +37 -0
  69. data/rbi/telnyx/models/dir/reference_update_params.rbi +154 -0
  70. data/rbi/telnyx/models/dir/reference_update_response.rbi +39 -0
  71. data/rbi/telnyx/models/dir/{phone_number_delete_all_params.rbi → verify_email_confirm_params.rbi} +13 -7
  72. data/rbi/telnyx/models/dir/verify_email_create_params.rbi +40 -0
  73. data/rbi/telnyx/models/dir/verify_email_list_params.rbi +37 -0
  74. data/rbi/telnyx/models/dir_update_infringement_params.rbi +4 -2
  75. data/rbi/telnyx/models/enterprises/dir_create_params.rbi +10 -13
  76. data/rbi/telnyx/models/messaging_profiles/autoresp_config_delete_response.rbi +1 -1
  77. data/rbi/telnyx/models/public_internet_gateway.rbi +45 -3
  78. data/rbi/telnyx/models/storage/kv_create_params.rbi +42 -0
  79. data/rbi/telnyx/models/storage/kv_delete_params.rbi +37 -0
  80. data/rbi/telnyx/models/storage/kv_list_params.rbi +59 -0
  81. data/rbi/telnyx/models/storage/kv_namespace.rbi +131 -0
  82. data/rbi/telnyx/models/storage/kv_namespace_response_wrapper.rbi +35 -0
  83. data/rbi/telnyx/models/storage/kv_retrieve_params.rbi +37 -0
  84. data/rbi/telnyx/models/storage/kvs/key_delete_params.rbi +50 -0
  85. data/rbi/telnyx/models/storage/kvs/key_list_params.rbi +81 -0
  86. data/rbi/telnyx/models/storage/kvs/key_list_response.rbi +179 -0
  87. data/rbi/telnyx/models/storage/kvs/key_retrieve_params.rbi +50 -0
  88. data/rbi/telnyx/models/storage/kvs/key_update_params.rbi +77 -0
  89. data/rbi/telnyx/models/sub_number_orders_report_download_response.rbi +1 -1
  90. data/rbi/telnyx/models/telephony_credential_create_token_response.rbi +1 -1
  91. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +12 -189
  92. data/rbi/telnyx/models/virtual_cross_connect_create.rbi +265 -7
  93. data/rbi/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rbi +54 -0
  94. data/rbi/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rbi +125 -0
  95. data/rbi/telnyx/models/wireguard_interface.rbi +48 -3
  96. data/rbi/telnyx/models/wireguard_peer_retrieve_config_response.rbi +1 -1
  97. data/rbi/telnyx/models.rbi +0 -7
  98. data/rbi/telnyx/resources/ai.rbi +21 -28
  99. data/rbi/telnyx/resources/calls/actions.rbi +1 -0
  100. data/rbi/telnyx/resources/dir/references.rbi +114 -0
  101. data/rbi/telnyx/resources/dir/verify_email.rbi +70 -0
  102. data/rbi/telnyx/resources/dir.rbi +13 -1
  103. data/rbi/telnyx/resources/enterprises/dir.rbi +4 -4
  104. data/rbi/telnyx/resources/storage/kvs/keys.rbi +115 -0
  105. data/rbi/telnyx/resources/storage/kvs.rbi +87 -0
  106. data/rbi/telnyx/resources/storage.rbi +4 -0
  107. data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +21 -0
  108. data/sig/telnyx/models/advanced_order_create_params.rbs +3 -99
  109. data/sig/telnyx/models/advanced_order_update_requirement_group_params.rbs +3 -94
  110. data/sig/telnyx/models/ai_retrieve_conversation_histories_params.rbs +15 -34
  111. data/sig/telnyx/models/ai_retrieve_conversation_histories_response.rbs +0 -24
  112. data/sig/telnyx/models/calls/deepgram_nova2_config.rbs +14 -0
  113. data/sig/telnyx/models/calls/deepgram_nova3_config.rbs +14 -0
  114. data/sig/telnyx/models/calls/transcription_start_request.rbs +1 -0
  115. data/sig/telnyx/models/dir/email_verification_status_wrapped.rbs +69 -0
  116. data/sig/telnyx/models/dir/reference.rbs +88 -0
  117. data/sig/telnyx/models/dir/reference_create_params.rbs +38 -0
  118. data/sig/telnyx/models/dir/reference_input.rbs +52 -0
  119. data/sig/telnyx/models/dir/reference_list.rbs +15 -0
  120. data/sig/telnyx/models/dir/reference_list_params.rbs +25 -0
  121. data/sig/telnyx/models/dir/reference_update_params.rbs +92 -0
  122. data/sig/telnyx/models/dir/reference_update_response.rbs +15 -0
  123. data/sig/telnyx/models/dir/{phone_number_delete_all_params.rbs → verify_email_confirm_params.rbs} +6 -6
  124. data/sig/telnyx/models/dir/verify_email_create_params.rbs +25 -0
  125. data/sig/telnyx/models/dir/verify_email_list_params.rbs +25 -0
  126. data/sig/telnyx/models/enterprises/dir_create_params.rbs +5 -7
  127. data/sig/telnyx/models/public_internet_gateway.rbs +32 -3
  128. data/sig/telnyx/models/storage/kv_create_params.rbs +25 -0
  129. data/sig/telnyx/models/storage/kv_delete_params.rbs +22 -0
  130. data/sig/telnyx/models/storage/kv_list_params.rbs +34 -0
  131. data/sig/telnyx/models/storage/kv_namespace.rbs +80 -0
  132. data/sig/telnyx/models/storage/kv_namespace_response_wrapper.rbs +20 -0
  133. data/sig/telnyx/models/storage/kv_retrieve_params.rbs +22 -0
  134. data/sig/telnyx/models/storage/kvs/key_delete_params.rbs +32 -0
  135. data/sig/telnyx/models/storage/kvs/key_list_params.rbs +46 -0
  136. data/sig/telnyx/models/storage/kvs/key_list_response.rbs +88 -0
  137. data/sig/telnyx/models/{enterprises/reputation/loa_patch_all_params.rbs → storage/kvs/key_retrieve_params.rbs} +11 -11
  138. data/sig/telnyx/models/storage/kvs/key_update_params.rbs +47 -0
  139. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -63
  140. data/sig/telnyx/models/virtual_cross_connect_create.rbs +138 -7
  141. data/sig/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rbs +30 -0
  142. data/sig/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rbs +66 -0
  143. data/sig/telnyx/models/wireguard_interface.rbs +34 -3
  144. data/sig/telnyx/models.rbs +0 -1
  145. data/sig/telnyx/resources/ai.rbs +2 -3
  146. data/sig/telnyx/resources/dir/references.rbs +35 -0
  147. data/sig/telnyx/resources/dir/verify_email.rbs +25 -0
  148. data/sig/telnyx/resources/dir.rbs +4 -0
  149. data/sig/telnyx/resources/enterprises/dir.rbs +1 -1
  150. data/sig/telnyx/resources/storage/kvs/keys.rbs +39 -0
  151. data/sig/telnyx/resources/storage/kvs.rbs +32 -0
  152. data/sig/telnyx/resources/storage.rbs +2 -0
  153. data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +6 -0
  154. metadata +86 -38
  155. data/lib/telnyx/models/dir/phone_number_create_params.rb +0 -47
  156. data/lib/telnyx/models/dir/phone_number_create_response.rb +0 -32
  157. data/lib/telnyx/models/dir/phone_number_delete_all_response.rb +0 -103
  158. data/lib/telnyx/models/dir_loa_params.rb +0 -79
  159. data/lib/telnyx/models/dir_retrieve_document_types_params.rb +0 -14
  160. data/lib/telnyx/models/dir_retrieve_document_types_response.rb +0 -51
  161. data/lib/telnyx/models/dir_retrieve_infringement_claims_params.rb +0 -40
  162. data/lib/telnyx/models/dir_retrieve_infringement_claims_response.rb +0 -30
  163. data/lib/telnyx/models/dir_update_infringement_update_params.rb +0 -134
  164. data/lib/telnyx/models/enterprises/reputation/loa_create_params.rb +0 -146
  165. data/lib/telnyx/models/enterprises/reputation/loa_patch_all_params.rb +0 -38
  166. data/rbi/telnyx/models/dir/phone_number_create_params.rbi +0 -72
  167. data/rbi/telnyx/models/dir/phone_number_create_response.rbi +0 -48
  168. data/rbi/telnyx/models/dir/phone_number_delete_all_response.rbi +0 -206
  169. data/rbi/telnyx/models/dir_loa_params.rbi +0 -120
  170. data/rbi/telnyx/models/dir_retrieve_document_types_params.rbi +0 -30
  171. data/rbi/telnyx/models/dir_retrieve_document_types_response.rbi +0 -103
  172. data/rbi/telnyx/models/dir_retrieve_infringement_claims_params.rbi +0 -66
  173. data/rbi/telnyx/models/dir_retrieve_infringement_claims_response.rbi +0 -55
  174. data/rbi/telnyx/models/dir_update_infringement_update_params.rbi +0 -256
  175. data/rbi/telnyx/models/enterprises/reputation/loa_create_params.rbi +0 -238
  176. data/rbi/telnyx/models/enterprises/reputation/loa_patch_all_params.rbi +0 -60
  177. data/sig/telnyx/models/dir/phone_number_create_params.rbs +0 -38
  178. data/sig/telnyx/models/dir/phone_number_create_response.rbs +0 -16
  179. data/sig/telnyx/models/dir/phone_number_delete_all_response.rbs +0 -86
  180. data/sig/telnyx/models/dir_loa_params.rbs +0 -61
  181. data/sig/telnyx/models/dir_retrieve_document_types_params.rbs +0 -15
  182. data/sig/telnyx/models/dir_retrieve_document_types_response.rbs +0 -41
  183. data/sig/telnyx/models/dir_retrieve_infringement_claims_params.rbs +0 -36
  184. data/sig/telnyx/models/dir_retrieve_infringement_claims_response.rbs +0 -25
  185. data/sig/telnyx/models/dir_update_infringement_update_params.rbs +0 -111
  186. data/sig/telnyx/models/enterprises/reputation/loa_create_params.rbs +0 -135
@@ -0,0 +1,125 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Dir
6
+ class Reference < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute full_name
8
+ # Full name of the reference contact.
9
+ #
10
+ # @return [String]
11
+ required :full_name, String
12
+
13
+ # @!attribute phone_e164
14
+ # Reference phone number in E.164 format.
15
+ #
16
+ # @return [String]
17
+ required :phone_e164, String
18
+
19
+ # @!attribute ref_type
20
+ # Whether this is a business reference or the financial reference.
21
+ #
22
+ # @return [Symbol, Telnyx::Models::Dir::Reference::RefType]
23
+ required :ref_type, enum: -> { Telnyx::Dir::Reference::RefType }
24
+
25
+ # @!attribute slot
26
+ # Position within the reference type. Business references occupy slots 0 and 1;
27
+ # the financial reference occupies slot 0.
28
+ #
29
+ # @return [Integer]
30
+ required :slot, Integer
31
+
32
+ # @!attribute timezone
33
+ # IANA timezone id for the reference. Calls are only placed within the reference's
34
+ # local 8am-9pm window.
35
+ #
36
+ # @return [String]
37
+ required :timezone, String
38
+
39
+ # @!attribute email
40
+ # Reference contact email address.
41
+ #
42
+ # @return [String, nil]
43
+ optional :email, String, nil?: true
44
+
45
+ # @!attribute job_title
46
+ # Job title of the reference contact.
47
+ #
48
+ # @return [String, nil]
49
+ optional :job_title, String, nil?: true
50
+
51
+ # @!attribute organization
52
+ # Organization the reference contact belongs to.
53
+ #
54
+ # @return [String, nil]
55
+ optional :organization, String, nil?: true
56
+
57
+ # @!attribute relationship_to_registrant
58
+ # How the reference contact is related to the registering business.
59
+ #
60
+ # @return [String, nil]
61
+ optional :relationship_to_registrant, String, nil?: true
62
+
63
+ response_only do
64
+ # @!attribute record_type
65
+ # Always `dir_reference`.
66
+ #
67
+ # @return [Symbol, Telnyx::Models::Dir::Reference::RecordType]
68
+ required :record_type, enum: -> { Telnyx::Dir::Reference::RecordType }
69
+ end
70
+
71
+ # @!method initialize(full_name:, phone_e164:, record_type:, ref_type:, slot:, timezone:, email: nil, job_title: nil, organization: nil, relationship_to_registrant: nil)
72
+ # Some parameter documentations has been truncated, see
73
+ # {Telnyx::Models::Dir::Reference} for more details.
74
+ #
75
+ # A reference (business or financial) on a DIR, in the customer-facing shape. No
76
+ # internal identifiers are exposed.
77
+ #
78
+ # @param full_name [String] Full name of the reference contact.
79
+ #
80
+ # @param phone_e164 [String] Reference phone number in E.164 format.
81
+ #
82
+ # @param record_type [Symbol, Telnyx::Models::Dir::Reference::RecordType] Always `dir_reference`.
83
+ #
84
+ # @param ref_type [Symbol, Telnyx::Models::Dir::Reference::RefType] Whether this is a business reference or the financial reference.
85
+ #
86
+ # @param slot [Integer] Position within the reference type. Business references occupy slots 0 and 1; th
87
+ #
88
+ # @param timezone [String] IANA timezone id for the reference. Calls are only placed within the reference's
89
+ #
90
+ # @param email [String, nil] Reference contact email address.
91
+ #
92
+ # @param job_title [String, nil] Job title of the reference contact.
93
+ #
94
+ # @param organization [String, nil] Organization the reference contact belongs to.
95
+ #
96
+ # @param relationship_to_registrant [String, nil] How the reference contact is related to the registering business.
97
+
98
+ # Always `dir_reference`.
99
+ #
100
+ # @see Telnyx::Models::Dir::Reference#record_type
101
+ module RecordType
102
+ extend Telnyx::Internal::Type::Enum
103
+
104
+ DIR_REFERENCE = :dir_reference
105
+
106
+ # @!method self.values
107
+ # @return [Array<Symbol>]
108
+ end
109
+
110
+ # Whether this is a business reference or the financial reference.
111
+ #
112
+ # @see Telnyx::Models::Dir::Reference#ref_type
113
+ module RefType
114
+ extend Telnyx::Internal::Type::Enum
115
+
116
+ BUSINESS = :business
117
+ FINANCIAL = :financial
118
+
119
+ # @!method self.values
120
+ # @return [Array<Symbol>]
121
+ end
122
+ end
123
+ end
124
+ end
125
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Dir
6
+ # @see Telnyx::Resources::Dir::References#create
7
+ class ReferenceCreateParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ # @!attribute dir_id
12
+ #
13
+ # @return [String]
14
+ required :dir_id, String
15
+
16
+ # @!attribute business_references
17
+ # Exactly two business references.
18
+ #
19
+ # @return [Array<Telnyx::Models::Dir::ReferenceInput>]
20
+ required :business_references, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Dir::ReferenceInput] }
21
+
22
+ # @!attribute financial_reference
23
+ # One reference supplied at submit. The reference type is implied by the field
24
+ # that carries it (business_references vs financial_reference).
25
+ #
26
+ # @return [Telnyx::Models::Dir::ReferenceInput]
27
+ required :financial_reference, -> { Telnyx::Dir::ReferenceInput }
28
+
29
+ # @!method initialize(dir_id:, business_references:, financial_reference:, request_options: {})
30
+ # Some parameter documentations has been truncated, see
31
+ # {Telnyx::Models::Dir::ReferenceCreateParams} for more details.
32
+ #
33
+ # @param dir_id [String]
34
+ #
35
+ # @param business_references [Array<Telnyx::Models::Dir::ReferenceInput>] Exactly two business references.
36
+ #
37
+ # @param financial_reference [Telnyx::Models::Dir::ReferenceInput] One reference supplied at submit. The reference type is implied by the field tha
38
+ #
39
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,74 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Dir
6
+ class ReferenceInput < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute email
8
+ # Reference contact email address. Required: the reference is emailed scheduling
9
+ # and dial-in notices.
10
+ #
11
+ # @return [String]
12
+ required :email, String
13
+
14
+ # @!attribute full_name
15
+ # Full name of the reference contact.
16
+ #
17
+ # @return [String]
18
+ required :full_name, String
19
+
20
+ # @!attribute phone_e164
21
+ # Reference phone number in E.164 format, e.g. +14155550123.
22
+ #
23
+ # @return [String]
24
+ required :phone_e164, String
25
+
26
+ # @!attribute timezone
27
+ # IANA timezone id for the reference (e.g. America/New_York). Required: calls are
28
+ # only placed within the reference's local 8am-9pm window.
29
+ #
30
+ # @return [String]
31
+ required :timezone, String
32
+
33
+ # @!attribute job_title
34
+ # Job title of the reference contact.
35
+ #
36
+ # @return [String, nil]
37
+ optional :job_title, String, nil?: true
38
+
39
+ # @!attribute organization
40
+ # Organization the reference contact belongs to.
41
+ #
42
+ # @return [String, nil]
43
+ optional :organization, String, nil?: true
44
+
45
+ # @!attribute relationship_to_registrant
46
+ # How the reference contact is related to the registering business.
47
+ #
48
+ # @return [String, nil]
49
+ optional :relationship_to_registrant, String, nil?: true
50
+
51
+ # @!method initialize(email:, full_name:, phone_e164:, timezone:, job_title: nil, organization: nil, relationship_to_registrant: nil)
52
+ # Some parameter documentations has been truncated, see
53
+ # {Telnyx::Models::Dir::ReferenceInput} for more details.
54
+ #
55
+ # One reference supplied at submit. The reference type is implied by the field
56
+ # that carries it (business_references vs financial_reference).
57
+ #
58
+ # @param email [String] Reference contact email address. Required: the reference is emailed scheduling a
59
+ #
60
+ # @param full_name [String] Full name of the reference contact.
61
+ #
62
+ # @param phone_e164 [String] Reference phone number in E.164 format, e.g. +14155550123.
63
+ #
64
+ # @param timezone [String] IANA timezone id for the reference (e.g. America/New_York). Required: calls are
65
+ #
66
+ # @param job_title [String, nil] Job title of the reference contact.
67
+ #
68
+ # @param organization [String, nil] Organization the reference contact belongs to.
69
+ #
70
+ # @param relationship_to_registrant [String, nil] How the reference contact is related to the registering business.
71
+ end
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Dir
6
+ # @see Telnyx::Resources::Dir::References#create
7
+ class ReferenceList < Telnyx::Internal::Type::BaseModel
8
+ # @!attribute data
9
+ #
10
+ # @return [Array<Telnyx::Models::Dir::Reference>]
11
+ required :data, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Dir::Reference] }
12
+
13
+ # @!method initialize(data:)
14
+ # @param data [Array<Telnyx::Models::Dir::Reference>]
15
+ end
16
+ end
17
+ end
18
+ end
@@ -3,8 +3,8 @@
3
3
  module Telnyx
4
4
  module Models
5
5
  module Dir
6
- # @see Telnyx::Resources::Dir::PhoneNumbers#delete_all
7
- class PhoneNumberDeleteAllParams < Telnyx::Internal::Type::BaseModel
6
+ # @see Telnyx::Resources::Dir::References#list
7
+ class ReferenceListParams < Telnyx::Internal::Type::BaseModel
8
8
  extend Telnyx::Internal::Type::RequestParameters::Converter
9
9
  include Telnyx::Internal::Type::RequestParameters
10
10
 
@@ -13,14 +13,8 @@ module Telnyx
13
13
  # @return [String]
14
14
  required :dir_id, String
15
15
 
16
- # @!attribute phone_numbers
17
- #
18
- # @return [Array<String>]
19
- required :phone_numbers, Telnyx::Internal::Type::ArrayOf[String]
20
-
21
- # @!method initialize(dir_id:, phone_numbers:, request_options: {})
16
+ # @!method initialize(dir_id:, request_options: {})
22
17
  # @param dir_id [String]
23
- # @param phone_numbers [Array<String>]
24
18
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
25
19
  end
26
20
  end
@@ -0,0 +1,103 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Dir
6
+ # @see Telnyx::Resources::Dir::References#update
7
+ class ReferenceUpdateParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ # @!attribute dir_id
12
+ #
13
+ # @return [String]
14
+ required :dir_id, String
15
+
16
+ # @!attribute ref_type
17
+ #
18
+ # @return [Symbol, Telnyx::Models::Dir::ReferenceUpdateParams::RefType]
19
+ required :ref_type, enum: -> { Telnyx::Dir::ReferenceUpdateParams::RefType }
20
+
21
+ # @!attribute slot
22
+ #
23
+ # @return [Integer]
24
+ required :slot, Integer
25
+
26
+ # @!attribute email
27
+ # Reference contact email address.
28
+ #
29
+ # @return [String, nil]
30
+ optional :email, String
31
+
32
+ # @!attribute full_name
33
+ # Full name of the reference contact.
34
+ #
35
+ # @return [String, nil]
36
+ optional :full_name, String
37
+
38
+ # @!attribute job_title
39
+ # Job title of the reference contact.
40
+ #
41
+ # @return [String, nil]
42
+ optional :job_title, String, nil?: true
43
+
44
+ # @!attribute organization
45
+ # Organization the reference contact belongs to.
46
+ #
47
+ # @return [String, nil]
48
+ optional :organization, String, nil?: true
49
+
50
+ # @!attribute phone_e164
51
+ # Reference phone number in E.164 format.
52
+ #
53
+ # @return [String, nil]
54
+ optional :phone_e164, String
55
+
56
+ # @!attribute relationship_to_registrant
57
+ # How the reference contact is related to the registering business.
58
+ #
59
+ # @return [String, nil]
60
+ optional :relationship_to_registrant, String, nil?: true
61
+
62
+ # @!attribute timezone
63
+ # IANA timezone id for the reference.
64
+ #
65
+ # @return [String, nil]
66
+ optional :timezone, String
67
+
68
+ # @!method initialize(dir_id:, ref_type:, slot:, email: nil, full_name: nil, job_title: nil, organization: nil, phone_e164: nil, relationship_to_registrant: nil, timezone: nil, request_options: {})
69
+ # @param dir_id [String]
70
+ #
71
+ # @param ref_type [Symbol, Telnyx::Models::Dir::ReferenceUpdateParams::RefType]
72
+ #
73
+ # @param slot [Integer]
74
+ #
75
+ # @param email [String] Reference contact email address.
76
+ #
77
+ # @param full_name [String] Full name of the reference contact.
78
+ #
79
+ # @param job_title [String, nil] Job title of the reference contact.
80
+ #
81
+ # @param organization [String, nil] Organization the reference contact belongs to.
82
+ #
83
+ # @param phone_e164 [String] Reference phone number in E.164 format.
84
+ #
85
+ # @param relationship_to_registrant [String, nil] How the reference contact is related to the registering business.
86
+ #
87
+ # @param timezone [String] IANA timezone id for the reference.
88
+ #
89
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
90
+
91
+ module RefType
92
+ extend Telnyx::Internal::Type::Enum
93
+
94
+ BUSINESS = :business
95
+ FINANCIAL = :financial
96
+
97
+ # @!method self.values
98
+ # @return [Array<Symbol>]
99
+ end
100
+ end
101
+ end
102
+ end
103
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Dir
6
+ # @see Telnyx::Resources::Dir::References#update
7
+ class ReferenceUpdateResponse < Telnyx::Internal::Type::BaseModel
8
+ # @!attribute data
9
+ # A reference (business or financial) on a DIR, in the customer-facing shape. No
10
+ # internal identifiers are exposed.
11
+ #
12
+ # @return [Telnyx::Models::Dir::Reference]
13
+ required :data, -> { Telnyx::Dir::Reference }
14
+
15
+ # @!method initialize(data:)
16
+ # Some parameter documentations has been truncated, see
17
+ # {Telnyx::Models::Dir::ReferenceUpdateResponse} for more details.
18
+ #
19
+ # @param data [Telnyx::Models::Dir::Reference] A reference (business or financial) on a DIR, in the customer-facing shape. No i
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Dir
6
+ # @see Telnyx::Resources::Dir::VerifyEmail#confirm
7
+ class VerifyEmailConfirmParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ # @!attribute dir_id
12
+ #
13
+ # @return [String]
14
+ required :dir_id, String
15
+
16
+ # @!attribute code
17
+ # The 6-digit code sent to the authorizer email.
18
+ #
19
+ # @return [String]
20
+ required :code, String
21
+
22
+ # @!method initialize(dir_id:, code:, request_options: {})
23
+ # @param dir_id [String]
24
+ #
25
+ # @param code [String] The 6-digit code sent to the authorizer email.
26
+ #
27
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Dir
6
+ # @see Telnyx::Resources::Dir::VerifyEmail#create
7
+ class VerifyEmailCreateParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ # @!attribute dir_id
12
+ #
13
+ # @return [String]
14
+ required :dir_id, String
15
+
16
+ # @!method initialize(dir_id:, request_options: {})
17
+ # @param dir_id [String]
18
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Dir
6
+ # @see Telnyx::Resources::Dir::VerifyEmail#list
7
+ class VerifyEmailListParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ # @!attribute dir_id
12
+ #
13
+ # @return [String]
14
+ required :dir_id, String
15
+
16
+ # @!method initialize(dir_id:, request_options: {})
17
+ # @param dir_id [String]
18
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
19
+ end
20
+ end
21
+ end
22
+ end
@@ -55,7 +55,8 @@ module Telnyx
55
55
  optional :display_name, String, nil?: true
56
56
 
57
57
  # @!attribute documents
58
- # Append-only supporting documents.
58
+ # Append-only supporting documents to attach while resolving the claim (e.g.
59
+ # authorization or licensing proof).
59
60
  #
60
61
  # @return [Array<Telnyx::Models::Document>, nil]
61
62
  optional :documents, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Document] }, nil?: true
@@ -67,6 +68,9 @@ module Telnyx
67
68
  optional :logo_url, String, nil?: true
68
69
 
69
70
  # @!method initialize(dir_id:, certify_brand_is_accurate:, certify_ip_ownership:, certify_no_infringement:, certify_no_shaft_content:, infringement_resolution_notes:, call_reasons: nil, display_name: nil, documents: nil, logo_url: nil, request_options: {})
71
+ # Some parameter documentations has been truncated, see
72
+ # {Telnyx::Models::DirUpdateInfringementParams} for more details.
73
+ #
70
74
  # @param dir_id [String]
71
75
  #
72
76
  # @param certify_brand_is_accurate [Boolean, Telnyx::Models::DirUpdateInfringementParams::CertifyBrandIsAccurate] Must be `true`.
@@ -83,7 +87,7 @@ module Telnyx
83
87
  #
84
88
  # @param display_name [String, nil]
85
89
  #
86
- # @param documents [Array<Telnyx::Models::Document>, nil] Append-only supporting documents.
90
+ # @param documents [Array<Telnyx::Models::Document>, nil] Append-only supporting documents to attach while resolving the claim (e.g. autho
87
91
  #
88
92
  # @param logo_url [String, nil] Publicly accessible HTTPS URL (max 128 chars) to a 256x256 BMP logo (max 1 MB).
89
93
  #
@@ -27,6 +27,13 @@ module Telnyx
27
27
  # @return [String]
28
28
  required :authorizer_name, String
29
29
 
30
+ # @!attribute call_reasons
31
+ # 1–10 reasons your business calls customers. Validate phrasing against
32
+ # `POST /call_reasons/validate`.
33
+ #
34
+ # @return [Array<String>]
35
+ required :call_reasons, Telnyx::Internal::Type::ArrayOf[String]
36
+
30
37
  # @!attribute certify_brand_is_accurate
31
38
  # Must be `true`.
32
39
  #
@@ -54,13 +61,6 @@ module Telnyx
54
61
  # @return [String]
55
62
  required :display_name, String
56
63
 
57
- # @!attribute call_reasons
58
- # 1–10 reasons your business calls customers. Validate phrasing against
59
- # `POST /call_reasons/validate`.
60
- #
61
- # @return [Array<String>, nil]
62
- optional :call_reasons, Telnyx::Internal::Type::ArrayOf[String]
63
-
64
64
  # @!attribute documents
65
65
  # Supporting documents. Each `document_id` may appear at most once on a DIR.
66
66
  #
@@ -80,7 +80,7 @@ module Telnyx
80
80
  # @return [Boolean, nil]
81
81
  optional :reselling, Telnyx::Internal::Type::Boolean
82
82
 
83
- # @!method initialize(enterprise_id:, authorizer_email:, authorizer_name:, certify_brand_is_accurate:, certify_ip_ownership:, certify_no_shaft_content:, display_name:, call_reasons: nil, documents: nil, logo_url: nil, reselling: nil, request_options: {})
83
+ # @!method initialize(enterprise_id:, authorizer_email:, authorizer_name:, call_reasons:, certify_brand_is_accurate:, certify_ip_ownership:, certify_no_shaft_content:, display_name:, documents: nil, logo_url: nil, reselling: nil, request_options: {})
84
84
  # Some parameter documentations has been truncated, see
85
85
  # {Telnyx::Models::Enterprises::DirCreateParams} for more details.
86
86
  #
@@ -90,6 +90,8 @@ module Telnyx
90
90
  #
91
91
  # @param authorizer_name [String] Name of the person at your enterprise who is authorizing this DIR registration.
92
92
  #
93
+ # @param call_reasons [Array<String>] 1–10 reasons your business calls customers. Validate phrasing against `POST /cal
94
+ #
93
95
  # @param certify_brand_is_accurate [Boolean, Telnyx::Models::Enterprises::DirCreateParams::CertifyBrandIsAccurate] Must be `true`.
94
96
  #
95
97
  # @param certify_ip_ownership [Boolean, Telnyx::Models::Enterprises::DirCreateParams::CertifyIPOwnership] Must be `true`. Confirms ownership of any logos/trademarks shown.
@@ -98,8 +100,6 @@ module Telnyx
98
100
  #
99
101
  # @param display_name [String] Name shown to call recipients. No emoji; not whitespace-only.
100
102
  #
101
- # @param call_reasons [Array<String>] 1–10 reasons your business calls customers. Validate phrasing against `POST /cal
102
- #
103
103
  # @param documents [Array<Telnyx::Models::Document>] Supporting documents. Each `document_id` may appear at most once on a DIR.
104
104
  #
105
105
  # @param logo_url [String] Publicly accessible HTTPS URL (max 128 chars) to a 256x256 BMP logo (max 1 MB).
@@ -3,7 +3,30 @@
3
3
  module Telnyx
4
4
  module Models
5
5
  class PublicInternetGateway < Telnyx::Models::Record
6
- # @!method initialize
6
+ # @!attribute name
7
+ # A user specified name for the interface.
8
+ #
9
+ # @return [String, nil]
10
+ optional :name, String
11
+
12
+ # @!attribute network_id
13
+ # The id of the network associated with the interface.
14
+ #
15
+ # @return [String, nil]
16
+ optional :network_id, String
17
+
18
+ # @!attribute region_code
19
+ # The region interface is deployed to.
20
+ #
21
+ # @return [String, nil]
22
+ optional :region_code, String
23
+
24
+ # @!method initialize(name: nil, network_id: nil, region_code: nil)
25
+ # @param name [String] A user specified name for the interface.
26
+ #
27
+ # @param network_id [String] The id of the network associated with the interface.
28
+ #
29
+ # @param region_code [String] The region interface is deployed to.
7
30
  end
8
31
  end
9
32
  end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Storage
6
+ # @see Telnyx::Resources::Storage::Kvs#create
7
+ class KvCreateParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ # @!attribute name
12
+ # Namespace name. May contain lowercase letters, numbers, and hyphens only.
13
+ #
14
+ # @return [String]
15
+ required :name, String
16
+
17
+ # @!method initialize(name:, request_options: {})
18
+ # @param name [String] Namespace name. May contain lowercase letters, numbers, and hyphens only.
19
+ #
20
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Storage
6
+ # @see Telnyx::Resources::Storage::Kvs#delete
7
+ class KvDeleteParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ # @!attribute id
12
+ #
13
+ # @return [String]
14
+ required :id, String
15
+
16
+ # @!method initialize(id:, request_options: {})
17
+ # @param id [String]
18
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
19
+ end
20
+ end
21
+ end
22
+ end