@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20230821 → 0.0.20230905

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 +18 -6
  2. package/package.json +1 -1
  3. package/tests.ts +63 -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: 20230821
12
+ // Revision: 20230905
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -348,12 +348,10 @@ declare namespace gapi.client {
348
348
  interface GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason {
349
349
  /** Failed due to insufficient quota. */
350
350
  quotaFailure?:
351
- GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure;
351
+ any;
352
352
  }
353
+ // tslint:disable-next-line:no-empty-interface
353
354
  interface GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure {
354
- /** This number is an estimation on how much total quota this project needs to successfully complete indexing. */
355
- totalRequiredQuota?:
356
- string;
357
355
  }
358
356
  interface GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata {
359
357
  /** Operation create time. */
@@ -406,7 +404,7 @@ declare namespace gapi.client {
406
404
  * The unique document field paths that serve as the source of this suggestion if it was generated from completable fields. This field is only populated for the document-completable
407
405
  * model.
408
406
  */
409
- completableFieldPath?:
407
+ completableFieldPaths?:
410
408
  string[];
411
409
  /** The suggestion for the query. */
412
410
  suggestion?:
@@ -476,6 +474,9 @@ declare namespace gapi.client {
476
474
  */
477
475
  servingConfig?:
478
476
  string;
477
+ /** A specification for configuring the summary returned in the response. */
478
+ summarySpec?:
479
+ GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec;
479
480
  /**
480
481
  * The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. *
481
482
  * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and
@@ -1418,6 +1419,9 @@ declare namespace gapi.client {
1418
1419
  { [P in string]: GoogleCloudDiscoveryengineV1betaDoubleList };
1419
1420
  }
1420
1421
  interface GoogleCloudDiscoveryengineV1betaSearchResponseSummary {
1422
+ /** A collection of Safety Attribute categories and their associated confidence scores. */
1423
+ safetyAttributes?:
1424
+ GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes;
1421
1425
  /** Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set. */
1422
1426
  summarySkippedReasons?:
1423
1427
  string[];
@@ -1425,6 +1429,14 @@ declare namespace gapi.client {
1425
1429
  summaryText?:
1426
1430
  string;
1427
1431
  }
1432
+ interface GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes {
1433
+ /** The display names of Safety Attribute categories associated with the generated content. Order matches the Scores. */
1434
+ categories?:
1435
+ string[];
1436
+ /** The confidence scores of the each category, higher value means higher confidence. Order matches the Categories. */
1437
+ scores?:
1438
+ number[];
1439
+ }
1428
1440
  interface GoogleCloudDiscoveryengineV1betaTextInput {
1429
1441
  /** Conversation context of the input. */
1430
1442
  context?:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1beta",
3
- "version": "0.0.20230821",
3
+ "version": "0.0.20230905",
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: 20230821
6
+ // Revision: 20230905
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -191,6 +191,14 @@ gapi.load('client', async () => {
191
191
  ],
192
192
  reply: "Test string",
193
193
  summary: {
194
+ safetyAttributes: {
195
+ categories: [
196
+ "Test string"
197
+ ],
198
+ scores: [
199
+ 42
200
+ ],
201
+ },
194
202
  summarySkippedReasons: [
195
203
  "Test string"
196
204
  ],
@@ -224,6 +232,13 @@ gapi.load('client', async () => {
224
232
  },
225
233
  safeSearch: true,
226
234
  servingConfig: "Test string",
235
+ summarySpec: {
236
+ ignoreAdversarialQuery: true,
237
+ ignoreNonSummarySeekingQuery: true,
238
+ includeCitations: true,
239
+ languageCode: "Test string",
240
+ summaryResultCount: 42,
241
+ },
227
242
  userLabels: {
228
243
  A: "Test string"
229
244
  },
@@ -247,6 +262,14 @@ gapi.load('client', async () => {
247
262
  ],
248
263
  reply: "Test string",
249
264
  summary: {
265
+ safetyAttributes: {
266
+ categories: [
267
+ "Test string"
268
+ ],
269
+ scores: [
270
+ 42
271
+ ],
272
+ },
250
273
  summarySkippedReasons: [
251
274
  "Test string"
252
275
  ],
@@ -305,6 +328,14 @@ gapi.load('client', async () => {
305
328
  ],
306
329
  reply: "Test string",
307
330
  summary: {
331
+ safetyAttributes: {
332
+ categories: [
333
+ "Test string"
334
+ ],
335
+ scores: [
336
+ 42
337
+ ],
338
+ },
308
339
  summarySkippedReasons: [
309
340
  "Test string"
310
341
  ],
@@ -986,6 +1017,14 @@ gapi.load('client', async () => {
986
1017
  ],
987
1018
  reply: "Test string",
988
1019
  summary: {
1020
+ safetyAttributes: {
1021
+ categories: [
1022
+ "Test string"
1023
+ ],
1024
+ scores: [
1025
+ 42
1026
+ ],
1027
+ },
989
1028
  summarySkippedReasons: [
990
1029
  "Test string"
991
1030
  ],
@@ -1019,6 +1058,13 @@ gapi.load('client', async () => {
1019
1058
  },
1020
1059
  safeSearch: true,
1021
1060
  servingConfig: "Test string",
1061
+ summarySpec: {
1062
+ ignoreAdversarialQuery: true,
1063
+ ignoreNonSummarySeekingQuery: true,
1064
+ includeCitations: true,
1065
+ languageCode: "Test string",
1066
+ summaryResultCount: 42,
1067
+ },
1022
1068
  userLabels: {
1023
1069
  A: "Test string"
1024
1070
  },
@@ -1042,6 +1088,14 @@ gapi.load('client', async () => {
1042
1088
  ],
1043
1089
  reply: "Test string",
1044
1090
  summary: {
1091
+ safetyAttributes: {
1092
+ categories: [
1093
+ "Test string"
1094
+ ],
1095
+ scores: [
1096
+ 42
1097
+ ],
1098
+ },
1045
1099
  summarySkippedReasons: [
1046
1100
  "Test string"
1047
1101
  ],
@@ -1100,6 +1154,14 @@ gapi.load('client', async () => {
1100
1154
  ],
1101
1155
  reply: "Test string",
1102
1156
  summary: {
1157
+ safetyAttributes: {
1158
+ categories: [
1159
+ "Test string"
1160
+ ],
1161
+ scores: [
1162
+ 42
1163
+ ],
1164
+ },
1103
1165
  summarySkippedReasons: [
1104
1166
  "Test string"
1105
1167
  ],