@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20230711 → 0.0.20230713

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 +191 -1
  2. package/package.json +1 -1
  3. package/tests.ts +23 -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=v1beta
12
- // Revision: 20230711
12
+ // Revision: 20230713
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1962,6 +1962,194 @@ declare namespace gapi.client {
1962
1962
  },
1963
1963
  body: GoogleCloudDiscoveryengineV1betaRecommendRequest): Request<GoogleCloudDiscoveryengineV1betaRecommendResponse>;
1964
1964
  }
1965
+ interface OperationsResource {
1966
+ /** 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. */
1967
+ get(request?: {
1968
+ /** V1 error format. */
1969
+ "$.xgafv"?:
1970
+ string;
1971
+ /** OAuth access token. */
1972
+ access_token?:
1973
+ string;
1974
+ /** Data format for response. */
1975
+ alt?:
1976
+ string;
1977
+ /** JSONP */
1978
+ callback?:
1979
+ string;
1980
+ /** Selector specifying which fields to include in a partial response. */
1981
+ fields?:
1982
+ string;
1983
+ /** 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. */
1984
+ key?:
1985
+ string;
1986
+ /** The name of the operation resource. */
1987
+ name:
1988
+ string;
1989
+ /** OAuth 2.0 token for the current user. */
1990
+ oauth_token?:
1991
+ string;
1992
+ /** Returns response with indentations and line breaks. */
1993
+ prettyPrint?:
1994
+ boolean;
1995
+ /** 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. */
1996
+ quotaUser?:
1997
+ string;
1998
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1999
+ upload_protocol?:
2000
+ string;
2001
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2002
+ uploadType?:
2003
+ string;
2004
+ }): Request<GoogleLongrunningOperation>;
2005
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2006
+ list(request?: {
2007
+ /** V1 error format. */
2008
+ "$.xgafv"?:
2009
+ string;
2010
+ /** OAuth access token. */
2011
+ access_token?:
2012
+ string;
2013
+ /** Data format for response. */
2014
+ alt?:
2015
+ string;
2016
+ /** JSONP */
2017
+ callback?:
2018
+ string;
2019
+ /** Selector specifying which fields to include in a partial response. */
2020
+ fields?:
2021
+ string;
2022
+ /** The standard list filter. */
2023
+ filter?:
2024
+ string;
2025
+ /** 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. */
2026
+ key?:
2027
+ string;
2028
+ /** The name of the operation's parent resource. */
2029
+ name:
2030
+ string;
2031
+ /** OAuth 2.0 token for the current user. */
2032
+ oauth_token?:
2033
+ string;
2034
+ /** The standard list page size. */
2035
+ pageSize?:
2036
+ number;
2037
+ /** The standard list page token. */
2038
+ pageToken?:
2039
+ string;
2040
+ /** Returns response with indentations and line breaks. */
2041
+ prettyPrint?:
2042
+ boolean;
2043
+ /** 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. */
2044
+ quotaUser?:
2045
+ string;
2046
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2047
+ upload_protocol?:
2048
+ string;
2049
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2050
+ uploadType?:
2051
+ string;
2052
+ }): Request<GoogleLongrunningListOperationsResponse>;
2053
+ }
2054
+ interface OperationsResource {
2055
+ /** 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. */
2056
+ get(request?: {
2057
+ /** V1 error format. */
2058
+ "$.xgafv"?:
2059
+ string;
2060
+ /** OAuth access token. */
2061
+ access_token?:
2062
+ string;
2063
+ /** Data format for response. */
2064
+ alt?:
2065
+ string;
2066
+ /** JSONP */
2067
+ callback?:
2068
+ string;
2069
+ /** Selector specifying which fields to include in a partial response. */
2070
+ fields?:
2071
+ string;
2072
+ /** 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. */
2073
+ key?:
2074
+ string;
2075
+ /** The name of the operation resource. */
2076
+ name:
2077
+ string;
2078
+ /** OAuth 2.0 token for the current user. */
2079
+ oauth_token?:
2080
+ string;
2081
+ /** Returns response with indentations and line breaks. */
2082
+ prettyPrint?:
2083
+ boolean;
2084
+ /** 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. */
2085
+ quotaUser?:
2086
+ string;
2087
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2088
+ upload_protocol?:
2089
+ string;
2090
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2091
+ uploadType?:
2092
+ string;
2093
+ }): Request<GoogleLongrunningOperation>;
2094
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2095
+ list(request?: {
2096
+ /** V1 error format. */
2097
+ "$.xgafv"?:
2098
+ string;
2099
+ /** OAuth access token. */
2100
+ access_token?:
2101
+ string;
2102
+ /** Data format for response. */
2103
+ alt?:
2104
+ string;
2105
+ /** JSONP */
2106
+ callback?:
2107
+ string;
2108
+ /** Selector specifying which fields to include in a partial response. */
2109
+ fields?:
2110
+ string;
2111
+ /** The standard list filter. */
2112
+ filter?:
2113
+ string;
2114
+ /** 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. */
2115
+ key?:
2116
+ string;
2117
+ /** The name of the operation's parent resource. */
2118
+ name:
2119
+ string;
2120
+ /** OAuth 2.0 token for the current user. */
2121
+ oauth_token?:
2122
+ string;
2123
+ /** The standard list page size. */
2124
+ pageSize?:
2125
+ number;
2126
+ /** The standard list page token. */
2127
+ pageToken?:
2128
+ string;
2129
+ /** Returns response with indentations and line breaks. */
2130
+ prettyPrint?:
2131
+ boolean;
2132
+ /** 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. */
2133
+ quotaUser?:
2134
+ string;
2135
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2136
+ upload_protocol?:
2137
+ string;
2138
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2139
+ uploadType?:
2140
+ string;
2141
+ }): Request<GoogleLongrunningListOperationsResponse>;
2142
+ }
2143
+ interface TargetSitesResource {
2144
+ operations:
2145
+ OperationsResource;
2146
+ }
2147
+ interface SiteSearchEngineResource {
2148
+ operations:
2149
+ OperationsResource;
2150
+ targetSites:
2151
+ TargetSitesResource;
2152
+ }
1965
2153
  interface UserEventsResource {
1966
2154
  /**
1967
2155
  * Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery
@@ -2194,6 +2382,8 @@ declare namespace gapi.client {
2194
2382
  SchemasResource;
2195
2383
  servingConfigs:
2196
2384
  ServingConfigsResource;
2385
+ siteSearchEngine:
2386
+ SiteSearchEngineResource;
2197
2387
  userEvents:
2198
2388
  UserEventsResource;
2199
2389
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1beta",
3
- "version": "0.0.20230711",
3
+ "version": "0.0.20230713",
4
4
  "description": "TypeScript typings for Discovery Engine API v1beta",
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: 20230711
6
+ // Revision: 20230713
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -259,6 +259,28 @@ gapi.load('client', async () => {
259
259
  },
260
260
  validateOnly: true,
261
261
  });
262
+ /** 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. */
263
+ await gapi.client.discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.get({
264
+ name: "Test string",
265
+ });
266
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
267
+ await gapi.client.discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.list({
268
+ filter: "Test string",
269
+ name: "Test string",
270
+ pageSize: 42,
271
+ pageToken: "Test string",
272
+ });
273
+ /** 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. */
274
+ await gapi.client.discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.get({
275
+ name: "Test string",
276
+ });
277
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
278
+ await gapi.client.discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.list({
279
+ filter: "Test string",
280
+ name: "Test string",
281
+ pageSize: 42,
282
+ pageToken: "Test string",
283
+ });
262
284
  /**
263
285
  * Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery Engine
264
286
  * API JavaScript pixel and Google Tag Manager. Users should not call this method directly.