@authhero/multi-tenancy 14.24.0 → 14.25.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/dist/multi-tenancy.cjs +1 -1
- package/dist/multi-tenancy.mjs +281 -224
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/rollout/defaults-projection.d.ts +47 -1
- package/dist/types/rollout/defaults-projection.d.ts.map +1 -1
- package/dist/types/rollout/index.d.ts +3 -1
- package/dist/types/rollout/index.d.ts.map +1 -1
- package/dist/types/rollout/payload.d.ts +57 -0
- package/dist/types/rollout/payload.d.ts.map +1 -0
- package/dist/types/routes/tenants.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { MultiTenancyConfig, MultiTenancyHooks, MultiTenancyBindings, MultiTenan
|
|
|
3
3
|
export * from "./types";
|
|
4
4
|
export { initMultiTenant } from "./init";
|
|
5
5
|
export type { MultiTenantConfig, MultiTenantResult, ControlPlaneConfig, } from "./init";
|
|
6
|
-
export { createDirectRolloutAdapter, projectControlPlaneDefaults, } from "./rollout";
|
|
7
|
-
export type { ControlPlaneRolloutAdapter, DefaultsProjectionConfig, DefaultsProjectionEntities, DefaultsProjectionResult, EntityProjectionOutcome, } from "./rollout";
|
|
6
|
+
export { createDirectRolloutAdapter, projectControlPlaneDefaults, buildControlPlaneDefaultsPayload, applyControlPlaneDefaultsPayload, } from "./rollout";
|
|
7
|
+
export type { ControlPlaneRolloutAdapter, DefaultsProjectionConfig, DefaultsProjectionEntities, DefaultsProjectionResult, EntityProjectionOutcome, ProjectableDefaults, ControlPlaneDefaultsPayload, ControlPlaneDefaultsApplyResult, DefaultsPayloadEntities, } from "./rollout";
|
|
8
8
|
export { createSyncHooks } from "./hooks/sync";
|
|
9
9
|
export type { EntitySyncConfig, SyncHooksResult } from "./hooks/sync";
|
|
10
10
|
export { createTenantsOpenAPIRouter } from "./routes";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAajB,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,QAAQ,CAAC;AAKhB,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAajB,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,QAAQ,CAAC;AAKhB,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC3B,gCAAgC,EAChC,gCAAgC,GACjC,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,EACnB,2BAA2B,EAC3B,+BAA+B,EAC/B,uBAAuB,GACxB,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEtE,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAEtD,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,kCAAkC,EAClC,yBAAyB,EACzB,wBAAwB,EACxB,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,mCAAmC,EACnC,uBAAuB,GACxB,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEhF,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,kBAAkB,GACzB,iBAAiB,CAgBnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,kBAAkB;cAE/C,oBAAoB;eACnB,qBAAqB;0CASnC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,kBAAkB;;;;;;;kBAnD9C,oBAAoB;mBACnB,qBAAqB;;;IAwDhC;;;;;;;OAOG;6BAES,OAAO,UAAU,EAAE,YAAY,qBACtB;QAAE,oBAAoB,CAAC,EAAE,MAAM,CAAA;KAAE;EAOzD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataAdapters } from "authhero";
|
|
1
|
+
import { DataAdapters, Connection, ResourceServer, Hook, EmailProvider, Branding, PromptSetting } from "authhero";
|
|
2
2
|
/**
|
|
3
3
|
* Which control plane entities to project into a tenant's own database. Every
|
|
4
4
|
* entity defaults to `true`.
|
|
@@ -18,6 +18,30 @@ export interface DefaultsProjectionEntities {
|
|
|
18
18
|
branding?: boolean;
|
|
19
19
|
promptSettings?: boolean;
|
|
20
20
|
}
|
|
21
|
+
/** Entity flags resolved to concrete booleans (all defaulted to `true`). */
|
|
22
|
+
export interface ResolvedDefaultsEntities {
|
|
23
|
+
connections: boolean;
|
|
24
|
+
resourceServers: boolean;
|
|
25
|
+
hooks: boolean;
|
|
26
|
+
emailProvider: boolean;
|
|
27
|
+
branding: boolean;
|
|
28
|
+
promptSettings: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare function resolveDefaultsEntities(entities?: DefaultsProjectionEntities): ResolvedDefaultsEntities;
|
|
31
|
+
/**
|
|
32
|
+
* The control plane defaults as plain data — the result of reading them off a
|
|
33
|
+
* control plane adapter. This is also the non-key half of the wire payload
|
|
34
|
+
* (`ControlPlaneDefaultsPayload`), so the same `writeControlPlaneDefaults` path
|
|
35
|
+
* serves both the in-process projection and the apply-a-payload path.
|
|
36
|
+
*/
|
|
37
|
+
export interface ProjectableDefaults {
|
|
38
|
+
connections: Connection[];
|
|
39
|
+
resourceServers: ResourceServer[];
|
|
40
|
+
hooks: Hook[];
|
|
41
|
+
emailProvider: EmailProvider | null;
|
|
42
|
+
branding: Branding | null;
|
|
43
|
+
promptSettings: PromptSetting | null;
|
|
44
|
+
}
|
|
21
45
|
export interface DefaultsProjectionConfig {
|
|
22
46
|
/**
|
|
23
47
|
* The control plane tenant id. Projected rows are written into the target
|
|
@@ -62,6 +86,28 @@ export interface DefaultsProjectionResult {
|
|
|
62
86
|
branding: EntityProjectionOutcome;
|
|
63
87
|
promptSettings: EntityProjectionOutcome;
|
|
64
88
|
}
|
|
89
|
+
export declare function emptyOutcome(): EntityProjectionOutcome;
|
|
90
|
+
export declare function emptyResult(tenantId: string): DefaultsProjectionResult;
|
|
91
|
+
export declare function isInheritableHook(hook: Hook): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Runs `op`, routing any failure either to a thrown error (loud, default) or to
|
|
94
|
+
* the outcome's `errors` array (when `continueOnError`).
|
|
95
|
+
*/
|
|
96
|
+
export declare function attempt(outcome: EntityProjectionOutcome, label: string, continueOnError: boolean, op: () => Promise<void>): Promise<void>;
|
|
97
|
+
/**
|
|
98
|
+
* Reads the control plane's defaults off `cp` into plain data. Returns the full
|
|
99
|
+
* (unfiltered) set; the `is_system` / `inheritable` filters are applied on the
|
|
100
|
+
* write side so reads stay uniform. Entities whose flag is false are skipped
|
|
101
|
+
* (empty array / null) so callers don't pay for rows they won't write.
|
|
102
|
+
*/
|
|
103
|
+
export declare function readControlPlaneDefaults(cp: DataAdapters, cpId: string, project: ResolvedDefaultsEntities): Promise<ProjectableDefaults>;
|
|
104
|
+
/**
|
|
105
|
+
* Writes `data` into `target` under `cpId`, upserting each row by its stable id
|
|
106
|
+
* so re-runs converge. Resource servers are filtered to `is_system` and hooks
|
|
107
|
+
* to `inheritable` — the same set the runtime fallback reads — so passing the
|
|
108
|
+
* full (unfiltered) read result here is safe. `result` is mutated in place.
|
|
109
|
+
*/
|
|
110
|
+
export declare function writeControlPlaneDefaults(data: ProjectableDefaults, target: DataAdapters, cpId: string, project: ResolvedDefaultsEntities, continueOnError: boolean, result: DefaultsProjectionResult): Promise<void>;
|
|
65
111
|
/**
|
|
66
112
|
* Projects the control plane tenant's inheritable defaults into a single target
|
|
67
113
|
* tenant's database, writing the rows under the control plane tenant id so the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults-projection.d.ts","sourceRoot":"","sources":["../../../src/rollout/defaults-projection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"defaults-projection.d.ts","sourceRoot":"","sources":["../../../src/rollout/defaults-projection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,UAAU,EACV,cAAc,EACd,IAAI,EACJ,aAAa,EACb,QAAQ,EACR,aAAa,EAKd,MAAM,UAAU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BAAwB,CAAC,CA0BnC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { DefaultsProjectionConfig, DefaultsProjectionResult } from "./defaults-projection";
|
|
2
|
-
export type { DefaultsProjectionConfig, DefaultsProjectionEntities, DefaultsProjectionResult, EntityProjectionOutcome, } from "./defaults-projection";
|
|
2
|
+
export type { DefaultsProjectionConfig, DefaultsProjectionEntities, DefaultsProjectionResult, EntityProjectionOutcome, ProjectableDefaults, } from "./defaults-projection";
|
|
3
3
|
export { projectControlPlaneDefaults } from "./defaults-projection";
|
|
4
|
+
export type { ControlPlaneDefaultsPayload, ControlPlaneDefaultsApplyResult, DefaultsPayloadEntities, } from "./payload";
|
|
5
|
+
export { buildControlPlaneDefaultsPayload, applyControlPlaneDefaultsPayload, } from "./payload";
|
|
4
6
|
/**
|
|
5
7
|
* A control plane rollout applies the control plane's state to one or more
|
|
6
8
|
* tenant databases. `syncDefaults` is the only operation today; schema
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rollout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EAEzB,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EACV,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rollout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EAEzB,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EACV,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAEpE,YAAY,EACV,2BAA2B,EAC3B,+BAA+B,EAC/B,uBAAuB,GACxB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,gCAAgC,EAChC,gCAAgC,GACjC,MAAM,WAAW,CAAC;AAEnB;;;;;;;;;;GAUG;AACH,MAAM,WAAW,0BAA0B;IACzC,0EAA0E;IAC1E,YAAY,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAExE;;;OAGG;IACH,qBAAqB,CACnB,eAAe,EAAE,MAAM,EAAE,GACxB,OAAO,CAAC,wBAAwB,EAAE,CAAC,CAAC;CACxC;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,wBAAwB,GAC/B,0BAA0B,CAa5B"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { DataAdapters, SigningKey } from "authhero";
|
|
2
|
+
import { DefaultsProjectionEntities, DefaultsProjectionResult, EntityProjectionOutcome, ProjectableDefaults } from "./defaults-projection";
|
|
3
|
+
/**
|
|
4
|
+
* Entity flags for the wire payload — the six default entities plus signing
|
|
5
|
+
* keys, which only flow through the payload (build + apply), never through the
|
|
6
|
+
* in-process `projectControlPlaneDefaults`.
|
|
7
|
+
*/
|
|
8
|
+
export type DefaultsPayloadEntities = DefaultsProjectionEntities & {
|
|
9
|
+
signingKeys?: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Wire shape pushed from a control plane to a tenant database. Transport-
|
|
13
|
+
* agnostic: a Cloudflare dispatch push, an HTTP POST, or an in-process call all
|
|
14
|
+
* carry this same object. Built on the control plane with
|
|
15
|
+
* {@link buildControlPlaneDefaultsPayload} and applied on the tenant with
|
|
16
|
+
* {@link applyControlPlaneDefaultsPayload}.
|
|
17
|
+
*/
|
|
18
|
+
export interface ControlPlaneDefaultsPayload extends ProjectableDefaults {
|
|
19
|
+
/**
|
|
20
|
+
* Control-plane shared `jwt_signing` keys, PUBLIC material only. Invariant:
|
|
21
|
+
* `pkcs7` (the private key) is stripped on build AND re-stripped on apply, so
|
|
22
|
+
* a private key can never cross the wire or land in a tenant DB. Used to
|
|
23
|
+
* verify tokens the control plane signed (e.g. forwarded admin tokens).
|
|
24
|
+
*/
|
|
25
|
+
signingKeys: SigningKey[];
|
|
26
|
+
}
|
|
27
|
+
/** Result of applying a payload — the projection result plus the key outcome. */
|
|
28
|
+
export interface ControlPlaneDefaultsApplyResult extends DefaultsProjectionResult {
|
|
29
|
+
signingKeys: EntityProjectionOutcome;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Reads the control plane's defaults + public signing keys off a control-plane
|
|
33
|
+
* adapter and filters them down to the inheritable, shareable set — the wire
|
|
34
|
+
* payload. Mirrors what `projectControlPlaneDefaults` writes, minus the write.
|
|
35
|
+
*
|
|
36
|
+
* The signing-key selection reuses authhero's `listControlPlaneKeys`
|
|
37
|
+
* (`-_exists_:tenant_id`) so the public-key query has a single source of truth;
|
|
38
|
+
* this layer only strips `pkcs7`.
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildControlPlaneDefaultsPayload(controlPlaneAdapters: DataAdapters, controlPlaneTenantId: string, entities?: DefaultsPayloadEntities): Promise<ControlPlaneDefaultsPayload>;
|
|
41
|
+
/**
|
|
42
|
+
* Applies a control-plane defaults payload to a tenant's own adapter, writing
|
|
43
|
+
* the rows under `controlPlaneTenantId` so the runtime fallback resolves them
|
|
44
|
+
* locally. Reuses the same upsert/filter path as `projectControlPlaneDefaults`
|
|
45
|
+
* (via `writeControlPlaneDefaults`) and adds the dedicated signing-key path.
|
|
46
|
+
*
|
|
47
|
+
* The payload is a trust boundary: every singleton is re-parsed with its schema
|
|
48
|
+
* and signing keys are re-stripped of `pkcs7` before anything is written.
|
|
49
|
+
*
|
|
50
|
+
* `result.tenantId` is the control-plane tenant id the rows are keyed under
|
|
51
|
+
* (the target adapter already _is_ the tenant's database).
|
|
52
|
+
*/
|
|
53
|
+
export declare function applyControlPlaneDefaultsPayload(payload: ControlPlaneDefaultsPayload, targetAdapters: DataAdapters, controlPlaneTenantId: string, options?: {
|
|
54
|
+
continueOnError?: boolean;
|
|
55
|
+
entities?: DefaultsPayloadEntities;
|
|
56
|
+
}): Promise<ControlPlaneDefaultsApplyResult>;
|
|
57
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/rollout/payload.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,UAAU,EAKX,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,EAQpB,MAAM,uBAAuB,CAAC;AAE/B;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,0BAA0B,GAAG;IACjE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;IACtE;;;;;OAKG;IACH,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED,iFAAiF;AACjF,MAAM,WAAW,+BAAgC,SAAQ,wBAAwB;IAC/E,WAAW,EAAE,uBAAuB,CAAC;CACtC;AAkBD;;;;;;;;GAQG;AACH,wBAAsB,gCAAgC,CACpD,oBAAoB,EAAE,YAAY,EAClC,oBAAoB,EAAE,MAAM,EAC5B,QAAQ,GAAE,uBAA4B,GACrC,OAAO,CAAC,2BAA2B,CAAC,CA2BtC;AAuCD;;;;;;;;;;;GAWG;AACH,wBAAsB,gCAAgC,CACpD,OAAO,EAAE,2BAA2B,EACpC,cAAc,EAAE,YAAY,EAC5B,oBAAoB,EAAE,MAAM,EAC5B,OAAO,GAAE;IACP,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,uBAAuB,CAAC;CAC/B,GACL,OAAO,CAAC,+BAA+B,CAAC,CAwC1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../../src/routes/tenants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAUhE,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EAElB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../../src/routes/tenants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAUhE,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EAElB,MAAM,UAAU,CAAC;AAwClB;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,kBAAkB,EAC1B,KAAK,EAAE,iBAAiB;cAGZ,oBAAoB;eACnB,qBAAqB;YAggBnC"}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/markusahlstrand/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "14.
|
|
14
|
+
"version": "14.25.0",
|
|
15
15
|
"description": "Multi-tenancy support for AuthHero with organization-based access control and per-tenant database isolation",
|
|
16
16
|
"files": [
|
|
17
17
|
"dist"
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"vite": "^8.0.14",
|
|
38
38
|
"vitest": "^4.1.7",
|
|
39
39
|
"@authhero/kysely-adapter": "11.8.9",
|
|
40
|
-
"
|
|
41
|
-
"authhero": "
|
|
40
|
+
"authhero": "8.5.0",
|
|
41
|
+
"@authhero/adapter-interfaces": "3.1.1"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"zod": "^4.4.3"
|