Skip to content

Commit a385e44

Browse files
authored
Merge pull request #240 from DeepLcom/aj/AE-412-limits
AE-412: Add speech-to-text usage limit to API Key Schema
2 parents 2f9382c + c542e4e commit a385e44

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

api-reference/openapi.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ paths:
354354
$ref: '#/components/schemas/ApiKeyId'
355355
characters:
356356
$ref: '#/components/schemas/ApiKeyUsageCharacters'
357+
speech_to_text_milliseconds:
358+
$ref: '#/components/schemas/ApiKeyUsageSpeechToTextMilliseconds'
357359
responses:
358360
200:
359361
description: The set usage limits function returns a JSON representation of the modified API key.
@@ -2298,6 +2300,13 @@ components:
22982300
Setting the limit to `null` disables the limit, effectively allowing unlimited usage.
22992301
type: number
23002302
example: 5000
2303+
ApiKeyUsageSpeechToTextMilliseconds:
2304+
description: |
2305+
Restricts the number of milliseconds of speech-to-text that can be consumed by an API key in a one-month usage period.
2306+
Setting the limit to `0` means the API key will not be able to consume speech-to-text milliseconds.
2307+
Setting the limit to `null` disables the limit, effectively allowing unlimited usage.
2308+
type: number
2309+
example: 3600000
23012310
ApiKey:
23022311
description: The API key.
23032312
type: object
@@ -2324,6 +2333,8 @@ components:
23242333
properties:
23252334
characters:
23262335
$ref: '#/components/schemas/ApiKeyUsageCharacters'
2336+
speech_to_text_milliseconds:
2337+
$ref: '#/components/schemas/ApiKeyUsageSpeechToTextMilliseconds'
23272338
ConfiguredRules:
23282339
description: The enabled rules for the style rule list including what option
23292340
was selected for each rule. This schema combines rules from all supported

0 commit comments

Comments
 (0)