@app-vitals/agent-admin 0.0.1 → 0.1.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 (325) hide show
  1. package/Dockerfile +43 -0
  2. package/README.md +72 -2
  3. package/e2e/agents-page.e2e.ts +338 -0
  4. package/e2e/chat-degraded.e2e.ts +153 -0
  5. package/e2e/chat-page.e2e.ts +169 -0
  6. package/e2e/chat-progress.e2e.ts +206 -0
  7. package/e2e/chat-thread-page.e2e.ts +444 -0
  8. package/e2e/login-page.e2e.ts +148 -0
  9. package/e2e/test-server.ts +427 -0
  10. package/openapi.json +6098 -0
  11. package/openapi.platform.json +5553 -0
  12. package/package.json +62 -4
  13. package/playwright.config.ts +25 -0
  14. package/prisma/client/browser.ts +134 -0
  15. package/prisma/client/client.ts +158 -0
  16. package/prisma/client/commonInputTypes.ts +578 -0
  17. package/prisma/client/enums.ts +15 -0
  18. package/prisma/client/internal/class.ts +424 -0
  19. package/prisma/client/internal/prismaNamespace.ts +2898 -0
  20. package/prisma/client/internal/prismaNamespaceBrowser.ts +476 -0
  21. package/prisma/client/models/Account.ts +1774 -0
  22. package/prisma/client/models/AccountInvite.ts +1386 -0
  23. package/prisma/client/models/AccountMember.ts +1351 -0
  24. package/prisma/client/models/Agent.ts +4554 -0
  25. package/prisma/client/models/AgentAsk.ts +1373 -0
  26. package/prisma/client/models/AgentChatTokenUsageDailyByModel.ts +1638 -0
  27. package/prisma/client/models/AgentCronJob.ts +2416 -0
  28. package/prisma/client/models/AgentCronRun.ts +2858 -0
  29. package/prisma/client/models/AgentCronRunModelBreakdown.ts +1532 -0
  30. package/prisma/client/models/AgentCronRunSkillUsage.ts +1642 -0
  31. package/prisma/client/models/AgentEnv.ts +1421 -0
  32. package/prisma/client/models/AgentGitHubInstallationsSnapshot.ts +1289 -0
  33. package/prisma/client/models/AgentMember.ts +1316 -0
  34. package/prisma/client/models/AgentPhaseMethodology.ts +1355 -0
  35. package/prisma/client/models/AgentPlugin.ts +1421 -0
  36. package/prisma/client/models/AgentToken.ts +1380 -0
  37. package/prisma/client/models/AgentTool.ts +1351 -0
  38. package/prisma/client/models/AgentWorkQueueSnapshot.ts +1297 -0
  39. package/prisma/client/models/ChatThreadWatch.ts +1183 -0
  40. package/prisma/client/models/PushSubscription.ts +1233 -0
  41. package/prisma/client/models/SessionAlertState.ts +1187 -0
  42. package/prisma/client/models/SessionFollow.ts +1187 -0
  43. package/prisma/client/models/UserNotificationPrefs.ts +1221 -0
  44. package/prisma/client/models.ts +34 -0
  45. package/prisma/migrations/20260608000000_init/migration.sql +112 -0
  46. package/prisma/migrations/20260616000000_agent_members/migration.sql +18 -0
  47. package/prisma/migrations/20260624000000_add_agent_self_hosted/migration.sql +2 -0
  48. package/prisma/migrations/20260624120000_add_agent_repos/migration.sql +3 -0
  49. package/prisma/migrations/20260625000000_add_agent_cron_run/migration.sql +26 -0
  50. package/prisma/migrations/20260626000000_add_cron_run_token_fields/migration.sql +10 -0
  51. package/prisma/migrations/20260627000000_add_agent_chat_token_usage_daily/migration.sql +18 -0
  52. package/prisma/migrations/20260627010000_add_agent_chat_token_usage_fk/migration.sql +2 -0
  53. package/prisma/migrations/20260701000000_add_chat_threads_messages/migration.sql +37 -0
  54. package/prisma/migrations/20260701010000_drop_chat_threads_messages/migration.sql +17 -0
  55. package/prisma/migrations/20260701020000_add_cron_run_model_breakdown/migration.sql +23 -0
  56. package/prisma/migrations/20260701020000_chat_token_by_model/migration.sql +25 -0
  57. package/prisma/migrations/20260701030000_add_secret_flag_to_agent_env/migration.sql +2 -0
  58. package/prisma/migrations/20260701030000_drop_cron_run_legacy_columns/migration.sql +5 -0
  59. package/prisma/migrations/20260706000000_consolidate_cron_run_token_accounting/migration.sql +54 -0
  60. package/prisma/migrations/20260709000000_add_phase_to_agent_cron_run/migration.sql +8 -0
  61. package/prisma/migrations/20260717000000_add_item_tracking_to_agent_cron_run/migration.sql +10 -0
  62. package/prisma/migrations/20260717010000_add_agent_work_queue_snapshot/migration.sql +20 -0
  63. package/prisma/migrations/20260718000000_add_cron_phase_columns/migration.sql +25 -0
  64. package/prisma/migrations/20260718100000_drop_agent_cron_run_phase_column/migration.sql +8 -0
  65. package/prisma/migrations/20260724000000_add_agent_type_name/migration.sql +3 -0
  66. package/prisma/migrations/20260725232433_add_agent_author_allowlist/migration.sql +2 -0
  67. package/prisma/migrations/20260727120000_add_not_null_to_agent_author_allowlist/migration.sql +3 -0
  68. package/prisma/migrations/20260731000000_add_session_id_to_agent_cron_run/migration.sql +2 -0
  69. package/prisma/migrations/20260821000000_add_agent_restrict_slack_to_members/migration.sql +3 -0
  70. package/prisma/migrations/20260901000000_add_push_subscription_and_chat_thread_watch/migration.sql +40 -0
  71. package/prisma/migrations/20260903000000_add_agent_patch_author_allowlist/migration.sql +2 -0
  72. package/prisma/migrations/20260903120000_add_agent_review_author_allowlist/migration.sql +18 -0
  73. package/prisma/migrations/20260903150000_drop_agent_author_allowlist/migration.sql +14 -0
  74. package/prisma/migrations/20260905000000_add_started_at_index_to_agent_cron_run/migration.sql +11 -0
  75. package/prisma/migrations/20260906000000_add_session_follow_notification_prefs_alert_state/migration.sql +47 -0
  76. package/prisma/migrations/20260911000000_backfill_auto_follow_since/migration.sql +16 -0
  77. package/prisma/migrations/20260923115814_add_last_heartbeat_at_to_agent_cron_run/migration.sql +2 -0
  78. package/prisma/migrations/20260924120000_add_trial_expiry_fields_to_agent/migration.sql +6 -0
  79. package/prisma/migrations/20260929000000_add_agent_phase_methodology/migration.sql +21 -0
  80. package/prisma/migrations/20260929120000_add_agent_policy_fields/migration.sql +15 -0
  81. package/prisma/migrations/20261005000000_add_agent_github_installations_snapshot/migration.sql +21 -0
  82. package/prisma/migrations/20261008000000_add_cron_run_telemetry/migration.sql +50 -0
  83. package/prisma/migrations/20261008010000_add_account_models/migration.sql +48 -0
  84. package/prisma/migrations/20261008020000_add_cron_lockdown_disabled_at/migration.sql +3 -0
  85. package/prisma/migrations/20261009000000_chat_token_usage_bigint/migration.sql +7 -0
  86. package/prisma/migrations/20261010000000_add_cron_run_command_variant/migration.sql +2 -0
  87. package/prisma/migrations/20261019000000_add_agent_anthropic_identity/migration.sql +9 -0
  88. package/prisma/migrations/20261025000000_add_agent_ask/migration.sql +23 -0
  89. package/prisma/migrations/migration_lock.toml +3 -0
  90. package/prisma/schema/coding.prisma +85 -0
  91. package/prisma/schema/schema.prisma +506 -0
  92. package/prisma.config.ts +34 -0
  93. package/pwa-assets/icons/apple-touch-icon.png +0 -0
  94. package/pwa-assets/icons/favicon-32.png +0 -0
  95. package/pwa-assets/icons/icon-192.png +0 -0
  96. package/pwa-assets/icons/icon-512.png +0 -0
  97. package/pwa-assets/icons/icon-maskable-192.png +0 -0
  98. package/pwa-assets/icons/icon-maskable-512.png +0 -0
  99. package/src/account-agent-create.ts +42 -0
  100. package/src/account-agent-create.unit.test.ts +28 -0
  101. package/src/account-created-notifier.ts +71 -0
  102. package/src/account-created-notifier.unit.test.ts +70 -0
  103. package/src/account-email.ts +9 -0
  104. package/src/account-email.unit.test.ts +21 -0
  105. package/src/account-invites.ts +70 -0
  106. package/src/account-lifecycle.integration.test.ts +329 -0
  107. package/src/account-lifecycle.ts +206 -0
  108. package/src/account-lifecycle.unit.test.ts +108 -0
  109. package/src/account-members.ts +128 -0
  110. package/src/account-onboarding.integration.test.ts +101 -0
  111. package/src/account-onboarding.ts +95 -0
  112. package/src/account-trial-expiry-sweeper.ts +85 -0
  113. package/src/account-trial-warning-sweeper.integration.test.ts +228 -0
  114. package/src/account-trial-warning-sweeper.ts +216 -0
  115. package/src/accounts-api.integration.test.ts +196 -0
  116. package/src/accounts-api.smoke.test.ts +292 -0
  117. package/src/accounts-api.ts +289 -0
  118. package/src/accounts-api.unit.test.ts +93 -0
  119. package/src/accounts.integration.test.ts +178 -0
  120. package/src/accounts.ts +208 -0
  121. package/src/admin-boot-config.ts +574 -0
  122. package/src/admin-boot-config.unit.test.ts +28 -0
  123. package/src/admin-boot.boot-order.unit.test.ts +91 -0
  124. package/src/admin-boot.ts +690 -0
  125. package/src/admin-dev-login.smoke.test.ts +317 -0
  126. package/src/admin-extension.ts +432 -0
  127. package/src/admin-extension.unit.test.ts +532 -0
  128. package/src/admin-local-agent.smoke.test.ts +1643 -0
  129. package/src/admin-spec.smoke.test.ts +96 -0
  130. package/src/admin-spec.ts +186 -0
  131. package/src/admin-ui-account-nav.ts +20 -0
  132. package/src/admin-ui-account-pages.ts +131 -0
  133. package/src/admin-ui-account-pages.unit.test.ts +112 -0
  134. package/src/admin-ui-account.smoke.test.ts +286 -0
  135. package/src/admin-ui-account.ts +185 -0
  136. package/src/admin-ui-accounts-pages.ts +202 -0
  137. package/src/admin-ui-accounts-pages.unit.test.ts +138 -0
  138. package/src/admin-ui-accounts.smoke.test.ts +434 -0
  139. package/src/admin-ui-accounts.ts +266 -0
  140. package/src/admin-ui-layout.ts +60 -0
  141. package/src/admin-ui-layout.unit.test.ts +140 -0
  142. package/src/admin-ui-pages.ts +3489 -0
  143. package/src/admin-ui-pages.unit.test.ts +4355 -0
  144. package/src/admin-ui-push-test.smoke.test.ts +125 -0
  145. package/src/admin-ui-push-test.ts +102 -0
  146. package/src/admin-ui-styles.ts +656 -0
  147. package/src/admin-ui-styles.unit.test.ts +103 -0
  148. package/src/admin-ui.fixtures.ts +457 -0
  149. package/src/admin-ui.smoke.test.ts +7227 -0
  150. package/src/admin-ui.ts +3824 -0
  151. package/src/agent-account-assignment.ts +49 -0
  152. package/src/agent-account-assignment.unit.test.ts +99 -0
  153. package/src/agent-anthropic-identity.integration.test.ts +99 -0
  154. package/src/agent-anthropic-identity.ts +78 -0
  155. package/src/agent-anthropic-identity.unit.test.ts +77 -0
  156. package/src/agent-ask-config.ts +59 -0
  157. package/src/agent-ask-config.unit.test.ts +70 -0
  158. package/src/agent-ask.integration.test.ts +175 -0
  159. package/src/agent-ask.smoke.test.ts +457 -0
  160. package/src/agent-ask.ts +378 -0
  161. package/src/agent-chat-tokens.integration.test.ts +420 -0
  162. package/src/agent-chat-tokens.smoke.test.ts +551 -0
  163. package/src/agent-chat-tokens.ts +259 -0
  164. package/src/agent-cron-jobs.integration.test.ts +582 -0
  165. package/src/agent-cron-jobs.ts +615 -0
  166. package/src/agent-cron-jobs.unit.test.ts +420 -0
  167. package/src/agent-cron-run-stats.integration.test.ts +1551 -0
  168. package/src/agent-cron-run-stats.smoke.test.ts +953 -0
  169. package/src/agent-cron-run-stats.ts +752 -0
  170. package/src/agent-cron-runs.integration.test.ts +1491 -0
  171. package/src/agent-cron-runs.ts +489 -0
  172. package/src/agent-deletion-checklist.ts +128 -0
  173. package/src/agent-deletion-checklist.unit.test.ts +201 -0
  174. package/src/agent-deletion-per-agent.integration.test.ts +323 -0
  175. package/src/agent-deletion.integration.test.ts +323 -0
  176. package/src/agent-deletion.ts +329 -0
  177. package/src/agent-deletion.unit.test.ts +412 -0
  178. package/src/agent-envs.integration.test.ts +323 -0
  179. package/src/agent-envs.ts +244 -0
  180. package/src/agent-github-installations.integration.test.ts +115 -0
  181. package/src/agent-github-installations.ts +52 -0
  182. package/src/agent-manifest.ts +685 -0
  183. package/src/agent-manifest.unit.test.ts +870 -0
  184. package/src/agent-members.ts +69 -0
  185. package/src/agent-members.unit.test.ts +250 -0
  186. package/src/agent-patch-author-allowlist.integration.test.ts +218 -0
  187. package/src/agent-plugins.integration.test.ts +157 -0
  188. package/src/agent-plugins.ts +95 -0
  189. package/src/agent-plugins.unit.test.ts +43 -0
  190. package/src/agent-provisioner-per-agent.integration.test.ts +949 -0
  191. package/src/agent-provisioner.integration.test.ts +1245 -0
  192. package/src/agent-provisioner.ts +1650 -0
  193. package/src/agent-provisioner.unit.test.ts +1852 -0
  194. package/src/agent-tokens.integration.test.ts +150 -0
  195. package/src/agent-tokens.ts +112 -0
  196. package/src/agent-tools.integration.test.ts +129 -0
  197. package/src/agent-tools.ts +111 -0
  198. package/src/agents-api.integration.test.ts +705 -0
  199. package/src/agents-api.sentry.smoke.test.ts +478 -0
  200. package/src/agents-api.smoke.test.ts +5986 -0
  201. package/src/agents-api.ts +2826 -0
  202. package/src/agents.integration.test.ts +512 -0
  203. package/src/agents.ts +1097 -0
  204. package/src/agents.unit.test.ts +1736 -0
  205. package/src/anthropic-credential-guard.ts +44 -0
  206. package/src/anthropic-credential-guard.unit.test.ts +88 -0
  207. package/src/anthropic-federated-token-provider.integration.test.ts +248 -0
  208. package/src/anthropic-federated-token-provider.ts +249 -0
  209. package/src/anthropic-identity-client.fixtures.ts +237 -0
  210. package/src/anthropic-identity-client.integration.test.ts +342 -0
  211. package/src/anthropic-identity-client.ts +473 -0
  212. package/src/anthropic-identity-fixture-spec.integration.test.ts +169 -0
  213. package/src/anthropic-identity-name.integration.test.ts +83 -0
  214. package/src/anthropic-identity-name.ts +163 -0
  215. package/src/anthropic-identity-name.unit.test.ts +345 -0
  216. package/src/anthropic-openapi-contract.fixtures.ts +192 -0
  217. package/src/api-auth.ts +383 -0
  218. package/src/api-auth.unit.test.ts +837 -0
  219. package/src/api.smoke.test.ts +1225 -0
  220. package/src/api.ts +376 -0
  221. package/src/attachment-validation.ts +124 -0
  222. package/src/attachment-validation.unit.test.ts +218 -0
  223. package/src/caller-scope.ts +131 -0
  224. package/src/caller-scope.unit.test.ts +116 -0
  225. package/src/chat-credential-config.ts +22 -0
  226. package/src/chat-credentials-logging.unit.test.ts +92 -0
  227. package/src/chat-markers.ts +114 -0
  228. package/src/chat-markers.unit.test.ts +116 -0
  229. package/src/chat-service-provisioning-client.integration.test.ts +412 -0
  230. package/src/chat-service-provisioning-client.ts +221 -0
  231. package/src/chat.smoke.test.ts +1875 -0
  232. package/src/clock.ts +47 -0
  233. package/src/coding-task-store-provisioning-client.integration.test.ts +372 -0
  234. package/src/coding-task-store-provisioning-client.ts +156 -0
  235. package/src/crypto.ts +83 -0
  236. package/src/dev-auth-guard.ts +29 -0
  237. package/src/dev-auth-guard.unit.test.ts +51 -0
  238. package/src/errors.ts +77 -0
  239. package/src/errors.unit.test.ts +52 -0
  240. package/src/fixtures/anthropic-identity-recorded-fixtures.json +850 -0
  241. package/src/fixtures/anthropic-openapi/SDK_VERSION +1 -0
  242. package/src/fixtures/anthropic-openapi/mock-spec.json.gz +0 -0
  243. package/src/fixtures/chat-service-provisioning-cassette.json +156 -0
  244. package/src/fixtures/github-app-manifest-cassette.json +44 -0
  245. package/src/fixtures/google-auth-cassette.json +36 -0
  246. package/src/fixtures/http-chat-client-cassette.json +226 -0
  247. package/src/fixtures/k8s-cassette.json +470 -0
  248. package/src/fixtures/okta-auth-cassette.json +36 -0
  249. package/src/fixtures/slack-provision-cassette.json +12 -0
  250. package/src/fixtures/slack-provisioning-http-cassette.json +98 -0
  251. package/src/fixtures/task-store-provisioning-cassette.json +85 -0
  252. package/src/github-app-provisioning-client.integration.test.ts +149 -0
  253. package/src/github-app-provisioning-client.ts +161 -0
  254. package/src/github-app-provisioning-client.unit.test.ts +114 -0
  255. package/src/github-provisioning-service.ts +569 -0
  256. package/src/github-provisioning-service.unit.test.ts +123 -0
  257. package/src/google-auth-client.integration.test.ts +195 -0
  258. package/src/google-auth-client.ts +121 -0
  259. package/src/http-chat-client.integration.test.ts +554 -0
  260. package/src/http-chat-client.ts +533 -0
  261. package/src/http-chat-client.unit.test.ts +119 -0
  262. package/src/import-boundary.unit.test.ts +240 -0
  263. package/src/kubernetes-client.integration.test.ts +697 -0
  264. package/src/kubernetes-client.ts +1027 -0
  265. package/src/kubernetes-client.unit.test.ts +726 -0
  266. package/src/main.smoke.test.ts +91 -0
  267. package/src/main.ts +21 -0
  268. package/src/main.unit.test.ts +801 -0
  269. package/src/okta-auth-client.integration.test.ts +263 -0
  270. package/src/okta-auth-client.ts +152 -0
  271. package/src/openapi-schemas.ts +1310 -0
  272. package/src/openapi-schemas.unit.test.ts +348 -0
  273. package/src/per-agent-identity.fixtures.ts +305 -0
  274. package/src/platform-doc-route.ts +40 -0
  275. package/src/prisma-client.integration.test.ts +57 -0
  276. package/src/prisma-client.ts +187 -0
  277. package/src/prisma-client.unit.test.ts +178 -0
  278. package/src/prisma-tx.ts +23 -0
  279. package/src/push-content.ts +177 -0
  280. package/src/push-content.unit.test.ts +213 -0
  281. package/src/push-crypto.ts +135 -0
  282. package/src/push-crypto.unit.test.ts +66 -0
  283. package/src/push-sender.ts +169 -0
  284. package/src/push-sender.unit.test.ts +107 -0
  285. package/src/push-service.ts +332 -0
  286. package/src/push-service.unit.test.ts +679 -0
  287. package/src/push-toggle.ts +135 -0
  288. package/src/push-toggle.unit.test.ts +78 -0
  289. package/src/pwa-https-gating.smoke.test.ts +229 -0
  290. package/src/pwa-icons.unit.test.ts +41 -0
  291. package/src/pwa-routes.smoke.test.ts +276 -0
  292. package/src/pwa.ts +380 -0
  293. package/src/pwa.unit.test.ts +321 -0
  294. package/src/schema.unit.test.ts +122 -0
  295. package/src/self-serve-config.ts +52 -0
  296. package/src/self-serve-config.unit.test.ts +79 -0
  297. package/src/server.smoke.test.ts +273 -0
  298. package/src/server.ts +50 -0
  299. package/src/service-integration.ts +67 -0
  300. package/src/service-integration.unit.test.ts +129 -0
  301. package/src/slack-provisioning-client.integration.test.ts +308 -0
  302. package/src/slack-provisioning-client.ts +411 -0
  303. package/src/slack-provisioning-client.unit.test.ts +80 -0
  304. package/src/slack-provisioning-service.integration.test.ts +637 -0
  305. package/src/slack-provisioning-service.ts +451 -0
  306. package/src/slack-provisioning.integration.test.ts +395 -0
  307. package/src/specialty-manifest-loader.fixture.integration.test.ts +63 -0
  308. package/src/specialty-manifest-loader.ts +255 -0
  309. package/src/specialty-manifest-loader.unit.test.ts +301 -0
  310. package/src/specialty-registry.schema.unit.test.ts +35 -0
  311. package/src/specialty-registry.ts +236 -0
  312. package/src/specialty-registry.unit.test.ts +272 -0
  313. package/src/startup-policy-reconcile.ts +77 -0
  314. package/src/startup-policy-reconcile.unit.test.ts +251 -0
  315. package/src/theme-tokens.json +12 -0
  316. package/src/token-crypto.ts +60 -0
  317. package/src/token-crypto.unit.test.ts +182 -0
  318. package/src/trial-expiry-sweeper.integration.test.ts +318 -0
  319. package/src/trial-expiry-sweeper.ts +132 -0
  320. package/src/trial-expiry-sweeper.unit.test.ts +391 -0
  321. package/src/trial-expiry-warning-sweeper.integration.test.ts +468 -0
  322. package/src/trial-expiry-warning-sweeper.ts +447 -0
  323. package/src/trial-expiry-warning-sweeper.unit.test.ts +148 -0
  324. package/src/voice-contract.unit.test.ts +102 -0
  325. package/tsconfig.json +9 -0
@@ -0,0 +1,1233 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `PushSubscription` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums.ts"
13
+ import type * as Prisma from "../internal/prismaNamespace.ts"
14
+
15
+ /**
16
+ * Model PushSubscription
17
+ *
18
+ */
19
+ export type PushSubscriptionModel = runtime.Types.Result.DefaultSelection<Prisma.$PushSubscriptionPayload>
20
+
21
+ export type AggregatePushSubscription = {
22
+ _count: PushSubscriptionCountAggregateOutputType | null
23
+ _min: PushSubscriptionMinAggregateOutputType | null
24
+ _max: PushSubscriptionMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type PushSubscriptionMinAggregateOutputType = {
28
+ id: string | null
29
+ userEmail: string | null
30
+ endpoint: string | null
31
+ p256dh: string | null
32
+ auth: string | null
33
+ detailOptIn: string | null
34
+ createdAt: Date | null
35
+ updatedAt: Date | null
36
+ }
37
+
38
+ export type PushSubscriptionMaxAggregateOutputType = {
39
+ id: string | null
40
+ userEmail: string | null
41
+ endpoint: string | null
42
+ p256dh: string | null
43
+ auth: string | null
44
+ detailOptIn: string | null
45
+ createdAt: Date | null
46
+ updatedAt: Date | null
47
+ }
48
+
49
+ export type PushSubscriptionCountAggregateOutputType = {
50
+ id: number
51
+ userEmail: number
52
+ endpoint: number
53
+ p256dh: number
54
+ auth: number
55
+ detailOptIn: number
56
+ createdAt: number
57
+ updatedAt: number
58
+ _all: number
59
+ }
60
+
61
+
62
+ export type PushSubscriptionMinAggregateInputType = {
63
+ id?: true
64
+ userEmail?: true
65
+ endpoint?: true
66
+ p256dh?: true
67
+ auth?: true
68
+ detailOptIn?: true
69
+ createdAt?: true
70
+ updatedAt?: true
71
+ }
72
+
73
+ export type PushSubscriptionMaxAggregateInputType = {
74
+ id?: true
75
+ userEmail?: true
76
+ endpoint?: true
77
+ p256dh?: true
78
+ auth?: true
79
+ detailOptIn?: true
80
+ createdAt?: true
81
+ updatedAt?: true
82
+ }
83
+
84
+ export type PushSubscriptionCountAggregateInputType = {
85
+ id?: true
86
+ userEmail?: true
87
+ endpoint?: true
88
+ p256dh?: true
89
+ auth?: true
90
+ detailOptIn?: true
91
+ createdAt?: true
92
+ updatedAt?: true
93
+ _all?: true
94
+ }
95
+
96
+ export type PushSubscriptionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
97
+ /**
98
+ * Filter which PushSubscription to aggregate.
99
+ */
100
+ where?: Prisma.PushSubscriptionWhereInput
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
103
+ *
104
+ * Determine the order of PushSubscriptions to fetch.
105
+ */
106
+ orderBy?: Prisma.PushSubscriptionOrderByWithRelationInput | Prisma.PushSubscriptionOrderByWithRelationInput[]
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
109
+ *
110
+ * Sets the start position
111
+ */
112
+ cursor?: Prisma.PushSubscriptionWhereUniqueInput
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
115
+ *
116
+ * Take `±n` PushSubscriptions from the position of the cursor.
117
+ */
118
+ take?: number
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
121
+ *
122
+ * Skip the first `n` PushSubscriptions.
123
+ */
124
+ skip?: number
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
127
+ *
128
+ * Count returned PushSubscriptions
129
+ **/
130
+ _count?: true | PushSubscriptionCountAggregateInputType
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
133
+ *
134
+ * Select which fields to find the minimum value
135
+ **/
136
+ _min?: PushSubscriptionMinAggregateInputType
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
+ *
140
+ * Select which fields to find the maximum value
141
+ **/
142
+ _max?: PushSubscriptionMaxAggregateInputType
143
+ }
144
+
145
+ export type GetPushSubscriptionAggregateType<T extends PushSubscriptionAggregateArgs> = {
146
+ [P in keyof T & keyof AggregatePushSubscription]: P extends '_count' | 'count'
147
+ ? T[P] extends true
148
+ ? number
149
+ : Prisma.GetScalarType<T[P], AggregatePushSubscription[P]>
150
+ : Prisma.GetScalarType<T[P], AggregatePushSubscription[P]>
151
+ }
152
+
153
+
154
+
155
+
156
+ export type PushSubscriptionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
157
+ where?: Prisma.PushSubscriptionWhereInput
158
+ orderBy?: Prisma.PushSubscriptionOrderByWithAggregationInput | Prisma.PushSubscriptionOrderByWithAggregationInput[]
159
+ by: Prisma.PushSubscriptionScalarFieldEnum[] | Prisma.PushSubscriptionScalarFieldEnum
160
+ having?: Prisma.PushSubscriptionScalarWhereWithAggregatesInput
161
+ take?: number
162
+ skip?: number
163
+ _count?: PushSubscriptionCountAggregateInputType | true
164
+ _min?: PushSubscriptionMinAggregateInputType
165
+ _max?: PushSubscriptionMaxAggregateInputType
166
+ }
167
+
168
+ export type PushSubscriptionGroupByOutputType = {
169
+ id: string
170
+ userEmail: string
171
+ endpoint: string
172
+ p256dh: string
173
+ auth: string
174
+ detailOptIn: string
175
+ createdAt: Date
176
+ updatedAt: Date
177
+ _count: PushSubscriptionCountAggregateOutputType | null
178
+ _min: PushSubscriptionMinAggregateOutputType | null
179
+ _max: PushSubscriptionMaxAggregateOutputType | null
180
+ }
181
+
182
+ export type GetPushSubscriptionGroupByPayload<T extends PushSubscriptionGroupByArgs> = Prisma.PrismaPromise<
183
+ Array<
184
+ Prisma.PickEnumerable<PushSubscriptionGroupByOutputType, T['by']> &
185
+ {
186
+ [P in ((keyof T) & (keyof PushSubscriptionGroupByOutputType))]: P extends '_count'
187
+ ? T[P] extends boolean
188
+ ? number
189
+ : Prisma.GetScalarType<T[P], PushSubscriptionGroupByOutputType[P]>
190
+ : Prisma.GetScalarType<T[P], PushSubscriptionGroupByOutputType[P]>
191
+ }
192
+ >
193
+ >
194
+
195
+
196
+
197
+ export type PushSubscriptionWhereInput = {
198
+ AND?: Prisma.PushSubscriptionWhereInput | Prisma.PushSubscriptionWhereInput[]
199
+ OR?: Prisma.PushSubscriptionWhereInput[]
200
+ NOT?: Prisma.PushSubscriptionWhereInput | Prisma.PushSubscriptionWhereInput[]
201
+ id?: Prisma.StringFilter<"PushSubscription"> | string
202
+ userEmail?: Prisma.StringFilter<"PushSubscription"> | string
203
+ endpoint?: Prisma.StringFilter<"PushSubscription"> | string
204
+ p256dh?: Prisma.StringFilter<"PushSubscription"> | string
205
+ auth?: Prisma.StringFilter<"PushSubscription"> | string
206
+ detailOptIn?: Prisma.StringFilter<"PushSubscription"> | string
207
+ createdAt?: Prisma.DateTimeFilter<"PushSubscription"> | Date | string
208
+ updatedAt?: Prisma.DateTimeFilter<"PushSubscription"> | Date | string
209
+ }
210
+
211
+ export type PushSubscriptionOrderByWithRelationInput = {
212
+ id?: Prisma.SortOrder
213
+ userEmail?: Prisma.SortOrder
214
+ endpoint?: Prisma.SortOrder
215
+ p256dh?: Prisma.SortOrder
216
+ auth?: Prisma.SortOrder
217
+ detailOptIn?: Prisma.SortOrder
218
+ createdAt?: Prisma.SortOrder
219
+ updatedAt?: Prisma.SortOrder
220
+ }
221
+
222
+ export type PushSubscriptionWhereUniqueInput = Prisma.AtLeast<{
223
+ id?: string
224
+ endpoint?: string
225
+ AND?: Prisma.PushSubscriptionWhereInput | Prisma.PushSubscriptionWhereInput[]
226
+ OR?: Prisma.PushSubscriptionWhereInput[]
227
+ NOT?: Prisma.PushSubscriptionWhereInput | Prisma.PushSubscriptionWhereInput[]
228
+ userEmail?: Prisma.StringFilter<"PushSubscription"> | string
229
+ p256dh?: Prisma.StringFilter<"PushSubscription"> | string
230
+ auth?: Prisma.StringFilter<"PushSubscription"> | string
231
+ detailOptIn?: Prisma.StringFilter<"PushSubscription"> | string
232
+ createdAt?: Prisma.DateTimeFilter<"PushSubscription"> | Date | string
233
+ updatedAt?: Prisma.DateTimeFilter<"PushSubscription"> | Date | string
234
+ }, "id" | "endpoint">
235
+
236
+ export type PushSubscriptionOrderByWithAggregationInput = {
237
+ id?: Prisma.SortOrder
238
+ userEmail?: Prisma.SortOrder
239
+ endpoint?: Prisma.SortOrder
240
+ p256dh?: Prisma.SortOrder
241
+ auth?: Prisma.SortOrder
242
+ detailOptIn?: Prisma.SortOrder
243
+ createdAt?: Prisma.SortOrder
244
+ updatedAt?: Prisma.SortOrder
245
+ _count?: Prisma.PushSubscriptionCountOrderByAggregateInput
246
+ _max?: Prisma.PushSubscriptionMaxOrderByAggregateInput
247
+ _min?: Prisma.PushSubscriptionMinOrderByAggregateInput
248
+ }
249
+
250
+ export type PushSubscriptionScalarWhereWithAggregatesInput = {
251
+ AND?: Prisma.PushSubscriptionScalarWhereWithAggregatesInput | Prisma.PushSubscriptionScalarWhereWithAggregatesInput[]
252
+ OR?: Prisma.PushSubscriptionScalarWhereWithAggregatesInput[]
253
+ NOT?: Prisma.PushSubscriptionScalarWhereWithAggregatesInput | Prisma.PushSubscriptionScalarWhereWithAggregatesInput[]
254
+ id?: Prisma.StringWithAggregatesFilter<"PushSubscription"> | string
255
+ userEmail?: Prisma.StringWithAggregatesFilter<"PushSubscription"> | string
256
+ endpoint?: Prisma.StringWithAggregatesFilter<"PushSubscription"> | string
257
+ p256dh?: Prisma.StringWithAggregatesFilter<"PushSubscription"> | string
258
+ auth?: Prisma.StringWithAggregatesFilter<"PushSubscription"> | string
259
+ detailOptIn?: Prisma.StringWithAggregatesFilter<"PushSubscription"> | string
260
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"PushSubscription"> | Date | string
261
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"PushSubscription"> | Date | string
262
+ }
263
+
264
+ export type PushSubscriptionCreateInput = {
265
+ id?: string
266
+ userEmail: string
267
+ endpoint: string
268
+ p256dh: string
269
+ auth: string
270
+ detailOptIn?: string
271
+ createdAt?: Date | string
272
+ updatedAt?: Date | string
273
+ }
274
+
275
+ export type PushSubscriptionUncheckedCreateInput = {
276
+ id?: string
277
+ userEmail: string
278
+ endpoint: string
279
+ p256dh: string
280
+ auth: string
281
+ detailOptIn?: string
282
+ createdAt?: Date | string
283
+ updatedAt?: Date | string
284
+ }
285
+
286
+ export type PushSubscriptionUpdateInput = {
287
+ id?: Prisma.StringFieldUpdateOperationsInput | string
288
+ userEmail?: Prisma.StringFieldUpdateOperationsInput | string
289
+ endpoint?: Prisma.StringFieldUpdateOperationsInput | string
290
+ p256dh?: Prisma.StringFieldUpdateOperationsInput | string
291
+ auth?: Prisma.StringFieldUpdateOperationsInput | string
292
+ detailOptIn?: Prisma.StringFieldUpdateOperationsInput | string
293
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
294
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
295
+ }
296
+
297
+ export type PushSubscriptionUncheckedUpdateInput = {
298
+ id?: Prisma.StringFieldUpdateOperationsInput | string
299
+ userEmail?: Prisma.StringFieldUpdateOperationsInput | string
300
+ endpoint?: Prisma.StringFieldUpdateOperationsInput | string
301
+ p256dh?: Prisma.StringFieldUpdateOperationsInput | string
302
+ auth?: Prisma.StringFieldUpdateOperationsInput | string
303
+ detailOptIn?: Prisma.StringFieldUpdateOperationsInput | string
304
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
305
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
306
+ }
307
+
308
+ export type PushSubscriptionCreateManyInput = {
309
+ id?: string
310
+ userEmail: string
311
+ endpoint: string
312
+ p256dh: string
313
+ auth: string
314
+ detailOptIn?: string
315
+ createdAt?: Date | string
316
+ updatedAt?: Date | string
317
+ }
318
+
319
+ export type PushSubscriptionUpdateManyMutationInput = {
320
+ id?: Prisma.StringFieldUpdateOperationsInput | string
321
+ userEmail?: Prisma.StringFieldUpdateOperationsInput | string
322
+ endpoint?: Prisma.StringFieldUpdateOperationsInput | string
323
+ p256dh?: Prisma.StringFieldUpdateOperationsInput | string
324
+ auth?: Prisma.StringFieldUpdateOperationsInput | string
325
+ detailOptIn?: Prisma.StringFieldUpdateOperationsInput | string
326
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
327
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
328
+ }
329
+
330
+ export type PushSubscriptionUncheckedUpdateManyInput = {
331
+ id?: Prisma.StringFieldUpdateOperationsInput | string
332
+ userEmail?: Prisma.StringFieldUpdateOperationsInput | string
333
+ endpoint?: Prisma.StringFieldUpdateOperationsInput | string
334
+ p256dh?: Prisma.StringFieldUpdateOperationsInput | string
335
+ auth?: Prisma.StringFieldUpdateOperationsInput | string
336
+ detailOptIn?: Prisma.StringFieldUpdateOperationsInput | string
337
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
338
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
339
+ }
340
+
341
+ export type PushSubscriptionCountOrderByAggregateInput = {
342
+ id?: Prisma.SortOrder
343
+ userEmail?: Prisma.SortOrder
344
+ endpoint?: Prisma.SortOrder
345
+ p256dh?: Prisma.SortOrder
346
+ auth?: Prisma.SortOrder
347
+ detailOptIn?: Prisma.SortOrder
348
+ createdAt?: Prisma.SortOrder
349
+ updatedAt?: Prisma.SortOrder
350
+ }
351
+
352
+ export type PushSubscriptionMaxOrderByAggregateInput = {
353
+ id?: Prisma.SortOrder
354
+ userEmail?: Prisma.SortOrder
355
+ endpoint?: Prisma.SortOrder
356
+ p256dh?: Prisma.SortOrder
357
+ auth?: Prisma.SortOrder
358
+ detailOptIn?: Prisma.SortOrder
359
+ createdAt?: Prisma.SortOrder
360
+ updatedAt?: Prisma.SortOrder
361
+ }
362
+
363
+ export type PushSubscriptionMinOrderByAggregateInput = {
364
+ id?: Prisma.SortOrder
365
+ userEmail?: Prisma.SortOrder
366
+ endpoint?: Prisma.SortOrder
367
+ p256dh?: Prisma.SortOrder
368
+ auth?: Prisma.SortOrder
369
+ detailOptIn?: Prisma.SortOrder
370
+ createdAt?: Prisma.SortOrder
371
+ updatedAt?: Prisma.SortOrder
372
+ }
373
+
374
+
375
+
376
+ export type PushSubscriptionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
377
+ id?: boolean
378
+ userEmail?: boolean
379
+ endpoint?: boolean
380
+ p256dh?: boolean
381
+ auth?: boolean
382
+ detailOptIn?: boolean
383
+ createdAt?: boolean
384
+ updatedAt?: boolean
385
+ }, ExtArgs["result"]["pushSubscription"]>
386
+
387
+ export type PushSubscriptionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
388
+ id?: boolean
389
+ userEmail?: boolean
390
+ endpoint?: boolean
391
+ p256dh?: boolean
392
+ auth?: boolean
393
+ detailOptIn?: boolean
394
+ createdAt?: boolean
395
+ updatedAt?: boolean
396
+ }, ExtArgs["result"]["pushSubscription"]>
397
+
398
+ export type PushSubscriptionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
399
+ id?: boolean
400
+ userEmail?: boolean
401
+ endpoint?: boolean
402
+ p256dh?: boolean
403
+ auth?: boolean
404
+ detailOptIn?: boolean
405
+ createdAt?: boolean
406
+ updatedAt?: boolean
407
+ }, ExtArgs["result"]["pushSubscription"]>
408
+
409
+ export type PushSubscriptionSelectScalar = {
410
+ id?: boolean
411
+ userEmail?: boolean
412
+ endpoint?: boolean
413
+ p256dh?: boolean
414
+ auth?: boolean
415
+ detailOptIn?: boolean
416
+ createdAt?: boolean
417
+ updatedAt?: boolean
418
+ }
419
+
420
+ export type PushSubscriptionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userEmail" | "endpoint" | "p256dh" | "auth" | "detailOptIn" | "createdAt" | "updatedAt", ExtArgs["result"]["pushSubscription"]>
421
+
422
+ export type $PushSubscriptionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
423
+ name: "PushSubscription"
424
+ objects: {}
425
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
426
+ id: string
427
+ userEmail: string
428
+ endpoint: string
429
+ p256dh: string
430
+ auth: string
431
+ detailOptIn: string
432
+ createdAt: Date
433
+ updatedAt: Date
434
+ }, ExtArgs["result"]["pushSubscription"]>
435
+ composites: {}
436
+ }
437
+
438
+ export type PushSubscriptionGetPayload<S extends boolean | null | undefined | PushSubscriptionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PushSubscriptionPayload, S>
439
+
440
+ export type PushSubscriptionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
441
+ Omit<PushSubscriptionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
442
+ select?: PushSubscriptionCountAggregateInputType | true
443
+ }
444
+
445
+ export interface PushSubscriptionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
446
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PushSubscription'], meta: { name: 'PushSubscription' } }
447
+ /**
448
+ * Find zero or one PushSubscription that matches the filter.
449
+ * @param {PushSubscriptionFindUniqueArgs} args - Arguments to find a PushSubscription
450
+ * @example
451
+ * // Get one PushSubscription
452
+ * const pushSubscription = await prisma.pushSubscription.findUnique({
453
+ * where: {
454
+ * // ... provide filter here
455
+ * }
456
+ * })
457
+ */
458
+ findUnique<T extends PushSubscriptionFindUniqueArgs>(args: Prisma.SelectSubset<T, PushSubscriptionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PushSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PushSubscriptionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
459
+
460
+ /**
461
+ * Find one PushSubscription that matches the filter or throw an error with `error.code='P2025'`
462
+ * if no matches were found.
463
+ * @param {PushSubscriptionFindUniqueOrThrowArgs} args - Arguments to find a PushSubscription
464
+ * @example
465
+ * // Get one PushSubscription
466
+ * const pushSubscription = await prisma.pushSubscription.findUniqueOrThrow({
467
+ * where: {
468
+ * // ... provide filter here
469
+ * }
470
+ * })
471
+ */
472
+ findUniqueOrThrow<T extends PushSubscriptionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PushSubscriptionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PushSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PushSubscriptionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
473
+
474
+ /**
475
+ * Find the first PushSubscription that matches the filter.
476
+ * Note, that providing `undefined` is treated as the value not being there.
477
+ * Read more here: https://pris.ly/d/null-undefined
478
+ * @param {PushSubscriptionFindFirstArgs} args - Arguments to find a PushSubscription
479
+ * @example
480
+ * // Get one PushSubscription
481
+ * const pushSubscription = await prisma.pushSubscription.findFirst({
482
+ * where: {
483
+ * // ... provide filter here
484
+ * }
485
+ * })
486
+ */
487
+ findFirst<T extends PushSubscriptionFindFirstArgs>(args?: Prisma.SelectSubset<T, PushSubscriptionFindFirstArgs<ExtArgs>>): Prisma.Prisma__PushSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PushSubscriptionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
488
+
489
+ /**
490
+ * Find the first PushSubscription that matches the filter or
491
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
492
+ * Note, that providing `undefined` is treated as the value not being there.
493
+ * Read more here: https://pris.ly/d/null-undefined
494
+ * @param {PushSubscriptionFindFirstOrThrowArgs} args - Arguments to find a PushSubscription
495
+ * @example
496
+ * // Get one PushSubscription
497
+ * const pushSubscription = await prisma.pushSubscription.findFirstOrThrow({
498
+ * where: {
499
+ * // ... provide filter here
500
+ * }
501
+ * })
502
+ */
503
+ findFirstOrThrow<T extends PushSubscriptionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PushSubscriptionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PushSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PushSubscriptionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
504
+
505
+ /**
506
+ * Find zero or more PushSubscriptions that matches the filter.
507
+ * Note, that providing `undefined` is treated as the value not being there.
508
+ * Read more here: https://pris.ly/d/null-undefined
509
+ * @param {PushSubscriptionFindManyArgs} args - Arguments to filter and select certain fields only.
510
+ * @example
511
+ * // Get all PushSubscriptions
512
+ * const pushSubscriptions = await prisma.pushSubscription.findMany()
513
+ *
514
+ * // Get first 10 PushSubscriptions
515
+ * const pushSubscriptions = await prisma.pushSubscription.findMany({ take: 10 })
516
+ *
517
+ * // Only select the `id`
518
+ * const pushSubscriptionWithIdOnly = await prisma.pushSubscription.findMany({ select: { id: true } })
519
+ *
520
+ */
521
+ findMany<T extends PushSubscriptionFindManyArgs>(args?: Prisma.SelectSubset<T, PushSubscriptionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PushSubscriptionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
522
+
523
+ /**
524
+ * Create a PushSubscription.
525
+ * @param {PushSubscriptionCreateArgs} args - Arguments to create a PushSubscription.
526
+ * @example
527
+ * // Create one PushSubscription
528
+ * const PushSubscription = await prisma.pushSubscription.create({
529
+ * data: {
530
+ * // ... data to create a PushSubscription
531
+ * }
532
+ * })
533
+ *
534
+ */
535
+ create<T extends PushSubscriptionCreateArgs>(args: Prisma.SelectSubset<T, PushSubscriptionCreateArgs<ExtArgs>>): Prisma.Prisma__PushSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PushSubscriptionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
536
+
537
+ /**
538
+ * Create many PushSubscriptions.
539
+ * @param {PushSubscriptionCreateManyArgs} args - Arguments to create many PushSubscriptions.
540
+ * @example
541
+ * // Create many PushSubscriptions
542
+ * const pushSubscription = await prisma.pushSubscription.createMany({
543
+ * data: [
544
+ * // ... provide data here
545
+ * ]
546
+ * })
547
+ *
548
+ */
549
+ createMany<T extends PushSubscriptionCreateManyArgs>(args?: Prisma.SelectSubset<T, PushSubscriptionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
550
+
551
+ /**
552
+ * Create many PushSubscriptions and returns the data saved in the database.
553
+ * @param {PushSubscriptionCreateManyAndReturnArgs} args - Arguments to create many PushSubscriptions.
554
+ * @example
555
+ * // Create many PushSubscriptions
556
+ * const pushSubscription = await prisma.pushSubscription.createManyAndReturn({
557
+ * data: [
558
+ * // ... provide data here
559
+ * ]
560
+ * })
561
+ *
562
+ * // Create many PushSubscriptions and only return the `id`
563
+ * const pushSubscriptionWithIdOnly = await prisma.pushSubscription.createManyAndReturn({
564
+ * select: { id: true },
565
+ * data: [
566
+ * // ... provide data here
567
+ * ]
568
+ * })
569
+ * Note, that providing `undefined` is treated as the value not being there.
570
+ * Read more here: https://pris.ly/d/null-undefined
571
+ *
572
+ */
573
+ createManyAndReturn<T extends PushSubscriptionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PushSubscriptionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PushSubscriptionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
574
+
575
+ /**
576
+ * Delete a PushSubscription.
577
+ * @param {PushSubscriptionDeleteArgs} args - Arguments to delete one PushSubscription.
578
+ * @example
579
+ * // Delete one PushSubscription
580
+ * const PushSubscription = await prisma.pushSubscription.delete({
581
+ * where: {
582
+ * // ... filter to delete one PushSubscription
583
+ * }
584
+ * })
585
+ *
586
+ */
587
+ delete<T extends PushSubscriptionDeleteArgs>(args: Prisma.SelectSubset<T, PushSubscriptionDeleteArgs<ExtArgs>>): Prisma.Prisma__PushSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PushSubscriptionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
588
+
589
+ /**
590
+ * Update one PushSubscription.
591
+ * @param {PushSubscriptionUpdateArgs} args - Arguments to update one PushSubscription.
592
+ * @example
593
+ * // Update one PushSubscription
594
+ * const pushSubscription = await prisma.pushSubscription.update({
595
+ * where: {
596
+ * // ... provide filter here
597
+ * },
598
+ * data: {
599
+ * // ... provide data here
600
+ * }
601
+ * })
602
+ *
603
+ */
604
+ update<T extends PushSubscriptionUpdateArgs>(args: Prisma.SelectSubset<T, PushSubscriptionUpdateArgs<ExtArgs>>): Prisma.Prisma__PushSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PushSubscriptionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
605
+
606
+ /**
607
+ * Delete zero or more PushSubscriptions.
608
+ * @param {PushSubscriptionDeleteManyArgs} args - Arguments to filter PushSubscriptions to delete.
609
+ * @example
610
+ * // Delete a few PushSubscriptions
611
+ * const { count } = await prisma.pushSubscription.deleteMany({
612
+ * where: {
613
+ * // ... provide filter here
614
+ * }
615
+ * })
616
+ *
617
+ */
618
+ deleteMany<T extends PushSubscriptionDeleteManyArgs>(args?: Prisma.SelectSubset<T, PushSubscriptionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
619
+
620
+ /**
621
+ * Update zero or more PushSubscriptions.
622
+ * Note, that providing `undefined` is treated as the value not being there.
623
+ * Read more here: https://pris.ly/d/null-undefined
624
+ * @param {PushSubscriptionUpdateManyArgs} args - Arguments to update one or more rows.
625
+ * @example
626
+ * // Update many PushSubscriptions
627
+ * const pushSubscription = await prisma.pushSubscription.updateMany({
628
+ * where: {
629
+ * // ... provide filter here
630
+ * },
631
+ * data: {
632
+ * // ... provide data here
633
+ * }
634
+ * })
635
+ *
636
+ */
637
+ updateMany<T extends PushSubscriptionUpdateManyArgs>(args: Prisma.SelectSubset<T, PushSubscriptionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
638
+
639
+ /**
640
+ * Update zero or more PushSubscriptions and returns the data updated in the database.
641
+ * @param {PushSubscriptionUpdateManyAndReturnArgs} args - Arguments to update many PushSubscriptions.
642
+ * @example
643
+ * // Update many PushSubscriptions
644
+ * const pushSubscription = await prisma.pushSubscription.updateManyAndReturn({
645
+ * where: {
646
+ * // ... provide filter here
647
+ * },
648
+ * data: [
649
+ * // ... provide data here
650
+ * ]
651
+ * })
652
+ *
653
+ * // Update zero or more PushSubscriptions and only return the `id`
654
+ * const pushSubscriptionWithIdOnly = await prisma.pushSubscription.updateManyAndReturn({
655
+ * select: { id: true },
656
+ * where: {
657
+ * // ... provide filter here
658
+ * },
659
+ * data: [
660
+ * // ... provide data here
661
+ * ]
662
+ * })
663
+ * Note, that providing `undefined` is treated as the value not being there.
664
+ * Read more here: https://pris.ly/d/null-undefined
665
+ *
666
+ */
667
+ updateManyAndReturn<T extends PushSubscriptionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PushSubscriptionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PushSubscriptionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
668
+
669
+ /**
670
+ * Create or update one PushSubscription.
671
+ * @param {PushSubscriptionUpsertArgs} args - Arguments to update or create a PushSubscription.
672
+ * @example
673
+ * // Update or create a PushSubscription
674
+ * const pushSubscription = await prisma.pushSubscription.upsert({
675
+ * create: {
676
+ * // ... data to create a PushSubscription
677
+ * },
678
+ * update: {
679
+ * // ... in case it already exists, update
680
+ * },
681
+ * where: {
682
+ * // ... the filter for the PushSubscription we want to update
683
+ * }
684
+ * })
685
+ */
686
+ upsert<T extends PushSubscriptionUpsertArgs>(args: Prisma.SelectSubset<T, PushSubscriptionUpsertArgs<ExtArgs>>): Prisma.Prisma__PushSubscriptionClient<runtime.Types.Result.GetResult<Prisma.$PushSubscriptionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
687
+
688
+
689
+ /**
690
+ * Count the number of PushSubscriptions.
691
+ * Note, that providing `undefined` is treated as the value not being there.
692
+ * Read more here: https://pris.ly/d/null-undefined
693
+ * @param {PushSubscriptionCountArgs} args - Arguments to filter PushSubscriptions to count.
694
+ * @example
695
+ * // Count the number of PushSubscriptions
696
+ * const count = await prisma.pushSubscription.count({
697
+ * where: {
698
+ * // ... the filter for the PushSubscriptions we want to count
699
+ * }
700
+ * })
701
+ **/
702
+ count<T extends PushSubscriptionCountArgs>(
703
+ args?: Prisma.Subset<T, PushSubscriptionCountArgs>,
704
+ ): Prisma.PrismaPromise<
705
+ T extends runtime.Types.Utils.Record<'select', any>
706
+ ? T['select'] extends true
707
+ ? number
708
+ : Prisma.GetScalarType<T['select'], PushSubscriptionCountAggregateOutputType>
709
+ : number
710
+ >
711
+
712
+ /**
713
+ * Allows you to perform aggregations operations on a PushSubscription.
714
+ * Note, that providing `undefined` is treated as the value not being there.
715
+ * Read more here: https://pris.ly/d/null-undefined
716
+ * @param {PushSubscriptionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
717
+ * @example
718
+ * // Ordered by age ascending
719
+ * // Where email contains prisma.io
720
+ * // Limited to the 10 users
721
+ * const aggregations = await prisma.user.aggregate({
722
+ * _avg: {
723
+ * age: true,
724
+ * },
725
+ * where: {
726
+ * email: {
727
+ * contains: "prisma.io",
728
+ * },
729
+ * },
730
+ * orderBy: {
731
+ * age: "asc",
732
+ * },
733
+ * take: 10,
734
+ * })
735
+ **/
736
+ aggregate<T extends PushSubscriptionAggregateArgs>(args: Prisma.Subset<T, PushSubscriptionAggregateArgs>): Prisma.PrismaPromise<GetPushSubscriptionAggregateType<T>>
737
+
738
+ /**
739
+ * Group by PushSubscription.
740
+ * Note, that providing `undefined` is treated as the value not being there.
741
+ * Read more here: https://pris.ly/d/null-undefined
742
+ * @param {PushSubscriptionGroupByArgs} args - Group by arguments.
743
+ * @example
744
+ * // Group by city, order by createdAt, get count
745
+ * const result = await prisma.user.groupBy({
746
+ * by: ['city', 'createdAt'],
747
+ * orderBy: {
748
+ * createdAt: true
749
+ * },
750
+ * _count: {
751
+ * _all: true
752
+ * },
753
+ * })
754
+ *
755
+ **/
756
+ groupBy<
757
+ T extends PushSubscriptionGroupByArgs,
758
+ HasSelectOrTake extends Prisma.Or<
759
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
760
+ Prisma.Extends<'take', Prisma.Keys<T>>
761
+ >,
762
+ OrderByArg extends Prisma.True extends HasSelectOrTake
763
+ ? { orderBy: PushSubscriptionGroupByArgs['orderBy'] }
764
+ : { orderBy?: PushSubscriptionGroupByArgs['orderBy'] },
765
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
766
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
767
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
768
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
769
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
770
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
771
+ InputErrors extends ByEmpty extends Prisma.True
772
+ ? `Error: "by" must not be empty.`
773
+ : HavingValid extends Prisma.False
774
+ ? {
775
+ [P in HavingFields]: P extends ByFields
776
+ ? never
777
+ : P extends string
778
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
779
+ : [
780
+ Error,
781
+ 'Field ',
782
+ P,
783
+ ` in "having" needs to be provided in "by"`,
784
+ ]
785
+ }[HavingFields]
786
+ : 'take' extends Prisma.Keys<T>
787
+ ? 'orderBy' extends Prisma.Keys<T>
788
+ ? ByValid extends Prisma.True
789
+ ? {}
790
+ : {
791
+ [P in OrderFields]: P extends ByFields
792
+ ? never
793
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
794
+ }[OrderFields]
795
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
796
+ : 'skip' extends Prisma.Keys<T>
797
+ ? 'orderBy' extends Prisma.Keys<T>
798
+ ? ByValid extends Prisma.True
799
+ ? {}
800
+ : {
801
+ [P in OrderFields]: P extends ByFields
802
+ ? never
803
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
804
+ }[OrderFields]
805
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
806
+ : ByValid extends Prisma.True
807
+ ? {}
808
+ : {
809
+ [P in OrderFields]: P extends ByFields
810
+ ? never
811
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
812
+ }[OrderFields]
813
+ >(args: Prisma.SubsetIntersection<T, PushSubscriptionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPushSubscriptionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
814
+ /**
815
+ * Fields of the PushSubscription model
816
+ */
817
+ readonly fields: PushSubscriptionFieldRefs;
818
+ }
819
+
820
+ /**
821
+ * The delegate class that acts as a "Promise-like" for PushSubscription.
822
+ * Why is this prefixed with `Prisma__`?
823
+ * Because we want to prevent naming conflicts as mentioned in
824
+ * https://github.com/prisma/prisma-client-js/issues/707
825
+ */
826
+ export interface Prisma__PushSubscriptionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
827
+ readonly [Symbol.toStringTag]: "PrismaPromise"
828
+ /**
829
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
830
+ * @param onfulfilled The callback to execute when the Promise is resolved.
831
+ * @param onrejected The callback to execute when the Promise is rejected.
832
+ * @returns A Promise for the completion of which ever callback is executed.
833
+ */
834
+ 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>
835
+ /**
836
+ * Attaches a callback for only the rejection of the Promise.
837
+ * @param onrejected The callback to execute when the Promise is rejected.
838
+ * @returns A Promise for the completion of the callback.
839
+ */
840
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
841
+ /**
842
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
843
+ * resolved value cannot be modified from the callback.
844
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
845
+ * @returns A Promise for the completion of the callback.
846
+ */
847
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
848
+ }
849
+
850
+
851
+
852
+
853
+ /**
854
+ * Fields of the PushSubscription model
855
+ */
856
+ export interface PushSubscriptionFieldRefs {
857
+ readonly id: Prisma.FieldRef<"PushSubscription", 'String'>
858
+ readonly userEmail: Prisma.FieldRef<"PushSubscription", 'String'>
859
+ readonly endpoint: Prisma.FieldRef<"PushSubscription", 'String'>
860
+ readonly p256dh: Prisma.FieldRef<"PushSubscription", 'String'>
861
+ readonly auth: Prisma.FieldRef<"PushSubscription", 'String'>
862
+ readonly detailOptIn: Prisma.FieldRef<"PushSubscription", 'String'>
863
+ readonly createdAt: Prisma.FieldRef<"PushSubscription", 'DateTime'>
864
+ readonly updatedAt: Prisma.FieldRef<"PushSubscription", 'DateTime'>
865
+ }
866
+
867
+
868
+ // Custom InputTypes
869
+ /**
870
+ * PushSubscription findUnique
871
+ */
872
+ export type PushSubscriptionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
873
+ /**
874
+ * Select specific fields to fetch from the PushSubscription
875
+ */
876
+ select?: Prisma.PushSubscriptionSelect<ExtArgs> | null
877
+ /**
878
+ * Omit specific fields from the PushSubscription
879
+ */
880
+ omit?: Prisma.PushSubscriptionOmit<ExtArgs> | null
881
+ /**
882
+ * Filter, which PushSubscription to fetch.
883
+ */
884
+ where: Prisma.PushSubscriptionWhereUniqueInput
885
+ }
886
+
887
+ /**
888
+ * PushSubscription findUniqueOrThrow
889
+ */
890
+ export type PushSubscriptionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
891
+ /**
892
+ * Select specific fields to fetch from the PushSubscription
893
+ */
894
+ select?: Prisma.PushSubscriptionSelect<ExtArgs> | null
895
+ /**
896
+ * Omit specific fields from the PushSubscription
897
+ */
898
+ omit?: Prisma.PushSubscriptionOmit<ExtArgs> | null
899
+ /**
900
+ * Filter, which PushSubscription to fetch.
901
+ */
902
+ where: Prisma.PushSubscriptionWhereUniqueInput
903
+ }
904
+
905
+ /**
906
+ * PushSubscription findFirst
907
+ */
908
+ export type PushSubscriptionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
909
+ /**
910
+ * Select specific fields to fetch from the PushSubscription
911
+ */
912
+ select?: Prisma.PushSubscriptionSelect<ExtArgs> | null
913
+ /**
914
+ * Omit specific fields from the PushSubscription
915
+ */
916
+ omit?: Prisma.PushSubscriptionOmit<ExtArgs> | null
917
+ /**
918
+ * Filter, which PushSubscription to fetch.
919
+ */
920
+ where?: Prisma.PushSubscriptionWhereInput
921
+ /**
922
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
923
+ *
924
+ * Determine the order of PushSubscriptions to fetch.
925
+ */
926
+ orderBy?: Prisma.PushSubscriptionOrderByWithRelationInput | Prisma.PushSubscriptionOrderByWithRelationInput[]
927
+ /**
928
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
929
+ *
930
+ * Sets the position for searching for PushSubscriptions.
931
+ */
932
+ cursor?: Prisma.PushSubscriptionWhereUniqueInput
933
+ /**
934
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
935
+ *
936
+ * Take `±n` PushSubscriptions from the position of the cursor.
937
+ */
938
+ take?: number
939
+ /**
940
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
941
+ *
942
+ * Skip the first `n` PushSubscriptions.
943
+ */
944
+ skip?: number
945
+ /**
946
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
947
+ *
948
+ * Filter by unique combinations of PushSubscriptions.
949
+ */
950
+ distinct?: Prisma.PushSubscriptionScalarFieldEnum | Prisma.PushSubscriptionScalarFieldEnum[]
951
+ }
952
+
953
+ /**
954
+ * PushSubscription findFirstOrThrow
955
+ */
956
+ export type PushSubscriptionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
957
+ /**
958
+ * Select specific fields to fetch from the PushSubscription
959
+ */
960
+ select?: Prisma.PushSubscriptionSelect<ExtArgs> | null
961
+ /**
962
+ * Omit specific fields from the PushSubscription
963
+ */
964
+ omit?: Prisma.PushSubscriptionOmit<ExtArgs> | null
965
+ /**
966
+ * Filter, which PushSubscription to fetch.
967
+ */
968
+ where?: Prisma.PushSubscriptionWhereInput
969
+ /**
970
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
971
+ *
972
+ * Determine the order of PushSubscriptions to fetch.
973
+ */
974
+ orderBy?: Prisma.PushSubscriptionOrderByWithRelationInput | Prisma.PushSubscriptionOrderByWithRelationInput[]
975
+ /**
976
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
977
+ *
978
+ * Sets the position for searching for PushSubscriptions.
979
+ */
980
+ cursor?: Prisma.PushSubscriptionWhereUniqueInput
981
+ /**
982
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
983
+ *
984
+ * Take `±n` PushSubscriptions from the position of the cursor.
985
+ */
986
+ take?: number
987
+ /**
988
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
989
+ *
990
+ * Skip the first `n` PushSubscriptions.
991
+ */
992
+ skip?: number
993
+ /**
994
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
995
+ *
996
+ * Filter by unique combinations of PushSubscriptions.
997
+ */
998
+ distinct?: Prisma.PushSubscriptionScalarFieldEnum | Prisma.PushSubscriptionScalarFieldEnum[]
999
+ }
1000
+
1001
+ /**
1002
+ * PushSubscription findMany
1003
+ */
1004
+ export type PushSubscriptionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1005
+ /**
1006
+ * Select specific fields to fetch from the PushSubscription
1007
+ */
1008
+ select?: Prisma.PushSubscriptionSelect<ExtArgs> | null
1009
+ /**
1010
+ * Omit specific fields from the PushSubscription
1011
+ */
1012
+ omit?: Prisma.PushSubscriptionOmit<ExtArgs> | null
1013
+ /**
1014
+ * Filter, which PushSubscriptions to fetch.
1015
+ */
1016
+ where?: Prisma.PushSubscriptionWhereInput
1017
+ /**
1018
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1019
+ *
1020
+ * Determine the order of PushSubscriptions to fetch.
1021
+ */
1022
+ orderBy?: Prisma.PushSubscriptionOrderByWithRelationInput | Prisma.PushSubscriptionOrderByWithRelationInput[]
1023
+ /**
1024
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1025
+ *
1026
+ * Sets the position for listing PushSubscriptions.
1027
+ */
1028
+ cursor?: Prisma.PushSubscriptionWhereUniqueInput
1029
+ /**
1030
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1031
+ *
1032
+ * Take `±n` PushSubscriptions from the position of the cursor.
1033
+ */
1034
+ take?: number
1035
+ /**
1036
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1037
+ *
1038
+ * Skip the first `n` PushSubscriptions.
1039
+ */
1040
+ skip?: number
1041
+ /**
1042
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1043
+ *
1044
+ * Filter by unique combinations of PushSubscriptions.
1045
+ */
1046
+ distinct?: Prisma.PushSubscriptionScalarFieldEnum | Prisma.PushSubscriptionScalarFieldEnum[]
1047
+ }
1048
+
1049
+ /**
1050
+ * PushSubscription create
1051
+ */
1052
+ export type PushSubscriptionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1053
+ /**
1054
+ * Select specific fields to fetch from the PushSubscription
1055
+ */
1056
+ select?: Prisma.PushSubscriptionSelect<ExtArgs> | null
1057
+ /**
1058
+ * Omit specific fields from the PushSubscription
1059
+ */
1060
+ omit?: Prisma.PushSubscriptionOmit<ExtArgs> | null
1061
+ /**
1062
+ * The data needed to create a PushSubscription.
1063
+ */
1064
+ data: Prisma.XOR<Prisma.PushSubscriptionCreateInput, Prisma.PushSubscriptionUncheckedCreateInput>
1065
+ }
1066
+
1067
+ /**
1068
+ * PushSubscription createMany
1069
+ */
1070
+ export type PushSubscriptionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1071
+ /**
1072
+ * The data used to create many PushSubscriptions.
1073
+ */
1074
+ data: Prisma.PushSubscriptionCreateManyInput | Prisma.PushSubscriptionCreateManyInput[]
1075
+ skipDuplicates?: boolean
1076
+ }
1077
+
1078
+ /**
1079
+ * PushSubscription createManyAndReturn
1080
+ */
1081
+ export type PushSubscriptionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1082
+ /**
1083
+ * Select specific fields to fetch from the PushSubscription
1084
+ */
1085
+ select?: Prisma.PushSubscriptionSelectCreateManyAndReturn<ExtArgs> | null
1086
+ /**
1087
+ * Omit specific fields from the PushSubscription
1088
+ */
1089
+ omit?: Prisma.PushSubscriptionOmit<ExtArgs> | null
1090
+ /**
1091
+ * The data used to create many PushSubscriptions.
1092
+ */
1093
+ data: Prisma.PushSubscriptionCreateManyInput | Prisma.PushSubscriptionCreateManyInput[]
1094
+ skipDuplicates?: boolean
1095
+ }
1096
+
1097
+ /**
1098
+ * PushSubscription update
1099
+ */
1100
+ export type PushSubscriptionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1101
+ /**
1102
+ * Select specific fields to fetch from the PushSubscription
1103
+ */
1104
+ select?: Prisma.PushSubscriptionSelect<ExtArgs> | null
1105
+ /**
1106
+ * Omit specific fields from the PushSubscription
1107
+ */
1108
+ omit?: Prisma.PushSubscriptionOmit<ExtArgs> | null
1109
+ /**
1110
+ * The data needed to update a PushSubscription.
1111
+ */
1112
+ data: Prisma.XOR<Prisma.PushSubscriptionUpdateInput, Prisma.PushSubscriptionUncheckedUpdateInput>
1113
+ /**
1114
+ * Choose, which PushSubscription to update.
1115
+ */
1116
+ where: Prisma.PushSubscriptionWhereUniqueInput
1117
+ }
1118
+
1119
+ /**
1120
+ * PushSubscription updateMany
1121
+ */
1122
+ export type PushSubscriptionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1123
+ /**
1124
+ * The data used to update PushSubscriptions.
1125
+ */
1126
+ data: Prisma.XOR<Prisma.PushSubscriptionUpdateManyMutationInput, Prisma.PushSubscriptionUncheckedUpdateManyInput>
1127
+ /**
1128
+ * Filter which PushSubscriptions to update
1129
+ */
1130
+ where?: Prisma.PushSubscriptionWhereInput
1131
+ /**
1132
+ * Limit how many PushSubscriptions to update.
1133
+ */
1134
+ limit?: number
1135
+ }
1136
+
1137
+ /**
1138
+ * PushSubscription updateManyAndReturn
1139
+ */
1140
+ export type PushSubscriptionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1141
+ /**
1142
+ * Select specific fields to fetch from the PushSubscription
1143
+ */
1144
+ select?: Prisma.PushSubscriptionSelectUpdateManyAndReturn<ExtArgs> | null
1145
+ /**
1146
+ * Omit specific fields from the PushSubscription
1147
+ */
1148
+ omit?: Prisma.PushSubscriptionOmit<ExtArgs> | null
1149
+ /**
1150
+ * The data used to update PushSubscriptions.
1151
+ */
1152
+ data: Prisma.XOR<Prisma.PushSubscriptionUpdateManyMutationInput, Prisma.PushSubscriptionUncheckedUpdateManyInput>
1153
+ /**
1154
+ * Filter which PushSubscriptions to update
1155
+ */
1156
+ where?: Prisma.PushSubscriptionWhereInput
1157
+ /**
1158
+ * Limit how many PushSubscriptions to update.
1159
+ */
1160
+ limit?: number
1161
+ }
1162
+
1163
+ /**
1164
+ * PushSubscription upsert
1165
+ */
1166
+ export type PushSubscriptionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1167
+ /**
1168
+ * Select specific fields to fetch from the PushSubscription
1169
+ */
1170
+ select?: Prisma.PushSubscriptionSelect<ExtArgs> | null
1171
+ /**
1172
+ * Omit specific fields from the PushSubscription
1173
+ */
1174
+ omit?: Prisma.PushSubscriptionOmit<ExtArgs> | null
1175
+ /**
1176
+ * The filter to search for the PushSubscription to update in case it exists.
1177
+ */
1178
+ where: Prisma.PushSubscriptionWhereUniqueInput
1179
+ /**
1180
+ * In case the PushSubscription found by the `where` argument doesn't exist, create a new PushSubscription with this data.
1181
+ */
1182
+ create: Prisma.XOR<Prisma.PushSubscriptionCreateInput, Prisma.PushSubscriptionUncheckedCreateInput>
1183
+ /**
1184
+ * In case the PushSubscription was found with the provided `where` argument, update it with this data.
1185
+ */
1186
+ update: Prisma.XOR<Prisma.PushSubscriptionUpdateInput, Prisma.PushSubscriptionUncheckedUpdateInput>
1187
+ }
1188
+
1189
+ /**
1190
+ * PushSubscription delete
1191
+ */
1192
+ export type PushSubscriptionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1193
+ /**
1194
+ * Select specific fields to fetch from the PushSubscription
1195
+ */
1196
+ select?: Prisma.PushSubscriptionSelect<ExtArgs> | null
1197
+ /**
1198
+ * Omit specific fields from the PushSubscription
1199
+ */
1200
+ omit?: Prisma.PushSubscriptionOmit<ExtArgs> | null
1201
+ /**
1202
+ * Filter which PushSubscription to delete.
1203
+ */
1204
+ where: Prisma.PushSubscriptionWhereUniqueInput
1205
+ }
1206
+
1207
+ /**
1208
+ * PushSubscription deleteMany
1209
+ */
1210
+ export type PushSubscriptionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1211
+ /**
1212
+ * Filter which PushSubscriptions to delete
1213
+ */
1214
+ where?: Prisma.PushSubscriptionWhereInput
1215
+ /**
1216
+ * Limit how many PushSubscriptions to delete.
1217
+ */
1218
+ limit?: number
1219
+ }
1220
+
1221
+ /**
1222
+ * PushSubscription without action
1223
+ */
1224
+ export type PushSubscriptionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1225
+ /**
1226
+ * Select specific fields to fetch from the PushSubscription
1227
+ */
1228
+ select?: Prisma.PushSubscriptionSelect<ExtArgs> | null
1229
+ /**
1230
+ * Omit specific fields from the PushSubscription
1231
+ */
1232
+ omit?: Prisma.PushSubscriptionOmit<ExtArgs> | null
1233
+ }