@eaera-com/cms-sdk 0.1.76 → 0.1.78

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.
Files changed (43) hide show
  1. package/dist/chunks/{_shared-DZlTUzoa.js → _shared-Dyz_Ya9z.js} +0 -1
  2. package/dist/chunks/{authz.constant-BAarvacV.js → authz.constant-BqX8Nzw6.js} +1 -1
  3. package/dist/common/constants/authz.constant.d.ts +11 -6
  4. package/dist/common/constants/authz.constant.d.ts.map +1 -1
  5. package/dist/common/constants/people.constant.d.ts +16 -0
  6. package/dist/common/constants/people.constant.d.ts.map +1 -1
  7. package/dist/common/utils/permission.d.ts +9 -0
  8. package/dist/common/utils/permission.d.ts.map +1 -0
  9. package/dist/core/createCmsSDK.d.ts.map +1 -1
  10. package/dist/core/sdk.type.d.ts +0 -6
  11. package/dist/core/sdk.type.d.ts.map +1 -1
  12. package/dist/index.d.ts +3 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +147 -62
  15. package/dist/nuxt.d.ts +0 -6
  16. package/dist/nuxt.d.ts.map +1 -1
  17. package/dist/runtime/plugin.js +2 -8
  18. package/dist/server/auth/cbs-callback.post.js +1 -1
  19. package/dist/server/auth/cbs-start.post.js +1 -1
  20. package/dist/server/auth/idp-callback.get.js +1 -1
  21. package/dist/server/auth/idp-link-callback.get.js +1 -1
  22. package/dist/server/auth/idp-link-start.get.js +1 -1
  23. package/dist/server/auth/idp-link.post.js +1 -1
  24. package/dist/server/auth/idp-login.get.js +1 -1
  25. package/dist/server/auth/idp-me.get.js +1 -1
  26. package/dist/server/auth/idp-unlink.delete.js +1 -1
  27. package/dist/server/auth/login.post.js +1 -1
  28. package/dist/server/auth/logout.post.js +1 -1
  29. package/dist/server/auth/refresh.post.js +1 -1
  30. package/dist/server/authz/portal-access.get.js +5 -13
  31. package/dist/services/authz/authz.type.d.ts +5 -6
  32. package/dist/services/authz/authz.type.d.ts.map +1 -1
  33. package/dist/services/authz/index.d.ts +9 -10
  34. package/dist/services/authz/index.d.ts.map +1 -1
  35. package/dist/services/people/history/history.type.d.ts +157 -0
  36. package/dist/services/people/history/history.type.d.ts.map +1 -0
  37. package/dist/services/people/history/index.d.ts +34 -0
  38. package/dist/services/people/history/index.d.ts.map +1 -0
  39. package/dist/services/people/index.d.ts +2 -0
  40. package/dist/services/people/index.d.ts.map +1 -1
  41. package/dist/stores/authz.d.ts +18 -32
  42. package/dist/stores/authz.d.ts.map +1 -1
  43. package/package.json +1 -1
package/dist/nuxt.d.ts CHANGED
@@ -29,12 +29,6 @@ export interface IModuleOptions {
29
29
  * Set `false` for consumers that prefer explicit `useWsStore().open()`.
30
30
  */
31
31
  wsAutoOpen?: boolean;
32
- /**
33
- * Portal id used by the portal-scoped authz flows
34
- * (`useAuthzStore().loadPortalAccess()` → `GET /api/v1/authz/me/portals/{portal}`).
35
- * e.g. `'people'` for People Hub, `'backoffice'` for the admin portal.
36
- */
37
- portal?: string;
38
32
  }
39
33
  /**
40
34
  * Nuxt module: registers a plugin that builds the CMS SDK from runtime
@@ -1 +1 @@
1
- {"version":3,"file":"nuxt.d.ts","sourceRoot":"","sources":["../src/nuxt.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEvE,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wFAAwF;IACxF,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,kFAAkF;IAClF,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAqBD;;;;;;;;;;;;;GAaG;;AACH,wBA+BG"}
1
+ {"version":3,"file":"nuxt.d.ts","sourceRoot":"","sources":["../src/nuxt.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEvE,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wFAAwF;IACxF,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,kFAAkF;IAClF,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAqBD;;;;;;;;;;;;;GAaG;;AACH,wBA+BG"}
@@ -109,8 +109,7 @@ const plugin = defineNuxtPlugin(async (nuxtApp) => {
109
109
  refresh,
110
110
  responseCasing: opts.responseCasing,
111
111
  requestCasing: opts.requestCasing,
112
- authRoute,
113
- portal: opts.portal
112
+ authRoute
114
113
  });
115
114
  sdkInstance = sdk;
116
115
  const pinia = nuxtApp.$pinia;
@@ -129,12 +128,7 @@ const plugin = defineNuxtPlugin(async (nuxtApp) => {
129
128
  } catch (e) {
130
129
  console.warn("[cms-sdk] persistence plugin install failed:", e);
131
130
  }
132
- const { authStore, authzStore, wsStore } = attachStores(pinia, sdk);
133
- try {
134
- authzStore?.setPortal?.(opts.portal ?? "");
135
- } catch (e) {
136
- console.warn("[cms-sdk] could not seed authz portal:", e);
137
- }
131
+ const { authStore, wsStore } = attachStores(pinia, sdk);
138
132
  try {
139
133
  if (import.meta.server) {
140
134
  const token = useCookie(TOKEN_STORAGE_KEY).value;
@@ -2,7 +2,7 @@ import { defineEventHandler, createError, readBody, parseCookies, getRequestHead
2
2
  import { $fetch } from 'ofetch';
3
3
  import { a as AUTH_ENDPOINT } from '../../chunks/auth.constant-CnGo0q42.js';
4
4
  import { b as HTTP_HEADER } from '../../chunks/http.constant-BzH5tJTG.js';
5
- import { r as readSdkConfig, T as TOKEN_COOKIE_OPTIONS } from '../../chunks/_shared-DZlTUzoa.js';
5
+ import { r as readSdkConfig, T as TOKEN_COOKIE_OPTIONS } from '../../chunks/_shared-Dyz_Ya9z.js';
6
6
  import { T as TOKEN_STORAGE_KEY, R as REFRESH_TOKEN_STORAGE_KEY } from '../../chunks/storage.constant-CVWam5ls.js';
7
7
 
8
8
  const cbsCallback_post = defineEventHandler(async (event) => {
@@ -2,7 +2,7 @@ import { defineEventHandler, createError, parseCookies, getRequestHeader } from
2
2
  import { $fetch } from 'ofetch';
3
3
  import { a as AUTH_ENDPOINT } from '../../chunks/auth.constant-CnGo0q42.js';
4
4
  import { b as HTTP_HEADER } from '../../chunks/http.constant-BzH5tJTG.js';
5
- import { r as readSdkConfig } from '../../chunks/_shared-DZlTUzoa.js';
5
+ import { r as readSdkConfig } from '../../chunks/_shared-Dyz_Ya9z.js';
6
6
 
7
7
  const cbsStart_post = defineEventHandler(async (event) => {
8
8
  const { cmsUrl, clientId } = readSdkConfig(event);
@@ -2,7 +2,7 @@ import { defineEventHandler, createError, getQuery, parseCookies, getRequestHead
2
2
  import { $fetch } from 'ofetch';
3
3
  import { a as AUTH_ENDPOINT } from '../../chunks/auth.constant-CnGo0q42.js';
4
4
  import { b as HTTP_HEADER } from '../../chunks/http.constant-BzH5tJTG.js';
5
- import { r as readSdkConfig, T as TOKEN_COOKIE_OPTIONS } from '../../chunks/_shared-DZlTUzoa.js';
5
+ import { r as readSdkConfig, T as TOKEN_COOKIE_OPTIONS } from '../../chunks/_shared-Dyz_Ya9z.js';
6
6
  import { T as TOKEN_STORAGE_KEY, R as REFRESH_TOKEN_STORAGE_KEY } from '../../chunks/storage.constant-CVWam5ls.js';
7
7
 
8
8
  const idpCallback_get = defineEventHandler(async (event) => {
@@ -2,7 +2,7 @@ import { defineEventHandler, createError, getQuery, parseCookies } from 'h3';
2
2
  import { $fetch } from 'ofetch';
3
3
  import { a as AUTH_ENDPOINT } from '../../chunks/auth.constant-CnGo0q42.js';
4
4
  import { b as HTTP_HEADER } from '../../chunks/http.constant-BzH5tJTG.js';
5
- import { r as readSdkConfig } from '../../chunks/_shared-DZlTUzoa.js';
5
+ import { r as readSdkConfig } from '../../chunks/_shared-Dyz_Ya9z.js';
6
6
  import { T as TOKEN_STORAGE_KEY } from '../../chunks/storage.constant-CVWam5ls.js';
7
7
 
8
8
  const idpLinkCallback_get = defineEventHandler(async (event) => {
@@ -2,7 +2,7 @@ import { defineEventHandler, createError, getQuery, parseCookies } from 'h3';
2
2
  import { $fetch } from 'ofetch';
3
3
  import { a as AUTH_ENDPOINT } from '../../chunks/auth.constant-CnGo0q42.js';
4
4
  import { b as HTTP_HEADER } from '../../chunks/http.constant-BzH5tJTG.js';
5
- import { r as readSdkConfig } from '../../chunks/_shared-DZlTUzoa.js';
5
+ import { r as readSdkConfig } from '../../chunks/_shared-Dyz_Ya9z.js';
6
6
  import { T as TOKEN_STORAGE_KEY } from '../../chunks/storage.constant-CVWam5ls.js';
7
7
 
8
8
  const idpLinkStart_get = defineEventHandler(async (event) => {
@@ -2,7 +2,7 @@ import { defineEventHandler, createError, readBody, parseCookies } from 'h3';
2
2
  import { $fetch } from 'ofetch';
3
3
  import { a as AUTH_ENDPOINT } from '../../chunks/auth.constant-CnGo0q42.js';
4
4
  import { b as HTTP_HEADER } from '../../chunks/http.constant-BzH5tJTG.js';
5
- import { r as readSdkConfig } from '../../chunks/_shared-DZlTUzoa.js';
5
+ import { r as readSdkConfig } from '../../chunks/_shared-Dyz_Ya9z.js';
6
6
  import { T as TOKEN_STORAGE_KEY } from '../../chunks/storage.constant-CVWam5ls.js';
7
7
 
8
8
  const idpLink_post = defineEventHandler(async (event) => {
@@ -2,7 +2,7 @@ import { defineEventHandler, createError, getQuery, parseCookies, getRequestHead
2
2
  import { $fetch } from 'ofetch';
3
3
  import { a as AUTH_ENDPOINT } from '../../chunks/auth.constant-CnGo0q42.js';
4
4
  import { b as HTTP_HEADER } from '../../chunks/http.constant-BzH5tJTG.js';
5
- import { r as readSdkConfig } from '../../chunks/_shared-DZlTUzoa.js';
5
+ import { r as readSdkConfig } from '../../chunks/_shared-Dyz_Ya9z.js';
6
6
 
7
7
  const idpLogin_get = defineEventHandler(async (event) => {
8
8
  const { cmsUrl, clientId } = readSdkConfig(event);
@@ -2,7 +2,7 @@ import { defineEventHandler, createError, parseCookies } from 'h3';
2
2
  import { $fetch } from 'ofetch';
3
3
  import { a as AUTH_ENDPOINT } from '../../chunks/auth.constant-CnGo0q42.js';
4
4
  import { b as HTTP_HEADER } from '../../chunks/http.constant-BzH5tJTG.js';
5
- import { r as readSdkConfig } from '../../chunks/_shared-DZlTUzoa.js';
5
+ import { r as readSdkConfig } from '../../chunks/_shared-Dyz_Ya9z.js';
6
6
  import { T as TOKEN_STORAGE_KEY } from '../../chunks/storage.constant-CVWam5ls.js';
7
7
 
8
8
  const idpMe_get = defineEventHandler(async (event) => {
@@ -2,7 +2,7 @@ import { defineEventHandler, createError, getQuery, parseCookies } from 'h3';
2
2
  import { $fetch } from 'ofetch';
3
3
  import { a as AUTH_ENDPOINT } from '../../chunks/auth.constant-CnGo0q42.js';
4
4
  import { b as HTTP_HEADER } from '../../chunks/http.constant-BzH5tJTG.js';
5
- import { r as readSdkConfig } from '../../chunks/_shared-DZlTUzoa.js';
5
+ import { r as readSdkConfig } from '../../chunks/_shared-Dyz_Ya9z.js';
6
6
  import { T as TOKEN_STORAGE_KEY } from '../../chunks/storage.constant-CVWam5ls.js';
7
7
 
8
8
  const idpUnlink_delete = defineEventHandler(async (event) => {
@@ -2,7 +2,7 @@ import { defineEventHandler, createError, readBody, parseCookies, getRequestHead
2
2
  import { $fetch } from 'ofetch';
3
3
  import { a as AUTH_ENDPOINT } from '../../chunks/auth.constant-CnGo0q42.js';
4
4
  import { b as HTTP_HEADER } from '../../chunks/http.constant-BzH5tJTG.js';
5
- import { r as readSdkConfig, T as TOKEN_COOKIE_OPTIONS } from '../../chunks/_shared-DZlTUzoa.js';
5
+ import { r as readSdkConfig, T as TOKEN_COOKIE_OPTIONS } from '../../chunks/_shared-Dyz_Ya9z.js';
6
6
  import { T as TOKEN_STORAGE_KEY, R as REFRESH_TOKEN_STORAGE_KEY } from '../../chunks/storage.constant-CVWam5ls.js';
7
7
 
8
8
  const login_post = defineEventHandler(async (event) => {
@@ -2,7 +2,7 @@ import { defineEventHandler, parseCookies, deleteCookie } from 'h3';
2
2
  import { $fetch } from 'ofetch';
3
3
  import { a as AUTH_ENDPOINT } from '../../chunks/auth.constant-CnGo0q42.js';
4
4
  import { b as HTTP_HEADER } from '../../chunks/http.constant-BzH5tJTG.js';
5
- import { r as readSdkConfig, T as TOKEN_COOKIE_OPTIONS } from '../../chunks/_shared-DZlTUzoa.js';
5
+ import { r as readSdkConfig, T as TOKEN_COOKIE_OPTIONS } from '../../chunks/_shared-Dyz_Ya9z.js';
6
6
  import { T as TOKEN_STORAGE_KEY, R as REFRESH_TOKEN_STORAGE_KEY } from '../../chunks/storage.constant-CVWam5ls.js';
7
7
 
8
8
  const logout_post = defineEventHandler(async (event) => {
@@ -2,7 +2,7 @@ import { defineEventHandler, createError, parseCookies, setCookie } from 'h3';
2
2
  import { $fetch } from 'ofetch';
3
3
  import { a as AUTH_ENDPOINT } from '../../chunks/auth.constant-CnGo0q42.js';
4
4
  import { b as HTTP_HEADER, R as RESPONSE_CASING_VALUE } from '../../chunks/http.constant-BzH5tJTG.js';
5
- import { r as readSdkConfig, T as TOKEN_COOKIE_OPTIONS } from '../../chunks/_shared-DZlTUzoa.js';
5
+ import { r as readSdkConfig, T as TOKEN_COOKIE_OPTIONS } from '../../chunks/_shared-Dyz_Ya9z.js';
6
6
  import { R as REFRESH_TOKEN_STORAGE_KEY, T as TOKEN_STORAGE_KEY } from '../../chunks/storage.constant-CVWam5ls.js';
7
7
 
8
8
  const refresh_post = defineEventHandler(async (event) => {
@@ -1,26 +1,18 @@
1
- import { defineEventHandler, createError, getQuery, parseCookies } from 'h3';
1
+ import { defineEventHandler, createError, parseCookies } from 'h3';
2
2
  import { $fetch } from 'ofetch';
3
- import { a as AUTHZ_ENDPOINT } from '../../chunks/authz.constant-BAarvacV.js';
3
+ import { a as AUTHZ_ENDPOINT } from '../../chunks/authz.constant-BqX8Nzw6.js';
4
4
  import { b as HTTP_HEADER } from '../../chunks/http.constant-BzH5tJTG.js';
5
- import { r as readSdkConfig } from '../../chunks/_shared-DZlTUzoa.js';
5
+ import { r as readSdkConfig } from '../../chunks/_shared-Dyz_Ya9z.js';
6
6
  import { T as TOKEN_STORAGE_KEY } from '../../chunks/storage.constant-CVWam5ls.js';
7
7
 
8
8
  const portalAccess_get = defineEventHandler(async (event) => {
9
- const { cmsUrl, clientId, portal: defaultPortal } = readSdkConfig(event);
9
+ const { cmsUrl, clientId } = readSdkConfig(event);
10
10
  if (!cmsUrl) throw createError({ statusCode: 500, message: "CMS URL not configured" });
11
- const query = getQuery(event);
12
- const portal = String(query.portal ?? defaultPortal ?? "").trim();
13
- if (!portal) {
14
- throw createError({
15
- statusCode: 400,
16
- message: "portal is required (query param or cmsSdk.portal module option)"
17
- });
18
- }
19
11
  const cookies = parseCookies(event);
20
12
  const token = cookies[TOKEN_STORAGE_KEY] || "";
21
13
  if (!token) throw createError({ statusCode: 401, message: "Not authenticated" });
22
14
  try {
23
- return await $fetch(AUTHZ_ENDPOINT.portalAccess(portal), {
15
+ return await $fetch(AUTHZ_ENDPOINT.portalAccess(), {
24
16
  baseURL: cmsUrl,
25
17
  headers: {
26
18
  [HTTP_HEADER.CLIENT_ID]: clientId || "",
@@ -2,14 +2,13 @@
2
2
  * Authz domain DTOs (engine RBAC surface).
3
3
  *
4
4
  * Field names are camelCase per the SDK public-surface convention; the
5
- * backend wire shape is snake_case (`has_access`) and is normalised by the
6
- * service. No tokens travel here — the access check is a pure read.
5
+ * backend wire shape arrives camelCase too (`userId` the CMS casing
6
+ * middleware rewrites response bodies). No tokens travel here — the
7
+ * access check is a pure read.
7
8
  */
8
9
  export interface IPortalAccess {
9
- /** Portal id the access was resolved for (e.g. `people`). */
10
- portal: string;
11
- /** False only on an explicit deny — a denial status throws instead. */
12
- hasAccess: boolean;
10
+ /** Caller id resolved by the engine (null when absent on the wire). */
11
+ userId: number | null;
13
12
  /**
14
13
  * Effective permission codes, e.g. `people:catalog:view`.
15
14
  * `['*']` means wildcard (grant-all) — consumers should honour it.
@@ -1 +1 @@
1
- {"version":3,"file":"authz.type.d.ts","sourceRoot":"","sources":["../../../src/services/authz/authz.type.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,SAAS,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,sDAAsD;IACtD,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB"}
1
+ {"version":3,"file":"authz.type.d.ts","sourceRoot":"","sources":["../../../src/services/authz/authz.type.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,uEAAuE;IACvE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;;OAGG;IACH,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,sDAAsD;IACtD,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB"}
@@ -15,24 +15,23 @@ export interface IAuthzServiceOptions {
15
15
  routeApi?: $Fetch;
16
16
  /** Lazy flag — when true, the service returns fake data. */
17
17
  mock: () => boolean;
18
- /** Default portal id (Nuxt module option `cmsSdk.portal`). Per-call override wins. */
19
- portal?: () => string | undefined;
20
18
  }
21
19
  export interface IAuthzService {
22
20
  /**
23
- * Resolve the caller's access to a portal
24
- * (`GET /api/v1/authz/me/portals/{portal}`).
21
+ * Resolve the caller's effective grants (`GET /api/v1/authz/me/portals`).
22
+ * Consumers decide access by checking their portal's gate key against
23
+ * `permissions` (e.g. via `useAuthzStore.can('people:portal:access')`).
25
24
  *
26
25
  * Throws on the documented error statuses so callers can branch:
27
- * 401 `UNAUTHENTICATED` / `INVALID_TOKEN_AUDIENCE`,
28
- * 403 `PORTAL_ACCESS_DENIED` (codes survive in the error payload's
29
- * `data` via the proxy's `authBackendError` / `extractAuthError`).
26
+ * 401 `UNAUTHENTICATED` / `INVALID_TOKEN_AUDIENCE`
27
+ * (codes survive in the error payload's `data` via the proxy's
28
+ * `authBackendError` / `extractAuthError`).
30
29
  */
31
- portalAccess(portal?: string): Promise<IPortalAccess>;
30
+ portalAccess(): Promise<IPortalAccess>;
32
31
  }
33
32
  /**
34
- * Authz domain service. Mirrors the engine RBAC surface used by every
35
- * portal: "am I allowed into THIS portal, and with which permissions/roles".
33
+ * Authz domain service. Mirrors the engine RBAC surface: the caller's
34
+ * effective permissions and roles.
36
35
  *
37
36
  * The result is cheap to refetch and MUST be re-resolved on login and on
38
37
  * session restore (page refresh) — caching across sessions is deliberately
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/authz/index.ts"],"names":[],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5E"}
@@ -0,0 +1,157 @@
1
+ /**
2
+ * People Hub — definition version timelines + content archive wire types.
3
+ *
4
+ * Contracts:
5
+ * - `GET /api/v1/people/history/versions` (identity-keyed timelines)
6
+ * - `GET /api/v1/people/history/archive` (cold-storage browser page)
7
+ * - `GET /api/v1/content/archive/{archive_uuid}` (one row + frozen payload)
8
+ * - `POST /api/v1/content/archive/sweep` (retention sweep)
9
+ * - `POST /api/v1/content/archive/{archive_uuid}/restore`
10
+ * - `fork_draft_request_type | fork_draft_policy | fork_draft_process` (row actions)
11
+ * - `migrate_not_ended_request_type | migrate_not_ended_policy | migrate_not_ended_process`
12
+ *
13
+ * Source of truth: `eaera-docs/company-os/eaera-people/be-docs/` (history +
14
+ * archive API references). Response bodies travel camelCase (engine casing
15
+ * middleware); query keys stay snake_case on the way in.
16
+ */
17
+ /** The three definition CTs that expose identity-keyed version timelines. */
18
+ export type PeopleHistoryTypeName = 'request_type' | 'process_type' | 'policy';
19
+ /** One trail event on a version — the who/when lifecycle log. */
20
+ export interface PeopleHistoryTrailEvent {
21
+ operation: string;
22
+ at: string;
23
+ actorId: string | null;
24
+ status: string;
25
+ }
26
+ /** One version row in a timeline — lifecycle stamps + trail. */
27
+ export interface PeopleHistoryVersionEntry {
28
+ uuid: string;
29
+ status: string;
30
+ archived: boolean;
31
+ version: number;
32
+ publishedAt: string | null;
33
+ publishedBy: string | null;
34
+ supersededAt: string | null;
35
+ decommissionedAt: string | null;
36
+ createdAt: string;
37
+ trail: PeopleHistoryTrailEvent[];
38
+ }
39
+ /** Versions grouped under one identity (`type_key` / `policy_key`). */
40
+ export interface PeopleHistoryTimelineGroup {
41
+ identityField: string;
42
+ identityValue: string;
43
+ versions: PeopleHistoryVersionEntry[];
44
+ }
45
+ export interface PeopleHistoryVersionsQuery {
46
+ typeName: PeopleHistoryTypeName;
47
+ /** Narrow to ONE identity key; omitted → every identity of the CT. */
48
+ identityValue?: string;
49
+ }
50
+ export interface PeopleHistoryVersionsResponse {
51
+ typeName: PeopleHistoryTypeName;
52
+ count: number;
53
+ timelines: PeopleHistoryTimelineGroup[];
54
+ }
55
+ export interface PeopleDefinitionForkParams {
56
+ /** Fork from a specific sibling version row; omitted → latest terminal. */
57
+ forked_from?: string;
58
+ }
59
+ /** `fork_draft_*` success payload — the redirect target is `draftUuid`. */
60
+ export interface PeopleForkDraftOutput {
61
+ draftUuid: string;
62
+ forkedFrom: string;
63
+ forkedFromVersion: number;
64
+ typeKey?: string;
65
+ policyKey?: string;
66
+ state: 'draft';
67
+ }
68
+ export interface PeopleMigrateParams {
69
+ /** `true` → dry preview (counts + findings), no mutation. */
70
+ preview?: boolean;
71
+ }
72
+ /** Preview payload — the counts gate the operator's confirm. */
73
+ export interface PeopleMigratePreview {
74
+ identityValue: string;
75
+ fromVersions: number;
76
+ toVersion: number;
77
+ candidates: number;
78
+ ended: number;
79
+ perState: Record<string, number>;
80
+ perVersion: Record<string, number>;
81
+ validationFindings: string[];
82
+ migratable: number;
83
+ blocked: number;
84
+ }
85
+ /** Run payload — `blocked > 0` rides the `migration_validation` code. */
86
+ export interface PeopleMigrateRunOutput {
87
+ moved: number;
88
+ skipped: number;
89
+ blocked: number;
90
+ code?: string | null;
91
+ }
92
+ export interface PeopleArchiveIdentity {
93
+ typeKey: string | null;
94
+ policyKey: string | null;
95
+ }
96
+ /** One archived (cold-storage) content row. */
97
+ export interface PeopleArchiveItem {
98
+ uuid: string;
99
+ contentId: string;
100
+ typeName: string;
101
+ status: string;
102
+ version: number;
103
+ identity: PeopleArchiveIdentity;
104
+ archivedAt: string | null;
105
+ archivedBy: string | null;
106
+ archiveReason: string | null;
107
+ archiveRunId: string | null;
108
+ restoredAt: string | null;
109
+ restoredBy: string | null;
110
+ }
111
+ export interface PeopleArchiveQuery {
112
+ typeName?: string;
113
+ status?: string;
114
+ limit?: number;
115
+ offset?: number;
116
+ }
117
+ export interface PeopleArchiveListResponse {
118
+ items: PeopleArchiveItem[];
119
+ total: number;
120
+ limit: number;
121
+ offset: number;
122
+ }
123
+ /** Detail adds the frozen data payload (drawer view). */
124
+ export interface PeopleArchiveDetail extends PeopleArchiveItem {
125
+ data?: Record<string, unknown> | null;
126
+ }
127
+ export interface PeopleSweepParams {
128
+ /** ALWAYS `true` on the first call — the report gates the real run. */
129
+ dryRun: boolean;
130
+ /** Explicit override for the cadence kill-switch (HTTP 409 otherwise). */
131
+ force?: boolean;
132
+ graceDays?: number | null;
133
+ domain?: string | null;
134
+ reason?: string | null;
135
+ }
136
+ /** Sweep report — also the read-only retention-state source for the UI. */
137
+ export interface PeopleSweepReport {
138
+ runId: string;
139
+ dryRun: boolean;
140
+ cadence: string;
141
+ graceDays: number | null;
142
+ eligible: number;
143
+ moved: number;
144
+ protected: number;
145
+ protectedRefs: string[];
146
+ perType: Record<string, number>;
147
+ excludedTypes: string[];
148
+ skippedWrongCadence: number;
149
+ forced: boolean;
150
+ }
151
+ /** Restore — the row returns to hot storage in its terminal state. */
152
+ export interface PeopleArchiveRestoreResponse {
153
+ success?: boolean;
154
+ item?: PeopleArchiveItem;
155
+ [key: string]: unknown;
156
+ }
157
+ //# sourceMappingURL=history.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history.type.d.ts","sourceRoot":"","sources":["../../../../src/services/people/history/history.type.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,6EAA6E;AAC7E,MAAM,MAAM,qBAAqB,GAAG,cAAc,GAAG,cAAc,GAAG,QAAQ,CAAC;AAE/E,iEAAiE;AACjE,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,gEAAgE;AAChE,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IACl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$Fetch } from 'ofetch';
2
+ import { PeopleActionName } from '../../../common/constants/people.constant';
3
+ import { PeopleActionOpts } from '../shared.types';
4
+ import { InvokeDeps } from '../_invoke';
5
+ import { PeopleArchiveDetail, PeopleArchiveListResponse, PeopleArchiveQuery, PeopleArchiveRestoreResponse, PeopleDefinitionForkParams, PeopleHistoryTypeName, PeopleHistoryVersionsQuery, PeopleHistoryVersionsResponse, PeopleMigrateParams, PeopleSweepParams, PeopleSweepReport } from './history.type';
6
+ import { ActionResponse } from '../../content/content.type';
7
+ /** Action-name map per definition CT — process carries NO "_type" suffix. */
8
+ export declare const PEOPLE_FORK_ACTION: Record<PeopleHistoryTypeName, PeopleActionName>;
9
+ export declare const PEOPLE_MIGRATE_ACTION: Record<PeopleHistoryTypeName, PeopleActionName>;
10
+ export interface IPeopleHistoryServiceOptions {
11
+ /** The CMS `$Fetch` instance (one of `sdk.apis`). */
12
+ api: $Fetch;
13
+ /** Shared row-action deps (endpoint builder) — reused from the facade. */
14
+ invokeDeps: InvokeDeps;
15
+ }
16
+ /** Versions, fork-draft, non-ended migration, archive browser, sweep/restore. */
17
+ export interface IPeopleHistoryService {
18
+ /** `GET /people/history/versions` — identity-keyed timelines; 404 → empty. */
19
+ versions(query: PeopleHistoryVersionsQuery): Promise<PeopleHistoryVersionsResponse>;
20
+ /** `fork_draft_*` row action — fresh draft of a terminal version. */
21
+ forkDraft(sourceUuid: string, typeName: PeopleHistoryTypeName, params?: PeopleDefinitionForkParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
22
+ /** `migrate_not_ended_*` row action — `params.preview` toggles the report. */
23
+ migrate(publishedUuid: string, typeName: PeopleHistoryTypeName, params?: PeopleMigrateParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
24
+ /** `GET /people/history/archive` — paged cold-storage browser. */
25
+ archive(query?: PeopleArchiveQuery): Promise<PeopleArchiveListResponse>;
26
+ /** `GET /content/archive/{archive_uuid}` — one row + frozen payload. */
27
+ archiveDetail(archiveUuid: string): Promise<PeopleArchiveDetail>;
28
+ /** `POST /content/archive/sweep` — dry-run first; 409 when blocked. */
29
+ sweep(params: PeopleSweepParams): Promise<PeopleSweepReport>;
30
+ /** `POST /content/archive/{archive_uuid}/restore` — reason recorded. */
31
+ restore(archiveUuid: string, reason: string): Promise<PeopleArchiveRestoreResponse>;
32
+ }
33
+ export declare function createPeopleHistoryService(opts: IPeopleHistoryServiceOptions): IPeopleHistoryService;
34
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/people/history/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGrC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,4BAA4B,EAC5B,0BAA0B,EAC1B,qBAAqB,EACrB,0BAA0B,EAC1B,6BAA6B,EAC7B,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,qBAAqB,EAAE,gBAAgB,CAI9E,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,EAAE,gBAAgB,CAIjF,CAAC;AAEF,MAAM,WAAW,4BAA4B;IAC3C,qDAAqD;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,0EAA0E;IAC1E,UAAU,EAAE,UAAU,CAAC;CACxB;AAED,iFAAiF;AACjF,MAAM,WAAW,qBAAqB;IACpC,8EAA8E;IAC9E,QAAQ,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAEpF,qEAAqE;IACrE,SAAS,CACP,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,qBAAqB,EAC/B,MAAM,CAAC,EAAE,0BAA0B,EACnC,IAAI,CAAC,EAAE,gBAAgB,GACtB,OAAO,CAAC,cAAc,CAAC,CAAC;IAE3B,8EAA8E;IAC9E,OAAO,CACL,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,qBAAqB,EAC/B,MAAM,CAAC,EAAE,mBAAmB,EAC5B,IAAI,CAAC,EAAE,gBAAgB,GACtB,OAAO,CAAC,cAAc,CAAC,CAAC;IAE3B,kEAAkE;IAClE,OAAO,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAExE,wEAAwE;IACxE,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEjE,uEAAuE;IACvE,KAAK,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAE7D,wEAAwE;IACxE,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;CACrF;AAED,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,4BAA4B,GACjC,qBAAqB,CA0EvB"}
@@ -9,6 +9,7 @@ import { ProcessActions } from './process/actions';
9
9
  import { IPeopleCopilotService } from './copilot';
10
10
  import { IPeoplePackOpsService } from './packops';
11
11
  import { IPeopleUiCopyService } from './uicopy';
12
+ import { IPeopleHistoryService } from './history';
12
13
  export interface IPeopleServiceOptions {
13
14
  /** The CMS `$Fetch` instance (one of `sdk.apis`). */
14
15
  api: $Fetch;
@@ -27,6 +28,7 @@ export interface IPeopleService extends LegalAndOrgActions, PermsActions, Identi
27
28
  readonly packOps: IPeoplePackOpsService;
28
29
  readonly copilot: IPeopleCopilotService;
29
30
  readonly uiCopy: IPeopleUiCopyService;
31
+ readonly history: IPeopleHistoryService;
30
32
  }
31
33
  export declare function createPeopleService(opts: IPeopleServiceOptions): IPeopleService;
32
34
  export { _invokeFactoryAction, _invokeRowAction };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/people/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAChG,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAwB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAA8B,KAAK,qBAAqB,EAAE,MAAM,WAAW,CAAC;AACnF,OAAO,EAA8B,KAAK,qBAAqB,EAAE,MAAM,WAAW,CAAC;AACnF,OAAO,EAA6B,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhF,MAAM,WAAW,qBAAqB;IACpC,qDAAqD;IACrD,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;GAMG;AACH,MAAM,WAAW,cACf,SAAQ,kBAAkB,EAAE,YAAY,EAAE,eAAe,EAAE,cA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