@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20240510 → 0.0.20240512

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +120 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://discoveryengine.googleapis.com/$discovery/rest?version=v1alpha
12
- // Revision: 20240510
12
+ // Revision: 20240512
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -484,6 +484,8 @@ declare namespace gapi.client {
484
484
  name?: string;
485
485
  /** Page span of the chunk. */
486
486
  pageSpan?: GoogleCloudDiscoveryengineV1alphaChunkPageSpan;
487
+ /** Represents the relevance score based on similarity. Higher score represents the chunk relevance. The score is in range [0.0, 1.0]. Only populated on SearchService.SearchResponse */
488
+ relevanceScore?: number;
487
489
  }
488
490
  interface GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata {
489
491
  /** The next chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks. This field is only populated on SearchService.Search API. */
@@ -2724,6 +2726,7 @@ declare namespace gapi.client {
2724
2726
  /** Operation last update time. If the operation is done, this is also the finish time. */
2725
2727
  updateTime?: string;
2726
2728
  }
2729
+ interface GoogleLongrunningCancelOperationRequest {}
2727
2730
  interface GoogleLongrunningListOperationsResponse {
2728
2731
  /** The standard List next-page token. */
2729
2732
  nextPageToken?: string;
@@ -3248,6 +3251,64 @@ declare namespace gapi.client {
3248
3251
  chunks: ChunksResource;
3249
3252
  }
3250
3253
  interface OperationsResource {
3254
+ /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
3255
+ cancel(request: {
3256
+ /** V1 error format. */
3257
+ '$.xgafv'?: string;
3258
+ /** OAuth access token. */
3259
+ access_token?: string;
3260
+ /** Data format for response. */
3261
+ alt?: string;
3262
+ /** JSONP */
3263
+ callback?: string;
3264
+ /** Selector specifying which fields to include in a partial response. */
3265
+ fields?: string;
3266
+ /** 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. */
3267
+ key?: string;
3268
+ /** The name of the operation resource to be cancelled. */
3269
+ name: string;
3270
+ /** OAuth 2.0 token for the current user. */
3271
+ oauth_token?: string;
3272
+ /** Returns response with indentations and line breaks. */
3273
+ prettyPrint?: boolean;
3274
+ /** 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. */
3275
+ quotaUser?: string;
3276
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3277
+ upload_protocol?: string;
3278
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3279
+ uploadType?: string;
3280
+ /** Request body */
3281
+ resource: GoogleLongrunningCancelOperationRequest;
3282
+ }): Request<{}>;
3283
+ cancel(
3284
+ request: {
3285
+ /** V1 error format. */
3286
+ '$.xgafv'?: string;
3287
+ /** OAuth access token. */
3288
+ access_token?: string;
3289
+ /** Data format for response. */
3290
+ alt?: string;
3291
+ /** JSONP */
3292
+ callback?: string;
3293
+ /** Selector specifying which fields to include in a partial response. */
3294
+ fields?: string;
3295
+ /** 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. */
3296
+ key?: string;
3297
+ /** The name of the operation resource to be cancelled. */
3298
+ name: string;
3299
+ /** OAuth 2.0 token for the current user. */
3300
+ oauth_token?: string;
3301
+ /** Returns response with indentations and line breaks. */
3302
+ prettyPrint?: boolean;
3303
+ /** 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. */
3304
+ quotaUser?: string;
3305
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3306
+ upload_protocol?: string;
3307
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3308
+ uploadType?: string;
3309
+ },
3310
+ body: GoogleLongrunningCancelOperationRequest
3311
+ ): Request<{}>;
3251
3312
  /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
3252
3313
  get(request?: {
3253
3314
  /** V1 error format. */
@@ -7717,6 +7778,64 @@ declare namespace gapi.client {
7717
7778
  chunks: ChunksResource;
7718
7779
  }
7719
7780
  interface OperationsResource {
7781
+ /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
7782
+ cancel(request: {
7783
+ /** V1 error format. */
7784
+ '$.xgafv'?: string;
7785
+ /** OAuth access token. */
7786
+ access_token?: string;
7787
+ /** Data format for response. */
7788
+ alt?: string;
7789
+ /** JSONP */
7790
+ callback?: string;
7791
+ /** Selector specifying which fields to include in a partial response. */
7792
+ fields?: string;
7793
+ /** 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. */
7794
+ key?: string;
7795
+ /** The name of the operation resource to be cancelled. */
7796
+ name: string;
7797
+ /** OAuth 2.0 token for the current user. */
7798
+ oauth_token?: string;
7799
+ /** Returns response with indentations and line breaks. */
7800
+ prettyPrint?: boolean;
7801
+ /** 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. */
7802
+ quotaUser?: string;
7803
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
7804
+ upload_protocol?: string;
7805
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
7806
+ uploadType?: string;
7807
+ /** Request body */
7808
+ resource: GoogleLongrunningCancelOperationRequest;
7809
+ }): Request<{}>;
7810
+ cancel(
7811
+ request: {
7812
+ /** V1 error format. */
7813
+ '$.xgafv'?: string;
7814
+ /** OAuth access token. */
7815
+ access_token?: string;
7816
+ /** Data format for response. */
7817
+ alt?: string;
7818
+ /** JSONP */
7819
+ callback?: string;
7820
+ /** Selector specifying which fields to include in a partial response. */
7821
+ fields?: string;
7822
+ /** 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. */
7823
+ key?: string;
7824
+ /** The name of the operation resource to be cancelled. */
7825
+ name: string;
7826
+ /** OAuth 2.0 token for the current user. */
7827
+ oauth_token?: string;
7828
+ /** Returns response with indentations and line breaks. */
7829
+ prettyPrint?: boolean;
7830
+ /** 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. */
7831
+ quotaUser?: string;
7832
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
7833
+ upload_protocol?: string;
7834
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
7835
+ uploadType?: string;
7836
+ },
7837
+ body: GoogleLongrunningCancelOperationRequest
7838
+ ): Request<{}>;
7720
7839
  /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
7721
7840
  get(request?: {
7722
7841
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20240510",
3
+ "version": "0.0.20240512",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",