@alteran/astro 0.7.6 → 0.8.1

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 (75) hide show
  1. package/README.md +25 -25
  2. package/migrations/0010_eminent_klaw.sql +37 -0
  3. package/migrations/0011_chief_darwin.sql +31 -0
  4. package/migrations/0012_backfill_blob_usage.sql +39 -0
  5. package/migrations/meta/0010_snapshot.json +790 -0
  6. package/migrations/meta/0011_snapshot.json +813 -0
  7. package/migrations/meta/_journal.json +22 -1
  8. package/package.json +24 -41
  9. package/src/db/blob.ts +323 -0
  10. package/src/db/dal.ts +224 -78
  11. package/src/db/repo.ts +205 -25
  12. package/src/db/schema.ts +14 -5
  13. package/src/handlers/debug.ts +4 -3
  14. package/src/lib/appview/auth-policy.ts +7 -24
  15. package/src/lib/appview/proxy.ts +56 -23
  16. package/src/lib/appview/types.ts +1 -6
  17. package/src/lib/auth-scope.ts +399 -0
  18. package/src/lib/auth.ts +40 -39
  19. package/src/lib/commit.ts +37 -15
  20. package/src/lib/did-document.ts +4 -5
  21. package/src/lib/jwt.ts +3 -1
  22. package/src/lib/mime.ts +9 -0
  23. package/src/lib/oauth/observability.ts +53 -12
  24. package/src/lib/oauth/resource.ts +49 -0
  25. package/src/lib/preference-policy.ts +45 -0
  26. package/src/lib/preferences.ts +0 -4
  27. package/src/lib/public-host.ts +127 -0
  28. package/src/lib/ratelimit.ts +37 -12
  29. package/src/lib/relay.ts +7 -27
  30. package/src/lib/repo-write-blob-constraints.ts +141 -0
  31. package/src/lib/repo-write-data.ts +195 -0
  32. package/src/lib/repo-write-error.ts +46 -0
  33. package/src/lib/repo-write-validation.ts +463 -0
  34. package/src/lib/session-tokens.ts +22 -5
  35. package/src/lib/unsupported-routes.ts +32 -0
  36. package/src/lib/util.ts +57 -2
  37. package/src/pages/.well-known/atproto-did.ts +15 -3
  38. package/src/pages/.well-known/did.json.ts +13 -7
  39. package/src/pages/debug/db/bootstrap.ts +4 -3
  40. package/src/pages/debug/gc/blobs.ts +11 -8
  41. package/src/pages/debug/record.ts +11 -0
  42. package/src/pages/oauth/token.ts +78 -33
  43. package/src/pages/xrpc/[...nsid].ts +17 -9
  44. package/src/pages/xrpc/app.bsky.actor.getPreferences.ts +9 -3
  45. package/src/pages/xrpc/app.bsky.actor.putPreferences.ts +17 -4
  46. package/src/pages/xrpc/app.bsky.unspecced.getAgeAssuranceState.ts +4 -2
  47. package/src/pages/xrpc/chat.bsky.convo.getLog.ts +4 -2
  48. package/src/pages/xrpc/chat.bsky.convo.listConvos.ts +4 -2
  49. package/src/pages/xrpc/com.atproto.identity.getRecommendedDidCredentials.ts +10 -6
  50. package/src/pages/xrpc/com.atproto.identity.requestPlcOperationSignature.ts +4 -3
  51. package/src/pages/xrpc/com.atproto.identity.resolveHandle.ts +13 -5
  52. package/src/pages/xrpc/com.atproto.identity.signPlcOperation.ts +4 -2
  53. package/src/pages/xrpc/com.atproto.identity.submitPlcOperation.ts +4 -2
  54. package/src/pages/xrpc/com.atproto.identity.updateHandle.ts +12 -36
  55. package/src/pages/xrpc/com.atproto.repo.applyWrites.ts +90 -139
  56. package/src/pages/xrpc/com.atproto.repo.createRecord.ts +74 -47
  57. package/src/pages/xrpc/com.atproto.repo.deleteRecord.ts +119 -46
  58. package/src/pages/xrpc/com.atproto.repo.describeRepo.ts +21 -20
  59. package/src/pages/xrpc/com.atproto.repo.getRecord.ts +6 -1
  60. package/src/pages/xrpc/com.atproto.repo.listMissingBlobs.ts +4 -2
  61. package/src/pages/xrpc/com.atproto.repo.putRecord.ts +84 -47
  62. package/src/pages/xrpc/com.atproto.repo.uploadBlob.ts +199 -78
  63. package/src/pages/xrpc/com.atproto.server.checkAccountStatus.ts +4 -2
  64. package/src/pages/xrpc/com.atproto.server.getServiceAuth.ts +88 -21
  65. package/src/pages/xrpc/com.atproto.server.getSession.ts +3 -13
  66. package/src/pages/xrpc/com.atproto.sync.getBlob.ts +92 -74
  67. package/src/pages/xrpc/com.atproto.sync.listBlobs.ts +45 -23
  68. package/src/services/car.ts +13 -0
  69. package/src/services/repo/apply-prepared-writes.ts +185 -0
  70. package/src/services/repo/blob-refs.ts +48 -0
  71. package/src/services/repo/blockstore-ops.ts +59 -17
  72. package/src/services/repo/list-blobs.ts +43 -0
  73. package/src/services/repo-manager.ts +221 -78
  74. package/src/worker/runtime.ts +1 -1
  75. package/src/worker/sequencer/upgrade.ts +4 -1
@@ -0,0 +1,790 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "84905523-1c36-4c05-9566-31675c1f1ccf",
5
+ "prevId": "730102dd-3a0d-4793-9f74-1f21a2eeefbc",
6
+ "tables": {
7
+ "account": {
8
+ "name": "account",
9
+ "columns": {
10
+ "did": {
11
+ "name": "did",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "handle": {
18
+ "name": "handle",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "password_scrypt": {
25
+ "name": "password_scrypt",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": false,
29
+ "autoincrement": false
30
+ },
31
+ "email": {
32
+ "name": "email",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "created_at": {
39
+ "name": "created_at",
40
+ "type": "integer",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "updated_at": {
46
+ "name": "updated_at",
47
+ "type": "integer",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ }
52
+ },
53
+ "indexes": {
54
+ "account_handle_unique": {
55
+ "name": "account_handle_unique",
56
+ "columns": [
57
+ "handle"
58
+ ],
59
+ "isUnique": true
60
+ }
61
+ },
62
+ "foreignKeys": {},
63
+ "compositePrimaryKeys": {},
64
+ "uniqueConstraints": {},
65
+ "checkConstraints": {}
66
+ },
67
+ "account_state": {
68
+ "name": "account_state",
69
+ "columns": {
70
+ "did": {
71
+ "name": "did",
72
+ "type": "text",
73
+ "primaryKey": true,
74
+ "notNull": true,
75
+ "autoincrement": false
76
+ },
77
+ "active": {
78
+ "name": "active",
79
+ "type": "integer",
80
+ "primaryKey": false,
81
+ "notNull": true,
82
+ "autoincrement": false,
83
+ "default": false
84
+ },
85
+ "status": {
86
+ "name": "status",
87
+ "type": "text",
88
+ "primaryKey": false,
89
+ "notNull": false,
90
+ "autoincrement": false
91
+ },
92
+ "suspended_until": {
93
+ "name": "suspended_until",
94
+ "type": "integer",
95
+ "primaryKey": false,
96
+ "notNull": false,
97
+ "autoincrement": false
98
+ },
99
+ "created_at": {
100
+ "name": "created_at",
101
+ "type": "integer",
102
+ "primaryKey": false,
103
+ "notNull": true,
104
+ "autoincrement": false
105
+ }
106
+ },
107
+ "indexes": {},
108
+ "foreignKeys": {},
109
+ "compositePrimaryKeys": {},
110
+ "uniqueConstraints": {},
111
+ "checkConstraints": {}
112
+ },
113
+ "blob_quota": {
114
+ "name": "blob_quota",
115
+ "columns": {
116
+ "did": {
117
+ "name": "did",
118
+ "type": "text",
119
+ "primaryKey": true,
120
+ "notNull": true,
121
+ "autoincrement": false
122
+ },
123
+ "total_bytes": {
124
+ "name": "total_bytes",
125
+ "type": "integer",
126
+ "primaryKey": false,
127
+ "notNull": true,
128
+ "autoincrement": false,
129
+ "default": 0
130
+ },
131
+ "blob_count": {
132
+ "name": "blob_count",
133
+ "type": "integer",
134
+ "primaryKey": false,
135
+ "notNull": true,
136
+ "autoincrement": false,
137
+ "default": 0
138
+ },
139
+ "updated_at": {
140
+ "name": "updated_at",
141
+ "type": "integer",
142
+ "primaryKey": false,
143
+ "notNull": true,
144
+ "autoincrement": false
145
+ }
146
+ },
147
+ "indexes": {},
148
+ "foreignKeys": {},
149
+ "compositePrimaryKeys": {},
150
+ "uniqueConstraints": {},
151
+ "checkConstraints": {}
152
+ },
153
+ "blob": {
154
+ "name": "blob",
155
+ "columns": {
156
+ "cid": {
157
+ "name": "cid",
158
+ "type": "text",
159
+ "primaryKey": false,
160
+ "notNull": true,
161
+ "autoincrement": false
162
+ },
163
+ "did": {
164
+ "name": "did",
165
+ "type": "text",
166
+ "primaryKey": false,
167
+ "notNull": true,
168
+ "autoincrement": false
169
+ },
170
+ "key": {
171
+ "name": "key",
172
+ "type": "text",
173
+ "primaryKey": false,
174
+ "notNull": true,
175
+ "autoincrement": false
176
+ },
177
+ "mime": {
178
+ "name": "mime",
179
+ "type": "text",
180
+ "primaryKey": false,
181
+ "notNull": true,
182
+ "autoincrement": false
183
+ },
184
+ "size": {
185
+ "name": "size",
186
+ "type": "integer",
187
+ "primaryKey": false,
188
+ "notNull": true,
189
+ "autoincrement": false
190
+ },
191
+ "uploaded_at": {
192
+ "name": "uploaded_at",
193
+ "type": "integer",
194
+ "primaryKey": false,
195
+ "notNull": true,
196
+ "autoincrement": false,
197
+ "default": 0
198
+ }
199
+ },
200
+ "indexes": {
201
+ "blob_key_idx": {
202
+ "name": "blob_key_idx",
203
+ "columns": [
204
+ "key"
205
+ ],
206
+ "isUnique": false
207
+ }
208
+ },
209
+ "foreignKeys": {},
210
+ "compositePrimaryKeys": {
211
+ "blob_did_cid_pk": {
212
+ "columns": [
213
+ "did",
214
+ "cid"
215
+ ],
216
+ "name": "blob_did_cid_pk"
217
+ }
218
+ },
219
+ "uniqueConstraints": {},
220
+ "checkConstraints": {}
221
+ },
222
+ "blob_usage": {
223
+ "name": "blob_usage",
224
+ "columns": {
225
+ "did": {
226
+ "name": "did",
227
+ "type": "text",
228
+ "primaryKey": false,
229
+ "notNull": true,
230
+ "autoincrement": false
231
+ },
232
+ "record_uri": {
233
+ "name": "record_uri",
234
+ "type": "text",
235
+ "primaryKey": false,
236
+ "notNull": true,
237
+ "autoincrement": false
238
+ },
239
+ "key": {
240
+ "name": "key",
241
+ "type": "text",
242
+ "primaryKey": false,
243
+ "notNull": true,
244
+ "autoincrement": false
245
+ }
246
+ },
247
+ "indexes": {
248
+ "blob_usage_record_uri_idx": {
249
+ "name": "blob_usage_record_uri_idx",
250
+ "columns": [
251
+ "did",
252
+ "record_uri"
253
+ ],
254
+ "isUnique": false
255
+ },
256
+ "blob_usage_did_key_idx": {
257
+ "name": "blob_usage_did_key_idx",
258
+ "columns": [
259
+ "did",
260
+ "key"
261
+ ],
262
+ "isUnique": false
263
+ }
264
+ },
265
+ "foreignKeys": {},
266
+ "compositePrimaryKeys": {
267
+ "blob_usage_did_record_uri_key_pk": {
268
+ "columns": [
269
+ "did",
270
+ "record_uri",
271
+ "key"
272
+ ],
273
+ "name": "blob_usage_did_record_uri_key_pk"
274
+ }
275
+ },
276
+ "uniqueConstraints": {},
277
+ "checkConstraints": {}
278
+ },
279
+ "blockstore": {
280
+ "name": "blockstore",
281
+ "columns": {
282
+ "cid": {
283
+ "name": "cid",
284
+ "type": "text",
285
+ "primaryKey": true,
286
+ "notNull": true,
287
+ "autoincrement": false
288
+ },
289
+ "bytes": {
290
+ "name": "bytes",
291
+ "type": "text",
292
+ "primaryKey": false,
293
+ "notNull": false,
294
+ "autoincrement": false
295
+ }
296
+ },
297
+ "indexes": {},
298
+ "foreignKeys": {},
299
+ "compositePrimaryKeys": {},
300
+ "uniqueConstraints": {},
301
+ "checkConstraints": {}
302
+ },
303
+ "commit_log": {
304
+ "name": "commit_log",
305
+ "columns": {
306
+ "seq": {
307
+ "name": "seq",
308
+ "type": "integer",
309
+ "primaryKey": true,
310
+ "notNull": true,
311
+ "autoincrement": false
312
+ },
313
+ "cid": {
314
+ "name": "cid",
315
+ "type": "text",
316
+ "primaryKey": false,
317
+ "notNull": true,
318
+ "autoincrement": false
319
+ },
320
+ "rev": {
321
+ "name": "rev",
322
+ "type": "text",
323
+ "primaryKey": false,
324
+ "notNull": true,
325
+ "autoincrement": false
326
+ },
327
+ "data": {
328
+ "name": "data",
329
+ "type": "text",
330
+ "primaryKey": false,
331
+ "notNull": true,
332
+ "autoincrement": false
333
+ },
334
+ "sig": {
335
+ "name": "sig",
336
+ "type": "text",
337
+ "primaryKey": false,
338
+ "notNull": true,
339
+ "autoincrement": false
340
+ },
341
+ "ts": {
342
+ "name": "ts",
343
+ "type": "integer",
344
+ "primaryKey": false,
345
+ "notNull": true,
346
+ "autoincrement": false
347
+ }
348
+ },
349
+ "indexes": {
350
+ "commit_log_seq_idx": {
351
+ "name": "commit_log_seq_idx",
352
+ "columns": [
353
+ "seq"
354
+ ],
355
+ "isUnique": false
356
+ }
357
+ },
358
+ "foreignKeys": {},
359
+ "compositePrimaryKeys": {},
360
+ "uniqueConstraints": {},
361
+ "checkConstraints": {}
362
+ },
363
+ "login_attempts": {
364
+ "name": "login_attempts",
365
+ "columns": {
366
+ "ip": {
367
+ "name": "ip",
368
+ "type": "text",
369
+ "primaryKey": true,
370
+ "notNull": true,
371
+ "autoincrement": false
372
+ },
373
+ "attempts": {
374
+ "name": "attempts",
375
+ "type": "integer",
376
+ "primaryKey": false,
377
+ "notNull": true,
378
+ "autoincrement": false,
379
+ "default": 0
380
+ },
381
+ "locked_until": {
382
+ "name": "locked_until",
383
+ "type": "integer",
384
+ "primaryKey": false,
385
+ "notNull": false,
386
+ "autoincrement": false
387
+ },
388
+ "last_attempt": {
389
+ "name": "last_attempt",
390
+ "type": "integer",
391
+ "primaryKey": false,
392
+ "notNull": true,
393
+ "autoincrement": false
394
+ }
395
+ },
396
+ "indexes": {},
397
+ "foreignKeys": {},
398
+ "compositePrimaryKeys": {},
399
+ "uniqueConstraints": {},
400
+ "checkConstraints": {}
401
+ },
402
+ "oauth_session": {
403
+ "name": "oauth_session",
404
+ "columns": {
405
+ "id": {
406
+ "name": "id",
407
+ "type": "text",
408
+ "primaryKey": true,
409
+ "notNull": true,
410
+ "autoincrement": false
411
+ },
412
+ "did": {
413
+ "name": "did",
414
+ "type": "text",
415
+ "primaryKey": false,
416
+ "notNull": true,
417
+ "autoincrement": false
418
+ },
419
+ "client_id": {
420
+ "name": "client_id",
421
+ "type": "text",
422
+ "primaryKey": false,
423
+ "notNull": true,
424
+ "autoincrement": false
425
+ },
426
+ "client_auth_method": {
427
+ "name": "client_auth_method",
428
+ "type": "text",
429
+ "primaryKey": false,
430
+ "notNull": true,
431
+ "autoincrement": false
432
+ },
433
+ "client_auth_key_id": {
434
+ "name": "client_auth_key_id",
435
+ "type": "text",
436
+ "primaryKey": false,
437
+ "notNull": false,
438
+ "autoincrement": false
439
+ },
440
+ "dpop_jkt": {
441
+ "name": "dpop_jkt",
442
+ "type": "text",
443
+ "primaryKey": false,
444
+ "notNull": true,
445
+ "autoincrement": false
446
+ },
447
+ "scope": {
448
+ "name": "scope",
449
+ "type": "text",
450
+ "primaryKey": false,
451
+ "notNull": true,
452
+ "autoincrement": false
453
+ },
454
+ "current_refresh_token_id": {
455
+ "name": "current_refresh_token_id",
456
+ "type": "text",
457
+ "primaryKey": false,
458
+ "notNull": true,
459
+ "autoincrement": false
460
+ },
461
+ "access_jti": {
462
+ "name": "access_jti",
463
+ "type": "text",
464
+ "primaryKey": false,
465
+ "notNull": true,
466
+ "autoincrement": false
467
+ },
468
+ "created_at": {
469
+ "name": "created_at",
470
+ "type": "integer",
471
+ "primaryKey": false,
472
+ "notNull": true,
473
+ "autoincrement": false
474
+ },
475
+ "updated_at": {
476
+ "name": "updated_at",
477
+ "type": "integer",
478
+ "primaryKey": false,
479
+ "notNull": true,
480
+ "autoincrement": false
481
+ },
482
+ "expires_at": {
483
+ "name": "expires_at",
484
+ "type": "integer",
485
+ "primaryKey": false,
486
+ "notNull": true,
487
+ "autoincrement": false
488
+ },
489
+ "revoked_at": {
490
+ "name": "revoked_at",
491
+ "type": "integer",
492
+ "primaryKey": false,
493
+ "notNull": false,
494
+ "autoincrement": false
495
+ }
496
+ },
497
+ "indexes": {
498
+ "oauth_session_client_idx": {
499
+ "name": "oauth_session_client_idx",
500
+ "columns": [
501
+ "client_id"
502
+ ],
503
+ "isUnique": false
504
+ },
505
+ "oauth_session_current_refresh_idx": {
506
+ "name": "oauth_session_current_refresh_idx",
507
+ "columns": [
508
+ "current_refresh_token_id"
509
+ ],
510
+ "isUnique": false
511
+ },
512
+ "oauth_session_access_jti_idx": {
513
+ "name": "oauth_session_access_jti_idx",
514
+ "columns": [
515
+ "access_jti"
516
+ ],
517
+ "isUnique": false
518
+ }
519
+ },
520
+ "foreignKeys": {},
521
+ "compositePrimaryKeys": {},
522
+ "uniqueConstraints": {},
523
+ "checkConstraints": {}
524
+ },
525
+ "record": {
526
+ "name": "record",
527
+ "columns": {
528
+ "uri": {
529
+ "name": "uri",
530
+ "type": "text",
531
+ "primaryKey": true,
532
+ "notNull": true,
533
+ "autoincrement": false
534
+ },
535
+ "did": {
536
+ "name": "did",
537
+ "type": "text",
538
+ "primaryKey": false,
539
+ "notNull": true,
540
+ "autoincrement": false
541
+ },
542
+ "cid": {
543
+ "name": "cid",
544
+ "type": "text",
545
+ "primaryKey": false,
546
+ "notNull": true,
547
+ "autoincrement": false
548
+ },
549
+ "json": {
550
+ "name": "json",
551
+ "type": "text",
552
+ "primaryKey": false,
553
+ "notNull": true,
554
+ "autoincrement": false
555
+ },
556
+ "created_at": {
557
+ "name": "created_at",
558
+ "type": "integer",
559
+ "primaryKey": false,
560
+ "notNull": false,
561
+ "autoincrement": false,
562
+ "default": 0
563
+ }
564
+ },
565
+ "indexes": {
566
+ "record_did_idx": {
567
+ "name": "record_did_idx",
568
+ "columns": [
569
+ "did"
570
+ ],
571
+ "isUnique": false
572
+ },
573
+ "record_cid_idx": {
574
+ "name": "record_cid_idx",
575
+ "columns": [
576
+ "cid"
577
+ ],
578
+ "isUnique": false
579
+ }
580
+ },
581
+ "foreignKeys": {},
582
+ "compositePrimaryKeys": {},
583
+ "uniqueConstraints": {},
584
+ "checkConstraints": {}
585
+ },
586
+ "refresh_token": {
587
+ "name": "refresh_token",
588
+ "columns": {
589
+ "id": {
590
+ "name": "id",
591
+ "type": "text",
592
+ "primaryKey": true,
593
+ "notNull": true,
594
+ "autoincrement": false
595
+ },
596
+ "did": {
597
+ "name": "did",
598
+ "type": "text",
599
+ "primaryKey": false,
600
+ "notNull": true,
601
+ "autoincrement": false
602
+ },
603
+ "expires_at": {
604
+ "name": "expires_at",
605
+ "type": "integer",
606
+ "primaryKey": false,
607
+ "notNull": true,
608
+ "autoincrement": false
609
+ },
610
+ "app_password_name": {
611
+ "name": "app_password_name",
612
+ "type": "text",
613
+ "primaryKey": false,
614
+ "notNull": false,
615
+ "autoincrement": false
616
+ },
617
+ "next_id": {
618
+ "name": "next_id",
619
+ "type": "text",
620
+ "primaryKey": false,
621
+ "notNull": false,
622
+ "autoincrement": false
623
+ },
624
+ "token_kind": {
625
+ "name": "token_kind",
626
+ "type": "text",
627
+ "primaryKey": false,
628
+ "notNull": true,
629
+ "autoincrement": false,
630
+ "default": "'legacy'"
631
+ },
632
+ "oauth_session_id": {
633
+ "name": "oauth_session_id",
634
+ "type": "text",
635
+ "primaryKey": false,
636
+ "notNull": false,
637
+ "autoincrement": false
638
+ },
639
+ "client_id": {
640
+ "name": "client_id",
641
+ "type": "text",
642
+ "primaryKey": false,
643
+ "notNull": false,
644
+ "autoincrement": false
645
+ },
646
+ "client_auth_method": {
647
+ "name": "client_auth_method",
648
+ "type": "text",
649
+ "primaryKey": false,
650
+ "notNull": false,
651
+ "autoincrement": false
652
+ },
653
+ "client_auth_key_id": {
654
+ "name": "client_auth_key_id",
655
+ "type": "text",
656
+ "primaryKey": false,
657
+ "notNull": false,
658
+ "autoincrement": false
659
+ },
660
+ "dpop_jkt": {
661
+ "name": "dpop_jkt",
662
+ "type": "text",
663
+ "primaryKey": false,
664
+ "notNull": false,
665
+ "autoincrement": false
666
+ },
667
+ "oauth_scope": {
668
+ "name": "oauth_scope",
669
+ "type": "text",
670
+ "primaryKey": false,
671
+ "notNull": false,
672
+ "autoincrement": false
673
+ },
674
+ "access_jti": {
675
+ "name": "access_jti",
676
+ "type": "text",
677
+ "primaryKey": false,
678
+ "notNull": false,
679
+ "autoincrement": false
680
+ },
681
+ "revoked_at": {
682
+ "name": "revoked_at",
683
+ "type": "integer",
684
+ "primaryKey": false,
685
+ "notNull": false,
686
+ "autoincrement": false
687
+ }
688
+ },
689
+ "indexes": {
690
+ "refresh_token_did_idx": {
691
+ "name": "refresh_token_did_idx",
692
+ "columns": [
693
+ "did"
694
+ ],
695
+ "isUnique": false
696
+ },
697
+ "refresh_token_oauth_session_idx": {
698
+ "name": "refresh_token_oauth_session_idx",
699
+ "columns": [
700
+ "oauth_session_id"
701
+ ],
702
+ "isUnique": false
703
+ },
704
+ "refresh_token_access_jti_idx": {
705
+ "name": "refresh_token_access_jti_idx",
706
+ "columns": [
707
+ "access_jti"
708
+ ],
709
+ "isUnique": false
710
+ }
711
+ },
712
+ "foreignKeys": {},
713
+ "compositePrimaryKeys": {},
714
+ "uniqueConstraints": {},
715
+ "checkConstraints": {}
716
+ },
717
+ "repo_root": {
718
+ "name": "repo_root",
719
+ "columns": {
720
+ "did": {
721
+ "name": "did",
722
+ "type": "text",
723
+ "primaryKey": true,
724
+ "notNull": true,
725
+ "autoincrement": false
726
+ },
727
+ "commit_cid": {
728
+ "name": "commit_cid",
729
+ "type": "text",
730
+ "primaryKey": false,
731
+ "notNull": true,
732
+ "autoincrement": false
733
+ },
734
+ "rev": {
735
+ "name": "rev",
736
+ "type": "text",
737
+ "primaryKey": false,
738
+ "notNull": true,
739
+ "autoincrement": false
740
+ }
741
+ },
742
+ "indexes": {},
743
+ "foreignKeys": {},
744
+ "compositePrimaryKeys": {},
745
+ "uniqueConstraints": {},
746
+ "checkConstraints": {}
747
+ },
748
+ "secret": {
749
+ "name": "secret",
750
+ "columns": {
751
+ "key": {
752
+ "name": "key",
753
+ "type": "text",
754
+ "primaryKey": true,
755
+ "notNull": true,
756
+ "autoincrement": false
757
+ },
758
+ "value": {
759
+ "name": "value",
760
+ "type": "text",
761
+ "primaryKey": false,
762
+ "notNull": true,
763
+ "autoincrement": false
764
+ },
765
+ "updated_at": {
766
+ "name": "updated_at",
767
+ "type": "integer",
768
+ "primaryKey": false,
769
+ "notNull": true,
770
+ "autoincrement": false
771
+ }
772
+ },
773
+ "indexes": {},
774
+ "foreignKeys": {},
775
+ "compositePrimaryKeys": {},
776
+ "uniqueConstraints": {},
777
+ "checkConstraints": {}
778
+ }
779
+ },
780
+ "views": {},
781
+ "enums": {},
782
+ "_meta": {
783
+ "schemas": {},
784
+ "tables": {},
785
+ "columns": {}
786
+ },
787
+ "internal": {
788
+ "indexes": {}
789
+ }
790
+ }