Skip to content

Commit 5b87afb

Browse files
committed
update examples
1 parent c559f16 commit 5b87afb

File tree

3 files changed

+57
-188
lines changed

3 files changed

+57
-188
lines changed

examples/chat-basic/convex/_generated/api.d.ts

Lines changed: 22 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export declare const components: {
6969
addFile: FunctionReference<
7070
"mutation",
7171
"internal",
72-
{ hash: string; storageId: string },
73-
{ fileId: string; storageIdUnused: boolean }
72+
{ filename?: string; hash: string; storageId: string },
73+
{ fileId: string; storageId: string }
7474
>;
7575
copyFile: FunctionReference<
7676
"mutation",
@@ -87,6 +87,7 @@ export declare const components: {
8787
files: Array<{
8888
_creationTime: number;
8989
_id: string;
90+
filename?: string;
9091
hash: string;
9192
refcount: number;
9293
storageId: string;
@@ -97,7 +98,7 @@ export declare const components: {
9798
useExistingFile: FunctionReference<
9899
"mutation",
99100
"internal",
100-
{ hash: string },
101+
{ filename?: string; hash: string },
101102
string | null
102103
>;
103104
};
@@ -125,12 +126,7 @@ export declare const components: {
125126
failPendingSteps?: boolean;
126127
messages: Array<{
127128
error?: string;
128-
files?: Array<{
129-
data?: ArrayBuffer | string;
130-
fileId?: string;
131-
mimeType: string;
132-
url?: string;
133-
}>;
129+
fileIds?: Array<string>;
134130
finishReason?:
135131
| "stop"
136132
| "length"
@@ -295,12 +291,8 @@ export declare const components: {
295291
agentName?: string;
296292
embeddingId?: string;
297293
error?: string;
298-
files?: Array<{
299-
data?: ArrayBuffer | string;
300-
fileId?: string;
301-
mimeType: string;
302-
url?: string;
303-
}>;
294+
fileIds?: Array<string>;
295+
files?: Array<any>;
304296
finishReason?:
305297
| "stop"
306298
| "length"
@@ -465,12 +457,8 @@ export declare const components: {
465457
agentName?: string;
466458
embeddingId?: string;
467459
error?: string;
468-
files?: Array<{
469-
data?: ArrayBuffer | string;
470-
fileId?: string;
471-
mimeType: string;
472-
url?: string;
473-
}>;
460+
fileIds?: Array<string>;
461+
files?: Array<any>;
474462
finishReason?:
475463
| "stop"
476464
| "length"
@@ -655,12 +643,7 @@ export declare const components: {
655643
};
656644
messages: Array<{
657645
error?: string;
658-
files?: Array<{
659-
data?: ArrayBuffer | string;
660-
fileId?: string;
661-
mimeType: string;
662-
url?: string;
663-
}>;
646+
fileIds?: Array<string>;
664647
finishReason?:
665648
| "stop"
666649
| "length"
@@ -1016,12 +999,8 @@ export declare const components: {
1016999
agentName?: string;
10171000
embeddingId?: string;
10181001
error?: string;
1019-
files?: Array<{
1020-
data?: ArrayBuffer | string;
1021-
fileId?: string;
1022-
mimeType: string;
1023-
url?: string;
1024-
}>;
1002+
fileIds?: Array<string>;
1003+
files?: Array<any>;
10251004
finishReason?:
10261005
| "stop"
10271006
| "length"
@@ -1169,12 +1148,8 @@ export declare const components: {
11691148
agentName?: string;
11701149
embeddingId?: string;
11711150
error?: string;
1172-
files?: Array<{
1173-
data?: ArrayBuffer | string;
1174-
fileId?: string;
1175-
mimeType: string;
1176-
url?: string;
1177-
}>;
1151+
fileIds?: Array<string>;
1152+
files?: Array<any>;
11781153
finishReason?:
11791154
| "stop"
11801155
| "length"
@@ -1319,12 +1294,8 @@ export declare const components: {
13191294
agentName?: string;
13201295
embeddingId?: string;
13211296
error?: string;
1322-
files?: Array<{
1323-
data?: ArrayBuffer | string;
1324-
fileId?: string;
1325-
mimeType: string;
1326-
url?: string;
1327-
}>;
1297+
fileIds?: Array<string>;
1298+
files?: Array<any>;
13281299
finishReason?:
13291300
| "stop"
13301301
| "length"
@@ -1515,12 +1486,8 @@ export declare const components: {
15151486
agentName?: string;
15161487
embeddingId?: string;
15171488
error?: string;
1518-
files?: Array<{
1519-
data?: ArrayBuffer | string;
1520-
fileId?: string;
1521-
mimeType: string;
1522-
url?: string;
1523-
}>;
1489+
fileIds?: Array<string>;
1490+
files?: Array<any>;
15241491
finishReason?:
15251492
| "stop"
15261493
| "length"
@@ -1709,12 +1676,8 @@ export declare const components: {
17091676
agentName?: string;
17101677
embeddingId?: string;
17111678
error?: string;
1712-
files?: Array<{
1713-
data?: ArrayBuffer | string;
1714-
fileId?: string;
1715-
mimeType: string;
1716-
url?: string;
1717-
}>;
1679+
fileIds?: Array<string>;
1680+
files?: Array<any>;
17181681
finishReason?:
17191682
| "stop"
17201683
| "length"
@@ -1862,12 +1825,8 @@ export declare const components: {
18621825
agentName?: string;
18631826
embeddingId?: string;
18641827
error?: string;
1865-
files?: Array<{
1866-
data?: ArrayBuffer | string;
1867-
fileId?: string;
1868-
mimeType: string;
1869-
url?: string;
1870-
}>;
1828+
fileIds?: Array<string>;
1829+
files?: Array<any>;
18711830
finishReason?:
18721831
| "stop"
18731832
| "length"

examples/chat-streaming/convex/_generated/api.d.ts

Lines changed: 14 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export declare const components: {
6969
addFile: FunctionReference<
7070
"mutation",
7171
"internal",
72-
{ hash: string; storageId: string },
73-
{ fileId: string; storageIdUnused: boolean }
72+
{ filename?: string; hash: string; storageId: string },
73+
{ fileId: string; storageId: string }
7474
>;
7575
copyFile: FunctionReference<
7676
"mutation",
@@ -87,6 +87,7 @@ export declare const components: {
8787
files: Array<{
8888
_creationTime: number;
8989
_id: string;
90+
filename?: string;
9091
hash: string;
9192
refcount: number;
9293
storageId: string;
@@ -97,7 +98,7 @@ export declare const components: {
9798
useExistingFile: FunctionReference<
9899
"mutation",
99100
"internal",
100-
{ hash: string },
101+
{ filename?: string; hash: string },
101102
string | null
102103
>;
103104
};
@@ -125,12 +126,7 @@ export declare const components: {
125126
failPendingSteps?: boolean;
126127
messages: Array<{
127128
error?: string;
128-
files?: Array<{
129-
data?: ArrayBuffer | string;
130-
fileId?: string;
131-
mimeType: string;
132-
url?: string;
133-
}>;
129+
fileIds?: Array<string>;
134130
finishReason?:
135131
| "stop"
136132
| "length"
@@ -295,12 +291,7 @@ export declare const components: {
295291
agentName?: string;
296292
embeddingId?: string;
297293
error?: string;
298-
files?: Array<{
299-
data?: ArrayBuffer | string;
300-
fileId?: string;
301-
mimeType: string;
302-
url?: string;
303-
}>;
294+
fileIds?: Array<string>;
304295
finishReason?:
305296
| "stop"
306297
| "length"
@@ -465,12 +456,7 @@ export declare const components: {
465456
agentName?: string;
466457
embeddingId?: string;
467458
error?: string;
468-
files?: Array<{
469-
data?: ArrayBuffer | string;
470-
fileId?: string;
471-
mimeType: string;
472-
url?: string;
473-
}>;
459+
fileIds?: Array<string>;
474460
finishReason?:
475461
| "stop"
476462
| "length"
@@ -655,12 +641,7 @@ export declare const components: {
655641
};
656642
messages: Array<{
657643
error?: string;
658-
files?: Array<{
659-
data?: ArrayBuffer | string;
660-
fileId?: string;
661-
mimeType: string;
662-
url?: string;
663-
}>;
644+
fileIds?: Array<string>;
664645
finishReason?:
665646
| "stop"
666647
| "length"
@@ -1016,12 +997,7 @@ export declare const components: {
1016997
agentName?: string;
1017998
embeddingId?: string;
1018999
error?: string;
1019-
files?: Array<{
1020-
data?: ArrayBuffer | string;
1021-
fileId?: string;
1022-
mimeType: string;
1023-
url?: string;
1024-
}>;
1000+
fileIds?: Array<string>;
10251001
finishReason?:
10261002
| "stop"
10271003
| "length"
@@ -1169,12 +1145,7 @@ export declare const components: {
11691145
agentName?: string;
11701146
embeddingId?: string;
11711147
error?: string;
1172-
files?: Array<{
1173-
data?: ArrayBuffer | string;
1174-
fileId?: string;
1175-
mimeType: string;
1176-
url?: string;
1177-
}>;
1148+
fileIds?: Array<string>;
11781149
finishReason?:
11791150
| "stop"
11801151
| "length"
@@ -1319,12 +1290,7 @@ export declare const components: {
13191290
agentName?: string;
13201291
embeddingId?: string;
13211292
error?: string;
1322-
files?: Array<{
1323-
data?: ArrayBuffer | string;
1324-
fileId?: string;
1325-
mimeType: string;
1326-
url?: string;
1327-
}>;
1293+
fileIds?: Array<string>;
13281294
finishReason?:
13291295
| "stop"
13301296
| "length"
@@ -1515,12 +1481,7 @@ export declare const components: {
15151481
agentName?: string;
15161482
embeddingId?: string;
15171483
error?: string;
1518-
files?: Array<{
1519-
data?: ArrayBuffer | string;
1520-
fileId?: string;
1521-
mimeType: string;
1522-
url?: string;
1523-
}>;
1484+
fileIds?: Array<string>;
15241485
finishReason?:
15251486
| "stop"
15261487
| "length"
@@ -1709,12 +1670,7 @@ export declare const components: {
17091670
agentName?: string;
17101671
embeddingId?: string;
17111672
error?: string;
1712-
files?: Array<{
1713-
data?: ArrayBuffer | string;
1714-
fileId?: string;
1715-
mimeType: string;
1716-
url?: string;
1717-
}>;
1673+
fileIds?: Array<string>;
17181674
finishReason?:
17191675
| "stop"
17201676
| "length"
@@ -1862,12 +1818,7 @@ export declare const components: {
18621818
agentName?: string;
18631819
embeddingId?: string;
18641820
error?: string;
1865-
files?: Array<{
1866-
data?: ArrayBuffer | string;
1867-
fileId?: string;
1868-
mimeType: string;
1869-
url?: string;
1870-
}>;
1821+
fileIds?: Array<string>;
18711822
finishReason?:
18721823
| "stop"
18731824
| "length"

0 commit comments

Comments
 (0)