telnyx 5.122.0 → 5.124.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 +28 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +5 -0
- data/lib/telnyx/models/ai/assistant_create_params.rb +780 -1
- data/lib/telnyx/models/ai/assistant_update_params.rb +780 -1
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +785 -1
- data/lib/telnyx/models/ai/inference_embedding.rb +767 -1
- data/lib/telnyx/models/{ai_create_response_params.rb → ai_create_response_deprecated_params.rb} +2 -2
- data/lib/telnyx/models/{ai_create_response_response.rb → ai_create_response_deprecated_response.rb} +1 -1
- data/lib/telnyx/models/messaging_profile_update_params.rb +9 -1
- data/lib/telnyx/models/sip_registration_status_retrieve_params.rb +45 -0
- data/lib/telnyx/models/sip_registration_status_retrieve_response.rb +160 -0
- data/lib/telnyx/models/speech_to_text_list_providers_params.rb +16 -5
- data/lib/telnyx/models/speech_to_text_list_providers_response.rb +55 -23
- data/lib/telnyx/models.rb +3 -1
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
- data/lib/telnyx/resources/ai/assistants.rb +6 -2
- data/lib/telnyx/resources/ai.rb +4 -4
- data/lib/telnyx/resources/messaging_profiles.rb +3 -1
- data/lib/telnyx/resources/sip_registration_status.rb +45 -0
- data/lib/telnyx/resources/speech_to_text.rb +6 -5
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +5 -2
- data/rbi/telnyx/client.rbi +4 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +1411 -0
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +1411 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +1417 -0
- data/rbi/telnyx/models/ai/inference_embedding.rbi +1454 -0
- data/rbi/telnyx/models/{ai_create_response_params.rbi → ai_create_response_deprecated_params.rbi} +5 -2
- data/rbi/telnyx/models/{ai_create_response_response.rbi → ai_create_response_deprecated_response.rbi} +1 -1
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +8 -0
- data/rbi/telnyx/models/sip_registration_status_retrieve_params.rbi +93 -0
- data/rbi/telnyx/models/sip_registration_status_retrieve_response.rbi +343 -0
- data/rbi/telnyx/models/speech_to_text_list_providers_params.rbi +27 -7
- data/rbi/telnyx/models/speech_to_text_list_providers_response.rbi +107 -43
- data/rbi/telnyx/models.rbi +5 -1
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +8 -0
- data/rbi/telnyx/resources/ai/assistants.rbi +16 -0
- data/rbi/telnyx/resources/ai.rbi +1 -1
- data/rbi/telnyx/resources/messaging_profiles.rbi +3 -0
- data/rbi/telnyx/resources/sip_registration_status.rbi +34 -0
- data/rbi/telnyx/resources/speech_to_text.rbi +11 -5
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +508 -0
- data/sig/telnyx/models/ai/assistant_update_params.rbs +508 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +511 -0
- data/sig/telnyx/models/ai/inference_embedding.rbs +526 -0
- data/sig/telnyx/models/{ai_create_response_params.rbs → ai_create_response_deprecated_params.rbs} +2 -2
- data/sig/telnyx/models/ai_create_response_deprecated_response.rbs +7 -0
- data/sig/telnyx/models/messaging_profile_update_params.rbs +5 -0
- data/sig/telnyx/models/sip_registration_status_retrieve_params.rbs +41 -0
- data/sig/telnyx/models/sip_registration_status_retrieve_response.rbs +164 -0
- data/sig/telnyx/models/speech_to_text_list_providers_params.rbs +4 -4
- data/sig/telnyx/models/speech_to_text_list_providers_response.rbs +33 -16
- data/sig/telnyx/models.rbs +3 -1
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +2 -0
- data/sig/telnyx/resources/ai.rbs +2 -2
- data/sig/telnyx/resources/messaging_profiles.rbs +1 -0
- data/sig/telnyx/resources/sip_registration_status.rbs +13 -0
- metadata +17 -8
- data/sig/telnyx/models/ai_create_response_response.rbs +0 -7
|
@@ -5,6 +5,7 @@ module Telnyx
|
|
|
5
5
|
{
|
|
6
6
|
instructions: String,
|
|
7
7
|
name: String,
|
|
8
|
+
conversation_flow: Telnyx::AI::AssistantCreateParams::ConversationFlow,
|
|
8
9
|
description: String,
|
|
9
10
|
dynamic_variables: ::Hash[Symbol, top],
|
|
10
11
|
dynamic_variables_webhook_timeout_ms: Integer,
|
|
@@ -41,6 +42,12 @@ module Telnyx
|
|
|
41
42
|
|
|
42
43
|
attr_accessor name: String
|
|
43
44
|
|
|
45
|
+
attr_reader conversation_flow: Telnyx::AI::AssistantCreateParams::ConversationFlow?
|
|
46
|
+
|
|
47
|
+
def conversation_flow=: (
|
|
48
|
+
Telnyx::AI::AssistantCreateParams::ConversationFlow
|
|
49
|
+
) -> Telnyx::AI::AssistantCreateParams::ConversationFlow
|
|
50
|
+
|
|
44
51
|
attr_reader description: String?
|
|
45
52
|
|
|
46
53
|
def description=: (String) -> String
|
|
@@ -176,6 +183,7 @@ module Telnyx
|
|
|
176
183
|
def initialize: (
|
|
177
184
|
instructions: String,
|
|
178
185
|
name: String,
|
|
186
|
+
?conversation_flow: Telnyx::AI::AssistantCreateParams::ConversationFlow,
|
|
179
187
|
?description: String,
|
|
180
188
|
?dynamic_variables: ::Hash[Symbol, top],
|
|
181
189
|
?dynamic_variables_webhook_timeout_ms: Integer,
|
|
@@ -207,6 +215,7 @@ module Telnyx
|
|
|
207
215
|
def to_hash: -> {
|
|
208
216
|
instructions: String,
|
|
209
217
|
name: String,
|
|
218
|
+
conversation_flow: Telnyx::AI::AssistantCreateParams::ConversationFlow,
|
|
210
219
|
description: String,
|
|
211
220
|
dynamic_variables: ::Hash[Symbol, top],
|
|
212
221
|
dynamic_variables_webhook_timeout_ms: Integer,
|
|
@@ -234,6 +243,505 @@ module Telnyx
|
|
|
234
243
|
widget_settings: Telnyx::AI::WidgetSettings,
|
|
235
244
|
request_options: Telnyx::RequestOptions
|
|
236
245
|
}
|
|
246
|
+
|
|
247
|
+
type conversation_flow =
|
|
248
|
+
{
|
|
249
|
+
nodes: ::Array[Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::node],
|
|
250
|
+
start_node_id: String,
|
|
251
|
+
edges: ::Array[Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge]
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
class ConversationFlow < Telnyx::Internal::Type::BaseModel
|
|
255
|
+
attr_accessor nodes: ::Array[Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::node]
|
|
256
|
+
|
|
257
|
+
attr_accessor start_node_id: String
|
|
258
|
+
|
|
259
|
+
attr_reader edges: ::Array[Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge]?
|
|
260
|
+
|
|
261
|
+
def edges=: (
|
|
262
|
+
::Array[Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge]
|
|
263
|
+
) -> ::Array[Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge]
|
|
264
|
+
|
|
265
|
+
def initialize: (
|
|
266
|
+
nodes: ::Array[Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::node],
|
|
267
|
+
start_node_id: String,
|
|
268
|
+
?edges: ::Array[Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge]
|
|
269
|
+
) -> void
|
|
270
|
+
|
|
271
|
+
def to_hash: -> {
|
|
272
|
+
nodes: ::Array[Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::node],
|
|
273
|
+
start_node_id: String,
|
|
274
|
+
edges: ::Array[Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge]
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
type node =
|
|
278
|
+
Telnyx::AI::AssistantCreateParams::ConversationFlow::Node::Prompt
|
|
279
|
+
| Telnyx::AI::AssistantCreateParams::ConversationFlow::Node::Tool
|
|
280
|
+
|
|
281
|
+
module Node
|
|
282
|
+
extend Telnyx::Internal::Type::Union
|
|
283
|
+
|
|
284
|
+
type prompt =
|
|
285
|
+
{
|
|
286
|
+
id: String,
|
|
287
|
+
instructions: String,
|
|
288
|
+
external_llm: Telnyx::AI::ExternalLlmReq,
|
|
289
|
+
instructions_mode: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::instructions_mode,
|
|
290
|
+
llm_api_key_ref: String,
|
|
291
|
+
model: String,
|
|
292
|
+
name: String,
|
|
293
|
+
position: Telnyx::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::Position,
|
|
294
|
+
shared_tool_ids: ::Array[String],
|
|
295
|
+
tools_mode: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::tools_mode,
|
|
296
|
+
transcription: Telnyx::AI::TranscriptionSettings,
|
|
297
|
+
type: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::type_,
|
|
298
|
+
voice_settings: Telnyx::AI::VoiceSettings
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
class Prompt < Telnyx::Internal::Type::BaseModel
|
|
302
|
+
attr_accessor id: String
|
|
303
|
+
|
|
304
|
+
attr_accessor instructions: String
|
|
305
|
+
|
|
306
|
+
attr_reader external_llm: Telnyx::AI::ExternalLlmReq?
|
|
307
|
+
|
|
308
|
+
def external_llm=: (
|
|
309
|
+
Telnyx::AI::ExternalLlmReq
|
|
310
|
+
) -> Telnyx::AI::ExternalLlmReq
|
|
311
|
+
|
|
312
|
+
attr_reader instructions_mode: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::instructions_mode?
|
|
313
|
+
|
|
314
|
+
def instructions_mode=: (
|
|
315
|
+
Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::instructions_mode
|
|
316
|
+
) -> Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::instructions_mode
|
|
317
|
+
|
|
318
|
+
attr_reader llm_api_key_ref: String?
|
|
319
|
+
|
|
320
|
+
def llm_api_key_ref=: (String) -> String
|
|
321
|
+
|
|
322
|
+
attr_reader model: String?
|
|
323
|
+
|
|
324
|
+
def model=: (String) -> String
|
|
325
|
+
|
|
326
|
+
attr_reader name: String?
|
|
327
|
+
|
|
328
|
+
def name=: (String) -> String
|
|
329
|
+
|
|
330
|
+
attr_reader position: Telnyx::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::Position?
|
|
331
|
+
|
|
332
|
+
def position=: (
|
|
333
|
+
Telnyx::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::Position
|
|
334
|
+
) -> Telnyx::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::Position
|
|
335
|
+
|
|
336
|
+
attr_reader shared_tool_ids: ::Array[String]?
|
|
337
|
+
|
|
338
|
+
def shared_tool_ids=: (::Array[String]) -> ::Array[String]
|
|
339
|
+
|
|
340
|
+
attr_reader tools_mode: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::tools_mode?
|
|
341
|
+
|
|
342
|
+
def tools_mode=: (
|
|
343
|
+
Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::tools_mode
|
|
344
|
+
) -> Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::tools_mode
|
|
345
|
+
|
|
346
|
+
attr_reader transcription: Telnyx::AI::TranscriptionSettings?
|
|
347
|
+
|
|
348
|
+
def transcription=: (
|
|
349
|
+
Telnyx::AI::TranscriptionSettings
|
|
350
|
+
) -> Telnyx::AI::TranscriptionSettings
|
|
351
|
+
|
|
352
|
+
attr_reader type: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::type_?
|
|
353
|
+
|
|
354
|
+
def type=: (
|
|
355
|
+
Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::type_
|
|
356
|
+
) -> Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::type_
|
|
357
|
+
|
|
358
|
+
attr_reader voice_settings: Telnyx::AI::VoiceSettings?
|
|
359
|
+
|
|
360
|
+
def voice_settings=: (
|
|
361
|
+
Telnyx::AI::VoiceSettings
|
|
362
|
+
) -> Telnyx::AI::VoiceSettings
|
|
363
|
+
|
|
364
|
+
def initialize: (
|
|
365
|
+
id: String,
|
|
366
|
+
instructions: String,
|
|
367
|
+
?external_llm: Telnyx::AI::ExternalLlmReq,
|
|
368
|
+
?instructions_mode: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::instructions_mode,
|
|
369
|
+
?llm_api_key_ref: String,
|
|
370
|
+
?model: String,
|
|
371
|
+
?name: String,
|
|
372
|
+
?position: Telnyx::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::Position,
|
|
373
|
+
?shared_tool_ids: ::Array[String],
|
|
374
|
+
?tools_mode: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::tools_mode,
|
|
375
|
+
?transcription: Telnyx::AI::TranscriptionSettings,
|
|
376
|
+
?type: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::type_,
|
|
377
|
+
?voice_settings: Telnyx::AI::VoiceSettings
|
|
378
|
+
) -> void
|
|
379
|
+
|
|
380
|
+
def to_hash: -> {
|
|
381
|
+
id: String,
|
|
382
|
+
instructions: String,
|
|
383
|
+
external_llm: Telnyx::AI::ExternalLlmReq,
|
|
384
|
+
instructions_mode: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::instructions_mode,
|
|
385
|
+
llm_api_key_ref: String,
|
|
386
|
+
model: String,
|
|
387
|
+
name: String,
|
|
388
|
+
position: Telnyx::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::Position,
|
|
389
|
+
shared_tool_ids: ::Array[String],
|
|
390
|
+
tools_mode: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::tools_mode,
|
|
391
|
+
transcription: Telnyx::AI::TranscriptionSettings,
|
|
392
|
+
type: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::type_,
|
|
393
|
+
voice_settings: Telnyx::AI::VoiceSettings
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
type instructions_mode = :replace | :append
|
|
397
|
+
|
|
398
|
+
module InstructionsMode
|
|
399
|
+
extend Telnyx::Internal::Type::Enum
|
|
400
|
+
|
|
401
|
+
REPLACE: :replace
|
|
402
|
+
APPEND: :append
|
|
403
|
+
|
|
404
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::instructions_mode]
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
type position = { x: Float, y_: Float }
|
|
408
|
+
|
|
409
|
+
class Position < Telnyx::Internal::Type::BaseModel
|
|
410
|
+
attr_accessor x: Float
|
|
411
|
+
|
|
412
|
+
attr_accessor y_: Float
|
|
413
|
+
|
|
414
|
+
def initialize: (x: Float, y_: Float) -> void
|
|
415
|
+
|
|
416
|
+
def to_hash: -> { x: Float, y_: Float }
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
type tools_mode = :replace | :append
|
|
420
|
+
|
|
421
|
+
module ToolsMode
|
|
422
|
+
extend Telnyx::Internal::Type::Enum
|
|
423
|
+
|
|
424
|
+
REPLACE: :replace
|
|
425
|
+
APPEND: :append
|
|
426
|
+
|
|
427
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::tools_mode]
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
type type_ = :prompt
|
|
431
|
+
|
|
432
|
+
module Type
|
|
433
|
+
extend Telnyx::Internal::Type::Enum
|
|
434
|
+
|
|
435
|
+
PROMPT: :prompt
|
|
436
|
+
|
|
437
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Prompt::type_]
|
|
438
|
+
end
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
type tool =
|
|
442
|
+
{
|
|
443
|
+
id: String,
|
|
444
|
+
shared_tool_id: String,
|
|
445
|
+
name: String,
|
|
446
|
+
position: Telnyx::AI::AssistantCreateParams::ConversationFlow::Node::Tool::Position,
|
|
447
|
+
type: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Tool::type_
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
class Tool < Telnyx::Internal::Type::BaseModel
|
|
451
|
+
attr_accessor id: String
|
|
452
|
+
|
|
453
|
+
attr_accessor shared_tool_id: String
|
|
454
|
+
|
|
455
|
+
attr_reader name: String?
|
|
456
|
+
|
|
457
|
+
def name=: (String) -> String
|
|
458
|
+
|
|
459
|
+
attr_reader position: Telnyx::AI::AssistantCreateParams::ConversationFlow::Node::Tool::Position?
|
|
460
|
+
|
|
461
|
+
def position=: (
|
|
462
|
+
Telnyx::AI::AssistantCreateParams::ConversationFlow::Node::Tool::Position
|
|
463
|
+
) -> Telnyx::AI::AssistantCreateParams::ConversationFlow::Node::Tool::Position
|
|
464
|
+
|
|
465
|
+
attr_reader type: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Tool::type_?
|
|
466
|
+
|
|
467
|
+
def type=: (
|
|
468
|
+
Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Tool::type_
|
|
469
|
+
) -> Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Tool::type_
|
|
470
|
+
|
|
471
|
+
def initialize: (
|
|
472
|
+
id: String,
|
|
473
|
+
shared_tool_id: String,
|
|
474
|
+
?name: String,
|
|
475
|
+
?position: Telnyx::AI::AssistantCreateParams::ConversationFlow::Node::Tool::Position,
|
|
476
|
+
?type: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Tool::type_
|
|
477
|
+
) -> void
|
|
478
|
+
|
|
479
|
+
def to_hash: -> {
|
|
480
|
+
id: String,
|
|
481
|
+
shared_tool_id: String,
|
|
482
|
+
name: String,
|
|
483
|
+
position: Telnyx::AI::AssistantCreateParams::ConversationFlow::Node::Tool::Position,
|
|
484
|
+
type: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Tool::type_
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
type position = { x: Float, y_: Float }
|
|
488
|
+
|
|
489
|
+
class Position < Telnyx::Internal::Type::BaseModel
|
|
490
|
+
attr_accessor x: Float
|
|
491
|
+
|
|
492
|
+
attr_accessor y_: Float
|
|
493
|
+
|
|
494
|
+
def initialize: (x: Float, y_: Float) -> void
|
|
495
|
+
|
|
496
|
+
def to_hash: -> { x: Float, y_: Float }
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
type type_ = :tool
|
|
500
|
+
|
|
501
|
+
module Type
|
|
502
|
+
extend Telnyx::Internal::Type::Enum
|
|
503
|
+
|
|
504
|
+
TOOL: :tool
|
|
505
|
+
|
|
506
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Tool::type_]
|
|
507
|
+
end
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
def self?.variants: -> ::Array[Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::node]
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
type edge =
|
|
514
|
+
{
|
|
515
|
+
id: String,
|
|
516
|
+
condition: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::condition,
|
|
517
|
+
start_node_id: String,
|
|
518
|
+
target: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::target
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
class Edge < Telnyx::Internal::Type::BaseModel
|
|
522
|
+
attr_accessor id: String
|
|
523
|
+
|
|
524
|
+
attr_accessor condition: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::condition
|
|
525
|
+
|
|
526
|
+
attr_accessor start_node_id: String
|
|
527
|
+
|
|
528
|
+
attr_accessor target: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::target
|
|
529
|
+
|
|
530
|
+
def initialize: (
|
|
531
|
+
id: String,
|
|
532
|
+
condition: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::condition,
|
|
533
|
+
start_node_id: String,
|
|
534
|
+
target: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::target
|
|
535
|
+
) -> void
|
|
536
|
+
|
|
537
|
+
def to_hash: -> {
|
|
538
|
+
id: String,
|
|
539
|
+
condition: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::condition,
|
|
540
|
+
start_node_id: String,
|
|
541
|
+
target: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::target
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
type condition =
|
|
545
|
+
Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge::Condition::Llm
|
|
546
|
+
| Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge::Condition::Expression
|
|
547
|
+
|
|
548
|
+
module Condition
|
|
549
|
+
extend Telnyx::Internal::Type::Union
|
|
550
|
+
|
|
551
|
+
type llm = { prompt: String, type: :llm }
|
|
552
|
+
|
|
553
|
+
class Llm < Telnyx::Internal::Type::BaseModel
|
|
554
|
+
attr_accessor prompt: String
|
|
555
|
+
|
|
556
|
+
attr_accessor type: :llm
|
|
557
|
+
|
|
558
|
+
def initialize: (prompt: String, ?type: :llm) -> void
|
|
559
|
+
|
|
560
|
+
def to_hash: -> { prompt: String, type: :llm }
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
type expression =
|
|
564
|
+
{
|
|
565
|
+
expression: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::Condition::Expression::expression,
|
|
566
|
+
type: :expression
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
class Expression < Telnyx::Internal::Type::BaseModel
|
|
570
|
+
attr_accessor expression: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::Condition::Expression::expression
|
|
571
|
+
|
|
572
|
+
attr_accessor type: :expression
|
|
573
|
+
|
|
574
|
+
def initialize: (
|
|
575
|
+
expression: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::Condition::Expression::expression,
|
|
576
|
+
?type: :expression
|
|
577
|
+
) -> void
|
|
578
|
+
|
|
579
|
+
def to_hash: -> {
|
|
580
|
+
expression: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::Condition::Expression::expression,
|
|
581
|
+
type: :expression
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
type expression =
|
|
585
|
+
top
|
|
586
|
+
| Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge::Condition::Expression::Expression::DynamicVariableExpression
|
|
587
|
+
| Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge::Condition::Expression::Expression::StringLiteralExpression
|
|
588
|
+
| Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge::Condition::Expression::Expression::NumberLiteralExpression
|
|
589
|
+
| Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge::Condition::Expression::Expression::BooleanLiteralExpression
|
|
590
|
+
|
|
591
|
+
module Expression
|
|
592
|
+
extend Telnyx::Internal::Type::Union
|
|
593
|
+
|
|
594
|
+
type dynamic_variable_expression =
|
|
595
|
+
{ name: String, type: :variable }
|
|
596
|
+
|
|
597
|
+
class DynamicVariableExpression < Telnyx::Internal::Type::BaseModel
|
|
598
|
+
attr_accessor name: String
|
|
599
|
+
|
|
600
|
+
attr_accessor type: :variable
|
|
601
|
+
|
|
602
|
+
def initialize: (name: String, ?type: :variable) -> void
|
|
603
|
+
|
|
604
|
+
def to_hash: -> { name: String, type: :variable }
|
|
605
|
+
end
|
|
606
|
+
|
|
607
|
+
type string_literal_expression =
|
|
608
|
+
{ type: :string_literal, value: String }
|
|
609
|
+
|
|
610
|
+
class StringLiteralExpression < Telnyx::Internal::Type::BaseModel
|
|
611
|
+
attr_accessor type: :string_literal
|
|
612
|
+
|
|
613
|
+
attr_accessor value: String
|
|
614
|
+
|
|
615
|
+
def initialize: (
|
|
616
|
+
value: String,
|
|
617
|
+
?type: :string_literal
|
|
618
|
+
) -> void
|
|
619
|
+
|
|
620
|
+
def to_hash: -> { type: :string_literal, value: String }
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
type number_literal_expression =
|
|
624
|
+
{ type: :number_literal, value: Float }
|
|
625
|
+
|
|
626
|
+
class NumberLiteralExpression < Telnyx::Internal::Type::BaseModel
|
|
627
|
+
attr_accessor type: :number_literal
|
|
628
|
+
|
|
629
|
+
attr_accessor value: Float
|
|
630
|
+
|
|
631
|
+
def initialize: (
|
|
632
|
+
value: Float,
|
|
633
|
+
?type: :number_literal
|
|
634
|
+
) -> void
|
|
635
|
+
|
|
636
|
+
def to_hash: -> { type: :number_literal, value: Float }
|
|
637
|
+
end
|
|
638
|
+
|
|
639
|
+
type boolean_literal_expression =
|
|
640
|
+
{ type: :bool_literal, value: bool }
|
|
641
|
+
|
|
642
|
+
class BooleanLiteralExpression < Telnyx::Internal::Type::BaseModel
|
|
643
|
+
attr_accessor type: :bool_literal
|
|
644
|
+
|
|
645
|
+
attr_accessor value: bool
|
|
646
|
+
|
|
647
|
+
def initialize: (value: bool, ?type: :bool_literal) -> void
|
|
648
|
+
|
|
649
|
+
def to_hash: -> { type: :bool_literal, value: bool }
|
|
650
|
+
end
|
|
651
|
+
|
|
652
|
+
def self?.variants: -> ::Array[Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::Condition::Expression::expression]
|
|
653
|
+
end
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
def self?.variants: -> ::Array[Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::condition]
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
type target =
|
|
660
|
+
Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge::Target::Node
|
|
661
|
+
| Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge::Target::Assistant
|
|
662
|
+
|
|
663
|
+
module Target
|
|
664
|
+
extend Telnyx::Internal::Type::Union
|
|
665
|
+
|
|
666
|
+
type node = { node_id: String, type: :node }
|
|
667
|
+
|
|
668
|
+
class Node < Telnyx::Internal::Type::BaseModel
|
|
669
|
+
attr_accessor node_id: String
|
|
670
|
+
|
|
671
|
+
attr_accessor type: :node
|
|
672
|
+
|
|
673
|
+
def initialize: (node_id: String, ?type: :node) -> void
|
|
674
|
+
|
|
675
|
+
def to_hash: -> { node_id: String, type: :node }
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
type assistant =
|
|
679
|
+
{
|
|
680
|
+
assistant_id: String,
|
|
681
|
+
type: :assistant,
|
|
682
|
+
position: Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge::Target::Assistant::Position,
|
|
683
|
+
voice_mode: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::Target::Assistant::voice_mode
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
class Assistant < Telnyx::Internal::Type::BaseModel
|
|
687
|
+
attr_accessor assistant_id: String
|
|
688
|
+
|
|
689
|
+
attr_accessor type: :assistant
|
|
690
|
+
|
|
691
|
+
attr_reader position: Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge::Target::Assistant::Position?
|
|
692
|
+
|
|
693
|
+
def position=: (
|
|
694
|
+
Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge::Target::Assistant::Position
|
|
695
|
+
) -> Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge::Target::Assistant::Position
|
|
696
|
+
|
|
697
|
+
attr_reader voice_mode: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::Target::Assistant::voice_mode?
|
|
698
|
+
|
|
699
|
+
def voice_mode=: (
|
|
700
|
+
Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::Target::Assistant::voice_mode
|
|
701
|
+
) -> Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::Target::Assistant::voice_mode
|
|
702
|
+
|
|
703
|
+
def initialize: (
|
|
704
|
+
assistant_id: String,
|
|
705
|
+
?position: Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge::Target::Assistant::Position,
|
|
706
|
+
?voice_mode: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::Target::Assistant::voice_mode,
|
|
707
|
+
?type: :assistant
|
|
708
|
+
) -> void
|
|
709
|
+
|
|
710
|
+
def to_hash: -> {
|
|
711
|
+
assistant_id: String,
|
|
712
|
+
type: :assistant,
|
|
713
|
+
position: Telnyx::AI::AssistantCreateParams::ConversationFlow::Edge::Target::Assistant::Position,
|
|
714
|
+
voice_mode: Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::Target::Assistant::voice_mode
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
type position = { x: Float, y_: Float }
|
|
718
|
+
|
|
719
|
+
class Position < Telnyx::Internal::Type::BaseModel
|
|
720
|
+
attr_accessor x: Float
|
|
721
|
+
|
|
722
|
+
attr_accessor y_: Float
|
|
723
|
+
|
|
724
|
+
def initialize: (x: Float, y_: Float) -> void
|
|
725
|
+
|
|
726
|
+
def to_hash: -> { x: Float, y_: Float }
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
type voice_mode = :unified | :distinct
|
|
730
|
+
|
|
731
|
+
module VoiceMode
|
|
732
|
+
extend Telnyx::Internal::Type::Enum
|
|
733
|
+
|
|
734
|
+
UNIFIED: :unified
|
|
735
|
+
DISTINCT: :distinct
|
|
736
|
+
|
|
737
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::Target::Assistant::voice_mode]
|
|
738
|
+
end
|
|
739
|
+
end
|
|
740
|
+
|
|
741
|
+
def self?.variants: -> ::Array[Telnyx::Models::AI::AssistantCreateParams::ConversationFlow::Edge::target]
|
|
742
|
+
end
|
|
743
|
+
end
|
|
744
|
+
end
|
|
237
745
|
end
|
|
238
746
|
end
|
|
239
747
|
end
|