@authhero/multi-tenancy 14.3.0 → 14.4.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.
@@ -50,30 +50,5 @@ export interface SyncHooksResult {
50
50
  };
51
51
  tenantHooks: TenantEntityHooks;
52
52
  }
53
- /**
54
- * Creates all sync hooks for resource servers and roles.
55
- *
56
- * This is the main entry point for entity synchronization. It creates hooks that:
57
- * - Sync changes from control plane to all child tenants (create, update, delete)
58
- * - Copy entities to newly created tenants
59
- *
60
- * Note: Connections are NOT synced. Instead, they use runtime fallback by strategy.
61
- * Tenants can define a connection with a strategy (e.g., "google") and leave keys blank,
62
- * and the system will fallback to the control plane's connection with the same strategy.
63
- *
64
- * @param config - Sync configuration
65
- * @returns Object with entityHooks and tenantHooks ready to use
66
- *
67
- * @example
68
- * ```typescript
69
- * const { entityHooks, tenantHooks } = createSyncHooks({
70
- * controlPlaneTenantId: "main",
71
- * getChildTenantIds: async () => ["tenant1", "tenant2"],
72
- * getAdapters: async () => dataAdapter,
73
- * getControlPlaneAdapters: async () => dataAdapter,
74
- * sync: { resourceServers: true, roles: true },
75
- * });
76
- * ```
77
- */
78
53
  export declare function createSyncHooks(config: EntitySyncConfig): SyncHooksResult;
79
54
  //# sourceMappingURL=sync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../src/hooks/sync.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,IAAI,EACJ,UAAU,EACV,cAAc,EACd,oBAAoB,EAGpB,WAAW,EAEZ,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,iBAAiB,EAAqB,MAAM,UAAU,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,iBAAiB,EAAE,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAE3C;;OA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EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;IAEzD;;OAEG;IACH,uBAAuB,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,CAAC;IAErD;;;OAGG;IACH,IAAI,CAAC,EAAE;QACL,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC;IAEF;;OAEG;IACH,OAAO,CAAC,EAAE;QACR,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,OAAO,CAAC;QACtD,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,KAAK,OAAO,CAAC;KACnC,CAAC;CACH;AAoQD;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE;QACX,eAAe,CAAC,EAAE,WAAW,CAAC,cAAc,EAAE,oBAAoB,CAAC,CAAC;QACpE,KAAK,CAAC,EAAE,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;KACvC,CAAC;IACF,WAAW,EAAE,iBAAiB,CAAC;CAChC;AAqCD,wBAAgB,eAAe,CAAC,MAAM,EAAE,gBAAgB,GAAG,eAAe,CAwLzE"}
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.3.0",
14
+ "version": "14.4.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"
@@ -36,9 +36,9 @@
36
36
  "typescript": "^5.6.0",
37
37
  "vite": "^6.0.0",
38
38
  "vitest": "^2.1.0",
39
- "@authhero/kysely-adapter": "10.77.0",
40
- "@authhero/adapter-interfaces": "0.118.0",
41
- "authhero": "4.1.0"
39
+ "@authhero/kysely-adapter": "10.80.0",
40
+ "authhero": "4.8.0",
41
+ "@authhero/adapter-interfaces": "0.121.0"
42
42
  },
43
43
  "dependencies": {
44
44
  "zod": "^3.24.0"