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
|
@@ -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:,
|
|
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).
|
|
@@ -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
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
# @see Telnyx::Resources::Storage::Kvs#list
|
|
7
|
+
class KvListParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute page_number
|
|
12
|
+
# The page number to load.
|
|
13
|
+
#
|
|
14
|
+
# @return [Integer, nil]
|
|
15
|
+
optional :page_number, Integer
|
|
16
|
+
|
|
17
|
+
# @!attribute page_size
|
|
18
|
+
# The size of the page. Values above 250 are treated as 250.
|
|
19
|
+
#
|
|
20
|
+
# @return [Integer, nil]
|
|
21
|
+
optional :page_size, Integer
|
|
22
|
+
|
|
23
|
+
# @!method initialize(page_number: nil, page_size: nil, request_options: {})
|
|
24
|
+
# @param page_number [Integer] The page number to load.
|
|
25
|
+
#
|
|
26
|
+
# @param page_size [Integer] The size of the page. Values above 250 are treated as 250.
|
|
27
|
+
#
|
|
28
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
# @see Telnyx::Resources::Storage::Kvs#list
|
|
7
|
+
class KvNamespace < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
#
|
|
10
|
+
# @return [String, nil]
|
|
11
|
+
optional :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute created_at
|
|
14
|
+
#
|
|
15
|
+
# @return [Time, nil]
|
|
16
|
+
optional :created_at, Time
|
|
17
|
+
|
|
18
|
+
# @!attribute name
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :name, String
|
|
22
|
+
|
|
23
|
+
# @!attribute record_type
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :record_type, String
|
|
27
|
+
|
|
28
|
+
# @!attribute status
|
|
29
|
+
# Provisioning status. A namespace is usable once `status` is `provision_ok`. Once
|
|
30
|
+
# deletion completes, the namespace no longer appears in the API.
|
|
31
|
+
#
|
|
32
|
+
# @return [Symbol, Telnyx::Models::Storage::KvNamespace::Status, nil]
|
|
33
|
+
optional :status, enum: -> { Telnyx::Storage::KvNamespace::Status }
|
|
34
|
+
|
|
35
|
+
# @!attribute updated_at
|
|
36
|
+
#
|
|
37
|
+
# @return [Time, nil]
|
|
38
|
+
optional :updated_at, Time
|
|
39
|
+
|
|
40
|
+
# @!method initialize(id: nil, created_at: nil, name: nil, record_type: nil, status: nil, updated_at: nil)
|
|
41
|
+
# Some parameter documentations has been truncated, see
|
|
42
|
+
# {Telnyx::Models::Storage::KvNamespace} for more details.
|
|
43
|
+
#
|
|
44
|
+
# @param id [String]
|
|
45
|
+
#
|
|
46
|
+
# @param created_at [Time]
|
|
47
|
+
#
|
|
48
|
+
# @param name [String]
|
|
49
|
+
#
|
|
50
|
+
# @param record_type [String]
|
|
51
|
+
#
|
|
52
|
+
# @param status [Symbol, Telnyx::Models::Storage::KvNamespace::Status] Provisioning status. A namespace is usable once `status` is `provision_ok`. Once
|
|
53
|
+
#
|
|
54
|
+
# @param updated_at [Time]
|
|
55
|
+
|
|
56
|
+
# Provisioning status. A namespace is usable once `status` is `provision_ok`. Once
|
|
57
|
+
# deletion completes, the namespace no longer appears in the API.
|
|
58
|
+
#
|
|
59
|
+
# @see Telnyx::Models::Storage::KvNamespace#status
|
|
60
|
+
module Status
|
|
61
|
+
extend Telnyx::Internal::Type::Enum
|
|
62
|
+
|
|
63
|
+
PENDING = :pending
|
|
64
|
+
PROVISION_OK = :provision_ok
|
|
65
|
+
PROVISION_FAILED = :provision_failed
|
|
66
|
+
DELETING = :deleting
|
|
67
|
+
DELETE_FAILED = :delete_failed
|
|
68
|
+
|
|
69
|
+
# @!method self.values
|
|
70
|
+
# @return [Array<Symbol>]
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
# @see Telnyx::Resources::Storage::Kvs#create
|
|
7
|
+
class KvNamespaceResponseWrapper < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
#
|
|
10
|
+
# @return [Telnyx::Models::Storage::KvNamespace, nil]
|
|
11
|
+
optional :data, -> { Telnyx::Storage::KvNamespace }
|
|
12
|
+
|
|
13
|
+
# @!method initialize(data: nil)
|
|
14
|
+
# @param data [Telnyx::Models::Storage::KvNamespace]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
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#retrieve
|
|
7
|
+
class KvRetrieveParams < 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
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
module Kvs
|
|
7
|
+
# @see Telnyx::Resources::Storage::Kvs::Keys#delete
|
|
8
|
+
class KeyDeleteParams < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute id
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute key
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :key, String
|
|
21
|
+
|
|
22
|
+
# @!method initialize(id:, key:, request_options: {})
|
|
23
|
+
# @param id [String]
|
|
24
|
+
# @param key [String]
|
|
25
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
module Kvs
|
|
7
|
+
# @see Telnyx::Resources::Storage::Kvs::Keys#list
|
|
8
|
+
class KeyListParams < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute id
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute cursor
|
|
18
|
+
# Opaque pagination cursor from a previous response's `meta.cursor`.
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :cursor, String
|
|
22
|
+
|
|
23
|
+
# @!attribute limit
|
|
24
|
+
# Maximum number of keys to return. Values above 1000 are treated as 1000.
|
|
25
|
+
#
|
|
26
|
+
# @return [Integer, nil]
|
|
27
|
+
optional :limit, Integer
|
|
28
|
+
|
|
29
|
+
# @!attribute prefix
|
|
30
|
+
# Return only keys that start with this prefix.
|
|
31
|
+
#
|
|
32
|
+
# @return [String, nil]
|
|
33
|
+
optional :prefix, String
|
|
34
|
+
|
|
35
|
+
# @!method initialize(id:, cursor: nil, limit: nil, prefix: nil, request_options: {})
|
|
36
|
+
# @param id [String]
|
|
37
|
+
#
|
|
38
|
+
# @param cursor [String] Opaque pagination cursor from a previous response's `meta.cursor`.
|
|
39
|
+
#
|
|
40
|
+
# @param limit [Integer] Maximum number of keys to return. Values above 1000 are treated as 1000.
|
|
41
|
+
#
|
|
42
|
+
# @param prefix [String] Return only keys that start with this prefix.
|
|
43
|
+
#
|
|
44
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
module Kvs
|
|
7
|
+
# @see Telnyx::Resources::Storage::Kvs::Keys#list
|
|
8
|
+
class KeyListResponse < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute data
|
|
10
|
+
#
|
|
11
|
+
# @return [Array<Telnyx::Models::Storage::Kvs::KeyListResponse::Data>, nil]
|
|
12
|
+
optional :data,
|
|
13
|
+
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Storage::Kvs::KeyListResponse::Data] }
|
|
14
|
+
|
|
15
|
+
# @!attribute meta
|
|
16
|
+
#
|
|
17
|
+
# @return [Telnyx::Models::Storage::Kvs::KeyListResponse::Meta, nil]
|
|
18
|
+
optional :meta, -> { Telnyx::Models::Storage::Kvs::KeyListResponse::Meta }
|
|
19
|
+
|
|
20
|
+
# @!attribute record_type
|
|
21
|
+
#
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
optional :record_type, String
|
|
24
|
+
|
|
25
|
+
# @!method initialize(data: nil, meta: nil, record_type: nil)
|
|
26
|
+
# @param data [Array<Telnyx::Models::Storage::Kvs::KeyListResponse::Data>]
|
|
27
|
+
# @param meta [Telnyx::Models::Storage::Kvs::KeyListResponse::Meta]
|
|
28
|
+
# @param record_type [String]
|
|
29
|
+
|
|
30
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
31
|
+
# @!attribute key
|
|
32
|
+
#
|
|
33
|
+
# @return [String, nil]
|
|
34
|
+
optional :key, String
|
|
35
|
+
|
|
36
|
+
# @!attribute size_bytes
|
|
37
|
+
# Size of the stored value in bytes.
|
|
38
|
+
#
|
|
39
|
+
# @return [Integer, nil]
|
|
40
|
+
optional :size_bytes, Integer
|
|
41
|
+
|
|
42
|
+
# @!attribute updated_at
|
|
43
|
+
#
|
|
44
|
+
# @return [Time, nil]
|
|
45
|
+
optional :updated_at, Time
|
|
46
|
+
|
|
47
|
+
# @!method initialize(key: nil, size_bytes: nil, updated_at: nil)
|
|
48
|
+
# @param key [String]
|
|
49
|
+
#
|
|
50
|
+
# @param size_bytes [Integer] Size of the stored value in bytes.
|
|
51
|
+
#
|
|
52
|
+
# @param updated_at [Time]
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# @see Telnyx::Models::Storage::Kvs::KeyListResponse#meta
|
|
56
|
+
class Meta < Telnyx::Internal::Type::BaseModel
|
|
57
|
+
# @!attribute cursor
|
|
58
|
+
# Opaque cursor for the next page; pass it back as the `cursor` query parameter.
|
|
59
|
+
# Omitted when there are no further results.
|
|
60
|
+
#
|
|
61
|
+
# @return [String, nil]
|
|
62
|
+
optional :cursor, String
|
|
63
|
+
|
|
64
|
+
# @!attribute has_more
|
|
65
|
+
# Whether more results are available on a following page.
|
|
66
|
+
#
|
|
67
|
+
# @return [Boolean, nil]
|
|
68
|
+
optional :has_more, Telnyx::Internal::Type::Boolean
|
|
69
|
+
|
|
70
|
+
# @!method initialize(cursor: nil, has_more: nil)
|
|
71
|
+
# Some parameter documentations has been truncated, see
|
|
72
|
+
# {Telnyx::Models::Storage::Kvs::KeyListResponse::Meta} for more details.
|
|
73
|
+
#
|
|
74
|
+
# @param cursor [String] Opaque cursor for the next page; pass it back as the `cursor` query parameter. O
|
|
75
|
+
#
|
|
76
|
+
# @param has_more [Boolean] Whether more results are available on a following page.
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
module Kvs
|
|
7
|
+
# @see Telnyx::Resources::Storage::Kvs::Keys#retrieve
|
|
8
|
+
class KeyRetrieveParams < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute id
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute key
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :key, String
|
|
21
|
+
|
|
22
|
+
# @!method initialize(id:, key:, request_options: {})
|
|
23
|
+
# @param id [String]
|
|
24
|
+
# @param key [String]
|
|
25
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
module Kvs
|
|
7
|
+
# @see Telnyx::Resources::Storage::Kvs::Keys#update
|
|
8
|
+
class KeyUpdateParams < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute id
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute key
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :key, String
|
|
21
|
+
|
|
22
|
+
# @!attribute body
|
|
23
|
+
# Raw value bytes, stored verbatim.
|
|
24
|
+
#
|
|
25
|
+
# @return [Pathname, StringIO, IO, String, Telnyx::FilePart]
|
|
26
|
+
required :body, Telnyx::Internal::Type::FileInput
|
|
27
|
+
|
|
28
|
+
# @!attribute ttl_secs
|
|
29
|
+
# Time-to-live in seconds. When set, the key expires and is deleted after this
|
|
30
|
+
# duration. Requires a namespace provisioned with TTL support; namespaces without
|
|
31
|
+
# it return a `409`.
|
|
32
|
+
#
|
|
33
|
+
# @return [Integer, nil]
|
|
34
|
+
optional :ttl_secs, Integer
|
|
35
|
+
|
|
36
|
+
# @!method initialize(id:, key:, body:, ttl_secs: nil, request_options: {})
|
|
37
|
+
# Some parameter documentations has been truncated, see
|
|
38
|
+
# {Telnyx::Models::Storage::Kvs::KeyUpdateParams} for more details.
|
|
39
|
+
#
|
|
40
|
+
# @param id [String]
|
|
41
|
+
#
|
|
42
|
+
# @param key [String]
|
|
43
|
+
#
|
|
44
|
+
# @param body [Pathname, StringIO, IO, String, Telnyx::FilePart] Raw value bytes, stored verbatim.
|
|
45
|
+
#
|
|
46
|
+
# @param ttl_secs [Integer] Time-to-live in seconds. When set, the key expires and is deleted after this dur
|
|
47
|
+
#
|
|
48
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Whatsapp
|
|
6
|
+
# @see Telnyx::Resources::Whatsapp::PhoneNumbers#retrieve_conversation_window
|
|
7
|
+
class PhoneNumberRetrieveConversationWindowParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute phone_number
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :phone_number, String
|
|
15
|
+
|
|
16
|
+
# @!attribute destination_number
|
|
17
|
+
# Destination phone number in E.164 format
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :destination_number, String
|
|
21
|
+
|
|
22
|
+
# @!method initialize(phone_number:, destination_number:, request_options: {})
|
|
23
|
+
# @param phone_number [String]
|
|
24
|
+
#
|
|
25
|
+
# @param destination_number [String] Destination phone number in E.164 format
|
|
26
|
+
#
|
|
27
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Whatsapp
|
|
6
|
+
# @see Telnyx::Resources::Whatsapp::PhoneNumbers#retrieve_conversation_window
|
|
7
|
+
class PhoneNumberRetrieveConversationWindowResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
#
|
|
10
|
+
# @return [Telnyx::Models::Whatsapp::PhoneNumberRetrieveConversationWindowResponse::Data, nil]
|
|
11
|
+
optional :data, -> { Telnyx::Models::Whatsapp::PhoneNumberRetrieveConversationWindowResponse::Data }
|
|
12
|
+
|
|
13
|
+
# @!method initialize(data: nil)
|
|
14
|
+
# @param data [Telnyx::Models::Whatsapp::PhoneNumberRetrieveConversationWindowResponse::Data]
|
|
15
|
+
|
|
16
|
+
# @see Telnyx::Models::Whatsapp::PhoneNumberRetrieveConversationWindowResponse#data
|
|
17
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
18
|
+
# @!attribute last_user_message_at
|
|
19
|
+
# Timestamp of the last inbound message that opened the window
|
|
20
|
+
#
|
|
21
|
+
# @return [Time, nil]
|
|
22
|
+
optional :last_user_message_at, Time
|
|
23
|
+
|
|
24
|
+
# @!attribute window_active
|
|
25
|
+
# Whether the 24-hour conversation window is currently open
|
|
26
|
+
#
|
|
27
|
+
# @return [Boolean, nil]
|
|
28
|
+
optional :window_active, Telnyx::Internal::Type::Boolean
|
|
29
|
+
|
|
30
|
+
# @!attribute window_expires_at
|
|
31
|
+
# When the window closes. Null if no active window.
|
|
32
|
+
#
|
|
33
|
+
# @return [Time, nil]
|
|
34
|
+
optional :window_expires_at, Time
|
|
35
|
+
|
|
36
|
+
# @!attribute window_type
|
|
37
|
+
# Window type. Currently always 24h when present.
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :window_type, String
|
|
41
|
+
|
|
42
|
+
# @!method initialize(last_user_message_at: nil, window_active: nil, window_expires_at: nil, window_type: nil)
|
|
43
|
+
# @param last_user_message_at [Time] Timestamp of the last inbound message that opened the window
|
|
44
|
+
#
|
|
45
|
+
# @param window_active [Boolean] Whether the 24-hour conversation window is currently open
|
|
46
|
+
#
|
|
47
|
+
# @param window_expires_at [Time] When the window closes. Null if no active window.
|
|
48
|
+
#
|
|
49
|
+
# @param window_type [String] Window type. Currently always 24h when present.
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|