openlayer 0.2.1 → 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 +14 -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 +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/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
|
@@ -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
|