@softistx/janus 0.76.0 → 0.78.0
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/README.md +11 -6
- package/dist/auth/api-keys/authenticate-key.d.ts +3 -2
- package/dist/auth/api-keys/authenticate-key.d.ts.map +1 -1
- package/dist/auth/api-keys/count.d.ts.map +1 -1
- package/dist/auth/api-keys/create/after-insert.d.ts +11 -0
- package/dist/auth/api-keys/create/after-insert.d.ts.map +1 -0
- package/dist/auth/api-keys/create/checks.d.ts +17 -0
- package/dist/auth/api-keys/create/checks.d.ts.map +1 -1
- package/dist/auth/api-keys/create/index.d.ts.map +1 -1
- package/dist/auth/api-keys/create/service-checks.d.ts +25 -0
- package/dist/auth/api-keys/create/service-checks.d.ts.map +1 -0
- package/dist/auth/api-keys/create/service.d.ts +12 -0
- package/dist/auth/api-keys/create/service.d.ts.map +1 -0
- package/dist/auth/api-keys/expiry.d.ts.map +1 -1
- package/dist/auth/api-keys/flows.d.ts +6 -2
- package/dist/auth/api-keys/flows.d.ts.map +1 -1
- package/dist/auth/api-keys/owned.d.ts +12 -0
- package/dist/auth/api-keys/owned.d.ts.map +1 -0
- package/dist/auth/api-keys/read.d.ts.map +1 -1
- package/dist/auth/api-keys/service-flows.d.ts +13 -0
- package/dist/auth/api-keys/service-flows.d.ts.map +1 -0
- package/dist/auth/api-keys/to-api-key.d.ts.map +1 -1
- package/dist/auth/config/api-keys-config.d.ts +29 -2
- package/dist/auth/config/api-keys-config.d.ts.map +1 -1
- package/dist/auth/config/index.d.ts +1 -1
- package/dist/auth/config/index.d.ts.map +1 -1
- package/dist/auth/config/resolve-api-keys.d.ts.map +1 -1
- package/dist/auth/config/resolved-config.d.ts +8 -0
- package/dist/auth/config/resolved-config.d.ts.map +1 -1
- package/dist/auth/index.d.ts +3 -2
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/port/memory/api-keys/capabilities.d.ts.map +1 -1
- package/dist/auth/port/memory/api-keys/index.d.ts.map +1 -1
- package/dist/auth/port/types/api-keys.d.ts +25 -5
- package/dist/auth/port/types/api-keys.d.ts.map +1 -1
- package/dist/auth/sessions/amr.d.ts +2 -2
- package/dist/auth/sessions/authenticate.d.ts +3 -2
- package/dist/auth/sessions/authenticate.d.ts.map +1 -1
- package/dist/auth/sessions/fresh.d.ts +2 -2
- package/dist/auth/sessions/fresh.d.ts.map +1 -1
- package/dist/auth/sessions/shared-api.d.ts +3 -2
- package/dist/auth/sessions/shared-api.d.ts.map +1 -1
- package/dist/auth/shared-api.d.ts +11 -3
- package/dist/auth/shared-api.d.ts.map +1 -1
- package/dist/auth/signed-token.d.ts +41 -0
- package/dist/auth/signed-token.d.ts.map +1 -0
- package/dist/auth/types/api-keys-of.d.ts +6 -1
- package/dist/auth/types/api-keys-of.d.ts.map +1 -1
- package/dist/auth/types/api-keys.d.ts +18 -6
- package/dist/auth/types/api-keys.d.ts.map +1 -1
- package/dist/auth/types/checks.d.ts +17 -1
- package/dist/auth/types/checks.d.ts.map +1 -1
- package/dist/auth/types/index.d.ts +3 -2
- package/dist/auth/types/index.d.ts.map +1 -1
- package/dist/auth/types/service-keys.d.ts +58 -0
- package/dist/auth/types/service-keys.d.ts.map +1 -0
- package/dist/auth/types/session.d.ts +21 -2
- package/dist/auth/types/session.d.ts.map +1 -1
- package/dist/auth/types/shared-api.d.ts +15 -1
- package/dist/auth/types/shared-api.d.ts.map +1 -1
- package/dist/auth/types/sign-in.d.ts +1 -1
- package/dist/auth/types/sign-in.d.ts.map +1 -1
- package/dist/chunks/{index-7h34nqrm.js → index-5hcajrrx.js} +5 -5
- package/dist/chunks/{index-7h34nqrm.js.map → index-5hcajrrx.js.map} +4 -4
- package/dist/chunks/{index-n8jxmxeg.js → index-gzc472ar.js} +2 -2
- package/dist/chunks/{index-ftz0ne6j.js → index-r8fcessc.js} +2 -2
- package/dist/chunks/{index-2ttdcz7n.js → index-vx9a5cpy.js} +9 -3
- package/dist/chunks/{index-2ttdcz7n.js.map → index-vx9a5cpy.js.map} +4 -4
- package/dist/conformance/api-keys/cases/index.d.ts.map +1 -1
- package/dist/conformance/api-keys/cases/outage.d.ts.map +1 -1
- package/dist/conformance/api-keys/cases/service.d.ts +3 -0
- package/dist/conformance/api-keys/cases/service.d.ts.map +1 -0
- package/dist/conformance/index.js +407 -302
- package/dist/conformance/index.js.map +6 -5
- package/dist/errors/janus-error/codes.invitations.d.ts +6 -0
- package/dist/errors/janus-error/codes.invitations.d.ts.map +1 -1
- package/dist/errors/janus-error/index.d.ts +1 -1
- package/dist/errors/janus-error/index.d.ts.map +1 -1
- package/dist/errors/janus-error/options.d.ts +1 -1
- package/dist/errors/janus-error/options.d.ts.map +1 -1
- package/dist/errors/janus-error/refusals.d.ts +5 -0
- package/dist/errors/janus-error/refusals.d.ts.map +1 -1
- package/dist/errors/janus-error/status.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +428 -100
- package/dist/index.js.map +22 -16
- package/dist/permissions/index.js +3 -3
- package/docs/README.md +1 -0
- package/docs/guide/api-keys.md +78 -1
- package/docs/guide/errors.md +1 -0
- package/docs/guide/second-factor.md +1 -1
- package/docs/guide/sessions.md +3 -1
- package/docs/guide/signed-tokens.md +46 -0
- package/docs/roadmap.md +3 -1
- package/docs/troubleshooting.md +17 -5
- package/package.json +1 -1
- /package/dist/chunks/{index-n8jxmxeg.js.map → index-gzc472ar.js.map} +0 -0
- /package/dist/chunks/{index-ftz0ne6j.js.map → index-r8fcessc.js.map} +0 -0
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"/**\n * An id — of a user, a session: a UUIDv7, lowercase, hyphenated.\n *\n * **The core mints it, not the store**, and that decision pays for itself three\n * times over:\n *\n * - A UUIDv7 leads with a 48-bit millisecond timestamp, so ids sort in\n * creation order as strings. The pagination cursor is therefore *the last\n * id* — one index on the id, and the ordering is already total. A\n * store-minted id would need a `createdAt` index plus the id as a tiebreak,\n * because a timestamp alone is not a total order, and an opaque cursor per\n * adapter.\n * - `insertUser` becomes **idempotent under retry**: the id is decided\n * before the call, so a retry after a timeout writes the same row rather\n * than a second user.\n * - Every adapter reports the same shape, so moving an application from one\n * adapter to another is a copy rather than a rewrite of every stored\n * reference.\n *\n * The price, stated plainly: an adapter cannot reuse an existing numeric primary\n * key. It gets a `uuid` column, or a 36-character string, and the monotonic\n * prefix gives it the index locality a UUIDv4 destroys.\n */\nexport type Id = string;\n\nconst HEX: readonly string[] = Array.from({ length: 256 }, (_, i) =>\n\ti.toString(16).padStart(2, '0'),\n);\n\nlet lastMs = -1;\nlet sequence = 0;\n\n/**\n * The 12-bit sequence UUIDv7 keeps for ordering inside one millisecond.\n *\n * RFC 9562 calls this the \"replace leftmost random bits with an increased clock\n * precision\" method. Without it, two ids minted in the same millisecond order\n * by their random tail — still a total order, which is all the port requires,\n * but not creation order, and \"newest first\" would then be wrong for anything\n * created in a burst. A signup storm is exactly such a burst.\n */\nconst SEQUENCE_MAX = 0xfff;\n\n/**\n * A fresh id.\n *\n * Strictly increasing: within one millisecond it uses the sequence, and if that\n * overflows — more than 4096 ids in a millisecond, which no real\n * application reaches — it borrows the next millisecond rather than repeating\n * one. Across processes the 62 random bits of the tail are what keep two machines\n * apart.\n */\nexport function mintId(now: number = Date.now()): Id {\n\tlet ms = now;\n\n\tif (ms === lastMs) {\n\t\tsequence += 1;\n\t\tif (sequence > SEQUENCE_MAX) {\n\t\t\t// Borrow from the next millisecond. This keeps ids strictly\n\t\t\t// increasing at the cost of a timestamp a hair ahead of the clock,\n\t\t\t// which is the right trade: a repeated id would break the cursor.\n\t\t\tms = lastMs + 1;\n\t\t\tsequence = 0;\n\t\t}\n\t} else if (ms > lastMs) {\n\t\tsequence = 0;\n\t} else {\n\t\t// The clock went backwards — an NTP step, or a container resumed. Hold\n\t\t// the last millisecond and keep counting, so ids stay ordered even\n\t\t// though they stop matching the wall clock for a moment.\n\t\tms = lastMs;\n\t\tsequence += 1;\n\t\tif (sequence > SEQUENCE_MAX) {\n\t\t\tms = lastMs + 1;\n\t\t\tsequence = 0;\n\t\t}\n\t}\n\n\tlastMs = ms;\n\n\tconst bytes = new Uint8Array(16);\n\tcrypto.getRandomValues(bytes.subarray(8));\n\n\tbytes[0] = (ms / 2 ** 40) & 0xff;\n\tbytes[1] = (ms / 2 ** 32) & 0xff;\n\tbytes[2] = (ms / 2 ** 24) & 0xff;\n\tbytes[3] = (ms / 2 ** 16) & 0xff;\n\tbytes[4] = (ms / 2 ** 8) & 0xff;\n\tbytes[5] = ms & 0xff;\n\t// Version 7 in the high nibble, the sequence's top 4 bits below it.\n\tbytes[6] = 0x70 | ((sequence >> 8) & 0x0f);\n\tbytes[7] = sequence & 0xff;\n\t// Variant 10 in the two high bits of byte 8; the rest of it stays random.\n\tbytes[8] = 0x80 | ((bytes[8] as number) & 0x3f);\n\n\treturn `${HEX[bytes[0] as number]}${HEX[bytes[1] as number]}${HEX[bytes[2] as number]}${HEX[bytes[3] as number]}-${HEX[bytes[4] as number]}${HEX[bytes[5] as number]}-${HEX[bytes[6] as number]}${HEX[bytes[7] as number]}-${HEX[bytes[8] as number]}${HEX[bytes[9] as number]}-${HEX[bytes[10] as number]}${HEX[bytes[11] as number]}${HEX[bytes[12] as number]}${HEX[bytes[13] as number]}${HEX[bytes[14] as number]}${HEX[bytes[15] as number]}`;\n}\n\nconst UUID_V7 =\n\t/^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;\n\n/**\n * Whether this string is an id this package could have minted.\n *\n * Used by an adapter to answer `null` for a malformed id **without reaching the\n * store**: an id arrives off a URL, and one of the wrong shape is \"no such\n * user\", not an outage and not a query. Rejecting it here also keeps a\n * hand-written id out of a store that would then hold something the cursor\n * cannot order.\n */\nexport function isId(value: string): boolean {\n\treturn UUID_V7.test(value);\n}\n\n/**\n * When this id was minted, from the id itself.\n *\n * Offered because the timestamp is *in* the id, so a `createdAt` column is a\n * convenience rather than the truth — and an adapter that loses one can still\n * answer. It is not a substitute for `createdAt`: the sequence may have borrowed\n * a millisecond, and a clock that stepped backwards is held rather than\n * followed, so this is accurate to the millisecond and no further.\n */\nexport function mintedAt(id: Id): Date {\n\tconst hex = id.replace(/-/g, '').slice(0, 12);\n\treturn new Date(Number.parseInt(hex, 16));\n}\n",
|
|
6
6
|
"/**\n * A deep copy: every record goes in and comes out through it, so a caller that\n * mutates what it passed or what it got back cannot reach the store.\n */\nexport const copy = <T>(value: T): T => structuredClone(value);\n",
|
|
7
7
|
"import type { CursorPage } from '../../../../pagination/cursor-page';\nimport type {\n\tApiKeyBound,\n\tApiKeyId,\n\tApiKeyPageRequest,\n\tApiKeyRecord,\n} from '../../types';\nimport { copy } from '../copy';\n\nexport function sameBound(\n\tstored: ApiKeyBound | undefined,\n\tbound: ApiKeyBound,\n): boolean {\n\treturn (\n\t\tstored !== undefined && stored.type === bound.type && stored.id === bound.id\n\t);\n}\n\n/** One page of the keys that match, in id order — a Map keeps insertion order, not id order. */\nexport function pageWhere(\n\tbyId: Map<ApiKeyId, ApiKeyRecord>,\n\t{ first, after }: ApiKeyPageRequest,\n\tmatches: (stored: ApiKeyRecord) => boolean,\n): CursorPage<ApiKeyRecord> {\n\tconst ids = [...byId.values()]\n\t\t.filter(matches)\n\t\t.map((key) => key.id)\n\t\t.filter((id) => after === null || id > after)\n\t\t.sort();\n\tconst pageIds = ids.slice(0, first);\n\tconst last = pageIds.at(-1);\n\n\treturn {\n\t\titems: pageIds.map((id) => copy(byId.get(id) as ApiKeyRecord)),\n\t\tnextCursor: ids.length > first && last !== undefined ? last : null,\n\t};\n}\n\nexport function deleteWhere(\n\tbyId: Map<ApiKeyId, ApiKeyRecord>,\n\tmatches: (stored: ApiKeyRecord) => boolean,\n): number {\n\tlet deleted = 0;\n\n\tfor (const [id, stored] of byId) {\n\t\tif (matches(stored)) {\n\t\t\tbyId.delete(id);\n\t\t\tdeleted += 1;\n\t\t}\n\t}\n\n\treturn deleted;\n}\n",
|
|
8
|
-
"import type {\n\tApiKeyBoundMethods,\n\tApiKeyExpiryNoticeMethods,\n\tApiKeyId,\n\tApiKeyRecord,\n\tApiKeyUserBoundMethods,\n} from '../../types';\nimport { pageWhere, sameBound } from './pages';\n\n/** The memory store's `bound` capability, over its map. */\nexport function boundMethods(\n\tbyId: Map<ApiKeyId, ApiKeyRecord>,\n): ApiKeyBoundMethods {\n\treturn {\n\t\tasync listBoundApiKeys(bound, page) {\n\t\t\treturn pageWhere(byId, page, (key) => sameBound(key.bound, bound));\n\t\t},\n\n\t\tasync revokeBoundApiKeys(userId, bound, at) {\n\t\t\tlet revoked = 0;\n\n\t\t\tfor (const [id, stored] of byId) {\n\t\t\t\tif (\n\t\t\t\t\tstored.userId === userId &&\n\t\t\t\t\tstored.revokedAt === null &&\n\t\t\t\t\tsameBound(stored.bound, bound)\n\t\t\t\t) {\n\t\t\t\t\tbyId.set(id, { ...stored, revokedAt: new Date(at) });\n\t\t\t\t\trevoked += 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn revoked;\n\t\t},\n\t};\n}\n\n/** The memory store's `userBound` capability, over its map. */\nexport function userBoundMethods(\n\tbyId: Map<ApiKeyId, ApiKeyRecord>,\n): ApiKeyUserBoundMethods {\n\treturn {\n\t\tasync listUserBoundApiKeys(userId, bound, page) {\n\t\t\treturn pageWhere(\n\t\t\t\tbyId,\n\t\t\t\tpage,\n\t\t\t\t(key) =>\n\t\t\t\t\tkey.userId === userId &&\n\t\t\t\t\t(bound === null\n\t\t\t\t\t\t? key.bound === undefined\n\t\t\t\t\t\t: sameBound(key.bound, bound)),\n\t\t\t);\n\t\t},\n\t};\n}\n\n/** The memory store's `expiryNotice` capability, over its map. */\nexport function expiryNoticeMethods(\n\tbyId: Map<ApiKeyId, ApiKeyRecord>,\n): ApiKeyExpiryNoticeMethods {\n\treturn {\n\t\tasync listExpiringApiKeys({ now, before, first, after }) {\n\t\t\treturn pageWhere(\n\t\t\t\tbyId,\n\t\t\t\t{ first, after },\n\t\t\t\t(key) =>\n\t\t\t\t\tkey.revokedAt === null &&\n\t\t\t\t\tkey.expiryNotifiedAt === undefined &&\n\t\t\t\t\tkey.expiresAt.getTime() > now.getTime() &&\n\t\t\t\t\tkey.expiresAt.getTime() <= before.getTime(),\n\t\t\t);\n\t\t},\n\n\t\tasync markApiKeyExpiryNotified(id, at) {\n\t\t\tconst stored = byId.get(id);\n\t\t\tif (stored === undefined || stored.expiryNotifiedAt !== undefined) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tbyId.set(id, { ...stored, expiryNotifiedAt: new Date(at) });\n\t\t\treturn true;\n\t\t},\n\t};\n}\n",
|
|
9
|
-
"import type {\n\tApiKeyBoundMethods,\n\tApiKeyExpiryNoticeMethods,\n\tApiKeyId,\n\tApiKeyRecord,\n\tApiKeyStore,\n\tApiKeyUserBoundMethods,\n} from '../../types';\nimport { copy } from '../copy';\nimport {\n\tboundMethods,\n\texpiryNoticeMethods,\n\tuserBoundMethods,\n} from './capabilities';\nimport { deleteWhere, pageWhere } from './pages';\n\n/**\n * The API key store in memory: the reference implementation of\n * {@link ApiKeyStore}, shipped for a consumer's unit tests and for an adapter\n * author to compare against.\n *\n * Every method is `async` and every record is copied in and out, as the other\n * in-memory stores do. `touchApiKey` reads and writes with no `await` between\n * the two, so concurrent calls on a stale key see exactly one winner. It has\n * every optional capability: `bound`, `userBound` and `expiryNotice`.\n */\nexport function createMemoryApiKeys(): ApiKeyStore &\n\tApiKeyBoundMethods &\n\tApiKeyUserBoundMethods &\n\tApiKeyExpiryNoticeMethods {\n\tconst byId = new Map<ApiKeyId, ApiKeyRecord>();\n\n\treturn {\n\t\tasync insertApiKey(record) {\n\t\t\tif (!byId.has(record.id)) byId.set(record.id, copy(record));\n\t\t},\n\n\t\tasync findApiKey(id) {\n\t\t\tconst stored = byId.get(id);\n\t\t\treturn stored === undefined ? null : copy(stored);\n\t\t},\n\n\t\tasync listUserApiKeys(userId, page) {\n\t\t\treturn pageWhere(byId, page, (key) => key.userId === userId);\n\t\t},\n\n\t\tasync touchApiKey(id, at, staleBefore) {\n\t\t\tconst stored = byId.get(id);\n\t\t\tif (stored === undefined || stored.revokedAt !== null) return false;\n\t\t\tif (\n\t\t\t\tstored.lastUsedAt !== null &&\n\t\t\t\tstored.lastUsedAt.getTime() >= staleBefore.getTime()\n\t\t\t) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tbyId.set(id, { ...stored, lastUsedAt: new Date(at) });\n\t\t\treturn true;\n\t\t},\n\n\t\tasync revokeApiKey(id, at) {\n\t\t\tconst stored = byId.get(id);\n\t\t\tif (stored === undefined) return false;\n\n\t\t\tif (stored.revokedAt === null) {\n\t\t\t\tbyId.set(id, { ...stored, revokedAt: new Date(at) });\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\n\t\tasync revokeUserApiKeys(userId, at) {\n\t\t\tlet revoked = 0;\n\n\t\t\tfor (const [id, stored] of byId) {\n\t\t\t\tif (stored.userId === userId && stored.revokedAt === null) {\n\t\t\t\t\tbyId.set(id, { ...stored, revokedAt: new Date(at) });\n\t\t\t\t\trevoked += 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn revoked;\n\t\t},\n\n\t\tasync deleteUserApiKeys(userId) {\n\t\t\treturn deleteWhere(byId, (stored) => stored.userId === userId);\n\t\t},\n\n\t\tasync deleteExpiredApiKeys(before) {\n\t\t\treturn deleteWhere(\n\t\t\t\tbyId,\n\t\t\t\t(stored)
|
|
8
|
+
"import type {\n\tApiKeyBoundMethods,\n\tApiKeyExpiryNoticeMethods,\n\tApiKeyId,\n\tApiKeyRecord,\n\tApiKeyUserBoundMethods,\n} from '../../types';\nimport { pageWhere, sameBound } from './pages';\n\n/** The memory store's `bound` capability, over its map. */\nexport function boundMethods(\n\tbyId: Map<ApiKeyId, ApiKeyRecord>,\n): ApiKeyBoundMethods {\n\treturn {\n\t\tasync listBoundApiKeys(bound, page) {\n\t\t\treturn pageWhere(byId, page, (key) => sameBound(key.bound, bound));\n\t\t},\n\n\t\tasync revokeBoundApiKeys(userId, bound, at) {\n\t\t\tlet revoked = 0;\n\n\t\t\tfor (const [id, stored] of byId) {\n\t\t\t\tif (\n\t\t\t\t\tstored.userId === userId &&\n\t\t\t\t\tstored.revokedAt === null &&\n\t\t\t\t\tsameBound(stored.bound, bound)\n\t\t\t\t) {\n\t\t\t\t\tbyId.set(id, { ...stored, revokedAt: new Date(at) });\n\t\t\t\t\trevoked += 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn revoked;\n\t\t},\n\t};\n}\n\n/** The memory store's `userBound` capability, over its map. */\nexport function userBoundMethods(\n\tbyId: Map<ApiKeyId, ApiKeyRecord>,\n): ApiKeyUserBoundMethods {\n\treturn {\n\t\tasync listUserBoundApiKeys(userId, bound, page) {\n\t\t\treturn pageWhere(\n\t\t\t\tbyId,\n\t\t\t\tpage,\n\t\t\t\t(key) =>\n\t\t\t\t\tkey.userId === userId &&\n\t\t\t\t\t(bound === null\n\t\t\t\t\t\t? key.bound === undefined\n\t\t\t\t\t\t: sameBound(key.bound, bound)),\n\t\t\t);\n\t\t},\n\t};\n}\n\n/** The memory store's `expiryNotice` capability, over its map. */\nexport function expiryNoticeMethods(\n\tbyId: Map<ApiKeyId, ApiKeyRecord>,\n): ApiKeyExpiryNoticeMethods {\n\treturn {\n\t\tasync listExpiringApiKeys({ now, before, first, after }) {\n\t\t\treturn pageWhere(\n\t\t\t\tbyId,\n\t\t\t\t{ first, after },\n\t\t\t\t(key) =>\n\t\t\t\t\tkey.revokedAt === null &&\n\t\t\t\t\tkey.expiryNotifiedAt === undefined &&\n\t\t\t\t\tkey.expiresAt !== null &&\n\t\t\t\t\tkey.expiresAt.getTime() > now.getTime() &&\n\t\t\t\t\tkey.expiresAt.getTime() <= before.getTime(),\n\t\t\t);\n\t\t},\n\n\t\tasync markApiKeyExpiryNotified(id, at) {\n\t\t\tconst stored = byId.get(id);\n\t\t\tif (stored === undefined || stored.expiryNotifiedAt !== undefined) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tbyId.set(id, { ...stored, expiryNotifiedAt: new Date(at) });\n\t\t\treturn true;\n\t\t},\n\t};\n}\n",
|
|
9
|
+
"import type {\n\tApiKeyBoundMethods,\n\tApiKeyExpiryNoticeMethods,\n\tApiKeyId,\n\tApiKeyRecord,\n\tApiKeyStore,\n\tApiKeyUserBoundMethods,\n} from '../../types';\nimport { copy } from '../copy';\nimport {\n\tboundMethods,\n\texpiryNoticeMethods,\n\tuserBoundMethods,\n} from './capabilities';\nimport { deleteWhere, pageWhere } from './pages';\n\n/**\n * The API key store in memory: the reference implementation of\n * {@link ApiKeyStore}, shipped for a consumer's unit tests and for an adapter\n * author to compare against.\n *\n * Every method is `async` and every record is copied in and out, as the other\n * in-memory stores do. `touchApiKey` reads and writes with no `await` between\n * the two, so concurrent calls on a stale key see exactly one winner. It has\n * every optional capability: `bound`, `userBound` and `expiryNotice`.\n */\nexport function createMemoryApiKeys(): ApiKeyStore &\n\tApiKeyBoundMethods &\n\tApiKeyUserBoundMethods &\n\tApiKeyExpiryNoticeMethods {\n\tconst byId = new Map<ApiKeyId, ApiKeyRecord>();\n\n\treturn {\n\t\tasync insertApiKey(record) {\n\t\t\tif (!byId.has(record.id)) byId.set(record.id, copy(record));\n\t\t},\n\n\t\tasync findApiKey(id) {\n\t\t\tconst stored = byId.get(id);\n\t\t\treturn stored === undefined ? null : copy(stored);\n\t\t},\n\n\t\tasync listUserApiKeys(userId, page) {\n\t\t\treturn pageWhere(byId, page, (key) => key.userId === userId);\n\t\t},\n\n\t\tasync touchApiKey(id, at, staleBefore) {\n\t\t\tconst stored = byId.get(id);\n\t\t\tif (stored === undefined || stored.revokedAt !== null) return false;\n\t\t\tif (\n\t\t\t\tstored.lastUsedAt !== null &&\n\t\t\t\tstored.lastUsedAt.getTime() >= staleBefore.getTime()\n\t\t\t) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tbyId.set(id, { ...stored, lastUsedAt: new Date(at) });\n\t\t\treturn true;\n\t\t},\n\n\t\tasync revokeApiKey(id, at) {\n\t\t\tconst stored = byId.get(id);\n\t\t\tif (stored === undefined) return false;\n\n\t\t\tif (stored.revokedAt === null) {\n\t\t\t\tbyId.set(id, { ...stored, revokedAt: new Date(at) });\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\n\t\tasync revokeUserApiKeys(userId, at) {\n\t\t\tlet revoked = 0;\n\n\t\t\tfor (const [id, stored] of byId) {\n\t\t\t\tif (stored.userId === userId && stored.revokedAt === null) {\n\t\t\t\t\tbyId.set(id, { ...stored, revokedAt: new Date(at) });\n\t\t\t\t\trevoked += 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn revoked;\n\t\t},\n\n\t\tasync deleteUserApiKeys(userId) {\n\t\t\treturn deleteWhere(byId, (stored) => stored.userId === userId);\n\t\t},\n\n\t\tasync deleteExpiredApiKeys(before) {\n\t\t\treturn deleteWhere(\n\t\t\t\tbyId,\n\t\t\t\t(stored) =>\n\t\t\t\t\tstored.expiresAt !== null &&\n\t\t\t\t\tstored.expiresAt.getTime() <= before.getTime(),\n\t\t\t);\n\t\t},\n\t\t...boundMethods(byId),\n\t\t...userBoundMethods(byId),\n\t\t...expiryNoticeMethods(byId),\n\t};\n}\n",
|
|
10
10
|
"import type { InvitationId, InvitationRecord } from '../types';\nimport { copy } from './copy';\n\ntype Invitations = Map<InvitationId, InvitationRecord>;\n\nexport function holdsPending(\n\tbyId: Invitations,\n\trecord: InvitationRecord,\n): boolean {\n\tfor (const other of byId.values()) {\n\t\tif (\n\t\t\tother.id !== record.id &&\n\t\t\tother.status === 'pending' &&\n\t\t\tother.scope === record.scope &&\n\t\t\tother.email === record.email\n\t\t) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}\n\nexport function findPendingInvitation(\n\tbyId: Invitations,\n\tscope: string,\n\temail: string,\n): InvitationRecord | null {\n\tfor (const stored of byId.values()) {\n\t\tif (\n\t\t\tstored.status === 'pending' &&\n\t\t\tstored.scope === scope &&\n\t\t\tstored.email === email\n\t\t) {\n\t\t\treturn copy(stored);\n\t\t}\n\t}\n\treturn null;\n}\n",
|
|
11
11
|
"import { StoreConflict } from '../../../errors/janus-error';\nimport type {\n\tInvitationFilter,\n\tInvitationId,\n\tInvitationRecord,\n\tInvitationStore,\n} from '../types';\nimport { copy } from './copy';\nimport { findPendingInvitation, holdsPending } from './invitations-pending';\n\n/**\n * The invitation store in memory: the reference implementation of\n * {@link InvitationStore}, shipped for a consumer's unit tests and for an\n * adapter author to compare against.\n *\n * Every method is `async` and every record is copied in and out. A write reads\n * and writes with no `await` between the two, so concurrent claims on one\n * version see exactly one winner.\n */\nexport function createMemoryInvitations(): InvitationStore {\n\tconst byId: Invitations = new Map();\n\n\treturn {\n\t\tinsertInvitation: async (record) => insertInvitation(byId, record),\n\t\tfindInvitation: async (id) => findInvitation(byId, id),\n\t\tfindInvitationByCodeHash: async (codeHash) =>\n\t\t\tfindInvitationByCodeHash(byId, codeHash),\n\t\tlistScopeInvitations: async (scope, query) =>\n\t\t\tlistScopeInvitations(byId, scope, query),\n\t\tfindPendingInvitation: async (scope, email) =>\n\t\t\tfindPendingInvitation(byId, scope, email),\n\t\tcountScopeInvitations: async (scope, filter) =>\n\t\t\tcountScopeInvitations(byId, scope, filter),\n\t\tcountPendingInvitations: async (scope, now) =>\n\t\t\tcountPendingInvitations(byId, scope, now),\n\t\tupdateInvitation: async (id, ifVersion, patch) =>\n\t\t\tupdateInvitation(byId, id, ifVersion, patch),\n\t\tdeleteScopeInvitations: async (scope) =>\n\t\t\tdeleteWhere(byId, (stored) => stored.scope === scope),\n\t\tdeleteExpiredInvitations: async (before) =>\n\t\t\tdeleteWhere(\n\t\t\t\tbyId,\n\t\t\t\t(stored) => stored.expiresAt.getTime() <= before.getTime(),\n\t\t\t),\n\t};\n}\n\ntype Invitations = Map<InvitationId, InvitationRecord>;\n\nfunction insertInvitation(\n\tbyId: Invitations,\n\trecord: InvitationRecord,\n): boolean {\n\tif (byId.has(record.id)) return true;\n\tif (record.status === 'pending' && holdsPending(byId, record)) return false;\n\tbyId.set(record.id, copy(record));\n\treturn true;\n}\n\nfunction findInvitation(\n\tbyId: Invitations,\n\tid: InvitationId,\n): InvitationRecord | null {\n\tconst stored = byId.get(id);\n\treturn stored === undefined ? null : copy(stored);\n}\n\nfunction findInvitationByCodeHash(\n\tbyId: Invitations,\n\tcodeHash: string,\n): InvitationRecord | null {\n\tfor (const stored of byId.values()) {\n\t\tif (stored.codeHash === codeHash) return copy(stored);\n\t}\n\treturn null;\n}\n\nfunction listScopeInvitations(\n\tbyId: Invitations,\n\tscope: string,\n\t{\n\t\tstatus,\n\t\tfirst,\n\t\tafter,\n\t\trole = null,\n\t\tref = null,\n\t\torder = 'asc',\n\t\tlapsed = null,\n\t}: Parameters<InvitationStore['listScopeInvitations']>[1],\n): { items: InvitationRecord[]; nextCursor: string | null } {\n\tconst desc = order === 'desc';\n\t// A Map keeps insertion order, not id order.\n\tconst ids = [...byId.values()]\n\t\t.filter((invitation) =>\n\t\t\tmatches(invitation, scope, { status, role, ref, lapsed }),\n\t\t)\n\t\t.map((invitation) => invitation.id)\n\t\t.filter((id) => after === null || (desc ? id < after : id > after))\n\t\t.sort();\n\tif (desc) ids.reverse();\n\tconst pageIds = ids.slice(0, first);\n\tconst last = pageIds.at(-1);\n\n\treturn {\n\t\titems: pageIds.map((id) => copy(byId.get(id) as InvitationRecord)),\n\t\tnextCursor: ids.length > first && last !== undefined ? last : null,\n\t};\n}\n\nfunction matches(\n\tinvitation: InvitationRecord,\n\tscope: string,\n\tfilter: InvitationFilter,\n): boolean {\n\treturn (\n\t\tinvitation.scope === scope &&\n\t\t(filter.status === null || invitation.status === filter.status) &&\n\t\t(filter.role === null || invitation.role === filter.role) &&\n\t\t(filter.ref === null || (invitation.ref ?? null) === filter.ref) &&\n\t\tkeptByLapsed(invitation, filter.lapsed)\n\t);\n}\n\n/** Lapsed: stored `pending` with `expiresAt` at or before `now`. */\nfunction keptByLapsed(\n\tinvitation: InvitationRecord,\n\tlapsed: InvitationFilter['lapsed'] | null,\n): boolean {\n\tif (lapsed == null) return true;\n\tconst isLapsed =\n\t\tinvitation.status === 'pending' &&\n\t\tinvitation.expiresAt.getTime() <= lapsed.now.getTime();\n\treturn lapsed.mode === 'only' ? isLapsed : !isLapsed;\n}\n\nfunction countScopeInvitations(\n\tbyId: Invitations,\n\tscope: string,\n\tfilter: InvitationFilter,\n): number {\n\tlet count = 0;\n\tfor (const stored of byId.values()) {\n\t\tif (matches(stored, scope, filter)) count += 1;\n\t}\n\treturn count;\n}\n\nfunction countPendingInvitations(\n\tbyId: Invitations,\n\tscope: string,\n\tnow: Date,\n): number {\n\tlet count = 0;\n\tfor (const stored of byId.values()) {\n\t\tif (\n\t\t\tstored.scope === scope &&\n\t\t\tstored.status === 'pending' &&\n\t\t\tstored.expiresAt.getTime() > now.getTime()\n\t\t) {\n\t\t\tcount += 1;\n\t\t}\n\t}\n\treturn count;\n}\n\nfunction updateInvitation(\n\tbyId: Invitations,\n\tid: InvitationId,\n\tifVersion: number,\n\tpatch: Parameters<InvitationStore['updateInvitation']>[2],\n): InvitationRecord | null {\n\tconst stored = byId.get(id);\n\tif (stored === undefined) return null;\n\n\tif (stored.version !== ifVersion) {\n\t\tthrow new StoreConflict(\n\t\t\t'version',\n\t\t\t`updateInvitation: expected version ${ifVersion}, found ${stored.version}`,\n\t\t\t{\n\t\t\t\texpectedVersion: ifVersion,\n\t\t\t\tactualVersion: stored.version,\n\t\t\t\toperation: 'updateInvitation',\n\t\t\t},\n\t\t);\n\t}\n\n\tconst next: InvitationRecord = {\n\t\t...stored,\n\t\t...definedOnly(patch),\n\t\tversion: stored.version + 1,\n\t};\n\tif (next.status === 'pending' && holdsPending(byId, next)) {\n\t\tthrow new StoreConflict(\n\t\t\t'pending',\n\t\t\t'updateInvitation: another pending invitation holds this scope and address',\n\t\t\t{ operation: 'updateInvitation' },\n\t\t);\n\t}\n\n\tbyId.set(id, copy(next));\n\treturn copy(next);\n}\n\n/** A key present with `undefined` is absent, never an erasure. */\nfunction definedOnly<T extends object>(patch: T): Partial<T> {\n\treturn Object.fromEntries(\n\t\tObject.entries(patch).filter(([, value]) => value !== undefined),\n\t) as Partial<T>;\n}\n\nfunction deleteWhere(\n\tbyId: Invitations,\n\tmatches: (stored: InvitationRecord) => boolean,\n): number {\n\tlet deleted = 0;\n\n\tfor (const [id, stored] of byId) {\n\t\tif (matches(stored)) {\n\t\t\tbyId.delete(id);\n\t\t\tdeleted += 1;\n\t\t}\n\t}\n\n\treturn deleted;\n}\n",
|
|
12
12
|
"import type { PasskeyRecord, PasskeyStore } from '../types';\nimport { copy } from './copy';\n\n/**\n * The passkey store in memory, by `credentialId`: bytes compared as they are.\n *\n * Each method checks and writes with no `await` between the two, which on one\n * event loop is what an atomic insert-if-absent or conditional write is.\n */\nexport function memoryPasskeyStore(): PasskeyStore {\n\tconst byCredential = new Map<string, PasskeyRecord>();\n\n\treturn {\n\t\tasync insertPasskey(record) {\n\t\t\tconst held = byCredential.get(record.credentialId);\n\t\t\tif (held !== undefined) return copy(held);\n\n\t\t\tbyCredential.set(record.credentialId, copy(record));\n\t\t\treturn copy(record);\n\t\t},\n\n\t\tasync findPasskey(credentialId) {\n\t\t\tconst stored = byCredential.get(credentialId);\n\t\t\treturn stored === undefined ? null : copy(stored);\n\t\t},\n\n\t\tasync listUserPasskeys(userId) {\n\t\t\treturn [...byCredential.values()]\n\t\t\t\t.filter((passkey) => passkey.userId === userId)\n\t\t\t\t.map(copy);\n\t\t},\n\n\t\tasync recordPasskeyUse(userId, credentialId, use, ifCounter) {\n\t\t\tconst stored = byCredential.get(credentialId);\n\t\t\tif (stored?.userId !== userId || stored.counter !== ifCounter) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tconst updated: PasskeyRecord = {\n\t\t\t\t...stored,\n\t\t\t\tcounter: use.counter,\n\t\t\t\tbackedUp: use.backedUp,\n\t\t\t\tlastUsedAt: new Date(use.lastUsedAt),\n\t\t\t};\n\t\t\tbyCredential.set(credentialId, updated);\n\t\t\treturn copy(updated);\n\t\t},\n\n\t\tasync renamePasskey(userId, credentialId, name) {\n\t\t\tconst stored = byCredential.get(credentialId);\n\t\t\tif (stored?.userId !== userId) return false;\n\n\t\t\tbyCredential.set(credentialId, { ...stored, name });\n\t\t\treturn true;\n\t\t},\n\n\t\tasync deletePasskey(userId, credentialId) {\n\t\t\tif (byCredential.get(credentialId)?.userId !== userId) return false;\n\n\t\t\tbyCredential.delete(credentialId);\n\t\t\treturn true;\n\t\t},\n\n\t\tasync deleteUserPasskeys(userId) {\n\t\t\tlet deleted = 0;\n\n\t\t\tfor (const [key, stored] of byCredential) {\n\t\t\t\tif (stored.userId === userId) {\n\t\t\t\t\tbyCredential.delete(key);\n\t\t\t\t\tdeleted += 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn deleted;\n\t\t},\n\t};\n}\n",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"import type { Id } from '../../../ids/id';\nimport type { UserRecord, UserStore } from '../types';\nimport { copy } from './copy';\nimport {\n\tdropLogins,\n\tindexLogins,\n\tkeyOf,\n\ttaken,\n\ttakenBy,\n\ttype UserIndex,\n} from './user-index';\nimport { updateStored } from './user-update';\n\n/** The user store in memory: the records by id, and the unique index on logins. */\nexport function memoryUserStore(): UserStore {\n\tconst index: UserIndex = {\n\t\tbyId: new Map<Id, UserRecord>(),\n\t\tbyLogin: new Map<string, Id>(),\n\t};\n\tconst { byId, byLogin } = index;\n\n\treturn {\n\t\tasync insertUser(record) {\n\t\t\tconst stored = byId.get(record.id);\n\t\t\tif (stored !== undefined) return copy(stored);\n\n\t\t\tconst collision = takenBy(index, record.type, record.logins, record.id);\n\t\t\tif (collision !== undefined) {\n\t\t\t\tthrow taken('insertUser', record.type, collision);\n\t\t\t}\n\n\t\t\tconst written = copy(record);\n\t\t\tbyId.set(written.id, written);\n\t\t\tindexLogins(index, written);\n\n\t\t\treturn copy(written);\n\t\t},\n\n\t\tasync findUser(id) {\n\t\t\tconst stored = byId.get(id);\n\t\t\treturn stored === undefined ? null : copy(stored);\n\t\t},\n\n\t\tasync findUsers(ids) {\n\t\t\treturn [...new Set(ids)].flatMap((id) => {\n\t\t\t\tconst stored = byId.get(id);\n\t\t\t\treturn stored === undefined ? [] : [copy(stored)];\n\t\t\t});\n\t\t},\n\n\t\tasync findUserByLogin(type, login) {\n\t\t\tconst id = byLogin.get(keyOf(type, login));\n\t\t\tconst stored = id === undefined ? undefined : byId.get(id);\n\t\t\treturn stored === undefined ? null : copy(stored);\n\t\t},\n\n\t\tasync listUsers({ type, loginPrefix, namePrefix, after, limit }) {\n\t\t\t// A Map keeps insertion order, not id order: a retried insert or an\n\t\t\t// id minted on another machine can land out of sequence.\n\t\t\tconst ids = [...byId.values()]\n\t\t\t\t.filter(\n\t\t\t\t\t(user) =>\n\t\t\t\t\t\tuser.type === type &&\n\t\t\t\t\t\tholdsPrefix(user, loginPrefix) &&\n\t\t\t\t\t\tnamedPrefix(user, namePrefix),\n\t\t\t\t)\n\t\t\t\t.map((user) => user.id)\n\t\t\t\t.filter((id) => after === null || id > after)\n\t\t\t\t.sort();\n\t\t\tconst pageIds = ids.slice(0, limit);\n\t\t\tconst last = pageIds.at(-1);\n\n\t\t\treturn {\n\t\t\t\titems: pageIds.map((id) => copy(byId.get(id) as UserRecord)),\n\t\t\t\tnextCursor: ids.length > limit && last !== undefined ? last : null,\n\t\t\t};\n\t\t},\n\n\t\tasync countUsers({ type, loginPrefix, namePrefix }) {\n\t\t\tlet count = 0;\n\t\t\tfor (const user of byId.values()) {\n\t\t\t\tif (\n\t\t\t\t\tuser.type === type &&\n\t\t\t\t\tholdsPrefix(user, loginPrefix) &&\n\t\t\t\t\tnamedPrefix(user, namePrefix)\n\t\t\t\t) {\n\t\t\t\t\tcount += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn count;\n\t\t},\n\n\t\tasync updateUser(id, patch, ifVersion) {\n\t\t\treturn updateStored(index, id, patch, ifVersion);\n\t\t},\n\n\t\tasync deleteUser(id) {\n\t\t\tconst stored = byId.get(id);\n\t\t\tif (stored === undefined) return false;\n\n\t\t\tbyId.delete(id);\n\t\t\tdropLogins(index, stored);\n\t\t\treturn true;\n\t\t},\n\t};\n}\n\n/** Whether the user holds a login starting with the prefix; every user does when there is none. */\nfunction holdsPrefix(user: UserRecord, prefix: string | undefined): boolean {\n\treturn (\n\t\tprefix === undefined ||\n\t\tuser.logins.some((login) => login.startsWith(prefix))\n\t);\n}\n\n/** Whether the user's name key starts with the prefix; every user does when there is none. */\nfunction namedPrefix(user: UserRecord, prefix: string | undefined): boolean {\n\treturn prefix === undefined || user.nameKey?.startsWith(prefix) === true;\n}\n",
|
|
19
19
|
"import type { JanusStores } from '../types';\nimport { memoryPasskeyStore } from './passkeys';\nimport { memorySessionStore } from './sessions';\nimport { memorySocialLinkStore } from './social-links';\nimport { memoryTokenStore } from './tokens';\nimport { memoryUserStore } from './users';\n\n/**\n * The reference implementation of the store port, in memory — the optional\n * `socialLinks` and `passkeys` slots included.\n *\n * **Shipped and documented, not a test helper.** It is what a consumer uses in\n * their own unit tests, and what an adapter author compares against when a\n * conformance case they do not understand turns red. So it keeps the six rules\n * for real rather than approximately:\n *\n * - uniqueness is a constraint — an index checked and written inside the same\n * synchronous step, which is what atomic means on one event loop;\n * - `consumeToken` reads and writes with no `await` between the two, so twenty\n * concurrent calls see exactly one unspent token;\n * - every record is **copied in and copied out**, so a caller that mutates what\n * it passed or what it got back cannot reach the store — the in-memory\n * version of \"bytes round-trip\";\n * - a patch applies only the fields it names, and only the fields the port\n * declares: a stray `version` or `id` in a patch from JavaScript is ignored,\n * not written.\n *\n * Every method is `async` even though none waits on anything: a caller that\n * forgot an `await` must fail here the way it would against a real database.\n */\nexport function createMemoryStores(): JanusStores {\n\treturn {\n\t\tusers: memoryUserStore(),\n\t\tsessions: memorySessionStore(),\n\t\ttokens: memoryT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U,MAAM,WAAW,MAAM,CAAC;AAAA;AAKtD,SAAS,WAAW,CAAC,MAAkB,QAAqC;AAAA,EAC3E,OAAO,WAAW,aAAa,KAAK,SAAS,WAAW,MAAM,MAAM;AAAA;;;ACvF9D,SAAS,mBAAkB,GAAgB;AAAA,EACjD,OAAO;AAAA,IACN,OAAO,gBAAgB;AAAA,IACvB,UAAU,mBAAmB;AAAA,IAC7B,QAAQ,iBAAiB;AAAA,IACzB,aAAa,sBAAsB;AAAA,IACnC,UAAU,mBAAmB;AAAA,EAC9B;AAAA;",
|
|
22
|
+
"debugId": "627A2238AB5EA0F564756E2164756E21",
|
|
23
23
|
"names": []
|
|
24
24
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
JanusError2,
|
|
3
3
|
StoreFailure2
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-vx9a5cpy.js";
|
|
5
5
|
|
|
6
6
|
// src/stores/guard.ts
|
|
7
7
|
var ANSWERS_NOTHING = new Set([
|
|
@@ -61,4 +61,4 @@ var UNSTORABLE = "holds a NUL character or a lone surrogate, which no store can
|
|
|
61
61
|
export { guardStore, guardRelations, isStorable, UNSTORABLE };
|
|
62
62
|
|
|
63
63
|
//# debugId=5905640CBBCF2F6264756E2164756E21
|
|
64
|
-
//# sourceMappingURL=index-
|
|
64
|
+
//# sourceMappingURL=index-gzc472ar.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
invalidCursor2,
|
|
3
3
|
isSubjectSet2,
|
|
4
4
|
formatTuple2
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-vx9a5cpy.js";
|
|
6
6
|
|
|
7
7
|
// src/permissions/port/holders.ts
|
|
8
8
|
var holderCursor2 = (holder) => `${holder.type.length}:${holder.type}${holder.id}`;
|
|
@@ -124,4 +124,4 @@ function copyTuple(tuple) {
|
|
|
124
124
|
export { holderCursor2, readHolderCursor2, idMatches2, pageOfHolders2, createMemoryRelations2 };
|
|
125
125
|
|
|
126
126
|
//# debugId=5183DFA9AFC1F83564756E2164756E21
|
|
127
|
-
//# sourceMappingURL=index-
|
|
127
|
+
//# sourceMappingURL=index-r8fcessc.js.map
|
|
@@ -139,6 +139,11 @@ class ApiKeyInvalidError2 extends JanusError2 {
|
|
|
139
139
|
code = "API_KEY_INVALID";
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
class ApiKeyRefusedError2 extends JanusError2 {
|
|
143
|
+
name = "ApiKeyRefusedError";
|
|
144
|
+
code = "API_KEY_REFUSED";
|
|
145
|
+
}
|
|
146
|
+
|
|
142
147
|
class InvitationInvalidError2 extends JanusError2 {
|
|
143
148
|
name = "InvitationInvalidError";
|
|
144
149
|
code = "INVITATION_INVALID";
|
|
@@ -237,6 +242,7 @@ function statusOf2(code) {
|
|
|
237
242
|
case "CREDENTIALS_INVALID":
|
|
238
243
|
case "CODE_INVALID":
|
|
239
244
|
return 401;
|
|
245
|
+
case "API_KEY_REFUSED":
|
|
240
246
|
case "INVITATION_REFUSED":
|
|
241
247
|
case "USER_INACTIVE":
|
|
242
248
|
case "EMAIL_UNVERIFIED":
|
|
@@ -348,7 +354,7 @@ function parseSubject2(text) {
|
|
|
348
354
|
return relation === undefined ? { type, id } : setOf2({ type, id }, relation);
|
|
349
355
|
}
|
|
350
356
|
|
|
351
|
-
export { JanusError2, UserInvalidError2, AvatarIdInvalidError2, CredentialError2, UserInactiveError2, EmailUnverifiedError2, EmailChangeNeedsProofError2, TokenError2, SecondFactorError2, StepUpRequiredError2, MailThrottledError2, InvalidCursorError2, CursorFilterMismatchError2, UnsupportedError2, PermissionDepthError2, ApiKeyLimitError2, ApiKeyInvalidError2, InvitationInvalidError2, InvitationRefusedError2, InvitationLimitError2, InvitationNotPendingError2, PasswordRequiredError2, MagicLinkDisabledError2, SocialError2, PasskeyLimitError2, PasskeyError2, statusOf2, StoreFailure2, StoreConflict2, NotFoundError2, DEFAULT_PAGE_SIZE2, MAX_PAGE_SIZE2, pageLimit2, invalidCursor2, isSubjectSet2, subjectOf2, setOf2, isSetOf2, formatEntity2, formatSubject2, formatTuple2, parseTuple2, parseSubject2 };
|
|
357
|
+
export { JanusError2, UserInvalidError2, AvatarIdInvalidError2, CredentialError2, UserInactiveError2, EmailUnverifiedError2, EmailChangeNeedsProofError2, TokenError2, SecondFactorError2, StepUpRequiredError2, MailThrottledError2, InvalidCursorError2, CursorFilterMismatchError2, UnsupportedError2, PermissionDepthError2, ApiKeyLimitError2, ApiKeyInvalidError2, ApiKeyRefusedError2, InvitationInvalidError2, InvitationRefusedError2, InvitationLimitError2, InvitationNotPendingError2, PasswordRequiredError2, MagicLinkDisabledError2, SocialError2, PasskeyLimitError2, PasskeyError2, statusOf2, StoreFailure2, StoreConflict2, NotFoundError2, DEFAULT_PAGE_SIZE2, MAX_PAGE_SIZE2, pageLimit2, invalidCursor2, isSubjectSet2, subjectOf2, setOf2, isSetOf2, formatEntity2, formatSubject2, formatTuple2, parseTuple2, parseSubject2 };
|
|
352
358
|
|
|
353
|
-
//# debugId=
|
|
354
|
-
//# sourceMappingURL=index-
|
|
359
|
+
//# debugId=122B58199B1CFC9E64756E2164756E21
|
|
360
|
+
//# sourceMappingURL=index-vx9a5cpy.js.map
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"sources": ["../src/errors/janus-error/base.ts", "../src/errors/janus-error/refusals.ts", "../src/errors/janus-error/status.ts", "../src/errors/janus-error/store.ts", "../src/pagination/cursor-page.ts", "../src/subjects/subject.ts", "../src/subjects/notation.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
5
|
"import type { PasskeyRefusalReason } from '../../auth/passkeys/verifier';\nimport type { JanusErrorCode } from './codes';\nimport type {\n\tCredentialRefusal,\n\tInvitationRefusal,\n\tIssue,\n\tJanusErrorOptions,\n\tProviderRefusal,\n} from './options';\n\n/**\n * The base of everything this package throws at call time.\n *\n * It extends `Error` and not `TypeError`, and the rule behind that is\n * `nxgt-data`'s: *extend whichever class the refusals it replaces already\n * threw, so no consumer's `catch` stops working*. These replace nothing — the\n * package is new — and `DataError`, `RedisError` and `S3Error` all extend\n * `Error`, so nobody has to order their `catch` blocks.\n *\n * **There is exactly one definition of this class**, and that matters more here\n * than it looks: an adapter in another package throws `StoreFailure` and this\n * package tests it with `instanceof`. Two copies and the product is wrong about\n * what an outage is. `build.ts` shares the module across entry points with\n * `splitting: true`, and `scripts/verify-artifacts.ts` fails the build if any\n * class name appears in two entry bundles of the packed tarball.\n */\nexport class JanusError extends Error {\n\toverride name = 'JanusError';\n\treadonly code: JanusErrorCode = 'STORE_FAILED';\n\treadonly userId: string | undefined;\n\treadonly userType: string | undefined;\n\treadonly login: string | undefined;\n\treadonly reason:\n\t\t| CredentialRefusal\n\t\t| ProviderRefusal\n\t\t| PasskeyRefusalReason\n\t\t| InvitationRefusal\n\t\t| 'acr'\n\t\t| 'authTime'\n\t\t| 'apiKey'\n\t\t| undefined;\n\treadonly provider: string | undefined;\n\t/** See `JanusErrorOptions.returnTo`. Not for logs. */\n\treadonly returnTo: string | null | undefined;\n\t/** See `JanusErrorOptions.flowSpent`. */\n\treadonly flowSpent: boolean | undefined;\n\treadonly hashPrefix: string | undefined;\n\treadonly expectedVersion: number | undefined;\n\treadonly actualVersion: number | undefined;\n\treadonly issues: readonly Issue[] | undefined;\n\treadonly minLength: number | undefined;\n\treadonly operation: string | undefined;\n\treadonly slot:\n\t\t| 'users'\n\t\t| 'sessions'\n\t\t| 'tokens'\n\t\t| 'relations'\n\t\t| 'apiKeys'\n\t\t| 'invitations'\n\t\t| 'socialLinks'\n\t\t| 'passkeys'\n\t\t| undefined;\n\treadonly permission: string | undefined;\n\treadonly maxDepth: number | undefined;\n\treadonly maxActive: number | undefined;\n\treadonly field: JanusErrorOptions['field'];\n\treadonly attemptsLeft: number | undefined;\n\treadonly retryAfter: number | undefined;\n\n\tconstructor(message: string, options?: JanusErrorOptions) {\n\t\tsuper(message, { cause: options?.cause });\n\t\tthis.userId = options?.userId;\n\t\tthis.userType = options?.userType;\n\t\tthis.login = options?.login;\n\t\tthis.reason = options?.reason;\n\t\tthis.provider = options?.provider;\n\t\tthis.returnTo = options?.returnTo;\n\t\tthis.flowSpent = options?.flowSpent;\n\t\tthis.hashPrefix = options?.hashPrefix;\n\t\tthis.expectedVersion = options?.expectedVersion;\n\t\tthis.actualVersion = options?.actualVersion;\n\t\tthis.issues = options?.issues;\n\t\tthis.minLength = options?.minLength;\n\t\tthis.operation = options?.operation;\n\t\tthis.slot = options?.slot;\n\t\tthis.permission = options?.permission;\n\t\tthis.maxDepth = options?.maxDepth;\n\t\tthis.maxActive = options?.maxActive;\n\t\tthis.field = options?.field;\n\t\tthis.attemptsLeft = options?.attemptsLeft;\n\t\tthis.retryAfter = options?.retryAfter;\n\t}\n}\n",
|
|
6
|
-
"import { JanusError } from './base';\nimport type { JanusErrorCode } from './codes';\nimport type { JanusErrorOptions } from './options';\n\n/** The fields failed the user type's schema. */\nexport class UserInvalidError extends JanusError {\n\toverride name = 'UserInvalidError';\n\toverride readonly code = 'USER_INVALID' as const;\n}\n\n/** The avatar id given to `avatar.set` is not an acceptable id. */\nexport class AvatarIdInvalidError extends JanusError {\n\toverride name = 'AvatarIdInvalidError';\n\toverride readonly code = 'AVATAR_ID_INVALID' as const;\n}\n\n/** A password too short, credentials that do not match, or a hash format nobody reads. */\nexport class CredentialError extends JanusError {\n\toverride name = 'CredentialError';\n\toverride readonly code: JanusErrorCode;\n\n\tconstructor(\n\t\tcode: Extract<\n\t\t\tJanusErrorCode,\n\t\t\t'PASSWORD_TOO_SHORT' | 'CREDENTIALS_INVALID' | 'HASH_UNSUPPORTED'\n\t\t>,\n\t\tmessage: string,\n\t\toptions?: JanusErrorOptions,\n\t) {\n\t\tsuper(message, options);\n\t\tthis.code = code;\n\t}\n}\n\n/** The user is inactive, and the password given was the right one. */\nexport class UserInactiveError extends JanusError {\n\toverride name = 'UserInactiveError';\n\toverride readonly code = 'USER_INACTIVE' as const;\n}\n\n/** The password was right, the e-mail was never verified, and the user type requires it. */\nexport class EmailUnverifiedError extends JanusError {\n\toverride name = 'EmailUnverifiedError';\n\toverride readonly code = 'EMAIL_UNVERIFIED' as const;\n}\n\n/** `update` would move the e-mail of a user who holds a second factor or a passkey (`EMAIL_CHANGE_NEEDS_PROOF`, 409). */\nexport class EmailChangeNeedsProofError extends JanusError {\n\toverride name = 'EmailChangeNeedsProofError';\n\toverride readonly code = 'EMAIL_CHANGE_NEEDS_PROOF' as const;\n}\n\n/**\n * A one-time token that is unknown, already spent, lapsed, or sent to an\n * e-mail the user no longer has — or a one-time code that does not match.\n */\nexport class TokenError extends JanusError {\n\toverride name = 'TokenError';\n\toverride readonly code: JanusErrorCode;\n\n\tconstructor(\n\t\tcode: Extract<\n\t\t\tJanusErrorCode,\n\t\t\t| 'TOKEN_UNKNOWN'\n\t\t\t| 'TOKEN_SPENT'\n\t\t\t| 'TOKEN_EXPIRED'\n\t\t\t| 'TOKEN_STALE'\n\t\t\t| 'CODE_INVALID'\n\t\t>,\n\t\tmessage: string,\n\t\toptions?: JanusErrorOptions,\n\t) {\n\t\tsuper(message, options);\n\t\tthis.code = code;\n\t}\n}\n\n/** A second factor asked to change from a state it is not in. */\nexport class SecondFactorError extends JanusError {\n\toverride name = 'SecondFactorError';\n\toverride readonly code: JanusErrorCode;\n\n\tconstructor(\n\t\tcode: Extract<\n\t\t\tJanusErrorCode,\n\t\t\t'SECOND_FACTOR_NOT_ENROLLED' | 'SECOND_FACTOR_ACTIVE'\n\t\t>,\n\t\tmessage: string,\n\t\toptions?: JanusErrorOptions,\n\t) {\n\t\tsuper(message, options);\n\t\tthis.code = code;\n\t}\n}\n\n/**\n * The session proved who it is longer ago than the action asks: confirm it\n * with a step-up, then send the request again.\n */\nexport class StepUpRequiredError extends JanusError {\n\toverride name = 'StepUpRequiredError';\n\toverride readonly code = 'STEP_UP_REQUIRED' as const;\n}\n\n/**\n * Too many e-mails asked for one address, or one user, in this window:\n * nothing was issued. Wait `retryAfter` seconds, then ask again.\n */\nexport class MailThrottledError extends JanusError {\n\toverride name = 'MailThrottledError';\n\toverride readonly code = 'MAIL_THROTTLED' as const;\n}\n\n/** A cursor this store did not mint, or one for another ordering. */\nexport class InvalidCursorError extends JanusError {\n\toverride name = 'InvalidCursorError';\n\toverride readonly code = 'INVALID_CURSOR' as const;\n}\n\n/**\n * A cursor replayed against a filter other than the one it was issued for\n * (another scope, status, role, ref or order). Refused, never read as a page\n * of the other list.\n */\nexport class CursorFilterMismatchError extends JanusError {\n\toverride name = 'CursorFilterMismatchError';\n\toverride readonly code = 'CURSOR_FILTER_MISMATCH' as const;\n}\n\n/** The wired store does not implement the optional capability asked for. */\nexport class UnsupportedError extends JanusError {\n\toverride name = 'UnsupportedError';\n\toverride readonly code = 'UNSUPPORTED' as const;\n}\n\n/** A permission check walked deeper than `maxDepth` without an answer. */\nexport class PermissionDepthError extends JanusError {\n\toverride name = 'PermissionDepthError';\n\toverride readonly code = 'PERMISSION_DEPTH' as const;\n}\n\n/** The user already holds `maxActive` standing API keys; none was made. */\nexport class ApiKeyLimitError extends JanusError {\n\toverride name = 'ApiKeyLimitError';\n\toverride readonly code = 'API_KEY_LIMIT' as const;\n}\n\n/** The name, lifetime, scopes or bound object given to `apiKeys.create` is not acceptable. */\nexport class ApiKeyInvalidError extends JanusError {\n\toverride name = 'ApiKeyInvalidError';\n\toverride readonly code = 'API_KEY_INVALID' as const;\n}\n\n/** The code or the input given to an `invitations` call is not acceptable. */\nexport class InvitationInvalidError extends JanusError {\n\toverride name = 'InvitationInvalidError';\n\toverride readonly code = 'INVITATION_INVALID' as const;\n}\n\n/** `invitations.beforeAccept` refused the acceptance: nothing was written, the invitation is still pending. */\nexport class InvitationRefusedError extends JanusError {\n\toverride name = 'InvitationRefusedError';\n\toverride readonly code = 'INVITATION_REFUSED' as const;\n}\n\n/** The scope already holds `maxPending` pending invitations; none was made. */\nexport class InvitationLimitError extends JanusError {\n\toverride name = 'InvitationLimitError';\n\toverride readonly code = 'INVITATION_LIMIT' as const;\n}\n\n/** The invitation is accepted or revoked: it cannot be sent again or revoked. */\nexport class InvitationNotPendingError extends JanusError {\n\toverride name = 'InvitationNotPendingError';\n\toverride readonly code = 'INVITATION_NOT_PENDING' as const;\n}\n\n/** `invitations.accept` was given no password where the invitee needs to choose one. */\nexport class PasswordRequiredError extends JanusError {\n\toverride name = 'PasswordRequiredError';\n\toverride readonly code = 'PASSWORD_REQUIRED' as const;\n}\n\n/** A magic-link call while `magicLink.enabled` is `false` (`MAGIC_LINK_DISABLED`, 404). */\nexport class MagicLinkDisabledError extends JanusError {\n\toverride name = 'MagicLinkDisabledError';\n\toverride readonly code = 'MAGIC_LINK_DISABLED' as const;\n}\n\n/** A social flow that is expired, mismatched, refused, or that the provider failed. */\nexport class SocialError extends JanusError {\n\toverride name = 'SocialError';\n\toverride readonly code: JanusErrorCode;\n\n\tconstructor(\n\t\tcode: Extract<\n\t\t\tJanusErrorCode,\n\t\t\t| 'FLOW_EXPIRED'\n\t\t\t| 'FLOW_MISMATCH'\n\t\t\t| 'FLOW_PURPOSE_MISMATCH'\n\t\t\t| 'RETURN_TO_INVALID'\n\t\t\t| 'PROVIDER_ERROR'\n\t\t\t| 'SOCIAL_PROVIDER_UNKNOWN'\n\t\t\t| 'SOCIAL_STEP_UP_UNMET'\n\t\t\t| 'SIGN_UP_DISABLED'\n\t\t\t| 'EMAIL_NOT_VERIFIED_FOR_LINK'\n\t\t\t| 'SOCIAL_ACCOUNT_TAKEN'\n\t\t\t| 'LAST_SIGN_IN_METHOD'\n\t\t>,\n\t\tmessage: string,\n\t\toptions?: JanusErrorOptions,\n\t) {\n\t\tsuper(message, options);\n\t\tthis.code = code;\n\t}\n}\n\n/** The user already holds `maxPerUser` passkeys; none was stored. */\nexport class PasskeyLimitError extends JanusError {\n\toverride name = 'PasskeyLimitError';\n\toverride readonly code = 'PASSKEY_LIMIT' as const;\n}\n\n/**\n * A passkey registration or name that is refused (`PASSKEY_INVALID`, 400;\n * `reason` says why a response did not verify, `field: 'name'` a bad name), or\n * a credential that is already registered (`PASSKEY_TAKEN`, 409).\n */\nexport class PasskeyError extends JanusError {\n\toverride name = 'PasskeyError';\n\toverride readonly code: JanusErrorCode;\n\n\tconstructor(\n\t\tcode: Extract<JanusErrorCode, 'PASSKEY_INVALID' | 'PASSKEY_TAKEN'>,\n\t\tmessage: string,\n\t\toptions?: JanusErrorOptions,\n\t) {\n\t\tsuper(message, options);\n\t\tthis.code = code;\n\t}\n}\n",
|
|
7
|
-
"import type { JanusErrorCode } from './codes';\n\n/**\n * Every HTTP status `statusOf` answers: a union of literals, so a framework\n * whose response takes a narrower type than `number` accepts it as it is.\n */\nexport type JanusErrorStatus =\n\t| 400\n\t| 401\n\t| 403\n\t| 404\n\t| 409\n\t| 429\n\t| 500\n\t| 501\n\t| 502\n\t| 503;\n\n/**\n * The HTTP status each code deserves — the one table the integrations share,\n * so a Hono route and a GraphQL field answer the same code the same way.\n * Exhaustive: a code added to `JanusErrorCode` stops this file compiling\n * instead of answering `undefined`.\n *\n * `STORE_FAILED` is 503 and nothing else — **an outage is not a negative\n * answer**, and a 401 or a 404 would tell every user they do not exist.\n *\n * ```ts\n * if (error instanceof JanusError) return Response.json({ code: error.code }, { status: statusOf(error.code) });\n * ```\n */\nexport function statusOf(code: JanusErrorCode): JanusErrorStatus {\n\tswitch (code) {\n\t\tcase 'STORE_FAILED':\n\t\t\treturn 503;\n\t\tcase 'NOT_FOUND':\n\t\tcase 'SOCIAL_PROVIDER_UNKNOWN':\n\t\tcase 'MAGIC_LINK_DISABLED':\n\t\t\treturn 404;\n\t\tcase 'LOGIN_TAKEN':\n\t\tcase 'EMAIL_CHANGE_NEEDS_PROOF':\n\t\tcase 'VERSION_CONFLICT':\n\t\tcase 'INVITATION_PENDING':\n\t\tcase 'INVITATION_LIMIT':\n\t\tcase 'INVITATION_NOT_PENDING':\n\t\tcase 'SECOND_FACTOR_NOT_ENROLLED':\n\t\tcase 'SECOND_FACTOR_ACTIVE':\n\t\tcase 'API_KEY_LIMIT':\n\t\tcase 'EMAIL_NOT_VERIFIED_FOR_LINK':\n\t\tcase 'SOCIAL_ACCOUNT_TAKEN':\n\t\tcase 'LAST_SIGN_IN_METHOD':\n\t\tcase 'PASSKEY_TAKEN':\n\t\tcase 'PASSKEY_LIMIT':\n\t\t\treturn 409;\n\t\tcase 'USER_INVALID':\n\t\tcase 'AVATAR_ID_INVALID':\n\t\tcase 'PASSWORD_TOO_SHORT':\n\t\tcase 'HASH_UNSUPPORTED':\n\t\tcase 'INVALID_CURSOR':\n\t\tcase 'CURSOR_FILTER_MISMATCH':\n\t\tcase 'TOKEN_UNKNOWN':\n\t\tcase 'TOKEN_SPENT':\n\t\tcase 'TOKEN_EXPIRED':\n\t\tcase 'TOKEN_STALE':\n\t\tcase 'API_KEY_INVALID':\n\t\tcase 'INVITATION_INVALID':\n\t\tcase 'PASSWORD_REQUIRED':\n\t\tcase 'FLOW_EXPIRED':\n\t\tcase 'FLOW_MISMATCH':\n\t\tcase 'FLOW_PURPOSE_MISMATCH':\n\t\tcase 'RETURN_TO_INVALID':\n\t\tcase 'PASSKEY_INVALID':\n\t\t\treturn 400;\n\t\tcase 'CREDENTIALS_INVALID':\n\t\tcase 'CODE_INVALID':\n\t\t\treturn 401;\n\t\tcase 'INVITATION_REFUSED':\n\t\tcase 'USER_INACTIVE':\n\t\tcase 'EMAIL_UNVERIFIED':\n\t\tcase 'STEP_UP_REQUIRED':\n\t\tcase 'SIGN_UP_DISABLED':\n\t\tcase 'SOCIAL_STEP_UP_UNMET':\n\t\t\treturn 403;\n\t\tcase 'MAIL_THROTTLED':\n\t\t\treturn 429;\n\t\tcase 'UNSUPPORTED':\n\t\t\treturn 501;\n\t\tcase 'PERMISSION_DEPTH':\n\t\t\treturn 500;\n\t\tcase 'PROVIDER_ERROR':\n\t\t\treturn 502;\n\t}\n}\n",
|
|
6
|
+
"import { JanusError } from './base';\nimport type { JanusErrorCode } from './codes';\nimport type { JanusErrorOptions } from './options';\n\n/** The fields failed the user type's schema. */\nexport class UserInvalidError extends JanusError {\n\toverride name = 'UserInvalidError';\n\toverride readonly code = 'USER_INVALID' as const;\n}\n\n/** The avatar id given to `avatar.set` is not an acceptable id. */\nexport class AvatarIdInvalidError extends JanusError {\n\toverride name = 'AvatarIdInvalidError';\n\toverride readonly code = 'AVATAR_ID_INVALID' as const;\n}\n\n/** A password too short, credentials that do not match, or a hash format nobody reads. */\nexport class CredentialError extends JanusError {\n\toverride name = 'CredentialError';\n\toverride readonly code: JanusErrorCode;\n\n\tconstructor(\n\t\tcode: Extract<\n\t\t\tJanusErrorCode,\n\t\t\t'PASSWORD_TOO_SHORT' | 'CREDENTIALS_INVALID' | 'HASH_UNSUPPORTED'\n\t\t>,\n\t\tmessage: string,\n\t\toptions?: JanusErrorOptions,\n\t) {\n\t\tsuper(message, options);\n\t\tthis.code = code;\n\t}\n}\n\n/** The user is inactive, and the password given was the right one. */\nexport class UserInactiveError extends JanusError {\n\toverride name = 'UserInactiveError';\n\toverride readonly code = 'USER_INACTIVE' as const;\n}\n\n/** The password was right, the e-mail was never verified, and the user type requires it. */\nexport class EmailUnverifiedError extends JanusError {\n\toverride name = 'EmailUnverifiedError';\n\toverride readonly code = 'EMAIL_UNVERIFIED' as const;\n}\n\n/** `update` would move the e-mail of a user who holds a second factor or a passkey (`EMAIL_CHANGE_NEEDS_PROOF`, 409). */\nexport class EmailChangeNeedsProofError extends JanusError {\n\toverride name = 'EmailChangeNeedsProofError';\n\toverride readonly code = 'EMAIL_CHANGE_NEEDS_PROOF' as const;\n}\n\n/**\n * A one-time token that is unknown, already spent, lapsed, or sent to an\n * e-mail the user no longer has — or a one-time code that does not match.\n */\nexport class TokenError extends JanusError {\n\toverride name = 'TokenError';\n\toverride readonly code: JanusErrorCode;\n\n\tconstructor(\n\t\tcode: Extract<\n\t\t\tJanusErrorCode,\n\t\t\t| 'TOKEN_UNKNOWN'\n\t\t\t| 'TOKEN_SPENT'\n\t\t\t| 'TOKEN_EXPIRED'\n\t\t\t| 'TOKEN_STALE'\n\t\t\t| 'CODE_INVALID'\n\t\t>,\n\t\tmessage: string,\n\t\toptions?: JanusErrorOptions,\n\t) {\n\t\tsuper(message, options);\n\t\tthis.code = code;\n\t}\n}\n\n/** A second factor asked to change from a state it is not in. */\nexport class SecondFactorError extends JanusError {\n\toverride name = 'SecondFactorError';\n\toverride readonly code: JanusErrorCode;\n\n\tconstructor(\n\t\tcode: Extract<\n\t\t\tJanusErrorCode,\n\t\t\t'SECOND_FACTOR_NOT_ENROLLED' | 'SECOND_FACTOR_ACTIVE'\n\t\t>,\n\t\tmessage: string,\n\t\toptions?: JanusErrorOptions,\n\t) {\n\t\tsuper(message, options);\n\t\tthis.code = code;\n\t}\n}\n\n/**\n * The session proved who it is longer ago than the action asks: confirm it\n * with a step-up, then send the request again.\n */\nexport class StepUpRequiredError extends JanusError {\n\toverride name = 'StepUpRequiredError';\n\toverride readonly code = 'STEP_UP_REQUIRED' as const;\n}\n\n/**\n * Too many e-mails asked for one address, or one user, in this window:\n * nothing was issued. Wait `retryAfter` seconds, then ask again.\n */\nexport class MailThrottledError extends JanusError {\n\toverride name = 'MailThrottledError';\n\toverride readonly code = 'MAIL_THROTTLED' as const;\n}\n\n/** A cursor this store did not mint, or one for another ordering. */\nexport class InvalidCursorError extends JanusError {\n\toverride name = 'InvalidCursorError';\n\toverride readonly code = 'INVALID_CURSOR' as const;\n}\n\n/**\n * A cursor replayed against a filter other than the one it was issued for\n * (another scope, status, role, ref or order). Refused, never read as a page\n * of the other list.\n */\nexport class CursorFilterMismatchError extends JanusError {\n\toverride name = 'CursorFilterMismatchError';\n\toverride readonly code = 'CURSOR_FILTER_MISMATCH' as const;\n}\n\n/** The wired store does not implement the optional capability asked for. */\nexport class UnsupportedError extends JanusError {\n\toverride name = 'UnsupportedError';\n\toverride readonly code = 'UNSUPPORTED' as const;\n}\n\n/** A permission check walked deeper than `maxDepth` without an answer. */\nexport class PermissionDepthError extends JanusError {\n\toverride name = 'PermissionDepthError';\n\toverride readonly code = 'PERMISSION_DEPTH' as const;\n}\n\n/** The user already holds `maxActive` standing API keys; none was made. */\nexport class ApiKeyLimitError extends JanusError {\n\toverride name = 'ApiKeyLimitError';\n\toverride readonly code = 'API_KEY_LIMIT' as const;\n}\n\n/** The name, lifetime, scopes or bound object given to `apiKeys.create` is not acceptable. */\nexport class ApiKeyInvalidError extends JanusError {\n\toverride name = 'ApiKeyInvalidError';\n\toverride readonly code = 'API_KEY_INVALID' as const;\n}\n\n/** `apiKeys.service.authorize` refused the service key, or the key cannot be made as asked: nothing was written. */\nexport class ApiKeyRefusedError extends JanusError {\n\toverride name = 'ApiKeyRefusedError';\n\toverride readonly code = 'API_KEY_REFUSED' as const;\n}\n\n/** The code or the input given to an `invitations` call is not acceptable. */\nexport class InvitationInvalidError extends JanusError {\n\toverride name = 'InvitationInvalidError';\n\toverride readonly code = 'INVITATION_INVALID' as const;\n}\n\n/** `invitations.beforeAccept` refused the acceptance: nothing was written, the invitation is still pending. */\nexport class InvitationRefusedError extends JanusError {\n\toverride name = 'InvitationRefusedError';\n\toverride readonly code = 'INVITATION_REFUSED' as const;\n}\n\n/** The scope already holds `maxPending` pending invitations; none was made. */\nexport class InvitationLimitError extends JanusError {\n\toverride name = 'InvitationLimitError';\n\toverride readonly code = 'INVITATION_LIMIT' as const;\n}\n\n/** The invitation is accepted or revoked: it cannot be sent again or revoked. */\nexport class InvitationNotPendingError extends JanusError {\n\toverride name = 'InvitationNotPendingError';\n\toverride readonly code = 'INVITATION_NOT_PENDING' as const;\n}\n\n/** `invitations.accept` was given no password where the invitee needs to choose one. */\nexport class PasswordRequiredError extends JanusError {\n\toverride name = 'PasswordRequiredError';\n\toverride readonly code = 'PASSWORD_REQUIRED' as const;\n}\n\n/** A magic-link call while `magicLink.enabled` is `false` (`MAGIC_LINK_DISABLED`, 404). */\nexport class MagicLinkDisabledError extends JanusError {\n\toverride name = 'MagicLinkDisabledError';\n\toverride readonly code = 'MAGIC_LINK_DISABLED' as const;\n}\n\n/** A social flow that is expired, mismatched, refused, or that the provider failed. */\nexport class SocialError extends JanusError {\n\toverride name = 'SocialError';\n\toverride readonly code: JanusErrorCode;\n\n\tconstructor(\n\t\tcode: Extract<\n\t\t\tJanusErrorCode,\n\t\t\t| 'FLOW_EXPIRED'\n\t\t\t| 'FLOW_MISMATCH'\n\t\t\t| 'FLOW_PURPOSE_MISMATCH'\n\t\t\t| 'RETURN_TO_INVALID'\n\t\t\t| 'PROVIDER_ERROR'\n\t\t\t| 'SOCIAL_PROVIDER_UNKNOWN'\n\t\t\t| 'SOCIAL_STEP_UP_UNMET'\n\t\t\t| 'SIGN_UP_DISABLED'\n\t\t\t| 'EMAIL_NOT_VERIFIED_FOR_LINK'\n\t\t\t| 'SOCIAL_ACCOUNT_TAKEN'\n\t\t\t| 'LAST_SIGN_IN_METHOD'\n\t\t>,\n\t\tmessage: string,\n\t\toptions?: JanusErrorOptions,\n\t) {\n\t\tsuper(message, options);\n\t\tthis.code = code;\n\t}\n}\n\n/** The user already holds `maxPerUser` passkeys; none was stored. */\nexport class PasskeyLimitError extends JanusError {\n\toverride name = 'PasskeyLimitError';\n\toverride readonly code = 'PASSKEY_LIMIT' as const;\n}\n\n/**\n * A passkey registration or name that is refused (`PASSKEY_INVALID`, 400;\n * `reason` says why a response did not verify, `field: 'name'` a bad name), or\n * a credential that is already registered (`PASSKEY_TAKEN`, 409).\n */\nexport class PasskeyError extends JanusError {\n\toverride name = 'PasskeyError';\n\toverride readonly code: JanusErrorCode;\n\n\tconstructor(\n\t\tcode: Extract<JanusErrorCode, 'PASSKEY_INVALID' | 'PASSKEY_TAKEN'>,\n\t\tmessage: string,\n\t\toptions?: JanusErrorOptions,\n\t) {\n\t\tsuper(message, options);\n\t\tthis.code = code;\n\t}\n}\n",
|
|
7
|
+
"import type { JanusErrorCode } from './codes';\n\n/**\n * Every HTTP status `statusOf` answers: a union of literals, so a framework\n * whose response takes a narrower type than `number` accepts it as it is.\n */\nexport type JanusErrorStatus =\n\t| 400\n\t| 401\n\t| 403\n\t| 404\n\t| 409\n\t| 429\n\t| 500\n\t| 501\n\t| 502\n\t| 503;\n\n/**\n * The HTTP status each code deserves — the one table the integrations share,\n * so a Hono route and a GraphQL field answer the same code the same way.\n * Exhaustive: a code added to `JanusErrorCode` stops this file compiling\n * instead of answering `undefined`.\n *\n * `STORE_FAILED` is 503 and nothing else — **an outage is not a negative\n * answer**, and a 401 or a 404 would tell every user they do not exist.\n *\n * ```ts\n * if (error instanceof JanusError) return Response.json({ code: error.code }, { status: statusOf(error.code) });\n * ```\n */\nexport function statusOf(code: JanusErrorCode): JanusErrorStatus {\n\tswitch (code) {\n\t\tcase 'STORE_FAILED':\n\t\t\treturn 503;\n\t\tcase 'NOT_FOUND':\n\t\tcase 'SOCIAL_PROVIDER_UNKNOWN':\n\t\tcase 'MAGIC_LINK_DISABLED':\n\t\t\treturn 404;\n\t\tcase 'LOGIN_TAKEN':\n\t\tcase 'EMAIL_CHANGE_NEEDS_PROOF':\n\t\tcase 'VERSION_CONFLICT':\n\t\tcase 'INVITATION_PENDING':\n\t\tcase 'INVITATION_LIMIT':\n\t\tcase 'INVITATION_NOT_PENDING':\n\t\tcase 'SECOND_FACTOR_NOT_ENROLLED':\n\t\tcase 'SECOND_FACTOR_ACTIVE':\n\t\tcase 'API_KEY_LIMIT':\n\t\tcase 'EMAIL_NOT_VERIFIED_FOR_LINK':\n\t\tcase 'SOCIAL_ACCOUNT_TAKEN':\n\t\tcase 'LAST_SIGN_IN_METHOD':\n\t\tcase 'PASSKEY_TAKEN':\n\t\tcase 'PASSKEY_LIMIT':\n\t\t\treturn 409;\n\t\tcase 'USER_INVALID':\n\t\tcase 'AVATAR_ID_INVALID':\n\t\tcase 'PASSWORD_TOO_SHORT':\n\t\tcase 'HASH_UNSUPPORTED':\n\t\tcase 'INVALID_CURSOR':\n\t\tcase 'CURSOR_FILTER_MISMATCH':\n\t\tcase 'TOKEN_UNKNOWN':\n\t\tcase 'TOKEN_SPENT':\n\t\tcase 'TOKEN_EXPIRED':\n\t\tcase 'TOKEN_STALE':\n\t\tcase 'API_KEY_INVALID':\n\t\tcase 'INVITATION_INVALID':\n\t\tcase 'PASSWORD_REQUIRED':\n\t\tcase 'FLOW_EXPIRED':\n\t\tcase 'FLOW_MISMATCH':\n\t\tcase 'FLOW_PURPOSE_MISMATCH':\n\t\tcase 'RETURN_TO_INVALID':\n\t\tcase 'PASSKEY_INVALID':\n\t\t\treturn 400;\n\t\tcase 'CREDENTIALS_INVALID':\n\t\tcase 'CODE_INVALID':\n\t\t\treturn 401;\n\t\tcase 'API_KEY_REFUSED':\n\t\tcase 'INVITATION_REFUSED':\n\t\tcase 'USER_INACTIVE':\n\t\tcase 'EMAIL_UNVERIFIED':\n\t\tcase 'STEP_UP_REQUIRED':\n\t\tcase 'SIGN_UP_DISABLED':\n\t\tcase 'SOCIAL_STEP_UP_UNMET':\n\t\t\treturn 403;\n\t\tcase 'MAIL_THROTTLED':\n\t\t\treturn 429;\n\t\tcase 'UNSUPPORTED':\n\t\t\treturn 501;\n\t\tcase 'PERMISSION_DEPTH':\n\t\t\treturn 500;\n\t\tcase 'PROVIDER_ERROR':\n\t\t\treturn 502;\n\t}\n}\n",
|
|
8
8
|
"import { JanusError } from './base';\nimport type { JanusErrorCode } from './codes';\nimport type { JanusErrorOptions } from './options';\n\n/**\n * The store could not answer.\n *\n * **This is the class an adapter throws**, and it is exported for that reason:\n * an adapter defines no error class of its own, so `instanceof` holds across\n * the two packages. Any other throw from a store is treated as a failure too —\n * throwing this one is how an adapter says so precisely, and sets `cause`.\n */\nexport class StoreFailure extends JanusError {\n\toverride name = 'StoreFailure';\n\toverride readonly code = 'STORE_FAILED' as const;\n}\n\n/**\n * A uniqueness or a version constraint the store refused.\n *\n * Also thrown by an adapter, and also for the `instanceof` reason. `on` says\n * which constraint, because they are answered differently: a login\n * collision is the caller's to fix, a version conflict is a retry, and a\n * `pending` conflict (an invitation store: another pending invitation holds\n * the scope and address) is the inviter's to resolve.\n */\nexport class StoreConflict extends JanusError {\n\toverride name = 'StoreConflict';\n\toverride readonly code: JanusErrorCode;\n\treadonly on: 'login' | 'version' | 'pending';\n\n\tconstructor(\n\t\ton: 'login' | 'version' | 'pending',\n\t\tmessage: string,\n\t\toptions?: JanusErrorOptions,\n\t) {\n\t\tsuper(message, options);\n\t\tthis.on = on;\n\t\tthis.code =\n\t\t\ton === 'login'\n\t\t\t\t? 'LOGIN_TAKEN'\n\t\t\t\t: on === 'pending'\n\t\t\t\t\t? 'INVITATION_PENDING'\n\t\t\t\t\t: 'VERSION_CONFLICT';\n\t}\n}\n\n/** There is no such record, and the store said so. */\nexport class NotFoundError extends JanusError {\n\toverride name = 'NotFoundError';\n\toverride readonly code = 'NOT_FOUND' as const;\n}\n",
|
|
9
9
|
"import { InvalidCursorError } from '../errors/janus-error';\n\n/**\n * One page of results, and where the next one starts.\n *\n * `nextCursor` is `null` on the last page and a string on every other, so\n * `while (cursor)` is the loop and there is no separate \"done\" flag to forget.\n *\n * **There is no `total`**, and that is deliberate — the same choice\n * `@softistx/mongo`'s cursor page makes, for the same reason: an exact count over a\n * large table is a second scan, and no adapter should be made to promise one.\n * An application that needs a count asks its own store for one, where it can\n * decide what the count is allowed to cost.\n *\n * This type is **redefined here rather than imported** from `@softistx/mongo`. That\n * is deliberate duplication, recorded in AGENTS.md: a port that every adapter\n * implements cannot make one database library a dependency of the contract.\n */\nexport interface CursorPage<T> {\n\treadonly items: readonly T[];\n\treadonly nextCursor: string | null;\n}\n\n/** How many a page holds when the caller did not say. */\nexport const DEFAULT_PAGE_SIZE = 20;\n\n/**\n * The most a page may hold, whatever the caller asked for.\n *\n * Bounded in the core rather than left to each adapter, so a caller cannot ask\n * one store for a million rows and be refused by another. An application that\n * wants everything pages for it.\n */\nexport const MAX_PAGE_SIZE = 100;\n\n/**\n * The limit a store will be given, from the limit a caller asked for.\n *\n * `where` names the call the consumer wrote — `listIdentities`, not an internal\n * function — because several calls in this package take a `limit` and a message\n * that does not say which one leaves the reader to guess. That naming rule is\n * `nxgt-data`'s, and it is the reason its errors read the way they do.\n *\n * A bare `TypeError`: a limit is written in the application's own code, so this\n * cannot come from a request.\n */\nexport function pageLimit(limit: number | undefined, where: string): number {\n\tif (limit === undefined) return DEFAULT_PAGE_SIZE;\n\n\tif (!Number.isInteger(limit) || limit < 1) {\n\t\tthrow new TypeError(\n\t\t\t`${where}: limit must be an integer of at least 1, or absent`,\n\t\t);\n\t}\n\n\treturn Math.min(limit, MAX_PAGE_SIZE);\n}\n\n/**\n * Refuses a cursor this store did not mint.\n *\n * Exported for adapter authors: a cursor from another store, another ordering\n * or another version of the adapter must be refused, **never treated as an\n * absent cursor**. A silent fall back to the first page makes a caller paging a\n * list loop for ever, and the loop looks like a slow query rather than a bug.\n */\nexport function invalidCursor(\n\twhere: string,\n\tcursor: string,\n): InvalidCursorError {\n\t// The cursor's own bytes are not in the message: it is opaque, it may be\n\t// long, and printing it tells the reader nothing they can act on. Its length\n\t// is enough to tell \"truncated in transit\" from \"written by another store\".\n\treturn new InvalidCursorError(\n\t\t`${where}: this cursor was not minted by this store, or was minted for another ordering (${cursor.length} characters)`,\n\t);\n}\n",
|
|
10
10
|
"/**\n * The id every decision in this package hangs on: a user's `id`, as `janus()`\n * mints it.\n *\n * In Ory, the equality between a Kratos identity id and Keto's `subject_id` is\n * a comment and a convention, restated in three repositories and enforced\n * nowhere. Here a user **is** a subject — see {@link subjectOf} — and that\n * shared vocabulary is the whole reason users and permissions are one package\n * rather than two: two packages would make this contract implicit, and an\n * implicit contract between independently versioned packages breaks silently.\n *\n * Opaque: compared with `===`, carried in a URL, logged, never parsed.\n */\nexport type SubjectId = string;\n\n/**\n * Something a permission is about or held by — a user, a record, a team — by\n * its type and its id.\n *\n * **Typed, unlike Keto's subjects.** One application has patients and staff,\n * and an object can hold a relation too (a record's team), so an id alone does\n * not say who. `type` is a user type of `janus()` or an object type of the\n * permission model, and the same word as a user's own `type`.\n */\nexport interface Entity {\n\treadonly type: string;\n\treadonly id: string;\n}\n\n/**\n * Everyone who holds `relation` on an entity — `team:t1#member` — which is how\n * a permission is inherited rather than granted.\n *\n * A tuple whose subject is a subject set lets a whole group be given access\n * with one write: granting a record's `viewer` to `team:t1#member` means every\n * member of that team can view it, and no member holds a tuple on the record.\n */\nexport interface SubjectSet extends Entity {\n\treadonly relation: string;\n}\n\n/**\n * Who a tuple is about: one entity, or everyone who holds a relation on one.\n * {@link isSubjectSet} tells them apart.\n */\nexport type Subject = Entity | SubjectSet;\n\n/**\n * A relation tuple: `subject` holds `relation` on `object`.\n *\n * `relation` is Zanzibar's word, and a tuple is Zanzibar's unit. What is not\n * carried over is Keto's `namespace`/`object` pair: here the object is an\n * {@link Entity}, with the `type` and `id` a user already has.\n */\nexport interface RelationTuple {\n\treadonly object: Entity;\n\treadonly relation: string;\n\treadonly subject: Subject;\n}\n\n/**\n * Whether this subject is a set rather than one entity. Narrows.\n *\n * It reads the shape, so pass a user through {@link subjectOf} first: a user\n * whose fields include a string `relation` would otherwise read as a set.\n */\nexport function isSubjectSet(subject: Subject): subject is SubjectSet {\n\treturn typeof (subject as { relation?: unknown }).relation === 'string';\n}\n\n/**\n * The subject a user is: their `type` and `id`, and nothing else.\n *\n * One line, and the entire join between the two sides of the package. It\n * takes the narrowest shape it reads, so the permissions side never has to\n * know what a user is, and it copies those two fields so none of the user's\n * own fields ever reaches a tuple.\n */\nexport function subjectOf(user: {\n\treadonly type: string;\n\treadonly id: SubjectId;\n}): Entity {\n\treturn { type: user.type, id: user.id };\n}\n\n/**\n * The mark `setOf()` puts on a set: a symbol property, so it survives a spread\n * and `Object.assign`, and no value read from a database or from JSON can\n * carry it. Registered with `Symbol.for`, so two copies of this module — two\n * bundles, two entry points — still agree on it.\n */\nconst SET_OF: unique symbol = Symbol.for('@softistx/janus/setOf');\n\n/**\n * A subject set `setOf()` made: everyone who holds `relation` on `type:id`.\n *\n * Marked, because a user is passed to `can()` and `grant()` as it is, fields\n * flat on it: a user whose fields include `relation` must stay that user, and\n * never read as the set of whoever holds that relation on them. For an object\n * type, `{ type, id, relation }` is a set as written; for a user type — one\n * the model also declares as an object type — only `setOf()` makes one.\n *\n * A spread keeps the mark. `JSON.stringify` and `structuredClone` drop it:\n * through either, a set comes back as a user — call `setOf()` again, or\n * `parseSubject()` on its notation.\n */\nexport type SetOf<\n\tType extends string = string,\n\tRelation extends string = string,\n> = SubjectSet & {\n\treadonly type: Type;\n\treadonly relation: Relation;\n\treadonly [SET_OF]: true;\n};\n\n/**\n * A user or an object, never a set `setOf()` made: where a relation admits\n * `staff` but not `staff#managers`, a set passed there is refused at compile\n * time as it is at run time.\n */\nexport type NotASet = { readonly [SET_OF]?: never };\n\n/**\n * Everyone who holds `relation` on this user or object — `staff:s1#managers`.\n *\n * ```ts\n * await access.grant(record, 'viewers', setOf(ada, 'managers'));\n * ```\n *\n * Copies `type` and `id` only, like {@link subjectOf}: none of a user's own\n * fields reaches a tuple.\n */\nexport function setOf<const Type extends string, const Relation extends string>(\n\tentity: { readonly type: Type; readonly id: SubjectId },\n\trelation: Relation,\n): SetOf<Type, Relation> {\n\tif (\n\t\ttypeof entity !== 'object' ||\n\t\tentity === null ||\n\t\ttypeof entity.type !== 'string' ||\n\t\ttypeof entity.id !== 'string'\n\t) {\n\t\tthrow new TypeError('setOf: pass a user or { type, id }, then a relation');\n\t}\n\tif (typeof relation !== 'string' || relation === '') {\n\t\tthrow new TypeError('setOf: the relation must be a non-empty string');\n\t}\n\treturn Object.freeze({\n\t\ttype: entity.type,\n\t\tid: entity.id,\n\t\trelation,\n\t\t[SET_OF]: true as const,\n\t});\n}\n\n/**\n * Whether `setOf()` made this value, or a spread of one — what `can()` and\n * `grant()` read to tell a set on a user type from a user.\n */\nexport function isSetOf(value: unknown): value is SetOf {\n\treturn (\n\t\ttypeof value === 'object' &&\n\t\tvalue !== null &&\n\t\t(value as { readonly [SET_OF]?: unknown })[SET_OF] === true\n\t);\n}\n",
|
|
11
11
|
"import {\n\ttype Entity,\n\tisSubjectSet,\n\ttype RelationTuple,\n\ttype SetOf,\n\ttype Subject,\n\tsetOf,\n} from './subject';\n\n/**\n * Zanzibar's notation, with typed subjects:\n *\n * ```\n * record:r1#viewer@staff:u1\n * record:r1#viewer@team:t1#member\n * ```\n *\n * It exists for **messages, logs and documentation**, not as a wire format:\n * nothing in this package parses a tuple off the network, and a tuple that\n * crosses a boundary crosses it as an object. Keeping the notation is worth it\n * because every piece of Zanzibar writing uses it, so an error message in it is\n * an error message a reader has already learned to read.\n *\n * A type holds no `:`, and no part holds `@`, `#` or a parenthesis, so a\n * subject set needs no parentheses: after the `@`, a `#` can only begin its\n * relation. {@link parseTuple} refuses a string where that would not hold,\n * rather than reading it two ways.\n */\nexport function formatEntity(entity: Entity): string {\n\treturn `${entity.type}:${entity.id}`;\n}\n\n/** One subject: `staff:u1`, or `team:t1#member`. */\nexport function formatSubject(subject: Subject): string {\n\treturn isSubjectSet(subject)\n\t\t? `${formatEntity(subject)}#${subject.relation}`\n\t\t: formatEntity(subject);\n}\n\n/** One relation tuple, in the notation above. */\nexport function formatTuple(tuple: RelationTuple): string {\n\treturn `${formatEntity(tuple.object)}#${tuple.relation}@${formatSubject(tuple.subject)}`;\n}\n\nconst TYPE = '([^:@#()]+)';\nconst ID = '([^@#()]+)';\nconst RELATION = '([^:@#()]+)';\n\nconst TUPLE = new RegExp(`^${TYPE}:${ID}#${RELATION}@(.+)$`);\nconst SUBJECT = new RegExp(`^${TYPE}:${ID}(?:#${RELATION})?$`);\n\n/**\n * Reads a tuple back. Refuses, with a `TypeError`, a string that is not one —\n * a permission question built from a malformed string is a question whose\n * answer means nothing, and no request is behind it: the string came from a\n * developer's own code.\n */\nexport function parseTuple(text: string): RelationTuple {\n\tconst match = TUPLE.exec(text);\n\n\tif (!match) {\n\t\tthrow new TypeError(\n\t\t\t`parseTuple: \"${text}\" is not a relation tuple; expected type:id#relation@subject`,\n\t\t);\n\t}\n\n\tconst [, type, id, relation, subject] = match as unknown as [\n\t\tstring,\n\t\tstring,\n\t\tstring,\n\t\tstring,\n\t\tstring,\n\t];\n\n\treturn { object: { type, id }, relation, subject: parseSubject(subject) };\n}\n\n/**\n * Reads one subject back: `staff:u1`, or `team:t1#member`. A set is answered\n * as `setOf()` makes it, so `can()` and `grant()` read it as the set it names\n * on a user type too.\n */\nexport function parseSubject(text: string): Entity | SetOf {\n\tconst match = SUBJECT.exec(text);\n\n\tif (!match) {\n\t\tthrow new TypeError(\n\t\t\t`parseSubject: \"${text}\" is not a subject; expected type:id, or type:id#relation for a subject set`,\n\t\t);\n\t}\n\n\tconst [, type, id, relation] = match as unknown as [\n\t\tstring,\n\t\tstring,\n\t\tstring,\n\t\tstring | undefined,\n\t];\n\n\treturn relation === undefined ? { type, id } : setOf({ type, id }, relation);\n}\n"
|
|
12
12
|
],
|
|
13
|
-
"mappings": ";AA0BO,MAAM,oBAAmB,MAAM;AAAA,EAC5B,OAAO;AAAA,EACP,OAAuB;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EASA;AAAA,EAEA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAUA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAET,WAAW,CAAC,SAAiB,SAA6B;AAAA,IACzD,MAAM,SAAS,EAAE,OAAO,SAAS,MAAM,CAAC;AAAA,IACxC,KAAK,SAAS,SAAS;AAAA,IACvB,KAAK,WAAW,SAAS;AAAA,IACzB,KAAK,QAAQ,SAAS;AAAA,IACtB,KAAK,SAAS,SAAS;AAAA,IACvB,KAAK,WAAW,SAAS;AAAA,IACzB,KAAK,WAAW,SAAS;AAAA,IACzB,KAAK,YAAY,SAAS;AAAA,IAC1B,KAAK,aAAa,SAAS;AAAA,IAC3B,KAAK,kBAAkB,SAAS;AAAA,IAChC,KAAK,gBAAgB,SAAS;AAAA,IAC9B,KAAK,SAA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ourceRoot":"","sources":["../../../../src/conformance/api-keys/cases/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/conformance/api-keys/cases/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAS3C,uFAAuF;AACvF,eAAO,MAAM,gBAAgB,EAAE,SAAS,UAAU,EAQjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outage.d.ts","sourceRoot":"","sources":["../../../../src/conformance/api-keys/cases/outage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAgB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"outage.d.ts","sourceRoot":"","sources":["../../../../src/conformance/api-keys/cases/outage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAgB,MAAM,UAAU,CAAC;AAgFzD,eAAO,MAAM,iBAAiB,EAAE,SAAS,UAAU,EAkFlD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/conformance/api-keys/cases/service.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAuB3C,eAAO,MAAM,kBAAkB,EAAE,SAAS,UAAU,EAqHnD,CAAC"}
|