@spectrum-ts/core 8.1.0 → 8.1.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,6 +447,12 @@ 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: "text";
|
|
451
|
+
text: string;
|
|
452
|
+
} | {
|
|
453
|
+
type: "markdown";
|
|
454
|
+
markdown: string;
|
|
455
|
+
} | {
|
|
450
456
|
type: "attachment";
|
|
451
457
|
id: string;
|
|
452
458
|
name: string;
|
|
@@ -500,15 +506,6 @@ declare const editSchema: z.ZodObject<{
|
|
|
500
506
|
} | {
|
|
501
507
|
type: "custom";
|
|
502
508
|
raw: unknown;
|
|
503
|
-
} | {
|
|
504
|
-
type: "text";
|
|
505
|
-
text: string;
|
|
506
|
-
} | {
|
|
507
|
-
type: "markdown";
|
|
508
|
-
markdown: string;
|
|
509
|
-
} | {
|
|
510
|
-
type: "group";
|
|
511
|
-
items: Message<string, User, Space<unknown>>[];
|
|
512
509
|
} | {
|
|
513
510
|
type: "poll";
|
|
514
511
|
title: string;
|
|
@@ -529,13 +526,13 @@ declare const editSchema: z.ZodObject<{
|
|
|
529
526
|
};
|
|
530
527
|
selected: boolean;
|
|
531
528
|
title: string;
|
|
529
|
+
} | {
|
|
530
|
+
type: "group";
|
|
531
|
+
items: Message<string, User, Space<unknown>>[];
|
|
532
532
|
} | {
|
|
533
533
|
type: "reaction";
|
|
534
534
|
emoji: string;
|
|
535
535
|
target: Message<string, User, Space<unknown>>;
|
|
536
|
-
} | {
|
|
537
|
-
type: "richlink";
|
|
538
|
-
url: string;
|
|
539
536
|
} | {
|
|
540
537
|
type: "voice";
|
|
541
538
|
mimeType: string;
|
|
@@ -544,6 +541,9 @@ declare const editSchema: z.ZodObject<{
|
|
|
544
541
|
name?: string | undefined;
|
|
545
542
|
duration?: number | undefined;
|
|
546
543
|
size?: number | undefined;
|
|
544
|
+
} | {
|
|
545
|
+
type: "richlink";
|
|
546
|
+
url: string;
|
|
547
547
|
} | {
|
|
548
548
|
type: "streamText";
|
|
549
549
|
stream: () => AsyncIterable<string>;
|
|
@@ -564,6 +564,12 @@ declare const editSchema: z.ZodObject<{
|
|
|
564
564
|
} | {
|
|
565
565
|
type: "effect";
|
|
566
566
|
content: {
|
|
567
|
+
type: "text";
|
|
568
|
+
text: string;
|
|
569
|
+
} | {
|
|
570
|
+
type: "markdown";
|
|
571
|
+
markdown: string;
|
|
572
|
+
} | {
|
|
567
573
|
type: "attachment";
|
|
568
574
|
id: string;
|
|
569
575
|
name: string;
|
|
@@ -571,12 +577,6 @@ declare const editSchema: z.ZodObject<{
|
|
|
571
577
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
572
578
|
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
573
579
|
size?: number | undefined;
|
|
574
|
-
} | {
|
|
575
|
-
type: "text";
|
|
576
|
-
text: string;
|
|
577
|
-
} | {
|
|
578
|
-
type: "markdown";
|
|
579
|
-
markdown: string;
|
|
580
580
|
};
|
|
581
581
|
effect: string;
|
|
582
582
|
} | {
|
|
@@ -595,6 +595,12 @@ declare const editSchema: z.ZodObject<{
|
|
|
595
595
|
kind: "clear";
|
|
596
596
|
};
|
|
597
597
|
}, {
|
|
598
|
+
type: "text";
|
|
599
|
+
text: string;
|
|
600
|
+
} | {
|
|
601
|
+
type: "markdown";
|
|
602
|
+
markdown: string;
|
|
603
|
+
} | {
|
|
598
604
|
type: "attachment";
|
|
599
605
|
id: string;
|
|
600
606
|
name: string;
|
|
@@ -648,15 +654,6 @@ declare const editSchema: z.ZodObject<{
|
|
|
648
654
|
} | {
|
|
649
655
|
type: "custom";
|
|
650
656
|
raw: unknown;
|
|
651
|
-
} | {
|
|
652
|
-
type: "text";
|
|
653
|
-
text: string;
|
|
654
|
-
} | {
|
|
655
|
-
type: "markdown";
|
|
656
|
-
markdown: string;
|
|
657
|
-
} | {
|
|
658
|
-
type: "group";
|
|
659
|
-
items: Message<string, User, Space<unknown>>[];
|
|
660
657
|
} | {
|
|
661
658
|
type: "poll";
|
|
662
659
|
title: string;
|
|
@@ -677,13 +674,13 @@ declare const editSchema: z.ZodObject<{
|
|
|
677
674
|
};
|
|
678
675
|
selected: boolean;
|
|
679
676
|
title: string;
|
|
677
|
+
} | {
|
|
678
|
+
type: "group";
|
|
679
|
+
items: Message<string, User, Space<unknown>>[];
|
|
680
680
|
} | {
|
|
681
681
|
type: "reaction";
|
|
682
682
|
emoji: string;
|
|
683
683
|
target: Message<string, User, Space<unknown>>;
|
|
684
|
-
} | {
|
|
685
|
-
type: "richlink";
|
|
686
|
-
url: string;
|
|
687
684
|
} | {
|
|
688
685
|
type: "voice";
|
|
689
686
|
mimeType: string;
|
|
@@ -692,6 +689,9 @@ declare const editSchema: z.ZodObject<{
|
|
|
692
689
|
name?: string | undefined;
|
|
693
690
|
duration?: number | undefined;
|
|
694
691
|
size?: number | undefined;
|
|
692
|
+
} | {
|
|
693
|
+
type: "richlink";
|
|
694
|
+
url: string;
|
|
695
695
|
} | {
|
|
696
696
|
type: "streamText";
|
|
697
697
|
stream: () => AsyncIterable<string>;
|
|
@@ -712,6 +712,12 @@ declare const editSchema: z.ZodObject<{
|
|
|
712
712
|
} | {
|
|
713
713
|
type: "effect";
|
|
714
714
|
content: {
|
|
715
|
+
type: "text";
|
|
716
|
+
text: string;
|
|
717
|
+
} | {
|
|
718
|
+
type: "markdown";
|
|
719
|
+
markdown: string;
|
|
720
|
+
} | {
|
|
715
721
|
type: "attachment";
|
|
716
722
|
id: string;
|
|
717
723
|
name: string;
|
|
@@ -719,12 +725,6 @@ declare const editSchema: z.ZodObject<{
|
|
|
719
725
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
720
726
|
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
721
727
|
size?: number | undefined;
|
|
722
|
-
} | {
|
|
723
|
-
type: "text";
|
|
724
|
-
text: string;
|
|
725
|
-
} | {
|
|
726
|
-
type: "markdown";
|
|
727
|
-
markdown: string;
|
|
728
728
|
};
|
|
729
729
|
effect: string;
|
|
730
730
|
} | {
|
|
@@ -968,6 +968,12 @@ 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: "text";
|
|
972
|
+
text: string;
|
|
973
|
+
} | {
|
|
974
|
+
type: "markdown";
|
|
975
|
+
markdown: string;
|
|
976
|
+
} | {
|
|
971
977
|
type: "attachment";
|
|
972
978
|
id: string;
|
|
973
979
|
name: string;
|
|
@@ -1021,15 +1027,6 @@ declare const replySchema: z.ZodObject<{
|
|
|
1021
1027
|
} | {
|
|
1022
1028
|
type: "custom";
|
|
1023
1029
|
raw: unknown;
|
|
1024
|
-
} | {
|
|
1025
|
-
type: "text";
|
|
1026
|
-
text: string;
|
|
1027
|
-
} | {
|
|
1028
|
-
type: "markdown";
|
|
1029
|
-
markdown: string;
|
|
1030
|
-
} | {
|
|
1031
|
-
type: "group";
|
|
1032
|
-
items: Message<string, User, Space<unknown>>[];
|
|
1033
1030
|
} | {
|
|
1034
1031
|
type: "poll";
|
|
1035
1032
|
title: string;
|
|
@@ -1050,13 +1047,13 @@ declare const replySchema: z.ZodObject<{
|
|
|
1050
1047
|
};
|
|
1051
1048
|
selected: boolean;
|
|
1052
1049
|
title: string;
|
|
1050
|
+
} | {
|
|
1051
|
+
type: "group";
|
|
1052
|
+
items: Message<string, User, Space<unknown>>[];
|
|
1053
1053
|
} | {
|
|
1054
1054
|
type: "reaction";
|
|
1055
1055
|
emoji: string;
|
|
1056
1056
|
target: Message<string, User, Space<unknown>>;
|
|
1057
|
-
} | {
|
|
1058
|
-
type: "richlink";
|
|
1059
|
-
url: string;
|
|
1060
1057
|
} | {
|
|
1061
1058
|
type: "voice";
|
|
1062
1059
|
mimeType: string;
|
|
@@ -1065,6 +1062,9 @@ declare const replySchema: z.ZodObject<{
|
|
|
1065
1062
|
name?: string | undefined;
|
|
1066
1063
|
duration?: number | undefined;
|
|
1067
1064
|
size?: number | undefined;
|
|
1065
|
+
} | {
|
|
1066
|
+
type: "richlink";
|
|
1067
|
+
url: string;
|
|
1068
1068
|
} | {
|
|
1069
1069
|
type: "streamText";
|
|
1070
1070
|
stream: () => AsyncIterable<string>;
|
|
@@ -1085,6 +1085,12 @@ declare const replySchema: z.ZodObject<{
|
|
|
1085
1085
|
} | {
|
|
1086
1086
|
type: "effect";
|
|
1087
1087
|
content: {
|
|
1088
|
+
type: "text";
|
|
1089
|
+
text: string;
|
|
1090
|
+
} | {
|
|
1091
|
+
type: "markdown";
|
|
1092
|
+
markdown: string;
|
|
1093
|
+
} | {
|
|
1088
1094
|
type: "attachment";
|
|
1089
1095
|
id: string;
|
|
1090
1096
|
name: string;
|
|
@@ -1092,12 +1098,6 @@ declare const replySchema: z.ZodObject<{
|
|
|
1092
1098
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1093
1099
|
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
1094
1100
|
size?: number | undefined;
|
|
1095
|
-
} | {
|
|
1096
|
-
type: "text";
|
|
1097
|
-
text: string;
|
|
1098
|
-
} | {
|
|
1099
|
-
type: "markdown";
|
|
1100
|
-
markdown: string;
|
|
1101
1101
|
};
|
|
1102
1102
|
effect: string;
|
|
1103
1103
|
} | {
|
|
@@ -1116,6 +1116,12 @@ declare const replySchema: z.ZodObject<{
|
|
|
1116
1116
|
kind: "clear";
|
|
1117
1117
|
};
|
|
1118
1118
|
}, {
|
|
1119
|
+
type: "text";
|
|
1120
|
+
text: string;
|
|
1121
|
+
} | {
|
|
1122
|
+
type: "markdown";
|
|
1123
|
+
markdown: string;
|
|
1124
|
+
} | {
|
|
1119
1125
|
type: "attachment";
|
|
1120
1126
|
id: string;
|
|
1121
1127
|
name: string;
|
|
@@ -1169,15 +1175,6 @@ declare const replySchema: z.ZodObject<{
|
|
|
1169
1175
|
} | {
|
|
1170
1176
|
type: "custom";
|
|
1171
1177
|
raw: unknown;
|
|
1172
|
-
} | {
|
|
1173
|
-
type: "text";
|
|
1174
|
-
text: string;
|
|
1175
|
-
} | {
|
|
1176
|
-
type: "markdown";
|
|
1177
|
-
markdown: string;
|
|
1178
|
-
} | {
|
|
1179
|
-
type: "group";
|
|
1180
|
-
items: Message<string, User, Space<unknown>>[];
|
|
1181
1178
|
} | {
|
|
1182
1179
|
type: "poll";
|
|
1183
1180
|
title: string;
|
|
@@ -1198,13 +1195,13 @@ declare const replySchema: z.ZodObject<{
|
|
|
1198
1195
|
};
|
|
1199
1196
|
selected: boolean;
|
|
1200
1197
|
title: string;
|
|
1198
|
+
} | {
|
|
1199
|
+
type: "group";
|
|
1200
|
+
items: Message<string, User, Space<unknown>>[];
|
|
1201
1201
|
} | {
|
|
1202
1202
|
type: "reaction";
|
|
1203
1203
|
emoji: string;
|
|
1204
1204
|
target: Message<string, User, Space<unknown>>;
|
|
1205
|
-
} | {
|
|
1206
|
-
type: "richlink";
|
|
1207
|
-
url: string;
|
|
1208
1205
|
} | {
|
|
1209
1206
|
type: "voice";
|
|
1210
1207
|
mimeType: string;
|
|
@@ -1213,6 +1210,9 @@ declare const replySchema: z.ZodObject<{
|
|
|
1213
1210
|
name?: string | undefined;
|
|
1214
1211
|
duration?: number | undefined;
|
|
1215
1212
|
size?: number | undefined;
|
|
1213
|
+
} | {
|
|
1214
|
+
type: "richlink";
|
|
1215
|
+
url: string;
|
|
1216
1216
|
} | {
|
|
1217
1217
|
type: "streamText";
|
|
1218
1218
|
stream: () => AsyncIterable<string>;
|
|
@@ -1233,6 +1233,12 @@ declare const replySchema: z.ZodObject<{
|
|
|
1233
1233
|
} | {
|
|
1234
1234
|
type: "effect";
|
|
1235
1235
|
content: {
|
|
1236
|
+
type: "text";
|
|
1237
|
+
text: string;
|
|
1238
|
+
} | {
|
|
1239
|
+
type: "markdown";
|
|
1240
|
+
markdown: string;
|
|
1241
|
+
} | {
|
|
1236
1242
|
type: "attachment";
|
|
1237
1243
|
id: string;
|
|
1238
1244
|
name: string;
|
|
@@ -1240,12 +1246,6 @@ declare const replySchema: z.ZodObject<{
|
|
|
1240
1246
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1241
1247
|
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
1242
1248
|
size?: number | undefined;
|
|
1243
|
-
} | {
|
|
1244
|
-
type: "text";
|
|
1245
|
-
text: string;
|
|
1246
|
-
} | {
|
|
1247
|
-
type: "markdown";
|
|
1248
|
-
markdown: string;
|
|
1249
1249
|
};
|
|
1250
1250
|
effect: string;
|
|
1251
1251
|
} | {
|
|
@@ -6851,6 +6851,12 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6851
6851
|
}, z.core.$strip>, z.ZodObject<{
|
|
6852
6852
|
type: z.ZodLiteral<"reply">;
|
|
6853
6853
|
content: z.ZodCustom<{
|
|
6854
|
+
type: "text";
|
|
6855
|
+
text: string;
|
|
6856
|
+
} | {
|
|
6857
|
+
type: "markdown";
|
|
6858
|
+
markdown: string;
|
|
6859
|
+
} | {
|
|
6854
6860
|
type: "attachment";
|
|
6855
6861
|
id: string;
|
|
6856
6862
|
name: string;
|
|
@@ -6904,15 +6910,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6904
6910
|
} | {
|
|
6905
6911
|
type: "custom";
|
|
6906
6912
|
raw: unknown;
|
|
6907
|
-
} | {
|
|
6908
|
-
type: "text";
|
|
6909
|
-
text: string;
|
|
6910
|
-
} | {
|
|
6911
|
-
type: "markdown";
|
|
6912
|
-
markdown: string;
|
|
6913
|
-
} | {
|
|
6914
|
-
type: "group";
|
|
6915
|
-
items: Message<string, User, Space<unknown>>[];
|
|
6916
6913
|
} | {
|
|
6917
6914
|
type: "poll";
|
|
6918
6915
|
title: string;
|
|
@@ -6933,13 +6930,13 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6933
6930
|
};
|
|
6934
6931
|
selected: boolean;
|
|
6935
6932
|
title: string;
|
|
6933
|
+
} | {
|
|
6934
|
+
type: "group";
|
|
6935
|
+
items: Message<string, User, Space<unknown>>[];
|
|
6936
6936
|
} | {
|
|
6937
6937
|
type: "reaction";
|
|
6938
6938
|
emoji: string;
|
|
6939
6939
|
target: Message<string, User, Space<unknown>>;
|
|
6940
|
-
} | {
|
|
6941
|
-
type: "richlink";
|
|
6942
|
-
url: string;
|
|
6943
6940
|
} | {
|
|
6944
6941
|
type: "voice";
|
|
6945
6942
|
mimeType: string;
|
|
@@ -6948,6 +6945,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6948
6945
|
name?: string | undefined;
|
|
6949
6946
|
duration?: number | undefined;
|
|
6950
6947
|
size?: number | undefined;
|
|
6948
|
+
} | {
|
|
6949
|
+
type: "richlink";
|
|
6950
|
+
url: string;
|
|
6951
6951
|
} | {
|
|
6952
6952
|
type: "streamText";
|
|
6953
6953
|
stream: () => AsyncIterable<string>;
|
|
@@ -6968,6 +6968,12 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6968
6968
|
} | {
|
|
6969
6969
|
type: "effect";
|
|
6970
6970
|
content: {
|
|
6971
|
+
type: "text";
|
|
6972
|
+
text: string;
|
|
6973
|
+
} | {
|
|
6974
|
+
type: "markdown";
|
|
6975
|
+
markdown: string;
|
|
6976
|
+
} | {
|
|
6971
6977
|
type: "attachment";
|
|
6972
6978
|
id: string;
|
|
6973
6979
|
name: string;
|
|
@@ -6975,12 +6981,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6975
6981
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
6976
6982
|
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
6977
6983
|
size?: number | undefined;
|
|
6978
|
-
} | {
|
|
6979
|
-
type: "text";
|
|
6980
|
-
text: string;
|
|
6981
|
-
} | {
|
|
6982
|
-
type: "markdown";
|
|
6983
|
-
markdown: string;
|
|
6984
6984
|
};
|
|
6985
6985
|
effect: string;
|
|
6986
6986
|
} | {
|
|
@@ -6999,6 +6999,12 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6999
6999
|
kind: "clear";
|
|
7000
7000
|
};
|
|
7001
7001
|
}, {
|
|
7002
|
+
type: "text";
|
|
7003
|
+
text: string;
|
|
7004
|
+
} | {
|
|
7005
|
+
type: "markdown";
|
|
7006
|
+
markdown: string;
|
|
7007
|
+
} | {
|
|
7002
7008
|
type: "attachment";
|
|
7003
7009
|
id: string;
|
|
7004
7010
|
name: string;
|
|
@@ -7052,15 +7058,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7052
7058
|
} | {
|
|
7053
7059
|
type: "custom";
|
|
7054
7060
|
raw: unknown;
|
|
7055
|
-
} | {
|
|
7056
|
-
type: "text";
|
|
7057
|
-
text: string;
|
|
7058
|
-
} | {
|
|
7059
|
-
type: "markdown";
|
|
7060
|
-
markdown: string;
|
|
7061
|
-
} | {
|
|
7062
|
-
type: "group";
|
|
7063
|
-
items: Message<string, User, Space<unknown>>[];
|
|
7064
7061
|
} | {
|
|
7065
7062
|
type: "poll";
|
|
7066
7063
|
title: string;
|
|
@@ -7081,13 +7078,13 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7081
7078
|
};
|
|
7082
7079
|
selected: boolean;
|
|
7083
7080
|
title: string;
|
|
7081
|
+
} | {
|
|
7082
|
+
type: "group";
|
|
7083
|
+
items: Message<string, User, Space<unknown>>[];
|
|
7084
7084
|
} | {
|
|
7085
7085
|
type: "reaction";
|
|
7086
7086
|
emoji: string;
|
|
7087
7087
|
target: Message<string, User, Space<unknown>>;
|
|
7088
|
-
} | {
|
|
7089
|
-
type: "richlink";
|
|
7090
|
-
url: string;
|
|
7091
7088
|
} | {
|
|
7092
7089
|
type: "voice";
|
|
7093
7090
|
mimeType: string;
|
|
@@ -7096,6 +7093,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7096
7093
|
name?: string | undefined;
|
|
7097
7094
|
duration?: number | undefined;
|
|
7098
7095
|
size?: number | undefined;
|
|
7096
|
+
} | {
|
|
7097
|
+
type: "richlink";
|
|
7098
|
+
url: string;
|
|
7099
7099
|
} | {
|
|
7100
7100
|
type: "streamText";
|
|
7101
7101
|
stream: () => AsyncIterable<string>;
|
|
@@ -7116,6 +7116,12 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7116
7116
|
} | {
|
|
7117
7117
|
type: "effect";
|
|
7118
7118
|
content: {
|
|
7119
|
+
type: "text";
|
|
7120
|
+
text: string;
|
|
7121
|
+
} | {
|
|
7122
|
+
type: "markdown";
|
|
7123
|
+
markdown: string;
|
|
7124
|
+
} | {
|
|
7119
7125
|
type: "attachment";
|
|
7120
7126
|
id: string;
|
|
7121
7127
|
name: string;
|
|
@@ -7123,12 +7129,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7123
7129
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7124
7130
|
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7125
7131
|
size?: number | undefined;
|
|
7126
|
-
} | {
|
|
7127
|
-
type: "text";
|
|
7128
|
-
text: string;
|
|
7129
|
-
} | {
|
|
7130
|
-
type: "markdown";
|
|
7131
|
-
markdown: string;
|
|
7132
7132
|
};
|
|
7133
7133
|
effect: string;
|
|
7134
7134
|
} | {
|
|
@@ -7151,6 +7151,12 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7151
7151
|
}, z.core.$strip>, z.ZodObject<{
|
|
7152
7152
|
type: z.ZodLiteral<"edit">;
|
|
7153
7153
|
content: z.ZodCustom<{
|
|
7154
|
+
type: "text";
|
|
7155
|
+
text: string;
|
|
7156
|
+
} | {
|
|
7157
|
+
type: "markdown";
|
|
7158
|
+
markdown: string;
|
|
7159
|
+
} | {
|
|
7154
7160
|
type: "attachment";
|
|
7155
7161
|
id: string;
|
|
7156
7162
|
name: string;
|
|
@@ -7204,15 +7210,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7204
7210
|
} | {
|
|
7205
7211
|
type: "custom";
|
|
7206
7212
|
raw: unknown;
|
|
7207
|
-
} | {
|
|
7208
|
-
type: "text";
|
|
7209
|
-
text: string;
|
|
7210
|
-
} | {
|
|
7211
|
-
type: "markdown";
|
|
7212
|
-
markdown: string;
|
|
7213
|
-
} | {
|
|
7214
|
-
type: "group";
|
|
7215
|
-
items: Message<string, User, Space<unknown>>[];
|
|
7216
7213
|
} | {
|
|
7217
7214
|
type: "poll";
|
|
7218
7215
|
title: string;
|
|
@@ -7233,13 +7230,13 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7233
7230
|
};
|
|
7234
7231
|
selected: boolean;
|
|
7235
7232
|
title: string;
|
|
7233
|
+
} | {
|
|
7234
|
+
type: "group";
|
|
7235
|
+
items: Message<string, User, Space<unknown>>[];
|
|
7236
7236
|
} | {
|
|
7237
7237
|
type: "reaction";
|
|
7238
7238
|
emoji: string;
|
|
7239
7239
|
target: Message<string, User, Space<unknown>>;
|
|
7240
|
-
} | {
|
|
7241
|
-
type: "richlink";
|
|
7242
|
-
url: string;
|
|
7243
7240
|
} | {
|
|
7244
7241
|
type: "voice";
|
|
7245
7242
|
mimeType: string;
|
|
@@ -7248,6 +7245,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7248
7245
|
name?: string | undefined;
|
|
7249
7246
|
duration?: number | undefined;
|
|
7250
7247
|
size?: number | undefined;
|
|
7248
|
+
} | {
|
|
7249
|
+
type: "richlink";
|
|
7250
|
+
url: string;
|
|
7251
7251
|
} | {
|
|
7252
7252
|
type: "streamText";
|
|
7253
7253
|
stream: () => AsyncIterable<string>;
|
|
@@ -7268,6 +7268,12 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7268
7268
|
} | {
|
|
7269
7269
|
type: "effect";
|
|
7270
7270
|
content: {
|
|
7271
|
+
type: "text";
|
|
7272
|
+
text: string;
|
|
7273
|
+
} | {
|
|
7274
|
+
type: "markdown";
|
|
7275
|
+
markdown: string;
|
|
7276
|
+
} | {
|
|
7271
7277
|
type: "attachment";
|
|
7272
7278
|
id: string;
|
|
7273
7279
|
name: string;
|
|
@@ -7275,12 +7281,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7275
7281
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7276
7282
|
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7277
7283
|
size?: number | undefined;
|
|
7278
|
-
} | {
|
|
7279
|
-
type: "text";
|
|
7280
|
-
text: string;
|
|
7281
|
-
} | {
|
|
7282
|
-
type: "markdown";
|
|
7283
|
-
markdown: string;
|
|
7284
7284
|
};
|
|
7285
7285
|
effect: string;
|
|
7286
7286
|
} | {
|
|
@@ -7299,6 +7299,12 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7299
7299
|
kind: "clear";
|
|
7300
7300
|
};
|
|
7301
7301
|
}, {
|
|
7302
|
+
type: "text";
|
|
7303
|
+
text: string;
|
|
7304
|
+
} | {
|
|
7305
|
+
type: "markdown";
|
|
7306
|
+
markdown: string;
|
|
7307
|
+
} | {
|
|
7302
7308
|
type: "attachment";
|
|
7303
7309
|
id: string;
|
|
7304
7310
|
name: string;
|
|
@@ -7352,15 +7358,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7352
7358
|
} | {
|
|
7353
7359
|
type: "custom";
|
|
7354
7360
|
raw: unknown;
|
|
7355
|
-
} | {
|
|
7356
|
-
type: "text";
|
|
7357
|
-
text: string;
|
|
7358
|
-
} | {
|
|
7359
|
-
type: "markdown";
|
|
7360
|
-
markdown: string;
|
|
7361
|
-
} | {
|
|
7362
|
-
type: "group";
|
|
7363
|
-
items: Message<string, User, Space<unknown>>[];
|
|
7364
7361
|
} | {
|
|
7365
7362
|
type: "poll";
|
|
7366
7363
|
title: string;
|
|
@@ -7381,13 +7378,13 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7381
7378
|
};
|
|
7382
7379
|
selected: boolean;
|
|
7383
7380
|
title: string;
|
|
7381
|
+
} | {
|
|
7382
|
+
type: "group";
|
|
7383
|
+
items: Message<string, User, Space<unknown>>[];
|
|
7384
7384
|
} | {
|
|
7385
7385
|
type: "reaction";
|
|
7386
7386
|
emoji: string;
|
|
7387
7387
|
target: Message<string, User, Space<unknown>>;
|
|
7388
|
-
} | {
|
|
7389
|
-
type: "richlink";
|
|
7390
|
-
url: string;
|
|
7391
7388
|
} | {
|
|
7392
7389
|
type: "voice";
|
|
7393
7390
|
mimeType: string;
|
|
@@ -7396,6 +7393,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7396
7393
|
name?: string | undefined;
|
|
7397
7394
|
duration?: number | undefined;
|
|
7398
7395
|
size?: number | undefined;
|
|
7396
|
+
} | {
|
|
7397
|
+
type: "richlink";
|
|
7398
|
+
url: string;
|
|
7399
7399
|
} | {
|
|
7400
7400
|
type: "streamText";
|
|
7401
7401
|
stream: () => AsyncIterable<string>;
|
|
@@ -7416,6 +7416,12 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7416
7416
|
} | {
|
|
7417
7417
|
type: "effect";
|
|
7418
7418
|
content: {
|
|
7419
|
+
type: "text";
|
|
7420
|
+
text: string;
|
|
7421
|
+
} | {
|
|
7422
|
+
type: "markdown";
|
|
7423
|
+
markdown: string;
|
|
7424
|
+
} | {
|
|
7419
7425
|
type: "attachment";
|
|
7420
7426
|
id: string;
|
|
7421
7427
|
name: string;
|
|
@@ -7423,12 +7429,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7423
7429
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7424
7430
|
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7425
7431
|
size?: number | undefined;
|
|
7426
|
-
} | {
|
|
7427
|
-
type: "text";
|
|
7428
|
-
text: string;
|
|
7429
|
-
} | {
|
|
7430
|
-
type: "markdown";
|
|
7431
|
-
markdown: string;
|
|
7432
7432
|
};
|
|
7433
7433
|
effect: string;
|
|
7434
7434
|
} | {
|
package/dist/authoring.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as groupSchema, Bt as asPollOption, Dn as buildPhotoAction, En as PhotoInput, H as ProviderMessageRecord, K as ManagedStream, Nt as asRead, On as photoActionSchema, St as asText, Tt as asRichlink, Wt as asMarkdown, Zt as asGroup, cn as reactionSchema, gt as asVoice, ln as asCustom, on as asReaction, r as asAttachment, yn as asContact, zt as asPoll } from "./attachment-
|
|
1
|
+
import { $t as groupSchema, Bt as asPollOption, Dn as buildPhotoAction, En as PhotoInput, H as ProviderMessageRecord, K as ManagedStream, Nt as asRead, On as photoActionSchema, St as asText, Tt as asRichlink, Wt as asMarkdown, Zt as asGroup, cn as reactionSchema, gt as asVoice, ln as asCustom, on as asReaction, r as asAttachment, yn as asContact, zt as asPoll } from "./attachment-ChyfdoQL.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, An as AppLayout, At as Rename, B as PlatformUser, C as FusorVerify, Cn as Avatar, Ct as text, D as WebhookRawResult, Dt as resolveContents, E as WebhookRawRequest, Et as richlink, F as PlatformInstance, Ft as Poll, G as Broadcaster, Gt as markdown, Ht as poll, I as PlatformMessage, It as PollChoice, J as mergeStreams, Jt as StreamTextSource, K as ManagedStream, Kt as DeltaExtractor, L as PlatformProviderConfig, Lt as PollChoiceInput, M as EventProducer, Mn as app, Mt as Read, N as Platform, Nn as appLayoutSchema, O as FusorEvent, Ot as Reply, P as PlatformDef, Pt as read, Q as DedicatedTokenData, Qt as group, R as PlatformRuntime, Rt as PollOption, S as FusorRespond, Sn as User, T as WebhookHandler, Tn as avatar, U as SchemaMessage, Ut as Markdown, V as ProviderMessage, Vt as option, W as SpaceNamespace, X as Store, Xt as Group, Y as stream, Yt as TextStreamOptions, Z as CloudPlatform, _ as FusorClient, _n as ContactOrg, _t as voice, a as Content, an as ReactionBuilder, at as SharedTokenData, b as FusorMessagesReturn, bn as contact, bt as Typing, c as fromVCard, ct as SpectrumCloudError, d as UnsupportedKind, dn as Contact, dt as TokenData, en as Edit, et as ImessageInfoData, f as Spectrum, fn as ContactAddress, ft as cloud, g as isFusorClient, gn as ContactName, h as fusor, hn as ContactInput, ht as Voice, i as attachment, in as Reaction, it as ProjectProfile, j as AnyPlatformDef, jn as AppUrl, jt as rename, k as fusorEvent, kn as App, kt as reply, l as toVCard, lt as SubscriptionData, m as definePlatform, mn as ContactEmail, mt as EmojiKey, n as AttachmentInput, nn as Message, nt as PlatformsData, o as ContentBuilder, ot as SlackTeamMeta, p as SpectrumInstance, pn as ContactDetails, pt as Emoji, q as broadcast, qt as StreamText, rn as Space, rt as ProjectData, s as ContentInput, sn as reaction, st as SlackTokenData, t as Attachment, tn as edit, tt as PlatformStatus, u as UnsupportedError, un as custom, ut as SubscriptionStatus, v as FusorMessages, vn as ContactPhone, vt as Unsend, w as FusorVerifyRequest, wn as AvatarInput, wt as Richlink, x as FusorReply, xn as AgentSender, xt as typing, y as FusorMessagesCtx, yt as unsend, z as PlatformSpace } from "./attachment-
|
|
1
|
+
import { $ as FusorTokenData, A as isFusorEvent, An as AppLayout, At as Rename, B as PlatformUser, C as FusorVerify, Cn as Avatar, Ct as text, D as WebhookRawResult, Dt as resolveContents, E as WebhookRawRequest, Et as richlink, F as PlatformInstance, Ft as Poll, G as Broadcaster, Gt as markdown, Ht as poll, I as PlatformMessage, It as PollChoice, J as mergeStreams, Jt as StreamTextSource, K as ManagedStream, Kt as DeltaExtractor, L as PlatformProviderConfig, Lt as PollChoiceInput, M as EventProducer, Mn as app, Mt as Read, N as Platform, Nn as appLayoutSchema, O as FusorEvent, Ot as Reply, P as PlatformDef, Pt as read, Q as DedicatedTokenData, Qt as group, R as PlatformRuntime, Rt as PollOption, S as FusorRespond, Sn as User, T as WebhookHandler, Tn as avatar, U as SchemaMessage, Ut as Markdown, V as ProviderMessage, Vt as option, W as SpaceNamespace, X as Store, Xt as Group, Y as stream, Yt as TextStreamOptions, Z as CloudPlatform, _ as FusorClient, _n as ContactOrg, _t as voice, a as Content, an as ReactionBuilder, at as SharedTokenData, b as FusorMessagesReturn, bn as contact, bt as Typing, c as fromVCard, ct as SpectrumCloudError, d as UnsupportedKind, dn as Contact, dt as TokenData, en as Edit, et as ImessageInfoData, f as Spectrum, fn as ContactAddress, ft as cloud, g as isFusorClient, gn as ContactName, h as fusor, hn as ContactInput, ht as Voice, i as attachment, in as Reaction, it as ProjectProfile, j as AnyPlatformDef, jn as AppUrl, jt as rename, k as fusorEvent, kn as App, kt as reply, l as toVCard, lt as SubscriptionData, m as definePlatform, mn as ContactEmail, mt as EmojiKey, n as AttachmentInput, nn as Message, nt as PlatformsData, o as ContentBuilder, ot as SlackTeamMeta, p as SpectrumInstance, pn as ContactDetails, pt as Emoji, q as broadcast, qt as StreamText, rn as Space, rt as ProjectData, s as ContentInput, sn as reaction, st as SlackTokenData, t as Attachment, tn as edit, tt as PlatformStatus, u as UnsupportedError, un as custom, ut as SubscriptionStatus, v as FusorMessages, vn as ContactPhone, vt as Unsend, w as FusorVerifyRequest, wn as AvatarInput, wt as Richlink, x as FusorReply, xn as AgentSender, xt as typing, y as FusorMessagesCtx, yt as unsend, z as PlatformSpace } from "./attachment-ChyfdoQL.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
|
@@ -3042,7 +3042,7 @@ function definePlatform(name, rawDef) {
|
|
|
3042
3042
|
}
|
|
3043
3043
|
//#endregion
|
|
3044
3044
|
//#region src/build-env.ts
|
|
3045
|
-
const SPECTRUM_SDK_VERSION = "8.1.
|
|
3045
|
+
const SPECTRUM_SDK_VERSION = "8.1.1";
|
|
3046
3046
|
//#endregion
|
|
3047
3047
|
//#region src/utils/provider-packages.ts
|
|
3048
3048
|
const OFFICIAL_PROVIDER_PACKAGES = {
|