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
@@ -18,16 +18,13 @@ module FalaAI
18
18
  # Analysis model. Always 'falaai-risk-audit-1'
19
19
  attr_accessor :model
20
20
 
21
- # Plain transcript (fallback if dialog is empty). At least one of 'dialog' or 'text' required. Max 300,000 characters
22
- attr_accessor :text
23
-
24
- # Diarized transcript with speaker turns. PRIMARY source. Speaker labels accepted (any case): 'Speaker N', 'Interlocutor N', 'Hablante N', 'Locutor N', 'Orador N' (space or underscore). Normalized internally to 'Speaker N' in the response. Max 300,000 characters
21
+ # Diarized transcript with speaker turns. REQUIRED — risk audit only accepts diarized conversations; plain 'text' is not accepted. Speaker labels accepted (any case): 'Speaker N', 'Interlocutor N', 'Hablante N', 'Locutor N', 'Orador N' (space or underscore). Normalized internally to 'Speaker N' in the response. Max 300,000 characters
25
22
  attr_accessor :dialog
26
23
 
27
24
  # Audio events with timestamps (correlated with turns when diarization is present)
28
25
  attr_accessor :audio_events
29
26
 
30
- # Total audio duration in seconds. Required. Max 3h (10800s).
27
+ # Total audio duration in seconds. Required. Must be >= last turn end. Max 3h (10800s).
31
28
  attr_accessor :duration_seconds
32
29
 
33
30
  # Language of the transcript being analyzed. Must match the dialog/text language. Accepted: pt-BR, en-US, es-ES.
@@ -45,7 +42,7 @@ module FalaAI
45
42
  # Response format version. Only 'v2' (structured EN-US blocks) is available today.
46
43
  attr_accessor :response_format
47
44
 
48
- # 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.
45
+ # 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.
49
46
  attr_accessor :client_reference_id
50
47
 
51
48
  class EnumAttributeValidator
@@ -74,7 +71,6 @@ module FalaAI
74
71
  def self.attribute_map
75
72
  {
76
73
  :'model' => :'model',
77
- :'text' => :'text',
78
74
  :'dialog' => :'dialog',
79
75
  :'audio_events' => :'audio_events',
80
76
  :'duration_seconds' => :'duration_seconds',
@@ -101,7 +97,6 @@ module FalaAI
101
97
  def self.openapi_types
102
98
  {
103
99
  :'model' => :'String',
104
- :'text' => :'String',
105
100
  :'dialog' => :'String',
106
101
  :'audio_events' => :'Array<DiagnosticAudioEvent>',
107
102
  :'duration_seconds' => :'Float',
@@ -142,16 +137,10 @@ module FalaAI
142
137
  self.model = 'falaai-risk-audit-1'
143
138
  end
144
139
 
145
- if attributes.key?(:'text')
146
- self.text = attributes[:'text']
147
- else
148
- self.text = ''
149
- end
150
-
151
140
  if attributes.key?(:'dialog')
152
141
  self.dialog = attributes[:'dialog']
153
142
  else
154
- self.dialog = ''
143
+ self.dialog = nil
155
144
  end
156
145
 
157
146
  if attributes.key?(:'audio_events')
@@ -204,11 +193,11 @@ module FalaAI
204
193
  def list_invalid_properties
205
194
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
206
195
  invalid_properties = Array.new
207
- if !@text.nil? && @text.to_s.length > 300000
208
- invalid_properties.push('invalid value for "text", the character length must be smaller than or equal to 300000.')
196
+ if @dialog.nil?
197
+ invalid_properties.push('invalid value for "dialog", dialog cannot be nil.')
209
198
  end
210
199
 
211
- if !@dialog.nil? && @dialog.to_s.length > 300000
200
+ if @dialog.to_s.length > 300000
212
201
  invalid_properties.push('invalid value for "dialog", the character length must be smaller than or equal to 300000.')
213
202
  end
214
203
 
@@ -243,8 +232,8 @@ module FalaAI
243
232
  # @return true if the model is valid
244
233
  def valid?
245
234
  warn '[DEPRECATED] the `valid?` method is obsolete'
246
- return false if !@text.nil? && @text.to_s.length > 300000
247
- return false if !@dialog.nil? && @dialog.to_s.length > 300000
235
+ return false if @dialog.nil?
236
+ return false if @dialog.to_s.length > 300000
248
237
  return false if !@audio_events.nil? && @audio_events.length > 500
249
238
  return false if @duration_seconds.nil?
250
239
  return false if @duration_seconds < 1.0
@@ -258,20 +247,6 @@ module FalaAI
258
247
  true
259
248
  end
260
249
 
261
- # Custom attribute writer method with validation
262
- # @param [Object] text Value to be assigned
263
- def text=(text)
264
- if text.nil?
265
- fail ArgumentError, 'text cannot be nil'
266
- end
267
-
268
- if text.to_s.length > 300000
269
- fail ArgumentError, 'invalid value for "text", the character length must be smaller than or equal to 300000.'
270
- end
271
-
272
- @text = text
273
- end
274
-
275
250
  # Custom attribute writer method with validation
276
251
  # @param [Object] dialog Value to be assigned
277
252
  def dialog=(dialog)
@@ -374,7 +349,6 @@ module FalaAI
374
349
  return true if self.equal?(o)
375
350
  self.class == o.class &&
376
351
  model == o.model &&
377
- text == o.text &&
378
352
  dialog == o.dialog &&
379
353
  audio_events == o.audio_events &&
380
354
  duration_seconds == o.duration_seconds &&
@@ -395,7 +369,7 @@ module FalaAI
395
369
  # Calculates hash code according to all attributes.
396
370
  # @return [Integer] Hash code
397
371
  def hash
398
- [model, text, dialog, audio_events, duration_seconds, language, response_language, call_direction, participants, response_format, client_reference_id].hash
372
+ [model, dialog, audio_events, duration_seconds, language, response_language, call_direction, participants, response_format, client_reference_id].hash
399
373
  end
400
374
 
401
375
  # 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
@@ -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
@@ -36,12 +36,6 @@ module FalaAI
36
36
  # Audio events aggravated
37
37
  attr_accessor :audio_events_aggravated
38
38
 
39
- # MAC audio applied
40
- attr_accessor :mac_audio_applied
41
-
42
- # MVAD applied
43
- attr_accessor :mvad_applied
44
-
45
39
  # Total participants
46
40
  attr_accessor :total_participants
47
41
 
@@ -73,8 +67,6 @@ module FalaAI
73
67
  :'blocked' => :'blocked',
74
68
  :'audio_events_used' => :'audio_events_used',
75
69
  :'audio_events_aggravated' => :'audio_events_aggravated',
76
- :'mac_audio_applied' => :'mac_audio_applied',
77
- :'mvad_applied' => :'mvad_applied',
78
70
  :'total_participants' => :'total_participants',
79
71
  :'total_agents' => :'total_agents',
80
72
  :'total_clients' => :'total_clients',
@@ -105,8 +97,6 @@ module FalaAI
105
97
  :'blocked' => :'Integer',
106
98
  :'audio_events_used' => :'Integer',
107
99
  :'audio_events_aggravated' => :'Integer',
108
- :'mac_audio_applied' => :'Object',
109
- :'mvad_applied' => :'Object',
110
100
  :'total_participants' => :'Integer',
111
101
  :'total_agents' => :'Integer',
112
102
  :'total_clients' => :'Integer',
@@ -120,8 +110,6 @@ module FalaAI
120
110
  # List of attributes with nullable: true
121
111
  def self.openapi_nullable
122
112
  Set.new([
123
- :'mac_audio_applied',
124
- :'mvad_applied',
125
113
  ])
126
114
  end
127
115
 
@@ -169,14 +157,6 @@ module FalaAI
169
157
  self.audio_events_aggravated = attributes[:'audio_events_aggravated']
170
158
  end
171
159
 
172
- if attributes.key?(:'mac_audio_applied')
173
- self.mac_audio_applied = attributes[:'mac_audio_applied']
174
- end
175
-
176
- if attributes.key?(:'mvad_applied')
177
- self.mvad_applied = attributes[:'mvad_applied']
178
- end
179
-
180
160
  if attributes.key?(:'total_participants')
181
161
  self.total_participants = attributes[:'total_participants']
182
162
  end
@@ -233,8 +213,6 @@ module FalaAI
233
213
  blocked == o.blocked &&
234
214
  audio_events_used == o.audio_events_used &&
235
215
  audio_events_aggravated == o.audio_events_aggravated &&
236
- mac_audio_applied == o.mac_audio_applied &&
237
- mvad_applied == o.mvad_applied &&
238
216
  total_participants == o.total_participants &&
239
217
  total_agents == o.total_agents &&
240
218
  total_clients == o.total_clients &&
@@ -253,7 +231,7 @@ module FalaAI
253
231
  # Calculates hash code according to all attributes.
254
232
  # @return [Integer] Hash code
255
233
  def hash
256
- [total_turns, total_calibrated, active, tolerated, blocked, audio_events_used, audio_events_aggravated, mac_audio_applied, mvad_applied, total_participants, total_agents, total_clients, total_bots, total_unknown, client_risk_alerts_count, client_behavior_alerts_count].hash
234
+ [total_turns, total_calibrated, active, tolerated, blocked, audio_events_used, audio_events_aggravated, total_participants, total_agents, total_clients, total_bots, total_unknown, client_risk_alerts_count, client_behavior_alerts_count].hash
257
235
  end
258
236
 
259
237
  # 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
@@ -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
@@ -21,31 +21,19 @@ module FalaAI
21
21
  # Classification level code
22
22
  attr_accessor :level_code
23
23
 
24
- # Level color
25
- attr_accessor :color
26
-
27
- # Level icon
28
- attr_accessor :icon
29
-
30
24
  # Risk matrix
31
25
  attr_accessor :risk_matrix
32
26
 
33
27
  # Applied actions
34
28
  attr_accessor :applied_actions
35
29
 
36
- # Decision details
37
- attr_accessor :decision_details
38
-
39
30
  # Attribute mapping from ruby-style variable name to JSON key.
40
31
  def self.attribute_map
41
32
  {
42
33
  :'label' => :'label',
43
34
  :'level_code' => :'level_code',
44
- :'color' => :'color',
45
- :'icon' => :'icon',
46
35
  :'risk_matrix' => :'risk_matrix',
47
- :'applied_actions' => :'applied_actions',
48
- :'decision_details' => :'decision_details'
36
+ :'applied_actions' => :'applied_actions'
49
37
  }
50
38
  end
51
39
 
@@ -64,18 +52,14 @@ module FalaAI
64
52
  {
65
53
  :'label' => :'String',
66
54
  :'level_code' => :'String',
67
- :'color' => :'String',
68
- :'icon' => :'String',
69
55
  :'risk_matrix' => :'Hash<String, Object>',
70
- :'applied_actions' => :'Array<RiskAuditAppliedActionV2>',
71
- :'decision_details' => :'Object'
56
+ :'applied_actions' => :'Array<RiskAuditAppliedActionV2>'
72
57
  }
73
58
  end
74
59
 
75
60
  # List of attributes with nullable: true
76
61
  def self.openapi_nullable
77
62
  Set.new([
78
- :'decision_details'
79
63
  ])
80
64
  end
81
65
 
@@ -103,14 +87,6 @@ module FalaAI
103
87
  self.level_code = attributes[:'level_code']
104
88
  end
105
89
 
106
- if attributes.key?(:'color')
107
- self.color = attributes[:'color']
108
- end
109
-
110
- if attributes.key?(:'icon')
111
- self.icon = attributes[:'icon']
112
- end
113
-
114
90
  if attributes.key?(:'risk_matrix')
115
91
  if (value = attributes[:'risk_matrix']).is_a?(Hash)
116
92
  self.risk_matrix = value
@@ -122,10 +98,6 @@ module FalaAI
122
98
  self.applied_actions = value
123
99
  end
124
100
  end
125
-
126
- if attributes.key?(:'decision_details')
127
- self.decision_details = attributes[:'decision_details']
128
- end
129
101
  end
130
102
 
131
103
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -150,11 +122,8 @@ module FalaAI
150
122
  self.class == o.class &&
151
123
  label == o.label &&
152
124
  level_code == o.level_code &&
153
- color == o.color &&
154
- icon == o.icon &&
155
125
  risk_matrix == o.risk_matrix &&
156
- applied_actions == o.applied_actions &&
157
- decision_details == o.decision_details
126
+ applied_actions == o.applied_actions
158
127
  end
159
128
 
160
129
  # @see the `==` method
@@ -166,7 +135,7 @@ module FalaAI
166
135
  # Calculates hash code according to all attributes.
167
136
  # @return [Integer] Hash code
168
137
  def hash
169
- [label, level_code, color, icon, risk_matrix, applied_actions, decision_details].hash
138
+ [label, level_code, risk_matrix, applied_actions].hash
170
139
  end
171
140
 
172
141
  # 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
@@ -47,7 +47,7 @@ module FalaAI
47
47
  def self.openapi_types
48
48
  {
49
49
  :'audio_seconds' => :'Float',
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
@@ -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
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module FalaAI
17
17
  class WhatsappConversation < ApiModelBase
18
- # Conversation identifier in the batch
18
+ # Stable conversation id: yyyymmddhhmm-<first speaker>[-xN for >2 speakers]
19
19
  attr_accessor :conversation_id
20
20
 
21
21
  # Real start (wall-clock, ISO)
@@ -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,28 @@ module FalaAI
33
33
  # Segmentation parameters and counts
34
34
  attr_accessor :meta
35
35
 
36
+ class EnumAttributeValidator
37
+ attr_reader :datatype
38
+ attr_reader :allowable_values
39
+
40
+ def initialize(datatype, allowable_values)
41
+ @allowable_values = allowable_values.map do |value|
42
+ case datatype.to_s
43
+ when /Integer/i
44
+ value.to_i
45
+ when /Float/i
46
+ value.to_f
47
+ else
48
+ value
49
+ end
50
+ end
51
+ end
52
+
53
+ def valid?(value)
54
+ !value || allowable_values.include?(value)
55
+ end
56
+ end
57
+
36
58
  # Attribute mapping from ruby-style variable name to JSON key.
37
59
  def self.attribute_map
38
60
  {
@@ -160,6 +182,8 @@ module FalaAI
160
182
  warn '[DEPRECATED] the `valid?` method is obsolete'
161
183
  return false if @id.nil?
162
184
  return false if @object.nil?
185
+ object_validator = EnumAttributeValidator.new('String', ["conversations"])
186
+ return false unless object_validator.valid?(@object)
163
187
  return false if @usage.nil?
164
188
  return false if @conversations.nil?
165
189
  return false if @meta.nil?
@@ -176,13 +200,13 @@ module FalaAI
176
200
  @id = id
177
201
  end
178
202
 
179
- # Custom attribute writer method with validation
180
- # @param [Object] object Value to be assigned
203
+ # Custom attribute writer method checking allowed values (enum).
204
+ # @param [Object] object Object to be assigned
181
205
  def object=(object)
182
- if object.nil?
183
- fail ArgumentError, 'object cannot be nil'
206
+ validator = EnumAttributeValidator.new('String', ["conversations"])
207
+ unless validator.valid?(object)
208
+ fail ArgumentError, "invalid value for \"object\", must be one of #{validator.allowable_values}."
184
209
  end
185
-
186
210
  @object = object
187
211
  end
188
212