falaai

package module
v1.21.48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 10 Imported by: 0

README

FalaAI API Go SDK - Speech-to-Text, Call Analytics & Compliance Audit

version license build

Official Go SDK for the FalaAI API - call transcription, conversation intelligence and compliance auditing (COPC CX, ISO 18295-1).

What is FalaAI API?

FalaAI API turns conversations into auditable business intelligence, in three steps:

  1. Transcribe - audio (calls, voice notes, meetings) to text, with speaker separation.
  2. Diagnose - summary, reason, recommended action, topic and sentiment per conversation.
  3. Audit compliance - risk score and violations against COPC CX and ISO 18295-1.

It works with phone calls and call recordings (PABX IP, Asterisk, FreePBX, contact center), messaging (WhatsApp, Telegram, web chat, SMS) and email - anything that can be turned into text. Three core endpoints (plus health, usage, webhooks and email alerts), one API key, no setup.

Who it's for

Role What they get
Contact Center / Quality Audit 100% of conversations instead of a sample
Compliance / Legal Forensic, auditable evidence for audits and disputes
CX / Operations Risk score, sentiment and reason for every conversation
Developers One typed SDK, three core endpoints, one API key
Data / BI Clean, typed JSON ready for your database or BI tool

Install

go get github.com/actiontecbr/falaai-api

Quick start

package main

import (
	"bytes"
	"context"
	"fmt"
	"io"
	"mime/multipart"
	"net/http"
	"os"

	falaai "github.com/actiontecbr/falaai-api"
)

func authEditor(key string) falaai.RequestEditorFn {
	return func(ctx context.Context, req *http.Request) error {
		req.Header.Set("Authorization", "Bearer "+key)
		return nil
	}
}

func main() {
	c, err := falaai.NewClientWithResponses(
		"https://api01-falaai.action.tec.br",
		falaai.WithRequestEditorFn(authEditor("fai_xxxxxx")),
	)
	if err != nil {
		panic(err)
	}
	ctx := context.Background()

	f, err := os.Open("call.mp3")
	if err != nil {
		panic(err)
	}
	defer f.Close()

	var buf bytes.Buffer
	mw := multipart.NewWriter(&buf)
	fw, _ := mw.CreateFormFile("file", "call.mp3")
	if _, err := io.Copy(fw, f); err != nil {
		panic(err)
	}
	_ = mw.WriteField("model", "falaai-transcribe-1")
	_ = mw.WriteField("language", "pt")
	mw.Close()

	res, err := c.CreateTranscriptionV1AudioTranscriptionsPostWithBodyWithResponse(
		ctx, mw.FormDataContentType(), &buf)
	if err != nil {
		panic(err)
	}
	if res.JSON200 == nil {
		panic(fmt.Sprintf("HTTP %d: %s", res.StatusCode(), string(res.Body)))
	}
	fmt.Println(res.JSON200.Text)
}

Request and response examples

Real requests and responses, captured against the live API.

Health

Request

curl https://api01-falaai.action.tec.br/v1/health \
  -H "Authorization: Bearer fai_xxxxxx"

Response

{
  "status": "ok",
  "version": "api_v1.21.47",
  "uptime_seconds": 92855,
  "database": true,
  "phase": "production",
  "launch_date": "2026-08-01"
}
Transcribe

Response (the request is in Quick start)

{
  "id": "tr-a38a97d0-452e-4519-b6bb-3c63694bf7ae",
  "object": "transcription",
  "model": "falaai-transcribe-1",
  "filename": "analise_25s.mp3",
  "processed_at": "2026-09-23T17:42:54.242449+00:00",
  "usage": {
    "audio_seconds": 25.0,
    "credits_consumed": 25,
    "processing_ms": 951
  },
  "language": "por",
  "duration_seconds": 25.0,
  "text": "Novatechno tudo, bom dia. Bom dia, Mateus. Tudo bem? Bem e você? Tudo bem. Não tem nada no sistema. Eu queria ver se de  ...",
  "dialog": "Speaker 1: [00:00:01.639 - 00:00:02.560] Novatechno tudo, bom dia.\nSpeaker 2: [00:00:02.980 - 00:00:03.980] Bom dia, Mateus. Tudo bem?\nSpeaker 1: [00:00:04.700 - 00:00:05.179] Bem e você?\nSpeaker 2: [ ...",
  "audio_events": [
    {
      "event": "[tosse]",
      "start_s": 22.06,
      "end_s": 22.44,
      "duration_s": 0.38,
      "formatted_timestamp": "00:00:22.059"
    }
  ],
  "event_types": [
    "[tosse]"
  ],
  "word_count": 129,
  "input": {
    "duration_s": 25.2,
    "original_format": "mp3",
    "codec": "mp3",
    "sample_rate": 8000,
    "channels": 1
  },
  "language_confidence": 1.0,
  "client_reference_id": "readme-example"
}
Diagnose

Request

curl https://api01-falaai.action.tec.br/v1/analyze/diagnostic \
  -H "Authorization: Bearer fai_xxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"dialog": "<transcription dialog>", "language": "pt-BR", "duration_seconds": 25.0}'

Response

{
  "id": "di-15c79d7c-7245-4af4-9a4e-ead237c1a6ed",
  "response_language": "pt-BR",
  "object": "analysis",
  "analysis": {
    "dialogue_summary": {
      "explanation": "O cliente (Speaker 2) contatou a Novatechno (Speaker 1) para obter informações sobre um produto (código 4675005) que saiu de linha. O cliente já realizou uma pe ..."
    },
    "contact_reason": {
      "explanation": "O cliente busca informação sobre qual produto substituiu o código 4675005, que saiu de linha."
    },
    "identified_action": {
      "list_choice": "Sem Ação",
      "justification": "O cliente buscou informações sobre um produto que saiu de linha, mas a conversa terminou sem uma ação definida ou resolução.",
      "evidence_phrases": [
        "Novatechno tudo, bom dia.",
        "Bom dia, Mateus. Tudo bem?",
        "Tudo bem. Não tem nada no sistema. Eu queria ver se de repente você tem alguma informação.",
        "Quatro meia sete cinco zero zero cinco saiu de linha. Ééé, eu procurei no Google ver se o que entrou no lugar. Aí ele fala"
      ]
    },
    "identified_label": {
      "list_choice": "Pedido de Informação",
      "justification": "O cliente busca informações sobre um produto que saiu de linha, perguntando o que o substituiu, indicando uma necessidade de dados.",
      "evidence_phrases": [
        "Não tem nada no sistema. Eu queria ver se de repente você tem alguma informação.",
        "É, o produto, posso te falar o código?",
  ... (truncated)
Audit compliance

Request

curl https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco \
  -H "Authorization: Bearer fai_xxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"dialog": "<transcription dialog>", "language": "pt-BR", "duration_seconds": 25.0, "response_format": "v2"}'

Response

{
  "response": {
    "meta": {
      "id": "ar-3439fd5f-1932-4ebe-bfb5-944ec1046e60",
      "usage": {
        "characters": 378,
        "credits_consumed": 90,
        "processing_ms": 6534
      },
      "object": "auditoria_risco",
      "call_duration_s": 25.0,
      "analyzed_at": "2026-09-23T17:43:02.092299",
      "client_reference_id": "readme-example"
    },
    "participants": {
      "identified": [
        {
          "confidence": "high",
          "source": "input",
          "evidence": "fornecido pelo input",
          "interlocutor": "Speaker 1",
          "name": "Mateus",
          "role": "agent"
        },
        {
          "confidence": "high",
          "source": "input",
          "evidence": "fornecido pelo input",
          "interlocutor": "Speaker 2",
          "name": "Cliente",
          "role": "client"
        }
      ],
      "call_direction": "inbound",
      "role_inference_reliable": true,
      "identification_status": "input",
      "unidentified_items_count": 0
    },
    "verdict": {
      "label": "Limpa",
      "level_code": "LIMPA",
      "color": "#4fff4d",
      "icon": "mdi:check-circle",
      "risk_matrix": {
        "severity": "NOTE",
        "likelihood_avg": 0.0,
        "impact_avg": 0.0,
        "likelihood_level": "LOW",
        "impact_level": "LOW"
      },
      "applied_actions": [
        {
          "action_type": "nenhuma_acao",
          "label": "Nenhuma Acao",
          "description": "Nenhuma acao necessaria. A chamada nao apresentou deteccoes que exijam intervencao. Continuar monitoramento de rotina.",
          "priority": "BAIXO",
          "color": "#6B7280",
          "icon": "mdi:check-circle-outline",
          "condition": "sempre",
          "reason": "condição=sempre"
        }
      ],
  ... (truncated)
The forensic HTML report

The audit response carries response.html_report - the complete forensic report as HTML, encoded as a base64 gzip string (~19 KB). Decode it and open in a browser (or convert to PDF) to get the auditable evidence: timeline, audio events (MAC/MVAD/MOD), violations against COPC CX and ISO 18295-1, and the executive verdict.

import base64, gzip, json, httpx

res = httpx.post(
    "https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco",
    headers={"Authorization": "Bearer fai_xxxxxx"},
    json={"dialog": dialog, "language": "pt-BR", "duration_seconds": 25.0, "response_format": "v2"},
    timeout=900,
).json()

html = gzip.decompress(base64.b64decode(res["response"]["html_report"])).decode("utf-8")
open("report.html", "w", encoding="utf-8").write(html)

Use cases

  • Call and voice-note transcription with speaker separation
  • Contact center quality assurance (QA) automation
  • Compliance auditing against COPC CX and ISO 18295-1
  • Risk detection - churn risk, legal threats, escalation
  • WhatsApp, Telegram and chat conversation analysis
  • CRM and help desk enrichment
  • Call analytics and speech-to-text at scale - every call transcribed and scored
  • Conversation intelligence - summary, reason, action, topic and sentiment analysis per conversation
  • Speaker diarization (speaker separation) on stereo or mono audio
  • Quality monitoring and agent performance - audit 100% instead of a sample
  • Built from a single OpenAPI contract, so all SDKs stay in sync
  • LGPD-aware handling of customer conversations

Where it fits

Plugs into omnichannel service platforms, help desks, chatbots and unified messaging - anywhere a conversation becomes text.

Common Go stacks in contact center, CRM and help desk - if you build on any of these, the SDK drops in:

WAHA - NATS / RabbitMQ - high-performance microservices

Product names are trademarks of their respective owners, listed as common stacks in this ecosystem. No partnership is implied.

Endpoints

Method Path Description
POST /v1/audio/transcriptions Audio to text, with speaker separation
POST /v1/analyze/diagnostic Conversation analysis - summary, reason, action, topic, sentiment
POST /v1/analyze/auditoriaRisco Compliance audit - risk score and violations
GET /v1/health Service health check (public)

All endpoints require Authorization: Bearer fai_xxxxxx. Full reference: https://api01-falaai.action.tec.br/docs Other operations: usage logs, webhooks and email alerts - see the full reference.

Other official SDKs

Language Install Package
Python pip install falaai-api PyPI
Node.js / TypeScript npm install falaai-api npm
PHP composer require actiontecbr/falaai-api Packagist
Go go get github.com/actiontecbr/falaai-api pkg.go.dev
Ruby gem install falaai-api RubyGems
Java io.github.actiontecbr:falaai-api Maven Central
.NET / C# dotnet add package FalaAI.Api NuGet

Requirements, support and more

License

MIT (c) 2026 Action Tec Br - see LICENSE.

Documentation

Overview

Package falaai provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostRequest

func NewCreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostRequest(server string, body CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostJSONRequestBody) (*http.Request, error)

NewCreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostRequest calls the generic CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost builder with application/json body

func NewCreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostRequestWithBody

func NewCreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostRequestWithBody constructs an http.Request for the CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost method, with any body, and a specified content type

func NewCreateDiagnosticV1AnalyzeDiagnosticPostRequest

func NewCreateDiagnosticV1AnalyzeDiagnosticPostRequest(server string, body CreateDiagnosticV1AnalyzeDiagnosticPostJSONRequestBody) (*http.Request, error)

NewCreateDiagnosticV1AnalyzeDiagnosticPostRequest calls the generic CreateDiagnosticV1AnalyzeDiagnosticPost builder with application/json body

func NewCreateDiagnosticV1AnalyzeDiagnosticPostRequestWithBody

func NewCreateDiagnosticV1AnalyzeDiagnosticPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateDiagnosticV1AnalyzeDiagnosticPostRequestWithBody constructs an http.Request for the CreateDiagnosticV1AnalyzeDiagnosticPost method, with any body, and a specified content type

func NewCreateEmailAlertV1EmailAlertsPostRequest

func NewCreateEmailAlertV1EmailAlertsPostRequest(server string, body CreateEmailAlertV1EmailAlertsPostJSONRequestBody) (*http.Request, error)

NewCreateEmailAlertV1EmailAlertsPostRequest calls the generic CreateEmailAlertV1EmailAlertsPost builder with application/json body

func NewCreateEmailAlertV1EmailAlertsPostRequestWithBody

func NewCreateEmailAlertV1EmailAlertsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateEmailAlertV1EmailAlertsPostRequestWithBody constructs an http.Request for the CreateEmailAlertV1EmailAlertsPost method, with any body, and a specified content type

func NewCreateTranscriptionV1AudioTranscriptionsPostRequestWithBody

func NewCreateTranscriptionV1AudioTranscriptionsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateTranscriptionV1AudioTranscriptionsPostRequestWithBody constructs an http.Request for the CreateTranscriptionV1AudioTranscriptionsPost method, with any body, and a specified content type

func NewCreateWebhookV1WebhooksPostRequest

func NewCreateWebhookV1WebhooksPostRequest(server string, body CreateWebhookV1WebhooksPostJSONRequestBody) (*http.Request, error)

NewCreateWebhookV1WebhooksPostRequest calls the generic CreateWebhookV1WebhooksPost builder with application/json body

func NewCreateWebhookV1WebhooksPostRequestWithBody

func NewCreateWebhookV1WebhooksPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateWebhookV1WebhooksPostRequestWithBody constructs an http.Request for the CreateWebhookV1WebhooksPost method, with any body, and a specified content type

func NewDeleteEmailAlertV1EmailAlertsAlertIdDeleteRequest

func NewDeleteEmailAlertV1EmailAlertsAlertIdDeleteRequest(server string, alertId string) (*http.Request, error)

NewDeleteEmailAlertV1EmailAlertsAlertIdDeleteRequest constructs an http.Request for the DeleteEmailAlertV1EmailAlertsAlertIdDelete method

func NewDeleteWebhookV1WebhooksWebhookIdDeleteRequest

func NewDeleteWebhookV1WebhooksWebhookIdDeleteRequest(server string, webhookId string) (*http.Request, error)

NewDeleteWebhookV1WebhooksWebhookIdDeleteRequest constructs an http.Request for the DeleteWebhookV1WebhooksWebhookIdDelete method

func NewGetUsageByKeyV1UsageByKeyGetRequest

func NewGetUsageByKeyV1UsageByKeyGetRequest(server string, params *GetUsageByKeyV1UsageByKeyGetParams) (*http.Request, error)

NewGetUsageByKeyV1UsageByKeyGetRequest constructs an http.Request for the GetUsageByKeyV1UsageByKeyGet method

func NewGetUsageLogV1UsageLogGetRequest

func NewGetUsageLogV1UsageLogGetRequest(server string, params *GetUsageLogV1UsageLogGetParams) (*http.Request, error)

NewGetUsageLogV1UsageLogGetRequest constructs an http.Request for the GetUsageLogV1UsageLogGet method

func NewGetVersionApiVersionGetRequest

func NewGetVersionApiVersionGetRequest(server string) (*http.Request, error)

NewGetVersionApiVersionGetRequest constructs an http.Request for the GetVersionApiVersionGet method

func NewHealthCheckHeadRequest

func NewHealthCheckHeadRequest(server string) (*http.Request, error)

NewHealthCheckHeadRequest constructs an http.Request for the HealthCheckHead method

func NewHealthCheckRequest

func NewHealthCheckRequest(server string) (*http.Request, error)

NewHealthCheckRequest constructs an http.Request for the HealthCheck method

func NewListEmailAlertsV1EmailAlertsGetRequest

func NewListEmailAlertsV1EmailAlertsGetRequest(server string, params *ListEmailAlertsV1EmailAlertsGetParams) (*http.Request, error)

NewListEmailAlertsV1EmailAlertsGetRequest constructs an http.Request for the ListEmailAlertsV1EmailAlertsGet method

func NewListWebhooksV1WebhooksGetRequest

func NewListWebhooksV1WebhooksGetRequest(server string, params *ListWebhooksV1WebhooksGetParams) (*http.Request, error)

NewListWebhooksV1WebhooksGetRequest constructs an http.Request for the ListWebhooksV1WebhooksGet method

func NewUpdateEmailAlertV1EmailAlertsAlertIdPutRequest

func NewUpdateEmailAlertV1EmailAlertsAlertIdPutRequest(server string, alertId string, body UpdateEmailAlertV1EmailAlertsAlertIdPutJSONRequestBody) (*http.Request, error)

NewUpdateEmailAlertV1EmailAlertsAlertIdPutRequest calls the generic UpdateEmailAlertV1EmailAlertsAlertIdPut builder with application/json body

func NewUpdateEmailAlertV1EmailAlertsAlertIdPutRequestWithBody

func NewUpdateEmailAlertV1EmailAlertsAlertIdPutRequestWithBody(server string, alertId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateEmailAlertV1EmailAlertsAlertIdPutRequestWithBody constructs an http.Request for the UpdateEmailAlertV1EmailAlertsAlertIdPut method, with any body, and a specified content type

func NewUpdateWebhookV1WebhooksWebhookIdPutRequest

func NewUpdateWebhookV1WebhooksWebhookIdPutRequest(server string, webhookId string, body UpdateWebhookV1WebhooksWebhookIdPutJSONRequestBody) (*http.Request, error)

NewUpdateWebhookV1WebhooksWebhookIdPutRequest calls the generic UpdateWebhookV1WebhooksWebhookIdPut builder with application/json body

func NewUpdateWebhookV1WebhooksWebhookIdPutRequestWithBody

func NewUpdateWebhookV1WebhooksWebhookIdPutRequestWithBody(server string, webhookId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateWebhookV1WebhooksWebhookIdPutRequestWithBody constructs an http.Request for the UpdateWebhookV1WebhooksWebhookIdPut method, with any body, and a specified content type

Types

type AudioEvent

type AudioEvent struct {
	// DurationS Event duration in seconds
	DurationS float32 `json:"duration_s"`

	// EndS End time of audio event in seconds
	EndS float32 `json:"end_s"`

	// Event Type of identified audio event. Ex: [riso], [suspiro], [pausa], [tosse]
	Event string `json:"event"`

	// FormattedTimestamp Formatted timestamp HH:MM:SS.mmm of event start
	FormattedTimestamp string `json:"formatted_timestamp"`

	// StartS Start time of audio event in seconds
	StartS float32 `json:"start_s"`
}

AudioEvent defines model for AudioEvent.

type AudioInputMeta

type AudioInputMeta struct {
	// Channels Number of channels (1=mono, 2=stereo)
	Channels int `json:"channels"`

	// Codec Audio codec sent
	Codec string `json:"codec"`

	// DurationS Exact audio duration sent in seconds
	DurationS float32 `json:"duration_s"`

	// OriginalFormat Original file format (wav, mp3, ogg, etc)
	OriginalFormat string `json:"original_format"`

	// SampleRate Audio sample rate in Hz
	SampleRate int `json:"sample_rate"`
}

AudioInputMeta defines model for AudioInputMeta.

type AuditoriaRiscoAnalysisV2

type AuditoriaRiscoAnalysisV2 struct {
	// FinalAnalysis Final analysis
	FinalAnalysis *map[string]interface{} `json:"final_analysis,omitempty"`

	// Frameworks Frameworks (COPC/ISO/Kirkpatrick/CES)
	Frameworks *map[string]interface{} `json:"frameworks,omitempty"`

	// GlobalMetrics Global metrics
	GlobalMetrics *map[string]interface{} `json:"global_metrics,omitempty"`
}

AuditoriaRiscoAnalysisV2 defines model for AuditoriaRiscoAnalysisV2.

type AuditoriaRiscoAppliedActionV2

type AuditoriaRiscoAppliedActionV2 struct {
	// ActionType Action type code
	ActionType string `json:"action_type"`

	// Color Color
	Color *string `json:"color,omitempty"`

	// Condition Condition
	Condition *string `json:"condition,omitempty"`

	// Description Action description
	Description string `json:"description"`

	// Icon Icon
	Icon *string `json:"icon,omitempty"`

	// Label Action label
	Label string `json:"label"`

	// Priority CRITICO/ALTO/MEDIO/BAIXO
	Priority string `json:"priority"`

	// Reason Reason
	Reason *string `json:"reason,omitempty"`
}

AuditoriaRiscoAppliedActionV2 defines model for AuditoriaRiscoAppliedActionV2.

type AuditoriaRiscoAudioEventModelV2

type AuditoriaRiscoAudioEventModelV2 struct {
	// Description MAC description (i18n)
	Description *string `json:"description,omitempty"`

	// Model MAC model text (i18n)
	Model *string `json:"model,omitempty"`

	// WindowsS Temporal windows (s)
	WindowsS *map[string]interface{} `json:"windows_s,omitempty"`
}

AuditoriaRiscoAudioEventModelV2 defines model for AuditoriaRiscoAudioEventModelV2.

type AuditoriaRiscoAuditDecisionsV2

type AuditoriaRiscoAuditDecisionsV2 struct {
	// DeterministicValidatorChanges Deterministic validator changes
	DeterministicValidatorChanges *[]interface{} `json:"deterministic_validator_changes,omitempty"`

	// HasZeroToleranceViolation Has zero-tolerance violation
	HasZeroToleranceViolation *bool `json:"has_zero_tolerance_violation,omitempty"`

	// RiskOrigin Risk origin
	RiskOrigin *string `json:"risk_origin,omitempty"`
}

AuditoriaRiscoAuditDecisionsV2 defines model for AuditoriaRiscoAuditDecisionsV2.

type AuditoriaRiscoConversationScoresV2

type AuditoriaRiscoConversationScoresV2 struct {
	// ConsolidatedScore Consolidated score
	ConsolidatedScore *float32 `json:"consolidated_score,omitempty"`

	// GlobalRiskSeverity Global risk severity code
	GlobalRiskSeverity *string `json:"global_risk_severity,omitempty"`

	// GlobalRiskSeverityColor Global risk severity color
	GlobalRiskSeverityColor *string `json:"global_risk_severity_color,omitempty"`

	// GlobalRiskSeverityLabel Global risk severity label
	GlobalRiskSeverityLabel *string `json:"global_risk_severity_label,omitempty"`

	// MostCriticalTurn Most critical turn
	MostCriticalTurn interface{} `json:"most_critical_turn,omitempty"`

	// PctTurnsWithViolation % turns with violation
	PctTurnsWithViolation *float32 `json:"pct_turns_with_violation,omitempty"`

	// PositiveNegativeRatio Positive:negative ratio
	PositiveNegativeRatio interface{} `json:"positive_negative_ratio,omitempty"`

	// RiskImpactAvg Risk impact avg
	RiskImpactAvg *float32 `json:"risk_impact_avg,omitempty"`

	// RiskLikelihoodAvg Risk likelihood avg
	RiskLikelihoodAvg *float32 `json:"risk_likelihood_avg,omitempty"`

	// SentimentTrend Sentiment trend
	SentimentTrend interface{} `json:"sentiment_trend,omitempty"`

	// ViolationDensityPerMin Violation density/min
	ViolationDensityPerMin *float32 `json:"violation_density_per_min,omitempty"`
}

AuditoriaRiscoConversationScoresV2 defines model for AuditoriaRiscoConversationScoresV2.

type AuditoriaRiscoDetectionItemV2

type AuditoriaRiscoDetectionItemV2 struct {
	// ApplySaturation Apply saturation
	ApplySaturation *bool `json:"apply_saturation,omitempty"`

	// BlockRepetition Block repetition
	BlockRepetition *bool `json:"block_repetition,omitempty"`

	// BlockedFormula Blocked formula
	BlockedFormula *string `json:"blocked_formula,omitempty"`

	// CalibrationReason Calibration reason
	CalibrationReason *string `json:"calibration_reason,omitempty"`

	// Category Category code
	Category *string `json:"category,omitempty"`

	// CategoryColor Category color
	CategoryColor *string `json:"category_color,omitempty"`

	// CategoryGroup Category group label (i18n)
	CategoryGroup string `json:"category_group"`

	// CategoryIcon Category icon
	CategoryIcon *string `json:"category_icon,omitempty"`

	// CategoryLabel Category label (i18n)
	CategoryLabel string `json:"category_label"`

	// CategoryThreshold Category threshold
	CategoryThreshold *float32 `json:"category_threshold,omitempty"`

	// CategoryType Category type
	CategoryType *string `json:"category_type,omitempty"`

	// CategoryWeight Category weight
	CategoryWeight *float32 `json:"category_weight,omitempty"`

	// CitationFidelity Citation fidelity
	CitationFidelity *bool `json:"citation_fidelity,omitempty"`

	// ConversationLimit Conversation limit
	ConversationLimit interface{} `json:"conversation_limit,omitempty"`

	// Criticality Criticality
	Criticality *string `json:"criticality,omitempty"`

	// EffectiveImpact Effective impact
	EffectiveImpact *float32 `json:"effective_impact,omitempty"`

	// FinalScore Final score
	FinalScore *float32 `json:"final_score,omitempty"`

	// FinalScoreFormula Final score formula
	FinalScoreFormula *string `json:"final_score_formula,omitempty"`

	// Intensity Intensity
	Intensity interface{} `json:"intensity,omitempty"`

	// Interlocutor Speaker
	Interlocutor *string `json:"interlocutor,omitempty"`

	// IsValidContext Valid context
	IsValidContext *bool `json:"is_valid_context,omitempty"`

	// LlmConfidence LLM confidence
	LlmConfidence *float32 `json:"llm_confidence,omitempty"`

	// MacApplied Audio modifier applied
	MacApplied *float32 `json:"mac_applied,omitempty"`

	// MacDetails MAC details
	MacDetails *[]map[string]interface{} `json:"mac_details,omitempty"`

	// ModApplied Total modifier applied
	ModApplied *float32 `json:"mod_applied,omitempty"`

	// ModFormula Modifier formula
	ModFormula *string `json:"mod_formula,omitempty"`

	// MvadApplied Intensity modifier applied
	MvadApplied *float32 `json:"mvad_applied,omitempty"`

	// Nature Nature
	Nature *string `json:"nature,omitempty"`

	// Reason Reason
	Reason *string `json:"reason,omitempty"`

	// ReconciliationNote Reconciliation note
	ReconciliationNote *string `json:"reconciliation_note,omitempty"`

	// RiskImpact Risk impact
	RiskImpact *float32 `json:"risk_impact,omitempty"`

	// RiskProbability Risk probability
	RiskProbability *float32 `json:"risk_probability,omitempty"`

	// Role Role
	Role *string `json:"role,omitempty"`

	// SaturationFactor Saturation factor
	SaturationFactor *float32 `json:"saturation_factor,omitempty"`

	// SaturationFormula Saturation formula
	SaturationFormula *string `json:"saturation_formula,omitempty"`

	// Status Status
	Status *string `json:"status,omitempty"`

	// Subcategory Subcategory code
	Subcategory *string `json:"subcategory,omitempty"`

	// SubcategoryLabel Subcategory label (i18n)
	SubcategoryLabel *string `json:"subcategory_label,omitempty"`

	// SuggestedTermForBank Suggested term for bank
	SuggestedTermForBank interface{} `json:"suggested_term_for_bank,omitempty"`

	// TermText Detected term
	TermText *string `json:"term_text,omitempty"`

	// ThresholdFormula Threshold formula
	ThresholdFormula *string `json:"threshold_formula,omitempty"`

	// TimestampEndS End (s)
	TimestampEndS *float32 `json:"timestamp_end_s,omitempty"`

	// TimestampFormatted Formatted timestamp
	TimestampFormatted *string `json:"timestamp_formatted,omitempty"`

	// TimestampStartS Start (s)
	TimestampStartS *float32 `json:"timestamp_start_s,omitempty"`

	// Turn Turn number
	Turn *int `json:"turn,omitempty"`

	// TurnSentiment Turn sentiment
	TurnSentiment *string `json:"turn_sentiment,omitempty"`

	// ViolatedFrameworks Violated frameworks
	ViolatedFrameworks *[]interface{} `json:"violated_frameworks,omitempty"`
}

AuditoriaRiscoDetectionItemV2 defines model for AuditoriaRiscoDetectionItemV2.

type AuditoriaRiscoDetectionsV2

type AuditoriaRiscoDetectionsV2 struct {
	// ClientBehaviorAlerts Client behavior alerts
	ClientBehaviorAlerts *[]map[string]interface{} `json:"client_behavior_alerts,omitempty"`

	// ClientNegatives Client negatives
	ClientNegatives *[]AuditoriaRiscoDetectionItemV2 `json:"client_negatives,omitempty"`

	// ClientRiskAlerts Client risk alerts
	ClientRiskAlerts *[]map[string]interface{} `json:"client_risk_alerts,omitempty"`

	// Positives Active positives
	Positives *[]AuditoriaRiscoDetectionItemV2 `json:"positives,omitempty"`

	// Violations Active violations
	Violations *[]AuditoriaRiscoDetectionItemV2 `json:"violations,omitempty"`
}

AuditoriaRiscoDetectionsV2 defines model for AuditoriaRiscoDetectionsV2.

type AuditoriaRiscoIndexerV2

type AuditoriaRiscoIndexerV2 struct {
	// SuggestedTermsForBank Suggested terms for bank
	SuggestedTermsForBank *[]map[string]interface{} `json:"suggested_terms_for_bank,omitempty"`
}

AuditoriaRiscoIndexerV2 defines model for AuditoriaRiscoIndexerV2.

type AuditoriaRiscoMetaV2

type AuditoriaRiscoMetaV2 struct {
	// AnalyzedAt ISO 8601 analyzed timestamp
	AnalyzedAt *string `json:"analyzed_at,omitempty"`

	// CallDurationS Call duration (s)
	CallDurationS *float32 `json:"call_duration_s,omitempty"`

	// ClientReferenceId Echoed client reference id
	ClientReferenceId *string `json:"client_reference_id,omitempty"`

	// Id Analysis id
	Id string `json:"id"`

	// Object Object type
	Object *string `json:"object,omitempty"`

	// Usage Usage block
	Usage AuditoriaRiscoUsageV2 `json:"usage"`
}

AuditoriaRiscoMetaV2 defines model for AuditoriaRiscoMetaV2.

type AuditoriaRiscoParticipantV2

type AuditoriaRiscoParticipantV2 struct {
	// Confidence Role inference confidence (high/medium/low)
	Confidence *string `json:"confidence,omitempty"`

	// Evidence Role inference evidence
	Evidence *string `json:"evidence,omitempty"`

	// Interlocutor Speaker label
	Interlocutor *string `json:"interlocutor,omitempty"`

	// Name Participant name
	Name *string `json:"name,omitempty"`

	// Role Role (agent/client/bot/unknown)
	Role *string `json:"role,omitempty"`

	// Source Role source (input/inferred)
	Source *string `json:"source,omitempty"`
}

AuditoriaRiscoParticipantV2 defines model for AuditoriaRiscoParticipantV2.

type AuditoriaRiscoParticipantsV2

type AuditoriaRiscoParticipantsV2 struct {
	// CallDirection inbound/outbound
	CallDirection *string `json:"call_direction,omitempty"`

	// IdentificationStatus Identification status
	IdentificationStatus *string `json:"identification_status,omitempty"`

	// Identified Identified participants
	Identified *[]AuditoriaRiscoParticipantV2 `json:"identified,omitempty"`

	// RoleInferenceReliable Role inference reliability
	RoleInferenceReliable *bool `json:"role_inference_reliable,omitempty"`

	// UnidentifiedItemsCount Unidentified items count
	UnidentifiedItemsCount *int `json:"unidentified_items_count,omitempty"`
}

AuditoriaRiscoParticipantsV2 defines model for AuditoriaRiscoParticipantsV2.

type AuditoriaRiscoRequest

type AuditoriaRiscoRequest struct {
	// AudioEvents Audio events with timestamps (correlated with turns when diarization is present)
	AudioEvents *[]DiagnosticAudioEvent `json:"audio_events,omitempty"`

	// CallDirection Who originated the call. inbound=client called, outbound=company called. If omitted, LLM infers from context.
	CallDirection *AuditoriaRiscoRequestCallDirection `json:"call_direction,omitempty"`

	// ClientReferenceId 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.
	ClientReferenceId *string `json:"client_reference_id,omitempty"`

	// Dialog 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
	Dialog *string `json:"dialog,omitempty"`

	// DurationSeconds Total audio duration in seconds. Required. Max 3h (10800s).
	DurationSeconds float32 `json:"duration_seconds"`

	// Language Language of the transcript being analyzed. Must match the dialog/text language. Accepted: pt-BR, en-US, es-ES.
	Language string `json:"language"`

	// Model Analysis model. Always 'falaai-auditoria-risco-1'
	Model *string `json:"model,omitempty"`

	// Participants Explicit participant roles. If omitted, LLM infers from dialog (Lei 17). When provided, used as ground truth — no inference.
	Participants *[]Participant `json:"participants,omitempty"`

	// ResponseFormat Response format version. v1=legacy flat PT-BR, v2=structured EN-US blocks.
	ResponseFormat *string `json:"response_format,omitempty"`

	// ResponseLanguage Language for analysis results (labels, categories, levels, actions, HTML report). Can differ from 'language'. Accepted: pt-BR, en-US, es-ES.
	ResponseLanguage string `json:"response_language"`

	// Text Plain transcript (fallback if dialog is empty). At least one of 'dialog' or 'text' required. Max 300,000 characters
	Text *string `json:"text,omitempty"`
}

AuditoriaRiscoRequest defines model for AuditoriaRiscoRequest.

type AuditoriaRiscoRequestCallDirection

type AuditoriaRiscoRequestCallDirection string

AuditoriaRiscoRequestCallDirection defines model for AuditoriaRiscoRequest.CallDirection.

const (
	Inbound  AuditoriaRiscoRequestCallDirection = "inbound"
	Outbound AuditoriaRiscoRequestCallDirection = "outbound"
)

Defines values for AuditoriaRiscoRequestCallDirection.

func (AuditoriaRiscoRequestCallDirection) Valid

Valid indicates whether the value is a known member of the AuditoriaRiscoRequestCallDirection enum.

type AuditoriaRiscoScoresV2

type AuditoriaRiscoScoresV2 struct {
	// Conversation Conversation scores
	Conversation AuditoriaRiscoConversationScoresV2 `json:"conversation"`

	// PerParticipant Per-participant KPIs
	PerParticipant *map[string]interface{} `json:"per_participant,omitempty"`
}

AuditoriaRiscoScoresV2 defines model for AuditoriaRiscoScoresV2.

type AuditoriaRiscoScoringExplanationV2

type AuditoriaRiscoScoringExplanationV2 struct {
	// Steps Explanation steps
	Steps *[]interface{} `json:"steps,omitempty"`

	// Summary Explanation summary
	Summary *string `json:"summary,omitempty"`
}

AuditoriaRiscoScoringExplanationV2 defines model for AuditoriaRiscoScoringExplanationV2.

type AuditoriaRiscoSummaryV2

type AuditoriaRiscoSummaryV2 struct {
	// Active Active detections
	Active *int `json:"active,omitempty"`

	// AudioEventsAggravated Audio events aggravated
	AudioEventsAggravated *int `json:"audio_events_aggravated,omitempty"`

	// AudioEventsUsed Audio events used
	AudioEventsUsed *int `json:"audio_events_used,omitempty"`

	// Blocked Blocked detections
	Blocked *int `json:"blocked,omitempty"`

	// ClientBehaviorAlertsCount Client behavior alerts count
	ClientBehaviorAlertsCount *int `json:"client_behavior_alerts_count,omitempty"`

	// ClientRiskAlertsCount Client risk alerts count
	ClientRiskAlertsCount *int `json:"client_risk_alerts_count,omitempty"`

	// MacAudioApplied MAC audio applied
	MacAudioApplied interface{} `json:"mac_audio_applied,omitempty"`

	// MvadApplied MVAD applied
	MvadApplied interface{} `json:"mvad_applied,omitempty"`

	// Tolerated Tolerated detections
	Tolerated *int `json:"tolerated,omitempty"`

	// TotalAgents Total agents
	TotalAgents *int `json:"total_agents,omitempty"`

	// TotalBots Total bots
	TotalBots *int `json:"total_bots,omitempty"`

	// TotalCalibrated Total calibrated detections
	TotalCalibrated *int `json:"total_calibrated,omitempty"`

	// TotalClients Total clients
	TotalClients *int `json:"total_clients,omitempty"`

	// TotalParticipants Total participants
	TotalParticipants *int `json:"total_participants,omitempty"`

	// TotalTurns Total turns
	TotalTurns *int `json:"total_turns,omitempty"`

	// TotalUnknown Total unknown
	TotalUnknown *int `json:"total_unknown,omitempty"`
}

AuditoriaRiscoSummaryV2 defines model for AuditoriaRiscoSummaryV2.

type AuditoriaRiscoTimelineV2

type AuditoriaRiscoTimelineV2 struct {
	// AudioEvents Audio events (i18n)
	AudioEvents *[]map[string]interface{} `json:"audio_events,omitempty"`

	// AudioGroupsFound Audio groups found
	AudioGroupsFound *[]map[string]interface{} `json:"audio_groups_found,omitempty"`

	// TurnsSentiment Per-turn sentiment
	TurnsSentiment *[]map[string]interface{} `json:"turns_sentiment,omitempty"`
}

AuditoriaRiscoTimelineV2 defines model for AuditoriaRiscoTimelineV2.

type AuditoriaRiscoUsageV2

type AuditoriaRiscoUsageV2 struct {
	// Characters Characters analyzed
	Characters int `json:"characters"`

	// CreditsConsumed Credits consumed
	CreditsConsumed int `json:"credits_consumed"`

	// ProcessingMs Processing time (ms)
	ProcessingMs int `json:"processing_ms"`
}

AuditoriaRiscoUsageV2 defines model for AuditoriaRiscoUsageV2.

type AuditoriaRiscoV2

type AuditoriaRiscoV2 struct {
	// AcoesI18n Used actions i18n catalog (keyed by action)
	AcoesI18n map[string]interface{} `json:"acoes_i18n"`

	// Analysis global_metrics + final_analysis + frameworks
	Analysis AuditoriaRiscoAnalysisV2 `json:"analysis"`

	// AudioEventModel MAC audio event semantics
	AudioEventModel AuditoriaRiscoAudioEventModelV2 `json:"audio_event_model"`

	// AuditDecisions Risk origin + validator changes
	AuditDecisions AuditoriaRiscoAuditDecisionsV2 `json:"audit_decisions"`

	// CategoriesSummary Per-category summary (keyed by category)
	CategoriesSummary map[string]interface{} `json:"categories_summary"`

	// Detections violations/positives/client alerts
	Detections AuditoriaRiscoDetectionsV2 `json:"detections"`

	// HtmlReport HTML report (base64 gzip)
	HtmlReport string `json:"html_report"`

	// Indexer Suggested terms for bank
	Indexer AuditoriaRiscoIndexerV2 `json:"indexer"`

	// Meta Identification + usage
	Meta AuditoriaRiscoMetaV2 `json:"meta"`

	// Participants Participants/roles/direction
	Participants AuditoriaRiscoParticipantsV2 `json:"participants"`

	// Scores Consolidated + per-participant scores
	Scores AuditoriaRiscoScoresV2 `json:"scores"`

	// ScoringExplanation Score composition explanation
	ScoringExplanation AuditoriaRiscoScoringExplanationV2 `json:"scoring_explanation"`

	// Summary Executive summary counts
	Summary AuditoriaRiscoSummaryV2 `json:"summary"`

	// Timeline turns_sentiment + audio_events + groups
	Timeline AuditoriaRiscoTimelineV2 `json:"timeline"`

	// Verdict Verdict + level + applied actions
	Verdict AuditoriaRiscoVerdictV2 `json:"verdict"`
}

AuditoriaRiscoV2 Response V2 (build_public_response_v2) — blocos logicos EN-US. Fonte: response_builder.py.

type AuditoriaRiscoV2Response

type AuditoriaRiscoV2Response struct {
	// Response Public response V2 — always returned
	Response AuditoriaRiscoV2 `json:"response"`
}

AuditoriaRiscoV2Response defines model for AuditoriaRiscoV2Response.

type AuditoriaRiscoVerdictV2

type AuditoriaRiscoVerdictV2 struct {
	// AppliedActions Applied actions
	AppliedActions *[]AuditoriaRiscoAppliedActionV2 `json:"applied_actions,omitempty"`

	// Color Level color
	Color *string `json:"color,omitempty"`

	// DecisionDetails Decision details
	DecisionDetails interface{} `json:"decision_details,omitempty"`

	// Icon Level icon
	Icon *string `json:"icon,omitempty"`

	// Label Human-readable verdict
	Label *string `json:"label,omitempty"`

	// LevelCode Classification level code
	LevelCode *string `json:"level_code,omitempty"`

	// RiskMatrix Risk matrix
	RiskMatrix *map[string]interface{} `json:"risk_matrix,omitempty"`
}

AuditoriaRiscoVerdictV2 defines model for AuditoriaRiscoVerdictV2.

type BodyCreateTranscriptionV1AudioTranscriptionsPost

type BodyCreateTranscriptionV1AudioTranscriptionsPost struct {
	// ClientReferenceId Optional client-supplied ID echoed verbatim in the response. Use to correlate/sync with your system. Accepted charset: [A-Za-z0-9._:-]. Not idempotency.
	ClientReferenceId *string            `json:"client_reference_id,omitempty"`
	File              openapi_types.File `json:"file"`
	Language          *string            `json:"language,omitempty"`
	Model             *string            `json:"model,omitempty"`
}

BodyCreateTranscriptionV1AudioTranscriptionsPost defines model for Body_create_transcription_v1_audio_transcriptions_post.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost

func (c *Client) CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost(ctx context.Context, body CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost Compliance Risk Audit — conversation compliance analysis

Analyzes a call transcript for compliance risks. Returns a score (0-100), classification level, violations, positives, and a detailed HTML report.

**Python:** ```python import httpx

response = httpx.post(

'https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco',
headers={'Authorization': 'Bearer fai_xxx'},
json={
    'dialog': 'Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.',
    'duration_seconds': 151.0,
    'language': 'pt-BR',
    'response_language': 'en-US'
}

) print(response.json()) ```

**cURL:** ```bash

curl https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco \
  -H 'Authorization: Bearer fai_xxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "dialog": "Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.",
    "duration_seconds": 151.0,
    "language": "pt-BR",
    "response_language": "en-US"
  }'

```

Takes a body of the `application/json` content type.

Corresponds with POST /v1/analyze/auditoriaRisco (the `CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost` operationId).

func (*Client) CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithBody

func (c *Client) CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithBody Compliance Risk Audit — conversation compliance analysis

Analyzes a call transcript for compliance risks. Returns a score (0-100), classification level, violations, positives, and a detailed HTML report.

**Python:** ```python import httpx

response = httpx.post(

'https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco',
headers={'Authorization': 'Bearer fai_xxx'},
json={
    'dialog': 'Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.',
    'duration_seconds': 151.0,
    'language': 'pt-BR',
    'response_language': 'en-US'
}

) print(response.json()) ```

**cURL:** ```bash

curl https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco \
  -H 'Authorization: Bearer fai_xxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "dialog": "Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.",
    "duration_seconds": 151.0,
    "language": "pt-BR",
    "response_language": "en-US"
  }'

```

Takes any type of body and a specified content type.

Corresponds with POST /v1/analyze/auditoriaRisco (the `CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost` operationId).

func (*Client) CreateDiagnosticV1AnalyzeDiagnosticPost

func (c *Client) CreateDiagnosticV1AnalyzeDiagnosticPost(ctx context.Context, body CreateDiagnosticV1AnalyzeDiagnosticPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateDiagnosticV1AnalyzeDiagnosticPost Analyze a call transcript — 5 parallel analyses

Runs 5 independent analyses on a call transcript: dialogue summary, contact reason, identified action, label classification, and sentiment.

**Python:** ```python import httpx

response = httpx.post(

'https://api01-falaai.action.tec.br/v1/analyze/diagnostic',
headers={'Authorization': 'Bearer fai_xxx'},
json={
    'dialog': 'Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.',
    'language': 'pt-BR',
    'duration_seconds': 151.0
}

) print(response.json()) ```

**cURL:** ```bash

curl https://api01-falaai.action.tec.br/v1/analyze/diagnostic \
  -H 'Authorization: Bearer fai_xxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "dialog": "Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.",
    "language": "pt-BR",
    "duration_seconds": 151.0
  }'

```

Takes a body of the `application/json` content type.

Corresponds with POST /v1/analyze/diagnostic (the `CreateDiagnosticV1AnalyzeDiagnosticPost` operationId).

func (*Client) CreateDiagnosticV1AnalyzeDiagnosticPostWithBody

func (c *Client) CreateDiagnosticV1AnalyzeDiagnosticPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateDiagnosticV1AnalyzeDiagnosticPostWithBody Analyze a call transcript — 5 parallel analyses

Runs 5 independent analyses on a call transcript: dialogue summary, contact reason, identified action, label classification, and sentiment.

**Python:** ```python import httpx

response = httpx.post(

'https://api01-falaai.action.tec.br/v1/analyze/diagnostic',
headers={'Authorization': 'Bearer fai_xxx'},
json={
    'dialog': 'Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.',
    'language': 'pt-BR',
    'duration_seconds': 151.0
}

) print(response.json()) ```

**cURL:** ```bash

curl https://api01-falaai.action.tec.br/v1/analyze/diagnostic \
  -H 'Authorization: Bearer fai_xxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "dialog": "Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.",
    "language": "pt-BR",
    "duration_seconds": 151.0
  }'

```

Takes any type of body and a specified content type.

Corresponds with POST /v1/analyze/diagnostic (the `CreateDiagnosticV1AnalyzeDiagnosticPost` operationId).

func (*Client) CreateEmailAlertV1EmailAlertsPost

func (c *Client) CreateEmailAlertV1EmailAlertsPost(ctx context.Context, body CreateEmailAlertV1EmailAlertsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateEmailAlertV1EmailAlertsPost Criar email de alerta

Takes a body of the `application/json` content type.

Corresponds with POST /v1/email-alerts (the `CreateEmailAlertV1EmailAlertsPost` operationId).

func (*Client) CreateEmailAlertV1EmailAlertsPostWithBody

func (c *Client) CreateEmailAlertV1EmailAlertsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateEmailAlertV1EmailAlertsPostWithBody Criar email de alerta

Takes any type of body and a specified content type.

Corresponds with POST /v1/email-alerts (the `CreateEmailAlertV1EmailAlertsPost` operationId).

func (*Client) CreateTranscriptionV1AudioTranscriptionsPostWithBody

func (c *Client) CreateTranscriptionV1AudioTranscriptionsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateTranscriptionV1AudioTranscriptionsPostWithBody Transcribe audio to text

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://api01-falaai.action.tec.br/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://api01-falaai.action.tec.br/v1/audio/transcriptions \
  -H 'Authorization: Bearer fai_xxx' \
  -F 'file=@call.mp3' \
  -F 'model=falaai-transcribe-1' \
  -F 'language=pt'

```

Takes any type of body and a specified content type.

Corresponds with POST /v1/audio/transcriptions (the `CreateTranscriptionV1AudioTranscriptionsPost` operationId).

func (*Client) CreateWebhookV1WebhooksPost

func (c *Client) CreateWebhookV1WebhooksPost(ctx context.Context, body CreateWebhookV1WebhooksPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateWebhookV1WebhooksPost Criar webhook de alertas

Cria inscricao para eventos de alerta (10 alertas). Payload enviado: WebhookPayload(event, data, timestamp) com HMAC FalaAI-Signature. Para comprovar a origem, recalcule HMAC-SHA256 de "timestamp.body" com seu secret (exemplos: /examples/download/python.zip e nodejs.zip, arquivo webhook_verify).

Takes a body of the `application/json` content type.

Corresponds with POST /v1/webhooks (the `CreateWebhookV1WebhooksPost` operationId).

func (*Client) CreateWebhookV1WebhooksPostWithBody

func (c *Client) CreateWebhookV1WebhooksPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateWebhookV1WebhooksPostWithBody Criar webhook de alertas

Cria inscricao para eventos de alerta (10 alertas). Payload enviado: WebhookPayload(event, data, timestamp) com HMAC FalaAI-Signature. Para comprovar a origem, recalcule HMAC-SHA256 de "timestamp.body" com seu secret (exemplos: /examples/download/python.zip e nodejs.zip, arquivo webhook_verify).

Takes any type of body and a specified content type.

Corresponds with POST /v1/webhooks (the `CreateWebhookV1WebhooksPost` operationId).

func (*Client) DeleteEmailAlertV1EmailAlertsAlertIdDelete

func (c *Client) DeleteEmailAlertV1EmailAlertsAlertIdDelete(ctx context.Context, alertId string, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteEmailAlertV1EmailAlertsAlertIdDelete Remover email de alerta

Corresponds with DELETE /v1/email-alerts/{alert_id} (the `DeleteEmailAlertV1EmailAlertsAlertIdDelete` operationId).

func (*Client) DeleteWebhookV1WebhooksWebhookIdDelete

func (c *Client) DeleteWebhookV1WebhooksWebhookIdDelete(ctx context.Context, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteWebhookV1WebhooksWebhookIdDelete Remover webhook

Remove inscricao de webhook por ID.

Corresponds with DELETE /v1/webhooks/{webhook_id} (the `DeleteWebhookV1WebhooksWebhookIdDelete` operationId).

func (*Client) GetUsageByKeyV1UsageByKeyGet

func (c *Client) GetUsageByKeyV1UsageByKeyGet(ctx context.Context, params *GetUsageByKeyV1UsageByKeyGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetUsageByKeyV1UsageByKeyGet Get Usage By Key

Corresponds with GET /v1/usage/by-key (the `GetUsageByKeyV1UsageByKeyGet` operationId).

func (*Client) GetUsageLogV1UsageLogGet

func (c *Client) GetUsageLogV1UsageLogGet(ctx context.Context, params *GetUsageLogV1UsageLogGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetUsageLogV1UsageLogGet Get Usage Log

Corresponds with GET /v1/usage/log (the `GetUsageLogV1UsageLogGet` operationId).

func (*Client) GetVersionApiVersionGet

func (c *Client) GetVersionApiVersionGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetVersionApiVersionGet Get Version

Corresponds with GET /api/version (the `GetVersionApiVersionGet` operationId).

func (*Client) HealthCheck

func (c *Client) HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

HealthCheck Health Check

Corresponds with GET /v1/health (the `HealthCheck` operationId).

func (*Client) HealthCheckHead

func (c *Client) HealthCheckHead(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

HealthCheckHead Health Check

Corresponds with HEAD /v1/health (the `HealthCheckHead` operationId).

func (*Client) ListEmailAlertsV1EmailAlertsGet

func (c *Client) ListEmailAlertsV1EmailAlertsGet(ctx context.Context, params *ListEmailAlertsV1EmailAlertsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListEmailAlertsV1EmailAlertsGet Listar emails de alerta

Corresponds with GET /v1/email-alerts (the `ListEmailAlertsV1EmailAlertsGet` operationId).

func (*Client) ListWebhooksV1WebhooksGet

func (c *Client) ListWebhooksV1WebhooksGet(ctx context.Context, params *ListWebhooksV1WebhooksGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListWebhooksV1WebhooksGet Listar webhooks de alertas

Lista webhooks do usuario autenticado (10 alertas). Paginado. Inclui o secret da assinatura da URL (sempre visivel ao dono).

Corresponds with GET /v1/webhooks (the `ListWebhooksV1WebhooksGet` operationId).

func (*Client) UpdateEmailAlertV1EmailAlertsAlertIdPut

func (c *Client) UpdateEmailAlertV1EmailAlertsAlertIdPut(ctx context.Context, alertId string, body UpdateEmailAlertV1EmailAlertsAlertIdPutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateEmailAlertV1EmailAlertsAlertIdPut Atualizar email de alerta

Takes a body of the `application/json` content type.

Corresponds with PUT /v1/email-alerts/{alert_id} (the `UpdateEmailAlertV1EmailAlertsAlertIdPut` operationId).

func (*Client) UpdateEmailAlertV1EmailAlertsAlertIdPutWithBody

func (c *Client) UpdateEmailAlertV1EmailAlertsAlertIdPutWithBody(ctx context.Context, alertId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateEmailAlertV1EmailAlertsAlertIdPutWithBody Atualizar email de alerta

Takes any type of body and a specified content type.

Corresponds with PUT /v1/email-alerts/{alert_id} (the `UpdateEmailAlertV1EmailAlertsAlertIdPut` operationId).

func (*Client) UpdateWebhookV1WebhooksWebhookIdPut

func (c *Client) UpdateWebhookV1WebhooksWebhookIdPut(ctx context.Context, webhookId string, body UpdateWebhookV1WebhooksWebhookIdPutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateWebhookV1WebhooksWebhookIdPut Atualizar webhook

Atualiza name/url/events/retry_enabled/active do webhook. Eventos validos: 10 alertas.

Takes a body of the `application/json` content type.

Corresponds with PUT /v1/webhooks/{webhook_id} (the `UpdateWebhookV1WebhooksWebhookIdPut` operationId).

func (*Client) UpdateWebhookV1WebhooksWebhookIdPutWithBody

func (c *Client) UpdateWebhookV1WebhooksWebhookIdPutWithBody(ctx context.Context, webhookId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateWebhookV1WebhooksWebhookIdPutWithBody Atualizar webhook

Atualiza name/url/events/retry_enabled/active do webhook. Eventos validos: 10 alertas.

Takes any type of body and a specified content type.

Corresponds with PUT /v1/webhooks/{webhook_id} (the `UpdateWebhookV1WebhooksWebhookIdPut` operationId).

type ClientInterface

type ClientInterface interface {

	// GetVersionApiVersionGet Get Version
	//
	// Corresponds with GET /api/version (the `GetVersionApiVersionGet` operationId).
	GetVersionApiVersionGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithBody Compliance Risk Audit — conversation compliance analysis
	//
	// Analyzes a call transcript for compliance risks. Returns a score (0-100), classification level, violations, positives, and a detailed HTML report.
	//
	// **Python:**
	// “`python
	// import httpx
	//
	// response = httpx.post(
	//     'https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco',
	//     headers={'Authorization': 'Bearer fai_xxx'},
	//     json={
	//         'dialog': 'Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.',
	//         'duration_seconds': 151.0,
	//         'language': 'pt-BR',
	//         'response_language': 'en-US'
	//     }
	// )
	// print(response.json())
	// “`
	//
	// **cURL:**
	// “`bash
	// curl https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco \
	//   -H 'Authorization: Bearer fai_xxx' \
	//   -H 'Content-Type: application/json' \
	//   -d '{
	//     "dialog": "Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.",
	//     "duration_seconds": 151.0,
	//     "language": "pt-BR",
	//     "response_language": "en-US"
	//   }'
	// “`
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/analyze/auditoriaRisco (the `CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost` operationId).
	CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost Compliance Risk Audit — conversation compliance analysis
	//
	// Analyzes a call transcript for compliance risks. Returns a score (0-100), classification level, violations, positives, and a detailed HTML report.
	//
	// **Python:**
	// “`python
	// import httpx
	//
	// response = httpx.post(
	//     'https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco',
	//     headers={'Authorization': 'Bearer fai_xxx'},
	//     json={
	//         'dialog': 'Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.',
	//         'duration_seconds': 151.0,
	//         'language': 'pt-BR',
	//         'response_language': 'en-US'
	//     }
	// )
	// print(response.json())
	// “`
	//
	// **cURL:**
	// “`bash
	// curl https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco \
	//   -H 'Authorization: Bearer fai_xxx' \
	//   -H 'Content-Type: application/json' \
	//   -d '{
	//     "dialog": "Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.",
	//     "duration_seconds": 151.0,
	//     "language": "pt-BR",
	//     "response_language": "en-US"
	//   }'
	// “`
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/analyze/auditoriaRisco (the `CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost` operationId).
	CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost(ctx context.Context, body CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateDiagnosticV1AnalyzeDiagnosticPostWithBody Analyze a call transcript — 5 parallel analyses
	//
	// Runs 5 independent analyses on a call transcript: dialogue summary, contact reason, identified action, label classification, and sentiment.
	//
	// **Python:**
	// “`python
	// import httpx
	//
	// response = httpx.post(
	//     'https://api01-falaai.action.tec.br/v1/analyze/diagnostic',
	//     headers={'Authorization': 'Bearer fai_xxx'},
	//     json={
	//         'dialog': 'Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.',
	//         'language': 'pt-BR',
	//         'duration_seconds': 151.0
	//     }
	// )
	// print(response.json())
	// “`
	//
	// **cURL:**
	// “`bash
	// curl https://api01-falaai.action.tec.br/v1/analyze/diagnostic \
	//   -H 'Authorization: Bearer fai_xxx' \
	//   -H 'Content-Type: application/json' \
	//   -d '{
	//     "dialog": "Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.",
	//     "language": "pt-BR",
	//     "duration_seconds": 151.0
	//   }'
	// “`
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/analyze/diagnostic (the `CreateDiagnosticV1AnalyzeDiagnosticPost` operationId).
	CreateDiagnosticV1AnalyzeDiagnosticPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateDiagnosticV1AnalyzeDiagnosticPost Analyze a call transcript — 5 parallel analyses
	//
	// Runs 5 independent analyses on a call transcript: dialogue summary, contact reason, identified action, label classification, and sentiment.
	//
	// **Python:**
	// “`python
	// import httpx
	//
	// response = httpx.post(
	//     'https://api01-falaai.action.tec.br/v1/analyze/diagnostic',
	//     headers={'Authorization': 'Bearer fai_xxx'},
	//     json={
	//         'dialog': 'Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.',
	//         'language': 'pt-BR',
	//         'duration_seconds': 151.0
	//     }
	// )
	// print(response.json())
	// “`
	//
	// **cURL:**
	// “`bash
	// curl https://api01-falaai.action.tec.br/v1/analyze/diagnostic \
	//   -H 'Authorization: Bearer fai_xxx' \
	//   -H 'Content-Type: application/json' \
	//   -d '{
	//     "dialog": "Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.",
	//     "language": "pt-BR",
	//     "duration_seconds": 151.0
	//   }'
	// “`
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/analyze/diagnostic (the `CreateDiagnosticV1AnalyzeDiagnosticPost` operationId).
	CreateDiagnosticV1AnalyzeDiagnosticPost(ctx context.Context, body CreateDiagnosticV1AnalyzeDiagnosticPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTranscriptionV1AudioTranscriptionsPostWithBody Transcribe audio to text
	//
	// 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://api01-falaai.action.tec.br/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://api01-falaai.action.tec.br/v1/audio/transcriptions \
	//   -H 'Authorization: Bearer fai_xxx' \
	//   -F 'file=@call.mp3' \
	//   -F 'model=falaai-transcribe-1' \
	//   -F 'language=pt'
	// “`
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/audio/transcriptions (the `CreateTranscriptionV1AudioTranscriptionsPost` operationId).
	CreateTranscriptionV1AudioTranscriptionsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListEmailAlertsV1EmailAlertsGet Listar emails de alerta
	//
	// Corresponds with GET /v1/email-alerts (the `ListEmailAlertsV1EmailAlertsGet` operationId).
	ListEmailAlertsV1EmailAlertsGet(ctx context.Context, params *ListEmailAlertsV1EmailAlertsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateEmailAlertV1EmailAlertsPostWithBody Criar email de alerta
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/email-alerts (the `CreateEmailAlertV1EmailAlertsPost` operationId).
	CreateEmailAlertV1EmailAlertsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateEmailAlertV1EmailAlertsPost Criar email de alerta
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/email-alerts (the `CreateEmailAlertV1EmailAlertsPost` operationId).
	CreateEmailAlertV1EmailAlertsPost(ctx context.Context, body CreateEmailAlertV1EmailAlertsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteEmailAlertV1EmailAlertsAlertIdDelete Remover email de alerta
	//
	// Corresponds with DELETE /v1/email-alerts/{alert_id} (the `DeleteEmailAlertV1EmailAlertsAlertIdDelete` operationId).
	DeleteEmailAlertV1EmailAlertsAlertIdDelete(ctx context.Context, alertId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateEmailAlertV1EmailAlertsAlertIdPutWithBody Atualizar email de alerta
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /v1/email-alerts/{alert_id} (the `UpdateEmailAlertV1EmailAlertsAlertIdPut` operationId).
	UpdateEmailAlertV1EmailAlertsAlertIdPutWithBody(ctx context.Context, alertId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateEmailAlertV1EmailAlertsAlertIdPut Atualizar email de alerta
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /v1/email-alerts/{alert_id} (the `UpdateEmailAlertV1EmailAlertsAlertIdPut` operationId).
	UpdateEmailAlertV1EmailAlertsAlertIdPut(ctx context.Context, alertId string, body UpdateEmailAlertV1EmailAlertsAlertIdPutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HealthCheck Health Check
	//
	// Corresponds with GET /v1/health (the `HealthCheck` operationId).
	HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HealthCheckHead Health Check
	//
	// Corresponds with HEAD /v1/health (the `HealthCheckHead` operationId).
	HealthCheckHead(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUsageByKeyV1UsageByKeyGet Get Usage By Key
	//
	// Corresponds with GET /v1/usage/by-key (the `GetUsageByKeyV1UsageByKeyGet` operationId).
	GetUsageByKeyV1UsageByKeyGet(ctx context.Context, params *GetUsageByKeyV1UsageByKeyGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUsageLogV1UsageLogGet Get Usage Log
	//
	// Corresponds with GET /v1/usage/log (the `GetUsageLogV1UsageLogGet` operationId).
	GetUsageLogV1UsageLogGet(ctx context.Context, params *GetUsageLogV1UsageLogGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWebhooksV1WebhooksGet Listar webhooks de alertas
	//
	// Lista webhooks do usuario autenticado (10 alertas). Paginado. Inclui o secret da assinatura da URL (sempre visivel ao dono).
	//
	// Corresponds with GET /v1/webhooks (the `ListWebhooksV1WebhooksGet` operationId).
	ListWebhooksV1WebhooksGet(ctx context.Context, params *ListWebhooksV1WebhooksGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateWebhookV1WebhooksPostWithBody Criar webhook de alertas
	//
	// Cria inscricao para eventos de alerta (10 alertas). Payload enviado: WebhookPayload(event, data, timestamp) com HMAC FalaAI-Signature. Para comprovar a origem, recalcule HMAC-SHA256 de "timestamp.body" com seu secret (exemplos: /examples/download/python.zip e nodejs.zip, arquivo webhook_verify).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/webhooks (the `CreateWebhookV1WebhooksPost` operationId).
	CreateWebhookV1WebhooksPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateWebhookV1WebhooksPost Criar webhook de alertas
	//
	// Cria inscricao para eventos de alerta (10 alertas). Payload enviado: WebhookPayload(event, data, timestamp) com HMAC FalaAI-Signature. Para comprovar a origem, recalcule HMAC-SHA256 de "timestamp.body" com seu secret (exemplos: /examples/download/python.zip e nodejs.zip, arquivo webhook_verify).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/webhooks (the `CreateWebhookV1WebhooksPost` operationId).
	CreateWebhookV1WebhooksPost(ctx context.Context, body CreateWebhookV1WebhooksPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteWebhookV1WebhooksWebhookIdDelete Remover webhook
	//
	// Remove inscricao de webhook por ID.
	//
	// Corresponds with DELETE /v1/webhooks/{webhook_id} (the `DeleteWebhookV1WebhooksWebhookIdDelete` operationId).
	DeleteWebhookV1WebhooksWebhookIdDelete(ctx context.Context, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateWebhookV1WebhooksWebhookIdPutWithBody Atualizar webhook
	//
	// Atualiza name/url/events/retry_enabled/active do webhook. Eventos validos: 10 alertas.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /v1/webhooks/{webhook_id} (the `UpdateWebhookV1WebhooksWebhookIdPut` operationId).
	UpdateWebhookV1WebhooksWebhookIdPutWithBody(ctx context.Context, webhookId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateWebhookV1WebhooksWebhookIdPut Atualizar webhook
	//
	// Atualiza name/url/events/retry_enabled/active do webhook. Eventos validos: 10 alertas.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /v1/webhooks/{webhook_id} (the `UpdateWebhookV1WebhooksWebhookIdPut` operationId).
	UpdateWebhookV1WebhooksWebhookIdPut(ctx context.Context, webhookId string, body UpdateWebhookV1WebhooksWebhookIdPutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithBodyWithResponse

func (c *ClientWithResponses) CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse, error)

CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithBodyWithResponse Compliance Risk Audit — conversation compliance analysis

Analyzes a call transcript for compliance risks. Returns a score (0-100), classification level, violations, positives, and a detailed HTML report.

**Python:** ```python import httpx

response = httpx.post(

'https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco',
headers={'Authorization': 'Bearer fai_xxx'},
json={
    'dialog': 'Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.',
    'duration_seconds': 151.0,
    'language': 'pt-BR',
    'response_language': 'en-US'
}

) print(response.json()) ```

**cURL:** ```bash

curl https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco \
  -H 'Authorization: Bearer fai_xxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "dialog": "Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.",
    "duration_seconds": 151.0,
    "language": "pt-BR",
    "response_language": "en-US"
  }'

```

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/analyze/auditoriaRisco (the `CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost` operationId).

func (*ClientWithResponses) CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithResponse

CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithResponse Compliance Risk Audit — conversation compliance analysis

Analyzes a call transcript for compliance risks. Returns a score (0-100), classification level, violations, positives, and a detailed HTML report.

**Python:** ```python import httpx

response = httpx.post(

'https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco',
headers={'Authorization': 'Bearer fai_xxx'},
json={
    'dialog': 'Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.',
    'duration_seconds': 151.0,
    'language': 'pt-BR',
    'response_language': 'en-US'
}

) print(response.json()) ```

**cURL:** ```bash

curl https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco \
  -H 'Authorization: Bearer fai_xxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "dialog": "Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.",
    "duration_seconds": 151.0,
    "language": "pt-BR",
    "response_language": "en-US"
  }'

```

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/analyze/auditoriaRisco (the `CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost` operationId).

func (*ClientWithResponses) CreateDiagnosticV1AnalyzeDiagnosticPostWithBodyWithResponse

func (c *ClientWithResponses) CreateDiagnosticV1AnalyzeDiagnosticPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDiagnosticV1AnalyzeDiagnosticPostResponse, error)

CreateDiagnosticV1AnalyzeDiagnosticPostWithBodyWithResponse Analyze a call transcript — 5 parallel analyses

Runs 5 independent analyses on a call transcript: dialogue summary, contact reason, identified action, label classification, and sentiment.

**Python:** ```python import httpx

response = httpx.post(

'https://api01-falaai.action.tec.br/v1/analyze/diagnostic',
headers={'Authorization': 'Bearer fai_xxx'},
json={
    'dialog': 'Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.',
    'language': 'pt-BR',
    'duration_seconds': 151.0
}

) print(response.json()) ```

**cURL:** ```bash

curl https://api01-falaai.action.tec.br/v1/analyze/diagnostic \
  -H 'Authorization: Bearer fai_xxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "dialog": "Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.",
    "language": "pt-BR",
    "duration_seconds": 151.0
  }'

```

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/analyze/diagnostic (the `CreateDiagnosticV1AnalyzeDiagnosticPost` operationId).

func (*ClientWithResponses) CreateDiagnosticV1AnalyzeDiagnosticPostWithResponse

CreateDiagnosticV1AnalyzeDiagnosticPostWithResponse Analyze a call transcript — 5 parallel analyses

Runs 5 independent analyses on a call transcript: dialogue summary, contact reason, identified action, label classification, and sentiment.

**Python:** ```python import httpx

response = httpx.post(

'https://api01-falaai.action.tec.br/v1/analyze/diagnostic',
headers={'Authorization': 'Bearer fai_xxx'},
json={
    'dialog': 'Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.',
    'language': 'pt-BR',
    'duration_seconds': 151.0
}

) print(response.json()) ```

**cURL:** ```bash

curl https://api01-falaai.action.tec.br/v1/analyze/diagnostic \
  -H 'Authorization: Bearer fai_xxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "dialog": "Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.",
    "language": "pt-BR",
    "duration_seconds": 151.0
  }'

```

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/analyze/diagnostic (the `CreateDiagnosticV1AnalyzeDiagnosticPost` operationId).

func (*ClientWithResponses) CreateEmailAlertV1EmailAlertsPostWithBodyWithResponse

func (c *ClientWithResponses) CreateEmailAlertV1EmailAlertsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmailAlertV1EmailAlertsPostResponse, error)

CreateEmailAlertV1EmailAlertsPostWithBodyWithResponse Criar email de alerta

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/email-alerts (the `CreateEmailAlertV1EmailAlertsPost` operationId).

func (*ClientWithResponses) CreateEmailAlertV1EmailAlertsPostWithResponse

CreateEmailAlertV1EmailAlertsPostWithResponse Criar email de alerta

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/email-alerts (the `CreateEmailAlertV1EmailAlertsPost` operationId).

func (*ClientWithResponses) CreateTranscriptionV1AudioTranscriptionsPostWithBodyWithResponse

func (c *ClientWithResponses) CreateTranscriptionV1AudioTranscriptionsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTranscriptionV1AudioTranscriptionsPostResponse, error)

CreateTranscriptionV1AudioTranscriptionsPostWithBodyWithResponse Transcribe audio to text

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://api01-falaai.action.tec.br/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://api01-falaai.action.tec.br/v1/audio/transcriptions \
  -H 'Authorization: Bearer fai_xxx' \
  -F 'file=@call.mp3' \
  -F 'model=falaai-transcribe-1' \
  -F 'language=pt'

```

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/audio/transcriptions (the `CreateTranscriptionV1AudioTranscriptionsPost` operationId).

func (*ClientWithResponses) CreateWebhookV1WebhooksPostWithBodyWithResponse

func (c *ClientWithResponses) CreateWebhookV1WebhooksPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWebhookV1WebhooksPostResponse, error)

CreateWebhookV1WebhooksPostWithBodyWithResponse Criar webhook de alertas

Cria inscricao para eventos de alerta (10 alertas). Payload enviado: WebhookPayload(event, data, timestamp) com HMAC FalaAI-Signature. Para comprovar a origem, recalcule HMAC-SHA256 de "timestamp.body" com seu secret (exemplos: /examples/download/python.zip e nodejs.zip, arquivo webhook_verify).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/webhooks (the `CreateWebhookV1WebhooksPost` operationId).

func (*ClientWithResponses) CreateWebhookV1WebhooksPostWithResponse

func (c *ClientWithResponses) CreateWebhookV1WebhooksPostWithResponse(ctx context.Context, body CreateWebhookV1WebhooksPostJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWebhookV1WebhooksPostResponse, error)

CreateWebhookV1WebhooksPostWithResponse Criar webhook de alertas

Cria inscricao para eventos de alerta (10 alertas). Payload enviado: WebhookPayload(event, data, timestamp) com HMAC FalaAI-Signature. Para comprovar a origem, recalcule HMAC-SHA256 de "timestamp.body" com seu secret (exemplos: /examples/download/python.zip e nodejs.zip, arquivo webhook_verify).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/webhooks (the `CreateWebhookV1WebhooksPost` operationId).

func (*ClientWithResponses) DeleteEmailAlertV1EmailAlertsAlertIdDeleteWithResponse

func (c *ClientWithResponses) DeleteEmailAlertV1EmailAlertsAlertIdDeleteWithResponse(ctx context.Context, alertId string, reqEditors ...RequestEditorFn) (*DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse, error)

DeleteEmailAlertV1EmailAlertsAlertIdDeleteWithResponse Remover email de alerta

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /v1/email-alerts/{alert_id} (the `DeleteEmailAlertV1EmailAlertsAlertIdDelete` operationId).

func (*ClientWithResponses) DeleteWebhookV1WebhooksWebhookIdDeleteWithResponse

func (c *ClientWithResponses) DeleteWebhookV1WebhooksWebhookIdDeleteWithResponse(ctx context.Context, webhookId string, reqEditors ...RequestEditorFn) (*DeleteWebhookV1WebhooksWebhookIdDeleteResponse, error)

DeleteWebhookV1WebhooksWebhookIdDeleteWithResponse Remover webhook

Remove inscricao de webhook por ID.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /v1/webhooks/{webhook_id} (the `DeleteWebhookV1WebhooksWebhookIdDelete` operationId).

func (*ClientWithResponses) GetUsageByKeyV1UsageByKeyGetWithResponse

func (c *ClientWithResponses) GetUsageByKeyV1UsageByKeyGetWithResponse(ctx context.Context, params *GetUsageByKeyV1UsageByKeyGetParams, reqEditors ...RequestEditorFn) (*GetUsageByKeyV1UsageByKeyGetResponse, error)

GetUsageByKeyV1UsageByKeyGetWithResponse Get Usage By Key

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/usage/by-key (the `GetUsageByKeyV1UsageByKeyGet` operationId).

func (*ClientWithResponses) GetUsageLogV1UsageLogGetWithResponse

func (c *ClientWithResponses) GetUsageLogV1UsageLogGetWithResponse(ctx context.Context, params *GetUsageLogV1UsageLogGetParams, reqEditors ...RequestEditorFn) (*GetUsageLogV1UsageLogGetResponse, error)

GetUsageLogV1UsageLogGetWithResponse Get Usage Log

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/usage/log (the `GetUsageLogV1UsageLogGet` operationId).

func (*ClientWithResponses) GetVersionApiVersionGetWithResponse

func (c *ClientWithResponses) GetVersionApiVersionGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionApiVersionGetResponse, error)

GetVersionApiVersionGetWithResponse Get Version

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/version (the `GetVersionApiVersionGet` operationId).

func (*ClientWithResponses) HealthCheckHeadWithResponse

func (c *ClientWithResponses) HealthCheckHeadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckHeadResponse, error)

HealthCheckHeadWithResponse Health Check

Returns a wrapper object for the known response body format(s).

Corresponds with HEAD /v1/health (the `HealthCheckHead` operationId).

func (*ClientWithResponses) HealthCheckWithResponse

func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)

HealthCheckWithResponse Health Check

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/health (the `HealthCheck` operationId).

func (*ClientWithResponses) ListEmailAlertsV1EmailAlertsGetWithResponse

func (c *ClientWithResponses) ListEmailAlertsV1EmailAlertsGetWithResponse(ctx context.Context, params *ListEmailAlertsV1EmailAlertsGetParams, reqEditors ...RequestEditorFn) (*ListEmailAlertsV1EmailAlertsGetResponse, error)

ListEmailAlertsV1EmailAlertsGetWithResponse Listar emails de alerta

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/email-alerts (the `ListEmailAlertsV1EmailAlertsGet` operationId).

func (*ClientWithResponses) ListWebhooksV1WebhooksGetWithResponse

func (c *ClientWithResponses) ListWebhooksV1WebhooksGetWithResponse(ctx context.Context, params *ListWebhooksV1WebhooksGetParams, reqEditors ...RequestEditorFn) (*ListWebhooksV1WebhooksGetResponse, error)

ListWebhooksV1WebhooksGetWithResponse Listar webhooks de alertas

Lista webhooks do usuario autenticado (10 alertas). Paginado. Inclui o secret da assinatura da URL (sempre visivel ao dono).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/webhooks (the `ListWebhooksV1WebhooksGet` operationId).

func (*ClientWithResponses) UpdateEmailAlertV1EmailAlertsAlertIdPutWithBodyWithResponse

func (c *ClientWithResponses) UpdateEmailAlertV1EmailAlertsAlertIdPutWithBodyWithResponse(ctx context.Context, alertId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEmailAlertV1EmailAlertsAlertIdPutResponse, error)

UpdateEmailAlertV1EmailAlertsAlertIdPutWithBodyWithResponse Atualizar email de alerta

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /v1/email-alerts/{alert_id} (the `UpdateEmailAlertV1EmailAlertsAlertIdPut` operationId).

func (*ClientWithResponses) UpdateEmailAlertV1EmailAlertsAlertIdPutWithResponse

func (c *ClientWithResponses) UpdateEmailAlertV1EmailAlertsAlertIdPutWithResponse(ctx context.Context, alertId string, body UpdateEmailAlertV1EmailAlertsAlertIdPutJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEmailAlertV1EmailAlertsAlertIdPutResponse, error)

UpdateEmailAlertV1EmailAlertsAlertIdPutWithResponse Atualizar email de alerta

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /v1/email-alerts/{alert_id} (the `UpdateEmailAlertV1EmailAlertsAlertIdPut` operationId).

func (*ClientWithResponses) UpdateWebhookV1WebhooksWebhookIdPutWithBodyWithResponse

func (c *ClientWithResponses) UpdateWebhookV1WebhooksWebhookIdPutWithBodyWithResponse(ctx context.Context, webhookId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWebhookV1WebhooksWebhookIdPutResponse, error)

UpdateWebhookV1WebhooksWebhookIdPutWithBodyWithResponse Atualizar webhook

Atualiza name/url/events/retry_enabled/active do webhook. Eventos validos: 10 alertas.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /v1/webhooks/{webhook_id} (the `UpdateWebhookV1WebhooksWebhookIdPut` operationId).

func (*ClientWithResponses) UpdateWebhookV1WebhooksWebhookIdPutWithResponse

func (c *ClientWithResponses) UpdateWebhookV1WebhooksWebhookIdPutWithResponse(ctx context.Context, webhookId string, body UpdateWebhookV1WebhooksWebhookIdPutJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWebhookV1WebhooksWebhookIdPutResponse, error)

UpdateWebhookV1WebhooksWebhookIdPutWithResponse Atualizar webhook

Atualiza name/url/events/retry_enabled/active do webhook. Eventos validos: 10 alertas.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /v1/webhooks/{webhook_id} (the `UpdateWebhookV1WebhooksWebhookIdPut` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// GetVersionApiVersionGetWithResponse Get Version
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/version (the `GetVersionApiVersionGet` operationId).
	GetVersionApiVersionGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionApiVersionGetResponse, error)

	// CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithBodyWithResponse Compliance Risk Audit — conversation compliance analysis
	//
	// Analyzes a call transcript for compliance risks. Returns a score (0-100), classification level, violations, positives, and a detailed HTML report.
	//
	// **Python:**
	// “`python
	// import httpx
	//
	// response = httpx.post(
	//     'https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco',
	//     headers={'Authorization': 'Bearer fai_xxx'},
	//     json={
	//         'dialog': 'Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.',
	//         'duration_seconds': 151.0,
	//         'language': 'pt-BR',
	//         'response_language': 'en-US'
	//     }
	// )
	// print(response.json())
	// “`
	//
	// **cURL:**
	// “`bash
	// curl https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco \
	//   -H 'Authorization: Bearer fai_xxx' \
	//   -H 'Content-Type: application/json' \
	//   -d '{
	//     "dialog": "Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.",
	//     "duration_seconds": 151.0,
	//     "language": "pt-BR",
	//     "response_language": "en-US"
	//   }'
	// “`
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/analyze/auditoriaRisco (the `CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost` operationId).
	CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse, error)

	// CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithResponse Compliance Risk Audit — conversation compliance analysis
	//
	// Analyzes a call transcript for compliance risks. Returns a score (0-100), classification level, violations, positives, and a detailed HTML report.
	//
	// **Python:**
	// “`python
	// import httpx
	//
	// response = httpx.post(
	//     'https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco',
	//     headers={'Authorization': 'Bearer fai_xxx'},
	//     json={
	//         'dialog': 'Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.',
	//         'duration_seconds': 151.0,
	//         'language': 'pt-BR',
	//         'response_language': 'en-US'
	//     }
	// )
	// print(response.json())
	// “`
	//
	// **cURL:**
	// “`bash
	// curl https://api01-falaai.action.tec.br/v1/analyze/auditoriaRisco \
	//   -H 'Authorization: Bearer fai_xxx' \
	//   -H 'Content-Type: application/json' \
	//   -d '{
	//     "dialog": "Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.",
	//     "duration_seconds": 151.0,
	//     "language": "pt-BR",
	//     "response_language": "en-US"
	//   }'
	// “`
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/analyze/auditoriaRisco (the `CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost` operationId).
	CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithResponse(ctx context.Context, body CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse, error)

	// CreateDiagnosticV1AnalyzeDiagnosticPostWithBodyWithResponse Analyze a call transcript — 5 parallel analyses
	//
	// Runs 5 independent analyses on a call transcript: dialogue summary, contact reason, identified action, label classification, and sentiment.
	//
	// **Python:**
	// “`python
	// import httpx
	//
	// response = httpx.post(
	//     'https://api01-falaai.action.tec.br/v1/analyze/diagnostic',
	//     headers={'Authorization': 'Bearer fai_xxx'},
	//     json={
	//         'dialog': 'Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.',
	//         'language': 'pt-BR',
	//         'duration_seconds': 151.0
	//     }
	// )
	// print(response.json())
	// “`
	//
	// **cURL:**
	// “`bash
	// curl https://api01-falaai.action.tec.br/v1/analyze/diagnostic \
	//   -H 'Authorization: Bearer fai_xxx' \
	//   -H 'Content-Type: application/json' \
	//   -d '{
	//     "dialog": "Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.",
	//     "language": "pt-BR",
	//     "duration_seconds": 151.0
	//   }'
	// “`
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/analyze/diagnostic (the `CreateDiagnosticV1AnalyzeDiagnosticPost` operationId).
	CreateDiagnosticV1AnalyzeDiagnosticPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDiagnosticV1AnalyzeDiagnosticPostResponse, error)

	// CreateDiagnosticV1AnalyzeDiagnosticPostWithResponse Analyze a call transcript — 5 parallel analyses
	//
	// Runs 5 independent analyses on a call transcript: dialogue summary, contact reason, identified action, label classification, and sentiment.
	//
	// **Python:**
	// “`python
	// import httpx
	//
	// response = httpx.post(
	//     'https://api01-falaai.action.tec.br/v1/analyze/diagnostic',
	//     headers={'Authorization': 'Bearer fai_xxx'},
	//     json={
	//         'dialog': 'Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.',
	//         'language': 'pt-BR',
	//         'duration_seconds': 151.0
	//     }
	// )
	// print(response.json())
	// “`
	//
	// **cURL:**
	// “`bash
	// curl https://api01-falaai.action.tec.br/v1/analyze/diagnostic \
	//   -H 'Authorization: Bearer fai_xxx' \
	//   -H 'Content-Type: application/json' \
	//   -d '{
	//     "dialog": "Speaker 1: [00:00:00.540 - 00:00:01.139] Hi, Alex.",
	//     "language": "pt-BR",
	//     "duration_seconds": 151.0
	//   }'
	// “`
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/analyze/diagnostic (the `CreateDiagnosticV1AnalyzeDiagnosticPost` operationId).
	CreateDiagnosticV1AnalyzeDiagnosticPostWithResponse(ctx context.Context, body CreateDiagnosticV1AnalyzeDiagnosticPostJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDiagnosticV1AnalyzeDiagnosticPostResponse, error)

	// CreateTranscriptionV1AudioTranscriptionsPostWithBodyWithResponse Transcribe audio to text
	//
	// 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://api01-falaai.action.tec.br/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://api01-falaai.action.tec.br/v1/audio/transcriptions \
	//   -H 'Authorization: Bearer fai_xxx' \
	//   -F 'file=@call.mp3' \
	//   -F 'model=falaai-transcribe-1' \
	//   -F 'language=pt'
	// “`
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/audio/transcriptions (the `CreateTranscriptionV1AudioTranscriptionsPost` operationId).
	CreateTranscriptionV1AudioTranscriptionsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTranscriptionV1AudioTranscriptionsPostResponse, error)

	// ListEmailAlertsV1EmailAlertsGetWithResponse Listar emails de alerta
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/email-alerts (the `ListEmailAlertsV1EmailAlertsGet` operationId).
	ListEmailAlertsV1EmailAlertsGetWithResponse(ctx context.Context, params *ListEmailAlertsV1EmailAlertsGetParams, reqEditors ...RequestEditorFn) (*ListEmailAlertsV1EmailAlertsGetResponse, error)

	// CreateEmailAlertV1EmailAlertsPostWithBodyWithResponse Criar email de alerta
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/email-alerts (the `CreateEmailAlertV1EmailAlertsPost` operationId).
	CreateEmailAlertV1EmailAlertsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmailAlertV1EmailAlertsPostResponse, error)

	// CreateEmailAlertV1EmailAlertsPostWithResponse Criar email de alerta
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/email-alerts (the `CreateEmailAlertV1EmailAlertsPost` operationId).
	CreateEmailAlertV1EmailAlertsPostWithResponse(ctx context.Context, body CreateEmailAlertV1EmailAlertsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmailAlertV1EmailAlertsPostResponse, error)

	// DeleteEmailAlertV1EmailAlertsAlertIdDeleteWithResponse Remover email de alerta
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v1/email-alerts/{alert_id} (the `DeleteEmailAlertV1EmailAlertsAlertIdDelete` operationId).
	DeleteEmailAlertV1EmailAlertsAlertIdDeleteWithResponse(ctx context.Context, alertId string, reqEditors ...RequestEditorFn) (*DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse, error)

	// UpdateEmailAlertV1EmailAlertsAlertIdPutWithBodyWithResponse Atualizar email de alerta
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /v1/email-alerts/{alert_id} (the `UpdateEmailAlertV1EmailAlertsAlertIdPut` operationId).
	UpdateEmailAlertV1EmailAlertsAlertIdPutWithBodyWithResponse(ctx context.Context, alertId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEmailAlertV1EmailAlertsAlertIdPutResponse, error)

	// UpdateEmailAlertV1EmailAlertsAlertIdPutWithResponse Atualizar email de alerta
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /v1/email-alerts/{alert_id} (the `UpdateEmailAlertV1EmailAlertsAlertIdPut` operationId).
	UpdateEmailAlertV1EmailAlertsAlertIdPutWithResponse(ctx context.Context, alertId string, body UpdateEmailAlertV1EmailAlertsAlertIdPutJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEmailAlertV1EmailAlertsAlertIdPutResponse, error)

	// HealthCheckWithResponse Health Check
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/health (the `HealthCheck` operationId).
	HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)

	// HealthCheckHeadWithResponse Health Check
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with HEAD /v1/health (the `HealthCheckHead` operationId).
	HealthCheckHeadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckHeadResponse, error)

	// GetUsageByKeyV1UsageByKeyGetWithResponse Get Usage By Key
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/usage/by-key (the `GetUsageByKeyV1UsageByKeyGet` operationId).
	GetUsageByKeyV1UsageByKeyGetWithResponse(ctx context.Context, params *GetUsageByKeyV1UsageByKeyGetParams, reqEditors ...RequestEditorFn) (*GetUsageByKeyV1UsageByKeyGetResponse, error)

	// GetUsageLogV1UsageLogGetWithResponse Get Usage Log
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/usage/log (the `GetUsageLogV1UsageLogGet` operationId).
	GetUsageLogV1UsageLogGetWithResponse(ctx context.Context, params *GetUsageLogV1UsageLogGetParams, reqEditors ...RequestEditorFn) (*GetUsageLogV1UsageLogGetResponse, error)

	// ListWebhooksV1WebhooksGetWithResponse Listar webhooks de alertas
	//
	// Lista webhooks do usuario autenticado (10 alertas). Paginado. Inclui o secret da assinatura da URL (sempre visivel ao dono).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/webhooks (the `ListWebhooksV1WebhooksGet` operationId).
	ListWebhooksV1WebhooksGetWithResponse(ctx context.Context, params *ListWebhooksV1WebhooksGetParams, reqEditors ...RequestEditorFn) (*ListWebhooksV1WebhooksGetResponse, error)

	// CreateWebhookV1WebhooksPostWithBodyWithResponse Criar webhook de alertas
	//
	// Cria inscricao para eventos de alerta (10 alertas). Payload enviado: WebhookPayload(event, data, timestamp) com HMAC FalaAI-Signature. Para comprovar a origem, recalcule HMAC-SHA256 de "timestamp.body" com seu secret (exemplos: /examples/download/python.zip e nodejs.zip, arquivo webhook_verify).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/webhooks (the `CreateWebhookV1WebhooksPost` operationId).
	CreateWebhookV1WebhooksPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWebhookV1WebhooksPostResponse, error)

	// CreateWebhookV1WebhooksPostWithResponse Criar webhook de alertas
	//
	// Cria inscricao para eventos de alerta (10 alertas). Payload enviado: WebhookPayload(event, data, timestamp) com HMAC FalaAI-Signature. Para comprovar a origem, recalcule HMAC-SHA256 de "timestamp.body" com seu secret (exemplos: /examples/download/python.zip e nodejs.zip, arquivo webhook_verify).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/webhooks (the `CreateWebhookV1WebhooksPost` operationId).
	CreateWebhookV1WebhooksPostWithResponse(ctx context.Context, body CreateWebhookV1WebhooksPostJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWebhookV1WebhooksPostResponse, error)

	// DeleteWebhookV1WebhooksWebhookIdDeleteWithResponse Remover webhook
	//
	// Remove inscricao de webhook por ID.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v1/webhooks/{webhook_id} (the `DeleteWebhookV1WebhooksWebhookIdDelete` operationId).
	DeleteWebhookV1WebhooksWebhookIdDeleteWithResponse(ctx context.Context, webhookId string, reqEditors ...RequestEditorFn) (*DeleteWebhookV1WebhooksWebhookIdDeleteResponse, error)

	// UpdateWebhookV1WebhooksWebhookIdPutWithBodyWithResponse Atualizar webhook
	//
	// Atualiza name/url/events/retry_enabled/active do webhook. Eventos validos: 10 alertas.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /v1/webhooks/{webhook_id} (the `UpdateWebhookV1WebhooksWebhookIdPut` operationId).
	UpdateWebhookV1WebhooksWebhookIdPutWithBodyWithResponse(ctx context.Context, webhookId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWebhookV1WebhooksWebhookIdPutResponse, error)

	// UpdateWebhookV1WebhooksWebhookIdPutWithResponse Atualizar webhook
	//
	// Atualiza name/url/events/retry_enabled/active do webhook. Eventos validos: 10 alertas.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /v1/webhooks/{webhook_id} (the `UpdateWebhookV1WebhooksWebhookIdPut` operationId).
	UpdateWebhookV1WebhooksWebhookIdPutWithResponse(ctx context.Context, webhookId string, body UpdateWebhookV1WebhooksWebhookIdPutJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWebhookV1WebhooksWebhookIdPutResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostJSONRequestBody

type CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostJSONRequestBody = AuditoriaRiscoRequest

CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostJSONRequestBody defines body for CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost for application/json ContentType.

type CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse

type CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AuditoriaRiscoV2Response
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseCreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse

func ParseCreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse(rsp *http.Response) (*CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse, error)

ParseCreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse parses an HTTP response from a CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithResponse call

func (CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) GetBody

GetBody returns the raw response body bytes

func (CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) Status

Status returns HTTPResponse.Status

func (CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type CreateDiagnosticV1AnalyzeDiagnosticPostJSONRequestBody

type CreateDiagnosticV1AnalyzeDiagnosticPostJSONRequestBody = DiagnosticRequest

CreateDiagnosticV1AnalyzeDiagnosticPostJSONRequestBody defines body for CreateDiagnosticV1AnalyzeDiagnosticPost for application/json ContentType.

type CreateDiagnosticV1AnalyzeDiagnosticPostResponse

type CreateDiagnosticV1AnalyzeDiagnosticPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DiagnosticResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseCreateDiagnosticV1AnalyzeDiagnosticPostResponse

func ParseCreateDiagnosticV1AnalyzeDiagnosticPostResponse(rsp *http.Response) (*CreateDiagnosticV1AnalyzeDiagnosticPostResponse, error)

ParseCreateDiagnosticV1AnalyzeDiagnosticPostResponse parses an HTTP response from a CreateDiagnosticV1AnalyzeDiagnosticPostWithResponse call

func (CreateDiagnosticV1AnalyzeDiagnosticPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateDiagnosticV1AnalyzeDiagnosticPostResponse) GetBody

GetBody returns the raw response body bytes

func (CreateDiagnosticV1AnalyzeDiagnosticPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CreateDiagnosticV1AnalyzeDiagnosticPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateDiagnosticV1AnalyzeDiagnosticPostResponse) Status

Status returns HTTPResponse.Status

func (CreateDiagnosticV1AnalyzeDiagnosticPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type CreateEmailAlertRequest

type CreateEmailAlertRequest struct {
	// Email Email destino
	Email string `json:"email"`

	// Events Eventos subscritos
	Events []EmailEvent `json:"events"`

	// Name Nome identificador
	Name string `json:"name"`
}

CreateEmailAlertRequest defines model for CreateEmailAlertRequest.

type CreateEmailAlertV1EmailAlertsPostJSONRequestBody

type CreateEmailAlertV1EmailAlertsPostJSONRequestBody = CreateEmailAlertRequest

CreateEmailAlertV1EmailAlertsPostJSONRequestBody defines body for CreateEmailAlertV1EmailAlertsPost for application/json ContentType.

type CreateEmailAlertV1EmailAlertsPostResponse

type CreateEmailAlertV1EmailAlertsPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EmailAlertItem
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseCreateEmailAlertV1EmailAlertsPostResponse

func ParseCreateEmailAlertV1EmailAlertsPostResponse(rsp *http.Response) (*CreateEmailAlertV1EmailAlertsPostResponse, error)

ParseCreateEmailAlertV1EmailAlertsPostResponse parses an HTTP response from a CreateEmailAlertV1EmailAlertsPostWithResponse call

func (CreateEmailAlertV1EmailAlertsPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateEmailAlertV1EmailAlertsPostResponse) GetBody

GetBody returns the raw response body bytes

func (CreateEmailAlertV1EmailAlertsPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CreateEmailAlertV1EmailAlertsPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateEmailAlertV1EmailAlertsPostResponse) Status

Status returns HTTPResponse.Status

func (CreateEmailAlertV1EmailAlertsPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type CreateTranscriptionV1AudioTranscriptionsPostMultipartRequestBody

type CreateTranscriptionV1AudioTranscriptionsPostMultipartRequestBody = BodyCreateTranscriptionV1AudioTranscriptionsPost

CreateTranscriptionV1AudioTranscriptionsPostMultipartRequestBody defines body for CreateTranscriptionV1AudioTranscriptionsPost for multipart/form-data ContentType.

type CreateTranscriptionV1AudioTranscriptionsPostResponse

type CreateTranscriptionV1AudioTranscriptionsPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TranscriptionResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseCreateTranscriptionV1AudioTranscriptionsPostResponse

func ParseCreateTranscriptionV1AudioTranscriptionsPostResponse(rsp *http.Response) (*CreateTranscriptionV1AudioTranscriptionsPostResponse, error)

ParseCreateTranscriptionV1AudioTranscriptionsPostResponse parses an HTTP response from a CreateTranscriptionV1AudioTranscriptionsPostWithResponse call

func (CreateTranscriptionV1AudioTranscriptionsPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateTranscriptionV1AudioTranscriptionsPostResponse) GetBody

GetBody returns the raw response body bytes

func (CreateTranscriptionV1AudioTranscriptionsPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CreateTranscriptionV1AudioTranscriptionsPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateTranscriptionV1AudioTranscriptionsPostResponse) Status

Status returns HTTPResponse.Status

func (CreateTranscriptionV1AudioTranscriptionsPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type CreateWebhookRequest

type CreateWebhookRequest struct {
	// Events Eventos subscritos (10 alertas)
	Events []WebhookEvent `json:"events"`

	// Name Nome identificador do webhook
	Name string `json:"name"`

	// RetryEnabled Retry exponencial 5 tentativas quando true (false=1 tentativa)
	RetryEnabled *bool `json:"retry_enabled,omitempty"`

	// Url URL HTTPS que recebera POST com HMAC FalaAI-Signature
	Url string `json:"url"`
}

CreateWebhookRequest defines model for CreateWebhookRequest.

type CreateWebhookV1WebhooksPostJSONRequestBody

type CreateWebhookV1WebhooksPostJSONRequestBody = CreateWebhookRequest

CreateWebhookV1WebhooksPostJSONRequestBody defines body for CreateWebhookV1WebhooksPost for application/json ContentType.

type CreateWebhookV1WebhooksPostResponse

type CreateWebhookV1WebhooksPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebhookItem
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseCreateWebhookV1WebhooksPostResponse

func ParseCreateWebhookV1WebhooksPostResponse(rsp *http.Response) (*CreateWebhookV1WebhooksPostResponse, error)

ParseCreateWebhookV1WebhooksPostResponse parses an HTTP response from a CreateWebhookV1WebhooksPostWithResponse call

func (CreateWebhookV1WebhooksPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateWebhookV1WebhooksPostResponse) GetBody

GetBody returns the raw response body bytes

func (CreateWebhookV1WebhooksPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CreateWebhookV1WebhooksPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateWebhookV1WebhooksPostResponse) Status

Status returns HTTPResponse.Status

func (CreateWebhookV1WebhooksPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse

type DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EmailAlertMessageResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseDeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse

func ParseDeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse(rsp *http.Response) (*DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse, error)

ParseDeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse parses an HTTP response from a DeleteEmailAlertV1EmailAlertsAlertIdDeleteWithResponse call

func (DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) GetBody

GetBody returns the raw response body bytes

func (DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) Status

Status returns HTTPResponse.Status

func (DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteWebhookV1WebhooksWebhookIdDeleteResponse

type DeleteWebhookV1WebhooksWebhookIdDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *MessageResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseDeleteWebhookV1WebhooksWebhookIdDeleteResponse

func ParseDeleteWebhookV1WebhooksWebhookIdDeleteResponse(rsp *http.Response) (*DeleteWebhookV1WebhooksWebhookIdDeleteResponse, error)

ParseDeleteWebhookV1WebhooksWebhookIdDeleteResponse parses an HTTP response from a DeleteWebhookV1WebhooksWebhookIdDeleteWithResponse call

func (DeleteWebhookV1WebhooksWebhookIdDeleteResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteWebhookV1WebhooksWebhookIdDeleteResponse) GetBody

GetBody returns the raw response body bytes

func (DeleteWebhookV1WebhooksWebhookIdDeleteResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DeleteWebhookV1WebhooksWebhookIdDeleteResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (DeleteWebhookV1WebhooksWebhookIdDeleteResponse) Status

Status returns HTTPResponse.Status

func (DeleteWebhookV1WebhooksWebhookIdDeleteResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DiagnosticAnalysisMap

type DiagnosticAnalysisMap struct {
	// ContactReason Initial contact reason
	ContactReason DiagnosticTextAnalysis `json:"contact_reason"`

	// DialogueSummary Detailed conversation summary
	DialogueSummary DiagnosticTextAnalysis `json:"dialogue_summary"`

	// IdentifiedAction Action taken / resolution
	IdentifiedAction DiagnosticCategoricalAnalysis `json:"identified_action"`

	// IdentifiedLabel Theme classification
	IdentifiedLabel DiagnosticCategoricalAnalysis `json:"identified_label"`

	// ParticipantsIdentified Identified participants and roles (same field names as auditoria)
	ParticipantsIdentified *[]ParticipantDiagnostic `json:"participants_identified,omitempty"`

	// Sentiment Predominant sentiment
	Sentiment DiagnosticCategoricalAnalysis `json:"sentiment"`
}

DiagnosticAnalysisMap defines model for DiagnosticAnalysisMap.

type DiagnosticAudioEvent

type DiagnosticAudioEvent struct {
	// DurationS Duration in seconds
	DurationS *float32 `json:"duration_s,omitempty"`

	// EndS End time in seconds
	EndS *float32 `json:"end_s,omitempty"`

	// Event Audio event type. E.g.: [laughter], [sigh]
	Event string `json:"event"`

	// FormattedTimestamp Formatted timestamp (HH:MM:SS.ms)
	FormattedTimestamp *string `json:"formatted_timestamp,omitempty"`

	// StartS Start time in seconds
	StartS *float32 `json:"start_s,omitempty"`
}

DiagnosticAudioEvent defines model for DiagnosticAudioEvent.

type DiagnosticCategoricalAnalysis

type DiagnosticCategoricalAnalysis struct {
	// EvidencePhrases Verbatim transcript excerpts supporting the analysis
	EvidencePhrases *[]string `json:"evidence_phrases,omitempty"`

	// Justification Justification for the choice
	Justification *string `json:"justification,omitempty"`

	// ListChoice Selected value from classification list (used in action, label, sentiment)
	ListChoice *string `json:"list_choice,omitempty"`
}

DiagnosticCategoricalAnalysis defines model for DiagnosticCategoricalAnalysis.

type DiagnosticRequest

type DiagnosticRequest struct {
	// AudioEvents Detected audio events with timestamps (required when using dialog)
	AudioEvents *[]DiagnosticAudioEvent `json:"audio_events,omitempty"`

	// ClientReferenceId 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.
	ClientReferenceId *string `json:"client_reference_id,omitempty"`

	// Dialog Diarized transcript with speaker turns. PRIMARY source. At least one of 'dialog' or 'text' required. 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
	Dialog *string `json:"dialog,omitempty"`

	// DurationSeconds Total audio duration in seconds. Required. Max 3h (10800s).
	DurationSeconds float32 `json:"duration_seconds"`

	// Language Transcript language. Required. Accepted: en-US, pt-BR, es-ES, es-MX, 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
	Language string `json:"language"`

	// Model Analysis model. Always 'falaai-diagnostic-1'
	Model *string `json:"model,omitempty"`

	// Text Plain transcript (fallback if dialog is empty). At least one of 'dialog' or 'text' required. Max 300,000 characters
	Text *string `json:"text,omitempty"`
}

DiagnosticRequest defines model for DiagnosticRequest.

type DiagnosticResponse

type DiagnosticResponse struct {
	// Analysis The 6 conversation analyses (5 + participants)
	Analysis DiagnosticAnalysisMap `json:"analysis"`

	// ClientReferenceId Client-supplied ID echoed verbatim (if provided in request)
	ClientReferenceId *string `json:"client_reference_id,omitempty"`

	// Id Unique analysis identifier. Prefix 'di-' + UUID
	Id string `json:"id"`

	// Object Object type. Always 'analysis'
	Object string `json:"object"`

	// ResponseLanguage Language used in the response. E.g.: 'pt-BR', 'en-US', 'es-ES'
	ResponseLanguage string `json:"response_language"`

	// Usage Usage and processing information
	Usage DiagnosticUsage `json:"usage"`
}

DiagnosticResponse defines model for DiagnosticResponse.

type DiagnosticTextAnalysis

type DiagnosticTextAnalysis struct {
	// Explanation Explanatory text (used in summary and reason)
	Explanation *string `json:"explanation,omitempty"`
}

DiagnosticTextAnalysis defines model for DiagnosticTextAnalysis.

type DiagnosticUsage

type DiagnosticUsage struct {
	// Characters Total characters analyzed
	Characters int `json:"characters"`

	// CreditsConsumed Credits consumed: max(ceil(chars/500)*3, 3) * 5
	CreditsConsumed int `json:"credits_consumed"`

	// ProcessingMs Total processing time in milliseconds
	ProcessingMs int `json:"processing_ms"`
}

DiagnosticUsage defines model for DiagnosticUsage.

type EmailAlertItem

type EmailAlertItem struct {
	// Active Is active
	Active bool `json:"active"`

	// CreatedAt ISO 8601 created
	CreatedAt string `json:"created_at"`

	// Email Destination email
	Email string `json:"email"`

	// Events Subscribed events
	Events []string `json:"events"`

	// Id Email alert id
	Id string `json:"id"`

	// Name Email alert name
	Name string `json:"name"`

	// UpdatedAt ISO 8601 updated
	UpdatedAt string `json:"updated_at"`

	// UserId Owner user id
	UserId string `json:"user_id"`
}

EmailAlertItem defines model for EmailAlertItem.

type EmailAlertListResponse

type EmailAlertListResponse struct {
	Data  []EmailAlertItem `json:"data"`
	Limit int              `json:"limit"`
	Page  int              `json:"page"`
}

EmailAlertListResponse defines model for EmailAlertListResponse.

type EmailAlertMessageResponse

type EmailAlertMessageResponse struct {
	// Message Operation result message
	Message string `json:"message"`
}

EmailAlertMessageResponse defines model for EmailAlertMessageResponse.

type EmailEvent

type EmailEvent string

EmailEvent defines model for EmailEvent.

const (
	EmailEventAvulsoCompleted        EmailEvent = "avulso.completed"
	EmailEventCreditsExhausted       EmailEvent = "credits.exhausted"
	EmailEventCreditsLow             EmailEvent = "credits.low"
	EmailEventPaymentFailed          EmailEvent = "payment.failed"
	EmailEventSubscriptionCanceled   EmailEvent = "subscription.canceled"
	EmailEventSubscriptionCreated    EmailEvent = "subscription.created"
	EmailEventSubscriptionDowngraded EmailEvent = "subscription.downgraded"
	EmailEventSubscriptionRenewed    EmailEvent = "subscription.renewed"
	EmailEventSubscriptionUpgraded   EmailEvent = "subscription.upgraded"
)

Defines values for EmailEvent.

func (EmailEvent) Valid

func (e EmailEvent) Valid() bool

Valid indicates whether the value is a known member of the EmailEvent enum.

type GetUsageByKeyV1UsageByKeyGetParams

type GetUsageByKeyV1UsageByKeyGetParams struct {
	KeyId *string `form:"key_id,omitempty" json:"key_id,omitempty"`
}

GetUsageByKeyV1UsageByKeyGetParams defines parameters for GetUsageByKeyV1UsageByKeyGet.

type GetUsageByKeyV1UsageByKeyGetResponse

type GetUsageByKeyV1UsageByKeyGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]UsageByKeyItem
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetUsageByKeyV1UsageByKeyGetResponse

func ParseGetUsageByKeyV1UsageByKeyGetResponse(rsp *http.Response) (*GetUsageByKeyV1UsageByKeyGetResponse, error)

ParseGetUsageByKeyV1UsageByKeyGetResponse parses an HTTP response from a GetUsageByKeyV1UsageByKeyGetWithResponse call

func (GetUsageByKeyV1UsageByKeyGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetUsageByKeyV1UsageByKeyGetResponse) GetBody

GetBody returns the raw response body bytes

func (GetUsageByKeyV1UsageByKeyGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetUsageByKeyV1UsageByKeyGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetUsageByKeyV1UsageByKeyGetResponse) Status

Status returns HTTPResponse.Status

func (GetUsageByKeyV1UsageByKeyGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetUsageLogV1UsageLogGetParams

type GetUsageLogV1UsageLogGetParams struct {
	Page     *int    `form:"page,omitempty" json:"page,omitempty"`
	Limit    *int    `form:"limit,omitempty" json:"limit,omitempty"`
	ApiKeyId *string `form:"api_key_id,omitempty" json:"api_key_id,omitempty"`
}

GetUsageLogV1UsageLogGetParams defines parameters for GetUsageLogV1UsageLogGet.

type GetUsageLogV1UsageLogGetResponse

type GetUsageLogV1UsageLogGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *UsageLogResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetUsageLogV1UsageLogGetResponse

func ParseGetUsageLogV1UsageLogGetResponse(rsp *http.Response) (*GetUsageLogV1UsageLogGetResponse, error)

ParseGetUsageLogV1UsageLogGetResponse parses an HTTP response from a GetUsageLogV1UsageLogGetWithResponse call

func (GetUsageLogV1UsageLogGetResponse) ContentType

func (r GetUsageLogV1UsageLogGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetUsageLogV1UsageLogGetResponse) GetBody

func (r GetUsageLogV1UsageLogGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetUsageLogV1UsageLogGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetUsageLogV1UsageLogGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetUsageLogV1UsageLogGetResponse) Status

Status returns HTTPResponse.Status

func (GetUsageLogV1UsageLogGetResponse) StatusCode

func (r GetUsageLogV1UsageLogGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVersionApiVersionGetResponse

type GetVersionApiVersionGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *VersionResponse
}

func ParseGetVersionApiVersionGetResponse

func ParseGetVersionApiVersionGetResponse(rsp *http.Response) (*GetVersionApiVersionGetResponse, error)

ParseGetVersionApiVersionGetResponse parses an HTTP response from a GetVersionApiVersionGetWithResponse call

func (GetVersionApiVersionGetResponse) ContentType

func (r GetVersionApiVersionGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetVersionApiVersionGetResponse) GetBody

func (r GetVersionApiVersionGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetVersionApiVersionGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetVersionApiVersionGetResponse) Status

Status returns HTTPResponse.Status

func (GetVersionApiVersionGetResponse) StatusCode

func (r GetVersionApiVersionGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HTTPValidationError

type HTTPValidationError struct {
	Detail *[]ValidationError `json:"detail,omitempty"`
}

HTTPValidationError defines model for HTTPValidationError.

type HealthCheckHeadResponse

type HealthCheckHeadResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *HealthResponse
}

func ParseHealthCheckHeadResponse

func ParseHealthCheckHeadResponse(rsp *http.Response) (*HealthCheckHeadResponse, error)

ParseHealthCheckHeadResponse parses an HTTP response from a HealthCheckHeadWithResponse call

func (HealthCheckHeadResponse) ContentType

func (r HealthCheckHeadResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (HealthCheckHeadResponse) GetBody

func (r HealthCheckHeadResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (HealthCheckHeadResponse) GetJSON200

func (r HealthCheckHeadResponse) GetJSON200() *HealthResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (HealthCheckHeadResponse) Status

func (r HealthCheckHeadResponse) Status() string

Status returns HTTPResponse.Status

func (HealthCheckHeadResponse) StatusCode

func (r HealthCheckHeadResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HealthCheckResponse

type HealthCheckResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *HealthResponse
}

func ParseHealthCheckResponse

func ParseHealthCheckResponse(rsp *http.Response) (*HealthCheckResponse, error)

ParseHealthCheckResponse parses an HTTP response from a HealthCheckWithResponse call

func (HealthCheckResponse) ContentType

func (r HealthCheckResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (HealthCheckResponse) GetBody

func (r HealthCheckResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (HealthCheckResponse) GetJSON200

func (r HealthCheckResponse) GetJSON200() *HealthResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (HealthCheckResponse) Status

func (r HealthCheckResponse) Status() string

Status returns HTTPResponse.Status

func (HealthCheckResponse) StatusCode

func (r HealthCheckResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HealthResponse

type HealthResponse struct {
	// Database Database connection status
	Database bool `json:"database"`

	// LaunchDate Expected public launch date
	LaunchDate string `json:"launch_date"`

	// Phase Development phase
	Phase string `json:"phase"`

	// Status Overall API status
	Status string `json:"status"`

	// UptimeSeconds Uptime in seconds
	UptimeSeconds int `json:"uptime_seconds"`

	// Version Current API version
	Version string `json:"version"`
}

HealthResponse defines model for HealthResponse.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListEmailAlertsV1EmailAlertsGetParams

type ListEmailAlertsV1EmailAlertsGetParams struct {
	Page  *int `form:"page,omitempty" json:"page,omitempty"`
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

ListEmailAlertsV1EmailAlertsGetParams defines parameters for ListEmailAlertsV1EmailAlertsGet.

type ListEmailAlertsV1EmailAlertsGetResponse

type ListEmailAlertsV1EmailAlertsGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EmailAlertListResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseListEmailAlertsV1EmailAlertsGetResponse

func ParseListEmailAlertsV1EmailAlertsGetResponse(rsp *http.Response) (*ListEmailAlertsV1EmailAlertsGetResponse, error)

ParseListEmailAlertsV1EmailAlertsGetResponse parses an HTTP response from a ListEmailAlertsV1EmailAlertsGetWithResponse call

func (ListEmailAlertsV1EmailAlertsGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListEmailAlertsV1EmailAlertsGetResponse) GetBody

GetBody returns the raw response body bytes

func (ListEmailAlertsV1EmailAlertsGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListEmailAlertsV1EmailAlertsGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListEmailAlertsV1EmailAlertsGetResponse) Status

Status returns HTTPResponse.Status

func (ListEmailAlertsV1EmailAlertsGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ListWebhooksV1WebhooksGetParams

type ListWebhooksV1WebhooksGetParams struct {
	// Page Pagina (1-indexed)
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// Limit Itens por pagina (max 100)
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

ListWebhooksV1WebhooksGetParams defines parameters for ListWebhooksV1WebhooksGet.

type ListWebhooksV1WebhooksGetResponse

type ListWebhooksV1WebhooksGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebhookListResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseListWebhooksV1WebhooksGetResponse

func ParseListWebhooksV1WebhooksGetResponse(rsp *http.Response) (*ListWebhooksV1WebhooksGetResponse, error)

ParseListWebhooksV1WebhooksGetResponse parses an HTTP response from a ListWebhooksV1WebhooksGetWithResponse call

func (ListWebhooksV1WebhooksGetResponse) ContentType

func (r ListWebhooksV1WebhooksGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWebhooksV1WebhooksGetResponse) GetBody

GetBody returns the raw response body bytes

func (ListWebhooksV1WebhooksGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListWebhooksV1WebhooksGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListWebhooksV1WebhooksGetResponse) Status

Status returns HTTPResponse.Status

func (ListWebhooksV1WebhooksGetResponse) StatusCode

func (r ListWebhooksV1WebhooksGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MessageResponse

type MessageResponse struct {
	// Message Operation result message
	Message string `json:"message"`
}

MessageResponse defines model for MessageResponse.

type Participant

type Participant struct {
	// Interlocutor Exact identifier as used in dialog (e.g. 'Interlocutor 1', 'Antonio')
	Interlocutor string `json:"interlocutor"`

	// Name Participant name (humanizes report, does not affect logic)
	Name *string `json:"name,omitempty"`

	// Role Role: agent (human operator), client (customer), bot (IVR/AI)
	Role ParticipantRole `json:"role"`
}

Participant defines model for Participant.

type ParticipantDiagnostic

type ParticipantDiagnostic struct {
	// Confidence high | medium | low
	Confidence *string `json:"confidence,omitempty"`

	// Evidence Exact verbatim quote supporting the role (no timestamps)
	Evidence *string `json:"evidence,omitempty"`

	// Interlocutor Exact speaker label from the dialog (e.g. 'Speaker 1')
	Interlocutor string `json:"interlocutor"`

	// Name Participant name if mentioned in the dialogue
	Name *string `json:"name,omitempty"`

	// Role Role: agent | client | bot | agent_requester | agent_custodian
	Role string `json:"role"`
}

ParticipantDiagnostic defines model for ParticipantDiagnostic.

type ParticipantRole

type ParticipantRole string

ParticipantRole Role: agent (human operator), client (customer), bot (IVR/AI)

const (
	ParticipantRoleAgent  ParticipantRole = "agent"
	ParticipantRoleBot    ParticipantRole = "bot"
	ParticipantRoleClient ParticipantRole = "client"
)

Defines values for ParticipantRole.

func (ParticipantRole) Valid

func (e ParticipantRole) Valid() bool

Valid indicates whether the value is a known member of the ParticipantRole enum.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type TranscriptionResponse

type TranscriptionResponse struct {
	// AudioEvents List of detected audio events (laughs, sighs, pauses, etc) with timestamps and duration
	AudioEvents []AudioEvent `json:"audio_events"`

	// ClientReferenceId Client-supplied ID echoed verbatim (if provided in request)
	ClientReferenceId *string `json:"client_reference_id,omitempty"`

	// Dialog Turn-by-turn formatted transcript with speaker identification and start/end timestamps
	Dialog string `json:"dialog"`

	// DurationSeconds Total audio duration in seconds
	DurationSeconds float32 `json:"duration_seconds"`

	// EventTypes Unique audio event types found in transcription, alphabetically sorted
	EventTypes []string `json:"event_types"`

	// Filename Original audio file name uploaded
	Filename string `json:"filename"`

	// Id Unique transcription identifier. Prefix 'tr-' followed by UUID
	Id string `json:"id"`

	// Input Metadados do arquivo de audio enviado (duracao, formato, codec, sample rate, canais)
	Input AudioInputMeta `json:"input"`

	// Language ISO 639-3 language code detected in audio. Ex: 'por' (Portuguese), 'eng' (English), 'spa' (Spanish)
	Language string `json:"language"`

	// LanguageConfidence Language detection confidence level (0.0 to 1.0). Higher is more reliable
	LanguageConfidence *float32 `json:"language_confidence,omitempty"`

	// Model Model used for transcription. Ex: 'falaai-transcribe-1'
	Model string `json:"model"`

	// Object Returned object type. Always 'transcription'
	Object string `json:"object"`

	// ProcessedAt Processing datetime in ISO 8601 UTC format
	ProcessedAt string `json:"processed_at"`

	// Text Full transcription as plain text, including audio events in brackets
	Text string `json:"text"`

	// Usage Usage and processing information
	Usage TranscriptionUsage `json:"usage"`

	// WordCount Total number of recognized words in transcription
	WordCount int `json:"word_count"`
}

TranscriptionResponse defines model for TranscriptionResponse.

type TranscriptionUsage

type TranscriptionUsage struct {
	// AudioSeconds Actual audio duration processed in seconds
	AudioSeconds float32 `json:"audio_seconds"`

	// CreditsConsumed Number of credits consumed in this request
	CreditsConsumed int `json:"credits_consumed"`

	// ProcessingMs Total processing time in milliseconds
	ProcessingMs int `json:"processing_ms"`
}

TranscriptionUsage defines model for TranscriptionUsage.

type UpdateEmailAlertRequest

type UpdateEmailAlertRequest struct {
	Active *bool         `json:"active,omitempty"`
	Email  *string       `json:"email,omitempty"`
	Events *[]EmailEvent `json:"events,omitempty"`
	Name   *string       `json:"name,omitempty"`
}

UpdateEmailAlertRequest defines model for UpdateEmailAlertRequest.

type UpdateEmailAlertV1EmailAlertsAlertIdPutJSONRequestBody

type UpdateEmailAlertV1EmailAlertsAlertIdPutJSONRequestBody = UpdateEmailAlertRequest

UpdateEmailAlertV1EmailAlertsAlertIdPutJSONRequestBody defines body for UpdateEmailAlertV1EmailAlertsAlertIdPut for application/json ContentType.

type UpdateEmailAlertV1EmailAlertsAlertIdPutResponse

type UpdateEmailAlertV1EmailAlertsAlertIdPutResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EmailAlertMessageResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseUpdateEmailAlertV1EmailAlertsAlertIdPutResponse

func ParseUpdateEmailAlertV1EmailAlertsAlertIdPutResponse(rsp *http.Response) (*UpdateEmailAlertV1EmailAlertsAlertIdPutResponse, error)

ParseUpdateEmailAlertV1EmailAlertsAlertIdPutResponse parses an HTTP response from a UpdateEmailAlertV1EmailAlertsAlertIdPutWithResponse call

func (UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) GetBody

GetBody returns the raw response body bytes

func (UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) Status

Status returns HTTPResponse.Status

func (UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UpdateWebhookRequest

type UpdateWebhookRequest struct {
	// Active Ativa/desativa sem deletar
	Active *bool `json:"active,omitempty"`

	// Events Eventos subscritos
	Events *[]WebhookEvent `json:"events,omitempty"`

	// Name Nome identificador
	Name *string `json:"name,omitempty"`

	// RetryEnabled Habilita retry exponencial
	RetryEnabled *bool `json:"retry_enabled,omitempty"`

	// Url URL HTTPS destino
	Url *string `json:"url,omitempty"`
}

UpdateWebhookRequest defines model for UpdateWebhookRequest.

type UpdateWebhookV1WebhooksWebhookIdPutJSONRequestBody

type UpdateWebhookV1WebhooksWebhookIdPutJSONRequestBody = UpdateWebhookRequest

UpdateWebhookV1WebhooksWebhookIdPutJSONRequestBody defines body for UpdateWebhookV1WebhooksWebhookIdPut for application/json ContentType.

type UpdateWebhookV1WebhooksWebhookIdPutResponse

type UpdateWebhookV1WebhooksWebhookIdPutResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *MessageResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseUpdateWebhookV1WebhooksWebhookIdPutResponse

func ParseUpdateWebhookV1WebhooksWebhookIdPutResponse(rsp *http.Response) (*UpdateWebhookV1WebhooksWebhookIdPutResponse, error)

ParseUpdateWebhookV1WebhooksWebhookIdPutResponse parses an HTTP response from a UpdateWebhookV1WebhooksWebhookIdPutWithResponse call

func (UpdateWebhookV1WebhooksWebhookIdPutResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateWebhookV1WebhooksWebhookIdPutResponse) GetBody

GetBody returns the raw response body bytes

func (UpdateWebhookV1WebhooksWebhookIdPutResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateWebhookV1WebhooksWebhookIdPutResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateWebhookV1WebhooksWebhookIdPutResponse) Status

Status returns HTTPResponse.Status

func (UpdateWebhookV1WebhooksWebhookIdPutResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UsageByKeyItem

type UsageByKeyItem struct {
	// KeyId API key id
	KeyId string `json:"key_id"`

	// KeyName API key name
	KeyName string `json:"key_name"`

	// LastUsed ISO 8601 of last use (null if never)
	LastUsed *string `json:"last_used,omitempty"`

	// RequestCount Number of requests
	RequestCount int `json:"request_count"`

	// TotalCredits Total credits consumed by the key
	TotalCredits int `json:"total_credits"`
}

UsageByKeyItem defines model for UsageByKeyItem.

type UsageLogItem

type UsageLogItem struct {
	// CreatedAt ISO 8601 timestamp
	CreatedAt string `json:"created_at"`

	// CreditsCost Credits consumed
	CreditsCost int `json:"credits_cost"`

	// Endpoint Endpoint called
	Endpoint string `json:"endpoint"`

	// ErrorsCount Errors count
	ErrorsCount int `json:"errors_count"`

	// Id Usage log entry id
	Id string `json:"id"`

	// Status Result status
	Status string `json:"status"`
}

UsageLogItem defines model for UsageLogItem.

type UsageLogResponse

type UsageLogResponse struct {
	Data  []UsageLogItem `json:"data"`
	Limit int            `json:"limit"`
	Page  int            `json:"page"`
}

UsageLogResponse defines model for UsageLogResponse.

type ValidationError

type ValidationError struct {
	Ctx   *map[string]interface{}    `json:"ctx,omitempty"`
	Input interface{}                `json:"input,omitempty"`
	Loc   []ValidationError_Loc_Item `json:"loc"`
	Msg   string                     `json:"msg"`
	Type  string                     `json:"type"`
}

ValidationError defines model for ValidationError.

type ValidationErrorLoc0

type ValidationErrorLoc0 = string

ValidationErrorLoc0 defines model for ValidationError.Loc.0.

type ValidationErrorLoc1

type ValidationErrorLoc1 = int

ValidationErrorLoc1 defines model for ValidationError.Loc.1.

type ValidationError_Loc_Item

type ValidationError_Loc_Item struct {
	// contains filtered or unexported fields
}

ValidationError_Loc_Item defines model for ValidationError.loc.Item.

func (ValidationError_Loc_Item) AsValidationErrorLoc0

func (t ValidationError_Loc_Item) AsValidationErrorLoc0() (ValidationErrorLoc0, error)

AsValidationErrorLoc0 returns the union data inside the ValidationError_Loc_Item as a ValidationErrorLoc0

func (ValidationError_Loc_Item) AsValidationErrorLoc1

func (t ValidationError_Loc_Item) AsValidationErrorLoc1() (ValidationErrorLoc1, error)

AsValidationErrorLoc1 returns the union data inside the ValidationError_Loc_Item as a ValidationErrorLoc1

func (*ValidationError_Loc_Item) FromValidationErrorLoc0

func (t *ValidationError_Loc_Item) FromValidationErrorLoc0(v ValidationErrorLoc0) error

FromValidationErrorLoc0 overwrites any union data inside the ValidationError_Loc_Item as the provided ValidationErrorLoc0

func (*ValidationError_Loc_Item) FromValidationErrorLoc1

func (t *ValidationError_Loc_Item) FromValidationErrorLoc1(v ValidationErrorLoc1) error

FromValidationErrorLoc1 overwrites any union data inside the ValidationError_Loc_Item as the provided ValidationErrorLoc1

func (ValidationError_Loc_Item) MarshalJSON

func (t ValidationError_Loc_Item) MarshalJSON() ([]byte, error)

func (*ValidationError_Loc_Item) MergeValidationErrorLoc0

func (t *ValidationError_Loc_Item) MergeValidationErrorLoc0(v ValidationErrorLoc0) error

MergeValidationErrorLoc0 performs a merge with any union data inside the ValidationError_Loc_Item, using the provided ValidationErrorLoc0

func (*ValidationError_Loc_Item) MergeValidationErrorLoc1

func (t *ValidationError_Loc_Item) MergeValidationErrorLoc1(v ValidationErrorLoc1) error

MergeValidationErrorLoc1 performs a merge with any union data inside the ValidationError_Loc_Item, using the provided ValidationErrorLoc1

func (*ValidationError_Loc_Item) UnmarshalJSON

func (t *ValidationError_Loc_Item) UnmarshalJSON(b []byte) error

type VersionResponse

type VersionResponse struct {
	// DeployDate Deploy timestamp
	DeployDate string `json:"deployDate"`

	// Service Service name
	Service string `json:"service"`

	// Version Current API version
	Version string `json:"version"`
}

VersionResponse defines model for VersionResponse.

type WebhookEvent

type WebhookEvent string

WebhookEvent defines model for WebhookEvent.

const (
	WebhookEventAvulsoCompleted        WebhookEvent = "avulso.completed"
	WebhookEventCreditsExhausted       WebhookEvent = "credits.exhausted"
	WebhookEventCreditsLow             WebhookEvent = "credits.low"
	WebhookEventPaymentFailed          WebhookEvent = "payment.failed"
	WebhookEventSubscriptionCanceled   WebhookEvent = "subscription.canceled"
	WebhookEventSubscriptionCreated    WebhookEvent = "subscription.created"
	WebhookEventSubscriptionDowngraded WebhookEvent = "subscription.downgraded"
	WebhookEventSubscriptionExpired    WebhookEvent = "subscription.expired"
	WebhookEventSubscriptionRenewed    WebhookEvent = "subscription.renewed"
	WebhookEventSubscriptionUpgraded   WebhookEvent = "subscription.upgraded"
)

Defines values for WebhookEvent.

func (WebhookEvent) Valid

func (e WebhookEvent) Valid() bool

Valid indicates whether the value is a known member of the WebhookEvent enum.

type WebhookItem

type WebhookItem struct {
	// Active Is active
	Active bool `json:"active"`

	// CreatedAt ISO 8601 created
	CreatedAt string `json:"created_at"`

	// Events Subscribed events
	Events []string `json:"events"`

	// FailureCount Consecutive failures
	FailureCount *int `json:"failure_count,omitempty"`

	// Id Webhook id
	Id string `json:"id"`

	// LastDeliveryAt ISO 8601 of last delivery
	LastDeliveryAt *string `json:"last_delivery_at,omitempty"`

	// LastStatus Last HTTP status delivered
	LastStatus *int `json:"last_status,omitempty"`

	// Name Webhook name
	Name string `json:"name"`

	// RetryEnabled Retry enabled
	RetryEnabled bool `json:"retry_enabled"`

	// Secret HMAC signing secret
	Secret string `json:"secret"`

	// UpdatedAt ISO 8601 updated
	UpdatedAt string `json:"updated_at"`

	// Url Destination URL
	Url string `json:"url"`

	// UserId Owner user id
	UserId string `json:"user_id"`
}

WebhookItem defines model for WebhookItem.

type WebhookListResponse

type WebhookListResponse struct {
	Data  []WebhookItem `json:"data"`
	Limit int           `json:"limit"`
	Page  int           `json:"page"`
}

WebhookListResponse defines model for WebhookListResponse.

Directories

Path Synopsis
tests
e2e

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL