@spectrum-ts/core 8.2.0 → 8.2.2
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,14 +447,8 @@ 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: "
|
|
451
|
-
|
|
452
|
-
} | {
|
|
453
|
-
type: "text";
|
|
454
|
-
text: string;
|
|
455
|
-
} | {
|
|
456
|
-
type: "markdown";
|
|
457
|
-
markdown: string;
|
|
450
|
+
type: "custom";
|
|
451
|
+
raw: unknown;
|
|
458
452
|
} | {
|
|
459
453
|
type: "attachment";
|
|
460
454
|
id: string;
|
|
@@ -526,16 +520,19 @@ declare const editSchema: z.ZodObject<{
|
|
|
526
520
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
527
521
|
} | undefined;
|
|
528
522
|
raw?: unknown;
|
|
523
|
+
} | {
|
|
524
|
+
type: "text";
|
|
525
|
+
text: string;
|
|
526
|
+
} | {
|
|
527
|
+
type: "markdown";
|
|
528
|
+
markdown: string;
|
|
529
|
+
} | {
|
|
530
|
+
type: "group";
|
|
531
|
+
items: Message<string, User, Space<unknown>>[];
|
|
529
532
|
} | {
|
|
530
533
|
type: "reaction";
|
|
531
534
|
emoji: string;
|
|
532
535
|
target: Message<string, User, Space<unknown>>;
|
|
533
|
-
} | {
|
|
534
|
-
type: "custom";
|
|
535
|
-
raw: unknown;
|
|
536
|
-
} | {
|
|
537
|
-
type: "richlink";
|
|
538
|
-
url: string;
|
|
539
536
|
} | {
|
|
540
537
|
type: "streamText";
|
|
541
538
|
stream: () => AsyncIterable<string>;
|
|
@@ -548,6 +545,9 @@ declare const editSchema: z.ZodObject<{
|
|
|
548
545
|
name?: string | undefined;
|
|
549
546
|
duration?: number | undefined;
|
|
550
547
|
size?: number | undefined;
|
|
548
|
+
} | {
|
|
549
|
+
type: "richlink";
|
|
550
|
+
url: string;
|
|
551
551
|
} | {
|
|
552
552
|
type: "app";
|
|
553
553
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -564,12 +564,6 @@ 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
|
-
} | {
|
|
573
567
|
type: "attachment";
|
|
574
568
|
id: string;
|
|
575
569
|
name: string;
|
|
@@ -577,6 +571,12 @@ declare const editSchema: z.ZodObject<{
|
|
|
577
571
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
578
572
|
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
579
573
|
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,14 +595,8 @@ declare const editSchema: z.ZodObject<{
|
|
|
595
595
|
kind: "clear";
|
|
596
596
|
};
|
|
597
597
|
}, {
|
|
598
|
-
type: "
|
|
599
|
-
|
|
600
|
-
} | {
|
|
601
|
-
type: "text";
|
|
602
|
-
text: string;
|
|
603
|
-
} | {
|
|
604
|
-
type: "markdown";
|
|
605
|
-
markdown: string;
|
|
598
|
+
type: "custom";
|
|
599
|
+
raw: unknown;
|
|
606
600
|
} | {
|
|
607
601
|
type: "attachment";
|
|
608
602
|
id: string;
|
|
@@ -674,16 +668,19 @@ declare const editSchema: z.ZodObject<{
|
|
|
674
668
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
675
669
|
} | undefined;
|
|
676
670
|
raw?: unknown;
|
|
671
|
+
} | {
|
|
672
|
+
type: "text";
|
|
673
|
+
text: string;
|
|
674
|
+
} | {
|
|
675
|
+
type: "markdown";
|
|
676
|
+
markdown: string;
|
|
677
|
+
} | {
|
|
678
|
+
type: "group";
|
|
679
|
+
items: Message<string, User, Space<unknown>>[];
|
|
677
680
|
} | {
|
|
678
681
|
type: "reaction";
|
|
679
682
|
emoji: string;
|
|
680
683
|
target: Message<string, User, Space<unknown>>;
|
|
681
|
-
} | {
|
|
682
|
-
type: "custom";
|
|
683
|
-
raw: unknown;
|
|
684
|
-
} | {
|
|
685
|
-
type: "richlink";
|
|
686
|
-
url: string;
|
|
687
684
|
} | {
|
|
688
685
|
type: "streamText";
|
|
689
686
|
stream: () => AsyncIterable<string>;
|
|
@@ -696,6 +693,9 @@ declare const editSchema: z.ZodObject<{
|
|
|
696
693
|
name?: string | undefined;
|
|
697
694
|
duration?: number | undefined;
|
|
698
695
|
size?: number | undefined;
|
|
696
|
+
} | {
|
|
697
|
+
type: "richlink";
|
|
698
|
+
url: string;
|
|
699
699
|
} | {
|
|
700
700
|
type: "app";
|
|
701
701
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -712,12 +712,6 @@ 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
|
-
} | {
|
|
721
715
|
type: "attachment";
|
|
722
716
|
id: string;
|
|
723
717
|
name: string;
|
|
@@ -725,6 +719,12 @@ declare const editSchema: z.ZodObject<{
|
|
|
725
719
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
726
720
|
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
727
721
|
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,14 +968,8 @@ 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: "
|
|
972
|
-
|
|
973
|
-
} | {
|
|
974
|
-
type: "text";
|
|
975
|
-
text: string;
|
|
976
|
-
} | {
|
|
977
|
-
type: "markdown";
|
|
978
|
-
markdown: string;
|
|
971
|
+
type: "custom";
|
|
972
|
+
raw: unknown;
|
|
979
973
|
} | {
|
|
980
974
|
type: "attachment";
|
|
981
975
|
id: string;
|
|
@@ -1047,16 +1041,19 @@ declare const replySchema: z.ZodObject<{
|
|
|
1047
1041
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1048
1042
|
} | undefined;
|
|
1049
1043
|
raw?: unknown;
|
|
1044
|
+
} | {
|
|
1045
|
+
type: "text";
|
|
1046
|
+
text: string;
|
|
1047
|
+
} | {
|
|
1048
|
+
type: "markdown";
|
|
1049
|
+
markdown: string;
|
|
1050
|
+
} | {
|
|
1051
|
+
type: "group";
|
|
1052
|
+
items: Message<string, User, Space<unknown>>[];
|
|
1050
1053
|
} | {
|
|
1051
1054
|
type: "reaction";
|
|
1052
1055
|
emoji: string;
|
|
1053
1056
|
target: Message<string, User, Space<unknown>>;
|
|
1054
|
-
} | {
|
|
1055
|
-
type: "custom";
|
|
1056
|
-
raw: unknown;
|
|
1057
|
-
} | {
|
|
1058
|
-
type: "richlink";
|
|
1059
|
-
url: string;
|
|
1060
1057
|
} | {
|
|
1061
1058
|
type: "streamText";
|
|
1062
1059
|
stream: () => AsyncIterable<string>;
|
|
@@ -1069,6 +1066,9 @@ declare const replySchema: z.ZodObject<{
|
|
|
1069
1066
|
name?: string | undefined;
|
|
1070
1067
|
duration?: number | undefined;
|
|
1071
1068
|
size?: number | undefined;
|
|
1069
|
+
} | {
|
|
1070
|
+
type: "richlink";
|
|
1071
|
+
url: string;
|
|
1072
1072
|
} | {
|
|
1073
1073
|
type: "app";
|
|
1074
1074
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -1085,12 +1085,6 @@ 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
|
-
} | {
|
|
1094
1088
|
type: "attachment";
|
|
1095
1089
|
id: string;
|
|
1096
1090
|
name: string;
|
|
@@ -1098,6 +1092,12 @@ declare const replySchema: z.ZodObject<{
|
|
|
1098
1092
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1099
1093
|
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
1100
1094
|
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,14 +1116,8 @@ declare const replySchema: z.ZodObject<{
|
|
|
1116
1116
|
kind: "clear";
|
|
1117
1117
|
};
|
|
1118
1118
|
}, {
|
|
1119
|
-
type: "
|
|
1120
|
-
|
|
1121
|
-
} | {
|
|
1122
|
-
type: "text";
|
|
1123
|
-
text: string;
|
|
1124
|
-
} | {
|
|
1125
|
-
type: "markdown";
|
|
1126
|
-
markdown: string;
|
|
1119
|
+
type: "custom";
|
|
1120
|
+
raw: unknown;
|
|
1127
1121
|
} | {
|
|
1128
1122
|
type: "attachment";
|
|
1129
1123
|
id: string;
|
|
@@ -1195,16 +1189,19 @@ declare const replySchema: z.ZodObject<{
|
|
|
1195
1189
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1196
1190
|
} | undefined;
|
|
1197
1191
|
raw?: unknown;
|
|
1192
|
+
} | {
|
|
1193
|
+
type: "text";
|
|
1194
|
+
text: string;
|
|
1195
|
+
} | {
|
|
1196
|
+
type: "markdown";
|
|
1197
|
+
markdown: string;
|
|
1198
|
+
} | {
|
|
1199
|
+
type: "group";
|
|
1200
|
+
items: Message<string, User, Space<unknown>>[];
|
|
1198
1201
|
} | {
|
|
1199
1202
|
type: "reaction";
|
|
1200
1203
|
emoji: string;
|
|
1201
1204
|
target: Message<string, User, Space<unknown>>;
|
|
1202
|
-
} | {
|
|
1203
|
-
type: "custom";
|
|
1204
|
-
raw: unknown;
|
|
1205
|
-
} | {
|
|
1206
|
-
type: "richlink";
|
|
1207
|
-
url: string;
|
|
1208
1205
|
} | {
|
|
1209
1206
|
type: "streamText";
|
|
1210
1207
|
stream: () => AsyncIterable<string>;
|
|
@@ -1217,6 +1214,9 @@ declare const replySchema: z.ZodObject<{
|
|
|
1217
1214
|
name?: string | undefined;
|
|
1218
1215
|
duration?: number | undefined;
|
|
1219
1216
|
size?: number | undefined;
|
|
1217
|
+
} | {
|
|
1218
|
+
type: "richlink";
|
|
1219
|
+
url: string;
|
|
1220
1220
|
} | {
|
|
1221
1221
|
type: "app";
|
|
1222
1222
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -1233,12 +1233,6 @@ 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
|
-
} | {
|
|
1242
1236
|
type: "attachment";
|
|
1243
1237
|
id: string;
|
|
1244
1238
|
name: string;
|
|
@@ -1246,6 +1240,12 @@ declare const replySchema: z.ZodObject<{
|
|
|
1246
1240
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1247
1241
|
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
1248
1242
|
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
|
} | {
|
|
@@ -7024,14 +7024,8 @@ 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: "
|
|
7028
|
-
|
|
7029
|
-
} | {
|
|
7030
|
-
type: "text";
|
|
7031
|
-
text: string;
|
|
7032
|
-
} | {
|
|
7033
|
-
type: "markdown";
|
|
7034
|
-
markdown: string;
|
|
7027
|
+
type: "custom";
|
|
7028
|
+
raw: unknown;
|
|
7035
7029
|
} | {
|
|
7036
7030
|
type: "attachment";
|
|
7037
7031
|
id: string;
|
|
@@ -7103,16 +7097,19 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7103
7097
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7104
7098
|
} | undefined;
|
|
7105
7099
|
raw?: unknown;
|
|
7100
|
+
} | {
|
|
7101
|
+
type: "text";
|
|
7102
|
+
text: string;
|
|
7103
|
+
} | {
|
|
7104
|
+
type: "markdown";
|
|
7105
|
+
markdown: string;
|
|
7106
|
+
} | {
|
|
7107
|
+
type: "group";
|
|
7108
|
+
items: Message<string, User, Space<unknown>>[];
|
|
7106
7109
|
} | {
|
|
7107
7110
|
type: "reaction";
|
|
7108
7111
|
emoji: string;
|
|
7109
7112
|
target: Message<string, User, Space<unknown>>;
|
|
7110
|
-
} | {
|
|
7111
|
-
type: "custom";
|
|
7112
|
-
raw: unknown;
|
|
7113
|
-
} | {
|
|
7114
|
-
type: "richlink";
|
|
7115
|
-
url: string;
|
|
7116
7113
|
} | {
|
|
7117
7114
|
type: "streamText";
|
|
7118
7115
|
stream: () => AsyncIterable<string>;
|
|
@@ -7125,6 +7122,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7125
7122
|
name?: string | undefined;
|
|
7126
7123
|
duration?: number | undefined;
|
|
7127
7124
|
size?: number | undefined;
|
|
7125
|
+
} | {
|
|
7126
|
+
type: "richlink";
|
|
7127
|
+
url: string;
|
|
7128
7128
|
} | {
|
|
7129
7129
|
type: "app";
|
|
7130
7130
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -7141,12 +7141,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7141
7141
|
} | {
|
|
7142
7142
|
type: "effect";
|
|
7143
7143
|
content: {
|
|
7144
|
-
type: "text";
|
|
7145
|
-
text: string;
|
|
7146
|
-
} | {
|
|
7147
|
-
type: "markdown";
|
|
7148
|
-
markdown: string;
|
|
7149
|
-
} | {
|
|
7150
7144
|
type: "attachment";
|
|
7151
7145
|
id: string;
|
|
7152
7146
|
name: string;
|
|
@@ -7154,6 +7148,12 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7154
7148
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7155
7149
|
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7156
7150
|
size?: number | undefined;
|
|
7151
|
+
} | {
|
|
7152
|
+
type: "text";
|
|
7153
|
+
text: string;
|
|
7154
|
+
} | {
|
|
7155
|
+
type: "markdown";
|
|
7156
|
+
markdown: string;
|
|
7157
7157
|
};
|
|
7158
7158
|
effect: string;
|
|
7159
7159
|
} | {
|
|
@@ -7172,14 +7172,8 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7172
7172
|
kind: "clear";
|
|
7173
7173
|
};
|
|
7174
7174
|
}, {
|
|
7175
|
-
type: "
|
|
7176
|
-
|
|
7177
|
-
} | {
|
|
7178
|
-
type: "text";
|
|
7179
|
-
text: string;
|
|
7180
|
-
} | {
|
|
7181
|
-
type: "markdown";
|
|
7182
|
-
markdown: string;
|
|
7175
|
+
type: "custom";
|
|
7176
|
+
raw: unknown;
|
|
7183
7177
|
} | {
|
|
7184
7178
|
type: "attachment";
|
|
7185
7179
|
id: string;
|
|
@@ -7251,16 +7245,19 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7251
7245
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7252
7246
|
} | undefined;
|
|
7253
7247
|
raw?: unknown;
|
|
7248
|
+
} | {
|
|
7249
|
+
type: "text";
|
|
7250
|
+
text: string;
|
|
7251
|
+
} | {
|
|
7252
|
+
type: "markdown";
|
|
7253
|
+
markdown: string;
|
|
7254
|
+
} | {
|
|
7255
|
+
type: "group";
|
|
7256
|
+
items: Message<string, User, Space<unknown>>[];
|
|
7254
7257
|
} | {
|
|
7255
7258
|
type: "reaction";
|
|
7256
7259
|
emoji: string;
|
|
7257
7260
|
target: Message<string, User, Space<unknown>>;
|
|
7258
|
-
} | {
|
|
7259
|
-
type: "custom";
|
|
7260
|
-
raw: unknown;
|
|
7261
|
-
} | {
|
|
7262
|
-
type: "richlink";
|
|
7263
|
-
url: string;
|
|
7264
7261
|
} | {
|
|
7265
7262
|
type: "streamText";
|
|
7266
7263
|
stream: () => AsyncIterable<string>;
|
|
@@ -7273,6 +7270,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7273
7270
|
name?: string | undefined;
|
|
7274
7271
|
duration?: number | undefined;
|
|
7275
7272
|
size?: number | undefined;
|
|
7273
|
+
} | {
|
|
7274
|
+
type: "richlink";
|
|
7275
|
+
url: string;
|
|
7276
7276
|
} | {
|
|
7277
7277
|
type: "app";
|
|
7278
7278
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -7289,12 +7289,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7289
7289
|
} | {
|
|
7290
7290
|
type: "effect";
|
|
7291
7291
|
content: {
|
|
7292
|
-
type: "text";
|
|
7293
|
-
text: string;
|
|
7294
|
-
} | {
|
|
7295
|
-
type: "markdown";
|
|
7296
|
-
markdown: string;
|
|
7297
|
-
} | {
|
|
7298
7292
|
type: "attachment";
|
|
7299
7293
|
id: string;
|
|
7300
7294
|
name: string;
|
|
@@ -7302,6 +7296,12 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7302
7296
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7303
7297
|
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7304
7298
|
size?: number | undefined;
|
|
7299
|
+
} | {
|
|
7300
|
+
type: "text";
|
|
7301
|
+
text: string;
|
|
7302
|
+
} | {
|
|
7303
|
+
type: "markdown";
|
|
7304
|
+
markdown: string;
|
|
7305
7305
|
};
|
|
7306
7306
|
effect: string;
|
|
7307
7307
|
} | {
|
|
@@ -7324,14 +7324,8 @@ 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: "
|
|
7328
|
-
|
|
7329
|
-
} | {
|
|
7330
|
-
type: "text";
|
|
7331
|
-
text: string;
|
|
7332
|
-
} | {
|
|
7333
|
-
type: "markdown";
|
|
7334
|
-
markdown: string;
|
|
7327
|
+
type: "custom";
|
|
7328
|
+
raw: unknown;
|
|
7335
7329
|
} | {
|
|
7336
7330
|
type: "attachment";
|
|
7337
7331
|
id: string;
|
|
@@ -7403,16 +7397,19 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7403
7397
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7404
7398
|
} | undefined;
|
|
7405
7399
|
raw?: unknown;
|
|
7400
|
+
} | {
|
|
7401
|
+
type: "text";
|
|
7402
|
+
text: string;
|
|
7403
|
+
} | {
|
|
7404
|
+
type: "markdown";
|
|
7405
|
+
markdown: string;
|
|
7406
|
+
} | {
|
|
7407
|
+
type: "group";
|
|
7408
|
+
items: Message<string, User, Space<unknown>>[];
|
|
7406
7409
|
} | {
|
|
7407
7410
|
type: "reaction";
|
|
7408
7411
|
emoji: string;
|
|
7409
7412
|
target: Message<string, User, Space<unknown>>;
|
|
7410
|
-
} | {
|
|
7411
|
-
type: "custom";
|
|
7412
|
-
raw: unknown;
|
|
7413
|
-
} | {
|
|
7414
|
-
type: "richlink";
|
|
7415
|
-
url: string;
|
|
7416
7413
|
} | {
|
|
7417
7414
|
type: "streamText";
|
|
7418
7415
|
stream: () => AsyncIterable<string>;
|
|
@@ -7425,6 +7422,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7425
7422
|
name?: string | undefined;
|
|
7426
7423
|
duration?: number | undefined;
|
|
7427
7424
|
size?: number | undefined;
|
|
7425
|
+
} | {
|
|
7426
|
+
type: "richlink";
|
|
7427
|
+
url: string;
|
|
7428
7428
|
} | {
|
|
7429
7429
|
type: "app";
|
|
7430
7430
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -7441,12 +7441,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7441
7441
|
} | {
|
|
7442
7442
|
type: "effect";
|
|
7443
7443
|
content: {
|
|
7444
|
-
type: "text";
|
|
7445
|
-
text: string;
|
|
7446
|
-
} | {
|
|
7447
|
-
type: "markdown";
|
|
7448
|
-
markdown: string;
|
|
7449
|
-
} | {
|
|
7450
7444
|
type: "attachment";
|
|
7451
7445
|
id: string;
|
|
7452
7446
|
name: string;
|
|
@@ -7454,6 +7448,12 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7454
7448
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7455
7449
|
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7456
7450
|
size?: number | undefined;
|
|
7451
|
+
} | {
|
|
7452
|
+
type: "text";
|
|
7453
|
+
text: string;
|
|
7454
|
+
} | {
|
|
7455
|
+
type: "markdown";
|
|
7456
|
+
markdown: string;
|
|
7457
7457
|
};
|
|
7458
7458
|
effect: string;
|
|
7459
7459
|
} | {
|
|
@@ -7472,14 +7472,8 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7472
7472
|
kind: "clear";
|
|
7473
7473
|
};
|
|
7474
7474
|
}, {
|
|
7475
|
-
type: "
|
|
7476
|
-
|
|
7477
|
-
} | {
|
|
7478
|
-
type: "text";
|
|
7479
|
-
text: string;
|
|
7480
|
-
} | {
|
|
7481
|
-
type: "markdown";
|
|
7482
|
-
markdown: string;
|
|
7475
|
+
type: "custom";
|
|
7476
|
+
raw: unknown;
|
|
7483
7477
|
} | {
|
|
7484
7478
|
type: "attachment";
|
|
7485
7479
|
id: string;
|
|
@@ -7551,16 +7545,19 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7551
7545
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7552
7546
|
} | undefined;
|
|
7553
7547
|
raw?: unknown;
|
|
7548
|
+
} | {
|
|
7549
|
+
type: "text";
|
|
7550
|
+
text: string;
|
|
7551
|
+
} | {
|
|
7552
|
+
type: "markdown";
|
|
7553
|
+
markdown: string;
|
|
7554
|
+
} | {
|
|
7555
|
+
type: "group";
|
|
7556
|
+
items: Message<string, User, Space<unknown>>[];
|
|
7554
7557
|
} | {
|
|
7555
7558
|
type: "reaction";
|
|
7556
7559
|
emoji: string;
|
|
7557
7560
|
target: Message<string, User, Space<unknown>>;
|
|
7558
|
-
} | {
|
|
7559
|
-
type: "custom";
|
|
7560
|
-
raw: unknown;
|
|
7561
|
-
} | {
|
|
7562
|
-
type: "richlink";
|
|
7563
|
-
url: string;
|
|
7564
7561
|
} | {
|
|
7565
7562
|
type: "streamText";
|
|
7566
7563
|
stream: () => AsyncIterable<string>;
|
|
@@ -7573,6 +7570,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7573
7570
|
name?: string | undefined;
|
|
7574
7571
|
duration?: number | undefined;
|
|
7575
7572
|
size?: number | undefined;
|
|
7573
|
+
} | {
|
|
7574
|
+
type: "richlink";
|
|
7575
|
+
url: string;
|
|
7576
7576
|
} | {
|
|
7577
7577
|
type: "app";
|
|
7578
7578
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -7589,12 +7589,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7589
7589
|
} | {
|
|
7590
7590
|
type: "effect";
|
|
7591
7591
|
content: {
|
|
7592
|
-
type: "text";
|
|
7593
|
-
text: string;
|
|
7594
|
-
} | {
|
|
7595
|
-
type: "markdown";
|
|
7596
|
-
markdown: string;
|
|
7597
|
-
} | {
|
|
7598
7592
|
type: "attachment";
|
|
7599
7593
|
id: string;
|
|
7600
7594
|
name: string;
|
|
@@ -7602,6 +7596,12 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7602
7596
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7603
7597
|
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7604
7598
|
size?: number | undefined;
|
|
7599
|
+
} | {
|
|
7600
|
+
type: "text";
|
|
7601
|
+
text: string;
|
|
7602
|
+
} | {
|
|
7603
|
+
type: "markdown";
|
|
7604
|
+
markdown: string;
|
|
7605
7605
|
};
|
|
7606
7606
|
effect: string;
|
|
7607
7607
|
} | {
|
package/dist/authoring.d.ts
CHANGED
|
@@ -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-
|
|
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-DqrtDRaN.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-
|
|
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-DqrtDRaN.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.
|
|
3023
|
+
const SPECTRUM_SDK_VERSION = "8.2.2";
|
|
3024
3024
|
//#endregion
|
|
3025
3025
|
//#region src/utils/provider-packages.ts
|
|
3026
3026
|
const OFFICIAL_PROVIDER_PACKAGES = {
|