telnyx 5.151.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -538
- data/README.md +1 -1
- data/lib/telnyx/models/advanced_order_create_params.rb +1 -86
- data/lib/telnyx/models/advanced_order_update_requirement_group_params.rb +1 -88
- data/lib/telnyx/models/dir/email_verification_status_wrapped.rb +82 -0
- data/lib/telnyx/models/dir/reference.rb +125 -0
- data/lib/telnyx/models/dir/reference_create_params.rb +43 -0
- data/lib/telnyx/models/dir/reference_input.rb +74 -0
- data/lib/telnyx/models/dir/reference_list.rb +18 -0
- data/lib/telnyx/models/dir/reference_list_params.rb +22 -0
- data/lib/telnyx/models/dir/reference_update_params.rb +103 -0
- data/lib/telnyx/models/dir/reference_update_response.rb +23 -0
- data/lib/telnyx/models/dir/verify_email_confirm_params.rb +31 -0
- data/lib/telnyx/models/dir/verify_email_create_params.rb +22 -0
- data/lib/telnyx/models/dir/verify_email_list_params.rb +22 -0
- data/lib/telnyx/models/dir_update_infringement_params.rb +6 -2
- data/lib/telnyx/models/enterprises/dir_create_params.rb +10 -10
- data/lib/telnyx/models/storage/kv_create_params.rb +24 -0
- data/lib/telnyx/models/storage/kv_delete_params.rb +22 -0
- data/lib/telnyx/models/storage/kv_list_params.rb +32 -0
- data/lib/telnyx/models/storage/kv_namespace.rb +75 -0
- data/lib/telnyx/models/storage/kv_namespace_response_wrapper.rb +18 -0
- data/lib/telnyx/models/storage/kv_retrieve_params.rb +22 -0
- data/lib/telnyx/models/storage/kvs/key_delete_params.rb +30 -0
- data/lib/telnyx/models/storage/kvs/key_list_params.rb +49 -0
- data/lib/telnyx/models/storage/kvs/key_list_response.rb +82 -0
- data/lib/telnyx/models/storage/kvs/key_retrieve_params.rb +30 -0
- data/lib/telnyx/models/storage/kvs/key_update_params.rb +53 -0
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rb +31 -0
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rb +54 -0
- data/lib/telnyx/resources/dir/references.rb +139 -0
- data/lib/telnyx/resources/dir/verify_email.rb +91 -0
- data/lib/telnyx/resources/dir.rb +17 -1
- data/lib/telnyx/resources/documents.rb +1 -1
- data/lib/telnyx/resources/enterprises/dir.rb +3 -3
- data/lib/telnyx/resources/storage/kvs/keys.rb +154 -0
- data/lib/telnyx/resources/storage/kvs.rb +115 -0
- data/lib/telnyx/resources/storage.rb +5 -0
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +27 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +28 -2
- data/rbi/telnyx/models/advanced_order_create_params.rbi +4 -198
- data/rbi/telnyx/models/advanced_order_update_requirement_group_params.rbi +2 -219
- data/rbi/telnyx/models/ai/assistant_get_texml_response.rbi +1 -1
- data/rbi/telnyx/models/ai/assistants/instruction_enhance_response.rbi +1 -1
- data/rbi/telnyx/models/dir/email_verification_status_wrapped.rbi +184 -0
- data/rbi/telnyx/models/dir/reference.rbi +162 -0
- data/rbi/telnyx/models/dir/reference_create_params.rbi +66 -0
- data/rbi/telnyx/models/dir/reference_input.rbi +93 -0
- data/rbi/telnyx/models/dir/reference_list.rbi +29 -0
- data/rbi/telnyx/models/dir/reference_list_params.rbi +37 -0
- data/rbi/telnyx/models/dir/reference_update_params.rbi +154 -0
- data/rbi/telnyx/models/dir/reference_update_response.rbi +39 -0
- data/rbi/telnyx/models/dir/verify_email_confirm_params.rbi +54 -0
- data/rbi/telnyx/models/dir/verify_email_create_params.rbi +40 -0
- data/rbi/telnyx/models/dir/verify_email_list_params.rbi +37 -0
- data/rbi/telnyx/models/dir_update_infringement_params.rbi +4 -2
- data/rbi/telnyx/models/enterprises/dir_create_params.rbi +10 -13
- data/rbi/telnyx/models/messaging_profiles/autoresp_config_delete_response.rbi +1 -1
- data/rbi/telnyx/models/storage/kv_create_params.rbi +42 -0
- data/rbi/telnyx/models/storage/kv_delete_params.rbi +37 -0
- data/rbi/telnyx/models/storage/kv_list_params.rbi +59 -0
- data/rbi/telnyx/models/storage/kv_namespace.rbi +131 -0
- data/rbi/telnyx/models/storage/kv_namespace_response_wrapper.rbi +35 -0
- data/rbi/telnyx/models/storage/kv_retrieve_params.rbi +37 -0
- data/rbi/telnyx/models/storage/kvs/key_delete_params.rbi +50 -0
- data/rbi/telnyx/models/storage/kvs/key_list_params.rbi +81 -0
- data/rbi/telnyx/models/storage/kvs/key_list_response.rbi +179 -0
- data/rbi/telnyx/models/storage/kvs/key_retrieve_params.rbi +50 -0
- data/rbi/telnyx/models/storage/kvs/key_update_params.rbi +77 -0
- data/rbi/telnyx/models/sub_number_orders_report_download_response.rbi +1 -1
- data/rbi/telnyx/models/telephony_credential_create_token_response.rbi +1 -1
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rbi +54 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rbi +125 -0
- data/rbi/telnyx/models/wireguard_peer_retrieve_config_response.rbi +1 -1
- data/rbi/telnyx/resources/dir/references.rbi +114 -0
- data/rbi/telnyx/resources/dir/verify_email.rbi +70 -0
- data/rbi/telnyx/resources/dir.rbi +13 -1
- data/rbi/telnyx/resources/enterprises/dir.rbi +4 -4
- data/rbi/telnyx/resources/storage/kvs/keys.rbi +115 -0
- data/rbi/telnyx/resources/storage/kvs.rbi +87 -0
- data/rbi/telnyx/resources/storage.rbi +4 -0
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +21 -0
- data/sig/telnyx/models/advanced_order_create_params.rbs +3 -99
- data/sig/telnyx/models/advanced_order_update_requirement_group_params.rbs +3 -94
- data/sig/telnyx/models/dir/email_verification_status_wrapped.rbs +69 -0
- data/sig/telnyx/models/dir/reference.rbs +88 -0
- data/sig/telnyx/models/dir/reference_create_params.rbs +38 -0
- data/sig/telnyx/models/dir/reference_input.rbs +52 -0
- data/sig/telnyx/models/dir/reference_list.rbs +15 -0
- data/sig/telnyx/models/dir/reference_list_params.rbs +25 -0
- data/sig/telnyx/models/dir/reference_update_params.rbs +92 -0
- data/sig/telnyx/models/dir/reference_update_response.rbs +15 -0
- data/sig/telnyx/models/dir/verify_email_confirm_params.rbs +30 -0
- data/sig/telnyx/models/dir/verify_email_create_params.rbs +25 -0
- data/sig/telnyx/models/dir/verify_email_list_params.rbs +25 -0
- data/sig/telnyx/models/enterprises/dir_create_params.rbs +5 -7
- data/sig/telnyx/models/storage/kv_create_params.rbs +25 -0
- data/sig/telnyx/models/storage/kv_delete_params.rbs +22 -0
- data/sig/telnyx/models/storage/kv_list_params.rbs +34 -0
- data/sig/telnyx/models/storage/kv_namespace.rbs +80 -0
- data/sig/telnyx/models/storage/kv_namespace_response_wrapper.rbs +20 -0
- data/sig/telnyx/models/storage/kv_retrieve_params.rbs +22 -0
- data/sig/telnyx/models/storage/kvs/key_delete_params.rbs +32 -0
- data/sig/telnyx/models/storage/kvs/key_list_params.rbs +46 -0
- data/sig/telnyx/models/storage/kvs/key_list_response.rbs +88 -0
- data/sig/telnyx/models/storage/kvs/key_retrieve_params.rbs +32 -0
- data/sig/telnyx/models/storage/kvs/key_update_params.rbs +47 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rbs +30 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rbs +66 -0
- data/sig/telnyx/resources/dir/references.rbs +35 -0
- data/sig/telnyx/resources/dir/verify_email.rbs +25 -0
- data/sig/telnyx/resources/dir.rbs +4 -0
- data/sig/telnyx/resources/enterprises/dir.rbs +1 -1
- data/sig/telnyx/resources/storage/kvs/keys.rbs +39 -0
- data/sig/telnyx/resources/storage/kvs.rbs +32 -0
- data/sig/telnyx/resources/storage.rbs +2 -0
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +6 -0
- metadata +85 -1
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Dir
|
|
6
|
+
class ReferenceUpdateParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(Telnyx::Dir::ReferenceUpdateParams, Telnyx::Internal::AnyHash)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :dir_id
|
|
17
|
+
|
|
18
|
+
sig { returns(Telnyx::Dir::ReferenceUpdateParams::RefType::OrSymbol) }
|
|
19
|
+
attr_accessor :ref_type
|
|
20
|
+
|
|
21
|
+
sig { returns(Integer) }
|
|
22
|
+
attr_accessor :slot
|
|
23
|
+
|
|
24
|
+
# Reference contact email address.
|
|
25
|
+
sig { returns(T.nilable(String)) }
|
|
26
|
+
attr_reader :email
|
|
27
|
+
|
|
28
|
+
sig { params(email: String).void }
|
|
29
|
+
attr_writer :email
|
|
30
|
+
|
|
31
|
+
# Full name of the reference contact.
|
|
32
|
+
sig { returns(T.nilable(String)) }
|
|
33
|
+
attr_reader :full_name
|
|
34
|
+
|
|
35
|
+
sig { params(full_name: String).void }
|
|
36
|
+
attr_writer :full_name
|
|
37
|
+
|
|
38
|
+
# Job title of the reference contact.
|
|
39
|
+
sig { returns(T.nilable(String)) }
|
|
40
|
+
attr_accessor :job_title
|
|
41
|
+
|
|
42
|
+
# Organization the reference contact belongs to.
|
|
43
|
+
sig { returns(T.nilable(String)) }
|
|
44
|
+
attr_accessor :organization
|
|
45
|
+
|
|
46
|
+
# Reference phone number in E.164 format.
|
|
47
|
+
sig { returns(T.nilable(String)) }
|
|
48
|
+
attr_reader :phone_e164
|
|
49
|
+
|
|
50
|
+
sig { params(phone_e164: String).void }
|
|
51
|
+
attr_writer :phone_e164
|
|
52
|
+
|
|
53
|
+
# How the reference contact is related to the registering business.
|
|
54
|
+
sig { returns(T.nilable(String)) }
|
|
55
|
+
attr_accessor :relationship_to_registrant
|
|
56
|
+
|
|
57
|
+
# IANA timezone id for the reference.
|
|
58
|
+
sig { returns(T.nilable(String)) }
|
|
59
|
+
attr_reader :timezone
|
|
60
|
+
|
|
61
|
+
sig { params(timezone: String).void }
|
|
62
|
+
attr_writer :timezone
|
|
63
|
+
|
|
64
|
+
sig do
|
|
65
|
+
params(
|
|
66
|
+
dir_id: String,
|
|
67
|
+
ref_type: Telnyx::Dir::ReferenceUpdateParams::RefType::OrSymbol,
|
|
68
|
+
slot: Integer,
|
|
69
|
+
email: String,
|
|
70
|
+
full_name: String,
|
|
71
|
+
job_title: T.nilable(String),
|
|
72
|
+
organization: T.nilable(String),
|
|
73
|
+
phone_e164: String,
|
|
74
|
+
relationship_to_registrant: T.nilable(String),
|
|
75
|
+
timezone: String,
|
|
76
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
77
|
+
).returns(T.attached_class)
|
|
78
|
+
end
|
|
79
|
+
def self.new(
|
|
80
|
+
dir_id:,
|
|
81
|
+
ref_type:,
|
|
82
|
+
slot:,
|
|
83
|
+
# Reference contact email address.
|
|
84
|
+
email: nil,
|
|
85
|
+
# Full name of the reference contact.
|
|
86
|
+
full_name: nil,
|
|
87
|
+
# Job title of the reference contact.
|
|
88
|
+
job_title: nil,
|
|
89
|
+
# Organization the reference contact belongs to.
|
|
90
|
+
organization: nil,
|
|
91
|
+
# Reference phone number in E.164 format.
|
|
92
|
+
phone_e164: nil,
|
|
93
|
+
# How the reference contact is related to the registering business.
|
|
94
|
+
relationship_to_registrant: nil,
|
|
95
|
+
# IANA timezone id for the reference.
|
|
96
|
+
timezone: nil,
|
|
97
|
+
request_options: {}
|
|
98
|
+
)
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
sig do
|
|
102
|
+
override.returns(
|
|
103
|
+
{
|
|
104
|
+
dir_id: String,
|
|
105
|
+
ref_type: Telnyx::Dir::ReferenceUpdateParams::RefType::OrSymbol,
|
|
106
|
+
slot: Integer,
|
|
107
|
+
email: String,
|
|
108
|
+
full_name: String,
|
|
109
|
+
job_title: T.nilable(String),
|
|
110
|
+
organization: T.nilable(String),
|
|
111
|
+
phone_e164: String,
|
|
112
|
+
relationship_to_registrant: T.nilable(String),
|
|
113
|
+
timezone: String,
|
|
114
|
+
request_options: Telnyx::RequestOptions
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
end
|
|
118
|
+
def to_hash
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
module RefType
|
|
122
|
+
extend Telnyx::Internal::Type::Enum
|
|
123
|
+
|
|
124
|
+
TaggedSymbol =
|
|
125
|
+
T.type_alias do
|
|
126
|
+
T.all(Symbol, Telnyx::Dir::ReferenceUpdateParams::RefType)
|
|
127
|
+
end
|
|
128
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
129
|
+
|
|
130
|
+
BUSINESS =
|
|
131
|
+
T.let(
|
|
132
|
+
:business,
|
|
133
|
+
Telnyx::Dir::ReferenceUpdateParams::RefType::TaggedSymbol
|
|
134
|
+
)
|
|
135
|
+
FINANCIAL =
|
|
136
|
+
T.let(
|
|
137
|
+
:financial,
|
|
138
|
+
Telnyx::Dir::ReferenceUpdateParams::RefType::TaggedSymbol
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
sig do
|
|
142
|
+
override.returns(
|
|
143
|
+
T::Array[
|
|
144
|
+
Telnyx::Dir::ReferenceUpdateParams::RefType::TaggedSymbol
|
|
145
|
+
]
|
|
146
|
+
)
|
|
147
|
+
end
|
|
148
|
+
def self.values
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Dir
|
|
6
|
+
class ReferenceUpdateResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Telnyx::Models::Dir::ReferenceUpdateResponse,
|
|
11
|
+
Telnyx::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# A reference (business or financial) on a DIR, in the customer-facing shape. No
|
|
16
|
+
# internal identifiers are exposed.
|
|
17
|
+
sig { returns(Telnyx::Dir::Reference) }
|
|
18
|
+
attr_reader :data
|
|
19
|
+
|
|
20
|
+
sig { params(data: Telnyx::Dir::Reference::OrHash).void }
|
|
21
|
+
attr_writer :data
|
|
22
|
+
|
|
23
|
+
sig do
|
|
24
|
+
params(data: Telnyx::Dir::Reference::OrHash).returns(T.attached_class)
|
|
25
|
+
end
|
|
26
|
+
def self.new(
|
|
27
|
+
# A reference (business or financial) on a DIR, in the customer-facing shape. No
|
|
28
|
+
# internal identifiers are exposed.
|
|
29
|
+
data:
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
sig { override.returns({ data: Telnyx::Dir::Reference }) }
|
|
34
|
+
def to_hash
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Dir
|
|
6
|
+
class VerifyEmailConfirmParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Telnyx::Dir::VerifyEmailConfirmParams,
|
|
14
|
+
Telnyx::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :dir_id
|
|
20
|
+
|
|
21
|
+
# The 6-digit code sent to the authorizer email.
|
|
22
|
+
sig { returns(String) }
|
|
23
|
+
attr_accessor :code
|
|
24
|
+
|
|
25
|
+
sig do
|
|
26
|
+
params(
|
|
27
|
+
dir_id: String,
|
|
28
|
+
code: String,
|
|
29
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
30
|
+
).returns(T.attached_class)
|
|
31
|
+
end
|
|
32
|
+
def self.new(
|
|
33
|
+
dir_id:,
|
|
34
|
+
# The 6-digit code sent to the authorizer email.
|
|
35
|
+
code:,
|
|
36
|
+
request_options: {}
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
override.returns(
|
|
42
|
+
{
|
|
43
|
+
dir_id: String,
|
|
44
|
+
code: String,
|
|
45
|
+
request_options: Telnyx::RequestOptions
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
def to_hash
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Dir
|
|
6
|
+
class VerifyEmailCreateParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Telnyx::Dir::VerifyEmailCreateParams,
|
|
14
|
+
Telnyx::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :dir_id
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
dir_id: String,
|
|
24
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
26
|
+
end
|
|
27
|
+
def self.new(dir_id:, request_options: {})
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
{ dir_id: String, request_options: Telnyx::RequestOptions }
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
def to_hash
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Dir
|
|
6
|
+
class VerifyEmailListParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(Telnyx::Dir::VerifyEmailListParams, Telnyx::Internal::AnyHash)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :dir_id
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
dir_id: String,
|
|
21
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
22
|
+
).returns(T.attached_class)
|
|
23
|
+
end
|
|
24
|
+
def self.new(dir_id:, request_options: {})
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
sig do
|
|
28
|
+
override.returns(
|
|
29
|
+
{ dir_id: String, request_options: Telnyx::RequestOptions }
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
def to_hash
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -56,7 +56,8 @@ module Telnyx
|
|
|
56
56
|
sig { returns(T.nilable(String)) }
|
|
57
57
|
attr_accessor :display_name
|
|
58
58
|
|
|
59
|
-
# Append-only supporting documents.
|
|
59
|
+
# Append-only supporting documents to attach while resolving the claim (e.g.
|
|
60
|
+
# authorization or licensing proof).
|
|
60
61
|
sig { returns(T.nilable(T::Array[Telnyx::Document])) }
|
|
61
62
|
attr_accessor :documents
|
|
62
63
|
|
|
@@ -97,7 +98,8 @@ module Telnyx
|
|
|
97
98
|
infringement_resolution_notes:,
|
|
98
99
|
call_reasons: nil,
|
|
99
100
|
display_name: nil,
|
|
100
|
-
# Append-only supporting documents.
|
|
101
|
+
# Append-only supporting documents to attach while resolving the claim (e.g.
|
|
102
|
+
# authorization or licensing proof).
|
|
101
103
|
documents: nil,
|
|
102
104
|
# Publicly accessible HTTPS URL (max 128 chars) to a 256x256 BMP logo (max 1 MB).
|
|
103
105
|
logo_url: nil,
|
|
@@ -28,6 +28,11 @@ module Telnyx
|
|
|
28
28
|
sig { returns(String) }
|
|
29
29
|
attr_accessor :authorizer_name
|
|
30
30
|
|
|
31
|
+
# 1–10 reasons your business calls customers. Validate phrasing against
|
|
32
|
+
# `POST /call_reasons/validate`.
|
|
33
|
+
sig { returns(T::Array[String]) }
|
|
34
|
+
attr_accessor :call_reasons
|
|
35
|
+
|
|
31
36
|
# Must be `true`.
|
|
32
37
|
sig do
|
|
33
38
|
returns(
|
|
@@ -57,14 +62,6 @@ module Telnyx
|
|
|
57
62
|
sig { returns(String) }
|
|
58
63
|
attr_accessor :display_name
|
|
59
64
|
|
|
60
|
-
# 1–10 reasons your business calls customers. Validate phrasing against
|
|
61
|
-
# `POST /call_reasons/validate`.
|
|
62
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
63
|
-
attr_reader :call_reasons
|
|
64
|
-
|
|
65
|
-
sig { params(call_reasons: T::Array[String]).void }
|
|
66
|
-
attr_writer :call_reasons
|
|
67
|
-
|
|
68
65
|
# Supporting documents. Each `document_id` may appear at most once on a DIR.
|
|
69
66
|
sig { returns(T.nilable(T::Array[Telnyx::Document])) }
|
|
70
67
|
attr_reader :documents
|
|
@@ -92,6 +89,7 @@ module Telnyx
|
|
|
92
89
|
enterprise_id: String,
|
|
93
90
|
authorizer_email: String,
|
|
94
91
|
authorizer_name: String,
|
|
92
|
+
call_reasons: T::Array[String],
|
|
95
93
|
certify_brand_is_accurate:
|
|
96
94
|
Telnyx::Enterprises::DirCreateParams::CertifyBrandIsAccurate::OrBoolean,
|
|
97
95
|
certify_ip_ownership:
|
|
@@ -99,7 +97,6 @@ module Telnyx
|
|
|
99
97
|
certify_no_shaft_content:
|
|
100
98
|
Telnyx::Enterprises::DirCreateParams::CertifyNoShaftContent::OrBoolean,
|
|
101
99
|
display_name: String,
|
|
102
|
-
call_reasons: T::Array[String],
|
|
103
100
|
documents: T::Array[Telnyx::Document::OrHash],
|
|
104
101
|
logo_url: String,
|
|
105
102
|
reselling: T::Boolean,
|
|
@@ -114,6 +111,9 @@ module Telnyx
|
|
|
114
111
|
# Name of the person at your enterprise who is authorizing this DIR registration.
|
|
115
112
|
# Must be a real individual (used for audit and trademark-claim contests).
|
|
116
113
|
authorizer_name:,
|
|
114
|
+
# 1–10 reasons your business calls customers. Validate phrasing against
|
|
115
|
+
# `POST /call_reasons/validate`.
|
|
116
|
+
call_reasons:,
|
|
117
117
|
# Must be `true`.
|
|
118
118
|
certify_brand_is_accurate:,
|
|
119
119
|
# Must be `true`. Confirms ownership of any logos/trademarks shown.
|
|
@@ -123,9 +123,6 @@ module Telnyx
|
|
|
123
123
|
certify_no_shaft_content:,
|
|
124
124
|
# Name shown to call recipients. No emoji; not whitespace-only.
|
|
125
125
|
display_name:,
|
|
126
|
-
# 1–10 reasons your business calls customers. Validate phrasing against
|
|
127
|
-
# `POST /call_reasons/validate`.
|
|
128
|
-
call_reasons: nil,
|
|
129
126
|
# Supporting documents. Each `document_id` may appear at most once on a DIR.
|
|
130
127
|
documents: nil,
|
|
131
128
|
# Publicly accessible HTTPS URL (max 128 chars) to a 256x256 BMP logo (max 1 MB).
|
|
@@ -143,6 +140,7 @@ module Telnyx
|
|
|
143
140
|
enterprise_id: String,
|
|
144
141
|
authorizer_email: String,
|
|
145
142
|
authorizer_name: String,
|
|
143
|
+
call_reasons: T::Array[String],
|
|
146
144
|
certify_brand_is_accurate:
|
|
147
145
|
Telnyx::Enterprises::DirCreateParams::CertifyBrandIsAccurate::OrBoolean,
|
|
148
146
|
certify_ip_ownership:
|
|
@@ -150,7 +148,6 @@ module Telnyx
|
|
|
150
148
|
certify_no_shaft_content:
|
|
151
149
|
Telnyx::Enterprises::DirCreateParams::CertifyNoShaftContent::OrBoolean,
|
|
152
150
|
display_name: String,
|
|
153
|
-
call_reasons: T::Array[String],
|
|
154
151
|
documents: T::Array[Telnyx::Document],
|
|
155
152
|
logo_url: String,
|
|
156
153
|
reselling: T::Boolean,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
class KvCreateParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(Telnyx::Storage::KvCreateParams, Telnyx::Internal::AnyHash)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Namespace name. May contain lowercase letters, numbers, and hyphens only.
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :name
|
|
18
|
+
|
|
19
|
+
sig do
|
|
20
|
+
params(
|
|
21
|
+
name: String,
|
|
22
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
23
|
+
).returns(T.attached_class)
|
|
24
|
+
end
|
|
25
|
+
def self.new(
|
|
26
|
+
# Namespace name. May contain lowercase letters, numbers, and hyphens only.
|
|
27
|
+
name:,
|
|
28
|
+
request_options: {}
|
|
29
|
+
)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
override.returns(
|
|
34
|
+
{ name: String, request_options: Telnyx::RequestOptions }
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
def to_hash
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
class KvDeleteParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(Telnyx::Storage::KvDeleteParams, Telnyx::Internal::AnyHash)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :id
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
id: String,
|
|
21
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
22
|
+
).returns(T.attached_class)
|
|
23
|
+
end
|
|
24
|
+
def self.new(id:, request_options: {})
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
sig do
|
|
28
|
+
override.returns(
|
|
29
|
+
{ id: String, request_options: Telnyx::RequestOptions }
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
def to_hash
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
class KvListParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(Telnyx::Storage::KvListParams, Telnyx::Internal::AnyHash)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# The page number to load.
|
|
16
|
+
sig { returns(T.nilable(Integer)) }
|
|
17
|
+
attr_reader :page_number
|
|
18
|
+
|
|
19
|
+
sig { params(page_number: Integer).void }
|
|
20
|
+
attr_writer :page_number
|
|
21
|
+
|
|
22
|
+
# The size of the page. Values above 250 are treated as 250.
|
|
23
|
+
sig { returns(T.nilable(Integer)) }
|
|
24
|
+
attr_reader :page_size
|
|
25
|
+
|
|
26
|
+
sig { params(page_size: Integer).void }
|
|
27
|
+
attr_writer :page_size
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
params(
|
|
31
|
+
page_number: Integer,
|
|
32
|
+
page_size: Integer,
|
|
33
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
34
|
+
).returns(T.attached_class)
|
|
35
|
+
end
|
|
36
|
+
def self.new(
|
|
37
|
+
# The page number to load.
|
|
38
|
+
page_number: nil,
|
|
39
|
+
# The size of the page. Values above 250 are treated as 250.
|
|
40
|
+
page_size: nil,
|
|
41
|
+
request_options: {}
|
|
42
|
+
)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
sig do
|
|
46
|
+
override.returns(
|
|
47
|
+
{
|
|
48
|
+
page_number: Integer,
|
|
49
|
+
page_size: Integer,
|
|
50
|
+
request_options: Telnyx::RequestOptions
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
def to_hash
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
class KvNamespace < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(Telnyx::Storage::KvNamespace, Telnyx::Internal::AnyHash)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
sig { returns(T.nilable(String)) }
|
|
13
|
+
attr_reader :id
|
|
14
|
+
|
|
15
|
+
sig { params(id: String).void }
|
|
16
|
+
attr_writer :id
|
|
17
|
+
|
|
18
|
+
sig { returns(T.nilable(Time)) }
|
|
19
|
+
attr_reader :created_at
|
|
20
|
+
|
|
21
|
+
sig { params(created_at: Time).void }
|
|
22
|
+
attr_writer :created_at
|
|
23
|
+
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :name
|
|
26
|
+
|
|
27
|
+
sig { params(name: String).void }
|
|
28
|
+
attr_writer :name
|
|
29
|
+
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
attr_reader :record_type
|
|
32
|
+
|
|
33
|
+
sig { params(record_type: String).void }
|
|
34
|
+
attr_writer :record_type
|
|
35
|
+
|
|
36
|
+
# Provisioning status. A namespace is usable once `status` is `provision_ok`. Once
|
|
37
|
+
# deletion completes, the namespace no longer appears in the API.
|
|
38
|
+
sig do
|
|
39
|
+
returns(T.nilable(Telnyx::Storage::KvNamespace::Status::TaggedSymbol))
|
|
40
|
+
end
|
|
41
|
+
attr_reader :status
|
|
42
|
+
|
|
43
|
+
sig do
|
|
44
|
+
params(status: Telnyx::Storage::KvNamespace::Status::OrSymbol).void
|
|
45
|
+
end
|
|
46
|
+
attr_writer :status
|
|
47
|
+
|
|
48
|
+
sig { returns(T.nilable(Time)) }
|
|
49
|
+
attr_reader :updated_at
|
|
50
|
+
|
|
51
|
+
sig { params(updated_at: Time).void }
|
|
52
|
+
attr_writer :updated_at
|
|
53
|
+
|
|
54
|
+
sig do
|
|
55
|
+
params(
|
|
56
|
+
id: String,
|
|
57
|
+
created_at: Time,
|
|
58
|
+
name: String,
|
|
59
|
+
record_type: String,
|
|
60
|
+
status: Telnyx::Storage::KvNamespace::Status::OrSymbol,
|
|
61
|
+
updated_at: Time
|
|
62
|
+
).returns(T.attached_class)
|
|
63
|
+
end
|
|
64
|
+
def self.new(
|
|
65
|
+
id: nil,
|
|
66
|
+
created_at: nil,
|
|
67
|
+
name: nil,
|
|
68
|
+
record_type: nil,
|
|
69
|
+
# Provisioning status. A namespace is usable once `status` is `provision_ok`. Once
|
|
70
|
+
# deletion completes, the namespace no longer appears in the API.
|
|
71
|
+
status: nil,
|
|
72
|
+
updated_at: nil
|
|
73
|
+
)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
sig do
|
|
77
|
+
override.returns(
|
|
78
|
+
{
|
|
79
|
+
id: String,
|
|
80
|
+
created_at: Time,
|
|
81
|
+
name: String,
|
|
82
|
+
record_type: String,
|
|
83
|
+
status: Telnyx::Storage::KvNamespace::Status::TaggedSymbol,
|
|
84
|
+
updated_at: Time
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
def to_hash
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Provisioning status. A namespace is usable once `status` is `provision_ok`. Once
|
|
92
|
+
# deletion completes, the namespace no longer appears in the API.
|
|
93
|
+
module Status
|
|
94
|
+
extend Telnyx::Internal::Type::Enum
|
|
95
|
+
|
|
96
|
+
TaggedSymbol =
|
|
97
|
+
T.type_alias { T.all(Symbol, Telnyx::Storage::KvNamespace::Status) }
|
|
98
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
99
|
+
|
|
100
|
+
PENDING =
|
|
101
|
+
T.let(:pending, Telnyx::Storage::KvNamespace::Status::TaggedSymbol)
|
|
102
|
+
PROVISION_OK =
|
|
103
|
+
T.let(
|
|
104
|
+
:provision_ok,
|
|
105
|
+
Telnyx::Storage::KvNamespace::Status::TaggedSymbol
|
|
106
|
+
)
|
|
107
|
+
PROVISION_FAILED =
|
|
108
|
+
T.let(
|
|
109
|
+
:provision_failed,
|
|
110
|
+
Telnyx::Storage::KvNamespace::Status::TaggedSymbol
|
|
111
|
+
)
|
|
112
|
+
DELETING =
|
|
113
|
+
T.let(:deleting, Telnyx::Storage::KvNamespace::Status::TaggedSymbol)
|
|
114
|
+
DELETE_FAILED =
|
|
115
|
+
T.let(
|
|
116
|
+
:delete_failed,
|
|
117
|
+
Telnyx::Storage::KvNamespace::Status::TaggedSymbol
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
sig do
|
|
121
|
+
override.returns(
|
|
122
|
+
T::Array[Telnyx::Storage::KvNamespace::Status::TaggedSymbol]
|
|
123
|
+
)
|
|
124
|
+
end
|
|
125
|
+
def self.values
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
end
|