Interface IAIControllerApiAsync
Represents a collection of functions to interact with the API endpoints
Inherited Members
Namespace: mailslurp.Api
Assembly: mailslurp.dll
Syntax
public interface IAIControllerApiAsync : IApiAccessor
Methods
View SourceCreateTransformerAsync(AITransformCreateOptions, int, CancellationToken)
Create a transformer for reuse in automations
Declaration
Task<AITransformDto> CreateTransformerAsync(AITransformCreateOptions aITransformCreateOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AITransformCreateOptions | aITransformCreateOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<AITransformDto> | Task of AITransformDto |
Remarks
Save an AI transform instructions and schema for use with webhooks and automations
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
CreateTransformerMappingsAsync(CreateAITransformerMappingOptions, int, CancellationToken)
Create transformer mapping
Declaration
Task<AITransformMappingDto> CreateTransformerMappingsAsync(CreateAITransformerMappingOptions createAITransformerMappingOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAITransformerMappingOptions | createAITransformerMappingOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<AITransformMappingDto> | Task of AITransformMappingDto |
Remarks
Create AI transformer mappings to other entities
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
CreateTransformerMappingsWithHttpInfoAsync(CreateAITransformerMappingOptions, int, CancellationToken)
Create transformer mapping
Declaration
Task<ApiResponse<AITransformMappingDto>> CreateTransformerMappingsWithHttpInfoAsync(CreateAITransformerMappingOptions createAITransformerMappingOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAITransformerMappingOptions | createAITransformerMappingOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<AITransformMappingDto>> | Task of ApiResponse (AITransformMappingDto) |
Remarks
Create AI transformer mappings to other entities
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
CreateTransformerWithHttpInfoAsync(AITransformCreateOptions, int, CancellationToken)
Create a transformer for reuse in automations
Declaration
Task<ApiResponse<AITransformDto>> CreateTransformerWithHttpInfoAsync(AITransformCreateOptions aITransformCreateOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AITransformCreateOptions | aITransformCreateOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<AITransformDto>> | Task of ApiResponse (AITransformDto) |
Remarks
Save an AI transform instructions and schema for use with webhooks and automations
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeleteAllTransformerMappingsAsync(int, CancellationToken)
Delete all transformer mapping
Declaration
Task DeleteAllTransformerMappingsAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | Task of void |
Remarks
Delete all AI transformer mappings
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeleteAllTransformerMappingsWithHttpInfoAsync(int, CancellationToken)
Delete all transformer mapping
Declaration
Task<ApiResponse<object>> DeleteAllTransformerMappingsWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Delete all AI transformer mappings
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeleteTransformerAsync(Guid, int, CancellationToken)
Delete a transformer
Declaration
Task DeleteTransformerAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | Task of void |
Remarks
Delete an AI transformer and schemas by ID
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeleteTransformerMappingAsync(Guid, int, CancellationToken)
Delete transformer mapping
Declaration
Task DeleteTransformerMappingAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | ID of transform mapping |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | Task of void |
Remarks
Delete an AI transformer mapping
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeleteTransformerMappingWithHttpInfoAsync(Guid, int, CancellationToken)
Delete transformer mapping
Declaration
Task<ApiResponse<object>> DeleteTransformerMappingWithHttpInfoAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | ID of transform mapping |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Delete an AI transformer mapping
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeleteTransformerWithHttpInfoAsync(Guid, int, CancellationToken)
Delete a transformer
Declaration
Task<ApiResponse<object>> DeleteTransformerWithHttpInfoAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Delete an AI transformer and schemas by ID
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeleteTransformersAsync(int, CancellationToken)
Delete all transformers
Declaration
Task DeleteTransformersAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | Task of void |
Remarks
Delete all AI transformers and schemas
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
DeleteTransformersWithHttpInfoAsync(int, CancellationToken)
Delete all transformers
Declaration
Task<ApiResponse<object>> DeleteTransformersWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Delete all AI transformers and schemas
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
ExportTransformerResultsAsync(ExportTransformerOptions, int, CancellationToken)
Export transformer results
Declaration
Task<ExportTransformerResponse> ExportTransformerResultsAsync(ExportTransformerOptions exportTransformerOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ExportTransformerOptions | exportTransformerOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ExportTransformerResponse> | Task of ExportTransformerResponse |
Remarks
Export AI transformer results in formats such as Excel, CSV, XML etc.
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
ExportTransformerResultsWithHttpInfoAsync(ExportTransformerOptions, int, CancellationToken)
Export transformer results
Declaration
Task<ApiResponse<ExportTransformerResponse>> ExportTransformerResultsWithHttpInfoAsync(ExportTransformerOptions exportTransformerOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ExportTransformerOptions | exportTransformerOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<ExportTransformerResponse>> | Task of ApiResponse (ExportTransformerResponse) |
Remarks
Export AI transformer results in formats such as Excel, CSV, XML etc.
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GenerateStructuredContentFromAttachmentAsync(GenerateStructuredContentAttachmentOptions, int, CancellationToken)
Generate structured content for an attachment
Declaration
Task<StructuredContentResultDto> GenerateStructuredContentFromAttachmentAsync(GenerateStructuredContentAttachmentOptions generateStructuredContentAttachmentOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GenerateStructuredContentAttachmentOptions | generateStructuredContentAttachmentOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<StructuredContentResultDto> | Task of StructuredContentResultDto |
Remarks
Use output schemas to extract data from an attachment using AI
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GenerateStructuredContentFromAttachmentWithHttpInfoAsync(GenerateStructuredContentAttachmentOptions, int, CancellationToken)
Generate structured content for an attachment
Declaration
Task<ApiResponse<StructuredContentResultDto>> GenerateStructuredContentFromAttachmentWithHttpInfoAsync(GenerateStructuredContentAttachmentOptions generateStructuredContentAttachmentOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GenerateStructuredContentAttachmentOptions | generateStructuredContentAttachmentOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<StructuredContentResultDto>> | Task of ApiResponse (StructuredContentResultDto) |
Remarks
Use output schemas to extract data from an attachment using AI
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GenerateStructuredContentFromEmailAsync(GenerateStructuredContentEmailOptions, int, CancellationToken)
Generate structured content for an email
Declaration
Task<StructuredContentResultDto> GenerateStructuredContentFromEmailAsync(GenerateStructuredContentEmailOptions generateStructuredContentEmailOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GenerateStructuredContentEmailOptions | generateStructuredContentEmailOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<StructuredContentResultDto> | Task of StructuredContentResultDto |
Remarks
Use output schemas to extract data from an email using AI
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GenerateStructuredContentFromEmailWithHttpInfoAsync(GenerateStructuredContentEmailOptions, int, CancellationToken)
Generate structured content for an email
Declaration
Task<ApiResponse<StructuredContentResultDto>> GenerateStructuredContentFromEmailWithHttpInfoAsync(GenerateStructuredContentEmailOptions generateStructuredContentEmailOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GenerateStructuredContentEmailOptions | generateStructuredContentEmailOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<StructuredContentResultDto>> | Task of ApiResponse (StructuredContentResultDto) |
Remarks
Use output schemas to extract data from an email using AI
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GenerateStructuredContentFromSmsAsync(GenerateStructuredContentSmsOptions, int, CancellationToken)
Generate structured content for a TXT message
Declaration
Task<StructuredContentResultDto> GenerateStructuredContentFromSmsAsync(GenerateStructuredContentSmsOptions generateStructuredContentSmsOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GenerateStructuredContentSmsOptions | generateStructuredContentSmsOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<StructuredContentResultDto> | Task of StructuredContentResultDto |
Remarks
Use output schemas to extract data from an SMS using AI
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GenerateStructuredContentFromSmsWithHttpInfoAsync(GenerateStructuredContentSmsOptions, int, CancellationToken)
Generate structured content for a TXT message
Declaration
Task<ApiResponse<StructuredContentResultDto>> GenerateStructuredContentFromSmsWithHttpInfoAsync(GenerateStructuredContentSmsOptions generateStructuredContentSmsOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GenerateStructuredContentSmsOptions | generateStructuredContentSmsOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<StructuredContentResultDto>> | Task of ApiResponse (StructuredContentResultDto) |
Remarks
Use output schemas to extract data from an SMS using AI
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetExportTransformerResultsJobAsync(Guid, int, CancellationToken)
Get export transformer results job
Declaration
Task<ExportTransformerResultJobDto> GetExportTransformerResultsJobAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ExportTransformerResultJobDto> | Task of ExportTransformerResultJobDto |
Remarks
Get the job status for an export
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetExportTransformerResultsJobWithHttpInfoAsync(Guid, int, CancellationToken)
Get export transformer results job
Declaration
Task<ApiResponse<ExportTransformerResultJobDto>> GetExportTransformerResultsJobWithHttpInfoAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<ExportTransformerResultJobDto>> | Task of ApiResponse (ExportTransformerResultJobDto) |
Remarks
Get the job status for an export
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetTransformerAsync(Guid, int, CancellationToken)
Get a transformer
Declaration
Task<AITransformDto> GetTransformerAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<AITransformDto> | Task of AITransformDto |
Remarks
Get AI transformer and schemas by ID
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetTransformerMappingAsync(Guid, int, CancellationToken)
Get transformer mapping
Declaration
Task<AITransformMappingDto> GetTransformerMappingAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | ID of transform mapping |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<AITransformMappingDto> | Task of AITransformMappingDto |
Remarks
Get an AI transformer mapping
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetTransformerMappingWithHttpInfoAsync(Guid, int, CancellationToken)
Get transformer mapping
Declaration
Task<ApiResponse<AITransformMappingDto>> GetTransformerMappingWithHttpInfoAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | ID of transform mapping |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<AITransformMappingDto>> | Task of ApiResponse (AITransformMappingDto) |
Remarks
Get an AI transformer mapping
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetTransformerMappingsAsync(Guid?, Guid?, string, int?, int?, string, int, CancellationToken)
Get transformer mappings
Declaration
Task<PageAITransformMappingProjection> GetTransformerMappingsAsync(Guid? aiTransformId = null, Guid? entityId = null, string entityType = null, int? page = null, int? size = null, string sort = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid? | aiTransformId | (optional) |
| Guid? | entityId | (optional) |
| string | entityType | (optional) |
| int? | page | (optional, default to 0) |
| int? | size | Optional page size. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PageAITransformMappingProjection> | Task of PageAITransformMappingProjection |
Remarks
Get AI transformer mappings to other entities
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetTransformerMappingsWithHttpInfoAsync(Guid?, Guid?, string, int?, int?, string, int, CancellationToken)
Get transformer mappings
Declaration
Task<ApiResponse<PageAITransformMappingProjection>> GetTransformerMappingsWithHttpInfoAsync(Guid? aiTransformId = null, Guid? entityId = null, string entityType = null, int? page = null, int? size = null, string sort = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid? | aiTransformId | (optional) |
| Guid? | entityId | (optional) |
| string | entityType | (optional) |
| int? | page | (optional, default to 0) |
| int? | size | Optional page size. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PageAITransformMappingProjection>> | Task of ApiResponse (PageAITransformMappingProjection) |
Remarks
Get AI transformer mappings to other entities
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetTransformerResultAsync(Guid, int, CancellationToken)
Get transformer result
Declaration
Task<AITransformResultDto> GetTransformerResultAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | ID of transform result |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<AITransformResultDto> | Task of AITransformResultDto |
Remarks
Get AI transformer result
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetTransformerResultWithHttpInfoAsync(Guid, int, CancellationToken)
Get transformer result
Declaration
Task<ApiResponse<AITransformResultDto>> GetTransformerResultWithHttpInfoAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | ID of transform result |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<AITransformResultDto>> | Task of ApiResponse (AITransformResultDto) |
Remarks
Get AI transformer result
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetTransformerResultsAsync(Guid?, Guid?, string, Guid?, Guid?, Guid?, string, int?, int?, string, int, CancellationToken)
Get transformer results
Declaration
Task<PageAITransformResultProjection> GetTransformerResultsAsync(Guid? emailId = null, Guid? smsId = null, string attachmentId = null, Guid? aiTransformId = null, Guid? aiTransformMappingId = null, Guid? entityId = null, string entityType = null, int? page = null, int? size = null, string sort = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid? | emailId | (optional) |
| Guid? | smsId | (optional) |
| string | attachmentId | (optional) |
| Guid? | aiTransformId | (optional) |
| Guid? | aiTransformMappingId | (optional) |
| Guid? | entityId | (optional) |
| string | entityType | (optional) |
| int? | page | (optional, default to 0) |
| int? | size | Optional page size. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PageAITransformResultProjection> | Task of PageAITransformResultProjection |
Remarks
Get AI transformer results
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetTransformerResultsTableAsync(bool, bool, Guid?, Guid?, string, Guid?, Guid?, Guid?, string, int?, int?, string, int, CancellationToken)
Get transformer results table
Declaration
Task<PageTableData> GetTransformerResultsTableAsync(bool includeMetaData, bool flattenArraysToRows, Guid? emailId = null, Guid? smsId = null, string attachmentId = null, Guid? aiTransformId = null, Guid? aiTransformMappingId = null, Guid? entityId = null, string entityType = null, int? page = null, int? size = null, string sort = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | includeMetaData | |
| bool | flattenArraysToRows | |
| Guid? | emailId | (optional) |
| Guid? | smsId | (optional) |
| string | attachmentId | (optional) |
| Guid? | aiTransformId | (optional) |
| Guid? | aiTransformMappingId | (optional) |
| Guid? | entityId | (optional) |
| string | entityType | (optional) |
| int? | page | (optional, default to 0) |
| int? | size | Optional page size. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PageTableData> | Task of PageTableData |
Remarks
Get AI transformer results in table format
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetTransformerResultsTableWithHttpInfoAsync(bool, bool, Guid?, Guid?, string, Guid?, Guid?, Guid?, string, int?, int?, string, int, CancellationToken)
Get transformer results table
Declaration
Task<ApiResponse<PageTableData>> GetTransformerResultsTableWithHttpInfoAsync(bool includeMetaData, bool flattenArraysToRows, Guid? emailId = null, Guid? smsId = null, string attachmentId = null, Guid? aiTransformId = null, Guid? aiTransformMappingId = null, Guid? entityId = null, string entityType = null, int? page = null, int? size = null, string sort = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | includeMetaData | |
| bool | flattenArraysToRows | |
| Guid? | emailId | (optional) |
| Guid? | smsId | (optional) |
| string | attachmentId | (optional) |
| Guid? | aiTransformId | (optional) |
| Guid? | aiTransformMappingId | (optional) |
| Guid? | entityId | (optional) |
| string | entityType | (optional) |
| int? | page | (optional, default to 0) |
| int? | size | Optional page size. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PageTableData>> | Task of ApiResponse (PageTableData) |
Remarks
Get AI transformer results in table format
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetTransformerResultsWithHttpInfoAsync(Guid?, Guid?, string, Guid?, Guid?, Guid?, string, int?, int?, string, int, CancellationToken)
Get transformer results
Declaration
Task<ApiResponse<PageAITransformResultProjection>> GetTransformerResultsWithHttpInfoAsync(Guid? emailId = null, Guid? smsId = null, string attachmentId = null, Guid? aiTransformId = null, Guid? aiTransformMappingId = null, Guid? entityId = null, string entityType = null, int? page = null, int? size = null, string sort = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid? | emailId | (optional) |
| Guid? | smsId | (optional) |
| string | attachmentId | (optional) |
| Guid? | aiTransformId | (optional) |
| Guid? | aiTransformMappingId | (optional) |
| Guid? | entityId | (optional) |
| string | entityType | (optional) |
| int? | page | (optional, default to 0) |
| int? | size | Optional page size. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PageAITransformResultProjection>> | Task of ApiResponse (PageAITransformResultProjection) |
Remarks
Get AI transformer results
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetTransformerWithHttpInfoAsync(Guid, int, CancellationToken)
Get a transformer
Declaration
Task<ApiResponse<AITransformDto>> GetTransformerWithHttpInfoAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<AITransformDto>> | Task of ApiResponse (AITransformDto) |
Remarks
Get AI transformer and schemas by ID
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetTransformersAsync(int?, int?, string, List<Guid>, int, CancellationToken)
List transformers
Declaration
Task<PageAITransformProjection> GetTransformersAsync(int? page = null, int? size = null, string sort = null, List<Guid> include = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int? | page | (optional, default to 0) |
| int? | size | Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| List<Guid> | include | Optional list of IDs to include in result (optional) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PageAITransformProjection> | Task of PageAITransformProjection |
Remarks
List all AI transforms
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetTransformersWithHttpInfoAsync(int?, int?, string, List<Guid>, int, CancellationToken)
List transformers
Declaration
Task<ApiResponse<PageAITransformProjection>> GetTransformersWithHttpInfoAsync(int? page = null, int? size = null, string sort = null, List<Guid> include = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int? | page | (optional, default to 0) |
| int? | size | Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| List<Guid> | include | Optional list of IDs to include in result (optional) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PageAITransformProjection>> | Task of ApiResponse (PageAITransformProjection) |
Remarks
List all AI transforms
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
InvokeTransformerAsync(InvokeTransformerOptions, int, CancellationToken)
Invoke a transformer
Declaration
Task<ConditionalStructuredContentResult> InvokeTransformerAsync(InvokeTransformerOptions invokeTransformerOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| InvokeTransformerOptions | invokeTransformerOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ConditionalStructuredContentResult> | Task of ConditionalStructuredContentResult |
Remarks
Execute an AI transformer to generate structured content
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
InvokeTransformerWithHttpInfoAsync(InvokeTransformerOptions, int, CancellationToken)
Invoke a transformer
Declaration
Task<ApiResponse<ConditionalStructuredContentResult>> InvokeTransformerWithHttpInfoAsync(InvokeTransformerOptions invokeTransformerOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| InvokeTransformerOptions | invokeTransformerOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<ConditionalStructuredContentResult>> | Task of ApiResponse (ConditionalStructuredContentResult) |
Remarks
Execute an AI transformer to generate structured content
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
TestTransformerMappingMatchAsync(Guid, Guid?, Guid?, string, int, CancellationToken)
Test transformer mapping match result
Declaration
Task<AITransformMappingMatchResult> TestTransformerMappingMatchAsync(Guid id, Guid? emailId = null, Guid? smsId = null, string attachmentId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | ID of transform mapping |
| Guid? | emailId | (optional) |
| Guid? | smsId | (optional) |
| string | attachmentId | (optional) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<AITransformMappingMatchResult> | Task of AITransformMappingMatchResult |
Remarks
Evaluate transform mapping match conditions for given email, sms, or attachment
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
TestTransformerMappingMatchWithHttpInfoAsync(Guid, Guid?, Guid?, string, int, CancellationToken)
Test transformer mapping match result
Declaration
Task<ApiResponse<AITransformMappingMatchResult>> TestTransformerMappingMatchWithHttpInfoAsync(Guid id, Guid? emailId = null, Guid? smsId = null, string attachmentId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | ID of transform mapping |
| Guid? | emailId | (optional) |
| Guid? | smsId | (optional) |
| string | attachmentId | (optional) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<AITransformMappingMatchResult>> | Task of ApiResponse (AITransformMappingMatchResult) |
Remarks
Evaluate transform mapping match conditions for given email, sms, or attachment
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
ValidateStructuredOutputSchemaAsync(StructuredOutputSchema, int, CancellationToken)
Validate structured content schema
Declaration
Task<StructuredOutputSchemaValidation> ValidateStructuredOutputSchemaAsync(StructuredOutputSchema structuredOutputSchema, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| StructuredOutputSchema | structuredOutputSchema | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<StructuredOutputSchemaValidation> | Task of StructuredOutputSchemaValidation |
Remarks
Check if a schema is valid and can be used to extract data using AI
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
ValidateStructuredOutputSchemaWithHttpInfoAsync(StructuredOutputSchema, int, CancellationToken)
Validate structured content schema
Declaration
Task<ApiResponse<StructuredOutputSchemaValidation>> ValidateStructuredOutputSchemaWithHttpInfoAsync(StructuredOutputSchema structuredOutputSchema, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| StructuredOutputSchema | structuredOutputSchema | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<StructuredOutputSchemaValidation>> | Task of ApiResponse (StructuredOutputSchemaValidation) |
Remarks
Check if a schema is valid and can be used to extract data using AI
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |