@stacksjs/orm 0.75.141 → 0.75.142
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/dist/models/PersonalAccessToken.ts +58 -0
- package/package.json +24 -24
|
@@ -153,5 +153,63 @@ export default defineModel({
|
|
|
153
153
|
rule: schema.string().max(45),
|
|
154
154
|
},
|
|
155
155
|
},
|
|
156
|
+
|
|
157
|
+
/*
|
|
158
|
+
* The rest are columns `ensureAuthTables()` creates and `@stacksjs/auth`
|
|
159
|
+
* writes. Declared so the generated row type is the table's real shape:
|
|
160
|
+
* without them a typed `insertInto('oauth_access_tokens')` rejects columns
|
|
161
|
+
* the table has. All guarded - none is a caller's to set.
|
|
162
|
+
*/
|
|
163
|
+
|
|
164
|
+
/** Legacy owner column, written as a copy of `tokenable_id`. */
|
|
165
|
+
userId: {
|
|
166
|
+
order: 10,
|
|
167
|
+
guarded: true,
|
|
168
|
+
validation: {
|
|
169
|
+
rule: schema.number(),
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
|
|
173
|
+
oauthClientId: {
|
|
174
|
+
order: 11,
|
|
175
|
+
guarded: true,
|
|
176
|
+
validation: {
|
|
177
|
+
rule: schema.number(),
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
|
|
181
|
+
oauthGrantId: {
|
|
182
|
+
order: 12,
|
|
183
|
+
guarded: true,
|
|
184
|
+
validation: {
|
|
185
|
+
rule: schema.string().max(32),
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
|
|
189
|
+
resources: {
|
|
190
|
+
order: 13,
|
|
191
|
+
type: 'text',
|
|
192
|
+
guarded: true,
|
|
193
|
+
validation: {
|
|
194
|
+
rule: schema.string(),
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
|
|
198
|
+
audiences: {
|
|
199
|
+
order: 14,
|
|
200
|
+
type: 'text',
|
|
201
|
+
guarded: true,
|
|
202
|
+
validation: {
|
|
203
|
+
rule: schema.string(),
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
|
|
207
|
+
workspaceId: {
|
|
208
|
+
order: 15,
|
|
209
|
+
guarded: true,
|
|
210
|
+
validation: {
|
|
211
|
+
rule: schema.string().max(255),
|
|
212
|
+
},
|
|
213
|
+
},
|
|
156
214
|
},
|
|
157
215
|
} as const)
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/orm",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.142",
|
|
6
6
|
"description": "The Stacks ORM integration",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -63,31 +63,31 @@
|
|
|
63
63
|
"prepublishOnly": "bun run build"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@stacksjs/cache": "0.75.
|
|
67
|
-
"@stacksjs/cli": "0.75.
|
|
68
|
-
"@stacksjs/config": "0.75.
|
|
69
|
-
"@stacksjs/database": "0.75.
|
|
70
|
-
"@stacksjs/env": "0.75.
|
|
71
|
-
"@stacksjs/error-handling": "0.75.
|
|
72
|
-
"@stacksjs/events": "0.75.
|
|
73
|
-
"@stacksjs/logging": "0.75.
|
|
74
|
-
"@stacksjs/model-meta": "0.75.
|
|
75
|
-
"@stacksjs/pagination": "0.75.
|
|
76
|
-
"@stacksjs/path": "0.75.
|
|
77
|
-
"@stacksjs/query-builder": "0.75.
|
|
78
|
-
"@stacksjs/realtime": "0.75.
|
|
79
|
-
"@stacksjs/router": "0.75.
|
|
80
|
-
"@stacksjs/storage": "0.75.
|
|
81
|
-
"@stacksjs/strings": "0.75.
|
|
66
|
+
"@stacksjs/cache": "0.75.142",
|
|
67
|
+
"@stacksjs/cli": "0.75.142",
|
|
68
|
+
"@stacksjs/config": "0.75.142",
|
|
69
|
+
"@stacksjs/database": "0.75.142",
|
|
70
|
+
"@stacksjs/env": "0.75.142",
|
|
71
|
+
"@stacksjs/error-handling": "0.75.142",
|
|
72
|
+
"@stacksjs/events": "0.75.142",
|
|
73
|
+
"@stacksjs/logging": "0.75.142",
|
|
74
|
+
"@stacksjs/model-meta": "0.75.142",
|
|
75
|
+
"@stacksjs/pagination": "0.75.142",
|
|
76
|
+
"@stacksjs/path": "0.75.142",
|
|
77
|
+
"@stacksjs/query-builder": "0.75.142",
|
|
78
|
+
"@stacksjs/realtime": "0.75.142",
|
|
79
|
+
"@stacksjs/router": "0.75.142",
|
|
80
|
+
"@stacksjs/storage": "0.75.142",
|
|
81
|
+
"@stacksjs/strings": "0.75.142",
|
|
82
82
|
"@stacksjs/ts-validation": "^0.5.6",
|
|
83
|
-
"@stacksjs/validation": "0.75.
|
|
84
|
-
"bun-query-builder": "^0.3.
|
|
83
|
+
"@stacksjs/validation": "0.75.142",
|
|
84
|
+
"bun-query-builder": "^0.3.8"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"@stacksjs/auth": "0.75.
|
|
88
|
-
"@stacksjs/payments": "0.75.
|
|
89
|
-
"@stacksjs/queue": "0.75.
|
|
90
|
-
"@stacksjs/search-engine": "0.75.
|
|
87
|
+
"@stacksjs/auth": "0.75.142",
|
|
88
|
+
"@stacksjs/payments": "0.75.142",
|
|
89
|
+
"@stacksjs/queue": "0.75.142",
|
|
90
|
+
"@stacksjs/search-engine": "0.75.142",
|
|
91
91
|
"stripe": "23.0.0"
|
|
92
92
|
},
|
|
93
93
|
"peerDependenciesMeta": {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
|
-
"@stacksjs/types": "0.75.
|
|
111
|
+
"@stacksjs/types": "0.75.142",
|
|
112
112
|
"better-dx": "^0.2.24",
|
|
113
113
|
"stripe": "23.0.0"
|
|
114
114
|
}
|