@convex-dev/agent 0.1.9 → 0.1.10-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/client/index.d.ts +8 -7
- package/dist/commonjs/client/index.d.ts.map +1 -1
- package/dist/commonjs/client/index.js +2 -0
- package/dist/commonjs/client/index.js.map +1 -1
- package/dist/commonjs/client/streaming.d.ts.map +1 -1
- package/dist/commonjs/client/streaming.js +7 -1
- package/dist/commonjs/client/streaming.js.map +1 -1
- package/dist/commonjs/component/_generated/api.d.ts +12 -1
- package/dist/commonjs/component/messages.d.ts +30 -30
- package/dist/commonjs/component/schema.d.ts +84 -74
- package/dist/commonjs/component/schema.d.ts.map +1 -1
- package/dist/commonjs/component/schema.js +3 -2
- package/dist/commonjs/component/schema.js.map +1 -1
- package/dist/commonjs/component/streams.d.ts +7 -0
- package/dist/commonjs/component/streams.d.ts.map +1 -1
- package/dist/commonjs/component/streams.js +55 -18
- package/dist/commonjs/component/streams.js.map +1 -1
- package/dist/commonjs/component/threads.d.ts +8 -8
- package/dist/commonjs/react/deltas.d.ts.map +1 -1
- package/dist/commonjs/react/deltas.js +2 -2
- package/dist/commonjs/react/deltas.js.map +1 -1
- package/dist/commonjs/react/index.d.ts +4 -2
- package/dist/commonjs/react/index.d.ts.map +1 -1
- package/dist/commonjs/react/index.js +22 -9
- package/dist/commonjs/react/index.js.map +1 -1
- package/dist/commonjs/react/optimisticallySendMessage.js +1 -1
- package/dist/commonjs/react/optimisticallySendMessage.js.map +1 -1
- package/dist/commonjs/validators.d.ts +15 -10
- package/dist/commonjs/validators.d.ts.map +1 -1
- package/dist/commonjs/validators.js +2 -0
- package/dist/commonjs/validators.js.map +1 -1
- package/dist/commonjs.tsbuildinfo +1 -1
- package/dist/esm/client/index.d.ts +8 -7
- package/dist/esm/client/index.d.ts.map +1 -1
- package/dist/esm/client/index.js +2 -0
- package/dist/esm/client/index.js.map +1 -1
- package/dist/esm/client/streaming.d.ts.map +1 -1
- package/dist/esm/client/streaming.js +7 -1
- package/dist/esm/client/streaming.js.map +1 -1
- package/dist/esm/component/_generated/api.d.ts +12 -1
- package/dist/esm/component/messages.d.ts +30 -30
- package/dist/esm/component/schema.d.ts +84 -74
- package/dist/esm/component/schema.d.ts.map +1 -1
- package/dist/esm/component/schema.js +3 -2
- package/dist/esm/component/schema.js.map +1 -1
- package/dist/esm/component/streams.d.ts +7 -0
- package/dist/esm/component/streams.d.ts.map +1 -1
- package/dist/esm/component/streams.js +55 -18
- package/dist/esm/component/streams.js.map +1 -1
- package/dist/esm/component/threads.d.ts +8 -8
- package/dist/esm/react/deltas.d.ts.map +1 -1
- package/dist/esm/react/deltas.js +2 -2
- package/dist/esm/react/deltas.js.map +1 -1
- package/dist/esm/react/index.d.ts +4 -2
- package/dist/esm/react/index.d.ts.map +1 -1
- package/dist/esm/react/index.js +22 -9
- package/dist/esm/react/index.js.map +1 -1
- package/dist/esm/react/optimisticallySendMessage.js +1 -1
- package/dist/esm/react/optimisticallySendMessage.js.map +1 -1
- package/dist/esm/validators.d.ts +15 -10
- package/dist/esm/validators.d.ts.map +1 -1
- package/dist/esm/validators.js +2 -0
- package/dist/esm/validators.js.map +1 -1
- package/dist/esm.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/client/index.ts +4 -0
- package/src/client/streaming.ts +7 -1
- package/src/component/_generated/api.d.ts +12 -1
- package/src/component/schema.ts +3 -2
- package/src/component/streams.ts +91 -35
- package/src/react/deltas.ts +4 -2
- package/src/react/index.ts +23 -11
- package/src/react/optimisticallySendMessage.ts +1 -1
- package/src/validators.ts +6 -0
|
@@ -395,7 +395,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
395
395
|
type: "other";
|
|
396
396
|
message: string;
|
|
397
397
|
})[] | undefined;
|
|
398
|
-
finishReason?: "
|
|
398
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
399
399
|
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
400
400
|
stepId?: string | undefined;
|
|
401
401
|
status: "pending" | "success" | "failed";
|
|
@@ -953,7 +953,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
953
953
|
type: import("convex/values").VLiteral<"other", "required">;
|
|
954
954
|
message: import("convex/values").VString<string, "required">;
|
|
955
955
|
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
956
|
-
finishReason: import("convex/values").VUnion<"
|
|
956
|
+
finishReason: import("convex/values").VUnion<"error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
|
|
957
957
|
parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages"> | undefined, "optional">;
|
|
958
958
|
stepId: import("convex/values").VString<string | undefined, "optional">;
|
|
959
959
|
files: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
|
|
@@ -980,11 +980,12 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
980
980
|
kind: "streaming";
|
|
981
981
|
lastHeartbeat: number;
|
|
982
982
|
} | {
|
|
983
|
+
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
983
984
|
kind: "finished";
|
|
984
985
|
endedAt: number;
|
|
985
986
|
} | {
|
|
986
|
-
|
|
987
|
-
|
|
987
|
+
kind: "aborted";
|
|
988
|
+
reason: string;
|
|
988
989
|
};
|
|
989
990
|
}, {
|
|
990
991
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -1005,11 +1006,12 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1005
1006
|
kind: "streaming";
|
|
1006
1007
|
lastHeartbeat: number;
|
|
1007
1008
|
} | {
|
|
1009
|
+
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
1008
1010
|
kind: "finished";
|
|
1009
1011
|
endedAt: number;
|
|
1010
1012
|
} | {
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
+
kind: "aborted";
|
|
1014
|
+
reason: string;
|
|
1013
1015
|
}, [import("convex/values").VObject<{
|
|
1014
1016
|
timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
1015
1017
|
kind: "streaming";
|
|
@@ -1019,19 +1021,21 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1019
1021
|
lastHeartbeat: import("convex/values").VFloat64<number, "required">;
|
|
1020
1022
|
timeoutFnId: import("convex/values").VId<import("convex/values").GenericId<"_scheduled_functions"> | undefined, "optional">;
|
|
1021
1023
|
}, "required", "kind" | "lastHeartbeat" | "timeoutFnId">, import("convex/values").VObject<{
|
|
1024
|
+
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
1022
1025
|
kind: "finished";
|
|
1023
1026
|
endedAt: number;
|
|
1024
1027
|
}, {
|
|
1025
1028
|
kind: import("convex/values").VLiteral<"finished", "required">;
|
|
1026
1029
|
endedAt: import("convex/values").VFloat64<number, "required">;
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
kind: "
|
|
1030
|
+
cleanupFnId: import("convex/values").VId<import("convex/values").GenericId<"_scheduled_functions"> | undefined, "optional">;
|
|
1031
|
+
}, "required", "kind" | "endedAt" | "cleanupFnId">, import("convex/values").VObject<{
|
|
1032
|
+
kind: "aborted";
|
|
1033
|
+
reason: string;
|
|
1030
1034
|
}, {
|
|
1031
|
-
kind: import("convex/values").VLiteral<"
|
|
1032
|
-
|
|
1033
|
-
}, "required", "
|
|
1034
|
-
}, "required", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.
|
|
1035
|
+
kind: import("convex/values").VLiteral<"aborted", "required">;
|
|
1036
|
+
reason: import("convex/values").VString<string, "required">;
|
|
1037
|
+
}, "required", "kind" | "reason">], "required", "kind" | "lastHeartbeat" | "timeoutFnId" | "endedAt" | "cleanupFnId" | "reason">;
|
|
1038
|
+
}, "required", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt" | "state.cleanupFnId" | "state.reason">, {
|
|
1035
1039
|
threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
|
|
1036
1040
|
}, {}, {}>;
|
|
1037
1041
|
streamDeltas: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -1352,7 +1356,7 @@ export declare const vv: {
|
|
|
1352
1356
|
order?: number | undefined;
|
|
1353
1357
|
status: "active" | "archived";
|
|
1354
1358
|
};
|
|
1355
|
-
fieldPaths: "
|
|
1359
|
+
fieldPaths: ("status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order" | "_creationTime") | "_id";
|
|
1356
1360
|
indexes: {
|
|
1357
1361
|
userId: ["userId", "_creationTime"];
|
|
1358
1362
|
by_id: ["_id"];
|
|
@@ -1373,7 +1377,7 @@ export declare const vv: {
|
|
|
1373
1377
|
table: string;
|
|
1374
1378
|
vector: number[];
|
|
1375
1379
|
};
|
|
1376
|
-
fieldPaths: "_id" | ("
|
|
1380
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1377
1381
|
indexes: {
|
|
1378
1382
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1379
1383
|
by_id: ["_id"];
|
|
@@ -1400,7 +1404,7 @@ export declare const vv: {
|
|
|
1400
1404
|
table: string;
|
|
1401
1405
|
vector: number[];
|
|
1402
1406
|
};
|
|
1403
|
-
fieldPaths: "_id" | ("
|
|
1407
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1404
1408
|
indexes: {
|
|
1405
1409
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1406
1410
|
by_id: ["_id"];
|
|
@@ -1427,7 +1431,7 @@ export declare const vv: {
|
|
|
1427
1431
|
table: string;
|
|
1428
1432
|
vector: number[];
|
|
1429
1433
|
};
|
|
1430
|
-
fieldPaths: "_id" | ("
|
|
1434
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1431
1435
|
indexes: {
|
|
1432
1436
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1433
1437
|
by_id: ["_id"];
|
|
@@ -1454,7 +1458,7 @@ export declare const vv: {
|
|
|
1454
1458
|
table: string;
|
|
1455
1459
|
vector: number[];
|
|
1456
1460
|
};
|
|
1457
|
-
fieldPaths: "_id" | ("
|
|
1461
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1458
1462
|
indexes: {
|
|
1459
1463
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1460
1464
|
by_id: ["_id"];
|
|
@@ -1481,7 +1485,7 @@ export declare const vv: {
|
|
|
1481
1485
|
table: string;
|
|
1482
1486
|
vector: number[];
|
|
1483
1487
|
};
|
|
1484
|
-
fieldPaths: "_id" | ("
|
|
1488
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1485
1489
|
indexes: {
|
|
1486
1490
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1487
1491
|
by_id: ["_id"];
|
|
@@ -1508,7 +1512,7 @@ export declare const vv: {
|
|
|
1508
1512
|
table: string;
|
|
1509
1513
|
vector: number[];
|
|
1510
1514
|
};
|
|
1511
|
-
fieldPaths: "_id" | ("
|
|
1515
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1512
1516
|
indexes: {
|
|
1513
1517
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1514
1518
|
by_id: ["_id"];
|
|
@@ -1535,7 +1539,7 @@ export declare const vv: {
|
|
|
1535
1539
|
table: string;
|
|
1536
1540
|
vector: number[];
|
|
1537
1541
|
};
|
|
1538
|
-
fieldPaths: "_id" | ("
|
|
1542
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1539
1543
|
indexes: {
|
|
1540
1544
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1541
1545
|
by_id: ["_id"];
|
|
@@ -1562,7 +1566,7 @@ export declare const vv: {
|
|
|
1562
1566
|
table: string;
|
|
1563
1567
|
vector: number[];
|
|
1564
1568
|
};
|
|
1565
|
-
fieldPaths: "_id" | ("
|
|
1569
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1566
1570
|
indexes: {
|
|
1567
1571
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1568
1572
|
by_id: ["_id"];
|
|
@@ -1589,7 +1593,7 @@ export declare const vv: {
|
|
|
1589
1593
|
table: string;
|
|
1590
1594
|
vector: number[];
|
|
1591
1595
|
};
|
|
1592
|
-
fieldPaths: "_id" | ("
|
|
1596
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1593
1597
|
indexes: {
|
|
1594
1598
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1595
1599
|
by_id: ["_id"];
|
|
@@ -1616,7 +1620,7 @@ export declare const vv: {
|
|
|
1616
1620
|
table: string;
|
|
1617
1621
|
vector: number[];
|
|
1618
1622
|
};
|
|
1619
|
-
fieldPaths: "_id" | ("
|
|
1623
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1620
1624
|
indexes: {
|
|
1621
1625
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1622
1626
|
by_id: ["_id"];
|
|
@@ -1642,7 +1646,7 @@ export declare const vv: {
|
|
|
1642
1646
|
refcount: number;
|
|
1643
1647
|
lastTouchedAt: number;
|
|
1644
1648
|
};
|
|
1645
|
-
fieldPaths:
|
|
1649
|
+
fieldPaths: ("_creationTime" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt") | "_id";
|
|
1646
1650
|
indexes: {
|
|
1647
1651
|
hash: ["hash", "_creationTime"];
|
|
1648
1652
|
refcount: ["refcount", "_creationTime"];
|
|
@@ -1774,7 +1778,7 @@ export declare const vv: {
|
|
|
1774
1778
|
type: "other";
|
|
1775
1779
|
message: string;
|
|
1776
1780
|
})[] | undefined;
|
|
1777
|
-
finishReason?: "
|
|
1781
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1778
1782
|
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
1779
1783
|
stepId?: string | undefined;
|
|
1780
1784
|
status: "pending" | "success" | "failed";
|
|
@@ -1783,7 +1787,7 @@ export declare const vv: {
|
|
|
1783
1787
|
stepOrder: number;
|
|
1784
1788
|
tool: boolean;
|
|
1785
1789
|
};
|
|
1786
|
-
fieldPaths:
|
|
1790
|
+
fieldPaths: ("id" | "status" | "userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | `providerMetadata.${string}`) | "_id";
|
|
1787
1791
|
indexes: {
|
|
1788
1792
|
threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
1789
1793
|
embeddingId: ["embeddingId", "_creationTime"];
|
|
@@ -1815,14 +1819,15 @@ export declare const vv: {
|
|
|
1815
1819
|
kind: "streaming";
|
|
1816
1820
|
lastHeartbeat: number;
|
|
1817
1821
|
} | {
|
|
1822
|
+
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
1818
1823
|
kind: "finished";
|
|
1819
1824
|
endedAt: number;
|
|
1820
1825
|
} | {
|
|
1821
|
-
|
|
1822
|
-
|
|
1826
|
+
kind: "aborted";
|
|
1827
|
+
reason: string;
|
|
1823
1828
|
};
|
|
1824
1829
|
};
|
|
1825
|
-
fieldPaths:
|
|
1830
|
+
fieldPaths: ("userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt" | "state.cleanupFnId" | "state.reason") | "_id";
|
|
1826
1831
|
indexes: {
|
|
1827
1832
|
threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
|
|
1828
1833
|
by_id: ["_id"];
|
|
@@ -1886,7 +1891,7 @@ export declare const vv: {
|
|
|
1886
1891
|
argsTextDelta: string;
|
|
1887
1892
|
})[];
|
|
1888
1893
|
};
|
|
1889
|
-
fieldPaths:
|
|
1894
|
+
fieldPaths: ("_creationTime" | "streamId" | "start" | "end" | "parts") | "_id";
|
|
1890
1895
|
indexes: {
|
|
1891
1896
|
streamId_start_end: ["streamId", "start", "end", "_creationTime"];
|
|
1892
1897
|
by_id: ["_id"];
|
|
@@ -1904,7 +1909,7 @@ export declare const vv: {
|
|
|
1904
1909
|
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
1905
1910
|
memory: string;
|
|
1906
1911
|
};
|
|
1907
|
-
fieldPaths: "
|
|
1912
|
+
fieldPaths: ("userId" | "_creationTime" | "threadId" | "embeddingId" | "memory") | "_id";
|
|
1908
1913
|
indexes: {
|
|
1909
1914
|
threadId: ["threadId", "_creationTime"];
|
|
1910
1915
|
userId: ["userId", "_creationTime"];
|
|
@@ -1921,7 +1926,7 @@ export declare const vv: {
|
|
|
1921
1926
|
_creationTime: number;
|
|
1922
1927
|
name?: string | undefined;
|
|
1923
1928
|
};
|
|
1924
|
-
fieldPaths: "
|
|
1929
|
+
fieldPaths: ("_creationTime" | "name") | "_id";
|
|
1925
1930
|
indexes: {
|
|
1926
1931
|
name: ["name", "_creationTime"];
|
|
1927
1932
|
by_id: ["_id"];
|
|
@@ -1944,7 +1949,7 @@ export declare const vv: {
|
|
|
1944
1949
|
order?: number | undefined;
|
|
1945
1950
|
status: "active" | "archived";
|
|
1946
1951
|
};
|
|
1947
|
-
fieldPaths: "
|
|
1952
|
+
fieldPaths: ("status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order" | "_creationTime") | "_id";
|
|
1948
1953
|
indexes: {
|
|
1949
1954
|
userId: ["userId", "_creationTime"];
|
|
1950
1955
|
by_id: ["_id"];
|
|
@@ -1965,7 +1970,7 @@ export declare const vv: {
|
|
|
1965
1970
|
table: string;
|
|
1966
1971
|
vector: number[];
|
|
1967
1972
|
};
|
|
1968
|
-
fieldPaths: "_id" | ("
|
|
1973
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1969
1974
|
indexes: {
|
|
1970
1975
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1971
1976
|
by_id: ["_id"];
|
|
@@ -1992,7 +1997,7 @@ export declare const vv: {
|
|
|
1992
1997
|
table: string;
|
|
1993
1998
|
vector: number[];
|
|
1994
1999
|
};
|
|
1995
|
-
fieldPaths: "_id" | ("
|
|
2000
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1996
2001
|
indexes: {
|
|
1997
2002
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1998
2003
|
by_id: ["_id"];
|
|
@@ -2019,7 +2024,7 @@ export declare const vv: {
|
|
|
2019
2024
|
table: string;
|
|
2020
2025
|
vector: number[];
|
|
2021
2026
|
};
|
|
2022
|
-
fieldPaths: "_id" | ("
|
|
2027
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2023
2028
|
indexes: {
|
|
2024
2029
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2025
2030
|
by_id: ["_id"];
|
|
@@ -2046,7 +2051,7 @@ export declare const vv: {
|
|
|
2046
2051
|
table: string;
|
|
2047
2052
|
vector: number[];
|
|
2048
2053
|
};
|
|
2049
|
-
fieldPaths: "_id" | ("
|
|
2054
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2050
2055
|
indexes: {
|
|
2051
2056
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2052
2057
|
by_id: ["_id"];
|
|
@@ -2073,7 +2078,7 @@ export declare const vv: {
|
|
|
2073
2078
|
table: string;
|
|
2074
2079
|
vector: number[];
|
|
2075
2080
|
};
|
|
2076
|
-
fieldPaths: "_id" | ("
|
|
2081
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2077
2082
|
indexes: {
|
|
2078
2083
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2079
2084
|
by_id: ["_id"];
|
|
@@ -2100,7 +2105,7 @@ export declare const vv: {
|
|
|
2100
2105
|
table: string;
|
|
2101
2106
|
vector: number[];
|
|
2102
2107
|
};
|
|
2103
|
-
fieldPaths: "_id" | ("
|
|
2108
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2104
2109
|
indexes: {
|
|
2105
2110
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2106
2111
|
by_id: ["_id"];
|
|
@@ -2127,7 +2132,7 @@ export declare const vv: {
|
|
|
2127
2132
|
table: string;
|
|
2128
2133
|
vector: number[];
|
|
2129
2134
|
};
|
|
2130
|
-
fieldPaths: "_id" | ("
|
|
2135
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2131
2136
|
indexes: {
|
|
2132
2137
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2133
2138
|
by_id: ["_id"];
|
|
@@ -2154,7 +2159,7 @@ export declare const vv: {
|
|
|
2154
2159
|
table: string;
|
|
2155
2160
|
vector: number[];
|
|
2156
2161
|
};
|
|
2157
|
-
fieldPaths: "_id" | ("
|
|
2162
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2158
2163
|
indexes: {
|
|
2159
2164
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2160
2165
|
by_id: ["_id"];
|
|
@@ -2181,7 +2186,7 @@ export declare const vv: {
|
|
|
2181
2186
|
table: string;
|
|
2182
2187
|
vector: number[];
|
|
2183
2188
|
};
|
|
2184
|
-
fieldPaths: "_id" | ("
|
|
2189
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2185
2190
|
indexes: {
|
|
2186
2191
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2187
2192
|
by_id: ["_id"];
|
|
@@ -2208,7 +2213,7 @@ export declare const vv: {
|
|
|
2208
2213
|
table: string;
|
|
2209
2214
|
vector: number[];
|
|
2210
2215
|
};
|
|
2211
|
-
fieldPaths: "_id" | ("
|
|
2216
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2212
2217
|
indexes: {
|
|
2213
2218
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2214
2219
|
by_id: ["_id"];
|
|
@@ -2234,7 +2239,7 @@ export declare const vv: {
|
|
|
2234
2239
|
refcount: number;
|
|
2235
2240
|
lastTouchedAt: number;
|
|
2236
2241
|
};
|
|
2237
|
-
fieldPaths:
|
|
2242
|
+
fieldPaths: ("_creationTime" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt") | "_id";
|
|
2238
2243
|
indexes: {
|
|
2239
2244
|
hash: ["hash", "_creationTime"];
|
|
2240
2245
|
refcount: ["refcount", "_creationTime"];
|
|
@@ -2366,7 +2371,7 @@ export declare const vv: {
|
|
|
2366
2371
|
type: "other";
|
|
2367
2372
|
message: string;
|
|
2368
2373
|
})[] | undefined;
|
|
2369
|
-
finishReason?: "
|
|
2374
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2370
2375
|
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
2371
2376
|
stepId?: string | undefined;
|
|
2372
2377
|
status: "pending" | "success" | "failed";
|
|
@@ -2375,7 +2380,7 @@ export declare const vv: {
|
|
|
2375
2380
|
stepOrder: number;
|
|
2376
2381
|
tool: boolean;
|
|
2377
2382
|
};
|
|
2378
|
-
fieldPaths:
|
|
2383
|
+
fieldPaths: ("id" | "status" | "userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | `providerMetadata.${string}`) | "_id";
|
|
2379
2384
|
indexes: {
|
|
2380
2385
|
threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
2381
2386
|
embeddingId: ["embeddingId", "_creationTime"];
|
|
@@ -2407,14 +2412,15 @@ export declare const vv: {
|
|
|
2407
2412
|
kind: "streaming";
|
|
2408
2413
|
lastHeartbeat: number;
|
|
2409
2414
|
} | {
|
|
2415
|
+
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
2410
2416
|
kind: "finished";
|
|
2411
2417
|
endedAt: number;
|
|
2412
2418
|
} | {
|
|
2413
|
-
|
|
2414
|
-
|
|
2419
|
+
kind: "aborted";
|
|
2420
|
+
reason: string;
|
|
2415
2421
|
};
|
|
2416
2422
|
};
|
|
2417
|
-
fieldPaths:
|
|
2423
|
+
fieldPaths: ("userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt" | "state.cleanupFnId" | "state.reason") | "_id";
|
|
2418
2424
|
indexes: {
|
|
2419
2425
|
threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
|
|
2420
2426
|
by_id: ["_id"];
|
|
@@ -2478,7 +2484,7 @@ export declare const vv: {
|
|
|
2478
2484
|
argsTextDelta: string;
|
|
2479
2485
|
})[];
|
|
2480
2486
|
};
|
|
2481
|
-
fieldPaths:
|
|
2487
|
+
fieldPaths: ("_creationTime" | "streamId" | "start" | "end" | "parts") | "_id";
|
|
2482
2488
|
indexes: {
|
|
2483
2489
|
streamId_start_end: ["streamId", "start", "end", "_creationTime"];
|
|
2484
2490
|
by_id: ["_id"];
|
|
@@ -2496,7 +2502,7 @@ export declare const vv: {
|
|
|
2496
2502
|
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
2497
2503
|
memory: string;
|
|
2498
2504
|
};
|
|
2499
|
-
fieldPaths: "
|
|
2505
|
+
fieldPaths: ("userId" | "_creationTime" | "threadId" | "embeddingId" | "memory") | "_id";
|
|
2500
2506
|
indexes: {
|
|
2501
2507
|
threadId: ["threadId", "_creationTime"];
|
|
2502
2508
|
userId: ["userId", "_creationTime"];
|
|
@@ -2513,7 +2519,7 @@ export declare const vv: {
|
|
|
2513
2519
|
_creationTime: number;
|
|
2514
2520
|
name?: string | undefined;
|
|
2515
2521
|
};
|
|
2516
|
-
fieldPaths: "
|
|
2522
|
+
fieldPaths: ("_creationTime" | "name") | "_id";
|
|
2517
2523
|
indexes: {
|
|
2518
2524
|
name: ["name", "_creationTime"];
|
|
2519
2525
|
by_id: ["_id"];
|
|
@@ -2918,7 +2924,7 @@ export declare const vv: {
|
|
|
2918
2924
|
type: "other";
|
|
2919
2925
|
message: string;
|
|
2920
2926
|
})[] | undefined;
|
|
2921
|
-
finishReason?: "
|
|
2927
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2922
2928
|
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
2923
2929
|
stepId?: string | undefined;
|
|
2924
2930
|
status: "pending" | "success" | "failed";
|
|
@@ -3476,7 +3482,7 @@ export declare const vv: {
|
|
|
3476
3482
|
type: import("convex/values").VLiteral<"other", "required">;
|
|
3477
3483
|
message: import("convex/values").VString<string, "required">;
|
|
3478
3484
|
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
3479
|
-
finishReason: import("convex/values").VUnion<"
|
|
3485
|
+
finishReason: import("convex/values").VUnion<"error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
|
|
3480
3486
|
parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages"> | undefined, "optional">;
|
|
3481
3487
|
stepId: import("convex/values").VString<string | undefined, "optional">;
|
|
3482
3488
|
files: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
|
|
@@ -3503,11 +3509,12 @@ export declare const vv: {
|
|
|
3503
3509
|
kind: "streaming";
|
|
3504
3510
|
lastHeartbeat: number;
|
|
3505
3511
|
} | {
|
|
3512
|
+
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
3506
3513
|
kind: "finished";
|
|
3507
3514
|
endedAt: number;
|
|
3508
3515
|
} | {
|
|
3509
|
-
|
|
3510
|
-
|
|
3516
|
+
kind: "aborted";
|
|
3517
|
+
reason: string;
|
|
3511
3518
|
};
|
|
3512
3519
|
}, {
|
|
3513
3520
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -3528,11 +3535,12 @@ export declare const vv: {
|
|
|
3528
3535
|
kind: "streaming";
|
|
3529
3536
|
lastHeartbeat: number;
|
|
3530
3537
|
} | {
|
|
3538
|
+
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
3531
3539
|
kind: "finished";
|
|
3532
3540
|
endedAt: number;
|
|
3533
3541
|
} | {
|
|
3534
|
-
|
|
3535
|
-
|
|
3542
|
+
kind: "aborted";
|
|
3543
|
+
reason: string;
|
|
3536
3544
|
}, [import("convex/values").VObject<{
|
|
3537
3545
|
timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
3538
3546
|
kind: "streaming";
|
|
@@ -3542,19 +3550,21 @@ export declare const vv: {
|
|
|
3542
3550
|
lastHeartbeat: import("convex/values").VFloat64<number, "required">;
|
|
3543
3551
|
timeoutFnId: import("convex/values").VId<import("convex/values").GenericId<"_scheduled_functions"> | undefined, "optional">;
|
|
3544
3552
|
}, "required", "kind" | "lastHeartbeat" | "timeoutFnId">, import("convex/values").VObject<{
|
|
3553
|
+
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
3545
3554
|
kind: "finished";
|
|
3546
3555
|
endedAt: number;
|
|
3547
3556
|
}, {
|
|
3548
3557
|
kind: import("convex/values").VLiteral<"finished", "required">;
|
|
3549
3558
|
endedAt: import("convex/values").VFloat64<number, "required">;
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
kind: "
|
|
3559
|
+
cleanupFnId: import("convex/values").VId<import("convex/values").GenericId<"_scheduled_functions"> | undefined, "optional">;
|
|
3560
|
+
}, "required", "kind" | "endedAt" | "cleanupFnId">, import("convex/values").VObject<{
|
|
3561
|
+
kind: "aborted";
|
|
3562
|
+
reason: string;
|
|
3553
3563
|
}, {
|
|
3554
|
-
kind: import("convex/values").VLiteral<"
|
|
3555
|
-
|
|
3556
|
-
}, "required", "
|
|
3557
|
-
}, "required", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.
|
|
3564
|
+
kind: import("convex/values").VLiteral<"aborted", "required">;
|
|
3565
|
+
reason: import("convex/values").VString<string, "required">;
|
|
3566
|
+
}, "required", "kind" | "reason">], "required", "kind" | "lastHeartbeat" | "timeoutFnId" | "endedAt" | "cleanupFnId" | "reason">;
|
|
3567
|
+
}, "required", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt" | "state.cleanupFnId" | "state.reason">, {
|
|
3558
3568
|
threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
|
|
3559
3569
|
}, {}, {}>;
|
|
3560
3570
|
streamDeltas: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -3885,9 +3895,9 @@ export declare const vThreadDoc: import("convex/values").VObject<{
|
|
|
3885
3895
|
userId?: string | undefined;
|
|
3886
3896
|
title?: string | undefined;
|
|
3887
3897
|
summary?: string | undefined;
|
|
3888
|
-
_id: string;
|
|
3889
|
-
_creationTime: number;
|
|
3890
3898
|
status: "active" | "archived";
|
|
3899
|
+
_creationTime: number;
|
|
3900
|
+
_id: string;
|
|
3891
3901
|
}, {
|
|
3892
3902
|
_id: import("convex/values").VString<string, "required">;
|
|
3893
3903
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
@@ -3895,7 +3905,7 @@ export declare const vThreadDoc: import("convex/values").VObject<{
|
|
|
3895
3905
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
3896
3906
|
summary: import("convex/values").VString<string | undefined, "optional">;
|
|
3897
3907
|
status: import("convex/values").VUnion<"active" | "archived", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"archived", "required">], "required", never>;
|
|
3898
|
-
}, "required", "
|
|
3908
|
+
}, "required", "status" | "userId" | "title" | "summary" | "_creationTime" | "_id">;
|
|
3899
3909
|
export type ThreadDoc = Infer<typeof vThreadDoc>;
|
|
3900
3910
|
export declare const vMessageDoc: import("convex/values").VObject<{
|
|
3901
3911
|
id?: string | undefined;
|
|
@@ -4015,14 +4025,14 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4015
4025
|
type: "other";
|
|
4016
4026
|
message: string;
|
|
4017
4027
|
})[] | undefined;
|
|
4018
|
-
finishReason?: "
|
|
4019
|
-
_id: string;
|
|
4020
|
-
_creationTime: number;
|
|
4028
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
4021
4029
|
status: "pending" | "success" | "failed";
|
|
4022
4030
|
order: number;
|
|
4031
|
+
_creationTime: number;
|
|
4023
4032
|
threadId: string;
|
|
4024
4033
|
stepOrder: number;
|
|
4025
4034
|
tool: boolean;
|
|
4035
|
+
_id: string;
|
|
4026
4036
|
}, {
|
|
4027
4037
|
threadId: import("convex/values").VString<string, "required">;
|
|
4028
4038
|
embeddingId: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -4573,10 +4583,10 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4573
4583
|
type: import("convex/values").VLiteral<"other", "required">;
|
|
4574
4584
|
message: import("convex/values").VString<string, "required">;
|
|
4575
4585
|
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
4576
|
-
finishReason: import("convex/values").VUnion<"
|
|
4586
|
+
finishReason: import("convex/values").VUnion<"error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
|
|
4577
4587
|
_id: import("convex/values").VString<string, "required">;
|
|
4578
4588
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
4579
|
-
}, "required", "
|
|
4589
|
+
}, "required", "id" | "status" | "userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | `providerMetadata.${string}` | "_id">;
|
|
4580
4590
|
export type MessageDoc = Infer<typeof vMessageDoc>;
|
|
4581
4591
|
export default schema;
|
|
4582
4592
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAK,MAAM,eAAe,CAAC;AAkB9C,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAK,MAAM,eAAe,CAAC;AAkB9C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8jBAatB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAGnD,eAAe,MAAM,CAAC"}
|
|
@@ -88,9 +88,10 @@ export const schema = defineSchema({
|
|
|
88
88
|
}), v.object({
|
|
89
89
|
kind: v.literal("finished"),
|
|
90
90
|
endedAt: v.number(),
|
|
91
|
+
cleanupFnId: v.optional(v.id("_scheduled_functions")),
|
|
91
92
|
}), v.object({
|
|
92
|
-
kind: v.literal("
|
|
93
|
-
|
|
93
|
+
kind: v.literal("aborted"),
|
|
94
|
+
reason: v.string(),
|
|
94
95
|
})),
|
|
95
96
|
})
|
|
96
97
|
// There should only be one per "order" index
|