@spectrum-ts/core 12.3.0 → 12.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.
@@ -599,15 +599,6 @@ declare const editSchema: z.ZodObject<{
599
599
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
600
600
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
601
601
  size?: number | undefined;
602
- } | {
603
- type: "text";
604
- text: string;
605
- } | {
606
- type: "markdown";
607
- markdown: string;
608
- } | {
609
- type: "group";
610
- items: Message<string, User, Space<unknown>>[];
611
602
  } | {
612
603
  type: "contact";
613
604
  user?: {
@@ -654,6 +645,39 @@ declare const editSchema: z.ZodObject<{
654
645
  } | {
655
646
  type: "custom";
656
647
  raw: unknown;
648
+ } | {
649
+ type: "text";
650
+ text: string;
651
+ } | {
652
+ type: "markdown";
653
+ markdown: string;
654
+ } | {
655
+ type: "group";
656
+ items: Message<string, User, Space<unknown>>[];
657
+ } | {
658
+ type: "poll";
659
+ title: string;
660
+ options: {
661
+ title: string;
662
+ }[];
663
+ } | {
664
+ type: "poll_option";
665
+ option: {
666
+ title: string;
667
+ };
668
+ poll: {
669
+ type: "poll";
670
+ title: string;
671
+ options: {
672
+ title: string;
673
+ }[];
674
+ };
675
+ selected: boolean;
676
+ title: string;
677
+ } | {
678
+ type: "reaction";
679
+ emoji: string;
680
+ target: Message<string, User, Space<unknown>>;
657
681
  } | {
658
682
  type: "streamText";
659
683
  stream: () => AsyncIterable<string>;
@@ -684,30 +708,6 @@ declare const editSchema: z.ZodObject<{
684
708
  summary: z.ZodOptional<z.ZodString>;
685
709
  }, z.core.$strip>>>;
686
710
  live?: boolean | undefined;
687
- } | {
688
- type: "reaction";
689
- emoji: string;
690
- target: Message<string, User, Space<unknown>>;
691
- } | {
692
- type: "poll";
693
- title: string;
694
- options: {
695
- title: string;
696
- }[];
697
- } | {
698
- type: "poll_option";
699
- option: {
700
- title: string;
701
- };
702
- poll: {
703
- type: "poll";
704
- title: string;
705
- options: {
706
- title: string;
707
- }[];
708
- };
709
- selected: boolean;
710
- title: string;
711
711
  } | {
712
712
  type: "effect";
713
713
  content: {
@@ -757,15 +757,6 @@ declare const editSchema: z.ZodObject<{
757
757
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
758
758
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
759
759
  size?: number | undefined;
760
- } | {
761
- type: "text";
762
- text: string;
763
- } | {
764
- type: "markdown";
765
- markdown: string;
766
- } | {
767
- type: "group";
768
- items: Message<string, User, Space<unknown>>[];
769
760
  } | {
770
761
  type: "contact";
771
762
  user?: {
@@ -812,6 +803,39 @@ declare const editSchema: z.ZodObject<{
812
803
  } | {
813
804
  type: "custom";
814
805
  raw: unknown;
806
+ } | {
807
+ type: "text";
808
+ text: string;
809
+ } | {
810
+ type: "markdown";
811
+ markdown: string;
812
+ } | {
813
+ type: "group";
814
+ items: Message<string, User, Space<unknown>>[];
815
+ } | {
816
+ type: "poll";
817
+ title: string;
818
+ options: {
819
+ title: string;
820
+ }[];
821
+ } | {
822
+ type: "poll_option";
823
+ option: {
824
+ title: string;
825
+ };
826
+ poll: {
827
+ type: "poll";
828
+ title: string;
829
+ options: {
830
+ title: string;
831
+ }[];
832
+ };
833
+ selected: boolean;
834
+ title: string;
835
+ } | {
836
+ type: "reaction";
837
+ emoji: string;
838
+ target: Message<string, User, Space<unknown>>;
815
839
  } | {
816
840
  type: "streamText";
817
841
  stream: () => AsyncIterable<string>;
@@ -842,30 +866,6 @@ declare const editSchema: z.ZodObject<{
842
866
  summary: z.ZodOptional<z.ZodString>;
843
867
  }, z.core.$strip>>>;
844
868
  live?: boolean | undefined;
845
- } | {
846
- type: "reaction";
847
- emoji: string;
848
- target: Message<string, User, Space<unknown>>;
849
- } | {
850
- type: "poll";
851
- title: string;
852
- options: {
853
- title: string;
854
- }[];
855
- } | {
856
- type: "poll_option";
857
- option: {
858
- title: string;
859
- };
860
- poll: {
861
- type: "poll";
862
- title: string;
863
- options: {
864
- title: string;
865
- }[];
866
- };
867
- selected: boolean;
868
- title: string;
869
869
  } | {
870
870
  type: "effect";
871
871
  content: {
@@ -1145,15 +1145,6 @@ declare const replySchema: z.ZodObject<{
1145
1145
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1146
1146
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1147
1147
  size?: number | undefined;
1148
- } | {
1149
- type: "text";
1150
- text: string;
1151
- } | {
1152
- type: "markdown";
1153
- markdown: string;
1154
- } | {
1155
- type: "group";
1156
- items: Message<string, User, Space<unknown>>[];
1157
1148
  } | {
1158
1149
  type: "contact";
1159
1150
  user?: {
@@ -1200,6 +1191,39 @@ declare const replySchema: z.ZodObject<{
1200
1191
  } | {
1201
1192
  type: "custom";
1202
1193
  raw: unknown;
1194
+ } | {
1195
+ type: "text";
1196
+ text: string;
1197
+ } | {
1198
+ type: "markdown";
1199
+ markdown: string;
1200
+ } | {
1201
+ type: "group";
1202
+ items: Message<string, User, Space<unknown>>[];
1203
+ } | {
1204
+ type: "poll";
1205
+ title: string;
1206
+ options: {
1207
+ title: string;
1208
+ }[];
1209
+ } | {
1210
+ type: "poll_option";
1211
+ option: {
1212
+ title: string;
1213
+ };
1214
+ poll: {
1215
+ type: "poll";
1216
+ title: string;
1217
+ options: {
1218
+ title: string;
1219
+ }[];
1220
+ };
1221
+ selected: boolean;
1222
+ title: string;
1223
+ } | {
1224
+ type: "reaction";
1225
+ emoji: string;
1226
+ target: Message<string, User, Space<unknown>>;
1203
1227
  } | {
1204
1228
  type: "streamText";
1205
1229
  stream: () => AsyncIterable<string>;
@@ -1230,30 +1254,6 @@ declare const replySchema: z.ZodObject<{
1230
1254
  summary: z.ZodOptional<z.ZodString>;
1231
1255
  }, z.core.$strip>>>;
1232
1256
  live?: boolean | undefined;
1233
- } | {
1234
- type: "reaction";
1235
- emoji: string;
1236
- target: Message<string, User, Space<unknown>>;
1237
- } | {
1238
- type: "poll";
1239
- title: string;
1240
- options: {
1241
- title: string;
1242
- }[];
1243
- } | {
1244
- type: "poll_option";
1245
- option: {
1246
- title: string;
1247
- };
1248
- poll: {
1249
- type: "poll";
1250
- title: string;
1251
- options: {
1252
- title: string;
1253
- }[];
1254
- };
1255
- selected: boolean;
1256
- title: string;
1257
1257
  } | {
1258
1258
  type: "effect";
1259
1259
  content: {
@@ -1303,15 +1303,6 @@ declare const replySchema: z.ZodObject<{
1303
1303
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1304
1304
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1305
1305
  size?: number | undefined;
1306
- } | {
1307
- type: "text";
1308
- text: string;
1309
- } | {
1310
- type: "markdown";
1311
- markdown: string;
1312
- } | {
1313
- type: "group";
1314
- items: Message<string, User, Space<unknown>>[];
1315
1306
  } | {
1316
1307
  type: "contact";
1317
1308
  user?: {
@@ -1358,6 +1349,39 @@ declare const replySchema: z.ZodObject<{
1358
1349
  } | {
1359
1350
  type: "custom";
1360
1351
  raw: unknown;
1352
+ } | {
1353
+ type: "text";
1354
+ text: string;
1355
+ } | {
1356
+ type: "markdown";
1357
+ markdown: string;
1358
+ } | {
1359
+ type: "group";
1360
+ items: Message<string, User, Space<unknown>>[];
1361
+ } | {
1362
+ type: "poll";
1363
+ title: string;
1364
+ options: {
1365
+ title: string;
1366
+ }[];
1367
+ } | {
1368
+ type: "poll_option";
1369
+ option: {
1370
+ title: string;
1371
+ };
1372
+ poll: {
1373
+ type: "poll";
1374
+ title: string;
1375
+ options: {
1376
+ title: string;
1377
+ }[];
1378
+ };
1379
+ selected: boolean;
1380
+ title: string;
1381
+ } | {
1382
+ type: "reaction";
1383
+ emoji: string;
1384
+ target: Message<string, User, Space<unknown>>;
1361
1385
  } | {
1362
1386
  type: "streamText";
1363
1387
  stream: () => AsyncIterable<string>;
@@ -1388,30 +1412,6 @@ declare const replySchema: z.ZodObject<{
1388
1412
  summary: z.ZodOptional<z.ZodString>;
1389
1413
  }, z.core.$strip>>>;
1390
1414
  live?: boolean | undefined;
1391
- } | {
1392
- type: "reaction";
1393
- emoji: string;
1394
- target: Message<string, User, Space<unknown>>;
1395
- } | {
1396
- type: "poll";
1397
- title: string;
1398
- options: {
1399
- title: string;
1400
- }[];
1401
- } | {
1402
- type: "poll_option";
1403
- option: {
1404
- title: string;
1405
- };
1406
- poll: {
1407
- type: "poll";
1408
- title: string;
1409
- options: {
1410
- title: string;
1411
- }[];
1412
- };
1413
- selected: boolean;
1414
- title: string;
1415
1415
  } | {
1416
1416
  type: "effect";
1417
1417
  content: {
@@ -7290,15 +7290,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7290
7290
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7291
7291
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7292
7292
  size?: number | undefined;
7293
- } | {
7294
- type: "text";
7295
- text: string;
7296
- } | {
7297
- type: "markdown";
7298
- markdown: string;
7299
- } | {
7300
- type: "group";
7301
- items: Message<string, User, Space<unknown>>[];
7302
7293
  } | {
7303
7294
  type: "contact";
7304
7295
  user?: {
@@ -7345,6 +7336,39 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7345
7336
  } | {
7346
7337
  type: "custom";
7347
7338
  raw: unknown;
7339
+ } | {
7340
+ type: "text";
7341
+ text: string;
7342
+ } | {
7343
+ type: "markdown";
7344
+ markdown: string;
7345
+ } | {
7346
+ type: "group";
7347
+ items: Message<string, User, Space<unknown>>[];
7348
+ } | {
7349
+ type: "poll";
7350
+ title: string;
7351
+ options: {
7352
+ title: string;
7353
+ }[];
7354
+ } | {
7355
+ type: "poll_option";
7356
+ option: {
7357
+ title: string;
7358
+ };
7359
+ poll: {
7360
+ type: "poll";
7361
+ title: string;
7362
+ options: {
7363
+ title: string;
7364
+ }[];
7365
+ };
7366
+ selected: boolean;
7367
+ title: string;
7368
+ } | {
7369
+ type: "reaction";
7370
+ emoji: string;
7371
+ target: Message<string, User, Space<unknown>>;
7348
7372
  } | {
7349
7373
  type: "streamText";
7350
7374
  stream: () => AsyncIterable<string>;
@@ -7375,30 +7399,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7375
7399
  summary: z.ZodOptional<z.ZodString>;
7376
7400
  }, z.core.$strip>>>;
7377
7401
  live?: boolean | undefined;
7378
- } | {
7379
- type: "reaction";
7380
- emoji: string;
7381
- target: Message<string, User, Space<unknown>>;
7382
- } | {
7383
- type: "poll";
7384
- title: string;
7385
- options: {
7386
- title: string;
7387
- }[];
7388
- } | {
7389
- type: "poll_option";
7390
- option: {
7391
- title: string;
7392
- };
7393
- poll: {
7394
- type: "poll";
7395
- title: string;
7396
- options: {
7397
- title: string;
7398
- }[];
7399
- };
7400
- selected: boolean;
7401
- title: string;
7402
7402
  } | {
7403
7403
  type: "effect";
7404
7404
  content: {
@@ -7448,15 +7448,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7448
7448
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7449
7449
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7450
7450
  size?: number | undefined;
7451
- } | {
7452
- type: "text";
7453
- text: string;
7454
- } | {
7455
- type: "markdown";
7456
- markdown: string;
7457
- } | {
7458
- type: "group";
7459
- items: Message<string, User, Space<unknown>>[];
7460
7451
  } | {
7461
7452
  type: "contact";
7462
7453
  user?: {
@@ -7503,6 +7494,39 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7503
7494
  } | {
7504
7495
  type: "custom";
7505
7496
  raw: unknown;
7497
+ } | {
7498
+ type: "text";
7499
+ text: string;
7500
+ } | {
7501
+ type: "markdown";
7502
+ markdown: string;
7503
+ } | {
7504
+ type: "group";
7505
+ items: Message<string, User, Space<unknown>>[];
7506
+ } | {
7507
+ type: "poll";
7508
+ title: string;
7509
+ options: {
7510
+ title: string;
7511
+ }[];
7512
+ } | {
7513
+ type: "poll_option";
7514
+ option: {
7515
+ title: string;
7516
+ };
7517
+ poll: {
7518
+ type: "poll";
7519
+ title: string;
7520
+ options: {
7521
+ title: string;
7522
+ }[];
7523
+ };
7524
+ selected: boolean;
7525
+ title: string;
7526
+ } | {
7527
+ type: "reaction";
7528
+ emoji: string;
7529
+ target: Message<string, User, Space<unknown>>;
7506
7530
  } | {
7507
7531
  type: "streamText";
7508
7532
  stream: () => AsyncIterable<string>;
@@ -7533,30 +7557,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7533
7557
  summary: z.ZodOptional<z.ZodString>;
7534
7558
  }, z.core.$strip>>>;
7535
7559
  live?: boolean | undefined;
7536
- } | {
7537
- type: "reaction";
7538
- emoji: string;
7539
- target: Message<string, User, Space<unknown>>;
7540
- } | {
7541
- type: "poll";
7542
- title: string;
7543
- options: {
7544
- title: string;
7545
- }[];
7546
- } | {
7547
- type: "poll_option";
7548
- option: {
7549
- title: string;
7550
- };
7551
- poll: {
7552
- type: "poll";
7553
- title: string;
7554
- options: {
7555
- title: string;
7556
- }[];
7557
- };
7558
- selected: boolean;
7559
- title: string;
7560
7560
  } | {
7561
7561
  type: "effect";
7562
7562
  content: {
@@ -7610,15 +7610,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7610
7610
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7611
7611
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7612
7612
  size?: number | undefined;
7613
- } | {
7614
- type: "text";
7615
- text: string;
7616
- } | {
7617
- type: "markdown";
7618
- markdown: string;
7619
- } | {
7620
- type: "group";
7621
- items: Message<string, User, Space<unknown>>[];
7622
7613
  } | {
7623
7614
  type: "contact";
7624
7615
  user?: {
@@ -7665,6 +7656,39 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7665
7656
  } | {
7666
7657
  type: "custom";
7667
7658
  raw: unknown;
7659
+ } | {
7660
+ type: "text";
7661
+ text: string;
7662
+ } | {
7663
+ type: "markdown";
7664
+ markdown: string;
7665
+ } | {
7666
+ type: "group";
7667
+ items: Message<string, User, Space<unknown>>[];
7668
+ } | {
7669
+ type: "poll";
7670
+ title: string;
7671
+ options: {
7672
+ title: string;
7673
+ }[];
7674
+ } | {
7675
+ type: "poll_option";
7676
+ option: {
7677
+ title: string;
7678
+ };
7679
+ poll: {
7680
+ type: "poll";
7681
+ title: string;
7682
+ options: {
7683
+ title: string;
7684
+ }[];
7685
+ };
7686
+ selected: boolean;
7687
+ title: string;
7688
+ } | {
7689
+ type: "reaction";
7690
+ emoji: string;
7691
+ target: Message<string, User, Space<unknown>>;
7668
7692
  } | {
7669
7693
  type: "streamText";
7670
7694
  stream: () => AsyncIterable<string>;
@@ -7695,30 +7719,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7695
7719
  summary: z.ZodOptional<z.ZodString>;
7696
7720
  }, z.core.$strip>>>;
7697
7721
  live?: boolean | undefined;
7698
- } | {
7699
- type: "reaction";
7700
- emoji: string;
7701
- target: Message<string, User, Space<unknown>>;
7702
- } | {
7703
- type: "poll";
7704
- title: string;
7705
- options: {
7706
- title: string;
7707
- }[];
7708
- } | {
7709
- type: "poll_option";
7710
- option: {
7711
- title: string;
7712
- };
7713
- poll: {
7714
- type: "poll";
7715
- title: string;
7716
- options: {
7717
- title: string;
7718
- }[];
7719
- };
7720
- selected: boolean;
7721
- title: string;
7722
7722
  } | {
7723
7723
  type: "effect";
7724
7724
  content: {
@@ -7768,15 +7768,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7768
7768
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7769
7769
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7770
7770
  size?: number | undefined;
7771
- } | {
7772
- type: "text";
7773
- text: string;
7774
- } | {
7775
- type: "markdown";
7776
- markdown: string;
7777
- } | {
7778
- type: "group";
7779
- items: Message<string, User, Space<unknown>>[];
7780
7771
  } | {
7781
7772
  type: "contact";
7782
7773
  user?: {
@@ -7823,6 +7814,39 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7823
7814
  } | {
7824
7815
  type: "custom";
7825
7816
  raw: unknown;
7817
+ } | {
7818
+ type: "text";
7819
+ text: string;
7820
+ } | {
7821
+ type: "markdown";
7822
+ markdown: string;
7823
+ } | {
7824
+ type: "group";
7825
+ items: Message<string, User, Space<unknown>>[];
7826
+ } | {
7827
+ type: "poll";
7828
+ title: string;
7829
+ options: {
7830
+ title: string;
7831
+ }[];
7832
+ } | {
7833
+ type: "poll_option";
7834
+ option: {
7835
+ title: string;
7836
+ };
7837
+ poll: {
7838
+ type: "poll";
7839
+ title: string;
7840
+ options: {
7841
+ title: string;
7842
+ }[];
7843
+ };
7844
+ selected: boolean;
7845
+ title: string;
7846
+ } | {
7847
+ type: "reaction";
7848
+ emoji: string;
7849
+ target: Message<string, User, Space<unknown>>;
7826
7850
  } | {
7827
7851
  type: "streamText";
7828
7852
  stream: () => AsyncIterable<string>;
@@ -7853,30 +7877,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7853
7877
  summary: z.ZodOptional<z.ZodString>;
7854
7878
  }, z.core.$strip>>>;
7855
7879
  live?: boolean | undefined;
7856
- } | {
7857
- type: "reaction";
7858
- emoji: string;
7859
- target: Message<string, User, Space<unknown>>;
7860
- } | {
7861
- type: "poll";
7862
- title: string;
7863
- options: {
7864
- title: string;
7865
- }[];
7866
- } | {
7867
- type: "poll_option";
7868
- option: {
7869
- title: string;
7870
- };
7871
- poll: {
7872
- type: "poll";
7873
- title: string;
7874
- options: {
7875
- title: string;
7876
- }[];
7877
- };
7878
- selected: boolean;
7879
- title: string;
7880
7880
  } | {
7881
7881
  type: "effect";
7882
7882
  content: {
@@ -7959,4 +7959,4 @@ declare function attachment(input: AttachmentInput, options?: {
7959
7959
  name?: string;
7960
7960
  }): ContentBuilder;
7961
7961
  //#endregion
7962
- export { DedicatedTokenData as $, StreamTextSource as $t, isFusorEvent as A, ContactInput as An, Reply as At, PlatformUser as B, AvatarInput as Bn, Poll as Bt, FusorVerify as C, reactionSchema as Cn, typing as Ct, WebhookRawResult as D, ContactAddress as Dn, asRichlink as Dt, WebhookRawRequest as E, Contact as En, Richlink as Et, PlatformInstance as F, contact as Fn, rename as Ft, SpaceNamespace as G, photoActionSchema as Gn, asPollOption as Gt, ProviderMessageRecord as H, avatarSchema as Hn, PollChoiceInput as Ht, PlatformMessage as I, AgentSender as In, renameSchema as It, broadcast as J, AppOptions as Jn, Markdown as Jt, Broadcaster as K, App as Kn, option as Kt, PlatformProviderConfig as L, User as Ln, Read as Lt, EventProducer as M, ContactOrg as Mn, reply as Mt, Platform as N, ContactPhone as Nn, replySchema as Nt, FusorEvent as O, ContactDetails as On, richlink as Ot, PlatformDef as P, asContact as Pn, Rename as Pt, CloudPlatform as Q, StreamText as Qt, PlatformRuntime as R, Avatar as Rn, asRead as Rt, FusorRespond as S, reaction as Sn, Typing as St, WebhookHandler as T, custom as Tn, text as Tt, ProviderUserRecord as U, PhotoInput as Un, PollOption as Ut, ProviderMessage as V, avatar as Vn, PollChoice as Vt, SchemaMessage as W, buildPhotoAction as Wn, asPoll as Wt, stream as X, app as Xn, markdown as Xt, mergeStreams as Y, AppUrl as Yn, asMarkdown as Yt, Store as Z, appLayoutSchema as Zn, DeltaExtractor as Zt, FusorClient as _, removeMember as _n, asVoice as _t, Content as a, Edit as an, ProjectProfile as at, FusorMessagesReturn as b, ReactionBuilder as bn, asUnsend as bt, fromVCard as c, Space as cn, SlackTokenData as ct, UnsupportedKind as d, MemberInput as dn, SubscriptionStatus as dt, TextStreamOptions as en, FusorTokenData as et, Spectrum as f, RemoveMember as fn, TokenData as ft, isFusorClient as g, leaveSpaceSchema as gn, Voice as gt, fusor as h, leaveSpace as hn, EmojiKey as ht, attachment as i, groupSchema as in, ProjectData as it, AnyPlatformDef as j, ContactName as jn, asReply as jt, fusorEvent as k, ContactEmail as kn, resolveContents as kt, toVCard as l, AddMember as ln, SpectrumCloudError as lt, definePlatform as m, addMemberSchema as mn, Emoji as mt, AttachmentInput as n, asGroup as nn, PlatformStatus as nt, ContentBuilder as o, edit as on, SharedTokenData as ot, SpectrumInstance as p, addMember as pn, cloud as pt, ManagedStream as q, AppLayout as qn, poll as qt, asAttachment as r, group as rn, PlatformsData as rt, ContentInput as s, Message as sn, SlackTeamMeta as st, Attachment as t, Group as tn, ImessageInfoData as tt, UnsupportedError as u, LeaveSpace as un, SubscriptionData as ut, FusorMessages as v, removeMemberSchema as vn, voice as vt, FusorVerifyRequest as w, asCustom as wn, asText as wt, FusorReply as x, asReaction as xn, unsend as xt, FusorMessagesCtx as y, Reaction as yn, Unsend as yt, PlatformSpace as z, AvatarData as zn, read as zt };
7962
+ export { DedicatedTokenData as $, StreamText as $t, isFusorEvent as A, ContactEmail as An, Reply as At, PlatformUser as B, AvatarData as Bn, readSchema as Bt, FusorVerify as C, reaction as Cn, typing as Ct, WebhookRawResult as D, Contact as Dn, asRichlink as Dt, WebhookRawRequest as E, custom as En, Richlink as Et, PlatformInstance as F, asContact as Fn, rename as Ft, SpaceNamespace as G, buildPhotoAction as Gn, asPoll as Gt, ProviderMessageRecord as H, avatar as Hn, PollChoice as Ht, PlatformMessage as I, contact as In, renameSchema as It, broadcast as J, AppLayout as Jn, poll as Jt, Broadcaster as K, photoActionSchema as Kn, asPollOption as Kt, PlatformProviderConfig as L, AgentSender as Ln, Read as Lt, EventProducer as M, ContactName as Mn, reply as Mt, Platform as N, ContactOrg as Nn, replySchema as Nt, FusorEvent as O, ContactAddress as On, richlink as Ot, PlatformDef as P, ContactPhone as Pn, Rename as Pt, CloudPlatform as Q, appLayoutSchema as Qn, DeltaExtractor as Qt, PlatformRuntime as R, User as Rn, asRead as Rt, FusorRespond as S, asReaction as Sn, Typing as St, WebhookHandler as T, asCustom as Tn, text as Tt, ProviderUserRecord as U, avatarSchema as Un, PollChoiceInput as Ut, ProviderMessage as V, AvatarInput as Vn, Poll as Vt, SchemaMessage as W, PhotoInput as Wn, PollOption as Wt, stream as X, AppUrl as Xn, asMarkdown as Xt, mergeStreams as Y, AppOptions as Yn, Markdown as Yt, Store as Z, app as Zn, markdown as Zt, FusorClient as _, leaveSpaceSchema as _n, asVoice as _t, Content as a, groupSchema as an, ProjectProfile as at, FusorMessagesReturn as b, Reaction as bn, asUnsend as bt, fromVCard as c, Message as cn, SlackTokenData as ct, UnsupportedKind as d, LeaveSpace as dn, SubscriptionStatus as dt, StreamTextSource as en, FusorTokenData as et, Spectrum as f, MemberInput as fn, TokenData as ft, isFusorClient as g, leaveSpace as gn, Voice as gt, fusor as h, addMemberSchema as hn, EmojiKey as ht, attachment as i, group as in, ProjectData as it, AnyPlatformDef as j, ContactInput as jn, asReply as jt, fusorEvent as k, ContactDetails as kn, resolveContents as kt, toVCard as l, Space as ln, SpectrumCloudError as lt, definePlatform as m, addMember as mn, Emoji as mt, AttachmentInput as n, Group as nn, PlatformStatus as nt, ContentBuilder as o, Edit as on, SharedTokenData as ot, SpectrumInstance as p, RemoveMember as pn, cloud as pt, ManagedStream as q, App as qn, option as qt, asAttachment as r, asGroup as rn, PlatformsData as rt, ContentInput as s, edit as sn, SlackTeamMeta as st, Attachment as t, TextStreamOptions as tn, ImessageInfoData as tt, UnsupportedError as u, AddMember as un, SubscriptionData as ut, FusorMessages as v, removeMember as vn, voice as vt, FusorVerifyRequest as w, reactionSchema as wn, asText as wt, FusorReply as x, ReactionBuilder as xn, unsend as xt, FusorMessagesCtx as y, removeMemberSchema as yn, Unsend as yt, PlatformSpace as z, Avatar as zn, read as zt };
@@ -1,4 +1,4 @@
1
- import { Cn as reactionSchema, Dt as asRichlink, Gn as photoActionSchema, Gt as asPollOption, H as ProviderMessageRecord, Hn as avatarSchema, It as renameSchema, Nt as replySchema, Pn as asContact, Rt as asRead, U as ProviderUserRecord, Un as PhotoInput, Wn as buildPhotoAction, Wt as asPoll, Yt as asMarkdown, _t as asVoice, bt as asUnsend, gn as leaveSpaceSchema, in as groupSchema, jt as asReply, mn as addMemberSchema, nn as asGroup, q as ManagedStream, r as asAttachment, vn as removeMemberSchema, wn as asCustom, wt as asText, xn as asReaction } from "./attachment-X4ELx4B2.js";
1
+ import { Bt as readSchema, Dt as asRichlink, Fn as asContact, Gn as buildPhotoAction, Gt as asPoll, H as ProviderMessageRecord, It as renameSchema, Kn as photoActionSchema, Kt as asPollOption, Nt as replySchema, Rt as asRead, Sn as asReaction, Tn as asCustom, U as ProviderUserRecord, Un as avatarSchema, Wn as PhotoInput, Xt as asMarkdown, _n as leaveSpaceSchema, _t as asVoice, an as groupSchema, bt as asUnsend, hn as addMemberSchema, jt as asReply, q as ManagedStream, r as asAttachment, rn as asGroup, wn as reactionSchema, wt as asText, yn as removeMemberSchema } from "./attachment-DYRlQfUs.js";
2
2
  import z from "zod";
3
3
  import { FetchSpanOptions, LogAttrs, LogAttrs as LogAttrs$1, LogLevel, PhotonLogger, SanitizeUrlOptions, createLogger, sanitizeEmail, sanitizeErrorMessage, sanitizePhone, sanitizeUrl, setLogLevel } from "@photon-ai/otel";
4
4
  import { Token } from "marked";
@@ -192,4 +192,4 @@ interface TokenRenewalOptions {
192
192
  }
193
193
  declare const createTokenRenewal: (options: TokenRenewalOptions) => TokenRenewal;
194
194
  //#endregion
195
- export { type CloseableAsyncIterable, type LogAttrs, type LogLevel, type PhotoInput, type PhotonLogger, type ProviderMessageRecord, type ProviderUserRecord, type ResumableStreamItem, type SanitizeUrlOptions, type TokenRenewal, type TokenRenewalOptions, addMemberSchema, asAttachment, asContact, asCustom, asGroup, asMarkdown, asPoll, asPollOption, asReaction, asRead, asReply, asRichlink, asText, asUnsend, asVoice, avatarSchema, buildPhotoAction, createLogger, createTokenRenewal, ensureM4a, envAwareConfig, envFor, errorAttrs, fromEnv, groupSchema, leaveSpaceSchema, messageEffectSchema, photoActionSchema, reactionSchema, removeMemberSchema, renameSchema, renderInlineTokens, replySchema, resumableOrderedStream, sanitizeEmail, sanitizeErrorMessage, sanitizePhone, sanitizeUrl, setLogLevel, tracedFetch };
195
+ export { type CloseableAsyncIterable, type LogAttrs, type LogLevel, type PhotoInput, type PhotonLogger, type ProviderMessageRecord, type ProviderUserRecord, type ResumableStreamItem, type SanitizeUrlOptions, type TokenRenewal, type TokenRenewalOptions, addMemberSchema, asAttachment, asContact, asCustom, asGroup, asMarkdown, asPoll, asPollOption, asReaction, asRead, asReply, asRichlink, asText, asUnsend, asVoice, avatarSchema, buildPhotoAction, createLogger, createTokenRenewal, ensureM4a, envAwareConfig, envFor, errorAttrs, fromEnv, groupSchema, leaveSpaceSchema, messageEffectSchema, photoActionSchema, reactionSchema, readSchema, removeMemberSchema, renameSchema, renderInlineTokens, replySchema, resumableOrderedStream, sanitizeEmail, sanitizeErrorMessage, sanitizePhone, sanitizeUrl, setLogLevel, tracedFetch };
package/dist/authoring.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as asCustom, A as reactionSchema, B as removeMemberSchema, C as replySchema, E as asRead, I as addMemberSchema, J as asText, K as groupSchema, M as asPollOption, O as asReaction, R as leaveSpaceSchema, T as renameSchema, U as markdownSchema, V as asMarkdown, W as asGroup, X as textSchema, _ as asUnsend, a as createTokenRenewal, ct as photoActionSchema, dt as attachmentSchema, f as envAwareConfig, h as asVoice, i as stream, j as asPoll, lt as asAttachment, m as fromEnv, ot as avatarSchema, p as envFor, pt as tracedFetch, s as errorAttrs, st as buildPhotoAction, tt as asContact, u as renderInlineTokens, x as asReply, y as asRichlink } from "./stream-4VQBWgZQ.js";
1
+ import { C as replySchema, E as asRead, G as asGroup, H as asMarkdown, L as addMemberSchema, M as asPoll, N as asPollOption, O as readSchema, T as renameSchema, V as removeMemberSchema, W as markdownSchema, Y as asText, Z as textSchema, _ as asUnsend, a as createTokenRenewal, ct as buildPhotoAction, et as asCustom, f as envAwareConfig, ft as attachmentSchema, h as asVoice, i as stream, j as reactionSchema, k as asReaction, lt as photoActionSchema, m as fromEnv, mt as tracedFetch, nt as asContact, p as envFor, q as groupSchema, s as errorAttrs, st as avatarSchema, u as renderInlineTokens, ut as asAttachment, x as asReply, y as asRichlink, z as leaveSpaceSchema } from "./stream-BCNqsDU_.js";
2
2
  import z from "zod";
3
3
  import { createLogger, createLogger as createLogger$1, sanitizeEmail, sanitizeErrorMessage, sanitizePhone, sanitizeUrl, setLogLevel } from "@photon-ai/otel";
4
4
  import { mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
@@ -422,4 +422,4 @@ const resumableOrderedStream = (options) => stream((emit, end) => {
422
422
  };
423
423
  });
424
424
  //#endregion
425
- export { addMemberSchema, asAttachment, asContact, asCustom, asGroup, asMarkdown, asPoll, asPollOption, asReaction, asRead, asReply, asRichlink, asText, asUnsend, asVoice, avatarSchema, buildPhotoAction, createLogger, createTokenRenewal, ensureM4a, envAwareConfig, envFor, errorAttrs, fromEnv, groupSchema, leaveSpaceSchema, messageEffectSchema, photoActionSchema, reactionSchema, removeMemberSchema, renameSchema, renderInlineTokens, replySchema, resumableOrderedStream, sanitizeEmail, sanitizeErrorMessage, sanitizePhone, sanitizeUrl, setLogLevel, tracedFetch };
425
+ export { addMemberSchema, asAttachment, asContact, asCustom, asGroup, asMarkdown, asPoll, asPollOption, asReaction, asRead, asReply, asRichlink, asText, asUnsend, asVoice, avatarSchema, buildPhotoAction, createLogger, createTokenRenewal, ensureM4a, envAwareConfig, envFor, errorAttrs, fromEnv, groupSchema, leaveSpaceSchema, messageEffectSchema, photoActionSchema, reactionSchema, readSchema, removeMemberSchema, renameSchema, renderInlineTokens, replySchema, resumableOrderedStream, sanitizeEmail, sanitizeErrorMessage, sanitizePhone, sanitizeUrl, setLogLevel, tracedFetch };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as DedicatedTokenData, $t as StreamTextSource, A as isFusorEvent, An as ContactInput, At as Reply, B as PlatformUser, Bn as AvatarInput, Bt as Poll, C as FusorVerify, Ct as typing, D as WebhookRawResult, Dn as ContactAddress, E as WebhookRawRequest, En as Contact, Et as Richlink, F as PlatformInstance, Fn as contact, Ft as rename, G as SpaceNamespace, Ht as PollChoiceInput, I as PlatformMessage, In as AgentSender, J as broadcast, Jn as AppOptions, Jt as Markdown, K as Broadcaster, Kn as App, Kt as option, L as PlatformProviderConfig, Ln as User, Lt as Read, M as EventProducer, Mn as ContactOrg, Mt as reply, N as Platform, Nn as ContactPhone, O as FusorEvent, On as ContactDetails, Ot as richlink, P as PlatformDef, Pt as Rename, Q as CloudPlatform, Qt as StreamText, R as PlatformRuntime, Rn as Avatar, S as FusorRespond, Sn as reaction, St as Typing, T as WebhookHandler, Tn as custom, Tt as text, Ut as PollOption, V as ProviderMessage, Vn as avatar, Vt as PollChoice, W as SchemaMessage, X as stream, Xn as app, Xt as markdown, Y as mergeStreams, Yn as AppUrl, Z as Store, Zn as appLayoutSchema, Zt as DeltaExtractor, _ as FusorClient, _n as removeMember, a as Content, an as Edit, at as ProjectProfile, b as FusorMessagesReturn, bn as ReactionBuilder, c as fromVCard, cn as Space, ct as SlackTokenData, d as UnsupportedKind, dn as MemberInput, dt as SubscriptionStatus, en as TextStreamOptions, et as FusorTokenData, f as Spectrum, fn as RemoveMember, ft as TokenData, g as isFusorClient, gt as Voice, h as fusor, hn as leaveSpace, ht as EmojiKey, i as attachment, it as ProjectData, j as AnyPlatformDef, jn as ContactName, k as fusorEvent, kn as ContactEmail, kt as resolveContents, l as toVCard, ln as AddMember, lt as SpectrumCloudError, m as definePlatform, mt as Emoji, n as AttachmentInput, nt as PlatformStatus, o as ContentBuilder, on as edit, ot as SharedTokenData, p as SpectrumInstance, pn as addMember, pt as cloud, q as ManagedStream, qn as AppLayout, qt as poll, rn as group, rt as PlatformsData, s as ContentInput, sn as Message, st as SlackTeamMeta, t as Attachment, tn as Group, tt as ImessageInfoData, u as UnsupportedError, un as LeaveSpace, ut as SubscriptionData, v as FusorMessages, vt as voice, w as FusorVerifyRequest, x as FusorReply, xt as unsend, y as FusorMessagesCtx, yn as Reaction, yt as Unsend, z as PlatformSpace, zn as AvatarData, zt as read } from "./attachment-X4ELx4B2.js";
1
+ import { $ as DedicatedTokenData, $t as StreamText, A as isFusorEvent, An as ContactEmail, At as Reply, B as PlatformUser, Bn as AvatarData, C as FusorVerify, Cn as reaction, Ct as typing, D as WebhookRawResult, Dn as Contact, E as WebhookRawRequest, En as custom, Et as Richlink, F as PlatformInstance, Ft as rename, G as SpaceNamespace, Hn as avatar, Ht as PollChoice, I as PlatformMessage, In as contact, J as broadcast, Jn as AppLayout, Jt as poll, K as Broadcaster, L as PlatformProviderConfig, Ln as AgentSender, Lt as Read, M as EventProducer, Mn as ContactName, Mt as reply, N as Platform, Nn as ContactOrg, O as FusorEvent, On as ContactAddress, Ot as richlink, P as PlatformDef, Pn as ContactPhone, Pt as Rename, Q as CloudPlatform, Qn as appLayoutSchema, Qt as DeltaExtractor, R as PlatformRuntime, Rn as User, S as FusorRespond, St as Typing, T as WebhookHandler, Tt as text, Ut as PollChoiceInput, V as ProviderMessage, Vn as AvatarInput, Vt as Poll, W as SchemaMessage, Wt as PollOption, X as stream, Xn as AppUrl, Y as mergeStreams, Yn as AppOptions, Yt as Markdown, Z as Store, Zn as app, Zt as markdown, _ as FusorClient, a as Content, at as ProjectProfile, b as FusorMessagesReturn, bn as Reaction, c as fromVCard, cn as Message, ct as SlackTokenData, d as UnsupportedKind, dn as LeaveSpace, dt as SubscriptionStatus, en as StreamTextSource, et as FusorTokenData, f as Spectrum, fn as MemberInput, ft as TokenData, g as isFusorClient, gn as leaveSpace, gt as Voice, h as fusor, ht as EmojiKey, i as attachment, in as group, it as ProjectData, j as AnyPlatformDef, jn as ContactInput, k as fusorEvent, kn as ContactDetails, kt as resolveContents, l as toVCard, ln as Space, lt as SpectrumCloudError, m as definePlatform, mn as addMember, mt as Emoji, n as AttachmentInput, nn as Group, nt as PlatformStatus, o as ContentBuilder, on as Edit, ot as SharedTokenData, p as SpectrumInstance, pn as RemoveMember, pt as cloud, q as ManagedStream, qn as App, qt as option, rt as PlatformsData, s as ContentInput, sn as edit, st as SlackTeamMeta, t as Attachment, tn as TextStreamOptions, tt as ImessageInfoData, u as UnsupportedError, un as AddMember, ut as SubscriptionData, v as FusorMessages, vn as removeMember, vt as voice, w as FusorVerifyRequest, x as FusorReply, xn as ReactionBuilder, xt as unsend, y as FusorMessagesCtx, yt as Unsend, z as PlatformSpace, zn as Avatar, zt as read } from "./attachment-DYRlQfUs.js";
2
2
  export { type AddMember, type AgentSender, type AnyPlatformDef, type App, type AppLayout, type AppOptions, type AppUrl, type Attachment, type AttachmentInput, type Avatar, type AvatarData, type AvatarInput, type Broadcaster, type CloudPlatform, type Contact, type ContactAddress, type ContactDetails, type ContactEmail, type ContactInput, type ContactName, type ContactOrg, type ContactPhone, type Content, type ContentBuilder, type ContentInput, type DedicatedTokenData, type DeltaExtractor, type Edit, Emoji, type EmojiKey, type EventProducer, type FusorClient, type FusorEvent, type FusorMessages, type FusorMessagesCtx, type FusorMessagesReturn, type FusorReply, type FusorRespond, type FusorTokenData, type FusorVerify, type FusorVerifyRequest, type Group, type ImessageInfoData, type LeaveSpace, type ManagedStream, type Markdown, type MemberInput, type Message, type Platform, type PlatformDef, type PlatformInstance, type PlatformMessage, type PlatformProviderConfig, type PlatformRuntime, type PlatformSpace, type PlatformStatus, type PlatformUser, type PlatformsData, type Poll, type PollChoice, type PollChoiceInput, type PollOption, type ProjectData, type ProjectProfile, type ProviderMessage, type Reaction, type ReactionBuilder, type Read, type RemoveMember, type Rename, type Reply, type Richlink, type SchemaMessage, type SharedTokenData, type SlackTeamMeta, type SlackTokenData, type Space, type SpaceNamespace, Spectrum, SpectrumCloudError, type SpectrumInstance, type Store, type StreamText, type StreamTextSource, type SubscriptionData, type SubscriptionStatus, type TextStreamOptions, type TokenData, type Typing, type Unsend, UnsupportedError, type UnsupportedKind, type User, type Voice, type WebhookHandler, type WebhookRawRequest, type WebhookRawResult, addMember, app, appLayoutSchema, attachment, avatar, broadcast, cloud, contact, custom, definePlatform, edit, fromVCard, fusor, fusorEvent, group, isFusorClient, isFusorEvent, leaveSpace, markdown, mergeStreams, option, poll, reaction, read, removeMember, rename, reply, resolveContents, richlink, stream, text, toVCard, typing, unsend, voice };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as asCustom, B as removeMemberSchema, D as read, F as addMember, G as group, H as markdown, I as addMemberSchema, J as asText, L as leaveSpace, N as option, P as poll, Q as drainStreamText, R as leaveSpaceSchema, S as reply, T as renameSchema, V as asMarkdown, Y as text, Z as StreamConsumedError, a as createTokenRenewal, at as avatar, b as richlink, c as senderAttrs, d as classifyIdentifier, et as custom, f as envAwareConfig, ft as fetchUrlBytes, g as voice, h as asVoice, i as stream, it as toVCard, k as reaction, l as markdownToPlainText, lt as asAttachment, n as createAsyncQueue, nt as contact, o as contentAttrs, ot as avatarSchema, p as envFor, pt as tracedFetch, q as resolveContents, r as mergeStreams, rt as fromVCard, s as errorAttrs, t as broadcast, tt as asContact, ut as attachment, v as unsend, w as rename, z as removeMember } from "./stream-4VQBWgZQ.js";
1
+ import { $ as drainStreamText, A as reaction, B as removeMember, D as read, F as poll, H as asMarkdown, I as addMember, J as resolveContents, K as group, L as addMemberSchema, P as option, Q as StreamConsumedError, R as leaveSpace, S as reply, T as renameSchema, U as markdown, V as removeMemberSchema, X as text, Y as asText, a as createTokenRenewal, at as toVCard, b as richlink, c as senderAttrs, d as classifyIdentifier, dt as attachment, et as asCustom, f as envAwareConfig, g as voice, h as asVoice, i as stream, it as fromVCard, l as markdownToPlainText, mt as tracedFetch, n as createAsyncQueue, nt as asContact, o as contentAttrs, ot as avatar, p as envFor, pt as fetchUrlBytes, r as mergeStreams, rt as contact, s as errorAttrs, st as avatarSchema, t as broadcast, tt as custom, ut as asAttachment, v as unsend, w as rename, z as leaveSpaceSchema } from "./stream-BCNqsDU_.js";
2
2
  import z from "zod";
3
3
  import ogs from "open-graph-scraper";
4
4
  import { createLogger, setLogLevel, setupOtel, withSpan } from "@photon-ai/otel";
@@ -2524,6 +2524,14 @@ const wrapNestedContent = (content, ctx, direction) => {
2524
2524
  };
2525
2525
  return content;
2526
2526
  }
2527
+ if (content.type === "read") {
2528
+ const target = content.target;
2529
+ if (isRawProviderRecord(target)) return {
2530
+ ...content,
2531
+ target: wrapProviderMessage(target, ctx, "outbound")
2532
+ };
2533
+ return content;
2534
+ }
2527
2535
  if (content.type === "group") {
2528
2536
  const items = content.items.map((item) => {
2529
2537
  const raw = item;
@@ -3011,7 +3019,7 @@ function definePlatform(platformId, rawDef) {
3011
3019
  }
3012
3020
  //#endregion
3013
3021
  //#region src/build-env.ts
3014
- const SPECTRUM_SDK_VERSION = "12.3.0";
3022
+ const SPECTRUM_SDK_VERSION = "12.5.0";
3015
3023
  //#endregion
3016
3024
  //#region src/utils/provider-packages.ts
3017
3025
  const OFFICIAL_PROVIDER_PACKAGES = {
@@ -3715,6 +3723,7 @@ const mapContent = (content, platform, spaceRef, ctx) => {
3715
3723
  };
3716
3724
  case "contact": return deserializeContact(raw);
3717
3725
  case "reaction": return deserializeReaction(raw, spaceRef);
3726
+ case "read": return deserializeRead(raw, spaceRef);
3718
3727
  case "reply": return deserializeReply(raw, platform, spaceRef, ctx);
3719
3728
  case "group": return deserializeGroup(raw, platform, spaceRef, ctx);
3720
3729
  case "attachment": return deserializeAttachment(raw, platform, spaceRef, ctx);
@@ -3786,6 +3795,13 @@ const deserializeReaction = (raw, spaceRef) => ({
3786
3795
  emoji: asString(raw.emoji),
3787
3796
  target: buildTargetRecord(raw.target, spaceRef)
3788
3797
  });
3798
+ const deserializeRead = (raw, spaceRef) => ({
3799
+ type: "read",
3800
+ target: {
3801
+ ...buildTargetRecord(raw.target, spaceRef),
3802
+ direction: "outbound"
3803
+ }
3804
+ });
3789
3805
  const deserializeReply = (raw, platform, spaceRef, ctx) => ({
3790
3806
  type: "reply",
3791
3807
  content: isRecord(raw.content) ? deserializeContent(raw.content, platform, spaceRef, ctx) : asCustom(raw.content),
@@ -1825,4 +1825,4 @@ function broadcast(source) {
1825
1825
  };
1826
1826
  }
1827
1827
  //#endregion
1828
- export { asCustom as $, reactionSchema as A, removeMemberSchema as B, replySchema as C, read as D, asRead as E, addMember as F, group as G, markdown as H, addMemberSchema as I, asText as J, groupSchema as K, leaveSpace as L, asPollOption as M, option as N, asReaction as O, poll as P, drainStreamText as Q, leaveSpaceSchema as R, reply as S, renameSchema as T, markdownSchema as U, asMarkdown as V, asGroup as W, textSchema as X, text as Y, StreamConsumedError as Z, asUnsend as _, createTokenRenewal as a, avatar as at, richlink as b, senderAttrs as c, photoActionSchema as ct, classifyIdentifier as d, attachmentSchema as dt, custom as et, envAwareConfig as f, fetchUrlBytes as ft, voice as g, asVoice as h, stream as i, toVCard as it, asPoll as j, reaction as k, markdownToPlainText as l, asAttachment as lt, fromEnv as m, createAsyncQueue as n, contact as nt, contentAttrs as o, avatarSchema as ot, envFor as p, tracedFetch as pt, resolveContents as q, mergeStreams as r, fromVCard as rt, errorAttrs as s, buildPhotoAction as st, broadcast as t, asContact as tt, renderInlineTokens as u, attachment as ut, unsend as v, rename as w, asReply as x, asRichlink as y, removeMember as z };
1828
+ export { drainStreamText as $, reaction as A, removeMember as B, replySchema as C, read as D, asRead as E, poll as F, asGroup as G, asMarkdown as H, addMember as I, resolveContents as J, group as K, addMemberSchema as L, asPoll as M, asPollOption as N, readSchema as O, option as P, StreamConsumedError as Q, leaveSpace as R, reply as S, renameSchema as T, markdown as U, removeMemberSchema as V, markdownSchema as W, text as X, asText as Y, textSchema as Z, asUnsend as _, createTokenRenewal as a, toVCard as at, richlink as b, senderAttrs as c, buildPhotoAction as ct, classifyIdentifier as d, attachment as dt, asCustom as et, envAwareConfig as f, attachmentSchema as ft, voice as g, asVoice as h, stream as i, fromVCard as it, reactionSchema as j, asReaction as k, markdownToPlainText as l, photoActionSchema as lt, fromEnv as m, tracedFetch as mt, createAsyncQueue as n, asContact as nt, contentAttrs as o, avatar as ot, envFor as p, fetchUrlBytes as pt, groupSchema as q, mergeStreams as r, contact as rt, errorAttrs as s, avatarSchema as st, broadcast as t, custom as tt, renderInlineTokens as u, asAttachment as ut, unsend as v, rename as w, asReply as x, asRichlink as y, leaveSpaceSchema as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-ts/core",
3
- "version": "12.3.0",
3
+ "version": "12.5.0",
4
4
  "description": "The spectrum-ts runtime — Spectrum, content builders, fusor, and the provider authoring API.",
5
5
  "repository": {
6
6
  "type": "git",