@maxim_mazurok/gapi.client.aiplatform-v1 0.2.20250902 → 0.2.20250916
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 +262 -49
- 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: 20250916
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1595,7 +1595,7 @@ declare namespace gapi.client {
|
|
|
1595
1595
|
systemLabels?: {[P in string]: string};
|
|
1596
1596
|
}
|
|
1597
1597
|
interface GoogleCloudAiplatformV1DeployRequestEndpointConfig {
|
|
1598
|
-
/** Optional. By default, if dedicated endpoint is enabled, 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. If this field is set to true, the dedicated endpoint will be disabled and the deployed model will be exposed through the shared DNS {region}-aiplatform.googleapis.com. */
|
|
1598
|
+
/** Optional. By default, if dedicated endpoint is enabled and private service connect config is not set, the endpoint will be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns]. If private service connect config is set, the endpoint will be exposed through private service connect. 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. If this field is set to true, the dedicated endpoint will be disabled and the deployed model will be exposed through the shared DNS {region}-aiplatform.googleapis.com. */
|
|
1599
1599
|
dedicatedEndpointDisabled?: boolean;
|
|
1600
1600
|
/** Optional. Deprecated. Use dedicated_endpoint_disabled instead. 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. */
|
|
1601
1601
|
dedicatedEndpointEnabled?: boolean;
|
|
@@ -1603,6 +1603,8 @@ declare namespace gapi.client {
|
|
|
1603
1603
|
endpointDisplayName?: string;
|
|
1604
1604
|
/** Optional. Immutable. The ID to use for endpoint, which will become the final component of the endpoint resource name. If not provided, Vertex AI will generate a value for this ID. If the first character is a letter, this value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The last character must be a letter or number. If the first character is a number, this value may be up to 9 characters, and valid characters are `[0-9]` with no leading zeros. When using HTTP/JSON, this field is populated based on a query string argument, such as `?endpoint_id=12345`. This is the fallback for fields that are not included in either the URI or the body. */
|
|
1605
1605
|
endpointUserId?: string;
|
|
1606
|
+
/** Optional. Configuration for private service connect. If set, the endpoint will be exposed through private service connect. */
|
|
1607
|
+
privateServiceConnectConfig?: GoogleCloudAiplatformV1PrivateServiceConnectConfig;
|
|
1606
1608
|
}
|
|
1607
1609
|
interface GoogleCloudAiplatformV1DeployRequestModelConfig {
|
|
1608
1610
|
/** Optional. Whether the user accepts the End User License Agreement (EULA) for the model. */
|
|
@@ -2136,8 +2138,6 @@ declare namespace gapi.client {
|
|
|
2136
2138
|
model?: string;
|
|
2137
2139
|
}
|
|
2138
2140
|
interface GoogleCloudAiplatformV1EvaluationRunMetric {
|
|
2139
|
-
/** Spec for a computation based metric. */
|
|
2140
|
-
computationBasedMetricSpec?: GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec;
|
|
2141
2141
|
/** Spec for an LLM based metric. */
|
|
2142
2142
|
llmBasedMetricSpec?: GoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec;
|
|
2143
2143
|
/** Required. The name of the metric. */
|
|
@@ -2147,12 +2147,6 @@ declare namespace gapi.client {
|
|
|
2147
2147
|
/** Spec for rubric based metric. */
|
|
2148
2148
|
rubricBasedMetricSpec?: GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec;
|
|
2149
2149
|
}
|
|
2150
|
-
interface GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec {
|
|
2151
|
-
/** Optional. A map of parameters for the metric, e.g. {"rouge_type": "rougeL"}. */
|
|
2152
|
-
parameters?: {[P in string]: any};
|
|
2153
|
-
/** Required. The type of the computation based metric. */
|
|
2154
|
-
type?: string;
|
|
2155
|
-
}
|
|
2156
2150
|
interface GoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec {
|
|
2157
2151
|
/** Optional. Optional additional configuration for the metric. */
|
|
2158
2152
|
additionalConfig?: {[P in string]: any};
|
|
@@ -3242,35 +3236,35 @@ declare namespace gapi.client {
|
|
|
3242
3236
|
usageMetadata?: GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata;
|
|
3243
3237
|
}
|
|
3244
3238
|
interface GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback {
|
|
3245
|
-
/** Output only.
|
|
3239
|
+
/** Output only. The reason why the prompt was blocked. */
|
|
3246
3240
|
blockReason?: string;
|
|
3247
|
-
/** Output only. A readable
|
|
3241
|
+
/** Output only. A readable message that explains the reason why the prompt was blocked. */
|
|
3248
3242
|
blockReasonMessage?: string;
|
|
3249
|
-
/** Output only.
|
|
3243
|
+
/** Output only. A list of safety ratings for the prompt. There is one rating per category. */
|
|
3250
3244
|
safetyRatings?: GoogleCloudAiplatformV1SafetyRating[];
|
|
3251
3245
|
}
|
|
3252
3246
|
interface GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata {
|
|
3253
|
-
/** Output only.
|
|
3247
|
+
/** Output only. The number of tokens in the cached content that was used for this request. */
|
|
3254
3248
|
cachedContentTokenCount?: number;
|
|
3255
|
-
/** Output only.
|
|
3249
|
+
/** Output only. A detailed breakdown of the token count for each modality in the cached content. */
|
|
3256
3250
|
cacheTokensDetails?: GoogleCloudAiplatformV1ModalityTokenCount[];
|
|
3257
|
-
/**
|
|
3251
|
+
/** The total number of tokens in the generated candidates. */
|
|
3258
3252
|
candidatesTokenCount?: number;
|
|
3259
|
-
/** Output only.
|
|
3253
|
+
/** Output only. A detailed breakdown of the token count for each modality in the generated candidates. */
|
|
3260
3254
|
candidatesTokensDetails?: GoogleCloudAiplatformV1ModalityTokenCount[];
|
|
3261
|
-
/**
|
|
3255
|
+
/** The total number of tokens in the prompt. This includes any text, images, or other media provided in the request. When `cached_content` is set, this also includes the number of tokens in the cached content. */
|
|
3262
3256
|
promptTokenCount?: number;
|
|
3263
|
-
/** Output only.
|
|
3257
|
+
/** Output only. A detailed breakdown of the token count for each modality in the prompt. */
|
|
3264
3258
|
promptTokensDetails?: GoogleCloudAiplatformV1ModalityTokenCount[];
|
|
3265
|
-
/** Output only.
|
|
3259
|
+
/** Output only. The number of tokens that were part of the model's generated "thoughts" output, if applicable. */
|
|
3266
3260
|
thoughtsTokenCount?: number;
|
|
3267
|
-
/** Output only.
|
|
3261
|
+
/** Output only. The number of tokens in the results from tool executions, which are provided back to the model as input, if applicable. */
|
|
3268
3262
|
toolUsePromptTokenCount?: number;
|
|
3269
|
-
/** Output only.
|
|
3263
|
+
/** Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input. */
|
|
3270
3264
|
toolUsePromptTokensDetails?: GoogleCloudAiplatformV1ModalityTokenCount[];
|
|
3271
|
-
/**
|
|
3265
|
+
/** The total number of tokens for the entire request. This is the sum of `prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`, and `thoughts_token_count`. */
|
|
3272
3266
|
totalTokenCount?: number;
|
|
3273
|
-
/** Output only.
|
|
3267
|
+
/** Output only. The traffic type for this request. */
|
|
3274
3268
|
trafficType?: string;
|
|
3275
3269
|
}
|
|
3276
3270
|
interface GoogleCloudAiplatformV1GenerateInstanceRubricsRequest {
|
|
@@ -3403,7 +3397,10 @@ declare namespace gapi.client {
|
|
|
3403
3397
|
/** Required. The type of the Google Drive resource. */
|
|
3404
3398
|
resourceType?: string;
|
|
3405
3399
|
}
|
|
3406
|
-
interface GoogleCloudAiplatformV1GoogleMaps {
|
|
3400
|
+
interface GoogleCloudAiplatformV1GoogleMaps {
|
|
3401
|
+
/** Optional. If true, include the widget context token in the response. */
|
|
3402
|
+
enableWidget?: boolean;
|
|
3403
|
+
}
|
|
3407
3404
|
interface GoogleCloudAiplatformV1GoogleSearchRetrieval {
|
|
3408
3405
|
/** Specifies the dynamic retrieval configuration for the given source. */
|
|
3409
3406
|
dynamicRetrievalConfig?: GoogleCloudAiplatformV1DynamicRetrievalConfig;
|
|
@@ -3445,38 +3442,24 @@ declare namespace gapi.client {
|
|
|
3445
3442
|
placeAnswerSources?: GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources;
|
|
3446
3443
|
/** This Place's resource name, in `places/{place_id}` format. Can be used to look up the Place. */
|
|
3447
3444
|
placeId?: string;
|
|
3448
|
-
/** Text of the
|
|
3445
|
+
/** Text of the place answer. */
|
|
3449
3446
|
text?: string;
|
|
3450
|
-
/** Title of the
|
|
3447
|
+
/** Title of the place. */
|
|
3451
3448
|
title?: string;
|
|
3452
|
-
/** URI reference of the
|
|
3449
|
+
/** URI reference of the place. */
|
|
3453
3450
|
uri?: string;
|
|
3454
3451
|
}
|
|
3455
3452
|
interface GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources {
|
|
3456
|
-
/** A link where users can flag a problem with the generated answer. */
|
|
3457
|
-
flagContentUri?: string;
|
|
3458
3453
|
/** Snippets of reviews that are used to generate the answer. */
|
|
3459
3454
|
reviewSnippets?: GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet[];
|
|
3460
3455
|
}
|
|
3461
|
-
interface GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution {
|
|
3462
|
-
/** Name of the author of the Photo or Review. */
|
|
3463
|
-
displayName?: string;
|
|
3464
|
-
/** Profile photo URI of the author of the Photo or Review. */
|
|
3465
|
-
photoUri?: string;
|
|
3466
|
-
/** URI of the author of the Photo or Review. */
|
|
3467
|
-
uri?: string;
|
|
3468
|
-
}
|
|
3469
3456
|
interface GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
|
|
3470
|
-
/** This review's author. */
|
|
3471
|
-
authorAttribution?: GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution;
|
|
3472
|
-
/** A link where users can flag a problem with the review. */
|
|
3473
|
-
flagContentUri?: string;
|
|
3474
3457
|
/** A link to show the review on Google Maps. */
|
|
3475
3458
|
googleMapsUri?: string;
|
|
3476
|
-
/**
|
|
3477
|
-
|
|
3478
|
-
/**
|
|
3479
|
-
|
|
3459
|
+
/** Id of the review referencing the place. */
|
|
3460
|
+
reviewId?: string;
|
|
3461
|
+
/** Title of the review. */
|
|
3462
|
+
title?: string;
|
|
3480
3463
|
}
|
|
3481
3464
|
interface GoogleCloudAiplatformV1GroundingChunkRetrievedContext {
|
|
3482
3465
|
/** Output only. The full document name for the referenced Vertex AI Search document. */
|
|
@@ -3509,9 +3492,17 @@ declare namespace gapi.client {
|
|
|
3509
3492
|
retrievalMetadata?: GoogleCloudAiplatformV1RetrievalMetadata;
|
|
3510
3493
|
/** Optional. Google search entry for the following-up web searches. */
|
|
3511
3494
|
searchEntryPoint?: GoogleCloudAiplatformV1SearchEntryPoint;
|
|
3495
|
+
/** Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding. */
|
|
3496
|
+
sourceFlaggingUris?: GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri[];
|
|
3512
3497
|
/** Optional. Web search queries for the following-up web search. */
|
|
3513
3498
|
webSearchQueries?: string[];
|
|
3514
3499
|
}
|
|
3500
|
+
interface GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri {
|
|
3501
|
+
/** A link where users can flag a problem with the source (place or review). */
|
|
3502
|
+
flagContentUri?: string;
|
|
3503
|
+
/** Id of the place or review. */
|
|
3504
|
+
sourceId?: string;
|
|
3505
|
+
}
|
|
3515
3506
|
interface GoogleCloudAiplatformV1GroundingSupport {
|
|
3516
3507
|
/** Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. For Gemini 2.0 and before, this list must have the same size as the grounding_chunk_indices. For Gemini 2.5 and after, this list will be empty and should be ignored. */
|
|
3517
3508
|
confidenceScores?: number[];
|
|
@@ -3834,6 +3825,12 @@ declare namespace gapi.client {
|
|
|
3834
3825
|
/** Required. The number of steps for approximating the path integral. A good value to start is 50 and gradually increase until the sum to diff property is within the desired error range. Valid range of its value is [1, 100], inclusively. */
|
|
3835
3826
|
stepCount?: number;
|
|
3836
3827
|
}
|
|
3828
|
+
interface GoogleCloudAiplatformV1InvokeRequest {
|
|
3829
|
+
/** ID of the DeployedModel that serves the invoke request. */
|
|
3830
|
+
deployedModelId?: string;
|
|
3831
|
+
/** The invoke method input. Supports HTTP headers and arbitrary data payload. */
|
|
3832
|
+
httpBody?: GoogleApiHttpBody;
|
|
3833
|
+
}
|
|
3837
3834
|
interface GoogleCloudAiplatformV1JiraSource {
|
|
3838
3835
|
/** Required. The Jira queries. */
|
|
3839
3836
|
jiraQueries?: GoogleCloudAiplatformV1JiraSourceJiraQueries[];
|
|
@@ -4196,6 +4193,22 @@ declare namespace gapi.client {
|
|
|
4196
4193
|
/** List of TuningJobs in the requested page. */
|
|
4197
4194
|
tuningJobs?: GoogleCloudAiplatformV1TuningJob[];
|
|
4198
4195
|
}
|
|
4196
|
+
interface GoogleCloudAiplatformV1LLMBasedMetricSpec {
|
|
4197
|
+
/** Optional. Optional additional configuration for the metric. */
|
|
4198
|
+
additionalConfig?: {[P in string]: any};
|
|
4199
|
+
/** Optional. Optional configuration for the judge LLM (Autorater). */
|
|
4200
|
+
judgeAutoraterConfig?: GoogleCloudAiplatformV1AutoraterConfig;
|
|
4201
|
+
/** Required. Template for the prompt sent to the judge model. */
|
|
4202
|
+
metricPromptTemplate?: string;
|
|
4203
|
+
/** Dynamically generate rubrics using a predefined spec. */
|
|
4204
|
+
predefinedRubricGenerationSpec?: GoogleCloudAiplatformV1PredefinedMetricSpec;
|
|
4205
|
+
/** Dynamically generate rubrics using this specification. */
|
|
4206
|
+
rubricGenerationSpec?: GoogleCloudAiplatformV1RubricGenerationSpec;
|
|
4207
|
+
/** Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance. */
|
|
4208
|
+
rubricGroupKey?: string;
|
|
4209
|
+
/** Optional. System instructions for the judge model. */
|
|
4210
|
+
systemInstruction?: string;
|
|
4211
|
+
}
|
|
4199
4212
|
interface GoogleCloudAiplatformV1LogprobsResult {
|
|
4200
4213
|
/** Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates. */
|
|
4201
4214
|
chosenCandidates?: GoogleCloudAiplatformV1LogprobsResultCandidate[];
|
|
@@ -4297,6 +4310,8 @@ declare namespace gapi.client {
|
|
|
4297
4310
|
bleuSpec?: GoogleCloudAiplatformV1BleuSpec;
|
|
4298
4311
|
/** Spec for exact match metric. */
|
|
4299
4312
|
exactMatchSpec?: any;
|
|
4313
|
+
/** Spec for an LLM based metric. */
|
|
4314
|
+
llmBasedMetricSpec?: GoogleCloudAiplatformV1LLMBasedMetricSpec;
|
|
4300
4315
|
/** Spec for pairwise metric. */
|
|
4301
4316
|
pairwiseMetricSpec?: GoogleCloudAiplatformV1PairwiseMetricSpec;
|
|
4302
4317
|
/** Spec for pointwise metric. */
|
|
@@ -9184,10 +9199,10 @@ declare namespace gapi.client {
|
|
|
9184
9199
|
/** 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 512 function declarations can be provided. */
|
|
9185
9200
|
functionDeclarations?: GoogleCloudAiplatformV1FunctionDeclaration[];
|
|
9186
9201
|
/** Optional. GoogleMaps tool type. Tool to support Google Maps in Model. */
|
|
9187
|
-
googleMaps?:
|
|
9202
|
+
googleMaps?: GoogleCloudAiplatformV1GoogleMaps;
|
|
9188
9203
|
/** Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
|
|
9189
9204
|
googleSearch?: GoogleCloudAiplatformV1ToolGoogleSearch;
|
|
9190
|
-
/** Optional.
|
|
9205
|
+
/** Optional. Specialized retrieval tool that is powered by Google Search. */
|
|
9191
9206
|
googleSearchRetrieval?: GoogleCloudAiplatformV1GoogleSearchRetrieval;
|
|
9192
9207
|
/** 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. */
|
|
9193
9208
|
retrieval?: GoogleCloudAiplatformV1Retrieval;
|
|
@@ -14163,6 +14178,201 @@ declare namespace gapi.client {
|
|
|
14163
14178
|
body: GoogleApiHttpBody,
|
|
14164
14179
|
): Request<GoogleApiHttpBody>;
|
|
14165
14180
|
}
|
|
14181
|
+
interface InvokeResource {
|
|
14182
|
+
/** Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, invoke_route_prefix must be set to allow the paths that will be specified in the request. */
|
|
14183
|
+
invoke(request: {
|
|
14184
|
+
/** V1 error format. */
|
|
14185
|
+
'$.xgafv'?: string;
|
|
14186
|
+
/** OAuth access token. */
|
|
14187
|
+
access_token?: string;
|
|
14188
|
+
/** Data format for response. */
|
|
14189
|
+
alt?: string;
|
|
14190
|
+
/** JSONP */
|
|
14191
|
+
callback?: string;
|
|
14192
|
+
/** ID of the DeployedModel that serves the invoke request. */
|
|
14193
|
+
deployedModelId: string;
|
|
14194
|
+
/** Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
14195
|
+
endpoint: string;
|
|
14196
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
14197
|
+
fields?: string;
|
|
14198
|
+
invokeId: string;
|
|
14199
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
14200
|
+
key?: string;
|
|
14201
|
+
/** OAuth 2.0 token for the current user. */
|
|
14202
|
+
oauth_token?: string;
|
|
14203
|
+
/** Returns response with indentations and line breaks. */
|
|
14204
|
+
prettyPrint?: boolean;
|
|
14205
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
14206
|
+
quotaUser?: string;
|
|
14207
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
14208
|
+
upload_protocol?: string;
|
|
14209
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
14210
|
+
uploadType?: string;
|
|
14211
|
+
/** Request body */
|
|
14212
|
+
resource: GoogleCloudAiplatformV1InvokeRequest;
|
|
14213
|
+
}): Request<GoogleApiHttpBody>;
|
|
14214
|
+
invoke(
|
|
14215
|
+
request: {
|
|
14216
|
+
/** V1 error format. */
|
|
14217
|
+
'$.xgafv'?: string;
|
|
14218
|
+
/** OAuth access token. */
|
|
14219
|
+
access_token?: string;
|
|
14220
|
+
/** Data format for response. */
|
|
14221
|
+
alt?: string;
|
|
14222
|
+
/** JSONP */
|
|
14223
|
+
callback?: string;
|
|
14224
|
+
/** ID of the DeployedModel that serves the invoke request. */
|
|
14225
|
+
deployedModelId: string;
|
|
14226
|
+
/** Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
14227
|
+
endpoint: string;
|
|
14228
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
14229
|
+
fields?: string;
|
|
14230
|
+
invokeId: string;
|
|
14231
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
14232
|
+
key?: string;
|
|
14233
|
+
/** OAuth 2.0 token for the current user. */
|
|
14234
|
+
oauth_token?: string;
|
|
14235
|
+
/** Returns response with indentations and line breaks. */
|
|
14236
|
+
prettyPrint?: boolean;
|
|
14237
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
14238
|
+
quotaUser?: string;
|
|
14239
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
14240
|
+
upload_protocol?: string;
|
|
14241
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
14242
|
+
uploadType?: string;
|
|
14243
|
+
},
|
|
14244
|
+
body: GoogleCloudAiplatformV1InvokeRequest,
|
|
14245
|
+
): Request<GoogleApiHttpBody>;
|
|
14246
|
+
}
|
|
14247
|
+
interface DeployedModelsResource {
|
|
14248
|
+
invoke: InvokeResource;
|
|
14249
|
+
}
|
|
14250
|
+
interface InvokeResource {
|
|
14251
|
+
/** Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, invoke_route_prefix must be set to allow the paths that will be specified in the request. */
|
|
14252
|
+
invoke(request: {
|
|
14253
|
+
/** V1 error format. */
|
|
14254
|
+
'$.xgafv'?: string;
|
|
14255
|
+
/** OAuth access token. */
|
|
14256
|
+
access_token?: string;
|
|
14257
|
+
/** Data format for response. */
|
|
14258
|
+
alt?: string;
|
|
14259
|
+
/** JSONP */
|
|
14260
|
+
callback?: string;
|
|
14261
|
+
/** Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
14262
|
+
endpoint: string;
|
|
14263
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
14264
|
+
fields?: string;
|
|
14265
|
+
invokeId: string;
|
|
14266
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
14267
|
+
key?: string;
|
|
14268
|
+
/** OAuth 2.0 token for the current user. */
|
|
14269
|
+
oauth_token?: string;
|
|
14270
|
+
/** Returns response with indentations and line breaks. */
|
|
14271
|
+
prettyPrint?: boolean;
|
|
14272
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
14273
|
+
quotaUser?: string;
|
|
14274
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
14275
|
+
upload_protocol?: string;
|
|
14276
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
14277
|
+
uploadType?: string;
|
|
14278
|
+
/** Request body */
|
|
14279
|
+
resource: GoogleCloudAiplatformV1InvokeRequest;
|
|
14280
|
+
}): Request<GoogleApiHttpBody>;
|
|
14281
|
+
invoke(
|
|
14282
|
+
request: {
|
|
14283
|
+
/** V1 error format. */
|
|
14284
|
+
'$.xgafv'?: string;
|
|
14285
|
+
/** OAuth access token. */
|
|
14286
|
+
access_token?: string;
|
|
14287
|
+
/** Data format for response. */
|
|
14288
|
+
alt?: string;
|
|
14289
|
+
/** JSONP */
|
|
14290
|
+
callback?: string;
|
|
14291
|
+
/** Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
14292
|
+
endpoint: string;
|
|
14293
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
14294
|
+
fields?: string;
|
|
14295
|
+
invokeId: string;
|
|
14296
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
14297
|
+
key?: string;
|
|
14298
|
+
/** OAuth 2.0 token for the current user. */
|
|
14299
|
+
oauth_token?: string;
|
|
14300
|
+
/** Returns response with indentations and line breaks. */
|
|
14301
|
+
prettyPrint?: boolean;
|
|
14302
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
14303
|
+
quotaUser?: string;
|
|
14304
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
14305
|
+
upload_protocol?: string;
|
|
14306
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
14307
|
+
uploadType?: string;
|
|
14308
|
+
},
|
|
14309
|
+
body: GoogleCloudAiplatformV1InvokeRequest,
|
|
14310
|
+
): Request<GoogleApiHttpBody>;
|
|
14311
|
+
}
|
|
14312
|
+
interface OpenapiResource {
|
|
14313
|
+
/** Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, invoke_route_prefix must be set to allow the paths that will be specified in the request. */
|
|
14314
|
+
embeddings(request: {
|
|
14315
|
+
/** V1 error format. */
|
|
14316
|
+
'$.xgafv'?: string;
|
|
14317
|
+
/** OAuth access token. */
|
|
14318
|
+
access_token?: string;
|
|
14319
|
+
/** Data format for response. */
|
|
14320
|
+
alt?: string;
|
|
14321
|
+
/** JSONP */
|
|
14322
|
+
callback?: string;
|
|
14323
|
+
/** ID of the DeployedModel that serves the invoke request. */
|
|
14324
|
+
deployedModelId?: string;
|
|
14325
|
+
/** Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
14326
|
+
endpoint: string;
|
|
14327
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
14328
|
+
fields?: string;
|
|
14329
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
14330
|
+
key?: string;
|
|
14331
|
+
/** OAuth 2.0 token for the current user. */
|
|
14332
|
+
oauth_token?: string;
|
|
14333
|
+
/** Returns response with indentations and line breaks. */
|
|
14334
|
+
prettyPrint?: boolean;
|
|
14335
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
14336
|
+
quotaUser?: string;
|
|
14337
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
14338
|
+
upload_protocol?: string;
|
|
14339
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
14340
|
+
uploadType?: string;
|
|
14341
|
+
/** Request body */
|
|
14342
|
+
resource: GoogleApiHttpBody;
|
|
14343
|
+
}): Request<GoogleApiHttpBody>;
|
|
14344
|
+
embeddings(
|
|
14345
|
+
request: {
|
|
14346
|
+
/** V1 error format. */
|
|
14347
|
+
'$.xgafv'?: string;
|
|
14348
|
+
/** OAuth access token. */
|
|
14349
|
+
access_token?: string;
|
|
14350
|
+
/** Data format for response. */
|
|
14351
|
+
alt?: string;
|
|
14352
|
+
/** JSONP */
|
|
14353
|
+
callback?: string;
|
|
14354
|
+
/** ID of the DeployedModel that serves the invoke request. */
|
|
14355
|
+
deployedModelId?: string;
|
|
14356
|
+
/** Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
14357
|
+
endpoint: string;
|
|
14358
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
14359
|
+
fields?: string;
|
|
14360
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
14361
|
+
key?: string;
|
|
14362
|
+
/** OAuth 2.0 token for the current user. */
|
|
14363
|
+
oauth_token?: string;
|
|
14364
|
+
/** Returns response with indentations and line breaks. */
|
|
14365
|
+
prettyPrint?: boolean;
|
|
14366
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
14367
|
+
quotaUser?: string;
|
|
14368
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
14369
|
+
upload_protocol?: string;
|
|
14370
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
14371
|
+
uploadType?: string;
|
|
14372
|
+
},
|
|
14373
|
+
body: GoogleApiHttpBody,
|
|
14374
|
+
): Request<GoogleApiHttpBody>;
|
|
14375
|
+
}
|
|
14166
14376
|
interface OperationsResource {
|
|
14167
14377
|
/** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
|
|
14168
14378
|
cancel(request?: {
|
|
@@ -15512,6 +15722,9 @@ declare namespace gapi.client {
|
|
|
15512
15722
|
body: GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest,
|
|
15513
15723
|
): Request<GoogleLongrunningOperation>;
|
|
15514
15724
|
chat: ChatResource;
|
|
15725
|
+
deployedModels: DeployedModelsResource;
|
|
15726
|
+
invoke: InvokeResource;
|
|
15727
|
+
openapi: OpenapiResource;
|
|
15515
15728
|
operations: OperationsResource;
|
|
15516
15729
|
}
|
|
15517
15730
|
interface EvaluationItemsResource {
|
|
@@ -34531,7 +34744,7 @@ declare namespace gapi.client {
|
|
|
34531
34744
|
alt?: string;
|
|
34532
34745
|
/** JSONP */
|
|
34533
34746
|
callback?: string;
|
|
34534
|
-
/** Optional.
|
|
34747
|
+
/** Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage. */
|
|
34535
34748
|
extraLocationTypes?: string | string[];
|
|
34536
34749
|
/** Selector specifying which fields to include in a partial response. */
|
|
34537
34750
|
fields?: string;
|