From 4e7e9aba7abf0d5d76510c3a2c28c83bd3ac56c9 Mon Sep 17 00:00:00 2001 From: dvonthenen Date: Sun, 4 Feb 2024 11:31:12 -0800 Subject: [PATCH] Audit of Manage Model Classes --- Deepgram/Models/Manage/v1/BalanceResponse.cs | 8 +-- Deepgram/Models/Manage/v1/Callback.cs | 9 ++++ Deepgram/Models/Manage/v1/Config.cs | 40 ++++++++------- Deepgram/Models/Manage/v1/Details.cs | 12 ++--- Deepgram/Models/Manage/v1/Invite.cs | 6 +++ Deepgram/Models/Manage/v1/InviteSchema.cs | 4 +- Deepgram/Models/Manage/v1/Key.cs | 16 ++++-- Deepgram/Models/Manage/v1/KeyResponse.cs | 25 +-------- Deepgram/Models/Manage/v1/KeySchema.cs | 6 +-- Deepgram/Models/Manage/v1/Member.cs | 8 ++- .../Models/Manage/v1/MemberScopeSchema.cs | 2 +- Deepgram/Models/Manage/v1/MembersResponse.cs | 4 +- Deepgram/Models/Manage/v1/MessageResponse.cs | 2 +- .../Manage/v1/{UsageModel.cs => Model.cs} | 14 ++++- Deepgram/Models/Manage/v1/Project.cs | 7 ++- Deepgram/Models/Manage/v1/ProjectResponse.cs | 20 +------- Deepgram/Models/Manage/v1/ProjectSchema.cs | 1 - Deepgram/Models/Manage/v1/ProjectsResponse.cs | 6 ++- Deepgram/Models/Manage/v1/Resolution.cs | 1 - Deepgram/Models/Manage/v1/Response.cs | 14 ++++- .../Manage/v1/{UsageSummary.cs => Result.cs} | 16 ++++-- Deepgram/Models/Manage/v1/Token.cs | 16 ++++++ Deepgram/Models/Manage/v1/TokenDetails.cs | 28 ++++++++++ .../Models/Manage/v1/UsageFieldsResponse.cs | 2 +- .../Models/Manage/v1/UsageFieldsSchema.cs | 1 + .../Models/Manage/v1/UsageRequestResponse.cs | 12 +++++ .../Models/Manage/v1/UsageRequestsResponse.cs | 9 ++++ .../Models/Manage/v1/UsageRequestsSchema.cs | 9 +++- .../Models/Manage/v1/UsageSummarySchema.cs | 51 +++++++++++++++++-- 29 files changed, 244 insertions(+), 105 deletions(-) rename Deepgram/Models/Manage/v1/{UsageModel.cs => Model.cs} (61%) rename Deepgram/Models/Manage/v1/{UsageSummary.cs => Result.cs} (66%) create mode 100644 Deepgram/Models/Manage/v1/Token.cs create mode 100644 Deepgram/Models/Manage/v1/TokenDetails.cs diff --git a/Deepgram/Models/Manage/v1/BalanceResponse.cs b/Deepgram/Models/Manage/v1/BalanceResponse.cs index 6d64a052..459bc0d0 100644 --- a/Deepgram/Models/Manage/v1/BalanceResponse.cs +++ b/Deepgram/Models/Manage/v1/BalanceResponse.cs @@ -6,23 +6,23 @@ public record BalanceResponse /// Balance id /// [JsonPropertyName("balance_id")] - public string BalanceId { get; set; } + public string? BalanceId { get; set; } /// /// Balance amount /// [JsonPropertyName("amount")] - public int Amount { get; set; } + public decimal? Amount { get; set; } /// /// Units of the balance. May use usd or hour, depending on the project billing settings /// [JsonPropertyName("units")] - public string Units { get; set; } + public string? Units { get; set; } /// /// Unique identifier of the purchase order associated with the balance /// [JsonPropertyName("purchase")] - public string Purchase { get; set; } + public string? Purchase { get; set; } } diff --git a/Deepgram/Models/Manage/v1/Callback.cs b/Deepgram/Models/Manage/v1/Callback.cs index 4cf7174a..c84c7477 100644 --- a/Deepgram/Models/Manage/v1/Callback.cs +++ b/Deepgram/Models/Manage/v1/Callback.cs @@ -2,12 +2,21 @@ public record Callback { + /// + /// TODO + /// [JsonPropertyName("attempts")] public int? Attempts { get; set; } + /// + /// TODO + /// [JsonPropertyName("code")] public int? Code { get; set; } + /// + /// TODO + /// [JsonPropertyName("completed")] public string? Completed { get; set; } } diff --git a/Deepgram/Models/Manage/v1/Config.cs b/Deepgram/Models/Manage/v1/Config.cs index c073bcf3..5fae55f0 100644 --- a/Deepgram/Models/Manage/v1/Config.cs +++ b/Deepgram/Models/Manage/v1/Config.cs @@ -8,9 +8,18 @@ public record Config [JsonPropertyName("alternatives")] public int? Alternatives { get; set; } + /// + /// TODO + /// [JsonPropertyName("callback")] public string? Callback { get; set; } + /// + /// Indicates whether topic detection was requested. + /// + [JsonPropertyName("detect_topics")] + public bool? DetectTopics { get; set; } + /// /// Indicates whether diarization was requested. /// @@ -23,6 +32,12 @@ public record Config [JsonPropertyName("keywords")] public IReadOnlyList? Keywords { get; set; } + /// + /// Indicates whether InterimResults was associated with the request. + /// + [JsonPropertyName("interim_results")] + public bool? InterimResults { get; set; } + /// /// Language associated with the request. /// @@ -41,18 +56,6 @@ public record Config [JsonPropertyName("multichannel")] public bool? Multichannel { get; set; } - /// - /// Indicates whether named-entity recognition (NER) was requested. - /// - [JsonPropertyName("ner")] - public bool? Ner { get; set; } - - /// - /// Indicates whether numeral conversion was requested. - /// - [JsonPropertyName("numerals")] - public bool? Numerals { get; set; } - /// /// Indicates whether filtering profanity was requested. /// @@ -79,10 +82,10 @@ public record Config public IReadOnlyList? Search { get; set; } /// - /// Indicates whether utterance segmentation was requested. + /// Indicates whether SmartFormat was associated with the request. /// - [JsonPropertyName("utterances")] - public bool? Utterances { get; set; } + [JsonPropertyName("smart_format")] + public bool? SmartFormat { get; set; } /// /// ReadOnlyList of translations associated with the request. @@ -91,9 +94,8 @@ public record Config public IReadOnlyList? Translation { get; set; } /// - /// Indicates whether topic detection was requested. + /// Indicates whether utterance segmentation was requested. /// - [JsonPropertyName("detect_topics")] - public bool? DetectTopics { get; set; } - + [JsonPropertyName("utterances")] + public bool? Utterances { get; set; } } diff --git a/Deepgram/Models/Manage/v1/Details.cs b/Deepgram/Models/Manage/v1/Details.cs index d95f3f0d..b70074e2 100644 --- a/Deepgram/Models/Manage/v1/Details.cs +++ b/Deepgram/Models/Manage/v1/Details.cs @@ -12,7 +12,7 @@ public record Details /// Length of time (in hours) of audio processed in the request. /// [JsonPropertyName("duration")] - public decimal? Duration { get; set; } + public double? Duration { get; set; } /// /// Number of audio files processed in the request. @@ -36,29 +36,29 @@ public record Details /// Model applied when running the request. /// [JsonPropertyName("models")] - public IReadOnlyList Models { get; set; } + public IReadOnlyList? Models { get; set; } /// /// Processing method used when running the request. /// [JsonPropertyName("method")] - public string Method { get; set; } + public string? Method { get; set; } /// /// List of tags applied when running the request. /// [JsonPropertyName("tags")] - public IReadOnlyList Tags { get; set; } + public IReadOnlyList? Tags { get; set; } /// /// List of features used when running the request. /// [JsonPropertyName("features")] - public IReadOnlyList Features { get; set; } + public IReadOnlyList? Features { get; set; } /// /// Configuration used when running the request. /// [JsonPropertyName("config")] - public Config Config { get; set; } + public Config? Config { get; set; } } diff --git a/Deepgram/Models/Manage/v1/Invite.cs b/Deepgram/Models/Manage/v1/Invite.cs index 258be334..5dbec078 100644 --- a/Deepgram/Models/Manage/v1/Invite.cs +++ b/Deepgram/Models/Manage/v1/Invite.cs @@ -2,9 +2,15 @@ public record Invite { + /// + /// TODO + /// [JsonPropertyName("email")] public string? Email { get; set; } + /// + /// TODO + /// [JsonPropertyName("scope")] public string? Scope { get; set; } } diff --git a/Deepgram/Models/Manage/v1/InviteSchema.cs b/Deepgram/Models/Manage/v1/InviteSchema.cs index c1e018cf..e8a174ec 100644 --- a/Deepgram/Models/Manage/v1/InviteSchema.cs +++ b/Deepgram/Models/Manage/v1/InviteSchema.cs @@ -5,12 +5,12 @@ public class InviteSchema(string email, string scope) /// email of the person being invited /// [JsonPropertyName("email")] - public string Email { get; set; } = email; + public string? Email { get; set; } = email; /// /// scopes to add for the invited person /// [JsonPropertyName("scope")] - public string Scope { get; set; } = scope; + public string? Scope { get; set; } = scope; } diff --git a/Deepgram/Models/Manage/v1/Key.cs b/Deepgram/Models/Manage/v1/Key.cs index 447845f4..9cd450c3 100644 --- a/Deepgram/Models/Manage/v1/Key.cs +++ b/Deepgram/Models/Manage/v1/Key.cs @@ -14,12 +14,22 @@ public record Key [JsonPropertyName("comment")] public string? Comment { get; set; } + /// + /// TODO + /// [JsonPropertyName("scopes")] public IReadOnlyList? Scopes { get; set; } + /// + /// TODO + /// + [JsonPropertyName("created")] + public DateTime? Created { get; set; } + + /// + /// TODO + /// [JsonPropertyName("tags")] public IReadOnlyList? Tags { get; set; } - - [JsonPropertyName("created")] - public string? Created { get; set; } } + diff --git a/Deepgram/Models/Manage/v1/KeyResponse.cs b/Deepgram/Models/Manage/v1/KeyResponse.cs index 4368416d..7b7103b3 100644 --- a/Deepgram/Models/Manage/v1/KeyResponse.cs +++ b/Deepgram/Models/Manage/v1/KeyResponse.cs @@ -1,29 +1,6 @@ namespace Deepgram.Models.Manage.v1; -public record KeyResponse +public record KeyResponse : Key { - /// - /// Unique identifier of the Deepgram API key - /// - [JsonPropertyName("api_key_id")] - public string ApiKeyId { get; set; } - - [JsonPropertyName("key")] - public string Key { get; set; } - - /// - /// Comment for the Deepgram API key - /// - [JsonPropertyName("comment")] - public string Comment { get; set; } - - [JsonPropertyName("scopes")] - public IReadOnlyList Scopes { get; set; } - - [JsonPropertyName("tags")] - public IReadOnlyList Tags { get; set; } - - [JsonPropertyName("created")] - public DateTime Created { get; set; } } diff --git a/Deepgram/Models/Manage/v1/KeySchema.cs b/Deepgram/Models/Manage/v1/KeySchema.cs index 3c57e2bf..fde9a305 100644 --- a/Deepgram/Models/Manage/v1/KeySchema.cs +++ b/Deepgram/Models/Manage/v1/KeySchema.cs @@ -6,13 +6,13 @@ public class KeySchema(string comment, List scopes) /// Comment to describe key /// [JsonPropertyName("comment")] - public string Comment { get; set; } = comment; + public string? Comment { get; set; } = comment; /// /// Scopes of the key /// [JsonPropertyName("scopes")] - public List Scopes { get; set; } = scopes; + public List? Scopes { get; set; } = scopes; /// /// Tag names for key @@ -32,6 +32,4 @@ public class KeySchema(string comment, List scopes) /// [JsonPropertyName("time_to_live_in_seconds")] public int? TimeToLiveInSeconds { get; set; } - - } diff --git a/Deepgram/Models/Manage/v1/Member.cs b/Deepgram/Models/Manage/v1/Member.cs index c312b393..31a09e29 100644 --- a/Deepgram/Models/Manage/v1/Member.cs +++ b/Deepgram/Models/Manage/v1/Member.cs @@ -24,7 +24,11 @@ public record Member /// Email address of member /// [JsonPropertyName("email")] - public string? Email { get; set; } = string.Empty; - + public string? Email { get; set; } + /// + /// Scopes of the key + /// + [JsonPropertyName("scopes")] + public List? Scopes { get; set; } } diff --git a/Deepgram/Models/Manage/v1/MemberScopeSchema.cs b/Deepgram/Models/Manage/v1/MemberScopeSchema.cs index f231ee18..792d231e 100644 --- a/Deepgram/Models/Manage/v1/MemberScopeSchema.cs +++ b/Deepgram/Models/Manage/v1/MemberScopeSchema.cs @@ -5,5 +5,5 @@ public class MemberScopeSchema(string scope) /// Scope to add for member /// [JsonPropertyName("scope")] - public string Scope { get; set; } = scope; + public string? Scope { get; set; } = scope; } diff --git a/Deepgram/Models/Manage/v1/MembersResponse.cs b/Deepgram/Models/Manage/v1/MembersResponse.cs index da005cb5..aef55847 100644 --- a/Deepgram/Models/Manage/v1/MembersResponse.cs +++ b/Deepgram/Models/Manage/v1/MembersResponse.cs @@ -2,7 +2,9 @@ public record MembersResponse { + /// + /// TODO + /// [JsonPropertyName("members")] public IReadOnlyList? Members { get; set; } } - diff --git a/Deepgram/Models/Manage/v1/MessageResponse.cs b/Deepgram/Models/Manage/v1/MessageResponse.cs index fdcd3153..9cfbef29 100644 --- a/Deepgram/Models/Manage/v1/MessageResponse.cs +++ b/Deepgram/Models/Manage/v1/MessageResponse.cs @@ -6,5 +6,5 @@ public record MessageResponse /// A message denoting the success of the operation /// [JsonPropertyName("message")] - public string Message { get; set; } + public string? Message { get; set; } } diff --git a/Deepgram/Models/Manage/v1/UsageModel.cs b/Deepgram/Models/Manage/v1/Model.cs similarity index 61% rename from Deepgram/Models/Manage/v1/UsageModel.cs rename to Deepgram/Models/Manage/v1/Model.cs index 9046adff..fb92ba53 100644 --- a/Deepgram/Models/Manage/v1/UsageModel.cs +++ b/Deepgram/Models/Manage/v1/Model.cs @@ -1,16 +1,28 @@ namespace Deepgram.Models.Manage.v1; -public record UsageModel +public record Model { + /// + /// TODO + /// [JsonPropertyName("name")] public string? Name { get; set; } + /// + /// TODO + /// [JsonPropertyName("language")] public string? Language { get; set; } + /// + /// TODO + /// [JsonPropertyName("version")] public string? Version { get; set; } + /// + /// TODO + /// [JsonPropertyName("model_id")] public string? ModelId { get; set; } } diff --git a/Deepgram/Models/Manage/v1/Project.cs b/Deepgram/Models/Manage/v1/Project.cs index 22c0227b..6479ff75 100644 --- a/Deepgram/Models/Manage/v1/Project.cs +++ b/Deepgram/Models/Manage/v1/Project.cs @@ -13,5 +13,10 @@ public record Project /// [JsonPropertyName("name")] public string? Name { get; set; } -} + /// + /// Name of the company + /// + [JsonPropertyName("company")] + public string? Company { get; set; } +} diff --git a/Deepgram/Models/Manage/v1/ProjectResponse.cs b/Deepgram/Models/Manage/v1/ProjectResponse.cs index aa91115e..774789ae 100644 --- a/Deepgram/Models/Manage/v1/ProjectResponse.cs +++ b/Deepgram/Models/Manage/v1/ProjectResponse.cs @@ -1,21 +1,5 @@ namespace Deepgram.Models.Manage.v1; -public record ProjectResponse -{ - /// - /// Unique identifier of the Deepgram project - /// - [JsonPropertyName("project_id")] - public string? ProjectId { get; set; } - - /// - /// Name of the Deepgram project - /// - [JsonPropertyName("name")] - public string? Name { get; set; } - /// - /// Name of the company associated with the Deepgram project - /// - [JsonPropertyName("company")] - public string? Company { get; set; } +public record ProjectResponse : Project +{ } diff --git a/Deepgram/Models/Manage/v1/ProjectSchema.cs b/Deepgram/Models/Manage/v1/ProjectSchema.cs index 7b6da5f9..325f7d7a 100644 --- a/Deepgram/Models/Manage/v1/ProjectSchema.cs +++ b/Deepgram/Models/Manage/v1/ProjectSchema.cs @@ -13,4 +13,3 @@ public class ProjectSchema [JsonPropertyName("company")] public string? Company { get; set; } } - diff --git a/Deepgram/Models/Manage/v1/ProjectsResponse.cs b/Deepgram/Models/Manage/v1/ProjectsResponse.cs index 00cb7669..6561d043 100644 --- a/Deepgram/Models/Manage/v1/ProjectsResponse.cs +++ b/Deepgram/Models/Manage/v1/ProjectsResponse.cs @@ -1,7 +1,9 @@ namespace Deepgram.Models.Manage.v1; public record ProjectsResponse { + /// + /// List of Projects + /// [JsonPropertyName("projects")] - public IReadOnlyList? Projects { get; set; } - + public IReadOnlyList? Projects { get; set; } } diff --git a/Deepgram/Models/Manage/v1/Resolution.cs b/Deepgram/Models/Manage/v1/Resolution.cs index 1b2a32b1..82ff0c26 100644 --- a/Deepgram/Models/Manage/v1/Resolution.cs +++ b/Deepgram/Models/Manage/v1/Resolution.cs @@ -14,4 +14,3 @@ public record Resolution [JsonPropertyName("amount")] public int? Amount { get; set; } } - diff --git a/Deepgram/Models/Manage/v1/Response.cs b/Deepgram/Models/Manage/v1/Response.cs index 397841b0..33824456 100644 --- a/Deepgram/Models/Manage/v1/Response.cs +++ b/Deepgram/Models/Manage/v1/Response.cs @@ -8,9 +8,21 @@ public record Response [JsonPropertyName("details")] public Details? Details { get; set; } + /// + /// TODO + /// [JsonPropertyName("code")] public int? Code { get; set; } + /// + /// TODO + /// [JsonPropertyName("completed")] - public string Completed { get; set; } + public string? Completed { get; set; } + + /// + /// TODO + /// + [JsonPropertyName("token_details")] + public List? TokenDetails { get; set; } } diff --git a/Deepgram/Models/Manage/v1/UsageSummary.cs b/Deepgram/Models/Manage/v1/Result.cs similarity index 66% rename from Deepgram/Models/Manage/v1/UsageSummary.cs rename to Deepgram/Models/Manage/v1/Result.cs index f01e021e..a01676d4 100644 --- a/Deepgram/Models/Manage/v1/UsageSummary.cs +++ b/Deepgram/Models/Manage/v1/Result.cs @@ -6,30 +6,36 @@ public record UsageSummary /// Start date for included requests. /// [JsonPropertyName("start")] - public DateTime StartDateTime { get; set; } + public DateTime? StartDateTime { get; set; } /// /// End date for included requests. /// [JsonPropertyName("end")] - public DateTime EndDateTime { get; set; } + public DateTime? EndDateTime { get; set; } /// /// Length of time (in hours) of audio submitted in included requests. /// [JsonPropertyName("hours")] - public decimal Hours { get; set; } + public double? Hours { get; set; } /// /// Length of time (in hours) of audio processed in included requests. /// [JsonPropertyName("total_hours")] - public decimal TotalHours { get; set; } + public double? TotalHours { get; set; } /// /// Number of included requests. /// [JsonPropertyName("requests")] - public int Requests { get; set; } + public int? Requests { get; set; } + + /// + /// Token information + /// + [JsonPropertyName("tokens")] + public Token? Tokens { get; set; } } diff --git a/Deepgram/Models/Manage/v1/Token.cs b/Deepgram/Models/Manage/v1/Token.cs new file mode 100644 index 00000000..9df64942 --- /dev/null +++ b/Deepgram/Models/Manage/v1/Token.cs @@ -0,0 +1,16 @@ +namespace Deepgram.Models.Manage.v1; + +public record Token +{ + /// + /// TODO + /// + [JsonPropertyName("in")] + public int? In { get; set; } + + /// + /// TODO + /// + [JsonPropertyName("out")] + public int? Out { get; set; } +} diff --git a/Deepgram/Models/Manage/v1/TokenDetails.cs b/Deepgram/Models/Manage/v1/TokenDetails.cs new file mode 100644 index 00000000..d712fc75 --- /dev/null +++ b/Deepgram/Models/Manage/v1/TokenDetails.cs @@ -0,0 +1,28 @@ +namespace Deepgram.Models.Manage.v1; + +public record TokenDetails +{ + /// + /// TODO + /// + [JsonPropertyName("feature")] + public string? Feature { get; set; } + + /// + /// TODO + /// + [JsonPropertyName("input")] + public int? Input { get; set; } + + /// + /// TODO + /// + [JsonPropertyName("output")] + public int? Output { get; set; } + + /// + /// TODO + /// + [JsonPropertyName("model")] + public string? Model { get; set; } +} diff --git a/Deepgram/Models/Manage/v1/UsageFieldsResponse.cs b/Deepgram/Models/Manage/v1/UsageFieldsResponse.cs index c34a4bc6..9caa9027 100644 --- a/Deepgram/Models/Manage/v1/UsageFieldsResponse.cs +++ b/Deepgram/Models/Manage/v1/UsageFieldsResponse.cs @@ -11,7 +11,7 @@ public record UsageFieldsResponse /// ReadOnlyList of /// [JsonPropertyName("models")] - public IReadOnlyList? Models { get; set; } + public IReadOnlyList? Models { get; set; } /// /// ReadOnlyList of diff --git a/Deepgram/Models/Manage/v1/UsageFieldsSchema.cs b/Deepgram/Models/Manage/v1/UsageFieldsSchema.cs index 849b259b..9a1da483 100644 --- a/Deepgram/Models/Manage/v1/UsageFieldsSchema.cs +++ b/Deepgram/Models/Manage/v1/UsageFieldsSchema.cs @@ -1,4 +1,5 @@ namespace Deepgram.Models.Manage.v1; + public class UsageFieldsSchema { /// diff --git a/Deepgram/Models/Manage/v1/UsageRequestResponse.cs b/Deepgram/Models/Manage/v1/UsageRequestResponse.cs index 7b33da70..87c90e3b 100644 --- a/Deepgram/Models/Manage/v1/UsageRequestResponse.cs +++ b/Deepgram/Models/Manage/v1/UsageRequestResponse.cs @@ -8,6 +8,12 @@ public record UsageRequestResponse [JsonPropertyName("request_id")] public string? RequestId { get; set; } + /// + /// UUID of the project. + /// + [JsonPropertyName("project_uuid")] + public string? ProjectUUID { get; set; } + /// /// Date/time when request was created. /// @@ -20,6 +26,12 @@ public record UsageRequestResponse [JsonPropertyName("path")] public string? Path { get; set; } + /// + /// TODO + /// + [JsonPropertyName("accessor")] + public string? Accessor { get; set; } + /// /// Identifier of the API Key with which the request was submitted. /// diff --git a/Deepgram/Models/Manage/v1/UsageRequestsResponse.cs b/Deepgram/Models/Manage/v1/UsageRequestsResponse.cs index a06f23e9..03297a1b 100644 --- a/Deepgram/Models/Manage/v1/UsageRequestsResponse.cs +++ b/Deepgram/Models/Manage/v1/UsageRequestsResponse.cs @@ -1,12 +1,21 @@ namespace Deepgram.Models.Manage.v1; public record UsageRequestsResponse { + /// + /// TODO + /// [JsonPropertyName("page")] public int? Page { get; set; } + /// + /// TODO + /// [JsonPropertyName("limit")] public int? Limit { get; set; } + /// + /// TODO + /// [JsonPropertyName("requests")] public IReadOnlyList? Requests { get; set; } } diff --git a/Deepgram/Models/Manage/v1/UsageRequestsSchema.cs b/Deepgram/Models/Manage/v1/UsageRequestsSchema.cs index 5dd13af1..7f88d6e8 100644 --- a/Deepgram/Models/Manage/v1/UsageRequestsSchema.cs +++ b/Deepgram/Models/Manage/v1/UsageRequestsSchema.cs @@ -14,11 +14,16 @@ public class UsageRequestsSchema public DateTime? End { get; set; } /// - /// Number of results to return per page. Default 10. Range [1,100]. + /// TODO /// + [JsonPropertyName("page")] + public int? Page { get; set; } + /// + /// Number of results to return per page. Default 10. Range [1,100]. + /// [JsonPropertyName("limit")] - public int Limit { get; set; } = 10; + public int? Limit { get; set; } = 10; /// /// Status of requests to return. Enables you to filter requests depending on whether they have succeeded or failed. If not specified, returns requests with all statuses. diff --git a/Deepgram/Models/Manage/v1/UsageSummarySchema.cs b/Deepgram/Models/Manage/v1/UsageSummarySchema.cs index 83c3b127..82587356 100644 --- a/Deepgram/Models/Manage/v1/UsageSummarySchema.cs +++ b/Deepgram/Models/Manage/v1/UsageSummarySchema.cs @@ -17,8 +17,8 @@ public class UsageSummarySchema /// Limits results to requests fulfilled in either Deepgram hosted cloud or your onprem deployment environment. /// multiple deployments can be included in list /// - [JsonPropertyName("deployment")] - public List? Deployment { get; set; } + [JsonPropertyName("detect_entities")] + public bool? DetectEntities { get; set; } /// /// Limits results to requests that include the topic detection feature. @@ -62,7 +62,7 @@ public class UsageSummarySchema /// Limits results to requests run with the specified model UUID applied. /// [JsonPropertyName("model")] - public List Model { get; set; } + public List? Model { get; set; } /// /// Limits results to requests that include the multichannel feature. @@ -82,13 +82,24 @@ public class UsageSummarySchema [JsonPropertyName("numerals")] public bool? Numerals { get; set; } + /// + /// TODO + /// + [JsonPropertyName("numbers")] + public bool? Numbers { get; set; } + + /// + /// TODO + /// + [JsonPropertyName("paragraphs")] + public bool? Paragraphs { get; set; } + /// /// Limits results to requests that include the profanity_filter feature. /// [JsonPropertyName("profanity_filter")] public bool? ProfanityFilter { get; set; } - /// /// Limits results to requests that include the punctuate feature. /// @@ -114,7 +125,20 @@ public class UsageSummarySchema public bool? Search { get; set; } /// - /// + /// TODO + /// + [JsonPropertyName("sentiment")] + public bool? Sentiment { get; set; } + + /// + /// Limits results to requests that include the search feature. + /// + [JsonPropertyName("sentiment_threshold")] + public double? SentimentThreshold { get; set; } + + + /// + /// TODO /// [JsonPropertyName("smart_format")] public bool? SmartFormat { get; set; } @@ -125,16 +149,33 @@ public class UsageSummarySchema [JsonPropertyName("start")] public DateTime? Start { get; set; } + /// + /// TODO + /// + [JsonPropertyName("summarize")] + public bool? Summarize { get; set; } + /// /// List of Tags, Limits results to requests associated with the specified tag(s). /// [JsonPropertyName("tag")] public List? Tag { get; set; } + /// + /// TODO + /// + [JsonPropertyName("translate")] + public bool? translate { get; set; } + /// /// Limits results to requests that include the utterances feature. /// [JsonPropertyName("utterances")] public bool? Utterances { get; set; } + /// + /// TODO + /// + [JsonPropertyName("utt_split")] + public bool? UttSplit { get; set; } }