@adaline/vertex 1.7.0 → 1.7.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/index.d.mts +239 -1
- package/dist/index.d.ts +239 -1
- package/dist/index.js +65 -57
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1374,6 +1374,244 @@ declare class Gemini2_0FlashExp extends BaseChatModelVertex {
|
|
|
1374
1374
|
constructor(options: Gemini2_0FlashExpOptionsType);
|
|
1375
1375
|
}
|
|
1376
1376
|
|
|
1377
|
+
declare const Gemini2_0FlashLiteral: "gemini-2.0-flash";
|
|
1378
|
+
declare const Gemini2_0FlashSchema: ChatModelSchemaType;
|
|
1379
|
+
declare const Gemini2_0FlashOptions: z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{
|
|
1380
|
+
authType: z.ZodLiteral<"accessToken">;
|
|
1381
|
+
accessToken: z.ZodString;
|
|
1382
|
+
modelName: z.ZodString;
|
|
1383
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1384
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1385
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1386
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
1387
|
+
}, "strip", z.ZodTypeAny, {
|
|
1388
|
+
authType: "accessToken";
|
|
1389
|
+
accessToken: string;
|
|
1390
|
+
modelName: string;
|
|
1391
|
+
baseUrl?: string | undefined;
|
|
1392
|
+
location?: string | undefined;
|
|
1393
|
+
projectId?: string | undefined;
|
|
1394
|
+
publisher?: string | undefined;
|
|
1395
|
+
}, {
|
|
1396
|
+
authType: "accessToken";
|
|
1397
|
+
accessToken: string;
|
|
1398
|
+
modelName: string;
|
|
1399
|
+
baseUrl?: string | undefined;
|
|
1400
|
+
location?: string | undefined;
|
|
1401
|
+
projectId?: string | undefined;
|
|
1402
|
+
publisher?: string | undefined;
|
|
1403
|
+
}>, z.ZodObject<{
|
|
1404
|
+
authType: z.ZodLiteral<"serviceAccount">;
|
|
1405
|
+
serviceAccount: z.ZodObject<{
|
|
1406
|
+
client_email: z.ZodString;
|
|
1407
|
+
private_key: z.ZodString;
|
|
1408
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1409
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
1410
|
+
private_key_id: z.ZodOptional<z.ZodString>;
|
|
1411
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
1412
|
+
auth_uri: z.ZodOptional<z.ZodString>;
|
|
1413
|
+
token_uri: z.ZodOptional<z.ZodString>;
|
|
1414
|
+
auth_provider_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
1415
|
+
client_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
1416
|
+
universe_domain: z.ZodOptional<z.ZodString>;
|
|
1417
|
+
}, "strip", z.ZodTypeAny, {
|
|
1418
|
+
client_email: string;
|
|
1419
|
+
private_key: string;
|
|
1420
|
+
type?: string | undefined;
|
|
1421
|
+
project_id?: string | undefined;
|
|
1422
|
+
private_key_id?: string | undefined;
|
|
1423
|
+
client_id?: string | undefined;
|
|
1424
|
+
auth_uri?: string | undefined;
|
|
1425
|
+
token_uri?: string | undefined;
|
|
1426
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1427
|
+
client_x509_cert_url?: string | undefined;
|
|
1428
|
+
universe_domain?: string | undefined;
|
|
1429
|
+
}, {
|
|
1430
|
+
client_email: string;
|
|
1431
|
+
private_key: string;
|
|
1432
|
+
type?: string | undefined;
|
|
1433
|
+
project_id?: string | undefined;
|
|
1434
|
+
private_key_id?: string | undefined;
|
|
1435
|
+
client_id?: string | undefined;
|
|
1436
|
+
auth_uri?: string | undefined;
|
|
1437
|
+
token_uri?: string | undefined;
|
|
1438
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1439
|
+
client_x509_cert_url?: string | undefined;
|
|
1440
|
+
universe_domain?: string | undefined;
|
|
1441
|
+
}>;
|
|
1442
|
+
modelName: z.ZodString;
|
|
1443
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1444
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1445
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1446
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
1447
|
+
tokenLifetimeHours: z.ZodDefault<z.ZodNumber>;
|
|
1448
|
+
}, "strip", z.ZodTypeAny, {
|
|
1449
|
+
authType: "serviceAccount";
|
|
1450
|
+
modelName: string;
|
|
1451
|
+
serviceAccount: {
|
|
1452
|
+
client_email: string;
|
|
1453
|
+
private_key: string;
|
|
1454
|
+
type?: string | undefined;
|
|
1455
|
+
project_id?: string | undefined;
|
|
1456
|
+
private_key_id?: string | undefined;
|
|
1457
|
+
client_id?: string | undefined;
|
|
1458
|
+
auth_uri?: string | undefined;
|
|
1459
|
+
token_uri?: string | undefined;
|
|
1460
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1461
|
+
client_x509_cert_url?: string | undefined;
|
|
1462
|
+
universe_domain?: string | undefined;
|
|
1463
|
+
};
|
|
1464
|
+
tokenLifetimeHours: number;
|
|
1465
|
+
baseUrl?: string | undefined;
|
|
1466
|
+
location?: string | undefined;
|
|
1467
|
+
projectId?: string | undefined;
|
|
1468
|
+
publisher?: string | undefined;
|
|
1469
|
+
}, {
|
|
1470
|
+
authType: "serviceAccount";
|
|
1471
|
+
modelName: string;
|
|
1472
|
+
serviceAccount: {
|
|
1473
|
+
client_email: string;
|
|
1474
|
+
private_key: string;
|
|
1475
|
+
type?: string | undefined;
|
|
1476
|
+
project_id?: string | undefined;
|
|
1477
|
+
private_key_id?: string | undefined;
|
|
1478
|
+
client_id?: string | undefined;
|
|
1479
|
+
auth_uri?: string | undefined;
|
|
1480
|
+
token_uri?: string | undefined;
|
|
1481
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1482
|
+
client_x509_cert_url?: string | undefined;
|
|
1483
|
+
universe_domain?: string | undefined;
|
|
1484
|
+
};
|
|
1485
|
+
baseUrl?: string | undefined;
|
|
1486
|
+
location?: string | undefined;
|
|
1487
|
+
projectId?: string | undefined;
|
|
1488
|
+
publisher?: string | undefined;
|
|
1489
|
+
tokenLifetimeHours?: number | undefined;
|
|
1490
|
+
}>]>;
|
|
1491
|
+
type Gemini2_0FlashOptionsType = z.infer<typeof Gemini2_0FlashOptions>;
|
|
1492
|
+
declare class Gemini2_0Flash extends BaseChatModelVertex {
|
|
1493
|
+
constructor(options: Gemini2_0FlashOptionsType);
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
declare const Gemini2_5FlashLiteLiteral: "gemini-2.5-flash-lite";
|
|
1497
|
+
declare const Gemini2_5FlashLiteSchema: ChatModelSchemaType;
|
|
1498
|
+
declare const Gemini2_5FlashLiteOptions: z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{
|
|
1499
|
+
authType: z.ZodLiteral<"accessToken">;
|
|
1500
|
+
accessToken: z.ZodString;
|
|
1501
|
+
modelName: z.ZodString;
|
|
1502
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1503
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1504
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1505
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
1506
|
+
}, "strip", z.ZodTypeAny, {
|
|
1507
|
+
authType: "accessToken";
|
|
1508
|
+
accessToken: string;
|
|
1509
|
+
modelName: string;
|
|
1510
|
+
baseUrl?: string | undefined;
|
|
1511
|
+
location?: string | undefined;
|
|
1512
|
+
projectId?: string | undefined;
|
|
1513
|
+
publisher?: string | undefined;
|
|
1514
|
+
}, {
|
|
1515
|
+
authType: "accessToken";
|
|
1516
|
+
accessToken: string;
|
|
1517
|
+
modelName: string;
|
|
1518
|
+
baseUrl?: string | undefined;
|
|
1519
|
+
location?: string | undefined;
|
|
1520
|
+
projectId?: string | undefined;
|
|
1521
|
+
publisher?: string | undefined;
|
|
1522
|
+
}>, z.ZodObject<{
|
|
1523
|
+
authType: z.ZodLiteral<"serviceAccount">;
|
|
1524
|
+
serviceAccount: z.ZodObject<{
|
|
1525
|
+
client_email: z.ZodString;
|
|
1526
|
+
private_key: z.ZodString;
|
|
1527
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1528
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
1529
|
+
private_key_id: z.ZodOptional<z.ZodString>;
|
|
1530
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
1531
|
+
auth_uri: z.ZodOptional<z.ZodString>;
|
|
1532
|
+
token_uri: z.ZodOptional<z.ZodString>;
|
|
1533
|
+
auth_provider_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
1534
|
+
client_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
1535
|
+
universe_domain: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
}, "strip", z.ZodTypeAny, {
|
|
1537
|
+
client_email: string;
|
|
1538
|
+
private_key: string;
|
|
1539
|
+
type?: string | undefined;
|
|
1540
|
+
project_id?: string | undefined;
|
|
1541
|
+
private_key_id?: string | undefined;
|
|
1542
|
+
client_id?: string | undefined;
|
|
1543
|
+
auth_uri?: string | undefined;
|
|
1544
|
+
token_uri?: string | undefined;
|
|
1545
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1546
|
+
client_x509_cert_url?: string | undefined;
|
|
1547
|
+
universe_domain?: string | undefined;
|
|
1548
|
+
}, {
|
|
1549
|
+
client_email: string;
|
|
1550
|
+
private_key: string;
|
|
1551
|
+
type?: string | undefined;
|
|
1552
|
+
project_id?: string | undefined;
|
|
1553
|
+
private_key_id?: string | undefined;
|
|
1554
|
+
client_id?: string | undefined;
|
|
1555
|
+
auth_uri?: string | undefined;
|
|
1556
|
+
token_uri?: string | undefined;
|
|
1557
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1558
|
+
client_x509_cert_url?: string | undefined;
|
|
1559
|
+
universe_domain?: string | undefined;
|
|
1560
|
+
}>;
|
|
1561
|
+
modelName: z.ZodString;
|
|
1562
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1563
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1564
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1565
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
1566
|
+
tokenLifetimeHours: z.ZodDefault<z.ZodNumber>;
|
|
1567
|
+
}, "strip", z.ZodTypeAny, {
|
|
1568
|
+
authType: "serviceAccount";
|
|
1569
|
+
modelName: string;
|
|
1570
|
+
serviceAccount: {
|
|
1571
|
+
client_email: string;
|
|
1572
|
+
private_key: string;
|
|
1573
|
+
type?: string | undefined;
|
|
1574
|
+
project_id?: string | undefined;
|
|
1575
|
+
private_key_id?: string | undefined;
|
|
1576
|
+
client_id?: string | undefined;
|
|
1577
|
+
auth_uri?: string | undefined;
|
|
1578
|
+
token_uri?: string | undefined;
|
|
1579
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1580
|
+
client_x509_cert_url?: string | undefined;
|
|
1581
|
+
universe_domain?: string | undefined;
|
|
1582
|
+
};
|
|
1583
|
+
tokenLifetimeHours: number;
|
|
1584
|
+
baseUrl?: string | undefined;
|
|
1585
|
+
location?: string | undefined;
|
|
1586
|
+
projectId?: string | undefined;
|
|
1587
|
+
publisher?: string | undefined;
|
|
1588
|
+
}, {
|
|
1589
|
+
authType: "serviceAccount";
|
|
1590
|
+
modelName: string;
|
|
1591
|
+
serviceAccount: {
|
|
1592
|
+
client_email: string;
|
|
1593
|
+
private_key: string;
|
|
1594
|
+
type?: string | undefined;
|
|
1595
|
+
project_id?: string | undefined;
|
|
1596
|
+
private_key_id?: string | undefined;
|
|
1597
|
+
client_id?: string | undefined;
|
|
1598
|
+
auth_uri?: string | undefined;
|
|
1599
|
+
token_uri?: string | undefined;
|
|
1600
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1601
|
+
client_x509_cert_url?: string | undefined;
|
|
1602
|
+
universe_domain?: string | undefined;
|
|
1603
|
+
};
|
|
1604
|
+
baseUrl?: string | undefined;
|
|
1605
|
+
location?: string | undefined;
|
|
1606
|
+
projectId?: string | undefined;
|
|
1607
|
+
publisher?: string | undefined;
|
|
1608
|
+
tokenLifetimeHours?: number | undefined;
|
|
1609
|
+
}>]>;
|
|
1610
|
+
type Gemini2_5FlashLiteOptionsType = z.infer<typeof Gemini2_5FlashLiteOptions>;
|
|
1611
|
+
declare class Gemini2_5FlashLite extends BaseChatModelVertex {
|
|
1612
|
+
constructor(options: Gemini2_5FlashLiteOptionsType);
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1377
1615
|
declare const BaseEmbeddingModelOptions: z.ZodObject<{
|
|
1378
1616
|
accessToken: z.ZodString;
|
|
1379
1617
|
modelName: z.ZodString;
|
|
@@ -1735,4 +1973,4 @@ declare class Vertex<C extends BaseChatModelOptionsType, E extends BaseEmbedding
|
|
|
1735
1973
|
embeddingModel(options: E): EmbeddingModelV1;
|
|
1736
1974
|
}
|
|
1737
1975
|
|
|
1738
|
-
export { BaseChatModelOptions, type BaseChatModelOptionsType, BaseChatModelVertex, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, Gemini1_5Flash, Gemini1_5Flash001, Gemini1_5Flash001Literal, Gemini1_5Flash001Options, type Gemini1_5Flash001OptionsType, Gemini1_5Flash001Schema, Gemini1_5Flash002, Gemini1_5Flash002Literal, Gemini1_5Flash002Options, type Gemini1_5Flash002OptionsType, Gemini1_5Flash002Schema, Gemini1_5FlashLiteral, Gemini1_5FlashOptions, type Gemini1_5FlashOptionsType, Gemini1_5FlashSchema, Gemini1_5Pro, Gemini1_5Pro001, Gemini1_5Pro001Literal, Gemini1_5Pro001Options, type Gemini1_5Pro001OptionsType, Gemini1_5Pro001Schema, Gemini1_5Pro002, Gemini1_5Pro002Literal, Gemini1_5Pro002Options, type Gemini1_5Pro002OptionsType, Gemini1_5Pro002Schema, Gemini1_5ProLiteral, Gemini1_5ProOptions, type Gemini1_5ProOptionsType, Gemini1_5ProSchema, Gemini2_0FlashExp, Gemini2_0FlashExpLiteral, Gemini2_0FlashExpOptions, type Gemini2_0FlashExpOptionsType, Gemini2_0FlashExpSchema, Text_Embedding_004, Text_Embedding_004Literal, Text_Embedding_004Options, type Text_Embedding_004OptionsType, Text_Embedding_004Schema, Text_Embedding_Gecko_003, Text_Embedding_Gecko_003Literal, Text_Embedding_Gecko_003Options, type Text_Embedding_Gecko_003OptionsType, Text_Embedding_Gecko_003Schema, Text_Embedding_Gecko_Multilingual_001, Text_Embedding_Gecko_Multilingual_001Literal, Text_Embedding_Gecko_Multilingual_001Options, type Text_Embedding_Gecko_Multilingual_001OptionsType, Text_Embedding_Gecko_Multilingual_001Schema, Text_Multilingual_Embedding_002, Text_Multilingual_Embedding_002Literal, Text_Multilingual_Embedding_002Options, type Text_Multilingual_Embedding_002OptionsType, Text_Multilingual_Embedding_002Schema, Vertex };
|
|
1976
|
+
export { BaseChatModelOptions, type BaseChatModelOptionsType, BaseChatModelVertex, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, Gemini1_5Flash, Gemini1_5Flash001, Gemini1_5Flash001Literal, Gemini1_5Flash001Options, type Gemini1_5Flash001OptionsType, Gemini1_5Flash001Schema, Gemini1_5Flash002, Gemini1_5Flash002Literal, Gemini1_5Flash002Options, type Gemini1_5Flash002OptionsType, Gemini1_5Flash002Schema, Gemini1_5FlashLiteral, Gemini1_5FlashOptions, type Gemini1_5FlashOptionsType, Gemini1_5FlashSchema, Gemini1_5Pro, Gemini1_5Pro001, Gemini1_5Pro001Literal, Gemini1_5Pro001Options, type Gemini1_5Pro001OptionsType, Gemini1_5Pro001Schema, Gemini1_5Pro002, Gemini1_5Pro002Literal, Gemini1_5Pro002Options, type Gemini1_5Pro002OptionsType, Gemini1_5Pro002Schema, Gemini1_5ProLiteral, Gemini1_5ProOptions, type Gemini1_5ProOptionsType, Gemini1_5ProSchema, Gemini2_0Flash, Gemini2_0FlashExp, Gemini2_0FlashExpLiteral, Gemini2_0FlashExpOptions, type Gemini2_0FlashExpOptionsType, Gemini2_0FlashExpSchema, Gemini2_0FlashLiteral, Gemini2_0FlashOptions, type Gemini2_0FlashOptionsType, Gemini2_0FlashSchema, Gemini2_5FlashLite, Gemini2_5FlashLiteLiteral, Gemini2_5FlashLiteOptions, type Gemini2_5FlashLiteOptionsType, Gemini2_5FlashLiteSchema, Text_Embedding_004, Text_Embedding_004Literal, Text_Embedding_004Options, type Text_Embedding_004OptionsType, Text_Embedding_004Schema, Text_Embedding_Gecko_003, Text_Embedding_Gecko_003Literal, Text_Embedding_Gecko_003Options, type Text_Embedding_Gecko_003OptionsType, Text_Embedding_Gecko_003Schema, Text_Embedding_Gecko_Multilingual_001, Text_Embedding_Gecko_Multilingual_001Literal, Text_Embedding_Gecko_Multilingual_001Options, type Text_Embedding_Gecko_Multilingual_001OptionsType, Text_Embedding_Gecko_Multilingual_001Schema, Text_Multilingual_Embedding_002, Text_Multilingual_Embedding_002Literal, Text_Multilingual_Embedding_002Options, type Text_Multilingual_Embedding_002OptionsType, Text_Multilingual_Embedding_002Schema, Vertex };
|
package/dist/index.d.ts
CHANGED
|
@@ -1374,6 +1374,244 @@ declare class Gemini2_0FlashExp extends BaseChatModelVertex {
|
|
|
1374
1374
|
constructor(options: Gemini2_0FlashExpOptionsType);
|
|
1375
1375
|
}
|
|
1376
1376
|
|
|
1377
|
+
declare const Gemini2_0FlashLiteral: "gemini-2.0-flash";
|
|
1378
|
+
declare const Gemini2_0FlashSchema: ChatModelSchemaType;
|
|
1379
|
+
declare const Gemini2_0FlashOptions: z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{
|
|
1380
|
+
authType: z.ZodLiteral<"accessToken">;
|
|
1381
|
+
accessToken: z.ZodString;
|
|
1382
|
+
modelName: z.ZodString;
|
|
1383
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1384
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1385
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1386
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
1387
|
+
}, "strip", z.ZodTypeAny, {
|
|
1388
|
+
authType: "accessToken";
|
|
1389
|
+
accessToken: string;
|
|
1390
|
+
modelName: string;
|
|
1391
|
+
baseUrl?: string | undefined;
|
|
1392
|
+
location?: string | undefined;
|
|
1393
|
+
projectId?: string | undefined;
|
|
1394
|
+
publisher?: string | undefined;
|
|
1395
|
+
}, {
|
|
1396
|
+
authType: "accessToken";
|
|
1397
|
+
accessToken: string;
|
|
1398
|
+
modelName: string;
|
|
1399
|
+
baseUrl?: string | undefined;
|
|
1400
|
+
location?: string | undefined;
|
|
1401
|
+
projectId?: string | undefined;
|
|
1402
|
+
publisher?: string | undefined;
|
|
1403
|
+
}>, z.ZodObject<{
|
|
1404
|
+
authType: z.ZodLiteral<"serviceAccount">;
|
|
1405
|
+
serviceAccount: z.ZodObject<{
|
|
1406
|
+
client_email: z.ZodString;
|
|
1407
|
+
private_key: z.ZodString;
|
|
1408
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1409
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
1410
|
+
private_key_id: z.ZodOptional<z.ZodString>;
|
|
1411
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
1412
|
+
auth_uri: z.ZodOptional<z.ZodString>;
|
|
1413
|
+
token_uri: z.ZodOptional<z.ZodString>;
|
|
1414
|
+
auth_provider_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
1415
|
+
client_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
1416
|
+
universe_domain: z.ZodOptional<z.ZodString>;
|
|
1417
|
+
}, "strip", z.ZodTypeAny, {
|
|
1418
|
+
client_email: string;
|
|
1419
|
+
private_key: string;
|
|
1420
|
+
type?: string | undefined;
|
|
1421
|
+
project_id?: string | undefined;
|
|
1422
|
+
private_key_id?: string | undefined;
|
|
1423
|
+
client_id?: string | undefined;
|
|
1424
|
+
auth_uri?: string | undefined;
|
|
1425
|
+
token_uri?: string | undefined;
|
|
1426
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1427
|
+
client_x509_cert_url?: string | undefined;
|
|
1428
|
+
universe_domain?: string | undefined;
|
|
1429
|
+
}, {
|
|
1430
|
+
client_email: string;
|
|
1431
|
+
private_key: string;
|
|
1432
|
+
type?: string | undefined;
|
|
1433
|
+
project_id?: string | undefined;
|
|
1434
|
+
private_key_id?: string | undefined;
|
|
1435
|
+
client_id?: string | undefined;
|
|
1436
|
+
auth_uri?: string | undefined;
|
|
1437
|
+
token_uri?: string | undefined;
|
|
1438
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1439
|
+
client_x509_cert_url?: string | undefined;
|
|
1440
|
+
universe_domain?: string | undefined;
|
|
1441
|
+
}>;
|
|
1442
|
+
modelName: z.ZodString;
|
|
1443
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1444
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1445
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1446
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
1447
|
+
tokenLifetimeHours: z.ZodDefault<z.ZodNumber>;
|
|
1448
|
+
}, "strip", z.ZodTypeAny, {
|
|
1449
|
+
authType: "serviceAccount";
|
|
1450
|
+
modelName: string;
|
|
1451
|
+
serviceAccount: {
|
|
1452
|
+
client_email: string;
|
|
1453
|
+
private_key: string;
|
|
1454
|
+
type?: string | undefined;
|
|
1455
|
+
project_id?: string | undefined;
|
|
1456
|
+
private_key_id?: string | undefined;
|
|
1457
|
+
client_id?: string | undefined;
|
|
1458
|
+
auth_uri?: string | undefined;
|
|
1459
|
+
token_uri?: string | undefined;
|
|
1460
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1461
|
+
client_x509_cert_url?: string | undefined;
|
|
1462
|
+
universe_domain?: string | undefined;
|
|
1463
|
+
};
|
|
1464
|
+
tokenLifetimeHours: number;
|
|
1465
|
+
baseUrl?: string | undefined;
|
|
1466
|
+
location?: string | undefined;
|
|
1467
|
+
projectId?: string | undefined;
|
|
1468
|
+
publisher?: string | undefined;
|
|
1469
|
+
}, {
|
|
1470
|
+
authType: "serviceAccount";
|
|
1471
|
+
modelName: string;
|
|
1472
|
+
serviceAccount: {
|
|
1473
|
+
client_email: string;
|
|
1474
|
+
private_key: string;
|
|
1475
|
+
type?: string | undefined;
|
|
1476
|
+
project_id?: string | undefined;
|
|
1477
|
+
private_key_id?: string | undefined;
|
|
1478
|
+
client_id?: string | undefined;
|
|
1479
|
+
auth_uri?: string | undefined;
|
|
1480
|
+
token_uri?: string | undefined;
|
|
1481
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1482
|
+
client_x509_cert_url?: string | undefined;
|
|
1483
|
+
universe_domain?: string | undefined;
|
|
1484
|
+
};
|
|
1485
|
+
baseUrl?: string | undefined;
|
|
1486
|
+
location?: string | undefined;
|
|
1487
|
+
projectId?: string | undefined;
|
|
1488
|
+
publisher?: string | undefined;
|
|
1489
|
+
tokenLifetimeHours?: number | undefined;
|
|
1490
|
+
}>]>;
|
|
1491
|
+
type Gemini2_0FlashOptionsType = z.infer<typeof Gemini2_0FlashOptions>;
|
|
1492
|
+
declare class Gemini2_0Flash extends BaseChatModelVertex {
|
|
1493
|
+
constructor(options: Gemini2_0FlashOptionsType);
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
declare const Gemini2_5FlashLiteLiteral: "gemini-2.5-flash-lite";
|
|
1497
|
+
declare const Gemini2_5FlashLiteSchema: ChatModelSchemaType;
|
|
1498
|
+
declare const Gemini2_5FlashLiteOptions: z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{
|
|
1499
|
+
authType: z.ZodLiteral<"accessToken">;
|
|
1500
|
+
accessToken: z.ZodString;
|
|
1501
|
+
modelName: z.ZodString;
|
|
1502
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1503
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1504
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1505
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
1506
|
+
}, "strip", z.ZodTypeAny, {
|
|
1507
|
+
authType: "accessToken";
|
|
1508
|
+
accessToken: string;
|
|
1509
|
+
modelName: string;
|
|
1510
|
+
baseUrl?: string | undefined;
|
|
1511
|
+
location?: string | undefined;
|
|
1512
|
+
projectId?: string | undefined;
|
|
1513
|
+
publisher?: string | undefined;
|
|
1514
|
+
}, {
|
|
1515
|
+
authType: "accessToken";
|
|
1516
|
+
accessToken: string;
|
|
1517
|
+
modelName: string;
|
|
1518
|
+
baseUrl?: string | undefined;
|
|
1519
|
+
location?: string | undefined;
|
|
1520
|
+
projectId?: string | undefined;
|
|
1521
|
+
publisher?: string | undefined;
|
|
1522
|
+
}>, z.ZodObject<{
|
|
1523
|
+
authType: z.ZodLiteral<"serviceAccount">;
|
|
1524
|
+
serviceAccount: z.ZodObject<{
|
|
1525
|
+
client_email: z.ZodString;
|
|
1526
|
+
private_key: z.ZodString;
|
|
1527
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1528
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
1529
|
+
private_key_id: z.ZodOptional<z.ZodString>;
|
|
1530
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
1531
|
+
auth_uri: z.ZodOptional<z.ZodString>;
|
|
1532
|
+
token_uri: z.ZodOptional<z.ZodString>;
|
|
1533
|
+
auth_provider_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
1534
|
+
client_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
1535
|
+
universe_domain: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
}, "strip", z.ZodTypeAny, {
|
|
1537
|
+
client_email: string;
|
|
1538
|
+
private_key: string;
|
|
1539
|
+
type?: string | undefined;
|
|
1540
|
+
project_id?: string | undefined;
|
|
1541
|
+
private_key_id?: string | undefined;
|
|
1542
|
+
client_id?: string | undefined;
|
|
1543
|
+
auth_uri?: string | undefined;
|
|
1544
|
+
token_uri?: string | undefined;
|
|
1545
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1546
|
+
client_x509_cert_url?: string | undefined;
|
|
1547
|
+
universe_domain?: string | undefined;
|
|
1548
|
+
}, {
|
|
1549
|
+
client_email: string;
|
|
1550
|
+
private_key: string;
|
|
1551
|
+
type?: string | undefined;
|
|
1552
|
+
project_id?: string | undefined;
|
|
1553
|
+
private_key_id?: string | undefined;
|
|
1554
|
+
client_id?: string | undefined;
|
|
1555
|
+
auth_uri?: string | undefined;
|
|
1556
|
+
token_uri?: string | undefined;
|
|
1557
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1558
|
+
client_x509_cert_url?: string | undefined;
|
|
1559
|
+
universe_domain?: string | undefined;
|
|
1560
|
+
}>;
|
|
1561
|
+
modelName: z.ZodString;
|
|
1562
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1563
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1564
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1565
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
1566
|
+
tokenLifetimeHours: z.ZodDefault<z.ZodNumber>;
|
|
1567
|
+
}, "strip", z.ZodTypeAny, {
|
|
1568
|
+
authType: "serviceAccount";
|
|
1569
|
+
modelName: string;
|
|
1570
|
+
serviceAccount: {
|
|
1571
|
+
client_email: string;
|
|
1572
|
+
private_key: string;
|
|
1573
|
+
type?: string | undefined;
|
|
1574
|
+
project_id?: string | undefined;
|
|
1575
|
+
private_key_id?: string | undefined;
|
|
1576
|
+
client_id?: string | undefined;
|
|
1577
|
+
auth_uri?: string | undefined;
|
|
1578
|
+
token_uri?: string | undefined;
|
|
1579
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1580
|
+
client_x509_cert_url?: string | undefined;
|
|
1581
|
+
universe_domain?: string | undefined;
|
|
1582
|
+
};
|
|
1583
|
+
tokenLifetimeHours: number;
|
|
1584
|
+
baseUrl?: string | undefined;
|
|
1585
|
+
location?: string | undefined;
|
|
1586
|
+
projectId?: string | undefined;
|
|
1587
|
+
publisher?: string | undefined;
|
|
1588
|
+
}, {
|
|
1589
|
+
authType: "serviceAccount";
|
|
1590
|
+
modelName: string;
|
|
1591
|
+
serviceAccount: {
|
|
1592
|
+
client_email: string;
|
|
1593
|
+
private_key: string;
|
|
1594
|
+
type?: string | undefined;
|
|
1595
|
+
project_id?: string | undefined;
|
|
1596
|
+
private_key_id?: string | undefined;
|
|
1597
|
+
client_id?: string | undefined;
|
|
1598
|
+
auth_uri?: string | undefined;
|
|
1599
|
+
token_uri?: string | undefined;
|
|
1600
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1601
|
+
client_x509_cert_url?: string | undefined;
|
|
1602
|
+
universe_domain?: string | undefined;
|
|
1603
|
+
};
|
|
1604
|
+
baseUrl?: string | undefined;
|
|
1605
|
+
location?: string | undefined;
|
|
1606
|
+
projectId?: string | undefined;
|
|
1607
|
+
publisher?: string | undefined;
|
|
1608
|
+
tokenLifetimeHours?: number | undefined;
|
|
1609
|
+
}>]>;
|
|
1610
|
+
type Gemini2_5FlashLiteOptionsType = z.infer<typeof Gemini2_5FlashLiteOptions>;
|
|
1611
|
+
declare class Gemini2_5FlashLite extends BaseChatModelVertex {
|
|
1612
|
+
constructor(options: Gemini2_5FlashLiteOptionsType);
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1377
1615
|
declare const BaseEmbeddingModelOptions: z.ZodObject<{
|
|
1378
1616
|
accessToken: z.ZodString;
|
|
1379
1617
|
modelName: z.ZodString;
|
|
@@ -1735,4 +1973,4 @@ declare class Vertex<C extends BaseChatModelOptionsType, E extends BaseEmbedding
|
|
|
1735
1973
|
embeddingModel(options: E): EmbeddingModelV1;
|
|
1736
1974
|
}
|
|
1737
1975
|
|
|
1738
|
-
export { BaseChatModelOptions, type BaseChatModelOptionsType, BaseChatModelVertex, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, Gemini1_5Flash, Gemini1_5Flash001, Gemini1_5Flash001Literal, Gemini1_5Flash001Options, type Gemini1_5Flash001OptionsType, Gemini1_5Flash001Schema, Gemini1_5Flash002, Gemini1_5Flash002Literal, Gemini1_5Flash002Options, type Gemini1_5Flash002OptionsType, Gemini1_5Flash002Schema, Gemini1_5FlashLiteral, Gemini1_5FlashOptions, type Gemini1_5FlashOptionsType, Gemini1_5FlashSchema, Gemini1_5Pro, Gemini1_5Pro001, Gemini1_5Pro001Literal, Gemini1_5Pro001Options, type Gemini1_5Pro001OptionsType, Gemini1_5Pro001Schema, Gemini1_5Pro002, Gemini1_5Pro002Literal, Gemini1_5Pro002Options, type Gemini1_5Pro002OptionsType, Gemini1_5Pro002Schema, Gemini1_5ProLiteral, Gemini1_5ProOptions, type Gemini1_5ProOptionsType, Gemini1_5ProSchema, Gemini2_0FlashExp, Gemini2_0FlashExpLiteral, Gemini2_0FlashExpOptions, type Gemini2_0FlashExpOptionsType, Gemini2_0FlashExpSchema, Text_Embedding_004, Text_Embedding_004Literal, Text_Embedding_004Options, type Text_Embedding_004OptionsType, Text_Embedding_004Schema, Text_Embedding_Gecko_003, Text_Embedding_Gecko_003Literal, Text_Embedding_Gecko_003Options, type Text_Embedding_Gecko_003OptionsType, Text_Embedding_Gecko_003Schema, Text_Embedding_Gecko_Multilingual_001, Text_Embedding_Gecko_Multilingual_001Literal, Text_Embedding_Gecko_Multilingual_001Options, type Text_Embedding_Gecko_Multilingual_001OptionsType, Text_Embedding_Gecko_Multilingual_001Schema, Text_Multilingual_Embedding_002, Text_Multilingual_Embedding_002Literal, Text_Multilingual_Embedding_002Options, type Text_Multilingual_Embedding_002OptionsType, Text_Multilingual_Embedding_002Schema, Vertex };
|
|
1976
|
+
export { BaseChatModelOptions, type BaseChatModelOptionsType, BaseChatModelVertex, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, Gemini1_5Flash, Gemini1_5Flash001, Gemini1_5Flash001Literal, Gemini1_5Flash001Options, type Gemini1_5Flash001OptionsType, Gemini1_5Flash001Schema, Gemini1_5Flash002, Gemini1_5Flash002Literal, Gemini1_5Flash002Options, type Gemini1_5Flash002OptionsType, Gemini1_5Flash002Schema, Gemini1_5FlashLiteral, Gemini1_5FlashOptions, type Gemini1_5FlashOptionsType, Gemini1_5FlashSchema, Gemini1_5Pro, Gemini1_5Pro001, Gemini1_5Pro001Literal, Gemini1_5Pro001Options, type Gemini1_5Pro001OptionsType, Gemini1_5Pro001Schema, Gemini1_5Pro002, Gemini1_5Pro002Literal, Gemini1_5Pro002Options, type Gemini1_5Pro002OptionsType, Gemini1_5Pro002Schema, Gemini1_5ProLiteral, Gemini1_5ProOptions, type Gemini1_5ProOptionsType, Gemini1_5ProSchema, Gemini2_0Flash, Gemini2_0FlashExp, Gemini2_0FlashExpLiteral, Gemini2_0FlashExpOptions, type Gemini2_0FlashExpOptionsType, Gemini2_0FlashExpSchema, Gemini2_0FlashLiteral, Gemini2_0FlashOptions, type Gemini2_0FlashOptionsType, Gemini2_0FlashSchema, Gemini2_5FlashLite, Gemini2_5FlashLiteLiteral, Gemini2_5FlashLiteOptions, type Gemini2_5FlashLiteOptionsType, Gemini2_5FlashLiteSchema, Text_Embedding_004, Text_Embedding_004Literal, Text_Embedding_004Options, type Text_Embedding_004OptionsType, Text_Embedding_004Schema, Text_Embedding_Gecko_003, Text_Embedding_Gecko_003Literal, Text_Embedding_Gecko_003Options, type Text_Embedding_Gecko_003OptionsType, Text_Embedding_Gecko_003Schema, Text_Embedding_Gecko_Multilingual_001, Text_Embedding_Gecko_Multilingual_001Literal, Text_Embedding_Gecko_Multilingual_001Options, type Text_Embedding_Gecko_Multilingual_001OptionsType, Text_Embedding_Gecko_Multilingual_001Schema, Text_Multilingual_Embedding_002, Text_Multilingual_Embedding_002Literal, Text_Multilingual_Embedding_002Options, type Text_Multilingual_Embedding_002OptionsType, Text_Multilingual_Embedding_002Schema, Vertex };
|