Skip to content

prepareRequestSchema

const prepareRequestSchema: object

The JSON Schemas those models were generated from, for runtime use.

readonly $id: "https://schemas.inderun.dev/1.0/prepare-request.schema.json"

readonly $schema: "https://json-schema.org/draft/2020-12/schema"

readonly additionalProperties: true

readonly description: "Optional scope for IndeRunApi.prepare (ADR 019). Every field is optional: an empty request covers every registered provider and task. It carries no user content."

readonly properties: object

readonly allowDownload: object

readonly description: "Lets this call start a platform's own download, whatever autoDownload says at registration. Call it from a user's decision. Absent follows autoDownload."

readonly type: "boolean"

readonly locale: object

readonly description: "BCP 47 tag of the language to prepare. Absent lets a speech provider use the device's own language."

readonly minLength: 1

readonly type: "string"

readonly localeMatch: object

readonly description: "How locale compares: 'language' (default) or 'exact'."

readonly enum: readonly ["exact", "language"]

readonly title: "LocaleMatch"

readonly privacy: object

readonly description: "The privacy policy of the runs this precedes."

readonly enum: readonly ["local_required", "local_preferred", "cloud_allowed", "cloud_required"]

readonly requestId: object

readonly description: "Fixes the run id, for correlation."

readonly minLength: 1

readonly type: "string"

readonly tasks: object

readonly description: "Task kinds to prepare. Absent means every task a registered provider can prepare."

readonly items: object

readonly minLength: 1

readonly type: "string"

readonly type: "array"

readonly voice: object

readonly additionalProperties: true

readonly dependentRequired: object

readonly id: readonly ["providerId"]

readonly description: "A voice to prepare, as for a speech request."

readonly properties: object

readonly gender: object

readonly $ref: "provider-dynamic-capabilities.schema.json#/$defs/voiceGender"

readonly id: object

properties.voice.properties.id.description

Section titled “properties.voice.properties.id.description”

readonly description: "A voice id read from listVoices()."

readonly minLength: 1

readonly type: "string"

readonly providerId: object

properties.voice.properties.providerId.description

Section titled “properties.voice.properties.providerId.description”

readonly description: "The provider that listed id."

properties.voice.properties.providerId.minLength

Section titled “properties.voice.properties.providerId.minLength”

readonly minLength: 1

properties.voice.properties.providerId.type

Section titled “properties.voice.properties.providerId.type”

readonly type: "string"

readonly title: "PrepareVoice"

readonly type: "object"

readonly title: "PrepareRequest"

readonly type: "object"