@prenta/core 8.6.1 → 8.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/api/handlers.d.ts.map +1 -1
  3. package/dist/api/handlers.js +4 -0
  4. package/dist/api/handlers.js.map +1 -1
  5. package/dist/api/index.d.ts +2 -0
  6. package/dist/api/index.d.ts.map +1 -1
  7. package/dist/api/index.js +2 -0
  8. package/dist/api/index.js.map +1 -1
  9. package/dist/api/route-helpers/auth.d.ts +24 -2
  10. package/dist/api/route-helpers/auth.d.ts.map +1 -1
  11. package/dist/api/route-helpers/auth.js +93 -1
  12. package/dist/api/route-helpers/auth.js.map +1 -1
  13. package/dist/api/route-helpers.d.ts +1 -1
  14. package/dist/api/route-helpers.d.ts.map +1 -1
  15. package/dist/api/route-helpers.js +1 -1
  16. package/dist/api/route-helpers.js.map +1 -1
  17. package/dist/api/routes/ai-authoring.d.ts.map +1 -1
  18. package/dist/api/routes/ai-authoring.js +8 -3
  19. package/dist/api/routes/ai-authoring.js.map +1 -1
  20. package/dist/api/routes/forms.d.ts.map +1 -1
  21. package/dist/api/routes/forms.js +50 -34
  22. package/dist/api/routes/forms.js.map +1 -1
  23. package/dist/api/routes/mcp-oauth.d.ts +3 -0
  24. package/dist/api/routes/mcp-oauth.d.ts.map +1 -0
  25. package/dist/api/routes/mcp-oauth.js +143 -0
  26. package/dist/api/routes/mcp-oauth.js.map +1 -0
  27. package/dist/api/routes/preview.d.ts.map +1 -1
  28. package/dist/api/routes/preview.js +43 -2
  29. package/dist/api/routes/preview.js.map +1 -1
  30. package/dist/api/routes/privacy.d.ts +3 -0
  31. package/dist/api/routes/privacy.d.ts.map +1 -0
  32. package/dist/api/routes/privacy.js +44 -0
  33. package/dist/api/routes/privacy.js.map +1 -0
  34. package/dist/api/routes/scheduling.d.ts.map +1 -1
  35. package/dist/api/routes/scheduling.js +4 -1
  36. package/dist/api/routes/scheduling.js.map +1 -1
  37. package/dist/api/routes/seo/handlers/audits.d.ts.map +1 -1
  38. package/dist/api/routes/seo/handlers/audits.js +3 -3
  39. package/dist/api/routes/seo/handlers/audits.js.map +1 -1
  40. package/dist/api/routes/seo/handlers/content.d.ts.map +1 -1
  41. package/dist/api/routes/seo/handlers/content.js +2 -2
  42. package/dist/api/routes/seo/handlers/content.js.map +1 -1
  43. package/dist/api/routes/seo/handlers/issue-helpers.d.ts.map +1 -1
  44. package/dist/api/routes/seo/handlers/issue-helpers.js +2 -2
  45. package/dist/api/routes/seo/handlers/issue-helpers.js.map +1 -1
  46. package/dist/api/routes/seo/handlers/issues-fixes.js +3 -3
  47. package/dist/api/routes/seo/handlers/issues-fixes.js.map +1 -1
  48. package/dist/api/routes/seo/handlers/links.d.ts.map +1 -1
  49. package/dist/api/routes/seo/handlers/links.js +6 -6
  50. package/dist/api/routes/seo/handlers/links.js.map +1 -1
  51. package/dist/api/routes/seo/handlers/proposals.js +2 -2
  52. package/dist/api/routes/seo/handlers/proposals.js.map +1 -1
  53. package/dist/api/routes/seo-public.d.ts.map +1 -1
  54. package/dist/api/routes/seo-public.js +9 -0
  55. package/dist/api/routes/seo-public.js.map +1 -1
  56. package/dist/db/model-types.d.ts +40 -0
  57. package/dist/db/model-types.d.ts.map +1 -1
  58. package/dist/forms/delivery.d.ts.map +1 -1
  59. package/dist/forms/delivery.js +16 -10
  60. package/dist/forms/delivery.js.map +1 -1
  61. package/dist/forms/encryption.d.ts +4 -2
  62. package/dist/forms/encryption.d.ts.map +1 -1
  63. package/dist/forms/encryption.js +6 -4
  64. package/dist/forms/encryption.js.map +1 -1
  65. package/dist/forms/submission.d.ts.map +1 -1
  66. package/dist/forms/submission.js +17 -10
  67. package/dist/forms/submission.js.map +1 -1
  68. package/dist/generated/browser.d.ts +19 -0
  69. package/dist/generated/client.d.ts +19 -0
  70. package/dist/generated/internal/class.d.ts +33 -0
  71. package/dist/generated/internal/class.js +4 -4
  72. package/dist/generated/internal/prismaNamespace.d.ts +296 -1
  73. package/dist/generated/internal/prismaNamespace.js +65 -1
  74. package/dist/generated/internal/prismaNamespaceBrowser.d.ts +70 -0
  75. package/dist/generated/internal/prismaNamespaceBrowser.js +65 -1
  76. package/dist/generated/models/McpOauthGrant.d.ts +1577 -0
  77. package/dist/generated/models/McpOauthGrant.js +1 -0
  78. package/dist/generated/models/McpOauthRefreshReplay.d.ts +957 -0
  79. package/dist/generated/models/McpOauthRefreshReplay.js +1 -0
  80. package/dist/generated/models/McpOauthTransaction.d.ts +1153 -0
  81. package/dist/generated/models/McpOauthTransaction.js +1 -0
  82. package/dist/generated/models/User.d.ts +279 -0
  83. package/dist/generated/models.d.ts +3 -0
  84. package/dist/mcp/cimd.d.ts +12 -0
  85. package/dist/mcp/cimd.d.ts.map +1 -0
  86. package/dist/mcp/cimd.js +67 -0
  87. package/dist/mcp/cimd.js.map +1 -0
  88. package/dist/mcp/gate.d.ts +11 -0
  89. package/dist/mcp/gate.d.ts.map +1 -0
  90. package/dist/mcp/gate.js +75 -0
  91. package/dist/mcp/gate.js.map +1 -0
  92. package/dist/mcp/memory-grant-store.d.ts +5 -0
  93. package/dist/mcp/memory-grant-store.d.ts.map +1 -0
  94. package/dist/mcp/memory-grant-store.js +44 -0
  95. package/dist/mcp/memory-grant-store.js.map +1 -0
  96. package/dist/mcp/oauth-grants.d.ts +83 -0
  97. package/dist/mcp/oauth-grants.d.ts.map +1 -0
  98. package/dist/mcp/oauth-grants.js +129 -0
  99. package/dist/mcp/oauth-grants.js.map +1 -0
  100. package/dist/mcp/oauth-http.d.ts +43 -0
  101. package/dist/mcp/oauth-http.d.ts.map +1 -0
  102. package/dist/mcp/oauth-http.js +243 -0
  103. package/dist/mcp/oauth-http.js.map +1 -0
  104. package/dist/mcp/oauth-token.d.ts +43 -0
  105. package/dist/mcp/oauth-token.d.ts.map +1 -0
  106. package/dist/mcp/oauth-token.js +78 -0
  107. package/dist/mcp/oauth-token.js.map +1 -0
  108. package/dist/mcp/prisma-store.d.ts +5 -0
  109. package/dist/mcp/prisma-store.d.ts.map +1 -0
  110. package/dist/mcp/prisma-store.js +69 -0
  111. package/dist/mcp/prisma-store.js.map +1 -0
  112. package/dist/mcp/public.d.ts +5 -0
  113. package/dist/mcp/public.d.ts.map +1 -0
  114. package/dist/mcp/public.js +30 -0
  115. package/dist/mcp/public.js.map +1 -0
  116. package/dist/mcp/runtime.d.ts +4 -0
  117. package/dist/mcp/runtime.d.ts.map +1 -0
  118. package/dist/mcp/runtime.js +46 -0
  119. package/dist/mcp/runtime.js.map +1 -0
  120. package/dist/mcp/transactions.d.ts +18 -0
  121. package/dist/mcp/transactions.d.ts.map +1 -0
  122. package/dist/mcp/transactions.js +15 -0
  123. package/dist/mcp/transactions.js.map +1 -0
  124. package/dist/privacy/phi.d.ts +5 -0
  125. package/dist/privacy/phi.d.ts.map +1 -0
  126. package/dist/privacy/phi.js +69 -0
  127. package/dist/privacy/phi.js.map +1 -0
  128. package/dist/seo/document-path.d.ts +13 -0
  129. package/dist/seo/document-path.d.ts.map +1 -1
  130. package/dist/seo/document-path.js +10 -0
  131. package/dist/seo/document-path.js.map +1 -1
  132. package/package.json +3 -3
  133. package/prisma/migrations/0023_mcp_oauth/migration.sql +40 -0
  134. package/prisma/migrations/0024_mcp_oauth_transactions/migration.sql +16 -0
  135. package/prisma/schema.prisma +58 -0
@@ -0,0 +1,1577 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model McpOauthGrant
5
+ * One MCP OAuth grant. The authorization code and the current refresh token
6
+ * are stored only as SHA-256 hashes. `familyId` groups rotations; replaying a
7
+ * replaced refresh token revokes every row in the family.
8
+ */
9
+ export type McpOauthGrantModel = runtime.Types.Result.DefaultSelection<Prisma.$McpOauthGrantPayload>;
10
+ export type AggregateMcpOauthGrant = {
11
+ _count: McpOauthGrantCountAggregateOutputType | null;
12
+ _min: McpOauthGrantMinAggregateOutputType | null;
13
+ _max: McpOauthGrantMaxAggregateOutputType | null;
14
+ };
15
+ export type McpOauthGrantMinAggregateOutputType = {
16
+ id: string | null;
17
+ userId: string | null;
18
+ clientId: string | null;
19
+ redirectUri: string | null;
20
+ resource: string | null;
21
+ scope: string | null;
22
+ codeChallenge: string | null;
23
+ codeHash: string | null;
24
+ codeExpiresAt: Date | null;
25
+ codeConsumedAt: Date | null;
26
+ refreshHash: string | null;
27
+ refreshExpiresAt: Date | null;
28
+ familyId: string | null;
29
+ revokedAt: Date | null;
30
+ createdAt: Date | null;
31
+ updatedAt: Date | null;
32
+ };
33
+ export type McpOauthGrantMaxAggregateOutputType = {
34
+ id: string | null;
35
+ userId: string | null;
36
+ clientId: string | null;
37
+ redirectUri: string | null;
38
+ resource: string | null;
39
+ scope: string | null;
40
+ codeChallenge: string | null;
41
+ codeHash: string | null;
42
+ codeExpiresAt: Date | null;
43
+ codeConsumedAt: Date | null;
44
+ refreshHash: string | null;
45
+ refreshExpiresAt: Date | null;
46
+ familyId: string | null;
47
+ revokedAt: Date | null;
48
+ createdAt: Date | null;
49
+ updatedAt: Date | null;
50
+ };
51
+ export type McpOauthGrantCountAggregateOutputType = {
52
+ id: number;
53
+ userId: number;
54
+ clientId: number;
55
+ redirectUri: number;
56
+ resource: number;
57
+ scope: number;
58
+ codeChallenge: number;
59
+ codeHash: number;
60
+ codeExpiresAt: number;
61
+ codeConsumedAt: number;
62
+ refreshHash: number;
63
+ refreshExpiresAt: number;
64
+ familyId: number;
65
+ revokedAt: number;
66
+ createdAt: number;
67
+ updatedAt: number;
68
+ _all: number;
69
+ };
70
+ export type McpOauthGrantMinAggregateInputType = {
71
+ id?: true;
72
+ userId?: true;
73
+ clientId?: true;
74
+ redirectUri?: true;
75
+ resource?: true;
76
+ scope?: true;
77
+ codeChallenge?: true;
78
+ codeHash?: true;
79
+ codeExpiresAt?: true;
80
+ codeConsumedAt?: true;
81
+ refreshHash?: true;
82
+ refreshExpiresAt?: true;
83
+ familyId?: true;
84
+ revokedAt?: true;
85
+ createdAt?: true;
86
+ updatedAt?: true;
87
+ };
88
+ export type McpOauthGrantMaxAggregateInputType = {
89
+ id?: true;
90
+ userId?: true;
91
+ clientId?: true;
92
+ redirectUri?: true;
93
+ resource?: true;
94
+ scope?: true;
95
+ codeChallenge?: true;
96
+ codeHash?: true;
97
+ codeExpiresAt?: true;
98
+ codeConsumedAt?: true;
99
+ refreshHash?: true;
100
+ refreshExpiresAt?: true;
101
+ familyId?: true;
102
+ revokedAt?: true;
103
+ createdAt?: true;
104
+ updatedAt?: true;
105
+ };
106
+ export type McpOauthGrantCountAggregateInputType = {
107
+ id?: true;
108
+ userId?: true;
109
+ clientId?: true;
110
+ redirectUri?: true;
111
+ resource?: true;
112
+ scope?: true;
113
+ codeChallenge?: true;
114
+ codeHash?: true;
115
+ codeExpiresAt?: true;
116
+ codeConsumedAt?: true;
117
+ refreshHash?: true;
118
+ refreshExpiresAt?: true;
119
+ familyId?: true;
120
+ revokedAt?: true;
121
+ createdAt?: true;
122
+ updatedAt?: true;
123
+ _all?: true;
124
+ };
125
+ export type McpOauthGrantAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
126
+ /**
127
+ * Filter which McpOauthGrant to aggregate.
128
+ */
129
+ where?: Prisma.McpOauthGrantWhereInput;
130
+ /**
131
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
132
+ *
133
+ * Determine the order of McpOauthGrants to fetch.
134
+ */
135
+ orderBy?: Prisma.McpOauthGrantOrderByWithRelationInput | Prisma.McpOauthGrantOrderByWithRelationInput[];
136
+ /**
137
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
138
+ *
139
+ * Sets the start position
140
+ */
141
+ cursor?: Prisma.McpOauthGrantWhereUniqueInput;
142
+ /**
143
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
144
+ *
145
+ * Take `±n` McpOauthGrants from the position of the cursor.
146
+ */
147
+ take?: number;
148
+ /**
149
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
150
+ *
151
+ * Skip the first `n` McpOauthGrants.
152
+ */
153
+ skip?: number;
154
+ /**
155
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
156
+ *
157
+ * Count returned McpOauthGrants
158
+ **/
159
+ _count?: true | McpOauthGrantCountAggregateInputType;
160
+ /**
161
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
162
+ *
163
+ * Select which fields to find the minimum value
164
+ **/
165
+ _min?: McpOauthGrantMinAggregateInputType;
166
+ /**
167
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
168
+ *
169
+ * Select which fields to find the maximum value
170
+ **/
171
+ _max?: McpOauthGrantMaxAggregateInputType;
172
+ };
173
+ export type GetMcpOauthGrantAggregateType<T extends McpOauthGrantAggregateArgs> = {
174
+ [P in keyof T & keyof AggregateMcpOauthGrant]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateMcpOauthGrant[P]> : Prisma.GetScalarType<T[P], AggregateMcpOauthGrant[P]>;
175
+ };
176
+ export type McpOauthGrantGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
177
+ where?: Prisma.McpOauthGrantWhereInput;
178
+ orderBy?: Prisma.McpOauthGrantOrderByWithAggregationInput | Prisma.McpOauthGrantOrderByWithAggregationInput[];
179
+ by: Prisma.McpOauthGrantScalarFieldEnum[] | Prisma.McpOauthGrantScalarFieldEnum;
180
+ having?: Prisma.McpOauthGrantScalarWhereWithAggregatesInput;
181
+ take?: number;
182
+ skip?: number;
183
+ _count?: McpOauthGrantCountAggregateInputType | true;
184
+ _min?: McpOauthGrantMinAggregateInputType;
185
+ _max?: McpOauthGrantMaxAggregateInputType;
186
+ };
187
+ export type McpOauthGrantGroupByOutputType = {
188
+ id: string;
189
+ userId: string;
190
+ clientId: string;
191
+ redirectUri: string;
192
+ resource: string;
193
+ scope: string;
194
+ codeChallenge: string;
195
+ codeHash: string | null;
196
+ codeExpiresAt: Date | null;
197
+ codeConsumedAt: Date | null;
198
+ refreshHash: string | null;
199
+ refreshExpiresAt: Date | null;
200
+ familyId: string;
201
+ revokedAt: Date | null;
202
+ createdAt: Date;
203
+ updatedAt: Date;
204
+ _count: McpOauthGrantCountAggregateOutputType | null;
205
+ _min: McpOauthGrantMinAggregateOutputType | null;
206
+ _max: McpOauthGrantMaxAggregateOutputType | null;
207
+ };
208
+ export type GetMcpOauthGrantGroupByPayload<T extends McpOauthGrantGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<McpOauthGrantGroupByOutputType, T['by']> & {
209
+ [P in ((keyof T) & (keyof McpOauthGrantGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], McpOauthGrantGroupByOutputType[P]> : Prisma.GetScalarType<T[P], McpOauthGrantGroupByOutputType[P]>;
210
+ }>>;
211
+ export type McpOauthGrantWhereInput = {
212
+ AND?: Prisma.McpOauthGrantWhereInput | Prisma.McpOauthGrantWhereInput[];
213
+ OR?: Prisma.McpOauthGrantWhereInput[];
214
+ NOT?: Prisma.McpOauthGrantWhereInput | Prisma.McpOauthGrantWhereInput[];
215
+ id?: Prisma.StringFilter<"McpOauthGrant"> | string;
216
+ userId?: Prisma.StringFilter<"McpOauthGrant"> | string;
217
+ clientId?: Prisma.StringFilter<"McpOauthGrant"> | string;
218
+ redirectUri?: Prisma.StringFilter<"McpOauthGrant"> | string;
219
+ resource?: Prisma.StringFilter<"McpOauthGrant"> | string;
220
+ scope?: Prisma.StringFilter<"McpOauthGrant"> | string;
221
+ codeChallenge?: Prisma.StringFilter<"McpOauthGrant"> | string;
222
+ codeHash?: Prisma.StringNullableFilter<"McpOauthGrant"> | string | null;
223
+ codeExpiresAt?: Prisma.DateTimeNullableFilter<"McpOauthGrant"> | Date | string | null;
224
+ codeConsumedAt?: Prisma.DateTimeNullableFilter<"McpOauthGrant"> | Date | string | null;
225
+ refreshHash?: Prisma.StringNullableFilter<"McpOauthGrant"> | string | null;
226
+ refreshExpiresAt?: Prisma.DateTimeNullableFilter<"McpOauthGrant"> | Date | string | null;
227
+ familyId?: Prisma.StringFilter<"McpOauthGrant"> | string;
228
+ revokedAt?: Prisma.DateTimeNullableFilter<"McpOauthGrant"> | Date | string | null;
229
+ createdAt?: Prisma.DateTimeFilter<"McpOauthGrant"> | Date | string;
230
+ updatedAt?: Prisma.DateTimeFilter<"McpOauthGrant"> | Date | string;
231
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
232
+ };
233
+ export type McpOauthGrantOrderByWithRelationInput = {
234
+ id?: Prisma.SortOrder;
235
+ userId?: Prisma.SortOrder;
236
+ clientId?: Prisma.SortOrder;
237
+ redirectUri?: Prisma.SortOrder;
238
+ resource?: Prisma.SortOrder;
239
+ scope?: Prisma.SortOrder;
240
+ codeChallenge?: Prisma.SortOrder;
241
+ codeHash?: Prisma.SortOrderInput | Prisma.SortOrder;
242
+ codeExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder;
243
+ codeConsumedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
244
+ refreshHash?: Prisma.SortOrderInput | Prisma.SortOrder;
245
+ refreshExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder;
246
+ familyId?: Prisma.SortOrder;
247
+ revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
248
+ createdAt?: Prisma.SortOrder;
249
+ updatedAt?: Prisma.SortOrder;
250
+ user?: Prisma.UserOrderByWithRelationInput;
251
+ _relevance?: Prisma.McpOauthGrantOrderByRelevanceInput;
252
+ };
253
+ export type McpOauthGrantWhereUniqueInput = Prisma.AtLeast<{
254
+ id?: string;
255
+ codeHash?: string;
256
+ refreshHash?: string;
257
+ AND?: Prisma.McpOauthGrantWhereInput | Prisma.McpOauthGrantWhereInput[];
258
+ OR?: Prisma.McpOauthGrantWhereInput[];
259
+ NOT?: Prisma.McpOauthGrantWhereInput | Prisma.McpOauthGrantWhereInput[];
260
+ userId?: Prisma.StringFilter<"McpOauthGrant"> | string;
261
+ clientId?: Prisma.StringFilter<"McpOauthGrant"> | string;
262
+ redirectUri?: Prisma.StringFilter<"McpOauthGrant"> | string;
263
+ resource?: Prisma.StringFilter<"McpOauthGrant"> | string;
264
+ scope?: Prisma.StringFilter<"McpOauthGrant"> | string;
265
+ codeChallenge?: Prisma.StringFilter<"McpOauthGrant"> | string;
266
+ codeExpiresAt?: Prisma.DateTimeNullableFilter<"McpOauthGrant"> | Date | string | null;
267
+ codeConsumedAt?: Prisma.DateTimeNullableFilter<"McpOauthGrant"> | Date | string | null;
268
+ refreshExpiresAt?: Prisma.DateTimeNullableFilter<"McpOauthGrant"> | Date | string | null;
269
+ familyId?: Prisma.StringFilter<"McpOauthGrant"> | string;
270
+ revokedAt?: Prisma.DateTimeNullableFilter<"McpOauthGrant"> | Date | string | null;
271
+ createdAt?: Prisma.DateTimeFilter<"McpOauthGrant"> | Date | string;
272
+ updatedAt?: Prisma.DateTimeFilter<"McpOauthGrant"> | Date | string;
273
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
274
+ }, "id" | "codeHash" | "refreshHash">;
275
+ export type McpOauthGrantOrderByWithAggregationInput = {
276
+ id?: Prisma.SortOrder;
277
+ userId?: Prisma.SortOrder;
278
+ clientId?: Prisma.SortOrder;
279
+ redirectUri?: Prisma.SortOrder;
280
+ resource?: Prisma.SortOrder;
281
+ scope?: Prisma.SortOrder;
282
+ codeChallenge?: Prisma.SortOrder;
283
+ codeHash?: Prisma.SortOrderInput | Prisma.SortOrder;
284
+ codeExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder;
285
+ codeConsumedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
286
+ refreshHash?: Prisma.SortOrderInput | Prisma.SortOrder;
287
+ refreshExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder;
288
+ familyId?: Prisma.SortOrder;
289
+ revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
290
+ createdAt?: Prisma.SortOrder;
291
+ updatedAt?: Prisma.SortOrder;
292
+ _count?: Prisma.McpOauthGrantCountOrderByAggregateInput;
293
+ _max?: Prisma.McpOauthGrantMaxOrderByAggregateInput;
294
+ _min?: Prisma.McpOauthGrantMinOrderByAggregateInput;
295
+ };
296
+ export type McpOauthGrantScalarWhereWithAggregatesInput = {
297
+ AND?: Prisma.McpOauthGrantScalarWhereWithAggregatesInput | Prisma.McpOauthGrantScalarWhereWithAggregatesInput[];
298
+ OR?: Prisma.McpOauthGrantScalarWhereWithAggregatesInput[];
299
+ NOT?: Prisma.McpOauthGrantScalarWhereWithAggregatesInput | Prisma.McpOauthGrantScalarWhereWithAggregatesInput[];
300
+ id?: Prisma.StringWithAggregatesFilter<"McpOauthGrant"> | string;
301
+ userId?: Prisma.StringWithAggregatesFilter<"McpOauthGrant"> | string;
302
+ clientId?: Prisma.StringWithAggregatesFilter<"McpOauthGrant"> | string;
303
+ redirectUri?: Prisma.StringWithAggregatesFilter<"McpOauthGrant"> | string;
304
+ resource?: Prisma.StringWithAggregatesFilter<"McpOauthGrant"> | string;
305
+ scope?: Prisma.StringWithAggregatesFilter<"McpOauthGrant"> | string;
306
+ codeChallenge?: Prisma.StringWithAggregatesFilter<"McpOauthGrant"> | string;
307
+ codeHash?: Prisma.StringNullableWithAggregatesFilter<"McpOauthGrant"> | string | null;
308
+ codeExpiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"McpOauthGrant"> | Date | string | null;
309
+ codeConsumedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"McpOauthGrant"> | Date | string | null;
310
+ refreshHash?: Prisma.StringNullableWithAggregatesFilter<"McpOauthGrant"> | string | null;
311
+ refreshExpiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"McpOauthGrant"> | Date | string | null;
312
+ familyId?: Prisma.StringWithAggregatesFilter<"McpOauthGrant"> | string;
313
+ revokedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"McpOauthGrant"> | Date | string | null;
314
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"McpOauthGrant"> | Date | string;
315
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"McpOauthGrant"> | Date | string;
316
+ };
317
+ export type McpOauthGrantCreateInput = {
318
+ id?: string;
319
+ clientId: string;
320
+ redirectUri: string;
321
+ resource: string;
322
+ scope: string;
323
+ codeChallenge: string;
324
+ codeHash?: string | null;
325
+ codeExpiresAt?: Date | string | null;
326
+ codeConsumedAt?: Date | string | null;
327
+ refreshHash?: string | null;
328
+ refreshExpiresAt?: Date | string | null;
329
+ familyId: string;
330
+ revokedAt?: Date | string | null;
331
+ createdAt?: Date | string;
332
+ updatedAt?: Date | string;
333
+ user: Prisma.UserCreateNestedOneWithoutMcpOauthGrantsInput;
334
+ };
335
+ export type McpOauthGrantUncheckedCreateInput = {
336
+ id?: string;
337
+ userId: string;
338
+ clientId: string;
339
+ redirectUri: string;
340
+ resource: string;
341
+ scope: string;
342
+ codeChallenge: string;
343
+ codeHash?: string | null;
344
+ codeExpiresAt?: Date | string | null;
345
+ codeConsumedAt?: Date | string | null;
346
+ refreshHash?: string | null;
347
+ refreshExpiresAt?: Date | string | null;
348
+ familyId: string;
349
+ revokedAt?: Date | string | null;
350
+ createdAt?: Date | string;
351
+ updatedAt?: Date | string;
352
+ };
353
+ export type McpOauthGrantUpdateInput = {
354
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
355
+ clientId?: Prisma.StringFieldUpdateOperationsInput | string;
356
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
357
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
358
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
359
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
360
+ codeHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
361
+ codeExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
362
+ codeConsumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
363
+ refreshHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
364
+ refreshExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
365
+ familyId?: Prisma.StringFieldUpdateOperationsInput | string;
366
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
367
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
368
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
369
+ user?: Prisma.UserUpdateOneRequiredWithoutMcpOauthGrantsNestedInput;
370
+ };
371
+ export type McpOauthGrantUncheckedUpdateInput = {
372
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
373
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
374
+ clientId?: Prisma.StringFieldUpdateOperationsInput | string;
375
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
376
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
377
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
378
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
379
+ codeHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
380
+ codeExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
381
+ codeConsumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
382
+ refreshHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
383
+ refreshExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
384
+ familyId?: Prisma.StringFieldUpdateOperationsInput | string;
385
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
386
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
387
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
388
+ };
389
+ export type McpOauthGrantCreateManyInput = {
390
+ id?: string;
391
+ userId: string;
392
+ clientId: string;
393
+ redirectUri: string;
394
+ resource: string;
395
+ scope: string;
396
+ codeChallenge: string;
397
+ codeHash?: string | null;
398
+ codeExpiresAt?: Date | string | null;
399
+ codeConsumedAt?: Date | string | null;
400
+ refreshHash?: string | null;
401
+ refreshExpiresAt?: Date | string | null;
402
+ familyId: string;
403
+ revokedAt?: Date | string | null;
404
+ createdAt?: Date | string;
405
+ updatedAt?: Date | string;
406
+ };
407
+ export type McpOauthGrantUpdateManyMutationInput = {
408
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
409
+ clientId?: Prisma.StringFieldUpdateOperationsInput | string;
410
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
411
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
412
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
413
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
414
+ codeHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
415
+ codeExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
416
+ codeConsumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
417
+ refreshHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
418
+ refreshExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
419
+ familyId?: Prisma.StringFieldUpdateOperationsInput | string;
420
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
421
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
422
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
423
+ };
424
+ export type McpOauthGrantUncheckedUpdateManyInput = {
425
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
426
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
427
+ clientId?: Prisma.StringFieldUpdateOperationsInput | string;
428
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
429
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
430
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
431
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
432
+ codeHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
433
+ codeExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
434
+ codeConsumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
435
+ refreshHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
436
+ refreshExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
437
+ familyId?: Prisma.StringFieldUpdateOperationsInput | string;
438
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
439
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
440
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
441
+ };
442
+ export type McpOauthGrantListRelationFilter = {
443
+ every?: Prisma.McpOauthGrantWhereInput;
444
+ some?: Prisma.McpOauthGrantWhereInput;
445
+ none?: Prisma.McpOauthGrantWhereInput;
446
+ };
447
+ export type McpOauthGrantOrderByRelationAggregateInput = {
448
+ _count?: Prisma.SortOrder;
449
+ };
450
+ export type McpOauthGrantOrderByRelevanceInput = {
451
+ fields: Prisma.McpOauthGrantOrderByRelevanceFieldEnum | Prisma.McpOauthGrantOrderByRelevanceFieldEnum[];
452
+ sort: Prisma.SortOrder;
453
+ search: string;
454
+ };
455
+ export type McpOauthGrantCountOrderByAggregateInput = {
456
+ id?: Prisma.SortOrder;
457
+ userId?: Prisma.SortOrder;
458
+ clientId?: Prisma.SortOrder;
459
+ redirectUri?: Prisma.SortOrder;
460
+ resource?: Prisma.SortOrder;
461
+ scope?: Prisma.SortOrder;
462
+ codeChallenge?: Prisma.SortOrder;
463
+ codeHash?: Prisma.SortOrder;
464
+ codeExpiresAt?: Prisma.SortOrder;
465
+ codeConsumedAt?: Prisma.SortOrder;
466
+ refreshHash?: Prisma.SortOrder;
467
+ refreshExpiresAt?: Prisma.SortOrder;
468
+ familyId?: Prisma.SortOrder;
469
+ revokedAt?: Prisma.SortOrder;
470
+ createdAt?: Prisma.SortOrder;
471
+ updatedAt?: Prisma.SortOrder;
472
+ };
473
+ export type McpOauthGrantMaxOrderByAggregateInput = {
474
+ id?: Prisma.SortOrder;
475
+ userId?: Prisma.SortOrder;
476
+ clientId?: Prisma.SortOrder;
477
+ redirectUri?: Prisma.SortOrder;
478
+ resource?: Prisma.SortOrder;
479
+ scope?: Prisma.SortOrder;
480
+ codeChallenge?: Prisma.SortOrder;
481
+ codeHash?: Prisma.SortOrder;
482
+ codeExpiresAt?: Prisma.SortOrder;
483
+ codeConsumedAt?: Prisma.SortOrder;
484
+ refreshHash?: Prisma.SortOrder;
485
+ refreshExpiresAt?: Prisma.SortOrder;
486
+ familyId?: Prisma.SortOrder;
487
+ revokedAt?: Prisma.SortOrder;
488
+ createdAt?: Prisma.SortOrder;
489
+ updatedAt?: Prisma.SortOrder;
490
+ };
491
+ export type McpOauthGrantMinOrderByAggregateInput = {
492
+ id?: Prisma.SortOrder;
493
+ userId?: Prisma.SortOrder;
494
+ clientId?: Prisma.SortOrder;
495
+ redirectUri?: Prisma.SortOrder;
496
+ resource?: Prisma.SortOrder;
497
+ scope?: Prisma.SortOrder;
498
+ codeChallenge?: Prisma.SortOrder;
499
+ codeHash?: Prisma.SortOrder;
500
+ codeExpiresAt?: Prisma.SortOrder;
501
+ codeConsumedAt?: Prisma.SortOrder;
502
+ refreshHash?: Prisma.SortOrder;
503
+ refreshExpiresAt?: Prisma.SortOrder;
504
+ familyId?: Prisma.SortOrder;
505
+ revokedAt?: Prisma.SortOrder;
506
+ createdAt?: Prisma.SortOrder;
507
+ updatedAt?: Prisma.SortOrder;
508
+ };
509
+ export type McpOauthGrantCreateNestedManyWithoutUserInput = {
510
+ create?: Prisma.XOR<Prisma.McpOauthGrantCreateWithoutUserInput, Prisma.McpOauthGrantUncheckedCreateWithoutUserInput> | Prisma.McpOauthGrantCreateWithoutUserInput[] | Prisma.McpOauthGrantUncheckedCreateWithoutUserInput[];
511
+ connectOrCreate?: Prisma.McpOauthGrantCreateOrConnectWithoutUserInput | Prisma.McpOauthGrantCreateOrConnectWithoutUserInput[];
512
+ createMany?: Prisma.McpOauthGrantCreateManyUserInputEnvelope;
513
+ connect?: Prisma.McpOauthGrantWhereUniqueInput | Prisma.McpOauthGrantWhereUniqueInput[];
514
+ };
515
+ export type McpOauthGrantUncheckedCreateNestedManyWithoutUserInput = {
516
+ create?: Prisma.XOR<Prisma.McpOauthGrantCreateWithoutUserInput, Prisma.McpOauthGrantUncheckedCreateWithoutUserInput> | Prisma.McpOauthGrantCreateWithoutUserInput[] | Prisma.McpOauthGrantUncheckedCreateWithoutUserInput[];
517
+ connectOrCreate?: Prisma.McpOauthGrantCreateOrConnectWithoutUserInput | Prisma.McpOauthGrantCreateOrConnectWithoutUserInput[];
518
+ createMany?: Prisma.McpOauthGrantCreateManyUserInputEnvelope;
519
+ connect?: Prisma.McpOauthGrantWhereUniqueInput | Prisma.McpOauthGrantWhereUniqueInput[];
520
+ };
521
+ export type McpOauthGrantUpdateManyWithoutUserNestedInput = {
522
+ create?: Prisma.XOR<Prisma.McpOauthGrantCreateWithoutUserInput, Prisma.McpOauthGrantUncheckedCreateWithoutUserInput> | Prisma.McpOauthGrantCreateWithoutUserInput[] | Prisma.McpOauthGrantUncheckedCreateWithoutUserInput[];
523
+ connectOrCreate?: Prisma.McpOauthGrantCreateOrConnectWithoutUserInput | Prisma.McpOauthGrantCreateOrConnectWithoutUserInput[];
524
+ upsert?: Prisma.McpOauthGrantUpsertWithWhereUniqueWithoutUserInput | Prisma.McpOauthGrantUpsertWithWhereUniqueWithoutUserInput[];
525
+ createMany?: Prisma.McpOauthGrantCreateManyUserInputEnvelope;
526
+ set?: Prisma.McpOauthGrantWhereUniqueInput | Prisma.McpOauthGrantWhereUniqueInput[];
527
+ disconnect?: Prisma.McpOauthGrantWhereUniqueInput | Prisma.McpOauthGrantWhereUniqueInput[];
528
+ delete?: Prisma.McpOauthGrantWhereUniqueInput | Prisma.McpOauthGrantWhereUniqueInput[];
529
+ connect?: Prisma.McpOauthGrantWhereUniqueInput | Prisma.McpOauthGrantWhereUniqueInput[];
530
+ update?: Prisma.McpOauthGrantUpdateWithWhereUniqueWithoutUserInput | Prisma.McpOauthGrantUpdateWithWhereUniqueWithoutUserInput[];
531
+ updateMany?: Prisma.McpOauthGrantUpdateManyWithWhereWithoutUserInput | Prisma.McpOauthGrantUpdateManyWithWhereWithoutUserInput[];
532
+ deleteMany?: Prisma.McpOauthGrantScalarWhereInput | Prisma.McpOauthGrantScalarWhereInput[];
533
+ };
534
+ export type McpOauthGrantUncheckedUpdateManyWithoutUserNestedInput = {
535
+ create?: Prisma.XOR<Prisma.McpOauthGrantCreateWithoutUserInput, Prisma.McpOauthGrantUncheckedCreateWithoutUserInput> | Prisma.McpOauthGrantCreateWithoutUserInput[] | Prisma.McpOauthGrantUncheckedCreateWithoutUserInput[];
536
+ connectOrCreate?: Prisma.McpOauthGrantCreateOrConnectWithoutUserInput | Prisma.McpOauthGrantCreateOrConnectWithoutUserInput[];
537
+ upsert?: Prisma.McpOauthGrantUpsertWithWhereUniqueWithoutUserInput | Prisma.McpOauthGrantUpsertWithWhereUniqueWithoutUserInput[];
538
+ createMany?: Prisma.McpOauthGrantCreateManyUserInputEnvelope;
539
+ set?: Prisma.McpOauthGrantWhereUniqueInput | Prisma.McpOauthGrantWhereUniqueInput[];
540
+ disconnect?: Prisma.McpOauthGrantWhereUniqueInput | Prisma.McpOauthGrantWhereUniqueInput[];
541
+ delete?: Prisma.McpOauthGrantWhereUniqueInput | Prisma.McpOauthGrantWhereUniqueInput[];
542
+ connect?: Prisma.McpOauthGrantWhereUniqueInput | Prisma.McpOauthGrantWhereUniqueInput[];
543
+ update?: Prisma.McpOauthGrantUpdateWithWhereUniqueWithoutUserInput | Prisma.McpOauthGrantUpdateWithWhereUniqueWithoutUserInput[];
544
+ updateMany?: Prisma.McpOauthGrantUpdateManyWithWhereWithoutUserInput | Prisma.McpOauthGrantUpdateManyWithWhereWithoutUserInput[];
545
+ deleteMany?: Prisma.McpOauthGrantScalarWhereInput | Prisma.McpOauthGrantScalarWhereInput[];
546
+ };
547
+ export type McpOauthGrantCreateWithoutUserInput = {
548
+ id?: string;
549
+ clientId: string;
550
+ redirectUri: string;
551
+ resource: string;
552
+ scope: string;
553
+ codeChallenge: string;
554
+ codeHash?: string | null;
555
+ codeExpiresAt?: Date | string | null;
556
+ codeConsumedAt?: Date | string | null;
557
+ refreshHash?: string | null;
558
+ refreshExpiresAt?: Date | string | null;
559
+ familyId: string;
560
+ revokedAt?: Date | string | null;
561
+ createdAt?: Date | string;
562
+ updatedAt?: Date | string;
563
+ };
564
+ export type McpOauthGrantUncheckedCreateWithoutUserInput = {
565
+ id?: string;
566
+ clientId: string;
567
+ redirectUri: string;
568
+ resource: string;
569
+ scope: string;
570
+ codeChallenge: string;
571
+ codeHash?: string | null;
572
+ codeExpiresAt?: Date | string | null;
573
+ codeConsumedAt?: Date | string | null;
574
+ refreshHash?: string | null;
575
+ refreshExpiresAt?: Date | string | null;
576
+ familyId: string;
577
+ revokedAt?: Date | string | null;
578
+ createdAt?: Date | string;
579
+ updatedAt?: Date | string;
580
+ };
581
+ export type McpOauthGrantCreateOrConnectWithoutUserInput = {
582
+ where: Prisma.McpOauthGrantWhereUniqueInput;
583
+ create: Prisma.XOR<Prisma.McpOauthGrantCreateWithoutUserInput, Prisma.McpOauthGrantUncheckedCreateWithoutUserInput>;
584
+ };
585
+ export type McpOauthGrantCreateManyUserInputEnvelope = {
586
+ data: Prisma.McpOauthGrantCreateManyUserInput | Prisma.McpOauthGrantCreateManyUserInput[];
587
+ skipDuplicates?: boolean;
588
+ };
589
+ export type McpOauthGrantUpsertWithWhereUniqueWithoutUserInput = {
590
+ where: Prisma.McpOauthGrantWhereUniqueInput;
591
+ update: Prisma.XOR<Prisma.McpOauthGrantUpdateWithoutUserInput, Prisma.McpOauthGrantUncheckedUpdateWithoutUserInput>;
592
+ create: Prisma.XOR<Prisma.McpOauthGrantCreateWithoutUserInput, Prisma.McpOauthGrantUncheckedCreateWithoutUserInput>;
593
+ };
594
+ export type McpOauthGrantUpdateWithWhereUniqueWithoutUserInput = {
595
+ where: Prisma.McpOauthGrantWhereUniqueInput;
596
+ data: Prisma.XOR<Prisma.McpOauthGrantUpdateWithoutUserInput, Prisma.McpOauthGrantUncheckedUpdateWithoutUserInput>;
597
+ };
598
+ export type McpOauthGrantUpdateManyWithWhereWithoutUserInput = {
599
+ where: Prisma.McpOauthGrantScalarWhereInput;
600
+ data: Prisma.XOR<Prisma.McpOauthGrantUpdateManyMutationInput, Prisma.McpOauthGrantUncheckedUpdateManyWithoutUserInput>;
601
+ };
602
+ export type McpOauthGrantScalarWhereInput = {
603
+ AND?: Prisma.McpOauthGrantScalarWhereInput | Prisma.McpOauthGrantScalarWhereInput[];
604
+ OR?: Prisma.McpOauthGrantScalarWhereInput[];
605
+ NOT?: Prisma.McpOauthGrantScalarWhereInput | Prisma.McpOauthGrantScalarWhereInput[];
606
+ id?: Prisma.StringFilter<"McpOauthGrant"> | string;
607
+ userId?: Prisma.StringFilter<"McpOauthGrant"> | string;
608
+ clientId?: Prisma.StringFilter<"McpOauthGrant"> | string;
609
+ redirectUri?: Prisma.StringFilter<"McpOauthGrant"> | string;
610
+ resource?: Prisma.StringFilter<"McpOauthGrant"> | string;
611
+ scope?: Prisma.StringFilter<"McpOauthGrant"> | string;
612
+ codeChallenge?: Prisma.StringFilter<"McpOauthGrant"> | string;
613
+ codeHash?: Prisma.StringNullableFilter<"McpOauthGrant"> | string | null;
614
+ codeExpiresAt?: Prisma.DateTimeNullableFilter<"McpOauthGrant"> | Date | string | null;
615
+ codeConsumedAt?: Prisma.DateTimeNullableFilter<"McpOauthGrant"> | Date | string | null;
616
+ refreshHash?: Prisma.StringNullableFilter<"McpOauthGrant"> | string | null;
617
+ refreshExpiresAt?: Prisma.DateTimeNullableFilter<"McpOauthGrant"> | Date | string | null;
618
+ familyId?: Prisma.StringFilter<"McpOauthGrant"> | string;
619
+ revokedAt?: Prisma.DateTimeNullableFilter<"McpOauthGrant"> | Date | string | null;
620
+ createdAt?: Prisma.DateTimeFilter<"McpOauthGrant"> | Date | string;
621
+ updatedAt?: Prisma.DateTimeFilter<"McpOauthGrant"> | Date | string;
622
+ };
623
+ export type McpOauthGrantCreateManyUserInput = {
624
+ id?: string;
625
+ clientId: string;
626
+ redirectUri: string;
627
+ resource: string;
628
+ scope: string;
629
+ codeChallenge: string;
630
+ codeHash?: string | null;
631
+ codeExpiresAt?: Date | string | null;
632
+ codeConsumedAt?: Date | string | null;
633
+ refreshHash?: string | null;
634
+ refreshExpiresAt?: Date | string | null;
635
+ familyId: string;
636
+ revokedAt?: Date | string | null;
637
+ createdAt?: Date | string;
638
+ updatedAt?: Date | string;
639
+ };
640
+ export type McpOauthGrantUpdateWithoutUserInput = {
641
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
642
+ clientId?: Prisma.StringFieldUpdateOperationsInput | string;
643
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
644
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
645
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
646
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
647
+ codeHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
648
+ codeExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
649
+ codeConsumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
650
+ refreshHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
651
+ refreshExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
652
+ familyId?: Prisma.StringFieldUpdateOperationsInput | string;
653
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
654
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
655
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
656
+ };
657
+ export type McpOauthGrantUncheckedUpdateWithoutUserInput = {
658
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
659
+ clientId?: Prisma.StringFieldUpdateOperationsInput | string;
660
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
661
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
662
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
663
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
664
+ codeHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
665
+ codeExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
666
+ codeConsumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
667
+ refreshHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
668
+ refreshExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
669
+ familyId?: Prisma.StringFieldUpdateOperationsInput | string;
670
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
671
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
672
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
673
+ };
674
+ export type McpOauthGrantUncheckedUpdateManyWithoutUserInput = {
675
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
676
+ clientId?: Prisma.StringFieldUpdateOperationsInput | string;
677
+ redirectUri?: Prisma.StringFieldUpdateOperationsInput | string;
678
+ resource?: Prisma.StringFieldUpdateOperationsInput | string;
679
+ scope?: Prisma.StringFieldUpdateOperationsInput | string;
680
+ codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string;
681
+ codeHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
682
+ codeExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
683
+ codeConsumedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
684
+ refreshHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
685
+ refreshExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
686
+ familyId?: Prisma.StringFieldUpdateOperationsInput | string;
687
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
688
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
689
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
690
+ };
691
+ export type McpOauthGrantSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
692
+ id?: boolean;
693
+ userId?: boolean;
694
+ clientId?: boolean;
695
+ redirectUri?: boolean;
696
+ resource?: boolean;
697
+ scope?: boolean;
698
+ codeChallenge?: boolean;
699
+ codeHash?: boolean;
700
+ codeExpiresAt?: boolean;
701
+ codeConsumedAt?: boolean;
702
+ refreshHash?: boolean;
703
+ refreshExpiresAt?: boolean;
704
+ familyId?: boolean;
705
+ revokedAt?: boolean;
706
+ createdAt?: boolean;
707
+ updatedAt?: boolean;
708
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
709
+ }, ExtArgs["result"]["mcpOauthGrant"]>;
710
+ export type McpOauthGrantSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
711
+ id?: boolean;
712
+ userId?: boolean;
713
+ clientId?: boolean;
714
+ redirectUri?: boolean;
715
+ resource?: boolean;
716
+ scope?: boolean;
717
+ codeChallenge?: boolean;
718
+ codeHash?: boolean;
719
+ codeExpiresAt?: boolean;
720
+ codeConsumedAt?: boolean;
721
+ refreshHash?: boolean;
722
+ refreshExpiresAt?: boolean;
723
+ familyId?: boolean;
724
+ revokedAt?: boolean;
725
+ createdAt?: boolean;
726
+ updatedAt?: boolean;
727
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
728
+ }, ExtArgs["result"]["mcpOauthGrant"]>;
729
+ export type McpOauthGrantSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
730
+ id?: boolean;
731
+ userId?: boolean;
732
+ clientId?: boolean;
733
+ redirectUri?: boolean;
734
+ resource?: boolean;
735
+ scope?: boolean;
736
+ codeChallenge?: boolean;
737
+ codeHash?: boolean;
738
+ codeExpiresAt?: boolean;
739
+ codeConsumedAt?: boolean;
740
+ refreshHash?: boolean;
741
+ refreshExpiresAt?: boolean;
742
+ familyId?: boolean;
743
+ revokedAt?: boolean;
744
+ createdAt?: boolean;
745
+ updatedAt?: boolean;
746
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
747
+ }, ExtArgs["result"]["mcpOauthGrant"]>;
748
+ export type McpOauthGrantSelectScalar = {
749
+ id?: boolean;
750
+ userId?: boolean;
751
+ clientId?: boolean;
752
+ redirectUri?: boolean;
753
+ resource?: boolean;
754
+ scope?: boolean;
755
+ codeChallenge?: boolean;
756
+ codeHash?: boolean;
757
+ codeExpiresAt?: boolean;
758
+ codeConsumedAt?: boolean;
759
+ refreshHash?: boolean;
760
+ refreshExpiresAt?: boolean;
761
+ familyId?: boolean;
762
+ revokedAt?: boolean;
763
+ createdAt?: boolean;
764
+ updatedAt?: boolean;
765
+ };
766
+ export type McpOauthGrantOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "clientId" | "redirectUri" | "resource" | "scope" | "codeChallenge" | "codeHash" | "codeExpiresAt" | "codeConsumedAt" | "refreshHash" | "refreshExpiresAt" | "familyId" | "revokedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["mcpOauthGrant"]>;
767
+ export type McpOauthGrantInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
768
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
769
+ };
770
+ export type McpOauthGrantIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
771
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
772
+ };
773
+ export type McpOauthGrantIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
774
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
775
+ };
776
+ export type $McpOauthGrantPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
777
+ name: "McpOauthGrant";
778
+ objects: {
779
+ user: Prisma.$UserPayload<ExtArgs>;
780
+ };
781
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
782
+ id: string;
783
+ userId: string;
784
+ clientId: string;
785
+ redirectUri: string;
786
+ resource: string;
787
+ scope: string;
788
+ codeChallenge: string;
789
+ codeHash: string | null;
790
+ codeExpiresAt: Date | null;
791
+ codeConsumedAt: Date | null;
792
+ refreshHash: string | null;
793
+ refreshExpiresAt: Date | null;
794
+ familyId: string;
795
+ revokedAt: Date | null;
796
+ createdAt: Date;
797
+ updatedAt: Date;
798
+ }, ExtArgs["result"]["mcpOauthGrant"]>;
799
+ composites: {};
800
+ };
801
+ export type McpOauthGrantGetPayload<S extends boolean | null | undefined | McpOauthGrantDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$McpOauthGrantPayload, S>;
802
+ export type McpOauthGrantCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<McpOauthGrantFindManyArgs, 'select' | 'include' | 'distinct' | 'omit' | 'relationLoadStrategy'> & {
803
+ select?: McpOauthGrantCountAggregateInputType | true;
804
+ };
805
+ export interface McpOauthGrantDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
806
+ [K: symbol]: {
807
+ types: Prisma.TypeMap<ExtArgs>['model']['McpOauthGrant'];
808
+ meta: {
809
+ name: 'McpOauthGrant';
810
+ };
811
+ };
812
+ /**
813
+ * Find zero or one McpOauthGrant that matches the filter.
814
+ * @param {McpOauthGrantFindUniqueArgs} args - Arguments to find a McpOauthGrant
815
+ * @example
816
+ * // Get one McpOauthGrant
817
+ * const mcpOauthGrant = await prisma.mcpOauthGrant.findUnique({
818
+ * where: {
819
+ * // ... provide filter here
820
+ * }
821
+ * })
822
+ */
823
+ findUnique<T extends McpOauthGrantFindUniqueArgs>(args: Prisma.SelectSubset<T, McpOauthGrantFindUniqueArgs<ExtArgs>>): Prisma.Prisma__McpOauthGrantClient<runtime.Types.Result.GetResult<Prisma.$McpOauthGrantPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
824
+ /**
825
+ * Find one McpOauthGrant that matches the filter or throw an error with `error.code='P2025'`
826
+ * if no matches were found.
827
+ * @param {McpOauthGrantFindUniqueOrThrowArgs} args - Arguments to find a McpOauthGrant
828
+ * @example
829
+ * // Get one McpOauthGrant
830
+ * const mcpOauthGrant = await prisma.mcpOauthGrant.findUniqueOrThrow({
831
+ * where: {
832
+ * // ... provide filter here
833
+ * }
834
+ * })
835
+ */
836
+ findUniqueOrThrow<T extends McpOauthGrantFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, McpOauthGrantFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__McpOauthGrantClient<runtime.Types.Result.GetResult<Prisma.$McpOauthGrantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
837
+ /**
838
+ * Find the first McpOauthGrant that matches the filter.
839
+ * Note, that providing `undefined` is treated as the value not being there.
840
+ * Read more here: https://pris.ly/d/null-undefined
841
+ * @param {McpOauthGrantFindFirstArgs} args - Arguments to find a McpOauthGrant
842
+ * @example
843
+ * // Get one McpOauthGrant
844
+ * const mcpOauthGrant = await prisma.mcpOauthGrant.findFirst({
845
+ * where: {
846
+ * // ... provide filter here
847
+ * }
848
+ * })
849
+ */
850
+ findFirst<T extends McpOauthGrantFindFirstArgs>(args?: Prisma.SelectSubset<T, McpOauthGrantFindFirstArgs<ExtArgs>>): Prisma.Prisma__McpOauthGrantClient<runtime.Types.Result.GetResult<Prisma.$McpOauthGrantPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
851
+ /**
852
+ * Find the first McpOauthGrant that matches the filter or
853
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
854
+ * Note, that providing `undefined` is treated as the value not being there.
855
+ * Read more here: https://pris.ly/d/null-undefined
856
+ * @param {McpOauthGrantFindFirstOrThrowArgs} args - Arguments to find a McpOauthGrant
857
+ * @example
858
+ * // Get one McpOauthGrant
859
+ * const mcpOauthGrant = await prisma.mcpOauthGrant.findFirstOrThrow({
860
+ * where: {
861
+ * // ... provide filter here
862
+ * }
863
+ * })
864
+ */
865
+ findFirstOrThrow<T extends McpOauthGrantFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, McpOauthGrantFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__McpOauthGrantClient<runtime.Types.Result.GetResult<Prisma.$McpOauthGrantPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
866
+ /**
867
+ * Find zero or more McpOauthGrants that matches the filter.
868
+ * Note, that providing `undefined` is treated as the value not being there.
869
+ * Read more here: https://pris.ly/d/null-undefined
870
+ * @param {McpOauthGrantFindManyArgs} args - Arguments to filter and select certain fields only.
871
+ * @example
872
+ * // Get all McpOauthGrants
873
+ * const mcpOauthGrants = await prisma.mcpOauthGrant.findMany()
874
+ *
875
+ * // Get first 10 McpOauthGrants
876
+ * const mcpOauthGrants = await prisma.mcpOauthGrant.findMany({ take: 10 })
877
+ *
878
+ * // Only select the `id`
879
+ * const mcpOauthGrantWithIdOnly = await prisma.mcpOauthGrant.findMany({ select: { id: true } })
880
+ *
881
+ */
882
+ findMany<T extends McpOauthGrantFindManyArgs>(args?: Prisma.SelectSubset<T, McpOauthGrantFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpOauthGrantPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
883
+ /**
884
+ * Create a McpOauthGrant.
885
+ * @param {McpOauthGrantCreateArgs} args - Arguments to create a McpOauthGrant.
886
+ * @example
887
+ * // Create one McpOauthGrant
888
+ * const McpOauthGrant = await prisma.mcpOauthGrant.create({
889
+ * data: {
890
+ * // ... data to create a McpOauthGrant
891
+ * }
892
+ * })
893
+ *
894
+ */
895
+ create<T extends McpOauthGrantCreateArgs>(args: Prisma.SelectSubset<T, McpOauthGrantCreateArgs<ExtArgs>>): Prisma.Prisma__McpOauthGrantClient<runtime.Types.Result.GetResult<Prisma.$McpOauthGrantPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
896
+ /**
897
+ * Create many McpOauthGrants.
898
+ * @param {McpOauthGrantCreateManyArgs} args - Arguments to create many McpOauthGrants.
899
+ * @example
900
+ * // Create many McpOauthGrants
901
+ * const mcpOauthGrant = await prisma.mcpOauthGrant.createMany({
902
+ * data: [
903
+ * // ... provide data here
904
+ * ]
905
+ * })
906
+ *
907
+ */
908
+ createMany<T extends McpOauthGrantCreateManyArgs>(args?: Prisma.SelectSubset<T, McpOauthGrantCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
909
+ /**
910
+ * Create many McpOauthGrants and returns the data saved in the database.
911
+ * @param {McpOauthGrantCreateManyAndReturnArgs} args - Arguments to create many McpOauthGrants.
912
+ * @example
913
+ * // Create many McpOauthGrants
914
+ * const mcpOauthGrant = await prisma.mcpOauthGrant.createManyAndReturn({
915
+ * data: [
916
+ * // ... provide data here
917
+ * ]
918
+ * })
919
+ *
920
+ * // Create many McpOauthGrants and only return the `id`
921
+ * const mcpOauthGrantWithIdOnly = await prisma.mcpOauthGrant.createManyAndReturn({
922
+ * select: { id: true },
923
+ * data: [
924
+ * // ... provide data here
925
+ * ]
926
+ * })
927
+ * Note, that providing `undefined` is treated as the value not being there.
928
+ * Read more here: https://pris.ly/d/null-undefined
929
+ *
930
+ */
931
+ createManyAndReturn<T extends McpOauthGrantCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, McpOauthGrantCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpOauthGrantPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
932
+ /**
933
+ * Delete a McpOauthGrant.
934
+ * @param {McpOauthGrantDeleteArgs} args - Arguments to delete one McpOauthGrant.
935
+ * @example
936
+ * // Delete one McpOauthGrant
937
+ * const McpOauthGrant = await prisma.mcpOauthGrant.delete({
938
+ * where: {
939
+ * // ... filter to delete one McpOauthGrant
940
+ * }
941
+ * })
942
+ *
943
+ */
944
+ delete<T extends McpOauthGrantDeleteArgs>(args: Prisma.SelectSubset<T, McpOauthGrantDeleteArgs<ExtArgs>>): Prisma.Prisma__McpOauthGrantClient<runtime.Types.Result.GetResult<Prisma.$McpOauthGrantPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
945
+ /**
946
+ * Update one McpOauthGrant.
947
+ * @param {McpOauthGrantUpdateArgs} args - Arguments to update one McpOauthGrant.
948
+ * @example
949
+ * // Update one McpOauthGrant
950
+ * const mcpOauthGrant = await prisma.mcpOauthGrant.update({
951
+ * where: {
952
+ * // ... provide filter here
953
+ * },
954
+ * data: {
955
+ * // ... provide data here
956
+ * }
957
+ * })
958
+ *
959
+ */
960
+ update<T extends McpOauthGrantUpdateArgs>(args: Prisma.SelectSubset<T, McpOauthGrantUpdateArgs<ExtArgs>>): Prisma.Prisma__McpOauthGrantClient<runtime.Types.Result.GetResult<Prisma.$McpOauthGrantPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
961
+ /**
962
+ * Delete zero or more McpOauthGrants.
963
+ * @param {McpOauthGrantDeleteManyArgs} args - Arguments to filter McpOauthGrants to delete.
964
+ * @example
965
+ * // Delete a few McpOauthGrants
966
+ * const { count } = await prisma.mcpOauthGrant.deleteMany({
967
+ * where: {
968
+ * // ... provide filter here
969
+ * }
970
+ * })
971
+ *
972
+ */
973
+ deleteMany<T extends McpOauthGrantDeleteManyArgs>(args?: Prisma.SelectSubset<T, McpOauthGrantDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
974
+ /**
975
+ * Update zero or more McpOauthGrants.
976
+ * Note, that providing `undefined` is treated as the value not being there.
977
+ * Read more here: https://pris.ly/d/null-undefined
978
+ * @param {McpOauthGrantUpdateManyArgs} args - Arguments to update one or more rows.
979
+ * @example
980
+ * // Update many McpOauthGrants
981
+ * const mcpOauthGrant = await prisma.mcpOauthGrant.updateMany({
982
+ * where: {
983
+ * // ... provide filter here
984
+ * },
985
+ * data: {
986
+ * // ... provide data here
987
+ * }
988
+ * })
989
+ *
990
+ */
991
+ updateMany<T extends McpOauthGrantUpdateManyArgs>(args: Prisma.SelectSubset<T, McpOauthGrantUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
992
+ /**
993
+ * Update zero or more McpOauthGrants and returns the data updated in the database.
994
+ * @param {McpOauthGrantUpdateManyAndReturnArgs} args - Arguments to update many McpOauthGrants.
995
+ * @example
996
+ * // Update many McpOauthGrants
997
+ * const mcpOauthGrant = await prisma.mcpOauthGrant.updateManyAndReturn({
998
+ * where: {
999
+ * // ... provide filter here
1000
+ * },
1001
+ * data: [
1002
+ * // ... provide data here
1003
+ * ]
1004
+ * })
1005
+ *
1006
+ * // Update zero or more McpOauthGrants and only return the `id`
1007
+ * const mcpOauthGrantWithIdOnly = await prisma.mcpOauthGrant.updateManyAndReturn({
1008
+ * select: { id: true },
1009
+ * where: {
1010
+ * // ... provide filter here
1011
+ * },
1012
+ * data: [
1013
+ * // ... provide data here
1014
+ * ]
1015
+ * })
1016
+ * Note, that providing `undefined` is treated as the value not being there.
1017
+ * Read more here: https://pris.ly/d/null-undefined
1018
+ *
1019
+ */
1020
+ updateManyAndReturn<T extends McpOauthGrantUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, McpOauthGrantUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpOauthGrantPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1021
+ /**
1022
+ * Create or update one McpOauthGrant.
1023
+ * @param {McpOauthGrantUpsertArgs} args - Arguments to update or create a McpOauthGrant.
1024
+ * @example
1025
+ * // Update or create a McpOauthGrant
1026
+ * const mcpOauthGrant = await prisma.mcpOauthGrant.upsert({
1027
+ * create: {
1028
+ * // ... data to create a McpOauthGrant
1029
+ * },
1030
+ * update: {
1031
+ * // ... in case it already exists, update
1032
+ * },
1033
+ * where: {
1034
+ * // ... the filter for the McpOauthGrant we want to update
1035
+ * }
1036
+ * })
1037
+ */
1038
+ upsert<T extends McpOauthGrantUpsertArgs>(args: Prisma.SelectSubset<T, McpOauthGrantUpsertArgs<ExtArgs>>): Prisma.Prisma__McpOauthGrantClient<runtime.Types.Result.GetResult<Prisma.$McpOauthGrantPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1039
+ /**
1040
+ * Count the number of McpOauthGrants.
1041
+ * Note, that providing `undefined` is treated as the value not being there.
1042
+ * Read more here: https://pris.ly/d/null-undefined
1043
+ * @param {McpOauthGrantCountArgs} args - Arguments to filter McpOauthGrants to count.
1044
+ * @example
1045
+ * // Count the number of McpOauthGrants
1046
+ * const count = await prisma.mcpOauthGrant.count({
1047
+ * where: {
1048
+ * // ... the filter for the McpOauthGrants we want to count
1049
+ * }
1050
+ * })
1051
+ **/
1052
+ count<T extends McpOauthGrantCountArgs>(args?: Prisma.Subset<T, McpOauthGrantCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], McpOauthGrantCountAggregateOutputType> : number>;
1053
+ /**
1054
+ * Allows you to perform aggregations operations on a McpOauthGrant.
1055
+ * Note, that providing `undefined` is treated as the value not being there.
1056
+ * Read more here: https://pris.ly/d/null-undefined
1057
+ * @param {McpOauthGrantAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1058
+ * @example
1059
+ * // Ordered by age ascending
1060
+ * // Where email contains prisma.io
1061
+ * // Limited to the 10 users
1062
+ * const aggregations = await prisma.user.aggregate({
1063
+ * _avg: {
1064
+ * age: true,
1065
+ * },
1066
+ * where: {
1067
+ * email: {
1068
+ * contains: "prisma.io",
1069
+ * },
1070
+ * },
1071
+ * orderBy: {
1072
+ * age: "asc",
1073
+ * },
1074
+ * take: 10,
1075
+ * })
1076
+ **/
1077
+ aggregate<T extends McpOauthGrantAggregateArgs>(args: Prisma.Subset<T, McpOauthGrantAggregateArgs>): Prisma.PrismaPromise<GetMcpOauthGrantAggregateType<T>>;
1078
+ /**
1079
+ * Group by McpOauthGrant.
1080
+ * Note, that providing `undefined` is treated as the value not being there.
1081
+ * Read more here: https://pris.ly/d/null-undefined
1082
+ * @param {McpOauthGrantGroupByArgs} args - Group by arguments.
1083
+ * @example
1084
+ * // Group by city, order by createdAt, get count
1085
+ * const result = await prisma.user.groupBy({
1086
+ * by: ['city', 'createdAt'],
1087
+ * orderBy: {
1088
+ * createdAt: true
1089
+ * },
1090
+ * _count: {
1091
+ * _all: true
1092
+ * },
1093
+ * })
1094
+ *
1095
+ **/
1096
+ groupBy<T extends McpOauthGrantGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1097
+ orderBy: McpOauthGrantGroupByArgs['orderBy'];
1098
+ } : {
1099
+ orderBy?: McpOauthGrantGroupByArgs['orderBy'];
1100
+ }, 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 ? {
1101
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1102
+ Error,
1103
+ 'Field ',
1104
+ P,
1105
+ ` in "having" needs to be provided in "by"`
1106
+ ];
1107
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1108
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1109
+ }[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 ? {} : {
1110
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1111
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1112
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1113
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, McpOauthGrantGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMcpOauthGrantGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1114
+ /**
1115
+ * Fields of the McpOauthGrant model
1116
+ */
1117
+ readonly fields: McpOauthGrantFieldRefs;
1118
+ }
1119
+ /**
1120
+ * The delegate class that acts as a "Promise-like" for McpOauthGrant.
1121
+ * Why is this prefixed with `Prisma__`?
1122
+ * Because we want to prevent naming conflicts as mentioned in
1123
+ * https://github.com/prisma/prisma-client-js/issues/707
1124
+ */
1125
+ export interface Prisma__McpOauthGrantClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1126
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1127
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1128
+ /**
1129
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1130
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1131
+ * @param onrejected The callback to execute when the Promise is rejected.
1132
+ * @returns A Promise for the completion of which ever callback is executed.
1133
+ */
1134
+ 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>;
1135
+ /**
1136
+ * Attaches a callback for only the rejection of the Promise.
1137
+ * @param onrejected The callback to execute when the Promise is rejected.
1138
+ * @returns A Promise for the completion of the callback.
1139
+ */
1140
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1141
+ /**
1142
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1143
+ * resolved value cannot be modified from the callback.
1144
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1145
+ * @returns A Promise for the completion of the callback.
1146
+ */
1147
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1148
+ }
1149
+ /**
1150
+ * Fields of the McpOauthGrant model
1151
+ */
1152
+ export interface McpOauthGrantFieldRefs {
1153
+ readonly id: Prisma.FieldRef<"McpOauthGrant", 'String'>;
1154
+ readonly userId: Prisma.FieldRef<"McpOauthGrant", 'String'>;
1155
+ readonly clientId: Prisma.FieldRef<"McpOauthGrant", 'String'>;
1156
+ readonly redirectUri: Prisma.FieldRef<"McpOauthGrant", 'String'>;
1157
+ readonly resource: Prisma.FieldRef<"McpOauthGrant", 'String'>;
1158
+ readonly scope: Prisma.FieldRef<"McpOauthGrant", 'String'>;
1159
+ readonly codeChallenge: Prisma.FieldRef<"McpOauthGrant", 'String'>;
1160
+ readonly codeHash: Prisma.FieldRef<"McpOauthGrant", 'String'>;
1161
+ readonly codeExpiresAt: Prisma.FieldRef<"McpOauthGrant", 'DateTime'>;
1162
+ readonly codeConsumedAt: Prisma.FieldRef<"McpOauthGrant", 'DateTime'>;
1163
+ readonly refreshHash: Prisma.FieldRef<"McpOauthGrant", 'String'>;
1164
+ readonly refreshExpiresAt: Prisma.FieldRef<"McpOauthGrant", 'DateTime'>;
1165
+ readonly familyId: Prisma.FieldRef<"McpOauthGrant", 'String'>;
1166
+ readonly revokedAt: Prisma.FieldRef<"McpOauthGrant", 'DateTime'>;
1167
+ readonly createdAt: Prisma.FieldRef<"McpOauthGrant", 'DateTime'>;
1168
+ readonly updatedAt: Prisma.FieldRef<"McpOauthGrant", 'DateTime'>;
1169
+ }
1170
+ /**
1171
+ * McpOauthGrant findUnique
1172
+ */
1173
+ export type McpOauthGrantFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1174
+ /**
1175
+ * Select specific fields to fetch from the McpOauthGrant
1176
+ */
1177
+ select?: Prisma.McpOauthGrantSelect<ExtArgs> | null;
1178
+ /**
1179
+ * Omit specific fields from the McpOauthGrant
1180
+ */
1181
+ omit?: Prisma.McpOauthGrantOmit<ExtArgs> | null;
1182
+ /**
1183
+ * Choose, which related nodes to fetch as well
1184
+ */
1185
+ include?: Prisma.McpOauthGrantInclude<ExtArgs> | null;
1186
+ /**
1187
+ * Filter, which McpOauthGrant to fetch.
1188
+ */
1189
+ where: Prisma.McpOauthGrantWhereUniqueInput;
1190
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
1191
+ };
1192
+ /**
1193
+ * McpOauthGrant findUniqueOrThrow
1194
+ */
1195
+ export type McpOauthGrantFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1196
+ /**
1197
+ * Select specific fields to fetch from the McpOauthGrant
1198
+ */
1199
+ select?: Prisma.McpOauthGrantSelect<ExtArgs> | null;
1200
+ /**
1201
+ * Omit specific fields from the McpOauthGrant
1202
+ */
1203
+ omit?: Prisma.McpOauthGrantOmit<ExtArgs> | null;
1204
+ /**
1205
+ * Choose, which related nodes to fetch as well
1206
+ */
1207
+ include?: Prisma.McpOauthGrantInclude<ExtArgs> | null;
1208
+ /**
1209
+ * Filter, which McpOauthGrant to fetch.
1210
+ */
1211
+ where: Prisma.McpOauthGrantWhereUniqueInput;
1212
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
1213
+ };
1214
+ /**
1215
+ * McpOauthGrant findFirst
1216
+ */
1217
+ export type McpOauthGrantFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1218
+ /**
1219
+ * Select specific fields to fetch from the McpOauthGrant
1220
+ */
1221
+ select?: Prisma.McpOauthGrantSelect<ExtArgs> | null;
1222
+ /**
1223
+ * Omit specific fields from the McpOauthGrant
1224
+ */
1225
+ omit?: Prisma.McpOauthGrantOmit<ExtArgs> | null;
1226
+ /**
1227
+ * Choose, which related nodes to fetch as well
1228
+ */
1229
+ include?: Prisma.McpOauthGrantInclude<ExtArgs> | null;
1230
+ /**
1231
+ * Filter, which McpOauthGrant to fetch.
1232
+ */
1233
+ where?: Prisma.McpOauthGrantWhereInput;
1234
+ /**
1235
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1236
+ *
1237
+ * Determine the order of McpOauthGrants to fetch.
1238
+ */
1239
+ orderBy?: Prisma.McpOauthGrantOrderByWithRelationInput | Prisma.McpOauthGrantOrderByWithRelationInput[];
1240
+ /**
1241
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1242
+ *
1243
+ * Sets the position for searching for McpOauthGrants.
1244
+ */
1245
+ cursor?: Prisma.McpOauthGrantWhereUniqueInput;
1246
+ /**
1247
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1248
+ *
1249
+ * Take `±n` McpOauthGrants from the position of the cursor.
1250
+ */
1251
+ take?: number;
1252
+ /**
1253
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1254
+ *
1255
+ * Skip the first `n` McpOauthGrants.
1256
+ */
1257
+ skip?: number;
1258
+ /**
1259
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1260
+ *
1261
+ * Filter by unique combinations of McpOauthGrants.
1262
+ */
1263
+ distinct?: Prisma.McpOauthGrantScalarFieldEnum | Prisma.McpOauthGrantScalarFieldEnum[];
1264
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
1265
+ };
1266
+ /**
1267
+ * McpOauthGrant findFirstOrThrow
1268
+ */
1269
+ export type McpOauthGrantFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1270
+ /**
1271
+ * Select specific fields to fetch from the McpOauthGrant
1272
+ */
1273
+ select?: Prisma.McpOauthGrantSelect<ExtArgs> | null;
1274
+ /**
1275
+ * Omit specific fields from the McpOauthGrant
1276
+ */
1277
+ omit?: Prisma.McpOauthGrantOmit<ExtArgs> | null;
1278
+ /**
1279
+ * Choose, which related nodes to fetch as well
1280
+ */
1281
+ include?: Prisma.McpOauthGrantInclude<ExtArgs> | null;
1282
+ /**
1283
+ * Filter, which McpOauthGrant to fetch.
1284
+ */
1285
+ where?: Prisma.McpOauthGrantWhereInput;
1286
+ /**
1287
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1288
+ *
1289
+ * Determine the order of McpOauthGrants to fetch.
1290
+ */
1291
+ orderBy?: Prisma.McpOauthGrantOrderByWithRelationInput | Prisma.McpOauthGrantOrderByWithRelationInput[];
1292
+ /**
1293
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1294
+ *
1295
+ * Sets the position for searching for McpOauthGrants.
1296
+ */
1297
+ cursor?: Prisma.McpOauthGrantWhereUniqueInput;
1298
+ /**
1299
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1300
+ *
1301
+ * Take `±n` McpOauthGrants from the position of the cursor.
1302
+ */
1303
+ take?: number;
1304
+ /**
1305
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1306
+ *
1307
+ * Skip the first `n` McpOauthGrants.
1308
+ */
1309
+ skip?: number;
1310
+ /**
1311
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1312
+ *
1313
+ * Filter by unique combinations of McpOauthGrants.
1314
+ */
1315
+ distinct?: Prisma.McpOauthGrantScalarFieldEnum | Prisma.McpOauthGrantScalarFieldEnum[];
1316
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
1317
+ };
1318
+ /**
1319
+ * McpOauthGrant findMany
1320
+ */
1321
+ export type McpOauthGrantFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1322
+ /**
1323
+ * Select specific fields to fetch from the McpOauthGrant
1324
+ */
1325
+ select?: Prisma.McpOauthGrantSelect<ExtArgs> | null;
1326
+ /**
1327
+ * Omit specific fields from the McpOauthGrant
1328
+ */
1329
+ omit?: Prisma.McpOauthGrantOmit<ExtArgs> | null;
1330
+ /**
1331
+ * Choose, which related nodes to fetch as well
1332
+ */
1333
+ include?: Prisma.McpOauthGrantInclude<ExtArgs> | null;
1334
+ /**
1335
+ * Filter, which McpOauthGrants to fetch.
1336
+ */
1337
+ where?: Prisma.McpOauthGrantWhereInput;
1338
+ /**
1339
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1340
+ *
1341
+ * Determine the order of McpOauthGrants to fetch.
1342
+ */
1343
+ orderBy?: Prisma.McpOauthGrantOrderByWithRelationInput | Prisma.McpOauthGrantOrderByWithRelationInput[];
1344
+ /**
1345
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1346
+ *
1347
+ * Sets the position for listing McpOauthGrants.
1348
+ */
1349
+ cursor?: Prisma.McpOauthGrantWhereUniqueInput;
1350
+ /**
1351
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1352
+ *
1353
+ * Take `±n` McpOauthGrants from the position of the cursor.
1354
+ */
1355
+ take?: number;
1356
+ /**
1357
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1358
+ *
1359
+ * Skip the first `n` McpOauthGrants.
1360
+ */
1361
+ skip?: number;
1362
+ /**
1363
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1364
+ *
1365
+ * Filter by unique combinations of McpOauthGrants.
1366
+ */
1367
+ distinct?: Prisma.McpOauthGrantScalarFieldEnum | Prisma.McpOauthGrantScalarFieldEnum[];
1368
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
1369
+ };
1370
+ /**
1371
+ * McpOauthGrant create
1372
+ */
1373
+ export type McpOauthGrantCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1374
+ /**
1375
+ * Select specific fields to fetch from the McpOauthGrant
1376
+ */
1377
+ select?: Prisma.McpOauthGrantSelect<ExtArgs> | null;
1378
+ /**
1379
+ * Omit specific fields from the McpOauthGrant
1380
+ */
1381
+ omit?: Prisma.McpOauthGrantOmit<ExtArgs> | null;
1382
+ /**
1383
+ * Choose, which related nodes to fetch as well
1384
+ */
1385
+ include?: Prisma.McpOauthGrantInclude<ExtArgs> | null;
1386
+ /**
1387
+ * The data needed to create a McpOauthGrant.
1388
+ */
1389
+ data: Prisma.XOR<Prisma.McpOauthGrantCreateInput, Prisma.McpOauthGrantUncheckedCreateInput>;
1390
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
1391
+ };
1392
+ /**
1393
+ * McpOauthGrant createMany
1394
+ */
1395
+ export type McpOauthGrantCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1396
+ /**
1397
+ * The data used to create many McpOauthGrants.
1398
+ */
1399
+ data: Prisma.McpOauthGrantCreateManyInput | Prisma.McpOauthGrantCreateManyInput[];
1400
+ skipDuplicates?: boolean;
1401
+ };
1402
+ /**
1403
+ * McpOauthGrant createManyAndReturn
1404
+ */
1405
+ export type McpOauthGrantCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1406
+ /**
1407
+ * Select specific fields to fetch from the McpOauthGrant
1408
+ */
1409
+ select?: Prisma.McpOauthGrantSelectCreateManyAndReturn<ExtArgs> | null;
1410
+ /**
1411
+ * Omit specific fields from the McpOauthGrant
1412
+ */
1413
+ omit?: Prisma.McpOauthGrantOmit<ExtArgs> | null;
1414
+ /**
1415
+ * The data used to create many McpOauthGrants.
1416
+ */
1417
+ data: Prisma.McpOauthGrantCreateManyInput | Prisma.McpOauthGrantCreateManyInput[];
1418
+ skipDuplicates?: boolean;
1419
+ /**
1420
+ * Choose, which related nodes to fetch as well
1421
+ */
1422
+ include?: Prisma.McpOauthGrantIncludeCreateManyAndReturn<ExtArgs> | null;
1423
+ };
1424
+ /**
1425
+ * McpOauthGrant update
1426
+ */
1427
+ export type McpOauthGrantUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1428
+ /**
1429
+ * Select specific fields to fetch from the McpOauthGrant
1430
+ */
1431
+ select?: Prisma.McpOauthGrantSelect<ExtArgs> | null;
1432
+ /**
1433
+ * Omit specific fields from the McpOauthGrant
1434
+ */
1435
+ omit?: Prisma.McpOauthGrantOmit<ExtArgs> | null;
1436
+ /**
1437
+ * Choose, which related nodes to fetch as well
1438
+ */
1439
+ include?: Prisma.McpOauthGrantInclude<ExtArgs> | null;
1440
+ /**
1441
+ * The data needed to update a McpOauthGrant.
1442
+ */
1443
+ data: Prisma.XOR<Prisma.McpOauthGrantUpdateInput, Prisma.McpOauthGrantUncheckedUpdateInput>;
1444
+ /**
1445
+ * Choose, which McpOauthGrant to update.
1446
+ */
1447
+ where: Prisma.McpOauthGrantWhereUniqueInput;
1448
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
1449
+ };
1450
+ /**
1451
+ * McpOauthGrant updateMany
1452
+ */
1453
+ export type McpOauthGrantUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1454
+ /**
1455
+ * The data used to update McpOauthGrants.
1456
+ */
1457
+ data: Prisma.XOR<Prisma.McpOauthGrantUpdateManyMutationInput, Prisma.McpOauthGrantUncheckedUpdateManyInput>;
1458
+ /**
1459
+ * Filter which McpOauthGrants to update
1460
+ */
1461
+ where?: Prisma.McpOauthGrantWhereInput;
1462
+ /**
1463
+ * Limit how many McpOauthGrants to update.
1464
+ */
1465
+ limit?: number;
1466
+ };
1467
+ /**
1468
+ * McpOauthGrant updateManyAndReturn
1469
+ */
1470
+ export type McpOauthGrantUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1471
+ /**
1472
+ * Select specific fields to fetch from the McpOauthGrant
1473
+ */
1474
+ select?: Prisma.McpOauthGrantSelectUpdateManyAndReturn<ExtArgs> | null;
1475
+ /**
1476
+ * Omit specific fields from the McpOauthGrant
1477
+ */
1478
+ omit?: Prisma.McpOauthGrantOmit<ExtArgs> | null;
1479
+ /**
1480
+ * The data used to update McpOauthGrants.
1481
+ */
1482
+ data: Prisma.XOR<Prisma.McpOauthGrantUpdateManyMutationInput, Prisma.McpOauthGrantUncheckedUpdateManyInput>;
1483
+ /**
1484
+ * Filter which McpOauthGrants to update
1485
+ */
1486
+ where?: Prisma.McpOauthGrantWhereInput;
1487
+ /**
1488
+ * Limit how many McpOauthGrants to update.
1489
+ */
1490
+ limit?: number;
1491
+ /**
1492
+ * Choose, which related nodes to fetch as well
1493
+ */
1494
+ include?: Prisma.McpOauthGrantIncludeUpdateManyAndReturn<ExtArgs> | null;
1495
+ };
1496
+ /**
1497
+ * McpOauthGrant upsert
1498
+ */
1499
+ export type McpOauthGrantUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1500
+ /**
1501
+ * Select specific fields to fetch from the McpOauthGrant
1502
+ */
1503
+ select?: Prisma.McpOauthGrantSelect<ExtArgs> | null;
1504
+ /**
1505
+ * Omit specific fields from the McpOauthGrant
1506
+ */
1507
+ omit?: Prisma.McpOauthGrantOmit<ExtArgs> | null;
1508
+ /**
1509
+ * Choose, which related nodes to fetch as well
1510
+ */
1511
+ include?: Prisma.McpOauthGrantInclude<ExtArgs> | null;
1512
+ /**
1513
+ * The filter to search for the McpOauthGrant to update in case it exists.
1514
+ */
1515
+ where: Prisma.McpOauthGrantWhereUniqueInput;
1516
+ /**
1517
+ * In case the McpOauthGrant found by the `where` argument doesn't exist, create a new McpOauthGrant with this data.
1518
+ */
1519
+ create: Prisma.XOR<Prisma.McpOauthGrantCreateInput, Prisma.McpOauthGrantUncheckedCreateInput>;
1520
+ /**
1521
+ * In case the McpOauthGrant was found with the provided `where` argument, update it with this data.
1522
+ */
1523
+ update: Prisma.XOR<Prisma.McpOauthGrantUpdateInput, Prisma.McpOauthGrantUncheckedUpdateInput>;
1524
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
1525
+ };
1526
+ /**
1527
+ * McpOauthGrant delete
1528
+ */
1529
+ export type McpOauthGrantDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1530
+ /**
1531
+ * Select specific fields to fetch from the McpOauthGrant
1532
+ */
1533
+ select?: Prisma.McpOauthGrantSelect<ExtArgs> | null;
1534
+ /**
1535
+ * Omit specific fields from the McpOauthGrant
1536
+ */
1537
+ omit?: Prisma.McpOauthGrantOmit<ExtArgs> | null;
1538
+ /**
1539
+ * Choose, which related nodes to fetch as well
1540
+ */
1541
+ include?: Prisma.McpOauthGrantInclude<ExtArgs> | null;
1542
+ /**
1543
+ * Filter which McpOauthGrant to delete.
1544
+ */
1545
+ where: Prisma.McpOauthGrantWhereUniqueInput;
1546
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
1547
+ };
1548
+ /**
1549
+ * McpOauthGrant deleteMany
1550
+ */
1551
+ export type McpOauthGrantDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1552
+ /**
1553
+ * Filter which McpOauthGrants to delete
1554
+ */
1555
+ where?: Prisma.McpOauthGrantWhereInput;
1556
+ /**
1557
+ * Limit how many McpOauthGrants to delete.
1558
+ */
1559
+ limit?: number;
1560
+ };
1561
+ /**
1562
+ * McpOauthGrant without action
1563
+ */
1564
+ export type McpOauthGrantDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1565
+ /**
1566
+ * Select specific fields to fetch from the McpOauthGrant
1567
+ */
1568
+ select?: Prisma.McpOauthGrantSelect<ExtArgs> | null;
1569
+ /**
1570
+ * Omit specific fields from the McpOauthGrant
1571
+ */
1572
+ omit?: Prisma.McpOauthGrantOmit<ExtArgs> | null;
1573
+ /**
1574
+ * Choose, which related nodes to fetch as well
1575
+ */
1576
+ include?: Prisma.McpOauthGrantInclude<ExtArgs> | null;
1577
+ };