@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20250212 → 0.0.20250226
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 +62 -7
- 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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250226
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -31,6 +31,16 @@ declare namespace gapi.client {
|
|
|
31
31
|
raiMediaFilteredCount?: number;
|
|
32
32
|
/** Returns rai failure reasons if any. */
|
|
33
33
|
raiMediaFilteredReasons?: string[];
|
|
34
|
+
/** List of videos, used to align naming with the external response. */
|
|
35
|
+
videos?: CloudAiLargeModelsVisionGenerateVideoResponseVideo[];
|
|
36
|
+
}
|
|
37
|
+
interface CloudAiLargeModelsVisionGenerateVideoResponseVideo {
|
|
38
|
+
/** Base64 encoded bytes string representing the video. */
|
|
39
|
+
bytesBase64Encoded?: string;
|
|
40
|
+
/** Cloud Storage URI where the generated video is written. */
|
|
41
|
+
gcsUri?: string;
|
|
42
|
+
/** The MIME type of the content of the video. - video/mp4 */
|
|
43
|
+
mimeType?: string;
|
|
34
44
|
}
|
|
35
45
|
interface CloudAiLargeModelsVisionImage {
|
|
36
46
|
/** Image encoding, encoded as "image/png" or "image/jpg". */
|
|
@@ -127,6 +137,8 @@ declare namespace gapi.client {
|
|
|
127
137
|
encodedVideo?: string;
|
|
128
138
|
/** Video encoding, for example "video/mp4". */
|
|
129
139
|
encoding?: string;
|
|
140
|
+
/** Text/Expanded text input for Help Me Write. */
|
|
141
|
+
text?: string;
|
|
130
142
|
/** Path to another storage (typically Google Cloud Storage). */
|
|
131
143
|
uri?: string;
|
|
132
144
|
/** Raw bytes. */
|
|
@@ -1504,6 +1516,7 @@ declare namespace gapi.client {
|
|
|
1504
1516
|
/** Output only. Timestamp when this Endpoint was last updated. */
|
|
1505
1517
|
updateTime?: string;
|
|
1506
1518
|
}
|
|
1519
|
+
interface GoogleCloudAiplatformV1EnterpriseWebSearch {}
|
|
1507
1520
|
interface GoogleCloudAiplatformV1EntityIdSelector {
|
|
1508
1521
|
/** Source of Csv */
|
|
1509
1522
|
csvSource?: GoogleCloudAiplatformV1CsvSource;
|
|
@@ -2702,9 +2715,31 @@ declare namespace gapi.client {
|
|
|
2702
2715
|
promptTokenCount?: number;
|
|
2703
2716
|
/** Output only. List of modalities that were processed in the request input. */
|
|
2704
2717
|
promptTokensDetails?: GoogleCloudAiplatformV1ModalityTokenCount[];
|
|
2705
|
-
/**
|
|
2718
|
+
/** Output only. Number of tokens present in tool-use prompt(s). */
|
|
2719
|
+
toolUsePromptTokenCount?: number;
|
|
2720
|
+
/** Output only. List of modalities that were processed for tool-use request inputs. */
|
|
2721
|
+
toolUsePromptTokensDetails?: GoogleCloudAiplatformV1ModalityTokenCount[];
|
|
2722
|
+
/** Total token count for prompt, response candidates, and tool-use prompts (if present). */
|
|
2706
2723
|
totalTokenCount?: number;
|
|
2707
2724
|
}
|
|
2725
|
+
interface GoogleCloudAiplatformV1GenerateVideoResponse {
|
|
2726
|
+
/** The cloud storage uris of the generated videos. */
|
|
2727
|
+
generatedSamples?: string[];
|
|
2728
|
+
/** Returns if any videos were filtered due to RAI policies. */
|
|
2729
|
+
raiMediaFilteredCount?: number;
|
|
2730
|
+
/** Returns rai failure reasons if any. */
|
|
2731
|
+
raiMediaFilteredReasons?: string[];
|
|
2732
|
+
/** List of video bytes or Cloud Storage URIs of the generated videos. */
|
|
2733
|
+
videos?: GoogleCloudAiplatformV1GenerateVideoResponseVideo[];
|
|
2734
|
+
}
|
|
2735
|
+
interface GoogleCloudAiplatformV1GenerateVideoResponseVideo {
|
|
2736
|
+
/** Base64 encoded bytes string representing the video. */
|
|
2737
|
+
bytesBase64Encoded?: string;
|
|
2738
|
+
/** Cloud Storage URI where the generated video is written. */
|
|
2739
|
+
gcsUri?: string;
|
|
2740
|
+
/** The MIME type of the content of the video. - video/mp4 */
|
|
2741
|
+
mimeType?: string;
|
|
2742
|
+
}
|
|
2708
2743
|
interface GoogleCloudAiplatformV1GenerationConfig {
|
|
2709
2744
|
/** Optional. If enabled, audio timestamp will be included in the request to the model. */
|
|
2710
2745
|
audioTimestamp?: boolean;
|
|
@@ -3524,8 +3559,6 @@ declare namespace gapi.client {
|
|
|
3524
3559
|
acceleratorType?: string;
|
|
3525
3560
|
/** 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. */
|
|
3526
3561
|
machineType?: string;
|
|
3527
|
-
/** Optional. Immutable. The number of nodes per replica for multihost GPU deployments. */
|
|
3528
|
-
multihostGpuNodeCount?: number;
|
|
3529
3562
|
/** Optional. Immutable. Configuration controlling how this resource pool consumes reservation. */
|
|
3530
3563
|
reservationAffinity?: GoogleCloudAiplatformV1ReservationAffinity;
|
|
3531
3564
|
/** Immutable. The topology of the TPUs. Corresponds to the TPU topologies available from GKE. (Example: tpu_topology: "2x2x1"). */
|
|
@@ -5606,9 +5639,17 @@ declare namespace gapi.client {
|
|
|
5606
5639
|
interface GoogleCloudAiplatformV1ReasoningEngineSpec {
|
|
5607
5640
|
/** Optional. Declarations for object class methods in OpenAPI specification format. */
|
|
5608
5641
|
classMethods?: Array<{[P in string]: any}>;
|
|
5642
|
+
/** Optional. The specification of a Reasoning Engine deployment. */
|
|
5643
|
+
deploymentSpec?: GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec;
|
|
5609
5644
|
/** Required. User provided package spec of the ReasoningEngine. */
|
|
5610
5645
|
packageSpec?: GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec;
|
|
5611
5646
|
}
|
|
5647
|
+
interface GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec {
|
|
5648
|
+
/** Optional. Environment variables to be set with the Reasoning Engine deployment. The environment variables can be updated through the UpdateReasoningEngine API. */
|
|
5649
|
+
env?: GoogleCloudAiplatformV1EnvVar[];
|
|
5650
|
+
/** 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. */
|
|
5651
|
+
secretEnv?: GoogleCloudAiplatformV1SecretEnvVar[];
|
|
5652
|
+
}
|
|
5612
5653
|
interface GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec {
|
|
5613
5654
|
/** Optional. The Cloud Storage URI of the dependency files in tar.gz format. */
|
|
5614
5655
|
dependencyFilesGcsUri?: string;
|
|
@@ -5651,7 +5692,7 @@ declare namespace gapi.client {
|
|
|
5651
5692
|
key?: string;
|
|
5652
5693
|
/** Required. Specifies the reservation affinity type. */
|
|
5653
5694
|
reservationAffinityType?: string;
|
|
5654
|
-
/** Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation. */
|
|
5695
|
+
/** Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation or reservation block. */
|
|
5655
5696
|
values?: string[];
|
|
5656
5697
|
}
|
|
5657
5698
|
interface GoogleCloudAiplatformV1ResourcePool {
|
|
@@ -7461,6 +7502,18 @@ declare namespace gapi.client {
|
|
|
7461
7502
|
/** The nearest neighbors of the query entity. */
|
|
7462
7503
|
nearestNeighbors?: GoogleCloudAiplatformV1NearestNeighbors;
|
|
7463
7504
|
}
|
|
7505
|
+
interface GoogleCloudAiplatformV1SecretEnvVar {
|
|
7506
|
+
/** Required. Name of the secret environment variable. */
|
|
7507
|
+
name?: string;
|
|
7508
|
+
/** Required. Reference to a secret stored in the Cloud Secret Manager that will provide the value for this environment variable. */
|
|
7509
|
+
secretRef?: GoogleCloudAiplatformV1SecretRef;
|
|
7510
|
+
}
|
|
7511
|
+
interface GoogleCloudAiplatformV1SecretRef {
|
|
7512
|
+
/** 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. */
|
|
7513
|
+
secret?: string;
|
|
7514
|
+
/** The Cloud Secret Manager secret version. Can be 'latest' for the latest version, an integer for a specific version, or a version alias. */
|
|
7515
|
+
version?: string;
|
|
7516
|
+
}
|
|
7464
7517
|
interface GoogleCloudAiplatformV1Segment {
|
|
7465
7518
|
/** Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero. */
|
|
7466
7519
|
endIndex?: number;
|
|
@@ -8158,8 +8211,10 @@ declare namespace gapi.client {
|
|
|
8158
8211
|
tokens?: string[];
|
|
8159
8212
|
}
|
|
8160
8213
|
interface GoogleCloudAiplatformV1Tool {
|
|
8161
|
-
/** Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
|
|
8214
|
+
/** Optional. CodeExecution tool type. Enables the model to execute code as part of generation. */
|
|
8162
8215
|
codeExecution?: any;
|
|
8216
|
+
/** Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance. */
|
|
8217
|
+
enterpriseWebSearch?: any;
|
|
8163
8218
|
/** 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. */
|
|
8164
8219
|
functionDeclarations?: GoogleCloudAiplatformV1FunctionDeclaration[];
|
|
8165
8220
|
/** Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
|
|
@@ -8691,7 +8746,7 @@ declare namespace gapi.client {
|
|
|
8691
8746
|
stringValue?: string;
|
|
8692
8747
|
}
|
|
8693
8748
|
interface GoogleCloudAiplatformV1VertexAISearch {
|
|
8694
|
-
/**
|
|
8749
|
+
/** Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` */
|
|
8695
8750
|
datastore?: string;
|
|
8696
8751
|
}
|
|
8697
8752
|
interface GoogleCloudAiplatformV1VertexRagStore {
|