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