openlayer 0.18.0 → 0.20.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 +37 -0
- package/client.d.mts +4 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -1
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/internal/to-file.d.mts +1 -1
- package/internal/to-file.d.ts +1 -1
- package/internal/to-file.js +1 -1
- package/internal/to-file.mjs +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- 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 +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.d.mts +90 -0
- package/resources/inference-pipelines/inference-pipelines.d.mts.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.d.ts +90 -0
- package/resources/inference-pipelines/inference-pipelines.d.ts.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.js.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.mjs.map +1 -1
- package/resources/projects/inference-pipelines.d.mts +267 -0
- package/resources/projects/inference-pipelines.d.mts.map +1 -1
- package/resources/projects/inference-pipelines.d.ts +267 -0
- package/resources/projects/inference-pipelines.d.ts.map +1 -1
- package/resources/projects/tests.d.mts +60 -0
- package/resources/projects/tests.d.mts.map +1 -1
- package/resources/projects/tests.d.ts +60 -0
- package/resources/projects/tests.d.ts.map +1 -1
- package/resources/tests.d.mts +78 -0
- package/resources/tests.d.mts.map +1 -0
- package/resources/tests.d.ts +78 -0
- package/resources/tests.d.ts.map +1 -0
- package/resources/tests.js +27 -0
- package/resources/tests.js.map +1 -0
- package/resources/tests.mjs +23 -0
- package/resources/tests.mjs.map +1 -0
- package/src/client.ts +10 -1
- package/src/internal/to-file.ts +1 -1
- package/src/resources/index.ts +1 -0
- package/src/resources/inference-pipelines/inference-pipelines.ts +158 -0
- package/src/resources/projects/inference-pipelines.ts +397 -0
- package/src/resources/projects/tests.ts +72 -0
- package/src/resources/tests.ts +100 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Tests extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Triggers one-off evaluation of a specific monitoring test for a custom timestamp
|
|
7
|
+
* range. This allows evaluating tests for historical data or custom time periods
|
|
8
|
+
* outside the regular evaluation window schedule. It also allows overwriting the
|
|
9
|
+
* existing test results.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const response = await client.tests.evaluate(
|
|
14
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
15
|
+
* { endTimestamp: 1700006400, startTimestamp: 1699920000 },
|
|
16
|
+
* );
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
evaluate(testID: string, body: TestEvaluateParams, options?: RequestOptions): APIPromise<TestEvaluateResponse>;
|
|
20
|
+
}
|
|
21
|
+
export interface TestEvaluateResponse {
|
|
22
|
+
message: string;
|
|
23
|
+
/**
|
|
24
|
+
* Number of inference pipelines the test was queued for evaluation on
|
|
25
|
+
*/
|
|
26
|
+
pipelineCount: number;
|
|
27
|
+
/**
|
|
28
|
+
* The end timestamp you requested (in seconds)
|
|
29
|
+
*/
|
|
30
|
+
requestedEndTimestamp: number;
|
|
31
|
+
/**
|
|
32
|
+
* The start timestamp you requested (in seconds)
|
|
33
|
+
*/
|
|
34
|
+
requestedStartTimestamp: number;
|
|
35
|
+
/**
|
|
36
|
+
* Array of background task information for each pipeline evaluation
|
|
37
|
+
*/
|
|
38
|
+
tasks: Array<TestEvaluateResponse.Task>;
|
|
39
|
+
}
|
|
40
|
+
export declare namespace TestEvaluateResponse {
|
|
41
|
+
interface Task {
|
|
42
|
+
/**
|
|
43
|
+
* ID of the inference pipeline this task is for
|
|
44
|
+
*/
|
|
45
|
+
pipelineId: string;
|
|
46
|
+
/**
|
|
47
|
+
* ID of the background task
|
|
48
|
+
*/
|
|
49
|
+
taskResultId: string;
|
|
50
|
+
/**
|
|
51
|
+
* URL to check the status of this background task
|
|
52
|
+
*/
|
|
53
|
+
taskResultUrl: string;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export interface TestEvaluateParams {
|
|
57
|
+
/**
|
|
58
|
+
* End timestamp in seconds (Unix epoch)
|
|
59
|
+
*/
|
|
60
|
+
endTimestamp: number;
|
|
61
|
+
/**
|
|
62
|
+
* Start timestamp in seconds (Unix epoch)
|
|
63
|
+
*/
|
|
64
|
+
startTimestamp: number;
|
|
65
|
+
/**
|
|
66
|
+
* ID of the inference pipeline to evaluate. If not provided, all inference
|
|
67
|
+
* pipelines the test applies to will be evaluated.
|
|
68
|
+
*/
|
|
69
|
+
inferencePipelineId?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Whether to overwrite existing test results
|
|
72
|
+
*/
|
|
73
|
+
overwriteResults?: boolean;
|
|
74
|
+
}
|
|
75
|
+
export declare namespace Tests {
|
|
76
|
+
export { type TestEvaluateResponse as TestEvaluateResponse, type TestEvaluateParams as TestEvaluateParams };
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=tests.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tests.d.mts","sourceRoot":"","sources":["../src/resources/tests.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,QAAQ,CACN,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;CAGpC;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;CACzC;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,IAAI;QACnB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;KACvB;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC7G"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Tests extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Triggers one-off evaluation of a specific monitoring test for a custom timestamp
|
|
7
|
+
* range. This allows evaluating tests for historical data or custom time periods
|
|
8
|
+
* outside the regular evaluation window schedule. It also allows overwriting the
|
|
9
|
+
* existing test results.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const response = await client.tests.evaluate(
|
|
14
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
15
|
+
* { endTimestamp: 1700006400, startTimestamp: 1699920000 },
|
|
16
|
+
* );
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
evaluate(testID: string, body: TestEvaluateParams, options?: RequestOptions): APIPromise<TestEvaluateResponse>;
|
|
20
|
+
}
|
|
21
|
+
export interface TestEvaluateResponse {
|
|
22
|
+
message: string;
|
|
23
|
+
/**
|
|
24
|
+
* Number of inference pipelines the test was queued for evaluation on
|
|
25
|
+
*/
|
|
26
|
+
pipelineCount: number;
|
|
27
|
+
/**
|
|
28
|
+
* The end timestamp you requested (in seconds)
|
|
29
|
+
*/
|
|
30
|
+
requestedEndTimestamp: number;
|
|
31
|
+
/**
|
|
32
|
+
* The start timestamp you requested (in seconds)
|
|
33
|
+
*/
|
|
34
|
+
requestedStartTimestamp: number;
|
|
35
|
+
/**
|
|
36
|
+
* Array of background task information for each pipeline evaluation
|
|
37
|
+
*/
|
|
38
|
+
tasks: Array<TestEvaluateResponse.Task>;
|
|
39
|
+
}
|
|
40
|
+
export declare namespace TestEvaluateResponse {
|
|
41
|
+
interface Task {
|
|
42
|
+
/**
|
|
43
|
+
* ID of the inference pipeline this task is for
|
|
44
|
+
*/
|
|
45
|
+
pipelineId: string;
|
|
46
|
+
/**
|
|
47
|
+
* ID of the background task
|
|
48
|
+
*/
|
|
49
|
+
taskResultId: string;
|
|
50
|
+
/**
|
|
51
|
+
* URL to check the status of this background task
|
|
52
|
+
*/
|
|
53
|
+
taskResultUrl: string;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export interface TestEvaluateParams {
|
|
57
|
+
/**
|
|
58
|
+
* End timestamp in seconds (Unix epoch)
|
|
59
|
+
*/
|
|
60
|
+
endTimestamp: number;
|
|
61
|
+
/**
|
|
62
|
+
* Start timestamp in seconds (Unix epoch)
|
|
63
|
+
*/
|
|
64
|
+
startTimestamp: number;
|
|
65
|
+
/**
|
|
66
|
+
* ID of the inference pipeline to evaluate. If not provided, all inference
|
|
67
|
+
* pipelines the test applies to will be evaluated.
|
|
68
|
+
*/
|
|
69
|
+
inferencePipelineId?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Whether to overwrite existing test results
|
|
72
|
+
*/
|
|
73
|
+
overwriteResults?: boolean;
|
|
74
|
+
}
|
|
75
|
+
export declare namespace Tests {
|
|
76
|
+
export { type TestEvaluateResponse as TestEvaluateResponse, type TestEvaluateParams as TestEvaluateParams };
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=tests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tests.d.ts","sourceRoot":"","sources":["../src/resources/tests.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,QAAQ,CACN,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;CAGpC;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;CACzC;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,IAAI;QACnB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;KACvB;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC7G"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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.Tests = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
class Tests extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Triggers one-off evaluation of a specific monitoring test for a custom timestamp
|
|
10
|
+
* range. This allows evaluating tests for historical data or custom time periods
|
|
11
|
+
* outside the regular evaluation window schedule. It also allows overwriting the
|
|
12
|
+
* existing test results.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const response = await client.tests.evaluate(
|
|
17
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
18
|
+
* { endTimestamp: 1700006400, startTimestamp: 1699920000 },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
evaluate(testID, body, options) {
|
|
23
|
+
return this._client.post((0, path_1.path) `/tests/${testID}/evaluate`, { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.Tests = Tests;
|
|
27
|
+
//# sourceMappingURL=tests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tests.js","sourceRoot":"","sources":["../src/resources/tests.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,QAAQ,CACN,MAAc,EACd,IAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AAtBD,sBAsBC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
export class Tests extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Triggers one-off evaluation of a specific monitoring test for a custom timestamp
|
|
7
|
+
* range. This allows evaluating tests for historical data or custom time periods
|
|
8
|
+
* outside the regular evaluation window schedule. It also allows overwriting the
|
|
9
|
+
* existing test results.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const response = await client.tests.evaluate(
|
|
14
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
15
|
+
* { endTimestamp: 1700006400, startTimestamp: 1699920000 },
|
|
16
|
+
* );
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
evaluate(testID, body, options) {
|
|
20
|
+
return this._client.post(path `/tests/${testID}/evaluate`, { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=tests.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tests.mjs","sourceRoot":"","sources":["../src/resources/tests.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,QAAQ,CACN,MAAc,EACd,IAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,MAAM,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -17,6 +17,7 @@ import * as Errors from './core/error';
|
|
|
17
17
|
import * as Uploads from './core/uploads';
|
|
18
18
|
import * as API from './resources/index';
|
|
19
19
|
import { APIPromise } from './core/api-promise';
|
|
20
|
+
import { TestEvaluateParams, TestEvaluateResponse, Tests } from './resources/tests';
|
|
20
21
|
import { CommitRetrieveResponse, Commits } from './resources/commits/commits';
|
|
21
22
|
import {
|
|
22
23
|
InferencePipelineRetrieveParams,
|
|
@@ -130,7 +131,7 @@ export class Openlayer {
|
|
|
130
131
|
baseURL: string;
|
|
131
132
|
maxRetries: number;
|
|
132
133
|
timeout: number;
|
|
133
|
-
logger: Logger
|
|
134
|
+
logger: Logger;
|
|
134
135
|
logLevel: LogLevel | undefined;
|
|
135
136
|
fetchOptions: MergedRequestInit | undefined;
|
|
136
137
|
|
|
@@ -724,12 +725,14 @@ export class Openlayer {
|
|
|
724
725
|
commits: API.Commits = new API.Commits(this);
|
|
725
726
|
inferencePipelines: API.InferencePipelines = new API.InferencePipelines(this);
|
|
726
727
|
storage: API.Storage = new API.Storage(this);
|
|
728
|
+
tests: API.Tests = new API.Tests(this);
|
|
727
729
|
}
|
|
728
730
|
|
|
729
731
|
Openlayer.Projects = Projects;
|
|
730
732
|
Openlayer.Commits = Commits;
|
|
731
733
|
Openlayer.InferencePipelines = InferencePipelines;
|
|
732
734
|
Openlayer.Storage = Storage;
|
|
735
|
+
Openlayer.Tests = Tests;
|
|
733
736
|
|
|
734
737
|
export declare namespace Openlayer {
|
|
735
738
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -753,4 +756,10 @@ export declare namespace Openlayer {
|
|
|
753
756
|
};
|
|
754
757
|
|
|
755
758
|
export { Storage as Storage };
|
|
759
|
+
|
|
760
|
+
export {
|
|
761
|
+
Tests as Tests,
|
|
762
|
+
type TestEvaluateResponse as TestEvaluateResponse,
|
|
763
|
+
type TestEvaluateParams as TestEvaluateParams,
|
|
764
|
+
};
|
|
756
765
|
}
|
package/src/internal/to-file.ts
CHANGED
|
@@ -73,7 +73,7 @@ export type ToFileInput =
|
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
76
|
-
* @param value the raw content of the file.
|
|
76
|
+
* @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
|
|
77
77
|
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
78
78
|
* @param {Object=} options additional properties
|
|
79
79
|
* @param {string=} options.type the MIME type of the content
|
package/src/resources/index.ts
CHANGED
|
@@ -146,8 +146,27 @@ export interface InferencePipelineRetrieveResponse {
|
|
|
146
146
|
*/
|
|
147
147
|
totalGoalCount: number;
|
|
148
148
|
|
|
149
|
+
dataBackend?:
|
|
150
|
+
| InferencePipelineRetrieveResponse.UnionMember0
|
|
151
|
+
| InferencePipelineRetrieveResponse.BackendType
|
|
152
|
+
| InferencePipelineRetrieveResponse.UnionMember2
|
|
153
|
+
| InferencePipelineRetrieveResponse.UnionMember3
|
|
154
|
+
| InferencePipelineRetrieveResponse.UnionMember4
|
|
155
|
+
| InferencePipelineRetrieveResponse.UnionMember5
|
|
156
|
+
| null;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* The last time the data was polled.
|
|
160
|
+
*/
|
|
161
|
+
dateLastPolled?: string | null;
|
|
162
|
+
|
|
149
163
|
project?: InferencePipelineRetrieveResponse.Project | null;
|
|
150
164
|
|
|
165
|
+
/**
|
|
166
|
+
* The total number of records in the data backend.
|
|
167
|
+
*/
|
|
168
|
+
totalRecordsCount?: number | null;
|
|
169
|
+
|
|
151
170
|
workspace?: InferencePipelineRetrieveResponse.Workspace | null;
|
|
152
171
|
|
|
153
172
|
/**
|
|
@@ -161,6 +180,66 @@ export namespace InferencePipelineRetrieveResponse {
|
|
|
161
180
|
app: string;
|
|
162
181
|
}
|
|
163
182
|
|
|
183
|
+
export interface UnionMember0 {
|
|
184
|
+
backendType: 'bigquery';
|
|
185
|
+
|
|
186
|
+
bigqueryConnectionId: string | null;
|
|
187
|
+
|
|
188
|
+
datasetId: string;
|
|
189
|
+
|
|
190
|
+
projectId: string;
|
|
191
|
+
|
|
192
|
+
tableId: string | null;
|
|
193
|
+
|
|
194
|
+
partitionType?: 'DAY' | 'MONTH' | 'YEAR' | null;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export interface BackendType {
|
|
198
|
+
backendType: 'default';
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface UnionMember2 {
|
|
202
|
+
backendType: 'snowflake';
|
|
203
|
+
|
|
204
|
+
database: string;
|
|
205
|
+
|
|
206
|
+
schema: string;
|
|
207
|
+
|
|
208
|
+
snowflakeConnectionId: string | null;
|
|
209
|
+
|
|
210
|
+
table: string | null;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export interface UnionMember3 {
|
|
214
|
+
backendType: 'databricks_dtl';
|
|
215
|
+
|
|
216
|
+
databricksDtlConnectionId: string | null;
|
|
217
|
+
|
|
218
|
+
tableId: string | null;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export interface UnionMember4 {
|
|
222
|
+
backendType: 'redshift';
|
|
223
|
+
|
|
224
|
+
redshiftConnectionId: string | null;
|
|
225
|
+
|
|
226
|
+
schemaName: string;
|
|
227
|
+
|
|
228
|
+
tableName: string;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export interface UnionMember5 {
|
|
232
|
+
backendType: 'postgres';
|
|
233
|
+
|
|
234
|
+
database: string;
|
|
235
|
+
|
|
236
|
+
postgresConnectionId: string | null;
|
|
237
|
+
|
|
238
|
+
schema: string;
|
|
239
|
+
|
|
240
|
+
table: string | null;
|
|
241
|
+
}
|
|
242
|
+
|
|
164
243
|
export interface Project {
|
|
165
244
|
/**
|
|
166
245
|
* The project id.
|
|
@@ -435,8 +514,27 @@ export interface InferencePipelineUpdateResponse {
|
|
|
435
514
|
*/
|
|
436
515
|
totalGoalCount: number;
|
|
437
516
|
|
|
517
|
+
dataBackend?:
|
|
518
|
+
| InferencePipelineUpdateResponse.UnionMember0
|
|
519
|
+
| InferencePipelineUpdateResponse.BackendType
|
|
520
|
+
| InferencePipelineUpdateResponse.UnionMember2
|
|
521
|
+
| InferencePipelineUpdateResponse.UnionMember3
|
|
522
|
+
| InferencePipelineUpdateResponse.UnionMember4
|
|
523
|
+
| InferencePipelineUpdateResponse.UnionMember5
|
|
524
|
+
| null;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* The last time the data was polled.
|
|
528
|
+
*/
|
|
529
|
+
dateLastPolled?: string | null;
|
|
530
|
+
|
|
438
531
|
project?: InferencePipelineUpdateResponse.Project | null;
|
|
439
532
|
|
|
533
|
+
/**
|
|
534
|
+
* The total number of records in the data backend.
|
|
535
|
+
*/
|
|
536
|
+
totalRecordsCount?: number | null;
|
|
537
|
+
|
|
440
538
|
workspace?: InferencePipelineUpdateResponse.Workspace | null;
|
|
441
539
|
|
|
442
540
|
/**
|
|
@@ -450,6 +548,66 @@ export namespace InferencePipelineUpdateResponse {
|
|
|
450
548
|
app: string;
|
|
451
549
|
}
|
|
452
550
|
|
|
551
|
+
export interface UnionMember0 {
|
|
552
|
+
backendType: 'bigquery';
|
|
553
|
+
|
|
554
|
+
bigqueryConnectionId: string | null;
|
|
555
|
+
|
|
556
|
+
datasetId: string;
|
|
557
|
+
|
|
558
|
+
projectId: string;
|
|
559
|
+
|
|
560
|
+
tableId: string | null;
|
|
561
|
+
|
|
562
|
+
partitionType?: 'DAY' | 'MONTH' | 'YEAR' | null;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export interface BackendType {
|
|
566
|
+
backendType: 'default';
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
export interface UnionMember2 {
|
|
570
|
+
backendType: 'snowflake';
|
|
571
|
+
|
|
572
|
+
database: string;
|
|
573
|
+
|
|
574
|
+
schema: string;
|
|
575
|
+
|
|
576
|
+
snowflakeConnectionId: string | null;
|
|
577
|
+
|
|
578
|
+
table: string | null;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
export interface UnionMember3 {
|
|
582
|
+
backendType: 'databricks_dtl';
|
|
583
|
+
|
|
584
|
+
databricksDtlConnectionId: string | null;
|
|
585
|
+
|
|
586
|
+
tableId: string | null;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
export interface UnionMember4 {
|
|
590
|
+
backendType: 'redshift';
|
|
591
|
+
|
|
592
|
+
redshiftConnectionId: string | null;
|
|
593
|
+
|
|
594
|
+
schemaName: string;
|
|
595
|
+
|
|
596
|
+
tableName: string;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
export interface UnionMember5 {
|
|
600
|
+
backendType: 'postgres';
|
|
601
|
+
|
|
602
|
+
database: string;
|
|
603
|
+
|
|
604
|
+
postgresConnectionId: string | null;
|
|
605
|
+
|
|
606
|
+
schema: string;
|
|
607
|
+
|
|
608
|
+
table: string | null;
|
|
609
|
+
}
|
|
610
|
+
|
|
453
611
|
export interface Project {
|
|
454
612
|
/**
|
|
455
613
|
* The project id.
|