openlayer 0.0.0 → 0.0.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +412 -0
  3. package/_shims/MultipartBody.d.ts +9 -0
  4. package/_shims/MultipartBody.d.ts.map +1 -0
  5. package/_shims/MultipartBody.js +16 -0
  6. package/_shims/MultipartBody.js.map +1 -0
  7. package/_shims/MultipartBody.mjs +12 -0
  8. package/_shims/MultipartBody.mjs.map +1 -0
  9. package/_shims/README.md +46 -0
  10. package/_shims/auto/runtime-bun.d.ts +5 -0
  11. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  12. package/_shims/auto/runtime-bun.js +21 -0
  13. package/_shims/auto/runtime-bun.js.map +1 -0
  14. package/_shims/auto/runtime-bun.mjs +2 -0
  15. package/_shims/auto/runtime-bun.mjs.map +1 -0
  16. package/_shims/auto/runtime-node.d.ts +5 -0
  17. package/_shims/auto/runtime-node.d.ts.map +1 -0
  18. package/_shims/auto/runtime-node.js +21 -0
  19. package/_shims/auto/runtime-node.js.map +1 -0
  20. package/_shims/auto/runtime-node.mjs +2 -0
  21. package/_shims/auto/runtime-node.mjs.map +1 -0
  22. package/_shims/auto/runtime.d.ts +5 -0
  23. package/_shims/auto/runtime.d.ts.map +1 -0
  24. package/_shims/auto/runtime.js +21 -0
  25. package/_shims/auto/runtime.js.map +1 -0
  26. package/_shims/auto/runtime.mjs +2 -0
  27. package/_shims/auto/runtime.mjs.map +1 -0
  28. package/_shims/auto/types-node.d.ts +5 -0
  29. package/_shims/auto/types-node.d.ts.map +1 -0
  30. package/_shims/auto/types-node.js +21 -0
  31. package/_shims/auto/types-node.js.map +1 -0
  32. package/_shims/auto/types-node.mjs +2 -0
  33. package/_shims/auto/types-node.mjs.map +1 -0
  34. package/_shims/auto/types.d.ts +101 -0
  35. package/_shims/auto/types.js +3 -0
  36. package/_shims/auto/types.mjs +3 -0
  37. package/_shims/bun-runtime.d.ts +6 -0
  38. package/_shims/bun-runtime.d.ts.map +1 -0
  39. package/_shims/bun-runtime.js +14 -0
  40. package/_shims/bun-runtime.js.map +1 -0
  41. package/_shims/bun-runtime.mjs +10 -0
  42. package/_shims/bun-runtime.mjs.map +1 -0
  43. package/_shims/index.d.ts +81 -0
  44. package/_shims/index.js +13 -0
  45. package/_shims/index.mjs +7 -0
  46. package/_shims/manual-types.d.ts +12 -0
  47. package/_shims/manual-types.js +3 -0
  48. package/_shims/manual-types.mjs +3 -0
  49. package/_shims/node-runtime.d.ts +3 -0
  50. package/_shims/node-runtime.d.ts.map +1 -0
  51. package/_shims/node-runtime.js +90 -0
  52. package/_shims/node-runtime.js.map +1 -0
  53. package/_shims/node-runtime.mjs +56 -0
  54. package/_shims/node-runtime.mjs.map +1 -0
  55. package/_shims/node-types.d.ts +42 -0
  56. package/_shims/node-types.js +3 -0
  57. package/_shims/node-types.mjs +3 -0
  58. package/_shims/registry.d.ts +37 -0
  59. package/_shims/registry.d.ts.map +1 -0
  60. package/_shims/registry.js +41 -0
  61. package/_shims/registry.js.map +1 -0
  62. package/_shims/registry.mjs +37 -0
  63. package/_shims/registry.mjs.map +1 -0
  64. package/_shims/web-runtime.d.ts +5 -0
  65. package/_shims/web-runtime.d.ts.map +1 -0
  66. package/_shims/web-runtime.js +78 -0
  67. package/_shims/web-runtime.js.map +1 -0
  68. package/_shims/web-runtime.mjs +71 -0
  69. package/_shims/web-runtime.mjs.map +1 -0
  70. package/_shims/web-types.d.ts +83 -0
  71. package/_shims/web-types.js +3 -0
  72. package/_shims/web-types.mjs +3 -0
  73. package/core.d.ts +237 -0
  74. package/core.d.ts.map +1 -0
  75. package/core.js +868 -0
  76. package/core.js.map +1 -0
  77. package/core.mjs +837 -0
  78. package/core.mjs.map +1 -0
  79. package/error.d.ts +53 -0
  80. package/error.d.ts.map +1 -0
  81. package/error.js +143 -0
  82. package/error.js.map +1 -0
  83. package/error.mjs +127 -0
  84. package/error.mjs.map +1 -0
  85. package/index.d.mts +114 -0
  86. package/index.d.ts +114 -0
  87. package/index.d.ts.map +1 -0
  88. package/index.js +119 -0
  89. package/index.js.map +1 -0
  90. package/index.mjs +91 -0
  91. package/index.mjs.map +1 -0
  92. package/lib/core/cli.d.ts +21 -0
  93. package/lib/core/cli.d.ts.map +1 -0
  94. package/lib/core/cli.js +90 -0
  95. package/lib/core/cli.js.map +1 -0
  96. package/lib/core/cli.mjs +65 -0
  97. package/lib/core/cli.mjs.map +1 -0
  98. package/lib/core/openai-monitor.d.ts +54 -0
  99. package/lib/core/openai-monitor.d.ts.map +1 -0
  100. package/lib/core/openai-monitor.js +376 -0
  101. package/lib/core/openai-monitor.js.map +1 -0
  102. package/lib/core/openai-monitor.mjs +371 -0
  103. package/lib/core/openai-monitor.mjs.map +1 -0
  104. package/package.json +102 -6
  105. package/resource.d.ts +6 -0
  106. package/resource.d.ts.map +1 -0
  107. package/resource.js +11 -0
  108. package/resource.js.map +1 -0
  109. package/resource.mjs +7 -0
  110. package/resource.mjs.map +1 -0
  111. package/resources/commits/commits.d.ts +11 -0
  112. package/resources/commits/commits.d.ts.map +1 -0
  113. package/resources/commits/commits.js +40 -0
  114. package/resources/commits/commits.js.map +1 -0
  115. package/resources/commits/commits.mjs +13 -0
  116. package/resources/commits/commits.mjs.map +1 -0
  117. package/resources/commits/index.d.ts +3 -0
  118. package/resources/commits/index.d.ts.map +1 -0
  119. package/resources/commits/index.js +9 -0
  120. package/resources/commits/index.js.map +1 -0
  121. package/resources/commits/index.mjs +4 -0
  122. package/resources/commits/index.mjs.map +1 -0
  123. package/resources/commits/test-results.d.ts +217 -0
  124. package/resources/commits/test-results.d.ts.map +1 -0
  125. package/resources/commits/test-results.js +18 -0
  126. package/resources/commits/test-results.js.map +1 -0
  127. package/resources/commits/test-results.mjs +14 -0
  128. package/resources/commits/test-results.mjs.map +1 -0
  129. package/resources/index.d.ts +4 -0
  130. package/resources/index.d.ts.map +1 -0
  131. package/resources/index.js +11 -0
  132. package/resources/index.js.map +1 -0
  133. package/resources/index.mjs +5 -0
  134. package/resources/index.mjs.map +1 -0
  135. package/resources/inference-pipelines/data.d.ts +228 -0
  136. package/resources/inference-pipelines/data.d.ts.map +1 -0
  137. package/resources/inference-pipelines/data.js +17 -0
  138. package/resources/inference-pipelines/data.js.map +1 -0
  139. package/resources/inference-pipelines/data.mjs +13 -0
  140. package/resources/inference-pipelines/data.mjs.map +1 -0
  141. package/resources/inference-pipelines/index.d.ts +4 -0
  142. package/resources/inference-pipelines/index.d.ts.map +1 -0
  143. package/resources/inference-pipelines/index.js +11 -0
  144. package/resources/inference-pipelines/index.js.map +1 -0
  145. package/resources/inference-pipelines/index.mjs +5 -0
  146. package/resources/inference-pipelines/index.mjs.map +1 -0
  147. package/resources/inference-pipelines/inference-pipelines.d.ts +16 -0
  148. package/resources/inference-pipelines/inference-pipelines.d.ts.map +1 -0
  149. package/resources/inference-pipelines/inference-pipelines.js +43 -0
  150. package/resources/inference-pipelines/inference-pipelines.js.map +1 -0
  151. package/resources/inference-pipelines/inference-pipelines.mjs +16 -0
  152. package/resources/inference-pipelines/inference-pipelines.mjs.map +1 -0
  153. package/resources/inference-pipelines/test-results.d.ts +217 -0
  154. package/resources/inference-pipelines/test-results.d.ts.map +1 -0
  155. package/resources/inference-pipelines/test-results.js +18 -0
  156. package/resources/inference-pipelines/test-results.js.map +1 -0
  157. package/resources/inference-pipelines/test-results.mjs +14 -0
  158. package/resources/inference-pipelines/test-results.mjs.map +1 -0
  159. package/resources/projects/commits.d.ts +171 -0
  160. package/resources/projects/commits.d.ts.map +1 -0
  161. package/resources/projects/commits.js +18 -0
  162. package/resources/projects/commits.js.map +1 -0
  163. package/resources/projects/commits.mjs +14 -0
  164. package/resources/projects/commits.mjs.map +1 -0
  165. package/resources/projects/index.d.ts +4 -0
  166. package/resources/projects/index.d.ts.map +1 -0
  167. package/resources/projects/index.js +11 -0
  168. package/resources/projects/index.js.map +1 -0
  169. package/resources/projects/index.mjs +5 -0
  170. package/resources/projects/index.mjs.map +1 -0
  171. package/resources/projects/inference-pipelines.d.ts +121 -0
  172. package/resources/projects/inference-pipelines.d.ts.map +1 -0
  173. package/resources/projects/inference-pipelines.js +18 -0
  174. package/resources/projects/inference-pipelines.js.map +1 -0
  175. package/resources/projects/inference-pipelines.mjs +14 -0
  176. package/resources/projects/inference-pipelines.mjs.map +1 -0
  177. package/resources/projects/projects.d.ts +172 -0
  178. package/resources/projects/projects.d.ts.map +1 -0
  179. package/resources/projects/projects.js +50 -0
  180. package/resources/projects/projects.js.map +1 -0
  181. package/resources/projects/projects.mjs +23 -0
  182. package/resources/projects/projects.mjs.map +1 -0
  183. package/shims/node.d.ts +29 -0
  184. package/shims/node.d.ts.map +1 -0
  185. package/shims/node.js +31 -0
  186. package/shims/node.js.map +1 -0
  187. package/shims/node.mjs +5 -0
  188. package/shims/node.mjs.map +1 -0
  189. package/shims/web.d.ts +26 -0
  190. package/shims/web.d.ts.map +1 -0
  191. package/shims/web.js +31 -0
  192. package/shims/web.js.map +1 -0
  193. package/shims/web.mjs +5 -0
  194. package/shims/web.mjs.map +1 -0
  195. package/src/_shims/MultipartBody.ts +9 -0
  196. package/src/_shims/README.md +46 -0
  197. package/src/_shims/auto/runtime-bun.ts +4 -0
  198. package/src/_shims/auto/runtime-node.ts +4 -0
  199. package/src/_shims/auto/runtime.ts +4 -0
  200. package/src/_shims/auto/types-node.ts +4 -0
  201. package/src/_shims/auto/types.d.ts +101 -0
  202. package/src/_shims/auto/types.js +3 -0
  203. package/src/_shims/auto/types.mjs +3 -0
  204. package/src/_shims/bun-runtime.ts +14 -0
  205. package/src/_shims/index.d.ts +81 -0
  206. package/src/_shims/index.js +13 -0
  207. package/src/_shims/index.mjs +7 -0
  208. package/src/_shims/manual-types.d.ts +12 -0
  209. package/src/_shims/manual-types.js +3 -0
  210. package/src/_shims/manual-types.mjs +3 -0
  211. package/src/_shims/node-runtime.ts +83 -0
  212. package/src/_shims/node-types.d.ts +42 -0
  213. package/src/_shims/node-types.js +3 -0
  214. package/src/_shims/node-types.mjs +3 -0
  215. package/src/_shims/registry.ts +67 -0
  216. package/src/_shims/web-runtime.ts +103 -0
  217. package/src/_shims/web-types.d.ts +83 -0
  218. package/src/_shims/web-types.js +3 -0
  219. package/src/_shims/web-types.mjs +3 -0
  220. package/src/core.ts +1146 -0
  221. package/src/error.ts +146 -0
  222. package/src/index.ts +199 -0
  223. package/src/lib/.keep +4 -0
  224. package/src/lib/core/cli.ts +96 -0
  225. package/src/lib/core/index.d.ts +2 -0
  226. package/src/lib/core/openai-monitor.ts +470 -0
  227. package/src/lib/index.d.ts +1 -0
  228. package/src/resource.ts +11 -0
  229. package/src/resources/commits/commits.ts +14 -0
  230. package/src/resources/commits/index.ts +4 -0
  231. package/src/resources/commits/test-results.ts +284 -0
  232. package/src/resources/index.ts +5 -0
  233. package/src/resources/inference-pipelines/data.ts +285 -0
  234. package/src/resources/inference-pipelines/index.ts +5 -0
  235. package/src/resources/inference-pipelines/inference-pipelines.ts +19 -0
  236. package/src/resources/inference-pipelines/test-results.ts +284 -0
  237. package/src/resources/projects/commits.ts +226 -0
  238. package/src/resources/projects/index.ts +9 -0
  239. package/src/resources/projects/inference-pipelines.ts +165 -0
  240. package/src/resources/projects/projects.ts +232 -0
  241. package/src/shims/node.ts +50 -0
  242. package/src/shims/web.ts +50 -0
  243. package/src/tsconfig.json +11 -0
  244. package/src/uploads.ts +248 -0
  245. package/src/version.ts +1 -0
  246. package/uploads.d.ts +75 -0
  247. package/uploads.d.ts.map +1 -0
  248. package/uploads.js +165 -0
  249. package/uploads.js.map +1 -0
  250. package/uploads.mjs +152 -0
  251. package/uploads.mjs.map +1 -0
  252. package/version.d.ts +2 -0
  253. package/version.d.ts.map +1 -0
  254. package/version.js +5 -0
  255. package/version.js.map +1 -0
  256. package/version.mjs +2 -0
  257. package/version.mjs.map +1 -0
@@ -0,0 +1,284 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import * as Core from '../../core';
4
+ import { APIResource } from '../../resource';
5
+ import { isRequestOptions } from '../../core';
6
+ import * as TestResultsAPI from './test-results';
7
+
8
+ export class TestResults extends APIResource {
9
+ /**
10
+ * List the test results under an inference pipeline.
11
+ */
12
+ list(
13
+ id: string,
14
+ query?: TestResultListParams,
15
+ options?: Core.RequestOptions,
16
+ ): Core.APIPromise<TestResultListResponse>;
17
+ list(id: string, options?: Core.RequestOptions): Core.APIPromise<TestResultListResponse>;
18
+ list(
19
+ id: string,
20
+ query: TestResultListParams | Core.RequestOptions = {},
21
+ options?: Core.RequestOptions,
22
+ ): Core.APIPromise<TestResultListResponse> {
23
+ if (isRequestOptions(query)) {
24
+ return this.list(id, {}, query);
25
+ }
26
+ return this._client.get(`/inference-pipelines/${id}/results`, { query, ...options });
27
+ }
28
+ }
29
+
30
+ export interface TestResultListResponse {
31
+ _meta: TestResultListResponse._Meta;
32
+
33
+ items: Array<TestResultListResponse.Item>;
34
+ }
35
+
36
+ export namespace TestResultListResponse {
37
+ export interface _Meta {
38
+ /**
39
+ * The current page.
40
+ */
41
+ page: number;
42
+
43
+ /**
44
+ * The number of items per page.
45
+ */
46
+ perPage: number;
47
+
48
+ /**
49
+ * The total number of items.
50
+ */
51
+ totalItems: number;
52
+
53
+ /**
54
+ * The total number of pages.
55
+ */
56
+ totalPages: number;
57
+ }
58
+
59
+ export interface Item {
60
+ /**
61
+ * Project version (commit) id.
62
+ */
63
+ id: string;
64
+
65
+ /**
66
+ * The creation date.
67
+ */
68
+ dateCreated: string;
69
+
70
+ /**
71
+ * The data end date.
72
+ */
73
+ dateDataEnds: string | null;
74
+
75
+ /**
76
+ * The data start date.
77
+ */
78
+ dateDataStarts: string | null;
79
+
80
+ /**
81
+ * The last updated date.
82
+ */
83
+ dateUpdated: string;
84
+
85
+ /**
86
+ * The inference pipeline id.
87
+ */
88
+ inferencePipelineId: string | null;
89
+
90
+ /**
91
+ * The project version (commit) id.
92
+ */
93
+ projectVersionId: string | null;
94
+
95
+ /**
96
+ * The status of the test.
97
+ */
98
+ status: 'running' | 'passing' | 'failing' | 'skipped' | 'error';
99
+
100
+ /**
101
+ * The status message.
102
+ */
103
+ statusMessage: string | null;
104
+
105
+ goal?: Item.Goal;
106
+
107
+ /**
108
+ * The test id.
109
+ */
110
+ goalId?: string | null;
111
+ }
112
+
113
+ export namespace Item {
114
+ export interface Goal {
115
+ /**
116
+ * The test id.
117
+ */
118
+ id: string;
119
+
120
+ /**
121
+ * The number of comments on the test.
122
+ */
123
+ commentCount: number;
124
+
125
+ /**
126
+ * The test creator id.
127
+ */
128
+ creatorId: string | null;
129
+
130
+ /**
131
+ * The date the test was archived.
132
+ */
133
+ dateArchived: string | null;
134
+
135
+ /**
136
+ * The creation date.
137
+ */
138
+ dateCreated: string;
139
+
140
+ /**
141
+ * The last updated date.
142
+ */
143
+ dateUpdated: string;
144
+
145
+ /**
146
+ * The test description.
147
+ */
148
+ description: unknown | null;
149
+
150
+ /**
151
+ * The test name.
152
+ */
153
+ name: string;
154
+
155
+ /**
156
+ * The test number.
157
+ */
158
+ number: number;
159
+
160
+ /**
161
+ * The project version (commit) id where the test was created.
162
+ */
163
+ originProjectVersionId: string | null;
164
+
165
+ /**
166
+ * The test subtype.
167
+ */
168
+ subtype: string;
169
+
170
+ /**
171
+ * Whether the test is suggested or user-created.
172
+ */
173
+ suggested: boolean;
174
+
175
+ thresholds: Array<Goal.Threshold>;
176
+
177
+ /**
178
+ * The test type.
179
+ */
180
+ type: string;
181
+
182
+ /**
183
+ * Whether the test is archived.
184
+ */
185
+ archived?: boolean;
186
+
187
+ /**
188
+ * The delay window in seconds. Only applies to tests that use production data.
189
+ */
190
+ delayWindow?: number | null;
191
+
192
+ /**
193
+ * The evaluation window in seconds. Only applies to tests that use production
194
+ * data.
195
+ */
196
+ evaluationWindow?: number | null;
197
+
198
+ /**
199
+ * Whether the test uses an ML model.
200
+ */
201
+ usesMlModel?: boolean;
202
+
203
+ /**
204
+ * Whether the test uses production data (monitoring mode only).
205
+ */
206
+ usesProductionData?: boolean;
207
+
208
+ /**
209
+ * Whether the test uses a reference dataset (monitoring mode only).
210
+ */
211
+ usesReferenceDataset?: boolean;
212
+
213
+ /**
214
+ * Whether the test uses a training dataset.
215
+ */
216
+ usesTrainingDataset?: boolean;
217
+
218
+ /**
219
+ * Whether the test uses a validation dataset.
220
+ */
221
+ usesValidationDataset?: boolean;
222
+ }
223
+
224
+ export namespace Goal {
225
+ export interface Threshold {
226
+ /**
227
+ * The insight name to be evaluated.
228
+ */
229
+ insightName?: string;
230
+
231
+ insightParameters?: Array<unknown>;
232
+
233
+ /**
234
+ * The measurement to be evaluated.
235
+ */
236
+ measurement?: string;
237
+
238
+ /**
239
+ * The operator to be used for the evaluation.
240
+ */
241
+ operator?: string;
242
+
243
+ /**
244
+ * The value to be compared.
245
+ */
246
+ value?: number | boolean | string | Array<string>;
247
+ }
248
+ }
249
+ }
250
+ }
251
+
252
+ export interface TestResultListParams {
253
+ /**
254
+ * Include archived goals.
255
+ */
256
+ includeArchived?: boolean;
257
+
258
+ /**
259
+ * The page to return in a paginated query.
260
+ */
261
+ page?: number;
262
+
263
+ /**
264
+ * Maximum number of items to return per page.
265
+ */
266
+ perPage?: number;
267
+
268
+ /**
269
+ * Filter list of test results by status. Available statuses are `running`,
270
+ * `passing`, `failing`, `skipped`, and `error`.
271
+ */
272
+ status?: 'running' | 'passing' | 'failing' | 'skipped' | 'error';
273
+
274
+ /**
275
+ * Filter objects by test type. Available types are `integrity`, `consistency`,
276
+ * `performance`, `fairness`, and `robustness`.
277
+ */
278
+ type?: 'integrity' | 'consistency' | 'performance' | 'fairness' | 'robustness';
279
+ }
280
+
281
+ export namespace TestResults {
282
+ export import TestResultListResponse = TestResultsAPI.TestResultListResponse;
283
+ export import TestResultListParams = TestResultsAPI.TestResultListParams;
284
+ }
@@ -0,0 +1,226 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import * as Core from '../../core';
4
+ import { APIResource } from '../../resource';
5
+ import { isRequestOptions } from '../../core';
6
+ import * as CommitsAPI from './commits';
7
+
8
+ export class Commits extends APIResource {
9
+ /**
10
+ * List the commits (project versions) under a project.
11
+ */
12
+ list(
13
+ id: string,
14
+ query?: CommitListParams,
15
+ options?: Core.RequestOptions,
16
+ ): Core.APIPromise<CommitListResponse>;
17
+ list(id: string, options?: Core.RequestOptions): Core.APIPromise<CommitListResponse>;
18
+ list(
19
+ id: string,
20
+ query: CommitListParams | Core.RequestOptions = {},
21
+ options?: Core.RequestOptions,
22
+ ): Core.APIPromise<CommitListResponse> {
23
+ if (isRequestOptions(query)) {
24
+ return this.list(id, {}, query);
25
+ }
26
+ return this._client.get(`/projects/${id}/versions`, { query, ...options });
27
+ }
28
+ }
29
+
30
+ export interface CommitListResponse {
31
+ _meta: CommitListResponse._Meta;
32
+
33
+ items: Array<CommitListResponse.Item>;
34
+ }
35
+
36
+ export namespace CommitListResponse {
37
+ export interface _Meta {
38
+ /**
39
+ * The current page.
40
+ */
41
+ page: number;
42
+
43
+ /**
44
+ * The number of items per page.
45
+ */
46
+ perPage: number;
47
+
48
+ /**
49
+ * The total number of items.
50
+ */
51
+ totalItems: number;
52
+
53
+ /**
54
+ * The total number of pages.
55
+ */
56
+ totalPages: number;
57
+ }
58
+
59
+ export interface Item {
60
+ /**
61
+ * The project version (commit) id.
62
+ */
63
+ id: string;
64
+
65
+ /**
66
+ * The details of a commit (project version).
67
+ */
68
+ commit: Item.Commit;
69
+
70
+ /**
71
+ * The commit archive date.
72
+ */
73
+ dateArchived: string | null;
74
+
75
+ /**
76
+ * The project version (commit) creation date.
77
+ */
78
+ dateCreated: string;
79
+
80
+ /**
81
+ * The number of tests that are failing for the commit.
82
+ */
83
+ failingGoalCount: number;
84
+
85
+ /**
86
+ * The model id.
87
+ */
88
+ mlModelId: string | null;
89
+
90
+ /**
91
+ * The number of tests that are passing for the commit.
92
+ */
93
+ passingGoalCount: number;
94
+
95
+ /**
96
+ * The project id.
97
+ */
98
+ projectId: string;
99
+
100
+ /**
101
+ * The commit status. Initially, the commit is `queued`, then, it switches to
102
+ * `running`. Finally, it can be `paused`, `failed`, or `completed`.
103
+ */
104
+ status: 'queued' | 'running' | 'paused' | 'failed' | 'completed' | 'unknown';
105
+
106
+ /**
107
+ * The commit status message.
108
+ */
109
+ statusMessage: string | null;
110
+
111
+ /**
112
+ * The total number of tests for the commit.
113
+ */
114
+ totalGoalCount: number;
115
+
116
+ /**
117
+ * The training dataset id.
118
+ */
119
+ trainingDatasetId: string | null;
120
+
121
+ /**
122
+ * The validation dataset id.
123
+ */
124
+ validationDatasetId: string | null;
125
+
126
+ /**
127
+ * Whether the commit is archived.
128
+ */
129
+ archived?: boolean | null;
130
+
131
+ /**
132
+ * The deployment status associated with the commit's model.
133
+ */
134
+ deploymentStatus?: string;
135
+
136
+ links?: Item.Links;
137
+ }
138
+
139
+ export namespace Item {
140
+ /**
141
+ * The details of a commit (project version).
142
+ */
143
+ export interface Commit {
144
+ /**
145
+ * The commit id.
146
+ */
147
+ id: string;
148
+
149
+ /**
150
+ * The author id of the commit.
151
+ */
152
+ authorId: string;
153
+
154
+ /**
155
+ * The size of the commit bundle in bytes.
156
+ */
157
+ fileSize: number | null;
158
+
159
+ /**
160
+ * The commit message.
161
+ */
162
+ message: string;
163
+
164
+ /**
165
+ * The model id.
166
+ */
167
+ mlModelId: string | null;
168
+
169
+ /**
170
+ * The storage URI where the commit bundle is stored.
171
+ */
172
+ storageUri: string;
173
+
174
+ /**
175
+ * The training dataset id.
176
+ */
177
+ trainingDatasetId: string | null;
178
+
179
+ /**
180
+ * The validation dataset id.
181
+ */
182
+ validationDatasetId: string | null;
183
+
184
+ /**
185
+ * The commit creation date.
186
+ */
187
+ dateCreated?: string;
188
+
189
+ /**
190
+ * The ref of the corresponding git commit.
191
+ */
192
+ gitCommitRef?: string;
193
+
194
+ /**
195
+ * The SHA of the corresponding git commit.
196
+ */
197
+ gitCommitSha?: number;
198
+
199
+ /**
200
+ * The URL of the corresponding git commit.
201
+ */
202
+ gitCommitUrl?: string;
203
+ }
204
+
205
+ export interface Links {
206
+ app: string;
207
+ }
208
+ }
209
+ }
210
+
211
+ export interface CommitListParams {
212
+ /**
213
+ * The page to return in a paginated query.
214
+ */
215
+ page?: number;
216
+
217
+ /**
218
+ * Maximum number of items to return per page.
219
+ */
220
+ perPage?: number;
221
+ }
222
+
223
+ export namespace Commits {
224
+ export import CommitListResponse = CommitsAPI.CommitListResponse;
225
+ export import CommitListParams = CommitsAPI.CommitListParams;
226
+ }
@@ -0,0 +1,9 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { CommitListResponse, CommitListParams, Commits } from './commits';
4
+ export {
5
+ InferencePipelineListResponse,
6
+ InferencePipelineListParams,
7
+ InferencePipelines,
8
+ } from './inference-pipelines';
9
+ export { ProjectListResponse, ProjectListParams, Projects } from './projects';
@@ -0,0 +1,165 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import * as Core from '../../core';
4
+ import { APIResource } from '../../resource';
5
+ import { isRequestOptions } from '../../core';
6
+ import * as InferencePipelinesAPI from './inference-pipelines';
7
+
8
+ export class InferencePipelines extends APIResource {
9
+ /**
10
+ * List the inference pipelines in a project.
11
+ */
12
+ list(
13
+ id: string,
14
+ query?: InferencePipelineListParams,
15
+ options?: Core.RequestOptions,
16
+ ): Core.APIPromise<InferencePipelineListResponse>;
17
+ list(id: string, options?: Core.RequestOptions): Core.APIPromise<InferencePipelineListResponse>;
18
+ list(
19
+ id: string,
20
+ query: InferencePipelineListParams | Core.RequestOptions = {},
21
+ options?: Core.RequestOptions,
22
+ ): Core.APIPromise<InferencePipelineListResponse> {
23
+ if (isRequestOptions(query)) {
24
+ return this.list(id, {}, query);
25
+ }
26
+ return this._client.get(`/projects/${id}/inference-pipelines`, { query, ...options });
27
+ }
28
+ }
29
+
30
+ export interface InferencePipelineListResponse {
31
+ _meta: InferencePipelineListResponse._Meta;
32
+
33
+ items: Array<InferencePipelineListResponse.Item>;
34
+ }
35
+
36
+ export namespace InferencePipelineListResponse {
37
+ export interface _Meta {
38
+ /**
39
+ * The current page.
40
+ */
41
+ page: number;
42
+
43
+ /**
44
+ * The number of items per page.
45
+ */
46
+ perPage: number;
47
+
48
+ /**
49
+ * The total number of items.
50
+ */
51
+ totalItems: number;
52
+
53
+ /**
54
+ * The total number of pages.
55
+ */
56
+ totalPages: number;
57
+ }
58
+
59
+ export interface Item {
60
+ /**
61
+ * The inference pipeline id.
62
+ */
63
+ id: string;
64
+
65
+ /**
66
+ * The creation date.
67
+ */
68
+ dateCreated: string;
69
+
70
+ /**
71
+ * The last test evaluation date.
72
+ */
73
+ dateLastEvaluated: string | null;
74
+
75
+ /**
76
+ * The last data sample received date.
77
+ */
78
+ dateLastSampleReceived: string | null;
79
+
80
+ /**
81
+ * The next test evaluation date.
82
+ */
83
+ dateOfNextEvaluation: string | null;
84
+
85
+ /**
86
+ * The last updated date.
87
+ */
88
+ dateUpdated: string;
89
+
90
+ /**
91
+ * The inference pipeline description.
92
+ */
93
+ description: string | null;
94
+
95
+ /**
96
+ * The number of tests failing.
97
+ */
98
+ failingGoalCount: number;
99
+
100
+ links: Item.Links;
101
+
102
+ /**
103
+ * The inference pipeline name.
104
+ */
105
+ name: string;
106
+
107
+ /**
108
+ * The number of tests passing.
109
+ */
110
+ passingGoalCount: number;
111
+
112
+ /**
113
+ * The project id.
114
+ */
115
+ projectId: string;
116
+
117
+ /**
118
+ * The status of test evaluation for the inference pipeline.
119
+ */
120
+ status: 'queued' | 'running' | 'paused' | 'failed' | 'completed' | 'unknown';
121
+
122
+ /**
123
+ * The status message of test evaluation for the inference pipeline.
124
+ */
125
+ statusMessage: string | null;
126
+
127
+ /**
128
+ * The total number of tests.
129
+ */
130
+ totalGoalCount: number;
131
+
132
+ /**
133
+ * The storage type.
134
+ */
135
+ storageType?: 'local' | 's3' | 'gcs' | 'azure';
136
+ }
137
+
138
+ export namespace Item {
139
+ export interface Links {
140
+ app: string;
141
+ }
142
+ }
143
+ }
144
+
145
+ export interface InferencePipelineListParams {
146
+ /**
147
+ * Filter list of items by name.
148
+ */
149
+ name?: string;
150
+
151
+ /**
152
+ * The page to return in a paginated query.
153
+ */
154
+ page?: number;
155
+
156
+ /**
157
+ * Maximum number of items to return per page.
158
+ */
159
+ perPage?: number;
160
+ }
161
+
162
+ export namespace InferencePipelines {
163
+ export import InferencePipelineListResponse = InferencePipelinesAPI.InferencePipelineListResponse;
164
+ export import InferencePipelineListParams = InferencePipelinesAPI.InferencePipelineListParams;
165
+ }