@databricks/sdk-modelregistry 0.1.0-dev.1 → 0.1.0-dev.2
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/dist/v1/client.d.ts +4 -4
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +58 -58
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +2 -2
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +1 -1
- package/dist/v1/model.d.ts +15 -15
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +19 -19
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/utils.d.ts +1 -2
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +1 -1
- package/dist/v1/utils.js.map +1 -1
- package/package.json +4 -4
- package/src/v1/client.ts +99 -100
- package/src/v1/index.ts +3 -3
- package/src/v1/model.ts +38 -38
- package/src/v1/utils.ts +3 -3
package/src/v1/model.ts
CHANGED
|
@@ -498,22 +498,6 @@ export interface FeatureList {
|
|
|
498
498
|
features?: LinkedFeature[] | undefined;
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
export interface GetLatestVersionsRequest {
|
|
502
|
-
/** Registered model unique name identifier. */
|
|
503
|
-
name?: string | undefined;
|
|
504
|
-
/** List of stages. */
|
|
505
|
-
stages?: string[] | undefined;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
509
|
-
export interface GetLatestVersionsRequest_Response {
|
|
510
|
-
/**
|
|
511
|
-
* Latest version models for each requests stage. Only return models with current `READY` status.
|
|
512
|
-
* If no `stages` provided, returns the latest version for each stage, including `"None"`.
|
|
513
|
-
*/
|
|
514
|
-
modelVersions?: ModelVersion[] | undefined;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
501
|
export interface GetModelVersionDownloadUriRequest {
|
|
518
502
|
/** Name of the registered model */
|
|
519
503
|
name?: string | undefined;
|
|
@@ -579,6 +563,22 @@ export interface LinkedFeature {
|
|
|
579
563
|
featureTableId?: string | undefined;
|
|
580
564
|
}
|
|
581
565
|
|
|
566
|
+
export interface ListLatestVersionsRequest {
|
|
567
|
+
/** Registered model unique name identifier. */
|
|
568
|
+
name?: string | undefined;
|
|
569
|
+
/** List of stages. */
|
|
570
|
+
stages?: string[] | undefined;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
574
|
+
export interface ListLatestVersionsRequest_Response {
|
|
575
|
+
/**
|
|
576
|
+
* Latest version models for each requests stage. Only return models with current `READY` status.
|
|
577
|
+
* If no `stages` provided, returns the latest version for each stage, including `"None"`.
|
|
578
|
+
*/
|
|
579
|
+
modelVersions?: ModelVersion[] | undefined;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
582
|
export interface ListRegisteredModelsRequest {
|
|
583
583
|
/** Maximum number of registered models desired. Max threshold is 1000. */
|
|
584
584
|
maxResults?: bigint | undefined;
|
|
@@ -1304,18 +1304,6 @@ export const unmarshalFeatureListSchema: z.ZodType<FeatureList> = z
|
|
|
1304
1304
|
features: d.features,
|
|
1305
1305
|
}));
|
|
1306
1306
|
|
|
1307
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1308
|
-
export const unmarshalGetLatestVersionsRequest_ResponseSchema: z.ZodType<GetLatestVersionsRequest_Response> =
|
|
1309
|
-
z
|
|
1310
|
-
.object({
|
|
1311
|
-
model_versions: z
|
|
1312
|
-
.array(z.lazy(() => unmarshalModelVersionSchema))
|
|
1313
|
-
.optional(),
|
|
1314
|
-
})
|
|
1315
|
-
.transform(d => ({
|
|
1316
|
-
modelVersions: d.model_versions,
|
|
1317
|
-
}));
|
|
1318
|
-
|
|
1319
1307
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1320
1308
|
export const unmarshalGetModelVersionDownloadUriRequest_ResponseSchema: z.ZodType<GetModelVersionDownloadUriRequest_Response> =
|
|
1321
1309
|
z
|
|
@@ -1386,6 +1374,18 @@ export const unmarshalLinkedFeatureSchema: z.ZodType<LinkedFeature> = z
|
|
|
1386
1374
|
featureTableId: d.feature_table_id,
|
|
1387
1375
|
}));
|
|
1388
1376
|
|
|
1377
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1378
|
+
export const unmarshalListLatestVersionsRequest_ResponseSchema: z.ZodType<ListLatestVersionsRequest_Response> =
|
|
1379
|
+
z
|
|
1380
|
+
.object({
|
|
1381
|
+
model_versions: z
|
|
1382
|
+
.array(z.lazy(() => unmarshalModelVersionSchema))
|
|
1383
|
+
.optional(),
|
|
1384
|
+
})
|
|
1385
|
+
.transform(d => ({
|
|
1386
|
+
modelVersions: d.model_versions,
|
|
1387
|
+
}));
|
|
1388
|
+
|
|
1389
1389
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1390
1390
|
export const unmarshalListRegisteredModelsRequest_ResponseSchema: z.ZodType<ListRegisteredModelsRequest_Response> =
|
|
1391
1391
|
z
|
|
@@ -1865,16 +1865,6 @@ export const marshalCreateTransitionRequestSchema: z.ZodType = z
|
|
|
1865
1865
|
comment: d.comment,
|
|
1866
1866
|
}));
|
|
1867
1867
|
|
|
1868
|
-
export const marshalGetLatestVersionsRequestSchema: z.ZodType = z
|
|
1869
|
-
.object({
|
|
1870
|
-
name: z.string().optional(),
|
|
1871
|
-
stages: z.array(z.string()).optional(),
|
|
1872
|
-
})
|
|
1873
|
-
.transform(d => ({
|
|
1874
|
-
name: d.name,
|
|
1875
|
-
stages: d.stages,
|
|
1876
|
-
}));
|
|
1877
|
-
|
|
1878
1868
|
export const marshalHttpUrlSpecSchema: z.ZodType = z
|
|
1879
1869
|
.object({
|
|
1880
1870
|
url: z.string().optional(),
|
|
@@ -1901,6 +1891,16 @@ export const marshalJobSpecSchema: z.ZodType = z
|
|
|
1901
1891
|
access_token: d.accessToken,
|
|
1902
1892
|
}));
|
|
1903
1893
|
|
|
1894
|
+
export const marshalListLatestVersionsRequestSchema: z.ZodType = z
|
|
1895
|
+
.object({
|
|
1896
|
+
name: z.string().optional(),
|
|
1897
|
+
stages: z.array(z.string()).optional(),
|
|
1898
|
+
})
|
|
1899
|
+
.transform(d => ({
|
|
1900
|
+
name: d.name,
|
|
1901
|
+
stages: d.stages,
|
|
1902
|
+
}));
|
|
1903
|
+
|
|
1904
1904
|
export const marshalModelVersionTagSchema: z.ZodType = z
|
|
1905
1905
|
.object({
|
|
1906
1906
|
key: z.string().optional(),
|
package/src/v1/utils.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
|
|
2
2
|
|
|
3
|
-
import type {
|
|
4
|
-
import {execute} from '@databricks/sdk-core/
|
|
3
|
+
import type {Options} from '@databricks/sdk-core/ops';
|
|
4
|
+
import {execute} from '@databricks/sdk-core/ops';
|
|
5
5
|
import {ApiError} from '@databricks/sdk-core/apierror';
|
|
6
6
|
import type {
|
|
7
7
|
HttpClient,
|
|
@@ -30,7 +30,7 @@ export interface HttpCallOptions {
|
|
|
30
30
|
* API from the executor's internal type so they can diverge.
|
|
31
31
|
*/
|
|
32
32
|
export async function executeCall(
|
|
33
|
-
call:
|
|
33
|
+
call: (signal?: AbortSignal) => Promise<void>,
|
|
34
34
|
options?: CallOptions
|
|
35
35
|
): Promise<void> {
|
|
36
36
|
const opts: Options = {
|