falaai-api 1.21.51 → 1.21.67

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 (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -6
  3. data/docs/AnalysisApi.md +6 -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/DiagnosticUsage.md +1 -1
  8. data/docs/Participant.md +1 -1
  9. data/docs/ParticipantDiagnostic.md +1 -1
  10. data/docs/ResponseExtractConversationsV1WhatsappExtractconversationsPost.md +42 -0
  11. data/docs/RiskAuditAppliedActionV2.md +0 -4
  12. data/docs/RiskAuditAuditDecisionsV2.md +1 -3
  13. data/docs/RiskAuditConversationScoresV2.md +0 -2
  14. data/docs/RiskAuditDetectionItemV2.md +5 -75
  15. data/docs/RiskAuditRequest.md +3 -5
  16. data/docs/RiskAuditSummaryV2.md +0 -4
  17. data/docs/RiskAuditUsageV2.md +1 -1
  18. data/docs/RiskAuditVerdictV2.md +1 -7
  19. data/docs/SpeechApi.md +5 -3
  20. data/docs/TranscriptionUsage.md +1 -1
  21. data/docs/WhatsappApi.md +20 -12
  22. data/docs/WhatsappConversation.md +1 -1
  23. data/docs/WhatsappMeta.md +7 -3
  24. data/docs/WhatsappPreviewItem.md +32 -0
  25. data/docs/WhatsappPreviewItemBreakdown.md +26 -0
  26. data/docs/WhatsappPreviewItemCredits.md +20 -0
  27. data/docs/WhatsappPreviewItemMedia.md +30 -0
  28. data/docs/WhatsappPreviewParams.md +32 -0
  29. data/docs/WhatsappPreviewResponse.md +32 -0
  30. data/docs/WhatsappPreviewWindow.md +22 -0
  31. data/docs/WhatsappUsage.md +17 -1
  32. data/docs/index.html +58 -29
  33. data/lib/falaai-api/api/analysis_api.rb +5 -1
  34. data/lib/falaai-api/api/email_alerts_api.rb +1 -1
  35. data/lib/falaai-api/api/health_api.rb +1 -1
  36. data/lib/falaai-api/api/speech_api.rb +7 -5
  37. data/lib/falaai-api/api/usage_api.rb +1 -1
  38. data/lib/falaai-api/api/version_api.rb +1 -1
  39. data/lib/falaai-api/api/webhooks_api.rb +1 -1
  40. data/lib/falaai-api/api/whatsapp_api.rb +27 -24
  41. data/lib/falaai-api/api_client.rb +1 -1
  42. data/lib/falaai-api/api_error.rb +1 -1
  43. data/lib/falaai-api/api_model_base.rb +1 -1
  44. data/lib/falaai-api/configuration.rb +1 -1
  45. data/lib/falaai-api/models/audio_event.rb +1 -1
  46. data/lib/falaai-api/models/audio_input_meta.rb +1 -1
  47. data/lib/falaai-api/models/create_email_alert_request.rb +1 -1
  48. data/lib/falaai-api/models/create_webhook_request.rb +1 -1
  49. data/lib/falaai-api/models/diagnostic_analysis_map.rb +1 -1
  50. data/lib/falaai-api/models/diagnostic_audio_event.rb +1 -1
  51. data/lib/falaai-api/models/diagnostic_categorical_analysis.rb +1 -1
  52. data/lib/falaai-api/models/diagnostic_participant.rb +2 -9
  53. data/lib/falaai-api/models/diagnostic_request.rb +5 -12
  54. data/lib/falaai-api/models/diagnostic_response.rb +15 -5
  55. data/lib/falaai-api/models/diagnostic_text_analysis.rb +1 -1
  56. data/lib/falaai-api/models/diagnostic_usage.rb +3 -3
  57. data/lib/falaai-api/models/email_alert_item.rb +1 -1
  58. data/lib/falaai-api/models/email_alert_list_response.rb +1 -1
  59. data/lib/falaai-api/models/email_alert_message_response.rb +1 -1
  60. data/lib/falaai-api/models/email_event.rb +1 -1
  61. data/lib/falaai-api/models/health_response.rb +1 -1
  62. data/lib/falaai-api/models/http_validation_error.rb +1 -1
  63. data/lib/falaai-api/models/location_inner.rb +1 -1
  64. data/lib/falaai-api/models/message_response.rb +1 -1
  65. data/lib/falaai-api/models/participant.rb +2 -2
  66. data/lib/falaai-api/models/participant_diagnostic.rb +2 -19
  67. data/lib/falaai-api/models/response_extract_conversations_v1_whatsapp_extractconversations_post.rb +103 -0
  68. data/lib/falaai-api/models/risk_audit_analysis_v2.rb +1 -1
  69. data/lib/falaai-api/models/risk_audit_applied_action_v2.rb +2 -26
  70. data/lib/falaai-api/models/risk_audit_audio_event_model_v2.rb +1 -1
  71. data/lib/falaai-api/models/risk_audit_audit_decisions_v2.rb +5 -17
  72. data/lib/falaai-api/models/risk_audit_conversation_scores_v2.rb +2 -12
  73. data/lib/falaai-api/models/risk_audit_detection_item_v2.rb +19 -393
  74. data/lib/falaai-api/models/risk_audit_detections_v2.rb +1 -1
  75. data/lib/falaai-api/models/risk_audit_indexer_v2.rb +1 -1
  76. data/lib/falaai-api/models/risk_audit_meta_v2.rb +1 -1
  77. data/lib/falaai-api/models/risk_audit_participant_v2.rb +1 -1
  78. data/lib/falaai-api/models/risk_audit_participants_v2.rb +1 -1
  79. data/lib/falaai-api/models/risk_audit_request.rb +11 -37
  80. data/lib/falaai-api/models/risk_audit_scores_v2.rb +1 -1
  81. data/lib/falaai-api/models/risk_audit_scoring_explanation_v2.rb +1 -1
  82. data/lib/falaai-api/models/risk_audit_summary_v2.rb +2 -24
  83. data/lib/falaai-api/models/risk_audit_timeline_v2.rb +1 -1
  84. data/lib/falaai-api/models/risk_audit_usage_v2.rb +2 -2
  85. data/lib/falaai-api/models/risk_audit_v2.rb +1 -1
  86. data/lib/falaai-api/models/risk_audit_v2_response.rb +1 -1
  87. data/lib/falaai-api/models/risk_audit_verdict_v2.rb +5 -36
  88. data/lib/falaai-api/models/transcription_response.rb +1 -1
  89. data/lib/falaai-api/models/transcription_usage.rb +2 -2
  90. data/lib/falaai-api/models/update_email_alert_request.rb +1 -1
  91. data/lib/falaai-api/models/update_webhook_request.rb +1 -1
  92. data/lib/falaai-api/models/usage_by_key_item.rb +1 -1
  93. data/lib/falaai-api/models/usage_log_item.rb +1 -1
  94. data/lib/falaai-api/models/usage_log_response.rb +1 -1
  95. data/lib/falaai-api/models/validation_error.rb +1 -1
  96. data/lib/falaai-api/models/version_response.rb +1 -1
  97. data/lib/falaai-api/models/webhook_event.rb +1 -1
  98. data/lib/falaai-api/models/webhook_item.rb +1 -1
  99. data/lib/falaai-api/models/webhook_list_response.rb +1 -1
  100. data/lib/falaai-api/models/whatsapp_conversation.rb +2 -2
  101. data/lib/falaai-api/models/whatsapp_conversations_response.rb +30 -6
  102. data/lib/falaai-api/models/whatsapp_meta.rb +86 -32
  103. data/lib/falaai-api/models/whatsapp_preview_item.rb +354 -0
  104. data/lib/falaai-api/models/whatsapp_preview_item_breakdown.rb +273 -0
  105. data/lib/falaai-api/models/whatsapp_preview_item_credits.rb +192 -0
  106. data/lib/falaai-api/models/whatsapp_preview_item_media.rb +329 -0
  107. data/lib/falaai-api/models/whatsapp_preview_params.rb +354 -0
  108. data/lib/falaai-api/models/whatsapp_preview_response.rb +384 -0
  109. data/lib/falaai-api/models/whatsapp_preview_window.rb +219 -0
  110. data/lib/falaai-api/models/whatsapp_speaker.rb +1 -1
  111. data/lib/falaai-api/models/whatsapp_usage.rb +220 -4
  112. data/lib/falaai-api/version.rb +15 -15
  113. data/lib/falaai-api.rb +9 -1
  114. metadata +18 -2
@@ -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.51
6
+ The version of the OpenAPI document: 1.21.67
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -20,6 +20,7 @@ module FalaAI
20
20
  @api_client = api_client
21
21
  end
22
22
  # Analyze a call transcript — 5 parallel analyses
23
+ # Analyzes a call transcript and returns six structured blocks: dialogue summary, contact reason, identified action, theme label, predominant sentiment and identified participants with roles, names, confidence and evidence; use it for a fast, generic diagnosis of what happened in a call, and use /v1/analyze/riskAudit instead when the goal is compliance violation auditing. Provide at least one of dialog (primary source: diarized transcript in the format 'Speaker 1: [00:00:00.540 - 00:00:01.139] text', speaker labels accepted in any case as Speaker, Interlocutor, Hablante, Locutor or Orador plus number) or text (plain transcript fallback), each up to 300,000 characters; when dialog is used duration_seconds is required by the schema and, when provided, must be >= the last turn end time. Required: language; optional: model (always 'falaai-diagnostic-1'), audio_events, response_language (language of the results, defaulting to language), participants (up to 10 with interlocutor and optional name and role agent/client/bot, ground truth when the role is informed and otherwise inferred), call_direction (inferred when omitted), client_reference_id (echoed verbatim, charset [A-Za-z0-9 _/:.-], max 60). Returns id, object 'analysis', response_language, analysis with the six blocks, usage (characters, credits_consumed, processing_ms) and html_report (base64 gzip) only when dialog is provided; with text-only input the participant roles are forced to confidence 'low'. Credits are charged per character of the transcript (0.03/char, counted without speaker labels, timestamps and inline expression tokens, minimum 500 characters, plus 50 characters per audio event) and the amount charged is returned in usage.credits_consumed. Stateless: neither the transcript nor the analysis is persisted (only billing and usage metadata is logged), protecting personal data under LGPD.
23
24
  # @param diagnostic_request [DiagnosticRequest]
24
25
  # @param [Hash] opts the optional parameters
25
26
  # @return [DiagnosticResponse]
@@ -29,6 +30,7 @@ module FalaAI
29
30
  end
30
31
 
31
32
  # Analyze a call transcript — 5 parallel analyses
33
+ # Analyzes a call transcript and returns six structured blocks: dialogue summary, contact reason, identified action, theme label, predominant sentiment and identified participants with roles, names, confidence and evidence; use it for a fast, generic diagnosis of what happened in a call, and use /v1/analyze/riskAudit instead when the goal is compliance violation auditing. Provide at least one of dialog (primary source: diarized transcript in the format 'Speaker 1: [00:00:00.540 - 00:00:01.139] text', speaker labels accepted in any case as Speaker, Interlocutor, Hablante, Locutor or Orador plus number) or text (plain transcript fallback), each up to 300,000 characters; when dialog is used duration_seconds is required by the schema and, when provided, must be >= the last turn end time. Required: language; optional: model (always 'falaai-diagnostic-1'), audio_events, response_language (language of the results, defaulting to language), participants (up to 10 with interlocutor and optional name and role agent/client/bot, ground truth when the role is informed and otherwise inferred), call_direction (inferred when omitted), client_reference_id (echoed verbatim, charset [A-Za-z0-9 _/:.-], max 60). Returns id, object 'analysis', response_language, analysis with the six blocks, usage (characters, credits_consumed, processing_ms) and html_report (base64 gzip) only when dialog is provided; with text-only input the participant roles are forced to confidence 'low'. Credits are charged per character of the transcript (0.03/char, counted without speaker labels, timestamps and inline expression tokens, minimum 500 characters, plus 50 characters per audio event) and the amount charged is returned in usage.credits_consumed. Stateless: neither the transcript nor the analysis is persisted (only billing and usage metadata is logged), protecting personal data under LGPD.
32
34
  # @param diagnostic_request [DiagnosticRequest]
33
35
  # @param [Hash] opts the optional parameters
34
36
  # @return [Array<(DiagnosticResponse, Integer, Hash)>] DiagnosticResponse data, response status code and response headers
@@ -86,6 +88,7 @@ module FalaAI
86
88
  end
87
89
 
88
90
  # Compliance Risk Audit — conversation compliance analysis
91
+ # Runs a compliance risk audit on a diarized call transcript, detecting violations and positives, applying the ISO 31000 risk matrix, classifying the conversation into a level and returning the verdict with the applied actions and the NIST/OWASP risk framework enquadramento; use it for compliance and quality audits of company-agent-to-client calls, not for generic conversation summarization. Required fields: dialog (diarized transcript in the format 'Speaker 1: [00:00:00.540 - 00:00:01.139] text', speaker labels accepted in any case as Speaker, Interlocutor, Hablante, Locutor or Orador plus number; plain text is not accepted; max 300,000 characters), duration_seconds (total audio duration in seconds, must be >= the last turn end time) and language plus response_language (only pt-BR, en-US or es-ES). Optional: model (always 'falaai-risk-audit-1'), audio_events (up to 500, each requiring event and start_s), participants (up to 10 with interlocutor and role agent/client/bot, ground truth when provided, else inferred), call_direction (inbound/outbound, inferred when omitted), response_format (only 'v2'), client_reference_id (echoed verbatim, charset [A-Za-z0-9 _/:.-], max 60). Returns response (V2) with meta+usage, participants, verdict with level and applied actions, scores, detections (violations, positives, client alerts), analysis frameworks, timeline, categories_summary, executive summary, scoring explanation and an HTML report (gzip+base64). Credits are charged per character of the spoken transcript (0.09/char, counted without speaker labels and inline expression tokens, minimum 1,000 characters, plus 50 characters per audio event) and a minimum-cost guard may raise the final amount, so response.meta.usage.credits_consumed is the amount actually charged. Stateless: neither the transcript nor the analysis is persisted (only billing and usage metadata is logged), protecting personal data under LGPD.
89
92
  # @param risk_audit_request [RiskAuditRequest]
90
93
  # @param [Hash] opts the optional parameters
91
94
  # @return [RiskAuditV2Response]
@@ -95,6 +98,7 @@ module FalaAI
95
98
  end
96
99
 
97
100
  # Compliance Risk Audit — conversation compliance analysis
101
+ # Runs a compliance risk audit on a diarized call transcript, detecting violations and positives, applying the ISO 31000 risk matrix, classifying the conversation into a level and returning the verdict with the applied actions and the NIST/OWASP risk framework enquadramento; use it for compliance and quality audits of company-agent-to-client calls, not for generic conversation summarization. Required fields: dialog (diarized transcript in the format &#39;Speaker 1: [00:00:00.540 - 00:00:01.139] text&#39;, speaker labels accepted in any case as Speaker, Interlocutor, Hablante, Locutor or Orador plus number; plain text is not accepted; max 300,000 characters), duration_seconds (total audio duration in seconds, must be &gt;&#x3D; the last turn end time) and language plus response_language (only pt-BR, en-US or es-ES). Optional: model (always &#39;falaai-risk-audit-1&#39;), audio_events (up to 500, each requiring event and start_s), participants (up to 10 with interlocutor and role agent/client/bot, ground truth when provided, else inferred), call_direction (inbound/outbound, inferred when omitted), response_format (only &#39;v2&#39;), client_reference_id (echoed verbatim, charset [A-Za-z0-9 _/:.-], max 60). Returns response (V2) with meta+usage, participants, verdict with level and applied actions, scores, detections (violations, positives, client alerts), analysis frameworks, timeline, categories_summary, executive summary, scoring explanation and an HTML report (gzip+base64). Credits are charged per character of the spoken transcript (0.09/char, counted without speaker labels and inline expression tokens, minimum 1,000 characters, plus 50 characters per audio event) and a minimum-cost guard may raise the final amount, so response.meta.usage.credits_consumed is the amount actually charged. Stateless: neither the transcript nor the analysis is persisted (only billing and usage metadata is logged), protecting personal data under LGPD.
98
102
  # @param risk_audit_request [RiskAuditRequest]
99
103
  # @param [Hash] opts the optional parameters
100
104
  # @return [Array<(RiskAuditV2Response, Integer, Hash)>] RiskAuditV2Response data, response status code and response headers
@@ -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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -20,11 +20,12 @@ module FalaAI
20
20
  @api_client = api_client
21
21
  end
22
22
  # Transcribe audio to text
23
+ # Transcribes one uploaded audio file into text with speaker diarization and timestamped audio events (laughs, sighs, pauses), returning the full transcript, a turn-by-turn dialog with speaker labels and start/end timestamps, the detected events and the word count. Use it when a recording must become text for analysis, review or storage of the transcript. The required file field takes a single audio upload limited to 1GB and 3 hours, with accepted MIME types audio/mpeg, audio/mp3, audio/mp4, audio/m4a, audio/wav, audio/wave, audio/x-wav, audio/flac, audio/x-flac, audio/ogg, audio/opus, video/ogg, audio/webm, video/webm, audio/aac and audio/x-aac. model is optional and defaults to falaai-transcribe-1, the only supported value; language is an optional two-letter code (pt, en, es, fr, de, it, ja, ko, nl, pl, ru, tr, zh, vi, id, th, ar, hi, cs, da, el, fi, he, hu, ms, no, ro, sk, sv, ta, uk) that forces the audio language and is auto-detected when omitted; client_reference_id is optional, charset A-Za-z0-9 space _/:.- up to 60 chars, echoed verbatim (not idempotency). Billing is 1 credit per second of processed audio with a minimum of 10 credits per request, rounded to 2 decimals; usage reports credits_consumed and processing_ms. Stateless: the audio is processed in memory and never persisted (LGPD). Returns id (tr-), language, language_confidence, duration_seconds, text, dialog, audio_events, event_types, word_count and input metadata (duration, format, codec, sample rate, channels).
23
24
  # @param file [File]
24
25
  # @param [Hash] opts the optional parameters
25
26
  # @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.
27
+ # @option opts [String] :language
28
+ # @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
29
  # @return [TranscriptionResponse]
29
30
  def create_transcription_v1_audio_transcriptions_post(file, opts = {})
30
31
  data, _status_code, _headers = create_transcription_v1_audio_transcriptions_post_with_http_info(file, opts)
@@ -32,11 +33,12 @@ module FalaAI
32
33
  end
33
34
 
34
35
  # Transcribe audio to text
36
+ # Transcribes one uploaded audio file into text with speaker diarization and timestamped audio events (laughs, sighs, pauses), returning the full transcript, a turn-by-turn dialog with speaker labels and start/end timestamps, the detected events and the word count. Use it when a recording must become text for analysis, review or storage of the transcript. The required file field takes a single audio upload limited to 1GB and 3 hours, with accepted MIME types audio/mpeg, audio/mp3, audio/mp4, audio/m4a, audio/wav, audio/wave, audio/x-wav, audio/flac, audio/x-flac, audio/ogg, audio/opus, video/ogg, audio/webm, video/webm, audio/aac and audio/x-aac. model is optional and defaults to falaai-transcribe-1, the only supported value; language is an optional two-letter code (pt, en, es, fr, de, it, ja, ko, nl, pl, ru, tr, zh, vi, id, th, ar, hi, cs, da, el, fi, he, hu, ms, no, ro, sk, sv, ta, uk) that forces the audio language and is auto-detected when omitted; client_reference_id is optional, charset A-Za-z0-9 space _/:.- up to 60 chars, echoed verbatim (not idempotency). Billing is 1 credit per second of processed audio with a minimum of 10 credits per request, rounded to 2 decimals; usage reports credits_consumed and processing_ms. Stateless: the audio is processed in memory and never persisted (LGPD). Returns id (tr-), language, language_confidence, duration_seconds, text, dialog, audio_events, event_types, word_count and input metadata (duration, format, codec, sample rate, channels).
35
37
  # @param file [File]
36
38
  # @param [Hash] opts the optional parameters
37
39
  # @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.
40
+ # @option opts [String] :language
41
+ # @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
42
  # @return [Array<(TranscriptionResponse, Integer, Hash)>] TranscriptionResponse data, response status code and response headers
41
43
  def create_transcription_v1_audio_transcriptions_post_with_http_info(file, opts = {})
42
44
  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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -20,35 +20,43 @@ module FalaAI
20
20
  @api_client = api_client
21
21
  end
22
22
  # Extract and segment WhatsApp conversations from an export
23
+ # Extracts and segments the conversations of a WhatsApp export (.zip or .txt containing chat.txt in UTF-8 with at least one turn) and, unless it is a preview, resolves each selected conversation with AI by transcribing voice/audio/video notes and describing visual expressions, returning the segmented conversations with speakers, dialogs, counts and usage. Use dry_run=true for a PREVIEW: it validates the file, segments the conversations, counts media and ESTIMATES the credits WITHOUT calling the AI and WITHOUT charging (credits_charged=0), returning object whatsapp_preview with credits_total, the params actually used, the windows, per-conversation items and warnings. The window is given either as a single start/end pair or as windows, a JSON string holding a non-empty list of sub-objects each with start and end; windows must not be combined with start/end, and a windows selection is the deduplicated chronological union of the overlaps, which bypasses the noise filter and keeps conversations that are monologues or below min_messages, while for a single window sending only one of start/end is rejected and empty/all-zeros values select the real period of the export, both being allowed to be omitted in dry_run while outside dry_run both absent is rejected. timezone and date_format are required, where date_format must be day_first, month_first or year_first. gap_minutes is optional (default 720) and splits conversations on idle gaps, min_messages is optional (default 2) and is the minimum messages kept per conversation outside the explicit windows selection, voice_note is optional (default true) and turns voice/audio/video media into text, expression is optional (default true) and describes visual expressions (figurinha, GIF, emoji), and client_reference_id is optional, echoed verbatim, charset A-Za-z0-9 space _/:.- up to 60 chars. Billing outside the preview is 0.15 credit per conversation plus 0.15 per figurinha, 0.18 per GIF and 0.1 per emoji (only with expression=true) plus 0.19 per second of voice/audio/video (only with voice_note=true), rounded to 2 decimals with no rounding up, and the preview credits_total is the same exact sum with 2 decimals; files are limited to 1GB and the endpoint is stateless (export and media processed in memory, temporary files removed, nothing persisted), returning object conversations with id (wc-), usage and the conversations (conversation_id, first_at, last_at, duration_seconds, speakers, dialog, message_count, characters) plus meta.
23
24
  # @param file [File]
24
- # @param start [String]
25
- # @param _end [String]
26
25
  # @param timezone [String]
27
26
  # @param date_format [String]
28
27
  # @param [Hash] opts the optional parameters
28
+ # @option opts [String] :start Inicio da janela. Obrigatorio fora do dry_run; no dry_run ausente &#x3D; primeiro turno do export.
29
+ # @option opts [String] :_end Fim da janela. Obrigatorio fora do dry_run; no dry_run ausente &#x3D; ultimo turno do export.
30
+ # @option opts [String] :windows Selecao explicita por varias janelas: JSON [{\\\&quot;start\\\&quot;:\\\&quot;...\\\&quot;,\\\&quot;end\\\&quot;:\\\&quot;...\\\&quot;}]. Nao combinar com &#39;start&#39;/&#39;end&#39;.
29
31
  # @option opts [Float] :gap_minutes (default to 720)
30
32
  # @option opts [Integer] :min_messages (default to 2)
31
- # @option opts [Float] :chars_per_minute (default to 800)
33
+ # @option opts [Boolean] :voice_note Transcrever mensagens de voz/video gravadas na hora? (default to true)
34
+ # @option opts [Boolean] :expression Descrever expressoes visuais (figurinha/GIF/imagem)? (default to true)
35
+ # @option opts [Boolean] :dry_run So analisa o arquivo: valida, segmenta e ESTIMA os creditos SEM chamar a IA e SEM debitar (credits_charged&#x3D;0). (default to false)
32
36
  # @option opts [String] :client_reference_id
33
- # @return [WhatsappConversationsResponse]
34
- def extract_conversations_v1_whatsapp_extract_conversations_post(file, start, _end, timezone, date_format, opts = {})
35
- data, _status_code, _headers = extract_conversations_v1_whatsapp_extract_conversations_post_with_http_info(file, start, _end, timezone, date_format, opts)
37
+ # @return [ResponseExtractConversationsV1WhatsappExtractconversationsPost]
38
+ def extract_conversations_v1_whatsapp_extract_conversations_post(file, timezone, date_format, opts = {})
39
+ data, _status_code, _headers = extract_conversations_v1_whatsapp_extract_conversations_post_with_http_info(file, timezone, date_format, opts)
36
40
  data
37
41
  end
38
42
 
39
43
  # Extract and segment WhatsApp conversations from an export
44
+ # Extracts and segments the conversations of a WhatsApp export (.zip or .txt containing chat.txt in UTF-8 with at least one turn) and, unless it is a preview, resolves each selected conversation with AI by transcribing voice/audio/video notes and describing visual expressions, returning the segmented conversations with speakers, dialogs, counts and usage. Use dry_run&#x3D;true for a PREVIEW: it validates the file, segments the conversations, counts media and ESTIMATES the credits WITHOUT calling the AI and WITHOUT charging (credits_charged&#x3D;0), returning object whatsapp_preview with credits_total, the params actually used, the windows, per-conversation items and warnings. The window is given either as a single start/end pair or as windows, a JSON string holding a non-empty list of sub-objects each with start and end; windows must not be combined with start/end, and a windows selection is the deduplicated chronological union of the overlaps, which bypasses the noise filter and keeps conversations that are monologues or below min_messages, while for a single window sending only one of start/end is rejected and empty/all-zeros values select the real period of the export, both being allowed to be omitted in dry_run while outside dry_run both absent is rejected. timezone and date_format are required, where date_format must be day_first, month_first or year_first. gap_minutes is optional (default 720) and splits conversations on idle gaps, min_messages is optional (default 2) and is the minimum messages kept per conversation outside the explicit windows selection, voice_note is optional (default true) and turns voice/audio/video media into text, expression is optional (default true) and describes visual expressions (figurinha, GIF, emoji), and client_reference_id is optional, echoed verbatim, charset A-Za-z0-9 space _/:.- up to 60 chars. Billing outside the preview is 0.15 credit per conversation plus 0.15 per figurinha, 0.18 per GIF and 0.1 per emoji (only with expression&#x3D;true) plus 0.19 per second of voice/audio/video (only with voice_note&#x3D;true), rounded to 2 decimals with no rounding up, and the preview credits_total is the same exact sum with 2 decimals; files are limited to 1GB and the endpoint is stateless (export and media processed in memory, temporary files removed, nothing persisted), returning object conversations with id (wc-), usage and the conversations (conversation_id, first_at, last_at, duration_seconds, speakers, dialog, message_count, characters) plus meta.
40
45
  # @param file [File]
41
- # @param start [String]
42
- # @param _end [String]
43
46
  # @param timezone [String]
44
47
  # @param date_format [String]
45
48
  # @param [Hash] opts the optional parameters
49
+ # @option opts [String] :start Inicio da janela. Obrigatorio fora do dry_run; no dry_run ausente &#x3D; primeiro turno do export.
50
+ # @option opts [String] :_end Fim da janela. Obrigatorio fora do dry_run; no dry_run ausente &#x3D; ultimo turno do export.
51
+ # @option opts [String] :windows Selecao explicita por varias janelas: JSON [{\\\&quot;start\\\&quot;:\\\&quot;...\\\&quot;,\\\&quot;end\\\&quot;:\\\&quot;...\\\&quot;}]. Nao combinar com &#39;start&#39;/&#39;end&#39;.
46
52
  # @option opts [Float] :gap_minutes (default to 720)
47
53
  # @option opts [Integer] :min_messages (default to 2)
48
- # @option opts [Float] :chars_per_minute (default to 800)
54
+ # @option opts [Boolean] :voice_note Transcrever mensagens de voz/video gravadas na hora? (default to true)
55
+ # @option opts [Boolean] :expression Descrever expressoes visuais (figurinha/GIF/imagem)? (default to true)
56
+ # @option opts [Boolean] :dry_run So analisa o arquivo: valida, segmenta e ESTIMA os creditos SEM chamar a IA e SEM debitar (credits_charged&#x3D;0). (default to false)
49
57
  # @option opts [String] :client_reference_id
50
- # @return [Array<(WhatsappConversationsResponse, Integer, Hash)>] WhatsappConversationsResponse data, response status code and response headers
51
- def extract_conversations_v1_whatsapp_extract_conversations_post_with_http_info(file, start, _end, timezone, date_format, opts = {})
58
+ # @return [Array<(ResponseExtractConversationsV1WhatsappExtractconversationsPost, Integer, Hash)>] ResponseExtractConversationsV1WhatsappExtractconversationsPost data, response status code and response headers
59
+ def extract_conversations_v1_whatsapp_extract_conversations_post_with_http_info(file, timezone, date_format, opts = {})
52
60
  if @api_client.config.debugging
53
61
  @api_client.config.logger.debug 'Calling API: WhatsappApi.extract_conversations_v1_whatsapp_extract_conversations_post ...'
54
62
  end
@@ -56,14 +64,6 @@ module FalaAI
56
64
  if @api_client.config.client_side_validation && file.nil?
57
65
  fail ArgumentError, "Missing the required parameter 'file' when calling WhatsappApi.extract_conversations_v1_whatsapp_extract_conversations_post"
58
66
  end
59
- # verify the required parameter 'start' is set
60
- if @api_client.config.client_side_validation && start.nil?
61
- fail ArgumentError, "Missing the required parameter 'start' when calling WhatsappApi.extract_conversations_v1_whatsapp_extract_conversations_post"
62
- end
63
- # verify the required parameter '_end' is set
64
- if @api_client.config.client_side_validation && _end.nil?
65
- fail ArgumentError, "Missing the required parameter '_end' when calling WhatsappApi.extract_conversations_v1_whatsapp_extract_conversations_post"
66
- end
67
67
  # verify the required parameter 'timezone' is set
68
68
  if @api_client.config.client_side_validation && timezone.nil?
69
69
  fail ArgumentError, "Missing the required parameter 'timezone' when calling WhatsappApi.extract_conversations_v1_whatsapp_extract_conversations_post"
@@ -91,20 +91,23 @@ module FalaAI
91
91
  # form parameters
92
92
  form_params = opts[:form_params] || {}
93
93
  form_params['file'] = file
94
- form_params['start'] = start
95
- form_params['end'] = _end
96
94
  form_params['timezone'] = timezone
97
95
  form_params['date_format'] = date_format
96
+ form_params['start'] = opts[:'start'] if !opts[:'start'].nil?
97
+ form_params['end'] = opts[:'_end'] if !opts[:'_end'].nil?
98
+ form_params['windows'] = opts[:'windows'] if !opts[:'windows'].nil?
98
99
  form_params['gap_minutes'] = opts[:'gap_minutes'] if !opts[:'gap_minutes'].nil?
99
100
  form_params['min_messages'] = opts[:'min_messages'] if !opts[:'min_messages'].nil?
100
- form_params['chars_per_minute'] = opts[:'chars_per_minute'] if !opts[:'chars_per_minute'].nil?
101
+ form_params['voice_note'] = opts[:'voice_note'] if !opts[:'voice_note'].nil?
102
+ form_params['expression'] = opts[:'expression'] if !opts[:'expression'].nil?
103
+ form_params['dry_run'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
101
104
  form_params['client_reference_id'] = opts[:'client_reference_id'] if !opts[:'client_reference_id'].nil?
102
105
 
103
106
  # http body (model)
104
107
  post_body = opts[:debug_body]
105
108
 
106
109
  # return_type
107
- return_type = opts[:debug_return_type] || 'WhatsappConversationsResponse'
110
+ return_type = opts[:debug_return_type] || 'ResponseExtractConversationsV1WhatsappExtractconversationsPost'
108
111
 
109
112
  # auth_names
110
113
  auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
@@ -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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -18,7 +18,7 @@ module FalaAI
18
18
  # Total characters analyzed
19
19
  attr_accessor :characters
20
20
 
21
- # Credits consumed: max(ceil(chars/500)*3, 3) * 5
21
+ # Credits consumed: per character, round(max(characters, 500) * 0.03, 2)
22
22
  attr_accessor :credits_consumed
23
23
 
24
24
  # Total processing time in milliseconds
@@ -47,7 +47,7 @@ module FalaAI
47
47
  def self.openapi_types
48
48
  {
49
49
  :'characters' => :'Integer',
50
- :'credits_consumed' => :'Integer',
50
+ :'credits_consumed' => :'Float',
51
51
  :'processing_ms' => :'Integer'
52
52
  }
53
53
  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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
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.51
6
+ The version of the OpenAPI document: 1.21.67
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0