openlayer 0.25.1 → 0.26.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 +8 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/inference-pipelines/index.d.mts +1 -1
- package/resources/inference-pipelines/index.d.mts.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.mts +217 -4
- package/resources/inference-pipelines/inference-pipelines.d.mts.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.d.ts +217 -4
- package/resources/inference-pipelines/inference-pipelines.d.ts.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.js +31 -2
- package/resources/inference-pipelines/inference-pipelines.js.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.mjs +31 -2
- package/resources/inference-pipelines/inference-pipelines.mjs.map +1 -1
- package/src/client.ts +4 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/inference-pipelines/index.ts +2 -0
- package/src/resources/inference-pipelines/inference-pipelines.ts +291 -4
- 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
|
@@ -63,6 +63,30 @@ class InferencePipelines extends resource_1.APIResource {
|
|
|
63
63
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Get aggregated session data for an inference pipeline with pagination and
|
|
68
|
+
* metadata.
|
|
69
|
+
*
|
|
70
|
+
* Returns a list of sessions for the inference pipeline, including activity
|
|
71
|
+
* statistics such as record counts, token usage, cost, latency, and the first and
|
|
72
|
+
* last records.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* const response =
|
|
77
|
+
* await client.inferencePipelines.retrieveSessions(
|
|
78
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
79
|
+
* );
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
retrieveSessions(inferencePipelineID, params = {}, options) {
|
|
83
|
+
const { asc, page, perPage, sortColumn, ...body } = params ?? {};
|
|
84
|
+
return this._client.post((0, path_1.path) `/inference-pipelines/${inferencePipelineID}/sessions`, {
|
|
85
|
+
query: { asc, page, perPage, sortColumn },
|
|
86
|
+
body,
|
|
87
|
+
...options,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
66
90
|
/**
|
|
67
91
|
* Get aggregated user data for an inference pipeline with pagination and metadata.
|
|
68
92
|
*
|
|
@@ -78,8 +102,13 @@ class InferencePipelines extends resource_1.APIResource {
|
|
|
78
102
|
* );
|
|
79
103
|
* ```
|
|
80
104
|
*/
|
|
81
|
-
retrieveUsers(inferencePipelineID,
|
|
82
|
-
|
|
105
|
+
retrieveUsers(inferencePipelineID, params = {}, options) {
|
|
106
|
+
const { asc, page, perPage, sortColumn, ...body } = params ?? {};
|
|
107
|
+
return this._client.post((0, path_1.path) `/inference-pipelines/${inferencePipelineID}/users`, {
|
|
108
|
+
query: { asc, page, perPage, sortColumn },
|
|
109
|
+
body,
|
|
110
|
+
...options,
|
|
111
|
+
});
|
|
83
112
|
}
|
|
84
113
|
}
|
|
85
114
|
exports.InferencePipelines = InferencePipelines;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inference-pipelines.js","sourceRoot":"","sources":["../../src/resources/inference-pipelines/inference-pipelines.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,2DAAkC;AAClC,oCAAoE;AACpE,2DAAkC;AAClC,oCAAkG;AAClG,0EAAiD;AACjD,oDAA2F;AAE3F,uDAAsD;AAEtD,uDAAiD;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;
|
|
1
|
+
{"version":3,"file":"inference-pipelines.js","sourceRoot":"","sources":["../../src/resources/inference-pipelines/inference-pipelines.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,2DAAkC;AAClC,oCAAoE;AACpE,2DAAkC;AAClC,oCAAkG;AAClG,0EAAiD;AACjD,oDAA2F;AAE3F,uDAAsD;AAEtD,uDAAiD;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;IAiHzF,CAAC;IA/GC;;;;;;;;;;OAUG;IACH,QAAQ,CACN,mBAA2B,EAC3B,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,mBAAmB,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OA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OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,wBAAwB,mBAAmB,QAAQ,EAAE;YAChF,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE;YACzC,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AApHD,gDAoHC;AAgjCD,kBAAkB,CAAC,IAAI,GAAG,WAAI,CAAC;AAC/B,kBAAkB,CAAC,IAAI,GAAG,WAAI,CAAC;AAC/B,kBAAkB,CAAC,WAAW,GAAG,0BAAW,CAAC"}
|
|
@@ -59,6 +59,30 @@ export class InferencePipelines extends APIResource {
|
|
|
59
59
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Get aggregated session data for an inference pipeline with pagination and
|
|
64
|
+
* metadata.
|
|
65
|
+
*
|
|
66
|
+
* Returns a list of sessions for the inference pipeline, including activity
|
|
67
|
+
* statistics such as record counts, token usage, cost, latency, and the first and
|
|
68
|
+
* last records.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const response =
|
|
73
|
+
* await client.inferencePipelines.retrieveSessions(
|
|
74
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
75
|
+
* );
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
retrieveSessions(inferencePipelineID, params = {}, options) {
|
|
79
|
+
const { asc, page, perPage, sortColumn, ...body } = params ?? {};
|
|
80
|
+
return this._client.post(path `/inference-pipelines/${inferencePipelineID}/sessions`, {
|
|
81
|
+
query: { asc, page, perPage, sortColumn },
|
|
82
|
+
body,
|
|
83
|
+
...options,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
62
86
|
/**
|
|
63
87
|
* Get aggregated user data for an inference pipeline with pagination and metadata.
|
|
64
88
|
*
|
|
@@ -74,8 +98,13 @@ export class InferencePipelines extends APIResource {
|
|
|
74
98
|
* );
|
|
75
99
|
* ```
|
|
76
100
|
*/
|
|
77
|
-
retrieveUsers(inferencePipelineID,
|
|
78
|
-
|
|
101
|
+
retrieveUsers(inferencePipelineID, params = {}, options) {
|
|
102
|
+
const { asc, page, perPage, sortColumn, ...body } = params ?? {};
|
|
103
|
+
return this._client.post(path `/inference-pipelines/${inferencePipelineID}/users`, {
|
|
104
|
+
query: { asc, page, perPage, sortColumn },
|
|
105
|
+
body,
|
|
106
|
+
...options,
|
|
107
|
+
});
|
|
79
108
|
}
|
|
80
109
|
}
|
|
81
110
|
InferencePipelines.Data = Data;
|
|
@@ -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,EAAE,IAAI,EAAwC;OAC9C,KAAK,OAAO;OACZ,EAAsE,IAAI,EAAE;OAC5E,KAAK,cAAc;OACnB,EAAgD,WAAW,EAAE;OAE7D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,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;
|
|
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,EAAE,IAAI,EAAwC;OAC9C,KAAK,OAAO;OACZ,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EAC3B,SAAqE,EAAE,EACvE,OAAwB;QAExB,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,wBAAwB,mBAAmB,WAAW,EAAE;YACnF,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE;YACzC,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,aAAa,CACX,mBAA2B,EAC3B,SAAkE,EAAE,EACpE,OAAwB;QAExB,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,wBAAwB,mBAAmB,QAAQ,EAAE;YAChF,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE;YACzC,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAgjCD,kBAAkB,CAAC,IAAI,GAAG,IAAI,CAAC;AAC/B,kBAAkB,CAAC,IAAI,GAAG,IAAI,CAAC;AAC/B,kBAAkB,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
package/src/client.ts
CHANGED
|
@@ -28,6 +28,8 @@ import { CommitRetrieveResponse, Commits } from './resources/commits/commits';
|
|
|
28
28
|
import {
|
|
29
29
|
InferencePipelineRetrieveParams,
|
|
30
30
|
InferencePipelineRetrieveResponse,
|
|
31
|
+
InferencePipelineRetrieveSessionsParams,
|
|
32
|
+
InferencePipelineRetrieveSessionsResponse,
|
|
31
33
|
InferencePipelineRetrieveUsersParams,
|
|
32
34
|
InferencePipelineRetrieveUsersResponse,
|
|
33
35
|
InferencePipelineUpdateParams,
|
|
@@ -790,9 +792,11 @@ export declare namespace Openlayer {
|
|
|
790
792
|
InferencePipelines as InferencePipelines,
|
|
791
793
|
type InferencePipelineRetrieveResponse as InferencePipelineRetrieveResponse,
|
|
792
794
|
type InferencePipelineUpdateResponse as InferencePipelineUpdateResponse,
|
|
795
|
+
type InferencePipelineRetrieveSessionsResponse as InferencePipelineRetrieveSessionsResponse,
|
|
793
796
|
type InferencePipelineRetrieveUsersResponse as InferencePipelineRetrieveUsersResponse,
|
|
794
797
|
type InferencePipelineRetrieveParams as InferencePipelineRetrieveParams,
|
|
795
798
|
type InferencePipelineUpdateParams as InferencePipelineUpdateParams,
|
|
799
|
+
type InferencePipelineRetrieveSessionsParams as InferencePipelineRetrieveSessionsParams,
|
|
796
800
|
type InferencePipelineRetrieveUsersParams as InferencePipelineRetrieveUsersParams,
|
|
797
801
|
};
|
|
798
802
|
|
package/src/resources/index.ts
CHANGED
|
@@ -5,9 +5,11 @@ export {
|
|
|
5
5
|
InferencePipelines,
|
|
6
6
|
type InferencePipelineRetrieveResponse,
|
|
7
7
|
type InferencePipelineUpdateResponse,
|
|
8
|
+
type InferencePipelineRetrieveSessionsResponse,
|
|
8
9
|
type InferencePipelineRetrieveUsersResponse,
|
|
9
10
|
type InferencePipelineRetrieveParams,
|
|
10
11
|
type InferencePipelineUpdateParams,
|
|
12
|
+
type InferencePipelineRetrieveSessionsParams,
|
|
11
13
|
type InferencePipelineRetrieveUsersParams,
|
|
12
14
|
} from './inference-pipelines/inference-pipelines';
|
|
13
15
|
export {
|
|
@@ -5,9 +5,11 @@ export {
|
|
|
5
5
|
InferencePipelines,
|
|
6
6
|
type InferencePipelineRetrieveResponse,
|
|
7
7
|
type InferencePipelineUpdateResponse,
|
|
8
|
+
type InferencePipelineRetrieveSessionsResponse,
|
|
8
9
|
type InferencePipelineRetrieveUsersResponse,
|
|
9
10
|
type InferencePipelineRetrieveParams,
|
|
10
11
|
type InferencePipelineUpdateParams,
|
|
12
|
+
type InferencePipelineRetrieveSessionsParams,
|
|
11
13
|
type InferencePipelineRetrieveUsersParams,
|
|
12
14
|
} from './inference-pipelines';
|
|
13
15
|
export {
|
|
@@ -72,6 +72,35 @@ export class InferencePipelines extends APIResource {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
/**
|
|
76
|
+
* Get aggregated session data for an inference pipeline with pagination and
|
|
77
|
+
* metadata.
|
|
78
|
+
*
|
|
79
|
+
* Returns a list of sessions for the inference pipeline, including activity
|
|
80
|
+
* statistics such as record counts, token usage, cost, latency, and the first and
|
|
81
|
+
* last records.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* const response =
|
|
86
|
+
* await client.inferencePipelines.retrieveSessions(
|
|
87
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
88
|
+
* );
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
retrieveSessions(
|
|
92
|
+
inferencePipelineID: string,
|
|
93
|
+
params: InferencePipelineRetrieveSessionsParams | null | undefined = {},
|
|
94
|
+
options?: RequestOptions,
|
|
95
|
+
): APIPromise<InferencePipelineRetrieveSessionsResponse> {
|
|
96
|
+
const { asc, page, perPage, sortColumn, ...body } = params ?? {};
|
|
97
|
+
return this._client.post(path`/inference-pipelines/${inferencePipelineID}/sessions`, {
|
|
98
|
+
query: { asc, page, perPage, sortColumn },
|
|
99
|
+
body,
|
|
100
|
+
...options,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
|
|
75
104
|
/**
|
|
76
105
|
* Get aggregated user data for an inference pipeline with pagination and metadata.
|
|
77
106
|
*
|
|
@@ -89,10 +118,15 @@ export class InferencePipelines extends APIResource {
|
|
|
89
118
|
*/
|
|
90
119
|
retrieveUsers(
|
|
91
120
|
inferencePipelineID: string,
|
|
92
|
-
|
|
121
|
+
params: InferencePipelineRetrieveUsersParams | null | undefined = {},
|
|
93
122
|
options?: RequestOptions,
|
|
94
123
|
): APIPromise<InferencePipelineRetrieveUsersResponse> {
|
|
95
|
-
|
|
124
|
+
const { asc, page, perPage, sortColumn, ...body } = params ?? {};
|
|
125
|
+
return this._client.post(path`/inference-pipelines/${inferencePipelineID}/users`, {
|
|
126
|
+
query: { asc, page, perPage, sortColumn },
|
|
127
|
+
body,
|
|
128
|
+
...options,
|
|
129
|
+
});
|
|
96
130
|
}
|
|
97
131
|
}
|
|
98
132
|
|
|
@@ -832,6 +866,77 @@ export namespace InferencePipelineUpdateResponse {
|
|
|
832
866
|
}
|
|
833
867
|
}
|
|
834
868
|
|
|
869
|
+
export interface InferencePipelineRetrieveSessionsResponse {
|
|
870
|
+
/**
|
|
871
|
+
* Array of session aggregation data
|
|
872
|
+
*/
|
|
873
|
+
items: Array<InferencePipelineRetrieveSessionsResponse.Item>;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
export namespace InferencePipelineRetrieveSessionsResponse {
|
|
877
|
+
export interface Item {
|
|
878
|
+
/**
|
|
879
|
+
* The unique session identifier
|
|
880
|
+
*/
|
|
881
|
+
id: string;
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* Total cost for the session
|
|
885
|
+
*/
|
|
886
|
+
cost: number;
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* Latest/most recent timestamp in the session
|
|
890
|
+
*/
|
|
891
|
+
dateCreated: string;
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* Timestamp of the first request in the session
|
|
895
|
+
*/
|
|
896
|
+
dateOfFirstRecord: string;
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* Timestamp of the last request in the session
|
|
900
|
+
*/
|
|
901
|
+
dateOfLastRecord: string;
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Duration between first and last request (in milliseconds)
|
|
905
|
+
*/
|
|
906
|
+
duration: number;
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* The complete first record in the session
|
|
910
|
+
*/
|
|
911
|
+
firstRecord: { [key: string]: unknown };
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* The complete last record in the session
|
|
915
|
+
*/
|
|
916
|
+
lastRecord: { [key: string]: unknown };
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* Total latency for the session (in milliseconds)
|
|
920
|
+
*/
|
|
921
|
+
latency: number;
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* Total number of records/traces in the session
|
|
925
|
+
*/
|
|
926
|
+
records: number;
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* Total token count for the session
|
|
930
|
+
*/
|
|
931
|
+
tokens: number;
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* List of unique user IDs that participated in this session
|
|
935
|
+
*/
|
|
936
|
+
userIds: Array<string>;
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
|
|
835
940
|
export interface InferencePipelineRetrieveUsersResponse {
|
|
836
941
|
/**
|
|
837
942
|
* Array of user aggregation data
|
|
@@ -903,16 +1008,196 @@ export interface InferencePipelineUpdateParams {
|
|
|
903
1008
|
referenceDatasetUri?: string | null;
|
|
904
1009
|
}
|
|
905
1010
|
|
|
1011
|
+
export interface InferencePipelineRetrieveSessionsParams {
|
|
1012
|
+
/**
|
|
1013
|
+
* Query param: Whether or not to sort on the sortColumn in ascending order.
|
|
1014
|
+
*/
|
|
1015
|
+
asc?: boolean;
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* Query param: The page to return in a paginated query.
|
|
1019
|
+
*/
|
|
1020
|
+
page?: number;
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Query param: Maximum number of items to return per page.
|
|
1024
|
+
*/
|
|
1025
|
+
perPage?: number;
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Query param: Name of the column to sort on
|
|
1029
|
+
*/
|
|
1030
|
+
sortColumn?: string;
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Body param
|
|
1034
|
+
*/
|
|
1035
|
+
columnFilters?: Array<
|
|
1036
|
+
| InferencePipelineRetrieveSessionsParams.SetColumnFilter
|
|
1037
|
+
| InferencePipelineRetrieveSessionsParams.NumericColumnFilter
|
|
1038
|
+
| InferencePipelineRetrieveSessionsParams.StringColumnFilter
|
|
1039
|
+
> | null;
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* Body param
|
|
1043
|
+
*/
|
|
1044
|
+
excludeRowIdList?: Array<number> | null;
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* Body param
|
|
1048
|
+
*/
|
|
1049
|
+
notSearchQueryAnd?: Array<string> | null;
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* Body param
|
|
1053
|
+
*/
|
|
1054
|
+
notSearchQueryOr?: Array<string> | null;
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* Body param
|
|
1058
|
+
*/
|
|
1059
|
+
rowIdList?: Array<number> | null;
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* Body param
|
|
1063
|
+
*/
|
|
1064
|
+
searchQueryAnd?: Array<string> | null;
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Body param
|
|
1068
|
+
*/
|
|
1069
|
+
searchQueryOr?: Array<string> | null;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
export namespace InferencePipelineRetrieveSessionsParams {
|
|
1073
|
+
export interface SetColumnFilter {
|
|
1074
|
+
/**
|
|
1075
|
+
* The name of the column.
|
|
1076
|
+
*/
|
|
1077
|
+
measurement: string;
|
|
1078
|
+
|
|
1079
|
+
operator: 'contains_none' | 'contains_any' | 'contains_all' | 'one_of' | 'none_of';
|
|
1080
|
+
|
|
1081
|
+
value: Array<string | number>;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
export interface NumericColumnFilter {
|
|
1085
|
+
/**
|
|
1086
|
+
* The name of the column.
|
|
1087
|
+
*/
|
|
1088
|
+
measurement: string;
|
|
1089
|
+
|
|
1090
|
+
operator: '>' | '>=' | 'is' | '<' | '<=' | '!=';
|
|
1091
|
+
|
|
1092
|
+
value: number | null;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
export interface StringColumnFilter {
|
|
1096
|
+
/**
|
|
1097
|
+
* The name of the column.
|
|
1098
|
+
*/
|
|
1099
|
+
measurement: string;
|
|
1100
|
+
|
|
1101
|
+
operator: 'is' | '!=';
|
|
1102
|
+
|
|
1103
|
+
value: string | boolean;
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
|
|
906
1107
|
export interface InferencePipelineRetrieveUsersParams {
|
|
907
1108
|
/**
|
|
908
|
-
*
|
|
1109
|
+
* Query param: Whether or not to sort on the sortColumn in ascending order.
|
|
1110
|
+
*/
|
|
1111
|
+
asc?: boolean;
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* Query param: The page to return in a paginated query.
|
|
909
1115
|
*/
|
|
910
1116
|
page?: number;
|
|
911
1117
|
|
|
912
1118
|
/**
|
|
913
|
-
* Maximum number of items to return per page.
|
|
1119
|
+
* Query param: Maximum number of items to return per page.
|
|
914
1120
|
*/
|
|
915
1121
|
perPage?: number;
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* Query param: Name of the column to sort on
|
|
1125
|
+
*/
|
|
1126
|
+
sortColumn?: string;
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* Body param
|
|
1130
|
+
*/
|
|
1131
|
+
columnFilters?: Array<
|
|
1132
|
+
| InferencePipelineRetrieveUsersParams.SetColumnFilter
|
|
1133
|
+
| InferencePipelineRetrieveUsersParams.NumericColumnFilter
|
|
1134
|
+
| InferencePipelineRetrieveUsersParams.StringColumnFilter
|
|
1135
|
+
> | null;
|
|
1136
|
+
|
|
1137
|
+
/**
|
|
1138
|
+
* Body param
|
|
1139
|
+
*/
|
|
1140
|
+
excludeRowIdList?: Array<number> | null;
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Body param
|
|
1144
|
+
*/
|
|
1145
|
+
notSearchQueryAnd?: Array<string> | null;
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* Body param
|
|
1149
|
+
*/
|
|
1150
|
+
notSearchQueryOr?: Array<string> | null;
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* Body param
|
|
1154
|
+
*/
|
|
1155
|
+
rowIdList?: Array<number> | null;
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* Body param
|
|
1159
|
+
*/
|
|
1160
|
+
searchQueryAnd?: Array<string> | null;
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Body param
|
|
1164
|
+
*/
|
|
1165
|
+
searchQueryOr?: Array<string> | null;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
export namespace InferencePipelineRetrieveUsersParams {
|
|
1169
|
+
export interface SetColumnFilter {
|
|
1170
|
+
/**
|
|
1171
|
+
* The name of the column.
|
|
1172
|
+
*/
|
|
1173
|
+
measurement: string;
|
|
1174
|
+
|
|
1175
|
+
operator: 'contains_none' | 'contains_any' | 'contains_all' | 'one_of' | 'none_of';
|
|
1176
|
+
|
|
1177
|
+
value: Array<string | number>;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
export interface NumericColumnFilter {
|
|
1181
|
+
/**
|
|
1182
|
+
* The name of the column.
|
|
1183
|
+
*/
|
|
1184
|
+
measurement: string;
|
|
1185
|
+
|
|
1186
|
+
operator: '>' | '>=' | 'is' | '<' | '<=' | '!=';
|
|
1187
|
+
|
|
1188
|
+
value: number | null;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
export interface StringColumnFilter {
|
|
1192
|
+
/**
|
|
1193
|
+
* The name of the column.
|
|
1194
|
+
*/
|
|
1195
|
+
measurement: string;
|
|
1196
|
+
|
|
1197
|
+
operator: 'is' | '!=';
|
|
1198
|
+
|
|
1199
|
+
value: string | boolean;
|
|
1200
|
+
}
|
|
916
1201
|
}
|
|
917
1202
|
|
|
918
1203
|
InferencePipelines.Data = Data;
|
|
@@ -923,9 +1208,11 @@ export declare namespace InferencePipelines {
|
|
|
923
1208
|
export {
|
|
924
1209
|
type InferencePipelineRetrieveResponse as InferencePipelineRetrieveResponse,
|
|
925
1210
|
type InferencePipelineUpdateResponse as InferencePipelineUpdateResponse,
|
|
1211
|
+
type InferencePipelineRetrieveSessionsResponse as InferencePipelineRetrieveSessionsResponse,
|
|
926
1212
|
type InferencePipelineRetrieveUsersResponse as InferencePipelineRetrieveUsersResponse,
|
|
927
1213
|
type InferencePipelineRetrieveParams as InferencePipelineRetrieveParams,
|
|
928
1214
|
type InferencePipelineUpdateParams as InferencePipelineUpdateParams,
|
|
1215
|
+
type InferencePipelineRetrieveSessionsParams as InferencePipelineRetrieveSessionsParams,
|
|
929
1216
|
type InferencePipelineRetrieveUsersParams as InferencePipelineRetrieveUsersParams,
|
|
930
1217
|
};
|
|
931
1218
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.26.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.26.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.26.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.26.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|