@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20240907 → 0.0.20240923
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 +139 -2
- 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: 20240923
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -550,6 +550,8 @@ declare namespace gapi.client {
|
|
|
550
550
|
groundingMetadata?: GoogleCloudAiplatformV1GroundingMetadata;
|
|
551
551
|
/** Output only. Index of the candidate. */
|
|
552
552
|
index?: number;
|
|
553
|
+
/** Output only. Log-likelihood scores for the response tokens and top tokens */
|
|
554
|
+
logprobsResult?: GoogleCloudAiplatformV1LogprobsResult;
|
|
553
555
|
/** Output only. List of ratings for the safety of a response candidate. There is at most one rating per category. */
|
|
554
556
|
safetyRatings?: GoogleCloudAiplatformV1SafetyRating[];
|
|
555
557
|
}
|
|
@@ -2366,6 +2368,8 @@ declare namespace gapi.client {
|
|
|
2366
2368
|
interface GoogleCloudAiplatformV1GenerateContentResponse {
|
|
2367
2369
|
/** Output only. Generated candidates. */
|
|
2368
2370
|
candidates?: GoogleCloudAiplatformV1Candidate[];
|
|
2371
|
+
/** Output only. The model version used to generate the response. */
|
|
2372
|
+
modelVersion?: string;
|
|
2369
2373
|
/** Output only. Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations. */
|
|
2370
2374
|
promptFeedback?: GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback;
|
|
2371
2375
|
/** Usage metadata about the response(s). */
|
|
@@ -2392,10 +2396,14 @@ declare namespace gapi.client {
|
|
|
2392
2396
|
candidateCount?: number;
|
|
2393
2397
|
/** Optional. Frequency penalties. */
|
|
2394
2398
|
frequencyPenalty?: number;
|
|
2399
|
+
/** Optional. Logit probabilities. */
|
|
2400
|
+
logprobs?: number;
|
|
2395
2401
|
/** Optional. The maximum number of output tokens to generate per message. */
|
|
2396
2402
|
maxOutputTokens?: number;
|
|
2397
2403
|
/** Optional. Positive penalties. */
|
|
2398
2404
|
presencePenalty?: number;
|
|
2405
|
+
/** Optional. If true, export the logprobs results in response. */
|
|
2406
|
+
responseLogprobs?: boolean;
|
|
2399
2407
|
/** 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. */
|
|
2400
2408
|
responseMimeType?: string;
|
|
2401
2409
|
/** Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response. */
|
|
@@ -3078,6 +3086,24 @@ declare namespace gapi.client {
|
|
|
3078
3086
|
/** List of TuningJobs in the requested page. */
|
|
3079
3087
|
tuningJobs?: GoogleCloudAiplatformV1TuningJob[];
|
|
3080
3088
|
}
|
|
3089
|
+
interface GoogleCloudAiplatformV1LogprobsResult {
|
|
3090
|
+
/** Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates. */
|
|
3091
|
+
chosenCandidates?: GoogleCloudAiplatformV1LogprobsResultCandidate[];
|
|
3092
|
+
/** Length = total number of decoding steps. */
|
|
3093
|
+
topCandidates?: GoogleCloudAiplatformV1LogprobsResultTopCandidates[];
|
|
3094
|
+
}
|
|
3095
|
+
interface GoogleCloudAiplatformV1LogprobsResultCandidate {
|
|
3096
|
+
/** The candidate's log probability. */
|
|
3097
|
+
logProbability?: number;
|
|
3098
|
+
/** The candidate’s token string value. */
|
|
3099
|
+
token?: string;
|
|
3100
|
+
/** The candidate’s token id value. */
|
|
3101
|
+
tokenId?: number;
|
|
3102
|
+
}
|
|
3103
|
+
interface GoogleCloudAiplatformV1LogprobsResultTopCandidates {
|
|
3104
|
+
/** Sorted by log probability in descending order. */
|
|
3105
|
+
candidates?: GoogleCloudAiplatformV1LogprobsResultCandidate[];
|
|
3106
|
+
}
|
|
3081
3107
|
interface GoogleCloudAiplatformV1LookupStudyRequest {
|
|
3082
3108
|
/** Required. The user-defined display name of the Study */
|
|
3083
3109
|
displayName?: string;
|
|
@@ -4840,6 +4866,16 @@ declare namespace gapi.client {
|
|
|
4840
4866
|
/** Number of times the user has read data within the Tensorboard. */
|
|
4841
4867
|
viewCount?: string;
|
|
4842
4868
|
}
|
|
4869
|
+
interface GoogleCloudAiplatformV1RebaseTunedModelRequest {
|
|
4870
|
+
/** Optional. The Google Cloud Storage location to write the artifacts. */
|
|
4871
|
+
artifactDestination?: GoogleCloudAiplatformV1GcsDestination;
|
|
4872
|
+
/** Optional. By default, bison to gemini migration will always create new model/endpoint, but for gemini-1.0 to gemini-1.5 migration, we default deploy to the same endpoint. See details in this Section. */
|
|
4873
|
+
deployToSameEndpoint?: boolean;
|
|
4874
|
+
/** Required. TunedModel reference to retrieve the legacy model information. */
|
|
4875
|
+
tunedModelRef?: GoogleCloudAiplatformV1TunedModelRef;
|
|
4876
|
+
/** Optional. The TuningJob to be updated. Users can use this TuningJob field to overwrite tuning configs. */
|
|
4877
|
+
tuningJob?: GoogleCloudAiplatformV1TuningJob;
|
|
4878
|
+
}
|
|
4843
4879
|
interface GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata {
|
|
4844
4880
|
/** Operation metadata for PersistentResource. */
|
|
4845
4881
|
genericMetadata?: GoogleCloudAiplatformV1GenericOperationMetadata;
|
|
@@ -5093,6 +5129,8 @@ declare namespace gapi.client {
|
|
|
5093
5129
|
timeout?: string;
|
|
5094
5130
|
}
|
|
5095
5131
|
interface GoogleCloudAiplatformV1Schema {
|
|
5132
|
+
/** Optional. The value should be validated against any (one or more) of the subschemas in the list. */
|
|
5133
|
+
anyOf?: GoogleCloudAiplatformV1Schema[];
|
|
5096
5134
|
/** Optional. Default value of the data. */
|
|
5097
5135
|
default?: any;
|
|
5098
5136
|
/** Optional. The description of the data. */
|
|
@@ -5811,12 +5849,18 @@ declare namespace gapi.client {
|
|
|
5811
5849
|
groundingConfig?: GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig;
|
|
5812
5850
|
/** Whether the prompt dataset has prompt variable. */
|
|
5813
5851
|
hasPromptVariable?: boolean;
|
|
5852
|
+
/** Whether or not the user has enabled logit probabilities in the model parameters. */
|
|
5853
|
+
logprobs?: boolean;
|
|
5814
5854
|
/** Value of the maximum number of tokens generated set when the dataset was saved. */
|
|
5815
5855
|
maxOutputTokens?: string;
|
|
5816
5856
|
/** User-created prompt note. Note size limit is 2KB. */
|
|
5817
5857
|
note?: string;
|
|
5818
5858
|
/** Type of the prompt dataset. */
|
|
5819
5859
|
promptType?: string;
|
|
5860
|
+
/** Seeding enables model to return a deterministic response on a best effort basis. Determinism isn't guaranteed. This field determines whether or not seeding is enabled. */
|
|
5861
|
+
seedEnabled?: boolean;
|
|
5862
|
+
/** The actual value of the seed. */
|
|
5863
|
+
seedValue?: string;
|
|
5820
5864
|
/** Customized stop sequences. */
|
|
5821
5865
|
stopSequences?: string[];
|
|
5822
5866
|
/** The content of the prompt dataset system instruction. */
|
|
@@ -7142,7 +7186,7 @@ declare namespace gapi.client {
|
|
|
7142
7186
|
tokens?: string[];
|
|
7143
7187
|
}
|
|
7144
7188
|
interface GoogleCloudAiplatformV1Tool {
|
|
7145
|
-
/** 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
|
|
7189
|
+
/** 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. */
|
|
7146
7190
|
functionDeclarations?: GoogleCloudAiplatformV1FunctionDeclaration[];
|
|
7147
7191
|
/** Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search. */
|
|
7148
7192
|
googleSearchRetrieval?: any;
|
|
@@ -7324,6 +7368,14 @@ declare namespace gapi.client {
|
|
|
7324
7368
|
/** Output only. The resource name of the TunedModel. Format: `projects/{project}/locations/{location}/models/{model}`. */
|
|
7325
7369
|
model?: string;
|
|
7326
7370
|
}
|
|
7371
|
+
interface GoogleCloudAiplatformV1TunedModelRef {
|
|
7372
|
+
/** Support migration from tuning job list page, from bison model to gemini model. */
|
|
7373
|
+
pipelineJob?: string;
|
|
7374
|
+
/** Support migration from model registry. */
|
|
7375
|
+
tunedModel?: string;
|
|
7376
|
+
/** Support migration from tuning job list page, from gemini-1.0-pro-002 to 1.5 and above. */
|
|
7377
|
+
tuningJob?: string;
|
|
7378
|
+
}
|
|
7327
7379
|
interface GoogleCloudAiplatformV1TuningDataStats {
|
|
7328
7380
|
/** The SFT Tuning data stats. */
|
|
7329
7381
|
supervisedTuningDataStats?: GoogleCloudAiplatformV1SupervisedTuningDataStats;
|
|
@@ -28363,6 +28415,33 @@ declare namespace gapi.client {
|
|
|
28363
28415
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
28364
28416
|
uploadType?: string;
|
|
28365
28417
|
}): Request<{}>;
|
|
28418
|
+
/** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
|
|
28419
|
+
delete(request?: {
|
|
28420
|
+
/** V1 error format. */
|
|
28421
|
+
'$.xgafv'?: string;
|
|
28422
|
+
/** OAuth access token. */
|
|
28423
|
+
access_token?: string;
|
|
28424
|
+
/** Data format for response. */
|
|
28425
|
+
alt?: string;
|
|
28426
|
+
/** JSONP */
|
|
28427
|
+
callback?: string;
|
|
28428
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
28429
|
+
fields?: string;
|
|
28430
|
+
/** 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. */
|
|
28431
|
+
key?: string;
|
|
28432
|
+
/** The name of the operation resource to be deleted. */
|
|
28433
|
+
name: string;
|
|
28434
|
+
/** OAuth 2.0 token for the current user. */
|
|
28435
|
+
oauth_token?: string;
|
|
28436
|
+
/** Returns response with indentations and line breaks. */
|
|
28437
|
+
prettyPrint?: boolean;
|
|
28438
|
+
/** 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. */
|
|
28439
|
+
quotaUser?: string;
|
|
28440
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
28441
|
+
upload_protocol?: string;
|
|
28442
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
28443
|
+
uploadType?: string;
|
|
28444
|
+
}): Request<{}>;
|
|
28366
28445
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
28367
28446
|
get(request?: {
|
|
28368
28447
|
/** V1 error format. */
|
|
@@ -28601,6 +28680,64 @@ declare namespace gapi.client {
|
|
|
28601
28680
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
28602
28681
|
uploadType?: string;
|
|
28603
28682
|
}): Request<GoogleCloudAiplatformV1ListTuningJobsResponse>;
|
|
28683
|
+
/** Rebase a TunedModel. */
|
|
28684
|
+
rebaseTunedModel(request: {
|
|
28685
|
+
/** V1 error format. */
|
|
28686
|
+
'$.xgafv'?: string;
|
|
28687
|
+
/** OAuth access token. */
|
|
28688
|
+
access_token?: string;
|
|
28689
|
+
/** Data format for response. */
|
|
28690
|
+
alt?: string;
|
|
28691
|
+
/** JSONP */
|
|
28692
|
+
callback?: string;
|
|
28693
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
28694
|
+
fields?: string;
|
|
28695
|
+
/** 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. */
|
|
28696
|
+
key?: string;
|
|
28697
|
+
/** OAuth 2.0 token for the current user. */
|
|
28698
|
+
oauth_token?: string;
|
|
28699
|
+
/** Required. The resource name of the Location into which to rebase the Model. Format: `projects/{project}/locations/{location}` */
|
|
28700
|
+
parent: string;
|
|
28701
|
+
/** Returns response with indentations and line breaks. */
|
|
28702
|
+
prettyPrint?: boolean;
|
|
28703
|
+
/** 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. */
|
|
28704
|
+
quotaUser?: string;
|
|
28705
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
28706
|
+
upload_protocol?: string;
|
|
28707
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
28708
|
+
uploadType?: string;
|
|
28709
|
+
/** Request body */
|
|
28710
|
+
resource: GoogleCloudAiplatformV1RebaseTunedModelRequest;
|
|
28711
|
+
}): Request<GoogleLongrunningOperation>;
|
|
28712
|
+
rebaseTunedModel(
|
|
28713
|
+
request: {
|
|
28714
|
+
/** V1 error format. */
|
|
28715
|
+
'$.xgafv'?: string;
|
|
28716
|
+
/** OAuth access token. */
|
|
28717
|
+
access_token?: string;
|
|
28718
|
+
/** Data format for response. */
|
|
28719
|
+
alt?: string;
|
|
28720
|
+
/** JSONP */
|
|
28721
|
+
callback?: string;
|
|
28722
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
28723
|
+
fields?: string;
|
|
28724
|
+
/** 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. */
|
|
28725
|
+
key?: string;
|
|
28726
|
+
/** OAuth 2.0 token for the current user. */
|
|
28727
|
+
oauth_token?: string;
|
|
28728
|
+
/** Required. The resource name of the Location into which to rebase the Model. Format: `projects/{project}/locations/{location}` */
|
|
28729
|
+
parent: string;
|
|
28730
|
+
/** Returns response with indentations and line breaks. */
|
|
28731
|
+
prettyPrint?: boolean;
|
|
28732
|
+
/** 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. */
|
|
28733
|
+
quotaUser?: string;
|
|
28734
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
28735
|
+
upload_protocol?: string;
|
|
28736
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
28737
|
+
uploadType?: string;
|
|
28738
|
+
},
|
|
28739
|
+
body: GoogleCloudAiplatformV1RebaseTunedModelRequest
|
|
28740
|
+
): Request<GoogleLongrunningOperation>;
|
|
28604
28741
|
operations: OperationsResource;
|
|
28605
28742
|
}
|
|
28606
28743
|
interface LocationsResource {
|