randmarcomps 1.489.0 → 1.491.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/dist/randmarcomps.js +182 -170
- package/dist/randmarcomps.umd.cjs +69 -69
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -45830,6 +45830,8 @@ class GenerateVideosOperation {
|
|
|
45830
45830
|
}
|
|
45831
45831
|
class ListTuningJobsResponse {
|
|
45832
45832
|
}
|
|
45833
|
+
class CancelTuningJobResponse {
|
|
45834
|
+
}
|
|
45833
45835
|
class DeleteCachedContentResponse {
|
|
45834
45836
|
}
|
|
45835
45837
|
class ListCachedContentsResponse {
|
|
@@ -47112,11 +47114,11 @@ class Pager {
|
|
|
47112
47114
|
*/
|
|
47113
47115
|
class Batches extends BaseModule {
|
|
47114
47116
|
constructor(t) {
|
|
47115
|
-
super(), this.apiClient = t, this.create = async (n) => (this.apiClient.isVertexAI() && (n.config = this.formatDestination(n.src, n.config)), this.createInternal(n)), this.createEmbeddings = async (n) => {
|
|
47117
|
+
super(), this.apiClient = t, this.list = async (n = {}) => new Pager(PagedItem.PAGED_ITEM_BATCH_JOBS, (o) => this.listInternal(o), await this.listInternal(n), n), this.create = async (n) => (this.apiClient.isVertexAI() && (n.config = this.formatDestination(n.src, n.config)), this.createInternal(n)), this.createEmbeddings = async (n) => {
|
|
47116
47118
|
if (console.warn("batches.createEmbeddings() is experimental and may change without notice."), this.apiClient.isVertexAI())
|
|
47117
47119
|
throw new Error("Vertex AI does not support batches.createEmbeddings.");
|
|
47118
47120
|
return this.createEmbeddingsInternal(n);
|
|
47119
|
-
}
|
|
47121
|
+
};
|
|
47120
47122
|
}
|
|
47121
47123
|
// Helper function to handle inlined generate content requests
|
|
47122
47124
|
createInlinedGenerateContentRequest(t) {
|
|
@@ -50951,7 +50953,138 @@ function videoToVertex(e) {
|
|
|
50951
50953
|
* Copyright 2025 Google LLC
|
|
50952
50954
|
* SPDX-License-Identifier: Apache-2.0
|
|
50953
50955
|
*/
|
|
50954
|
-
|
|
50956
|
+
function createFileSearchStoreConfigToMldev(e, t) {
|
|
50957
|
+
const n = {}, o = getValueByPath(e, ["displayName"]);
|
|
50958
|
+
return t !== void 0 && o != null && setValueByPath(t, ["displayName"], o), n;
|
|
50959
|
+
}
|
|
50960
|
+
function createFileSearchStoreParametersToMldev(e) {
|
|
50961
|
+
const t = {}, n = getValueByPath(e, ["config"]);
|
|
50962
|
+
return n != null && createFileSearchStoreConfigToMldev(n, t), t;
|
|
50963
|
+
}
|
|
50964
|
+
function deleteFileSearchStoreConfigToMldev(e, t) {
|
|
50965
|
+
const n = {}, o = getValueByPath(e, ["force"]);
|
|
50966
|
+
return t !== void 0 && o != null && setValueByPath(t, ["_query", "force"], o), n;
|
|
50967
|
+
}
|
|
50968
|
+
function deleteFileSearchStoreParametersToMldev(e) {
|
|
50969
|
+
const t = {}, n = getValueByPath(e, ["name"]);
|
|
50970
|
+
n != null && setValueByPath(t, ["_url", "name"], n);
|
|
50971
|
+
const o = getValueByPath(e, ["config"]);
|
|
50972
|
+
return o != null && deleteFileSearchStoreConfigToMldev(o, t), t;
|
|
50973
|
+
}
|
|
50974
|
+
function getFileSearchStoreParametersToMldev(e) {
|
|
50975
|
+
const t = {}, n = getValueByPath(e, ["name"]);
|
|
50976
|
+
return n != null && setValueByPath(t, ["_url", "name"], n), t;
|
|
50977
|
+
}
|
|
50978
|
+
function importFileConfigToMldev(e, t) {
|
|
50979
|
+
const n = {}, o = getValueByPath(e, [
|
|
50980
|
+
"customMetadata"
|
|
50981
|
+
]);
|
|
50982
|
+
if (t !== void 0 && o != null) {
|
|
50983
|
+
let d = o;
|
|
50984
|
+
Array.isArray(d) && (d = d.map((f) => f)), setValueByPath(t, ["customMetadata"], d);
|
|
50985
|
+
}
|
|
50986
|
+
const l = getValueByPath(e, [
|
|
50987
|
+
"chunkingConfig"
|
|
50988
|
+
]);
|
|
50989
|
+
return t !== void 0 && l != null && setValueByPath(t, ["chunkingConfig"], l), n;
|
|
50990
|
+
}
|
|
50991
|
+
function importFileOperationFromMldev(e) {
|
|
50992
|
+
const t = {}, n = getValueByPath(e, ["name"]);
|
|
50993
|
+
n != null && setValueByPath(t, ["name"], n);
|
|
50994
|
+
const o = getValueByPath(e, ["metadata"]);
|
|
50995
|
+
o != null && setValueByPath(t, ["metadata"], o);
|
|
50996
|
+
const l = getValueByPath(e, ["done"]);
|
|
50997
|
+
l != null && setValueByPath(t, ["done"], l);
|
|
50998
|
+
const d = getValueByPath(e, ["error"]);
|
|
50999
|
+
d != null && setValueByPath(t, ["error"], d);
|
|
51000
|
+
const f = getValueByPath(e, ["response"]);
|
|
51001
|
+
return f != null && setValueByPath(t, ["response"], importFileResponseFromMldev(f)), t;
|
|
51002
|
+
}
|
|
51003
|
+
function importFileParametersToMldev(e) {
|
|
51004
|
+
const t = {}, n = getValueByPath(e, [
|
|
51005
|
+
"fileSearchStoreName"
|
|
51006
|
+
]);
|
|
51007
|
+
n != null && setValueByPath(t, ["_url", "file_search_store_name"], n);
|
|
51008
|
+
const o = getValueByPath(e, ["fileName"]);
|
|
51009
|
+
o != null && setValueByPath(t, ["fileName"], o);
|
|
51010
|
+
const l = getValueByPath(e, ["config"]);
|
|
51011
|
+
return l != null && importFileConfigToMldev(l, t), t;
|
|
51012
|
+
}
|
|
51013
|
+
function importFileResponseFromMldev(e) {
|
|
51014
|
+
const t = {}, n = getValueByPath(e, [
|
|
51015
|
+
"sdkHttpResponse"
|
|
51016
|
+
]);
|
|
51017
|
+
n != null && setValueByPath(t, ["sdkHttpResponse"], n);
|
|
51018
|
+
const o = getValueByPath(e, ["parent"]);
|
|
51019
|
+
o != null && setValueByPath(t, ["parent"], o);
|
|
51020
|
+
const l = getValueByPath(e, ["documentName"]);
|
|
51021
|
+
return l != null && setValueByPath(t, ["documentName"], l), t;
|
|
51022
|
+
}
|
|
51023
|
+
function listFileSearchStoresConfigToMldev(e, t) {
|
|
51024
|
+
const n = {}, o = getValueByPath(e, ["pageSize"]);
|
|
51025
|
+
t !== void 0 && o != null && setValueByPath(t, ["_query", "pageSize"], o);
|
|
51026
|
+
const l = getValueByPath(e, ["pageToken"]);
|
|
51027
|
+
return t !== void 0 && l != null && setValueByPath(t, ["_query", "pageToken"], l), n;
|
|
51028
|
+
}
|
|
51029
|
+
function listFileSearchStoresParametersToMldev(e) {
|
|
51030
|
+
const t = {}, n = getValueByPath(e, ["config"]);
|
|
51031
|
+
return n != null && listFileSearchStoresConfigToMldev(n, t), t;
|
|
51032
|
+
}
|
|
51033
|
+
function listFileSearchStoresResponseFromMldev(e) {
|
|
51034
|
+
const t = {}, n = getValueByPath(e, [
|
|
51035
|
+
"sdkHttpResponse"
|
|
51036
|
+
]);
|
|
51037
|
+
n != null && setValueByPath(t, ["sdkHttpResponse"], n);
|
|
51038
|
+
const o = getValueByPath(e, [
|
|
51039
|
+
"nextPageToken"
|
|
51040
|
+
]);
|
|
51041
|
+
o != null && setValueByPath(t, ["nextPageToken"], o);
|
|
51042
|
+
const l = getValueByPath(e, [
|
|
51043
|
+
"fileSearchStores"
|
|
51044
|
+
]);
|
|
51045
|
+
if (l != null) {
|
|
51046
|
+
let d = l;
|
|
51047
|
+
Array.isArray(d) && (d = d.map((f) => f)), setValueByPath(t, ["fileSearchStores"], d);
|
|
51048
|
+
}
|
|
51049
|
+
return t;
|
|
51050
|
+
}
|
|
51051
|
+
function uploadToFileSearchStoreConfigToMldev(e, t) {
|
|
51052
|
+
const n = {}, o = getValueByPath(e, ["mimeType"]);
|
|
51053
|
+
t !== void 0 && o != null && setValueByPath(t, ["mimeType"], o);
|
|
51054
|
+
const l = getValueByPath(e, ["displayName"]);
|
|
51055
|
+
t !== void 0 && l != null && setValueByPath(t, ["displayName"], l);
|
|
51056
|
+
const d = getValueByPath(e, [
|
|
51057
|
+
"customMetadata"
|
|
51058
|
+
]);
|
|
51059
|
+
if (t !== void 0 && d != null) {
|
|
51060
|
+
let g = d;
|
|
51061
|
+
Array.isArray(g) && (g = g.map((b) => b)), setValueByPath(t, ["customMetadata"], g);
|
|
51062
|
+
}
|
|
51063
|
+
const f = getValueByPath(e, [
|
|
51064
|
+
"chunkingConfig"
|
|
51065
|
+
]);
|
|
51066
|
+
return t !== void 0 && f != null && setValueByPath(t, ["chunkingConfig"], f), n;
|
|
51067
|
+
}
|
|
51068
|
+
function uploadToFileSearchStoreParametersToMldev(e) {
|
|
51069
|
+
const t = {}, n = getValueByPath(e, [
|
|
51070
|
+
"fileSearchStoreName"
|
|
51071
|
+
]);
|
|
51072
|
+
n != null && setValueByPath(t, ["_url", "file_search_store_name"], n);
|
|
51073
|
+
const o = getValueByPath(e, ["config"]);
|
|
51074
|
+
return o != null && uploadToFileSearchStoreConfigToMldev(o, t), t;
|
|
51075
|
+
}
|
|
51076
|
+
function uploadToFileSearchStoreResumableResponseFromMldev(e) {
|
|
51077
|
+
const t = {}, n = getValueByPath(e, [
|
|
51078
|
+
"sdkHttpResponse"
|
|
51079
|
+
]);
|
|
51080
|
+
return n != null && setValueByPath(t, ["sdkHttpResponse"], n), t;
|
|
51081
|
+
}
|
|
51082
|
+
/**
|
|
51083
|
+
* @license
|
|
51084
|
+
* Copyright 2025 Google LLC
|
|
51085
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
51086
|
+
*/
|
|
51087
|
+
const CONTENT_TYPE_HEADER = "Content-Type", SERVER_TIMEOUT_HEADER = "X-Server-Timeout", USER_AGENT_HEADER = "User-Agent", GOOGLE_API_CLIENT_HEADER = "x-goog-api-client", SDK_VERSION = "1.31.0", LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`, VERTEX_AI_API_DEFAULT_VERSION = "v1beta1", GOOGLE_AI_API_DEFAULT_VERSION = "v1beta", responseLineRE = /^\s*data: (.*)(?:\n\n|\r\r|\r\n\r\n)/;
|
|
50955
51088
|
class ApiClient {
|
|
50956
51089
|
constructor(t) {
|
|
50957
51090
|
var n, o;
|
|
@@ -51209,7 +51342,7 @@ class ApiClient {
|
|
|
51209
51342
|
if (b === void 0 || b === "")
|
|
51210
51343
|
throw new Error("Can not determine mimeType. Please provide mimeType in the config.");
|
|
51211
51344
|
const S = `upload/v1beta/${t}:uploadToFileSearchStore`, _ = this.getFileName(n), C = {};
|
|
51212
|
-
o != null &&
|
|
51345
|
+
o != null && uploadToFileSearchStoreConfigToMldev(o, C);
|
|
51213
51346
|
const E = await this.fetchUploadUrl(S, g, b, _, C, o == null ? void 0 : o.httpOptions);
|
|
51214
51347
|
return d.uploadToFileSearchStore(n, E, this);
|
|
51215
51348
|
}
|
|
@@ -53320,137 +53453,6 @@ class Tokens extends BaseModule {
|
|
|
53320
53453
|
}
|
|
53321
53454
|
}
|
|
53322
53455
|
}
|
|
53323
|
-
/**
|
|
53324
|
-
* @license
|
|
53325
|
-
* Copyright 2025 Google LLC
|
|
53326
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
53327
|
-
*/
|
|
53328
|
-
function createFileSearchStoreConfigToMldev(e, t) {
|
|
53329
|
-
const n = {}, o = getValueByPath(e, ["displayName"]);
|
|
53330
|
-
return t !== void 0 && o != null && setValueByPath(t, ["displayName"], o), n;
|
|
53331
|
-
}
|
|
53332
|
-
function createFileSearchStoreParametersToMldev(e) {
|
|
53333
|
-
const t = {}, n = getValueByPath(e, ["config"]);
|
|
53334
|
-
return n != null && createFileSearchStoreConfigToMldev(n, t), t;
|
|
53335
|
-
}
|
|
53336
|
-
function deleteFileSearchStoreConfigToMldev(e, t) {
|
|
53337
|
-
const n = {}, o = getValueByPath(e, ["force"]);
|
|
53338
|
-
return t !== void 0 && o != null && setValueByPath(t, ["_query", "force"], o), n;
|
|
53339
|
-
}
|
|
53340
|
-
function deleteFileSearchStoreParametersToMldev(e) {
|
|
53341
|
-
const t = {}, n = getValueByPath(e, ["name"]);
|
|
53342
|
-
n != null && setValueByPath(t, ["_url", "name"], n);
|
|
53343
|
-
const o = getValueByPath(e, ["config"]);
|
|
53344
|
-
return o != null && deleteFileSearchStoreConfigToMldev(o, t), t;
|
|
53345
|
-
}
|
|
53346
|
-
function getFileSearchStoreParametersToMldev(e) {
|
|
53347
|
-
const t = {}, n = getValueByPath(e, ["name"]);
|
|
53348
|
-
return n != null && setValueByPath(t, ["_url", "name"], n), t;
|
|
53349
|
-
}
|
|
53350
|
-
function importFileConfigToMldev(e, t) {
|
|
53351
|
-
const n = {}, o = getValueByPath(e, [
|
|
53352
|
-
"customMetadata"
|
|
53353
|
-
]);
|
|
53354
|
-
if (t !== void 0 && o != null) {
|
|
53355
|
-
let d = o;
|
|
53356
|
-
Array.isArray(d) && (d = d.map((f) => f)), setValueByPath(t, ["customMetadata"], d);
|
|
53357
|
-
}
|
|
53358
|
-
const l = getValueByPath(e, [
|
|
53359
|
-
"chunkingConfig"
|
|
53360
|
-
]);
|
|
53361
|
-
return t !== void 0 && l != null && setValueByPath(t, ["chunkingConfig"], l), n;
|
|
53362
|
-
}
|
|
53363
|
-
function importFileOperationFromMldev(e) {
|
|
53364
|
-
const t = {}, n = getValueByPath(e, ["name"]);
|
|
53365
|
-
n != null && setValueByPath(t, ["name"], n);
|
|
53366
|
-
const o = getValueByPath(e, ["metadata"]);
|
|
53367
|
-
o != null && setValueByPath(t, ["metadata"], o);
|
|
53368
|
-
const l = getValueByPath(e, ["done"]);
|
|
53369
|
-
l != null && setValueByPath(t, ["done"], l);
|
|
53370
|
-
const d = getValueByPath(e, ["error"]);
|
|
53371
|
-
d != null && setValueByPath(t, ["error"], d);
|
|
53372
|
-
const f = getValueByPath(e, ["response"]);
|
|
53373
|
-
return f != null && setValueByPath(t, ["response"], importFileResponseFromMldev(f)), t;
|
|
53374
|
-
}
|
|
53375
|
-
function importFileParametersToMldev(e) {
|
|
53376
|
-
const t = {}, n = getValueByPath(e, [
|
|
53377
|
-
"fileSearchStoreName"
|
|
53378
|
-
]);
|
|
53379
|
-
n != null && setValueByPath(t, ["_url", "file_search_store_name"], n);
|
|
53380
|
-
const o = getValueByPath(e, ["fileName"]);
|
|
53381
|
-
o != null && setValueByPath(t, ["fileName"], o);
|
|
53382
|
-
const l = getValueByPath(e, ["config"]);
|
|
53383
|
-
return l != null && importFileConfigToMldev(l, t), t;
|
|
53384
|
-
}
|
|
53385
|
-
function importFileResponseFromMldev(e) {
|
|
53386
|
-
const t = {}, n = getValueByPath(e, [
|
|
53387
|
-
"sdkHttpResponse"
|
|
53388
|
-
]);
|
|
53389
|
-
n != null && setValueByPath(t, ["sdkHttpResponse"], n);
|
|
53390
|
-
const o = getValueByPath(e, ["parent"]);
|
|
53391
|
-
o != null && setValueByPath(t, ["parent"], o);
|
|
53392
|
-
const l = getValueByPath(e, ["documentName"]);
|
|
53393
|
-
return l != null && setValueByPath(t, ["documentName"], l), t;
|
|
53394
|
-
}
|
|
53395
|
-
function listFileSearchStoresConfigToMldev(e, t) {
|
|
53396
|
-
const n = {}, o = getValueByPath(e, ["pageSize"]);
|
|
53397
|
-
t !== void 0 && o != null && setValueByPath(t, ["_query", "pageSize"], o);
|
|
53398
|
-
const l = getValueByPath(e, ["pageToken"]);
|
|
53399
|
-
return t !== void 0 && l != null && setValueByPath(t, ["_query", "pageToken"], l), n;
|
|
53400
|
-
}
|
|
53401
|
-
function listFileSearchStoresParametersToMldev(e) {
|
|
53402
|
-
const t = {}, n = getValueByPath(e, ["config"]);
|
|
53403
|
-
return n != null && listFileSearchStoresConfigToMldev(n, t), t;
|
|
53404
|
-
}
|
|
53405
|
-
function listFileSearchStoresResponseFromMldev(e) {
|
|
53406
|
-
const t = {}, n = getValueByPath(e, [
|
|
53407
|
-
"sdkHttpResponse"
|
|
53408
|
-
]);
|
|
53409
|
-
n != null && setValueByPath(t, ["sdkHttpResponse"], n);
|
|
53410
|
-
const o = getValueByPath(e, [
|
|
53411
|
-
"nextPageToken"
|
|
53412
|
-
]);
|
|
53413
|
-
o != null && setValueByPath(t, ["nextPageToken"], o);
|
|
53414
|
-
const l = getValueByPath(e, [
|
|
53415
|
-
"fileSearchStores"
|
|
53416
|
-
]);
|
|
53417
|
-
if (l != null) {
|
|
53418
|
-
let d = l;
|
|
53419
|
-
Array.isArray(d) && (d = d.map((f) => f)), setValueByPath(t, ["fileSearchStores"], d);
|
|
53420
|
-
}
|
|
53421
|
-
return t;
|
|
53422
|
-
}
|
|
53423
|
-
function uploadToFileSearchStoreConfigToMldev(e, t) {
|
|
53424
|
-
const n = {}, o = getValueByPath(e, ["mimeType"]);
|
|
53425
|
-
t !== void 0 && o != null && setValueByPath(t, ["mimeType"], o);
|
|
53426
|
-
const l = getValueByPath(e, ["displayName"]);
|
|
53427
|
-
t !== void 0 && l != null && setValueByPath(t, ["displayName"], l);
|
|
53428
|
-
const d = getValueByPath(e, [
|
|
53429
|
-
"customMetadata"
|
|
53430
|
-
]);
|
|
53431
|
-
if (t !== void 0 && d != null) {
|
|
53432
|
-
let g = d;
|
|
53433
|
-
Array.isArray(g) && (g = g.map((b) => b)), setValueByPath(t, ["customMetadata"], g);
|
|
53434
|
-
}
|
|
53435
|
-
const f = getValueByPath(e, [
|
|
53436
|
-
"chunkingConfig"
|
|
53437
|
-
]);
|
|
53438
|
-
return t !== void 0 && f != null && setValueByPath(t, ["chunkingConfig"], f), n;
|
|
53439
|
-
}
|
|
53440
|
-
function uploadToFileSearchStoreParametersToMldev(e) {
|
|
53441
|
-
const t = {}, n = getValueByPath(e, [
|
|
53442
|
-
"fileSearchStoreName"
|
|
53443
|
-
]);
|
|
53444
|
-
n != null && setValueByPath(t, ["_url", "file_search_store_name"], n);
|
|
53445
|
-
const o = getValueByPath(e, ["config"]);
|
|
53446
|
-
return o != null && uploadToFileSearchStoreConfigToMldev(o, t), t;
|
|
53447
|
-
}
|
|
53448
|
-
function uploadToFileSearchStoreResumableResponseFromMldev(e) {
|
|
53449
|
-
const t = {}, n = getValueByPath(e, [
|
|
53450
|
-
"sdkHttpResponse"
|
|
53451
|
-
]);
|
|
53452
|
-
return n != null && setValueByPath(t, ["sdkHttpResponse"], n), t;
|
|
53453
|
-
}
|
|
53454
53456
|
/**
|
|
53455
53457
|
* @license
|
|
53456
53458
|
* Copyright 2025 Google LLC
|
|
@@ -53505,10 +53507,7 @@ function listDocumentsResponseFromMldev(e) {
|
|
|
53505
53507
|
*/
|
|
53506
53508
|
class Documents extends BaseModule {
|
|
53507
53509
|
constructor(t) {
|
|
53508
|
-
super(), this.apiClient = t, this.list = async (n) => new Pager(PagedItem.PAGED_ITEM_DOCUMENTS, (o) => this.listInternal({
|
|
53509
|
-
parent: n.parent,
|
|
53510
|
-
config: o.config
|
|
53511
|
-
}), await this.listInternal(n), n);
|
|
53510
|
+
super(), this.apiClient = t, this.list = async (n) => new Pager(PagedItem.PAGED_ITEM_DOCUMENTS, (o) => this.listInternal({ parent: n.parent, config: o.config }), await this.listInternal(n), n);
|
|
53512
53511
|
}
|
|
53513
53512
|
/**
|
|
53514
53513
|
* Gets a Document.
|
|
@@ -53555,12 +53554,6 @@ class Documents extends BaseModule {
|
|
|
53555
53554
|
});
|
|
53556
53555
|
}
|
|
53557
53556
|
}
|
|
53558
|
-
/**
|
|
53559
|
-
* Lists all Documents in a FileSearchStore.
|
|
53560
|
-
*
|
|
53561
|
-
* @param params - The parameters for listing documents.
|
|
53562
|
-
* @return ListDocumentsResponse.
|
|
53563
|
-
*/
|
|
53564
53557
|
async listInternal(t) {
|
|
53565
53558
|
var n, o;
|
|
53566
53559
|
let l, d = "", f = {};
|
|
@@ -53700,12 +53693,6 @@ class FileSearchStores extends BaseModule {
|
|
|
53700
53693
|
});
|
|
53701
53694
|
}
|
|
53702
53695
|
}
|
|
53703
|
-
/**
|
|
53704
|
-
* Lists all FileSearchStore owned by the user.
|
|
53705
|
-
*
|
|
53706
|
-
* @param params - The parameters for listing file search stores.
|
|
53707
|
-
* @return ListFileSearchStoresResponse.
|
|
53708
|
-
*/
|
|
53709
53696
|
async listInternal(t) {
|
|
53710
53697
|
var n, o;
|
|
53711
53698
|
let l, d = "", f = {};
|
|
@@ -53788,6 +53775,18 @@ function cancelTuningJobParametersToVertex(e, t) {
|
|
|
53788
53775
|
const n = {}, o = getValueByPath(e, ["name"]);
|
|
53789
53776
|
return o != null && setValueByPath(n, ["_url", "name"], o), n;
|
|
53790
53777
|
}
|
|
53778
|
+
function cancelTuningJobResponseFromMldev(e, t) {
|
|
53779
|
+
const n = {}, o = getValueByPath(e, [
|
|
53780
|
+
"sdkHttpResponse"
|
|
53781
|
+
]);
|
|
53782
|
+
return o != null && setValueByPath(n, ["sdkHttpResponse"], o), n;
|
|
53783
|
+
}
|
|
53784
|
+
function cancelTuningJobResponseFromVertex(e, t) {
|
|
53785
|
+
const n = {}, o = getValueByPath(e, [
|
|
53786
|
+
"sdkHttpResponse"
|
|
53787
|
+
]);
|
|
53788
|
+
return o != null && setValueByPath(n, ["sdkHttpResponse"], o), n;
|
|
53789
|
+
}
|
|
53791
53790
|
function createTuningJobConfigToMldev(e, t, n) {
|
|
53792
53791
|
const o = {};
|
|
53793
53792
|
if (getValueByPath(e, ["validationDataset"]) !== void 0)
|
|
@@ -54178,7 +54177,7 @@ function tuningValidationDatasetToVertex(e, t) {
|
|
|
54178
54177
|
*/
|
|
54179
54178
|
class Tunings extends BaseModule {
|
|
54180
54179
|
constructor(t) {
|
|
54181
|
-
super(), this.apiClient = t, this.
|
|
54180
|
+
super(), this.apiClient = t, this.list = async (n = {}) => new Pager(PagedItem.PAGED_ITEM_TUNING_JOBS, (o) => this.listInternal(o), await this.listInternal(n), n), this.get = async (n) => await this.getInternal(n), this.tune = async (n) => {
|
|
54182
54181
|
var o;
|
|
54183
54182
|
if (this.apiClient.isVertexAI())
|
|
54184
54183
|
if (n.baseModel.startsWith("projects/")) {
|
|
@@ -54291,26 +54290,42 @@ class Tunings extends BaseModule {
|
|
|
54291
54290
|
*/
|
|
54292
54291
|
async cancel(t) {
|
|
54293
54292
|
var n, o, l, d;
|
|
54294
|
-
let f = "",
|
|
54293
|
+
let f, g = "", b = {};
|
|
54295
54294
|
if (this.apiClient.isVertexAI()) {
|
|
54296
|
-
const
|
|
54297
|
-
|
|
54298
|
-
path:
|
|
54299
|
-
queryParams:
|
|
54300
|
-
body: JSON.stringify(
|
|
54295
|
+
const S = cancelTuningJobParametersToVertex(t);
|
|
54296
|
+
return g = formatMap("{name}:cancel", S._url), b = S._query, delete S._url, delete S._query, f = this.apiClient.request({
|
|
54297
|
+
path: g,
|
|
54298
|
+
queryParams: b,
|
|
54299
|
+
body: JSON.stringify(S),
|
|
54301
54300
|
httpMethod: "POST",
|
|
54302
54301
|
httpOptions: (n = t.config) === null || n === void 0 ? void 0 : n.httpOptions,
|
|
54303
54302
|
abortSignal: (o = t.config) === null || o === void 0 ? void 0 : o.abortSignal
|
|
54303
|
+
}).then((_) => _.json().then((C) => {
|
|
54304
|
+
const E = C;
|
|
54305
|
+
return E.sdkHttpResponse = {
|
|
54306
|
+
headers: _.headers
|
|
54307
|
+
}, E;
|
|
54308
|
+
})), f.then((_) => {
|
|
54309
|
+
const C = cancelTuningJobResponseFromVertex(_), E = new CancelTuningJobResponse();
|
|
54310
|
+
return Object.assign(E, C), E;
|
|
54304
54311
|
});
|
|
54305
54312
|
} else {
|
|
54306
|
-
const
|
|
54307
|
-
|
|
54308
|
-
path:
|
|
54309
|
-
queryParams:
|
|
54310
|
-
body: JSON.stringify(
|
|
54313
|
+
const S = cancelTuningJobParametersToMldev(t);
|
|
54314
|
+
return g = formatMap("{name}:cancel", S._url), b = S._query, delete S._url, delete S._query, f = this.apiClient.request({
|
|
54315
|
+
path: g,
|
|
54316
|
+
queryParams: b,
|
|
54317
|
+
body: JSON.stringify(S),
|
|
54311
54318
|
httpMethod: "POST",
|
|
54312
54319
|
httpOptions: (l = t.config) === null || l === void 0 ? void 0 : l.httpOptions,
|
|
54313
54320
|
abortSignal: (d = t.config) === null || d === void 0 ? void 0 : d.abortSignal
|
|
54321
|
+
}).then((_) => _.json().then((C) => {
|
|
54322
|
+
const E = C;
|
|
54323
|
+
return E.sdkHttpResponse = {
|
|
54324
|
+
headers: _.headers
|
|
54325
|
+
}, E;
|
|
54326
|
+
})), f.then((_) => {
|
|
54327
|
+
const C = cancelTuningJobResponseFromMldev(_), E = new CancelTuningJobResponse();
|
|
54328
|
+
return Object.assign(E, C), E;
|
|
54314
54329
|
});
|
|
54315
54330
|
}
|
|
54316
54331
|
}
|
|
@@ -54507,14 +54522,14 @@ class GoogleGenAI {
|
|
|
54507
54522
|
/*geminiBaseUrlFromEnv*/
|
|
54508
54523
|
void 0
|
|
54509
54524
|
);
|
|
54510
|
-
o && (t.httpOptions ? t.httpOptions.baseUrl = o : t.httpOptions = { baseUrl: o }), this.apiVersion = t.apiVersion;
|
|
54525
|
+
o && (t.httpOptions ? t.httpOptions.baseUrl = o : t.httpOptions = { baseUrl: o }), this.apiVersion = t.apiVersion, this.httpOptions = t.httpOptions;
|
|
54511
54526
|
const l = new WebAuth(this.apiKey);
|
|
54512
54527
|
this.apiClient = new ApiClient({
|
|
54513
54528
|
auth: l,
|
|
54514
54529
|
apiVersion: this.apiVersion,
|
|
54515
54530
|
apiKey: this.apiKey,
|
|
54516
54531
|
vertexai: this.vertexai,
|
|
54517
|
-
httpOptions:
|
|
54532
|
+
httpOptions: this.httpOptions,
|
|
54518
54533
|
userAgentExtra: LANGUAGE_LABEL_PREFIX + "web",
|
|
54519
54534
|
uploader: new BrowserUploader(),
|
|
54520
54535
|
downloader: new BrowserDownloader()
|
|
@@ -62462,7 +62477,7 @@ function createFormControl(e = {}) {
|
|
|
62462
62477
|
watch: /* @__PURE__ */ new Set(),
|
|
62463
62478
|
watchAll: !1,
|
|
62464
62479
|
focus: ""
|
|
62465
|
-
}, f.mount = !_.isValid || !!Ye.keepIsValid || !!Ye.keepDirtyValues || !t.shouldUnregister && !isEmptyObject$1(ft), f.watch = !!t.shouldUnregister, E.state.next({
|
|
62480
|
+
}, f.mount = !_.isValid || !!Ye.keepIsValid || !!Ye.keepDirtyValues || !t.shouldUnregister && !isEmptyObject$1(ft), f.watch = !!t.shouldUnregister, f.action = !1, Ye.keepErrors || (n.errors = {}), E.state.next({
|
|
62466
62481
|
submitCount: Ye.keepSubmitCount ? n.submitCount : 0,
|
|
62467
62482
|
isDirty: mt ? !1 : Ye.keepDirty ? n.isDirty : !!(Ye.keepDefaultValues && !deepEqual$1(Ke, l)),
|
|
62468
62483
|
isSubmitted: Ye.keepIsSubmitted ? n.isSubmitted : !1,
|
|
@@ -67154,10 +67169,7 @@ function ManufacturerCard({
|
|
|
67154
67169
|
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Public Resources Link" }) })
|
|
67155
67170
|
] }) })
|
|
67156
67171
|
] }),
|
|
67157
|
-
|
|
67158
|
-
t && /* @__PURE__ */ jsx(Link, { to: t, target: n ? "_blank" : "_self", children: /* @__PURE__ */ jsx(Button$1, { variant: "outline", className: "whitespace-nowrap", children: "View manufacturer" }) }),
|
|
67159
|
-
l && /* @__PURE__ */ jsx("div", { children: l })
|
|
67160
|
-
] })
|
|
67172
|
+
l && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx("div", { children: l }) })
|
|
67161
67173
|
] }),
|
|
67162
67174
|
/* @__PURE__ */ jsx(Dialog, { open: _, onOpenChange: C, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
67163
67175
|
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|