falaai-api 1.21.47

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 (130) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +205 -0
  4. data/docs/AnalysisApi.md +147 -0
  5. data/docs/AudioEvent.md +26 -0
  6. data/docs/AudioInputMeta.md +26 -0
  7. data/docs/AuditoriaRiscoAnalysisV2.md +22 -0
  8. data/docs/AuditoriaRiscoAppliedActionV2.md +32 -0
  9. data/docs/AuditoriaRiscoAudioEventModelV2.md +22 -0
  10. data/docs/AuditoriaRiscoAuditDecisionsV2.md +22 -0
  11. data/docs/AuditoriaRiscoConversationScoresV2.md +38 -0
  12. data/docs/AuditoriaRiscoDetectionItemV2.md +110 -0
  13. data/docs/AuditoriaRiscoDetectionsV2.md +26 -0
  14. data/docs/AuditoriaRiscoIndexerV2.md +18 -0
  15. data/docs/AuditoriaRiscoMetaV2.md +28 -0
  16. data/docs/AuditoriaRiscoParticipantV2.md +22 -0
  17. data/docs/AuditoriaRiscoParticipantsV2.md +26 -0
  18. data/docs/AuditoriaRiscoRequest.md +38 -0
  19. data/docs/AuditoriaRiscoScoresV2.md +20 -0
  20. data/docs/AuditoriaRiscoScoringExplanationV2.md +20 -0
  21. data/docs/AuditoriaRiscoSummaryV2.md +48 -0
  22. data/docs/AuditoriaRiscoTimelineV2.md +22 -0
  23. data/docs/AuditoriaRiscoUsageV2.md +22 -0
  24. data/docs/AuditoriaRiscoV2.md +46 -0
  25. data/docs/AuditoriaRiscoV2Response.md +18 -0
  26. data/docs/AuditoriaRiscoVerdictV2.md +30 -0
  27. data/docs/CreateEmailAlertRequest.md +22 -0
  28. data/docs/CreateWebhookRequest.md +24 -0
  29. data/docs/DiagnosticAnalysisMap.md +28 -0
  30. data/docs/DiagnosticAudioEvent.md +26 -0
  31. data/docs/DiagnosticCategoricalAnalysis.md +22 -0
  32. data/docs/DiagnosticRequest.md +30 -0
  33. data/docs/DiagnosticResponse.md +28 -0
  34. data/docs/DiagnosticTextAnalysis.md +18 -0
  35. data/docs/DiagnosticUsage.md +22 -0
  36. data/docs/EmailAlertItem.md +32 -0
  37. data/docs/EmailAlertListResponse.md +22 -0
  38. data/docs/EmailAlertMessageResponse.md +18 -0
  39. data/docs/EmailAlertsApi.md +285 -0
  40. data/docs/EmailEvent.md +15 -0
  41. data/docs/HTTPValidationError.md +18 -0
  42. data/docs/HealthApi.md +137 -0
  43. data/docs/HealthResponse.md +28 -0
  44. data/docs/LocationInner.md +15 -0
  45. data/docs/MessageResponse.md +18 -0
  46. data/docs/Participant.md +22 -0
  47. data/docs/ParticipantDiagnostic.md +26 -0
  48. data/docs/SpeechApi.md +85 -0
  49. data/docs/TranscriptionResponse.md +49 -0
  50. data/docs/TranscriptionUsage.md +22 -0
  51. data/docs/UpdateEmailAlertRequest.md +24 -0
  52. data/docs/UpdateWebhookRequest.md +26 -0
  53. data/docs/UsageApi.md +151 -0
  54. data/docs/UsageByKeyItem.md +26 -0
  55. data/docs/UsageLogItem.md +28 -0
  56. data/docs/UsageLogResponse.md +22 -0
  57. data/docs/ValidationError.md +26 -0
  58. data/docs/VersionApi.md +72 -0
  59. data/docs/VersionResponse.md +22 -0
  60. data/docs/WebhookEvent.md +15 -0
  61. data/docs/WebhookItem.md +42 -0
  62. data/docs/WebhookListResponse.md +22 -0
  63. data/docs/WebhooksApi.md +293 -0
  64. data/lib/falaai-api/api/analysis_api.rb +158 -0
  65. data/lib/falaai-api/api/email_alerts_api.rb +294 -0
  66. data/lib/falaai-api/api/health_api.rb +132 -0
  67. data/lib/falaai-api/api/speech_api.rb +100 -0
  68. data/lib/falaai-api/api/usage_api.rb +156 -0
  69. data/lib/falaai-api/api/version_api.rb +77 -0
  70. data/lib/falaai-api/api/webhooks_api.rb +302 -0
  71. data/lib/falaai-api/api_client.rb +397 -0
  72. data/lib/falaai-api/api_error.rb +58 -0
  73. data/lib/falaai-api/api_model_base.rb +88 -0
  74. data/lib/falaai-api/configuration.rb +309 -0
  75. data/lib/falaai-api/models/audio_event.rb +273 -0
  76. data/lib/falaai-api/models/audio_input_meta.rb +273 -0
  77. data/lib/falaai-api/models/auditoria_risco_analysis_v2.rb +174 -0
  78. data/lib/falaai-api/models/auditoria_risco_applied_action_v2.rb +292 -0
  79. data/lib/falaai-api/models/auditoria_risco_audio_event_model_v2.rb +174 -0
  80. data/lib/falaai-api/models/auditoria_risco_audit_decisions_v2.rb +170 -0
  81. data/lib/falaai-api/models/auditoria_risco_conversation_scores_v2.rb +251 -0
  82. data/lib/falaai-api/models/auditoria_risco_detection_item_v2.rb +651 -0
  83. data/lib/falaai-api/models/auditoria_risco_detections_v2.rb +198 -0
  84. data/lib/falaai-api/models/auditoria_risco_indexer_v2.rb +150 -0
  85. data/lib/falaai-api/models/auditoria_risco_meta_v2.rb +234 -0
  86. data/lib/falaai-api/models/auditoria_risco_participant_v2.rb +168 -0
  87. data/lib/falaai-api/models/auditoria_risco_participants_v2.rb +196 -0
  88. data/lib/falaai-api/models/auditoria_risco_request.rb +451 -0
  89. data/lib/falaai-api/models/auditoria_risco_scores_v2.rb +177 -0
  90. data/lib/falaai-api/models/auditoria_risco_scoring_explanation_v2.rb +160 -0
  91. data/lib/falaai-api/models/auditoria_risco_summary_v2.rb +300 -0
  92. data/lib/falaai-api/models/auditoria_risco_timeline_v2.rb +174 -0
  93. data/lib/falaai-api/models/auditoria_risco_usage_v2.rb +219 -0
  94. data/lib/falaai-api/models/auditoria_risco_v2.rb +548 -0
  95. data/lib/falaai-api/models/auditoria_risco_v2_response.rb +165 -0
  96. data/lib/falaai-api/models/auditoria_risco_verdict_v2.rb +213 -0
  97. data/lib/falaai-api/models/create_email_alert_request.rb +221 -0
  98. data/lib/falaai-api/models/create_webhook_request.rb +233 -0
  99. data/lib/falaai-api/models/diagnostic_analysis_map.rb +285 -0
  100. data/lib/falaai-api/models/diagnostic_audio_event.rb +205 -0
  101. data/lib/falaai-api/models/diagnostic_categorical_analysis.rb +170 -0
  102. data/lib/falaai-api/models/diagnostic_request.rb +316 -0
  103. data/lib/falaai-api/models/diagnostic_response.rb +283 -0
  104. data/lib/falaai-api/models/diagnostic_text_analysis.rb +148 -0
  105. data/lib/falaai-api/models/diagnostic_usage.rb +219 -0
  106. data/lib/falaai-api/models/email_alert_item.rb +356 -0
  107. data/lib/falaai-api/models/email_alert_list_response.rb +218 -0
  108. data/lib/falaai-api/models/email_alert_message_response.rb +165 -0
  109. data/lib/falaai-api/models/email_event.rb +47 -0
  110. data/lib/falaai-api/models/health_response.rb +300 -0
  111. data/lib/falaai-api/models/http_validation_error.rb +149 -0
  112. data/lib/falaai-api/models/location_inner.rb +103 -0
  113. data/lib/falaai-api/models/message_response.rb +165 -0
  114. data/lib/falaai-api/models/participant.rb +226 -0
  115. data/lib/falaai-api/models/participant_diagnostic.rb +222 -0
  116. data/lib/falaai-api/models/transcription_response.rb +540 -0
  117. data/lib/falaai-api/models/transcription_usage.rb +219 -0
  118. data/lib/falaai-api/models/update_email_alert_request.rb +176 -0
  119. data/lib/falaai-api/models/update_webhook_request.rb +190 -0
  120. data/lib/falaai-api/models/usage_by_key_item.rb +256 -0
  121. data/lib/falaai-api/models/usage_log_item.rb +300 -0
  122. data/lib/falaai-api/models/usage_log_response.rb +218 -0
  123. data/lib/falaai-api/models/validation_error.rb +237 -0
  124. data/lib/falaai-api/models/version_response.rb +219 -0
  125. data/lib/falaai-api/models/webhook_event.rb +48 -0
  126. data/lib/falaai-api/models/webhook_item.rb +442 -0
  127. data/lib/falaai-api/models/webhook_list_response.rb +218 -0
  128. data/lib/falaai-api/version.rb +15 -0
  129. data/lib/falaai-api.rb +100 -0
  130. metadata +229 -0
@@ -0,0 +1,26 @@
1
+ # FalaAI::ParticipantDiagnostic
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **interlocutor** | **String** | Exact speaker label from the dialog (e.g. 'Speaker 1') | |
8
+ | **role** | **String** | Role: agent | client | bot | agent_requester | agent_custodian | |
9
+ | **name** | **String** | Participant name if mentioned in the dialogue | [optional] |
10
+ | **confidence** | **String** | high | medium | low | [optional] |
11
+ | **evidence** | **String** | Exact verbatim quote supporting the role (no timestamps) | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'falaai-api'
17
+
18
+ instance = FalaAI::ParticipantDiagnostic.new(
19
+ interlocutor: Speaker 1,
20
+ role: client,
21
+ name: Antônio,
22
+ confidence: high,
23
+ evidence: Tá quarenta reais e setenta e um, Antônio.
24
+ )
25
+ ```
26
+
data/docs/SpeechApi.md ADDED
@@ -0,0 +1,85 @@
1
+ # FalaAI::SpeechApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_transcription_v1_audio_transcriptions_post**](SpeechApi.md#create_transcription_v1_audio_transcriptions_post) | **POST** /v1/audio/transcriptions | Transcribe audio to text |
8
+
9
+
10
+ ## create_transcription_v1_audio_transcriptions_post
11
+
12
+ > <TranscriptionResponse> create_transcription_v1_audio_transcriptions_post(file, opts)
13
+
14
+ Transcribe audio to text
15
+
16
+ Upload an audio file and receive transcription with speaker diarization, audio events, and dialog. **Supported formats:** .mp3, .mp4, .m4a, .wav, .flac, .ogg, .webm, .aac, .opus **Limits:** - Maximum audio duration: 3 hours - Maximum file size: 1GB - Cost: 1 credit per second of audio (rounded up), minimum 1 credit **Supported languages:** 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 **Python:** ```python import httpx response = httpx.post( 'https://api.fala.ai/v1/audio/transcriptions', headers={'Authorization': 'Bearer fai_xxx'}, files={'file': open('call.mp3', 'rb')}, data={'model': 'falaai-transcribe-1', 'language': 'pt'} ) print(response.json()) ``` **cURL:** ```bash curl https://api.fala.ai/v1/audio/transcriptions \\ -H 'Authorization: Bearer fai_xxx' \\ -F 'file=@call.mp3' \\ -F 'model=falaai-transcribe-1' \\ -F 'language=pt' ```
17
+
18
+ ### Examples
19
+
20
+ ```ruby
21
+ require 'time'
22
+ require 'falaai-api'
23
+ # setup authorization
24
+ FalaAI.configure do |config|
25
+ # Configure Bearer authorization (fai_xxx): ApiKeyAuth
26
+ config.access_token = 'YOUR_BEARER_TOKEN'
27
+ end
28
+
29
+ api_instance = FalaAI::SpeechApi.new
30
+ file = File.new('/path/to/some/file') # File |
31
+ opts = {
32
+ model: 'model_example', # String |
33
+ language: 'language_example', # String |
34
+ client_reference_id: 'client_reference_id_example' # String | Optional client-supplied ID echoed verbatim in the response. Use to correlate/sync with your system. Accepted charset: [A-Za-z0-9._:-]. Not idempotency.
35
+ }
36
+
37
+ begin
38
+ # Transcribe audio to text
39
+ result = api_instance.create_transcription_v1_audio_transcriptions_post(file, opts)
40
+ p result
41
+ rescue FalaAI::ApiError => e
42
+ puts "Error when calling SpeechApi->create_transcription_v1_audio_transcriptions_post: #{e}"
43
+ end
44
+ ```
45
+
46
+ #### Using the create_transcription_v1_audio_transcriptions_post_with_http_info variant
47
+
48
+ This returns an Array which contains the response data, status code and headers.
49
+
50
+ > <Array(<TranscriptionResponse>, Integer, Hash)> create_transcription_v1_audio_transcriptions_post_with_http_info(file, opts)
51
+
52
+ ```ruby
53
+ begin
54
+ # Transcribe audio to text
55
+ data, status_code, headers = api_instance.create_transcription_v1_audio_transcriptions_post_with_http_info(file, opts)
56
+ p status_code # => 2xx
57
+ p headers # => { ... }
58
+ p data # => <TranscriptionResponse>
59
+ rescue FalaAI::ApiError => e
60
+ puts "Error when calling SpeechApi->create_transcription_v1_audio_transcriptions_post_with_http_info: #{e}"
61
+ end
62
+ ```
63
+
64
+ ### Parameters
65
+
66
+ | Name | Type | Description | Notes |
67
+ | ---- | ---- | ----------- | ----- |
68
+ | **file** | **File** | | |
69
+ | **model** | **String** | | [optional][default to &#39;falaai-transcribe-1&#39;] |
70
+ | **language** | **String** | | [optional][default to &#39;pt&#39;] |
71
+ | **client_reference_id** | **String** | Optional client-supplied ID echoed verbatim in the response. Use to correlate/sync with your system. Accepted charset: [A-Za-z0-9._:-]. Not idempotency. | [optional] |
72
+
73
+ ### Return type
74
+
75
+ [**TranscriptionResponse**](TranscriptionResponse.md)
76
+
77
+ ### Authorization
78
+
79
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
80
+
81
+ ### HTTP request headers
82
+
83
+ - **Content-Type**: multipart/form-data
84
+ - **Accept**: application/json
85
+
@@ -0,0 +1,49 @@
1
+ # FalaAI::TranscriptionResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Unique transcription identifier. Prefix &#39;tr-&#39; followed by UUID | |
8
+ | **object** | **String** | Returned object type. Always &#39;transcription&#39; | |
9
+ | **model** | **String** | Model used for transcription. Ex: &#39;falaai-transcribe-1&#39; | |
10
+ | **filename** | **String** | Original audio file name uploaded | |
11
+ | **processed_at** | **String** | Processing datetime in ISO 8601 UTC format | |
12
+ | **usage** | [**TranscriptionUsage**](TranscriptionUsage.md) | Usage and processing information | |
13
+ | **language** | **String** | ISO 639-3 language code detected in audio. Ex: &#39;por&#39; (Portuguese), &#39;eng&#39; (English), &#39;spa&#39; (Spanish) | |
14
+ | **language_confidence** | **Float** | Language detection confidence level (0.0 to 1.0). Higher is more reliable | [optional] |
15
+ | **duration_seconds** | **Float** | Total audio duration in seconds | |
16
+ | **text** | **String** | Full transcription as plain text, including audio events in brackets | |
17
+ | **dialog** | **String** | Turn-by-turn formatted transcript with speaker identification and start/end timestamps | |
18
+ | **audio_events** | [**Array&lt;AudioEvent&gt;**](AudioEvent.md) | List of detected audio events (laughs, sighs, pauses, etc) with timestamps and duration | |
19
+ | **event_types** | **Array&lt;String&gt;** | Unique audio event types found in transcription, alphabetically sorted | |
20
+ | **word_count** | **Integer** | Total number of recognized words in transcription | |
21
+ | **input** | [**AudioInputMeta**](AudioInputMeta.md) | Metadados do arquivo de audio enviado (duracao, formato, codec, sample rate, canais) | |
22
+ | **client_reference_id** | **String** | Client-supplied ID echoed verbatim (if provided in request) | [optional] |
23
+
24
+ ## Example
25
+
26
+ ```ruby
27
+ require 'falaai-api'
28
+
29
+ instance = FalaAI::TranscriptionResponse.new(
30
+ id: tr-550e8400-e29b-41d4-a716-446655440000,
31
+ object: transcription,
32
+ model: falaai-transcribe-1,
33
+ filename: chamada.mp3,
34
+ processed_at: 2026-06-25T01:00:35.399252+00:00,
35
+ usage: null,
36
+ language: por,
37
+ language_confidence: 1.0,
38
+ duration_seconds: 151.04,
39
+ text: Oi, Alex. Oi. O, Thais- Oi...,
40
+ dialog: Speaker 1: [00:00:00.540 - 00:00:01.139] Oi, Alex.
41
+ Speaker 2: [00:00:01.940 - 00:00:02.720] Oi...,
42
+ audio_events: null,
43
+ event_types: [[riso], [suspiro]],
44
+ word_count: 773,
45
+ input: null,
46
+ client_reference_id: call-2026-08-30-001
47
+ )
48
+ ```
49
+
@@ -0,0 +1,22 @@
1
+ # FalaAI::TranscriptionUsage
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **audio_seconds** | **Float** | Actual audio duration processed in seconds | |
8
+ | **credits_consumed** | **Integer** | Number of credits consumed in this request | |
9
+ | **processing_ms** | **Integer** | Total processing time in milliseconds | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'falaai-api'
15
+
16
+ instance = FalaAI::TranscriptionUsage.new(
17
+ audio_seconds: 151.04,
18
+ credits_consumed: 65,
19
+ processing_ms: 15156
20
+ )
21
+ ```
22
+
@@ -0,0 +1,24 @@
1
+ # FalaAI::UpdateEmailAlertRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | [optional] |
8
+ | **email** | **String** | | [optional] |
9
+ | **events** | [**Array&lt;EmailEvent&gt;**](EmailEvent.md) | | [optional] |
10
+ | **active** | **Boolean** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'falaai-api'
16
+
17
+ instance = FalaAI::UpdateEmailAlertRequest.new(
18
+ name: null,
19
+ email: null,
20
+ events: null,
21
+ active: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,26 @@
1
+ # FalaAI::UpdateWebhookRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | Nome identificador | [optional] |
8
+ | **url** | **String** | URL HTTPS destino | [optional] |
9
+ | **events** | [**Array&lt;WebhookEvent&gt;**](WebhookEvent.md) | Eventos subscritos | [optional] |
10
+ | **retry_enabled** | **Boolean** | Habilita retry exponencial | [optional] |
11
+ | **active** | **Boolean** | Ativa/desativa sem deletar | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'falaai-api'
17
+
18
+ instance = FalaAI::UpdateWebhookRequest.new(
19
+ name: Alertas FalaAI,
20
+ url: https://webhook.site/00000000-0000-0000-0000-000000000000,
21
+ events: [credits.low],
22
+ retry_enabled: true,
23
+ active: true
24
+ )
25
+ ```
26
+
data/docs/UsageApi.md ADDED
@@ -0,0 +1,151 @@
1
+ # FalaAI::UsageApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_usage_by_key_v1_usage_by_key_get**](UsageApi.md#get_usage_by_key_v1_usage_by_key_get) | **GET** /v1/usage/by-key | Get Usage By Key |
8
+ | [**get_usage_log_v1_usage_log_get**](UsageApi.md#get_usage_log_v1_usage_log_get) | **GET** /v1/usage/log | Get Usage Log |
9
+
10
+
11
+ ## get_usage_by_key_v1_usage_by_key_get
12
+
13
+ > <Array<UsageByKeyItem>> get_usage_by_key_v1_usage_by_key_get(opts)
14
+
15
+ Get Usage By Key
16
+
17
+ ### Examples
18
+
19
+ ```ruby
20
+ require 'time'
21
+ require 'falaai-api'
22
+ # setup authorization
23
+ FalaAI.configure do |config|
24
+ # Configure Bearer authorization (fai_xxx): ApiKeyAuth
25
+ config.access_token = 'YOUR_BEARER_TOKEN'
26
+ end
27
+
28
+ api_instance = FalaAI::UsageApi.new
29
+ opts = {
30
+ key_id: 'key_id_example' # String |
31
+ }
32
+
33
+ begin
34
+ # Get Usage By Key
35
+ result = api_instance.get_usage_by_key_v1_usage_by_key_get(opts)
36
+ p result
37
+ rescue FalaAI::ApiError => e
38
+ puts "Error when calling UsageApi->get_usage_by_key_v1_usage_by_key_get: #{e}"
39
+ end
40
+ ```
41
+
42
+ #### Using the get_usage_by_key_v1_usage_by_key_get_with_http_info variant
43
+
44
+ This returns an Array which contains the response data, status code and headers.
45
+
46
+ > <Array(<Array<UsageByKeyItem>>, Integer, Hash)> get_usage_by_key_v1_usage_by_key_get_with_http_info(opts)
47
+
48
+ ```ruby
49
+ begin
50
+ # Get Usage By Key
51
+ data, status_code, headers = api_instance.get_usage_by_key_v1_usage_by_key_get_with_http_info(opts)
52
+ p status_code # => 2xx
53
+ p headers # => { ... }
54
+ p data # => <Array<UsageByKeyItem>>
55
+ rescue FalaAI::ApiError => e
56
+ puts "Error when calling UsageApi->get_usage_by_key_v1_usage_by_key_get_with_http_info: #{e}"
57
+ end
58
+ ```
59
+
60
+ ### Parameters
61
+
62
+ | Name | Type | Description | Notes |
63
+ | ---- | ---- | ----------- | ----- |
64
+ | **key_id** | **String** | | [optional] |
65
+
66
+ ### Return type
67
+
68
+ [**Array&lt;UsageByKeyItem&gt;**](UsageByKeyItem.md)
69
+
70
+ ### Authorization
71
+
72
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: Not defined
77
+ - **Accept**: application/json
78
+
79
+
80
+ ## get_usage_log_v1_usage_log_get
81
+
82
+ > <UsageLogResponse> get_usage_log_v1_usage_log_get(opts)
83
+
84
+ Get Usage Log
85
+
86
+ ### Examples
87
+
88
+ ```ruby
89
+ require 'time'
90
+ require 'falaai-api'
91
+ # setup authorization
92
+ FalaAI.configure do |config|
93
+ # Configure Bearer authorization (fai_xxx): ApiKeyAuth
94
+ config.access_token = 'YOUR_BEARER_TOKEN'
95
+ end
96
+
97
+ api_instance = FalaAI::UsageApi.new
98
+ opts = {
99
+ page: 56, # Integer |
100
+ limit: 56, # Integer |
101
+ api_key_id: 'api_key_id_example' # String |
102
+ }
103
+
104
+ begin
105
+ # Get Usage Log
106
+ result = api_instance.get_usage_log_v1_usage_log_get(opts)
107
+ p result
108
+ rescue FalaAI::ApiError => e
109
+ puts "Error when calling UsageApi->get_usage_log_v1_usage_log_get: #{e}"
110
+ end
111
+ ```
112
+
113
+ #### Using the get_usage_log_v1_usage_log_get_with_http_info variant
114
+
115
+ This returns an Array which contains the response data, status code and headers.
116
+
117
+ > <Array(<UsageLogResponse>, Integer, Hash)> get_usage_log_v1_usage_log_get_with_http_info(opts)
118
+
119
+ ```ruby
120
+ begin
121
+ # Get Usage Log
122
+ data, status_code, headers = api_instance.get_usage_log_v1_usage_log_get_with_http_info(opts)
123
+ p status_code # => 2xx
124
+ p headers # => { ... }
125
+ p data # => <UsageLogResponse>
126
+ rescue FalaAI::ApiError => e
127
+ puts "Error when calling UsageApi->get_usage_log_v1_usage_log_get_with_http_info: #{e}"
128
+ end
129
+ ```
130
+
131
+ ### Parameters
132
+
133
+ | Name | Type | Description | Notes |
134
+ | ---- | ---- | ----------- | ----- |
135
+ | **page** | **Integer** | | [optional][default to 1] |
136
+ | **limit** | **Integer** | | [optional][default to 20] |
137
+ | **api_key_id** | **String** | | [optional] |
138
+
139
+ ### Return type
140
+
141
+ [**UsageLogResponse**](UsageLogResponse.md)
142
+
143
+ ### Authorization
144
+
145
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
146
+
147
+ ### HTTP request headers
148
+
149
+ - **Content-Type**: Not defined
150
+ - **Accept**: application/json
151
+
@@ -0,0 +1,26 @@
1
+ # FalaAI::UsageByKeyItem
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **key_id** | **String** | API key id | |
8
+ | **key_name** | **String** | API key name | |
9
+ | **total_credits** | **Integer** | Total credits consumed by the key | |
10
+ | **request_count** | **Integer** | Number of requests | |
11
+ | **last_used** | **String** | ISO 8601 of last use (null if never) | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'falaai-api'
17
+
18
+ instance = FalaAI::UsageByKeyItem.new(
19
+ key_id: null,
20
+ key_name: null,
21
+ total_credits: null,
22
+ request_count: null,
23
+ last_used: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,28 @@
1
+ # FalaAI::UsageLogItem
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Usage log entry id | |
8
+ | **endpoint** | **String** | Endpoint called | |
9
+ | **credits_cost** | **Integer** | Credits consumed | |
10
+ | **status** | **String** | Result status | |
11
+ | **errors_count** | **Integer** | Errors count | |
12
+ | **created_at** | **String** | ISO 8601 timestamp | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'falaai-api'
18
+
19
+ instance = FalaAI::UsageLogItem.new(
20
+ id: null,
21
+ endpoint: null,
22
+ credits_cost: null,
23
+ status: null,
24
+ errors_count: null,
25
+ created_at: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,22 @@
1
+ # FalaAI::UsageLogResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array&lt;UsageLogItem&gt;**](UsageLogItem.md) | | |
8
+ | **page** | **Integer** | | |
9
+ | **limit** | **Integer** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'falaai-api'
15
+
16
+ instance = FalaAI::UsageLogResponse.new(
17
+ data: null,
18
+ page: null,
19
+ limit: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,26 @@
1
+ # FalaAI::ValidationError
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **loc** | [**Array&lt;LocationInner&gt;**](LocationInner.md) | | |
8
+ | **msg** | **String** | | |
9
+ | **type** | **String** | | |
10
+ | **input** | **Object** | | [optional] |
11
+ | **ctx** | **Object** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'falaai-api'
17
+
18
+ instance = FalaAI::ValidationError.new(
19
+ loc: null,
20
+ msg: null,
21
+ type: null,
22
+ input: null,
23
+ ctx: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,72 @@
1
+ # FalaAI::VersionApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_version_api_version_get**](VersionApi.md#get_version_api_version_get) | **GET** /api/version | Get Version |
8
+
9
+
10
+ ## get_version_api_version_get
11
+
12
+ > <VersionResponse> get_version_api_version_get
13
+
14
+ Get Version
15
+
16
+ ### Examples
17
+
18
+ ```ruby
19
+ require 'time'
20
+ require 'falaai-api'
21
+ # setup authorization
22
+ FalaAI.configure do |config|
23
+ # Configure Bearer authorization (fai_xxx): ApiKeyAuth
24
+ config.access_token = 'YOUR_BEARER_TOKEN'
25
+ end
26
+
27
+ api_instance = FalaAI::VersionApi.new
28
+
29
+ begin
30
+ # Get Version
31
+ result = api_instance.get_version_api_version_get
32
+ p result
33
+ rescue FalaAI::ApiError => e
34
+ puts "Error when calling VersionApi->get_version_api_version_get: #{e}"
35
+ end
36
+ ```
37
+
38
+ #### Using the get_version_api_version_get_with_http_info variant
39
+
40
+ This returns an Array which contains the response data, status code and headers.
41
+
42
+ > <Array(<VersionResponse>, Integer, Hash)> get_version_api_version_get_with_http_info
43
+
44
+ ```ruby
45
+ begin
46
+ # Get Version
47
+ data, status_code, headers = api_instance.get_version_api_version_get_with_http_info
48
+ p status_code # => 2xx
49
+ p headers # => { ... }
50
+ p data # => <VersionResponse>
51
+ rescue FalaAI::ApiError => e
52
+ puts "Error when calling VersionApi->get_version_api_version_get_with_http_info: #{e}"
53
+ end
54
+ ```
55
+
56
+ ### Parameters
57
+
58
+ This endpoint does not need any parameter.
59
+
60
+ ### Return type
61
+
62
+ [**VersionResponse**](VersionResponse.md)
63
+
64
+ ### Authorization
65
+
66
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
67
+
68
+ ### HTTP request headers
69
+
70
+ - **Content-Type**: Not defined
71
+ - **Accept**: application/json
72
+
@@ -0,0 +1,22 @@
1
+ # FalaAI::VersionResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **service** | **String** | Service name | |
8
+ | **version** | **String** | Current API version | |
9
+ | **deploy_date** | **String** | Deploy timestamp | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'falaai-api'
15
+
16
+ instance = FalaAI::VersionResponse.new(
17
+ service: FalaAI API,
18
+ version: api_v1.21.45,
19
+ deploy_date: 2026-09-22 20260922_023910
20
+ )
21
+ ```
22
+
@@ -0,0 +1,15 @@
1
+ # FalaAI::WebhookEvent
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'falaai-api'
12
+
13
+ instance = FalaAI::WebhookEvent.new()
14
+ ```
15
+
@@ -0,0 +1,42 @@
1
+ # FalaAI::WebhookItem
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Webhook id | |
8
+ | **user_id** | **String** | Owner user id | |
9
+ | **name** | **String** | Webhook name | |
10
+ | **url** | **String** | Destination URL | |
11
+ | **secret** | **String** | HMAC signing secret | |
12
+ | **events** | **Array&lt;String&gt;** | Subscribed events | |
13
+ | **active** | **Boolean** | Is active | |
14
+ | **retry_enabled** | **Boolean** | Retry enabled | |
15
+ | **last_delivery_at** | **String** | ISO 8601 of last delivery | [optional] |
16
+ | **last_status** | **Integer** | Last HTTP status delivered | [optional] |
17
+ | **failure_count** | **Integer** | Consecutive failures | [optional][default to 0] |
18
+ | **created_at** | **String** | ISO 8601 created | |
19
+ | **updated_at** | **String** | ISO 8601 updated | |
20
+
21
+ ## Example
22
+
23
+ ```ruby
24
+ require 'falaai-api'
25
+
26
+ instance = FalaAI::WebhookItem.new(
27
+ id: null,
28
+ user_id: null,
29
+ name: null,
30
+ url: null,
31
+ secret: null,
32
+ events: null,
33
+ active: null,
34
+ retry_enabled: null,
35
+ last_delivery_at: null,
36
+ last_status: null,
37
+ failure_count: null,
38
+ created_at: null,
39
+ updated_at: null
40
+ )
41
+ ```
42
+
@@ -0,0 +1,22 @@
1
+ # FalaAI::WebhookListResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array&lt;WebhookItem&gt;**](WebhookItem.md) | | |
8
+ | **page** | **Integer** | | |
9
+ | **limit** | **Integer** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'falaai-api'
15
+
16
+ instance = FalaAI::WebhookListResponse.new(
17
+ data: null,
18
+ page: null,
19
+ limit: null
20
+ )
21
+ ```
22
+