@spectrum-ts/core 11.2.0 → 12.1.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.
- package/README.md +1 -1
- package/dist/{attachment-CtoKMCG2.d.ts → attachment-CbNQEDfL.d.ts} +341 -347
- package/dist/authoring.d.ts +16 -2
- package/dist/authoring.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +49 -103
- package/dist/{stream-B6kth7y9.js → stream-4VQBWgZQ.js} +83 -4
- package/package.json +1 -1
|
@@ -592,14 +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
595
|
type: "contact";
|
|
604
596
|
user?: {
|
|
605
597
|
__platform: string;
|
|
@@ -642,15 +634,57 @@ declare const editSchema: z.ZodObject<{
|
|
|
642
634
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
643
635
|
} | undefined;
|
|
644
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
645
|
} | {
|
|
646
646
|
type: "custom";
|
|
647
647
|
raw: unknown;
|
|
648
|
+
} | {
|
|
649
|
+
type: "voice";
|
|
650
|
+
mimeType: string;
|
|
651
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
652
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
653
|
+
id?: string | undefined;
|
|
654
|
+
name?: string | undefined;
|
|
655
|
+
duration?: number | undefined;
|
|
656
|
+
size?: number | undefined;
|
|
648
657
|
} | {
|
|
649
658
|
type: "text";
|
|
650
659
|
text: string;
|
|
651
660
|
} | {
|
|
652
661
|
type: "markdown";
|
|
653
662
|
markdown: string;
|
|
663
|
+
} | {
|
|
664
|
+
type: "streamText";
|
|
665
|
+
stream: () => AsyncIterable<string>;
|
|
666
|
+
format?: "markdown" | "plain" | undefined;
|
|
667
|
+
} | {
|
|
668
|
+
type: "richlink";
|
|
669
|
+
url: string;
|
|
670
|
+
} | {
|
|
671
|
+
type: "app";
|
|
672
|
+
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
673
|
+
layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
674
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
675
|
+
subcaption: z.ZodOptional<z.ZodString>;
|
|
676
|
+
trailingCaption: z.ZodOptional<z.ZodString>;
|
|
677
|
+
trailingSubcaption: z.ZodOptional<z.ZodString>;
|
|
678
|
+
image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
679
|
+
imageTitle: z.ZodOptional<z.ZodString>;
|
|
680
|
+
imageSubtitle: z.ZodOptional<z.ZodString>;
|
|
681
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
682
|
+
}, z.core.$strip>>>;
|
|
683
|
+
live?: boolean | undefined;
|
|
684
|
+
} | {
|
|
685
|
+
type: "reaction";
|
|
686
|
+
emoji: string;
|
|
687
|
+
target: Message<string, User, Space<unknown>>;
|
|
654
688
|
} | {
|
|
655
689
|
type: "group";
|
|
656
690
|
items: Message<string, User, Space<unknown>>[];
|
|
@@ -674,40 +708,6 @@ declare const editSchema: z.ZodObject<{
|
|
|
674
708
|
};
|
|
675
709
|
selected: boolean;
|
|
676
710
|
title: string;
|
|
677
|
-
} | {
|
|
678
|
-
type: "reaction";
|
|
679
|
-
emoji: string;
|
|
680
|
-
target: Message<string, User, Space<unknown>>;
|
|
681
|
-
} | {
|
|
682
|
-
type: "streamText";
|
|
683
|
-
stream: () => AsyncIterable<string>;
|
|
684
|
-
format?: "markdown" | "plain" | undefined;
|
|
685
|
-
} | {
|
|
686
|
-
type: "voice";
|
|
687
|
-
mimeType: string;
|
|
688
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
689
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
690
|
-
id?: string | undefined;
|
|
691
|
-
name?: string | undefined;
|
|
692
|
-
duration?: number | undefined;
|
|
693
|
-
size?: number | undefined;
|
|
694
|
-
} | {
|
|
695
|
-
type: "richlink";
|
|
696
|
-
url: string;
|
|
697
|
-
} | {
|
|
698
|
-
type: "app";
|
|
699
|
-
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
700
|
-
layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
701
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
702
|
-
subcaption: z.ZodOptional<z.ZodString>;
|
|
703
|
-
trailingCaption: z.ZodOptional<z.ZodString>;
|
|
704
|
-
trailingSubcaption: z.ZodOptional<z.ZodString>;
|
|
705
|
-
image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
706
|
-
imageTitle: z.ZodOptional<z.ZodString>;
|
|
707
|
-
imageSubtitle: z.ZodOptional<z.ZodString>;
|
|
708
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
709
|
-
}, z.core.$strip>>>;
|
|
710
|
-
live?: boolean | undefined;
|
|
711
711
|
} | {
|
|
712
712
|
type: "effect";
|
|
713
713
|
content: {
|
|
@@ -750,14 +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
753
|
type: "contact";
|
|
762
754
|
user?: {
|
|
763
755
|
__platform: string;
|
|
@@ -800,15 +792,57 @@ declare const editSchema: z.ZodObject<{
|
|
|
800
792
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
801
793
|
} | undefined;
|
|
802
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
803
|
} | {
|
|
804
804
|
type: "custom";
|
|
805
805
|
raw: unknown;
|
|
806
|
+
} | {
|
|
807
|
+
type: "voice";
|
|
808
|
+
mimeType: string;
|
|
809
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
810
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
811
|
+
id?: string | undefined;
|
|
812
|
+
name?: string | undefined;
|
|
813
|
+
duration?: number | undefined;
|
|
814
|
+
size?: number | undefined;
|
|
806
815
|
} | {
|
|
807
816
|
type: "text";
|
|
808
817
|
text: string;
|
|
809
818
|
} | {
|
|
810
819
|
type: "markdown";
|
|
811
820
|
markdown: string;
|
|
821
|
+
} | {
|
|
822
|
+
type: "streamText";
|
|
823
|
+
stream: () => AsyncIterable<string>;
|
|
824
|
+
format?: "markdown" | "plain" | undefined;
|
|
825
|
+
} | {
|
|
826
|
+
type: "richlink";
|
|
827
|
+
url: string;
|
|
828
|
+
} | {
|
|
829
|
+
type: "app";
|
|
830
|
+
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
831
|
+
layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
832
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
833
|
+
subcaption: z.ZodOptional<z.ZodString>;
|
|
834
|
+
trailingCaption: z.ZodOptional<z.ZodString>;
|
|
835
|
+
trailingSubcaption: z.ZodOptional<z.ZodString>;
|
|
836
|
+
image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
837
|
+
imageTitle: z.ZodOptional<z.ZodString>;
|
|
838
|
+
imageSubtitle: z.ZodOptional<z.ZodString>;
|
|
839
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
840
|
+
}, z.core.$strip>>>;
|
|
841
|
+
live?: boolean | undefined;
|
|
842
|
+
} | {
|
|
843
|
+
type: "reaction";
|
|
844
|
+
emoji: string;
|
|
845
|
+
target: Message<string, User, Space<unknown>>;
|
|
812
846
|
} | {
|
|
813
847
|
type: "group";
|
|
814
848
|
items: Message<string, User, Space<unknown>>[];
|
|
@@ -832,40 +866,6 @@ declare const editSchema: z.ZodObject<{
|
|
|
832
866
|
};
|
|
833
867
|
selected: boolean;
|
|
834
868
|
title: string;
|
|
835
|
-
} | {
|
|
836
|
-
type: "reaction";
|
|
837
|
-
emoji: string;
|
|
838
|
-
target: Message<string, User, Space<unknown>>;
|
|
839
|
-
} | {
|
|
840
|
-
type: "streamText";
|
|
841
|
-
stream: () => AsyncIterable<string>;
|
|
842
|
-
format?: "markdown" | "plain" | undefined;
|
|
843
|
-
} | {
|
|
844
|
-
type: "voice";
|
|
845
|
-
mimeType: string;
|
|
846
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
847
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
848
|
-
id?: string | undefined;
|
|
849
|
-
name?: string | undefined;
|
|
850
|
-
duration?: number | undefined;
|
|
851
|
-
size?: number | undefined;
|
|
852
|
-
} | {
|
|
853
|
-
type: "richlink";
|
|
854
|
-
url: string;
|
|
855
|
-
} | {
|
|
856
|
-
type: "app";
|
|
857
|
-
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
858
|
-
layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
859
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
860
|
-
subcaption: z.ZodOptional<z.ZodString>;
|
|
861
|
-
trailingCaption: z.ZodOptional<z.ZodString>;
|
|
862
|
-
trailingSubcaption: z.ZodOptional<z.ZodString>;
|
|
863
|
-
image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
864
|
-
imageTitle: z.ZodOptional<z.ZodString>;
|
|
865
|
-
imageSubtitle: z.ZodOptional<z.ZodString>;
|
|
866
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
867
|
-
}, z.core.$strip>>>;
|
|
868
|
-
live?: boolean | undefined;
|
|
869
869
|
} | {
|
|
870
870
|
type: "effect";
|
|
871
871
|
content: {
|
|
@@ -1138,14 +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
1141
|
type: "contact";
|
|
1150
1142
|
user?: {
|
|
1151
1143
|
__platform: string;
|
|
@@ -1188,15 +1180,57 @@ declare const replySchema: z.ZodObject<{
|
|
|
1188
1180
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1189
1181
|
} | undefined;
|
|
1190
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
1191
|
} | {
|
|
1192
1192
|
type: "custom";
|
|
1193
1193
|
raw: unknown;
|
|
1194
|
+
} | {
|
|
1195
|
+
type: "voice";
|
|
1196
|
+
mimeType: string;
|
|
1197
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1198
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
1199
|
+
id?: string | undefined;
|
|
1200
|
+
name?: string | undefined;
|
|
1201
|
+
duration?: number | undefined;
|
|
1202
|
+
size?: number | undefined;
|
|
1194
1203
|
} | {
|
|
1195
1204
|
type: "text";
|
|
1196
1205
|
text: string;
|
|
1197
1206
|
} | {
|
|
1198
1207
|
type: "markdown";
|
|
1199
1208
|
markdown: string;
|
|
1209
|
+
} | {
|
|
1210
|
+
type: "streamText";
|
|
1211
|
+
stream: () => AsyncIterable<string>;
|
|
1212
|
+
format?: "markdown" | "plain" | undefined;
|
|
1213
|
+
} | {
|
|
1214
|
+
type: "richlink";
|
|
1215
|
+
url: string;
|
|
1216
|
+
} | {
|
|
1217
|
+
type: "app";
|
|
1218
|
+
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
1219
|
+
layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
1220
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
1221
|
+
subcaption: z.ZodOptional<z.ZodString>;
|
|
1222
|
+
trailingCaption: z.ZodOptional<z.ZodString>;
|
|
1223
|
+
trailingSubcaption: z.ZodOptional<z.ZodString>;
|
|
1224
|
+
image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
1225
|
+
imageTitle: z.ZodOptional<z.ZodString>;
|
|
1226
|
+
imageSubtitle: z.ZodOptional<z.ZodString>;
|
|
1227
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1228
|
+
}, z.core.$strip>>>;
|
|
1229
|
+
live?: boolean | undefined;
|
|
1230
|
+
} | {
|
|
1231
|
+
type: "reaction";
|
|
1232
|
+
emoji: string;
|
|
1233
|
+
target: Message<string, User, Space<unknown>>;
|
|
1200
1234
|
} | {
|
|
1201
1235
|
type: "group";
|
|
1202
1236
|
items: Message<string, User, Space<unknown>>[];
|
|
@@ -1220,40 +1254,6 @@ declare const replySchema: z.ZodObject<{
|
|
|
1220
1254
|
};
|
|
1221
1255
|
selected: boolean;
|
|
1222
1256
|
title: string;
|
|
1223
|
-
} | {
|
|
1224
|
-
type: "reaction";
|
|
1225
|
-
emoji: string;
|
|
1226
|
-
target: Message<string, User, Space<unknown>>;
|
|
1227
|
-
} | {
|
|
1228
|
-
type: "streamText";
|
|
1229
|
-
stream: () => AsyncIterable<string>;
|
|
1230
|
-
format?: "markdown" | "plain" | undefined;
|
|
1231
|
-
} | {
|
|
1232
|
-
type: "voice";
|
|
1233
|
-
mimeType: string;
|
|
1234
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1235
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
1236
|
-
id?: string | undefined;
|
|
1237
|
-
name?: string | undefined;
|
|
1238
|
-
duration?: number | undefined;
|
|
1239
|
-
size?: number | undefined;
|
|
1240
|
-
} | {
|
|
1241
|
-
type: "richlink";
|
|
1242
|
-
url: string;
|
|
1243
|
-
} | {
|
|
1244
|
-
type: "app";
|
|
1245
|
-
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
1246
|
-
layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
1247
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
1248
|
-
subcaption: z.ZodOptional<z.ZodString>;
|
|
1249
|
-
trailingCaption: z.ZodOptional<z.ZodString>;
|
|
1250
|
-
trailingSubcaption: z.ZodOptional<z.ZodString>;
|
|
1251
|
-
image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
1252
|
-
imageTitle: z.ZodOptional<z.ZodString>;
|
|
1253
|
-
imageSubtitle: z.ZodOptional<z.ZodString>;
|
|
1254
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
1255
|
-
}, z.core.$strip>>>;
|
|
1256
|
-
live?: boolean | undefined;
|
|
1257
1257
|
} | {
|
|
1258
1258
|
type: "effect";
|
|
1259
1259
|
content: {
|
|
@@ -1296,14 +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
1299
|
type: "contact";
|
|
1308
1300
|
user?: {
|
|
1309
1301
|
__platform: string;
|
|
@@ -1346,15 +1338,57 @@ declare const replySchema: z.ZodObject<{
|
|
|
1346
1338
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1347
1339
|
} | undefined;
|
|
1348
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
1349
|
} | {
|
|
1350
1350
|
type: "custom";
|
|
1351
1351
|
raw: unknown;
|
|
1352
|
+
} | {
|
|
1353
|
+
type: "voice";
|
|
1354
|
+
mimeType: string;
|
|
1355
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1356
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
1357
|
+
id?: string | undefined;
|
|
1358
|
+
name?: string | undefined;
|
|
1359
|
+
duration?: number | undefined;
|
|
1360
|
+
size?: number | undefined;
|
|
1352
1361
|
} | {
|
|
1353
1362
|
type: "text";
|
|
1354
1363
|
text: string;
|
|
1355
1364
|
} | {
|
|
1356
1365
|
type: "markdown";
|
|
1357
1366
|
markdown: string;
|
|
1367
|
+
} | {
|
|
1368
|
+
type: "streamText";
|
|
1369
|
+
stream: () => AsyncIterable<string>;
|
|
1370
|
+
format?: "markdown" | "plain" | undefined;
|
|
1371
|
+
} | {
|
|
1372
|
+
type: "richlink";
|
|
1373
|
+
url: string;
|
|
1374
|
+
} | {
|
|
1375
|
+
type: "app";
|
|
1376
|
+
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
1377
|
+
layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
1378
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
1379
|
+
subcaption: z.ZodOptional<z.ZodString>;
|
|
1380
|
+
trailingCaption: z.ZodOptional<z.ZodString>;
|
|
1381
|
+
trailingSubcaption: z.ZodOptional<z.ZodString>;
|
|
1382
|
+
image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
1383
|
+
imageTitle: z.ZodOptional<z.ZodString>;
|
|
1384
|
+
imageSubtitle: z.ZodOptional<z.ZodString>;
|
|
1385
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1386
|
+
}, z.core.$strip>>>;
|
|
1387
|
+
live?: boolean | undefined;
|
|
1388
|
+
} | {
|
|
1389
|
+
type: "reaction";
|
|
1390
|
+
emoji: string;
|
|
1391
|
+
target: Message<string, User, Space<unknown>>;
|
|
1358
1392
|
} | {
|
|
1359
1393
|
type: "group";
|
|
1360
1394
|
items: Message<string, User, Space<unknown>>[];
|
|
@@ -1378,40 +1412,6 @@ declare const replySchema: z.ZodObject<{
|
|
|
1378
1412
|
};
|
|
1379
1413
|
selected: boolean;
|
|
1380
1414
|
title: string;
|
|
1381
|
-
} | {
|
|
1382
|
-
type: "reaction";
|
|
1383
|
-
emoji: string;
|
|
1384
|
-
target: Message<string, User, Space<unknown>>;
|
|
1385
|
-
} | {
|
|
1386
|
-
type: "streamText";
|
|
1387
|
-
stream: () => AsyncIterable<string>;
|
|
1388
|
-
format?: "markdown" | "plain" | undefined;
|
|
1389
|
-
} | {
|
|
1390
|
-
type: "voice";
|
|
1391
|
-
mimeType: string;
|
|
1392
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
1393
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
1394
|
-
id?: string | undefined;
|
|
1395
|
-
name?: string | undefined;
|
|
1396
|
-
duration?: number | undefined;
|
|
1397
|
-
size?: number | undefined;
|
|
1398
|
-
} | {
|
|
1399
|
-
type: "richlink";
|
|
1400
|
-
url: string;
|
|
1401
|
-
} | {
|
|
1402
|
-
type: "app";
|
|
1403
|
-
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
1404
|
-
layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
1405
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
1406
|
-
subcaption: z.ZodOptional<z.ZodString>;
|
|
1407
|
-
trailingCaption: z.ZodOptional<z.ZodString>;
|
|
1408
|
-
trailingSubcaption: z.ZodOptional<z.ZodString>;
|
|
1409
|
-
image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
1410
|
-
imageTitle: z.ZodOptional<z.ZodString>;
|
|
1411
|
-
imageSubtitle: z.ZodOptional<z.ZodString>;
|
|
1412
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
1413
|
-
}, z.core.$strip>>>;
|
|
1414
|
-
live?: boolean | undefined;
|
|
1415
1415
|
} | {
|
|
1416
1416
|
type: "effect";
|
|
1417
1417
|
content: {
|
|
@@ -6786,7 +6786,7 @@ declare function definePlatform<_Name extends string, _ConfigSchema extends z.Zo
|
|
|
6786
6786
|
id: string;
|
|
6787
6787
|
}, _MessageSchema extends z.ZodType<object> | undefined = undefined, _MessageType extends ProviderMessage<_ResolvedUser, _ResolvedSpace, _MessageSchema extends z.ZodType<object> ? z.infer<_MessageSchema> : Record<never, never>> = ProviderMessage<_ResolvedUser, _ResolvedSpace, _MessageSchema extends z.ZodType<object> ? z.infer<_MessageSchema> : Record<never, never>>, _Events extends (Record<string, EventProducer<unknown, _Client, z.infer<_ConfigSchema>>> & {
|
|
6788
6788
|
messages?: never;
|
|
6789
|
-
}) | undefined = undefined, _Static extends Record<string, unknown> = Record<never, never>, _SpaceActions extends Record<string, SpaceActionFn> = Record<never, never>, _MessageActions extends Record<string, MessageActionFn> = Record<never, never>, _Actions extends Record<string, InstanceActionFn> = Record<never, never>>(
|
|
6789
|
+
}) | undefined = undefined, _Static extends Record<string, unknown> = Record<never, never>, _SpaceActions extends Record<string, SpaceActionFn> = Record<never, never>, _MessageActions extends Record<string, MessageActionFn> = Record<never, never>, _Actions extends Record<string, InstanceActionFn> = Record<never, never>>(platformId: _Name, def: {
|
|
6790
6790
|
lifecycle: {
|
|
6791
6791
|
createClient: (ctx: CreateClientContext<_ConfigSchema>) => Promise<_Client>;
|
|
6792
6792
|
destroyClient?: (ctx: {
|
|
@@ -6803,7 +6803,7 @@ declare function definePlatform<_Name extends string, _ConfigSchema extends z.Zo
|
|
|
6803
6803
|
id: string;
|
|
6804
6804
|
}, _MessageSchema extends z.ZodType<object> | undefined = undefined, _FusorEvents extends (Record<string, z.ZodType<object>> & {
|
|
6805
6805
|
messages?: never;
|
|
6806
|
-
}) | undefined = undefined, _Static extends Record<string, unknown> = Record<never, never>, _SpaceActions extends Record<string, SpaceActionFn> = Record<never, never>, _MessageActions extends Record<string, MessageActionFn> = Record<never, never>>(
|
|
6806
|
+
}) | undefined = undefined, _Static extends Record<string, unknown> = Record<never, never>, _SpaceActions extends Record<string, SpaceActionFn> = Record<never, never>, _MessageActions extends Record<string, MessageActionFn> = Record<never, never>>(platformId: _Name, def: Omit<PlatformDef<_Name, _ConfigSchema, _UserSchema, _SpaceSchema, _SpaceParamsSchema, FusorClient<_TPayload>, _ResolvedUser, _ResolvedSpace, _MessageSchema, ProviderMessage<_ResolvedUser, _ResolvedSpace, _MessageSchema extends z.ZodType<object> ? z.infer<_MessageSchema> : Record<never, never>>, _FusorEvents, _SpaceActions, _MessageActions>, "lifecycle" | "name" | "messages"> & {
|
|
6807
6807
|
lifecycle: {
|
|
6808
6808
|
createClient: (ctx: CreateClientContext<_ConfigSchema>) => Promise<FusorClient<_TPayload>>;
|
|
6809
6809
|
destroyClient?: (ctx: {
|
|
@@ -6881,18 +6881,12 @@ interface SpectrumOptions {
|
|
|
6881
6881
|
*/
|
|
6882
6882
|
logLevel?: LogLevel;
|
|
6883
6883
|
}
|
|
6884
|
-
|
|
6885
|
-
platforms: [...Providers];
|
|
6886
|
-
providers?: never;
|
|
6887
|
-
} | {
|
|
6888
|
-
platforms?: never;
|
|
6889
|
-
providers: [...Providers];
|
|
6890
|
-
};
|
|
6891
|
-
type SpectrumFactoryOptions<Providers extends PlatformProviderConfig[]> = PlatformSelection<Providers> & {
|
|
6884
|
+
interface SpectrumFactoryOptions<Providers extends PlatformProviderConfig[]> {
|
|
6892
6885
|
options?: SpectrumOptions;
|
|
6886
|
+
providers: [...Providers];
|
|
6893
6887
|
telemetry?: boolean;
|
|
6894
6888
|
webhookSecret?: string;
|
|
6895
|
-
}
|
|
6889
|
+
}
|
|
6896
6890
|
declare function Spectrum<const Providers extends PlatformProviderConfig[]>(options: {
|
|
6897
6891
|
projectId: string;
|
|
6898
6892
|
projectSecret: string;
|
|
@@ -7289,14 +7283,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7289
7283
|
}, z.core.$strip>, z.ZodObject<{
|
|
7290
7284
|
type: z.ZodLiteral<"reply">;
|
|
7291
7285
|
content: z.ZodCustom<{
|
|
7292
|
-
type: "attachment";
|
|
7293
|
-
id: string;
|
|
7294
|
-
name: string;
|
|
7295
|
-
mimeType: string;
|
|
7296
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7297
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7298
|
-
size?: number | undefined;
|
|
7299
|
-
} | {
|
|
7300
7286
|
type: "contact";
|
|
7301
7287
|
user?: {
|
|
7302
7288
|
__platform: string;
|
|
@@ -7339,15 +7325,57 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7339
7325
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7340
7326
|
} | undefined;
|
|
7341
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;
|
|
7342
7336
|
} | {
|
|
7343
7337
|
type: "custom";
|
|
7344
7338
|
raw: unknown;
|
|
7339
|
+
} | {
|
|
7340
|
+
type: "voice";
|
|
7341
|
+
mimeType: string;
|
|
7342
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7343
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7344
|
+
id?: string | undefined;
|
|
7345
|
+
name?: string | undefined;
|
|
7346
|
+
duration?: number | undefined;
|
|
7347
|
+
size?: number | undefined;
|
|
7345
7348
|
} | {
|
|
7346
7349
|
type: "text";
|
|
7347
7350
|
text: string;
|
|
7348
7351
|
} | {
|
|
7349
7352
|
type: "markdown";
|
|
7350
7353
|
markdown: string;
|
|
7354
|
+
} | {
|
|
7355
|
+
type: "streamText";
|
|
7356
|
+
stream: () => AsyncIterable<string>;
|
|
7357
|
+
format?: "markdown" | "plain" | undefined;
|
|
7358
|
+
} | {
|
|
7359
|
+
type: "richlink";
|
|
7360
|
+
url: string;
|
|
7361
|
+
} | {
|
|
7362
|
+
type: "app";
|
|
7363
|
+
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
7364
|
+
layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
7365
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
7366
|
+
subcaption: z.ZodOptional<z.ZodString>;
|
|
7367
|
+
trailingCaption: z.ZodOptional<z.ZodString>;
|
|
7368
|
+
trailingSubcaption: z.ZodOptional<z.ZodString>;
|
|
7369
|
+
image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
7370
|
+
imageTitle: z.ZodOptional<z.ZodString>;
|
|
7371
|
+
imageSubtitle: z.ZodOptional<z.ZodString>;
|
|
7372
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
7373
|
+
}, z.core.$strip>>>;
|
|
7374
|
+
live?: boolean | undefined;
|
|
7375
|
+
} | {
|
|
7376
|
+
type: "reaction";
|
|
7377
|
+
emoji: string;
|
|
7378
|
+
target: Message<string, User, Space<unknown>>;
|
|
7351
7379
|
} | {
|
|
7352
7380
|
type: "group";
|
|
7353
7381
|
items: Message<string, User, Space<unknown>>[];
|
|
@@ -7371,40 +7399,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7371
7399
|
};
|
|
7372
7400
|
selected: boolean;
|
|
7373
7401
|
title: string;
|
|
7374
|
-
} | {
|
|
7375
|
-
type: "reaction";
|
|
7376
|
-
emoji: string;
|
|
7377
|
-
target: Message<string, User, Space<unknown>>;
|
|
7378
|
-
} | {
|
|
7379
|
-
type: "streamText";
|
|
7380
|
-
stream: () => AsyncIterable<string>;
|
|
7381
|
-
format?: "markdown" | "plain" | undefined;
|
|
7382
|
-
} | {
|
|
7383
|
-
type: "voice";
|
|
7384
|
-
mimeType: string;
|
|
7385
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7386
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7387
|
-
id?: string | undefined;
|
|
7388
|
-
name?: string | undefined;
|
|
7389
|
-
duration?: number | undefined;
|
|
7390
|
-
size?: number | undefined;
|
|
7391
|
-
} | {
|
|
7392
|
-
type: "richlink";
|
|
7393
|
-
url: string;
|
|
7394
|
-
} | {
|
|
7395
|
-
type: "app";
|
|
7396
|
-
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
7397
|
-
layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
7398
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
7399
|
-
subcaption: z.ZodOptional<z.ZodString>;
|
|
7400
|
-
trailingCaption: z.ZodOptional<z.ZodString>;
|
|
7401
|
-
trailingSubcaption: z.ZodOptional<z.ZodString>;
|
|
7402
|
-
image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
7403
|
-
imageTitle: z.ZodOptional<z.ZodString>;
|
|
7404
|
-
imageSubtitle: z.ZodOptional<z.ZodString>;
|
|
7405
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
7406
|
-
}, z.core.$strip>>>;
|
|
7407
|
-
live?: boolean | undefined;
|
|
7408
7402
|
} | {
|
|
7409
7403
|
type: "effect";
|
|
7410
7404
|
content: {
|
|
@@ -7447,14 +7441,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7447
7441
|
} | {
|
|
7448
7442
|
type: "leaveSpace";
|
|
7449
7443
|
}, {
|
|
7450
|
-
type: "attachment";
|
|
7451
|
-
id: string;
|
|
7452
|
-
name: string;
|
|
7453
|
-
mimeType: string;
|
|
7454
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7455
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7456
|
-
size?: number | undefined;
|
|
7457
|
-
} | {
|
|
7458
7444
|
type: "contact";
|
|
7459
7445
|
user?: {
|
|
7460
7446
|
__platform: string;
|
|
@@ -7497,15 +7483,57 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7497
7483
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7498
7484
|
} | undefined;
|
|
7499
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;
|
|
7500
7494
|
} | {
|
|
7501
7495
|
type: "custom";
|
|
7502
7496
|
raw: unknown;
|
|
7497
|
+
} | {
|
|
7498
|
+
type: "voice";
|
|
7499
|
+
mimeType: string;
|
|
7500
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7501
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7502
|
+
id?: string | undefined;
|
|
7503
|
+
name?: string | undefined;
|
|
7504
|
+
duration?: number | undefined;
|
|
7505
|
+
size?: number | undefined;
|
|
7503
7506
|
} | {
|
|
7504
7507
|
type: "text";
|
|
7505
7508
|
text: string;
|
|
7506
7509
|
} | {
|
|
7507
7510
|
type: "markdown";
|
|
7508
7511
|
markdown: string;
|
|
7512
|
+
} | {
|
|
7513
|
+
type: "streamText";
|
|
7514
|
+
stream: () => AsyncIterable<string>;
|
|
7515
|
+
format?: "markdown" | "plain" | undefined;
|
|
7516
|
+
} | {
|
|
7517
|
+
type: "richlink";
|
|
7518
|
+
url: string;
|
|
7519
|
+
} | {
|
|
7520
|
+
type: "app";
|
|
7521
|
+
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
7522
|
+
layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
7523
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
7524
|
+
subcaption: z.ZodOptional<z.ZodString>;
|
|
7525
|
+
trailingCaption: z.ZodOptional<z.ZodString>;
|
|
7526
|
+
trailingSubcaption: z.ZodOptional<z.ZodString>;
|
|
7527
|
+
image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
7528
|
+
imageTitle: z.ZodOptional<z.ZodString>;
|
|
7529
|
+
imageSubtitle: z.ZodOptional<z.ZodString>;
|
|
7530
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
7531
|
+
}, z.core.$strip>>>;
|
|
7532
|
+
live?: boolean | undefined;
|
|
7533
|
+
} | {
|
|
7534
|
+
type: "reaction";
|
|
7535
|
+
emoji: string;
|
|
7536
|
+
target: Message<string, User, Space<unknown>>;
|
|
7509
7537
|
} | {
|
|
7510
7538
|
type: "group";
|
|
7511
7539
|
items: Message<string, User, Space<unknown>>[];
|
|
@@ -7529,40 +7557,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7529
7557
|
};
|
|
7530
7558
|
selected: boolean;
|
|
7531
7559
|
title: string;
|
|
7532
|
-
} | {
|
|
7533
|
-
type: "reaction";
|
|
7534
|
-
emoji: string;
|
|
7535
|
-
target: Message<string, User, Space<unknown>>;
|
|
7536
|
-
} | {
|
|
7537
|
-
type: "streamText";
|
|
7538
|
-
stream: () => AsyncIterable<string>;
|
|
7539
|
-
format?: "markdown" | "plain" | undefined;
|
|
7540
|
-
} | {
|
|
7541
|
-
type: "voice";
|
|
7542
|
-
mimeType: string;
|
|
7543
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7544
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7545
|
-
id?: string | undefined;
|
|
7546
|
-
name?: string | undefined;
|
|
7547
|
-
duration?: number | undefined;
|
|
7548
|
-
size?: number | undefined;
|
|
7549
|
-
} | {
|
|
7550
|
-
type: "richlink";
|
|
7551
|
-
url: string;
|
|
7552
|
-
} | {
|
|
7553
|
-
type: "app";
|
|
7554
|
-
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
7555
|
-
layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
7556
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
7557
|
-
subcaption: z.ZodOptional<z.ZodString>;
|
|
7558
|
-
trailingCaption: z.ZodOptional<z.ZodString>;
|
|
7559
|
-
trailingSubcaption: z.ZodOptional<z.ZodString>;
|
|
7560
|
-
image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
7561
|
-
imageTitle: z.ZodOptional<z.ZodString>;
|
|
7562
|
-
imageSubtitle: z.ZodOptional<z.ZodString>;
|
|
7563
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
7564
|
-
}, z.core.$strip>>>;
|
|
7565
|
-
live?: boolean | undefined;
|
|
7566
7560
|
} | {
|
|
7567
7561
|
type: "effect";
|
|
7568
7562
|
content: {
|
|
@@ -7609,14 +7603,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7609
7603
|
}, z.core.$strip>, z.ZodObject<{
|
|
7610
7604
|
type: z.ZodLiteral<"edit">;
|
|
7611
7605
|
content: z.ZodCustom<{
|
|
7612
|
-
type: "attachment";
|
|
7613
|
-
id: string;
|
|
7614
|
-
name: string;
|
|
7615
|
-
mimeType: string;
|
|
7616
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7617
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7618
|
-
size?: number | undefined;
|
|
7619
|
-
} | {
|
|
7620
7606
|
type: "contact";
|
|
7621
7607
|
user?: {
|
|
7622
7608
|
__platform: string;
|
|
@@ -7659,15 +7645,57 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7659
7645
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7660
7646
|
} | undefined;
|
|
7661
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;
|
|
7662
7656
|
} | {
|
|
7663
7657
|
type: "custom";
|
|
7664
7658
|
raw: unknown;
|
|
7659
|
+
} | {
|
|
7660
|
+
type: "voice";
|
|
7661
|
+
mimeType: string;
|
|
7662
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7663
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7664
|
+
id?: string | undefined;
|
|
7665
|
+
name?: string | undefined;
|
|
7666
|
+
duration?: number | undefined;
|
|
7667
|
+
size?: number | undefined;
|
|
7665
7668
|
} | {
|
|
7666
7669
|
type: "text";
|
|
7667
7670
|
text: string;
|
|
7668
7671
|
} | {
|
|
7669
7672
|
type: "markdown";
|
|
7670
7673
|
markdown: string;
|
|
7674
|
+
} | {
|
|
7675
|
+
type: "streamText";
|
|
7676
|
+
stream: () => AsyncIterable<string>;
|
|
7677
|
+
format?: "markdown" | "plain" | undefined;
|
|
7678
|
+
} | {
|
|
7679
|
+
type: "richlink";
|
|
7680
|
+
url: string;
|
|
7681
|
+
} | {
|
|
7682
|
+
type: "app";
|
|
7683
|
+
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
7684
|
+
layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
7685
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
7686
|
+
subcaption: z.ZodOptional<z.ZodString>;
|
|
7687
|
+
trailingCaption: z.ZodOptional<z.ZodString>;
|
|
7688
|
+
trailingSubcaption: z.ZodOptional<z.ZodString>;
|
|
7689
|
+
image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
7690
|
+
imageTitle: z.ZodOptional<z.ZodString>;
|
|
7691
|
+
imageSubtitle: z.ZodOptional<z.ZodString>;
|
|
7692
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
7693
|
+
}, z.core.$strip>>>;
|
|
7694
|
+
live?: boolean | undefined;
|
|
7695
|
+
} | {
|
|
7696
|
+
type: "reaction";
|
|
7697
|
+
emoji: string;
|
|
7698
|
+
target: Message<string, User, Space<unknown>>;
|
|
7671
7699
|
} | {
|
|
7672
7700
|
type: "group";
|
|
7673
7701
|
items: Message<string, User, Space<unknown>>[];
|
|
@@ -7691,40 +7719,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7691
7719
|
};
|
|
7692
7720
|
selected: boolean;
|
|
7693
7721
|
title: string;
|
|
7694
|
-
} | {
|
|
7695
|
-
type: "reaction";
|
|
7696
|
-
emoji: string;
|
|
7697
|
-
target: Message<string, User, Space<unknown>>;
|
|
7698
|
-
} | {
|
|
7699
|
-
type: "streamText";
|
|
7700
|
-
stream: () => AsyncIterable<string>;
|
|
7701
|
-
format?: "markdown" | "plain" | undefined;
|
|
7702
|
-
} | {
|
|
7703
|
-
type: "voice";
|
|
7704
|
-
mimeType: string;
|
|
7705
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7706
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7707
|
-
id?: string | undefined;
|
|
7708
|
-
name?: string | undefined;
|
|
7709
|
-
duration?: number | undefined;
|
|
7710
|
-
size?: number | undefined;
|
|
7711
|
-
} | {
|
|
7712
|
-
type: "richlink";
|
|
7713
|
-
url: string;
|
|
7714
|
-
} | {
|
|
7715
|
-
type: "app";
|
|
7716
|
-
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
7717
|
-
layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
7718
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
7719
|
-
subcaption: z.ZodOptional<z.ZodString>;
|
|
7720
|
-
trailingCaption: z.ZodOptional<z.ZodString>;
|
|
7721
|
-
trailingSubcaption: z.ZodOptional<z.ZodString>;
|
|
7722
|
-
image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
7723
|
-
imageTitle: z.ZodOptional<z.ZodString>;
|
|
7724
|
-
imageSubtitle: z.ZodOptional<z.ZodString>;
|
|
7725
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
7726
|
-
}, z.core.$strip>>>;
|
|
7727
|
-
live?: boolean | undefined;
|
|
7728
7722
|
} | {
|
|
7729
7723
|
type: "effect";
|
|
7730
7724
|
content: {
|
|
@@ -7767,14 +7761,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7767
7761
|
} | {
|
|
7768
7762
|
type: "leaveSpace";
|
|
7769
7763
|
}, {
|
|
7770
|
-
type: "attachment";
|
|
7771
|
-
id: string;
|
|
7772
|
-
name: string;
|
|
7773
|
-
mimeType: string;
|
|
7774
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7775
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7776
|
-
size?: number | undefined;
|
|
7777
|
-
} | {
|
|
7778
7764
|
type: "contact";
|
|
7779
7765
|
user?: {
|
|
7780
7766
|
__platform: string;
|
|
@@ -7817,15 +7803,57 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7817
7803
|
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7818
7804
|
} | undefined;
|
|
7819
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;
|
|
7820
7814
|
} | {
|
|
7821
7815
|
type: "custom";
|
|
7822
7816
|
raw: unknown;
|
|
7817
|
+
} | {
|
|
7818
|
+
type: "voice";
|
|
7819
|
+
mimeType: string;
|
|
7820
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7821
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7822
|
+
id?: string | undefined;
|
|
7823
|
+
name?: string | undefined;
|
|
7824
|
+
duration?: number | undefined;
|
|
7825
|
+
size?: number | undefined;
|
|
7823
7826
|
} | {
|
|
7824
7827
|
type: "text";
|
|
7825
7828
|
text: string;
|
|
7826
7829
|
} | {
|
|
7827
7830
|
type: "markdown";
|
|
7828
7831
|
markdown: string;
|
|
7832
|
+
} | {
|
|
7833
|
+
type: "streamText";
|
|
7834
|
+
stream: () => AsyncIterable<string>;
|
|
7835
|
+
format?: "markdown" | "plain" | undefined;
|
|
7836
|
+
} | {
|
|
7837
|
+
type: "richlink";
|
|
7838
|
+
url: string;
|
|
7839
|
+
} | {
|
|
7840
|
+
type: "app";
|
|
7841
|
+
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
7842
|
+
layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
7843
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
7844
|
+
subcaption: z.ZodOptional<z.ZodString>;
|
|
7845
|
+
trailingCaption: z.ZodOptional<z.ZodString>;
|
|
7846
|
+
trailingSubcaption: z.ZodOptional<z.ZodString>;
|
|
7847
|
+
image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
7848
|
+
imageTitle: z.ZodOptional<z.ZodString>;
|
|
7849
|
+
imageSubtitle: z.ZodOptional<z.ZodString>;
|
|
7850
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
7851
|
+
}, z.core.$strip>>>;
|
|
7852
|
+
live?: boolean | undefined;
|
|
7853
|
+
} | {
|
|
7854
|
+
type: "reaction";
|
|
7855
|
+
emoji: string;
|
|
7856
|
+
target: Message<string, User, Space<unknown>>;
|
|
7829
7857
|
} | {
|
|
7830
7858
|
type: "group";
|
|
7831
7859
|
items: Message<string, User, Space<unknown>>[];
|
|
@@ -7849,40 +7877,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7849
7877
|
};
|
|
7850
7878
|
selected: boolean;
|
|
7851
7879
|
title: string;
|
|
7852
|
-
} | {
|
|
7853
|
-
type: "reaction";
|
|
7854
|
-
emoji: string;
|
|
7855
|
-
target: Message<string, User, Space<unknown>>;
|
|
7856
|
-
} | {
|
|
7857
|
-
type: "streamText";
|
|
7858
|
-
stream: () => AsyncIterable<string>;
|
|
7859
|
-
format?: "markdown" | "plain" | undefined;
|
|
7860
|
-
} | {
|
|
7861
|
-
type: "voice";
|
|
7862
|
-
mimeType: string;
|
|
7863
|
-
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7864
|
-
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7865
|
-
id?: string | undefined;
|
|
7866
|
-
name?: string | undefined;
|
|
7867
|
-
duration?: number | undefined;
|
|
7868
|
-
size?: number | undefined;
|
|
7869
|
-
} | {
|
|
7870
|
-
type: "richlink";
|
|
7871
|
-
url: string;
|
|
7872
|
-
} | {
|
|
7873
|
-
type: "app";
|
|
7874
|
-
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
7875
|
-
layout: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
7876
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
7877
|
-
subcaption: z.ZodOptional<z.ZodString>;
|
|
7878
|
-
trailingCaption: z.ZodOptional<z.ZodString>;
|
|
7879
|
-
trailingSubcaption: z.ZodOptional<z.ZodString>;
|
|
7880
|
-
image: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
7881
|
-
imageTitle: z.ZodOptional<z.ZodString>;
|
|
7882
|
-
imageSubtitle: z.ZodOptional<z.ZodString>;
|
|
7883
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
7884
|
-
}, z.core.$strip>>>;
|
|
7885
|
-
live?: boolean | undefined;
|
|
7886
7880
|
} | {
|
|
7887
7881
|
type: "effect";
|
|
7888
7882
|
content: {
|