openlayer 0.2.0 → 0.2.2
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 +22 -0
- package/README.md +1 -4
- package/core.d.ts +4 -2
- package/core.d.ts.map +1 -1
- package/core.js +17 -4
- package/core.js.map +1 -1
- package/core.mjs +18 -5
- package/core.mjs.map +1 -1
- 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 +1 -1
- package/resources/commits/test-results.d.ts.map +1 -1
- package/resources/commits/test-results.js.map +1 -1
- 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 +1 -1
- package/resources/inference-pipelines/data.d.ts.map +1 -1
- package/resources/inference-pipelines/data.js.map +1 -1
- package/resources/inference-pipelines/data.mjs.map +1 -1
- package/resources/inference-pipelines/test-results.d.ts +1 -1
- package/resources/inference-pipelines/test-results.d.ts.map +1 -1
- package/resources/inference-pipelines/test-results.js.map +1 -1
- package/resources/inference-pipelines/test-results.mjs.map +1 -1
- package/resources/projects/commits.d.ts +1 -1
- package/resources/projects/commits.d.ts.map +1 -1
- package/resources/projects/commits.js.map +1 -1
- 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 +93 -1
- package/resources/projects/inference-pipelines.d.ts.map +1 -1
- package/resources/projects/inference-pipelines.js +6 -0
- package/resources/projects/inference-pipelines.js.map +1 -1
- package/resources/projects/inference-pipelines.mjs +6 -0
- package/resources/projects/inference-pipelines.mjs.map +1 -1
- package/resources/projects/projects.d.ts +149 -1
- 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/core.ts +27 -8
- package/src/index.ts +8 -3
- package/src/resources/commits/test-results.ts +1 -1
- package/src/resources/index.ts +7 -1
- package/src/resources/inference-pipelines/data.ts +1 -1
- package/src/resources/inference-pipelines/test-results.ts +1 -1
- package/src/resources/projects/commits.ts +1 -1
- package/src/resources/projects/index.ts +9 -1
- package/src/resources/projects/inference-pipelines.ts +121 -1
- package/src/resources/projects/projects.ts +197 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -35,6 +35,12 @@ class Projects extends resource_1.APIResource {
|
|
|
35
35
|
this.commits = new CommitsAPI.Commits(this._client);
|
|
36
36
|
this.inferencePipelines = new InferencePipelinesAPI.InferencePipelines(this._client);
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Create a project under the current 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;AA0XD,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 under the current 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;AA0XD,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/core.ts
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
type HeadersInit,
|
|
19
19
|
} from './_shims/index';
|
|
20
20
|
export { type Response };
|
|
21
|
-
import { isMultipartBody } from './uploads';
|
|
21
|
+
import { BlobLike, isBlobLike, isMultipartBody } from './uploads';
|
|
22
22
|
export {
|
|
23
23
|
maybeMultipartFormRequestOptions,
|
|
24
24
|
multipartFormRequestOptions,
|
|
@@ -235,7 +235,17 @@ export abstract class APIClient {
|
|
|
235
235
|
path: string,
|
|
236
236
|
opts?: PromiseOrValue<RequestOptions<Req>>,
|
|
237
237
|
): APIPromise<Rsp> {
|
|
238
|
-
return this.request(
|
|
238
|
+
return this.request(
|
|
239
|
+
Promise.resolve(opts).then(async (opts) => {
|
|
240
|
+
const body =
|
|
241
|
+
opts && isBlobLike(opts?.body) ? new DataView(await opts.body.arrayBuffer())
|
|
242
|
+
: opts?.body instanceof DataView ? opts.body
|
|
243
|
+
: opts?.body instanceof ArrayBuffer ? new DataView(opts.body)
|
|
244
|
+
: opts && ArrayBuffer.isView(opts?.body) ? new DataView(opts.body.buffer)
|
|
245
|
+
: opts?.body;
|
|
246
|
+
return { method, path, ...opts, body };
|
|
247
|
+
}),
|
|
248
|
+
);
|
|
239
249
|
}
|
|
240
250
|
|
|
241
251
|
getAPIList<Item, PageClass extends AbstractPage<Item> = AbstractPage<Item>>(
|
|
@@ -257,6 +267,8 @@ export abstract class APIClient {
|
|
|
257
267
|
const encoded = encoder.encode(body);
|
|
258
268
|
return encoded.length.toString();
|
|
259
269
|
}
|
|
270
|
+
} else if (ArrayBuffer.isView(body)) {
|
|
271
|
+
return body.byteLength.toString();
|
|
260
272
|
}
|
|
261
273
|
|
|
262
274
|
return null;
|
|
@@ -266,7 +278,9 @@ export abstract class APIClient {
|
|
|
266
278
|
const { method, path, query, headers: headers = {} } = options;
|
|
267
279
|
|
|
268
280
|
const body =
|
|
269
|
-
|
|
281
|
+
ArrayBuffer.isView(options.body) || (options.__binaryRequest && typeof options.body === 'string') ?
|
|
282
|
+
options.body
|
|
283
|
+
: isMultipartBody(options.body) ? options.body.body
|
|
270
284
|
: options.body ? JSON.stringify(options.body, null, 2)
|
|
271
285
|
: null;
|
|
272
286
|
const contentLength = this.calculateContentLength(body);
|
|
@@ -721,7 +735,9 @@ export type Headers = Record<string, string | null | undefined>;
|
|
|
721
735
|
export type DefaultQuery = Record<string, string | undefined>;
|
|
722
736
|
export type KeysEnum<T> = { [P in keyof Required<T>]: true };
|
|
723
737
|
|
|
724
|
-
export type RequestOptions<
|
|
738
|
+
export type RequestOptions<
|
|
739
|
+
Req = unknown | Record<string, unknown> | Readable | BlobLike | ArrayBufferView | ArrayBuffer,
|
|
740
|
+
> = {
|
|
725
741
|
method?: HTTPMethod;
|
|
726
742
|
path?: string;
|
|
727
743
|
query?: Req | undefined;
|
|
@@ -735,6 +751,7 @@ export type RequestOptions<Req = unknown | Record<string, unknown> | Readable> =
|
|
|
735
751
|
signal?: AbortSignal | undefined | null;
|
|
736
752
|
idempotencyKey?: string;
|
|
737
753
|
|
|
754
|
+
__binaryRequest?: boolean | undefined;
|
|
738
755
|
__binaryResponse?: boolean | undefined;
|
|
739
756
|
};
|
|
740
757
|
|
|
@@ -755,6 +772,7 @@ const requestOptionsKeys: KeysEnum<RequestOptions> = {
|
|
|
755
772
|
signal: true,
|
|
756
773
|
idempotencyKey: true,
|
|
757
774
|
|
|
775
|
+
__binaryRequest: true,
|
|
758
776
|
__binaryResponse: true,
|
|
759
777
|
};
|
|
760
778
|
|
|
@@ -767,10 +785,11 @@ export const isRequestOptions = (obj: unknown): obj is RequestOptions => {
|
|
|
767
785
|
);
|
|
768
786
|
};
|
|
769
787
|
|
|
770
|
-
export type FinalRequestOptions<Req = unknown | Record<string, unknown> | Readable
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
788
|
+
export type FinalRequestOptions<Req = unknown | Record<string, unknown> | Readable | DataView> =
|
|
789
|
+
RequestOptions<Req> & {
|
|
790
|
+
method: HTTPMethod;
|
|
791
|
+
path: string;
|
|
792
|
+
};
|
|
774
793
|
|
|
775
794
|
declare const Deno: any;
|
|
776
795
|
declare const EdgeRuntime: any;
|
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,8 +1,8 @@
|
|
|
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 {
|
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,7 +1,7 @@
|
|
|
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 {
|
|
@@ -1,8 +1,8 @@
|
|
|
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 {
|
|
@@ -1,8 +1,8 @@
|
|
|
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 CommitsAPI from './commits';
|
|
7
7
|
|
|
8
8
|
export class Commits extends APIResource {
|
|
@@ -2,8 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
export { CommitListResponse, CommitListParams, Commits } from './commits';
|
|
4
4
|
export {
|
|
5
|
+
InferencePipelineCreateResponse,
|
|
5
6
|
InferencePipelineListResponse,
|
|
7
|
+
InferencePipelineCreateParams,
|
|
6
8
|
InferencePipelineListParams,
|
|
7
9
|
InferencePipelines,
|
|
8
10
|
} from './inference-pipelines';
|
|
9
|
-
export {
|
|
11
|
+
export {
|
|
12
|
+
ProjectCreateResponse,
|
|
13
|
+
ProjectListResponse,
|
|
14
|
+
ProjectCreateParams,
|
|
15
|
+
ProjectListParams,
|
|
16
|
+
Projects,
|
|
17
|
+
} from './projects';
|
|
@@ -1,11 +1,22 @@
|
|
|
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 InferencePipelinesAPI from './inference-pipelines';
|
|
7
7
|
|
|
8
8
|
export class InferencePipelines extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create an inference pipeline under a project.
|
|
11
|
+
*/
|
|
12
|
+
create(
|
|
13
|
+
id: string,
|
|
14
|
+
body: InferencePipelineCreateParams,
|
|
15
|
+
options?: Core.RequestOptions,
|
|
16
|
+
): Core.APIPromise<InferencePipelineCreateResponse> {
|
|
17
|
+
return this._client.post(`/projects/${id}/inference-pipelines`, { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
|
|
9
20
|
/**
|
|
10
21
|
* List the inference pipelines in a project.
|
|
11
22
|
*/
|
|
@@ -27,6 +38,91 @@ export class InferencePipelines extends APIResource {
|
|
|
27
38
|
}
|
|
28
39
|
}
|
|
29
40
|
|
|
41
|
+
export interface InferencePipelineCreateResponse {
|
|
42
|
+
/**
|
|
43
|
+
* The inference pipeline id.
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The creation date.
|
|
49
|
+
*/
|
|
50
|
+
dateCreated: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The last test evaluation date.
|
|
54
|
+
*/
|
|
55
|
+
dateLastEvaluated: string | null;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The last data sample received date.
|
|
59
|
+
*/
|
|
60
|
+
dateLastSampleReceived: string | null;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The next test evaluation date.
|
|
64
|
+
*/
|
|
65
|
+
dateOfNextEvaluation: string | null;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The last updated date.
|
|
69
|
+
*/
|
|
70
|
+
dateUpdated: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The inference pipeline description.
|
|
74
|
+
*/
|
|
75
|
+
description: string | null;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* The number of tests failing.
|
|
79
|
+
*/
|
|
80
|
+
failingGoalCount: number;
|
|
81
|
+
|
|
82
|
+
links: InferencePipelineCreateResponse.Links;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The inference pipeline name.
|
|
86
|
+
*/
|
|
87
|
+
name: string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* The number of tests passing.
|
|
91
|
+
*/
|
|
92
|
+
passingGoalCount: number;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The project id.
|
|
96
|
+
*/
|
|
97
|
+
projectId: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* The status of test evaluation for the inference pipeline.
|
|
101
|
+
*/
|
|
102
|
+
status: 'queued' | 'running' | 'paused' | 'failed' | 'completed' | 'unknown';
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* The status message of test evaluation for the inference pipeline.
|
|
106
|
+
*/
|
|
107
|
+
statusMessage: string | null;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The total number of tests.
|
|
111
|
+
*/
|
|
112
|
+
totalGoalCount: number;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* The storage type.
|
|
116
|
+
*/
|
|
117
|
+
storageType?: 'local' | 's3' | 'gcs' | 'azure';
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export namespace InferencePipelineCreateResponse {
|
|
121
|
+
export interface Links {
|
|
122
|
+
app: string;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
30
126
|
export interface InferencePipelineListResponse {
|
|
31
127
|
_meta: InferencePipelineListResponse._Meta;
|
|
32
128
|
|
|
@@ -142,6 +238,28 @@ export namespace InferencePipelineListResponse {
|
|
|
142
238
|
}
|
|
143
239
|
}
|
|
144
240
|
|
|
241
|
+
export interface InferencePipelineCreateParams {
|
|
242
|
+
/**
|
|
243
|
+
* The inference pipeline description.
|
|
244
|
+
*/
|
|
245
|
+
description: string | null;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* The inference pipeline name.
|
|
249
|
+
*/
|
|
250
|
+
name: string;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* The reference dataset URI.
|
|
254
|
+
*/
|
|
255
|
+
referenceDatasetUri?: string | null;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* The storage type.
|
|
259
|
+
*/
|
|
260
|
+
storageType?: 'local' | 's3' | 'gcs' | 'azure';
|
|
261
|
+
}
|
|
262
|
+
|
|
145
263
|
export interface InferencePipelineListParams {
|
|
146
264
|
/**
|
|
147
265
|
* Filter list of items by name.
|
|
@@ -160,6 +278,8 @@ export interface InferencePipelineListParams {
|
|
|
160
278
|
}
|
|
161
279
|
|
|
162
280
|
export namespace InferencePipelines {
|
|
281
|
+
export import InferencePipelineCreateResponse = InferencePipelinesAPI.InferencePipelineCreateResponse;
|
|
163
282
|
export import InferencePipelineListResponse = InferencePipelinesAPI.InferencePipelineListResponse;
|
|
283
|
+
export import InferencePipelineCreateParams = InferencePipelinesAPI.InferencePipelineCreateParams;
|
|
164
284
|
export import InferencePipelineListParams = InferencePipelinesAPI.InferencePipelineListParams;
|
|
165
285
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
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 ProjectsAPI from './projects';
|
|
7
7
|
import * as CommitsAPI from './commits';
|
|
8
8
|
import * as InferencePipelinesAPI from './inference-pipelines';
|
|
@@ -13,6 +13,13 @@ export class Projects extends APIResource {
|
|
|
13
13
|
this._client,
|
|
14
14
|
);
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Create a project under the current workspace.
|
|
18
|
+
*/
|
|
19
|
+
create(body: ProjectCreateParams, options?: Core.RequestOptions): Core.APIPromise<ProjectCreateResponse> {
|
|
20
|
+
return this._client.post('/projects', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
* List the projects in a user's workspace.
|
|
18
25
|
*/
|
|
@@ -29,6 +36,145 @@ export class Projects extends APIResource {
|
|
|
29
36
|
}
|
|
30
37
|
}
|
|
31
38
|
|
|
39
|
+
export interface ProjectCreateResponse {
|
|
40
|
+
/**
|
|
41
|
+
* The project id.
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The project creator id.
|
|
47
|
+
*/
|
|
48
|
+
creatorId: string | null;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The project creation date.
|
|
52
|
+
*/
|
|
53
|
+
dateCreated: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The project last updated date.
|
|
57
|
+
*/
|
|
58
|
+
dateUpdated: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The number of tests in the development mode of the project.
|
|
62
|
+
*/
|
|
63
|
+
developmentGoalCount: number;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The total number of tests in the project.
|
|
67
|
+
*/
|
|
68
|
+
goalCount: number;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The number of inference pipelines in the project.
|
|
72
|
+
*/
|
|
73
|
+
inferencePipelineCount: number;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Links to the project.
|
|
77
|
+
*/
|
|
78
|
+
links: ProjectCreateResponse.Links;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The number of tests in the monitoring mode of the project.
|
|
82
|
+
*/
|
|
83
|
+
monitoringGoalCount: number;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The project name.
|
|
87
|
+
*/
|
|
88
|
+
name: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Whether the project is a sample project or a user-created project.
|
|
92
|
+
*/
|
|
93
|
+
sample: boolean;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The source of the project.
|
|
97
|
+
*/
|
|
98
|
+
source: 'web' | 'api' | 'null' | null;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The task type of the project.
|
|
102
|
+
*/
|
|
103
|
+
taskType: 'llm-base' | 'tabular-classification' | 'tabular-regression' | 'text-classification';
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The number of versions (commits) in the project.
|
|
107
|
+
*/
|
|
108
|
+
versionCount: number;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The workspace id.
|
|
112
|
+
*/
|
|
113
|
+
workspaceId: string | null;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The project description.
|
|
117
|
+
*/
|
|
118
|
+
description?: string | null;
|
|
119
|
+
|
|
120
|
+
gitRepo?: ProjectCreateResponse.GitRepo | null;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* The slack channel id connected to the project.
|
|
124
|
+
*/
|
|
125
|
+
slackChannelId?: string | null;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* The slack channel connected to the project.
|
|
129
|
+
*/
|
|
130
|
+
slackChannelName?: string | null;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Whether slack channel notifications are enabled for the project.
|
|
134
|
+
*/
|
|
135
|
+
slackChannelNotificationsEnabled?: boolean;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* The number of unread notifications in the project.
|
|
139
|
+
*/
|
|
140
|
+
unreadNotificationCount?: number;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export namespace ProjectCreateResponse {
|
|
144
|
+
/**
|
|
145
|
+
* Links to the project.
|
|
146
|
+
*/
|
|
147
|
+
export interface Links {
|
|
148
|
+
app: string;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface GitRepo {
|
|
152
|
+
id: string;
|
|
153
|
+
|
|
154
|
+
dateConnected: string;
|
|
155
|
+
|
|
156
|
+
dateUpdated: string;
|
|
157
|
+
|
|
158
|
+
gitAccountId: string;
|
|
159
|
+
|
|
160
|
+
gitId: number;
|
|
161
|
+
|
|
162
|
+
name: string;
|
|
163
|
+
|
|
164
|
+
private: boolean;
|
|
165
|
+
|
|
166
|
+
projectId: string;
|
|
167
|
+
|
|
168
|
+
slug: string;
|
|
169
|
+
|
|
170
|
+
url: string;
|
|
171
|
+
|
|
172
|
+
branch?: string;
|
|
173
|
+
|
|
174
|
+
rootDir?: string;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
32
178
|
export interface ProjectListResponse {
|
|
33
179
|
_meta: ProjectListResponse._Meta;
|
|
34
180
|
|
|
@@ -198,6 +344,52 @@ export namespace ProjectListResponse {
|
|
|
198
344
|
}
|
|
199
345
|
}
|
|
200
346
|
|
|
347
|
+
export interface ProjectCreateParams {
|
|
348
|
+
/**
|
|
349
|
+
* The project name.
|
|
350
|
+
*/
|
|
351
|
+
name: string;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* The task type of the project.
|
|
355
|
+
*/
|
|
356
|
+
taskType: 'llm-base' | 'tabular-classification' | 'tabular-regression' | 'text-classification';
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* The project description.
|
|
360
|
+
*/
|
|
361
|
+
description?: string | null;
|
|
362
|
+
|
|
363
|
+
gitRepo?: ProjectCreateParams.GitRepo | null;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* The slack channel id connected to the project.
|
|
367
|
+
*/
|
|
368
|
+
slackChannelId?: string | null;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* The slack channel connected to the project.
|
|
372
|
+
*/
|
|
373
|
+
slackChannelName?: string | null;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Whether slack channel notifications are enabled for the project.
|
|
377
|
+
*/
|
|
378
|
+
slackChannelNotificationsEnabled?: boolean;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export namespace ProjectCreateParams {
|
|
382
|
+
export interface GitRepo {
|
|
383
|
+
gitAccountId: string;
|
|
384
|
+
|
|
385
|
+
gitId: number;
|
|
386
|
+
|
|
387
|
+
branch?: string;
|
|
388
|
+
|
|
389
|
+
rootDir?: string;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
201
393
|
export interface ProjectListParams {
|
|
202
394
|
/**
|
|
203
395
|
* Filter list of items by project name.
|
|
@@ -221,12 +413,16 @@ export interface ProjectListParams {
|
|
|
221
413
|
}
|
|
222
414
|
|
|
223
415
|
export namespace Projects {
|
|
416
|
+
export import ProjectCreateResponse = ProjectsAPI.ProjectCreateResponse;
|
|
224
417
|
export import ProjectListResponse = ProjectsAPI.ProjectListResponse;
|
|
418
|
+
export import ProjectCreateParams = ProjectsAPI.ProjectCreateParams;
|
|
225
419
|
export import ProjectListParams = ProjectsAPI.ProjectListParams;
|
|
226
420
|
export import Commits = CommitsAPI.Commits;
|
|
227
421
|
export import CommitListResponse = CommitsAPI.CommitListResponse;
|
|
228
422
|
export import CommitListParams = CommitsAPI.CommitListParams;
|
|
229
423
|
export import InferencePipelines = InferencePipelinesAPI.InferencePipelines;
|
|
424
|
+
export import InferencePipelineCreateResponse = InferencePipelinesAPI.InferencePipelineCreateResponse;
|
|
230
425
|
export import InferencePipelineListResponse = InferencePipelinesAPI.InferencePipelineListResponse;
|
|
426
|
+
export import InferencePipelineCreateParams = InferencePipelinesAPI.InferencePipelineCreateParams;
|
|
231
427
|
export import InferencePipelineListParams = InferencePipelinesAPI.InferencePipelineListParams;
|
|
232
428
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2.
|
|
1
|
+
export const VERSION = '0.2.2'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.
|
|
1
|
+
export declare const VERSION = "0.2.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.2.
|
|
1
|
+
export const VERSION = '0.2.2'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|