@triskcraft/db 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 (148) hide show
  1. package/README.md +45 -0
  2. package/dist/generated/browser.d.ts +110 -0
  3. package/dist/generated/browser.d.ts.map +1 -0
  4. package/dist/generated/browser.js +18 -0
  5. package/dist/generated/browser.js.map +1 -0
  6. package/dist/generated/client.d.ts +129 -0
  7. package/dist/generated/client.d.ts.map +1 -0
  8. package/dist/generated/client.js +35 -0
  9. package/dist/generated/client.js.map +1 -0
  10. package/dist/generated/commonInputTypes.d.ts +501 -0
  11. package/dist/generated/commonInputTypes.d.ts.map +1 -0
  12. package/dist/generated/commonInputTypes.js +11 -0
  13. package/dist/generated/commonInputTypes.js.map +1 -0
  14. package/dist/generated/enums.d.ts +19 -0
  15. package/dist/generated/enums.d.ts.map +1 -0
  16. package/dist/generated/enums.js +25 -0
  17. package/dist/generated/enums.js.map +1 -0
  18. package/dist/generated/internal/class.d.ts +363 -0
  19. package/dist/generated/internal/class.d.ts.map +1 -0
  20. package/dist/generated/internal/class.js +52 -0
  21. package/dist/generated/internal/class.js.map +1 -0
  22. package/dist/generated/internal/prismaNamespace.d.ts +2282 -0
  23. package/dist/generated/internal/prismaNamespace.d.ts.map +1 -0
  24. package/dist/generated/internal/prismaNamespace.js +262 -0
  25. package/dist/generated/internal/prismaNamespace.js.map +1 -0
  26. package/dist/generated/internal/prismaNamespaceBrowser.d.ts +243 -0
  27. package/dist/generated/internal/prismaNamespaceBrowser.d.ts.map +1 -0
  28. package/dist/generated/internal/prismaNamespaceBrowser.js +233 -0
  29. package/dist/generated/internal/prismaNamespaceBrowser.js.map +1 -0
  30. package/dist/generated/models/AuthorizationCode.d.ts +1445 -0
  31. package/dist/generated/models/AuthorizationCode.d.ts.map +1 -0
  32. package/dist/generated/models/AuthorizationCode.js +2 -0
  33. package/dist/generated/models/AuthorizationCode.js.map +1 -0
  34. package/dist/generated/models/Client.d.ts +1301 -0
  35. package/dist/generated/models/Client.d.ts.map +1 -0
  36. package/dist/generated/models/Client.js +2 -0
  37. package/dist/generated/models/Client.js.map +1 -0
  38. package/dist/generated/models/DiscordUser.d.ts +1335 -0
  39. package/dist/generated/models/DiscordUser.d.ts.map +1 -0
  40. package/dist/generated/models/DiscordUser.js +2 -0
  41. package/dist/generated/models/DiscordUser.js.map +1 -0
  42. package/dist/generated/models/InactivityPeriod.d.ts +1255 -0
  43. package/dist/generated/models/InactivityPeriod.d.ts.map +1 -0
  44. package/dist/generated/models/InactivityPeriod.js +2 -0
  45. package/dist/generated/models/InactivityPeriod.js.map +1 -0
  46. package/dist/generated/models/LinkCode.d.ts +1100 -0
  47. package/dist/generated/models/LinkCode.d.ts.map +1 -0
  48. package/dist/generated/models/LinkCode.js +2 -0
  49. package/dist/generated/models/LinkCode.js.map +1 -0
  50. package/dist/generated/models/LinkedMinecraftRole.d.ts +1162 -0
  51. package/dist/generated/models/LinkedMinecraftRole.d.ts.map +1 -0
  52. package/dist/generated/models/LinkedMinecraftRole.js +2 -0
  53. package/dist/generated/models/LinkedMinecraftRole.js.map +1 -0
  54. package/dist/generated/models/LinkedRole.d.ts +1162 -0
  55. package/dist/generated/models/LinkedRole.d.ts.map +1 -0
  56. package/dist/generated/models/LinkedRole.js +2 -0
  57. package/dist/generated/models/LinkedRole.js.map +1 -0
  58. package/dist/generated/models/Media.d.ts +1146 -0
  59. package/dist/generated/models/Media.d.ts.map +1 -0
  60. package/dist/generated/models/Media.js +2 -0
  61. package/dist/generated/models/Media.js.map +1 -0
  62. package/dist/generated/models/MinecraftRole.d.ts +1064 -0
  63. package/dist/generated/models/MinecraftRole.d.ts.map +1 -0
  64. package/dist/generated/models/MinecraftRole.js +2 -0
  65. package/dist/generated/models/MinecraftRole.js.map +1 -0
  66. package/dist/generated/models/Player.d.ts +1458 -0
  67. package/dist/generated/models/Player.d.ts.map +1 -0
  68. package/dist/generated/models/Player.js +2 -0
  69. package/dist/generated/models/Player.js.map +1 -0
  70. package/dist/generated/models/Post.d.ts +1534 -0
  71. package/dist/generated/models/Post.d.ts.map +1 -0
  72. package/dist/generated/models/Post.js +2 -0
  73. package/dist/generated/models/Post.js.map +1 -0
  74. package/dist/generated/models/PostBlockMedia.d.ts +1243 -0
  75. package/dist/generated/models/PostBlockMedia.d.ts.map +1 -0
  76. package/dist/generated/models/PostBlockMedia.js +2 -0
  77. package/dist/generated/models/PostBlockMedia.js.map +1 -0
  78. package/dist/generated/models/PostBlocks.d.ts +1506 -0
  79. package/dist/generated/models/PostBlocks.d.ts.map +1 -0
  80. package/dist/generated/models/PostBlocks.js +2 -0
  81. package/dist/generated/models/PostBlocks.js.map +1 -0
  82. package/dist/generated/models/PostMedia.d.ts +1497 -0
  83. package/dist/generated/models/PostMedia.d.ts.map +1 -0
  84. package/dist/generated/models/PostMedia.js +2 -0
  85. package/dist/generated/models/PostMedia.js.map +1 -0
  86. package/dist/generated/models/Role.d.ts +1144 -0
  87. package/dist/generated/models/Role.d.ts.map +1 -0
  88. package/dist/generated/models/Role.js +2 -0
  89. package/dist/generated/models/Role.js.map +1 -0
  90. package/dist/generated/models/RoleStatistic.d.ts +1077 -0
  91. package/dist/generated/models/RoleStatistic.d.ts.map +1 -0
  92. package/dist/generated/models/RoleStatistic.js +2 -0
  93. package/dist/generated/models/RoleStatistic.js.map +1 -0
  94. package/dist/generated/models/Session.d.ts +1366 -0
  95. package/dist/generated/models/Session.d.ts.map +1 -0
  96. package/dist/generated/models/Session.js +2 -0
  97. package/dist/generated/models/Session.js.map +1 -0
  98. package/dist/generated/models/State.d.ts +970 -0
  99. package/dist/generated/models/State.d.ts.map +1 -0
  100. package/dist/generated/models/State.js +2 -0
  101. package/dist/generated/models/State.js.map +1 -0
  102. package/dist/generated/models/TrackedRole.d.ts +947 -0
  103. package/dist/generated/models/TrackedRole.d.ts.map +1 -0
  104. package/dist/generated/models/TrackedRole.js +2 -0
  105. package/dist/generated/models/TrackedRole.js.map +1 -0
  106. package/dist/generated/models/User.d.ts +1842 -0
  107. package/dist/generated/models/User.d.ts.map +1 -0
  108. package/dist/generated/models/User.js +2 -0
  109. package/dist/generated/models/User.js.map +1 -0
  110. package/dist/generated/models/WebhookToken.d.ts +1219 -0
  111. package/dist/generated/models/WebhookToken.d.ts.map +1 -0
  112. package/dist/generated/models/WebhookToken.js +2 -0
  113. package/dist/generated/models/WebhookToken.js.map +1 -0
  114. package/dist/generated/models.d.ts +23 -0
  115. package/dist/generated/models.d.ts.map +1 -0
  116. package/dist/generated/models.js +2 -0
  117. package/dist/generated/models.js.map +1 -0
  118. package/dist/index.d.ts +6 -0
  119. package/dist/index.d.ts.map +1 -0
  120. package/dist/index.js +15 -0
  121. package/dist/index.js.map +1 -0
  122. package/package.json +50 -0
  123. package/prisma/migrations/20251231000230_init/migration.sql +156 -0
  124. package/prisma/migrations/20251231011118_add_rank/migration.sql +2 -0
  125. package/prisma/migrations/20251231014040_discord_code/migration.sql +2 -0
  126. package/prisma/migrations/20260107232913_webhook_tokens/migration.sql +13 -0
  127. package/prisma/migrations/20260108014222_token_name/migration.sql +8 -0
  128. package/prisma/migrations/20260120042444_states/migration.sql +13 -0
  129. package/prisma/migrations/20260120052250_at/migration.sql +10 -0
  130. package/prisma/migrations/20260120061112_uq_token/migration.sql +8 -0
  131. package/prisma/migrations/20260121013517_uq_nick/migration.sql +8 -0
  132. package/prisma/migrations/20260125034645_mc_rank/migration.sql +2 -0
  133. package/prisma/migrations/20260202222436_remove_rank_from_discord/migration.sql +8 -0
  134. package/prisma/migrations/20260202234919_discord_user_username/migration.sql +2 -0
  135. package/prisma/migrations/20260202235832_uq_discord_username/migration.sql +12 -0
  136. package/prisma/migrations/20260301230127_blog/migration.sql +45 -0
  137. package/prisma/migrations/20260308062159_player_status/migration.sql +5 -0
  138. package/prisma/migrations/20260314152500_last_seen/migration.sql +2 -0
  139. package/prisma/migrations/20260430073735_oauth_prepare/migration.sql +102 -0
  140. package/prisma/migrations/20260603052836_scopes/migration.sql +11 -0
  141. package/prisma/migrations/20260603055719_scopes_sesion/migration.sql +2 -0
  142. package/prisma/migrations/20260603201228_user_roles/migration.sql +38 -0
  143. package/prisma/migrations/20260608060633_blog_media/migration.sql +61 -0
  144. package/prisma/migrations/20260612000040_prepare_post_users/migration.sql +5 -0
  145. package/prisma/migrations/20260612165923_prepare_webhook_user/migration.sql +53 -0
  146. package/prisma/migrations/20260612210328_remove_webhook_discord_user/migration.sql +19 -0
  147. package/prisma/migrations/migration_lock.toml +3 -0
  148. package/prisma/schema.prisma +325 -0
@@ -0,0 +1,1445 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.ts";
3
+ /**
4
+ * Model AuthorizationCode
5
+ *
6
+ */
7
+ export type AuthorizationCodeModel = runtime.Types.Result.DefaultSelection<Prisma.$AuthorizationCodePayload>;
8
+ export type AggregateAuthorizationCode = {
9
+ _count: AuthorizationCodeCountAggregateOutputType | null;
10
+ _min: AuthorizationCodeMinAggregateOutputType | null;
11
+ _max: AuthorizationCodeMaxAggregateOutputType | null;
12
+ };
13
+ export type AuthorizationCodeMinAggregateOutputType = {
14
+ id: string | null;
15
+ code: string | null;
16
+ user_id: string | null;
17
+ client_id: string | null;
18
+ redirect_uri: string | null;
19
+ code_challenge: string | null;
20
+ expires_at: Date | null;
21
+ created_at: Date | null;
22
+ scope: string | null;
23
+ };
24
+ export type AuthorizationCodeMaxAggregateOutputType = {
25
+ id: string | null;
26
+ code: string | null;
27
+ user_id: string | null;
28
+ client_id: string | null;
29
+ redirect_uri: string | null;
30
+ code_challenge: string | null;
31
+ expires_at: Date | null;
32
+ created_at: Date | null;
33
+ scope: string | null;
34
+ };
35
+ export type AuthorizationCodeCountAggregateOutputType = {
36
+ id: number;
37
+ code: number;
38
+ user_id: number;
39
+ client_id: number;
40
+ redirect_uri: number;
41
+ code_challenge: number;
42
+ expires_at: number;
43
+ created_at: number;
44
+ scope: number;
45
+ _all: number;
46
+ };
47
+ export type AuthorizationCodeMinAggregateInputType = {
48
+ id?: true;
49
+ code?: true;
50
+ user_id?: true;
51
+ client_id?: true;
52
+ redirect_uri?: true;
53
+ code_challenge?: true;
54
+ expires_at?: true;
55
+ created_at?: true;
56
+ scope?: true;
57
+ };
58
+ export type AuthorizationCodeMaxAggregateInputType = {
59
+ id?: true;
60
+ code?: true;
61
+ user_id?: true;
62
+ client_id?: true;
63
+ redirect_uri?: true;
64
+ code_challenge?: true;
65
+ expires_at?: true;
66
+ created_at?: true;
67
+ scope?: true;
68
+ };
69
+ export type AuthorizationCodeCountAggregateInputType = {
70
+ id?: true;
71
+ code?: true;
72
+ user_id?: true;
73
+ client_id?: true;
74
+ redirect_uri?: true;
75
+ code_challenge?: true;
76
+ expires_at?: true;
77
+ created_at?: true;
78
+ scope?: true;
79
+ _all?: true;
80
+ };
81
+ export type AuthorizationCodeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
82
+ /**
83
+ * Filter which AuthorizationCode to aggregate.
84
+ */
85
+ where?: Prisma.AuthorizationCodeWhereInput;
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
88
+ *
89
+ * Determine the order of AuthorizationCodes to fetch.
90
+ */
91
+ orderBy?: Prisma.AuthorizationCodeOrderByWithRelationInput | Prisma.AuthorizationCodeOrderByWithRelationInput[];
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
94
+ *
95
+ * Sets the start position
96
+ */
97
+ cursor?: Prisma.AuthorizationCodeWhereUniqueInput;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
100
+ *
101
+ * Take `±n` AuthorizationCodes from the position of the cursor.
102
+ */
103
+ take?: number;
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
106
+ *
107
+ * Skip the first `n` AuthorizationCodes.
108
+ */
109
+ skip?: number;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
+ *
113
+ * Count returned AuthorizationCodes
114
+ **/
115
+ _count?: true | AuthorizationCodeCountAggregateInputType;
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
118
+ *
119
+ * Select which fields to find the minimum value
120
+ **/
121
+ _min?: AuthorizationCodeMinAggregateInputType;
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
124
+ *
125
+ * Select which fields to find the maximum value
126
+ **/
127
+ _max?: AuthorizationCodeMaxAggregateInputType;
128
+ };
129
+ export type GetAuthorizationCodeAggregateType<T extends AuthorizationCodeAggregateArgs> = {
130
+ [P in keyof T & keyof AggregateAuthorizationCode]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAuthorizationCode[P]> : Prisma.GetScalarType<T[P], AggregateAuthorizationCode[P]>;
131
+ };
132
+ export type AuthorizationCodeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
133
+ where?: Prisma.AuthorizationCodeWhereInput;
134
+ orderBy?: Prisma.AuthorizationCodeOrderByWithAggregationInput | Prisma.AuthorizationCodeOrderByWithAggregationInput[];
135
+ by: Prisma.AuthorizationCodeScalarFieldEnum[] | Prisma.AuthorizationCodeScalarFieldEnum;
136
+ having?: Prisma.AuthorizationCodeScalarWhereWithAggregatesInput;
137
+ take?: number;
138
+ skip?: number;
139
+ _count?: AuthorizationCodeCountAggregateInputType | true;
140
+ _min?: AuthorizationCodeMinAggregateInputType;
141
+ _max?: AuthorizationCodeMaxAggregateInputType;
142
+ };
143
+ export type AuthorizationCodeGroupByOutputType = {
144
+ id: string;
145
+ code: string;
146
+ user_id: string;
147
+ client_id: string;
148
+ redirect_uri: string;
149
+ code_challenge: string;
150
+ expires_at: Date;
151
+ created_at: Date;
152
+ scope: string;
153
+ _count: AuthorizationCodeCountAggregateOutputType | null;
154
+ _min: AuthorizationCodeMinAggregateOutputType | null;
155
+ _max: AuthorizationCodeMaxAggregateOutputType | null;
156
+ };
157
+ export type GetAuthorizationCodeGroupByPayload<T extends AuthorizationCodeGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AuthorizationCodeGroupByOutputType, T['by']> & {
158
+ [P in ((keyof T) & (keyof AuthorizationCodeGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AuthorizationCodeGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AuthorizationCodeGroupByOutputType[P]>;
159
+ }>>;
160
+ export type AuthorizationCodeWhereInput = {
161
+ AND?: Prisma.AuthorizationCodeWhereInput | Prisma.AuthorizationCodeWhereInput[];
162
+ OR?: Prisma.AuthorizationCodeWhereInput[];
163
+ NOT?: Prisma.AuthorizationCodeWhereInput | Prisma.AuthorizationCodeWhereInput[];
164
+ id?: Prisma.StringFilter<"AuthorizationCode"> | string;
165
+ code?: Prisma.StringFilter<"AuthorizationCode"> | string;
166
+ user_id?: Prisma.StringFilter<"AuthorizationCode"> | string;
167
+ client_id?: Prisma.StringFilter<"AuthorizationCode"> | string;
168
+ redirect_uri?: Prisma.StringFilter<"AuthorizationCode"> | string;
169
+ code_challenge?: Prisma.StringFilter<"AuthorizationCode"> | string;
170
+ expires_at?: Prisma.DateTimeFilter<"AuthorizationCode"> | Date | string;
171
+ created_at?: Prisma.DateTimeFilter<"AuthorizationCode"> | Date | string;
172
+ scope?: Prisma.StringFilter<"AuthorizationCode"> | string;
173
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
174
+ client?: Prisma.XOR<Prisma.ClientScalarRelationFilter, Prisma.ClientWhereInput>;
175
+ };
176
+ export type AuthorizationCodeOrderByWithRelationInput = {
177
+ id?: Prisma.SortOrder;
178
+ code?: Prisma.SortOrder;
179
+ user_id?: Prisma.SortOrder;
180
+ client_id?: Prisma.SortOrder;
181
+ redirect_uri?: Prisma.SortOrder;
182
+ code_challenge?: Prisma.SortOrder;
183
+ expires_at?: Prisma.SortOrder;
184
+ created_at?: Prisma.SortOrder;
185
+ scope?: Prisma.SortOrder;
186
+ user?: Prisma.UserOrderByWithRelationInput;
187
+ client?: Prisma.ClientOrderByWithRelationInput;
188
+ };
189
+ export type AuthorizationCodeWhereUniqueInput = Prisma.AtLeast<{
190
+ id?: string;
191
+ code?: string;
192
+ AND?: Prisma.AuthorizationCodeWhereInput | Prisma.AuthorizationCodeWhereInput[];
193
+ OR?: Prisma.AuthorizationCodeWhereInput[];
194
+ NOT?: Prisma.AuthorizationCodeWhereInput | Prisma.AuthorizationCodeWhereInput[];
195
+ user_id?: Prisma.StringFilter<"AuthorizationCode"> | string;
196
+ client_id?: Prisma.StringFilter<"AuthorizationCode"> | string;
197
+ redirect_uri?: Prisma.StringFilter<"AuthorizationCode"> | string;
198
+ code_challenge?: Prisma.StringFilter<"AuthorizationCode"> | string;
199
+ expires_at?: Prisma.DateTimeFilter<"AuthorizationCode"> | Date | string;
200
+ created_at?: Prisma.DateTimeFilter<"AuthorizationCode"> | Date | string;
201
+ scope?: Prisma.StringFilter<"AuthorizationCode"> | string;
202
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
203
+ client?: Prisma.XOR<Prisma.ClientScalarRelationFilter, Prisma.ClientWhereInput>;
204
+ }, "id" | "code">;
205
+ export type AuthorizationCodeOrderByWithAggregationInput = {
206
+ id?: Prisma.SortOrder;
207
+ code?: Prisma.SortOrder;
208
+ user_id?: Prisma.SortOrder;
209
+ client_id?: Prisma.SortOrder;
210
+ redirect_uri?: Prisma.SortOrder;
211
+ code_challenge?: Prisma.SortOrder;
212
+ expires_at?: Prisma.SortOrder;
213
+ created_at?: Prisma.SortOrder;
214
+ scope?: Prisma.SortOrder;
215
+ _count?: Prisma.AuthorizationCodeCountOrderByAggregateInput;
216
+ _max?: Prisma.AuthorizationCodeMaxOrderByAggregateInput;
217
+ _min?: Prisma.AuthorizationCodeMinOrderByAggregateInput;
218
+ };
219
+ export type AuthorizationCodeScalarWhereWithAggregatesInput = {
220
+ AND?: Prisma.AuthorizationCodeScalarWhereWithAggregatesInput | Prisma.AuthorizationCodeScalarWhereWithAggregatesInput[];
221
+ OR?: Prisma.AuthorizationCodeScalarWhereWithAggregatesInput[];
222
+ NOT?: Prisma.AuthorizationCodeScalarWhereWithAggregatesInput | Prisma.AuthorizationCodeScalarWhereWithAggregatesInput[];
223
+ id?: Prisma.StringWithAggregatesFilter<"AuthorizationCode"> | string;
224
+ code?: Prisma.StringWithAggregatesFilter<"AuthorizationCode"> | string;
225
+ user_id?: Prisma.StringWithAggregatesFilter<"AuthorizationCode"> | string;
226
+ client_id?: Prisma.StringWithAggregatesFilter<"AuthorizationCode"> | string;
227
+ redirect_uri?: Prisma.StringWithAggregatesFilter<"AuthorizationCode"> | string;
228
+ code_challenge?: Prisma.StringWithAggregatesFilter<"AuthorizationCode"> | string;
229
+ expires_at?: Prisma.DateTimeWithAggregatesFilter<"AuthorizationCode"> | Date | string;
230
+ created_at?: Prisma.DateTimeWithAggregatesFilter<"AuthorizationCode"> | Date | string;
231
+ scope?: Prisma.StringWithAggregatesFilter<"AuthorizationCode"> | string;
232
+ };
233
+ export type AuthorizationCodeCreateInput = {
234
+ id?: string;
235
+ code: string;
236
+ redirect_uri: string;
237
+ code_challenge: string;
238
+ expires_at: Date | string;
239
+ created_at?: Date | string;
240
+ scope: string;
241
+ user: Prisma.UserCreateNestedOneWithoutAuthorization_codesInput;
242
+ client: Prisma.ClientCreateNestedOneWithoutAuthorization_codesInput;
243
+ };
244
+ export type AuthorizationCodeUncheckedCreateInput = {
245
+ id?: string;
246
+ code: string;
247
+ user_id: string;
248
+ client_id: string;
249
+ redirect_uri: string;
250
+ code_challenge: string;
251
+ expires_at: Date | string;
252
+ created_at?: Date | string;
253
+ scope: string;
254
+ };
255
+ export type AuthorizationCodeUpdateInput = {
256
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
257
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
258
+ redirect_uri?: Prisma.StringFieldUpdateOperationsInput | string;
259
+ code_challenge?: Prisma.StringFieldUpdateOperationsInput | string;
260
+ expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
261
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
262
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
263
+ user?: Prisma.UserUpdateOneRequiredWithoutAuthorization_codesNestedInput;
264
+ client?: Prisma.ClientUpdateOneRequiredWithoutAuthorization_codesNestedInput;
265
+ };
266
+ export type AuthorizationCodeUncheckedUpdateInput = {
267
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
268
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
269
+ user_id?: Prisma.StringFieldUpdateOperationsInput | string;
270
+ client_id?: Prisma.StringFieldUpdateOperationsInput | string;
271
+ redirect_uri?: Prisma.StringFieldUpdateOperationsInput | string;
272
+ code_challenge?: Prisma.StringFieldUpdateOperationsInput | string;
273
+ expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
274
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
275
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
276
+ };
277
+ export type AuthorizationCodeCreateManyInput = {
278
+ id?: string;
279
+ code: string;
280
+ user_id: string;
281
+ client_id: string;
282
+ redirect_uri: string;
283
+ code_challenge: string;
284
+ expires_at: Date | string;
285
+ created_at?: Date | string;
286
+ scope: string;
287
+ };
288
+ export type AuthorizationCodeUpdateManyMutationInput = {
289
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
290
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
291
+ redirect_uri?: Prisma.StringFieldUpdateOperationsInput | string;
292
+ code_challenge?: Prisma.StringFieldUpdateOperationsInput | string;
293
+ expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
294
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
295
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
296
+ };
297
+ export type AuthorizationCodeUncheckedUpdateManyInput = {
298
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
299
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
300
+ user_id?: Prisma.StringFieldUpdateOperationsInput | string;
301
+ client_id?: Prisma.StringFieldUpdateOperationsInput | string;
302
+ redirect_uri?: Prisma.StringFieldUpdateOperationsInput | string;
303
+ code_challenge?: Prisma.StringFieldUpdateOperationsInput | string;
304
+ expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
305
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
306
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
307
+ };
308
+ export type AuthorizationCodeListRelationFilter = {
309
+ every?: Prisma.AuthorizationCodeWhereInput;
310
+ some?: Prisma.AuthorizationCodeWhereInput;
311
+ none?: Prisma.AuthorizationCodeWhereInput;
312
+ };
313
+ export type AuthorizationCodeOrderByRelationAggregateInput = {
314
+ _count?: Prisma.SortOrder;
315
+ };
316
+ export type AuthorizationCodeCountOrderByAggregateInput = {
317
+ id?: Prisma.SortOrder;
318
+ code?: Prisma.SortOrder;
319
+ user_id?: Prisma.SortOrder;
320
+ client_id?: Prisma.SortOrder;
321
+ redirect_uri?: Prisma.SortOrder;
322
+ code_challenge?: Prisma.SortOrder;
323
+ expires_at?: Prisma.SortOrder;
324
+ created_at?: Prisma.SortOrder;
325
+ scope?: Prisma.SortOrder;
326
+ };
327
+ export type AuthorizationCodeMaxOrderByAggregateInput = {
328
+ id?: Prisma.SortOrder;
329
+ code?: Prisma.SortOrder;
330
+ user_id?: Prisma.SortOrder;
331
+ client_id?: Prisma.SortOrder;
332
+ redirect_uri?: Prisma.SortOrder;
333
+ code_challenge?: Prisma.SortOrder;
334
+ expires_at?: Prisma.SortOrder;
335
+ created_at?: Prisma.SortOrder;
336
+ scope?: Prisma.SortOrder;
337
+ };
338
+ export type AuthorizationCodeMinOrderByAggregateInput = {
339
+ id?: Prisma.SortOrder;
340
+ code?: Prisma.SortOrder;
341
+ user_id?: Prisma.SortOrder;
342
+ client_id?: Prisma.SortOrder;
343
+ redirect_uri?: Prisma.SortOrder;
344
+ code_challenge?: Prisma.SortOrder;
345
+ expires_at?: Prisma.SortOrder;
346
+ created_at?: Prisma.SortOrder;
347
+ scope?: Prisma.SortOrder;
348
+ };
349
+ export type AuthorizationCodeCreateNestedManyWithoutUserInput = {
350
+ create?: Prisma.XOR<Prisma.AuthorizationCodeCreateWithoutUserInput, Prisma.AuthorizationCodeUncheckedCreateWithoutUserInput> | Prisma.AuthorizationCodeCreateWithoutUserInput[] | Prisma.AuthorizationCodeUncheckedCreateWithoutUserInput[];
351
+ connectOrCreate?: Prisma.AuthorizationCodeCreateOrConnectWithoutUserInput | Prisma.AuthorizationCodeCreateOrConnectWithoutUserInput[];
352
+ createMany?: Prisma.AuthorizationCodeCreateManyUserInputEnvelope;
353
+ connect?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
354
+ };
355
+ export type AuthorizationCodeUncheckedCreateNestedManyWithoutUserInput = {
356
+ create?: Prisma.XOR<Prisma.AuthorizationCodeCreateWithoutUserInput, Prisma.AuthorizationCodeUncheckedCreateWithoutUserInput> | Prisma.AuthorizationCodeCreateWithoutUserInput[] | Prisma.AuthorizationCodeUncheckedCreateWithoutUserInput[];
357
+ connectOrCreate?: Prisma.AuthorizationCodeCreateOrConnectWithoutUserInput | Prisma.AuthorizationCodeCreateOrConnectWithoutUserInput[];
358
+ createMany?: Prisma.AuthorizationCodeCreateManyUserInputEnvelope;
359
+ connect?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
360
+ };
361
+ export type AuthorizationCodeUpdateManyWithoutUserNestedInput = {
362
+ create?: Prisma.XOR<Prisma.AuthorizationCodeCreateWithoutUserInput, Prisma.AuthorizationCodeUncheckedCreateWithoutUserInput> | Prisma.AuthorizationCodeCreateWithoutUserInput[] | Prisma.AuthorizationCodeUncheckedCreateWithoutUserInput[];
363
+ connectOrCreate?: Prisma.AuthorizationCodeCreateOrConnectWithoutUserInput | Prisma.AuthorizationCodeCreateOrConnectWithoutUserInput[];
364
+ upsert?: Prisma.AuthorizationCodeUpsertWithWhereUniqueWithoutUserInput | Prisma.AuthorizationCodeUpsertWithWhereUniqueWithoutUserInput[];
365
+ createMany?: Prisma.AuthorizationCodeCreateManyUserInputEnvelope;
366
+ set?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
367
+ disconnect?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
368
+ delete?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
369
+ connect?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
370
+ update?: Prisma.AuthorizationCodeUpdateWithWhereUniqueWithoutUserInput | Prisma.AuthorizationCodeUpdateWithWhereUniqueWithoutUserInput[];
371
+ updateMany?: Prisma.AuthorizationCodeUpdateManyWithWhereWithoutUserInput | Prisma.AuthorizationCodeUpdateManyWithWhereWithoutUserInput[];
372
+ deleteMany?: Prisma.AuthorizationCodeScalarWhereInput | Prisma.AuthorizationCodeScalarWhereInput[];
373
+ };
374
+ export type AuthorizationCodeUncheckedUpdateManyWithoutUserNestedInput = {
375
+ create?: Prisma.XOR<Prisma.AuthorizationCodeCreateWithoutUserInput, Prisma.AuthorizationCodeUncheckedCreateWithoutUserInput> | Prisma.AuthorizationCodeCreateWithoutUserInput[] | Prisma.AuthorizationCodeUncheckedCreateWithoutUserInput[];
376
+ connectOrCreate?: Prisma.AuthorizationCodeCreateOrConnectWithoutUserInput | Prisma.AuthorizationCodeCreateOrConnectWithoutUserInput[];
377
+ upsert?: Prisma.AuthorizationCodeUpsertWithWhereUniqueWithoutUserInput | Prisma.AuthorizationCodeUpsertWithWhereUniqueWithoutUserInput[];
378
+ createMany?: Prisma.AuthorizationCodeCreateManyUserInputEnvelope;
379
+ set?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
380
+ disconnect?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
381
+ delete?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
382
+ connect?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
383
+ update?: Prisma.AuthorizationCodeUpdateWithWhereUniqueWithoutUserInput | Prisma.AuthorizationCodeUpdateWithWhereUniqueWithoutUserInput[];
384
+ updateMany?: Prisma.AuthorizationCodeUpdateManyWithWhereWithoutUserInput | Prisma.AuthorizationCodeUpdateManyWithWhereWithoutUserInput[];
385
+ deleteMany?: Prisma.AuthorizationCodeScalarWhereInput | Prisma.AuthorizationCodeScalarWhereInput[];
386
+ };
387
+ export type AuthorizationCodeCreateNestedManyWithoutClientInput = {
388
+ create?: Prisma.XOR<Prisma.AuthorizationCodeCreateWithoutClientInput, Prisma.AuthorizationCodeUncheckedCreateWithoutClientInput> | Prisma.AuthorizationCodeCreateWithoutClientInput[] | Prisma.AuthorizationCodeUncheckedCreateWithoutClientInput[];
389
+ connectOrCreate?: Prisma.AuthorizationCodeCreateOrConnectWithoutClientInput | Prisma.AuthorizationCodeCreateOrConnectWithoutClientInput[];
390
+ createMany?: Prisma.AuthorizationCodeCreateManyClientInputEnvelope;
391
+ connect?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
392
+ };
393
+ export type AuthorizationCodeUncheckedCreateNestedManyWithoutClientInput = {
394
+ create?: Prisma.XOR<Prisma.AuthorizationCodeCreateWithoutClientInput, Prisma.AuthorizationCodeUncheckedCreateWithoutClientInput> | Prisma.AuthorizationCodeCreateWithoutClientInput[] | Prisma.AuthorizationCodeUncheckedCreateWithoutClientInput[];
395
+ connectOrCreate?: Prisma.AuthorizationCodeCreateOrConnectWithoutClientInput | Prisma.AuthorizationCodeCreateOrConnectWithoutClientInput[];
396
+ createMany?: Prisma.AuthorizationCodeCreateManyClientInputEnvelope;
397
+ connect?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
398
+ };
399
+ export type AuthorizationCodeUpdateManyWithoutClientNestedInput = {
400
+ create?: Prisma.XOR<Prisma.AuthorizationCodeCreateWithoutClientInput, Prisma.AuthorizationCodeUncheckedCreateWithoutClientInput> | Prisma.AuthorizationCodeCreateWithoutClientInput[] | Prisma.AuthorizationCodeUncheckedCreateWithoutClientInput[];
401
+ connectOrCreate?: Prisma.AuthorizationCodeCreateOrConnectWithoutClientInput | Prisma.AuthorizationCodeCreateOrConnectWithoutClientInput[];
402
+ upsert?: Prisma.AuthorizationCodeUpsertWithWhereUniqueWithoutClientInput | Prisma.AuthorizationCodeUpsertWithWhereUniqueWithoutClientInput[];
403
+ createMany?: Prisma.AuthorizationCodeCreateManyClientInputEnvelope;
404
+ set?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
405
+ disconnect?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
406
+ delete?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
407
+ connect?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
408
+ update?: Prisma.AuthorizationCodeUpdateWithWhereUniqueWithoutClientInput | Prisma.AuthorizationCodeUpdateWithWhereUniqueWithoutClientInput[];
409
+ updateMany?: Prisma.AuthorizationCodeUpdateManyWithWhereWithoutClientInput | Prisma.AuthorizationCodeUpdateManyWithWhereWithoutClientInput[];
410
+ deleteMany?: Prisma.AuthorizationCodeScalarWhereInput | Prisma.AuthorizationCodeScalarWhereInput[];
411
+ };
412
+ export type AuthorizationCodeUncheckedUpdateManyWithoutClientNestedInput = {
413
+ create?: Prisma.XOR<Prisma.AuthorizationCodeCreateWithoutClientInput, Prisma.AuthorizationCodeUncheckedCreateWithoutClientInput> | Prisma.AuthorizationCodeCreateWithoutClientInput[] | Prisma.AuthorizationCodeUncheckedCreateWithoutClientInput[];
414
+ connectOrCreate?: Prisma.AuthorizationCodeCreateOrConnectWithoutClientInput | Prisma.AuthorizationCodeCreateOrConnectWithoutClientInput[];
415
+ upsert?: Prisma.AuthorizationCodeUpsertWithWhereUniqueWithoutClientInput | Prisma.AuthorizationCodeUpsertWithWhereUniqueWithoutClientInput[];
416
+ createMany?: Prisma.AuthorizationCodeCreateManyClientInputEnvelope;
417
+ set?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
418
+ disconnect?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
419
+ delete?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
420
+ connect?: Prisma.AuthorizationCodeWhereUniqueInput | Prisma.AuthorizationCodeWhereUniqueInput[];
421
+ update?: Prisma.AuthorizationCodeUpdateWithWhereUniqueWithoutClientInput | Prisma.AuthorizationCodeUpdateWithWhereUniqueWithoutClientInput[];
422
+ updateMany?: Prisma.AuthorizationCodeUpdateManyWithWhereWithoutClientInput | Prisma.AuthorizationCodeUpdateManyWithWhereWithoutClientInput[];
423
+ deleteMany?: Prisma.AuthorizationCodeScalarWhereInput | Prisma.AuthorizationCodeScalarWhereInput[];
424
+ };
425
+ export type AuthorizationCodeCreateWithoutUserInput = {
426
+ id?: string;
427
+ code: string;
428
+ redirect_uri: string;
429
+ code_challenge: string;
430
+ expires_at: Date | string;
431
+ created_at?: Date | string;
432
+ scope: string;
433
+ client: Prisma.ClientCreateNestedOneWithoutAuthorization_codesInput;
434
+ };
435
+ export type AuthorizationCodeUncheckedCreateWithoutUserInput = {
436
+ id?: string;
437
+ code: string;
438
+ client_id: string;
439
+ redirect_uri: string;
440
+ code_challenge: string;
441
+ expires_at: Date | string;
442
+ created_at?: Date | string;
443
+ scope: string;
444
+ };
445
+ export type AuthorizationCodeCreateOrConnectWithoutUserInput = {
446
+ where: Prisma.AuthorizationCodeWhereUniqueInput;
447
+ create: Prisma.XOR<Prisma.AuthorizationCodeCreateWithoutUserInput, Prisma.AuthorizationCodeUncheckedCreateWithoutUserInput>;
448
+ };
449
+ export type AuthorizationCodeCreateManyUserInputEnvelope = {
450
+ data: Prisma.AuthorizationCodeCreateManyUserInput | Prisma.AuthorizationCodeCreateManyUserInput[];
451
+ skipDuplicates?: boolean;
452
+ };
453
+ export type AuthorizationCodeUpsertWithWhereUniqueWithoutUserInput = {
454
+ where: Prisma.AuthorizationCodeWhereUniqueInput;
455
+ update: Prisma.XOR<Prisma.AuthorizationCodeUpdateWithoutUserInput, Prisma.AuthorizationCodeUncheckedUpdateWithoutUserInput>;
456
+ create: Prisma.XOR<Prisma.AuthorizationCodeCreateWithoutUserInput, Prisma.AuthorizationCodeUncheckedCreateWithoutUserInput>;
457
+ };
458
+ export type AuthorizationCodeUpdateWithWhereUniqueWithoutUserInput = {
459
+ where: Prisma.AuthorizationCodeWhereUniqueInput;
460
+ data: Prisma.XOR<Prisma.AuthorizationCodeUpdateWithoutUserInput, Prisma.AuthorizationCodeUncheckedUpdateWithoutUserInput>;
461
+ };
462
+ export type AuthorizationCodeUpdateManyWithWhereWithoutUserInput = {
463
+ where: Prisma.AuthorizationCodeScalarWhereInput;
464
+ data: Prisma.XOR<Prisma.AuthorizationCodeUpdateManyMutationInput, Prisma.AuthorizationCodeUncheckedUpdateManyWithoutUserInput>;
465
+ };
466
+ export type AuthorizationCodeScalarWhereInput = {
467
+ AND?: Prisma.AuthorizationCodeScalarWhereInput | Prisma.AuthorizationCodeScalarWhereInput[];
468
+ OR?: Prisma.AuthorizationCodeScalarWhereInput[];
469
+ NOT?: Prisma.AuthorizationCodeScalarWhereInput | Prisma.AuthorizationCodeScalarWhereInput[];
470
+ id?: Prisma.StringFilter<"AuthorizationCode"> | string;
471
+ code?: Prisma.StringFilter<"AuthorizationCode"> | string;
472
+ user_id?: Prisma.StringFilter<"AuthorizationCode"> | string;
473
+ client_id?: Prisma.StringFilter<"AuthorizationCode"> | string;
474
+ redirect_uri?: Prisma.StringFilter<"AuthorizationCode"> | string;
475
+ code_challenge?: Prisma.StringFilter<"AuthorizationCode"> | string;
476
+ expires_at?: Prisma.DateTimeFilter<"AuthorizationCode"> | Date | string;
477
+ created_at?: Prisma.DateTimeFilter<"AuthorizationCode"> | Date | string;
478
+ scope?: Prisma.StringFilter<"AuthorizationCode"> | string;
479
+ };
480
+ export type AuthorizationCodeCreateWithoutClientInput = {
481
+ id?: string;
482
+ code: string;
483
+ redirect_uri: string;
484
+ code_challenge: string;
485
+ expires_at: Date | string;
486
+ created_at?: Date | string;
487
+ scope: string;
488
+ user: Prisma.UserCreateNestedOneWithoutAuthorization_codesInput;
489
+ };
490
+ export type AuthorizationCodeUncheckedCreateWithoutClientInput = {
491
+ id?: string;
492
+ code: string;
493
+ user_id: string;
494
+ redirect_uri: string;
495
+ code_challenge: string;
496
+ expires_at: Date | string;
497
+ created_at?: Date | string;
498
+ scope: string;
499
+ };
500
+ export type AuthorizationCodeCreateOrConnectWithoutClientInput = {
501
+ where: Prisma.AuthorizationCodeWhereUniqueInput;
502
+ create: Prisma.XOR<Prisma.AuthorizationCodeCreateWithoutClientInput, Prisma.AuthorizationCodeUncheckedCreateWithoutClientInput>;
503
+ };
504
+ export type AuthorizationCodeCreateManyClientInputEnvelope = {
505
+ data: Prisma.AuthorizationCodeCreateManyClientInput | Prisma.AuthorizationCodeCreateManyClientInput[];
506
+ skipDuplicates?: boolean;
507
+ };
508
+ export type AuthorizationCodeUpsertWithWhereUniqueWithoutClientInput = {
509
+ where: Prisma.AuthorizationCodeWhereUniqueInput;
510
+ update: Prisma.XOR<Prisma.AuthorizationCodeUpdateWithoutClientInput, Prisma.AuthorizationCodeUncheckedUpdateWithoutClientInput>;
511
+ create: Prisma.XOR<Prisma.AuthorizationCodeCreateWithoutClientInput, Prisma.AuthorizationCodeUncheckedCreateWithoutClientInput>;
512
+ };
513
+ export type AuthorizationCodeUpdateWithWhereUniqueWithoutClientInput = {
514
+ where: Prisma.AuthorizationCodeWhereUniqueInput;
515
+ data: Prisma.XOR<Prisma.AuthorizationCodeUpdateWithoutClientInput, Prisma.AuthorizationCodeUncheckedUpdateWithoutClientInput>;
516
+ };
517
+ export type AuthorizationCodeUpdateManyWithWhereWithoutClientInput = {
518
+ where: Prisma.AuthorizationCodeScalarWhereInput;
519
+ data: Prisma.XOR<Prisma.AuthorizationCodeUpdateManyMutationInput, Prisma.AuthorizationCodeUncheckedUpdateManyWithoutClientInput>;
520
+ };
521
+ export type AuthorizationCodeCreateManyUserInput = {
522
+ id?: string;
523
+ code: string;
524
+ client_id: string;
525
+ redirect_uri: string;
526
+ code_challenge: string;
527
+ expires_at: Date | string;
528
+ created_at?: Date | string;
529
+ scope: string;
530
+ };
531
+ export type AuthorizationCodeUpdateWithoutUserInput = {
532
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
533
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
534
+ redirect_uri?: Prisma.StringFieldUpdateOperationsInput | string;
535
+ code_challenge?: Prisma.StringFieldUpdateOperationsInput | string;
536
+ expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
537
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
538
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
539
+ client?: Prisma.ClientUpdateOneRequiredWithoutAuthorization_codesNestedInput;
540
+ };
541
+ export type AuthorizationCodeUncheckedUpdateWithoutUserInput = {
542
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
543
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
544
+ client_id?: Prisma.StringFieldUpdateOperationsInput | string;
545
+ redirect_uri?: Prisma.StringFieldUpdateOperationsInput | string;
546
+ code_challenge?: Prisma.StringFieldUpdateOperationsInput | string;
547
+ expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
548
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
549
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
550
+ };
551
+ export type AuthorizationCodeUncheckedUpdateManyWithoutUserInput = {
552
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
553
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
554
+ client_id?: Prisma.StringFieldUpdateOperationsInput | string;
555
+ redirect_uri?: Prisma.StringFieldUpdateOperationsInput | string;
556
+ code_challenge?: Prisma.StringFieldUpdateOperationsInput | string;
557
+ expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
558
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
559
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
560
+ };
561
+ export type AuthorizationCodeCreateManyClientInput = {
562
+ id?: string;
563
+ code: string;
564
+ user_id: string;
565
+ redirect_uri: string;
566
+ code_challenge: string;
567
+ expires_at: Date | string;
568
+ created_at?: Date | string;
569
+ scope: string;
570
+ };
571
+ export type AuthorizationCodeUpdateWithoutClientInput = {
572
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
573
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
574
+ redirect_uri?: Prisma.StringFieldUpdateOperationsInput | string;
575
+ code_challenge?: Prisma.StringFieldUpdateOperationsInput | string;
576
+ expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
577
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
578
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
579
+ user?: Prisma.UserUpdateOneRequiredWithoutAuthorization_codesNestedInput;
580
+ };
581
+ export type AuthorizationCodeUncheckedUpdateWithoutClientInput = {
582
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
583
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
584
+ user_id?: Prisma.StringFieldUpdateOperationsInput | string;
585
+ redirect_uri?: Prisma.StringFieldUpdateOperationsInput | string;
586
+ code_challenge?: Prisma.StringFieldUpdateOperationsInput | string;
587
+ expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
588
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
589
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
590
+ };
591
+ export type AuthorizationCodeUncheckedUpdateManyWithoutClientInput = {
592
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
593
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
594
+ user_id?: Prisma.StringFieldUpdateOperationsInput | string;
595
+ redirect_uri?: Prisma.StringFieldUpdateOperationsInput | string;
596
+ code_challenge?: Prisma.StringFieldUpdateOperationsInput | string;
597
+ expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
598
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
599
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
600
+ };
601
+ export type AuthorizationCodeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
602
+ id?: boolean;
603
+ code?: boolean;
604
+ user_id?: boolean;
605
+ client_id?: boolean;
606
+ redirect_uri?: boolean;
607
+ code_challenge?: boolean;
608
+ expires_at?: boolean;
609
+ created_at?: boolean;
610
+ scope?: boolean;
611
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
612
+ client?: boolean | Prisma.ClientDefaultArgs<ExtArgs>;
613
+ }, ExtArgs["result"]["authorizationCode"]>;
614
+ export type AuthorizationCodeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
615
+ id?: boolean;
616
+ code?: boolean;
617
+ user_id?: boolean;
618
+ client_id?: boolean;
619
+ redirect_uri?: boolean;
620
+ code_challenge?: boolean;
621
+ expires_at?: boolean;
622
+ created_at?: boolean;
623
+ scope?: boolean;
624
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
625
+ client?: boolean | Prisma.ClientDefaultArgs<ExtArgs>;
626
+ }, ExtArgs["result"]["authorizationCode"]>;
627
+ export type AuthorizationCodeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
628
+ id?: boolean;
629
+ code?: boolean;
630
+ user_id?: boolean;
631
+ client_id?: boolean;
632
+ redirect_uri?: boolean;
633
+ code_challenge?: boolean;
634
+ expires_at?: boolean;
635
+ created_at?: boolean;
636
+ scope?: boolean;
637
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
638
+ client?: boolean | Prisma.ClientDefaultArgs<ExtArgs>;
639
+ }, ExtArgs["result"]["authorizationCode"]>;
640
+ export type AuthorizationCodeSelectScalar = {
641
+ id?: boolean;
642
+ code?: boolean;
643
+ user_id?: boolean;
644
+ client_id?: boolean;
645
+ redirect_uri?: boolean;
646
+ code_challenge?: boolean;
647
+ expires_at?: boolean;
648
+ created_at?: boolean;
649
+ scope?: boolean;
650
+ };
651
+ export type AuthorizationCodeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "user_id" | "client_id" | "redirect_uri" | "code_challenge" | "expires_at" | "created_at" | "scope", ExtArgs["result"]["authorizationCode"]>;
652
+ export type AuthorizationCodeInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
653
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
654
+ client?: boolean | Prisma.ClientDefaultArgs<ExtArgs>;
655
+ };
656
+ export type AuthorizationCodeIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
657
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
658
+ client?: boolean | Prisma.ClientDefaultArgs<ExtArgs>;
659
+ };
660
+ export type AuthorizationCodeIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
661
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
662
+ client?: boolean | Prisma.ClientDefaultArgs<ExtArgs>;
663
+ };
664
+ export type $AuthorizationCodePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
665
+ name: "AuthorizationCode";
666
+ objects: {
667
+ user: Prisma.$UserPayload<ExtArgs>;
668
+ client: Prisma.$ClientPayload<ExtArgs>;
669
+ };
670
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
671
+ id: string;
672
+ code: string;
673
+ user_id: string;
674
+ client_id: string;
675
+ redirect_uri: string;
676
+ code_challenge: string;
677
+ expires_at: Date;
678
+ created_at: Date;
679
+ scope: string;
680
+ }, ExtArgs["result"]["authorizationCode"]>;
681
+ composites: {};
682
+ };
683
+ export type AuthorizationCodeGetPayload<S extends boolean | null | undefined | AuthorizationCodeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AuthorizationCodePayload, S>;
684
+ export type AuthorizationCodeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AuthorizationCodeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
685
+ select?: AuthorizationCodeCountAggregateInputType | true;
686
+ };
687
+ export interface AuthorizationCodeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
688
+ [K: symbol]: {
689
+ types: Prisma.TypeMap<ExtArgs>['model']['AuthorizationCode'];
690
+ meta: {
691
+ name: 'AuthorizationCode';
692
+ };
693
+ };
694
+ /**
695
+ * Find zero or one AuthorizationCode that matches the filter.
696
+ * @param {AuthorizationCodeFindUniqueArgs} args - Arguments to find a AuthorizationCode
697
+ * @example
698
+ * // Get one AuthorizationCode
699
+ * const authorizationCode = await prisma.authorizationCode.findUnique({
700
+ * where: {
701
+ * // ... provide filter here
702
+ * }
703
+ * })
704
+ */
705
+ findUnique<T extends AuthorizationCodeFindUniqueArgs>(args: Prisma.SelectSubset<T, AuthorizationCodeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AuthorizationCodeClient<runtime.Types.Result.GetResult<Prisma.$AuthorizationCodePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
706
+ /**
707
+ * Find one AuthorizationCode that matches the filter or throw an error with `error.code='P2025'`
708
+ * if no matches were found.
709
+ * @param {AuthorizationCodeFindUniqueOrThrowArgs} args - Arguments to find a AuthorizationCode
710
+ * @example
711
+ * // Get one AuthorizationCode
712
+ * const authorizationCode = await prisma.authorizationCode.findUniqueOrThrow({
713
+ * where: {
714
+ * // ... provide filter here
715
+ * }
716
+ * })
717
+ */
718
+ findUniqueOrThrow<T extends AuthorizationCodeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AuthorizationCodeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AuthorizationCodeClient<runtime.Types.Result.GetResult<Prisma.$AuthorizationCodePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
719
+ /**
720
+ * Find the first AuthorizationCode that matches the filter.
721
+ * Note, that providing `undefined` is treated as the value not being there.
722
+ * Read more here: https://pris.ly/d/null-undefined
723
+ * @param {AuthorizationCodeFindFirstArgs} args - Arguments to find a AuthorizationCode
724
+ * @example
725
+ * // Get one AuthorizationCode
726
+ * const authorizationCode = await prisma.authorizationCode.findFirst({
727
+ * where: {
728
+ * // ... provide filter here
729
+ * }
730
+ * })
731
+ */
732
+ findFirst<T extends AuthorizationCodeFindFirstArgs>(args?: Prisma.SelectSubset<T, AuthorizationCodeFindFirstArgs<ExtArgs>>): Prisma.Prisma__AuthorizationCodeClient<runtime.Types.Result.GetResult<Prisma.$AuthorizationCodePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
733
+ /**
734
+ * Find the first AuthorizationCode that matches the filter or
735
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
736
+ * Note, that providing `undefined` is treated as the value not being there.
737
+ * Read more here: https://pris.ly/d/null-undefined
738
+ * @param {AuthorizationCodeFindFirstOrThrowArgs} args - Arguments to find a AuthorizationCode
739
+ * @example
740
+ * // Get one AuthorizationCode
741
+ * const authorizationCode = await prisma.authorizationCode.findFirstOrThrow({
742
+ * where: {
743
+ * // ... provide filter here
744
+ * }
745
+ * })
746
+ */
747
+ findFirstOrThrow<T extends AuthorizationCodeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AuthorizationCodeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AuthorizationCodeClient<runtime.Types.Result.GetResult<Prisma.$AuthorizationCodePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
748
+ /**
749
+ * Find zero or more AuthorizationCodes that matches the filter.
750
+ * Note, that providing `undefined` is treated as the value not being there.
751
+ * Read more here: https://pris.ly/d/null-undefined
752
+ * @param {AuthorizationCodeFindManyArgs} args - Arguments to filter and select certain fields only.
753
+ * @example
754
+ * // Get all AuthorizationCodes
755
+ * const authorizationCodes = await prisma.authorizationCode.findMany()
756
+ *
757
+ * // Get first 10 AuthorizationCodes
758
+ * const authorizationCodes = await prisma.authorizationCode.findMany({ take: 10 })
759
+ *
760
+ * // Only select the `id`
761
+ * const authorizationCodeWithIdOnly = await prisma.authorizationCode.findMany({ select: { id: true } })
762
+ *
763
+ */
764
+ findMany<T extends AuthorizationCodeFindManyArgs>(args?: Prisma.SelectSubset<T, AuthorizationCodeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuthorizationCodePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
765
+ /**
766
+ * Create a AuthorizationCode.
767
+ * @param {AuthorizationCodeCreateArgs} args - Arguments to create a AuthorizationCode.
768
+ * @example
769
+ * // Create one AuthorizationCode
770
+ * const AuthorizationCode = await prisma.authorizationCode.create({
771
+ * data: {
772
+ * // ... data to create a AuthorizationCode
773
+ * }
774
+ * })
775
+ *
776
+ */
777
+ create<T extends AuthorizationCodeCreateArgs>(args: Prisma.SelectSubset<T, AuthorizationCodeCreateArgs<ExtArgs>>): Prisma.Prisma__AuthorizationCodeClient<runtime.Types.Result.GetResult<Prisma.$AuthorizationCodePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
778
+ /**
779
+ * Create many AuthorizationCodes.
780
+ * @param {AuthorizationCodeCreateManyArgs} args - Arguments to create many AuthorizationCodes.
781
+ * @example
782
+ * // Create many AuthorizationCodes
783
+ * const authorizationCode = await prisma.authorizationCode.createMany({
784
+ * data: [
785
+ * // ... provide data here
786
+ * ]
787
+ * })
788
+ *
789
+ */
790
+ createMany<T extends AuthorizationCodeCreateManyArgs>(args?: Prisma.SelectSubset<T, AuthorizationCodeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
791
+ /**
792
+ * Create many AuthorizationCodes and returns the data saved in the database.
793
+ * @param {AuthorizationCodeCreateManyAndReturnArgs} args - Arguments to create many AuthorizationCodes.
794
+ * @example
795
+ * // Create many AuthorizationCodes
796
+ * const authorizationCode = await prisma.authorizationCode.createManyAndReturn({
797
+ * data: [
798
+ * // ... provide data here
799
+ * ]
800
+ * })
801
+ *
802
+ * // Create many AuthorizationCodes and only return the `id`
803
+ * const authorizationCodeWithIdOnly = await prisma.authorizationCode.createManyAndReturn({
804
+ * select: { id: true },
805
+ * data: [
806
+ * // ... provide data here
807
+ * ]
808
+ * })
809
+ * Note, that providing `undefined` is treated as the value not being there.
810
+ * Read more here: https://pris.ly/d/null-undefined
811
+ *
812
+ */
813
+ createManyAndReturn<T extends AuthorizationCodeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AuthorizationCodeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuthorizationCodePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
814
+ /**
815
+ * Delete a AuthorizationCode.
816
+ * @param {AuthorizationCodeDeleteArgs} args - Arguments to delete one AuthorizationCode.
817
+ * @example
818
+ * // Delete one AuthorizationCode
819
+ * const AuthorizationCode = await prisma.authorizationCode.delete({
820
+ * where: {
821
+ * // ... filter to delete one AuthorizationCode
822
+ * }
823
+ * })
824
+ *
825
+ */
826
+ delete<T extends AuthorizationCodeDeleteArgs>(args: Prisma.SelectSubset<T, AuthorizationCodeDeleteArgs<ExtArgs>>): Prisma.Prisma__AuthorizationCodeClient<runtime.Types.Result.GetResult<Prisma.$AuthorizationCodePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
827
+ /**
828
+ * Update one AuthorizationCode.
829
+ * @param {AuthorizationCodeUpdateArgs} args - Arguments to update one AuthorizationCode.
830
+ * @example
831
+ * // Update one AuthorizationCode
832
+ * const authorizationCode = await prisma.authorizationCode.update({
833
+ * where: {
834
+ * // ... provide filter here
835
+ * },
836
+ * data: {
837
+ * // ... provide data here
838
+ * }
839
+ * })
840
+ *
841
+ */
842
+ update<T extends AuthorizationCodeUpdateArgs>(args: Prisma.SelectSubset<T, AuthorizationCodeUpdateArgs<ExtArgs>>): Prisma.Prisma__AuthorizationCodeClient<runtime.Types.Result.GetResult<Prisma.$AuthorizationCodePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
843
+ /**
844
+ * Delete zero or more AuthorizationCodes.
845
+ * @param {AuthorizationCodeDeleteManyArgs} args - Arguments to filter AuthorizationCodes to delete.
846
+ * @example
847
+ * // Delete a few AuthorizationCodes
848
+ * const { count } = await prisma.authorizationCode.deleteMany({
849
+ * where: {
850
+ * // ... provide filter here
851
+ * }
852
+ * })
853
+ *
854
+ */
855
+ deleteMany<T extends AuthorizationCodeDeleteManyArgs>(args?: Prisma.SelectSubset<T, AuthorizationCodeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
856
+ /**
857
+ * Update zero or more AuthorizationCodes.
858
+ * Note, that providing `undefined` is treated as the value not being there.
859
+ * Read more here: https://pris.ly/d/null-undefined
860
+ * @param {AuthorizationCodeUpdateManyArgs} args - Arguments to update one or more rows.
861
+ * @example
862
+ * // Update many AuthorizationCodes
863
+ * const authorizationCode = await prisma.authorizationCode.updateMany({
864
+ * where: {
865
+ * // ... provide filter here
866
+ * },
867
+ * data: {
868
+ * // ... provide data here
869
+ * }
870
+ * })
871
+ *
872
+ */
873
+ updateMany<T extends AuthorizationCodeUpdateManyArgs>(args: Prisma.SelectSubset<T, AuthorizationCodeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
874
+ /**
875
+ * Update zero or more AuthorizationCodes and returns the data updated in the database.
876
+ * @param {AuthorizationCodeUpdateManyAndReturnArgs} args - Arguments to update many AuthorizationCodes.
877
+ * @example
878
+ * // Update many AuthorizationCodes
879
+ * const authorizationCode = await prisma.authorizationCode.updateManyAndReturn({
880
+ * where: {
881
+ * // ... provide filter here
882
+ * },
883
+ * data: [
884
+ * // ... provide data here
885
+ * ]
886
+ * })
887
+ *
888
+ * // Update zero or more AuthorizationCodes and only return the `id`
889
+ * const authorizationCodeWithIdOnly = await prisma.authorizationCode.updateManyAndReturn({
890
+ * select: { id: true },
891
+ * where: {
892
+ * // ... provide filter here
893
+ * },
894
+ * data: [
895
+ * // ... provide data here
896
+ * ]
897
+ * })
898
+ * Note, that providing `undefined` is treated as the value not being there.
899
+ * Read more here: https://pris.ly/d/null-undefined
900
+ *
901
+ */
902
+ updateManyAndReturn<T extends AuthorizationCodeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AuthorizationCodeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuthorizationCodePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
903
+ /**
904
+ * Create or update one AuthorizationCode.
905
+ * @param {AuthorizationCodeUpsertArgs} args - Arguments to update or create a AuthorizationCode.
906
+ * @example
907
+ * // Update or create a AuthorizationCode
908
+ * const authorizationCode = await prisma.authorizationCode.upsert({
909
+ * create: {
910
+ * // ... data to create a AuthorizationCode
911
+ * },
912
+ * update: {
913
+ * // ... in case it already exists, update
914
+ * },
915
+ * where: {
916
+ * // ... the filter for the AuthorizationCode we want to update
917
+ * }
918
+ * })
919
+ */
920
+ upsert<T extends AuthorizationCodeUpsertArgs>(args: Prisma.SelectSubset<T, AuthorizationCodeUpsertArgs<ExtArgs>>): Prisma.Prisma__AuthorizationCodeClient<runtime.Types.Result.GetResult<Prisma.$AuthorizationCodePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
921
+ /**
922
+ * Count the number of AuthorizationCodes.
923
+ * Note, that providing `undefined` is treated as the value not being there.
924
+ * Read more here: https://pris.ly/d/null-undefined
925
+ * @param {AuthorizationCodeCountArgs} args - Arguments to filter AuthorizationCodes to count.
926
+ * @example
927
+ * // Count the number of AuthorizationCodes
928
+ * const count = await prisma.authorizationCode.count({
929
+ * where: {
930
+ * // ... the filter for the AuthorizationCodes we want to count
931
+ * }
932
+ * })
933
+ **/
934
+ count<T extends AuthorizationCodeCountArgs>(args?: Prisma.Subset<T, AuthorizationCodeCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AuthorizationCodeCountAggregateOutputType> : number>;
935
+ /**
936
+ * Allows you to perform aggregations operations on a AuthorizationCode.
937
+ * Note, that providing `undefined` is treated as the value not being there.
938
+ * Read more here: https://pris.ly/d/null-undefined
939
+ * @param {AuthorizationCodeAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
940
+ * @example
941
+ * // Ordered by age ascending
942
+ * // Where email contains prisma.io
943
+ * // Limited to the 10 users
944
+ * const aggregations = await prisma.user.aggregate({
945
+ * _avg: {
946
+ * age: true,
947
+ * },
948
+ * where: {
949
+ * email: {
950
+ * contains: "prisma.io",
951
+ * },
952
+ * },
953
+ * orderBy: {
954
+ * age: "asc",
955
+ * },
956
+ * take: 10,
957
+ * })
958
+ **/
959
+ aggregate<T extends AuthorizationCodeAggregateArgs>(args: Prisma.Subset<T, AuthorizationCodeAggregateArgs>): Prisma.PrismaPromise<GetAuthorizationCodeAggregateType<T>>;
960
+ /**
961
+ * Group by AuthorizationCode.
962
+ * Note, that providing `undefined` is treated as the value not being there.
963
+ * Read more here: https://pris.ly/d/null-undefined
964
+ * @param {AuthorizationCodeGroupByArgs} args - Group by arguments.
965
+ * @example
966
+ * // Group by city, order by createdAt, get count
967
+ * const result = await prisma.user.groupBy({
968
+ * by: ['city', 'createdAt'],
969
+ * orderBy: {
970
+ * createdAt: true
971
+ * },
972
+ * _count: {
973
+ * _all: true
974
+ * },
975
+ * })
976
+ *
977
+ **/
978
+ groupBy<T extends AuthorizationCodeGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
979
+ orderBy: AuthorizationCodeGroupByArgs['orderBy'];
980
+ } : {
981
+ orderBy?: AuthorizationCodeGroupByArgs['orderBy'];
982
+ }, 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 ? {
983
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
984
+ Error,
985
+ 'Field ',
986
+ P,
987
+ ` in "having" needs to be provided in "by"`
988
+ ];
989
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
990
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
991
+ }[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 ? {} : {
992
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
993
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
994
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
995
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, AuthorizationCodeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAuthorizationCodeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
996
+ /**
997
+ * Fields of the AuthorizationCode model
998
+ */
999
+ readonly fields: AuthorizationCodeFieldRefs;
1000
+ }
1001
+ /**
1002
+ * The delegate class that acts as a "Promise-like" for AuthorizationCode.
1003
+ * Why is this prefixed with `Prisma__`?
1004
+ * Because we want to prevent naming conflicts as mentioned in
1005
+ * https://github.com/prisma/prisma-client-js/issues/707
1006
+ */
1007
+ export interface Prisma__AuthorizationCodeClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1008
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1009
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1010
+ client<T extends Prisma.ClientDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ClientDefaultArgs<ExtArgs>>): Prisma.Prisma__ClientClient<runtime.Types.Result.GetResult<Prisma.$ClientPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1011
+ /**
1012
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1013
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1014
+ * @param onrejected The callback to execute when the Promise is rejected.
1015
+ * @returns A Promise for the completion of which ever callback is executed.
1016
+ */
1017
+ 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>;
1018
+ /**
1019
+ * Attaches a callback for only the rejection of the Promise.
1020
+ * @param onrejected The callback to execute when the Promise is rejected.
1021
+ * @returns A Promise for the completion of the callback.
1022
+ */
1023
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1024
+ /**
1025
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1026
+ * resolved value cannot be modified from the callback.
1027
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1028
+ * @returns A Promise for the completion of the callback.
1029
+ */
1030
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1031
+ }
1032
+ /**
1033
+ * Fields of the AuthorizationCode model
1034
+ */
1035
+ export interface AuthorizationCodeFieldRefs {
1036
+ readonly id: Prisma.FieldRef<"AuthorizationCode", 'String'>;
1037
+ readonly code: Prisma.FieldRef<"AuthorizationCode", 'String'>;
1038
+ readonly user_id: Prisma.FieldRef<"AuthorizationCode", 'String'>;
1039
+ readonly client_id: Prisma.FieldRef<"AuthorizationCode", 'String'>;
1040
+ readonly redirect_uri: Prisma.FieldRef<"AuthorizationCode", 'String'>;
1041
+ readonly code_challenge: Prisma.FieldRef<"AuthorizationCode", 'String'>;
1042
+ readonly expires_at: Prisma.FieldRef<"AuthorizationCode", 'DateTime'>;
1043
+ readonly created_at: Prisma.FieldRef<"AuthorizationCode", 'DateTime'>;
1044
+ readonly scope: Prisma.FieldRef<"AuthorizationCode", 'String'>;
1045
+ }
1046
+ /**
1047
+ * AuthorizationCode findUnique
1048
+ */
1049
+ export type AuthorizationCodeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1050
+ /**
1051
+ * Select specific fields to fetch from the AuthorizationCode
1052
+ */
1053
+ select?: Prisma.AuthorizationCodeSelect<ExtArgs> | null;
1054
+ /**
1055
+ * Omit specific fields from the AuthorizationCode
1056
+ */
1057
+ omit?: Prisma.AuthorizationCodeOmit<ExtArgs> | null;
1058
+ /**
1059
+ * Choose, which related nodes to fetch as well
1060
+ */
1061
+ include?: Prisma.AuthorizationCodeInclude<ExtArgs> | null;
1062
+ /**
1063
+ * Filter, which AuthorizationCode to fetch.
1064
+ */
1065
+ where: Prisma.AuthorizationCodeWhereUniqueInput;
1066
+ };
1067
+ /**
1068
+ * AuthorizationCode findUniqueOrThrow
1069
+ */
1070
+ export type AuthorizationCodeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1071
+ /**
1072
+ * Select specific fields to fetch from the AuthorizationCode
1073
+ */
1074
+ select?: Prisma.AuthorizationCodeSelect<ExtArgs> | null;
1075
+ /**
1076
+ * Omit specific fields from the AuthorizationCode
1077
+ */
1078
+ omit?: Prisma.AuthorizationCodeOmit<ExtArgs> | null;
1079
+ /**
1080
+ * Choose, which related nodes to fetch as well
1081
+ */
1082
+ include?: Prisma.AuthorizationCodeInclude<ExtArgs> | null;
1083
+ /**
1084
+ * Filter, which AuthorizationCode to fetch.
1085
+ */
1086
+ where: Prisma.AuthorizationCodeWhereUniqueInput;
1087
+ };
1088
+ /**
1089
+ * AuthorizationCode findFirst
1090
+ */
1091
+ export type AuthorizationCodeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1092
+ /**
1093
+ * Select specific fields to fetch from the AuthorizationCode
1094
+ */
1095
+ select?: Prisma.AuthorizationCodeSelect<ExtArgs> | null;
1096
+ /**
1097
+ * Omit specific fields from the AuthorizationCode
1098
+ */
1099
+ omit?: Prisma.AuthorizationCodeOmit<ExtArgs> | null;
1100
+ /**
1101
+ * Choose, which related nodes to fetch as well
1102
+ */
1103
+ include?: Prisma.AuthorizationCodeInclude<ExtArgs> | null;
1104
+ /**
1105
+ * Filter, which AuthorizationCode to fetch.
1106
+ */
1107
+ where?: Prisma.AuthorizationCodeWhereInput;
1108
+ /**
1109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1110
+ *
1111
+ * Determine the order of AuthorizationCodes to fetch.
1112
+ */
1113
+ orderBy?: Prisma.AuthorizationCodeOrderByWithRelationInput | Prisma.AuthorizationCodeOrderByWithRelationInput[];
1114
+ /**
1115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1116
+ *
1117
+ * Sets the position for searching for AuthorizationCodes.
1118
+ */
1119
+ cursor?: Prisma.AuthorizationCodeWhereUniqueInput;
1120
+ /**
1121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1122
+ *
1123
+ * Take `±n` AuthorizationCodes from the position of the cursor.
1124
+ */
1125
+ take?: number;
1126
+ /**
1127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1128
+ *
1129
+ * Skip the first `n` AuthorizationCodes.
1130
+ */
1131
+ skip?: number;
1132
+ /**
1133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1134
+ *
1135
+ * Filter by unique combinations of AuthorizationCodes.
1136
+ */
1137
+ distinct?: Prisma.AuthorizationCodeScalarFieldEnum | Prisma.AuthorizationCodeScalarFieldEnum[];
1138
+ };
1139
+ /**
1140
+ * AuthorizationCode findFirstOrThrow
1141
+ */
1142
+ export type AuthorizationCodeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1143
+ /**
1144
+ * Select specific fields to fetch from the AuthorizationCode
1145
+ */
1146
+ select?: Prisma.AuthorizationCodeSelect<ExtArgs> | null;
1147
+ /**
1148
+ * Omit specific fields from the AuthorizationCode
1149
+ */
1150
+ omit?: Prisma.AuthorizationCodeOmit<ExtArgs> | null;
1151
+ /**
1152
+ * Choose, which related nodes to fetch as well
1153
+ */
1154
+ include?: Prisma.AuthorizationCodeInclude<ExtArgs> | null;
1155
+ /**
1156
+ * Filter, which AuthorizationCode to fetch.
1157
+ */
1158
+ where?: Prisma.AuthorizationCodeWhereInput;
1159
+ /**
1160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1161
+ *
1162
+ * Determine the order of AuthorizationCodes to fetch.
1163
+ */
1164
+ orderBy?: Prisma.AuthorizationCodeOrderByWithRelationInput | Prisma.AuthorizationCodeOrderByWithRelationInput[];
1165
+ /**
1166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1167
+ *
1168
+ * Sets the position for searching for AuthorizationCodes.
1169
+ */
1170
+ cursor?: Prisma.AuthorizationCodeWhereUniqueInput;
1171
+ /**
1172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1173
+ *
1174
+ * Take `±n` AuthorizationCodes from the position of the cursor.
1175
+ */
1176
+ take?: number;
1177
+ /**
1178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1179
+ *
1180
+ * Skip the first `n` AuthorizationCodes.
1181
+ */
1182
+ skip?: number;
1183
+ /**
1184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1185
+ *
1186
+ * Filter by unique combinations of AuthorizationCodes.
1187
+ */
1188
+ distinct?: Prisma.AuthorizationCodeScalarFieldEnum | Prisma.AuthorizationCodeScalarFieldEnum[];
1189
+ };
1190
+ /**
1191
+ * AuthorizationCode findMany
1192
+ */
1193
+ export type AuthorizationCodeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1194
+ /**
1195
+ * Select specific fields to fetch from the AuthorizationCode
1196
+ */
1197
+ select?: Prisma.AuthorizationCodeSelect<ExtArgs> | null;
1198
+ /**
1199
+ * Omit specific fields from the AuthorizationCode
1200
+ */
1201
+ omit?: Prisma.AuthorizationCodeOmit<ExtArgs> | null;
1202
+ /**
1203
+ * Choose, which related nodes to fetch as well
1204
+ */
1205
+ include?: Prisma.AuthorizationCodeInclude<ExtArgs> | null;
1206
+ /**
1207
+ * Filter, which AuthorizationCodes to fetch.
1208
+ */
1209
+ where?: Prisma.AuthorizationCodeWhereInput;
1210
+ /**
1211
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1212
+ *
1213
+ * Determine the order of AuthorizationCodes to fetch.
1214
+ */
1215
+ orderBy?: Prisma.AuthorizationCodeOrderByWithRelationInput | Prisma.AuthorizationCodeOrderByWithRelationInput[];
1216
+ /**
1217
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1218
+ *
1219
+ * Sets the position for listing AuthorizationCodes.
1220
+ */
1221
+ cursor?: Prisma.AuthorizationCodeWhereUniqueInput;
1222
+ /**
1223
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1224
+ *
1225
+ * Take `±n` AuthorizationCodes from the position of the cursor.
1226
+ */
1227
+ take?: number;
1228
+ /**
1229
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1230
+ *
1231
+ * Skip the first `n` AuthorizationCodes.
1232
+ */
1233
+ skip?: number;
1234
+ /**
1235
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1236
+ *
1237
+ * Filter by unique combinations of AuthorizationCodes.
1238
+ */
1239
+ distinct?: Prisma.AuthorizationCodeScalarFieldEnum | Prisma.AuthorizationCodeScalarFieldEnum[];
1240
+ };
1241
+ /**
1242
+ * AuthorizationCode create
1243
+ */
1244
+ export type AuthorizationCodeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1245
+ /**
1246
+ * Select specific fields to fetch from the AuthorizationCode
1247
+ */
1248
+ select?: Prisma.AuthorizationCodeSelect<ExtArgs> | null;
1249
+ /**
1250
+ * Omit specific fields from the AuthorizationCode
1251
+ */
1252
+ omit?: Prisma.AuthorizationCodeOmit<ExtArgs> | null;
1253
+ /**
1254
+ * Choose, which related nodes to fetch as well
1255
+ */
1256
+ include?: Prisma.AuthorizationCodeInclude<ExtArgs> | null;
1257
+ /**
1258
+ * The data needed to create a AuthorizationCode.
1259
+ */
1260
+ data: Prisma.XOR<Prisma.AuthorizationCodeCreateInput, Prisma.AuthorizationCodeUncheckedCreateInput>;
1261
+ };
1262
+ /**
1263
+ * AuthorizationCode createMany
1264
+ */
1265
+ export type AuthorizationCodeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1266
+ /**
1267
+ * The data used to create many AuthorizationCodes.
1268
+ */
1269
+ data: Prisma.AuthorizationCodeCreateManyInput | Prisma.AuthorizationCodeCreateManyInput[];
1270
+ skipDuplicates?: boolean;
1271
+ };
1272
+ /**
1273
+ * AuthorizationCode createManyAndReturn
1274
+ */
1275
+ export type AuthorizationCodeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1276
+ /**
1277
+ * Select specific fields to fetch from the AuthorizationCode
1278
+ */
1279
+ select?: Prisma.AuthorizationCodeSelectCreateManyAndReturn<ExtArgs> | null;
1280
+ /**
1281
+ * Omit specific fields from the AuthorizationCode
1282
+ */
1283
+ omit?: Prisma.AuthorizationCodeOmit<ExtArgs> | null;
1284
+ /**
1285
+ * The data used to create many AuthorizationCodes.
1286
+ */
1287
+ data: Prisma.AuthorizationCodeCreateManyInput | Prisma.AuthorizationCodeCreateManyInput[];
1288
+ skipDuplicates?: boolean;
1289
+ /**
1290
+ * Choose, which related nodes to fetch as well
1291
+ */
1292
+ include?: Prisma.AuthorizationCodeIncludeCreateManyAndReturn<ExtArgs> | null;
1293
+ };
1294
+ /**
1295
+ * AuthorizationCode update
1296
+ */
1297
+ export type AuthorizationCodeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1298
+ /**
1299
+ * Select specific fields to fetch from the AuthorizationCode
1300
+ */
1301
+ select?: Prisma.AuthorizationCodeSelect<ExtArgs> | null;
1302
+ /**
1303
+ * Omit specific fields from the AuthorizationCode
1304
+ */
1305
+ omit?: Prisma.AuthorizationCodeOmit<ExtArgs> | null;
1306
+ /**
1307
+ * Choose, which related nodes to fetch as well
1308
+ */
1309
+ include?: Prisma.AuthorizationCodeInclude<ExtArgs> | null;
1310
+ /**
1311
+ * The data needed to update a AuthorizationCode.
1312
+ */
1313
+ data: Prisma.XOR<Prisma.AuthorizationCodeUpdateInput, Prisma.AuthorizationCodeUncheckedUpdateInput>;
1314
+ /**
1315
+ * Choose, which AuthorizationCode to update.
1316
+ */
1317
+ where: Prisma.AuthorizationCodeWhereUniqueInput;
1318
+ };
1319
+ /**
1320
+ * AuthorizationCode updateMany
1321
+ */
1322
+ export type AuthorizationCodeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1323
+ /**
1324
+ * The data used to update AuthorizationCodes.
1325
+ */
1326
+ data: Prisma.XOR<Prisma.AuthorizationCodeUpdateManyMutationInput, Prisma.AuthorizationCodeUncheckedUpdateManyInput>;
1327
+ /**
1328
+ * Filter which AuthorizationCodes to update
1329
+ */
1330
+ where?: Prisma.AuthorizationCodeWhereInput;
1331
+ /**
1332
+ * Limit how many AuthorizationCodes to update.
1333
+ */
1334
+ limit?: number;
1335
+ };
1336
+ /**
1337
+ * AuthorizationCode updateManyAndReturn
1338
+ */
1339
+ export type AuthorizationCodeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1340
+ /**
1341
+ * Select specific fields to fetch from the AuthorizationCode
1342
+ */
1343
+ select?: Prisma.AuthorizationCodeSelectUpdateManyAndReturn<ExtArgs> | null;
1344
+ /**
1345
+ * Omit specific fields from the AuthorizationCode
1346
+ */
1347
+ omit?: Prisma.AuthorizationCodeOmit<ExtArgs> | null;
1348
+ /**
1349
+ * The data used to update AuthorizationCodes.
1350
+ */
1351
+ data: Prisma.XOR<Prisma.AuthorizationCodeUpdateManyMutationInput, Prisma.AuthorizationCodeUncheckedUpdateManyInput>;
1352
+ /**
1353
+ * Filter which AuthorizationCodes to update
1354
+ */
1355
+ where?: Prisma.AuthorizationCodeWhereInput;
1356
+ /**
1357
+ * Limit how many AuthorizationCodes to update.
1358
+ */
1359
+ limit?: number;
1360
+ /**
1361
+ * Choose, which related nodes to fetch as well
1362
+ */
1363
+ include?: Prisma.AuthorizationCodeIncludeUpdateManyAndReturn<ExtArgs> | null;
1364
+ };
1365
+ /**
1366
+ * AuthorizationCode upsert
1367
+ */
1368
+ export type AuthorizationCodeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1369
+ /**
1370
+ * Select specific fields to fetch from the AuthorizationCode
1371
+ */
1372
+ select?: Prisma.AuthorizationCodeSelect<ExtArgs> | null;
1373
+ /**
1374
+ * Omit specific fields from the AuthorizationCode
1375
+ */
1376
+ omit?: Prisma.AuthorizationCodeOmit<ExtArgs> | null;
1377
+ /**
1378
+ * Choose, which related nodes to fetch as well
1379
+ */
1380
+ include?: Prisma.AuthorizationCodeInclude<ExtArgs> | null;
1381
+ /**
1382
+ * The filter to search for the AuthorizationCode to update in case it exists.
1383
+ */
1384
+ where: Prisma.AuthorizationCodeWhereUniqueInput;
1385
+ /**
1386
+ * In case the AuthorizationCode found by the `where` argument doesn't exist, create a new AuthorizationCode with this data.
1387
+ */
1388
+ create: Prisma.XOR<Prisma.AuthorizationCodeCreateInput, Prisma.AuthorizationCodeUncheckedCreateInput>;
1389
+ /**
1390
+ * In case the AuthorizationCode was found with the provided `where` argument, update it with this data.
1391
+ */
1392
+ update: Prisma.XOR<Prisma.AuthorizationCodeUpdateInput, Prisma.AuthorizationCodeUncheckedUpdateInput>;
1393
+ };
1394
+ /**
1395
+ * AuthorizationCode delete
1396
+ */
1397
+ export type AuthorizationCodeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1398
+ /**
1399
+ * Select specific fields to fetch from the AuthorizationCode
1400
+ */
1401
+ select?: Prisma.AuthorizationCodeSelect<ExtArgs> | null;
1402
+ /**
1403
+ * Omit specific fields from the AuthorizationCode
1404
+ */
1405
+ omit?: Prisma.AuthorizationCodeOmit<ExtArgs> | null;
1406
+ /**
1407
+ * Choose, which related nodes to fetch as well
1408
+ */
1409
+ include?: Prisma.AuthorizationCodeInclude<ExtArgs> | null;
1410
+ /**
1411
+ * Filter which AuthorizationCode to delete.
1412
+ */
1413
+ where: Prisma.AuthorizationCodeWhereUniqueInput;
1414
+ };
1415
+ /**
1416
+ * AuthorizationCode deleteMany
1417
+ */
1418
+ export type AuthorizationCodeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1419
+ /**
1420
+ * Filter which AuthorizationCodes to delete
1421
+ */
1422
+ where?: Prisma.AuthorizationCodeWhereInput;
1423
+ /**
1424
+ * Limit how many AuthorizationCodes to delete.
1425
+ */
1426
+ limit?: number;
1427
+ };
1428
+ /**
1429
+ * AuthorizationCode without action
1430
+ */
1431
+ export type AuthorizationCodeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1432
+ /**
1433
+ * Select specific fields to fetch from the AuthorizationCode
1434
+ */
1435
+ select?: Prisma.AuthorizationCodeSelect<ExtArgs> | null;
1436
+ /**
1437
+ * Omit specific fields from the AuthorizationCode
1438
+ */
1439
+ omit?: Prisma.AuthorizationCodeOmit<ExtArgs> | null;
1440
+ /**
1441
+ * Choose, which related nodes to fetch as well
1442
+ */
1443
+ include?: Prisma.AuthorizationCodeInclude<ExtArgs> | null;
1444
+ };
1445
+ //# sourceMappingURL=AuthorizationCode.d.ts.map