@unieai/rabi-experimental-api-speech-to-text 0.2.1-rc.3 → 0.2.2-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,11 +13,11 @@ const _unieai_rabi_experimental_api_speech_to_text_speech_catalog_result$schema
13
13
  'maxDurationSeconds': z.number().readonly(),
14
14
  'providers': z.array(z.object({
15
15
  'preparation': z.union([z.object({
16
- 'phase': z.union([z.literal("cancelled"), z.literal("ready"), z.literal("unprepared"), z.literal("standby")]).readonly(),
16
+ 'phase': z.union([z.literal("ready"), z.literal("cancelled"), z.literal("unprepared"), z.literal("standby")]).readonly(),
17
17
  'step': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly().optional(),
18
18
  'steps': z.array(z.object({
19
19
  'kind': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly(),
20
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("complete")]).readonly(),
20
+ 'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("complete"), z.literal("cancelled")]).readonly(),
21
21
  'startedAt': z.number().readonly().optional(),
22
22
  })).readonly().optional(),
23
23
  }), z.object({
@@ -28,7 +28,7 @@ const _unieai_rabi_experimental_api_speech_to_text_speech_catalog_result$schema
28
28
  'step': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly().optional(),
29
29
  'steps': z.array(z.object({
30
30
  'kind': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly(),
31
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("complete")]).readonly(),
31
+ 'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("complete"), z.literal("cancelled")]).readonly(),
32
32
  'startedAt': z.number().readonly().optional(),
33
33
  })).readonly().optional(),
34
34
  }), z.object({
@@ -37,7 +37,7 @@ const _unieai_rabi_experimental_api_speech_to_text_speech_catalog_result$schema
37
37
  'step': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly().optional(),
38
38
  'steps': z.array(z.object({
39
39
  'kind': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly(),
40
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("complete")]).readonly(),
40
+ 'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("complete"), z.literal("cancelled")]).readonly(),
41
41
  'startedAt': z.number().readonly().optional(),
42
42
  })).readonly().optional(),
43
43
  }), z.object({
@@ -46,14 +46,14 @@ const _unieai_rabi_experimental_api_speech_to_text_speech_catalog_result$schema
46
46
  'download': z.object({
47
47
  'resource': z.string().readonly(),
48
48
  'source': z.string().readonly(),
49
- 'reason': z.union([z.literal("network"), z.literal("storage"), z.literal("unknown"), z.literal("dns"), z.literal("timeout"), z.literal("certificate"), z.literal("http"), z.literal("integrity")]).readonly(),
49
+ 'reason': z.union([z.literal("unknown"), z.literal("timeout"), z.literal("network"), z.literal("storage"), z.literal("dns"), z.literal("certificate"), z.literal("http"), z.literal("integrity")]).readonly(),
50
50
  'code': z.string().readonly().optional(),
51
51
  'status': z.number().readonly().optional(),
52
52
  }).readonly().optional(),
53
53
  'step': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly().optional(),
54
54
  'steps': z.array(z.object({
55
55
  'kind': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly(),
56
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("complete")]).readonly(),
56
+ 'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("complete"), z.literal("cancelled")]).readonly(),
57
57
  'startedAt': z.number().readonly().optional(),
58
58
  })).readonly().optional(),
59
59
  })]).readonly(),
@@ -87,11 +87,11 @@ const _unieai_rabi_experimental_api_speech_to_text_speech_follow_result$schema =
87
87
  'maxDurationSeconds': z.number().readonly(),
88
88
  'providers': z.array(z.object({
89
89
  'preparation': z.union([z.object({
90
- 'phase': z.union([z.literal("cancelled"), z.literal("ready"), z.literal("unprepared"), z.literal("standby")]).readonly(),
90
+ 'phase': z.union([z.literal("ready"), z.literal("cancelled"), z.literal("unprepared"), z.literal("standby")]).readonly(),
91
91
  'step': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly().optional(),
92
92
  'steps': z.array(z.object({
93
93
  'kind': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly(),
94
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("complete")]).readonly(),
94
+ 'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("complete"), z.literal("cancelled")]).readonly(),
95
95
  'startedAt': z.number().readonly().optional(),
96
96
  })).readonly().optional(),
97
97
  }), z.object({
@@ -102,7 +102,7 @@ const _unieai_rabi_experimental_api_speech_to_text_speech_follow_result$schema =
102
102
  'step': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly().optional(),
103
103
  'steps': z.array(z.object({
104
104
  'kind': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly(),
105
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("complete")]).readonly(),
105
+ 'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("complete"), z.literal("cancelled")]).readonly(),
106
106
  'startedAt': z.number().readonly().optional(),
107
107
  })).readonly().optional(),
108
108
  }), z.object({
@@ -111,7 +111,7 @@ const _unieai_rabi_experimental_api_speech_to_text_speech_follow_result$schema =
111
111
  'step': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly().optional(),
112
112
  'steps': z.array(z.object({
113
113
  'kind': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly(),
114
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("complete")]).readonly(),
114
+ 'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("complete"), z.literal("cancelled")]).readonly(),
115
115
  'startedAt': z.number().readonly().optional(),
116
116
  })).readonly().optional(),
117
117
  }), z.object({
@@ -120,14 +120,14 @@ const _unieai_rabi_experimental_api_speech_to_text_speech_follow_result$schema =
120
120
  'download': z.object({
121
121
  'resource': z.string().readonly(),
122
122
  'source': z.string().readonly(),
123
- 'reason': z.union([z.literal("network"), z.literal("storage"), z.literal("unknown"), z.literal("dns"), z.literal("timeout"), z.literal("certificate"), z.literal("http"), z.literal("integrity")]).readonly(),
123
+ 'reason': z.union([z.literal("unknown"), z.literal("timeout"), z.literal("network"), z.literal("storage"), z.literal("dns"), z.literal("certificate"), z.literal("http"), z.literal("integrity")]).readonly(),
124
124
  'code': z.string().readonly().optional(),
125
125
  'status': z.number().readonly().optional(),
126
126
  }).readonly().optional(),
127
127
  'step': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly().optional(),
128
128
  'steps': z.array(z.object({
129
129
  'kind': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly(),
130
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("complete")]).readonly(),
130
+ 'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("complete"), z.literal("cancelled")]).readonly(),
131
131
  'startedAt': z.number().readonly().optional(),
132
132
  })).readonly().optional(),
133
133
  })]).readonly(),
@@ -234,7 +234,7 @@ const $remote = createTypertRemoteInfo({
234
234
  typeSymbol: '@unieai/rabi-experimental-api-speech-to-text/types#SpeechCatalog',
235
235
  create: _unieai_rabi_experimental_api_speech_to_text_speech_catalog_result$schema,
236
236
  description: 'available providers, resolved default, and recording limits.',
237
- jsonSchema: {"type":"object","properties":{"maxAudioBytes":{"type":"number"},"maxDurationSeconds":{"type":"number"},"providers":{"type":"array","items":{"type":"object","properties":{"preparation":{"oneOf":[{"type":"object","properties":{"phase":{"type":"string","enum":["cancelled","ready","unprepared","standby"]},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["cancelled","failed","running","pending","complete"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","const":"downloading"},"resource":{"type":"string"},"completedBytes":{"type":"number"},"totalBytes":{"type":"number"},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["cancelled","failed","running","pending","complete"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","resource","completedBytes"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","enum":["checking","loading","waking","cancelling"]},"startedAt":{"type":"number"},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["cancelled","failed","running","pending","complete"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","startedAt"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","const":"failed"},"message":{"type":"string"},"download":{"type":"object","properties":{"resource":{"type":"string"},"source":{"type":"string"},"reason":{"type":"string","enum":["network","storage","unknown","dns","timeout","certificate","http","integrity"]},"code":{"type":"string"},"status":{"type":"number"}},"required":["resource","source","reason"],"additionalProperties":true},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["cancelled","failed","running","pending","complete"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","message"],"additionalProperties":true}]},"id":{"type":"string"},"name":{"type":"string"},"location":{"type":"string","enum":["host-local","cloud"]},"languages":{"type":"array","items":{"type":"string"},"description":"Accepted language hints, including automatic detection when supported."},"setupEstimate":{"type":"object","properties":{"recommendedDiskBytes":{"type":"number"},"expectedMemoryBytes":{"type":"number"},"minimumMinutes":{"type":"number"},"maximumMinutes":{"type":"number"}},"required":["recommendedDiskBytes","expectedMemoryBytes","minimumMinutes","maximumMinutes"],"additionalProperties":true},"downloadSources":{"type":"array","items":{"type":"string"},"description":"Origins offered for an explicit preparation download; omitted or empty when no choice applies."}},"required":["preparation","id","name","location","languages"],"additionalProperties":true}},"selection":{"type":"object","properties":{"providerId":{"type":"string"},"language":{"type":"string"}},"required":["providerId","language"],"additionalProperties":true}},"required":["maxAudioBytes","maxDurationSeconds","providers","selection"],"additionalProperties":true},
237
+ jsonSchema: {"type":"object","properties":{"maxAudioBytes":{"type":"number"},"maxDurationSeconds":{"type":"number"},"providers":{"type":"array","items":{"type":"object","properties":{"preparation":{"oneOf":[{"type":"object","properties":{"phase":{"type":"string","enum":["ready","cancelled","unprepared","standby"]},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["running","failed","pending","complete","cancelled"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","const":"downloading"},"resource":{"type":"string"},"completedBytes":{"type":"number"},"totalBytes":{"type":"number"},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["running","failed","pending","complete","cancelled"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","resource","completedBytes"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","enum":["checking","loading","waking","cancelling"]},"startedAt":{"type":"number"},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["running","failed","pending","complete","cancelled"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","startedAt"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","const":"failed"},"message":{"type":"string"},"download":{"type":"object","properties":{"resource":{"type":"string"},"source":{"type":"string"},"reason":{"type":"string","enum":["unknown","timeout","network","storage","dns","certificate","http","integrity"]},"code":{"type":"string"},"status":{"type":"number"}},"required":["resource","source","reason"],"additionalProperties":true},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["running","failed","pending","complete","cancelled"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","message"],"additionalProperties":true}]},"id":{"type":"string"},"name":{"type":"string"},"location":{"type":"string","enum":["host-local","cloud"]},"languages":{"type":"array","items":{"type":"string"},"description":"Accepted language hints, including automatic detection when supported."},"setupEstimate":{"type":"object","properties":{"recommendedDiskBytes":{"type":"number"},"expectedMemoryBytes":{"type":"number"},"minimumMinutes":{"type":"number"},"maximumMinutes":{"type":"number"}},"required":["recommendedDiskBytes","expectedMemoryBytes","minimumMinutes","maximumMinutes"],"additionalProperties":true},"downloadSources":{"type":"array","items":{"type":"string"},"description":"Origins offered for an explicit preparation download; omitted or empty when no choice applies."}},"required":["preparation","id","name","location","languages"],"additionalProperties":true}},"selection":{"type":"object","properties":{"providerId":{"type":"string"},"language":{"type":"string"}},"required":["providerId","language"],"additionalProperties":true}},"required":["maxAudioBytes","maxDurationSeconds","providers","selection"],"additionalProperties":true},
238
238
  },
239
239
  sourceLocation: {"file":"packages/experimental/api-speech-to-text/src/index.ts","line":44,"column":3},
240
240
  },
@@ -283,7 +283,7 @@ const $remote = createTypertRemoteInfo({
283
283
  typeSymbol: '@unieai/rabi-experimental-api-speech-to-text/types#SpeechCatalog',
284
284
  create: _unieai_rabi_experimental_api_speech_to_text_speech_follow_result$schema,
285
285
  description: 'initial and subsequent complete readiness snapshots.',
286
- jsonSchema: {"type":"object","properties":{"maxAudioBytes":{"type":"number"},"maxDurationSeconds":{"type":"number"},"providers":{"type":"array","items":{"type":"object","properties":{"preparation":{"oneOf":[{"type":"object","properties":{"phase":{"type":"string","enum":["cancelled","ready","unprepared","standby"]},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["cancelled","failed","running","pending","complete"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","const":"downloading"},"resource":{"type":"string"},"completedBytes":{"type":"number"},"totalBytes":{"type":"number"},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["cancelled","failed","running","pending","complete"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","resource","completedBytes"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","enum":["checking","loading","waking","cancelling"]},"startedAt":{"type":"number"},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["cancelled","failed","running","pending","complete"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","startedAt"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","const":"failed"},"message":{"type":"string"},"download":{"type":"object","properties":{"resource":{"type":"string"},"source":{"type":"string"},"reason":{"type":"string","enum":["network","storage","unknown","dns","timeout","certificate","http","integrity"]},"code":{"type":"string"},"status":{"type":"number"}},"required":["resource","source","reason"],"additionalProperties":true},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["cancelled","failed","running","pending","complete"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","message"],"additionalProperties":true}]},"id":{"type":"string"},"name":{"type":"string"},"location":{"type":"string","enum":["host-local","cloud"]},"languages":{"type":"array","items":{"type":"string"},"description":"Accepted language hints, including automatic detection when supported."},"setupEstimate":{"type":"object","properties":{"recommendedDiskBytes":{"type":"number"},"expectedMemoryBytes":{"type":"number"},"minimumMinutes":{"type":"number"},"maximumMinutes":{"type":"number"}},"required":["recommendedDiskBytes","expectedMemoryBytes","minimumMinutes","maximumMinutes"],"additionalProperties":true},"downloadSources":{"type":"array","items":{"type":"string"},"description":"Origins offered for an explicit preparation download; omitted or empty when no choice applies."}},"required":["preparation","id","name","location","languages"],"additionalProperties":true}},"selection":{"type":"object","properties":{"providerId":{"type":"string"},"language":{"type":"string"}},"required":["providerId","language"],"additionalProperties":true}},"required":["maxAudioBytes","maxDurationSeconds","providers","selection"],"additionalProperties":true},
286
+ jsonSchema: {"type":"object","properties":{"maxAudioBytes":{"type":"number"},"maxDurationSeconds":{"type":"number"},"providers":{"type":"array","items":{"type":"object","properties":{"preparation":{"oneOf":[{"type":"object","properties":{"phase":{"type":"string","enum":["ready","cancelled","unprepared","standby"]},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["running","failed","pending","complete","cancelled"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","const":"downloading"},"resource":{"type":"string"},"completedBytes":{"type":"number"},"totalBytes":{"type":"number"},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["running","failed","pending","complete","cancelled"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","resource","completedBytes"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","enum":["checking","loading","waking","cancelling"]},"startedAt":{"type":"number"},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["running","failed","pending","complete","cancelled"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","startedAt"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","const":"failed"},"message":{"type":"string"},"download":{"type":"object","properties":{"resource":{"type":"string"},"source":{"type":"string"},"reason":{"type":"string","enum":["unknown","timeout","network","storage","dns","certificate","http","integrity"]},"code":{"type":"string"},"status":{"type":"number"}},"required":["resource","source","reason"],"additionalProperties":true},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["running","failed","pending","complete","cancelled"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","message"],"additionalProperties":true}]},"id":{"type":"string"},"name":{"type":"string"},"location":{"type":"string","enum":["host-local","cloud"]},"languages":{"type":"array","items":{"type":"string"},"description":"Accepted language hints, including automatic detection when supported."},"setupEstimate":{"type":"object","properties":{"recommendedDiskBytes":{"type":"number"},"expectedMemoryBytes":{"type":"number"},"minimumMinutes":{"type":"number"},"maximumMinutes":{"type":"number"}},"required":["recommendedDiskBytes","expectedMemoryBytes","minimumMinutes","maximumMinutes"],"additionalProperties":true},"downloadSources":{"type":"array","items":{"type":"string"},"description":"Origins offered for an explicit preparation download; omitted or empty when no choice applies."}},"required":["preparation","id","name","location","languages"],"additionalProperties":true}},"selection":{"type":"object","properties":{"providerId":{"type":"string"},"language":{"type":"string"}},"required":["providerId","language"],"additionalProperties":true}},"required":["maxAudioBytes","maxDurationSeconds","providers","selection"],"additionalProperties":true},
287
287
  },
288
288
  sourceLocation: {"file":"packages/experimental/api-speech-to-text/src/index.ts","line":54,"column":10},
289
289
  },
@@ -13,11 +13,11 @@ const _unieai_rabi_experimental_api_speech_to_text_speech_catalog_result$schema
13
13
  'maxDurationSeconds': z.number().readonly(),
14
14
  'providers': z.array(z.object({
15
15
  'preparation': z.union([z.object({
16
- 'phase': z.union([z.literal("cancelled"), z.literal("ready"), z.literal("unprepared"), z.literal("standby")]).readonly(),
16
+ 'phase': z.union([z.literal("ready"), z.literal("cancelled"), z.literal("unprepared"), z.literal("standby")]).readonly(),
17
17
  'step': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly().optional(),
18
18
  'steps': z.array(z.object({
19
19
  'kind': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly(),
20
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("complete")]).readonly(),
20
+ 'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("complete"), z.literal("cancelled")]).readonly(),
21
21
  'startedAt': z.number().readonly().optional(),
22
22
  })).readonly().optional(),
23
23
  }), z.object({
@@ -28,7 +28,7 @@ const _unieai_rabi_experimental_api_speech_to_text_speech_catalog_result$schema
28
28
  'step': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly().optional(),
29
29
  'steps': z.array(z.object({
30
30
  'kind': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly(),
31
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("complete")]).readonly(),
31
+ 'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("complete"), z.literal("cancelled")]).readonly(),
32
32
  'startedAt': z.number().readonly().optional(),
33
33
  })).readonly().optional(),
34
34
  }), z.object({
@@ -37,7 +37,7 @@ const _unieai_rabi_experimental_api_speech_to_text_speech_catalog_result$schema
37
37
  'step': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly().optional(),
38
38
  'steps': z.array(z.object({
39
39
  'kind': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly(),
40
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("complete")]).readonly(),
40
+ 'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("complete"), z.literal("cancelled")]).readonly(),
41
41
  'startedAt': z.number().readonly().optional(),
42
42
  })).readonly().optional(),
43
43
  }), z.object({
@@ -46,14 +46,14 @@ const _unieai_rabi_experimental_api_speech_to_text_speech_catalog_result$schema
46
46
  'download': z.object({
47
47
  'resource': z.string().readonly(),
48
48
  'source': z.string().readonly(),
49
- 'reason': z.union([z.literal("network"), z.literal("storage"), z.literal("unknown"), z.literal("dns"), z.literal("timeout"), z.literal("certificate"), z.literal("http"), z.literal("integrity")]).readonly(),
49
+ 'reason': z.union([z.literal("unknown"), z.literal("timeout"), z.literal("network"), z.literal("storage"), z.literal("dns"), z.literal("certificate"), z.literal("http"), z.literal("integrity")]).readonly(),
50
50
  'code': z.string().readonly().optional(),
51
51
  'status': z.number().readonly().optional(),
52
52
  }).readonly().optional(),
53
53
  'step': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly().optional(),
54
54
  'steps': z.array(z.object({
55
55
  'kind': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly(),
56
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("complete")]).readonly(),
56
+ 'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("complete"), z.literal("cancelled")]).readonly(),
57
57
  'startedAt': z.number().readonly().optional(),
58
58
  })).readonly().optional(),
59
59
  })]).readonly(),
@@ -87,11 +87,11 @@ const _unieai_rabi_experimental_api_speech_to_text_speech_follow_result$schema =
87
87
  'maxDurationSeconds': z.number().readonly(),
88
88
  'providers': z.array(z.object({
89
89
  'preparation': z.union([z.object({
90
- 'phase': z.union([z.literal("cancelled"), z.literal("ready"), z.literal("unprepared"), z.literal("standby")]).readonly(),
90
+ 'phase': z.union([z.literal("ready"), z.literal("cancelled"), z.literal("unprepared"), z.literal("standby")]).readonly(),
91
91
  'step': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly().optional(),
92
92
  'steps': z.array(z.object({
93
93
  'kind': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly(),
94
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("complete")]).readonly(),
94
+ 'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("complete"), z.literal("cancelled")]).readonly(),
95
95
  'startedAt': z.number().readonly().optional(),
96
96
  })).readonly().optional(),
97
97
  }), z.object({
@@ -102,7 +102,7 @@ const _unieai_rabi_experimental_api_speech_to_text_speech_follow_result$schema =
102
102
  'step': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly().optional(),
103
103
  'steps': z.array(z.object({
104
104
  'kind': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly(),
105
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("complete")]).readonly(),
105
+ 'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("complete"), z.literal("cancelled")]).readonly(),
106
106
  'startedAt': z.number().readonly().optional(),
107
107
  })).readonly().optional(),
108
108
  }), z.object({
@@ -111,7 +111,7 @@ const _unieai_rabi_experimental_api_speech_to_text_speech_follow_result$schema =
111
111
  'step': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly().optional(),
112
112
  'steps': z.array(z.object({
113
113
  'kind': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly(),
114
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("complete")]).readonly(),
114
+ 'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("complete"), z.literal("cancelled")]).readonly(),
115
115
  'startedAt': z.number().readonly().optional(),
116
116
  })).readonly().optional(),
117
117
  }), z.object({
@@ -120,14 +120,14 @@ const _unieai_rabi_experimental_api_speech_to_text_speech_follow_result$schema =
120
120
  'download': z.object({
121
121
  'resource': z.string().readonly(),
122
122
  'source': z.string().readonly(),
123
- 'reason': z.union([z.literal("network"), z.literal("storage"), z.literal("unknown"), z.literal("dns"), z.literal("timeout"), z.literal("certificate"), z.literal("http"), z.literal("integrity")]).readonly(),
123
+ 'reason': z.union([z.literal("unknown"), z.literal("timeout"), z.literal("network"), z.literal("storage"), z.literal("dns"), z.literal("certificate"), z.literal("http"), z.literal("integrity")]).readonly(),
124
124
  'code': z.string().readonly().optional(),
125
125
  'status': z.number().readonly().optional(),
126
126
  }).readonly().optional(),
127
127
  'step': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly().optional(),
128
128
  'steps': z.array(z.object({
129
129
  'kind': z.union([z.literal("check"), z.literal("model"), z.literal("vad"), z.literal("verify"), z.literal("load")]).readonly(),
130
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("complete")]).readonly(),
130
+ 'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("complete"), z.literal("cancelled")]).readonly(),
131
131
  'startedAt': z.number().readonly().optional(),
132
132
  })).readonly().optional(),
133
133
  })]).readonly(),
@@ -234,7 +234,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
234
234
  typeSymbol: '@unieai/rabi-experimental-api-speech-to-text/types#SpeechCatalog',
235
235
  create: _unieai_rabi_experimental_api_speech_to_text_speech_catalog_result$schema,
236
236
  description: 'available providers, resolved default, and recording limits.',
237
- jsonSchema: {"type":"object","properties":{"maxAudioBytes":{"type":"number"},"maxDurationSeconds":{"type":"number"},"providers":{"type":"array","items":{"type":"object","properties":{"preparation":{"oneOf":[{"type":"object","properties":{"phase":{"type":"string","enum":["cancelled","ready","unprepared","standby"]},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["cancelled","failed","running","pending","complete"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","const":"downloading"},"resource":{"type":"string"},"completedBytes":{"type":"number"},"totalBytes":{"type":"number"},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["cancelled","failed","running","pending","complete"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","resource","completedBytes"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","enum":["checking","loading","waking","cancelling"]},"startedAt":{"type":"number"},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["cancelled","failed","running","pending","complete"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","startedAt"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","const":"failed"},"message":{"type":"string"},"download":{"type":"object","properties":{"resource":{"type":"string"},"source":{"type":"string"},"reason":{"type":"string","enum":["network","storage","unknown","dns","timeout","certificate","http","integrity"]},"code":{"type":"string"},"status":{"type":"number"}},"required":["resource","source","reason"],"additionalProperties":true},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["cancelled","failed","running","pending","complete"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","message"],"additionalProperties":true}]},"id":{"type":"string"},"name":{"type":"string"},"location":{"type":"string","enum":["host-local","cloud"]},"languages":{"type":"array","items":{"type":"string"},"description":"Accepted language hints, including automatic detection when supported."},"setupEstimate":{"type":"object","properties":{"recommendedDiskBytes":{"type":"number"},"expectedMemoryBytes":{"type":"number"},"minimumMinutes":{"type":"number"},"maximumMinutes":{"type":"number"}},"required":["recommendedDiskBytes","expectedMemoryBytes","minimumMinutes","maximumMinutes"],"additionalProperties":true},"downloadSources":{"type":"array","items":{"type":"string"},"description":"Origins offered for an explicit preparation download; omitted or empty when no choice applies."}},"required":["preparation","id","name","location","languages"],"additionalProperties":true}},"selection":{"type":"object","properties":{"providerId":{"type":"string"},"language":{"type":"string"}},"required":["providerId","language"],"additionalProperties":true}},"required":["maxAudioBytes","maxDurationSeconds","providers","selection"],"additionalProperties":true},
237
+ jsonSchema: {"type":"object","properties":{"maxAudioBytes":{"type":"number"},"maxDurationSeconds":{"type":"number"},"providers":{"type":"array","items":{"type":"object","properties":{"preparation":{"oneOf":[{"type":"object","properties":{"phase":{"type":"string","enum":["ready","cancelled","unprepared","standby"]},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["running","failed","pending","complete","cancelled"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","const":"downloading"},"resource":{"type":"string"},"completedBytes":{"type":"number"},"totalBytes":{"type":"number"},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["running","failed","pending","complete","cancelled"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","resource","completedBytes"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","enum":["checking","loading","waking","cancelling"]},"startedAt":{"type":"number"},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["running","failed","pending","complete","cancelled"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","startedAt"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","const":"failed"},"message":{"type":"string"},"download":{"type":"object","properties":{"resource":{"type":"string"},"source":{"type":"string"},"reason":{"type":"string","enum":["unknown","timeout","network","storage","dns","certificate","http","integrity"]},"code":{"type":"string"},"status":{"type":"number"}},"required":["resource","source","reason"],"additionalProperties":true},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["running","failed","pending","complete","cancelled"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","message"],"additionalProperties":true}]},"id":{"type":"string"},"name":{"type":"string"},"location":{"type":"string","enum":["host-local","cloud"]},"languages":{"type":"array","items":{"type":"string"},"description":"Accepted language hints, including automatic detection when supported."},"setupEstimate":{"type":"object","properties":{"recommendedDiskBytes":{"type":"number"},"expectedMemoryBytes":{"type":"number"},"minimumMinutes":{"type":"number"},"maximumMinutes":{"type":"number"}},"required":["recommendedDiskBytes","expectedMemoryBytes","minimumMinutes","maximumMinutes"],"additionalProperties":true},"downloadSources":{"type":"array","items":{"type":"string"},"description":"Origins offered for an explicit preparation download; omitted or empty when no choice applies."}},"required":["preparation","id","name","location","languages"],"additionalProperties":true}},"selection":{"type":"object","properties":{"providerId":{"type":"string"},"language":{"type":"string"}},"required":["providerId","language"],"additionalProperties":true}},"required":["maxAudioBytes","maxDurationSeconds","providers","selection"],"additionalProperties":true},
238
238
  },
239
239
  sourceLocation: {"file":"packages/experimental/api-speech-to-text/src/index.ts","line":44,"column":3},
240
240
  },
@@ -283,7 +283,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
283
283
  typeSymbol: '@unieai/rabi-experimental-api-speech-to-text/types#SpeechCatalog',
284
284
  create: _unieai_rabi_experimental_api_speech_to_text_speech_follow_result$schema,
285
285
  description: 'initial and subsequent complete readiness snapshots.',
286
- jsonSchema: {"type":"object","properties":{"maxAudioBytes":{"type":"number"},"maxDurationSeconds":{"type":"number"},"providers":{"type":"array","items":{"type":"object","properties":{"preparation":{"oneOf":[{"type":"object","properties":{"phase":{"type":"string","enum":["cancelled","ready","unprepared","standby"]},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["cancelled","failed","running","pending","complete"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","const":"downloading"},"resource":{"type":"string"},"completedBytes":{"type":"number"},"totalBytes":{"type":"number"},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["cancelled","failed","running","pending","complete"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","resource","completedBytes"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","enum":["checking","loading","waking","cancelling"]},"startedAt":{"type":"number"},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["cancelled","failed","running","pending","complete"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","startedAt"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","const":"failed"},"message":{"type":"string"},"download":{"type":"object","properties":{"resource":{"type":"string"},"source":{"type":"string"},"reason":{"type":"string","enum":["network","storage","unknown","dns","timeout","certificate","http","integrity"]},"code":{"type":"string"},"status":{"type":"number"}},"required":["resource","source","reason"],"additionalProperties":true},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["cancelled","failed","running","pending","complete"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","message"],"additionalProperties":true}]},"id":{"type":"string"},"name":{"type":"string"},"location":{"type":"string","enum":["host-local","cloud"]},"languages":{"type":"array","items":{"type":"string"},"description":"Accepted language hints, including automatic detection when supported."},"setupEstimate":{"type":"object","properties":{"recommendedDiskBytes":{"type":"number"},"expectedMemoryBytes":{"type":"number"},"minimumMinutes":{"type":"number"},"maximumMinutes":{"type":"number"}},"required":["recommendedDiskBytes","expectedMemoryBytes","minimumMinutes","maximumMinutes"],"additionalProperties":true},"downloadSources":{"type":"array","items":{"type":"string"},"description":"Origins offered for an explicit preparation download; omitted or empty when no choice applies."}},"required":["preparation","id","name","location","languages"],"additionalProperties":true}},"selection":{"type":"object","properties":{"providerId":{"type":"string"},"language":{"type":"string"}},"required":["providerId","language"],"additionalProperties":true}},"required":["maxAudioBytes","maxDurationSeconds","providers","selection"],"additionalProperties":true},
286
+ jsonSchema: {"type":"object","properties":{"maxAudioBytes":{"type":"number"},"maxDurationSeconds":{"type":"number"},"providers":{"type":"array","items":{"type":"object","properties":{"preparation":{"oneOf":[{"type":"object","properties":{"phase":{"type":"string","enum":["ready","cancelled","unprepared","standby"]},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["running","failed","pending","complete","cancelled"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","const":"downloading"},"resource":{"type":"string"},"completedBytes":{"type":"number"},"totalBytes":{"type":"number"},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["running","failed","pending","complete","cancelled"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","resource","completedBytes"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","enum":["checking","loading","waking","cancelling"]},"startedAt":{"type":"number"},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["running","failed","pending","complete","cancelled"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","startedAt"],"additionalProperties":true},{"type":"object","properties":{"phase":{"type":"string","const":"failed"},"message":{"type":"string"},"download":{"type":"object","properties":{"resource":{"type":"string"},"source":{"type":"string"},"reason":{"type":"string","enum":["unknown","timeout","network","storage","dns","certificate","http","integrity"]},"code":{"type":"string"},"status":{"type":"number"}},"required":["resource","source","reason"],"additionalProperties":true},"step":{"type":"string","enum":["check","model","vad","verify","load"]},"steps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["check","model","vad","verify","load"]},"status":{"type":"string","enum":["running","failed","pending","complete","cancelled"]},"startedAt":{"type":"number"}},"required":["kind","status"],"additionalProperties":true}}},"required":["phase","message"],"additionalProperties":true}]},"id":{"type":"string"},"name":{"type":"string"},"location":{"type":"string","enum":["host-local","cloud"]},"languages":{"type":"array","items":{"type":"string"},"description":"Accepted language hints, including automatic detection when supported."},"setupEstimate":{"type":"object","properties":{"recommendedDiskBytes":{"type":"number"},"expectedMemoryBytes":{"type":"number"},"minimumMinutes":{"type":"number"},"maximumMinutes":{"type":"number"}},"required":["recommendedDiskBytes","expectedMemoryBytes","minimumMinutes","maximumMinutes"],"additionalProperties":true},"downloadSources":{"type":"array","items":{"type":"string"},"description":"Origins offered for an explicit preparation download; omitted or empty when no choice applies."}},"required":["preparation","id","name","location","languages"],"additionalProperties":true}},"selection":{"type":"object","properties":{"providerId":{"type":"string"},"language":{"type":"string"}},"required":["providerId","language"],"additionalProperties":true}},"required":["maxAudioBytes","maxDurationSeconds","providers","selection"],"additionalProperties":true},
287
287
  },
288
288
  sourceLocation: {"file":"packages/experimental/api-speech-to-text/src/index.ts","line":54,"column":10},
289
289
  },
package/locale/de.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Sprachtranskription API",
4
+ "description": "Bereitstellung von Sprachtranskriptionen für Browser-Clients."
5
+ }
6
+ }
package/locale/es.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Transcripción de voz API",
4
+ "description": "Proporcionar transcripción de voz para clientes de navegador."
5
+ }
6
+ }
package/locale/fr.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Transcription vocale API",
4
+ "description": "Fournir une transcription vocale pour les clients du navigateur."
5
+ }
6
+ }
package/locale/ja.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "音声文字起こし API",
4
+ "description": "ブラウザ向けの録音文字起こし API を提供します。"
5
+ }
6
+ }
package/locale/pt.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Transcrição de fala API",
4
+ "description": "Fornece transcrição de fala para clientes de navegador."
5
+ }
6
+ }
package/locale/ru.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Транскрипция речи API",
4
+ "description": "Обеспечьте транскрипцию речи для клиентов браузера."
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unieai/rabi-experimental-api-speech-to-text",
3
3
  "description": "Authenticated experimental speech transcription for browser clients",
4
- "version": "0.2.1-rc.3",
4
+ "version": "0.2.2-rc.5",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -34,20 +34,24 @@
34
34
  "lib/index.js",
35
35
  "lib/types/**/*.js",
36
36
  "lib/types/**/*.d.ts",
37
+ "lib/types/**/*.d.ts.map",
38
+ "lib/**/*.js.map",
37
39
  "lib/typert.host.js",
38
40
  "lib/typert.host.d.ts",
39
41
  "lib/typert.remote-client.js",
40
42
  "lib/typert.remote-client.d.ts",
43
+ "lib/typert.remote-client.d.ts.map",
44
+ "src",
41
45
  "README.md"
42
46
  ],
43
47
  "license": "MIT",
44
48
  "dependencies": {
45
- "@unieai/schemastery": "3.18.5",
46
- "zod": "4.4.3"
49
+ "@unieai/schemastery": "3.19.0",
50
+ "zod": "4.6.6"
47
51
  },
48
52
  "peerDependencies": {
49
- "@unieai/cordis": "4.0.5",
50
- "@unieai/rabi-experimental-speech-to-text": "0.2.1-rc.3",
51
- "@unieai/rabi-typert-protocol": "0.2.1-rc.3"
53
+ "@unieai/cordis": "4.1.0",
54
+ "@unieai/rabi-experimental-speech-to-text": "0.2.2-rc.5",
55
+ "@unieai/rabi-typert-protocol": "0.2.2-rc.5"
52
56
  }
53
57
  }
package/src/index.ts ADDED
@@ -0,0 +1,111 @@
1
+ /** Authenticated, cancellation-aware Client access to the speech capability. */
2
+ import { Context } from '@unieai/cordis'
3
+ import z from '@unieai/schemastery'
4
+ import { Remote, RemoteError, TypertRemoteService } from '@unieai/rabi-typert-protocol'
5
+ import type {} from '@unieai/rabi-experimental-speech-to-text'
6
+ import type { SpeechPreparationOptions, SpeechProviderId, SpeechSelectionPatch, Transcript } from '@unieai/rabi-experimental-speech-to-text/types'
7
+ import type { SpeechCatalog, TranscriptionRequest } from './types.ts'
8
+ import { validateWave } from '@unieai/rabi-experimental-speech-to-text/wave'
9
+
10
+ export type * from './types.ts'
11
+
12
+ declare module '@unieai/cordis' {
13
+ interface Context {
14
+ /** Experimental speech Remote controller. */
15
+ speechController: SpeechController
16
+ }
17
+ }
18
+
19
+ /** Limits applied before decoding or calling a provider. */
20
+ export interface Config {
21
+ /** Maximum decoded WAV bytes per request. */
22
+ maxAudioBytes: number
23
+ /** Maximum PCM recording duration in seconds. */
24
+ maxDurationSeconds: number
25
+ }
26
+
27
+ /** Speech calls never activate or submit to an Agent. */
28
+ export default class SpeechController extends TypertRemoteService {
29
+ static inject = ['speechToText', 'typert']
30
+ static Config: z<Config> = z.object({
31
+ maxAudioBytes: z.natural().min(46).default(4 * 1024 * 1024),
32
+ maxDurationSeconds: z.number().min(1).default(120),
33
+ })
34
+
35
+ constructor(ctx: Context, private readonly config: Config) {
36
+ super(ctx, 'speechController', { namespace: 'speech' })
37
+ }
38
+
39
+ /**
40
+ * Read provider choices without preparing a recognizer.
41
+ * @returns available providers, resolved default, and recording limits.
42
+ */
43
+ @Remote
44
+ catalog(): SpeechCatalog {
45
+ return { ...this.ctx.speechToText.snapshot(), ...this.config }
46
+ }
47
+
48
+ /**
49
+ * Follow provider readiness independently of Session and preparation lifetimes.
50
+ * @param signal - Client observation lifetime.
51
+ * @returns initial and subsequent complete readiness snapshots.
52
+ */
53
+ @Remote({ mode: 'stream' })
54
+ async *follow(signal: AbortSignal): AsyncIterable<SpeechCatalog> {
55
+ for await (const snapshot of this.ctx.speechToText.follow(signal)) yield { ...snapshot, ...this.config }
56
+ }
57
+
58
+ /**
59
+ * Persist the user's recognition preferences.
60
+ * @param patch - changed preference fields.
61
+ * @returns after preferences are saved.
62
+ */
63
+ @Remote
64
+ configure(patch: SpeechSelectionPatch): Promise<void> { return this.ctx.speechToText.configure(patch) }
65
+
66
+ /**
67
+ * Start or join one Host-owned preparation task.
68
+ * @param providerId - selected recognizer.
69
+ * @param options - task-local source selection validated by the provider.
70
+ */
71
+ @Remote
72
+ prepare(providerId: SpeechProviderId, options?: SpeechPreparationOptions): void { this.ctx.speechToText.prepare(providerId, options) }
73
+
74
+ /**
75
+ * Explicitly cancel resource preparation.
76
+ * @param providerId - selected recognizer.
77
+ * @returns after the preparation task settles.
78
+ */
79
+ @Remote
80
+ cancelPreparation(providerId: SpeechProviderId): Promise<void> { return this.ctx.speechToText.cancelPreparation(providerId) }
81
+
82
+ /**
83
+ * Validate and transcribe one recording through the explicit provider selection.
84
+ * @param request - canonical WAV encoded as base64, provider id and language hint.
85
+ * @param signal - Client cancellation or Remote contribution disposal.
86
+ * @returns final transcript without adding a Session event.
87
+ */
88
+ @Remote
89
+ async transcribe(request: TranscriptionRequest, signal: AbortSignal): Promise<Transcript> {
90
+ signal.throwIfAborted()
91
+ const encoded = request.audioBase64
92
+ if (encoded.length > Math.ceil(this.config.maxAudioBytes / 3) * 4) {
93
+ throw new RemoteError('speech/invalid-audio', 'Audio is invalid or exceeds the configured byte limit', { reason: 'encoding-or-size' })
94
+ }
95
+ const audio = Buffer.from(encoded, 'base64')
96
+ try {
97
+ if (audio.toString('base64') !== encoded) throw new Error('Audio must use canonical base64 encoding')
98
+ if (audio.length > this.config.maxAudioBytes) throw new Error('Audio exceeds the configured byte limit')
99
+ validateWave(audio, this.config.maxDurationSeconds)
100
+ const spec = this.ctx.speechToText.resolve({ audio,
101
+ ...request.providerId === undefined ? {} : { providerId: request.providerId },
102
+ ...request.language === undefined ? {} : { language: request.language },
103
+ })
104
+ return await this.ctx.speechToText.transcribe(spec, signal)
105
+ } catch (error) {
106
+ signal.throwIfAborted()
107
+ const reason = error instanceof Error ? error.message : String(error)
108
+ throw new RemoteError('speech/transcription-failed', reason, { reason })
109
+ }
110
+ }
111
+ }
package/src/types.ts ADDED
@@ -0,0 +1,25 @@
1
+ /** JSON-safe inputs and results of the experimental speech Remote namespace. */
2
+ import type { SpeechProviderId, SpeechSnapshot } from '@unieai/rabi-experimental-speech-to-text/types'
3
+ import type {} from '@unieai/rabi-typert-protocol'
4
+
5
+ declare module '@unieai/rabi-typert-protocol' {
6
+ interface RemoteErrorDetailsMap {
7
+ /** Audio encoding or intake limits prevented transcription. */
8
+ 'speech/invalid-audio': { readonly reason: string }
9
+ /** The selected provider rejected transcription. */
10
+ 'speech/transcription-failed': { readonly reason: string }
11
+ }
12
+ }
13
+
14
+ /** Complete recording submitted for transcription, separate from Session admission. */
15
+ export interface TranscriptionRequest {
16
+ readonly audioBase64: string
17
+ readonly providerId?: SpeechProviderId
18
+ readonly language?: string
19
+ }
20
+
21
+ /** Current provider choices and audio intake limits. */
22
+ export interface SpeechCatalog extends SpeechSnapshot {
23
+ readonly maxAudioBytes: number
24
+ readonly maxDurationSeconds: number
25
+ }