falaai-api 1.21.49 → 1.21.54

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 (94) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -38
  3. data/docs/AnalysisApi.md +2 -2
  4. data/docs/DiagnosticParticipant.md +1 -1
  5. data/docs/DiagnosticRequest.md +2 -2
  6. data/docs/DiagnosticResponse.md +3 -1
  7. data/docs/Participant.md +1 -1
  8. data/docs/ParticipantDiagnostic.md +1 -1
  9. data/docs/RiskAuditRequest.md +4 -6
  10. data/docs/SpeechApi.md +3 -3
  11. data/docs/WhatsappApi.md +95 -0
  12. data/docs/WhatsappConversation.md +32 -0
  13. data/docs/WhatsappConversationsResponse.md +28 -0
  14. data/docs/WhatsappMeta.md +50 -0
  15. data/docs/WhatsappSpeaker.md +20 -0
  16. data/docs/WhatsappUsage.md +34 -0
  17. data/docs/index.html +55 -51
  18. data/docs/llms.txt +18 -0
  19. data/docs/robots.txt +4 -0
  20. data/docs/sitemap.xml +8 -0
  21. data/lib/falaai-api/api/analysis_api.rb +1 -1
  22. data/lib/falaai-api/api/email_alerts_api.rb +1 -1
  23. data/lib/falaai-api/api/health_api.rb +1 -1
  24. data/lib/falaai-api/api/speech_api.rb +5 -5
  25. data/lib/falaai-api/api/usage_api.rb +1 -1
  26. data/lib/falaai-api/api/version_api.rb +1 -1
  27. data/lib/falaai-api/api/webhooks_api.rb +1 -1
  28. data/lib/falaai-api/api/whatsapp_api.rb +132 -0
  29. data/lib/falaai-api/api_client.rb +1 -1
  30. data/lib/falaai-api/api_error.rb +1 -1
  31. data/lib/falaai-api/api_model_base.rb +1 -1
  32. data/lib/falaai-api/configuration.rb +1 -1
  33. data/lib/falaai-api/models/audio_event.rb +1 -1
  34. data/lib/falaai-api/models/audio_input_meta.rb +1 -1
  35. data/lib/falaai-api/models/create_email_alert_request.rb +1 -1
  36. data/lib/falaai-api/models/create_webhook_request.rb +1 -1
  37. data/lib/falaai-api/models/diagnostic_analysis_map.rb +1 -1
  38. data/lib/falaai-api/models/diagnostic_audio_event.rb +1 -1
  39. data/lib/falaai-api/models/diagnostic_categorical_analysis.rb +1 -1
  40. data/lib/falaai-api/models/diagnostic_participant.rb +2 -9
  41. data/lib/falaai-api/models/diagnostic_request.rb +5 -12
  42. data/lib/falaai-api/models/diagnostic_response.rb +15 -5
  43. data/lib/falaai-api/models/diagnostic_text_analysis.rb +1 -1
  44. data/lib/falaai-api/models/diagnostic_usage.rb +1 -1
  45. data/lib/falaai-api/models/email_alert_item.rb +1 -1
  46. data/lib/falaai-api/models/email_alert_list_response.rb +1 -1
  47. data/lib/falaai-api/models/email_alert_message_response.rb +1 -1
  48. data/lib/falaai-api/models/email_event.rb +1 -1
  49. data/lib/falaai-api/models/health_response.rb +1 -1
  50. data/lib/falaai-api/models/http_validation_error.rb +1 -1
  51. data/lib/falaai-api/models/location_inner.rb +1 -1
  52. data/lib/falaai-api/models/message_response.rb +1 -1
  53. data/lib/falaai-api/models/participant.rb +2 -2
  54. data/lib/falaai-api/models/participant_diagnostic.rb +2 -19
  55. data/lib/falaai-api/models/risk_audit_analysis_v2.rb +1 -1
  56. data/lib/falaai-api/models/risk_audit_applied_action_v2.rb +1 -1
  57. data/lib/falaai-api/models/risk_audit_audio_event_model_v2.rb +1 -1
  58. data/lib/falaai-api/models/risk_audit_audit_decisions_v2.rb +1 -1
  59. data/lib/falaai-api/models/risk_audit_conversation_scores_v2.rb +1 -1
  60. data/lib/falaai-api/models/risk_audit_detection_item_v2.rb +1 -1
  61. data/lib/falaai-api/models/risk_audit_detections_v2.rb +1 -1
  62. data/lib/falaai-api/models/risk_audit_indexer_v2.rb +1 -1
  63. data/lib/falaai-api/models/risk_audit_meta_v2.rb +1 -1
  64. data/lib/falaai-api/models/risk_audit_participant_v2.rb +1 -1
  65. data/lib/falaai-api/models/risk_audit_participants_v2.rb +1 -1
  66. data/lib/falaai-api/models/risk_audit_request.rb +19 -54
  67. data/lib/falaai-api/models/risk_audit_scores_v2.rb +1 -1
  68. data/lib/falaai-api/models/risk_audit_scoring_explanation_v2.rb +1 -1
  69. data/lib/falaai-api/models/risk_audit_summary_v2.rb +1 -1
  70. data/lib/falaai-api/models/risk_audit_timeline_v2.rb +1 -1
  71. data/lib/falaai-api/models/risk_audit_usage_v2.rb +1 -1
  72. data/lib/falaai-api/models/risk_audit_v2.rb +1 -1
  73. data/lib/falaai-api/models/risk_audit_v2_response.rb +1 -1
  74. data/lib/falaai-api/models/risk_audit_verdict_v2.rb +1 -1
  75. data/lib/falaai-api/models/transcription_response.rb +1 -1
  76. data/lib/falaai-api/models/transcription_usage.rb +1 -1
  77. data/lib/falaai-api/models/update_email_alert_request.rb +1 -1
  78. data/lib/falaai-api/models/update_webhook_request.rb +1 -1
  79. data/lib/falaai-api/models/usage_by_key_item.rb +1 -1
  80. data/lib/falaai-api/models/usage_log_item.rb +1 -1
  81. data/lib/falaai-api/models/usage_log_response.rb +1 -1
  82. data/lib/falaai-api/models/validation_error.rb +1 -1
  83. data/lib/falaai-api/models/version_response.rb +1 -1
  84. data/lib/falaai-api/models/webhook_event.rb +1 -1
  85. data/lib/falaai-api/models/webhook_item.rb +1 -1
  86. data/lib/falaai-api/models/webhook_list_response.rb +1 -1
  87. data/lib/falaai-api/models/whatsapp_conversation.rb +356 -0
  88. data/lib/falaai-api/models/whatsapp_conversations_response.rb +285 -0
  89. data/lib/falaai-api/models/whatsapp_meta.rb +597 -0
  90. data/lib/falaai-api/models/whatsapp_speaker.rb +192 -0
  91. data/lib/falaai-api/models/whatsapp_usage.rb +381 -0
  92. data/lib/falaai-api/version.rb +2 -2
  93. data/lib/falaai-api.rb +7 -1
  94. metadata +17 -2
data/docs/llms.txt ADDED
@@ -0,0 +1,18 @@
1
+ # FalaAI API - Ruby SDK
2
+
3
+ > Official Ruby SDK for the FalaAI API - AI-powered call transcription (speech-to-text), conversation diagnostics, and compliance/risk auditing.
4
+
5
+ ## Links
6
+ - Documentation: https://actiontecbr.github.io/falaai-api-ruby/
7
+ - Repository: https://github.com/ActionTecBr/falaai-api-ruby
8
+ - Package (RubyGems): https://rubygems.org/gems/falaai-api
9
+ - OpenAPI contract: https://api01-falaai.action.tec.br/openapi.json
10
+ - Platform: https://falaai.action.tec.br/api
11
+
12
+ ## Endpoints
13
+ - POST /v1/audio/transcriptions - transcribe a call (audio to text)
14
+ - POST /v1/analyze/diagnostic - conversation diagnosis
15
+ - POST /v1/analyze/riskAudit - compliance / risk audit
16
+ - POST /v1/whatsapp/extractConversations - extract and segment WhatsApp conversations from an export
17
+ - GET /v1/health - health check
18
+ - GET /api/version - API version
data/docs/robots.txt ADDED
@@ -0,0 +1,4 @@
1
+ User-agent: *
2
+ Allow: /
3
+
4
+ Sitemap: https://actiontecbr.github.io/falaai-api-ruby/sitemap.xml
data/docs/sitemap.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3
+ <url>
4
+ <loc>https://actiontecbr.github.io/falaai-api-ruby/</loc>
5
+ <changefreq>weekly</changefreq>
6
+ <priority>0.8</priority>
7
+ </url>
8
+ </urlset>
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -23,8 +23,8 @@ module FalaAI
23
23
  # @param file [File]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [String] :model (default to 'falaai-transcribe-1')
26
- # @option opts [String] :language (default to 'pt')
27
- # @option opts [String] :client_reference_id Optional client-supplied ID echoed verbatim in the response. Use to correlate/sync with your system. Accepted charset: [A-Za-z0-9._:-]. Not idempotency.
26
+ # @option opts [String] :language
27
+ # @option opts [String] :client_reference_id Optional client-supplied ID echoed verbatim in the response. Use to correlate/sync with your system. Accepted charset: [A-Za-z0-9 _/:.-], max 60 chars. Not idempotency.
28
28
  # @return [TranscriptionResponse]
29
29
  def create_transcription_v1_audio_transcriptions_post(file, opts = {})
30
30
  data, _status_code, _headers = create_transcription_v1_audio_transcriptions_post_with_http_info(file, opts)
@@ -35,8 +35,8 @@ module FalaAI
35
35
  # @param file [File]
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @option opts [String] :model (default to 'falaai-transcribe-1')
38
- # @option opts [String] :language (default to 'pt')
39
- # @option opts [String] :client_reference_id Optional client-supplied ID echoed verbatim in the response. Use to correlate/sync with your system. Accepted charset: [A-Za-z0-9._:-]. Not idempotency.
38
+ # @option opts [String] :language
39
+ # @option opts [String] :client_reference_id Optional client-supplied ID echoed verbatim in the response. Use to correlate/sync with your system. Accepted charset: [A-Za-z0-9 _/:.-], max 60 chars. Not idempotency.
40
40
  # @return [Array<(TranscriptionResponse, Integer, Hash)>] TranscriptionResponse data, response status code and response headers
41
41
  def create_transcription_v1_audio_transcriptions_post_with_http_info(file, opts = {})
42
42
  if @api_client.config.debugging
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -0,0 +1,132 @@
1
+ =begin
2
+ #FalaAI API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.21.54
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.25.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module FalaAI
16
+ class WhatsappApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Extract and segment WhatsApp conversations from an export
23
+ # @param file [File]
24
+ # @param start [String]
25
+ # @param _end [String]
26
+ # @param timezone [String]
27
+ # @param date_format [String]
28
+ # @param [Hash] opts the optional parameters
29
+ # @option opts [Float] :gap_minutes (default to 720)
30
+ # @option opts [Integer] :min_messages (default to 2)
31
+ # @option opts [Boolean] :voice_note Transcrever mensagens de voz/video gravadas na hora? (default to true)
32
+ # @option opts [Boolean] :expression Descrever expressoes visuais (figurinha/GIF/imagem)? (default to true)
33
+ # @option opts [String] :client_reference_id
34
+ # @return [WhatsappConversationsResponse]
35
+ def extract_conversations_v1_whatsapp_extract_conversations_post(file, start, _end, timezone, date_format, opts = {})
36
+ data, _status_code, _headers = extract_conversations_v1_whatsapp_extract_conversations_post_with_http_info(file, start, _end, timezone, date_format, opts)
37
+ data
38
+ end
39
+
40
+ # Extract and segment WhatsApp conversations from an export
41
+ # @param file [File]
42
+ # @param start [String]
43
+ # @param _end [String]
44
+ # @param timezone [String]
45
+ # @param date_format [String]
46
+ # @param [Hash] opts the optional parameters
47
+ # @option opts [Float] :gap_minutes (default to 720)
48
+ # @option opts [Integer] :min_messages (default to 2)
49
+ # @option opts [Boolean] :voice_note Transcrever mensagens de voz/video gravadas na hora? (default to true)
50
+ # @option opts [Boolean] :expression Descrever expressoes visuais (figurinha/GIF/imagem)? (default to true)
51
+ # @option opts [String] :client_reference_id
52
+ # @return [Array<(WhatsappConversationsResponse, Integer, Hash)>] WhatsappConversationsResponse data, response status code and response headers
53
+ def extract_conversations_v1_whatsapp_extract_conversations_post_with_http_info(file, start, _end, timezone, date_format, opts = {})
54
+ if @api_client.config.debugging
55
+ @api_client.config.logger.debug 'Calling API: WhatsappApi.extract_conversations_v1_whatsapp_extract_conversations_post ...'
56
+ end
57
+ # verify the required parameter 'file' is set
58
+ if @api_client.config.client_side_validation && file.nil?
59
+ fail ArgumentError, "Missing the required parameter 'file' when calling WhatsappApi.extract_conversations_v1_whatsapp_extract_conversations_post"
60
+ end
61
+ # verify the required parameter 'start' is set
62
+ if @api_client.config.client_side_validation && start.nil?
63
+ fail ArgumentError, "Missing the required parameter 'start' when calling WhatsappApi.extract_conversations_v1_whatsapp_extract_conversations_post"
64
+ end
65
+ # verify the required parameter '_end' is set
66
+ if @api_client.config.client_side_validation && _end.nil?
67
+ fail ArgumentError, "Missing the required parameter '_end' when calling WhatsappApi.extract_conversations_v1_whatsapp_extract_conversations_post"
68
+ end
69
+ # verify the required parameter 'timezone' is set
70
+ if @api_client.config.client_side_validation && timezone.nil?
71
+ fail ArgumentError, "Missing the required parameter 'timezone' when calling WhatsappApi.extract_conversations_v1_whatsapp_extract_conversations_post"
72
+ end
73
+ # verify the required parameter 'date_format' is set
74
+ if @api_client.config.client_side_validation && date_format.nil?
75
+ fail ArgumentError, "Missing the required parameter 'date_format' when calling WhatsappApi.extract_conversations_v1_whatsapp_extract_conversations_post"
76
+ end
77
+ # resource path
78
+ local_var_path = '/v1/whatsapp/extractConversations'
79
+
80
+ # query parameters
81
+ query_params = opts[:query_params] || {}
82
+
83
+ # header parameters
84
+ header_params = opts[:header_params] || {}
85
+ # HTTP header 'Accept' (if needed)
86
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
87
+ # HTTP header 'Content-Type'
88
+ content_type = @api_client.select_header_content_type(['multipart/form-data'])
89
+ if !content_type.nil?
90
+ header_params['Content-Type'] = content_type
91
+ end
92
+
93
+ # form parameters
94
+ form_params = opts[:form_params] || {}
95
+ form_params['file'] = file
96
+ form_params['start'] = start
97
+ form_params['end'] = _end
98
+ form_params['timezone'] = timezone
99
+ form_params['date_format'] = date_format
100
+ form_params['gap_minutes'] = opts[:'gap_minutes'] if !opts[:'gap_minutes'].nil?
101
+ form_params['min_messages'] = opts[:'min_messages'] if !opts[:'min_messages'].nil?
102
+ form_params['voice_note'] = opts[:'voice_note'] if !opts[:'voice_note'].nil?
103
+ form_params['expression'] = opts[:'expression'] if !opts[:'expression'].nil?
104
+ form_params['client_reference_id'] = opts[:'client_reference_id'] if !opts[:'client_reference_id'].nil?
105
+
106
+ # http body (model)
107
+ post_body = opts[:debug_body]
108
+
109
+ # return_type
110
+ return_type = opts[:debug_return_type] || 'WhatsappConversationsResponse'
111
+
112
+ # auth_names
113
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
114
+
115
+ new_options = opts.merge(
116
+ :operation => :"WhatsappApi.extract_conversations_v1_whatsapp_extract_conversations_post",
117
+ :header_params => header_params,
118
+ :query_params => query_params,
119
+ :form_params => form_params,
120
+ :body => post_body,
121
+ :auth_names => auth_names,
122
+ :return_type => return_type
123
+ )
124
+
125
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
126
+ if @api_client.config.debugging
127
+ @api_client.config.logger.debug "API called: WhatsappApi#extract_conversations_v1_whatsapp_extract_conversations_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
128
+ end
129
+ return data, status_code, headers
130
+ end
131
+ end
132
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -21,7 +21,7 @@ module FalaAI
21
21
  # Participant name (optional)
22
22
  attr_accessor :name
23
23
 
24
- # agent | client | bot
24
+ # agent | client | bot (optional — omit/empty when unknown)
25
25
  attr_accessor :role
26
26
 
27
27
  class EnumAttributeValidator
@@ -108,8 +108,6 @@ module FalaAI
108
108
 
109
109
  if attributes.key?(:'role')
110
110
  self.role = attributes[:'role']
111
- else
112
- self.role = nil
113
111
  end
114
112
  end
115
113
 
@@ -122,10 +120,6 @@ module FalaAI
122
120
  invalid_properties.push('invalid value for "interlocutor", interlocutor cannot be nil.')
123
121
  end
124
122
 
125
- if @role.nil?
126
- invalid_properties.push('invalid value for "role", role cannot be nil.')
127
- end
128
-
129
123
  invalid_properties
130
124
  end
131
125
 
@@ -134,7 +128,6 @@ module FalaAI
134
128
  def valid?
135
129
  warn '[DEPRECATED] the `valid?` method is obsolete'
136
130
  return false if @interlocutor.nil?
137
- return false if @role.nil?
138
131
  role_validator = EnumAttributeValidator.new('String', ["agent", "client", "bot"])
139
132
  return false unless role_validator.valid?(@role)
140
133
  true
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -33,10 +33,10 @@ module FalaAI
33
33
  # Language for the analysis results (labels, categories, levels). Can differ from 'language' (input). If omitted, uses 'language'. Accepted: en-US, es-ES, es-MX, pt-BR, fr-FR, de-DE, it-IT, pt-PT, zh-CN, ja-JP, ko-KR, ar-SA, hi-IN, ru-RU, id-ID, tr-TR, nl-NL, pl-PL, vi-VN, th-TH, en-GB.
34
34
  attr_accessor :response_language
35
35
 
36
- # Total audio duration in seconds. Required. Max 3h (10800s).
36
+ # Total audio duration in seconds. Optional when using only 'text' (ignored — not read/used). Required when using 'dialog' (must be >= last turn end). Max 3h (10800s).
37
37
  attr_accessor :duration_seconds
38
38
 
39
- # Optional client-supplied ID echoed verbatim in the response. Use to correlate/sync with your system. Accepted charset: [A-Za-z0-9._:-], max 128 chars. Not idempotency.
39
+ # Optional client-supplied ID echoed verbatim in the response. Use to correlate/sync with your system. Accepted charset: [A-Za-z0-9 _/:.-], max 60 chars. Not idempotency.
40
40
  attr_accessor :client_reference_id
41
41
 
42
42
  # Who originated the call. inbound=client called, outbound=company called. If omitted, the LLM infers from context.
@@ -167,8 +167,6 @@ module FalaAI
167
167
 
168
168
  if attributes.key?(:'duration_seconds')
169
169
  self.duration_seconds = attributes[:'duration_seconds']
170
- else
171
- self.duration_seconds = nil
172
170
  end
173
171
 
174
172
  if attributes.key?(:'client_reference_id')
@@ -207,11 +205,7 @@ module FalaAI
207
205
  invalid_properties.push('invalid value for "language", language cannot be nil.')
208
206
  end
209
207
 
210
- if @duration_seconds.nil?
211
- invalid_properties.push('invalid value for "duration_seconds", duration_seconds cannot be nil.')
212
- end
213
-
214
- if @duration_seconds < 1.0
208
+ if !@duration_seconds.nil? && @duration_seconds < 1.0
215
209
  invalid_properties.push('invalid value for "duration_seconds", must be greater than or equal to 1.0.')
216
210
  end
217
211
 
@@ -230,8 +224,7 @@ module FalaAI
230
224
  return false if !@dialog.nil? && @dialog.to_s.length > 300000
231
225
  return false if !@audio_events.nil? && @audio_events.length > 500
232
226
  return false if @language.nil?
233
- return false if @duration_seconds.nil?
234
- return false if @duration_seconds < 1.0
227
+ return false if !@duration_seconds.nil? && @duration_seconds < 1.0
235
228
  call_direction_validator = EnumAttributeValidator.new('String', ["inbound", "outbound"])
236
229
  return false unless call_direction_validator.valid?(@call_direction)
237
230
  return false if !@participants.nil? && @participants.length > 10
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -33,6 +33,9 @@ module FalaAI
33
33
  # Client-supplied ID echoed verbatim (if provided in request)
34
34
  attr_accessor :client_reference_id
35
35
 
36
+ # Visual HTML report of the diagnosis (base64 gzip). Only present when 'dialog' is provided; null for text-only requests.
37
+ attr_accessor :html_report
38
+
36
39
  # Attribute mapping from ruby-style variable name to JSON key.
37
40
  def self.attribute_map
38
41
  {
@@ -41,7 +44,8 @@ module FalaAI
41
44
  :'object' => :'object',
42
45
  :'analysis' => :'analysis',
43
46
  :'usage' => :'usage',
44
- :'client_reference_id' => :'client_reference_id'
47
+ :'client_reference_id' => :'client_reference_id',
48
+ :'html_report' => :'html_report'
45
49
  }
46
50
  end
47
51
 
@@ -63,7 +67,8 @@ module FalaAI
63
67
  :'object' => :'String',
64
68
  :'analysis' => :'DiagnosticAnalysisMap',
65
69
  :'usage' => :'DiagnosticUsage',
66
- :'client_reference_id' => :'String'
70
+ :'client_reference_id' => :'String',
71
+ :'html_report' => :'String'
67
72
  }
68
73
  end
69
74
 
@@ -122,6 +127,10 @@ module FalaAI
122
127
  if attributes.key?(:'client_reference_id')
123
128
  self.client_reference_id = attributes[:'client_reference_id']
124
129
  end
130
+
131
+ if attributes.key?(:'html_report')
132
+ self.html_report = attributes[:'html_report']
133
+ end
125
134
  end
126
135
 
127
136
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -224,7 +233,8 @@ module FalaAI
224
233
  object == o.object &&
225
234
  analysis == o.analysis &&
226
235
  usage == o.usage &&
227
- client_reference_id == o.client_reference_id
236
+ client_reference_id == o.client_reference_id &&
237
+ html_report == o.html_report
228
238
  end
229
239
 
230
240
  # @see the `==` method
@@ -236,7 +246,7 @@ module FalaAI
236
246
  # Calculates hash code according to all attributes.
237
247
  # @return [Integer] Hash code
238
248
  def hash
239
- [id, response_language, object, analysis, usage, client_reference_id].hash
249
+ [id, response_language, object, analysis, usage, client_reference_id, html_report].hash
240
250
  end
241
251
 
242
252
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.21.49
6
+ The version of the OpenAPI document: 1.21.54
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0