@spectrum-ts/core 12.1.0 → 12.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.
@@ -642,52 +642,22 @@ declare const editSchema: z.ZodObject<{
642
642
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
643
643
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
644
644
  size?: number | undefined;
645
+ } | {
646
+ type: "group";
647
+ items: Message<string, User, Space<unknown>>[];
645
648
  } | {
646
649
  type: "custom";
647
650
  raw: unknown;
648
- } | {
649
- type: "voice";
650
- mimeType: string;
651
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
652
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
653
- id?: string | undefined;
654
- name?: string | undefined;
655
- duration?: number | undefined;
656
- size?: number | undefined;
657
651
  } | {
658
652
  type: "text";
659
653
  text: string;
660
654
  } | {
661
655
  type: "markdown";
662
656
  markdown: string;
663
- } | {
664
- type: "streamText";
665
- stream: () => AsyncIterable<string>;
666
- format?: "markdown" | "plain" | undefined;
667
- } | {
668
- type: "richlink";
669
- url: string;
670
- } | {
671
- type: "app";
672
- url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
673
- layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
674
- caption: z.ZodOptional<z.ZodString>;
675
- subcaption: z.ZodOptional<z.ZodString>;
676
- trailingCaption: z.ZodOptional<z.ZodString>;
677
- trailingSubcaption: z.ZodOptional<z.ZodString>;
678
- image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
679
- imageTitle: z.ZodOptional<z.ZodString>;
680
- imageSubtitle: z.ZodOptional<z.ZodString>;
681
- summary: z.ZodOptional<z.ZodString>;
682
- }, z.core.$strip>>>;
683
- live?: boolean | undefined;
684
657
  } | {
685
658
  type: "reaction";
686
659
  emoji: string;
687
660
  target: Message<string, User, Space<unknown>>;
688
- } | {
689
- type: "group";
690
- items: Message<string, User, Space<unknown>>[];
691
661
  } | {
692
662
  type: "poll";
693
663
  title: string;
@@ -708,6 +678,36 @@ declare const editSchema: z.ZodObject<{
708
678
  };
709
679
  selected: boolean;
710
680
  title: string;
681
+ } | {
682
+ type: "streamText";
683
+ stream: () => AsyncIterable<string>;
684
+ format?: "markdown" | "plain" | undefined;
685
+ } | {
686
+ type: "voice";
687
+ mimeType: string;
688
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
689
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
690
+ id?: string | undefined;
691
+ name?: string | undefined;
692
+ duration?: number | undefined;
693
+ size?: number | undefined;
694
+ } | {
695
+ type: "richlink";
696
+ url: string;
697
+ } | {
698
+ type: "app";
699
+ url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
700
+ layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
701
+ caption: z.ZodOptional<z.ZodString>;
702
+ subcaption: z.ZodOptional<z.ZodString>;
703
+ trailingCaption: z.ZodOptional<z.ZodString>;
704
+ trailingSubcaption: z.ZodOptional<z.ZodString>;
705
+ image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
706
+ imageTitle: z.ZodOptional<z.ZodString>;
707
+ imageSubtitle: z.ZodOptional<z.ZodString>;
708
+ summary: z.ZodOptional<z.ZodString>;
709
+ }, z.core.$strip>>>;
710
+ live?: boolean | undefined;
711
711
  } | {
712
712
  type: "effect";
713
713
  content: {
@@ -800,52 +800,22 @@ declare const editSchema: z.ZodObject<{
800
800
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
801
801
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
802
802
  size?: number | undefined;
803
+ } | {
804
+ type: "group";
805
+ items: Message<string, User, Space<unknown>>[];
803
806
  } | {
804
807
  type: "custom";
805
808
  raw: unknown;
806
- } | {
807
- type: "voice";
808
- mimeType: string;
809
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
810
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
811
- id?: string | undefined;
812
- name?: string | undefined;
813
- duration?: number | undefined;
814
- size?: number | undefined;
815
809
  } | {
816
810
  type: "text";
817
811
  text: string;
818
812
  } | {
819
813
  type: "markdown";
820
814
  markdown: string;
821
- } | {
822
- type: "streamText";
823
- stream: () => AsyncIterable<string>;
824
- format?: "markdown" | "plain" | undefined;
825
- } | {
826
- type: "richlink";
827
- url: string;
828
- } | {
829
- type: "app";
830
- url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
831
- layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
832
- caption: z.ZodOptional<z.ZodString>;
833
- subcaption: z.ZodOptional<z.ZodString>;
834
- trailingCaption: z.ZodOptional<z.ZodString>;
835
- trailingSubcaption: z.ZodOptional<z.ZodString>;
836
- image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
837
- imageTitle: z.ZodOptional<z.ZodString>;
838
- imageSubtitle: z.ZodOptional<z.ZodString>;
839
- summary: z.ZodOptional<z.ZodString>;
840
- }, z.core.$strip>>>;
841
- live?: boolean | undefined;
842
815
  } | {
843
816
  type: "reaction";
844
817
  emoji: string;
845
818
  target: Message<string, User, Space<unknown>>;
846
- } | {
847
- type: "group";
848
- items: Message<string, User, Space<unknown>>[];
849
819
  } | {
850
820
  type: "poll";
851
821
  title: string;
@@ -866,6 +836,36 @@ declare const editSchema: z.ZodObject<{
866
836
  };
867
837
  selected: boolean;
868
838
  title: string;
839
+ } | {
840
+ type: "streamText";
841
+ stream: () => AsyncIterable<string>;
842
+ format?: "markdown" | "plain" | undefined;
843
+ } | {
844
+ type: "voice";
845
+ mimeType: string;
846
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
847
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
848
+ id?: string | undefined;
849
+ name?: string | undefined;
850
+ duration?: number | undefined;
851
+ size?: number | undefined;
852
+ } | {
853
+ type: "richlink";
854
+ url: string;
855
+ } | {
856
+ type: "app";
857
+ url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
858
+ layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
859
+ caption: z.ZodOptional<z.ZodString>;
860
+ subcaption: z.ZodOptional<z.ZodString>;
861
+ trailingCaption: z.ZodOptional<z.ZodString>;
862
+ trailingSubcaption: z.ZodOptional<z.ZodString>;
863
+ image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
864
+ imageTitle: z.ZodOptional<z.ZodString>;
865
+ imageSubtitle: z.ZodOptional<z.ZodString>;
866
+ summary: z.ZodOptional<z.ZodString>;
867
+ }, z.core.$strip>>>;
868
+ live?: boolean | undefined;
869
869
  } | {
870
870
  type: "effect";
871
871
  content: {
@@ -1188,52 +1188,22 @@ declare const replySchema: z.ZodObject<{
1188
1188
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1189
1189
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1190
1190
  size?: number | undefined;
1191
+ } | {
1192
+ type: "group";
1193
+ items: Message<string, User, Space<unknown>>[];
1191
1194
  } | {
1192
1195
  type: "custom";
1193
1196
  raw: unknown;
1194
- } | {
1195
- type: "voice";
1196
- mimeType: string;
1197
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1198
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1199
- id?: string | undefined;
1200
- name?: string | undefined;
1201
- duration?: number | undefined;
1202
- size?: number | undefined;
1203
1197
  } | {
1204
1198
  type: "text";
1205
1199
  text: string;
1206
1200
  } | {
1207
1201
  type: "markdown";
1208
1202
  markdown: string;
1209
- } | {
1210
- type: "streamText";
1211
- stream: () => AsyncIterable<string>;
1212
- format?: "markdown" | "plain" | undefined;
1213
- } | {
1214
- type: "richlink";
1215
- url: string;
1216
- } | {
1217
- type: "app";
1218
- url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
1219
- layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
1220
- caption: z.ZodOptional<z.ZodString>;
1221
- subcaption: z.ZodOptional<z.ZodString>;
1222
- trailingCaption: z.ZodOptional<z.ZodString>;
1223
- trailingSubcaption: z.ZodOptional<z.ZodString>;
1224
- image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1225
- imageTitle: z.ZodOptional<z.ZodString>;
1226
- imageSubtitle: z.ZodOptional<z.ZodString>;
1227
- summary: z.ZodOptional<z.ZodString>;
1228
- }, z.core.$strip>>>;
1229
- live?: boolean | undefined;
1230
1203
  } | {
1231
1204
  type: "reaction";
1232
1205
  emoji: string;
1233
1206
  target: Message<string, User, Space<unknown>>;
1234
- } | {
1235
- type: "group";
1236
- items: Message<string, User, Space<unknown>>[];
1237
1207
  } | {
1238
1208
  type: "poll";
1239
1209
  title: string;
@@ -1254,6 +1224,36 @@ declare const replySchema: z.ZodObject<{
1254
1224
  };
1255
1225
  selected: boolean;
1256
1226
  title: string;
1227
+ } | {
1228
+ type: "streamText";
1229
+ stream: () => AsyncIterable<string>;
1230
+ format?: "markdown" | "plain" | undefined;
1231
+ } | {
1232
+ type: "voice";
1233
+ mimeType: string;
1234
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1235
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1236
+ id?: string | undefined;
1237
+ name?: string | undefined;
1238
+ duration?: number | undefined;
1239
+ size?: number | undefined;
1240
+ } | {
1241
+ type: "richlink";
1242
+ url: string;
1243
+ } | {
1244
+ type: "app";
1245
+ url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
1246
+ layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
1247
+ caption: z.ZodOptional<z.ZodString>;
1248
+ subcaption: z.ZodOptional<z.ZodString>;
1249
+ trailingCaption: z.ZodOptional<z.ZodString>;
1250
+ trailingSubcaption: z.ZodOptional<z.ZodString>;
1251
+ image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1252
+ imageTitle: z.ZodOptional<z.ZodString>;
1253
+ imageSubtitle: z.ZodOptional<z.ZodString>;
1254
+ summary: z.ZodOptional<z.ZodString>;
1255
+ }, z.core.$strip>>>;
1256
+ live?: boolean | undefined;
1257
1257
  } | {
1258
1258
  type: "effect";
1259
1259
  content: {
@@ -1346,52 +1346,22 @@ declare const replySchema: z.ZodObject<{
1346
1346
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1347
1347
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1348
1348
  size?: number | undefined;
1349
+ } | {
1350
+ type: "group";
1351
+ items: Message<string, User, Space<unknown>>[];
1349
1352
  } | {
1350
1353
  type: "custom";
1351
1354
  raw: unknown;
1352
- } | {
1353
- type: "voice";
1354
- mimeType: string;
1355
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1356
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1357
- id?: string | undefined;
1358
- name?: string | undefined;
1359
- duration?: number | undefined;
1360
- size?: number | undefined;
1361
1355
  } | {
1362
1356
  type: "text";
1363
1357
  text: string;
1364
1358
  } | {
1365
1359
  type: "markdown";
1366
1360
  markdown: string;
1367
- } | {
1368
- type: "streamText";
1369
- stream: () => AsyncIterable<string>;
1370
- format?: "markdown" | "plain" | undefined;
1371
- } | {
1372
- type: "richlink";
1373
- url: string;
1374
- } | {
1375
- type: "app";
1376
- url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
1377
- layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
1378
- caption: z.ZodOptional<z.ZodString>;
1379
- subcaption: z.ZodOptional<z.ZodString>;
1380
- trailingCaption: z.ZodOptional<z.ZodString>;
1381
- trailingSubcaption: z.ZodOptional<z.ZodString>;
1382
- image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1383
- imageTitle: z.ZodOptional<z.ZodString>;
1384
- imageSubtitle: z.ZodOptional<z.ZodString>;
1385
- summary: z.ZodOptional<z.ZodString>;
1386
- }, z.core.$strip>>>;
1387
- live?: boolean | undefined;
1388
1361
  } | {
1389
1362
  type: "reaction";
1390
1363
  emoji: string;
1391
1364
  target: Message<string, User, Space<unknown>>;
1392
- } | {
1393
- type: "group";
1394
- items: Message<string, User, Space<unknown>>[];
1395
1365
  } | {
1396
1366
  type: "poll";
1397
1367
  title: string;
@@ -1413,26 +1383,56 @@ declare const replySchema: z.ZodObject<{
1413
1383
  selected: boolean;
1414
1384
  title: string;
1415
1385
  } | {
1416
- type: "effect";
1417
- content: {
1418
- type: "attachment";
1419
- id: string;
1420
- name: string;
1421
- mimeType: string;
1422
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1423
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1424
- size?: number | undefined;
1425
- } | {
1426
- type: "text";
1427
- text: string;
1428
- } | {
1429
- type: "markdown";
1430
- markdown: string;
1431
- };
1432
- effect: string;
1386
+ type: "streamText";
1387
+ stream: () => AsyncIterable<string>;
1388
+ format?: "markdown" | "plain" | undefined;
1433
1389
  } | {
1434
- type: "typing";
1435
- state: "start" | "stop";
1390
+ type: "voice";
1391
+ mimeType: string;
1392
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1393
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1394
+ id?: string | undefined;
1395
+ name?: string | undefined;
1396
+ duration?: number | undefined;
1397
+ size?: number | undefined;
1398
+ } | {
1399
+ type: "richlink";
1400
+ url: string;
1401
+ } | {
1402
+ type: "app";
1403
+ url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
1404
+ layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
1405
+ caption: z.ZodOptional<z.ZodString>;
1406
+ subcaption: z.ZodOptional<z.ZodString>;
1407
+ trailingCaption: z.ZodOptional<z.ZodString>;
1408
+ trailingSubcaption: z.ZodOptional<z.ZodString>;
1409
+ image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1410
+ imageTitle: z.ZodOptional<z.ZodString>;
1411
+ imageSubtitle: z.ZodOptional<z.ZodString>;
1412
+ summary: z.ZodOptional<z.ZodString>;
1413
+ }, z.core.$strip>>>;
1414
+ live?: boolean | undefined;
1415
+ } | {
1416
+ type: "effect";
1417
+ content: {
1418
+ type: "attachment";
1419
+ id: string;
1420
+ name: string;
1421
+ mimeType: string;
1422
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1423
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1424
+ size?: number | undefined;
1425
+ } | {
1426
+ type: "text";
1427
+ text: string;
1428
+ } | {
1429
+ type: "markdown";
1430
+ markdown: string;
1431
+ };
1432
+ effect: string;
1433
+ } | {
1434
+ type: "typing";
1435
+ state: "start" | "stop";
1436
1436
  } | {
1437
1437
  type: "rename";
1438
1438
  displayName: string;
@@ -7333,52 +7333,22 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7333
7333
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7334
7334
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7335
7335
  size?: number | undefined;
7336
+ } | {
7337
+ type: "group";
7338
+ items: Message<string, User, Space<unknown>>[];
7336
7339
  } | {
7337
7340
  type: "custom";
7338
7341
  raw: unknown;
7339
- } | {
7340
- type: "voice";
7341
- mimeType: string;
7342
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7343
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7344
- id?: string | undefined;
7345
- name?: string | undefined;
7346
- duration?: number | undefined;
7347
- size?: number | undefined;
7348
7342
  } | {
7349
7343
  type: "text";
7350
7344
  text: string;
7351
7345
  } | {
7352
7346
  type: "markdown";
7353
7347
  markdown: string;
7354
- } | {
7355
- type: "streamText";
7356
- stream: () => AsyncIterable<string>;
7357
- format?: "markdown" | "plain" | undefined;
7358
- } | {
7359
- type: "richlink";
7360
- url: string;
7361
- } | {
7362
- type: "app";
7363
- url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
7364
- layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
7365
- caption: z.ZodOptional<z.ZodString>;
7366
- subcaption: z.ZodOptional<z.ZodString>;
7367
- trailingCaption: z.ZodOptional<z.ZodString>;
7368
- trailingSubcaption: z.ZodOptional<z.ZodString>;
7369
- image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
7370
- imageTitle: z.ZodOptional<z.ZodString>;
7371
- imageSubtitle: z.ZodOptional<z.ZodString>;
7372
- summary: z.ZodOptional<z.ZodString>;
7373
- }, z.core.$strip>>>;
7374
- live?: boolean | undefined;
7375
7348
  } | {
7376
7349
  type: "reaction";
7377
7350
  emoji: string;
7378
7351
  target: Message<string, User, Space<unknown>>;
7379
- } | {
7380
- type: "group";
7381
- items: Message<string, User, Space<unknown>>[];
7382
7352
  } | {
7383
7353
  type: "poll";
7384
7354
  title: string;
@@ -7399,6 +7369,36 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7399
7369
  };
7400
7370
  selected: boolean;
7401
7371
  title: string;
7372
+ } | {
7373
+ type: "streamText";
7374
+ stream: () => AsyncIterable<string>;
7375
+ format?: "markdown" | "plain" | undefined;
7376
+ } | {
7377
+ type: "voice";
7378
+ mimeType: string;
7379
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7380
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7381
+ id?: string | undefined;
7382
+ name?: string | undefined;
7383
+ duration?: number | undefined;
7384
+ size?: number | undefined;
7385
+ } | {
7386
+ type: "richlink";
7387
+ url: string;
7388
+ } | {
7389
+ type: "app";
7390
+ url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
7391
+ layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
7392
+ caption: z.ZodOptional<z.ZodString>;
7393
+ subcaption: z.ZodOptional<z.ZodString>;
7394
+ trailingCaption: z.ZodOptional<z.ZodString>;
7395
+ trailingSubcaption: z.ZodOptional<z.ZodString>;
7396
+ image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
7397
+ imageTitle: z.ZodOptional<z.ZodString>;
7398
+ imageSubtitle: z.ZodOptional<z.ZodString>;
7399
+ summary: z.ZodOptional<z.ZodString>;
7400
+ }, z.core.$strip>>>;
7401
+ live?: boolean | undefined;
7402
7402
  } | {
7403
7403
  type: "effect";
7404
7404
  content: {
@@ -7491,52 +7491,22 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7491
7491
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7492
7492
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7493
7493
  size?: number | undefined;
7494
+ } | {
7495
+ type: "group";
7496
+ items: Message<string, User, Space<unknown>>[];
7494
7497
  } | {
7495
7498
  type: "custom";
7496
7499
  raw: unknown;
7497
- } | {
7498
- type: "voice";
7499
- mimeType: string;
7500
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7501
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7502
- id?: string | undefined;
7503
- name?: string | undefined;
7504
- duration?: number | undefined;
7505
- size?: number | undefined;
7506
7500
  } | {
7507
7501
  type: "text";
7508
7502
  text: string;
7509
7503
  } | {
7510
7504
  type: "markdown";
7511
7505
  markdown: string;
7512
- } | {
7513
- type: "streamText";
7514
- stream: () => AsyncIterable<string>;
7515
- format?: "markdown" | "plain" | undefined;
7516
- } | {
7517
- type: "richlink";
7518
- url: string;
7519
- } | {
7520
- type: "app";
7521
- url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
7522
- layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
7523
- caption: z.ZodOptional<z.ZodString>;
7524
- subcaption: z.ZodOptional<z.ZodString>;
7525
- trailingCaption: z.ZodOptional<z.ZodString>;
7526
- trailingSubcaption: z.ZodOptional<z.ZodString>;
7527
- image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
7528
- imageTitle: z.ZodOptional<z.ZodString>;
7529
- imageSubtitle: z.ZodOptional<z.ZodString>;
7530
- summary: z.ZodOptional<z.ZodString>;
7531
- }, z.core.$strip>>>;
7532
- live?: boolean | undefined;
7533
7506
  } | {
7534
7507
  type: "reaction";
7535
7508
  emoji: string;
7536
7509
  target: Message<string, User, Space<unknown>>;
7537
- } | {
7538
- type: "group";
7539
- items: Message<string, User, Space<unknown>>[];
7540
7510
  } | {
7541
7511
  type: "poll";
7542
7512
  title: string;
@@ -7557,6 +7527,36 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7557
7527
  };
7558
7528
  selected: boolean;
7559
7529
  title: string;
7530
+ } | {
7531
+ type: "streamText";
7532
+ stream: () => AsyncIterable<string>;
7533
+ format?: "markdown" | "plain" | undefined;
7534
+ } | {
7535
+ type: "voice";
7536
+ mimeType: string;
7537
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7538
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7539
+ id?: string | undefined;
7540
+ name?: string | undefined;
7541
+ duration?: number | undefined;
7542
+ size?: number | undefined;
7543
+ } | {
7544
+ type: "richlink";
7545
+ url: string;
7546
+ } | {
7547
+ type: "app";
7548
+ url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
7549
+ layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
7550
+ caption: z.ZodOptional<z.ZodString>;
7551
+ subcaption: z.ZodOptional<z.ZodString>;
7552
+ trailingCaption: z.ZodOptional<z.ZodString>;
7553
+ trailingSubcaption: z.ZodOptional<z.ZodString>;
7554
+ image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
7555
+ imageTitle: z.ZodOptional<z.ZodString>;
7556
+ imageSubtitle: z.ZodOptional<z.ZodString>;
7557
+ summary: z.ZodOptional<z.ZodString>;
7558
+ }, z.core.$strip>>>;
7559
+ live?: boolean | undefined;
7560
7560
  } | {
7561
7561
  type: "effect";
7562
7562
  content: {
@@ -7653,52 +7653,22 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7653
7653
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7654
7654
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7655
7655
  size?: number | undefined;
7656
+ } | {
7657
+ type: "group";
7658
+ items: Message<string, User, Space<unknown>>[];
7656
7659
  } | {
7657
7660
  type: "custom";
7658
7661
  raw: unknown;
7659
- } | {
7660
- type: "voice";
7661
- mimeType: string;
7662
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7663
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7664
- id?: string | undefined;
7665
- name?: string | undefined;
7666
- duration?: number | undefined;
7667
- size?: number | undefined;
7668
7662
  } | {
7669
7663
  type: "text";
7670
7664
  text: string;
7671
7665
  } | {
7672
7666
  type: "markdown";
7673
7667
  markdown: string;
7674
- } | {
7675
- type: "streamText";
7676
- stream: () => AsyncIterable<string>;
7677
- format?: "markdown" | "plain" | undefined;
7678
- } | {
7679
- type: "richlink";
7680
- url: string;
7681
- } | {
7682
- type: "app";
7683
- url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
7684
- layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
7685
- caption: z.ZodOptional<z.ZodString>;
7686
- subcaption: z.ZodOptional<z.ZodString>;
7687
- trailingCaption: z.ZodOptional<z.ZodString>;
7688
- trailingSubcaption: z.ZodOptional<z.ZodString>;
7689
- image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
7690
- imageTitle: z.ZodOptional<z.ZodString>;
7691
- imageSubtitle: z.ZodOptional<z.ZodString>;
7692
- summary: z.ZodOptional<z.ZodString>;
7693
- }, z.core.$strip>>>;
7694
- live?: boolean | undefined;
7695
7668
  } | {
7696
7669
  type: "reaction";
7697
7670
  emoji: string;
7698
7671
  target: Message<string, User, Space<unknown>>;
7699
- } | {
7700
- type: "group";
7701
- items: Message<string, User, Space<unknown>>[];
7702
7672
  } | {
7703
7673
  type: "poll";
7704
7674
  title: string;
@@ -7719,6 +7689,36 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7719
7689
  };
7720
7690
  selected: boolean;
7721
7691
  title: string;
7692
+ } | {
7693
+ type: "streamText";
7694
+ stream: () => AsyncIterable<string>;
7695
+ format?: "markdown" | "plain" | undefined;
7696
+ } | {
7697
+ type: "voice";
7698
+ mimeType: string;
7699
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7700
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7701
+ id?: string | undefined;
7702
+ name?: string | undefined;
7703
+ duration?: number | undefined;
7704
+ size?: number | undefined;
7705
+ } | {
7706
+ type: "richlink";
7707
+ url: string;
7708
+ } | {
7709
+ type: "app";
7710
+ url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
7711
+ layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
7712
+ caption: z.ZodOptional<z.ZodString>;
7713
+ subcaption: z.ZodOptional<z.ZodString>;
7714
+ trailingCaption: z.ZodOptional<z.ZodString>;
7715
+ trailingSubcaption: z.ZodOptional<z.ZodString>;
7716
+ image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
7717
+ imageTitle: z.ZodOptional<z.ZodString>;
7718
+ imageSubtitle: z.ZodOptional<z.ZodString>;
7719
+ summary: z.ZodOptional<z.ZodString>;
7720
+ }, z.core.$strip>>>;
7721
+ live?: boolean | undefined;
7722
7722
  } | {
7723
7723
  type: "effect";
7724
7724
  content: {
@@ -7811,52 +7811,22 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7811
7811
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7812
7812
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7813
7813
  size?: number | undefined;
7814
+ } | {
7815
+ type: "group";
7816
+ items: Message<string, User, Space<unknown>>[];
7814
7817
  } | {
7815
7818
  type: "custom";
7816
7819
  raw: unknown;
7817
- } | {
7818
- type: "voice";
7819
- mimeType: string;
7820
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7821
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7822
- id?: string | undefined;
7823
- name?: string | undefined;
7824
- duration?: number | undefined;
7825
- size?: number | undefined;
7826
7820
  } | {
7827
7821
  type: "text";
7828
7822
  text: string;
7829
7823
  } | {
7830
7824
  type: "markdown";
7831
7825
  markdown: string;
7832
- } | {
7833
- type: "streamText";
7834
- stream: () => AsyncIterable<string>;
7835
- format?: "markdown" | "plain" | undefined;
7836
- } | {
7837
- type: "richlink";
7838
- url: string;
7839
- } | {
7840
- type: "app";
7841
- url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
7842
- layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
7843
- caption: z.ZodOptional<z.ZodString>;
7844
- subcaption: z.ZodOptional<z.ZodString>;
7845
- trailingCaption: z.ZodOptional<z.ZodString>;
7846
- trailingSubcaption: z.ZodOptional<z.ZodString>;
7847
- image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
7848
- imageTitle: z.ZodOptional<z.ZodString>;
7849
- imageSubtitle: z.ZodOptional<z.ZodString>;
7850
- summary: z.ZodOptional<z.ZodString>;
7851
- }, z.core.$strip>>>;
7852
- live?: boolean | undefined;
7853
7826
  } | {
7854
7827
  type: "reaction";
7855
7828
  emoji: string;
7856
7829
  target: Message<string, User, Space<unknown>>;
7857
- } | {
7858
- type: "group";
7859
- items: Message<string, User, Space<unknown>>[];
7860
7830
  } | {
7861
7831
  type: "poll";
7862
7832
  title: string;
@@ -7877,6 +7847,36 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7877
7847
  };
7878
7848
  selected: boolean;
7879
7849
  title: string;
7850
+ } | {
7851
+ type: "streamText";
7852
+ stream: () => AsyncIterable<string>;
7853
+ format?: "markdown" | "plain" | undefined;
7854
+ } | {
7855
+ type: "voice";
7856
+ mimeType: string;
7857
+ read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7858
+ stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7859
+ id?: string | undefined;
7860
+ name?: string | undefined;
7861
+ duration?: number | undefined;
7862
+ size?: number | undefined;
7863
+ } | {
7864
+ type: "richlink";
7865
+ url: string;
7866
+ } | {
7867
+ type: "app";
7868
+ url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
7869
+ layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
7870
+ caption: z.ZodOptional<z.ZodString>;
7871
+ subcaption: z.ZodOptional<z.ZodString>;
7872
+ trailingCaption: z.ZodOptional<z.ZodString>;
7873
+ trailingSubcaption: z.ZodOptional<z.ZodString>;
7874
+ image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
7875
+ imageTitle: z.ZodOptional<z.ZodString>;
7876
+ imageSubtitle: z.ZodOptional<z.ZodString>;
7877
+ summary: z.ZodOptional<z.ZodString>;
7878
+ }, z.core.$strip>>>;
7879
+ live?: boolean | undefined;
7880
7880
  } | {
7881
7881
  type: "effect";
7882
7882
  content: {
@@ -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-CbNQEDfL.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-Wgb7-di3.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";
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-CbNQEDfL.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-Wgb7-di3.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
@@ -3011,7 +3011,7 @@ function definePlatform(platformId, rawDef) {
3011
3011
  }
3012
3012
  //#endregion
3013
3013
  //#region src/build-env.ts
3014
- const SPECTRUM_SDK_VERSION = "12.1.0";
3014
+ const SPECTRUM_SDK_VERSION = "12.2.0";
3015
3015
  //#endregion
3016
3016
  //#region src/utils/provider-packages.ts
3017
3017
  const OFFICIAL_PROVIDER_PACKAGES = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-ts/core",
3
- "version": "12.1.0",
3
+ "version": "12.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",