feat(types): add VertexProvider type for Google Cloud integration

Introduced a new VertexProvider type that includes properties for Google credentials and project details, enhancing type safety and support for Google Cloud functionalities.
This commit is contained in:
suyao 2025-08-28 12:22:14 +08:00
parent 7bda658022
commit a12d627b65
No known key found for this signature in database

View File

@ -317,6 +317,15 @@ export type SystemProvider = Provider & {
apiOptions?: never
}
export type VertexProvider = Provider & {
googleCredentials: {
privateKey: string
clientEmail: string
}
project: string
location: string
}
/**
* 使`provider.isSystem`
* @param provider - Provider对象