@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20231101 → 0.0.20231107

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 +367 -74
  2. package/package.json +1 -1
  3. package/tests.ts +33 -55
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: 20231101
12
+ // Revision: 20231107
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -758,6 +758,22 @@ declare namespace gapi.client {
758
758
  successfulForecastPointCount?:
759
759
  string;
760
760
  }
761
+ interface GoogleCloudAiplatformV1ComputeTokensRequest {
762
+ /**
763
+ * Required. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat
764
+ * models, or Codey models.
765
+ */
766
+ instances?:
767
+ any[];
768
+ }
769
+ interface GoogleCloudAiplatformV1ComputeTokensResponse {
770
+ /**
771
+ * Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request
772
+ * with multiple instances.
773
+ */
774
+ tokensInfo?:
775
+ GoogleCloudAiplatformV1TokensInfo[];
776
+ }
761
777
  interface GoogleCloudAiplatformV1ContainerRegistryDestination {
762
778
  /**
763
779
  * Required. Container Registry URI of a container image. Only Google Container Registry and Artifact Registry are supported now. Accepted forms: * Google Container Registry path. For
@@ -855,6 +871,19 @@ declare namespace gapi.client {
855
871
  modelVersionId?:
856
872
  string;
857
873
  }
874
+ interface GoogleCloudAiplatformV1CountTokensRequest {
875
+ /** Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model. */
876
+ instances?:
877
+ any[];
878
+ }
879
+ interface GoogleCloudAiplatformV1CountTokensResponse {
880
+ /** The total number of billable characters counted across all instances from the request. */
881
+ totalBillableCharacters?:
882
+ number;
883
+ /** The total number of tokens counted across all instances from the request. */
884
+ totalTokens?:
885
+ number;
886
+ }
858
887
  interface GoogleCloudAiplatformV1CreateDatasetOperationMetadata {
859
888
  /** The operation generic information. */
860
889
  genericMetadata?:
@@ -1436,11 +1465,11 @@ declare namespace gapi.client {
1436
1465
  createTime?:
1437
1466
  string;
1438
1467
  /**
1439
- * Optional. A description of resources that are dedicated to the DeployedIndex, and that need a higher degree of manual configuration. If min_replica_count is not set, the default
1440
- * value is 2 (we don't provide SLA when min_replica_count=1). If max_replica_count is not set, the default value is min_replica_count. The max allowed replica count is 1000. Available
1441
- * machine types for SMALL shard: e2-standard-2 and all machine types available for MEDIUM and LARGE shard. Available machine types for MEDIUM shard: e2-standard-16 and all machine
1442
- * types available for LARGE shard. Available machine types for LARGE shard: e2-highmem-16, n2d-standard-32. n1-standard-16 and n1-standard-32 are still available, but we recommend
1443
- * e2-standard-16 and e2-highmem-16 for cost efficiency.
1468
+ * Optional. A description of resources that are dedicated to the DeployedIndex, and that need a higher degree of manual configuration. The field min_replica_count must be set to a
1469
+ * value strictly greater than 0, or else validation will fail. We don't provide SLA when min_replica_count=1. If max_replica_count is not set, the default value is min_replica_count.
1470
+ * The max allowed replica count is 1000. Available machine types for SMALL shard: e2-standard-2 and all machine types available for MEDIUM and LARGE shard. Available machine types for
1471
+ * MEDIUM shard: e2-standard-16 and all machine types available for LARGE shard. Available machine types for LARGE shard: e2-highmem-16, n2d-standard-32. n1-standard-16 and
1472
+ * n1-standard-32 are still available, but we recommend e2-standard-16 and e2-highmem-16 for cost efficiency.
1444
1473
  */
1445
1474
  dedicatedResources?:
1446
1475
  GoogleCloudAiplatformV1DedicatedResources;
@@ -2519,12 +2548,6 @@ declare namespace gapi.client {
2519
2548
  /** Output only. Timestamp when this FeatureOnlineStore was created. */
2520
2549
  createTime?:
2521
2550
  string;
2522
- /** Optional. The dedicated serving endpoint for this FeatureOnlineStore, which is different from common Vertex service endpoint. */
2523
- dedicatedServingEndpoint?:
2524
- GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint;
2525
- /** Optional. The settings for embedding management in FeatureOnlineStore. */
2526
- embeddingManagement?:
2527
- GoogleCloudAiplatformV1FeatureOnlineStoreEmbeddingManagement;
2528
2551
  /** Optional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. */
2529
2552
  etag?:
2530
2553
  string;
@@ -2565,25 +2588,6 @@ declare namespace gapi.client {
2565
2588
  minNodeCount?:
2566
2589
  number;
2567
2590
  }
2568
- interface GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint {
2569
- /**
2570
- * Optional. Private service connect config. If PrivateServiceConnectConfig.enable_private_service_connect set to true, customers will use private service connection to send request.
2571
- * Otherwise, the connection will set to public endpoint.
2572
- */
2573
- privateServiceConnectConfig?:
2574
- GoogleCloudAiplatformV1PrivateServiceConnectConfig;
2575
- /** Output only. This field will be populated with the domain name to use for this FeatureOnlineStore */
2576
- publicEndpointDomainName?:
2577
- string;
2578
- /** Output only. The name of the service attachment resource. Populated if private service connect is enabled and after FeatureViewSync is created. */
2579
- serviceAttachment?:
2580
- string;
2581
- }
2582
- interface GoogleCloudAiplatformV1FeatureOnlineStoreEmbeddingManagement {
2583
- /** Optional. Immutable. Whether to enable embedding management in this FeatureOnlineStore. It's immutable after creation to ensure the FeatureOnlineStore availability. */
2584
- enabled?:
2585
- boolean;
2586
- }
2587
2591
  interface GoogleCloudAiplatformV1FeatureSelector {
2588
2592
  /** Required. Matches Features based on ID. */
2589
2593
  idMatcher?:
@@ -2844,12 +2848,6 @@ declare namespace gapi.client {
2844
2848
  /** Output only. Timestamp when this FeatureView was last updated. */
2845
2849
  updateTime?:
2846
2850
  string;
2847
- /**
2848
- * Optional. Configuration for vector search. It contains the required configurations to create an index from source data, so that approximate nearest neighbor (a.k.a ANN) algorithms
2849
- * search can be performed during online serving.
2850
- */
2851
- vectorSearchConfig?:
2852
- GoogleCloudAiplatformV1FeatureViewVectorSearchConfig;
2853
2851
  }
2854
2852
  interface GoogleCloudAiplatformV1FeatureViewBigQuerySource {
2855
2853
  /** Required. Columns to construct entity_id / row keys. Start by supporting 1 only. */
@@ -2901,43 +2899,6 @@ declare namespace gapi.client {
2901
2899
  cron?:
2902
2900
  string;
2903
2901
  }
2904
- interface GoogleCloudAiplatformV1FeatureViewVectorSearchConfig {
2905
- /**
2906
- * Optional. Configuration options for using brute force search, which simply implements the standard linear search in the database for each query. It is primarily meant for
2907
- * benchmarking and to generate the ground truth for approximate search.
2908
- */
2909
- bruteForceConfig?:
2910
- any;
2911
- /**
2912
- * Optional. Column of crowding. This column contains crowding attribute which is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than some
2913
- * value k' of the k neighbors returned have the same value of crowding_attribute.
2914
- */
2915
- crowdingColumn?:
2916
- string;
2917
- /** Optional. The distance measure used in nearest neighbor search. */
2918
- distanceMeasureType?:
2919
- string;
2920
- /** Optional. Column of embedding. This column contains the source data to create index for vector search. embedding_column must be set when using vector search. */
2921
- embeddingColumn?:
2922
- string;
2923
- /** Optional. The number of dimensions of the input embedding. */
2924
- embeddingDimension?:
2925
- number;
2926
- /** Optional. Columns of features that're used to filter vector search results. */
2927
- filterColumns?:
2928
- string[];
2929
- /** Optional. Configuration options for the tree-AH algorithm (Shallow tree + Asymmetric Hashing). Please refer to this paper for more details: https://arxiv.org/abs/1908.10396 */
2930
- treeAhConfig?:
2931
- GoogleCloudAiplatformV1FeatureViewVectorSearchConfigTreeAHConfig;
2932
- }
2933
- // tslint:disable-next-line:no-empty-interface
2934
- interface GoogleCloudAiplatformV1FeatureViewVectorSearchConfigBruteForceConfig {
2935
- }
2936
- interface GoogleCloudAiplatformV1FeatureViewVectorSearchConfigTreeAHConfig {
2937
- /** Optional. Number of embeddings on each leaf node. The default value is 1000 if not set. */
2938
- leafNodeEmbeddingCount?:
2939
- string;
2940
- }
2941
2902
  interface GoogleCloudAiplatformV1FetchFeatureValuesRequest {
2942
2903
  /** Specify response data format. If not set, KeyValue format will be used. */
2943
2904
  format?:
@@ -9116,6 +9077,14 @@ declare namespace gapi.client {
9116
9077
  validationFraction?:
9117
9078
  number;
9118
9079
  }
9080
+ interface GoogleCloudAiplatformV1TokensInfo {
9081
+ /** A list of token ids from the input. */
9082
+ tokenIds?:
9083
+ string[];
9084
+ /** A list of tokens from the input. */
9085
+ tokens?:
9086
+ string[];
9087
+ }
9119
9088
  interface GoogleCloudAiplatformV1TrainingConfig {
9120
9089
  /** The timeout hours for the CMLE training job, expressed in milli hours i.e. 1,000 value in this field means 1 hour. */
9121
9090
  timeoutTrainingMilliHours?:
@@ -13767,6 +13736,168 @@ declare namespace gapi.client {
13767
13736
  }): Request<GoogleLongrunningOperation>;
13768
13737
  }
13769
13738
  interface EndpointsResource {
13739
+ /** Return a list of tokens based on the input text. */
13740
+ computeTokens(request: {
13741
+ /** V1 error format. */
13742
+ "$.xgafv"?:
13743
+ string;
13744
+ /** OAuth access token. */
13745
+ access_token?:
13746
+ string;
13747
+ /** Data format for response. */
13748
+ alt?:
13749
+ string;
13750
+ /** JSONP */
13751
+ callback?:
13752
+ string;
13753
+ /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
13754
+ endpoint:
13755
+ string;
13756
+ /** Selector specifying which fields to include in a partial response. */
13757
+ fields?:
13758
+ string;
13759
+ /** 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. */
13760
+ key?:
13761
+ string;
13762
+ /** OAuth 2.0 token for the current user. */
13763
+ oauth_token?:
13764
+ string;
13765
+ /** Returns response with indentations and line breaks. */
13766
+ prettyPrint?:
13767
+ boolean;
13768
+ /** 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. */
13769
+ quotaUser?:
13770
+ string;
13771
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13772
+ upload_protocol?:
13773
+ string;
13774
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13775
+ uploadType?:
13776
+ string;
13777
+ /** Request body */
13778
+ resource:
13779
+ GoogleCloudAiplatformV1ComputeTokensRequest;
13780
+ }): Request<GoogleCloudAiplatformV1ComputeTokensResponse>;
13781
+ computeTokens(request: {
13782
+ /** V1 error format. */
13783
+ "$.xgafv"?:
13784
+ string;
13785
+ /** OAuth access token. */
13786
+ access_token?:
13787
+ string;
13788
+ /** Data format for response. */
13789
+ alt?:
13790
+ string;
13791
+ /** JSONP */
13792
+ callback?:
13793
+ string;
13794
+ /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
13795
+ endpoint:
13796
+ string;
13797
+ /** Selector specifying which fields to include in a partial response. */
13798
+ fields?:
13799
+ string;
13800
+ /** 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. */
13801
+ key?:
13802
+ string;
13803
+ /** OAuth 2.0 token for the current user. */
13804
+ oauth_token?:
13805
+ string;
13806
+ /** Returns response with indentations and line breaks. */
13807
+ prettyPrint?:
13808
+ boolean;
13809
+ /** 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. */
13810
+ quotaUser?:
13811
+ string;
13812
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13813
+ upload_protocol?:
13814
+ string;
13815
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13816
+ uploadType?:
13817
+ string;
13818
+ },
13819
+ body: GoogleCloudAiplatformV1ComputeTokensRequest): Request<GoogleCloudAiplatformV1ComputeTokensResponse>;
13820
+ /** Perform a token counting. */
13821
+ countTokens(request: {
13822
+ /** V1 error format. */
13823
+ "$.xgafv"?:
13824
+ string;
13825
+ /** OAuth access token. */
13826
+ access_token?:
13827
+ string;
13828
+ /** Data format for response. */
13829
+ alt?:
13830
+ string;
13831
+ /** JSONP */
13832
+ callback?:
13833
+ string;
13834
+ /** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
13835
+ endpoint:
13836
+ string;
13837
+ /** Selector specifying which fields to include in a partial response. */
13838
+ fields?:
13839
+ string;
13840
+ /** 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. */
13841
+ key?:
13842
+ string;
13843
+ /** OAuth 2.0 token for the current user. */
13844
+ oauth_token?:
13845
+ string;
13846
+ /** Returns response with indentations and line breaks. */
13847
+ prettyPrint?:
13848
+ boolean;
13849
+ /** 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. */
13850
+ quotaUser?:
13851
+ string;
13852
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13853
+ upload_protocol?:
13854
+ string;
13855
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13856
+ uploadType?:
13857
+ string;
13858
+ /** Request body */
13859
+ resource:
13860
+ GoogleCloudAiplatformV1CountTokensRequest;
13861
+ }): Request<GoogleCloudAiplatformV1CountTokensResponse>;
13862
+ countTokens(request: {
13863
+ /** V1 error format. */
13864
+ "$.xgafv"?:
13865
+ string;
13866
+ /** OAuth access token. */
13867
+ access_token?:
13868
+ string;
13869
+ /** Data format for response. */
13870
+ alt?:
13871
+ string;
13872
+ /** JSONP */
13873
+ callback?:
13874
+ string;
13875
+ /** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
13876
+ endpoint:
13877
+ string;
13878
+ /** Selector specifying which fields to include in a partial response. */
13879
+ fields?:
13880
+ string;
13881
+ /** 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. */
13882
+ key?:
13883
+ string;
13884
+ /** OAuth 2.0 token for the current user. */
13885
+ oauth_token?:
13886
+ string;
13887
+ /** Returns response with indentations and line breaks. */
13888
+ prettyPrint?:
13889
+ boolean;
13890
+ /** 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. */
13891
+ quotaUser?:
13892
+ string;
13893
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13894
+ upload_protocol?:
13895
+ string;
13896
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13897
+ uploadType?:
13898
+ string;
13899
+ },
13900
+ body: GoogleCloudAiplatformV1CountTokensRequest): Request<GoogleCloudAiplatformV1CountTokensResponse>;
13770
13901
  /** Creates an Endpoint. */
13771
13902
  create(request: {
13772
13903
  /** V1 error format. */
@@ -28838,6 +28969,168 @@ declare namespace gapi.client {
28838
28969
  OperationsResource;
28839
28970
  }
28840
28971
  interface ModelsResource {
28972
+ /** Return a list of tokens based on the input text. */
28973
+ computeTokens(request: {
28974
+ /** V1 error format. */
28975
+ "$.xgafv"?:
28976
+ string;
28977
+ /** OAuth access token. */
28978
+ access_token?:
28979
+ string;
28980
+ /** Data format for response. */
28981
+ alt?:
28982
+ string;
28983
+ /** JSONP */
28984
+ callback?:
28985
+ string;
28986
+ /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
28987
+ endpoint:
28988
+ string;
28989
+ /** Selector specifying which fields to include in a partial response. */
28990
+ fields?:
28991
+ string;
28992
+ /** 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. */
28993
+ key?:
28994
+ string;
28995
+ /** OAuth 2.0 token for the current user. */
28996
+ oauth_token?:
28997
+ string;
28998
+ /** Returns response with indentations and line breaks. */
28999
+ prettyPrint?:
29000
+ boolean;
29001
+ /** 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. */
29002
+ quotaUser?:
29003
+ string;
29004
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
29005
+ upload_protocol?:
29006
+ string;
29007
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
29008
+ uploadType?:
29009
+ string;
29010
+ /** Request body */
29011
+ resource:
29012
+ GoogleCloudAiplatformV1ComputeTokensRequest;
29013
+ }): Request<GoogleCloudAiplatformV1ComputeTokensResponse>;
29014
+ computeTokens(request: {
29015
+ /** V1 error format. */
29016
+ "$.xgafv"?:
29017
+ string;
29018
+ /** OAuth access token. */
29019
+ access_token?:
29020
+ string;
29021
+ /** Data format for response. */
29022
+ alt?:
29023
+ string;
29024
+ /** JSONP */
29025
+ callback?:
29026
+ string;
29027
+ /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
29028
+ endpoint:
29029
+ string;
29030
+ /** Selector specifying which fields to include in a partial response. */
29031
+ fields?:
29032
+ string;
29033
+ /** 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. */
29034
+ key?:
29035
+ string;
29036
+ /** OAuth 2.0 token for the current user. */
29037
+ oauth_token?:
29038
+ string;
29039
+ /** Returns response with indentations and line breaks. */
29040
+ prettyPrint?:
29041
+ boolean;
29042
+ /** 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. */
29043
+ quotaUser?:
29044
+ string;
29045
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
29046
+ upload_protocol?:
29047
+ string;
29048
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
29049
+ uploadType?:
29050
+ string;
29051
+ },
29052
+ body: GoogleCloudAiplatformV1ComputeTokensRequest): Request<GoogleCloudAiplatformV1ComputeTokensResponse>;
29053
+ /** Perform a token counting. */
29054
+ countTokens(request: {
29055
+ /** V1 error format. */
29056
+ "$.xgafv"?:
29057
+ string;
29058
+ /** OAuth access token. */
29059
+ access_token?:
29060
+ string;
29061
+ /** Data format for response. */
29062
+ alt?:
29063
+ string;
29064
+ /** JSONP */
29065
+ callback?:
29066
+ string;
29067
+ /** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
29068
+ endpoint:
29069
+ string;
29070
+ /** Selector specifying which fields to include in a partial response. */
29071
+ fields?:
29072
+ string;
29073
+ /** 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. */
29074
+ key?:
29075
+ string;
29076
+ /** OAuth 2.0 token for the current user. */
29077
+ oauth_token?:
29078
+ string;
29079
+ /** Returns response with indentations and line breaks. */
29080
+ prettyPrint?:
29081
+ boolean;
29082
+ /** 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. */
29083
+ quotaUser?:
29084
+ string;
29085
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
29086
+ upload_protocol?:
29087
+ string;
29088
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
29089
+ uploadType?:
29090
+ string;
29091
+ /** Request body */
29092
+ resource:
29093
+ GoogleCloudAiplatformV1CountTokensRequest;
29094
+ }): Request<GoogleCloudAiplatformV1CountTokensResponse>;
29095
+ countTokens(request: {
29096
+ /** V1 error format. */
29097
+ "$.xgafv"?:
29098
+ string;
29099
+ /** OAuth access token. */
29100
+ access_token?:
29101
+ string;
29102
+ /** Data format for response. */
29103
+ alt?:
29104
+ string;
29105
+ /** JSONP */
29106
+ callback?:
29107
+ string;
29108
+ /** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
29109
+ endpoint:
29110
+ string;
29111
+ /** Selector specifying which fields to include in a partial response. */
29112
+ fields?:
29113
+ string;
29114
+ /** 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. */
29115
+ key?:
29116
+ string;
29117
+ /** OAuth 2.0 token for the current user. */
29118
+ oauth_token?:
29119
+ string;
29120
+ /** Returns response with indentations and line breaks. */
29121
+ prettyPrint?:
29122
+ boolean;
29123
+ /** 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. */
29124
+ quotaUser?:
29125
+ string;
29126
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
29127
+ upload_protocol?:
29128
+ string;
29129
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
29130
+ uploadType?:
29131
+ string;
29132
+ },
29133
+ body: GoogleCloudAiplatformV1CountTokensRequest): Request<GoogleCloudAiplatformV1CountTokensResponse>;
28841
29134
  /** Perform an online prediction. */
28842
29135
  predict(request: {
28843
29136
  /** 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.20231101",
3
+ "version": "0.0.20231107",
4
4
  "description": "TypeScript typings for Vertex AI API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20231101
6
+ // Revision: 20231107
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -1020,6 +1020,22 @@ gapi.load('client', async () => {
1020
1020
  name: "Test string",
1021
1021
  timeout: "Test string",
1022
1022
  });
1023
+ /** Return a list of tokens based on the input text. */
1024
+ await gapi.client.aiplatform.projects.locations.endpoints.computeTokens({
1025
+ endpoint: "Test string",
1026
+ }, {
1027
+ instances: [
1028
+ 42
1029
+ ],
1030
+ });
1031
+ /** Perform a token counting. */
1032
+ await gapi.client.aiplatform.projects.locations.endpoints.countTokens({
1033
+ endpoint: "Test string",
1034
+ }, {
1035
+ instances: [
1036
+ 42
1037
+ ],
1038
+ });
1023
1039
  /** Creates an Endpoint. */
1024
1040
  await gapi.client.aiplatform.projects.locations.endpoints.create({
1025
1041
  endpointId: "Test string",
@@ -2159,19 +2175,6 @@ gapi.load('client', async () => {
2159
2175
  },
2160
2176
  },
2161
2177
  createTime: "Test string",
2162
- dedicatedServingEndpoint: {
2163
- privateServiceConnectConfig: {
2164
- enablePrivateServiceConnect: true,
2165
- projectAllowlist: [
2166
- "Test string"
2167
- ],
2168
- },
2169
- publicEndpointDomainName: "Test string",
2170
- serviceAttachment: "Test string",
2171
- },
2172
- embeddingManagement: {
2173
- enabled: true,
2174
- },
2175
2178
  etag: "Test string",
2176
2179
  labels: {
2177
2180
  A: "Test string"
@@ -2210,19 +2213,6 @@ gapi.load('client', async () => {
2210
2213
  },
2211
2214
  },
2212
2215
  createTime: "Test string",
2213
- dedicatedServingEndpoint: {
2214
- privateServiceConnectConfig: {
2215
- enablePrivateServiceConnect: true,
2216
- projectAllowlist: [
2217
- "Test string"
2218
- ],
2219
- },
2220
- publicEndpointDomainName: "Test string",
2221
- serviceAttachment: "Test string",
2222
- },
2223
- embeddingManagement: {
2224
- enabled: true,
2225
- },
2226
2216
  etag: "Test string",
2227
2217
  labels: {
2228
2218
  A: "Test string"
@@ -2263,20 +2253,6 @@ gapi.load('client', async () => {
2263
2253
  cron: "Test string",
2264
2254
  },
2265
2255
  updateTime: "Test string",
2266
- vectorSearchConfig: {
2267
- bruteForceConfig: {
2268
- },
2269
- crowdingColumn: "Test string",
2270
- distanceMeasureType: "Test string",
2271
- embeddingColumn: "Test string",
2272
- embeddingDimension: 42,
2273
- filterColumns: [
2274
- "Test string"
2275
- ],
2276
- treeAhConfig: {
2277
- leafNodeEmbeddingCount: "Test string",
2278
- },
2279
- },
2280
2256
  });
2281
2257
  /** Deletes a single FeatureView. */
2282
2258
  await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.delete({
@@ -2332,20 +2308,6 @@ gapi.load('client', async () => {
2332
2308
  cron: "Test string",
2333
2309
  },
2334
2310
  updateTime: "Test string",
2335
- vectorSearchConfig: {
2336
- bruteForceConfig: {
2337
- },
2338
- crowdingColumn: "Test string",
2339
- distanceMeasureType: "Test string",
2340
- embeddingColumn: "Test string",
2341
- embeddingDimension: 42,
2342
- filterColumns: [
2343
- "Test string"
2344
- ],
2345
- treeAhConfig: {
2346
- leafNodeEmbeddingCount: "Test string",
2347
- },
2348
- },
2349
2311
  });
2350
2312
  /** Triggers on-demand sync for the FeatureView. */
2351
2313
  await gapi.client.aiplatform.projects.locations.featureOnlineStores.featureViews.sync({
@@ -6237,6 +6199,22 @@ gapi.load('client', async () => {
6237
6199
  name: "Test string",
6238
6200
  timeout: "Test string",
6239
6201
  });
6202
+ /** Return a list of tokens based on the input text. */
6203
+ await gapi.client.aiplatform.projects.locations.publishers.models.computeTokens({
6204
+ endpoint: "Test string",
6205
+ }, {
6206
+ instances: [
6207
+ 42
6208
+ ],
6209
+ });
6210
+ /** Perform a token counting. */
6211
+ await gapi.client.aiplatform.projects.locations.publishers.models.countTokens({
6212
+ endpoint: "Test string",
6213
+ }, {
6214
+ instances: [
6215
+ 42
6216
+ ],
6217
+ });
6240
6218
  /** Perform an online prediction. */
6241
6219
  await gapi.client.aiplatform.projects.locations.publishers.models.predict({
6242
6220
  endpoint: "Test string",