@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20240404 → 0.0.20240417
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 +38 -33
- 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: 20240417
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -41,6 +41,8 @@ declare namespace gapi.client {
|
|
|
41
41
|
interface CloudAiLargeModelsVisionGenerateVideoResponse {
|
|
42
42
|
/** The generates samples. */
|
|
43
43
|
generatedSamples?: CloudAiLargeModelsVisionMedia[];
|
|
44
|
+
/** Returns rai error message for filtered videos. */
|
|
45
|
+
raiErrorMessage?: string;
|
|
44
46
|
/** Returns if any videos were filtered due to RAI policies. */
|
|
45
47
|
raiMediaFilteredCount?: number;
|
|
46
48
|
/** Returns rai failure reasons if any. */
|
|
@@ -1396,6 +1398,8 @@ declare namespace gapi.client {
|
|
|
1396
1398
|
network?: string;
|
|
1397
1399
|
/** Configures the request-response logging for online prediction. */
|
|
1398
1400
|
predictRequestResponseLoggingConfig?: GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig;
|
|
1401
|
+
/** Optional. Configuration for private service connect. network and private_service_connect_config are mutually exclusive. */
|
|
1402
|
+
privateServiceConnectConfig?: GoogleCloudAiplatformV1PrivateServiceConnectConfig;
|
|
1399
1403
|
/** A map from a DeployedModel's ID to the percentage of this Endpoint's traffic that should be forwarded to that DeployedModel. If a DeployedModel's ID is not listed in this map, then it receives no traffic. The traffic percentage values must add up to 100, or map must be empty if the Endpoint is to not accept any traffic at a moment. */
|
|
1400
1404
|
trafficSplit?: {[P in string]: number};
|
|
1401
1405
|
/** Output only. Timestamp when this Endpoint was last updated. */
|
|
@@ -2257,7 +2261,7 @@ declare namespace gapi.client {
|
|
|
2257
2261
|
maxOutputTokens?: number;
|
|
2258
2262
|
/** Optional. Positive penalties. */
|
|
2259
2263
|
presencePenalty?: number;
|
|
2260
|
-
/** Optional. Output response mimetype of the generated candidate text. Supported mimetype: `text/plain`: (default) Text output. `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature. */
|
|
2264
|
+
/** Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature. */
|
|
2261
2265
|
responseMimeType?: string;
|
|
2262
2266
|
/** Optional. Stop sequences. */
|
|
2263
2267
|
stopSequences?: string[];
|
|
@@ -2280,27 +2284,7 @@ declare namespace gapi.client {
|
|
|
2280
2284
|
/** Required. The public base model URI. */
|
|
2281
2285
|
baseModelUri?: string;
|
|
2282
2286
|
}
|
|
2283
|
-
interface GoogleCloudAiplatformV1GoogleSearchRetrieval {
|
|
2284
|
-
/** Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation. */
|
|
2285
|
-
disableAttribution?: boolean;
|
|
2286
|
-
}
|
|
2287
|
-
interface GoogleCloudAiplatformV1GroundingAttribution {
|
|
2288
|
-
/** Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1. 1 is the most confident. */
|
|
2289
|
-
confidenceScore?: number;
|
|
2290
|
-
/** Output only. Segment of the content this attribution belongs to. */
|
|
2291
|
-
segment?: GoogleCloudAiplatformV1Segment;
|
|
2292
|
-
/** Optional. Attribution from the web. */
|
|
2293
|
-
web?: GoogleCloudAiplatformV1GroundingAttributionWeb;
|
|
2294
|
-
}
|
|
2295
|
-
interface GoogleCloudAiplatformV1GroundingAttributionWeb {
|
|
2296
|
-
/** Output only. Title of the attribution. */
|
|
2297
|
-
title?: string;
|
|
2298
|
-
/** Output only. URI reference of the attribution. */
|
|
2299
|
-
uri?: string;
|
|
2300
|
-
}
|
|
2301
2287
|
interface GoogleCloudAiplatformV1GroundingMetadata {
|
|
2302
|
-
/** Optional. List of grounding attributions. */
|
|
2303
|
-
groundingAttributions?: GoogleCloudAiplatformV1GroundingAttribution[];
|
|
2304
2288
|
/** Optional. Web search queries for the following-up web search. */
|
|
2305
2289
|
webSearchQueries?: string[];
|
|
2306
2290
|
}
|
|
@@ -5848,14 +5832,6 @@ declare namespace gapi.client {
|
|
|
5848
5832
|
/** The nearest neighbors of the query entity. */
|
|
5849
5833
|
nearestNeighbors?: GoogleCloudAiplatformV1NearestNeighbors;
|
|
5850
5834
|
}
|
|
5851
|
-
interface GoogleCloudAiplatformV1Segment {
|
|
5852
|
-
/** Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero. */
|
|
5853
|
-
endIndex?: number;
|
|
5854
|
-
/** Output only. The index of a Part object within its parent Content object. */
|
|
5855
|
-
partIndex?: number;
|
|
5856
|
-
/** Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero. */
|
|
5857
|
-
startIndex?: number;
|
|
5858
|
-
}
|
|
5859
5835
|
interface GoogleCloudAiplatformV1ServiceAccountSpec {
|
|
5860
5836
|
/** Required. If true, custom user-managed service account is enforced to run any workloads (for example, Vertex Jobs) on the resource. Otherwise, uses the [Vertex AI Custom Code Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents). */
|
|
5861
5837
|
enableCustomServiceAccount?: boolean;
|
|
@@ -6360,8 +6336,6 @@ declare namespace gapi.client {
|
|
|
6360
6336
|
interface GoogleCloudAiplatformV1Tool {
|
|
6361
6337
|
/** 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 64 function declarations can be provided. */
|
|
6362
6338
|
functionDeclarations?: GoogleCloudAiplatformV1FunctionDeclaration[];
|
|
6363
|
-
/** Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search. */
|
|
6364
|
-
googleSearchRetrieval?: GoogleCloudAiplatformV1GoogleSearchRetrieval;
|
|
6365
6339
|
/** Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation. */
|
|
6366
6340
|
retrieval?: GoogleCloudAiplatformV1Retrieval;
|
|
6367
6341
|
}
|
|
@@ -6623,7 +6597,7 @@ declare namespace gapi.client {
|
|
|
6623
6597
|
stringValue?: string;
|
|
6624
6598
|
}
|
|
6625
6599
|
interface GoogleCloudAiplatformV1VertexAISearch {
|
|
6626
|
-
/** Required. Fully-qualified Vertex AI Search's datastore resource ID. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore} */
|
|
6600
|
+
/** Required. Fully-qualified Vertex AI Search's datastore resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` */
|
|
6627
6601
|
datastore?: string;
|
|
6628
6602
|
}
|
|
6629
6603
|
interface GoogleCloudAiplatformV1VideoMetadata {
|
|
@@ -6987,9 +6961,16 @@ declare namespace gapi.client {
|
|
|
6987
6961
|
interface LearningGenaiRootCodeyCompletionMetadata {
|
|
6988
6962
|
checkpoints?: LearningGenaiRootCodeyCheckpoint[];
|
|
6989
6963
|
}
|
|
6964
|
+
interface LearningGenaiRootCodeyGenerationMetadata {
|
|
6965
|
+
/** Last state of the sample before getting dropped/returned. */
|
|
6966
|
+
output?: string;
|
|
6967
|
+
/** Last Codey postprocessing step for this sample before getting dropped/returned. */
|
|
6968
|
+
postInferenceStep?: string;
|
|
6969
|
+
}
|
|
6990
6970
|
interface LearningGenaiRootCodeyOutput {
|
|
6991
6971
|
codeyChatMetadata?: LearningGenaiRootCodeyChatMetadata;
|
|
6992
6972
|
codeyCompletionMetadata?: LearningGenaiRootCodeyCompletionMetadata;
|
|
6973
|
+
codeyGenerationMetadata?: LearningGenaiRootCodeyGenerationMetadata;
|
|
6993
6974
|
}
|
|
6994
6975
|
interface LearningGenaiRootCodeyTruncatorMetadata {
|
|
6995
6976
|
/** Index of the current sample that trims off truncated text. */
|
|
@@ -6997,6 +6978,28 @@ declare namespace gapi.client {
|
|
|
6997
6978
|
/** Text that was truncated at a specific checkpoint. */
|
|
6998
6979
|
truncatedText?: string;
|
|
6999
6980
|
}
|
|
6981
|
+
interface LearningGenaiRootControlDecodingConfigThreshold {
|
|
6982
|
+
policy?: string;
|
|
6983
|
+
scoreMax?: number;
|
|
6984
|
+
}
|
|
6985
|
+
interface LearningGenaiRootControlDecodingRecord {
|
|
6986
|
+
/** Prefixes feeded into scorer. */
|
|
6987
|
+
prefixes?: string;
|
|
6988
|
+
/** Per policy scores returned from Scorer. Expect to have the same number of scores as in `thresholds`. */
|
|
6989
|
+
scores?: LearningGenaiRootControlDecodingRecordPolicyScore[];
|
|
6990
|
+
/** Suffixes feeded into scorer. */
|
|
6991
|
+
suffiexes?: string;
|
|
6992
|
+
/** Per policy thresholds from user config. */
|
|
6993
|
+
thresholds?: LearningGenaiRootControlDecodingConfigThreshold[];
|
|
6994
|
+
}
|
|
6995
|
+
interface LearningGenaiRootControlDecodingRecordPolicyScore {
|
|
6996
|
+
policy?: string;
|
|
6997
|
+
score?: number;
|
|
6998
|
+
}
|
|
6999
|
+
interface LearningGenaiRootControlDecodingRecords {
|
|
7000
|
+
/** One ControlDecodingRecord record maps to one rewind. */
|
|
7001
|
+
records?: LearningGenaiRootControlDecodingRecord[];
|
|
7002
|
+
}
|
|
7000
7003
|
interface LearningGenaiRootDataProviderOutput {
|
|
7001
7004
|
name?: string;
|
|
7002
7005
|
/** If set, this DataProvider failed and this is the error message. */
|
|
@@ -7026,6 +7029,8 @@ declare namespace gapi.client {
|
|
|
7026
7029
|
raiOutput?: LearningGenaiRootRAIOutput;
|
|
7027
7030
|
raiResult?: CloudAiNlLlmProtoServiceRaiResult;
|
|
7028
7031
|
raiSignal?: CloudAiNlLlmProtoServiceRaiSignal;
|
|
7032
|
+
/** Number of rewinds by controlled decoding. */
|
|
7033
|
+
records?: LearningGenaiRootControlDecodingRecords;
|
|
7029
7034
|
streamRecitationResult?: LanguageLabsAidaTrustRecitationProtoStreamRecitationResult;
|
|
7030
7035
|
takedownResult?: LearningGenaiRootTakedownResult;
|
|
7031
7036
|
toxicityResult?: LearningGenaiRootToxicityResult;
|