@camstack/types 0.1.18 → 0.1.20
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/{auth-records-dZTcJ-2e.js → auth-records-BS1ylE_b.js} +13 -5
- package/dist/{auth-records-dZTcJ-2e.js.map → auth-records-BS1ylE_b.js.map} +1 -1
- package/dist/{auth-records-BpjTmlhM.mjs → auth-records-DaPoK6Cr.mjs} +13 -5
- package/dist/{auth-records-BpjTmlhM.mjs.map → auth-records-DaPoK6Cr.mjs.map} +1 -1
- package/dist/capabilities/user-management.cap.d.ts +12 -10
- package/dist/capabilities/user-management.cap.d.ts.map +1 -1
- package/dist/generated/addon-api.d.ts +2 -0
- package/dist/generated/addon-api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/node.js +1 -1
- package/dist/node.mjs +1 -1
- package/dist/schemas/auth-records.d.ts +2 -2
- package/dist/schemas/auth-records.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7262,11 +7262,17 @@ const ScopedTokenSummarySchema = z.object({
|
|
|
7262
7262
|
name: z.string(),
|
|
7263
7263
|
tokenPrefix: z.string(),
|
|
7264
7264
|
scopes: z.array(TokenScopeSchema$1),
|
|
7265
|
-
|
|
7266
|
-
|
|
7265
|
+
// Mirror the storage schema: `.nullish()` accepts the SQLite-native
|
|
7266
|
+
// `null` for absent timestamps as well as in-memory `undefined`.
|
|
7267
|
+
expiresAt: z.number().nullish(),
|
|
7268
|
+
lastUsedAt: z.number().nullish(),
|
|
7267
7269
|
createdAt: z.number()
|
|
7268
7270
|
});
|
|
7269
7271
|
const CreateScopedTokenInputSchema = z.object({
|
|
7272
|
+
// The owner the token is issued on behalf of. `adminProcedure` gates
|
|
7273
|
+
// this call so an admin can mint tokens for any user; the CLI passes
|
|
7274
|
+
// its own logged-in `user.id` here.
|
|
7275
|
+
userId: z.string(),
|
|
7270
7276
|
name: z.string(),
|
|
7271
7277
|
scopes: z.array(TokenScopeSchema$1),
|
|
7272
7278
|
expiresAt: z.number().optional()
|
|
@@ -7958,8 +7964,10 @@ const ScopedTokenSchema = z.object({
|
|
|
7958
7964
|
tokenHash: z.string(),
|
|
7959
7965
|
tokenPrefix: z.string(),
|
|
7960
7966
|
scopes: z.array(TokenScopeSchema),
|
|
7961
|
-
|
|
7962
|
-
|
|
7967
|
+
// SQLite/JSON storage round-trips undefined → null. Use `nullish` so the
|
|
7968
|
+
// schema accepts both `null` (read from disk) and `undefined` (in-memory).
|
|
7969
|
+
expiresAt: z.number().nullish(),
|
|
7970
|
+
lastUsedAt: z.number().nullish(),
|
|
7963
7971
|
createdAt: z.number()
|
|
7964
7972
|
});
|
|
7965
7973
|
export {
|
|
@@ -8302,4 +8310,4 @@ export {
|
|
|
8302
8310
|
addonsCapability as y,
|
|
8303
8311
|
zonesCapability as z
|
|
8304
8312
|
};
|
|
8305
|
-
//# sourceMappingURL=auth-records-
|
|
8313
|
+
//# sourceMappingURL=auth-records-DaPoK6Cr.mjs.map
|