@xemahq/kernel-contracts 0.23.7 → 0.24.1
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/notification/index.d.ts +2 -0
- package/dist/notification/index.d.ts.map +1 -0
- package/dist/notification/index.js +18 -0
- package/dist/notification/index.js.map +1 -0
- package/dist/notification/lib/notification-category.d.ts +16 -0
- package/dist/notification/lib/notification-category.d.ts.map +1 -0
- package/dist/notification/lib/notification-category.js +19 -0
- package/dist/notification/lib/notification-category.js.map +1 -0
- package/package.json +1 -1
- package/src/notification/index.ts +1 -0
- package/src/notification/lib/notification-category.ts +45 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notification/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./lib/notification-category"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/notification/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare enum NotificationCategory {
|
|
3
|
+
WORKFLOW = "WORKFLOW",
|
|
4
|
+
BACKLOG = "BACKLOG",
|
|
5
|
+
KNOWLEDGE = "KNOWLEDGE",
|
|
6
|
+
SESSION = "SESSION",
|
|
7
|
+
BRAINSTORMING = "BRAINSTORMING",
|
|
8
|
+
SCM = "SCM",
|
|
9
|
+
GOVERNANCE = "GOVERNANCE",
|
|
10
|
+
ARTIFACT = "ARTIFACT",
|
|
11
|
+
NOTIFICATION = "NOTIFICATION",
|
|
12
|
+
SYSTEM = "SYSTEM"
|
|
13
|
+
}
|
|
14
|
+
export declare const NotificationCategorySchema: z.ZodEnum<typeof NotificationCategory>;
|
|
15
|
+
export type NotificationCategoryValue = `${NotificationCategory}`;
|
|
16
|
+
//# sourceMappingURL=notification-category.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-category.d.ts","sourceRoot":"","sources":["../../../src/notification/lib/notification-category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,oBAAY,oBAAoB;IAE9B,QAAQ,aAAa;IAErB,OAAO,YAAY;IAEnB,SAAS,cAAc;IAEvB,OAAO,YAAY;IAEnB,aAAa,kBAAkB;IAE/B,GAAG,QAAQ;IAEX,UAAU,eAAe;IAEzB,QAAQ,aAAa;IAErB,YAAY,iBAAiB;IAE7B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,0BAA0B,wCAAqC,CAAC;AAE7E,MAAM,MAAM,yBAAyB,GAAG,GAAG,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationCategorySchema = exports.NotificationCategory = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var NotificationCategory;
|
|
6
|
+
(function (NotificationCategory) {
|
|
7
|
+
NotificationCategory["WORKFLOW"] = "WORKFLOW";
|
|
8
|
+
NotificationCategory["BACKLOG"] = "BACKLOG";
|
|
9
|
+
NotificationCategory["KNOWLEDGE"] = "KNOWLEDGE";
|
|
10
|
+
NotificationCategory["SESSION"] = "SESSION";
|
|
11
|
+
NotificationCategory["BRAINSTORMING"] = "BRAINSTORMING";
|
|
12
|
+
NotificationCategory["SCM"] = "SCM";
|
|
13
|
+
NotificationCategory["GOVERNANCE"] = "GOVERNANCE";
|
|
14
|
+
NotificationCategory["ARTIFACT"] = "ARTIFACT";
|
|
15
|
+
NotificationCategory["NOTIFICATION"] = "NOTIFICATION";
|
|
16
|
+
NotificationCategory["SYSTEM"] = "SYSTEM";
|
|
17
|
+
})(NotificationCategory || (exports.NotificationCategory = NotificationCategory = {}));
|
|
18
|
+
exports.NotificationCategorySchema = zod_1.z.nativeEnum(NotificationCategory);
|
|
19
|
+
//# sourceMappingURL=notification-category.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-category.js","sourceRoot":"","sources":["../../../src/notification/lib/notification-category.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAmBxB,IAAY,oBAqBX;AArBD,WAAY,oBAAoB;IAE9B,6CAAqB,CAAA;IAErB,2CAAmB,CAAA;IAEnB,+CAAuB,CAAA;IAEvB,2CAAmB,CAAA;IAEnB,uDAA+B,CAAA;IAE/B,mCAAW,CAAA;IAEX,iDAAyB,CAAA;IAEzB,6CAAqB,CAAA;IAErB,qDAA6B,CAAA;IAE7B,yCAAiB,CAAA;AACnB,CAAC,EArBW,oBAAoB,oCAApB,oBAAoB,QAqB/B;AAEY,QAAA,0BAA0B,GAAG,OAAC,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/kernel-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.1",
|
|
4
4
|
"description": "Consolidated Xema OS kernel wire contracts — pure types + zod schemas for the kernel protocol surfaces. One package, one npm scope, wildcard per-surface subpath exports. No framework/runtime deps.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Neuralchowder Inc. <developer@xema.dev> (https://xema.dev)",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/notification-category';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* `NotificationCategory` is the single closed taxonomy shared by every
|
|
5
|
+
* platform surface that categorises a user-facing notification or activity
|
|
6
|
+
* event — the personal notification inbox (`user-hub-api`) and the
|
|
7
|
+
* project/space/org activity timeline (`activity-feed-api`).
|
|
8
|
+
*
|
|
9
|
+
* It is the unified successor of the two divergent taxonomies these services
|
|
10
|
+
* used to keep independently (user-hub's `PIPELINE`/`SCM`/`SYSTEM`/`COLLABORATION`
|
|
11
|
+
* and activity-feed's 10-value `FeedCategory`). The canonical name for the
|
|
12
|
+
* workflow-run domain is `WORKFLOW` (user-hub's `PIPELINE` was renamed to it),
|
|
13
|
+
* matching the kernel's "workflow" vocabulary. Adding a member is a one-line
|
|
14
|
+
* PR to the kernel; both consumers pick it up via `Object.values`.
|
|
15
|
+
*
|
|
16
|
+
* Enum string values are UPPER_SNAKE to match the values persisted by both
|
|
17
|
+
* services today, so adopting this enum is value-preserving on the wire (only
|
|
18
|
+
* user-hub's legacy `PIPELINE` rows are backfilled to `WORKFLOW`).
|
|
19
|
+
*/
|
|
20
|
+
export enum NotificationCategory {
|
|
21
|
+
/** Workflow / pipeline run lifecycle (was user-hub `PIPELINE`). */
|
|
22
|
+
WORKFLOW = 'WORKFLOW',
|
|
23
|
+
/** Backlog items (epics/stories/tasks/bugs). */
|
|
24
|
+
BACKLOG = 'BACKLOG',
|
|
25
|
+
/** Knowledge base activity. */
|
|
26
|
+
KNOWLEDGE = 'KNOWLEDGE',
|
|
27
|
+
/** Agent / working session activity. */
|
|
28
|
+
SESSION = 'SESSION',
|
|
29
|
+
/** Brainstorming / ideation activity. */
|
|
30
|
+
BRAINSTORMING = 'BRAINSTORMING',
|
|
31
|
+
/** Source-control activity (PRs, pushes, reviews). */
|
|
32
|
+
SCM = 'SCM',
|
|
33
|
+
/** Governance / approval / policy activity. */
|
|
34
|
+
GOVERNANCE = 'GOVERNANCE',
|
|
35
|
+
/** Artifact / deliverable lifecycle. */
|
|
36
|
+
ARTIFACT = 'ARTIFACT',
|
|
37
|
+
/** Generic notification with no more specific domain. */
|
|
38
|
+
NOTIFICATION = 'NOTIFICATION',
|
|
39
|
+
/** System / platform-level events. */
|
|
40
|
+
SYSTEM = 'SYSTEM',
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export const NotificationCategorySchema = z.nativeEnum(NotificationCategory);
|
|
44
|
+
|
|
45
|
+
export type NotificationCategoryValue = `${NotificationCategory}`;
|