@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20240907 → 0.0.20240916

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.
Files changed (2) hide show
  1. package/index.d.ts +133 -2
  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: 20240907
12
+ // Revision: 20240916
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. */
@@ -7142,7 +7180,7 @@ declare namespace gapi.client {
7142
7180
  tokens?: string[];
7143
7181
  }
7144
7182
  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 64 function declarations can be provided. */
7183
+ /** 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
7184
  functionDeclarations?: GoogleCloudAiplatformV1FunctionDeclaration[];
7147
7185
  /** Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search. */
7148
7186
  googleSearchRetrieval?: any;
@@ -7324,6 +7362,14 @@ declare namespace gapi.client {
7324
7362
  /** Output only. The resource name of the TunedModel. Format: `projects/{project}/locations/{location}/models/{model}`. */
7325
7363
  model?: string;
7326
7364
  }
7365
+ interface GoogleCloudAiplatformV1TunedModelRef {
7366
+ /** Support migration from tuning job list page, from bison model to gemini model. */
7367
+ pipelineJob?: string;
7368
+ /** Support migration from model registry. */
7369
+ tunedModel?: string;
7370
+ /** Support migration from tuning job list page, from gemini-1.0-pro-002 to 1.5 and above. */
7371
+ tuningJob?: string;
7372
+ }
7327
7373
  interface GoogleCloudAiplatformV1TuningDataStats {
7328
7374
  /** The SFT Tuning data stats. */
7329
7375
  supervisedTuningDataStats?: GoogleCloudAiplatformV1SupervisedTuningDataStats;
@@ -28363,6 +28409,33 @@ declare namespace gapi.client {
28363
28409
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
28364
28410
  uploadType?: string;
28365
28411
  }): Request<{}>;
28412
+ /** 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`. */
28413
+ delete(request?: {
28414
+ /** V1 error format. */
28415
+ '$.xgafv'?: string;
28416
+ /** OAuth access token. */
28417
+ access_token?: string;
28418
+ /** Data format for response. */
28419
+ alt?: string;
28420
+ /** JSONP */
28421
+ callback?: string;
28422
+ /** Selector specifying which fields to include in a partial response. */
28423
+ fields?: string;
28424
+ /** 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. */
28425
+ key?: string;
28426
+ /** The name of the operation resource to be deleted. */
28427
+ name: string;
28428
+ /** OAuth 2.0 token for the current user. */
28429
+ oauth_token?: string;
28430
+ /** Returns response with indentations and line breaks. */
28431
+ prettyPrint?: boolean;
28432
+ /** 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. */
28433
+ quotaUser?: string;
28434
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
28435
+ upload_protocol?: string;
28436
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
28437
+ uploadType?: string;
28438
+ }): Request<{}>;
28366
28439
  /** 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
28440
  get(request?: {
28368
28441
  /** V1 error format. */
@@ -28601,6 +28674,64 @@ declare namespace gapi.client {
28601
28674
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
28602
28675
  uploadType?: string;
28603
28676
  }): Request<GoogleCloudAiplatformV1ListTuningJobsResponse>;
28677
+ /** Rebase a TunedModel. */
28678
+ rebaseTunedModel(request: {
28679
+ /** V1 error format. */
28680
+ '$.xgafv'?: string;
28681
+ /** OAuth access token. */
28682
+ access_token?: string;
28683
+ /** Data format for response. */
28684
+ alt?: string;
28685
+ /** JSONP */
28686
+ callback?: string;
28687
+ /** Selector specifying which fields to include in a partial response. */
28688
+ fields?: string;
28689
+ /** 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. */
28690
+ key?: string;
28691
+ /** OAuth 2.0 token for the current user. */
28692
+ oauth_token?: string;
28693
+ /** Required. The resource name of the Location into which to rebase the Model. Format: `projects/{project}/locations/{location}` */
28694
+ parent: string;
28695
+ /** Returns response with indentations and line breaks. */
28696
+ prettyPrint?: boolean;
28697
+ /** 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. */
28698
+ quotaUser?: string;
28699
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
28700
+ upload_protocol?: string;
28701
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
28702
+ uploadType?: string;
28703
+ /** Request body */
28704
+ resource: GoogleCloudAiplatformV1RebaseTunedModelRequest;
28705
+ }): Request<GoogleLongrunningOperation>;
28706
+ rebaseTunedModel(
28707
+ request: {
28708
+ /** V1 error format. */
28709
+ '$.xgafv'?: string;
28710
+ /** OAuth access token. */
28711
+ access_token?: string;
28712
+ /** Data format for response. */
28713
+ alt?: string;
28714
+ /** JSONP */
28715
+ callback?: string;
28716
+ /** Selector specifying which fields to include in a partial response. */
28717
+ fields?: string;
28718
+ /** 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. */
28719
+ key?: string;
28720
+ /** OAuth 2.0 token for the current user. */
28721
+ oauth_token?: string;
28722
+ /** Required. The resource name of the Location into which to rebase the Model. Format: `projects/{project}/locations/{location}` */
28723
+ parent: string;
28724
+ /** Returns response with indentations and line breaks. */
28725
+ prettyPrint?: boolean;
28726
+ /** 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. */
28727
+ quotaUser?: string;
28728
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
28729
+ upload_protocol?: string;
28730
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
28731
+ uploadType?: string;
28732
+ },
28733
+ body: GoogleCloudAiplatformV1RebaseTunedModelRequest
28734
+ ): Request<GoogleLongrunningOperation>;
28604
28735
  operations: OperationsResource;
28605
28736
  }
28606
28737
  interface LocationsResource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.aiplatform-v1",
3
- "version": "0.0.20240907",
3
+ "version": "0.0.20240916",
4
4
  "description": "TypeScript typings for Vertex AI API v1",
5
5
  "repository": {
6
6
  "type": "git",