openlayer 0.2.1 → 0.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 +30 -0
- package/README.md +1 -4
- package/index.d.mts +7 -3
- package/index.d.ts +7 -3
- package/index.d.ts.map +1 -1
- package/index.js +4 -2
- package/index.js.map +1 -1
- package/index.mjs +4 -2
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/commits/test-results.d.ts +4 -4
- package/resources/commits/test-results.d.ts.map +1 -1
- package/resources/commits/test-results.js +3 -3
- package/resources/commits/test-results.js.map +1 -1
- package/resources/commits/test-results.mjs +3 -3
- package/resources/commits/test-results.mjs.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/inference-pipelines/data.d.ts +4 -4
- package/resources/inference-pipelines/data.d.ts.map +1 -1
- package/resources/inference-pipelines/data.js +3 -3
- package/resources/inference-pipelines/data.js.map +1 -1
- package/resources/inference-pipelines/data.mjs +3 -3
- package/resources/inference-pipelines/data.mjs.map +1 -1
- package/resources/inference-pipelines/test-results.d.ts +4 -8
- package/resources/inference-pipelines/test-results.d.ts.map +1 -1
- package/resources/inference-pipelines/test-results.js +3 -3
- package/resources/inference-pipelines/test-results.js.map +1 -1
- package/resources/inference-pipelines/test-results.mjs +3 -3
- package/resources/inference-pipelines/test-results.mjs.map +1 -1
- package/resources/projects/commits.d.ts +4 -4
- package/resources/projects/commits.d.ts.map +1 -1
- package/resources/projects/commits.js +3 -3
- package/resources/projects/commits.js.map +1 -1
- package/resources/projects/commits.mjs +3 -3
- package/resources/projects/commits.mjs.map +1 -1
- package/resources/projects/index.d.ts +2 -2
- package/resources/projects/index.d.ts.map +1 -1
- package/resources/projects/index.js.map +1 -1
- package/resources/projects/index.mjs +1 -1
- package/resources/projects/index.mjs.map +1 -1
- package/resources/projects/inference-pipelines.d.ts +83 -7
- package/resources/projects/inference-pipelines.d.ts.map +1 -1
- package/resources/projects/inference-pipelines.js +9 -3
- package/resources/projects/inference-pipelines.js.map +1 -1
- package/resources/projects/inference-pipelines.mjs +9 -3
- package/resources/projects/inference-pipelines.mjs.map +1 -1
- package/resources/projects/projects.d.ts +109 -22
- package/resources/projects/projects.d.ts.map +1 -1
- package/resources/projects/projects.js +6 -0
- package/resources/projects/projects.js.map +1 -1
- package/resources/projects/projects.mjs +6 -0
- package/resources/projects/projects.mjs.map +1 -1
- package/src/index.ts +8 -3
- package/src/resources/commits/test-results.ts +7 -7
- package/src/resources/index.ts +7 -1
- package/src/resources/inference-pipelines/data.ts +5 -5
- package/src/resources/inference-pipelines/test-results.ts +7 -12
- package/src/resources/projects/commits.ts +7 -7
- package/src/resources/projects/index.ts +9 -1
- package/src/resources/projects/inference-pipelines.ts +111 -11
- package/src/resources/projects/projects.ts +144 -27
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Commits } from "./commits.mjs";
|
|
3
3
|
export { InferencePipelines, } from "./inference-pipelines.mjs";
|
|
4
|
-
export { Projects } from "./projects.mjs";
|
|
4
|
+
export { Projects, } from "./projects.mjs";
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAwC,OAAO,EAAE;OACjD,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAwC,OAAO,EAAE;OACjD,EAKL,kBAAkB,GACnB;OACM,EAKL,QAAQ,GACT"}
|
|
@@ -1,12 +1,80 @@
|
|
|
1
|
-
import * as Core from "../../core.js";
|
|
2
1
|
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
3
|
import * as InferencePipelinesAPI from "./inference-pipelines.js";
|
|
4
4
|
export declare class InferencePipelines extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create an inference pipeline in a project.
|
|
7
|
+
*/
|
|
8
|
+
create(projectId: string, body: InferencePipelineCreateParams, options?: Core.RequestOptions): Core.APIPromise<InferencePipelineCreateResponse>;
|
|
5
9
|
/**
|
|
6
10
|
* List the inference pipelines in a project.
|
|
7
11
|
*/
|
|
8
|
-
list(
|
|
9
|
-
list(
|
|
12
|
+
list(projectId: string, query?: InferencePipelineListParams, options?: Core.RequestOptions): Core.APIPromise<InferencePipelineListResponse>;
|
|
13
|
+
list(projectId: string, options?: Core.RequestOptions): Core.APIPromise<InferencePipelineListResponse>;
|
|
14
|
+
}
|
|
15
|
+
export interface InferencePipelineCreateResponse {
|
|
16
|
+
/**
|
|
17
|
+
* The inference pipeline id.
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* The creation date.
|
|
22
|
+
*/
|
|
23
|
+
dateCreated: string;
|
|
24
|
+
/**
|
|
25
|
+
* The last test evaluation date.
|
|
26
|
+
*/
|
|
27
|
+
dateLastEvaluated: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* The last data sample received date.
|
|
30
|
+
*/
|
|
31
|
+
dateLastSampleReceived: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* The next test evaluation date.
|
|
34
|
+
*/
|
|
35
|
+
dateOfNextEvaluation: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* The last updated date.
|
|
38
|
+
*/
|
|
39
|
+
dateUpdated: string;
|
|
40
|
+
/**
|
|
41
|
+
* The inference pipeline description.
|
|
42
|
+
*/
|
|
43
|
+
description: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* The number of tests failing.
|
|
46
|
+
*/
|
|
47
|
+
failingGoalCount: number;
|
|
48
|
+
links: InferencePipelineCreateResponse.Links;
|
|
49
|
+
/**
|
|
50
|
+
* The inference pipeline name.
|
|
51
|
+
*/
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
* The number of tests passing.
|
|
55
|
+
*/
|
|
56
|
+
passingGoalCount: number;
|
|
57
|
+
/**
|
|
58
|
+
* The project id.
|
|
59
|
+
*/
|
|
60
|
+
projectId: string;
|
|
61
|
+
/**
|
|
62
|
+
* The status of test evaluation for the inference pipeline.
|
|
63
|
+
*/
|
|
64
|
+
status: 'queued' | 'running' | 'paused' | 'failed' | 'completed' | 'unknown';
|
|
65
|
+
/**
|
|
66
|
+
* The status message of test evaluation for the inference pipeline.
|
|
67
|
+
*/
|
|
68
|
+
statusMessage: string | null;
|
|
69
|
+
/**
|
|
70
|
+
* The total number of tests.
|
|
71
|
+
*/
|
|
72
|
+
totalGoalCount: number;
|
|
73
|
+
}
|
|
74
|
+
export declare namespace InferencePipelineCreateResponse {
|
|
75
|
+
interface Links {
|
|
76
|
+
app: string;
|
|
77
|
+
}
|
|
10
78
|
}
|
|
11
79
|
export interface InferencePipelineListResponse {
|
|
12
80
|
_meta: InferencePipelineListResponse._Meta;
|
|
@@ -89,10 +157,6 @@ export declare namespace InferencePipelineListResponse {
|
|
|
89
157
|
* The total number of tests.
|
|
90
158
|
*/
|
|
91
159
|
totalGoalCount: number;
|
|
92
|
-
/**
|
|
93
|
-
* The storage type.
|
|
94
|
-
*/
|
|
95
|
-
storageType?: 'local' | 's3' | 'gcs' | 'azure';
|
|
96
160
|
}
|
|
97
161
|
namespace Item {
|
|
98
162
|
interface Links {
|
|
@@ -100,6 +164,16 @@ export declare namespace InferencePipelineListResponse {
|
|
|
100
164
|
}
|
|
101
165
|
}
|
|
102
166
|
}
|
|
167
|
+
export interface InferencePipelineCreateParams {
|
|
168
|
+
/**
|
|
169
|
+
* The inference pipeline description.
|
|
170
|
+
*/
|
|
171
|
+
description: string | null;
|
|
172
|
+
/**
|
|
173
|
+
* The inference pipeline name.
|
|
174
|
+
*/
|
|
175
|
+
name: string;
|
|
176
|
+
}
|
|
103
177
|
export interface InferencePipelineListParams {
|
|
104
178
|
/**
|
|
105
179
|
* Filter list of items by name.
|
|
@@ -115,7 +189,9 @@ export interface InferencePipelineListParams {
|
|
|
115
189
|
perPage?: number;
|
|
116
190
|
}
|
|
117
191
|
export declare namespace InferencePipelines {
|
|
192
|
+
export import InferencePipelineCreateResponse = InferencePipelinesAPI.InferencePipelineCreateResponse;
|
|
118
193
|
export import InferencePipelineListResponse = InferencePipelinesAPI.InferencePipelineListResponse;
|
|
194
|
+
export import InferencePipelineCreateParams = InferencePipelinesAPI.InferencePipelineCreateParams;
|
|
119
195
|
export import InferencePipelineListParams = InferencePipelinesAPI.InferencePipelineListParams;
|
|
120
196
|
}
|
|
121
197
|
//# sourceMappingURL=inference-pipelines.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inference-pipelines.d.ts","sourceRoot":"","sources":["../../src/resources/projects/inference-pipelines.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"inference-pipelines.d.ts","sourceRoot":"","sources":["../../src/resources/projects/inference-pipelines.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,qBAAqB,MAAM,uBAAuB,CAAC;AAE/D,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;OAEG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,+BAA+B,CAAC;IAInD;;OAEG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,CAAC,EAAE,2BAA2B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3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,yBAAiB,kBAAkB,CAAC;IAClC,MAAM,QAAQ,+BAA+B,GAAG,qBAAqB,CAAC,+BAA+B,CAAC;IACtG,MAAM,QAAQ,6BAA6B,GAAG,qBAAqB,CAAC,6BAA6B,CAAC;IAClG,MAAM,QAAQ,6BAA6B,GAAG,qBAAqB,CAAC,6BAA6B,CAAC;IAClG,MAAM,QAAQ,2BAA2B,GAAG,qBAAqB,CAAC,2BAA2B,CAAC;CAC/F"}
|
|
@@ -5,11 +5,17 @@ exports.InferencePipelines = void 0;
|
|
|
5
5
|
const resource_1 = require("../../resource.js");
|
|
6
6
|
const core_1 = require("../../core.js");
|
|
7
7
|
class InferencePipelines extends resource_1.APIResource {
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Create an inference pipeline in a project.
|
|
10
|
+
*/
|
|
11
|
+
create(projectId, body, options) {
|
|
12
|
+
return this._client.post(`/projects/${projectId}/inference-pipelines`, { body, ...options });
|
|
13
|
+
}
|
|
14
|
+
list(projectId, query = {}, options) {
|
|
9
15
|
if ((0, core_1.isRequestOptions)(query)) {
|
|
10
|
-
return this.list(
|
|
16
|
+
return this.list(projectId, {}, query);
|
|
11
17
|
}
|
|
12
|
-
return this._client.get(`/projects/${
|
|
18
|
+
return this._client.get(`/projects/${projectId}/inference-pipelines`, { query, ...options });
|
|
13
19
|
}
|
|
14
20
|
}
|
|
15
21
|
exports.InferencePipelines = InferencePipelines;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inference-pipelines.js","sourceRoot":"","sources":["../../src/resources/projects/inference-pipelines.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;
|
|
1
|
+
{"version":3,"file":"inference-pipelines.js","sourceRoot":"","sources":["../../src/resources/projects/inference-pipelines.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAI9C,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,SAAS,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAWD,IAAI,CACF,SAAiB,EACjB,QAA2D,EAAE,EAC7D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACxC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,SAAS,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF;AA/BD,gDA+BC;AA6ND,WAAiB,kBAAkB;AAKnC,CAAC,EALgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAKlC"}
|
|
@@ -2,11 +2,17 @@
|
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
3
|
import { isRequestOptions } from "../../core.mjs";
|
|
4
4
|
export class InferencePipelines extends APIResource {
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Create an inference pipeline in a project.
|
|
7
|
+
*/
|
|
8
|
+
create(projectId, body, options) {
|
|
9
|
+
return this._client.post(`/projects/${projectId}/inference-pipelines`, { body, ...options });
|
|
10
|
+
}
|
|
11
|
+
list(projectId, query = {}, options) {
|
|
6
12
|
if (isRequestOptions(query)) {
|
|
7
|
-
return this.list(
|
|
13
|
+
return this.list(projectId, {}, query);
|
|
8
14
|
}
|
|
9
|
-
return this._client.get(`/projects/${
|
|
15
|
+
return this._client.get(`/projects/${projectId}/inference-pipelines`, { query, ...options });
|
|
10
16
|
}
|
|
11
17
|
}
|
|
12
18
|
(function (InferencePipelines) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inference-pipelines.mjs","sourceRoot":"","sources":["../../src/resources/projects/inference-pipelines.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"inference-pipelines.mjs","sourceRoot":"","sources":["../../src/resources/projects/inference-pipelines.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAI3B,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,SAAS,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAWD,IAAI,CACF,SAAiB,EACjB,QAA2D,EAAE,EAC7D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACxC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,SAAS,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF;AA6ND,WAAiB,kBAAkB;AAKnC,CAAC,EALgB,kBAAkB,KAAlB,kBAAkB,QAKlC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as Core from "../../core.js";
|
|
2
1
|
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
3
|
import * as ProjectsAPI from "./projects.js";
|
|
4
4
|
import * as CommitsAPI from "./commits.js";
|
|
5
5
|
import * as InferencePipelinesAPI from "./inference-pipelines.js";
|
|
@@ -7,11 +7,100 @@ export declare class Projects extends APIResource {
|
|
|
7
7
|
commits: CommitsAPI.Commits;
|
|
8
8
|
inferencePipelines: InferencePipelinesAPI.InferencePipelines;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Create a project in your workspace.
|
|
11
|
+
*/
|
|
12
|
+
create(body: ProjectCreateParams, options?: Core.RequestOptions): Core.APIPromise<ProjectCreateResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* List your workspace's projects.
|
|
11
15
|
*/
|
|
12
16
|
list(query?: ProjectListParams, options?: Core.RequestOptions): Core.APIPromise<ProjectListResponse>;
|
|
13
17
|
list(options?: Core.RequestOptions): Core.APIPromise<ProjectListResponse>;
|
|
14
18
|
}
|
|
19
|
+
export interface ProjectCreateResponse {
|
|
20
|
+
/**
|
|
21
|
+
* The project id.
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The project creator id.
|
|
26
|
+
*/
|
|
27
|
+
creatorId: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* The project creation date.
|
|
30
|
+
*/
|
|
31
|
+
dateCreated: string;
|
|
32
|
+
/**
|
|
33
|
+
* The project last updated date.
|
|
34
|
+
*/
|
|
35
|
+
dateUpdated: string;
|
|
36
|
+
/**
|
|
37
|
+
* The number of tests in the development mode of the project.
|
|
38
|
+
*/
|
|
39
|
+
developmentGoalCount: number;
|
|
40
|
+
/**
|
|
41
|
+
* The total number of tests in the project.
|
|
42
|
+
*/
|
|
43
|
+
goalCount: number;
|
|
44
|
+
/**
|
|
45
|
+
* The number of inference pipelines in the project.
|
|
46
|
+
*/
|
|
47
|
+
inferencePipelineCount: number;
|
|
48
|
+
/**
|
|
49
|
+
* Links to the project.
|
|
50
|
+
*/
|
|
51
|
+
links: ProjectCreateResponse.Links;
|
|
52
|
+
/**
|
|
53
|
+
* The number of tests in the monitoring mode of the project.
|
|
54
|
+
*/
|
|
55
|
+
monitoringGoalCount: number;
|
|
56
|
+
/**
|
|
57
|
+
* The project name.
|
|
58
|
+
*/
|
|
59
|
+
name: string;
|
|
60
|
+
/**
|
|
61
|
+
* The source of the project.
|
|
62
|
+
*/
|
|
63
|
+
source: 'web' | 'api' | 'null' | null;
|
|
64
|
+
/**
|
|
65
|
+
* The task type of the project.
|
|
66
|
+
*/
|
|
67
|
+
taskType: 'llm-base' | 'tabular-classification' | 'tabular-regression' | 'text-classification';
|
|
68
|
+
/**
|
|
69
|
+
* The number of versions (commits) in the project.
|
|
70
|
+
*/
|
|
71
|
+
versionCount: number;
|
|
72
|
+
/**
|
|
73
|
+
* The workspace id.
|
|
74
|
+
*/
|
|
75
|
+
workspaceId: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* The project description.
|
|
78
|
+
*/
|
|
79
|
+
description?: string | null;
|
|
80
|
+
gitRepo?: ProjectCreateResponse.GitRepo | null;
|
|
81
|
+
}
|
|
82
|
+
export declare namespace ProjectCreateResponse {
|
|
83
|
+
/**
|
|
84
|
+
* Links to the project.
|
|
85
|
+
*/
|
|
86
|
+
interface Links {
|
|
87
|
+
app: string;
|
|
88
|
+
}
|
|
89
|
+
interface GitRepo {
|
|
90
|
+
id: string;
|
|
91
|
+
dateConnected: string;
|
|
92
|
+
dateUpdated: string;
|
|
93
|
+
gitAccountId: string;
|
|
94
|
+
gitId: number;
|
|
95
|
+
name: string;
|
|
96
|
+
private: boolean;
|
|
97
|
+
projectId: string;
|
|
98
|
+
slug: string;
|
|
99
|
+
url: string;
|
|
100
|
+
branch?: string;
|
|
101
|
+
rootDir?: string;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
15
104
|
export interface ProjectListResponse {
|
|
16
105
|
_meta: ProjectListResponse._Meta;
|
|
17
106
|
items: Array<ProjectListResponse.Item>;
|
|
@@ -76,10 +165,6 @@ export declare namespace ProjectListResponse {
|
|
|
76
165
|
* The project name.
|
|
77
166
|
*/
|
|
78
167
|
name: string;
|
|
79
|
-
/**
|
|
80
|
-
* Whether the project is a sample project or a user-created project.
|
|
81
|
-
*/
|
|
82
|
-
sample: boolean;
|
|
83
168
|
/**
|
|
84
169
|
* The source of the project.
|
|
85
170
|
*/
|
|
@@ -101,22 +186,6 @@ export declare namespace ProjectListResponse {
|
|
|
101
186
|
*/
|
|
102
187
|
description?: string | null;
|
|
103
188
|
gitRepo?: Item.GitRepo | null;
|
|
104
|
-
/**
|
|
105
|
-
* The slack channel id connected to the project.
|
|
106
|
-
*/
|
|
107
|
-
slackChannelId?: string | null;
|
|
108
|
-
/**
|
|
109
|
-
* The slack channel connected to the project.
|
|
110
|
-
*/
|
|
111
|
-
slackChannelName?: string | null;
|
|
112
|
-
/**
|
|
113
|
-
* Whether slack channel notifications are enabled for the project.
|
|
114
|
-
*/
|
|
115
|
-
slackChannelNotificationsEnabled?: boolean;
|
|
116
|
-
/**
|
|
117
|
-
* The number of unread notifications in the project.
|
|
118
|
-
*/
|
|
119
|
-
unreadNotificationCount?: number;
|
|
120
189
|
}
|
|
121
190
|
namespace Item {
|
|
122
191
|
/**
|
|
@@ -141,6 +210,20 @@ export declare namespace ProjectListResponse {
|
|
|
141
210
|
}
|
|
142
211
|
}
|
|
143
212
|
}
|
|
213
|
+
export interface ProjectCreateParams {
|
|
214
|
+
/**
|
|
215
|
+
* The project name.
|
|
216
|
+
*/
|
|
217
|
+
name: string;
|
|
218
|
+
/**
|
|
219
|
+
* The task type of the project.
|
|
220
|
+
*/
|
|
221
|
+
taskType: 'llm-base' | 'tabular-classification' | 'tabular-regression' | 'text-classification';
|
|
222
|
+
/**
|
|
223
|
+
* The project description.
|
|
224
|
+
*/
|
|
225
|
+
description?: string | null;
|
|
226
|
+
}
|
|
144
227
|
export interface ProjectListParams {
|
|
145
228
|
/**
|
|
146
229
|
* Filter list of items by project name.
|
|
@@ -160,13 +243,17 @@ export interface ProjectListParams {
|
|
|
160
243
|
taskType?: 'llm-base' | 'tabular-classification' | 'tabular-regression' | 'text-classification';
|
|
161
244
|
}
|
|
162
245
|
export declare namespace Projects {
|
|
246
|
+
export import ProjectCreateResponse = ProjectsAPI.ProjectCreateResponse;
|
|
163
247
|
export import ProjectListResponse = ProjectsAPI.ProjectListResponse;
|
|
248
|
+
export import ProjectCreateParams = ProjectsAPI.ProjectCreateParams;
|
|
164
249
|
export import ProjectListParams = ProjectsAPI.ProjectListParams;
|
|
165
250
|
export import Commits = CommitsAPI.Commits;
|
|
166
251
|
export import CommitListResponse = CommitsAPI.CommitListResponse;
|
|
167
252
|
export import CommitListParams = CommitsAPI.CommitListParams;
|
|
168
253
|
export import InferencePipelines = InferencePipelinesAPI.InferencePipelines;
|
|
254
|
+
export import InferencePipelineCreateResponse = InferencePipelinesAPI.InferencePipelineCreateResponse;
|
|
169
255
|
export import InferencePipelineListResponse = InferencePipelinesAPI.InferencePipelineListResponse;
|
|
256
|
+
export import InferencePipelineCreateParams = InferencePipelinesAPI.InferencePipelineCreateParams;
|
|
170
257
|
export import InferencePipelineListParams = InferencePipelinesAPI.InferencePipelineListParams;
|
|
171
258
|
}
|
|
172
259
|
//# sourceMappingURL=projects.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/resources/projects/projects.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/resources/projects/projects.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,WAAW,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,qBAAqB,MAAM,uBAAuB,CAAC;AAE/D,qBAAa,QAAS,SAAQ,WAAW;IACvC,OAAO,EAAE,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._client);
|
|
36
36
|
this.inferencePipelines = new InferencePipelinesAPI.InferencePipelines(this._client);
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Create a project in your workspace.
|
|
40
|
+
*/
|
|
41
|
+
create(body, options) {
|
|
42
|
+
return this._client.post('/projects', { body, ...options });
|
|
43
|
+
}
|
|
38
44
|
list(query = {}, options) {
|
|
39
45
|
if ((0, core_1.isRequestOptions)(query)) {
|
|
40
46
|
return this.list({}, query);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/resources/projects/projects.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/resources/projects/projects.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,yDAAwC;AACxC,gFAA+D;AAE/D,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,uBAAkB,GAA6C,IAAI,qBAAqB,CAAC,kBAAkB,CACzG,IAAI,CAAC,OAAO,CACb,CAAC;IAuBJ,CAAC;IArBC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAOD,IAAI,CACF,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF;AA3BD,4BA2BC;AA2SD,WAAiB,QAAQ;IAKT,gBAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IAG7B,2BAAkB,GAAG,qBAAqB,CAAC,kBAAkB,CAAC;AAK9E,CAAC,EAbgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAaxB"}
|
|
@@ -9,6 +9,12 @@ export class Projects extends APIResource {
|
|
|
9
9
|
this.commits = new CommitsAPI.Commits(this._client);
|
|
10
10
|
this.inferencePipelines = new InferencePipelinesAPI.InferencePipelines(this._client);
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Create a project in your workspace.
|
|
14
|
+
*/
|
|
15
|
+
create(body, options) {
|
|
16
|
+
return this._client.post('/projects', { body, ...options });
|
|
17
|
+
}
|
|
12
18
|
list(query = {}, options) {
|
|
13
19
|
if (isRequestOptions(query)) {
|
|
14
20
|
return this.list({}, query);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.mjs","sourceRoot":"","sources":["../../src/resources/projects/projects.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"projects.mjs","sourceRoot":"","sources":["../../src/resources/projects/projects.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,KAAK,UAAU;OACf,KAAK,qBAAqB;AAEjC,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,uBAAkB,GAA6C,IAAI,qBAAqB,CAAC,kBAAkB,CACzG,IAAI,CAAC,OAAO,CACb,CAAC;IAuBJ,CAAC;IArBC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAOD,IAAI,CACF,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF;AA2SD,WAAiB,QAAQ;IAKT,gBAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IAG7B,2BAAkB,GAAG,qBAAqB,CAAC,kBAAkB,CAAC;AAK9E,CAAC,EAbgB,QAAQ,KAAR,QAAQ,QAaxB"}
|
package/src/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from './core';
|
|
4
3
|
import * as Errors from './error';
|
|
5
|
-
import { type Agent } from './_shims/index';
|
|
6
4
|
import * as Uploads from './uploads';
|
|
5
|
+
import { type Agent } from './_shims/index';
|
|
6
|
+
import * as Core from './core';
|
|
7
7
|
import * as API from './resources/index';
|
|
8
8
|
|
|
9
9
|
export interface ClientOptions {
|
|
@@ -69,7 +69,9 @@ export interface ClientOptions {
|
|
|
69
69
|
defaultQuery?: Core.DefaultQuery;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* API Client for interfacing with the Openlayer API.
|
|
74
|
+
*/
|
|
73
75
|
export class Openlayer extends Core.APIClient {
|
|
74
76
|
apiKey: string | null;
|
|
75
77
|
|
|
@@ -105,6 +107,7 @@ export class Openlayer extends Core.APIClient {
|
|
|
105
107
|
maxRetries: options.maxRetries,
|
|
106
108
|
fetch: options.fetch,
|
|
107
109
|
});
|
|
110
|
+
|
|
108
111
|
this._options = options;
|
|
109
112
|
|
|
110
113
|
this.apiKey = apiKey;
|
|
@@ -188,7 +191,9 @@ export namespace Openlayer {
|
|
|
188
191
|
export import RequestOptions = Core.RequestOptions;
|
|
189
192
|
|
|
190
193
|
export import Projects = API.Projects;
|
|
194
|
+
export import ProjectCreateResponse = API.ProjectCreateResponse;
|
|
191
195
|
export import ProjectListResponse = API.ProjectListResponse;
|
|
196
|
+
export import ProjectCreateParams = API.ProjectCreateParams;
|
|
192
197
|
export import ProjectListParams = API.ProjectListParams;
|
|
193
198
|
|
|
194
199
|
export import Commits = API.Commits;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from '../../core';
|
|
4
3
|
import { APIResource } from '../../resource';
|
|
5
4
|
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
6
6
|
import * as TestResultsAPI from './test-results';
|
|
7
7
|
|
|
8
8
|
export class TestResults extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* List the test results for a commit (project version).
|
|
10
|
+
* List the test results for a project commit (project version).
|
|
11
11
|
*/
|
|
12
12
|
list(
|
|
13
|
-
|
|
13
|
+
projectVersionId: string,
|
|
14
14
|
query?: TestResultListParams,
|
|
15
15
|
options?: Core.RequestOptions,
|
|
16
16
|
): Core.APIPromise<TestResultListResponse>;
|
|
17
|
-
list(
|
|
17
|
+
list(projectVersionId: string, options?: Core.RequestOptions): Core.APIPromise<TestResultListResponse>;
|
|
18
18
|
list(
|
|
19
|
-
|
|
19
|
+
projectVersionId: string,
|
|
20
20
|
query: TestResultListParams | Core.RequestOptions = {},
|
|
21
21
|
options?: Core.RequestOptions,
|
|
22
22
|
): Core.APIPromise<TestResultListResponse> {
|
|
23
23
|
if (isRequestOptions(query)) {
|
|
24
|
-
return this.list(
|
|
24
|
+
return this.list(projectVersionId, {}, query);
|
|
25
25
|
}
|
|
26
|
-
return this._client.get(`/versions/${
|
|
26
|
+
return this._client.get(`/versions/${projectVersionId}/results`, { query, ...options });
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
package/src/resources/index.ts
CHANGED
|
@@ -2,4 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
export { Commits } from './commits/commits';
|
|
4
4
|
export { InferencePipelines } from './inference-pipelines/inference-pipelines';
|
|
5
|
-
export {
|
|
5
|
+
export {
|
|
6
|
+
ProjectCreateResponse,
|
|
7
|
+
ProjectListResponse,
|
|
8
|
+
ProjectCreateParams,
|
|
9
|
+
ProjectListParams,
|
|
10
|
+
Projects,
|
|
11
|
+
} from './projects/projects';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from '../../core';
|
|
4
3
|
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
5
|
import * as DataAPI from './data';
|
|
6
6
|
|
|
7
7
|
export class Data extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* Stream production data to an inference pipeline
|
|
9
|
+
* Stream production data to an inference pipeline.
|
|
10
10
|
*/
|
|
11
11
|
stream(
|
|
12
|
-
|
|
12
|
+
inferencePipelineId: string,
|
|
13
13
|
body: DataStreamParams,
|
|
14
14
|
options?: Core.RequestOptions,
|
|
15
15
|
): Core.APIPromise<DataStreamResponse> {
|
|
16
|
-
return this._client.post(`/inference-pipelines/${
|
|
16
|
+
return this._client.post(`/inference-pipelines/${inferencePipelineId}/data-stream`, { body, ...options });
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -128,7 +128,7 @@ export namespace DataStreamParams {
|
|
|
128
128
|
classNames: Array<string>;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
* Array with the names of all categorical features in the dataset. E.g. ["
|
|
131
|
+
* Array with the names of all categorical features in the dataset. E.g. ["Age",
|
|
132
132
|
* "Geography"].
|
|
133
133
|
*/
|
|
134
134
|
categoricalFeatureNames?: Array<string>;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from '../../core';
|
|
4
3
|
import { APIResource } from '../../resource';
|
|
5
4
|
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
6
6
|
import * as TestResultsAPI from './test-results';
|
|
7
7
|
|
|
8
8
|
export class TestResults extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* List the test results
|
|
10
|
+
* List the latest test results for an inference pipeline.
|
|
11
11
|
*/
|
|
12
12
|
list(
|
|
13
|
-
|
|
13
|
+
inferencePipelineId: string,
|
|
14
14
|
query?: TestResultListParams,
|
|
15
15
|
options?: Core.RequestOptions,
|
|
16
16
|
): Core.APIPromise<TestResultListResponse>;
|
|
17
|
-
list(
|
|
17
|
+
list(inferencePipelineId: string, options?: Core.RequestOptions): Core.APIPromise<TestResultListResponse>;
|
|
18
18
|
list(
|
|
19
|
-
|
|
19
|
+
inferencePipelineId: string,
|
|
20
20
|
query: TestResultListParams | Core.RequestOptions = {},
|
|
21
21
|
options?: Core.RequestOptions,
|
|
22
22
|
): Core.APIPromise<TestResultListResponse> {
|
|
23
23
|
if (isRequestOptions(query)) {
|
|
24
|
-
return this.list(
|
|
24
|
+
return this.list(inferencePipelineId, {}, query);
|
|
25
25
|
}
|
|
26
|
-
return this._client.get(`/inference-pipelines/${
|
|
26
|
+
return this._client.get(`/inference-pipelines/${inferencePipelineId}/results`, { query, ...options });
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -250,11 +250,6 @@ export namespace TestResultListResponse {
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
export interface TestResultListParams {
|
|
253
|
-
/**
|
|
254
|
-
* Include archived goals.
|
|
255
|
-
*/
|
|
256
|
-
includeArchived?: boolean;
|
|
257
|
-
|
|
258
253
|
/**
|
|
259
254
|
* The page to return in a paginated query.
|
|
260
255
|
*/
|