@alteran/astro 0.3.9 → 0.5.2
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/LICENSE +21 -0
- package/README.md +19 -30
- package/index.js +34 -28
- package/migrations/0007_bored_spitfire.sql +26 -0
- package/migrations/0008_furry_ozymandias.sql +2 -0
- package/migrations/meta/0007_snapshot.json +534 -0
- package/migrations/meta/0008_snapshot.json +548 -0
- package/migrations/meta/_journal.json +14 -0
- package/package.json +10 -9
- package/src/app.ts +8 -4
- package/src/db/account.ts +25 -6
- package/src/db/dal.ts +34 -23
- package/src/db/repo.ts +35 -35
- package/src/db/schema.ts +5 -1
- package/src/db/seed.ts +5 -13
- package/src/entrypoints/server.ts +2 -22
- package/src/handlers/root.ts +4 -4
- package/src/lib/account-state.ts +156 -0
- package/src/lib/actor.ts +28 -12
- package/src/lib/appview/auth-policy.ts +66 -0
- package/src/lib/appview/did-resolver.ts +233 -0
- package/src/lib/appview/proxy.ts +221 -0
- package/src/lib/appview/service-config.ts +61 -0
- package/src/lib/appview/service-jwt.ts +93 -0
- package/src/lib/appview/types.ts +25 -0
- package/src/lib/appview.ts +5 -532
- package/src/lib/auth-errors.ts +24 -0
- package/src/lib/auth.ts +63 -15
- package/src/lib/blockstore-gc.ts +2 -1
- package/src/lib/cache.ts +30 -4
- package/src/lib/chat.ts +14 -8
- package/src/lib/commit.ts +26 -36
- package/src/lib/config.ts +26 -15
- package/src/lib/did-document.ts +32 -0
- package/src/lib/errors.ts +54 -0
- package/src/lib/feed.ts +18 -19
- package/src/lib/firehose/frames.ts +87 -47
- package/src/lib/firehose/validation.ts +3 -3
- package/src/lib/jwt.ts +85 -177
- package/src/lib/labeler.ts +43 -30
- package/src/lib/logger.ts +4 -0
- package/src/lib/mst/block-map.ts +172 -0
- package/src/lib/mst/blockstore.ts +56 -93
- package/src/lib/mst/index.ts +1 -0
- package/src/lib/mst/leaf.ts +25 -0
- package/src/lib/mst/mst.ts +81 -237
- package/src/lib/mst/serialize.ts +97 -0
- package/src/lib/mst/types.ts +21 -0
- package/src/lib/oauth/clients.ts +67 -0
- package/src/lib/oauth/dpop-errors.ts +15 -0
- package/src/lib/oauth/dpop.ts +150 -0
- package/src/lib/oauth/resource.ts +199 -0
- package/src/lib/oauth/store.ts +77 -0
- package/src/lib/preferences.ts +9 -34
- package/src/lib/refresh-session.ts +161 -0
- package/src/lib/relay.ts +10 -8
- package/src/lib/secrets.ts +6 -7
- package/src/lib/sequencer.ts +12 -3
- package/src/lib/service-auth.ts +184 -0
- package/src/lib/session-tokens.ts +28 -76
- package/src/lib/streaming-car.ts +3 -0
- package/src/lib/tracing.ts +4 -3
- package/src/lib/util.ts +65 -15
- package/src/middleware.ts +1 -1
- package/src/pages/.well-known/did.json.ts +27 -30
- package/src/pages/.well-known/oauth-authorization-server.ts +31 -0
- package/src/pages/.well-known/oauth-protected-resource.ts +22 -0
- package/src/pages/debug/record.ts +1 -1
- package/src/pages/debug/sequencer.ts +28 -0
- package/src/pages/oauth/authorize.ts +78 -0
- package/src/pages/oauth/consent.ts +80 -0
- package/src/pages/oauth/par.ts +121 -0
- package/src/pages/oauth/token.ts +158 -0
- package/src/pages/xrpc/[...nsid].ts +61 -0
- package/src/pages/xrpc/app.bsky.actor.getPreferences.ts +12 -13
- package/src/pages/xrpc/app.bsky.actor.putPreferences.ts +23 -23
- package/src/pages/xrpc/app.bsky.unspecced.getAgeAssuranceState.ts +9 -2
- package/src/pages/xrpc/chat.bsky.convo.getLog.ts +9 -2
- package/src/pages/xrpc/chat.bsky.convo.listConvos.ts +9 -2
- package/src/pages/xrpc/com.atproto.identity.getRecommendedDidCredentials.ts +43 -41
- package/src/pages/xrpc/com.atproto.identity.requestPlcOperationSignature.ts +10 -3
- package/src/pages/xrpc/com.atproto.identity.resolveHandle.ts +40 -9
- package/src/pages/xrpc/com.atproto.identity.signPlcOperation.ts +41 -29
- package/src/pages/xrpc/com.atproto.identity.submitPlcOperation.ts +20 -6
- package/src/pages/xrpc/com.atproto.identity.updateHandle.ts +1 -1
- package/src/pages/xrpc/com.atproto.repo.applyWrites.ts +101 -11
- package/src/pages/xrpc/com.atproto.repo.createRecord.ts +44 -14
- package/src/pages/xrpc/com.atproto.repo.deleteRecord.ts +41 -13
- package/src/pages/xrpc/com.atproto.repo.describeRepo.ts +2 -2
- package/src/pages/xrpc/com.atproto.repo.getRecord.ts +14 -1
- package/src/pages/xrpc/com.atproto.repo.listMissingBlobs.ts +14 -6
- package/src/pages/xrpc/com.atproto.repo.listRecords.ts +1 -1
- package/src/pages/xrpc/com.atproto.repo.putRecord.ts +42 -14
- package/src/pages/xrpc/com.atproto.repo.uploadBlob.ts +76 -15
- package/src/pages/xrpc/com.atproto.server.checkAccountStatus.ts +20 -8
- package/src/pages/xrpc/com.atproto.server.createSession.ts +31 -11
- package/src/pages/xrpc/com.atproto.server.describeServer.ts +1 -1
- package/src/pages/xrpc/com.atproto.server.getServiceAuth.ts +12 -5
- package/src/pages/xrpc/com.atproto.server.getSession.ts +22 -8
- package/src/pages/xrpc/com.atproto.server.refreshSession.ts +30 -72
- package/src/pages/xrpc/com.atproto.sync.getBlob.ts +71 -22
- package/src/pages/xrpc/com.atproto.sync.getCheckout.json.ts +1 -1
- package/src/pages/xrpc/com.atproto.sync.getCheckout.ts +1 -1
- package/src/pages/xrpc/com.atproto.sync.getHead.ts +7 -2
- package/src/pages/xrpc/com.atproto.sync.getLatestCommit.ts +1 -1
- package/src/pages/xrpc/com.atproto.sync.getRecord.ts +5 -27
- package/src/pages/xrpc/com.atproto.sync.getRepo.json.ts +1 -1
- package/src/pages/xrpc/com.atproto.sync.getRepo.ts +50 -5
- package/src/pages/xrpc/com.atproto.sync.getRepoStatus.ts +58 -0
- package/src/pages/xrpc/com.atproto.sync.listBlobs.ts +1 -1
- package/src/pages/xrpc/com.atproto.sync.listRepos.ts +5 -3
- package/src/services/car.ts +207 -55
- package/src/services/r2-blob-store.ts +1 -1
- package/src/services/repo/blockstore-ops.ts +29 -0
- package/src/services/repo/operations.ts +133 -0
- package/src/services/repo-manager.ts +202 -253
- package/src/worker/runtime.ts +53 -8
- package/src/worker/sequencer/broadcast.ts +91 -0
- package/src/worker/sequencer/cid-helpers.ts +39 -0
- package/src/worker/sequencer/payload.ts +84 -0
- package/src/worker/sequencer/types.ts +36 -0
- package/src/worker/sequencer/upgrade.ts +141 -0
- package/src/worker/sequencer.ts +263 -405
- package/types/env.d.ts +15 -3
- package/src/pages/xrpc/app.bsky.actor.getProfile.ts +0 -49
- package/src/pages/xrpc/app.bsky.actor.getProfiles.ts +0 -51
- package/src/pages/xrpc/app.bsky.feed.getActorFeeds.ts +0 -25
- package/src/pages/xrpc/app.bsky.feed.getAuthorFeed.ts +0 -42
- package/src/pages/xrpc/app.bsky.feed.getFeedGenerators.ts +0 -25
- package/src/pages/xrpc/app.bsky.feed.getPostThread.ts +0 -37
- package/src/pages/xrpc/app.bsky.feed.getPosts.ts +0 -26
- package/src/pages/xrpc/app.bsky.feed.getSuggestedFeeds.ts +0 -23
- package/src/pages/xrpc/app.bsky.feed.getTimeline.ts +0 -47
- package/src/pages/xrpc/app.bsky.graph.getFollowers.ts +0 -29
- package/src/pages/xrpc/app.bsky.graph.getFollows.ts +0 -29
- package/src/pages/xrpc/app.bsky.notification.getUnreadCount.ts +0 -20
- package/src/pages/xrpc/app.bsky.notification.listNotifications.ts +0 -27
- package/src/pages/xrpc/app.bsky.unspecced.getSuggestedFeeds.ts +0 -23
|
@@ -0,0 +1,534 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "6",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "19703635-5874-42ba-9513-5164e4825fa6",
|
|
5
|
+
"prevId": "08df0598-155a-48d1-ae5f-dd88eed67f51",
|
|
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
|
+
"created_at": {
|
|
86
|
+
"name": "created_at",
|
|
87
|
+
"type": "integer",
|
|
88
|
+
"primaryKey": false,
|
|
89
|
+
"notNull": true,
|
|
90
|
+
"autoincrement": false
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"indexes": {},
|
|
94
|
+
"foreignKeys": {},
|
|
95
|
+
"compositePrimaryKeys": {},
|
|
96
|
+
"uniqueConstraints": {},
|
|
97
|
+
"checkConstraints": {}
|
|
98
|
+
},
|
|
99
|
+
"blob_quota": {
|
|
100
|
+
"name": "blob_quota",
|
|
101
|
+
"columns": {
|
|
102
|
+
"did": {
|
|
103
|
+
"name": "did",
|
|
104
|
+
"type": "text",
|
|
105
|
+
"primaryKey": true,
|
|
106
|
+
"notNull": true,
|
|
107
|
+
"autoincrement": false
|
|
108
|
+
},
|
|
109
|
+
"total_bytes": {
|
|
110
|
+
"name": "total_bytes",
|
|
111
|
+
"type": "integer",
|
|
112
|
+
"primaryKey": false,
|
|
113
|
+
"notNull": true,
|
|
114
|
+
"autoincrement": false,
|
|
115
|
+
"default": 0
|
|
116
|
+
},
|
|
117
|
+
"blob_count": {
|
|
118
|
+
"name": "blob_count",
|
|
119
|
+
"type": "integer",
|
|
120
|
+
"primaryKey": false,
|
|
121
|
+
"notNull": true,
|
|
122
|
+
"autoincrement": false,
|
|
123
|
+
"default": 0
|
|
124
|
+
},
|
|
125
|
+
"updated_at": {
|
|
126
|
+
"name": "updated_at",
|
|
127
|
+
"type": "integer",
|
|
128
|
+
"primaryKey": false,
|
|
129
|
+
"notNull": true,
|
|
130
|
+
"autoincrement": false
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"indexes": {},
|
|
134
|
+
"foreignKeys": {},
|
|
135
|
+
"compositePrimaryKeys": {},
|
|
136
|
+
"uniqueConstraints": {},
|
|
137
|
+
"checkConstraints": {}
|
|
138
|
+
},
|
|
139
|
+
"blob": {
|
|
140
|
+
"name": "blob",
|
|
141
|
+
"columns": {
|
|
142
|
+
"cid": {
|
|
143
|
+
"name": "cid",
|
|
144
|
+
"type": "text",
|
|
145
|
+
"primaryKey": true,
|
|
146
|
+
"notNull": true,
|
|
147
|
+
"autoincrement": false
|
|
148
|
+
},
|
|
149
|
+
"did": {
|
|
150
|
+
"name": "did",
|
|
151
|
+
"type": "text",
|
|
152
|
+
"primaryKey": false,
|
|
153
|
+
"notNull": true,
|
|
154
|
+
"autoincrement": false
|
|
155
|
+
},
|
|
156
|
+
"key": {
|
|
157
|
+
"name": "key",
|
|
158
|
+
"type": "text",
|
|
159
|
+
"primaryKey": false,
|
|
160
|
+
"notNull": true,
|
|
161
|
+
"autoincrement": false
|
|
162
|
+
},
|
|
163
|
+
"mime": {
|
|
164
|
+
"name": "mime",
|
|
165
|
+
"type": "text",
|
|
166
|
+
"primaryKey": false,
|
|
167
|
+
"notNull": true,
|
|
168
|
+
"autoincrement": false
|
|
169
|
+
},
|
|
170
|
+
"size": {
|
|
171
|
+
"name": "size",
|
|
172
|
+
"type": "integer",
|
|
173
|
+
"primaryKey": false,
|
|
174
|
+
"notNull": true,
|
|
175
|
+
"autoincrement": false
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"indexes": {},
|
|
179
|
+
"foreignKeys": {},
|
|
180
|
+
"compositePrimaryKeys": {},
|
|
181
|
+
"uniqueConstraints": {},
|
|
182
|
+
"checkConstraints": {}
|
|
183
|
+
},
|
|
184
|
+
"blob_usage": {
|
|
185
|
+
"name": "blob_usage",
|
|
186
|
+
"columns": {
|
|
187
|
+
"record_uri": {
|
|
188
|
+
"name": "record_uri",
|
|
189
|
+
"type": "text",
|
|
190
|
+
"primaryKey": false,
|
|
191
|
+
"notNull": true,
|
|
192
|
+
"autoincrement": false
|
|
193
|
+
},
|
|
194
|
+
"key": {
|
|
195
|
+
"name": "key",
|
|
196
|
+
"type": "text",
|
|
197
|
+
"primaryKey": false,
|
|
198
|
+
"notNull": true,
|
|
199
|
+
"autoincrement": false
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"indexes": {
|
|
203
|
+
"blob_usage_record_uri_idx": {
|
|
204
|
+
"name": "blob_usage_record_uri_idx",
|
|
205
|
+
"columns": [
|
|
206
|
+
"record_uri"
|
|
207
|
+
],
|
|
208
|
+
"isUnique": false
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"foreignKeys": {},
|
|
212
|
+
"compositePrimaryKeys": {
|
|
213
|
+
"blob_usage_record_uri_key_pk": {
|
|
214
|
+
"columns": [
|
|
215
|
+
"record_uri",
|
|
216
|
+
"key"
|
|
217
|
+
],
|
|
218
|
+
"name": "blob_usage_record_uri_key_pk"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"uniqueConstraints": {},
|
|
222
|
+
"checkConstraints": {}
|
|
223
|
+
},
|
|
224
|
+
"blockstore": {
|
|
225
|
+
"name": "blockstore",
|
|
226
|
+
"columns": {
|
|
227
|
+
"cid": {
|
|
228
|
+
"name": "cid",
|
|
229
|
+
"type": "text",
|
|
230
|
+
"primaryKey": true,
|
|
231
|
+
"notNull": true,
|
|
232
|
+
"autoincrement": false
|
|
233
|
+
},
|
|
234
|
+
"bytes": {
|
|
235
|
+
"name": "bytes",
|
|
236
|
+
"type": "text",
|
|
237
|
+
"primaryKey": false,
|
|
238
|
+
"notNull": false,
|
|
239
|
+
"autoincrement": false
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"indexes": {},
|
|
243
|
+
"foreignKeys": {},
|
|
244
|
+
"compositePrimaryKeys": {},
|
|
245
|
+
"uniqueConstraints": {},
|
|
246
|
+
"checkConstraints": {}
|
|
247
|
+
},
|
|
248
|
+
"commit_log": {
|
|
249
|
+
"name": "commit_log",
|
|
250
|
+
"columns": {
|
|
251
|
+
"seq": {
|
|
252
|
+
"name": "seq",
|
|
253
|
+
"type": "integer",
|
|
254
|
+
"primaryKey": true,
|
|
255
|
+
"notNull": true,
|
|
256
|
+
"autoincrement": false
|
|
257
|
+
},
|
|
258
|
+
"cid": {
|
|
259
|
+
"name": "cid",
|
|
260
|
+
"type": "text",
|
|
261
|
+
"primaryKey": false,
|
|
262
|
+
"notNull": true,
|
|
263
|
+
"autoincrement": false
|
|
264
|
+
},
|
|
265
|
+
"rev": {
|
|
266
|
+
"name": "rev",
|
|
267
|
+
"type": "text",
|
|
268
|
+
"primaryKey": false,
|
|
269
|
+
"notNull": true,
|
|
270
|
+
"autoincrement": false
|
|
271
|
+
},
|
|
272
|
+
"data": {
|
|
273
|
+
"name": "data",
|
|
274
|
+
"type": "text",
|
|
275
|
+
"primaryKey": false,
|
|
276
|
+
"notNull": true,
|
|
277
|
+
"autoincrement": false
|
|
278
|
+
},
|
|
279
|
+
"sig": {
|
|
280
|
+
"name": "sig",
|
|
281
|
+
"type": "text",
|
|
282
|
+
"primaryKey": false,
|
|
283
|
+
"notNull": true,
|
|
284
|
+
"autoincrement": false
|
|
285
|
+
},
|
|
286
|
+
"ts": {
|
|
287
|
+
"name": "ts",
|
|
288
|
+
"type": "integer",
|
|
289
|
+
"primaryKey": false,
|
|
290
|
+
"notNull": true,
|
|
291
|
+
"autoincrement": false
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"indexes": {
|
|
295
|
+
"commit_log_seq_idx": {
|
|
296
|
+
"name": "commit_log_seq_idx",
|
|
297
|
+
"columns": [
|
|
298
|
+
"seq"
|
|
299
|
+
],
|
|
300
|
+
"isUnique": false
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"foreignKeys": {},
|
|
304
|
+
"compositePrimaryKeys": {},
|
|
305
|
+
"uniqueConstraints": {},
|
|
306
|
+
"checkConstraints": {}
|
|
307
|
+
},
|
|
308
|
+
"login_attempts": {
|
|
309
|
+
"name": "login_attempts",
|
|
310
|
+
"columns": {
|
|
311
|
+
"ip": {
|
|
312
|
+
"name": "ip",
|
|
313
|
+
"type": "text",
|
|
314
|
+
"primaryKey": true,
|
|
315
|
+
"notNull": true,
|
|
316
|
+
"autoincrement": false
|
|
317
|
+
},
|
|
318
|
+
"attempts": {
|
|
319
|
+
"name": "attempts",
|
|
320
|
+
"type": "integer",
|
|
321
|
+
"primaryKey": false,
|
|
322
|
+
"notNull": true,
|
|
323
|
+
"autoincrement": false,
|
|
324
|
+
"default": 0
|
|
325
|
+
},
|
|
326
|
+
"locked_until": {
|
|
327
|
+
"name": "locked_until",
|
|
328
|
+
"type": "integer",
|
|
329
|
+
"primaryKey": false,
|
|
330
|
+
"notNull": false,
|
|
331
|
+
"autoincrement": false
|
|
332
|
+
},
|
|
333
|
+
"last_attempt": {
|
|
334
|
+
"name": "last_attempt",
|
|
335
|
+
"type": "integer",
|
|
336
|
+
"primaryKey": false,
|
|
337
|
+
"notNull": true,
|
|
338
|
+
"autoincrement": false
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"indexes": {},
|
|
342
|
+
"foreignKeys": {},
|
|
343
|
+
"compositePrimaryKeys": {},
|
|
344
|
+
"uniqueConstraints": {},
|
|
345
|
+
"checkConstraints": {}
|
|
346
|
+
},
|
|
347
|
+
"record": {
|
|
348
|
+
"name": "record",
|
|
349
|
+
"columns": {
|
|
350
|
+
"uri": {
|
|
351
|
+
"name": "uri",
|
|
352
|
+
"type": "text",
|
|
353
|
+
"primaryKey": true,
|
|
354
|
+
"notNull": true,
|
|
355
|
+
"autoincrement": false
|
|
356
|
+
},
|
|
357
|
+
"did": {
|
|
358
|
+
"name": "did",
|
|
359
|
+
"type": "text",
|
|
360
|
+
"primaryKey": false,
|
|
361
|
+
"notNull": true,
|
|
362
|
+
"autoincrement": false
|
|
363
|
+
},
|
|
364
|
+
"cid": {
|
|
365
|
+
"name": "cid",
|
|
366
|
+
"type": "text",
|
|
367
|
+
"primaryKey": false,
|
|
368
|
+
"notNull": true,
|
|
369
|
+
"autoincrement": false
|
|
370
|
+
},
|
|
371
|
+
"json": {
|
|
372
|
+
"name": "json",
|
|
373
|
+
"type": "text",
|
|
374
|
+
"primaryKey": false,
|
|
375
|
+
"notNull": true,
|
|
376
|
+
"autoincrement": false
|
|
377
|
+
},
|
|
378
|
+
"created_at": {
|
|
379
|
+
"name": "created_at",
|
|
380
|
+
"type": "integer",
|
|
381
|
+
"primaryKey": false,
|
|
382
|
+
"notNull": false,
|
|
383
|
+
"autoincrement": false,
|
|
384
|
+
"default": 0
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"indexes": {
|
|
388
|
+
"record_did_idx": {
|
|
389
|
+
"name": "record_did_idx",
|
|
390
|
+
"columns": [
|
|
391
|
+
"did"
|
|
392
|
+
],
|
|
393
|
+
"isUnique": false
|
|
394
|
+
},
|
|
395
|
+
"record_cid_idx": {
|
|
396
|
+
"name": "record_cid_idx",
|
|
397
|
+
"columns": [
|
|
398
|
+
"cid"
|
|
399
|
+
],
|
|
400
|
+
"isUnique": false
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"foreignKeys": {},
|
|
404
|
+
"compositePrimaryKeys": {},
|
|
405
|
+
"uniqueConstraints": {},
|
|
406
|
+
"checkConstraints": {}
|
|
407
|
+
},
|
|
408
|
+
"refresh_token": {
|
|
409
|
+
"name": "refresh_token",
|
|
410
|
+
"columns": {
|
|
411
|
+
"id": {
|
|
412
|
+
"name": "id",
|
|
413
|
+
"type": "text",
|
|
414
|
+
"primaryKey": true,
|
|
415
|
+
"notNull": true,
|
|
416
|
+
"autoincrement": false
|
|
417
|
+
},
|
|
418
|
+
"did": {
|
|
419
|
+
"name": "did",
|
|
420
|
+
"type": "text",
|
|
421
|
+
"primaryKey": false,
|
|
422
|
+
"notNull": true,
|
|
423
|
+
"autoincrement": false
|
|
424
|
+
},
|
|
425
|
+
"expires_at": {
|
|
426
|
+
"name": "expires_at",
|
|
427
|
+
"type": "integer",
|
|
428
|
+
"primaryKey": false,
|
|
429
|
+
"notNull": true,
|
|
430
|
+
"autoincrement": false
|
|
431
|
+
},
|
|
432
|
+
"app_password_name": {
|
|
433
|
+
"name": "app_password_name",
|
|
434
|
+
"type": "text",
|
|
435
|
+
"primaryKey": false,
|
|
436
|
+
"notNull": false,
|
|
437
|
+
"autoincrement": false
|
|
438
|
+
},
|
|
439
|
+
"next_id": {
|
|
440
|
+
"name": "next_id",
|
|
441
|
+
"type": "text",
|
|
442
|
+
"primaryKey": false,
|
|
443
|
+
"notNull": false,
|
|
444
|
+
"autoincrement": false
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"indexes": {
|
|
448
|
+
"refresh_token_did_idx": {
|
|
449
|
+
"name": "refresh_token_did_idx",
|
|
450
|
+
"columns": [
|
|
451
|
+
"did"
|
|
452
|
+
],
|
|
453
|
+
"isUnique": false
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
"foreignKeys": {},
|
|
457
|
+
"compositePrimaryKeys": {},
|
|
458
|
+
"uniqueConstraints": {},
|
|
459
|
+
"checkConstraints": {}
|
|
460
|
+
},
|
|
461
|
+
"repo_root": {
|
|
462
|
+
"name": "repo_root",
|
|
463
|
+
"columns": {
|
|
464
|
+
"did": {
|
|
465
|
+
"name": "did",
|
|
466
|
+
"type": "text",
|
|
467
|
+
"primaryKey": true,
|
|
468
|
+
"notNull": true,
|
|
469
|
+
"autoincrement": false
|
|
470
|
+
},
|
|
471
|
+
"commit_cid": {
|
|
472
|
+
"name": "commit_cid",
|
|
473
|
+
"type": "text",
|
|
474
|
+
"primaryKey": false,
|
|
475
|
+
"notNull": true,
|
|
476
|
+
"autoincrement": false
|
|
477
|
+
},
|
|
478
|
+
"rev": {
|
|
479
|
+
"name": "rev",
|
|
480
|
+
"type": "text",
|
|
481
|
+
"primaryKey": false,
|
|
482
|
+
"notNull": true,
|
|
483
|
+
"autoincrement": false
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
"indexes": {},
|
|
487
|
+
"foreignKeys": {},
|
|
488
|
+
"compositePrimaryKeys": {},
|
|
489
|
+
"uniqueConstraints": {},
|
|
490
|
+
"checkConstraints": {}
|
|
491
|
+
},
|
|
492
|
+
"secret": {
|
|
493
|
+
"name": "secret",
|
|
494
|
+
"columns": {
|
|
495
|
+
"key": {
|
|
496
|
+
"name": "key",
|
|
497
|
+
"type": "text",
|
|
498
|
+
"primaryKey": true,
|
|
499
|
+
"notNull": true,
|
|
500
|
+
"autoincrement": false
|
|
501
|
+
},
|
|
502
|
+
"value": {
|
|
503
|
+
"name": "value",
|
|
504
|
+
"type": "text",
|
|
505
|
+
"primaryKey": false,
|
|
506
|
+
"notNull": true,
|
|
507
|
+
"autoincrement": false
|
|
508
|
+
},
|
|
509
|
+
"updated_at": {
|
|
510
|
+
"name": "updated_at",
|
|
511
|
+
"type": "integer",
|
|
512
|
+
"primaryKey": false,
|
|
513
|
+
"notNull": true,
|
|
514
|
+
"autoincrement": false
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
"indexes": {},
|
|
518
|
+
"foreignKeys": {},
|
|
519
|
+
"compositePrimaryKeys": {},
|
|
520
|
+
"uniqueConstraints": {},
|
|
521
|
+
"checkConstraints": {}
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
"views": {},
|
|
525
|
+
"enums": {},
|
|
526
|
+
"_meta": {
|
|
527
|
+
"schemas": {},
|
|
528
|
+
"tables": {},
|
|
529
|
+
"columns": {}
|
|
530
|
+
},
|
|
531
|
+
"internal": {
|
|
532
|
+
"indexes": {}
|
|
533
|
+
}
|
|
534
|
+
}
|