@spectrum-ts/core 12.4.0 → 12.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -592,6 +592,14 @@ 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
|
+
} | {
|
|
595
603
|
type: "contact";
|
|
596
604
|
user?: {
|
|
597
605
|
__platform: string;
|
|
@@ -635,28 +643,17 @@ declare const editSchema: z.ZodObject<{
|
|
|
635
643
|
} | undefined;
|
|
636
644
|
raw?: unknown;
|
|
637
645
|
} | {
|
|
638
|
-
type: "
|
|
639
|
-
|
|
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;
|
|
646
|
+
type: "custom";
|
|
647
|
+
raw: unknown;
|
|
645
648
|
} | {
|
|
646
649
|
type: "text";
|
|
647
650
|
text: string;
|
|
648
651
|
} | {
|
|
649
652
|
type: "markdown";
|
|
650
653
|
markdown: string;
|
|
651
|
-
} | {
|
|
652
|
-
type: "custom";
|
|
653
|
-
raw: unknown;
|
|
654
654
|
} | {
|
|
655
655
|
type: "group";
|
|
656
656
|
items: Message<string, User, Space<unknown>>[];
|
|
657
|
-
} | {
|
|
658
|
-
type: "richlink";
|
|
659
|
-
url: string;
|
|
660
657
|
} | {
|
|
661
658
|
type: "poll";
|
|
662
659
|
title: string;
|
|
@@ -677,6 +674,10 @@ declare const editSchema: z.ZodObject<{
|
|
|
677
674
|
};
|
|
678
675
|
selected: boolean;
|
|
679
676
|
title: string;
|
|
677
|
+
} | {
|
|
678
|
+
type: "reaction";
|
|
679
|
+
emoji: string;
|
|
680
|
+
target: Message<string, User, Space<unknown>>;
|
|
680
681
|
} | {
|
|
681
682
|
type: "streamText";
|
|
682
683
|
stream: () => AsyncIterable<string>;
|
|
@@ -690,6 +691,9 @@ declare const editSchema: z.ZodObject<{
|
|
|
690
691
|
name?: string | undefined;
|
|
691
692
|
duration?: number | undefined;
|
|
692
693
|
size?: number | undefined;
|
|
694
|
+
} | {
|
|
695
|
+
type: "richlink";
|
|
696
|
+
url: string;
|
|
693
697
|
} | {
|
|
694
698
|
type: "app";
|
|
695
699
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -704,10 +708,6 @@ declare const editSchema: z.ZodObject<{
|
|
|
704
708
|
summary: z.ZodOptional<z.ZodString>;
|
|
705
709
|
}, z.core.$strip>>>;
|
|
706
710
|
live?: boolean | undefined;
|
|
707
|
-
} | {
|
|
708
|
-
type: "reaction";
|
|
709
|
-
emoji: string;
|
|
710
|
-
target: Message<string, User, Space<unknown>>;
|
|
711
711
|
} | {
|
|
712
712
|
type: "effect";
|
|
713
713
|
content: {
|
|
@@ -750,6 +750,14 @@ 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
|
+
} | {
|
|
753
761
|
type: "contact";
|
|
754
762
|
user?: {
|
|
755
763
|
__platform: string;
|
|
@@ -793,28 +801,17 @@ declare const editSchema: z.ZodObject<{
|
|
|
793
801
|
} | undefined;
|
|
794
802
|
raw?: unknown;
|
|
795
803
|
} | {
|
|
796
|
-
type: "
|
|
797
|
-
|
|
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;
|
|
804
|
+
type: "custom";
|
|
805
|
+
raw: unknown;
|
|
803
806
|
} | {
|
|
804
807
|
type: "text";
|
|
805
808
|
text: string;
|
|
806
809
|
} | {
|
|
807
810
|
type: "markdown";
|
|
808
811
|
markdown: string;
|
|
809
|
-
} | {
|
|
810
|
-
type: "custom";
|
|
811
|
-
raw: unknown;
|
|
812
812
|
} | {
|
|
813
813
|
type: "group";
|
|
814
814
|
items: Message<string, User, Space<unknown>>[];
|
|
815
|
-
} | {
|
|
816
|
-
type: "richlink";
|
|
817
|
-
url: string;
|
|
818
815
|
} | {
|
|
819
816
|
type: "poll";
|
|
820
817
|
title: string;
|
|
@@ -835,6 +832,10 @@ declare const editSchema: z.ZodObject<{
|
|
|
835
832
|
};
|
|
836
833
|
selected: boolean;
|
|
837
834
|
title: string;
|
|
835
|
+
} | {
|
|
836
|
+
type: "reaction";
|
|
837
|
+
emoji: string;
|
|
838
|
+
target: Message<string, User, Space<unknown>>;
|
|
838
839
|
} | {
|
|
839
840
|
type: "streamText";
|
|
840
841
|
stream: () => AsyncIterable<string>;
|
|
@@ -848,6 +849,9 @@ declare const editSchema: z.ZodObject<{
|
|
|
848
849
|
name?: string | undefined;
|
|
849
850
|
duration?: number | undefined;
|
|
850
851
|
size?: number | undefined;
|
|
852
|
+
} | {
|
|
853
|
+
type: "richlink";
|
|
854
|
+
url: string;
|
|
851
855
|
} | {
|
|
852
856
|
type: "app";
|
|
853
857
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -862,10 +866,6 @@ declare const editSchema: z.ZodObject<{
|
|
|
862
866
|
summary: z.ZodOptional<z.ZodString>;
|
|
863
867
|
}, z.core.$strip>>>;
|
|
864
868
|
live?: boolean | undefined;
|
|
865
|
-
} | {
|
|
866
|
-
type: "reaction";
|
|
867
|
-
emoji: string;
|
|
868
|
-
target: Message<string, User, Space<unknown>>;
|
|
869
869
|
} | {
|
|
870
870
|
type: "effect";
|
|
871
871
|
content: {
|
|
@@ -1138,6 +1138,14 @@ 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
|
+
} | {
|
|
1141
1149
|
type: "contact";
|
|
1142
1150
|
user?: {
|
|
1143
1151
|
__platform: string;
|
|
@@ -1181,28 +1189,17 @@ declare const replySchema: z.ZodObject<{
|
|
|
1181
1189
|
} | undefined;
|
|
1182
1190
|
raw?: unknown;
|
|
1183
1191
|
} | {
|
|
1184
|
-
type: "
|
|
1185
|
-
|
|
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;
|
|
1192
|
+
type: "custom";
|
|
1193
|
+
raw: unknown;
|
|
1191
1194
|
} | {
|
|
1192
1195
|
type: "text";
|
|
1193
1196
|
text: string;
|
|
1194
1197
|
} | {
|
|
1195
1198
|
type: "markdown";
|
|
1196
1199
|
markdown: string;
|
|
1197
|
-
} | {
|
|
1198
|
-
type: "custom";
|
|
1199
|
-
raw: unknown;
|
|
1200
1200
|
} | {
|
|
1201
1201
|
type: "group";
|
|
1202
1202
|
items: Message<string, User, Space<unknown>>[];
|
|
1203
|
-
} | {
|
|
1204
|
-
type: "richlink";
|
|
1205
|
-
url: string;
|
|
1206
1203
|
} | {
|
|
1207
1204
|
type: "poll";
|
|
1208
1205
|
title: string;
|
|
@@ -1223,6 +1220,10 @@ declare const replySchema: z.ZodObject<{
|
|
|
1223
1220
|
};
|
|
1224
1221
|
selected: boolean;
|
|
1225
1222
|
title: string;
|
|
1223
|
+
} | {
|
|
1224
|
+
type: "reaction";
|
|
1225
|
+
emoji: string;
|
|
1226
|
+
target: Message<string, User, Space<unknown>>;
|
|
1226
1227
|
} | {
|
|
1227
1228
|
type: "streamText";
|
|
1228
1229
|
stream: () => AsyncIterable<string>;
|
|
@@ -1236,6 +1237,9 @@ declare const replySchema: z.ZodObject<{
|
|
|
1236
1237
|
name?: string | undefined;
|
|
1237
1238
|
duration?: number | undefined;
|
|
1238
1239
|
size?: number | undefined;
|
|
1240
|
+
} | {
|
|
1241
|
+
type: "richlink";
|
|
1242
|
+
url: string;
|
|
1239
1243
|
} | {
|
|
1240
1244
|
type: "app";
|
|
1241
1245
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -1250,10 +1254,6 @@ declare const replySchema: z.ZodObject<{
|
|
|
1250
1254
|
summary: z.ZodOptional<z.ZodString>;
|
|
1251
1255
|
}, z.core.$strip>>>;
|
|
1252
1256
|
live?: boolean | undefined;
|
|
1253
|
-
} | {
|
|
1254
|
-
type: "reaction";
|
|
1255
|
-
emoji: string;
|
|
1256
|
-
target: Message<string, User, Space<unknown>>;
|
|
1257
1257
|
} | {
|
|
1258
1258
|
type: "effect";
|
|
1259
1259
|
content: {
|
|
@@ -1296,6 +1296,14 @@ 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
|
+
} | {
|
|
1299
1307
|
type: "contact";
|
|
1300
1308
|
user?: {
|
|
1301
1309
|
__platform: string;
|
|
@@ -1339,28 +1347,17 @@ declare const replySchema: z.ZodObject<{
|
|
|
1339
1347
|
} | undefined;
|
|
1340
1348
|
raw?: unknown;
|
|
1341
1349
|
} | {
|
|
1342
|
-
type: "
|
|
1343
|
-
|
|
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;
|
|
1350
|
+
type: "custom";
|
|
1351
|
+
raw: unknown;
|
|
1349
1352
|
} | {
|
|
1350
1353
|
type: "text";
|
|
1351
1354
|
text: string;
|
|
1352
1355
|
} | {
|
|
1353
1356
|
type: "markdown";
|
|
1354
1357
|
markdown: string;
|
|
1355
|
-
} | {
|
|
1356
|
-
type: "custom";
|
|
1357
|
-
raw: unknown;
|
|
1358
1358
|
} | {
|
|
1359
1359
|
type: "group";
|
|
1360
1360
|
items: Message<string, User, Space<unknown>>[];
|
|
1361
|
-
} | {
|
|
1362
|
-
type: "richlink";
|
|
1363
|
-
url: string;
|
|
1364
1361
|
} | {
|
|
1365
1362
|
type: "poll";
|
|
1366
1363
|
title: string;
|
|
@@ -1381,6 +1378,10 @@ declare const replySchema: z.ZodObject<{
|
|
|
1381
1378
|
};
|
|
1382
1379
|
selected: boolean;
|
|
1383
1380
|
title: string;
|
|
1381
|
+
} | {
|
|
1382
|
+
type: "reaction";
|
|
1383
|
+
emoji: string;
|
|
1384
|
+
target: Message<string, User, Space<unknown>>;
|
|
1384
1385
|
} | {
|
|
1385
1386
|
type: "streamText";
|
|
1386
1387
|
stream: () => AsyncIterable<string>;
|
|
@@ -1394,6 +1395,9 @@ declare const replySchema: z.ZodObject<{
|
|
|
1394
1395
|
name?: string | undefined;
|
|
1395
1396
|
duration?: number | undefined;
|
|
1396
1397
|
size?: number | undefined;
|
|
1398
|
+
} | {
|
|
1399
|
+
type: "richlink";
|
|
1400
|
+
url: string;
|
|
1397
1401
|
} | {
|
|
1398
1402
|
type: "app";
|
|
1399
1403
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -1408,10 +1412,6 @@ declare const replySchema: z.ZodObject<{
|
|
|
1408
1412
|
summary: z.ZodOptional<z.ZodString>;
|
|
1409
1413
|
}, z.core.$strip>>>;
|
|
1410
1414
|
live?: boolean | undefined;
|
|
1411
|
-
} | {
|
|
1412
|
-
type: "reaction";
|
|
1413
|
-
emoji: string;
|
|
1414
|
-
target: Message<string, User, Space<unknown>>;
|
|
1415
1415
|
} | {
|
|
1416
1416
|
type: "effect";
|
|
1417
1417
|
content: {
|
|
@@ -7283,6 +7283,14 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7283
7283
|
}, z.core.$strip>, z.ZodObject<{
|
|
7284
7284
|
type: z.ZodLiteral<"reply">;
|
|
7285
7285
|
content: z.ZodCustom<{
|
|
7286
|
+
type: "attachment";
|
|
7287
|
+
id: string;
|
|
7288
|
+
name: string;
|
|
7289
|
+
mimeType: string;
|
|
7290
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7291
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7292
|
+
size?: number | undefined;
|
|
7293
|
+
} | {
|
|
7286
7294
|
type: "contact";
|
|
7287
7295
|
user?: {
|
|
7288
7296
|
__platform: string;
|
|
@@ -7326,28 +7334,17 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7326
7334
|
} | undefined;
|
|
7327
7335
|
raw?: unknown;
|
|
7328
7336
|
} | {
|
|
7329
|
-
type: "
|
|
7330
|
-
|
|
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;
|
|
7337
|
+
type: "custom";
|
|
7338
|
+
raw: unknown;
|
|
7336
7339
|
} | {
|
|
7337
7340
|
type: "text";
|
|
7338
7341
|
text: string;
|
|
7339
7342
|
} | {
|
|
7340
7343
|
type: "markdown";
|
|
7341
7344
|
markdown: string;
|
|
7342
|
-
} | {
|
|
7343
|
-
type: "custom";
|
|
7344
|
-
raw: unknown;
|
|
7345
7345
|
} | {
|
|
7346
7346
|
type: "group";
|
|
7347
7347
|
items: Message<string, User, Space<unknown>>[];
|
|
7348
|
-
} | {
|
|
7349
|
-
type: "richlink";
|
|
7350
|
-
url: string;
|
|
7351
7348
|
} | {
|
|
7352
7349
|
type: "poll";
|
|
7353
7350
|
title: string;
|
|
@@ -7368,6 +7365,10 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7368
7365
|
};
|
|
7369
7366
|
selected: boolean;
|
|
7370
7367
|
title: string;
|
|
7368
|
+
} | {
|
|
7369
|
+
type: "reaction";
|
|
7370
|
+
emoji: string;
|
|
7371
|
+
target: Message<string, User, Space<unknown>>;
|
|
7371
7372
|
} | {
|
|
7372
7373
|
type: "streamText";
|
|
7373
7374
|
stream: () => AsyncIterable<string>;
|
|
@@ -7381,6 +7382,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7381
7382
|
name?: string | undefined;
|
|
7382
7383
|
duration?: number | undefined;
|
|
7383
7384
|
size?: number | undefined;
|
|
7385
|
+
} | {
|
|
7386
|
+
type: "richlink";
|
|
7387
|
+
url: string;
|
|
7384
7388
|
} | {
|
|
7385
7389
|
type: "app";
|
|
7386
7390
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -7395,10 +7399,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7395
7399
|
summary: z.ZodOptional<z.ZodString>;
|
|
7396
7400
|
}, z.core.$strip>>>;
|
|
7397
7401
|
live?: boolean | undefined;
|
|
7398
|
-
} | {
|
|
7399
|
-
type: "reaction";
|
|
7400
|
-
emoji: string;
|
|
7401
|
-
target: Message<string, User, Space<unknown>>;
|
|
7402
7402
|
} | {
|
|
7403
7403
|
type: "effect";
|
|
7404
7404
|
content: {
|
|
@@ -7441,6 +7441,14 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7441
7441
|
} | {
|
|
7442
7442
|
type: "leaveSpace";
|
|
7443
7443
|
}, {
|
|
7444
|
+
type: "attachment";
|
|
7445
|
+
id: string;
|
|
7446
|
+
name: string;
|
|
7447
|
+
mimeType: string;
|
|
7448
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7449
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7450
|
+
size?: number | undefined;
|
|
7451
|
+
} | {
|
|
7444
7452
|
type: "contact";
|
|
7445
7453
|
user?: {
|
|
7446
7454
|
__platform: string;
|
|
@@ -7484,28 +7492,17 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7484
7492
|
} | undefined;
|
|
7485
7493
|
raw?: unknown;
|
|
7486
7494
|
} | {
|
|
7487
|
-
type: "
|
|
7488
|
-
|
|
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;
|
|
7495
|
+
type: "custom";
|
|
7496
|
+
raw: unknown;
|
|
7494
7497
|
} | {
|
|
7495
7498
|
type: "text";
|
|
7496
7499
|
text: string;
|
|
7497
7500
|
} | {
|
|
7498
7501
|
type: "markdown";
|
|
7499
7502
|
markdown: string;
|
|
7500
|
-
} | {
|
|
7501
|
-
type: "custom";
|
|
7502
|
-
raw: unknown;
|
|
7503
7503
|
} | {
|
|
7504
7504
|
type: "group";
|
|
7505
7505
|
items: Message<string, User, Space<unknown>>[];
|
|
7506
|
-
} | {
|
|
7507
|
-
type: "richlink";
|
|
7508
|
-
url: string;
|
|
7509
7506
|
} | {
|
|
7510
7507
|
type: "poll";
|
|
7511
7508
|
title: string;
|
|
@@ -7526,6 +7523,10 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7526
7523
|
};
|
|
7527
7524
|
selected: boolean;
|
|
7528
7525
|
title: string;
|
|
7526
|
+
} | {
|
|
7527
|
+
type: "reaction";
|
|
7528
|
+
emoji: string;
|
|
7529
|
+
target: Message<string, User, Space<unknown>>;
|
|
7529
7530
|
} | {
|
|
7530
7531
|
type: "streamText";
|
|
7531
7532
|
stream: () => AsyncIterable<string>;
|
|
@@ -7539,6 +7540,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7539
7540
|
name?: string | undefined;
|
|
7540
7541
|
duration?: number | undefined;
|
|
7541
7542
|
size?: number | undefined;
|
|
7543
|
+
} | {
|
|
7544
|
+
type: "richlink";
|
|
7545
|
+
url: string;
|
|
7542
7546
|
} | {
|
|
7543
7547
|
type: "app";
|
|
7544
7548
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -7553,10 +7557,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7553
7557
|
summary: z.ZodOptional<z.ZodString>;
|
|
7554
7558
|
}, z.core.$strip>>>;
|
|
7555
7559
|
live?: boolean | undefined;
|
|
7556
|
-
} | {
|
|
7557
|
-
type: "reaction";
|
|
7558
|
-
emoji: string;
|
|
7559
|
-
target: Message<string, User, Space<unknown>>;
|
|
7560
7560
|
} | {
|
|
7561
7561
|
type: "effect";
|
|
7562
7562
|
content: {
|
|
@@ -7603,6 +7603,14 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7603
7603
|
}, z.core.$strip>, z.ZodObject<{
|
|
7604
7604
|
type: z.ZodLiteral<"edit">;
|
|
7605
7605
|
content: z.ZodCustom<{
|
|
7606
|
+
type: "attachment";
|
|
7607
|
+
id: string;
|
|
7608
|
+
name: string;
|
|
7609
|
+
mimeType: string;
|
|
7610
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7611
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7612
|
+
size?: number | undefined;
|
|
7613
|
+
} | {
|
|
7606
7614
|
type: "contact";
|
|
7607
7615
|
user?: {
|
|
7608
7616
|
__platform: string;
|
|
@@ -7646,28 +7654,17 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7646
7654
|
} | undefined;
|
|
7647
7655
|
raw?: unknown;
|
|
7648
7656
|
} | {
|
|
7649
|
-
type: "
|
|
7650
|
-
|
|
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;
|
|
7657
|
+
type: "custom";
|
|
7658
|
+
raw: unknown;
|
|
7656
7659
|
} | {
|
|
7657
7660
|
type: "text";
|
|
7658
7661
|
text: string;
|
|
7659
7662
|
} | {
|
|
7660
7663
|
type: "markdown";
|
|
7661
7664
|
markdown: string;
|
|
7662
|
-
} | {
|
|
7663
|
-
type: "custom";
|
|
7664
|
-
raw: unknown;
|
|
7665
7665
|
} | {
|
|
7666
7666
|
type: "group";
|
|
7667
7667
|
items: Message<string, User, Space<unknown>>[];
|
|
7668
|
-
} | {
|
|
7669
|
-
type: "richlink";
|
|
7670
|
-
url: string;
|
|
7671
7668
|
} | {
|
|
7672
7669
|
type: "poll";
|
|
7673
7670
|
title: string;
|
|
@@ -7688,6 +7685,10 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7688
7685
|
};
|
|
7689
7686
|
selected: boolean;
|
|
7690
7687
|
title: string;
|
|
7688
|
+
} | {
|
|
7689
|
+
type: "reaction";
|
|
7690
|
+
emoji: string;
|
|
7691
|
+
target: Message<string, User, Space<unknown>>;
|
|
7691
7692
|
} | {
|
|
7692
7693
|
type: "streamText";
|
|
7693
7694
|
stream: () => AsyncIterable<string>;
|
|
@@ -7701,6 +7702,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7701
7702
|
name?: string | undefined;
|
|
7702
7703
|
duration?: number | undefined;
|
|
7703
7704
|
size?: number | undefined;
|
|
7705
|
+
} | {
|
|
7706
|
+
type: "richlink";
|
|
7707
|
+
url: string;
|
|
7704
7708
|
} | {
|
|
7705
7709
|
type: "app";
|
|
7706
7710
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -7715,10 +7719,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7715
7719
|
summary: z.ZodOptional<z.ZodString>;
|
|
7716
7720
|
}, z.core.$strip>>>;
|
|
7717
7721
|
live?: boolean | undefined;
|
|
7718
|
-
} | {
|
|
7719
|
-
type: "reaction";
|
|
7720
|
-
emoji: string;
|
|
7721
|
-
target: Message<string, User, Space<unknown>>;
|
|
7722
7722
|
} | {
|
|
7723
7723
|
type: "effect";
|
|
7724
7724
|
content: {
|
|
@@ -7761,6 +7761,14 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7761
7761
|
} | {
|
|
7762
7762
|
type: "leaveSpace";
|
|
7763
7763
|
}, {
|
|
7764
|
+
type: "attachment";
|
|
7765
|
+
id: string;
|
|
7766
|
+
name: string;
|
|
7767
|
+
mimeType: string;
|
|
7768
|
+
read: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
7769
|
+
stream: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
|
|
7770
|
+
size?: number | undefined;
|
|
7771
|
+
} | {
|
|
7764
7772
|
type: "contact";
|
|
7765
7773
|
user?: {
|
|
7766
7774
|
__platform: string;
|
|
@@ -7804,28 +7812,17 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7804
7812
|
} | undefined;
|
|
7805
7813
|
raw?: unknown;
|
|
7806
7814
|
} | {
|
|
7807
|
-
type: "
|
|
7808
|
-
|
|
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;
|
|
7815
|
+
type: "custom";
|
|
7816
|
+
raw: unknown;
|
|
7814
7817
|
} | {
|
|
7815
7818
|
type: "text";
|
|
7816
7819
|
text: string;
|
|
7817
7820
|
} | {
|
|
7818
7821
|
type: "markdown";
|
|
7819
7822
|
markdown: string;
|
|
7820
|
-
} | {
|
|
7821
|
-
type: "custom";
|
|
7822
|
-
raw: unknown;
|
|
7823
7823
|
} | {
|
|
7824
7824
|
type: "group";
|
|
7825
7825
|
items: Message<string, User, Space<unknown>>[];
|
|
7826
|
-
} | {
|
|
7827
|
-
type: "richlink";
|
|
7828
|
-
url: string;
|
|
7829
7826
|
} | {
|
|
7830
7827
|
type: "poll";
|
|
7831
7828
|
title: string;
|
|
@@ -7846,6 +7843,10 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7846
7843
|
};
|
|
7847
7844
|
selected: boolean;
|
|
7848
7845
|
title: string;
|
|
7846
|
+
} | {
|
|
7847
|
+
type: "reaction";
|
|
7848
|
+
emoji: string;
|
|
7849
|
+
target: Message<string, User, Space<unknown>>;
|
|
7849
7850
|
} | {
|
|
7850
7851
|
type: "streamText";
|
|
7851
7852
|
stream: () => AsyncIterable<string>;
|
|
@@ -7859,6 +7860,9 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7859
7860
|
name?: string | undefined;
|
|
7860
7861
|
duration?: number | undefined;
|
|
7861
7862
|
size?: number | undefined;
|
|
7863
|
+
} | {
|
|
7864
|
+
type: "richlink";
|
|
7865
|
+
url: string;
|
|
7862
7866
|
} | {
|
|
7863
7867
|
type: "app";
|
|
7864
7868
|
url: z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodURL>>;
|
|
@@ -7873,10 +7877,6 @@ declare const contentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7873
7877
|
summary: z.ZodOptional<z.ZodString>;
|
|
7874
7878
|
}, z.core.$strip>>>;
|
|
7875
7879
|
live?: boolean | undefined;
|
|
7876
|
-
} | {
|
|
7877
|
-
type: "reaction";
|
|
7878
|
-
emoji: string;
|
|
7879
|
-
target: Message<string, User, Space<unknown>>;
|
|
7880
7880
|
} | {
|
|
7881
7881
|
type: "effect";
|
|
7882
7882
|
content: {
|
|
@@ -7959,4 +7959,4 @@ declare function attachment(input: AttachmentInput, options?: {
|
|
|
7959
7959
|
name?: string;
|
|
7960
7960
|
}): ContentBuilder;
|
|
7961
7961
|
//#endregion
|
|
7962
|
-
export { DedicatedTokenData as $,
|
|
7962
|
+
export { DedicatedTokenData as $, StreamText as $t, isFusorEvent as A, ContactEmail as An, Reply as At, PlatformUser as B, AvatarData as Bn, readSchema as Bt, FusorVerify as C, reaction as Cn, typing as Ct, WebhookRawResult as D, Contact as Dn, asRichlink as Dt, WebhookRawRequest as E, custom as En, Richlink as Et, PlatformInstance as F, asContact as Fn, rename as Ft, SpaceNamespace as G, buildPhotoAction as Gn, asPoll as Gt, ProviderMessageRecord as H, avatar as Hn, PollChoice as Ht, PlatformMessage as I, contact as In, renameSchema as It, broadcast as J, AppLayout as Jn, poll as Jt, Broadcaster as K, photoActionSchema as Kn, asPollOption as Kt, PlatformProviderConfig as L, AgentSender as Ln, Read as Lt, EventProducer as M, ContactName as Mn, reply as Mt, Platform as N, ContactOrg as Nn, replySchema as Nt, FusorEvent as O, ContactAddress as On, richlink as Ot, PlatformDef as P, ContactPhone as Pn, Rename as Pt, CloudPlatform as Q, appLayoutSchema as Qn, DeltaExtractor as Qt, PlatformRuntime as R, User as Rn, asRead as Rt, FusorRespond as S, asReaction as Sn, Typing as St, WebhookHandler as T, asCustom as Tn, text as Tt, ProviderUserRecord as U, avatarSchema as Un, PollChoiceInput as Ut, ProviderMessage as V, AvatarInput as Vn, Poll as Vt, SchemaMessage as W, PhotoInput as Wn, PollOption as Wt, stream as X, AppUrl as Xn, asMarkdown as Xt, mergeStreams as Y, AppOptions as Yn, Markdown as Yt, Store as Z, app as Zn, markdown as Zt, FusorClient as _, leaveSpaceSchema as _n, asVoice as _t, Content as a, groupSchema as an, ProjectProfile as at, FusorMessagesReturn as b, Reaction as bn, asUnsend as bt, fromVCard as c, Message as cn, SlackTokenData as ct, UnsupportedKind as d, LeaveSpace as dn, SubscriptionStatus as dt, StreamTextSource as en, FusorTokenData as et, Spectrum as f, MemberInput as fn, TokenData as ft, isFusorClient as g, leaveSpace as gn, Voice as gt, fusor as h, addMemberSchema as hn, EmojiKey as ht, attachment as i, group as in, ProjectData as it, AnyPlatformDef as j, ContactInput as jn, asReply as jt, fusorEvent as k, ContactDetails as kn, resolveContents as kt, toVCard as l, Space as ln, SpectrumCloudError as lt, definePlatform as m, addMember as mn, Emoji as mt, AttachmentInput as n, Group as nn, PlatformStatus as nt, ContentBuilder as o, Edit as on, SharedTokenData as ot, SpectrumInstance as p, RemoveMember as pn, cloud as pt, ManagedStream as q, App as qn, option as qt, asAttachment as r, asGroup as rn, PlatformsData as rt, ContentInput as s, edit as sn, SlackTeamMeta as st, Attachment as t, TextStreamOptions as tn, ImessageInfoData as tt, UnsupportedError as u, AddMember as un, SubscriptionData as ut, FusorMessages as v, removeMember as vn, voice as vt, FusorVerifyRequest as w, reactionSchema as wn, asText as wt, FusorReply as x, ReactionBuilder as xn, unsend as xt, FusorMessagesCtx as y, removeMemberSchema as yn, Unsend as yt, PlatformSpace as z, Avatar as zn, read as zt };
|
package/dist/authoring.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bt as readSchema, Dt as asRichlink, Fn as asContact, Gn as buildPhotoAction, Gt as asPoll, H as ProviderMessageRecord, It as renameSchema, Kn as photoActionSchema, Kt as asPollOption, Nt as replySchema, Rt as asRead, Sn as asReaction, Tn as asCustom, U as ProviderUserRecord, Un as avatarSchema, Wn as PhotoInput, Xt as asMarkdown, _n as leaveSpaceSchema, _t as asVoice, an as groupSchema, bt as asUnsend, hn as addMemberSchema, jt as asReply, q as ManagedStream, r as asAttachment, rn as asGroup, wn as reactionSchema, wt as asText, yn as removeMemberSchema } from "./attachment-DYRlQfUs.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";
|
|
@@ -192,4 +192,4 @@ interface TokenRenewalOptions {
|
|
|
192
192
|
}
|
|
193
193
|
declare const createTokenRenewal: (options: TokenRenewalOptions) => TokenRenewal;
|
|
194
194
|
//#endregion
|
|
195
|
-
export { type CloseableAsyncIterable, type LogAttrs, type LogLevel, type PhotoInput, type PhotonLogger, type ProviderMessageRecord, type ProviderUserRecord, type ResumableStreamItem, type SanitizeUrlOptions, type TokenRenewal, type TokenRenewalOptions, addMemberSchema, asAttachment, asContact, asCustom, asGroup, asMarkdown, asPoll, asPollOption, asReaction, asRead, asReply, asRichlink, asText, asUnsend, asVoice, avatarSchema, buildPhotoAction, createLogger, createTokenRenewal, ensureM4a, envAwareConfig, envFor, errorAttrs, fromEnv, groupSchema, leaveSpaceSchema, messageEffectSchema, photoActionSchema, reactionSchema, removeMemberSchema, renameSchema, renderInlineTokens, replySchema, resumableOrderedStream, sanitizeEmail, sanitizeErrorMessage, sanitizePhone, sanitizeUrl, setLogLevel, tracedFetch };
|
|
195
|
+
export { type CloseableAsyncIterable, type LogAttrs, type LogLevel, type PhotoInput, type PhotonLogger, type ProviderMessageRecord, type ProviderUserRecord, type ResumableStreamItem, type SanitizeUrlOptions, type TokenRenewal, type TokenRenewalOptions, addMemberSchema, asAttachment, asContact, asCustom, asGroup, asMarkdown, asPoll, asPollOption, asReaction, asRead, asReply, asRichlink, asText, asUnsend, asVoice, avatarSchema, buildPhotoAction, createLogger, createTokenRenewal, ensureM4a, envAwareConfig, envFor, errorAttrs, fromEnv, groupSchema, leaveSpaceSchema, messageEffectSchema, photoActionSchema, reactionSchema, readSchema, removeMemberSchema, renameSchema, renderInlineTokens, replySchema, resumableOrderedStream, sanitizeEmail, sanitizeErrorMessage, sanitizePhone, sanitizeUrl, setLogLevel, tracedFetch };
|
package/dist/authoring.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as replySchema, E as asRead, G as asGroup, H as asMarkdown, L as addMemberSchema, M as asPoll, N as asPollOption, O as readSchema, T as renameSchema, V as removeMemberSchema, W as markdownSchema, Y as asText, Z as textSchema, _ as asUnsend, a as createTokenRenewal, ct as buildPhotoAction, et as asCustom, f as envAwareConfig, ft as attachmentSchema, h as asVoice, i as stream, j as reactionSchema, k as asReaction, lt as photoActionSchema, m as fromEnv, mt as tracedFetch, nt as asContact, p as envFor, q as groupSchema, s as errorAttrs, st as avatarSchema, u as renderInlineTokens, ut as asAttachment, x as asReply, y as asRichlink, z as leaveSpaceSchema } from "./stream-BCNqsDU_.js";
|
|
2
2
|
import z from "zod";
|
|
3
3
|
import { createLogger, createLogger as createLogger$1, sanitizeEmail, sanitizeErrorMessage, sanitizePhone, sanitizeUrl, setLogLevel } from "@photon-ai/otel";
|
|
4
4
|
import { mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
|
|
@@ -422,4 +422,4 @@ const resumableOrderedStream = (options) => stream((emit, end) => {
|
|
|
422
422
|
};
|
|
423
423
|
});
|
|
424
424
|
//#endregion
|
|
425
|
-
export { addMemberSchema, asAttachment, asContact, asCustom, asGroup, asMarkdown, asPoll, asPollOption, asReaction, asRead, asReply, asRichlink, asText, asUnsend, asVoice, avatarSchema, buildPhotoAction, createLogger, createTokenRenewal, ensureM4a, envAwareConfig, envFor, errorAttrs, fromEnv, groupSchema, leaveSpaceSchema, messageEffectSchema, photoActionSchema, reactionSchema, removeMemberSchema, renameSchema, renderInlineTokens, replySchema, resumableOrderedStream, sanitizeEmail, sanitizeErrorMessage, sanitizePhone, sanitizeUrl, setLogLevel, tracedFetch };
|
|
425
|
+
export { addMemberSchema, asAttachment, asContact, asCustom, asGroup, asMarkdown, asPoll, asPollOption, asReaction, asRead, asReply, asRichlink, asText, asUnsend, asVoice, avatarSchema, buildPhotoAction, createLogger, createTokenRenewal, ensureM4a, envAwareConfig, envFor, errorAttrs, fromEnv, groupSchema, leaveSpaceSchema, messageEffectSchema, photoActionSchema, reactionSchema, readSchema, removeMemberSchema, renameSchema, renderInlineTokens, replySchema, resumableOrderedStream, sanitizeEmail, sanitizeErrorMessage, sanitizePhone, sanitizeUrl, setLogLevel, tracedFetch };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as DedicatedTokenData, $t as
|
|
1
|
+
import { $ as DedicatedTokenData, $t as StreamText, A as isFusorEvent, An as ContactEmail, At as Reply, B as PlatformUser, Bn as AvatarData, C as FusorVerify, Cn as reaction, Ct as typing, D as WebhookRawResult, Dn as Contact, E as WebhookRawRequest, En as custom, Et as Richlink, F as PlatformInstance, Ft as rename, G as SpaceNamespace, Hn as avatar, Ht as PollChoice, I as PlatformMessage, In as contact, J as broadcast, Jn as AppLayout, Jt as poll, K as Broadcaster, L as PlatformProviderConfig, Ln as AgentSender, Lt as Read, M as EventProducer, Mn as ContactName, Mt as reply, N as Platform, Nn as ContactOrg, O as FusorEvent, On as ContactAddress, Ot as richlink, P as PlatformDef, Pn as ContactPhone, Pt as Rename, Q as CloudPlatform, Qn as appLayoutSchema, Qt as DeltaExtractor, R as PlatformRuntime, Rn as User, S as FusorRespond, St as Typing, T as WebhookHandler, Tt as text, Ut as PollChoiceInput, V as ProviderMessage, Vn as AvatarInput, Vt as Poll, W as SchemaMessage, Wt as PollOption, X as stream, Xn as AppUrl, Y as mergeStreams, Yn as AppOptions, Yt as Markdown, Z as Store, Zn as app, Zt as markdown, _ as FusorClient, a as Content, at as ProjectProfile, b as FusorMessagesReturn, bn as Reaction, c as fromVCard, cn as Message, ct as SlackTokenData, d as UnsupportedKind, dn as LeaveSpace, dt as SubscriptionStatus, en as StreamTextSource, et as FusorTokenData, f as Spectrum, fn as MemberInput, ft as TokenData, g as isFusorClient, gn as leaveSpace, gt as Voice, h as fusor, ht as EmojiKey, i as attachment, in as group, it as ProjectData, j as AnyPlatformDef, jn as ContactInput, k as fusorEvent, kn as ContactDetails, kt as resolveContents, l as toVCard, ln as Space, lt as SpectrumCloudError, m as definePlatform, mn as addMember, mt as Emoji, n as AttachmentInput, nn as Group, nt as PlatformStatus, o as ContentBuilder, on as Edit, ot as SharedTokenData, p as SpectrumInstance, pn as RemoveMember, pt as cloud, q as ManagedStream, qn as App, qt as option, rt as PlatformsData, s as ContentInput, sn as edit, st as SlackTeamMeta, t as Attachment, tn as TextStreamOptions, tt as ImessageInfoData, u as UnsupportedError, un as AddMember, ut as SubscriptionData, v as FusorMessages, vn as removeMember, vt as voice, w as FusorVerifyRequest, x as FusorReply, xn as ReactionBuilder, xt as unsend, y as FusorMessagesCtx, yt as Unsend, z as PlatformSpace, zn as Avatar, zt as read } from "./attachment-DYRlQfUs.js";
|
|
2
2
|
export { type AddMember, type AgentSender, type AnyPlatformDef, type App, type AppLayout, type AppOptions, type AppUrl, type Attachment, type AttachmentInput, type Avatar, type AvatarData, type AvatarInput, type Broadcaster, type CloudPlatform, type Contact, type ContactAddress, type ContactDetails, type ContactEmail, type ContactInput, type ContactName, type ContactOrg, type ContactPhone, type Content, type ContentBuilder, type ContentInput, type DedicatedTokenData, type DeltaExtractor, type Edit, Emoji, type EmojiKey, type EventProducer, type FusorClient, type FusorEvent, type FusorMessages, type FusorMessagesCtx, type FusorMessagesReturn, type FusorReply, type FusorRespond, type FusorTokenData, type FusorVerify, type FusorVerifyRequest, type Group, type ImessageInfoData, type LeaveSpace, type ManagedStream, type Markdown, type MemberInput, type Message, type Platform, type PlatformDef, type PlatformInstance, type PlatformMessage, type PlatformProviderConfig, type PlatformRuntime, type PlatformSpace, type PlatformStatus, type PlatformUser, type PlatformsData, type Poll, type PollChoice, type PollChoiceInput, type PollOption, type ProjectData, type ProjectProfile, type ProviderMessage, type Reaction, type ReactionBuilder, type Read, type RemoveMember, type Rename, type Reply, type Richlink, type SchemaMessage, type SharedTokenData, type SlackTeamMeta, type SlackTokenData, type Space, type SpaceNamespace, Spectrum, SpectrumCloudError, type SpectrumInstance, type Store, type StreamText, type StreamTextSource, type SubscriptionData, type SubscriptionStatus, type TextStreamOptions, type TokenData, type Typing, type Unsend, UnsupportedError, type UnsupportedKind, type User, type Voice, type WebhookHandler, type WebhookRawRequest, type WebhookRawResult, addMember, app, appLayoutSchema, attachment, avatar, broadcast, cloud, contact, custom, definePlatform, edit, fromVCard, fusor, fusorEvent, group, isFusorClient, isFusorEvent, leaveSpace, markdown, mergeStreams, option, poll, reaction, read, removeMember, rename, reply, resolveContents, richlink, stream, text, toVCard, typing, unsend, voice };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as drainStreamText, A as reaction, B as removeMember, D as read, F as poll, H as asMarkdown, I as addMember, J as resolveContents, K as group, L as addMemberSchema, P as option, Q as StreamConsumedError, R as leaveSpace, S as reply, T as renameSchema, U as markdown, V as removeMemberSchema, X as text, Y as asText, a as createTokenRenewal, at as toVCard, b as richlink, c as senderAttrs, d as classifyIdentifier, dt as attachment, et as asCustom, f as envAwareConfig, g as voice, h as asVoice, i as stream, it as fromVCard, l as markdownToPlainText, mt as tracedFetch, n as createAsyncQueue, nt as asContact, o as contentAttrs, ot as avatar, p as envFor, pt as fetchUrlBytes, r as mergeStreams, rt as contact, s as errorAttrs, st as avatarSchema, t as broadcast, tt as custom, ut as asAttachment, v as unsend, w as rename, z as leaveSpaceSchema } from "./stream-BCNqsDU_.js";
|
|
2
2
|
import z from "zod";
|
|
3
3
|
import ogs from "open-graph-scraper";
|
|
4
4
|
import { createLogger, setLogLevel, setupOtel, withSpan } from "@photon-ai/otel";
|
|
@@ -2524,6 +2524,14 @@ const wrapNestedContent = (content, ctx, direction) => {
|
|
|
2524
2524
|
};
|
|
2525
2525
|
return content;
|
|
2526
2526
|
}
|
|
2527
|
+
if (content.type === "read") {
|
|
2528
|
+
const target = content.target;
|
|
2529
|
+
if (isRawProviderRecord(target)) return {
|
|
2530
|
+
...content,
|
|
2531
|
+
target: wrapProviderMessage(target, ctx, "outbound")
|
|
2532
|
+
};
|
|
2533
|
+
return content;
|
|
2534
|
+
}
|
|
2527
2535
|
if (content.type === "group") {
|
|
2528
2536
|
const items = content.items.map((item) => {
|
|
2529
2537
|
const raw = item;
|
|
@@ -3011,7 +3019,7 @@ function definePlatform(platformId, rawDef) {
|
|
|
3011
3019
|
}
|
|
3012
3020
|
//#endregion
|
|
3013
3021
|
//#region src/build-env.ts
|
|
3014
|
-
const SPECTRUM_SDK_VERSION = "12.
|
|
3022
|
+
const SPECTRUM_SDK_VERSION = "12.5.0";
|
|
3015
3023
|
//#endregion
|
|
3016
3024
|
//#region src/utils/provider-packages.ts
|
|
3017
3025
|
const OFFICIAL_PROVIDER_PACKAGES = {
|
|
@@ -3715,6 +3723,7 @@ const mapContent = (content, platform, spaceRef, ctx) => {
|
|
|
3715
3723
|
};
|
|
3716
3724
|
case "contact": return deserializeContact(raw);
|
|
3717
3725
|
case "reaction": return deserializeReaction(raw, spaceRef);
|
|
3726
|
+
case "read": return deserializeRead(raw, spaceRef);
|
|
3718
3727
|
case "reply": return deserializeReply(raw, platform, spaceRef, ctx);
|
|
3719
3728
|
case "group": return deserializeGroup(raw, platform, spaceRef, ctx);
|
|
3720
3729
|
case "attachment": return deserializeAttachment(raw, platform, spaceRef, ctx);
|
|
@@ -3786,6 +3795,13 @@ const deserializeReaction = (raw, spaceRef) => ({
|
|
|
3786
3795
|
emoji: asString(raw.emoji),
|
|
3787
3796
|
target: buildTargetRecord(raw.target, spaceRef)
|
|
3788
3797
|
});
|
|
3798
|
+
const deserializeRead = (raw, spaceRef) => ({
|
|
3799
|
+
type: "read",
|
|
3800
|
+
target: {
|
|
3801
|
+
...buildTargetRecord(raw.target, spaceRef),
|
|
3802
|
+
direction: "outbound"
|
|
3803
|
+
}
|
|
3804
|
+
});
|
|
3789
3805
|
const deserializeReply = (raw, platform, spaceRef, ctx) => ({
|
|
3790
3806
|
type: "reply",
|
|
3791
3807
|
content: isRecord(raw.content) ? deserializeContent(raw.content, platform, spaceRef, ctx) : asCustom(raw.content),
|
|
@@ -1825,4 +1825,4 @@ function broadcast(source) {
|
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
1827
|
//#endregion
|
|
1828
|
-
export {
|
|
1828
|
+
export { drainStreamText as $, reaction as A, removeMember as B, replySchema as C, read as D, asRead as E, poll as F, asGroup as G, asMarkdown as H, addMember as I, resolveContents as J, group as K, addMemberSchema as L, asPoll as M, asPollOption as N, readSchema as O, option as P, StreamConsumedError as Q, leaveSpace as R, reply as S, renameSchema as T, markdown as U, removeMemberSchema as V, markdownSchema as W, text as X, asText as Y, textSchema as Z, asUnsend as _, createTokenRenewal as a, toVCard as at, richlink as b, senderAttrs as c, buildPhotoAction as ct, classifyIdentifier as d, attachment as dt, asCustom as et, envAwareConfig as f, attachmentSchema as ft, voice as g, asVoice as h, stream as i, fromVCard as it, reactionSchema as j, asReaction as k, markdownToPlainText as l, photoActionSchema as lt, fromEnv as m, tracedFetch as mt, createAsyncQueue as n, asContact as nt, contentAttrs as o, avatar as ot, envFor as p, fetchUrlBytes as pt, groupSchema as q, mergeStreams as r, contact as rt, errorAttrs as s, avatarSchema as st, broadcast as t, custom as tt, renderInlineTokens as u, asAttachment as ut, unsend as v, rename as w, asReply as x, asRichlink as y, leaveSpaceSchema as z };
|