Class SeclaiTypedClient
Typed variants of the SeclaiClient methods that return raw JSON.
Inheritance
SeclaiTypedClient
Assembly: Seclai.dll
Syntax
public sealed class SeclaiTypedClient
Methods
Adds a comment to an alert.
Declaration
public Task<AlertDetailResponse> AddAlertCommentAsync(string alertId, AddCommentRequest body, CancellationToken cancellationToken = default)
Parameters
Returns
CancelExperimentAsync(string, CancellationToken)
Cancels a running model playground experiment.
Declaration
public Task<CancelExperimentResponse> CancelExperimentAsync(string experimentId, CancellationToken cancellationToken = default)
Parameters
Returns
ChangeAlertStatusAsync(string, ChangeStatusRequest, CancellationToken)
Changes the status of an alert.
Declaration
public Task<AlertDetailResponse> ChangeAlertStatusAsync(string alertId, ChangeStatusRequest body, CancellationToken cancellationToken = default)
Parameters
Returns
CreateAlertConfigAsync(CreateAlertConfigRequest, CancellationToken)
Creates a new alert configuration.
Declaration
public Task<AlertConfigResponse> CreateAlertConfigAsync(CreateAlertConfigRequest body, CancellationToken cancellationToken = default)
Parameters
Returns
CreateExperimentAsync(PlaygroundCreateRequest, CancellationToken)
Creates a model playground experiment.
Declaration
public Task<CreateExperimentResponse> CreateExperimentAsync(PlaygroundCreateRequest body, CancellationToken cancellationToken = default)
Parameters
Returns
GetAlertAsync(string, CancellationToken)
Retrieves an alert by ID.
Declaration
public Task<AlertDetailResponse> GetAlertAsync(string alertId, CancellationToken cancellationToken = default)
Parameters
Returns
GetAlertConfigAsync(string, CancellationToken)
Retrieves an alert configuration by ID.
Declaration
public Task<AlertConfigResponse> GetAlertConfigAsync(string configId, CancellationToken cancellationToken = default)
Parameters
Returns
GetExperimentAsync(string, CancellationToken)
Retrieves a model playground experiment by ID.
Declaration
public Task<ExperimentDetailResponse> GetExperimentAsync(string experimentId, CancellationToken cancellationToken = default)
Parameters
Returns
GetGenerationTiersAsync(CancellationToken)
Lists the media-generation quality tiers and the model and cost each resolves to. Global routing and pricing; read-only.
Declaration
public Task<GenerationTierListResponse> GetGenerationTiersAsync(CancellationToken cancellationToken = default)
Parameters
Returns
GetModelAsync(string, CancellationToken)
Retrieves full details for a specific model.
Declaration
public Task<PromptModelResponse> GetModelAsync(string modelId, CancellationToken cancellationToken = default)
Parameters
Returns
GetModelRecommendationsAsync(string, CancellationToken)
Retrieves recommendations for a model.
Declaration
public Task<ModelRecommendationsResponse> GetModelRecommendationsAsync(string modelId, CancellationToken cancellationToken = default)
Parameters
Returns
GetUnreadModelAlertCountAsync(CancellationToken)
Retrieves the count of unread model alerts.
Declaration
public Task<UnreadCountResponse> GetUnreadModelAlertCountAsync(CancellationToken cancellationToken = default)
Parameters
Returns
ListAlertConfigsAsync(int?, int?, CancellationToken)
Lists alert configurations.
Declaration
public Task<AlertConfigListResponse> ListAlertConfigsAsync(int? page = null, int? limit = null, CancellationToken cancellationToken = default)
Parameters
Returns
ListAlertsAsync(int?, int?, string?, string?, CancellationToken)
Declaration
public Task<AlertListResponse> ListAlertsAsync(int? page = null, int? limit = null, string? status = null, string? severity = null, CancellationToken cancellationToken = default)
Parameters
Returns
ListExperimentsAsync(int?, string?, string?, int?, int?, CancellationToken)
Lists model playground experiments.
Declaration
public Task<ExperimentListResponse> ListExperimentsAsync(int? days = null, string? startDate = null, string? endDate = null, int? limit = null, int? offset = null, CancellationToken cancellationToken = default)
Parameters
Returns
ListModelAlertsAsync(int?, int?, CancellationToken)
Declaration
public Task<ModelAlertListResponse> ListModelAlertsAsync(int? page = null, int? limit = null, CancellationToken cancellationToken = default)
Parameters
Returns
ListModelsAsync(string?, bool?, bool?, CancellationToken)
Lists all enabled LLM models grouped by provider.
Declaration
public Task<List<ProviderGroupResponse>> ListModelsAsync(string? provider = null, bool? supportsToolUse = null, bool? supportsThinking = null, CancellationToken cancellationToken = default)
Parameters
Returns
SearchAsync(string?, int?, string?, CancellationToken)
Performs a general search across resources.
Declaration
public Task<SearchResponse> SearchAsync(string? query = null, int? limit = null, string? entityType = null, CancellationToken cancellationToken = default)
Parameters
Returns
SearchDocsAsync(string, string?, int?, CancellationToken)
Searches the Seclai documentation by content. Mode is keyword (default) or semantic. Results are global, not account-scoped.
Declaration
public Task<DocsSearchResponse> SearchDocsAsync(string query, string? mode = null, int? limit = null, CancellationToken cancellationToken = default)
Parameters
Returns
SubscribeToAlertAsync(string, CancellationToken)
Declaration
public Task<AlertDetailResponse> SubscribeToAlertAsync(string alertId, CancellationToken cancellationToken = default)
Parameters
Returns
UnsubscribeFromAlertAsync(string, CancellationToken)
Unsubscribes from an alert.
Declaration
public Task<AlertDetailResponse> UnsubscribeFromAlertAsync(string alertId, CancellationToken cancellationToken = default)
Parameters
Returns