@archastro/sdk 0.15.0 → 0.16.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/client.d.ts +4 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +5 -1
- package/dist/client.js.map +1 -1
- package/dist/effective-access.d.ts +34 -0
- package/dist/effective-access.d.ts.map +1 -0
- package/dist/effective-access.js +51 -0
- package/dist/effective-access.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/types/ai.d.ts +109 -109
- package/dist/types/ai.js +10 -10
- package/dist/types/ai.js.map +1 -1
- package/dist/types/automations.d.ts +15 -15
- package/dist/types/automations.js +6 -6
- package/dist/types/automations.js.map +1 -1
- package/dist/types/chat.d.ts +2520 -2520
- package/dist/types/chat.js +3 -3
- package/dist/types/chat.js.map +1 -1
- package/dist/types/common.d.ts +2545 -3272
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +204 -228
- package/dist/types/common.js.map +1 -1
- package/dist/types/config.d.ts +11 -11
- package/dist/types/config.js +3 -3
- package/dist/types/config.js.map +1 -1
- package/dist/types/events.d.ts +810 -0
- package/dist/types/events.d.ts.map +1 -0
- package/dist/types/events.js +77 -0
- package/dist/types/events.js.map +1 -0
- package/dist/types/expressions.d.ts +66 -0
- package/dist/types/expressions.d.ts.map +1 -0
- package/dist/types/expressions.js +27 -0
- package/dist/types/expressions.js.map +1 -0
- package/dist/types/extractions.d.ts +3 -3
- package/dist/types/extractions.js +2 -2
- package/dist/types/extractions.js.map +1 -1
- package/dist/types/graph.d.ts +34 -0
- package/dist/types/graph.d.ts.map +1 -0
- package/dist/types/graph.js +16 -0
- package/dist/types/graph.js.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +6 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/notifications.d.ts +3 -3
- package/dist/types/notifications.js +2 -2
- package/dist/types/notifications.js.map +1 -1
- package/dist/types/oauth.d.ts +5 -5
- package/dist/types/scripts.d.ts +800 -0
- package/dist/types/scripts.d.ts.map +1 -0
- package/dist/types/scripts.js +112 -0
- package/dist/types/scripts.js.map +1 -0
- package/dist/types/status.d.ts +8 -8
- package/dist/types/status.js +2 -2
- package/dist/types/status.js.map +1 -1
- package/dist/types/tasks.d.ts +6 -6
- package/dist/types/tasks.js +3 -3
- package/dist/types/tasks.js.map +1 -1
- package/dist/types/teams.d.ts +334 -334
- package/dist/types/teams.js +5 -5
- package/dist/types/teams.js.map +1 -1
- package/dist/types/threads.d.ts +209 -209
- package/dist/types/threads.js +6 -6
- package/dist/types/threads.js.map +1 -1
- package/dist/types/users.d.ts +6 -6
- package/dist/types/users.js +3 -3
- package/dist/types/users.js.map +1 -1
- package/dist/types/workflows.d.ts +544 -0
- package/dist/types/workflows.d.ts.map +1 -0
- package/dist/types/workflows.js +91 -0
- package/dist/types/workflows.js.map +1 -0
- package/dist/v1/resources/agents.d.ts +4 -3
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +1 -1
- package/dist/v1/resources/agents.js.map +1 -1
- package/dist/v1/resources/ai.d.ts +2 -2
- package/dist/v1/resources/ai.d.ts.map +1 -1
- package/dist/v1/resources/ai.js +1 -1
- package/dist/v1/resources/event_subscriptions.d.ts +1 -1
- package/dist/v1/resources/event_subscriptions.js +1 -1
- package/dist/v1/resources/index.d.ts +2 -0
- package/dist/v1/resources/index.d.ts.map +1 -1
- package/dist/v1/resources/index.js +3 -1
- package/dist/v1/resources/index.js.map +1 -1
- package/dist/v1/resources/scripts.d.ts +117 -0
- package/dist/v1/resources/scripts.d.ts.map +1 -0
- package/dist/v1/resources/scripts.js +116 -0
- package/dist/v1/resources/scripts.js.map +1 -0
- package/dist/v1/resources/users.d.ts +8 -3
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +9 -3
- package/dist/v1/resources/users.js.map +1 -1
- package/dist/v1/resources/work_items.d.ts +1 -1
- package/dist/v1/resources/work_items.d.ts.map +1 -1
- package/dist/v1/resources/work_items.js +1 -1
- package/dist/v1/resources/workflows.d.ts +205 -0
- package/dist/v1/resources/workflows.d.ts.map +1 -0
- package/dist/v1/resources/workflows.js +205 -0
- package/dist/v1/resources/workflows.js.map +1 -0
- package/dist/v1.d.ts +4 -0
- package/dist/v1.d.ts.map +1 -1
- package/dist/v1.js +7 -1
- package/dist/v1.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,800 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Schema for ArchAstro script editor metadata */
|
|
3
|
+
export interface ScriptLanguageSpec {
|
|
4
|
+
/** Builtin function docs */
|
|
5
|
+
builtins: Record<string, unknown>[];
|
|
6
|
+
/** Language keywords */
|
|
7
|
+
keywords: string[];
|
|
8
|
+
/** Monaco language identifier */
|
|
9
|
+
languageId: string;
|
|
10
|
+
/** Importable namespace docs */
|
|
11
|
+
namespaces: Record<string, unknown>[];
|
|
12
|
+
/** Language operators */
|
|
13
|
+
operators: string[];
|
|
14
|
+
/** Names that cannot be rebound */
|
|
15
|
+
reservedNames?: string[] | undefined;
|
|
16
|
+
/** Editor snippet templates */
|
|
17
|
+
snippets?: Record<string, unknown>[] | undefined;
|
|
18
|
+
/** Special symbols such as JSONPath root/current */
|
|
19
|
+
specialIdentifiers?: Record<string, unknown>[] | undefined;
|
|
20
|
+
/** Named type definitions (event interfaces, etc.) with fields */
|
|
21
|
+
typeDefinitions?: Record<string, unknown>[] | undefined;
|
|
22
|
+
/** Type-system primitives, generics, annotations, inference, and runtime-check guidance */
|
|
23
|
+
typeSystem?: Record<string, unknown> | undefined;
|
|
24
|
+
/** Schema version */
|
|
25
|
+
version: number;
|
|
26
|
+
}
|
|
27
|
+
/** Runtime validator for {@link ScriptLanguageSpec}. */
|
|
28
|
+
export declare const scriptLanguageSpecSchema: z.ZodObject<{
|
|
29
|
+
/** Builtin function docs */
|
|
30
|
+
builtins: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>, "many">;
|
|
31
|
+
/** Language keywords */
|
|
32
|
+
keywords: z.ZodArray<z.ZodString, "many">;
|
|
33
|
+
/** Monaco language identifier */
|
|
34
|
+
languageId: z.ZodString;
|
|
35
|
+
/** Importable namespace docs */
|
|
36
|
+
namespaces: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>, "many">;
|
|
37
|
+
/** Language operators */
|
|
38
|
+
operators: z.ZodArray<z.ZodString, "many">;
|
|
39
|
+
/** Names that cannot be rebound */
|
|
40
|
+
reservedNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
41
|
+
/** Editor snippet templates */
|
|
42
|
+
snippets: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>, "many">>;
|
|
43
|
+
/** Special symbols such as JSONPath root/current */
|
|
44
|
+
specialIdentifiers: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>, "many">>;
|
|
45
|
+
/** Named type definitions (event interfaces, etc.) with fields */
|
|
46
|
+
typeDefinitions: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>, "many">>;
|
|
47
|
+
/** Type-system primitives, generics, annotations, inference, and runtime-check guidance */
|
|
48
|
+
typeSystem: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
|
|
49
|
+
/** Schema version */
|
|
50
|
+
version: z.ZodNumber;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
version: number;
|
|
53
|
+
builtins: Record<string, {} | null>[];
|
|
54
|
+
keywords: string[];
|
|
55
|
+
languageId: string;
|
|
56
|
+
namespaces: Record<string, {} | null>[];
|
|
57
|
+
operators: string[];
|
|
58
|
+
reservedNames?: string[] | undefined;
|
|
59
|
+
snippets?: Record<string, {} | null>[] | undefined;
|
|
60
|
+
specialIdentifiers?: Record<string, {} | null>[] | undefined;
|
|
61
|
+
typeDefinitions?: Record<string, {} | null>[] | undefined;
|
|
62
|
+
typeSystem?: Record<string, {} | null> | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
version: number;
|
|
65
|
+
builtins: Record<string, {} | null>[];
|
|
66
|
+
keywords: string[];
|
|
67
|
+
languageId: string;
|
|
68
|
+
namespaces: Record<string, {} | null>[];
|
|
69
|
+
operators: string[];
|
|
70
|
+
reservedNames?: string[] | undefined;
|
|
71
|
+
snippets?: Record<string, {} | null>[] | undefined;
|
|
72
|
+
specialIdentifiers?: Record<string, {} | null>[] | undefined;
|
|
73
|
+
typeDefinitions?: Record<string, {} | null>[] | undefined;
|
|
74
|
+
typeSystem?: Record<string, {} | null> | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
/** Schema for the result of executing a script in the editor */
|
|
77
|
+
export interface ScriptRunResult {
|
|
78
|
+
/** Error message when script execution failed */
|
|
79
|
+
error?: string | undefined;
|
|
80
|
+
/** Structured diagnostics with position info for editor markers (severity, message, line, column, end_line, end_column) */
|
|
81
|
+
findings?: Record<string, unknown>[] | undefined;
|
|
82
|
+
/** Output lines from println calls, each with :line (source line number), :text, and optional :values */
|
|
83
|
+
output?: Record<string, unknown>[] | undefined;
|
|
84
|
+
/** The evaluated JSON-safe result (null when execution failed) */
|
|
85
|
+
result?: unknown | undefined;
|
|
86
|
+
}
|
|
87
|
+
/** Runtime validator for {@link ScriptRunResult}. */
|
|
88
|
+
export declare const scriptRunResultSchema: z.ZodObject<{
|
|
89
|
+
/** Error message when script execution failed */
|
|
90
|
+
error: z.ZodOptional<z.ZodString>;
|
|
91
|
+
/** Structured diagnostics with position info for editor markers (severity, message, line, column, end_line, end_column) */
|
|
92
|
+
findings: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>, "many">>;
|
|
93
|
+
/** Output lines from println calls, each with :line (source line number), :text, and optional :values */
|
|
94
|
+
output: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>, "many">>;
|
|
95
|
+
/** The evaluated JSON-safe result (null when execution failed) */
|
|
96
|
+
result: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
error?: string | undefined;
|
|
99
|
+
result?: {} | null | undefined;
|
|
100
|
+
output?: Record<string, {} | null>[] | undefined;
|
|
101
|
+
findings?: Record<string, {} | null>[] | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
error?: string | undefined;
|
|
104
|
+
result?: {} | null | undefined;
|
|
105
|
+
output?: Record<string, {} | null>[] | undefined;
|
|
106
|
+
findings?: Record<string, {} | null>[] | undefined;
|
|
107
|
+
}>;
|
|
108
|
+
/**
|
|
109
|
+
* One `test.expect(...).<matcher>` call from a ScriptTest run.
|
|
110
|
+
* Matchers never raise (the script language has no exceptions) — each call
|
|
111
|
+
* emits a structured assertion entry that the test runner harvests into the
|
|
112
|
+
* per-test report. Pass/fail is captured on `:pass`; `:expected` and
|
|
113
|
+
* `:actual` carry the matcher's inputs for diff rendering.
|
|
114
|
+
*/
|
|
115
|
+
export interface ScriptTestAssertion {
|
|
116
|
+
/** Actual value the matcher was called with — any JSON-safe value */
|
|
117
|
+
actual?: unknown | undefined;
|
|
118
|
+
/** Outer-to-inner describe path when the assertion fired */
|
|
119
|
+
describe?: string[] | undefined;
|
|
120
|
+
/** Expected value (or arguments to the matcher) — any JSON-safe value: scalar, map, or list */
|
|
121
|
+
expected?: unknown | undefined;
|
|
122
|
+
/** Name of the enclosing `test.it(...)` block */
|
|
123
|
+
it?: string | undefined;
|
|
124
|
+
/** Output entry kind, always `"assertion"` for this schema */
|
|
125
|
+
kind?: string | undefined;
|
|
126
|
+
/** Source line of the `expect(...)` call */
|
|
127
|
+
line?: number | undefined;
|
|
128
|
+
/** Matcher name (toEqual, toBe, toBeOk, toBeError, toContain, toMatch, toHaveLength) */
|
|
129
|
+
matcher?: string | undefined;
|
|
130
|
+
/** True when the matcher succeeded */
|
|
131
|
+
pass: boolean;
|
|
132
|
+
}
|
|
133
|
+
/** Runtime validator for {@link ScriptTestAssertion}. */
|
|
134
|
+
export declare const scriptTestAssertionSchema: z.ZodObject<{
|
|
135
|
+
/** Actual value the matcher was called with — any JSON-safe value */
|
|
136
|
+
actual: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
137
|
+
/** Outer-to-inner describe path when the assertion fired */
|
|
138
|
+
describe: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
139
|
+
/** Expected value (or arguments to the matcher) — any JSON-safe value: scalar, map, or list */
|
|
140
|
+
expected: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
141
|
+
/** Name of the enclosing `test.it(...)` block */
|
|
142
|
+
it: z.ZodOptional<z.ZodString>;
|
|
143
|
+
/** Output entry kind, always `"assertion"` for this schema */
|
|
144
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
145
|
+
/** Source line of the `expect(...)` call */
|
|
146
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
147
|
+
/** Matcher name (toEqual, toBe, toBeOk, toBeError, toContain, toMatch, toHaveLength) */
|
|
148
|
+
matcher: z.ZodOptional<z.ZodString>;
|
|
149
|
+
/** True when the matcher succeeded */
|
|
150
|
+
pass: z.ZodBoolean;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
pass: boolean;
|
|
153
|
+
kind?: string | undefined;
|
|
154
|
+
expected?: {} | null | undefined;
|
|
155
|
+
actual?: {} | null | undefined;
|
|
156
|
+
describe?: string[] | undefined;
|
|
157
|
+
it?: string | undefined;
|
|
158
|
+
line?: number | undefined;
|
|
159
|
+
matcher?: string | undefined;
|
|
160
|
+
}, {
|
|
161
|
+
pass: boolean;
|
|
162
|
+
kind?: string | undefined;
|
|
163
|
+
expected?: {} | null | undefined;
|
|
164
|
+
actual?: {} | null | undefined;
|
|
165
|
+
describe?: string[] | undefined;
|
|
166
|
+
it?: string | undefined;
|
|
167
|
+
line?: number | undefined;
|
|
168
|
+
matcher?: string | undefined;
|
|
169
|
+
}>;
|
|
170
|
+
/**
|
|
171
|
+
* One `test.it(...)` block from a ScriptTest run.
|
|
172
|
+
* Built by the harvester from the raw output entries — pairs the case's
|
|
173
|
+
* metadata with the assertions it produced and any runtime error that
|
|
174
|
+
* aborted the body. An `it` block that emits zero assertions is treated
|
|
175
|
+
* as a failure (`pass: false`) so silent mistakes don't pass quietly.
|
|
176
|
+
*/
|
|
177
|
+
export interface ScriptTestCase {
|
|
178
|
+
/** Every `test.expect(...)` matcher that ran inside this case */
|
|
179
|
+
assertions?: ScriptTestAssertion[] | undefined;
|
|
180
|
+
/** Outer-to-inner describe path enclosing this case */
|
|
181
|
+
describe?: string[] | undefined;
|
|
182
|
+
/** Runtime error that aborted the body of this `it` block, when one occurred */
|
|
183
|
+
error?: string | undefined;
|
|
184
|
+
/** The name passed to `test.it(...)` */
|
|
185
|
+
name: string;
|
|
186
|
+
/** True when the case has at least one assertion and every assertion passed */
|
|
187
|
+
pass: boolean;
|
|
188
|
+
}
|
|
189
|
+
/** Runtime validator for {@link ScriptTestCase}. */
|
|
190
|
+
export declare const scriptTestCaseSchema: z.ZodObject<{
|
|
191
|
+
/** Every `test.expect(...)` matcher that ran inside this case */
|
|
192
|
+
assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
193
|
+
/** Actual value the matcher was called with — any JSON-safe value */
|
|
194
|
+
actual: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
195
|
+
/** Outer-to-inner describe path when the assertion fired */
|
|
196
|
+
describe: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
197
|
+
/** Expected value (or arguments to the matcher) — any JSON-safe value: scalar, map, or list */
|
|
198
|
+
expected: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
199
|
+
/** Name of the enclosing `test.it(...)` block */
|
|
200
|
+
it: z.ZodOptional<z.ZodString>;
|
|
201
|
+
/** Output entry kind, always `"assertion"` for this schema */
|
|
202
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
203
|
+
/** Source line of the `expect(...)` call */
|
|
204
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
205
|
+
/** Matcher name (toEqual, toBe, toBeOk, toBeError, toContain, toMatch, toHaveLength) */
|
|
206
|
+
matcher: z.ZodOptional<z.ZodString>;
|
|
207
|
+
/** True when the matcher succeeded */
|
|
208
|
+
pass: z.ZodBoolean;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
pass: boolean;
|
|
211
|
+
kind?: string | undefined;
|
|
212
|
+
expected?: {} | null | undefined;
|
|
213
|
+
actual?: {} | null | undefined;
|
|
214
|
+
describe?: string[] | undefined;
|
|
215
|
+
it?: string | undefined;
|
|
216
|
+
line?: number | undefined;
|
|
217
|
+
matcher?: string | undefined;
|
|
218
|
+
}, {
|
|
219
|
+
pass: boolean;
|
|
220
|
+
kind?: string | undefined;
|
|
221
|
+
expected?: {} | null | undefined;
|
|
222
|
+
actual?: {} | null | undefined;
|
|
223
|
+
describe?: string[] | undefined;
|
|
224
|
+
it?: string | undefined;
|
|
225
|
+
line?: number | undefined;
|
|
226
|
+
matcher?: string | undefined;
|
|
227
|
+
}>, "many">>;
|
|
228
|
+
/** Outer-to-inner describe path enclosing this case */
|
|
229
|
+
describe: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
230
|
+
/** Runtime error that aborted the body of this `it` block, when one occurred */
|
|
231
|
+
error: z.ZodOptional<z.ZodString>;
|
|
232
|
+
/** The name passed to `test.it(...)` */
|
|
233
|
+
name: z.ZodString;
|
|
234
|
+
/** True when the case has at least one assertion and every assertion passed */
|
|
235
|
+
pass: z.ZodBoolean;
|
|
236
|
+
}, "strip", z.ZodTypeAny, {
|
|
237
|
+
name: string;
|
|
238
|
+
pass: boolean;
|
|
239
|
+
error?: string | undefined;
|
|
240
|
+
describe?: string[] | undefined;
|
|
241
|
+
assertions?: {
|
|
242
|
+
pass: boolean;
|
|
243
|
+
kind?: string | undefined;
|
|
244
|
+
expected?: {} | null | undefined;
|
|
245
|
+
actual?: {} | null | undefined;
|
|
246
|
+
describe?: string[] | undefined;
|
|
247
|
+
it?: string | undefined;
|
|
248
|
+
line?: number | undefined;
|
|
249
|
+
matcher?: string | undefined;
|
|
250
|
+
}[] | undefined;
|
|
251
|
+
}, {
|
|
252
|
+
name: string;
|
|
253
|
+
pass: boolean;
|
|
254
|
+
error?: string | undefined;
|
|
255
|
+
describe?: string[] | undefined;
|
|
256
|
+
assertions?: {
|
|
257
|
+
pass: boolean;
|
|
258
|
+
kind?: string | undefined;
|
|
259
|
+
expected?: {} | null | undefined;
|
|
260
|
+
actual?: {} | null | undefined;
|
|
261
|
+
describe?: string[] | undefined;
|
|
262
|
+
it?: string | undefined;
|
|
263
|
+
line?: number | undefined;
|
|
264
|
+
matcher?: string | undefined;
|
|
265
|
+
}[] | undefined;
|
|
266
|
+
}>;
|
|
267
|
+
/**
|
|
268
|
+
* One println/log entry interleaved with a ScriptTest run.
|
|
269
|
+
* After the test harvester filters out test-control entries (`it`,
|
|
270
|
+
* `assertion`, `it_error`), only `println` and `log.<level>` calls remain
|
|
271
|
+
* in the report's `output` field. Both shapes share `text`/`values`/`line`
|
|
272
|
+
* (line is auto-annotated by the evaluator post-call); `level` and
|
|
273
|
+
* `timestamp` are only present on `log.*` entries.
|
|
274
|
+
*/
|
|
275
|
+
export interface ScriptTestOutputEntry {
|
|
276
|
+
/** Log level (`debug`, `info`, `warn`, `error`) — present on log.* entries only */
|
|
277
|
+
level?: string | undefined;
|
|
278
|
+
/** Source line of the println/log call */
|
|
279
|
+
line?: number | undefined;
|
|
280
|
+
/** Joined text representation of the args */
|
|
281
|
+
text: string;
|
|
282
|
+
/** UTC timestamp — present on log.* entries only */
|
|
283
|
+
timestamp?: string | undefined;
|
|
284
|
+
/** Original args coerced to JSON-safe values — mixed scalars, maps, and lists since the call sites accept arbitrary expressions */
|
|
285
|
+
values?: unknown[] | undefined;
|
|
286
|
+
}
|
|
287
|
+
/** Runtime validator for {@link ScriptTestOutputEntry}. */
|
|
288
|
+
export declare const scriptTestOutputEntrySchema: z.ZodObject<{
|
|
289
|
+
/** Log level (`debug`, `info`, `warn`, `error`) — present on log.* entries only */
|
|
290
|
+
level: z.ZodOptional<z.ZodString>;
|
|
291
|
+
/** Source line of the println/log call */
|
|
292
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
293
|
+
/** Joined text representation of the args */
|
|
294
|
+
text: z.ZodString;
|
|
295
|
+
/** UTC timestamp — present on log.* entries only */
|
|
296
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
297
|
+
/** Original args coerced to JSON-safe values — mixed scalars, maps, and lists since the call sites accept arbitrary expressions */
|
|
298
|
+
values: z.ZodOptional<z.ZodArray<z.ZodType<{} | null, z.ZodTypeDef, {} | null>, "many">>;
|
|
299
|
+
}, "strip", z.ZodTypeAny, {
|
|
300
|
+
text: string;
|
|
301
|
+
level?: string | undefined;
|
|
302
|
+
values?: ({} | null)[] | undefined;
|
|
303
|
+
line?: number | undefined;
|
|
304
|
+
timestamp?: string | undefined;
|
|
305
|
+
}, {
|
|
306
|
+
text: string;
|
|
307
|
+
level?: string | undefined;
|
|
308
|
+
values?: ({} | null)[] | undefined;
|
|
309
|
+
line?: number | undefined;
|
|
310
|
+
timestamp?: string | undefined;
|
|
311
|
+
}>;
|
|
312
|
+
/**
|
|
313
|
+
* One `test.describe(...)` group from a ScriptTest run.
|
|
314
|
+
* Suites are derived from the unique describe paths the harvester sees, so
|
|
315
|
+
* there's no synthetic "ungrouped" suite — `it` blocks emitted outside any
|
|
316
|
+
* `describe` show up in the top-level `tests` array on the parent report
|
|
317
|
+
* instead.
|
|
318
|
+
*/
|
|
319
|
+
export interface ScriptTestSuite {
|
|
320
|
+
/** Outer-to-inner describe path identifying this suite */
|
|
321
|
+
describe: string[];
|
|
322
|
+
/** Human-readable suite name (`describe` path joined by ` > `) */
|
|
323
|
+
name: string;
|
|
324
|
+
/** Every `test.it(...)` case run inside this describe */
|
|
325
|
+
tests?: ScriptTestCase[] | undefined;
|
|
326
|
+
}
|
|
327
|
+
/** Runtime validator for {@link ScriptTestSuite}. */
|
|
328
|
+
export declare const scriptTestSuiteSchema: z.ZodObject<{
|
|
329
|
+
/** Outer-to-inner describe path identifying this suite */
|
|
330
|
+
describe: z.ZodArray<z.ZodString, "many">;
|
|
331
|
+
/** Human-readable suite name (`describe` path joined by ` > `) */
|
|
332
|
+
name: z.ZodString;
|
|
333
|
+
/** Every `test.it(...)` case run inside this describe */
|
|
334
|
+
tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
335
|
+
/** Every `test.expect(...)` matcher that ran inside this case */
|
|
336
|
+
assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
337
|
+
/** Actual value the matcher was called with — any JSON-safe value */
|
|
338
|
+
actual: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
339
|
+
/** Outer-to-inner describe path when the assertion fired */
|
|
340
|
+
describe: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
341
|
+
/** Expected value (or arguments to the matcher) — any JSON-safe value: scalar, map, or list */
|
|
342
|
+
expected: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
343
|
+
/** Name of the enclosing `test.it(...)` block */
|
|
344
|
+
it: z.ZodOptional<z.ZodString>;
|
|
345
|
+
/** Output entry kind, always `"assertion"` for this schema */
|
|
346
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
347
|
+
/** Source line of the `expect(...)` call */
|
|
348
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
349
|
+
/** Matcher name (toEqual, toBe, toBeOk, toBeError, toContain, toMatch, toHaveLength) */
|
|
350
|
+
matcher: z.ZodOptional<z.ZodString>;
|
|
351
|
+
/** True when the matcher succeeded */
|
|
352
|
+
pass: z.ZodBoolean;
|
|
353
|
+
}, "strip", z.ZodTypeAny, {
|
|
354
|
+
pass: boolean;
|
|
355
|
+
kind?: string | undefined;
|
|
356
|
+
expected?: {} | null | undefined;
|
|
357
|
+
actual?: {} | null | undefined;
|
|
358
|
+
describe?: string[] | undefined;
|
|
359
|
+
it?: string | undefined;
|
|
360
|
+
line?: number | undefined;
|
|
361
|
+
matcher?: string | undefined;
|
|
362
|
+
}, {
|
|
363
|
+
pass: boolean;
|
|
364
|
+
kind?: string | undefined;
|
|
365
|
+
expected?: {} | null | undefined;
|
|
366
|
+
actual?: {} | null | undefined;
|
|
367
|
+
describe?: string[] | undefined;
|
|
368
|
+
it?: string | undefined;
|
|
369
|
+
line?: number | undefined;
|
|
370
|
+
matcher?: string | undefined;
|
|
371
|
+
}>, "many">>;
|
|
372
|
+
/** Outer-to-inner describe path enclosing this case */
|
|
373
|
+
describe: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
374
|
+
/** Runtime error that aborted the body of this `it` block, when one occurred */
|
|
375
|
+
error: z.ZodOptional<z.ZodString>;
|
|
376
|
+
/** The name passed to `test.it(...)` */
|
|
377
|
+
name: z.ZodString;
|
|
378
|
+
/** True when the case has at least one assertion and every assertion passed */
|
|
379
|
+
pass: z.ZodBoolean;
|
|
380
|
+
}, "strip", z.ZodTypeAny, {
|
|
381
|
+
name: string;
|
|
382
|
+
pass: boolean;
|
|
383
|
+
error?: string | undefined;
|
|
384
|
+
describe?: string[] | undefined;
|
|
385
|
+
assertions?: {
|
|
386
|
+
pass: boolean;
|
|
387
|
+
kind?: string | undefined;
|
|
388
|
+
expected?: {} | null | undefined;
|
|
389
|
+
actual?: {} | null | undefined;
|
|
390
|
+
describe?: string[] | undefined;
|
|
391
|
+
it?: string | undefined;
|
|
392
|
+
line?: number | undefined;
|
|
393
|
+
matcher?: string | undefined;
|
|
394
|
+
}[] | undefined;
|
|
395
|
+
}, {
|
|
396
|
+
name: string;
|
|
397
|
+
pass: boolean;
|
|
398
|
+
error?: string | undefined;
|
|
399
|
+
describe?: string[] | undefined;
|
|
400
|
+
assertions?: {
|
|
401
|
+
pass: boolean;
|
|
402
|
+
kind?: string | undefined;
|
|
403
|
+
expected?: {} | null | undefined;
|
|
404
|
+
actual?: {} | null | undefined;
|
|
405
|
+
describe?: string[] | undefined;
|
|
406
|
+
it?: string | undefined;
|
|
407
|
+
line?: number | undefined;
|
|
408
|
+
matcher?: string | undefined;
|
|
409
|
+
}[] | undefined;
|
|
410
|
+
}>, "many">>;
|
|
411
|
+
}, "strip", z.ZodTypeAny, {
|
|
412
|
+
name: string;
|
|
413
|
+
describe: string[];
|
|
414
|
+
tests?: {
|
|
415
|
+
name: string;
|
|
416
|
+
pass: boolean;
|
|
417
|
+
error?: string | undefined;
|
|
418
|
+
describe?: string[] | undefined;
|
|
419
|
+
assertions?: {
|
|
420
|
+
pass: boolean;
|
|
421
|
+
kind?: string | undefined;
|
|
422
|
+
expected?: {} | null | undefined;
|
|
423
|
+
actual?: {} | null | undefined;
|
|
424
|
+
describe?: string[] | undefined;
|
|
425
|
+
it?: string | undefined;
|
|
426
|
+
line?: number | undefined;
|
|
427
|
+
matcher?: string | undefined;
|
|
428
|
+
}[] | undefined;
|
|
429
|
+
}[] | undefined;
|
|
430
|
+
}, {
|
|
431
|
+
name: string;
|
|
432
|
+
describe: string[];
|
|
433
|
+
tests?: {
|
|
434
|
+
name: string;
|
|
435
|
+
pass: boolean;
|
|
436
|
+
error?: string | undefined;
|
|
437
|
+
describe?: string[] | undefined;
|
|
438
|
+
assertions?: {
|
|
439
|
+
pass: boolean;
|
|
440
|
+
kind?: string | undefined;
|
|
441
|
+
expected?: {} | null | undefined;
|
|
442
|
+
actual?: {} | null | undefined;
|
|
443
|
+
describe?: string[] | undefined;
|
|
444
|
+
it?: string | undefined;
|
|
445
|
+
line?: number | undefined;
|
|
446
|
+
matcher?: string | undefined;
|
|
447
|
+
}[] | undefined;
|
|
448
|
+
}[] | undefined;
|
|
449
|
+
}>;
|
|
450
|
+
/** Schema for the result of running a ScriptTest */
|
|
451
|
+
export interface ScriptTestRunResult {
|
|
452
|
+
/** Total number of `test.expect(...)` matcher calls that ran */
|
|
453
|
+
assertion_count?: number | undefined;
|
|
454
|
+
/** Top-level error message when a runtime error fired outside any `it` block (parse/tokenize errors return 422 instead) */
|
|
455
|
+
error?: string | undefined;
|
|
456
|
+
/** Structured diagnostics with position info for editor markers when the run errored before any tests could run */
|
|
457
|
+
findings?: Record<string, unknown>[] | undefined;
|
|
458
|
+
/** Non-test output entries (println, log.*) interleaved during the run */
|
|
459
|
+
output?: ScriptTestOutputEntry[] | undefined;
|
|
460
|
+
/** True when every test in every suite passed */
|
|
461
|
+
passed: boolean;
|
|
462
|
+
/** One entry per describe path */
|
|
463
|
+
suites?: ScriptTestSuite[] | undefined;
|
|
464
|
+
/** Flat list of every `it` that ran, each with assertions and pass flag */
|
|
465
|
+
tests?: ScriptTestCase[] | undefined;
|
|
466
|
+
}
|
|
467
|
+
/** Runtime validator for {@link ScriptTestRunResult}. */
|
|
468
|
+
export declare const scriptTestRunResultSchema: z.ZodObject<{
|
|
469
|
+
/** Total number of `test.expect(...)` matcher calls that ran */
|
|
470
|
+
assertion_count: z.ZodOptional<z.ZodNumber>;
|
|
471
|
+
/** Top-level error message when a runtime error fired outside any `it` block (parse/tokenize errors return 422 instead) */
|
|
472
|
+
error: z.ZodOptional<z.ZodString>;
|
|
473
|
+
/** Structured diagnostics with position info for editor markers when the run errored before any tests could run */
|
|
474
|
+
findings: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>, "many">>;
|
|
475
|
+
/** Non-test output entries (println, log.*) interleaved during the run */
|
|
476
|
+
output: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
477
|
+
/** Log level (`debug`, `info`, `warn`, `error`) — present on log.* entries only */
|
|
478
|
+
level: z.ZodOptional<z.ZodString>;
|
|
479
|
+
/** Source line of the println/log call */
|
|
480
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
481
|
+
/** Joined text representation of the args */
|
|
482
|
+
text: z.ZodString;
|
|
483
|
+
/** UTC timestamp — present on log.* entries only */
|
|
484
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
485
|
+
/** Original args coerced to JSON-safe values — mixed scalars, maps, and lists since the call sites accept arbitrary expressions */
|
|
486
|
+
values: z.ZodOptional<z.ZodArray<z.ZodType<{} | null, z.ZodTypeDef, {} | null>, "many">>;
|
|
487
|
+
}, "strip", z.ZodTypeAny, {
|
|
488
|
+
text: string;
|
|
489
|
+
level?: string | undefined;
|
|
490
|
+
values?: ({} | null)[] | undefined;
|
|
491
|
+
line?: number | undefined;
|
|
492
|
+
timestamp?: string | undefined;
|
|
493
|
+
}, {
|
|
494
|
+
text: string;
|
|
495
|
+
level?: string | undefined;
|
|
496
|
+
values?: ({} | null)[] | undefined;
|
|
497
|
+
line?: number | undefined;
|
|
498
|
+
timestamp?: string | undefined;
|
|
499
|
+
}>, "many">>;
|
|
500
|
+
/** True when every test in every suite passed */
|
|
501
|
+
passed: z.ZodBoolean;
|
|
502
|
+
/** One entry per describe path */
|
|
503
|
+
suites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
504
|
+
/** Outer-to-inner describe path identifying this suite */
|
|
505
|
+
describe: z.ZodArray<z.ZodString, "many">;
|
|
506
|
+
/** Human-readable suite name (`describe` path joined by ` > `) */
|
|
507
|
+
name: z.ZodString;
|
|
508
|
+
/** Every `test.it(...)` case run inside this describe */
|
|
509
|
+
tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
510
|
+
/** Every `test.expect(...)` matcher that ran inside this case */
|
|
511
|
+
assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
512
|
+
/** Actual value the matcher was called with — any JSON-safe value */
|
|
513
|
+
actual: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
514
|
+
/** Outer-to-inner describe path when the assertion fired */
|
|
515
|
+
describe: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
516
|
+
/** Expected value (or arguments to the matcher) — any JSON-safe value: scalar, map, or list */
|
|
517
|
+
expected: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
518
|
+
/** Name of the enclosing `test.it(...)` block */
|
|
519
|
+
it: z.ZodOptional<z.ZodString>;
|
|
520
|
+
/** Output entry kind, always `"assertion"` for this schema */
|
|
521
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
522
|
+
/** Source line of the `expect(...)` call */
|
|
523
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
524
|
+
/** Matcher name (toEqual, toBe, toBeOk, toBeError, toContain, toMatch, toHaveLength) */
|
|
525
|
+
matcher: z.ZodOptional<z.ZodString>;
|
|
526
|
+
/** True when the matcher succeeded */
|
|
527
|
+
pass: z.ZodBoolean;
|
|
528
|
+
}, "strip", z.ZodTypeAny, {
|
|
529
|
+
pass: boolean;
|
|
530
|
+
kind?: string | undefined;
|
|
531
|
+
expected?: {} | null | undefined;
|
|
532
|
+
actual?: {} | null | undefined;
|
|
533
|
+
describe?: string[] | undefined;
|
|
534
|
+
it?: string | undefined;
|
|
535
|
+
line?: number | undefined;
|
|
536
|
+
matcher?: string | undefined;
|
|
537
|
+
}, {
|
|
538
|
+
pass: boolean;
|
|
539
|
+
kind?: string | undefined;
|
|
540
|
+
expected?: {} | null | undefined;
|
|
541
|
+
actual?: {} | null | undefined;
|
|
542
|
+
describe?: string[] | undefined;
|
|
543
|
+
it?: string | undefined;
|
|
544
|
+
line?: number | undefined;
|
|
545
|
+
matcher?: string | undefined;
|
|
546
|
+
}>, "many">>;
|
|
547
|
+
/** Outer-to-inner describe path enclosing this case */
|
|
548
|
+
describe: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
549
|
+
/** Runtime error that aborted the body of this `it` block, when one occurred */
|
|
550
|
+
error: z.ZodOptional<z.ZodString>;
|
|
551
|
+
/** The name passed to `test.it(...)` */
|
|
552
|
+
name: z.ZodString;
|
|
553
|
+
/** True when the case has at least one assertion and every assertion passed */
|
|
554
|
+
pass: z.ZodBoolean;
|
|
555
|
+
}, "strip", z.ZodTypeAny, {
|
|
556
|
+
name: string;
|
|
557
|
+
pass: boolean;
|
|
558
|
+
error?: string | undefined;
|
|
559
|
+
describe?: string[] | undefined;
|
|
560
|
+
assertions?: {
|
|
561
|
+
pass: boolean;
|
|
562
|
+
kind?: string | undefined;
|
|
563
|
+
expected?: {} | null | undefined;
|
|
564
|
+
actual?: {} | null | undefined;
|
|
565
|
+
describe?: string[] | undefined;
|
|
566
|
+
it?: string | undefined;
|
|
567
|
+
line?: number | undefined;
|
|
568
|
+
matcher?: string | undefined;
|
|
569
|
+
}[] | undefined;
|
|
570
|
+
}, {
|
|
571
|
+
name: string;
|
|
572
|
+
pass: boolean;
|
|
573
|
+
error?: string | undefined;
|
|
574
|
+
describe?: string[] | undefined;
|
|
575
|
+
assertions?: {
|
|
576
|
+
pass: boolean;
|
|
577
|
+
kind?: string | undefined;
|
|
578
|
+
expected?: {} | null | undefined;
|
|
579
|
+
actual?: {} | null | undefined;
|
|
580
|
+
describe?: string[] | undefined;
|
|
581
|
+
it?: string | undefined;
|
|
582
|
+
line?: number | undefined;
|
|
583
|
+
matcher?: string | undefined;
|
|
584
|
+
}[] | undefined;
|
|
585
|
+
}>, "many">>;
|
|
586
|
+
}, "strip", z.ZodTypeAny, {
|
|
587
|
+
name: string;
|
|
588
|
+
describe: string[];
|
|
589
|
+
tests?: {
|
|
590
|
+
name: string;
|
|
591
|
+
pass: boolean;
|
|
592
|
+
error?: string | undefined;
|
|
593
|
+
describe?: string[] | undefined;
|
|
594
|
+
assertions?: {
|
|
595
|
+
pass: boolean;
|
|
596
|
+
kind?: string | undefined;
|
|
597
|
+
expected?: {} | null | undefined;
|
|
598
|
+
actual?: {} | null | undefined;
|
|
599
|
+
describe?: string[] | undefined;
|
|
600
|
+
it?: string | undefined;
|
|
601
|
+
line?: number | undefined;
|
|
602
|
+
matcher?: string | undefined;
|
|
603
|
+
}[] | undefined;
|
|
604
|
+
}[] | undefined;
|
|
605
|
+
}, {
|
|
606
|
+
name: string;
|
|
607
|
+
describe: string[];
|
|
608
|
+
tests?: {
|
|
609
|
+
name: string;
|
|
610
|
+
pass: boolean;
|
|
611
|
+
error?: string | undefined;
|
|
612
|
+
describe?: string[] | undefined;
|
|
613
|
+
assertions?: {
|
|
614
|
+
pass: boolean;
|
|
615
|
+
kind?: string | undefined;
|
|
616
|
+
expected?: {} | null | undefined;
|
|
617
|
+
actual?: {} | null | undefined;
|
|
618
|
+
describe?: string[] | undefined;
|
|
619
|
+
it?: string | undefined;
|
|
620
|
+
line?: number | undefined;
|
|
621
|
+
matcher?: string | undefined;
|
|
622
|
+
}[] | undefined;
|
|
623
|
+
}[] | undefined;
|
|
624
|
+
}>, "many">>;
|
|
625
|
+
/** Flat list of every `it` that ran, each with assertions and pass flag */
|
|
626
|
+
tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
627
|
+
/** Every `test.expect(...)` matcher that ran inside this case */
|
|
628
|
+
assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
629
|
+
/** Actual value the matcher was called with — any JSON-safe value */
|
|
630
|
+
actual: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
631
|
+
/** Outer-to-inner describe path when the assertion fired */
|
|
632
|
+
describe: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
633
|
+
/** Expected value (or arguments to the matcher) — any JSON-safe value: scalar, map, or list */
|
|
634
|
+
expected: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
635
|
+
/** Name of the enclosing `test.it(...)` block */
|
|
636
|
+
it: z.ZodOptional<z.ZodString>;
|
|
637
|
+
/** Output entry kind, always `"assertion"` for this schema */
|
|
638
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
639
|
+
/** Source line of the `expect(...)` call */
|
|
640
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
641
|
+
/** Matcher name (toEqual, toBe, toBeOk, toBeError, toContain, toMatch, toHaveLength) */
|
|
642
|
+
matcher: z.ZodOptional<z.ZodString>;
|
|
643
|
+
/** True when the matcher succeeded */
|
|
644
|
+
pass: z.ZodBoolean;
|
|
645
|
+
}, "strip", z.ZodTypeAny, {
|
|
646
|
+
pass: boolean;
|
|
647
|
+
kind?: string | undefined;
|
|
648
|
+
expected?: {} | null | undefined;
|
|
649
|
+
actual?: {} | null | undefined;
|
|
650
|
+
describe?: string[] | undefined;
|
|
651
|
+
it?: string | undefined;
|
|
652
|
+
line?: number | undefined;
|
|
653
|
+
matcher?: string | undefined;
|
|
654
|
+
}, {
|
|
655
|
+
pass: boolean;
|
|
656
|
+
kind?: string | undefined;
|
|
657
|
+
expected?: {} | null | undefined;
|
|
658
|
+
actual?: {} | null | undefined;
|
|
659
|
+
describe?: string[] | undefined;
|
|
660
|
+
it?: string | undefined;
|
|
661
|
+
line?: number | undefined;
|
|
662
|
+
matcher?: string | undefined;
|
|
663
|
+
}>, "many">>;
|
|
664
|
+
/** Outer-to-inner describe path enclosing this case */
|
|
665
|
+
describe: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
666
|
+
/** Runtime error that aborted the body of this `it` block, when one occurred */
|
|
667
|
+
error: z.ZodOptional<z.ZodString>;
|
|
668
|
+
/** The name passed to `test.it(...)` */
|
|
669
|
+
name: z.ZodString;
|
|
670
|
+
/** True when the case has at least one assertion and every assertion passed */
|
|
671
|
+
pass: z.ZodBoolean;
|
|
672
|
+
}, "strip", z.ZodTypeAny, {
|
|
673
|
+
name: string;
|
|
674
|
+
pass: boolean;
|
|
675
|
+
error?: string | undefined;
|
|
676
|
+
describe?: string[] | undefined;
|
|
677
|
+
assertions?: {
|
|
678
|
+
pass: boolean;
|
|
679
|
+
kind?: string | undefined;
|
|
680
|
+
expected?: {} | null | undefined;
|
|
681
|
+
actual?: {} | null | undefined;
|
|
682
|
+
describe?: string[] | undefined;
|
|
683
|
+
it?: string | undefined;
|
|
684
|
+
line?: number | undefined;
|
|
685
|
+
matcher?: string | undefined;
|
|
686
|
+
}[] | undefined;
|
|
687
|
+
}, {
|
|
688
|
+
name: string;
|
|
689
|
+
pass: boolean;
|
|
690
|
+
error?: string | undefined;
|
|
691
|
+
describe?: string[] | undefined;
|
|
692
|
+
assertions?: {
|
|
693
|
+
pass: boolean;
|
|
694
|
+
kind?: string | undefined;
|
|
695
|
+
expected?: {} | null | undefined;
|
|
696
|
+
actual?: {} | null | undefined;
|
|
697
|
+
describe?: string[] | undefined;
|
|
698
|
+
it?: string | undefined;
|
|
699
|
+
line?: number | undefined;
|
|
700
|
+
matcher?: string | undefined;
|
|
701
|
+
}[] | undefined;
|
|
702
|
+
}>, "many">>;
|
|
703
|
+
}, "strip", z.ZodTypeAny, {
|
|
704
|
+
passed: boolean;
|
|
705
|
+
error?: string | undefined;
|
|
706
|
+
output?: {
|
|
707
|
+
text: string;
|
|
708
|
+
level?: string | undefined;
|
|
709
|
+
values?: ({} | null)[] | undefined;
|
|
710
|
+
line?: number | undefined;
|
|
711
|
+
timestamp?: string | undefined;
|
|
712
|
+
}[] | undefined;
|
|
713
|
+
findings?: Record<string, {} | null>[] | undefined;
|
|
714
|
+
tests?: {
|
|
715
|
+
name: string;
|
|
716
|
+
pass: boolean;
|
|
717
|
+
error?: string | undefined;
|
|
718
|
+
describe?: string[] | undefined;
|
|
719
|
+
assertions?: {
|
|
720
|
+
pass: boolean;
|
|
721
|
+
kind?: string | undefined;
|
|
722
|
+
expected?: {} | null | undefined;
|
|
723
|
+
actual?: {} | null | undefined;
|
|
724
|
+
describe?: string[] | undefined;
|
|
725
|
+
it?: string | undefined;
|
|
726
|
+
line?: number | undefined;
|
|
727
|
+
matcher?: string | undefined;
|
|
728
|
+
}[] | undefined;
|
|
729
|
+
}[] | undefined;
|
|
730
|
+
assertion_count?: number | undefined;
|
|
731
|
+
suites?: {
|
|
732
|
+
name: string;
|
|
733
|
+
describe: string[];
|
|
734
|
+
tests?: {
|
|
735
|
+
name: string;
|
|
736
|
+
pass: boolean;
|
|
737
|
+
error?: string | undefined;
|
|
738
|
+
describe?: string[] | undefined;
|
|
739
|
+
assertions?: {
|
|
740
|
+
pass: boolean;
|
|
741
|
+
kind?: string | undefined;
|
|
742
|
+
expected?: {} | null | undefined;
|
|
743
|
+
actual?: {} | null | undefined;
|
|
744
|
+
describe?: string[] | undefined;
|
|
745
|
+
it?: string | undefined;
|
|
746
|
+
line?: number | undefined;
|
|
747
|
+
matcher?: string | undefined;
|
|
748
|
+
}[] | undefined;
|
|
749
|
+
}[] | undefined;
|
|
750
|
+
}[] | undefined;
|
|
751
|
+
}, {
|
|
752
|
+
passed: boolean;
|
|
753
|
+
error?: string | undefined;
|
|
754
|
+
output?: {
|
|
755
|
+
text: string;
|
|
756
|
+
level?: string | undefined;
|
|
757
|
+
values?: ({} | null)[] | undefined;
|
|
758
|
+
line?: number | undefined;
|
|
759
|
+
timestamp?: string | undefined;
|
|
760
|
+
}[] | undefined;
|
|
761
|
+
findings?: Record<string, {} | null>[] | undefined;
|
|
762
|
+
tests?: {
|
|
763
|
+
name: string;
|
|
764
|
+
pass: boolean;
|
|
765
|
+
error?: string | undefined;
|
|
766
|
+
describe?: string[] | undefined;
|
|
767
|
+
assertions?: {
|
|
768
|
+
pass: boolean;
|
|
769
|
+
kind?: string | undefined;
|
|
770
|
+
expected?: {} | null | undefined;
|
|
771
|
+
actual?: {} | null | undefined;
|
|
772
|
+
describe?: string[] | undefined;
|
|
773
|
+
it?: string | undefined;
|
|
774
|
+
line?: number | undefined;
|
|
775
|
+
matcher?: string | undefined;
|
|
776
|
+
}[] | undefined;
|
|
777
|
+
}[] | undefined;
|
|
778
|
+
assertion_count?: number | undefined;
|
|
779
|
+
suites?: {
|
|
780
|
+
name: string;
|
|
781
|
+
describe: string[];
|
|
782
|
+
tests?: {
|
|
783
|
+
name: string;
|
|
784
|
+
pass: boolean;
|
|
785
|
+
error?: string | undefined;
|
|
786
|
+
describe?: string[] | undefined;
|
|
787
|
+
assertions?: {
|
|
788
|
+
pass: boolean;
|
|
789
|
+
kind?: string | undefined;
|
|
790
|
+
expected?: {} | null | undefined;
|
|
791
|
+
actual?: {} | null | undefined;
|
|
792
|
+
describe?: string[] | undefined;
|
|
793
|
+
it?: string | undefined;
|
|
794
|
+
line?: number | undefined;
|
|
795
|
+
matcher?: string | undefined;
|
|
796
|
+
}[] | undefined;
|
|
797
|
+
}[] | undefined;
|
|
798
|
+
}[] | undefined;
|
|
799
|
+
}>;
|
|
800
|
+
//# sourceMappingURL=scripts.d.ts.map
|