syrtis-python-client-internal 1.0.0__py3-none-any.whl

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 (282) hide show
  1. syrtis_python_client_internal/__init__.py +17 -0
  2. syrtis_python_client_internal/common/__init__.py +0 -0
  3. syrtis_python_client_internal/common/entity_schemas.py +11 -0
  4. syrtis_python_client_internal/common/generated_entities.py +83 -0
  5. syrtis_python_client_internal/common/generated_entity_schemas.py +54 -0
  6. syrtis_python_client_internal/common/generated_external_relations.py +18 -0
  7. syrtis_python_client_internal/common/generated_repositories.py +76 -0
  8. syrtis_python_client_internal/common/syrtis_client.py +31 -0
  9. syrtis_python_client_internal/data/__init__.py +0 -0
  10. syrtis_python_client_internal/data/entity/__init__.py +0 -0
  11. syrtis_python_client_internal/data/entity/artifact.json +261 -0
  12. syrtis_python_client_internal/data/entity/content_type.json +235 -0
  13. syrtis_python_client_internal/data/entity/credential.json +175 -0
  14. syrtis_python_client_internal/data/entity/credential_parameter.json +166 -0
  15. syrtis_python_client_internal/data/entity/dashboard.json +213 -0
  16. syrtis_python_client_internal/data/entity/directory.json +125 -0
  17. syrtis_python_client_internal/data/entity/document_directory.json +139 -0
  18. syrtis_python_client_internal/data/entity/embedding.json +192 -0
  19. syrtis_python_client_internal/data/entity/extension.json +203 -0
  20. syrtis_python_client_internal/data/entity/instruction.json +213 -0
  21. syrtis_python_client_internal/data/entity/internal_sample.json +10 -0
  22. syrtis_python_client_internal/data/entity/layer.json +96 -0
  23. syrtis_python_client_internal/data/entity/log.json +642 -0
  24. syrtis_python_client_internal/data/entity/model.json +226 -0
  25. syrtis_python_client_internal/data/entity/operator.json +149 -0
  26. syrtis_python_client_internal/data/entity/operator_port.json +220 -0
  27. syrtis_python_client_internal/data/entity/panel.json +450 -0
  28. syrtis_python_client_internal/data/entity/panel_stamp.json +116 -0
  29. syrtis_python_client_internal/data/entity/pipeline.json +357 -0
  30. syrtis_python_client_internal/data/entity/pipeline_operator.json +28 -0
  31. syrtis_python_client_internal/data/entity/pipeline_projection.json +163 -0
  32. syrtis_python_client_internal/data/entity/project.json +213 -0
  33. syrtis_python_client_internal/data/entity/project_access.json +161 -0
  34. syrtis_python_client_internal/data/entity/projection.json +349 -0
  35. syrtis_python_client_internal/data/entity/projection_config.json +237 -0
  36. syrtis_python_client_internal/data/entity/projection_relation.json +261 -0
  37. syrtis_python_client_internal/data/entity/prompt.json +491 -0
  38. syrtis_python_client_internal/data/entity/schema.json +63 -0
  39. syrtis_python_client_internal/data/entity/session_group.json +196 -0
  40. syrtis_python_client_internal/data/entity/source.json +187 -0
  41. syrtis_python_client_internal/data/entity/storage.json +140 -0
  42. syrtis_python_client_internal/data/entity/storage_content_type.json +139 -0
  43. syrtis_python_client_internal/data/entity/token.json +116 -0
  44. syrtis_python_client_internal/data/entity/trigger.json +90 -0
  45. syrtis_python_client_internal/data/entity/trigger_config.json +138 -0
  46. syrtis_python_client_internal/data/entity/user_config.json +193 -0
  47. syrtis_python_client_internal/database/__init__.py +0 -0
  48. syrtis_python_client_internal/database/database_repositories_manager.py +21 -0
  49. syrtis_python_client_internal/database/generated_repositories.py +120 -0
  50. syrtis_python_client_internal/database/repository/__init__.py +0 -0
  51. syrtis_python_client_internal/database/repository/artifact_repository.py +11 -0
  52. syrtis_python_client_internal/database/repository/card_message_repository.py +11 -0
  53. syrtis_python_client_internal/database/repository/card_relation_repository.py +11 -0
  54. syrtis_python_client_internal/database/repository/card_repository.py +11 -0
  55. syrtis_python_client_internal/database/repository/chunk_repository.py +11 -0
  56. syrtis_python_client_internal/database/repository/content_type_repository.py +11 -0
  57. syrtis_python_client_internal/database/repository/credential_parameter_repository.py +11 -0
  58. syrtis_python_client_internal/database/repository/credential_repository.py +11 -0
  59. syrtis_python_client_internal/database/repository/dashboard_repository.py +11 -0
  60. syrtis_python_client_internal/database/repository/directory_repository.py +11 -0
  61. syrtis_python_client_internal/database/repository/document_directory_repository.py +11 -0
  62. syrtis_python_client_internal/database/repository/document_repository.py +11 -0
  63. syrtis_python_client_internal/database/repository/embedding_repository.py +11 -0
  64. syrtis_python_client_internal/database/repository/environment_repository.py +11 -0
  65. syrtis_python_client_internal/database/repository/extension_repository.py +11 -0
  66. syrtis_python_client_internal/database/repository/generated/__init__.py +0 -0
  67. syrtis_python_client_internal/database/repository/generated/artifact_repository_generated.py +11 -0
  68. syrtis_python_client_internal/database/repository/generated/card_message_repository_generated.py +11 -0
  69. syrtis_python_client_internal/database/repository/generated/card_relation_repository_generated.py +11 -0
  70. syrtis_python_client_internal/database/repository/generated/card_repository_generated.py +11 -0
  71. syrtis_python_client_internal/database/repository/generated/chunk_repository_generated.py +11 -0
  72. syrtis_python_client_internal/database/repository/generated/content_type_repository_generated.py +11 -0
  73. syrtis_python_client_internal/database/repository/generated/credential_parameter_repository_generated.py +11 -0
  74. syrtis_python_client_internal/database/repository/generated/credential_repository_generated.py +11 -0
  75. syrtis_python_client_internal/database/repository/generated/dashboard_repository_generated.py +11 -0
  76. syrtis_python_client_internal/database/repository/generated/directory_repository_generated.py +11 -0
  77. syrtis_python_client_internal/database/repository/generated/document_directory_repository_generated.py +11 -0
  78. syrtis_python_client_internal/database/repository/generated/document_repository_generated.py +11 -0
  79. syrtis_python_client_internal/database/repository/generated/embedding_repository_generated.py +11 -0
  80. syrtis_python_client_internal/database/repository/generated/environment_repository_generated.py +11 -0
  81. syrtis_python_client_internal/database/repository/generated/extension_repository_generated.py +11 -0
  82. syrtis_python_client_internal/database/repository/generated/instruction_repository_generated.py +11 -0
  83. syrtis_python_client_internal/database/repository/generated/internal_sample_repository_generated.py +11 -0
  84. syrtis_python_client_internal/database/repository/generated/job_repository_generated.py +11 -0
  85. syrtis_python_client_internal/database/repository/generated/layer_repository_generated.py +11 -0
  86. syrtis_python_client_internal/database/repository/generated/log_repository_generated.py +11 -0
  87. syrtis_python_client_internal/database/repository/generated/message_repository_generated.py +11 -0
  88. syrtis_python_client_internal/database/repository/generated/message_stamp_repository_generated.py +11 -0
  89. syrtis_python_client_internal/database/repository/generated/model_repository_generated.py +11 -0
  90. syrtis_python_client_internal/database/repository/generated/node_repository_generated.py +11 -0
  91. syrtis_python_client_internal/database/repository/generated/operator_port_repository_generated.py +11 -0
  92. syrtis_python_client_internal/database/repository/generated/operator_repository_generated.py +11 -0
  93. syrtis_python_client_internal/database/repository/generated/panel_repository_generated.py +11 -0
  94. syrtis_python_client_internal/database/repository/generated/panel_stamp_repository_generated.py +11 -0
  95. syrtis_python_client_internal/database/repository/generated/pipeline_operator_repository_generated.py +11 -0
  96. syrtis_python_client_internal/database/repository/generated/pipeline_projection_repository_generated.py +11 -0
  97. syrtis_python_client_internal/database/repository/generated/pipeline_repository_generated.py +11 -0
  98. syrtis_python_client_internal/database/repository/generated/project_access_repository_generated.py +11 -0
  99. syrtis_python_client_internal/database/repository/generated/project_repository_generated.py +11 -0
  100. syrtis_python_client_internal/database/repository/generated/projection_config_repository_generated.py +11 -0
  101. syrtis_python_client_internal/database/repository/generated/projection_relation_repository_generated.py +11 -0
  102. syrtis_python_client_internal/database/repository/generated/projection_repository_generated.py +11 -0
  103. syrtis_python_client_internal/database/repository/generated/prompt_repository_generated.py +11 -0
  104. syrtis_python_client_internal/database/repository/generated/request_repository_generated.py +11 -0
  105. syrtis_python_client_internal/database/repository/generated/scenario_repository_generated.py +11 -0
  106. syrtis_python_client_internal/database/repository/generated/schema_repository_generated.py +11 -0
  107. syrtis_python_client_internal/database/repository/generated/session_group_repository_generated.py +11 -0
  108. syrtis_python_client_internal/database/repository/generated/session_repository_generated.py +11 -0
  109. syrtis_python_client_internal/database/repository/generated/slot_config_repository_generated.py +11 -0
  110. syrtis_python_client_internal/database/repository/generated/slot_message_repository_generated.py +11 -0
  111. syrtis_python_client_internal/database/repository/generated/slot_message_stamp_repository_generated.py +11 -0
  112. syrtis_python_client_internal/database/repository/generated/slot_relation_repository_generated.py +11 -0
  113. syrtis_python_client_internal/database/repository/generated/slot_repository_generated.py +11 -0
  114. syrtis_python_client_internal/database/repository/generated/source_repository_generated.py +11 -0
  115. syrtis_python_client_internal/database/repository/generated/storage_content_type_repository_generated.py +11 -0
  116. syrtis_python_client_internal/database/repository/generated/storage_repository_generated.py +11 -0
  117. syrtis_python_client_internal/database/repository/generated/template_repository_generated.py +11 -0
  118. syrtis_python_client_internal/database/repository/generated/timezone_repository_generated.py +11 -0
  119. syrtis_python_client_internal/database/repository/generated/token_repository_generated.py +11 -0
  120. syrtis_python_client_internal/database/repository/generated/trigger_config_repository_generated.py +11 -0
  121. syrtis_python_client_internal/database/repository/generated/trigger_repository_generated.py +11 -0
  122. syrtis_python_client_internal/database/repository/generated/user_config_repository_generated.py +11 -0
  123. syrtis_python_client_internal/database/repository/generated/user_repository_generated.py +11 -0
  124. syrtis_python_client_internal/database/repository/instruction_repository.py +11 -0
  125. syrtis_python_client_internal/database/repository/internal_sample_repository.py +11 -0
  126. syrtis_python_client_internal/database/repository/job_repository.py +11 -0
  127. syrtis_python_client_internal/database/repository/layer_repository.py +11 -0
  128. syrtis_python_client_internal/database/repository/log_repository.py +11 -0
  129. syrtis_python_client_internal/database/repository/message_repository.py +11 -0
  130. syrtis_python_client_internal/database/repository/message_stamp_repository.py +11 -0
  131. syrtis_python_client_internal/database/repository/model_repository.py +11 -0
  132. syrtis_python_client_internal/database/repository/node_repository.py +11 -0
  133. syrtis_python_client_internal/database/repository/operator_port_repository.py +11 -0
  134. syrtis_python_client_internal/database/repository/operator_repository.py +11 -0
  135. syrtis_python_client_internal/database/repository/panel_repository.py +11 -0
  136. syrtis_python_client_internal/database/repository/panel_stamp_repository.py +11 -0
  137. syrtis_python_client_internal/database/repository/pipeline_operator_repository.py +11 -0
  138. syrtis_python_client_internal/database/repository/pipeline_projection_repository.py +11 -0
  139. syrtis_python_client_internal/database/repository/pipeline_repository.py +11 -0
  140. syrtis_python_client_internal/database/repository/project_access_repository.py +11 -0
  141. syrtis_python_client_internal/database/repository/project_repository.py +11 -0
  142. syrtis_python_client_internal/database/repository/projection_config_repository.py +11 -0
  143. syrtis_python_client_internal/database/repository/projection_relation_repository.py +11 -0
  144. syrtis_python_client_internal/database/repository/projection_repository.py +11 -0
  145. syrtis_python_client_internal/database/repository/prompt_repository.py +11 -0
  146. syrtis_python_client_internal/database/repository/request_repository.py +11 -0
  147. syrtis_python_client_internal/database/repository/scenario_repository.py +11 -0
  148. syrtis_python_client_internal/database/repository/schema_repository.py +11 -0
  149. syrtis_python_client_internal/database/repository/session_group_repository.py +11 -0
  150. syrtis_python_client_internal/database/repository/session_repository.py +11 -0
  151. syrtis_python_client_internal/database/repository/slot_config_repository.py +11 -0
  152. syrtis_python_client_internal/database/repository/slot_message_repository.py +11 -0
  153. syrtis_python_client_internal/database/repository/slot_message_stamp_repository.py +11 -0
  154. syrtis_python_client_internal/database/repository/slot_relation_repository.py +11 -0
  155. syrtis_python_client_internal/database/repository/slot_repository.py +11 -0
  156. syrtis_python_client_internal/database/repository/source_repository.py +11 -0
  157. syrtis_python_client_internal/database/repository/storage_content_type_repository.py +11 -0
  158. syrtis_python_client_internal/database/repository/storage_repository.py +11 -0
  159. syrtis_python_client_internal/database/repository/template_repository.py +11 -0
  160. syrtis_python_client_internal/database/repository/timezone_repository.py +11 -0
  161. syrtis_python_client_internal/database/repository/token_repository.py +11 -0
  162. syrtis_python_client_internal/database/repository/trigger_config_repository.py +11 -0
  163. syrtis_python_client_internal/database/repository/trigger_repository.py +11 -0
  164. syrtis_python_client_internal/database/repository/user_config_repository.py +11 -0
  165. syrtis_python_client_internal/database/repository/user_repository.py +11 -0
  166. syrtis_python_client_internal/entity/__init__.py +0 -0
  167. syrtis_python_client_internal/entity/artifact.py +13 -0
  168. syrtis_python_client_internal/entity/content_type.py +13 -0
  169. syrtis_python_client_internal/entity/credential.py +13 -0
  170. syrtis_python_client_internal/entity/credential_parameter.py +13 -0
  171. syrtis_python_client_internal/entity/dashboard.py +13 -0
  172. syrtis_python_client_internal/entity/directory.py +13 -0
  173. syrtis_python_client_internal/entity/document_directory.py +13 -0
  174. syrtis_python_client_internal/entity/embedding.py +13 -0
  175. syrtis_python_client_internal/entity/extension.py +13 -0
  176. syrtis_python_client_internal/entity/generated/artifact_generated.py +37 -0
  177. syrtis_python_client_internal/entity/generated/content_type_generated.py +34 -0
  178. syrtis_python_client_internal/entity/generated/credential_generated.py +25 -0
  179. syrtis_python_client_internal/entity/generated/credential_parameter_generated.py +25 -0
  180. syrtis_python_client_internal/entity/generated/dashboard_generated.py +31 -0
  181. syrtis_python_client_internal/entity/generated/directory_generated.py +19 -0
  182. syrtis_python_client_internal/entity/generated/document_directory_generated.py +21 -0
  183. syrtis_python_client_internal/entity/generated/embedding_generated.py +28 -0
  184. syrtis_python_client_internal/entity/generated/extension_generated.py +27 -0
  185. syrtis_python_client_internal/entity/generated/instruction_generated.py +31 -0
  186. syrtis_python_client_internal/entity/generated/internal_sample_generated.py +7 -0
  187. syrtis_python_client_internal/entity/generated/layer_generated.py +15 -0
  188. syrtis_python_client_internal/entity/generated/log_generated.py +82 -0
  189. syrtis_python_client_internal/entity/generated/model_generated.py +30 -0
  190. syrtis_python_client_internal/entity/generated/operator_generated.py +22 -0
  191. syrtis_python_client_internal/entity/generated/operator_port_generated.py +28 -0
  192. syrtis_python_client_internal/entity/generated/panel_generated.py +58 -0
  193. syrtis_python_client_internal/entity/generated/panel_stamp_generated.py +19 -0
  194. syrtis_python_client_internal/entity/generated/pipeline_generated.py +46 -0
  195. syrtis_python_client_internal/entity/generated/pipeline_operator_generated.py +7 -0
  196. syrtis_python_client_internal/entity/generated/pipeline_projection_generated.py +25 -0
  197. syrtis_python_client_internal/entity/generated/project_access_generated.py +25 -0
  198. syrtis_python_client_internal/entity/generated/project_generated.py +31 -0
  199. syrtis_python_client_internal/entity/generated/projection_config_generated.py +34 -0
  200. syrtis_python_client_internal/entity/generated/projection_generated.py +43 -0
  201. syrtis_python_client_internal/entity/generated/projection_relation_generated.py +37 -0
  202. syrtis_python_client_internal/entity/generated/prompt_generated.py +64 -0
  203. syrtis_python_client_internal/entity/generated/schema_generated.py +12 -0
  204. syrtis_python_client_internal/entity/generated/session_group_generated.py +28 -0
  205. syrtis_python_client_internal/entity/generated/source_generated.py +28 -0
  206. syrtis_python_client_internal/entity/generated/storage_content_type_generated.py +21 -0
  207. syrtis_python_client_internal/entity/generated/storage_generated.py +22 -0
  208. syrtis_python_client_internal/entity/generated/token_generated.py +19 -0
  209. syrtis_python_client_internal/entity/generated/trigger_config_generated.py +21 -0
  210. syrtis_python_client_internal/entity/generated/trigger_generated.py +15 -0
  211. syrtis_python_client_internal/entity/generated/user_config_generated.py +28 -0
  212. syrtis_python_client_internal/entity/instruction.py +13 -0
  213. syrtis_python_client_internal/entity/internal_sample.py +13 -0
  214. syrtis_python_client_internal/entity/layer.py +13 -0
  215. syrtis_python_client_internal/entity/log.py +13 -0
  216. syrtis_python_client_internal/entity/model.py +13 -0
  217. syrtis_python_client_internal/entity/operator.py +13 -0
  218. syrtis_python_client_internal/entity/operator_port.py +13 -0
  219. syrtis_python_client_internal/entity/panel.py +13 -0
  220. syrtis_python_client_internal/entity/panel_stamp.py +13 -0
  221. syrtis_python_client_internal/entity/pipeline.py +13 -0
  222. syrtis_python_client_internal/entity/pipeline_operator.py +13 -0
  223. syrtis_python_client_internal/entity/pipeline_projection.py +13 -0
  224. syrtis_python_client_internal/entity/project.py +13 -0
  225. syrtis_python_client_internal/entity/project_access.py +13 -0
  226. syrtis_python_client_internal/entity/projection.py +13 -0
  227. syrtis_python_client_internal/entity/projection_config.py +13 -0
  228. syrtis_python_client_internal/entity/projection_relation.py +13 -0
  229. syrtis_python_client_internal/entity/prompt.py +14 -0
  230. syrtis_python_client_internal/entity/schema.py +13 -0
  231. syrtis_python_client_internal/entity/session_group.py +13 -0
  232. syrtis_python_client_internal/entity/source.py +13 -0
  233. syrtis_python_client_internal/entity/storage.py +13 -0
  234. syrtis_python_client_internal/entity/storage_content_type.py +13 -0
  235. syrtis_python_client_internal/entity/token.py +13 -0
  236. syrtis_python_client_internal/entity/trigger.py +13 -0
  237. syrtis_python_client_internal/entity/trigger_config.py +13 -0
  238. syrtis_python_client_internal/entity/user_config.py +13 -0
  239. syrtis_python_client_internal/py.typed +0 -0
  240. syrtis_python_client_internal/repository/__init__.py +0 -0
  241. syrtis_python_client_internal/repository/artifact_repository.py +13 -0
  242. syrtis_python_client_internal/repository/content_type_repository.py +13 -0
  243. syrtis_python_client_internal/repository/credential_parameter_repository.py +15 -0
  244. syrtis_python_client_internal/repository/credential_repository.py +13 -0
  245. syrtis_python_client_internal/repository/dashboard_repository.py +13 -0
  246. syrtis_python_client_internal/repository/directory_repository.py +13 -0
  247. syrtis_python_client_internal/repository/document_directory_repository.py +13 -0
  248. syrtis_python_client_internal/repository/embedding_repository.py +13 -0
  249. syrtis_python_client_internal/repository/extension_repository.py +13 -0
  250. syrtis_python_client_internal/repository/instruction_repository.py +13 -0
  251. syrtis_python_client_internal/repository/internal_sample_repository.py +13 -0
  252. syrtis_python_client_internal/repository/layer_repository.py +13 -0
  253. syrtis_python_client_internal/repository/log_repository.py +13 -0
  254. syrtis_python_client_internal/repository/model_repository.py +13 -0
  255. syrtis_python_client_internal/repository/operator_port_repository.py +13 -0
  256. syrtis_python_client_internal/repository/operator_repository.py +13 -0
  257. syrtis_python_client_internal/repository/panel_repository.py +13 -0
  258. syrtis_python_client_internal/repository/panel_stamp_repository.py +13 -0
  259. syrtis_python_client_internal/repository/pipeline_operator_repository.py +13 -0
  260. syrtis_python_client_internal/repository/pipeline_projection_repository.py +13 -0
  261. syrtis_python_client_internal/repository/pipeline_repository.py +13 -0
  262. syrtis_python_client_internal/repository/project_access_repository.py +13 -0
  263. syrtis_python_client_internal/repository/project_repository.py +13 -0
  264. syrtis_python_client_internal/repository/projection_config_repository.py +13 -0
  265. syrtis_python_client_internal/repository/projection_relation_repository.py +13 -0
  266. syrtis_python_client_internal/repository/projection_repository.py +13 -0
  267. syrtis_python_client_internal/repository/prompt_repository.py +13 -0
  268. syrtis_python_client_internal/repository/schema_repository.py +13 -0
  269. syrtis_python_client_internal/repository/session_group_repository.py +13 -0
  270. syrtis_python_client_internal/repository/source_repository.py +13 -0
  271. syrtis_python_client_internal/repository/storage_content_type_repository.py +13 -0
  272. syrtis_python_client_internal/repository/storage_repository.py +13 -0
  273. syrtis_python_client_internal/repository/token_repository.py +13 -0
  274. syrtis_python_client_internal/repository/trigger_config_repository.py +13 -0
  275. syrtis_python_client_internal/repository/trigger_repository.py +13 -0
  276. syrtis_python_client_internal/repository/user_config_repository.py +13 -0
  277. syrtis_python_client_internal-1.0.0.dist-info/METADATA +107 -0
  278. syrtis_python_client_internal-1.0.0.dist-info/RECORD +282 -0
  279. syrtis_python_client_internal-1.0.0.dist-info/WHEEL +4 -0
  280. syrtis_python_client_internal-1.0.0.dist-info/entry_points.txt +4 -0
  281. syrtis_syrtis_python_client_internal/__init__.py +0 -0
  282. syrtis_syrtis_python_client_internal/py.typed +0 -0
@@ -0,0 +1,82 @@
1
+ from sqlalchemy import DateTime, ForeignKey, Integer, Numeric, String, Text, Uuid
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
3
+
4
+
5
+ class LogGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'log'
9
+
10
+ @declared_attr
11
+ def secureId(cls) -> Mapped[object]:
12
+ return mapped_column('secure_id', String(255), nullable=False)
13
+ @declared_attr
14
+ def body(cls) -> Mapped[object]:
15
+ return mapped_column(Text, nullable=True)
16
+ @declared_attr
17
+ def name(cls) -> Mapped[object]:
18
+ return mapped_column(String(255), nullable=False)
19
+ @declared_attr
20
+ def dateCreated(cls) -> Mapped[object]:
21
+ return mapped_column('date_created', DateTime, nullable=False)
22
+ @declared_attr
23
+ def dateCompleted(cls) -> Mapped[object]:
24
+ return mapped_column('date_completed', DateTime, nullable=True)
25
+ @declared_attr
26
+ def tokenCarbon(cls) -> Mapped[object]:
27
+ return mapped_column('token_carbon', Numeric(12, 10), nullable=True)
28
+ @declared_attr
29
+ def inputTokenPrice(cls) -> Mapped[object]:
30
+ return mapped_column('input_token_price', Numeric(12, 10), nullable=True)
31
+ @declared_attr
32
+ def outputTokenPrice(cls) -> Mapped[object]:
33
+ return mapped_column('output_token_price', Numeric(12, 10), nullable=True)
34
+ @declared_attr
35
+ def inputTokens(cls) -> Mapped[object]:
36
+ return mapped_column('input_tokens', Integer, nullable=True)
37
+ @declared_attr
38
+ def outputTokens(cls) -> Mapped[object]:
39
+ return mapped_column('output_tokens', Integer, nullable=True)
40
+
41
+ @declared_attr
42
+ def card_id(cls) -> Mapped[object]:
43
+ return mapped_column(Uuid, ForeignKey('card.id'), nullable=True)
44
+ @declared_attr
45
+ def card(cls) -> Mapped[object]:
46
+ return relationship('Card', foreign_keys='Log.card_id', lazy='select')
47
+ @declared_attr
48
+ def job_id(cls) -> Mapped[object]:
49
+ return mapped_column(Uuid, ForeignKey('job.id'), nullable=True)
50
+ @declared_attr
51
+ def job(cls) -> Mapped[object]:
52
+ return relationship('Job', foreign_keys='Log.job_id', lazy='select')
53
+ @declared_attr
54
+ def node_id(cls) -> Mapped[object]:
55
+ return mapped_column(Uuid, ForeignKey('node.id'), nullable=True)
56
+ @declared_attr
57
+ def node(cls) -> Mapped[object]:
58
+ return relationship('Node', foreign_keys='Log.node_id', lazy='select')
59
+ @declared_attr
60
+ def slot_id(cls) -> Mapped[object]:
61
+ return mapped_column(Uuid, ForeignKey('slot.id'), nullable=True)
62
+ @declared_attr
63
+ def slot(cls) -> Mapped[object]:
64
+ return relationship('Slot', foreign_keys='Log.slot_id', lazy='select')
65
+ @declared_attr
66
+ def request_id(cls) -> Mapped[object]:
67
+ return mapped_column(Uuid, ForeignKey('request.id'), nullable=True)
68
+ @declared_attr
69
+ def request(cls) -> Mapped[object]:
70
+ return relationship('Request', foreign_keys='Log.request_id', lazy='select')
71
+ @declared_attr
72
+ def session_id(cls) -> Mapped[object]:
73
+ return mapped_column(Uuid, ForeignKey('session.id'), nullable=True)
74
+ @declared_attr
75
+ def session(cls) -> Mapped[object]:
76
+ return relationship('Session', foreign_keys='Log.session_id', lazy='select')
77
+ @declared_attr
78
+ def model_id(cls) -> Mapped[object]:
79
+ return mapped_column(Uuid, ForeignKey('model.id'), nullable=True)
80
+ @declared_attr
81
+ def model(cls) -> Mapped[object]:
82
+ return relationship('Model', foreign_keys='Log.model_id', lazy='select')
@@ -0,0 +1,30 @@
1
+ from sqlalchemy import Numeric, String
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column
3
+
4
+
5
+ class ModelGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'model'
9
+
10
+ @declared_attr
11
+ def family(cls) -> Mapped[object]:
12
+ return mapped_column(String(255), nullable=False)
13
+ @declared_attr
14
+ def name(cls) -> Mapped[object]:
15
+ return mapped_column(String(255), nullable=False)
16
+ @declared_attr
17
+ def inputTokenPrice(cls) -> Mapped[object]:
18
+ return mapped_column('input_token_price', Numeric(12, 10), nullable=False)
19
+ @declared_attr
20
+ def outputTokenPrice(cls) -> Mapped[object]:
21
+ return mapped_column('output_token_price', Numeric(12, 10), nullable=False)
22
+ @declared_attr
23
+ def tokenCarbon(cls) -> Mapped[object]:
24
+ return mapped_column('token_carbon', Numeric(12, 10), nullable=False)
25
+ @declared_attr
26
+ def secureId(cls) -> Mapped[object]:
27
+ return mapped_column('secure_id', String(255), nullable=False)
28
+ @declared_attr
29
+ def type(cls) -> Mapped[object]:
30
+ return mapped_column(String(120), nullable=False)
@@ -0,0 +1,22 @@
1
+ from sqlalchemy import String
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
3
+
4
+
5
+ class OperatorGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'operator'
9
+
10
+ @declared_attr
11
+ def name(cls) -> Mapped[object]:
12
+ return mapped_column(String(255), nullable=False)
13
+ @declared_attr
14
+ def title(cls) -> Mapped[object]:
15
+ return mapped_column(String(255), nullable=False)
16
+ @declared_attr
17
+ def secureId(cls) -> Mapped[object]:
18
+ return mapped_column('secure_id', String(255), nullable=False)
19
+
20
+ @declared_attr
21
+ def ports(cls) -> Mapped[list['OperatorPort']]:
22
+ return relationship('OperatorPort', foreign_keys='OperatorPort.operator_id', back_populates='operator', lazy='select')
@@ -0,0 +1,28 @@
1
+ from sqlalchemy import ForeignKey, String, Uuid
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
3
+
4
+
5
+ class OperatorPortGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'operator_port'
9
+
10
+ @declared_attr
11
+ def secureId(cls) -> Mapped[object]:
12
+ return mapped_column('secure_id', String(255), nullable=False)
13
+ @declared_attr
14
+ def name(cls) -> Mapped[object]:
15
+ return mapped_column(String(255), nullable=False)
16
+ @declared_attr
17
+ def title(cls) -> Mapped[object]:
18
+ return mapped_column(String(255), nullable=False)
19
+ @declared_attr
20
+ def direction(cls) -> Mapped[object]:
21
+ return mapped_column(String(6), nullable=False)
22
+
23
+ @declared_attr
24
+ def operator_id(cls) -> Mapped[object]:
25
+ return mapped_column(Uuid, ForeignKey('operator.id'), nullable=False)
26
+ @declared_attr
27
+ def operator(cls) -> Mapped[object]:
28
+ return relationship('Operator', foreign_keys='OperatorPort.operator_id', back_populates='ports', lazy='select')
@@ -0,0 +1,58 @@
1
+ from sqlalchemy import Float, ForeignKey, Integer, String, Uuid
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
3
+
4
+
5
+ class PanelGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'panel'
9
+
10
+ @declared_attr
11
+ def secureId(cls) -> Mapped[object]:
12
+ return mapped_column('secure_id', String(255), nullable=False)
13
+ @declared_attr
14
+ def title(cls) -> Mapped[object]:
15
+ return mapped_column(String(255), nullable=True)
16
+ @declared_attr
17
+ def positionX(cls) -> Mapped[object]:
18
+ return mapped_column('position_x', Integer, nullable=True)
19
+ @declared_attr
20
+ def positionY(cls) -> Mapped[object]:
21
+ return mapped_column('position_y', Integer, nullable=True)
22
+ @declared_attr
23
+ def width(cls) -> Mapped[object]:
24
+ return mapped_column(Float, nullable=True)
25
+ @declared_attr
26
+ def height(cls) -> Mapped[object]:
27
+ return mapped_column(Float, nullable=True)
28
+ @declared_attr
29
+ def type(cls) -> Mapped[object]:
30
+ return mapped_column(String(120), nullable=False)
31
+ @declared_attr
32
+ def orderBy(cls) -> Mapped[object]:
33
+ return mapped_column('order_by', String(60), nullable=True)
34
+ @declared_attr
35
+ def orderDirection(cls) -> Mapped[object]:
36
+ return mapped_column('order_direction', String(4), nullable=True)
37
+ @declared_attr
38
+ def format(cls) -> Mapped[object]:
39
+ return mapped_column(String(120), nullable=True)
40
+ @declared_attr
41
+ def contentType(cls) -> Mapped[object]:
42
+ return mapped_column('content_type', String(30), nullable=True)
43
+ @declared_attr
44
+ def name(cls) -> Mapped[object]:
45
+ return mapped_column(String(255), nullable=True)
46
+ @declared_attr
47
+ def max(cls) -> Mapped[object]:
48
+ return mapped_column(Integer, nullable=True)
49
+
50
+ @declared_attr
51
+ def dashboard_id(cls) -> Mapped[object]:
52
+ return mapped_column(Uuid, ForeignKey('dashboard.id'), nullable=False)
53
+ @declared_attr
54
+ def dashboard(cls) -> Mapped[object]:
55
+ return relationship('Dashboard', foreign_keys='Panel.dashboard_id', lazy='select')
56
+ @declared_attr
57
+ def panelStamps(cls) -> Mapped[list['PanelStamp']]:
58
+ return relationship('PanelStamp', foreign_keys='PanelStamp.panel_id', back_populates='panel', lazy='select')
@@ -0,0 +1,19 @@
1
+ from sqlalchemy import ForeignKey, String, Uuid
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
3
+
4
+
5
+ class PanelStampGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'panel_stamp'
9
+
10
+ @declared_attr
11
+ def name(cls) -> Mapped[object]:
12
+ return mapped_column(String(255), nullable=False)
13
+
14
+ @declared_attr
15
+ def panel_id(cls) -> Mapped[object]:
16
+ return mapped_column(Uuid, ForeignKey('panel.id'), nullable=False)
17
+ @declared_attr
18
+ def panel(cls) -> Mapped[object]:
19
+ return relationship('Panel', foreign_keys='PanelStamp.panel_id', back_populates='panelStamps', lazy='select')
@@ -0,0 +1,46 @@
1
+ from sqlalchemy import ForeignKey, Integer, String, Uuid
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
3
+
4
+
5
+ class PipelineGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'pipeline'
9
+
10
+ @declared_attr
11
+ def secureId(cls) -> Mapped[object]:
12
+ return mapped_column('secure_id', String(255), nullable=False)
13
+ @declared_attr
14
+ def versionMajor(cls) -> Mapped[object]:
15
+ return mapped_column('version_major', Integer, nullable=False)
16
+ @declared_attr
17
+ def versionMinor(cls) -> Mapped[object]:
18
+ return mapped_column('version_minor', Integer, nullable=False)
19
+ @declared_attr
20
+ def versionPatch(cls) -> Mapped[object]:
21
+ return mapped_column('version_patch', Integer, nullable=False)
22
+ @declared_attr
23
+ def title(cls) -> Mapped[object]:
24
+ return mapped_column(String(255), nullable=False)
25
+
26
+ @declared_attr
27
+ def project_id(cls) -> Mapped[object]:
28
+ return mapped_column(Uuid, ForeignKey('project.id'), nullable=False)
29
+ @declared_attr
30
+ def project(cls) -> Mapped[object]:
31
+ return relationship('Project', foreign_keys='Pipeline.project_id', lazy='select')
32
+ @declared_attr
33
+ def environment_id(cls) -> Mapped[object]:
34
+ return mapped_column(Uuid, ForeignKey('environment.id'), nullable=False)
35
+ @declared_attr
36
+ def environment(cls) -> Mapped[object]:
37
+ return relationship('Environment', foreign_keys='Pipeline.environment_id', lazy='select')
38
+ @declared_attr
39
+ def pipelineOperators(cls) -> Mapped[list['PipelineProjection']]:
40
+ return relationship('PipelineProjection', foreign_keys='PipelineProjection.pipeline_id', back_populates='pipeline', lazy='select')
41
+ @declared_attr
42
+ def entrypoint_id(cls) -> Mapped[object]:
43
+ return mapped_column(Uuid, ForeignKey('projection.id'), nullable=True)
44
+ @declared_attr
45
+ def entrypoint(cls) -> Mapped[object]:
46
+ return relationship('Projection', foreign_keys='Pipeline.entrypoint_id', lazy='select')
@@ -0,0 +1,7 @@
1
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column
2
+
3
+
4
+ class PipelineOperatorGenerated:
5
+ @classmethod
6
+ def get_entity_name(cls) -> str:
7
+ return 'pipeline_operator'
@@ -0,0 +1,25 @@
1
+ from sqlalchemy import ForeignKey, String, Uuid
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
3
+
4
+
5
+ class PipelineProjectionGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'pipeline_projection'
9
+
10
+ @declared_attr
11
+ def secureId(cls) -> Mapped[object]:
12
+ return mapped_column('secure_id', String(255), nullable=False)
13
+
14
+ @declared_attr
15
+ def projection_id(cls) -> Mapped[object]:
16
+ return mapped_column(Uuid, ForeignKey('projection.id'), nullable=False)
17
+ @declared_attr
18
+ def projection(cls) -> Mapped[object]:
19
+ return relationship('Projection', foreign_keys='PipelineProjection.projection_id', lazy='select')
20
+ @declared_attr
21
+ def pipeline_id(cls) -> Mapped[object]:
22
+ return mapped_column(Uuid, ForeignKey('pipeline.id'), nullable=False)
23
+ @declared_attr
24
+ def pipeline(cls) -> Mapped[object]:
25
+ return relationship('Pipeline', foreign_keys='PipelineProjection.pipeline_id', back_populates='pipelineOperators', lazy='select')
@@ -0,0 +1,25 @@
1
+ from sqlalchemy import ForeignKey, String, Uuid
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
3
+
4
+
5
+ class ProjectAccessGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'project_access'
9
+
10
+ @declared_attr
11
+ def secureId(cls) -> Mapped[object]:
12
+ return mapped_column('secure_id', String(255), nullable=False)
13
+
14
+ @declared_attr
15
+ def user_id(cls) -> Mapped[object]:
16
+ return mapped_column(Uuid, ForeignKey('user.id'), nullable=False)
17
+ @declared_attr
18
+ def user(cls) -> Mapped[object]:
19
+ return relationship('User', foreign_keys='ProjectAccess.user_id', lazy='select')
20
+ @declared_attr
21
+ def project_id(cls) -> Mapped[object]:
22
+ return mapped_column(Uuid, ForeignKey('project.id'), nullable=False)
23
+ @declared_attr
24
+ def project(cls) -> Mapped[object]:
25
+ return relationship('Project', foreign_keys='ProjectAccess.project_id', lazy='select')
@@ -0,0 +1,31 @@
1
+ from sqlalchemy import DateTime, ForeignKey, String, Text, Uuid
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
3
+
4
+
5
+ class ProjectGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'project'
9
+
10
+ @declared_attr
11
+ def title(cls) -> Mapped[object]:
12
+ return mapped_column(String(255), nullable=False)
13
+ @declared_attr
14
+ def emoji(cls) -> Mapped[object]:
15
+ return mapped_column(String(32), nullable=False)
16
+ @declared_attr
17
+ def description(cls) -> Mapped[object]:
18
+ return mapped_column(Text, nullable=True)
19
+ @declared_attr
20
+ def secureId(cls) -> Mapped[object]:
21
+ return mapped_column('secure_id', String(255), nullable=False)
22
+ @declared_attr
23
+ def dateCreated(cls) -> Mapped[object]:
24
+ return mapped_column('date_created', DateTime, nullable=False)
25
+
26
+ @declared_attr
27
+ def user_id(cls) -> Mapped[object]:
28
+ return mapped_column(Uuid, ForeignKey('user.id'), nullable=False)
29
+ @declared_attr
30
+ def user(cls) -> Mapped[object]:
31
+ return relationship('User', foreign_keys='Project.user_id', lazy='select')
@@ -0,0 +1,34 @@
1
+ from sqlalchemy import Boolean, ForeignKey, String, Text, Uuid
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
3
+
4
+
5
+ class ProjectionConfigGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'projection_config'
9
+
10
+ @declared_attr
11
+ def secureId(cls) -> Mapped[object]:
12
+ return mapped_column('secure_id', String(255), nullable=False)
13
+ @declared_attr
14
+ def value(cls) -> Mapped[object]:
15
+ return mapped_column(Text, nullable=True)
16
+ @declared_attr
17
+ def expression(cls) -> Mapped[object]:
18
+ return mapped_column(Boolean, nullable=False)
19
+ @declared_attr
20
+ def name(cls) -> Mapped[object]:
21
+ return mapped_column(String(255), nullable=False)
22
+
23
+ @declared_attr
24
+ def projection_id(cls) -> Mapped[object]:
25
+ return mapped_column(Uuid, ForeignKey('projection.id'), nullable=False)
26
+ @declared_attr
27
+ def projection(cls) -> Mapped[object]:
28
+ return relationship('Projection', foreign_keys='ProjectionConfig.projection_id', back_populates='projectionConfigs', lazy='select')
29
+ @declared_attr
30
+ def operator_port_id(cls) -> Mapped[object]:
31
+ return mapped_column(Uuid, ForeignKey('operator_port.id'), nullable=True)
32
+ @declared_attr
33
+ def operatorPort(cls) -> Mapped[object]:
34
+ return relationship('OperatorPort', foreign_keys='ProjectionConfig.operator_port_id', lazy='select')
@@ -0,0 +1,43 @@
1
+ from sqlalchemy import ForeignKey, String, Uuid
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
3
+
4
+
5
+ class ProjectionGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'projection'
9
+
10
+ @declared_attr
11
+ def title(cls) -> Mapped[object]:
12
+ return mapped_column(String(255), nullable=False)
13
+ @declared_attr
14
+ def secureId(cls) -> Mapped[object]:
15
+ return mapped_column('secure_id', String(255), nullable=False)
16
+ @declared_attr
17
+ def source(cls) -> Mapped[object]:
18
+ return mapped_column(String(60), nullable=True)
19
+
20
+ @declared_attr
21
+ def pipeline_id(cls) -> Mapped[object]:
22
+ return mapped_column(Uuid, ForeignKey('pipeline.id'), nullable=False)
23
+ @declared_attr
24
+ def pipeline(cls) -> Mapped[object]:
25
+ return relationship('Pipeline', foreign_keys='Projection.pipeline_id', lazy='select')
26
+ @declared_attr
27
+ def operator_id(cls) -> Mapped[object]:
28
+ return mapped_column(Uuid, ForeignKey('operator.id'), nullable=False)
29
+ @declared_attr
30
+ def operator(cls) -> Mapped[object]:
31
+ return relationship('Operator', foreign_keys='Projection.operator_id', lazy='select')
32
+ @declared_attr
33
+ def artifacts(cls) -> Mapped[list['Artifact']]:
34
+ return relationship('Artifact', foreign_keys='Artifact.projection_id', back_populates='projection', lazy='select')
35
+ @declared_attr
36
+ def projectionConfigs(cls) -> Mapped[list['ProjectionConfig']]:
37
+ return relationship('ProjectionConfig', foreign_keys='ProjectionConfig.projection_id', back_populates='projection', lazy='select')
38
+ @declared_attr
39
+ def projectionRelationsSources(cls) -> Mapped[list['ProjectionRelation']]:
40
+ return relationship('ProjectionRelation', foreign_keys='ProjectionRelation.projection_source_id', back_populates='projectionSource', lazy='select')
41
+ @declared_attr
42
+ def projectionRelationsTargets(cls) -> Mapped[list['ProjectionRelation']]:
43
+ return relationship('ProjectionRelation', foreign_keys='ProjectionRelation.projection_target_id', back_populates='projectionTarget', lazy='select')
@@ -0,0 +1,37 @@
1
+ from sqlalchemy import ForeignKey, String, Uuid
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
3
+
4
+
5
+ class ProjectionRelationGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'projection_relation'
9
+
10
+ @declared_attr
11
+ def secureId(cls) -> Mapped[object]:
12
+ return mapped_column('secure_id', String(255), nullable=False)
13
+
14
+ @declared_attr
15
+ def projection_source_id(cls) -> Mapped[object]:
16
+ return mapped_column(Uuid, ForeignKey('projection.id'), nullable=False)
17
+ @declared_attr
18
+ def projectionSource(cls) -> Mapped[object]:
19
+ return relationship('Projection', foreign_keys='ProjectionRelation.projection_source_id', back_populates='projectionRelationsSources', lazy='select')
20
+ @declared_attr
21
+ def projection_target_id(cls) -> Mapped[object]:
22
+ return mapped_column(Uuid, ForeignKey('projection.id'), nullable=False)
23
+ @declared_attr
24
+ def projectionTarget(cls) -> Mapped[object]:
25
+ return relationship('Projection', foreign_keys='ProjectionRelation.projection_target_id', back_populates='projectionRelationsTargets', lazy='select')
26
+ @declared_attr
27
+ def port_source_id(cls) -> Mapped[object]:
28
+ return mapped_column(Uuid, ForeignKey('operator_port.id'), nullable=False)
29
+ @declared_attr
30
+ def portSource(cls) -> Mapped[object]:
31
+ return relationship('OperatorPort', foreign_keys='ProjectionRelation.port_source_id', lazy='select')
32
+ @declared_attr
33
+ def port_target_id(cls) -> Mapped[object]:
34
+ return mapped_column(Uuid, ForeignKey('operator_port.id'), nullable=False)
35
+ @declared_attr
36
+ def portTarget(cls) -> Mapped[object]:
37
+ return relationship('OperatorPort', foreign_keys='ProjectionRelation.port_target_id', lazy='select')
@@ -0,0 +1,64 @@
1
+ from sqlalchemy import DateTime, ForeignKey, String, Text, Uuid
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
3
+
4
+
5
+ class PromptGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'prompt'
9
+
10
+ @declared_attr
11
+ def content(cls) -> Mapped[object]:
12
+ return mapped_column(Text, nullable=True)
13
+ @declared_attr
14
+ def contentType(cls) -> Mapped[object]:
15
+ return mapped_column('content_type', String(30), nullable=False)
16
+ @declared_attr
17
+ def dateCreated(cls) -> Mapped[object]:
18
+ return mapped_column('date_created', DateTime, nullable=False)
19
+ @declared_attr
20
+ def category(cls) -> Mapped[object]:
21
+ return mapped_column(String(255), nullable=False)
22
+ @declared_attr
23
+ def name(cls) -> Mapped[object]:
24
+ return mapped_column(String(255), nullable=True)
25
+ @declared_attr
26
+ def type(cls) -> Mapped[object]:
27
+ return mapped_column(String(120), nullable=False)
28
+ @declared_attr
29
+ def entityType(cls) -> Mapped[object]:
30
+ return mapped_column('entity_type', String(255), nullable=True)
31
+ @declared_attr
32
+ def entityId(cls) -> Mapped[object]:
33
+ return mapped_column('entity_id', Uuid, nullable=True)
34
+
35
+ @declared_attr
36
+ def target_id(cls) -> Mapped[object]:
37
+ return mapped_column(Uuid, ForeignKey('prompt.id'), nullable=True)
38
+ @declared_attr
39
+ def target(cls) -> Mapped[object]:
40
+ return relationship('Prompt', foreign_keys='Prompt.target_id', lazy='select')
41
+ @declared_attr
42
+ def session_id(cls) -> Mapped[object]:
43
+ return mapped_column(Uuid, ForeignKey('session.id'), nullable=False)
44
+ @declared_attr
45
+ def session(cls) -> Mapped[object]:
46
+ return relationship('Session', foreign_keys='Prompt.session_id', lazy='select')
47
+ @declared_attr
48
+ def slot_id(cls) -> Mapped[object]:
49
+ return mapped_column(Uuid, ForeignKey('slot.id'), nullable=True)
50
+ @declared_attr
51
+ def slot(cls) -> Mapped[object]:
52
+ return relationship('Slot', foreign_keys='Prompt.slot_id', lazy='select')
53
+ @declared_attr
54
+ def message_id(cls) -> Mapped[object]:
55
+ return mapped_column(Uuid, ForeignKey('message.id'), nullable=True)
56
+ @declared_attr
57
+ def message(cls) -> Mapped[object]:
58
+ return relationship('Message', foreign_keys='Prompt.message_id', lazy='select')
59
+ @declared_attr
60
+ def request_id(cls) -> Mapped[object]:
61
+ return mapped_column(Uuid, ForeignKey('request.id'), nullable=True)
62
+ @declared_attr
63
+ def request(cls) -> Mapped[object]:
64
+ return relationship('Request', foreign_keys='Prompt.request_id', lazy='select')
@@ -0,0 +1,12 @@
1
+ from sqlalchemy import JSON
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column
3
+
4
+
5
+ class SchemaGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'schema'
9
+
10
+ @declared_attr
11
+ def body(cls) -> Mapped[object]:
12
+ return mapped_column(JSON, nullable=False)
@@ -0,0 +1,28 @@
1
+ from sqlalchemy import Boolean, ForeignKey, String, Uuid
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
3
+
4
+
5
+ class SessionGroupGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'session_group'
9
+
10
+ @declared_attr
11
+ def title(cls) -> Mapped[object]:
12
+ return mapped_column(String(255), nullable=False)
13
+ @declared_attr
14
+ def name(cls) -> Mapped[object]:
15
+ return mapped_column(String(255), nullable=True)
16
+ @declared_attr
17
+ def featured(cls) -> Mapped[object]:
18
+ return mapped_column(Boolean, nullable=False)
19
+
20
+ @declared_attr
21
+ def user_id(cls) -> Mapped[object]:
22
+ return mapped_column(Uuid, ForeignKey('user.id'), nullable=True)
23
+ @declared_attr
24
+ def user(cls) -> Mapped[object]:
25
+ return relationship('User', foreign_keys='SessionGroup.user_id', lazy='select')
26
+ @declared_attr
27
+ def sessions(cls) -> Mapped[list['Session']]:
28
+ return relationship('Session', primaryjoin='SessionGroup.id == foreign(Session.session_group_id)', viewonly=True, lazy='select')
@@ -0,0 +1,28 @@
1
+ from sqlalchemy import ForeignKey, String, Uuid
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
3
+
4
+
5
+ class SourceGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'source'
9
+
10
+ @declared_attr
11
+ def secureId(cls) -> Mapped[object]:
12
+ return mapped_column('secure_id', String(255), nullable=False)
13
+ @declared_attr
14
+ def title(cls) -> Mapped[object]:
15
+ return mapped_column(String(255), nullable=False)
16
+
17
+ @declared_attr
18
+ def project_id(cls) -> Mapped[object]:
19
+ return mapped_column(Uuid, ForeignKey('project.id'), nullable=False)
20
+ @declared_attr
21
+ def project(cls) -> Mapped[object]:
22
+ return relationship('Project', foreign_keys='Source.project_id', lazy='select')
23
+ @declared_attr
24
+ def credential_id(cls) -> Mapped[object]:
25
+ return mapped_column(Uuid, ForeignKey('credential.id'), nullable=False)
26
+ @declared_attr
27
+ def credential(cls) -> Mapped[object]:
28
+ return relationship('Credential', foreign_keys='Source.credential_id', lazy='select')
@@ -0,0 +1,21 @@
1
+ from sqlalchemy import ForeignKey, Uuid
2
+ from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
3
+
4
+
5
+ class StorageContentTypeGenerated:
6
+ @classmethod
7
+ def get_entity_name(cls) -> str:
8
+ return 'storage_content_type'
9
+
10
+ @declared_attr
11
+ def content_type_id(cls) -> Mapped[object]:
12
+ return mapped_column(Uuid, ForeignKey('content_type.id'), nullable=False)
13
+ @declared_attr
14
+ def contentType(cls) -> Mapped[object]:
15
+ return relationship('ContentType', foreign_keys='StorageContentType.content_type_id', lazy='select')
16
+ @declared_attr
17
+ def storage_id(cls) -> Mapped[object]:
18
+ return mapped_column(Uuid, ForeignKey('storage.id'), nullable=False)
19
+ @declared_attr
20
+ def storage(cls) -> Mapped[object]:
21
+ return relationship('Storage', foreign_keys='StorageContentType.storage_id', lazy='select')