@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20241001 → 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 +133 -3
  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: 20241001
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. */
@@ -2166,6 +2175,8 @@ declare namespace gapi.client {
2166
2175
  syncSummary?: GoogleCloudAiplatformV1FeatureViewSyncSyncSummary;
2167
2176
  }
2168
2177
  interface GoogleCloudAiplatformV1FeatureViewSyncConfig {
2178
+ /** Optional. If true, syncs the FeatureView in a continuous manner to Online Store. */
2179
+ continuous?: boolean;
2169
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 * * * *". */
2170
2181
  cron?: string;
2171
2182
  }
@@ -2398,6 +2409,8 @@ declare namespace gapi.client {
2398
2409
  totalTokenCount?: number;
2399
2410
  }
2400
2411
  interface GoogleCloudAiplatformV1GenerationConfig {
2412
+ /** Optional. If enabled, audio timestamp will be included in the request to the model. */
2413
+ audioTimestamp?: boolean;
2401
2414
  /** Optional. Number of candidates to generate. */
2402
2415
  candidateCount?: number;
2403
2416
  /** Optional. Frequency penalties. */
@@ -4457,6 +4470,7 @@ declare namespace gapi.client {
4457
4470
  /** Required. Project id used to create forwarding rule. */
4458
4471
  projectId?: string;
4459
4472
  }
4473
+ interface GoogleCloudAiplatformV1PscInterfaceConfig {}
4460
4474
  interface GoogleCloudAiplatformV1PublisherModel {
4461
4475
  /** Optional. Additional information about the model's Frameworks. */
4462
4476
  frameworks?: string[];
@@ -5150,7 +5164,7 @@ declare namespace gapi.client {
5150
5164
  default?: any;
5151
5165
  /** Optional. The description of the data. */
5152
5166
  description?: string;
5153
- /** 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"]} */
5154
5168
  enum?: string[];
5155
5169
  /** Optional. Example of the object. Will only populated when the object is the root. */
5156
5170
  example?: any;
@@ -5816,6 +5830,62 @@ declare namespace gapi.client {
5816
5830
  /** The topmost coordinate of the bounding box. */
5817
5831
  yMin?: number;
5818
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
+ }
5819
5889
  interface GoogleCloudAiplatformV1SchemaTablesDatasetMetadata {
5820
5890
  inputConfig?: GoogleCloudAiplatformV1SchemaTablesDatasetMetadataInputConfig;
5821
5891
  }
@@ -5870,6 +5940,8 @@ declare namespace gapi.client {
5870
5940
  maxOutputTokens?: string;
5871
5941
  /** User-created prompt note. Note size limit is 2KB. */
5872
5942
  note?: string;
5943
+ /** The API schema of the prompt to support both UI and SDK usages. */
5944
+ promptApiSchema?: GoogleCloudAiplatformV1SchemaPromptApiSchema;
5873
5945
  /** Type of the prompt dataset. */
5874
5946
  promptType?: string;
5875
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. */
@@ -7296,7 +7368,7 @@ declare namespace gapi.client {
7296
7368
  toolParameterKvMatchMetricValues?: GoogleCloudAiplatformV1ToolParameterKVMatchMetricValue[];
7297
7369
  }
7298
7370
  interface GoogleCloudAiplatformV1ToolParameterKVMatchSpec {
7299
- /** Optional. Whether to use STRCIT string match on parameter values. */
7371
+ /** Optional. Whether to use STRICT string match on parameter values. */
7300
7372
  useStrictStringMatch?: boolean;
7301
7373
  }
7302
7374
  interface GoogleCloudAiplatformV1TrainingConfig {
@@ -12630,6 +12702,64 @@ declare namespace gapi.client {
12630
12702
  }): Request<GoogleLongrunningOperation>;
12631
12703
  }
12632
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>;
12633
12763
  /** Creates a new Feature in a given FeatureGroup. */
12634
12764
  create(request: {
12635
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.20241001",
3
+ "version": "0.0.20241007",
4
4
  "description": "TypeScript typings for Vertex AI API v1",
5
5
  "repository": {
6
6
  "type": "git",