openlayer 0.9.4 → 0.10.1
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 +21 -0
- package/core.d.ts +1 -1
- package/core.d.ts.map +1 -1
- package/core.js +12 -3
- package/core.js.map +1 -1
- package/core.mjs +12 -3
- package/core.mjs.map +1 -1
- package/index.d.mts +3 -2
- package/index.d.ts +3 -2
- package/index.d.ts.map +1 -1
- package/index.js +4 -0
- package/index.js.map +1 -1
- package/index.mjs +4 -0
- package/index.mjs.map +1 -1
- package/internal/qs/formats.d.ts +6 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +11 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +8 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +280 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +276 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.ts +14 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +229 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/package.json +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.map +1 -1
- package/resources/inference-pipelines/index.d.ts +1 -1
- package/resources/inference-pipelines/index.d.ts.map +1 -1
- package/resources/inference-pipelines/index.js.map +1 -1
- package/resources/inference-pipelines/index.mjs.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.d.ts +238 -1
- package/resources/inference-pipelines/inference-pipelines.d.ts.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.js +5 -5
- package/resources/inference-pipelines/inference-pipelines.js.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.mjs +5 -5
- package/resources/inference-pipelines/inference-pipelines.mjs.map +1 -1
- package/resources/projects/inference-pipelines.d.ts +255 -0
- package/resources/projects/inference-pipelines.d.ts.map +1 -1
- package/src/core.ts +13 -3
- package/src/index.ts +7 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +9 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +388 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/inference-pipelines/index.ts +1 -0
- package/src/resources/inference-pipelines/inference-pipelines.ts +368 -1
- package/src/resources/projects/inference-pipelines.ts +381 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { RFC1738 } from './formats';
|
|
2
|
+
import type { DefaultEncoder, Format } from './types';
|
|
3
|
+
|
|
4
|
+
const has = Object.prototype.hasOwnProperty;
|
|
5
|
+
const is_array = Array.isArray;
|
|
6
|
+
|
|
7
|
+
const hex_table = (() => {
|
|
8
|
+
const array = [];
|
|
9
|
+
for (let i = 0; i < 256; ++i) {
|
|
10
|
+
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return array;
|
|
14
|
+
})();
|
|
15
|
+
|
|
16
|
+
function compact_queue<T extends Record<string, any>>(queue: Array<{ obj: T; prop: string }>) {
|
|
17
|
+
while (queue.length > 1) {
|
|
18
|
+
const item = queue.pop();
|
|
19
|
+
if (!item) continue;
|
|
20
|
+
|
|
21
|
+
const obj = item.obj[item.prop];
|
|
22
|
+
|
|
23
|
+
if (is_array(obj)) {
|
|
24
|
+
const compacted: unknown[] = [];
|
|
25
|
+
|
|
26
|
+
for (let j = 0; j < obj.length; ++j) {
|
|
27
|
+
if (typeof obj[j] !== 'undefined') {
|
|
28
|
+
compacted.push(obj[j]);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
item.obj[item.prop] = compacted;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function array_to_object(source: any[], options: { plainObjects: boolean }) {
|
|
39
|
+
const obj = options && options.plainObjects ? Object.create(null) : {};
|
|
40
|
+
for (let i = 0; i < source.length; ++i) {
|
|
41
|
+
if (typeof source[i] !== 'undefined') {
|
|
42
|
+
obj[i] = source[i];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return obj;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function merge(
|
|
50
|
+
target: any,
|
|
51
|
+
source: any,
|
|
52
|
+
options: { plainObjects?: boolean; allowPrototypes?: boolean } = {},
|
|
53
|
+
) {
|
|
54
|
+
if (!source) {
|
|
55
|
+
return target;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (typeof source !== 'object') {
|
|
59
|
+
if (is_array(target)) {
|
|
60
|
+
target.push(source);
|
|
61
|
+
} else if (target && typeof target === 'object') {
|
|
62
|
+
if (
|
|
63
|
+
(options && (options.plainObjects || options.allowPrototypes)) ||
|
|
64
|
+
!has.call(Object.prototype, source)
|
|
65
|
+
) {
|
|
66
|
+
target[source] = true;
|
|
67
|
+
}
|
|
68
|
+
} else {
|
|
69
|
+
return [target, source];
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return target;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (!target || typeof target !== 'object') {
|
|
76
|
+
return [target].concat(source);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
let mergeTarget = target;
|
|
80
|
+
if (is_array(target) && !is_array(source)) {
|
|
81
|
+
// @ts-ignore
|
|
82
|
+
mergeTarget = array_to_object(target, options);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (is_array(target) && is_array(source)) {
|
|
86
|
+
source.forEach(function (item, i) {
|
|
87
|
+
if (has.call(target, i)) {
|
|
88
|
+
const targetItem = target[i];
|
|
89
|
+
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
90
|
+
target[i] = merge(targetItem, item, options);
|
|
91
|
+
} else {
|
|
92
|
+
target.push(item);
|
|
93
|
+
}
|
|
94
|
+
} else {
|
|
95
|
+
target[i] = item;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
return target;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
102
|
+
const value = source[key];
|
|
103
|
+
|
|
104
|
+
if (has.call(acc, key)) {
|
|
105
|
+
acc[key] = merge(acc[key], value, options);
|
|
106
|
+
} else {
|
|
107
|
+
acc[key] = value;
|
|
108
|
+
}
|
|
109
|
+
return acc;
|
|
110
|
+
}, mergeTarget);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function assign_single_source(target: any, source: any) {
|
|
114
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
115
|
+
acc[key] = source[key];
|
|
116
|
+
return acc;
|
|
117
|
+
}, target);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function decode(str: string, _: any, charset: string) {
|
|
121
|
+
const strWithoutPlus = str.replace(/\+/g, ' ');
|
|
122
|
+
if (charset === 'iso-8859-1') {
|
|
123
|
+
// unescape never throws, no try...catch needed:
|
|
124
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
125
|
+
}
|
|
126
|
+
// utf-8
|
|
127
|
+
try {
|
|
128
|
+
return decodeURIComponent(strWithoutPlus);
|
|
129
|
+
} catch (e) {
|
|
130
|
+
return strWithoutPlus;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
const limit = 1024;
|
|
135
|
+
|
|
136
|
+
export const encode: (
|
|
137
|
+
str: any,
|
|
138
|
+
defaultEncoder: DefaultEncoder,
|
|
139
|
+
charset: string,
|
|
140
|
+
type: 'key' | 'value',
|
|
141
|
+
format: Format,
|
|
142
|
+
) => string = (str, _defaultEncoder, charset, _kind, format: Format) => {
|
|
143
|
+
// This code was originally written by Brian White for the io.js core querystring library.
|
|
144
|
+
// It has been adapted here for stricter adherence to RFC 3986
|
|
145
|
+
if (str.length === 0) {
|
|
146
|
+
return str;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
let string = str;
|
|
150
|
+
if (typeof str === 'symbol') {
|
|
151
|
+
string = Symbol.prototype.toString.call(str);
|
|
152
|
+
} else if (typeof str !== 'string') {
|
|
153
|
+
string = String(str);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if (charset === 'iso-8859-1') {
|
|
157
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
158
|
+
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
let out = '';
|
|
163
|
+
for (let j = 0; j < string.length; j += limit) {
|
|
164
|
+
const segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
165
|
+
const arr = [];
|
|
166
|
+
|
|
167
|
+
for (let i = 0; i < segment.length; ++i) {
|
|
168
|
+
let c = segment.charCodeAt(i);
|
|
169
|
+
if (
|
|
170
|
+
c === 0x2d || // -
|
|
171
|
+
c === 0x2e || // .
|
|
172
|
+
c === 0x5f || // _
|
|
173
|
+
c === 0x7e || // ~
|
|
174
|
+
(c >= 0x30 && c <= 0x39) || // 0-9
|
|
175
|
+
(c >= 0x41 && c <= 0x5a) || // a-z
|
|
176
|
+
(c >= 0x61 && c <= 0x7a) || // A-Z
|
|
177
|
+
(format === RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
178
|
+
) {
|
|
179
|
+
arr[arr.length] = segment.charAt(i);
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (c < 0x80) {
|
|
184
|
+
arr[arr.length] = hex_table[c];
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if (c < 0x800) {
|
|
189
|
+
arr[arr.length] = hex_table[0xc0 | (c >> 6)]! + hex_table[0x80 | (c & 0x3f)];
|
|
190
|
+
continue;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
if (c < 0xd800 || c >= 0xe000) {
|
|
194
|
+
arr[arr.length] =
|
|
195
|
+
hex_table[0xe0 | (c >> 12)]! + hex_table[0x80 | ((c >> 6) & 0x3f)] + hex_table[0x80 | (c & 0x3f)];
|
|
196
|
+
continue;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
i += 1;
|
|
200
|
+
c = 0x10000 + (((c & 0x3ff) << 10) | (segment.charCodeAt(i) & 0x3ff));
|
|
201
|
+
|
|
202
|
+
arr[arr.length] =
|
|
203
|
+
hex_table[0xf0 | (c >> 18)]! +
|
|
204
|
+
hex_table[0x80 | ((c >> 12) & 0x3f)] +
|
|
205
|
+
hex_table[0x80 | ((c >> 6) & 0x3f)] +
|
|
206
|
+
hex_table[0x80 | (c & 0x3f)];
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
out += arr.join('');
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return out;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
export function compact(value: any) {
|
|
216
|
+
const queue = [{ obj: { o: value }, prop: 'o' }];
|
|
217
|
+
const refs = [];
|
|
218
|
+
|
|
219
|
+
for (let i = 0; i < queue.length; ++i) {
|
|
220
|
+
const item = queue[i];
|
|
221
|
+
// @ts-ignore
|
|
222
|
+
const obj = item.obj[item.prop];
|
|
223
|
+
|
|
224
|
+
const keys = Object.keys(obj);
|
|
225
|
+
for (let j = 0; j < keys.length; ++j) {
|
|
226
|
+
const key = keys[j]!;
|
|
227
|
+
const val = obj[key];
|
|
228
|
+
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
229
|
+
queue.push({ obj: obj, prop: key });
|
|
230
|
+
refs.push(val);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
compact_queue(queue);
|
|
236
|
+
|
|
237
|
+
return value;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export function is_regexp(obj: any) {
|
|
241
|
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export function is_buffer(obj: any) {
|
|
245
|
+
if (!obj || typeof obj !== 'object') {
|
|
246
|
+
return false;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export function combine(a: any, b: any) {
|
|
253
|
+
return [].concat(a, b);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export function maybe_map<T>(val: T[], fn: (v: T) => T) {
|
|
257
|
+
if (is_array(val)) {
|
|
258
|
+
const mapped = [];
|
|
259
|
+
for (let i = 0; i < val.length; i += 1) {
|
|
260
|
+
mapped.push(fn(val[i]!));
|
|
261
|
+
}
|
|
262
|
+
return mapped;
|
|
263
|
+
}
|
|
264
|
+
return fn(val);
|
|
265
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ export {
|
|
|
5
5
|
InferencePipelines,
|
|
6
6
|
type InferencePipelineRetrieveResponse,
|
|
7
7
|
type InferencePipelineUpdateResponse,
|
|
8
|
+
type InferencePipelineRetrieveParams,
|
|
8
9
|
type InferencePipelineUpdateParams,
|
|
9
10
|
} from './inference-pipelines';
|
|
10
11
|
export { Rows, type RowUpdateResponse, type RowUpdateParams } from './rows';
|
|
@@ -20,9 +20,22 @@ export class InferencePipelines extends APIResource {
|
|
|
20
20
|
*/
|
|
21
21
|
retrieve(
|
|
22
22
|
inferencePipelineId: string,
|
|
23
|
+
query?: InferencePipelineRetrieveParams,
|
|
24
|
+
options?: Core.RequestOptions,
|
|
25
|
+
): Core.APIPromise<InferencePipelineRetrieveResponse>;
|
|
26
|
+
retrieve(
|
|
27
|
+
inferencePipelineId: string,
|
|
28
|
+
options?: Core.RequestOptions,
|
|
29
|
+
): Core.APIPromise<InferencePipelineRetrieveResponse>;
|
|
30
|
+
retrieve(
|
|
31
|
+
inferencePipelineId: string,
|
|
32
|
+
query: InferencePipelineRetrieveParams | Core.RequestOptions = {},
|
|
23
33
|
options?: Core.RequestOptions,
|
|
24
34
|
): Core.APIPromise<InferencePipelineRetrieveResponse> {
|
|
25
|
-
|
|
35
|
+
if (isRequestOptions(query)) {
|
|
36
|
+
return this.retrieve(inferencePipelineId, {}, query);
|
|
37
|
+
}
|
|
38
|
+
return this._client.get(`/inference-pipelines/${inferencePipelineId}`, { query, ...options });
|
|
26
39
|
}
|
|
27
40
|
|
|
28
41
|
/**
|
|
@@ -131,12 +144,185 @@ export interface InferencePipelineRetrieveResponse {
|
|
|
131
144
|
* The total number of tests.
|
|
132
145
|
*/
|
|
133
146
|
totalGoalCount: number;
|
|
147
|
+
|
|
148
|
+
project?: InferencePipelineRetrieveResponse.Project | null;
|
|
149
|
+
|
|
150
|
+
workspace?: InferencePipelineRetrieveResponse.Workspace | null;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* The workspace id.
|
|
154
|
+
*/
|
|
155
|
+
workspaceId?: string;
|
|
134
156
|
}
|
|
135
157
|
|
|
136
158
|
export namespace InferencePipelineRetrieveResponse {
|
|
137
159
|
export interface Links {
|
|
138
160
|
app: string;
|
|
139
161
|
}
|
|
162
|
+
|
|
163
|
+
export interface Project {
|
|
164
|
+
/**
|
|
165
|
+
* The project id.
|
|
166
|
+
*/
|
|
167
|
+
id: string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* The project creator id.
|
|
171
|
+
*/
|
|
172
|
+
creatorId: string | null;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* The project creation date.
|
|
176
|
+
*/
|
|
177
|
+
dateCreated: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* The project last updated date.
|
|
181
|
+
*/
|
|
182
|
+
dateUpdated: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* The number of tests in the development mode of the project.
|
|
186
|
+
*/
|
|
187
|
+
developmentGoalCount: number;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* The total number of tests in the project.
|
|
191
|
+
*/
|
|
192
|
+
goalCount: number;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* The number of inference pipelines in the project.
|
|
196
|
+
*/
|
|
197
|
+
inferencePipelineCount: number;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Links to the project.
|
|
201
|
+
*/
|
|
202
|
+
links: Project.Links;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* The number of tests in the monitoring mode of the project.
|
|
206
|
+
*/
|
|
207
|
+
monitoringGoalCount: number;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* The project name.
|
|
211
|
+
*/
|
|
212
|
+
name: string;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* The source of the project.
|
|
216
|
+
*/
|
|
217
|
+
source: 'web' | 'api' | 'null' | null;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* The task type of the project.
|
|
221
|
+
*/
|
|
222
|
+
taskType: 'llm-base' | 'tabular-classification' | 'tabular-regression' | 'text-classification';
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* The number of versions (commits) in the project.
|
|
226
|
+
*/
|
|
227
|
+
versionCount: number;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* The workspace id.
|
|
231
|
+
*/
|
|
232
|
+
workspaceId: string | null;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* The project description.
|
|
236
|
+
*/
|
|
237
|
+
description?: string | null;
|
|
238
|
+
|
|
239
|
+
gitRepo?: Project.GitRepo | null;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export namespace Project {
|
|
243
|
+
/**
|
|
244
|
+
* Links to the project.
|
|
245
|
+
*/
|
|
246
|
+
export interface Links {
|
|
247
|
+
app: string;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export interface GitRepo {
|
|
251
|
+
id: string;
|
|
252
|
+
|
|
253
|
+
dateConnected: string;
|
|
254
|
+
|
|
255
|
+
dateUpdated: string;
|
|
256
|
+
|
|
257
|
+
gitAccountId: string;
|
|
258
|
+
|
|
259
|
+
gitId: number;
|
|
260
|
+
|
|
261
|
+
name: string;
|
|
262
|
+
|
|
263
|
+
private: boolean;
|
|
264
|
+
|
|
265
|
+
projectId: string;
|
|
266
|
+
|
|
267
|
+
slug: string;
|
|
268
|
+
|
|
269
|
+
url: string;
|
|
270
|
+
|
|
271
|
+
branch?: string;
|
|
272
|
+
|
|
273
|
+
rootDir?: string;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export interface Workspace {
|
|
278
|
+
id: string;
|
|
279
|
+
|
|
280
|
+
creatorId: string | null;
|
|
281
|
+
|
|
282
|
+
dateCreated: string;
|
|
283
|
+
|
|
284
|
+
dateUpdated: string;
|
|
285
|
+
|
|
286
|
+
inviteCount: number;
|
|
287
|
+
|
|
288
|
+
memberCount: number;
|
|
289
|
+
|
|
290
|
+
name: string;
|
|
291
|
+
|
|
292
|
+
periodEndDate: string | null;
|
|
293
|
+
|
|
294
|
+
periodStartDate: string | null;
|
|
295
|
+
|
|
296
|
+
projectCount: number;
|
|
297
|
+
|
|
298
|
+
slug: string;
|
|
299
|
+
|
|
300
|
+
status:
|
|
301
|
+
| 'active'
|
|
302
|
+
| 'past_due'
|
|
303
|
+
| 'unpaid'
|
|
304
|
+
| 'canceled'
|
|
305
|
+
| 'incomplete'
|
|
306
|
+
| 'incomplete_expired'
|
|
307
|
+
| 'trialing'
|
|
308
|
+
| 'paused';
|
|
309
|
+
|
|
310
|
+
monthlyUsage?: Array<Workspace.MonthlyUsage>;
|
|
311
|
+
|
|
312
|
+
samlOnlyAccess?: boolean;
|
|
313
|
+
|
|
314
|
+
wildcardDomains?: Array<string>;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export namespace Workspace {
|
|
318
|
+
export interface MonthlyUsage {
|
|
319
|
+
executionTimeMs?: number | null;
|
|
320
|
+
|
|
321
|
+
monthYear?: string;
|
|
322
|
+
|
|
323
|
+
predictionCount?: number;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
140
326
|
}
|
|
141
327
|
|
|
142
328
|
export interface InferencePipelineUpdateResponse {
|
|
@@ -211,12 +397,192 @@ export interface InferencePipelineUpdateResponse {
|
|
|
211
397
|
* The total number of tests.
|
|
212
398
|
*/
|
|
213
399
|
totalGoalCount: number;
|
|
400
|
+
|
|
401
|
+
project?: InferencePipelineUpdateResponse.Project | null;
|
|
402
|
+
|
|
403
|
+
workspace?: InferencePipelineUpdateResponse.Workspace | null;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* The workspace id.
|
|
407
|
+
*/
|
|
408
|
+
workspaceId?: string;
|
|
214
409
|
}
|
|
215
410
|
|
|
216
411
|
export namespace InferencePipelineUpdateResponse {
|
|
217
412
|
export interface Links {
|
|
218
413
|
app: string;
|
|
219
414
|
}
|
|
415
|
+
|
|
416
|
+
export interface Project {
|
|
417
|
+
/**
|
|
418
|
+
* The project id.
|
|
419
|
+
*/
|
|
420
|
+
id: string;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* The project creator id.
|
|
424
|
+
*/
|
|
425
|
+
creatorId: string | null;
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* The project creation date.
|
|
429
|
+
*/
|
|
430
|
+
dateCreated: string;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* The project last updated date.
|
|
434
|
+
*/
|
|
435
|
+
dateUpdated: string;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* The number of tests in the development mode of the project.
|
|
439
|
+
*/
|
|
440
|
+
developmentGoalCount: number;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* The total number of tests in the project.
|
|
444
|
+
*/
|
|
445
|
+
goalCount: number;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* The number of inference pipelines in the project.
|
|
449
|
+
*/
|
|
450
|
+
inferencePipelineCount: number;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Links to the project.
|
|
454
|
+
*/
|
|
455
|
+
links: Project.Links;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* The number of tests in the monitoring mode of the project.
|
|
459
|
+
*/
|
|
460
|
+
monitoringGoalCount: number;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* The project name.
|
|
464
|
+
*/
|
|
465
|
+
name: string;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* The source of the project.
|
|
469
|
+
*/
|
|
470
|
+
source: 'web' | 'api' | 'null' | null;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* The task type of the project.
|
|
474
|
+
*/
|
|
475
|
+
taskType: 'llm-base' | 'tabular-classification' | 'tabular-regression' | 'text-classification';
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* The number of versions (commits) in the project.
|
|
479
|
+
*/
|
|
480
|
+
versionCount: number;
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* The workspace id.
|
|
484
|
+
*/
|
|
485
|
+
workspaceId: string | null;
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* The project description.
|
|
489
|
+
*/
|
|
490
|
+
description?: string | null;
|
|
491
|
+
|
|
492
|
+
gitRepo?: Project.GitRepo | null;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
export namespace Project {
|
|
496
|
+
/**
|
|
497
|
+
* Links to the project.
|
|
498
|
+
*/
|
|
499
|
+
export interface Links {
|
|
500
|
+
app: string;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export interface GitRepo {
|
|
504
|
+
id: string;
|
|
505
|
+
|
|
506
|
+
dateConnected: string;
|
|
507
|
+
|
|
508
|
+
dateUpdated: string;
|
|
509
|
+
|
|
510
|
+
gitAccountId: string;
|
|
511
|
+
|
|
512
|
+
gitId: number;
|
|
513
|
+
|
|
514
|
+
name: string;
|
|
515
|
+
|
|
516
|
+
private: boolean;
|
|
517
|
+
|
|
518
|
+
projectId: string;
|
|
519
|
+
|
|
520
|
+
slug: string;
|
|
521
|
+
|
|
522
|
+
url: string;
|
|
523
|
+
|
|
524
|
+
branch?: string;
|
|
525
|
+
|
|
526
|
+
rootDir?: string;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
export interface Workspace {
|
|
531
|
+
id: string;
|
|
532
|
+
|
|
533
|
+
creatorId: string | null;
|
|
534
|
+
|
|
535
|
+
dateCreated: string;
|
|
536
|
+
|
|
537
|
+
dateUpdated: string;
|
|
538
|
+
|
|
539
|
+
inviteCount: number;
|
|
540
|
+
|
|
541
|
+
memberCount: number;
|
|
542
|
+
|
|
543
|
+
name: string;
|
|
544
|
+
|
|
545
|
+
periodEndDate: string | null;
|
|
546
|
+
|
|
547
|
+
periodStartDate: string | null;
|
|
548
|
+
|
|
549
|
+
projectCount: number;
|
|
550
|
+
|
|
551
|
+
slug: string;
|
|
552
|
+
|
|
553
|
+
status:
|
|
554
|
+
| 'active'
|
|
555
|
+
| 'past_due'
|
|
556
|
+
| 'unpaid'
|
|
557
|
+
| 'canceled'
|
|
558
|
+
| 'incomplete'
|
|
559
|
+
| 'incomplete_expired'
|
|
560
|
+
| 'trialing'
|
|
561
|
+
| 'paused';
|
|
562
|
+
|
|
563
|
+
monthlyUsage?: Array<Workspace.MonthlyUsage>;
|
|
564
|
+
|
|
565
|
+
samlOnlyAccess?: boolean;
|
|
566
|
+
|
|
567
|
+
wildcardDomains?: Array<string>;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
export namespace Workspace {
|
|
571
|
+
export interface MonthlyUsage {
|
|
572
|
+
executionTimeMs?: number | null;
|
|
573
|
+
|
|
574
|
+
monthYear?: string;
|
|
575
|
+
|
|
576
|
+
predictionCount?: number;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
export interface InferencePipelineRetrieveParams {
|
|
582
|
+
/**
|
|
583
|
+
* Expand specific nested objects.
|
|
584
|
+
*/
|
|
585
|
+
expand?: Array<'project' | 'workspace'>;
|
|
220
586
|
}
|
|
221
587
|
|
|
222
588
|
export interface InferencePipelineUpdateParams {
|
|
@@ -245,6 +611,7 @@ export declare namespace InferencePipelines {
|
|
|
245
611
|
export {
|
|
246
612
|
type InferencePipelineRetrieveResponse as InferencePipelineRetrieveResponse,
|
|
247
613
|
type InferencePipelineUpdateResponse as InferencePipelineUpdateResponse,
|
|
614
|
+
type InferencePipelineRetrieveParams as InferencePipelineRetrieveParams,
|
|
248
615
|
type InferencePipelineUpdateParams as InferencePipelineUpdateParams,
|
|
249
616
|
};
|
|
250
617
|
|