blockmine 1.0.1 → 1.0.7

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 (516) hide show
  1. package/backend/cli.js +1 -1
  2. package/backend/package.json +13 -0
  3. package/backend/src/core/PluginManager.js +59 -44
  4. package/backend/src/server.js +6 -4
  5. package/frontend/dist/assets/{index-Dh-PcVh1.js → index-DjU4Tk7J.js} +226 -226
  6. package/frontend/dist/index.html +1 -1
  7. package/frontend/dist/monacoeditorwork/css.worker.bundle.js +77 -77
  8. package/frontend/dist/monacoeditorwork/editor.worker.bundle.js +76 -76
  9. package/frontend/dist/monacoeditorwork/html.worker.bundle.js +77 -77
  10. package/frontend/dist/monacoeditorwork/json.worker.bundle.js +77 -77
  11. package/frontend/dist/monacoeditorwork/ts.worker.bundle.js +77 -77
  12. package/frontend/package.json +65 -0
  13. package/image/1.png +0 -0
  14. package/image/2.png +0 -0
  15. package/image/3.png +0 -0
  16. package/image/logo.png +0 -0
  17. package/package.json +7 -20
  18. package/tailwind.config.js +0 -0
  19. package/vite.config.js +0 -0
  20. package/backend/.env +0 -7
  21. package/backend/node_modules/.bin/blockminejs +0 -16
  22. package/backend/node_modules/.bin/blockminejs.cmd +0 -17
  23. package/backend/node_modules/.bin/blockminejs.ps1 +0 -28
  24. package/backend/node_modules/.bin/nodemon +0 -16
  25. package/backend/node_modules/.bin/nodemon.cmd +0 -17
  26. package/backend/node_modules/.bin/nodemon.ps1 +0 -28
  27. package/backend/node_modules/.bin/nodetouch +0 -16
  28. package/backend/node_modules/.bin/nodetouch.cmd +0 -17
  29. package/backend/node_modules/.bin/nodetouch.ps1 +0 -28
  30. package/backend/node_modules/.bin/prisma +0 -16
  31. package/backend/node_modules/.bin/prisma.cmd +0 -17
  32. package/backend/node_modules/.bin/prisma.ps1 +0 -28
  33. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine +0 -0
  34. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 +0 -1
  35. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 +0 -1
  36. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine +0 -0
  37. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 +0 -1
  38. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 +0 -1
  39. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine +0 -0
  40. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine.gz.sha256 +0 -1
  41. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine.sha256 +0 -1
  42. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine +0 -0
  43. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine.gz.sha256 +0 -1
  44. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine.sha256 +0 -1
  45. package/backend/node_modules/.package-lock.json +0 -2521
  46. package/backend/node_modules/.prisma/client/client.d.ts +0 -1
  47. package/backend/node_modules/.prisma/client/client.js +0 -4
  48. package/backend/node_modules/.prisma/client/default.d.ts +0 -1
  49. package/backend/node_modules/.prisma/client/default.js +0 -1
  50. package/backend/node_modules/.prisma/client/deno/edge.d.ts +0 -9
  51. package/backend/node_modules/.prisma/client/edge.d.ts +0 -1
  52. package/backend/node_modules/.prisma/client/edge.js +0 -263
  53. package/backend/node_modules/.prisma/client/index-browser.js +0 -258
  54. package/backend/node_modules/.prisma/client/index.d.ts +0 -15548
  55. package/backend/node_modules/.prisma/client/index.js +0 -286
  56. package/backend/node_modules/.prisma/client/package.json +0 -97
  57. package/backend/node_modules/.prisma/client/query_engine-windows.dll.node +0 -0
  58. package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp14264 +0 -0
  59. package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp18496 +0 -0
  60. package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp24408 +0 -0
  61. package/backend/node_modules/.prisma/client/schema.prisma +0 -136
  62. package/backend/node_modules/.prisma/client/wasm.d.ts +0 -1
  63. package/backend/node_modules/.prisma/client/wasm.js +0 -258
  64. package/backend/node_modules/@prisma/debug/LICENSE +0 -201
  65. package/backend/node_modules/@prisma/debug/README.md +0 -29
  66. package/backend/node_modules/@prisma/debug/dist/index.d.ts +0 -35
  67. package/backend/node_modules/@prisma/debug/dist/index.js +0 -236
  68. package/backend/node_modules/@prisma/debug/dist/util.d.ts +0 -2
  69. package/backend/node_modules/@prisma/debug/dist/util.js +0 -74
  70. package/backend/node_modules/@prisma/debug/package.json +0 -37
  71. package/backend/node_modules/@prisma/engines/LICENSE +0 -201
  72. package/backend/node_modules/@prisma/engines/README.md +0 -13
  73. package/backend/node_modules/@prisma/engines/dist/index.d.ts +0 -18
  74. package/backend/node_modules/@prisma/engines/dist/index.js +0 -113
  75. package/backend/node_modules/@prisma/engines/dist/scripts/localinstall.d.ts +0 -1
  76. package/backend/node_modules/@prisma/engines/dist/scripts/localinstall.js +0 -2048
  77. package/backend/node_modules/@prisma/engines/dist/scripts/postinstall.d.ts +0 -1
  78. package/backend/node_modules/@prisma/engines/dist/scripts/postinstall.js +0 -128
  79. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine +0 -0
  80. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 +0 -1
  81. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 +0 -1
  82. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine +0 -0
  83. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 +0 -1
  84. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 +0 -1
  85. package/backend/node_modules/@prisma/engines/package.json +0 -41
  86. package/backend/node_modules/@prisma/engines/query_engine-windows.dll.node +0 -0
  87. package/backend/node_modules/@prisma/engines/schema-engine-windows.exe +0 -0
  88. package/backend/node_modules/@prisma/engines/scripts/postinstall.js +0 -28
  89. package/backend/node_modules/@prisma/engines-version/LICENSE +0 -201
  90. package/backend/node_modules/@prisma/engines-version/README.md +0 -8
  91. package/backend/node_modules/@prisma/engines-version/index.d.ts +0 -1
  92. package/backend/node_modules/@prisma/engines-version/index.js +0 -5
  93. package/backend/node_modules/@prisma/engines-version/package.json +0 -27
  94. package/backend/node_modules/@prisma/fetch-engine/LICENSE +0 -201
  95. package/backend/node_modules/@prisma/fetch-engine/README.md +0 -8
  96. package/backend/node_modules/@prisma/fetch-engine/dist/BinaryType.d.ts +0 -5
  97. package/backend/node_modules/@prisma/fetch-engine/dist/BinaryType.js +0 -25
  98. package/backend/node_modules/@prisma/fetch-engine/dist/chmodPlusX.d.ts +0 -1
  99. package/backend/node_modules/@prisma/fetch-engine/dist/chmodPlusX.js +0 -25
  100. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-2BCLJS3M.js +0 -2385
  101. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-4LX3XBNY.js +0 -161
  102. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-AH6QHEOA.js +0 -66
  103. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-CWGQAQ3T.js +0 -49
  104. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-FQ2BOR66.js +0 -2457
  105. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-KDPLGCY6.js +0 -1404
  106. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-KJ74H3SQ.js +0 -2385
  107. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-MX3HXAU2.js +0 -44
  108. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-PXQVM7NP.js +0 -159
  109. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-QLWYUM7O.js +0 -8153
  110. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-QSTZGX47.js +0 -70
  111. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-RGVHWUUH.js +0 -2786
  112. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-VTJS2JJN.js +0 -4232
  113. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-X37PZICB.js +0 -29
  114. package/backend/node_modules/@prisma/fetch-engine/dist/cleanupCache.d.ts +0 -1
  115. package/backend/node_modules/@prisma/fetch-engine/dist/cleanupCache.js +0 -28
  116. package/backend/node_modules/@prisma/fetch-engine/dist/download.d.ts +0 -27
  117. package/backend/node_modules/@prisma/fetch-engine/dist/download.js +0 -41
  118. package/backend/node_modules/@prisma/fetch-engine/dist/downloadZip.d.ts +0 -6
  119. package/backend/node_modules/@prisma/fetch-engine/dist/downloadZip.js +0 -30
  120. package/backend/node_modules/@prisma/fetch-engine/dist/env.d.ts +0 -14
  121. package/backend/node_modules/@prisma/fetch-engine/dist/env.js +0 -29
  122. package/backend/node_modules/@prisma/fetch-engine/dist/getHash.d.ts +0 -1
  123. package/backend/node_modules/@prisma/fetch-engine/dist/getHash.js +0 -25
  124. package/backend/node_modules/@prisma/fetch-engine/dist/getProxyAgent.d.ts +0 -3
  125. package/backend/node_modules/@prisma/fetch-engine/dist/getProxyAgent.js +0 -25
  126. package/backend/node_modules/@prisma/fetch-engine/dist/index.d.ts +0 -5
  127. package/backend/node_modules/@prisma/fetch-engine/dist/index.js +0 -49
  128. package/backend/node_modules/@prisma/fetch-engine/dist/log.d.ts +0 -2
  129. package/backend/node_modules/@prisma/fetch-engine/dist/log.js +0 -25
  130. package/backend/node_modules/@prisma/fetch-engine/dist/multipart-parser-47FFAP42.js +0 -371
  131. package/backend/node_modules/@prisma/fetch-engine/dist/utils.d.ts +0 -11
  132. package/backend/node_modules/@prisma/fetch-engine/dist/utils.js +0 -29
  133. package/backend/node_modules/@prisma/fetch-engine/package.json +0 -59
  134. package/backend/node_modules/@prisma/get-platform/LICENSE +0 -201
  135. package/backend/node_modules/@prisma/get-platform/README.md +0 -16
  136. package/backend/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.d.ts +0 -4
  137. package/backend/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.js +0 -25
  138. package/backend/node_modules/@prisma/get-platform/dist/binaryTargets.d.ts +0 -2
  139. package/backend/node_modules/@prisma/get-platform/dist/binaryTargets.js +0 -26
  140. package/backend/node_modules/@prisma/get-platform/dist/chunk-2ESYSVXG.js +0 -67
  141. package/backend/node_modules/@prisma/get-platform/dist/chunk-2U36ISZO.js +0 -34
  142. package/backend/node_modules/@prisma/get-platform/dist/chunk-6HZWON4S.js +0 -1
  143. package/backend/node_modules/@prisma/get-platform/dist/chunk-7MLUNQIZ.js +0 -62
  144. package/backend/node_modules/@prisma/get-platform/dist/chunk-B23KD6U3.js +0 -53
  145. package/backend/node_modules/@prisma/get-platform/dist/chunk-D7S5FGQN.js +0 -367
  146. package/backend/node_modules/@prisma/get-platform/dist/chunk-FWMN4WME.js +0 -41
  147. package/backend/node_modules/@prisma/get-platform/dist/chunk-M5NKJZ76.js +0 -14956
  148. package/backend/node_modules/@prisma/get-platform/dist/chunk-O5EOXX3N.js +0 -43
  149. package/backend/node_modules/@prisma/get-platform/dist/chunk-YDM7ULQH.js +0 -580
  150. package/backend/node_modules/@prisma/get-platform/dist/chunk-YVXCXD3A.js +0 -70
  151. package/backend/node_modules/@prisma/get-platform/dist/getNodeAPIName.d.ts +0 -8
  152. package/backend/node_modules/@prisma/get-platform/dist/getNodeAPIName.js +0 -25
  153. package/backend/node_modules/@prisma/get-platform/dist/getPlatform.d.ts +0 -105
  154. package/backend/node_modules/@prisma/get-platform/dist/getPlatform.js +0 -38
  155. package/backend/node_modules/@prisma/get-platform/dist/index.d.ts +0 -7
  156. package/backend/node_modules/@prisma/get-platform/dist/index.js +0 -43
  157. package/backend/node_modules/@prisma/get-platform/dist/link.d.ts +0 -1
  158. package/backend/node_modules/@prisma/get-platform/dist/link.js +0 -26
  159. package/backend/node_modules/@prisma/get-platform/dist/logger.d.ts +0 -8
  160. package/backend/node_modules/@prisma/get-platform/dist/logger.js +0 -29
  161. package/backend/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.d.ts +0 -8
  162. package/backend/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.js +0 -27
  163. package/backend/node_modules/@prisma/get-platform/dist/test-utils/index.d.ts +0 -1
  164. package/backend/node_modules/@prisma/get-platform/dist/test-utils/index.js +0 -28
  165. package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestContext.d.ts +0 -108
  166. package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestContext.js +0 -27
  167. package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestSnapshotSerializer.js +0 -205
  168. package/backend/node_modules/@prisma/get-platform/package.json +0 -49
  169. package/backend/node_modules/anymatch/LICENSE +0 -15
  170. package/backend/node_modules/anymatch/README.md +0 -87
  171. package/backend/node_modules/anymatch/index.d.ts +0 -20
  172. package/backend/node_modules/anymatch/index.js +0 -104
  173. package/backend/node_modules/anymatch/package.json +0 -48
  174. package/backend/node_modules/binary-extensions/binary-extensions.json +0 -263
  175. package/backend/node_modules/binary-extensions/binary-extensions.json.d.ts +0 -3
  176. package/backend/node_modules/binary-extensions/index.d.ts +0 -14
  177. package/backend/node_modules/binary-extensions/index.js +0 -1
  178. package/backend/node_modules/binary-extensions/license +0 -10
  179. package/backend/node_modules/binary-extensions/package.json +0 -40
  180. package/backend/node_modules/binary-extensions/readme.md +0 -25
  181. package/backend/node_modules/brace-expansion/LICENSE +0 -21
  182. package/backend/node_modules/brace-expansion/README.md +0 -129
  183. package/backend/node_modules/brace-expansion/index.js +0 -201
  184. package/backend/node_modules/brace-expansion/package.json +0 -47
  185. package/backend/node_modules/braces/LICENSE +0 -21
  186. package/backend/node_modules/braces/README.md +0 -586
  187. package/backend/node_modules/braces/index.js +0 -170
  188. package/backend/node_modules/braces/lib/compile.js +0 -60
  189. package/backend/node_modules/braces/lib/constants.js +0 -57
  190. package/backend/node_modules/braces/lib/expand.js +0 -113
  191. package/backend/node_modules/braces/lib/parse.js +0 -331
  192. package/backend/node_modules/braces/lib/stringify.js +0 -32
  193. package/backend/node_modules/braces/lib/utils.js +0 -122
  194. package/backend/node_modules/braces/package.json +0 -77
  195. package/backend/node_modules/chokidar/LICENSE +0 -21
  196. package/backend/node_modules/chokidar/README.md +0 -308
  197. package/backend/node_modules/chokidar/index.js +0 -973
  198. package/backend/node_modules/chokidar/lib/constants.js +0 -66
  199. package/backend/node_modules/chokidar/lib/fsevents-handler.js +0 -526
  200. package/backend/node_modules/chokidar/lib/nodefs-handler.js +0 -654
  201. package/backend/node_modules/chokidar/package.json +0 -70
  202. package/backend/node_modules/chokidar/types/index.d.ts +0 -192
  203. package/backend/node_modules/concat-map/.travis.yml +0 -4
  204. package/backend/node_modules/concat-map/LICENSE +0 -18
  205. package/backend/node_modules/concat-map/README.markdown +0 -62
  206. package/backend/node_modules/concat-map/example/map.js +0 -6
  207. package/backend/node_modules/concat-map/index.js +0 -13
  208. package/backend/node_modules/concat-map/package.json +0 -43
  209. package/backend/node_modules/concat-map/test/map.js +0 -39
  210. package/backend/node_modules/debug/LICENSE +0 -20
  211. package/backend/node_modules/debug/README.md +0 -481
  212. package/backend/node_modules/debug/package.json +0 -64
  213. package/backend/node_modules/debug/src/browser.js +0 -272
  214. package/backend/node_modules/debug/src/common.js +0 -292
  215. package/backend/node_modules/debug/src/index.js +0 -10
  216. package/backend/node_modules/debug/src/node.js +0 -263
  217. package/backend/node_modules/fill-range/LICENSE +0 -21
  218. package/backend/node_modules/fill-range/README.md +0 -237
  219. package/backend/node_modules/fill-range/index.js +0 -248
  220. package/backend/node_modules/fill-range/package.json +0 -74
  221. package/backend/node_modules/glob-parent/CHANGELOG.md +0 -110
  222. package/backend/node_modules/glob-parent/LICENSE +0 -15
  223. package/backend/node_modules/glob-parent/README.md +0 -137
  224. package/backend/node_modules/glob-parent/index.js +0 -42
  225. package/backend/node_modules/glob-parent/package.json +0 -48
  226. package/backend/node_modules/has-flag/index.js +0 -8
  227. package/backend/node_modules/has-flag/license +0 -9
  228. package/backend/node_modules/has-flag/package.json +0 -44
  229. package/backend/node_modules/has-flag/readme.md +0 -70
  230. package/backend/node_modules/ignore-by-default/LICENSE +0 -14
  231. package/backend/node_modules/ignore-by-default/README.md +0 -26
  232. package/backend/node_modules/ignore-by-default/index.js +0 -12
  233. package/backend/node_modules/ignore-by-default/package.json +0 -34
  234. package/backend/node_modules/is-binary-path/index.d.ts +0 -17
  235. package/backend/node_modules/is-binary-path/index.js +0 -7
  236. package/backend/node_modules/is-binary-path/license +0 -9
  237. package/backend/node_modules/is-binary-path/package.json +0 -40
  238. package/backend/node_modules/is-binary-path/readme.md +0 -34
  239. package/backend/node_modules/is-extglob/LICENSE +0 -21
  240. package/backend/node_modules/is-extglob/README.md +0 -107
  241. package/backend/node_modules/is-extglob/index.js +0 -20
  242. package/backend/node_modules/is-extglob/package.json +0 -69
  243. package/backend/node_modules/is-glob/LICENSE +0 -21
  244. package/backend/node_modules/is-glob/README.md +0 -206
  245. package/backend/node_modules/is-glob/index.js +0 -150
  246. package/backend/node_modules/is-glob/package.json +0 -81
  247. package/backend/node_modules/is-number/LICENSE +0 -21
  248. package/backend/node_modules/is-number/README.md +0 -187
  249. package/backend/node_modules/is-number/index.js +0 -18
  250. package/backend/node_modules/is-number/package.json +0 -82
  251. package/backend/node_modules/minimatch/LICENSE +0 -15
  252. package/backend/node_modules/minimatch/README.md +0 -230
  253. package/backend/node_modules/minimatch/minimatch.js +0 -947
  254. package/backend/node_modules/minimatch/package.json +0 -33
  255. package/backend/node_modules/ms/index.js +0 -162
  256. package/backend/node_modules/ms/license.md +0 -21
  257. package/backend/node_modules/ms/package.json +0 -38
  258. package/backend/node_modules/ms/readme.md +0 -59
  259. package/backend/node_modules/nodemon/.prettierrc.json +0 -3
  260. package/backend/node_modules/nodemon/LICENSE +0 -21
  261. package/backend/node_modules/nodemon/README.md +0 -441
  262. package/backend/node_modules/nodemon/bin/nodemon.js +0 -16
  263. package/backend/node_modules/nodemon/bin/windows-kill.exe +0 -0
  264. package/backend/node_modules/nodemon/doc/cli/authors.txt +0 -8
  265. package/backend/node_modules/nodemon/doc/cli/config.txt +0 -44
  266. package/backend/node_modules/nodemon/doc/cli/help.txt +0 -29
  267. package/backend/node_modules/nodemon/doc/cli/logo.txt +0 -20
  268. package/backend/node_modules/nodemon/doc/cli/options.txt +0 -36
  269. package/backend/node_modules/nodemon/doc/cli/topics.txt +0 -8
  270. package/backend/node_modules/nodemon/doc/cli/usage.txt +0 -3
  271. package/backend/node_modules/nodemon/doc/cli/whoami.txt +0 -9
  272. package/backend/node_modules/nodemon/index.d.ts +0 -125
  273. package/backend/node_modules/nodemon/jsconfig.json +0 -7
  274. package/backend/node_modules/nodemon/lib/cli/index.js +0 -49
  275. package/backend/node_modules/nodemon/lib/cli/parse.js +0 -230
  276. package/backend/node_modules/nodemon/lib/config/command.js +0 -43
  277. package/backend/node_modules/nodemon/lib/config/defaults.js +0 -34
  278. package/backend/node_modules/nodemon/lib/config/exec.js +0 -234
  279. package/backend/node_modules/nodemon/lib/config/index.js +0 -93
  280. package/backend/node_modules/nodemon/lib/config/load.js +0 -225
  281. package/backend/node_modules/nodemon/lib/help/index.js +0 -27
  282. package/backend/node_modules/nodemon/lib/index.js +0 -1
  283. package/backend/node_modules/nodemon/lib/monitor/index.js +0 -4
  284. package/backend/node_modules/nodemon/lib/monitor/match.js +0 -287
  285. package/backend/node_modules/nodemon/lib/monitor/run.js +0 -562
  286. package/backend/node_modules/nodemon/lib/monitor/signals.js +0 -34
  287. package/backend/node_modules/nodemon/lib/monitor/watch.js +0 -244
  288. package/backend/node_modules/nodemon/lib/nodemon.js +0 -317
  289. package/backend/node_modules/nodemon/lib/rules/add.js +0 -89
  290. package/backend/node_modules/nodemon/lib/rules/index.js +0 -53
  291. package/backend/node_modules/nodemon/lib/rules/parse.js +0 -43
  292. package/backend/node_modules/nodemon/lib/spawn.js +0 -74
  293. package/backend/node_modules/nodemon/lib/utils/bus.js +0 -44
  294. package/backend/node_modules/nodemon/lib/utils/clone.js +0 -40
  295. package/backend/node_modules/nodemon/lib/utils/colour.js +0 -26
  296. package/backend/node_modules/nodemon/lib/utils/index.js +0 -103
  297. package/backend/node_modules/nodemon/lib/utils/log.js +0 -82
  298. package/backend/node_modules/nodemon/lib/utils/merge.js +0 -47
  299. package/backend/node_modules/nodemon/lib/version.js +0 -100
  300. package/backend/node_modules/nodemon/package.json +0 -75
  301. package/backend/node_modules/picomatch/CHANGELOG.md +0 -136
  302. package/backend/node_modules/picomatch/LICENSE +0 -21
  303. package/backend/node_modules/picomatch/README.md +0 -708
  304. package/backend/node_modules/picomatch/index.js +0 -3
  305. package/backend/node_modules/picomatch/lib/constants.js +0 -179
  306. package/backend/node_modules/picomatch/lib/parse.js +0 -1091
  307. package/backend/node_modules/picomatch/lib/picomatch.js +0 -342
  308. package/backend/node_modules/picomatch/lib/scan.js +0 -391
  309. package/backend/node_modules/picomatch/lib/utils.js +0 -64
  310. package/backend/node_modules/picomatch/package.json +0 -81
  311. package/backend/node_modules/prisma/LICENSE +0 -201
  312. package/backend/node_modules/prisma/README.md +0 -84
  313. package/backend/node_modules/prisma/build/child.js +0 -82915
  314. package/backend/node_modules/prisma/build/index.js +0 -2591
  315. package/backend/node_modules/prisma/build/prisma_schema_build_bg.wasm +0 -0
  316. package/backend/node_modules/prisma/build/public/assets/alert.60ea9f84.svg +0 -5
  317. package/backend/node_modules/prisma/build/public/assets/array.1a36c222.svg +0 -4
  318. package/backend/node_modules/prisma/build/public/assets/boolean.9188b434.svg +0 -4
  319. package/backend/node_modules/prisma/build/public/assets/chevron-down.24f76e3c.svg +0 -3
  320. package/backend/node_modules/prisma/build/public/assets/cross.c2610cf5.svg +0 -11
  321. package/backend/node_modules/prisma/build/public/assets/datetime.a3bf710a.svg +0 -4
  322. package/backend/node_modules/prisma/build/public/assets/download.8d34b65a.svg +0 -4
  323. package/backend/node_modules/prisma/build/public/assets/ellipsis.a8c5a34a.svg +0 -10
  324. package/backend/node_modules/prisma/build/public/assets/enum.7ec0b64c.svg +0 -6
  325. package/backend/node_modules/prisma/build/public/assets/folder.d77b8eaf.svg +0 -6
  326. package/backend/node_modules/prisma/build/public/assets/hamburger.5fdadeac.svg +0 -4
  327. package/backend/node_modules/prisma/build/public/assets/index.js +0 -1
  328. package/backend/node_modules/prisma/build/public/assets/inter-all-400-normal.4c1f8a0d.woff +0 -0
  329. package/backend/node_modules/prisma/build/public/assets/inter-all-600-normal.d0a7c8a9.woff +0 -0
  330. package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-400-normal.ac97a49e.woff2 +0 -0
  331. package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-600-normal.2c917f10.woff2 +0 -0
  332. package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-ext-400-normal.f21a6a97.woff2 +0 -0
  333. package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-ext-600-normal.bb31f197.woff2 +0 -0
  334. package/backend/node_modules/prisma/build/public/assets/inter-greek-400-normal.e9163df8.woff2 +0 -0
  335. package/backend/node_modules/prisma/build/public/assets/inter-greek-600-normal.e644d70f.woff2 +0 -0
  336. package/backend/node_modules/prisma/build/public/assets/inter-greek-ext-400-normal.43addcc8.woff2 +0 -0
  337. package/backend/node_modules/prisma/build/public/assets/inter-greek-ext-600-normal.7f437016.woff2 +0 -0
  338. package/backend/node_modules/prisma/build/public/assets/inter-latin-400-normal.27ae72da.woff2 +0 -0
  339. package/backend/node_modules/prisma/build/public/assets/inter-latin-600-normal.87d718a2.woff2 +0 -0
  340. package/backend/node_modules/prisma/build/public/assets/inter-latin-ext-400-normal.5b02c69a.woff2 +0 -0
  341. package/backend/node_modules/prisma/build/public/assets/inter-latin-ext-600-normal.88feb9e4.woff2 +0 -0
  342. package/backend/node_modules/prisma/build/public/assets/inter-vietnamese-600-normal.8185dacd.woff2 +0 -0
  343. package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-all-400-normal.f86807b7.woff +0 -0
  344. package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-cyrillic-400-normal.1ae57fe2.woff2 +0 -0
  345. package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-latin-400-normal.80a5dc9e.woff2 +0 -0
  346. package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-latin-ext-400-normal.6315c53c.woff2 +0 -0
  347. package/backend/node_modules/prisma/build/public/assets/logotype.a960b169.svg +0 -4
  348. package/backend/node_modules/prisma/build/public/assets/number.85ddf96b.svg +0 -7
  349. package/backend/node_modules/prisma/build/public/assets/object.0ba944a6.svg +0 -5
  350. package/backend/node_modules/prisma/build/public/assets/play.8811691e.svg +0 -6
  351. package/backend/node_modules/prisma/build/public/assets/plus.8fbf7ad3.svg +0 -4
  352. package/backend/node_modules/prisma/build/public/assets/refresh.d5448ccc.svg +0 -4
  353. package/backend/node_modules/prisma/build/public/assets/search.2ed766ce.svg +0 -7
  354. package/backend/node_modules/prisma/build/public/assets/settings.5ad25af2.svg +0 -8
  355. package/backend/node_modules/prisma/build/public/assets/string.ea615a24.svg +0 -4
  356. package/backend/node_modules/prisma/build/public/assets/tick-indeterminate.aec8a44d.svg +0 -3
  357. package/backend/node_modules/prisma/build/public/assets/tick.8cbb6a93.svg +0 -4
  358. package/backend/node_modules/prisma/build/public/assets/vendor.js +0 -385
  359. package/backend/node_modules/prisma/build/public/favicon.svg +0 -5
  360. package/backend/node_modules/prisma/build/public/http/databrowser.js +0 -1
  361. package/backend/node_modules/prisma/build/public/http/splash.js +0 -1
  362. package/backend/node_modules/prisma/build/public/icon-1024.png +0 -0
  363. package/backend/node_modules/prisma/build/public/index.css +0 -1
  364. package/backend/node_modules/prisma/build/public/pages/http/databrowser.html +0 -21
  365. package/backend/node_modules/prisma/build/public/pages/http/splash.html +0 -21
  366. package/backend/node_modules/prisma/build/xdg-open +0 -1066
  367. package/backend/node_modules/prisma/package.json +0 -136
  368. package/backend/node_modules/prisma/preinstall/index.js +0 -7
  369. package/backend/node_modules/prisma/prisma-client/README.md +0 -27
  370. package/backend/node_modules/prisma/prisma-client/default.d.ts +0 -1
  371. package/backend/node_modules/prisma/prisma-client/default.js +0 -3
  372. package/backend/node_modules/prisma/prisma-client/edge.d.ts +0 -1
  373. package/backend/node_modules/prisma/prisma-client/edge.js +0 -4
  374. package/backend/node_modules/prisma/prisma-client/extension.d.ts +0 -1
  375. package/backend/node_modules/prisma/prisma-client/extension.js +0 -4
  376. package/backend/node_modules/prisma/prisma-client/generator-build/index.js +0 -10351
  377. package/backend/node_modules/prisma/prisma-client/index-browser.js +0 -3
  378. package/backend/node_modules/prisma/prisma-client/index.d.ts +0 -1
  379. package/backend/node_modules/prisma/prisma-client/index.js +0 -4
  380. package/backend/node_modules/prisma/prisma-client/package.json +0 -281
  381. package/backend/node_modules/prisma/prisma-client/react-native.d.ts +0 -1
  382. package/backend/node_modules/prisma/prisma-client/react-native.js +0 -3
  383. package/backend/node_modules/prisma/prisma-client/runtime/binary.d.ts +0 -1
  384. package/backend/node_modules/prisma/prisma-client/runtime/binary.js +0 -210
  385. package/backend/node_modules/prisma/prisma-client/runtime/edge-esm.js +0 -31
  386. package/backend/node_modules/prisma/prisma-client/runtime/edge.js +0 -31
  387. package/backend/node_modules/prisma/prisma-client/runtime/index-browser.d.ts +0 -365
  388. package/backend/node_modules/prisma/prisma-client/runtime/index-browser.js +0 -13
  389. package/backend/node_modules/prisma/prisma-client/runtime/library.d.ts +0 -3403
  390. package/backend/node_modules/prisma/prisma-client/runtime/library.js +0 -143
  391. package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.mysql.js +0 -2
  392. package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.postgresql.js +0 -2
  393. package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.sqlite.js +0 -2
  394. package/backend/node_modules/prisma/prisma-client/runtime/react-native.d.ts +0 -3403
  395. package/backend/node_modules/prisma/prisma-client/runtime/react-native.js +0 -80
  396. package/backend/node_modules/prisma/prisma-client/scripts/colors.js +0 -176
  397. package/backend/node_modules/prisma/prisma-client/scripts/default-deno-edge.ts +0 -9
  398. package/backend/node_modules/prisma/prisma-client/scripts/default-index.d.ts +0 -110
  399. package/backend/node_modules/prisma/prisma-client/scripts/default-index.js +0 -65
  400. package/backend/node_modules/prisma/prisma-client/scripts/postinstall.d.ts +0 -5
  401. package/backend/node_modules/prisma/prisma-client/scripts/postinstall.js +0 -410
  402. package/backend/node_modules/prisma/prisma-client/sql.d.ts +0 -1
  403. package/backend/node_modules/prisma/prisma-client/sql.js +0 -4
  404. package/backend/node_modules/prisma/prisma-client/sql.mjs +0 -1
  405. package/backend/node_modules/prisma/query_engine-windows.dll.node +0 -0
  406. package/backend/node_modules/prisma/scripts/preinstall-entry.js +0 -10
  407. package/backend/node_modules/pstree.remy/.travis.yml +0 -8
  408. package/backend/node_modules/pstree.remy/LICENSE +0 -7
  409. package/backend/node_modules/pstree.remy/README.md +0 -26
  410. package/backend/node_modules/pstree.remy/lib/index.js +0 -37
  411. package/backend/node_modules/pstree.remy/lib/tree.js +0 -37
  412. package/backend/node_modules/pstree.remy/lib/utils.js +0 -53
  413. package/backend/node_modules/pstree.remy/package.json +0 -33
  414. package/backend/node_modules/pstree.remy/tests/fixtures/index.js +0 -13
  415. package/backend/node_modules/pstree.remy/tests/fixtures/out1 +0 -10
  416. package/backend/node_modules/pstree.remy/tests/fixtures/out2 +0 -29
  417. package/backend/node_modules/pstree.remy/tests/index.test.js +0 -51
  418. package/backend/node_modules/readdirp/LICENSE +0 -21
  419. package/backend/node_modules/readdirp/README.md +0 -122
  420. package/backend/node_modules/readdirp/index.d.ts +0 -43
  421. package/backend/node_modules/readdirp/index.js +0 -287
  422. package/backend/node_modules/readdirp/package.json +0 -122
  423. package/backend/node_modules/simple-update-notifier/LICENSE +0 -21
  424. package/backend/node_modules/simple-update-notifier/README.md +0 -82
  425. package/backend/node_modules/simple-update-notifier/build/index.d.ts +0 -13
  426. package/backend/node_modules/simple-update-notifier/build/index.js +0 -210
  427. package/backend/node_modules/simple-update-notifier/package.json +0 -100
  428. package/backend/node_modules/simple-update-notifier/src/borderedText.ts +0 -12
  429. package/backend/node_modules/simple-update-notifier/src/cache.spec.ts +0 -17
  430. package/backend/node_modules/simple-update-notifier/src/cache.ts +0 -44
  431. package/backend/node_modules/simple-update-notifier/src/getDistVersion.spec.ts +0 -35
  432. package/backend/node_modules/simple-update-notifier/src/getDistVersion.ts +0 -29
  433. package/backend/node_modules/simple-update-notifier/src/hasNewVersion.spec.ts +0 -82
  434. package/backend/node_modules/simple-update-notifier/src/hasNewVersion.ts +0 -40
  435. package/backend/node_modules/simple-update-notifier/src/index.spec.ts +0 -27
  436. package/backend/node_modules/simple-update-notifier/src/index.ts +0 -34
  437. package/backend/node_modules/simple-update-notifier/src/isNpmOrYarn.ts +0 -12
  438. package/backend/node_modules/simple-update-notifier/src/types.ts +0 -8
  439. package/backend/node_modules/supports-color/browser.js +0 -5
  440. package/backend/node_modules/supports-color/index.js +0 -131
  441. package/backend/node_modules/supports-color/license +0 -9
  442. package/backend/node_modules/supports-color/package.json +0 -53
  443. package/backend/node_modules/supports-color/readme.md +0 -66
  444. package/backend/node_modules/to-regex-range/LICENSE +0 -21
  445. package/backend/node_modules/to-regex-range/README.md +0 -305
  446. package/backend/node_modules/to-regex-range/index.js +0 -288
  447. package/backend/node_modules/to-regex-range/package.json +0 -88
  448. package/backend/node_modules/touch/LICENSE +0 -15
  449. package/backend/node_modules/touch/README.md +0 -52
  450. package/backend/node_modules/touch/bin/nodetouch.js +0 -112
  451. package/backend/node_modules/touch/index.js +0 -224
  452. package/backend/node_modules/touch/package.json +0 -25
  453. package/backend/node_modules/undefsafe/.github/workflows/release.yml +0 -25
  454. package/backend/node_modules/undefsafe/.jscsrc +0 -13
  455. package/backend/node_modules/undefsafe/.jshintrc +0 -16
  456. package/backend/node_modules/undefsafe/.travis.yml +0 -18
  457. package/backend/node_modules/undefsafe/LICENSE +0 -22
  458. package/backend/node_modules/undefsafe/README.md +0 -63
  459. package/backend/node_modules/undefsafe/example.js +0 -14
  460. package/backend/node_modules/undefsafe/lib/undefsafe.js +0 -125
  461. package/backend/node_modules/undefsafe/package.json +0 -34
  462. package/backend/prisma/dev.db +0 -0
  463. package/backend/storage/plugins/bot_1/anti-tp-keksik/index.js +0 -59
  464. package/backend/storage/plugins/bot_1/anti-tp-keksik/package.json +0 -23
  465. package/backend/storage/plugins/bot_1/auth-keksik-servers/index.js +0 -66
  466. package/backend/storage/plugins/bot_1/auth-keksik-servers/package.json +0 -20
  467. package/backend/storage/plugins/bot_1/clan-events-keksik/README.md +0 -81
  468. package/backend/storage/plugins/bot_1/clan-events-keksik/index.js +0 -46
  469. package/backend/storage/plugins/bot_1/clan-events-keksik/package.json +0 -14
  470. package/backend/storage/plugins/bot_1/clan-role-manager/README.md +0 -64
  471. package/backend/storage/plugins/bot_1/clan-role-manager/index.js +0 -98
  472. package/backend/storage/plugins/bot_1/clan-role-manager/package.json +0 -13
  473. package/backend/storage/plugins/bot_1/clan-welcome/index.js +0 -32
  474. package/backend/storage/plugins/bot_1/clan-welcome/package.json +0 -22
  475. package/backend/storage/plugins/bot_1/parser-keksik/LICENSE.md +0 -12
  476. package/backend/storage/plugins/bot_1/parser-keksik/README.md +0 -65
  477. package/backend/storage/plugins/bot_1/parser-keksik/index.js +0 -135
  478. package/backend/storage/plugins/bot_1/parser-keksik/package.json +0 -40
  479. package/backend/storage/plugins/bot_1/unlock-auth-keksik/index.js +0 -35
  480. package/backend/storage/plugins/bot_1/unlock-auth-keksik/package.json +0 -18
  481. package/backend/storage/plugins/bot_2/parser-keksik/LICENSE.md +0 -12
  482. package/backend/storage/plugins/bot_2/parser-keksik/README.md +0 -65
  483. package/backend/storage/plugins/bot_2/parser-keksik/index.js +0 -135
  484. package/backend/storage/plugins/bot_2/parser-keksik/package.json +0 -40
  485. package/backend/storage/plugins/bot_3/auth-keksik-servers/index.js +0 -66
  486. package/backend/storage/plugins/bot_3/auth-keksik-servers/package.json +0 -20
  487. package/backend/storage/plugins/bot_3/clan-events-keksik/README.md +0 -81
  488. package/backend/storage/plugins/bot_3/clan-events-keksik/index.js +0 -46
  489. package/backend/storage/plugins/bot_3/clan-events-keksik/package.json +0 -14
  490. package/backend/storage/plugins/bot_3/clan-welcome/index.js +0 -32
  491. package/backend/storage/plugins/bot_3/clan-welcome/package.json +0 -22
  492. package/backend/storage/plugins/bot_3/parser-keksik/LICENSE.md +0 -12
  493. package/backend/storage/plugins/bot_3/parser-keksik/README.md +0 -65
  494. package/backend/storage/plugins/bot_3/parser-keksik/index.js +0 -135
  495. package/backend/storage/plugins/bot_3/parser-keksik/package.json +0 -40
  496. package/backend/storage/plugins/bot_4/fly-keksik/index.js +0 -111
  497. package/backend/storage/plugins/bot_4/fly-keksik/package.json +0 -59
  498. package/backend/storage/plugins/bot_4/parser-keksik/LICENSE.md +0 -12
  499. package/backend/storage/plugins/bot_4/parser-keksik/README.md +0 -65
  500. package/backend/storage/plugins/bot_4/parser-keksik/index.js +0 -135
  501. package/backend/storage/plugins/bot_4/parser-keksik/package.json +0 -40
  502. package/backend/storage/plugins/bot_5/auth-keksik-servers/index.js +0 -66
  503. package/backend/storage/plugins/bot_5/auth-keksik-servers/package.json +0 -20
  504. package/backend/storage/plugins/bot_5/parser-keksik/LICENSE.md +0 -12
  505. package/backend/storage/plugins/bot_5/parser-keksik/README.md +0 -65
  506. package/backend/storage/plugins/bot_5/parser-keksik/index.js +0 -117
  507. package/backend/storage/plugins/bot_5/parser-keksik/package.json +0 -40
  508. package/backend/storage/plugins/bot_6/clan-events-keksik/README.md +0 -81
  509. package/backend/storage/plugins/bot_6/clan-events-keksik/index.js +0 -46
  510. package/backend/storage/plugins/bot_6/clan-events-keksik/package.json +0 -14
  511. package/backend/storage/plugins/bot_6/clan-welcome/index.js +0 -32
  512. package/backend/storage/plugins/bot_6/clan-welcome/package.json +0 -22
  513. package/backend/storage/plugins/bot_6/parser-keksik/LICENSE.md +0 -12
  514. package/backend/storage/plugins/bot_6/parser-keksik/README.md +0 -65
  515. package/backend/storage/plugins/bot_6/parser-keksik/index.js +0 -135
  516. package/backend/storage/plugins/bot_6/parser-keksik/package.json +0 -40
@@ -1,3403 +0,0 @@
1
- /**
2
- * @param this
3
- */
4
- declare function $extends(this: Client, extension: ExtensionArgs | ((client: Client) => Client)): Client;
5
-
6
- declare type AccelerateEngineConfig = {
7
- inlineSchema: EngineConfig['inlineSchema'];
8
- inlineSchemaHash: EngineConfig['inlineSchemaHash'];
9
- env: EngineConfig['env'];
10
- generator?: {
11
- previewFeatures: string[];
12
- };
13
- inlineDatasources: EngineConfig['inlineDatasources'];
14
- overrideDatasources: EngineConfig['overrideDatasources'];
15
- clientVersion: EngineConfig['clientVersion'];
16
- engineVersion: EngineConfig['engineVersion'];
17
- logEmitter: EngineConfig['logEmitter'];
18
- logQueries?: EngineConfig['logQueries'];
19
- logLevel?: EngineConfig['logLevel'];
20
- tracingHelper: EngineConfig['tracingHelper'];
21
- accelerateUtils?: EngineConfig['accelerateUtils'];
22
- };
23
-
24
- export declare type Action = keyof typeof DMMF.ModelAction | 'executeRaw' | 'queryRaw' | 'runCommandRaw';
25
-
26
- declare type ActiveConnectorType = Exclude<ConnectorType, 'postgres'>;
27
-
28
- export declare type Aggregate = '_count' | '_max' | '_min' | '_avg' | '_sum';
29
-
30
- export declare type AllModelsToStringIndex<TypeMap extends TypeMapDef, Args extends Record<string, any>, K extends PropertyKey> = Args extends {
31
- [P in K]: {
32
- $allModels: infer AllModels;
33
- };
34
- } ? {
35
- [P in K]: Record<TypeMap['meta']['modelProps'], AllModels>;
36
- } : {};
37
-
38
- declare class AnyNull extends NullTypesEnumValue {
39
- }
40
-
41
- export declare type ApplyOmit<T, OmitConfig> = Compute<{
42
- [K in keyof T as OmitValue<OmitConfig, K> extends true ? never : K]: T[K];
43
- }>;
44
-
45
- export declare type Args<T, F extends Operation> = T extends {
46
- [K: symbol]: {
47
- types: {
48
- operations: {
49
- [K in F]: {
50
- args: any;
51
- };
52
- };
53
- };
54
- };
55
- } ? T[symbol]['types']['operations'][F]['args'] : any;
56
-
57
- export declare type Args_3<T, F extends Operation> = Args<T, F>;
58
-
59
- /**
60
- * Original `quaint::ValueType` enum tag from Prisma's `quaint`.
61
- * Query arguments marked with this type are sanitized before being sent to the database.
62
- * Notice while a query argument may be `null`, `ArgType` is guaranteed to be defined.
63
- */
64
- declare type ArgType = 'Int32' | 'Int64' | 'Float' | 'Double' | 'Text' | 'Enum' | 'EnumArray' | 'Bytes' | 'Boolean' | 'Char' | 'Array' | 'Numeric' | 'Json' | 'Xml' | 'Uuid' | 'DateTime' | 'Date' | 'Time';
65
-
66
- /**
67
- * Attributes is a map from string to attribute values.
68
- *
69
- * Note: only the own enumerable keys are counted as valid attribute keys.
70
- */
71
- declare interface Attributes {
72
- [attributeKey: string]: AttributeValue | undefined;
73
- }
74
-
75
- /**
76
- * Attribute values may be any non-nullish primitive value except an object.
77
- *
78
- * null or undefined attribute values are invalid and will result in undefined behavior.
79
- */
80
- declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
81
-
82
- export declare type BaseDMMF = {
83
- readonly datamodel: Omit<DMMF.Datamodel, 'indexes'>;
84
- };
85
-
86
- declare type BatchArgs = {
87
- queries: BatchQuery[];
88
- transaction?: {
89
- isolationLevel?: IsolationLevel;
90
- };
91
- };
92
-
93
- declare type BatchInternalParams = {
94
- requests: RequestParams[];
95
- customDataProxyFetch?: CustomDataProxyFetch;
96
- };
97
-
98
- declare type BatchQuery = {
99
- model: string | undefined;
100
- operation: string;
101
- args: JsArgs | RawQueryArgs;
102
- };
103
-
104
- declare type BatchQueryEngineResult<T> = QueryEngineResult<T> | Error;
105
-
106
- declare type BatchQueryOptionsCb = (args: BatchQueryOptionsCbArgs) => Promise<any>;
107
-
108
- declare type BatchQueryOptionsCbArgs = {
109
- args: BatchArgs;
110
- query: (args: BatchArgs, __internalParams?: BatchInternalParams) => Promise<unknown[]>;
111
- __internalParams: BatchInternalParams;
112
- };
113
-
114
- declare type BatchTransactionOptions = {
115
- isolationLevel?: Transaction_2.IsolationLevel;
116
- };
117
-
118
- declare interface BinaryTargetsEnvValue {
119
- fromEnvVar: string | null;
120
- value: string;
121
- native?: boolean;
122
- }
123
-
124
- export declare type Call<F extends Fn, P> = (F & {
125
- params: P;
126
- })['returns'];
127
-
128
- declare interface CallSite {
129
- getLocation(): LocationInFile | null;
130
- }
131
-
132
- export declare type Cast<A, W> = A extends W ? A : W;
133
-
134
- declare type Client = ReturnType<typeof getPrismaClient> extends new () => infer T ? T : never;
135
-
136
- export declare type ClientArg = {
137
- [MethodName in string]: unknown;
138
- };
139
-
140
- export declare type ClientArgs = {
141
- client: ClientArg;
142
- };
143
-
144
- export declare type ClientBuiltInProp = keyof DynamicClientExtensionThisBuiltin<never, never, never, never>;
145
-
146
- export declare type ClientOptionDef = undefined | {
147
- [K in string]: any;
148
- };
149
-
150
- export declare type ClientOtherOps = {
151
- $queryRaw<T = unknown>(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise<T>;
152
- $queryRawTyped<T>(query: TypedSql<unknown[], T>): PrismaPromise<T[]>;
153
- $queryRawUnsafe<T = unknown>(query: string, ...values: any[]): PrismaPromise<T>;
154
- $executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise<number>;
155
- $executeRawUnsafe(query: string, ...values: any[]): PrismaPromise<number>;
156
- $runCommandRaw(command: InputJsonObject): PrismaPromise<JsonObject>;
157
- };
158
-
159
- declare type ColumnType = (typeof ColumnTypeEnum)[keyof typeof ColumnTypeEnum];
160
-
161
- declare const ColumnTypeEnum: {
162
- readonly Int32: 0;
163
- readonly Int64: 1;
164
- readonly Float: 2;
165
- readonly Double: 3;
166
- readonly Numeric: 4;
167
- readonly Boolean: 5;
168
- readonly Character: 6;
169
- readonly Text: 7;
170
- readonly Date: 8;
171
- readonly Time: 9;
172
- readonly DateTime: 10;
173
- readonly Json: 11;
174
- readonly Enum: 12;
175
- readonly Bytes: 13;
176
- readonly Set: 14;
177
- readonly Uuid: 15;
178
- readonly Int32Array: 64;
179
- readonly Int64Array: 65;
180
- readonly FloatArray: 66;
181
- readonly DoubleArray: 67;
182
- readonly NumericArray: 68;
183
- readonly BooleanArray: 69;
184
- readonly CharacterArray: 70;
185
- readonly TextArray: 71;
186
- readonly DateArray: 72;
187
- readonly TimeArray: 73;
188
- readonly DateTimeArray: 74;
189
- readonly JsonArray: 75;
190
- readonly EnumArray: 76;
191
- readonly BytesArray: 77;
192
- readonly UuidArray: 78;
193
- readonly UnknownNumber: 128;
194
- };
195
-
196
- export declare type Compute<T> = T extends Function ? T : {
197
- [K in keyof T]: T[K];
198
- } & unknown;
199
-
200
- export declare type ComputeDeep<T> = T extends Function ? T : {
201
- [K in keyof T]: ComputeDeep<T[K]>;
202
- } & unknown;
203
-
204
- declare type ComputedField = {
205
- name: string;
206
- needs: string[];
207
- compute: ResultArgsFieldCompute;
208
- };
209
-
210
- declare type ComputedFieldsMap = {
211
- [fieldName: string]: ComputedField;
212
- };
213
-
214
- declare type ConnectionInfo = {
215
- schemaName?: string;
216
- maxBindValues?: number;
217
- };
218
-
219
- declare type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'sqlserver' | 'cockroachdb';
220
-
221
- declare interface Context {
222
- /**
223
- * Get a value from the context.
224
- *
225
- * @param key key which identifies a context value
226
- */
227
- getValue(key: symbol): unknown;
228
- /**
229
- * Create a new context which inherits from this context and has
230
- * the given key set to the given value.
231
- *
232
- * @param key context key for which to set the value
233
- * @param value value to set for the given key
234
- */
235
- setValue(key: symbol, value: unknown): Context;
236
- /**
237
- * Return a new context which inherits from this context but does
238
- * not contain a value for the given key.
239
- *
240
- * @param key context key for which to clear a value
241
- */
242
- deleteValue(key: symbol): Context;
243
- }
244
-
245
- declare type Context_2<T> = T extends {
246
- [K: symbol]: {
247
- ctx: infer C;
248
- };
249
- } ? C & T & {
250
- /**
251
- * @deprecated Use `$name` instead.
252
- */
253
- name?: string;
254
- $name?: string;
255
- $parent?: unknown;
256
- } : T & {
257
- /**
258
- * @deprecated Use `$name` instead.
259
- */
260
- name?: string;
261
- $name?: string;
262
- $parent?: unknown;
263
- };
264
-
265
- export declare type Count<O> = {
266
- [K in keyof O]: Count<number>;
267
- } & {};
268
-
269
- declare type CustomDataProxyFetch = (fetch: Fetch) => Fetch;
270
-
271
- declare class DataLoader<T = unknown> {
272
- private options;
273
- batches: {
274
- [key: string]: Job[];
275
- };
276
- private tickActive;
277
- constructor(options: DataLoaderOptions<T>);
278
- request(request: T): Promise<any>;
279
- private dispatchBatches;
280
- get [Symbol.toStringTag](): string;
281
- }
282
-
283
- declare type DataLoaderOptions<T> = {
284
- singleLoader: (request: T) => Promise<any>;
285
- batchLoader: (request: T[]) => Promise<any[]>;
286
- batchBy: (request: T) => string | undefined;
287
- batchOrder: (requestA: T, requestB: T) => number;
288
- };
289
-
290
- declare type Datasource = {
291
- url?: string;
292
- };
293
-
294
- declare type Datasources = {
295
- [name in string]: Datasource;
296
- };
297
-
298
- declare class DbNull extends NullTypesEnumValue {
299
- }
300
-
301
- export declare const Debug: typeof debugCreate & {
302
- enable(namespace: any): void;
303
- disable(): any;
304
- enabled(namespace: string): boolean;
305
- log: (...args: string[]) => void;
306
- formatters: {};
307
- };
308
-
309
- /**
310
- * Create a new debug instance with the given namespace.
311
- *
312
- * @example
313
- * ```ts
314
- * import Debug from '@prisma/debug'
315
- * const debug = Debug('prisma:client')
316
- * debug('Hello World')
317
- * ```
318
- */
319
- declare function debugCreate(namespace: string): ((...args: any[]) => void) & {
320
- color: string;
321
- enabled: boolean;
322
- namespace: string;
323
- log: (...args: string[]) => void;
324
- extend: () => void;
325
- };
326
-
327
- export declare namespace Decimal {
328
- export type Constructor = typeof Decimal;
329
- export type Instance = Decimal;
330
- export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
331
- export type Modulo = Rounding | 9;
332
- export type Value = string | number | Decimal;
333
-
334
- // http://mikemcl.github.io/decimal.js/#constructor-properties
335
- export interface Config {
336
- precision?: number;
337
- rounding?: Rounding;
338
- toExpNeg?: number;
339
- toExpPos?: number;
340
- minE?: number;
341
- maxE?: number;
342
- crypto?: boolean;
343
- modulo?: Modulo;
344
- defaults?: boolean;
345
- }
346
- }
347
-
348
- export declare class Decimal {
349
- readonly d: number[];
350
- readonly e: number;
351
- readonly s: number;
352
-
353
- constructor(n: Decimal.Value);
354
-
355
- absoluteValue(): Decimal;
356
- abs(): Decimal;
357
-
358
- ceil(): Decimal;
359
-
360
- clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
361
- clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
362
-
363
- comparedTo(n: Decimal.Value): number;
364
- cmp(n: Decimal.Value): number;
365
-
366
- cosine(): Decimal;
367
- cos(): Decimal;
368
-
369
- cubeRoot(): Decimal;
370
- cbrt(): Decimal;
371
-
372
- decimalPlaces(): number;
373
- dp(): number;
374
-
375
- dividedBy(n: Decimal.Value): Decimal;
376
- div(n: Decimal.Value): Decimal;
377
-
378
- dividedToIntegerBy(n: Decimal.Value): Decimal;
379
- divToInt(n: Decimal.Value): Decimal;
380
-
381
- equals(n: Decimal.Value): boolean;
382
- eq(n: Decimal.Value): boolean;
383
-
384
- floor(): Decimal;
385
-
386
- greaterThan(n: Decimal.Value): boolean;
387
- gt(n: Decimal.Value): boolean;
388
-
389
- greaterThanOrEqualTo(n: Decimal.Value): boolean;
390
- gte(n: Decimal.Value): boolean;
391
-
392
- hyperbolicCosine(): Decimal;
393
- cosh(): Decimal;
394
-
395
- hyperbolicSine(): Decimal;
396
- sinh(): Decimal;
397
-
398
- hyperbolicTangent(): Decimal;
399
- tanh(): Decimal;
400
-
401
- inverseCosine(): Decimal;
402
- acos(): Decimal;
403
-
404
- inverseHyperbolicCosine(): Decimal;
405
- acosh(): Decimal;
406
-
407
- inverseHyperbolicSine(): Decimal;
408
- asinh(): Decimal;
409
-
410
- inverseHyperbolicTangent(): Decimal;
411
- atanh(): Decimal;
412
-
413
- inverseSine(): Decimal;
414
- asin(): Decimal;
415
-
416
- inverseTangent(): Decimal;
417
- atan(): Decimal;
418
-
419
- isFinite(): boolean;
420
-
421
- isInteger(): boolean;
422
- isInt(): boolean;
423
-
424
- isNaN(): boolean;
425
-
426
- isNegative(): boolean;
427
- isNeg(): boolean;
428
-
429
- isPositive(): boolean;
430
- isPos(): boolean;
431
-
432
- isZero(): boolean;
433
-
434
- lessThan(n: Decimal.Value): boolean;
435
- lt(n: Decimal.Value): boolean;
436
-
437
- lessThanOrEqualTo(n: Decimal.Value): boolean;
438
- lte(n: Decimal.Value): boolean;
439
-
440
- logarithm(n?: Decimal.Value): Decimal;
441
- log(n?: Decimal.Value): Decimal;
442
-
443
- minus(n: Decimal.Value): Decimal;
444
- sub(n: Decimal.Value): Decimal;
445
-
446
- modulo(n: Decimal.Value): Decimal;
447
- mod(n: Decimal.Value): Decimal;
448
-
449
- naturalExponential(): Decimal;
450
- exp(): Decimal;
451
-
452
- naturalLogarithm(): Decimal;
453
- ln(): Decimal;
454
-
455
- negated(): Decimal;
456
- neg(): Decimal;
457
-
458
- plus(n: Decimal.Value): Decimal;
459
- add(n: Decimal.Value): Decimal;
460
-
461
- precision(includeZeros?: boolean): number;
462
- sd(includeZeros?: boolean): number;
463
-
464
- round(): Decimal;
465
-
466
- sine() : Decimal;
467
- sin() : Decimal;
468
-
469
- squareRoot(): Decimal;
470
- sqrt(): Decimal;
471
-
472
- tangent() : Decimal;
473
- tan() : Decimal;
474
-
475
- times(n: Decimal.Value): Decimal;
476
- mul(n: Decimal.Value) : Decimal;
477
-
478
- toBinary(significantDigits?: number): string;
479
- toBinary(significantDigits: number, rounding: Decimal.Rounding): string;
480
-
481
- toDecimalPlaces(decimalPlaces?: number): Decimal;
482
- toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
483
- toDP(decimalPlaces?: number): Decimal;
484
- toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
485
-
486
- toExponential(decimalPlaces?: number): string;
487
- toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string;
488
-
489
- toFixed(decimalPlaces?: number): string;
490
- toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string;
491
-
492
- toFraction(max_denominator?: Decimal.Value): Decimal[];
493
-
494
- toHexadecimal(significantDigits?: number): string;
495
- toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string;
496
- toHex(significantDigits?: number): string;
497
- toHex(significantDigits: number, rounding?: Decimal.Rounding): string;
498
-
499
- toJSON(): string;
500
-
501
- toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal;
502
-
503
- toNumber(): number;
504
-
505
- toOctal(significantDigits?: number): string;
506
- toOctal(significantDigits: number, rounding: Decimal.Rounding): string;
507
-
508
- toPower(n: Decimal.Value): Decimal;
509
- pow(n: Decimal.Value): Decimal;
510
-
511
- toPrecision(significantDigits?: number): string;
512
- toPrecision(significantDigits: number, rounding: Decimal.Rounding): string;
513
-
514
- toSignificantDigits(significantDigits?: number): Decimal;
515
- toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal;
516
- toSD(significantDigits?: number): Decimal;
517
- toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal;
518
-
519
- toString(): string;
520
-
521
- truncated(): Decimal;
522
- trunc(): Decimal;
523
-
524
- valueOf(): string;
525
-
526
- static abs(n: Decimal.Value): Decimal;
527
- static acos(n: Decimal.Value): Decimal;
528
- static acosh(n: Decimal.Value): Decimal;
529
- static add(x: Decimal.Value, y: Decimal.Value): Decimal;
530
- static asin(n: Decimal.Value): Decimal;
531
- static asinh(n: Decimal.Value): Decimal;
532
- static atan(n: Decimal.Value): Decimal;
533
- static atanh(n: Decimal.Value): Decimal;
534
- static atan2(y: Decimal.Value, x: Decimal.Value): Decimal;
535
- static cbrt(n: Decimal.Value): Decimal;
536
- static ceil(n: Decimal.Value): Decimal;
537
- static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal;
538
- static clone(object?: Decimal.Config): Decimal.Constructor;
539
- static config(object: Decimal.Config): Decimal.Constructor;
540
- static cos(n: Decimal.Value): Decimal;
541
- static cosh(n: Decimal.Value): Decimal;
542
- static div(x: Decimal.Value, y: Decimal.Value): Decimal;
543
- static exp(n: Decimal.Value): Decimal;
544
- static floor(n: Decimal.Value): Decimal;
545
- static hypot(...n: Decimal.Value[]): Decimal;
546
- static isDecimal(object: any): object is Decimal;
547
- static ln(n: Decimal.Value): Decimal;
548
- static log(n: Decimal.Value, base?: Decimal.Value): Decimal;
549
- static log2(n: Decimal.Value): Decimal;
550
- static log10(n: Decimal.Value): Decimal;
551
- static max(...n: Decimal.Value[]): Decimal;
552
- static min(...n: Decimal.Value[]): Decimal;
553
- static mod(x: Decimal.Value, y: Decimal.Value): Decimal;
554
- static mul(x: Decimal.Value, y: Decimal.Value): Decimal;
555
- static noConflict(): Decimal.Constructor; // Browser only
556
- static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal;
557
- static random(significantDigits?: number): Decimal;
558
- static round(n: Decimal.Value): Decimal;
559
- static set(object: Decimal.Config): Decimal.Constructor;
560
- static sign(n: Decimal.Value): number;
561
- static sin(n: Decimal.Value): Decimal;
562
- static sinh(n: Decimal.Value): Decimal;
563
- static sqrt(n: Decimal.Value): Decimal;
564
- static sub(x: Decimal.Value, y: Decimal.Value): Decimal;
565
- static sum(...n: Decimal.Value[]): Decimal;
566
- static tan(n: Decimal.Value): Decimal;
567
- static tanh(n: Decimal.Value): Decimal;
568
- static trunc(n: Decimal.Value): Decimal;
569
-
570
- static readonly default?: Decimal.Constructor;
571
- static readonly Decimal?: Decimal.Constructor;
572
-
573
- static readonly precision: number;
574
- static readonly rounding: Decimal.Rounding;
575
- static readonly toExpNeg: number;
576
- static readonly toExpPos: number;
577
- static readonly minE: number;
578
- static readonly maxE: number;
579
- static readonly crypto: boolean;
580
- static readonly modulo: Decimal.Modulo;
581
-
582
- static readonly ROUND_UP: 0;
583
- static readonly ROUND_DOWN: 1;
584
- static readonly ROUND_CEIL: 2;
585
- static readonly ROUND_FLOOR: 3;
586
- static readonly ROUND_HALF_UP: 4;
587
- static readonly ROUND_HALF_DOWN: 5;
588
- static readonly ROUND_HALF_EVEN: 6;
589
- static readonly ROUND_HALF_CEIL: 7;
590
- static readonly ROUND_HALF_FLOOR: 8;
591
- static readonly EUCLID: 9;
592
- }
593
-
594
- /**
595
- * Interface for any Decimal.js-like library
596
- * Allows us to accept Decimal.js from different
597
- * versions and some compatible alternatives
598
- */
599
- export declare interface DecimalJsLike {
600
- d: number[];
601
- e: number;
602
- s: number;
603
- toFixed(): string;
604
- }
605
-
606
- export declare type DefaultArgs = InternalArgs<{}, {}, {}, {}>;
607
-
608
- export declare type DefaultSelection<Payload extends OperationPayload, Args = {}, ClientOptions = {}> = Args extends {
609
- omit: infer LocalOmit;
610
- } ? ApplyOmit<UnwrapPayload<{
611
- default: Payload;
612
- }>['default'], PatchFlat<LocalOmit, ExtractGlobalOmit<ClientOptions, Uncapitalize<Payload['name']>>>> : ApplyOmit<UnwrapPayload<{
613
- default: Payload;
614
- }>['default'], ExtractGlobalOmit<ClientOptions, Uncapitalize<Payload['name']>>>;
615
-
616
- export declare function defineDmmfProperty(target: object, runtimeDataModel: RuntimeDataModel): void;
617
-
618
- declare function defineExtension(ext: ExtensionArgs | ((client: Client) => Client)): (client: Client) => Client;
619
-
620
- declare const denylist: readonly ["$connect", "$disconnect", "$on", "$transaction", "$use", "$extends"];
621
-
622
- export declare function deserializeJsonResponse(result: unknown): unknown;
623
-
624
- export declare type DevTypeMapDef = {
625
- meta: {
626
- modelProps: string;
627
- };
628
- model: {
629
- [Model in PropertyKey]: {
630
- [Operation in PropertyKey]: DevTypeMapFnDef;
631
- };
632
- };
633
- other: {
634
- [Operation in PropertyKey]: DevTypeMapFnDef;
635
- };
636
- };
637
-
638
- export declare type DevTypeMapFnDef = {
639
- args: any;
640
- result: any;
641
- payload: OperationPayload;
642
- };
643
-
644
- export declare namespace DMMF {
645
- export type Document = ReadonlyDeep_2<{
646
- datamodel: Datamodel;
647
- schema: Schema;
648
- mappings: Mappings;
649
- }>;
650
- export type Mappings = ReadonlyDeep_2<{
651
- modelOperations: ModelMapping[];
652
- otherOperations: {
653
- read: string[];
654
- write: string[];
655
- };
656
- }>;
657
- export type OtherOperationMappings = ReadonlyDeep_2<{
658
- read: string[];
659
- write: string[];
660
- }>;
661
- export type DatamodelEnum = ReadonlyDeep_2<{
662
- name: string;
663
- values: EnumValue[];
664
- dbName?: string | null;
665
- documentation?: string;
666
- }>;
667
- export type SchemaEnum = ReadonlyDeep_2<{
668
- name: string;
669
- values: string[];
670
- }>;
671
- export type EnumValue = ReadonlyDeep_2<{
672
- name: string;
673
- dbName: string | null;
674
- }>;
675
- export type Datamodel = ReadonlyDeep_2<{
676
- models: Model[];
677
- enums: DatamodelEnum[];
678
- types: Model[];
679
- indexes: Index[];
680
- }>;
681
- export type uniqueIndex = ReadonlyDeep_2<{
682
- name: string;
683
- fields: string[];
684
- }>;
685
- export type PrimaryKey = ReadonlyDeep_2<{
686
- name: string | null;
687
- fields: string[];
688
- }>;
689
- export type Model = ReadonlyDeep_2<{
690
- name: string;
691
- dbName: string | null;
692
- fields: Field[];
693
- uniqueFields: string[][];
694
- uniqueIndexes: uniqueIndex[];
695
- documentation?: string;
696
- primaryKey: PrimaryKey | null;
697
- isGenerated?: boolean;
698
- }>;
699
- export type FieldKind = 'scalar' | 'object' | 'enum' | 'unsupported';
700
- export type FieldNamespace = 'model' | 'prisma';
701
- export type FieldLocation = 'scalar' | 'inputObjectTypes' | 'outputObjectTypes' | 'enumTypes' | 'fieldRefTypes';
702
- export type Field = ReadonlyDeep_2<{
703
- kind: FieldKind;
704
- name: string;
705
- isRequired: boolean;
706
- isList: boolean;
707
- isUnique: boolean;
708
- isId: boolean;
709
- isReadOnly: boolean;
710
- isGenerated?: boolean;
711
- isUpdatedAt?: boolean;
712
- /**
713
- * Describes the data type in the same the way it is defined in the Prisma schema:
714
- * BigInt, Boolean, Bytes, DateTime, Decimal, Float, Int, JSON, String, $ModelName
715
- */
716
- type: string;
717
- dbName?: string | null;
718
- hasDefaultValue: boolean;
719
- default?: FieldDefault | FieldDefaultScalar | FieldDefaultScalar[];
720
- relationFromFields?: string[];
721
- relationToFields?: string[];
722
- relationOnDelete?: string;
723
- relationName?: string;
724
- documentation?: string;
725
- }>;
726
- export type FieldDefault = ReadonlyDeep_2<{
727
- name: string;
728
- args: any[];
729
- }>;
730
- export type FieldDefaultScalar = string | boolean | number;
731
- export type Index = ReadonlyDeep_2<{
732
- model: string;
733
- type: IndexType;
734
- isDefinedOnField: boolean;
735
- name?: string;
736
- dbName?: string;
737
- algorithm?: string;
738
- clustered?: boolean;
739
- fields: IndexField[];
740
- }>;
741
- export type IndexType = 'id' | 'normal' | 'unique' | 'fulltext';
742
- export type IndexField = ReadonlyDeep_2<{
743
- name: string;
744
- sortOrder?: SortOrder;
745
- length?: number;
746
- operatorClass?: string;
747
- }>;
748
- export type SortOrder = 'asc' | 'desc';
749
- export type Schema = ReadonlyDeep_2<{
750
- rootQueryType?: string;
751
- rootMutationType?: string;
752
- inputObjectTypes: {
753
- model?: InputType[];
754
- prisma: InputType[];
755
- };
756
- outputObjectTypes: {
757
- model: OutputType[];
758
- prisma: OutputType[];
759
- };
760
- enumTypes: {
761
- model?: SchemaEnum[];
762
- prisma: SchemaEnum[];
763
- };
764
- fieldRefTypes: {
765
- prisma?: FieldRefType[];
766
- };
767
- }>;
768
- export type Query = ReadonlyDeep_2<{
769
- name: string;
770
- args: SchemaArg[];
771
- output: QueryOutput;
772
- }>;
773
- export type QueryOutput = ReadonlyDeep_2<{
774
- name: string;
775
- isRequired: boolean;
776
- isList: boolean;
777
- }>;
778
- export type TypeRef<AllowedLocations extends FieldLocation> = {
779
- isList: boolean;
780
- type: string;
781
- location: AllowedLocations;
782
- namespace?: FieldNamespace;
783
- };
784
- export type InputTypeRef = TypeRef<'scalar' | 'inputObjectTypes' | 'enumTypes' | 'fieldRefTypes'>;
785
- export type SchemaArg = ReadonlyDeep_2<{
786
- name: string;
787
- comment?: string;
788
- isNullable: boolean;
789
- isRequired: boolean;
790
- inputTypes: InputTypeRef[];
791
- deprecation?: Deprecation;
792
- }>;
793
- export type OutputType = ReadonlyDeep_2<{
794
- name: string;
795
- fields: SchemaField[];
796
- }>;
797
- export type SchemaField = ReadonlyDeep_2<{
798
- name: string;
799
- isNullable?: boolean;
800
- outputType: OutputTypeRef;
801
- args: SchemaArg[];
802
- deprecation?: Deprecation;
803
- documentation?: string;
804
- }>;
805
- export type OutputTypeRef = TypeRef<'scalar' | 'outputObjectTypes' | 'enumTypes'>;
806
- export type Deprecation = ReadonlyDeep_2<{
807
- sinceVersion: string;
808
- reason: string;
809
- plannedRemovalVersion?: string;
810
- }>;
811
- export type InputType = ReadonlyDeep_2<{
812
- name: string;
813
- constraints: {
814
- maxNumFields: number | null;
815
- minNumFields: number | null;
816
- fields?: string[];
817
- };
818
- meta?: {
819
- source?: string;
820
- };
821
- fields: SchemaArg[];
822
- }>;
823
- export type FieldRefType = ReadonlyDeep_2<{
824
- name: string;
825
- allowTypes: FieldRefAllowType[];
826
- fields: SchemaArg[];
827
- }>;
828
- export type FieldRefAllowType = TypeRef<'scalar' | 'enumTypes'>;
829
- export type ModelMapping = ReadonlyDeep_2<{
830
- model: string;
831
- plural: string;
832
- findUnique?: string | null;
833
- findUniqueOrThrow?: string | null;
834
- findFirst?: string | null;
835
- findFirstOrThrow?: string | null;
836
- findMany?: string | null;
837
- create?: string | null;
838
- createMany?: string | null;
839
- createManyAndReturn?: string | null;
840
- update?: string | null;
841
- updateMany?: string | null;
842
- upsert?: string | null;
843
- delete?: string | null;
844
- deleteMany?: string | null;
845
- aggregate?: string | null;
846
- groupBy?: string | null;
847
- count?: string | null;
848
- findRaw?: string | null;
849
- aggregateRaw?: string | null;
850
- }>;
851
- export enum ModelAction {
852
- findUnique = "findUnique",
853
- findUniqueOrThrow = "findUniqueOrThrow",
854
- findFirst = "findFirst",
855
- findFirstOrThrow = "findFirstOrThrow",
856
- findMany = "findMany",
857
- create = "create",
858
- createMany = "createMany",
859
- createManyAndReturn = "createManyAndReturn",
860
- update = "update",
861
- updateMany = "updateMany",
862
- upsert = "upsert",
863
- delete = "delete",
864
- deleteMany = "deleteMany",
865
- groupBy = "groupBy",
866
- count = "count",// TODO: count does not actually exist, why?
867
- aggregate = "aggregate",
868
- findRaw = "findRaw",
869
- aggregateRaw = "aggregateRaw"
870
- }
871
- }
872
-
873
- export declare function dmmfToRuntimeDataModel(dmmfDataModel: DMMF.Datamodel): RuntimeDataModel;
874
-
875
- export declare interface DriverAdapter extends Queryable {
876
- /**
877
- * Starts new transaction.
878
- */
879
- transactionContext(): Promise<Result_4<TransactionContext>>;
880
- /**
881
- * Optional method that returns extra connection info
882
- */
883
- getConnectionInfo?(): Result_4<ConnectionInfo>;
884
- }
885
-
886
- /** Client */
887
- export declare type DynamicClientExtensionArgs<C_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, ClientOptions> = {
888
- [P in keyof C_]: unknown;
889
- } & {
890
- [K: symbol]: {
891
- ctx: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>, ITXClientDenyList> & {
892
- $parent: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>, ITXClientDenyList>;
893
- };
894
- };
895
- };
896
-
897
- export declare type DynamicClientExtensionThis<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, ClientOptions> = {
898
- [P in keyof ExtArgs['client']]: Return<ExtArgs['client'][P]>;
899
- } & {
900
- [P in Exclude<TypeMap['meta']['modelProps'], keyof ExtArgs['client']>]: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, P>, ExtArgs, ClientOptions>;
901
- } & {
902
- [P in Exclude<keyof TypeMap['other']['operations'], keyof ExtArgs['client']>]: P extends keyof ClientOtherOps ? ClientOtherOps[P] : never;
903
- } & {
904
- [P in Exclude<ClientBuiltInProp, keyof ExtArgs['client']>]: DynamicClientExtensionThisBuiltin<TypeMap, TypeMapCb, ExtArgs, ClientOptions>[P];
905
- } & {
906
- [K: symbol]: {
907
- types: TypeMap['other'];
908
- };
909
- };
910
-
911
- export declare type DynamicClientExtensionThisBuiltin<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, ClientOptions> = {
912
- $extends: ExtendsHook<'extends', TypeMapCb, ExtArgs, Call<TypeMapCb, {
913
- extArgs: ExtArgs;
914
- }>, ClientOptions>;
915
- $transaction<P extends PrismaPromise<any>[]>(arg: [...P], options?: {
916
- isolationLevel?: TypeMap['meta']['txIsolationLevel'];
917
- }): Promise<UnwrapTuple<P>>;
918
- $transaction<R>(fn: (client: Omit<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>, ITXClientDenyList>) => Promise<R>, options?: {
919
- maxWait?: number;
920
- timeout?: number;
921
- isolationLevel?: TypeMap['meta']['txIsolationLevel'];
922
- }): Promise<R>;
923
- $disconnect(): Promise<void>;
924
- $connect(): Promise<void>;
925
- };
926
-
927
- /** Model */
928
- export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, ClientOptions> = {
929
- [K in keyof M_]: K extends '$allModels' ? {
930
- [P in keyof M_[K]]?: unknown;
931
- } & {
932
- [K: symbol]: {};
933
- } : K extends TypeMap['meta']['modelProps'] ? {
934
- [P in keyof M_[K]]?: unknown;
935
- } & {
936
- [K: symbol]: {
937
- ctx: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, K>, ExtArgs, ClientOptions> & {
938
- $parent: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>;
939
- } & {
940
- $name: ModelKey<TypeMap, K>;
941
- } & {
942
- /**
943
- * @deprecated Use `$name` instead.
944
- */
945
- name: ModelKey<TypeMap, K>;
946
- };
947
- };
948
- } : never;
949
- };
950
-
951
- export declare type DynamicModelExtensionFluentApi<TypeMap extends TypeMapDef, M extends PropertyKey, P extends PropertyKey, Null, ClientOptions> = {
952
- [K in keyof TypeMap['model'][M]['payload']['objects']]: <A>(args?: Exact<A, Path<TypeMap['model'][M]['operations'][P]['args']['select'], [K]>>) => PrismaPromise<Path<DynamicModelExtensionFnResultBase<TypeMap, M, {
953
- select: {
954
- [P in K]: A;
955
- };
956
- }, P, ClientOptions>, [K]> | Null> & DynamicModelExtensionFluentApi<TypeMap, (TypeMap['model'][M]['payload']['objects'][K] & {})['name'], P, Null | Select<TypeMap['model'][M]['payload']['objects'][K], null>, ClientOptions>;
957
- };
958
-
959
- export declare type DynamicModelExtensionFnResult<TypeMap extends TypeMapDef, M extends PropertyKey, A, P extends PropertyKey, Null, ClientOptions> = P extends FluentOperation ? DynamicModelExtensionFluentApi<TypeMap, M, P, Null, ClientOptions> & PrismaPromise<DynamicModelExtensionFnResultBase<TypeMap, M, A, P, ClientOptions> | Null> : PrismaPromise<DynamicModelExtensionFnResultBase<TypeMap, M, A, P, ClientOptions>>;
960
-
961
- export declare type DynamicModelExtensionFnResultBase<TypeMap extends TypeMapDef, M extends PropertyKey, A, P extends PropertyKey, ClientOptions> = GetResult<TypeMap['model'][M]['payload'], A, P & Operation, ClientOptions>;
962
-
963
- export declare type DynamicModelExtensionFnResultNull<P extends PropertyKey> = P extends 'findUnique' | 'findFirst' ? null : never;
964
-
965
- export declare type DynamicModelExtensionOperationFn<TypeMap extends TypeMapDef, M extends PropertyKey, P extends PropertyKey, ClientOptions> = {} extends TypeMap['model'][M]['operations'][P]['args'] ? <A extends TypeMap['model'][M]['operations'][P]['args']>(args?: Exact<A, TypeMap['model'][M]['operations'][P]['args']>) => DynamicModelExtensionFnResult<TypeMap, M, A, P, DynamicModelExtensionFnResultNull<P>, ClientOptions> : <A extends TypeMap['model'][M]['operations'][P]['args']>(args: Exact<A, TypeMap['model'][M]['operations'][P]['args']>) => DynamicModelExtensionFnResult<TypeMap, M, A, P, DynamicModelExtensionFnResultNull<P>, ClientOptions>;
966
-
967
- export declare type DynamicModelExtensionThis<TypeMap extends TypeMapDef, M extends PropertyKey, ExtArgs extends Record<string, any>, ClientOptions> = {
968
- [P in keyof ExtArgs['model'][Uncapitalize<M & string>]]: Return<ExtArgs['model'][Uncapitalize<M & string>][P]>;
969
- } & {
970
- [P in Exclude<keyof TypeMap['model'][M]['operations'], keyof ExtArgs['model'][Uncapitalize<M & string>]>]: DynamicModelExtensionOperationFn<TypeMap, M, P, ClientOptions>;
971
- } & {
972
- [P in Exclude<'fields', keyof ExtArgs['model'][Uncapitalize<M & string>]>]: TypeMap['model'][M]['fields'];
973
- } & {
974
- [K: symbol]: {
975
- types: TypeMap['model'][M];
976
- };
977
- };
978
-
979
- /** Query */
980
- export declare type DynamicQueryExtensionArgs<Q_, TypeMap extends TypeMapDef> = {
981
- [K in keyof Q_]: K extends '$allOperations' ? (args: {
982
- model?: string;
983
- operation: string;
984
- args: any;
985
- query: (args: any) => PrismaPromise<any>;
986
- }) => Promise<any> : K extends '$allModels' ? {
987
- [P in keyof Q_[K] | keyof TypeMap['model'][keyof TypeMap['model']]['operations'] | '$allOperations']?: P extends '$allOperations' ? DynamicQueryExtensionCb<TypeMap, 'model', keyof TypeMap['model'], keyof TypeMap['model'][keyof TypeMap['model']]['operations']> : P extends keyof TypeMap['model'][keyof TypeMap['model']]['operations'] ? DynamicQueryExtensionCb<TypeMap, 'model', keyof TypeMap['model'], P> : never;
988
- } : K extends TypeMap['meta']['modelProps'] ? {
989
- [P in keyof Q_[K] | keyof TypeMap['model'][ModelKey<TypeMap, K>]['operations'] | '$allOperations']?: P extends '$allOperations' ? DynamicQueryExtensionCb<TypeMap, 'model', ModelKey<TypeMap, K>, keyof TypeMap['model'][ModelKey<TypeMap, K>]['operations']> : P extends keyof TypeMap['model'][ModelKey<TypeMap, K>]['operations'] ? DynamicQueryExtensionCb<TypeMap, 'model', ModelKey<TypeMap, K>, P> : never;
990
- } : K extends keyof TypeMap['other']['operations'] ? DynamicQueryExtensionCb<[TypeMap], 0, 'other', K> : never;
991
- };
992
-
993
- export declare type DynamicQueryExtensionCb<TypeMap extends TypeMapDef, _0 extends PropertyKey, _1 extends PropertyKey, _2 extends PropertyKey> = <A extends DynamicQueryExtensionCbArgs<TypeMap, _0, _1, _2>>(args: A) => Promise<TypeMap[_0][_1][_2]['result']>;
994
-
995
- export declare type DynamicQueryExtensionCbArgs<TypeMap extends TypeMapDef, _0 extends PropertyKey, _1 extends PropertyKey, _2 extends PropertyKey> = (_1 extends unknown ? _2 extends unknown ? {
996
- args: DynamicQueryExtensionCbArgsArgs<TypeMap, _0, _1, _2>;
997
- model: _0 extends 0 ? undefined : _1;
998
- operation: _2;
999
- query: <A extends DynamicQueryExtensionCbArgsArgs<TypeMap, _0, _1, _2>>(args: A) => PrismaPromise<TypeMap[_0][_1]['operations'][_2]['result']>;
1000
- } : never : never) & {
1001
- query: (args: DynamicQueryExtensionCbArgsArgs<TypeMap, _0, _1, _2>) => PrismaPromise<TypeMap[_0][_1]['operations'][_2]['result']>;
1002
- };
1003
-
1004
- export declare type DynamicQueryExtensionCbArgsArgs<TypeMap extends TypeMapDef, _0 extends PropertyKey, _1 extends PropertyKey, _2 extends PropertyKey> = _2 extends '$queryRaw' | '$executeRaw' ? Sql : TypeMap[_0][_1]['operations'][_2]['args'];
1005
-
1006
- /** Result */
1007
- export declare type DynamicResultExtensionArgs<R_, TypeMap extends TypeMapDef> = {
1008
- [K in keyof R_]: {
1009
- [P in keyof R_[K]]?: {
1010
- needs?: DynamicResultExtensionNeeds<TypeMap, ModelKey<TypeMap, K>, R_[K][P]>;
1011
- compute(data: DynamicResultExtensionData<TypeMap, ModelKey<TypeMap, K>, R_[K][P]>): any;
1012
- };
1013
- };
1014
- };
1015
-
1016
- export declare type DynamicResultExtensionData<TypeMap extends TypeMapDef, M extends PropertyKey, S> = GetFindResult<TypeMap['model'][M]['payload'], {
1017
- select: S;
1018
- }, {}>;
1019
-
1020
- export declare type DynamicResultExtensionNeeds<TypeMap extends TypeMapDef, M extends PropertyKey, S> = {
1021
- [K in keyof S]: K extends keyof TypeMap['model'][M]['payload']['scalars'] ? S[K] : never;
1022
- } & {
1023
- [N in keyof TypeMap['model'][M]['payload']['scalars']]?: boolean;
1024
- };
1025
-
1026
- /**
1027
- * Placeholder value for "no text".
1028
- */
1029
- export declare const empty: Sql;
1030
-
1031
- export declare type EmptyToUnknown<T> = T;
1032
-
1033
- declare interface Engine<InteractiveTransactionPayload = unknown> {
1034
- /** The name of the engine. This is meant to be consumed externally */
1035
- readonly name: string;
1036
- onBeforeExit(callback: () => Promise<void>): void;
1037
- start(): Promise<void>;
1038
- stop(): Promise<void>;
1039
- version(forceRun?: boolean): Promise<string> | string;
1040
- request<T>(query: JsonQuery, options: RequestOptions_2<InteractiveTransactionPayload>): Promise<QueryEngineResult<T>>;
1041
- requestBatch<T>(queries: JsonQuery[], options: RequestBatchOptions<InteractiveTransactionPayload>): Promise<BatchQueryEngineResult<T>[]>;
1042
- transaction(action: 'start', headers: Transaction_2.TransactionHeaders, options: Transaction_2.Options): Promise<Transaction_2.InteractiveTransactionInfo<unknown>>;
1043
- transaction(action: 'commit', headers: Transaction_2.TransactionHeaders, info: Transaction_2.InteractiveTransactionInfo<unknown>): Promise<void>;
1044
- transaction(action: 'rollback', headers: Transaction_2.TransactionHeaders, info: Transaction_2.InteractiveTransactionInfo<unknown>): Promise<void>;
1045
- metrics(options: MetricsOptionsJson): Promise<Metrics>;
1046
- metrics(options: MetricsOptionsPrometheus): Promise<string>;
1047
- applyPendingMigrations(): Promise<void>;
1048
- }
1049
-
1050
- declare interface EngineConfig {
1051
- cwd: string;
1052
- dirname: string;
1053
- datamodelPath: string;
1054
- enableDebugLogs?: boolean;
1055
- allowTriggerPanic?: boolean;
1056
- prismaPath?: string;
1057
- generator?: GeneratorConfig;
1058
- overrideDatasources: Datasources;
1059
- showColors?: boolean;
1060
- logQueries?: boolean;
1061
- logLevel?: 'info' | 'warn';
1062
- env: Record<string, string>;
1063
- flags?: string[];
1064
- clientVersion: string;
1065
- engineVersion: string;
1066
- previewFeatures?: string[];
1067
- engineEndpoint?: string;
1068
- activeProvider?: string;
1069
- logEmitter: LogEmitter;
1070
- transactionOptions: Transaction_2.Options;
1071
- /**
1072
- * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`.
1073
- * If set, this is only used in the library engine, and all queries would be performed through it,
1074
- * rather than Prisma's Rust drivers.
1075
- * @remarks only used by LibraryEngine.ts
1076
- */
1077
- adapter?: ErrorCapturingDriverAdapter;
1078
- /**
1079
- * The contents of the schema encoded into a string
1080
- * @remarks only used by DataProxyEngine.ts
1081
- */
1082
- inlineSchema: string;
1083
- /**
1084
- * The contents of the datasource url saved in a string
1085
- * @remarks only used by DataProxyEngine.ts
1086
- */
1087
- inlineDatasources: GetPrismaClientConfig['inlineDatasources'];
1088
- /**
1089
- * The string hash that was produced for a given schema
1090
- * @remarks only used by DataProxyEngine.ts
1091
- */
1092
- inlineSchemaHash: string;
1093
- /**
1094
- * The helper for interaction with OTEL tracing
1095
- * @remarks enabling is determined by the client and @prisma/instrumentation package
1096
- */
1097
- tracingHelper: TracingHelper;
1098
- /**
1099
- * Information about whether we have not found a schema.prisma file in the
1100
- * default location, and that we fell back to finding the schema.prisma file
1101
- * in the current working directory. This usually means it has been bundled.
1102
- */
1103
- isBundled?: boolean;
1104
- /**
1105
- * Web Assembly module loading configuration
1106
- */
1107
- engineWasm?: WasmLoadingConfig;
1108
- /**
1109
- * Allows Accelerate to use runtime utilities from the client. These are
1110
- * necessary for the AccelerateEngine to function correctly.
1111
- */
1112
- accelerateUtils?: {
1113
- resolveDatasourceUrl: typeof resolveDatasourceUrl;
1114
- getBatchRequestPayload: typeof getBatchRequestPayload;
1115
- prismaGraphQLToJSError: typeof prismaGraphQLToJSError;
1116
- PrismaClientUnknownRequestError: typeof PrismaClientUnknownRequestError;
1117
- PrismaClientInitializationError: typeof PrismaClientInitializationError;
1118
- PrismaClientKnownRequestError: typeof PrismaClientKnownRequestError;
1119
- debug: (...args: any[]) => void;
1120
- engineVersion: string;
1121
- clientVersion: string;
1122
- };
1123
- }
1124
-
1125
- declare type EngineEvent<E extends EngineEventType> = E extends QueryEventType ? QueryEvent : LogEvent;
1126
-
1127
- declare type EngineEventType = QueryEventType | LogEventType;
1128
-
1129
- declare type EngineProtocol = 'graphql' | 'json';
1130
-
1131
- declare type EngineSpan = {
1132
- span: boolean;
1133
- name: string;
1134
- trace_id: string;
1135
- span_id: string;
1136
- parent_span_id: string;
1137
- start_time: [number, number];
1138
- end_time: [number, number];
1139
- attributes?: Record<string, string>;
1140
- links?: {
1141
- trace_id: string;
1142
- span_id: string;
1143
- }[];
1144
- kind: EngineSpanKind;
1145
- };
1146
-
1147
- declare type EngineSpanEvent = {
1148
- span: boolean;
1149
- spans: EngineSpan[];
1150
- };
1151
-
1152
- declare type EngineSpanKind = 'client' | 'internal';
1153
-
1154
- declare type EnvPaths = {
1155
- rootEnvPath: string | null;
1156
- schemaEnvPath: string | undefined;
1157
- };
1158
-
1159
- declare interface EnvValue {
1160
- fromEnvVar: null | string;
1161
- value: null | string;
1162
- }
1163
-
1164
- export declare type Equals<A, B> = (<T>() => T extends A ? 1 : 2) extends (<T>() => T extends B ? 1 : 2) ? 1 : 0;
1165
-
1166
- declare type Error_2 = {
1167
- kind: 'GenericJs';
1168
- id: number;
1169
- } | {
1170
- kind: 'UnsupportedNativeDataType';
1171
- type: string;
1172
- } | {
1173
- kind: 'Postgres';
1174
- code: string;
1175
- severity: string;
1176
- message: string;
1177
- detail: string | undefined;
1178
- column: string | undefined;
1179
- hint: string | undefined;
1180
- } | {
1181
- kind: 'Mysql';
1182
- code: number;
1183
- message: string;
1184
- state: string;
1185
- } | {
1186
- kind: 'Sqlite';
1187
- /**
1188
- * Sqlite extended error code: https://www.sqlite.org/rescode.html
1189
- */
1190
- extendedCode: number;
1191
- message: string;
1192
- };
1193
-
1194
- declare interface ErrorCapturingDriverAdapter extends DriverAdapter {
1195
- readonly errorRegistry: ErrorRegistry;
1196
- }
1197
-
1198
- declare type ErrorFormat = 'pretty' | 'colorless' | 'minimal';
1199
-
1200
- declare type ErrorRecord = {
1201
- error: unknown;
1202
- };
1203
-
1204
- declare interface ErrorRegistry {
1205
- consumeError(id: number): ErrorRecord | undefined;
1206
- }
1207
-
1208
- declare interface ErrorWithBatchIndex {
1209
- batchRequestIdx?: number;
1210
- }
1211
-
1212
- declare type EventCallback<E extends ExtendedEventType> = [E] extends ['beforeExit'] ? () => Promise<void> : [E] extends [LogLevel] ? (event: EngineEvent<E>) => void : never;
1213
-
1214
- export declare type Exact<A, W> = (A extends unknown ? (W extends A ? {
1215
- [K in keyof A]: Exact<A[K], W[K]>;
1216
- } : W) : never) | (A extends Narrowable ? A : never);
1217
-
1218
- /**
1219
- * Defines Exception.
1220
- *
1221
- * string or an object with one of (message or name or code) and optional stack
1222
- */
1223
- declare type Exception = ExceptionWithCode | ExceptionWithMessage | ExceptionWithName | string;
1224
-
1225
- declare interface ExceptionWithCode {
1226
- code: string | number;
1227
- name?: string;
1228
- message?: string;
1229
- stack?: string;
1230
- }
1231
-
1232
- declare interface ExceptionWithMessage {
1233
- code?: string | number;
1234
- message: string;
1235
- name?: string;
1236
- stack?: string;
1237
- }
1238
-
1239
- declare interface ExceptionWithName {
1240
- code?: string | number;
1241
- message?: string;
1242
- name: string;
1243
- stack?: string;
1244
- }
1245
-
1246
- declare type ExtendedEventType = LogLevel | 'beforeExit';
1247
-
1248
- declare type ExtendedSpanOptions = SpanOptions & {
1249
- /** The name of the span */
1250
- name: string;
1251
- internal?: boolean;
1252
- middleware?: boolean;
1253
- /** Whether it propagates context (?=true) */
1254
- active?: boolean;
1255
- /** The context to append the span to */
1256
- context?: Context;
1257
- };
1258
-
1259
- /** $extends, defineExtension */
1260
- export declare interface ExtendsHook<Variant extends 'extends' | 'define', TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, TypeMap extends TypeMapDef = Call<TypeMapCb, {
1261
- extArgs: ExtArgs;
1262
- }>, ClientOptions = {}> {
1263
- extArgs: ExtArgs;
1264
- <R_ extends {
1265
- [K in TypeMap['meta']['modelProps'] | '$allModels']?: unknown;
1266
- }, R, M_ extends {
1267
- [K in TypeMap['meta']['modelProps'] | '$allModels']?: unknown;
1268
- }, M, Q_ extends {
1269
- [K in TypeMap['meta']['modelProps'] | '$allModels' | keyof TypeMap['other']['operations'] | '$allOperations']?: unknown;
1270
- }, C_ extends {
1271
- [K in string]?: unknown;
1272
- }, C, Args extends InternalArgs = InternalArgs<R, M, {}, C>, MergedArgs extends InternalArgs = MergeExtArgs<TypeMap, ExtArgs, Args>>(extension: ((client: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>) => {
1273
- $extends: {
1274
- extArgs: Args;
1275
- };
1276
- }) | {
1277
- name?: string;
1278
- query?: DynamicQueryExtensionArgs<Q_, TypeMap>;
1279
- result?: DynamicResultExtensionArgs<R_, TypeMap> & R;
1280
- model?: DynamicModelExtensionArgs<M_, TypeMap, TypeMapCb, ExtArgs, ClientOptions> & M;
1281
- client?: DynamicClientExtensionArgs<C_, TypeMap, TypeMapCb, ExtArgs, ClientOptions> & C;
1282
- }): {
1283
- extends: DynamicClientExtensionThis<Call<TypeMapCb, {
1284
- extArgs: MergedArgs;
1285
- }>, TypeMapCb, MergedArgs, ClientOptions>;
1286
- define: (client: any) => {
1287
- $extends: {
1288
- extArgs: Args;
1289
- };
1290
- };
1291
- }[Variant];
1292
- }
1293
-
1294
- export declare type ExtensionArgs = Optional<RequiredExtensionArgs>;
1295
-
1296
- declare namespace Extensions {
1297
- export {
1298
- defineExtension,
1299
- getExtensionContext
1300
- }
1301
- }
1302
- export { Extensions }
1303
-
1304
- declare namespace Extensions_2 {
1305
- export {
1306
- InternalArgs,
1307
- DefaultArgs,
1308
- GetPayloadResultExtensionKeys,
1309
- GetPayloadResultExtensionObject,
1310
- GetPayloadResult,
1311
- GetSelect,
1312
- GetOmit,
1313
- DynamicQueryExtensionArgs,
1314
- DynamicQueryExtensionCb,
1315
- DynamicQueryExtensionCbArgs,
1316
- DynamicQueryExtensionCbArgsArgs,
1317
- DynamicResultExtensionArgs,
1318
- DynamicResultExtensionNeeds,
1319
- DynamicResultExtensionData,
1320
- DynamicModelExtensionArgs,
1321
- DynamicModelExtensionThis,
1322
- DynamicModelExtensionOperationFn,
1323
- DynamicModelExtensionFnResult,
1324
- DynamicModelExtensionFnResultBase,
1325
- DynamicModelExtensionFluentApi,
1326
- DynamicModelExtensionFnResultNull,
1327
- DynamicClientExtensionArgs,
1328
- DynamicClientExtensionThis,
1329
- ClientBuiltInProp,
1330
- DynamicClientExtensionThisBuiltin,
1331
- ExtendsHook,
1332
- MergeExtArgs,
1333
- AllModelsToStringIndex,
1334
- TypeMapDef,
1335
- DevTypeMapDef,
1336
- DevTypeMapFnDef,
1337
- ClientOptionDef,
1338
- ClientOtherOps,
1339
- TypeMapCbDef,
1340
- ModelKey,
1341
- RequiredExtensionArgs as UserArgs
1342
- }
1343
- }
1344
-
1345
- export declare type ExtractGlobalOmit<Options, ModelName extends string> = Options extends {
1346
- omit: {
1347
- [K in ModelName]: infer GlobalOmit;
1348
- };
1349
- } ? GlobalOmit : {};
1350
-
1351
- declare type Fetch = typeof nodeFetch;
1352
-
1353
- /**
1354
- * A reference to a specific field of a specific model
1355
- */
1356
- export declare interface FieldRef<Model, FieldType> {
1357
- readonly modelName: Model;
1358
- readonly name: string;
1359
- readonly typeName: FieldType;
1360
- readonly isList: boolean;
1361
- }
1362
-
1363
- export declare type FluentOperation = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'update' | 'upsert' | 'delete';
1364
-
1365
- export declare interface Fn<Params = unknown, Returns = unknown> {
1366
- params: Params;
1367
- returns: Returns;
1368
- }
1369
-
1370
- declare interface GeneratorConfig {
1371
- name: string;
1372
- output: EnvValue | null;
1373
- isCustomOutput?: boolean;
1374
- provider: EnvValue;
1375
- config: {
1376
- /** `output` is a reserved name and will only be available directly at `generator.output` */
1377
- output?: never;
1378
- /** `provider` is a reserved name and will only be available directly at `generator.provider` */
1379
- provider?: never;
1380
- /** `binaryTargets` is a reserved name and will only be available directly at `generator.binaryTargets` */
1381
- binaryTargets?: never;
1382
- /** `previewFeatures` is a reserved name and will only be available directly at `generator.previewFeatures` */
1383
- previewFeatures?: never;
1384
- } & {
1385
- [key: string]: string | string[] | undefined;
1386
- };
1387
- binaryTargets: BinaryTargetsEnvValue[];
1388
- previewFeatures: string[];
1389
- envPaths?: EnvPaths;
1390
- sourceFilePath: string;
1391
- }
1392
-
1393
- export declare type GetAggregateResult<P extends OperationPayload, A> = {
1394
- [K in keyof A as K extends Aggregate ? K : never]: K extends '_count' ? A[K] extends true ? number : Count<A[K]> : {
1395
- [J in keyof A[K] & string]: P['scalars'][J] | null;
1396
- };
1397
- };
1398
-
1399
- declare function getBatchRequestPayload(batch: JsonQuery[], transaction?: TransactionOptions_2<unknown>): QueryEngineBatchRequest;
1400
-
1401
- export declare type GetBatchResult = {
1402
- count: number;
1403
- };
1404
-
1405
- export declare type GetCountResult<A> = A extends {
1406
- select: infer S;
1407
- } ? (S extends true ? number : Count<S>) : number;
1408
-
1409
- declare function getExtensionContext<T>(that: T): Context_2<T>;
1410
-
1411
- export declare type GetFindResult<P extends OperationPayload, A, ClientOptions> = Equals<A, any> extends 1 ? DefaultSelection<P, A, ClientOptions> : A extends {
1412
- select: infer S extends object;
1413
- } & Record<string, unknown> | {
1414
- include: infer I extends object;
1415
- } & Record<string, unknown> ? {
1416
- [K in keyof S | keyof I as (S & I)[K] extends false | undefined | Skip | null ? never : K]: (S & I)[K] extends object ? P extends SelectablePayloadFields<K, (infer O)[]> ? O extends OperationPayload ? GetFindResult<O, (S & I)[K], ClientOptions>[] : never : P extends SelectablePayloadFields<K, infer O | null> ? O extends OperationPayload ? GetFindResult<O, (S & I)[K], ClientOptions> | SelectField<P, K> & null : never : K extends '_count' ? Count<GetFindResult<P, (S & I)[K], ClientOptions>> : never : P extends SelectablePayloadFields<K, (infer O)[]> ? O extends OperationPayload ? DefaultSelection<O, {}, ClientOptions>[] : never : P extends SelectablePayloadFields<K, infer O | null> ? O extends OperationPayload ? DefaultSelection<O, {}, ClientOptions> | SelectField<P, K> & null : never : P extends {
1417
- scalars: {
1418
- [k in K]: infer O;
1419
- };
1420
- } ? O : K extends '_count' ? Count<P['objects']> : never;
1421
- } & (A extends {
1422
- include: any;
1423
- } & Record<string, unknown> ? DefaultSelection<P, A, ClientOptions> : unknown) : DefaultSelection<P, A, ClientOptions>;
1424
-
1425
- export declare type GetGroupByResult<P extends OperationPayload, A> = A extends {
1426
- by: string[];
1427
- } ? Array<GetAggregateResult<P, A> & {
1428
- [K in A['by'][number]]: P['scalars'][K];
1429
- }> : A extends {
1430
- by: string;
1431
- } ? Array<GetAggregateResult<P, A> & {
1432
- [K in A['by']]: P['scalars'][K];
1433
- }> : {}[];
1434
-
1435
- export declare type GetOmit<BaseKeys extends string, R extends InternalArgs['result'][string], ExtraType = never> = {
1436
- [K in (string extends keyof R ? never : keyof R) | BaseKeys]?: boolean | ExtraType;
1437
- };
1438
-
1439
- export declare type GetPayloadResult<Base extends Record<any, any>, R extends InternalArgs['result'][string]> = Omit<Base, GetPayloadResultExtensionKeys<R>> & GetPayloadResultExtensionObject<R>;
1440
-
1441
- export declare type GetPayloadResultExtensionKeys<R extends InternalArgs['result'][string], KR extends keyof R = string extends keyof R ? never : keyof R> = KR;
1442
-
1443
- export declare type GetPayloadResultExtensionObject<R extends InternalArgs['result'][string]> = {
1444
- [K in GetPayloadResultExtensionKeys<R>]: R[K] extends () => {
1445
- compute: (...args: any) => infer C;
1446
- } ? C : never;
1447
- };
1448
-
1449
- export declare function getPrismaClient(config: GetPrismaClientConfig): {
1450
- new (optionsArg?: PrismaClientOptions): {
1451
- _originalClient: any;
1452
- _runtimeDataModel: RuntimeDataModel;
1453
- _requestHandler: RequestHandler;
1454
- _connectionPromise?: Promise<any> | undefined;
1455
- _disconnectionPromise?: Promise<any> | undefined;
1456
- _engineConfig: EngineConfig;
1457
- _accelerateEngineConfig: AccelerateEngineConfig;
1458
- _clientVersion: string;
1459
- _errorFormat: ErrorFormat;
1460
- _tracingHelper: TracingHelper;
1461
- _metrics: MetricsClient;
1462
- _middlewares: MiddlewareHandler<QueryMiddleware>;
1463
- _previewFeatures: string[];
1464
- _activeProvider: string;
1465
- _globalOmit?: GlobalOmitOptions | undefined;
1466
- _extensions: MergedExtensionsList;
1467
- _engine: Engine;
1468
- /**
1469
- * A fully constructed/applied Client that references the parent
1470
- * PrismaClient. This is used for Client extensions only.
1471
- */
1472
- _appliedParent: any;
1473
- _createPrismaPromise: PrismaPromiseFactory;
1474
- /**
1475
- * Hook a middleware into the client
1476
- * @param middleware to hook
1477
- */
1478
- $use(middleware: QueryMiddleware): void;
1479
- $on<E extends ExtendedEventType>(eventType: E, callback: EventCallback<E>): void;
1480
- $connect(): Promise<void>;
1481
- /**
1482
- * Disconnect from the database
1483
- */
1484
- $disconnect(): Promise<void>;
1485
- /**
1486
- * Executes a raw query and always returns a number
1487
- */
1488
- $executeRawInternal(transaction: PrismaPromiseTransaction | undefined, clientMethod: string, args: RawQueryArgs, middlewareArgsMapper?: MiddlewareArgsMapper<unknown, unknown>): Promise<number>;
1489
- /**
1490
- * Executes a raw query provided through a safe tag function
1491
- * @see https://github.com/prisma/prisma/issues/7142
1492
- *
1493
- * @param query
1494
- * @param values
1495
- * @returns
1496
- */
1497
- $executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown>;
1498
- /**
1499
- * Unsafe counterpart of `$executeRaw` that is susceptible to SQL injections
1500
- * @see https://github.com/prisma/prisma/issues/7142
1501
- *
1502
- * @param query
1503
- * @param values
1504
- * @returns
1505
- */
1506
- $executeRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2<unknown>;
1507
- /**
1508
- * Executes a raw command only for MongoDB
1509
- *
1510
- * @param command
1511
- * @returns
1512
- */
1513
- $runCommandRaw(command: Record<string, JsInputValue>): PrismaPromise_2<unknown>;
1514
- /**
1515
- * Executes a raw query and returns selected data
1516
- */
1517
- $queryRawInternal(transaction: PrismaPromiseTransaction | undefined, clientMethod: string, args: RawQueryArgs, middlewareArgsMapper?: MiddlewareArgsMapper<unknown, unknown>): Promise<any>;
1518
- /**
1519
- * Executes a raw query provided through a safe tag function
1520
- * @see https://github.com/prisma/prisma/issues/7142
1521
- *
1522
- * @param query
1523
- * @param values
1524
- * @returns
1525
- */
1526
- $queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown>;
1527
- /**
1528
- * Counterpart to $queryRaw, that returns strongly typed results
1529
- * @param typedSql
1530
- */
1531
- $queryRawTyped(typedSql: UnknownTypedSql): PrismaPromise_2<unknown>;
1532
- /**
1533
- * Unsafe counterpart of `$queryRaw` that is susceptible to SQL injections
1534
- * @see https://github.com/prisma/prisma/issues/7142
1535
- *
1536
- * @param query
1537
- * @param values
1538
- * @returns
1539
- */
1540
- $queryRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2<unknown>;
1541
- /**
1542
- * Execute a batch of requests in a transaction
1543
- * @param requests
1544
- * @param options
1545
- */
1546
- _transactionWithArray({ promises, options, }: {
1547
- promises: Array<PrismaPromise_2<any>>;
1548
- options?: BatchTransactionOptions;
1549
- }): Promise<any>;
1550
- /**
1551
- * Perform a long-running transaction
1552
- * @param callback
1553
- * @param options
1554
- * @returns
1555
- */
1556
- _transactionWithCallback({ callback, options, }: {
1557
- callback: (client: Client) => Promise<unknown>;
1558
- options?: Options;
1559
- }): Promise<unknown>;
1560
- _createItxClient(transaction: PrismaPromiseInteractiveTransaction): Client;
1561
- /**
1562
- * Execute queries within a transaction
1563
- * @param input a callback or a query list
1564
- * @param options to set timeouts (callback)
1565
- * @returns
1566
- */
1567
- $transaction(input: any, options?: any): Promise<any>;
1568
- /**
1569
- * Runs the middlewares over params before executing a request
1570
- * @param internalParams
1571
- * @returns
1572
- */
1573
- _request(internalParams: InternalRequestParams): Promise<any>;
1574
- _executeRequest({ args, clientMethod, dataPath, callsite, action, model, argsMapper, transaction, unpacker, otelParentCtx, customDataProxyFetch, }: InternalRequestParams): Promise<any>;
1575
- readonly $metrics: MetricsClient;
1576
- /**
1577
- * Shortcut for checking a preview flag
1578
- * @param feature preview flag
1579
- * @returns
1580
- */
1581
- _hasPreviewFlag(feature: string): boolean;
1582
- $applyPendingMigrations(): Promise<void>;
1583
- $extends: typeof $extends;
1584
- readonly [Symbol.toStringTag]: string;
1585
- };
1586
- };
1587
-
1588
- /**
1589
- * Config that is stored into the generated client. When the generated client is
1590
- * loaded, this same config is passed to {@link getPrismaClient} which creates a
1591
- * closure with that config around a non-instantiated [[PrismaClient]].
1592
- */
1593
- declare type GetPrismaClientConfig = {
1594
- runtimeDataModel: RuntimeDataModel;
1595
- generator?: GeneratorConfig;
1596
- relativeEnvPaths: {
1597
- rootEnvPath?: string | null;
1598
- schemaEnvPath?: string | null;
1599
- };
1600
- relativePath: string;
1601
- dirname: string;
1602
- filename?: string;
1603
- clientVersion: string;
1604
- engineVersion: string;
1605
- datasourceNames: string[];
1606
- activeProvider: ActiveConnectorType;
1607
- /**
1608
- * The contents of the schema encoded into a string
1609
- * @remarks only used for the purpose of data proxy
1610
- */
1611
- inlineSchema: string;
1612
- /**
1613
- * A special env object just for the data proxy edge runtime.
1614
- * Allows bundlers to inject their own env variables (Vercel).
1615
- * Allows platforms to declare global variables as env (Workers).
1616
- * @remarks only used for the purpose of data proxy
1617
- */
1618
- injectableEdgeEnv?: () => LoadedEnv;
1619
- /**
1620
- * The contents of the datasource url saved in a string.
1621
- * This can either be an env var name or connection string.
1622
- * It is needed by the client to connect to the Data Proxy.
1623
- * @remarks only used for the purpose of data proxy
1624
- */
1625
- inlineDatasources: {
1626
- [name in string]: {
1627
- url: EnvValue;
1628
- };
1629
- };
1630
- /**
1631
- * The string hash that was produced for a given schema
1632
- * @remarks only used for the purpose of data proxy
1633
- */
1634
- inlineSchemaHash: string;
1635
- /**
1636
- * A marker to indicate that the client was not generated via `prisma
1637
- * generate` but was generated via `generate --postinstall` script instead.
1638
- * @remarks used to error for Vercel/Netlify for schema caching issues
1639
- */
1640
- postinstall?: boolean;
1641
- /**
1642
- * Information about the CI where the Prisma Client has been generated. The
1643
- * name of the CI environment is stored at generation time because CI
1644
- * information is not always available at runtime. Moreover, the edge client
1645
- * has no notion of environment variables, so this works around that.
1646
- * @remarks used to error for Vercel/Netlify for schema caching issues
1647
- */
1648
- ciName?: string;
1649
- /**
1650
- * Information about whether we have not found a schema.prisma file in the
1651
- * default location, and that we fell back to finding the schema.prisma file
1652
- * in the current working directory. This usually means it has been bundled.
1653
- */
1654
- isBundled?: boolean;
1655
- /**
1656
- * A boolean that is `false` when the client was generated with --no-engine. At
1657
- * runtime, this means the client will be bound to be using the Data Proxy.
1658
- */
1659
- copyEngine?: boolean;
1660
- /**
1661
- * Optional wasm loading configuration
1662
- */
1663
- engineWasm?: WasmLoadingConfig;
1664
- };
1665
-
1666
- export declare type GetResult<Payload extends OperationPayload, Args, OperationName extends Operation = 'findUniqueOrThrow', ClientOptions = {}> = {
1667
- findUnique: GetFindResult<Payload, Args, ClientOptions> | null;
1668
- findUniqueOrThrow: GetFindResult<Payload, Args, ClientOptions>;
1669
- findFirst: GetFindResult<Payload, Args, ClientOptions> | null;
1670
- findFirstOrThrow: GetFindResult<Payload, Args, ClientOptions>;
1671
- findMany: GetFindResult<Payload, Args, ClientOptions>[];
1672
- create: GetFindResult<Payload, Args, ClientOptions>;
1673
- createMany: GetBatchResult;
1674
- createManyAndReturn: GetFindResult<Payload, Args, ClientOptions>[];
1675
- update: GetFindResult<Payload, Args, ClientOptions>;
1676
- updateMany: GetBatchResult;
1677
- upsert: GetFindResult<Payload, Args, ClientOptions>;
1678
- delete: GetFindResult<Payload, Args, ClientOptions>;
1679
- deleteMany: GetBatchResult;
1680
- aggregate: GetAggregateResult<Payload, Args>;
1681
- count: GetCountResult<Args>;
1682
- groupBy: GetGroupByResult<Payload, Args>;
1683
- $queryRaw: unknown;
1684
- $queryRawTyped: unknown;
1685
- $executeRaw: number;
1686
- $queryRawUnsafe: unknown;
1687
- $executeRawUnsafe: number;
1688
- $runCommandRaw: JsonObject;
1689
- findRaw: JsonObject;
1690
- aggregateRaw: JsonObject;
1691
- }[OperationName];
1692
-
1693
- export declare function getRuntime(): GetRuntimeOutput;
1694
-
1695
- declare type GetRuntimeOutput = {
1696
- id: Runtime;
1697
- prettyName: string;
1698
- isEdge: boolean;
1699
- };
1700
-
1701
- export declare type GetSelect<Base extends Record<any, any>, R extends InternalArgs['result'][string], KR extends keyof R = string extends keyof R ? never : keyof R> = {
1702
- [K in KR | keyof Base]?: K extends KR ? boolean : Base[K];
1703
- };
1704
-
1705
- declare type GlobalOmitOptions = {
1706
- [modelName: string]: {
1707
- [fieldName: string]: boolean;
1708
- };
1709
- };
1710
-
1711
- declare type HandleErrorParams = {
1712
- args: JsArgs;
1713
- error: any;
1714
- clientMethod: string;
1715
- callsite?: CallSite;
1716
- transaction?: PrismaPromiseTransaction;
1717
- modelName?: string;
1718
- globalOmit?: GlobalOmitOptions;
1719
- };
1720
-
1721
- /**
1722
- * Defines High-Resolution Time.
1723
- *
1724
- * The first number, HrTime[0], is UNIX Epoch time in seconds since 00:00:00 UTC on 1 January 1970.
1725
- * The second number, HrTime[1], represents the partial second elapsed since Unix Epoch time represented by first number in nanoseconds.
1726
- * For example, 2021-01-01T12:30:10.150Z in UNIX Epoch time in milliseconds is represented as 1609504210150.
1727
- * The first number is calculated by converting and truncating the Epoch time in milliseconds to seconds:
1728
- * HrTime[0] = Math.trunc(1609504210150 / 1000) = 1609504210.
1729
- * The second number is calculated by converting the digits after the decimal point of the subtraction, (1609504210150 / 1000) - HrTime[0], to nanoseconds:
1730
- * HrTime[1] = Number((1609504210.150 - HrTime[0]).toFixed(9)) * 1e9 = 150000000.
1731
- * This is represented in HrTime format as [1609504210, 150000000].
1732
- */
1733
- declare type HrTime = [number, number];
1734
-
1735
- /**
1736
- * Matches a JSON array.
1737
- * Unlike \`JsonArray\`, readonly arrays are assignable to this type.
1738
- */
1739
- export declare interface InputJsonArray extends ReadonlyArray<InputJsonValue | null> {
1740
- }
1741
-
1742
- /**
1743
- * Matches a JSON object.
1744
- * Unlike \`JsonObject\`, this type allows undefined and read-only properties.
1745
- */
1746
- export declare type InputJsonObject = {
1747
- readonly [Key in string]?: InputJsonValue | null;
1748
- };
1749
-
1750
- /**
1751
- * Matches any valid value that can be used as an input for operations like
1752
- * create and update as the value of a JSON field. Unlike \`JsonValue\`, this
1753
- * type allows read-only arrays and read-only object properties and disallows
1754
- * \`null\` at the top level.
1755
- *
1756
- * \`null\` cannot be used as the value of a JSON field because its meaning
1757
- * would be ambiguous. Use \`Prisma.JsonNull\` to store the JSON null value or
1758
- * \`Prisma.DbNull\` to clear the JSON value and set the field to the database
1759
- * NULL value instead.
1760
- *
1761
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-by-null-values
1762
- */
1763
- export declare type InputJsonValue = string | number | boolean | InputJsonObject | InputJsonArray | {
1764
- toJSON(): unknown;
1765
- };
1766
-
1767
- declare type InteractiveTransactionInfo<Payload = unknown> = {
1768
- /**
1769
- * Transaction ID returned by the query engine.
1770
- */
1771
- id: string;
1772
- /**
1773
- * Arbitrary payload the meaning of which depends on the `Engine` implementation.
1774
- * For example, `DataProxyEngine` needs to associate different API endpoints with transactions.
1775
- * In `LibraryEngine` and `BinaryEngine` it is currently not used.
1776
- */
1777
- payload: Payload;
1778
- };
1779
-
1780
- declare type InteractiveTransactionOptions<Payload> = Transaction_2.InteractiveTransactionInfo<Payload>;
1781
-
1782
- export declare type InternalArgs<R = {
1783
- [K in string]: {
1784
- [K in string]: unknown;
1785
- };
1786
- }, M = {
1787
- [K in string]: {
1788
- [K in string]: unknown;
1789
- };
1790
- }, Q = {
1791
- [K in string]: {
1792
- [K in string]: unknown;
1793
- };
1794
- }, C = {
1795
- [K in string]: unknown;
1796
- }> = {
1797
- result: {
1798
- [K in keyof R]: {
1799
- [P in keyof R[K]]: () => R[K][P];
1800
- };
1801
- };
1802
- model: {
1803
- [K in keyof M]: {
1804
- [P in keyof M[K]]: () => M[K][P];
1805
- };
1806
- };
1807
- query: {
1808
- [K in keyof Q]: {
1809
- [P in keyof Q[K]]: () => Q[K][P];
1810
- };
1811
- };
1812
- client: {
1813
- [K in keyof C]: () => C[K];
1814
- };
1815
- };
1816
-
1817
- declare type InternalRequestParams = {
1818
- /**
1819
- * The original client method being called.
1820
- * Even though the rootField / operation can be changed,
1821
- * this method stays as it is, as it's what the user's
1822
- * code looks like
1823
- */
1824
- clientMethod: string;
1825
- /**
1826
- * Name of js model that triggered the request. Might be used
1827
- * for warnings or error messages
1828
- */
1829
- jsModelName?: string;
1830
- callsite?: CallSite;
1831
- transaction?: PrismaPromiseTransaction;
1832
- unpacker?: Unpacker;
1833
- otelParentCtx?: Context;
1834
- /** Used to "desugar" a user input into an "expanded" one */
1835
- argsMapper?: (args?: UserArgs_2) => UserArgs_2;
1836
- /** Used to convert args for middleware and back */
1837
- middlewareArgsMapper?: MiddlewareArgsMapper<unknown, unknown>;
1838
- /** Used for Accelerate client extension via Data Proxy */
1839
- customDataProxyFetch?: (fetch: Fetch) => Fetch;
1840
- } & Omit<QueryMiddlewareParams, 'runInTransaction'>;
1841
-
1842
- declare enum IsolationLevel {
1843
- ReadUncommitted = "ReadUncommitted",
1844
- ReadCommitted = "ReadCommitted",
1845
- RepeatableRead = "RepeatableRead",
1846
- Snapshot = "Snapshot",
1847
- Serializable = "Serializable"
1848
- }
1849
-
1850
- declare function isSkip(value: unknown): value is Skip;
1851
-
1852
- export declare function isTypedSql(value: unknown): value is UnknownTypedSql;
1853
-
1854
- export declare type ITXClientDenyList = (typeof denylist)[number];
1855
-
1856
- export declare const itxClientDenyList: readonly (string | symbol)[];
1857
-
1858
- declare interface Job {
1859
- resolve: (data: any) => void;
1860
- reject: (data: any) => void;
1861
- request: any;
1862
- }
1863
-
1864
- /**
1865
- * Create a SQL query for a list of values.
1866
- */
1867
- export declare function join(values: readonly RawValue[], separator?: string, prefix?: string, suffix?: string): Sql;
1868
-
1869
- export declare type JsArgs = {
1870
- select?: Selection_2;
1871
- include?: Selection_2;
1872
- omit?: Omission;
1873
- [argName: string]: JsInputValue;
1874
- };
1875
-
1876
- export declare type JsInputValue = null | undefined | string | number | boolean | bigint | Uint8Array | Date | DecimalJsLike | ObjectEnumValue | RawParameters | JsonConvertible | FieldRef<string, unknown> | JsInputValue[] | Skip | {
1877
- [key: string]: JsInputValue;
1878
- };
1879
-
1880
- declare type JsonArgumentValue = number | string | boolean | null | RawTaggedValue | JsonArgumentValue[] | {
1881
- [key: string]: JsonArgumentValue;
1882
- };
1883
-
1884
- /**
1885
- * From https://github.com/sindresorhus/type-fest/
1886
- * Matches a JSON array.
1887
- */
1888
- export declare interface JsonArray extends Array<JsonValue> {
1889
- }
1890
-
1891
- export declare type JsonBatchQuery = {
1892
- batch: JsonQuery[];
1893
- transaction?: {
1894
- isolationLevel?: Transaction_2.IsolationLevel;
1895
- };
1896
- };
1897
-
1898
- export declare interface JsonConvertible {
1899
- toJSON(): unknown;
1900
- }
1901
-
1902
- declare type JsonFieldSelection = {
1903
- arguments?: Record<string, JsonArgumentValue> | RawTaggedValue;
1904
- selection: JsonSelectionSet;
1905
- };
1906
-
1907
- declare class JsonNull extends NullTypesEnumValue {
1908
- }
1909
-
1910
- /**
1911
- * From https://github.com/sindresorhus/type-fest/
1912
- * Matches a JSON object.
1913
- * This type can be useful to enforce some input to be JSON-compatible or as a super-type to be extended from.
1914
- */
1915
- export declare type JsonObject = {
1916
- [Key in string]?: JsonValue;
1917
- };
1918
-
1919
- export declare type JsonQuery = {
1920
- modelName?: string;
1921
- action: JsonQueryAction;
1922
- query: JsonFieldSelection;
1923
- };
1924
-
1925
- declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'createManyAndReturn' | 'updateOne' | 'updateMany' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw';
1926
-
1927
- declare type JsonSelectionSet = {
1928
- $scalars?: boolean;
1929
- $composites?: boolean;
1930
- } & {
1931
- [fieldName: string]: boolean | JsonFieldSelection;
1932
- };
1933
-
1934
- /**
1935
- * From https://github.com/sindresorhus/type-fest/
1936
- * Matches any valid JSON value.
1937
- */
1938
- export declare type JsonValue = string | number | boolean | JsonObject | JsonArray | null;
1939
-
1940
- export declare type JsOutputValue = null | string | number | boolean | bigint | Uint8Array | Date | Decimal | JsOutputValue[] | {
1941
- [key: string]: JsOutputValue;
1942
- };
1943
-
1944
- export declare type JsPromise<T> = Promise<T> & {};
1945
-
1946
- declare type KnownErrorParams = {
1947
- code: string;
1948
- clientVersion: string;
1949
- meta?: Record<string, unknown>;
1950
- batchRequestIdx?: number;
1951
- };
1952
-
1953
- /**
1954
- * A pointer from the current {@link Span} to another span in the same trace or
1955
- * in a different trace.
1956
- * Few examples of Link usage.
1957
- * 1. Batch Processing: A batch of elements may contain elements associated
1958
- * with one or more traces/spans. Since there can only be one parent
1959
- * SpanContext, Link is used to keep reference to SpanContext of all
1960
- * elements in the batch.
1961
- * 2. Public Endpoint: A SpanContext in incoming client request on a public
1962
- * endpoint is untrusted from service provider perspective. In such case it
1963
- * is advisable to start a new trace with appropriate sampling decision.
1964
- * However, it is desirable to associate incoming SpanContext to new trace
1965
- * initiated on service provider side so two traces (from Client and from
1966
- * Service Provider) can be correlated.
1967
- */
1968
- declare interface Link {
1969
- /** The {@link SpanContext} of a linked span. */
1970
- context: SpanContext;
1971
- /** A set of {@link SpanAttributes} on the link. */
1972
- attributes?: SpanAttributes;
1973
- /** Count of attributes of the link that were dropped due to collection limits */
1974
- droppedAttributesCount?: number;
1975
- }
1976
-
1977
- declare type LoadedEnv = {
1978
- message?: string;
1979
- parsed: {
1980
- [x: string]: string;
1981
- };
1982
- } | undefined;
1983
-
1984
- declare type LocationInFile = {
1985
- fileName: string;
1986
- lineNumber: number | null;
1987
- columnNumber: number | null;
1988
- };
1989
-
1990
- declare type LogDefinition = {
1991
- level: LogLevel;
1992
- emit: 'stdout' | 'event';
1993
- };
1994
-
1995
- /**
1996
- * Typings for the events we emit.
1997
- *
1998
- * @remarks
1999
- * If this is updated, our edge runtime shim needs to be updated as well.
2000
- */
2001
- declare type LogEmitter = {
2002
- on<E extends EngineEventType>(event: E, listener: (event: EngineEvent<E>) => void): LogEmitter;
2003
- emit(event: QueryEventType, payload: QueryEvent): boolean;
2004
- emit(event: LogEventType, payload: LogEvent): boolean;
2005
- };
2006
-
2007
- declare type LogEvent = {
2008
- timestamp: Date;
2009
- message: string;
2010
- target: string;
2011
- };
2012
-
2013
- declare type LogEventType = 'info' | 'warn' | 'error';
2014
-
2015
- declare type LogLevel = 'info' | 'query' | 'warn' | 'error';
2016
-
2017
- /**
2018
- * Generates more strict variant of an enum which, unlike regular enum,
2019
- * throws on non-existing property access. This can be useful in following situations:
2020
- * - we have an API, that accepts both `undefined` and `SomeEnumType` as an input
2021
- * - enum values are generated dynamically from DMMF.
2022
- *
2023
- * In that case, if using normal enums and no compile-time typechecking, using non-existing property
2024
- * will result in `undefined` value being used, which will be accepted. Using strict enum
2025
- * in this case will help to have a runtime exception, telling you that you are probably doing something wrong.
2026
- *
2027
- * Note: if you need to check for existence of a value in the enum you can still use either
2028
- * `in` operator or `hasOwnProperty` function.
2029
- *
2030
- * @param definition
2031
- * @returns
2032
- */
2033
- export declare function makeStrictEnum<T extends Record<PropertyKey, string | number>>(definition: T): T;
2034
-
2035
- export declare function makeTypedQueryFactory(sql: string): (...values: any[]) => TypedSql<any[], unknown>;
2036
-
2037
- /**
2038
- * Class that holds the list of all extensions, applied to particular instance,
2039
- * as well as resolved versions of the components that need to apply on
2040
- * different levels. Main idea of this class: avoid re-resolving as much of the
2041
- * stuff as possible when new extensions are added while also delaying the
2042
- * resolve until the point it is actually needed. For example, computed fields
2043
- * of the model won't be resolved unless the model is actually queried. Neither
2044
- * adding extensions with `client` component only cause other components to
2045
- * recompute.
2046
- */
2047
- declare class MergedExtensionsList {
2048
- private head?;
2049
- private constructor();
2050
- static empty(): MergedExtensionsList;
2051
- static single(extension: ExtensionArgs): MergedExtensionsList;
2052
- isEmpty(): boolean;
2053
- append(extension: ExtensionArgs): MergedExtensionsList;
2054
- getAllComputedFields(dmmfModelName: string): ComputedFieldsMap | undefined;
2055
- getAllClientExtensions(): ClientArg | undefined;
2056
- getAllModelExtensions(dmmfModelName: string): ModelArg | undefined;
2057
- getAllQueryCallbacks(jsModelName: string, operation: string): any;
2058
- getAllBatchQueryCallbacks(): BatchQueryOptionsCb[];
2059
- }
2060
-
2061
- export declare type MergeExtArgs<TypeMap extends TypeMapDef, ExtArgs extends Record<any, any>, Args extends Record<any, any>> = ComputeDeep<ExtArgs & Args & AllModelsToStringIndex<TypeMap, Args, 'result'> & AllModelsToStringIndex<TypeMap, Args, 'model'>>;
2062
-
2063
- export declare type Metric<T> = {
2064
- key: string;
2065
- value: T;
2066
- labels: Record<string, string>;
2067
- description: string;
2068
- };
2069
-
2070
- export declare type MetricHistogram = {
2071
- buckets: MetricHistogramBucket[];
2072
- sum: number;
2073
- count: number;
2074
- };
2075
-
2076
- export declare type MetricHistogramBucket = [maxValue: number, count: number];
2077
-
2078
- export declare type Metrics = {
2079
- counters: Metric<number>[];
2080
- gauges: Metric<number>[];
2081
- histograms: Metric<MetricHistogram>[];
2082
- };
2083
-
2084
- export declare class MetricsClient {
2085
- private _engine;
2086
- constructor(engine: Engine);
2087
- /**
2088
- * Returns all metrics gathered up to this point in prometheus format.
2089
- * Result of this call can be exposed directly to prometheus scraping endpoint
2090
- *
2091
- * @param options
2092
- * @returns
2093
- */
2094
- prometheus(options?: MetricsOptions): Promise<string>;
2095
- /**
2096
- * Returns all metrics gathered up to this point in prometheus format.
2097
- *
2098
- * @param options
2099
- * @returns
2100
- */
2101
- json(options?: MetricsOptions): Promise<Metrics>;
2102
- }
2103
-
2104
- declare type MetricsOptions = {
2105
- /**
2106
- * Labels to add to every metrics in key-value format
2107
- */
2108
- globalLabels?: Record<string, string>;
2109
- };
2110
-
2111
- declare type MetricsOptionsCommon = {
2112
- globalLabels?: Record<string, string>;
2113
- };
2114
-
2115
- declare type MetricsOptionsJson = {
2116
- format: 'json';
2117
- } & MetricsOptionsCommon;
2118
-
2119
- declare type MetricsOptionsPrometheus = {
2120
- format: 'prometheus';
2121
- } & MetricsOptionsCommon;
2122
-
2123
- declare type MiddlewareArgsMapper<RequestArgs, MiddlewareArgs> = {
2124
- requestArgsToMiddlewareArgs(requestArgs: RequestArgs): MiddlewareArgs;
2125
- middlewareArgsToRequestArgs(middlewareArgs: MiddlewareArgs): RequestArgs;
2126
- };
2127
-
2128
- declare class MiddlewareHandler<M extends Function> {
2129
- private _middlewares;
2130
- use(middleware: M): void;
2131
- get(id: number): M | undefined;
2132
- has(id: number): boolean;
2133
- length(): number;
2134
- }
2135
-
2136
- export declare type ModelArg = {
2137
- [MethodName in string]: unknown;
2138
- };
2139
-
2140
- export declare type ModelArgs = {
2141
- model: {
2142
- [ModelName in string]: ModelArg;
2143
- };
2144
- };
2145
-
2146
- export declare type ModelKey<TypeMap extends TypeMapDef, M extends PropertyKey> = M extends keyof TypeMap['model'] ? M : Capitalize<M & string>;
2147
-
2148
- export declare type ModelQueryOptionsCb = (args: ModelQueryOptionsCbArgs) => Promise<any>;
2149
-
2150
- export declare type ModelQueryOptionsCbArgs = {
2151
- model: string;
2152
- operation: string;
2153
- args: JsArgs;
2154
- query: (args: JsArgs) => Promise<unknown>;
2155
- };
2156
-
2157
- export declare type NameArgs = {
2158
- name?: string;
2159
- };
2160
-
2161
- export declare type Narrow<A> = {
2162
- [K in keyof A]: A[K] extends Function ? A[K] : Narrow<A[K]>;
2163
- } | (A extends Narrowable ? A : never);
2164
-
2165
- export declare type Narrowable = string | number | bigint | boolean | [];
2166
-
2167
- export declare type NeverToUnknown<T> = [T] extends [never] ? unknown : T;
2168
-
2169
- /**
2170
- * Imitates `fetch` via `https` to only suit our needs, it does nothing more.
2171
- * This is because we cannot bundle `node-fetch` as it uses many other Node.js
2172
- * utilities, while also bloating our bundles. This approach is much leaner.
2173
- * @param url
2174
- * @param options
2175
- * @returns
2176
- */
2177
- declare function nodeFetch(url: string, options?: RequestOptions): Promise<RequestResponse>;
2178
-
2179
- declare class NodeHeaders {
2180
- readonly headers: Map<string, string>;
2181
- constructor(init?: Record<any, any>);
2182
- append(name: string, value: string): void;
2183
- delete(name: string): void;
2184
- get(name: string): string | null;
2185
- has(name: string): boolean;
2186
- set(name: string, value: string): void;
2187
- forEach(callbackfn: (value: string, key: string, parent: this) => void, thisArg?: any): void;
2188
- }
2189
-
2190
- /**
2191
- * @deprecated Please don´t rely on type checks to this error anymore.
2192
- * This will become a regular `PrismaClientKnownRequestError` with code `P2025`
2193
- * in the future major version of the client.
2194
- * Instead of `error instanceof Prisma.NotFoundError` use `error.code === "P2025"`.
2195
- */
2196
- export declare class NotFoundError extends PrismaClientKnownRequestError {
2197
- constructor(message: string, clientVersion: string);
2198
- }
2199
-
2200
- declare class NullTypesEnumValue extends ObjectEnumValue {
2201
- _getNamespace(): string;
2202
- }
2203
-
2204
- /**
2205
- * List of Prisma enums that must use unique objects instead of strings as their values.
2206
- */
2207
- export declare const objectEnumNames: string[];
2208
-
2209
- /**
2210
- * Base class for unique values of object-valued enums.
2211
- */
2212
- export declare abstract class ObjectEnumValue {
2213
- constructor(arg?: symbol);
2214
- abstract _getNamespace(): string;
2215
- _getName(): string;
2216
- toString(): string;
2217
- }
2218
-
2219
- export declare const objectEnumValues: {
2220
- classes: {
2221
- DbNull: typeof DbNull;
2222
- JsonNull: typeof JsonNull;
2223
- AnyNull: typeof AnyNull;
2224
- };
2225
- instances: {
2226
- DbNull: DbNull;
2227
- JsonNull: JsonNull;
2228
- AnyNull: AnyNull;
2229
- };
2230
- };
2231
-
2232
- declare const officialPrismaAdapters: readonly ["@prisma/adapter-planetscale", "@prisma/adapter-neon", "@prisma/adapter-libsql", "@prisma/adapter-d1", "@prisma/adapter-pg", "@prisma/adapter-pg-worker"];
2233
-
2234
- export declare type Omission = Record<string, boolean | Skip>;
2235
-
2236
- declare type Omit_2<T, K extends string | number | symbol> = {
2237
- [P in keyof T as P extends K ? never : P]: T[P];
2238
- };
2239
- export { Omit_2 as Omit }
2240
-
2241
- export declare type OmitValue<Omit, Key> = Key extends keyof Omit ? Omit[Key] : false;
2242
-
2243
- export declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
2244
-
2245
- export declare type OperationPayload = {
2246
- name: string;
2247
- scalars: {
2248
- [ScalarName in string]: unknown;
2249
- };
2250
- objects: {
2251
- [ObjectName in string]: unknown;
2252
- };
2253
- composites: {
2254
- [CompositeName in string]: unknown;
2255
- };
2256
- };
2257
-
2258
- export declare type Optional<O, K extends keyof any = keyof O> = {
2259
- [P in K & keyof O]?: O[P];
2260
- } & {
2261
- [P in Exclude<keyof O, K>]: O[P];
2262
- };
2263
-
2264
- export declare type OptionalFlat<T> = {
2265
- [K in keyof T]?: T[K];
2266
- };
2267
-
2268
- export declare type OptionalKeys<O> = {
2269
- [K in keyof O]-?: {} extends Pick_2<O, K> ? K : never;
2270
- }[keyof O];
2271
-
2272
- declare type Options = {
2273
- maxWait?: number;
2274
- timeout?: number;
2275
- isolationLevel?: IsolationLevel;
2276
- };
2277
-
2278
- declare type Options_2 = {
2279
- clientVersion: string;
2280
- };
2281
-
2282
- export declare type Or<A extends 1 | 0, B extends 1 | 0> = {
2283
- 0: {
2284
- 0: 0;
2285
- 1: 1;
2286
- };
2287
- 1: {
2288
- 0: 1;
2289
- 1: 1;
2290
- };
2291
- }[A][B];
2292
-
2293
- export declare type PatchFlat<O1, O2> = O1 & Omit_2<O2, keyof O1>;
2294
-
2295
- export declare type Path<O, P, Default = never> = O extends unknown ? P extends [infer K, ...infer R] ? K extends keyof O ? Path<O[K], R> : Default : O : never;
2296
-
2297
- export declare type Payload<T, F extends Operation = never> = T extends {
2298
- [K: symbol]: {
2299
- types: {
2300
- payload: any;
2301
- };
2302
- };
2303
- } ? T[symbol]['types']['payload'] : any;
2304
-
2305
- export declare type PayloadToResult<P, O extends Record_2<any, any> = RenameAndNestPayloadKeys<P>> = {
2306
- [K in keyof O]?: O[K][K] extends any[] ? PayloadToResult<O[K][K][number]>[] : O[K][K] extends object ? PayloadToResult<O[K][K]> : O[K][K];
2307
- };
2308
-
2309
- declare type Pick_2<T, K extends string | number | symbol> = {
2310
- [P in keyof T as P extends K ? P : never]: T[P];
2311
- };
2312
- export { Pick_2 as Pick }
2313
-
2314
- export declare class PrismaClientInitializationError extends Error {
2315
- clientVersion: string;
2316
- errorCode?: string;
2317
- retryable?: boolean;
2318
- constructor(message: string, clientVersion: string, errorCode?: string);
2319
- get [Symbol.toStringTag](): string;
2320
- }
2321
-
2322
- export declare class PrismaClientKnownRequestError extends Error implements ErrorWithBatchIndex {
2323
- code: string;
2324
- meta?: Record<string, unknown>;
2325
- clientVersion: string;
2326
- batchRequestIdx?: number;
2327
- constructor(message: string, { code, clientVersion, meta, batchRequestIdx }: KnownErrorParams);
2328
- get [Symbol.toStringTag](): string;
2329
- }
2330
-
2331
- export declare type PrismaClientOptions = {
2332
- /**
2333
- * Overwrites the primary datasource url from your schema.prisma file
2334
- */
2335
- datasourceUrl?: string;
2336
- /**
2337
- * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale.
2338
- */
2339
- adapter?: DriverAdapter | null;
2340
- /**
2341
- * Overwrites the datasource url from your schema.prisma file
2342
- */
2343
- datasources?: Datasources;
2344
- /**
2345
- * @default "colorless"
2346
- */
2347
- errorFormat?: ErrorFormat;
2348
- /**
2349
- * The default values for Transaction options
2350
- * maxWait ?= 2000
2351
- * timeout ?= 5000
2352
- */
2353
- transactionOptions?: Transaction_2.Options;
2354
- /**
2355
- * @example
2356
- * \`\`\`
2357
- * // Defaults to stdout
2358
- * log: ['query', 'info', 'warn']
2359
- *
2360
- * // Emit as events
2361
- * log: [
2362
- * { emit: 'stdout', level: 'query' },
2363
- * { emit: 'stdout', level: 'info' },
2364
- * { emit: 'stdout', level: 'warn' }
2365
- * ]
2366
- * \`\`\`
2367
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
2368
- */
2369
- log?: Array<LogLevel | LogDefinition>;
2370
- omit?: GlobalOmitOptions;
2371
- /**
2372
- * @internal
2373
- * You probably don't want to use this. \`__internal\` is used by internal tooling.
2374
- */
2375
- __internal?: {
2376
- debug?: boolean;
2377
- engine?: {
2378
- cwd?: string;
2379
- binaryPath?: string;
2380
- endpoint?: string;
2381
- allowTriggerPanic?: boolean;
2382
- };
2383
- /** This can be used for testing purposes */
2384
- configOverride?: (config: GetPrismaClientConfig) => GetPrismaClientConfig;
2385
- };
2386
- };
2387
-
2388
- export declare class PrismaClientRustPanicError extends Error {
2389
- clientVersion: string;
2390
- constructor(message: string, clientVersion: string);
2391
- get [Symbol.toStringTag](): string;
2392
- }
2393
-
2394
- export declare class PrismaClientUnknownRequestError extends Error implements ErrorWithBatchIndex {
2395
- clientVersion: string;
2396
- batchRequestIdx?: number;
2397
- constructor(message: string, { clientVersion, batchRequestIdx }: UnknownErrorParams);
2398
- get [Symbol.toStringTag](): string;
2399
- }
2400
-
2401
- export declare class PrismaClientValidationError extends Error {
2402
- name: string;
2403
- clientVersion: string;
2404
- constructor(message: string, { clientVersion }: Options_2);
2405
- get [Symbol.toStringTag](): string;
2406
- }
2407
-
2408
- declare function prismaGraphQLToJSError({ error, user_facing_error }: RequestError, clientVersion: string, activeProvider: string): PrismaClientKnownRequestError | PrismaClientUnknownRequestError;
2409
-
2410
- export declare interface PrismaPromise<T> extends Promise<T> {
2411
- [Symbol.toStringTag]: 'PrismaPromise';
2412
- }
2413
-
2414
- /**
2415
- * Prisma's `Promise` that is backwards-compatible. All additions on top of the
2416
- * original `Promise` are optional so that it can be backwards-compatible.
2417
- * @see [[createPrismaPromise]]
2418
- */
2419
- declare interface PrismaPromise_2<A> extends Promise<A> {
2420
- /**
2421
- * Extension of the original `.then` function
2422
- * @param onfulfilled same as regular promises
2423
- * @param onrejected same as regular promises
2424
- * @param transaction transaction options
2425
- */
2426
- then<R1 = A, R2 = never>(onfulfilled?: (value: A) => R1 | PromiseLike<R1>, onrejected?: (error: unknown) => R2 | PromiseLike<R2>, transaction?: PrismaPromiseTransaction): Promise<R1 | R2>;
2427
- /**
2428
- * Extension of the original `.catch` function
2429
- * @param onrejected same as regular promises
2430
- * @param transaction transaction options
2431
- */
2432
- catch<R = never>(onrejected?: ((reason: any) => R | PromiseLike<R>) | undefined | null, transaction?: PrismaPromiseTransaction): Promise<A | R>;
2433
- /**
2434
- * Extension of the original `.finally` function
2435
- * @param onfinally same as regular promises
2436
- * @param transaction transaction options
2437
- */
2438
- finally(onfinally?: (() => void) | undefined | null, transaction?: PrismaPromiseTransaction): Promise<A>;
2439
- /**
2440
- * Called when executing a batch of regular tx
2441
- * @param transaction transaction options for batch tx
2442
- */
2443
- requestTransaction?(transaction: PrismaPromiseBatchTransaction): PromiseLike<unknown>;
2444
- }
2445
-
2446
- declare type PrismaPromiseBatchTransaction = {
2447
- kind: 'batch';
2448
- id: number;
2449
- isolationLevel?: IsolationLevel;
2450
- index: number;
2451
- lock: PromiseLike<void>;
2452
- };
2453
-
2454
- declare type PrismaPromiseCallback = (transaction?: PrismaPromiseTransaction) => PrismaPromise_2<unknown>;
2455
-
2456
- /**
2457
- * Creates a [[PrismaPromise]]. It is Prisma's implementation of `Promise` which
2458
- * is essentially a proxy for `Promise`. All the transaction-compatible client
2459
- * methods return one, this allows for pre-preparing queries without executing
2460
- * them until `.then` is called. It's the foundation of Prisma's query batching.
2461
- * @param callback that will be wrapped within our promise implementation
2462
- * @see [[PrismaPromise]]
2463
- * @returns
2464
- */
2465
- declare type PrismaPromiseFactory = (callback: PrismaPromiseCallback) => PrismaPromise_2<unknown>;
2466
-
2467
- declare type PrismaPromiseInteractiveTransaction<PayloadType = unknown> = {
2468
- kind: 'itx';
2469
- id: string;
2470
- payload: PayloadType;
2471
- };
2472
-
2473
- declare type PrismaPromiseTransaction<PayloadType = unknown> = PrismaPromiseBatchTransaction | PrismaPromiseInteractiveTransaction<PayloadType>;
2474
-
2475
- export declare const PrivateResultType: unique symbol;
2476
-
2477
- declare namespace Public {
2478
- export {
2479
- validator
2480
- }
2481
- }
2482
- export { Public }
2483
-
2484
- declare namespace Public_2 {
2485
- export {
2486
- Args,
2487
- Result,
2488
- Payload,
2489
- PrismaPromise,
2490
- Operation,
2491
- Exact
2492
- }
2493
- }
2494
-
2495
- declare type Query = {
2496
- sql: string;
2497
- args: Array<unknown>;
2498
- argTypes: Array<ArgType>;
2499
- };
2500
-
2501
- declare interface Queryable {
2502
- readonly provider: 'mysql' | 'postgres' | 'sqlite';
2503
- readonly adapterName: (typeof officialPrismaAdapters)[number] | (string & {});
2504
- /**
2505
- * Execute a query given as SQL, interpolating the given parameters,
2506
- * and returning the type-aware result set of the query.
2507
- *
2508
- * This is the preferred way of executing `SELECT` queries.
2509
- */
2510
- queryRaw(params: Query): Promise<Result_4<ResultSet>>;
2511
- /**
2512
- * Execute a query given as SQL, interpolating the given parameters,
2513
- * and returning the number of affected rows.
2514
- *
2515
- * This is the preferred way of executing `INSERT`, `UPDATE`, `DELETE` queries,
2516
- * as well as transactional queries.
2517
- */
2518
- executeRaw(params: Query): Promise<Result_4<number>>;
2519
- }
2520
-
2521
- declare type QueryEngineBatchGraphQLRequest = {
2522
- batch: QueryEngineRequest[];
2523
- transaction?: boolean;
2524
- isolationLevel?: Transaction_2.IsolationLevel;
2525
- };
2526
-
2527
- declare type QueryEngineBatchRequest = QueryEngineBatchGraphQLRequest | JsonBatchQuery;
2528
-
2529
- declare type QueryEngineConfig = {
2530
- datamodel: string;
2531
- configDir: string;
2532
- logQueries: boolean;
2533
- ignoreEnvVarErrors: boolean;
2534
- datasourceOverrides: Record<string, string>;
2535
- env: Record<string, string | undefined>;
2536
- logLevel: QueryEngineLogLevel;
2537
- telemetry?: QueryEngineTelemetry;
2538
- engineProtocol: EngineProtocol;
2539
- };
2540
-
2541
- declare interface QueryEngineConstructor {
2542
- new (config: QueryEngineConfig, logger: (log: string) => void, adapter?: ErrorCapturingDriverAdapter): QueryEngineInstance;
2543
- }
2544
-
2545
- declare type QueryEngineInstance = {
2546
- connect(headers: string): Promise<void>;
2547
- disconnect(headers: string): Promise<void>;
2548
- /**
2549
- * @param requestStr JSON.stringified `QueryEngineRequest | QueryEngineBatchRequest`
2550
- * @param headersStr JSON.stringified `QueryEngineRequestHeaders`
2551
- */
2552
- query(requestStr: string, headersStr: string, transactionId?: string): Promise<string>;
2553
- sdlSchema(): Promise<string>;
2554
- dmmf(traceparent: string): Promise<string>;
2555
- startTransaction(options: string, traceHeaders: string): Promise<string>;
2556
- commitTransaction(id: string, traceHeaders: string): Promise<string>;
2557
- rollbackTransaction(id: string, traceHeaders: string): Promise<string>;
2558
- metrics(options: string): Promise<string>;
2559
- applyPendingMigrations(): Promise<void>;
2560
- };
2561
-
2562
- declare type QueryEngineLogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'off';
2563
-
2564
- declare type QueryEngineRequest = {
2565
- query: string;
2566
- variables: Object;
2567
- };
2568
-
2569
- declare type QueryEngineResult<T> = {
2570
- data: T;
2571
- elapsed: number;
2572
- };
2573
-
2574
- declare type QueryEngineTelemetry = {
2575
- enabled: Boolean;
2576
- endpoint: string;
2577
- };
2578
-
2579
- declare type QueryEvent = {
2580
- timestamp: Date;
2581
- query: string;
2582
- params: string;
2583
- duration: number;
2584
- target: string;
2585
- };
2586
-
2587
- declare type QueryEventType = 'query';
2588
-
2589
- declare type QueryMiddleware = (params: QueryMiddlewareParams, next: (params: QueryMiddlewareParams) => Promise<unknown>) => Promise<unknown>;
2590
-
2591
- declare type QueryMiddlewareParams = {
2592
- /** The model this is executed on */
2593
- model?: string;
2594
- /** The action that is being handled */
2595
- action: Action;
2596
- /** TODO what is this */
2597
- dataPath: string[];
2598
- /** TODO what is this */
2599
- runInTransaction: boolean;
2600
- args?: UserArgs_2;
2601
- };
2602
-
2603
- export declare type QueryOptions = {
2604
- query: {
2605
- [ModelName in string]: {
2606
- [ModelAction in string]: ModelQueryOptionsCb;
2607
- } | QueryOptionsCb;
2608
- };
2609
- };
2610
-
2611
- export declare type QueryOptionsCb = (args: QueryOptionsCbArgs) => Promise<any>;
2612
-
2613
- export declare type QueryOptionsCbArgs = {
2614
- model?: string;
2615
- operation: string;
2616
- args: JsArgs | RawQueryArgs;
2617
- query: (args: JsArgs | RawQueryArgs) => Promise<unknown>;
2618
- };
2619
-
2620
- /**
2621
- * Create raw SQL statement.
2622
- */
2623
- export declare function raw(value: string): Sql;
2624
-
2625
- export declare type RawParameters = {
2626
- __prismaRawParameters__: true;
2627
- values: string;
2628
- };
2629
-
2630
- export declare type RawQueryArgs = Sql | UnknownTypedSql | [query: string, ...values: RawValue[]];
2631
-
2632
- declare type RawTaggedValue = {
2633
- $type: 'Raw';
2634
- value: unknown;
2635
- };
2636
-
2637
- /**
2638
- * Supported value or SQL instance.
2639
- */
2640
- export declare type RawValue = Value | Sql;
2641
-
2642
- export declare type ReadonlyDeep<T> = {
2643
- readonly [K in keyof T]: ReadonlyDeep<T[K]>;
2644
- };
2645
-
2646
- declare type ReadonlyDeep_2<O> = {
2647
- +readonly [K in keyof O]: ReadonlyDeep_2<O[K]>;
2648
- };
2649
-
2650
- declare type Record_2<T extends string | number | symbol, U> = {
2651
- [P in T]: U;
2652
- };
2653
- export { Record_2 as Record }
2654
-
2655
- export declare type RenameAndNestPayloadKeys<P> = {
2656
- [K in keyof P as K extends 'scalars' | 'objects' | 'composites' ? keyof P[K] : never]: P[K];
2657
- };
2658
-
2659
- declare type RequestBatchOptions<InteractiveTransactionPayload> = {
2660
- transaction?: TransactionOptions_2<InteractiveTransactionPayload>;
2661
- traceparent?: string;
2662
- numTry?: number;
2663
- containsWrite: boolean;
2664
- customDataProxyFetch?: (fetch: Fetch) => Fetch;
2665
- };
2666
-
2667
- declare interface RequestError {
2668
- error: string;
2669
- user_facing_error: {
2670
- is_panic: boolean;
2671
- message: string;
2672
- meta?: Record<string, unknown>;
2673
- error_code?: string;
2674
- batch_request_idx?: number;
2675
- };
2676
- }
2677
-
2678
- declare class RequestHandler {
2679
- client: Client;
2680
- dataloader: DataLoader<RequestParams>;
2681
- private logEmitter?;
2682
- constructor(client: Client, logEmitter?: LogEmitter);
2683
- request(params: RequestParams): Promise<any>;
2684
- mapQueryEngineResult({ dataPath, unpacker }: RequestParams, response: QueryEngineResult<any>): any;
2685
- /**
2686
- * Handles the error and logs it, logging the error is done synchronously waiting for the event
2687
- * handlers to finish.
2688
- */
2689
- handleAndLogRequestError(params: HandleErrorParams): never;
2690
- handleRequestError({ error, clientMethod, callsite, transaction, args, modelName, globalOmit, }: HandleErrorParams): never;
2691
- sanitizeMessage(message: any): any;
2692
- unpack(data: unknown, dataPath: string[], unpacker?: Unpacker): any;
2693
- get [Symbol.toStringTag](): string;
2694
- }
2695
-
2696
- declare type RequestOptions = {
2697
- method?: string;
2698
- headers?: Record<string, string>;
2699
- body?: string;
2700
- };
2701
-
2702
- declare type RequestOptions_2<InteractiveTransactionPayload> = {
2703
- traceparent?: string;
2704
- numTry?: number;
2705
- interactiveTransaction?: InteractiveTransactionOptions<InteractiveTransactionPayload>;
2706
- isWrite: boolean;
2707
- customDataProxyFetch?: (fetch: Fetch) => Fetch;
2708
- };
2709
-
2710
- declare type RequestParams = {
2711
- modelName?: string;
2712
- action: Action;
2713
- protocolQuery: JsonQuery;
2714
- dataPath: string[];
2715
- clientMethod: string;
2716
- callsite?: CallSite;
2717
- transaction?: PrismaPromiseTransaction;
2718
- extensions: MergedExtensionsList;
2719
- args?: any;
2720
- headers?: Record<string, string>;
2721
- unpacker?: Unpacker;
2722
- otelParentCtx?: Context;
2723
- otelChildCtx?: Context;
2724
- globalOmit?: GlobalOmitOptions;
2725
- customDataProxyFetch?: (fetch: Fetch) => Fetch;
2726
- };
2727
-
2728
- declare type RequestResponse = {
2729
- ok: boolean;
2730
- url: string;
2731
- statusText?: string;
2732
- status: number;
2733
- headers: NodeHeaders;
2734
- text: () => Promise<string>;
2735
- json: () => Promise<any>;
2736
- };
2737
-
2738
- declare type RequiredExtensionArgs = NameArgs & ResultArgs & ModelArgs & ClientArgs & QueryOptions;
2739
- export { RequiredExtensionArgs }
2740
- export { RequiredExtensionArgs as UserArgs }
2741
-
2742
- export declare type RequiredKeys<O> = {
2743
- [K in keyof O]-?: {} extends Pick_2<O, K> ? never : K;
2744
- }[keyof O];
2745
-
2746
- declare function resolveDatasourceUrl({ inlineDatasources, overrideDatasources, env, clientVersion, }: {
2747
- inlineDatasources: GetPrismaClientConfig['inlineDatasources'];
2748
- overrideDatasources: Datasources;
2749
- env: Record<string, string | undefined>;
2750
- clientVersion: string;
2751
- }): string;
2752
-
2753
- export declare type Result<T, A, F extends Operation> = T extends {
2754
- [K: symbol]: {
2755
- types: {
2756
- payload: any;
2757
- };
2758
- };
2759
- } ? GetResult<T[symbol]['types']['payload'], A, F> : GetResult<{
2760
- composites: {};
2761
- objects: {};
2762
- scalars: {};
2763
- name: '';
2764
- }, {}, F>;
2765
-
2766
- export declare type Result_2<T, A, F extends Operation> = Result<T, A, F>;
2767
-
2768
- declare namespace Result_3 {
2769
- export {
2770
- Operation,
2771
- FluentOperation,
2772
- Count,
2773
- GetFindResult,
2774
- SelectablePayloadFields,
2775
- SelectField,
2776
- DefaultSelection,
2777
- UnwrapPayload,
2778
- ApplyOmit,
2779
- OmitValue,
2780
- GetCountResult,
2781
- Aggregate,
2782
- GetAggregateResult,
2783
- GetBatchResult,
2784
- GetGroupByResult,
2785
- GetResult,
2786
- ExtractGlobalOmit
2787
- }
2788
- }
2789
-
2790
- declare type Result_4<T> = {
2791
- map<U>(fn: (value: T) => U): Result_4<U>;
2792
- flatMap<U>(fn: (value: T) => Result_4<U>): Result_4<U>;
2793
- } & ({
2794
- readonly ok: true;
2795
- readonly value: T;
2796
- } | {
2797
- readonly ok: false;
2798
- readonly error: Error_2;
2799
- });
2800
-
2801
- export declare type ResultArg = {
2802
- [FieldName in string]: ResultFieldDefinition;
2803
- };
2804
-
2805
- export declare type ResultArgs = {
2806
- result: {
2807
- [ModelName in string]: ResultArg;
2808
- };
2809
- };
2810
-
2811
- export declare type ResultArgsFieldCompute = (model: any) => unknown;
2812
-
2813
- export declare type ResultFieldDefinition = {
2814
- needs?: {
2815
- [FieldName in string]: boolean;
2816
- };
2817
- compute: ResultArgsFieldCompute;
2818
- };
2819
-
2820
- declare interface ResultSet {
2821
- /**
2822
- * List of column types appearing in a database query, in the same order as `columnNames`.
2823
- * They are used within the Query Engine to convert values from JS to Quaint values.
2824
- */
2825
- columnTypes: Array<ColumnType>;
2826
- /**
2827
- * List of column names appearing in a database query, in the same order as `columnTypes`.
2828
- */
2829
- columnNames: Array<string>;
2830
- /**
2831
- * List of rows retrieved from a database query.
2832
- * Each row is a list of values, whose length matches `columnNames` and `columnTypes`.
2833
- */
2834
- rows: Array<Array<unknown>>;
2835
- /**
2836
- * The last ID of an `INSERT` statement, if any.
2837
- * This is required for `AUTO_INCREMENT` columns in databases based on MySQL and SQLite.
2838
- */
2839
- lastInsertId?: string;
2840
- }
2841
-
2842
- export declare type Return<T> = T extends (...args: any[]) => infer R ? R : T;
2843
-
2844
- declare type Runtime = "edge-routine" | "workerd" | "deno" | "lagon" | "react-native" | "netlify" | "electron" | "node" | "bun" | "edge-light" | "fastly" | "unknown";
2845
-
2846
- export declare type RuntimeDataModel = {
2847
- readonly models: Record<string, RuntimeModel>;
2848
- readonly enums: Record<string, RuntimeEnum>;
2849
- readonly types: Record<string, RuntimeModel>;
2850
- };
2851
-
2852
- declare type RuntimeEnum = Omit<DMMF.DatamodelEnum, 'name'>;
2853
-
2854
- declare type RuntimeModel = Omit<DMMF.Model, 'name'>;
2855
-
2856
- export declare type Select<T, U> = T extends U ? T : never;
2857
-
2858
- export declare type SelectablePayloadFields<K extends PropertyKey, O> = {
2859
- objects: {
2860
- [k in K]: O;
2861
- };
2862
- } | {
2863
- composites: {
2864
- [k in K]: O;
2865
- };
2866
- };
2867
-
2868
- export declare type SelectField<P extends SelectablePayloadFields<any, any>, K extends PropertyKey> = P extends {
2869
- objects: Record<K, any>;
2870
- } ? P['objects'][K] : P extends {
2871
- composites: Record<K, any>;
2872
- } ? P['composites'][K] : never;
2873
-
2874
- declare type Selection_2 = Record<string, boolean | Skip | JsArgs>;
2875
- export { Selection_2 as Selection }
2876
-
2877
- export declare function serializeJsonQuery({ modelName, action, args, runtimeDataModel, extensions, callsite, clientMethod, errorFormat, clientVersion, previewFeatures, globalOmit, }: SerializeParams): JsonQuery;
2878
-
2879
- declare type SerializeParams = {
2880
- runtimeDataModel: RuntimeDataModel;
2881
- modelName?: string;
2882
- action: Action;
2883
- args?: JsArgs;
2884
- extensions?: MergedExtensionsList;
2885
- callsite?: CallSite;
2886
- clientMethod: string;
2887
- clientVersion: string;
2888
- errorFormat: ErrorFormat;
2889
- previewFeatures: string[];
2890
- globalOmit?: GlobalOmitOptions;
2891
- };
2892
-
2893
- declare class Skip {
2894
- constructor(param?: symbol);
2895
- ifUndefined<T>(value: T | undefined): T | Skip;
2896
- }
2897
-
2898
- export declare const skip: Skip;
2899
-
2900
- /**
2901
- * An interface that represents a span. A span represents a single operation
2902
- * within a trace. Examples of span might include remote procedure calls or a
2903
- * in-process function calls to sub-components. A Trace has a single, top-level
2904
- * "root" Span that in turn may have zero or more child Spans, which in turn
2905
- * may have children.
2906
- *
2907
- * Spans are created by the {@link Tracer.startSpan} method.
2908
- */
2909
- declare interface Span {
2910
- /**
2911
- * Returns the {@link SpanContext} object associated with this Span.
2912
- *
2913
- * Get an immutable, serializable identifier for this span that can be used
2914
- * to create new child spans. Returned SpanContext is usable even after the
2915
- * span ends.
2916
- *
2917
- * @returns the SpanContext object associated with this Span.
2918
- */
2919
- spanContext(): SpanContext;
2920
- /**
2921
- * Sets an attribute to the span.
2922
- *
2923
- * Sets a single Attribute with the key and value passed as arguments.
2924
- *
2925
- * @param key the key for this attribute.
2926
- * @param value the value for this attribute. Setting a value null or
2927
- * undefined is invalid and will result in undefined behavior.
2928
- */
2929
- setAttribute(key: string, value: SpanAttributeValue): this;
2930
- /**
2931
- * Sets attributes to the span.
2932
- *
2933
- * @param attributes the attributes that will be added.
2934
- * null or undefined attribute values
2935
- * are invalid and will result in undefined behavior.
2936
- */
2937
- setAttributes(attributes: SpanAttributes): this;
2938
- /**
2939
- * Adds an event to the Span.
2940
- *
2941
- * @param name the name of the event.
2942
- * @param [attributesOrStartTime] the attributes that will be added; these are
2943
- * associated with this event. Can be also a start time
2944
- * if type is {@type TimeInput} and 3rd param is undefined
2945
- * @param [startTime] start time of the event.
2946
- */
2947
- addEvent(name: string, attributesOrStartTime?: SpanAttributes | TimeInput, startTime?: TimeInput): this;
2948
- /**
2949
- * Adds a single link to the span.
2950
- *
2951
- * Links added after the creation will not affect the sampling decision.
2952
- * It is preferred span links be added at span creation.
2953
- *
2954
- * @param link the link to add.
2955
- */
2956
- addLink(link: Link): this;
2957
- /**
2958
- * Adds multiple links to the span.
2959
- *
2960
- * Links added after the creation will not affect the sampling decision.
2961
- * It is preferred span links be added at span creation.
2962
- *
2963
- * @param links the links to add.
2964
- */
2965
- addLinks(links: Link[]): this;
2966
- /**
2967
- * Sets a status to the span. If used, this will override the default Span
2968
- * status. Default is {@link SpanStatusCode.UNSET}. SetStatus overrides the value
2969
- * of previous calls to SetStatus on the Span.
2970
- *
2971
- * @param status the SpanStatus to set.
2972
- */
2973
- setStatus(status: SpanStatus): this;
2974
- /**
2975
- * Updates the Span name.
2976
- *
2977
- * This will override the name provided via {@link Tracer.startSpan}.
2978
- *
2979
- * Upon this update, any sampling behavior based on Span name will depend on
2980
- * the implementation.
2981
- *
2982
- * @param name the Span name.
2983
- */
2984
- updateName(name: string): this;
2985
- /**
2986
- * Marks the end of Span execution.
2987
- *
2988
- * Call to End of a Span MUST not have any effects on child spans. Those may
2989
- * still be running and can be ended later.
2990
- *
2991
- * Do not return `this`. The Span generally should not be used after it
2992
- * is ended so chaining is not desired in this context.
2993
- *
2994
- * @param [endTime] the time to set as Span's end time. If not provided,
2995
- * use the current time as the span's end time.
2996
- */
2997
- end(endTime?: TimeInput): void;
2998
- /**
2999
- * Returns the flag whether this span will be recorded.
3000
- *
3001
- * @returns true if this Span is active and recording information like events
3002
- * with the `AddEvent` operation and attributes using `setAttributes`.
3003
- */
3004
- isRecording(): boolean;
3005
- /**
3006
- * Sets exception as a span event
3007
- * @param exception the exception the only accepted values are string or Error
3008
- * @param [time] the time to set as Span's event time. If not provided,
3009
- * use the current time.
3010
- */
3011
- recordException(exception: Exception, time?: TimeInput): void;
3012
- }
3013
-
3014
- /**
3015
- * @deprecated please use {@link Attributes}
3016
- */
3017
- declare type SpanAttributes = Attributes;
3018
-
3019
- /**
3020
- * @deprecated please use {@link AttributeValue}
3021
- */
3022
- declare type SpanAttributeValue = AttributeValue;
3023
-
3024
- declare type SpanCallback<R> = (span?: Span, context?: Context) => R;
3025
-
3026
- /**
3027
- * A SpanContext represents the portion of a {@link Span} which must be
3028
- * serialized and propagated along side of a {@link Baggage}.
3029
- */
3030
- declare interface SpanContext {
3031
- /**
3032
- * The ID of the trace that this span belongs to. It is worldwide unique
3033
- * with practically sufficient probability by being made as 16 randomly
3034
- * generated bytes, encoded as a 32 lowercase hex characters corresponding to
3035
- * 128 bits.
3036
- */
3037
- traceId: string;
3038
- /**
3039
- * The ID of the Span. It is globally unique with practically sufficient
3040
- * probability by being made as 8 randomly generated bytes, encoded as a 16
3041
- * lowercase hex characters corresponding to 64 bits.
3042
- */
3043
- spanId: string;
3044
- /**
3045
- * Only true if the SpanContext was propagated from a remote parent.
3046
- */
3047
- isRemote?: boolean;
3048
- /**
3049
- * Trace flags to propagate.
3050
- *
3051
- * It is represented as 1 byte (bitmap). Bit to represent whether trace is
3052
- * sampled or not. When set, the least significant bit documents that the
3053
- * caller may have recorded trace data. A caller who does not record trace
3054
- * data out-of-band leaves this flag unset.
3055
- *
3056
- * see {@link TraceFlags} for valid flag values.
3057
- */
3058
- traceFlags: number;
3059
- /**
3060
- * Tracing-system-specific info to propagate.
3061
- *
3062
- * The tracestate field value is a `list` as defined below. The `list` is a
3063
- * series of `list-members` separated by commas `,`, and a list-member is a
3064
- * key/value pair separated by an equals sign `=`. Spaces and horizontal tabs
3065
- * surrounding `list-members` are ignored. There can be a maximum of 32
3066
- * `list-members` in a `list`.
3067
- * More Info: https://www.w3.org/TR/trace-context/#tracestate-field
3068
- *
3069
- * Examples:
3070
- * Single tracing system (generic format):
3071
- * tracestate: rojo=00f067aa0ba902b7
3072
- * Multiple tracing systems (with different formatting):
3073
- * tracestate: rojo=00f067aa0ba902b7,congo=t61rcWkgMzE
3074
- */
3075
- traceState?: TraceState;
3076
- }
3077
-
3078
- declare enum SpanKind {
3079
- /** Default value. Indicates that the span is used internally. */
3080
- INTERNAL = 0,
3081
- /**
3082
- * Indicates that the span covers server-side handling of an RPC or other
3083
- * remote request.
3084
- */
3085
- SERVER = 1,
3086
- /**
3087
- * Indicates that the span covers the client-side wrapper around an RPC or
3088
- * other remote request.
3089
- */
3090
- CLIENT = 2,
3091
- /**
3092
- * Indicates that the span describes producer sending a message to a
3093
- * broker. Unlike client and server, there is no direct critical path latency
3094
- * relationship between producer and consumer spans.
3095
- */
3096
- PRODUCER = 3,
3097
- /**
3098
- * Indicates that the span describes consumer receiving a message from a
3099
- * broker. Unlike client and server, there is no direct critical path latency
3100
- * relationship between producer and consumer spans.
3101
- */
3102
- CONSUMER = 4
3103
- }
3104
-
3105
- /**
3106
- * Options needed for span creation
3107
- */
3108
- declare interface SpanOptions {
3109
- /**
3110
- * The SpanKind of a span
3111
- * @default {@link SpanKind.INTERNAL}
3112
- */
3113
- kind?: SpanKind;
3114
- /** A span's attributes */
3115
- attributes?: SpanAttributes;
3116
- /** {@link Link}s span to other spans */
3117
- links?: Link[];
3118
- /** A manually specified start time for the created `Span` object. */
3119
- startTime?: TimeInput;
3120
- /** The new span should be a root span. (Ignore parent from context). */
3121
- root?: boolean;
3122
- }
3123
-
3124
- declare interface SpanStatus {
3125
- /** The status code of this message. */
3126
- code: SpanStatusCode;
3127
- /** A developer-facing error message. */
3128
- message?: string;
3129
- }
3130
-
3131
- /**
3132
- * An enumeration of status codes.
3133
- */
3134
- declare enum SpanStatusCode {
3135
- /**
3136
- * The default status.
3137
- */
3138
- UNSET = 0,
3139
- /**
3140
- * The operation has been validated by an Application developer or
3141
- * Operator to have completed successfully.
3142
- */
3143
- OK = 1,
3144
- /**
3145
- * The operation contains an error.
3146
- */
3147
- ERROR = 2
3148
- }
3149
-
3150
- /**
3151
- * A SQL instance can be nested within each other to build SQL strings.
3152
- */
3153
- export declare class Sql {
3154
- readonly values: Value[];
3155
- readonly strings: string[];
3156
- constructor(rawStrings: readonly string[], rawValues: readonly RawValue[]);
3157
- get sql(): string;
3158
- get statement(): string;
3159
- get text(): string;
3160
- inspect(): {
3161
- sql: string;
3162
- statement: string;
3163
- text: string;
3164
- values: unknown[];
3165
- };
3166
- }
3167
-
3168
- /**
3169
- * Create a SQL object from a template string.
3170
- */
3171
- export declare function sqltag(strings: readonly string[], ...values: readonly RawValue[]): Sql;
3172
-
3173
- /**
3174
- * Defines TimeInput.
3175
- *
3176
- * hrtime, epoch milliseconds, performance.now() or Date
3177
- */
3178
- declare type TimeInput = HrTime | number | Date;
3179
-
3180
- export declare type ToTuple<T> = T extends any[] ? T : [T];
3181
-
3182
- declare interface TraceState {
3183
- /**
3184
- * Create a new TraceState which inherits from this TraceState and has the
3185
- * given key set.
3186
- * The new entry will always be added in the front of the list of states.
3187
- *
3188
- * @param key key of the TraceState entry.
3189
- * @param value value of the TraceState entry.
3190
- */
3191
- set(key: string, value: string): TraceState;
3192
- /**
3193
- * Return a new TraceState which inherits from this TraceState but does not
3194
- * contain the given key.
3195
- *
3196
- * @param key the key for the TraceState entry to be removed.
3197
- */
3198
- unset(key: string): TraceState;
3199
- /**
3200
- * Returns the value to which the specified key is mapped, or `undefined` if
3201
- * this map contains no mapping for the key.
3202
- *
3203
- * @param key with which the specified value is to be associated.
3204
- * @returns the value to which the specified key is mapped, or `undefined` if
3205
- * this map contains no mapping for the key.
3206
- */
3207
- get(key: string): string | undefined;
3208
- /**
3209
- * Serializes the TraceState to a `list` as defined below. The `list` is a
3210
- * series of `list-members` separated by commas `,`, and a list-member is a
3211
- * key/value pair separated by an equals sign `=`. Spaces and horizontal tabs
3212
- * surrounding `list-members` are ignored. There can be a maximum of 32
3213
- * `list-members` in a `list`.
3214
- *
3215
- * @returns the serialized string.
3216
- */
3217
- serialize(): string;
3218
- }
3219
-
3220
- declare interface TracingHelper {
3221
- isEnabled(): boolean;
3222
- getTraceParent(context?: Context): string;
3223
- createEngineSpan(engineSpanEvent: EngineSpanEvent): void;
3224
- getActiveContext(): Context | undefined;
3225
- runInChildSpan<R>(nameOrOptions: string | ExtendedSpanOptions, callback: SpanCallback<R>): R;
3226
- }
3227
-
3228
- declare interface Transaction extends Queryable {
3229
- /**
3230
- * Transaction options.
3231
- */
3232
- readonly options: TransactionOptions;
3233
- /**
3234
- * Commit the transaction.
3235
- */
3236
- commit(): Promise<Result_4<void>>;
3237
- /**
3238
- * Rolls back the transaction.
3239
- */
3240
- rollback(): Promise<Result_4<void>>;
3241
- }
3242
-
3243
- declare namespace Transaction_2 {
3244
- export {
3245
- IsolationLevel,
3246
- Options,
3247
- InteractiveTransactionInfo,
3248
- TransactionHeaders
3249
- }
3250
- }
3251
-
3252
- declare interface TransactionContext extends Queryable {
3253
- /**
3254
- * Starts new transaction.
3255
- */
3256
- startTransaction(): Promise<Result_4<Transaction>>;
3257
- }
3258
-
3259
- declare type TransactionHeaders = {
3260
- traceparent?: string;
3261
- };
3262
-
3263
- declare type TransactionOptions = {
3264
- usePhantomQuery: boolean;
3265
- };
3266
-
3267
- declare type TransactionOptions_2<InteractiveTransactionPayload> = {
3268
- kind: 'itx';
3269
- options: InteractiveTransactionOptions<InteractiveTransactionPayload>;
3270
- } | {
3271
- kind: 'batch';
3272
- options: BatchTransactionOptions;
3273
- };
3274
-
3275
- export declare class TypedSql<Values extends readonly unknown[], Result> {
3276
- [PrivateResultType]: Result;
3277
- constructor(sql: string, values: Values);
3278
- get sql(): string;
3279
- get values(): Values;
3280
- }
3281
-
3282
- export declare type TypeMapCbDef = Fn<{
3283
- extArgs: InternalArgs;
3284
- clientOptions: ClientOptionDef;
3285
- }, TypeMapDef>;
3286
-
3287
- /** Shared */
3288
- export declare type TypeMapDef = Record<any, any>;
3289
-
3290
- declare namespace Types {
3291
- export {
3292
- Result_3 as Result,
3293
- Extensions_2 as Extensions,
3294
- Utils,
3295
- Public_2 as Public,
3296
- isSkip,
3297
- Skip,
3298
- skip,
3299
- UnknownTypedSql,
3300
- OperationPayload as Payload
3301
- }
3302
- }
3303
- export { Types }
3304
-
3305
- declare type UnknownErrorParams = {
3306
- clientVersion: string;
3307
- batchRequestIdx?: number;
3308
- };
3309
-
3310
- export declare type UnknownTypedSql = TypedSql<unknown[], unknown>;
3311
-
3312
- declare type Unpacker = (data: any) => any;
3313
-
3314
- export declare type UnwrapPayload<P> = {} extends P ? unknown : {
3315
- [K in keyof P]: P[K] extends {
3316
- scalars: infer S;
3317
- composites: infer C;
3318
- }[] ? Array<S & UnwrapPayload<C>> : P[K] extends {
3319
- scalars: infer S;
3320
- composites: infer C;
3321
- } | null ? S & UnwrapPayload<C> | Select<P[K], null> : never;
3322
- };
3323
-
3324
- export declare type UnwrapPromise<P> = P extends Promise<infer R> ? R : P;
3325
-
3326
- export declare type UnwrapTuple<Tuple extends readonly unknown[]> = {
3327
- [K in keyof Tuple]: K extends `${number}` ? Tuple[K] extends PrismaPromise<infer X> ? X : UnwrapPromise<Tuple[K]> : UnwrapPromise<Tuple[K]>;
3328
- };
3329
-
3330
- /**
3331
- * Input that flows from the user into the Client.
3332
- */
3333
- declare type UserArgs_2 = any;
3334
-
3335
- declare namespace Utils {
3336
- export {
3337
- EmptyToUnknown,
3338
- NeverToUnknown,
3339
- PatchFlat,
3340
- Omit_2 as Omit,
3341
- Pick_2 as Pick,
3342
- ComputeDeep,
3343
- Compute,
3344
- OptionalFlat,
3345
- ReadonlyDeep,
3346
- Narrowable,
3347
- Narrow,
3348
- Exact,
3349
- Cast,
3350
- Record_2 as Record,
3351
- UnwrapPromise,
3352
- UnwrapTuple,
3353
- Path,
3354
- Fn,
3355
- Call,
3356
- RequiredKeys,
3357
- OptionalKeys,
3358
- Optional,
3359
- Return,
3360
- ToTuple,
3361
- RenameAndNestPayloadKeys,
3362
- PayloadToResult,
3363
- Select,
3364
- Equals,
3365
- Or,
3366
- JsPromise
3367
- }
3368
- }
3369
-
3370
- declare function validator<V>(): <S>(select: Exact<S, V>) => S;
3371
-
3372
- declare function validator<C, M extends Exclude<keyof C, `$${string}`>, O extends keyof C[M] & Operation>(client: C, model: M, operation: O): <S>(select: Exact<S, Args<C[M], O>>) => S;
3373
-
3374
- declare function validator<C, M extends Exclude<keyof C, `$${string}`>, O extends keyof C[M] & Operation, P extends keyof Args<C[M], O>>(client: C, model: M, operation: O, prop: P): <S>(select: Exact<S, Args<C[M], O>[P]>) => S;
3375
-
3376
- /**
3377
- * Values supported by SQL engine.
3378
- */
3379
- export declare type Value = unknown;
3380
-
3381
- export declare function warnEnvConflicts(envPaths: any): void;
3382
-
3383
- export declare const warnOnce: (key: string, message: string, ...args: unknown[]) => void;
3384
-
3385
- declare type WasmLoadingConfig = {
3386
- /**
3387
- * WASM-bindgen runtime for corresponding module
3388
- */
3389
- getRuntime: () => {
3390
- __wbg_set_wasm(exports: unknown): any;
3391
- QueryEngine: QueryEngineConstructor;
3392
- };
3393
- /**
3394
- * Loads the raw wasm module for the wasm query engine. This configuration is
3395
- * generated specifically for each type of client, eg. Node.js client and Edge
3396
- * clients will have different implementations.
3397
- * @remarks this is a callback on purpose, we only load the wasm if needed.
3398
- * @remarks only used by LibraryEngine.ts
3399
- */
3400
- getQueryEngineWasmModule: () => Promise<unknown>;
3401
- };
3402
-
3403
- export { }