@uluops/ops-sdk 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/LICENSE +21 -0
- package/README.md +1647 -0
- package/dist/client.d.ts +191 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +168 -0
- package/dist/client.js.map +1 -0
- package/dist/config/constants.d.ts +27 -0
- package/dist/config/constants.d.ts.map +1 -0
- package/dist/config/constants.js +35 -0
- package/dist/config/constants.js.map +1 -0
- package/dist/config/index.d.ts +4 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +4 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/loaders.d.ts +41 -0
- package/dist/config/loaders.d.ts.map +1 -0
- package/dist/config/loaders.js +43 -0
- package/dist/config/loaders.js.map +1 -0
- package/dist/config/validators.d.ts +163 -0
- package/dist/config/validators.d.ts.map +1 -0
- package/dist/config/validators.js +126 -0
- package/dist/config/validators.js.map +1 -0
- package/dist/errors/errors.d.ts +7 -0
- package/dist/errors/errors.d.ts.map +1 -0
- package/dist/errors/errors.js +7 -0
- package/dist/errors/errors.js.map +1 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +2 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/http/auth-strategy.d.ts +5 -0
- package/dist/http/auth-strategy.d.ts.map +1 -0
- package/dist/http/auth-strategy.js +5 -0
- package/dist/http/auth-strategy.js.map +1 -0
- package/dist/http/fetch-adapter.d.ts +5 -0
- package/dist/http/fetch-adapter.d.ts.map +1 -0
- package/dist/http/fetch-adapter.js +2 -0
- package/dist/http/fetch-adapter.js.map +1 -0
- package/dist/http/http-client.d.ts +29 -0
- package/dist/http/http-client.d.ts.map +1 -0
- package/dist/http/http-client.js +25 -0
- package/dist/http/http-client.js.map +1 -0
- package/dist/http/index.d.ts +6 -0
- package/dist/http/index.d.ts.map +1 -0
- package/dist/http/index.js +3 -0
- package/dist/http/index.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/operations/admin.d.ts +89 -0
- package/dist/operations/admin.d.ts.map +1 -0
- package/dist/operations/admin.js +134 -0
- package/dist/operations/admin.js.map +1 -0
- package/dist/operations/analytics.d.ts +81 -0
- package/dist/operations/analytics.d.ts.map +1 -0
- package/dist/operations/analytics.js +111 -0
- package/dist/operations/analytics.js.map +1 -0
- package/dist/operations/auth.d.ts +81 -0
- package/dist/operations/auth.d.ts.map +1 -0
- package/dist/operations/auth.js +115 -0
- package/dist/operations/auth.js.map +1 -0
- package/dist/operations/index.d.ts +8 -0
- package/dist/operations/index.d.ts.map +1 -0
- package/dist/operations/index.js +8 -0
- package/dist/operations/index.js.map +1 -0
- package/dist/operations/issues.d.ts +59 -0
- package/dist/operations/issues.d.ts.map +1 -0
- package/dist/operations/issues.js +141 -0
- package/dist/operations/issues.js.map +1 -0
- package/dist/operations/projects.d.ts +56 -0
- package/dist/operations/projects.d.ts.map +1 -0
- package/dist/operations/projects.js +99 -0
- package/dist/operations/projects.js.map +1 -0
- package/dist/operations/query-utils.d.ts +20 -0
- package/dist/operations/query-utils.d.ts.map +1 -0
- package/dist/operations/query-utils.js +22 -0
- package/dist/operations/query-utils.js.map +1 -0
- package/dist/operations/runs.d.ts +53 -0
- package/dist/operations/runs.d.ts.map +1 -0
- package/dist/operations/runs.js +118 -0
- package/dist/operations/runs.js.map +1 -0
- package/dist/operations/taxonomy.d.ts +7 -0
- package/dist/operations/taxonomy.d.ts.map +1 -0
- package/dist/operations/taxonomy.js +7 -0
- package/dist/operations/taxonomy.js.map +1 -0
- package/dist/types/analytics.d.ts +338 -0
- package/dist/types/analytics.d.ts.map +1 -0
- package/dist/types/analytics.js +2 -0
- package/dist/types/analytics.js.map +1 -0
- package/dist/types/auth.d.ts +303 -0
- package/dist/types/auth.d.ts.map +1 -0
- package/dist/types/auth.js +2 -0
- package/dist/types/auth.js.map +1 -0
- package/dist/types/enums.d.ts +200 -0
- package/dist/types/enums.d.ts.map +1 -0
- package/dist/types/enums.js +222 -0
- package/dist/types/enums.js.map +1 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +16 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/issues.d.ts +182 -0
- package/dist/types/issues.d.ts.map +1 -0
- package/dist/types/issues.js +2 -0
- package/dist/types/issues.js.map +1 -0
- package/dist/types/projects.d.ts +123 -0
- package/dist/types/projects.d.ts.map +1 -0
- package/dist/types/projects.js +2 -0
- package/dist/types/projects.js.map +1 -0
- package/dist/types/response-schemas.d.ts +3441 -0
- package/dist/types/response-schemas.d.ts.map +1 -0
- package/dist/types/response-schemas.js +388 -0
- package/dist/types/response-schemas.js.map +1 -0
- package/dist/types/responses.d.ts +84 -0
- package/dist/types/responses.d.ts.map +1 -0
- package/dist/types/responses.js +2 -0
- package/dist/types/responses.js.map +1 -0
- package/dist/types/runs.d.ts +232 -0
- package/dist/types/runs.d.ts.map +1 -0
- package/dist/types/runs.js +2 -0
- package/dist/types/runs.js.map +1 -0
- package/dist/types/schemas.d.ts +914 -0
- package/dist/types/schemas.d.ts.map +1 -0
- package/dist/types/schemas.js +280 -0
- package/dist/types/schemas.js.map +1 -0
- package/dist/utils/helpers.d.ts +64 -0
- package/dist/utils/helpers.d.ts.map +1 -0
- package/dist/utils/helpers.js +127 -0
- package/dist/utils/helpers.js.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/logger.d.ts +5 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +5 -0
- package/dist/utils/logger.js.map +1 -0
- package/package.json +103 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Issue priority levels
|
|
3
|
+
*/
|
|
4
|
+
export declare const Priority: {
|
|
5
|
+
readonly Critical: "critical";
|
|
6
|
+
readonly Suggested: "suggested";
|
|
7
|
+
readonly Backlog: "backlog";
|
|
8
|
+
};
|
|
9
|
+
export type Priority = (typeof Priority)[keyof typeof Priority];
|
|
10
|
+
export declare const PRIORITIES: readonly ["critical", "suggested", "backlog"];
|
|
11
|
+
/**
|
|
12
|
+
* Issue status values
|
|
13
|
+
*/
|
|
14
|
+
export declare const Status: {
|
|
15
|
+
readonly Open: "open";
|
|
16
|
+
readonly Completed: "completed";
|
|
17
|
+
readonly Deferred: "deferred";
|
|
18
|
+
readonly Wontfix: "wontfix";
|
|
19
|
+
readonly Merged: "merged";
|
|
20
|
+
readonly FalsePositive: "false-positive";
|
|
21
|
+
};
|
|
22
|
+
export type Status = (typeof Status)[keyof typeof Status];
|
|
23
|
+
export declare const STATUSES: readonly ["open", "completed", "deferred", "wontfix", "merged", "false-positive"];
|
|
24
|
+
/**
|
|
25
|
+
* Issue severity levels
|
|
26
|
+
*/
|
|
27
|
+
export declare const Severity: {
|
|
28
|
+
readonly Critical: "critical";
|
|
29
|
+
readonly High: "high";
|
|
30
|
+
readonly Medium: "medium";
|
|
31
|
+
readonly Low: "low";
|
|
32
|
+
readonly Info: "info";
|
|
33
|
+
};
|
|
34
|
+
export type Severity = (typeof Severity)[keyof typeof Severity];
|
|
35
|
+
export declare const SEVERITIES: readonly ["critical", "high", "medium", "low", "info"];
|
|
36
|
+
/**
|
|
37
|
+
* Failure taxonomy domains
|
|
38
|
+
*/
|
|
39
|
+
export declare const FailureDomain: {
|
|
40
|
+
readonly STR: "STR";
|
|
41
|
+
readonly SEM: "SEM";
|
|
42
|
+
readonly PRA: "PRA";
|
|
43
|
+
readonly EPI: "EPI";
|
|
44
|
+
};
|
|
45
|
+
export type FailureDomain = (typeof FailureDomain)[keyof typeof FailureDomain];
|
|
46
|
+
export declare const FAILURE_DOMAINS: readonly ["STR", "SEM", "PRA", "EPI"];
|
|
47
|
+
/**
|
|
48
|
+
* Failure severity codes (single letter)
|
|
49
|
+
*/
|
|
50
|
+
export declare const FailureSeverityCode: {
|
|
51
|
+
readonly Critical: "C";
|
|
52
|
+
readonly High: "H";
|
|
53
|
+
readonly Medium: "M";
|
|
54
|
+
readonly Low: "L";
|
|
55
|
+
readonly Info: "I";
|
|
56
|
+
};
|
|
57
|
+
export type FailureSeverityCode = (typeof FailureSeverityCode)[keyof typeof FailureSeverityCode];
|
|
58
|
+
export declare const FAILURE_SEVERITY_CODES: readonly ["C", "H", "M", "L", "I"];
|
|
59
|
+
/**
|
|
60
|
+
* Issue types
|
|
61
|
+
*/
|
|
62
|
+
export declare const IssueType: {
|
|
63
|
+
readonly Feature: "feature";
|
|
64
|
+
readonly Bug: "bug";
|
|
65
|
+
readonly Refactor: "refactor";
|
|
66
|
+
readonly Config: "config";
|
|
67
|
+
readonly Docs: "docs";
|
|
68
|
+
readonly Infra: "infra";
|
|
69
|
+
readonly Security: "security";
|
|
70
|
+
readonly Test: "test";
|
|
71
|
+
};
|
|
72
|
+
export type IssueType = (typeof IssueType)[keyof typeof IssueType];
|
|
73
|
+
export declare const ISSUE_TYPES: readonly ["feature", "bug", "refactor", "config", "docs", "infra", "security", "test"];
|
|
74
|
+
/**
|
|
75
|
+
* Issue note types
|
|
76
|
+
*/
|
|
77
|
+
export declare const NoteType: {
|
|
78
|
+
readonly Context: "context";
|
|
79
|
+
readonly Resolution: "resolution";
|
|
80
|
+
readonly Blocker: "blocker";
|
|
81
|
+
};
|
|
82
|
+
export type NoteType = (typeof NoteType)[keyof typeof NoteType];
|
|
83
|
+
export declare const NOTE_TYPES: readonly ["context", "resolution", "blocker"];
|
|
84
|
+
/**
|
|
85
|
+
* Classification confidence levels
|
|
86
|
+
*/
|
|
87
|
+
export declare const ClassificationConfidence: {
|
|
88
|
+
readonly High: "high";
|
|
89
|
+
readonly Medium: "medium";
|
|
90
|
+
readonly Low: "low";
|
|
91
|
+
};
|
|
92
|
+
export type ClassificationConfidence = (typeof ClassificationConfidence)[keyof typeof ClassificationConfidence];
|
|
93
|
+
/**
|
|
94
|
+
* Classification sources
|
|
95
|
+
*/
|
|
96
|
+
export declare const ClassifiedBy: {
|
|
97
|
+
readonly Validator: "validator";
|
|
98
|
+
readonly Classifier: "classifier";
|
|
99
|
+
readonly Human: "human";
|
|
100
|
+
};
|
|
101
|
+
export type ClassifiedBy = (typeof ClassifiedBy)[keyof typeof ClassifiedBy];
|
|
102
|
+
/**
|
|
103
|
+
* User roles
|
|
104
|
+
*/
|
|
105
|
+
export declare const UserRole: {
|
|
106
|
+
readonly Viewer: "viewer";
|
|
107
|
+
readonly Developer: "developer";
|
|
108
|
+
readonly Publisher: "publisher";
|
|
109
|
+
readonly Admin: "admin";
|
|
110
|
+
};
|
|
111
|
+
export type UserRole = (typeof UserRole)[keyof typeof UserRole];
|
|
112
|
+
export declare const USER_ROLES: readonly ["viewer", "developer", "publisher", "admin"];
|
|
113
|
+
/**
|
|
114
|
+
* Subscription tiers
|
|
115
|
+
*/
|
|
116
|
+
export declare const SubscriptionTier: {
|
|
117
|
+
readonly Free: "free";
|
|
118
|
+
readonly Pro: "pro";
|
|
119
|
+
readonly Enterprise: "enterprise";
|
|
120
|
+
};
|
|
121
|
+
export type SubscriptionTier = (typeof SubscriptionTier)[keyof typeof SubscriptionTier];
|
|
122
|
+
export declare const SUBSCRIPTION_TIERS: readonly ["free", "pro", "enterprise"];
|
|
123
|
+
/**
|
|
124
|
+
* Avatar MIME types
|
|
125
|
+
*/
|
|
126
|
+
export declare const AvatarMimeType: {
|
|
127
|
+
readonly PNG: "image/png";
|
|
128
|
+
readonly JPEG: "image/jpeg";
|
|
129
|
+
readonly GIF: "image/gif";
|
|
130
|
+
readonly WebP: "image/webp";
|
|
131
|
+
};
|
|
132
|
+
export type AvatarMimeType = (typeof AvatarMimeType)[keyof typeof AvatarMimeType];
|
|
133
|
+
export declare const AVATAR_MIME_TYPES: readonly ["image/png", "image/jpeg", "image/gif", "image/webp"];
|
|
134
|
+
/**
|
|
135
|
+
* Trend directions for analytics
|
|
136
|
+
*/
|
|
137
|
+
export declare const Trend: {
|
|
138
|
+
readonly Improving: "improving";
|
|
139
|
+
readonly Stable: "stable";
|
|
140
|
+
readonly Degrading: "degrading";
|
|
141
|
+
};
|
|
142
|
+
export type Trend = (typeof Trend)[keyof typeof Trend];
|
|
143
|
+
/**
|
|
144
|
+
* Time granularity for analytics
|
|
145
|
+
*/
|
|
146
|
+
export declare const Granularity: {
|
|
147
|
+
readonly Daily: "daily";
|
|
148
|
+
readonly Weekly: "weekly";
|
|
149
|
+
};
|
|
150
|
+
export type Granularity = (typeof Granularity)[keyof typeof Granularity];
|
|
151
|
+
/**
|
|
152
|
+
* Discovery grouping options
|
|
153
|
+
*/
|
|
154
|
+
export declare const DiscoveryGroupBy: {
|
|
155
|
+
readonly Day: "day";
|
|
156
|
+
readonly Week: "week";
|
|
157
|
+
readonly Month: "month";
|
|
158
|
+
};
|
|
159
|
+
export type DiscoveryGroupBy = (typeof DiscoveryGroupBy)[keyof typeof DiscoveryGroupBy];
|
|
160
|
+
/**
|
|
161
|
+
* Bulk operation failure reasons
|
|
162
|
+
*/
|
|
163
|
+
export declare const BulkFailureReason: {
|
|
164
|
+
readonly NotFound: "NOT_FOUND";
|
|
165
|
+
readonly SelfDeactivate: "SELF_DEACTIVATE";
|
|
166
|
+
readonly LastAdmin: "LAST_ADMIN";
|
|
167
|
+
readonly AlreadyDeactivated: "ALREADY_DEACTIVATED";
|
|
168
|
+
};
|
|
169
|
+
export type BulkFailureReason = (typeof BulkFailureReason)[keyof typeof BulkFailureReason];
|
|
170
|
+
/**
|
|
171
|
+
* Failure code regex pattern
|
|
172
|
+
* Format: DOMAIN-MODE/SEVERITY (e.g., SEM-VAL/H)
|
|
173
|
+
*/
|
|
174
|
+
export declare const FAILURE_CODE_PATTERN: RegExp;
|
|
175
|
+
/**
|
|
176
|
+
* Failure mode pattern (without severity)
|
|
177
|
+
* Format: DOMAIN-MODE (e.g., SEM-VAL)
|
|
178
|
+
*/
|
|
179
|
+
export declare const FAILURE_MODE_PATTERN: RegExp;
|
|
180
|
+
/**
|
|
181
|
+
* Map severity codes to severity values
|
|
182
|
+
*/
|
|
183
|
+
export declare const SEVERITY_CODE_MAP: Record<FailureSeverityCode, Severity>;
|
|
184
|
+
/**
|
|
185
|
+
* Convert severity code to severity value
|
|
186
|
+
*/
|
|
187
|
+
export declare function severityFromCode(code: string | null | undefined): Severity | null;
|
|
188
|
+
/**
|
|
189
|
+
* Parse a failure code into its components
|
|
190
|
+
*/
|
|
191
|
+
export declare function parseFailureCode(code: string): {
|
|
192
|
+
domain: FailureDomain;
|
|
193
|
+
mode: string;
|
|
194
|
+
severityCode: FailureSeverityCode;
|
|
195
|
+
} | null;
|
|
196
|
+
/**
|
|
197
|
+
* Build a failure code from components
|
|
198
|
+
*/
|
|
199
|
+
export declare function buildFailureCode(domain: FailureDomain, mode: string, severityCode: FailureSeverityCode): string;
|
|
200
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../src/types/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;CAIX,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;AAChE,eAAO,MAAM,UAAU,+CAAgD,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;CAOT,CAAC;AACX,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAC1D,eAAO,MAAM,QAAQ,mFAAoF,CAAC;AAE1G;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;CAMX,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC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AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,QAAQ,GAAG,IAAI,CAGjF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG;IAC9C,MAAM,EAAE,aAAa,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,mBAAmB,CAAC;CACnC,GAAG,IAAI,CAsBP;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,aAAa,EACrB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,mBAAmB,GAChC,MAAM,CAER"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Issue priority levels
|
|
3
|
+
*/
|
|
4
|
+
export const Priority = {
|
|
5
|
+
Critical: 'critical',
|
|
6
|
+
Suggested: 'suggested',
|
|
7
|
+
Backlog: 'backlog',
|
|
8
|
+
};
|
|
9
|
+
export const PRIORITIES = ['critical', 'suggested', 'backlog'];
|
|
10
|
+
/**
|
|
11
|
+
* Issue status values
|
|
12
|
+
*/
|
|
13
|
+
export const Status = {
|
|
14
|
+
Open: 'open',
|
|
15
|
+
Completed: 'completed',
|
|
16
|
+
Deferred: 'deferred',
|
|
17
|
+
Wontfix: 'wontfix',
|
|
18
|
+
Merged: 'merged',
|
|
19
|
+
FalsePositive: 'false-positive',
|
|
20
|
+
};
|
|
21
|
+
export const STATUSES = ['open', 'completed', 'deferred', 'wontfix', 'merged', 'false-positive'];
|
|
22
|
+
/**
|
|
23
|
+
* Issue severity levels
|
|
24
|
+
*/
|
|
25
|
+
export const Severity = {
|
|
26
|
+
Critical: 'critical',
|
|
27
|
+
High: 'high',
|
|
28
|
+
Medium: 'medium',
|
|
29
|
+
Low: 'low',
|
|
30
|
+
Info: 'info',
|
|
31
|
+
};
|
|
32
|
+
export const SEVERITIES = ['critical', 'high', 'medium', 'low', 'info'];
|
|
33
|
+
/**
|
|
34
|
+
* Failure taxonomy domains
|
|
35
|
+
*/
|
|
36
|
+
export const FailureDomain = {
|
|
37
|
+
STR: 'STR', // Structural
|
|
38
|
+
SEM: 'SEM', // Semantic
|
|
39
|
+
PRA: 'PRA', // Pragmatic
|
|
40
|
+
EPI: 'EPI', // Epistemic
|
|
41
|
+
};
|
|
42
|
+
export const FAILURE_DOMAINS = ['STR', 'SEM', 'PRA', 'EPI'];
|
|
43
|
+
/**
|
|
44
|
+
* Failure severity codes (single letter)
|
|
45
|
+
*/
|
|
46
|
+
export const FailureSeverityCode = {
|
|
47
|
+
Critical: 'C',
|
|
48
|
+
High: 'H',
|
|
49
|
+
Medium: 'M',
|
|
50
|
+
Low: 'L',
|
|
51
|
+
Info: 'I',
|
|
52
|
+
};
|
|
53
|
+
export const FAILURE_SEVERITY_CODES = ['C', 'H', 'M', 'L', 'I'];
|
|
54
|
+
/**
|
|
55
|
+
* Issue types
|
|
56
|
+
*/
|
|
57
|
+
export const IssueType = {
|
|
58
|
+
Feature: 'feature',
|
|
59
|
+
Bug: 'bug',
|
|
60
|
+
Refactor: 'refactor',
|
|
61
|
+
Config: 'config',
|
|
62
|
+
Docs: 'docs',
|
|
63
|
+
Infra: 'infra',
|
|
64
|
+
Security: 'security',
|
|
65
|
+
Test: 'test',
|
|
66
|
+
};
|
|
67
|
+
export const ISSUE_TYPES = [
|
|
68
|
+
'feature',
|
|
69
|
+
'bug',
|
|
70
|
+
'refactor',
|
|
71
|
+
'config',
|
|
72
|
+
'docs',
|
|
73
|
+
'infra',
|
|
74
|
+
'security',
|
|
75
|
+
'test',
|
|
76
|
+
];
|
|
77
|
+
/**
|
|
78
|
+
* Issue note types
|
|
79
|
+
*/
|
|
80
|
+
export const NoteType = {
|
|
81
|
+
Context: 'context',
|
|
82
|
+
Resolution: 'resolution',
|
|
83
|
+
Blocker: 'blocker',
|
|
84
|
+
};
|
|
85
|
+
export const NOTE_TYPES = ['context', 'resolution', 'blocker'];
|
|
86
|
+
/**
|
|
87
|
+
* Classification confidence levels
|
|
88
|
+
*/
|
|
89
|
+
export const ClassificationConfidence = {
|
|
90
|
+
High: 'high',
|
|
91
|
+
Medium: 'medium',
|
|
92
|
+
Low: 'low',
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Classification sources
|
|
96
|
+
*/
|
|
97
|
+
export const ClassifiedBy = {
|
|
98
|
+
Validator: 'validator',
|
|
99
|
+
Classifier: 'classifier',
|
|
100
|
+
Human: 'human',
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* User roles
|
|
104
|
+
*/
|
|
105
|
+
export const UserRole = {
|
|
106
|
+
Viewer: 'viewer',
|
|
107
|
+
Developer: 'developer',
|
|
108
|
+
Publisher: 'publisher',
|
|
109
|
+
Admin: 'admin',
|
|
110
|
+
};
|
|
111
|
+
export const USER_ROLES = ['viewer', 'developer', 'publisher', 'admin'];
|
|
112
|
+
/**
|
|
113
|
+
* Subscription tiers
|
|
114
|
+
*/
|
|
115
|
+
export const SubscriptionTier = {
|
|
116
|
+
Free: 'free',
|
|
117
|
+
Pro: 'pro',
|
|
118
|
+
Enterprise: 'enterprise',
|
|
119
|
+
};
|
|
120
|
+
export const SUBSCRIPTION_TIERS = ['free', 'pro', 'enterprise'];
|
|
121
|
+
/**
|
|
122
|
+
* Avatar MIME types
|
|
123
|
+
*/
|
|
124
|
+
export const AvatarMimeType = {
|
|
125
|
+
PNG: 'image/png',
|
|
126
|
+
JPEG: 'image/jpeg',
|
|
127
|
+
GIF: 'image/gif',
|
|
128
|
+
WebP: 'image/webp',
|
|
129
|
+
};
|
|
130
|
+
export const AVATAR_MIME_TYPES = ['image/png', 'image/jpeg', 'image/gif', 'image/webp'];
|
|
131
|
+
/**
|
|
132
|
+
* Trend directions for analytics
|
|
133
|
+
*/
|
|
134
|
+
export const Trend = {
|
|
135
|
+
Improving: 'improving',
|
|
136
|
+
Stable: 'stable',
|
|
137
|
+
Degrading: 'degrading',
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Time granularity for analytics
|
|
141
|
+
*/
|
|
142
|
+
export const Granularity = {
|
|
143
|
+
Daily: 'daily',
|
|
144
|
+
Weekly: 'weekly',
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Discovery grouping options
|
|
148
|
+
*/
|
|
149
|
+
export const DiscoveryGroupBy = {
|
|
150
|
+
Day: 'day',
|
|
151
|
+
Week: 'week',
|
|
152
|
+
Month: 'month',
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* Bulk operation failure reasons
|
|
156
|
+
*/
|
|
157
|
+
export const BulkFailureReason = {
|
|
158
|
+
NotFound: 'NOT_FOUND',
|
|
159
|
+
SelfDeactivate: 'SELF_DEACTIVATE',
|
|
160
|
+
LastAdmin: 'LAST_ADMIN',
|
|
161
|
+
AlreadyDeactivated: 'ALREADY_DEACTIVATED',
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Failure code regex pattern
|
|
165
|
+
* Format: DOMAIN-MODE/SEVERITY (e.g., SEM-VAL/H)
|
|
166
|
+
*/
|
|
167
|
+
export const FAILURE_CODE_PATTERN = /^(STR|SEM|PRA|EPI)-[A-Z]{3}\/[CHMLI]$/;
|
|
168
|
+
/**
|
|
169
|
+
* Failure mode pattern (without severity)
|
|
170
|
+
* Format: DOMAIN-MODE (e.g., SEM-VAL)
|
|
171
|
+
*/
|
|
172
|
+
export const FAILURE_MODE_PATTERN = /^(STR|SEM|PRA|EPI)-[A-Z]{3}$/;
|
|
173
|
+
/**
|
|
174
|
+
* Map severity codes to severity values
|
|
175
|
+
*/
|
|
176
|
+
export const SEVERITY_CODE_MAP = {
|
|
177
|
+
C: 'critical',
|
|
178
|
+
H: 'high',
|
|
179
|
+
M: 'medium',
|
|
180
|
+
L: 'low',
|
|
181
|
+
I: 'info',
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Convert severity code to severity value
|
|
185
|
+
*/
|
|
186
|
+
export function severityFromCode(code) {
|
|
187
|
+
if (!code || !(code in SEVERITY_CODE_MAP))
|
|
188
|
+
return null;
|
|
189
|
+
return SEVERITY_CODE_MAP[code];
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Parse a failure code into its components
|
|
193
|
+
*/
|
|
194
|
+
export function parseFailureCode(code) {
|
|
195
|
+
if (!FAILURE_CODE_PATTERN.test(code))
|
|
196
|
+
return null;
|
|
197
|
+
const slashIndex = code.indexOf('/');
|
|
198
|
+
const dashIndex = code.indexOf('-');
|
|
199
|
+
// These checks are technically redundant due to regex validation,
|
|
200
|
+
// but satisfy TypeScript and provide runtime safety
|
|
201
|
+
if (slashIndex === -1 || dashIndex === -1)
|
|
202
|
+
return null;
|
|
203
|
+
const domain = code.slice(0, dashIndex);
|
|
204
|
+
const mode = code.slice(dashIndex + 1, slashIndex);
|
|
205
|
+
const severityCode = code.slice(slashIndex + 1);
|
|
206
|
+
if (!FAILURE_DOMAINS.includes(domain))
|
|
207
|
+
return null;
|
|
208
|
+
if (!FAILURE_SEVERITY_CODES.includes(severityCode))
|
|
209
|
+
return null;
|
|
210
|
+
return {
|
|
211
|
+
domain: domain,
|
|
212
|
+
mode,
|
|
213
|
+
severityCode: severityCode,
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Build a failure code from components
|
|
218
|
+
*/
|
|
219
|
+
export function buildFailureCode(domain, mode, severityCode) {
|
|
220
|
+
return `${domain}-${mode}/${severityCode}`;
|
|
221
|
+
}
|
|
222
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/types/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;CACV,CAAC;AAEX,MAAM,CAAC,MAAM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C,OAAO,GAAG,MAAM,IAAI,IAAI,IAAI,YAAY,EAAE,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './enums.js';
|
|
2
|
+
export * from './auth.js';
|
|
3
|
+
export * from './projects.js';
|
|
4
|
+
export * from './runs.js';
|
|
5
|
+
export * from './issues.js';
|
|
6
|
+
export * from './analytics.js';
|
|
7
|
+
export * from './responses.js';
|
|
8
|
+
export * from './schemas.js';
|
|
9
|
+
export * from './response-schemas.js';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAG3B,cAAc,WAAW,CAAC;AAG1B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,cAAc,CAAC;AAG7B,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Enums
|
|
2
|
+
export * from './enums.js';
|
|
3
|
+
// Auth types
|
|
4
|
+
export * from './auth.js';
|
|
5
|
+
// Domain types
|
|
6
|
+
export * from './projects.js';
|
|
7
|
+
export * from './runs.js';
|
|
8
|
+
export * from './issues.js';
|
|
9
|
+
export * from './analytics.js';
|
|
10
|
+
// Response types
|
|
11
|
+
export * from './responses.js';
|
|
12
|
+
// Zod schemas (input validation)
|
|
13
|
+
export * from './schemas.js';
|
|
14
|
+
// Response schemas (contract validation)
|
|
15
|
+
export * from './response-schemas.js';
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,YAAY,CAAC;AAE3B,aAAa;AACb,cAAc,WAAW,CAAC;AAE1B,eAAe;AACf,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAE/B,iBAAiB;AACjB,cAAc,gBAAgB,CAAC;AAE/B,iCAAiC;AACjC,cAAc,cAAc,CAAC;AAE7B,yCAAyC;AACzC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import type { Priority, Status, Severity, FailureDomain, FailureSeverityCode, IssueType, NoteType, ClassificationConfidence, ClassifiedBy } from './enums.js';
|
|
2
|
+
/**
|
|
3
|
+
* Issue entity
|
|
4
|
+
*/
|
|
5
|
+
export interface Issue {
|
|
6
|
+
id: string;
|
|
7
|
+
projectId: string;
|
|
8
|
+
fingerprint: string;
|
|
9
|
+
title: string;
|
|
10
|
+
status: Status;
|
|
11
|
+
priority: Priority;
|
|
12
|
+
severity: Severity | null;
|
|
13
|
+
failureCode: string | null;
|
|
14
|
+
failureDomain: FailureDomain | null;
|
|
15
|
+
failureMode: string | null;
|
|
16
|
+
failureSeverityCode: FailureSeverityCode | null;
|
|
17
|
+
category: string | null;
|
|
18
|
+
validator: string | null;
|
|
19
|
+
type: IssueType | null;
|
|
20
|
+
filePath: string | null;
|
|
21
|
+
lineNumber: number | null;
|
|
22
|
+
timesSeen: number;
|
|
23
|
+
firstSeenRunId: string;
|
|
24
|
+
lastSeenRunId: string;
|
|
25
|
+
resolvedAt: string | null;
|
|
26
|
+
resolutionRunId: string | null;
|
|
27
|
+
deletedAt: string | null;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
updatedAt: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Public issue (without deletedAt)
|
|
33
|
+
*/
|
|
34
|
+
export type PublicIssue = Omit<Issue, 'deletedAt'>;
|
|
35
|
+
/**
|
|
36
|
+
* Create user-submitted issue input
|
|
37
|
+
*/
|
|
38
|
+
export interface CreateUserIssueInput {
|
|
39
|
+
project: string;
|
|
40
|
+
title: string;
|
|
41
|
+
priority: Priority;
|
|
42
|
+
severity?: Severity;
|
|
43
|
+
category?: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
filePath?: string;
|
|
46
|
+
lineNumber?: number;
|
|
47
|
+
failureCode?: string;
|
|
48
|
+
failureDomain?: FailureDomain;
|
|
49
|
+
failureMode?: string;
|
|
50
|
+
validator?: string;
|
|
51
|
+
type?: IssueType;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Update issue input
|
|
55
|
+
*/
|
|
56
|
+
export interface UpdateIssueInput {
|
|
57
|
+
title?: string;
|
|
58
|
+
status?: Status;
|
|
59
|
+
priority?: Priority;
|
|
60
|
+
severity?: Severity | null;
|
|
61
|
+
failureCode?: string | null;
|
|
62
|
+
failureDomain?: FailureDomain | null;
|
|
63
|
+
failureMode?: string | null;
|
|
64
|
+
category?: string | null;
|
|
65
|
+
type?: IssueType | null;
|
|
66
|
+
filePath?: string | null;
|
|
67
|
+
lineNumber?: number | null;
|
|
68
|
+
lastSeenRunId?: string;
|
|
69
|
+
timesSeen?: number;
|
|
70
|
+
resolvedAt?: string | null;
|
|
71
|
+
resolutionRunId?: string | null;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Update issue status input
|
|
75
|
+
*/
|
|
76
|
+
export interface UpdateIssueStatusInput {
|
|
77
|
+
status: Status;
|
|
78
|
+
reason?: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Issue occurrence
|
|
82
|
+
*/
|
|
83
|
+
export interface Occurrence {
|
|
84
|
+
id: string;
|
|
85
|
+
issueId: string;
|
|
86
|
+
runId: string;
|
|
87
|
+
validator: string;
|
|
88
|
+
description: string | null;
|
|
89
|
+
filePath: string | null;
|
|
90
|
+
lineNumber: number | null;
|
|
91
|
+
classificationConfidence: ClassificationConfidence | null;
|
|
92
|
+
classifiedBy: ClassifiedBy | null;
|
|
93
|
+
createdAt: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Issue note
|
|
97
|
+
*/
|
|
98
|
+
export interface IssueNote {
|
|
99
|
+
id: string;
|
|
100
|
+
issueId: string;
|
|
101
|
+
content: string;
|
|
102
|
+
noteType: NoteType;
|
|
103
|
+
createdBy: string | null;
|
|
104
|
+
createdAt: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Create issue note input
|
|
108
|
+
*/
|
|
109
|
+
export interface CreateIssueNoteInput {
|
|
110
|
+
content: string;
|
|
111
|
+
noteType?: NoteType;
|
|
112
|
+
createdBy?: string;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Status history entry
|
|
116
|
+
*/
|
|
117
|
+
export interface StatusHistory {
|
|
118
|
+
id: string;
|
|
119
|
+
issueId: string;
|
|
120
|
+
oldStatus: Status | null;
|
|
121
|
+
newStatus: Status;
|
|
122
|
+
reason: string | null;
|
|
123
|
+
changedAt: string;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Full issue details (with related data)
|
|
127
|
+
*/
|
|
128
|
+
export interface IssueDetails {
|
|
129
|
+
issue: Issue;
|
|
130
|
+
occurrences: Occurrence[];
|
|
131
|
+
notes: IssueNote[];
|
|
132
|
+
statusHistory: StatusHistory[];
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Issue search query options
|
|
136
|
+
*/
|
|
137
|
+
export interface IssueSearchQuery {
|
|
138
|
+
query?: string;
|
|
139
|
+
projects?: string[];
|
|
140
|
+
validators?: string[];
|
|
141
|
+
status?: Status | 'all';
|
|
142
|
+
priority?: Priority | 'all';
|
|
143
|
+
severities?: Severity[];
|
|
144
|
+
failureDomains?: FailureDomain[];
|
|
145
|
+
limit?: number;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* List issues query options
|
|
149
|
+
*/
|
|
150
|
+
export interface ListIssuesQuery {
|
|
151
|
+
status?: Status;
|
|
152
|
+
priority?: Priority;
|
|
153
|
+
severity?: Severity;
|
|
154
|
+
failureDomain?: FailureDomain;
|
|
155
|
+
validator?: string;
|
|
156
|
+
limit?: number;
|
|
157
|
+
offset?: number;
|
|
158
|
+
includeResolved?: boolean;
|
|
159
|
+
minTimesSeen?: number;
|
|
160
|
+
dateStart?: string;
|
|
161
|
+
dateEnd?: string;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Bulk status update item
|
|
165
|
+
*/
|
|
166
|
+
export interface BulkStatusUpdateItem {
|
|
167
|
+
issueId?: string;
|
|
168
|
+
id?: string;
|
|
169
|
+
status: Status;
|
|
170
|
+
reason?: string;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Status update result
|
|
174
|
+
*/
|
|
175
|
+
export interface StatusUpdateResult {
|
|
176
|
+
id: string;
|
|
177
|
+
fingerprint: string;
|
|
178
|
+
previousStatus: Status;
|
|
179
|
+
newStatus: Status;
|
|
180
|
+
updatedAt: string;
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=issues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issues.d.ts","sourceRoot":"","sources":["../../src/types/issues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,aAAa,EACb,mBAAmB,EACnB,SAAS,EACT,QAAQ,EACR,wBAAwB,EACxB,YAAY,EACb,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC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