telnyx 5.151.0 → 5.153.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 (129) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -533
  3. data/README.md +1 -1
  4. data/lib/telnyx/internal/cursor_flat_pagination.rb +106 -0
  5. data/lib/telnyx/models/advanced_order_create_params.rb +1 -86
  6. data/lib/telnyx/models/advanced_order_update_requirement_group_params.rb +1 -88
  7. data/lib/telnyx/models/dir/email_verification_status_wrapped.rb +82 -0
  8. data/lib/telnyx/models/dir/reference.rb +125 -0
  9. data/lib/telnyx/models/dir/reference_create_params.rb +43 -0
  10. data/lib/telnyx/models/dir/reference_input.rb +74 -0
  11. data/lib/telnyx/models/dir/reference_list.rb +18 -0
  12. data/lib/telnyx/models/dir/reference_list_params.rb +22 -0
  13. data/lib/telnyx/models/dir/reference_update_params.rb +103 -0
  14. data/lib/telnyx/models/dir/reference_update_response.rb +23 -0
  15. data/lib/telnyx/models/dir/verify_email_confirm_params.rb +31 -0
  16. data/lib/telnyx/models/dir/verify_email_create_params.rb +22 -0
  17. data/lib/telnyx/models/dir/verify_email_list_params.rb +22 -0
  18. data/lib/telnyx/models/dir_update_infringement_params.rb +6 -2
  19. data/lib/telnyx/models/enterprises/dir_create_params.rb +10 -10
  20. data/lib/telnyx/models/storage/kv_create_params.rb +24 -0
  21. data/lib/telnyx/models/storage/kv_delete_params.rb +22 -0
  22. data/lib/telnyx/models/storage/kv_list_params.rb +32 -0
  23. data/lib/telnyx/models/storage/kv_namespace.rb +75 -0
  24. data/lib/telnyx/models/storage/kv_namespace_response_wrapper.rb +18 -0
  25. data/lib/telnyx/models/storage/kv_retrieve_params.rb +22 -0
  26. data/lib/telnyx/models/storage/kvs/key_delete_params.rb +30 -0
  27. data/lib/telnyx/models/storage/kvs/key_list_params.rb +49 -0
  28. data/lib/telnyx/models/storage/kvs/key_list_response.rb +35 -0
  29. data/lib/telnyx/models/storage/kvs/key_retrieve_params.rb +30 -0
  30. data/lib/telnyx/models/storage/kvs/key_update_params.rb +53 -0
  31. data/lib/telnyx/models/uac_inbound.rb +25 -1
  32. data/lib/telnyx/models/uac_inbound_request.rb +25 -1
  33. data/lib/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rb +31 -0
  34. data/lib/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rb +54 -0
  35. data/lib/telnyx/resources/dir/references.rb +139 -0
  36. data/lib/telnyx/resources/dir/verify_email.rb +91 -0
  37. data/lib/telnyx/resources/dir.rb +17 -1
  38. data/lib/telnyx/resources/documents.rb +1 -1
  39. data/lib/telnyx/resources/enterprises/dir.rb +3 -3
  40. data/lib/telnyx/resources/storage/kvs/keys.rb +155 -0
  41. data/lib/telnyx/resources/storage/kvs.rb +115 -0
  42. data/lib/telnyx/resources/storage.rb +5 -0
  43. data/lib/telnyx/resources/whatsapp/phone_numbers.rb +27 -0
  44. data/lib/telnyx/version.rb +1 -1
  45. data/lib/telnyx.rb +29 -2
  46. data/rbi/telnyx/internal/cursor_flat_pagination.rbi +48 -0
  47. data/rbi/telnyx/models/advanced_order_create_params.rbi +4 -198
  48. data/rbi/telnyx/models/advanced_order_update_requirement_group_params.rbi +2 -219
  49. data/rbi/telnyx/models/ai/assistant_get_texml_response.rbi +1 -1
  50. data/rbi/telnyx/models/ai/assistants/instruction_enhance_response.rbi +1 -1
  51. data/rbi/telnyx/models/dir/email_verification_status_wrapped.rbi +184 -0
  52. data/rbi/telnyx/models/dir/reference.rbi +162 -0
  53. data/rbi/telnyx/models/dir/reference_create_params.rbi +66 -0
  54. data/rbi/telnyx/models/dir/reference_input.rbi +93 -0
  55. data/rbi/telnyx/models/dir/reference_list.rbi +29 -0
  56. data/rbi/telnyx/models/dir/reference_list_params.rbi +37 -0
  57. data/rbi/telnyx/models/dir/reference_update_params.rbi +154 -0
  58. data/rbi/telnyx/models/dir/reference_update_response.rbi +39 -0
  59. data/rbi/telnyx/models/dir/verify_email_confirm_params.rbi +54 -0
  60. data/rbi/telnyx/models/dir/verify_email_create_params.rbi +40 -0
  61. data/rbi/telnyx/models/dir/verify_email_list_params.rbi +37 -0
  62. data/rbi/telnyx/models/dir_update_infringement_params.rbi +4 -2
  63. data/rbi/telnyx/models/enterprises/dir_create_params.rbi +10 -13
  64. data/rbi/telnyx/models/messaging_profiles/autoresp_config_delete_response.rbi +1 -1
  65. data/rbi/telnyx/models/storage/kv_create_params.rbi +42 -0
  66. data/rbi/telnyx/models/storage/kv_delete_params.rbi +37 -0
  67. data/rbi/telnyx/models/storage/kv_list_params.rbi +59 -0
  68. data/rbi/telnyx/models/storage/kv_namespace.rbi +131 -0
  69. data/rbi/telnyx/models/storage/kv_namespace_response_wrapper.rbi +35 -0
  70. data/rbi/telnyx/models/storage/kv_retrieve_params.rbi +37 -0
  71. data/rbi/telnyx/models/storage/kvs/key_delete_params.rbi +50 -0
  72. data/rbi/telnyx/models/storage/kvs/key_list_params.rbi +81 -0
  73. data/rbi/telnyx/models/storage/kvs/key_list_response.rbi +59 -0
  74. data/rbi/telnyx/models/storage/kvs/key_retrieve_params.rbi +50 -0
  75. data/rbi/telnyx/models/storage/kvs/key_update_params.rbi +77 -0
  76. data/rbi/telnyx/models/sub_number_orders_report_download_response.rbi +1 -1
  77. data/rbi/telnyx/models/telephony_credential_create_token_response.rbi +1 -1
  78. data/rbi/telnyx/models/uac_inbound.rbi +36 -0
  79. data/rbi/telnyx/models/uac_inbound_request.rbi +39 -0
  80. data/rbi/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rbi +54 -0
  81. data/rbi/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rbi +125 -0
  82. data/rbi/telnyx/models/wireguard_peer_retrieve_config_response.rbi +1 -1
  83. data/rbi/telnyx/resources/dir/references.rbi +114 -0
  84. data/rbi/telnyx/resources/dir/verify_email.rbi +70 -0
  85. data/rbi/telnyx/resources/dir.rbi +13 -1
  86. data/rbi/telnyx/resources/enterprises/dir.rbi +4 -4
  87. data/rbi/telnyx/resources/storage/kvs/keys.rbi +122 -0
  88. data/rbi/telnyx/resources/storage/kvs.rbi +87 -0
  89. data/rbi/telnyx/resources/storage.rbi +4 -0
  90. data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +21 -0
  91. data/sig/telnyx/internal/cursor_flat_pagination.rbs +28 -0
  92. data/sig/telnyx/models/advanced_order_create_params.rbs +3 -99
  93. data/sig/telnyx/models/advanced_order_update_requirement_group_params.rbs +3 -94
  94. data/sig/telnyx/models/dir/email_verification_status_wrapped.rbs +69 -0
  95. data/sig/telnyx/models/dir/reference.rbs +88 -0
  96. data/sig/telnyx/models/dir/reference_create_params.rbs +38 -0
  97. data/sig/telnyx/models/dir/reference_input.rbs +52 -0
  98. data/sig/telnyx/models/dir/reference_list.rbs +15 -0
  99. data/sig/telnyx/models/dir/reference_list_params.rbs +25 -0
  100. data/sig/telnyx/models/dir/reference_update_params.rbs +92 -0
  101. data/sig/telnyx/models/dir/reference_update_response.rbs +15 -0
  102. data/sig/telnyx/models/dir/verify_email_confirm_params.rbs +30 -0
  103. data/sig/telnyx/models/dir/verify_email_create_params.rbs +25 -0
  104. data/sig/telnyx/models/dir/verify_email_list_params.rbs +25 -0
  105. data/sig/telnyx/models/enterprises/dir_create_params.rbs +5 -7
  106. data/sig/telnyx/models/storage/kv_create_params.rbs +25 -0
  107. data/sig/telnyx/models/storage/kv_delete_params.rbs +22 -0
  108. data/sig/telnyx/models/storage/kv_list_params.rbs +34 -0
  109. data/sig/telnyx/models/storage/kv_namespace.rbs +80 -0
  110. data/sig/telnyx/models/storage/kv_namespace_response_wrapper.rbs +20 -0
  111. data/sig/telnyx/models/storage/kv_retrieve_params.rbs +22 -0
  112. data/sig/telnyx/models/storage/kvs/key_delete_params.rbs +32 -0
  113. data/sig/telnyx/models/storage/kvs/key_list_params.rbs +46 -0
  114. data/sig/telnyx/models/storage/kvs/key_list_response.rbs +32 -0
  115. data/sig/telnyx/models/storage/kvs/key_retrieve_params.rbs +32 -0
  116. data/sig/telnyx/models/storage/kvs/key_update_params.rbs +47 -0
  117. data/sig/telnyx/models/uac_inbound.rbs +21 -0
  118. data/sig/telnyx/models/uac_inbound_request.rbs +21 -0
  119. data/sig/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rbs +30 -0
  120. data/sig/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rbs +66 -0
  121. data/sig/telnyx/resources/dir/references.rbs +35 -0
  122. data/sig/telnyx/resources/dir/verify_email.rbs +25 -0
  123. data/sig/telnyx/resources/dir.rbs +4 -0
  124. data/sig/telnyx/resources/enterprises/dir.rbs +1 -1
  125. data/sig/telnyx/resources/storage/kvs/keys.rbs +39 -0
  126. data/sig/telnyx/resources/storage/kvs.rbs +32 -0
  127. data/sig/telnyx/resources/storage.rbs +2 -0
  128. data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +6 -0
  129. metadata +89 -2
@@ -0,0 +1,103 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Dir
6
+ # @see Telnyx::Resources::Dir::References#update
7
+ class ReferenceUpdateParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ # @!attribute dir_id
12
+ #
13
+ # @return [String]
14
+ required :dir_id, String
15
+
16
+ # @!attribute ref_type
17
+ #
18
+ # @return [Symbol, Telnyx::Models::Dir::ReferenceUpdateParams::RefType]
19
+ required :ref_type, enum: -> { Telnyx::Dir::ReferenceUpdateParams::RefType }
20
+
21
+ # @!attribute slot
22
+ #
23
+ # @return [Integer]
24
+ required :slot, Integer
25
+
26
+ # @!attribute email
27
+ # Reference contact email address.
28
+ #
29
+ # @return [String, nil]
30
+ optional :email, String
31
+
32
+ # @!attribute full_name
33
+ # Full name of the reference contact.
34
+ #
35
+ # @return [String, nil]
36
+ optional :full_name, String
37
+
38
+ # @!attribute job_title
39
+ # Job title of the reference contact.
40
+ #
41
+ # @return [String, nil]
42
+ optional :job_title, String, nil?: true
43
+
44
+ # @!attribute organization
45
+ # Organization the reference contact belongs to.
46
+ #
47
+ # @return [String, nil]
48
+ optional :organization, String, nil?: true
49
+
50
+ # @!attribute phone_e164
51
+ # Reference phone number in E.164 format.
52
+ #
53
+ # @return [String, nil]
54
+ optional :phone_e164, String
55
+
56
+ # @!attribute relationship_to_registrant
57
+ # How the reference contact is related to the registering business.
58
+ #
59
+ # @return [String, nil]
60
+ optional :relationship_to_registrant, String, nil?: true
61
+
62
+ # @!attribute timezone
63
+ # IANA timezone id for the reference.
64
+ #
65
+ # @return [String, nil]
66
+ optional :timezone, String
67
+
68
+ # @!method initialize(dir_id:, ref_type:, slot:, email: nil, full_name: nil, job_title: nil, organization: nil, phone_e164: nil, relationship_to_registrant: nil, timezone: nil, request_options: {})
69
+ # @param dir_id [String]
70
+ #
71
+ # @param ref_type [Symbol, Telnyx::Models::Dir::ReferenceUpdateParams::RefType]
72
+ #
73
+ # @param slot [Integer]
74
+ #
75
+ # @param email [String] Reference contact email address.
76
+ #
77
+ # @param full_name [String] Full name of the reference contact.
78
+ #
79
+ # @param job_title [String, nil] Job title of the reference contact.
80
+ #
81
+ # @param organization [String, nil] Organization the reference contact belongs to.
82
+ #
83
+ # @param phone_e164 [String] Reference phone number in E.164 format.
84
+ #
85
+ # @param relationship_to_registrant [String, nil] How the reference contact is related to the registering business.
86
+ #
87
+ # @param timezone [String] IANA timezone id for the reference.
88
+ #
89
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
90
+
91
+ module RefType
92
+ extend Telnyx::Internal::Type::Enum
93
+
94
+ BUSINESS = :business
95
+ FINANCIAL = :financial
96
+
97
+ # @!method self.values
98
+ # @return [Array<Symbol>]
99
+ end
100
+ end
101
+ end
102
+ end
103
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Dir
6
+ # @see Telnyx::Resources::Dir::References#update
7
+ class ReferenceUpdateResponse < Telnyx::Internal::Type::BaseModel
8
+ # @!attribute data
9
+ # A reference (business or financial) on a DIR, in the customer-facing shape. No
10
+ # internal identifiers are exposed.
11
+ #
12
+ # @return [Telnyx::Models::Dir::Reference]
13
+ required :data, -> { Telnyx::Dir::Reference }
14
+
15
+ # @!method initialize(data:)
16
+ # Some parameter documentations has been truncated, see
17
+ # {Telnyx::Models::Dir::ReferenceUpdateResponse} for more details.
18
+ #
19
+ # @param data [Telnyx::Models::Dir::Reference] A reference (business or financial) on a DIR, in the customer-facing shape. No i
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Dir
6
+ # @see Telnyx::Resources::Dir::VerifyEmail#confirm
7
+ class VerifyEmailConfirmParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ # @!attribute dir_id
12
+ #
13
+ # @return [String]
14
+ required :dir_id, String
15
+
16
+ # @!attribute code
17
+ # The 6-digit code sent to the authorizer email.
18
+ #
19
+ # @return [String]
20
+ required :code, String
21
+
22
+ # @!method initialize(dir_id:, code:, request_options: {})
23
+ # @param dir_id [String]
24
+ #
25
+ # @param code [String] The 6-digit code sent to the authorizer email.
26
+ #
27
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Dir
6
+ # @see Telnyx::Resources::Dir::VerifyEmail#create
7
+ class VerifyEmailCreateParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ # @!attribute dir_id
12
+ #
13
+ # @return [String]
14
+ required :dir_id, String
15
+
16
+ # @!method initialize(dir_id:, request_options: {})
17
+ # @param dir_id [String]
18
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Dir
6
+ # @see Telnyx::Resources::Dir::VerifyEmail#list
7
+ class VerifyEmailListParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ # @!attribute dir_id
12
+ #
13
+ # @return [String]
14
+ required :dir_id, String
15
+
16
+ # @!method initialize(dir_id:, request_options: {})
17
+ # @param dir_id [String]
18
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
19
+ end
20
+ end
21
+ end
22
+ end
@@ -55,7 +55,8 @@ module Telnyx
55
55
  optional :display_name, String, nil?: true
56
56
 
57
57
  # @!attribute documents
58
- # Append-only supporting documents.
58
+ # Append-only supporting documents to attach while resolving the claim (e.g.
59
+ # authorization or licensing proof).
59
60
  #
60
61
  # @return [Array<Telnyx::Models::Document>, nil]
61
62
  optional :documents, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Document] }, nil?: true
@@ -67,6 +68,9 @@ module Telnyx
67
68
  optional :logo_url, String, nil?: true
68
69
 
69
70
  # @!method initialize(dir_id:, certify_brand_is_accurate:, certify_ip_ownership:, certify_no_infringement:, certify_no_shaft_content:, infringement_resolution_notes:, call_reasons: nil, display_name: nil, documents: nil, logo_url: nil, request_options: {})
71
+ # Some parameter documentations has been truncated, see
72
+ # {Telnyx::Models::DirUpdateInfringementParams} for more details.
73
+ #
70
74
  # @param dir_id [String]
71
75
  #
72
76
  # @param certify_brand_is_accurate [Boolean, Telnyx::Models::DirUpdateInfringementParams::CertifyBrandIsAccurate] Must be `true`.
@@ -83,7 +87,7 @@ module Telnyx
83
87
  #
84
88
  # @param display_name [String, nil]
85
89
  #
86
- # @param documents [Array<Telnyx::Models::Document>, nil] Append-only supporting documents.
90
+ # @param documents [Array<Telnyx::Models::Document>, nil] Append-only supporting documents to attach while resolving the claim (e.g. autho
87
91
  #
88
92
  # @param logo_url [String, nil] Publicly accessible HTTPS URL (max 128 chars) to a 256x256 BMP logo (max 1 MB).
89
93
  #
@@ -27,6 +27,13 @@ module Telnyx
27
27
  # @return [String]
28
28
  required :authorizer_name, String
29
29
 
30
+ # @!attribute call_reasons
31
+ # 1–10 reasons your business calls customers. Validate phrasing against
32
+ # `POST /call_reasons/validate`.
33
+ #
34
+ # @return [Array<String>]
35
+ required :call_reasons, Telnyx::Internal::Type::ArrayOf[String]
36
+
30
37
  # @!attribute certify_brand_is_accurate
31
38
  # Must be `true`.
32
39
  #
@@ -54,13 +61,6 @@ module Telnyx
54
61
  # @return [String]
55
62
  required :display_name, String
56
63
 
57
- # @!attribute call_reasons
58
- # 1–10 reasons your business calls customers. Validate phrasing against
59
- # `POST /call_reasons/validate`.
60
- #
61
- # @return [Array<String>, nil]
62
- optional :call_reasons, Telnyx::Internal::Type::ArrayOf[String]
63
-
64
64
  # @!attribute documents
65
65
  # Supporting documents. Each `document_id` may appear at most once on a DIR.
66
66
  #
@@ -80,7 +80,7 @@ module Telnyx
80
80
  # @return [Boolean, nil]
81
81
  optional :reselling, Telnyx::Internal::Type::Boolean
82
82
 
83
- # @!method initialize(enterprise_id:, authorizer_email:, authorizer_name:, certify_brand_is_accurate:, certify_ip_ownership:, certify_no_shaft_content:, display_name:, call_reasons: nil, documents: nil, logo_url: nil, reselling: nil, request_options: {})
83
+ # @!method initialize(enterprise_id:, authorizer_email:, authorizer_name:, call_reasons:, certify_brand_is_accurate:, certify_ip_ownership:, certify_no_shaft_content:, display_name:, documents: nil, logo_url: nil, reselling: nil, request_options: {})
84
84
  # Some parameter documentations has been truncated, see
85
85
  # {Telnyx::Models::Enterprises::DirCreateParams} for more details.
86
86
  #
@@ -90,6 +90,8 @@ module Telnyx
90
90
  #
91
91
  # @param authorizer_name [String] Name of the person at your enterprise who is authorizing this DIR registration.
92
92
  #
93
+ # @param call_reasons [Array<String>] 1–10 reasons your business calls customers. Validate phrasing against `POST /cal
94
+ #
93
95
  # @param certify_brand_is_accurate [Boolean, Telnyx::Models::Enterprises::DirCreateParams::CertifyBrandIsAccurate] Must be `true`.
94
96
  #
95
97
  # @param certify_ip_ownership [Boolean, Telnyx::Models::Enterprises::DirCreateParams::CertifyIPOwnership] Must be `true`. Confirms ownership of any logos/trademarks shown.
@@ -98,8 +100,6 @@ module Telnyx
98
100
  #
99
101
  # @param display_name [String] Name shown to call recipients. No emoji; not whitespace-only.
100
102
  #
101
- # @param call_reasons [Array<String>] 1–10 reasons your business calls customers. Validate phrasing against `POST /cal
102
- #
103
103
  # @param documents [Array<Telnyx::Models::Document>] Supporting documents. Each `document_id` may appear at most once on a DIR.
104
104
  #
105
105
  # @param logo_url [String] Publicly accessible HTTPS URL (max 128 chars) to a 256x256 BMP logo (max 1 MB).
@@ -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,35 @@
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 key
10
+ #
11
+ # @return [String, nil]
12
+ optional :key, String
13
+
14
+ # @!attribute size_bytes
15
+ # Size of the stored value in bytes.
16
+ #
17
+ # @return [Integer, nil]
18
+ optional :size_bytes, Integer
19
+
20
+ # @!attribute updated_at
21
+ #
22
+ # @return [Time, nil]
23
+ optional :updated_at, Time
24
+
25
+ # @!method initialize(key: nil, size_bytes: nil, updated_at: nil)
26
+ # @param key [String]
27
+ #
28
+ # @param size_bytes [Integer] Size of the stored value in bytes.
29
+ #
30
+ # @param updated_at [Time]
31
+ end
32
+ end
33
+ end
34
+ end
35
+ 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