openlayer 0.3.0 → 0.7.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 +45 -0
- package/README.md +7 -15
- package/index.d.mts +5 -0
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -1
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/index.mjs +2 -0
- package/index.mjs.map +1 -1
- package/lib/core/openai-monitor.d.ts +3 -0
- package/lib/core/openai-monitor.d.ts.map +1 -1
- package/lib/core/openai-monitor.js +7 -1
- package/lib/core/openai-monitor.js.map +1 -1
- package/lib/core/openai-monitor.mjs +4 -1
- package/lib/core/openai-monitor.mjs.map +1 -1
- package/lib/integrations/langchainCallback.d.ts +33 -0
- package/lib/integrations/langchainCallback.d.ts.map +1 -0
- package/lib/integrations/langchainCallback.js +114 -0
- package/lib/integrations/langchainCallback.js.map +1 -0
- package/lib/integrations/langchainCallback.mjs +110 -0
- package/lib/integrations/langchainCallback.mjs.map +1 -0
- package/lib/integrations/openAiTracer.d.ts +3 -0
- package/lib/integrations/openAiTracer.d.ts.map +1 -0
- package/lib/integrations/openAiTracer.js +125 -0
- package/lib/integrations/openAiTracer.js.map +1 -0
- package/lib/integrations/openAiTracer.mjs +121 -0
- package/lib/integrations/openAiTracer.mjs.map +1 -0
- package/lib/tracing/enums.d.ts +5 -0
- package/lib/tracing/enums.d.ts.map +1 -0
- package/lib/tracing/enums.js +9 -0
- package/lib/tracing/enums.js.map +1 -0
- package/lib/tracing/enums.mjs +6 -0
- package/lib/tracing/enums.mjs.map +1 -0
- package/lib/tracing/steps.d.ts +57 -0
- package/lib/tracing/steps.d.ts.map +1 -0
- package/lib/tracing/steps.js +84 -0
- package/lib/tracing/steps.js.map +1 -0
- package/lib/tracing/steps.mjs +78 -0
- package/lib/tracing/steps.mjs.map +1 -0
- package/lib/tracing/tracer.d.ts +18 -0
- package/lib/tracing/tracer.d.ts.map +1 -0
- package/lib/tracing/tracer.js +155 -0
- package/lib/tracing/tracer.js.map +1 -0
- package/lib/tracing/tracer.mjs +148 -0
- package/lib/tracing/tracer.mjs.map +1 -0
- package/lib/tracing/traces.d.ts +9 -0
- package/lib/tracing/traces.d.ts.map +1 -0
- package/lib/tracing/traces.js +17 -0
- package/lib/tracing/traces.js.map +1 -0
- package/lib/tracing/traces.mjs +13 -0
- package/lib/tracing/traces.mjs.map +1 -0
- package/package.json +2 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +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 +2 -1
- 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 +2 -1
- package/resources/inference-pipelines/index.mjs.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.d.ts +166 -0
- package/resources/inference-pipelines/inference-pipelines.d.ts.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.js +25 -0
- package/resources/inference-pipelines/inference-pipelines.js.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.mjs +25 -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/resources/storage/index.d.ts +3 -0
- package/resources/storage/index.d.ts.map +1 -0
- package/resources/storage/index.js +9 -0
- package/resources/storage/index.js.map +1 -0
- package/resources/storage/index.mjs +4 -0
- package/resources/storage/index.mjs.map +1 -0
- package/resources/storage/presigned-url.d.ts +34 -0
- package/resources/storage/presigned-url.d.ts.map +1 -0
- package/resources/storage/presigned-url.js +18 -0
- package/resources/storage/presigned-url.js.map +1 -0
- package/resources/storage/presigned-url.mjs +14 -0
- package/resources/storage/presigned-url.mjs.map +1 -0
- package/resources/storage/storage.d.ts +11 -0
- package/resources/storage/storage.d.ts.map +1 -0
- package/resources/storage/storage.js +40 -0
- package/resources/storage/storage.js.map +1 -0
- package/resources/storage/storage.mjs +13 -0
- package/resources/storage/storage.mjs.map +1 -0
- package/src/index.ts +6 -0
- package/src/lib/core/openai-monitor.ts +7 -1
- package/src/lib/index.d.ts +1 -0
- package/src/lib/integrations/langchainCallback.ts +141 -0
- package/src/lib/integrations/openAiTracer.ts +137 -0
- package/src/lib/tracing/enums.ts +4 -0
- package/src/lib/tracing/index.d.ts +1 -0
- package/src/lib/tracing/steps.ts +118 -0
- package/src/lib/tracing/tracer.ts +204 -0
- package/src/lib/tracing/traces.ts +19 -0
- package/src/resources/index.ts +7 -1
- package/src/resources/inference-pipelines/data.ts +2 -2
- package/src/resources/inference-pipelines/index.ts +7 -1
- package/src/resources/inference-pipelines/inference-pipelines.ts +232 -0
- package/src/resources/inference-pipelines/rows.ts +81 -0
- package/src/resources/storage/index.ts +4 -0
- package/src/resources/storage/presigned-url.ts +47 -0
- package/src/resources/storage/storage.ts +14 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/src/lib/.keep +0 -4
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/inference-pipelines/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAwC,IAAI,EAAE;OAC9C,EAIL,kBAAkB,GACnB;OACM,EAAsC,IAAI,EAAE;OAC5C,EAAgD,WAAW,EAAE"}
|
|
@@ -1,14 +1,180 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import * as InferencePipelinesAPI from "./inference-pipelines.js";
|
|
2
4
|
import * as DataAPI from "./data.js";
|
|
5
|
+
import * as RowsAPI from "./rows.js";
|
|
3
6
|
import * as TestResultsAPI from "./test-results.js";
|
|
4
7
|
export declare class InferencePipelines extends APIResource {
|
|
5
8
|
data: DataAPI.Data;
|
|
9
|
+
rows: RowsAPI.Rows;
|
|
6
10
|
testResults: TestResultsAPI.TestResults;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve inference pipeline.
|
|
13
|
+
*/
|
|
14
|
+
retrieve(inferencePipelineId: string, options?: Core.RequestOptions): Core.APIPromise<InferencePipelineRetrieveResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Update inference pipeline.
|
|
17
|
+
*/
|
|
18
|
+
update(inferencePipelineId: string, body?: InferencePipelineUpdateParams, options?: Core.RequestOptions): Core.APIPromise<InferencePipelineUpdateResponse>;
|
|
19
|
+
update(inferencePipelineId: string, options?: Core.RequestOptions): Core.APIPromise<InferencePipelineUpdateResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Delete inference pipeline.
|
|
22
|
+
*/
|
|
23
|
+
delete(inferencePipelineId: string, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
24
|
+
}
|
|
25
|
+
export interface InferencePipelineRetrieveResponse {
|
|
26
|
+
/**
|
|
27
|
+
* The inference pipeline id.
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
/**
|
|
31
|
+
* The creation date.
|
|
32
|
+
*/
|
|
33
|
+
dateCreated: string;
|
|
34
|
+
/**
|
|
35
|
+
* The last test evaluation date.
|
|
36
|
+
*/
|
|
37
|
+
dateLastEvaluated: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* The last data sample received date.
|
|
40
|
+
*/
|
|
41
|
+
dateLastSampleReceived: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The next test evaluation date.
|
|
44
|
+
*/
|
|
45
|
+
dateOfNextEvaluation: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* The last updated date.
|
|
48
|
+
*/
|
|
49
|
+
dateUpdated: string;
|
|
50
|
+
/**
|
|
51
|
+
* The inference pipeline description.
|
|
52
|
+
*/
|
|
53
|
+
description: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* The number of tests failing.
|
|
56
|
+
*/
|
|
57
|
+
failingGoalCount: number;
|
|
58
|
+
links: InferencePipelineRetrieveResponse.Links;
|
|
59
|
+
/**
|
|
60
|
+
* The inference pipeline name.
|
|
61
|
+
*/
|
|
62
|
+
name: string;
|
|
63
|
+
/**
|
|
64
|
+
* The number of tests passing.
|
|
65
|
+
*/
|
|
66
|
+
passingGoalCount: number;
|
|
67
|
+
/**
|
|
68
|
+
* The project id.
|
|
69
|
+
*/
|
|
70
|
+
projectId: string;
|
|
71
|
+
/**
|
|
72
|
+
* The status of test evaluation for the inference pipeline.
|
|
73
|
+
*/
|
|
74
|
+
status: 'queued' | 'running' | 'paused' | 'failed' | 'completed' | 'unknown';
|
|
75
|
+
/**
|
|
76
|
+
* The status message of test evaluation for the inference pipeline.
|
|
77
|
+
*/
|
|
78
|
+
statusMessage: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* The total number of tests.
|
|
81
|
+
*/
|
|
82
|
+
totalGoalCount: number;
|
|
83
|
+
}
|
|
84
|
+
export declare namespace InferencePipelineRetrieveResponse {
|
|
85
|
+
interface Links {
|
|
86
|
+
app: string;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export interface InferencePipelineUpdateResponse {
|
|
90
|
+
/**
|
|
91
|
+
* The inference pipeline id.
|
|
92
|
+
*/
|
|
93
|
+
id: string;
|
|
94
|
+
/**
|
|
95
|
+
* The creation date.
|
|
96
|
+
*/
|
|
97
|
+
dateCreated: string;
|
|
98
|
+
/**
|
|
99
|
+
* The last test evaluation date.
|
|
100
|
+
*/
|
|
101
|
+
dateLastEvaluated: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* The last data sample received date.
|
|
104
|
+
*/
|
|
105
|
+
dateLastSampleReceived: string | null;
|
|
106
|
+
/**
|
|
107
|
+
* The next test evaluation date.
|
|
108
|
+
*/
|
|
109
|
+
dateOfNextEvaluation: string | null;
|
|
110
|
+
/**
|
|
111
|
+
* The last updated date.
|
|
112
|
+
*/
|
|
113
|
+
dateUpdated: string;
|
|
114
|
+
/**
|
|
115
|
+
* The inference pipeline description.
|
|
116
|
+
*/
|
|
117
|
+
description: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* The number of tests failing.
|
|
120
|
+
*/
|
|
121
|
+
failingGoalCount: number;
|
|
122
|
+
links: InferencePipelineUpdateResponse.Links;
|
|
123
|
+
/**
|
|
124
|
+
* The inference pipeline name.
|
|
125
|
+
*/
|
|
126
|
+
name: string;
|
|
127
|
+
/**
|
|
128
|
+
* The number of tests passing.
|
|
129
|
+
*/
|
|
130
|
+
passingGoalCount: number;
|
|
131
|
+
/**
|
|
132
|
+
* The project id.
|
|
133
|
+
*/
|
|
134
|
+
projectId: string;
|
|
135
|
+
/**
|
|
136
|
+
* The status of test evaluation for the inference pipeline.
|
|
137
|
+
*/
|
|
138
|
+
status: 'queued' | 'running' | 'paused' | 'failed' | 'completed' | 'unknown';
|
|
139
|
+
/**
|
|
140
|
+
* The status message of test evaluation for the inference pipeline.
|
|
141
|
+
*/
|
|
142
|
+
statusMessage: string | null;
|
|
143
|
+
/**
|
|
144
|
+
* The total number of tests.
|
|
145
|
+
*/
|
|
146
|
+
totalGoalCount: number;
|
|
147
|
+
}
|
|
148
|
+
export declare namespace InferencePipelineUpdateResponse {
|
|
149
|
+
interface Links {
|
|
150
|
+
app: string;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
export interface InferencePipelineUpdateParams {
|
|
154
|
+
/**
|
|
155
|
+
* The inference pipeline description.
|
|
156
|
+
*/
|
|
157
|
+
description?: string | null;
|
|
158
|
+
/**
|
|
159
|
+
* The inference pipeline name.
|
|
160
|
+
*/
|
|
161
|
+
name?: string;
|
|
162
|
+
/**
|
|
163
|
+
* The storage uri of your reference dataset. We recommend using the Python SDK or
|
|
164
|
+
* the UI to handle your reference dataset updates.
|
|
165
|
+
*/
|
|
166
|
+
referenceDatasetUri?: string | null;
|
|
7
167
|
}
|
|
8
168
|
export declare namespace InferencePipelines {
|
|
169
|
+
export import InferencePipelineRetrieveResponse = InferencePipelinesAPI.InferencePipelineRetrieveResponse;
|
|
170
|
+
export import InferencePipelineUpdateResponse = InferencePipelinesAPI.InferencePipelineUpdateResponse;
|
|
171
|
+
export import InferencePipelineUpdateParams = InferencePipelinesAPI.InferencePipelineUpdateParams;
|
|
9
172
|
export import Data = DataAPI.Data;
|
|
10
173
|
export import DataStreamResponse = DataAPI.DataStreamResponse;
|
|
11
174
|
export import DataStreamParams = DataAPI.DataStreamParams;
|
|
175
|
+
export import Rows = RowsAPI.Rows;
|
|
176
|
+
export import RowUpdateResponse = RowsAPI.RowUpdateResponse;
|
|
177
|
+
export import RowUpdateParams = RowsAPI.RowUpdateParams;
|
|
12
178
|
export import TestResults = TestResultsAPI.TestResults;
|
|
13
179
|
export import TestResultListResponse = TestResultsAPI.TestResultListResponse;
|
|
14
180
|
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;
|
|
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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AAoB,GAAG,cAAc,CAAC,oBAAoB,CAAC;CAC1E"}
|
|
@@ -26,18 +26,43 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
exports.InferencePipelines = void 0;
|
|
28
28
|
const resource_1 = require("../../resource.js");
|
|
29
|
+
const core_1 = require("../../core.js");
|
|
29
30
|
const DataAPI = __importStar(require("./data.js"));
|
|
31
|
+
const RowsAPI = __importStar(require("./rows.js"));
|
|
30
32
|
const TestResultsAPI = __importStar(require("./test-results.js"));
|
|
31
33
|
class InferencePipelines extends resource_1.APIResource {
|
|
32
34
|
constructor() {
|
|
33
35
|
super(...arguments);
|
|
34
36
|
this.data = new DataAPI.Data(this._client);
|
|
37
|
+
this.rows = new RowsAPI.Rows(this._client);
|
|
35
38
|
this.testResults = new TestResultsAPI.TestResults(this._client);
|
|
36
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Retrieve inference pipeline.
|
|
42
|
+
*/
|
|
43
|
+
retrieve(inferencePipelineId, options) {
|
|
44
|
+
return this._client.get(`/inference-pipelines/${inferencePipelineId}`, options);
|
|
45
|
+
}
|
|
46
|
+
update(inferencePipelineId, body = {}, options) {
|
|
47
|
+
if ((0, core_1.isRequestOptions)(body)) {
|
|
48
|
+
return this.update(inferencePipelineId, {}, body);
|
|
49
|
+
}
|
|
50
|
+
return this._client.put(`/inference-pipelines/${inferencePipelineId}`, { body, ...options });
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Delete inference pipeline.
|
|
54
|
+
*/
|
|
55
|
+
delete(inferencePipelineId, options) {
|
|
56
|
+
return this._client.delete(`/inference-pipelines/${inferencePipelineId}`, {
|
|
57
|
+
...options,
|
|
58
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
59
|
+
});
|
|
60
|
+
}
|
|
37
61
|
}
|
|
38
62
|
exports.InferencePipelines = InferencePipelines;
|
|
39
63
|
(function (InferencePipelines) {
|
|
40
64
|
InferencePipelines.Data = DataAPI.Data;
|
|
65
|
+
InferencePipelines.Rows = RowsAPI.Rows;
|
|
41
66
|
InferencePipelines.TestResults = TestResultsAPI.TestResults;
|
|
42
67
|
})(InferencePipelines = exports.InferencePipelines || (exports.InferencePipelines = {}));
|
|
43
68
|
//# 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;
|
|
1
|
+
{"version":3,"file":"inference-pipelines.js","sourceRoot":"","sources":["../../src/resources/inference-pipelines/inference-pipelines.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,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;IA4CzF,CAAC;IA1CC;;OAEG;IACH,QAAQ,CACN,mBAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,mBAAmB,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAcD,MAAM,CACJ,mBAA2B,EAC3B,OAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SACnD;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,mBAAmB,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,mBAA2B,EAAE,OAA6B;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,wBAAwB,mBAAmB,EAAE,EAAE;YACxE,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AA/CD,gDA+CC;AAoLD,WAAiB,kBAAkB;IAInB,uBAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAGpB,uBAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAGpB,8BAAW,GAAG,cAAc,CAAC,WAAW,CAAC;AAGzD,CAAC,EAbgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAalC"}
|
|
@@ -1,16 +1,41 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import { isRequestOptions } from "../../core.mjs";
|
|
3
4
|
import * as DataAPI from "./data.mjs";
|
|
5
|
+
import * as RowsAPI from "./rows.mjs";
|
|
4
6
|
import * as TestResultsAPI from "./test-results.mjs";
|
|
5
7
|
export class InferencePipelines extends APIResource {
|
|
6
8
|
constructor() {
|
|
7
9
|
super(...arguments);
|
|
8
10
|
this.data = new DataAPI.Data(this._client);
|
|
11
|
+
this.rows = new RowsAPI.Rows(this._client);
|
|
9
12
|
this.testResults = new TestResultsAPI.TestResults(this._client);
|
|
10
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve inference pipeline.
|
|
16
|
+
*/
|
|
17
|
+
retrieve(inferencePipelineId, options) {
|
|
18
|
+
return this._client.get(`/inference-pipelines/${inferencePipelineId}`, options);
|
|
19
|
+
}
|
|
20
|
+
update(inferencePipelineId, body = {}, options) {
|
|
21
|
+
if (isRequestOptions(body)) {
|
|
22
|
+
return this.update(inferencePipelineId, {}, body);
|
|
23
|
+
}
|
|
24
|
+
return this._client.put(`/inference-pipelines/${inferencePipelineId}`, { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Delete inference pipeline.
|
|
28
|
+
*/
|
|
29
|
+
delete(inferencePipelineId, options) {
|
|
30
|
+
return this._client.delete(`/inference-pipelines/${inferencePipelineId}`, {
|
|
31
|
+
...options,
|
|
32
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
33
|
+
});
|
|
34
|
+
}
|
|
11
35
|
}
|
|
12
36
|
(function (InferencePipelines) {
|
|
13
37
|
InferencePipelines.Data = DataAPI.Data;
|
|
38
|
+
InferencePipelines.Rows = RowsAPI.Rows;
|
|
14
39
|
InferencePipelines.TestResults = TestResultsAPI.TestResults;
|
|
15
40
|
})(InferencePipelines || (InferencePipelines = {}));
|
|
16
41
|
//# 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,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O,CAAC,MAAM,CAAC,wBAAwB,mBAAmB,EAAE,EAAE;YACxE,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAoLD,WAAiB,kBAAkB;IAInB,uBAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAGpB,uBAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAGpB,8BAAW,GAAG,cAAc,CAAC,WAAW,CAAC;AAGzD,CAAC,EAbgB,kBAAkB,KAAlB,kBAAkB,QAalC"}
|
|
@@ -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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/storage/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACrG,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.Storage = exports.PresignedURL = void 0;
|
|
5
|
+
var presigned_url_1 = require("./presigned-url.js");
|
|
6
|
+
Object.defineProperty(exports, "PresignedURL", { enumerable: true, get: function () { return presigned_url_1.PresignedURL; } });
|
|
7
|
+
var storage_1 = require("./storage.js");
|
|
8
|
+
Object.defineProperty(exports, "Storage", { enumerable: true, get: function () { return storage_1.Storage; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/storage/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAAqG;AAAtC,6GAAA,YAAY,OAAA;AAC3E,wCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/storage/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAwD,YAAY,EAAE;OACtE,EAAE,OAAO,EAAE"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import * as PresignedURLAPI from "./presigned-url.js";
|
|
4
|
+
export declare class PresignedURL extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve a presigned url to post storage artifacts.
|
|
7
|
+
*/
|
|
8
|
+
create(params: PresignedURLCreateParams, options?: Core.RequestOptions): Core.APIPromise<PresignedURLCreateResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface PresignedURLCreateResponse {
|
|
11
|
+
/**
|
|
12
|
+
* The storage URI to send back to the backend after the upload was completed.
|
|
13
|
+
*/
|
|
14
|
+
storageUri: string;
|
|
15
|
+
/**
|
|
16
|
+
* The presigned url.
|
|
17
|
+
*/
|
|
18
|
+
url: string;
|
|
19
|
+
/**
|
|
20
|
+
* Fields to include in the body of the upload. Only needed by s3.
|
|
21
|
+
*/
|
|
22
|
+
fields?: unknown;
|
|
23
|
+
}
|
|
24
|
+
export interface PresignedURLCreateParams {
|
|
25
|
+
/**
|
|
26
|
+
* The name of the object.
|
|
27
|
+
*/
|
|
28
|
+
objectName: string;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace PresignedURL {
|
|
31
|
+
export import PresignedURLCreateResponse = PresignedURLAPI.PresignedURLCreateResponse;
|
|
32
|
+
export import PresignedURLCreateParams = PresignedURLAPI.PresignedURLCreateParams;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=presigned-url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presigned-url.d.ts","sourceRoot":"","sources":["../../src/resources/storage/presigned-url.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,eAAe,MAAM,iBAAiB,CAAC;AAEnD,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAI/C;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,yBAAiB,YAAY,CAAC;IAC5B,MAAM,QAAQ,0BAA0B,GAAG,eAAe,CAAC,0BAA0B,CAAC;IACtF,MAAM,QAAQ,wBAAwB,GAAG,eAAe,CAAC,wBAAwB,CAAC;CACnF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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.PresignedURL = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class PresignedURL extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve a presigned url to post storage artifacts.
|
|
9
|
+
*/
|
|
10
|
+
create(params, options) {
|
|
11
|
+
const { objectName } = params;
|
|
12
|
+
return this._client.post('/storage/presigned-url', { query: { objectName }, ...options });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.PresignedURL = PresignedURL;
|
|
16
|
+
(function (PresignedURL) {
|
|
17
|
+
})(PresignedURL = exports.PresignedURL || (exports.PresignedURL = {}));
|
|
18
|
+
//# sourceMappingURL=presigned-url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presigned-url.js","sourceRoot":"","sources":["../../src/resources/storage/presigned-url.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAI7C,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,MAAgC,EAChC,OAA6B;QAE7B,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF;AAXD,oCAWC;AA0BD,WAAiB,YAAY;AAG7B,CAAC,EAHgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAG5B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
export class PresignedURL extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieve a presigned url to post storage artifacts.
|
|
6
|
+
*/
|
|
7
|
+
create(params, options) {
|
|
8
|
+
const { objectName } = params;
|
|
9
|
+
return this._client.post('/storage/presigned-url', { query: { objectName }, ...options });
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
(function (PresignedURL) {
|
|
13
|
+
})(PresignedURL || (PresignedURL = {}));
|
|
14
|
+
//# sourceMappingURL=presigned-url.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presigned-url.mjs","sourceRoot":"","sources":["../../src/resources/storage/presigned-url.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,MAAgC,EAChC,OAA6B;QAE7B,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF;AA0BD,WAAiB,YAAY;AAG7B,CAAC,EAHgB,YAAY,KAAZ,YAAY,QAG5B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as PresignedURLAPI from "./presigned-url.js";
|
|
3
|
+
export declare class Storage extends APIResource {
|
|
4
|
+
presignedURL: PresignedURLAPI.PresignedURL;
|
|
5
|
+
}
|
|
6
|
+
export declare namespace Storage {
|
|
7
|
+
export import PresignedURL = PresignedURLAPI.PresignedURL;
|
|
8
|
+
export import PresignedURLCreateResponse = PresignedURLAPI.PresignedURLCreateResponse;
|
|
9
|
+
export import PresignedURLCreateParams = PresignedURLAPI.PresignedURLCreateParams;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/resources/storage/storage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,eAAe,MAAM,iBAAiB,CAAC;AAEnD,qBAAa,OAAQ,SAAQ,WAAW;IACtC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;CAC7F;AAED,yBAAiB,OAAO,CAAC;IACvB,MAAM,QAAQ,YAAY,GAAG,eAAe,CAAC,YAAY,CAAC;IAC1D,MAAM,QAAQ,0BAA0B,GAAG,eAAe,CAAC,0BAA0B,CAAC;IACtF,MAAM,QAAQ,wBAAwB,GAAG,eAAe,CAAC,wBAAwB,CAAC;CACnF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.Storage = void 0;
|
|
28
|
+
const resource_1 = require("../../resource.js");
|
|
29
|
+
const PresignedURLAPI = __importStar(require("./presigned-url.js"));
|
|
30
|
+
class Storage extends resource_1.APIResource {
|
|
31
|
+
constructor() {
|
|
32
|
+
super(...arguments);
|
|
33
|
+
this.presignedURL = new PresignedURLAPI.PresignedURL(this._client);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.Storage = Storage;
|
|
37
|
+
(function (Storage) {
|
|
38
|
+
Storage.PresignedURL = PresignedURLAPI.PresignedURL;
|
|
39
|
+
})(Storage = exports.Storage || (exports.Storage = {}));
|
|
40
|
+
//# sourceMappingURL=storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/resources/storage/storage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,oEAAmD;AAEnD,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9F,CAAC;CAAA;AAFD,0BAEC;AAED,WAAiB,OAAO;IACR,oBAAY,GAAG,eAAe,CAAC,YAAY,CAAC;AAG5D,CAAC,EAJgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAIvB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import * as PresignedURLAPI from "./presigned-url.mjs";
|
|
4
|
+
export class Storage extends APIResource {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
this.presignedURL = new PresignedURLAPI.PresignedURL(this._client);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
(function (Storage) {
|
|
11
|
+
Storage.PresignedURL = PresignedURLAPI.PresignedURL;
|
|
12
|
+
})(Storage || (Storage = {}));
|
|
13
|
+
//# sourceMappingURL=storage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.mjs","sourceRoot":"","sources":["../../src/resources/storage/storage.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;AAE3B,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9F,CAAC;CAAA;AAED,WAAiB,OAAO;IACR,oBAAY,GAAG,eAAe,CAAC,YAAY,CAAC;AAG5D,CAAC,EAJgB,OAAO,KAAP,OAAO,QAIvB"}
|
package/src/index.ts
CHANGED
|
@@ -116,6 +116,7 @@ export class Openlayer extends Core.APIClient {
|
|
|
116
116
|
projects: API.Projects = new API.Projects(this);
|
|
117
117
|
commits: API.Commits = new API.Commits(this);
|
|
118
118
|
inferencePipelines: API.InferencePipelines = new API.InferencePipelines(this);
|
|
119
|
+
storage: API.Storage = new API.Storage(this);
|
|
119
120
|
|
|
120
121
|
protected override defaultQuery(): Core.DefaultQuery | undefined {
|
|
121
122
|
return this._options.defaultQuery;
|
|
@@ -199,6 +200,11 @@ export namespace Openlayer {
|
|
|
199
200
|
export import Commits = API.Commits;
|
|
200
201
|
|
|
201
202
|
export import InferencePipelines = API.InferencePipelines;
|
|
203
|
+
export import InferencePipelineRetrieveResponse = API.InferencePipelineRetrieveResponse;
|
|
204
|
+
export import InferencePipelineUpdateResponse = API.InferencePipelineUpdateResponse;
|
|
205
|
+
export import InferencePipelineUpdateParams = API.InferencePipelineUpdateParams;
|
|
206
|
+
|
|
207
|
+
export import Storage = API.Storage;
|
|
202
208
|
}
|
|
203
209
|
|
|
204
210
|
export default Openlayer;
|