@structured-world/gitlab-mcp-db 10.0.1 → 11.0.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.
- package/README.md +6 -6
- package/dist/generated/prisma/client.d.ts +2 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +178 -9
- package/dist/generated/prisma/internal/class.d.ts +6 -0
- package/dist/generated/prisma/internal/class.js +4 -4
- package/dist/generated/prisma/internal/class.js.map +1 -1
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +207 -1
- package/dist/generated/prisma/internal/prismaNamespace.js +52 -3
- package/dist/generated/prisma/internal/prismaNamespace.js.map +1 -1
- package/dist/generated/prisma/models/AccountSettings.d.ts +400 -0
- package/dist/generated/prisma/models/AccountSettings.js +3 -0
- package/dist/generated/prisma/models/AccountSettings.js.map +1 -0
- package/dist/generated/prisma/models/AuthCodeFlowState.d.ts +152 -2
- package/dist/generated/prisma/models/DeviceFlowState.d.ts +214 -2
- package/dist/generated/prisma/models/OAuthClient.d.ts +577 -0
- package/dist/generated/prisma/models/OAuthClient.js +3 -0
- package/dist/generated/prisma/models/OAuthClient.js.map +1 -0
- package/dist/generated/prisma/models/OAuthSession.d.ts +116 -1
- package/dist/generated/prisma/models.d.ts +2 -0
- package/dist/src/migrate.d.ts +16 -0
- package/dist/src/migrate.js +115 -0
- package/dist/src/migrate.js.map +1 -0
- package/dist/src/postgresql.d.ts +17 -1
- package/dist/src/postgresql.js +309 -83
- package/dist/src/postgresql.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -5
- package/prisma/migrations/0_init/migration.sql +115 -0
- package/prisma/migrations/20261008000000_released_schema_columns/migration.sql +15 -0
- package/prisma/migrations/20261009000000_oauth_account_linking/migration.sql +47 -0
- package/prisma/migrations/20261010000000_account_settings/migration.sql +12 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema.prisma +59 -0
- package/prisma.config.ts +19 -0
|
@@ -11,6 +11,7 @@ export type AggregateOAuthSession = {
|
|
|
11
11
|
export type OAuthSessionAvgAggregateOutputType = {
|
|
12
12
|
mcpTokenExpiry: number | null;
|
|
13
13
|
gitlabTokenExpiry: number | null;
|
|
14
|
+
gitlabRefreshLeaseUntil: number | null;
|
|
14
15
|
gitlabUserId: number | null;
|
|
15
16
|
createdAt: number | null;
|
|
16
17
|
updatedAt: number | null;
|
|
@@ -18,6 +19,7 @@ export type OAuthSessionAvgAggregateOutputType = {
|
|
|
18
19
|
export type OAuthSessionSumAggregateOutputType = {
|
|
19
20
|
mcpTokenExpiry: bigint | null;
|
|
20
21
|
gitlabTokenExpiry: bigint | null;
|
|
22
|
+
gitlabRefreshLeaseUntil: bigint | null;
|
|
21
23
|
gitlabUserId: number | null;
|
|
22
24
|
createdAt: bigint | null;
|
|
23
25
|
updatedAt: bigint | null;
|
|
@@ -30,11 +32,13 @@ export type OAuthSessionMinAggregateOutputType = {
|
|
|
30
32
|
gitlabAccessToken: string | null;
|
|
31
33
|
gitlabRefreshToken: string | null;
|
|
32
34
|
gitlabTokenExpiry: bigint | null;
|
|
35
|
+
gitlabRefreshLeaseUntil: bigint | null;
|
|
33
36
|
gitlabUserId: number | null;
|
|
34
37
|
gitlabUsername: string | null;
|
|
35
38
|
gitlabApiUrl: string | null;
|
|
36
39
|
instanceLabel: string | null;
|
|
37
40
|
clientId: string | null;
|
|
41
|
+
resource: string | null;
|
|
38
42
|
createdAt: bigint | null;
|
|
39
43
|
updatedAt: bigint | null;
|
|
40
44
|
};
|
|
@@ -46,11 +50,13 @@ export type OAuthSessionMaxAggregateOutputType = {
|
|
|
46
50
|
gitlabAccessToken: string | null;
|
|
47
51
|
gitlabRefreshToken: string | null;
|
|
48
52
|
gitlabTokenExpiry: bigint | null;
|
|
53
|
+
gitlabRefreshLeaseUntil: bigint | null;
|
|
49
54
|
gitlabUserId: number | null;
|
|
50
55
|
gitlabUsername: string | null;
|
|
51
56
|
gitlabApiUrl: string | null;
|
|
52
57
|
instanceLabel: string | null;
|
|
53
58
|
clientId: string | null;
|
|
59
|
+
resource: string | null;
|
|
54
60
|
createdAt: bigint | null;
|
|
55
61
|
updatedAt: bigint | null;
|
|
56
62
|
};
|
|
@@ -62,12 +68,15 @@ export type OAuthSessionCountAggregateOutputType = {
|
|
|
62
68
|
gitlabAccessToken: number;
|
|
63
69
|
gitlabRefreshToken: number;
|
|
64
70
|
gitlabTokenExpiry: number;
|
|
71
|
+
gitlabScopes: number;
|
|
72
|
+
gitlabRefreshLeaseUntil: number;
|
|
65
73
|
gitlabUserId: number;
|
|
66
74
|
gitlabUsername: number;
|
|
67
75
|
gitlabApiUrl: number;
|
|
68
76
|
instanceLabel: number;
|
|
69
77
|
clientId: number;
|
|
70
78
|
scopes: number;
|
|
79
|
+
resource: number;
|
|
71
80
|
createdAt: number;
|
|
72
81
|
updatedAt: number;
|
|
73
82
|
_all: number;
|
|
@@ -75,6 +84,7 @@ export type OAuthSessionCountAggregateOutputType = {
|
|
|
75
84
|
export type OAuthSessionAvgAggregateInputType = {
|
|
76
85
|
mcpTokenExpiry?: true;
|
|
77
86
|
gitlabTokenExpiry?: true;
|
|
87
|
+
gitlabRefreshLeaseUntil?: true;
|
|
78
88
|
gitlabUserId?: true;
|
|
79
89
|
createdAt?: true;
|
|
80
90
|
updatedAt?: true;
|
|
@@ -82,6 +92,7 @@ export type OAuthSessionAvgAggregateInputType = {
|
|
|
82
92
|
export type OAuthSessionSumAggregateInputType = {
|
|
83
93
|
mcpTokenExpiry?: true;
|
|
84
94
|
gitlabTokenExpiry?: true;
|
|
95
|
+
gitlabRefreshLeaseUntil?: true;
|
|
85
96
|
gitlabUserId?: true;
|
|
86
97
|
createdAt?: true;
|
|
87
98
|
updatedAt?: true;
|
|
@@ -94,11 +105,13 @@ export type OAuthSessionMinAggregateInputType = {
|
|
|
94
105
|
gitlabAccessToken?: true;
|
|
95
106
|
gitlabRefreshToken?: true;
|
|
96
107
|
gitlabTokenExpiry?: true;
|
|
108
|
+
gitlabRefreshLeaseUntil?: true;
|
|
97
109
|
gitlabUserId?: true;
|
|
98
110
|
gitlabUsername?: true;
|
|
99
111
|
gitlabApiUrl?: true;
|
|
100
112
|
instanceLabel?: true;
|
|
101
113
|
clientId?: true;
|
|
114
|
+
resource?: true;
|
|
102
115
|
createdAt?: true;
|
|
103
116
|
updatedAt?: true;
|
|
104
117
|
};
|
|
@@ -110,11 +123,13 @@ export type OAuthSessionMaxAggregateInputType = {
|
|
|
110
123
|
gitlabAccessToken?: true;
|
|
111
124
|
gitlabRefreshToken?: true;
|
|
112
125
|
gitlabTokenExpiry?: true;
|
|
126
|
+
gitlabRefreshLeaseUntil?: true;
|
|
113
127
|
gitlabUserId?: true;
|
|
114
128
|
gitlabUsername?: true;
|
|
115
129
|
gitlabApiUrl?: true;
|
|
116
130
|
instanceLabel?: true;
|
|
117
131
|
clientId?: true;
|
|
132
|
+
resource?: true;
|
|
118
133
|
createdAt?: true;
|
|
119
134
|
updatedAt?: true;
|
|
120
135
|
};
|
|
@@ -126,12 +141,15 @@ export type OAuthSessionCountAggregateInputType = {
|
|
|
126
141
|
gitlabAccessToken?: true;
|
|
127
142
|
gitlabRefreshToken?: true;
|
|
128
143
|
gitlabTokenExpiry?: true;
|
|
144
|
+
gitlabScopes?: true;
|
|
145
|
+
gitlabRefreshLeaseUntil?: true;
|
|
129
146
|
gitlabUserId?: true;
|
|
130
147
|
gitlabUsername?: true;
|
|
131
148
|
gitlabApiUrl?: true;
|
|
132
149
|
instanceLabel?: true;
|
|
133
150
|
clientId?: true;
|
|
134
151
|
scopes?: true;
|
|
152
|
+
resource?: true;
|
|
135
153
|
createdAt?: true;
|
|
136
154
|
updatedAt?: true;
|
|
137
155
|
_all?: true;
|
|
@@ -172,12 +190,15 @@ export type OAuthSessionGroupByOutputType = {
|
|
|
172
190
|
gitlabAccessToken: string;
|
|
173
191
|
gitlabRefreshToken: string;
|
|
174
192
|
gitlabTokenExpiry: bigint;
|
|
193
|
+
gitlabScopes: runtime.JsonValue | null;
|
|
194
|
+
gitlabRefreshLeaseUntil: bigint | null;
|
|
175
195
|
gitlabUserId: number;
|
|
176
196
|
gitlabUsername: string;
|
|
177
197
|
gitlabApiUrl: string | null;
|
|
178
198
|
instanceLabel: string | null;
|
|
179
199
|
clientId: string;
|
|
180
200
|
scopes: string[];
|
|
201
|
+
resource: string | null;
|
|
181
202
|
createdAt: bigint;
|
|
182
203
|
updatedAt: bigint;
|
|
183
204
|
_count: OAuthSessionCountAggregateOutputType | null;
|
|
@@ -200,12 +221,15 @@ export type OAuthSessionWhereInput = {
|
|
|
200
221
|
gitlabAccessToken?: Prisma.StringFilter<"OAuthSession"> | string;
|
|
201
222
|
gitlabRefreshToken?: Prisma.StringFilter<"OAuthSession"> | string;
|
|
202
223
|
gitlabTokenExpiry?: Prisma.BigIntFilter<"OAuthSession"> | bigint | number;
|
|
224
|
+
gitlabScopes?: Prisma.JsonNullableFilter<"OAuthSession">;
|
|
225
|
+
gitlabRefreshLeaseUntil?: Prisma.BigIntNullableFilter<"OAuthSession"> | bigint | number | null;
|
|
203
226
|
gitlabUserId?: Prisma.IntFilter<"OAuthSession"> | number;
|
|
204
227
|
gitlabUsername?: Prisma.StringFilter<"OAuthSession"> | string;
|
|
205
228
|
gitlabApiUrl?: Prisma.StringNullableFilter<"OAuthSession"> | string | null;
|
|
206
229
|
instanceLabel?: Prisma.StringNullableFilter<"OAuthSession"> | string | null;
|
|
207
230
|
clientId?: Prisma.StringFilter<"OAuthSession"> | string;
|
|
208
231
|
scopes?: Prisma.StringNullableListFilter<"OAuthSession">;
|
|
232
|
+
resource?: Prisma.StringNullableFilter<"OAuthSession"> | string | null;
|
|
209
233
|
createdAt?: Prisma.BigIntFilter<"OAuthSession"> | bigint | number;
|
|
210
234
|
updatedAt?: Prisma.BigIntFilter<"OAuthSession"> | bigint | number;
|
|
211
235
|
authorizationCodes?: Prisma.AuthorizationCodeListRelationFilter;
|
|
@@ -219,12 +243,15 @@ export type OAuthSessionOrderByWithRelationInput = {
|
|
|
219
243
|
gitlabAccessToken?: Prisma.SortOrder;
|
|
220
244
|
gitlabRefreshToken?: Prisma.SortOrder;
|
|
221
245
|
gitlabTokenExpiry?: Prisma.SortOrder;
|
|
246
|
+
gitlabScopes?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
247
|
+
gitlabRefreshLeaseUntil?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
222
248
|
gitlabUserId?: Prisma.SortOrder;
|
|
223
249
|
gitlabUsername?: Prisma.SortOrder;
|
|
224
250
|
gitlabApiUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
225
251
|
instanceLabel?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
226
252
|
clientId?: Prisma.SortOrder;
|
|
227
253
|
scopes?: Prisma.SortOrder;
|
|
254
|
+
resource?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
228
255
|
createdAt?: Prisma.SortOrder;
|
|
229
256
|
updatedAt?: Prisma.SortOrder;
|
|
230
257
|
authorizationCodes?: Prisma.AuthorizationCodeOrderByRelationAggregateInput;
|
|
@@ -241,12 +268,15 @@ export type OAuthSessionWhereUniqueInput = Prisma.AtLeast<{
|
|
|
241
268
|
gitlabAccessToken?: Prisma.StringFilter<"OAuthSession"> | string;
|
|
242
269
|
gitlabRefreshToken?: Prisma.StringFilter<"OAuthSession"> | string;
|
|
243
270
|
gitlabTokenExpiry?: Prisma.BigIntFilter<"OAuthSession"> | bigint | number;
|
|
271
|
+
gitlabScopes?: Prisma.JsonNullableFilter<"OAuthSession">;
|
|
272
|
+
gitlabRefreshLeaseUntil?: Prisma.BigIntNullableFilter<"OAuthSession"> | bigint | number | null;
|
|
244
273
|
gitlabUserId?: Prisma.IntFilter<"OAuthSession"> | number;
|
|
245
274
|
gitlabUsername?: Prisma.StringFilter<"OAuthSession"> | string;
|
|
246
275
|
gitlabApiUrl?: Prisma.StringNullableFilter<"OAuthSession"> | string | null;
|
|
247
276
|
instanceLabel?: Prisma.StringNullableFilter<"OAuthSession"> | string | null;
|
|
248
277
|
clientId?: Prisma.StringFilter<"OAuthSession"> | string;
|
|
249
278
|
scopes?: Prisma.StringNullableListFilter<"OAuthSession">;
|
|
279
|
+
resource?: Prisma.StringNullableFilter<"OAuthSession"> | string | null;
|
|
250
280
|
createdAt?: Prisma.BigIntFilter<"OAuthSession"> | bigint | number;
|
|
251
281
|
updatedAt?: Prisma.BigIntFilter<"OAuthSession"> | bigint | number;
|
|
252
282
|
authorizationCodes?: Prisma.AuthorizationCodeListRelationFilter;
|
|
@@ -260,12 +290,15 @@ export type OAuthSessionOrderByWithAggregationInput = {
|
|
|
260
290
|
gitlabAccessToken?: Prisma.SortOrder;
|
|
261
291
|
gitlabRefreshToken?: Prisma.SortOrder;
|
|
262
292
|
gitlabTokenExpiry?: Prisma.SortOrder;
|
|
293
|
+
gitlabScopes?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
294
|
+
gitlabRefreshLeaseUntil?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
263
295
|
gitlabUserId?: Prisma.SortOrder;
|
|
264
296
|
gitlabUsername?: Prisma.SortOrder;
|
|
265
297
|
gitlabApiUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
266
298
|
instanceLabel?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
267
299
|
clientId?: Prisma.SortOrder;
|
|
268
300
|
scopes?: Prisma.SortOrder;
|
|
301
|
+
resource?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
269
302
|
createdAt?: Prisma.SortOrder;
|
|
270
303
|
updatedAt?: Prisma.SortOrder;
|
|
271
304
|
_count?: Prisma.OAuthSessionCountOrderByAggregateInput;
|
|
@@ -285,12 +318,15 @@ export type OAuthSessionScalarWhereWithAggregatesInput = {
|
|
|
285
318
|
gitlabAccessToken?: Prisma.StringWithAggregatesFilter<"OAuthSession"> | string;
|
|
286
319
|
gitlabRefreshToken?: Prisma.StringWithAggregatesFilter<"OAuthSession"> | string;
|
|
287
320
|
gitlabTokenExpiry?: Prisma.BigIntWithAggregatesFilter<"OAuthSession"> | bigint | number;
|
|
321
|
+
gitlabScopes?: Prisma.JsonNullableWithAggregatesFilter<"OAuthSession">;
|
|
322
|
+
gitlabRefreshLeaseUntil?: Prisma.BigIntNullableWithAggregatesFilter<"OAuthSession"> | bigint | number | null;
|
|
288
323
|
gitlabUserId?: Prisma.IntWithAggregatesFilter<"OAuthSession"> | number;
|
|
289
324
|
gitlabUsername?: Prisma.StringWithAggregatesFilter<"OAuthSession"> | string;
|
|
290
325
|
gitlabApiUrl?: Prisma.StringNullableWithAggregatesFilter<"OAuthSession"> | string | null;
|
|
291
326
|
instanceLabel?: Prisma.StringNullableWithAggregatesFilter<"OAuthSession"> | string | null;
|
|
292
327
|
clientId?: Prisma.StringWithAggregatesFilter<"OAuthSession"> | string;
|
|
293
328
|
scopes?: Prisma.StringNullableListFilter<"OAuthSession">;
|
|
329
|
+
resource?: Prisma.StringNullableWithAggregatesFilter<"OAuthSession"> | string | null;
|
|
294
330
|
createdAt?: Prisma.BigIntWithAggregatesFilter<"OAuthSession"> | bigint | number;
|
|
295
331
|
updatedAt?: Prisma.BigIntWithAggregatesFilter<"OAuthSession"> | bigint | number;
|
|
296
332
|
};
|
|
@@ -302,12 +338,15 @@ export type OAuthSessionCreateInput = {
|
|
|
302
338
|
gitlabAccessToken: string;
|
|
303
339
|
gitlabRefreshToken: string;
|
|
304
340
|
gitlabTokenExpiry: bigint | number;
|
|
341
|
+
gitlabScopes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
342
|
+
gitlabRefreshLeaseUntil?: bigint | number | null;
|
|
305
343
|
gitlabUserId: number;
|
|
306
344
|
gitlabUsername: string;
|
|
307
345
|
gitlabApiUrl?: string | null;
|
|
308
346
|
instanceLabel?: string | null;
|
|
309
347
|
clientId: string;
|
|
310
348
|
scopes?: Prisma.OAuthSessionCreatescopesInput | string[];
|
|
349
|
+
resource?: string | null;
|
|
311
350
|
createdAt: bigint | number;
|
|
312
351
|
updatedAt: bigint | number;
|
|
313
352
|
authorizationCodes?: Prisma.AuthorizationCodeCreateNestedManyWithoutSessionInput;
|
|
@@ -321,12 +360,15 @@ export type OAuthSessionUncheckedCreateInput = {
|
|
|
321
360
|
gitlabAccessToken: string;
|
|
322
361
|
gitlabRefreshToken: string;
|
|
323
362
|
gitlabTokenExpiry: bigint | number;
|
|
363
|
+
gitlabScopes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
364
|
+
gitlabRefreshLeaseUntil?: bigint | number | null;
|
|
324
365
|
gitlabUserId: number;
|
|
325
366
|
gitlabUsername: string;
|
|
326
367
|
gitlabApiUrl?: string | null;
|
|
327
368
|
instanceLabel?: string | null;
|
|
328
369
|
clientId: string;
|
|
329
370
|
scopes?: Prisma.OAuthSessionCreatescopesInput | string[];
|
|
371
|
+
resource?: string | null;
|
|
330
372
|
createdAt: bigint | number;
|
|
331
373
|
updatedAt: bigint | number;
|
|
332
374
|
authorizationCodes?: Prisma.AuthorizationCodeUncheckedCreateNestedManyWithoutSessionInput;
|
|
@@ -340,12 +382,15 @@ export type OAuthSessionUpdateInput = {
|
|
|
340
382
|
gitlabAccessToken?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
341
383
|
gitlabRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
342
384
|
gitlabTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
385
|
+
gitlabScopes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
386
|
+
gitlabRefreshLeaseUntil?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
343
387
|
gitlabUserId?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
344
388
|
gitlabUsername?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
345
389
|
gitlabApiUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
346
390
|
instanceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
347
391
|
clientId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
348
392
|
scopes?: Prisma.OAuthSessionUpdatescopesInput | string[];
|
|
393
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
349
394
|
createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
350
395
|
updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
351
396
|
authorizationCodes?: Prisma.AuthorizationCodeUpdateManyWithoutSessionNestedInput;
|
|
@@ -359,12 +404,15 @@ export type OAuthSessionUncheckedUpdateInput = {
|
|
|
359
404
|
gitlabAccessToken?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
360
405
|
gitlabRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
361
406
|
gitlabTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
407
|
+
gitlabScopes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
408
|
+
gitlabRefreshLeaseUntil?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
362
409
|
gitlabUserId?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
363
410
|
gitlabUsername?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
364
411
|
gitlabApiUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
365
412
|
instanceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
366
413
|
clientId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
367
414
|
scopes?: Prisma.OAuthSessionUpdatescopesInput | string[];
|
|
415
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
368
416
|
createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
369
417
|
updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
370
418
|
authorizationCodes?: Prisma.AuthorizationCodeUncheckedUpdateManyWithoutSessionNestedInput;
|
|
@@ -378,12 +426,15 @@ export type OAuthSessionCreateManyInput = {
|
|
|
378
426
|
gitlabAccessToken: string;
|
|
379
427
|
gitlabRefreshToken: string;
|
|
380
428
|
gitlabTokenExpiry: bigint | number;
|
|
429
|
+
gitlabScopes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
430
|
+
gitlabRefreshLeaseUntil?: bigint | number | null;
|
|
381
431
|
gitlabUserId: number;
|
|
382
432
|
gitlabUsername: string;
|
|
383
433
|
gitlabApiUrl?: string | null;
|
|
384
434
|
instanceLabel?: string | null;
|
|
385
435
|
clientId: string;
|
|
386
436
|
scopes?: Prisma.OAuthSessionCreatescopesInput | string[];
|
|
437
|
+
resource?: string | null;
|
|
387
438
|
createdAt: bigint | number;
|
|
388
439
|
updatedAt: bigint | number;
|
|
389
440
|
};
|
|
@@ -395,12 +446,15 @@ export type OAuthSessionUpdateManyMutationInput = {
|
|
|
395
446
|
gitlabAccessToken?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
396
447
|
gitlabRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
397
448
|
gitlabTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
449
|
+
gitlabScopes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
450
|
+
gitlabRefreshLeaseUntil?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
398
451
|
gitlabUserId?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
399
452
|
gitlabUsername?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
400
453
|
gitlabApiUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
401
454
|
instanceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
402
455
|
clientId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
403
456
|
scopes?: Prisma.OAuthSessionUpdatescopesInput | string[];
|
|
457
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
404
458
|
createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
405
459
|
updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
406
460
|
};
|
|
@@ -412,12 +466,15 @@ export type OAuthSessionUncheckedUpdateManyInput = {
|
|
|
412
466
|
gitlabAccessToken?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
413
467
|
gitlabRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
414
468
|
gitlabTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
469
|
+
gitlabScopes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
470
|
+
gitlabRefreshLeaseUntil?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
415
471
|
gitlabUserId?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
416
472
|
gitlabUsername?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
417
473
|
gitlabApiUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
418
474
|
instanceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
419
475
|
clientId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
420
476
|
scopes?: Prisma.OAuthSessionUpdatescopesInput | string[];
|
|
477
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
421
478
|
createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
422
479
|
updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
423
480
|
};
|
|
@@ -436,18 +493,22 @@ export type OAuthSessionCountOrderByAggregateInput = {
|
|
|
436
493
|
gitlabAccessToken?: Prisma.SortOrder;
|
|
437
494
|
gitlabRefreshToken?: Prisma.SortOrder;
|
|
438
495
|
gitlabTokenExpiry?: Prisma.SortOrder;
|
|
496
|
+
gitlabScopes?: Prisma.SortOrder;
|
|
497
|
+
gitlabRefreshLeaseUntil?: Prisma.SortOrder;
|
|
439
498
|
gitlabUserId?: Prisma.SortOrder;
|
|
440
499
|
gitlabUsername?: Prisma.SortOrder;
|
|
441
500
|
gitlabApiUrl?: Prisma.SortOrder;
|
|
442
501
|
instanceLabel?: Prisma.SortOrder;
|
|
443
502
|
clientId?: Prisma.SortOrder;
|
|
444
503
|
scopes?: Prisma.SortOrder;
|
|
504
|
+
resource?: Prisma.SortOrder;
|
|
445
505
|
createdAt?: Prisma.SortOrder;
|
|
446
506
|
updatedAt?: Prisma.SortOrder;
|
|
447
507
|
};
|
|
448
508
|
export type OAuthSessionAvgOrderByAggregateInput = {
|
|
449
509
|
mcpTokenExpiry?: Prisma.SortOrder;
|
|
450
510
|
gitlabTokenExpiry?: Prisma.SortOrder;
|
|
511
|
+
gitlabRefreshLeaseUntil?: Prisma.SortOrder;
|
|
451
512
|
gitlabUserId?: Prisma.SortOrder;
|
|
452
513
|
createdAt?: Prisma.SortOrder;
|
|
453
514
|
updatedAt?: Prisma.SortOrder;
|
|
@@ -460,11 +521,13 @@ export type OAuthSessionMaxOrderByAggregateInput = {
|
|
|
460
521
|
gitlabAccessToken?: Prisma.SortOrder;
|
|
461
522
|
gitlabRefreshToken?: Prisma.SortOrder;
|
|
462
523
|
gitlabTokenExpiry?: Prisma.SortOrder;
|
|
524
|
+
gitlabRefreshLeaseUntil?: Prisma.SortOrder;
|
|
463
525
|
gitlabUserId?: Prisma.SortOrder;
|
|
464
526
|
gitlabUsername?: Prisma.SortOrder;
|
|
465
527
|
gitlabApiUrl?: Prisma.SortOrder;
|
|
466
528
|
instanceLabel?: Prisma.SortOrder;
|
|
467
529
|
clientId?: Prisma.SortOrder;
|
|
530
|
+
resource?: Prisma.SortOrder;
|
|
468
531
|
createdAt?: Prisma.SortOrder;
|
|
469
532
|
updatedAt?: Prisma.SortOrder;
|
|
470
533
|
};
|
|
@@ -476,17 +539,20 @@ export type OAuthSessionMinOrderByAggregateInput = {
|
|
|
476
539
|
gitlabAccessToken?: Prisma.SortOrder;
|
|
477
540
|
gitlabRefreshToken?: Prisma.SortOrder;
|
|
478
541
|
gitlabTokenExpiry?: Prisma.SortOrder;
|
|
542
|
+
gitlabRefreshLeaseUntil?: Prisma.SortOrder;
|
|
479
543
|
gitlabUserId?: Prisma.SortOrder;
|
|
480
544
|
gitlabUsername?: Prisma.SortOrder;
|
|
481
545
|
gitlabApiUrl?: Prisma.SortOrder;
|
|
482
546
|
instanceLabel?: Prisma.SortOrder;
|
|
483
547
|
clientId?: Prisma.SortOrder;
|
|
548
|
+
resource?: Prisma.SortOrder;
|
|
484
549
|
createdAt?: Prisma.SortOrder;
|
|
485
550
|
updatedAt?: Prisma.SortOrder;
|
|
486
551
|
};
|
|
487
552
|
export type OAuthSessionSumOrderByAggregateInput = {
|
|
488
553
|
mcpTokenExpiry?: Prisma.SortOrder;
|
|
489
554
|
gitlabTokenExpiry?: Prisma.SortOrder;
|
|
555
|
+
gitlabRefreshLeaseUntil?: Prisma.SortOrder;
|
|
490
556
|
gitlabUserId?: Prisma.SortOrder;
|
|
491
557
|
createdAt?: Prisma.SortOrder;
|
|
492
558
|
updatedAt?: Prisma.SortOrder;
|
|
@@ -508,6 +574,13 @@ export type BigIntFieldUpdateOperationsInput = {
|
|
|
508
574
|
multiply?: bigint | number;
|
|
509
575
|
divide?: bigint | number;
|
|
510
576
|
};
|
|
577
|
+
export type NullableBigIntFieldUpdateOperationsInput = {
|
|
578
|
+
set?: bigint | number | null;
|
|
579
|
+
increment?: bigint | number;
|
|
580
|
+
decrement?: bigint | number;
|
|
581
|
+
multiply?: bigint | number;
|
|
582
|
+
divide?: bigint | number;
|
|
583
|
+
};
|
|
511
584
|
export type IntFieldUpdateOperationsInput = {
|
|
512
585
|
set?: number;
|
|
513
586
|
increment?: number;
|
|
@@ -554,12 +627,15 @@ export type OAuthSessionCreateWithoutAuthorizationCodesInput = {
|
|
|
554
627
|
gitlabAccessToken: string;
|
|
555
628
|
gitlabRefreshToken: string;
|
|
556
629
|
gitlabTokenExpiry: bigint | number;
|
|
630
|
+
gitlabScopes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
631
|
+
gitlabRefreshLeaseUntil?: bigint | number | null;
|
|
557
632
|
gitlabUserId: number;
|
|
558
633
|
gitlabUsername: string;
|
|
559
634
|
gitlabApiUrl?: string | null;
|
|
560
635
|
instanceLabel?: string | null;
|
|
561
636
|
clientId: string;
|
|
562
637
|
scopes?: Prisma.OAuthSessionCreatescopesInput | string[];
|
|
638
|
+
resource?: string | null;
|
|
563
639
|
createdAt: bigint | number;
|
|
564
640
|
updatedAt: bigint | number;
|
|
565
641
|
mcpSessionMappings?: Prisma.McpSessionMappingCreateNestedManyWithoutOauthSessionInput;
|
|
@@ -572,12 +648,15 @@ export type OAuthSessionUncheckedCreateWithoutAuthorizationCodesInput = {
|
|
|
572
648
|
gitlabAccessToken: string;
|
|
573
649
|
gitlabRefreshToken: string;
|
|
574
650
|
gitlabTokenExpiry: bigint | number;
|
|
651
|
+
gitlabScopes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
652
|
+
gitlabRefreshLeaseUntil?: bigint | number | null;
|
|
575
653
|
gitlabUserId: number;
|
|
576
654
|
gitlabUsername: string;
|
|
577
655
|
gitlabApiUrl?: string | null;
|
|
578
656
|
instanceLabel?: string | null;
|
|
579
657
|
clientId: string;
|
|
580
658
|
scopes?: Prisma.OAuthSessionCreatescopesInput | string[];
|
|
659
|
+
resource?: string | null;
|
|
581
660
|
createdAt: bigint | number;
|
|
582
661
|
updatedAt: bigint | number;
|
|
583
662
|
mcpSessionMappings?: Prisma.McpSessionMappingUncheckedCreateNestedManyWithoutOauthSessionInput;
|
|
@@ -603,12 +682,15 @@ export type OAuthSessionUpdateWithoutAuthorizationCodesInput = {
|
|
|
603
682
|
gitlabAccessToken?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
604
683
|
gitlabRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
605
684
|
gitlabTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
685
|
+
gitlabScopes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
686
|
+
gitlabRefreshLeaseUntil?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
606
687
|
gitlabUserId?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
607
688
|
gitlabUsername?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
608
689
|
gitlabApiUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
609
690
|
instanceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
610
691
|
clientId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
611
692
|
scopes?: Prisma.OAuthSessionUpdatescopesInput | string[];
|
|
693
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
612
694
|
createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
613
695
|
updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
614
696
|
mcpSessionMappings?: Prisma.McpSessionMappingUpdateManyWithoutOauthSessionNestedInput;
|
|
@@ -621,12 +703,15 @@ export type OAuthSessionUncheckedUpdateWithoutAuthorizationCodesInput = {
|
|
|
621
703
|
gitlabAccessToken?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
622
704
|
gitlabRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
623
705
|
gitlabTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
706
|
+
gitlabScopes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
707
|
+
gitlabRefreshLeaseUntil?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
624
708
|
gitlabUserId?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
625
709
|
gitlabUsername?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
626
710
|
gitlabApiUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
627
711
|
instanceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
628
712
|
clientId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
629
713
|
scopes?: Prisma.OAuthSessionUpdatescopesInput | string[];
|
|
714
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
630
715
|
createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
631
716
|
updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
632
717
|
mcpSessionMappings?: Prisma.McpSessionMappingUncheckedUpdateManyWithoutOauthSessionNestedInput;
|
|
@@ -639,12 +724,15 @@ export type OAuthSessionCreateWithoutMcpSessionMappingsInput = {
|
|
|
639
724
|
gitlabAccessToken: string;
|
|
640
725
|
gitlabRefreshToken: string;
|
|
641
726
|
gitlabTokenExpiry: bigint | number;
|
|
727
|
+
gitlabScopes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
728
|
+
gitlabRefreshLeaseUntil?: bigint | number | null;
|
|
642
729
|
gitlabUserId: number;
|
|
643
730
|
gitlabUsername: string;
|
|
644
731
|
gitlabApiUrl?: string | null;
|
|
645
732
|
instanceLabel?: string | null;
|
|
646
733
|
clientId: string;
|
|
647
734
|
scopes?: Prisma.OAuthSessionCreatescopesInput | string[];
|
|
735
|
+
resource?: string | null;
|
|
648
736
|
createdAt: bigint | number;
|
|
649
737
|
updatedAt: bigint | number;
|
|
650
738
|
authorizationCodes?: Prisma.AuthorizationCodeCreateNestedManyWithoutSessionInput;
|
|
@@ -657,12 +745,15 @@ export type OAuthSessionUncheckedCreateWithoutMcpSessionMappingsInput = {
|
|
|
657
745
|
gitlabAccessToken: string;
|
|
658
746
|
gitlabRefreshToken: string;
|
|
659
747
|
gitlabTokenExpiry: bigint | number;
|
|
748
|
+
gitlabScopes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
749
|
+
gitlabRefreshLeaseUntil?: bigint | number | null;
|
|
660
750
|
gitlabUserId: number;
|
|
661
751
|
gitlabUsername: string;
|
|
662
752
|
gitlabApiUrl?: string | null;
|
|
663
753
|
instanceLabel?: string | null;
|
|
664
754
|
clientId: string;
|
|
665
755
|
scopes?: Prisma.OAuthSessionCreatescopesInput | string[];
|
|
756
|
+
resource?: string | null;
|
|
666
757
|
createdAt: bigint | number;
|
|
667
758
|
updatedAt: bigint | number;
|
|
668
759
|
authorizationCodes?: Prisma.AuthorizationCodeUncheckedCreateNestedManyWithoutSessionInput;
|
|
@@ -688,12 +779,15 @@ export type OAuthSessionUpdateWithoutMcpSessionMappingsInput = {
|
|
|
688
779
|
gitlabAccessToken?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
689
780
|
gitlabRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
690
781
|
gitlabTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
782
|
+
gitlabScopes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
783
|
+
gitlabRefreshLeaseUntil?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
691
784
|
gitlabUserId?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
692
785
|
gitlabUsername?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
693
786
|
gitlabApiUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
694
787
|
instanceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
695
788
|
clientId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
696
789
|
scopes?: Prisma.OAuthSessionUpdatescopesInput | string[];
|
|
790
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
697
791
|
createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
698
792
|
updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
699
793
|
authorizationCodes?: Prisma.AuthorizationCodeUpdateManyWithoutSessionNestedInput;
|
|
@@ -706,12 +800,15 @@ export type OAuthSessionUncheckedUpdateWithoutMcpSessionMappingsInput = {
|
|
|
706
800
|
gitlabAccessToken?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
707
801
|
gitlabRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
708
802
|
gitlabTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
803
|
+
gitlabScopes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
804
|
+
gitlabRefreshLeaseUntil?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
709
805
|
gitlabUserId?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
710
806
|
gitlabUsername?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
711
807
|
gitlabApiUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
712
808
|
instanceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
713
809
|
clientId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
714
810
|
scopes?: Prisma.OAuthSessionUpdatescopesInput | string[];
|
|
811
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
715
812
|
createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
716
813
|
updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
717
814
|
authorizationCodes?: Prisma.AuthorizationCodeUncheckedUpdateManyWithoutSessionNestedInput;
|
|
@@ -741,12 +838,15 @@ export type OAuthSessionSelect<ExtArgs extends runtime.Types.Extensions.Internal
|
|
|
741
838
|
gitlabAccessToken?: boolean;
|
|
742
839
|
gitlabRefreshToken?: boolean;
|
|
743
840
|
gitlabTokenExpiry?: boolean;
|
|
841
|
+
gitlabScopes?: boolean;
|
|
842
|
+
gitlabRefreshLeaseUntil?: boolean;
|
|
744
843
|
gitlabUserId?: boolean;
|
|
745
844
|
gitlabUsername?: boolean;
|
|
746
845
|
gitlabApiUrl?: boolean;
|
|
747
846
|
instanceLabel?: boolean;
|
|
748
847
|
clientId?: boolean;
|
|
749
848
|
scopes?: boolean;
|
|
849
|
+
resource?: boolean;
|
|
750
850
|
createdAt?: boolean;
|
|
751
851
|
updatedAt?: boolean;
|
|
752
852
|
authorizationCodes?: boolean | Prisma.OAuthSession$authorizationCodesArgs<ExtArgs>;
|
|
@@ -761,12 +861,15 @@ export type OAuthSessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.
|
|
|
761
861
|
gitlabAccessToken?: boolean;
|
|
762
862
|
gitlabRefreshToken?: boolean;
|
|
763
863
|
gitlabTokenExpiry?: boolean;
|
|
864
|
+
gitlabScopes?: boolean;
|
|
865
|
+
gitlabRefreshLeaseUntil?: boolean;
|
|
764
866
|
gitlabUserId?: boolean;
|
|
765
867
|
gitlabUsername?: boolean;
|
|
766
868
|
gitlabApiUrl?: boolean;
|
|
767
869
|
instanceLabel?: boolean;
|
|
768
870
|
clientId?: boolean;
|
|
769
871
|
scopes?: boolean;
|
|
872
|
+
resource?: boolean;
|
|
770
873
|
createdAt?: boolean;
|
|
771
874
|
updatedAt?: boolean;
|
|
772
875
|
}, ExtArgs["result"]["oAuthSession"]>;
|
|
@@ -778,12 +881,15 @@ export type OAuthSessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.
|
|
|
778
881
|
gitlabAccessToken?: boolean;
|
|
779
882
|
gitlabRefreshToken?: boolean;
|
|
780
883
|
gitlabTokenExpiry?: boolean;
|
|
884
|
+
gitlabScopes?: boolean;
|
|
885
|
+
gitlabRefreshLeaseUntil?: boolean;
|
|
781
886
|
gitlabUserId?: boolean;
|
|
782
887
|
gitlabUsername?: boolean;
|
|
783
888
|
gitlabApiUrl?: boolean;
|
|
784
889
|
instanceLabel?: boolean;
|
|
785
890
|
clientId?: boolean;
|
|
786
891
|
scopes?: boolean;
|
|
892
|
+
resource?: boolean;
|
|
787
893
|
createdAt?: boolean;
|
|
788
894
|
updatedAt?: boolean;
|
|
789
895
|
}, ExtArgs["result"]["oAuthSession"]>;
|
|
@@ -795,16 +901,19 @@ export type OAuthSessionSelectScalar = {
|
|
|
795
901
|
gitlabAccessToken?: boolean;
|
|
796
902
|
gitlabRefreshToken?: boolean;
|
|
797
903
|
gitlabTokenExpiry?: boolean;
|
|
904
|
+
gitlabScopes?: boolean;
|
|
905
|
+
gitlabRefreshLeaseUntil?: boolean;
|
|
798
906
|
gitlabUserId?: boolean;
|
|
799
907
|
gitlabUsername?: boolean;
|
|
800
908
|
gitlabApiUrl?: boolean;
|
|
801
909
|
instanceLabel?: boolean;
|
|
802
910
|
clientId?: boolean;
|
|
803
911
|
scopes?: boolean;
|
|
912
|
+
resource?: boolean;
|
|
804
913
|
createdAt?: boolean;
|
|
805
914
|
updatedAt?: boolean;
|
|
806
915
|
};
|
|
807
|
-
export type OAuthSessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "mcpAccessToken" | "mcpRefreshToken" | "mcpTokenExpiry" | "gitlabAccessToken" | "gitlabRefreshToken" | "gitlabTokenExpiry" | "gitlabUserId" | "gitlabUsername" | "gitlabApiUrl" | "instanceLabel" | "clientId" | "scopes" | "createdAt" | "updatedAt", ExtArgs["result"]["oAuthSession"]>;
|
|
916
|
+
export type OAuthSessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "mcpAccessToken" | "mcpRefreshToken" | "mcpTokenExpiry" | "gitlabAccessToken" | "gitlabRefreshToken" | "gitlabTokenExpiry" | "gitlabScopes" | "gitlabRefreshLeaseUntil" | "gitlabUserId" | "gitlabUsername" | "gitlabApiUrl" | "instanceLabel" | "clientId" | "scopes" | "resource" | "createdAt" | "updatedAt", ExtArgs["result"]["oAuthSession"]>;
|
|
808
917
|
export type OAuthSessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
809
918
|
authorizationCodes?: boolean | Prisma.OAuthSession$authorizationCodesArgs<ExtArgs>;
|
|
810
919
|
mcpSessionMappings?: boolean | Prisma.OAuthSession$mcpSessionMappingsArgs<ExtArgs>;
|
|
@@ -826,12 +935,15 @@ export type $OAuthSessionPayload<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
826
935
|
gitlabAccessToken: string;
|
|
827
936
|
gitlabRefreshToken: string;
|
|
828
937
|
gitlabTokenExpiry: bigint;
|
|
938
|
+
gitlabScopes: runtime.JsonValue | null;
|
|
939
|
+
gitlabRefreshLeaseUntil: bigint | null;
|
|
829
940
|
gitlabUserId: number;
|
|
830
941
|
gitlabUsername: string;
|
|
831
942
|
gitlabApiUrl: string | null;
|
|
832
943
|
instanceLabel: string | null;
|
|
833
944
|
clientId: string;
|
|
834
945
|
scopes: string[];
|
|
946
|
+
resource: string | null;
|
|
835
947
|
createdAt: bigint;
|
|
836
948
|
updatedAt: bigint;
|
|
837
949
|
}, ExtArgs["result"]["oAuthSession"]>;
|
|
@@ -900,12 +1012,15 @@ export interface OAuthSessionFieldRefs {
|
|
|
900
1012
|
readonly gitlabAccessToken: Prisma.FieldRef<"OAuthSession", 'String'>;
|
|
901
1013
|
readonly gitlabRefreshToken: Prisma.FieldRef<"OAuthSession", 'String'>;
|
|
902
1014
|
readonly gitlabTokenExpiry: Prisma.FieldRef<"OAuthSession", 'BigInt'>;
|
|
1015
|
+
readonly gitlabScopes: Prisma.FieldRef<"OAuthSession", 'Json'>;
|
|
1016
|
+
readonly gitlabRefreshLeaseUntil: Prisma.FieldRef<"OAuthSession", 'BigInt'>;
|
|
903
1017
|
readonly gitlabUserId: Prisma.FieldRef<"OAuthSession", 'Int'>;
|
|
904
1018
|
readonly gitlabUsername: Prisma.FieldRef<"OAuthSession", 'String'>;
|
|
905
1019
|
readonly gitlabApiUrl: Prisma.FieldRef<"OAuthSession", 'String'>;
|
|
906
1020
|
readonly instanceLabel: Prisma.FieldRef<"OAuthSession", 'String'>;
|
|
907
1021
|
readonly clientId: Prisma.FieldRef<"OAuthSession", 'String'>;
|
|
908
1022
|
readonly scopes: Prisma.FieldRef<"OAuthSession", 'String[]'>;
|
|
1023
|
+
readonly resource: Prisma.FieldRef<"OAuthSession", 'String'>;
|
|
909
1024
|
readonly createdAt: Prisma.FieldRef<"OAuthSession", 'BigInt'>;
|
|
910
1025
|
readonly updatedAt: Prisma.FieldRef<"OAuthSession", 'BigInt'>;
|
|
911
1026
|
}
|
|
@@ -2,5 +2,7 @@ export type * from './models/OAuthSession';
|
|
|
2
2
|
export type * from './models/DeviceFlowState';
|
|
3
3
|
export type * from './models/AuthCodeFlowState';
|
|
4
4
|
export type * from './models/AuthorizationCode';
|
|
5
|
+
export type * from './models/OAuthClient';
|
|
6
|
+
export type * from './models/AccountSettings';
|
|
5
7
|
export type * from './models/McpSessionMapping';
|
|
6
8
|
export type * from './commonInputTypes';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface Queryable {
|
|
2
|
+
query(text: string, values?: unknown[]): Promise<{
|
|
3
|
+
rows: unknown[];
|
|
4
|
+
}>;
|
|
5
|
+
end(): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export interface MigrateDeps {
|
|
8
|
+
connect(url: string, timeoutMs: number): Promise<Queryable>;
|
|
9
|
+
prisma(args: string[]): number;
|
|
10
|
+
sleep(ms: number): Promise<void>;
|
|
11
|
+
now(): number;
|
|
12
|
+
log(message: string): void;
|
|
13
|
+
}
|
|
14
|
+
export declare function migrate(url: string | undefined, deps: MigrateDeps): Promise<number>;
|
|
15
|
+
export declare function connectPostgres(url: string, timeoutMs: number): Promise<Queryable>;
|
|
16
|
+
export {};
|