zele 0.3.0 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/README.md +1 -1
  2. package/bin/zele +27 -0
  3. package/dist/api-utils.d.ts +51 -2
  4. package/dist/api-utils.js +89 -3
  5. package/dist/api-utils.js.map +1 -1
  6. package/dist/auth.d.ts +27 -6
  7. package/dist/auth.js +185 -129
  8. package/dist/auth.js.map +1 -1
  9. package/dist/calendar-client.d.ts +16 -9
  10. package/dist/calendar-client.js +163 -59
  11. package/dist/calendar-client.js.map +1 -1
  12. package/dist/cli.js +34 -1
  13. package/dist/cli.js.map +1 -1
  14. package/dist/commands/attachment.js +17 -15
  15. package/dist/commands/attachment.js.map +1 -1
  16. package/dist/commands/auth-cmd.js +20 -9
  17. package/dist/commands/auth-cmd.js.map +1 -1
  18. package/dist/commands/calendar.js +67 -78
  19. package/dist/commands/calendar.js.map +1 -1
  20. package/dist/commands/draft.js +25 -18
  21. package/dist/commands/draft.js.map +1 -1
  22. package/dist/commands/label.js +33 -45
  23. package/dist/commands/label.js.map +1 -1
  24. package/dist/commands/mail-actions.js +11 -13
  25. package/dist/commands/mail-actions.js.map +1 -1
  26. package/dist/commands/mail.js +119 -127
  27. package/dist/commands/mail.js.map +1 -1
  28. package/dist/commands/profile.js +18 -21
  29. package/dist/commands/profile.js.map +1 -1
  30. package/dist/commands/watch.js +33 -261
  31. package/dist/commands/watch.js.map +1 -1
  32. package/dist/db.js +12 -13
  33. package/dist/db.js.map +1 -1
  34. package/dist/generated/browser.d.ts +12 -27
  35. package/dist/generated/client.d.ts +13 -28
  36. package/dist/generated/client.js +1 -1
  37. package/dist/generated/commonInputTypes.d.ts +90 -26
  38. package/dist/generated/enums.d.ts +0 -4
  39. package/dist/generated/enums.js +0 -3
  40. package/dist/generated/enums.js.map +1 -1
  41. package/dist/generated/internal/class.d.ts +22 -55
  42. package/dist/generated/internal/class.js +12 -4
  43. package/dist/generated/internal/class.js.map +1 -1
  44. package/dist/generated/internal/prismaNamespace.d.ts +272 -511
  45. package/dist/generated/internal/prismaNamespace.js +54 -66
  46. package/dist/generated/internal/prismaNamespace.js.map +1 -1
  47. package/dist/generated/internal/prismaNamespaceBrowser.d.ts +60 -74
  48. package/dist/generated/internal/prismaNamespaceBrowser.js +50 -62
  49. package/dist/generated/internal/prismaNamespaceBrowser.js.map +1 -1
  50. package/dist/generated/models/Account.d.ts +1637 -0
  51. package/dist/generated/models/Account.js +2 -0
  52. package/dist/generated/models/Account.js.map +1 -0
  53. package/dist/generated/models/CalendarList.d.ts +1161 -0
  54. package/dist/generated/models/CalendarList.js +2 -0
  55. package/dist/generated/models/CalendarList.js.map +1 -0
  56. package/dist/generated/models/Label.d.ts +1161 -0
  57. package/dist/generated/models/Label.js +2 -0
  58. package/dist/generated/models/Label.js.map +1 -0
  59. package/dist/generated/models/Profile.d.ts +1269 -0
  60. package/dist/generated/models/Profile.js +2 -0
  61. package/dist/generated/models/Profile.js.map +1 -0
  62. package/dist/generated/models/SyncState.d.ts +1130 -0
  63. package/dist/generated/models/SyncState.js +2 -0
  64. package/dist/generated/models/SyncState.js.map +1 -0
  65. package/dist/generated/models/Thread.d.ts +1608 -0
  66. package/dist/generated/models/Thread.js +2 -0
  67. package/dist/generated/models/Thread.js.map +1 -0
  68. package/dist/generated/models.d.ts +6 -9
  69. package/dist/gmail-client.d.ts +119 -94
  70. package/dist/gmail-client.js +862 -322
  71. package/dist/gmail-client.js.map +1 -1
  72. package/dist/mail-tui.d.ts +1 -0
  73. package/dist/mail-tui.js +517 -0
  74. package/dist/mail-tui.js.map +1 -0
  75. package/dist/output.d.ts +6 -0
  76. package/dist/output.js +124 -11
  77. package/dist/output.js.map +1 -1
  78. package/package.json +39 -11
  79. package/schema.prisma +81 -113
  80. package/src/api-utils.ts +103 -5
  81. package/src/auth.ts +224 -143
  82. package/src/calendar-client.ts +196 -89
  83. package/src/cli.ts +39 -1
  84. package/src/commands/attachment.ts +18 -19
  85. package/src/commands/auth-cmd.ts +19 -9
  86. package/src/commands/calendar.ts +42 -85
  87. package/src/commands/draft.ts +19 -22
  88. package/src/commands/label.ts +21 -57
  89. package/src/commands/mail-actions.ts +11 -19
  90. package/src/commands/mail.ts +109 -148
  91. package/src/commands/profile.ts +12 -28
  92. package/src/commands/watch.ts +37 -304
  93. package/src/db.ts +13 -16
  94. package/src/generated/browser.ts +49 -0
  95. package/src/generated/client.ts +71 -0
  96. package/src/generated/commonInputTypes.ts +332 -0
  97. package/src/generated/enums.ts +17 -0
  98. package/src/generated/internal/class.ts +250 -0
  99. package/src/generated/internal/prismaNamespace.ts +1198 -0
  100. package/src/generated/internal/prismaNamespaceBrowser.ts +169 -0
  101. package/src/generated/models/Account.ts +1848 -0
  102. package/src/generated/models/CalendarList.ts +1331 -0
  103. package/src/generated/models/Label.ts +1331 -0
  104. package/src/generated/models/Profile.ts +1439 -0
  105. package/src/generated/models/SyncState.ts +1300 -0
  106. package/src/generated/models/Thread.ts +1787 -0
  107. package/src/generated/models.ts +17 -0
  108. package/src/gmail-client.test.ts +59 -0
  109. package/src/gmail-client.ts +1034 -429
  110. package/src/mail-tui.tsx +1061 -0
  111. package/src/output.test.ts +1093 -0
  112. package/src/output.ts +128 -13
  113. package/src/schema.sql +58 -68
  114. package/src/test-fixtures/email-html/safe-claude-event.html +28 -0
  115. package/src/test-fixtures/email-html/safe-product-announcement.html +25 -0
  116. package/src/test-fixtures/email-html/safe-tracked-links.html +27 -0
  117. package/src/test-fixtures/email-html-snapshots/safe-claude-event.html.md +9 -0
  118. package/src/test-fixtures/email-html-snapshots/safe-product-announcement.html.md +13 -0
  119. package/src/test-fixtures/email-html-snapshots/safe-tracked-links.html.md +7 -0
  120. package/AGENTS.md +0 -26
  121. package/CHANGELOG.md +0 -43
  122. package/dist/generated/models/accounts.d.ts +0 -2000
  123. package/dist/generated/models/accounts.js +0 -2
  124. package/dist/generated/models/accounts.js.map +0 -1
  125. package/dist/generated/models/calendar_events.d.ts +0 -1433
  126. package/dist/generated/models/calendar_events.js +0 -2
  127. package/dist/generated/models/calendar_events.js.map +0 -1
  128. package/dist/generated/models/calendar_lists.d.ts +0 -1131
  129. package/dist/generated/models/calendar_lists.js +0 -2
  130. package/dist/generated/models/calendar_lists.js.map +0 -1
  131. package/dist/generated/models/label_counts.d.ts +0 -1131
  132. package/dist/generated/models/label_counts.js +0 -2
  133. package/dist/generated/models/label_counts.js.map +0 -1
  134. package/dist/generated/models/labels.d.ts +0 -1131
  135. package/dist/generated/models/labels.js +0 -2
  136. package/dist/generated/models/labels.js.map +0 -1
  137. package/dist/generated/models/profiles.d.ts +0 -1131
  138. package/dist/generated/models/profiles.js +0 -2
  139. package/dist/generated/models/profiles.js.map +0 -1
  140. package/dist/generated/models/sync_states.d.ts +0 -1107
  141. package/dist/generated/models/sync_states.js +0 -2
  142. package/dist/generated/models/sync_states.js.map +0 -1
  143. package/dist/generated/models/thread_lists.d.ts +0 -1404
  144. package/dist/generated/models/thread_lists.js +0 -2
  145. package/dist/generated/models/thread_lists.js.map +0 -1
  146. package/dist/generated/models/threads.d.ts +0 -1247
  147. package/dist/generated/models/threads.js +0 -2
  148. package/dist/generated/models/threads.js.map +0 -1
  149. package/dist/gmail-cache.d.ts +0 -60
  150. package/dist/gmail-cache.js +0 -264
  151. package/dist/gmail-cache.js.map +0 -1
  152. package/docs/gogcli-gmail-implementation.md +0 -599
  153. package/scripts/test-device-code-clients.ts +0 -186
  154. package/scripts/test-micropython-scopes.ts +0 -72
  155. package/scripts/test-oauth-clients.ts +0 -257
  156. package/src/gmail-cache.ts +0 -339
  157. package/tsconfig.json +0 -16
@@ -1,1131 +0,0 @@
1
- import type * as runtime from "@prisma/client/runtime/client";
2
- import type * as Prisma from "../internal/prismaNamespace.js";
3
- /**
4
- * Model profiles
5
- *
6
- */
7
- export type profilesModel = runtime.Types.Result.DefaultSelection<Prisma.$profilesPayload>;
8
- export type AggregateProfiles = {
9
- _count: ProfilesCountAggregateOutputType | null;
10
- _avg: ProfilesAvgAggregateOutputType | null;
11
- _sum: ProfilesSumAggregateOutputType | null;
12
- _min: ProfilesMinAggregateOutputType | null;
13
- _max: ProfilesMaxAggregateOutputType | null;
14
- };
15
- export type ProfilesAvgAggregateOutputType = {
16
- ttl_ms: number | null;
17
- };
18
- export type ProfilesSumAggregateOutputType = {
19
- ttl_ms: number | null;
20
- };
21
- export type ProfilesMinAggregateOutputType = {
22
- email: string | null;
23
- data: string | null;
24
- ttl_ms: number | null;
25
- created_at: Date | null;
26
- };
27
- export type ProfilesMaxAggregateOutputType = {
28
- email: string | null;
29
- data: string | null;
30
- ttl_ms: number | null;
31
- created_at: Date | null;
32
- };
33
- export type ProfilesCountAggregateOutputType = {
34
- email: number;
35
- data: number;
36
- ttl_ms: number;
37
- created_at: number;
38
- _all: number;
39
- };
40
- export type ProfilesAvgAggregateInputType = {
41
- ttl_ms?: true;
42
- };
43
- export type ProfilesSumAggregateInputType = {
44
- ttl_ms?: true;
45
- };
46
- export type ProfilesMinAggregateInputType = {
47
- email?: true;
48
- data?: true;
49
- ttl_ms?: true;
50
- created_at?: true;
51
- };
52
- export type ProfilesMaxAggregateInputType = {
53
- email?: true;
54
- data?: true;
55
- ttl_ms?: true;
56
- created_at?: true;
57
- };
58
- export type ProfilesCountAggregateInputType = {
59
- email?: true;
60
- data?: true;
61
- ttl_ms?: true;
62
- created_at?: true;
63
- _all?: true;
64
- };
65
- export type ProfilesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
66
- /**
67
- * Filter which profiles to aggregate.
68
- */
69
- where?: Prisma.profilesWhereInput;
70
- /**
71
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
72
- *
73
- * Determine the order of profiles to fetch.
74
- */
75
- orderBy?: Prisma.profilesOrderByWithRelationInput | Prisma.profilesOrderByWithRelationInput[];
76
- /**
77
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
78
- *
79
- * Sets the start position
80
- */
81
- cursor?: Prisma.profilesWhereUniqueInput;
82
- /**
83
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
84
- *
85
- * Take `±n` profiles from the position of the cursor.
86
- */
87
- take?: number;
88
- /**
89
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
90
- *
91
- * Skip the first `n` profiles.
92
- */
93
- skip?: number;
94
- /**
95
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
96
- *
97
- * Count returned profiles
98
- **/
99
- _count?: true | ProfilesCountAggregateInputType;
100
- /**
101
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
102
- *
103
- * Select which fields to average
104
- **/
105
- _avg?: ProfilesAvgAggregateInputType;
106
- /**
107
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
108
- *
109
- * Select which fields to sum
110
- **/
111
- _sum?: ProfilesSumAggregateInputType;
112
- /**
113
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
114
- *
115
- * Select which fields to find the minimum value
116
- **/
117
- _min?: ProfilesMinAggregateInputType;
118
- /**
119
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
120
- *
121
- * Select which fields to find the maximum value
122
- **/
123
- _max?: ProfilesMaxAggregateInputType;
124
- };
125
- export type GetProfilesAggregateType<T extends ProfilesAggregateArgs> = {
126
- [P in keyof T & keyof AggregateProfiles]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateProfiles[P]> : Prisma.GetScalarType<T[P], AggregateProfiles[P]>;
127
- };
128
- export type profilesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
129
- where?: Prisma.profilesWhereInput;
130
- orderBy?: Prisma.profilesOrderByWithAggregationInput | Prisma.profilesOrderByWithAggregationInput[];
131
- by: Prisma.ProfilesScalarFieldEnum[] | Prisma.ProfilesScalarFieldEnum;
132
- having?: Prisma.profilesScalarWhereWithAggregatesInput;
133
- take?: number;
134
- skip?: number;
135
- _count?: ProfilesCountAggregateInputType | true;
136
- _avg?: ProfilesAvgAggregateInputType;
137
- _sum?: ProfilesSumAggregateInputType;
138
- _min?: ProfilesMinAggregateInputType;
139
- _max?: ProfilesMaxAggregateInputType;
140
- };
141
- export type ProfilesGroupByOutputType = {
142
- email: string;
143
- data: string;
144
- ttl_ms: number;
145
- created_at: Date;
146
- _count: ProfilesCountAggregateOutputType | null;
147
- _avg: ProfilesAvgAggregateOutputType | null;
148
- _sum: ProfilesSumAggregateOutputType | null;
149
- _min: ProfilesMinAggregateOutputType | null;
150
- _max: ProfilesMaxAggregateOutputType | null;
151
- };
152
- type GetProfilesGroupByPayload<T extends profilesGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ProfilesGroupByOutputType, T['by']> & {
153
- [P in ((keyof T) & (keyof ProfilesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ProfilesGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ProfilesGroupByOutputType[P]>;
154
- }>>;
155
- export type profilesWhereInput = {
156
- AND?: Prisma.profilesWhereInput | Prisma.profilesWhereInput[];
157
- OR?: Prisma.profilesWhereInput[];
158
- NOT?: Prisma.profilesWhereInput | Prisma.profilesWhereInput[];
159
- email?: Prisma.StringFilter<"profiles"> | string;
160
- data?: Prisma.StringFilter<"profiles"> | string;
161
- ttl_ms?: Prisma.IntFilter<"profiles"> | number;
162
- created_at?: Prisma.DateTimeFilter<"profiles"> | Date | string;
163
- account?: Prisma.XOR<Prisma.AccountsScalarRelationFilter, Prisma.accountsWhereInput>;
164
- };
165
- export type profilesOrderByWithRelationInput = {
166
- email?: Prisma.SortOrder;
167
- data?: Prisma.SortOrder;
168
- ttl_ms?: Prisma.SortOrder;
169
- created_at?: Prisma.SortOrder;
170
- account?: Prisma.accountsOrderByWithRelationInput;
171
- };
172
- export type profilesWhereUniqueInput = Prisma.AtLeast<{
173
- email?: string;
174
- AND?: Prisma.profilesWhereInput | Prisma.profilesWhereInput[];
175
- OR?: Prisma.profilesWhereInput[];
176
- NOT?: Prisma.profilesWhereInput | Prisma.profilesWhereInput[];
177
- data?: Prisma.StringFilter<"profiles"> | string;
178
- ttl_ms?: Prisma.IntFilter<"profiles"> | number;
179
- created_at?: Prisma.DateTimeFilter<"profiles"> | Date | string;
180
- account?: Prisma.XOR<Prisma.AccountsScalarRelationFilter, Prisma.accountsWhereInput>;
181
- }, "email">;
182
- export type profilesOrderByWithAggregationInput = {
183
- email?: Prisma.SortOrder;
184
- data?: Prisma.SortOrder;
185
- ttl_ms?: Prisma.SortOrder;
186
- created_at?: Prisma.SortOrder;
187
- _count?: Prisma.profilesCountOrderByAggregateInput;
188
- _avg?: Prisma.profilesAvgOrderByAggregateInput;
189
- _max?: Prisma.profilesMaxOrderByAggregateInput;
190
- _min?: Prisma.profilesMinOrderByAggregateInput;
191
- _sum?: Prisma.profilesSumOrderByAggregateInput;
192
- };
193
- export type profilesScalarWhereWithAggregatesInput = {
194
- AND?: Prisma.profilesScalarWhereWithAggregatesInput | Prisma.profilesScalarWhereWithAggregatesInput[];
195
- OR?: Prisma.profilesScalarWhereWithAggregatesInput[];
196
- NOT?: Prisma.profilesScalarWhereWithAggregatesInput | Prisma.profilesScalarWhereWithAggregatesInput[];
197
- email?: Prisma.StringWithAggregatesFilter<"profiles"> | string;
198
- data?: Prisma.StringWithAggregatesFilter<"profiles"> | string;
199
- ttl_ms?: Prisma.IntWithAggregatesFilter<"profiles"> | number;
200
- created_at?: Prisma.DateTimeWithAggregatesFilter<"profiles"> | Date | string;
201
- };
202
- export type profilesCreateInput = {
203
- data: string;
204
- ttl_ms: number;
205
- created_at?: Date | string;
206
- account: Prisma.accountsCreateNestedOneWithoutProfilesInput;
207
- };
208
- export type profilesUncheckedCreateInput = {
209
- email: string;
210
- data: string;
211
- ttl_ms: number;
212
- created_at?: Date | string;
213
- };
214
- export type profilesUpdateInput = {
215
- data?: Prisma.StringFieldUpdateOperationsInput | string;
216
- ttl_ms?: Prisma.IntFieldUpdateOperationsInput | number;
217
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
218
- account?: Prisma.accountsUpdateOneRequiredWithoutProfilesNestedInput;
219
- };
220
- export type profilesUncheckedUpdateInput = {
221
- email?: Prisma.StringFieldUpdateOperationsInput | string;
222
- data?: Prisma.StringFieldUpdateOperationsInput | string;
223
- ttl_ms?: Prisma.IntFieldUpdateOperationsInput | number;
224
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
225
- };
226
- export type profilesCreateManyInput = {
227
- email: string;
228
- data: string;
229
- ttl_ms: number;
230
- created_at?: Date | string;
231
- };
232
- export type profilesUpdateManyMutationInput = {
233
- data?: Prisma.StringFieldUpdateOperationsInput | string;
234
- ttl_ms?: Prisma.IntFieldUpdateOperationsInput | number;
235
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
236
- };
237
- export type profilesUncheckedUpdateManyInput = {
238
- email?: Prisma.StringFieldUpdateOperationsInput | string;
239
- data?: Prisma.StringFieldUpdateOperationsInput | string;
240
- ttl_ms?: Prisma.IntFieldUpdateOperationsInput | number;
241
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
242
- };
243
- export type ProfilesNullableScalarRelationFilter = {
244
- is?: Prisma.profilesWhereInput | null;
245
- isNot?: Prisma.profilesWhereInput | null;
246
- };
247
- export type profilesCountOrderByAggregateInput = {
248
- email?: Prisma.SortOrder;
249
- data?: Prisma.SortOrder;
250
- ttl_ms?: Prisma.SortOrder;
251
- created_at?: Prisma.SortOrder;
252
- };
253
- export type profilesAvgOrderByAggregateInput = {
254
- ttl_ms?: Prisma.SortOrder;
255
- };
256
- export type profilesMaxOrderByAggregateInput = {
257
- email?: Prisma.SortOrder;
258
- data?: Prisma.SortOrder;
259
- ttl_ms?: Prisma.SortOrder;
260
- created_at?: Prisma.SortOrder;
261
- };
262
- export type profilesMinOrderByAggregateInput = {
263
- email?: Prisma.SortOrder;
264
- data?: Prisma.SortOrder;
265
- ttl_ms?: Prisma.SortOrder;
266
- created_at?: Prisma.SortOrder;
267
- };
268
- export type profilesSumOrderByAggregateInput = {
269
- ttl_ms?: Prisma.SortOrder;
270
- };
271
- export type profilesCreateNestedOneWithoutAccountInput = {
272
- create?: Prisma.XOR<Prisma.profilesCreateWithoutAccountInput, Prisma.profilesUncheckedCreateWithoutAccountInput>;
273
- connectOrCreate?: Prisma.profilesCreateOrConnectWithoutAccountInput;
274
- connect?: Prisma.profilesWhereUniqueInput;
275
- };
276
- export type profilesUncheckedCreateNestedOneWithoutAccountInput = {
277
- create?: Prisma.XOR<Prisma.profilesCreateWithoutAccountInput, Prisma.profilesUncheckedCreateWithoutAccountInput>;
278
- connectOrCreate?: Prisma.profilesCreateOrConnectWithoutAccountInput;
279
- connect?: Prisma.profilesWhereUniqueInput;
280
- };
281
- export type profilesUpdateOneWithoutAccountNestedInput = {
282
- create?: Prisma.XOR<Prisma.profilesCreateWithoutAccountInput, Prisma.profilesUncheckedCreateWithoutAccountInput>;
283
- connectOrCreate?: Prisma.profilesCreateOrConnectWithoutAccountInput;
284
- upsert?: Prisma.profilesUpsertWithoutAccountInput;
285
- disconnect?: Prisma.profilesWhereInput | boolean;
286
- delete?: Prisma.profilesWhereInput | boolean;
287
- connect?: Prisma.profilesWhereUniqueInput;
288
- update?: Prisma.XOR<Prisma.XOR<Prisma.profilesUpdateToOneWithWhereWithoutAccountInput, Prisma.profilesUpdateWithoutAccountInput>, Prisma.profilesUncheckedUpdateWithoutAccountInput>;
289
- };
290
- export type profilesUncheckedUpdateOneWithoutAccountNestedInput = {
291
- create?: Prisma.XOR<Prisma.profilesCreateWithoutAccountInput, Prisma.profilesUncheckedCreateWithoutAccountInput>;
292
- connectOrCreate?: Prisma.profilesCreateOrConnectWithoutAccountInput;
293
- upsert?: Prisma.profilesUpsertWithoutAccountInput;
294
- disconnect?: Prisma.profilesWhereInput | boolean;
295
- delete?: Prisma.profilesWhereInput | boolean;
296
- connect?: Prisma.profilesWhereUniqueInput;
297
- update?: Prisma.XOR<Prisma.XOR<Prisma.profilesUpdateToOneWithWhereWithoutAccountInput, Prisma.profilesUpdateWithoutAccountInput>, Prisma.profilesUncheckedUpdateWithoutAccountInput>;
298
- };
299
- export type profilesCreateWithoutAccountInput = {
300
- data: string;
301
- ttl_ms: number;
302
- created_at?: Date | string;
303
- };
304
- export type profilesUncheckedCreateWithoutAccountInput = {
305
- data: string;
306
- ttl_ms: number;
307
- created_at?: Date | string;
308
- };
309
- export type profilesCreateOrConnectWithoutAccountInput = {
310
- where: Prisma.profilesWhereUniqueInput;
311
- create: Prisma.XOR<Prisma.profilesCreateWithoutAccountInput, Prisma.profilesUncheckedCreateWithoutAccountInput>;
312
- };
313
- export type profilesUpsertWithoutAccountInput = {
314
- update: Prisma.XOR<Prisma.profilesUpdateWithoutAccountInput, Prisma.profilesUncheckedUpdateWithoutAccountInput>;
315
- create: Prisma.XOR<Prisma.profilesCreateWithoutAccountInput, Prisma.profilesUncheckedCreateWithoutAccountInput>;
316
- where?: Prisma.profilesWhereInput;
317
- };
318
- export type profilesUpdateToOneWithWhereWithoutAccountInput = {
319
- where?: Prisma.profilesWhereInput;
320
- data: Prisma.XOR<Prisma.profilesUpdateWithoutAccountInput, Prisma.profilesUncheckedUpdateWithoutAccountInput>;
321
- };
322
- export type profilesUpdateWithoutAccountInput = {
323
- data?: Prisma.StringFieldUpdateOperationsInput | string;
324
- ttl_ms?: Prisma.IntFieldUpdateOperationsInput | number;
325
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
326
- };
327
- export type profilesUncheckedUpdateWithoutAccountInput = {
328
- data?: Prisma.StringFieldUpdateOperationsInput | string;
329
- ttl_ms?: Prisma.IntFieldUpdateOperationsInput | number;
330
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
331
- };
332
- export type profilesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
333
- email?: boolean;
334
- data?: boolean;
335
- ttl_ms?: boolean;
336
- created_at?: boolean;
337
- account?: boolean | Prisma.accountsDefaultArgs<ExtArgs>;
338
- }, ExtArgs["result"]["profiles"]>;
339
- export type profilesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
340
- email?: boolean;
341
- data?: boolean;
342
- ttl_ms?: boolean;
343
- created_at?: boolean;
344
- account?: boolean | Prisma.accountsDefaultArgs<ExtArgs>;
345
- }, ExtArgs["result"]["profiles"]>;
346
- export type profilesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
347
- email?: boolean;
348
- data?: boolean;
349
- ttl_ms?: boolean;
350
- created_at?: boolean;
351
- account?: boolean | Prisma.accountsDefaultArgs<ExtArgs>;
352
- }, ExtArgs["result"]["profiles"]>;
353
- export type profilesSelectScalar = {
354
- email?: boolean;
355
- data?: boolean;
356
- ttl_ms?: boolean;
357
- created_at?: boolean;
358
- };
359
- export type profilesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"email" | "data" | "ttl_ms" | "created_at", ExtArgs["result"]["profiles"]>;
360
- export type profilesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
361
- account?: boolean | Prisma.accountsDefaultArgs<ExtArgs>;
362
- };
363
- export type profilesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
364
- account?: boolean | Prisma.accountsDefaultArgs<ExtArgs>;
365
- };
366
- export type profilesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
367
- account?: boolean | Prisma.accountsDefaultArgs<ExtArgs>;
368
- };
369
- export type $profilesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
370
- name: "profiles";
371
- objects: {
372
- account: Prisma.$accountsPayload<ExtArgs>;
373
- };
374
- scalars: runtime.Types.Extensions.GetPayloadResult<{
375
- email: string;
376
- data: string;
377
- ttl_ms: number;
378
- created_at: Date;
379
- }, ExtArgs["result"]["profiles"]>;
380
- composites: {};
381
- };
382
- export type profilesGetPayload<S extends boolean | null | undefined | profilesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$profilesPayload, S>;
383
- export type profilesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<profilesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
384
- select?: ProfilesCountAggregateInputType | true;
385
- };
386
- export interface profilesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
387
- [K: symbol]: {
388
- types: Prisma.TypeMap<ExtArgs>['model']['profiles'];
389
- meta: {
390
- name: 'profiles';
391
- };
392
- };
393
- /**
394
- * Find zero or one Profiles that matches the filter.
395
- * @param {profilesFindUniqueArgs} args - Arguments to find a Profiles
396
- * @example
397
- * // Get one Profiles
398
- * const profiles = await prisma.profiles.findUnique({
399
- * where: {
400
- * // ... provide filter here
401
- * }
402
- * })
403
- */
404
- findUnique<T extends profilesFindUniqueArgs>(args: Prisma.SelectSubset<T, profilesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__profilesClient<runtime.Types.Result.GetResult<Prisma.$profilesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
405
- /**
406
- * Find one Profiles that matches the filter or throw an error with `error.code='P2025'`
407
- * if no matches were found.
408
- * @param {profilesFindUniqueOrThrowArgs} args - Arguments to find a Profiles
409
- * @example
410
- * // Get one Profiles
411
- * const profiles = await prisma.profiles.findUniqueOrThrow({
412
- * where: {
413
- * // ... provide filter here
414
- * }
415
- * })
416
- */
417
- findUniqueOrThrow<T extends profilesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, profilesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__profilesClient<runtime.Types.Result.GetResult<Prisma.$profilesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
418
- /**
419
- * Find the first Profiles that matches the filter.
420
- * Note, that providing `undefined` is treated as the value not being there.
421
- * Read more here: https://pris.ly/d/null-undefined
422
- * @param {profilesFindFirstArgs} args - Arguments to find a Profiles
423
- * @example
424
- * // Get one Profiles
425
- * const profiles = await prisma.profiles.findFirst({
426
- * where: {
427
- * // ... provide filter here
428
- * }
429
- * })
430
- */
431
- findFirst<T extends profilesFindFirstArgs>(args?: Prisma.SelectSubset<T, profilesFindFirstArgs<ExtArgs>>): Prisma.Prisma__profilesClient<runtime.Types.Result.GetResult<Prisma.$profilesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
432
- /**
433
- * Find the first Profiles that matches the filter or
434
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
435
- * Note, that providing `undefined` is treated as the value not being there.
436
- * Read more here: https://pris.ly/d/null-undefined
437
- * @param {profilesFindFirstOrThrowArgs} args - Arguments to find a Profiles
438
- * @example
439
- * // Get one Profiles
440
- * const profiles = await prisma.profiles.findFirstOrThrow({
441
- * where: {
442
- * // ... provide filter here
443
- * }
444
- * })
445
- */
446
- findFirstOrThrow<T extends profilesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, profilesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__profilesClient<runtime.Types.Result.GetResult<Prisma.$profilesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
447
- /**
448
- * Find zero or more Profiles that matches the filter.
449
- * Note, that providing `undefined` is treated as the value not being there.
450
- * Read more here: https://pris.ly/d/null-undefined
451
- * @param {profilesFindManyArgs} args - Arguments to filter and select certain fields only.
452
- * @example
453
- * // Get all Profiles
454
- * const profiles = await prisma.profiles.findMany()
455
- *
456
- * // Get first 10 Profiles
457
- * const profiles = await prisma.profiles.findMany({ take: 10 })
458
- *
459
- * // Only select the `email`
460
- * const profilesWithEmailOnly = await prisma.profiles.findMany({ select: { email: true } })
461
- *
462
- */
463
- findMany<T extends profilesFindManyArgs>(args?: Prisma.SelectSubset<T, profilesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$profilesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
464
- /**
465
- * Create a Profiles.
466
- * @param {profilesCreateArgs} args - Arguments to create a Profiles.
467
- * @example
468
- * // Create one Profiles
469
- * const Profiles = await prisma.profiles.create({
470
- * data: {
471
- * // ... data to create a Profiles
472
- * }
473
- * })
474
- *
475
- */
476
- create<T extends profilesCreateArgs>(args: Prisma.SelectSubset<T, profilesCreateArgs<ExtArgs>>): Prisma.Prisma__profilesClient<runtime.Types.Result.GetResult<Prisma.$profilesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
477
- /**
478
- * Create many Profiles.
479
- * @param {profilesCreateManyArgs} args - Arguments to create many Profiles.
480
- * @example
481
- * // Create many Profiles
482
- * const profiles = await prisma.profiles.createMany({
483
- * data: [
484
- * // ... provide data here
485
- * ]
486
- * })
487
- *
488
- */
489
- createMany<T extends profilesCreateManyArgs>(args?: Prisma.SelectSubset<T, profilesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
490
- /**
491
- * Create many Profiles and returns the data saved in the database.
492
- * @param {profilesCreateManyAndReturnArgs} args - Arguments to create many Profiles.
493
- * @example
494
- * // Create many Profiles
495
- * const profiles = await prisma.profiles.createManyAndReturn({
496
- * data: [
497
- * // ... provide data here
498
- * ]
499
- * })
500
- *
501
- * // Create many Profiles and only return the `email`
502
- * const profilesWithEmailOnly = await prisma.profiles.createManyAndReturn({
503
- * select: { email: true },
504
- * data: [
505
- * // ... provide data here
506
- * ]
507
- * })
508
- * Note, that providing `undefined` is treated as the value not being there.
509
- * Read more here: https://pris.ly/d/null-undefined
510
- *
511
- */
512
- createManyAndReturn<T extends profilesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, profilesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$profilesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
513
- /**
514
- * Delete a Profiles.
515
- * @param {profilesDeleteArgs} args - Arguments to delete one Profiles.
516
- * @example
517
- * // Delete one Profiles
518
- * const Profiles = await prisma.profiles.delete({
519
- * where: {
520
- * // ... filter to delete one Profiles
521
- * }
522
- * })
523
- *
524
- */
525
- delete<T extends profilesDeleteArgs>(args: Prisma.SelectSubset<T, profilesDeleteArgs<ExtArgs>>): Prisma.Prisma__profilesClient<runtime.Types.Result.GetResult<Prisma.$profilesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
526
- /**
527
- * Update one Profiles.
528
- * @param {profilesUpdateArgs} args - Arguments to update one Profiles.
529
- * @example
530
- * // Update one Profiles
531
- * const profiles = await prisma.profiles.update({
532
- * where: {
533
- * // ... provide filter here
534
- * },
535
- * data: {
536
- * // ... provide data here
537
- * }
538
- * })
539
- *
540
- */
541
- update<T extends profilesUpdateArgs>(args: Prisma.SelectSubset<T, profilesUpdateArgs<ExtArgs>>): Prisma.Prisma__profilesClient<runtime.Types.Result.GetResult<Prisma.$profilesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
542
- /**
543
- * Delete zero or more Profiles.
544
- * @param {profilesDeleteManyArgs} args - Arguments to filter Profiles to delete.
545
- * @example
546
- * // Delete a few Profiles
547
- * const { count } = await prisma.profiles.deleteMany({
548
- * where: {
549
- * // ... provide filter here
550
- * }
551
- * })
552
- *
553
- */
554
- deleteMany<T extends profilesDeleteManyArgs>(args?: Prisma.SelectSubset<T, profilesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
555
- /**
556
- * Update zero or more Profiles.
557
- * Note, that providing `undefined` is treated as the value not being there.
558
- * Read more here: https://pris.ly/d/null-undefined
559
- * @param {profilesUpdateManyArgs} args - Arguments to update one or more rows.
560
- * @example
561
- * // Update many Profiles
562
- * const profiles = await prisma.profiles.updateMany({
563
- * where: {
564
- * // ... provide filter here
565
- * },
566
- * data: {
567
- * // ... provide data here
568
- * }
569
- * })
570
- *
571
- */
572
- updateMany<T extends profilesUpdateManyArgs>(args: Prisma.SelectSubset<T, profilesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
573
- /**
574
- * Update zero or more Profiles and returns the data updated in the database.
575
- * @param {profilesUpdateManyAndReturnArgs} args - Arguments to update many Profiles.
576
- * @example
577
- * // Update many Profiles
578
- * const profiles = await prisma.profiles.updateManyAndReturn({
579
- * where: {
580
- * // ... provide filter here
581
- * },
582
- * data: [
583
- * // ... provide data here
584
- * ]
585
- * })
586
- *
587
- * // Update zero or more Profiles and only return the `email`
588
- * const profilesWithEmailOnly = await prisma.profiles.updateManyAndReturn({
589
- * select: { email: true },
590
- * where: {
591
- * // ... provide filter here
592
- * },
593
- * data: [
594
- * // ... provide data here
595
- * ]
596
- * })
597
- * Note, that providing `undefined` is treated as the value not being there.
598
- * Read more here: https://pris.ly/d/null-undefined
599
- *
600
- */
601
- updateManyAndReturn<T extends profilesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, profilesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$profilesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
602
- /**
603
- * Create or update one Profiles.
604
- * @param {profilesUpsertArgs} args - Arguments to update or create a Profiles.
605
- * @example
606
- * // Update or create a Profiles
607
- * const profiles = await prisma.profiles.upsert({
608
- * create: {
609
- * // ... data to create a Profiles
610
- * },
611
- * update: {
612
- * // ... in case it already exists, update
613
- * },
614
- * where: {
615
- * // ... the filter for the Profiles we want to update
616
- * }
617
- * })
618
- */
619
- upsert<T extends profilesUpsertArgs>(args: Prisma.SelectSubset<T, profilesUpsertArgs<ExtArgs>>): Prisma.Prisma__profilesClient<runtime.Types.Result.GetResult<Prisma.$profilesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
620
- /**
621
- * Count the number of Profiles.
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 {profilesCountArgs} args - Arguments to filter Profiles to count.
625
- * @example
626
- * // Count the number of Profiles
627
- * const count = await prisma.profiles.count({
628
- * where: {
629
- * // ... the filter for the Profiles we want to count
630
- * }
631
- * })
632
- **/
633
- count<T extends profilesCountArgs>(args?: Prisma.Subset<T, profilesCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ProfilesCountAggregateOutputType> : number>;
634
- /**
635
- * Allows you to perform aggregations operations on a Profiles.
636
- * Note, that providing `undefined` is treated as the value not being there.
637
- * Read more here: https://pris.ly/d/null-undefined
638
- * @param {ProfilesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
639
- * @example
640
- * // Ordered by age ascending
641
- * // Where email contains prisma.io
642
- * // Limited to the 10 users
643
- * const aggregations = await prisma.user.aggregate({
644
- * _avg: {
645
- * age: true,
646
- * },
647
- * where: {
648
- * email: {
649
- * contains: "prisma.io",
650
- * },
651
- * },
652
- * orderBy: {
653
- * age: "asc",
654
- * },
655
- * take: 10,
656
- * })
657
- **/
658
- aggregate<T extends ProfilesAggregateArgs>(args: Prisma.Subset<T, ProfilesAggregateArgs>): Prisma.PrismaPromise<GetProfilesAggregateType<T>>;
659
- /**
660
- * Group by Profiles.
661
- * Note, that providing `undefined` is treated as the value not being there.
662
- * Read more here: https://pris.ly/d/null-undefined
663
- * @param {profilesGroupByArgs} args - Group by arguments.
664
- * @example
665
- * // Group by city, order by createdAt, get count
666
- * const result = await prisma.user.groupBy({
667
- * by: ['city', 'createdAt'],
668
- * orderBy: {
669
- * createdAt: true
670
- * },
671
- * _count: {
672
- * _all: true
673
- * },
674
- * })
675
- *
676
- **/
677
- groupBy<T extends profilesGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
678
- orderBy: profilesGroupByArgs['orderBy'];
679
- } : {
680
- orderBy?: profilesGroupByArgs['orderBy'];
681
- }, 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 ? {
682
- [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
683
- Error,
684
- 'Field ',
685
- P,
686
- ` in "having" needs to be provided in "by"`
687
- ];
688
- }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
689
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
690
- }[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 ? {} : {
691
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
692
- }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
693
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
694
- }[OrderFields]>(args: Prisma.SubsetIntersection<T, profilesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProfilesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
695
- /**
696
- * Fields of the profiles model
697
- */
698
- readonly fields: profilesFieldRefs;
699
- }
700
- /**
701
- * The delegate class that acts as a "Promise-like" for profiles.
702
- * Why is this prefixed with `Prisma__`?
703
- * Because we want to prevent naming conflicts as mentioned in
704
- * https://github.com/prisma/prisma-client-js/issues/707
705
- */
706
- export interface Prisma__profilesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
707
- readonly [Symbol.toStringTag]: "PrismaPromise";
708
- account<T extends Prisma.accountsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.accountsDefaultArgs<ExtArgs>>): Prisma.Prisma__accountsClient<runtime.Types.Result.GetResult<Prisma.$accountsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
709
- /**
710
- * Attaches callbacks for the resolution and/or rejection of the Promise.
711
- * @param onfulfilled The callback to execute when the Promise is resolved.
712
- * @param onrejected The callback to execute when the Promise is rejected.
713
- * @returns A Promise for the completion of which ever callback is executed.
714
- */
715
- 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>;
716
- /**
717
- * Attaches a callback for only the rejection of the Promise.
718
- * @param onrejected The callback to execute when the Promise is rejected.
719
- * @returns A Promise for the completion of the callback.
720
- */
721
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
722
- /**
723
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
724
- * resolved value cannot be modified from the callback.
725
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
726
- * @returns A Promise for the completion of the callback.
727
- */
728
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
729
- }
730
- /**
731
- * Fields of the profiles model
732
- */
733
- export interface profilesFieldRefs {
734
- readonly email: Prisma.FieldRef<"profiles", 'String'>;
735
- readonly data: Prisma.FieldRef<"profiles", 'String'>;
736
- readonly ttl_ms: Prisma.FieldRef<"profiles", 'Int'>;
737
- readonly created_at: Prisma.FieldRef<"profiles", 'DateTime'>;
738
- }
739
- /**
740
- * profiles findUnique
741
- */
742
- export type profilesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
743
- /**
744
- * Select specific fields to fetch from the profiles
745
- */
746
- select?: Prisma.profilesSelect<ExtArgs> | null;
747
- /**
748
- * Omit specific fields from the profiles
749
- */
750
- omit?: Prisma.profilesOmit<ExtArgs> | null;
751
- /**
752
- * Choose, which related nodes to fetch as well
753
- */
754
- include?: Prisma.profilesInclude<ExtArgs> | null;
755
- /**
756
- * Filter, which profiles to fetch.
757
- */
758
- where: Prisma.profilesWhereUniqueInput;
759
- };
760
- /**
761
- * profiles findUniqueOrThrow
762
- */
763
- export type profilesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
764
- /**
765
- * Select specific fields to fetch from the profiles
766
- */
767
- select?: Prisma.profilesSelect<ExtArgs> | null;
768
- /**
769
- * Omit specific fields from the profiles
770
- */
771
- omit?: Prisma.profilesOmit<ExtArgs> | null;
772
- /**
773
- * Choose, which related nodes to fetch as well
774
- */
775
- include?: Prisma.profilesInclude<ExtArgs> | null;
776
- /**
777
- * Filter, which profiles to fetch.
778
- */
779
- where: Prisma.profilesWhereUniqueInput;
780
- };
781
- /**
782
- * profiles findFirst
783
- */
784
- export type profilesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
785
- /**
786
- * Select specific fields to fetch from the profiles
787
- */
788
- select?: Prisma.profilesSelect<ExtArgs> | null;
789
- /**
790
- * Omit specific fields from the profiles
791
- */
792
- omit?: Prisma.profilesOmit<ExtArgs> | null;
793
- /**
794
- * Choose, which related nodes to fetch as well
795
- */
796
- include?: Prisma.profilesInclude<ExtArgs> | null;
797
- /**
798
- * Filter, which profiles to fetch.
799
- */
800
- where?: Prisma.profilesWhereInput;
801
- /**
802
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
803
- *
804
- * Determine the order of profiles to fetch.
805
- */
806
- orderBy?: Prisma.profilesOrderByWithRelationInput | Prisma.profilesOrderByWithRelationInput[];
807
- /**
808
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
809
- *
810
- * Sets the position for searching for profiles.
811
- */
812
- cursor?: Prisma.profilesWhereUniqueInput;
813
- /**
814
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
815
- *
816
- * Take `±n` profiles from the position of the cursor.
817
- */
818
- take?: number;
819
- /**
820
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
821
- *
822
- * Skip the first `n` profiles.
823
- */
824
- skip?: number;
825
- /**
826
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
827
- *
828
- * Filter by unique combinations of profiles.
829
- */
830
- distinct?: Prisma.ProfilesScalarFieldEnum | Prisma.ProfilesScalarFieldEnum[];
831
- };
832
- /**
833
- * profiles findFirstOrThrow
834
- */
835
- export type profilesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
836
- /**
837
- * Select specific fields to fetch from the profiles
838
- */
839
- select?: Prisma.profilesSelect<ExtArgs> | null;
840
- /**
841
- * Omit specific fields from the profiles
842
- */
843
- omit?: Prisma.profilesOmit<ExtArgs> | null;
844
- /**
845
- * Choose, which related nodes to fetch as well
846
- */
847
- include?: Prisma.profilesInclude<ExtArgs> | null;
848
- /**
849
- * Filter, which profiles to fetch.
850
- */
851
- where?: Prisma.profilesWhereInput;
852
- /**
853
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
854
- *
855
- * Determine the order of profiles to fetch.
856
- */
857
- orderBy?: Prisma.profilesOrderByWithRelationInput | Prisma.profilesOrderByWithRelationInput[];
858
- /**
859
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
860
- *
861
- * Sets the position for searching for profiles.
862
- */
863
- cursor?: Prisma.profilesWhereUniqueInput;
864
- /**
865
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
866
- *
867
- * Take `±n` profiles from the position of the cursor.
868
- */
869
- take?: number;
870
- /**
871
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
872
- *
873
- * Skip the first `n` profiles.
874
- */
875
- skip?: number;
876
- /**
877
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
878
- *
879
- * Filter by unique combinations of profiles.
880
- */
881
- distinct?: Prisma.ProfilesScalarFieldEnum | Prisma.ProfilesScalarFieldEnum[];
882
- };
883
- /**
884
- * profiles findMany
885
- */
886
- export type profilesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
887
- /**
888
- * Select specific fields to fetch from the profiles
889
- */
890
- select?: Prisma.profilesSelect<ExtArgs> | null;
891
- /**
892
- * Omit specific fields from the profiles
893
- */
894
- omit?: Prisma.profilesOmit<ExtArgs> | null;
895
- /**
896
- * Choose, which related nodes to fetch as well
897
- */
898
- include?: Prisma.profilesInclude<ExtArgs> | null;
899
- /**
900
- * Filter, which profiles to fetch.
901
- */
902
- where?: Prisma.profilesWhereInput;
903
- /**
904
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
905
- *
906
- * Determine the order of profiles to fetch.
907
- */
908
- orderBy?: Prisma.profilesOrderByWithRelationInput | Prisma.profilesOrderByWithRelationInput[];
909
- /**
910
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
911
- *
912
- * Sets the position for listing profiles.
913
- */
914
- cursor?: Prisma.profilesWhereUniqueInput;
915
- /**
916
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
917
- *
918
- * Take `±n` profiles from the position of the cursor.
919
- */
920
- take?: number;
921
- /**
922
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
923
- *
924
- * Skip the first `n` profiles.
925
- */
926
- skip?: number;
927
- distinct?: Prisma.ProfilesScalarFieldEnum | Prisma.ProfilesScalarFieldEnum[];
928
- };
929
- /**
930
- * profiles create
931
- */
932
- export type profilesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
933
- /**
934
- * Select specific fields to fetch from the profiles
935
- */
936
- select?: Prisma.profilesSelect<ExtArgs> | null;
937
- /**
938
- * Omit specific fields from the profiles
939
- */
940
- omit?: Prisma.profilesOmit<ExtArgs> | null;
941
- /**
942
- * Choose, which related nodes to fetch as well
943
- */
944
- include?: Prisma.profilesInclude<ExtArgs> | null;
945
- /**
946
- * The data needed to create a profiles.
947
- */
948
- data: Prisma.XOR<Prisma.profilesCreateInput, Prisma.profilesUncheckedCreateInput>;
949
- };
950
- /**
951
- * profiles createMany
952
- */
953
- export type profilesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
954
- /**
955
- * The data used to create many profiles.
956
- */
957
- data: Prisma.profilesCreateManyInput | Prisma.profilesCreateManyInput[];
958
- };
959
- /**
960
- * profiles createManyAndReturn
961
- */
962
- export type profilesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
963
- /**
964
- * Select specific fields to fetch from the profiles
965
- */
966
- select?: Prisma.profilesSelectCreateManyAndReturn<ExtArgs> | null;
967
- /**
968
- * Omit specific fields from the profiles
969
- */
970
- omit?: Prisma.profilesOmit<ExtArgs> | null;
971
- /**
972
- * The data used to create many profiles.
973
- */
974
- data: Prisma.profilesCreateManyInput | Prisma.profilesCreateManyInput[];
975
- /**
976
- * Choose, which related nodes to fetch as well
977
- */
978
- include?: Prisma.profilesIncludeCreateManyAndReturn<ExtArgs> | null;
979
- };
980
- /**
981
- * profiles update
982
- */
983
- export type profilesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
984
- /**
985
- * Select specific fields to fetch from the profiles
986
- */
987
- select?: Prisma.profilesSelect<ExtArgs> | null;
988
- /**
989
- * Omit specific fields from the profiles
990
- */
991
- omit?: Prisma.profilesOmit<ExtArgs> | null;
992
- /**
993
- * Choose, which related nodes to fetch as well
994
- */
995
- include?: Prisma.profilesInclude<ExtArgs> | null;
996
- /**
997
- * The data needed to update a profiles.
998
- */
999
- data: Prisma.XOR<Prisma.profilesUpdateInput, Prisma.profilesUncheckedUpdateInput>;
1000
- /**
1001
- * Choose, which profiles to update.
1002
- */
1003
- where: Prisma.profilesWhereUniqueInput;
1004
- };
1005
- /**
1006
- * profiles updateMany
1007
- */
1008
- export type profilesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1009
- /**
1010
- * The data used to update profiles.
1011
- */
1012
- data: Prisma.XOR<Prisma.profilesUpdateManyMutationInput, Prisma.profilesUncheckedUpdateManyInput>;
1013
- /**
1014
- * Filter which profiles to update
1015
- */
1016
- where?: Prisma.profilesWhereInput;
1017
- /**
1018
- * Limit how many profiles to update.
1019
- */
1020
- limit?: number;
1021
- };
1022
- /**
1023
- * profiles updateManyAndReturn
1024
- */
1025
- export type profilesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1026
- /**
1027
- * Select specific fields to fetch from the profiles
1028
- */
1029
- select?: Prisma.profilesSelectUpdateManyAndReturn<ExtArgs> | null;
1030
- /**
1031
- * Omit specific fields from the profiles
1032
- */
1033
- omit?: Prisma.profilesOmit<ExtArgs> | null;
1034
- /**
1035
- * The data used to update profiles.
1036
- */
1037
- data: Prisma.XOR<Prisma.profilesUpdateManyMutationInput, Prisma.profilesUncheckedUpdateManyInput>;
1038
- /**
1039
- * Filter which profiles to update
1040
- */
1041
- where?: Prisma.profilesWhereInput;
1042
- /**
1043
- * Limit how many profiles to update.
1044
- */
1045
- limit?: number;
1046
- /**
1047
- * Choose, which related nodes to fetch as well
1048
- */
1049
- include?: Prisma.profilesIncludeUpdateManyAndReturn<ExtArgs> | null;
1050
- };
1051
- /**
1052
- * profiles upsert
1053
- */
1054
- export type profilesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1055
- /**
1056
- * Select specific fields to fetch from the profiles
1057
- */
1058
- select?: Prisma.profilesSelect<ExtArgs> | null;
1059
- /**
1060
- * Omit specific fields from the profiles
1061
- */
1062
- omit?: Prisma.profilesOmit<ExtArgs> | null;
1063
- /**
1064
- * Choose, which related nodes to fetch as well
1065
- */
1066
- include?: Prisma.profilesInclude<ExtArgs> | null;
1067
- /**
1068
- * The filter to search for the profiles to update in case it exists.
1069
- */
1070
- where: Prisma.profilesWhereUniqueInput;
1071
- /**
1072
- * In case the profiles found by the `where` argument doesn't exist, create a new profiles with this data.
1073
- */
1074
- create: Prisma.XOR<Prisma.profilesCreateInput, Prisma.profilesUncheckedCreateInput>;
1075
- /**
1076
- * In case the profiles was found with the provided `where` argument, update it with this data.
1077
- */
1078
- update: Prisma.XOR<Prisma.profilesUpdateInput, Prisma.profilesUncheckedUpdateInput>;
1079
- };
1080
- /**
1081
- * profiles delete
1082
- */
1083
- export type profilesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1084
- /**
1085
- * Select specific fields to fetch from the profiles
1086
- */
1087
- select?: Prisma.profilesSelect<ExtArgs> | null;
1088
- /**
1089
- * Omit specific fields from the profiles
1090
- */
1091
- omit?: Prisma.profilesOmit<ExtArgs> | null;
1092
- /**
1093
- * Choose, which related nodes to fetch as well
1094
- */
1095
- include?: Prisma.profilesInclude<ExtArgs> | null;
1096
- /**
1097
- * Filter which profiles to delete.
1098
- */
1099
- where: Prisma.profilesWhereUniqueInput;
1100
- };
1101
- /**
1102
- * profiles deleteMany
1103
- */
1104
- export type profilesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1105
- /**
1106
- * Filter which profiles to delete
1107
- */
1108
- where?: Prisma.profilesWhereInput;
1109
- /**
1110
- * Limit how many profiles to delete.
1111
- */
1112
- limit?: number;
1113
- };
1114
- /**
1115
- * profiles without action
1116
- */
1117
- export type profilesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1118
- /**
1119
- * Select specific fields to fetch from the profiles
1120
- */
1121
- select?: Prisma.profilesSelect<ExtArgs> | null;
1122
- /**
1123
- * Omit specific fields from the profiles
1124
- */
1125
- omit?: Prisma.profilesOmit<ExtArgs> | null;
1126
- /**
1127
- * Choose, which related nodes to fetch as well
1128
- */
1129
- include?: Prisma.profilesInclude<ExtArgs> | null;
1130
- };
1131
- export {};