@uluops/ops-sdk 1.8.1 → 1.8.4
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 +56 -1
- package/README.md +83 -52
- package/dist/client.d.ts +15 -46
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +17 -11
- package/dist/client.js.map +1 -1
- package/dist/config/constants.d.ts +2 -2
- package/dist/config/constants.js +1 -1
- package/dist/config/validators.d.ts +141 -3
- package/dist/config/validators.d.ts.map +1 -1
- package/dist/config/validators.js +146 -6
- package/dist/config/validators.js.map +1 -1
- package/dist/errors/errors.d.ts +1 -0
- package/dist/errors/errors.d.ts.map +1 -1
- package/dist/errors/errors.js +2 -0
- package/dist/errors/errors.js.map +1 -1
- package/dist/http/http-client.d.ts +17 -2
- package/dist/http/http-client.d.ts.map +1 -1
- package/dist/http/http-client.js +6 -1
- package/dist/http/http-client.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/operations/analytics.d.ts +87 -30
- package/dist/operations/analytics.d.ts.map +1 -1
- package/dist/operations/analytics.js +89 -33
- package/dist/operations/analytics.js.map +1 -1
- package/dist/operations/auth.d.ts +46 -8
- package/dist/operations/auth.d.ts.map +1 -1
- package/dist/operations/auth.js +46 -8
- package/dist/operations/auth.js.map +1 -1
- package/dist/operations/issues.d.ts +86 -16
- package/dist/operations/issues.d.ts.map +1 -1
- package/dist/operations/issues.js +86 -16
- package/dist/operations/issues.js.map +1 -1
- package/dist/operations/projects.d.ts +64 -10
- package/dist/operations/projects.d.ts.map +1 -1
- package/dist/operations/projects.js +69 -17
- package/dist/operations/projects.js.map +1 -1
- package/dist/operations/runs.d.ts +103 -19
- package/dist/operations/runs.d.ts.map +1 -1
- package/dist/operations/runs.js +111 -24
- package/dist/operations/runs.js.map +1 -1
- package/dist/operations/taxonomy.d.ts +3 -3
- package/dist/operations/taxonomy.d.ts.map +1 -1
- package/dist/operations/taxonomy.js +1 -1
- package/dist/types/analytics.d.ts +15 -21
- package/dist/types/analytics.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/projects.d.ts +0 -6
- package/dist/types/projects.d.ts.map +1 -1
- package/dist/types/response-schemas.d.ts +8 -38
- package/dist/types/response-schemas.d.ts.map +1 -1
- package/dist/types/response-schemas.js +9 -7
- package/dist/types/response-schemas.js.map +1 -1
- package/dist/types/runs.d.ts +3 -9
- package/dist/types/runs.d.ts.map +1 -1
- package/dist/types/schemas.d.ts +3 -24
- package/dist/types/schemas.d.ts.map +1 -1
- package/dist/types/schemas.js +2 -4
- package/dist/types/schemas.js.map +1 -1
- package/package.json +4 -4
- package/dist/operations/admin.d.ts +0 -89
- package/dist/operations/admin.d.ts.map +0 -1
- package/dist/operations/admin.js +0 -134
- package/dist/operations/admin.js.map +0 -1
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAyB,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,YAAY,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,WAAW,MAA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AE1D,UAAU,EAAE,CAAC,KAAsB,EAAwB,EAAE,CAC3D,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC;KAElD,CAAC;IAEF,+CAA+C;IAC/C,sBAAsB;IACtB,+CAA+C;IAE/C,2DAA2D;IAClD,QAAQ,GAAG;QAClB,GAAG,EAAE,GAA8B,EAAE,CACnC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;KACnC,CAAC;CAEH"}
|
|
@@ -35,9 +35,9 @@ export declare const ENV_VARS: {
|
|
|
35
35
|
* (node:module) so this module can be imported in browser environments.
|
|
36
36
|
* Keep in sync with package.json "version" field.
|
|
37
37
|
*/
|
|
38
|
-
export declare const SDK_VERSION = "1.4
|
|
38
|
+
export declare const SDK_VERSION = "1.8.4";
|
|
39
39
|
/**
|
|
40
40
|
* User agent string for requests
|
|
41
41
|
*/
|
|
42
|
-
export declare const USER_AGENT = "@uluops/ops-sdk/1.4
|
|
42
|
+
export declare const USER_AGENT = "@uluops/ops-sdk/1.8.4";
|
|
43
43
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/config/constants.js
CHANGED
|
@@ -37,7 +37,7 @@ export const ENV_VARS = {
|
|
|
37
37
|
* (node:module) so this module can be imported in browser environments.
|
|
38
38
|
* Keep in sync with package.json "version" field.
|
|
39
39
|
*/
|
|
40
|
-
export const SDK_VERSION = '1.4
|
|
40
|
+
export const SDK_VERSION = '1.8.4';
|
|
41
41
|
/**
|
|
42
42
|
* User agent string for requests
|
|
43
43
|
*/
|
|
@@ -1,19 +1,52 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Client-side validation error thrown when input fails Zod schema validation.
|
|
4
|
+
*
|
|
5
|
+
* Contains structured error details from Zod for programmatic inspection.
|
|
6
|
+
* Import from `@uluops/ops-sdk/errors` or `@uluops/ops-sdk/config`.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* try {
|
|
11
|
+
* validateSaveRunInput(data);
|
|
12
|
+
* } catch (err) {
|
|
13
|
+
* if (err instanceof InputValidationError) {
|
|
14
|
+
* console.log(err.message); // "Invalid save run: project: String must contain at least 1 character(s)"
|
|
15
|
+
* console.log(err.errors); // Zod issue array with path, code, message per field
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
4
19
|
*/
|
|
5
20
|
export declare class InputValidationError extends Error {
|
|
6
21
|
readonly errors: z.ZodError['issues'];
|
|
7
22
|
constructor(message: string, errors: z.ZodError['issues']);
|
|
8
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Validate user registration input.
|
|
26
|
+
* @param data - Raw input: `{ email: string (valid email, max 255), password: string (8-128 chars, requires uppercase + lowercase + digit) }`
|
|
27
|
+
* @returns Validated `RegisterInput`
|
|
28
|
+
* @throws {InputValidationError} If email is invalid or password doesn't meet requirements
|
|
29
|
+
*/
|
|
9
30
|
export declare function validateRegisterInput(data: unknown): {
|
|
10
31
|
email: string;
|
|
11
32
|
password: string;
|
|
12
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* Validate login input.
|
|
36
|
+
* @param data - Raw input: `{ email: string, password: string }`
|
|
37
|
+
* @returns Validated `LoginInput`
|
|
38
|
+
* @throws {InputValidationError} If email or password is missing
|
|
39
|
+
*/
|
|
13
40
|
export declare function validateLoginInput(data: unknown): {
|
|
14
41
|
email: string;
|
|
15
42
|
password: string;
|
|
16
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Validate profile update input. At least one field must be provided.
|
|
46
|
+
* @param data - Raw input: `{ username?, name?, bio?, timezone?, websiteUrl?, avatar?, avatarMimeType? }`
|
|
47
|
+
* @returns Validated `UpdateProfileInput`
|
|
48
|
+
* @throws {InputValidationError} If no fields provided, or username doesn't match `^[a-z][a-z0-9_]{2,29}$`
|
|
49
|
+
*/
|
|
17
50
|
export declare function validateUpdateProfileInput(data: unknown): {
|
|
18
51
|
username?: string | null | undefined;
|
|
19
52
|
name?: string | null | undefined;
|
|
@@ -23,29 +56,74 @@ export declare function validateUpdateProfileInput(data: unknown): {
|
|
|
23
56
|
avatar?: string | null | undefined;
|
|
24
57
|
avatarMimeType?: "image/png" | "image/jpeg" | "image/gif" | "image/webp" | null | undefined;
|
|
25
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* Validate password change input.
|
|
61
|
+
* @param data - Raw input: `{ currentPassword: string, newPassword: string (8-128, upper+lower+digit) }`
|
|
62
|
+
* @returns Validated `ChangePasswordInput`
|
|
63
|
+
* @throws {InputValidationError} If current password missing or new password doesn't meet requirements
|
|
64
|
+
*/
|
|
26
65
|
export declare function validateChangePasswordInput(data: unknown): {
|
|
27
66
|
currentPassword: string;
|
|
28
67
|
newPassword: string;
|
|
29
68
|
};
|
|
69
|
+
/**
|
|
70
|
+
* Validate password reset input (from reset email).
|
|
71
|
+
* @param data - Raw input: `{ token: string, password: string (8-128, upper+lower+digit) }`
|
|
72
|
+
* @returns Validated `ResetPasswordInput`
|
|
73
|
+
* @throws {InputValidationError} If token missing or password doesn't meet requirements
|
|
74
|
+
*/
|
|
30
75
|
export declare function validateResetPasswordInput(data: unknown): {
|
|
31
76
|
token: string;
|
|
32
77
|
password: string;
|
|
33
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* Validate API key creation input.
|
|
81
|
+
* @param data - Raw input: `{ name?: string (max 100), expiresAt?: string (ISO 8601) }`
|
|
82
|
+
* @returns Validated `CreateApiKeyInput`
|
|
83
|
+
* @throws {InputValidationError} If name exceeds 100 chars or expiresAt is not valid ISO 8601
|
|
84
|
+
*/
|
|
34
85
|
export declare function validateCreateApiKeyInput(data: unknown): {
|
|
35
86
|
name?: string | undefined;
|
|
36
87
|
expiresAt?: string | undefined;
|
|
37
88
|
};
|
|
89
|
+
/**
|
|
90
|
+
* Validate project creation input.
|
|
91
|
+
* @param data - Raw input: `{ name: string (1-200 chars) }`
|
|
92
|
+
* @returns Validated `CreateProjectInput`
|
|
93
|
+
* @throws {InputValidationError} If name is empty or exceeds 200 chars
|
|
94
|
+
*/
|
|
38
95
|
export declare function validateCreateProjectInput(data: unknown): {
|
|
39
96
|
name: string;
|
|
40
97
|
};
|
|
98
|
+
/**
|
|
99
|
+
* Validate project deletion input. Requires explicit confirmation.
|
|
100
|
+
* @param data - Raw input: `{ confirm: true, confirmationPhrase: string }`
|
|
101
|
+
* @returns Validated `DeleteProjectInput`
|
|
102
|
+
* @throws {InputValidationError} If confirm is not `true` or confirmationPhrase is missing
|
|
103
|
+
*/
|
|
41
104
|
export declare function validateDeleteProjectInput(data: unknown): {
|
|
42
105
|
confirm: true;
|
|
43
106
|
confirmationPhrase: string;
|
|
44
107
|
};
|
|
108
|
+
/**
|
|
109
|
+
* Validate project rename input.
|
|
110
|
+
* @param data - Raw input: `{ oldName: string, newName: string (1-200 chars) }`
|
|
111
|
+
* @returns Validated `RenameProjectInput`
|
|
112
|
+
* @throws {InputValidationError} If either name is empty or newName exceeds 200 chars
|
|
113
|
+
*/
|
|
45
114
|
export declare function validateRenameProjectInput(data: unknown): {
|
|
46
115
|
oldName: string;
|
|
47
116
|
newName: string;
|
|
48
117
|
};
|
|
118
|
+
/**
|
|
119
|
+
* Validate save run input. This is the primary validation for `client.runs.save()`.
|
|
120
|
+
* @param data - Raw input with required fields: `project` (1-200), `workflowType` (1-100),
|
|
121
|
+
* `agents` (non-empty array), `recommendations` (array, use `[]` for empty).
|
|
122
|
+
* Optional: `summary`, `rawMarkdown`, `idempotencyKey`, `definitionType/Name/Version/Hash`,
|
|
123
|
+
* `analysisRecords`, `analysisSummary`.
|
|
124
|
+
* @returns Validated `SaveRunInput`
|
|
125
|
+
* @throws {InputValidationError} If required fields missing, agents empty, or field constraints violated
|
|
126
|
+
*/
|
|
49
127
|
export declare function validateSaveRunInput(data: unknown): {
|
|
50
128
|
project: string;
|
|
51
129
|
workflowType: string;
|
|
@@ -64,6 +142,7 @@ export declare function validateSaveRunInput(data: unknown): {
|
|
|
64
142
|
totalEffectiveTokens?: number | undefined;
|
|
65
143
|
} | undefined;
|
|
66
144
|
durationMs?: number | undefined;
|
|
145
|
+
definitionVersion?: string | undefined;
|
|
67
146
|
}[];
|
|
68
147
|
recommendations: {
|
|
69
148
|
agent: string;
|
|
@@ -94,6 +173,7 @@ export declare function validateSaveRunInput(data: unknown): {
|
|
|
94
173
|
definitionName?: string | undefined;
|
|
95
174
|
definitionVersion?: string | undefined;
|
|
96
175
|
definitionHash?: string | undefined;
|
|
176
|
+
definitionId?: string | undefined;
|
|
97
177
|
definitionMinSubscription?: "free" | "hobbyist" | "plus" | "pro" | "enterprise" | undefined;
|
|
98
178
|
analysisRecords?: {
|
|
99
179
|
recordType: string;
|
|
@@ -130,8 +210,13 @@ export declare function validateSaveRunInput(data: unknown): {
|
|
|
130
210
|
auditImplications?: string[] | null | undefined;
|
|
131
211
|
}[] | undefined;
|
|
132
212
|
};
|
|
133
|
-
/**
|
|
134
|
-
|
|
213
|
+
/**
|
|
214
|
+
* Validate archive runs input.
|
|
215
|
+
* @param data - Raw input: `{ project: string }` plus at least one filter:
|
|
216
|
+
* `beforeRunNumber?`, `beforeDate?` (ISO 8601), `keepLast?`, `reason?` (max 500)
|
|
217
|
+
* @returns Validated `ArchiveRunsInput`
|
|
218
|
+
* @throws {InputValidationError} If project missing or filter constraints violated
|
|
219
|
+
*/
|
|
135
220
|
export declare function validateArchiveRunsInput(data: unknown): {
|
|
136
221
|
project: string;
|
|
137
222
|
beforeRunNumber?: number | undefined;
|
|
@@ -139,6 +224,15 @@ export declare function validateArchiveRunsInput(data: unknown): {
|
|
|
139
224
|
keepLast?: number | undefined;
|
|
140
225
|
reason?: string | undefined;
|
|
141
226
|
};
|
|
227
|
+
/**
|
|
228
|
+
* Validate user-submitted issue creation input.
|
|
229
|
+
* @param data - Raw input with required: `project` (1-200), `title` (1-500),
|
|
230
|
+
* `priority` ('critical' | 'high' | 'suggested' | 'backlog').
|
|
231
|
+
* Optional: `severity`, `category`, `description` (max 10000), `filePath`, `lineNumber`,
|
|
232
|
+
* `failureCode` (e.g. 'SEM-VAL/H'), `failureDomain`, `failureMode`, `agent`, `type`.
|
|
233
|
+
* @returns Validated `CreateUserIssueInput`
|
|
234
|
+
* @throws {InputValidationError} If required fields missing or constraints violated
|
|
235
|
+
*/
|
|
142
236
|
export declare function validateCreateUserIssueInput(data: unknown): {
|
|
143
237
|
project: string;
|
|
144
238
|
title: string;
|
|
@@ -154,6 +248,12 @@ export declare function validateCreateUserIssueInput(data: unknown): {
|
|
|
154
248
|
agent?: string | undefined;
|
|
155
249
|
type?: "observation" | "feature" | "bug" | "refactor" | "config" | "docs" | "infra" | "security" | "test" | "deficiency" | "ambiguity" | undefined;
|
|
156
250
|
};
|
|
251
|
+
/**
|
|
252
|
+
* Validate issue metadata update input. All fields optional.
|
|
253
|
+
* @param data - Raw input: `{ title?, status?, priority?, severity?, failureCode?, filePath?, lineNumber?, ... }`
|
|
254
|
+
* @returns Validated `UpdateIssueInput`
|
|
255
|
+
* @throws {InputValidationError} If any provided field violates its constraints
|
|
256
|
+
*/
|
|
157
257
|
export declare function validateUpdateIssueInput(data: unknown): {
|
|
158
258
|
title?: string | undefined;
|
|
159
259
|
status?: "open" | "completed" | "deferred" | "wontfix" | "merged" | "false-positive" | "observation" | undefined;
|
|
@@ -167,15 +267,33 @@ export declare function validateUpdateIssueInput(data: unknown): {
|
|
|
167
267
|
filePath?: string | null | undefined;
|
|
168
268
|
lineNumber?: number | null | undefined;
|
|
169
269
|
};
|
|
270
|
+
/**
|
|
271
|
+
* Validate issue status update input.
|
|
272
|
+
* @param data - Raw input: `{ status: Status, reason?: string (max 500) }`
|
|
273
|
+
* @returns Validated `UpdateIssueStatusInput`
|
|
274
|
+
* @throws {InputValidationError} If status is not a valid Status enum value
|
|
275
|
+
*/
|
|
170
276
|
export declare function validateUpdateIssueStatusInput(data: unknown): {
|
|
171
277
|
status: "open" | "completed" | "deferred" | "wontfix" | "merged" | "false-positive" | "observation";
|
|
172
278
|
reason?: string | undefined;
|
|
173
279
|
};
|
|
280
|
+
/**
|
|
281
|
+
* Validate issue note creation input.
|
|
282
|
+
* @param data - Raw input: `{ content: string (1-10000), noteType?: NoteType, createdBy?: string }`
|
|
283
|
+
* @returns Validated `CreateIssueNoteInput`
|
|
284
|
+
* @throws {InputValidationError} If content is empty or exceeds 10000 chars
|
|
285
|
+
*/
|
|
174
286
|
export declare function validateCreateIssueNoteInput(data: unknown): {
|
|
175
287
|
content: string;
|
|
176
288
|
noteType?: "context" | "resolution" | "blocker" | undefined;
|
|
177
289
|
createdBy?: string | undefined;
|
|
178
290
|
};
|
|
291
|
+
/**
|
|
292
|
+
* Validate bulk issue status update input. Max 100 items per request.
|
|
293
|
+
* @param data - Raw input: `{ updates: Array<{ issueId?: string, id?: string, status: Status, reason?: string }> }`
|
|
294
|
+
* @returns Validated bulk update input
|
|
295
|
+
* @throws {InputValidationError} If updates array is empty, exceeds 100 items, or any item has invalid status
|
|
296
|
+
*/
|
|
179
297
|
export declare function validateBulkStatusUpdateInput(data: unknown): {
|
|
180
298
|
updates: {
|
|
181
299
|
status: "open" | "completed" | "deferred" | "wontfix" | "merged" | "false-positive" | "observation";
|
|
@@ -184,7 +302,27 @@ export declare function validateBulkStatusUpdateInput(data: unknown): {
|
|
|
184
302
|
reason?: string | undefined;
|
|
185
303
|
}[];
|
|
186
304
|
};
|
|
305
|
+
/**
|
|
306
|
+
* Validate that a string is a valid UUID v1-5.
|
|
307
|
+
* @param value - The string to validate
|
|
308
|
+
* @param fieldName - Field name for error messages (e.g. 'projectId', 'issueId')
|
|
309
|
+
* @throws {InputValidationError} If value is not a valid UUID format
|
|
310
|
+
*/
|
|
187
311
|
export declare function validateUuid(value: string, fieldName: string): void;
|
|
312
|
+
/**
|
|
313
|
+
* Validate that a value is a non-empty string after trimming.
|
|
314
|
+
* @param value - The value to validate
|
|
315
|
+
* @param fieldName - Field name for error messages
|
|
316
|
+
* @returns The trimmed string
|
|
317
|
+
* @throws {InputValidationError} If value is not a string or is empty after trimming
|
|
318
|
+
*/
|
|
188
319
|
export declare function validateRequiredString(value: unknown, fieldName: string): string;
|
|
320
|
+
/**
|
|
321
|
+
* Validate that a value is a positive integer (> 0).
|
|
322
|
+
* @param value - The value to validate (coerced via `Number()`)
|
|
323
|
+
* @param fieldName - Field name for error messages
|
|
324
|
+
* @returns The validated number
|
|
325
|
+
* @throws {InputValidationError} If value is not a positive integer
|
|
326
|
+
*/
|
|
189
327
|
export declare function validatePositiveInt(value: unknown, fieldName: string): number;
|
|
190
328
|
//# sourceMappingURL=validators.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/config/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB
|
|
1
|
+
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/config/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,oBAAqB,SAAQ,KAAK;aAG3B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;gBAD5C,OAAO,EAAE,MAAM,EACC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;CAK/C;AA2BD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,OAAO;;;EAElD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO;;;EAE/C;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,OAAO;;;;;;;;EAEvD;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,OAAO;;;EAExD;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,OAAO;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,MAAM,CAM7E"}
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import { CreateProjectInputSchema, SaveRunInputSchema, CreateUserIssueInputSchema, UpdateIssueStatusInputSchema, CreateIssueNoteInputSchema, ArchiveRunsInputSchema, RegisterInputSchema, LoginInputSchema, UpdateProfileInputSchema, ChangePasswordInputSchema, ResetPasswordInputSchema, CreateApiKeyInputSchema, BulkStatusUpdateInputSchema, DeleteProjectInputSchema, RenameProjectInputSchema, UpdateIssueInputSchema, } from '../types/schemas.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Client-side validation error thrown when input fails Zod schema validation.
|
|
4
|
+
*
|
|
5
|
+
* Contains structured error details from Zod for programmatic inspection.
|
|
6
|
+
* Import from `@uluops/ops-sdk/errors` or `@uluops/ops-sdk/config`.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* try {
|
|
11
|
+
* validateSaveRunInput(data);
|
|
12
|
+
* } catch (err) {
|
|
13
|
+
* if (err instanceof InputValidationError) {
|
|
14
|
+
* console.log(err.message); // "Invalid save run: project: String must contain at least 1 character(s)"
|
|
15
|
+
* console.log(err.errors); // Zod issue array with path, code, message per field
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
4
19
|
*/
|
|
5
20
|
export class InputValidationError extends Error {
|
|
6
21
|
errors;
|
|
@@ -11,7 +26,7 @@ export class InputValidationError extends Error {
|
|
|
11
26
|
}
|
|
12
27
|
}
|
|
13
28
|
/**
|
|
14
|
-
*
|
|
29
|
+
* Format a single Zod issue into a human-readable string.
|
|
15
30
|
*/
|
|
16
31
|
function formatZodIssue(e) {
|
|
17
32
|
const field = e.path.join('.') || '(root)';
|
|
@@ -32,80 +47,205 @@ function validate(schema, data, context) {
|
|
|
32
47
|
// ============================================
|
|
33
48
|
// AUTH VALIDATORS
|
|
34
49
|
// ============================================
|
|
50
|
+
/**
|
|
51
|
+
* Validate user registration input.
|
|
52
|
+
* @param data - Raw input: `{ email: string (valid email, max 255), password: string (8-128 chars, requires uppercase + lowercase + digit) }`
|
|
53
|
+
* @returns Validated `RegisterInput`
|
|
54
|
+
* @throws {InputValidationError} If email is invalid or password doesn't meet requirements
|
|
55
|
+
*/
|
|
35
56
|
export function validateRegisterInput(data) {
|
|
36
57
|
return validate(RegisterInputSchema, data, 'register input');
|
|
37
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Validate login input.
|
|
61
|
+
* @param data - Raw input: `{ email: string, password: string }`
|
|
62
|
+
* @returns Validated `LoginInput`
|
|
63
|
+
* @throws {InputValidationError} If email or password is missing
|
|
64
|
+
*/
|
|
38
65
|
export function validateLoginInput(data) {
|
|
39
66
|
return validate(LoginInputSchema, data, 'login input');
|
|
40
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Validate profile update input. At least one field must be provided.
|
|
70
|
+
* @param data - Raw input: `{ username?, name?, bio?, timezone?, websiteUrl?, avatar?, avatarMimeType? }`
|
|
71
|
+
* @returns Validated `UpdateProfileInput`
|
|
72
|
+
* @throws {InputValidationError} If no fields provided, or username doesn't match `^[a-z][a-z0-9_]{2,29}$`
|
|
73
|
+
*/
|
|
41
74
|
export function validateUpdateProfileInput(data) {
|
|
42
75
|
return validate(UpdateProfileInputSchema, data, 'profile update');
|
|
43
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Validate password change input.
|
|
79
|
+
* @param data - Raw input: `{ currentPassword: string, newPassword: string (8-128, upper+lower+digit) }`
|
|
80
|
+
* @returns Validated `ChangePasswordInput`
|
|
81
|
+
* @throws {InputValidationError} If current password missing or new password doesn't meet requirements
|
|
82
|
+
*/
|
|
44
83
|
export function validateChangePasswordInput(data) {
|
|
45
84
|
return validate(ChangePasswordInputSchema, data, 'password change');
|
|
46
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Validate password reset input (from reset email).
|
|
88
|
+
* @param data - Raw input: `{ token: string, password: string (8-128, upper+lower+digit) }`
|
|
89
|
+
* @returns Validated `ResetPasswordInput`
|
|
90
|
+
* @throws {InputValidationError} If token missing or password doesn't meet requirements
|
|
91
|
+
*/
|
|
47
92
|
export function validateResetPasswordInput(data) {
|
|
48
93
|
return validate(ResetPasswordInputSchema, data, 'password reset');
|
|
49
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* Validate API key creation input.
|
|
97
|
+
* @param data - Raw input: `{ name?: string (max 100), expiresAt?: string (ISO 8601) }`
|
|
98
|
+
* @returns Validated `CreateApiKeyInput`
|
|
99
|
+
* @throws {InputValidationError} If name exceeds 100 chars or expiresAt is not valid ISO 8601
|
|
100
|
+
*/
|
|
50
101
|
export function validateCreateApiKeyInput(data) {
|
|
51
102
|
return validate(CreateApiKeyInputSchema, data, 'API key creation');
|
|
52
103
|
}
|
|
53
104
|
// ============================================
|
|
54
105
|
// PROJECT VALIDATORS
|
|
55
106
|
// ============================================
|
|
107
|
+
/**
|
|
108
|
+
* Validate project creation input.
|
|
109
|
+
* @param data - Raw input: `{ name: string (1-200 chars) }`
|
|
110
|
+
* @returns Validated `CreateProjectInput`
|
|
111
|
+
* @throws {InputValidationError} If name is empty or exceeds 200 chars
|
|
112
|
+
*/
|
|
56
113
|
export function validateCreateProjectInput(data) {
|
|
57
114
|
return validate(CreateProjectInputSchema, data, 'project creation');
|
|
58
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Validate project deletion input. Requires explicit confirmation.
|
|
118
|
+
* @param data - Raw input: `{ confirm: true, confirmationPhrase: string }`
|
|
119
|
+
* @returns Validated `DeleteProjectInput`
|
|
120
|
+
* @throws {InputValidationError} If confirm is not `true` or confirmationPhrase is missing
|
|
121
|
+
*/
|
|
59
122
|
export function validateDeleteProjectInput(data) {
|
|
60
123
|
return validate(DeleteProjectInputSchema, data, 'project deletion');
|
|
61
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Validate project rename input.
|
|
127
|
+
* @param data - Raw input: `{ oldName: string, newName: string (1-200 chars) }`
|
|
128
|
+
* @returns Validated `RenameProjectInput`
|
|
129
|
+
* @throws {InputValidationError} If either name is empty or newName exceeds 200 chars
|
|
130
|
+
*/
|
|
62
131
|
export function validateRenameProjectInput(data) {
|
|
63
132
|
return validate(RenameProjectInputSchema, data, 'project rename');
|
|
64
133
|
}
|
|
65
134
|
// ============================================
|
|
66
135
|
// RUN VALIDATORS
|
|
67
136
|
// ============================================
|
|
137
|
+
/**
|
|
138
|
+
* Validate save run input. This is the primary validation for `client.runs.save()`.
|
|
139
|
+
* @param data - Raw input with required fields: `project` (1-200), `workflowType` (1-100),
|
|
140
|
+
* `agents` (non-empty array), `recommendations` (array, use `[]` for empty).
|
|
141
|
+
* Optional: `summary`, `rawMarkdown`, `idempotencyKey`, `definitionType/Name/Version/Hash`,
|
|
142
|
+
* `analysisRecords`, `analysisSummary`.
|
|
143
|
+
* @returns Validated `SaveRunInput`
|
|
144
|
+
* @throws {InputValidationError} If required fields missing, agents empty, or field constraints violated
|
|
145
|
+
*/
|
|
68
146
|
export function validateSaveRunInput(data) {
|
|
69
147
|
return validate(SaveRunInputSchema, data, 'save run');
|
|
70
148
|
}
|
|
71
|
-
/**
|
|
72
|
-
|
|
149
|
+
/**
|
|
150
|
+
* Validate archive runs input.
|
|
151
|
+
* @param data - Raw input: `{ project: string }` plus at least one filter:
|
|
152
|
+
* `beforeRunNumber?`, `beforeDate?` (ISO 8601), `keepLast?`, `reason?` (max 500)
|
|
153
|
+
* @returns Validated `ArchiveRunsInput`
|
|
154
|
+
* @throws {InputValidationError} If project missing or filter constraints violated
|
|
155
|
+
*/
|
|
73
156
|
export function validateArchiveRunsInput(data) {
|
|
74
157
|
return validate(ArchiveRunsInputSchema, data, 'archive runs');
|
|
75
158
|
}
|
|
76
159
|
// ============================================
|
|
77
160
|
// ISSUE VALIDATORS
|
|
78
161
|
// ============================================
|
|
162
|
+
/**
|
|
163
|
+
* Validate user-submitted issue creation input.
|
|
164
|
+
* @param data - Raw input with required: `project` (1-200), `title` (1-500),
|
|
165
|
+
* `priority` ('critical' | 'high' | 'suggested' | 'backlog').
|
|
166
|
+
* Optional: `severity`, `category`, `description` (max 10000), `filePath`, `lineNumber`,
|
|
167
|
+
* `failureCode` (e.g. 'SEM-VAL/H'), `failureDomain`, `failureMode`, `agent`, `type`.
|
|
168
|
+
* @returns Validated `CreateUserIssueInput`
|
|
169
|
+
* @throws {InputValidationError} If required fields missing or constraints violated
|
|
170
|
+
*/
|
|
79
171
|
export function validateCreateUserIssueInput(data) {
|
|
80
172
|
return validate(CreateUserIssueInputSchema, data, 'issue creation');
|
|
81
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* Validate issue metadata update input. All fields optional.
|
|
176
|
+
* @param data - Raw input: `{ title?, status?, priority?, severity?, failureCode?, filePath?, lineNumber?, ... }`
|
|
177
|
+
* @returns Validated `UpdateIssueInput`
|
|
178
|
+
* @throws {InputValidationError} If any provided field violates its constraints
|
|
179
|
+
*/
|
|
82
180
|
export function validateUpdateIssueInput(data) {
|
|
83
181
|
return validate(UpdateIssueInputSchema, data, 'issue update');
|
|
84
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* Validate issue status update input.
|
|
185
|
+
* @param data - Raw input: `{ status: Status, reason?: string (max 500) }`
|
|
186
|
+
* @returns Validated `UpdateIssueStatusInput`
|
|
187
|
+
* @throws {InputValidationError} If status is not a valid Status enum value
|
|
188
|
+
*/
|
|
85
189
|
export function validateUpdateIssueStatusInput(data) {
|
|
86
190
|
return validate(UpdateIssueStatusInputSchema, data, 'status update');
|
|
87
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* Validate issue note creation input.
|
|
194
|
+
* @param data - Raw input: `{ content: string (1-10000), noteType?: NoteType, createdBy?: string }`
|
|
195
|
+
* @returns Validated `CreateIssueNoteInput`
|
|
196
|
+
* @throws {InputValidationError} If content is empty or exceeds 10000 chars
|
|
197
|
+
*/
|
|
88
198
|
export function validateCreateIssueNoteInput(data) {
|
|
89
199
|
return validate(CreateIssueNoteInputSchema, data, 'issue note');
|
|
90
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* Validate bulk issue status update input. Max 100 items per request.
|
|
203
|
+
* @param data - Raw input: `{ updates: Array<{ issueId?: string, id?: string, status: Status, reason?: string }> }`
|
|
204
|
+
* @returns Validated bulk update input
|
|
205
|
+
* @throws {InputValidationError} If updates array is empty, exceeds 100 items, or any item has invalid status
|
|
206
|
+
*/
|
|
91
207
|
export function validateBulkStatusUpdateInput(data) {
|
|
92
208
|
return validate(BulkStatusUpdateInputSchema, data, 'bulk status update');
|
|
93
209
|
}
|
|
94
210
|
// ============================================
|
|
95
211
|
// SIMPLE VALIDATORS
|
|
96
212
|
// ============================================
|
|
213
|
+
/**
|
|
214
|
+
* Validate that a string is a valid UUID v1-5.
|
|
215
|
+
* @param value - The string to validate
|
|
216
|
+
* @param fieldName - Field name for error messages (e.g. 'projectId', 'issueId')
|
|
217
|
+
* @throws {InputValidationError} If value is not a valid UUID format
|
|
218
|
+
*/
|
|
97
219
|
export function validateUuid(value, fieldName) {
|
|
98
220
|
const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
99
221
|
if (!uuidRegex.test(value)) {
|
|
100
|
-
throw new InputValidationError(`Invalid ${fieldName}: must be a valid UUID`, [
|
|
222
|
+
throw new InputValidationError(`Invalid ${fieldName}: must be a valid UUID`, [
|
|
223
|
+
{ code: 'custom', path: [fieldName], message: 'must be a valid UUID' }
|
|
224
|
+
]);
|
|
101
225
|
}
|
|
102
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* Validate that a value is a non-empty string after trimming.
|
|
229
|
+
* @param value - The value to validate
|
|
230
|
+
* @param fieldName - Field name for error messages
|
|
231
|
+
* @returns The trimmed string
|
|
232
|
+
* @throws {InputValidationError} If value is not a string or is empty after trimming
|
|
233
|
+
*/
|
|
103
234
|
export function validateRequiredString(value, fieldName) {
|
|
104
235
|
if (typeof value !== 'string' || value.trim().length === 0) {
|
|
105
|
-
throw new InputValidationError(`${fieldName} is required`, [
|
|
236
|
+
throw new InputValidationError(`${fieldName} is required`, [
|
|
237
|
+
{ code: 'custom', path: [fieldName], message: 'is required' }
|
|
238
|
+
]);
|
|
106
239
|
}
|
|
107
240
|
return value.trim();
|
|
108
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* Validate that a value is a positive integer (> 0).
|
|
244
|
+
* @param value - The value to validate (coerced via `Number()`)
|
|
245
|
+
* @param fieldName - Field name for error messages
|
|
246
|
+
* @returns The validated number
|
|
247
|
+
* @throws {InputValidationError} If value is not a positive integer
|
|
248
|
+
*/
|
|
109
249
|
export function validatePositiveInt(value, fieldName) {
|
|
110
250
|
const num = Number(value);
|
|
111
251
|
if (!Number.isInteger(num) || num <= 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.js","sourceRoot":"","sources":["../../src/config/validators.ts"],"names":[],"mappings":"AACA,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAE7B
|
|
1
|
+
{"version":3,"file":"validators.js","sourceRoot":"","sources":["../../src/config/validators.ts"],"names":[],"mappings":"AACA,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;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AM,SAAS,GAAG,4EAA4E,CAAC;IAC/F,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC3B,MAAM,IAAI,oBAAoB,CAAC,WAAW,SAAS,wBAAwB,EAAE;YAC3E,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,sBAAsB,EAAE;SACvE,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAc,EAAE,SAAiB;IACtE,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3D,MAAM,IAAI,oBAAoB,CAAC,GAAG,SAAS,cAAc,EAAE;YACzD,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE;SAC9D,CAAC,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC;AACtB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAc,EAAE,SAAiB;IACnE,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1B,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,oBAAoB,CAAC,GAAG,SAAS,6BAA6B,EAAE,EAAE,CAAC,CAAC;IAChF,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/dist/errors/errors.d.ts
CHANGED
|
@@ -4,4 +4,5 @@
|
|
|
4
4
|
* OpsApiError is an alias for SdkApiError to preserve the public API.
|
|
5
5
|
*/
|
|
6
6
|
export { SdkApiError as OpsApiError, ValidationError, UnauthorizedError, ForbiddenError, NotFoundError, ConflictError, PayloadTooLargeError, UnprocessableError, RateLimitError, ServiceUnavailableError, NetworkError, TimeoutError, createErrorFromStatus, isSdkApiError as isOpsApiError, isValidationError, isNotFoundError, isConflictError, isUnprocessableError, isRateLimitError, isUnauthorizedError, isForbiddenError, isPayloadTooLargeError, isServiceUnavailableError, isNetworkError, isTimeoutError, } from '@uluops/sdk-core/errors';
|
|
7
|
+
export { InputValidationError } from '../config/validators.js';
|
|
7
8
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,aAAa,IAAI,aAAa,EAC9B,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,EACzB,cAAc,EACd,cAAc,GACf,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,aAAa,IAAI,aAAa,EAC9B,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,EACzB,cAAc,EACd,cAAc,GACf,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC"}
|
package/dist/errors/errors.js
CHANGED
|
@@ -4,4 +4,6 @@
|
|
|
4
4
|
* OpsApiError is an alias for SdkApiError to preserve the public API.
|
|
5
5
|
*/
|
|
6
6
|
export { SdkApiError as OpsApiError, ValidationError, UnauthorizedError, ForbiddenError, NotFoundError, ConflictError, PayloadTooLargeError, UnprocessableError, RateLimitError, ServiceUnavailableError, NetworkError, TimeoutError, createErrorFromStatus, isSdkApiError as isOpsApiError, isValidationError, isNotFoundError, isConflictError, isUnprocessableError, isRateLimitError, isUnauthorizedError, isForbiddenError, isPayloadTooLargeError, isServiceUnavailableError, isNetworkError, isTimeoutError, } from '@uluops/sdk-core/errors';
|
|
7
|
+
// SDK-specific errors
|
|
8
|
+
export { InputValidationError } from '../config/validators.js';
|
|
7
9
|
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,aAAa,IAAI,aAAa,EAC9B,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,EACzB,cAAc,EACd,cAAc,GACf,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,aAAa,IAAI,aAAa,EAC9B,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,EACzB,cAAc,EACd,cAAc,GACf,MAAM,yBAAyB,CAAC;AAEjC,sBAAsB;AACtB,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC"}
|