@fabricorg/platform 0.12.0 → 1.0.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/CHANGELOG.md +21 -0
- package/README.md +7 -8
- package/dist/actions/index.cjs +7 -27
- package/dist/actions/index.d.cts +9 -7
- package/dist/actions/index.d.ts +9 -7
- package/dist/actions/index.js +1 -1
- package/dist/{chunk-ROC326VL.cjs → chunk-35LADVKK.cjs} +48 -104
- package/dist/chunk-35LADVKK.cjs.map +1 -0
- package/dist/chunk-4QOA3VU5.js +47 -0
- package/dist/chunk-4QOA3VU5.js.map +1 -0
- package/dist/chunk-53VEUYCS.cjs +40 -0
- package/dist/chunk-53VEUYCS.cjs.map +1 -0
- package/dist/{chunk-X7WC4AYC.js → chunk-ATWWZTRC.js} +32 -74
- package/dist/chunk-ATWWZTRC.js.map +1 -0
- package/dist/chunk-BFQNKQJE.cjs +53 -0
- package/dist/{chunk-4RMKUYRX.js.map → chunk-BFQNKQJE.cjs.map} +1 -1
- package/dist/{chunk-OC4ZFJKD.cjs → chunk-CBY6GRJP.cjs} +16 -17
- package/dist/chunk-CBY6GRJP.cjs.map +1 -0
- package/dist/chunk-CQSA3BII.js +38 -0
- package/dist/chunk-CQSA3BII.js.map +1 -0
- package/dist/{chunk-ZO6HPMCK.js → chunk-CRAGTJ3B.js} +3 -3
- package/dist/{chunk-ZO6HPMCK.js.map → chunk-CRAGTJ3B.js.map} +1 -1
- package/dist/{chunk-LXS6SURU.js → chunk-J5LS5BSI.js} +70 -29
- package/dist/chunk-J5LS5BSI.js.map +1 -0
- package/dist/{chunk-MCD5VT4E.cjs → chunk-JFMNLJLY.cjs} +6 -6
- package/dist/{chunk-MCD5VT4E.cjs.map → chunk-JFMNLJLY.cjs.map} +1 -1
- package/dist/{chunk-6ER62UUN.js → chunk-JFVEPAED.js} +31 -40
- package/dist/chunk-JFVEPAED.js.map +1 -0
- package/dist/{chunk-45TSN3GO.cjs → chunk-M5FGWXT3.cjs} +70 -32
- package/dist/chunk-M5FGWXT3.cjs.map +1 -0
- package/dist/{chunk-4MMMXV4Q.js → chunk-NETLRKDS.js} +16 -15
- package/dist/chunk-NETLRKDS.js.map +1 -0
- package/dist/chunk-OWSSGFNY.js +45 -0
- package/dist/chunk-OWSSGFNY.js.map +1 -0
- package/dist/{chunk-5PDVZXEI.js → chunk-T5ESIJ4K.js} +42 -99
- package/dist/chunk-T5ESIJ4K.js.map +1 -0
- package/dist/{chunk-NJL3US7H.cjs → chunk-VZ6C4LXC.cjs} +31 -43
- package/dist/chunk-VZ6C4LXC.cjs.map +1 -0
- package/dist/chunk-WAI4UNWQ.cjs +48 -0
- package/dist/chunk-WAI4UNWQ.cjs.map +1 -0
- package/dist/{chunk-YQEXO3IQ.cjs → chunk-X3GHYMAJ.cjs} +32 -74
- package/dist/chunk-X3GHYMAJ.cjs.map +1 -0
- package/dist/events/index.cjs +3 -27
- package/dist/events/index.d.cts +13 -13
- package/dist/events/index.d.ts +13 -13
- package/dist/events/index.js +1 -1
- package/dist/index.cjs +88 -193
- package/dist/index.d.cts +8 -9
- package/dist/index.d.ts +8 -9
- package/dist/index.js +10 -11
- package/dist/manifest/index.cjs +11 -15
- package/dist/manifest/index.d.cts +0 -1
- package/dist/manifest/index.d.ts +0 -1
- package/dist/manifest/index.js +5 -9
- package/dist/modules/index.cjs +15 -15
- package/dist/modules/index.d.cts +16 -23
- package/dist/modules/index.d.ts +16 -23
- package/dist/modules/index.js +4 -8
- package/dist/objects/index.cjs +5 -13
- package/dist/objects/index.d.cts +7 -4
- package/dist/objects/index.d.ts +7 -4
- package/dist/objects/index.js +1 -1
- package/dist/policies/index.cjs +12 -24
- package/dist/policies/index.d.cts +10 -5
- package/dist/policies/index.d.ts +10 -5
- package/dist/policies/index.js +1 -1
- package/dist/privacy/index.cjs +10 -10
- package/dist/privacy/index.d.cts +16 -5
- package/dist/privacy/index.d.ts +16 -5
- package/dist/privacy/index.js +1 -1
- package/dist/projections/index.cjs +6 -18
- package/dist/projections/index.d.cts +21 -7
- package/dist/projections/index.d.ts +21 -7
- package/dist/projections/index.js +1 -1
- package/dist/state-machines/index.cjs +5 -21
- package/dist/state-machines/index.d.cts +17 -31
- package/dist/state-machines/index.d.ts +17 -31
- package/dist/state-machines/index.js +1 -1
- package/package.json +1 -11
- package/dist/chunk-3O4GMCCE.js +0 -55
- package/dist/chunk-3O4GMCCE.js.map +0 -1
- package/dist/chunk-45TSN3GO.cjs.map +0 -1
- package/dist/chunk-4MMMXV4Q.js.map +0 -1
- package/dist/chunk-4RMKUYRX.js +0 -59
- package/dist/chunk-5PDVZXEI.js.map +0 -1
- package/dist/chunk-6ER62UUN.js.map +0 -1
- package/dist/chunk-7RV5REPT.cjs +0 -63
- package/dist/chunk-7RV5REPT.cjs.map +0 -1
- package/dist/chunk-EO4VSB2O.cjs +0 -99
- package/dist/chunk-EO4VSB2O.cjs.map +0 -1
- package/dist/chunk-JOATYJXQ.cjs +0 -70
- package/dist/chunk-JOATYJXQ.cjs.map +0 -1
- package/dist/chunk-LXS6SURU.js.map +0 -1
- package/dist/chunk-NJL3US7H.cjs.map +0 -1
- package/dist/chunk-O5WVBQ7P.js +0 -89
- package/dist/chunk-O5WVBQ7P.js.map +0 -1
- package/dist/chunk-OC4ZFJKD.cjs.map +0 -1
- package/dist/chunk-ROC326VL.cjs.map +0 -1
- package/dist/chunk-T2JLSZN6.js +0 -67
- package/dist/chunk-T2JLSZN6.js.map +0 -1
- package/dist/chunk-UV252FLT.cjs +0 -74
- package/dist/chunk-UV252FLT.cjs.map +0 -1
- package/dist/chunk-X7WC4AYC.js.map +0 -1
- package/dist/chunk-YQEXO3IQ.cjs.map +0 -1
- package/dist/displays/index.cjs +0 -24
- package/dist/displays/index.cjs.map +0 -1
- package/dist/displays/index.d.cts +0 -34
- package/dist/displays/index.d.ts +0 -34
- package/dist/displays/index.js +0 -3
- package/dist/displays/index.js.map +0 -1
package/dist/manifest/index.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
export { MODULE_MANIFEST_VERSION, exportModuleManifest, exportModuleManifestBundle, isJsonSchemaExportableValidator, normalizeModuleManifest, normalizeModuleManifestBundle } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-T2JLSZN6.js';
|
|
7
|
-
import '../chunk-4RMKUYRX.js';
|
|
8
|
-
import '../chunk-O5WVBQ7P.js';
|
|
9
|
-
import '../chunk-3O4GMCCE.js';
|
|
1
|
+
export { MODULE_MANIFEST_VERSION, exportModuleManifest, exportModuleManifestBundle, isJsonSchemaExportableValidator, normalizeModuleManifest, normalizeModuleManifestBundle } from '../chunk-CRAGTJ3B.js';
|
|
2
|
+
import '../chunk-T5ESIJ4K.js';
|
|
3
|
+
import '../chunk-NETLRKDS.js';
|
|
4
|
+
import '../chunk-J5LS5BSI.js';
|
|
5
|
+
import '../chunk-CQSA3BII.js';
|
|
10
6
|
//# sourceMappingURL=index.js.map
|
|
11
7
|
//# sourceMappingURL=index.js.map
|
package/dist/modules/index.cjs
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-UV252FLT.cjs');
|
|
8
|
-
require('../chunk-JOATYJXQ.cjs');
|
|
9
|
-
require('../chunk-EO4VSB2O.cjs');
|
|
10
|
-
require('../chunk-7RV5REPT.cjs');
|
|
3
|
+
var chunk35LADVKK_cjs = require('../chunk-35LADVKK.cjs');
|
|
4
|
+
require('../chunk-CBY6GRJP.cjs');
|
|
5
|
+
require('../chunk-M5FGWXT3.cjs');
|
|
6
|
+
require('../chunk-53VEUYCS.cjs');
|
|
11
7
|
|
|
12
8
|
|
|
13
9
|
|
|
14
10
|
Object.defineProperty(exports, "createModuleRegistry", {
|
|
15
11
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk35LADVKK_cjs.createModuleRegistry; }
|
|
17
13
|
});
|
|
18
14
|
Object.defineProperty(exports, "getEventTypeName", {
|
|
19
15
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk35LADVKK_cjs.getEventTypeName; }
|
|
21
17
|
});
|
|
22
18
|
Object.defineProperty(exports, "getModuleDependencyNamespace", {
|
|
23
19
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk35LADVKK_cjs.getModuleDependencyNamespace; }
|
|
25
21
|
});
|
|
26
22
|
Object.defineProperty(exports, "getObjectTypeName", {
|
|
27
23
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunk35LADVKK_cjs.getObjectTypeName; }
|
|
29
25
|
});
|
|
30
26
|
Object.defineProperty(exports, "registerFabricModule", {
|
|
31
27
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk35LADVKK_cjs.registerFabricModule; }
|
|
33
29
|
});
|
|
34
30
|
Object.defineProperty(exports, "registerFabricModules", {
|
|
35
31
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk35LADVKK_cjs.registerFabricModules; }
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "validateAndOrderFabricModules", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return chunk35LADVKK_cjs.validateAndOrderFabricModules; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "validateModuleNamespace", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunk35LADVKK_cjs.validateModuleNamespace; }
|
|
41
41
|
});
|
|
42
42
|
//# sourceMappingURL=index.cjs.map
|
|
43
43
|
//# sourceMappingURL=index.cjs.map
|
package/dist/modules/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ActionDefinition } from '../actions/index.cjs';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { JsonValue, PortableJsonSchema } from '../objects/index.cjs';
|
|
3
|
+
import { PolicyId, PolicyEvaluator } from '../policies/index.cjs';
|
|
4
|
+
import { StateMachineDefinition } from '../state-machines/index.cjs';
|
|
4
5
|
import { ViewContract } from '../projections/index.cjs';
|
|
5
6
|
|
|
6
7
|
interface ModuleDependency {
|
|
@@ -51,10 +52,6 @@ interface DeclarativeInvariant {
|
|
|
51
52
|
enforcementRef?: string;
|
|
52
53
|
}
|
|
53
54
|
type ObjectTypeRegistrationInput = string | ObjectTypeRegistration;
|
|
54
|
-
interface ModuleDisplayRendererRegistration {
|
|
55
|
-
eventType: string;
|
|
56
|
-
renderer: DisplayRenderer;
|
|
57
|
-
}
|
|
58
55
|
interface PolicyRegistration {
|
|
59
56
|
id: string;
|
|
60
57
|
version?: string;
|
|
@@ -64,16 +61,6 @@ interface StateMachineRegistration {
|
|
|
64
61
|
entityType: string;
|
|
65
62
|
states: string[];
|
|
66
63
|
}
|
|
67
|
-
interface CapabilitySlotDefinition {
|
|
68
|
-
name: string;
|
|
69
|
-
description: string;
|
|
70
|
-
shape?: PortableJsonSchema;
|
|
71
|
-
}
|
|
72
|
-
interface CapabilityActionIntent {
|
|
73
|
-
name: string;
|
|
74
|
-
actionId: `${string}.${string}`;
|
|
75
|
-
description?: string;
|
|
76
|
-
}
|
|
77
64
|
interface CapabilityPortRequirement {
|
|
78
65
|
name: string;
|
|
79
66
|
version?: string;
|
|
@@ -91,20 +78,19 @@ interface CapabilityRequirements {
|
|
|
91
78
|
interface CapabilityMetadata {
|
|
92
79
|
displayName: string;
|
|
93
80
|
description: string;
|
|
94
|
-
roles?: string[];
|
|
95
81
|
stability: "experimental" | "beta" | "stable" | "deprecated";
|
|
96
82
|
deprecated?: {
|
|
97
83
|
since: string;
|
|
98
84
|
replacement?: string;
|
|
99
85
|
message: string;
|
|
100
86
|
};
|
|
101
|
-
slots?: CapabilitySlotDefinition[];
|
|
102
|
-
actionIntents?: CapabilityActionIntent[];
|
|
103
87
|
requirements?: CapabilityRequirements;
|
|
104
88
|
certification?: {
|
|
105
89
|
profile: string;
|
|
106
90
|
required: boolean;
|
|
107
91
|
};
|
|
92
|
+
/** Namespaced declared data preserved by Platform and interpreted only by its owning package. */
|
|
93
|
+
extensions?: Record<string, JsonValue>;
|
|
108
94
|
}
|
|
109
95
|
interface FabricModule<TDb = unknown> {
|
|
110
96
|
namespace: string;
|
|
@@ -120,7 +106,6 @@ interface FabricModule<TDb = unknown> {
|
|
|
120
106
|
actions?: ActionDefinition<TDb>[];
|
|
121
107
|
policies?: unknown[];
|
|
122
108
|
stateMachines?: unknown[];
|
|
123
|
-
displayRenderers?: ModuleDisplayRendererRegistration[];
|
|
124
109
|
adapterDefinitions?: unknown[];
|
|
125
110
|
permissions?: unknown[];
|
|
126
111
|
roles?: unknown[];
|
|
@@ -132,13 +117,21 @@ interface FabricModule<TDb = unknown> {
|
|
|
132
117
|
}
|
|
133
118
|
interface ModuleRegistry<TDb = unknown> {
|
|
134
119
|
modules: ReadonlyMap<string, FabricModule<TDb>>;
|
|
120
|
+
orderedModules: readonly FabricModule<TDb>[];
|
|
121
|
+
resolveAction(actionId: `${string}.${string}`): ActionDefinition<TDb> | undefined;
|
|
122
|
+
resolvePolicy(policyId: PolicyId): PolicyEvaluator | undefined;
|
|
123
|
+
resolveStateMachine(entityType: string): StateMachineDefinition | undefined;
|
|
124
|
+
resolveView(name: string, version: string): ViewContract | undefined;
|
|
135
125
|
}
|
|
136
126
|
declare function getModuleDependencyNamespace(dependency: ModuleDependencyInput): string;
|
|
137
127
|
declare function getObjectTypeName(objectType: ObjectTypeRegistrationInput): string;
|
|
138
128
|
declare function getEventTypeName(eventType: EventTypeRegistrationInput): string;
|
|
139
129
|
declare function validateModuleNamespace(namespace: string): void;
|
|
140
130
|
declare function createModuleRegistry<TDb = unknown>(modules?: FabricModule<TDb>[]): ModuleRegistry<TDb>;
|
|
141
|
-
declare function
|
|
142
|
-
|
|
131
|
+
declare function validateAndOrderFabricModules<TDb = unknown>(modules: FabricModule<TDb>[]): FabricModule<TDb>[];
|
|
132
|
+
/** @deprecated Use createModuleRegistry(); registration is now explicit and instance-scoped. */
|
|
133
|
+
declare function registerFabricModules<TDb = unknown>(modules: FabricModule<TDb>[]): FabricModule<TDb>[];
|
|
134
|
+
/** @deprecated Use createModuleRegistry([module]); registration is now explicit and instance-scoped. */
|
|
135
|
+
declare function registerFabricModule<TDb = unknown>(module: FabricModule<TDb>): void;
|
|
143
136
|
|
|
144
|
-
export { type
|
|
137
|
+
export { type CapabilityMetadata, type CapabilityPortRequirement, type CapabilityRequirements, type DeclarativeInvariant, type EventTypeRegistration, type EventTypeRegistrationInput, type FabricModule, type IdPrefixRegistration, type InvariantEnforcement, type ModuleDependency, type ModuleDependencyInput, type ModuleRegistry, type ObjectRelationCardinality, type ObjectRelationDefinition, type ObjectRelationDeleteBehavior, type ObjectRelationSemantics, type ObjectTypeRegistration, type ObjectTypeRegistrationInput, type PolicyRegistration, type StateMachineRegistration, createModuleRegistry, getEventTypeName, getModuleDependencyNamespace, getObjectTypeName, registerFabricModule, registerFabricModules, validateAndOrderFabricModules, validateModuleNamespace };
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ActionDefinition } from '../actions/index.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { JsonValue, PortableJsonSchema } from '../objects/index.js';
|
|
3
|
+
import { PolicyId, PolicyEvaluator } from '../policies/index.js';
|
|
4
|
+
import { StateMachineDefinition } from '../state-machines/index.js';
|
|
4
5
|
import { ViewContract } from '../projections/index.js';
|
|
5
6
|
|
|
6
7
|
interface ModuleDependency {
|
|
@@ -51,10 +52,6 @@ interface DeclarativeInvariant {
|
|
|
51
52
|
enforcementRef?: string;
|
|
52
53
|
}
|
|
53
54
|
type ObjectTypeRegistrationInput = string | ObjectTypeRegistration;
|
|
54
|
-
interface ModuleDisplayRendererRegistration {
|
|
55
|
-
eventType: string;
|
|
56
|
-
renderer: DisplayRenderer;
|
|
57
|
-
}
|
|
58
55
|
interface PolicyRegistration {
|
|
59
56
|
id: string;
|
|
60
57
|
version?: string;
|
|
@@ -64,16 +61,6 @@ interface StateMachineRegistration {
|
|
|
64
61
|
entityType: string;
|
|
65
62
|
states: string[];
|
|
66
63
|
}
|
|
67
|
-
interface CapabilitySlotDefinition {
|
|
68
|
-
name: string;
|
|
69
|
-
description: string;
|
|
70
|
-
shape?: PortableJsonSchema;
|
|
71
|
-
}
|
|
72
|
-
interface CapabilityActionIntent {
|
|
73
|
-
name: string;
|
|
74
|
-
actionId: `${string}.${string}`;
|
|
75
|
-
description?: string;
|
|
76
|
-
}
|
|
77
64
|
interface CapabilityPortRequirement {
|
|
78
65
|
name: string;
|
|
79
66
|
version?: string;
|
|
@@ -91,20 +78,19 @@ interface CapabilityRequirements {
|
|
|
91
78
|
interface CapabilityMetadata {
|
|
92
79
|
displayName: string;
|
|
93
80
|
description: string;
|
|
94
|
-
roles?: string[];
|
|
95
81
|
stability: "experimental" | "beta" | "stable" | "deprecated";
|
|
96
82
|
deprecated?: {
|
|
97
83
|
since: string;
|
|
98
84
|
replacement?: string;
|
|
99
85
|
message: string;
|
|
100
86
|
};
|
|
101
|
-
slots?: CapabilitySlotDefinition[];
|
|
102
|
-
actionIntents?: CapabilityActionIntent[];
|
|
103
87
|
requirements?: CapabilityRequirements;
|
|
104
88
|
certification?: {
|
|
105
89
|
profile: string;
|
|
106
90
|
required: boolean;
|
|
107
91
|
};
|
|
92
|
+
/** Namespaced declared data preserved by Platform and interpreted only by its owning package. */
|
|
93
|
+
extensions?: Record<string, JsonValue>;
|
|
108
94
|
}
|
|
109
95
|
interface FabricModule<TDb = unknown> {
|
|
110
96
|
namespace: string;
|
|
@@ -120,7 +106,6 @@ interface FabricModule<TDb = unknown> {
|
|
|
120
106
|
actions?: ActionDefinition<TDb>[];
|
|
121
107
|
policies?: unknown[];
|
|
122
108
|
stateMachines?: unknown[];
|
|
123
|
-
displayRenderers?: ModuleDisplayRendererRegistration[];
|
|
124
109
|
adapterDefinitions?: unknown[];
|
|
125
110
|
permissions?: unknown[];
|
|
126
111
|
roles?: unknown[];
|
|
@@ -132,13 +117,21 @@ interface FabricModule<TDb = unknown> {
|
|
|
132
117
|
}
|
|
133
118
|
interface ModuleRegistry<TDb = unknown> {
|
|
134
119
|
modules: ReadonlyMap<string, FabricModule<TDb>>;
|
|
120
|
+
orderedModules: readonly FabricModule<TDb>[];
|
|
121
|
+
resolveAction(actionId: `${string}.${string}`): ActionDefinition<TDb> | undefined;
|
|
122
|
+
resolvePolicy(policyId: PolicyId): PolicyEvaluator | undefined;
|
|
123
|
+
resolveStateMachine(entityType: string): StateMachineDefinition | undefined;
|
|
124
|
+
resolveView(name: string, version: string): ViewContract | undefined;
|
|
135
125
|
}
|
|
136
126
|
declare function getModuleDependencyNamespace(dependency: ModuleDependencyInput): string;
|
|
137
127
|
declare function getObjectTypeName(objectType: ObjectTypeRegistrationInput): string;
|
|
138
128
|
declare function getEventTypeName(eventType: EventTypeRegistrationInput): string;
|
|
139
129
|
declare function validateModuleNamespace(namespace: string): void;
|
|
140
130
|
declare function createModuleRegistry<TDb = unknown>(modules?: FabricModule<TDb>[]): ModuleRegistry<TDb>;
|
|
141
|
-
declare function
|
|
142
|
-
|
|
131
|
+
declare function validateAndOrderFabricModules<TDb = unknown>(modules: FabricModule<TDb>[]): FabricModule<TDb>[];
|
|
132
|
+
/** @deprecated Use createModuleRegistry(); registration is now explicit and instance-scoped. */
|
|
133
|
+
declare function registerFabricModules<TDb = unknown>(modules: FabricModule<TDb>[]): FabricModule<TDb>[];
|
|
134
|
+
/** @deprecated Use createModuleRegistry([module]); registration is now explicit and instance-scoped. */
|
|
135
|
+
declare function registerFabricModule<TDb = unknown>(module: FabricModule<TDb>): void;
|
|
143
136
|
|
|
144
|
-
export { type
|
|
137
|
+
export { type CapabilityMetadata, type CapabilityPortRequirement, type CapabilityRequirements, type DeclarativeInvariant, type EventTypeRegistration, type EventTypeRegistrationInput, type FabricModule, type IdPrefixRegistration, type InvariantEnforcement, type ModuleDependency, type ModuleDependencyInput, type ModuleRegistry, type ObjectRelationCardinality, type ObjectRelationDefinition, type ObjectRelationDeleteBehavior, type ObjectRelationSemantics, type ObjectTypeRegistration, type ObjectTypeRegistrationInput, type PolicyRegistration, type StateMachineRegistration, createModuleRegistry, getEventTypeName, getModuleDependencyNamespace, getObjectTypeName, registerFabricModule, registerFabricModules, validateAndOrderFabricModules, validateModuleNamespace };
|
package/dist/modules/index.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
export { createModuleRegistry, getEventTypeName, getModuleDependencyNamespace, getObjectTypeName, registerFabricModule, registerFabricModules, validateModuleNamespace } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-T2JLSZN6.js';
|
|
6
|
-
import '../chunk-4RMKUYRX.js';
|
|
7
|
-
import '../chunk-O5WVBQ7P.js';
|
|
8
|
-
import '../chunk-3O4GMCCE.js';
|
|
1
|
+
export { createModuleRegistry, getEventTypeName, getModuleDependencyNamespace, getObjectTypeName, registerFabricModule, registerFabricModules, validateAndOrderFabricModules, validateModuleNamespace } from '../chunk-T5ESIJ4K.js';
|
|
2
|
+
import '../chunk-NETLRKDS.js';
|
|
3
|
+
import '../chunk-J5LS5BSI.js';
|
|
4
|
+
import '../chunk-CQSA3BII.js';
|
|
9
5
|
//# sourceMappingURL=index.js.map
|
|
10
6
|
//# sourceMappingURL=index.js.map
|
package/dist/objects/index.cjs
CHANGED
|
@@ -1,28 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCBY6GRJP_cjs = require('../chunk-CBY6GRJP.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "assertObjectType", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkCBY6GRJP_cjs.assertObjectType; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "assertPortableJsonSchema", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkCBY6GRJP_cjs.assertPortableJsonSchema; }
|
|
14
14
|
});
|
|
15
|
-
Object.defineProperty(exports, "
|
|
15
|
+
Object.defineProperty(exports, "createObjectTypeRegistry", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "isValidObjectType", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return chunkOC4ZFJKD_cjs.isValidObjectType; }
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "registerObjectType", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return chunkOC4ZFJKD_cjs.registerObjectType; }
|
|
17
|
+
get: function () { return chunkCBY6GRJP_cjs.createObjectTypeRegistry; }
|
|
26
18
|
});
|
|
27
19
|
//# sourceMappingURL=index.cjs.map
|
|
28
20
|
//# sourceMappingURL=index.cjs.map
|
package/dist/objects/index.d.cts
CHANGED
|
@@ -57,8 +57,11 @@ interface PortableJsonSchema {
|
|
|
57
57
|
}
|
|
58
58
|
declare function assertPortableJsonSchema(schema: unknown, path?: string): asserts schema is PortableJsonSchema;
|
|
59
59
|
declare function assertObjectType(type: string): asserts type is FabricObjectType;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
interface ObjectTypeRegistry {
|
|
61
|
+
register(type: string): void;
|
|
62
|
+
has(type: string): boolean;
|
|
63
|
+
list(): string[];
|
|
64
|
+
}
|
|
65
|
+
declare function createObjectTypeRegistry(initialTypes?: readonly string[]): ObjectTypeRegistry;
|
|
63
66
|
|
|
64
|
-
export { type FabricObjectType, type JsonPrimitive, type JsonValue, type PortableJsonSchema, assertObjectType, assertPortableJsonSchema,
|
|
67
|
+
export { type FabricObjectType, type JsonPrimitive, type JsonValue, type ObjectTypeRegistry, type PortableJsonSchema, assertObjectType, assertPortableJsonSchema, createObjectTypeRegistry };
|
package/dist/objects/index.d.ts
CHANGED
|
@@ -57,8 +57,11 @@ interface PortableJsonSchema {
|
|
|
57
57
|
}
|
|
58
58
|
declare function assertPortableJsonSchema(schema: unknown, path?: string): asserts schema is PortableJsonSchema;
|
|
59
59
|
declare function assertObjectType(type: string): asserts type is FabricObjectType;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
interface ObjectTypeRegistry {
|
|
61
|
+
register(type: string): void;
|
|
62
|
+
has(type: string): boolean;
|
|
63
|
+
list(): string[];
|
|
64
|
+
}
|
|
65
|
+
declare function createObjectTypeRegistry(initialTypes?: readonly string[]): ObjectTypeRegistry;
|
|
63
66
|
|
|
64
|
-
export { type FabricObjectType, type JsonPrimitive, type JsonValue, type PortableJsonSchema, assertObjectType, assertPortableJsonSchema,
|
|
67
|
+
export { type FabricObjectType, type JsonPrimitive, type JsonValue, type ObjectTypeRegistry, type PortableJsonSchema, assertObjectType, assertPortableJsonSchema, createObjectTypeRegistry };
|
package/dist/objects/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { assertObjectType, assertPortableJsonSchema,
|
|
1
|
+
export { assertObjectType, assertPortableJsonSchema, createObjectTypeRegistry } from '../chunk-NETLRKDS.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/policies/index.cjs
CHANGED
|
@@ -1,52 +1,40 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVZ6C4LXC_cjs = require('../chunk-VZ6C4LXC.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "aggregatePolicyOutcomes", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkVZ6C4LXC_cjs.aggregatePolicyOutcomes; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "assertPolicyId", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkVZ6C4LXC_cjs.assertPolicyId; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "createPolicyRegistry", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkVZ6C4LXC_cjs.createPolicyRegistry; }
|
|
14
18
|
});
|
|
15
19
|
Object.defineProperty(exports, "evaluatePolicyDefinition", {
|
|
16
20
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkVZ6C4LXC_cjs.evaluatePolicyDefinition; }
|
|
18
22
|
});
|
|
19
23
|
Object.defineProperty(exports, "evaluatePolicyDefinitions", {
|
|
20
24
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkVZ6C4LXC_cjs.evaluatePolicyDefinitions; }
|
|
22
26
|
});
|
|
23
27
|
Object.defineProperty(exports, "evaluateRegisteredPolicies", {
|
|
24
28
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
26
|
-
});
|
|
27
|
-
Object.defineProperty(exports, "getRegisteredPolicyIds", {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: function () { return chunkNJL3US7H_cjs.getRegisteredPolicyIds; }
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "registerPolicy", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () { return chunkNJL3US7H_cjs.registerPolicy; }
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(exports, "registerPolicyIfMissing", {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function () { return chunkNJL3US7H_cjs.registerPolicyIfMissing; }
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(exports, "resolvePolicy", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () { return chunkNJL3US7H_cjs.resolvePolicy; }
|
|
29
|
+
get: function () { return chunkVZ6C4LXC_cjs.evaluateRegisteredPolicies; }
|
|
42
30
|
});
|
|
43
31
|
Object.defineProperty(exports, "validateDataPolicyDefinition", {
|
|
44
32
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkVZ6C4LXC_cjs.validateDataPolicyDefinition; }
|
|
46
34
|
});
|
|
47
35
|
Object.defineProperty(exports, "validatePolicyGuidance", {
|
|
48
36
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkVZ6C4LXC_cjs.validatePolicyGuidance; }
|
|
50
38
|
});
|
|
51
39
|
//# sourceMappingURL=index.cjs.map
|
|
52
40
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -25,6 +25,8 @@ interface PolicyContext<TDb = unknown> {
|
|
|
25
25
|
* globals. The shape is opaque to the platform — adapters narrow it.
|
|
26
26
|
*/
|
|
27
27
|
services?: FabricRuntimeServices;
|
|
28
|
+
/** Explicit code-policy catalog for this runtime; absence fails closed. */
|
|
29
|
+
resolveCodePolicy?: (policyId: PolicyId) => PolicyEvaluator | undefined;
|
|
28
30
|
}
|
|
29
31
|
interface PolicyFact {
|
|
30
32
|
name: string;
|
|
@@ -201,14 +203,17 @@ interface PolicyDispatchEvidence {
|
|
|
201
203
|
metadata?: Record<string, unknown>;
|
|
202
204
|
};
|
|
203
205
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
interface PolicyRegistry {
|
|
207
|
+
register(evaluator: PolicyEvaluator): void;
|
|
208
|
+
registerIfMissing(evaluator: PolicyEvaluator): void;
|
|
209
|
+
resolve(policyId: PolicyId): PolicyEvaluator | undefined;
|
|
210
|
+
ids(): PolicyId[];
|
|
211
|
+
}
|
|
212
|
+
declare function createPolicyRegistry(evaluators?: readonly PolicyEvaluator[]): PolicyRegistry;
|
|
208
213
|
declare function evaluateRegisteredPolicies(policyIds: PolicyId[], ctx: PolicyContext): Promise<PolicyOutcome[]>;
|
|
209
214
|
declare function evaluatePolicyDefinitions(policies: RuntimePolicyDefinition[], ctx: PolicyContext): Promise<PolicyOutcome[]>;
|
|
210
215
|
declare function evaluatePolicyDefinition(policy: RuntimePolicyDefinition, ctx: PolicyContext): Promise<PolicyOutcome>;
|
|
211
216
|
declare function validateDataPolicyDefinition(definition: DataPolicyDefinition): DataPolicyValidationResult;
|
|
212
217
|
declare function aggregatePolicyOutcomes(outcomes: PolicyOutcome[]): PolicyOutcome | undefined;
|
|
213
218
|
|
|
214
|
-
export { type DataPolicyComparisonOperator, type DataPolicyCondition, type DataPolicyConditionResult, type DataPolicyDefinition, type DataPolicyLiteral, type DataPolicySource, type DataPolicySourceReference, type DataPolicyValidationResult, type PolicyContext, type PolicyCorrectiveAction, type PolicyCorrectiveActionBase, type PolicyCorrectiveActionKind, type PolicyDispatchEvidence, type PolicyEvaluationMode, type PolicyEvaluationResult, type PolicyEvaluator, type PolicyFact, type PolicyFallbackDefinition, type PolicyFallbackTrigger, type PolicyGuidance, type PolicyGuidanceValidationResult, type PolicyId, type PolicyInvokeActionCorrectiveAction, type PolicyKind, type PolicyManualCorrectiveAction, type PolicyNavigateCorrectiveAction, type PolicyOutcome, type RuntimePolicyDefinition, aggregatePolicyOutcomes, assertPolicyId, evaluatePolicyDefinition, evaluatePolicyDefinitions, evaluateRegisteredPolicies,
|
|
219
|
+
export { type DataPolicyComparisonOperator, type DataPolicyCondition, type DataPolicyConditionResult, type DataPolicyDefinition, type DataPolicyLiteral, type DataPolicySource, type DataPolicySourceReference, type DataPolicyValidationResult, type PolicyContext, type PolicyCorrectiveAction, type PolicyCorrectiveActionBase, type PolicyCorrectiveActionKind, type PolicyDispatchEvidence, type PolicyEvaluationMode, type PolicyEvaluationResult, type PolicyEvaluator, type PolicyFact, type PolicyFallbackDefinition, type PolicyFallbackTrigger, type PolicyGuidance, type PolicyGuidanceValidationResult, type PolicyId, type PolicyInvokeActionCorrectiveAction, type PolicyKind, type PolicyManualCorrectiveAction, type PolicyNavigateCorrectiveAction, type PolicyOutcome, type PolicyRegistry, type RuntimePolicyDefinition, aggregatePolicyOutcomes, assertPolicyId, createPolicyRegistry, evaluatePolicyDefinition, evaluatePolicyDefinitions, evaluateRegisteredPolicies, validateDataPolicyDefinition, validatePolicyGuidance };
|
package/dist/policies/index.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ interface PolicyContext<TDb = unknown> {
|
|
|
25
25
|
* globals. The shape is opaque to the platform — adapters narrow it.
|
|
26
26
|
*/
|
|
27
27
|
services?: FabricRuntimeServices;
|
|
28
|
+
/** Explicit code-policy catalog for this runtime; absence fails closed. */
|
|
29
|
+
resolveCodePolicy?: (policyId: PolicyId) => PolicyEvaluator | undefined;
|
|
28
30
|
}
|
|
29
31
|
interface PolicyFact {
|
|
30
32
|
name: string;
|
|
@@ -201,14 +203,17 @@ interface PolicyDispatchEvidence {
|
|
|
201
203
|
metadata?: Record<string, unknown>;
|
|
202
204
|
};
|
|
203
205
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
interface PolicyRegistry {
|
|
207
|
+
register(evaluator: PolicyEvaluator): void;
|
|
208
|
+
registerIfMissing(evaluator: PolicyEvaluator): void;
|
|
209
|
+
resolve(policyId: PolicyId): PolicyEvaluator | undefined;
|
|
210
|
+
ids(): PolicyId[];
|
|
211
|
+
}
|
|
212
|
+
declare function createPolicyRegistry(evaluators?: readonly PolicyEvaluator[]): PolicyRegistry;
|
|
208
213
|
declare function evaluateRegisteredPolicies(policyIds: PolicyId[], ctx: PolicyContext): Promise<PolicyOutcome[]>;
|
|
209
214
|
declare function evaluatePolicyDefinitions(policies: RuntimePolicyDefinition[], ctx: PolicyContext): Promise<PolicyOutcome[]>;
|
|
210
215
|
declare function evaluatePolicyDefinition(policy: RuntimePolicyDefinition, ctx: PolicyContext): Promise<PolicyOutcome>;
|
|
211
216
|
declare function validateDataPolicyDefinition(definition: DataPolicyDefinition): DataPolicyValidationResult;
|
|
212
217
|
declare function aggregatePolicyOutcomes(outcomes: PolicyOutcome[]): PolicyOutcome | undefined;
|
|
213
218
|
|
|
214
|
-
export { type DataPolicyComparisonOperator, type DataPolicyCondition, type DataPolicyConditionResult, type DataPolicyDefinition, type DataPolicyLiteral, type DataPolicySource, type DataPolicySourceReference, type DataPolicyValidationResult, type PolicyContext, type PolicyCorrectiveAction, type PolicyCorrectiveActionBase, type PolicyCorrectiveActionKind, type PolicyDispatchEvidence, type PolicyEvaluationMode, type PolicyEvaluationResult, type PolicyEvaluator, type PolicyFact, type PolicyFallbackDefinition, type PolicyFallbackTrigger, type PolicyGuidance, type PolicyGuidanceValidationResult, type PolicyId, type PolicyInvokeActionCorrectiveAction, type PolicyKind, type PolicyManualCorrectiveAction, type PolicyNavigateCorrectiveAction, type PolicyOutcome, type RuntimePolicyDefinition, aggregatePolicyOutcomes, assertPolicyId, evaluatePolicyDefinition, evaluatePolicyDefinitions, evaluateRegisteredPolicies,
|
|
219
|
+
export { type DataPolicyComparisonOperator, type DataPolicyCondition, type DataPolicyConditionResult, type DataPolicyDefinition, type DataPolicyLiteral, type DataPolicySource, type DataPolicySourceReference, type DataPolicyValidationResult, type PolicyContext, type PolicyCorrectiveAction, type PolicyCorrectiveActionBase, type PolicyCorrectiveActionKind, type PolicyDispatchEvidence, type PolicyEvaluationMode, type PolicyEvaluationResult, type PolicyEvaluator, type PolicyFact, type PolicyFallbackDefinition, type PolicyFallbackTrigger, type PolicyGuidance, type PolicyGuidanceValidationResult, type PolicyId, type PolicyInvokeActionCorrectiveAction, type PolicyKind, type PolicyManualCorrectiveAction, type PolicyNavigateCorrectiveAction, type PolicyOutcome, type PolicyRegistry, type RuntimePolicyDefinition, aggregatePolicyOutcomes, assertPolicyId, createPolicyRegistry, evaluatePolicyDefinition, evaluatePolicyDefinitions, evaluateRegisteredPolicies, validateDataPolicyDefinition, validatePolicyGuidance };
|
package/dist/policies/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { aggregatePolicyOutcomes, assertPolicyId, evaluatePolicyDefinition, evaluatePolicyDefinitions, evaluateRegisteredPolicies,
|
|
1
|
+
export { aggregatePolicyOutcomes, assertPolicyId, createPolicyRegistry, evaluatePolicyDefinition, evaluatePolicyDefinitions, evaluateRegisteredPolicies, validateDataPolicyDefinition, validatePolicyGuidance } from '../chunk-JFVEPAED.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/privacy/index.cjs
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkX3GHYMAJ_cjs = require('../chunk-X3GHYMAJ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "ANONYMIZATION_POLICY_VERSION", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkX3GHYMAJ_cjs.ANONYMIZATION_POLICY_VERSION; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "AnonymizationEngine", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkX3GHYMAJ_cjs.AnonymizationEngine; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FieldRedactor", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkX3GHYMAJ_cjs.FieldRedactor; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "PLATFORM_PRIVACY_POLICY_VERSION", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkX3GHYMAJ_cjs.PLATFORM_PRIVACY_POLICY_VERSION; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "anonymizeAssetEventPayload", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkX3GHYMAJ_cjs.anonymizeAssetEventPayload; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "anonymizeEvidencePacket", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkX3GHYMAJ_cjs.anonymizeEvidencePacket; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "anonymizeJsonValue", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkX3GHYMAJ_cjs.anonymizeJsonValue; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "buildAnonymizationLifecycleEvidence", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkX3GHYMAJ_cjs.buildAnonymizationLifecycleEvidence; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "stableChecksum", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkX3GHYMAJ_cjs.stableChecksum; }
|
|
42
42
|
});
|
|
43
43
|
//# sourceMappingURL=index.cjs.map
|
|
44
44
|
//# sourceMappingURL=index.cjs.map
|
package/dist/privacy/index.d.cts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
declare const ANONYMIZATION_POLICY_VERSION = "adr-026-platform-anonymization-v1";
|
|
2
2
|
type JsonObject = Record<string, unknown>;
|
|
3
|
+
interface AnonymizationFieldPolicy {
|
|
4
|
+
method: RedactionMethod;
|
|
5
|
+
match: "key" | "path";
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
interface AnonymizationPolicy {
|
|
9
|
+
fields: readonly AnonymizationFieldPolicy[];
|
|
10
|
+
preservedSemantics?: readonly string[];
|
|
11
|
+
}
|
|
3
12
|
interface AssetEventLike {
|
|
4
13
|
id: string;
|
|
5
14
|
tenantId: string;
|
|
@@ -53,6 +62,8 @@ declare class FieldRedactor {
|
|
|
53
62
|
generalize(value: unknown): unknown;
|
|
54
63
|
}
|
|
55
64
|
declare class AnonymizationEngine {
|
|
65
|
+
#private;
|
|
66
|
+
constructor(policy: AnonymizationPolicy);
|
|
56
67
|
anonymizeJsonValue<TValue>(value: TValue, context: AnonymizationContext, dataClass: PlatformDataClass): AnonymizationResult<TValue>;
|
|
57
68
|
anonymizeJsonValueAtPath<TValue>(value: TValue, context: AnonymizationContext, dataClass: PlatformDataClass, basePath: string): AnonymizationResult<TValue>;
|
|
58
69
|
anonymizeAssetEventPayload(event: AssetEventLike, context: AnonymizationContext): AnonymizationResult<unknown>;
|
|
@@ -80,9 +91,9 @@ declare class AnonymizationEngine {
|
|
|
80
91
|
declare const PLATFORM_PRIVACY_POLICY_VERSION = "fabric-platform-privacy-v1";
|
|
81
92
|
type RedactionMethod = "nullify" | "mask" | "hash" | "tokenize" | "generalize" | "drop";
|
|
82
93
|
|
|
83
|
-
declare function anonymizeJsonValue<TValue>(value: TValue, context: AnonymizationContext, dataClass: PlatformDataClass): AnonymizationResult<TValue>;
|
|
84
|
-
declare function anonymizeAssetEventPayload(event: AssetEventLike, context: AnonymizationContext): AnonymizationResult<unknown>;
|
|
85
|
-
declare function anonymizeEvidencePacket(packet: EvidencePacketLike, context: AnonymizationContext): AnonymizationResult<Pick<EvidencePacketLike, "packet" | "redactionMetadata" | "checksum">>;
|
|
94
|
+
declare function anonymizeJsonValue<TValue>(value: TValue, context: AnonymizationContext, dataClass: PlatformDataClass, policy: AnonymizationPolicy): AnonymizationResult<TValue>;
|
|
95
|
+
declare function anonymizeAssetEventPayload(event: AssetEventLike, context: AnonymizationContext, policy: AnonymizationPolicy): AnonymizationResult<unknown>;
|
|
96
|
+
declare function anonymizeEvidencePacket(packet: EvidencePacketLike, context: AnonymizationContext, policy: AnonymizationPolicy): AnonymizationResult<Pick<EvidencePacketLike, "packet" | "redactionMetadata" | "checksum">>;
|
|
86
97
|
declare function buildAnonymizationLifecycleEvidence(input: {
|
|
87
98
|
context: AnonymizationContext;
|
|
88
99
|
assetEvents?: Array<{
|
|
@@ -100,7 +111,7 @@ declare function buildAnonymizationLifecycleEvidence(input: {
|
|
|
100
111
|
packet: EvidencePacketLike;
|
|
101
112
|
metadata: AnonymizationMetadata;
|
|
102
113
|
}>;
|
|
103
|
-
}): AnonymizationLifecycleEvidence;
|
|
114
|
+
}, policy: AnonymizationPolicy): AnonymizationLifecycleEvidence;
|
|
104
115
|
type PlatformDataClass = "asset_event" | "read_model" | "raw_payload" | "evidence_packet" | "action_evidence" | "access_event";
|
|
105
116
|
interface RedactionRule {
|
|
106
117
|
fieldPath: string;
|
|
@@ -175,4 +186,4 @@ interface RetentionRule {
|
|
|
175
186
|
legalHoldExempt?: boolean;
|
|
176
187
|
}
|
|
177
188
|
|
|
178
|
-
export { ANONYMIZATION_POLICY_VERSION, type AnalyticsDataContract, type AnalyticsDataContractSource, type AnalyticsEligibilityDecision, type AnonymizationContext, AnonymizationEngine, type AnonymizationFieldMetadata, type AnonymizationLifecycleEvidence, type AnonymizationMetadata, type AnonymizationResult, type AssetEventLike, type DataClassificationRule, type EvidencePacketLike, FieldRedactor, PLATFORM_PRIVACY_POLICY_VERSION, type PlatformDataClass, type RedactionMethod, type RedactionRule, type RetentionRule, anonymizeAssetEventPayload, anonymizeEvidencePacket, anonymizeJsonValue, buildAnonymizationLifecycleEvidence, stableChecksum };
|
|
189
|
+
export { ANONYMIZATION_POLICY_VERSION, type AnalyticsDataContract, type AnalyticsDataContractSource, type AnalyticsEligibilityDecision, type AnonymizationContext, AnonymizationEngine, type AnonymizationFieldMetadata, type AnonymizationFieldPolicy, type AnonymizationLifecycleEvidence, type AnonymizationMetadata, type AnonymizationPolicy, type AnonymizationResult, type AssetEventLike, type DataClassificationRule, type EvidencePacketLike, FieldRedactor, PLATFORM_PRIVACY_POLICY_VERSION, type PlatformDataClass, type RedactionMethod, type RedactionRule, type RetentionRule, anonymizeAssetEventPayload, anonymizeEvidencePacket, anonymizeJsonValue, buildAnonymizationLifecycleEvidence, stableChecksum };
|