@vorionsys/contracts 0.1.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/aci/aci-string.d.ts +539 -0
- package/dist/aci/aci-string.d.ts.map +1 -0
- package/dist/aci/aci-string.js +563 -0
- package/dist/aci/aci-string.js.map +1 -0
- package/dist/aci/attestation.d.ts +648 -0
- package/dist/aci/attestation.d.ts.map +1 -0
- package/dist/aci/attestation.js +289 -0
- package/dist/aci/attestation.js.map +1 -0
- package/dist/aci/domains.d.ts +260 -0
- package/dist/aci/domains.d.ts.map +1 -0
- package/dist/aci/domains.js +322 -0
- package/dist/aci/domains.js.map +1 -0
- package/dist/aci/effective-permission.d.ts +371 -0
- package/dist/aci/effective-permission.d.ts.map +1 -0
- package/dist/aci/effective-permission.js +351 -0
- package/dist/aci/effective-permission.js.map +1 -0
- package/dist/aci/identity.d.ts +1100 -0
- package/dist/aci/identity.d.ts.map +1 -0
- package/dist/aci/identity.js +328 -0
- package/dist/aci/identity.js.map +1 -0
- package/dist/aci/index.d.ts +67 -0
- package/dist/aci/index.d.ts.map +1 -0
- package/dist/aci/index.js +157 -0
- package/dist/aci/index.js.map +1 -0
- package/dist/aci/jwt-claims.d.ts +756 -0
- package/dist/aci/jwt-claims.d.ts.map +1 -0
- package/dist/aci/jwt-claims.js +335 -0
- package/dist/aci/jwt-claims.js.map +1 -0
- package/dist/aci/levels.d.ts +279 -0
- package/dist/aci/levels.d.ts.map +1 -0
- package/dist/aci/levels.js +467 -0
- package/dist/aci/levels.js.map +1 -0
- package/dist/aci/mapping.d.ts +291 -0
- package/dist/aci/mapping.d.ts.map +1 -0
- package/dist/aci/mapping.js +427 -0
- package/dist/aci/mapping.js.map +1 -0
- package/dist/aci/skills.d.ts +314 -0
- package/dist/aci/skills.d.ts.map +1 -0
- package/dist/aci/skills.js +404 -0
- package/dist/aci/skills.js.map +1 -0
- package/dist/aci/tiers.d.ts +403 -0
- package/dist/aci/tiers.d.ts.map +1 -0
- package/dist/aci/tiers.js +659 -0
- package/dist/aci/tiers.js.map +1 -0
- package/dist/canonical/agent.d.ts +796 -0
- package/dist/canonical/agent.d.ts.map +1 -0
- package/dist/canonical/agent.js +527 -0
- package/dist/canonical/agent.js.map +1 -0
- package/dist/canonical/governance.d.ts +905 -0
- package/dist/canonical/governance.d.ts.map +1 -0
- package/dist/canonical/governance.js +454 -0
- package/dist/canonical/governance.js.map +1 -0
- package/dist/canonical/index.d.ts +17 -0
- package/dist/canonical/index.d.ts.map +1 -0
- package/dist/canonical/index.js +21 -0
- package/dist/canonical/index.js.map +1 -0
- package/dist/canonical/intent.d.ts +727 -0
- package/dist/canonical/intent.d.ts.map +1 -0
- package/dist/canonical/intent.js +203 -0
- package/dist/canonical/intent.js.map +1 -0
- package/dist/canonical/risk-level.d.ts +344 -0
- package/dist/canonical/risk-level.d.ts.map +1 -0
- package/dist/canonical/risk-level.js +472 -0
- package/dist/canonical/risk-level.js.map +1 -0
- package/dist/canonical/trust-band.d.ts +239 -0
- package/dist/canonical/trust-band.d.ts.map +1 -0
- package/dist/canonical/trust-band.js +298 -0
- package/dist/canonical/trust-band.js.map +1 -0
- package/dist/canonical/trust-score.d.ts +301 -0
- package/dist/canonical/trust-score.d.ts.map +1 -0
- package/dist/canonical/trust-score.js +390 -0
- package/dist/canonical/trust-score.js.map +1 -0
- package/dist/canonical/trust-signal.d.ts +617 -0
- package/dist/canonical/trust-signal.d.ts.map +1 -0
- package/dist/canonical/trust-signal.js +355 -0
- package/dist/canonical/trust-signal.js.map +1 -0
- package/dist/canonical/validation.d.ts +231 -0
- package/dist/canonical/validation.d.ts.map +1 -0
- package/dist/canonical/validation.js +558 -0
- package/dist/canonical/validation.js.map +1 -0
- package/dist/common/index.d.ts +7 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +7 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/primitives.d.ts +56 -0
- package/dist/common/primitives.d.ts.map +1 -0
- package/dist/common/primitives.js +70 -0
- package/dist/common/primitives.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/v2/canary-probe.d.ts +201 -0
- package/dist/v2/canary-probe.d.ts.map +1 -0
- package/dist/v2/canary-probe.js +99 -0
- package/dist/v2/canary-probe.js.map +1 -0
- package/dist/v2/component.d.ts +132 -0
- package/dist/v2/component.d.ts.map +1 -0
- package/dist/v2/component.js +5 -0
- package/dist/v2/component.js.map +1 -0
- package/dist/v2/decision.d.ts +310 -0
- package/dist/v2/decision.d.ts.map +1 -0
- package/dist/v2/decision.js +21 -0
- package/dist/v2/decision.js.map +1 -0
- package/dist/v2/enums.d.ts +185 -0
- package/dist/v2/enums.d.ts.map +1 -0
- package/dist/v2/enums.js +203 -0
- package/dist/v2/enums.js.map +1 -0
- package/dist/v2/evidence.d.ts +368 -0
- package/dist/v2/evidence.d.ts.map +1 -0
- package/dist/v2/evidence.js +152 -0
- package/dist/v2/evidence.js.map +1 -0
- package/dist/v2/execution.d.ts +190 -0
- package/dist/v2/execution.d.ts.map +1 -0
- package/dist/v2/execution.js +5 -0
- package/dist/v2/execution.js.map +1 -0
- package/dist/v2/index.d.ts +19 -0
- package/dist/v2/index.d.ts.map +1 -0
- package/dist/v2/index.js +32 -0
- package/dist/v2/index.js.map +1 -0
- package/dist/v2/intent.d.ts +89 -0
- package/dist/v2/intent.d.ts.map +1 -0
- package/dist/v2/intent.js +5 -0
- package/dist/v2/intent.js.map +1 -0
- package/dist/v2/policy-bundle.d.ts +166 -0
- package/dist/v2/policy-bundle.d.ts.map +1 -0
- package/dist/v2/policy-bundle.js +20 -0
- package/dist/v2/policy-bundle.js.map +1 -0
- package/dist/v2/pre-action-gate.d.ts +185 -0
- package/dist/v2/pre-action-gate.d.ts.map +1 -0
- package/dist/v2/pre-action-gate.js +64 -0
- package/dist/v2/pre-action-gate.js.map +1 -0
- package/dist/v2/proof-event.d.ts +201 -0
- package/dist/v2/proof-event.d.ts.map +1 -0
- package/dist/v2/proof-event.js +5 -0
- package/dist/v2/proof-event.js.map +1 -0
- package/dist/v2/retention.d.ts +329 -0
- package/dist/v2/retention.d.ts.map +1 -0
- package/dist/v2/retention.js +162 -0
- package/dist/v2/retention.js.map +1 -0
- package/dist/v2/trust-delta.d.ts +119 -0
- package/dist/v2/trust-delta.d.ts.map +1 -0
- package/dist/v2/trust-delta.js +28 -0
- package/dist/v2/trust-delta.js.map +1 -0
- package/dist/v2/trust-profile.d.ts +337 -0
- package/dist/v2/trust-profile.d.ts.map +1 -0
- package/dist/v2/trust-profile.js +96 -0
- package/dist/v2/trust-profile.js.map +1 -0
- package/dist/validators/decision.d.ts +430 -0
- package/dist/validators/decision.d.ts.map +1 -0
- package/dist/validators/decision.js +61 -0
- package/dist/validators/decision.js.map +1 -0
- package/dist/validators/enums.d.ts +24 -0
- package/dist/validators/enums.d.ts.map +1 -0
- package/dist/validators/enums.js +24 -0
- package/dist/validators/enums.js.map +1 -0
- package/dist/validators/index.d.ts +30 -0
- package/dist/validators/index.d.ts.map +1 -0
- package/dist/validators/index.js +42 -0
- package/dist/validators/index.js.map +1 -0
- package/dist/validators/intent.d.ts +229 -0
- package/dist/validators/intent.d.ts.map +1 -0
- package/dist/validators/intent.js +47 -0
- package/dist/validators/intent.js.map +1 -0
- package/dist/validators/proof-event.d.ts +981 -0
- package/dist/validators/proof-event.d.ts.map +1 -0
- package/dist/validators/proof-event.js +134 -0
- package/dist/validators/proof-event.js.map +1 -0
- package/dist/validators/trust-profile.d.ts +350 -0
- package/dist/validators/trust-profile.d.ts.map +1 -0
- package/dist/validators/trust-profile.js +65 -0
- package/dist/validators/trust-profile.js.map +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Cross-System Mappings
|
|
3
|
+
*
|
|
4
|
+
* Provides mapping functions between different tier systems, domain namespaces,
|
|
5
|
+
* and trust representations. These mappings enable interoperability between
|
|
6
|
+
* the ACI specification and Vorion runtime systems.
|
|
7
|
+
*
|
|
8
|
+
* Key mappings:
|
|
9
|
+
* - CertificationTier <-> RuntimeTier
|
|
10
|
+
* - ACI Domains <-> Vorion Namespaces
|
|
11
|
+
* - TrustBand <-> CertificationTier/RuntimeTier
|
|
12
|
+
*
|
|
13
|
+
* @module @vorion/contracts/aci/mapping
|
|
14
|
+
*/
|
|
15
|
+
import { z } from 'zod';
|
|
16
|
+
import { type DomainCode } from './domains.js';
|
|
17
|
+
import { CapabilityLevel } from './levels.js';
|
|
18
|
+
import { CertificationTier, RuntimeTier } from './tiers.js';
|
|
19
|
+
/**
|
|
20
|
+
* Maps a CertificationTier to the corresponding RuntimeTier.
|
|
21
|
+
*
|
|
22
|
+
* This is a direct 1:1 mapping since both use T0-T7 scale, but with
|
|
23
|
+
* different semantic meanings:
|
|
24
|
+
* - CertificationTier: External attestation status
|
|
25
|
+
* - RuntimeTier: Deployment autonomy level
|
|
26
|
+
*
|
|
27
|
+
* @param certificationTier - ACI certification tier
|
|
28
|
+
* @returns Corresponding Vorion runtime tier
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```typescript
|
|
32
|
+
* certificationTierToRuntimeTier(CertificationTier.T3_MONITORED);
|
|
33
|
+
* // RuntimeTier.T3_MONITORED
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare function certificationTierToRuntimeTier(certificationTier: CertificationTier): RuntimeTier;
|
|
37
|
+
/**
|
|
38
|
+
* Maps a RuntimeTier to the corresponding CertificationTier.
|
|
39
|
+
*
|
|
40
|
+
* @param runtimeTier - Vorion runtime tier
|
|
41
|
+
* @returns Corresponding ACI certification tier
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```typescript
|
|
45
|
+
* runtimeTierToCertificationTier(RuntimeTier.T3_MONITORED);
|
|
46
|
+
* // CertificationTier.T3_MONITORED
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare function runtimeTierToCertificationTier(runtimeTier: RuntimeTier): CertificationTier;
|
|
50
|
+
/**
|
|
51
|
+
* Mapping configuration for certification to runtime tier.
|
|
52
|
+
*/
|
|
53
|
+
export declare const CERTIFICATION_TO_RUNTIME_TIER_MAP: Readonly<Record<CertificationTier, RuntimeTier>>;
|
|
54
|
+
/**
|
|
55
|
+
* Mapping configuration for runtime to certification tier.
|
|
56
|
+
*/
|
|
57
|
+
export declare const RUNTIME_TO_CERTIFICATION_TIER_MAP: Readonly<Record<RuntimeTier, CertificationTier>>;
|
|
58
|
+
/**
|
|
59
|
+
* TrustBand values from Vorion canonical types.
|
|
60
|
+
* Replicated here to avoid circular dependencies.
|
|
61
|
+
*
|
|
62
|
+
* The 8-tier system (T0-T7) maps trust scores to discrete autonomy levels:
|
|
63
|
+
* - T0: Sandbox - Isolated testing, no real operations (0-199)
|
|
64
|
+
* - T1: Observed - Under active observation and supervision (200-349)
|
|
65
|
+
* - T2: Provisional - Limited operations with strict constraints (350-499)
|
|
66
|
+
* - T3: Monitored - Continuous monitoring with expanding freedom (500-649)
|
|
67
|
+
* - T4: Standard - Trusted for routine operations (650-799)
|
|
68
|
+
* - T5: Trusted - Expanded capabilities with minimal oversight (800-875)
|
|
69
|
+
* - T6: Certified - Independent operation with audit trail (876-950)
|
|
70
|
+
* - T7: Autonomous - Full autonomy for mission-critical operations (951-1000)
|
|
71
|
+
*/
|
|
72
|
+
export declare enum TrustBand {
|
|
73
|
+
T0_SANDBOX = 0,
|
|
74
|
+
T1_OBSERVED = 1,
|
|
75
|
+
T2_PROVISIONAL = 2,
|
|
76
|
+
T3_MONITORED = 3,
|
|
77
|
+
T4_STANDARD = 4,
|
|
78
|
+
T5_TRUSTED = 5,
|
|
79
|
+
T6_CERTIFIED = 6,
|
|
80
|
+
T7_AUTONOMOUS = 7
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Zod schema for TrustBand validation.
|
|
84
|
+
*/
|
|
85
|
+
export declare const trustBandSchema: z.ZodNativeEnum<typeof TrustBand>;
|
|
86
|
+
/**
|
|
87
|
+
* Maps a TrustBand to a CertificationTier.
|
|
88
|
+
*
|
|
89
|
+
* @param trustBand - Vorion trust band
|
|
90
|
+
* @returns Corresponding ACI certification tier
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```typescript
|
|
94
|
+
* trustBandToCertificationTier(TrustBand.T3_STANDARD);
|
|
95
|
+
* // CertificationTier.T3_MONITORED
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
export declare function trustBandToCertificationTier(trustBand: TrustBand): CertificationTier;
|
|
99
|
+
/**
|
|
100
|
+
* Maps a TrustBand to a RuntimeTier.
|
|
101
|
+
*
|
|
102
|
+
* @param trustBand - Vorion trust band
|
|
103
|
+
* @returns Corresponding Vorion runtime tier
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```typescript
|
|
107
|
+
* trustBandToRuntimeTier(TrustBand.T3_STANDARD);
|
|
108
|
+
* // RuntimeTier.T3_MONITORED
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
export declare function trustBandToRuntimeTier(trustBand: TrustBand): RuntimeTier;
|
|
112
|
+
/**
|
|
113
|
+
* Maps a CertificationTier to a TrustBand.
|
|
114
|
+
*
|
|
115
|
+
* @param certificationTier - ACI certification tier
|
|
116
|
+
* @returns Corresponding Vorion trust band
|
|
117
|
+
*/
|
|
118
|
+
export declare function certificationTierToTrustBand(certificationTier: CertificationTier): TrustBand;
|
|
119
|
+
/**
|
|
120
|
+
* Maps a RuntimeTier to a TrustBand.
|
|
121
|
+
*
|
|
122
|
+
* @param runtimeTier - Vorion runtime tier
|
|
123
|
+
* @returns Corresponding Vorion trust band
|
|
124
|
+
*/
|
|
125
|
+
export declare function runtimeTierToTrustBand(runtimeTier: RuntimeTier): TrustBand;
|
|
126
|
+
/**
|
|
127
|
+
* Converts a trust score to both certification and runtime tiers.
|
|
128
|
+
*
|
|
129
|
+
* Note: CertificationTier and RuntimeTier use different score ranges,
|
|
130
|
+
* so the same score may map to different tiers.
|
|
131
|
+
*
|
|
132
|
+
* @param score - Trust score (0-1000)
|
|
133
|
+
* @returns Both certification and runtime tiers
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```typescript
|
|
137
|
+
* scoreToBothTiers(550);
|
|
138
|
+
* // { certificationTier: T3_MONITORED, runtimeTier: T3_TRUSTED }
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
export declare function scoreToBothTiers(score: number): {
|
|
142
|
+
certificationTier: CertificationTier;
|
|
143
|
+
runtimeTier: RuntimeTier;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Normalizes a score between ACI and Vorion scales.
|
|
147
|
+
*
|
|
148
|
+
* ACI uses 0-1000 with boundaries at 100, 300, 500, 700, 900
|
|
149
|
+
* Vorion uses 0-1000 with boundaries at 166, 333, 500, 666, 833
|
|
150
|
+
*
|
|
151
|
+
* @param score - Trust score
|
|
152
|
+
* @param fromScale - Source scale ('aci' | 'vorion')
|
|
153
|
+
* @param toScale - Target scale ('aci' | 'vorion')
|
|
154
|
+
* @returns Normalized score in target scale
|
|
155
|
+
*/
|
|
156
|
+
export declare function normalizeScoreBetweenScales(score: number, fromScale: 'aci' | 'vorion', toScale: 'aci' | 'vorion'): number;
|
|
157
|
+
/**
|
|
158
|
+
* Vorion namespace strings corresponding to ACI domains.
|
|
159
|
+
*/
|
|
160
|
+
export type VorionNamespace = 'admin' | 'business' | 'communications' | 'data' | 'external' | 'finance' | 'governance' | 'hospitality' | 'infrastructure' | 'security';
|
|
161
|
+
/**
|
|
162
|
+
* Array of all Vorion namespaces.
|
|
163
|
+
*/
|
|
164
|
+
export declare const VORION_NAMESPACES: readonly VorionNamespace[];
|
|
165
|
+
/**
|
|
166
|
+
* Zod schema for VorionNamespace validation.
|
|
167
|
+
*/
|
|
168
|
+
export declare const vorionNamespaceSchema: z.ZodEnum<["admin", "business", "communications", "data", "external", "finance", "governance", "hospitality", "infrastructure", "security"]>;
|
|
169
|
+
/**
|
|
170
|
+
* Mapping from ACI domain codes to Vorion namespaces.
|
|
171
|
+
*/
|
|
172
|
+
export declare const DOMAIN_TO_NAMESPACE_MAP: Readonly<Record<DomainCode, VorionNamespace>>;
|
|
173
|
+
/**
|
|
174
|
+
* Mapping from Vorion namespaces to ACI domain codes.
|
|
175
|
+
*/
|
|
176
|
+
export declare const NAMESPACE_TO_DOMAIN_MAP: Readonly<Record<VorionNamespace, DomainCode>>;
|
|
177
|
+
/**
|
|
178
|
+
* Maps an ACI domain code to a Vorion namespace.
|
|
179
|
+
*
|
|
180
|
+
* @param domain - ACI domain code
|
|
181
|
+
* @returns Vorion namespace
|
|
182
|
+
*
|
|
183
|
+
* @example
|
|
184
|
+
* ```typescript
|
|
185
|
+
* aciDomainToVorionNamespace('F'); // 'finance'
|
|
186
|
+
* aciDomainToVorionNamespace('S'); // 'security'
|
|
187
|
+
* ```
|
|
188
|
+
*/
|
|
189
|
+
export declare function aciDomainToVorionNamespace(domain: DomainCode): VorionNamespace;
|
|
190
|
+
/**
|
|
191
|
+
* Maps a Vorion namespace to an ACI domain code.
|
|
192
|
+
*
|
|
193
|
+
* @param namespace - Vorion namespace
|
|
194
|
+
* @returns ACI domain code
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* ```typescript
|
|
198
|
+
* vorionNamespaceToAciDomain('finance'); // 'F'
|
|
199
|
+
* vorionNamespaceToAciDomain('security'); // 'S'
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
202
|
+
export declare function vorionNamespaceToAciDomain(namespace: VorionNamespace): DomainCode;
|
|
203
|
+
/**
|
|
204
|
+
* Maps an array of ACI domains to Vorion namespaces.
|
|
205
|
+
*
|
|
206
|
+
* @param domains - Array of ACI domain codes
|
|
207
|
+
* @returns Array of Vorion namespaces
|
|
208
|
+
*/
|
|
209
|
+
export declare function aciDomainsToVorionNamespaces(domains: readonly DomainCode[]): VorionNamespace[];
|
|
210
|
+
/**
|
|
211
|
+
* Maps an array of Vorion namespaces to ACI domains.
|
|
212
|
+
*
|
|
213
|
+
* @param namespaces - Array of Vorion namespaces
|
|
214
|
+
* @returns Array of ACI domain codes
|
|
215
|
+
*/
|
|
216
|
+
export declare function vorionNamespacesToAciDomains(namespaces: readonly VorionNamespace[]): DomainCode[];
|
|
217
|
+
/**
|
|
218
|
+
* Maps a capability level to a human-readable autonomy description.
|
|
219
|
+
*
|
|
220
|
+
* @param level - Capability level
|
|
221
|
+
* @returns Autonomy description
|
|
222
|
+
*/
|
|
223
|
+
export declare function capabilityLevelToAutonomyDescription(level: CapabilityLevel): string;
|
|
224
|
+
/**
|
|
225
|
+
* Maps a capability level to a maximum allowed runtime tier.
|
|
226
|
+
*
|
|
227
|
+
* Higher capability levels require higher runtime tiers to operate.
|
|
228
|
+
*
|
|
229
|
+
* @param level - Capability level
|
|
230
|
+
* @returns Minimum runtime tier required
|
|
231
|
+
*/
|
|
232
|
+
export declare function capabilityLevelToMinRuntimeTier(level: CapabilityLevel): RuntimeTier;
|
|
233
|
+
/**
|
|
234
|
+
* A bidirectional mapping between two types.
|
|
235
|
+
*/
|
|
236
|
+
export interface BidirectionalMap<A, B> {
|
|
237
|
+
forward: (a: A) => B;
|
|
238
|
+
reverse: (b: B) => A;
|
|
239
|
+
forwardMap: Readonly<Record<string, B>>;
|
|
240
|
+
reverseMap: Readonly<Record<string, A>>;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Creates a bidirectional mapping.
|
|
244
|
+
*
|
|
245
|
+
* @param mapping - Object mapping A values to B values
|
|
246
|
+
* @returns Bidirectional map with forward and reverse functions
|
|
247
|
+
*/
|
|
248
|
+
export declare function createBidirectionalMap<A extends string | number, B extends string | number>(mapping: Record<A, B>): BidirectionalMap<A, B>;
|
|
249
|
+
/**
|
|
250
|
+
* Pre-built bidirectional map for domain <-> namespace.
|
|
251
|
+
*/
|
|
252
|
+
export declare const domainNamespaceMap: BidirectionalMap<DomainCode, VorionNamespace>;
|
|
253
|
+
/**
|
|
254
|
+
* Pre-built bidirectional map for certification <-> runtime tier.
|
|
255
|
+
*/
|
|
256
|
+
export declare const certificationRuntimeMap: BidirectionalMap<CertificationTier, RuntimeTier>;
|
|
257
|
+
/**
|
|
258
|
+
* Zod schema for tier mapping result.
|
|
259
|
+
*/
|
|
260
|
+
export declare const tierMappingResultSchema: z.ZodObject<{
|
|
261
|
+
certificationTier: z.ZodNativeEnum<typeof CertificationTier>;
|
|
262
|
+
runtimeTier: z.ZodNativeEnum<typeof RuntimeTier>;
|
|
263
|
+
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
certificationTier: CertificationTier;
|
|
265
|
+
runtimeTier: RuntimeTier;
|
|
266
|
+
}, {
|
|
267
|
+
certificationTier: CertificationTier;
|
|
268
|
+
runtimeTier: RuntimeTier;
|
|
269
|
+
}>;
|
|
270
|
+
/**
|
|
271
|
+
* Zod schema for domain mapping result.
|
|
272
|
+
*/
|
|
273
|
+
export declare const domainMappingResultSchema: z.ZodObject<{
|
|
274
|
+
domain: z.ZodEnum<["A", "B", "C", "D", "E", "F", "G", "H", "I", "S"]>;
|
|
275
|
+
namespace: z.ZodEnum<["admin", "business", "communications", "data", "external", "finance", "governance", "hospitality", "infrastructure", "security"]>;
|
|
276
|
+
}, "strip", z.ZodTypeAny, {
|
|
277
|
+
domain: "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S";
|
|
278
|
+
namespace: "external" | "admin" | "security" | "governance" | "data" | "business" | "communications" | "finance" | "hospitality" | "infrastructure";
|
|
279
|
+
}, {
|
|
280
|
+
domain: "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S";
|
|
281
|
+
namespace: "external" | "admin" | "security" | "governance" | "data" | "business" | "communications" | "finance" | "hospitality" | "infrastructure";
|
|
282
|
+
}>;
|
|
283
|
+
/**
|
|
284
|
+
* Type guard for VorionNamespace.
|
|
285
|
+
*/
|
|
286
|
+
export declare function isVorionNamespace(value: unknown): value is VorionNamespace;
|
|
287
|
+
/**
|
|
288
|
+
* Type guard for TrustBand.
|
|
289
|
+
*/
|
|
290
|
+
export declare function isTrustBand(value: unknown): value is TrustBand;
|
|
291
|
+
//# sourceMappingURL=mapping.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping.d.ts","sourceRoot":"","sources":["../../src/aci/mapping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,KAAK,UAAU,EAEhB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EACL,iBAAiB,EACjB,WAAW,EAOZ,MAAM,YAAY,CAAC;AAMpB;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,8BAA8B,CAC5C,iBAAiB,EAAE,iBAAiB,GACnC,WAAW,CAGb;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,8BAA8B,CAC5C,WAAW,EAAE,WAAW,GACvB,iBAAiB,CAEnB;AAED;;GAEG;AACH,eAAO,MAAM,iCAAiC,EAAE,QAAQ,CACtD,MAAM,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAU9B,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,iCAAiC,EAAE,QAAQ,CACtD,MAAM,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAU9B,CAAC;AAMX;;;;;;;;;;;;;GAaG;AACH,oBAAY,SAAS;IACnB,UAAU,IAAI;IACd,WAAW,IAAI;IACf,cAAc,IAAI;IAClB,YAAY,IAAI;IAChB,WAAW,IAAI;IACf,UAAU,IAAI;IACd,YAAY,IAAI;IAChB,aAAa,IAAI;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,mCAE1B,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,wBAAg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