@antiphony/shared 0.4.0 → 0.5.0

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.
@@ -123,9 +123,9 @@ declare const AudioEmbedSchema: z.ZodObject<{
123
123
  mimeType: string;
124
124
  size: number;
125
125
  };
126
+ waveform?: number[] | undefined;
126
127
  durationMs?: number | undefined;
127
128
  alt?: string | undefined;
128
- waveform?: number[] | undefined;
129
129
  }, {
130
130
  $type: "dev.antiphony.embed.audio";
131
131
  audio: {
@@ -136,9 +136,9 @@ declare const AudioEmbedSchema: z.ZodObject<{
136
136
  mimeType: string;
137
137
  size: number;
138
138
  };
139
+ waveform?: number[] | undefined;
139
140
  durationMs?: number | undefined;
140
141
  alt?: string | undefined;
141
- waveform?: number[] | undefined;
142
142
  }>;
143
143
  type AudioEmbed = z.infer<typeof AudioEmbedSchema>;
144
144
  /**
@@ -217,6 +217,18 @@ type TimedTranscript = z.infer<typeof TimedTranscriptSchema>;
217
217
  */
218
218
  declare const AudioEmbedViewSchema: z.ZodObject<{
219
219
  $type: z.ZodLiteral<"dev.antiphony.embed.audio#view">;
220
+ /**
221
+ * `url`, `durationMs` and `waveform` are RESOLVED, not copied: once
222
+ * processing has produced an audio variant they describe that variant
223
+ * rather than the bytes the client uploaded. They always agree with one
224
+ * another — a duration and a set of peaks are only meaningful against the
225
+ * audio `url` actually points at.
226
+ *
227
+ * A client that stored `durationMs` at upload time should therefore expect
228
+ * it to change (trim removes leading/trailing silence), and should render
229
+ * these three as a set rather than caching them independently. The record's
230
+ * originals are immutable and unaffected; this is a read-time resolution.
231
+ */
220
232
  url: z.ZodString;
221
233
  durationMs: z.ZodOptional<z.ZodNumber>;
222
234
  alt: z.ZodOptional<z.ZodString>;
@@ -261,28 +273,36 @@ declare const AudioEmbedViewSchema: z.ZodObject<{
261
273
  text?: string | undefined;
262
274
  }>>;
263
275
  /**
264
- * Per-stage audio-processing status (transcribe / denoise), when the app
265
- * opted into processing on create. Absent otherwise. A `pending` stage
266
- * means the client should poll (or re-render) for the result. When
267
- * `denoise === 'ready'`, `url` above already resolves to the cleaned
268
- * audio variant. See `types/processing.ts`.
276
+ * Per-stage audio-processing status (denoise / trim / transcribe /
277
+ * waveform), when the app opted into processing. Absent otherwise. A
278
+ * `pending` stage means the client should poll (or re-render) for the
279
+ * result including a stage that returns to `pending` after having been
280
+ * `ready`, which is how a recompute surfaces. Once a byte-mutating stage
281
+ * completes, `url`/`durationMs`/`waveform` above already resolve to the
282
+ * processed audio variant. See `types/processing.ts`.
269
283
  */
270
284
  processing: z.ZodOptional<z.ZodObject<{
271
285
  transcribe: z.ZodOptional<z.ZodEnum<["pending", "ready", "failed", "skipped"]>>;
272
286
  denoise: z.ZodOptional<z.ZodEnum<["pending", "ready", "failed", "skipped"]>>;
287
+ trim: z.ZodOptional<z.ZodEnum<["pending", "ready", "failed", "skipped"]>>;
288
+ waveform: z.ZodOptional<z.ZodEnum<["pending", "ready", "failed", "skipped"]>>;
273
289
  }, "strip", z.ZodTypeAny, {
274
- transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
275
290
  denoise?: "pending" | "ready" | "failed" | "skipped" | undefined;
276
- }, {
291
+ trim?: "pending" | "ready" | "failed" | "skipped" | undefined;
277
292
  transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
293
+ waveform?: "pending" | "ready" | "failed" | "skipped" | undefined;
294
+ }, {
278
295
  denoise?: "pending" | "ready" | "failed" | "skipped" | undefined;
296
+ trim?: "pending" | "ready" | "failed" | "skipped" | undefined;
297
+ transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
298
+ waveform?: "pending" | "ready" | "failed" | "skipped" | undefined;
279
299
  }>>;
280
300
  }, "strip", z.ZodTypeAny, {
281
301
  $type: "dev.antiphony.embed.audio#view";
282
302
  url: string;
303
+ waveform?: number[] | undefined;
283
304
  durationMs?: number | undefined;
284
305
  alt?: string | undefined;
285
- waveform?: number[] | undefined;
286
306
  transcript?: {
287
307
  segments: {
288
308
  startMs: number;
@@ -292,15 +312,17 @@ declare const AudioEmbedViewSchema: z.ZodObject<{
292
312
  text?: string | undefined;
293
313
  } | undefined;
294
314
  processing?: {
295
- transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
296
315
  denoise?: "pending" | "ready" | "failed" | "skipped" | undefined;
316
+ trim?: "pending" | "ready" | "failed" | "skipped" | undefined;
317
+ transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
318
+ waveform?: "pending" | "ready" | "failed" | "skipped" | undefined;
297
319
  } | undefined;
298
320
  }, {
299
321
  $type: "dev.antiphony.embed.audio#view";
300
322
  url: string;
323
+ waveform?: number[] | undefined;
301
324
  durationMs?: number | undefined;
302
325
  alt?: string | undefined;
303
- waveform?: number[] | undefined;
304
326
  transcript?: {
305
327
  segments: {
306
328
  startMs: number;
@@ -310,8 +332,10 @@ declare const AudioEmbedViewSchema: z.ZodObject<{
310
332
  text?: string | undefined;
311
333
  } | undefined;
312
334
  processing?: {
313
- transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
314
335
  denoise?: "pending" | "ready" | "failed" | "skipped" | undefined;
336
+ trim?: "pending" | "ready" | "failed" | "skipped" | undefined;
337
+ transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
338
+ waveform?: "pending" | "ready" | "failed" | "skipped" | undefined;
315
339
  } | undefined;
316
340
  }>;
317
341
  type AudioEmbedView = z.infer<typeof AudioEmbedViewSchema>;
@@ -370,17 +394,40 @@ declare const AudioPostRecordSchema: z.ZodEffects<z.ZodObject<{
370
394
  processing: z.ZodOptional<z.ZodObject<{
371
395
  transcribe: z.ZodOptional<z.ZodEnum<["pending", "ready", "failed", "skipped"]>>;
372
396
  denoise: z.ZodOptional<z.ZodEnum<["pending", "ready", "failed", "skipped"]>>;
373
- denoisedBlobCid: z.ZodOptional<z.ZodString>;
397
+ trim: z.ZodOptional<z.ZodEnum<["pending", "ready", "failed", "skipped"]>>;
398
+ waveform: z.ZodOptional<z.ZodEnum<["pending", "ready", "failed", "skipped"]>>;
399
+ } & {
400
+ reprocess: z.ZodOptional<z.ZodBoolean>;
401
+ } & {
402
+ processedBlobCid: z.ZodOptional<z.ZodString>;
403
+ processedMimeType: z.ZodOptional<z.ZodString>;
404
+ processedDurationMs: z.ZodOptional<z.ZodNumber>;
405
+ waveformPeaks: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
406
+ leaseUntil: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodType<unknown, z.ZodTypeDef, unknown>, z.ZodString, z.ZodNumber, z.ZodDate]>, Date, unknown>>;
374
407
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodType<unknown, z.ZodTypeDef, unknown>, z.ZodString, z.ZodNumber, z.ZodDate]>, Date, unknown>;
375
408
  }, "strip", z.ZodTypeAny, {
376
409
  updatedAt: Date;
377
- transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
378
410
  denoise?: "pending" | "ready" | "failed" | "skipped" | undefined;
379
- denoisedBlobCid?: string | undefined;
380
- }, {
411
+ trim?: "pending" | "ready" | "failed" | "skipped" | undefined;
381
412
  transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
413
+ waveform?: "pending" | "ready" | "failed" | "skipped" | undefined;
414
+ reprocess?: boolean | undefined;
415
+ processedBlobCid?: string | undefined;
416
+ processedMimeType?: string | undefined;
417
+ processedDurationMs?: number | undefined;
418
+ waveformPeaks?: number[] | undefined;
419
+ leaseUntil?: Date | undefined;
420
+ }, {
382
421
  denoise?: "pending" | "ready" | "failed" | "skipped" | undefined;
383
- denoisedBlobCid?: string | undefined;
422
+ trim?: "pending" | "ready" | "failed" | "skipped" | undefined;
423
+ transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
424
+ waveform?: "pending" | "ready" | "failed" | "skipped" | undefined;
425
+ reprocess?: boolean | undefined;
426
+ processedBlobCid?: string | undefined;
427
+ processedMimeType?: string | undefined;
428
+ processedDurationMs?: number | undefined;
429
+ waveformPeaks?: number[] | undefined;
430
+ leaseUntil?: unknown;
384
431
  updatedAt?: unknown;
385
432
  }>>;
386
433
  /** User-authored text (bsky-semantic). May be empty for pure-audio posts. NEVER the transcript. */
@@ -433,9 +480,9 @@ declare const AudioPostRecordSchema: z.ZodEffects<z.ZodObject<{
433
480
  mimeType: string;
434
481
  size: number;
435
482
  };
483
+ waveform?: number[] | undefined;
436
484
  durationMs?: number | undefined;
437
485
  alt?: string | undefined;
438
- waveform?: number[] | undefined;
439
486
  }, {
440
487
  $type: "dev.antiphony.embed.audio";
441
488
  audio: {
@@ -446,9 +493,9 @@ declare const AudioPostRecordSchema: z.ZodEffects<z.ZodObject<{
446
493
  mimeType: string;
447
494
  size: number;
448
495
  };
496
+ waveform?: number[] | undefined;
449
497
  durationMs?: number | undefined;
450
498
  alt?: string | undefined;
451
- waveform?: number[] | undefined;
452
499
  }>>;
453
500
  /** Present iff this post is a reply (StrongRef root + parent). */
454
501
  reply: z.ZodOptional<z.ZodObject<{
@@ -507,9 +554,16 @@ declare const AudioPostRecordSchema: z.ZodEffects<z.ZodObject<{
507
554
  createdAt: Date;
508
555
  processing?: {
509
556
  updatedAt: Date;
510
- transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
511
557
  denoise?: "pending" | "ready" | "failed" | "skipped" | undefined;
512
- denoisedBlobCid?: string | undefined;
558
+ trim?: "pending" | "ready" | "failed" | "skipped" | undefined;
559
+ transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
560
+ waveform?: "pending" | "ready" | "failed" | "skipped" | undefined;
561
+ reprocess?: boolean | undefined;
562
+ processedBlobCid?: string | undefined;
563
+ processedMimeType?: string | undefined;
564
+ processedDurationMs?: number | undefined;
565
+ waveformPeaks?: number[] | undefined;
566
+ leaseUntil?: Date | undefined;
513
567
  } | undefined;
514
568
  authorDid?: string | undefined;
515
569
  orgId?: string | null | undefined;
@@ -536,9 +590,9 @@ declare const AudioPostRecordSchema: z.ZodEffects<z.ZodObject<{
536
590
  mimeType: string;
537
591
  size: number;
538
592
  };
593
+ waveform?: number[] | undefined;
539
594
  durationMs?: number | undefined;
540
595
  alt?: string | undefined;
541
- waveform?: number[] | undefined;
542
596
  } | undefined;
543
597
  langs?: string[] | undefined;
544
598
  selfLabels?: string[] | undefined;
@@ -550,9 +604,16 @@ declare const AudioPostRecordSchema: z.ZodEffects<z.ZodObject<{
550
604
  authorId: string;
551
605
  kind: "prompt" | "reply";
552
606
  processing?: {
553
- transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
554
607
  denoise?: "pending" | "ready" | "failed" | "skipped" | undefined;
555
- denoisedBlobCid?: string | undefined;
608
+ trim?: "pending" | "ready" | "failed" | "skipped" | undefined;
609
+ transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
610
+ waveform?: "pending" | "ready" | "failed" | "skipped" | undefined;
611
+ reprocess?: boolean | undefined;
612
+ processedBlobCid?: string | undefined;
613
+ processedMimeType?: string | undefined;
614
+ processedDurationMs?: number | undefined;
615
+ waveformPeaks?: number[] | undefined;
616
+ leaseUntil?: unknown;
556
617
  updatedAt?: unknown;
557
618
  } | undefined;
558
619
  authorDid?: string | undefined;
@@ -580,9 +641,9 @@ declare const AudioPostRecordSchema: z.ZodEffects<z.ZodObject<{
580
641
  mimeType: string;
581
642
  size: number;
582
643
  };
644
+ waveform?: number[] | undefined;
583
645
  durationMs?: number | undefined;
584
646
  alt?: string | undefined;
585
- waveform?: number[] | undefined;
586
647
  } | undefined;
587
648
  langs?: string[] | undefined;
588
649
  selfLabels?: string[] | undefined;
@@ -597,9 +658,16 @@ declare const AudioPostRecordSchema: z.ZodEffects<z.ZodObject<{
597
658
  createdAt: Date;
598
659
  processing?: {
599
660
  updatedAt: Date;
600
- transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
601
661
  denoise?: "pending" | "ready" | "failed" | "skipped" | undefined;
602
- denoisedBlobCid?: string | undefined;
662
+ trim?: "pending" | "ready" | "failed" | "skipped" | undefined;
663
+ transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
664
+ waveform?: "pending" | "ready" | "failed" | "skipped" | undefined;
665
+ reprocess?: boolean | undefined;
666
+ processedBlobCid?: string | undefined;
667
+ processedMimeType?: string | undefined;
668
+ processedDurationMs?: number | undefined;
669
+ waveformPeaks?: number[] | undefined;
670
+ leaseUntil?: Date | undefined;
603
671
  } | undefined;
604
672
  authorDid?: string | undefined;
605
673
  orgId?: string | null | undefined;
@@ -626,9 +694,9 @@ declare const AudioPostRecordSchema: z.ZodEffects<z.ZodObject<{
626
694
  mimeType: string;
627
695
  size: number;
628
696
  };
697
+ waveform?: number[] | undefined;
629
698
  durationMs?: number | undefined;
630
699
  alt?: string | undefined;
631
- waveform?: number[] | undefined;
632
700
  } | undefined;
633
701
  langs?: string[] | undefined;
634
702
  selfLabels?: string[] | undefined;
@@ -640,9 +708,16 @@ declare const AudioPostRecordSchema: z.ZodEffects<z.ZodObject<{
640
708
  authorId: string;
641
709
  kind: "prompt" | "reply";
642
710
  processing?: {
643
- transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
644
711
  denoise?: "pending" | "ready" | "failed" | "skipped" | undefined;
645
- denoisedBlobCid?: string | undefined;
712
+ trim?: "pending" | "ready" | "failed" | "skipped" | undefined;
713
+ transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
714
+ waveform?: "pending" | "ready" | "failed" | "skipped" | undefined;
715
+ reprocess?: boolean | undefined;
716
+ processedBlobCid?: string | undefined;
717
+ processedMimeType?: string | undefined;
718
+ processedDurationMs?: number | undefined;
719
+ waveformPeaks?: number[] | undefined;
720
+ leaseUntil?: unknown;
646
721
  updatedAt?: unknown;
647
722
  } | undefined;
648
723
  authorDid?: string | undefined;
@@ -670,9 +745,9 @@ declare const AudioPostRecordSchema: z.ZodEffects<z.ZodObject<{
670
745
  mimeType: string;
671
746
  size: number;
672
747
  };
748
+ waveform?: number[] | undefined;
673
749
  durationMs?: number | undefined;
674
750
  alt?: string | undefined;
675
- waveform?: number[] | undefined;
676
751
  } | undefined;
677
752
  langs?: string[] | undefined;
678
753
  selfLabels?: string[] | undefined;
@@ -1014,6 +1089,18 @@ declare const AudioPostViewSchema: z.ZodObject<{
1014
1089
  /** Hydrated audio embed (signed URL + lifted transcript). */
1015
1090
  embed: z.ZodOptional<z.ZodObject<{
1016
1091
  $type: z.ZodLiteral<"dev.antiphony.embed.audio#view">;
1092
+ /**
1093
+ * `url`, `durationMs` and `waveform` are RESOLVED, not copied: once
1094
+ * processing has produced an audio variant they describe that variant
1095
+ * rather than the bytes the client uploaded. They always agree with one
1096
+ * another — a duration and a set of peaks are only meaningful against the
1097
+ * audio `url` actually points at.
1098
+ *
1099
+ * A client that stored `durationMs` at upload time should therefore expect
1100
+ * it to change (trim removes leading/trailing silence), and should render
1101
+ * these three as a set rather than caching them independently. The record's
1102
+ * originals are immutable and unaffected; this is a read-time resolution.
1103
+ */
1017
1104
  url: z.ZodString;
1018
1105
  durationMs: z.ZodOptional<z.ZodNumber>;
1019
1106
  alt: z.ZodOptional<z.ZodString>;
@@ -1058,28 +1145,36 @@ declare const AudioPostViewSchema: z.ZodObject<{
1058
1145
  text?: string | undefined;
1059
1146
  }>>;
1060
1147
  /**
1061
- * Per-stage audio-processing status (transcribe / denoise), when the app
1062
- * opted into processing on create. Absent otherwise. A `pending` stage
1063
- * means the client should poll (or re-render) for the result. When
1064
- * `denoise === 'ready'`, `url` above already resolves to the cleaned
1065
- * audio variant. See `types/processing.ts`.
1148
+ * Per-stage audio-processing status (denoise / trim / transcribe /
1149
+ * waveform), when the app opted into processing. Absent otherwise. A
1150
+ * `pending` stage means the client should poll (or re-render) for the
1151
+ * result including a stage that returns to `pending` after having been
1152
+ * `ready`, which is how a recompute surfaces. Once a byte-mutating stage
1153
+ * completes, `url`/`durationMs`/`waveform` above already resolve to the
1154
+ * processed audio variant. See `types/processing.ts`.
1066
1155
  */
1067
1156
  processing: z.ZodOptional<z.ZodObject<{
1068
1157
  transcribe: z.ZodOptional<z.ZodEnum<["pending", "ready", "failed", "skipped"]>>;
1069
1158
  denoise: z.ZodOptional<z.ZodEnum<["pending", "ready", "failed", "skipped"]>>;
1159
+ trim: z.ZodOptional<z.ZodEnum<["pending", "ready", "failed", "skipped"]>>;
1160
+ waveform: z.ZodOptional<z.ZodEnum<["pending", "ready", "failed", "skipped"]>>;
1070
1161
  }, "strip", z.ZodTypeAny, {
1071
- transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
1072
1162
  denoise?: "pending" | "ready" | "failed" | "skipped" | undefined;
1073
- }, {
1163
+ trim?: "pending" | "ready" | "failed" | "skipped" | undefined;
1074
1164
  transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
1165
+ waveform?: "pending" | "ready" | "failed" | "skipped" | undefined;
1166
+ }, {
1075
1167
  denoise?: "pending" | "ready" | "failed" | "skipped" | undefined;
1168
+ trim?: "pending" | "ready" | "failed" | "skipped" | undefined;
1169
+ transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
1170
+ waveform?: "pending" | "ready" | "failed" | "skipped" | undefined;
1076
1171
  }>>;
1077
1172
  }, "strip", z.ZodTypeAny, {
1078
1173
  $type: "dev.antiphony.embed.audio#view";
1079
1174
  url: string;
1175
+ waveform?: number[] | undefined;
1080
1176
  durationMs?: number | undefined;
1081
1177
  alt?: string | undefined;
1082
- waveform?: number[] | undefined;
1083
1178
  transcript?: {
1084
1179
  segments: {
1085
1180
  startMs: number;
@@ -1089,15 +1184,17 @@ declare const AudioPostViewSchema: z.ZodObject<{
1089
1184
  text?: string | undefined;
1090
1185
  } | undefined;
1091
1186
  processing?: {
1092
- transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
1093
1187
  denoise?: "pending" | "ready" | "failed" | "skipped" | undefined;
1188
+ trim?: "pending" | "ready" | "failed" | "skipped" | undefined;
1189
+ transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
1190
+ waveform?: "pending" | "ready" | "failed" | "skipped" | undefined;
1094
1191
  } | undefined;
1095
1192
  }, {
1096
1193
  $type: "dev.antiphony.embed.audio#view";
1097
1194
  url: string;
1195
+ waveform?: number[] | undefined;
1098
1196
  durationMs?: number | undefined;
1099
1197
  alt?: string | undefined;
1100
- waveform?: number[] | undefined;
1101
1198
  transcript?: {
1102
1199
  segments: {
1103
1200
  startMs: number;
@@ -1107,8 +1204,10 @@ declare const AudioPostViewSchema: z.ZodObject<{
1107
1204
  text?: string | undefined;
1108
1205
  } | undefined;
1109
1206
  processing?: {
1110
- transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
1111
1207
  denoise?: "pending" | "ready" | "failed" | "skipped" | undefined;
1208
+ trim?: "pending" | "ready" | "failed" | "skipped" | undefined;
1209
+ transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
1210
+ waveform?: "pending" | "ready" | "failed" | "skipped" | undefined;
1112
1211
  } | undefined;
1113
1212
  }>>;
1114
1213
  viewer: z.ZodObject<{
@@ -1162,9 +1261,9 @@ declare const AudioPostViewSchema: z.ZodObject<{
1162
1261
  embed?: {
1163
1262
  $type: "dev.antiphony.embed.audio#view";
1164
1263
  url: string;
1264
+ waveform?: number[] | undefined;
1165
1265
  durationMs?: number | undefined;
1166
1266
  alt?: string | undefined;
1167
- waveform?: number[] | undefined;
1168
1267
  transcript?: {
1169
1268
  segments: {
1170
1269
  startMs: number;
@@ -1174,8 +1273,10 @@ declare const AudioPostViewSchema: z.ZodObject<{
1174
1273
  text?: string | undefined;
1175
1274
  } | undefined;
1176
1275
  processing?: {
1177
- transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
1178
1276
  denoise?: "pending" | "ready" | "failed" | "skipped" | undefined;
1277
+ trim?: "pending" | "ready" | "failed" | "skipped" | undefined;
1278
+ transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
1279
+ waveform?: "pending" | "ready" | "failed" | "skipped" | undefined;
1179
1280
  } | undefined;
1180
1281
  } | undefined;
1181
1282
  }, {
@@ -1209,9 +1310,9 @@ declare const AudioPostViewSchema: z.ZodObject<{
1209
1310
  embed?: {
1210
1311
  $type: "dev.antiphony.embed.audio#view";
1211
1312
  url: string;
1313
+ waveform?: number[] | undefined;
1212
1314
  durationMs?: number | undefined;
1213
1315
  alt?: string | undefined;
1214
- waveform?: number[] | undefined;
1215
1316
  transcript?: {
1216
1317
  segments: {
1217
1318
  startMs: number;
@@ -1221,8 +1322,10 @@ declare const AudioPostViewSchema: z.ZodObject<{
1221
1322
  text?: string | undefined;
1222
1323
  } | undefined;
1223
1324
  processing?: {
1224
- transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
1225
1325
  denoise?: "pending" | "ready" | "failed" | "skipped" | undefined;
1326
+ trim?: "pending" | "ready" | "failed" | "skipped" | undefined;
1327
+ transcribe?: "pending" | "ready" | "failed" | "skipped" | undefined;
1328
+ waveform?: "pending" | "ready" | "failed" | "skipped" | undefined;
1226
1329
  } | undefined;
1227
1330
  } | undefined;
1228
1331
  }>;
@@ -1,4 +1,4 @@
1
- export { ActorProfileRecordSchema, AudioEmbedSchema, AudioEmbedViewSchema, AudioPostRecordSchema, AudioPostViewSchema, PostRecordPublicSchema, ReplyRefSchema, StrongRefSchema, TimedTranscriptSchema, TranscriptEnrichmentRecordSchema, TranscriptSegmentSchema, ViewerStateSchema } from '../chunk-WL2GSPGC.js';
1
+ export { ActorProfileRecordSchema, AudioEmbedSchema, AudioEmbedViewSchema, AudioPostRecordSchema, AudioPostViewSchema, PostRecordPublicSchema, ReplyRefSchema, StrongRefSchema, TimedTranscriptSchema, TranscriptEnrichmentRecordSchema, TranscriptSegmentSchema, ViewerStateSchema } from '../chunk-TVOXIQKF.js';
2
2
  import '../chunk-D655OH2I.js';
3
3
  import '../chunk-SMK4OZNU.js';
4
4
  import '../chunk-5JBD5THX.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antiphony/shared",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Shared types, Zod schemas, and codecs for Antiphony — open audio call-and-response infrastructure and AT Protocol lexicons.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://docs.antiphony.dev",
@@ -131,15 +131,19 @@
131
131
  },
132
132
  "scripts": {
133
133
  "build": "node ./scripts/clean.mjs && tsup",
134
+ "//prepare": "Every export in this package resolves into dist/, so a tree without it cannot be typechecked by the workspaces that consume it (apps/reference imports @antiphony/shared/* directly). npm runs prepare for workspace packages on install, which makes `git clone && npm ci && npm run typecheck` work on a cold checkout instead of only on a machine that happens to have built already.",
135
+ "prepare": "npm run build",
134
136
  "typecheck": "tsc --noEmit",
135
- "lint": "eslint .",
137
+ "lint": "eslint . --max-warnings=0",
136
138
  "test": "vitest run"
137
139
  },
138
140
  "dependencies": {
139
141
  "zod": "^3.24.1"
140
142
  },
141
143
  "devDependencies": {
144
+ "@eslint/js": "^9.39.2",
142
145
  "tsup": "^8.5.1",
146
+ "typescript-eslint": "^8.18.0",
143
147
  "typescript": "^5.7.2",
144
148
  "vitest": "^4.1.9"
145
149
  }