@maxim_mazurok/gapi.client.aiplatform-v1beta1 0.0.20240809 → 0.0.20240816

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 +968 -24
  2. package/package.json +1 -1
  3. package/readme.md +45 -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: 20240809
12
+ // Revision: 20240816
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -2113,11 +2113,11 @@ declare namespace gapi.client {
2113
2113
  bigQuerySource?: GoogleCloudAiplatformV1beta1BigQuerySource;
2114
2114
  /** Optional. Columns to construct entity_id / row keys. If not provided defaults to `entity_id`. */
2115
2115
  entityIdColumns?: string[];
2116
- /** Optional. If the source is a time-series source, this can be set to control how downstream sources (ex: FeatureOnlineStore.FeatureView) will treat time series sources. If not set, will treat the source as a time-series source with feature_timestamp as timestamp column and no scan boundary. */
2116
+ /** Optional. If the source is a time-series source, this can be set to control how downstream sources (ex: FeatureView ) will treat time-series sources. If not set, will treat the source as a time-series source with `feature_timestamp` as timestamp column and no scan boundary. */
2117
2117
  timeSeries?: GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries;
2118
2118
  }
2119
2119
  interface GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries {
2120
- /** Optional. Column hosting timestamp values for a time-series source. Will be used to determine the latest featureValues for each entity. Optional. If not provided, a feature_timestamp column of type TIMESTAMP will be used. */
2120
+ /** Optional. Column hosting timestamp values for a time-series source. Will be used to determine the latest `feature_values` for each entity. Optional. If not provided, column named `feature_timestamp` of type `TIMESTAMP` will be used. */
2121
2121
  timestampColumn?: string;
2122
2122
  }
2123
2123
  interface GoogleCloudAiplatformV1beta1FeatureMonitoringStatsAnomaly {
@@ -2419,6 +2419,8 @@ declare namespace gapi.client {
2419
2419
  interface GoogleCloudAiplatformV1beta1FeatureViewSyncSyncSummary {
2420
2420
  /** Output only. Total number of rows synced. */
2421
2421
  rowSynced?: string;
2422
+ /** Lower bound of the system time watermark for the sync job. This is only set for continuously syncing feature views. */
2423
+ systemWatermarkTime?: string;
2422
2424
  /** Output only. BigQuery slot milliseconds consumed for the sync job. */
2423
2425
  totalSlot?: string;
2424
2426
  }
@@ -2717,7 +2719,7 @@ declare namespace gapi.client {
2717
2719
  modelRoutingPreference?: string;
2718
2720
  }
2719
2721
  interface GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode {
2720
- /** The model name to use. Only the public LLM models are accepted. e.g. gemini-1.5-pro-001. */
2722
+ /** The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'. */
2721
2723
  modelName?: string;
2722
2724
  }
2723
2725
  interface GoogleCloudAiplatformV1beta1GenericOperationMetadata {
@@ -4580,7 +4582,7 @@ declare namespace gapi.client {
4580
4582
  directNotebookSource?: GoogleCloudAiplatformV1beta1NotebookExecutionJobDirectNotebookSource;
4581
4583
  /** The display name of the NotebookExecutionJob. The name can be up to 128 characters long and can consist of any UTF-8 characters. */
4582
4584
  displayName?: string;
4583
- /** Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookRuntimeTemplate has an encryption spec. */
4585
+ /** Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookService.NotebookRuntimeTemplate has an encryption spec. */
4584
4586
  encryptionSpec?: GoogleCloudAiplatformV1beta1EncryptionSpec;
4585
4587
  /** Max running time of the execution job in seconds (default 86400s / 24 hrs). */
4586
4588
  executionTimeout?: string;
@@ -4846,6 +4848,10 @@ declare namespace gapi.client {
4846
4848
  resourceRuntime?: GoogleCloudAiplatformV1beta1ResourceRuntime;
4847
4849
  /** Optional. Persistent Resource runtime spec. For example, used for Ray cluster configuration. */
4848
4850
  resourceRuntimeSpec?: GoogleCloudAiplatformV1beta1ResourceRuntimeSpec;
4851
+ /** Output only. Reserved for future use. */
4852
+ satisfiesPzi?: boolean;
4853
+ /** Output only. Reserved for future use. */
4854
+ satisfiesPzs?: boolean;
4849
4855
  /** Output only. Time when the PersistentResource for the first time entered the `RUNNING` state. */
4850
4856
  startTime?: string;
4851
4857
  /** Output only. The detailed state of a Study. */
@@ -5141,6 +5147,8 @@ declare namespace gapi.client {
5141
5147
  deploy?: GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeploy;
5142
5148
  /** Optional. Deploy PublisherModel to Google Kubernetes Engine. */
5143
5149
  deployGke?: GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployGke;
5150
+ /** Optional. Multiple setups to deploy the PublisherModel to Vertex Endpoint. */
5151
+ multiDeployVertex?: GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex;
5144
5152
  /** Optional. Open evaluation pipeline of the PublisherModel. */
5145
5153
  openEvaluationPipeline?: GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences;
5146
5154
  /** Optional. Open fine-tuning pipeline of the PublisherModel. */
@@ -5196,6 +5204,10 @@ declare namespace gapi.client {
5196
5204
  /** Optional. GKE deployment configuration in yaml format. */
5197
5205
  gkeYamlConfigs?: string[];
5198
5206
  }
5207
+ interface GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex {
5208
+ /** Optional. One click deployment configurations. */
5209
+ multiDeployVertex?: GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeploy[];
5210
+ }
5199
5211
  interface GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenFineTuningPipelines {
5200
5212
  /** Required. Regional resource references to fine tuning pipelines. */
5201
5213
  fineTuningPipelines?: GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences[];
@@ -5549,17 +5561,21 @@ declare namespace gapi.client {
5549
5561
  chunkSize?: number;
5550
5562
  }
5551
5563
  interface GoogleCloudAiplatformV1beta1RagFileParsingConfig {
5552
- /** Whether to use OCR for PDFs. */
5553
- parsePdfsUsingOcr?: boolean;
5554
5564
  /** Whether to use advanced PDF parsing. */
5555
5565
  useAdvancedPdfParsing?: boolean;
5556
5566
  }
5557
5567
  interface GoogleCloudAiplatformV1beta1RagQuery {
5568
+ /** Optional. Configurations for hybrid search results ranking. */
5569
+ ranking?: GoogleCloudAiplatformV1beta1RagQueryRanking;
5558
5570
  /** Optional. The number of contexts to retrieve. */
5559
5571
  similarityTopK?: number;
5560
5572
  /** Optional. The query in text format to get relevant contexts. */
5561
5573
  text?: string;
5562
5574
  }
5575
+ interface GoogleCloudAiplatformV1beta1RagQueryRanking {
5576
+ /** Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally. */
5577
+ alpha?: number;
5578
+ }
5563
5579
  interface GoogleCloudAiplatformV1beta1RawPredictRequest {
5564
5580
  /** The prediction input. Supports HTTP headers and arbitrary data payload. A DeployedModel may have an upper limit on the number of instances it supports per request. When this limit it is exceeded for an AutoML model, the RawPredict method returns an error. When this limit is exceeded for a custom-trained model, the behavior varies depending on the model. You can specify the schema for each instance in the predict_schemata.instance_schema_uri field when you create a Model. This schema applies when you deploy the `Model` as a `DeployedModel` to an Endpoint and use the `RawPredict` method. */
5565
5581
  httpBody?: GoogleApiHttpBody;
@@ -5802,8 +5818,6 @@ declare namespace gapi.client {
5802
5818
  ragCorpora?: string[];
5803
5819
  /** Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support. */
5804
5820
  ragResources?: GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRagResource[];
5805
- /** Optional. Configurations for hybrid search results ranking. */
5806
- ranking?: GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking;
5807
5821
  /** Optional. Only return contexts with vector distance smaller than the threshold. */
5808
5822
  vectorDistanceThreshold?: number;
5809
5823
  }
@@ -5813,10 +5827,6 @@ declare namespace gapi.client {
5813
5827
  /** Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field. */
5814
5828
  ragFileIds?: string[];
5815
5829
  }
5816
- interface GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking {
5817
- /** Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally. */
5818
- alpha?: number;
5819
- }
5820
5830
  interface GoogleCloudAiplatformV1beta1RetrieveContextsResponse {
5821
5831
  /** The contexts of the query. */
5822
5832
  contexts?: GoogleCloudAiplatformV1beta1RagContexts;
@@ -6010,6 +6020,8 @@ declare namespace gapi.client {
6010
6020
  interface GoogleCloudAiplatformV1beta1Scheduling {
6011
6021
  /** Optional. Indicates if the job should retry for internal errors after the job starts running. If true, overrides `Scheduling.restart_job_on_worker_restart` to false. */
6012
6022
  disableRetries?: boolean;
6023
+ /** Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours. */
6024
+ maxWaitDuration?: string;
6013
6025
  /** Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job. */
6014
6026
  restartJobOnWorkerRestart?: boolean;
6015
6027
  /** Optional. This determines which type of scheduling strategy to use. */
@@ -7907,8 +7919,12 @@ declare namespace gapi.client {
7907
7919
  totalBillableCharacterCount?: string;
7908
7920
  /** Output only. Number of billable tokens in the tuning dataset. */
7909
7921
  totalBillableTokenCount?: string;
7922
+ /** The number of examples in the dataset that have been truncated by any amount. */
7923
+ totalTruncatedExampleCount?: string;
7910
7924
  /** Output only. Number of tuning characters in the tuning dataset. */
7911
7925
  totalTuningCharacterCount?: string;
7926
+ /** A partial sample of the indices (starting from 1) of the truncated examples. */
7927
+ truncatedExampleIndices?: string[];
7912
7928
  /** Output only. Number of examples in the tuning dataset. */
7913
7929
  tuningDatasetExampleCount?: string;
7914
7930
  /** Output only. Number of tuning steps for this Tuning Job. */
@@ -8530,7 +8546,7 @@ declare namespace gapi.client {
8530
8546
  stringValue?: string;
8531
8547
  }
8532
8548
  interface GoogleCloudAiplatformV1beta1VertexAISearch {
8533
- /** Required. Fully-qualified Vertex AI Search's datastore resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` */
8549
+ /** Required. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` */
8534
8550
  datastore?: string;
8535
8551
  }
8536
8552
  interface GoogleCloudAiplatformV1beta1VertexRagStore {
@@ -8723,6 +8739,698 @@ declare namespace gapi.client {
8723
8739
  /** The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. */
8724
8740
  units?: string;
8725
8741
  }
8742
+ interface DatasetVersionsResource {
8743
+ /** Create a version from a Dataset. */
8744
+ create(request: {
8745
+ /** V1 error format. */
8746
+ '$.xgafv'?: string;
8747
+ /** OAuth access token. */
8748
+ access_token?: string;
8749
+ /** Data format for response. */
8750
+ alt?: string;
8751
+ /** JSONP */
8752
+ callback?: string;
8753
+ /** Selector specifying which fields to include in a partial response. */
8754
+ fields?: string;
8755
+ /** 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. */
8756
+ key?: string;
8757
+ /** OAuth 2.0 token for the current user. */
8758
+ oauth_token?: string;
8759
+ /** Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}` */
8760
+ parent: string;
8761
+ /** Returns response with indentations and line breaks. */
8762
+ prettyPrint?: boolean;
8763
+ /** 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. */
8764
+ quotaUser?: string;
8765
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8766
+ upload_protocol?: string;
8767
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8768
+ uploadType?: string;
8769
+ /** Request body */
8770
+ resource: GoogleCloudAiplatformV1beta1DatasetVersion;
8771
+ }): Request<GoogleLongrunningOperation>;
8772
+ create(
8773
+ request: {
8774
+ /** V1 error format. */
8775
+ '$.xgafv'?: string;
8776
+ /** OAuth access token. */
8777
+ access_token?: string;
8778
+ /** Data format for response. */
8779
+ alt?: string;
8780
+ /** JSONP */
8781
+ callback?: string;
8782
+ /** Selector specifying which fields to include in a partial response. */
8783
+ fields?: string;
8784
+ /** 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. */
8785
+ key?: string;
8786
+ /** OAuth 2.0 token for the current user. */
8787
+ oauth_token?: string;
8788
+ /** Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}` */
8789
+ parent: string;
8790
+ /** Returns response with indentations and line breaks. */
8791
+ prettyPrint?: boolean;
8792
+ /** 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. */
8793
+ quotaUser?: string;
8794
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8795
+ upload_protocol?: string;
8796
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8797
+ uploadType?: string;
8798
+ },
8799
+ body: GoogleCloudAiplatformV1beta1DatasetVersion
8800
+ ): Request<GoogleLongrunningOperation>;
8801
+ /** Deletes a Dataset version. */
8802
+ delete(request?: {
8803
+ /** V1 error format. */
8804
+ '$.xgafv'?: string;
8805
+ /** OAuth access token. */
8806
+ access_token?: string;
8807
+ /** Data format for response. */
8808
+ alt?: string;
8809
+ /** JSONP */
8810
+ callback?: string;
8811
+ /** Selector specifying which fields to include in a partial response. */
8812
+ fields?: string;
8813
+ /** 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. */
8814
+ key?: string;
8815
+ /** Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` */
8816
+ name: string;
8817
+ /** OAuth 2.0 token for the current user. */
8818
+ oauth_token?: string;
8819
+ /** Returns response with indentations and line breaks. */
8820
+ prettyPrint?: boolean;
8821
+ /** 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. */
8822
+ quotaUser?: string;
8823
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8824
+ upload_protocol?: string;
8825
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8826
+ uploadType?: string;
8827
+ }): Request<GoogleLongrunningOperation>;
8828
+ /** Gets a Dataset version. */
8829
+ get(request?: {
8830
+ /** V1 error format. */
8831
+ '$.xgafv'?: string;
8832
+ /** OAuth access token. */
8833
+ access_token?: string;
8834
+ /** Data format for response. */
8835
+ alt?: string;
8836
+ /** JSONP */
8837
+ callback?: string;
8838
+ /** Selector specifying which fields to include in a partial response. */
8839
+ fields?: string;
8840
+ /** 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. */
8841
+ key?: string;
8842
+ /** Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` */
8843
+ name: string;
8844
+ /** OAuth 2.0 token for the current user. */
8845
+ oauth_token?: string;
8846
+ /** Returns response with indentations and line breaks. */
8847
+ prettyPrint?: boolean;
8848
+ /** 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. */
8849
+ quotaUser?: string;
8850
+ /** Mask specifying which fields to read. */
8851
+ readMask?: string;
8852
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8853
+ upload_protocol?: string;
8854
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8855
+ uploadType?: string;
8856
+ }): Request<GoogleCloudAiplatformV1beta1DatasetVersion>;
8857
+ /** Lists DatasetVersions in a Dataset. */
8858
+ list(request?: {
8859
+ /** V1 error format. */
8860
+ '$.xgafv'?: string;
8861
+ /** OAuth access token. */
8862
+ access_token?: string;
8863
+ /** Data format for response. */
8864
+ alt?: string;
8865
+ /** JSONP */
8866
+ callback?: string;
8867
+ /** Selector specifying which fields to include in a partial response. */
8868
+ fields?: string;
8869
+ /** Optional. The standard list filter. */
8870
+ filter?: string;
8871
+ /** 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. */
8872
+ key?: string;
8873
+ /** OAuth 2.0 token for the current user. */
8874
+ oauth_token?: string;
8875
+ /** Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. */
8876
+ orderBy?: string;
8877
+ /** Optional. The standard list page size. */
8878
+ pageSize?: number;
8879
+ /** Optional. The standard list page token. */
8880
+ pageToken?: string;
8881
+ /** Required. The resource name of the Dataset to list DatasetVersions from. Format: `projects/{project}/locations/{location}/datasets/{dataset}` */
8882
+ parent: string;
8883
+ /** Returns response with indentations and line breaks. */
8884
+ prettyPrint?: boolean;
8885
+ /** 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. */
8886
+ quotaUser?: string;
8887
+ /** Optional. Mask specifying which fields to read. */
8888
+ readMask?: string;
8889
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8890
+ upload_protocol?: string;
8891
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8892
+ uploadType?: string;
8893
+ }): Request<GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse>;
8894
+ /** Updates a DatasetVersion. */
8895
+ patch(request: {
8896
+ /** V1 error format. */
8897
+ '$.xgafv'?: string;
8898
+ /** OAuth access token. */
8899
+ access_token?: string;
8900
+ /** Data format for response. */
8901
+ alt?: string;
8902
+ /** JSONP */
8903
+ callback?: string;
8904
+ /** Selector specifying which fields to include in a partial response. */
8905
+ fields?: string;
8906
+ /** 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. */
8907
+ key?: string;
8908
+ /** Output only. Identifier. The resource name of the DatasetVersion. */
8909
+ name: string;
8910
+ /** OAuth 2.0 token for the current user. */
8911
+ oauth_token?: string;
8912
+ /** Returns response with indentations and line breaks. */
8913
+ prettyPrint?: boolean;
8914
+ /** 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. */
8915
+ quotaUser?: string;
8916
+ /** Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` */
8917
+ updateMask?: string;
8918
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8919
+ upload_protocol?: string;
8920
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8921
+ uploadType?: string;
8922
+ /** Request body */
8923
+ resource: GoogleCloudAiplatformV1beta1DatasetVersion;
8924
+ }): Request<GoogleCloudAiplatformV1beta1DatasetVersion>;
8925
+ patch(
8926
+ request: {
8927
+ /** V1 error format. */
8928
+ '$.xgafv'?: string;
8929
+ /** OAuth access token. */
8930
+ access_token?: string;
8931
+ /** Data format for response. */
8932
+ alt?: string;
8933
+ /** JSONP */
8934
+ callback?: string;
8935
+ /** Selector specifying which fields to include in a partial response. */
8936
+ fields?: string;
8937
+ /** 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. */
8938
+ key?: string;
8939
+ /** Output only. Identifier. The resource name of the DatasetVersion. */
8940
+ name: string;
8941
+ /** OAuth 2.0 token for the current user. */
8942
+ oauth_token?: string;
8943
+ /** Returns response with indentations and line breaks. */
8944
+ prettyPrint?: boolean;
8945
+ /** 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. */
8946
+ quotaUser?: string;
8947
+ /** Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` */
8948
+ updateMask?: string;
8949
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8950
+ upload_protocol?: string;
8951
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8952
+ uploadType?: string;
8953
+ },
8954
+ body: GoogleCloudAiplatformV1beta1DatasetVersion
8955
+ ): Request<GoogleCloudAiplatformV1beta1DatasetVersion>;
8956
+ /** Restores a dataset version. */
8957
+ restore(request?: {
8958
+ /** V1 error format. */
8959
+ '$.xgafv'?: string;
8960
+ /** OAuth access token. */
8961
+ access_token?: string;
8962
+ /** Data format for response. */
8963
+ alt?: string;
8964
+ /** JSONP */
8965
+ callback?: string;
8966
+ /** Selector specifying which fields to include in a partial response. */
8967
+ fields?: string;
8968
+ /** 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. */
8969
+ key?: string;
8970
+ /** Required. The name of the DatasetVersion resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` */
8971
+ name: string;
8972
+ /** OAuth 2.0 token for the current user. */
8973
+ oauth_token?: string;
8974
+ /** Returns response with indentations and line breaks. */
8975
+ prettyPrint?: boolean;
8976
+ /** 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. */
8977
+ quotaUser?: string;
8978
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8979
+ upload_protocol?: string;
8980
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8981
+ uploadType?: string;
8982
+ }): Request<GoogleLongrunningOperation>;
8983
+ }
8984
+ interface DatasetsResource {
8985
+ /** Creates a Dataset. */
8986
+ create(request: {
8987
+ /** V1 error format. */
8988
+ '$.xgafv'?: string;
8989
+ /** OAuth access token. */
8990
+ access_token?: string;
8991
+ /** Data format for response. */
8992
+ alt?: string;
8993
+ /** JSONP */
8994
+ callback?: string;
8995
+ /** Selector specifying which fields to include in a partial response. */
8996
+ fields?: string;
8997
+ /** 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. */
8998
+ key?: string;
8999
+ /** OAuth 2.0 token for the current user. */
9000
+ oauth_token?: string;
9001
+ /** Required. The resource name of the Location to create the Dataset in. Format: `projects/{project}/locations/{location}` */
9002
+ parent?: string;
9003
+ /** Returns response with indentations and line breaks. */
9004
+ prettyPrint?: boolean;
9005
+ /** 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. */
9006
+ quotaUser?: string;
9007
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9008
+ upload_protocol?: string;
9009
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9010
+ uploadType?: string;
9011
+ /** Request body */
9012
+ resource: GoogleCloudAiplatformV1beta1Dataset;
9013
+ }): Request<GoogleLongrunningOperation>;
9014
+ create(
9015
+ request: {
9016
+ /** V1 error format. */
9017
+ '$.xgafv'?: string;
9018
+ /** OAuth access token. */
9019
+ access_token?: string;
9020
+ /** Data format for response. */
9021
+ alt?: string;
9022
+ /** JSONP */
9023
+ callback?: string;
9024
+ /** Selector specifying which fields to include in a partial response. */
9025
+ fields?: string;
9026
+ /** 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. */
9027
+ key?: string;
9028
+ /** OAuth 2.0 token for the current user. */
9029
+ oauth_token?: string;
9030
+ /** Required. The resource name of the Location to create the Dataset in. Format: `projects/{project}/locations/{location}` */
9031
+ parent?: string;
9032
+ /** Returns response with indentations and line breaks. */
9033
+ prettyPrint?: boolean;
9034
+ /** 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. */
9035
+ quotaUser?: string;
9036
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9037
+ upload_protocol?: string;
9038
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9039
+ uploadType?: string;
9040
+ },
9041
+ body: GoogleCloudAiplatformV1beta1Dataset
9042
+ ): Request<GoogleLongrunningOperation>;
9043
+ /** Deletes a Dataset. */
9044
+ delete(request?: {
9045
+ /** V1 error format. */
9046
+ '$.xgafv'?: string;
9047
+ /** OAuth access token. */
9048
+ access_token?: string;
9049
+ /** Data format for response. */
9050
+ alt?: string;
9051
+ /** JSONP */
9052
+ callback?: string;
9053
+ /** Selector specifying which fields to include in a partial response. */
9054
+ fields?: string;
9055
+ /** 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. */
9056
+ key?: string;
9057
+ /** Required. The resource name of the Dataset to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}` */
9058
+ name: string;
9059
+ /** OAuth 2.0 token for the current user. */
9060
+ oauth_token?: string;
9061
+ /** Returns response with indentations and line breaks. */
9062
+ prettyPrint?: boolean;
9063
+ /** 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. */
9064
+ quotaUser?: string;
9065
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9066
+ upload_protocol?: string;
9067
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9068
+ uploadType?: string;
9069
+ }): Request<GoogleLongrunningOperation>;
9070
+ /** Gets a Dataset. */
9071
+ get(request?: {
9072
+ /** V1 error format. */
9073
+ '$.xgafv'?: string;
9074
+ /** OAuth access token. */
9075
+ access_token?: string;
9076
+ /** Data format for response. */
9077
+ alt?: string;
9078
+ /** JSONP */
9079
+ callback?: string;
9080
+ /** Selector specifying which fields to include in a partial response. */
9081
+ fields?: string;
9082
+ /** 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. */
9083
+ key?: string;
9084
+ /** Required. The name of the Dataset resource. */
9085
+ name: string;
9086
+ /** OAuth 2.0 token for the current user. */
9087
+ oauth_token?: string;
9088
+ /** Returns response with indentations and line breaks. */
9089
+ prettyPrint?: boolean;
9090
+ /** 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. */
9091
+ quotaUser?: string;
9092
+ /** Mask specifying which fields to read. */
9093
+ readMask?: string;
9094
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9095
+ upload_protocol?: string;
9096
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9097
+ uploadType?: string;
9098
+ }): Request<GoogleCloudAiplatformV1beta1Dataset>;
9099
+ /** Lists Datasets in a Location. */
9100
+ list(request?: {
9101
+ /** V1 error format. */
9102
+ '$.xgafv'?: string;
9103
+ /** OAuth access token. */
9104
+ access_token?: string;
9105
+ /** Data format for response. */
9106
+ alt?: string;
9107
+ /** JSONP */
9108
+ callback?: string;
9109
+ /** Selector specifying which fields to include in a partial response. */
9110
+ fields?: string;
9111
+ /** An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `display_name`: supports = and != * `metadata_schema_uri`: 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"`. Some examples: * `displayName="myDisplayName"` * `labels.myKey="myValue"` */
9112
+ filter?: string;
9113
+ /** 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. */
9114
+ key?: string;
9115
+ /** OAuth 2.0 token for the current user. */
9116
+ oauth_token?: string;
9117
+ /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `display_name` * `create_time` * `update_time` */
9118
+ orderBy?: string;
9119
+ /** The standard list page size. */
9120
+ pageSize?: number;
9121
+ /** The standard list page token. */
9122
+ pageToken?: string;
9123
+ /** Required. The name of the Dataset's parent resource. Format: `projects/{project}/locations/{location}` */
9124
+ parent?: string;
9125
+ /** Returns response with indentations and line breaks. */
9126
+ prettyPrint?: boolean;
9127
+ /** 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. */
9128
+ quotaUser?: string;
9129
+ /** Mask specifying which fields to read. */
9130
+ readMask?: string;
9131
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9132
+ upload_protocol?: string;
9133
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9134
+ uploadType?: string;
9135
+ }): Request<GoogleCloudAiplatformV1beta1ListDatasetsResponse>;
9136
+ /** Updates a Dataset. */
9137
+ patch(request: {
9138
+ /** V1 error format. */
9139
+ '$.xgafv'?: string;
9140
+ /** OAuth access token. */
9141
+ access_token?: string;
9142
+ /** Data format for response. */
9143
+ alt?: string;
9144
+ /** JSONP */
9145
+ callback?: string;
9146
+ /** Selector specifying which fields to include in a partial response. */
9147
+ fields?: string;
9148
+ /** 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. */
9149
+ key?: string;
9150
+ /** Output only. Identifier. The resource name of the Dataset. */
9151
+ name: string;
9152
+ /** OAuth 2.0 token for the current user. */
9153
+ oauth_token?: string;
9154
+ /** Returns response with indentations and line breaks. */
9155
+ prettyPrint?: boolean;
9156
+ /** 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. */
9157
+ quotaUser?: string;
9158
+ /** Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels` */
9159
+ updateMask?: string;
9160
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9161
+ upload_protocol?: string;
9162
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9163
+ uploadType?: string;
9164
+ /** Request body */
9165
+ resource: GoogleCloudAiplatformV1beta1Dataset;
9166
+ }): Request<GoogleCloudAiplatformV1beta1Dataset>;
9167
+ patch(
9168
+ request: {
9169
+ /** V1 error format. */
9170
+ '$.xgafv'?: string;
9171
+ /** OAuth access token. */
9172
+ access_token?: string;
9173
+ /** Data format for response. */
9174
+ alt?: string;
9175
+ /** JSONP */
9176
+ callback?: string;
9177
+ /** Selector specifying which fields to include in a partial response. */
9178
+ fields?: string;
9179
+ /** 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. */
9180
+ key?: string;
9181
+ /** Output only. Identifier. The resource name of the Dataset. */
9182
+ name: string;
9183
+ /** OAuth 2.0 token for the current user. */
9184
+ oauth_token?: string;
9185
+ /** Returns response with indentations and line breaks. */
9186
+ prettyPrint?: boolean;
9187
+ /** 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. */
9188
+ quotaUser?: string;
9189
+ /** Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels` */
9190
+ updateMask?: string;
9191
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9192
+ upload_protocol?: string;
9193
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9194
+ uploadType?: string;
9195
+ },
9196
+ body: GoogleCloudAiplatformV1beta1Dataset
9197
+ ): Request<GoogleCloudAiplatformV1beta1Dataset>;
9198
+ datasetVersions: DatasetVersionsResource;
9199
+ }
9200
+ interface EndpointsResource {
9201
+ /** Return a list of tokens based on the input text. */
9202
+ computeTokens(request: {
9203
+ /** V1 error format. */
9204
+ '$.xgafv'?: string;
9205
+ /** OAuth access token. */
9206
+ access_token?: string;
9207
+ /** Data format for response. */
9208
+ alt?: string;
9209
+ /** JSONP */
9210
+ callback?: string;
9211
+ /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
9212
+ endpoint: string;
9213
+ /** Selector specifying which fields to include in a partial response. */
9214
+ fields?: string;
9215
+ /** 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. */
9216
+ key?: string;
9217
+ /** OAuth 2.0 token for the current user. */
9218
+ oauth_token?: string;
9219
+ /** Returns response with indentations and line breaks. */
9220
+ prettyPrint?: boolean;
9221
+ /** 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. */
9222
+ quotaUser?: string;
9223
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9224
+ upload_protocol?: string;
9225
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9226
+ uploadType?: string;
9227
+ /** Request body */
9228
+ resource: GoogleCloudAiplatformV1beta1ComputeTokensRequest;
9229
+ }): Request<GoogleCloudAiplatformV1beta1ComputeTokensResponse>;
9230
+ computeTokens(
9231
+ request: {
9232
+ /** V1 error format. */
9233
+ '$.xgafv'?: string;
9234
+ /** OAuth access token. */
9235
+ access_token?: string;
9236
+ /** Data format for response. */
9237
+ alt?: string;
9238
+ /** JSONP */
9239
+ callback?: string;
9240
+ /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
9241
+ endpoint: string;
9242
+ /** Selector specifying which fields to include in a partial response. */
9243
+ fields?: string;
9244
+ /** 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. */
9245
+ key?: string;
9246
+ /** OAuth 2.0 token for the current user. */
9247
+ oauth_token?: string;
9248
+ /** Returns response with indentations and line breaks. */
9249
+ prettyPrint?: boolean;
9250
+ /** 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. */
9251
+ quotaUser?: string;
9252
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9253
+ upload_protocol?: string;
9254
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9255
+ uploadType?: string;
9256
+ },
9257
+ body: GoogleCloudAiplatformV1beta1ComputeTokensRequest
9258
+ ): Request<GoogleCloudAiplatformV1beta1ComputeTokensResponse>;
9259
+ /** Perform a token counting. */
9260
+ countTokens(request: {
9261
+ /** V1 error format. */
9262
+ '$.xgafv'?: string;
9263
+ /** OAuth access token. */
9264
+ access_token?: string;
9265
+ /** Data format for response. */
9266
+ alt?: string;
9267
+ /** JSONP */
9268
+ callback?: string;
9269
+ /** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
9270
+ endpoint: string;
9271
+ /** Selector specifying which fields to include in a partial response. */
9272
+ fields?: string;
9273
+ /** 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. */
9274
+ key?: string;
9275
+ /** OAuth 2.0 token for the current user. */
9276
+ oauth_token?: string;
9277
+ /** Returns response with indentations and line breaks. */
9278
+ prettyPrint?: boolean;
9279
+ /** 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. */
9280
+ quotaUser?: string;
9281
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9282
+ upload_protocol?: string;
9283
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9284
+ uploadType?: string;
9285
+ /** Request body */
9286
+ resource: GoogleCloudAiplatformV1beta1CountTokensRequest;
9287
+ }): Request<GoogleCloudAiplatformV1beta1CountTokensResponse>;
9288
+ countTokens(
9289
+ request: {
9290
+ /** V1 error format. */
9291
+ '$.xgafv'?: string;
9292
+ /** OAuth access token. */
9293
+ access_token?: string;
9294
+ /** Data format for response. */
9295
+ alt?: string;
9296
+ /** JSONP */
9297
+ callback?: string;
9298
+ /** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
9299
+ endpoint: string;
9300
+ /** Selector specifying which fields to include in a partial response. */
9301
+ fields?: string;
9302
+ /** 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. */
9303
+ key?: string;
9304
+ /** OAuth 2.0 token for the current user. */
9305
+ oauth_token?: string;
9306
+ /** Returns response with indentations and line breaks. */
9307
+ prettyPrint?: boolean;
9308
+ /** 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. */
9309
+ quotaUser?: string;
9310
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9311
+ upload_protocol?: string;
9312
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9313
+ uploadType?: string;
9314
+ },
9315
+ body: GoogleCloudAiplatformV1beta1CountTokensRequest
9316
+ ): Request<GoogleCloudAiplatformV1beta1CountTokensResponse>;
9317
+ /** Generate content with multimodal inputs. */
9318
+ generateContent(request: {
9319
+ /** V1 error format. */
9320
+ '$.xgafv'?: string;
9321
+ /** OAuth access token. */
9322
+ access_token?: string;
9323
+ /** Data format for response. */
9324
+ alt?: string;
9325
+ /** JSONP */
9326
+ callback?: string;
9327
+ /** Selector specifying which fields to include in a partial response. */
9328
+ fields?: string;
9329
+ /** 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. */
9330
+ key?: string;
9331
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
9332
+ model: string;
9333
+ /** OAuth 2.0 token for the current user. */
9334
+ oauth_token?: string;
9335
+ /** Returns response with indentations and line breaks. */
9336
+ prettyPrint?: boolean;
9337
+ /** 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. */
9338
+ quotaUser?: string;
9339
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9340
+ upload_protocol?: string;
9341
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9342
+ uploadType?: string;
9343
+ /** Request body */
9344
+ resource: GoogleCloudAiplatformV1beta1GenerateContentRequest;
9345
+ }): Request<GoogleCloudAiplatformV1beta1GenerateContentResponse>;
9346
+ generateContent(
9347
+ request: {
9348
+ /** V1 error format. */
9349
+ '$.xgafv'?: string;
9350
+ /** OAuth access token. */
9351
+ access_token?: string;
9352
+ /** Data format for response. */
9353
+ alt?: string;
9354
+ /** JSONP */
9355
+ callback?: string;
9356
+ /** Selector specifying which fields to include in a partial response. */
9357
+ fields?: string;
9358
+ /** 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. */
9359
+ key?: string;
9360
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
9361
+ model: string;
9362
+ /** OAuth 2.0 token for the current user. */
9363
+ oauth_token?: string;
9364
+ /** Returns response with indentations and line breaks. */
9365
+ prettyPrint?: boolean;
9366
+ /** 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. */
9367
+ quotaUser?: string;
9368
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9369
+ upload_protocol?: string;
9370
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9371
+ uploadType?: string;
9372
+ },
9373
+ body: GoogleCloudAiplatformV1beta1GenerateContentRequest
9374
+ ): Request<GoogleCloudAiplatformV1beta1GenerateContentResponse>;
9375
+ /** Generate content with multimodal inputs with streaming support. */
9376
+ streamGenerateContent(request: {
9377
+ /** V1 error format. */
9378
+ '$.xgafv'?: string;
9379
+ /** OAuth access token. */
9380
+ access_token?: string;
9381
+ /** Data format for response. */
9382
+ alt?: string;
9383
+ /** JSONP */
9384
+ callback?: string;
9385
+ /** Selector specifying which fields to include in a partial response. */
9386
+ fields?: string;
9387
+ /** 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. */
9388
+ key?: string;
9389
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
9390
+ model: string;
9391
+ /** OAuth 2.0 token for the current user. */
9392
+ oauth_token?: string;
9393
+ /** Returns response with indentations and line breaks. */
9394
+ prettyPrint?: boolean;
9395
+ /** 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. */
9396
+ quotaUser?: string;
9397
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9398
+ upload_protocol?: string;
9399
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9400
+ uploadType?: string;
9401
+ /** Request body */
9402
+ resource: GoogleCloudAiplatformV1beta1GenerateContentRequest;
9403
+ }): Request<GoogleCloudAiplatformV1beta1GenerateContentResponse>;
9404
+ streamGenerateContent(
9405
+ request: {
9406
+ /** V1 error format. */
9407
+ '$.xgafv'?: string;
9408
+ /** OAuth access token. */
9409
+ access_token?: string;
9410
+ /** Data format for response. */
9411
+ alt?: string;
9412
+ /** JSONP */
9413
+ callback?: string;
9414
+ /** Selector specifying which fields to include in a partial response. */
9415
+ fields?: string;
9416
+ /** 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. */
9417
+ key?: string;
9418
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
9419
+ model: string;
9420
+ /** OAuth 2.0 token for the current user. */
9421
+ oauth_token?: string;
9422
+ /** Returns response with indentations and line breaks. */
9423
+ prettyPrint?: boolean;
9424
+ /** 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. */
9425
+ quotaUser?: string;
9426
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9427
+ upload_protocol?: string;
9428
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9429
+ uploadType?: string;
9430
+ },
9431
+ body: GoogleCloudAiplatformV1beta1GenerateContentRequest
9432
+ ): Request<GoogleCloudAiplatformV1beta1GenerateContentResponse>;
9433
+ }
8726
9434
  interface MediaResource {
8727
9435
  /** Upload a file into a RagCorpus. */
8728
9436
  upload(request: {
@@ -12280,7 +12988,7 @@ declare namespace gapi.client {
12280
12988
  alt?: string;
12281
12989
  /** JSONP */
12282
12990
  callback?: string;
12283
- /** Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/openapi` */
12991
+ /** Required. The name of the endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
12284
12992
  endpoint: string;
12285
12993
  /** Selector specifying which fields to include in a partial response. */
12286
12994
  fields?: string;
@@ -12309,7 +13017,7 @@ declare namespace gapi.client {
12309
13017
  alt?: string;
12310
13018
  /** JSONP */
12311
13019
  callback?: string;
12312
- /** Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/openapi` */
13020
+ /** Required. The name of the endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
12313
13021
  endpoint: string;
12314
13022
  /** Selector specifying which fields to include in a partial response. */
12315
13023
  fields?: string;
@@ -12926,7 +13634,7 @@ declare namespace gapi.client {
12926
13634
  fields?: string;
12927
13635
  /** 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. */
12928
13636
  key?: string;
12929
- /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
13637
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
12930
13638
  model: string;
12931
13639
  /** OAuth 2.0 token for the current user. */
12932
13640
  oauth_token?: string;
@@ -12955,7 +13663,7 @@ declare namespace gapi.client {
12955
13663
  fields?: string;
12956
13664
  /** 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. */
12957
13665
  key?: string;
12958
- /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
13666
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
12959
13667
  model: string;
12960
13668
  /** OAuth 2.0 token for the current user. */
12961
13669
  oauth_token?: string;
@@ -13399,7 +14107,7 @@ declare namespace gapi.client {
13399
14107
  fields?: string;
13400
14108
  /** 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. */
13401
14109
  key?: string;
13402
- /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
14110
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
13403
14111
  model: string;
13404
14112
  /** OAuth 2.0 token for the current user. */
13405
14113
  oauth_token?: string;
@@ -13428,7 +14136,7 @@ declare namespace gapi.client {
13428
14136
  fields?: string;
13429
14137
  /** 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. */
13430
14138
  key?: string;
13431
- /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
14139
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
13432
14140
  model: string;
13433
14141
  /** OAuth 2.0 token for the current user. */
13434
14142
  oauth_token?: string;
@@ -26960,7 +27668,7 @@ declare namespace gapi.client {
26960
27668
  fields?: string;
26961
27669
  /** 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. */
26962
27670
  key?: string;
26963
- /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
27671
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
26964
27672
  model: string;
26965
27673
  /** OAuth 2.0 token for the current user. */
26966
27674
  oauth_token?: string;
@@ -26989,7 +27697,7 @@ declare namespace gapi.client {
26989
27697
  fields?: string;
26990
27698
  /** 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. */
26991
27699
  key?: string;
26992
- /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
27700
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
26993
27701
  model: string;
26994
27702
  /** OAuth 2.0 token for the current user. */
26995
27703
  oauth_token?: string;
@@ -27221,7 +27929,7 @@ declare namespace gapi.client {
27221
27929
  fields?: string;
27222
27930
  /** 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. */
27223
27931
  key?: string;
27224
- /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
27932
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
27225
27933
  model: string;
27226
27934
  /** OAuth 2.0 token for the current user. */
27227
27935
  oauth_token?: string;
@@ -27250,7 +27958,7 @@ declare namespace gapi.client {
27250
27958
  fields?: string;
27251
27959
  /** 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. */
27252
27960
  key?: string;
27253
- /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
27961
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
27254
27962
  model: string;
27255
27963
  /** OAuth 2.0 token for the current user. */
27256
27964
  oauth_token?: string;
@@ -32960,6 +33668,180 @@ declare namespace gapi.client {
32960
33668
  locations: LocationsResource;
32961
33669
  }
32962
33670
  interface ModelsResource {
33671
+ /** Return a list of tokens based on the input text. */
33672
+ computeTokens(request: {
33673
+ /** V1 error format. */
33674
+ '$.xgafv'?: string;
33675
+ /** OAuth access token. */
33676
+ access_token?: string;
33677
+ /** Data format for response. */
33678
+ alt?: string;
33679
+ /** JSONP */
33680
+ callback?: string;
33681
+ /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
33682
+ endpoint: string;
33683
+ /** Selector specifying which fields to include in a partial response. */
33684
+ fields?: string;
33685
+ /** 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. */
33686
+ key?: string;
33687
+ /** OAuth 2.0 token for the current user. */
33688
+ oauth_token?: string;
33689
+ /** Returns response with indentations and line breaks. */
33690
+ prettyPrint?: boolean;
33691
+ /** 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. */
33692
+ quotaUser?: string;
33693
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
33694
+ upload_protocol?: string;
33695
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
33696
+ uploadType?: string;
33697
+ /** Request body */
33698
+ resource: GoogleCloudAiplatformV1beta1ComputeTokensRequest;
33699
+ }): Request<GoogleCloudAiplatformV1beta1ComputeTokensResponse>;
33700
+ computeTokens(
33701
+ request: {
33702
+ /** V1 error format. */
33703
+ '$.xgafv'?: string;
33704
+ /** OAuth access token. */
33705
+ access_token?: string;
33706
+ /** Data format for response. */
33707
+ alt?: string;
33708
+ /** JSONP */
33709
+ callback?: string;
33710
+ /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
33711
+ endpoint: string;
33712
+ /** Selector specifying which fields to include in a partial response. */
33713
+ fields?: string;
33714
+ /** 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. */
33715
+ key?: string;
33716
+ /** OAuth 2.0 token for the current user. */
33717
+ oauth_token?: string;
33718
+ /** Returns response with indentations and line breaks. */
33719
+ prettyPrint?: boolean;
33720
+ /** 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. */
33721
+ quotaUser?: string;
33722
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
33723
+ upload_protocol?: string;
33724
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
33725
+ uploadType?: string;
33726
+ },
33727
+ body: GoogleCloudAiplatformV1beta1ComputeTokensRequest
33728
+ ): Request<GoogleCloudAiplatformV1beta1ComputeTokensResponse>;
33729
+ /** Perform a token counting. */
33730
+ countTokens(request: {
33731
+ /** V1 error format. */
33732
+ '$.xgafv'?: string;
33733
+ /** OAuth access token. */
33734
+ access_token?: string;
33735
+ /** Data format for response. */
33736
+ alt?: string;
33737
+ /** JSONP */
33738
+ callback?: string;
33739
+ /** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
33740
+ endpoint: string;
33741
+ /** Selector specifying which fields to include in a partial response. */
33742
+ fields?: string;
33743
+ /** 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. */
33744
+ key?: string;
33745
+ /** OAuth 2.0 token for the current user. */
33746
+ oauth_token?: string;
33747
+ /** Returns response with indentations and line breaks. */
33748
+ prettyPrint?: boolean;
33749
+ /** 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. */
33750
+ quotaUser?: string;
33751
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
33752
+ upload_protocol?: string;
33753
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
33754
+ uploadType?: string;
33755
+ /** Request body */
33756
+ resource: GoogleCloudAiplatformV1beta1CountTokensRequest;
33757
+ }): Request<GoogleCloudAiplatformV1beta1CountTokensResponse>;
33758
+ countTokens(
33759
+ request: {
33760
+ /** V1 error format. */
33761
+ '$.xgafv'?: string;
33762
+ /** OAuth access token. */
33763
+ access_token?: string;
33764
+ /** Data format for response. */
33765
+ alt?: string;
33766
+ /** JSONP */
33767
+ callback?: string;
33768
+ /** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
33769
+ endpoint: string;
33770
+ /** Selector specifying which fields to include in a partial response. */
33771
+ fields?: string;
33772
+ /** 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. */
33773
+ key?: string;
33774
+ /** OAuth 2.0 token for the current user. */
33775
+ oauth_token?: string;
33776
+ /** Returns response with indentations and line breaks. */
33777
+ prettyPrint?: boolean;
33778
+ /** 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. */
33779
+ quotaUser?: string;
33780
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
33781
+ upload_protocol?: string;
33782
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
33783
+ uploadType?: string;
33784
+ },
33785
+ body: GoogleCloudAiplatformV1beta1CountTokensRequest
33786
+ ): Request<GoogleCloudAiplatformV1beta1CountTokensResponse>;
33787
+ /** Generate content with multimodal inputs. */
33788
+ generateContent(request: {
33789
+ /** V1 error format. */
33790
+ '$.xgafv'?: string;
33791
+ /** OAuth access token. */
33792
+ access_token?: string;
33793
+ /** Data format for response. */
33794
+ alt?: string;
33795
+ /** JSONP */
33796
+ callback?: string;
33797
+ /** Selector specifying which fields to include in a partial response. */
33798
+ fields?: string;
33799
+ /** 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. */
33800
+ key?: string;
33801
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
33802
+ model: string;
33803
+ /** OAuth 2.0 token for the current user. */
33804
+ oauth_token?: string;
33805
+ /** Returns response with indentations and line breaks. */
33806
+ prettyPrint?: boolean;
33807
+ /** 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. */
33808
+ quotaUser?: string;
33809
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
33810
+ upload_protocol?: string;
33811
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
33812
+ uploadType?: string;
33813
+ /** Request body */
33814
+ resource: GoogleCloudAiplatformV1beta1GenerateContentRequest;
33815
+ }): Request<GoogleCloudAiplatformV1beta1GenerateContentResponse>;
33816
+ generateContent(
33817
+ request: {
33818
+ /** V1 error format. */
33819
+ '$.xgafv'?: string;
33820
+ /** OAuth access token. */
33821
+ access_token?: string;
33822
+ /** Data format for response. */
33823
+ alt?: string;
33824
+ /** JSONP */
33825
+ callback?: string;
33826
+ /** Selector specifying which fields to include in a partial response. */
33827
+ fields?: string;
33828
+ /** 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. */
33829
+ key?: string;
33830
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
33831
+ model: string;
33832
+ /** OAuth 2.0 token for the current user. */
33833
+ oauth_token?: string;
33834
+ /** Returns response with indentations and line breaks. */
33835
+ prettyPrint?: boolean;
33836
+ /** 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. */
33837
+ quotaUser?: string;
33838
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
33839
+ upload_protocol?: string;
33840
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
33841
+ uploadType?: string;
33842
+ },
33843
+ body: GoogleCloudAiplatformV1beta1GenerateContentRequest
33844
+ ): Request<GoogleCloudAiplatformV1beta1GenerateContentResponse>;
32963
33845
  /** Gets a Model Garden publisher model. */
32964
33846
  get(request?: {
32965
33847
  /** V1 error format. */
@@ -33034,11 +33916,73 @@ declare namespace gapi.client {
33034
33916
  /** Optional. PublisherModel view specifying which fields to read. */
33035
33917
  view?: string;
33036
33918
  }): Request<GoogleCloudAiplatformV1beta1ListPublisherModelsResponse>;
33919
+ /** Generate content with multimodal inputs with streaming support. */
33920
+ streamGenerateContent(request: {
33921
+ /** V1 error format. */
33922
+ '$.xgafv'?: string;
33923
+ /** OAuth access token. */
33924
+ access_token?: string;
33925
+ /** Data format for response. */
33926
+ alt?: string;
33927
+ /** JSONP */
33928
+ callback?: string;
33929
+ /** Selector specifying which fields to include in a partial response. */
33930
+ fields?: string;
33931
+ /** 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. */
33932
+ key?: string;
33933
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
33934
+ model: string;
33935
+ /** OAuth 2.0 token for the current user. */
33936
+ oauth_token?: string;
33937
+ /** Returns response with indentations and line breaks. */
33938
+ prettyPrint?: boolean;
33939
+ /** 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. */
33940
+ quotaUser?: string;
33941
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
33942
+ upload_protocol?: string;
33943
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
33944
+ uploadType?: string;
33945
+ /** Request body */
33946
+ resource: GoogleCloudAiplatformV1beta1GenerateContentRequest;
33947
+ }): Request<GoogleCloudAiplatformV1beta1GenerateContentResponse>;
33948
+ streamGenerateContent(
33949
+ request: {
33950
+ /** V1 error format. */
33951
+ '$.xgafv'?: string;
33952
+ /** OAuth access token. */
33953
+ access_token?: string;
33954
+ /** Data format for response. */
33955
+ alt?: string;
33956
+ /** JSONP */
33957
+ callback?: string;
33958
+ /** Selector specifying which fields to include in a partial response. */
33959
+ fields?: string;
33960
+ /** 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. */
33961
+ key?: string;
33962
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
33963
+ model: string;
33964
+ /** OAuth 2.0 token for the current user. */
33965
+ oauth_token?: string;
33966
+ /** Returns response with indentations and line breaks. */
33967
+ prettyPrint?: boolean;
33968
+ /** 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. */
33969
+ quotaUser?: string;
33970
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
33971
+ upload_protocol?: string;
33972
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
33973
+ uploadType?: string;
33974
+ },
33975
+ body: GoogleCloudAiplatformV1beta1GenerateContentRequest
33976
+ ): Request<GoogleCloudAiplatformV1beta1GenerateContentResponse>;
33037
33977
  }
33038
33978
  interface PublishersResource {
33039
33979
  models: ModelsResource;
33040
33980
  }
33041
33981
 
33982
+ const datasets: DatasetsResource;
33983
+
33984
+ const endpoints: EndpointsResource;
33985
+
33042
33986
  const media: MediaResource;
33043
33987
 
33044
33988
  const projects: ProjectsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.aiplatform-v1beta1",
3
- "version": "0.0.20240809",
3
+ "version": "0.0.20240816",
4
4
  "description": "TypeScript typings for Vertex AI API v1beta1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -72,6 +72,51 @@ gapi.auth.authorize(
72
72
  After that you can use Vertex AI API resources: <!-- TODO: make this work for multiple namespaces -->
73
73
 
74
74
  ```typescript
75
+ /*
76
+ Creates a Dataset.
77
+ */
78
+ await gapi.client.aiplatform.datasets.create({});
79
+
80
+ /*
81
+ Deletes a Dataset.
82
+ */
83
+ await gapi.client.aiplatform.datasets.delete({name: 'name'});
84
+
85
+ /*
86
+ Gets a Dataset.
87
+ */
88
+ await gapi.client.aiplatform.datasets.get({name: 'name'});
89
+
90
+ /*
91
+ Lists Datasets in a Location.
92
+ */
93
+ await gapi.client.aiplatform.datasets.list({});
94
+
95
+ /*
96
+ Updates a Dataset.
97
+ */
98
+ await gapi.client.aiplatform.datasets.patch({name: 'name'});
99
+
100
+ /*
101
+ Return a list of tokens based on the input text.
102
+ */
103
+ await gapi.client.aiplatform.endpoints.computeTokens({endpoint: 'endpoint'});
104
+
105
+ /*
106
+ Perform a token counting.
107
+ */
108
+ await gapi.client.aiplatform.endpoints.countTokens({endpoint: 'endpoint'});
109
+
110
+ /*
111
+ Generate content with multimodal inputs.
112
+ */
113
+ await gapi.client.aiplatform.endpoints.generateContent({model: 'model'});
114
+
115
+ /*
116
+ Generate content with multimodal inputs with streaming support.
117
+ */
118
+ await gapi.client.aiplatform.endpoints.streamGenerateContent({model: 'model'});
119
+
75
120
  /*
76
121
  Upload a file into a RagCorpus.
77
122
  */