@sixb/server 0.1.22 → 0.1.24

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.
@@ -1,7 +1,20 @@
1
- import type { ZodTypeDef } from "zod";
1
+ import type { DocumentDecoration } from "elysia";
2
+ import type { ZodTypeAny, ZodTypeDef } from "zod";
2
3
  import { type OverrideCallback } from "zod-to-json-schema";
3
4
  /** The server's override: JSON values as one open schema, and the named schemas by reference. */
4
5
  export declare function openApiOverride(except?: ZodTypeDef): OverrideCallback;
6
+ /** A route's schema as the spec shows it. */
7
+ export declare function openApiJsonSchema(schema: ZodTypeAny): object & {
8
+ $schema?: string | undefined;
9
+ definitions?: {
10
+ [key: string]: object;
11
+ } | undefined;
12
+ };
13
+ type RequestBody = Extract<NonNullable<DocumentDecoration["requestBody"]>, {
14
+ content: unknown;
15
+ }>;
16
+ /** The documented JSON body of a route that reads its body itself, instead of through Elysia. */
17
+ export declare function jsonRequestBody(schema: ZodTypeAny): RequestBody;
5
18
  /** The named schemas, each referencing the others it holds. */
6
19
  export declare const NamedOpenApiSchemas: {
7
20
  [k: string]: object & {
@@ -11,4 +24,5 @@ export declare const NamedOpenApiSchemas: {
11
24
  } | undefined;
12
25
  };
13
26
  };
27
+ export {};
14
28
  //# sourceMappingURL=components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/openapi/components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,UAAU,EAAE,MAAM,KAAK,CAAA;AACjD,OAAO,EAGL,KAAK,gBAAgB,EAEtB,MAAM,oBAAoB,CAAA;AAwB3B,iGAAiG;AACjG,wBAAgB,eAAe,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,gBAAgB,CAUrE;AAED,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB;;;;;;;CAS/B,CAAA"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/openapi/components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AACjD,OAAO,EAGL,KAAK,gBAAgB,EAEtB,MAAM,oBAAoB,CAAA;AAwB3B,iGAAiG;AACjG,wBAAgB,eAAe,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,gBAAgB,CAUrE;AAED,6CAA6C;AAC7C,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU;;;;;EAMnD;AAED,KAAK,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAAA;AAGhG,iGAAiG;AACjG,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,WAAW,CAI/D;AAED,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB;;;;;;;CAS/B,CAAA"}
@@ -304,20 +304,7 @@ export declare function registerModelGenerationRoutes(app: Elysia, host: SixbHos
304
304
  audio: {
305
305
  transcriptions: {
306
306
  post: {
307
- body: {
308
- audio: {
309
- blobId: string;
310
- digest: string;
311
- sizeBytes: number;
312
- fileName?: string | undefined;
313
- mediaType?: string | undefined;
314
- logicalPath?: string | undefined;
315
- };
316
- model?: {
317
- modelId: string;
318
- provider: string;
319
- } | undefined;
320
- };
307
+ body: unknown;
321
308
  params: {};
322
309
  query: unknown;
323
310
  headers: unknown;
@@ -369,6 +356,9 @@ export declare function registerModelGenerationRoutes(app: Elysia, host: SixbHos
369
356
  code: "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
370
357
  details?: import("../schemas/common").JsonValue | undefined;
371
358
  };
359
+ 413: {
360
+ error: string;
361
+ };
372
362
  422: {
373
363
  type: "validation";
374
364
  on: string;
@@ -1 +1 @@
1
- {"version":3,"file":"model-generations.d.ts","sourceRoot":"","sources":["../../src/routes/model-generations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA2C,YAAY,EAAE,MAAM,YAAY,CAAA;AAUvF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAiHpC;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoH5E"}
1
+ {"version":3,"file":"model-generations.d.ts","sourceRoot":"","sources":["../../src/routes/model-generations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsD,YAAY,EAAE,MAAM,YAAY,CAAA;AAUlG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAsJpC;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgI5E"}
@@ -25,6 +25,9 @@ export declare function registerModelRoutes(app: Elysia, host: SixbHostView): El
25
25
  headers: unknown;
26
26
  response: {
27
27
  200: {
28
+ capabilities: {
29
+ run: boolean;
30
+ };
28
31
  image: {
29
32
  name: string;
30
33
  modelId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/routes/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,YAAY,EAAE,MAAM,YAAY,CAAA;AAQlE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA2FpC,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDlE"}
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/routes/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,YAAY,EAAE,MAAM,YAAY,CAAA;AAQlE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA4FpC,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDlE"}
@@ -7461,7 +7461,18 @@ export declare const ModelCatalogSchema: z.ZodObject<{
7461
7461
  mediaTypes?: string[] | undefined;
7462
7462
  }[];
7463
7463
  }>;
7464
+ capabilities: z.ZodObject<{
7465
+ /** The requester may call these models, through the generation routes or the agent's chat. */
7466
+ run: z.ZodBoolean;
7467
+ }, "strip", z.ZodTypeAny, {
7468
+ run: boolean;
7469
+ }, {
7470
+ run: boolean;
7471
+ }>;
7464
7472
  }, "strip", z.ZodTypeAny, {
7473
+ capabilities: {
7474
+ run: boolean;
7475
+ };
7465
7476
  image: {
7466
7477
  name: string;
7467
7478
  modelId: string;
@@ -7919,6 +7930,9 @@ export declare const ModelCatalogSchema: z.ZodObject<{
7919
7930
  }[];
7920
7931
  languageRouting?: boolean | undefined;
7921
7932
  }, {
7933
+ capabilities: {
7934
+ run: boolean;
7935
+ };
7922
7936
  image: {
7923
7937
  name: string;
7924
7938
  modelId: string;
@@ -8932,6 +8946,17 @@ export declare const FileGenerationSchema: z.ZodObject<{
8932
8946
  };
8933
8947
  warnings: string[];
8934
8948
  }>;
8949
+ /** Audio sent with the request, base64-encoded: it reaches the model without being stored. */
8950
+ export declare const InlineAudioSchema: z.ZodObject<{
8951
+ data: z.ZodEffects<z.ZodString, string, string>;
8952
+ mediaType: z.ZodString;
8953
+ }, "strip", z.ZodTypeAny, {
8954
+ mediaType: string;
8955
+ data: string;
8956
+ }, {
8957
+ mediaType: string;
8958
+ data: string;
8959
+ }>;
8935
8960
  export declare const TranscriptionBodySchema: z.ZodObject<{
8936
8961
  /** Omit for the kind's default model. */
8937
8962
  model: z.ZodOptional<z.ZodObject<{
@@ -8945,8 +8970,8 @@ export declare const TranscriptionBodySchema: z.ZodObject<{
8945
8970
  provider: string;
8946
8971
  }>>;
8947
8972
  } & {
8948
- /** Audio uploaded through /api/files. */
8949
- audio: z.ZodObject<{
8973
+ /** Audio uploaded through /api/files, or sent inline, such as a dictation. */
8974
+ audio: z.ZodUnion<[z.ZodObject<{
8950
8975
  blobId: z.ZodString;
8951
8976
  digest: z.ZodString;
8952
8977
  sizeBytes: z.ZodNumber;
@@ -8967,7 +8992,16 @@ export declare const TranscriptionBodySchema: z.ZodObject<{
8967
8992
  fileName?: string | undefined;
8968
8993
  mediaType?: string | undefined;
8969
8994
  logicalPath?: string | undefined;
8970
- }>;
8995
+ }>, z.ZodObject<{
8996
+ data: z.ZodEffects<z.ZodString, string, string>;
8997
+ mediaType: z.ZodString;
8998
+ }, "strip", z.ZodTypeAny, {
8999
+ mediaType: string;
9000
+ data: string;
9001
+ }, {
9002
+ mediaType: string;
9003
+ data: string;
9004
+ }>]>;
8971
9005
  }, "strip", z.ZodTypeAny, {
8972
9006
  audio: {
8973
9007
  blobId: string;
@@ -8976,6 +9010,9 @@ export declare const TranscriptionBodySchema: z.ZodObject<{
8976
9010
  fileName?: string | undefined;
8977
9011
  mediaType?: string | undefined;
8978
9012
  logicalPath?: string | undefined;
9013
+ } | {
9014
+ mediaType: string;
9015
+ data: string;
8979
9016
  };
8980
9017
  model?: {
8981
9018
  modelId: string;
@@ -8989,6 +9026,9 @@ export declare const TranscriptionBodySchema: z.ZodObject<{
8989
9026
  fileName?: string | undefined;
8990
9027
  mediaType?: string | undefined;
8991
9028
  logicalPath?: string | undefined;
9029
+ } | {
9030
+ mediaType: string;
9031
+ data: string;
8992
9032
  };
8993
9033
  model?: {
8994
9034
  modelId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/schemas/models.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAA;AAkCF,uEAAuE;AACvE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAyB;IAC7D,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAuB;IAC5D,OAAO,CAAC,GAAG,CAAuB;IAClC,OAAO,CAAC,SAAS,CAA4C;IAC7D,OAAO,CAAC,WAAW,CAAyC;gBAEhD,OAAO,EAAE,iBAAiB;IAqBtC,OAAO,IAAI,YAAY;IAIvB,0FAA0F;IAC1F,OAAO,IAAI,MAAM;IAIjB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,kBAAkB;IAIxD,0BAA0B,CACxB,OAAO,EAAE,UAAU,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,EAClD,KAAK,EAAE,UAAU,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,GAC/C,UAAU,CAAC,0BAA0B,CAAC;IAIzC,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM;IAIlD,gCAAgC,CAC9B,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,2BAA2B,GACjC,6BAA6B;IAIhC,mBAAmB,IAAI,4BAA4B;IAInD,iBAAiB,IAAI,yBAAyB,GAAG,SAAS;IAI1D,sBAAsB,IAAI,uBAAuB;IAI3C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAyCtB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAe5B;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2O/C;AAqED,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sixb/server",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "description": "HTTP and WebSocket API server for Sixb",
5
5
  "keywords": [
6
6
  "sixb",
@@ -38,14 +38,14 @@
38
38
  "zod-to-json-schema": "^3.24.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@sixb/core": "0.1.22"
41
+ "@sixb/core": "0.1.24"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@sixb/auth-magic-link": "0.1.7",
45
45
  "@sixb/auth-oidc": "0.1.7",
46
46
  "@sixb/cli-core": "0.1.9",
47
- "@sixb/core": "0.1.22",
48
- "@sixb/sqlite": "0.1.22",
47
+ "@sixb/core": "0.1.24",
48
+ "@sixb/sqlite": "0.1.24",
49
49
  "@types/bun": "latest",
50
50
  "typescript": "^5.7.0"
51
51
  },
@@ -1,3 +1,4 @@
1
+ import type { DocumentDecoration } from "elysia"
1
2
  import type { ZodTypeAny, ZodTypeDef } from "zod"
2
3
  import {
3
4
  ignoreOverride,
@@ -41,6 +42,25 @@ export function openApiOverride(except?: ZodTypeDef): OverrideCallback {
41
42
  }
42
43
  }
43
44
 
45
+ /** A route's schema as the spec shows it. */
46
+ export function openApiJsonSchema(schema: ZodTypeAny) {
47
+ return zodToJsonSchema(schema, {
48
+ $refStrategy: "none",
49
+ target: "openApi3",
50
+ override: openApiOverride(),
51
+ })
52
+ }
53
+
54
+ type RequestBody = Extract<NonNullable<DocumentDecoration["requestBody"]>, { content: unknown }>
55
+ type OpenApiSchema = RequestBody["content"][string]["schema"]
56
+
57
+ /** The documented JSON body of a route that reads its body itself, instead of through Elysia. */
58
+ export function jsonRequestBody(schema: ZodTypeAny): RequestBody {
59
+ // The openApi3 target emits OpenAPI 3.0, which zod-to-json-schema still types as JSON Schema 7.
60
+ const jsonSchema = openApiJsonSchema(schema) as OpenApiSchema
61
+ return { required: true, content: { "application/json": { schema: jsonSchema } } }
62
+ }
63
+
44
64
  /** The named schemas, each referencing the others it holds. */
45
65
  export const NamedOpenApiSchemas = Object.fromEntries(
46
66
  NAMED.map(([name, schema]) => [
@@ -1,4 +1,4 @@
1
- import type { LanguageModelCatalog, LanguageModelTier, SixbHostView } from "@sixb/core"
1
+ import type { AudioData, LanguageModelCatalog, LanguageModelTier, SixbHostView } from "@sixb/core"
2
2
  import type { FileRef } from "@sixb/core/blob-storage/server"
3
3
  import { selectLanguageModel } from "@sixb/core/internal/model-execution"
4
4
  import {
@@ -9,8 +9,10 @@ import {
9
9
  type ModelUsage,
10
10
  } from "@sixb/core/models"
11
11
  import type { Elysia } from "elysia"
12
+ import type { z } from "zod"
12
13
  import { accessTokenSecurityRequirement } from "../auth/access-token-boundary"
13
14
  import { requireRequestSixb } from "../auth/scope"
15
+ import { jsonRequestBody } from "../openapi/components"
14
16
  import { OPENAPI_TAGS } from "../openapi/tags"
15
17
  import { AiUsageLimitErrorResponseSchema, ErrorResponseSchema } from "../schemas/common"
16
18
  import {
@@ -23,6 +25,8 @@ import {
23
25
  TranscriptionSchema,
24
26
  } from "../schemas/models"
25
27
  import { handleRouteError } from "../utils/http"
28
+ import { readRequestBodyWithLimit } from "../utils/request-body"
29
+ import { DEFAULT_SIMPLE_FILE_UPLOAD_BODY_BYTES } from "./files"
26
30
 
27
31
  type ModelKind = "language" | "image" | "speech" | "transcription"
28
32
 
@@ -104,6 +108,39 @@ function generationError(error: unknown, set: { status?: number | string }) {
104
108
  return handleRouteError(error, set)
105
109
  }
106
110
 
111
+ /** Allows what a file upload may carry, so minutes of base64 dictation pass the 1 MB default. */
112
+ async function readTranscriptionBody(request: Request): Promise<TranscriptionBody> {
113
+ const bytes = await readRequestBodyWithLimit(request, DEFAULT_SIMPLE_FILE_UPLOAD_BODY_BYTES)
114
+
115
+ let json: unknown
116
+ try {
117
+ json = JSON.parse(new TextDecoder().decode(bytes))
118
+ } catch {
119
+ throw new TypeError("[SixbServer] Transcription request body must be JSON.")
120
+ }
121
+
122
+ const parsed = TranscriptionBodySchema.safeParse(json)
123
+ if (!parsed.success) {
124
+ const [issue] = parsed.error.issues
125
+ throw new TypeError(
126
+ `[SixbServer] Invalid transcription request: ${issue?.path.join(".") || "body"}: ${issue?.message}`
127
+ )
128
+ }
129
+
130
+ return parsed.data
131
+ }
132
+
133
+ /** Inline audio reaches the model as bytes and is never stored; a FileRef is read from storage. */
134
+ function transcriptionAudio(audio: TranscriptionBody["audio"]): FileRef | AudioData {
135
+ if ("data" in audio) {
136
+ return { data: Buffer.from(audio.data, "base64"), mediaType: audio.mediaType }
137
+ }
138
+
139
+ return audio as FileRef
140
+ }
141
+
142
+ type TranscriptionBody = z.infer<typeof TranscriptionBodySchema>
143
+
107
144
  const responses = {
108
145
  400: ErrorResponseSchema,
109
146
  403: ErrorResponseSchema,
@@ -222,12 +259,19 @@ export function registerModelGenerationRoutes(app: Elysia, host: SixbHostView) {
222
259
  .post(
223
260
  "/api/models/audio/transcriptions",
224
261
  async (context) => {
225
- const { body, request, set } = context
262
+ const { request, set } = context
226
263
  try {
227
264
  const sixb = requireRequestSixb(context)
265
+ // Refuse before reading what may be minutes of audio, not after.
266
+ if (!sixb.models.canRun()) {
267
+ set.status = 403
268
+ return { error: "[SixbServer] Transcribing audio requires can.run(project.models)." }
269
+ }
270
+
271
+ const body = await readTranscriptionBody(request)
228
272
  const entry = selectBinding(catalog()?.audio?.transcription, "transcription", body.model)
229
273
  const call = await sixb.models.audio.transcribe({
230
- audio: body.audio as FileRef,
274
+ audio: transcriptionAudio(body.audio),
231
275
  model: entry.model,
232
276
  signal: request.signal,
233
277
  })
@@ -237,9 +281,14 @@ export function registerModelGenerationRoutes(app: Elysia, host: SixbHostView) {
237
281
  }
238
282
  },
239
283
  {
240
- body: TranscriptionBodySchema,
241
- response: { 200: TranscriptionSchema, ...responses },
242
- detail: detail("transcribeAudio", "Transcribe audio with a transcription model"),
284
+ // Inline audio passes the server's default body cap, so the handler reads the body itself,
285
+ // once the caller is known.
286
+ parse: "none",
287
+ response: { 200: TranscriptionSchema, 413: ErrorResponseSchema, ...responses },
288
+ detail: {
289
+ ...detail("transcribeAudio", "Transcribe audio with a transcription model"),
290
+ requestBody: jsonRequestBody(TranscriptionBodySchema),
291
+ },
243
292
  }
244
293
  )
245
294
  }
@@ -8,6 +8,7 @@ import type {
8
8
  } from "@sixb/core/models"
9
9
  import type { Elysia } from "elysia"
10
10
  import { accessTokenSecurityRequirement } from "../auth/access-token-boundary"
11
+ import { requireRequestSixb } from "../auth/scope"
11
12
  import { languageModelDisplay, rateCardDisplay, resolvedForDisplay } from "../models/display"
12
13
  import { OPENAPI_TAGS } from "../openapi/tags"
13
14
  import { ModelCatalogSchema } from "../schemas/models"
@@ -100,7 +101,7 @@ async function serializeTranscriptionModel(
100
101
  export function registerModelRoutes(app: Elysia, host: SixbHostView) {
101
102
  return app.get(
102
103
  "/api/models",
103
- async () => {
104
+ async (context) => {
104
105
  const models = host.definitions.models
105
106
  const language = models?.language
106
107
  const image = models?.image
@@ -134,6 +135,7 @@ export function registerModelRoutes(app: Elysia, host: SixbHostView) {
134
135
  )
135
136
  : [],
136
137
  },
138
+ capabilities: { run: requireRequestSixb(context).models.canRun() },
137
139
  })
138
140
  },
139
141
  {
@@ -138,6 +138,10 @@ export const ModelCatalogSchema = z.object({
138
138
  speech: z.array(SpeechModelSchema),
139
139
  transcription: z.array(TranscriptionModelSchema),
140
140
  }),
141
+ capabilities: z.object({
142
+ /** The requester may call these models, through the generation routes or the agent's chat. */
143
+ run: z.boolean(),
144
+ }),
141
145
  })
142
146
 
143
147
  export const ModelReasoningLevelSchema = z.enum(MODEL_REASONING_LEVELS)
@@ -231,9 +235,22 @@ export const FileGenerationSchema = GenerationResultBase.extend({
231
235
  warnings: z.array(z.string()),
232
236
  })
233
237
 
238
+ // One character class and no group: zod's base64() backtracks, and refused minutes of audio.
239
+ const BASE64_PATTERN = /^[A-Za-z0-9+/]*={0,2}$/
240
+
241
+ /** Audio sent with the request, base64-encoded: it reaches the model without being stored. */
242
+ export const InlineAudioSchema = z.object({
243
+ data: z
244
+ .string()
245
+ .min(1)
246
+ .regex(BASE64_PATTERN, "Invalid base64")
247
+ .refine((data) => data.length % 4 === 0, "Invalid base64"),
248
+ mediaType: z.string().min(1),
249
+ })
250
+
234
251
  export const TranscriptionBodySchema = GenerationBodyBase.extend({
235
- /** Audio uploaded through /api/files. */
236
- audio: FileRefSchema,
252
+ /** Audio uploaded through /api/files, or sent inline, such as a dictation. */
253
+ audio: z.union([FileRefSchema, InlineAudioSchema]),
237
254
  })
238
255
 
239
256
  export const TranscriptionSchema = GenerationResultBase.extend({
package/src/server.ts CHANGED
@@ -10,7 +10,6 @@ import { checkPipelineMarkings, warmAppliedMarkings } from "@sixb/core/internal/
10
10
  import type { Server } from "bun"
11
11
  import { Elysia, ParseError } from "elysia"
12
12
  import { websocket as elysiaWebSocket } from "elysia/ws"
13
- import { zodToJsonSchema } from "zod-to-json-schema"
14
13
  import {
15
14
  type AuthInvitationRedirectContext,
16
15
  type AuthInvitationRedirectInput,
@@ -42,7 +41,7 @@ import {
42
41
  SharedAccessBoundary,
43
42
  type SixbSharedAccessOptions,
44
43
  } from "./auth/shared-access"
45
- import { NamedOpenApiSchemas, openApiOverride } from "./openapi/components"
44
+ import { NamedOpenApiSchemas, openApiJsonSchema } from "./openapi/components"
46
45
  import {
47
46
  SIXB_ACCESS_TOKEN_SECURITY_SCHEME,
48
47
  SIXB_ACCESS_TOKEN_SECURITY_SCHEME_ID,
@@ -406,7 +405,7 @@ export function createSixbApi(server: SixbServer) {
406
405
  openapi({
407
406
  path: "/docs",
408
407
  provider: "swagger-ui",
409
- // zodToJsonSchema below emits OpenAPI 3.0 nullable schemas.
408
+ // openApiJsonSchema below emits OpenAPI 3.0 nullable schemas.
410
409
  openapiVersion: "3.0.3",
411
410
  documentation: {
412
411
  info: {
@@ -431,12 +430,7 @@ export function createSixbApi(server: SixbServer) {
431
430
  withCredentials: true,
432
431
  },
433
432
  mapJsonSchema: {
434
- zod: (schema: Parameters<typeof zodToJsonSchema>[0]) =>
435
- zodToJsonSchema(schema, {
436
- $refStrategy: "none",
437
- target: "openApi3",
438
- override: openApiOverride(),
439
- }),
433
+ zod: openApiJsonSchema,
440
434
  },
441
435
  })
442
436
  )