zele 0.3.0 → 0.3.5

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