falaai-api 1.21.54 → 2.21.273
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -7
- data/docs/AnalysisApi.md +4 -0
- data/docs/DiagnosticParticipant.md +1 -1
- data/docs/DiagnosticUsage.md +1 -1
- data/docs/Participant.md +1 -1
- data/docs/ParticipantDiagnostic.md +7 -3
- data/docs/ResponseExtractConversationsV1WhatsappExtractconversationsPost.md +42 -0
- data/docs/RiskAuditAppliedActionV2.md +0 -4
- data/docs/RiskAuditAuditDecisionsV2.md +1 -3
- data/docs/RiskAuditConversationScoresV2.md +0 -2
- data/docs/RiskAuditDetectionItemV2.md +5 -75
- data/docs/RiskAuditSummaryV2.md +0 -4
- data/docs/RiskAuditUsageV2.md +1 -1
- data/docs/RiskAuditVerdictV2.md +1 -7
- data/docs/SpeechApi.md +2 -0
- data/docs/TranscriptionUsage.md +1 -1
- data/docs/UsageByKeyItem.md +1 -1
- data/docs/UsageLogItem.md +1 -1
- data/docs/WebhooksApi.md +1 -1
- data/docs/WhatsappApi.md +16 -10
- data/docs/WhatsappConversation.md +1 -1
- data/docs/WhatsappMeta.md +3 -1
- data/docs/WhatsappPreviewItem.md +32 -0
- data/docs/WhatsappPreviewItemBreakdown.md +26 -0
- data/docs/WhatsappPreviewItemCredits.md +20 -0
- data/docs/WhatsappPreviewItemMedia.md +30 -0
- data/docs/WhatsappPreviewParams.md +32 -0
- data/docs/WhatsappPreviewResponse.md +32 -0
- data/docs/WhatsappPreviewWindow.md +22 -0
- data/docs/WhatsappUsage.md +11 -5
- data/docs/index.html +37 -9
- data/lib/falaai-api/api/analysis_api.rb +5 -1
- data/lib/falaai-api/api/email_alerts_api.rb +1 -1
- data/lib/falaai-api/api/health_api.rb +1 -1
- data/lib/falaai-api/api/speech_api.rb +3 -1
- data/lib/falaai-api/api/usage_api.rb +1 -1
- data/lib/falaai-api/api/version_api.rb +1 -1
- data/lib/falaai-api/api/webhooks_api.rb +3 -3
- data/lib/falaai-api/api/whatsapp_api.rb +21 -21
- data/lib/falaai-api/api_client.rb +1 -1
- data/lib/falaai-api/api_error.rb +1 -1
- data/lib/falaai-api/api_model_base.rb +1 -1
- data/lib/falaai-api/configuration.rb +1 -1
- data/lib/falaai-api/models/audio_event.rb +1 -1
- data/lib/falaai-api/models/audio_input_meta.rb +1 -1
- data/lib/falaai-api/models/create_email_alert_request.rb +1 -1
- data/lib/falaai-api/models/create_webhook_request.rb +1 -1
- data/lib/falaai-api/models/diagnostic_analysis_map.rb +1 -1
- data/lib/falaai-api/models/diagnostic_audio_event.rb +1 -1
- data/lib/falaai-api/models/diagnostic_categorical_analysis.rb +1 -1
- data/lib/falaai-api/models/diagnostic_participant.rb +4 -4
- data/lib/falaai-api/models/diagnostic_request.rb +3 -3
- data/lib/falaai-api/models/diagnostic_response.rb +1 -1
- data/lib/falaai-api/models/diagnostic_text_analysis.rb +1 -1
- data/lib/falaai-api/models/diagnostic_usage.rb +3 -3
- data/lib/falaai-api/models/email_alert_item.rb +1 -1
- data/lib/falaai-api/models/email_alert_list_response.rb +1 -1
- data/lib/falaai-api/models/email_alert_message_response.rb +1 -1
- data/lib/falaai-api/models/email_event.rb +1 -1
- data/lib/falaai-api/models/health_response.rb +1 -1
- data/lib/falaai-api/models/http_validation_error.rb +1 -1
- data/lib/falaai-api/models/location_inner.rb +1 -1
- data/lib/falaai-api/models/message_response.rb +1 -1
- data/lib/falaai-api/models/participant.rb +4 -4
- data/lib/falaai-api/models/participant_diagnostic.rb +63 -7
- data/lib/falaai-api/models/response_extract_conversations_v1_whatsapp_extractconversations_post.rb +103 -0
- data/lib/falaai-api/models/risk_audit_analysis_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_applied_action_v2.rb +2 -26
- data/lib/falaai-api/models/risk_audit_audio_event_model_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_audit_decisions_v2.rb +5 -17
- data/lib/falaai-api/models/risk_audit_conversation_scores_v2.rb +2 -12
- data/lib/falaai-api/models/risk_audit_detection_item_v2.rb +19 -393
- data/lib/falaai-api/models/risk_audit_detections_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_indexer_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_meta_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_participant_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_participants_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_request.rb +3 -3
- data/lib/falaai-api/models/risk_audit_scores_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_scoring_explanation_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_summary_v2.rb +2 -24
- data/lib/falaai-api/models/risk_audit_timeline_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_usage_v2.rb +2 -2
- data/lib/falaai-api/models/risk_audit_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_v2_response.rb +1 -1
- data/lib/falaai-api/models/risk_audit_verdict_v2.rb +5 -36
- data/lib/falaai-api/models/transcription_response.rb +1 -1
- data/lib/falaai-api/models/transcription_usage.rb +2 -2
- data/lib/falaai-api/models/update_email_alert_request.rb +1 -1
- data/lib/falaai-api/models/update_webhook_request.rb +1 -1
- data/lib/falaai-api/models/usage_by_key_item.rb +2 -2
- data/lib/falaai-api/models/usage_log_item.rb +2 -2
- data/lib/falaai-api/models/usage_log_response.rb +1 -1
- data/lib/falaai-api/models/validation_error.rb +1 -1
- data/lib/falaai-api/models/version_response.rb +1 -1
- data/lib/falaai-api/models/webhook_event.rb +1 -1
- data/lib/falaai-api/models/webhook_item.rb +1 -1
- data/lib/falaai-api/models/webhook_list_response.rb +1 -1
- data/lib/falaai-api/models/whatsapp_conversation.rb +2 -2
- data/lib/falaai-api/models/whatsapp_conversations_response.rb +30 -6
- data/lib/falaai-api/models/whatsapp_meta.rb +32 -5
- data/lib/falaai-api/models/whatsapp_preview_item.rb +354 -0
- data/lib/falaai-api/models/whatsapp_preview_item_breakdown.rb +273 -0
- data/lib/falaai-api/models/whatsapp_preview_item_credits.rb +192 -0
- data/lib/falaai-api/models/whatsapp_preview_item_media.rb +329 -0
- data/lib/falaai-api/models/whatsapp_preview_params.rb +354 -0
- data/lib/falaai-api/models/whatsapp_preview_response.rb +384 -0
- data/lib/falaai-api/models/whatsapp_preview_window.rb +219 -0
- data/lib/falaai-api/models/whatsapp_speaker.rb +1 -1
- data/lib/falaai-api/models/whatsapp_usage.rb +90 -9
- data/lib/falaai-api/version.rb +2 -2
- data/lib/falaai-api.rb +9 -1
- 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:
|
|
6
|
+
The version of the OpenAPI document: 2.21.273
|
|
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
|
# Exact speaker label from the dialog (e.g. 'Speaker 1')
|
|
19
19
|
attr_accessor :interlocutor
|
|
20
20
|
|
|
21
|
-
# Role: agent | client | bot | agent_requester | agent_custodian (null when not informed/inferred)
|
|
21
|
+
# Role (always EN-US token): agent | client | bot | agent_requester | agent_custodian (null when not informed/inferred)
|
|
22
22
|
attr_accessor :role
|
|
23
23
|
|
|
24
24
|
# Participant name if mentioned in the dialogue
|
|
@@ -27,9 +27,37 @@ module FalaAI
|
|
|
27
27
|
# high | medium | low
|
|
28
28
|
attr_accessor :confidence
|
|
29
29
|
|
|
30
|
-
#
|
|
30
|
+
# Role source (input/inferred)
|
|
31
|
+
attr_accessor :source
|
|
32
|
+
|
|
33
|
+
# Primeira evidencia valida (compatibilidade; no timestamps)
|
|
31
34
|
attr_accessor :evidence
|
|
32
35
|
|
|
36
|
+
# Ate 3 evidencias literais discriminantes do papel
|
|
37
|
+
attr_accessor :evidences
|
|
38
|
+
|
|
39
|
+
class EnumAttributeValidator
|
|
40
|
+
attr_reader :datatype
|
|
41
|
+
attr_reader :allowable_values
|
|
42
|
+
|
|
43
|
+
def initialize(datatype, allowable_values)
|
|
44
|
+
@allowable_values = allowable_values.map do |value|
|
|
45
|
+
case datatype.to_s
|
|
46
|
+
when /Integer/i
|
|
47
|
+
value.to_i
|
|
48
|
+
when /Float/i
|
|
49
|
+
value.to_f
|
|
50
|
+
else
|
|
51
|
+
value
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def valid?(value)
|
|
57
|
+
!value || allowable_values.include?(value)
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
33
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
62
|
def self.attribute_map
|
|
35
63
|
{
|
|
@@ -37,7 +65,9 @@ module FalaAI
|
|
|
37
65
|
:'role' => :'role',
|
|
38
66
|
:'name' => :'name',
|
|
39
67
|
:'confidence' => :'confidence',
|
|
40
|
-
:'
|
|
68
|
+
:'source' => :'source',
|
|
69
|
+
:'evidence' => :'evidence',
|
|
70
|
+
:'evidences' => :'evidences'
|
|
41
71
|
}
|
|
42
72
|
end
|
|
43
73
|
|
|
@@ -58,7 +88,9 @@ module FalaAI
|
|
|
58
88
|
:'role' => :'String',
|
|
59
89
|
:'name' => :'String',
|
|
60
90
|
:'confidence' => :'String',
|
|
61
|
-
:'
|
|
91
|
+
:'source' => :'String',
|
|
92
|
+
:'evidence' => :'String',
|
|
93
|
+
:'evidences' => :'Array<String>'
|
|
62
94
|
}
|
|
63
95
|
end
|
|
64
96
|
|
|
@@ -102,9 +134,19 @@ module FalaAI
|
|
|
102
134
|
self.confidence = attributes[:'confidence']
|
|
103
135
|
end
|
|
104
136
|
|
|
137
|
+
if attributes.key?(:'source')
|
|
138
|
+
self.source = attributes[:'source']
|
|
139
|
+
end
|
|
140
|
+
|
|
105
141
|
if attributes.key?(:'evidence')
|
|
106
142
|
self.evidence = attributes[:'evidence']
|
|
107
143
|
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'evidences')
|
|
146
|
+
if (value = attributes[:'evidences']).is_a?(Array)
|
|
147
|
+
self.evidences = value
|
|
148
|
+
end
|
|
149
|
+
end
|
|
108
150
|
end
|
|
109
151
|
|
|
110
152
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -124,6 +166,8 @@ module FalaAI
|
|
|
124
166
|
def valid?
|
|
125
167
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
126
168
|
return false if @interlocutor.nil?
|
|
169
|
+
role_validator = EnumAttributeValidator.new('String', ["agent", "client", "bot", "agent_requester", "agent_custodian"])
|
|
170
|
+
return false unless role_validator.valid?(@role)
|
|
127
171
|
true
|
|
128
172
|
end
|
|
129
173
|
|
|
@@ -137,6 +181,16 @@ module FalaAI
|
|
|
137
181
|
@interlocutor = interlocutor
|
|
138
182
|
end
|
|
139
183
|
|
|
184
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
185
|
+
# @param [Object] role Object to be assigned
|
|
186
|
+
def role=(role)
|
|
187
|
+
validator = EnumAttributeValidator.new('String', ["agent", "client", "bot", "agent_requester", "agent_custodian"])
|
|
188
|
+
unless validator.valid?(role)
|
|
189
|
+
fail ArgumentError, "invalid value for \"role\", must be one of #{validator.allowable_values}."
|
|
190
|
+
end
|
|
191
|
+
@role = role
|
|
192
|
+
end
|
|
193
|
+
|
|
140
194
|
# Checks equality by comparing each attribute.
|
|
141
195
|
# @param [Object] Object to be compared
|
|
142
196
|
def ==(o)
|
|
@@ -146,7 +200,9 @@ module FalaAI
|
|
|
146
200
|
role == o.role &&
|
|
147
201
|
name == o.name &&
|
|
148
202
|
confidence == o.confidence &&
|
|
149
|
-
|
|
203
|
+
source == o.source &&
|
|
204
|
+
evidence == o.evidence &&
|
|
205
|
+
evidences == o.evidences
|
|
150
206
|
end
|
|
151
207
|
|
|
152
208
|
# @see the `==` method
|
|
@@ -158,7 +214,7 @@ module FalaAI
|
|
|
158
214
|
# Calculates hash code according to all attributes.
|
|
159
215
|
# @return [Integer] Hash code
|
|
160
216
|
def hash
|
|
161
|
-
[interlocutor, role, name, confidence, evidence].hash
|
|
217
|
+
[interlocutor, role, name, confidence, source, evidence, evidences].hash
|
|
162
218
|
end
|
|
163
219
|
|
|
164
220
|
# Builds the object from hash
|
data/lib/falaai-api/models/response_extract_conversations_v1_whatsapp_extractconversations_post.rb
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
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: 2.21.273
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module FalaAI
|
|
17
|
+
module ResponseExtractConversationsV1WhatsappExtractconversationsPost
|
|
18
|
+
class << self
|
|
19
|
+
# List of class defined in anyOf (OpenAPI v3)
|
|
20
|
+
def openapi_any_of
|
|
21
|
+
[
|
|
22
|
+
:'WhatsappConversationsResponse',
|
|
23
|
+
:'WhatsappPreviewResponse'
|
|
24
|
+
]
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Builds the object
|
|
28
|
+
# @param [Mixed] Data to be matched against the list of anyOf items
|
|
29
|
+
# @return [Object] Returns the model or the data itself
|
|
30
|
+
def build(data)
|
|
31
|
+
# Go through the list of anyOf items and attempt to identify the appropriate one.
|
|
32
|
+
# Note:
|
|
33
|
+
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
|
34
|
+
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
|
35
|
+
# - TODO: scalar values are de facto behaving as if they were nullable.
|
|
36
|
+
# - TODO: logging when debugging is set.
|
|
37
|
+
openapi_any_of.each do |klass|
|
|
38
|
+
begin
|
|
39
|
+
next if klass == :AnyType # "nullable: true"
|
|
40
|
+
return find_and_cast_into_type(klass, data)
|
|
41
|
+
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
openapi_any_of.include?(:AnyType) ? data : nil
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
private
|
|
49
|
+
|
|
50
|
+
SchemaMismatchError = Class.new(StandardError)
|
|
51
|
+
|
|
52
|
+
# Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
|
|
53
|
+
def find_and_cast_into_type(klass, data)
|
|
54
|
+
return if data.nil?
|
|
55
|
+
|
|
56
|
+
case klass.to_s
|
|
57
|
+
when 'Boolean'
|
|
58
|
+
return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
|
|
59
|
+
when 'Float'
|
|
60
|
+
return data if data.instance_of?(Float)
|
|
61
|
+
when 'Integer'
|
|
62
|
+
return data if data.instance_of?(Integer)
|
|
63
|
+
when 'Time'
|
|
64
|
+
return Time.parse(data)
|
|
65
|
+
when 'Date'
|
|
66
|
+
return Date.iso8601(data)
|
|
67
|
+
when 'String'
|
|
68
|
+
return data if data.instance_of?(String)
|
|
69
|
+
when 'Object' # "type: object"
|
|
70
|
+
return data if data.instance_of?(Hash)
|
|
71
|
+
when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
|
|
72
|
+
if data.instance_of?(Array)
|
|
73
|
+
sub_type = Regexp.last_match[:sub_type]
|
|
74
|
+
return data.map { |item| find_and_cast_into_type(sub_type, item) }
|
|
75
|
+
end
|
|
76
|
+
when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
|
|
77
|
+
if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
|
|
78
|
+
sub_type = Regexp.last_match[:sub_type]
|
|
79
|
+
return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
|
|
80
|
+
end
|
|
81
|
+
else # model
|
|
82
|
+
const = FalaAI.const_get(klass)
|
|
83
|
+
if const
|
|
84
|
+
if const.respond_to?(:openapi_any_of) # nested anyOf model
|
|
85
|
+
model = const.build(data)
|
|
86
|
+
return model if model
|
|
87
|
+
else
|
|
88
|
+
# raise if data contains keys that are not known to the model
|
|
89
|
+
raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
|
|
90
|
+
model = const.build_from_hash(data)
|
|
91
|
+
return model if model
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
raise # if no match by now, raise
|
|
97
|
+
rescue
|
|
98
|
+
raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
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:
|
|
6
|
+
The version of the OpenAPI document: 2.21.273
|
|
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:
|
|
6
|
+
The version of the OpenAPI document: 2.21.273
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -27,12 +27,6 @@ module FalaAI
|
|
|
27
27
|
# CRITICO/ALTO/MEDIO/BAIXO
|
|
28
28
|
attr_accessor :priority
|
|
29
29
|
|
|
30
|
-
# Color
|
|
31
|
-
attr_accessor :color
|
|
32
|
-
|
|
33
|
-
# Icon
|
|
34
|
-
attr_accessor :icon
|
|
35
|
-
|
|
36
30
|
# Condition
|
|
37
31
|
attr_accessor :condition
|
|
38
32
|
|
|
@@ -46,8 +40,6 @@ module FalaAI
|
|
|
46
40
|
:'label' => :'label',
|
|
47
41
|
:'description' => :'description',
|
|
48
42
|
:'priority' => :'priority',
|
|
49
|
-
:'color' => :'color',
|
|
50
|
-
:'icon' => :'icon',
|
|
51
43
|
:'condition' => :'condition',
|
|
52
44
|
:'reason' => :'reason'
|
|
53
45
|
}
|
|
@@ -70,8 +62,6 @@ module FalaAI
|
|
|
70
62
|
:'label' => :'String',
|
|
71
63
|
:'description' => :'String',
|
|
72
64
|
:'priority' => :'String',
|
|
73
|
-
:'color' => :'String',
|
|
74
|
-
:'icon' => :'String',
|
|
75
65
|
:'condition' => :'String',
|
|
76
66
|
:'reason' => :'String'
|
|
77
67
|
}
|
|
@@ -123,18 +113,6 @@ module FalaAI
|
|
|
123
113
|
self.priority = nil
|
|
124
114
|
end
|
|
125
115
|
|
|
126
|
-
if attributes.key?(:'color')
|
|
127
|
-
self.color = attributes[:'color']
|
|
128
|
-
else
|
|
129
|
-
self.color = ''
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
if attributes.key?(:'icon')
|
|
133
|
-
self.icon = attributes[:'icon']
|
|
134
|
-
else
|
|
135
|
-
self.icon = ''
|
|
136
|
-
end
|
|
137
|
-
|
|
138
116
|
if attributes.key?(:'condition')
|
|
139
117
|
self.condition = attributes[:'condition']
|
|
140
118
|
end
|
|
@@ -230,8 +208,6 @@ module FalaAI
|
|
|
230
208
|
label == o.label &&
|
|
231
209
|
description == o.description &&
|
|
232
210
|
priority == o.priority &&
|
|
233
|
-
color == o.color &&
|
|
234
|
-
icon == o.icon &&
|
|
235
211
|
condition == o.condition &&
|
|
236
212
|
reason == o.reason
|
|
237
213
|
end
|
|
@@ -245,7 +221,7 @@ module FalaAI
|
|
|
245
221
|
# Calculates hash code according to all attributes.
|
|
246
222
|
# @return [Integer] Hash code
|
|
247
223
|
def hash
|
|
248
|
-
[action_type, label, description, priority,
|
|
224
|
+
[action_type, label, description, priority, condition, reason].hash
|
|
249
225
|
end
|
|
250
226
|
|
|
251
227
|
# 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:
|
|
6
|
+
The version of the OpenAPI document: 2.21.273
|
|
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:
|
|
6
|
+
The version of the OpenAPI document: 2.21.273
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -21,15 +21,11 @@ module FalaAI
|
|
|
21
21
|
# Has zero-tolerance violation
|
|
22
22
|
attr_accessor :has_zero_tolerance_violation
|
|
23
23
|
|
|
24
|
-
# Deterministic validator changes
|
|
25
|
-
attr_accessor :deterministic_validator_changes
|
|
26
|
-
|
|
27
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
25
|
def self.attribute_map
|
|
29
26
|
{
|
|
30
27
|
:'risk_origin' => :'risk_origin',
|
|
31
|
-
:'has_zero_tolerance_violation' => :'has_zero_tolerance_violation'
|
|
32
|
-
:'deterministic_validator_changes' => :'deterministic_validator_changes'
|
|
28
|
+
:'has_zero_tolerance_violation' => :'has_zero_tolerance_violation'
|
|
33
29
|
}
|
|
34
30
|
end
|
|
35
31
|
|
|
@@ -47,8 +43,7 @@ module FalaAI
|
|
|
47
43
|
def self.openapi_types
|
|
48
44
|
{
|
|
49
45
|
:'risk_origin' => :'String',
|
|
50
|
-
:'has_zero_tolerance_violation' => :'Boolean'
|
|
51
|
-
:'deterministic_validator_changes' => :'Array<Object>'
|
|
46
|
+
:'has_zero_tolerance_violation' => :'Boolean'
|
|
52
47
|
}
|
|
53
48
|
end
|
|
54
49
|
|
|
@@ -81,12 +76,6 @@ module FalaAI
|
|
|
81
76
|
if attributes.key?(:'has_zero_tolerance_violation')
|
|
82
77
|
self.has_zero_tolerance_violation = attributes[:'has_zero_tolerance_violation']
|
|
83
78
|
end
|
|
84
|
-
|
|
85
|
-
if attributes.key?(:'deterministic_validator_changes')
|
|
86
|
-
if (value = attributes[:'deterministic_validator_changes']).is_a?(Array)
|
|
87
|
-
self.deterministic_validator_changes = value
|
|
88
|
-
end
|
|
89
|
-
end
|
|
90
79
|
end
|
|
91
80
|
|
|
92
81
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -110,8 +99,7 @@ module FalaAI
|
|
|
110
99
|
return true if self.equal?(o)
|
|
111
100
|
self.class == o.class &&
|
|
112
101
|
risk_origin == o.risk_origin &&
|
|
113
|
-
has_zero_tolerance_violation == o.has_zero_tolerance_violation
|
|
114
|
-
deterministic_validator_changes == o.deterministic_validator_changes
|
|
102
|
+
has_zero_tolerance_violation == o.has_zero_tolerance_violation
|
|
115
103
|
end
|
|
116
104
|
|
|
117
105
|
# @see the `==` method
|
|
@@ -123,7 +111,7 @@ module FalaAI
|
|
|
123
111
|
# Calculates hash code according to all attributes.
|
|
124
112
|
# @return [Integer] Hash code
|
|
125
113
|
def hash
|
|
126
|
-
[risk_origin, has_zero_tolerance_violation
|
|
114
|
+
[risk_origin, has_zero_tolerance_violation].hash
|
|
127
115
|
end
|
|
128
116
|
|
|
129
117
|
# 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:
|
|
6
|
+
The version of the OpenAPI document: 2.21.273
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -39,9 +39,6 @@ module FalaAI
|
|
|
39
39
|
# Global risk severity label
|
|
40
40
|
attr_accessor :global_risk_severity_label
|
|
41
41
|
|
|
42
|
-
# Global risk severity color
|
|
43
|
-
attr_accessor :global_risk_severity_color
|
|
44
|
-
|
|
45
42
|
# Risk likelihood avg
|
|
46
43
|
attr_accessor :risk_likelihood_avg
|
|
47
44
|
|
|
@@ -59,7 +56,6 @@ module FalaAI
|
|
|
59
56
|
:'positive_negative_ratio' => :'positive_negative_ratio',
|
|
60
57
|
:'global_risk_severity' => :'global_risk_severity',
|
|
61
58
|
:'global_risk_severity_label' => :'global_risk_severity_label',
|
|
62
|
-
:'global_risk_severity_color' => :'global_risk_severity_color',
|
|
63
59
|
:'risk_likelihood_avg' => :'risk_likelihood_avg',
|
|
64
60
|
:'risk_impact_avg' => :'risk_impact_avg'
|
|
65
61
|
}
|
|
@@ -86,7 +82,6 @@ module FalaAI
|
|
|
86
82
|
:'positive_negative_ratio' => :'Object',
|
|
87
83
|
:'global_risk_severity' => :'String',
|
|
88
84
|
:'global_risk_severity_label' => :'String',
|
|
89
|
-
:'global_risk_severity_color' => :'String',
|
|
90
85
|
:'risk_likelihood_avg' => :'Float',
|
|
91
86
|
:'risk_impact_avg' => :'Float'
|
|
92
87
|
}
|
|
@@ -149,10 +144,6 @@ module FalaAI
|
|
|
149
144
|
self.global_risk_severity_label = attributes[:'global_risk_severity_label']
|
|
150
145
|
end
|
|
151
146
|
|
|
152
|
-
if attributes.key?(:'global_risk_severity_color')
|
|
153
|
-
self.global_risk_severity_color = attributes[:'global_risk_severity_color']
|
|
154
|
-
end
|
|
155
|
-
|
|
156
147
|
if attributes.key?(:'risk_likelihood_avg')
|
|
157
148
|
self.risk_likelihood_avg = attributes[:'risk_likelihood_avg']
|
|
158
149
|
end
|
|
@@ -190,7 +181,6 @@ module FalaAI
|
|
|
190
181
|
positive_negative_ratio == o.positive_negative_ratio &&
|
|
191
182
|
global_risk_severity == o.global_risk_severity &&
|
|
192
183
|
global_risk_severity_label == o.global_risk_severity_label &&
|
|
193
|
-
global_risk_severity_color == o.global_risk_severity_color &&
|
|
194
184
|
risk_likelihood_avg == o.risk_likelihood_avg &&
|
|
195
185
|
risk_impact_avg == o.risk_impact_avg
|
|
196
186
|
end
|
|
@@ -204,7 +194,7 @@ module FalaAI
|
|
|
204
194
|
# Calculates hash code according to all attributes.
|
|
205
195
|
# @return [Integer] Hash code
|
|
206
196
|
def hash
|
|
207
|
-
[consolidated_score, violation_density_per_min, sentiment_trend, pct_turns_with_violation, most_critical_turn, positive_negative_ratio, global_risk_severity, global_risk_severity_label,
|
|
197
|
+
[consolidated_score, violation_density_per_min, sentiment_trend, pct_turns_with_violation, most_critical_turn, positive_negative_ratio, global_risk_severity, global_risk_severity_label, risk_likelihood_avg, risk_impact_avg].hash
|
|
208
198
|
end
|
|
209
199
|
|
|
210
200
|
# Builds the object from hash
|