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 ¶
- func NewCreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostRequest(server string, ...) (*http.Request, error)
- func NewCreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateDiagnosticV1AnalyzeDiagnosticPostRequest(server string, body CreateDiagnosticV1AnalyzeDiagnosticPostJSONRequestBody) (*http.Request, error)
- func NewCreateDiagnosticV1AnalyzeDiagnosticPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateEmailAlertV1EmailAlertsPostRequest(server string, body CreateEmailAlertV1EmailAlertsPostJSONRequestBody) (*http.Request, error)
- func NewCreateEmailAlertV1EmailAlertsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateTranscriptionV1AudioTranscriptionsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateWebhookV1WebhooksPostRequest(server string, body CreateWebhookV1WebhooksPostJSONRequestBody) (*http.Request, error)
- func NewCreateWebhookV1WebhooksPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteEmailAlertV1EmailAlertsAlertIdDeleteRequest(server string, alertId string) (*http.Request, error)
- func NewDeleteWebhookV1WebhooksWebhookIdDeleteRequest(server string, webhookId string) (*http.Request, error)
- func NewGetUsageByKeyV1UsageByKeyGetRequest(server string, params *GetUsageByKeyV1UsageByKeyGetParams) (*http.Request, error)
- func NewGetUsageLogV1UsageLogGetRequest(server string, params *GetUsageLogV1UsageLogGetParams) (*http.Request, error)
- func NewGetVersionApiVersionGetRequest(server string) (*http.Request, error)
- func NewHealthCheckHeadRequest(server string) (*http.Request, error)
- func NewHealthCheckRequest(server string) (*http.Request, error)
- func NewListEmailAlertsV1EmailAlertsGetRequest(server string, params *ListEmailAlertsV1EmailAlertsGetParams) (*http.Request, error)
- func NewListWebhooksV1WebhooksGetRequest(server string, params *ListWebhooksV1WebhooksGetParams) (*http.Request, error)
- func NewUpdateEmailAlertV1EmailAlertsAlertIdPutRequest(server string, alertId string, ...) (*http.Request, error)
- func NewUpdateEmailAlertV1EmailAlertsAlertIdPutRequestWithBody(server string, alertId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateWebhookV1WebhooksWebhookIdPutRequest(server string, webhookId string, ...) (*http.Request, error)
- func NewUpdateWebhookV1WebhooksWebhookIdPutRequestWithBody(server string, webhookId string, contentType string, body io.Reader) (*http.Request, error)
- type AudioEvent
- type AudioInputMeta
- type AuditoriaRiscoAnalysisV2
- type AuditoriaRiscoAppliedActionV2
- type AuditoriaRiscoAudioEventModelV2
- type AuditoriaRiscoAuditDecisionsV2
- type AuditoriaRiscoConversationScoresV2
- type AuditoriaRiscoDetectionItemV2
- type AuditoriaRiscoDetectionsV2
- type AuditoriaRiscoIndexerV2
- type AuditoriaRiscoMetaV2
- type AuditoriaRiscoParticipantV2
- type AuditoriaRiscoParticipantsV2
- type AuditoriaRiscoRequest
- type AuditoriaRiscoRequestCallDirection
- type AuditoriaRiscoScoresV2
- type AuditoriaRiscoScoringExplanationV2
- type AuditoriaRiscoSummaryV2
- type AuditoriaRiscoTimelineV2
- type AuditoriaRiscoUsageV2
- type AuditoriaRiscoV2
- type AuditoriaRiscoV2Response
- type AuditoriaRiscoVerdictV2
- type BodyCreateTranscriptionV1AudioTranscriptionsPost
- type Client
- func (c *Client) CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPost(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateDiagnosticV1AnalyzeDiagnosticPost(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) CreateDiagnosticV1AnalyzeDiagnosticPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateEmailAlertV1EmailAlertsPost(ctx context.Context, body CreateEmailAlertV1EmailAlertsPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateEmailAlertV1EmailAlertsPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateTranscriptionV1AudioTranscriptionsPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateWebhookV1WebhooksPost(ctx context.Context, body CreateWebhookV1WebhooksPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateWebhookV1WebhooksPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteEmailAlertV1EmailAlertsAlertIdDelete(ctx context.Context, alertId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteWebhookV1WebhooksWebhookIdDelete(ctx context.Context, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUsageByKeyV1UsageByKeyGet(ctx context.Context, params *GetUsageByKeyV1UsageByKeyGetParams, ...) (*http.Response, error)
- func (c *Client) GetUsageLogV1UsageLogGet(ctx context.Context, params *GetUsageLogV1UsageLogGetParams, ...) (*http.Response, error)
- func (c *Client) GetVersionApiVersionGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) HealthCheckHead(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListEmailAlertsV1EmailAlertsGet(ctx context.Context, params *ListEmailAlertsV1EmailAlertsGetParams, ...) (*http.Response, error)
- func (c *Client) ListWebhooksV1WebhooksGet(ctx context.Context, params *ListWebhooksV1WebhooksGetParams, ...) (*http.Response, error)
- func (c *Client) UpdateEmailAlertV1EmailAlertsAlertIdPut(ctx context.Context, alertId string, ...) (*http.Response, error)
- func (c *Client) UpdateEmailAlertV1EmailAlertsAlertIdPutWithBody(ctx context.Context, alertId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateWebhookV1WebhooksWebhookIdPut(ctx context.Context, webhookId string, ...) (*http.Response, error)
- func (c *Client) UpdateWebhookV1WebhooksWebhookIdPutWithBody(ctx context.Context, webhookId string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse, error)
- func (c *ClientWithResponses) CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithResponse(ctx context.Context, ...) (*CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse, error)
- func (c *ClientWithResponses) CreateDiagnosticV1AnalyzeDiagnosticPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateDiagnosticV1AnalyzeDiagnosticPostResponse, error)
- func (c *ClientWithResponses) CreateDiagnosticV1AnalyzeDiagnosticPostWithResponse(ctx context.Context, ...) (*CreateDiagnosticV1AnalyzeDiagnosticPostResponse, error)
- func (c *ClientWithResponses) CreateEmailAlertV1EmailAlertsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateEmailAlertV1EmailAlertsPostResponse, error)
- func (c *ClientWithResponses) CreateEmailAlertV1EmailAlertsPostWithResponse(ctx context.Context, body CreateEmailAlertV1EmailAlertsPostJSONRequestBody, ...) (*CreateEmailAlertV1EmailAlertsPostResponse, error)
- func (c *ClientWithResponses) CreateTranscriptionV1AudioTranscriptionsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateTranscriptionV1AudioTranscriptionsPostResponse, error)
- func (c *ClientWithResponses) CreateWebhookV1WebhooksPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateWebhookV1WebhooksPostResponse, error)
- func (c *ClientWithResponses) CreateWebhookV1WebhooksPostWithResponse(ctx context.Context, body CreateWebhookV1WebhooksPostJSONRequestBody, ...) (*CreateWebhookV1WebhooksPostResponse, error)
- func (c *ClientWithResponses) DeleteEmailAlertV1EmailAlertsAlertIdDeleteWithResponse(ctx context.Context, alertId string, reqEditors ...RequestEditorFn) (*DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse, error)
- func (c *ClientWithResponses) DeleteWebhookV1WebhooksWebhookIdDeleteWithResponse(ctx context.Context, webhookId string, reqEditors ...RequestEditorFn) (*DeleteWebhookV1WebhooksWebhookIdDeleteResponse, error)
- func (c *ClientWithResponses) GetUsageByKeyV1UsageByKeyGetWithResponse(ctx context.Context, params *GetUsageByKeyV1UsageByKeyGetParams, ...) (*GetUsageByKeyV1UsageByKeyGetResponse, error)
- func (c *ClientWithResponses) GetUsageLogV1UsageLogGetWithResponse(ctx context.Context, params *GetUsageLogV1UsageLogGetParams, ...) (*GetUsageLogV1UsageLogGetResponse, error)
- func (c *ClientWithResponses) GetVersionApiVersionGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionApiVersionGetResponse, error)
- func (c *ClientWithResponses) HealthCheckHeadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckHeadResponse, error)
- func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)
- func (c *ClientWithResponses) ListEmailAlertsV1EmailAlertsGetWithResponse(ctx context.Context, params *ListEmailAlertsV1EmailAlertsGetParams, ...) (*ListEmailAlertsV1EmailAlertsGetResponse, error)
- func (c *ClientWithResponses) ListWebhooksV1WebhooksGetWithResponse(ctx context.Context, params *ListWebhooksV1WebhooksGetParams, ...) (*ListWebhooksV1WebhooksGetResponse, error)
- func (c *ClientWithResponses) UpdateEmailAlertV1EmailAlertsAlertIdPutWithBodyWithResponse(ctx context.Context, alertId string, contentType string, body io.Reader, ...) (*UpdateEmailAlertV1EmailAlertsAlertIdPutResponse, error)
- func (c *ClientWithResponses) UpdateEmailAlertV1EmailAlertsAlertIdPutWithResponse(ctx context.Context, alertId string, ...) (*UpdateEmailAlertV1EmailAlertsAlertIdPutResponse, error)
- func (c *ClientWithResponses) UpdateWebhookV1WebhooksWebhookIdPutWithBodyWithResponse(ctx context.Context, webhookId string, contentType string, body io.Reader, ...) (*UpdateWebhookV1WebhooksWebhookIdPutResponse, error)
- func (c *ClientWithResponses) UpdateWebhookV1WebhooksWebhookIdPutWithResponse(ctx context.Context, webhookId string, ...) (*UpdateWebhookV1WebhooksWebhookIdPutResponse, error)
- type ClientWithResponsesInterface
- type CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostJSONRequestBody
- type CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse
- func (r CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) ContentType() string
- func (r CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) GetBody() []byte
- func (r CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) GetJSON200() *AuditoriaRiscoV2Response
- func (r CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) GetJSON422() *HTTPValidationError
- func (r CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) Status() string
- func (r CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) StatusCode() int
- type CreateDiagnosticV1AnalyzeDiagnosticPostJSONRequestBody
- type CreateDiagnosticV1AnalyzeDiagnosticPostResponse
- func (r CreateDiagnosticV1AnalyzeDiagnosticPostResponse) ContentType() string
- func (r CreateDiagnosticV1AnalyzeDiagnosticPostResponse) GetBody() []byte
- func (r CreateDiagnosticV1AnalyzeDiagnosticPostResponse) GetJSON200() *DiagnosticResponse
- func (r CreateDiagnosticV1AnalyzeDiagnosticPostResponse) GetJSON422() *HTTPValidationError
- func (r CreateDiagnosticV1AnalyzeDiagnosticPostResponse) Status() string
- func (r CreateDiagnosticV1AnalyzeDiagnosticPostResponse) StatusCode() int
- type CreateEmailAlertRequest
- type CreateEmailAlertV1EmailAlertsPostJSONRequestBody
- type CreateEmailAlertV1EmailAlertsPostResponse
- func (r CreateEmailAlertV1EmailAlertsPostResponse) ContentType() string
- func (r CreateEmailAlertV1EmailAlertsPostResponse) GetBody() []byte
- func (r CreateEmailAlertV1EmailAlertsPostResponse) GetJSON200() *EmailAlertItem
- func (r CreateEmailAlertV1EmailAlertsPostResponse) GetJSON422() *HTTPValidationError
- func (r CreateEmailAlertV1EmailAlertsPostResponse) Status() string
- func (r CreateEmailAlertV1EmailAlertsPostResponse) StatusCode() int
- type CreateTranscriptionV1AudioTranscriptionsPostMultipartRequestBody
- type CreateTranscriptionV1AudioTranscriptionsPostResponse
- func (r CreateTranscriptionV1AudioTranscriptionsPostResponse) ContentType() string
- func (r CreateTranscriptionV1AudioTranscriptionsPostResponse) GetBody() []byte
- func (r CreateTranscriptionV1AudioTranscriptionsPostResponse) GetJSON200() *TranscriptionResponse
- func (r CreateTranscriptionV1AudioTranscriptionsPostResponse) GetJSON422() *HTTPValidationError
- func (r CreateTranscriptionV1AudioTranscriptionsPostResponse) Status() string
- func (r CreateTranscriptionV1AudioTranscriptionsPostResponse) StatusCode() int
- type CreateWebhookRequest
- type CreateWebhookV1WebhooksPostJSONRequestBody
- type CreateWebhookV1WebhooksPostResponse
- func (r CreateWebhookV1WebhooksPostResponse) ContentType() string
- func (r CreateWebhookV1WebhooksPostResponse) GetBody() []byte
- func (r CreateWebhookV1WebhooksPostResponse) GetJSON200() *WebhookItem
- func (r CreateWebhookV1WebhooksPostResponse) GetJSON422() *HTTPValidationError
- func (r CreateWebhookV1WebhooksPostResponse) Status() string
- func (r CreateWebhookV1WebhooksPostResponse) StatusCode() int
- type DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse
- func (r DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) ContentType() string
- func (r DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) GetBody() []byte
- func (r DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) GetJSON200() *EmailAlertMessageResponse
- func (r DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) GetJSON422() *HTTPValidationError
- func (r DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) Status() string
- func (r DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) StatusCode() int
- type DeleteWebhookV1WebhooksWebhookIdDeleteResponse
- func (r DeleteWebhookV1WebhooksWebhookIdDeleteResponse) ContentType() string
- func (r DeleteWebhookV1WebhooksWebhookIdDeleteResponse) GetBody() []byte
- func (r DeleteWebhookV1WebhooksWebhookIdDeleteResponse) GetJSON200() *MessageResponse
- func (r DeleteWebhookV1WebhooksWebhookIdDeleteResponse) GetJSON422() *HTTPValidationError
- func (r DeleteWebhookV1WebhooksWebhookIdDeleteResponse) Status() string
- func (r DeleteWebhookV1WebhooksWebhookIdDeleteResponse) StatusCode() int
- type DiagnosticAnalysisMap
- type DiagnosticAudioEvent
- type DiagnosticCategoricalAnalysis
- type DiagnosticRequest
- type DiagnosticResponse
- type DiagnosticTextAnalysis
- type DiagnosticUsage
- type EmailAlertItem
- type EmailAlertListResponse
- type EmailAlertMessageResponse
- type EmailEvent
- type GetUsageByKeyV1UsageByKeyGetParams
- type GetUsageByKeyV1UsageByKeyGetResponse
- func (r GetUsageByKeyV1UsageByKeyGetResponse) ContentType() string
- func (r GetUsageByKeyV1UsageByKeyGetResponse) GetBody() []byte
- func (r GetUsageByKeyV1UsageByKeyGetResponse) GetJSON200() *[]UsageByKeyItem
- func (r GetUsageByKeyV1UsageByKeyGetResponse) GetJSON422() *HTTPValidationError
- func (r GetUsageByKeyV1UsageByKeyGetResponse) Status() string
- func (r GetUsageByKeyV1UsageByKeyGetResponse) StatusCode() int
- type GetUsageLogV1UsageLogGetParams
- type GetUsageLogV1UsageLogGetResponse
- func (r GetUsageLogV1UsageLogGetResponse) ContentType() string
- func (r GetUsageLogV1UsageLogGetResponse) GetBody() []byte
- func (r GetUsageLogV1UsageLogGetResponse) GetJSON200() *UsageLogResponse
- func (r GetUsageLogV1UsageLogGetResponse) GetJSON422() *HTTPValidationError
- func (r GetUsageLogV1UsageLogGetResponse) Status() string
- func (r GetUsageLogV1UsageLogGetResponse) StatusCode() int
- type GetVersionApiVersionGetResponse
- func (r GetVersionApiVersionGetResponse) ContentType() string
- func (r GetVersionApiVersionGetResponse) GetBody() []byte
- func (r GetVersionApiVersionGetResponse) GetJSON200() *VersionResponse
- func (r GetVersionApiVersionGetResponse) Status() string
- func (r GetVersionApiVersionGetResponse) StatusCode() int
- type HTTPValidationError
- type HealthCheckHeadResponse
- type HealthCheckResponse
- type HealthResponse
- type HttpRequestDoer
- type ListEmailAlertsV1EmailAlertsGetParams
- type ListEmailAlertsV1EmailAlertsGetResponse
- func (r ListEmailAlertsV1EmailAlertsGetResponse) ContentType() string
- func (r ListEmailAlertsV1EmailAlertsGetResponse) GetBody() []byte
- func (r ListEmailAlertsV1EmailAlertsGetResponse) GetJSON200() *EmailAlertListResponse
- func (r ListEmailAlertsV1EmailAlertsGetResponse) GetJSON422() *HTTPValidationError
- func (r ListEmailAlertsV1EmailAlertsGetResponse) Status() string
- func (r ListEmailAlertsV1EmailAlertsGetResponse) StatusCode() int
- type ListWebhooksV1WebhooksGetParams
- type ListWebhooksV1WebhooksGetResponse
- func (r ListWebhooksV1WebhooksGetResponse) ContentType() string
- func (r ListWebhooksV1WebhooksGetResponse) GetBody() []byte
- func (r ListWebhooksV1WebhooksGetResponse) GetJSON200() *WebhookListResponse
- func (r ListWebhooksV1WebhooksGetResponse) GetJSON422() *HTTPValidationError
- func (r ListWebhooksV1WebhooksGetResponse) Status() string
- func (r ListWebhooksV1WebhooksGetResponse) StatusCode() int
- type MessageResponse
- type Participant
- type ParticipantDiagnostic
- type ParticipantRole
- type RequestEditorFn
- type TranscriptionResponse
- type TranscriptionUsage
- type UpdateEmailAlertRequest
- type UpdateEmailAlertV1EmailAlertsAlertIdPutJSONRequestBody
- type UpdateEmailAlertV1EmailAlertsAlertIdPutResponse
- func (r UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) ContentType() string
- func (r UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) GetBody() []byte
- func (r UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) GetJSON200() *EmailAlertMessageResponse
- func (r UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) GetJSON422() *HTTPValidationError
- func (r UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) Status() string
- func (r UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) StatusCode() int
- type UpdateWebhookRequest
- type UpdateWebhookV1WebhooksWebhookIdPutJSONRequestBody
- type UpdateWebhookV1WebhooksWebhookIdPutResponse
- func (r UpdateWebhookV1WebhooksWebhookIdPutResponse) ContentType() string
- func (r UpdateWebhookV1WebhooksWebhookIdPutResponse) GetBody() []byte
- func (r UpdateWebhookV1WebhooksWebhookIdPutResponse) GetJSON200() *MessageResponse
- func (r UpdateWebhookV1WebhooksWebhookIdPutResponse) GetJSON422() *HTTPValidationError
- func (r UpdateWebhookV1WebhooksWebhookIdPutResponse) Status() string
- func (r UpdateWebhookV1WebhooksWebhookIdPutResponse) StatusCode() int
- type UsageByKeyItem
- type UsageLogItem
- type UsageLogResponse
- type ValidationError
- type ValidationErrorLoc0
- type ValidationErrorLoc1
- type ValidationError_Loc_Item
- func (t ValidationError_Loc_Item) AsValidationErrorLoc0() (ValidationErrorLoc0, error)
- func (t ValidationError_Loc_Item) AsValidationErrorLoc1() (ValidationErrorLoc1, error)
- func (t *ValidationError_Loc_Item) FromValidationErrorLoc0(v ValidationErrorLoc0) error
- func (t *ValidationError_Loc_Item) FromValidationErrorLoc1(v ValidationErrorLoc1) error
- func (t ValidationError_Loc_Item) MarshalJSON() ([]byte, error)
- func (t *ValidationError_Loc_Item) MergeValidationErrorLoc0(v ValidationErrorLoc0) error
- func (t *ValidationError_Loc_Item) MergeValidationErrorLoc1(v ValidationErrorLoc1) error
- func (t *ValidationError_Loc_Item) UnmarshalJSON(b []byte) error
- type VersionResponse
- type WebhookEvent
- type WebhookItem
- type WebhookListResponse
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 ¶
NewGetVersionApiVersionGetRequest constructs an http.Request for the GetVersionApiVersionGet method
func NewHealthCheckHeadRequest ¶
NewHealthCheckHeadRequest constructs an http.Request for the HealthCheckHead method
func NewHealthCheckRequest ¶
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 ¶
func (e AuditoriaRiscoRequestCallDirection) Valid() bool
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 ¶
ClientOption allows setting custom parameters during construction
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 ¶
func (c *ClientWithResponses) CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostWithResponse(ctx context.Context, body CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostJSONRequestBody, 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).
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 ¶
func (c *ClientWithResponses) CreateDiagnosticV1AnalyzeDiagnosticPostWithResponse(ctx context.Context, body CreateDiagnosticV1AnalyzeDiagnosticPostJSONRequestBody, 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).
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 ¶
func (c *ClientWithResponses) CreateEmailAlertV1EmailAlertsPostWithResponse(ctx context.Context, body CreateEmailAlertV1EmailAlertsPostJSONRequestBody, 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).
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 ¶
func (r CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) GetBody ¶
func (r CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) GetJSON200 ¶
func (r CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) GetJSON200() *AuditoriaRiscoV2Response
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) GetJSON422 ¶
func (r CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) Status ¶
func (r CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) StatusCode ¶
func (r CreateAuditoriaRiscoV1AnalyzeAuditoriaRiscoPostResponse) StatusCode() int
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 ¶
func (r CreateDiagnosticV1AnalyzeDiagnosticPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateDiagnosticV1AnalyzeDiagnosticPostResponse) GetBody ¶
func (r CreateDiagnosticV1AnalyzeDiagnosticPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateDiagnosticV1AnalyzeDiagnosticPostResponse) GetJSON200 ¶
func (r CreateDiagnosticV1AnalyzeDiagnosticPostResponse) GetJSON200() *DiagnosticResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateDiagnosticV1AnalyzeDiagnosticPostResponse) GetJSON422 ¶
func (r CreateDiagnosticV1AnalyzeDiagnosticPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (CreateDiagnosticV1AnalyzeDiagnosticPostResponse) Status ¶
func (r CreateDiagnosticV1AnalyzeDiagnosticPostResponse) Status() string
Status returns HTTPResponse.Status
func (CreateDiagnosticV1AnalyzeDiagnosticPostResponse) StatusCode ¶
func (r CreateDiagnosticV1AnalyzeDiagnosticPostResponse) StatusCode() int
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 ¶
func (r CreateEmailAlertV1EmailAlertsPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateEmailAlertV1EmailAlertsPostResponse) GetBody ¶
func (r CreateEmailAlertV1EmailAlertsPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateEmailAlertV1EmailAlertsPostResponse) GetJSON200 ¶
func (r CreateEmailAlertV1EmailAlertsPostResponse) GetJSON200() *EmailAlertItem
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateEmailAlertV1EmailAlertsPostResponse) GetJSON422 ¶
func (r CreateEmailAlertV1EmailAlertsPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (CreateEmailAlertV1EmailAlertsPostResponse) Status ¶
func (r CreateEmailAlertV1EmailAlertsPostResponse) Status() string
Status returns HTTPResponse.Status
func (CreateEmailAlertV1EmailAlertsPostResponse) StatusCode ¶
func (r CreateEmailAlertV1EmailAlertsPostResponse) StatusCode() int
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 ¶
func (r CreateTranscriptionV1AudioTranscriptionsPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateTranscriptionV1AudioTranscriptionsPostResponse) GetBody ¶
func (r CreateTranscriptionV1AudioTranscriptionsPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateTranscriptionV1AudioTranscriptionsPostResponse) GetJSON200 ¶
func (r CreateTranscriptionV1AudioTranscriptionsPostResponse) GetJSON200() *TranscriptionResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateTranscriptionV1AudioTranscriptionsPostResponse) GetJSON422 ¶
func (r CreateTranscriptionV1AudioTranscriptionsPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (CreateTranscriptionV1AudioTranscriptionsPostResponse) Status ¶
func (r CreateTranscriptionV1AudioTranscriptionsPostResponse) Status() string
Status returns HTTPResponse.Status
func (CreateTranscriptionV1AudioTranscriptionsPostResponse) StatusCode ¶
func (r CreateTranscriptionV1AudioTranscriptionsPostResponse) StatusCode() int
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 ¶
func (r CreateWebhookV1WebhooksPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateWebhookV1WebhooksPostResponse) GetBody ¶
func (r CreateWebhookV1WebhooksPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateWebhookV1WebhooksPostResponse) GetJSON200 ¶
func (r CreateWebhookV1WebhooksPostResponse) GetJSON200() *WebhookItem
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateWebhookV1WebhooksPostResponse) GetJSON422 ¶
func (r CreateWebhookV1WebhooksPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (CreateWebhookV1WebhooksPostResponse) Status ¶
func (r CreateWebhookV1WebhooksPostResponse) Status() string
Status returns HTTPResponse.Status
func (CreateWebhookV1WebhooksPostResponse) StatusCode ¶
func (r CreateWebhookV1WebhooksPostResponse) StatusCode() int
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 ¶
func (r DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) GetBody ¶
func (r DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) GetJSON200 ¶
func (r DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) GetJSON200() *EmailAlertMessageResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) GetJSON422 ¶
func (r DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) Status ¶
func (r DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) StatusCode ¶
func (r DeleteEmailAlertV1EmailAlertsAlertIdDeleteResponse) StatusCode() int
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 ¶
func (r DeleteWebhookV1WebhooksWebhookIdDeleteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteWebhookV1WebhooksWebhookIdDeleteResponse) GetBody ¶
func (r DeleteWebhookV1WebhooksWebhookIdDeleteResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteWebhookV1WebhooksWebhookIdDeleteResponse) GetJSON200 ¶
func (r DeleteWebhookV1WebhooksWebhookIdDeleteResponse) GetJSON200() *MessageResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteWebhookV1WebhooksWebhookIdDeleteResponse) GetJSON422 ¶
func (r DeleteWebhookV1WebhooksWebhookIdDeleteResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (DeleteWebhookV1WebhooksWebhookIdDeleteResponse) Status ¶
func (r DeleteWebhookV1WebhooksWebhookIdDeleteResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteWebhookV1WebhooksWebhookIdDeleteResponse) StatusCode ¶
func (r DeleteWebhookV1WebhooksWebhookIdDeleteResponse) StatusCode() int
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 ¶
func (r GetUsageByKeyV1UsageByKeyGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetUsageByKeyV1UsageByKeyGetResponse) GetBody ¶
func (r GetUsageByKeyV1UsageByKeyGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetUsageByKeyV1UsageByKeyGetResponse) GetJSON200 ¶
func (r GetUsageByKeyV1UsageByKeyGetResponse) GetJSON200() *[]UsageByKeyItem
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetUsageByKeyV1UsageByKeyGetResponse) GetJSON422 ¶
func (r GetUsageByKeyV1UsageByKeyGetResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetUsageByKeyV1UsageByKeyGetResponse) Status ¶
func (r GetUsageByKeyV1UsageByKeyGetResponse) Status() string
Status returns HTTPResponse.Status
func (GetUsageByKeyV1UsageByKeyGetResponse) StatusCode ¶
func (r GetUsageByKeyV1UsageByKeyGetResponse) StatusCode() int
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 ¶
func (r GetUsageLogV1UsageLogGetResponse) GetJSON200() *UsageLogResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetUsageLogV1UsageLogGetResponse) GetJSON422 ¶
func (r GetUsageLogV1UsageLogGetResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetUsageLogV1UsageLogGetResponse) Status ¶
func (r GetUsageLogV1UsageLogGetResponse) Status() string
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 ¶
func (r GetVersionApiVersionGetResponse) GetJSON200() *VersionResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetVersionApiVersionGetResponse) Status ¶
func (r GetVersionApiVersionGetResponse) Status() string
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 ¶
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 ¶
func (r ListEmailAlertsV1EmailAlertsGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListEmailAlertsV1EmailAlertsGetResponse) GetBody ¶
func (r ListEmailAlertsV1EmailAlertsGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListEmailAlertsV1EmailAlertsGetResponse) GetJSON200 ¶
func (r ListEmailAlertsV1EmailAlertsGetResponse) GetJSON200() *EmailAlertListResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListEmailAlertsV1EmailAlertsGetResponse) GetJSON422 ¶
func (r ListEmailAlertsV1EmailAlertsGetResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (ListEmailAlertsV1EmailAlertsGetResponse) Status ¶
func (r ListEmailAlertsV1EmailAlertsGetResponse) Status() string
Status returns HTTPResponse.Status
func (ListEmailAlertsV1EmailAlertsGetResponse) StatusCode ¶
func (r ListEmailAlertsV1EmailAlertsGetResponse) StatusCode() int
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 ¶
func (r ListWebhooksV1WebhooksGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListWebhooksV1WebhooksGetResponse) GetJSON200 ¶
func (r ListWebhooksV1WebhooksGetResponse) GetJSON200() *WebhookListResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListWebhooksV1WebhooksGetResponse) GetJSON422 ¶
func (r ListWebhooksV1WebhooksGetResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (ListWebhooksV1WebhooksGetResponse) Status ¶
func (r ListWebhooksV1WebhooksGetResponse) Status() string
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 ¶
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 ¶
func (r UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) GetBody ¶
func (r UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) GetJSON200 ¶
func (r UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) GetJSON200() *EmailAlertMessageResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) GetJSON422 ¶
func (r UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) Status ¶
func (r UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) StatusCode ¶
func (r UpdateEmailAlertV1EmailAlertsAlertIdPutResponse) StatusCode() int
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 ¶
func (r UpdateWebhookV1WebhooksWebhookIdPutResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateWebhookV1WebhooksWebhookIdPutResponse) GetBody ¶
func (r UpdateWebhookV1WebhooksWebhookIdPutResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateWebhookV1WebhooksWebhookIdPutResponse) GetJSON200 ¶
func (r UpdateWebhookV1WebhooksWebhookIdPutResponse) GetJSON200() *MessageResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateWebhookV1WebhooksWebhookIdPutResponse) GetJSON422 ¶
func (r UpdateWebhookV1WebhooksWebhookIdPutResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (UpdateWebhookV1WebhooksWebhookIdPutResponse) Status ¶
func (r UpdateWebhookV1WebhooksWebhookIdPutResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateWebhookV1WebhooksWebhookIdPutResponse) StatusCode ¶
func (r UpdateWebhookV1WebhooksWebhookIdPutResponse) StatusCode() int
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.