@adaptware/eagles-db 0.6.10 → 0.6.12

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-82ceb8f6b5d6a7eb0b834f41702127fde31517c088c1353e8a1eb2b952f1ff3a",
2
+ "name": "prisma-client-85eb67d1c6db13d7a51d676a41064b8b3e277525eb6cbdc919e865236fcaa07d",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "default.js",
@@ -3316,6 +3316,76 @@ model LiveAnalysis {
3316
3316
  @@schema("public")
3317
3317
  }
3318
3318
 
3319
+ /// MCP OAuth clients, authorize requests, auth codes, and refresh tokens.
3320
+ /// user_id is a plain string. These models do not add a relation on User.
3321
+
3322
+ model McpOAuthClient {
3323
+ id String @id @default(uuid())
3324
+ client_id String @unique
3325
+ name String?
3326
+ redirect_uris String
3327
+ organisation_id String
3328
+ is_active Boolean @default(true)
3329
+ created_at DateTime @default(now())
3330
+
3331
+ @@index([organisation_id])
3332
+ @@schema("public")
3333
+ }
3334
+
3335
+ model McpOAuthRequest {
3336
+ id String @id @default(uuid())
3337
+ organisation_id String
3338
+ client_id String
3339
+ redirect_uri String
3340
+ code_challenge String
3341
+ state String?
3342
+ resource String
3343
+ csrf_hash String?
3344
+ session_hash String?
3345
+ ticket_hash String?
3346
+ user_id String?
3347
+ expires_at DateTime
3348
+ used_at DateTime?
3349
+ created_at DateTime @default(now())
3350
+
3351
+ @@index([organisation_id, expires_at])
3352
+ @@schema("public")
3353
+ }
3354
+
3355
+ model McpOAuthCode {
3356
+ id String @id @default(uuid())
3357
+ code_hash String @unique
3358
+ organisation_id String
3359
+ client_id String
3360
+ user_id String
3361
+ redirect_uri String
3362
+ code_challenge String
3363
+ resource String
3364
+ expires_at DateTime
3365
+ used_at DateTime?
3366
+ created_at DateTime @default(now())
3367
+
3368
+ @@index([organisation_id, expires_at])
3369
+ @@schema("public")
3370
+ }
3371
+
3372
+ model McpOAuthRefreshToken {
3373
+ id String @id @default(uuid())
3374
+ token_hash String @unique
3375
+ family_id String
3376
+ organisation_id String
3377
+ client_id String
3378
+ user_id String
3379
+ resource String
3380
+ expires_at DateTime
3381
+ revoked_at DateTime?
3382
+ created_at DateTime @default(now())
3383
+
3384
+ @@index([family_id])
3385
+ @@index([expires_at])
3386
+ @@schema("public")
3387
+ }
3388
+
3319
3389
  model Message {
3320
3390
  id String @id @default(uuid())
3321
3391
  sender_id String