@spectrum-ts/core 11.0.0 → 11.2.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.
@@ -592,6 +592,14 @@ interface Message<TPlatform extends string = string, TSender extends User = User
592
592
  declare const editSchema: z.ZodObject<{
593
593
  type: z.ZodLiteral<"edit">;
594
594
  content: z.ZodCustom<{
595
+ type: "attachment";
596
+ id: string;
597
+ name: string;
598
+ mimeType: string;
599
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
600
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
601
+ size?: number | undefined;
602
+ } | {
595
603
  type: "contact";
596
604
  user?: {
597
605
  __platform: string;
@@ -635,13 +643,17 @@ declare const editSchema: z.ZodObject<{
635
643
  } | undefined;
636
644
  raw?: unknown;
637
645
  } | {
638
- type: "attachment";
639
- id: string;
640
- name: string;
641
- mimeType: string;
642
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
643
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
644
- size?: number | undefined;
646
+ type: "custom";
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>>[];
645
657
  } | {
646
658
  type: "poll";
647
659
  title: string;
@@ -663,17 +675,9 @@ declare const editSchema: z.ZodObject<{
663
675
  selected: boolean;
664
676
  title: string;
665
677
  } | {
666
- type: "custom";
667
- raw: unknown;
668
- } | {
669
- type: "text";
670
- text: string;
671
- } | {
672
- type: "markdown";
673
- markdown: string;
674
- } | {
675
- type: "group";
676
- items: Message<string, User, Space<unknown>>[];
678
+ type: "reaction";
679
+ emoji: string;
680
+ target: Message<string, User, Space<unknown>>;
677
681
  } | {
678
682
  type: "streamText";
679
683
  stream: () => AsyncIterable<string>;
@@ -683,6 +687,7 @@ declare const editSchema: z.ZodObject<{
683
687
  mimeType: string;
684
688
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
685
689
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
690
+ id?: string | undefined;
686
691
  name?: string | undefined;
687
692
  duration?: number | undefined;
688
693
  size?: number | undefined;
@@ -703,10 +708,6 @@ declare const editSchema: z.ZodObject<{
703
708
  summary: z.ZodOptional<z.ZodString>;
704
709
  }, z.core.$strip>>>;
705
710
  live?: boolean | undefined;
706
- } | {
707
- type: "reaction";
708
- emoji: string;
709
- target: Message<string, User, Space<unknown>>;
710
711
  } | {
711
712
  type: "effect";
712
713
  content: {
@@ -749,6 +750,14 @@ declare const editSchema: z.ZodObject<{
749
750
  } | {
750
751
  type: "leaveSpace";
751
752
  }, {
753
+ type: "attachment";
754
+ id: string;
755
+ name: string;
756
+ mimeType: string;
757
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
758
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
759
+ size?: number | undefined;
760
+ } | {
752
761
  type: "contact";
753
762
  user?: {
754
763
  __platform: string;
@@ -792,13 +801,17 @@ declare const editSchema: z.ZodObject<{
792
801
  } | undefined;
793
802
  raw?: unknown;
794
803
  } | {
795
- type: "attachment";
796
- id: string;
797
- name: string;
798
- mimeType: string;
799
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
800
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
801
- size?: number | undefined;
804
+ type: "custom";
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>>[];
802
815
  } | {
803
816
  type: "poll";
804
817
  title: string;
@@ -820,17 +833,9 @@ declare const editSchema: z.ZodObject<{
820
833
  selected: boolean;
821
834
  title: string;
822
835
  } | {
823
- type: "custom";
824
- raw: unknown;
825
- } | {
826
- type: "text";
827
- text: string;
828
- } | {
829
- type: "markdown";
830
- markdown: string;
831
- } | {
832
- type: "group";
833
- items: Message<string, User, Space<unknown>>[];
836
+ type: "reaction";
837
+ emoji: string;
838
+ target: Message<string, User, Space<unknown>>;
834
839
  } | {
835
840
  type: "streamText";
836
841
  stream: () => AsyncIterable<string>;
@@ -840,6 +845,7 @@ declare const editSchema: z.ZodObject<{
840
845
  mimeType: string;
841
846
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
842
847
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
848
+ id?: string | undefined;
843
849
  name?: string | undefined;
844
850
  duration?: number | undefined;
845
851
  size?: number | undefined;
@@ -860,10 +866,6 @@ declare const editSchema: z.ZodObject<{
860
866
  summary: z.ZodOptional<z.ZodString>;
861
867
  }, z.core.$strip>>>;
862
868
  live?: boolean | undefined;
863
- } | {
864
- type: "reaction";
865
- emoji: string;
866
- target: Message<string, User, Space<unknown>>;
867
869
  } | {
868
870
  type: "effect";
869
871
  content: {
@@ -1136,6 +1138,14 @@ declare function rename(displayName: string): ContentBuilder;
1136
1138
  declare const replySchema: z.ZodObject<{
1137
1139
  type: z.ZodLiteral<"reply">;
1138
1140
  content: z.ZodCustom<{
1141
+ type: "attachment";
1142
+ id: string;
1143
+ name: string;
1144
+ mimeType: string;
1145
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1146
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1147
+ size?: number | undefined;
1148
+ } | {
1139
1149
  type: "contact";
1140
1150
  user?: {
1141
1151
  __platform: string;
@@ -1179,13 +1189,17 @@ declare const replySchema: z.ZodObject<{
1179
1189
  } | undefined;
1180
1190
  raw?: unknown;
1181
1191
  } | {
1182
- type: "attachment";
1183
- id: string;
1184
- name: string;
1185
- mimeType: string;
1186
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1187
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1188
- size?: number | undefined;
1192
+ type: "custom";
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>>[];
1189
1203
  } | {
1190
1204
  type: "poll";
1191
1205
  title: string;
@@ -1207,17 +1221,9 @@ declare const replySchema: z.ZodObject<{
1207
1221
  selected: boolean;
1208
1222
  title: string;
1209
1223
  } | {
1210
- type: "custom";
1211
- raw: unknown;
1212
- } | {
1213
- type: "text";
1214
- text: string;
1215
- } | {
1216
- type: "markdown";
1217
- markdown: string;
1218
- } | {
1219
- type: "group";
1220
- items: Message<string, User, Space<unknown>>[];
1224
+ type: "reaction";
1225
+ emoji: string;
1226
+ target: Message<string, User, Space<unknown>>;
1221
1227
  } | {
1222
1228
  type: "streamText";
1223
1229
  stream: () => AsyncIterable<string>;
@@ -1227,6 +1233,7 @@ declare const replySchema: z.ZodObject<{
1227
1233
  mimeType: string;
1228
1234
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1229
1235
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1236
+ id?: string | undefined;
1230
1237
  name?: string | undefined;
1231
1238
  duration?: number | undefined;
1232
1239
  size?: number | undefined;
@@ -1247,10 +1254,6 @@ declare const replySchema: z.ZodObject<{
1247
1254
  summary: z.ZodOptional<z.ZodString>;
1248
1255
  }, z.core.$strip>>>;
1249
1256
  live?: boolean | undefined;
1250
- } | {
1251
- type: "reaction";
1252
- emoji: string;
1253
- target: Message<string, User, Space<unknown>>;
1254
1257
  } | {
1255
1258
  type: "effect";
1256
1259
  content: {
@@ -1293,6 +1296,14 @@ declare const replySchema: z.ZodObject<{
1293
1296
  } | {
1294
1297
  type: "leaveSpace";
1295
1298
  }, {
1299
+ type: "attachment";
1300
+ id: string;
1301
+ name: string;
1302
+ mimeType: string;
1303
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1304
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1305
+ size?: number | undefined;
1306
+ } | {
1296
1307
  type: "contact";
1297
1308
  user?: {
1298
1309
  __platform: string;
@@ -1336,13 +1347,17 @@ declare const replySchema: z.ZodObject<{
1336
1347
  } | undefined;
1337
1348
  raw?: unknown;
1338
1349
  } | {
1339
- type: "attachment";
1340
- id: string;
1341
- name: string;
1342
- mimeType: string;
1343
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1344
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1345
- size?: number | undefined;
1350
+ type: "custom";
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>>[];
1346
1361
  } | {
1347
1362
  type: "poll";
1348
1363
  title: string;
@@ -1364,17 +1379,9 @@ declare const replySchema: z.ZodObject<{
1364
1379
  selected: boolean;
1365
1380
  title: string;
1366
1381
  } | {
1367
- type: "custom";
1368
- raw: unknown;
1369
- } | {
1370
- type: "text";
1371
- text: string;
1372
- } | {
1373
- type: "markdown";
1374
- markdown: string;
1375
- } | {
1376
- type: "group";
1377
- items: Message<string, User, Space<unknown>>[];
1382
+ type: "reaction";
1383
+ emoji: string;
1384
+ target: Message<string, User, Space<unknown>>;
1378
1385
  } | {
1379
1386
  type: "streamText";
1380
1387
  stream: () => AsyncIterable<string>;
@@ -1384,6 +1391,7 @@ declare const replySchema: z.ZodObject<{
1384
1391
  mimeType: string;
1385
1392
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1386
1393
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1394
+ id?: string | undefined;
1387
1395
  name?: string | undefined;
1388
1396
  duration?: number | undefined;
1389
1397
  size?: number | undefined;
@@ -1404,10 +1412,6 @@ declare const replySchema: z.ZodObject<{
1404
1412
  summary: z.ZodOptional<z.ZodString>;
1405
1413
  }, z.core.$strip>>>;
1406
1414
  live?: boolean | undefined;
1407
- } | {
1408
- type: "reaction";
1409
- emoji: string;
1410
- target: Message<string, User, Space<unknown>>;
1411
1415
  } | {
1412
1416
  type: "effect";
1413
1417
  content: {
@@ -1562,6 +1566,9 @@ declare const unsendSchema: z.ZodObject<{
1562
1566
  target: z.ZodCustom<Message<string, User, Space<unknown>>, Message<string, User, Space<unknown>>>;
1563
1567
  }, z.core.$strip>;
1564
1568
  type Unsend = z.infer<typeof unsendSchema>;
1569
+ declare const asUnsend: (input: {
1570
+ target: Message;
1571
+ }) => Unsend;
1565
1572
  /**
1566
1573
  * Construct an `unsend` content value retracting `target`.
1567
1574
  *
@@ -1578,6 +1585,7 @@ declare function unsend(target: Message | undefined): ContentBuilder;
1578
1585
  //#region src/content/voice.d.ts
1579
1586
  declare const voiceSchema: z.ZodObject<{
1580
1587
  type: z.ZodLiteral<"voice">;
1588
+ id: z.ZodOptional<z.ZodString>;
1581
1589
  name: z.ZodOptional<z.ZodString>;
1582
1590
  mimeType: z.ZodString;
1583
1591
  duration: z.ZodOptional<z.ZodNumber>;
@@ -1588,6 +1596,7 @@ declare const voiceSchema: z.ZodObject<{
1588
1596
  type Voice = z.infer<typeof voiceSchema>;
1589
1597
  type VoiceInput = string | Buffer | URL;
1590
1598
  declare const asVoice: (input: {
1599
+ id?: string;
1591
1600
  name?: string;
1592
1601
  mimeType: string;
1593
1602
  duration?: number;
@@ -7003,6 +7012,7 @@ declare const baseContentSchema: z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
7003
7012
  raw: z.ZodOptional<z.ZodUnknown>;
7004
7013
  }, z.core.$strip>, z.ZodObject<{
7005
7014
  type: z.ZodLiteral<"voice">;
7015
+ id: z.ZodOptional<z.ZodString>;
7006
7016
  name: z.ZodOptional<z.ZodString>;
7007
7017
  mimeType: z.ZodString;
7008
7018
  duration: z.ZodOptional<z.ZodNumber>;
@@ -7181,6 +7191,7 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7181
7191
  raw: z.ZodOptional<z.ZodUnknown>;
7182
7192
  }, z.core.$strip>, z.ZodObject<{
7183
7193
  type: z.ZodLiteral<"voice">;
7194
+ id: z.ZodOptional<z.ZodString>;
7184
7195
  name: z.ZodOptional<z.ZodString>;
7185
7196
  mimeType: z.ZodString;
7186
7197
  duration: z.ZodOptional<z.ZodNumber>;
@@ -7278,6 +7289,14 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7278
7289
  }, z.core.$strip>, z.ZodObject<{
7279
7290
  type: z.ZodLiteral<"reply">;
7280
7291
  content: z.ZodCustom<{
7292
+ type: "attachment";
7293
+ id: string;
7294
+ name: string;
7295
+ mimeType: string;
7296
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7297
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7298
+ size?: number | undefined;
7299
+ } | {
7281
7300
  type: "contact";
7282
7301
  user?: {
7283
7302
  __platform: string;
@@ -7321,13 +7340,17 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7321
7340
  } | undefined;
7322
7341
  raw?: unknown;
7323
7342
  } | {
7324
- type: "attachment";
7325
- id: string;
7326
- name: string;
7327
- mimeType: string;
7328
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7329
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7330
- size?: number | undefined;
7343
+ type: "custom";
7344
+ raw: unknown;
7345
+ } | {
7346
+ type: "text";
7347
+ text: string;
7348
+ } | {
7349
+ type: "markdown";
7350
+ markdown: string;
7351
+ } | {
7352
+ type: "group";
7353
+ items: Message<string, User, Space<unknown>>[];
7331
7354
  } | {
7332
7355
  type: "poll";
7333
7356
  title: string;
@@ -7349,17 +7372,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7349
7372
  selected: boolean;
7350
7373
  title: string;
7351
7374
  } | {
7352
- type: "custom";
7353
- raw: unknown;
7354
- } | {
7355
- type: "text";
7356
- text: string;
7357
- } | {
7358
- type: "markdown";
7359
- markdown: string;
7360
- } | {
7361
- type: "group";
7362
- items: Message<string, User, Space<unknown>>[];
7375
+ type: "reaction";
7376
+ emoji: string;
7377
+ target: Message<string, User, Space<unknown>>;
7363
7378
  } | {
7364
7379
  type: "streamText";
7365
7380
  stream: () => AsyncIterable<string>;
@@ -7369,6 +7384,7 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7369
7384
  mimeType: string;
7370
7385
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7371
7386
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7387
+ id?: string | undefined;
7372
7388
  name?: string | undefined;
7373
7389
  duration?: number | undefined;
7374
7390
  size?: number | undefined;
@@ -7389,10 +7405,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7389
7405
  summary: z.ZodOptional<z.ZodString>;
7390
7406
  }, z.core.$strip>>>;
7391
7407
  live?: boolean | undefined;
7392
- } | {
7393
- type: "reaction";
7394
- emoji: string;
7395
- target: Message<string, User, Space<unknown>>;
7396
7408
  } | {
7397
7409
  type: "effect";
7398
7410
  content: {
@@ -7435,6 +7447,14 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7435
7447
  } | {
7436
7448
  type: "leaveSpace";
7437
7449
  }, {
7450
+ type: "attachment";
7451
+ id: string;
7452
+ name: string;
7453
+ mimeType: string;
7454
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7455
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7456
+ size?: number | undefined;
7457
+ } | {
7438
7458
  type: "contact";
7439
7459
  user?: {
7440
7460
  __platform: string;
@@ -7478,13 +7498,17 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7478
7498
  } | undefined;
7479
7499
  raw?: unknown;
7480
7500
  } | {
7481
- type: "attachment";
7482
- id: string;
7483
- name: string;
7484
- mimeType: string;
7485
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7486
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7487
- size?: number | undefined;
7501
+ type: "custom";
7502
+ raw: unknown;
7503
+ } | {
7504
+ type: "text";
7505
+ text: string;
7506
+ } | {
7507
+ type: "markdown";
7508
+ markdown: string;
7509
+ } | {
7510
+ type: "group";
7511
+ items: Message<string, User, Space<unknown>>[];
7488
7512
  } | {
7489
7513
  type: "poll";
7490
7514
  title: string;
@@ -7506,17 +7530,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7506
7530
  selected: boolean;
7507
7531
  title: string;
7508
7532
  } | {
7509
- type: "custom";
7510
- raw: unknown;
7511
- } | {
7512
- type: "text";
7513
- text: string;
7514
- } | {
7515
- type: "markdown";
7516
- markdown: string;
7517
- } | {
7518
- type: "group";
7519
- items: Message<string, User, Space<unknown>>[];
7533
+ type: "reaction";
7534
+ emoji: string;
7535
+ target: Message<string, User, Space<unknown>>;
7520
7536
  } | {
7521
7537
  type: "streamText";
7522
7538
  stream: () => AsyncIterable<string>;
@@ -7526,6 +7542,7 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7526
7542
  mimeType: string;
7527
7543
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7528
7544
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7545
+ id?: string | undefined;
7529
7546
  name?: string | undefined;
7530
7547
  duration?: number | undefined;
7531
7548
  size?: number | undefined;
@@ -7546,10 +7563,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7546
7563
  summary: z.ZodOptional<z.ZodString>;
7547
7564
  }, z.core.$strip>>>;
7548
7565
  live?: boolean | undefined;
7549
- } | {
7550
- type: "reaction";
7551
- emoji: string;
7552
- target: Message<string, User, Space<unknown>>;
7553
7566
  } | {
7554
7567
  type: "effect";
7555
7568
  content: {
@@ -7596,6 +7609,14 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7596
7609
  }, z.core.$strip>, z.ZodObject<{
7597
7610
  type: z.ZodLiteral<"edit">;
7598
7611
  content: z.ZodCustom<{
7612
+ type: "attachment";
7613
+ id: string;
7614
+ name: string;
7615
+ mimeType: string;
7616
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7617
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7618
+ size?: number | undefined;
7619
+ } | {
7599
7620
  type: "contact";
7600
7621
  user?: {
7601
7622
  __platform: string;
@@ -7639,13 +7660,17 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7639
7660
  } | undefined;
7640
7661
  raw?: unknown;
7641
7662
  } | {
7642
- type: "attachment";
7643
- id: string;
7644
- name: string;
7645
- mimeType: string;
7646
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7647
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7648
- size?: number | undefined;
7663
+ type: "custom";
7664
+ raw: unknown;
7665
+ } | {
7666
+ type: "text";
7667
+ text: string;
7668
+ } | {
7669
+ type: "markdown";
7670
+ markdown: string;
7671
+ } | {
7672
+ type: "group";
7673
+ items: Message<string, User, Space<unknown>>[];
7649
7674
  } | {
7650
7675
  type: "poll";
7651
7676
  title: string;
@@ -7667,17 +7692,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7667
7692
  selected: boolean;
7668
7693
  title: string;
7669
7694
  } | {
7670
- type: "custom";
7671
- raw: unknown;
7672
- } | {
7673
- type: "text";
7674
- text: string;
7675
- } | {
7676
- type: "markdown";
7677
- markdown: string;
7678
- } | {
7679
- type: "group";
7680
- items: Message<string, User, Space<unknown>>[];
7695
+ type: "reaction";
7696
+ emoji: string;
7697
+ target: Message<string, User, Space<unknown>>;
7681
7698
  } | {
7682
7699
  type: "streamText";
7683
7700
  stream: () => AsyncIterable<string>;
@@ -7687,6 +7704,7 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7687
7704
  mimeType: string;
7688
7705
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7689
7706
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7707
+ id?: string | undefined;
7690
7708
  name?: string | undefined;
7691
7709
  duration?: number | undefined;
7692
7710
  size?: number | undefined;
@@ -7707,10 +7725,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7707
7725
  summary: z.ZodOptional<z.ZodString>;
7708
7726
  }, z.core.$strip>>>;
7709
7727
  live?: boolean | undefined;
7710
- } | {
7711
- type: "reaction";
7712
- emoji: string;
7713
- target: Message<string, User, Space<unknown>>;
7714
7728
  } | {
7715
7729
  type: "effect";
7716
7730
  content: {
@@ -7753,6 +7767,14 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7753
7767
  } | {
7754
7768
  type: "leaveSpace";
7755
7769
  }, {
7770
+ type: "attachment";
7771
+ id: string;
7772
+ name: string;
7773
+ mimeType: string;
7774
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7775
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7776
+ size?: number | undefined;
7777
+ } | {
7756
7778
  type: "contact";
7757
7779
  user?: {
7758
7780
  __platform: string;
@@ -7796,13 +7818,17 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7796
7818
  } | undefined;
7797
7819
  raw?: unknown;
7798
7820
  } | {
7799
- type: "attachment";
7800
- id: string;
7801
- name: string;
7802
- mimeType: string;
7803
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7804
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7805
- size?: number | undefined;
7821
+ type: "custom";
7822
+ raw: unknown;
7823
+ } | {
7824
+ type: "text";
7825
+ text: string;
7826
+ } | {
7827
+ type: "markdown";
7828
+ markdown: string;
7829
+ } | {
7830
+ type: "group";
7831
+ items: Message<string, User, Space<unknown>>[];
7806
7832
  } | {
7807
7833
  type: "poll";
7808
7834
  title: string;
@@ -7824,17 +7850,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7824
7850
  selected: boolean;
7825
7851
  title: string;
7826
7852
  } | {
7827
- type: "custom";
7828
- raw: unknown;
7829
- } | {
7830
- type: "text";
7831
- text: string;
7832
- } | {
7833
- type: "markdown";
7834
- markdown: string;
7835
- } | {
7836
- type: "group";
7837
- items: Message<string, User, Space<unknown>>[];
7853
+ type: "reaction";
7854
+ emoji: string;
7855
+ target: Message<string, User, Space<unknown>>;
7838
7856
  } | {
7839
7857
  type: "streamText";
7840
7858
  stream: () => AsyncIterable<string>;
@@ -7844,6 +7862,7 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7844
7862
  mimeType: string;
7845
7863
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7846
7864
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7865
+ id?: string | undefined;
7847
7866
  name?: string | undefined;
7848
7867
  duration?: number | undefined;
7849
7868
  size?: number | undefined;
@@ -7864,10 +7883,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7864
7883
  summary: z.ZodOptional<z.ZodString>;
7865
7884
  }, z.core.$strip>>>;
7866
7885
  live?: boolean | undefined;
7867
- } | {
7868
- type: "reaction";
7869
- emoji: string;
7870
- target: Message<string, User, Space<unknown>>;
7871
7886
  } | {
7872
7887
  type: "effect";
7873
7888
  content: {
@@ -7950,4 +7965,4 @@ declare function attachment(input: AttachmentInput, options?: {
7950
7965
  name?: string;
7951
7966
  }): ContentBuilder;
7952
7967
  //#endregion
7953
- export { DedicatedTokenData as $, TextStreamOptions as $t, isFusorEvent as A, ContactName as An, asReply as At, PlatformUser as B, avatar as Bn, PollChoice as Bt, FusorVerify as C, asCustom as Cn, asText as Ct, WebhookRawResult as D, ContactDetails as Dn, richlink as Dt, WebhookRawRequest as E, ContactAddress as En, asRichlink as Et, PlatformInstance as F, AgentSender as Fn, renameSchema as Ft, SpaceNamespace as G, App as Gn, option as Gt, ProviderMessageRecord as H, PhotoInput as Hn, PollOption as Ht, PlatformMessage as I, User as In, Read as It, broadcast as J, AppUrl as Jn, asMarkdown as Jt, Broadcaster as K, AppLayout as Kn, poll as Kt, PlatformProviderConfig as L, Avatar as Ln, asRead as Lt, EventProducer as M, ContactPhone as Mn, replySchema as Mt, Platform as N, asContact as Nn, Rename as Nt, FusorEvent as O, ContactEmail as On, resolveContents as Ot, PlatformDef as P, contact as Pn, rename as Pt, CloudPlatform as Q, StreamTextSource as Qt, PlatformRuntime as R, AvatarData as Rn, read as Rt, FusorRespond as S, reactionSchema as Sn, typing as St, WebhookHandler as T, Contact as Tn, Richlink as Tt, ProviderUserRecord as U, buildPhotoAction as Un, asPoll as Ut, ProviderMessage as V, avatarSchema as Vn, PollChoiceInput as Vt, SchemaMessage as W, photoActionSchema as Wn, asPollOption as Wt, stream as X, appLayoutSchema as Xn, DeltaExtractor as Xt, mergeStreams as Y, app as Yn, markdown as Yt, Store as Z, StreamText as Zt, FusorClient as _, removeMemberSchema as _n, asVoice as _t, Content as a, edit as an, ProjectProfile as at, FusorMessagesReturn as b, asReaction as bn, unsend as bt, fromVCard as c, AddMember as cn, SlackTokenData as ct, UnsupportedKind as d, RemoveMember as dn, SubscriptionStatus as dt, Group as en, FusorTokenData as et, Spectrum as f, addMember as fn, TokenData as ft, isFusorClient as g, removeMember as gn, Voice as gt, fusor as h, leaveSpaceSchema as hn, EmojiKey as ht, attachment as i, Edit as in, ProjectData as it, AnyPlatformDef as j, ContactOrg as jn, reply as jt, fusorEvent as k, ContactInput as kn, Reply as kt, toVCard as l, LeaveSpace as ln, SpectrumCloudError as lt, definePlatform as m, leaveSpace as mn, Emoji as mt, AttachmentInput as n, group as nn, PlatformStatus as nt, ContentBuilder as o, Message as on, SharedTokenData as ot, SpectrumInstance as p, addMemberSchema as pn, cloud as pt, ManagedStream as q, AppOptions as qn, Markdown as qt, asAttachment as r, groupSchema as rn, PlatformsData as rt, ContentInput as s, Space as sn, SlackTeamMeta as st, Attachment as t, asGroup as tn, ImessageInfoData as tt, UnsupportedError as u, MemberInput as un, SubscriptionData as ut, FusorMessages as v, Reaction as vn, voice as vt, FusorVerifyRequest as w, custom as wn, text as wt, FusorReply as x, reaction as xn, Typing as xt, FusorMessagesCtx as y, ReactionBuilder as yn, Unsend as yt, PlatformSpace as z, AvatarInput as zn, Poll as zt };
7968
+ 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 };
@@ -1,4 +1,4 @@
1
- import { At as asReply, Cn as asCustom, Ct as asText, Et as asRichlink, Ft as renameSchema, H as ProviderMessageRecord, Hn as PhotoInput, Jt as asMarkdown, Lt as asRead, Mt as replySchema, Nn as asContact, Sn as reactionSchema, U as ProviderUserRecord, Un as buildPhotoAction, Ut as asPoll, Vn as avatarSchema, Wn as photoActionSchema, Wt as asPollOption, _n as removeMemberSchema, _t as asVoice, bn as asReaction, hn as leaveSpaceSchema, pn as addMemberSchema, q as ManagedStream, r as asAttachment, rn as groupSchema, tn as asGroup } from "./attachment-Cpg2VUkY.js";
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-CtoKMCG2.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";
@@ -178,4 +178,4 @@ declare const resumableOrderedStream: <TLive, TMissed, TOutput>(options: Resumab
178
178
  */
179
179
  declare function errorAttrs(error: unknown, prefix?: string): LogAttrs$1;
180
180
  //#endregion
181
- export { type CloseableAsyncIterable, type LogAttrs, type LogLevel, type PhotoInput, type PhotonLogger, type ProviderMessageRecord, type ProviderUserRecord, type ResumableStreamItem, type SanitizeUrlOptions, addMemberSchema, asAttachment, asContact, asCustom, asGroup, asMarkdown, asPoll, asPollOption, asReaction, asRead, asReply, asRichlink, asText, asVoice, avatarSchema, buildPhotoAction, createLogger, ensureM4a, envAwareConfig, envFor, errorAttrs, fromEnv, groupSchema, leaveSpaceSchema, messageEffectSchema, photoActionSchema, reactionSchema, removeMemberSchema, renameSchema, renderInlineTokens, replySchema, resumableOrderedStream, sanitizeEmail, sanitizeErrorMessage, sanitizePhone, sanitizeUrl, setLogLevel, tracedFetch };
181
+ export { type CloseableAsyncIterable, type LogAttrs, type LogLevel, type PhotoInput, type PhotonLogger, type ProviderMessageRecord, type ProviderUserRecord, type ResumableStreamItem, type SanitizeUrlOptions, addMemberSchema, asAttachment, asContact, asCustom, asGroup, asMarkdown, asPoll, asPollOption, asReaction, asRead, asReply, asRichlink, asText, asUnsend, asVoice, avatarSchema, buildPhotoAction, createLogger, ensureM4a, envAwareConfig, envFor, errorAttrs, fromEnv, groupSchema, leaveSpaceSchema, messageEffectSchema, photoActionSchema, reactionSchema, removeMemberSchema, renameSchema, renderInlineTokens, replySchema, resumableOrderedStream, sanitizeEmail, sanitizeErrorMessage, sanitizePhone, sanitizeUrl, setLogLevel, tracedFetch };
package/dist/authoring.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as markdownSchema, C as asRead, D as reactionSchema, F as leaveSpaceSchema, G as asText, L as removeMemberSchema, N as addMemberSchema, O as asPoll, Q as asContact, R as asMarkdown, S as renameSchema, T as asReaction, U as groupSchema, V as asGroup, X as asCustom, at as photoActionSchema, b as replySchema, ct as attachmentSchema, d as envAwareConfig, f as envFor, g as asRichlink, i as stream, it as buildPhotoAction, k as asPollOption, l as renderInlineTokens, m as asVoice, o as errorAttrs, ot as asAttachment, p as fromEnv, q as textSchema, rt as avatarSchema, ut as tracedFetch, v as asReply } from "./stream-DAfZ5DFR.js";
1
+ import { A as asPoll, B as asMarkdown, D as asReaction, F as addMemberSchema, G as groupSchema, H as markdownSchema, L as leaveSpaceSchema, Q as asCustom, S as replySchema, T as asRead, U as asGroup, Y as textSchema, at as avatarSchema, b as asReply, ct as asAttachment, d as envAwareConfig, et as asContact, f as envFor, ft as tracedFetch, g as asUnsend, i as stream, j as asPollOption, k as reactionSchema, l as renderInlineTokens, m as asVoice, o as errorAttrs, ot as buildPhotoAction, p as fromEnv, q as asText, st as photoActionSchema, ut as attachmentSchema, v as asRichlink, w as renameSchema, z as removeMemberSchema } from "./stream-B6kth7y9.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, asVoice, avatarSchema, buildPhotoAction, createLogger, 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, ensureM4a, envAwareConfig, envFor, errorAttrs, fromEnv, groupSchema, leaveSpaceSchema, messageEffectSchema, photoActionSchema, reactionSchema, 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 TextStreamOptions, A as isFusorEvent, An as ContactName, B as PlatformUser, Bn as avatar, Bt as PollChoice, C as FusorVerify, D as WebhookRawResult, Dn as ContactDetails, Dt as richlink, E as WebhookRawRequest, En as ContactAddress, F as PlatformInstance, Fn as AgentSender, G as SpaceNamespace, Gn as App, Gt as option, Ht as PollOption, I as PlatformMessage, In as User, It as Read, J as broadcast, Jn as AppUrl, K as Broadcaster, Kn as AppLayout, Kt as poll, L as PlatformProviderConfig, Ln as Avatar, M as EventProducer, Mn as ContactPhone, N as Platform, Nt as Rename, O as FusorEvent, On as ContactEmail, Ot as resolveContents, P as PlatformDef, Pn as contact, Pt as rename, Q as CloudPlatform, Qt as StreamTextSource, R as PlatformRuntime, Rn as AvatarData, Rt as read, S as FusorRespond, St as typing, T as WebhookHandler, Tn as Contact, Tt as Richlink, V as ProviderMessage, Vt as PollChoiceInput, W as SchemaMessage, X as stream, Xn as appLayoutSchema, Xt as DeltaExtractor, Y as mergeStreams, Yn as app, Yt as markdown, Z as Store, Zt as StreamText, _ as FusorClient, a as Content, an as edit, at as ProjectProfile, b as FusorMessagesReturn, bt as unsend, c as fromVCard, cn as AddMember, ct as SlackTokenData, d as UnsupportedKind, dn as RemoveMember, dt as SubscriptionStatus, en as Group, et as FusorTokenData, f as Spectrum, fn as addMember, ft as TokenData, g as isFusorClient, gn as removeMember, gt as Voice, h as fusor, ht as EmojiKey, i as attachment, in as Edit, it as ProjectData, j as AnyPlatformDef, jn as ContactOrg, jt as reply, k as fusorEvent, kn as ContactInput, kt as Reply, l as toVCard, ln as LeaveSpace, lt as SpectrumCloudError, m as definePlatform, mn as leaveSpace, mt as Emoji, n as AttachmentInput, nn as group, nt as PlatformStatus, o as ContentBuilder, on as Message, ot as SharedTokenData, p as SpectrumInstance, pt as cloud, q as ManagedStream, qn as AppOptions, qt as Markdown, rt as PlatformsData, s as ContentInput, sn as Space, st as SlackTeamMeta, t as Attachment, tt as ImessageInfoData, u as UnsupportedError, un as MemberInput, ut as SubscriptionData, v as FusorMessages, vn as Reaction, vt as voice, w as FusorVerifyRequest, wn as custom, wt as text, x as FusorReply, xn as reaction, xt as Typing, y as FusorMessagesCtx, yn as ReactionBuilder, yt as Unsend, z as PlatformSpace, zn as AvatarInput, zt as Poll } from "./attachment-Cpg2VUkY.js";
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-CtoKMCG2.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 contact, A as option, E as reaction, F as leaveSpaceSchema, G as asText, H as group, I as removeMember, J as StreamConsumedError, K as text, L as removeMemberSchema, M as addMember, N as addMemberSchema, P as leaveSpace, Q as asContact, R as asMarkdown, S as renameSchema, W as resolveContents, X as asCustom, Y as drainStreamText, Z as custom, _ as richlink, a as contentAttrs, c as markdownToPlainText, d as envAwareConfig, et as fromVCard, f as envFor, h as voice, i as stream, j as poll, lt as fetchUrlBytes, n as createAsyncQueue, nt as avatar, o as errorAttrs, ot as asAttachment, r as mergeStreams, rt as avatarSchema, s as senderAttrs, st as attachment, t as broadcast, tt as toVCard, u as classifyIdentifier, ut as tracedFetch, w as read, x as rename, y as reply, z as markdown } from "./stream-DAfZ5DFR.js";
1
+ import { $ as custom, B as asMarkdown, C as rename, E as read, F as addMemberSchema, I as leaveSpace, J as text, K as resolveContents, L as leaveSpaceSchema, M as option, N as poll, O as reaction, P as addMember, Q as asCustom, R as removeMember, V as markdown, W as group, X as StreamConsumedError, Z as drainStreamText, _ as unsend, a as contentAttrs, at as avatarSchema, c as markdownToPlainText, ct as asAttachment, d as envAwareConfig, dt as fetchUrlBytes, et as asContact, f as envFor, ft as tracedFetch, h as voice, i as stream, it as avatar, lt as attachment, m as asVoice, n as createAsyncQueue, nt as fromVCard, o as errorAttrs, q as asText, r as mergeStreams, rt as toVCard, s as senderAttrs, t as broadcast, tt as contact, u as classifyIdentifier, w as renameSchema, x as reply, y as richlink, z as removeMemberSchema } from "./stream-B6kth7y9.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";
@@ -170,7 +170,7 @@ function app(url, options = {}) {
170
170
  }
171
171
  //#endregion
172
172
  //#region src/content/edit.ts
173
- const isMessage$1 = (v) => typeof v === "object" && v !== null && "id" in v && "content" in v;
173
+ const isMessage = (v) => typeof v === "object" && v !== null && "id" in v && "content" in v;
174
174
  const isContent = (v) => typeof v === "object" && v !== null && "type" in v && typeof v.type === "string";
175
175
  /**
176
176
  * An `edit` rewrites the content of a previously-sent outbound message.
@@ -188,7 +188,7 @@ const isContent = (v) => typeof v === "object" && v !== null && "type" in v && t
188
188
  const editSchema = z.object({
189
189
  type: z.literal("edit"),
190
190
  content: z.custom(isContent, { message: "edit content must be a Content value" }),
191
- target: z.custom(isMessage$1, { message: "edit target must be a Message" })
191
+ target: z.custom(isMessage, { message: "edit target must be a Message" })
192
192
  });
193
193
  const asEdit = (input) => editSchema.parse({
194
194
  type: "edit",
@@ -244,52 +244,6 @@ function typing(state = "start") {
244
244
  }) };
245
245
  }
246
246
  //#endregion
247
- //#region src/content/unsend.ts
248
- const isMessage = (v) => typeof v === "object" && v !== null && "id" in v && "content" in v;
249
- /**
250
- * An `unsend` retracts a previously-sent outbound message.
251
- *
252
- * `space.send(unsend(message))` is the canonical outbound API;
253
- * `message.unsend()` and `space.unsend(message)` are sugar that delegate
254
- * here. Unsends are fire-and-forget — providers handle them inside their
255
- * `send` action and the resolved value is `undefined` (no new message id is
256
- * produced; the existing message is retracted in place).
257
- *
258
- * Platform constraints surface from the provider at send time — e.g.
259
- * iMessage enforces Apple's ~2-minute unsend window for regular messages
260
- * (reaction removal is not time-limited), and a late or repeated unsend
261
- * rejects with the provider's error. `space.getMessage(id)` results are
262
- * wrapped as inbound, so a message cannot be unsent from a refetched id
263
- * after a restart — keep the Message returned by `send` (same limitation
264
- * as `edit`).
265
- */
266
- const unsendSchema = z.object({
267
- type: z.literal("unsend"),
268
- target: z.custom(isMessage, { message: "unsend target must be a Message" })
269
- });
270
- const asUnsend = (input) => unsendSchema.parse({
271
- type: "unsend",
272
- ...input
273
- });
274
- /**
275
- * Construct an `unsend` content value retracting `target`.
276
- *
277
- * Only outbound messages (those sent by the agent) can be unsent; calling
278
- * this with an inbound target throws at build time so the misuse surfaces
279
- * before the send pipeline runs.
280
- *
281
- * Accepts `Message | undefined` so `space.send` results chain without
282
- * narrowing (`send` resolves `undefined` when a platform skips unsupported
283
- * content); an undefined target throws at build time.
284
- */
285
- function unsend(target) {
286
- return { build: async () => {
287
- if (!target) throw new Error("unsend() target is undefined — the targeted message was never sent (space.send resolves undefined when a platform skips unsupported content)");
288
- if (target.direction !== "outbound") throw new Error(`unsend() target must be an outbound message (got direction "${target.direction}", message id "${target.id}")`);
289
- return asUnsend({ target });
290
- } };
291
- }
292
- //#endregion
293
247
  //#region src/emoji/generated.ts
294
248
  const GeneratedEmoji = {
295
249
  _1stPlaceMedal: "🥇",
@@ -3051,7 +3005,7 @@ function definePlatform(name, rawDef) {
3051
3005
  }
3052
3006
  //#endregion
3053
3007
  //#region src/build-env.ts
3054
- const SPECTRUM_SDK_VERSION = "11.0.0";
3008
+ const SPECTRUM_SDK_VERSION = "11.2.0";
3055
3009
  //#endregion
3056
3010
  //#region src/utils/provider-packages.ts
3057
3011
  const OFFICIAL_PROVIDER_PACKAGES = {
@@ -3811,6 +3765,7 @@ const mapContent = (content, platform, spaceRef, ctx) => {
3811
3765
  case "reply": return deserializeReply(raw, platform, spaceRef, ctx);
3812
3766
  case "group": return deserializeGroup(raw, platform, spaceRef, ctx);
3813
3767
  case "attachment": return deserializeAttachment(raw, platform, spaceRef, ctx);
3768
+ case "voice": return deserializeVoice(raw, platform, spaceRef, ctx);
3814
3769
  case "addMember": return addMemberSchema.parse({
3815
3770
  type: "addMember",
3816
3771
  members: memberStrings(raw.members)
@@ -3859,6 +3814,20 @@ const deserializeAttachment = (raw, platform, spaceRef, ctx) => {
3859
3814
  stream: bytes?.stream
3860
3815
  });
3861
3816
  };
3817
+ const deserializeVoice = (raw, platform, spaceRef, ctx) => {
3818
+ const id = asString(raw.id);
3819
+ const bytes = id ? ctx.resolveAttachment?.(platform, spaceRef, id) : void 0;
3820
+ const unavailable = () => Promise.reject(UnsupportedError.action("getAttachment", platform, `voice attachment "${id}" arrived without bytes over the Spectrum webhook and "${platform}" exposes no getAttachment`));
3821
+ return asVoice({
3822
+ ...id ? { id } : {},
3823
+ name: asString(raw.name) || void 0,
3824
+ mimeType: asString(raw.mimeType),
3825
+ duration: typeof raw.duration === "number" ? raw.duration : void 0,
3826
+ size: typeof raw.size === "number" ? raw.size : void 0,
3827
+ read: bytes ? bytes.read : unavailable,
3828
+ stream: bytes?.stream
3829
+ });
3830
+ };
3862
3831
  const deserializeReaction = (raw, spaceRef) => ({
3863
3832
  type: "reaction",
3864
3833
  emoji: asString(raw.emoji),
@@ -731,7 +731,7 @@ function text(source, options) {
731
731
  const resolveContents = (items) => Promise.all(items.map((c) => typeof c === "string" ? text(c).build() : c.build()));
732
732
  //#endregion
733
733
  //#region src/content/group.ts
734
- const isMessage$3 = (v) => typeof v === "object" && v !== null && "id" in v && "content" in v;
734
+ const isMessage$4 = (v) => typeof v === "object" && v !== null && "id" in v && "content" in v;
735
735
  /**
736
736
  * A `group` bundles multiple messages into one logical unit (e.g. an album
737
737
  * of images sent together). Each item is a full `Message` — addressable by
@@ -743,7 +743,7 @@ const isMessage$3 = (v) => typeof v === "object" && v !== null && "id" in v && "
743
743
  */
744
744
  const groupSchema = z.object({
745
745
  type: z.literal("group"),
746
- items: z.array(z.custom(isMessage$3)).min(2)
746
+ items: z.array(z.custom(isMessage$4)).min(2)
747
747
  });
748
748
  const asGroup = (input) => groupSchema.parse({
749
749
  type: "group",
@@ -899,11 +899,11 @@ function poll(title, ...rest) {
899
899
  }
900
900
  //#endregion
901
901
  //#region src/content/reaction.ts
902
- const isMessage$2 = (v) => typeof v === "object" && v !== null && "id" in v && "content" in v;
902
+ const isMessage$3 = (v) => typeof v === "object" && v !== null && "id" in v && "content" in v;
903
903
  const reactionSchema = z.object({
904
904
  type: z.literal("reaction"),
905
905
  emoji: z.string().min(1),
906
- target: z.custom(isMessage$2, { message: "reaction target must be a Message" })
906
+ target: z.custom(isMessage$3, { message: "reaction target must be a Message" })
907
907
  });
908
908
  const asReaction = (input) => reactionSchema.parse({
909
909
  type: "reaction",
@@ -937,7 +937,7 @@ function reaction(emoji, target) {
937
937
  }
938
938
  //#endregion
939
939
  //#region src/content/read.ts
940
- const isMessage$1 = (v) => typeof v === "object" && v !== null && "id" in v && "content" in v;
940
+ const isMessage$2 = (v) => typeof v === "object" && v !== null && "id" in v && "content" in v;
941
941
  /**
942
942
  * A `read` marks the conversation as read **up to** `target`, surfacing a
943
943
  * read receipt to the sender where the platform supports one.
@@ -960,7 +960,7 @@ const isMessage$1 = (v) => typeof v === "object" && v !== null && "id" in v && "
960
960
  */
961
961
  const readSchema = z.object({
962
962
  type: z.literal("read"),
963
- target: z.custom(isMessage$1, { message: "read target must be a Message" })
963
+ target: z.custom(isMessage$2, { message: "read target must be a Message" })
964
964
  });
965
965
  const asRead = (input) => readSchema.parse({
966
966
  type: "read",
@@ -1013,7 +1013,7 @@ function rename(displayName) {
1013
1013
  }
1014
1014
  //#endregion
1015
1015
  //#region src/content/reply.ts
1016
- const isMessage = (v) => typeof v === "object" && v !== null && "id" in v && "content" in v;
1016
+ const isMessage$1 = (v) => typeof v === "object" && v !== null && "id" in v && "content" in v;
1017
1017
  const isContent = (v) => typeof v === "object" && v !== null && "type" in v && typeof v.type === "string";
1018
1018
  /**
1019
1019
  * A `reply` wraps inner content with the message it replies to.
@@ -1029,7 +1029,7 @@ const isContent = (v) => typeof v === "object" && v !== null && "type" in v && t
1029
1029
  const replySchema = z.object({
1030
1030
  type: z.literal("reply"),
1031
1031
  content: z.custom(isContent, { message: "reply content must be a Content value" }),
1032
- target: z.custom(isMessage, { message: "reply target must be a Message" })
1032
+ target: z.custom(isMessage$1, { message: "reply target must be a Message" })
1033
1033
  });
1034
1034
  const asReply = (input) => replySchema.parse({
1035
1035
  type: "reply",
@@ -1071,11 +1071,58 @@ function richlink(url) {
1071
1071
  return { build: async () => asRichlink({ url }) };
1072
1072
  }
1073
1073
  //#endregion
1074
+ //#region src/content/unsend.ts
1075
+ const isMessage = (v) => typeof v === "object" && v !== null && "id" in v && "content" in v;
1076
+ /**
1077
+ * An `unsend` retracts a previously-sent outbound message.
1078
+ *
1079
+ * `space.send(unsend(message))` is the canonical outbound API;
1080
+ * `message.unsend()` and `space.unsend(message)` are sugar that delegate
1081
+ * here. Unsends are fire-and-forget — providers handle them inside their
1082
+ * `send` action and the resolved value is `undefined` (no new message id is
1083
+ * produced; the existing message is retracted in place).
1084
+ *
1085
+ * Platform constraints surface from the provider at send time — e.g.
1086
+ * iMessage enforces Apple's ~2-minute unsend window for regular messages
1087
+ * (reaction removal is not time-limited), and a late or repeated unsend
1088
+ * rejects with the provider's error. `space.getMessage(id)` results are
1089
+ * wrapped as inbound, so a message cannot be unsent from a refetched id
1090
+ * after a restart — keep the Message returned by `send` (same limitation
1091
+ * as `edit`).
1092
+ */
1093
+ const unsendSchema = z.object({
1094
+ type: z.literal("unsend"),
1095
+ target: z.custom(isMessage, { message: "unsend target must be a Message" })
1096
+ });
1097
+ const asUnsend = (input) => unsendSchema.parse({
1098
+ type: "unsend",
1099
+ ...input
1100
+ });
1101
+ /**
1102
+ * Construct an `unsend` content value retracting `target`.
1103
+ *
1104
+ * Only outbound messages (those sent by the agent) can be unsent; calling
1105
+ * this with an inbound target throws at build time so the misuse surfaces
1106
+ * before the send pipeline runs.
1107
+ *
1108
+ * Accepts `Message | undefined` so `space.send` results chain without
1109
+ * narrowing (`send` resolves `undefined` when a platform skips unsupported
1110
+ * content); an undefined target throws at build time.
1111
+ */
1112
+ function unsend(target) {
1113
+ return { build: async () => {
1114
+ if (!target) throw new Error("unsend() target is undefined — the targeted message was never sent (space.send resolves undefined when a platform skips unsupported content)");
1115
+ if (target.direction !== "outbound") throw new Error(`unsend() target must be an outbound message (got direction "${target.direction}", message id "${target.id}")`);
1116
+ return asUnsend({ target });
1117
+ } };
1118
+ }
1119
+ //#endregion
1074
1120
  //#region src/content/voice.ts
1075
1121
  const AUDIO_MIME_PATTERN = /^audio\//i;
1076
1122
  const audioMimeSchema = z.string().nonempty().regex(AUDIO_MIME_PATTERN, "voice content requires an audio/* MIME type");
1077
1123
  const voiceSchema = z.object({
1078
1124
  type: z.literal("voice"),
1125
+ id: z.string().nonempty().optional(),
1079
1126
  name: z.string().nonempty().optional(),
1080
1127
  mimeType: audioMimeSchema,
1081
1128
  duration: z.number().nonnegative().optional(),
@@ -1117,6 +1164,7 @@ const asVoice = (input) => {
1117
1164
  const stream = input.stream ?? (async () => bufferToStream(await read()));
1118
1165
  return voiceSchema.parse({
1119
1166
  type: "voice",
1167
+ ...input.id ? { id: input.id } : {},
1120
1168
  name: input.name,
1121
1169
  mimeType: input.mimeType,
1122
1170
  duration: input.duration,
@@ -1698,4 +1746,4 @@ function broadcast(source) {
1698
1746
  };
1699
1747
  }
1700
1748
  //#endregion
1701
- export { contact as $, option as A, markdownSchema as B, asRead as C, reactionSchema as D, reaction as E, leaveSpaceSchema as F, asText as G, group as H, removeMember as I, StreamConsumedError as J, text as K, removeMemberSchema as L, addMember as M, addMemberSchema as N, asPoll as O, leaveSpace as P, asContact as Q, asMarkdown as R, renameSchema as S, asReaction as T, groupSchema as U, asGroup as V, resolveContents as W, asCustom as X, drainStreamText as Y, custom as Z, richlink as _, contentAttrs as a, photoActionSchema as at, replySchema as b, markdownToPlainText as c, attachmentSchema as ct, envAwareConfig as d, fromVCard as et, envFor as f, asRichlink as g, voice as h, stream as i, buildPhotoAction as it, poll as j, asPollOption as k, renderInlineTokens as l, fetchUrlBytes as lt, asVoice as m, createAsyncQueue as n, avatar as nt, errorAttrs as o, asAttachment as ot, fromEnv as p, textSchema as q, mergeStreams as r, avatarSchema as rt, senderAttrs as s, attachment as st, broadcast as t, toVCard as tt, classifyIdentifier as u, tracedFetch as ut, asReply as v, read as w, rename as x, reply as y, markdown as z };
1749
+ export { custom as $, asPoll as A, asMarkdown as B, rename as C, asReaction as D, read as E, addMemberSchema as F, groupSchema as G, markdownSchema as H, leaveSpace as I, text as J, resolveContents as K, leaveSpaceSchema as L, option as M, poll as N, reaction as O, addMember as P, asCustom as Q, removeMember as R, replySchema as S, asRead as T, asGroup as U, markdown as V, group as W, StreamConsumedError as X, textSchema as Y, drainStreamText as Z, unsend as _, contentAttrs as a, avatarSchema as at, asReply as b, markdownToPlainText as c, asAttachment as ct, envAwareConfig as d, fetchUrlBytes as dt, asContact as et, envFor as f, tracedFetch as ft, asUnsend as g, voice as h, stream as i, avatar as it, asPollOption as j, reactionSchema as k, renderInlineTokens as l, attachment as lt, asVoice as m, createAsyncQueue as n, fromVCard as nt, errorAttrs as o, buildPhotoAction as ot, fromEnv as p, asText as q, mergeStreams as r, toVCard as rt, senderAttrs as s, photoActionSchema as st, broadcast as t, contact as tt, classifyIdentifier as u, attachmentSchema as ut, asRichlink as v, renameSchema as w, reply as x, richlink as y, removeMemberSchema as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-ts/core",
3
- "version": "11.0.0",
3
+ "version": "11.2.0",
4
4
  "description": "The spectrum-ts runtime — Spectrum, content builders, fusor, and the provider authoring API.",
5
5
  "repository": {
6
6
  "type": "git",