telnyx 5.69.0 → 5.71.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 +50 -0
- data/README.md +1 -1
- data/lib/telnyx/internal/util.rb +3 -1
- data/lib/telnyx/models/ai/assistant.rb +6 -149
- data/lib/telnyx/models/ai/assistant_create_params.rb +3 -42
- data/lib/telnyx/models/ai/assistant_update_params.rb +3 -42
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +3 -43
- data/lib/telnyx/models/ai/conversation_add_message_params.rb +4 -4
- data/lib/telnyx/models/ai/inference_embedding.rb +3 -43
- data/lib/telnyx/models/ai/observability.rb +46 -0
- data/lib/telnyx/models/ai/observability_req.rb +46 -0
- data/lib/telnyx/models/book_appointment_tool.rb +31 -0
- data/lib/telnyx/models/book_appointment_tool_params.rb +51 -0
- data/lib/telnyx/models/call_assistant_request.rb +176 -0
- data/lib/telnyx/models/call_control_bucket_ids.rb +23 -0
- data/lib/telnyx/models/call_control_retrieval_tool.rb +31 -0
- data/lib/telnyx/models/call_dial_params.rb +34 -1
- data/lib/telnyx/models/calls/action_answer_params.rb +11 -1
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +6 -39
- data/lib/telnyx/models/calls/action_transfer_params.rb +24 -1
- data/lib/telnyx/models/check_availability_tool.rb +31 -0
- data/lib/telnyx/models/check_availability_tool_params.rb +31 -0
- data/lib/telnyx/models/enterprise_create_params.rb +1 -1
- data/lib/telnyx/models/enterprise_public.rb +1 -1
- data/lib/telnyx/models/enterprise_update_params.rb +1 -1
- data/lib/telnyx/models/enterprises/reputation/{number_create_params.rb → number_associate_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/reputation/{number_create_response.rb → number_associate_response.rb} +5 -5
- data/lib/telnyx/models/enterprises/reputation/{number_delete_params.rb → number_disassociate_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_list_params.rb → reputation_disable_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_create_params.rb → reputation_enable_params.rb} +6 -6
- data/lib/telnyx/models/enterprises/{reputation_create_response.rb → reputation_enable_response.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_delete_all_params.rb → reputation_retrieve_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_list_response.rb → reputation_retrieve_response.rb} +2 -2
- data/lib/telnyx/models/porting_orders/phone_number_block_list_params.rb +9 -9
- data/lib/telnyx/models/pronunciation_dict_alias_item.rb +51 -0
- data/lib/telnyx/models/pronunciation_dict_create_params.rb +5 -93
- data/lib/telnyx/models/pronunciation_dict_create_response.rb +3 -191
- data/lib/telnyx/models/pronunciation_dict_data.rb +101 -0
- data/lib/telnyx/models/pronunciation_dict_phoneme_item.rb +71 -0
- data/lib/telnyx/models/pronunciation_dict_retrieve_response.rb +3 -191
- data/lib/telnyx/models/pronunciation_dict_update_params.rb +5 -93
- data/lib/telnyx/models/pronunciation_dict_update_response.rb +3 -191
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +203 -191
- data/lib/telnyx/models/voice_clone_create_from_design_params.rb +3 -3
- data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +371 -71
- data/lib/telnyx/models/voice_clone_create_params.rb +161 -51
- data/lib/telnyx/models/voice_clone_data.rb +51 -4
- data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rb +26 -0
- data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rb +54 -0
- data/lib/telnyx/models.rb +20 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
- data/lib/telnyx/resources/ai/assistants.rb +2 -2
- data/lib/telnyx/resources/calls/actions.rb +7 -3
- data/lib/telnyx/resources/calls.rb +5 -1
- data/lib/telnyx/resources/enterprises/reputation/numbers.rb +42 -42
- data/lib/telnyx/resources/enterprises/reputation.rb +61 -61
- data/lib/telnyx/resources/pronunciation_dicts.rb +4 -4
- data/lib/telnyx/resources/texml/accounts/calls.rb +3 -3
- data/lib/telnyx/resources/voice_clones.rb +7 -27
- data/lib/telnyx/resources/whatsapp/phone_numbers/profile/photo.rb +20 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +22 -9
- data/rbi/telnyx/models/ai/assistant.rbi +15 -329
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +4 -121
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +4 -121
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +4 -123
- data/rbi/telnyx/models/ai/conversation_add_message_params.rbi +5 -5
- data/rbi/telnyx/models/ai/inference_embedding.rbi +4 -123
- data/rbi/telnyx/models/ai/observability.rbi +90 -0
- data/rbi/telnyx/models/ai/observability_req.rbi +92 -0
- data/rbi/telnyx/models/book_appointment_tool.rbi +65 -0
- data/rbi/telnyx/models/book_appointment_tool_params.rbi +83 -0
- data/rbi/telnyx/models/call_assistant_request.rbi +322 -0
- data/rbi/telnyx/models/call_control_bucket_ids.rbi +42 -0
- data/rbi/telnyx/models/call_control_retrieval_tool.rbi +63 -0
- data/rbi/telnyx/models/call_dial_params.rbi +52 -0
- data/rbi/telnyx/models/calls/action_answer_params.rbi +15 -0
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +10 -77
- data/rbi/telnyx/models/calls/action_transfer_params.rbi +57 -0
- data/rbi/telnyx/models/check_availability_tool.rbi +67 -0
- data/rbi/telnyx/models/check_availability_tool_params.rbi +45 -0
- data/rbi/telnyx/models/enterprise_create_params.rbi +1 -1
- data/rbi/telnyx/models/enterprise_public.rbi +1 -1
- data/rbi/telnyx/models/enterprise_update_params.rbi +1 -1
- data/rbi/telnyx/models/enterprises/reputation/{number_create_params.rbi → number_associate_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/reputation/{number_create_response.rbi → number_associate_response.rbi} +7 -7
- data/rbi/telnyx/models/enterprises/reputation/{number_delete_params.rbi → number_disassociate_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_list_params.rbi → reputation_disable_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_create_params.rbi → reputation_enable_params.rbi} +14 -14
- data/rbi/telnyx/models/enterprises/{reputation_create_response.rbi → reputation_enable_response.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_delete_all_params.rbi → reputation_retrieve_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_list_response.rbi → reputation_retrieve_response.rbi} +2 -2
- data/rbi/telnyx/models/porting_orders/phone_number_block_list_params.rbi +34 -34
- data/rbi/telnyx/models/pronunciation_dict_alias_item.rbi +79 -0
- data/rbi/telnyx/models/pronunciation_dict_create_params.rbi +8 -154
- data/rbi/telnyx/models/pronunciation_dict_create_response.rbi +6 -366
- data/rbi/telnyx/models/pronunciation_dict_data.rbi +186 -0
- data/rbi/telnyx/models/pronunciation_dict_phoneme_item.rbi +117 -0
- data/rbi/telnyx/models/pronunciation_dict_retrieve_response.rbi +6 -366
- data/rbi/telnyx/models/pronunciation_dict_update_params.rbi +10 -156
- data/rbi/telnyx/models/pronunciation_dict_update_response.rbi +6 -366
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +391 -403
- data/rbi/telnyx/models/voice_clone_create_from_design_params.rbi +10 -10
- data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +711 -134
- data/rbi/telnyx/models/voice_clone_create_params.rbi +345 -79
- data/rbi/telnyx/models/voice_clone_data.rbi +77 -4
- data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rbi +47 -0
- data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rbi +118 -0
- data/rbi/telnyx/models.rbi +20 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +1 -2
- data/rbi/telnyx/resources/ai/assistants.rbi +2 -4
- data/rbi/telnyx/resources/calls/actions.rbi +14 -3
- data/rbi/telnyx/resources/calls.rbi +10 -0
- data/rbi/telnyx/resources/enterprises/reputation/numbers.rbi +34 -34
- data/rbi/telnyx/resources/enterprises/reputation.rbi +44 -44
- data/rbi/telnyx/resources/pronunciation_dicts.rbi +5 -7
- data/rbi/telnyx/resources/texml/accounts/calls.rbi +5 -5
- data/rbi/telnyx/resources/voice_clones.rbi +17 -41
- data/rbi/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbi +16 -0
- data/sig/telnyx/models/ai/assistant.rbs +3 -142
- data/sig/telnyx/models/ai/assistant_create_params.rbs +6 -59
- data/sig/telnyx/models/ai/assistant_update_params.rbs +6 -59
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +6 -59
- data/sig/telnyx/models/ai/conversation_add_message_params.rbs +5 -5
- data/sig/telnyx/models/ai/inference_embedding.rbs +6 -59
- data/sig/telnyx/models/ai/observability.rbs +58 -0
- data/sig/telnyx/models/ai/observability_req.rbs +58 -0
- data/sig/telnyx/models/book_appointment_tool.rbs +35 -0
- data/sig/telnyx/models/book_appointment_tool_params.rbs +39 -0
- data/sig/telnyx/models/call_assistant_request.rbs +132 -0
- data/sig/telnyx/models/call_control_bucket_ids.rbs +21 -0
- data/sig/telnyx/models/call_control_retrieval_tool.rbs +35 -0
- data/sig/telnyx/models/call_dial_params.rbs +29 -0
- data/sig/telnyx/models/calls/action_answer_params.rbs +9 -0
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +6 -35
- data/sig/telnyx/models/calls/action_transfer_params.rbs +20 -0
- data/sig/telnyx/models/check_availability_tool.rbs +35 -0
- data/sig/telnyx/models/check_availability_tool_params.rbs +16 -0
- data/sig/telnyx/models/enterprise_create_params.rbs +1 -1
- data/sig/telnyx/models/enterprise_public.rbs +1 -1
- data/sig/telnyx/models/enterprise_update_params.rbs +1 -1
- data/sig/telnyx/models/enterprises/reputation/{number_create_params.rbs → number_associate_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/reputation/{number_create_response.rbs → number_associate_response.rbs} +8 -8
- data/sig/telnyx/models/enterprises/reputation/{number_delete_params.rbs → number_disassociate_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_list_params.rbs → reputation_disable_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_create_params.rbs → reputation_enable_params.rbs} +9 -9
- data/sig/telnyx/models/enterprises/{reputation_create_response.rbs → reputation_enable_response.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_delete_all_params.rbs → reputation_retrieve_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_list_response.rbs → reputation_retrieve_response.rbs} +2 -2
- data/sig/telnyx/models/porting_orders/phone_number_block_list_params.rbs +9 -9
- data/sig/telnyx/models/pronunciation_dict_alias_item.rbs +40 -0
- data/sig/telnyx/models/pronunciation_dict_create_params.rbs +2 -58
- data/sig/telnyx/models/pronunciation_dict_create_response.rbs +6 -155
- data/sig/telnyx/models/pronunciation_dict_data.rbs +88 -0
- data/sig/telnyx/models/pronunciation_dict_phoneme_item.rbs +55 -0
- data/sig/telnyx/models/pronunciation_dict_retrieve_response.rbs +6 -155
- data/sig/telnyx/models/pronunciation_dict_update_params.rbs +2 -58
- data/sig/telnyx/models/pronunciation_dict_update_response.rbs +6 -155
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +317 -325
- data/sig/telnyx/models/voice_clone_create_from_design_params.rbs +7 -7
- data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +269 -56
- data/sig/telnyx/models/voice_clone_create_params.rbs +129 -44
- data/sig/telnyx/models/voice_clone_data.rbs +43 -0
- data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rbs +30 -0
- data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rbs +63 -0
- data/sig/telnyx/models.rbs +20 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -1
- data/sig/telnyx/resources/ai/assistants.rbs +2 -2
- data/sig/telnyx/resources/calls/actions.rbs +3 -1
- data/sig/telnyx/resources/calls.rbs +2 -0
- data/sig/telnyx/resources/enterprises/reputation/numbers.rbs +7 -7
- data/sig/telnyx/resources/enterprises/reputation.rbs +8 -8
- data/sig/telnyx/resources/pronunciation_dicts.rbs +1 -1
- data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -1
- data/sig/telnyx/resources/voice_clones.rbs +2 -12
- data/sig/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbs +5 -0
- metadata +68 -29
- data/lib/telnyx/models/pronunciation_dict_list_response.rb +0 -190
- data/rbi/telnyx/models/pronunciation_dict_list_response.rbi +0 -353
- data/sig/telnyx/models/pronunciation_dict_list_response.rbs +0 -144
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55892760f556bee9521d8c638235b5dce702cea3c1766f230318952e9db8f8ab
|
|
4
|
+
data.tar.gz: bfa439dd1d25de410cd87030b3a86f119b068e922ed4f74821c6028fc9beb3bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed548d98590649ba4b7e628a4f2955f1a40c6ba9e78b6268d396a7ed400e6e6870c39951bdb70fdd21f0ab10187767a752b59fba7e493539c37fd26d996a438b
|
|
7
|
+
data.tar.gz: d8ae515be892c263d2a85a0ee1b60531aca724fe39973e5b148c32bfa6cb5c58ce37a7bf3ae5d92d41f146c4cdc5bd887970cf9df3dd246ce8d17a9b89c20da9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.71.0 (2026-04-11)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.70.0...v5.71.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.70.0...v5.71.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* add shared CallAssistantRequest schema for call-control assistant object ([67a2157](https://github.com/team-telnyx/telnyx-ruby/commit/67a2157455d5a6e5138f89e54479977f108605a7))
|
|
10
|
+
* **api:** manual updates ([0000b53](https://github.com/team-telnyx/telnyx-ruby/commit/0000b5378d0f1dfeb46f1b5670933819fa935d5a))
|
|
11
|
+
* **api:** Merge pull request [#46](https://github.com/team-telnyx/telnyx-ruby/issues/46) from stainless-sdks/FixModelRecommendation ([4b3ea59](https://github.com/team-telnyx/telnyx-ruby/commit/4b3ea599a86f9279f139cbb7868da79079685846))
|
|
12
|
+
* MSG-6846: add GET /profile/photo docs for whatsapp API ([d06a131](https://github.com/team-telnyx/telnyx-ruby/commit/d06a131d943549a7a744a3968e116480d986fc8e))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* correct Provider constant reference in VoiceCloneCreateFromDesignParams RBI/RBS ([6c66dd2](https://github.com/team-telnyx/telnyx-ruby/commit/6c66dd2ebf03c26eeeadadb0a93f5828134d0492))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Reverts
|
|
21
|
+
|
|
22
|
+
* restore stainless.yml to pre-6a6df5b state ([d7e3266](https://github.com/team-telnyx/telnyx-ruby/commit/d7e3266c5593d4163184b2cdcff260aa281843d7))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Documentation
|
|
26
|
+
|
|
27
|
+
* improve examples ([ecc0d15](https://github.com/team-telnyx/telnyx-ruby/commit/ecc0d1599570e1bbeb73c2db47b05a3a9c0e7a00))
|
|
28
|
+
|
|
29
|
+
## 5.70.0 (2026-04-08)
|
|
30
|
+
|
|
31
|
+
Full Changelog: [v5.69.0...v5.70.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.69.0...v5.70.0)
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* TELAPPS-5707: Add privacy parameter to Call Control dial and transfer ([d366c32](https://github.com/team-telnyx/telnyx-ruby/commit/d366c32c5d00373f8bbdfc60eb2100bdd31d63d3))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Bug Fixes
|
|
39
|
+
|
|
40
|
+
* multipart encoding for file arrays ([39e2f28](https://github.com/team-telnyx/telnyx-ruby/commit/39e2f28bebb8c82c4baf25eccbc369719bf2db9a))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Reverts
|
|
44
|
+
|
|
45
|
+
* revert stainless.yml changes from 9c5e8d8 ([d689c9d](https://github.com/team-telnyx/telnyx-ruby/commit/d689c9dee43bc62106808be66328c1e9d91f5376))
|
|
46
|
+
* revert stainless.yml changes from pronunciation dictionaries commit ([8b34c3b](https://github.com/team-telnyx/telnyx-ruby/commit/8b34c3b821f8a0418c7faa1c7f63ecd1d2565cbf))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Documentation
|
|
50
|
+
|
|
51
|
+
* update voice clone schemas to match Ultra/model_id implementation ([cce4793](https://github.com/team-telnyx/telnyx-ruby/commit/cce4793cbdf1990e6ce83d9bcc674bc45a20e0fa))
|
|
52
|
+
|
|
3
53
|
## 5.69.0 (2026-04-08)
|
|
4
54
|
|
|
5
55
|
Full Changelog: [v5.68.2...v5.69.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.68.2...v5.69.0)
|
data/README.md
CHANGED
data/lib/telnyx/internal/util.rb
CHANGED
|
@@ -610,6 +610,7 @@ module Telnyx
|
|
|
610
610
|
#
|
|
611
611
|
# @return [Array(String, Enumerable<String>)]
|
|
612
612
|
private def encode_multipart_streaming(body)
|
|
613
|
+
# rubocop:disable Style/CaseEquality
|
|
613
614
|
# RFC 1521 Section 7.2.1 says we should have 70 char maximum for boundary length
|
|
614
615
|
boundary = SecureRandom.urlsafe_base64(46)
|
|
615
616
|
|
|
@@ -619,7 +620,7 @@ module Telnyx
|
|
|
619
620
|
in Hash
|
|
620
621
|
body.each do |key, val|
|
|
621
622
|
case val
|
|
622
|
-
in Array if val.all? { primitive?(_1) }
|
|
623
|
+
in Array if val.all? { primitive?(_1) || Telnyx::Internal::Type::FileInput === _1 }
|
|
623
624
|
val.each do |v|
|
|
624
625
|
write_multipart_chunk(y, boundary: boundary, key: key, val: v, closing: closing)
|
|
625
626
|
end
|
|
@@ -635,6 +636,7 @@ module Telnyx
|
|
|
635
636
|
|
|
636
637
|
fused_io = fused_enum(strio) { closing.each(&:call) }
|
|
637
638
|
[boundary, fused_io]
|
|
639
|
+
# rubocop:enable Style/CaseEquality
|
|
638
640
|
end
|
|
639
641
|
|
|
640
642
|
# @api private
|
|
@@ -29,7 +29,7 @@ module Telnyx
|
|
|
29
29
|
# @!attribute tools
|
|
30
30
|
# The tools that the voice assistant can use.
|
|
31
31
|
#
|
|
32
|
-
# @return [Array<Telnyx::Models::
|
|
32
|
+
# @return [Array<Telnyx::Models::BookAppointmentTool, Telnyx::Models::CheckAvailabilityTool, Telnyx::Models::AI::WebhookTool, Telnyx::Models::AI::HangupTool, Telnyx::Models::AI::TransferTool, Telnyx::Models::CallControlRetrievalTool>, nil]
|
|
33
33
|
optional :tools, -> { Telnyx::Internal::Type::ArrayOf[union: Telnyx::AI::Assistant::Tool] }
|
|
34
34
|
|
|
35
35
|
# @!method initialize(instructions: nil, model: nil, openai_api_key_ref: nil, tools: nil)
|
|
@@ -44,16 +44,16 @@ module Telnyx
|
|
|
44
44
|
#
|
|
45
45
|
# @param openai_api_key_ref [String] This is necessary only if the model selected is from OpenAI. You would pass the
|
|
46
46
|
#
|
|
47
|
-
# @param tools [Array<Telnyx::Models::
|
|
47
|
+
# @param tools [Array<Telnyx::Models::BookAppointmentTool, Telnyx::Models::CheckAvailabilityTool, Telnyx::Models::AI::WebhookTool, Telnyx::Models::AI::HangupTool, Telnyx::Models::AI::TransferTool, Telnyx::Models::CallControlRetrievalTool>] The tools that the voice assistant can use.
|
|
48
48
|
|
|
49
49
|
module Tool
|
|
50
50
|
extend Telnyx::Internal::Type::Union
|
|
51
51
|
|
|
52
52
|
discriminator :type
|
|
53
53
|
|
|
54
|
-
variant :book_appointment, -> { Telnyx::
|
|
54
|
+
variant :book_appointment, -> { Telnyx::BookAppointmentTool }
|
|
55
55
|
|
|
56
|
-
variant :check_availability, -> { Telnyx::
|
|
56
|
+
variant :check_availability, -> { Telnyx::CheckAvailabilityTool }
|
|
57
57
|
|
|
58
58
|
variant :webhook, -> { Telnyx::AI::WebhookTool }
|
|
59
59
|
|
|
@@ -61,153 +61,10 @@ module Telnyx
|
|
|
61
61
|
|
|
62
62
|
variant :transfer, -> { Telnyx::AI::TransferTool }
|
|
63
63
|
|
|
64
|
-
variant :retrieval, -> { Telnyx::
|
|
65
|
-
|
|
66
|
-
class BookAppointment < Telnyx::Internal::Type::BaseModel
|
|
67
|
-
# @!attribute book_appointment
|
|
68
|
-
#
|
|
69
|
-
# @return [Telnyx::Models::AI::Assistant::Tool::BookAppointment::BookAppointment]
|
|
70
|
-
required :book_appointment, -> { Telnyx::AI::Assistant::Tool::BookAppointment::BookAppointment }
|
|
71
|
-
|
|
72
|
-
# @!attribute type
|
|
73
|
-
#
|
|
74
|
-
# @return [Symbol, :book_appointment]
|
|
75
|
-
required :type, const: :book_appointment
|
|
76
|
-
|
|
77
|
-
# @!method initialize(book_appointment:, type: :book_appointment)
|
|
78
|
-
# @param book_appointment [Telnyx::Models::AI::Assistant::Tool::BookAppointment::BookAppointment]
|
|
79
|
-
# @param type [Symbol, :book_appointment]
|
|
80
|
-
|
|
81
|
-
# @see Telnyx::Models::AI::Assistant::Tool::BookAppointment#book_appointment
|
|
82
|
-
class BookAppointment < Telnyx::Internal::Type::BaseModel
|
|
83
|
-
# @!attribute api_key_ref
|
|
84
|
-
# Reference to an integration secret that contains your Cal.com API key. You would
|
|
85
|
-
# pass the `identifier` for an integration secret
|
|
86
|
-
# [/v2/integration_secrets](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
87
|
-
# that refers to your Cal.com API key.
|
|
88
|
-
#
|
|
89
|
-
# @return [String]
|
|
90
|
-
required :api_key_ref, String
|
|
91
|
-
|
|
92
|
-
# @!attribute event_type_id
|
|
93
|
-
# Event Type ID for which slots are being fetched.
|
|
94
|
-
# [cal.com](https://cal.com/docs/api-reference/v2/bookings/create-a-booking#body-event-type-id)
|
|
95
|
-
#
|
|
96
|
-
# @return [Integer]
|
|
97
|
-
required :event_type_id, Integer
|
|
98
|
-
|
|
99
|
-
# @!attribute attendee_name
|
|
100
|
-
# The name of the attendee
|
|
101
|
-
# [cal.com](https://cal.com/docs/api-reference/v2/bookings/create-a-booking#body-attendee-name).
|
|
102
|
-
# If not provided, the assistant will ask for the attendee's name.
|
|
103
|
-
#
|
|
104
|
-
# @return [String, nil]
|
|
105
|
-
optional :attendee_name, String
|
|
106
|
-
|
|
107
|
-
# @!attribute attendee_timezone
|
|
108
|
-
# The timezone of the attendee
|
|
109
|
-
# [cal.com](https://cal.com/docs/api-reference/v2/bookings/create-a-booking#body-attendee-timezone).
|
|
110
|
-
# If not provided, the assistant will ask for the attendee's timezone.
|
|
111
|
-
#
|
|
112
|
-
# @return [String, nil]
|
|
113
|
-
optional :attendee_timezone, String
|
|
114
|
-
|
|
115
|
-
# @!method initialize(api_key_ref:, event_type_id:, attendee_name: nil, attendee_timezone: nil)
|
|
116
|
-
# Some parameter documentations has been truncated, see
|
|
117
|
-
# {Telnyx::Models::AI::Assistant::Tool::BookAppointment::BookAppointment} for more
|
|
118
|
-
# details.
|
|
119
|
-
#
|
|
120
|
-
# @param api_key_ref [String] Reference to an integration secret that contains your Cal.com API key. You would
|
|
121
|
-
#
|
|
122
|
-
# @param event_type_id [Integer] Event Type ID for which slots are being fetched. [cal.com](https://cal.com/docs/
|
|
123
|
-
#
|
|
124
|
-
# @param attendee_name [String] The name of the attendee [cal.com](https://cal.com/docs/api-reference/v2/booking
|
|
125
|
-
#
|
|
126
|
-
# @param attendee_timezone [String] The timezone of the attendee [cal.com](https://cal.com/docs/api-reference/v2/boo
|
|
127
|
-
end
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
class CheckAvailability < Telnyx::Internal::Type::BaseModel
|
|
131
|
-
# @!attribute check_availability
|
|
132
|
-
#
|
|
133
|
-
# @return [Telnyx::Models::AI::Assistant::Tool::CheckAvailability::CheckAvailability]
|
|
134
|
-
required :check_availability, -> { Telnyx::AI::Assistant::Tool::CheckAvailability::CheckAvailability }
|
|
135
|
-
|
|
136
|
-
# @!attribute type
|
|
137
|
-
#
|
|
138
|
-
# @return [Symbol, :check_availability]
|
|
139
|
-
required :type, const: :check_availability
|
|
140
|
-
|
|
141
|
-
# @!method initialize(check_availability:, type: :check_availability)
|
|
142
|
-
# @param check_availability [Telnyx::Models::AI::Assistant::Tool::CheckAvailability::CheckAvailability]
|
|
143
|
-
# @param type [Symbol, :check_availability]
|
|
144
|
-
|
|
145
|
-
# @see Telnyx::Models::AI::Assistant::Tool::CheckAvailability#check_availability
|
|
146
|
-
class CheckAvailability < Telnyx::Internal::Type::BaseModel
|
|
147
|
-
# @!attribute api_key_ref
|
|
148
|
-
# Reference to an integration secret that contains your Cal.com API key. You would
|
|
149
|
-
# pass the `identifier` for an integration secret
|
|
150
|
-
# [/v2/integration_secrets](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
151
|
-
# that refers to your Cal.com API key.
|
|
152
|
-
#
|
|
153
|
-
# @return [String]
|
|
154
|
-
required :api_key_ref, String
|
|
155
|
-
|
|
156
|
-
# @!attribute event_type_id
|
|
157
|
-
# Event Type ID for which slots are being fetched.
|
|
158
|
-
# [cal.com](https://cal.com/docs/api-reference/v2/slots/get-available-slots#parameter-event-type-id)
|
|
159
|
-
#
|
|
160
|
-
# @return [Integer]
|
|
161
|
-
required :event_type_id, Integer
|
|
162
|
-
|
|
163
|
-
# @!method initialize(api_key_ref:, event_type_id:)
|
|
164
|
-
# Some parameter documentations has been truncated, see
|
|
165
|
-
# {Telnyx::Models::AI::Assistant::Tool::CheckAvailability::CheckAvailability} for
|
|
166
|
-
# more details.
|
|
167
|
-
#
|
|
168
|
-
# @param api_key_ref [String] Reference to an integration secret that contains your Cal.com API key. You would
|
|
169
|
-
#
|
|
170
|
-
# @param event_type_id [Integer] Event Type ID for which slots are being fetched. [cal.com](https://cal.com/docs/
|
|
171
|
-
end
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
class Retrieval < Telnyx::Internal::Type::BaseModel
|
|
175
|
-
# @!attribute retrieval
|
|
176
|
-
#
|
|
177
|
-
# @return [Telnyx::Models::AI::Assistant::Tool::Retrieval::Retrieval]
|
|
178
|
-
required :retrieval, -> { Telnyx::AI::Assistant::Tool::Retrieval::Retrieval }
|
|
179
|
-
|
|
180
|
-
# @!attribute type
|
|
181
|
-
#
|
|
182
|
-
# @return [Symbol, :retrieval]
|
|
183
|
-
required :type, const: :retrieval
|
|
184
|
-
|
|
185
|
-
# @!method initialize(retrieval:, type: :retrieval)
|
|
186
|
-
# @param retrieval [Telnyx::Models::AI::Assistant::Tool::Retrieval::Retrieval]
|
|
187
|
-
# @param type [Symbol, :retrieval]
|
|
188
|
-
|
|
189
|
-
# @see Telnyx::Models::AI::Assistant::Tool::Retrieval#retrieval
|
|
190
|
-
class Retrieval < Telnyx::Internal::Type::BaseModel
|
|
191
|
-
# @!attribute bucket_ids
|
|
192
|
-
#
|
|
193
|
-
# @return [Array<String>]
|
|
194
|
-
required :bucket_ids, Telnyx::Internal::Type::ArrayOf[String]
|
|
195
|
-
|
|
196
|
-
# @!attribute max_num_results
|
|
197
|
-
# The maximum number of results to retrieve as context for the language model.
|
|
198
|
-
#
|
|
199
|
-
# @return [Integer, nil]
|
|
200
|
-
optional :max_num_results, Integer
|
|
201
|
-
|
|
202
|
-
# @!method initialize(bucket_ids:, max_num_results: nil)
|
|
203
|
-
# @param bucket_ids [Array<String>]
|
|
204
|
-
#
|
|
205
|
-
# @param max_num_results [Integer] The maximum number of results to retrieve as context for the language model.
|
|
206
|
-
end
|
|
207
|
-
end
|
|
64
|
+
variant :retrieval, -> { Telnyx::CallControlRetrievalTool }
|
|
208
65
|
|
|
209
66
|
# @!method self.variants
|
|
210
|
-
# @return [Array(Telnyx::Models::
|
|
67
|
+
# @return [Array(Telnyx::Models::BookAppointmentTool, Telnyx::Models::CheckAvailabilityTool, Telnyx::Models::AI::WebhookTool, Telnyx::Models::AI::HangupTool, Telnyx::Models::AI::TransferTool, Telnyx::Models::CallControlRetrievalTool)]
|
|
211
68
|
end
|
|
212
69
|
end
|
|
213
70
|
end
|
|
@@ -86,8 +86,8 @@ module Telnyx
|
|
|
86
86
|
|
|
87
87
|
# @!attribute observability_settings
|
|
88
88
|
#
|
|
89
|
-
# @return [Telnyx::Models::AI::
|
|
90
|
-
optional :observability_settings, -> { Telnyx::AI::
|
|
89
|
+
# @return [Telnyx::Models::AI::ObservabilityReq, nil]
|
|
90
|
+
optional :observability_settings, -> { Telnyx::AI::ObservabilityReq }
|
|
91
91
|
|
|
92
92
|
# @!attribute privacy_settings
|
|
93
93
|
#
|
|
@@ -153,7 +153,7 @@ module Telnyx
|
|
|
153
153
|
#
|
|
154
154
|
# @param messaging_settings [Telnyx::Models::AI::MessagingSettings]
|
|
155
155
|
#
|
|
156
|
-
# @param observability_settings [Telnyx::Models::AI::
|
|
156
|
+
# @param observability_settings [Telnyx::Models::AI::ObservabilityReq]
|
|
157
157
|
#
|
|
158
158
|
# @param privacy_settings [Telnyx::Models::AI::PrivacySettings]
|
|
159
159
|
#
|
|
@@ -170,45 +170,6 @@ module Telnyx
|
|
|
170
170
|
# @param widget_settings [Telnyx::Models::AI::WidgetSettings] Configuration settings for the assistant's web widget.
|
|
171
171
|
#
|
|
172
172
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
173
|
-
|
|
174
|
-
class ObservabilitySettings < Telnyx::Internal::Type::BaseModel
|
|
175
|
-
# @!attribute host
|
|
176
|
-
#
|
|
177
|
-
# @return [String, nil]
|
|
178
|
-
optional :host, String
|
|
179
|
-
|
|
180
|
-
# @!attribute public_key_ref
|
|
181
|
-
#
|
|
182
|
-
# @return [String, nil]
|
|
183
|
-
optional :public_key_ref, String
|
|
184
|
-
|
|
185
|
-
# @!attribute secret_key_ref
|
|
186
|
-
#
|
|
187
|
-
# @return [String, nil]
|
|
188
|
-
optional :secret_key_ref, String
|
|
189
|
-
|
|
190
|
-
# @!attribute status
|
|
191
|
-
#
|
|
192
|
-
# @return [Symbol, Telnyx::Models::AI::AssistantCreateParams::ObservabilitySettings::Status, nil]
|
|
193
|
-
optional :status, enum: -> { Telnyx::AI::AssistantCreateParams::ObservabilitySettings::Status }
|
|
194
|
-
|
|
195
|
-
# @!method initialize(host: nil, public_key_ref: nil, secret_key_ref: nil, status: nil)
|
|
196
|
-
# @param host [String]
|
|
197
|
-
# @param public_key_ref [String]
|
|
198
|
-
# @param secret_key_ref [String]
|
|
199
|
-
# @param status [Symbol, Telnyx::Models::AI::AssistantCreateParams::ObservabilitySettings::Status]
|
|
200
|
-
|
|
201
|
-
# @see Telnyx::Models::AI::AssistantCreateParams::ObservabilitySettings#status
|
|
202
|
-
module Status
|
|
203
|
-
extend Telnyx::Internal::Type::Enum
|
|
204
|
-
|
|
205
|
-
ENABLED = :enabled
|
|
206
|
-
DISABLED = :disabled
|
|
207
|
-
|
|
208
|
-
# @!method self.values
|
|
209
|
-
# @return [Array<Symbol>]
|
|
210
|
-
end
|
|
211
|
-
end
|
|
212
173
|
end
|
|
213
174
|
end
|
|
214
175
|
end
|
|
@@ -91,8 +91,8 @@ module Telnyx
|
|
|
91
91
|
|
|
92
92
|
# @!attribute observability_settings
|
|
93
93
|
#
|
|
94
|
-
# @return [Telnyx::Models::AI::
|
|
95
|
-
optional :observability_settings, -> { Telnyx::AI::
|
|
94
|
+
# @return [Telnyx::Models::AI::ObservabilityReq, nil]
|
|
95
|
+
optional :observability_settings, -> { Telnyx::AI::ObservabilityReq }
|
|
96
96
|
|
|
97
97
|
# @!attribute privacy_settings
|
|
98
98
|
#
|
|
@@ -167,7 +167,7 @@ module Telnyx
|
|
|
167
167
|
#
|
|
168
168
|
# @param name [String]
|
|
169
169
|
#
|
|
170
|
-
# @param observability_settings [Telnyx::Models::AI::
|
|
170
|
+
# @param observability_settings [Telnyx::Models::AI::ObservabilityReq]
|
|
171
171
|
#
|
|
172
172
|
# @param privacy_settings [Telnyx::Models::AI::PrivacySettings]
|
|
173
173
|
#
|
|
@@ -186,45 +186,6 @@ module Telnyx
|
|
|
186
186
|
# @param widget_settings [Telnyx::Models::AI::WidgetSettings] Configuration settings for the assistant's web widget.
|
|
187
187
|
#
|
|
188
188
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
189
|
-
|
|
190
|
-
class ObservabilitySettings < Telnyx::Internal::Type::BaseModel
|
|
191
|
-
# @!attribute host
|
|
192
|
-
#
|
|
193
|
-
# @return [String, nil]
|
|
194
|
-
optional :host, String
|
|
195
|
-
|
|
196
|
-
# @!attribute public_key_ref
|
|
197
|
-
#
|
|
198
|
-
# @return [String, nil]
|
|
199
|
-
optional :public_key_ref, String
|
|
200
|
-
|
|
201
|
-
# @!attribute secret_key_ref
|
|
202
|
-
#
|
|
203
|
-
# @return [String, nil]
|
|
204
|
-
optional :secret_key_ref, String
|
|
205
|
-
|
|
206
|
-
# @!attribute status
|
|
207
|
-
#
|
|
208
|
-
# @return [Symbol, Telnyx::Models::AI::AssistantUpdateParams::ObservabilitySettings::Status, nil]
|
|
209
|
-
optional :status, enum: -> { Telnyx::AI::AssistantUpdateParams::ObservabilitySettings::Status }
|
|
210
|
-
|
|
211
|
-
# @!method initialize(host: nil, public_key_ref: nil, secret_key_ref: nil, status: nil)
|
|
212
|
-
# @param host [String]
|
|
213
|
-
# @param public_key_ref [String]
|
|
214
|
-
# @param secret_key_ref [String]
|
|
215
|
-
# @param status [Symbol, Telnyx::Models::AI::AssistantUpdateParams::ObservabilitySettings::Status]
|
|
216
|
-
|
|
217
|
-
# @see Telnyx::Models::AI::AssistantUpdateParams::ObservabilitySettings#status
|
|
218
|
-
module Status
|
|
219
|
-
extend Telnyx::Internal::Type::Enum
|
|
220
|
-
|
|
221
|
-
ENABLED = :enabled
|
|
222
|
-
DISABLED = :disabled
|
|
223
|
-
|
|
224
|
-
# @!method self.values
|
|
225
|
-
# @return [Array<Symbol>]
|
|
226
|
-
end
|
|
227
|
-
end
|
|
228
189
|
end
|
|
229
190
|
end
|
|
230
191
|
end
|
|
@@ -83,8 +83,8 @@ module Telnyx
|
|
|
83
83
|
|
|
84
84
|
# @!attribute observability_settings
|
|
85
85
|
#
|
|
86
|
-
# @return [Telnyx::Models::AI::
|
|
87
|
-
optional :observability_settings, -> { Telnyx::AI::
|
|
86
|
+
# @return [Telnyx::Models::AI::ObservabilityReq, nil]
|
|
87
|
+
optional :observability_settings, -> { Telnyx::AI::ObservabilityReq }
|
|
88
88
|
|
|
89
89
|
# @!attribute privacy_settings
|
|
90
90
|
#
|
|
@@ -150,7 +150,7 @@ module Telnyx
|
|
|
150
150
|
#
|
|
151
151
|
# @param name [String]
|
|
152
152
|
#
|
|
153
|
-
# @param observability_settings [Telnyx::Models::AI::
|
|
153
|
+
# @param observability_settings [Telnyx::Models::AI::ObservabilityReq]
|
|
154
154
|
#
|
|
155
155
|
# @param privacy_settings [Telnyx::Models::AI::PrivacySettings]
|
|
156
156
|
#
|
|
@@ -165,46 +165,6 @@ module Telnyx
|
|
|
165
165
|
# @param voice_settings [Telnyx::Models::AI::VoiceSettings]
|
|
166
166
|
#
|
|
167
167
|
# @param widget_settings [Telnyx::Models::AI::WidgetSettings] Configuration settings for the assistant's web widget.
|
|
168
|
-
|
|
169
|
-
# @see Telnyx::Models::AI::Assistants::UpdateAssistant#observability_settings
|
|
170
|
-
class ObservabilitySettings < Telnyx::Internal::Type::BaseModel
|
|
171
|
-
# @!attribute host
|
|
172
|
-
#
|
|
173
|
-
# @return [String, nil]
|
|
174
|
-
optional :host, String
|
|
175
|
-
|
|
176
|
-
# @!attribute public_key_ref
|
|
177
|
-
#
|
|
178
|
-
# @return [String, nil]
|
|
179
|
-
optional :public_key_ref, String
|
|
180
|
-
|
|
181
|
-
# @!attribute secret_key_ref
|
|
182
|
-
#
|
|
183
|
-
# @return [String, nil]
|
|
184
|
-
optional :secret_key_ref, String
|
|
185
|
-
|
|
186
|
-
# @!attribute status
|
|
187
|
-
#
|
|
188
|
-
# @return [Symbol, Telnyx::Models::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status, nil]
|
|
189
|
-
optional :status, enum: -> { Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status }
|
|
190
|
-
|
|
191
|
-
# @!method initialize(host: nil, public_key_ref: nil, secret_key_ref: nil, status: nil)
|
|
192
|
-
# @param host [String]
|
|
193
|
-
# @param public_key_ref [String]
|
|
194
|
-
# @param secret_key_ref [String]
|
|
195
|
-
# @param status [Symbol, Telnyx::Models::AI::Assistants::UpdateAssistant::ObservabilitySettings::Status]
|
|
196
|
-
|
|
197
|
-
# @see Telnyx::Models::AI::Assistants::UpdateAssistant::ObservabilitySettings#status
|
|
198
|
-
module Status
|
|
199
|
-
extend Telnyx::Internal::Type::Enum
|
|
200
|
-
|
|
201
|
-
ENABLED = :enabled
|
|
202
|
-
DISABLED = :disabled
|
|
203
|
-
|
|
204
|
-
# @!method self.values
|
|
205
|
-
# @return [Array<Symbol>]
|
|
206
|
-
end
|
|
207
|
-
end
|
|
208
168
|
end
|
|
209
169
|
end
|
|
210
170
|
|
|
@@ -86,9 +86,9 @@ module Telnyx
|
|
|
86
86
|
|
|
87
87
|
variant Telnyx::Internal::Type::Boolean
|
|
88
88
|
|
|
89
|
-
variant -> { Telnyx::Models::AI::ConversationAddMessageParams::Metadata::
|
|
89
|
+
variant -> { Telnyx::Models::AI::ConversationAddMessageParams::Metadata::MetadataArrayValueArray }
|
|
90
90
|
|
|
91
|
-
module
|
|
91
|
+
module MetadataArrayValue
|
|
92
92
|
extend Telnyx::Internal::Type::Union
|
|
93
93
|
|
|
94
94
|
variant String
|
|
@@ -105,9 +105,9 @@ module Telnyx
|
|
|
105
105
|
# @return [Array(String, Integer, Boolean, Array<String, Integer, Boolean>)]
|
|
106
106
|
|
|
107
107
|
# @type [Telnyx::Internal::Type::Converter]
|
|
108
|
-
|
|
108
|
+
MetadataArrayValueArray =
|
|
109
109
|
Telnyx::Internal::Type::ArrayOf[union: -> {
|
|
110
|
-
Telnyx::AI::ConversationAddMessageParams::Metadata::
|
|
110
|
+
Telnyx::AI::ConversationAddMessageParams::Metadata::MetadataArrayValue
|
|
111
111
|
}]
|
|
112
112
|
end
|
|
113
113
|
|
|
@@ -98,8 +98,8 @@ module Telnyx
|
|
|
98
98
|
|
|
99
99
|
# @!attribute observability_settings
|
|
100
100
|
#
|
|
101
|
-
# @return [Telnyx::Models::AI::
|
|
102
|
-
optional :observability_settings, -> { Telnyx::AI::
|
|
101
|
+
# @return [Telnyx::Models::AI::Observability, nil]
|
|
102
|
+
optional :observability_settings, -> { Telnyx::AI::Observability }
|
|
103
103
|
|
|
104
104
|
# @!attribute privacy_settings
|
|
105
105
|
#
|
|
@@ -166,7 +166,7 @@ module Telnyx
|
|
|
166
166
|
#
|
|
167
167
|
# @param messaging_settings [Telnyx::Models::AI::MessagingSettings]
|
|
168
168
|
#
|
|
169
|
-
# @param observability_settings [Telnyx::Models::AI::
|
|
169
|
+
# @param observability_settings [Telnyx::Models::AI::Observability]
|
|
170
170
|
#
|
|
171
171
|
# @param privacy_settings [Telnyx::Models::AI::PrivacySettings]
|
|
172
172
|
#
|
|
@@ -179,46 +179,6 @@ module Telnyx
|
|
|
179
179
|
# @param voice_settings [Telnyx::Models::AI::VoiceSettings]
|
|
180
180
|
#
|
|
181
181
|
# @param widget_settings [Telnyx::Models::AI::WidgetSettings] Configuration settings for the assistant's web widget.
|
|
182
|
-
|
|
183
|
-
# @see Telnyx::Models::AI::InferenceEmbedding#observability_settings
|
|
184
|
-
class ObservabilitySettings < Telnyx::Internal::Type::BaseModel
|
|
185
|
-
# @!attribute host
|
|
186
|
-
#
|
|
187
|
-
# @return [String, nil]
|
|
188
|
-
optional :host, String
|
|
189
|
-
|
|
190
|
-
# @!attribute public_key_ref
|
|
191
|
-
#
|
|
192
|
-
# @return [String, nil]
|
|
193
|
-
optional :public_key_ref, String
|
|
194
|
-
|
|
195
|
-
# @!attribute secret_key_ref
|
|
196
|
-
#
|
|
197
|
-
# @return [String, nil]
|
|
198
|
-
optional :secret_key_ref, String
|
|
199
|
-
|
|
200
|
-
# @!attribute status
|
|
201
|
-
#
|
|
202
|
-
# @return [Symbol, Telnyx::Models::AI::InferenceEmbedding::ObservabilitySettings::Status, nil]
|
|
203
|
-
optional :status, enum: -> { Telnyx::AI::InferenceEmbedding::ObservabilitySettings::Status }
|
|
204
|
-
|
|
205
|
-
# @!method initialize(host: nil, public_key_ref: nil, secret_key_ref: nil, status: nil)
|
|
206
|
-
# @param host [String]
|
|
207
|
-
# @param public_key_ref [String]
|
|
208
|
-
# @param secret_key_ref [String]
|
|
209
|
-
# @param status [Symbol, Telnyx::Models::AI::InferenceEmbedding::ObservabilitySettings::Status]
|
|
210
|
-
|
|
211
|
-
# @see Telnyx::Models::AI::InferenceEmbedding::ObservabilitySettings#status
|
|
212
|
-
module Status
|
|
213
|
-
extend Telnyx::Internal::Type::Enum
|
|
214
|
-
|
|
215
|
-
ENABLED = :enabled
|
|
216
|
-
DISABLED = :disabled
|
|
217
|
-
|
|
218
|
-
# @!method self.values
|
|
219
|
-
# @return [Array<Symbol>]
|
|
220
|
-
end
|
|
221
|
-
end
|
|
222
182
|
end
|
|
223
183
|
end
|
|
224
184
|
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module AI
|
|
6
|
+
class Observability < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute host
|
|
8
|
+
#
|
|
9
|
+
# @return [String, nil]
|
|
10
|
+
optional :host, String
|
|
11
|
+
|
|
12
|
+
# @!attribute public_key_ref
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :public_key_ref, String
|
|
16
|
+
|
|
17
|
+
# @!attribute secret_key_ref
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :secret_key_ref, String
|
|
21
|
+
|
|
22
|
+
# @!attribute status
|
|
23
|
+
#
|
|
24
|
+
# @return [Symbol, Telnyx::Models::AI::Observability::Status, nil]
|
|
25
|
+
optional :status, enum: -> { Telnyx::AI::Observability::Status }
|
|
26
|
+
|
|
27
|
+
# @!method initialize(host: nil, public_key_ref: nil, secret_key_ref: nil, status: nil)
|
|
28
|
+
# @param host [String]
|
|
29
|
+
# @param public_key_ref [String]
|
|
30
|
+
# @param secret_key_ref [String]
|
|
31
|
+
# @param status [Symbol, Telnyx::Models::AI::Observability::Status]
|
|
32
|
+
|
|
33
|
+
# @see Telnyx::Models::AI::Observability#status
|
|
34
|
+
module Status
|
|
35
|
+
extend Telnyx::Internal::Type::Enum
|
|
36
|
+
|
|
37
|
+
ENABLED = :enabled
|
|
38
|
+
DISABLED = :disabled
|
|
39
|
+
|
|
40
|
+
# @!method self.values
|
|
41
|
+
# @return [Array<Symbol>]
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module AI
|
|
6
|
+
class ObservabilityReq < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute host
|
|
8
|
+
#
|
|
9
|
+
# @return [String, nil]
|
|
10
|
+
optional :host, String
|
|
11
|
+
|
|
12
|
+
# @!attribute public_key_ref
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :public_key_ref, String
|
|
16
|
+
|
|
17
|
+
# @!attribute secret_key_ref
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :secret_key_ref, String
|
|
21
|
+
|
|
22
|
+
# @!attribute status
|
|
23
|
+
#
|
|
24
|
+
# @return [Symbol, Telnyx::Models::AI::ObservabilityReq::Status, nil]
|
|
25
|
+
optional :status, enum: -> { Telnyx::AI::ObservabilityReq::Status }
|
|
26
|
+
|
|
27
|
+
# @!method initialize(host: nil, public_key_ref: nil, secret_key_ref: nil, status: nil)
|
|
28
|
+
# @param host [String]
|
|
29
|
+
# @param public_key_ref [String]
|
|
30
|
+
# @param secret_key_ref [String]
|
|
31
|
+
# @param status [Symbol, Telnyx::Models::AI::ObservabilityReq::Status]
|
|
32
|
+
|
|
33
|
+
# @see Telnyx::Models::AI::ObservabilityReq#status
|
|
34
|
+
module Status
|
|
35
|
+
extend Telnyx::Internal::Type::Enum
|
|
36
|
+
|
|
37
|
+
ENABLED = :enabled
|
|
38
|
+
DISABLED = :disabled
|
|
39
|
+
|
|
40
|
+
# @!method self.values
|
|
41
|
+
# @return [Array<Symbol>]
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|