@spectrum-ts/core 10.0.0 → 11.0.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,17 +592,6 @@ 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: "custom";
596
- raw: unknown;
597
- } | {
598
- type: "attachment";
599
- id: string;
600
- name: string;
601
- mimeType: string;
602
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
603
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
604
- size?: number | undefined;
605
- } | {
606
595
  type: "contact";
607
596
  user?: {
608
597
  __platform: string;
@@ -646,18 +635,13 @@ declare const editSchema: z.ZodObject<{
646
635
  } | undefined;
647
636
  raw?: unknown;
648
637
  } | {
649
- type: "text";
650
- text: string;
651
- } | {
652
- type: "markdown";
653
- markdown: string;
654
- } | {
655
- type: "group";
656
- items: Message<string, User, Space<unknown>>[];
657
- } | {
658
- type: "reaction";
659
- emoji: string;
660
- target: Message<string, User, Space<unknown>>;
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;
661
645
  } | {
662
646
  type: "poll";
663
647
  title: string;
@@ -678,6 +662,18 @@ declare const editSchema: z.ZodObject<{
678
662
  };
679
663
  selected: boolean;
680
664
  title: string;
665
+ } | {
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>>[];
681
677
  } | {
682
678
  type: "streamText";
683
679
  stream: () => AsyncIterable<string>;
@@ -707,6 +703,10 @@ declare const editSchema: z.ZodObject<{
707
703
  summary: z.ZodOptional<z.ZodString>;
708
704
  }, z.core.$strip>>>;
709
705
  live?: boolean | undefined;
706
+ } | {
707
+ type: "reaction";
708
+ emoji: string;
709
+ target: Message<string, User, Space<unknown>>;
710
710
  } | {
711
711
  type: "effect";
712
712
  content: {
@@ -749,17 +749,6 @@ declare const editSchema: z.ZodObject<{
749
749
  } | {
750
750
  type: "leaveSpace";
751
751
  }, {
752
- type: "custom";
753
- raw: unknown;
754
- } | {
755
- type: "attachment";
756
- id: string;
757
- name: string;
758
- mimeType: string;
759
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
760
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
761
- size?: number | undefined;
762
- } | {
763
752
  type: "contact";
764
753
  user?: {
765
754
  __platform: string;
@@ -803,18 +792,13 @@ declare const editSchema: z.ZodObject<{
803
792
  } | undefined;
804
793
  raw?: unknown;
805
794
  } | {
806
- type: "text";
807
- text: string;
808
- } | {
809
- type: "markdown";
810
- markdown: string;
811
- } | {
812
- type: "group";
813
- items: Message<string, User, Space<unknown>>[];
814
- } | {
815
- type: "reaction";
816
- emoji: string;
817
- target: Message<string, User, Space<unknown>>;
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;
818
802
  } | {
819
803
  type: "poll";
820
804
  title: string;
@@ -835,6 +819,18 @@ declare const editSchema: z.ZodObject<{
835
819
  };
836
820
  selected: boolean;
837
821
  title: string;
822
+ } | {
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>>[];
838
834
  } | {
839
835
  type: "streamText";
840
836
  stream: () => AsyncIterable<string>;
@@ -864,6 +860,10 @@ declare const editSchema: z.ZodObject<{
864
860
  summary: z.ZodOptional<z.ZodString>;
865
861
  }, z.core.$strip>>>;
866
862
  live?: boolean | undefined;
863
+ } | {
864
+ type: "reaction";
865
+ emoji: string;
866
+ target: Message<string, User, Space<unknown>>;
867
867
  } | {
868
868
  type: "effect";
869
869
  content: {
@@ -1136,17 +1136,6 @@ declare function rename(displayName: string): ContentBuilder;
1136
1136
  declare const replySchema: z.ZodObject<{
1137
1137
  type: z.ZodLiteral<"reply">;
1138
1138
  content: z.ZodCustom<{
1139
- type: "custom";
1140
- raw: unknown;
1141
- } | {
1142
- type: "attachment";
1143
- id: string;
1144
- name: string;
1145
- mimeType: string;
1146
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1147
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1148
- size?: number | undefined;
1149
- } | {
1150
1139
  type: "contact";
1151
1140
  user?: {
1152
1141
  __platform: string;
@@ -1190,18 +1179,13 @@ declare const replySchema: z.ZodObject<{
1190
1179
  } | undefined;
1191
1180
  raw?: unknown;
1192
1181
  } | {
1193
- type: "text";
1194
- text: string;
1195
- } | {
1196
- type: "markdown";
1197
- markdown: string;
1198
- } | {
1199
- type: "group";
1200
- items: Message<string, User, Space<unknown>>[];
1201
- } | {
1202
- type: "reaction";
1203
- emoji: string;
1204
- target: Message<string, User, Space<unknown>>;
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;
1205
1189
  } | {
1206
1190
  type: "poll";
1207
1191
  title: string;
@@ -1222,6 +1206,18 @@ declare const replySchema: z.ZodObject<{
1222
1206
  };
1223
1207
  selected: boolean;
1224
1208
  title: string;
1209
+ } | {
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>>[];
1225
1221
  } | {
1226
1222
  type: "streamText";
1227
1223
  stream: () => AsyncIterable<string>;
@@ -1251,6 +1247,10 @@ declare const replySchema: z.ZodObject<{
1251
1247
  summary: z.ZodOptional<z.ZodString>;
1252
1248
  }, z.core.$strip>>>;
1253
1249
  live?: boolean | undefined;
1250
+ } | {
1251
+ type: "reaction";
1252
+ emoji: string;
1253
+ target: Message<string, User, Space<unknown>>;
1254
1254
  } | {
1255
1255
  type: "effect";
1256
1256
  content: {
@@ -1293,17 +1293,6 @@ declare const replySchema: z.ZodObject<{
1293
1293
  } | {
1294
1294
  type: "leaveSpace";
1295
1295
  }, {
1296
- type: "custom";
1297
- raw: unknown;
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
- } | {
1307
1296
  type: "contact";
1308
1297
  user?: {
1309
1298
  __platform: string;
@@ -1347,18 +1336,13 @@ declare const replySchema: z.ZodObject<{
1347
1336
  } | undefined;
1348
1337
  raw?: unknown;
1349
1338
  } | {
1350
- type: "text";
1351
- text: string;
1352
- } | {
1353
- type: "markdown";
1354
- markdown: string;
1355
- } | {
1356
- type: "group";
1357
- items: Message<string, User, Space<unknown>>[];
1358
- } | {
1359
- type: "reaction";
1360
- emoji: string;
1361
- target: Message<string, User, Space<unknown>>;
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;
1362
1346
  } | {
1363
1347
  type: "poll";
1364
1348
  title: string;
@@ -1379,6 +1363,18 @@ declare const replySchema: z.ZodObject<{
1379
1363
  };
1380
1364
  selected: boolean;
1381
1365
  title: string;
1366
+ } | {
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
1378
  } | {
1383
1379
  type: "streamText";
1384
1380
  stream: () => AsyncIterable<string>;
@@ -1408,6 +1404,10 @@ declare const replySchema: z.ZodObject<{
1408
1404
  summary: z.ZodOptional<z.ZodString>;
1409
1405
  }, z.core.$strip>>>;
1410
1406
  live?: boolean | undefined;
1407
+ } | {
1408
+ type: "reaction";
1409
+ emoji: string;
1410
+ target: Message<string, User, Space<unknown>>;
1411
1411
  } | {
1412
1412
  type: "effect";
1413
1413
  content: {
@@ -7278,17 +7278,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7278
7278
  }, z.core.$strip>, z.ZodObject<{
7279
7279
  type: z.ZodLiteral<"reply">;
7280
7280
  content: z.ZodCustom<{
7281
- type: "custom";
7282
- raw: unknown;
7283
- } | {
7284
- type: "attachment";
7285
- id: string;
7286
- name: string;
7287
- mimeType: string;
7288
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7289
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7290
- size?: number | undefined;
7291
- } | {
7292
7281
  type: "contact";
7293
7282
  user?: {
7294
7283
  __platform: string;
@@ -7332,18 +7321,13 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7332
7321
  } | undefined;
7333
7322
  raw?: unknown;
7334
7323
  } | {
7335
- type: "text";
7336
- text: string;
7337
- } | {
7338
- type: "markdown";
7339
- markdown: string;
7340
- } | {
7341
- type: "group";
7342
- items: Message<string, User, Space<unknown>>[];
7343
- } | {
7344
- type: "reaction";
7345
- emoji: string;
7346
- target: Message<string, User, Space<unknown>>;
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;
7347
7331
  } | {
7348
7332
  type: "poll";
7349
7333
  title: string;
@@ -7364,6 +7348,18 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7364
7348
  };
7365
7349
  selected: boolean;
7366
7350
  title: string;
7351
+ } | {
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>>[];
7367
7363
  } | {
7368
7364
  type: "streamText";
7369
7365
  stream: () => AsyncIterable<string>;
@@ -7393,6 +7389,10 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7393
7389
  summary: z.ZodOptional<z.ZodString>;
7394
7390
  }, z.core.$strip>>>;
7395
7391
  live?: boolean | undefined;
7392
+ } | {
7393
+ type: "reaction";
7394
+ emoji: string;
7395
+ target: Message<string, User, Space<unknown>>;
7396
7396
  } | {
7397
7397
  type: "effect";
7398
7398
  content: {
@@ -7435,17 +7435,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7435
7435
  } | {
7436
7436
  type: "leaveSpace";
7437
7437
  }, {
7438
- type: "custom";
7439
- raw: unknown;
7440
- } | {
7441
- type: "attachment";
7442
- id: string;
7443
- name: string;
7444
- mimeType: string;
7445
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7446
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7447
- size?: number | undefined;
7448
- } | {
7449
7438
  type: "contact";
7450
7439
  user?: {
7451
7440
  __platform: string;
@@ -7489,18 +7478,13 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7489
7478
  } | undefined;
7490
7479
  raw?: unknown;
7491
7480
  } | {
7492
- type: "text";
7493
- text: string;
7494
- } | {
7495
- type: "markdown";
7496
- markdown: string;
7497
- } | {
7498
- type: "group";
7499
- items: Message<string, User, Space<unknown>>[];
7500
- } | {
7501
- type: "reaction";
7502
- emoji: string;
7503
- target: Message<string, User, Space<unknown>>;
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;
7504
7488
  } | {
7505
7489
  type: "poll";
7506
7490
  title: string;
@@ -7521,6 +7505,18 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7521
7505
  };
7522
7506
  selected: boolean;
7523
7507
  title: string;
7508
+ } | {
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>>[];
7524
7520
  } | {
7525
7521
  type: "streamText";
7526
7522
  stream: () => AsyncIterable<string>;
@@ -7550,6 +7546,10 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7550
7546
  summary: z.ZodOptional<z.ZodString>;
7551
7547
  }, z.core.$strip>>>;
7552
7548
  live?: boolean | undefined;
7549
+ } | {
7550
+ type: "reaction";
7551
+ emoji: string;
7552
+ target: Message<string, User, Space<unknown>>;
7553
7553
  } | {
7554
7554
  type: "effect";
7555
7555
  content: {
@@ -7596,17 +7596,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7596
7596
  }, z.core.$strip>, z.ZodObject<{
7597
7597
  type: z.ZodLiteral<"edit">;
7598
7598
  content: z.ZodCustom<{
7599
- type: "custom";
7600
- raw: unknown;
7601
- } | {
7602
- type: "attachment";
7603
- id: string;
7604
- name: string;
7605
- mimeType: string;
7606
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7607
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7608
- size?: number | undefined;
7609
- } | {
7610
7599
  type: "contact";
7611
7600
  user?: {
7612
7601
  __platform: string;
@@ -7650,18 +7639,13 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7650
7639
  } | undefined;
7651
7640
  raw?: unknown;
7652
7641
  } | {
7653
- type: "text";
7654
- text: string;
7655
- } | {
7656
- type: "markdown";
7657
- markdown: string;
7658
- } | {
7659
- type: "group";
7660
- items: Message<string, User, Space<unknown>>[];
7661
- } | {
7662
- type: "reaction";
7663
- emoji: string;
7664
- target: Message<string, User, Space<unknown>>;
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;
7665
7649
  } | {
7666
7650
  type: "poll";
7667
7651
  title: string;
@@ -7682,6 +7666,18 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7682
7666
  };
7683
7667
  selected: boolean;
7684
7668
  title: string;
7669
+ } | {
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>>[];
7685
7681
  } | {
7686
7682
  type: "streamText";
7687
7683
  stream: () => AsyncIterable<string>;
@@ -7711,6 +7707,10 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7711
7707
  summary: z.ZodOptional<z.ZodString>;
7712
7708
  }, z.core.$strip>>>;
7713
7709
  live?: boolean | undefined;
7710
+ } | {
7711
+ type: "reaction";
7712
+ emoji: string;
7713
+ target: Message<string, User, Space<unknown>>;
7714
7714
  } | {
7715
7715
  type: "effect";
7716
7716
  content: {
@@ -7753,17 +7753,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7753
7753
  } | {
7754
7754
  type: "leaveSpace";
7755
7755
  }, {
7756
- type: "custom";
7757
- raw: unknown;
7758
- } | {
7759
- type: "attachment";
7760
- id: string;
7761
- name: string;
7762
- mimeType: string;
7763
- read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7764
- stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7765
- size?: number | undefined;
7766
- } | {
7767
7756
  type: "contact";
7768
7757
  user?: {
7769
7758
  __platform: string;
@@ -7807,18 +7796,13 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7807
7796
  } | undefined;
7808
7797
  raw?: unknown;
7809
7798
  } | {
7810
- type: "text";
7811
- text: string;
7812
- } | {
7813
- type: "markdown";
7814
- markdown: string;
7815
- } | {
7816
- type: "group";
7817
- items: Message<string, User, Space<unknown>>[];
7818
- } | {
7819
- type: "reaction";
7820
- emoji: string;
7821
- target: Message<string, User, Space<unknown>>;
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;
7822
7806
  } | {
7823
7807
  type: "poll";
7824
7808
  title: string;
@@ -7839,6 +7823,18 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7839
7823
  };
7840
7824
  selected: boolean;
7841
7825
  title: string;
7826
+ } | {
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>>[];
7842
7838
  } | {
7843
7839
  type: "streamText";
7844
7840
  stream: () => AsyncIterable<string>;
@@ -7868,6 +7864,10 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7868
7864
  summary: z.ZodOptional<z.ZodString>;
7869
7865
  }, z.core.$strip>>>;
7870
7866
  live?: boolean | undefined;
7867
+ } | {
7868
+ type: "reaction";
7869
+ emoji: string;
7870
+ target: Message<string, User, Space<unknown>>;
7871
7871
  } | {
7872
7872
  type: "effect";
7873
7873
  content: {
@@ -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-CxF8ejPo.js";
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";
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 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-CxF8ejPo.js";
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";
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
@@ -3051,7 +3051,7 @@ function definePlatform(name, rawDef) {
3051
3051
  }
3052
3052
  //#endregion
3053
3053
  //#region src/build-env.ts
3054
- const SPECTRUM_SDK_VERSION = "10.0.0";
3054
+ const SPECTRUM_SDK_VERSION = "11.0.0";
3055
3055
  //#endregion
3056
3056
  //#region src/utils/provider-packages.ts
3057
3057
  const OFFICIAL_PROVIDER_PACKAGES = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-ts/core",
3
- "version": "10.0.0",
3
+ "version": "11.0.0",
4
4
  "description": "The spectrum-ts runtime — Spectrum, content builders, fusor, and the provider authoring API.",
5
5
  "repository": {
6
6
  "type": "git",