@kosha-ai/server 0.0.1

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