@spectrum-ts/core 8.2.0 → 8.2.1

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.
@@ -447,9 +447,6 @@ interface Message<TPlatform extends string = string, TSender extends User = User
447
447
  declare const editSchema: z.ZodObject<{
448
448
  type: z.ZodLiteral<"edit">;
449
449
  content: z.ZodCustom<{
450
- type: "group";
451
- items: Message<string, User, Space<unknown>>[];
452
- } | {
453
450
  type: "text";
454
451
  text: string;
455
452
  } | {
@@ -463,26 +460,6 @@ declare const editSchema: z.ZodObject<{
463
460
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
464
461
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
465
462
  size?: number | undefined;
466
- } | {
467
- type: "poll";
468
- title: string;
469
- options: {
470
- title: string;
471
- }[];
472
- } | {
473
- type: "poll_option";
474
- option: {
475
- title: string;
476
- };
477
- poll: {
478
- type: "poll";
479
- title: string;
480
- options: {
481
- title: string;
482
- }[];
483
- };
484
- selected: boolean;
485
- title: string;
486
463
  } | {
487
464
  type: "contact";
488
465
  user?: {
@@ -527,15 +504,15 @@ declare const editSchema: z.ZodObject<{
527
504
  } | undefined;
528
505
  raw?: unknown;
529
506
  } | {
530
- type: "reaction";
531
- emoji: string;
532
- target: Message<string, User, Space<unknown>>;
507
+ type: "group";
508
+ items: Message<string, User, Space<unknown>>[];
533
509
  } | {
534
510
  type: "custom";
535
511
  raw: unknown;
536
512
  } | {
537
- type: "richlink";
538
- url: string;
513
+ type: "reaction";
514
+ emoji: string;
515
+ target: Message<string, User, Space<unknown>>;
539
516
  } | {
540
517
  type: "streamText";
541
518
  stream: () => AsyncIterable<string>;
@@ -548,6 +525,9 @@ declare const editSchema: z.ZodObject<{
548
525
  name?: string | undefined;
549
526
  duration?: number | undefined;
550
527
  size?: number | undefined;
528
+ } | {
529
+ type: "richlink";
530
+ url: string;
551
531
  } | {
552
532
  type: "app";
553
533
  url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
@@ -561,6 +541,26 @@ declare const editSchema: z.ZodObject<{
561
541
  imageSubtitle: z.ZodOptional<z.ZodString>;
562
542
  summary: z.ZodOptional<z.ZodString>;
563
543
  }, z.core.$strip>>>;
544
+ } | {
545
+ type: "poll";
546
+ title: string;
547
+ options: {
548
+ title: string;
549
+ }[];
550
+ } | {
551
+ type: "poll_option";
552
+ option: {
553
+ title: string;
554
+ };
555
+ poll: {
556
+ type: "poll";
557
+ title: string;
558
+ options: {
559
+ title: string;
560
+ }[];
561
+ };
562
+ selected: boolean;
563
+ title: string;
564
564
  } | {
565
565
  type: "effect";
566
566
  content: {
@@ -595,9 +595,6 @@ declare const editSchema: z.ZodObject<{
595
595
  kind: "clear";
596
596
  };
597
597
  }, {
598
- type: "group";
599
- items: Message<string, User, Space<unknown>>[];
600
- } | {
601
598
  type: "text";
602
599
  text: string;
603
600
  } | {
@@ -611,26 +608,6 @@ declare const editSchema: z.ZodObject<{
611
608
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
612
609
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
613
610
  size?: number | undefined;
614
- } | {
615
- type: "poll";
616
- title: string;
617
- options: {
618
- title: string;
619
- }[];
620
- } | {
621
- type: "poll_option";
622
- option: {
623
- title: string;
624
- };
625
- poll: {
626
- type: "poll";
627
- title: string;
628
- options: {
629
- title: string;
630
- }[];
631
- };
632
- selected: boolean;
633
- title: string;
634
611
  } | {
635
612
  type: "contact";
636
613
  user?: {
@@ -675,15 +652,15 @@ declare const editSchema: z.ZodObject<{
675
652
  } | undefined;
676
653
  raw?: unknown;
677
654
  } | {
678
- type: "reaction";
679
- emoji: string;
680
- target: Message<string, User, Space<unknown>>;
655
+ type: "group";
656
+ items: Message<string, User, Space<unknown>>[];
681
657
  } | {
682
658
  type: "custom";
683
659
  raw: unknown;
684
660
  } | {
685
- type: "richlink";
686
- url: string;
661
+ type: "reaction";
662
+ emoji: string;
663
+ target: Message<string, User, Space<unknown>>;
687
664
  } | {
688
665
  type: "streamText";
689
666
  stream: () => AsyncIterable<string>;
@@ -696,6 +673,9 @@ declare const editSchema: z.ZodObject<{
696
673
  name?: string | undefined;
697
674
  duration?: number | undefined;
698
675
  size?: number | undefined;
676
+ } | {
677
+ type: "richlink";
678
+ url: string;
699
679
  } | {
700
680
  type: "app";
701
681
  url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
@@ -709,6 +689,26 @@ declare const editSchema: z.ZodObject<{
709
689
  imageSubtitle: z.ZodOptional<z.ZodString>;
710
690
  summary: z.ZodOptional<z.ZodString>;
711
691
  }, z.core.$strip>>>;
692
+ } | {
693
+ type: "poll";
694
+ title: string;
695
+ options: {
696
+ title: string;
697
+ }[];
698
+ } | {
699
+ type: "poll_option";
700
+ option: {
701
+ title: string;
702
+ };
703
+ poll: {
704
+ type: "poll";
705
+ title: string;
706
+ options: {
707
+ title: string;
708
+ }[];
709
+ };
710
+ selected: boolean;
711
+ title: string;
712
712
  } | {
713
713
  type: "effect";
714
714
  content: {
@@ -968,9 +968,6 @@ declare function rename(displayName: string): ContentBuilder;
968
968
  declare const replySchema: z.ZodObject<{
969
969
  type: z.ZodLiteral<"reply">;
970
970
  content: z.ZodCustom<{
971
- type: "group";
972
- items: Message<string, User, Space<unknown>>[];
973
- } | {
974
971
  type: "text";
975
972
  text: string;
976
973
  } | {
@@ -984,26 +981,6 @@ declare const replySchema: z.ZodObject<{
984
981
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
985
982
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
986
983
  size?: number | undefined;
987
- } | {
988
- type: "poll";
989
- title: string;
990
- options: {
991
- title: string;
992
- }[];
993
- } | {
994
- type: "poll_option";
995
- option: {
996
- title: string;
997
- };
998
- poll: {
999
- type: "poll";
1000
- title: string;
1001
- options: {
1002
- title: string;
1003
- }[];
1004
- };
1005
- selected: boolean;
1006
- title: string;
1007
984
  } | {
1008
985
  type: "contact";
1009
986
  user?: {
@@ -1048,15 +1025,15 @@ declare const replySchema: z.ZodObject<{
1048
1025
  } | undefined;
1049
1026
  raw?: unknown;
1050
1027
  } | {
1051
- type: "reaction";
1052
- emoji: string;
1053
- target: Message<string, User, Space<unknown>>;
1028
+ type: "group";
1029
+ items: Message<string, User, Space<unknown>>[];
1054
1030
  } | {
1055
1031
  type: "custom";
1056
1032
  raw: unknown;
1057
1033
  } | {
1058
- type: "richlink";
1059
- url: string;
1034
+ type: "reaction";
1035
+ emoji: string;
1036
+ target: Message<string, User, Space<unknown>>;
1060
1037
  } | {
1061
1038
  type: "streamText";
1062
1039
  stream: () => AsyncIterable<string>;
@@ -1069,6 +1046,9 @@ declare const replySchema: z.ZodObject<{
1069
1046
  name?: string | undefined;
1070
1047
  duration?: number | undefined;
1071
1048
  size?: number | undefined;
1049
+ } | {
1050
+ type: "richlink";
1051
+ url: string;
1072
1052
  } | {
1073
1053
  type: "app";
1074
1054
  url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
@@ -1082,6 +1062,26 @@ declare const replySchema: z.ZodObject<{
1082
1062
  imageSubtitle: z.ZodOptional<z.ZodString>;
1083
1063
  summary: z.ZodOptional<z.ZodString>;
1084
1064
  }, z.core.$strip>>>;
1065
+ } | {
1066
+ type: "poll";
1067
+ title: string;
1068
+ options: {
1069
+ title: string;
1070
+ }[];
1071
+ } | {
1072
+ type: "poll_option";
1073
+ option: {
1074
+ title: string;
1075
+ };
1076
+ poll: {
1077
+ type: "poll";
1078
+ title: string;
1079
+ options: {
1080
+ title: string;
1081
+ }[];
1082
+ };
1083
+ selected: boolean;
1084
+ title: string;
1085
1085
  } | {
1086
1086
  type: "effect";
1087
1087
  content: {
@@ -1116,9 +1116,6 @@ declare const replySchema: z.ZodObject<{
1116
1116
  kind: "clear";
1117
1117
  };
1118
1118
  }, {
1119
- type: "group";
1120
- items: Message<string, User, Space<unknown>>[];
1121
- } | {
1122
1119
  type: "text";
1123
1120
  text: string;
1124
1121
  } | {
@@ -1132,26 +1129,6 @@ declare const replySchema: z.ZodObject<{
1132
1129
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1133
1130
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
1134
1131
  size?: number | undefined;
1135
- } | {
1136
- type: "poll";
1137
- title: string;
1138
- options: {
1139
- title: string;
1140
- }[];
1141
- } | {
1142
- type: "poll_option";
1143
- option: {
1144
- title: string;
1145
- };
1146
- poll: {
1147
- type: "poll";
1148
- title: string;
1149
- options: {
1150
- title: string;
1151
- }[];
1152
- };
1153
- selected: boolean;
1154
- title: string;
1155
1132
  } | {
1156
1133
  type: "contact";
1157
1134
  user?: {
@@ -1196,15 +1173,15 @@ declare const replySchema: z.ZodObject<{
1196
1173
  } | undefined;
1197
1174
  raw?: unknown;
1198
1175
  } | {
1199
- type: "reaction";
1200
- emoji: string;
1201
- target: Message<string, User, Space<unknown>>;
1176
+ type: "group";
1177
+ items: Message<string, User, Space<unknown>>[];
1202
1178
  } | {
1203
1179
  type: "custom";
1204
1180
  raw: unknown;
1205
1181
  } | {
1206
- type: "richlink";
1207
- url: string;
1182
+ type: "reaction";
1183
+ emoji: string;
1184
+ target: Message<string, User, Space<unknown>>;
1208
1185
  } | {
1209
1186
  type: "streamText";
1210
1187
  stream: () => AsyncIterable<string>;
@@ -1217,6 +1194,9 @@ declare const replySchema: z.ZodObject<{
1217
1194
  name?: string | undefined;
1218
1195
  duration?: number | undefined;
1219
1196
  size?: number | undefined;
1197
+ } | {
1198
+ type: "richlink";
1199
+ url: string;
1220
1200
  } | {
1221
1201
  type: "app";
1222
1202
  url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
@@ -1230,6 +1210,26 @@ declare const replySchema: z.ZodObject<{
1230
1210
  imageSubtitle: z.ZodOptional<z.ZodString>;
1231
1211
  summary: z.ZodOptional<z.ZodString>;
1232
1212
  }, z.core.$strip>>>;
1213
+ } | {
1214
+ type: "poll";
1215
+ title: string;
1216
+ options: {
1217
+ title: string;
1218
+ }[];
1219
+ } | {
1220
+ type: "poll_option";
1221
+ option: {
1222
+ title: string;
1223
+ };
1224
+ poll: {
1225
+ type: "poll";
1226
+ title: string;
1227
+ options: {
1228
+ title: string;
1229
+ }[];
1230
+ };
1231
+ selected: boolean;
1232
+ title: string;
1233
1233
  } | {
1234
1234
  type: "effect";
1235
1235
  content: {
@@ -7024,9 +7024,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7024
7024
  }, z.core.$strip>, z.ZodObject<{
7025
7025
  type: z.ZodLiteral<"reply">;
7026
7026
  content: z.ZodCustom<{
7027
- type: "group";
7028
- items: Message<string, User, Space<unknown>>[];
7029
- } | {
7030
7027
  type: "text";
7031
7028
  text: string;
7032
7029
  } | {
@@ -7040,26 +7037,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7040
7037
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7041
7038
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7042
7039
  size?: number | undefined;
7043
- } | {
7044
- type: "poll";
7045
- title: string;
7046
- options: {
7047
- title: string;
7048
- }[];
7049
- } | {
7050
- type: "poll_option";
7051
- option: {
7052
- title: string;
7053
- };
7054
- poll: {
7055
- type: "poll";
7056
- title: string;
7057
- options: {
7058
- title: string;
7059
- }[];
7060
- };
7061
- selected: boolean;
7062
- title: string;
7063
7040
  } | {
7064
7041
  type: "contact";
7065
7042
  user?: {
@@ -7104,15 +7081,15 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7104
7081
  } | undefined;
7105
7082
  raw?: unknown;
7106
7083
  } | {
7107
- type: "reaction";
7108
- emoji: string;
7109
- target: Message<string, User, Space<unknown>>;
7084
+ type: "group";
7085
+ items: Message<string, User, Space<unknown>>[];
7110
7086
  } | {
7111
7087
  type: "custom";
7112
7088
  raw: unknown;
7113
7089
  } | {
7114
- type: "richlink";
7115
- url: string;
7090
+ type: "reaction";
7091
+ emoji: string;
7092
+ target: Message<string, User, Space<unknown>>;
7116
7093
  } | {
7117
7094
  type: "streamText";
7118
7095
  stream: () => AsyncIterable<string>;
@@ -7125,6 +7102,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7125
7102
  name?: string | undefined;
7126
7103
  duration?: number | undefined;
7127
7104
  size?: number | undefined;
7105
+ } | {
7106
+ type: "richlink";
7107
+ url: string;
7128
7108
  } | {
7129
7109
  type: "app";
7130
7110
  url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
@@ -7138,6 +7118,26 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7138
7118
  imageSubtitle: z.ZodOptional<z.ZodString>;
7139
7119
  summary: z.ZodOptional<z.ZodString>;
7140
7120
  }, z.core.$strip>>>;
7121
+ } | {
7122
+ type: "poll";
7123
+ title: string;
7124
+ options: {
7125
+ title: string;
7126
+ }[];
7127
+ } | {
7128
+ type: "poll_option";
7129
+ option: {
7130
+ title: string;
7131
+ };
7132
+ poll: {
7133
+ type: "poll";
7134
+ title: string;
7135
+ options: {
7136
+ title: string;
7137
+ }[];
7138
+ };
7139
+ selected: boolean;
7140
+ title: string;
7141
7141
  } | {
7142
7142
  type: "effect";
7143
7143
  content: {
@@ -7172,9 +7172,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7172
7172
  kind: "clear";
7173
7173
  };
7174
7174
  }, {
7175
- type: "group";
7176
- items: Message<string, User, Space<unknown>>[];
7177
- } | {
7178
7175
  type: "text";
7179
7176
  text: string;
7180
7177
  } | {
@@ -7188,26 +7185,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7188
7185
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7189
7186
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7190
7187
  size?: number | undefined;
7191
- } | {
7192
- type: "poll";
7193
- title: string;
7194
- options: {
7195
- title: string;
7196
- }[];
7197
- } | {
7198
- type: "poll_option";
7199
- option: {
7200
- title: string;
7201
- };
7202
- poll: {
7203
- type: "poll";
7204
- title: string;
7205
- options: {
7206
- title: string;
7207
- }[];
7208
- };
7209
- selected: boolean;
7210
- title: string;
7211
7188
  } | {
7212
7189
  type: "contact";
7213
7190
  user?: {
@@ -7252,15 +7229,15 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7252
7229
  } | undefined;
7253
7230
  raw?: unknown;
7254
7231
  } | {
7255
- type: "reaction";
7256
- emoji: string;
7257
- target: Message<string, User, Space<unknown>>;
7232
+ type: "group";
7233
+ items: Message<string, User, Space<unknown>>[];
7258
7234
  } | {
7259
7235
  type: "custom";
7260
7236
  raw: unknown;
7261
7237
  } | {
7262
- type: "richlink";
7263
- url: string;
7238
+ type: "reaction";
7239
+ emoji: string;
7240
+ target: Message<string, User, Space<unknown>>;
7264
7241
  } | {
7265
7242
  type: "streamText";
7266
7243
  stream: () => AsyncIterable<string>;
@@ -7273,6 +7250,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7273
7250
  name?: string | undefined;
7274
7251
  duration?: number | undefined;
7275
7252
  size?: number | undefined;
7253
+ } | {
7254
+ type: "richlink";
7255
+ url: string;
7276
7256
  } | {
7277
7257
  type: "app";
7278
7258
  url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
@@ -7286,6 +7266,26 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7286
7266
  imageSubtitle: z.ZodOptional<z.ZodString>;
7287
7267
  summary: z.ZodOptional<z.ZodString>;
7288
7268
  }, z.core.$strip>>>;
7269
+ } | {
7270
+ type: "poll";
7271
+ title: string;
7272
+ options: {
7273
+ title: string;
7274
+ }[];
7275
+ } | {
7276
+ type: "poll_option";
7277
+ option: {
7278
+ title: string;
7279
+ };
7280
+ poll: {
7281
+ type: "poll";
7282
+ title: string;
7283
+ options: {
7284
+ title: string;
7285
+ }[];
7286
+ };
7287
+ selected: boolean;
7288
+ title: string;
7289
7289
  } | {
7290
7290
  type: "effect";
7291
7291
  content: {
@@ -7324,9 +7324,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7324
7324
  }, z.core.$strip>, z.ZodObject<{
7325
7325
  type: z.ZodLiteral<"edit">;
7326
7326
  content: z.ZodCustom<{
7327
- type: "group";
7328
- items: Message<string, User, Space<unknown>>[];
7329
- } | {
7330
7327
  type: "text";
7331
7328
  text: string;
7332
7329
  } | {
@@ -7340,26 +7337,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7340
7337
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7341
7338
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7342
7339
  size?: number | undefined;
7343
- } | {
7344
- type: "poll";
7345
- title: string;
7346
- options: {
7347
- title: string;
7348
- }[];
7349
- } | {
7350
- type: "poll_option";
7351
- option: {
7352
- title: string;
7353
- };
7354
- poll: {
7355
- type: "poll";
7356
- title: string;
7357
- options: {
7358
- title: string;
7359
- }[];
7360
- };
7361
- selected: boolean;
7362
- title: string;
7363
7340
  } | {
7364
7341
  type: "contact";
7365
7342
  user?: {
@@ -7404,15 +7381,15 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7404
7381
  } | undefined;
7405
7382
  raw?: unknown;
7406
7383
  } | {
7407
- type: "reaction";
7408
- emoji: string;
7409
- target: Message<string, User, Space<unknown>>;
7384
+ type: "group";
7385
+ items: Message<string, User, Space<unknown>>[];
7410
7386
  } | {
7411
7387
  type: "custom";
7412
7388
  raw: unknown;
7413
7389
  } | {
7414
- type: "richlink";
7415
- url: string;
7390
+ type: "reaction";
7391
+ emoji: string;
7392
+ target: Message<string, User, Space<unknown>>;
7416
7393
  } | {
7417
7394
  type: "streamText";
7418
7395
  stream: () => AsyncIterable<string>;
@@ -7425,6 +7402,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7425
7402
  name?: string | undefined;
7426
7403
  duration?: number | undefined;
7427
7404
  size?: number | undefined;
7405
+ } | {
7406
+ type: "richlink";
7407
+ url: string;
7428
7408
  } | {
7429
7409
  type: "app";
7430
7410
  url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
@@ -7438,6 +7418,26 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7438
7418
  imageSubtitle: z.ZodOptional<z.ZodString>;
7439
7419
  summary: z.ZodOptional<z.ZodString>;
7440
7420
  }, z.core.$strip>>>;
7421
+ } | {
7422
+ type: "poll";
7423
+ title: string;
7424
+ options: {
7425
+ title: string;
7426
+ }[];
7427
+ } | {
7428
+ type: "poll_option";
7429
+ option: {
7430
+ title: string;
7431
+ };
7432
+ poll: {
7433
+ type: "poll";
7434
+ title: string;
7435
+ options: {
7436
+ title: string;
7437
+ }[];
7438
+ };
7439
+ selected: boolean;
7440
+ title: string;
7441
7441
  } | {
7442
7442
  type: "effect";
7443
7443
  content: {
@@ -7472,9 +7472,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7472
7472
  kind: "clear";
7473
7473
  };
7474
7474
  }, {
7475
- type: "group";
7476
- items: Message<string, User, Space<unknown>>[];
7477
- } | {
7478
7475
  type: "text";
7479
7476
  text: string;
7480
7477
  } | {
@@ -7488,26 +7485,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7488
7485
  read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
7489
7486
  stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
7490
7487
  size?: number | undefined;
7491
- } | {
7492
- type: "poll";
7493
- title: string;
7494
- options: {
7495
- title: string;
7496
- }[];
7497
- } | {
7498
- type: "poll_option";
7499
- option: {
7500
- title: string;
7501
- };
7502
- poll: {
7503
- type: "poll";
7504
- title: string;
7505
- options: {
7506
- title: string;
7507
- }[];
7508
- };
7509
- selected: boolean;
7510
- title: string;
7511
7488
  } | {
7512
7489
  type: "contact";
7513
7490
  user?: {
@@ -7552,15 +7529,15 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7552
7529
  } | undefined;
7553
7530
  raw?: unknown;
7554
7531
  } | {
7555
- type: "reaction";
7556
- emoji: string;
7557
- target: Message<string, User, Space<unknown>>;
7532
+ type: "group";
7533
+ items: Message<string, User, Space<unknown>>[];
7558
7534
  } | {
7559
7535
  type: "custom";
7560
7536
  raw: unknown;
7561
7537
  } | {
7562
- type: "richlink";
7563
- url: string;
7538
+ type: "reaction";
7539
+ emoji: string;
7540
+ target: Message<string, User, Space<unknown>>;
7564
7541
  } | {
7565
7542
  type: "streamText";
7566
7543
  stream: () => AsyncIterable<string>;
@@ -7573,6 +7550,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7573
7550
  name?: string | undefined;
7574
7551
  duration?: number | undefined;
7575
7552
  size?: number | undefined;
7553
+ } | {
7554
+ type: "richlink";
7555
+ url: string;
7576
7556
  } | {
7577
7557
  type: "app";
7578
7558
  url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
@@ -7586,6 +7566,26 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7586
7566
  imageSubtitle: z.ZodOptional<z.ZodString>;
7587
7567
  summary: z.ZodOptional<z.ZodString>;
7588
7568
  }, z.core.$strip>>>;
7569
+ } | {
7570
+ type: "poll";
7571
+ title: string;
7572
+ options: {
7573
+ title: string;
7574
+ }[];
7575
+ } | {
7576
+ type: "poll_option";
7577
+ option: {
7578
+ title: string;
7579
+ };
7580
+ poll: {
7581
+ type: "poll";
7582
+ title: string;
7583
+ options: {
7584
+ title: string;
7585
+ }[];
7586
+ };
7587
+ selected: boolean;
7588
+ title: string;
7589
7589
  } | {
7590
7590
  type: "effect";
7591
7591
  content: {
@@ -1,4 +1,4 @@
1
- import { $t as asGroup, An as photoActionSchema, Ft as asRead, H as ProviderMessageRecord, Ht as asPollOption, K as ManagedStream, Kt as asMarkdown, On as PhotoInput, St as asText, Tt as asRichlink, Vt as asPoll, cn as asReaction, dn as asCustom, gt as asVoice, jt as replySchema, kn as buildPhotoAction, kt as asReply, r as asAttachment, tn as groupSchema, un as reactionSchema, xn as asContact } from "./attachment-LmpkSsPn.js";
1
+ import { $t as asGroup, An as photoActionSchema, Ft as asRead, H as ProviderMessageRecord, Ht as asPollOption, K as ManagedStream, Kt as asMarkdown, On as PhotoInput, St as asText, Tt as asRichlink, Vt as asPoll, cn as asReaction, dn as asCustom, gt as asVoice, jt as replySchema, kn as buildPhotoAction, kt as asReply, r as asAttachment, tn as groupSchema, un as reactionSchema, xn as asContact } from "./attachment-DySo210v.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 FusorTokenData, A as isFusorEvent, At as reply, B as PlatformUser, Bt as PollOption, C as FusorVerify, Cn as AgentSender, Ct as text, D as WebhookRawResult, Dn as avatar, Dt as resolveContents, E as WebhookRawRequest, En as AvatarInput, Et as richlink, F as PlatformInstance, Fn as appLayoutSchema, G as Broadcaster, Gt as Markdown, I as PlatformMessage, It as read, J as mergeStreams, Jt as DeltaExtractor, K as ManagedStream, L as PlatformProviderConfig, Lt as Poll, M as EventProducer, Mn as AppLayout, Mt as Rename, N as Platform, Nn as AppUrl, Nt as rename, O as FusorEvent, Ot as Reply, P as PlatformDef, Pn as app, Pt as Read, Q as DedicatedTokenData, Qt as Group, R as PlatformRuntime, Rt as PollChoice, S as FusorRespond, Sn as contact, T as WebhookHandler, Tn as Avatar, U as SchemaMessage, Ut as option, V as ProviderMessage, W as SpaceNamespace, Wt as poll, X as Store, Xt as StreamTextSource, Y as stream, Yt as StreamText, Z as CloudPlatform, Zt as TextStreamOptions, _ as FusorClient, _n as ContactInput, _t as voice, a as Content, an as Space, at as SharedTokenData, b as FusorMessagesReturn, bn as ContactPhone, bt as Typing, c as fromVCard, ct as SpectrumCloudError, d as UnsupportedKind, dt as TokenData, en as group, et as ImessageInfoData, f as Spectrum, fn as custom, ft as cloud, g as isFusorClient, gn as ContactEmail, h as fusor, hn as ContactDetails, ht as Voice, i as attachment, in as Message, it as ProjectProfile, j as AnyPlatformDef, jn as App, k as fusorEvent, l as toVCard, ln as reaction, lt as SubscriptionData, m as definePlatform, mn as ContactAddress, mt as EmojiKey, n as AttachmentInput, nn as Edit, nt as PlatformsData, o as ContentBuilder, on as Reaction, ot as SlackTeamMeta, p as SpectrumInstance, pn as Contact, pt as Emoji, q as broadcast, qt as markdown, rn as edit, rt as ProjectData, s as ContentInput, sn as ReactionBuilder, st as SlackTokenData, t as Attachment, tt as PlatformStatus, u as UnsupportedError, ut as SubscriptionStatus, v as FusorMessages, vn as ContactName, vt as Unsend, w as FusorVerifyRequest, wn as User, wt as Richlink, x as FusorReply, xt as typing, y as FusorMessagesCtx, yn as ContactOrg, yt as unsend, z as PlatformSpace, zt as PollChoiceInput } from "./attachment-LmpkSsPn.js";
1
+ import { $ as FusorTokenData, A as isFusorEvent, At as reply, B as PlatformUser, Bt as PollOption, C as FusorVerify, Cn as AgentSender, Ct as text, D as WebhookRawResult, Dn as avatar, Dt as resolveContents, E as WebhookRawRequest, En as AvatarInput, Et as richlink, F as PlatformInstance, Fn as appLayoutSchema, G as Broadcaster, Gt as Markdown, I as PlatformMessage, It as read, J as mergeStreams, Jt as DeltaExtractor, K as ManagedStream, L as PlatformProviderConfig, Lt as Poll, M as EventProducer, Mn as AppLayout, Mt as Rename, N as Platform, Nn as AppUrl, Nt as rename, O as FusorEvent, Ot as Reply, P as PlatformDef, Pn as app, Pt as Read, Q as DedicatedTokenData, Qt as Group, R as PlatformRuntime, Rt as PollChoice, S as FusorRespond, Sn as contact, T as WebhookHandler, Tn as Avatar, U as SchemaMessage, Ut as option, V as ProviderMessage, W as SpaceNamespace, Wt as poll, X as Store, Xt as StreamTextSource, Y as stream, Yt as StreamText, Z as CloudPlatform, Zt as TextStreamOptions, _ as FusorClient, _n as ContactInput, _t as voice, a as Content, an as Space, at as SharedTokenData, b as FusorMessagesReturn, bn as ContactPhone, bt as Typing, c as fromVCard, ct as SpectrumCloudError, d as UnsupportedKind, dt as TokenData, en as group, et as ImessageInfoData, f as Spectrum, fn as custom, ft as cloud, g as isFusorClient, gn as ContactEmail, h as fusor, hn as ContactDetails, ht as Voice, i as attachment, in as Message, it as ProjectProfile, j as AnyPlatformDef, jn as App, k as fusorEvent, l as toVCard, ln as reaction, lt as SubscriptionData, m as definePlatform, mn as ContactAddress, mt as EmojiKey, n as AttachmentInput, nn as Edit, nt as PlatformsData, o as ContentBuilder, on as Reaction, ot as SlackTeamMeta, p as SpectrumInstance, pn as Contact, pt as Emoji, q as broadcast, qt as markdown, rn as edit, rt as ProjectData, s as ContentInput, sn as ReactionBuilder, st as SlackTokenData, t as Attachment, tt as PlatformStatus, u as UnsupportedError, ut as SubscriptionStatus, v as FusorMessages, vn as ContactName, vt as Unsend, w as FusorVerifyRequest, wn as User, wt as Richlink, x as FusorReply, xt as typing, y as FusorMessagesCtx, yn as ContactOrg, yt as unsend, z as PlatformSpace, zt as PollChoiceInput } from "./attachment-DySo210v.js";
2
2
  export { type AgentSender, type AnyPlatformDef, type App, type AppLayout, type AppUrl, type Attachment, type AttachmentInput, type Avatar, 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 ManagedStream, type Markdown, 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 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, app, appLayoutSchema, attachment, avatar, broadcast, cloud, contact, custom, definePlatform, edit, fromVCard, fusor, fusorEvent, group, isFusorClient, isFusorEvent, markdown, mergeStreams, option, poll, reaction, read, rename, reply, resolveContents, richlink, stream, text, toVCard, typing, unsend, voice };
package/dist/index.js CHANGED
@@ -3020,7 +3020,7 @@ function definePlatform(name, rawDef) {
3020
3020
  }
3021
3021
  //#endregion
3022
3022
  //#region src/build-env.ts
3023
- const SPECTRUM_SDK_VERSION = "8.2.0";
3023
+ const SPECTRUM_SDK_VERSION = "8.2.1";
3024
3024
  //#endregion
3025
3025
  //#region src/utils/provider-packages.ts
3026
3026
  const OFFICIAL_PROVIDER_PACKAGES = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-ts/core",
3
- "version": "8.2.0",
3
+ "version": "8.2.1",
4
4
  "description": "The spectrum-ts runtime — Spectrum, content builders, fusor, and the provider authoring API.",
5
5
  "repository": {
6
6
  "type": "git",