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.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -538
  3. data/README.md +1 -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/dir/email_verification_status_wrapped.rb +82 -0
  7. data/lib/telnyx/models/dir/reference.rb +125 -0
  8. data/lib/telnyx/models/dir/reference_create_params.rb +43 -0
  9. data/lib/telnyx/models/dir/reference_input.rb +74 -0
  10. data/lib/telnyx/models/dir/reference_list.rb +18 -0
  11. data/lib/telnyx/models/dir/reference_list_params.rb +22 -0
  12. data/lib/telnyx/models/dir/reference_update_params.rb +103 -0
  13. data/lib/telnyx/models/dir/reference_update_response.rb +23 -0
  14. data/lib/telnyx/models/dir/verify_email_confirm_params.rb +31 -0
  15. data/lib/telnyx/models/dir/verify_email_create_params.rb +22 -0
  16. data/lib/telnyx/models/dir/verify_email_list_params.rb +22 -0
  17. data/lib/telnyx/models/dir_update_infringement_params.rb +6 -2
  18. data/lib/telnyx/models/enterprises/dir_create_params.rb +10 -10
  19. data/lib/telnyx/models/storage/kv_create_params.rb +24 -0
  20. data/lib/telnyx/models/storage/kv_delete_params.rb +22 -0
  21. data/lib/telnyx/models/storage/kv_list_params.rb +32 -0
  22. data/lib/telnyx/models/storage/kv_namespace.rb +75 -0
  23. data/lib/telnyx/models/storage/kv_namespace_response_wrapper.rb +18 -0
  24. data/lib/telnyx/models/storage/kv_retrieve_params.rb +22 -0
  25. data/lib/telnyx/models/storage/kvs/key_delete_params.rb +30 -0
  26. data/lib/telnyx/models/storage/kvs/key_list_params.rb +49 -0
  27. data/lib/telnyx/models/storage/kvs/key_list_response.rb +82 -0
  28. data/lib/telnyx/models/storage/kvs/key_retrieve_params.rb +30 -0
  29. data/lib/telnyx/models/storage/kvs/key_update_params.rb +53 -0
  30. data/lib/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rb +31 -0
  31. data/lib/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rb +54 -0
  32. data/lib/telnyx/resources/dir/references.rb +139 -0
  33. data/lib/telnyx/resources/dir/verify_email.rb +91 -0
  34. data/lib/telnyx/resources/dir.rb +17 -1
  35. data/lib/telnyx/resources/documents.rb +1 -1
  36. data/lib/telnyx/resources/enterprises/dir.rb +3 -3
  37. data/lib/telnyx/resources/storage/kvs/keys.rb +154 -0
  38. data/lib/telnyx/resources/storage/kvs.rb +115 -0
  39. data/lib/telnyx/resources/storage.rb +5 -0
  40. data/lib/telnyx/resources/whatsapp/phone_numbers.rb +27 -0
  41. data/lib/telnyx/version.rb +1 -1
  42. data/lib/telnyx.rb +28 -2
  43. data/rbi/telnyx/models/advanced_order_create_params.rbi +4 -198
  44. data/rbi/telnyx/models/advanced_order_update_requirement_group_params.rbi +2 -219
  45. data/rbi/telnyx/models/ai/assistant_get_texml_response.rbi +1 -1
  46. data/rbi/telnyx/models/ai/assistants/instruction_enhance_response.rbi +1 -1
  47. data/rbi/telnyx/models/dir/email_verification_status_wrapped.rbi +184 -0
  48. data/rbi/telnyx/models/dir/reference.rbi +162 -0
  49. data/rbi/telnyx/models/dir/reference_create_params.rbi +66 -0
  50. data/rbi/telnyx/models/dir/reference_input.rbi +93 -0
  51. data/rbi/telnyx/models/dir/reference_list.rbi +29 -0
  52. data/rbi/telnyx/models/dir/reference_list_params.rbi +37 -0
  53. data/rbi/telnyx/models/dir/reference_update_params.rbi +154 -0
  54. data/rbi/telnyx/models/dir/reference_update_response.rbi +39 -0
  55. data/rbi/telnyx/models/dir/verify_email_confirm_params.rbi +54 -0
  56. data/rbi/telnyx/models/dir/verify_email_create_params.rbi +40 -0
  57. data/rbi/telnyx/models/dir/verify_email_list_params.rbi +37 -0
  58. data/rbi/telnyx/models/dir_update_infringement_params.rbi +4 -2
  59. data/rbi/telnyx/models/enterprises/dir_create_params.rbi +10 -13
  60. data/rbi/telnyx/models/messaging_profiles/autoresp_config_delete_response.rbi +1 -1
  61. data/rbi/telnyx/models/storage/kv_create_params.rbi +42 -0
  62. data/rbi/telnyx/models/storage/kv_delete_params.rbi +37 -0
  63. data/rbi/telnyx/models/storage/kv_list_params.rbi +59 -0
  64. data/rbi/telnyx/models/storage/kv_namespace.rbi +131 -0
  65. data/rbi/telnyx/models/storage/kv_namespace_response_wrapper.rbi +35 -0
  66. data/rbi/telnyx/models/storage/kv_retrieve_params.rbi +37 -0
  67. data/rbi/telnyx/models/storage/kvs/key_delete_params.rbi +50 -0
  68. data/rbi/telnyx/models/storage/kvs/key_list_params.rbi +81 -0
  69. data/rbi/telnyx/models/storage/kvs/key_list_response.rbi +179 -0
  70. data/rbi/telnyx/models/storage/kvs/key_retrieve_params.rbi +50 -0
  71. data/rbi/telnyx/models/storage/kvs/key_update_params.rbi +77 -0
  72. data/rbi/telnyx/models/sub_number_orders_report_download_response.rbi +1 -1
  73. data/rbi/telnyx/models/telephony_credential_create_token_response.rbi +1 -1
  74. data/rbi/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rbi +54 -0
  75. data/rbi/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rbi +125 -0
  76. data/rbi/telnyx/models/wireguard_peer_retrieve_config_response.rbi +1 -1
  77. data/rbi/telnyx/resources/dir/references.rbi +114 -0
  78. data/rbi/telnyx/resources/dir/verify_email.rbi +70 -0
  79. data/rbi/telnyx/resources/dir.rbi +13 -1
  80. data/rbi/telnyx/resources/enterprises/dir.rbi +4 -4
  81. data/rbi/telnyx/resources/storage/kvs/keys.rbi +115 -0
  82. data/rbi/telnyx/resources/storage/kvs.rbi +87 -0
  83. data/rbi/telnyx/resources/storage.rbi +4 -0
  84. data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +21 -0
  85. data/sig/telnyx/models/advanced_order_create_params.rbs +3 -99
  86. data/sig/telnyx/models/advanced_order_update_requirement_group_params.rbs +3 -94
  87. data/sig/telnyx/models/dir/email_verification_status_wrapped.rbs +69 -0
  88. data/sig/telnyx/models/dir/reference.rbs +88 -0
  89. data/sig/telnyx/models/dir/reference_create_params.rbs +38 -0
  90. data/sig/telnyx/models/dir/reference_input.rbs +52 -0
  91. data/sig/telnyx/models/dir/reference_list.rbs +15 -0
  92. data/sig/telnyx/models/dir/reference_list_params.rbs +25 -0
  93. data/sig/telnyx/models/dir/reference_update_params.rbs +92 -0
  94. data/sig/telnyx/models/dir/reference_update_response.rbs +15 -0
  95. data/sig/telnyx/models/dir/verify_email_confirm_params.rbs +30 -0
  96. data/sig/telnyx/models/dir/verify_email_create_params.rbs +25 -0
  97. data/sig/telnyx/models/dir/verify_email_list_params.rbs +25 -0
  98. data/sig/telnyx/models/enterprises/dir_create_params.rbs +5 -7
  99. data/sig/telnyx/models/storage/kv_create_params.rbs +25 -0
  100. data/sig/telnyx/models/storage/kv_delete_params.rbs +22 -0
  101. data/sig/telnyx/models/storage/kv_list_params.rbs +34 -0
  102. data/sig/telnyx/models/storage/kv_namespace.rbs +80 -0
  103. data/sig/telnyx/models/storage/kv_namespace_response_wrapper.rbs +20 -0
  104. data/sig/telnyx/models/storage/kv_retrieve_params.rbs +22 -0
  105. data/sig/telnyx/models/storage/kvs/key_delete_params.rbs +32 -0
  106. data/sig/telnyx/models/storage/kvs/key_list_params.rbs +46 -0
  107. data/sig/telnyx/models/storage/kvs/key_list_response.rbs +88 -0
  108. data/sig/telnyx/models/storage/kvs/key_retrieve_params.rbs +32 -0
  109. data/sig/telnyx/models/storage/kvs/key_update_params.rbs +47 -0
  110. data/sig/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rbs +30 -0
  111. data/sig/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rbs +66 -0
  112. data/sig/telnyx/resources/dir/references.rbs +35 -0
  113. data/sig/telnyx/resources/dir/verify_email.rbs +25 -0
  114. data/sig/telnyx/resources/dir.rbs +4 -0
  115. data/sig/telnyx/resources/enterprises/dir.rbs +1 -1
  116. data/sig/telnyx/resources/storage/kvs/keys.rbs +39 -0
  117. data/sig/telnyx/resources/storage/kvs.rbs +32 -0
  118. data/sig/telnyx/resources/storage.rbs +2 -0
  119. data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +6 -0
  120. 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:, 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).
@@ -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