@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20230513 → 0.0.20230518

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 +96 -1
  2. package/package.json +1 -1
  3. package/tests.ts +12 -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: 20230513
12
+ // Revision: 20230518
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1614,6 +1614,99 @@ declare namespace gapi.client {
1614
1614
  string;
1615
1615
  }): Request<GoogleLongrunningListOperationsResponse>;
1616
1616
  }
1617
+ interface OperationsResource {
1618
+ /** 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. */
1619
+ get(request?: {
1620
+ /** V1 error format. */
1621
+ "$.xgafv"?:
1622
+ string;
1623
+ /** OAuth access token. */
1624
+ access_token?:
1625
+ string;
1626
+ /** Data format for response. */
1627
+ alt?:
1628
+ string;
1629
+ /** JSONP */
1630
+ callback?:
1631
+ string;
1632
+ /** Selector specifying which fields to include in a partial response. */
1633
+ fields?:
1634
+ string;
1635
+ /** 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. */
1636
+ key?:
1637
+ string;
1638
+ /** The name of the operation resource. */
1639
+ name:
1640
+ string;
1641
+ /** OAuth 2.0 token for the current user. */
1642
+ oauth_token?:
1643
+ string;
1644
+ /** Returns response with indentations and line breaks. */
1645
+ prettyPrint?:
1646
+ boolean;
1647
+ /** 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. */
1648
+ quotaUser?:
1649
+ string;
1650
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1651
+ upload_protocol?:
1652
+ string;
1653
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1654
+ uploadType?:
1655
+ string;
1656
+ }): Request<GoogleLongrunningOperation>;
1657
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1658
+ list(request?: {
1659
+ /** V1 error format. */
1660
+ "$.xgafv"?:
1661
+ string;
1662
+ /** OAuth access token. */
1663
+ access_token?:
1664
+ string;
1665
+ /** Data format for response. */
1666
+ alt?:
1667
+ string;
1668
+ /** JSONP */
1669
+ callback?:
1670
+ string;
1671
+ /** Selector specifying which fields to include in a partial response. */
1672
+ fields?:
1673
+ string;
1674
+ /** The standard list filter. */
1675
+ filter?:
1676
+ string;
1677
+ /** 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. */
1678
+ key?:
1679
+ string;
1680
+ /** The name of the operation's parent resource. */
1681
+ name:
1682
+ string;
1683
+ /** OAuth 2.0 token for the current user. */
1684
+ oauth_token?:
1685
+ string;
1686
+ /** The standard list page size. */
1687
+ pageSize?:
1688
+ number;
1689
+ /** The standard list page token. */
1690
+ pageToken?:
1691
+ string;
1692
+ /** Returns response with indentations and line breaks. */
1693
+ prettyPrint?:
1694
+ boolean;
1695
+ /** 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. */
1696
+ quotaUser?:
1697
+ string;
1698
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1699
+ upload_protocol?:
1700
+ string;
1701
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1702
+ uploadType?:
1703
+ string;
1704
+ }): Request<GoogleLongrunningListOperationsResponse>;
1705
+ }
1706
+ interface SchemasResource {
1707
+ operations:
1708
+ OperationsResource;
1709
+ }
1617
1710
  interface ServingConfigsResource {
1618
1711
  /** Makes a recommendation, which requires a contextual user event. */
1619
1712
  recommend(request: {
@@ -1931,6 +2024,8 @@ declare namespace gapi.client {
1931
2024
  ModelsResource;
1932
2025
  operations:
1933
2026
  OperationsResource;
2027
+ schemas:
2028
+ SchemasResource;
1934
2029
  servingConfigs:
1935
2030
  ServingConfigsResource;
1936
2031
  userEvents:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1beta",
3
- "version": "0.0.20230513",
3
+ "version": "0.0.20230518",
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: 20230513
6
+ // Revision: 20230518
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -159,6 +159,17 @@ gapi.load('client', async () => {
159
159
  pageSize: 42,
160
160
  pageToken: "Test string",
161
161
  });
162
+ /** 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. */
163
+ await gapi.client.discoveryengine.projects.locations.collections.dataStores.schemas.operations.get({
164
+ name: "Test string",
165
+ });
166
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
167
+ await gapi.client.discoveryengine.projects.locations.collections.dataStores.schemas.operations.list({
168
+ filter: "Test string",
169
+ name: "Test string",
170
+ pageSize: 42,
171
+ pageToken: "Test string",
172
+ });
162
173
  /** Makes a recommendation, which requires a contextual user event. */
163
174
  await gapi.client.discoveryengine.projects.locations.collections.dataStores.servingConfigs.recommend({
164
175
  servingConfig: "Test string",