@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20240925 → 0.0.20241007

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 +213 -7
  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: 20240925
12
+ // Revision: 20241007
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -41,6 +41,8 @@ declare namespace gapi.client {
41
41
  image?: string;
42
42
  /** RAI scores for generated image. */
43
43
  imageRaiScores?: CloudAiLargeModelsVisionImageRAIScores;
44
+ /** Image size. The size of the image. Can be self reported, or computed from the image bytes. */
45
+ imageSize?: CloudAiLargeModelsVisionImageImageSize;
44
46
  /** RAI info for image. */
45
47
  raiInfo?: CloudAiLargeModelsVisionRaiInfo;
46
48
  /** Semantic filter info for image. */
@@ -50,6 +52,11 @@ declare namespace gapi.client {
50
52
  /** Path to another storage (typically Google Cloud Storage). */
51
53
  uri?: string;
52
54
  }
55
+ interface CloudAiLargeModelsVisionImageImageSize {
56
+ channels?: number;
57
+ height?: number;
58
+ width?: number;
59
+ }
53
60
  interface CloudAiLargeModelsVisionImageRAIScores {
54
61
  /** Agile watermark score for image. */
55
62
  agileWatermarkDetectionScore?: number;
@@ -907,6 +914,8 @@ declare namespace gapi.client {
907
914
  persistentResourceId?: string;
908
915
  /** The ID of the location to store protected artifacts. e.g. us-central1. Populate only when the location is different than CustomJob location. List of supported locations: https://cloud.google.com/vertex-ai/docs/general/locations */
909
916
  protectedArtifactLocationId?: string;
917
+ /** Optional. Configuration for PSC-I for CustomJob. */
918
+ pscInterfaceConfig?: any;
910
919
  /** Optional. A list of names for the reserved ip ranges under the VPC network that can be used for this job. If set, we will deploy the job within the provided ip ranges. Otherwise, the job will be deployed to any ip ranges under the provided VPC network. Example: ['vertex-ai-ip-range']. */
911
920
  reservedIpRanges?: string[];
912
921
  /** Scheduling options for a CustomJob. */
@@ -1266,6 +1275,12 @@ declare namespace gapi.client {
1266
1275
  /** A list of double values. */
1267
1276
  values?: number[];
1268
1277
  }
1278
+ interface GoogleCloudAiplatformV1DynamicRetrievalConfig {
1279
+ /** Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used. */
1280
+ dynamicThreshold?: number;
1281
+ /** The mode of the predictor to be used in dynamic retrieval. */
1282
+ mode?: string;
1283
+ }
1269
1284
  interface GoogleCloudAiplatformV1EncryptionSpec {
1270
1285
  /** Required. The Cloud KMS resource identifier of the customer managed encryption key used to protect a resource. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. The key needs to be in the same region as where the compute resource is created. */
1271
1286
  kmsKeyName?: string;
@@ -2160,6 +2175,8 @@ declare namespace gapi.client {
2160
2175
  syncSummary?: GoogleCloudAiplatformV1FeatureViewSyncSyncSummary;
2161
2176
  }
2162
2177
  interface GoogleCloudAiplatformV1FeatureViewSyncConfig {
2178
+ /** Optional. If true, syncs the FeatureView in a continuous manner to Online Store. */
2179
+ continuous?: boolean;
2163
2180
  /** Cron schedule (https://en.wikipedia.org/wiki/Cron) to launch scheduled runs. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *". */
2164
2181
  cron?: string;
2165
2182
  }
@@ -2392,6 +2409,8 @@ declare namespace gapi.client {
2392
2409
  totalTokenCount?: number;
2393
2410
  }
2394
2411
  interface GoogleCloudAiplatformV1GenerationConfig {
2412
+ /** Optional. If enabled, audio timestamp will be included in the request to the model. */
2413
+ audioTimestamp?: boolean;
2395
2414
  /** Optional. Number of candidates to generate. */
2396
2415
  candidateCount?: number;
2397
2416
  /** Optional. Frequency penalties. */
@@ -2447,7 +2466,10 @@ declare namespace gapi.client {
2447
2466
  /** Required. The public base model URI. */
2448
2467
  baseModelUri?: string;
2449
2468
  }
2450
- interface GoogleCloudAiplatformV1GoogleSearchRetrieval {}
2469
+ interface GoogleCloudAiplatformV1GoogleSearchRetrieval {
2470
+ /** Specifies the dynamic retrieval configuration for the given source. */
2471
+ dynamicRetrievalConfig?: GoogleCloudAiplatformV1DynamicRetrievalConfig;
2472
+ }
2451
2473
  interface GoogleCloudAiplatformV1GroundednessInput {
2452
2474
  /** Required. Groundedness instance. */
2453
2475
  instance?: GoogleCloudAiplatformV1GroundednessInstance;
@@ -2495,6 +2517,8 @@ declare namespace gapi.client {
2495
2517
  groundingChunks?: GoogleCloudAiplatformV1GroundingChunk[];
2496
2518
  /** Optional. List of grounding support. */
2497
2519
  groundingSupports?: GoogleCloudAiplatformV1GroundingSupport[];
2520
+ /** Optional. Output only. Retrieval metadata. */
2521
+ retrievalMetadata?: GoogleCloudAiplatformV1RetrievalMetadata;
2498
2522
  /** Optional. Google search entry for the following-up web searches. */
2499
2523
  searchEntryPoint?: GoogleCloudAiplatformV1SearchEntryPoint;
2500
2524
  /** Optional. Web search queries for the following-up web search. */
@@ -3095,9 +3119,9 @@ declare namespace gapi.client {
3095
3119
  interface GoogleCloudAiplatformV1LogprobsResultCandidate {
3096
3120
  /** The candidate's log probability. */
3097
3121
  logProbability?: number;
3098
- /** The candidates token string value. */
3122
+ /** The candidate's token string value. */
3099
3123
  token?: string;
3100
- /** The candidates token id value. */
3124
+ /** The candidate's token id value. */
3101
3125
  tokenId?: number;
3102
3126
  }
3103
3127
  interface GoogleCloudAiplatformV1LogprobsResultTopCandidates {
@@ -4446,6 +4470,7 @@ declare namespace gapi.client {
4446
4470
  /** Required. Project id used to create forwarding rule. */
4447
4471
  projectId?: string;
4448
4472
  }
4473
+ interface GoogleCloudAiplatformV1PscInterfaceConfig {}
4449
4474
  interface GoogleCloudAiplatformV1PublisherModel {
4450
4475
  /** Optional. Additional information about the model's Frameworks. */
4451
4476
  frameworks?: string[];
@@ -4952,6 +4977,10 @@ declare namespace gapi.client {
4952
4977
  /** Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService. */
4953
4978
  vertexRagStore?: GoogleCloudAiplatformV1VertexRagStore;
4954
4979
  }
4980
+ interface GoogleCloudAiplatformV1RetrievalMetadata {
4981
+ /** Optional. Score indicating how likely information from Google Search could help answer the prompt. The score is in the range `[0, 1]`, where 0 is the least likely and 1 is the most likely. This score is only populated when Google Search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger Google Search. */
4982
+ googleSearchDynamicRetrievalScore?: number;
4983
+ }
4955
4984
  interface GoogleCloudAiplatformV1RougeInput {
4956
4985
  /** Required. Repeated rouge instances. */
4957
4986
  instances?: GoogleCloudAiplatformV1RougeInstance[];
@@ -5135,7 +5164,7 @@ declare namespace gapi.client {
5135
5164
  default?: any;
5136
5165
  /** Optional. The description of the data. */
5137
5166
  description?: string;
5138
- /** Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} */
5167
+ /** Optional. Possible values of the element of primitive type with enum format. Examples: 1. We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]} */
5139
5168
  enum?: string[];
5140
5169
  /** Optional. Example of the object. Will only populated when the object is the root. */
5141
5170
  example?: any;
@@ -5801,6 +5830,62 @@ declare namespace gapi.client {
5801
5830
  /** The topmost coordinate of the bounding box. */
5802
5831
  yMin?: number;
5803
5832
  }
5833
+ interface GoogleCloudAiplatformV1SchemaPromptApiSchema {
5834
+ /** The Schema version that represents changes to the API behavior. */
5835
+ apiSchemaVersion?: string;
5836
+ /** A list of execution instances for constructing a ready-to-use prompt. */
5837
+ executions?: GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution[];
5838
+ /** Multimodal prompt which embeds preambles to prompt string. */
5839
+ multimodalPrompt?: GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt;
5840
+ /** The prompt variation that stores preambles in separate fields. */
5841
+ structuredPrompt?: GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt;
5842
+ }
5843
+ interface GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution {
5844
+ /** Maps variable names to their value. */
5845
+ arguments?: {
5846
+ [P in string]: GoogleCloudAiplatformV1SchemaPromptInstanceVariableValue;
5847
+ };
5848
+ }
5849
+ interface GoogleCloudAiplatformV1SchemaPromptInstanceVariableValue {
5850
+ /** The parts of the variable value. */
5851
+ partList?: GoogleCloudAiplatformV1SchemaPromptSpecPartList;
5852
+ }
5853
+ interface GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt {
5854
+ /** The prompt message. */
5855
+ promptMessage?: GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage;
5856
+ }
5857
+ interface GoogleCloudAiplatformV1SchemaPromptSpecPartList {
5858
+ /** A list of elements that can be part of a prompt. */
5859
+ parts?: GoogleCloudAiplatformV1Part[];
5860
+ }
5861
+ interface GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage {
5862
+ /** The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request. */
5863
+ contents?: GoogleCloudAiplatformV1Content[];
5864
+ /** Generation config. */
5865
+ generationConfig?: GoogleCloudAiplatformV1GenerationConfig;
5866
+ /** The model name. */
5867
+ model?: string;
5868
+ /** Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates. */
5869
+ safetySettings?: GoogleCloudAiplatformV1SafetySetting[];
5870
+ /** The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph. */
5871
+ systemInstruction?: GoogleCloudAiplatformV1Content;
5872
+ /** Tool config. This config is shared for all tools provided in the request. */
5873
+ toolConfig?: GoogleCloudAiplatformV1ToolConfig;
5874
+ /** A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. */
5875
+ tools?: GoogleCloudAiplatformV1Tool[];
5876
+ }
5877
+ interface GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt {
5878
+ /** Preamble: The context of the prompt. */
5879
+ context?: GoogleCloudAiplatformV1Content;
5880
+ /** Preamble: A set of examples for expected model response. */
5881
+ examples?: GoogleCloudAiplatformV1SchemaPromptSpecPartList[];
5882
+ /** Preamble: The input prefixes before each example input. */
5883
+ inputPrefixes?: string[];
5884
+ /** Preamble: The output prefixes before each example output. */
5885
+ outputPrefixes?: string[];
5886
+ /** The prompt message. */
5887
+ promptMessage?: GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage;
5888
+ }
5804
5889
  interface GoogleCloudAiplatformV1SchemaTablesDatasetMetadata {
5805
5890
  inputConfig?: GoogleCloudAiplatformV1SchemaTablesDatasetMetadataInputConfig;
5806
5891
  }
@@ -5855,6 +5940,8 @@ declare namespace gapi.client {
5855
5940
  maxOutputTokens?: string;
5856
5941
  /** User-created prompt note. Note size limit is 2KB. */
5857
5942
  note?: string;
5943
+ /** The API schema of the prompt to support both UI and SDK usages. */
5944
+ promptApiSchema?: GoogleCloudAiplatformV1SchemaPromptApiSchema;
5858
5945
  /** Type of the prompt dataset. */
5859
5946
  promptType?: string;
5860
5947
  /** 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. */
@@ -7189,7 +7276,7 @@ declare namespace gapi.client {
7189
7276
  /** 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. */
7190
7277
  functionDeclarations?: GoogleCloudAiplatformV1FunctionDeclaration[];
7191
7278
  /** Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search. */
7192
- googleSearchRetrieval?: any;
7279
+ googleSearchRetrieval?: GoogleCloudAiplatformV1GoogleSearchRetrieval;
7193
7280
  /** 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. */
7194
7281
  retrieval?: GoogleCloudAiplatformV1Retrieval;
7195
7282
  }
@@ -7281,7 +7368,7 @@ declare namespace gapi.client {
7281
7368
  toolParameterKvMatchMetricValues?: GoogleCloudAiplatformV1ToolParameterKVMatchMetricValue[];
7282
7369
  }
7283
7370
  interface GoogleCloudAiplatformV1ToolParameterKVMatchSpec {
7284
- /** Optional. Whether to use STRCIT string match on parameter values. */
7371
+ /** Optional. Whether to use STRICT string match on parameter values. */
7285
7372
  useStrictStringMatch?: boolean;
7286
7373
  }
7287
7374
  interface GoogleCloudAiplatformV1TrainingConfig {
@@ -11260,6 +11347,66 @@ declare namespace gapi.client {
11260
11347
  }): Request<GoogleCloudAiplatformV1QueryDeployedModelsResponse>;
11261
11348
  operations: OperationsResource;
11262
11349
  }
11350
+ interface ChatResource {
11351
+ /** Exposes an OpenAI-compatible endpoint for chat completions. */
11352
+ completions(request: {
11353
+ /** V1 error format. */
11354
+ '$.xgafv'?: string;
11355
+ /** OAuth access token. */
11356
+ access_token?: string;
11357
+ /** Data format for response. */
11358
+ alt?: string;
11359
+ /** JSONP */
11360
+ callback?: string;
11361
+ /** Required. The name of the endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
11362
+ endpoint: string;
11363
+ /** Selector specifying which fields to include in a partial response. */
11364
+ fields?: string;
11365
+ /** 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. */
11366
+ key?: string;
11367
+ /** OAuth 2.0 token for the current user. */
11368
+ oauth_token?: string;
11369
+ /** Returns response with indentations and line breaks. */
11370
+ prettyPrint?: boolean;
11371
+ /** 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. */
11372
+ quotaUser?: string;
11373
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11374
+ upload_protocol?: string;
11375
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11376
+ uploadType?: string;
11377
+ /** Request body */
11378
+ resource: GoogleApiHttpBody;
11379
+ }): Request<GoogleApiHttpBody>;
11380
+ completions(
11381
+ request: {
11382
+ /** V1 error format. */
11383
+ '$.xgafv'?: string;
11384
+ /** OAuth access token. */
11385
+ access_token?: string;
11386
+ /** Data format for response. */
11387
+ alt?: string;
11388
+ /** JSONP */
11389
+ callback?: string;
11390
+ /** Required. The name of the endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
11391
+ endpoint: string;
11392
+ /** Selector specifying which fields to include in a partial response. */
11393
+ fields?: string;
11394
+ /** 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. */
11395
+ key?: string;
11396
+ /** OAuth 2.0 token for the current user. */
11397
+ oauth_token?: string;
11398
+ /** Returns response with indentations and line breaks. */
11399
+ prettyPrint?: boolean;
11400
+ /** 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. */
11401
+ quotaUser?: string;
11402
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11403
+ upload_protocol?: string;
11404
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11405
+ uploadType?: string;
11406
+ },
11407
+ body: GoogleApiHttpBody
11408
+ ): Request<GoogleApiHttpBody>;
11409
+ }
11263
11410
  interface OperationsResource {
11264
11411
  /** 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`. */
11265
11412
  cancel(request?: {
@@ -12433,6 +12580,7 @@ declare namespace gapi.client {
12433
12580
  },
12434
12581
  body: GoogleCloudAiplatformV1UndeployModelRequest
12435
12582
  ): Request<GoogleLongrunningOperation>;
12583
+ chat: ChatResource;
12436
12584
  operations: OperationsResource;
12437
12585
  }
12438
12586
  interface OperationsResource {
@@ -12554,6 +12702,64 @@ declare namespace gapi.client {
12554
12702
  }): Request<GoogleLongrunningOperation>;
12555
12703
  }
12556
12704
  interface FeaturesResource {
12705
+ /** Creates a batch of Features in a given FeatureGroup. */
12706
+ batchCreate(request: {
12707
+ /** V1 error format. */
12708
+ '$.xgafv'?: string;
12709
+ /** OAuth access token. */
12710
+ access_token?: string;
12711
+ /** Data format for response. */
12712
+ alt?: string;
12713
+ /** JSONP */
12714
+ callback?: string;
12715
+ /** Selector specifying which fields to include in a partial response. */
12716
+ fields?: string;
12717
+ /** 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. */
12718
+ key?: string;
12719
+ /** OAuth 2.0 token for the current user. */
12720
+ oauth_token?: string;
12721
+ /** Required. The resource name of the EntityType/FeatureGroup to create the batch of Features under. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}` */
12722
+ parent: string;
12723
+ /** Returns response with indentations and line breaks. */
12724
+ prettyPrint?: boolean;
12725
+ /** 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. */
12726
+ quotaUser?: string;
12727
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12728
+ upload_protocol?: string;
12729
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12730
+ uploadType?: string;
12731
+ /** Request body */
12732
+ resource: GoogleCloudAiplatformV1BatchCreateFeaturesRequest;
12733
+ }): Request<GoogleLongrunningOperation>;
12734
+ batchCreate(
12735
+ request: {
12736
+ /** V1 error format. */
12737
+ '$.xgafv'?: string;
12738
+ /** OAuth access token. */
12739
+ access_token?: string;
12740
+ /** Data format for response. */
12741
+ alt?: string;
12742
+ /** JSONP */
12743
+ callback?: string;
12744
+ /** Selector specifying which fields to include in a partial response. */
12745
+ fields?: string;
12746
+ /** 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. */
12747
+ key?: string;
12748
+ /** OAuth 2.0 token for the current user. */
12749
+ oauth_token?: string;
12750
+ /** Required. The resource name of the EntityType/FeatureGroup to create the batch of Features under. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}` */
12751
+ parent: string;
12752
+ /** Returns response with indentations and line breaks. */
12753
+ prettyPrint?: boolean;
12754
+ /** 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. */
12755
+ quotaUser?: string;
12756
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12757
+ upload_protocol?: string;
12758
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12759
+ uploadType?: string;
12760
+ },
12761
+ body: GoogleCloudAiplatformV1BatchCreateFeaturesRequest
12762
+ ): Request<GoogleLongrunningOperation>;
12557
12763
  /** Creates a new Feature in a given FeatureGroup. */
12558
12764
  create(request: {
12559
12765
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.aiplatform-v1",
3
- "version": "0.0.20240925",
3
+ "version": "0.0.20241007",
4
4
  "description": "TypeScript typings for Vertex AI API v1",
5
5
  "repository": {
6
6
  "type": "git",