openlayer 0.3.0 → 0.4.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 +10 -0
- package/README.md +1 -9
- package/package.json +1 -1
- package/resources/inference-pipelines/data.d.ts +2 -2
- package/resources/inference-pipelines/data.js +1 -1
- package/resources/inference-pipelines/data.mjs +1 -1
- package/resources/inference-pipelines/index.d.ts +1 -0
- package/resources/inference-pipelines/index.d.ts.map +1 -1
- package/resources/inference-pipelines/index.js +3 -1
- package/resources/inference-pipelines/index.js.map +1 -1
- package/resources/inference-pipelines/index.mjs +1 -0
- package/resources/inference-pipelines/index.mjs.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.d.ts +5 -0
- package/resources/inference-pipelines/inference-pipelines.d.ts.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.js +3 -0
- package/resources/inference-pipelines/inference-pipelines.js.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.mjs +3 -0
- package/resources/inference-pipelines/inference-pipelines.mjs.map +1 -1
- package/resources/inference-pipelines/rows.d.ts +58 -0
- package/resources/inference-pipelines/rows.d.ts.map +1 -0
- package/resources/inference-pipelines/rows.js +22 -0
- package/resources/inference-pipelines/rows.js.map +1 -0
- package/resources/inference-pipelines/rows.mjs +18 -0
- package/resources/inference-pipelines/rows.mjs.map +1 -0
- package/src/resources/inference-pipelines/data.ts +2 -2
- package/src/resources/inference-pipelines/index.ts +1 -0
- package/src/resources/inference-pipelines/inference-pipelines.ts +5 -0
- package/src/resources/inference-pipelines/rows.ts +81 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0 (2024-07-17)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.3.0...v0.4.0](https://github.com/openlayer-ai/openlayer-ts/compare/v0.3.0...v0.4.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** OpenAPI spec update via Stainless API ([#27](https://github.com/openlayer-ai/openlayer-ts/issues/27)) ([8e1b3c7](https://github.com/openlayer-ai/openlayer-ts/commit/8e1b3c7c31113596ef4ef2539f49b824f2b93cff))
|
|
10
|
+
* **api:** update via SDK Studio ([#29](https://github.com/openlayer-ai/openlayer-ts/issues/29)) ([1e7eed5](https://github.com/openlayer-ai/openlayer-ts/commit/1e7eed5acb7fe5ae931c5b0238eda0512fbd46b8))
|
|
11
|
+
* **api:** update via SDK Studio ([#30](https://github.com/openlayer-ai/openlayer-ts/issues/30)) ([742ef6a](https://github.com/openlayer-ai/openlayer-ts/commit/742ef6ae37fedae5640a829fa149b947c8d362b5))
|
|
12
|
+
|
|
3
13
|
## 0.3.0 (2024-07-08)
|
|
4
14
|
|
|
5
15
|
Full Changelog: [v0.2.2...v0.3.0](https://github.com/openlayer-ai/openlayer-ts/compare/v0.2.2...v0.3.0)
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
This library provides convenient access to the Openlayer REST API from server-side TypeScript or JavaScript.
|
|
6
6
|
|
|
7
|
-
The REST API documentation can be found
|
|
7
|
+
The REST API documentation can be found on [openlayer.com](https://openlayer.com/docs/api-reference/rest/overview). The full API of this library can be found in [api.md](api.md).
|
|
8
8
|
|
|
9
9
|
It is generated with [Stainless](https://www.stainlessapi.com/).
|
|
10
10
|
|
|
@@ -396,14 +396,6 @@ TypeScript >= 4.5 is supported.
|
|
|
396
396
|
|
|
397
397
|
The following runtimes are supported:
|
|
398
398
|
|
|
399
|
-
- Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
|
|
400
|
-
- Deno v1.28.0 or higher, using `import Openlayer from "npm:openlayer"`.
|
|
401
|
-
- Bun 1.0 or later.
|
|
402
|
-
- Cloudflare Workers.
|
|
403
|
-
- Vercel Edge Runtime.
|
|
404
|
-
- Jest 28 or greater with the `"node"` environment (`"jsdom"` is not supported at this time).
|
|
405
|
-
- Nitro v2.6 or greater.
|
|
406
|
-
|
|
407
399
|
Note that React Native is not supported at this time.
|
|
408
400
|
|
|
409
401
|
If you are interested in other runtime environments, please open or upvote an issue on GitHub.
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import * as Core from "../../core.js";
|
|
|
3
3
|
import * as DataAPI from "./data.js";
|
|
4
4
|
export declare class Data extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Create an inference data point in an inference pipeline.
|
|
7
7
|
*/
|
|
8
8
|
stream(inferencePipelineId: string, body: DataStreamParams, options?: Core.RequestOptions): Core.APIPromise<DataStreamResponse>;
|
|
9
9
|
}
|
|
@@ -17,7 +17,7 @@ export interface DataStreamParams {
|
|
|
17
17
|
*/
|
|
18
18
|
config: DataStreamParams.LlmData | DataStreamParams.TabularClassificationData | DataStreamParams.TabularRegressionData | DataStreamParams.TextClassificationData;
|
|
19
19
|
/**
|
|
20
|
-
* A list of
|
|
20
|
+
* A list of inference data points with inputs and outputs
|
|
21
21
|
*/
|
|
22
22
|
rows: Array<Record<string, unknown>>;
|
|
23
23
|
}
|
|
@@ -5,7 +5,7 @@ exports.Data = void 0;
|
|
|
5
5
|
const resource_1 = require("../../resource.js");
|
|
6
6
|
class Data extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Create an inference data point in an inference pipeline.
|
|
9
9
|
*/
|
|
10
10
|
stream(inferencePipelineId, body, options) {
|
|
11
11
|
return this._client.post(`/inference-pipelines/${inferencePipelineId}/data-stream`, { body, ...options });
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
3
|
export class Data extends APIResource {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Create an inference data point in an inference pipeline.
|
|
6
6
|
*/
|
|
7
7
|
stream(inferencePipelineId, body, options) {
|
|
8
8
|
return this._client.post(`/inference-pipelines/${inferencePipelineId}/data-stream`, { body, ...options });
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { DataStreamResponse, DataStreamParams, Data } from "./data.js";
|
|
2
2
|
export { InferencePipelines } from "./inference-pipelines.js";
|
|
3
|
+
export { RowUpdateResponse, RowUpdateParams, Rows } from "./rows.js";
|
|
3
4
|
export { TestResultListResponse, TestResultListParams, TestResults } from "./test-results.js";
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/inference-pipelines/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/inference-pipelines/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.TestResults = exports.InferencePipelines = exports.Data = void 0;
|
|
4
|
+
exports.TestResults = exports.Rows = exports.InferencePipelines = exports.Data = void 0;
|
|
5
5
|
var data_1 = require("./data.js");
|
|
6
6
|
Object.defineProperty(exports, "Data", { enumerable: true, get: function () { return data_1.Data; } });
|
|
7
7
|
var inference_pipelines_1 = require("./inference-pipelines.js");
|
|
8
8
|
Object.defineProperty(exports, "InferencePipelines", { enumerable: true, get: function () { return inference_pipelines_1.InferencePipelines; } });
|
|
9
|
+
var rows_1 = require("./rows.js");
|
|
10
|
+
Object.defineProperty(exports, "Rows", { enumerable: true, get: function () { return rows_1.Rows; } });
|
|
9
11
|
var test_results_1 = require("./test-results.js");
|
|
10
12
|
Object.defineProperty(exports, "TestResults", { enumerable: true, get: function () { return test_results_1.TestResults; } });
|
|
11
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/inference-pipelines/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAAoE;AAArB,4FAAA,IAAI,OAAA;AACnD,gEAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAC3B,kDAA2F;AAApC,2GAAA,WAAW,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/inference-pipelines/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAAoE;AAArB,4FAAA,IAAI,OAAA;AACnD,gEAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAC3B,kCAAkE;AAArB,4FAAA,IAAI,OAAA;AACjD,kDAA2F;AAApC,2GAAA,WAAW,OAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Data } from "./data.mjs";
|
|
3
3
|
export { InferencePipelines } from "./inference-pipelines.mjs";
|
|
4
|
+
export { Rows } from "./rows.mjs";
|
|
4
5
|
export { TestResults } from "./test-results.mjs";
|
|
5
6
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/inference-pipelines/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAwC,IAAI,EAAE;OAC9C,EAAE,kBAAkB,EAAE;OACtB,EAAgD,WAAW,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/inference-pipelines/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAwC,IAAI,EAAE;OAC9C,EAAE,kBAAkB,EAAE;OACtB,EAAsC,IAAI,EAAE;OAC5C,EAAgD,WAAW,EAAE"}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as DataAPI from "./data.js";
|
|
3
|
+
import * as RowsAPI from "./rows.js";
|
|
3
4
|
import * as TestResultsAPI from "./test-results.js";
|
|
4
5
|
export declare class InferencePipelines extends APIResource {
|
|
5
6
|
data: DataAPI.Data;
|
|
7
|
+
rows: RowsAPI.Rows;
|
|
6
8
|
testResults: TestResultsAPI.TestResults;
|
|
7
9
|
}
|
|
8
10
|
export declare namespace InferencePipelines {
|
|
9
11
|
export import Data = DataAPI.Data;
|
|
10
12
|
export import DataStreamResponse = DataAPI.DataStreamResponse;
|
|
11
13
|
export import DataStreamParams = DataAPI.DataStreamParams;
|
|
14
|
+
export import Rows = RowsAPI.Rows;
|
|
15
|
+
export import RowUpdateResponse = RowsAPI.RowUpdateResponse;
|
|
16
|
+
export import RowUpdateParams = RowsAPI.RowUpdateParams;
|
|
12
17
|
export import TestResults = TestResultsAPI.TestResults;
|
|
13
18
|
export import TestResultListResponse = TestResultsAPI.TestResultListResponse;
|
|
14
19
|
export import TestResultListParams = TestResultsAPI.TestResultListParams;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inference-pipelines.d.ts","sourceRoot":"","sources":["../../src/resources/inference-pipelines/inference-pipelines.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,cAAc,MAAM,gBAAgB,CAAC;AAEjD,qBAAa,kBAAmB,SAAQ,WAAW;IACjD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;CACxF;AAED,yBAAiB,kBAAkB,CAAC;IAClC,MAAM,QAAQ,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAClC,MAAM,QAAQ,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAC9D,MAAM,QAAQ,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAC1D,MAAM,QAAQ,WAAW,GAAG,cAAc,CAAC,WAAW,CAAC;IACvD,MAAM,QAAQ,sBAAsB,GAAG,cAAc,CAAC,sBAAsB,CAAC;IAC7E,MAAM,QAAQ,oBAAoB,GAAG,cAAc,CAAC,oBAAoB,CAAC;CAC1E"}
|
|
1
|
+
{"version":3,"file":"inference-pipelines.d.ts","sourceRoot":"","sources":["../../src/resources/inference-pipelines/inference-pipelines.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,cAAc,MAAM,gBAAgB,CAAC;AAEjD,qBAAa,kBAAmB,SAAQ,WAAW;IACjD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;CACxF;AAED,yBAAiB,kBAAkB,CAAC;IAClC,MAAM,QAAQ,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAClC,MAAM,QAAQ,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAC9D,MAAM,QAAQ,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAC1D,MAAM,QAAQ,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAClC,MAAM,QAAQ,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAC5D,MAAM,QAAQ,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;IACxD,MAAM,QAAQ,WAAW,GAAG,cAAc,CAAC,WAAW,CAAC;IACvD,MAAM,QAAQ,sBAAsB,GAAG,cAAc,CAAC,sBAAsB,CAAC;IAC7E,MAAM,QAAQ,oBAAoB,GAAG,cAAc,CAAC,oBAAoB,CAAC;CAC1E"}
|
|
@@ -27,17 +27,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.InferencePipelines = void 0;
|
|
28
28
|
const resource_1 = require("../../resource.js");
|
|
29
29
|
const DataAPI = __importStar(require("./data.js"));
|
|
30
|
+
const RowsAPI = __importStar(require("./rows.js"));
|
|
30
31
|
const TestResultsAPI = __importStar(require("./test-results.js"));
|
|
31
32
|
class InferencePipelines extends resource_1.APIResource {
|
|
32
33
|
constructor() {
|
|
33
34
|
super(...arguments);
|
|
34
35
|
this.data = new DataAPI.Data(this._client);
|
|
36
|
+
this.rows = new RowsAPI.Rows(this._client);
|
|
35
37
|
this.testResults = new TestResultsAPI.TestResults(this._client);
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
exports.InferencePipelines = InferencePipelines;
|
|
39
41
|
(function (InferencePipelines) {
|
|
40
42
|
InferencePipelines.Data = DataAPI.Data;
|
|
43
|
+
InferencePipelines.Rows = RowsAPI.Rows;
|
|
41
44
|
InferencePipelines.TestResults = TestResultsAPI.TestResults;
|
|
42
45
|
})(InferencePipelines = exports.InferencePipelines || (exports.InferencePipelines = {}));
|
|
43
46
|
//# sourceMappingURL=inference-pipelines.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inference-pipelines.js","sourceRoot":"","sources":["../../src/resources/inference-pipelines/inference-pipelines.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,mDAAkC;AAClC,kEAAiD;AAEjD,MAAa,kBAAmB,SAAQ,sBAAW;IAAnD;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;
|
|
1
|
+
{"version":3,"file":"inference-pipelines.js","sourceRoot":"","sources":["../../src/resources/inference-pipelines/inference-pipelines.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,mDAAkC;AAClC,mDAAkC;AAClC,kEAAiD;AAEjD,MAAa,kBAAmB,SAAQ,sBAAW;IAAnD;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAJD,gDAIC;AAED,WAAiB,kBAAkB;IACnB,uBAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAGpB,uBAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAGpB,8BAAW,GAAG,cAAc,CAAC,WAAW,CAAC;AAGzD,CAAC,EAVgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAUlC"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
3
|
import * as DataAPI from "./data.mjs";
|
|
4
|
+
import * as RowsAPI from "./rows.mjs";
|
|
4
5
|
import * as TestResultsAPI from "./test-results.mjs";
|
|
5
6
|
export class InferencePipelines extends APIResource {
|
|
6
7
|
constructor() {
|
|
7
8
|
super(...arguments);
|
|
8
9
|
this.data = new DataAPI.Data(this._client);
|
|
10
|
+
this.rows = new RowsAPI.Rows(this._client);
|
|
9
11
|
this.testResults = new TestResultsAPI.TestResults(this._client);
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
(function (InferencePipelines) {
|
|
13
15
|
InferencePipelines.Data = DataAPI.Data;
|
|
16
|
+
InferencePipelines.Rows = RowsAPI.Rows;
|
|
14
17
|
InferencePipelines.TestResults = TestResultsAPI.TestResults;
|
|
15
18
|
})(InferencePipelines || (InferencePipelines = {}));
|
|
16
19
|
//# sourceMappingURL=inference-pipelines.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inference-pipelines.mjs","sourceRoot":"","sources":["../../src/resources/inference-pipelines/inference-pipelines.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,cAAc;AAE1B,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IAAnD;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAED,WAAiB,kBAAkB;IACnB,uBAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAGpB,8BAAW,GAAG,cAAc,CAAC,WAAW,CAAC;AAGzD,CAAC,
|
|
1
|
+
{"version":3,"file":"inference-pipelines.mjs","sourceRoot":"","sources":["../../src/resources/inference-pipelines/inference-pipelines.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,OAAO;OACZ,KAAK,cAAc;AAE1B,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IAAnD;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAED,WAAiB,kBAAkB;IACnB,uBAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAGpB,uBAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAGpB,8BAAW,GAAG,cAAc,CAAC,WAAW,CAAC;AAGzD,CAAC,EAVgB,kBAAkB,KAAlB,kBAAkB,QAUlC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import * as RowsAPI from "./rows.js";
|
|
4
|
+
export declare class Rows extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Update an inference data point in an inference pipeline.
|
|
7
|
+
*/
|
|
8
|
+
update(inferencePipelineId: string, params: RowUpdateParams, options?: Core.RequestOptions): Core.APIPromise<RowUpdateResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface RowUpdateResponse {
|
|
11
|
+
success: true;
|
|
12
|
+
}
|
|
13
|
+
export interface RowUpdateParams {
|
|
14
|
+
/**
|
|
15
|
+
* Query param: Specify the inference id as a query param.
|
|
16
|
+
*/
|
|
17
|
+
inferenceId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Body param:
|
|
20
|
+
*/
|
|
21
|
+
row: unknown;
|
|
22
|
+
/**
|
|
23
|
+
* Body param:
|
|
24
|
+
*/
|
|
25
|
+
config?: RowUpdateParams.Config | null;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace RowUpdateParams {
|
|
28
|
+
interface Config {
|
|
29
|
+
/**
|
|
30
|
+
* Name of the column with the ground truths.
|
|
31
|
+
*/
|
|
32
|
+
groundTruthColumnName?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Name of the column with human feedback.
|
|
35
|
+
*/
|
|
36
|
+
humanFeedbackColumnName?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Name of the column with the inference ids. This is useful if you want to update
|
|
39
|
+
* rows at a later point in time. If not provided, a unique id is generated by
|
|
40
|
+
* Openlayer.
|
|
41
|
+
*/
|
|
42
|
+
inferenceIdColumnName?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Name of the column with the latencies.
|
|
45
|
+
*/
|
|
46
|
+
latencyColumnName?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* Name of the column with the timestamps. Timestamps must be in UNIX sec format.
|
|
49
|
+
* If not provided, the upload timestamp is used.
|
|
50
|
+
*/
|
|
51
|
+
timestampColumnName?: string | null;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export declare namespace Rows {
|
|
55
|
+
export import RowUpdateResponse = RowsAPI.RowUpdateResponse;
|
|
56
|
+
export import RowUpdateParams = RowsAPI.RowUpdateParams;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=rows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rows.d.ts","sourceRoot":"","sources":["../../src/resources/inference-pipelines/rows.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAElC,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CACJ,mBAAmB,EAAE,MAAM,EAC3B,MAAM,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;CAQtC;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,GAAG,EAAE,OAAO,CAAC;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC;CACxC;AAED,yBAAiB,eAAe,CAAC;IAC/B,UAAiB,MAAM;QACrB;;WAEG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEtC;;WAEG;QACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAExC;;;;WAIG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEtC;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAElC;;;WAGG;QACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACrC;CACF;AAED,yBAAiB,IAAI,CAAC;IACpB,MAAM,QAAQ,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAC5D,MAAM,QAAQ,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;CACzD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Rows = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class Rows extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Update an inference data point in an inference pipeline.
|
|
9
|
+
*/
|
|
10
|
+
update(inferencePipelineId, params, options) {
|
|
11
|
+
const { inferenceId, ...body } = params;
|
|
12
|
+
return this._client.put(`/inference-pipelines/${inferencePipelineId}/rows`, {
|
|
13
|
+
query: { inferenceId },
|
|
14
|
+
body,
|
|
15
|
+
...options,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.Rows = Rows;
|
|
20
|
+
(function (Rows) {
|
|
21
|
+
})(Rows = exports.Rows || (exports.Rows = {}));
|
|
22
|
+
//# sourceMappingURL=rows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rows.js","sourceRoot":"","sources":["../../src/resources/inference-pipelines/rows.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAI7C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,MAAM,CACJ,mBAA2B,EAC3B,MAAuB,EACvB,OAA6B;QAE7B,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,mBAAmB,OAAO,EAAE;YAC1E,KAAK,EAAE,EAAE,WAAW,EAAE;YACtB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAhBD,oBAgBC;AAuDD,WAAiB,IAAI;AAGrB,CAAC,EAHgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAGpB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
export class Rows extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Update an inference data point in an inference pipeline.
|
|
6
|
+
*/
|
|
7
|
+
update(inferencePipelineId, params, options) {
|
|
8
|
+
const { inferenceId, ...body } = params;
|
|
9
|
+
return this._client.put(`/inference-pipelines/${inferencePipelineId}/rows`, {
|
|
10
|
+
query: { inferenceId },
|
|
11
|
+
body,
|
|
12
|
+
...options,
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
(function (Rows) {
|
|
17
|
+
})(Rows || (Rows = {}));
|
|
18
|
+
//# sourceMappingURL=rows.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rows.mjs","sourceRoot":"","sources":["../../src/resources/inference-pipelines/rows.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CACJ,mBAA2B,EAC3B,MAAuB,EACvB,OAA6B;QAE7B,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,mBAAmB,OAAO,EAAE;YAC1E,KAAK,EAAE,EAAE,WAAW,EAAE;YACtB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAuDD,WAAiB,IAAI;AAGrB,CAAC,EAHgB,IAAI,KAAJ,IAAI,QAGpB"}
|
|
@@ -6,7 +6,7 @@ import * as DataAPI from './data';
|
|
|
6
6
|
|
|
7
7
|
export class Data extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Create an inference data point in an inference pipeline.
|
|
10
10
|
*/
|
|
11
11
|
stream(
|
|
12
12
|
inferencePipelineId: string,
|
|
@@ -33,7 +33,7 @@ export interface DataStreamParams {
|
|
|
33
33
|
| DataStreamParams.TextClassificationData;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* A list of
|
|
36
|
+
* A list of inference data points with inputs and outputs
|
|
37
37
|
*/
|
|
38
38
|
rows: Array<Record<string, unknown>>;
|
|
39
39
|
}
|
|
@@ -2,4 +2,5 @@
|
|
|
2
2
|
|
|
3
3
|
export { DataStreamResponse, DataStreamParams, Data } from './data';
|
|
4
4
|
export { InferencePipelines } from './inference-pipelines';
|
|
5
|
+
export { RowUpdateResponse, RowUpdateParams, Rows } from './rows';
|
|
5
6
|
export { TestResultListResponse, TestResultListParams, TestResults } from './test-results';
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import * as DataAPI from './data';
|
|
5
|
+
import * as RowsAPI from './rows';
|
|
5
6
|
import * as TestResultsAPI from './test-results';
|
|
6
7
|
|
|
7
8
|
export class InferencePipelines extends APIResource {
|
|
8
9
|
data: DataAPI.Data = new DataAPI.Data(this._client);
|
|
10
|
+
rows: RowsAPI.Rows = new RowsAPI.Rows(this._client);
|
|
9
11
|
testResults: TestResultsAPI.TestResults = new TestResultsAPI.TestResults(this._client);
|
|
10
12
|
}
|
|
11
13
|
|
|
@@ -13,6 +15,9 @@ export namespace InferencePipelines {
|
|
|
13
15
|
export import Data = DataAPI.Data;
|
|
14
16
|
export import DataStreamResponse = DataAPI.DataStreamResponse;
|
|
15
17
|
export import DataStreamParams = DataAPI.DataStreamParams;
|
|
18
|
+
export import Rows = RowsAPI.Rows;
|
|
19
|
+
export import RowUpdateResponse = RowsAPI.RowUpdateResponse;
|
|
20
|
+
export import RowUpdateParams = RowsAPI.RowUpdateParams;
|
|
16
21
|
export import TestResults = TestResultsAPI.TestResults;
|
|
17
22
|
export import TestResultListResponse = TestResultsAPI.TestResultListResponse;
|
|
18
23
|
export import TestResultListParams = TestResultsAPI.TestResultListParams;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
import * as RowsAPI from './rows';
|
|
6
|
+
|
|
7
|
+
export class Rows extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Update an inference data point in an inference pipeline.
|
|
10
|
+
*/
|
|
11
|
+
update(
|
|
12
|
+
inferencePipelineId: string,
|
|
13
|
+
params: RowUpdateParams,
|
|
14
|
+
options?: Core.RequestOptions,
|
|
15
|
+
): Core.APIPromise<RowUpdateResponse> {
|
|
16
|
+
const { inferenceId, ...body } = params;
|
|
17
|
+
return this._client.put(`/inference-pipelines/${inferencePipelineId}/rows`, {
|
|
18
|
+
query: { inferenceId },
|
|
19
|
+
body,
|
|
20
|
+
...options,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface RowUpdateResponse {
|
|
26
|
+
success: true;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface RowUpdateParams {
|
|
30
|
+
/**
|
|
31
|
+
* Query param: Specify the inference id as a query param.
|
|
32
|
+
*/
|
|
33
|
+
inferenceId: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Body param:
|
|
37
|
+
*/
|
|
38
|
+
row: unknown;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Body param:
|
|
42
|
+
*/
|
|
43
|
+
config?: RowUpdateParams.Config | null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export namespace RowUpdateParams {
|
|
47
|
+
export interface Config {
|
|
48
|
+
/**
|
|
49
|
+
* Name of the column with the ground truths.
|
|
50
|
+
*/
|
|
51
|
+
groundTruthColumnName?: string | null;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Name of the column with human feedback.
|
|
55
|
+
*/
|
|
56
|
+
humanFeedbackColumnName?: string | null;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Name of the column with the inference ids. This is useful if you want to update
|
|
60
|
+
* rows at a later point in time. If not provided, a unique id is generated by
|
|
61
|
+
* Openlayer.
|
|
62
|
+
*/
|
|
63
|
+
inferenceIdColumnName?: string | null;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Name of the column with the latencies.
|
|
67
|
+
*/
|
|
68
|
+
latencyColumnName?: string | null;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Name of the column with the timestamps. Timestamps must be in UNIX sec format.
|
|
72
|
+
* If not provided, the upload timestamp is used.
|
|
73
|
+
*/
|
|
74
|
+
timestampColumnName?: string | null;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export namespace Rows {
|
|
79
|
+
export import RowUpdateResponse = RowsAPI.RowUpdateResponse;
|
|
80
|
+
export import RowUpdateParams = RowsAPI.RowUpdateParams;
|
|
81
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.4.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.4.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|