terse-types 0.1.5 → 0.1.7

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.
package/dist/types.js CHANGED
@@ -533,11 +533,20 @@ export const sdkInputRequestTargetSchema = z.discriminatedUnion("provider", [
533
533
  })
534
534
  ]);
535
535
  export const sdkInputResponseTransportSchema = z.enum(["suspend", "poll"]).default("suspend");
536
+ const inputRequestMediaFields = {
537
+ url: z.string().min(1).max(3000),
538
+ altText: z.string().max(2000).optional()
539
+ };
540
+ export const sdkInputRequestMediaSchema = z.discriminatedUnion("kind", [
541
+ z.object({ kind: z.literal("image"), ...inputRequestMediaFields }),
542
+ z.object({ kind: z.literal("video"), ...inputRequestMediaFields })
543
+ ]);
536
544
  export const sdkInputRequestRegisterBodySchema = z.object({
537
545
  token: z.string().min(1),
538
546
  runId: z.string().min(1),
539
547
  prompt: z.string().min(1),
540
548
  details: z.record(z.string(), z.string()).optional(),
549
+ media: z.array(sdkInputRequestMediaSchema).max(10).optional(),
541
550
  options: z.array(sdkInputRequestOptionSchema).min(1),
542
551
  via: sdkInputRequestTargetSchema,
543
552
  transport: sdkInputResponseTransportSchema
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",
6
6
  "main": "./dist/index.js",