@fabricorg/platform 0.5.0 → 0.6.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/agent-hitl/index.cjs +12 -0
- package/dist/agent-hitl/index.cjs.map +1 -0
- package/dist/agent-hitl/index.d.cts +34 -0
- package/dist/agent-hitl/index.d.ts +34 -0
- package/dist/agent-hitl/index.js +3 -0
- package/dist/agent-hitl/index.js.map +1 -0
- package/dist/chunk-F3E5SXPN.cjs +28 -0
- package/dist/chunk-F3E5SXPN.cjs.map +1 -0
- package/dist/chunk-OFCCZ27Z.js +26 -0
- package/dist/chunk-OFCCZ27Z.js.map +1 -0
- package/dist/chunk-X7WC4AYC.js +310 -0
- package/dist/chunk-X7WC4AYC.js.map +1 -0
- package/dist/chunk-YQEXO3IQ.cjs +320 -0
- package/dist/chunk-YQEXO3IQ.cjs.map +1 -0
- package/dist/index.cjs +99 -62
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -6
- package/dist/privacy/index.cjs +34 -2
- package/dist/privacy/index.d.cts +102 -1
- package/dist/privacy/index.d.ts +102 -1
- package/dist/privacy/index.js +1 -1
- package/package.json +207 -196
- package/dist/chunk-LHCSVEFT.cjs +0 -8
- package/dist/chunk-LHCSVEFT.cjs.map +0 -1
- package/dist/chunk-N24NLCZ6.js +0 -6
- package/dist/chunk-N24NLCZ6.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,197 +1,208 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
2
|
+
"name": "@fabricorg/platform",
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "Generic, vertical-agnostic runtime for ontology-based business applications. Provides actions, modules, events, policies, state machines, adapters, displays, projections, privacy, and evidence contracts. Zero runtime dependencies; portable across any database client and any vertical (lending, insurance, healthcare, legal, etc.).",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"fabric",
|
|
7
|
+
"ontology",
|
|
8
|
+
"action-runtime",
|
|
9
|
+
"event-sourcing",
|
|
10
|
+
"saga",
|
|
11
|
+
"state-machine",
|
|
12
|
+
"policy-engine",
|
|
13
|
+
"adapter-registry"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": "Fabric",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/Fabric-Pro/fabric-platform.git",
|
|
20
|
+
"directory": "packages/platform"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/Fabric-Pro/fabric-platform#readme",
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/Fabric-Pro/fabric-platform/issues"
|
|
25
|
+
},
|
|
26
|
+
"type": "module",
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"main": "./dist/index.cjs",
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"default": "./dist/index.js"
|
|
35
|
+
},
|
|
36
|
+
"require": {
|
|
37
|
+
"types": "./dist/index.d.cts",
|
|
38
|
+
"default": "./dist/index.cjs"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"./actions": {
|
|
42
|
+
"import": {
|
|
43
|
+
"types": "./dist/actions/index.d.ts",
|
|
44
|
+
"default": "./dist/actions/index.js"
|
|
45
|
+
},
|
|
46
|
+
"require": {
|
|
47
|
+
"types": "./dist/actions/index.d.cts",
|
|
48
|
+
"default": "./dist/actions/index.cjs"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"./adapters": {
|
|
52
|
+
"import": {
|
|
53
|
+
"types": "./dist/adapters/index.d.ts",
|
|
54
|
+
"default": "./dist/adapters/index.js"
|
|
55
|
+
},
|
|
56
|
+
"require": {
|
|
57
|
+
"types": "./dist/adapters/index.d.cts",
|
|
58
|
+
"default": "./dist/adapters/index.cjs"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"./agent-hitl": {
|
|
62
|
+
"import": {
|
|
63
|
+
"types": "./dist/agent-hitl/index.d.ts",
|
|
64
|
+
"default": "./dist/agent-hitl/index.js"
|
|
65
|
+
},
|
|
66
|
+
"require": {
|
|
67
|
+
"types": "./dist/agent-hitl/index.d.cts",
|
|
68
|
+
"default": "./dist/agent-hitl/index.cjs"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"./displays": {
|
|
72
|
+
"import": {
|
|
73
|
+
"types": "./dist/displays/index.d.ts",
|
|
74
|
+
"default": "./dist/displays/index.js"
|
|
75
|
+
},
|
|
76
|
+
"require": {
|
|
77
|
+
"types": "./dist/displays/index.d.cts",
|
|
78
|
+
"default": "./dist/displays/index.cjs"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"./events": {
|
|
82
|
+
"import": {
|
|
83
|
+
"types": "./dist/events/index.d.ts",
|
|
84
|
+
"default": "./dist/events/index.js"
|
|
85
|
+
},
|
|
86
|
+
"require": {
|
|
87
|
+
"types": "./dist/events/index.d.cts",
|
|
88
|
+
"default": "./dist/events/index.cjs"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"./evidence": {
|
|
92
|
+
"import": {
|
|
93
|
+
"types": "./dist/evidence/index.d.ts",
|
|
94
|
+
"default": "./dist/evidence/index.js"
|
|
95
|
+
},
|
|
96
|
+
"require": {
|
|
97
|
+
"types": "./dist/evidence/index.d.cts",
|
|
98
|
+
"default": "./dist/evidence/index.cjs"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"./ids": {
|
|
102
|
+
"import": {
|
|
103
|
+
"types": "./dist/ids/index.d.ts",
|
|
104
|
+
"default": "./dist/ids/index.js"
|
|
105
|
+
},
|
|
106
|
+
"require": {
|
|
107
|
+
"types": "./dist/ids/index.d.cts",
|
|
108
|
+
"default": "./dist/ids/index.cjs"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"./modules": {
|
|
112
|
+
"import": {
|
|
113
|
+
"types": "./dist/modules/index.d.ts",
|
|
114
|
+
"default": "./dist/modules/index.js"
|
|
115
|
+
},
|
|
116
|
+
"require": {
|
|
117
|
+
"types": "./dist/modules/index.d.cts",
|
|
118
|
+
"default": "./dist/modules/index.cjs"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"./objects": {
|
|
122
|
+
"import": {
|
|
123
|
+
"types": "./dist/objects/index.d.ts",
|
|
124
|
+
"default": "./dist/objects/index.js"
|
|
125
|
+
},
|
|
126
|
+
"require": {
|
|
127
|
+
"types": "./dist/objects/index.d.cts",
|
|
128
|
+
"default": "./dist/objects/index.cjs"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"./policies": {
|
|
132
|
+
"import": {
|
|
133
|
+
"types": "./dist/policies/index.d.ts",
|
|
134
|
+
"default": "./dist/policies/index.js"
|
|
135
|
+
},
|
|
136
|
+
"require": {
|
|
137
|
+
"types": "./dist/policies/index.d.cts",
|
|
138
|
+
"default": "./dist/policies/index.cjs"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"./privacy": {
|
|
142
|
+
"import": {
|
|
143
|
+
"types": "./dist/privacy/index.d.ts",
|
|
144
|
+
"default": "./dist/privacy/index.js"
|
|
145
|
+
},
|
|
146
|
+
"require": {
|
|
147
|
+
"types": "./dist/privacy/index.d.cts",
|
|
148
|
+
"default": "./dist/privacy/index.cjs"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"./projections": {
|
|
152
|
+
"import": {
|
|
153
|
+
"types": "./dist/projections/index.d.ts",
|
|
154
|
+
"default": "./dist/projections/index.js"
|
|
155
|
+
},
|
|
156
|
+
"require": {
|
|
157
|
+
"types": "./dist/projections/index.d.cts",
|
|
158
|
+
"default": "./dist/projections/index.cjs"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"./state-machines": {
|
|
162
|
+
"import": {
|
|
163
|
+
"types": "./dist/state-machines/index.d.ts",
|
|
164
|
+
"default": "./dist/state-machines/index.js"
|
|
165
|
+
},
|
|
166
|
+
"require": {
|
|
167
|
+
"types": "./dist/state-machines/index.d.cts",
|
|
168
|
+
"default": "./dist/state-machines/index.cjs"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"./testing": {
|
|
172
|
+
"import": {
|
|
173
|
+
"types": "./dist/testing/index.d.ts",
|
|
174
|
+
"default": "./dist/testing/index.js"
|
|
175
|
+
},
|
|
176
|
+
"require": {
|
|
177
|
+
"types": "./dist/testing/index.d.cts",
|
|
178
|
+
"default": "./dist/testing/index.cjs"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"files": [
|
|
183
|
+
"dist",
|
|
184
|
+
"README.md",
|
|
185
|
+
"CHANGELOG.md",
|
|
186
|
+
"LICENSE"
|
|
187
|
+
],
|
|
188
|
+
"scripts": {
|
|
189
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
190
|
+
"build": "tsup",
|
|
191
|
+
"type-check": "tsc --noEmit",
|
|
192
|
+
"test": "vitest run --passWithNoTests",
|
|
193
|
+
"prepublishOnly": "pnpm clean && pnpm build && pnpm test"
|
|
194
|
+
},
|
|
195
|
+
"dependencies": {},
|
|
196
|
+
"devDependencies": {
|
|
197
|
+
"@types/node": "^22.10.0",
|
|
198
|
+
"tsup": "^8.5.0",
|
|
199
|
+
"typescript": "^5.7.3",
|
|
200
|
+
"vitest": "^4.1.5"
|
|
201
|
+
},
|
|
202
|
+
"engines": {
|
|
203
|
+
"node": ">=20"
|
|
204
|
+
},
|
|
205
|
+
"publishConfig": {
|
|
206
|
+
"access": "public"
|
|
207
|
+
}
|
|
208
|
+
}
|
package/dist/chunk-LHCSVEFT.cjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
// privacy/index.ts
|
|
4
|
-
var PLATFORM_PRIVACY_POLICY_VERSION = "fabric-platform-privacy-v1";
|
|
5
|
-
|
|
6
|
-
exports.PLATFORM_PRIVACY_POLICY_VERSION = PLATFORM_PRIVACY_POLICY_VERSION;
|
|
7
|
-
//# sourceMappingURL=chunk-LHCSVEFT.cjs.map
|
|
8
|
-
//# sourceMappingURL=chunk-LHCSVEFT.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../privacy/index.ts"],"names":[],"mappings":";;;AAAO,IAAM,+BAAA,GAAkC","file":"chunk-LHCSVEFT.cjs","sourcesContent":["export const PLATFORM_PRIVACY_POLICY_VERSION = \"fabric-platform-privacy-v1\";\n\nexport type RedactionMethod = \"nullify\" | \"mask\" | \"hash\" | \"tokenize\" | \"generalize\" | \"drop\";\n\nexport type PlatformDataClass =\n\t| \"asset_event\"\n\t| \"read_model\"\n\t| \"raw_payload\"\n\t| \"evidence_packet\"\n\t| \"action_evidence\"\n\t| \"access_event\";\n\nexport interface RedactionRule {\n\tfieldPath: string;\n\tmethod: RedactionMethod;\n\treason: string;\n\tdataClass?: PlatformDataClass;\n}\n\nexport interface DataClassificationRule {\n\tfieldPath: string;\n\tclassification: string;\n\tcontainsDirectIdentifier?: boolean;\n\tcontainsSensitiveData?: boolean;\n}\n\nexport interface AnonymizationContext {\n\ttenantId: string;\n\tspaceId?: string | null;\n\tjobId: string;\n\treason: string;\n\tredactedAt?: Date;\n\tpolicyVersion?: string;\n}\n\nexport interface AnonymizationFieldMetadata {\n\tfieldPath: string;\n\tmethod: RedactionMethod;\n\tpolicyVersion: string;\n\tjobId: string;\n\tredactedAt: string;\n\treason: string;\n\tdataClass: PlatformDataClass;\n\tbeforeChecksum: string;\n}\n\nexport interface AnonymizationMetadata {\n\tredactionState: \"anonymized\";\n\tpolicyVersion: string;\n\tjobId: string;\n\tredactedAt: string;\n\treason: string;\n\tdataClass: PlatformDataClass;\n\tredactedFields: AnonymizationFieldMetadata[];\n\tpreservedSemantics: string[];\n}\n\nexport interface AnonymizationResult<TValue> {\n\tvalue: TValue;\n\tmetadata: AnonymizationMetadata;\n}\n\nexport interface AnalyticsDataContractSource {\n\tname: string;\n\tprivacyClass:\n\t\t| \"raw\"\n\t\t| \"operational_pii\"\n\t\t| \"tenant_scoped_tokenized\"\n\t\t| \"anonymized\"\n\t\t| \"aggregated\"\n\t\t| \"differentially_minimized\";\n\tcontainsDirectIdentifiers?: boolean;\n\tcontainsGloballyStablePersonTokens?: boolean;\n\tanonymizationPolicyVersion?: string;\n\tminimumGroupSize?: number;\n}\n\nexport interface AnalyticsDataContract {\n\tcontractId: string;\n\tstatus: \"draft\" | \"accepted\" | \"deprecated\";\n\tcrossTenant: boolean;\n\tacceptedBy?: string;\n\tacceptedAt?: string;\n\tadrReference?: string;\n\tsources: AnalyticsDataContractSource[];\n}\n\nexport interface AnalyticsEligibilityDecision {\n\teligible: boolean;\n\tpolicyVersion: string;\n\treasons: string[];\n}\n\nexport interface RetentionRule {\n\tdataClass: PlatformDataClass;\n\tretainForDays: number;\n\tafterRetention: \"delete\" | \"anonymize\" | \"archive\";\n\tlegalHoldExempt?: boolean;\n}\n"]}
|
package/dist/chunk-N24NLCZ6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../privacy/index.ts"],"names":[],"mappings":";AAAO,IAAM,+BAAA,GAAkC","file":"chunk-N24NLCZ6.js","sourcesContent":["export const PLATFORM_PRIVACY_POLICY_VERSION = \"fabric-platform-privacy-v1\";\n\nexport type RedactionMethod = \"nullify\" | \"mask\" | \"hash\" | \"tokenize\" | \"generalize\" | \"drop\";\n\nexport type PlatformDataClass =\n\t| \"asset_event\"\n\t| \"read_model\"\n\t| \"raw_payload\"\n\t| \"evidence_packet\"\n\t| \"action_evidence\"\n\t| \"access_event\";\n\nexport interface RedactionRule {\n\tfieldPath: string;\n\tmethod: RedactionMethod;\n\treason: string;\n\tdataClass?: PlatformDataClass;\n}\n\nexport interface DataClassificationRule {\n\tfieldPath: string;\n\tclassification: string;\n\tcontainsDirectIdentifier?: boolean;\n\tcontainsSensitiveData?: boolean;\n}\n\nexport interface AnonymizationContext {\n\ttenantId: string;\n\tspaceId?: string | null;\n\tjobId: string;\n\treason: string;\n\tredactedAt?: Date;\n\tpolicyVersion?: string;\n}\n\nexport interface AnonymizationFieldMetadata {\n\tfieldPath: string;\n\tmethod: RedactionMethod;\n\tpolicyVersion: string;\n\tjobId: string;\n\tredactedAt: string;\n\treason: string;\n\tdataClass: PlatformDataClass;\n\tbeforeChecksum: string;\n}\n\nexport interface AnonymizationMetadata {\n\tredactionState: \"anonymized\";\n\tpolicyVersion: string;\n\tjobId: string;\n\tredactedAt: string;\n\treason: string;\n\tdataClass: PlatformDataClass;\n\tredactedFields: AnonymizationFieldMetadata[];\n\tpreservedSemantics: string[];\n}\n\nexport interface AnonymizationResult<TValue> {\n\tvalue: TValue;\n\tmetadata: AnonymizationMetadata;\n}\n\nexport interface AnalyticsDataContractSource {\n\tname: string;\n\tprivacyClass:\n\t\t| \"raw\"\n\t\t| \"operational_pii\"\n\t\t| \"tenant_scoped_tokenized\"\n\t\t| \"anonymized\"\n\t\t| \"aggregated\"\n\t\t| \"differentially_minimized\";\n\tcontainsDirectIdentifiers?: boolean;\n\tcontainsGloballyStablePersonTokens?: boolean;\n\tanonymizationPolicyVersion?: string;\n\tminimumGroupSize?: number;\n}\n\nexport interface AnalyticsDataContract {\n\tcontractId: string;\n\tstatus: \"draft\" | \"accepted\" | \"deprecated\";\n\tcrossTenant: boolean;\n\tacceptedBy?: string;\n\tacceptedAt?: string;\n\tadrReference?: string;\n\tsources: AnalyticsDataContractSource[];\n}\n\nexport interface AnalyticsEligibilityDecision {\n\teligible: boolean;\n\tpolicyVersion: string;\n\treasons: string[];\n}\n\nexport interface RetentionRule {\n\tdataClass: PlatformDataClass;\n\tretainForDays: number;\n\tafterRetention: \"delete\" | \"anonymize\" | \"archive\";\n\tlegalHoldExempt?: boolean;\n}\n"]}
|