@osdk/foundry.models 0.0.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/build/browser/_components.d.ts +225 -0
- package/build/browser/_components.d.ts.map +1 -0
- package/build/browser/_components.js +17 -0
- package/build/browser/_components.js.map +1 -0
- package/build/browser/_errors.d.ts +83 -0
- package/build/browser/_errors.d.ts.map +1 -0
- package/build/browser/_errors.js +17 -0
- package/build/browser/_errors.js.map +1 -0
- package/build/browser/index.d.ts +5 -0
- package/build/browser/index.d.ts.map +1 -0
- package/build/browser/index.js +18 -0
- package/build/browser/index.js.map +1 -0
- package/build/browser/public/Model.d.ts +33 -0
- package/build/browser/public/Model.d.ts.map +1 -0
- package/build/browser/public/Model.js +42 -0
- package/build/browser/public/Model.js.map +1 -0
- package/build/browser/public/ModelVersion.d.ts +51 -0
- package/build/browser/public/ModelVersion.d.ts.map +1 -0
- package/build/browser/public/ModelVersion.js +54 -0
- package/build/browser/public/ModelVersion.js.map +1 -0
- package/build/esm/_components.d.ts +225 -0
- package/build/esm/_components.d.ts.map +1 -0
- package/build/esm/_components.js +17 -0
- package/build/esm/_components.js.map +1 -0
- package/build/esm/_errors.d.ts +83 -0
- package/build/esm/_errors.d.ts.map +1 -0
- package/build/esm/_errors.js +17 -0
- package/build/esm/_errors.js.map +1 -0
- package/build/esm/index.d.ts +5 -0
- package/build/esm/index.d.ts.map +1 -0
- package/build/esm/index.js +18 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/public/Model.d.ts +33 -0
- package/build/esm/public/Model.d.ts.map +1 -0
- package/build/esm/public/Model.js +42 -0
- package/build/esm/public/Model.js.map +1 -0
- package/build/esm/public/ModelVersion.d.ts +51 -0
- package/build/esm/public/ModelVersion.d.ts.map +1 -0
- package/build/esm/public/ModelVersion.js +54 -0
- package/build/esm/public/ModelVersion.js.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import type * as _Core from "@osdk/foundry.core";
|
|
2
|
+
import type * as _Filesystem from "@osdk/foundry.filesystem";
|
|
3
|
+
export type LooselyBrandedString<T extends string> = string & {
|
|
4
|
+
__LOOSE_BRAND?: T;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Log Safety: SAFE
|
|
8
|
+
*/
|
|
9
|
+
export interface BooleanType {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Log Safety: UNSAFE
|
|
13
|
+
*/
|
|
14
|
+
export interface CreateModelRequest {
|
|
15
|
+
name: ModelName;
|
|
16
|
+
parentFolderRid: _Filesystem.FolderRid;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Log Safety: UNSAFE
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateModelVersionRequest {
|
|
22
|
+
modelFiles: ModelFiles;
|
|
23
|
+
backingRepositories: Array<string>;
|
|
24
|
+
condaRequirements: Array<string>;
|
|
25
|
+
modelApi: ModelApi;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Log Safety: SAFE
|
|
29
|
+
*/
|
|
30
|
+
export interface DateType {
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Log Safety: UNSAFE
|
|
34
|
+
*/
|
|
35
|
+
export interface DillModelFiles {
|
|
36
|
+
serializedModelFunction: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Log Safety: SAFE
|
|
40
|
+
*/
|
|
41
|
+
export interface DoubleType {
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Log Safety: SAFE
|
|
45
|
+
*/
|
|
46
|
+
export interface FloatType {
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Log Safety: SAFE
|
|
50
|
+
*/
|
|
51
|
+
export interface IntegerType {
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Log Safety: UNSAFE
|
|
55
|
+
*/
|
|
56
|
+
export interface ListModelVersionsResponse {
|
|
57
|
+
data: Array<ModelVersion>;
|
|
58
|
+
nextPageToken?: _Core.PageToken;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Log Safety: SAFE
|
|
62
|
+
*/
|
|
63
|
+
export interface LongType {
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Log Safety: SAFE
|
|
67
|
+
*/
|
|
68
|
+
export interface Model {
|
|
69
|
+
rid: ModelRid;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The Model API is a specification that describes the inputs and outputs of a machine learning model. It is used to define the interface for the model, including the types of data that can be passed to it and the types of data that it will return.
|
|
73
|
+
*
|
|
74
|
+
* Log Safety: UNSAFE
|
|
75
|
+
*/
|
|
76
|
+
export interface ModelApi {
|
|
77
|
+
inputs: Array<ModelApiInput>;
|
|
78
|
+
outputs: Array<ModelApiOutput>;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Log Safety: SAFE
|
|
82
|
+
*/
|
|
83
|
+
export interface ModelApiAnyType {
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Log Safety: SAFE
|
|
87
|
+
*/
|
|
88
|
+
export interface ModelApiArrayType {
|
|
89
|
+
itemType: ModelApiDataType;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Log Safety: UNSAFE
|
|
93
|
+
*/
|
|
94
|
+
export interface ModelApiColumn {
|
|
95
|
+
name: string;
|
|
96
|
+
required?: boolean;
|
|
97
|
+
dataType: ModelApiDataType;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Log Safety: SAFE
|
|
101
|
+
*/
|
|
102
|
+
export type ModelApiDataType = ({
|
|
103
|
+
type: "date";
|
|
104
|
+
} & _Core.DateType) | ({
|
|
105
|
+
type: "boolean";
|
|
106
|
+
} & _Core.BooleanType) | ({
|
|
107
|
+
type: "unsupported";
|
|
108
|
+
} & _Core.UnsupportedType) | ({
|
|
109
|
+
type: "string";
|
|
110
|
+
} & _Core.StringType) | ({
|
|
111
|
+
type: "array";
|
|
112
|
+
} & ModelApiArrayType) | ({
|
|
113
|
+
type: "double";
|
|
114
|
+
} & _Core.DoubleType) | ({
|
|
115
|
+
type: "integer";
|
|
116
|
+
} & _Core.IntegerType) | ({
|
|
117
|
+
type: "float";
|
|
118
|
+
} & _Core.FloatType) | ({
|
|
119
|
+
type: "any";
|
|
120
|
+
} & ModelApiAnyType) | ({
|
|
121
|
+
type: "map";
|
|
122
|
+
} & ModelApiMapType) | ({
|
|
123
|
+
type: "long";
|
|
124
|
+
} & _Core.LongType) | ({
|
|
125
|
+
type: "timestamp";
|
|
126
|
+
} & _Core.TimestampType);
|
|
127
|
+
/**
|
|
128
|
+
* Log Safety: UNSAFE
|
|
129
|
+
*/
|
|
130
|
+
export type ModelApiInput = ({
|
|
131
|
+
type: "unsupported";
|
|
132
|
+
} & _Core.UnsupportedType) | ({
|
|
133
|
+
type: "parameter";
|
|
134
|
+
} & ModelApiParameterType) | ({
|
|
135
|
+
type: "tabular";
|
|
136
|
+
} & ModelApiTabularType);
|
|
137
|
+
/**
|
|
138
|
+
* Log Safety: SAFE
|
|
139
|
+
*/
|
|
140
|
+
export interface ModelApiMapType {
|
|
141
|
+
keyType: ModelApiDataType;
|
|
142
|
+
valueType: ModelApiDataType;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Log Safety: UNSAFE
|
|
146
|
+
*/
|
|
147
|
+
export type ModelApiOutput = ({
|
|
148
|
+
type: "unsupported";
|
|
149
|
+
} & _Core.UnsupportedType) | ({
|
|
150
|
+
type: "parameter";
|
|
151
|
+
} & ModelApiParameterType) | ({
|
|
152
|
+
type: "tabular";
|
|
153
|
+
} & ModelApiTabularType);
|
|
154
|
+
/**
|
|
155
|
+
* Log Safety: UNSAFE
|
|
156
|
+
*/
|
|
157
|
+
export interface ModelApiParameterType {
|
|
158
|
+
name: string;
|
|
159
|
+
required?: boolean;
|
|
160
|
+
dataType: ModelApiDataType;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Log Safety: SAFE
|
|
164
|
+
*/
|
|
165
|
+
export type ModelApiTabularFormat = "PANDAS" | "SPARK";
|
|
166
|
+
/**
|
|
167
|
+
* Log Safety: UNSAFE
|
|
168
|
+
*/
|
|
169
|
+
export interface ModelApiTabularType {
|
|
170
|
+
name: string;
|
|
171
|
+
required?: boolean;
|
|
172
|
+
columns: Array<ModelApiColumn>;
|
|
173
|
+
format?: ModelApiTabularFormat;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* The serialized data of a machine learning model. This can include the model's parameters, architecture, and any other relevant information needed to reconstruct the model.
|
|
177
|
+
Must be a base64-encoded string of a dill-serialized model function.
|
|
178
|
+
*
|
|
179
|
+
* Log Safety: UNSAFE
|
|
180
|
+
*/
|
|
181
|
+
export type ModelFiles = {
|
|
182
|
+
type: "dill";
|
|
183
|
+
} & DillModelFiles;
|
|
184
|
+
/**
|
|
185
|
+
* Log Safety: UNSAFE
|
|
186
|
+
*/
|
|
187
|
+
export type ModelName = LooselyBrandedString<"ModelName">;
|
|
188
|
+
/**
|
|
189
|
+
* The Resource Identifier (RID) of a Model.
|
|
190
|
+
*
|
|
191
|
+
* Log Safety: SAFE
|
|
192
|
+
*/
|
|
193
|
+
export type ModelRid = LooselyBrandedString<"ModelRid">;
|
|
194
|
+
/**
|
|
195
|
+
* Log Safety: UNSAFE
|
|
196
|
+
*/
|
|
197
|
+
export interface ModelVersion {
|
|
198
|
+
rid: ModelVersionRid;
|
|
199
|
+
modelApi: ModelApi;
|
|
200
|
+
condaRequirements: Array<string>;
|
|
201
|
+
backingRepositories: Array<string>;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* The Resource Identifier (RID) of a Model Version.
|
|
205
|
+
*
|
|
206
|
+
* Log Safety: SAFE
|
|
207
|
+
*/
|
|
208
|
+
export type ModelVersionRid = LooselyBrandedString<"ModelVersionRid">;
|
|
209
|
+
/**
|
|
210
|
+
* Log Safety: SAFE
|
|
211
|
+
*/
|
|
212
|
+
export interface StringType {
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Log Safety: SAFE
|
|
216
|
+
*/
|
|
217
|
+
export interface TimestampType {
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Log Safety: SAFE
|
|
221
|
+
*/
|
|
222
|
+
export interface UnsupportedType {
|
|
223
|
+
unsupportedType: string;
|
|
224
|
+
}
|
|
225
|
+
//# sourceMappingURL=_components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=_components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_components.js","names":[],"sources":["_components.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export type LooselyBrandedString<T extends string> = string & {
|
|
2
|
+
__LOOSE_BRAND?: T;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* Thrown when conda solve fails for the provided input packages.
|
|
6
|
+
*
|
|
7
|
+
* Log Safety: UNSAFE
|
|
8
|
+
*/
|
|
9
|
+
export interface CondaSolveFailureForProvidedPackages {
|
|
10
|
+
errorCode: "INVALID_ARGUMENT";
|
|
11
|
+
errorName: "CondaSolveFailureForProvidedPackages";
|
|
12
|
+
errorInstanceId: string;
|
|
13
|
+
parameters: {
|
|
14
|
+
errorType: unknown;
|
|
15
|
+
errorMessage: unknown;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Could not create the Model.
|
|
20
|
+
*
|
|
21
|
+
* Log Safety: SAFE
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateModelPermissionDenied {
|
|
24
|
+
errorCode: "PERMISSION_DENIED";
|
|
25
|
+
errorName: "CreateModelPermissionDenied";
|
|
26
|
+
errorInstanceId: string;
|
|
27
|
+
parameters: {};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Could not create the ModelVersion.
|
|
31
|
+
*
|
|
32
|
+
* Log Safety: SAFE
|
|
33
|
+
*/
|
|
34
|
+
export interface CreateModelVersionPermissionDenied {
|
|
35
|
+
errorCode: "PERMISSION_DENIED";
|
|
36
|
+
errorName: "CreateModelVersionPermissionDenied";
|
|
37
|
+
errorInstanceId: string;
|
|
38
|
+
parameters: {
|
|
39
|
+
modelRid: unknown;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The model api failed validations
|
|
44
|
+
*
|
|
45
|
+
* Log Safety: UNSAFE
|
|
46
|
+
*/
|
|
47
|
+
export interface InvalidModelApi {
|
|
48
|
+
errorCode: "INVALID_ARGUMENT";
|
|
49
|
+
errorName: "InvalidModelApi";
|
|
50
|
+
errorInstanceId: string;
|
|
51
|
+
parameters: {
|
|
52
|
+
errorType: unknown;
|
|
53
|
+
message: unknown;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The given Model could not be found.
|
|
58
|
+
*
|
|
59
|
+
* Log Safety: SAFE
|
|
60
|
+
*/
|
|
61
|
+
export interface ModelNotFound {
|
|
62
|
+
errorCode: "NOT_FOUND";
|
|
63
|
+
errorName: "ModelNotFound";
|
|
64
|
+
errorInstanceId: string;
|
|
65
|
+
parameters: {
|
|
66
|
+
modelRid: unknown;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The given ModelVersion could not be found.
|
|
71
|
+
*
|
|
72
|
+
* Log Safety: SAFE
|
|
73
|
+
*/
|
|
74
|
+
export interface ModelVersionNotFound {
|
|
75
|
+
errorCode: "NOT_FOUND";
|
|
76
|
+
errorName: "ModelVersionNotFound";
|
|
77
|
+
errorInstanceId: string;
|
|
78
|
+
parameters: {
|
|
79
|
+
modelRid: unknown;
|
|
80
|
+
modelVersionRid: unknown;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=_errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_errors.d.ts","sourceRoot":"","sources":["../../src/_errors.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,oCAAoC;IACnD,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,sCAAsC,CAAC;IAClD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,SAAS,EAAE,OAAO,CAAC;QACnB,YAAY,EAAE,OAAO,CAAC;KACvB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,6BAA6B,CAAC;IACzC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,EAAE,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IACjD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,oCAAoC,CAAC;IAChD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,SAAS,EAAE,OAAO,CAAC;QACnB,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,eAAe,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,sBAAsB,CAAC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;QAClB,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;CACH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=_errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_errors.js","names":[],"sources":["_errors.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { BooleanType, CreateModelRequest, CreateModelVersionRequest, DateType, DillModelFiles, DoubleType, FloatType, IntegerType, ListModelVersionsResponse, LongType, Model, ModelApi, ModelApiAnyType, ModelApiArrayType, ModelApiColumn, ModelApiDataType, ModelApiInput, ModelApiMapType, ModelApiOutput, ModelApiParameterType, ModelApiTabularFormat, ModelApiTabularType, ModelFiles, ModelName, ModelRid, ModelVersion, ModelVersionRid, StringType, TimestampType, UnsupportedType, } from "./_components.js";
|
|
2
|
+
export type { CondaSolveFailureForProvidedPackages, CreateModelPermissionDenied, CreateModelVersionPermissionDenied, InvalidModelApi, ModelNotFound, ModelVersionNotFound, } from "./_errors.js";
|
|
3
|
+
export * as Models from "./public/Model.js";
|
|
4
|
+
export * as ModelVersions from "./public/ModelVersion.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,WAAW,EACX,kBAAkB,EAClB,yBAAyB,EACzB,QAAQ,EACR,cAAc,EACd,UAAU,EACV,SAAS,EACT,WAAW,EACX,yBAAyB,EACzB,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,UAAU,EACV,aAAa,EACb,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,oCAAoC,EACpC,2BAA2B,EAC3B,kCAAkC,EAClC,eAAe,EACf,aAAa,EACb,oBAAoB,GACrB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export * as Models from "./public/Model.js";
|
|
17
|
+
export * as ModelVersions from "./public/ModelVersion.js";
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["Models","ModelVersions"],"sources":["index.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport * as Models from \"./public/Model.js\";\nexport * as ModelVersions from \"./public/ModelVersion.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,MAAM,MAAM,mBAAmB;AAC3C,OAAO,KAAKC,aAAa,MAAM,0BAA0B","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type * as _Core from "@osdk/foundry.core";
|
|
2
|
+
import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
|
|
3
|
+
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
|
|
4
|
+
import type * as _Models from "../_components.js";
|
|
5
|
+
/**
|
|
6
|
+
* Creates a new Model with no versions.
|
|
7
|
+
*
|
|
8
|
+
* @alpha
|
|
9
|
+
*
|
|
10
|
+
* Required Scopes: [api:models-write]
|
|
11
|
+
* URL: /v2/models
|
|
12
|
+
*/
|
|
13
|
+
export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
14
|
+
$body: _Models.CreateModelRequest,
|
|
15
|
+
$queryParams?: {
|
|
16
|
+
preview?: _Core.PreviewMode | undefined;
|
|
17
|
+
}
|
|
18
|
+
]): Promise<_Models.Model>;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves a Model by its Resource Identifier (RID).
|
|
21
|
+
*
|
|
22
|
+
* @alpha
|
|
23
|
+
*
|
|
24
|
+
* Required Scopes: [api:models-read]
|
|
25
|
+
* URL: /v2/models/{modelRid}
|
|
26
|
+
*/
|
|
27
|
+
export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
28
|
+
modelRid: _Models.ModelRid,
|
|
29
|
+
$queryParams?: {
|
|
30
|
+
preview?: _Core.PreviewMode | undefined;
|
|
31
|
+
}
|
|
32
|
+
]): Promise<_Models.Model>;
|
|
33
|
+
//# sourceMappingURL=Model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Model.d.ts","sourceRoot":"","sources":["../../../src/public/Model.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAWlD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,KAAK,EAAE,OAAO,CAAC,kBAAkB;IACjC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAExB;AASD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,OAAO,CAAC,QAAQ;IAE1B,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAExB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
|
+
//
|
|
18
|
+
const _create = [1, "/v2/models", 3];
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new Model with no versions.
|
|
21
|
+
*
|
|
22
|
+
* @alpha
|
|
23
|
+
*
|
|
24
|
+
* Required Scopes: [api:models-write]
|
|
25
|
+
* URL: /v2/models
|
|
26
|
+
*/
|
|
27
|
+
export function create($ctx, ...args) {
|
|
28
|
+
return $foundryPlatformFetch($ctx, _create, ...args);
|
|
29
|
+
}
|
|
30
|
+
const _get = [0, "/v2/models/{0}", 2];
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves a Model by its Resource Identifier (RID).
|
|
33
|
+
*
|
|
34
|
+
* @alpha
|
|
35
|
+
*
|
|
36
|
+
* Required Scopes: [api:models-read]
|
|
37
|
+
* URL: /v2/models/{modelRid}
|
|
38
|
+
*/
|
|
39
|
+
export function get($ctx, ...args) {
|
|
40
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=Model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Model.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_get","get"],"sources":["Model.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _create = [1, \"/v2/models\", 3];\n/**\n * Creates a new Model with no versions.\n *\n * @alpha\n *\n * Required Scopes: [api:models-write]\n * URL: /v2/models\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v2/models/{0}\", 2];\n/**\n * Retrieves a Model by its Resource Identifier (RID).\n *\n * @alpha\n *\n * Required Scopes: [api:models-read]\n * URL: /v2/models/{modelRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,OAAO,EAAE,GAAGG,IAAI,CAAC;AACxD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC,CAAC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD","ignoreList":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type * as _Core from "@osdk/foundry.core";
|
|
2
|
+
import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
|
|
3
|
+
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
|
|
4
|
+
import type * as _Models from "../_components.js";
|
|
5
|
+
/**
|
|
6
|
+
* Creates a new Model Version on an existing model.
|
|
7
|
+
*
|
|
8
|
+
* @alpha
|
|
9
|
+
*
|
|
10
|
+
* Required Scopes: [api:models-write]
|
|
11
|
+
* URL: /v2/models/{modelRid}/versions
|
|
12
|
+
*/
|
|
13
|
+
export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
14
|
+
modelRid: _Models.ModelRid,
|
|
15
|
+
$body: _Models.CreateModelVersionRequest,
|
|
16
|
+
$queryParams?: {
|
|
17
|
+
preview?: _Core.PreviewMode | undefined;
|
|
18
|
+
}
|
|
19
|
+
]): Promise<_Models.ModelVersion>;
|
|
20
|
+
/**
|
|
21
|
+
* Lists all Model Versions for a given Model.
|
|
22
|
+
*
|
|
23
|
+
* @alpha
|
|
24
|
+
*
|
|
25
|
+
* Required Scopes: [api:models-read]
|
|
26
|
+
* URL: /v2/models/{modelRid}/versions
|
|
27
|
+
*/
|
|
28
|
+
export declare function list($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
29
|
+
modelRid: _Models.ModelRid,
|
|
30
|
+
$queryParams?: {
|
|
31
|
+
pageSize?: _Core.PageSize | undefined;
|
|
32
|
+
pageToken?: _Core.PageToken | undefined;
|
|
33
|
+
preview?: _Core.PreviewMode | undefined;
|
|
34
|
+
}
|
|
35
|
+
]): Promise<_Models.ListModelVersionsResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves a Model Version by its Resource Identifier (RID).
|
|
38
|
+
*
|
|
39
|
+
* @alpha
|
|
40
|
+
*
|
|
41
|
+
* Required Scopes: [api:models-read]
|
|
42
|
+
* URL: /v2/models/{modelRid}/versions/{modelVersionRid}
|
|
43
|
+
*/
|
|
44
|
+
export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
45
|
+
modelRid: _Models.ModelRid,
|
|
46
|
+
modelVersionRid: _Models.ModelVersionRid,
|
|
47
|
+
$queryParams?: {
|
|
48
|
+
preview?: _Core.PreviewMode | undefined;
|
|
49
|
+
}
|
|
50
|
+
]): Promise<_Models.ModelVersion>;
|
|
51
|
+
//# sourceMappingURL=ModelVersion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModelVersion.d.ts","sourceRoot":"","sources":["../../../src/public/ModelVersion.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAYlD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,OAAO,CAAC,QAAQ;IAC1B,KAAK,EAAE,OAAO,CAAC,yBAAyB;IACxC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAE/B;AAaD;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,OAAO,CAAC,QAAQ;IAE1B,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;QACxC,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAE5C;AAUD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,OAAO,CAAC,QAAQ;IAC1B,eAAe,EAAE,OAAO,CAAC,eAAe;IAExC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAE/B"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
|
+
//
|
|
18
|
+
const _create = [1, "/v2/models/{0}/versions", 3];
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new Model Version on an existing model.
|
|
21
|
+
*
|
|
22
|
+
* @alpha
|
|
23
|
+
*
|
|
24
|
+
* Required Scopes: [api:models-write]
|
|
25
|
+
* URL: /v2/models/{modelRid}/versions
|
|
26
|
+
*/
|
|
27
|
+
export function create($ctx, ...args) {
|
|
28
|
+
return $foundryPlatformFetch($ctx, _create, ...args);
|
|
29
|
+
}
|
|
30
|
+
const _list = [0, "/v2/models/{0}/versions", 2];
|
|
31
|
+
/**
|
|
32
|
+
* Lists all Model Versions for a given Model.
|
|
33
|
+
*
|
|
34
|
+
* @alpha
|
|
35
|
+
*
|
|
36
|
+
* Required Scopes: [api:models-read]
|
|
37
|
+
* URL: /v2/models/{modelRid}/versions
|
|
38
|
+
*/
|
|
39
|
+
export function list($ctx, ...args) {
|
|
40
|
+
return $foundryPlatformFetch($ctx, _list, ...args);
|
|
41
|
+
}
|
|
42
|
+
const _get = [0, "/v2/models/{0}/versions/{1}", 2];
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves a Model Version by its Resource Identifier (RID).
|
|
45
|
+
*
|
|
46
|
+
* @alpha
|
|
47
|
+
*
|
|
48
|
+
* Required Scopes: [api:models-read]
|
|
49
|
+
* URL: /v2/models/{modelRid}/versions/{modelVersionRid}
|
|
50
|
+
*/
|
|
51
|
+
export function get($ctx, ...args) {
|
|
52
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=ModelVersion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModelVersion.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_list","list","_get","get"],"sources":["ModelVersion.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _create = [1, \"/v2/models/{0}/versions\", 3];\n/**\n * Creates a new Model Version on an existing model.\n *\n * @alpha\n *\n * Required Scopes: [api:models-write]\n * URL: /v2/models/{modelRid}/versions\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _list = [0, \"/v2/models/{0}/versions\", 2];\n/**\n * Lists all Model Versions for a given Model.\n *\n * @alpha\n *\n * Required Scopes: [api:models-read]\n * URL: /v2/models/{modelRid}/versions\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v2/models/{0}/versions/{1}\", 2];\n/**\n * Retrieves a Model Version by its Resource Identifier (RID).\n *\n * @alpha\n *\n * Required Scopes: [api:models-read]\n * URL: /v2/models/{modelRid}/versions/{modelVersionRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,yBAAyB,EAAE,CAAC,CAAC;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,OAAO,EAAE,GAAGG,IAAI,CAAC;AACxD;AACA,MAAMC,KAAK,GAAG,CAAC,CAAC,EAAE,yBAAyB,EAAE,CAAC,CAAC;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,KAAK,EAAE,GAAGD,IAAI,CAAC;AACtD;AACA,MAAMG,IAAI,GAAG,CAAC,CAAC,EAAE,6BAA6B,EAAE,CAAC,CAAC;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,IAAI,EAAE,GAAGH,IAAI,CAAC;AACrD","ignoreList":[]}
|