@spectrum-ts/core 12.3.0 → 12.4.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,23 +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: "attachment";
|
|
596
|
-
id: string;
|
|
597
|
-
name: string;
|
|
598
|
-
mimeType: string;
|
|
599
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
600
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
601
|
-
size?: number | undefined;
|
|
602
|
-
} | {
|
|
603
|
-
type: "text";
|
|
604
|
-
text: string;
|
|
605
|
-
} | {
|
|
606
|
-
type: "markdown";
|
|
607
|
-
markdown: string;
|
|
608
|
-
} | {
|
|
609
|
-
type: "group";
|
|
610
|
-
items: Message<string, User, Space<unknown>>[];
|
|
611
|
-
} | {
|
|
612
595
|
type: "contact";
|
|
613
596
|
user?: {
|
|
614
597
|
__platform: string;
|
|
@@ -651,9 +634,49 @@ declare const editSchema: z.ZodObject<{
|
|
|
651
634
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
652
635
|
} | undefined;
|
|
653
636
|
raw?: unknown;
|
|
637
|
+
} | {
|
|
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;
|
|
645
|
+
} | {
|
|
646
|
+
type: "text";
|
|
647
|
+
text: string;
|
|
648
|
+
} | {
|
|
649
|
+
type: "markdown";
|
|
650
|
+
markdown: string;
|
|
654
651
|
} | {
|
|
655
652
|
type: "custom";
|
|
656
653
|
raw: unknown;
|
|
654
|
+
} | {
|
|
655
|
+
type: "group";
|
|
656
|
+
items: Message<string, User, Space<unknown>>[];
|
|
657
|
+
} | {
|
|
658
|
+
type: "richlink";
|
|
659
|
+
url: string;
|
|
660
|
+
} | {
|
|
661
|
+
type: "poll";
|
|
662
|
+
title: string;
|
|
663
|
+
options: {
|
|
664
|
+
title: string;
|
|
665
|
+
}[];
|
|
666
|
+
} | {
|
|
667
|
+
type: "poll_option";
|
|
668
|
+
option: {
|
|
669
|
+
title: string;
|
|
670
|
+
};
|
|
671
|
+
poll: {
|
|
672
|
+
type: "poll";
|
|
673
|
+
title: string;
|
|
674
|
+
options: {
|
|
675
|
+
title: string;
|
|
676
|
+
}[];
|
|
677
|
+
};
|
|
678
|
+
selected: boolean;
|
|
679
|
+
title: string;
|
|
657
680
|
} | {
|
|
658
681
|
type: "streamText";
|
|
659
682
|
stream: () => AsyncIterable<string>;
|
|
@@ -667,9 +690,6 @@ declare const editSchema: z.ZodObject<{
|
|
|
667
690
|
name?: string | undefined;
|
|
668
691
|
duration?: number | undefined;
|
|
669
692
|
size?: number | undefined;
|
|
670
|
-
} | {
|
|
671
|
-
type: "richlink";
|
|
672
|
-
url: string;
|
|
673
693
|
} | {
|
|
674
694
|
type: "app";
|
|
675
695
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -688,26 +708,6 @@ declare const editSchema: z.ZodObject<{
|
|
|
688
708
|
type: "reaction";
|
|
689
709
|
emoji: string;
|
|
690
710
|
target: Message<string, User, Space<unknown>>;
|
|
691
|
-
} | {
|
|
692
|
-
type: "poll";
|
|
693
|
-
title: string;
|
|
694
|
-
options: {
|
|
695
|
-
title: string;
|
|
696
|
-
}[];
|
|
697
|
-
} | {
|
|
698
|
-
type: "poll_option";
|
|
699
|
-
option: {
|
|
700
|
-
title: string;
|
|
701
|
-
};
|
|
702
|
-
poll: {
|
|
703
|
-
type: "poll";
|
|
704
|
-
title: string;
|
|
705
|
-
options: {
|
|
706
|
-
title: string;
|
|
707
|
-
}[];
|
|
708
|
-
};
|
|
709
|
-
selected: boolean;
|
|
710
|
-
title: string;
|
|
711
711
|
} | {
|
|
712
712
|
type: "effect";
|
|
713
713
|
content: {
|
|
@@ -750,23 +750,6 @@ declare const editSchema: z.ZodObject<{
|
|
|
750
750
|
} | {
|
|
751
751
|
type: "leaveSpace";
|
|
752
752
|
}, {
|
|
753
|
-
type: "attachment";
|
|
754
|
-
id: string;
|
|
755
|
-
name: string;
|
|
756
|
-
mimeType: string;
|
|
757
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
758
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
759
|
-
size?: number | undefined;
|
|
760
|
-
} | {
|
|
761
|
-
type: "text";
|
|
762
|
-
text: string;
|
|
763
|
-
} | {
|
|
764
|
-
type: "markdown";
|
|
765
|
-
markdown: string;
|
|
766
|
-
} | {
|
|
767
|
-
type: "group";
|
|
768
|
-
items: Message<string, User, Space<unknown>>[];
|
|
769
|
-
} | {
|
|
770
753
|
type: "contact";
|
|
771
754
|
user?: {
|
|
772
755
|
__platform: string;
|
|
@@ -809,9 +792,49 @@ declare const editSchema: z.ZodObject<{
|
|
|
809
792
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
810
793
|
} | undefined;
|
|
811
794
|
raw?: unknown;
|
|
795
|
+
} | {
|
|
796
|
+
type: "attachment";
|
|
797
|
+
id: string;
|
|
798
|
+
name: string;
|
|
799
|
+
mimeType: string;
|
|
800
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
801
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
802
|
+
size?: number | undefined;
|
|
803
|
+
} | {
|
|
804
|
+
type: "text";
|
|
805
|
+
text: string;
|
|
806
|
+
} | {
|
|
807
|
+
type: "markdown";
|
|
808
|
+
markdown: string;
|
|
812
809
|
} | {
|
|
813
810
|
type: "custom";
|
|
814
811
|
raw: unknown;
|
|
812
|
+
} | {
|
|
813
|
+
type: "group";
|
|
814
|
+
items: Message<string, User, Space<unknown>>[];
|
|
815
|
+
} | {
|
|
816
|
+
type: "richlink";
|
|
817
|
+
url: string;
|
|
818
|
+
} | {
|
|
819
|
+
type: "poll";
|
|
820
|
+
title: string;
|
|
821
|
+
options: {
|
|
822
|
+
title: string;
|
|
823
|
+
}[];
|
|
824
|
+
} | {
|
|
825
|
+
type: "poll_option";
|
|
826
|
+
option: {
|
|
827
|
+
title: string;
|
|
828
|
+
};
|
|
829
|
+
poll: {
|
|
830
|
+
type: "poll";
|
|
831
|
+
title: string;
|
|
832
|
+
options: {
|
|
833
|
+
title: string;
|
|
834
|
+
}[];
|
|
835
|
+
};
|
|
836
|
+
selected: boolean;
|
|
837
|
+
title: string;
|
|
815
838
|
} | {
|
|
816
839
|
type: "streamText";
|
|
817
840
|
stream: () => AsyncIterable<string>;
|
|
@@ -825,9 +848,6 @@ declare const editSchema: z.ZodObject<{
|
|
|
825
848
|
name?: string | undefined;
|
|
826
849
|
duration?: number | undefined;
|
|
827
850
|
size?: number | undefined;
|
|
828
|
-
} | {
|
|
829
|
-
type: "richlink";
|
|
830
|
-
url: string;
|
|
831
851
|
} | {
|
|
832
852
|
type: "app";
|
|
833
853
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -846,26 +866,6 @@ declare const editSchema: z.ZodObject<{
|
|
|
846
866
|
type: "reaction";
|
|
847
867
|
emoji: string;
|
|
848
868
|
target: Message<string, User, Space<unknown>>;
|
|
849
|
-
} | {
|
|
850
|
-
type: "poll";
|
|
851
|
-
title: string;
|
|
852
|
-
options: {
|
|
853
|
-
title: string;
|
|
854
|
-
}[];
|
|
855
|
-
} | {
|
|
856
|
-
type: "poll_option";
|
|
857
|
-
option: {
|
|
858
|
-
title: string;
|
|
859
|
-
};
|
|
860
|
-
poll: {
|
|
861
|
-
type: "poll";
|
|
862
|
-
title: string;
|
|
863
|
-
options: {
|
|
864
|
-
title: string;
|
|
865
|
-
}[];
|
|
866
|
-
};
|
|
867
|
-
selected: boolean;
|
|
868
|
-
title: string;
|
|
869
869
|
} | {
|
|
870
870
|
type: "effect";
|
|
871
871
|
content: {
|
|
@@ -1138,23 +1138,6 @@ declare function rename(displayName: string): ContentBuilder;
|
|
|
1138
1138
|
declare const replySchema: z.ZodObject<{
|
|
1139
1139
|
type: z.ZodLiteral<"reply">;
|
|
1140
1140
|
content: z.ZodCustom<{
|
|
1141
|
-
type: "attachment";
|
|
1142
|
-
id: string;
|
|
1143
|
-
name: string;
|
|
1144
|
-
mimeType: string;
|
|
1145
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1146
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
1147
|
-
size?: number | undefined;
|
|
1148
|
-
} | {
|
|
1149
|
-
type: "text";
|
|
1150
|
-
text: string;
|
|
1151
|
-
} | {
|
|
1152
|
-
type: "markdown";
|
|
1153
|
-
markdown: string;
|
|
1154
|
-
} | {
|
|
1155
|
-
type: "group";
|
|
1156
|
-
items: Message<string, User, Space<unknown>>[];
|
|
1157
|
-
} | {
|
|
1158
1141
|
type: "contact";
|
|
1159
1142
|
user?: {
|
|
1160
1143
|
__platform: string;
|
|
@@ -1197,9 +1180,49 @@ declare const replySchema: z.ZodObject<{
|
|
|
1197
1180
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1198
1181
|
} | undefined;
|
|
1199
1182
|
raw?: unknown;
|
|
1183
|
+
} | {
|
|
1184
|
+
type: "attachment";
|
|
1185
|
+
id: string;
|
|
1186
|
+
name: string;
|
|
1187
|
+
mimeType: string;
|
|
1188
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1189
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
1190
|
+
size?: number | undefined;
|
|
1191
|
+
} | {
|
|
1192
|
+
type: "text";
|
|
1193
|
+
text: string;
|
|
1194
|
+
} | {
|
|
1195
|
+
type: "markdown";
|
|
1196
|
+
markdown: string;
|
|
1200
1197
|
} | {
|
|
1201
1198
|
type: "custom";
|
|
1202
1199
|
raw: unknown;
|
|
1200
|
+
} | {
|
|
1201
|
+
type: "group";
|
|
1202
|
+
items: Message<string, User, Space<unknown>>[];
|
|
1203
|
+
} | {
|
|
1204
|
+
type: "richlink";
|
|
1205
|
+
url: string;
|
|
1206
|
+
} | {
|
|
1207
|
+
type: "poll";
|
|
1208
|
+
title: string;
|
|
1209
|
+
options: {
|
|
1210
|
+
title: string;
|
|
1211
|
+
}[];
|
|
1212
|
+
} | {
|
|
1213
|
+
type: "poll_option";
|
|
1214
|
+
option: {
|
|
1215
|
+
title: string;
|
|
1216
|
+
};
|
|
1217
|
+
poll: {
|
|
1218
|
+
type: "poll";
|
|
1219
|
+
title: string;
|
|
1220
|
+
options: {
|
|
1221
|
+
title: string;
|
|
1222
|
+
}[];
|
|
1223
|
+
};
|
|
1224
|
+
selected: boolean;
|
|
1225
|
+
title: string;
|
|
1203
1226
|
} | {
|
|
1204
1227
|
type: "streamText";
|
|
1205
1228
|
stream: () => AsyncIterable<string>;
|
|
@@ -1213,9 +1236,6 @@ declare const replySchema: z.ZodObject<{
|
|
|
1213
1236
|
name?: string | undefined;
|
|
1214
1237
|
duration?: number | undefined;
|
|
1215
1238
|
size?: number | undefined;
|
|
1216
|
-
} | {
|
|
1217
|
-
type: "richlink";
|
|
1218
|
-
url: string;
|
|
1219
1239
|
} | {
|
|
1220
1240
|
type: "app";
|
|
1221
1241
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -1234,26 +1254,6 @@ declare const replySchema: z.ZodObject<{
|
|
|
1234
1254
|
type: "reaction";
|
|
1235
1255
|
emoji: string;
|
|
1236
1256
|
target: Message<string, User, Space<unknown>>;
|
|
1237
|
-
} | {
|
|
1238
|
-
type: "poll";
|
|
1239
|
-
title: string;
|
|
1240
|
-
options: {
|
|
1241
|
-
title: string;
|
|
1242
|
-
}[];
|
|
1243
|
-
} | {
|
|
1244
|
-
type: "poll_option";
|
|
1245
|
-
option: {
|
|
1246
|
-
title: string;
|
|
1247
|
-
};
|
|
1248
|
-
poll: {
|
|
1249
|
-
type: "poll";
|
|
1250
|
-
title: string;
|
|
1251
|
-
options: {
|
|
1252
|
-
title: string;
|
|
1253
|
-
}[];
|
|
1254
|
-
};
|
|
1255
|
-
selected: boolean;
|
|
1256
|
-
title: string;
|
|
1257
1257
|
} | {
|
|
1258
1258
|
type: "effect";
|
|
1259
1259
|
content: {
|
|
@@ -1296,23 +1296,6 @@ declare const replySchema: z.ZodObject<{
|
|
|
1296
1296
|
} | {
|
|
1297
1297
|
type: "leaveSpace";
|
|
1298
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
|
-
type: "text";
|
|
1308
|
-
text: string;
|
|
1309
|
-
} | {
|
|
1310
|
-
type: "markdown";
|
|
1311
|
-
markdown: string;
|
|
1312
|
-
} | {
|
|
1313
|
-
type: "group";
|
|
1314
|
-
items: Message<string, User, Space<unknown>>[];
|
|
1315
|
-
} | {
|
|
1316
1299
|
type: "contact";
|
|
1317
1300
|
user?: {
|
|
1318
1301
|
__platform: string;
|
|
@@ -1355,9 +1338,49 @@ declare const replySchema: z.ZodObject<{
|
|
|
1355
1338
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1356
1339
|
} | undefined;
|
|
1357
1340
|
raw?: unknown;
|
|
1341
|
+
} | {
|
|
1342
|
+
type: "attachment";
|
|
1343
|
+
id: string;
|
|
1344
|
+
name: string;
|
|
1345
|
+
mimeType: string;
|
|
1346
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1347
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
1348
|
+
size?: number | undefined;
|
|
1349
|
+
} | {
|
|
1350
|
+
type: "text";
|
|
1351
|
+
text: string;
|
|
1352
|
+
} | {
|
|
1353
|
+
type: "markdown";
|
|
1354
|
+
markdown: string;
|
|
1358
1355
|
} | {
|
|
1359
1356
|
type: "custom";
|
|
1360
1357
|
raw: unknown;
|
|
1358
|
+
} | {
|
|
1359
|
+
type: "group";
|
|
1360
|
+
items: Message<string, User, Space<unknown>>[];
|
|
1361
|
+
} | {
|
|
1362
|
+
type: "richlink";
|
|
1363
|
+
url: string;
|
|
1364
|
+
} | {
|
|
1365
|
+
type: "poll";
|
|
1366
|
+
title: string;
|
|
1367
|
+
options: {
|
|
1368
|
+
title: string;
|
|
1369
|
+
}[];
|
|
1370
|
+
} | {
|
|
1371
|
+
type: "poll_option";
|
|
1372
|
+
option: {
|
|
1373
|
+
title: string;
|
|
1374
|
+
};
|
|
1375
|
+
poll: {
|
|
1376
|
+
type: "poll";
|
|
1377
|
+
title: string;
|
|
1378
|
+
options: {
|
|
1379
|
+
title: string;
|
|
1380
|
+
}[];
|
|
1381
|
+
};
|
|
1382
|
+
selected: boolean;
|
|
1383
|
+
title: string;
|
|
1361
1384
|
} | {
|
|
1362
1385
|
type: "streamText";
|
|
1363
1386
|
stream: () => AsyncIterable<string>;
|
|
@@ -1371,9 +1394,6 @@ declare const replySchema: z.ZodObject<{
|
|
|
1371
1394
|
name?: string | undefined;
|
|
1372
1395
|
duration?: number | undefined;
|
|
1373
1396
|
size?: number | undefined;
|
|
1374
|
-
} | {
|
|
1375
|
-
type: "richlink";
|
|
1376
|
-
url: string;
|
|
1377
1397
|
} | {
|
|
1378
1398
|
type: "app";
|
|
1379
1399
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -1392,26 +1412,6 @@ declare const replySchema: z.ZodObject<{
|
|
|
1392
1412
|
type: "reaction";
|
|
1393
1413
|
emoji: string;
|
|
1394
1414
|
target: Message<string, User, Space<unknown>>;
|
|
1395
|
-
} | {
|
|
1396
|
-
type: "poll";
|
|
1397
|
-
title: string;
|
|
1398
|
-
options: {
|
|
1399
|
-
title: string;
|
|
1400
|
-
}[];
|
|
1401
|
-
} | {
|
|
1402
|
-
type: "poll_option";
|
|
1403
|
-
option: {
|
|
1404
|
-
title: string;
|
|
1405
|
-
};
|
|
1406
|
-
poll: {
|
|
1407
|
-
type: "poll";
|
|
1408
|
-
title: string;
|
|
1409
|
-
options: {
|
|
1410
|
-
title: string;
|
|
1411
|
-
}[];
|
|
1412
|
-
};
|
|
1413
|
-
selected: boolean;
|
|
1414
|
-
title: string;
|
|
1415
1415
|
} | {
|
|
1416
1416
|
type: "effect";
|
|
1417
1417
|
content: {
|
|
@@ -7283,23 +7283,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7283
7283
|
}, z.core.$strip>, z.ZodObject<{
|
|
7284
7284
|
type: z.ZodLiteral<"reply">;
|
|
7285
7285
|
content: z.ZodCustom<{
|
|
7286
|
-
type: "attachment";
|
|
7287
|
-
id: string;
|
|
7288
|
-
name: string;
|
|
7289
|
-
mimeType: string;
|
|
7290
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7291
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7292
|
-
size?: number | undefined;
|
|
7293
|
-
} | {
|
|
7294
|
-
type: "text";
|
|
7295
|
-
text: string;
|
|
7296
|
-
} | {
|
|
7297
|
-
type: "markdown";
|
|
7298
|
-
markdown: string;
|
|
7299
|
-
} | {
|
|
7300
|
-
type: "group";
|
|
7301
|
-
items: Message<string, User, Space<unknown>>[];
|
|
7302
|
-
} | {
|
|
7303
7286
|
type: "contact";
|
|
7304
7287
|
user?: {
|
|
7305
7288
|
__platform: string;
|
|
@@ -7342,9 +7325,49 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7342
7325
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7343
7326
|
} | undefined;
|
|
7344
7327
|
raw?: unknown;
|
|
7328
|
+
} | {
|
|
7329
|
+
type: "attachment";
|
|
7330
|
+
id: string;
|
|
7331
|
+
name: string;
|
|
7332
|
+
mimeType: string;
|
|
7333
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7334
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7335
|
+
size?: number | undefined;
|
|
7336
|
+
} | {
|
|
7337
|
+
type: "text";
|
|
7338
|
+
text: string;
|
|
7339
|
+
} | {
|
|
7340
|
+
type: "markdown";
|
|
7341
|
+
markdown: string;
|
|
7345
7342
|
} | {
|
|
7346
7343
|
type: "custom";
|
|
7347
7344
|
raw: unknown;
|
|
7345
|
+
} | {
|
|
7346
|
+
type: "group";
|
|
7347
|
+
items: Message<string, User, Space<unknown>>[];
|
|
7348
|
+
} | {
|
|
7349
|
+
type: "richlink";
|
|
7350
|
+
url: string;
|
|
7351
|
+
} | {
|
|
7352
|
+
type: "poll";
|
|
7353
|
+
title: string;
|
|
7354
|
+
options: {
|
|
7355
|
+
title: string;
|
|
7356
|
+
}[];
|
|
7357
|
+
} | {
|
|
7358
|
+
type: "poll_option";
|
|
7359
|
+
option: {
|
|
7360
|
+
title: string;
|
|
7361
|
+
};
|
|
7362
|
+
poll: {
|
|
7363
|
+
type: "poll";
|
|
7364
|
+
title: string;
|
|
7365
|
+
options: {
|
|
7366
|
+
title: string;
|
|
7367
|
+
}[];
|
|
7368
|
+
};
|
|
7369
|
+
selected: boolean;
|
|
7370
|
+
title: string;
|
|
7348
7371
|
} | {
|
|
7349
7372
|
type: "streamText";
|
|
7350
7373
|
stream: () => AsyncIterable<string>;
|
|
@@ -7358,9 +7381,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7358
7381
|
name?: string | undefined;
|
|
7359
7382
|
duration?: number | undefined;
|
|
7360
7383
|
size?: number | undefined;
|
|
7361
|
-
} | {
|
|
7362
|
-
type: "richlink";
|
|
7363
|
-
url: string;
|
|
7364
7384
|
} | {
|
|
7365
7385
|
type: "app";
|
|
7366
7386
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -7379,26 +7399,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7379
7399
|
type: "reaction";
|
|
7380
7400
|
emoji: string;
|
|
7381
7401
|
target: Message<string, User, Space<unknown>>;
|
|
7382
|
-
} | {
|
|
7383
|
-
type: "poll";
|
|
7384
|
-
title: string;
|
|
7385
|
-
options: {
|
|
7386
|
-
title: string;
|
|
7387
|
-
}[];
|
|
7388
|
-
} | {
|
|
7389
|
-
type: "poll_option";
|
|
7390
|
-
option: {
|
|
7391
|
-
title: string;
|
|
7392
|
-
};
|
|
7393
|
-
poll: {
|
|
7394
|
-
type: "poll";
|
|
7395
|
-
title: string;
|
|
7396
|
-
options: {
|
|
7397
|
-
title: string;
|
|
7398
|
-
}[];
|
|
7399
|
-
};
|
|
7400
|
-
selected: boolean;
|
|
7401
|
-
title: string;
|
|
7402
7402
|
} | {
|
|
7403
7403
|
type: "effect";
|
|
7404
7404
|
content: {
|
|
@@ -7441,23 +7441,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7441
7441
|
} | {
|
|
7442
7442
|
type: "leaveSpace";
|
|
7443
7443
|
}, {
|
|
7444
|
-
type: "attachment";
|
|
7445
|
-
id: string;
|
|
7446
|
-
name: string;
|
|
7447
|
-
mimeType: string;
|
|
7448
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7449
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7450
|
-
size?: number | undefined;
|
|
7451
|
-
} | {
|
|
7452
|
-
type: "text";
|
|
7453
|
-
text: string;
|
|
7454
|
-
} | {
|
|
7455
|
-
type: "markdown";
|
|
7456
|
-
markdown: string;
|
|
7457
|
-
} | {
|
|
7458
|
-
type: "group";
|
|
7459
|
-
items: Message<string, User, Space<unknown>>[];
|
|
7460
|
-
} | {
|
|
7461
7444
|
type: "contact";
|
|
7462
7445
|
user?: {
|
|
7463
7446
|
__platform: string;
|
|
@@ -7500,9 +7483,49 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7500
7483
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7501
7484
|
} | undefined;
|
|
7502
7485
|
raw?: unknown;
|
|
7486
|
+
} | {
|
|
7487
|
+
type: "attachment";
|
|
7488
|
+
id: string;
|
|
7489
|
+
name: string;
|
|
7490
|
+
mimeType: string;
|
|
7491
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7492
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7493
|
+
size?: number | undefined;
|
|
7494
|
+
} | {
|
|
7495
|
+
type: "text";
|
|
7496
|
+
text: string;
|
|
7497
|
+
} | {
|
|
7498
|
+
type: "markdown";
|
|
7499
|
+
markdown: string;
|
|
7503
7500
|
} | {
|
|
7504
7501
|
type: "custom";
|
|
7505
7502
|
raw: unknown;
|
|
7503
|
+
} | {
|
|
7504
|
+
type: "group";
|
|
7505
|
+
items: Message<string, User, Space<unknown>>[];
|
|
7506
|
+
} | {
|
|
7507
|
+
type: "richlink";
|
|
7508
|
+
url: string;
|
|
7509
|
+
} | {
|
|
7510
|
+
type: "poll";
|
|
7511
|
+
title: string;
|
|
7512
|
+
options: {
|
|
7513
|
+
title: string;
|
|
7514
|
+
}[];
|
|
7515
|
+
} | {
|
|
7516
|
+
type: "poll_option";
|
|
7517
|
+
option: {
|
|
7518
|
+
title: string;
|
|
7519
|
+
};
|
|
7520
|
+
poll: {
|
|
7521
|
+
type: "poll";
|
|
7522
|
+
title: string;
|
|
7523
|
+
options: {
|
|
7524
|
+
title: string;
|
|
7525
|
+
}[];
|
|
7526
|
+
};
|
|
7527
|
+
selected: boolean;
|
|
7528
|
+
title: string;
|
|
7506
7529
|
} | {
|
|
7507
7530
|
type: "streamText";
|
|
7508
7531
|
stream: () => AsyncIterable<string>;
|
|
@@ -7516,9 +7539,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7516
7539
|
name?: string | undefined;
|
|
7517
7540
|
duration?: number | undefined;
|
|
7518
7541
|
size?: number | undefined;
|
|
7519
|
-
} | {
|
|
7520
|
-
type: "richlink";
|
|
7521
|
-
url: string;
|
|
7522
7542
|
} | {
|
|
7523
7543
|
type: "app";
|
|
7524
7544
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -7537,26 +7557,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7537
7557
|
type: "reaction";
|
|
7538
7558
|
emoji: string;
|
|
7539
7559
|
target: Message<string, User, Space<unknown>>;
|
|
7540
|
-
} | {
|
|
7541
|
-
type: "poll";
|
|
7542
|
-
title: string;
|
|
7543
|
-
options: {
|
|
7544
|
-
title: string;
|
|
7545
|
-
}[];
|
|
7546
|
-
} | {
|
|
7547
|
-
type: "poll_option";
|
|
7548
|
-
option: {
|
|
7549
|
-
title: string;
|
|
7550
|
-
};
|
|
7551
|
-
poll: {
|
|
7552
|
-
type: "poll";
|
|
7553
|
-
title: string;
|
|
7554
|
-
options: {
|
|
7555
|
-
title: string;
|
|
7556
|
-
}[];
|
|
7557
|
-
};
|
|
7558
|
-
selected: boolean;
|
|
7559
|
-
title: string;
|
|
7560
7560
|
} | {
|
|
7561
7561
|
type: "effect";
|
|
7562
7562
|
content: {
|
|
@@ -7603,23 +7603,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7603
7603
|
}, z.core.$strip>, z.ZodObject<{
|
|
7604
7604
|
type: z.ZodLiteral<"edit">;
|
|
7605
7605
|
content: z.ZodCustom<{
|
|
7606
|
-
type: "attachment";
|
|
7607
|
-
id: string;
|
|
7608
|
-
name: string;
|
|
7609
|
-
mimeType: string;
|
|
7610
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7611
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7612
|
-
size?: number | undefined;
|
|
7613
|
-
} | {
|
|
7614
|
-
type: "text";
|
|
7615
|
-
text: string;
|
|
7616
|
-
} | {
|
|
7617
|
-
type: "markdown";
|
|
7618
|
-
markdown: string;
|
|
7619
|
-
} | {
|
|
7620
|
-
type: "group";
|
|
7621
|
-
items: Message<string, User, Space<unknown>>[];
|
|
7622
|
-
} | {
|
|
7623
7606
|
type: "contact";
|
|
7624
7607
|
user?: {
|
|
7625
7608
|
__platform: string;
|
|
@@ -7662,9 +7645,49 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7662
7645
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7663
7646
|
} | undefined;
|
|
7664
7647
|
raw?: unknown;
|
|
7648
|
+
} | {
|
|
7649
|
+
type: "attachment";
|
|
7650
|
+
id: string;
|
|
7651
|
+
name: string;
|
|
7652
|
+
mimeType: string;
|
|
7653
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7654
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7655
|
+
size?: number | undefined;
|
|
7656
|
+
} | {
|
|
7657
|
+
type: "text";
|
|
7658
|
+
text: string;
|
|
7659
|
+
} | {
|
|
7660
|
+
type: "markdown";
|
|
7661
|
+
markdown: string;
|
|
7665
7662
|
} | {
|
|
7666
7663
|
type: "custom";
|
|
7667
7664
|
raw: unknown;
|
|
7665
|
+
} | {
|
|
7666
|
+
type: "group";
|
|
7667
|
+
items: Message<string, User, Space<unknown>>[];
|
|
7668
|
+
} | {
|
|
7669
|
+
type: "richlink";
|
|
7670
|
+
url: string;
|
|
7671
|
+
} | {
|
|
7672
|
+
type: "poll";
|
|
7673
|
+
title: string;
|
|
7674
|
+
options: {
|
|
7675
|
+
title: string;
|
|
7676
|
+
}[];
|
|
7677
|
+
} | {
|
|
7678
|
+
type: "poll_option";
|
|
7679
|
+
option: {
|
|
7680
|
+
title: string;
|
|
7681
|
+
};
|
|
7682
|
+
poll: {
|
|
7683
|
+
type: "poll";
|
|
7684
|
+
title: string;
|
|
7685
|
+
options: {
|
|
7686
|
+
title: string;
|
|
7687
|
+
}[];
|
|
7688
|
+
};
|
|
7689
|
+
selected: boolean;
|
|
7690
|
+
title: string;
|
|
7668
7691
|
} | {
|
|
7669
7692
|
type: "streamText";
|
|
7670
7693
|
stream: () => AsyncIterable<string>;
|
|
@@ -7678,9 +7701,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7678
7701
|
name?: string | undefined;
|
|
7679
7702
|
duration?: number | undefined;
|
|
7680
7703
|
size?: number | undefined;
|
|
7681
|
-
} | {
|
|
7682
|
-
type: "richlink";
|
|
7683
|
-
url: string;
|
|
7684
7704
|
} | {
|
|
7685
7705
|
type: "app";
|
|
7686
7706
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -7699,26 +7719,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7699
7719
|
type: "reaction";
|
|
7700
7720
|
emoji: string;
|
|
7701
7721
|
target: Message<string, User, Space<unknown>>;
|
|
7702
|
-
} | {
|
|
7703
|
-
type: "poll";
|
|
7704
|
-
title: string;
|
|
7705
|
-
options: {
|
|
7706
|
-
title: string;
|
|
7707
|
-
}[];
|
|
7708
|
-
} | {
|
|
7709
|
-
type: "poll_option";
|
|
7710
|
-
option: {
|
|
7711
|
-
title: string;
|
|
7712
|
-
};
|
|
7713
|
-
poll: {
|
|
7714
|
-
type: "poll";
|
|
7715
|
-
title: string;
|
|
7716
|
-
options: {
|
|
7717
|
-
title: string;
|
|
7718
|
-
}[];
|
|
7719
|
-
};
|
|
7720
|
-
selected: boolean;
|
|
7721
|
-
title: string;
|
|
7722
7722
|
} | {
|
|
7723
7723
|
type: "effect";
|
|
7724
7724
|
content: {
|
|
@@ -7761,23 +7761,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7761
7761
|
} | {
|
|
7762
7762
|
type: "leaveSpace";
|
|
7763
7763
|
}, {
|
|
7764
|
-
type: "attachment";
|
|
7765
|
-
id: string;
|
|
7766
|
-
name: string;
|
|
7767
|
-
mimeType: string;
|
|
7768
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7769
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7770
|
-
size?: number | undefined;
|
|
7771
|
-
} | {
|
|
7772
|
-
type: "text";
|
|
7773
|
-
text: string;
|
|
7774
|
-
} | {
|
|
7775
|
-
type: "markdown";
|
|
7776
|
-
markdown: string;
|
|
7777
|
-
} | {
|
|
7778
|
-
type: "group";
|
|
7779
|
-
items: Message<string, User, Space<unknown>>[];
|
|
7780
|
-
} | {
|
|
7781
7764
|
type: "contact";
|
|
7782
7765
|
user?: {
|
|
7783
7766
|
__platform: string;
|
|
@@ -7820,9 +7803,49 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7820
7803
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7821
7804
|
} | undefined;
|
|
7822
7805
|
raw?: unknown;
|
|
7806
|
+
} | {
|
|
7807
|
+
type: "attachment";
|
|
7808
|
+
id: string;
|
|
7809
|
+
name: string;
|
|
7810
|
+
mimeType: string;
|
|
7811
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7812
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7813
|
+
size?: number | undefined;
|
|
7814
|
+
} | {
|
|
7815
|
+
type: "text";
|
|
7816
|
+
text: string;
|
|
7817
|
+
} | {
|
|
7818
|
+
type: "markdown";
|
|
7819
|
+
markdown: string;
|
|
7823
7820
|
} | {
|
|
7824
7821
|
type: "custom";
|
|
7825
7822
|
raw: unknown;
|
|
7823
|
+
} | {
|
|
7824
|
+
type: "group";
|
|
7825
|
+
items: Message<string, User, Space<unknown>>[];
|
|
7826
|
+
} | {
|
|
7827
|
+
type: "richlink";
|
|
7828
|
+
url: string;
|
|
7829
|
+
} | {
|
|
7830
|
+
type: "poll";
|
|
7831
|
+
title: string;
|
|
7832
|
+
options: {
|
|
7833
|
+
title: string;
|
|
7834
|
+
}[];
|
|
7835
|
+
} | {
|
|
7836
|
+
type: "poll_option";
|
|
7837
|
+
option: {
|
|
7838
|
+
title: string;
|
|
7839
|
+
};
|
|
7840
|
+
poll: {
|
|
7841
|
+
type: "poll";
|
|
7842
|
+
title: string;
|
|
7843
|
+
options: {
|
|
7844
|
+
title: string;
|
|
7845
|
+
}[];
|
|
7846
|
+
};
|
|
7847
|
+
selected: boolean;
|
|
7848
|
+
title: string;
|
|
7826
7849
|
} | {
|
|
7827
7850
|
type: "streamText";
|
|
7828
7851
|
stream: () => AsyncIterable<string>;
|
|
@@ -7836,9 +7859,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7836
7859
|
name?: string | undefined;
|
|
7837
7860
|
duration?: number | undefined;
|
|
7838
7861
|
size?: number | undefined;
|
|
7839
|
-
} | {
|
|
7840
|
-
type: "richlink";
|
|
7841
|
-
url: string;
|
|
7842
7862
|
} | {
|
|
7843
7863
|
type: "app";
|
|
7844
7864
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -7857,26 +7877,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7857
7877
|
type: "reaction";
|
|
7858
7878
|
emoji: string;
|
|
7859
7879
|
target: Message<string, User, Space<unknown>>;
|
|
7860
|
-
} | {
|
|
7861
|
-
type: "poll";
|
|
7862
|
-
title: string;
|
|
7863
|
-
options: {
|
|
7864
|
-
title: string;
|
|
7865
|
-
}[];
|
|
7866
|
-
} | {
|
|
7867
|
-
type: "poll_option";
|
|
7868
|
-
option: {
|
|
7869
|
-
title: string;
|
|
7870
|
-
};
|
|
7871
|
-
poll: {
|
|
7872
|
-
type: "poll";
|
|
7873
|
-
title: string;
|
|
7874
|
-
options: {
|
|
7875
|
-
title: string;
|
|
7876
|
-
}[];
|
|
7877
|
-
};
|
|
7878
|
-
selected: boolean;
|
|
7879
|
-
title: string;
|
|
7880
7880
|
} | {
|
|
7881
7881
|
type: "effect";
|
|
7882
7882
|
content: {
|
package/dist/authoring.d.ts
CHANGED
|
@@ -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-
|
|
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-D8Egdh4m.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-
|
|
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-D8Egdh4m.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.
|
|
3014
|
+
const SPECTRUM_SDK_VERSION = "12.4.0";
|
|
3015
3015
|
//#endregion
|
|
3016
3016
|
//#region src/utils/provider-packages.ts
|
|
3017
3017
|
const OFFICIAL_PROVIDER_PACKAGES = {
|