@rudderhq/server 0.6.5-canary.1 → 0.6.5
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/bootstrap/plugin-host-runtime.d.ts +8 -8
- package/dist/routes/access.helpers.d.ts +1 -1
- package/dist/routes/chats.runtime-controls.d.ts +1 -1
- package/dist/services/access.d.ts +3 -3
- package/dist/services/activity.d.ts +3 -3
- package/dist/services/agents.d.ts +13 -13
- package/dist/services/approvals.d.ts +4 -4
- package/dist/services/assets.d.ts +1 -1
- package/dist/services/automation-chat-output.d.ts +3 -3
- package/dist/services/board-auth.d.ts +1 -1
- package/dist/services/chat-annotation-copy-lineage.d.ts +3 -3
- package/dist/services/chat-generation-protocol.d.ts +27 -27
- package/dist/services/chat-queued-message-materialization.d.ts +2 -2
- package/dist/services/chat-work-manifest.d.ts.map +1 -1
- package/dist/services/chat-work-manifest.js +4 -112
- package/dist/services/chat-work-manifest.js.map +1 -1
- package/dist/services/chats.create.d.ts +2 -2
- package/dist/services/chats.d.ts +132 -132
- package/dist/services/chats.helpers.d.ts +2 -2
- package/dist/services/finance.d.ts +1 -1
- package/dist/services/goals.d.ts +2 -2
- package/dist/services/integrations/agent-integrations.d.ts +1 -1
- package/dist/services/integrations/custom-integrations.d.ts +2 -2
- package/dist/services/integrations/feishu/user-bindings.d.ts +1 -1
- package/dist/services/issue-approvals.d.ts +1 -1
- package/dist/services/issues.comments-attachments.d.ts +1 -1
- package/dist/services/issues.d.ts +4 -4
- package/dist/services/messenger.d.ts +5 -5
- package/dist/services/orgs.d.ts +1 -1
- package/dist/services/plugin-registry.d.ts +8 -8
- package/dist/services/projects.d.ts +1 -1
- package/dist/services/run-events.d.ts +1 -1
- package/dist/services/secrets.d.ts +1 -1
- package/dist/services/workspace-runtime.services.d.ts +2 -2
- package/package.json +13 -13
- package/ui-dist/assets/{LibraryLiveSurface-D24b3PLC.js → LibraryLiveSurface-DpX1FaVs.js} +1 -1
- package/ui-dist/assets/{abnfDiagram-VRR7QNED-LHuM5H20.js → abnfDiagram-VRR7QNED-BFqFFwVV.js} +1 -1
- package/ui-dist/assets/{arc-D7nyiWD6.js → arc-Dd7KXY7D.js} +1 -1
- package/ui-dist/assets/{architectureDiagram-ZJ3FMSHR-B8insjfY.js → architectureDiagram-ZJ3FMSHR-CzfeXkyX.js} +1 -1
- package/ui-dist/assets/{blockDiagram-677ZJIJ3-CXVnyq3H.js → blockDiagram-677ZJIJ3-BSiL3FsI.js} +1 -1
- package/ui-dist/assets/{c4Diagram-LMCZKHZV-DXIq8xZs.js → c4Diagram-LMCZKHZV-BjT_aSi4.js} +1 -1
- package/ui-dist/assets/channel-C3u-3GHU.js +1 -0
- package/ui-dist/assets/{chunk-2Q5K7J3B-CWJtRS59.js → chunk-2Q5K7J3B-CtGd7b4J.js} +1 -1
- package/ui-dist/assets/{chunk-32BRIVSS-B2arTUHF.js → chunk-32BRIVSS-DLOelT5l.js} +1 -1
- package/ui-dist/assets/{chunk-5VM5RSS4-DuAJtqjj.js → chunk-5VM5RSS4-BUPqCqOC.js} +1 -1
- package/ui-dist/assets/{chunk-EX3LRPZG-Bf-izAd4.js → chunk-EX3LRPZG-CIzOp80L.js} +1 -1
- package/ui-dist/assets/{chunk-JWPE2WC7-XRGpdCPm.js → chunk-JWPE2WC7-CQ6lawYC.js} +1 -1
- package/ui-dist/assets/{chunk-MOJQB5TN-Cb16elmr.js → chunk-MOJQB5TN-6yDvAm1z.js} +1 -1
- package/ui-dist/assets/{chunk-RYQCIY6F-CmyMk-AG.js → chunk-RYQCIY6F-BsWFsIK3.js} +1 -1
- package/ui-dist/assets/{chunk-V7JOEXUC-DySlgtRD.js → chunk-V7JOEXUC-C90E5Ayd.js} +1 -1
- package/ui-dist/assets/{chunk-VR4S4FIN-CTSDci3v.js → chunk-VR4S4FIN-CRCxXqZI.js} +1 -1
- package/ui-dist/assets/{chunk-XXDRQBXY-Drcbf_Hq.js → chunk-XXDRQBXY-B3don1Cz.js} +1 -1
- package/ui-dist/assets/classDiagram-OUVF2IWQ-NsiQrj0J.js +1 -0
- package/ui-dist/assets/classDiagram-v2-EOCWNBFH-NsiQrj0J.js +1 -0
- package/ui-dist/assets/{cose-bilkent-JH36ORCC-Clc6XqtU.js → cose-bilkent-JH36ORCC-DEP7BeI3.js} +1 -1
- package/ui-dist/assets/{cynefin-VYW2F7L2-CaAw6uLl.js → cynefin-VYW2F7L2-CJVhT4Mh.js} +1 -1
- package/ui-dist/assets/{cynefinDiagram-TSTJHNR4-BcqJ13KY.js → cynefinDiagram-TSTJHNR4-BaE-6YFm.js} +1 -1
- package/ui-dist/assets/{dagre-VKFMJZFB-DQOi24M8.js → dagre-VKFMJZFB-DjLUyC8r.js} +1 -1
- package/ui-dist/assets/{diagram-FQU43EPY-_klsEDEX.js → diagram-FQU43EPY-qFPhWckH.js} +1 -1
- package/ui-dist/assets/{diagram-G47NLZAW-DvUMiQNE.js → diagram-G47NLZAW-x2c8-YSi.js} +1 -1
- package/ui-dist/assets/{diagram-NH7WQ7WH-IhAXb-zL.js → diagram-NH7WQ7WH-DVJZnTdn.js} +1 -1
- package/ui-dist/assets/{diagram-OA4YK3LP-Oue8CgLi.js → diagram-OA4YK3LP-CGmPSCZl.js} +1 -1
- package/ui-dist/assets/{diagram-WEI45ONY-bryYp8oF.js → diagram-WEI45ONY-CVrk0gkQ.js} +1 -1
- package/ui-dist/assets/{ebnfDiagram-CCIWWBDH-CzDDqe6L.js → ebnfDiagram-CCIWWBDH-ERUk1pe4.js} +1 -1
- package/ui-dist/assets/{erDiagram-Q63AITRT-D7--g77q.js → erDiagram-Q63AITRT-CTI3QQAr.js} +1 -1
- package/ui-dist/assets/{flowDiagram-23GEKE2U-Cq5pMdL_.js → flowDiagram-23GEKE2U-CEsaHxu3.js} +1 -1
- package/ui-dist/assets/{ganttDiagram-NO4QXBWP-BjmSUgVR.js → ganttDiagram-NO4QXBWP-gzxhoaFK.js} +1 -1
- package/ui-dist/assets/{gitGraphDiagram-IHSO6WYX-B9bGZ8n4.js → gitGraphDiagram-IHSO6WYX-DTL52PDj.js} +1 -1
- package/ui-dist/assets/{graph-Bq0eY0Pi.js → graph-Amp0nqof.js} +1 -1
- package/ui-dist/assets/{index-rK3YzgBQ.js → index-B1m6wL07.js} +1 -1
- package/ui-dist/assets/{index-CR3LDLxi.js → index-BHESmW5p.js} +1 -1
- package/ui-dist/assets/{index-BM3g1riW.js → index-BI4_BIid.js} +531 -531
- package/ui-dist/assets/{index-D-8g3Hhv.js → index-BV7fBmZ3.js} +1 -1
- package/ui-dist/assets/{index-PjmK4JrU.js → index-BcVy8ihr.js} +1 -1
- package/ui-dist/assets/{index-BiPwRhVs.js → index-CPDrDmuH.js} +1 -1
- package/ui-dist/assets/{index-zHeqriql.js → index-CRXGUaWn.js} +1 -1
- package/ui-dist/assets/{index-B9xrKfun.js → index-CSzq_DKH.js} +1 -1
- package/ui-dist/assets/index-CThrdiOE.css +1 -0
- package/ui-dist/assets/{index-DDZVxY41.js → index-CepgLuN-.js} +1 -1
- package/ui-dist/assets/{index-DeHOcpCv.js → index-DYrmKlSC.js} +1 -1
- package/ui-dist/assets/{index-gDT4un5G.js → index-D___9Wjc.js} +1 -1
- package/ui-dist/assets/{index-CqJhbFgf.js → index-DoitzL1N.js} +1 -1
- package/ui-dist/assets/{index-C-2tkO6K.js → index-HtRgAJ4M.js} +1 -1
- package/ui-dist/assets/{index-D-iABsMT.js → index-QQAVYTub.js} +1 -1
- package/ui-dist/assets/{index-mqnlZjii.js → index-gr3tM_aY.js} +1 -1
- package/ui-dist/assets/{index-CLmHAeQW.js → index-msFHymhK.js} +1 -1
- package/ui-dist/assets/{index-BkTAd0w0.js → index-v7MQxR2M.js} +1 -1
- package/ui-dist/assets/{index-BRWss8Vf.js → index-xJT81p6g.js} +1 -1
- package/ui-dist/assets/{infoDiagram-FWYZ7A6U-Bjo2cQLK.js → infoDiagram-FWYZ7A6U-DGE65dHv.js} +1 -1
- package/ui-dist/assets/{ishikawaDiagram-FXEZZL3T-Dxci_EJv.js → ishikawaDiagram-FXEZZL3T-Cd4UBCAL.js} +1 -1
- package/ui-dist/assets/{journeyDiagram-5HDEW3XC-B5XFpiRM.js → journeyDiagram-5HDEW3XC-DGgKZBkH.js} +1 -1
- package/ui-dist/assets/{kanban-definition-HUTT4EX6-BLyGN1o7.js → kanban-definition-HUTT4EX6-BKEVE30G.js} +1 -1
- package/ui-dist/assets/{layout-C3_9Ey0_.js → layout-ok0OdtMA.js} +1 -1
- package/ui-dist/assets/{linear-BiE-JsI5.js → linear-BIUm0r-d.js} +1 -1
- package/ui-dist/assets/{map-DDEX_3pP.js → map-B3hrNe5c.js} +1 -1
- package/ui-dist/assets/{mermaid.core-ze8bFIpR.js → mermaid.core-BB3ZW0W5.js} +4 -4
- package/ui-dist/assets/{mindmap-definition-LN4V7U3C-BqRnv2Qo.js → mindmap-definition-LN4V7U3C-Ce2GzycL.js} +1 -1
- package/ui-dist/assets/{pegDiagram-2B236MQR-DHcyUEva.js → pegDiagram-2B236MQR-CsGZjyrh.js} +1 -1
- package/ui-dist/assets/{pieDiagram-ENE6RG2P-9toJeowD.js → pieDiagram-ENE6RG2P-13XdwDXP.js} +1 -1
- package/ui-dist/assets/{quadrantDiagram-ABIIQ3AL-CxWxmf27.js → quadrantDiagram-ABIIQ3AL-Dp1K1uSq.js} +1 -1
- package/ui-dist/assets/{railroadDiagram-RFXS5EU6-17uGKAlI.js → railroadDiagram-RFXS5EU6-Dw5jHw28.js} +1 -1
- package/ui-dist/assets/{requirementDiagram-TGXJPOKE-WSOt6NsB.js → requirementDiagram-TGXJPOKE-C3_H_i7q.js} +1 -1
- package/ui-dist/assets/{sankeyDiagram-HTMAVEWB-xcTIUjoj.js → sankeyDiagram-HTMAVEWB-DTEaptJZ.js} +1 -1
- package/ui-dist/assets/{sequenceDiagram-DBY2YBRQ-N2q1Ncl-.js → sequenceDiagram-DBY2YBRQ-DPbvDbuP.js} +1 -1
- package/ui-dist/assets/{sizeCapture-X5ZJPWSS-BWMaj48i.js → sizeCapture-X5ZJPWSS-Ck2fmKhq.js} +1 -1
- package/ui-dist/assets/{stateDiagram-2N3HPSRC-Be8XN6oH.js → stateDiagram-2N3HPSRC-DpRZgrRj.js} +1 -1
- package/ui-dist/assets/stateDiagram-v2-6OUMAXLB-DgWbRGjL.js +1 -0
- package/ui-dist/assets/{swimlanes-5IMT3BWC-B3ZvAJXs.js → swimlanes-5IMT3BWC-hhbRmwUj.js} +2 -2
- package/ui-dist/assets/swimlanesDiagram-G3AALYLV-DArbKvVx.js +8 -0
- package/ui-dist/assets/{timeline-definition-FHXFAJF6-DXxtwv-k.js → timeline-definition-FHXFAJF6-DdDMc8Ts.js} +1 -1
- package/ui-dist/assets/{vennDiagram-L72KCM5P-BOGNFRQH.js → vennDiagram-L72KCM5P-o_kY0dM1.js} +1 -1
- package/ui-dist/assets/{wardleyDiagram-EHGQE667-BNzYmrIp.js → wardleyDiagram-EHGQE667-DSHITBPO.js} +1 -1
- package/ui-dist/assets/{xychartDiagram-FW5EYKEG-Y3ZkdlS3.js → xychartDiagram-FW5EYKEG-CDaFkU2E.js} +1 -1
- package/ui-dist/index.html +2 -2
- package/ui-dist/assets/channel-MRYc0JYu.js +0 -1
- package/ui-dist/assets/classDiagram-OUVF2IWQ-BioeQjQU.js +0 -1
- package/ui-dist/assets/classDiagram-v2-EOCWNBFH-BioeQjQU.js +0 -1
- package/ui-dist/assets/index-C-qWhcfC.css +0 -1
- package/ui-dist/assets/stateDiagram-v2-6OUMAXLB-sD3j3cyT.js +0 -1
- package/ui-dist/assets/swimlanesDiagram-G3AALYLV-RUfV3EKs.js +0 -8
package/dist/services/chats.d.ts
CHANGED
|
@@ -54,11 +54,11 @@ export declare function chatService(db: Db): {
|
|
|
54
54
|
lateBytes?: number;
|
|
55
55
|
}) => Promise<{
|
|
56
56
|
event: {
|
|
57
|
-
generationId: string;
|
|
58
|
-
id: string;
|
|
59
|
-
runId: string | null;
|
|
60
57
|
assistantMessageId: string | null;
|
|
58
|
+
id: string;
|
|
61
59
|
orgId: string;
|
|
60
|
+
runId: string | null;
|
|
61
|
+
generationId: string;
|
|
62
62
|
payload: Record<string, unknown>;
|
|
63
63
|
controlActionId: string | null;
|
|
64
64
|
attemptEpoch: number;
|
|
@@ -74,11 +74,11 @@ export declare function chatService(db: Db): {
|
|
|
74
74
|
status: import("@rudderhq/shared").ChatGenerationStatus;
|
|
75
75
|
conversationId: string;
|
|
76
76
|
id: string;
|
|
77
|
-
startedAt: Date;
|
|
78
|
-
updatedAt: Date;
|
|
79
77
|
orgId: string;
|
|
80
78
|
createdAt: Date;
|
|
79
|
+
updatedAt: Date;
|
|
81
80
|
attemptEpoch: number;
|
|
81
|
+
startedAt: Date;
|
|
82
82
|
completedAt: Date | null;
|
|
83
83
|
terminalReason: string | null;
|
|
84
84
|
controlVersion: number;
|
|
@@ -115,11 +115,11 @@ export declare function chatService(db: Db): {
|
|
|
115
115
|
status: import("@rudderhq/shared").ChatGenerationStatus;
|
|
116
116
|
conversationId: string;
|
|
117
117
|
id: string;
|
|
118
|
-
startedAt: Date;
|
|
119
|
-
updatedAt: Date;
|
|
120
118
|
orgId: string;
|
|
121
119
|
createdAt: Date;
|
|
120
|
+
updatedAt: Date;
|
|
122
121
|
attemptEpoch: number;
|
|
122
|
+
startedAt: Date;
|
|
123
123
|
completedAt: Date | null;
|
|
124
124
|
terminalReason: string | null;
|
|
125
125
|
controlVersion: number;
|
|
@@ -157,11 +157,11 @@ export declare function chatService(db: Db): {
|
|
|
157
157
|
updatedAt: Date;
|
|
158
158
|
};
|
|
159
159
|
event: {
|
|
160
|
-
generationId: string;
|
|
161
|
-
id: string;
|
|
162
|
-
runId: string | null;
|
|
163
160
|
assistantMessageId: string | null;
|
|
161
|
+
id: string;
|
|
164
162
|
orgId: string;
|
|
163
|
+
runId: string | null;
|
|
164
|
+
generationId: string;
|
|
165
165
|
payload: Record<string, unknown>;
|
|
166
166
|
controlActionId: string | null;
|
|
167
167
|
attemptEpoch: number;
|
|
@@ -226,11 +226,11 @@ export declare function chatService(db: Db): {
|
|
|
226
226
|
status: import("@rudderhq/shared").ChatGenerationStatus;
|
|
227
227
|
conversationId: string;
|
|
228
228
|
id: string;
|
|
229
|
-
startedAt: Date;
|
|
230
|
-
updatedAt: Date;
|
|
231
229
|
orgId: string;
|
|
232
230
|
createdAt: Date;
|
|
231
|
+
updatedAt: Date;
|
|
233
232
|
attemptEpoch: number;
|
|
233
|
+
startedAt: Date;
|
|
234
234
|
completedAt: Date | null;
|
|
235
235
|
terminalReason: string | null;
|
|
236
236
|
controlVersion: number;
|
|
@@ -280,11 +280,11 @@ export declare function chatService(db: Db): {
|
|
|
280
280
|
updatedAt: Date;
|
|
281
281
|
};
|
|
282
282
|
event: {
|
|
283
|
-
generationId: string;
|
|
284
|
-
id: string;
|
|
285
|
-
runId: string | null;
|
|
286
283
|
assistantMessageId: string | null;
|
|
284
|
+
id: string;
|
|
287
285
|
orgId: string;
|
|
286
|
+
runId: string | null;
|
|
287
|
+
generationId: string;
|
|
288
288
|
payload: Record<string, unknown>;
|
|
289
289
|
controlActionId: string | null;
|
|
290
290
|
attemptEpoch: number;
|
|
@@ -312,9 +312,9 @@ export declare function chatService(db: Db): {
|
|
|
312
312
|
}) => Promise<{
|
|
313
313
|
action: {
|
|
314
314
|
id: string;
|
|
315
|
-
updatedAt: Date;
|
|
316
315
|
orgId: string;
|
|
317
316
|
createdAt: Date;
|
|
317
|
+
updatedAt: Date;
|
|
318
318
|
resolvedAt: Date | null;
|
|
319
319
|
expectedGenerationId: string | null;
|
|
320
320
|
expectedAttemptEpoch: number | null;
|
|
@@ -341,11 +341,11 @@ export declare function chatService(db: Db): {
|
|
|
341
341
|
status: import("@rudderhq/shared").ChatGenerationStatus;
|
|
342
342
|
conversationId: string;
|
|
343
343
|
id: string;
|
|
344
|
-
startedAt: Date;
|
|
345
|
-
updatedAt: Date;
|
|
346
344
|
orgId: string;
|
|
347
345
|
createdAt: Date;
|
|
346
|
+
updatedAt: Date;
|
|
348
347
|
attemptEpoch: number;
|
|
348
|
+
startedAt: Date;
|
|
349
349
|
completedAt: Date | null;
|
|
350
350
|
terminalReason: string | null;
|
|
351
351
|
controlVersion: number;
|
|
@@ -365,11 +365,11 @@ export declare function chatService(db: Db): {
|
|
|
365
365
|
lateBytes: number;
|
|
366
366
|
};
|
|
367
367
|
stopRequestedEvent: {
|
|
368
|
-
generationId: string;
|
|
369
|
-
id: string;
|
|
370
|
-
runId: string | null;
|
|
371
368
|
assistantMessageId: string | null;
|
|
369
|
+
id: string;
|
|
372
370
|
orgId: string;
|
|
371
|
+
runId: string | null;
|
|
372
|
+
generationId: string;
|
|
373
373
|
payload: Record<string, unknown>;
|
|
374
374
|
controlActionId: string | null;
|
|
375
375
|
attemptEpoch: number;
|
|
@@ -382,11 +382,11 @@ export declare function chatService(db: Db): {
|
|
|
382
382
|
emittedAt: Date | null;
|
|
383
383
|
} | null;
|
|
384
384
|
outputCutoffEvent: {
|
|
385
|
-
generationId: string;
|
|
386
|
-
id: string;
|
|
387
|
-
runId: string | null;
|
|
388
385
|
assistantMessageId: string | null;
|
|
386
|
+
id: string;
|
|
389
387
|
orgId: string;
|
|
388
|
+
runId: string | null;
|
|
389
|
+
generationId: string;
|
|
390
390
|
payload: Record<string, unknown>;
|
|
391
391
|
controlActionId: string | null;
|
|
392
392
|
attemptEpoch: number;
|
|
@@ -414,9 +414,9 @@ export declare function chatService(db: Db): {
|
|
|
414
414
|
}) => Promise<{
|
|
415
415
|
action: {
|
|
416
416
|
id: string;
|
|
417
|
-
updatedAt: Date;
|
|
418
417
|
orgId: string;
|
|
419
418
|
createdAt: Date;
|
|
419
|
+
updatedAt: Date;
|
|
420
420
|
resolvedAt: Date | null;
|
|
421
421
|
expectedGenerationId: string | null;
|
|
422
422
|
expectedAttemptEpoch: number | null;
|
|
@@ -443,11 +443,11 @@ export declare function chatService(db: Db): {
|
|
|
443
443
|
status: import("@rudderhq/shared").ChatGenerationStatus;
|
|
444
444
|
conversationId: string;
|
|
445
445
|
id: string;
|
|
446
|
-
startedAt: Date;
|
|
447
|
-
updatedAt: Date;
|
|
448
446
|
orgId: string;
|
|
449
447
|
createdAt: Date;
|
|
448
|
+
updatedAt: Date;
|
|
450
449
|
attemptEpoch: number;
|
|
450
|
+
startedAt: Date;
|
|
451
451
|
completedAt: Date | null;
|
|
452
452
|
terminalReason: string | null;
|
|
453
453
|
controlVersion: number;
|
|
@@ -468,11 +468,11 @@ export declare function chatService(db: Db): {
|
|
|
468
468
|
};
|
|
469
469
|
item: typeof chatQueuedMessages.$inferSelect;
|
|
470
470
|
outputCutoffEvent: {
|
|
471
|
-
generationId: string;
|
|
472
|
-
id: string;
|
|
473
|
-
runId: string | null;
|
|
474
471
|
assistantMessageId: string | null;
|
|
472
|
+
id: string;
|
|
475
473
|
orgId: string;
|
|
474
|
+
runId: string | null;
|
|
475
|
+
generationId: string;
|
|
476
476
|
payload: Record<string, unknown>;
|
|
477
477
|
controlActionId: string | null;
|
|
478
478
|
attemptEpoch: number;
|
|
@@ -485,11 +485,11 @@ export declare function chatService(db: Db): {
|
|
|
485
485
|
emittedAt: Date | null;
|
|
486
486
|
} | null;
|
|
487
487
|
continuationEvent: {
|
|
488
|
-
generationId: string;
|
|
489
|
-
id: string;
|
|
490
|
-
runId: string | null;
|
|
491
488
|
assistantMessageId: string | null;
|
|
489
|
+
id: string;
|
|
492
490
|
orgId: string;
|
|
491
|
+
runId: string | null;
|
|
492
|
+
generationId: string;
|
|
493
493
|
payload: Record<string, unknown>;
|
|
494
494
|
controlActionId: string | null;
|
|
495
495
|
attemptEpoch: number;
|
|
@@ -520,11 +520,11 @@ export declare function chatService(db: Db): {
|
|
|
520
520
|
status: import("@rudderhq/shared").ChatGenerationStatus;
|
|
521
521
|
conversationId: string;
|
|
522
522
|
id: string;
|
|
523
|
-
startedAt: Date;
|
|
524
|
-
updatedAt: Date;
|
|
525
523
|
orgId: string;
|
|
526
524
|
createdAt: Date;
|
|
525
|
+
updatedAt: Date;
|
|
527
526
|
attemptEpoch: number;
|
|
527
|
+
startedAt: Date;
|
|
528
528
|
completedAt: Date | null;
|
|
529
529
|
terminalReason: string | null;
|
|
530
530
|
controlVersion: number;
|
|
@@ -597,11 +597,11 @@ export declare function chatService(db: Db): {
|
|
|
597
597
|
updatedAt: Date;
|
|
598
598
|
};
|
|
599
599
|
event: {
|
|
600
|
-
generationId: string;
|
|
601
|
-
id: string;
|
|
602
|
-
runId: string | null;
|
|
603
600
|
assistantMessageId: string | null;
|
|
601
|
+
id: string;
|
|
604
602
|
orgId: string;
|
|
603
|
+
runId: string | null;
|
|
604
|
+
generationId: string;
|
|
605
605
|
payload: Record<string, unknown>;
|
|
606
606
|
controlActionId: string | null;
|
|
607
607
|
attemptEpoch: number;
|
|
@@ -615,11 +615,11 @@ export declare function chatService(db: Db): {
|
|
|
615
615
|
};
|
|
616
616
|
outbox: {
|
|
617
617
|
status: import("@rudderhq/shared").ChatTerminalOutboxStatus;
|
|
618
|
-
generationId: string;
|
|
619
618
|
id: string;
|
|
620
|
-
updatedAt: Date;
|
|
621
619
|
orgId: string;
|
|
622
620
|
createdAt: Date;
|
|
621
|
+
updatedAt: Date;
|
|
622
|
+
generationId: string;
|
|
623
623
|
payload: Record<string, unknown>;
|
|
624
624
|
expectedControlVersion: number;
|
|
625
625
|
lastError: string | null;
|
|
@@ -684,11 +684,11 @@ export declare function chatService(db: Db): {
|
|
|
684
684
|
status: import("@rudderhq/shared").ChatGenerationStatus;
|
|
685
685
|
conversationId: string;
|
|
686
686
|
id: string;
|
|
687
|
-
startedAt: Date;
|
|
688
|
-
updatedAt: Date;
|
|
689
687
|
orgId: string;
|
|
690
688
|
createdAt: Date;
|
|
689
|
+
updatedAt: Date;
|
|
691
690
|
attemptEpoch: number;
|
|
691
|
+
startedAt: Date;
|
|
692
692
|
completedAt: Date | null;
|
|
693
693
|
terminalReason: string | null;
|
|
694
694
|
controlVersion: number;
|
|
@@ -761,11 +761,11 @@ export declare function chatService(db: Db): {
|
|
|
761
761
|
updatedAt: Date;
|
|
762
762
|
};
|
|
763
763
|
event: {
|
|
764
|
-
generationId: string;
|
|
765
|
-
id: string;
|
|
766
|
-
runId: string | null;
|
|
767
764
|
assistantMessageId: string | null;
|
|
765
|
+
id: string;
|
|
768
766
|
orgId: string;
|
|
767
|
+
runId: string | null;
|
|
768
|
+
generationId: string;
|
|
769
769
|
payload: Record<string, unknown>;
|
|
770
770
|
controlActionId: string | null;
|
|
771
771
|
attemptEpoch: number;
|
|
@@ -819,11 +819,11 @@ export declare function chatService(db: Db): {
|
|
|
819
819
|
status: import("@rudderhq/shared").ChatGenerationStatus;
|
|
820
820
|
conversationId: string;
|
|
821
821
|
id: string;
|
|
822
|
-
startedAt: Date;
|
|
823
|
-
updatedAt: Date;
|
|
824
822
|
orgId: string;
|
|
825
823
|
createdAt: Date;
|
|
824
|
+
updatedAt: Date;
|
|
826
825
|
attemptEpoch: number;
|
|
826
|
+
startedAt: Date;
|
|
827
827
|
completedAt: Date | null;
|
|
828
828
|
terminalReason: string | null;
|
|
829
829
|
controlVersion: number;
|
|
@@ -843,11 +843,11 @@ export declare function chatService(db: Db): {
|
|
|
843
843
|
lateBytes: number;
|
|
844
844
|
};
|
|
845
845
|
event: {
|
|
846
|
-
generationId: string;
|
|
847
|
-
id: string;
|
|
848
|
-
runId: string | null;
|
|
849
846
|
assistantMessageId: string | null;
|
|
847
|
+
id: string;
|
|
850
848
|
orgId: string;
|
|
849
|
+
runId: string | null;
|
|
850
|
+
generationId: string;
|
|
851
851
|
payload: Record<string, unknown>;
|
|
852
852
|
controlActionId: string | null;
|
|
853
853
|
attemptEpoch: number;
|
|
@@ -861,11 +861,11 @@ export declare function chatService(db: Db): {
|
|
|
861
861
|
};
|
|
862
862
|
outbox: {
|
|
863
863
|
status: import("@rudderhq/shared").ChatTerminalOutboxStatus;
|
|
864
|
-
generationId: string;
|
|
865
864
|
id: string;
|
|
866
|
-
updatedAt: Date;
|
|
867
865
|
orgId: string;
|
|
868
866
|
createdAt: Date;
|
|
867
|
+
updatedAt: Date;
|
|
868
|
+
generationId: string;
|
|
869
869
|
payload: Record<string, unknown>;
|
|
870
870
|
expectedControlVersion: number;
|
|
871
871
|
lastError: string | null;
|
|
@@ -914,9 +914,9 @@ export declare function chatService(db: Db): {
|
|
|
914
914
|
} | null;
|
|
915
915
|
conversationId: string;
|
|
916
916
|
id: string;
|
|
917
|
-
updatedAt: Date;
|
|
918
917
|
orgId: string;
|
|
919
918
|
createdAt: Date;
|
|
919
|
+
updatedAt: Date;
|
|
920
920
|
metadata: Record<string, unknown> | null;
|
|
921
921
|
entityType: string;
|
|
922
922
|
entityId: string;
|
|
@@ -931,10 +931,10 @@ export declare function chatService(db: Db): {
|
|
|
931
931
|
status: string;
|
|
932
932
|
title: string;
|
|
933
933
|
id: string;
|
|
934
|
-
updatedAt: Date;
|
|
935
|
-
summary: string | null;
|
|
936
934
|
orgId: string;
|
|
937
935
|
createdAt: Date;
|
|
936
|
+
updatedAt: Date;
|
|
937
|
+
summary: string | null;
|
|
938
938
|
preferredAgentId: string | null;
|
|
939
939
|
modelOverride: string | null;
|
|
940
940
|
effortOverride: string | null;
|
|
@@ -976,10 +976,10 @@ export declare function chatService(db: Db): {
|
|
|
976
976
|
status: string;
|
|
977
977
|
title: string;
|
|
978
978
|
id: string;
|
|
979
|
-
updatedAt: Date;
|
|
980
|
-
summary: string | null;
|
|
981
979
|
orgId: string;
|
|
982
980
|
createdAt: Date;
|
|
981
|
+
updatedAt: Date;
|
|
982
|
+
summary: string | null;
|
|
983
983
|
preferredAgentId: string | null;
|
|
984
984
|
modelOverride: string | null;
|
|
985
985
|
effortOverride: string | null;
|
|
@@ -1016,10 +1016,10 @@ export declare function chatService(db: Db): {
|
|
|
1016
1016
|
status: string;
|
|
1017
1017
|
title: string;
|
|
1018
1018
|
id: string;
|
|
1019
|
-
updatedAt: Date;
|
|
1020
|
-
summary: string | null;
|
|
1021
1019
|
orgId: string;
|
|
1022
1020
|
createdAt: Date;
|
|
1021
|
+
updatedAt: Date;
|
|
1022
|
+
summary: string | null;
|
|
1023
1023
|
preferredAgentId: string | null;
|
|
1024
1024
|
modelOverride: string | null;
|
|
1025
1025
|
effortOverride: string | null;
|
|
@@ -1056,10 +1056,10 @@ export declare function chatService(db: Db): {
|
|
|
1056
1056
|
status: string;
|
|
1057
1057
|
title: string;
|
|
1058
1058
|
id: string;
|
|
1059
|
-
updatedAt: Date;
|
|
1060
|
-
summary: string | null;
|
|
1061
1059
|
orgId: string;
|
|
1062
1060
|
createdAt: Date;
|
|
1061
|
+
updatedAt: Date;
|
|
1062
|
+
summary: string | null;
|
|
1063
1063
|
preferredAgentId: string | null;
|
|
1064
1064
|
modelOverride: string | null;
|
|
1065
1065
|
effortOverride: string | null;
|
|
@@ -1106,9 +1106,9 @@ export declare function chatService(db: Db): {
|
|
|
1106
1106
|
} | null;
|
|
1107
1107
|
conversationId: string;
|
|
1108
1108
|
id: string;
|
|
1109
|
-
updatedAt: Date;
|
|
1110
1109
|
orgId: string;
|
|
1111
1110
|
createdAt: Date;
|
|
1111
|
+
updatedAt: Date;
|
|
1112
1112
|
metadata: Record<string, unknown> | null;
|
|
1113
1113
|
entityType: string;
|
|
1114
1114
|
entityId: string;
|
|
@@ -1123,10 +1123,10 @@ export declare function chatService(db: Db): {
|
|
|
1123
1123
|
status: string;
|
|
1124
1124
|
title: string;
|
|
1125
1125
|
id: string;
|
|
1126
|
-
updatedAt: Date;
|
|
1127
|
-
summary: string | null;
|
|
1128
1126
|
orgId: string;
|
|
1129
1127
|
createdAt: Date;
|
|
1128
|
+
updatedAt: Date;
|
|
1129
|
+
summary: string | null;
|
|
1130
1130
|
preferredAgentId: string | null;
|
|
1131
1131
|
modelOverride: string | null;
|
|
1132
1132
|
effortOverride: string | null;
|
|
@@ -1173,9 +1173,9 @@ export declare function chatService(db: Db): {
|
|
|
1173
1173
|
} | null;
|
|
1174
1174
|
conversationId: string;
|
|
1175
1175
|
id: string;
|
|
1176
|
-
updatedAt: Date;
|
|
1177
1176
|
orgId: string;
|
|
1178
1177
|
createdAt: Date;
|
|
1178
|
+
updatedAt: Date;
|
|
1179
1179
|
metadata: Record<string, unknown> | null;
|
|
1180
1180
|
entityType: string;
|
|
1181
1181
|
entityId: string;
|
|
@@ -1190,10 +1190,10 @@ export declare function chatService(db: Db): {
|
|
|
1190
1190
|
status: string;
|
|
1191
1191
|
title: string;
|
|
1192
1192
|
id: string;
|
|
1193
|
-
updatedAt: Date;
|
|
1194
|
-
summary: string | null;
|
|
1195
1193
|
orgId: string;
|
|
1196
1194
|
createdAt: Date;
|
|
1195
|
+
updatedAt: Date;
|
|
1196
|
+
summary: string | null;
|
|
1197
1197
|
preferredAgentId: string | null;
|
|
1198
1198
|
modelOverride: string | null;
|
|
1199
1199
|
effortOverride: string | null;
|
|
@@ -1244,9 +1244,9 @@ export declare function chatService(db: Db): {
|
|
|
1244
1244
|
} | null;
|
|
1245
1245
|
conversationId: string;
|
|
1246
1246
|
id: string;
|
|
1247
|
-
updatedAt: Date;
|
|
1248
1247
|
orgId: string;
|
|
1249
1248
|
createdAt: Date;
|
|
1249
|
+
updatedAt: Date;
|
|
1250
1250
|
metadata: Record<string, unknown> | null;
|
|
1251
1251
|
entityType: string;
|
|
1252
1252
|
entityId: string;
|
|
@@ -1261,10 +1261,10 @@ export declare function chatService(db: Db): {
|
|
|
1261
1261
|
status: string;
|
|
1262
1262
|
title: string;
|
|
1263
1263
|
id: string;
|
|
1264
|
-
updatedAt: Date;
|
|
1265
|
-
summary: string | null;
|
|
1266
1264
|
orgId: string;
|
|
1267
1265
|
createdAt: Date;
|
|
1266
|
+
updatedAt: Date;
|
|
1267
|
+
summary: string | null;
|
|
1268
1268
|
preferredAgentId: string | null;
|
|
1269
1269
|
modelOverride: string | null;
|
|
1270
1270
|
effortOverride: string | null;
|
|
@@ -1315,9 +1315,9 @@ export declare function chatService(db: Db): {
|
|
|
1315
1315
|
} | null;
|
|
1316
1316
|
conversationId: string;
|
|
1317
1317
|
id: string;
|
|
1318
|
-
updatedAt: Date;
|
|
1319
1318
|
orgId: string;
|
|
1320
1319
|
createdAt: Date;
|
|
1320
|
+
updatedAt: Date;
|
|
1321
1321
|
metadata: Record<string, unknown> | null;
|
|
1322
1322
|
entityType: string;
|
|
1323
1323
|
entityId: string;
|
|
@@ -1332,10 +1332,10 @@ export declare function chatService(db: Db): {
|
|
|
1332
1332
|
status: string;
|
|
1333
1333
|
title: string;
|
|
1334
1334
|
id: string;
|
|
1335
|
-
updatedAt: Date;
|
|
1336
|
-
summary: string | null;
|
|
1337
1335
|
orgId: string;
|
|
1338
1336
|
createdAt: Date;
|
|
1337
|
+
updatedAt: Date;
|
|
1338
|
+
summary: string | null;
|
|
1339
1339
|
preferredAgentId: string | null;
|
|
1340
1340
|
modelOverride: string | null;
|
|
1341
1341
|
effortOverride: string | null;
|
|
@@ -1382,9 +1382,9 @@ export declare function chatService(db: Db): {
|
|
|
1382
1382
|
} | null;
|
|
1383
1383
|
conversationId: string;
|
|
1384
1384
|
id: string;
|
|
1385
|
-
updatedAt: Date;
|
|
1386
1385
|
orgId: string;
|
|
1387
1386
|
createdAt: Date;
|
|
1387
|
+
updatedAt: Date;
|
|
1388
1388
|
metadata: Record<string, unknown> | null;
|
|
1389
1389
|
entityType: string;
|
|
1390
1390
|
entityId: string;
|
|
@@ -1399,10 +1399,10 @@ export declare function chatService(db: Db): {
|
|
|
1399
1399
|
status: string;
|
|
1400
1400
|
title: string;
|
|
1401
1401
|
id: string;
|
|
1402
|
-
updatedAt: Date;
|
|
1403
|
-
summary: string | null;
|
|
1404
1402
|
orgId: string;
|
|
1405
1403
|
createdAt: Date;
|
|
1404
|
+
updatedAt: Date;
|
|
1405
|
+
summary: string | null;
|
|
1406
1406
|
preferredAgentId: string | null;
|
|
1407
1407
|
modelOverride: string | null;
|
|
1408
1408
|
effortOverride: string | null;
|
|
@@ -1449,9 +1449,9 @@ export declare function chatService(db: Db): {
|
|
|
1449
1449
|
} | null;
|
|
1450
1450
|
conversationId: string;
|
|
1451
1451
|
id: string;
|
|
1452
|
-
updatedAt: Date;
|
|
1453
1452
|
orgId: string;
|
|
1454
1453
|
createdAt: Date;
|
|
1454
|
+
updatedAt: Date;
|
|
1455
1455
|
metadata: Record<string, unknown> | null;
|
|
1456
1456
|
entityType: string;
|
|
1457
1457
|
entityId: string;
|
|
@@ -1466,10 +1466,10 @@ export declare function chatService(db: Db): {
|
|
|
1466
1466
|
status: string;
|
|
1467
1467
|
title: string;
|
|
1468
1468
|
id: string;
|
|
1469
|
-
updatedAt: Date;
|
|
1470
|
-
summary: string | null;
|
|
1471
1469
|
orgId: string;
|
|
1472
1470
|
createdAt: Date;
|
|
1471
|
+
updatedAt: Date;
|
|
1472
|
+
summary: string | null;
|
|
1473
1473
|
preferredAgentId: string | null;
|
|
1474
1474
|
modelOverride: string | null;
|
|
1475
1475
|
effortOverride: string | null;
|
|
@@ -1509,10 +1509,10 @@ export declare function chatService(db: Db): {
|
|
|
1509
1509
|
status: string;
|
|
1510
1510
|
title: string;
|
|
1511
1511
|
id: string;
|
|
1512
|
-
updatedAt: Date;
|
|
1513
|
-
summary: string | null;
|
|
1514
1512
|
orgId: string;
|
|
1515
1513
|
createdAt: Date;
|
|
1514
|
+
updatedAt: Date;
|
|
1515
|
+
summary: string | null;
|
|
1516
1516
|
preferredAgentId: string | null;
|
|
1517
1517
|
modelOverride: string | null;
|
|
1518
1518
|
effortOverride: string | null;
|
|
@@ -1566,9 +1566,9 @@ export declare function chatService(db: Db): {
|
|
|
1566
1566
|
} | null;
|
|
1567
1567
|
conversationId: string;
|
|
1568
1568
|
id: string;
|
|
1569
|
-
updatedAt: Date;
|
|
1570
1569
|
orgId: string;
|
|
1571
1570
|
createdAt: Date;
|
|
1571
|
+
updatedAt: Date;
|
|
1572
1572
|
metadata: Record<string, unknown> | null;
|
|
1573
1573
|
entityType: string;
|
|
1574
1574
|
entityId: string;
|
|
@@ -1583,10 +1583,10 @@ export declare function chatService(db: Db): {
|
|
|
1583
1583
|
status: string;
|
|
1584
1584
|
title: string;
|
|
1585
1585
|
id: string;
|
|
1586
|
-
updatedAt: Date;
|
|
1587
|
-
summary: string | null;
|
|
1588
1586
|
orgId: string;
|
|
1589
1587
|
createdAt: Date;
|
|
1588
|
+
updatedAt: Date;
|
|
1589
|
+
summary: string | null;
|
|
1590
1590
|
preferredAgentId: string | null;
|
|
1591
1591
|
modelOverride: string | null;
|
|
1592
1592
|
effortOverride: string | null;
|
|
@@ -1633,9 +1633,9 @@ export declare function chatService(db: Db): {
|
|
|
1633
1633
|
} | null;
|
|
1634
1634
|
conversationId: string;
|
|
1635
1635
|
id: string;
|
|
1636
|
-
updatedAt: Date;
|
|
1637
1636
|
orgId: string;
|
|
1638
1637
|
createdAt: Date;
|
|
1638
|
+
updatedAt: Date;
|
|
1639
1639
|
metadata: Record<string, unknown> | null;
|
|
1640
1640
|
entityType: string;
|
|
1641
1641
|
entityId: string;
|
|
@@ -1650,10 +1650,10 @@ export declare function chatService(db: Db): {
|
|
|
1650
1650
|
status: string;
|
|
1651
1651
|
title: string;
|
|
1652
1652
|
id: string;
|
|
1653
|
-
updatedAt: Date;
|
|
1654
|
-
summary: string | null;
|
|
1655
1653
|
orgId: string;
|
|
1656
1654
|
createdAt: Date;
|
|
1655
|
+
updatedAt: Date;
|
|
1656
|
+
summary: string | null;
|
|
1657
1657
|
preferredAgentId: string | null;
|
|
1658
1658
|
modelOverride: string | null;
|
|
1659
1659
|
effortOverride: string | null;
|
|
@@ -1678,9 +1678,9 @@ export declare function chatService(db: Db): {
|
|
|
1678
1678
|
markRead: (conversationId: string, orgId: string, userId: string, readAt?: Date) => Promise<{
|
|
1679
1679
|
conversationId: string;
|
|
1680
1680
|
id: string;
|
|
1681
|
-
updatedAt: Date;
|
|
1682
1681
|
orgId: string;
|
|
1683
1682
|
createdAt: Date;
|
|
1683
|
+
updatedAt: Date;
|
|
1684
1684
|
userId: string;
|
|
1685
1685
|
pinnedAt: Date | null;
|
|
1686
1686
|
lastReadAt: Date;
|
|
@@ -1688,9 +1688,9 @@ export declare function chatService(db: Db): {
|
|
|
1688
1688
|
markUnread: (conversationId: string, orgId: string, userId: string) => Promise<{
|
|
1689
1689
|
conversationId: string;
|
|
1690
1690
|
id: string;
|
|
1691
|
-
updatedAt: Date;
|
|
1692
1691
|
orgId: string;
|
|
1693
1692
|
createdAt: Date;
|
|
1693
|
+
updatedAt: Date;
|
|
1694
1694
|
userId: string;
|
|
1695
1695
|
pinnedAt: Date | null;
|
|
1696
1696
|
lastReadAt: Date;
|
|
@@ -1698,9 +1698,9 @@ export declare function chatService(db: Db): {
|
|
|
1698
1698
|
setPinned: (conversationId: string, orgId: string, userId: string, pinned: boolean) => Promise<{
|
|
1699
1699
|
conversationId: string;
|
|
1700
1700
|
id: string;
|
|
1701
|
-
updatedAt: Date;
|
|
1702
1701
|
orgId: string;
|
|
1703
1702
|
createdAt: Date;
|
|
1703
|
+
updatedAt: Date;
|
|
1704
1704
|
userId: string;
|
|
1705
1705
|
pinnedAt: Date | null;
|
|
1706
1706
|
lastReadAt: Date;
|
|
@@ -1821,11 +1821,11 @@ export declare function chatService(db: Db): {
|
|
|
1821
1821
|
queueItemId?: string | null;
|
|
1822
1822
|
emittedAt?: Date | null;
|
|
1823
1823
|
}) => Promise<{
|
|
1824
|
-
generationId: string;
|
|
1825
|
-
id: string;
|
|
1826
|
-
runId: string | null;
|
|
1827
1824
|
assistantMessageId: string | null;
|
|
1825
|
+
id: string;
|
|
1828
1826
|
orgId: string;
|
|
1827
|
+
runId: string | null;
|
|
1828
|
+
generationId: string;
|
|
1829
1829
|
payload: Record<string, unknown>;
|
|
1830
1830
|
controlActionId: string | null;
|
|
1831
1831
|
attemptEpoch: number;
|
|
@@ -2268,9 +2268,9 @@ export declare function chatService(db: Db): {
|
|
|
2268
2268
|
approval: {
|
|
2269
2269
|
status: string;
|
|
2270
2270
|
id: string;
|
|
2271
|
-
updatedAt: Date;
|
|
2272
2271
|
orgId: string;
|
|
2273
2272
|
createdAt: Date;
|
|
2273
|
+
updatedAt: Date;
|
|
2274
2274
|
type: string;
|
|
2275
2275
|
payload: Record<string, unknown>;
|
|
2276
2276
|
decisionNote: string | null;
|
|
@@ -2283,11 +2283,11 @@ export declare function chatService(db: Db): {
|
|
|
2283
2283
|
status: string;
|
|
2284
2284
|
conversationId: string;
|
|
2285
2285
|
id: string;
|
|
2286
|
-
runId: string | null;
|
|
2287
|
-
updatedAt: Date;
|
|
2288
|
-
kind: string;
|
|
2289
2286
|
orgId: string;
|
|
2287
|
+
kind: string;
|
|
2290
2288
|
createdAt: Date;
|
|
2289
|
+
updatedAt: Date;
|
|
2290
|
+
runId: string | null;
|
|
2291
2291
|
body: string;
|
|
2292
2292
|
role: string;
|
|
2293
2293
|
approvalId: string | null;
|
|
@@ -2322,9 +2322,9 @@ export declare function chatService(db: Db): {
|
|
|
2322
2322
|
approval: {
|
|
2323
2323
|
status: string;
|
|
2324
2324
|
id: string;
|
|
2325
|
-
updatedAt: Date;
|
|
2326
2325
|
orgId: string;
|
|
2327
2326
|
createdAt: Date;
|
|
2327
|
+
updatedAt: Date;
|
|
2328
2328
|
type: string;
|
|
2329
2329
|
payload: Record<string, unknown>;
|
|
2330
2330
|
decisionNote: string | null;
|
|
@@ -2337,11 +2337,11 @@ export declare function chatService(db: Db): {
|
|
|
2337
2337
|
status: string;
|
|
2338
2338
|
conversationId: string;
|
|
2339
2339
|
id: string;
|
|
2340
|
-
runId: string | null;
|
|
2341
|
-
updatedAt: Date;
|
|
2342
|
-
kind: string;
|
|
2343
2340
|
orgId: string;
|
|
2341
|
+
kind: string;
|
|
2344
2342
|
createdAt: Date;
|
|
2343
|
+
updatedAt: Date;
|
|
2344
|
+
runId: string | null;
|
|
2345
2345
|
body: string;
|
|
2346
2346
|
role: string;
|
|
2347
2347
|
approvalId: string | null;
|
|
@@ -2368,9 +2368,9 @@ export declare function chatService(db: Db): {
|
|
|
2368
2368
|
approval: {
|
|
2369
2369
|
status: string;
|
|
2370
2370
|
id: string;
|
|
2371
|
-
updatedAt: Date;
|
|
2372
2371
|
orgId: string;
|
|
2373
2372
|
createdAt: Date;
|
|
2373
|
+
updatedAt: Date;
|
|
2374
2374
|
type: string;
|
|
2375
2375
|
payload: Record<string, unknown>;
|
|
2376
2376
|
decisionNote: string | null;
|
|
@@ -2383,11 +2383,11 @@ export declare function chatService(db: Db): {
|
|
|
2383
2383
|
status: string;
|
|
2384
2384
|
conversationId: string;
|
|
2385
2385
|
id: string;
|
|
2386
|
-
runId: string | null;
|
|
2387
|
-
updatedAt: Date;
|
|
2388
|
-
kind: string;
|
|
2389
2386
|
orgId: string;
|
|
2387
|
+
kind: string;
|
|
2390
2388
|
createdAt: Date;
|
|
2389
|
+
updatedAt: Date;
|
|
2390
|
+
runId: string | null;
|
|
2391
2391
|
body: string;
|
|
2392
2392
|
role: string;
|
|
2393
2393
|
approvalId: string | null;
|
|
@@ -2405,9 +2405,9 @@ export declare function chatService(db: Db): {
|
|
|
2405
2405
|
approval: {
|
|
2406
2406
|
status: string;
|
|
2407
2407
|
id: string;
|
|
2408
|
-
updatedAt: Date;
|
|
2409
2408
|
orgId: string;
|
|
2410
2409
|
createdAt: Date;
|
|
2410
|
+
updatedAt: Date;
|
|
2411
2411
|
type: string;
|
|
2412
2412
|
payload: Record<string, unknown>;
|
|
2413
2413
|
decisionNote: string | null;
|
|
@@ -2420,11 +2420,11 @@ export declare function chatService(db: Db): {
|
|
|
2420
2420
|
status: string;
|
|
2421
2421
|
conversationId: string;
|
|
2422
2422
|
id: string;
|
|
2423
|
-
runId: string | null;
|
|
2424
|
-
updatedAt: Date;
|
|
2425
|
-
kind: string;
|
|
2426
2423
|
orgId: string;
|
|
2424
|
+
kind: string;
|
|
2427
2425
|
createdAt: Date;
|
|
2426
|
+
updatedAt: Date;
|
|
2427
|
+
runId: string | null;
|
|
2428
2428
|
body: string;
|
|
2429
2429
|
role: string;
|
|
2430
2430
|
approvalId: string | null;
|
|
@@ -2445,9 +2445,9 @@ export declare function chatService(db: Db): {
|
|
|
2445
2445
|
approval: {
|
|
2446
2446
|
status: string;
|
|
2447
2447
|
id: string;
|
|
2448
|
-
updatedAt: Date;
|
|
2449
2448
|
orgId: string;
|
|
2450
2449
|
createdAt: Date;
|
|
2450
|
+
updatedAt: Date;
|
|
2451
2451
|
type: string;
|
|
2452
2452
|
payload: Record<string, unknown>;
|
|
2453
2453
|
decisionNote: string | null;
|
|
@@ -2460,11 +2460,11 @@ export declare function chatService(db: Db): {
|
|
|
2460
2460
|
status: string;
|
|
2461
2461
|
conversationId: string;
|
|
2462
2462
|
id: string;
|
|
2463
|
-
runId: string | null;
|
|
2464
|
-
updatedAt: Date;
|
|
2465
|
-
kind: string;
|
|
2466
2463
|
orgId: string;
|
|
2464
|
+
kind: string;
|
|
2467
2465
|
createdAt: Date;
|
|
2466
|
+
updatedAt: Date;
|
|
2467
|
+
runId: string | null;
|
|
2468
2468
|
body: string;
|
|
2469
2469
|
role: string;
|
|
2470
2470
|
approvalId: string | null;
|
|
@@ -2482,9 +2482,9 @@ export declare function chatService(db: Db): {
|
|
|
2482
2482
|
approval: {
|
|
2483
2483
|
status: string;
|
|
2484
2484
|
id: string;
|
|
2485
|
-
updatedAt: Date;
|
|
2486
2485
|
orgId: string;
|
|
2487
2486
|
createdAt: Date;
|
|
2487
|
+
updatedAt: Date;
|
|
2488
2488
|
type: string;
|
|
2489
2489
|
payload: Record<string, unknown>;
|
|
2490
2490
|
decisionNote: string | null;
|
|
@@ -2497,11 +2497,11 @@ export declare function chatService(db: Db): {
|
|
|
2497
2497
|
status: string;
|
|
2498
2498
|
conversationId: string;
|
|
2499
2499
|
id: string;
|
|
2500
|
-
runId: string | null;
|
|
2501
|
-
updatedAt: Date;
|
|
2502
|
-
kind: string;
|
|
2503
2500
|
orgId: string;
|
|
2501
|
+
kind: string;
|
|
2504
2502
|
createdAt: Date;
|
|
2503
|
+
updatedAt: Date;
|
|
2504
|
+
runId: string | null;
|
|
2505
2505
|
body: string;
|
|
2506
2506
|
role: string;
|
|
2507
2507
|
approvalId: string | null;
|
|
@@ -2529,9 +2529,9 @@ export declare function chatService(db: Db): {
|
|
|
2529
2529
|
} | null;
|
|
2530
2530
|
conversationId: string;
|
|
2531
2531
|
id: string;
|
|
2532
|
-
updatedAt: Date;
|
|
2533
2532
|
orgId: string;
|
|
2534
2533
|
createdAt: Date;
|
|
2534
|
+
updatedAt: Date;
|
|
2535
2535
|
metadata: Record<string, unknown> | null;
|
|
2536
2536
|
entityType: string;
|
|
2537
2537
|
entityId: string;
|
|
@@ -2561,9 +2561,9 @@ export declare function chatService(db: Db): {
|
|
|
2561
2561
|
} | null;
|
|
2562
2562
|
conversationId: string;
|
|
2563
2563
|
id: string;
|
|
2564
|
-
updatedAt: Date;
|
|
2565
2564
|
orgId: string;
|
|
2566
2565
|
createdAt: Date;
|
|
2566
|
+
updatedAt: Date;
|
|
2567
2567
|
metadata: Record<string, unknown> | null;
|
|
2568
2568
|
entityType: string;
|
|
2569
2569
|
entityId: string;
|
|
@@ -2578,10 +2578,10 @@ export declare function chatService(db: Db): {
|
|
|
2578
2578
|
status: string;
|
|
2579
2579
|
title: string;
|
|
2580
2580
|
id: string;
|
|
2581
|
-
updatedAt: Date;
|
|
2582
|
-
summary: string | null;
|
|
2583
2581
|
orgId: string;
|
|
2584
2582
|
createdAt: Date;
|
|
2583
|
+
updatedAt: Date;
|
|
2584
|
+
summary: string | null;
|
|
2585
2585
|
preferredAgentId: string | null;
|
|
2586
2586
|
modelOverride: string | null;
|
|
2587
2587
|
effortOverride: string | null;
|
|
@@ -2628,9 +2628,9 @@ export declare function chatService(db: Db): {
|
|
|
2628
2628
|
conversationId: string;
|
|
2629
2629
|
messageId: string;
|
|
2630
2630
|
id: string;
|
|
2631
|
-
updatedAt: Date;
|
|
2632
2631
|
orgId: string;
|
|
2633
2632
|
createdAt: Date;
|
|
2633
|
+
updatedAt: Date;
|
|
2634
2634
|
assetId: string;
|
|
2635
2635
|
}>;
|
|
2636
2636
|
removeAttachment: (attachmentId: string) => Promise<{
|
|
@@ -2651,9 +2651,9 @@ export declare function chatService(db: Db): {
|
|
|
2651
2651
|
icon: string | null;
|
|
2652
2652
|
title: string | null;
|
|
2653
2653
|
id: string;
|
|
2654
|
-
updatedAt: Date;
|
|
2655
2654
|
orgId: string;
|
|
2656
2655
|
createdAt: Date;
|
|
2656
|
+
updatedAt: Date;
|
|
2657
2657
|
name: string;
|
|
2658
2658
|
metadata: Record<string, unknown> | null;
|
|
2659
2659
|
role: string;
|
|
@@ -2703,9 +2703,9 @@ export declare function chatService(db: Db): {
|
|
|
2703
2703
|
}) => Promise<{
|
|
2704
2704
|
status: string;
|
|
2705
2705
|
id: string;
|
|
2706
|
-
updatedAt: Date;
|
|
2707
2706
|
orgId: string;
|
|
2708
2707
|
createdAt: Date;
|
|
2708
|
+
updatedAt: Date;
|
|
2709
2709
|
type: string;
|
|
2710
2710
|
payload: Record<string, unknown>;
|
|
2711
2711
|
decisionNote: string | null;
|
|
@@ -2728,9 +2728,9 @@ export declare function chatService(db: Db): {
|
|
|
2728
2728
|
approval: {
|
|
2729
2729
|
status: string;
|
|
2730
2730
|
id: string;
|
|
2731
|
-
updatedAt: Date;
|
|
2732
2731
|
orgId: string;
|
|
2733
2732
|
createdAt: Date;
|
|
2733
|
+
updatedAt: Date;
|
|
2734
2734
|
type: string;
|
|
2735
2735
|
payload: Record<string, unknown>;
|
|
2736
2736
|
decisionNote: string | null;
|
|
@@ -2743,11 +2743,11 @@ export declare function chatService(db: Db): {
|
|
|
2743
2743
|
status: string;
|
|
2744
2744
|
conversationId: string;
|
|
2745
2745
|
id: string;
|
|
2746
|
-
runId: string | null;
|
|
2747
|
-
updatedAt: Date;
|
|
2748
|
-
kind: string;
|
|
2749
2746
|
orgId: string;
|
|
2747
|
+
kind: string;
|
|
2750
2748
|
createdAt: Date;
|
|
2749
|
+
updatedAt: Date;
|
|
2750
|
+
runId: string | null;
|
|
2751
2751
|
body: string;
|
|
2752
2752
|
role: string;
|
|
2753
2753
|
approvalId: string | null;
|
|
@@ -2765,9 +2765,9 @@ export declare function chatService(db: Db): {
|
|
|
2765
2765
|
approval: {
|
|
2766
2766
|
status: string;
|
|
2767
2767
|
id: string;
|
|
2768
|
-
updatedAt: Date;
|
|
2769
2768
|
orgId: string;
|
|
2770
2769
|
createdAt: Date;
|
|
2770
|
+
updatedAt: Date;
|
|
2771
2771
|
type: string;
|
|
2772
2772
|
payload: Record<string, unknown>;
|
|
2773
2773
|
decisionNote: string | null;
|
|
@@ -2780,11 +2780,11 @@ export declare function chatService(db: Db): {
|
|
|
2780
2780
|
status: string;
|
|
2781
2781
|
conversationId: string;
|
|
2782
2782
|
id: string;
|
|
2783
|
-
runId: string | null;
|
|
2784
|
-
updatedAt: Date;
|
|
2785
|
-
kind: string;
|
|
2786
2783
|
orgId: string;
|
|
2784
|
+
kind: string;
|
|
2787
2785
|
createdAt: Date;
|
|
2786
|
+
updatedAt: Date;
|
|
2787
|
+
runId: string | null;
|
|
2788
2788
|
body: string;
|
|
2789
2789
|
role: string;
|
|
2790
2790
|
approvalId: string | null;
|