@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,314 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview ACI Skill Codes and Bitmask Operations
|
|
3
|
+
*
|
|
4
|
+
* Defines the skill codes used for fine-grained capability matching,
|
|
5
|
+
* with bitmask encoding for efficient queries and skill matching.
|
|
6
|
+
*
|
|
7
|
+
* Skills represent specific capabilities within domains. While domains
|
|
8
|
+
* define broad capability areas (A-I, S), skills provide granular
|
|
9
|
+
* specialization within those areas.
|
|
10
|
+
*
|
|
11
|
+
* @module @vorion/contracts/aci/skills
|
|
12
|
+
*/
|
|
13
|
+
import { z } from 'zod';
|
|
14
|
+
/**
|
|
15
|
+
* Skill codes representing specific agent capabilities.
|
|
16
|
+
*
|
|
17
|
+
* Skills are organized into categories:
|
|
18
|
+
*
|
|
19
|
+
* **Content & Generation:**
|
|
20
|
+
* - TG: Text Generation - General text creation and composition
|
|
21
|
+
* - CW: Content Writing - Blog posts, articles, marketing copy
|
|
22
|
+
* - CR: Creative Writing - Fiction, storytelling, creative content
|
|
23
|
+
* - TD: Technical Documentation - Docs, guides, specifications
|
|
24
|
+
* - TR: Translation - Language translation services
|
|
25
|
+
* - SM: Summarization - Content condensation and extraction
|
|
26
|
+
*
|
|
27
|
+
* **Analysis & Research:**
|
|
28
|
+
* - DA: Data Analysis - Statistical analysis, data processing
|
|
29
|
+
* - RS: Research - Information gathering and synthesis
|
|
30
|
+
* - QA: Question Answering - Q&A, knowledge retrieval
|
|
31
|
+
*
|
|
32
|
+
* **Development & Technical:**
|
|
33
|
+
* - CA: Code Assistance - Programming help, debugging
|
|
34
|
+
* - DV: Development - Software development tasks
|
|
35
|
+
* - RV: Review - Code review, content review
|
|
36
|
+
* - WS: Web Search - Internet search and retrieval
|
|
37
|
+
* - FO: File Operations - File manipulation, I/O
|
|
38
|
+
* - AI: API Integration - External API interactions
|
|
39
|
+
*
|
|
40
|
+
* **Business & Operations:**
|
|
41
|
+
* - PL: Planning - Task planning, scheduling
|
|
42
|
+
* - CM: Communication - Messaging, notifications
|
|
43
|
+
* - CS: Customer Support - Customer service interactions
|
|
44
|
+
* - AU: Automation - Workflow automation
|
|
45
|
+
*
|
|
46
|
+
* **Security & Governance:**
|
|
47
|
+
* - SC: Security - Security-related operations
|
|
48
|
+
* - GV: Governance - Policy and compliance
|
|
49
|
+
*/
|
|
50
|
+
export type SkillCode = 'TG' | 'CW' | 'CR' | 'TD' | 'TR' | 'SM' | 'DA' | 'RS' | 'QA' | 'CA' | 'DV' | 'RV' | 'WS' | 'FO' | 'AI' | 'PL' | 'CM' | 'CS' | 'AU' | 'SC' | 'GV';
|
|
51
|
+
/**
|
|
52
|
+
* Array of all valid skill codes.
|
|
53
|
+
*/
|
|
54
|
+
export declare const SKILL_CODES: readonly SkillCode[];
|
|
55
|
+
/**
|
|
56
|
+
* Zod schema for SkillCode validation.
|
|
57
|
+
*/
|
|
58
|
+
export declare const skillCodeSchema: z.ZodEnum<["TG", "CW", "CR", "TD", "TR", "SM", "DA", "RS", "QA", "CA", "DV", "RV", "WS", "FO", "AI", "PL", "CM", "CS", "AU", "SC", "GV"]>;
|
|
59
|
+
/**
|
|
60
|
+
* Skill category for grouping related skills.
|
|
61
|
+
*/
|
|
62
|
+
export type SkillCategory = 'content' | 'analysis' | 'development' | 'business' | 'security';
|
|
63
|
+
/**
|
|
64
|
+
* Complete definition for a skill.
|
|
65
|
+
*/
|
|
66
|
+
export interface SkillDefinition {
|
|
67
|
+
/** Two-character skill code */
|
|
68
|
+
readonly code: SkillCode;
|
|
69
|
+
/** Human-readable skill name */
|
|
70
|
+
readonly name: string;
|
|
71
|
+
/** Bitmask value for efficient queries (power of 2) */
|
|
72
|
+
readonly bit: number;
|
|
73
|
+
/** Description of the skill's scope */
|
|
74
|
+
readonly description: string;
|
|
75
|
+
/** Category grouping */
|
|
76
|
+
readonly category: SkillCategory;
|
|
77
|
+
/** Legacy string identifier for backward compatibility */
|
|
78
|
+
readonly legacyId?: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Skill definitions with their bitmask values.
|
|
82
|
+
*
|
|
83
|
+
* Each skill has a unique bitmask value (power of 2) for efficient
|
|
84
|
+
* storage and querying of skill combinations.
|
|
85
|
+
*
|
|
86
|
+
* Using 32-bit integers, we can support up to 32 skills (21 currently defined).
|
|
87
|
+
*/
|
|
88
|
+
export declare const SKILL_DEFINITIONS: Readonly<Record<SkillCode, SkillDefinition>>;
|
|
89
|
+
/**
|
|
90
|
+
* Human-readable skill names indexed by code.
|
|
91
|
+
*/
|
|
92
|
+
export declare const SKILL_NAMES: Readonly<Record<SkillCode, string>>;
|
|
93
|
+
/**
|
|
94
|
+
* Bitmask value representing all skills combined.
|
|
95
|
+
*/
|
|
96
|
+
export declare const ALL_SKILLS_BITMASK: number;
|
|
97
|
+
/**
|
|
98
|
+
* Skills grouped by category.
|
|
99
|
+
*/
|
|
100
|
+
export declare const SKILLS_BY_CATEGORY: Readonly<Record<SkillCategory, readonly SkillCode[]>>;
|
|
101
|
+
/**
|
|
102
|
+
* Map legacy string identifiers to skill codes.
|
|
103
|
+
*/
|
|
104
|
+
export declare const LEGACY_ID_TO_SKILL: Readonly<Record<string, SkillCode>>;
|
|
105
|
+
/**
|
|
106
|
+
* Converts a legacy skill ID to a skill code.
|
|
107
|
+
*
|
|
108
|
+
* @param legacyId - Legacy string identifier
|
|
109
|
+
* @returns Skill code or undefined if not found
|
|
110
|
+
*/
|
|
111
|
+
export declare function legacyIdToSkillCode(legacyId: string): SkillCode | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* Converts an array of legacy skill IDs to skill codes.
|
|
114
|
+
*
|
|
115
|
+
* @param legacyIds - Array of legacy string identifiers
|
|
116
|
+
* @returns Array of skill codes (unrecognized IDs are filtered out)
|
|
117
|
+
*/
|
|
118
|
+
export declare function legacyIdsToSkillCodes(legacyIds: readonly string[]): SkillCode[];
|
|
119
|
+
/**
|
|
120
|
+
* Encodes an array of skill codes into a bitmask.
|
|
121
|
+
*
|
|
122
|
+
* @param skills - Array of skill codes to encode
|
|
123
|
+
* @returns Bitmask integer representing the skills
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```typescript
|
|
127
|
+
* encodeSkills(['TG', 'CA']); // 0x201 (513)
|
|
128
|
+
* encodeSkills(['DA', 'RS']); // 0x0C0 (192)
|
|
129
|
+
* encodeSkills([]); // 0
|
|
130
|
+
* ```
|
|
131
|
+
*/
|
|
132
|
+
export declare function encodeSkills(skills: readonly SkillCode[]): number;
|
|
133
|
+
/**
|
|
134
|
+
* Decodes a bitmask into an array of skill codes.
|
|
135
|
+
*
|
|
136
|
+
* @param bitmask - Bitmask integer to decode
|
|
137
|
+
* @returns Array of skill codes present in the bitmask
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* ```typescript
|
|
141
|
+
* decodeSkills(0x201); // ['TG', 'CA']
|
|
142
|
+
* decodeSkills(0x0C0); // ['DA', 'RS']
|
|
143
|
+
* decodeSkills(0); // []
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
export declare function decodeSkills(bitmask: number): SkillCode[];
|
|
147
|
+
/**
|
|
148
|
+
* Parses a skill string (e.g., "TG,CA,DA") into an array of codes.
|
|
149
|
+
*
|
|
150
|
+
* @param skillString - Comma-separated skill codes
|
|
151
|
+
* @returns Array of valid skill codes
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* ```typescript
|
|
155
|
+
* parseSkillString('TG,CA,DA'); // ['TG', 'CA', 'DA']
|
|
156
|
+
* parseSkillString('TGCADA'); // ['TG', 'CA', 'DA']
|
|
157
|
+
* parseSkillString(''); // []
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
export declare function parseSkillString(skillString: string): SkillCode[];
|
|
161
|
+
/**
|
|
162
|
+
* Formats an array of skill codes into a sorted string.
|
|
163
|
+
*
|
|
164
|
+
* @param skills - Array of skill codes
|
|
165
|
+
* @returns Sorted, deduplicated comma-separated string
|
|
166
|
+
*
|
|
167
|
+
* @example
|
|
168
|
+
* ```typescript
|
|
169
|
+
* formatSkillString(['DA', 'TG', 'CA']); // 'CA,DA,TG'
|
|
170
|
+
* formatSkillString(['TG', 'TG']); // 'TG'
|
|
171
|
+
* ```
|
|
172
|
+
*/
|
|
173
|
+
export declare function formatSkillString(skills: readonly SkillCode[]): string;
|
|
174
|
+
/**
|
|
175
|
+
* Checks if a skill bitmask contains all required skills.
|
|
176
|
+
*
|
|
177
|
+
* @param agentSkills - Agent's skill bitmask
|
|
178
|
+
* @param requiredSkills - Required skills bitmask
|
|
179
|
+
* @returns True if agent has all required skills
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* ```typescript
|
|
183
|
+
* const agentMask = encodeSkills(['TG', 'CA', 'DA']);
|
|
184
|
+
* const required = encodeSkills(['TG', 'CA']);
|
|
185
|
+
* hasSkills(agentMask, required); // true
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
188
|
+
export declare function hasSkills(agentSkills: number, requiredSkills: number): boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Checks if an agent satisfies skill requirements.
|
|
191
|
+
*
|
|
192
|
+
* @param agentSkills - Agent's skill codes
|
|
193
|
+
* @param requiredSkills - Required skill codes
|
|
194
|
+
* @returns True if agent has all required skills
|
|
195
|
+
*/
|
|
196
|
+
export declare function satisfiesSkillRequirements(agentSkills: readonly SkillCode[], requiredSkills: readonly SkillCode[]): boolean;
|
|
197
|
+
/**
|
|
198
|
+
* Returns the intersection of two skill sets.
|
|
199
|
+
*
|
|
200
|
+
* @param skills1 - First skill set
|
|
201
|
+
* @param skills2 - Second skill set
|
|
202
|
+
* @returns Skills present in both sets
|
|
203
|
+
*/
|
|
204
|
+
export declare function intersectSkills(skills1: readonly SkillCode[], skills2: readonly SkillCode[]): SkillCode[];
|
|
205
|
+
/**
|
|
206
|
+
* Returns the union of two skill sets.
|
|
207
|
+
*
|
|
208
|
+
* @param skills1 - First skill set
|
|
209
|
+
* @param skills2 - Second skill set
|
|
210
|
+
* @returns All skills from both sets
|
|
211
|
+
*/
|
|
212
|
+
export declare function unionSkills(skills1: readonly SkillCode[], skills2: readonly SkillCode[]): SkillCode[];
|
|
213
|
+
/**
|
|
214
|
+
* Returns skills in the first set but not in the second.
|
|
215
|
+
*
|
|
216
|
+
* @param skills1 - First skill set
|
|
217
|
+
* @param skills2 - Second skill set
|
|
218
|
+
* @returns Skills unique to the first set
|
|
219
|
+
*/
|
|
220
|
+
export declare function differenceSkills(skills1: readonly SkillCode[], skills2: readonly SkillCode[]): SkillCode[];
|
|
221
|
+
/**
|
|
222
|
+
* Gets the complete definition for a skill code.
|
|
223
|
+
*
|
|
224
|
+
* @param code - Skill code
|
|
225
|
+
* @returns Skill definition or undefined if not found
|
|
226
|
+
*/
|
|
227
|
+
export declare function getSkillDefinition(code: SkillCode): SkillDefinition;
|
|
228
|
+
/**
|
|
229
|
+
* Gets the human-readable name for a skill code.
|
|
230
|
+
*
|
|
231
|
+
* @param code - Skill code
|
|
232
|
+
* @returns Skill name
|
|
233
|
+
*/
|
|
234
|
+
export declare function getSkillName(code: SkillCode): string;
|
|
235
|
+
/**
|
|
236
|
+
* Gets the bitmask value for a skill code.
|
|
237
|
+
*
|
|
238
|
+
* @param code - Skill code
|
|
239
|
+
* @returns Bitmask value
|
|
240
|
+
*/
|
|
241
|
+
export declare function getSkillBit(code: SkillCode): number;
|
|
242
|
+
/**
|
|
243
|
+
* Gets the category for a skill code.
|
|
244
|
+
*
|
|
245
|
+
* @param code - Skill code
|
|
246
|
+
* @returns Skill category
|
|
247
|
+
*/
|
|
248
|
+
export declare function getSkillCategory(code: SkillCode): SkillCategory;
|
|
249
|
+
/**
|
|
250
|
+
* Gets all skills in a category.
|
|
251
|
+
*
|
|
252
|
+
* @param category - Skill category
|
|
253
|
+
* @returns Array of skill codes in that category
|
|
254
|
+
*/
|
|
255
|
+
export declare function getSkillsInCategory(category: SkillCategory): readonly SkillCode[];
|
|
256
|
+
/**
|
|
257
|
+
* Counts the number of skills in a bitmask.
|
|
258
|
+
*
|
|
259
|
+
* @param bitmask - Skill bitmask
|
|
260
|
+
* @returns Number of skills
|
|
261
|
+
*/
|
|
262
|
+
export declare function countSkills(bitmask: number): number;
|
|
263
|
+
/**
|
|
264
|
+
* Type guard to check if a value is a valid skill code.
|
|
265
|
+
*
|
|
266
|
+
* @param value - Value to check
|
|
267
|
+
* @returns True if value is a valid SkillCode
|
|
268
|
+
*/
|
|
269
|
+
export declare function isSkillCode(value: unknown): value is SkillCode;
|
|
270
|
+
/**
|
|
271
|
+
* Type guard to check if an array contains only valid skill codes.
|
|
272
|
+
*
|
|
273
|
+
* @param values - Array to check
|
|
274
|
+
* @returns True if all values are valid SkillCodes
|
|
275
|
+
*/
|
|
276
|
+
export declare function isSkillCodeArray(values: unknown): values is SkillCode[];
|
|
277
|
+
/**
|
|
278
|
+
* Zod schema for SkillDefinition validation.
|
|
279
|
+
*/
|
|
280
|
+
export declare const skillDefinitionSchema: z.ZodObject<{
|
|
281
|
+
code: z.ZodEnum<["TG", "CW", "CR", "TD", "TR", "SM", "DA", "RS", "QA", "CA", "DV", "RV", "WS", "FO", "AI", "PL", "CM", "CS", "AU", "SC", "GV"]>;
|
|
282
|
+
name: z.ZodString;
|
|
283
|
+
bit: z.ZodNumber;
|
|
284
|
+
description: z.ZodString;
|
|
285
|
+
category: z.ZodEnum<["content", "analysis", "development", "business", "security"]>;
|
|
286
|
+
legacyId: z.ZodOptional<z.ZodString>;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
name: string;
|
|
289
|
+
code: "TG" | "CW" | "CR" | "TD" | "TR" | "SM" | "DA" | "RS" | "QA" | "CA" | "DV" | "RV" | "WS" | "FO" | "AI" | "PL" | "CM" | "CS" | "AU" | "SC" | "GV";
|
|
290
|
+
description: string;
|
|
291
|
+
bit: number;
|
|
292
|
+
category: "security" | "development" | "content" | "analysis" | "business";
|
|
293
|
+
legacyId?: string | undefined;
|
|
294
|
+
}, {
|
|
295
|
+
name: string;
|
|
296
|
+
code: "TG" | "CW" | "CR" | "TD" | "TR" | "SM" | "DA" | "RS" | "QA" | "CA" | "DV" | "RV" | "WS" | "FO" | "AI" | "PL" | "CM" | "CS" | "AU" | "SC" | "GV";
|
|
297
|
+
description: string;
|
|
298
|
+
bit: number;
|
|
299
|
+
category: "security" | "development" | "content" | "analysis" | "business";
|
|
300
|
+
legacyId?: string | undefined;
|
|
301
|
+
}>;
|
|
302
|
+
/**
|
|
303
|
+
* Zod schema for skill code array validation.
|
|
304
|
+
*/
|
|
305
|
+
export declare const skillCodeArraySchema: z.ZodArray<z.ZodEnum<["TG", "CW", "CR", "TD", "TR", "SM", "DA", "RS", "QA", "CA", "DV", "RV", "WS", "FO", "AI", "PL", "CM", "CS", "AU", "SC", "GV"]>, "many">;
|
|
306
|
+
/**
|
|
307
|
+
* Zod schema for skill bitmask validation (21 bits max).
|
|
308
|
+
*/
|
|
309
|
+
export declare const skillBitmaskSchema: z.ZodNumber;
|
|
310
|
+
/**
|
|
311
|
+
* Zod schema for skill string validation (comma-separated codes).
|
|
312
|
+
*/
|
|
313
|
+
export declare const skillStringSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, SkillCode[], string>;
|
|
314
|
+
//# sourceMappingURL=skills.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../src/aci/skills.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,MAAM,SAAS,GACjB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AAET;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,SAAS,SAAS,EAMlC,CAAC;AAEX;;GAEG;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