@inversifyjs/http-insights 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/.prettierignore +1 -0
  2. package/LICENSE +21 -0
  3. package/lib/foundation/db/adapter/inversify/modules/DbContainerModule.d.ts +6 -0
  4. package/lib/foundation/db/adapter/inversify/modules/DbContainerModule.d.ts.map +1 -0
  5. package/lib/foundation/db/adapter/inversify/modules/DbContainerModule.js +28 -0
  6. package/lib/foundation/db/adapter/inversify/modules/DbContainerModule.js.map +1 -0
  7. package/lib/foundation/db/models/databaseUrl.d.ts +2 -0
  8. package/lib/foundation/db/models/databaseUrl.d.ts.map +1 -0
  9. package/lib/foundation/db/models/databaseUrl.js +2 -0
  10. package/lib/foundation/db/models/databaseUrl.js.map +1 -0
  11. package/lib/foundation/inversify/pipes/standardSchemaValidationPipe.d.ts +3 -0
  12. package/lib/foundation/inversify/pipes/standardSchemaValidationPipe.d.ts.map +1 -0
  13. package/lib/foundation/inversify/pipes/standardSchemaValidationPipe.js +3 -0
  14. package/lib/foundation/inversify/pipes/standardSchemaValidationPipe.js.map +1 -0
  15. package/lib/foundation/modules/Builder.d.ts +4 -0
  16. package/lib/foundation/modules/Builder.d.ts.map +1 -0
  17. package/lib/foundation/modules/Builder.js +2 -0
  18. package/lib/foundation/modules/Builder.js.map +1 -0
  19. package/lib/generated/prisma/browser.d.ts +55 -0
  20. package/lib/generated/prisma/browser.d.ts.map +1 -0
  21. package/lib/generated/prisma/browser.js +18 -0
  22. package/lib/generated/prisma/browser.js.map +1 -0
  23. package/lib/generated/prisma/client.d.ts +74 -0
  24. package/lib/generated/prisma/client.d.ts.map +1 -0
  25. package/lib/generated/prisma/client.js +35 -0
  26. package/lib/generated/prisma/client.js.map +1 -0
  27. package/lib/generated/prisma/commonInputTypes.d.ts +361 -0
  28. package/lib/generated/prisma/commonInputTypes.d.ts.map +1 -0
  29. package/lib/generated/prisma/commonInputTypes.js +11 -0
  30. package/lib/generated/prisma/commonInputTypes.js.map +1 -0
  31. package/lib/generated/prisma/enums.d.ts +2 -0
  32. package/lib/generated/prisma/enums.d.ts.map +1 -0
  33. package/lib/generated/prisma/enums.js +11 -0
  34. package/lib/generated/prisma/enums.js.map +1 -0
  35. package/lib/generated/prisma/internal/class.d.ts +232 -0
  36. package/lib/generated/prisma/internal/class.d.ts.map +1 -0
  37. package/lib/generated/prisma/internal/class.js +52 -0
  38. package/lib/generated/prisma/internal/class.js.map +1 -0
  39. package/lib/generated/prisma/internal/prismaNamespace.d.ts +1398 -0
  40. package/lib/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
  41. package/lib/generated/prisma/internal/prismaNamespace.js +212 -0
  42. package/lib/generated/prisma/internal/prismaNamespace.js.map +1 -0
  43. package/lib/generated/prisma/internal/prismaNamespaceBrowser.d.ts +185 -0
  44. package/lib/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -0
  45. package/lib/generated/prisma/internal/prismaNamespaceBrowser.js +183 -0
  46. package/lib/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
  47. package/lib/generated/prisma/models/Call.d.ts +2045 -0
  48. package/lib/generated/prisma/models/Call.d.ts.map +1 -0
  49. package/lib/generated/prisma/models/Call.js +2 -0
  50. package/lib/generated/prisma/models/Call.js.map +1 -0
  51. package/lib/generated/prisma/models/Controller.d.ts +1252 -0
  52. package/lib/generated/prisma/models/Controller.d.ts.map +1 -0
  53. package/lib/generated/prisma/models/Controller.js +2 -0
  54. package/lib/generated/prisma/models/Controller.js.map +1 -0
  55. package/lib/generated/prisma/models/Guard.d.ts +1310 -0
  56. package/lib/generated/prisma/models/Guard.d.ts.map +1 -0
  57. package/lib/generated/prisma/models/Guard.js +2 -0
  58. package/lib/generated/prisma/models/Guard.js.map +1 -0
  59. package/lib/generated/prisma/models/HttpError.d.ts +1275 -0
  60. package/lib/generated/prisma/models/HttpError.d.ts.map +1 -0
  61. package/lib/generated/prisma/models/HttpError.js +2 -0
  62. package/lib/generated/prisma/models/HttpError.js.map +1 -0
  63. package/lib/generated/prisma/models/Interceptor.d.ts +1272 -0
  64. package/lib/generated/prisma/models/Interceptor.d.ts.map +1 -0
  65. package/lib/generated/prisma/models/Interceptor.js +2 -0
  66. package/lib/generated/prisma/models/Interceptor.js.map +1 -0
  67. package/lib/generated/prisma/models/Middleware.d.ts +1307 -0
  68. package/lib/generated/prisma/models/Middleware.d.ts.map +1 -0
  69. package/lib/generated/prisma/models/Middleware.js +2 -0
  70. package/lib/generated/prisma/models/Middleware.js.map +1 -0
  71. package/lib/generated/prisma/models/NativeMiddleware.d.ts +1272 -0
  72. package/lib/generated/prisma/models/NativeMiddleware.d.ts.map +1 -0
  73. package/lib/generated/prisma/models/NativeMiddleware.js +2 -0
  74. package/lib/generated/prisma/models/NativeMiddleware.js.map +1 -0
  75. package/lib/generated/prisma/models/Pipe.d.ts +1387 -0
  76. package/lib/generated/prisma/models/Pipe.d.ts.map +1 -0
  77. package/lib/generated/prisma/models/Pipe.js +2 -0
  78. package/lib/generated/prisma/models/Pipe.js.map +1 -0
  79. package/lib/generated/prisma/models/Request.d.ts +1220 -0
  80. package/lib/generated/prisma/models/Request.d.ts.map +1 -0
  81. package/lib/generated/prisma/models/Request.js +2 -0
  82. package/lib/generated/prisma/models/Request.js.map +1 -0
  83. package/lib/generated/prisma/models/Response.d.ts +1261 -0
  84. package/lib/generated/prisma/models/Response.d.ts.map +1 -0
  85. package/lib/generated/prisma/models/Response.js +2 -0
  86. package/lib/generated/prisma/models/Response.js.map +1 -0
  87. package/lib/generated/prisma/models.d.ts +12 -0
  88. package/lib/generated/prisma/models.d.ts.map +1 -0
  89. package/lib/generated/prisma/models.js +2 -0
  90. package/lib/generated/prisma/models.js.map +1 -0
  91. package/lib/generated/prisma-migrate/index.d.ts +6 -0
  92. package/lib/generated/prisma-migrate/index.d.ts.map +1 -0
  93. package/lib/generated/prisma-migrate/index.js +27 -0
  94. package/lib/generated/prisma-migrate/index.js.map +1 -0
  95. package/lib/index.d.ts +2 -0
  96. package/lib/index.d.ts.map +1 -0
  97. package/lib/index.js +2 -0
  98. package/lib/index.js.map +1 -0
  99. package/lib/insights/adapter/inversify/builders/CallsFindQueryFromCallIdBuilder.d.ts +6 -0
  100. package/lib/insights/adapter/inversify/builders/CallsFindQueryFromCallIdBuilder.d.ts.map +1 -0
  101. package/lib/insights/adapter/inversify/builders/CallsFindQueryFromCallIdBuilder.js +32 -0
  102. package/lib/insights/adapter/inversify/builders/CallsFindQueryFromCallIdBuilder.js.map +1 -0
  103. package/lib/insights/adapter/inversify/calculations/buildHttpInsightsUiFileResponse.d.ts +3 -0
  104. package/lib/insights/adapter/inversify/calculations/buildHttpInsightsUiFileResponse.d.ts.map +1 -0
  105. package/lib/insights/adapter/inversify/calculations/buildHttpInsightsUiFileResponse.js +19 -0
  106. package/lib/insights/adapter/inversify/calculations/buildHttpInsightsUiFileResponse.js.map +1 -0
  107. package/lib/insights/adapter/inversify/controllers/CallsController.d.ts +14 -0
  108. package/lib/insights/adapter/inversify/controllers/CallsController.d.ts.map +1 -0
  109. package/lib/insights/adapter/inversify/controllers/CallsController.js +72 -0
  110. package/lib/insights/adapter/inversify/controllers/CallsController.js.map +1 -0
  111. package/lib/insights/adapter/inversify/controllers/InsightsUiController.d.ts +7 -0
  112. package/lib/insights/adapter/inversify/controllers/InsightsUiController.d.ts.map +1 -0
  113. package/lib/insights/adapter/inversify/controllers/InsightsUiController.js +54 -0
  114. package/lib/insights/adapter/inversify/controllers/InsightsUiController.js.map +1 -0
  115. package/lib/insights/adapter/inversify/modules/InsightsContainerModule.d.ts +5 -0
  116. package/lib/insights/adapter/inversify/modules/InsightsContainerModule.d.ts.map +1 -0
  117. package/lib/insights/adapter/inversify/modules/InsightsContainerModule.js +65 -0
  118. package/lib/insights/adapter/inversify/modules/InsightsContainerModule.js.map +1 -0
  119. package/lib/insights/adapter/inversify/services/HttpInsightsProvider.d.ts +9 -0
  120. package/lib/insights/adapter/inversify/services/HttpInsightsProvider.d.ts.map +1 -0
  121. package/lib/insights/adapter/inversify/services/HttpInsightsProvider.js +27 -0
  122. package/lib/insights/adapter/inversify/services/HttpInsightsProvider.js.map +1 -0
  123. package/lib/insights/adapter/prisma/adapters/PrismaInsightsPersistenceAdapter.d.ts +17 -0
  124. package/lib/insights/adapter/prisma/adapters/PrismaInsightsPersistenceAdapter.d.ts.map +1 -0
  125. package/lib/insights/adapter/prisma/adapters/PrismaInsightsPersistenceAdapter.js +416 -0
  126. package/lib/insights/adapter/prisma/adapters/PrismaInsightsPersistenceAdapter.js.map +1 -0
  127. package/lib/insights/adapter/prisma/builders/CallFromPrismaCallBuilder.d.ts +58 -0
  128. package/lib/insights/adapter/prisma/builders/CallFromPrismaCallBuilder.d.ts.map +1 -0
  129. package/lib/insights/adapter/prisma/builders/CallFromPrismaCallBuilder.js +124 -0
  130. package/lib/insights/adapter/prisma/builders/CallFromPrismaCallBuilder.js.map +1 -0
  131. package/lib/insights/adapter/prisma/builders/ControllerFromPrismaControllerBuilder.d.ts +7 -0
  132. package/lib/insights/adapter/prisma/builders/ControllerFromPrismaControllerBuilder.d.ts.map +1 -0
  133. package/lib/insights/adapter/prisma/builders/ControllerFromPrismaControllerBuilder.js +24 -0
  134. package/lib/insights/adapter/prisma/builders/ControllerFromPrismaControllerBuilder.js.map +1 -0
  135. package/lib/insights/adapter/prisma/builders/GuardFromPrismaGuardBuilder.d.ts +7 -0
  136. package/lib/insights/adapter/prisma/builders/GuardFromPrismaGuardBuilder.d.ts.map +1 -0
  137. package/lib/insights/adapter/prisma/builders/GuardFromPrismaGuardBuilder.js +24 -0
  138. package/lib/insights/adapter/prisma/builders/GuardFromPrismaGuardBuilder.js.map +1 -0
  139. package/lib/insights/adapter/prisma/builders/HttpErrorFromPrismaHttpErrorBuilder.d.ts +7 -0
  140. package/lib/insights/adapter/prisma/builders/HttpErrorFromPrismaHttpErrorBuilder.d.ts.map +1 -0
  141. package/lib/insights/adapter/prisma/builders/HttpErrorFromPrismaHttpErrorBuilder.js +23 -0
  142. package/lib/insights/adapter/prisma/builders/HttpErrorFromPrismaHttpErrorBuilder.js.map +1 -0
  143. package/lib/insights/adapter/prisma/builders/InterceptorFromPrismaInterceptorBuilder.d.ts +7 -0
  144. package/lib/insights/adapter/prisma/builders/InterceptorFromPrismaInterceptorBuilder.d.ts.map +1 -0
  145. package/lib/insights/adapter/prisma/builders/InterceptorFromPrismaInterceptorBuilder.js +23 -0
  146. package/lib/insights/adapter/prisma/builders/InterceptorFromPrismaInterceptorBuilder.js.map +1 -0
  147. package/lib/insights/adapter/prisma/builders/MiddlewareFromPrismaMiddlewareBuilder.d.ts +8 -0
  148. package/lib/insights/adapter/prisma/builders/MiddlewareFromPrismaMiddlewareBuilder.d.ts.map +1 -0
  149. package/lib/insights/adapter/prisma/builders/MiddlewareFromPrismaMiddlewareBuilder.js +35 -0
  150. package/lib/insights/adapter/prisma/builders/MiddlewareFromPrismaMiddlewareBuilder.js.map +1 -0
  151. package/lib/insights/adapter/prisma/builders/NativeMiddlewareFromPrismaNativeMiddlewareBuilder.d.ts +7 -0
  152. package/lib/insights/adapter/prisma/builders/NativeMiddlewareFromPrismaNativeMiddlewareBuilder.d.ts.map +1 -0
  153. package/lib/insights/adapter/prisma/builders/NativeMiddlewareFromPrismaNativeMiddlewareBuilder.js +23 -0
  154. package/lib/insights/adapter/prisma/builders/NativeMiddlewareFromPrismaNativeMiddlewareBuilder.js.map +1 -0
  155. package/lib/insights/adapter/prisma/builders/PipeFromPrismaPipeBuilder.d.ts +7 -0
  156. package/lib/insights/adapter/prisma/builders/PipeFromPrismaPipeBuilder.d.ts.map +1 -0
  157. package/lib/insights/adapter/prisma/builders/PipeFromPrismaPipeBuilder.js +25 -0
  158. package/lib/insights/adapter/prisma/builders/PipeFromPrismaPipeBuilder.js.map +1 -0
  159. package/lib/insights/adapter/prisma/builders/RequestFromPrismaRequestBuilder.d.ts +7 -0
  160. package/lib/insights/adapter/prisma/builders/RequestFromPrismaRequestBuilder.d.ts.map +1 -0
  161. package/lib/insights/adapter/prisma/builders/RequestFromPrismaRequestBuilder.js +23 -0
  162. package/lib/insights/adapter/prisma/builders/RequestFromPrismaRequestBuilder.js.map +1 -0
  163. package/lib/insights/adapter/prisma/builders/ResponseFromPrismaResponseBuilder.d.ts +7 -0
  164. package/lib/insights/adapter/prisma/builders/ResponseFromPrismaResponseBuilder.d.ts.map +1 -0
  165. package/lib/insights/adapter/prisma/builders/ResponseFromPrismaResponseBuilder.js +23 -0
  166. package/lib/insights/adapter/prisma/builders/ResponseFromPrismaResponseBuilder.js.map +1 -0
  167. package/lib/insights/adapter/zod/builders/CallsFindQueryFromGetInsightsV1QueryBuilder.d.ts +7 -0
  168. package/lib/insights/adapter/zod/builders/CallsFindQueryFromGetInsightsV1QueryBuilder.d.ts.map +1 -0
  169. package/lib/insights/adapter/zod/builders/CallsFindQueryFromGetInsightsV1QueryBuilder.js +33 -0
  170. package/lib/insights/adapter/zod/builders/CallsFindQueryFromGetInsightsV1QueryBuilder.js.map +1 -0
  171. package/lib/insights/adapter/zod/schemas/GetCallsV1Query.d.ts +14 -0
  172. package/lib/insights/adapter/zod/schemas/GetCallsV1Query.d.ts.map +1 -0
  173. package/lib/insights/adapter/zod/schemas/GetCallsV1Query.js +21 -0
  174. package/lib/insights/adapter/zod/schemas/GetCallsV1Query.js.map +1 -0
  175. package/lib/insights/application/models/CallsFilterQuery.d.ts +20 -0
  176. package/lib/insights/application/models/CallsFilterQuery.d.ts.map +1 -0
  177. package/lib/insights/application/models/CallsFilterQuery.js +2 -0
  178. package/lib/insights/application/models/CallsFilterQuery.js.map +1 -0
  179. package/lib/insights/application/models/CallsFindQuery.d.ts +14 -0
  180. package/lib/insights/application/models/CallsFindQuery.d.ts.map +1 -0
  181. package/lib/insights/application/models/CallsFindQuery.js +2 -0
  182. package/lib/insights/application/models/CallsFindQuery.js.map +1 -0
  183. package/lib/insights/application/models/CallsFindQueryResult.d.ts +6 -0
  184. package/lib/insights/application/models/CallsFindQueryResult.d.ts.map +1 -0
  185. package/lib/insights/application/models/CallsFindQueryResult.js +2 -0
  186. package/lib/insights/application/models/CallsFindQueryResult.js.map +1 -0
  187. package/lib/insights/application/models/CallsSetQuery.d.ts +5 -0
  188. package/lib/insights/application/models/CallsSetQuery.d.ts.map +1 -0
  189. package/lib/insights/application/models/CallsSetQuery.js +2 -0
  190. package/lib/insights/application/models/CallsSetQuery.js.map +1 -0
  191. package/lib/insights/application/models/ExecuteUpdateCommand.d.ts +7 -0
  192. package/lib/insights/application/models/ExecuteUpdateCommand.d.ts.map +1 -0
  193. package/lib/insights/application/models/ExecuteUpdateCommand.js +2 -0
  194. package/lib/insights/application/models/ExecuteUpdateCommand.js.map +1 -0
  195. package/lib/insights/application/models/OngoingCallsFindQueryResult.d.ts +6 -0
  196. package/lib/insights/application/models/OngoingCallsFindQueryResult.d.ts.map +1 -0
  197. package/lib/insights/application/models/OngoingCallsFindQueryResult.js +2 -0
  198. package/lib/insights/application/models/OngoingCallsFindQueryResult.js.map +1 -0
  199. package/lib/insights/application/ports/CallManagementInputPort.d.ts +15 -0
  200. package/lib/insights/application/ports/CallManagementInputPort.d.ts.map +1 -0
  201. package/lib/insights/application/ports/CallManagementInputPort.js +47 -0
  202. package/lib/insights/application/ports/CallManagementInputPort.js.map +1 -0
  203. package/lib/insights/application/ports/CallPersistenceOutputPort.d.ts +13 -0
  204. package/lib/insights/application/ports/CallPersistenceOutputPort.d.ts.map +1 -0
  205. package/lib/insights/application/ports/CallPersistenceOutputPort.js +2 -0
  206. package/lib/insights/application/ports/CallPersistenceOutputPort.js.map +1 -0
  207. package/lib/insights/domain/models/BaseCall.d.ts +20 -0
  208. package/lib/insights/domain/models/BaseCall.d.ts.map +1 -0
  209. package/lib/insights/domain/models/BaseCall.js +2 -0
  210. package/lib/insights/domain/models/BaseCall.js.map +1 -0
  211. package/lib/insights/domain/models/Call.d.ts +6 -0
  212. package/lib/insights/domain/models/Call.d.ts.map +1 -0
  213. package/lib/insights/domain/models/Call.js +2 -0
  214. package/lib/insights/domain/models/Call.js.map +1 -0
  215. package/lib/insights/domain/models/Controller.d.ts +9 -0
  216. package/lib/insights/domain/models/Controller.d.ts.map +1 -0
  217. package/lib/insights/domain/models/Controller.js +2 -0
  218. package/lib/insights/domain/models/Controller.js.map +1 -0
  219. package/lib/insights/domain/models/Guard.d.ts +9 -0
  220. package/lib/insights/domain/models/Guard.d.ts.map +1 -0
  221. package/lib/insights/domain/models/Guard.js +2 -0
  222. package/lib/insights/domain/models/Guard.js.map +1 -0
  223. package/lib/insights/domain/models/HttpError.d.ts +8 -0
  224. package/lib/insights/domain/models/HttpError.d.ts.map +1 -0
  225. package/lib/insights/domain/models/HttpError.js +2 -0
  226. package/lib/insights/domain/models/HttpError.js.map +1 -0
  227. package/lib/insights/domain/models/Interceptor.d.ts +8 -0
  228. package/lib/insights/domain/models/Interceptor.d.ts.map +1 -0
  229. package/lib/insights/domain/models/Interceptor.js +2 -0
  230. package/lib/insights/domain/models/Interceptor.js.map +1 -0
  231. package/lib/insights/domain/models/Middleware.d.ts +10 -0
  232. package/lib/insights/domain/models/Middleware.d.ts.map +1 -0
  233. package/lib/insights/domain/models/Middleware.js +2 -0
  234. package/lib/insights/domain/models/Middleware.js.map +1 -0
  235. package/lib/insights/domain/models/NativeMiddleware.d.ts +8 -0
  236. package/lib/insights/domain/models/NativeMiddleware.d.ts.map +1 -0
  237. package/lib/insights/domain/models/NativeMiddleware.js +2 -0
  238. package/lib/insights/domain/models/NativeMiddleware.js.map +1 -0
  239. package/lib/insights/domain/models/OngoingCall.d.ts +3 -0
  240. package/lib/insights/domain/models/OngoingCall.d.ts.map +1 -0
  241. package/lib/insights/domain/models/OngoingCall.js +2 -0
  242. package/lib/insights/domain/models/OngoingCall.js.map +1 -0
  243. package/lib/insights/domain/models/Pipe.d.ts +10 -0
  244. package/lib/insights/domain/models/Pipe.d.ts.map +1 -0
  245. package/lib/insights/domain/models/Pipe.js +2 -0
  246. package/lib/insights/domain/models/Pipe.js.map +1 -0
  247. package/lib/insights/domain/models/Request.d.ts +8 -0
  248. package/lib/insights/domain/models/Request.d.ts.map +1 -0
  249. package/lib/insights/domain/models/Request.js +2 -0
  250. package/lib/insights/domain/models/Request.js.map +1 -0
  251. package/lib/insights/domain/models/Response.d.ts +8 -0
  252. package/lib/insights/domain/models/Response.d.ts.map +1 -0
  253. package/lib/insights/domain/models/Response.js +2 -0
  254. package/lib/insights/domain/models/Response.js.map +1 -0
  255. package/lib/instrumentation/adapter/inversify/modules/InstrumentationContainerModule.d.ts +5 -0
  256. package/lib/instrumentation/adapter/inversify/modules/InstrumentationContainerModule.d.ts.map +1 -0
  257. package/lib/instrumentation/adapter/inversify/modules/InstrumentationContainerModule.js +10 -0
  258. package/lib/instrumentation/adapter/inversify/modules/InstrumentationContainerModule.js.map +1 -0
  259. package/lib/instrumentation/adapter/inversify/services/HttpInsightsEventSink.d.ts +11 -0
  260. package/lib/instrumentation/adapter/inversify/services/HttpInsightsEventSink.d.ts.map +1 -0
  261. package/lib/instrumentation/adapter/inversify/services/HttpInsightsEventSink.js +423 -0
  262. package/lib/instrumentation/adapter/inversify/services/HttpInsightsEventSink.js.map +1 -0
  263. package/lib/scripts/generatePrismaMigrate.d.ts +2 -0
  264. package/lib/scripts/generatePrismaMigrate.d.ts.map +1 -0
  265. package/lib/scripts/generatePrismaMigrate.js +63 -0
  266. package/lib/scripts/generatePrismaMigrate.js.map +1 -0
  267. package/package.json +83 -3
  268. package/prisma/migrations/20261018163227_init/migration.sql +164 -0
  269. package/prisma/migrations/20261022004000_rename_execution_to_call/migration.sql +161 -0
  270. package/prisma/migrations/migration_lock.toml +3 -0
  271. package/prisma/schema.prisma +157 -0
  272. package/turbo.json +87 -0
  273. package/README.md +0 -3
@@ -0,0 +1,1310 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model Guard
5
+ *
6
+ */
7
+ export type GuardModel = runtime.Types.Result.DefaultSelection<Prisma.$GuardPayload>;
8
+ export type AggregateGuard = {
9
+ _count: GuardCountAggregateOutputType | null;
10
+ _min: GuardMinAggregateOutputType | null;
11
+ _max: GuardMaxAggregateOutputType | null;
12
+ };
13
+ export type GuardMinAggregateOutputType = {
14
+ id: string | null;
15
+ guard: string | null;
16
+ allowed: boolean | null;
17
+ started_at: Date | null;
18
+ ended_at: Date | null;
19
+ call_id: string | null;
20
+ created_at: Date | null;
21
+ updated_at: Date | null;
22
+ };
23
+ export type GuardMaxAggregateOutputType = {
24
+ id: string | null;
25
+ guard: string | null;
26
+ allowed: boolean | null;
27
+ started_at: Date | null;
28
+ ended_at: Date | null;
29
+ call_id: string | null;
30
+ created_at: Date | null;
31
+ updated_at: Date | null;
32
+ };
33
+ export type GuardCountAggregateOutputType = {
34
+ id: number;
35
+ guard: number;
36
+ allowed: number;
37
+ error: number;
38
+ started_at: number;
39
+ ended_at: number;
40
+ call_id: number;
41
+ created_at: number;
42
+ updated_at: number;
43
+ _all: number;
44
+ };
45
+ export type GuardMinAggregateInputType = {
46
+ id?: true;
47
+ guard?: true;
48
+ allowed?: true;
49
+ started_at?: true;
50
+ ended_at?: true;
51
+ call_id?: true;
52
+ created_at?: true;
53
+ updated_at?: true;
54
+ };
55
+ export type GuardMaxAggregateInputType = {
56
+ id?: true;
57
+ guard?: true;
58
+ allowed?: true;
59
+ started_at?: true;
60
+ ended_at?: true;
61
+ call_id?: true;
62
+ created_at?: true;
63
+ updated_at?: true;
64
+ };
65
+ export type GuardCountAggregateInputType = {
66
+ id?: true;
67
+ guard?: true;
68
+ allowed?: true;
69
+ error?: true;
70
+ started_at?: true;
71
+ ended_at?: true;
72
+ call_id?: true;
73
+ created_at?: true;
74
+ updated_at?: true;
75
+ _all?: true;
76
+ };
77
+ export type GuardAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
78
+ /**
79
+ * Filter which Guard to aggregate.
80
+ */
81
+ where?: Prisma.GuardWhereInput;
82
+ /**
83
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
84
+ *
85
+ * Determine the order of Guards to fetch.
86
+ */
87
+ orderBy?: Prisma.GuardOrderByWithRelationInput | Prisma.GuardOrderByWithRelationInput[];
88
+ /**
89
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
90
+ *
91
+ * Sets the start position
92
+ */
93
+ cursor?: Prisma.GuardWhereUniqueInput;
94
+ /**
95
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
96
+ *
97
+ * Take `±n` Guards from the position of the cursor.
98
+ */
99
+ take?: number;
100
+ /**
101
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
102
+ *
103
+ * Skip the first `n` Guards.
104
+ */
105
+ skip?: number;
106
+ /**
107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
108
+ *
109
+ * Count returned Guards
110
+ **/
111
+ _count?: true | GuardCountAggregateInputType;
112
+ /**
113
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
114
+ *
115
+ * Select which fields to find the minimum value
116
+ **/
117
+ _min?: GuardMinAggregateInputType;
118
+ /**
119
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
120
+ *
121
+ * Select which fields to find the maximum value
122
+ **/
123
+ _max?: GuardMaxAggregateInputType;
124
+ };
125
+ export type GetGuardAggregateType<T extends GuardAggregateArgs> = {
126
+ [P in keyof T & keyof AggregateGuard]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateGuard[P]> : Prisma.GetScalarType<T[P], AggregateGuard[P]>;
127
+ };
128
+ export type GuardGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
129
+ where?: Prisma.GuardWhereInput;
130
+ orderBy?: Prisma.GuardOrderByWithAggregationInput | Prisma.GuardOrderByWithAggregationInput[];
131
+ by: Prisma.GuardScalarFieldEnum[] | Prisma.GuardScalarFieldEnum;
132
+ having?: Prisma.GuardScalarWhereWithAggregatesInput;
133
+ take?: number;
134
+ skip?: number;
135
+ _count?: GuardCountAggregateInputType | true;
136
+ _min?: GuardMinAggregateInputType;
137
+ _max?: GuardMaxAggregateInputType;
138
+ };
139
+ export type GuardGroupByOutputType = {
140
+ id: string;
141
+ guard: string;
142
+ allowed: boolean | null;
143
+ error: runtime.JsonValue | null;
144
+ started_at: Date;
145
+ ended_at: Date;
146
+ call_id: string;
147
+ created_at: Date;
148
+ updated_at: Date;
149
+ _count: GuardCountAggregateOutputType | null;
150
+ _min: GuardMinAggregateOutputType | null;
151
+ _max: GuardMaxAggregateOutputType | null;
152
+ };
153
+ export type GetGuardGroupByPayload<T extends GuardGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<GuardGroupByOutputType, T['by']> & {
154
+ [P in ((keyof T) & (keyof GuardGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], GuardGroupByOutputType[P]> : Prisma.GetScalarType<T[P], GuardGroupByOutputType[P]>;
155
+ }>>;
156
+ export type GuardWhereInput = {
157
+ AND?: Prisma.GuardWhereInput | Prisma.GuardWhereInput[];
158
+ OR?: Prisma.GuardWhereInput[];
159
+ NOT?: Prisma.GuardWhereInput | Prisma.GuardWhereInput[];
160
+ id?: Prisma.StringFilter<"Guard"> | string;
161
+ guard?: Prisma.StringFilter<"Guard"> | string;
162
+ allowed?: Prisma.BoolNullableFilter<"Guard"> | boolean | null;
163
+ error?: Prisma.JsonNullableFilter<"Guard">;
164
+ started_at?: Prisma.DateTimeFilter<"Guard"> | Date | string;
165
+ ended_at?: Prisma.DateTimeFilter<"Guard"> | Date | string;
166
+ call_id?: Prisma.StringFilter<"Guard"> | string;
167
+ created_at?: Prisma.DateTimeFilter<"Guard"> | Date | string;
168
+ updated_at?: Prisma.DateTimeFilter<"Guard"> | Date | string;
169
+ call?: Prisma.XOR<Prisma.CallScalarRelationFilter, Prisma.CallWhereInput>;
170
+ };
171
+ export type GuardOrderByWithRelationInput = {
172
+ id?: Prisma.SortOrder;
173
+ guard?: Prisma.SortOrder;
174
+ allowed?: Prisma.SortOrderInput | Prisma.SortOrder;
175
+ error?: Prisma.SortOrderInput | Prisma.SortOrder;
176
+ started_at?: Prisma.SortOrder;
177
+ ended_at?: Prisma.SortOrder;
178
+ call_id?: Prisma.SortOrder;
179
+ created_at?: Prisma.SortOrder;
180
+ updated_at?: Prisma.SortOrder;
181
+ call?: Prisma.CallOrderByWithRelationInput;
182
+ };
183
+ export type GuardWhereUniqueInput = Prisma.AtLeast<{
184
+ id?: string;
185
+ AND?: Prisma.GuardWhereInput | Prisma.GuardWhereInput[];
186
+ OR?: Prisma.GuardWhereInput[];
187
+ NOT?: Prisma.GuardWhereInput | Prisma.GuardWhereInput[];
188
+ guard?: Prisma.StringFilter<"Guard"> | string;
189
+ allowed?: Prisma.BoolNullableFilter<"Guard"> | boolean | null;
190
+ error?: Prisma.JsonNullableFilter<"Guard">;
191
+ started_at?: Prisma.DateTimeFilter<"Guard"> | Date | string;
192
+ ended_at?: Prisma.DateTimeFilter<"Guard"> | Date | string;
193
+ call_id?: Prisma.StringFilter<"Guard"> | string;
194
+ created_at?: Prisma.DateTimeFilter<"Guard"> | Date | string;
195
+ updated_at?: Prisma.DateTimeFilter<"Guard"> | Date | string;
196
+ call?: Prisma.XOR<Prisma.CallScalarRelationFilter, Prisma.CallWhereInput>;
197
+ }, "id">;
198
+ export type GuardOrderByWithAggregationInput = {
199
+ id?: Prisma.SortOrder;
200
+ guard?: Prisma.SortOrder;
201
+ allowed?: Prisma.SortOrderInput | Prisma.SortOrder;
202
+ error?: Prisma.SortOrderInput | Prisma.SortOrder;
203
+ started_at?: Prisma.SortOrder;
204
+ ended_at?: Prisma.SortOrder;
205
+ call_id?: Prisma.SortOrder;
206
+ created_at?: Prisma.SortOrder;
207
+ updated_at?: Prisma.SortOrder;
208
+ _count?: Prisma.GuardCountOrderByAggregateInput;
209
+ _max?: Prisma.GuardMaxOrderByAggregateInput;
210
+ _min?: Prisma.GuardMinOrderByAggregateInput;
211
+ };
212
+ export type GuardScalarWhereWithAggregatesInput = {
213
+ AND?: Prisma.GuardScalarWhereWithAggregatesInput | Prisma.GuardScalarWhereWithAggregatesInput[];
214
+ OR?: Prisma.GuardScalarWhereWithAggregatesInput[];
215
+ NOT?: Prisma.GuardScalarWhereWithAggregatesInput | Prisma.GuardScalarWhereWithAggregatesInput[];
216
+ id?: Prisma.StringWithAggregatesFilter<"Guard"> | string;
217
+ guard?: Prisma.StringWithAggregatesFilter<"Guard"> | string;
218
+ allowed?: Prisma.BoolNullableWithAggregatesFilter<"Guard"> | boolean | null;
219
+ error?: Prisma.JsonNullableWithAggregatesFilter<"Guard">;
220
+ started_at?: Prisma.DateTimeWithAggregatesFilter<"Guard"> | Date | string;
221
+ ended_at?: Prisma.DateTimeWithAggregatesFilter<"Guard"> | Date | string;
222
+ call_id?: Prisma.StringWithAggregatesFilter<"Guard"> | string;
223
+ created_at?: Prisma.DateTimeWithAggregatesFilter<"Guard"> | Date | string;
224
+ updated_at?: Prisma.DateTimeWithAggregatesFilter<"Guard"> | Date | string;
225
+ };
226
+ export type GuardCreateInput = {
227
+ id: string;
228
+ guard: string;
229
+ allowed?: boolean | null;
230
+ error?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
231
+ started_at: Date | string;
232
+ ended_at: Date | string;
233
+ created_at?: Date | string;
234
+ updated_at?: Date | string;
235
+ call: Prisma.CallCreateNestedOneWithoutGuardsInput;
236
+ };
237
+ export type GuardUncheckedCreateInput = {
238
+ id: string;
239
+ guard: string;
240
+ allowed?: boolean | null;
241
+ error?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
242
+ started_at: Date | string;
243
+ ended_at: Date | string;
244
+ call_id: string;
245
+ created_at?: Date | string;
246
+ updated_at?: Date | string;
247
+ };
248
+ export type GuardUpdateInput = {
249
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
250
+ guard?: Prisma.StringFieldUpdateOperationsInput | string;
251
+ allowed?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
252
+ error?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
253
+ started_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
254
+ ended_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
255
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
256
+ updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
257
+ call?: Prisma.CallUpdateOneRequiredWithoutGuardsNestedInput;
258
+ };
259
+ export type GuardUncheckedUpdateInput = {
260
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
261
+ guard?: Prisma.StringFieldUpdateOperationsInput | string;
262
+ allowed?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
263
+ error?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
264
+ started_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
265
+ ended_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
266
+ call_id?: Prisma.StringFieldUpdateOperationsInput | string;
267
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
268
+ updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
269
+ };
270
+ export type GuardCreateManyInput = {
271
+ id: string;
272
+ guard: string;
273
+ allowed?: boolean | null;
274
+ error?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
275
+ started_at: Date | string;
276
+ ended_at: Date | string;
277
+ call_id: string;
278
+ created_at?: Date | string;
279
+ updated_at?: Date | string;
280
+ };
281
+ export type GuardUpdateManyMutationInput = {
282
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
283
+ guard?: Prisma.StringFieldUpdateOperationsInput | string;
284
+ allowed?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
285
+ error?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
286
+ started_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
287
+ ended_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
288
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
289
+ updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
290
+ };
291
+ export type GuardUncheckedUpdateManyInput = {
292
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
293
+ guard?: Prisma.StringFieldUpdateOperationsInput | string;
294
+ allowed?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
295
+ error?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
296
+ started_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
297
+ ended_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
298
+ call_id?: Prisma.StringFieldUpdateOperationsInput | string;
299
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
300
+ updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
301
+ };
302
+ export type GuardListRelationFilter = {
303
+ every?: Prisma.GuardWhereInput;
304
+ some?: Prisma.GuardWhereInput;
305
+ none?: Prisma.GuardWhereInput;
306
+ };
307
+ export type GuardOrderByRelationAggregateInput = {
308
+ _count?: Prisma.SortOrder;
309
+ };
310
+ export type GuardCountOrderByAggregateInput = {
311
+ id?: Prisma.SortOrder;
312
+ guard?: Prisma.SortOrder;
313
+ allowed?: Prisma.SortOrder;
314
+ error?: Prisma.SortOrder;
315
+ started_at?: Prisma.SortOrder;
316
+ ended_at?: Prisma.SortOrder;
317
+ call_id?: Prisma.SortOrder;
318
+ created_at?: Prisma.SortOrder;
319
+ updated_at?: Prisma.SortOrder;
320
+ };
321
+ export type GuardMaxOrderByAggregateInput = {
322
+ id?: Prisma.SortOrder;
323
+ guard?: Prisma.SortOrder;
324
+ allowed?: Prisma.SortOrder;
325
+ started_at?: Prisma.SortOrder;
326
+ ended_at?: Prisma.SortOrder;
327
+ call_id?: Prisma.SortOrder;
328
+ created_at?: Prisma.SortOrder;
329
+ updated_at?: Prisma.SortOrder;
330
+ };
331
+ export type GuardMinOrderByAggregateInput = {
332
+ id?: Prisma.SortOrder;
333
+ guard?: Prisma.SortOrder;
334
+ allowed?: Prisma.SortOrder;
335
+ started_at?: Prisma.SortOrder;
336
+ ended_at?: Prisma.SortOrder;
337
+ call_id?: Prisma.SortOrder;
338
+ created_at?: Prisma.SortOrder;
339
+ updated_at?: Prisma.SortOrder;
340
+ };
341
+ export type GuardCreateNestedManyWithoutCallInput = {
342
+ create?: Prisma.XOR<Prisma.GuardCreateWithoutCallInput, Prisma.GuardUncheckedCreateWithoutCallInput> | Prisma.GuardCreateWithoutCallInput[] | Prisma.GuardUncheckedCreateWithoutCallInput[];
343
+ connectOrCreate?: Prisma.GuardCreateOrConnectWithoutCallInput | Prisma.GuardCreateOrConnectWithoutCallInput[];
344
+ createMany?: Prisma.GuardCreateManyCallInputEnvelope;
345
+ connect?: Prisma.GuardWhereUniqueInput | Prisma.GuardWhereUniqueInput[];
346
+ };
347
+ export type GuardUncheckedCreateNestedManyWithoutCallInput = {
348
+ create?: Prisma.XOR<Prisma.GuardCreateWithoutCallInput, Prisma.GuardUncheckedCreateWithoutCallInput> | Prisma.GuardCreateWithoutCallInput[] | Prisma.GuardUncheckedCreateWithoutCallInput[];
349
+ connectOrCreate?: Prisma.GuardCreateOrConnectWithoutCallInput | Prisma.GuardCreateOrConnectWithoutCallInput[];
350
+ createMany?: Prisma.GuardCreateManyCallInputEnvelope;
351
+ connect?: Prisma.GuardWhereUniqueInput | Prisma.GuardWhereUniqueInput[];
352
+ };
353
+ export type GuardUpdateManyWithoutCallNestedInput = {
354
+ create?: Prisma.XOR<Prisma.GuardCreateWithoutCallInput, Prisma.GuardUncheckedCreateWithoutCallInput> | Prisma.GuardCreateWithoutCallInput[] | Prisma.GuardUncheckedCreateWithoutCallInput[];
355
+ connectOrCreate?: Prisma.GuardCreateOrConnectWithoutCallInput | Prisma.GuardCreateOrConnectWithoutCallInput[];
356
+ upsert?: Prisma.GuardUpsertWithWhereUniqueWithoutCallInput | Prisma.GuardUpsertWithWhereUniqueWithoutCallInput[];
357
+ createMany?: Prisma.GuardCreateManyCallInputEnvelope;
358
+ set?: Prisma.GuardWhereUniqueInput | Prisma.GuardWhereUniqueInput[];
359
+ disconnect?: Prisma.GuardWhereUniqueInput | Prisma.GuardWhereUniqueInput[];
360
+ delete?: Prisma.GuardWhereUniqueInput | Prisma.GuardWhereUniqueInput[];
361
+ connect?: Prisma.GuardWhereUniqueInput | Prisma.GuardWhereUniqueInput[];
362
+ update?: Prisma.GuardUpdateWithWhereUniqueWithoutCallInput | Prisma.GuardUpdateWithWhereUniqueWithoutCallInput[];
363
+ updateMany?: Prisma.GuardUpdateManyWithWhereWithoutCallInput | Prisma.GuardUpdateManyWithWhereWithoutCallInput[];
364
+ deleteMany?: Prisma.GuardScalarWhereInput | Prisma.GuardScalarWhereInput[];
365
+ };
366
+ export type GuardUncheckedUpdateManyWithoutCallNestedInput = {
367
+ create?: Prisma.XOR<Prisma.GuardCreateWithoutCallInput, Prisma.GuardUncheckedCreateWithoutCallInput> | Prisma.GuardCreateWithoutCallInput[] | Prisma.GuardUncheckedCreateWithoutCallInput[];
368
+ connectOrCreate?: Prisma.GuardCreateOrConnectWithoutCallInput | Prisma.GuardCreateOrConnectWithoutCallInput[];
369
+ upsert?: Prisma.GuardUpsertWithWhereUniqueWithoutCallInput | Prisma.GuardUpsertWithWhereUniqueWithoutCallInput[];
370
+ createMany?: Prisma.GuardCreateManyCallInputEnvelope;
371
+ set?: Prisma.GuardWhereUniqueInput | Prisma.GuardWhereUniqueInput[];
372
+ disconnect?: Prisma.GuardWhereUniqueInput | Prisma.GuardWhereUniqueInput[];
373
+ delete?: Prisma.GuardWhereUniqueInput | Prisma.GuardWhereUniqueInput[];
374
+ connect?: Prisma.GuardWhereUniqueInput | Prisma.GuardWhereUniqueInput[];
375
+ update?: Prisma.GuardUpdateWithWhereUniqueWithoutCallInput | Prisma.GuardUpdateWithWhereUniqueWithoutCallInput[];
376
+ updateMany?: Prisma.GuardUpdateManyWithWhereWithoutCallInput | Prisma.GuardUpdateManyWithWhereWithoutCallInput[];
377
+ deleteMany?: Prisma.GuardScalarWhereInput | Prisma.GuardScalarWhereInput[];
378
+ };
379
+ export type NullableBoolFieldUpdateOperationsInput = {
380
+ set?: boolean | null;
381
+ };
382
+ export type GuardCreateWithoutCallInput = {
383
+ id: string;
384
+ guard: string;
385
+ allowed?: boolean | null;
386
+ error?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
387
+ started_at: Date | string;
388
+ ended_at: Date | string;
389
+ created_at?: Date | string;
390
+ updated_at?: Date | string;
391
+ };
392
+ export type GuardUncheckedCreateWithoutCallInput = {
393
+ id: string;
394
+ guard: string;
395
+ allowed?: boolean | null;
396
+ error?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
397
+ started_at: Date | string;
398
+ ended_at: Date | string;
399
+ created_at?: Date | string;
400
+ updated_at?: Date | string;
401
+ };
402
+ export type GuardCreateOrConnectWithoutCallInput = {
403
+ where: Prisma.GuardWhereUniqueInput;
404
+ create: Prisma.XOR<Prisma.GuardCreateWithoutCallInput, Prisma.GuardUncheckedCreateWithoutCallInput>;
405
+ };
406
+ export type GuardCreateManyCallInputEnvelope = {
407
+ data: Prisma.GuardCreateManyCallInput | Prisma.GuardCreateManyCallInput[];
408
+ };
409
+ export type GuardUpsertWithWhereUniqueWithoutCallInput = {
410
+ where: Prisma.GuardWhereUniqueInput;
411
+ update: Prisma.XOR<Prisma.GuardUpdateWithoutCallInput, Prisma.GuardUncheckedUpdateWithoutCallInput>;
412
+ create: Prisma.XOR<Prisma.GuardCreateWithoutCallInput, Prisma.GuardUncheckedCreateWithoutCallInput>;
413
+ };
414
+ export type GuardUpdateWithWhereUniqueWithoutCallInput = {
415
+ where: Prisma.GuardWhereUniqueInput;
416
+ data: Prisma.XOR<Prisma.GuardUpdateWithoutCallInput, Prisma.GuardUncheckedUpdateWithoutCallInput>;
417
+ };
418
+ export type GuardUpdateManyWithWhereWithoutCallInput = {
419
+ where: Prisma.GuardScalarWhereInput;
420
+ data: Prisma.XOR<Prisma.GuardUpdateManyMutationInput, Prisma.GuardUncheckedUpdateManyWithoutCallInput>;
421
+ };
422
+ export type GuardScalarWhereInput = {
423
+ AND?: Prisma.GuardScalarWhereInput | Prisma.GuardScalarWhereInput[];
424
+ OR?: Prisma.GuardScalarWhereInput[];
425
+ NOT?: Prisma.GuardScalarWhereInput | Prisma.GuardScalarWhereInput[];
426
+ id?: Prisma.StringFilter<"Guard"> | string;
427
+ guard?: Prisma.StringFilter<"Guard"> | string;
428
+ allowed?: Prisma.BoolNullableFilter<"Guard"> | boolean | null;
429
+ error?: Prisma.JsonNullableFilter<"Guard">;
430
+ started_at?: Prisma.DateTimeFilter<"Guard"> | Date | string;
431
+ ended_at?: Prisma.DateTimeFilter<"Guard"> | Date | string;
432
+ call_id?: Prisma.StringFilter<"Guard"> | string;
433
+ created_at?: Prisma.DateTimeFilter<"Guard"> | Date | string;
434
+ updated_at?: Prisma.DateTimeFilter<"Guard"> | Date | string;
435
+ };
436
+ export type GuardCreateManyCallInput = {
437
+ id: string;
438
+ guard: string;
439
+ allowed?: boolean | null;
440
+ error?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
441
+ started_at: Date | string;
442
+ ended_at: Date | string;
443
+ created_at?: Date | string;
444
+ updated_at?: Date | string;
445
+ };
446
+ export type GuardUpdateWithoutCallInput = {
447
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
448
+ guard?: Prisma.StringFieldUpdateOperationsInput | string;
449
+ allowed?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
450
+ error?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
451
+ started_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
452
+ ended_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
453
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
454
+ updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
455
+ };
456
+ export type GuardUncheckedUpdateWithoutCallInput = {
457
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
458
+ guard?: Prisma.StringFieldUpdateOperationsInput | string;
459
+ allowed?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
460
+ error?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
461
+ started_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
462
+ ended_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
463
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
464
+ updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
465
+ };
466
+ export type GuardUncheckedUpdateManyWithoutCallInput = {
467
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
468
+ guard?: Prisma.StringFieldUpdateOperationsInput | string;
469
+ allowed?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
470
+ error?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
471
+ started_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
472
+ ended_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
473
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
474
+ updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
475
+ };
476
+ export type GuardSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
477
+ id?: boolean;
478
+ guard?: boolean;
479
+ allowed?: boolean;
480
+ error?: boolean;
481
+ started_at?: boolean;
482
+ ended_at?: boolean;
483
+ call_id?: boolean;
484
+ created_at?: boolean;
485
+ updated_at?: boolean;
486
+ call?: boolean | Prisma.CallDefaultArgs<ExtArgs>;
487
+ }, ExtArgs["result"]["guard"]>;
488
+ export type GuardSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
489
+ id?: boolean;
490
+ guard?: boolean;
491
+ allowed?: boolean;
492
+ error?: boolean;
493
+ started_at?: boolean;
494
+ ended_at?: boolean;
495
+ call_id?: boolean;
496
+ created_at?: boolean;
497
+ updated_at?: boolean;
498
+ call?: boolean | Prisma.CallDefaultArgs<ExtArgs>;
499
+ }, ExtArgs["result"]["guard"]>;
500
+ export type GuardSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
501
+ id?: boolean;
502
+ guard?: boolean;
503
+ allowed?: boolean;
504
+ error?: boolean;
505
+ started_at?: boolean;
506
+ ended_at?: boolean;
507
+ call_id?: boolean;
508
+ created_at?: boolean;
509
+ updated_at?: boolean;
510
+ call?: boolean | Prisma.CallDefaultArgs<ExtArgs>;
511
+ }, ExtArgs["result"]["guard"]>;
512
+ export type GuardSelectScalar = {
513
+ id?: boolean;
514
+ guard?: boolean;
515
+ allowed?: boolean;
516
+ error?: boolean;
517
+ started_at?: boolean;
518
+ ended_at?: boolean;
519
+ call_id?: boolean;
520
+ created_at?: boolean;
521
+ updated_at?: boolean;
522
+ };
523
+ export type GuardOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "guard" | "allowed" | "error" | "started_at" | "ended_at" | "call_id" | "created_at" | "updated_at", ExtArgs["result"]["guard"]>;
524
+ export type GuardInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
525
+ call?: boolean | Prisma.CallDefaultArgs<ExtArgs>;
526
+ };
527
+ export type GuardIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
528
+ call?: boolean | Prisma.CallDefaultArgs<ExtArgs>;
529
+ };
530
+ export type GuardIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
531
+ call?: boolean | Prisma.CallDefaultArgs<ExtArgs>;
532
+ };
533
+ export type $GuardPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
534
+ name: "Guard";
535
+ objects: {
536
+ call: Prisma.$CallPayload<ExtArgs>;
537
+ };
538
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
539
+ id: string;
540
+ guard: string;
541
+ allowed: boolean | null;
542
+ error: runtime.JsonValue | null;
543
+ started_at: Date;
544
+ ended_at: Date;
545
+ call_id: string;
546
+ created_at: Date;
547
+ updated_at: Date;
548
+ }, ExtArgs["result"]["guard"]>;
549
+ composites: {};
550
+ };
551
+ export type GuardGetPayload<S extends boolean | null | undefined | GuardDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$GuardPayload, S>;
552
+ export type GuardCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<GuardFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
553
+ select?: GuardCountAggregateInputType | true;
554
+ };
555
+ export interface GuardDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
556
+ [K: symbol]: {
557
+ types: Prisma.TypeMap<ExtArgs>['model']['Guard'];
558
+ meta: {
559
+ name: 'Guard';
560
+ };
561
+ };
562
+ /**
563
+ * Find zero or one Guard that matches the filter.
564
+ * @param {GuardFindUniqueArgs} args - Arguments to find a Guard
565
+ * @example
566
+ * // Get one Guard
567
+ * const guard = await prisma.guard.findUnique({
568
+ * where: {
569
+ * // ... provide filter here
570
+ * }
571
+ * })
572
+ */
573
+ findUnique<T extends GuardFindUniqueArgs>(args: Prisma.SelectSubset<T, GuardFindUniqueArgs<ExtArgs>>): Prisma.Prisma__GuardClient<runtime.Types.Result.GetResult<Prisma.$GuardPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
574
+ /**
575
+ * Find one Guard that matches the filter or throw an error with `error.code='P2025'`
576
+ * if no matches were found.
577
+ * @param {GuardFindUniqueOrThrowArgs} args - Arguments to find a Guard
578
+ * @example
579
+ * // Get one Guard
580
+ * const guard = await prisma.guard.findUniqueOrThrow({
581
+ * where: {
582
+ * // ... provide filter here
583
+ * }
584
+ * })
585
+ */
586
+ findUniqueOrThrow<T extends GuardFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, GuardFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__GuardClient<runtime.Types.Result.GetResult<Prisma.$GuardPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
587
+ /**
588
+ * Find the first Guard that matches the filter.
589
+ * Note, that providing `undefined` is treated as the value not being there.
590
+ * Read more here: https://pris.ly/d/null-undefined
591
+ * @param {GuardFindFirstArgs} args - Arguments to find a Guard
592
+ * @example
593
+ * // Get one Guard
594
+ * const guard = await prisma.guard.findFirst({
595
+ * where: {
596
+ * // ... provide filter here
597
+ * }
598
+ * })
599
+ */
600
+ findFirst<T extends GuardFindFirstArgs>(args?: Prisma.SelectSubset<T, GuardFindFirstArgs<ExtArgs>>): Prisma.Prisma__GuardClient<runtime.Types.Result.GetResult<Prisma.$GuardPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
601
+ /**
602
+ * Find the first Guard that matches the filter or
603
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
604
+ * Note, that providing `undefined` is treated as the value not being there.
605
+ * Read more here: https://pris.ly/d/null-undefined
606
+ * @param {GuardFindFirstOrThrowArgs} args - Arguments to find a Guard
607
+ * @example
608
+ * // Get one Guard
609
+ * const guard = await prisma.guard.findFirstOrThrow({
610
+ * where: {
611
+ * // ... provide filter here
612
+ * }
613
+ * })
614
+ */
615
+ findFirstOrThrow<T extends GuardFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, GuardFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__GuardClient<runtime.Types.Result.GetResult<Prisma.$GuardPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
616
+ /**
617
+ * Find zero or more Guards that matches the filter.
618
+ * Note, that providing `undefined` is treated as the value not being there.
619
+ * Read more here: https://pris.ly/d/null-undefined
620
+ * @param {GuardFindManyArgs} args - Arguments to filter and select certain fields only.
621
+ * @example
622
+ * // Get all Guards
623
+ * const guards = await prisma.guard.findMany()
624
+ *
625
+ * // Get first 10 Guards
626
+ * const guards = await prisma.guard.findMany({ take: 10 })
627
+ *
628
+ * // Only select the `id`
629
+ * const guardWithIdOnly = await prisma.guard.findMany({ select: { id: true } })
630
+ *
631
+ */
632
+ findMany<T extends GuardFindManyArgs>(args?: Prisma.SelectSubset<T, GuardFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GuardPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
633
+ /**
634
+ * Create a Guard.
635
+ * @param {GuardCreateArgs} args - Arguments to create a Guard.
636
+ * @example
637
+ * // Create one Guard
638
+ * const Guard = await prisma.guard.create({
639
+ * data: {
640
+ * // ... data to create a Guard
641
+ * }
642
+ * })
643
+ *
644
+ */
645
+ create<T extends GuardCreateArgs>(args: Prisma.SelectSubset<T, GuardCreateArgs<ExtArgs>>): Prisma.Prisma__GuardClient<runtime.Types.Result.GetResult<Prisma.$GuardPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
646
+ /**
647
+ * Create many Guards.
648
+ * @param {GuardCreateManyArgs} args - Arguments to create many Guards.
649
+ * @example
650
+ * // Create many Guards
651
+ * const guard = await prisma.guard.createMany({
652
+ * data: [
653
+ * // ... provide data here
654
+ * ]
655
+ * })
656
+ *
657
+ */
658
+ createMany<T extends GuardCreateManyArgs>(args?: Prisma.SelectSubset<T, GuardCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
659
+ /**
660
+ * Create many Guards and returns the data saved in the database.
661
+ * @param {GuardCreateManyAndReturnArgs} args - Arguments to create many Guards.
662
+ * @example
663
+ * // Create many Guards
664
+ * const guard = await prisma.guard.createManyAndReturn({
665
+ * data: [
666
+ * // ... provide data here
667
+ * ]
668
+ * })
669
+ *
670
+ * // Create many Guards and only return the `id`
671
+ * const guardWithIdOnly = await prisma.guard.createManyAndReturn({
672
+ * select: { id: true },
673
+ * data: [
674
+ * // ... provide data here
675
+ * ]
676
+ * })
677
+ * Note, that providing `undefined` is treated as the value not being there.
678
+ * Read more here: https://pris.ly/d/null-undefined
679
+ *
680
+ */
681
+ createManyAndReturn<T extends GuardCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, GuardCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GuardPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
682
+ /**
683
+ * Delete a Guard.
684
+ * @param {GuardDeleteArgs} args - Arguments to delete one Guard.
685
+ * @example
686
+ * // Delete one Guard
687
+ * const Guard = await prisma.guard.delete({
688
+ * where: {
689
+ * // ... filter to delete one Guard
690
+ * }
691
+ * })
692
+ *
693
+ */
694
+ delete<T extends GuardDeleteArgs>(args: Prisma.SelectSubset<T, GuardDeleteArgs<ExtArgs>>): Prisma.Prisma__GuardClient<runtime.Types.Result.GetResult<Prisma.$GuardPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
695
+ /**
696
+ * Update one Guard.
697
+ * @param {GuardUpdateArgs} args - Arguments to update one Guard.
698
+ * @example
699
+ * // Update one Guard
700
+ * const guard = await prisma.guard.update({
701
+ * where: {
702
+ * // ... provide filter here
703
+ * },
704
+ * data: {
705
+ * // ... provide data here
706
+ * }
707
+ * })
708
+ *
709
+ */
710
+ update<T extends GuardUpdateArgs>(args: Prisma.SelectSubset<T, GuardUpdateArgs<ExtArgs>>): Prisma.Prisma__GuardClient<runtime.Types.Result.GetResult<Prisma.$GuardPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
711
+ /**
712
+ * Delete zero or more Guards.
713
+ * @param {GuardDeleteManyArgs} args - Arguments to filter Guards to delete.
714
+ * @example
715
+ * // Delete a few Guards
716
+ * const { count } = await prisma.guard.deleteMany({
717
+ * where: {
718
+ * // ... provide filter here
719
+ * }
720
+ * })
721
+ *
722
+ */
723
+ deleteMany<T extends GuardDeleteManyArgs>(args?: Prisma.SelectSubset<T, GuardDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
724
+ /**
725
+ * Update zero or more Guards.
726
+ * Note, that providing `undefined` is treated as the value not being there.
727
+ * Read more here: https://pris.ly/d/null-undefined
728
+ * @param {GuardUpdateManyArgs} args - Arguments to update one or more rows.
729
+ * @example
730
+ * // Update many Guards
731
+ * const guard = await prisma.guard.updateMany({
732
+ * where: {
733
+ * // ... provide filter here
734
+ * },
735
+ * data: {
736
+ * // ... provide data here
737
+ * }
738
+ * })
739
+ *
740
+ */
741
+ updateMany<T extends GuardUpdateManyArgs>(args: Prisma.SelectSubset<T, GuardUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
742
+ /**
743
+ * Update zero or more Guards and returns the data updated in the database.
744
+ * @param {GuardUpdateManyAndReturnArgs} args - Arguments to update many Guards.
745
+ * @example
746
+ * // Update many Guards
747
+ * const guard = await prisma.guard.updateManyAndReturn({
748
+ * where: {
749
+ * // ... provide filter here
750
+ * },
751
+ * data: [
752
+ * // ... provide data here
753
+ * ]
754
+ * })
755
+ *
756
+ * // Update zero or more Guards and only return the `id`
757
+ * const guardWithIdOnly = await prisma.guard.updateManyAndReturn({
758
+ * select: { id: true },
759
+ * where: {
760
+ * // ... provide filter here
761
+ * },
762
+ * data: [
763
+ * // ... provide data here
764
+ * ]
765
+ * })
766
+ * Note, that providing `undefined` is treated as the value not being there.
767
+ * Read more here: https://pris.ly/d/null-undefined
768
+ *
769
+ */
770
+ updateManyAndReturn<T extends GuardUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, GuardUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GuardPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
771
+ /**
772
+ * Create or update one Guard.
773
+ * @param {GuardUpsertArgs} args - Arguments to update or create a Guard.
774
+ * @example
775
+ * // Update or create a Guard
776
+ * const guard = await prisma.guard.upsert({
777
+ * create: {
778
+ * // ... data to create a Guard
779
+ * },
780
+ * update: {
781
+ * // ... in case it already exists, update
782
+ * },
783
+ * where: {
784
+ * // ... the filter for the Guard we want to update
785
+ * }
786
+ * })
787
+ */
788
+ upsert<T extends GuardUpsertArgs>(args: Prisma.SelectSubset<T, GuardUpsertArgs<ExtArgs>>): Prisma.Prisma__GuardClient<runtime.Types.Result.GetResult<Prisma.$GuardPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
789
+ /**
790
+ * Count the number of Guards.
791
+ * Note, that providing `undefined` is treated as the value not being there.
792
+ * Read more here: https://pris.ly/d/null-undefined
793
+ * @param {GuardCountArgs} args - Arguments to filter Guards to count.
794
+ * @example
795
+ * // Count the number of Guards
796
+ * const count = await prisma.guard.count({
797
+ * where: {
798
+ * // ... the filter for the Guards we want to count
799
+ * }
800
+ * })
801
+ **/
802
+ count<T extends GuardCountArgs>(args?: Prisma.Subset<T, GuardCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], GuardCountAggregateOutputType> : number>;
803
+ /**
804
+ * Allows you to perform aggregations operations on a Guard.
805
+ * Note, that providing `undefined` is treated as the value not being there.
806
+ * Read more here: https://pris.ly/d/null-undefined
807
+ * @param {GuardAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
808
+ * @example
809
+ * // Ordered by age ascending
810
+ * // Where email contains prisma.io
811
+ * // Limited to the 10 users
812
+ * const aggregations = await prisma.user.aggregate({
813
+ * _avg: {
814
+ * age: true,
815
+ * },
816
+ * where: {
817
+ * email: {
818
+ * contains: "prisma.io",
819
+ * },
820
+ * },
821
+ * orderBy: {
822
+ * age: "asc",
823
+ * },
824
+ * take: 10,
825
+ * })
826
+ **/
827
+ aggregate<T extends GuardAggregateArgs>(args: Prisma.Subset<T, GuardAggregateArgs>): Prisma.PrismaPromise<GetGuardAggregateType<T>>;
828
+ /**
829
+ * Group by Guard.
830
+ * Note, that providing `undefined` is treated as the value not being there.
831
+ * Read more here: https://pris.ly/d/null-undefined
832
+ * @param {GuardGroupByArgs} args - Group by arguments.
833
+ * @example
834
+ * // Group by city, order by createdAt, get count
835
+ * const result = await prisma.user.groupBy({
836
+ * by: ['city', 'createdAt'],
837
+ * orderBy: {
838
+ * createdAt: true
839
+ * },
840
+ * _count: {
841
+ * _all: true
842
+ * },
843
+ * })
844
+ *
845
+ **/
846
+ groupBy<T extends GuardGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
847
+ orderBy: GuardGroupByArgs['orderBy'];
848
+ } : {
849
+ orderBy?: GuardGroupByArgs['orderBy'];
850
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
851
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
852
+ Error,
853
+ 'Field ',
854
+ P,
855
+ ` in "having" needs to be provided in "by"`
856
+ ];
857
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
858
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
859
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
860
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
861
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
862
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
863
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, GuardGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetGuardGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
864
+ /**
865
+ * Fields of the Guard model
866
+ */
867
+ readonly fields: GuardFieldRefs;
868
+ }
869
+ /**
870
+ * The delegate class that acts as a "Promise-like" for Guard.
871
+ * Why is this prefixed with `Prisma__`?
872
+ * Because we want to prevent naming conflicts as mentioned in
873
+ * https://github.com/prisma/prisma-client-js/issues/707
874
+ */
875
+ export interface Prisma__GuardClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
876
+ readonly [Symbol.toStringTag]: "PrismaPromise";
877
+ call<T extends Prisma.CallDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CallDefaultArgs<ExtArgs>>): Prisma.Prisma__CallClient<runtime.Types.Result.GetResult<Prisma.$CallPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
878
+ /**
879
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
880
+ * @param onfulfilled The callback to execute when the Promise is resolved.
881
+ * @param onrejected The callback to execute when the Promise is rejected.
882
+ * @returns A Promise for the completion of which ever callback is executed.
883
+ */
884
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
885
+ /**
886
+ * Attaches a callback for only the rejection of the Promise.
887
+ * @param onrejected The callback to execute when the Promise is rejected.
888
+ * @returns A Promise for the completion of the callback.
889
+ */
890
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
891
+ /**
892
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
893
+ * resolved value cannot be modified from the callback.
894
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
895
+ * @returns A Promise for the completion of the callback.
896
+ */
897
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
898
+ }
899
+ /**
900
+ * Fields of the Guard model
901
+ */
902
+ export interface GuardFieldRefs {
903
+ readonly id: Prisma.FieldRef<"Guard", 'String'>;
904
+ readonly guard: Prisma.FieldRef<"Guard", 'String'>;
905
+ readonly allowed: Prisma.FieldRef<"Guard", 'Boolean'>;
906
+ readonly error: Prisma.FieldRef<"Guard", 'Json'>;
907
+ readonly started_at: Prisma.FieldRef<"Guard", 'DateTime'>;
908
+ readonly ended_at: Prisma.FieldRef<"Guard", 'DateTime'>;
909
+ readonly call_id: Prisma.FieldRef<"Guard", 'String'>;
910
+ readonly created_at: Prisma.FieldRef<"Guard", 'DateTime'>;
911
+ readonly updated_at: Prisma.FieldRef<"Guard", 'DateTime'>;
912
+ }
913
+ /**
914
+ * Guard findUnique
915
+ */
916
+ export type GuardFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
917
+ /**
918
+ * Select specific fields to fetch from the Guard
919
+ */
920
+ select?: Prisma.GuardSelect<ExtArgs> | null;
921
+ /**
922
+ * Omit specific fields from the Guard
923
+ */
924
+ omit?: Prisma.GuardOmit<ExtArgs> | null;
925
+ /**
926
+ * Choose, which related nodes to fetch as well
927
+ */
928
+ include?: Prisma.GuardInclude<ExtArgs> | null;
929
+ /**
930
+ * Filter, which Guard to fetch.
931
+ */
932
+ where: Prisma.GuardWhereUniqueInput;
933
+ };
934
+ /**
935
+ * Guard findUniqueOrThrow
936
+ */
937
+ export type GuardFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
938
+ /**
939
+ * Select specific fields to fetch from the Guard
940
+ */
941
+ select?: Prisma.GuardSelect<ExtArgs> | null;
942
+ /**
943
+ * Omit specific fields from the Guard
944
+ */
945
+ omit?: Prisma.GuardOmit<ExtArgs> | null;
946
+ /**
947
+ * Choose, which related nodes to fetch as well
948
+ */
949
+ include?: Prisma.GuardInclude<ExtArgs> | null;
950
+ /**
951
+ * Filter, which Guard to fetch.
952
+ */
953
+ where: Prisma.GuardWhereUniqueInput;
954
+ };
955
+ /**
956
+ * Guard findFirst
957
+ */
958
+ export type GuardFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
959
+ /**
960
+ * Select specific fields to fetch from the Guard
961
+ */
962
+ select?: Prisma.GuardSelect<ExtArgs> | null;
963
+ /**
964
+ * Omit specific fields from the Guard
965
+ */
966
+ omit?: Prisma.GuardOmit<ExtArgs> | null;
967
+ /**
968
+ * Choose, which related nodes to fetch as well
969
+ */
970
+ include?: Prisma.GuardInclude<ExtArgs> | null;
971
+ /**
972
+ * Filter, which Guard to fetch.
973
+ */
974
+ where?: Prisma.GuardWhereInput;
975
+ /**
976
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
977
+ *
978
+ * Determine the order of Guards to fetch.
979
+ */
980
+ orderBy?: Prisma.GuardOrderByWithRelationInput | Prisma.GuardOrderByWithRelationInput[];
981
+ /**
982
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
983
+ *
984
+ * Sets the position for searching for Guards.
985
+ */
986
+ cursor?: Prisma.GuardWhereUniqueInput;
987
+ /**
988
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
989
+ *
990
+ * Take `±n` Guards from the position of the cursor.
991
+ */
992
+ take?: number;
993
+ /**
994
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
995
+ *
996
+ * Skip the first `n` Guards.
997
+ */
998
+ skip?: number;
999
+ /**
1000
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1001
+ *
1002
+ * Filter by unique combinations of Guards.
1003
+ */
1004
+ distinct?: Prisma.GuardScalarFieldEnum | Prisma.GuardScalarFieldEnum[];
1005
+ };
1006
+ /**
1007
+ * Guard findFirstOrThrow
1008
+ */
1009
+ export type GuardFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1010
+ /**
1011
+ * Select specific fields to fetch from the Guard
1012
+ */
1013
+ select?: Prisma.GuardSelect<ExtArgs> | null;
1014
+ /**
1015
+ * Omit specific fields from the Guard
1016
+ */
1017
+ omit?: Prisma.GuardOmit<ExtArgs> | null;
1018
+ /**
1019
+ * Choose, which related nodes to fetch as well
1020
+ */
1021
+ include?: Prisma.GuardInclude<ExtArgs> | null;
1022
+ /**
1023
+ * Filter, which Guard to fetch.
1024
+ */
1025
+ where?: Prisma.GuardWhereInput;
1026
+ /**
1027
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1028
+ *
1029
+ * Determine the order of Guards to fetch.
1030
+ */
1031
+ orderBy?: Prisma.GuardOrderByWithRelationInput | Prisma.GuardOrderByWithRelationInput[];
1032
+ /**
1033
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1034
+ *
1035
+ * Sets the position for searching for Guards.
1036
+ */
1037
+ cursor?: Prisma.GuardWhereUniqueInput;
1038
+ /**
1039
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1040
+ *
1041
+ * Take `±n` Guards from the position of the cursor.
1042
+ */
1043
+ take?: number;
1044
+ /**
1045
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1046
+ *
1047
+ * Skip the first `n` Guards.
1048
+ */
1049
+ skip?: number;
1050
+ /**
1051
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1052
+ *
1053
+ * Filter by unique combinations of Guards.
1054
+ */
1055
+ distinct?: Prisma.GuardScalarFieldEnum | Prisma.GuardScalarFieldEnum[];
1056
+ };
1057
+ /**
1058
+ * Guard findMany
1059
+ */
1060
+ export type GuardFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1061
+ /**
1062
+ * Select specific fields to fetch from the Guard
1063
+ */
1064
+ select?: Prisma.GuardSelect<ExtArgs> | null;
1065
+ /**
1066
+ * Omit specific fields from the Guard
1067
+ */
1068
+ omit?: Prisma.GuardOmit<ExtArgs> | null;
1069
+ /**
1070
+ * Choose, which related nodes to fetch as well
1071
+ */
1072
+ include?: Prisma.GuardInclude<ExtArgs> | null;
1073
+ /**
1074
+ * Filter, which Guards to fetch.
1075
+ */
1076
+ where?: Prisma.GuardWhereInput;
1077
+ /**
1078
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1079
+ *
1080
+ * Determine the order of Guards to fetch.
1081
+ */
1082
+ orderBy?: Prisma.GuardOrderByWithRelationInput | Prisma.GuardOrderByWithRelationInput[];
1083
+ /**
1084
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1085
+ *
1086
+ * Sets the position for listing Guards.
1087
+ */
1088
+ cursor?: Prisma.GuardWhereUniqueInput;
1089
+ /**
1090
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1091
+ *
1092
+ * Take `±n` Guards from the position of the cursor.
1093
+ */
1094
+ take?: number;
1095
+ /**
1096
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1097
+ *
1098
+ * Skip the first `n` Guards.
1099
+ */
1100
+ skip?: number;
1101
+ /**
1102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1103
+ *
1104
+ * Filter by unique combinations of Guards.
1105
+ */
1106
+ distinct?: Prisma.GuardScalarFieldEnum | Prisma.GuardScalarFieldEnum[];
1107
+ };
1108
+ /**
1109
+ * Guard create
1110
+ */
1111
+ export type GuardCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1112
+ /**
1113
+ * Select specific fields to fetch from the Guard
1114
+ */
1115
+ select?: Prisma.GuardSelect<ExtArgs> | null;
1116
+ /**
1117
+ * Omit specific fields from the Guard
1118
+ */
1119
+ omit?: Prisma.GuardOmit<ExtArgs> | null;
1120
+ /**
1121
+ * Choose, which related nodes to fetch as well
1122
+ */
1123
+ include?: Prisma.GuardInclude<ExtArgs> | null;
1124
+ /**
1125
+ * The data needed to create a Guard.
1126
+ */
1127
+ data: Prisma.XOR<Prisma.GuardCreateInput, Prisma.GuardUncheckedCreateInput>;
1128
+ };
1129
+ /**
1130
+ * Guard createMany
1131
+ */
1132
+ export type GuardCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1133
+ /**
1134
+ * The data used to create many Guards.
1135
+ */
1136
+ data: Prisma.GuardCreateManyInput | Prisma.GuardCreateManyInput[];
1137
+ };
1138
+ /**
1139
+ * Guard createManyAndReturn
1140
+ */
1141
+ export type GuardCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1142
+ /**
1143
+ * Select specific fields to fetch from the Guard
1144
+ */
1145
+ select?: Prisma.GuardSelectCreateManyAndReturn<ExtArgs> | null;
1146
+ /**
1147
+ * Omit specific fields from the Guard
1148
+ */
1149
+ omit?: Prisma.GuardOmit<ExtArgs> | null;
1150
+ /**
1151
+ * The data used to create many Guards.
1152
+ */
1153
+ data: Prisma.GuardCreateManyInput | Prisma.GuardCreateManyInput[];
1154
+ /**
1155
+ * Choose, which related nodes to fetch as well
1156
+ */
1157
+ include?: Prisma.GuardIncludeCreateManyAndReturn<ExtArgs> | null;
1158
+ };
1159
+ /**
1160
+ * Guard update
1161
+ */
1162
+ export type GuardUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1163
+ /**
1164
+ * Select specific fields to fetch from the Guard
1165
+ */
1166
+ select?: Prisma.GuardSelect<ExtArgs> | null;
1167
+ /**
1168
+ * Omit specific fields from the Guard
1169
+ */
1170
+ omit?: Prisma.GuardOmit<ExtArgs> | null;
1171
+ /**
1172
+ * Choose, which related nodes to fetch as well
1173
+ */
1174
+ include?: Prisma.GuardInclude<ExtArgs> | null;
1175
+ /**
1176
+ * The data needed to update a Guard.
1177
+ */
1178
+ data: Prisma.XOR<Prisma.GuardUpdateInput, Prisma.GuardUncheckedUpdateInput>;
1179
+ /**
1180
+ * Choose, which Guard to update.
1181
+ */
1182
+ where: Prisma.GuardWhereUniqueInput;
1183
+ };
1184
+ /**
1185
+ * Guard updateMany
1186
+ */
1187
+ export type GuardUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1188
+ /**
1189
+ * The data used to update Guards.
1190
+ */
1191
+ data: Prisma.XOR<Prisma.GuardUpdateManyMutationInput, Prisma.GuardUncheckedUpdateManyInput>;
1192
+ /**
1193
+ * Filter which Guards to update
1194
+ */
1195
+ where?: Prisma.GuardWhereInput;
1196
+ /**
1197
+ * Limit how many Guards to update.
1198
+ */
1199
+ limit?: number;
1200
+ };
1201
+ /**
1202
+ * Guard updateManyAndReturn
1203
+ */
1204
+ export type GuardUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1205
+ /**
1206
+ * Select specific fields to fetch from the Guard
1207
+ */
1208
+ select?: Prisma.GuardSelectUpdateManyAndReturn<ExtArgs> | null;
1209
+ /**
1210
+ * Omit specific fields from the Guard
1211
+ */
1212
+ omit?: Prisma.GuardOmit<ExtArgs> | null;
1213
+ /**
1214
+ * The data used to update Guards.
1215
+ */
1216
+ data: Prisma.XOR<Prisma.GuardUpdateManyMutationInput, Prisma.GuardUncheckedUpdateManyInput>;
1217
+ /**
1218
+ * Filter which Guards to update
1219
+ */
1220
+ where?: Prisma.GuardWhereInput;
1221
+ /**
1222
+ * Limit how many Guards to update.
1223
+ */
1224
+ limit?: number;
1225
+ /**
1226
+ * Choose, which related nodes to fetch as well
1227
+ */
1228
+ include?: Prisma.GuardIncludeUpdateManyAndReturn<ExtArgs> | null;
1229
+ };
1230
+ /**
1231
+ * Guard upsert
1232
+ */
1233
+ export type GuardUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1234
+ /**
1235
+ * Select specific fields to fetch from the Guard
1236
+ */
1237
+ select?: Prisma.GuardSelect<ExtArgs> | null;
1238
+ /**
1239
+ * Omit specific fields from the Guard
1240
+ */
1241
+ omit?: Prisma.GuardOmit<ExtArgs> | null;
1242
+ /**
1243
+ * Choose, which related nodes to fetch as well
1244
+ */
1245
+ include?: Prisma.GuardInclude<ExtArgs> | null;
1246
+ /**
1247
+ * The filter to search for the Guard to update in case it exists.
1248
+ */
1249
+ where: Prisma.GuardWhereUniqueInput;
1250
+ /**
1251
+ * In case the Guard found by the `where` argument doesn't exist, create a new Guard with this data.
1252
+ */
1253
+ create: Prisma.XOR<Prisma.GuardCreateInput, Prisma.GuardUncheckedCreateInput>;
1254
+ /**
1255
+ * In case the Guard was found with the provided `where` argument, update it with this data.
1256
+ */
1257
+ update: Prisma.XOR<Prisma.GuardUpdateInput, Prisma.GuardUncheckedUpdateInput>;
1258
+ };
1259
+ /**
1260
+ * Guard delete
1261
+ */
1262
+ export type GuardDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1263
+ /**
1264
+ * Select specific fields to fetch from the Guard
1265
+ */
1266
+ select?: Prisma.GuardSelect<ExtArgs> | null;
1267
+ /**
1268
+ * Omit specific fields from the Guard
1269
+ */
1270
+ omit?: Prisma.GuardOmit<ExtArgs> | null;
1271
+ /**
1272
+ * Choose, which related nodes to fetch as well
1273
+ */
1274
+ include?: Prisma.GuardInclude<ExtArgs> | null;
1275
+ /**
1276
+ * Filter which Guard to delete.
1277
+ */
1278
+ where: Prisma.GuardWhereUniqueInput;
1279
+ };
1280
+ /**
1281
+ * Guard deleteMany
1282
+ */
1283
+ export type GuardDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1284
+ /**
1285
+ * Filter which Guards to delete
1286
+ */
1287
+ where?: Prisma.GuardWhereInput;
1288
+ /**
1289
+ * Limit how many Guards to delete.
1290
+ */
1291
+ limit?: number;
1292
+ };
1293
+ /**
1294
+ * Guard without action
1295
+ */
1296
+ export type GuardDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1297
+ /**
1298
+ * Select specific fields to fetch from the Guard
1299
+ */
1300
+ select?: Prisma.GuardSelect<ExtArgs> | null;
1301
+ /**
1302
+ * Omit specific fields from the Guard
1303
+ */
1304
+ omit?: Prisma.GuardOmit<ExtArgs> | null;
1305
+ /**
1306
+ * Choose, which related nodes to fetch as well
1307
+ */
1308
+ include?: Prisma.GuardInclude<ExtArgs> | null;
1309
+ };
1310
+ //# sourceMappingURL=Guard.d.ts.map