scorecard-ai 2.1.1 → 2.3.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/CHANGELOG.md +57 -0
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +2 -2
- package/client.mjs.map +1 -1
- package/internal/to-file.d.mts +1 -1
- package/internal/to-file.d.ts +1 -1
- package/internal/to-file.js +1 -1
- package/internal/to-file.mjs +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/metrics.d.mts +348 -28
- package/resources/metrics.d.mts.map +1 -1
- package/resources/metrics.d.ts +348 -28
- package/resources/metrics.d.ts.map +1 -1
- package/resources/metrics.js +30 -0
- package/resources/metrics.js.map +1 -1
- package/resources/metrics.mjs +30 -0
- package/resources/metrics.mjs.map +1 -1
- package/resources/records.d.mts +45 -1
- package/resources/records.d.mts.map +1 -1
- package/resources/records.d.ts +45 -1
- package/resources/records.d.ts.map +1 -1
- package/resources/records.js +32 -0
- package/resources/records.js.map +1 -1
- package/resources/records.mjs +32 -0
- package/resources/records.mjs.map +1 -1
- package/resources/runs.d.mts +52 -5
- package/resources/runs.d.mts.map +1 -1
- package/resources/runs.d.ts +52 -5
- package/resources/runs.d.ts.map +1 -1
- package/resources/runs.js +30 -0
- package/resources/runs.js.map +1 -1
- package/resources/runs.mjs +30 -0
- package/resources/runs.mjs.map +1 -1
- package/resources/scores.d.mts +1 -1
- package/resources/scores.d.ts +1 -1
- package/src/client.ts +36 -5
- package/src/internal/to-file.ts +1 -1
- package/src/resources/index.ts +18 -3
- package/src/resources/metrics.ts +438 -27
- package/src/resources/records.ts +68 -1
- package/src/resources/runs.ts +76 -5
- package/src/resources/scores.ts +1 -1
- 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/src/client.ts
CHANGED
|
@@ -18,7 +18,14 @@ import { AbstractPage, type PaginatedResponseParams, PaginatedResponseResponse }
|
|
|
18
18
|
import * as Uploads from './core/uploads';
|
|
19
19
|
import * as API from './resources/index';
|
|
20
20
|
import { APIPromise } from './core/api-promise';
|
|
21
|
-
import {
|
|
21
|
+
import {
|
|
22
|
+
Metric,
|
|
23
|
+
MetricCreateParams,
|
|
24
|
+
MetricListParams,
|
|
25
|
+
MetricUpdateParams,
|
|
26
|
+
Metrics,
|
|
27
|
+
MetricsPaginatedResponse,
|
|
28
|
+
} from './resources/metrics';
|
|
22
29
|
import {
|
|
23
30
|
Project,
|
|
24
31
|
ProjectCreateParams,
|
|
@@ -26,8 +33,16 @@ import {
|
|
|
26
33
|
Projects,
|
|
27
34
|
ProjectsPaginatedResponse,
|
|
28
35
|
} from './resources/projects';
|
|
29
|
-
import {
|
|
30
|
-
|
|
36
|
+
import {
|
|
37
|
+
Record,
|
|
38
|
+
RecordCreateParams,
|
|
39
|
+
RecordDeleteResponse,
|
|
40
|
+
RecordListParams,
|
|
41
|
+
RecordListResponse,
|
|
42
|
+
RecordListResponsesPaginatedResponse,
|
|
43
|
+
Records,
|
|
44
|
+
} from './resources/records';
|
|
45
|
+
import { Run, RunCreateParams, RunListParams, Runs, RunsPaginatedResponse } from './resources/runs';
|
|
31
46
|
import { Score, ScoreUpsertParams, Scores } from './resources/scores';
|
|
32
47
|
import {
|
|
33
48
|
Testcase,
|
|
@@ -872,16 +887,32 @@ export declare namespace Scorecard {
|
|
|
872
887
|
type TestcaseDeleteParams as TestcaseDeleteParams,
|
|
873
888
|
};
|
|
874
889
|
|
|
875
|
-
export {
|
|
890
|
+
export {
|
|
891
|
+
Runs as Runs,
|
|
892
|
+
type Run as Run,
|
|
893
|
+
type RunsPaginatedResponse as RunsPaginatedResponse,
|
|
894
|
+
type RunCreateParams as RunCreateParams,
|
|
895
|
+
type RunListParams as RunListParams,
|
|
896
|
+
};
|
|
876
897
|
|
|
877
898
|
export {
|
|
878
899
|
Metrics as Metrics,
|
|
879
900
|
type Metric as Metric,
|
|
901
|
+
type MetricsPaginatedResponse as MetricsPaginatedResponse,
|
|
880
902
|
type MetricCreateParams as MetricCreateParams,
|
|
881
903
|
type MetricUpdateParams as MetricUpdateParams,
|
|
904
|
+
type MetricListParams as MetricListParams,
|
|
882
905
|
};
|
|
883
906
|
|
|
884
|
-
export {
|
|
907
|
+
export {
|
|
908
|
+
Records as Records,
|
|
909
|
+
type Record as Record,
|
|
910
|
+
type RecordListResponse as RecordListResponse,
|
|
911
|
+
type RecordDeleteResponse as RecordDeleteResponse,
|
|
912
|
+
type RecordListResponsesPaginatedResponse as RecordListResponsesPaginatedResponse,
|
|
913
|
+
type RecordCreateParams as RecordCreateParams,
|
|
914
|
+
type RecordListParams as RecordListParams,
|
|
915
|
+
};
|
|
885
916
|
|
|
886
917
|
export { Scores as Scores, type Score as Score, type ScoreUpsertParams as ScoreUpsertParams };
|
|
887
918
|
|
package/src/internal/to-file.ts
CHANGED
|
@@ -73,7 +73,7 @@ export type ToFileInput =
|
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
76
|
-
* @param value the raw content of the file.
|
|
76
|
+
* @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
|
|
77
77
|
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
78
78
|
* @param {Object=} options additional properties
|
|
79
79
|
* @param {string=} options.type the MIME type of the content
|
package/src/resources/index.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export * from './shared';
|
|
4
|
-
export {
|
|
4
|
+
export {
|
|
5
|
+
Metrics,
|
|
6
|
+
type Metric,
|
|
7
|
+
type MetricCreateParams,
|
|
8
|
+
type MetricUpdateParams,
|
|
9
|
+
type MetricListParams,
|
|
10
|
+
type MetricsPaginatedResponse,
|
|
11
|
+
} from './metrics';
|
|
5
12
|
export {
|
|
6
13
|
Projects,
|
|
7
14
|
type Project,
|
|
@@ -9,8 +16,16 @@ export {
|
|
|
9
16
|
type ProjectListParams,
|
|
10
17
|
type ProjectsPaginatedResponse,
|
|
11
18
|
} from './projects';
|
|
12
|
-
export {
|
|
13
|
-
|
|
19
|
+
export {
|
|
20
|
+
Records,
|
|
21
|
+
type Record,
|
|
22
|
+
type RecordListResponse,
|
|
23
|
+
type RecordDeleteResponse,
|
|
24
|
+
type RecordCreateParams,
|
|
25
|
+
type RecordListParams,
|
|
26
|
+
type RecordListResponsesPaginatedResponse,
|
|
27
|
+
} from './records';
|
|
28
|
+
export { Runs, type Run, type RunCreateParams, type RunListParams, type RunsPaginatedResponse } from './runs';
|
|
14
29
|
export { Scores, type Score, type ScoreUpsertParams } from './scores';
|
|
15
30
|
export {
|
|
16
31
|
Systems,
|