agent-tower 0.5.2-beta.5 → 0.5.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/dist/cli.js +14 -0
  2. package/dist/cli.js.map +1 -1
  3. package/dist/executors/__tests__/base.executor.test.js +12 -0
  4. package/dist/executors/__tests__/base.executor.test.js.map +1 -1
  5. package/dist/executors/execution-env.d.ts +1 -1
  6. package/dist/executors/execution-env.d.ts.map +1 -1
  7. package/dist/executors/execution-env.js +4 -0
  8. package/dist/executors/execution-env.js.map +1 -1
  9. package/dist/routes/conversations.d.ts +3 -0
  10. package/dist/routes/conversations.d.ts.map +1 -0
  11. package/dist/routes/conversations.js +102 -0
  12. package/dist/routes/conversations.js.map +1 -0
  13. package/dist/routes/index.d.ts.map +1 -1
  14. package/dist/routes/index.js +3 -0
  15. package/dist/routes/index.js.map +1 -1
  16. package/dist/routes/sessions.d.ts.map +1 -1
  17. package/dist/routes/sessions.js +37 -21
  18. package/dist/routes/sessions.js.map +1 -1
  19. package/dist/services/__tests__/conversation.service.test.d.ts +2 -0
  20. package/dist/services/__tests__/conversation.service.test.d.ts.map +1 -0
  21. package/dist/services/__tests__/conversation.service.test.js +102 -0
  22. package/dist/services/__tests__/conversation.service.test.js.map +1 -0
  23. package/dist/services/commit-message.service.d.ts.map +1 -1
  24. package/dist/services/commit-message.service.js +4 -0
  25. package/dist/services/commit-message.service.js.map +1 -1
  26. package/dist/services/conversation.service.d.ts +26 -0
  27. package/dist/services/conversation.service.d.ts.map +1 -0
  28. package/dist/services/conversation.service.js +224 -0
  29. package/dist/services/conversation.service.js.map +1 -0
  30. package/dist/services/session-manager.d.ts +69 -13
  31. package/dist/services/session-manager.d.ts.map +1 -1
  32. package/dist/services/session-manager.js +107 -42
  33. package/dist/services/session-manager.js.map +1 -1
  34. package/dist/services/task.service.d.ts +2 -2
  35. package/dist/services/terminal-manager.d.ts.map +1 -1
  36. package/dist/services/terminal-manager.js +2 -0
  37. package/dist/services/terminal-manager.js.map +1 -1
  38. package/dist/services/workspace.service.d.ts +9 -7
  39. package/dist/services/workspace.service.d.ts.map +1 -1
  40. package/dist/types/index.d.ts +4 -0
  41. package/dist/types/index.d.ts.map +1 -1
  42. package/dist/types/index.js +6 -0
  43. package/dist/types/index.js.map +1 -1
  44. package/dist/web/assets/AgentDemoPage-CUgqAjq9.js +1 -0
  45. package/dist/web/assets/ConversationPage-Cyiw8Hra.js +3 -0
  46. package/dist/web/assets/CreateTaskInput-BILlpv9b.js +2 -0
  47. package/dist/web/assets/{DemoPage-CaV94VWQ.js → DemoPage-SywVXjL0.js} +1 -1
  48. package/dist/web/assets/{GeneralSettingsPage-CyBUcF5g.js → GeneralSettingsPage-CTymytF6.js} +1 -1
  49. package/dist/web/assets/Icons-DmLVnVdg.js +1 -0
  50. package/dist/web/assets/{McpSettingsPage-CzE9eriX.js → McpSettingsPage-DyolUN8C.js} +1 -1
  51. package/dist/web/assets/{MemberAvatar-ChVx4wRa.js → MemberAvatar-u6jTOiDY.js} +1 -1
  52. package/dist/web/assets/NotificationSettingsPage-BBop2Bu4.js +1 -0
  53. package/dist/web/assets/ProfileSettingsPage-Bw-eI0cF.js +3 -0
  54. package/dist/web/assets/ProjectKanbanPage-BFf2FZVz.js +89 -0
  55. package/dist/web/assets/ProjectSettingsPage-BJ4sOhMl.js +2 -0
  56. package/dist/web/assets/{ProviderSettingsPage-DRUxVjQu.js → ProviderSettingsPage-BlLaN0i2.js} +19 -19
  57. package/dist/web/assets/{SettingsMasterDetail-CTXxGe3o.js → SettingsMasterDetail-CdimTj5n.js} +1 -1
  58. package/dist/web/assets/TeamSettingsPage-CqQTc5AI.js +1 -0
  59. package/dist/web/assets/arc-Ddp5hhH6.js +1 -0
  60. package/dist/web/assets/architectureDiagram-3BPJPVTR-CpK7WDLU.js +36 -0
  61. package/dist/web/assets/{arrow-left-D8mdzO_t.js → arrow-left-B6KMicbE.js} +1 -1
  62. package/dist/web/assets/blockDiagram-GPEHLZMM-6_0hov2h.js +132 -0
  63. package/dist/web/assets/c4Diagram-AAUBKEIU-Br6Tzu3R.js +10 -0
  64. package/dist/web/assets/channel-Bg_GO2e9.js +1 -0
  65. package/dist/web/assets/check-D9lM__p8.js +1 -0
  66. package/dist/web/assets/{chevron-down-DBS9-_Q3.js → chevron-down-Cur5jANy.js} +1 -1
  67. package/dist/web/assets/{chevron-right-pRSZZk-l.js → chevron-right-R3KVa8oQ.js} +1 -1
  68. package/dist/web/assets/{chevron-up-Bv9reJY4.js → chevron-up-DcLdFanO.js} +1 -1
  69. package/dist/web/assets/chunk-2J33WTMH-D8zyttB-.js +1 -0
  70. package/dist/web/assets/chunk-4BX2VUAB-Cqi9xJ8M.js +1 -0
  71. package/dist/web/assets/chunk-55IACEB6-Dxjaitf1.js +1 -0
  72. package/dist/web/assets/chunk-727SXJPM-CAn8Y9XB.js +206 -0
  73. package/dist/web/assets/chunk-AQP2D5EJ-B4sECH9U.js +231 -0
  74. package/dist/web/assets/chunk-FMBD7UC4-Ckd3e1dg.js +15 -0
  75. package/dist/web/assets/chunk-ND2GUHAM-h5WBT7BK.js +1 -0
  76. package/dist/web/assets/chunk-QZHKN3VN-Cdzk46MK.js +1 -0
  77. package/dist/web/assets/{circle-alert-DdGuxtmq.js → circle-alert-OKyZ9U2p.js} +1 -1
  78. package/dist/web/assets/classDiagram-4FO5ZUOK-BeJctdRx.js +1 -0
  79. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-BeJctdRx.js +1 -0
  80. package/dist/web/assets/{code-block-OCS4YCEC-k5CJUaBc.js → code-block-OCS4YCEC-VMJOsrkF.js} +1 -1
  81. package/dist/web/assets/{confirm-dialog-Bit5jNx2.js → confirm-dialog-BAnxa2C9.js} +1 -1
  82. package/dist/web/assets/cose-bilkent-S5V4N54A-CbFey2pd.js +1 -0
  83. package/dist/web/assets/cytoscape.esm-D3_iZ_3b.js +321 -0
  84. package/dist/web/assets/dagre-BM42HDAG-Bd2eIyf3.js +4 -0
  85. package/dist/web/assets/defaultLocale-DX6XiGOO.js +1 -0
  86. package/dist/web/assets/diagram-2AECGRRQ-CXONvVnW.js +43 -0
  87. package/dist/web/assets/diagram-5GNKFQAL-B2E90mVs.js +10 -0
  88. package/dist/web/assets/diagram-KO2AKTUF-ByaC99pb.js +3 -0
  89. package/dist/web/assets/diagram-LMA3HP47-DwVBF2fn.js +24 -0
  90. package/dist/web/assets/diagram-OG6HWLK6-FWRddceo.js +24 -0
  91. package/dist/web/assets/erDiagram-TEJ5UH35-ye6i3SGj.js +85 -0
  92. package/dist/web/assets/flowDiagram-I6XJVG4X-B6l7qTcg.js +162 -0
  93. package/dist/web/assets/folder-B0m3OL2U.js +1 -0
  94. package/dist/web/assets/folder-picker-D5XrSfLA.js +1 -0
  95. package/dist/web/assets/ganttDiagram-6RSMTGT7-BCCqDrep.js +292 -0
  96. package/dist/web/assets/gitGraphDiagram-PVQCEYII-Ca4ANaSw.js +106 -0
  97. package/dist/web/assets/graph--OzhPTMs.js +1 -0
  98. package/dist/web/assets/index-C4twOgZR.css +1 -0
  99. package/dist/web/assets/index-C9hQg1KT.js +303 -0
  100. package/dist/web/assets/{index-B48HCCvn.js → index-DbO4YyUv.js} +6 -6
  101. package/dist/web/assets/infoDiagram-5YYISTIA-D1V1Tezr.js +2 -0
  102. package/dist/web/assets/init-Gi6I4Gst.js +1 -0
  103. package/dist/web/assets/{input-CapacyJb.js → input-Dqnd4oTj.js} +1 -1
  104. package/dist/web/assets/ishikawaDiagram-YF4QCWOH-DnGiJn9p.js +70 -0
  105. package/dist/web/assets/journeyDiagram-JHISSGLW-QFxbLfhN.js +139 -0
  106. package/dist/web/assets/kanban-definition-UN3LZRKU-BA2nBc7B.js +89 -0
  107. package/dist/web/assets/katex-HP8lGamR.js +257 -0
  108. package/dist/web/assets/{layers-CifLa7KP.js → layers-CfFYGUtI.js} +1 -1
  109. package/dist/web/assets/layout-SsrduOYp.js +1 -0
  110. package/dist/web/assets/linear-DpASQZmA.js +1 -0
  111. package/dist/web/assets/{loader-circle-CRx0_e2Z.js → loader-circle-B5Lfi46Y.js} +1 -1
  112. package/dist/web/assets/log-adapter-CjgRCCYG.js +1 -0
  113. package/dist/web/assets/{mermaid-NOHMQCX5-TDWqrpYr.js → mermaid-NOHMQCX5-7FmPQynq.js} +60 -60
  114. package/dist/web/assets/{message-square-BQB-4uFy.js → message-square-CEefL0sf.js} +1 -1
  115. package/dist/web/assets/mindmap-definition-RKZ34NQL-C7QuD-ms.js +96 -0
  116. package/dist/web/assets/modal-CAB_bs-c.js +1 -0
  117. package/dist/web/assets/ordinal-Cboi1Yqb.js +1 -0
  118. package/dist/web/assets/{pencil-D0ZsDzqo.js → pencil-B__GQn9r.js} +1 -1
  119. package/dist/web/assets/pieDiagram-4H26LBE5-Bf5diCKb.js +30 -0
  120. package/dist/web/assets/quadrantDiagram-W4KKPZXB-BMbcPnH3.js +7 -0
  121. package/dist/web/assets/requirementDiagram-4Y6WPE33-CUPvJXMk.js +84 -0
  122. package/dist/web/assets/{rotate-ccw-Cm5Zx65C.js → rotate-ccw-5d-eMwsw.js} +1 -1
  123. package/dist/web/assets/sankeyDiagram-5OEKKPKP-C77g6vmK.js +40 -0
  124. package/dist/web/assets/{select-YFykpbyQ.js → select-BJfNuuIV.js} +1 -1
  125. package/dist/web/assets/sequenceDiagram-3UESZ5HK-xGOV8CdQ.js +162 -0
  126. package/dist/web/assets/stateDiagram-AJRCARHV-Bc0piegy.js +1 -0
  127. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-CiRT9t6d.js +1 -0
  128. package/dist/web/assets/{switch-D5RS57YU.js → switch-bLlDOWNp.js} +1 -1
  129. package/dist/web/assets/{terminal-r3vqhdyt.js → terminal-Bh2qSv0U.js} +1 -1
  130. package/dist/web/assets/{textarea-PjCFOxmD.js → textarea-BcVRpxhF.js} +1 -1
  131. package/dist/web/assets/timeline-definition-PNZ67QCA-CcACRt_V.js +120 -0
  132. package/dist/web/assets/trash-2-8Pu6lwnW.js +1 -0
  133. package/dist/web/assets/{upload-BkWqEmQd.js → upload-DNwyW_bv.js} +1 -1
  134. package/dist/web/assets/{use-profiles-Ch0Rlrh-.js → use-profiles-BIqkQu69.js} +1 -1
  135. package/dist/web/assets/{use-providers-CSQgeUSp.js → use-providers-BOyY0DcV.js} +1 -1
  136. package/dist/web/assets/vennDiagram-CIIHVFJN-BC9RHBQ5.js +34 -0
  137. package/dist/web/assets/wardley-L42UT6IY-BgPj73Dc.js +161 -0
  138. package/dist/web/assets/wardleyDiagram-YWT4CUSO-PbfDUndy.js +78 -0
  139. package/dist/web/assets/xychartDiagram-2RQKCTM6-D87KYJUM.js +7 -0
  140. package/dist/web/index.html +2 -2
  141. package/node_modules/@agent-tower/shared/dist/types.d.ts +41 -1
  142. package/node_modules/@agent-tower/shared/dist/types.d.ts.map +1 -1
  143. package/node_modules/@agent-tower/shared/dist/types.js +8 -0
  144. package/node_modules/@agent-tower/shared/dist/types.js.map +1 -1
  145. package/node_modules/@prisma/client/.prisma/client/edge.js +21 -6
  146. package/node_modules/@prisma/client/.prisma/client/index-browser.js +14 -0
  147. package/node_modules/@prisma/client/.prisma/client/index.d.ts +1789 -211
  148. package/node_modules/@prisma/client/.prisma/client/index.js +21 -6
  149. package/node_modules/@prisma/client/.prisma/client/package.json +1 -1
  150. package/node_modules/@prisma/client/.prisma/client/schema.prisma +34 -14
  151. package/node_modules/@prisma/client/.prisma/client/wasm.js +14 -0
  152. package/package.json +1 -1
  153. package/prisma/migrations/20260618000000_add_conversations/migration.sql +79 -0
  154. package/prisma/schema.prisma +22 -2
  155. package/dist/web/assets/AgentDemoPage-DYU0dSD9.js +0 -1
  156. package/dist/web/assets/NotificationSettingsPage-C68vNTcP.js +0 -1
  157. package/dist/web/assets/ProfileSettingsPage-CRz5C2OS.js +0 -3
  158. package/dist/web/assets/ProjectKanbanPage-Tmp1bu4q.js +0 -89
  159. package/dist/web/assets/ProjectSettingsPage-CVTWLRxT.js +0 -2
  160. package/dist/web/assets/TeamSettingsPage-DjP8gj71.js +0 -1
  161. package/dist/web/assets/check-CadkXmJ-.js +0 -1
  162. package/dist/web/assets/folder-picker-DSfmubl6.js +0 -1
  163. package/dist/web/assets/index-LbQD7FZK.css +0 -1
  164. package/dist/web/assets/log-adapter-CtvxzS4j.js +0 -1
  165. package/dist/web/assets/modal-B6TZLhQ2.js +0 -1
@@ -78,6 +78,11 @@ export type AgentInvocation = $Result.DefaultSelection<Prisma.$AgentInvocationPa
78
78
  *
79
79
  */
80
80
  export type Workspace = $Result.DefaultSelection<Prisma.$WorkspacePayload>
81
+ /**
82
+ * Model Conversation
83
+ *
84
+ */
85
+ export type Conversation = $Result.DefaultSelection<Prisma.$ConversationPayload>
81
86
  /**
82
87
  * Model Session
83
88
  *
@@ -362,6 +367,16 @@ export class PrismaClient<
362
367
  */
363
368
  get workspace(): Prisma.WorkspaceDelegate<ExtArgs>;
364
369
 
370
+ /**
371
+ * `prisma.conversation`: Exposes CRUD operations for the **Conversation** model.
372
+ * Example usage:
373
+ * ```ts
374
+ * // Fetch zero or more Conversations
375
+ * const conversations = await prisma.conversation.findMany()
376
+ * ```
377
+ */
378
+ get conversation(): Prisma.ConversationDelegate<ExtArgs>;
379
+
365
380
  /**
366
381
  * `prisma.session`: Exposes CRUD operations for the **Session** model.
367
382
  * Example usage:
@@ -875,6 +890,7 @@ export namespace Prisma {
875
890
  WorkRequest: 'WorkRequest',
876
891
  AgentInvocation: 'AgentInvocation',
877
892
  Workspace: 'Workspace',
893
+ Conversation: 'Conversation',
878
894
  Session: 'Session',
879
895
  ExecutionProcess: 'ExecutionProcess',
880
896
  ExecutionLog: 'ExecutionLog',
@@ -896,7 +912,7 @@ export namespace Prisma {
896
912
 
897
913
  export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> = {
898
914
  meta: {
899
- modelProps: "project" | "task" | "taskCleanupJob" | "memberPreset" | "teamTemplate" | "teamTemplateMember" | "teamRun" | "teamMember" | "roomMessage" | "roomMessageParticipant" | "workRequest" | "agentInvocation" | "workspace" | "session" | "executionProcess" | "executionLog" | "attachment" | "appSettings" | "notificationSettings"
915
+ modelProps: "project" | "task" | "taskCleanupJob" | "memberPreset" | "teamTemplate" | "teamTemplateMember" | "teamRun" | "teamMember" | "roomMessage" | "roomMessageParticipant" | "workRequest" | "agentInvocation" | "workspace" | "conversation" | "session" | "executionProcess" | "executionLog" | "attachment" | "appSettings" | "notificationSettings"
900
916
  txIsolationLevel: Prisma.TransactionIsolationLevel
901
917
  }
902
918
  model: {
@@ -1810,6 +1826,76 @@ export namespace Prisma {
1810
1826
  }
1811
1827
  }
1812
1828
  }
1829
+ Conversation: {
1830
+ payload: Prisma.$ConversationPayload<ExtArgs>
1831
+ fields: Prisma.ConversationFieldRefs
1832
+ operations: {
1833
+ findUnique: {
1834
+ args: Prisma.ConversationFindUniqueArgs<ExtArgs>
1835
+ result: $Utils.PayloadToResult<Prisma.$ConversationPayload> | null
1836
+ }
1837
+ findUniqueOrThrow: {
1838
+ args: Prisma.ConversationFindUniqueOrThrowArgs<ExtArgs>
1839
+ result: $Utils.PayloadToResult<Prisma.$ConversationPayload>
1840
+ }
1841
+ findFirst: {
1842
+ args: Prisma.ConversationFindFirstArgs<ExtArgs>
1843
+ result: $Utils.PayloadToResult<Prisma.$ConversationPayload> | null
1844
+ }
1845
+ findFirstOrThrow: {
1846
+ args: Prisma.ConversationFindFirstOrThrowArgs<ExtArgs>
1847
+ result: $Utils.PayloadToResult<Prisma.$ConversationPayload>
1848
+ }
1849
+ findMany: {
1850
+ args: Prisma.ConversationFindManyArgs<ExtArgs>
1851
+ result: $Utils.PayloadToResult<Prisma.$ConversationPayload>[]
1852
+ }
1853
+ create: {
1854
+ args: Prisma.ConversationCreateArgs<ExtArgs>
1855
+ result: $Utils.PayloadToResult<Prisma.$ConversationPayload>
1856
+ }
1857
+ createMany: {
1858
+ args: Prisma.ConversationCreateManyArgs<ExtArgs>
1859
+ result: BatchPayload
1860
+ }
1861
+ createManyAndReturn: {
1862
+ args: Prisma.ConversationCreateManyAndReturnArgs<ExtArgs>
1863
+ result: $Utils.PayloadToResult<Prisma.$ConversationPayload>[]
1864
+ }
1865
+ delete: {
1866
+ args: Prisma.ConversationDeleteArgs<ExtArgs>
1867
+ result: $Utils.PayloadToResult<Prisma.$ConversationPayload>
1868
+ }
1869
+ update: {
1870
+ args: Prisma.ConversationUpdateArgs<ExtArgs>
1871
+ result: $Utils.PayloadToResult<Prisma.$ConversationPayload>
1872
+ }
1873
+ deleteMany: {
1874
+ args: Prisma.ConversationDeleteManyArgs<ExtArgs>
1875
+ result: BatchPayload
1876
+ }
1877
+ updateMany: {
1878
+ args: Prisma.ConversationUpdateManyArgs<ExtArgs>
1879
+ result: BatchPayload
1880
+ }
1881
+ upsert: {
1882
+ args: Prisma.ConversationUpsertArgs<ExtArgs>
1883
+ result: $Utils.PayloadToResult<Prisma.$ConversationPayload>
1884
+ }
1885
+ aggregate: {
1886
+ args: Prisma.ConversationAggregateArgs<ExtArgs>
1887
+ result: $Utils.Optional<AggregateConversation>
1888
+ }
1889
+ groupBy: {
1890
+ args: Prisma.ConversationGroupByArgs<ExtArgs>
1891
+ result: $Utils.Optional<ConversationGroupByOutputType>[]
1892
+ }
1893
+ count: {
1894
+ args: Prisma.ConversationCountArgs<ExtArgs>
1895
+ result: $Utils.Optional<ConversationCountAggregateOutputType> | number
1896
+ }
1897
+ }
1898
+ }
1813
1899
  Session: {
1814
1900
  payload: Prisma.$SessionPayload<ExtArgs>
1815
1901
  fields: Prisma.SessionFieldRefs
@@ -16082,336 +16168,1338 @@ export namespace Prisma {
16082
16168
 
16083
16169
 
16084
16170
  /**
16085
- * Model Session
16171
+ * Model Conversation
16086
16172
  */
16087
16173
 
16088
- export type AggregateSession = {
16089
- _count: SessionCountAggregateOutputType | null
16090
- _min: SessionMinAggregateOutputType | null
16091
- _max: SessionMaxAggregateOutputType | null
16174
+ export type AggregateConversation = {
16175
+ _count: ConversationCountAggregateOutputType | null
16176
+ _min: ConversationMinAggregateOutputType | null
16177
+ _max: ConversationMaxAggregateOutputType | null
16092
16178
  }
16093
16179
 
16094
- export type SessionMinAggregateOutputType = {
16180
+ export type ConversationMinAggregateOutputType = {
16095
16181
  id: string | null
16096
- workspaceId: string | null
16097
- agentType: string | null
16098
- variant: string | null
16099
- providerId: string | null
16100
- prompt: string | null
16101
- status: string | null
16102
- purpose: string | null
16103
- logSnapshot: string | null
16104
- tokenUsage: string | null
16182
+ title: string | null
16183
+ directoryName: string | null
16184
+ workingDir: string | null
16185
+ deletedAt: Date | null
16186
+ lastActiveAt: Date | null
16105
16187
  createdAt: Date | null
16106
16188
  updatedAt: Date | null
16107
16189
  }
16108
16190
 
16109
- export type SessionMaxAggregateOutputType = {
16191
+ export type ConversationMaxAggregateOutputType = {
16110
16192
  id: string | null
16111
- workspaceId: string | null
16112
- agentType: string | null
16113
- variant: string | null
16114
- providerId: string | null
16115
- prompt: string | null
16116
- status: string | null
16117
- purpose: string | null
16118
- logSnapshot: string | null
16119
- tokenUsage: string | null
16193
+ title: string | null
16194
+ directoryName: string | null
16195
+ workingDir: string | null
16196
+ deletedAt: Date | null
16197
+ lastActiveAt: Date | null
16120
16198
  createdAt: Date | null
16121
16199
  updatedAt: Date | null
16122
16200
  }
16123
16201
 
16124
- export type SessionCountAggregateOutputType = {
16202
+ export type ConversationCountAggregateOutputType = {
16125
16203
  id: number
16126
- workspaceId: number
16127
- agentType: number
16128
- variant: number
16129
- providerId: number
16130
- prompt: number
16131
- status: number
16132
- purpose: number
16133
- logSnapshot: number
16134
- tokenUsage: number
16204
+ title: number
16205
+ directoryName: number
16206
+ workingDir: number
16207
+ deletedAt: number
16208
+ lastActiveAt: number
16135
16209
  createdAt: number
16136
16210
  updatedAt: number
16137
16211
  _all: number
16138
16212
  }
16139
16213
 
16140
16214
 
16141
- export type SessionMinAggregateInputType = {
16215
+ export type ConversationMinAggregateInputType = {
16142
16216
  id?: true
16143
- workspaceId?: true
16144
- agentType?: true
16145
- variant?: true
16146
- providerId?: true
16147
- prompt?: true
16148
- status?: true
16149
- purpose?: true
16150
- logSnapshot?: true
16151
- tokenUsage?: true
16217
+ title?: true
16218
+ directoryName?: true
16219
+ workingDir?: true
16220
+ deletedAt?: true
16221
+ lastActiveAt?: true
16152
16222
  createdAt?: true
16153
16223
  updatedAt?: true
16154
16224
  }
16155
16225
 
16156
- export type SessionMaxAggregateInputType = {
16226
+ export type ConversationMaxAggregateInputType = {
16157
16227
  id?: true
16158
- workspaceId?: true
16159
- agentType?: true
16160
- variant?: true
16161
- providerId?: true
16162
- prompt?: true
16163
- status?: true
16164
- purpose?: true
16165
- logSnapshot?: true
16166
- tokenUsage?: true
16228
+ title?: true
16229
+ directoryName?: true
16230
+ workingDir?: true
16231
+ deletedAt?: true
16232
+ lastActiveAt?: true
16167
16233
  createdAt?: true
16168
16234
  updatedAt?: true
16169
16235
  }
16170
16236
 
16171
- export type SessionCountAggregateInputType = {
16237
+ export type ConversationCountAggregateInputType = {
16172
16238
  id?: true
16173
- workspaceId?: true
16174
- agentType?: true
16175
- variant?: true
16176
- providerId?: true
16177
- prompt?: true
16178
- status?: true
16179
- purpose?: true
16180
- logSnapshot?: true
16181
- tokenUsage?: true
16239
+ title?: true
16240
+ directoryName?: true
16241
+ workingDir?: true
16242
+ deletedAt?: true
16243
+ lastActiveAt?: true
16182
16244
  createdAt?: true
16183
16245
  updatedAt?: true
16184
16246
  _all?: true
16185
16247
  }
16186
16248
 
16187
- export type SessionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16249
+ export type ConversationAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16188
16250
  /**
16189
- * Filter which Session to aggregate.
16251
+ * Filter which Conversation to aggregate.
16190
16252
  */
16191
- where?: SessionWhereInput
16253
+ where?: ConversationWhereInput
16192
16254
  /**
16193
16255
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
16194
16256
  *
16195
- * Determine the order of Sessions to fetch.
16257
+ * Determine the order of Conversations to fetch.
16196
16258
  */
16197
- orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
16259
+ orderBy?: ConversationOrderByWithRelationInput | ConversationOrderByWithRelationInput[]
16198
16260
  /**
16199
16261
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
16200
16262
  *
16201
16263
  * Sets the start position
16202
16264
  */
16203
- cursor?: SessionWhereUniqueInput
16265
+ cursor?: ConversationWhereUniqueInput
16204
16266
  /**
16205
16267
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16206
16268
  *
16207
- * Take `±n` Sessions from the position of the cursor.
16269
+ * Take `±n` Conversations from the position of the cursor.
16208
16270
  */
16209
16271
  take?: number
16210
16272
  /**
16211
16273
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16212
16274
  *
16213
- * Skip the first `n` Sessions.
16275
+ * Skip the first `n` Conversations.
16214
16276
  */
16215
16277
  skip?: number
16216
16278
  /**
16217
16279
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
16218
16280
  *
16219
- * Count returned Sessions
16281
+ * Count returned Conversations
16220
16282
  **/
16221
- _count?: true | SessionCountAggregateInputType
16283
+ _count?: true | ConversationCountAggregateInputType
16222
16284
  /**
16223
16285
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
16224
16286
  *
16225
16287
  * Select which fields to find the minimum value
16226
16288
  **/
16227
- _min?: SessionMinAggregateInputType
16289
+ _min?: ConversationMinAggregateInputType
16228
16290
  /**
16229
16291
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
16230
16292
  *
16231
16293
  * Select which fields to find the maximum value
16232
16294
  **/
16233
- _max?: SessionMaxAggregateInputType
16295
+ _max?: ConversationMaxAggregateInputType
16234
16296
  }
16235
16297
 
16236
- export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
16237
- [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count'
16298
+ export type GetConversationAggregateType<T extends ConversationAggregateArgs> = {
16299
+ [P in keyof T & keyof AggregateConversation]: P extends '_count' | 'count'
16238
16300
  ? T[P] extends true
16239
16301
  ? number
16240
- : GetScalarType<T[P], AggregateSession[P]>
16241
- : GetScalarType<T[P], AggregateSession[P]>
16302
+ : GetScalarType<T[P], AggregateConversation[P]>
16303
+ : GetScalarType<T[P], AggregateConversation[P]>
16242
16304
  }
16243
16305
 
16244
16306
 
16245
16307
 
16246
16308
 
16247
- export type SessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16248
- where?: SessionWhereInput
16249
- orderBy?: SessionOrderByWithAggregationInput | SessionOrderByWithAggregationInput[]
16250
- by: SessionScalarFieldEnum[] | SessionScalarFieldEnum
16251
- having?: SessionScalarWhereWithAggregatesInput
16309
+ export type ConversationGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16310
+ where?: ConversationWhereInput
16311
+ orderBy?: ConversationOrderByWithAggregationInput | ConversationOrderByWithAggregationInput[]
16312
+ by: ConversationScalarFieldEnum[] | ConversationScalarFieldEnum
16313
+ having?: ConversationScalarWhereWithAggregatesInput
16252
16314
  take?: number
16253
16315
  skip?: number
16254
- _count?: SessionCountAggregateInputType | true
16255
- _min?: SessionMinAggregateInputType
16256
- _max?: SessionMaxAggregateInputType
16316
+ _count?: ConversationCountAggregateInputType | true
16317
+ _min?: ConversationMinAggregateInputType
16318
+ _max?: ConversationMaxAggregateInputType
16257
16319
  }
16258
16320
 
16259
- export type SessionGroupByOutputType = {
16321
+ export type ConversationGroupByOutputType = {
16260
16322
  id: string
16261
- workspaceId: string
16262
- agentType: string
16263
- variant: string
16264
- providerId: string | null
16265
- prompt: string
16266
- status: string
16267
- purpose: string
16268
- logSnapshot: string | null
16269
- tokenUsage: string | null
16323
+ title: string
16324
+ directoryName: string
16325
+ workingDir: string
16326
+ deletedAt: Date | null
16327
+ lastActiveAt: Date
16270
16328
  createdAt: Date
16271
16329
  updatedAt: Date
16272
- _count: SessionCountAggregateOutputType | null
16273
- _min: SessionMinAggregateOutputType | null
16274
- _max: SessionMaxAggregateOutputType | null
16330
+ _count: ConversationCountAggregateOutputType | null
16331
+ _min: ConversationMinAggregateOutputType | null
16332
+ _max: ConversationMaxAggregateOutputType | null
16275
16333
  }
16276
16334
 
16277
- type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<
16335
+ type GetConversationGroupByPayload<T extends ConversationGroupByArgs> = Prisma.PrismaPromise<
16278
16336
  Array<
16279
- PickEnumerable<SessionGroupByOutputType, T['by']> &
16337
+ PickEnumerable<ConversationGroupByOutputType, T['by']> &
16280
16338
  {
16281
- [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count'
16339
+ [P in ((keyof T) & (keyof ConversationGroupByOutputType))]: P extends '_count'
16282
16340
  ? T[P] extends boolean
16283
16341
  ? number
16284
- : GetScalarType<T[P], SessionGroupByOutputType[P]>
16285
- : GetScalarType<T[P], SessionGroupByOutputType[P]>
16342
+ : GetScalarType<T[P], ConversationGroupByOutputType[P]>
16343
+ : GetScalarType<T[P], ConversationGroupByOutputType[P]>
16286
16344
  }
16287
16345
  >
16288
16346
  >
16289
16347
 
16290
16348
 
16291
- export type SessionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
16349
+ export type ConversationSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
16292
16350
  id?: boolean
16293
- workspaceId?: boolean
16294
- agentType?: boolean
16295
- variant?: boolean
16296
- providerId?: boolean
16297
- prompt?: boolean
16298
- status?: boolean
16299
- purpose?: boolean
16300
- logSnapshot?: boolean
16301
- tokenUsage?: boolean
16351
+ title?: boolean
16352
+ directoryName?: boolean
16353
+ workingDir?: boolean
16354
+ deletedAt?: boolean
16355
+ lastActiveAt?: boolean
16302
16356
  createdAt?: boolean
16303
16357
  updatedAt?: boolean
16304
- workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
16305
- processes?: boolean | Session$processesArgs<ExtArgs>
16306
- _count?: boolean | SessionCountOutputTypeDefaultArgs<ExtArgs>
16307
- }, ExtArgs["result"]["session"]>
16358
+ session?: boolean | Conversation$sessionArgs<ExtArgs>
16359
+ }, ExtArgs["result"]["conversation"]>
16308
16360
 
16309
- export type SessionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
16361
+ export type ConversationSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
16310
16362
  id?: boolean
16311
- workspaceId?: boolean
16312
- agentType?: boolean
16313
- variant?: boolean
16314
- providerId?: boolean
16315
- prompt?: boolean
16316
- status?: boolean
16317
- purpose?: boolean
16318
- logSnapshot?: boolean
16319
- tokenUsage?: boolean
16363
+ title?: boolean
16364
+ directoryName?: boolean
16365
+ workingDir?: boolean
16366
+ deletedAt?: boolean
16367
+ lastActiveAt?: boolean
16320
16368
  createdAt?: boolean
16321
16369
  updatedAt?: boolean
16322
- workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
16323
- }, ExtArgs["result"]["session"]>
16370
+ }, ExtArgs["result"]["conversation"]>
16324
16371
 
16325
- export type SessionSelectScalar = {
16372
+ export type ConversationSelectScalar = {
16326
16373
  id?: boolean
16327
- workspaceId?: boolean
16328
- agentType?: boolean
16329
- variant?: boolean
16330
- providerId?: boolean
16331
- prompt?: boolean
16332
- status?: boolean
16333
- purpose?: boolean
16334
- logSnapshot?: boolean
16335
- tokenUsage?: boolean
16374
+ title?: boolean
16375
+ directoryName?: boolean
16376
+ workingDir?: boolean
16377
+ deletedAt?: boolean
16378
+ lastActiveAt?: boolean
16336
16379
  createdAt?: boolean
16337
16380
  updatedAt?: boolean
16338
16381
  }
16339
16382
 
16340
- export type SessionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16341
- workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
16342
- processes?: boolean | Session$processesArgs<ExtArgs>
16343
- _count?: boolean | SessionCountOutputTypeDefaultArgs<ExtArgs>
16344
- }
16345
- export type SessionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16346
- workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
16383
+ export type ConversationInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16384
+ session?: boolean | Conversation$sessionArgs<ExtArgs>
16347
16385
  }
16386
+ export type ConversationIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
16348
16387
 
16349
- export type $SessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16350
- name: "Session"
16388
+ export type $ConversationPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16389
+ name: "Conversation"
16351
16390
  objects: {
16352
- workspace: Prisma.$WorkspacePayload<ExtArgs>
16353
- processes: Prisma.$ExecutionProcessPayload<ExtArgs>[]
16391
+ session: Prisma.$SessionPayload<ExtArgs> | null
16354
16392
  }
16355
16393
  scalars: $Extensions.GetPayloadResult<{
16356
16394
  id: string
16357
- workspaceId: string
16358
- agentType: string
16359
- variant: string
16360
- providerId: string | null
16361
- prompt: string
16362
- status: string
16363
- purpose: string
16364
- logSnapshot: string | null
16365
- tokenUsage: string | null
16395
+ title: string
16396
+ directoryName: string
16397
+ workingDir: string
16398
+ deletedAt: Date | null
16399
+ lastActiveAt: Date
16366
16400
  createdAt: Date
16367
16401
  updatedAt: Date
16368
- }, ExtArgs["result"]["session"]>
16402
+ }, ExtArgs["result"]["conversation"]>
16369
16403
  composites: {}
16370
16404
  }
16371
16405
 
16372
- type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = $Result.GetResult<Prisma.$SessionPayload, S>
16406
+ type ConversationGetPayload<S extends boolean | null | undefined | ConversationDefaultArgs> = $Result.GetResult<Prisma.$ConversationPayload, S>
16373
16407
 
16374
- type SessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
16375
- Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct'> & {
16376
- select?: SessionCountAggregateInputType | true
16408
+ type ConversationCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
16409
+ Omit<ConversationFindManyArgs, 'select' | 'include' | 'distinct'> & {
16410
+ select?: ConversationCountAggregateInputType | true
16377
16411
  }
16378
16412
 
16379
- export interface SessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
16380
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Session'], meta: { name: 'Session' } }
16413
+ export interface ConversationDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
16414
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Conversation'], meta: { name: 'Conversation' } }
16381
16415
  /**
16382
- * Find zero or one Session that matches the filter.
16383
- * @param {SessionFindUniqueArgs} args - Arguments to find a Session
16416
+ * Find zero or one Conversation that matches the filter.
16417
+ * @param {ConversationFindUniqueArgs} args - Arguments to find a Conversation
16384
16418
  * @example
16385
- * // Get one Session
16386
- * const session = await prisma.session.findUnique({
16419
+ * // Get one Conversation
16420
+ * const conversation = await prisma.conversation.findUnique({
16387
16421
  * where: {
16388
16422
  * // ... provide filter here
16389
16423
  * }
16390
16424
  * })
16391
16425
  */
16392
- findUnique<T extends SessionFindUniqueArgs>(args: SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
16426
+ findUnique<T extends ConversationFindUniqueArgs>(args: SelectSubset<T, ConversationFindUniqueArgs<ExtArgs>>): Prisma__ConversationClient<$Result.GetResult<Prisma.$ConversationPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
16393
16427
 
16394
16428
  /**
16395
- * Find one Session that matches the filter or throw an error with `error.code='P2025'`
16429
+ * Find one Conversation that matches the filter or throw an error with `error.code='P2025'`
16396
16430
  * if no matches were found.
16397
- * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
16431
+ * @param {ConversationFindUniqueOrThrowArgs} args - Arguments to find a Conversation
16398
16432
  * @example
16399
- * // Get one Session
16400
- * const session = await prisma.session.findUniqueOrThrow({
16433
+ * // Get one Conversation
16434
+ * const conversation = await prisma.conversation.findUniqueOrThrow({
16401
16435
  * where: {
16402
16436
  * // ... provide filter here
16403
16437
  * }
16404
16438
  * })
16405
16439
  */
16406
- findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
16440
+ findUniqueOrThrow<T extends ConversationFindUniqueOrThrowArgs>(args: SelectSubset<T, ConversationFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ConversationClient<$Result.GetResult<Prisma.$ConversationPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
16407
16441
 
16408
16442
  /**
16409
- * Find the first Session that matches the filter.
16443
+ * Find the first Conversation that matches the filter.
16410
16444
  * Note, that providing `undefined` is treated as the value not being there.
16411
16445
  * Read more here: https://pris.ly/d/null-undefined
16412
- * @param {SessionFindFirstArgs} args - Arguments to find a Session
16446
+ * @param {ConversationFindFirstArgs} args - Arguments to find a Conversation
16413
16447
  * @example
16414
- * // Get one Session
16448
+ * // Get one Conversation
16449
+ * const conversation = await prisma.conversation.findFirst({
16450
+ * where: {
16451
+ * // ... provide filter here
16452
+ * }
16453
+ * })
16454
+ */
16455
+ findFirst<T extends ConversationFindFirstArgs>(args?: SelectSubset<T, ConversationFindFirstArgs<ExtArgs>>): Prisma__ConversationClient<$Result.GetResult<Prisma.$ConversationPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
16456
+
16457
+ /**
16458
+ * Find the first Conversation that matches the filter or
16459
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
16460
+ * Note, that providing `undefined` is treated as the value not being there.
16461
+ * Read more here: https://pris.ly/d/null-undefined
16462
+ * @param {ConversationFindFirstOrThrowArgs} args - Arguments to find a Conversation
16463
+ * @example
16464
+ * // Get one Conversation
16465
+ * const conversation = await prisma.conversation.findFirstOrThrow({
16466
+ * where: {
16467
+ * // ... provide filter here
16468
+ * }
16469
+ * })
16470
+ */
16471
+ findFirstOrThrow<T extends ConversationFindFirstOrThrowArgs>(args?: SelectSubset<T, ConversationFindFirstOrThrowArgs<ExtArgs>>): Prisma__ConversationClient<$Result.GetResult<Prisma.$ConversationPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
16472
+
16473
+ /**
16474
+ * Find zero or more Conversations that matches the filter.
16475
+ * Note, that providing `undefined` is treated as the value not being there.
16476
+ * Read more here: https://pris.ly/d/null-undefined
16477
+ * @param {ConversationFindManyArgs} args - Arguments to filter and select certain fields only.
16478
+ * @example
16479
+ * // Get all Conversations
16480
+ * const conversations = await prisma.conversation.findMany()
16481
+ *
16482
+ * // Get first 10 Conversations
16483
+ * const conversations = await prisma.conversation.findMany({ take: 10 })
16484
+ *
16485
+ * // Only select the `id`
16486
+ * const conversationWithIdOnly = await prisma.conversation.findMany({ select: { id: true } })
16487
+ *
16488
+ */
16489
+ findMany<T extends ConversationFindManyArgs>(args?: SelectSubset<T, ConversationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ConversationPayload<ExtArgs>, T, "findMany">>
16490
+
16491
+ /**
16492
+ * Create a Conversation.
16493
+ * @param {ConversationCreateArgs} args - Arguments to create a Conversation.
16494
+ * @example
16495
+ * // Create one Conversation
16496
+ * const Conversation = await prisma.conversation.create({
16497
+ * data: {
16498
+ * // ... data to create a Conversation
16499
+ * }
16500
+ * })
16501
+ *
16502
+ */
16503
+ create<T extends ConversationCreateArgs>(args: SelectSubset<T, ConversationCreateArgs<ExtArgs>>): Prisma__ConversationClient<$Result.GetResult<Prisma.$ConversationPayload<ExtArgs>, T, "create">, never, ExtArgs>
16504
+
16505
+ /**
16506
+ * Create many Conversations.
16507
+ * @param {ConversationCreateManyArgs} args - Arguments to create many Conversations.
16508
+ * @example
16509
+ * // Create many Conversations
16510
+ * const conversation = await prisma.conversation.createMany({
16511
+ * data: [
16512
+ * // ... provide data here
16513
+ * ]
16514
+ * })
16515
+ *
16516
+ */
16517
+ createMany<T extends ConversationCreateManyArgs>(args?: SelectSubset<T, ConversationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
16518
+
16519
+ /**
16520
+ * Create many Conversations and returns the data saved in the database.
16521
+ * @param {ConversationCreateManyAndReturnArgs} args - Arguments to create many Conversations.
16522
+ * @example
16523
+ * // Create many Conversations
16524
+ * const conversation = await prisma.conversation.createManyAndReturn({
16525
+ * data: [
16526
+ * // ... provide data here
16527
+ * ]
16528
+ * })
16529
+ *
16530
+ * // Create many Conversations and only return the `id`
16531
+ * const conversationWithIdOnly = await prisma.conversation.createManyAndReturn({
16532
+ * select: { id: true },
16533
+ * data: [
16534
+ * // ... provide data here
16535
+ * ]
16536
+ * })
16537
+ * Note, that providing `undefined` is treated as the value not being there.
16538
+ * Read more here: https://pris.ly/d/null-undefined
16539
+ *
16540
+ */
16541
+ createManyAndReturn<T extends ConversationCreateManyAndReturnArgs>(args?: SelectSubset<T, ConversationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ConversationPayload<ExtArgs>, T, "createManyAndReturn">>
16542
+
16543
+ /**
16544
+ * Delete a Conversation.
16545
+ * @param {ConversationDeleteArgs} args - Arguments to delete one Conversation.
16546
+ * @example
16547
+ * // Delete one Conversation
16548
+ * const Conversation = await prisma.conversation.delete({
16549
+ * where: {
16550
+ * // ... filter to delete one Conversation
16551
+ * }
16552
+ * })
16553
+ *
16554
+ */
16555
+ delete<T extends ConversationDeleteArgs>(args: SelectSubset<T, ConversationDeleteArgs<ExtArgs>>): Prisma__ConversationClient<$Result.GetResult<Prisma.$ConversationPayload<ExtArgs>, T, "delete">, never, ExtArgs>
16556
+
16557
+ /**
16558
+ * Update one Conversation.
16559
+ * @param {ConversationUpdateArgs} args - Arguments to update one Conversation.
16560
+ * @example
16561
+ * // Update one Conversation
16562
+ * const conversation = await prisma.conversation.update({
16563
+ * where: {
16564
+ * // ... provide filter here
16565
+ * },
16566
+ * data: {
16567
+ * // ... provide data here
16568
+ * }
16569
+ * })
16570
+ *
16571
+ */
16572
+ update<T extends ConversationUpdateArgs>(args: SelectSubset<T, ConversationUpdateArgs<ExtArgs>>): Prisma__ConversationClient<$Result.GetResult<Prisma.$ConversationPayload<ExtArgs>, T, "update">, never, ExtArgs>
16573
+
16574
+ /**
16575
+ * Delete zero or more Conversations.
16576
+ * @param {ConversationDeleteManyArgs} args - Arguments to filter Conversations to delete.
16577
+ * @example
16578
+ * // Delete a few Conversations
16579
+ * const { count } = await prisma.conversation.deleteMany({
16580
+ * where: {
16581
+ * // ... provide filter here
16582
+ * }
16583
+ * })
16584
+ *
16585
+ */
16586
+ deleteMany<T extends ConversationDeleteManyArgs>(args?: SelectSubset<T, ConversationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
16587
+
16588
+ /**
16589
+ * Update zero or more Conversations.
16590
+ * Note, that providing `undefined` is treated as the value not being there.
16591
+ * Read more here: https://pris.ly/d/null-undefined
16592
+ * @param {ConversationUpdateManyArgs} args - Arguments to update one or more rows.
16593
+ * @example
16594
+ * // Update many Conversations
16595
+ * const conversation = await prisma.conversation.updateMany({
16596
+ * where: {
16597
+ * // ... provide filter here
16598
+ * },
16599
+ * data: {
16600
+ * // ... provide data here
16601
+ * }
16602
+ * })
16603
+ *
16604
+ */
16605
+ updateMany<T extends ConversationUpdateManyArgs>(args: SelectSubset<T, ConversationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
16606
+
16607
+ /**
16608
+ * Create or update one Conversation.
16609
+ * @param {ConversationUpsertArgs} args - Arguments to update or create a Conversation.
16610
+ * @example
16611
+ * // Update or create a Conversation
16612
+ * const conversation = await prisma.conversation.upsert({
16613
+ * create: {
16614
+ * // ... data to create a Conversation
16615
+ * },
16616
+ * update: {
16617
+ * // ... in case it already exists, update
16618
+ * },
16619
+ * where: {
16620
+ * // ... the filter for the Conversation we want to update
16621
+ * }
16622
+ * })
16623
+ */
16624
+ upsert<T extends ConversationUpsertArgs>(args: SelectSubset<T, ConversationUpsertArgs<ExtArgs>>): Prisma__ConversationClient<$Result.GetResult<Prisma.$ConversationPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
16625
+
16626
+
16627
+ /**
16628
+ * Count the number of Conversations.
16629
+ * Note, that providing `undefined` is treated as the value not being there.
16630
+ * Read more here: https://pris.ly/d/null-undefined
16631
+ * @param {ConversationCountArgs} args - Arguments to filter Conversations to count.
16632
+ * @example
16633
+ * // Count the number of Conversations
16634
+ * const count = await prisma.conversation.count({
16635
+ * where: {
16636
+ * // ... the filter for the Conversations we want to count
16637
+ * }
16638
+ * })
16639
+ **/
16640
+ count<T extends ConversationCountArgs>(
16641
+ args?: Subset<T, ConversationCountArgs>,
16642
+ ): Prisma.PrismaPromise<
16643
+ T extends $Utils.Record<'select', any>
16644
+ ? T['select'] extends true
16645
+ ? number
16646
+ : GetScalarType<T['select'], ConversationCountAggregateOutputType>
16647
+ : number
16648
+ >
16649
+
16650
+ /**
16651
+ * Allows you to perform aggregations operations on a Conversation.
16652
+ * Note, that providing `undefined` is treated as the value not being there.
16653
+ * Read more here: https://pris.ly/d/null-undefined
16654
+ * @param {ConversationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
16655
+ * @example
16656
+ * // Ordered by age ascending
16657
+ * // Where email contains prisma.io
16658
+ * // Limited to the 10 users
16659
+ * const aggregations = await prisma.user.aggregate({
16660
+ * _avg: {
16661
+ * age: true,
16662
+ * },
16663
+ * where: {
16664
+ * email: {
16665
+ * contains: "prisma.io",
16666
+ * },
16667
+ * },
16668
+ * orderBy: {
16669
+ * age: "asc",
16670
+ * },
16671
+ * take: 10,
16672
+ * })
16673
+ **/
16674
+ aggregate<T extends ConversationAggregateArgs>(args: Subset<T, ConversationAggregateArgs>): Prisma.PrismaPromise<GetConversationAggregateType<T>>
16675
+
16676
+ /**
16677
+ * Group by Conversation.
16678
+ * Note, that providing `undefined` is treated as the value not being there.
16679
+ * Read more here: https://pris.ly/d/null-undefined
16680
+ * @param {ConversationGroupByArgs} args - Group by arguments.
16681
+ * @example
16682
+ * // Group by city, order by createdAt, get count
16683
+ * const result = await prisma.user.groupBy({
16684
+ * by: ['city', 'createdAt'],
16685
+ * orderBy: {
16686
+ * createdAt: true
16687
+ * },
16688
+ * _count: {
16689
+ * _all: true
16690
+ * },
16691
+ * })
16692
+ *
16693
+ **/
16694
+ groupBy<
16695
+ T extends ConversationGroupByArgs,
16696
+ HasSelectOrTake extends Or<
16697
+ Extends<'skip', Keys<T>>,
16698
+ Extends<'take', Keys<T>>
16699
+ >,
16700
+ OrderByArg extends True extends HasSelectOrTake
16701
+ ? { orderBy: ConversationGroupByArgs['orderBy'] }
16702
+ : { orderBy?: ConversationGroupByArgs['orderBy'] },
16703
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
16704
+ ByFields extends MaybeTupleToUnion<T['by']>,
16705
+ ByValid extends Has<ByFields, OrderFields>,
16706
+ HavingFields extends GetHavingFields<T['having']>,
16707
+ HavingValid extends Has<ByFields, HavingFields>,
16708
+ ByEmpty extends T['by'] extends never[] ? True : False,
16709
+ InputErrors extends ByEmpty extends True
16710
+ ? `Error: "by" must not be empty.`
16711
+ : HavingValid extends False
16712
+ ? {
16713
+ [P in HavingFields]: P extends ByFields
16714
+ ? never
16715
+ : P extends string
16716
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
16717
+ : [
16718
+ Error,
16719
+ 'Field ',
16720
+ P,
16721
+ ` in "having" needs to be provided in "by"`,
16722
+ ]
16723
+ }[HavingFields]
16724
+ : 'take' extends Keys<T>
16725
+ ? 'orderBy' extends Keys<T>
16726
+ ? ByValid extends True
16727
+ ? {}
16728
+ : {
16729
+ [P in OrderFields]: P extends ByFields
16730
+ ? never
16731
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
16732
+ }[OrderFields]
16733
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
16734
+ : 'skip' extends Keys<T>
16735
+ ? 'orderBy' extends Keys<T>
16736
+ ? ByValid extends True
16737
+ ? {}
16738
+ : {
16739
+ [P in OrderFields]: P extends ByFields
16740
+ ? never
16741
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
16742
+ }[OrderFields]
16743
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
16744
+ : ByValid extends True
16745
+ ? {}
16746
+ : {
16747
+ [P in OrderFields]: P extends ByFields
16748
+ ? never
16749
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
16750
+ }[OrderFields]
16751
+ >(args: SubsetIntersection<T, ConversationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetConversationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
16752
+ /**
16753
+ * Fields of the Conversation model
16754
+ */
16755
+ readonly fields: ConversationFieldRefs;
16756
+ }
16757
+
16758
+ /**
16759
+ * The delegate class that acts as a "Promise-like" for Conversation.
16760
+ * Why is this prefixed with `Prisma__`?
16761
+ * Because we want to prevent naming conflicts as mentioned in
16762
+ * https://github.com/prisma/prisma-client-js/issues/707
16763
+ */
16764
+ export interface Prisma__ConversationClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
16765
+ readonly [Symbol.toStringTag]: "PrismaPromise"
16766
+ session<T extends Conversation$sessionArgs<ExtArgs> = {}>(args?: Subset<T, Conversation$sessionArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
16767
+ /**
16768
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
16769
+ * @param onfulfilled The callback to execute when the Promise is resolved.
16770
+ * @param onrejected The callback to execute when the Promise is rejected.
16771
+ * @returns A Promise for the completion of which ever callback is executed.
16772
+ */
16773
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
16774
+ /**
16775
+ * Attaches a callback for only the rejection of the Promise.
16776
+ * @param onrejected The callback to execute when the Promise is rejected.
16777
+ * @returns A Promise for the completion of the callback.
16778
+ */
16779
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
16780
+ /**
16781
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
16782
+ * resolved value cannot be modified from the callback.
16783
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
16784
+ * @returns A Promise for the completion of the callback.
16785
+ */
16786
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
16787
+ }
16788
+
16789
+
16790
+
16791
+
16792
+ /**
16793
+ * Fields of the Conversation model
16794
+ */
16795
+ interface ConversationFieldRefs {
16796
+ readonly id: FieldRef<"Conversation", 'String'>
16797
+ readonly title: FieldRef<"Conversation", 'String'>
16798
+ readonly directoryName: FieldRef<"Conversation", 'String'>
16799
+ readonly workingDir: FieldRef<"Conversation", 'String'>
16800
+ readonly deletedAt: FieldRef<"Conversation", 'DateTime'>
16801
+ readonly lastActiveAt: FieldRef<"Conversation", 'DateTime'>
16802
+ readonly createdAt: FieldRef<"Conversation", 'DateTime'>
16803
+ readonly updatedAt: FieldRef<"Conversation", 'DateTime'>
16804
+ }
16805
+
16806
+
16807
+ // Custom InputTypes
16808
+ /**
16809
+ * Conversation findUnique
16810
+ */
16811
+ export type ConversationFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16812
+ /**
16813
+ * Select specific fields to fetch from the Conversation
16814
+ */
16815
+ select?: ConversationSelect<ExtArgs> | null
16816
+ /**
16817
+ * Choose, which related nodes to fetch as well
16818
+ */
16819
+ include?: ConversationInclude<ExtArgs> | null
16820
+ /**
16821
+ * Filter, which Conversation to fetch.
16822
+ */
16823
+ where: ConversationWhereUniqueInput
16824
+ }
16825
+
16826
+ /**
16827
+ * Conversation findUniqueOrThrow
16828
+ */
16829
+ export type ConversationFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16830
+ /**
16831
+ * Select specific fields to fetch from the Conversation
16832
+ */
16833
+ select?: ConversationSelect<ExtArgs> | null
16834
+ /**
16835
+ * Choose, which related nodes to fetch as well
16836
+ */
16837
+ include?: ConversationInclude<ExtArgs> | null
16838
+ /**
16839
+ * Filter, which Conversation to fetch.
16840
+ */
16841
+ where: ConversationWhereUniqueInput
16842
+ }
16843
+
16844
+ /**
16845
+ * Conversation findFirst
16846
+ */
16847
+ export type ConversationFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16848
+ /**
16849
+ * Select specific fields to fetch from the Conversation
16850
+ */
16851
+ select?: ConversationSelect<ExtArgs> | null
16852
+ /**
16853
+ * Choose, which related nodes to fetch as well
16854
+ */
16855
+ include?: ConversationInclude<ExtArgs> | null
16856
+ /**
16857
+ * Filter, which Conversation to fetch.
16858
+ */
16859
+ where?: ConversationWhereInput
16860
+ /**
16861
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
16862
+ *
16863
+ * Determine the order of Conversations to fetch.
16864
+ */
16865
+ orderBy?: ConversationOrderByWithRelationInput | ConversationOrderByWithRelationInput[]
16866
+ /**
16867
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
16868
+ *
16869
+ * Sets the position for searching for Conversations.
16870
+ */
16871
+ cursor?: ConversationWhereUniqueInput
16872
+ /**
16873
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16874
+ *
16875
+ * Take `±n` Conversations from the position of the cursor.
16876
+ */
16877
+ take?: number
16878
+ /**
16879
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16880
+ *
16881
+ * Skip the first `n` Conversations.
16882
+ */
16883
+ skip?: number
16884
+ /**
16885
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
16886
+ *
16887
+ * Filter by unique combinations of Conversations.
16888
+ */
16889
+ distinct?: ConversationScalarFieldEnum | ConversationScalarFieldEnum[]
16890
+ }
16891
+
16892
+ /**
16893
+ * Conversation findFirstOrThrow
16894
+ */
16895
+ export type ConversationFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16896
+ /**
16897
+ * Select specific fields to fetch from the Conversation
16898
+ */
16899
+ select?: ConversationSelect<ExtArgs> | null
16900
+ /**
16901
+ * Choose, which related nodes to fetch as well
16902
+ */
16903
+ include?: ConversationInclude<ExtArgs> | null
16904
+ /**
16905
+ * Filter, which Conversation to fetch.
16906
+ */
16907
+ where?: ConversationWhereInput
16908
+ /**
16909
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
16910
+ *
16911
+ * Determine the order of Conversations to fetch.
16912
+ */
16913
+ orderBy?: ConversationOrderByWithRelationInput | ConversationOrderByWithRelationInput[]
16914
+ /**
16915
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
16916
+ *
16917
+ * Sets the position for searching for Conversations.
16918
+ */
16919
+ cursor?: ConversationWhereUniqueInput
16920
+ /**
16921
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16922
+ *
16923
+ * Take `±n` Conversations from the position of the cursor.
16924
+ */
16925
+ take?: number
16926
+ /**
16927
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16928
+ *
16929
+ * Skip the first `n` Conversations.
16930
+ */
16931
+ skip?: number
16932
+ /**
16933
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
16934
+ *
16935
+ * Filter by unique combinations of Conversations.
16936
+ */
16937
+ distinct?: ConversationScalarFieldEnum | ConversationScalarFieldEnum[]
16938
+ }
16939
+
16940
+ /**
16941
+ * Conversation findMany
16942
+ */
16943
+ export type ConversationFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16944
+ /**
16945
+ * Select specific fields to fetch from the Conversation
16946
+ */
16947
+ select?: ConversationSelect<ExtArgs> | null
16948
+ /**
16949
+ * Choose, which related nodes to fetch as well
16950
+ */
16951
+ include?: ConversationInclude<ExtArgs> | null
16952
+ /**
16953
+ * Filter, which Conversations to fetch.
16954
+ */
16955
+ where?: ConversationWhereInput
16956
+ /**
16957
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
16958
+ *
16959
+ * Determine the order of Conversations to fetch.
16960
+ */
16961
+ orderBy?: ConversationOrderByWithRelationInput | ConversationOrderByWithRelationInput[]
16962
+ /**
16963
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
16964
+ *
16965
+ * Sets the position for listing Conversations.
16966
+ */
16967
+ cursor?: ConversationWhereUniqueInput
16968
+ /**
16969
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16970
+ *
16971
+ * Take `±n` Conversations from the position of the cursor.
16972
+ */
16973
+ take?: number
16974
+ /**
16975
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16976
+ *
16977
+ * Skip the first `n` Conversations.
16978
+ */
16979
+ skip?: number
16980
+ distinct?: ConversationScalarFieldEnum | ConversationScalarFieldEnum[]
16981
+ }
16982
+
16983
+ /**
16984
+ * Conversation create
16985
+ */
16986
+ export type ConversationCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16987
+ /**
16988
+ * Select specific fields to fetch from the Conversation
16989
+ */
16990
+ select?: ConversationSelect<ExtArgs> | null
16991
+ /**
16992
+ * Choose, which related nodes to fetch as well
16993
+ */
16994
+ include?: ConversationInclude<ExtArgs> | null
16995
+ /**
16996
+ * The data needed to create a Conversation.
16997
+ */
16998
+ data: XOR<ConversationCreateInput, ConversationUncheckedCreateInput>
16999
+ }
17000
+
17001
+ /**
17002
+ * Conversation createMany
17003
+ */
17004
+ export type ConversationCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17005
+ /**
17006
+ * The data used to create many Conversations.
17007
+ */
17008
+ data: ConversationCreateManyInput | ConversationCreateManyInput[]
17009
+ }
17010
+
17011
+ /**
17012
+ * Conversation createManyAndReturn
17013
+ */
17014
+ export type ConversationCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17015
+ /**
17016
+ * Select specific fields to fetch from the Conversation
17017
+ */
17018
+ select?: ConversationSelectCreateManyAndReturn<ExtArgs> | null
17019
+ /**
17020
+ * The data used to create many Conversations.
17021
+ */
17022
+ data: ConversationCreateManyInput | ConversationCreateManyInput[]
17023
+ }
17024
+
17025
+ /**
17026
+ * Conversation update
17027
+ */
17028
+ export type ConversationUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17029
+ /**
17030
+ * Select specific fields to fetch from the Conversation
17031
+ */
17032
+ select?: ConversationSelect<ExtArgs> | null
17033
+ /**
17034
+ * Choose, which related nodes to fetch as well
17035
+ */
17036
+ include?: ConversationInclude<ExtArgs> | null
17037
+ /**
17038
+ * The data needed to update a Conversation.
17039
+ */
17040
+ data: XOR<ConversationUpdateInput, ConversationUncheckedUpdateInput>
17041
+ /**
17042
+ * Choose, which Conversation to update.
17043
+ */
17044
+ where: ConversationWhereUniqueInput
17045
+ }
17046
+
17047
+ /**
17048
+ * Conversation updateMany
17049
+ */
17050
+ export type ConversationUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17051
+ /**
17052
+ * The data used to update Conversations.
17053
+ */
17054
+ data: XOR<ConversationUpdateManyMutationInput, ConversationUncheckedUpdateManyInput>
17055
+ /**
17056
+ * Filter which Conversations to update
17057
+ */
17058
+ where?: ConversationWhereInput
17059
+ }
17060
+
17061
+ /**
17062
+ * Conversation upsert
17063
+ */
17064
+ export type ConversationUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17065
+ /**
17066
+ * Select specific fields to fetch from the Conversation
17067
+ */
17068
+ select?: ConversationSelect<ExtArgs> | null
17069
+ /**
17070
+ * Choose, which related nodes to fetch as well
17071
+ */
17072
+ include?: ConversationInclude<ExtArgs> | null
17073
+ /**
17074
+ * The filter to search for the Conversation to update in case it exists.
17075
+ */
17076
+ where: ConversationWhereUniqueInput
17077
+ /**
17078
+ * In case the Conversation found by the `where` argument doesn't exist, create a new Conversation with this data.
17079
+ */
17080
+ create: XOR<ConversationCreateInput, ConversationUncheckedCreateInput>
17081
+ /**
17082
+ * In case the Conversation was found with the provided `where` argument, update it with this data.
17083
+ */
17084
+ update: XOR<ConversationUpdateInput, ConversationUncheckedUpdateInput>
17085
+ }
17086
+
17087
+ /**
17088
+ * Conversation delete
17089
+ */
17090
+ export type ConversationDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17091
+ /**
17092
+ * Select specific fields to fetch from the Conversation
17093
+ */
17094
+ select?: ConversationSelect<ExtArgs> | null
17095
+ /**
17096
+ * Choose, which related nodes to fetch as well
17097
+ */
17098
+ include?: ConversationInclude<ExtArgs> | null
17099
+ /**
17100
+ * Filter which Conversation to delete.
17101
+ */
17102
+ where: ConversationWhereUniqueInput
17103
+ }
17104
+
17105
+ /**
17106
+ * Conversation deleteMany
17107
+ */
17108
+ export type ConversationDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17109
+ /**
17110
+ * Filter which Conversations to delete
17111
+ */
17112
+ where?: ConversationWhereInput
17113
+ }
17114
+
17115
+ /**
17116
+ * Conversation.session
17117
+ */
17118
+ export type Conversation$sessionArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17119
+ /**
17120
+ * Select specific fields to fetch from the Session
17121
+ */
17122
+ select?: SessionSelect<ExtArgs> | null
17123
+ /**
17124
+ * Choose, which related nodes to fetch as well
17125
+ */
17126
+ include?: SessionInclude<ExtArgs> | null
17127
+ where?: SessionWhereInput
17128
+ }
17129
+
17130
+ /**
17131
+ * Conversation without action
17132
+ */
17133
+ export type ConversationDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17134
+ /**
17135
+ * Select specific fields to fetch from the Conversation
17136
+ */
17137
+ select?: ConversationSelect<ExtArgs> | null
17138
+ /**
17139
+ * Choose, which related nodes to fetch as well
17140
+ */
17141
+ include?: ConversationInclude<ExtArgs> | null
17142
+ }
17143
+
17144
+
17145
+ /**
17146
+ * Model Session
17147
+ */
17148
+
17149
+ export type AggregateSession = {
17150
+ _count: SessionCountAggregateOutputType | null
17151
+ _min: SessionMinAggregateOutputType | null
17152
+ _max: SessionMaxAggregateOutputType | null
17153
+ }
17154
+
17155
+ export type SessionMinAggregateOutputType = {
17156
+ id: string | null
17157
+ workspaceId: string | null
17158
+ conversationId: string | null
17159
+ context: string | null
17160
+ agentType: string | null
17161
+ variant: string | null
17162
+ providerId: string | null
17163
+ prompt: string | null
17164
+ status: string | null
17165
+ purpose: string | null
17166
+ logSnapshot: string | null
17167
+ tokenUsage: string | null
17168
+ createdAt: Date | null
17169
+ updatedAt: Date | null
17170
+ }
17171
+
17172
+ export type SessionMaxAggregateOutputType = {
17173
+ id: string | null
17174
+ workspaceId: string | null
17175
+ conversationId: string | null
17176
+ context: string | null
17177
+ agentType: string | null
17178
+ variant: string | null
17179
+ providerId: string | null
17180
+ prompt: string | null
17181
+ status: string | null
17182
+ purpose: string | null
17183
+ logSnapshot: string | null
17184
+ tokenUsage: string | null
17185
+ createdAt: Date | null
17186
+ updatedAt: Date | null
17187
+ }
17188
+
17189
+ export type SessionCountAggregateOutputType = {
17190
+ id: number
17191
+ workspaceId: number
17192
+ conversationId: number
17193
+ context: number
17194
+ agentType: number
17195
+ variant: number
17196
+ providerId: number
17197
+ prompt: number
17198
+ status: number
17199
+ purpose: number
17200
+ logSnapshot: number
17201
+ tokenUsage: number
17202
+ createdAt: number
17203
+ updatedAt: number
17204
+ _all: number
17205
+ }
17206
+
17207
+
17208
+ export type SessionMinAggregateInputType = {
17209
+ id?: true
17210
+ workspaceId?: true
17211
+ conversationId?: true
17212
+ context?: true
17213
+ agentType?: true
17214
+ variant?: true
17215
+ providerId?: true
17216
+ prompt?: true
17217
+ status?: true
17218
+ purpose?: true
17219
+ logSnapshot?: true
17220
+ tokenUsage?: true
17221
+ createdAt?: true
17222
+ updatedAt?: true
17223
+ }
17224
+
17225
+ export type SessionMaxAggregateInputType = {
17226
+ id?: true
17227
+ workspaceId?: true
17228
+ conversationId?: true
17229
+ context?: true
17230
+ agentType?: true
17231
+ variant?: true
17232
+ providerId?: true
17233
+ prompt?: true
17234
+ status?: true
17235
+ purpose?: true
17236
+ logSnapshot?: true
17237
+ tokenUsage?: true
17238
+ createdAt?: true
17239
+ updatedAt?: true
17240
+ }
17241
+
17242
+ export type SessionCountAggregateInputType = {
17243
+ id?: true
17244
+ workspaceId?: true
17245
+ conversationId?: true
17246
+ context?: true
17247
+ agentType?: true
17248
+ variant?: true
17249
+ providerId?: true
17250
+ prompt?: true
17251
+ status?: true
17252
+ purpose?: true
17253
+ logSnapshot?: true
17254
+ tokenUsage?: true
17255
+ createdAt?: true
17256
+ updatedAt?: true
17257
+ _all?: true
17258
+ }
17259
+
17260
+ export type SessionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17261
+ /**
17262
+ * Filter which Session to aggregate.
17263
+ */
17264
+ where?: SessionWhereInput
17265
+ /**
17266
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
17267
+ *
17268
+ * Determine the order of Sessions to fetch.
17269
+ */
17270
+ orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
17271
+ /**
17272
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
17273
+ *
17274
+ * Sets the start position
17275
+ */
17276
+ cursor?: SessionWhereUniqueInput
17277
+ /**
17278
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17279
+ *
17280
+ * Take `±n` Sessions from the position of the cursor.
17281
+ */
17282
+ take?: number
17283
+ /**
17284
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17285
+ *
17286
+ * Skip the first `n` Sessions.
17287
+ */
17288
+ skip?: number
17289
+ /**
17290
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17291
+ *
17292
+ * Count returned Sessions
17293
+ **/
17294
+ _count?: true | SessionCountAggregateInputType
17295
+ /**
17296
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17297
+ *
17298
+ * Select which fields to find the minimum value
17299
+ **/
17300
+ _min?: SessionMinAggregateInputType
17301
+ /**
17302
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17303
+ *
17304
+ * Select which fields to find the maximum value
17305
+ **/
17306
+ _max?: SessionMaxAggregateInputType
17307
+ }
17308
+
17309
+ export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
17310
+ [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count'
17311
+ ? T[P] extends true
17312
+ ? number
17313
+ : GetScalarType<T[P], AggregateSession[P]>
17314
+ : GetScalarType<T[P], AggregateSession[P]>
17315
+ }
17316
+
17317
+
17318
+
17319
+
17320
+ export type SessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17321
+ where?: SessionWhereInput
17322
+ orderBy?: SessionOrderByWithAggregationInput | SessionOrderByWithAggregationInput[]
17323
+ by: SessionScalarFieldEnum[] | SessionScalarFieldEnum
17324
+ having?: SessionScalarWhereWithAggregatesInput
17325
+ take?: number
17326
+ skip?: number
17327
+ _count?: SessionCountAggregateInputType | true
17328
+ _min?: SessionMinAggregateInputType
17329
+ _max?: SessionMaxAggregateInputType
17330
+ }
17331
+
17332
+ export type SessionGroupByOutputType = {
17333
+ id: string
17334
+ workspaceId: string | null
17335
+ conversationId: string | null
17336
+ context: string
17337
+ agentType: string
17338
+ variant: string
17339
+ providerId: string | null
17340
+ prompt: string
17341
+ status: string
17342
+ purpose: string
17343
+ logSnapshot: string | null
17344
+ tokenUsage: string | null
17345
+ createdAt: Date
17346
+ updatedAt: Date
17347
+ _count: SessionCountAggregateOutputType | null
17348
+ _min: SessionMinAggregateOutputType | null
17349
+ _max: SessionMaxAggregateOutputType | null
17350
+ }
17351
+
17352
+ type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<
17353
+ Array<
17354
+ PickEnumerable<SessionGroupByOutputType, T['by']> &
17355
+ {
17356
+ [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count'
17357
+ ? T[P] extends boolean
17358
+ ? number
17359
+ : GetScalarType<T[P], SessionGroupByOutputType[P]>
17360
+ : GetScalarType<T[P], SessionGroupByOutputType[P]>
17361
+ }
17362
+ >
17363
+ >
17364
+
17365
+
17366
+ export type SessionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
17367
+ id?: boolean
17368
+ workspaceId?: boolean
17369
+ conversationId?: boolean
17370
+ context?: boolean
17371
+ agentType?: boolean
17372
+ variant?: boolean
17373
+ providerId?: boolean
17374
+ prompt?: boolean
17375
+ status?: boolean
17376
+ purpose?: boolean
17377
+ logSnapshot?: boolean
17378
+ tokenUsage?: boolean
17379
+ createdAt?: boolean
17380
+ updatedAt?: boolean
17381
+ workspace?: boolean | Session$workspaceArgs<ExtArgs>
17382
+ conversation?: boolean | Session$conversationArgs<ExtArgs>
17383
+ processes?: boolean | Session$processesArgs<ExtArgs>
17384
+ _count?: boolean | SessionCountOutputTypeDefaultArgs<ExtArgs>
17385
+ }, ExtArgs["result"]["session"]>
17386
+
17387
+ export type SessionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
17388
+ id?: boolean
17389
+ workspaceId?: boolean
17390
+ conversationId?: boolean
17391
+ context?: boolean
17392
+ agentType?: boolean
17393
+ variant?: boolean
17394
+ providerId?: boolean
17395
+ prompt?: boolean
17396
+ status?: boolean
17397
+ purpose?: boolean
17398
+ logSnapshot?: boolean
17399
+ tokenUsage?: boolean
17400
+ createdAt?: boolean
17401
+ updatedAt?: boolean
17402
+ workspace?: boolean | Session$workspaceArgs<ExtArgs>
17403
+ conversation?: boolean | Session$conversationArgs<ExtArgs>
17404
+ }, ExtArgs["result"]["session"]>
17405
+
17406
+ export type SessionSelectScalar = {
17407
+ id?: boolean
17408
+ workspaceId?: boolean
17409
+ conversationId?: boolean
17410
+ context?: boolean
17411
+ agentType?: boolean
17412
+ variant?: boolean
17413
+ providerId?: boolean
17414
+ prompt?: boolean
17415
+ status?: boolean
17416
+ purpose?: boolean
17417
+ logSnapshot?: boolean
17418
+ tokenUsage?: boolean
17419
+ createdAt?: boolean
17420
+ updatedAt?: boolean
17421
+ }
17422
+
17423
+ export type SessionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17424
+ workspace?: boolean | Session$workspaceArgs<ExtArgs>
17425
+ conversation?: boolean | Session$conversationArgs<ExtArgs>
17426
+ processes?: boolean | Session$processesArgs<ExtArgs>
17427
+ _count?: boolean | SessionCountOutputTypeDefaultArgs<ExtArgs>
17428
+ }
17429
+ export type SessionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17430
+ workspace?: boolean | Session$workspaceArgs<ExtArgs>
17431
+ conversation?: boolean | Session$conversationArgs<ExtArgs>
17432
+ }
17433
+
17434
+ export type $SessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17435
+ name: "Session"
17436
+ objects: {
17437
+ workspace: Prisma.$WorkspacePayload<ExtArgs> | null
17438
+ conversation: Prisma.$ConversationPayload<ExtArgs> | null
17439
+ processes: Prisma.$ExecutionProcessPayload<ExtArgs>[]
17440
+ }
17441
+ scalars: $Extensions.GetPayloadResult<{
17442
+ id: string
17443
+ workspaceId: string | null
17444
+ conversationId: string | null
17445
+ context: string
17446
+ agentType: string
17447
+ variant: string
17448
+ providerId: string | null
17449
+ prompt: string
17450
+ status: string
17451
+ purpose: string
17452
+ logSnapshot: string | null
17453
+ tokenUsage: string | null
17454
+ createdAt: Date
17455
+ updatedAt: Date
17456
+ }, ExtArgs["result"]["session"]>
17457
+ composites: {}
17458
+ }
17459
+
17460
+ type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = $Result.GetResult<Prisma.$SessionPayload, S>
17461
+
17462
+ type SessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
17463
+ Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct'> & {
17464
+ select?: SessionCountAggregateInputType | true
17465
+ }
17466
+
17467
+ export interface SessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
17468
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Session'], meta: { name: 'Session' } }
17469
+ /**
17470
+ * Find zero or one Session that matches the filter.
17471
+ * @param {SessionFindUniqueArgs} args - Arguments to find a Session
17472
+ * @example
17473
+ * // Get one Session
17474
+ * const session = await prisma.session.findUnique({
17475
+ * where: {
17476
+ * // ... provide filter here
17477
+ * }
17478
+ * })
17479
+ */
17480
+ findUnique<T extends SessionFindUniqueArgs>(args: SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
17481
+
17482
+ /**
17483
+ * Find one Session that matches the filter or throw an error with `error.code='P2025'`
17484
+ * if no matches were found.
17485
+ * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
17486
+ * @example
17487
+ * // Get one Session
17488
+ * const session = await prisma.session.findUniqueOrThrow({
17489
+ * where: {
17490
+ * // ... provide filter here
17491
+ * }
17492
+ * })
17493
+ */
17494
+ findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
17495
+
17496
+ /**
17497
+ * Find the first Session that matches the filter.
17498
+ * Note, that providing `undefined` is treated as the value not being there.
17499
+ * Read more here: https://pris.ly/d/null-undefined
17500
+ * @param {SessionFindFirstArgs} args - Arguments to find a Session
17501
+ * @example
17502
+ * // Get one Session
16415
17503
  * const session = await prisma.session.findFirst({
16416
17504
  * where: {
16417
17505
  * // ... provide filter here
@@ -16729,7 +17817,8 @@ export namespace Prisma {
16729
17817
  */
16730
17818
  export interface Prisma__SessionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
16731
17819
  readonly [Symbol.toStringTag]: "PrismaPromise"
16732
- workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
17820
+ workspace<T extends Session$workspaceArgs<ExtArgs> = {}>(args?: Subset<T, Session$workspaceArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
17821
+ conversation<T extends Session$conversationArgs<ExtArgs> = {}>(args?: Subset<T, Session$conversationArgs<ExtArgs>>): Prisma__ConversationClient<$Result.GetResult<Prisma.$ConversationPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
16733
17822
  processes<T extends Session$processesArgs<ExtArgs> = {}>(args?: Subset<T, Session$processesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ExecutionProcessPayload<ExtArgs>, T, "findMany"> | Null>
16734
17823
  /**
16735
17824
  * Attaches callbacks for the resolution and/or rejection of the Promise.
@@ -16762,6 +17851,8 @@ export namespace Prisma {
16762
17851
  interface SessionFieldRefs {
16763
17852
  readonly id: FieldRef<"Session", 'String'>
16764
17853
  readonly workspaceId: FieldRef<"Session", 'String'>
17854
+ readonly conversationId: FieldRef<"Session", 'String'>
17855
+ readonly context: FieldRef<"Session", 'String'>
16765
17856
  readonly agentType: FieldRef<"Session", 'String'>
16766
17857
  readonly variant: FieldRef<"Session", 'String'>
16767
17858
  readonly providerId: FieldRef<"Session", 'String'>
@@ -17080,11 +18171,41 @@ export namespace Prisma {
17080
18171
  /**
17081
18172
  * Session deleteMany
17082
18173
  */
17083
- export type SessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18174
+ export type SessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18175
+ /**
18176
+ * Filter which Sessions to delete
18177
+ */
18178
+ where?: SessionWhereInput
18179
+ }
18180
+
18181
+ /**
18182
+ * Session.workspace
18183
+ */
18184
+ export type Session$workspaceArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18185
+ /**
18186
+ * Select specific fields to fetch from the Workspace
18187
+ */
18188
+ select?: WorkspaceSelect<ExtArgs> | null
18189
+ /**
18190
+ * Choose, which related nodes to fetch as well
18191
+ */
18192
+ include?: WorkspaceInclude<ExtArgs> | null
18193
+ where?: WorkspaceWhereInput
18194
+ }
18195
+
18196
+ /**
18197
+ * Session.conversation
18198
+ */
18199
+ export type Session$conversationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17084
18200
  /**
17085
- * Filter which Sessions to delete
18201
+ * Select specific fields to fetch from the Conversation
17086
18202
  */
17087
- where?: SessionWhereInput
18203
+ select?: ConversationSelect<ExtArgs> | null
18204
+ /**
18205
+ * Choose, which related nodes to fetch as well
18206
+ */
18207
+ include?: ConversationInclude<ExtArgs> | null
18208
+ where?: ConversationWhereInput
17088
18209
  }
17089
18210
 
17090
18211
  /**
@@ -21891,9 +23012,25 @@ export namespace Prisma {
21891
23012
  export type WorkspaceScalarFieldEnum = (typeof WorkspaceScalarFieldEnum)[keyof typeof WorkspaceScalarFieldEnum]
21892
23013
 
21893
23014
 
23015
+ export const ConversationScalarFieldEnum: {
23016
+ id: 'id',
23017
+ title: 'title',
23018
+ directoryName: 'directoryName',
23019
+ workingDir: 'workingDir',
23020
+ deletedAt: 'deletedAt',
23021
+ lastActiveAt: 'lastActiveAt',
23022
+ createdAt: 'createdAt',
23023
+ updatedAt: 'updatedAt'
23024
+ };
23025
+
23026
+ export type ConversationScalarFieldEnum = (typeof ConversationScalarFieldEnum)[keyof typeof ConversationScalarFieldEnum]
23027
+
23028
+
21894
23029
  export const SessionScalarFieldEnum: {
21895
23030
  id: 'id',
21896
23031
  workspaceId: 'workspaceId',
23032
+ conversationId: 'conversationId',
23033
+ context: 'context',
21897
23034
  agentType: 'agentType',
21898
23035
  variant: 'variant',
21899
23036
  providerId: 'providerId',
@@ -23153,12 +24290,84 @@ export namespace Prisma {
23153
24290
  updatedAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
23154
24291
  }
23155
24292
 
24293
+ export type ConversationWhereInput = {
24294
+ AND?: ConversationWhereInput | ConversationWhereInput[]
24295
+ OR?: ConversationWhereInput[]
24296
+ NOT?: ConversationWhereInput | ConversationWhereInput[]
24297
+ id?: StringFilter<"Conversation"> | string
24298
+ title?: StringFilter<"Conversation"> | string
24299
+ directoryName?: StringFilter<"Conversation"> | string
24300
+ workingDir?: StringFilter<"Conversation"> | string
24301
+ deletedAt?: DateTimeNullableFilter<"Conversation"> | Date | string | null
24302
+ lastActiveAt?: DateTimeFilter<"Conversation"> | Date | string
24303
+ createdAt?: DateTimeFilter<"Conversation"> | Date | string
24304
+ updatedAt?: DateTimeFilter<"Conversation"> | Date | string
24305
+ session?: XOR<SessionNullableRelationFilter, SessionWhereInput> | null
24306
+ }
24307
+
24308
+ export type ConversationOrderByWithRelationInput = {
24309
+ id?: SortOrder
24310
+ title?: SortOrder
24311
+ directoryName?: SortOrder
24312
+ workingDir?: SortOrder
24313
+ deletedAt?: SortOrderInput | SortOrder
24314
+ lastActiveAt?: SortOrder
24315
+ createdAt?: SortOrder
24316
+ updatedAt?: SortOrder
24317
+ session?: SessionOrderByWithRelationInput
24318
+ }
24319
+
24320
+ export type ConversationWhereUniqueInput = Prisma.AtLeast<{
24321
+ id?: string
24322
+ directoryName?: string
24323
+ AND?: ConversationWhereInput | ConversationWhereInput[]
24324
+ OR?: ConversationWhereInput[]
24325
+ NOT?: ConversationWhereInput | ConversationWhereInput[]
24326
+ title?: StringFilter<"Conversation"> | string
24327
+ workingDir?: StringFilter<"Conversation"> | string
24328
+ deletedAt?: DateTimeNullableFilter<"Conversation"> | Date | string | null
24329
+ lastActiveAt?: DateTimeFilter<"Conversation"> | Date | string
24330
+ createdAt?: DateTimeFilter<"Conversation"> | Date | string
24331
+ updatedAt?: DateTimeFilter<"Conversation"> | Date | string
24332
+ session?: XOR<SessionNullableRelationFilter, SessionWhereInput> | null
24333
+ }, "id" | "directoryName">
24334
+
24335
+ export type ConversationOrderByWithAggregationInput = {
24336
+ id?: SortOrder
24337
+ title?: SortOrder
24338
+ directoryName?: SortOrder
24339
+ workingDir?: SortOrder
24340
+ deletedAt?: SortOrderInput | SortOrder
24341
+ lastActiveAt?: SortOrder
24342
+ createdAt?: SortOrder
24343
+ updatedAt?: SortOrder
24344
+ _count?: ConversationCountOrderByAggregateInput
24345
+ _max?: ConversationMaxOrderByAggregateInput
24346
+ _min?: ConversationMinOrderByAggregateInput
24347
+ }
24348
+
24349
+ export type ConversationScalarWhereWithAggregatesInput = {
24350
+ AND?: ConversationScalarWhereWithAggregatesInput | ConversationScalarWhereWithAggregatesInput[]
24351
+ OR?: ConversationScalarWhereWithAggregatesInput[]
24352
+ NOT?: ConversationScalarWhereWithAggregatesInput | ConversationScalarWhereWithAggregatesInput[]
24353
+ id?: StringWithAggregatesFilter<"Conversation"> | string
24354
+ title?: StringWithAggregatesFilter<"Conversation"> | string
24355
+ directoryName?: StringWithAggregatesFilter<"Conversation"> | string
24356
+ workingDir?: StringWithAggregatesFilter<"Conversation"> | string
24357
+ deletedAt?: DateTimeNullableWithAggregatesFilter<"Conversation"> | Date | string | null
24358
+ lastActiveAt?: DateTimeWithAggregatesFilter<"Conversation"> | Date | string
24359
+ createdAt?: DateTimeWithAggregatesFilter<"Conversation"> | Date | string
24360
+ updatedAt?: DateTimeWithAggregatesFilter<"Conversation"> | Date | string
24361
+ }
24362
+
23156
24363
  export type SessionWhereInput = {
23157
24364
  AND?: SessionWhereInput | SessionWhereInput[]
23158
24365
  OR?: SessionWhereInput[]
23159
24366
  NOT?: SessionWhereInput | SessionWhereInput[]
23160
24367
  id?: StringFilter<"Session"> | string
23161
- workspaceId?: StringFilter<"Session"> | string
24368
+ workspaceId?: StringNullableFilter<"Session"> | string | null
24369
+ conversationId?: StringNullableFilter<"Session"> | string | null
24370
+ context?: StringFilter<"Session"> | string
23162
24371
  agentType?: StringFilter<"Session"> | string
23163
24372
  variant?: StringFilter<"Session"> | string
23164
24373
  providerId?: StringNullableFilter<"Session"> | string | null
@@ -23169,13 +24378,16 @@ export namespace Prisma {
23169
24378
  tokenUsage?: StringNullableFilter<"Session"> | string | null
23170
24379
  createdAt?: DateTimeFilter<"Session"> | Date | string
23171
24380
  updatedAt?: DateTimeFilter<"Session"> | Date | string
23172
- workspace?: XOR<WorkspaceRelationFilter, WorkspaceWhereInput>
24381
+ workspace?: XOR<WorkspaceNullableRelationFilter, WorkspaceWhereInput> | null
24382
+ conversation?: XOR<ConversationNullableRelationFilter, ConversationWhereInput> | null
23173
24383
  processes?: ExecutionProcessListRelationFilter
23174
24384
  }
23175
24385
 
23176
24386
  export type SessionOrderByWithRelationInput = {
23177
24387
  id?: SortOrder
23178
- workspaceId?: SortOrder
24388
+ workspaceId?: SortOrderInput | SortOrder
24389
+ conversationId?: SortOrderInput | SortOrder
24390
+ context?: SortOrder
23179
24391
  agentType?: SortOrder
23180
24392
  variant?: SortOrder
23181
24393
  providerId?: SortOrderInput | SortOrder
@@ -23187,15 +24399,18 @@ export namespace Prisma {
23187
24399
  createdAt?: SortOrder
23188
24400
  updatedAt?: SortOrder
23189
24401
  workspace?: WorkspaceOrderByWithRelationInput
24402
+ conversation?: ConversationOrderByWithRelationInput
23190
24403
  processes?: ExecutionProcessOrderByRelationAggregateInput
23191
24404
  }
23192
24405
 
23193
24406
  export type SessionWhereUniqueInput = Prisma.AtLeast<{
23194
24407
  id?: string
24408
+ conversationId?: string
23195
24409
  AND?: SessionWhereInput | SessionWhereInput[]
23196
24410
  OR?: SessionWhereInput[]
23197
24411
  NOT?: SessionWhereInput | SessionWhereInput[]
23198
- workspaceId?: StringFilter<"Session"> | string
24412
+ workspaceId?: StringNullableFilter<"Session"> | string | null
24413
+ context?: StringFilter<"Session"> | string
23199
24414
  agentType?: StringFilter<"Session"> | string
23200
24415
  variant?: StringFilter<"Session"> | string
23201
24416
  providerId?: StringNullableFilter<"Session"> | string | null
@@ -23206,13 +24421,16 @@ export namespace Prisma {
23206
24421
  tokenUsage?: StringNullableFilter<"Session"> | string | null
23207
24422
  createdAt?: DateTimeFilter<"Session"> | Date | string
23208
24423
  updatedAt?: DateTimeFilter<"Session"> | Date | string
23209
- workspace?: XOR<WorkspaceRelationFilter, WorkspaceWhereInput>
24424
+ workspace?: XOR<WorkspaceNullableRelationFilter, WorkspaceWhereInput> | null
24425
+ conversation?: XOR<ConversationNullableRelationFilter, ConversationWhereInput> | null
23210
24426
  processes?: ExecutionProcessListRelationFilter
23211
- }, "id">
24427
+ }, "id" | "conversationId">
23212
24428
 
23213
24429
  export type SessionOrderByWithAggregationInput = {
23214
24430
  id?: SortOrder
23215
- workspaceId?: SortOrder
24431
+ workspaceId?: SortOrderInput | SortOrder
24432
+ conversationId?: SortOrderInput | SortOrder
24433
+ context?: SortOrder
23216
24434
  agentType?: SortOrder
23217
24435
  variant?: SortOrder
23218
24436
  providerId?: SortOrderInput | SortOrder
@@ -23233,7 +24451,9 @@ export namespace Prisma {
23233
24451
  OR?: SessionScalarWhereWithAggregatesInput[]
23234
24452
  NOT?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
23235
24453
  id?: StringWithAggregatesFilter<"Session"> | string
23236
- workspaceId?: StringWithAggregatesFilter<"Session"> | string
24454
+ workspaceId?: StringNullableWithAggregatesFilter<"Session"> | string | null
24455
+ conversationId?: StringNullableWithAggregatesFilter<"Session"> | string | null
24456
+ context?: StringWithAggregatesFilter<"Session"> | string
23237
24457
  agentType?: StringWithAggregatesFilter<"Session"> | string
23238
24458
  variant?: StringWithAggregatesFilter<"Session"> | string
23239
24459
  providerId?: StringNullableWithAggregatesFilter<"Session"> | string | null
@@ -24803,8 +26023,90 @@ export namespace Prisma {
24803
26023
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24804
26024
  }
24805
26025
 
26026
+ export type ConversationCreateInput = {
26027
+ id?: string
26028
+ title: string
26029
+ directoryName: string
26030
+ workingDir: string
26031
+ deletedAt?: Date | string | null
26032
+ lastActiveAt?: Date | string
26033
+ createdAt?: Date | string
26034
+ updatedAt?: Date | string
26035
+ session?: SessionCreateNestedOneWithoutConversationInput
26036
+ }
26037
+
26038
+ export type ConversationUncheckedCreateInput = {
26039
+ id?: string
26040
+ title: string
26041
+ directoryName: string
26042
+ workingDir: string
26043
+ deletedAt?: Date | string | null
26044
+ lastActiveAt?: Date | string
26045
+ createdAt?: Date | string
26046
+ updatedAt?: Date | string
26047
+ session?: SessionUncheckedCreateNestedOneWithoutConversationInput
26048
+ }
26049
+
26050
+ export type ConversationUpdateInput = {
26051
+ id?: StringFieldUpdateOperationsInput | string
26052
+ title?: StringFieldUpdateOperationsInput | string
26053
+ directoryName?: StringFieldUpdateOperationsInput | string
26054
+ workingDir?: StringFieldUpdateOperationsInput | string
26055
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
26056
+ lastActiveAt?: DateTimeFieldUpdateOperationsInput | Date | string
26057
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26058
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
26059
+ session?: SessionUpdateOneWithoutConversationNestedInput
26060
+ }
26061
+
26062
+ export type ConversationUncheckedUpdateInput = {
26063
+ id?: StringFieldUpdateOperationsInput | string
26064
+ title?: StringFieldUpdateOperationsInput | string
26065
+ directoryName?: StringFieldUpdateOperationsInput | string
26066
+ workingDir?: StringFieldUpdateOperationsInput | string
26067
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
26068
+ lastActiveAt?: DateTimeFieldUpdateOperationsInput | Date | string
26069
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26070
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
26071
+ session?: SessionUncheckedUpdateOneWithoutConversationNestedInput
26072
+ }
26073
+
26074
+ export type ConversationCreateManyInput = {
26075
+ id?: string
26076
+ title: string
26077
+ directoryName: string
26078
+ workingDir: string
26079
+ deletedAt?: Date | string | null
26080
+ lastActiveAt?: Date | string
26081
+ createdAt?: Date | string
26082
+ updatedAt?: Date | string
26083
+ }
26084
+
26085
+ export type ConversationUpdateManyMutationInput = {
26086
+ id?: StringFieldUpdateOperationsInput | string
26087
+ title?: StringFieldUpdateOperationsInput | string
26088
+ directoryName?: StringFieldUpdateOperationsInput | string
26089
+ workingDir?: StringFieldUpdateOperationsInput | string
26090
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
26091
+ lastActiveAt?: DateTimeFieldUpdateOperationsInput | Date | string
26092
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26093
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
26094
+ }
26095
+
26096
+ export type ConversationUncheckedUpdateManyInput = {
26097
+ id?: StringFieldUpdateOperationsInput | string
26098
+ title?: StringFieldUpdateOperationsInput | string
26099
+ directoryName?: StringFieldUpdateOperationsInput | string
26100
+ workingDir?: StringFieldUpdateOperationsInput | string
26101
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
26102
+ lastActiveAt?: DateTimeFieldUpdateOperationsInput | Date | string
26103
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26104
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
26105
+ }
26106
+
24806
26107
  export type SessionCreateInput = {
24807
26108
  id?: string
26109
+ context?: string
24808
26110
  agentType: string
24809
26111
  variant?: string
24810
26112
  providerId?: string | null
@@ -24815,13 +26117,16 @@ export namespace Prisma {
24815
26117
  tokenUsage?: string | null
24816
26118
  createdAt?: Date | string
24817
26119
  updatedAt?: Date | string
24818
- workspace: WorkspaceCreateNestedOneWithoutSessionsInput
26120
+ workspace?: WorkspaceCreateNestedOneWithoutSessionsInput
26121
+ conversation?: ConversationCreateNestedOneWithoutSessionInput
24819
26122
  processes?: ExecutionProcessCreateNestedManyWithoutSessionInput
24820
26123
  }
24821
26124
 
24822
26125
  export type SessionUncheckedCreateInput = {
24823
26126
  id?: string
24824
- workspaceId: string
26127
+ workspaceId?: string | null
26128
+ conversationId?: string | null
26129
+ context?: string
24825
26130
  agentType: string
24826
26131
  variant?: string
24827
26132
  providerId?: string | null
@@ -24837,6 +26142,7 @@ export namespace Prisma {
24837
26142
 
24838
26143
  export type SessionUpdateInput = {
24839
26144
  id?: StringFieldUpdateOperationsInput | string
26145
+ context?: StringFieldUpdateOperationsInput | string
24840
26146
  agentType?: StringFieldUpdateOperationsInput | string
24841
26147
  variant?: StringFieldUpdateOperationsInput | string
24842
26148
  providerId?: NullableStringFieldUpdateOperationsInput | string | null
@@ -24847,13 +26153,16 @@ export namespace Prisma {
24847
26153
  tokenUsage?: NullableStringFieldUpdateOperationsInput | string | null
24848
26154
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24849
26155
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24850
- workspace?: WorkspaceUpdateOneRequiredWithoutSessionsNestedInput
26156
+ workspace?: WorkspaceUpdateOneWithoutSessionsNestedInput
26157
+ conversation?: ConversationUpdateOneWithoutSessionNestedInput
24851
26158
  processes?: ExecutionProcessUpdateManyWithoutSessionNestedInput
24852
26159
  }
24853
26160
 
24854
26161
  export type SessionUncheckedUpdateInput = {
24855
26162
  id?: StringFieldUpdateOperationsInput | string
24856
- workspaceId?: StringFieldUpdateOperationsInput | string
26163
+ workspaceId?: NullableStringFieldUpdateOperationsInput | string | null
26164
+ conversationId?: NullableStringFieldUpdateOperationsInput | string | null
26165
+ context?: StringFieldUpdateOperationsInput | string
24857
26166
  agentType?: StringFieldUpdateOperationsInput | string
24858
26167
  variant?: StringFieldUpdateOperationsInput | string
24859
26168
  providerId?: NullableStringFieldUpdateOperationsInput | string | null
@@ -24869,7 +26178,9 @@ export namespace Prisma {
24869
26178
 
24870
26179
  export type SessionCreateManyInput = {
24871
26180
  id?: string
24872
- workspaceId: string
26181
+ workspaceId?: string | null
26182
+ conversationId?: string | null
26183
+ context?: string
24873
26184
  agentType: string
24874
26185
  variant?: string
24875
26186
  providerId?: string | null
@@ -24884,6 +26195,7 @@ export namespace Prisma {
24884
26195
 
24885
26196
  export type SessionUpdateManyMutationInput = {
24886
26197
  id?: StringFieldUpdateOperationsInput | string
26198
+ context?: StringFieldUpdateOperationsInput | string
24887
26199
  agentType?: StringFieldUpdateOperationsInput | string
24888
26200
  variant?: StringFieldUpdateOperationsInput | string
24889
26201
  providerId?: NullableStringFieldUpdateOperationsInput | string | null
@@ -24898,7 +26210,9 @@ export namespace Prisma {
24898
26210
 
24899
26211
  export type SessionUncheckedUpdateManyInput = {
24900
26212
  id?: StringFieldUpdateOperationsInput | string
24901
- workspaceId?: StringFieldUpdateOperationsInput | string
26213
+ workspaceId?: NullableStringFieldUpdateOperationsInput | string | null
26214
+ conversationId?: NullableStringFieldUpdateOperationsInput | string | null
26215
+ context?: StringFieldUpdateOperationsInput | string
24902
26216
  agentType?: StringFieldUpdateOperationsInput | string
24903
26217
  variant?: StringFieldUpdateOperationsInput | string
24904
26218
  providerId?: NullableStringFieldUpdateOperationsInput | string | null
@@ -26085,9 +27399,47 @@ export namespace Prisma {
26085
27399
  updatedAt?: SortOrder
26086
27400
  }
26087
27401
 
26088
- export type WorkspaceRelationFilter = {
26089
- is?: WorkspaceWhereInput
26090
- isNot?: WorkspaceWhereInput
27402
+ export type SessionNullableRelationFilter = {
27403
+ is?: SessionWhereInput | null
27404
+ isNot?: SessionWhereInput | null
27405
+ }
27406
+
27407
+ export type ConversationCountOrderByAggregateInput = {
27408
+ id?: SortOrder
27409
+ title?: SortOrder
27410
+ directoryName?: SortOrder
27411
+ workingDir?: SortOrder
27412
+ deletedAt?: SortOrder
27413
+ lastActiveAt?: SortOrder
27414
+ createdAt?: SortOrder
27415
+ updatedAt?: SortOrder
27416
+ }
27417
+
27418
+ export type ConversationMaxOrderByAggregateInput = {
27419
+ id?: SortOrder
27420
+ title?: SortOrder
27421
+ directoryName?: SortOrder
27422
+ workingDir?: SortOrder
27423
+ deletedAt?: SortOrder
27424
+ lastActiveAt?: SortOrder
27425
+ createdAt?: SortOrder
27426
+ updatedAt?: SortOrder
27427
+ }
27428
+
27429
+ export type ConversationMinOrderByAggregateInput = {
27430
+ id?: SortOrder
27431
+ title?: SortOrder
27432
+ directoryName?: SortOrder
27433
+ workingDir?: SortOrder
27434
+ deletedAt?: SortOrder
27435
+ lastActiveAt?: SortOrder
27436
+ createdAt?: SortOrder
27437
+ updatedAt?: SortOrder
27438
+ }
27439
+
27440
+ export type ConversationNullableRelationFilter = {
27441
+ is?: ConversationWhereInput | null
27442
+ isNot?: ConversationWhereInput | null
26091
27443
  }
26092
27444
 
26093
27445
  export type ExecutionProcessListRelationFilter = {
@@ -26103,6 +27455,8 @@ export namespace Prisma {
26103
27455
  export type SessionCountOrderByAggregateInput = {
26104
27456
  id?: SortOrder
26105
27457
  workspaceId?: SortOrder
27458
+ conversationId?: SortOrder
27459
+ context?: SortOrder
26106
27460
  agentType?: SortOrder
26107
27461
  variant?: SortOrder
26108
27462
  providerId?: SortOrder
@@ -26118,6 +27472,8 @@ export namespace Prisma {
26118
27472
  export type SessionMaxOrderByAggregateInput = {
26119
27473
  id?: SortOrder
26120
27474
  workspaceId?: SortOrder
27475
+ conversationId?: SortOrder
27476
+ context?: SortOrder
26121
27477
  agentType?: SortOrder
26122
27478
  variant?: SortOrder
26123
27479
  providerId?: SortOrder
@@ -26133,6 +27489,8 @@ export namespace Prisma {
26133
27489
  export type SessionMinOrderByAggregateInput = {
26134
27490
  id?: SortOrder
26135
27491
  workspaceId?: SortOrder
27492
+ conversationId?: SortOrder
27493
+ context?: SortOrder
26136
27494
  agentType?: SortOrder
26137
27495
  variant?: SortOrder
26138
27496
  providerId?: SortOrder
@@ -27118,12 +28476,50 @@ export namespace Prisma {
27118
28476
  deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[]
27119
28477
  }
27120
28478
 
28479
+ export type SessionCreateNestedOneWithoutConversationInput = {
28480
+ create?: XOR<SessionCreateWithoutConversationInput, SessionUncheckedCreateWithoutConversationInput>
28481
+ connectOrCreate?: SessionCreateOrConnectWithoutConversationInput
28482
+ connect?: SessionWhereUniqueInput
28483
+ }
28484
+
28485
+ export type SessionUncheckedCreateNestedOneWithoutConversationInput = {
28486
+ create?: XOR<SessionCreateWithoutConversationInput, SessionUncheckedCreateWithoutConversationInput>
28487
+ connectOrCreate?: SessionCreateOrConnectWithoutConversationInput
28488
+ connect?: SessionWhereUniqueInput
28489
+ }
28490
+
28491
+ export type SessionUpdateOneWithoutConversationNestedInput = {
28492
+ create?: XOR<SessionCreateWithoutConversationInput, SessionUncheckedCreateWithoutConversationInput>
28493
+ connectOrCreate?: SessionCreateOrConnectWithoutConversationInput
28494
+ upsert?: SessionUpsertWithoutConversationInput
28495
+ disconnect?: SessionWhereInput | boolean
28496
+ delete?: SessionWhereInput | boolean
28497
+ connect?: SessionWhereUniqueInput
28498
+ update?: XOR<XOR<SessionUpdateToOneWithWhereWithoutConversationInput, SessionUpdateWithoutConversationInput>, SessionUncheckedUpdateWithoutConversationInput>
28499
+ }
28500
+
28501
+ export type SessionUncheckedUpdateOneWithoutConversationNestedInput = {
28502
+ create?: XOR<SessionCreateWithoutConversationInput, SessionUncheckedCreateWithoutConversationInput>
28503
+ connectOrCreate?: SessionCreateOrConnectWithoutConversationInput
28504
+ upsert?: SessionUpsertWithoutConversationInput
28505
+ disconnect?: SessionWhereInput | boolean
28506
+ delete?: SessionWhereInput | boolean
28507
+ connect?: SessionWhereUniqueInput
28508
+ update?: XOR<XOR<SessionUpdateToOneWithWhereWithoutConversationInput, SessionUpdateWithoutConversationInput>, SessionUncheckedUpdateWithoutConversationInput>
28509
+ }
28510
+
27121
28511
  export type WorkspaceCreateNestedOneWithoutSessionsInput = {
27122
28512
  create?: XOR<WorkspaceCreateWithoutSessionsInput, WorkspaceUncheckedCreateWithoutSessionsInput>
27123
28513
  connectOrCreate?: WorkspaceCreateOrConnectWithoutSessionsInput
27124
28514
  connect?: WorkspaceWhereUniqueInput
27125
28515
  }
27126
28516
 
28517
+ export type ConversationCreateNestedOneWithoutSessionInput = {
28518
+ create?: XOR<ConversationCreateWithoutSessionInput, ConversationUncheckedCreateWithoutSessionInput>
28519
+ connectOrCreate?: ConversationCreateOrConnectWithoutSessionInput
28520
+ connect?: ConversationWhereUniqueInput
28521
+ }
28522
+
27127
28523
  export type ExecutionProcessCreateNestedManyWithoutSessionInput = {
27128
28524
  create?: XOR<ExecutionProcessCreateWithoutSessionInput, ExecutionProcessUncheckedCreateWithoutSessionInput> | ExecutionProcessCreateWithoutSessionInput[] | ExecutionProcessUncheckedCreateWithoutSessionInput[]
27129
28525
  connectOrCreate?: ExecutionProcessCreateOrConnectWithoutSessionInput | ExecutionProcessCreateOrConnectWithoutSessionInput[]
@@ -27138,14 +28534,26 @@ export namespace Prisma {
27138
28534
  connect?: ExecutionProcessWhereUniqueInput | ExecutionProcessWhereUniqueInput[]
27139
28535
  }
27140
28536
 
27141
- export type WorkspaceUpdateOneRequiredWithoutSessionsNestedInput = {
28537
+ export type WorkspaceUpdateOneWithoutSessionsNestedInput = {
27142
28538
  create?: XOR<WorkspaceCreateWithoutSessionsInput, WorkspaceUncheckedCreateWithoutSessionsInput>
27143
28539
  connectOrCreate?: WorkspaceCreateOrConnectWithoutSessionsInput
27144
28540
  upsert?: WorkspaceUpsertWithoutSessionsInput
28541
+ disconnect?: WorkspaceWhereInput | boolean
28542
+ delete?: WorkspaceWhereInput | boolean
27145
28543
  connect?: WorkspaceWhereUniqueInput
27146
28544
  update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutSessionsInput, WorkspaceUpdateWithoutSessionsInput>, WorkspaceUncheckedUpdateWithoutSessionsInput>
27147
28545
  }
27148
28546
 
28547
+ export type ConversationUpdateOneWithoutSessionNestedInput = {
28548
+ create?: XOR<ConversationCreateWithoutSessionInput, ConversationUncheckedCreateWithoutSessionInput>
28549
+ connectOrCreate?: ConversationCreateOrConnectWithoutSessionInput
28550
+ upsert?: ConversationUpsertWithoutSessionInput
28551
+ disconnect?: ConversationWhereInput | boolean
28552
+ delete?: ConversationWhereInput | boolean
28553
+ connect?: ConversationWhereUniqueInput
28554
+ update?: XOR<XOR<ConversationUpdateToOneWithWhereWithoutSessionInput, ConversationUpdateWithoutSessionInput>, ConversationUncheckedUpdateWithoutSessionInput>
28555
+ }
28556
+
27149
28557
  export type ExecutionProcessUpdateManyWithoutSessionNestedInput = {
27150
28558
  create?: XOR<ExecutionProcessCreateWithoutSessionInput, ExecutionProcessUncheckedCreateWithoutSessionInput> | ExecutionProcessCreateWithoutSessionInput[] | ExecutionProcessUncheckedCreateWithoutSessionInput[]
27151
28559
  connectOrCreate?: ExecutionProcessCreateOrConnectWithoutSessionInput | ExecutionProcessCreateOrConnectWithoutSessionInput[]
@@ -29086,6 +30494,7 @@ export namespace Prisma {
29086
30494
 
29087
30495
  export type SessionCreateWithoutWorkspaceInput = {
29088
30496
  id?: string
30497
+ context?: string
29089
30498
  agentType: string
29090
30499
  variant?: string
29091
30500
  providerId?: string | null
@@ -29096,11 +30505,14 @@ export namespace Prisma {
29096
30505
  tokenUsage?: string | null
29097
30506
  createdAt?: Date | string
29098
30507
  updatedAt?: Date | string
30508
+ conversation?: ConversationCreateNestedOneWithoutSessionInput
29099
30509
  processes?: ExecutionProcessCreateNestedManyWithoutSessionInput
29100
30510
  }
29101
30511
 
29102
30512
  export type SessionUncheckedCreateWithoutWorkspaceInput = {
29103
30513
  id?: string
30514
+ conversationId?: string | null
30515
+ context?: string
29104
30516
  agentType: string
29105
30517
  variant?: string
29106
30518
  providerId?: string | null
@@ -29332,7 +30744,9 @@ export namespace Prisma {
29332
30744
  OR?: SessionScalarWhereInput[]
29333
30745
  NOT?: SessionScalarWhereInput | SessionScalarWhereInput[]
29334
30746
  id?: StringFilter<"Session"> | string
29335
- workspaceId?: StringFilter<"Session"> | string
30747
+ workspaceId?: StringNullableFilter<"Session"> | string | null
30748
+ conversationId?: StringNullableFilter<"Session"> | string | null
30749
+ context?: StringFilter<"Session"> | string
29336
30750
  agentType?: StringFilter<"Session"> | string
29337
30751
  variant?: StringFilter<"Session"> | string
29338
30752
  providerId?: StringNullableFilter<"Session"> | string | null
@@ -29345,6 +30759,90 @@ export namespace Prisma {
29345
30759
  updatedAt?: DateTimeFilter<"Session"> | Date | string
29346
30760
  }
29347
30761
 
30762
+ export type SessionCreateWithoutConversationInput = {
30763
+ id?: string
30764
+ context?: string
30765
+ agentType: string
30766
+ variant?: string
30767
+ providerId?: string | null
30768
+ prompt: string
30769
+ status?: string
30770
+ purpose?: string
30771
+ logSnapshot?: string | null
30772
+ tokenUsage?: string | null
30773
+ createdAt?: Date | string
30774
+ updatedAt?: Date | string
30775
+ workspace?: WorkspaceCreateNestedOneWithoutSessionsInput
30776
+ processes?: ExecutionProcessCreateNestedManyWithoutSessionInput
30777
+ }
30778
+
30779
+ export type SessionUncheckedCreateWithoutConversationInput = {
30780
+ id?: string
30781
+ workspaceId?: string | null
30782
+ context?: string
30783
+ agentType: string
30784
+ variant?: string
30785
+ providerId?: string | null
30786
+ prompt: string
30787
+ status?: string
30788
+ purpose?: string
30789
+ logSnapshot?: string | null
30790
+ tokenUsage?: string | null
30791
+ createdAt?: Date | string
30792
+ updatedAt?: Date | string
30793
+ processes?: ExecutionProcessUncheckedCreateNestedManyWithoutSessionInput
30794
+ }
30795
+
30796
+ export type SessionCreateOrConnectWithoutConversationInput = {
30797
+ where: SessionWhereUniqueInput
30798
+ create: XOR<SessionCreateWithoutConversationInput, SessionUncheckedCreateWithoutConversationInput>
30799
+ }
30800
+
30801
+ export type SessionUpsertWithoutConversationInput = {
30802
+ update: XOR<SessionUpdateWithoutConversationInput, SessionUncheckedUpdateWithoutConversationInput>
30803
+ create: XOR<SessionCreateWithoutConversationInput, SessionUncheckedCreateWithoutConversationInput>
30804
+ where?: SessionWhereInput
30805
+ }
30806
+
30807
+ export type SessionUpdateToOneWithWhereWithoutConversationInput = {
30808
+ where?: SessionWhereInput
30809
+ data: XOR<SessionUpdateWithoutConversationInput, SessionUncheckedUpdateWithoutConversationInput>
30810
+ }
30811
+
30812
+ export type SessionUpdateWithoutConversationInput = {
30813
+ id?: StringFieldUpdateOperationsInput | string
30814
+ context?: StringFieldUpdateOperationsInput | string
30815
+ agentType?: StringFieldUpdateOperationsInput | string
30816
+ variant?: StringFieldUpdateOperationsInput | string
30817
+ providerId?: NullableStringFieldUpdateOperationsInput | string | null
30818
+ prompt?: StringFieldUpdateOperationsInput | string
30819
+ status?: StringFieldUpdateOperationsInput | string
30820
+ purpose?: StringFieldUpdateOperationsInput | string
30821
+ logSnapshot?: NullableStringFieldUpdateOperationsInput | string | null
30822
+ tokenUsage?: NullableStringFieldUpdateOperationsInput | string | null
30823
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
30824
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
30825
+ workspace?: WorkspaceUpdateOneWithoutSessionsNestedInput
30826
+ processes?: ExecutionProcessUpdateManyWithoutSessionNestedInput
30827
+ }
30828
+
30829
+ export type SessionUncheckedUpdateWithoutConversationInput = {
30830
+ id?: StringFieldUpdateOperationsInput | string
30831
+ workspaceId?: NullableStringFieldUpdateOperationsInput | string | null
30832
+ context?: StringFieldUpdateOperationsInput | string
30833
+ agentType?: StringFieldUpdateOperationsInput | string
30834
+ variant?: StringFieldUpdateOperationsInput | string
30835
+ providerId?: NullableStringFieldUpdateOperationsInput | string | null
30836
+ prompt?: StringFieldUpdateOperationsInput | string
30837
+ status?: StringFieldUpdateOperationsInput | string
30838
+ purpose?: StringFieldUpdateOperationsInput | string
30839
+ logSnapshot?: NullableStringFieldUpdateOperationsInput | string | null
30840
+ tokenUsage?: NullableStringFieldUpdateOperationsInput | string | null
30841
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
30842
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
30843
+ processes?: ExecutionProcessUncheckedUpdateManyWithoutSessionNestedInput
30844
+ }
30845
+
29348
30846
  export type WorkspaceCreateWithoutSessionsInput = {
29349
30847
  id?: string
29350
30848
  branchName: string
@@ -29390,6 +30888,33 @@ export namespace Prisma {
29390
30888
  create: XOR<WorkspaceCreateWithoutSessionsInput, WorkspaceUncheckedCreateWithoutSessionsInput>
29391
30889
  }
29392
30890
 
30891
+ export type ConversationCreateWithoutSessionInput = {
30892
+ id?: string
30893
+ title: string
30894
+ directoryName: string
30895
+ workingDir: string
30896
+ deletedAt?: Date | string | null
30897
+ lastActiveAt?: Date | string
30898
+ createdAt?: Date | string
30899
+ updatedAt?: Date | string
30900
+ }
30901
+
30902
+ export type ConversationUncheckedCreateWithoutSessionInput = {
30903
+ id?: string
30904
+ title: string
30905
+ directoryName: string
30906
+ workingDir: string
30907
+ deletedAt?: Date | string | null
30908
+ lastActiveAt?: Date | string
30909
+ createdAt?: Date | string
30910
+ updatedAt?: Date | string
30911
+ }
30912
+
30913
+ export type ConversationCreateOrConnectWithoutSessionInput = {
30914
+ where: ConversationWhereUniqueInput
30915
+ create: XOR<ConversationCreateWithoutSessionInput, ConversationUncheckedCreateWithoutSessionInput>
30916
+ }
30917
+
29393
30918
  export type ExecutionProcessCreateWithoutSessionInput = {
29394
30919
  id?: string
29395
30920
  pid?: number | null
@@ -29466,6 +30991,39 @@ export namespace Prisma {
29466
30991
  mainForTeamRuns?: TeamRunUncheckedUpdateManyWithoutMainWorkspaceNestedInput
29467
30992
  }
29468
30993
 
30994
+ export type ConversationUpsertWithoutSessionInput = {
30995
+ update: XOR<ConversationUpdateWithoutSessionInput, ConversationUncheckedUpdateWithoutSessionInput>
30996
+ create: XOR<ConversationCreateWithoutSessionInput, ConversationUncheckedCreateWithoutSessionInput>
30997
+ where?: ConversationWhereInput
30998
+ }
30999
+
31000
+ export type ConversationUpdateToOneWithWhereWithoutSessionInput = {
31001
+ where?: ConversationWhereInput
31002
+ data: XOR<ConversationUpdateWithoutSessionInput, ConversationUncheckedUpdateWithoutSessionInput>
31003
+ }
31004
+
31005
+ export type ConversationUpdateWithoutSessionInput = {
31006
+ id?: StringFieldUpdateOperationsInput | string
31007
+ title?: StringFieldUpdateOperationsInput | string
31008
+ directoryName?: StringFieldUpdateOperationsInput | string
31009
+ workingDir?: StringFieldUpdateOperationsInput | string
31010
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
31011
+ lastActiveAt?: DateTimeFieldUpdateOperationsInput | Date | string
31012
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
31013
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
31014
+ }
31015
+
31016
+ export type ConversationUncheckedUpdateWithoutSessionInput = {
31017
+ id?: StringFieldUpdateOperationsInput | string
31018
+ title?: StringFieldUpdateOperationsInput | string
31019
+ directoryName?: StringFieldUpdateOperationsInput | string
31020
+ workingDir?: StringFieldUpdateOperationsInput | string
31021
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
31022
+ lastActiveAt?: DateTimeFieldUpdateOperationsInput | Date | string
31023
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
31024
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
31025
+ }
31026
+
29469
31027
  export type ExecutionProcessUpsertWithWhereUniqueWithoutSessionInput = {
29470
31028
  where: ExecutionProcessWhereUniqueInput
29471
31029
  update: XOR<ExecutionProcessUpdateWithoutSessionInput, ExecutionProcessUncheckedUpdateWithoutSessionInput>
@@ -29496,6 +31054,7 @@ export namespace Prisma {
29496
31054
 
29497
31055
  export type SessionCreateWithoutProcessesInput = {
29498
31056
  id?: string
31057
+ context?: string
29499
31058
  agentType: string
29500
31059
  variant?: string
29501
31060
  providerId?: string | null
@@ -29506,12 +31065,15 @@ export namespace Prisma {
29506
31065
  tokenUsage?: string | null
29507
31066
  createdAt?: Date | string
29508
31067
  updatedAt?: Date | string
29509
- workspace: WorkspaceCreateNestedOneWithoutSessionsInput
31068
+ workspace?: WorkspaceCreateNestedOneWithoutSessionsInput
31069
+ conversation?: ConversationCreateNestedOneWithoutSessionInput
29510
31070
  }
29511
31071
 
29512
31072
  export type SessionUncheckedCreateWithoutProcessesInput = {
29513
31073
  id?: string
29514
- workspaceId: string
31074
+ workspaceId?: string | null
31075
+ conversationId?: string | null
31076
+ context?: string
29515
31077
  agentType: string
29516
31078
  variant?: string
29517
31079
  providerId?: string | null
@@ -29542,6 +31104,7 @@ export namespace Prisma {
29542
31104
 
29543
31105
  export type SessionUpdateWithoutProcessesInput = {
29544
31106
  id?: StringFieldUpdateOperationsInput | string
31107
+ context?: StringFieldUpdateOperationsInput | string
29545
31108
  agentType?: StringFieldUpdateOperationsInput | string
29546
31109
  variant?: StringFieldUpdateOperationsInput | string
29547
31110
  providerId?: NullableStringFieldUpdateOperationsInput | string | null
@@ -29552,12 +31115,15 @@ export namespace Prisma {
29552
31115
  tokenUsage?: NullableStringFieldUpdateOperationsInput | string | null
29553
31116
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29554
31117
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
29555
- workspace?: WorkspaceUpdateOneRequiredWithoutSessionsNestedInput
31118
+ workspace?: WorkspaceUpdateOneWithoutSessionsNestedInput
31119
+ conversation?: ConversationUpdateOneWithoutSessionNestedInput
29556
31120
  }
29557
31121
 
29558
31122
  export type SessionUncheckedUpdateWithoutProcessesInput = {
29559
31123
  id?: StringFieldUpdateOperationsInput | string
29560
- workspaceId?: StringFieldUpdateOperationsInput | string
31124
+ workspaceId?: NullableStringFieldUpdateOperationsInput | string | null
31125
+ conversationId?: NullableStringFieldUpdateOperationsInput | string | null
31126
+ context?: StringFieldUpdateOperationsInput | string
29561
31127
  agentType?: StringFieldUpdateOperationsInput | string
29562
31128
  variant?: StringFieldUpdateOperationsInput | string
29563
31129
  providerId?: NullableStringFieldUpdateOperationsInput | string | null
@@ -30136,6 +31702,8 @@ export namespace Prisma {
30136
31702
 
30137
31703
  export type SessionCreateManyWorkspaceInput = {
30138
31704
  id?: string
31705
+ conversationId?: string | null
31706
+ context?: string
30139
31707
  agentType: string
30140
31708
  variant?: string
30141
31709
  providerId?: string | null
@@ -30242,6 +31810,7 @@ export namespace Prisma {
30242
31810
 
30243
31811
  export type SessionUpdateWithoutWorkspaceInput = {
30244
31812
  id?: StringFieldUpdateOperationsInput | string
31813
+ context?: StringFieldUpdateOperationsInput | string
30245
31814
  agentType?: StringFieldUpdateOperationsInput | string
30246
31815
  variant?: StringFieldUpdateOperationsInput | string
30247
31816
  providerId?: NullableStringFieldUpdateOperationsInput | string | null
@@ -30252,11 +31821,14 @@ export namespace Prisma {
30252
31821
  tokenUsage?: NullableStringFieldUpdateOperationsInput | string | null
30253
31822
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
30254
31823
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
31824
+ conversation?: ConversationUpdateOneWithoutSessionNestedInput
30255
31825
  processes?: ExecutionProcessUpdateManyWithoutSessionNestedInput
30256
31826
  }
30257
31827
 
30258
31828
  export type SessionUncheckedUpdateWithoutWorkspaceInput = {
30259
31829
  id?: StringFieldUpdateOperationsInput | string
31830
+ conversationId?: NullableStringFieldUpdateOperationsInput | string | null
31831
+ context?: StringFieldUpdateOperationsInput | string
30260
31832
  agentType?: StringFieldUpdateOperationsInput | string
30261
31833
  variant?: StringFieldUpdateOperationsInput | string
30262
31834
  providerId?: NullableStringFieldUpdateOperationsInput | string | null
@@ -30272,6 +31844,8 @@ export namespace Prisma {
30272
31844
 
30273
31845
  export type SessionUncheckedUpdateManyWithoutWorkspaceInput = {
30274
31846
  id?: StringFieldUpdateOperationsInput | string
31847
+ conversationId?: NullableStringFieldUpdateOperationsInput | string | null
31848
+ context?: StringFieldUpdateOperationsInput | string
30275
31849
  agentType?: StringFieldUpdateOperationsInput | string
30276
31850
  variant?: StringFieldUpdateOperationsInput | string
30277
31851
  providerId?: NullableStringFieldUpdateOperationsInput | string | null
@@ -30405,6 +31979,10 @@ export namespace Prisma {
30405
31979
  * @deprecated Use WorkspaceDefaultArgs instead
30406
31980
  */
30407
31981
  export type WorkspaceArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = WorkspaceDefaultArgs<ExtArgs>
31982
+ /**
31983
+ * @deprecated Use ConversationDefaultArgs instead
31984
+ */
31985
+ export type ConversationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ConversationDefaultArgs<ExtArgs>
30408
31986
  /**
30409
31987
  * @deprecated Use SessionDefaultArgs instead
30410
31988
  */