@wardby/cli 0.2.0 → 0.2.1

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 (157) hide show
  1. package/README.md +142 -67
  2. package/dist/claude-coding-worker/driver.d.ts +1 -0
  3. package/dist/claude-coding-worker/driver.js +4 -1
  4. package/dist/claude-coding-worker/main.js +3 -2
  5. package/dist/coding/protocol.d.ts +28 -3
  6. package/dist/coding/protocol.js +53 -2
  7. package/dist/coding-worker/artifact.d.ts +12 -0
  8. package/dist/coding-worker/artifact.js +48 -6
  9. package/dist/coding-worker/driver.d.ts +1 -0
  10. package/dist/coding-worker/driver.js +4 -1
  11. package/dist/coding-worker/errors.d.ts +7 -0
  12. package/dist/coding-worker/errors.js +18 -0
  13. package/dist/coding-worker/main.js +3 -2
  14. package/dist/core/budget-groups.d.ts +1 -1
  15. package/dist/core/coding-queue.d.ts +1 -1
  16. package/dist/core/datastores.d.ts +1 -1
  17. package/dist/core/db.d.ts +36 -2
  18. package/dist/core/db.js +69 -2
  19. package/dist/core/dispatch.d.ts +16 -1
  20. package/dist/core/dispatch.js +33 -5
  21. package/dist/core/http-runtime.js +3 -4
  22. package/dist/core/lease.d.ts +1 -1
  23. package/dist/core/private-directory.d.ts +20 -0
  24. package/dist/core/private-directory.js +36 -0
  25. package/dist/core/reconciler.d.ts +1 -1
  26. package/dist/core/runner.d.ts +1 -1
  27. package/dist/core/scheduler.d.ts +1 -1
  28. package/dist/core/secrets.d.ts +1 -1
  29. package/dist/core/subagent-memory-tools.d.ts +1 -1
  30. package/dist/core/webhooks.d.ts +1 -1
  31. package/dist/generated/prisma/browser.d.ts +228 -0
  32. package/dist/generated/prisma/browser.js +17 -0
  33. package/dist/generated/prisma/client.d.ts +247 -0
  34. package/dist/generated/prisma/client.js +34 -0
  35. package/dist/generated/prisma/commonInputTypes.d.ts +809 -0
  36. package/dist/generated/prisma/commonInputTypes.js +10 -0
  37. package/dist/generated/prisma/enums.d.ts +53 -0
  38. package/dist/generated/prisma/enums.js +54 -0
  39. package/dist/generated/prisma/internal/class.d.ts +462 -0
  40. package/dist/generated/prisma/internal/class.js +49 -0
  41. package/dist/generated/prisma/internal/prismaNamespace.d.ts +3325 -0
  42. package/dist/generated/prisma/internal/prismaNamespace.js +455 -0
  43. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +449 -0
  44. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +426 -0
  45. package/dist/generated/prisma/models/Agent.d.ts +3267 -0
  46. package/dist/generated/prisma/models/Agent.js +1 -0
  47. package/dist/generated/prisma/models/AgentDatastore.d.ts +1210 -0
  48. package/dist/generated/prisma/models/AgentDatastore.js +1 -0
  49. package/dist/generated/prisma/models/AgentMemory.d.ts +986 -0
  50. package/dist/generated/prisma/models/AgentMemory.js +1 -0
  51. package/dist/generated/prisma/models/AgentSecret.d.ts +1212 -0
  52. package/dist/generated/prisma/models/AgentSecret.js +1 -0
  53. package/dist/generated/prisma/models/AgentSubAgent.d.ts +1217 -0
  54. package/dist/generated/prisma/models/AgentSubAgent.js +1 -0
  55. package/dist/generated/prisma/models/AgentTool.d.ts +1309 -0
  56. package/dist/generated/prisma/models/AgentTool.js +1 -0
  57. package/dist/generated/prisma/models/AuthFormChallenge.d.ts +1298 -0
  58. package/dist/generated/prisma/models/AuthFormChallenge.js +1 -0
  59. package/dist/generated/prisma/models/AuthLoginKey.d.ts +1245 -0
  60. package/dist/generated/prisma/models/AuthLoginKey.js +1 -0
  61. package/dist/generated/prisma/models/AuthRateLimit.d.ts +979 -0
  62. package/dist/generated/prisma/models/AuthRateLimit.js +1 -0
  63. package/dist/generated/prisma/models/AuthSession.d.ts +1376 -0
  64. package/dist/generated/prisma/models/AuthSession.js +1 -0
  65. package/dist/generated/prisma/models/AuthUser.d.ts +1645 -0
  66. package/dist/generated/prisma/models/AuthUser.js +1 -0
  67. package/dist/generated/prisma/models/BudgetGroup.d.ts +1548 -0
  68. package/dist/generated/prisma/models/BudgetGroup.js +1 -0
  69. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +1430 -0
  70. package/dist/generated/prisma/models/CodingAgentProfile.js +1 -0
  71. package/dist/generated/prisma/models/CodingProxyRequest.d.ts +1749 -0
  72. package/dist/generated/prisma/models/CodingProxyRequest.js +1 -0
  73. package/dist/generated/prisma/models/CodingProxySession.d.ts +1505 -0
  74. package/dist/generated/prisma/models/CodingProxySession.js +1 -0
  75. package/dist/generated/prisma/models/CodingRun.d.ts +2402 -0
  76. package/dist/generated/prisma/models/CodingRun.js +1 -0
  77. package/dist/generated/prisma/models/Datastore.d.ts +1434 -0
  78. package/dist/generated/prisma/models/Datastore.js +1 -0
  79. package/dist/generated/prisma/models/DatastoreEntry.d.ts +1314 -0
  80. package/dist/generated/prisma/models/DatastoreEntry.js +1 -0
  81. package/dist/generated/prisma/models/OAuthAuthorizationCode.d.ts +1526 -0
  82. package/dist/generated/prisma/models/OAuthAuthorizationCode.js +1 -0
  83. package/dist/generated/prisma/models/OAuthAuthorizationRequest.d.ts +1350 -0
  84. package/dist/generated/prisma/models/OAuthAuthorizationRequest.js +1 -0
  85. package/dist/generated/prisma/models/OAuthClient.d.ts +1289 -0
  86. package/dist/generated/prisma/models/OAuthClient.js +1 -0
  87. package/dist/generated/prisma/models/OAuthFamily.d.ts +1540 -0
  88. package/dist/generated/prisma/models/OAuthFamily.js +1 -0
  89. package/dist/generated/prisma/models/OAuthGrant.d.ts +1280 -0
  90. package/dist/generated/prisma/models/OAuthGrant.js +1 -0
  91. package/dist/generated/prisma/models/Principal.d.ts +1790 -0
  92. package/dist/generated/prisma/models/Principal.js +1 -0
  93. package/dist/generated/prisma/models/Run.d.ts +2281 -0
  94. package/dist/generated/prisma/models/Run.js +1 -0
  95. package/dist/generated/prisma/models/SchedulerLease.d.ts +970 -0
  96. package/dist/generated/prisma/models/SchedulerLease.js +1 -0
  97. package/dist/generated/prisma/models/Secret.d.ts +1399 -0
  98. package/dist/generated/prisma/models/Secret.js +1 -0
  99. package/dist/generated/prisma/models/SecretElicitationOutcome.d.ts +973 -0
  100. package/dist/generated/prisma/models/SecretElicitationOutcome.js +1 -0
  101. package/dist/generated/prisma/models/Task.d.ts +1176 -0
  102. package/dist/generated/prisma/models/Task.js +1 -0
  103. package/dist/generated/prisma/models/Tool.d.ts +1478 -0
  104. package/dist/generated/prisma/models/Tool.js +1 -0
  105. package/dist/generated/prisma/models/Webhook.d.ts +1386 -0
  106. package/dist/generated/prisma/models/Webhook.js +1 -0
  107. package/dist/generated/prisma/models.d.ts +32 -0
  108. package/dist/generated/prisma/models.js +1 -0
  109. package/dist/import/create.d.ts +1 -1
  110. package/dist/import/create.js +1 -1
  111. package/dist/import/index.d.ts +1 -1
  112. package/dist/mcp/auth/ownership.d.ts +19 -19
  113. package/dist/mcp/auth/principal.d.ts +1 -1
  114. package/dist/mcp/auth/resource-server.d.ts +1 -1
  115. package/dist/mcp/auth/self-hosted/browser.js +20 -6
  116. package/dist/mcp/auth/self-hosted/cli.d.ts +1 -1
  117. package/dist/mcp/auth/self-hosted/credentials.d.ts +1 -1
  118. package/dist/mcp/auth/self-hosted/rate-limit.d.ts +1 -1
  119. package/dist/mcp/auth/self-hosted/session.d.ts +1 -1
  120. package/dist/mcp/context.d.ts +1 -1
  121. package/dist/mcp/server.d.ts +1 -1
  122. package/dist/mcp/shared/page-style.d.ts +16 -0
  123. package/dist/mcp/shared/page-style.js +129 -0
  124. package/dist/mcp/tasks/manager.d.ts +1 -1
  125. package/dist/mcp/tools/agents.js +1 -1
  126. package/dist/mcp/tools/datastore.js +1 -1
  127. package/dist/mcp/tools/scheduling.js +1 -1
  128. package/dist/mcp/tools/secret-elicitation-form.d.ts +1 -1
  129. package/dist/mcp/tools/secret-elicitation-form.js +10 -28
  130. package/dist/mcp/tools/secret-elicitation.d.ts +1 -1
  131. package/dist/mcp/tools/subagents.js +1 -1
  132. package/dist/mcp/tools/tools.js +1 -1
  133. package/dist/mcp/transport/streamable-http.d.ts +1 -1
  134. package/dist/mcp/unattended-schedules.d.ts +1 -1
  135. package/dist/mcp/webhooks/ingress.d.ts +1 -1
  136. package/dist/providers/auth/index.d.ts +1 -1
  137. package/dist/providers/auth/self-hosted.d.ts +2 -2
  138. package/dist/providers/coding-proxy/prisma-ledger.d.ts +1 -1
  139. package/dist/providers/coding-proxy/runtime.d.ts +1 -1
  140. package/dist/providers/datastore/postgres.d.ts +1 -1
  141. package/dist/providers/executor/build.d.ts +1 -1
  142. package/dist/providers/executor/composition.d.ts +1 -1
  143. package/dist/providers/executor/container.d.ts +1 -1
  144. package/dist/providers/executor/container.js +10 -3
  145. package/dist/providers/executor/dbos.d.ts +1 -1
  146. package/dist/providers/jobs/docker.d.ts +11 -0
  147. package/dist/providers/jobs/docker.js +34 -18
  148. package/dist/providers/jobs/kubernetes.js +5 -10
  149. package/dist/providers/jobs/types.d.ts +2 -0
  150. package/dist/providers/memory/postgres.d.ts +1 -1
  151. package/dist/providers/vcs/git.js +2 -1
  152. package/dist/quickstart/index.js +22 -31
  153. package/dist/quickstart/migrate.d.ts +23 -0
  154. package/dist/quickstart/migrate.js +125 -0
  155. package/package.json +20 -10
  156. package/prisma/migrate.config.mjs +20 -0
  157. package/prisma/schema.prisma +10 -2
@@ -0,0 +1,1526 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model OAuthAuthorizationCode
5
+ *
6
+ */
7
+ export type OAuthAuthorizationCodeModel = runtime.Types.Result.DefaultSelection<Prisma.$OAuthAuthorizationCodePayload>;
8
+ export type AggregateOAuthAuthorizationCode = {
9
+ _count: OAuthAuthorizationCodeCountAggregateOutputType | null;
10
+ _min: OAuthAuthorizationCodeMinAggregateOutputType | null;
11
+ _max: OAuthAuthorizationCodeMaxAggregateOutputType | null;
12
+ };
13
+ export type OAuthAuthorizationCodeMinAggregateOutputType = {
14
+ codeId: string | null;
15
+ secretHash: string | null;
16
+ clientId: string | null;
17
+ userId: string | null;
18
+ redirectUri: string | null;
19
+ resource: string | null;
20
+ scope: string | null;
21
+ codeChallenge: string | null;
22
+ createdAt: Date | null;
23
+ expiresAt: Date | null;
24
+ consumedAt: Date | null;
25
+ };
26
+ export type OAuthAuthorizationCodeMaxAggregateOutputType = {
27
+ codeId: string | null;
28
+ secretHash: string | null;
29
+ clientId: string | null;
30
+ userId: string | null;
31
+ redirectUri: string | null;
32
+ resource: string | null;
33
+ scope: string | null;
34
+ codeChallenge: string | null;
35
+ createdAt: Date | null;
36
+ expiresAt: Date | null;
37
+ consumedAt: Date | null;
38
+ };
39
+ export type OAuthAuthorizationCodeCountAggregateOutputType = {
40
+ codeId: number;
41
+ secretHash: number;
42
+ clientId: number;
43
+ userId: number;
44
+ redirectUri: number;
45
+ resource: number;
46
+ scope: number;
47
+ codeChallenge: number;
48
+ createdAt: number;
49
+ expiresAt: number;
50
+ consumedAt: number;
51
+ _all: number;
52
+ };
53
+ export type OAuthAuthorizationCodeMinAggregateInputType = {
54
+ codeId?: true;
55
+ secretHash?: true;
56
+ clientId?: true;
57
+ userId?: true;
58
+ redirectUri?: true;
59
+ resource?: true;
60
+ scope?: true;
61
+ codeChallenge?: true;
62
+ createdAt?: true;
63
+ expiresAt?: true;
64
+ consumedAt?: true;
65
+ };
66
+ export type OAuthAuthorizationCodeMaxAggregateInputType = {
67
+ codeId?: true;
68
+ secretHash?: true;
69
+ clientId?: true;
70
+ userId?: true;
71
+ redirectUri?: true;
72
+ resource?: true;
73
+ scope?: true;
74
+ codeChallenge?: true;
75
+ createdAt?: true;
76
+ expiresAt?: true;
77
+ consumedAt?: true;
78
+ };
79
+ export type OAuthAuthorizationCodeCountAggregateInputType = {
80
+ codeId?: true;
81
+ secretHash?: true;
82
+ clientId?: true;
83
+ userId?: true;
84
+ redirectUri?: true;
85
+ resource?: true;
86
+ scope?: true;
87
+ codeChallenge?: true;
88
+ createdAt?: true;
89
+ expiresAt?: true;
90
+ consumedAt?: true;
91
+ _all?: true;
92
+ };
93
+ export type OAuthAuthorizationCodeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
94
+ /**
95
+ * Filter which OAuthAuthorizationCode to aggregate.
96
+ */
97
+ where?: Prisma.OAuthAuthorizationCodeWhereInput;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
100
+ *
101
+ * Determine the order of OAuthAuthorizationCodes to fetch.
102
+ */
103
+ orderBy?: Prisma.OAuthAuthorizationCodeOrderByWithRelationInput | Prisma.OAuthAuthorizationCodeOrderByWithRelationInput[];
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
106
+ *
107
+ * Sets the start position
108
+ */
109
+ cursor?: Prisma.OAuthAuthorizationCodeWhereUniqueInput;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
112
+ *
113
+ * Take `±n` OAuthAuthorizationCodes from the position of the cursor.
114
+ */
115
+ take?: number;
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
118
+ *
119
+ * Skip the first `n` OAuthAuthorizationCodes.
120
+ */
121
+ skip?: number;
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
124
+ *
125
+ * Count returned OAuthAuthorizationCodes
126
+ **/
127
+ _count?: true | OAuthAuthorizationCodeCountAggregateInputType;
128
+ /**
129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
130
+ *
131
+ * Select which fields to find the minimum value
132
+ **/
133
+ _min?: OAuthAuthorizationCodeMinAggregateInputType;
134
+ /**
135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
136
+ *
137
+ * Select which fields to find the maximum value
138
+ **/
139
+ _max?: OAuthAuthorizationCodeMaxAggregateInputType;
140
+ };
141
+ export type GetOAuthAuthorizationCodeAggregateType<T extends OAuthAuthorizationCodeAggregateArgs> = {
142
+ [P in keyof T & keyof AggregateOAuthAuthorizationCode]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateOAuthAuthorizationCode[P]> : Prisma.GetScalarType<T[P], AggregateOAuthAuthorizationCode[P]>;
143
+ };
144
+ export type OAuthAuthorizationCodeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
145
+ where?: Prisma.OAuthAuthorizationCodeWhereInput;
146
+ orderBy?: Prisma.OAuthAuthorizationCodeOrderByWithAggregationInput | Prisma.OAuthAuthorizationCodeOrderByWithAggregationInput[];
147
+ by: Prisma.OAuthAuthorizationCodeScalarFieldEnum[] | Prisma.OAuthAuthorizationCodeScalarFieldEnum;
148
+ having?: Prisma.OAuthAuthorizationCodeScalarWhereWithAggregatesInput;
149
+ take?: number;
150
+ skip?: number;
151
+ _count?: OAuthAuthorizationCodeCountAggregateInputType | true;
152
+ _min?: OAuthAuthorizationCodeMinAggregateInputType;
153
+ _max?: OAuthAuthorizationCodeMaxAggregateInputType;
154
+ };
155
+ export type OAuthAuthorizationCodeGroupByOutputType = {
156
+ codeId: string;
157
+ secretHash: string;
158
+ clientId: string;
159
+ userId: string;
160
+ redirectUri: string;
161
+ resource: string;
162
+ scope: string;
163
+ codeChallenge: string;
164
+ createdAt: Date;
165
+ expiresAt: Date;
166
+ consumedAt: Date | null;
167
+ _count: OAuthAuthorizationCodeCountAggregateOutputType | null;
168
+ _min: OAuthAuthorizationCodeMinAggregateOutputType | null;
169
+ _max: OAuthAuthorizationCodeMaxAggregateOutputType | null;
170
+ };
171
+ export type GetOAuthAuthorizationCodeGroupByPayload<T extends OAuthAuthorizationCodeGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<OAuthAuthorizationCodeGroupByOutputType, T['by']> & {
172
+ [P in ((keyof T) & (keyof OAuthAuthorizationCodeGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], OAuthAuthorizationCodeGroupByOutputType[P]> : Prisma.GetScalarType<T[P], OAuthAuthorizationCodeGroupByOutputType[P]>;
173
+ }>>;
174
+ export type OAuthAuthorizationCodeWhereInput = {
175
+ AND?: Prisma.OAuthAuthorizationCodeWhereInput | Prisma.OAuthAuthorizationCodeWhereInput[];
176
+ OR?: Prisma.OAuthAuthorizationCodeWhereInput[];
177
+ NOT?: Prisma.OAuthAuthorizationCodeWhereInput | Prisma.OAuthAuthorizationCodeWhereInput[];
178
+ codeId?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
179
+ secretHash?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
180
+ clientId?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
181
+ userId?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
182
+ redirectUri?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
183
+ resource?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
184
+ scope?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
185
+ codeChallenge?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
186
+ createdAt?: Prisma.DateTimeFilter<"OAuthAuthorizationCode"> | Date | string;
187
+ expiresAt?: Prisma.DateTimeFilter<"OAuthAuthorizationCode"> | Date | string;
188
+ consumedAt?: Prisma.DateTimeNullableFilter<"OAuthAuthorizationCode"> | Date | string | null;
189
+ client?: Prisma.XOR<Prisma.OAuthClientScalarRelationFilter, Prisma.OAuthClientWhereInput>;
190
+ user?: Prisma.XOR<Prisma.AuthUserScalarRelationFilter, Prisma.AuthUserWhereInput>;
191
+ };
192
+ export type OAuthAuthorizationCodeOrderByWithRelationInput = {
193
+ codeId?: Prisma.SortOrder;
194
+ secretHash?: Prisma.SortOrder;
195
+ clientId?: Prisma.SortOrder;
196
+ userId?: Prisma.SortOrder;
197
+ redirectUri?: Prisma.SortOrder;
198
+ resource?: Prisma.SortOrder;
199
+ scope?: Prisma.SortOrder;
200
+ codeChallenge?: Prisma.SortOrder;
201
+ createdAt?: Prisma.SortOrder;
202
+ expiresAt?: Prisma.SortOrder;
203
+ consumedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
204
+ client?: Prisma.OAuthClientOrderByWithRelationInput;
205
+ user?: Prisma.AuthUserOrderByWithRelationInput;
206
+ };
207
+ export type OAuthAuthorizationCodeWhereUniqueInput = Prisma.AtLeast<{
208
+ codeId?: string;
209
+ AND?: Prisma.OAuthAuthorizationCodeWhereInput | Prisma.OAuthAuthorizationCodeWhereInput[];
210
+ OR?: Prisma.OAuthAuthorizationCodeWhereInput[];
211
+ NOT?: Prisma.OAuthAuthorizationCodeWhereInput | Prisma.OAuthAuthorizationCodeWhereInput[];
212
+ secretHash?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
213
+ clientId?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
214
+ userId?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
215
+ redirectUri?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
216
+ resource?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
217
+ scope?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
218
+ codeChallenge?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
219
+ createdAt?: Prisma.DateTimeFilter<"OAuthAuthorizationCode"> | Date | string;
220
+ expiresAt?: Prisma.DateTimeFilter<"OAuthAuthorizationCode"> | Date | string;
221
+ consumedAt?: Prisma.DateTimeNullableFilter<"OAuthAuthorizationCode"> | Date | string | null;
222
+ client?: Prisma.XOR<Prisma.OAuthClientScalarRelationFilter, Prisma.OAuthClientWhereInput>;
223
+ user?: Prisma.XOR<Prisma.AuthUserScalarRelationFilter, Prisma.AuthUserWhereInput>;
224
+ }, "codeId">;
225
+ export type OAuthAuthorizationCodeOrderByWithAggregationInput = {
226
+ codeId?: Prisma.SortOrder;
227
+ secretHash?: Prisma.SortOrder;
228
+ clientId?: Prisma.SortOrder;
229
+ userId?: Prisma.SortOrder;
230
+ redirectUri?: Prisma.SortOrder;
231
+ resource?: Prisma.SortOrder;
232
+ scope?: Prisma.SortOrder;
233
+ codeChallenge?: Prisma.SortOrder;
234
+ createdAt?: Prisma.SortOrder;
235
+ expiresAt?: Prisma.SortOrder;
236
+ consumedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
237
+ _count?: Prisma.OAuthAuthorizationCodeCountOrderByAggregateInput;
238
+ _max?: Prisma.OAuthAuthorizationCodeMaxOrderByAggregateInput;
239
+ _min?: Prisma.OAuthAuthorizationCodeMinOrderByAggregateInput;
240
+ };
241
+ export type OAuthAuthorizationCodeScalarWhereWithAggregatesInput = {
242
+ AND?: Prisma.OAuthAuthorizationCodeScalarWhereWithAggregatesInput | Prisma.OAuthAuthorizationCodeScalarWhereWithAggregatesInput[];
243
+ OR?: Prisma.OAuthAuthorizationCodeScalarWhereWithAggregatesInput[];
244
+ NOT?: Prisma.OAuthAuthorizationCodeScalarWhereWithAggregatesInput | Prisma.OAuthAuthorizationCodeScalarWhereWithAggregatesInput[];
245
+ codeId?: Prisma.StringWithAggregatesFilter<"OAuthAuthorizationCode"> | string;
246
+ secretHash?: Prisma.StringWithAggregatesFilter<"OAuthAuthorizationCode"> | string;
247
+ clientId?: Prisma.StringWithAggregatesFilter<"OAuthAuthorizationCode"> | string;
248
+ userId?: Prisma.StringWithAggregatesFilter<"OAuthAuthorizationCode"> | string;
249
+ redirectUri?: Prisma.StringWithAggregatesFilter<"OAuthAuthorizationCode"> | string;
250
+ resource?: Prisma.StringWithAggregatesFilter<"OAuthAuthorizationCode"> | string;
251
+ scope?: Prisma.StringWithAggregatesFilter<"OAuthAuthorizationCode"> | string;
252
+ codeChallenge?: Prisma.StringWithAggregatesFilter<"OAuthAuthorizationCode"> | string;
253
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"OAuthAuthorizationCode"> | Date | string;
254
+ expiresAt?: Prisma.DateTimeWithAggregatesFilter<"OAuthAuthorizationCode"> | Date | string;
255
+ consumedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"OAuthAuthorizationCode"> | Date | string | null;
256
+ };
257
+ export type OAuthAuthorizationCodeCreateInput = {
258
+ codeId: string;
259
+ secretHash: string;
260
+ redirectUri: string;
261
+ resource: string;
262
+ scope: string;
263
+ codeChallenge: string;
264
+ createdAt?: Date | string;
265
+ expiresAt: Date | string;
266
+ consumedAt?: Date | string | null;
267
+ client: Prisma.OAuthClientCreateNestedOneWithoutCodesInput;
268
+ user: Prisma.AuthUserCreateNestedOneWithoutCodesInput;
269
+ };
270
+ export type OAuthAuthorizationCodeUncheckedCreateInput = {
271
+ codeId: string;
272
+ secretHash: string;
273
+ clientId: string;
274
+ userId: string;
275
+ redirectUri: string;
276
+ resource: string;
277
+ scope: string;
278
+ codeChallenge: string;
279
+ createdAt?: Date | string;
280
+ expiresAt: Date | string;
281
+ consumedAt?: Date | string | null;
282
+ };
283
+ export type OAuthAuthorizationCodeUpdateInput = {
284
+ codeId?: Prisma.StringFieldUpdateOperationsInput | string;
285
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
286
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
287
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
288
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
289
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
290
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
291
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
292
+ consumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
293
+ client?: Prisma.OAuthClientUpdateOneRequiredWithoutCodesNestedInput;
294
+ user?: Prisma.AuthUserUpdateOneRequiredWithoutCodesNestedInput;
295
+ };
296
+ export type OAuthAuthorizationCodeUncheckedUpdateInput = {
297
+ codeId?: Prisma.StringFieldUpdateOperationsInput | string;
298
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
299
+ clientId?: Prisma.StringFieldUpdateOperationsInput | string;
300
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
301
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
302
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
303
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
304
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
305
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
306
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
307
+ consumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
308
+ };
309
+ export type OAuthAuthorizationCodeCreateManyInput = {
310
+ codeId: string;
311
+ secretHash: string;
312
+ clientId: string;
313
+ userId: string;
314
+ redirectUri: string;
315
+ resource: string;
316
+ scope: string;
317
+ codeChallenge: string;
318
+ createdAt?: Date | string;
319
+ expiresAt: Date | string;
320
+ consumedAt?: Date | string | null;
321
+ };
322
+ export type OAuthAuthorizationCodeUpdateManyMutationInput = {
323
+ codeId?: Prisma.StringFieldUpdateOperationsInput | string;
324
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
325
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
326
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
327
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
328
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
329
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
330
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
331
+ consumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
332
+ };
333
+ export type OAuthAuthorizationCodeUncheckedUpdateManyInput = {
334
+ codeId?: Prisma.StringFieldUpdateOperationsInput | string;
335
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
336
+ clientId?: Prisma.StringFieldUpdateOperationsInput | string;
337
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
338
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
339
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
340
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
341
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
342
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
343
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
344
+ consumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
345
+ };
346
+ export type OAuthAuthorizationCodeListRelationFilter = {
347
+ every?: Prisma.OAuthAuthorizationCodeWhereInput;
348
+ some?: Prisma.OAuthAuthorizationCodeWhereInput;
349
+ none?: Prisma.OAuthAuthorizationCodeWhereInput;
350
+ };
351
+ export type OAuthAuthorizationCodeOrderByRelationAggregateInput = {
352
+ _count?: Prisma.SortOrder;
353
+ };
354
+ export type OAuthAuthorizationCodeCountOrderByAggregateInput = {
355
+ codeId?: Prisma.SortOrder;
356
+ secretHash?: Prisma.SortOrder;
357
+ clientId?: Prisma.SortOrder;
358
+ userId?: Prisma.SortOrder;
359
+ redirectUri?: Prisma.SortOrder;
360
+ resource?: Prisma.SortOrder;
361
+ scope?: Prisma.SortOrder;
362
+ codeChallenge?: Prisma.SortOrder;
363
+ createdAt?: Prisma.SortOrder;
364
+ expiresAt?: Prisma.SortOrder;
365
+ consumedAt?: Prisma.SortOrder;
366
+ };
367
+ export type OAuthAuthorizationCodeMaxOrderByAggregateInput = {
368
+ codeId?: Prisma.SortOrder;
369
+ secretHash?: Prisma.SortOrder;
370
+ clientId?: Prisma.SortOrder;
371
+ userId?: Prisma.SortOrder;
372
+ redirectUri?: Prisma.SortOrder;
373
+ resource?: Prisma.SortOrder;
374
+ scope?: Prisma.SortOrder;
375
+ codeChallenge?: Prisma.SortOrder;
376
+ createdAt?: Prisma.SortOrder;
377
+ expiresAt?: Prisma.SortOrder;
378
+ consumedAt?: Prisma.SortOrder;
379
+ };
380
+ export type OAuthAuthorizationCodeMinOrderByAggregateInput = {
381
+ codeId?: Prisma.SortOrder;
382
+ secretHash?: Prisma.SortOrder;
383
+ clientId?: Prisma.SortOrder;
384
+ userId?: Prisma.SortOrder;
385
+ redirectUri?: Prisma.SortOrder;
386
+ resource?: Prisma.SortOrder;
387
+ scope?: Prisma.SortOrder;
388
+ codeChallenge?: Prisma.SortOrder;
389
+ createdAt?: Prisma.SortOrder;
390
+ expiresAt?: Prisma.SortOrder;
391
+ consumedAt?: Prisma.SortOrder;
392
+ };
393
+ export type OAuthAuthorizationCodeCreateNestedManyWithoutClientInput = {
394
+ create?: Prisma.XOR<Prisma.OAuthAuthorizationCodeCreateWithoutClientInput, Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutClientInput> | Prisma.OAuthAuthorizationCodeCreateWithoutClientInput[] | Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutClientInput[];
395
+ connectOrCreate?: Prisma.OAuthAuthorizationCodeCreateOrConnectWithoutClientInput | Prisma.OAuthAuthorizationCodeCreateOrConnectWithoutClientInput[];
396
+ createMany?: Prisma.OAuthAuthorizationCodeCreateManyClientInputEnvelope;
397
+ connect?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
398
+ };
399
+ export type OAuthAuthorizationCodeUncheckedCreateNestedManyWithoutClientInput = {
400
+ create?: Prisma.XOR<Prisma.OAuthAuthorizationCodeCreateWithoutClientInput, Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutClientInput> | Prisma.OAuthAuthorizationCodeCreateWithoutClientInput[] | Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutClientInput[];
401
+ connectOrCreate?: Prisma.OAuthAuthorizationCodeCreateOrConnectWithoutClientInput | Prisma.OAuthAuthorizationCodeCreateOrConnectWithoutClientInput[];
402
+ createMany?: Prisma.OAuthAuthorizationCodeCreateManyClientInputEnvelope;
403
+ connect?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
404
+ };
405
+ export type OAuthAuthorizationCodeUpdateManyWithoutClientNestedInput = {
406
+ create?: Prisma.XOR<Prisma.OAuthAuthorizationCodeCreateWithoutClientInput, Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutClientInput> | Prisma.OAuthAuthorizationCodeCreateWithoutClientInput[] | Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutClientInput[];
407
+ connectOrCreate?: Prisma.OAuthAuthorizationCodeCreateOrConnectWithoutClientInput | Prisma.OAuthAuthorizationCodeCreateOrConnectWithoutClientInput[];
408
+ upsert?: Prisma.OAuthAuthorizationCodeUpsertWithWhereUniqueWithoutClientInput | Prisma.OAuthAuthorizationCodeUpsertWithWhereUniqueWithoutClientInput[];
409
+ createMany?: Prisma.OAuthAuthorizationCodeCreateManyClientInputEnvelope;
410
+ set?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
411
+ disconnect?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
412
+ delete?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
413
+ connect?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
414
+ update?: Prisma.OAuthAuthorizationCodeUpdateWithWhereUniqueWithoutClientInput | Prisma.OAuthAuthorizationCodeUpdateWithWhereUniqueWithoutClientInput[];
415
+ updateMany?: Prisma.OAuthAuthorizationCodeUpdateManyWithWhereWithoutClientInput | Prisma.OAuthAuthorizationCodeUpdateManyWithWhereWithoutClientInput[];
416
+ deleteMany?: Prisma.OAuthAuthorizationCodeScalarWhereInput | Prisma.OAuthAuthorizationCodeScalarWhereInput[];
417
+ };
418
+ export type OAuthAuthorizationCodeUncheckedUpdateManyWithoutClientNestedInput = {
419
+ create?: Prisma.XOR<Prisma.OAuthAuthorizationCodeCreateWithoutClientInput, Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutClientInput> | Prisma.OAuthAuthorizationCodeCreateWithoutClientInput[] | Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutClientInput[];
420
+ connectOrCreate?: Prisma.OAuthAuthorizationCodeCreateOrConnectWithoutClientInput | Prisma.OAuthAuthorizationCodeCreateOrConnectWithoutClientInput[];
421
+ upsert?: Prisma.OAuthAuthorizationCodeUpsertWithWhereUniqueWithoutClientInput | Prisma.OAuthAuthorizationCodeUpsertWithWhereUniqueWithoutClientInput[];
422
+ createMany?: Prisma.OAuthAuthorizationCodeCreateManyClientInputEnvelope;
423
+ set?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
424
+ disconnect?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
425
+ delete?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
426
+ connect?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
427
+ update?: Prisma.OAuthAuthorizationCodeUpdateWithWhereUniqueWithoutClientInput | Prisma.OAuthAuthorizationCodeUpdateWithWhereUniqueWithoutClientInput[];
428
+ updateMany?: Prisma.OAuthAuthorizationCodeUpdateManyWithWhereWithoutClientInput | Prisma.OAuthAuthorizationCodeUpdateManyWithWhereWithoutClientInput[];
429
+ deleteMany?: Prisma.OAuthAuthorizationCodeScalarWhereInput | Prisma.OAuthAuthorizationCodeScalarWhereInput[];
430
+ };
431
+ export type OAuthAuthorizationCodeCreateNestedManyWithoutUserInput = {
432
+ create?: Prisma.XOR<Prisma.OAuthAuthorizationCodeCreateWithoutUserInput, Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutUserInput> | Prisma.OAuthAuthorizationCodeCreateWithoutUserInput[] | Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutUserInput[];
433
+ connectOrCreate?: Prisma.OAuthAuthorizationCodeCreateOrConnectWithoutUserInput | Prisma.OAuthAuthorizationCodeCreateOrConnectWithoutUserInput[];
434
+ createMany?: Prisma.OAuthAuthorizationCodeCreateManyUserInputEnvelope;
435
+ connect?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
436
+ };
437
+ export type OAuthAuthorizationCodeUncheckedCreateNestedManyWithoutUserInput = {
438
+ create?: Prisma.XOR<Prisma.OAuthAuthorizationCodeCreateWithoutUserInput, Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutUserInput> | Prisma.OAuthAuthorizationCodeCreateWithoutUserInput[] | Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutUserInput[];
439
+ connectOrCreate?: Prisma.OAuthAuthorizationCodeCreateOrConnectWithoutUserInput | Prisma.OAuthAuthorizationCodeCreateOrConnectWithoutUserInput[];
440
+ createMany?: Prisma.OAuthAuthorizationCodeCreateManyUserInputEnvelope;
441
+ connect?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
442
+ };
443
+ export type OAuthAuthorizationCodeUpdateManyWithoutUserNestedInput = {
444
+ create?: Prisma.XOR<Prisma.OAuthAuthorizationCodeCreateWithoutUserInput, Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutUserInput> | Prisma.OAuthAuthorizationCodeCreateWithoutUserInput[] | Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutUserInput[];
445
+ connectOrCreate?: Prisma.OAuthAuthorizationCodeCreateOrConnectWithoutUserInput | Prisma.OAuthAuthorizationCodeCreateOrConnectWithoutUserInput[];
446
+ upsert?: Prisma.OAuthAuthorizationCodeUpsertWithWhereUniqueWithoutUserInput | Prisma.OAuthAuthorizationCodeUpsertWithWhereUniqueWithoutUserInput[];
447
+ createMany?: Prisma.OAuthAuthorizationCodeCreateManyUserInputEnvelope;
448
+ set?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
449
+ disconnect?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
450
+ delete?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
451
+ connect?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
452
+ update?: Prisma.OAuthAuthorizationCodeUpdateWithWhereUniqueWithoutUserInput | Prisma.OAuthAuthorizationCodeUpdateWithWhereUniqueWithoutUserInput[];
453
+ updateMany?: Prisma.OAuthAuthorizationCodeUpdateManyWithWhereWithoutUserInput | Prisma.OAuthAuthorizationCodeUpdateManyWithWhereWithoutUserInput[];
454
+ deleteMany?: Prisma.OAuthAuthorizationCodeScalarWhereInput | Prisma.OAuthAuthorizationCodeScalarWhereInput[];
455
+ };
456
+ export type OAuthAuthorizationCodeUncheckedUpdateManyWithoutUserNestedInput = {
457
+ create?: Prisma.XOR<Prisma.OAuthAuthorizationCodeCreateWithoutUserInput, Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutUserInput> | Prisma.OAuthAuthorizationCodeCreateWithoutUserInput[] | Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutUserInput[];
458
+ connectOrCreate?: Prisma.OAuthAuthorizationCodeCreateOrConnectWithoutUserInput | Prisma.OAuthAuthorizationCodeCreateOrConnectWithoutUserInput[];
459
+ upsert?: Prisma.OAuthAuthorizationCodeUpsertWithWhereUniqueWithoutUserInput | Prisma.OAuthAuthorizationCodeUpsertWithWhereUniqueWithoutUserInput[];
460
+ createMany?: Prisma.OAuthAuthorizationCodeCreateManyUserInputEnvelope;
461
+ set?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
462
+ disconnect?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
463
+ delete?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
464
+ connect?: Prisma.OAuthAuthorizationCodeWhereUniqueInput | Prisma.OAuthAuthorizationCodeWhereUniqueInput[];
465
+ update?: Prisma.OAuthAuthorizationCodeUpdateWithWhereUniqueWithoutUserInput | Prisma.OAuthAuthorizationCodeUpdateWithWhereUniqueWithoutUserInput[];
466
+ updateMany?: Prisma.OAuthAuthorizationCodeUpdateManyWithWhereWithoutUserInput | Prisma.OAuthAuthorizationCodeUpdateManyWithWhereWithoutUserInput[];
467
+ deleteMany?: Prisma.OAuthAuthorizationCodeScalarWhereInput | Prisma.OAuthAuthorizationCodeScalarWhereInput[];
468
+ };
469
+ export type OAuthAuthorizationCodeCreateWithoutClientInput = {
470
+ codeId: string;
471
+ secretHash: string;
472
+ redirectUri: string;
473
+ resource: string;
474
+ scope: string;
475
+ codeChallenge: string;
476
+ createdAt?: Date | string;
477
+ expiresAt: Date | string;
478
+ consumedAt?: Date | string | null;
479
+ user: Prisma.AuthUserCreateNestedOneWithoutCodesInput;
480
+ };
481
+ export type OAuthAuthorizationCodeUncheckedCreateWithoutClientInput = {
482
+ codeId: string;
483
+ secretHash: string;
484
+ userId: string;
485
+ redirectUri: string;
486
+ resource: string;
487
+ scope: string;
488
+ codeChallenge: string;
489
+ createdAt?: Date | string;
490
+ expiresAt: Date | string;
491
+ consumedAt?: Date | string | null;
492
+ };
493
+ export type OAuthAuthorizationCodeCreateOrConnectWithoutClientInput = {
494
+ where: Prisma.OAuthAuthorizationCodeWhereUniqueInput;
495
+ create: Prisma.XOR<Prisma.OAuthAuthorizationCodeCreateWithoutClientInput, Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutClientInput>;
496
+ };
497
+ export type OAuthAuthorizationCodeCreateManyClientInputEnvelope = {
498
+ data: Prisma.OAuthAuthorizationCodeCreateManyClientInput | Prisma.OAuthAuthorizationCodeCreateManyClientInput[];
499
+ skipDuplicates?: boolean;
500
+ };
501
+ export type OAuthAuthorizationCodeUpsertWithWhereUniqueWithoutClientInput = {
502
+ where: Prisma.OAuthAuthorizationCodeWhereUniqueInput;
503
+ update: Prisma.XOR<Prisma.OAuthAuthorizationCodeUpdateWithoutClientInput, Prisma.OAuthAuthorizationCodeUncheckedUpdateWithoutClientInput>;
504
+ create: Prisma.XOR<Prisma.OAuthAuthorizationCodeCreateWithoutClientInput, Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutClientInput>;
505
+ };
506
+ export type OAuthAuthorizationCodeUpdateWithWhereUniqueWithoutClientInput = {
507
+ where: Prisma.OAuthAuthorizationCodeWhereUniqueInput;
508
+ data: Prisma.XOR<Prisma.OAuthAuthorizationCodeUpdateWithoutClientInput, Prisma.OAuthAuthorizationCodeUncheckedUpdateWithoutClientInput>;
509
+ };
510
+ export type OAuthAuthorizationCodeUpdateManyWithWhereWithoutClientInput = {
511
+ where: Prisma.OAuthAuthorizationCodeScalarWhereInput;
512
+ data: Prisma.XOR<Prisma.OAuthAuthorizationCodeUpdateManyMutationInput, Prisma.OAuthAuthorizationCodeUncheckedUpdateManyWithoutClientInput>;
513
+ };
514
+ export type OAuthAuthorizationCodeScalarWhereInput = {
515
+ AND?: Prisma.OAuthAuthorizationCodeScalarWhereInput | Prisma.OAuthAuthorizationCodeScalarWhereInput[];
516
+ OR?: Prisma.OAuthAuthorizationCodeScalarWhereInput[];
517
+ NOT?: Prisma.OAuthAuthorizationCodeScalarWhereInput | Prisma.OAuthAuthorizationCodeScalarWhereInput[];
518
+ codeId?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
519
+ secretHash?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
520
+ clientId?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
521
+ userId?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
522
+ redirectUri?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
523
+ resource?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
524
+ scope?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
525
+ codeChallenge?: Prisma.StringFilter<"OAuthAuthorizationCode"> | string;
526
+ createdAt?: Prisma.DateTimeFilter<"OAuthAuthorizationCode"> | Date | string;
527
+ expiresAt?: Prisma.DateTimeFilter<"OAuthAuthorizationCode"> | Date | string;
528
+ consumedAt?: Prisma.DateTimeNullableFilter<"OAuthAuthorizationCode"> | Date | string | null;
529
+ };
530
+ export type OAuthAuthorizationCodeCreateWithoutUserInput = {
531
+ codeId: string;
532
+ secretHash: string;
533
+ redirectUri: string;
534
+ resource: string;
535
+ scope: string;
536
+ codeChallenge: string;
537
+ createdAt?: Date | string;
538
+ expiresAt: Date | string;
539
+ consumedAt?: Date | string | null;
540
+ client: Prisma.OAuthClientCreateNestedOneWithoutCodesInput;
541
+ };
542
+ export type OAuthAuthorizationCodeUncheckedCreateWithoutUserInput = {
543
+ codeId: string;
544
+ secretHash: string;
545
+ clientId: string;
546
+ redirectUri: string;
547
+ resource: string;
548
+ scope: string;
549
+ codeChallenge: string;
550
+ createdAt?: Date | string;
551
+ expiresAt: Date | string;
552
+ consumedAt?: Date | string | null;
553
+ };
554
+ export type OAuthAuthorizationCodeCreateOrConnectWithoutUserInput = {
555
+ where: Prisma.OAuthAuthorizationCodeWhereUniqueInput;
556
+ create: Prisma.XOR<Prisma.OAuthAuthorizationCodeCreateWithoutUserInput, Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutUserInput>;
557
+ };
558
+ export type OAuthAuthorizationCodeCreateManyUserInputEnvelope = {
559
+ data: Prisma.OAuthAuthorizationCodeCreateManyUserInput | Prisma.OAuthAuthorizationCodeCreateManyUserInput[];
560
+ skipDuplicates?: boolean;
561
+ };
562
+ export type OAuthAuthorizationCodeUpsertWithWhereUniqueWithoutUserInput = {
563
+ where: Prisma.OAuthAuthorizationCodeWhereUniqueInput;
564
+ update: Prisma.XOR<Prisma.OAuthAuthorizationCodeUpdateWithoutUserInput, Prisma.OAuthAuthorizationCodeUncheckedUpdateWithoutUserInput>;
565
+ create: Prisma.XOR<Prisma.OAuthAuthorizationCodeCreateWithoutUserInput, Prisma.OAuthAuthorizationCodeUncheckedCreateWithoutUserInput>;
566
+ };
567
+ export type OAuthAuthorizationCodeUpdateWithWhereUniqueWithoutUserInput = {
568
+ where: Prisma.OAuthAuthorizationCodeWhereUniqueInput;
569
+ data: Prisma.XOR<Prisma.OAuthAuthorizationCodeUpdateWithoutUserInput, Prisma.OAuthAuthorizationCodeUncheckedUpdateWithoutUserInput>;
570
+ };
571
+ export type OAuthAuthorizationCodeUpdateManyWithWhereWithoutUserInput = {
572
+ where: Prisma.OAuthAuthorizationCodeScalarWhereInput;
573
+ data: Prisma.XOR<Prisma.OAuthAuthorizationCodeUpdateManyMutationInput, Prisma.OAuthAuthorizationCodeUncheckedUpdateManyWithoutUserInput>;
574
+ };
575
+ export type OAuthAuthorizationCodeCreateManyClientInput = {
576
+ codeId: string;
577
+ secretHash: string;
578
+ userId: string;
579
+ redirectUri: string;
580
+ resource: string;
581
+ scope: string;
582
+ codeChallenge: string;
583
+ createdAt?: Date | string;
584
+ expiresAt: Date | string;
585
+ consumedAt?: Date | string | null;
586
+ };
587
+ export type OAuthAuthorizationCodeUpdateWithoutClientInput = {
588
+ codeId?: Prisma.StringFieldUpdateOperationsInput | string;
589
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
590
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
591
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
592
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
593
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
594
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
595
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
596
+ consumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
597
+ user?: Prisma.AuthUserUpdateOneRequiredWithoutCodesNestedInput;
598
+ };
599
+ export type OAuthAuthorizationCodeUncheckedUpdateWithoutClientInput = {
600
+ codeId?: Prisma.StringFieldUpdateOperationsInput | string;
601
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
602
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
603
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
604
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
605
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
606
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
607
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
608
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
609
+ consumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
610
+ };
611
+ export type OAuthAuthorizationCodeUncheckedUpdateManyWithoutClientInput = {
612
+ codeId?: Prisma.StringFieldUpdateOperationsInput | string;
613
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
614
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
615
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
616
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
617
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
618
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
619
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
620
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
621
+ consumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
622
+ };
623
+ export type OAuthAuthorizationCodeCreateManyUserInput = {
624
+ codeId: string;
625
+ secretHash: string;
626
+ clientId: string;
627
+ redirectUri: string;
628
+ resource: string;
629
+ scope: string;
630
+ codeChallenge: string;
631
+ createdAt?: Date | string;
632
+ expiresAt: Date | string;
633
+ consumedAt?: Date | string | null;
634
+ };
635
+ export type OAuthAuthorizationCodeUpdateWithoutUserInput = {
636
+ codeId?: Prisma.StringFieldUpdateOperationsInput | string;
637
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
638
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
639
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
640
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
641
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
642
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
643
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
644
+ consumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
645
+ client?: Prisma.OAuthClientUpdateOneRequiredWithoutCodesNestedInput;
646
+ };
647
+ export type OAuthAuthorizationCodeUncheckedUpdateWithoutUserInput = {
648
+ codeId?: Prisma.StringFieldUpdateOperationsInput | string;
649
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
650
+ clientId?: Prisma.StringFieldUpdateOperationsInput | string;
651
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
652
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
653
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
654
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
655
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
656
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
657
+ consumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
658
+ };
659
+ export type OAuthAuthorizationCodeUncheckedUpdateManyWithoutUserInput = {
660
+ codeId?: Prisma.StringFieldUpdateOperationsInput | string;
661
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
662
+ clientId?: Prisma.StringFieldUpdateOperationsInput | string;
663
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
664
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
665
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
666
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
667
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
668
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
669
+ consumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
670
+ };
671
+ export type OAuthAuthorizationCodeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
672
+ codeId?: boolean;
673
+ secretHash?: boolean;
674
+ clientId?: boolean;
675
+ userId?: boolean;
676
+ redirectUri?: boolean;
677
+ resource?: boolean;
678
+ scope?: boolean;
679
+ codeChallenge?: boolean;
680
+ createdAt?: boolean;
681
+ expiresAt?: boolean;
682
+ consumedAt?: boolean;
683
+ client?: boolean | Prisma.OAuthClientDefaultArgs<ExtArgs>;
684
+ user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
685
+ }, ExtArgs["result"]["oAuthAuthorizationCode"]>;
686
+ export type OAuthAuthorizationCodeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
687
+ codeId?: boolean;
688
+ secretHash?: boolean;
689
+ clientId?: boolean;
690
+ userId?: boolean;
691
+ redirectUri?: boolean;
692
+ resource?: boolean;
693
+ scope?: boolean;
694
+ codeChallenge?: boolean;
695
+ createdAt?: boolean;
696
+ expiresAt?: boolean;
697
+ consumedAt?: boolean;
698
+ client?: boolean | Prisma.OAuthClientDefaultArgs<ExtArgs>;
699
+ user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
700
+ }, ExtArgs["result"]["oAuthAuthorizationCode"]>;
701
+ export type OAuthAuthorizationCodeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
702
+ codeId?: boolean;
703
+ secretHash?: boolean;
704
+ clientId?: boolean;
705
+ userId?: boolean;
706
+ redirectUri?: boolean;
707
+ resource?: boolean;
708
+ scope?: boolean;
709
+ codeChallenge?: boolean;
710
+ createdAt?: boolean;
711
+ expiresAt?: boolean;
712
+ consumedAt?: boolean;
713
+ client?: boolean | Prisma.OAuthClientDefaultArgs<ExtArgs>;
714
+ user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
715
+ }, ExtArgs["result"]["oAuthAuthorizationCode"]>;
716
+ export type OAuthAuthorizationCodeSelectScalar = {
717
+ codeId?: boolean;
718
+ secretHash?: boolean;
719
+ clientId?: boolean;
720
+ userId?: boolean;
721
+ redirectUri?: boolean;
722
+ resource?: boolean;
723
+ scope?: boolean;
724
+ codeChallenge?: boolean;
725
+ createdAt?: boolean;
726
+ expiresAt?: boolean;
727
+ consumedAt?: boolean;
728
+ };
729
+ export type OAuthAuthorizationCodeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"codeId" | "secretHash" | "clientId" | "userId" | "redirectUri" | "resource" | "scope" | "codeChallenge" | "createdAt" | "expiresAt" | "consumedAt", ExtArgs["result"]["oAuthAuthorizationCode"]>;
730
+ export type OAuthAuthorizationCodeInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
731
+ client?: boolean | Prisma.OAuthClientDefaultArgs<ExtArgs>;
732
+ user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
733
+ };
734
+ export type OAuthAuthorizationCodeIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
735
+ client?: boolean | Prisma.OAuthClientDefaultArgs<ExtArgs>;
736
+ user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
737
+ };
738
+ export type OAuthAuthorizationCodeIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
739
+ client?: boolean | Prisma.OAuthClientDefaultArgs<ExtArgs>;
740
+ user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
741
+ };
742
+ export type $OAuthAuthorizationCodePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
743
+ name: "OAuthAuthorizationCode";
744
+ objects: {
745
+ client: Prisma.$OAuthClientPayload<ExtArgs>;
746
+ user: Prisma.$AuthUserPayload<ExtArgs>;
747
+ };
748
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
749
+ codeId: string;
750
+ secretHash: string;
751
+ clientId: string;
752
+ userId: string;
753
+ redirectUri: string;
754
+ resource: string;
755
+ scope: string;
756
+ codeChallenge: string;
757
+ createdAt: Date;
758
+ expiresAt: Date;
759
+ consumedAt: Date | null;
760
+ }, ExtArgs["result"]["oAuthAuthorizationCode"]>;
761
+ composites: {};
762
+ };
763
+ export type OAuthAuthorizationCodeGetPayload<S extends boolean | null | undefined | OAuthAuthorizationCodeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$OAuthAuthorizationCodePayload, S>;
764
+ export type OAuthAuthorizationCodeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<OAuthAuthorizationCodeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
765
+ select?: OAuthAuthorizationCodeCountAggregateInputType | true;
766
+ };
767
+ export interface OAuthAuthorizationCodeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
768
+ [K: symbol]: {
769
+ types: Prisma.TypeMap<ExtArgs>['model']['OAuthAuthorizationCode'];
770
+ meta: {
771
+ name: 'OAuthAuthorizationCode';
772
+ };
773
+ };
774
+ /**
775
+ * Find zero or one OAuthAuthorizationCode that matches the filter.
776
+ * @param {OAuthAuthorizationCodeFindUniqueArgs} args - Arguments to find a OAuthAuthorizationCode
777
+ * @example
778
+ * // Get one OAuthAuthorizationCode
779
+ * const oAuthAuthorizationCode = await prisma.oAuthAuthorizationCode.findUnique({
780
+ * where: {
781
+ * // ... provide filter here
782
+ * }
783
+ * })
784
+ */
785
+ findUnique<T extends OAuthAuthorizationCodeFindUniqueArgs>(args: Prisma.SelectSubset<T, OAuthAuthorizationCodeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__OAuthAuthorizationCodeClient<runtime.Types.Result.GetResult<Prisma.$OAuthAuthorizationCodePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
786
+ /**
787
+ * Find one OAuthAuthorizationCode that matches the filter or throw an error with `error.code='P2025'`
788
+ * if no matches were found.
789
+ * @param {OAuthAuthorizationCodeFindUniqueOrThrowArgs} args - Arguments to find a OAuthAuthorizationCode
790
+ * @example
791
+ * // Get one OAuthAuthorizationCode
792
+ * const oAuthAuthorizationCode = await prisma.oAuthAuthorizationCode.findUniqueOrThrow({
793
+ * where: {
794
+ * // ... provide filter here
795
+ * }
796
+ * })
797
+ */
798
+ findUniqueOrThrow<T extends OAuthAuthorizationCodeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, OAuthAuthorizationCodeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__OAuthAuthorizationCodeClient<runtime.Types.Result.GetResult<Prisma.$OAuthAuthorizationCodePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
799
+ /**
800
+ * Find the first OAuthAuthorizationCode that matches the filter.
801
+ * Note, that providing `undefined` is treated as the value not being there.
802
+ * Read more here: https://pris.ly/d/null-undefined
803
+ * @param {OAuthAuthorizationCodeFindFirstArgs} args - Arguments to find a OAuthAuthorizationCode
804
+ * @example
805
+ * // Get one OAuthAuthorizationCode
806
+ * const oAuthAuthorizationCode = await prisma.oAuthAuthorizationCode.findFirst({
807
+ * where: {
808
+ * // ... provide filter here
809
+ * }
810
+ * })
811
+ */
812
+ findFirst<T extends OAuthAuthorizationCodeFindFirstArgs>(args?: Prisma.SelectSubset<T, OAuthAuthorizationCodeFindFirstArgs<ExtArgs>>): Prisma.Prisma__OAuthAuthorizationCodeClient<runtime.Types.Result.GetResult<Prisma.$OAuthAuthorizationCodePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
813
+ /**
814
+ * Find the first OAuthAuthorizationCode that matches the filter or
815
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
816
+ * Note, that providing `undefined` is treated as the value not being there.
817
+ * Read more here: https://pris.ly/d/null-undefined
818
+ * @param {OAuthAuthorizationCodeFindFirstOrThrowArgs} args - Arguments to find a OAuthAuthorizationCode
819
+ * @example
820
+ * // Get one OAuthAuthorizationCode
821
+ * const oAuthAuthorizationCode = await prisma.oAuthAuthorizationCode.findFirstOrThrow({
822
+ * where: {
823
+ * // ... provide filter here
824
+ * }
825
+ * })
826
+ */
827
+ findFirstOrThrow<T extends OAuthAuthorizationCodeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, OAuthAuthorizationCodeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__OAuthAuthorizationCodeClient<runtime.Types.Result.GetResult<Prisma.$OAuthAuthorizationCodePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
828
+ /**
829
+ * Find zero or more OAuthAuthorizationCodes that matches the filter.
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 {OAuthAuthorizationCodeFindManyArgs} args - Arguments to filter and select certain fields only.
833
+ * @example
834
+ * // Get all OAuthAuthorizationCodes
835
+ * const oAuthAuthorizationCodes = await prisma.oAuthAuthorizationCode.findMany()
836
+ *
837
+ * // Get first 10 OAuthAuthorizationCodes
838
+ * const oAuthAuthorizationCodes = await prisma.oAuthAuthorizationCode.findMany({ take: 10 })
839
+ *
840
+ * // Only select the `codeId`
841
+ * const oAuthAuthorizationCodeWithCodeIdOnly = await prisma.oAuthAuthorizationCode.findMany({ select: { codeId: true } })
842
+ *
843
+ */
844
+ findMany<T extends OAuthAuthorizationCodeFindManyArgs>(args?: Prisma.SelectSubset<T, OAuthAuthorizationCodeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OAuthAuthorizationCodePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
845
+ /**
846
+ * Create a OAuthAuthorizationCode.
847
+ * @param {OAuthAuthorizationCodeCreateArgs} args - Arguments to create a OAuthAuthorizationCode.
848
+ * @example
849
+ * // Create one OAuthAuthorizationCode
850
+ * const OAuthAuthorizationCode = await prisma.oAuthAuthorizationCode.create({
851
+ * data: {
852
+ * // ... data to create a OAuthAuthorizationCode
853
+ * }
854
+ * })
855
+ *
856
+ */
857
+ create<T extends OAuthAuthorizationCodeCreateArgs>(args: Prisma.SelectSubset<T, OAuthAuthorizationCodeCreateArgs<ExtArgs>>): Prisma.Prisma__OAuthAuthorizationCodeClient<runtime.Types.Result.GetResult<Prisma.$OAuthAuthorizationCodePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
858
+ /**
859
+ * Create many OAuthAuthorizationCodes.
860
+ * @param {OAuthAuthorizationCodeCreateManyArgs} args - Arguments to create many OAuthAuthorizationCodes.
861
+ * @example
862
+ * // Create many OAuthAuthorizationCodes
863
+ * const oAuthAuthorizationCode = await prisma.oAuthAuthorizationCode.createMany({
864
+ * data: [
865
+ * // ... provide data here
866
+ * ]
867
+ * })
868
+ *
869
+ */
870
+ createMany<T extends OAuthAuthorizationCodeCreateManyArgs>(args?: Prisma.SelectSubset<T, OAuthAuthorizationCodeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
871
+ /**
872
+ * Create many OAuthAuthorizationCodes and returns the data saved in the database.
873
+ * @param {OAuthAuthorizationCodeCreateManyAndReturnArgs} args - Arguments to create many OAuthAuthorizationCodes.
874
+ * @example
875
+ * // Create many OAuthAuthorizationCodes
876
+ * const oAuthAuthorizationCode = await prisma.oAuthAuthorizationCode.createManyAndReturn({
877
+ * data: [
878
+ * // ... provide data here
879
+ * ]
880
+ * })
881
+ *
882
+ * // Create many OAuthAuthorizationCodes and only return the `codeId`
883
+ * const oAuthAuthorizationCodeWithCodeIdOnly = await prisma.oAuthAuthorizationCode.createManyAndReturn({
884
+ * select: { codeId: true },
885
+ * data: [
886
+ * // ... provide data here
887
+ * ]
888
+ * })
889
+ * Note, that providing `undefined` is treated as the value not being there.
890
+ * Read more here: https://pris.ly/d/null-undefined
891
+ *
892
+ */
893
+ createManyAndReturn<T extends OAuthAuthorizationCodeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, OAuthAuthorizationCodeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OAuthAuthorizationCodePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
894
+ /**
895
+ * Delete a OAuthAuthorizationCode.
896
+ * @param {OAuthAuthorizationCodeDeleteArgs} args - Arguments to delete one OAuthAuthorizationCode.
897
+ * @example
898
+ * // Delete one OAuthAuthorizationCode
899
+ * const OAuthAuthorizationCode = await prisma.oAuthAuthorizationCode.delete({
900
+ * where: {
901
+ * // ... filter to delete one OAuthAuthorizationCode
902
+ * }
903
+ * })
904
+ *
905
+ */
906
+ delete<T extends OAuthAuthorizationCodeDeleteArgs>(args: Prisma.SelectSubset<T, OAuthAuthorizationCodeDeleteArgs<ExtArgs>>): Prisma.Prisma__OAuthAuthorizationCodeClient<runtime.Types.Result.GetResult<Prisma.$OAuthAuthorizationCodePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
907
+ /**
908
+ * Update one OAuthAuthorizationCode.
909
+ * @param {OAuthAuthorizationCodeUpdateArgs} args - Arguments to update one OAuthAuthorizationCode.
910
+ * @example
911
+ * // Update one OAuthAuthorizationCode
912
+ * const oAuthAuthorizationCode = await prisma.oAuthAuthorizationCode.update({
913
+ * where: {
914
+ * // ... provide filter here
915
+ * },
916
+ * data: {
917
+ * // ... provide data here
918
+ * }
919
+ * })
920
+ *
921
+ */
922
+ update<T extends OAuthAuthorizationCodeUpdateArgs>(args: Prisma.SelectSubset<T, OAuthAuthorizationCodeUpdateArgs<ExtArgs>>): Prisma.Prisma__OAuthAuthorizationCodeClient<runtime.Types.Result.GetResult<Prisma.$OAuthAuthorizationCodePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
923
+ /**
924
+ * Delete zero or more OAuthAuthorizationCodes.
925
+ * @param {OAuthAuthorizationCodeDeleteManyArgs} args - Arguments to filter OAuthAuthorizationCodes to delete.
926
+ * @example
927
+ * // Delete a few OAuthAuthorizationCodes
928
+ * const { count } = await prisma.oAuthAuthorizationCode.deleteMany({
929
+ * where: {
930
+ * // ... provide filter here
931
+ * }
932
+ * })
933
+ *
934
+ */
935
+ deleteMany<T extends OAuthAuthorizationCodeDeleteManyArgs>(args?: Prisma.SelectSubset<T, OAuthAuthorizationCodeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
936
+ /**
937
+ * Update zero or more OAuthAuthorizationCodes.
938
+ * Note, that providing `undefined` is treated as the value not being there.
939
+ * Read more here: https://pris.ly/d/null-undefined
940
+ * @param {OAuthAuthorizationCodeUpdateManyArgs} args - Arguments to update one or more rows.
941
+ * @example
942
+ * // Update many OAuthAuthorizationCodes
943
+ * const oAuthAuthorizationCode = await prisma.oAuthAuthorizationCode.updateMany({
944
+ * where: {
945
+ * // ... provide filter here
946
+ * },
947
+ * data: {
948
+ * // ... provide data here
949
+ * }
950
+ * })
951
+ *
952
+ */
953
+ updateMany<T extends OAuthAuthorizationCodeUpdateManyArgs>(args: Prisma.SelectSubset<T, OAuthAuthorizationCodeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
954
+ /**
955
+ * Update zero or more OAuthAuthorizationCodes and returns the data updated in the database.
956
+ * @param {OAuthAuthorizationCodeUpdateManyAndReturnArgs} args - Arguments to update many OAuthAuthorizationCodes.
957
+ * @example
958
+ * // Update many OAuthAuthorizationCodes
959
+ * const oAuthAuthorizationCode = await prisma.oAuthAuthorizationCode.updateManyAndReturn({
960
+ * where: {
961
+ * // ... provide filter here
962
+ * },
963
+ * data: [
964
+ * // ... provide data here
965
+ * ]
966
+ * })
967
+ *
968
+ * // Update zero or more OAuthAuthorizationCodes and only return the `codeId`
969
+ * const oAuthAuthorizationCodeWithCodeIdOnly = await prisma.oAuthAuthorizationCode.updateManyAndReturn({
970
+ * select: { codeId: true },
971
+ * where: {
972
+ * // ... provide filter here
973
+ * },
974
+ * data: [
975
+ * // ... provide data here
976
+ * ]
977
+ * })
978
+ * Note, that providing `undefined` is treated as the value not being there.
979
+ * Read more here: https://pris.ly/d/null-undefined
980
+ *
981
+ */
982
+ updateManyAndReturn<T extends OAuthAuthorizationCodeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, OAuthAuthorizationCodeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OAuthAuthorizationCodePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
983
+ /**
984
+ * Create or update one OAuthAuthorizationCode.
985
+ * @param {OAuthAuthorizationCodeUpsertArgs} args - Arguments to update or create a OAuthAuthorizationCode.
986
+ * @example
987
+ * // Update or create a OAuthAuthorizationCode
988
+ * const oAuthAuthorizationCode = await prisma.oAuthAuthorizationCode.upsert({
989
+ * create: {
990
+ * // ... data to create a OAuthAuthorizationCode
991
+ * },
992
+ * update: {
993
+ * // ... in case it already exists, update
994
+ * },
995
+ * where: {
996
+ * // ... the filter for the OAuthAuthorizationCode we want to update
997
+ * }
998
+ * })
999
+ */
1000
+ upsert<T extends OAuthAuthorizationCodeUpsertArgs>(args: Prisma.SelectSubset<T, OAuthAuthorizationCodeUpsertArgs<ExtArgs>>): Prisma.Prisma__OAuthAuthorizationCodeClient<runtime.Types.Result.GetResult<Prisma.$OAuthAuthorizationCodePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1001
+ /**
1002
+ * Count the number of OAuthAuthorizationCodes.
1003
+ * Note, that providing `undefined` is treated as the value not being there.
1004
+ * Read more here: https://pris.ly/d/null-undefined
1005
+ * @param {OAuthAuthorizationCodeCountArgs} args - Arguments to filter OAuthAuthorizationCodes to count.
1006
+ * @example
1007
+ * // Count the number of OAuthAuthorizationCodes
1008
+ * const count = await prisma.oAuthAuthorizationCode.count({
1009
+ * where: {
1010
+ * // ... the filter for the OAuthAuthorizationCodes we want to count
1011
+ * }
1012
+ * })
1013
+ **/
1014
+ count<T extends OAuthAuthorizationCodeCountArgs>(args?: Prisma.Subset<T, OAuthAuthorizationCodeCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], OAuthAuthorizationCodeCountAggregateOutputType> : number>;
1015
+ /**
1016
+ * Allows you to perform aggregations operations on a OAuthAuthorizationCode.
1017
+ * Note, that providing `undefined` is treated as the value not being there.
1018
+ * Read more here: https://pris.ly/d/null-undefined
1019
+ * @param {OAuthAuthorizationCodeAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1020
+ * @example
1021
+ * // Ordered by age ascending
1022
+ * // Where email contains prisma.io
1023
+ * // Limited to the 10 users
1024
+ * const aggregations = await prisma.user.aggregate({
1025
+ * _avg: {
1026
+ * age: true,
1027
+ * },
1028
+ * where: {
1029
+ * email: {
1030
+ * contains: "prisma.io",
1031
+ * },
1032
+ * },
1033
+ * orderBy: {
1034
+ * age: "asc",
1035
+ * },
1036
+ * take: 10,
1037
+ * })
1038
+ **/
1039
+ aggregate<T extends OAuthAuthorizationCodeAggregateArgs>(args: Prisma.Subset<T, OAuthAuthorizationCodeAggregateArgs>): Prisma.PrismaPromise<GetOAuthAuthorizationCodeAggregateType<T>>;
1040
+ /**
1041
+ * Group by OAuthAuthorizationCode.
1042
+ * Note, that providing `undefined` is treated as the value not being there.
1043
+ * Read more here: https://pris.ly/d/null-undefined
1044
+ * @param {OAuthAuthorizationCodeGroupByArgs} args - Group by arguments.
1045
+ * @example
1046
+ * // Group by city, order by createdAt, get count
1047
+ * const result = await prisma.user.groupBy({
1048
+ * by: ['city', 'createdAt'],
1049
+ * orderBy: {
1050
+ * createdAt: true
1051
+ * },
1052
+ * _count: {
1053
+ * _all: true
1054
+ * },
1055
+ * })
1056
+ *
1057
+ **/
1058
+ groupBy<T extends OAuthAuthorizationCodeGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1059
+ orderBy: OAuthAuthorizationCodeGroupByArgs['orderBy'];
1060
+ } : {
1061
+ orderBy?: OAuthAuthorizationCodeGroupByArgs['orderBy'];
1062
+ }, 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 ? {
1063
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1064
+ Error,
1065
+ 'Field ',
1066
+ P,
1067
+ ` in "having" needs to be provided in "by"`
1068
+ ];
1069
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1070
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1071
+ }[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 ? {} : {
1072
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1073
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1074
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1075
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, OAuthAuthorizationCodeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOAuthAuthorizationCodeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1076
+ /**
1077
+ * Fields of the OAuthAuthorizationCode model
1078
+ */
1079
+ readonly fields: OAuthAuthorizationCodeFieldRefs;
1080
+ }
1081
+ /**
1082
+ * The delegate class that acts as a "Promise-like" for OAuthAuthorizationCode.
1083
+ * Why is this prefixed with `Prisma__`?
1084
+ * Because we want to prevent naming conflicts as mentioned in
1085
+ * https://github.com/prisma/prisma-client-js/issues/707
1086
+ */
1087
+ export interface Prisma__OAuthAuthorizationCodeClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1088
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1089
+ client<T extends Prisma.OAuthClientDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OAuthClientDefaultArgs<ExtArgs>>): Prisma.Prisma__OAuthClientClient<runtime.Types.Result.GetResult<Prisma.$OAuthClientPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1090
+ user<T extends Prisma.AuthUserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AuthUserDefaultArgs<ExtArgs>>): Prisma.Prisma__AuthUserClient<runtime.Types.Result.GetResult<Prisma.$AuthUserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1091
+ /**
1092
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1093
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1094
+ * @param onrejected The callback to execute when the Promise is rejected.
1095
+ * @returns A Promise for the completion of which ever callback is executed.
1096
+ */
1097
+ 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>;
1098
+ /**
1099
+ * Attaches a callback for only the rejection of the Promise.
1100
+ * @param onrejected The callback to execute when the Promise is rejected.
1101
+ * @returns A Promise for the completion of the callback.
1102
+ */
1103
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1104
+ /**
1105
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1106
+ * resolved value cannot be modified from the callback.
1107
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1108
+ * @returns A Promise for the completion of the callback.
1109
+ */
1110
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1111
+ }
1112
+ /**
1113
+ * Fields of the OAuthAuthorizationCode model
1114
+ */
1115
+ export interface OAuthAuthorizationCodeFieldRefs {
1116
+ readonly codeId: Prisma.FieldRef<"OAuthAuthorizationCode", 'String'>;
1117
+ readonly secretHash: Prisma.FieldRef<"OAuthAuthorizationCode", 'String'>;
1118
+ readonly clientId: Prisma.FieldRef<"OAuthAuthorizationCode", 'String'>;
1119
+ readonly userId: Prisma.FieldRef<"OAuthAuthorizationCode", 'String'>;
1120
+ readonly redirectUri: Prisma.FieldRef<"OAuthAuthorizationCode", 'String'>;
1121
+ readonly resource: Prisma.FieldRef<"OAuthAuthorizationCode", 'String'>;
1122
+ readonly scope: Prisma.FieldRef<"OAuthAuthorizationCode", 'String'>;
1123
+ readonly codeChallenge: Prisma.FieldRef<"OAuthAuthorizationCode", 'String'>;
1124
+ readonly createdAt: Prisma.FieldRef<"OAuthAuthorizationCode", 'DateTime'>;
1125
+ readonly expiresAt: Prisma.FieldRef<"OAuthAuthorizationCode", 'DateTime'>;
1126
+ readonly consumedAt: Prisma.FieldRef<"OAuthAuthorizationCode", 'DateTime'>;
1127
+ }
1128
+ /**
1129
+ * OAuthAuthorizationCode findUnique
1130
+ */
1131
+ export type OAuthAuthorizationCodeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1132
+ /**
1133
+ * Select specific fields to fetch from the OAuthAuthorizationCode
1134
+ */
1135
+ select?: Prisma.OAuthAuthorizationCodeSelect<ExtArgs> | null;
1136
+ /**
1137
+ * Omit specific fields from the OAuthAuthorizationCode
1138
+ */
1139
+ omit?: Prisma.OAuthAuthorizationCodeOmit<ExtArgs> | null;
1140
+ /**
1141
+ * Choose, which related nodes to fetch as well
1142
+ */
1143
+ include?: Prisma.OAuthAuthorizationCodeInclude<ExtArgs> | null;
1144
+ /**
1145
+ * Filter, which OAuthAuthorizationCode to fetch.
1146
+ */
1147
+ where: Prisma.OAuthAuthorizationCodeWhereUniqueInput;
1148
+ };
1149
+ /**
1150
+ * OAuthAuthorizationCode findUniqueOrThrow
1151
+ */
1152
+ export type OAuthAuthorizationCodeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1153
+ /**
1154
+ * Select specific fields to fetch from the OAuthAuthorizationCode
1155
+ */
1156
+ select?: Prisma.OAuthAuthorizationCodeSelect<ExtArgs> | null;
1157
+ /**
1158
+ * Omit specific fields from the OAuthAuthorizationCode
1159
+ */
1160
+ omit?: Prisma.OAuthAuthorizationCodeOmit<ExtArgs> | null;
1161
+ /**
1162
+ * Choose, which related nodes to fetch as well
1163
+ */
1164
+ include?: Prisma.OAuthAuthorizationCodeInclude<ExtArgs> | null;
1165
+ /**
1166
+ * Filter, which OAuthAuthorizationCode to fetch.
1167
+ */
1168
+ where: Prisma.OAuthAuthorizationCodeWhereUniqueInput;
1169
+ };
1170
+ /**
1171
+ * OAuthAuthorizationCode findFirst
1172
+ */
1173
+ export type OAuthAuthorizationCodeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1174
+ /**
1175
+ * Select specific fields to fetch from the OAuthAuthorizationCode
1176
+ */
1177
+ select?: Prisma.OAuthAuthorizationCodeSelect<ExtArgs> | null;
1178
+ /**
1179
+ * Omit specific fields from the OAuthAuthorizationCode
1180
+ */
1181
+ omit?: Prisma.OAuthAuthorizationCodeOmit<ExtArgs> | null;
1182
+ /**
1183
+ * Choose, which related nodes to fetch as well
1184
+ */
1185
+ include?: Prisma.OAuthAuthorizationCodeInclude<ExtArgs> | null;
1186
+ /**
1187
+ * Filter, which OAuthAuthorizationCode to fetch.
1188
+ */
1189
+ where?: Prisma.OAuthAuthorizationCodeWhereInput;
1190
+ /**
1191
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1192
+ *
1193
+ * Determine the order of OAuthAuthorizationCodes to fetch.
1194
+ */
1195
+ orderBy?: Prisma.OAuthAuthorizationCodeOrderByWithRelationInput | Prisma.OAuthAuthorizationCodeOrderByWithRelationInput[];
1196
+ /**
1197
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1198
+ *
1199
+ * Sets the position for searching for OAuthAuthorizationCodes.
1200
+ */
1201
+ cursor?: Prisma.OAuthAuthorizationCodeWhereUniqueInput;
1202
+ /**
1203
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1204
+ *
1205
+ * Take `±n` OAuthAuthorizationCodes from the position of the cursor.
1206
+ */
1207
+ take?: number;
1208
+ /**
1209
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1210
+ *
1211
+ * Skip the first `n` OAuthAuthorizationCodes.
1212
+ */
1213
+ skip?: number;
1214
+ /**
1215
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1216
+ *
1217
+ * Filter by unique combinations of OAuthAuthorizationCodes.
1218
+ */
1219
+ distinct?: Prisma.OAuthAuthorizationCodeScalarFieldEnum | Prisma.OAuthAuthorizationCodeScalarFieldEnum[];
1220
+ };
1221
+ /**
1222
+ * OAuthAuthorizationCode findFirstOrThrow
1223
+ */
1224
+ export type OAuthAuthorizationCodeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1225
+ /**
1226
+ * Select specific fields to fetch from the OAuthAuthorizationCode
1227
+ */
1228
+ select?: Prisma.OAuthAuthorizationCodeSelect<ExtArgs> | null;
1229
+ /**
1230
+ * Omit specific fields from the OAuthAuthorizationCode
1231
+ */
1232
+ omit?: Prisma.OAuthAuthorizationCodeOmit<ExtArgs> | null;
1233
+ /**
1234
+ * Choose, which related nodes to fetch as well
1235
+ */
1236
+ include?: Prisma.OAuthAuthorizationCodeInclude<ExtArgs> | null;
1237
+ /**
1238
+ * Filter, which OAuthAuthorizationCode to fetch.
1239
+ */
1240
+ where?: Prisma.OAuthAuthorizationCodeWhereInput;
1241
+ /**
1242
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1243
+ *
1244
+ * Determine the order of OAuthAuthorizationCodes to fetch.
1245
+ */
1246
+ orderBy?: Prisma.OAuthAuthorizationCodeOrderByWithRelationInput | Prisma.OAuthAuthorizationCodeOrderByWithRelationInput[];
1247
+ /**
1248
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1249
+ *
1250
+ * Sets the position for searching for OAuthAuthorizationCodes.
1251
+ */
1252
+ cursor?: Prisma.OAuthAuthorizationCodeWhereUniqueInput;
1253
+ /**
1254
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1255
+ *
1256
+ * Take `±n` OAuthAuthorizationCodes from the position of the cursor.
1257
+ */
1258
+ take?: number;
1259
+ /**
1260
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1261
+ *
1262
+ * Skip the first `n` OAuthAuthorizationCodes.
1263
+ */
1264
+ skip?: number;
1265
+ /**
1266
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1267
+ *
1268
+ * Filter by unique combinations of OAuthAuthorizationCodes.
1269
+ */
1270
+ distinct?: Prisma.OAuthAuthorizationCodeScalarFieldEnum | Prisma.OAuthAuthorizationCodeScalarFieldEnum[];
1271
+ };
1272
+ /**
1273
+ * OAuthAuthorizationCode findMany
1274
+ */
1275
+ export type OAuthAuthorizationCodeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1276
+ /**
1277
+ * Select specific fields to fetch from the OAuthAuthorizationCode
1278
+ */
1279
+ select?: Prisma.OAuthAuthorizationCodeSelect<ExtArgs> | null;
1280
+ /**
1281
+ * Omit specific fields from the OAuthAuthorizationCode
1282
+ */
1283
+ omit?: Prisma.OAuthAuthorizationCodeOmit<ExtArgs> | null;
1284
+ /**
1285
+ * Choose, which related nodes to fetch as well
1286
+ */
1287
+ include?: Prisma.OAuthAuthorizationCodeInclude<ExtArgs> | null;
1288
+ /**
1289
+ * Filter, which OAuthAuthorizationCodes to fetch.
1290
+ */
1291
+ where?: Prisma.OAuthAuthorizationCodeWhereInput;
1292
+ /**
1293
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1294
+ *
1295
+ * Determine the order of OAuthAuthorizationCodes to fetch.
1296
+ */
1297
+ orderBy?: Prisma.OAuthAuthorizationCodeOrderByWithRelationInput | Prisma.OAuthAuthorizationCodeOrderByWithRelationInput[];
1298
+ /**
1299
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1300
+ *
1301
+ * Sets the position for listing OAuthAuthorizationCodes.
1302
+ */
1303
+ cursor?: Prisma.OAuthAuthorizationCodeWhereUniqueInput;
1304
+ /**
1305
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1306
+ *
1307
+ * Take `±n` OAuthAuthorizationCodes from the position of the cursor.
1308
+ */
1309
+ take?: number;
1310
+ /**
1311
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1312
+ *
1313
+ * Skip the first `n` OAuthAuthorizationCodes.
1314
+ */
1315
+ skip?: number;
1316
+ /**
1317
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1318
+ *
1319
+ * Filter by unique combinations of OAuthAuthorizationCodes.
1320
+ */
1321
+ distinct?: Prisma.OAuthAuthorizationCodeScalarFieldEnum | Prisma.OAuthAuthorizationCodeScalarFieldEnum[];
1322
+ };
1323
+ /**
1324
+ * OAuthAuthorizationCode create
1325
+ */
1326
+ export type OAuthAuthorizationCodeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1327
+ /**
1328
+ * Select specific fields to fetch from the OAuthAuthorizationCode
1329
+ */
1330
+ select?: Prisma.OAuthAuthorizationCodeSelect<ExtArgs> | null;
1331
+ /**
1332
+ * Omit specific fields from the OAuthAuthorizationCode
1333
+ */
1334
+ omit?: Prisma.OAuthAuthorizationCodeOmit<ExtArgs> | null;
1335
+ /**
1336
+ * Choose, which related nodes to fetch as well
1337
+ */
1338
+ include?: Prisma.OAuthAuthorizationCodeInclude<ExtArgs> | null;
1339
+ /**
1340
+ * The data needed to create a OAuthAuthorizationCode.
1341
+ */
1342
+ data: Prisma.XOR<Prisma.OAuthAuthorizationCodeCreateInput, Prisma.OAuthAuthorizationCodeUncheckedCreateInput>;
1343
+ };
1344
+ /**
1345
+ * OAuthAuthorizationCode createMany
1346
+ */
1347
+ export type OAuthAuthorizationCodeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1348
+ /**
1349
+ * The data used to create many OAuthAuthorizationCodes.
1350
+ */
1351
+ data: Prisma.OAuthAuthorizationCodeCreateManyInput | Prisma.OAuthAuthorizationCodeCreateManyInput[];
1352
+ skipDuplicates?: boolean;
1353
+ };
1354
+ /**
1355
+ * OAuthAuthorizationCode createManyAndReturn
1356
+ */
1357
+ export type OAuthAuthorizationCodeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1358
+ /**
1359
+ * Select specific fields to fetch from the OAuthAuthorizationCode
1360
+ */
1361
+ select?: Prisma.OAuthAuthorizationCodeSelectCreateManyAndReturn<ExtArgs> | null;
1362
+ /**
1363
+ * Omit specific fields from the OAuthAuthorizationCode
1364
+ */
1365
+ omit?: Prisma.OAuthAuthorizationCodeOmit<ExtArgs> | null;
1366
+ /**
1367
+ * The data used to create many OAuthAuthorizationCodes.
1368
+ */
1369
+ data: Prisma.OAuthAuthorizationCodeCreateManyInput | Prisma.OAuthAuthorizationCodeCreateManyInput[];
1370
+ skipDuplicates?: boolean;
1371
+ /**
1372
+ * Choose, which related nodes to fetch as well
1373
+ */
1374
+ include?: Prisma.OAuthAuthorizationCodeIncludeCreateManyAndReturn<ExtArgs> | null;
1375
+ };
1376
+ /**
1377
+ * OAuthAuthorizationCode update
1378
+ */
1379
+ export type OAuthAuthorizationCodeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1380
+ /**
1381
+ * Select specific fields to fetch from the OAuthAuthorizationCode
1382
+ */
1383
+ select?: Prisma.OAuthAuthorizationCodeSelect<ExtArgs> | null;
1384
+ /**
1385
+ * Omit specific fields from the OAuthAuthorizationCode
1386
+ */
1387
+ omit?: Prisma.OAuthAuthorizationCodeOmit<ExtArgs> | null;
1388
+ /**
1389
+ * Choose, which related nodes to fetch as well
1390
+ */
1391
+ include?: Prisma.OAuthAuthorizationCodeInclude<ExtArgs> | null;
1392
+ /**
1393
+ * The data needed to update a OAuthAuthorizationCode.
1394
+ */
1395
+ data: Prisma.XOR<Prisma.OAuthAuthorizationCodeUpdateInput, Prisma.OAuthAuthorizationCodeUncheckedUpdateInput>;
1396
+ /**
1397
+ * Choose, which OAuthAuthorizationCode to update.
1398
+ */
1399
+ where: Prisma.OAuthAuthorizationCodeWhereUniqueInput;
1400
+ };
1401
+ /**
1402
+ * OAuthAuthorizationCode updateMany
1403
+ */
1404
+ export type OAuthAuthorizationCodeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1405
+ /**
1406
+ * The data used to update OAuthAuthorizationCodes.
1407
+ */
1408
+ data: Prisma.XOR<Prisma.OAuthAuthorizationCodeUpdateManyMutationInput, Prisma.OAuthAuthorizationCodeUncheckedUpdateManyInput>;
1409
+ /**
1410
+ * Filter which OAuthAuthorizationCodes to update
1411
+ */
1412
+ where?: Prisma.OAuthAuthorizationCodeWhereInput;
1413
+ /**
1414
+ * Limit how many OAuthAuthorizationCodes to update.
1415
+ */
1416
+ limit?: number;
1417
+ };
1418
+ /**
1419
+ * OAuthAuthorizationCode updateManyAndReturn
1420
+ */
1421
+ export type OAuthAuthorizationCodeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1422
+ /**
1423
+ * Select specific fields to fetch from the OAuthAuthorizationCode
1424
+ */
1425
+ select?: Prisma.OAuthAuthorizationCodeSelectUpdateManyAndReturn<ExtArgs> | null;
1426
+ /**
1427
+ * Omit specific fields from the OAuthAuthorizationCode
1428
+ */
1429
+ omit?: Prisma.OAuthAuthorizationCodeOmit<ExtArgs> | null;
1430
+ /**
1431
+ * The data used to update OAuthAuthorizationCodes.
1432
+ */
1433
+ data: Prisma.XOR<Prisma.OAuthAuthorizationCodeUpdateManyMutationInput, Prisma.OAuthAuthorizationCodeUncheckedUpdateManyInput>;
1434
+ /**
1435
+ * Filter which OAuthAuthorizationCodes to update
1436
+ */
1437
+ where?: Prisma.OAuthAuthorizationCodeWhereInput;
1438
+ /**
1439
+ * Limit how many OAuthAuthorizationCodes to update.
1440
+ */
1441
+ limit?: number;
1442
+ /**
1443
+ * Choose, which related nodes to fetch as well
1444
+ */
1445
+ include?: Prisma.OAuthAuthorizationCodeIncludeUpdateManyAndReturn<ExtArgs> | null;
1446
+ };
1447
+ /**
1448
+ * OAuthAuthorizationCode upsert
1449
+ */
1450
+ export type OAuthAuthorizationCodeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1451
+ /**
1452
+ * Select specific fields to fetch from the OAuthAuthorizationCode
1453
+ */
1454
+ select?: Prisma.OAuthAuthorizationCodeSelect<ExtArgs> | null;
1455
+ /**
1456
+ * Omit specific fields from the OAuthAuthorizationCode
1457
+ */
1458
+ omit?: Prisma.OAuthAuthorizationCodeOmit<ExtArgs> | null;
1459
+ /**
1460
+ * Choose, which related nodes to fetch as well
1461
+ */
1462
+ include?: Prisma.OAuthAuthorizationCodeInclude<ExtArgs> | null;
1463
+ /**
1464
+ * The filter to search for the OAuthAuthorizationCode to update in case it exists.
1465
+ */
1466
+ where: Prisma.OAuthAuthorizationCodeWhereUniqueInput;
1467
+ /**
1468
+ * In case the OAuthAuthorizationCode found by the `where` argument doesn't exist, create a new OAuthAuthorizationCode with this data.
1469
+ */
1470
+ create: Prisma.XOR<Prisma.OAuthAuthorizationCodeCreateInput, Prisma.OAuthAuthorizationCodeUncheckedCreateInput>;
1471
+ /**
1472
+ * In case the OAuthAuthorizationCode was found with the provided `where` argument, update it with this data.
1473
+ */
1474
+ update: Prisma.XOR<Prisma.OAuthAuthorizationCodeUpdateInput, Prisma.OAuthAuthorizationCodeUncheckedUpdateInput>;
1475
+ };
1476
+ /**
1477
+ * OAuthAuthorizationCode delete
1478
+ */
1479
+ export type OAuthAuthorizationCodeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1480
+ /**
1481
+ * Select specific fields to fetch from the OAuthAuthorizationCode
1482
+ */
1483
+ select?: Prisma.OAuthAuthorizationCodeSelect<ExtArgs> | null;
1484
+ /**
1485
+ * Omit specific fields from the OAuthAuthorizationCode
1486
+ */
1487
+ omit?: Prisma.OAuthAuthorizationCodeOmit<ExtArgs> | null;
1488
+ /**
1489
+ * Choose, which related nodes to fetch as well
1490
+ */
1491
+ include?: Prisma.OAuthAuthorizationCodeInclude<ExtArgs> | null;
1492
+ /**
1493
+ * Filter which OAuthAuthorizationCode to delete.
1494
+ */
1495
+ where: Prisma.OAuthAuthorizationCodeWhereUniqueInput;
1496
+ };
1497
+ /**
1498
+ * OAuthAuthorizationCode deleteMany
1499
+ */
1500
+ export type OAuthAuthorizationCodeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1501
+ /**
1502
+ * Filter which OAuthAuthorizationCodes to delete
1503
+ */
1504
+ where?: Prisma.OAuthAuthorizationCodeWhereInput;
1505
+ /**
1506
+ * Limit how many OAuthAuthorizationCodes to delete.
1507
+ */
1508
+ limit?: number;
1509
+ };
1510
+ /**
1511
+ * OAuthAuthorizationCode without action
1512
+ */
1513
+ export type OAuthAuthorizationCodeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1514
+ /**
1515
+ * Select specific fields to fetch from the OAuthAuthorizationCode
1516
+ */
1517
+ select?: Prisma.OAuthAuthorizationCodeSelect<ExtArgs> | null;
1518
+ /**
1519
+ * Omit specific fields from the OAuthAuthorizationCode
1520
+ */
1521
+ omit?: Prisma.OAuthAuthorizationCodeOmit<ExtArgs> | null;
1522
+ /**
1523
+ * Choose, which related nodes to fetch as well
1524
+ */
1525
+ include?: Prisma.OAuthAuthorizationCodeInclude<ExtArgs> | null;
1526
+ };