telnyx 5.150.0 → 5.151.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 +7 -0
- data/README.md +10 -1
- data/lib/telnyx/models/ai_retrieve_conversation_histories_params.rb +22 -48
- data/lib/telnyx/models/ai_retrieve_conversation_histories_response.rb +10 -50
- data/lib/telnyx/models/calls/deepgram_nova2_config.rb +23 -1
- data/lib/telnyx/models/calls/deepgram_nova3_config.rb +22 -1
- data/lib/telnyx/models/calls/transcription_start_request.rb +5 -3
- data/lib/telnyx/models/public_internet_gateway.rb +24 -1
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +9 -69
- data/lib/telnyx/models/virtual_cross_connect_create.rb +176 -2
- data/lib/telnyx/models/wireguard_interface.rb +24 -1
- data/lib/telnyx/resources/ai.rb +20 -21
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +1 -0
- data/rbi/telnyx/models/ai_retrieve_conversation_histories_params.rbi +30 -97
- data/rbi/telnyx/models/ai_retrieve_conversation_histories_response.rbi +10 -85
- data/rbi/telnyx/models/calls/deepgram_nova2_config.rbi +34 -0
- data/rbi/telnyx/models/calls/deepgram_nova3_config.rbi +32 -0
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +5 -0
- data/rbi/telnyx/models/public_internet_gateway.rbi +45 -3
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +12 -189
- data/rbi/telnyx/models/virtual_cross_connect_create.rbi +265 -7
- data/rbi/telnyx/models/wireguard_interface.rbi +48 -3
- data/rbi/telnyx/models.rbi +0 -7
- data/rbi/telnyx/resources/ai.rbi +21 -28
- data/rbi/telnyx/resources/calls/actions.rbi +1 -0
- data/sig/telnyx/models/ai_retrieve_conversation_histories_params.rbs +15 -34
- data/sig/telnyx/models/ai_retrieve_conversation_histories_response.rbs +0 -24
- data/sig/telnyx/models/calls/deepgram_nova2_config.rbs +14 -0
- data/sig/telnyx/models/calls/deepgram_nova3_config.rbs +14 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +1 -0
- data/sig/telnyx/models/public_internet_gateway.rbs +32 -3
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -63
- data/sig/telnyx/models/virtual_cross_connect_create.rbs +138 -7
- data/sig/telnyx/models/wireguard_interface.rbs +34 -3
- data/sig/telnyx/models.rbs +0 -1
- data/sig/telnyx/resources/ai.rbs +2 -3
- metadata +2 -38
- data/lib/telnyx/models/dir/phone_number_create_params.rb +0 -47
- data/lib/telnyx/models/dir/phone_number_create_response.rb +0 -32
- data/lib/telnyx/models/dir/phone_number_delete_all_params.rb +0 -28
- data/lib/telnyx/models/dir/phone_number_delete_all_response.rb +0 -103
- data/lib/telnyx/models/dir_loa_params.rb +0 -79
- data/lib/telnyx/models/dir_retrieve_document_types_params.rb +0 -14
- data/lib/telnyx/models/dir_retrieve_document_types_response.rb +0 -51
- data/lib/telnyx/models/dir_retrieve_infringement_claims_params.rb +0 -40
- data/lib/telnyx/models/dir_retrieve_infringement_claims_response.rb +0 -30
- data/lib/telnyx/models/dir_update_infringement_update_params.rb +0 -134
- data/lib/telnyx/models/enterprises/reputation/loa_create_params.rb +0 -146
- data/lib/telnyx/models/enterprises/reputation/loa_patch_all_params.rb +0 -38
- data/rbi/telnyx/models/dir/phone_number_create_params.rbi +0 -72
- data/rbi/telnyx/models/dir/phone_number_create_response.rbi +0 -48
- data/rbi/telnyx/models/dir/phone_number_delete_all_params.rbi +0 -48
- data/rbi/telnyx/models/dir/phone_number_delete_all_response.rbi +0 -206
- data/rbi/telnyx/models/dir_loa_params.rbi +0 -120
- data/rbi/telnyx/models/dir_retrieve_document_types_params.rbi +0 -30
- data/rbi/telnyx/models/dir_retrieve_document_types_response.rbi +0 -103
- data/rbi/telnyx/models/dir_retrieve_infringement_claims_params.rbi +0 -66
- data/rbi/telnyx/models/dir_retrieve_infringement_claims_response.rbi +0 -55
- data/rbi/telnyx/models/dir_update_infringement_update_params.rbi +0 -256
- data/rbi/telnyx/models/enterprises/reputation/loa_create_params.rbi +0 -238
- data/rbi/telnyx/models/enterprises/reputation/loa_patch_all_params.rbi +0 -60
- data/sig/telnyx/models/dir/phone_number_create_params.rbs +0 -38
- data/sig/telnyx/models/dir/phone_number_create_response.rbs +0 -16
- data/sig/telnyx/models/dir/phone_number_delete_all_params.rbs +0 -30
- data/sig/telnyx/models/dir/phone_number_delete_all_response.rbs +0 -86
- data/sig/telnyx/models/dir_loa_params.rbs +0 -61
- data/sig/telnyx/models/dir_retrieve_document_types_params.rbs +0 -15
- data/sig/telnyx/models/dir_retrieve_document_types_response.rbs +0 -41
- data/sig/telnyx/models/dir_retrieve_infringement_claims_params.rbs +0 -36
- data/sig/telnyx/models/dir_retrieve_infringement_claims_response.rbs +0 -25
- data/sig/telnyx/models/dir_update_infringement_update_params.rbs +0 -111
- data/sig/telnyx/models/enterprises/reputation/loa_create_params.rbs +0 -135
- data/sig/telnyx/models/enterprises/reputation/loa_patch_all_params.rbs +0 -32
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
# @see Telnyx::Resources::Dir#retrieve_document_types
|
|
6
|
-
class DirRetrieveDocumentTypesResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute data
|
|
8
|
-
#
|
|
9
|
-
# @return [Array<Telnyx::Models::DirRetrieveDocumentTypesResponse::Data>]
|
|
10
|
-
required :data,
|
|
11
|
-
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::DirRetrieveDocumentTypesResponse::Data] }
|
|
12
|
-
|
|
13
|
-
# @!attribute meta
|
|
14
|
-
# JSON:API pagination metadata returned with every paginated list response. Page
|
|
15
|
-
# numbering is 1-based. `page_size` reports the number of items actually returned
|
|
16
|
-
# in `data` for this page; the requested size is taken from the `page[size]` query
|
|
17
|
-
# parameter.
|
|
18
|
-
#
|
|
19
|
-
# @return [Telnyx::Models::BrandedCallingPaginationMeta]
|
|
20
|
-
required :meta, -> { Telnyx::BrandedCallingPaginationMeta }
|
|
21
|
-
|
|
22
|
-
# @!method initialize(data:, meta:)
|
|
23
|
-
# Some parameter documentations has been truncated, see
|
|
24
|
-
# {Telnyx::Models::DirRetrieveDocumentTypesResponse} for more details.
|
|
25
|
-
#
|
|
26
|
-
# @param data [Array<Telnyx::Models::DirRetrieveDocumentTypesResponse::Data>]
|
|
27
|
-
#
|
|
28
|
-
# @param meta [Telnyx::Models::BrandedCallingPaginationMeta] JSON:API pagination metadata returned with every paginated list response. Page n
|
|
29
|
-
|
|
30
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
31
|
-
# @!attribute description
|
|
32
|
-
#
|
|
33
|
-
# @return [String, nil]
|
|
34
|
-
optional :description, String
|
|
35
|
-
|
|
36
|
-
# @!attribute short_name
|
|
37
|
-
# Stable identifier passed to `Document.document_type`.
|
|
38
|
-
#
|
|
39
|
-
# @return [String, nil]
|
|
40
|
-
optional :short_name, String
|
|
41
|
-
|
|
42
|
-
# @!method initialize(description: nil, short_name: nil)
|
|
43
|
-
# Single supported document type.
|
|
44
|
-
#
|
|
45
|
-
# @param description [String]
|
|
46
|
-
#
|
|
47
|
-
# @param short_name [String] Stable identifier passed to `Document.document_type`.
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
# @see Telnyx::Resources::Dir#retrieve_infringement_claims
|
|
6
|
-
class DirRetrieveInfringementClaimsParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
# @!attribute dir_id
|
|
11
|
-
#
|
|
12
|
-
# @return [String]
|
|
13
|
-
required :dir_id, String
|
|
14
|
-
|
|
15
|
-
# @!attribute page_number
|
|
16
|
-
# 1-based page number. Out-of-range values return an empty page with correct meta.
|
|
17
|
-
#
|
|
18
|
-
# @return [Integer, nil]
|
|
19
|
-
optional :page_number, Integer
|
|
20
|
-
|
|
21
|
-
# @!attribute page_size
|
|
22
|
-
# Items per page. Maximum 250; values above are clamped to 250.
|
|
23
|
-
#
|
|
24
|
-
# @return [Integer, nil]
|
|
25
|
-
optional :page_size, Integer
|
|
26
|
-
|
|
27
|
-
# @!method initialize(dir_id:, page_number: nil, page_size: nil, request_options: {})
|
|
28
|
-
# Some parameter documentations has been truncated, see
|
|
29
|
-
# {Telnyx::Models::DirRetrieveInfringementClaimsParams} for more details.
|
|
30
|
-
#
|
|
31
|
-
# @param dir_id [String]
|
|
32
|
-
#
|
|
33
|
-
# @param page_number [Integer] 1-based page number. Out-of-range values return an empty page with correct meta.
|
|
34
|
-
#
|
|
35
|
-
# @param page_size [Integer] Items per page. Maximum 250; values above are clamped to 250.
|
|
36
|
-
#
|
|
37
|
-
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
# @see Telnyx::Resources::Dir#retrieve_infringement_claims
|
|
6
|
-
class DirRetrieveInfringementClaimsResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute data
|
|
8
|
-
#
|
|
9
|
-
# @return [Array<Telnyx::Models::InfringementClaim>]
|
|
10
|
-
required :data, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::InfringementClaim] }
|
|
11
|
-
|
|
12
|
-
# @!attribute meta
|
|
13
|
-
# JSON:API pagination metadata returned with every paginated list response. Page
|
|
14
|
-
# numbering is 1-based. `page_size` reports the number of items actually returned
|
|
15
|
-
# in `data` for this page; the requested size is taken from the `page[size]` query
|
|
16
|
-
# parameter.
|
|
17
|
-
#
|
|
18
|
-
# @return [Telnyx::Models::BrandedCallingPaginationMeta]
|
|
19
|
-
required :meta, -> { Telnyx::BrandedCallingPaginationMeta }
|
|
20
|
-
|
|
21
|
-
# @!method initialize(data:, meta:)
|
|
22
|
-
# Some parameter documentations has been truncated, see
|
|
23
|
-
# {Telnyx::Models::DirRetrieveInfringementClaimsResponse} for more details.
|
|
24
|
-
#
|
|
25
|
-
# @param data [Array<Telnyx::Models::InfringementClaim>]
|
|
26
|
-
#
|
|
27
|
-
# @param meta [Telnyx::Models::BrandedCallingPaginationMeta] JSON:API pagination metadata returned with every paginated list response. Page n
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
# @see Telnyx::Resources::Dir#update_infringement_update
|
|
6
|
-
class DirUpdateInfringementUpdateParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
# @!attribute dir_id
|
|
11
|
-
#
|
|
12
|
-
# @return [String]
|
|
13
|
-
required :dir_id, String
|
|
14
|
-
|
|
15
|
-
# @!attribute certify_brand_is_accurate
|
|
16
|
-
# Must be `true`.
|
|
17
|
-
#
|
|
18
|
-
# @return [Boolean, Telnyx::Models::DirUpdateInfringementUpdateParams::CertifyBrandIsAccurate]
|
|
19
|
-
required :certify_brand_is_accurate,
|
|
20
|
-
enum: -> { Telnyx::DirUpdateInfringementUpdateParams::CertifyBrandIsAccurate }
|
|
21
|
-
|
|
22
|
-
# @!attribute certify_ip_ownership
|
|
23
|
-
# Must be `true`.
|
|
24
|
-
#
|
|
25
|
-
# @return [Boolean, Telnyx::Models::DirUpdateInfringementUpdateParams::CertifyIPOwnership]
|
|
26
|
-
required :certify_ip_ownership, enum: -> { Telnyx::DirUpdateInfringementUpdateParams::CertifyIPOwnership }
|
|
27
|
-
|
|
28
|
-
# @!attribute certify_no_infringement
|
|
29
|
-
# Must be `true`.
|
|
30
|
-
#
|
|
31
|
-
# @return [Boolean, Telnyx::Models::DirUpdateInfringementUpdateParams::CertifyNoInfringement]
|
|
32
|
-
required :certify_no_infringement,
|
|
33
|
-
enum: -> { Telnyx::DirUpdateInfringementUpdateParams::CertifyNoInfringement }
|
|
34
|
-
|
|
35
|
-
# @!attribute certify_no_shaft_content
|
|
36
|
-
# Must be `true`.
|
|
37
|
-
#
|
|
38
|
-
# @return [Boolean, Telnyx::Models::DirUpdateInfringementUpdateParams::CertifyNoShaftContent]
|
|
39
|
-
required :certify_no_shaft_content,
|
|
40
|
-
enum: -> { Telnyx::DirUpdateInfringementUpdateParams::CertifyNoShaftContent }
|
|
41
|
-
|
|
42
|
-
# @!attribute infringement_resolution_notes
|
|
43
|
-
# Explanation of how the infringement concern was addressed.
|
|
44
|
-
#
|
|
45
|
-
# @return [String]
|
|
46
|
-
required :infringement_resolution_notes, String
|
|
47
|
-
|
|
48
|
-
# @!attribute call_reasons
|
|
49
|
-
#
|
|
50
|
-
# @return [Array<String>, nil]
|
|
51
|
-
optional :call_reasons, Telnyx::Internal::Type::ArrayOf[String], nil?: true
|
|
52
|
-
|
|
53
|
-
# @!attribute display_name
|
|
54
|
-
#
|
|
55
|
-
# @return [String, nil]
|
|
56
|
-
optional :display_name, String, nil?: true
|
|
57
|
-
|
|
58
|
-
# @!attribute documents
|
|
59
|
-
# Append-only supporting documents.
|
|
60
|
-
#
|
|
61
|
-
# @return [Array<Telnyx::Models::Document>, nil]
|
|
62
|
-
optional :documents, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Document] }, nil?: true
|
|
63
|
-
|
|
64
|
-
# @!attribute logo_url
|
|
65
|
-
# Publicly accessible HTTPS URL (max 128 chars) to a 256x256 BMP logo (max 1 MB).
|
|
66
|
-
#
|
|
67
|
-
# @return [String, nil]
|
|
68
|
-
optional :logo_url, String, nil?: true
|
|
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
|
-
# @param dir_id [String]
|
|
72
|
-
#
|
|
73
|
-
# @param certify_brand_is_accurate [Boolean, Telnyx::Models::DirUpdateInfringementUpdateParams::CertifyBrandIsAccurate] Must be `true`.
|
|
74
|
-
#
|
|
75
|
-
# @param certify_ip_ownership [Boolean, Telnyx::Models::DirUpdateInfringementUpdateParams::CertifyIPOwnership] Must be `true`.
|
|
76
|
-
#
|
|
77
|
-
# @param certify_no_infringement [Boolean, Telnyx::Models::DirUpdateInfringementUpdateParams::CertifyNoInfringement] Must be `true`.
|
|
78
|
-
#
|
|
79
|
-
# @param certify_no_shaft_content [Boolean, Telnyx::Models::DirUpdateInfringementUpdateParams::CertifyNoShaftContent] Must be `true`.
|
|
80
|
-
#
|
|
81
|
-
# @param infringement_resolution_notes [String] Explanation of how the infringement concern was addressed.
|
|
82
|
-
#
|
|
83
|
-
# @param call_reasons [Array<String>, nil]
|
|
84
|
-
#
|
|
85
|
-
# @param display_name [String, nil]
|
|
86
|
-
#
|
|
87
|
-
# @param documents [Array<Telnyx::Models::Document>, nil] Append-only supporting documents.
|
|
88
|
-
#
|
|
89
|
-
# @param logo_url [String, nil] Publicly accessible HTTPS URL (max 128 chars) to a 256x256 BMP logo (max 1 MB).
|
|
90
|
-
#
|
|
91
|
-
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
92
|
-
|
|
93
|
-
# Must be `true`.
|
|
94
|
-
module CertifyBrandIsAccurate
|
|
95
|
-
extend Telnyx::Internal::Type::Enum
|
|
96
|
-
|
|
97
|
-
TRUE = true
|
|
98
|
-
|
|
99
|
-
# @!method self.values
|
|
100
|
-
# @return [Array<Boolean>]
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
# Must be `true`.
|
|
104
|
-
module CertifyIPOwnership
|
|
105
|
-
extend Telnyx::Internal::Type::Enum
|
|
106
|
-
|
|
107
|
-
TRUE = true
|
|
108
|
-
|
|
109
|
-
# @!method self.values
|
|
110
|
-
# @return [Array<Boolean>]
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
# Must be `true`.
|
|
114
|
-
module CertifyNoInfringement
|
|
115
|
-
extend Telnyx::Internal::Type::Enum
|
|
116
|
-
|
|
117
|
-
TRUE = true
|
|
118
|
-
|
|
119
|
-
# @!method self.values
|
|
120
|
-
# @return [Array<Boolean>]
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
# Must be `true`.
|
|
124
|
-
module CertifyNoShaftContent
|
|
125
|
-
extend Telnyx::Internal::Type::Enum
|
|
126
|
-
|
|
127
|
-
TRUE = true
|
|
128
|
-
|
|
129
|
-
# @!method self.values
|
|
130
|
-
# @return [Array<Boolean>]
|
|
131
|
-
end
|
|
132
|
-
end
|
|
133
|
-
end
|
|
134
|
-
end
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module Enterprises
|
|
6
|
-
module Reputation
|
|
7
|
-
# @see Telnyx::Resources::Enterprises::Reputation::Loa#create
|
|
8
|
-
class LoaCreateParams < Telnyx::Internal::Type::BaseModel
|
|
9
|
-
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
|
-
include Telnyx::Internal::Type::RequestParameters
|
|
11
|
-
|
|
12
|
-
# @!attribute enterprise_id
|
|
13
|
-
#
|
|
14
|
-
# @return [String]
|
|
15
|
-
required :enterprise_id, String
|
|
16
|
-
|
|
17
|
-
# @!attribute agent
|
|
18
|
-
# Third-party reseller / partner managing the enterprise's phone numbers. Omit
|
|
19
|
-
# when the enterprise works directly with Telnyx.
|
|
20
|
-
#
|
|
21
|
-
# @return [Telnyx::Models::Enterprises::Reputation::LoaCreateParams::Agent, nil]
|
|
22
|
-
optional :agent, -> { Telnyx::Enterprises::Reputation::LoaCreateParams::Agent }
|
|
23
|
-
|
|
24
|
-
# @!attribute signature
|
|
25
|
-
# Optional signature embedded in the rendered PDF. When omitted the PDF is
|
|
26
|
-
# returned unsigned for the customer to sign and upload.
|
|
27
|
-
#
|
|
28
|
-
# @return [Telnyx::Models::Enterprises::Reputation::LoaCreateParams::Signature, nil]
|
|
29
|
-
optional :signature, -> { Telnyx::Enterprises::Reputation::LoaCreateParams::Signature }
|
|
30
|
-
|
|
31
|
-
# @!method initialize(enterprise_id:, agent: nil, signature: nil, request_options: {})
|
|
32
|
-
# Some parameter documentations has been truncated, see
|
|
33
|
-
# {Telnyx::Models::Enterprises::Reputation::LoaCreateParams} for more details.
|
|
34
|
-
#
|
|
35
|
-
# @param enterprise_id [String]
|
|
36
|
-
#
|
|
37
|
-
# @param agent [Telnyx::Models::Enterprises::Reputation::LoaCreateParams::Agent] Third-party reseller / partner managing the enterprise's phone numbers. Omit whe
|
|
38
|
-
#
|
|
39
|
-
# @param signature [Telnyx::Models::Enterprises::Reputation::LoaCreateParams::Signature] Optional signature embedded in the rendered PDF. When omitted the PDF is returne
|
|
40
|
-
#
|
|
41
|
-
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
42
|
-
|
|
43
|
-
class Agent < Telnyx::Internal::Type::BaseModel
|
|
44
|
-
# @!attribute administrative_area
|
|
45
|
-
#
|
|
46
|
-
# @return [String]
|
|
47
|
-
required :administrative_area, String
|
|
48
|
-
|
|
49
|
-
# @!attribute city
|
|
50
|
-
#
|
|
51
|
-
# @return [String]
|
|
52
|
-
required :city, String
|
|
53
|
-
|
|
54
|
-
# @!attribute contact_email
|
|
55
|
-
#
|
|
56
|
-
# @return [String]
|
|
57
|
-
required :contact_email, String
|
|
58
|
-
|
|
59
|
-
# @!attribute contact_name
|
|
60
|
-
#
|
|
61
|
-
# @return [String]
|
|
62
|
-
required :contact_name, String
|
|
63
|
-
|
|
64
|
-
# @!attribute contact_phone
|
|
65
|
-
#
|
|
66
|
-
# @return [String]
|
|
67
|
-
required :contact_phone, String
|
|
68
|
-
|
|
69
|
-
# @!attribute contact_title
|
|
70
|
-
#
|
|
71
|
-
# @return [String]
|
|
72
|
-
required :contact_title, String
|
|
73
|
-
|
|
74
|
-
# @!attribute country
|
|
75
|
-
#
|
|
76
|
-
# @return [String]
|
|
77
|
-
required :country, String
|
|
78
|
-
|
|
79
|
-
# @!attribute legal_name
|
|
80
|
-
#
|
|
81
|
-
# @return [String]
|
|
82
|
-
required :legal_name, String
|
|
83
|
-
|
|
84
|
-
# @!attribute postal_code
|
|
85
|
-
#
|
|
86
|
-
# @return [String]
|
|
87
|
-
required :postal_code, String
|
|
88
|
-
|
|
89
|
-
# @!attribute street_address
|
|
90
|
-
#
|
|
91
|
-
# @return [String]
|
|
92
|
-
required :street_address, String
|
|
93
|
-
|
|
94
|
-
# @!attribute dba
|
|
95
|
-
#
|
|
96
|
-
# @return [String, nil]
|
|
97
|
-
optional :dba, String, nil?: true
|
|
98
|
-
|
|
99
|
-
# @!attribute extended_address
|
|
100
|
-
#
|
|
101
|
-
# @return [String, nil]
|
|
102
|
-
optional :extended_address, String, nil?: true
|
|
103
|
-
|
|
104
|
-
# @!method initialize(administrative_area:, city:, contact_email:, contact_name:, contact_phone:, contact_title:, country:, legal_name:, postal_code:, street_address:, dba: nil, extended_address: nil)
|
|
105
|
-
# Third-party reseller / partner managing the enterprise's phone numbers. Omit
|
|
106
|
-
# when the enterprise works directly with Telnyx.
|
|
107
|
-
#
|
|
108
|
-
# @param administrative_area [String]
|
|
109
|
-
# @param city [String]
|
|
110
|
-
# @param contact_email [String]
|
|
111
|
-
# @param contact_name [String]
|
|
112
|
-
# @param contact_phone [String]
|
|
113
|
-
# @param contact_title [String]
|
|
114
|
-
# @param country [String]
|
|
115
|
-
# @param legal_name [String]
|
|
116
|
-
# @param postal_code [String]
|
|
117
|
-
# @param street_address [String]
|
|
118
|
-
# @param dba [String, nil]
|
|
119
|
-
# @param extended_address [String, nil]
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
class Signature < Telnyx::Internal::Type::BaseModel
|
|
123
|
-
# @!attribute image_base64
|
|
124
|
-
# Base64-encoded signature image.
|
|
125
|
-
#
|
|
126
|
-
# @return [String]
|
|
127
|
-
required :image_base64, String
|
|
128
|
-
|
|
129
|
-
# @!attribute signer_name
|
|
130
|
-
#
|
|
131
|
-
# @return [String, nil]
|
|
132
|
-
optional :signer_name, String, nil?: true
|
|
133
|
-
|
|
134
|
-
# @!method initialize(image_base64:, signer_name: nil)
|
|
135
|
-
# Optional signature embedded in the rendered PDF. When omitted the PDF is
|
|
136
|
-
# returned unsigned for the customer to sign and upload.
|
|
137
|
-
#
|
|
138
|
-
# @param image_base64 [String] Base64-encoded signature image.
|
|
139
|
-
#
|
|
140
|
-
# @param signer_name [String, nil]
|
|
141
|
-
end
|
|
142
|
-
end
|
|
143
|
-
end
|
|
144
|
-
end
|
|
145
|
-
end
|
|
146
|
-
end
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module Enterprises
|
|
6
|
-
module Reputation
|
|
7
|
-
# @see Telnyx::Resources::Enterprises::Reputation::Loa#patch_all
|
|
8
|
-
class LoaPatchAllParams < Telnyx::Internal::Type::BaseModel
|
|
9
|
-
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
|
-
include Telnyx::Internal::Type::RequestParameters
|
|
11
|
-
|
|
12
|
-
# @!attribute enterprise_id
|
|
13
|
-
#
|
|
14
|
-
# @return [String]
|
|
15
|
-
required :enterprise_id, String
|
|
16
|
-
|
|
17
|
-
# @!attribute loa_document_id
|
|
18
|
-
# Id of the new signed LOA document (from the Telnyx Documents API). Changing it
|
|
19
|
-
# resets LOA approval; the new document must be approved before more numbers can
|
|
20
|
-
# be added.
|
|
21
|
-
#
|
|
22
|
-
# @return [String]
|
|
23
|
-
required :loa_document_id, String
|
|
24
|
-
|
|
25
|
-
# @!method initialize(enterprise_id:, loa_document_id:, request_options: {})
|
|
26
|
-
# Some parameter documentations has been truncated, see
|
|
27
|
-
# {Telnyx::Models::Enterprises::Reputation::LoaPatchAllParams} for more details.
|
|
28
|
-
#
|
|
29
|
-
# @param enterprise_id [String]
|
|
30
|
-
#
|
|
31
|
-
# @param loa_document_id [String] Id of the new signed LOA document (from the Telnyx Documents API). Changing it r
|
|
32
|
-
#
|
|
33
|
-
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module Dir
|
|
6
|
-
class PhoneNumberCreateParams < 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::PhoneNumberCreateParams,
|
|
14
|
-
Telnyx::Internal::AnyHash
|
|
15
|
-
)
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
sig { returns(String) }
|
|
19
|
-
attr_accessor :dir_id
|
|
20
|
-
|
|
21
|
-
# Supporting documents covering this batch. At least one entry with
|
|
22
|
-
# `document_type: letter_of_authorization` is required - the LOA authorises Telnyx
|
|
23
|
-
# to register these numbers under the DIR. Each `document_id` must come from the
|
|
24
|
-
# Telnyx Documents API. Additional document types (e.g. business registration) may
|
|
25
|
-
# be included alongside the LOA.
|
|
26
|
-
sig { returns(T::Array[Telnyx::Document]) }
|
|
27
|
-
attr_accessor :documents
|
|
28
|
-
|
|
29
|
-
# 1–15 phone numbers in E.164 format. 10-digit US numbers are auto-prefixed with
|
|
30
|
-
# `1`.
|
|
31
|
-
sig { returns(T::Array[String]) }
|
|
32
|
-
attr_accessor :phone_numbers
|
|
33
|
-
|
|
34
|
-
sig do
|
|
35
|
-
params(
|
|
36
|
-
dir_id: String,
|
|
37
|
-
documents: T::Array[Telnyx::Document::OrHash],
|
|
38
|
-
phone_numbers: T::Array[String],
|
|
39
|
-
request_options: Telnyx::RequestOptions::OrHash
|
|
40
|
-
).returns(T.attached_class)
|
|
41
|
-
end
|
|
42
|
-
def self.new(
|
|
43
|
-
dir_id:,
|
|
44
|
-
# Supporting documents covering this batch. At least one entry with
|
|
45
|
-
# `document_type: letter_of_authorization` is required - the LOA authorises Telnyx
|
|
46
|
-
# to register these numbers under the DIR. Each `document_id` must come from the
|
|
47
|
-
# Telnyx Documents API. Additional document types (e.g. business registration) may
|
|
48
|
-
# be included alongside the LOA.
|
|
49
|
-
documents:,
|
|
50
|
-
# 1–15 phone numbers in E.164 format. 10-digit US numbers are auto-prefixed with
|
|
51
|
-
# `1`.
|
|
52
|
-
phone_numbers:,
|
|
53
|
-
request_options: {}
|
|
54
|
-
)
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
sig do
|
|
58
|
-
override.returns(
|
|
59
|
-
{
|
|
60
|
-
dir_id: String,
|
|
61
|
-
documents: T::Array[Telnyx::Document],
|
|
62
|
-
phone_numbers: T::Array[String],
|
|
63
|
-
request_options: Telnyx::RequestOptions
|
|
64
|
-
}
|
|
65
|
-
)
|
|
66
|
-
end
|
|
67
|
-
def to_hash
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
end
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module Dir
|
|
6
|
-
class PhoneNumberCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(
|
|
10
|
-
Telnyx::Models::Dir::PhoneNumberCreateResponse,
|
|
11
|
-
Telnyx::Internal::AnyHash
|
|
12
|
-
)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
# Phone numbers accepted into the new batch. List order mirrors the request order.
|
|
16
|
-
# Each element shares the same `batch_id`.
|
|
17
|
-
sig { returns(T::Array[Telnyx::Dir::DirPhoneNumber]) }
|
|
18
|
-
attr_accessor :data
|
|
19
|
-
|
|
20
|
-
# Bulk-add success response (HTTP 201). All numbers in the request were accepted
|
|
21
|
-
# into a single new batch. Every entry in `data` shares the same `batch_id` - read
|
|
22
|
-
# it from any element to obtain the batch id for subsequent
|
|
23
|
-
# `GET .../phone_number_batches/{batch_id}` calls. If any number in the request
|
|
24
|
-
# fails (schema-invalid, not in inventory, already attached to another DIR, etc.)
|
|
25
|
-
# the entire request is rejected with HTTP 400 and the canonical Telnyx error
|
|
26
|
-
# envelope; the success body described here is therefore an all-or-nothing
|
|
27
|
-
# payload.
|
|
28
|
-
sig do
|
|
29
|
-
params(data: T::Array[Telnyx::Dir::DirPhoneNumber::OrHash]).returns(
|
|
30
|
-
T.attached_class
|
|
31
|
-
)
|
|
32
|
-
end
|
|
33
|
-
def self.new(
|
|
34
|
-
# Phone numbers accepted into the new batch. List order mirrors the request order.
|
|
35
|
-
# Each element shares the same `batch_id`.
|
|
36
|
-
data:
|
|
37
|
-
)
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
sig do
|
|
41
|
-
override.returns({ data: T::Array[Telnyx::Dir::DirPhoneNumber] })
|
|
42
|
-
end
|
|
43
|
-
def to_hash
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module Dir
|
|
6
|
-
class PhoneNumberDeleteAllParams < 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::PhoneNumberDeleteAllParams,
|
|
14
|
-
Telnyx::Internal::AnyHash
|
|
15
|
-
)
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
sig { returns(String) }
|
|
19
|
-
attr_accessor :dir_id
|
|
20
|
-
|
|
21
|
-
sig { returns(T::Array[String]) }
|
|
22
|
-
attr_accessor :phone_numbers
|
|
23
|
-
|
|
24
|
-
sig do
|
|
25
|
-
params(
|
|
26
|
-
dir_id: String,
|
|
27
|
-
phone_numbers: T::Array[String],
|
|
28
|
-
request_options: Telnyx::RequestOptions::OrHash
|
|
29
|
-
).returns(T.attached_class)
|
|
30
|
-
end
|
|
31
|
-
def self.new(dir_id:, phone_numbers:, request_options: {})
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
sig do
|
|
35
|
-
override.returns(
|
|
36
|
-
{
|
|
37
|
-
dir_id: String,
|
|
38
|
-
phone_numbers: T::Array[String],
|
|
39
|
-
request_options: Telnyx::RequestOptions
|
|
40
|
-
}
|
|
41
|
-
)
|
|
42
|
-
end
|
|
43
|
-
def to_hash
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|