@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20230821 → 0.0.20230902
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.
- package/index.d.ts +18 -6
- package/package.json +1 -1
- package/tests.ts +78 -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:
|
|
12
|
+
// Revision: 20230902
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -190,7 +190,7 @@ declare namespace gapi.client {
|
|
|
190
190
|
* 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
|
|
191
191
|
* model.
|
|
192
192
|
*/
|
|
193
|
-
|
|
193
|
+
completableFieldPaths?:
|
|
194
194
|
string[];
|
|
195
195
|
/** The suggestion for the query. */
|
|
196
196
|
suggestion?:
|
|
@@ -268,6 +268,9 @@ declare namespace gapi.client {
|
|
|
268
268
|
*/
|
|
269
269
|
servingConfig?:
|
|
270
270
|
string;
|
|
271
|
+
/** A specification for configuring the summary returned in the response. */
|
|
272
|
+
summarySpec?:
|
|
273
|
+
GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec;
|
|
271
274
|
/**
|
|
272
275
|
* 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. *
|
|
273
276
|
* 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
|
|
@@ -1326,6 +1329,9 @@ declare namespace gapi.client {
|
|
|
1326
1329
|
{ [P in string]: GoogleCloudDiscoveryengineV1alphaDoubleList };
|
|
1327
1330
|
}
|
|
1328
1331
|
interface GoogleCloudDiscoveryengineV1alphaSearchResponseSummary {
|
|
1332
|
+
/** A collection of Safety Attribute categories and their associated confidence scores. */
|
|
1333
|
+
safetyAttributes?:
|
|
1334
|
+
GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes;
|
|
1329
1335
|
/** Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set. */
|
|
1330
1336
|
summarySkippedReasons?:
|
|
1331
1337
|
string[];
|
|
@@ -1333,6 +1339,14 @@ declare namespace gapi.client {
|
|
|
1333
1339
|
summaryText?:
|
|
1334
1340
|
string;
|
|
1335
1341
|
}
|
|
1342
|
+
interface GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes {
|
|
1343
|
+
/** The display names of Safety Attribute categories associated with the generated content. Order matches the Scores. */
|
|
1344
|
+
categories?:
|
|
1345
|
+
string[];
|
|
1346
|
+
/** The confidence scores of the each category, higher value means higher confidence. Order matches the Categories. */
|
|
1347
|
+
scores?:
|
|
1348
|
+
number[];
|
|
1349
|
+
}
|
|
1336
1350
|
interface GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo {
|
|
1337
1351
|
/** Site verification state indicating the ownership and validity. */
|
|
1338
1352
|
siteVerificationState?:
|
|
@@ -1380,12 +1394,10 @@ declare namespace gapi.client {
|
|
|
1380
1394
|
interface GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason {
|
|
1381
1395
|
/** Failed due to insufficient quota. */
|
|
1382
1396
|
quotaFailure?:
|
|
1383
|
-
|
|
1397
|
+
any;
|
|
1384
1398
|
}
|
|
1399
|
+
// tslint:disable-next-line:no-empty-interface
|
|
1385
1400
|
interface GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure {
|
|
1386
|
-
/** This number is an estimation on how much total quota this project needs to successfully complete indexing. */
|
|
1387
|
-
totalRequiredQuota?:
|
|
1388
|
-
string;
|
|
1389
1401
|
}
|
|
1390
1402
|
interface GoogleCloudDiscoveryengineV1alphaTextInput {
|
|
1391
1403
|
/** Conversation context of the input. */
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230902
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -80,6 +80,14 @@ gapi.load('client', async () => {
|
|
|
80
80
|
],
|
|
81
81
|
reply: "Test string",
|
|
82
82
|
summary: {
|
|
83
|
+
safetyAttributes: {
|
|
84
|
+
categories: [
|
|
85
|
+
"Test string"
|
|
86
|
+
],
|
|
87
|
+
scores: [
|
|
88
|
+
42
|
|
89
|
+
],
|
|
90
|
+
},
|
|
83
91
|
summarySkippedReasons: [
|
|
84
92
|
"Test string"
|
|
85
93
|
],
|
|
@@ -114,6 +122,13 @@ gapi.load('client', async () => {
|
|
|
114
122
|
},
|
|
115
123
|
safeSearch: true,
|
|
116
124
|
servingConfig: "Test string",
|
|
125
|
+
summarySpec: {
|
|
126
|
+
ignoreAdversarialQuery: true,
|
|
127
|
+
ignoreNonSummarySeekingQuery: true,
|
|
128
|
+
includeCitations: true,
|
|
129
|
+
languageCode: "Test string",
|
|
130
|
+
summaryResultCount: 42,
|
|
131
|
+
},
|
|
117
132
|
userLabels: {
|
|
118
133
|
A: "Test string"
|
|
119
134
|
},
|
|
@@ -393,6 +408,14 @@ gapi.load('client', async () => {
|
|
|
393
408
|
],
|
|
394
409
|
reply: "Test string",
|
|
395
410
|
summary: {
|
|
411
|
+
safetyAttributes: {
|
|
412
|
+
categories: [
|
|
413
|
+
"Test string"
|
|
414
|
+
],
|
|
415
|
+
scores: [
|
|
416
|
+
42
|
|
417
|
+
],
|
|
418
|
+
},
|
|
396
419
|
summarySkippedReasons: [
|
|
397
420
|
"Test string"
|
|
398
421
|
],
|
|
@@ -427,6 +450,13 @@ gapi.load('client', async () => {
|
|
|
427
450
|
},
|
|
428
451
|
safeSearch: true,
|
|
429
452
|
servingConfig: "Test string",
|
|
453
|
+
summarySpec: {
|
|
454
|
+
ignoreAdversarialQuery: true,
|
|
455
|
+
ignoreNonSummarySeekingQuery: true,
|
|
456
|
+
includeCitations: true,
|
|
457
|
+
languageCode: "Test string",
|
|
458
|
+
summaryResultCount: 42,
|
|
459
|
+
},
|
|
430
460
|
userLabels: {
|
|
431
461
|
A: "Test string"
|
|
432
462
|
},
|
|
@@ -450,6 +480,14 @@ gapi.load('client', async () => {
|
|
|
450
480
|
],
|
|
451
481
|
reply: "Test string",
|
|
452
482
|
summary: {
|
|
483
|
+
safetyAttributes: {
|
|
484
|
+
categories: [
|
|
485
|
+
"Test string"
|
|
486
|
+
],
|
|
487
|
+
scores: [
|
|
488
|
+
42
|
|
489
|
+
],
|
|
490
|
+
},
|
|
453
491
|
summarySkippedReasons: [
|
|
454
492
|
"Test string"
|
|
455
493
|
],
|
|
@@ -508,6 +546,14 @@ gapi.load('client', async () => {
|
|
|
508
546
|
],
|
|
509
547
|
reply: "Test string",
|
|
510
548
|
summary: {
|
|
549
|
+
safetyAttributes: {
|
|
550
|
+
categories: [
|
|
551
|
+
"Test string"
|
|
552
|
+
],
|
|
553
|
+
scores: [
|
|
554
|
+
42
|
|
555
|
+
],
|
|
556
|
+
},
|
|
511
557
|
summarySkippedReasons: [
|
|
512
558
|
"Test string"
|
|
513
559
|
],
|
|
@@ -1226,6 +1272,14 @@ gapi.load('client', async () => {
|
|
|
1226
1272
|
],
|
|
1227
1273
|
reply: "Test string",
|
|
1228
1274
|
summary: {
|
|
1275
|
+
safetyAttributes: {
|
|
1276
|
+
categories: [
|
|
1277
|
+
"Test string"
|
|
1278
|
+
],
|
|
1279
|
+
scores: [
|
|
1280
|
+
42
|
|
1281
|
+
],
|
|
1282
|
+
},
|
|
1229
1283
|
summarySkippedReasons: [
|
|
1230
1284
|
"Test string"
|
|
1231
1285
|
],
|
|
@@ -1260,6 +1314,13 @@ gapi.load('client', async () => {
|
|
|
1260
1314
|
},
|
|
1261
1315
|
safeSearch: true,
|
|
1262
1316
|
servingConfig: "Test string",
|
|
1317
|
+
summarySpec: {
|
|
1318
|
+
ignoreAdversarialQuery: true,
|
|
1319
|
+
ignoreNonSummarySeekingQuery: true,
|
|
1320
|
+
includeCitations: true,
|
|
1321
|
+
languageCode: "Test string",
|
|
1322
|
+
summaryResultCount: 42,
|
|
1323
|
+
},
|
|
1263
1324
|
userLabels: {
|
|
1264
1325
|
A: "Test string"
|
|
1265
1326
|
},
|
|
@@ -1283,6 +1344,14 @@ gapi.load('client', async () => {
|
|
|
1283
1344
|
],
|
|
1284
1345
|
reply: "Test string",
|
|
1285
1346
|
summary: {
|
|
1347
|
+
safetyAttributes: {
|
|
1348
|
+
categories: [
|
|
1349
|
+
"Test string"
|
|
1350
|
+
],
|
|
1351
|
+
scores: [
|
|
1352
|
+
42
|
|
1353
|
+
],
|
|
1354
|
+
},
|
|
1286
1355
|
summarySkippedReasons: [
|
|
1287
1356
|
"Test string"
|
|
1288
1357
|
],
|
|
@@ -1341,6 +1410,14 @@ gapi.load('client', async () => {
|
|
|
1341
1410
|
],
|
|
1342
1411
|
reply: "Test string",
|
|
1343
1412
|
summary: {
|
|
1413
|
+
safetyAttributes: {
|
|
1414
|
+
categories: [
|
|
1415
|
+
"Test string"
|
|
1416
|
+
],
|
|
1417
|
+
scores: [
|
|
1418
|
+
42
|
|
1419
|
+
],
|
|
1420
|
+
},
|
|
1344
1421
|
summarySkippedReasons: [
|
|
1345
1422
|
"Test string"
|
|
1346
1423
|
],
|