@maxim_mazurok/gapi.client.aiplatform-v1beta1 0.0.20250212 → 0.0.20250304
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/index.d.ts +92 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://aiplatform.googleapis.com/$discovery/rest?version=v1beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250304
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -35,6 +35,16 @@ declare namespace gapi.client {
|
|
|
35
35
|
raiMediaFilteredCount?: number;
|
|
36
36
|
/** Returns rai failure reasons if any. */
|
|
37
37
|
raiMediaFilteredReasons?: string[];
|
|
38
|
+
/** List of videos, used to align naming with the external response. */
|
|
39
|
+
videos?: CloudAiLargeModelsVisionGenerateVideoResponseVideo[];
|
|
40
|
+
}
|
|
41
|
+
interface CloudAiLargeModelsVisionGenerateVideoResponseVideo {
|
|
42
|
+
/** Base64 encoded bytes string representing the video. */
|
|
43
|
+
bytesBase64Encoded?: string;
|
|
44
|
+
/** Cloud Storage URI where the generated video is written. */
|
|
45
|
+
gcsUri?: string;
|
|
46
|
+
/** The MIME type of the content of the video. - video/mp4 */
|
|
47
|
+
mimeType?: string;
|
|
38
48
|
}
|
|
39
49
|
interface CloudAiLargeModelsVisionImage {
|
|
40
50
|
/** Image encoding, encoded as "image/png" or "image/jpg". */
|
|
@@ -131,6 +141,8 @@ declare namespace gapi.client {
|
|
|
131
141
|
encodedVideo?: string;
|
|
132
142
|
/** Video encoding, for example "video/mp4". */
|
|
133
143
|
encoding?: string;
|
|
144
|
+
/** Text/Expanded text input for Help Me Write. */
|
|
145
|
+
text?: string;
|
|
134
146
|
/** Path to another storage (typically Google Cloud Storage). */
|
|
135
147
|
uri?: string;
|
|
136
148
|
/** Raw bytes. */
|
|
@@ -1565,6 +1577,42 @@ declare namespace gapi.client {
|
|
|
1565
1577
|
/** Optional. The user-specified display name of the uploaded model. If not set, a default name will be used. */
|
|
1566
1578
|
modelDisplayName?: string;
|
|
1567
1579
|
}
|
|
1580
|
+
interface GoogleCloudAiplatformV1beta1DeployRequest {
|
|
1581
|
+
/** Optional. The deploy config to use for the deployment. If not specified, the default deploy config will be used. */
|
|
1582
|
+
deployConfig?: GoogleCloudAiplatformV1beta1DeployRequestDeployConfig;
|
|
1583
|
+
/** Optional. The endpoint config to use for the deployment. If not specified, the default endpoint config will be used. */
|
|
1584
|
+
endpointConfig?: GoogleCloudAiplatformV1beta1DeployRequestEndpointConfig;
|
|
1585
|
+
/** The Hugging Face model to deploy. Format: Hugging Face model ID like `google/gemma-2-2b-it`. */
|
|
1586
|
+
huggingFaceModelId?: string;
|
|
1587
|
+
/** Optional. The model config to use for the deployment. If not specified, the default model config will be used. */
|
|
1588
|
+
modelConfig?: GoogleCloudAiplatformV1beta1DeployRequestModelConfig;
|
|
1589
|
+
/** The Model Garden model to deploy. Format: `publishers/{publisher}/models/{publisher_model}@{version_id}`, or `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`. */
|
|
1590
|
+
publisherModelName?: string;
|
|
1591
|
+
}
|
|
1592
|
+
interface GoogleCloudAiplatformV1beta1DeployRequestDeployConfig {
|
|
1593
|
+
/** Optional. The dedicated resources to use for the endpoint. If not set, the default resources will be used. */
|
|
1594
|
+
dedicatedResources?: GoogleCloudAiplatformV1beta1DedicatedResources;
|
|
1595
|
+
/** Optional. If true, enable the QMT fast tryout feature for this model if possible. */
|
|
1596
|
+
fastTryoutEnabled?: boolean;
|
|
1597
|
+
}
|
|
1598
|
+
interface GoogleCloudAiplatformV1beta1DeployRequestEndpointConfig {
|
|
1599
|
+
/** Optional. If true, the endpoint will be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS will be isolated from other users' traffic and will have better performance and reliability. Note: Once you enabled dedicated endpoint, you won't be able to send request to the shared DNS {region}-aiplatform.googleapis.com. The limitations will be removed soon. */
|
|
1600
|
+
dedicatedEndpointEnabled?: boolean;
|
|
1601
|
+
/** Optional. The user-specified display name of the endpoint. If not set, a default name will be used. */
|
|
1602
|
+
endpointDisplayName?: string;
|
|
1603
|
+
}
|
|
1604
|
+
interface GoogleCloudAiplatformV1beta1DeployRequestModelConfig {
|
|
1605
|
+
/** Optional. Whether the user accepts the End User License Agreement (EULA) for the model. */
|
|
1606
|
+
acceptEula?: boolean;
|
|
1607
|
+
/** Optional. The specification of the container that is to be used when deploying. If not set, the default container spec will be used. */
|
|
1608
|
+
containerSpec?: GoogleCloudAiplatformV1beta1ModelContainerSpec;
|
|
1609
|
+
/** Optional. The Hugging Face read access token used to access the model artifacts of gated models. */
|
|
1610
|
+
huggingFaceAccessToken?: string;
|
|
1611
|
+
/** Optional. If true, the model will deploy with a cached version instead of directly downloading the model artifacts from Hugging Face. This is suitable for VPC-SC users with limited internet access. */
|
|
1612
|
+
huggingFaceCacheEnabled?: boolean;
|
|
1613
|
+
/** Optional. The user-specified display name of the uploaded model. If not set, a default name will be used. */
|
|
1614
|
+
modelDisplayName?: string;
|
|
1615
|
+
}
|
|
1568
1616
|
interface GoogleCloudAiplatformV1beta1DeploySolverOperationMetadata {
|
|
1569
1617
|
/** The generic operation information. */
|
|
1570
1618
|
genericMetadata?: GoogleCloudAiplatformV1beta1GenericOperationMetadata;
|
|
@@ -1690,6 +1738,7 @@ declare namespace gapi.client {
|
|
|
1690
1738
|
/** Output only. Timestamp when this Endpoint was last updated. */
|
|
1691
1739
|
updateTime?: string;
|
|
1692
1740
|
}
|
|
1741
|
+
interface GoogleCloudAiplatformV1beta1EnterpriseWebSearch {}
|
|
1693
1742
|
interface GoogleCloudAiplatformV1beta1EntityIdSelector {
|
|
1694
1743
|
/** Source of Csv */
|
|
1695
1744
|
csvSource?: GoogleCloudAiplatformV1beta1CsvSource;
|
|
@@ -3093,7 +3142,11 @@ declare namespace gapi.client {
|
|
|
3093
3142
|
promptTokenCount?: number;
|
|
3094
3143
|
/** Output only. List of modalities that were processed in the request input. */
|
|
3095
3144
|
promptTokensDetails?: GoogleCloudAiplatformV1beta1ModalityTokenCount[];
|
|
3096
|
-
/**
|
|
3145
|
+
/** Output only. Number of tokens present in tool-use prompt(s). */
|
|
3146
|
+
toolUsePromptTokenCount?: number;
|
|
3147
|
+
/** Output only. List of modalities that were processed for tool-use request inputs. */
|
|
3148
|
+
toolUsePromptTokensDetails?: GoogleCloudAiplatformV1beta1ModalityTokenCount[];
|
|
3149
|
+
/** Total token count for prompt, response candidates, and tool-use prompts (if present). */
|
|
3097
3150
|
totalTokenCount?: number;
|
|
3098
3151
|
}
|
|
3099
3152
|
interface GoogleCloudAiplatformV1beta1GenerateVideoResponse {
|
|
@@ -3103,6 +3156,16 @@ declare namespace gapi.client {
|
|
|
3103
3156
|
raiMediaFilteredCount?: number;
|
|
3104
3157
|
/** Returns rai failure reasons if any. */
|
|
3105
3158
|
raiMediaFilteredReasons?: string[];
|
|
3159
|
+
/** List of video bytes or Cloud Storage URIs of the generated videos. */
|
|
3160
|
+
videos?: GoogleCloudAiplatformV1beta1GenerateVideoResponseVideo[];
|
|
3161
|
+
}
|
|
3162
|
+
interface GoogleCloudAiplatformV1beta1GenerateVideoResponseVideo {
|
|
3163
|
+
/** Base64 encoded bytes string representing the video. */
|
|
3164
|
+
bytesBase64Encoded?: string;
|
|
3165
|
+
/** Cloud Storage URI where the generated video is written. */
|
|
3166
|
+
gcsUri?: string;
|
|
3167
|
+
/** The MIME type of the content of the video. - video/mp4 */
|
|
3168
|
+
mimeType?: string;
|
|
3106
3169
|
}
|
|
3107
3170
|
interface GoogleCloudAiplatformV1beta1GenerationConfig {
|
|
3108
3171
|
/** Optional. If enabled, audio timestamp will be included in the request to the model. */
|
|
@@ -3975,6 +4038,8 @@ declare namespace gapi.client {
|
|
|
3975
4038
|
acceleratorType?: string;
|
|
3976
4039
|
/** Immutable. The type of the machine. See the [list of machine types supported for prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types) See the [list of machine types supported for custom training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types). For DeployedModel this field is optional, and the default value is `n1-standard-2`. For BatchPredictionJob or as part of WorkerPoolSpec this field is required. */
|
|
3977
4040
|
machineType?: string;
|
|
4041
|
+
/** Optional. Immutable. The number of nodes per replica for multihost GPU deployments. */
|
|
4042
|
+
multihostGpuNodeCount?: number;
|
|
3978
4043
|
/** Optional. Immutable. Configuration controlling how this resource pool consumes reservation. */
|
|
3979
4044
|
reservationAffinity?: GoogleCloudAiplatformV1beta1ReservationAffinity;
|
|
3980
4045
|
/** Immutable. The topology of the TPUs. Corresponds to the TPU topologies available from GKE. (Example: tpu_topology: "2x2x1"). */
|
|
@@ -6546,9 +6611,17 @@ declare namespace gapi.client {
|
|
|
6546
6611
|
interface GoogleCloudAiplatformV1beta1ReasoningEngineSpec {
|
|
6547
6612
|
/** Optional. Declarations for object class methods in OpenAPI specification format. */
|
|
6548
6613
|
classMethods?: Array<{[P in string]: any}>;
|
|
6614
|
+
/** Optional. The specification of a Reasoning Engine deployment. */
|
|
6615
|
+
deploymentSpec?: GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec;
|
|
6549
6616
|
/** Required. User provided package spec of the ReasoningEngine. */
|
|
6550
6617
|
packageSpec?: GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec;
|
|
6551
6618
|
}
|
|
6619
|
+
interface GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec {
|
|
6620
|
+
/** Optional. Environment variables to be set with the Reasoning Engine deployment. The environment variables can be updated through the UpdateReasoningEngine API. */
|
|
6621
|
+
env?: GoogleCloudAiplatformV1beta1EnvVar[];
|
|
6622
|
+
/** Optional. Environment variables where the value is a secret in Cloud Secret Manager. To use this feature, add 'Secret Manager Secret Accessor' role (roles/secretmanager.secretAccessor) to AI Platform Reasoning Engine Service Agent. */
|
|
6623
|
+
secretEnv?: GoogleCloudAiplatformV1beta1SecretEnvVar[];
|
|
6624
|
+
}
|
|
6552
6625
|
interface GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec {
|
|
6553
6626
|
/** Optional. The Cloud Storage URI of the dependency files in tar.gz format. */
|
|
6554
6627
|
dependencyFilesGcsUri?: string;
|
|
@@ -6616,7 +6689,7 @@ declare namespace gapi.client {
|
|
|
6616
6689
|
key?: string;
|
|
6617
6690
|
/** Required. Specifies the reservation affinity type. */
|
|
6618
6691
|
reservationAffinityType?: string;
|
|
6619
|
-
/** Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation. */
|
|
6692
|
+
/** Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation or reservation block. */
|
|
6620
6693
|
values?: string[];
|
|
6621
6694
|
}
|
|
6622
6695
|
interface GoogleCloudAiplatformV1beta1ResourcePool {
|
|
@@ -8538,6 +8611,18 @@ declare namespace gapi.client {
|
|
|
8538
8611
|
/** The nearest neighbors of the query entity. */
|
|
8539
8612
|
nearestNeighbors?: GoogleCloudAiplatformV1beta1NearestNeighbors;
|
|
8540
8613
|
}
|
|
8614
|
+
interface GoogleCloudAiplatformV1beta1SecretEnvVar {
|
|
8615
|
+
/** Required. Name of the secret environment variable. */
|
|
8616
|
+
name?: string;
|
|
8617
|
+
/** Required. Reference to a secret stored in the Cloud Secret Manager that will provide the value for this environment variable. */
|
|
8618
|
+
secretRef?: GoogleCloudAiplatformV1beta1SecretRef;
|
|
8619
|
+
}
|
|
8620
|
+
interface GoogleCloudAiplatformV1beta1SecretRef {
|
|
8621
|
+
/** Required. The name of the secret in Cloud Secret Manager. Format: {secret_name} if the secret is in the same project. projects/{project}/secrets/{secret_name} if the secret is in a different project. */
|
|
8622
|
+
secret?: string;
|
|
8623
|
+
/** The Cloud Secret Manager secret version. Can be 'latest' for the latest version, an integer for a specific version, or a version alias. */
|
|
8624
|
+
version?: string;
|
|
8625
|
+
}
|
|
8541
8626
|
interface GoogleCloudAiplatformV1beta1Segment {
|
|
8542
8627
|
/** Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero. */
|
|
8543
8628
|
endIndex?: number;
|
|
@@ -9268,8 +9353,10 @@ declare namespace gapi.client {
|
|
|
9268
9353
|
tokens?: string[];
|
|
9269
9354
|
}
|
|
9270
9355
|
interface GoogleCloudAiplatformV1beta1Tool {
|
|
9271
|
-
/** Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
|
|
9356
|
+
/** Optional. CodeExecution tool type. Enables the model to execute code as part of generation. */
|
|
9272
9357
|
codeExecution?: any;
|
|
9358
|
+
/** Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance. */
|
|
9359
|
+
enterpriseWebSearch?: any;
|
|
9273
9360
|
/** Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 128 function declarations can be provided. */
|
|
9274
9361
|
functionDeclarations?: GoogleCloudAiplatformV1beta1FunctionDeclaration[];
|
|
9275
9362
|
/** Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
|
|
@@ -9841,7 +9928,7 @@ declare namespace gapi.client {
|
|
|
9841
9928
|
stringValue?: string;
|
|
9842
9929
|
}
|
|
9843
9930
|
interface GoogleCloudAiplatformV1beta1VertexAISearch {
|
|
9844
|
-
/**
|
|
9931
|
+
/** Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` */
|
|
9845
9932
|
datastore?: string;
|
|
9846
9933
|
}
|
|
9847
9934
|
interface GoogleCloudAiplatformV1beta1VertexAiSearchConfig {
|