scorecard-ai 1.0.0-alpha.2 → 1.0.0-alpha.3
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 +14 -0
- package/README.md +9 -11
- package/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- package/client.d.ts.map +1 -1
- package/client.js +9 -7
- package/client.js.map +1 -1
- package/client.mjs +9 -7
- package/client.mjs.map +1 -1
- package/internal/headers.d.mts +1 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts +1 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +2 -0
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +2 -0
- package/internal/headers.mjs.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js +4 -3
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +4 -3
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +32 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/lib/runAndEvaluate.d.mts +19 -0
- package/lib/runAndEvaluate.d.mts.map +1 -0
- package/lib/runAndEvaluate.d.ts +19 -0
- package/lib/runAndEvaluate.d.ts.map +1 -0
- package/lib/runAndEvaluate.js +40 -0
- package/lib/runAndEvaluate.js.map +1 -0
- package/lib/runAndEvaluate.mjs +36 -0
- package/lib/runAndEvaluate.mjs.map +1 -0
- package/package.json +11 -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/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/projects.d.mts +5 -5
- package/resources/projects.d.ts +5 -5
- package/resources/projects.js +2 -2
- package/resources/projects.mjs +2 -2
- package/resources/records.d.mts +63 -0
- package/resources/records.d.mts.map +1 -0
- package/resources/records.d.ts +63 -0
- package/resources/records.d.ts.map +1 -0
- package/resources/{execution-records.js → records.js} +6 -6
- package/resources/records.js.map +1 -0
- package/resources/{execution-records.mjs → records.mjs} +4 -4
- package/resources/records.mjs.map +1 -0
- package/resources/runs.d.mts +13 -13
- package/resources/runs.d.ts +13 -13
- package/resources/runs.js +2 -2
- package/resources/runs.mjs +2 -2
- package/resources/shared.d.mts +1 -1
- package/resources/shared.d.ts +1 -1
- package/resources/system-configs.d.mts +11 -11
- package/resources/system-configs.d.ts +11 -11
- package/resources/systems.d.mts +20 -20
- package/resources/systems.d.ts +20 -20
- package/resources/testcases.d.mts +23 -23
- package/resources/testcases.d.ts +23 -23
- package/resources/testcases.js +5 -5
- package/resources/testcases.mjs +5 -5
- package/resources/testsets.d.mts +43 -42
- package/resources/testsets.d.mts.map +1 -1
- package/resources/testsets.d.ts +43 -42
- package/resources/testsets.d.ts.map +1 -1
- package/resources/testsets.js +5 -5
- package/resources/testsets.mjs +5 -5
- package/src/client.ts +11 -15
- package/src/internal/headers.ts +3 -2
- package/src/internal/utils/base64.ts +5 -4
- package/src/internal/utils/bytes.ts +32 -0
- package/src/lib/runAndEvaluate.ts +54 -0
- package/src/resources/index.ts +1 -5
- package/src/resources/projects.ts +5 -5
- package/src/resources/records.ts +79 -0
- package/src/resources/runs.ts +13 -13
- package/src/resources/shared.ts +1 -1
- package/src/resources/system-configs.ts +11 -11
- package/src/resources/systems.ts +20 -20
- package/src/resources/testcases.ts +23 -23
- package/src/resources/testsets.ts +43 -42
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/execution-records.d.mts +0 -62
- package/resources/execution-records.d.mts.map +0 -1
- package/resources/execution-records.d.ts +0 -62
- package/resources/execution-records.d.ts.map +0 -1
- package/resources/execution-records.js.map +0 -1
- package/resources/execution-records.mjs.map +0 -1
- package/src/resources/execution-records.ts +0 -85
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { path } from "../internal/utils/path.mjs";
|
|
4
|
-
export class
|
|
4
|
+
export class Records extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Create a new
|
|
6
|
+
* Create a new Record in a Run.
|
|
7
7
|
*/
|
|
8
8
|
create(runID, body, options) {
|
|
9
|
-
return this._client.post(path `/runs/${runID}/
|
|
9
|
+
return this._client.post(path `/runs/${runID}/records`, { body, ...options });
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
//# sourceMappingURL=
|
|
12
|
+
//# sourceMappingURL=records.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"records.mjs","sourceRoot":"","sources":["../src/resources/records.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,KAAa,EAAE,IAAwB,EAAE,OAAwB;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,SAAS,KAAK,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF"}
|
package/resources/runs.d.mts
CHANGED
|
@@ -3,11 +3,11 @@ import { APIPromise } from "../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
export declare class Runs extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Create a new
|
|
6
|
+
* Create a new Run.
|
|
7
7
|
*/
|
|
8
8
|
create(projectID: string, body: RunCreateParams, options?: RequestOptions): APIPromise<Run>;
|
|
9
9
|
/**
|
|
10
|
-
* Update the status of a
|
|
10
|
+
* Update the status of a Run.
|
|
11
11
|
*/
|
|
12
12
|
update(runID: string, body: RunUpdateParams, options?: RequestOptions): APIPromise<RunUpdateResponse>;
|
|
13
13
|
}
|
|
@@ -16,53 +16,53 @@ export declare class Runs extends APIResource {
|
|
|
16
16
|
*/
|
|
17
17
|
export interface Run {
|
|
18
18
|
/**
|
|
19
|
-
* The ID of the Run
|
|
19
|
+
* The ID of the Run.
|
|
20
20
|
*/
|
|
21
21
|
id: string;
|
|
22
22
|
/**
|
|
23
|
-
* The IDs of the metrics this Run is using
|
|
23
|
+
* The IDs of the metrics this Run is using.
|
|
24
24
|
*/
|
|
25
25
|
metricIds: Array<string>;
|
|
26
26
|
/**
|
|
27
|
-
* The status of the Run
|
|
27
|
+
* The status of the Run.
|
|
28
28
|
*/
|
|
29
29
|
status: 'pending' | 'awaiting_execution' | 'running_execution' | 'awaiting_scoring' | 'running_scoring' | 'awaiting_human_scoring' | 'completed';
|
|
30
30
|
/**
|
|
31
|
-
* The ID of the Testset this Run is testing
|
|
31
|
+
* The ID of the Testset this Run is testing.
|
|
32
32
|
*/
|
|
33
33
|
testsetId: string;
|
|
34
34
|
/**
|
|
35
|
-
* The ID of the system configuration this Run is using
|
|
35
|
+
* The ID of the system configuration this Run is using.
|
|
36
36
|
*/
|
|
37
37
|
systemConfigId?: string;
|
|
38
38
|
}
|
|
39
39
|
export interface RunUpdateResponse {
|
|
40
40
|
/**
|
|
41
|
-
* The ID of the Run
|
|
41
|
+
* The ID of the Run.
|
|
42
42
|
*/
|
|
43
43
|
id: string;
|
|
44
44
|
/**
|
|
45
|
-
* The status of the Run
|
|
45
|
+
* The status of the Run.
|
|
46
46
|
*/
|
|
47
47
|
status: 'pending' | 'awaiting_execution' | 'running_execution' | 'awaiting_scoring' | 'running_scoring' | 'awaiting_human_scoring' | 'completed';
|
|
48
48
|
}
|
|
49
49
|
export interface RunCreateParams {
|
|
50
50
|
/**
|
|
51
|
-
* The IDs of the metrics this Run is using
|
|
51
|
+
* The IDs of the metrics this Run is using.
|
|
52
52
|
*/
|
|
53
53
|
metricIds: Array<string>;
|
|
54
54
|
/**
|
|
55
|
-
* The ID of the Testset this Run is testing
|
|
55
|
+
* The ID of the Testset this Run is testing.
|
|
56
56
|
*/
|
|
57
57
|
testsetId: string;
|
|
58
58
|
/**
|
|
59
|
-
* The ID of the system configuration this Run is using
|
|
59
|
+
* The ID of the system configuration this Run is using.
|
|
60
60
|
*/
|
|
61
61
|
systemConfigId?: string;
|
|
62
62
|
}
|
|
63
63
|
export interface RunUpdateParams {
|
|
64
64
|
/**
|
|
65
|
-
* The status of the Run
|
|
65
|
+
* The status of the Run.
|
|
66
66
|
*/
|
|
67
67
|
status: 'pending' | 'awaiting_execution' | 'running_execution' | 'awaiting_scoring' | 'running_scoring' | 'awaiting_human_scoring' | 'completed';
|
|
68
68
|
}
|
package/resources/runs.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { APIPromise } from "../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
4
|
export declare class Runs extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Create a new
|
|
6
|
+
* Create a new Run.
|
|
7
7
|
*/
|
|
8
8
|
create(projectID: string, body: RunCreateParams, options?: RequestOptions): APIPromise<Run>;
|
|
9
9
|
/**
|
|
10
|
-
* Update the status of a
|
|
10
|
+
* Update the status of a Run.
|
|
11
11
|
*/
|
|
12
12
|
update(runID: string, body: RunUpdateParams, options?: RequestOptions): APIPromise<RunUpdateResponse>;
|
|
13
13
|
}
|
|
@@ -16,53 +16,53 @@ export declare class Runs extends APIResource {
|
|
|
16
16
|
*/
|
|
17
17
|
export interface Run {
|
|
18
18
|
/**
|
|
19
|
-
* The ID of the Run
|
|
19
|
+
* The ID of the Run.
|
|
20
20
|
*/
|
|
21
21
|
id: string;
|
|
22
22
|
/**
|
|
23
|
-
* The IDs of the metrics this Run is using
|
|
23
|
+
* The IDs of the metrics this Run is using.
|
|
24
24
|
*/
|
|
25
25
|
metricIds: Array<string>;
|
|
26
26
|
/**
|
|
27
|
-
* The status of the Run
|
|
27
|
+
* The status of the Run.
|
|
28
28
|
*/
|
|
29
29
|
status: 'pending' | 'awaiting_execution' | 'running_execution' | 'awaiting_scoring' | 'running_scoring' | 'awaiting_human_scoring' | 'completed';
|
|
30
30
|
/**
|
|
31
|
-
* The ID of the Testset this Run is testing
|
|
31
|
+
* The ID of the Testset this Run is testing.
|
|
32
32
|
*/
|
|
33
33
|
testsetId: string;
|
|
34
34
|
/**
|
|
35
|
-
* The ID of the system configuration this Run is using
|
|
35
|
+
* The ID of the system configuration this Run is using.
|
|
36
36
|
*/
|
|
37
37
|
systemConfigId?: string;
|
|
38
38
|
}
|
|
39
39
|
export interface RunUpdateResponse {
|
|
40
40
|
/**
|
|
41
|
-
* The ID of the Run
|
|
41
|
+
* The ID of the Run.
|
|
42
42
|
*/
|
|
43
43
|
id: string;
|
|
44
44
|
/**
|
|
45
|
-
* The status of the Run
|
|
45
|
+
* The status of the Run.
|
|
46
46
|
*/
|
|
47
47
|
status: 'pending' | 'awaiting_execution' | 'running_execution' | 'awaiting_scoring' | 'running_scoring' | 'awaiting_human_scoring' | 'completed';
|
|
48
48
|
}
|
|
49
49
|
export interface RunCreateParams {
|
|
50
50
|
/**
|
|
51
|
-
* The IDs of the metrics this Run is using
|
|
51
|
+
* The IDs of the metrics this Run is using.
|
|
52
52
|
*/
|
|
53
53
|
metricIds: Array<string>;
|
|
54
54
|
/**
|
|
55
|
-
* The ID of the Testset this Run is testing
|
|
55
|
+
* The ID of the Testset this Run is testing.
|
|
56
56
|
*/
|
|
57
57
|
testsetId: string;
|
|
58
58
|
/**
|
|
59
|
-
* The ID of the system configuration this Run is using
|
|
59
|
+
* The ID of the system configuration this Run is using.
|
|
60
60
|
*/
|
|
61
61
|
systemConfigId?: string;
|
|
62
62
|
}
|
|
63
63
|
export interface RunUpdateParams {
|
|
64
64
|
/**
|
|
65
|
-
* The status of the Run
|
|
65
|
+
* The status of the Run.
|
|
66
66
|
*/
|
|
67
67
|
status: 'pending' | 'awaiting_execution' | 'running_execution' | 'awaiting_scoring' | 'running_scoring' | 'awaiting_human_scoring' | 'completed';
|
|
68
68
|
}
|
package/resources/runs.js
CHANGED
|
@@ -6,13 +6,13 @@ const resource_1 = require("../core/resource.js");
|
|
|
6
6
|
const path_1 = require("../internal/utils/path.js");
|
|
7
7
|
class Runs extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* Create a new
|
|
9
|
+
* Create a new Run.
|
|
10
10
|
*/
|
|
11
11
|
create(projectID, body, options) {
|
|
12
12
|
return this._client.post((0, path_1.path) `/projects/${projectID}/runs`, { body, ...options });
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* Update the status of a
|
|
15
|
+
* Update the status of a Run.
|
|
16
16
|
*/
|
|
17
17
|
update(runID, body, options) {
|
|
18
18
|
return this._client.patch((0, path_1.path) `/runs/${runID}`, { body, ...options });
|
package/resources/runs.mjs
CHANGED
|
@@ -3,13 +3,13 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
3
3
|
import { path } from "../internal/utils/path.mjs";
|
|
4
4
|
export class Runs extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Create a new
|
|
6
|
+
* Create a new Run.
|
|
7
7
|
*/
|
|
8
8
|
create(projectID, body, options) {
|
|
9
9
|
return this._client.post(path `/projects/${projectID}/runs`, { body, ...options });
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* Update the status of a
|
|
12
|
+
* Update the status of a Run.
|
|
13
13
|
*/
|
|
14
14
|
update(runID, body, options) {
|
|
15
15
|
return this._client.patch(path `/runs/${runID}`, { body, ...options });
|
package/resources/shared.d.mts
CHANGED
package/resources/shared.d.ts
CHANGED
|
@@ -48,19 +48,19 @@ export type SystemConfigsPaginatedResponse = PaginatedResponse<SystemConfig>;
|
|
|
48
48
|
*/
|
|
49
49
|
export interface SystemConfig {
|
|
50
50
|
/**
|
|
51
|
-
* The ID of the system configuration
|
|
51
|
+
* The ID of the system configuration.
|
|
52
52
|
*/
|
|
53
53
|
id: string;
|
|
54
54
|
/**
|
|
55
|
-
* The configuration of the system
|
|
55
|
+
* The configuration of the system.
|
|
56
56
|
*/
|
|
57
57
|
config: Record<string, unknown>;
|
|
58
58
|
/**
|
|
59
|
-
* The name of the system configuration
|
|
59
|
+
* The name of the system configuration.
|
|
60
60
|
*/
|
|
61
61
|
name: string;
|
|
62
62
|
/**
|
|
63
|
-
* The ID of the system the configuration belongs to
|
|
63
|
+
* The ID of the system the configuration belongs to.
|
|
64
64
|
*/
|
|
65
65
|
systemId: string;
|
|
66
66
|
/**
|
|
@@ -72,22 +72,22 @@ export interface SystemConfig {
|
|
|
72
72
|
export declare namespace SystemConfig {
|
|
73
73
|
interface ValidationError {
|
|
74
74
|
/**
|
|
75
|
-
* Human-readable error description
|
|
75
|
+
* Human-readable error description.
|
|
76
76
|
*/
|
|
77
77
|
message: string;
|
|
78
78
|
/**
|
|
79
|
-
* JSON Pointer to the field with the validation error
|
|
79
|
+
* JSON Pointer to the field with the validation error.
|
|
80
80
|
*/
|
|
81
81
|
path: string;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
export interface SystemConfigCreateParams {
|
|
85
85
|
/**
|
|
86
|
-
* The configuration of the system
|
|
86
|
+
* The configuration of the system.
|
|
87
87
|
*/
|
|
88
88
|
config: Record<string, unknown>;
|
|
89
89
|
/**
|
|
90
|
-
* The name of the system configuration
|
|
90
|
+
* The name of the system configuration.
|
|
91
91
|
*/
|
|
92
92
|
name: string;
|
|
93
93
|
/**
|
|
@@ -99,11 +99,11 @@ export interface SystemConfigCreateParams {
|
|
|
99
99
|
export declare namespace SystemConfigCreateParams {
|
|
100
100
|
interface ValidationError {
|
|
101
101
|
/**
|
|
102
|
-
* Human-readable error description
|
|
102
|
+
* Human-readable error description.
|
|
103
103
|
*/
|
|
104
104
|
message: string;
|
|
105
105
|
/**
|
|
106
|
-
* JSON Pointer to the field with the validation error
|
|
106
|
+
* JSON Pointer to the field with the validation error.
|
|
107
107
|
*/
|
|
108
108
|
path: string;
|
|
109
109
|
}
|
|
@@ -112,7 +112,7 @@ export interface SystemConfigListParams extends PaginatedResponseParams {
|
|
|
112
112
|
}
|
|
113
113
|
export interface SystemConfigGetParams {
|
|
114
114
|
/**
|
|
115
|
-
* The ID of the system the configuration belongs to
|
|
115
|
+
* The ID of the system the configuration belongs to.
|
|
116
116
|
*/
|
|
117
117
|
systemId: string;
|
|
118
118
|
}
|
|
@@ -48,19 +48,19 @@ export type SystemConfigsPaginatedResponse = PaginatedResponse<SystemConfig>;
|
|
|
48
48
|
*/
|
|
49
49
|
export interface SystemConfig {
|
|
50
50
|
/**
|
|
51
|
-
* The ID of the system configuration
|
|
51
|
+
* The ID of the system configuration.
|
|
52
52
|
*/
|
|
53
53
|
id: string;
|
|
54
54
|
/**
|
|
55
|
-
* The configuration of the system
|
|
55
|
+
* The configuration of the system.
|
|
56
56
|
*/
|
|
57
57
|
config: Record<string, unknown>;
|
|
58
58
|
/**
|
|
59
|
-
* The name of the system configuration
|
|
59
|
+
* The name of the system configuration.
|
|
60
60
|
*/
|
|
61
61
|
name: string;
|
|
62
62
|
/**
|
|
63
|
-
* The ID of the system the configuration belongs to
|
|
63
|
+
* The ID of the system the configuration belongs to.
|
|
64
64
|
*/
|
|
65
65
|
systemId: string;
|
|
66
66
|
/**
|
|
@@ -72,22 +72,22 @@ export interface SystemConfig {
|
|
|
72
72
|
export declare namespace SystemConfig {
|
|
73
73
|
interface ValidationError {
|
|
74
74
|
/**
|
|
75
|
-
* Human-readable error description
|
|
75
|
+
* Human-readable error description.
|
|
76
76
|
*/
|
|
77
77
|
message: string;
|
|
78
78
|
/**
|
|
79
|
-
* JSON Pointer to the field with the validation error
|
|
79
|
+
* JSON Pointer to the field with the validation error.
|
|
80
80
|
*/
|
|
81
81
|
path: string;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
export interface SystemConfigCreateParams {
|
|
85
85
|
/**
|
|
86
|
-
* The configuration of the system
|
|
86
|
+
* The configuration of the system.
|
|
87
87
|
*/
|
|
88
88
|
config: Record<string, unknown>;
|
|
89
89
|
/**
|
|
90
|
-
* The name of the system configuration
|
|
90
|
+
* The name of the system configuration.
|
|
91
91
|
*/
|
|
92
92
|
name: string;
|
|
93
93
|
/**
|
|
@@ -99,11 +99,11 @@ export interface SystemConfigCreateParams {
|
|
|
99
99
|
export declare namespace SystemConfigCreateParams {
|
|
100
100
|
interface ValidationError {
|
|
101
101
|
/**
|
|
102
|
-
* Human-readable error description
|
|
102
|
+
* Human-readable error description.
|
|
103
103
|
*/
|
|
104
104
|
message: string;
|
|
105
105
|
/**
|
|
106
|
-
* JSON Pointer to the field with the validation error
|
|
106
|
+
* JSON Pointer to the field with the validation error.
|
|
107
107
|
*/
|
|
108
108
|
path: string;
|
|
109
109
|
}
|
|
@@ -112,7 +112,7 @@ export interface SystemConfigListParams extends PaginatedResponseParams {
|
|
|
112
112
|
}
|
|
113
113
|
export interface SystemConfigGetParams {
|
|
114
114
|
/**
|
|
115
|
-
* The ID of the system the configuration belongs to
|
|
115
|
+
* The ID of the system the configuration belongs to.
|
|
116
116
|
*/
|
|
117
117
|
systemId: string;
|
|
118
118
|
}
|
package/resources/systems.d.mts
CHANGED
|
@@ -57,9 +57,9 @@ export type SystemsPaginatedResponse = PaginatedResponse<System>;
|
|
|
57
57
|
*
|
|
58
58
|
* It specifies three contracts through schemas:
|
|
59
59
|
*
|
|
60
|
-
* - inputSchema: The structure of data the system accepts
|
|
61
|
-
* - outputSchema: The structure of data the system produces
|
|
62
|
-
* - configSchema: The parameters that modify system behavior
|
|
60
|
+
* - inputSchema: The structure of data the system accepts.
|
|
61
|
+
* - outputSchema: The structure of data the system produces.
|
|
62
|
+
* - configSchema: The parameters that modify system behavior.
|
|
63
63
|
*
|
|
64
64
|
* This abstraction lets you evaluate any system as a black box, focusing on its
|
|
65
65
|
* interface rather than implementation details. It's particularly useful for
|
|
@@ -70,77 +70,77 @@ export type SystemsPaginatedResponse = PaginatedResponse<System>;
|
|
|
70
70
|
*/
|
|
71
71
|
export interface System {
|
|
72
72
|
/**
|
|
73
|
-
* The ID of the system
|
|
73
|
+
* The ID of the system.
|
|
74
74
|
*/
|
|
75
75
|
id: string;
|
|
76
76
|
/**
|
|
77
|
-
* The schema of the system's configuration
|
|
77
|
+
* The schema of the system's configuration.
|
|
78
78
|
*/
|
|
79
79
|
configSchema: Record<string, unknown>;
|
|
80
80
|
/**
|
|
81
|
-
* The description of the system
|
|
81
|
+
* The description of the system.
|
|
82
82
|
*/
|
|
83
83
|
description: string;
|
|
84
84
|
/**
|
|
85
|
-
* The schema of the system's inputs
|
|
85
|
+
* The schema of the system's inputs.
|
|
86
86
|
*/
|
|
87
87
|
inputSchema: Record<string, unknown>;
|
|
88
88
|
/**
|
|
89
|
-
* The name of the system
|
|
89
|
+
* The name of the system.
|
|
90
90
|
*/
|
|
91
91
|
name: string;
|
|
92
92
|
/**
|
|
93
|
-
* The schema of the system's outputs
|
|
93
|
+
* The schema of the system's outputs.
|
|
94
94
|
*/
|
|
95
95
|
outputSchema: Record<string, unknown>;
|
|
96
96
|
}
|
|
97
97
|
export interface SystemDeleteResponse {
|
|
98
98
|
/**
|
|
99
|
-
* Whether the deletion was successful
|
|
99
|
+
* Whether the deletion was successful.
|
|
100
100
|
*/
|
|
101
101
|
success: boolean;
|
|
102
102
|
}
|
|
103
103
|
export interface SystemCreateParams {
|
|
104
104
|
/**
|
|
105
|
-
* The schema of the system's configuration
|
|
105
|
+
* The schema of the system's configuration.
|
|
106
106
|
*/
|
|
107
107
|
configSchema: Record<string, unknown>;
|
|
108
108
|
/**
|
|
109
|
-
* The description of the system
|
|
109
|
+
* The description of the system.
|
|
110
110
|
*/
|
|
111
111
|
description: string;
|
|
112
112
|
/**
|
|
113
|
-
* The schema of the system's inputs
|
|
113
|
+
* The schema of the system's inputs.
|
|
114
114
|
*/
|
|
115
115
|
inputSchema: Record<string, unknown>;
|
|
116
116
|
/**
|
|
117
|
-
* The name of the system
|
|
117
|
+
* The name of the system.
|
|
118
118
|
*/
|
|
119
119
|
name: string;
|
|
120
120
|
/**
|
|
121
|
-
* The schema of the system's outputs
|
|
121
|
+
* The schema of the system's outputs.
|
|
122
122
|
*/
|
|
123
123
|
outputSchema: Record<string, unknown>;
|
|
124
124
|
}
|
|
125
125
|
export interface SystemUpdateParams {
|
|
126
126
|
/**
|
|
127
|
-
* The schema of the system's configuration
|
|
127
|
+
* The schema of the system's configuration.
|
|
128
128
|
*/
|
|
129
129
|
configSchema?: Record<string, unknown>;
|
|
130
130
|
/**
|
|
131
|
-
* The description of the system
|
|
131
|
+
* The description of the system.
|
|
132
132
|
*/
|
|
133
133
|
description?: string;
|
|
134
134
|
/**
|
|
135
|
-
* The schema of the system's inputs
|
|
135
|
+
* The schema of the system's inputs.
|
|
136
136
|
*/
|
|
137
137
|
inputSchema?: Record<string, unknown>;
|
|
138
138
|
/**
|
|
139
|
-
* The name of the system
|
|
139
|
+
* The name of the system.
|
|
140
140
|
*/
|
|
141
141
|
name?: string;
|
|
142
142
|
/**
|
|
143
|
-
* The schema of the system's outputs
|
|
143
|
+
* The schema of the system's outputs.
|
|
144
144
|
*/
|
|
145
145
|
outputSchema?: Record<string, unknown>;
|
|
146
146
|
}
|
package/resources/systems.d.ts
CHANGED
|
@@ -57,9 +57,9 @@ export type SystemsPaginatedResponse = PaginatedResponse<System>;
|
|
|
57
57
|
*
|
|
58
58
|
* It specifies three contracts through schemas:
|
|
59
59
|
*
|
|
60
|
-
* - inputSchema: The structure of data the system accepts
|
|
61
|
-
* - outputSchema: The structure of data the system produces
|
|
62
|
-
* - configSchema: The parameters that modify system behavior
|
|
60
|
+
* - inputSchema: The structure of data the system accepts.
|
|
61
|
+
* - outputSchema: The structure of data the system produces.
|
|
62
|
+
* - configSchema: The parameters that modify system behavior.
|
|
63
63
|
*
|
|
64
64
|
* This abstraction lets you evaluate any system as a black box, focusing on its
|
|
65
65
|
* interface rather than implementation details. It's particularly useful for
|
|
@@ -70,77 +70,77 @@ export type SystemsPaginatedResponse = PaginatedResponse<System>;
|
|
|
70
70
|
*/
|
|
71
71
|
export interface System {
|
|
72
72
|
/**
|
|
73
|
-
* The ID of the system
|
|
73
|
+
* The ID of the system.
|
|
74
74
|
*/
|
|
75
75
|
id: string;
|
|
76
76
|
/**
|
|
77
|
-
* The schema of the system's configuration
|
|
77
|
+
* The schema of the system's configuration.
|
|
78
78
|
*/
|
|
79
79
|
configSchema: Record<string, unknown>;
|
|
80
80
|
/**
|
|
81
|
-
* The description of the system
|
|
81
|
+
* The description of the system.
|
|
82
82
|
*/
|
|
83
83
|
description: string;
|
|
84
84
|
/**
|
|
85
|
-
* The schema of the system's inputs
|
|
85
|
+
* The schema of the system's inputs.
|
|
86
86
|
*/
|
|
87
87
|
inputSchema: Record<string, unknown>;
|
|
88
88
|
/**
|
|
89
|
-
* The name of the system
|
|
89
|
+
* The name of the system.
|
|
90
90
|
*/
|
|
91
91
|
name: string;
|
|
92
92
|
/**
|
|
93
|
-
* The schema of the system's outputs
|
|
93
|
+
* The schema of the system's outputs.
|
|
94
94
|
*/
|
|
95
95
|
outputSchema: Record<string, unknown>;
|
|
96
96
|
}
|
|
97
97
|
export interface SystemDeleteResponse {
|
|
98
98
|
/**
|
|
99
|
-
* Whether the deletion was successful
|
|
99
|
+
* Whether the deletion was successful.
|
|
100
100
|
*/
|
|
101
101
|
success: boolean;
|
|
102
102
|
}
|
|
103
103
|
export interface SystemCreateParams {
|
|
104
104
|
/**
|
|
105
|
-
* The schema of the system's configuration
|
|
105
|
+
* The schema of the system's configuration.
|
|
106
106
|
*/
|
|
107
107
|
configSchema: Record<string, unknown>;
|
|
108
108
|
/**
|
|
109
|
-
* The description of the system
|
|
109
|
+
* The description of the system.
|
|
110
110
|
*/
|
|
111
111
|
description: string;
|
|
112
112
|
/**
|
|
113
|
-
* The schema of the system's inputs
|
|
113
|
+
* The schema of the system's inputs.
|
|
114
114
|
*/
|
|
115
115
|
inputSchema: Record<string, unknown>;
|
|
116
116
|
/**
|
|
117
|
-
* The name of the system
|
|
117
|
+
* The name of the system.
|
|
118
118
|
*/
|
|
119
119
|
name: string;
|
|
120
120
|
/**
|
|
121
|
-
* The schema of the system's outputs
|
|
121
|
+
* The schema of the system's outputs.
|
|
122
122
|
*/
|
|
123
123
|
outputSchema: Record<string, unknown>;
|
|
124
124
|
}
|
|
125
125
|
export interface SystemUpdateParams {
|
|
126
126
|
/**
|
|
127
|
-
* The schema of the system's configuration
|
|
127
|
+
* The schema of the system's configuration.
|
|
128
128
|
*/
|
|
129
129
|
configSchema?: Record<string, unknown>;
|
|
130
130
|
/**
|
|
131
|
-
* The description of the system
|
|
131
|
+
* The description of the system.
|
|
132
132
|
*/
|
|
133
133
|
description?: string;
|
|
134
134
|
/**
|
|
135
|
-
* The schema of the system's inputs
|
|
135
|
+
* The schema of the system's inputs.
|
|
136
136
|
*/
|
|
137
137
|
inputSchema?: Record<string, unknown>;
|
|
138
138
|
/**
|
|
139
|
-
* The name of the system
|
|
139
|
+
* The name of the system.
|
|
140
140
|
*/
|
|
141
141
|
name?: string;
|
|
142
142
|
/**
|
|
143
|
-
* The schema of the system's outputs
|
|
143
|
+
* The schema of the system's outputs.
|
|
144
144
|
*/
|
|
145
145
|
outputSchema?: Record<string, unknown>;
|
|
146
146
|
}
|