@maxim_mazurok/gapi.client.aiplatform-v1beta1 0.0.20250711 → 0.0.20250715

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 (3) hide show
  1. package/index.d.ts +113 -4
  2. package/package.json +1 -1
  3. package/readme.md +10 -0
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=v1beta1
12
- // Revision: 20250711
12
+ // Revision: 20250715
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1585,6 +1585,8 @@ declare namespace gapi.client {
1585
1585
  explanationSpec?: GoogleCloudAiplatformV1beta1ExplanationSpec;
1586
1586
  /** Configuration for faster model deployment. */
1587
1587
  fasterDeploymentConfig?: GoogleCloudAiplatformV1beta1FasterDeploymentConfig;
1588
+ /** GDC pretrained / Gemini model name. The model name is a plain model name, e.g. gemini-1.5-flash-002. */
1589
+ gdcConnectedModel?: string;
1588
1590
  /** Immutable. The ID of the DeployedModel. If not provided upon deployment, Vertex AI will generate a value for this ID. This value should be 1-10 characters, and valid characters are `/[0-9]/`. */
1589
1591
  id?: string;
1590
1592
  /** The resource name of the Model that this is the deployment of. Note that the Model may be in a different location than the DeployedModel's Endpoint. The resource name may contain version id or version alias to specify the version. Example: `projects/{project}/locations/{location}/models/{model}@2` or `projects/{project}/locations/{location}/models/{model}@golden` if no version is specified, the default version will be deployed. */
@@ -1683,6 +1685,8 @@ declare namespace gapi.client {
1683
1685
  modelDisplayName?: string;
1684
1686
  }
1685
1687
  interface GoogleCloudAiplatformV1beta1DeployRequest {
1688
+ /** The custom model to deploy from a Google Cloud Storage URI. */
1689
+ customModel?: GoogleCloudAiplatformV1beta1DeployRequestCustomModel;
1686
1690
  /** Optional. The deploy config to use for the deployment. If not specified, the default deploy config will be used. */
1687
1691
  deployConfig?: GoogleCloudAiplatformV1beta1DeployRequestDeployConfig;
1688
1692
  /** Optional. The endpoint config to use for the deployment. If not specified, the default endpoint config will be used. */
@@ -1694,6 +1698,12 @@ declare namespace gapi.client {
1694
1698
  /** The Model Garden model to deploy. Format: `publishers/{publisher}/models/{publisher_model}@{version_id}`, or `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`. */
1695
1699
  publisherModelName?: string;
1696
1700
  }
1701
+ interface GoogleCloudAiplatformV1beta1DeployRequestCustomModel {
1702
+ /** Immutable. The Google Cloud Storage URI of the custom model, storing weights and config files (which can be used to infer the base model). */
1703
+ gcsUri?: string;
1704
+ /** Optional. Deprecated. Use ModelConfig.model_user_id instead. */
1705
+ modelId?: string;
1706
+ }
1697
1707
  interface GoogleCloudAiplatformV1beta1DeployRequestDeployConfig {
1698
1708
  /** Optional. The dedicated resources to use for the endpoint. If not set, the default resources will be used. */
1699
1709
  dedicatedResources?: GoogleCloudAiplatformV1beta1DedicatedResources;
@@ -1719,6 +1729,8 @@ declare namespace gapi.client {
1719
1729
  huggingFaceCacheEnabled?: boolean;
1720
1730
  /** Optional. The user-specified display name of the uploaded model. If not set, a default name will be used. */
1721
1731
  modelDisplayName?: string;
1732
+ /** Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. When not provided, Vertex AI will generate a value for this ID. When Model Registry model is provided, this field will be ignored. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen. */
1733
+ modelUserId?: string;
1722
1734
  }
1723
1735
  interface GoogleCloudAiplatformV1beta1DeploySolverOperationMetadata {
1724
1736
  /** The generic operation information. */
@@ -1830,6 +1842,8 @@ declare namespace gapi.client {
1830
1842
  encryptionSpec?: GoogleCloudAiplatformV1beta1EncryptionSpec;
1831
1843
  /** Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. */
1832
1844
  etag?: string;
1845
+ /** Configures the Google Distributed Cloud (GDC) environment for online prediction. Only set this field when the Endpoint is to be deployed in a GDC environment. */
1846
+ gdcConfig?: GoogleCloudAiplatformV1beta1GdcConfig;
1833
1847
  /** Optional. Configuration for GenAiAdvancedFeatures. If the endpoint is serving GenAI models, advanced features like native RAG integration can be configured. Currently, only Model Garden models are supported. */
1834
1848
  genAiAdvancedFeaturesConfig?: GoogleCloudAiplatformV1beta1GenAiAdvancedFeaturesConfig;
1835
1849
  /** The labels with user-defined metadata to organize your Endpoints. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. */
@@ -3343,6 +3357,10 @@ declare namespace gapi.client {
3343
3357
  /** Required. Google Cloud Storage URI(-s) to the input file(s). May contain wildcards. For more information on wildcards, see https://cloud.google.com/storage/docs/wildcards. */
3344
3358
  uris?: string[];
3345
3359
  }
3360
+ interface GoogleCloudAiplatformV1beta1GdcConfig {
3361
+ /** GDC zone. A cluster will be designated for the Vertex AI workload in this zone. */
3362
+ zone?: string;
3363
+ }
3346
3364
  interface GoogleCloudAiplatformV1beta1GeminiExample {
3347
3365
  /** Optional. The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: `projects/{project}/locations/{location}/cachedContents/{cachedContent}` */
3348
3366
  cachedContent?: string;
@@ -5412,7 +5430,7 @@ declare namespace gapi.client {
5412
5430
  genericMetadata?: GoogleCloudAiplatformV1beta1GenericOperationMetadata;
5413
5431
  }
5414
5432
  interface GoogleCloudAiplatformV1beta1MutateDeployedModelRequest {
5415
- /** Required. The DeployedModel to be mutated within the Endpoint. Only the following fields can be mutated: * `min_replica_count` in either DedicatedResources or AutomaticResources * `max_replica_count` in either DedicatedResources or AutomaticResources * autoscaling_metric_specs * `disable_container_logging` (v1 only) * `enable_container_logging` (v1beta1 only) */
5433
+ /** Required. The DeployedModel to be mutated within the Endpoint. Only the following fields can be mutated: * `min_replica_count` in either DedicatedResources or AutomaticResources * `max_replica_count` in either DedicatedResources or AutomaticResources * `required_replica_count` in DedicatedResources * autoscaling_metric_specs * `disable_container_logging` (v1 only) * `enable_container_logging` (v1beta1 only) */
5416
5434
  deployedModel?: GoogleCloudAiplatformV1beta1DeployedModel;
5417
5435
  /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */
5418
5436
  updateMask?: string;
@@ -9360,10 +9378,14 @@ declare namespace gapi.client {
9360
9378
  createTime?: string;
9361
9379
  /** Optional. The display name of the session. */
9362
9380
  displayName?: string;
9381
+ /** Optional. Timestamp of when this session is considered expired. This is *always* provided on output, regardless of what was sent on input. */
9382
+ expireTime?: string;
9363
9383
  /** Identifier. The resource name of the session. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}'. */
9364
9384
  name?: string;
9365
9385
  /** Optional. Session specific memory which stores key conversation points. */
9366
9386
  sessionState?: {[P in string]: any};
9387
+ /** Optional. Input only. The TTL for this session. */
9388
+ ttl?: string;
9367
9389
  /** Output only. Timestamp when the session was updated. */
9368
9390
  updateTime?: string;
9369
9391
  /** Required. Immutable. String id provided by the user */
@@ -9887,7 +9909,7 @@ declare namespace gapi.client {
9887
9909
  adapterSize?: string;
9888
9910
  /** Optional. Number of complete passes the model makes over the entire training dataset during training. */
9889
9911
  epochCount?: string;
9890
- /** Optional. Multiplier for adjusting the default learning rate. Mutually exclusive with `learning_rate`. */
9912
+ /** Optional. Multiplier for adjusting the default learning rate. Mutually exclusive with `learning_rate`. This feature is only available for 1P models. */
9891
9913
  learningRateMultiplier?: number;
9892
9914
  }
9893
9915
  interface GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution {
@@ -16538,6 +16560,8 @@ declare namespace gapi.client {
16538
16560
  fields?: string;
16539
16561
  /** Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `endpoint` supports `=` and `!=`. `endpoint` represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports `=` and `!=`. * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:*` or `labels:key` - key existence * A key including a space must be quoted. `labels."a key"`. * `base_model_name` only supports `=`. Some examples: * `endpoint=1` * `displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-bison"` */
16540
16562
  filter?: string;
16563
+ /** Optional. Configures the Google Distributed Cloud (GDC) environment for online prediction. Only set this field when the Endpoint is to be deployed in a GDC environment. */
16564
+ gdcZone?: string;
16541
16565
  /** 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. */
16542
16566
  key?: string;
16543
16567
  /** OAuth 2.0 token for the current user. */
@@ -16559,7 +16583,7 @@ declare namespace gapi.client {
16559
16583
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
16560
16584
  uploadType?: string;
16561
16585
  }): Request<GoogleCloudAiplatformV1beta1ListEndpointsResponse>;
16562
- /** Updates an existing deployed model. Updatable fields include `min_replica_count`, `max_replica_count`, `autoscaling_metric_specs`, `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only). */
16586
+ /** Updates an existing deployed model. Updatable fields include `min_replica_count`, `max_replica_count`, `required_replica_count`, `autoscaling_metric_specs`, `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only). */
16563
16587
  mutateDeployedModel(request: {
16564
16588
  /** V1 error format. */
16565
16589
  '$.xgafv'?: string;
@@ -40397,6 +40421,33 @@ declare namespace gapi.client {
40397
40421
  ): Request<GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance>;
40398
40422
  }
40399
40423
  interface ProjectsResource {
40424
+ /** Fetches the configs of publisher models. */
40425
+ fetchPublisherModelConfig(request?: {
40426
+ /** V1 error format. */
40427
+ '$.xgafv'?: string;
40428
+ /** OAuth access token. */
40429
+ access_token?: string;
40430
+ /** Data format for response. */
40431
+ alt?: string;
40432
+ /** JSONP */
40433
+ callback?: string;
40434
+ /** Selector specifying which fields to include in a partial response. */
40435
+ fields?: string;
40436
+ /** 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. */
40437
+ key?: string;
40438
+ /** Required. The name of the publisher model, in the format of `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`. */
40439
+ name: string;
40440
+ /** OAuth 2.0 token for the current user. */
40441
+ oauth_token?: string;
40442
+ /** Returns response with indentations and line breaks. */
40443
+ prettyPrint?: boolean;
40444
+ /** 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. */
40445
+ quotaUser?: string;
40446
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
40447
+ upload_protocol?: string;
40448
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
40449
+ uploadType?: string;
40450
+ }): Request<GoogleCloudAiplatformV1beta1PublisherModelConfig>;
40400
40451
  /** Gets a GenAI cache config. */
40401
40452
  getCacheConfig(request?: {
40402
40453
  /** V1 error format. */
@@ -40424,6 +40475,64 @@ declare namespace gapi.client {
40424
40475
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
40425
40476
  uploadType?: string;
40426
40477
  }): Request<GoogleCloudAiplatformV1beta1CacheConfig>;
40478
+ /** Sets (creates or updates) configs of publisher models. For example, sets the request/response logging config. */
40479
+ setPublisherModelConfig(request: {
40480
+ /** V1 error format. */
40481
+ '$.xgafv'?: string;
40482
+ /** OAuth access token. */
40483
+ access_token?: string;
40484
+ /** Data format for response. */
40485
+ alt?: string;
40486
+ /** JSONP */
40487
+ callback?: string;
40488
+ /** Selector specifying which fields to include in a partial response. */
40489
+ fields?: string;
40490
+ /** 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. */
40491
+ key?: string;
40492
+ /** Required. The name of the publisher model, in the format of `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`. */
40493
+ name: string;
40494
+ /** OAuth 2.0 token for the current user. */
40495
+ oauth_token?: string;
40496
+ /** Returns response with indentations and line breaks. */
40497
+ prettyPrint?: boolean;
40498
+ /** 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. */
40499
+ quotaUser?: string;
40500
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
40501
+ upload_protocol?: string;
40502
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
40503
+ uploadType?: string;
40504
+ /** Request body */
40505
+ resource: GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest;
40506
+ }): Request<GoogleLongrunningOperation>;
40507
+ setPublisherModelConfig(
40508
+ request: {
40509
+ /** V1 error format. */
40510
+ '$.xgafv'?: string;
40511
+ /** OAuth access token. */
40512
+ access_token?: string;
40513
+ /** Data format for response. */
40514
+ alt?: string;
40515
+ /** JSONP */
40516
+ callback?: string;
40517
+ /** Selector specifying which fields to include in a partial response. */
40518
+ fields?: string;
40519
+ /** 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. */
40520
+ key?: string;
40521
+ /** Required. The name of the publisher model, in the format of `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`. */
40522
+ name: string;
40523
+ /** OAuth 2.0 token for the current user. */
40524
+ oauth_token?: string;
40525
+ /** Returns response with indentations and line breaks. */
40526
+ prettyPrint?: boolean;
40527
+ /** 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. */
40528
+ quotaUser?: string;
40529
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
40530
+ upload_protocol?: string;
40531
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
40532
+ uploadType?: string;
40533
+ },
40534
+ body: GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest,
40535
+ ): Request<GoogleLongrunningOperation>;
40427
40536
  /** Updates a cache config. */
40428
40537
  updateCacheConfig(request: {
40429
40538
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.aiplatform-v1beta1",
3
- "version": "0.0.20250711",
3
+ "version": "0.0.20250715",
4
4
  "description": "TypeScript typings for Vertex AI API v1beta1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -156,11 +156,21 @@ Upload a file into a RagCorpus.
156
156
  */
157
157
  await gapi.client.aiplatform.media.upload({parent: 'parent'});
158
158
 
159
+ /*
160
+ Fetches the configs of publisher models.
161
+ */
162
+ await gapi.client.aiplatform.projects.fetchPublisherModelConfig({name: 'name'});
163
+
159
164
  /*
160
165
  Gets a GenAI cache config.
161
166
  */
162
167
  await gapi.client.aiplatform.projects.getCacheConfig({name: 'name'});
163
168
 
169
+ /*
170
+ Sets (creates or updates) configs of publisher models. For example, sets the request/response logging config.
171
+ */
172
+ await gapi.client.aiplatform.projects.setPublisherModelConfig({name: 'name'});
173
+
164
174
  /*
165
175
  Updates a cache config.
166
176
  */