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