scorecard-ai 1.2.0 → 2.0.0-alpha.1
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 +18 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/records.d.mts +7 -18
- package/resources/records.d.mts.map +1 -1
- package/resources/records.d.ts +7 -18
- package/resources/records.d.ts.map +1 -1
- package/resources/records.js.map +1 -1
- package/resources/records.mjs.map +1 -1
- package/resources/scores.d.mts +2 -6
- package/resources/scores.d.mts.map +1 -1
- package/resources/scores.d.ts +2 -6
- package/resources/scores.d.ts.map +1 -1
- package/resources/shared.d.mts +1 -3
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1 -3
- package/resources/shared.d.ts.map +1 -1
- package/resources/systems/index.d.mts +2 -2
- package/resources/systems/index.d.mts.map +1 -1
- package/resources/systems/index.d.ts +2 -2
- package/resources/systems/index.d.ts.map +1 -1
- package/resources/systems/index.js.map +1 -1
- package/resources/systems/index.mjs +1 -1
- package/resources/systems/index.mjs.map +1 -1
- package/resources/systems/systems.d.mts +63 -143
- package/resources/systems/systems.d.mts.map +1 -1
- package/resources/systems/systems.d.ts +63 -143
- package/resources/systems/systems.d.ts.map +1 -1
- package/resources/systems/systems.js +21 -74
- package/resources/systems/systems.js.map +1 -1
- package/resources/systems/systems.mjs +22 -75
- package/resources/systems/systems.mjs.map +1 -1
- package/resources/systems/versions.d.mts +25 -80
- package/resources/systems/versions.d.mts.map +1 -1
- package/resources/systems/versions.d.ts +25 -80
- package/resources/systems/versions.d.ts.map +1 -1
- package/resources/systems/versions.js +20 -54
- package/resources/systems/versions.js.map +1 -1
- package/resources/systems/versions.mjs +20 -54
- package/resources/systems/versions.mjs.map +1 -1
- package/resources/testcases.d.mts +5 -15
- package/resources/testcases.d.mts.map +1 -1
- package/resources/testcases.d.ts +5 -15
- package/resources/testcases.d.ts.map +1 -1
- package/resources/testsets.d.mts +3 -9
- package/resources/testsets.d.mts.map +1 -1
- package/resources/testsets.d.ts +3 -9
- package/resources/testsets.d.ts.map +1 -1
- package/src/client.ts +2 -2
- package/src/resources/index.ts +1 -1
- package/src/resources/records.ts +7 -6
- package/src/resources/scores.ts +2 -2
- package/src/resources/shared.ts +1 -1
- package/src/resources/systems/index.ts +2 -8
- package/src/resources/systems/systems.ts +68 -141
- package/src/resources/systems/versions.ts +27 -97
- package/src/resources/testcases.ts +5 -5
- package/src/resources/testsets.ts +3 -3
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -2,13 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as VersionsAPI from './versions';
|
|
5
|
-
import {
|
|
6
|
-
SystemVersion,
|
|
7
|
-
SystemVersionsPaginatedResponse,
|
|
8
|
-
VersionCreateParams,
|
|
9
|
-
VersionListParams,
|
|
10
|
-
Versions,
|
|
11
|
-
} from './versions';
|
|
5
|
+
import { SystemVersion, VersionUpsertParams, Versions } from './versions';
|
|
12
6
|
import { APIPromise } from '../../core/api-promise';
|
|
13
7
|
import { PagePromise, PaginatedResponse, type PaginatedResponseParams } from '../../core/pagination';
|
|
14
8
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -18,87 +12,17 @@ export class Systems extends APIResource {
|
|
|
18
12
|
versions: VersionsAPI.Versions = new VersionsAPI.Versions(this._client);
|
|
19
13
|
|
|
20
14
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* A system acts as a template that defines three key contracts through JSON
|
|
25
|
-
* Schemas:
|
|
26
|
-
*
|
|
27
|
-
* 1. Input Schema: What data your system accepts (e.g., user queries, context
|
|
28
|
-
* documents)
|
|
29
|
-
* 2. Output Schema: What data your system produces (e.g., responses, confidence
|
|
30
|
-
* scores)
|
|
31
|
-
* 3. Config Schema: What parameters can be adjusted (e.g., model selection,
|
|
32
|
-
* temperature)
|
|
33
|
-
*
|
|
34
|
-
* This separation lets you evaluate any system as a black box, focusing on its
|
|
35
|
-
* interface rather than implementation details.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* const system = await client.systems.create('314', {
|
|
40
|
-
* configSchema: {
|
|
41
|
-
* type: 'object',
|
|
42
|
-
* properties: {
|
|
43
|
-
* temperature: { type: 'number' },
|
|
44
|
-
* maxTokens: { type: 'integer' },
|
|
45
|
-
* model: { type: 'string', enum: ['gpt-4', 'gpt-4-turbo'] },
|
|
46
|
-
* },
|
|
47
|
-
* required: ['model'],
|
|
48
|
-
* },
|
|
49
|
-
* description: 'Production chatbot powered by GPT-4',
|
|
50
|
-
* inputSchema: {
|
|
51
|
-
* type: 'object',
|
|
52
|
-
* properties: {
|
|
53
|
-
* messages: {
|
|
54
|
-
* type: 'array',
|
|
55
|
-
* items: {
|
|
56
|
-
* type: 'object',
|
|
57
|
-
* properties: {
|
|
58
|
-
* role: { type: 'string', enum: ['system', 'user', 'assistant'] },
|
|
59
|
-
* content: { type: 'string' },
|
|
60
|
-
* },
|
|
61
|
-
* required: ['role', 'content'],
|
|
62
|
-
* },
|
|
63
|
-
* },
|
|
64
|
-
* },
|
|
65
|
-
* required: ['messages'],
|
|
66
|
-
* },
|
|
67
|
-
* name: 'GPT-4 Chatbot',
|
|
68
|
-
* outputSchema: {
|
|
69
|
-
* type: 'object',
|
|
70
|
-
* properties: { response: { type: 'string' } },
|
|
71
|
-
* required: ['response'],
|
|
72
|
-
* },
|
|
73
|
-
* });
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
|
-
create(projectID: string, body: SystemCreateParams, options?: RequestOptions): APIPromise<System> {
|
|
77
|
-
return this._client.post(path`/projects/${projectID}/systems`, { body, ...options });
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Update an existing system definition. Only the fields provided in the request
|
|
82
|
-
* body will be updated. If a field is provided, the new content will replace the
|
|
83
|
-
* existing content. If a field is not provided, the existing content will remain
|
|
84
|
-
* unchanged.
|
|
85
|
-
*
|
|
86
|
-
* When updating schemas:
|
|
87
|
-
*
|
|
88
|
-
* - The system will accept your changes regardless of compatibility with existing
|
|
89
|
-
* configurations
|
|
90
|
-
* - Schema updates won't invalidate existing evaluations or configurations
|
|
91
|
-
* - For significant redesigns, creating a new system definition provides a cleaner
|
|
92
|
-
* separation
|
|
15
|
+
* Update an existing system. Only the fields provided in the request body will be
|
|
16
|
+
* updated. If a field is provided, the new content will replace the existing
|
|
17
|
+
* content. If a field is not provided, the existing content will remain unchanged.
|
|
93
18
|
*
|
|
94
19
|
* @example
|
|
95
20
|
* ```ts
|
|
96
21
|
* const system = await client.systems.update(
|
|
97
22
|
* '12345678-0a8b-4f66-b6f3-2ddcfa097257',
|
|
98
23
|
* {
|
|
99
|
-
*
|
|
100
|
-
* '
|
|
101
|
-
* name: 'GPT-4 Turbo Chatbot',
|
|
24
|
+
* productionVersionId:
|
|
25
|
+
* '87654321-4d3b-4ae4-8c7a-4b6e2a19ccf3',
|
|
102
26
|
* },
|
|
103
27
|
* );
|
|
104
28
|
* ```
|
|
@@ -161,23 +85,29 @@ export class Systems extends APIResource {
|
|
|
161
85
|
get(systemID: string, options?: RequestOptions): APIPromise<System> {
|
|
162
86
|
return this._client.get(path`/systems/${systemID}`, options);
|
|
163
87
|
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Create a new system. If one with the same name in the project exists, it updates
|
|
91
|
+
* it instead.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```ts
|
|
95
|
+
* const system = await client.systems.upsert('314', {
|
|
96
|
+
* config: { temperature: 0.1, maxTokens: 1024 },
|
|
97
|
+
* description: 'Production chatbot powered by GPT-4',
|
|
98
|
+
* name: 'GPT-4 Chatbot',
|
|
99
|
+
* });
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
upsert(projectID: string, body: SystemUpsertParams, options?: RequestOptions): APIPromise<System> {
|
|
103
|
+
return this._client.post(path`/projects/${projectID}/systems`, { body, ...options });
|
|
104
|
+
}
|
|
164
105
|
}
|
|
165
106
|
|
|
166
107
|
export type SystemsPaginatedResponse = PaginatedResponse<System>;
|
|
167
108
|
|
|
168
109
|
/**
|
|
169
|
-
* A System Under Test (SUT)
|
|
170
|
-
* want to evaluate.
|
|
171
|
-
*
|
|
172
|
-
* It specifies three contracts through schemas:
|
|
173
|
-
*
|
|
174
|
-
* - inputSchema: The structure of data the system accepts.
|
|
175
|
-
* - outputSchema: The structure of data the system produces.
|
|
176
|
-
* - configSchema: The parameters that modify system behavior.
|
|
177
|
-
*
|
|
178
|
-
* This abstraction lets you evaluate any system as a black box, focusing on its
|
|
179
|
-
* interface rather than implementation details. It's particularly useful for
|
|
180
|
-
* systems with variable outputs or complex internal state.
|
|
110
|
+
* A System Under Test (SUT).
|
|
181
111
|
*
|
|
182
112
|
* Systems are templates - to run evaluations, pair them with a SystemVersion that
|
|
183
113
|
* provides specific parameter values.
|
|
@@ -188,30 +118,48 @@ export interface System {
|
|
|
188
118
|
*/
|
|
189
119
|
id: string;
|
|
190
120
|
|
|
191
|
-
/**
|
|
192
|
-
* The schema of the system's configuration.
|
|
193
|
-
*/
|
|
194
|
-
configSchema: { [key: string]: unknown };
|
|
195
|
-
|
|
196
121
|
/**
|
|
197
122
|
* The description of the system.
|
|
198
123
|
*/
|
|
199
124
|
description: string;
|
|
200
125
|
|
|
201
126
|
/**
|
|
202
|
-
* The
|
|
127
|
+
* The name of the system. Unique within the project.
|
|
203
128
|
*/
|
|
204
|
-
|
|
129
|
+
name: string;
|
|
205
130
|
|
|
206
131
|
/**
|
|
207
|
-
* The
|
|
132
|
+
* The production version of the system.
|
|
208
133
|
*/
|
|
209
|
-
|
|
134
|
+
productionVersion: VersionsAPI.SystemVersion;
|
|
210
135
|
|
|
211
136
|
/**
|
|
212
|
-
* The
|
|
137
|
+
* The versions of the system.
|
|
213
138
|
*/
|
|
214
|
-
|
|
139
|
+
versions: Array<System.Version>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export namespace System {
|
|
143
|
+
/**
|
|
144
|
+
* A SystemVersion defines the specific settings for a System Under Test.
|
|
145
|
+
*
|
|
146
|
+
* System versions contain parameter values that determine system behavior during
|
|
147
|
+
* evaluation. They are immutable snapshots - once created, they never change.
|
|
148
|
+
*
|
|
149
|
+
* When running evaluations, you reference a specific systemVersionId to establish
|
|
150
|
+
* which system version to test.
|
|
151
|
+
*/
|
|
152
|
+
export interface Version {
|
|
153
|
+
/**
|
|
154
|
+
* The ID of the system version.
|
|
155
|
+
*/
|
|
156
|
+
id: string;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* The name of the system version.
|
|
160
|
+
*/
|
|
161
|
+
name: string;
|
|
162
|
+
}
|
|
215
163
|
}
|
|
216
164
|
|
|
217
165
|
export interface SystemDeleteResponse {
|
|
@@ -221,38 +169,30 @@ export interface SystemDeleteResponse {
|
|
|
221
169
|
success: boolean;
|
|
222
170
|
}
|
|
223
171
|
|
|
224
|
-
export interface
|
|
225
|
-
/**
|
|
226
|
-
* The schema of the system's configuration.
|
|
227
|
-
*/
|
|
228
|
-
configSchema: { [key: string]: unknown };
|
|
229
|
-
|
|
172
|
+
export interface SystemUpdateParams {
|
|
230
173
|
/**
|
|
231
174
|
* The description of the system.
|
|
232
175
|
*/
|
|
233
|
-
description
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* The schema of the system's inputs.
|
|
237
|
-
*/
|
|
238
|
-
inputSchema: { [key: string]: unknown };
|
|
176
|
+
description?: string;
|
|
239
177
|
|
|
240
178
|
/**
|
|
241
|
-
* The name of the system.
|
|
179
|
+
* The name of the system. Unique within the project.
|
|
242
180
|
*/
|
|
243
|
-
name
|
|
181
|
+
name?: string;
|
|
244
182
|
|
|
245
183
|
/**
|
|
246
|
-
* The
|
|
184
|
+
* The ID of the production version of the system.
|
|
247
185
|
*/
|
|
248
|
-
|
|
186
|
+
productionVersionId?: string;
|
|
249
187
|
}
|
|
250
188
|
|
|
251
|
-
export interface
|
|
189
|
+
export interface SystemListParams extends PaginatedResponseParams {}
|
|
190
|
+
|
|
191
|
+
export interface SystemUpsertParams {
|
|
252
192
|
/**
|
|
253
|
-
* The
|
|
193
|
+
* The configuration of the system.
|
|
254
194
|
*/
|
|
255
|
-
|
|
195
|
+
config: Record<string, unknown>;
|
|
256
196
|
|
|
257
197
|
/**
|
|
258
198
|
* The description of the system.
|
|
@@ -260,23 +200,12 @@ export interface SystemUpdateParams {
|
|
|
260
200
|
description?: string;
|
|
261
201
|
|
|
262
202
|
/**
|
|
263
|
-
* The
|
|
264
|
-
|
|
265
|
-
inputSchema?: { [key: string]: unknown };
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* The name of the system.
|
|
203
|
+
* The name of the system. Should be unique within the project. Default is "Default
|
|
204
|
+
* system"
|
|
269
205
|
*/
|
|
270
206
|
name?: string;
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* The schema of the system's outputs.
|
|
274
|
-
*/
|
|
275
|
-
outputSchema?: { [key: string]: unknown };
|
|
276
207
|
}
|
|
277
208
|
|
|
278
|
-
export interface SystemListParams extends PaginatedResponseParams {}
|
|
279
|
-
|
|
280
209
|
Systems.Versions = Versions;
|
|
281
210
|
|
|
282
211
|
export declare namespace Systems {
|
|
@@ -284,16 +213,14 @@ export declare namespace Systems {
|
|
|
284
213
|
type System as System,
|
|
285
214
|
type SystemDeleteResponse as SystemDeleteResponse,
|
|
286
215
|
type SystemsPaginatedResponse as SystemsPaginatedResponse,
|
|
287
|
-
type SystemCreateParams as SystemCreateParams,
|
|
288
216
|
type SystemUpdateParams as SystemUpdateParams,
|
|
289
217
|
type SystemListParams as SystemListParams,
|
|
218
|
+
type SystemUpsertParams as SystemUpsertParams,
|
|
290
219
|
};
|
|
291
220
|
|
|
292
221
|
export {
|
|
293
222
|
Versions as Versions,
|
|
294
223
|
type SystemVersion as SystemVersion,
|
|
295
|
-
type
|
|
296
|
-
type VersionCreateParams as VersionCreateParams,
|
|
297
|
-
type VersionListParams as VersionListParams,
|
|
224
|
+
type VersionUpsertParams as VersionUpsertParams,
|
|
298
225
|
};
|
|
299
226
|
}
|
|
@@ -2,92 +2,51 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
|
-
import { PagePromise, PaginatedResponse, type PaginatedResponseParams } from '../../core/pagination';
|
|
6
5
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
6
|
import { path } from '../../internal/utils/path';
|
|
8
7
|
|
|
9
8
|
export class Versions extends APIResource {
|
|
10
9
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* Each version contains specific parameter values that match the system's
|
|
14
|
-
* `configSchema` - things like model parameters, thresholds, or processing
|
|
15
|
-
* options. Once created, versions cannot be modified, ensuring stable reference
|
|
16
|
-
* points for evaluations.
|
|
17
|
-
*
|
|
18
|
-
* When creating a system version:
|
|
19
|
-
*
|
|
20
|
-
* - The `config` object is validated against the parent system's `configSchema`.
|
|
21
|
-
* - System versions with validation errors are still stored, with errors included
|
|
22
|
-
* in the response.
|
|
23
|
-
* - Validation errors indicate fields that don't match the schema but don't
|
|
24
|
-
* prevent creation.
|
|
25
|
-
* - Having validation errors may affect how some evaluation metrics are
|
|
26
|
-
* calculated.
|
|
10
|
+
* Retrieve a specific system version by ID.
|
|
27
11
|
*
|
|
28
12
|
* @example
|
|
29
13
|
* ```ts
|
|
30
|
-
* const systemVersion = await client.systems.versions.
|
|
31
|
-
* '
|
|
32
|
-
* {
|
|
33
|
-
* config: {
|
|
34
|
-
* temperature: 0.1,
|
|
35
|
-
* maxTokens: 1024,
|
|
36
|
-
* model: 'gpt-4-turbo',
|
|
37
|
-
* },
|
|
38
|
-
* name: 'Production (Low Temperature)',
|
|
39
|
-
* },
|
|
14
|
+
* const systemVersion = await client.systems.versions.get(
|
|
15
|
+
* '87654321-4d3b-4ae4-8c7a-4b6e2a19ccf0',
|
|
40
16
|
* );
|
|
41
17
|
* ```
|
|
42
18
|
*/
|
|
43
|
-
|
|
44
|
-
return this._client.
|
|
19
|
+
get(systemVersionID: string, options?: RequestOptions): APIPromise<SystemVersion> {
|
|
20
|
+
return this._client.get(path`/systems/versions/${systemVersionID}`, options);
|
|
45
21
|
}
|
|
46
22
|
|
|
47
23
|
/**
|
|
48
|
-
*
|
|
24
|
+
* Create a new system version if it does not already exist. Does **not** set the
|
|
25
|
+
* created version to be the system's production version.
|
|
49
26
|
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
27
|
+
* If there is already a system version with the same config, its name will be
|
|
28
|
+
* updated.
|
|
52
29
|
*
|
|
53
30
|
* @example
|
|
54
31
|
* ```ts
|
|
55
|
-
*
|
|
56
|
-
* for await (const systemVersion of client.systems.versions.list(
|
|
32
|
+
* const systemVersion = await client.systems.versions.upsert(
|
|
57
33
|
* '12345678-0a8b-4f66-b6f3-2ddcfa097257',
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
options?: RequestOptions,
|
|
67
|
-
): PagePromise<SystemVersionsPaginatedResponse, SystemVersion> {
|
|
68
|
-
return this._client.getAPIList(path`/systems/${systemID}/configs`, PaginatedResponse<SystemVersion>, {
|
|
69
|
-
query,
|
|
70
|
-
...options,
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Retrieve a specific system version by ID.
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* ```ts
|
|
79
|
-
* const systemVersion = await client.systems.versions.get(
|
|
80
|
-
* '87654321-4d3b-4ae4-8c7a-4b6e2a19ccf0',
|
|
34
|
+
* {
|
|
35
|
+
* config: {
|
|
36
|
+
* temperature: 0.5,
|
|
37
|
+
* maxTokens: 1024,
|
|
38
|
+
* model: 'gemini-2.0-flash',
|
|
39
|
+
* },
|
|
40
|
+
* name: 'Test model: Gemini',
|
|
41
|
+
* },
|
|
81
42
|
* );
|
|
82
43
|
* ```
|
|
83
44
|
*/
|
|
84
|
-
|
|
85
|
-
return this._client.
|
|
45
|
+
upsert(systemID: string, body: VersionUpsertParams, options?: RequestOptions): APIPromise<SystemVersion> {
|
|
46
|
+
return this._client.post(path`/systems/${systemID}/versions`, { body, ...options });
|
|
86
47
|
}
|
|
87
48
|
}
|
|
88
49
|
|
|
89
|
-
export type SystemVersionsPaginatedResponse = PaginatedResponse<SystemVersion>;
|
|
90
|
-
|
|
91
50
|
/**
|
|
92
51
|
* A SystemVersion defines the specific settings for a System Under Test.
|
|
93
52
|
*
|
|
@@ -96,9 +55,6 @@ export type SystemVersionsPaginatedResponse = PaginatedResponse<SystemVersion>;
|
|
|
96
55
|
*
|
|
97
56
|
* When running evaluations, you reference a specific systemVersionId to establish
|
|
98
57
|
* which system version to test.
|
|
99
|
-
*
|
|
100
|
-
* System versions will be validated against the system's configSchema, with
|
|
101
|
-
* non-conforming values generating warnings.
|
|
102
58
|
*/
|
|
103
59
|
export interface SystemVersion {
|
|
104
60
|
/**
|
|
@@ -109,7 +65,7 @@ export interface SystemVersion {
|
|
|
109
65
|
/**
|
|
110
66
|
* The configuration of the system version.
|
|
111
67
|
*/
|
|
112
|
-
config:
|
|
68
|
+
config: Record<string, unknown>;
|
|
113
69
|
|
|
114
70
|
/**
|
|
115
71
|
* The name of the system version.
|
|
@@ -120,47 +76,21 @@ export interface SystemVersion {
|
|
|
120
76
|
* The ID of the system the system version belongs to.
|
|
121
77
|
*/
|
|
122
78
|
systemId: string;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Validation errors found in the system version. If present, the system version
|
|
126
|
-
* doesn't fully conform to its system's configSchema.
|
|
127
|
-
*/
|
|
128
|
-
validationErrors?: Array<SystemVersion.ValidationError>;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export namespace SystemVersion {
|
|
132
|
-
export interface ValidationError {
|
|
133
|
-
/**
|
|
134
|
-
* Human-readable error description.
|
|
135
|
-
*/
|
|
136
|
-
message: string;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* JSON Pointer to the field with the validation error.
|
|
140
|
-
*/
|
|
141
|
-
path: string;
|
|
142
|
-
}
|
|
143
79
|
}
|
|
144
80
|
|
|
145
|
-
export interface
|
|
81
|
+
export interface VersionUpsertParams {
|
|
146
82
|
/**
|
|
147
83
|
* The configuration of the system version.
|
|
148
84
|
*/
|
|
149
|
-
config:
|
|
85
|
+
config: Record<string, unknown>;
|
|
150
86
|
|
|
151
87
|
/**
|
|
152
|
-
* The name of the system version.
|
|
88
|
+
* The name of the system version. If creating a new system version and the name
|
|
89
|
+
* isn't provided, it will be autogenerated.
|
|
153
90
|
*/
|
|
154
|
-
name
|
|
91
|
+
name?: string;
|
|
155
92
|
}
|
|
156
93
|
|
|
157
|
-
export interface VersionListParams extends PaginatedResponseParams {}
|
|
158
|
-
|
|
159
94
|
export declare namespace Versions {
|
|
160
|
-
export {
|
|
161
|
-
type SystemVersion as SystemVersion,
|
|
162
|
-
type SystemVersionsPaginatedResponse as SystemVersionsPaginatedResponse,
|
|
163
|
-
type VersionCreateParams as VersionCreateParams,
|
|
164
|
-
type VersionListParams as VersionListParams,
|
|
165
|
-
};
|
|
95
|
+
export { type SystemVersion as SystemVersion, type VersionUpsertParams as VersionUpsertParams };
|
|
166
96
|
}
|
|
@@ -136,18 +136,18 @@ export interface Testcase {
|
|
|
136
136
|
* Derived from data based on the Testset's fieldMapping. Contains all fields
|
|
137
137
|
* marked as expected outputs, including those with validation errors.
|
|
138
138
|
*/
|
|
139
|
-
expected:
|
|
139
|
+
expected: Record<string, unknown>;
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
142
|
* Derived from data based on the Testset's fieldMapping. Contains all fields
|
|
143
143
|
* marked as inputs, including those with validation errors.
|
|
144
144
|
*/
|
|
145
|
-
inputs:
|
|
145
|
+
inputs: Record<string, unknown>;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
* The JSON data of the Testcase, which is validated against the Testset's schema.
|
|
149
149
|
*/
|
|
150
|
-
jsonData:
|
|
150
|
+
jsonData: Record<string, unknown>;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* The ID of the Testset this Testcase belongs to.
|
|
@@ -198,7 +198,7 @@ export namespace TestcaseCreateParams {
|
|
|
198
198
|
/**
|
|
199
199
|
* The JSON data of the Testcase, which is validated against the Testset's schema.
|
|
200
200
|
*/
|
|
201
|
-
jsonData:
|
|
201
|
+
jsonData: Record<string, unknown>;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
|
|
@@ -206,7 +206,7 @@ export interface TestcaseUpdateParams {
|
|
|
206
206
|
/**
|
|
207
207
|
* The JSON data of the Testcase, which is validated against the Testset's schema.
|
|
208
208
|
*/
|
|
209
|
-
jsonData:
|
|
209
|
+
jsonData: Record<string, unknown>;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
export interface TestcaseListParams extends PaginatedResponseParams {}
|
|
@@ -162,7 +162,7 @@ export interface Testset {
|
|
|
162
162
|
/**
|
|
163
163
|
* The JSON schema for each Testcase in the Testset.
|
|
164
164
|
*/
|
|
165
|
-
jsonSchema:
|
|
165
|
+
jsonSchema: Record<string, unknown>;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* The name of the Testset.
|
|
@@ -215,7 +215,7 @@ export interface TestsetCreateParams {
|
|
|
215
215
|
/**
|
|
216
216
|
* The JSON schema for each Testcase in the Testset.
|
|
217
217
|
*/
|
|
218
|
-
jsonSchema:
|
|
218
|
+
jsonSchema: Record<string, unknown>;
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
221
|
* The name of the Testset.
|
|
@@ -261,7 +261,7 @@ export interface TestsetUpdateParams {
|
|
|
261
261
|
/**
|
|
262
262
|
* The JSON schema for each Testcase in the Testset.
|
|
263
263
|
*/
|
|
264
|
-
jsonSchema?:
|
|
264
|
+
jsonSchema?: Record<string, unknown>;
|
|
265
265
|
|
|
266
266
|
/**
|
|
267
267
|
* The name of the Testset.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '2.0.0-alpha.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "2.0.0-alpha.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "2.0.0-alpha.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,eAAe,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '2.0.0-alpha.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,CAAC,2BAA2B"}
|