@maxim_mazurok/gapi.client.cloudsearch-v1 0.0.20230621 → 0.0.20230705
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 +4 -113
- package/package.json +1 -1
- package/readme.md +1 -1
- package/tests.ts +3 -3
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://cloudsearch.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230705
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -22,17 +22,6 @@ declare namespace gapi.client {
|
|
|
22
22
|
function load(name: "cloudsearch", version: "v1", callback: () => any): void;
|
|
23
23
|
|
|
24
24
|
namespace cloudsearch {
|
|
25
|
-
interface AclInfo {
|
|
26
|
-
/** Number of groups which have at least read access to the document. */
|
|
27
|
-
groupsCount?:
|
|
28
|
-
number;
|
|
29
|
-
/** The scope to which the content was shared. */
|
|
30
|
-
scope?:
|
|
31
|
-
string;
|
|
32
|
-
/** Number of users which have at least read access to the document. */
|
|
33
|
-
usersCount?:
|
|
34
|
-
number;
|
|
35
|
-
}
|
|
36
25
|
interface Action {
|
|
37
26
|
/** [Required] Title of the action. */
|
|
38
27
|
title?:
|
|
@@ -1340,61 +1329,6 @@ declare namespace gapi.client {
|
|
|
1340
1329
|
stats?:
|
|
1341
1330
|
SearchApplicationUserStats[];
|
|
1342
1331
|
}
|
|
1343
|
-
interface GoogleDocsMetadata {
|
|
1344
|
-
/** Contains number of users and groups which can access the document. */
|
|
1345
|
-
aclInfo?:
|
|
1346
|
-
AclInfo;
|
|
1347
|
-
/** The conceptual type (presentation, document, etc.) of this document. */
|
|
1348
|
-
documentType?:
|
|
1349
|
-
string;
|
|
1350
|
-
/** The file extension of the document. NOTE: As of October 2018 this field is not backfilled for old documents. */
|
|
1351
|
-
fileExtension?:
|
|
1352
|
-
string;
|
|
1353
|
-
/** The last time this document was modified, in seconds since epoch. Only counts content modifications. */
|
|
1354
|
-
lastContentModifiedTimestamp?:
|
|
1355
|
-
string;
|
|
1356
|
-
/** Contains number of subscribers for the document. */
|
|
1357
|
-
numSubscribers?:
|
|
1358
|
-
number;
|
|
1359
|
-
/** Size of untruncated viewers list. */
|
|
1360
|
-
numViewers?:
|
|
1361
|
-
number;
|
|
1362
|
-
/**
|
|
1363
|
-
* Additional per-result information, akin to Gmail's SingleThreadResponse. Note: GWS no longer seems to use this field, but there's still one reference to it for Scribe, so we can't
|
|
1364
|
-
* remove it.
|
|
1365
|
-
*/
|
|
1366
|
-
resultInfo?:
|
|
1367
|
-
GoogleDocsResultInfo;
|
|
1368
|
-
/** Contains additional information about the document depending on its type. */
|
|
1369
|
-
typeInfo?:
|
|
1370
|
-
TypeInfo;
|
|
1371
|
-
}
|
|
1372
|
-
interface GoogleDocsResultInfo {
|
|
1373
|
-
/** The SHA1 hash of the object in Drive, if any. */
|
|
1374
|
-
attachmentSha1?:
|
|
1375
|
-
string;
|
|
1376
|
-
/**
|
|
1377
|
-
* The storage identifier for the object in Cosmo. This field is intended to used by Stratus/Moonshine integration only. It should not be exposed externally (please refer to
|
|
1378
|
-
* encrypted_id for that purpose).
|
|
1379
|
-
*/
|
|
1380
|
-
cosmoId?:
|
|
1381
|
-
Id;
|
|
1382
|
-
/**
|
|
1383
|
-
* For Cosmo objects, the Cosmo namespace the object was in. This allows downstream clients to identify whether a document was created in Writely or Kix, Presently or Punch, or whether
|
|
1384
|
-
* it was uploaded from GDrive. See storage_cosmo.Id.NAME_SPACE for a list of all Cosmo name spaces.
|
|
1385
|
-
*/
|
|
1386
|
-
cosmoNameSpace?:
|
|
1387
|
-
number;
|
|
1388
|
-
/** The encrypted (user-visible) id of this object. Knowing the id is sufficient to create a canonical URL for this document. */
|
|
1389
|
-
encryptedId?:
|
|
1390
|
-
string;
|
|
1391
|
-
/** The mimetype of the document. */
|
|
1392
|
-
mimeType?:
|
|
1393
|
-
string;
|
|
1394
|
-
/** The visibility indicator in the UI will be based upon this. */
|
|
1395
|
-
shareScope?:
|
|
1396
|
-
ShareScope;
|
|
1397
|
-
}
|
|
1398
1332
|
interface GSuitePrincipal {
|
|
1399
1333
|
/** This principal represents all users of the Google Workspace domain of the customer. */
|
|
1400
1334
|
gsuiteDomain?:
|
|
@@ -1429,29 +1363,6 @@ declare namespace gapi.client {
|
|
|
1429
1363
|
values?:
|
|
1430
1364
|
string[];
|
|
1431
1365
|
}
|
|
1432
|
-
interface Id {
|
|
1433
|
-
/**
|
|
1434
|
-
* The User account in which the DirEntry was originally created. If name_space==GAIA, then it's the gaia_id of the user this id is referring to. This field should really be called the
|
|
1435
|
-
* "bucket ID", not the creator ID. In some circumstances, such as copying a Google Docs file, a user can create an item in a different user's bucket, so it should not be relied upon
|
|
1436
|
-
* for anything other than bucket location. To look up the requesting user who initially created item, use the `creator_id` DirEntry field instead.
|
|
1437
|
-
*/
|
|
1438
|
-
creatorUserId?:
|
|
1439
|
-
string;
|
|
1440
|
-
/**
|
|
1441
|
-
* The local identifier for the DirEntry (local to the creator's account). local_id + app_name is guaranteed to be unique within the creator account, but not across all User accounts.
|
|
1442
|
-
* The string is case sensitive. Ignore if name_space==GAIA. NB For name_space==COSMO, all local_id's should be defined in
|
|
1443
|
-
* google3/java/com/google/storage/cosmo/server/api/SpecialObjectIds.java as they have a special predefined meaning. See cosmo.client.CosmoIdFactory.createObjectId(long,String) for
|
|
1444
|
-
* IMPORTANT recommendations when generating IDs.
|
|
1445
|
-
*/
|
|
1446
|
-
localId?:
|
|
1447
|
-
string;
|
|
1448
|
-
/**
|
|
1449
|
-
* The name space in which this id is unique (typically the application that created it). Values should be drawn from the above enum, but for experimentation, use values greater than
|
|
1450
|
-
* 1000.
|
|
1451
|
-
*/
|
|
1452
|
-
nameSpace?:
|
|
1453
|
-
number;
|
|
1454
|
-
}
|
|
1455
1366
|
interface IndexItemOptions {
|
|
1456
1367
|
/** Specifies if the index request should allow Google Workspace principals that do not exist or are deleted. */
|
|
1457
1368
|
allowUnknownGsuitePrincipals?:
|
|
@@ -2432,8 +2343,7 @@ declare namespace gapi.client {
|
|
|
2432
2343
|
/**
|
|
2433
2344
|
* The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For translations. Set this field
|
|
2434
2345
|
* using the language set in browser or for the page. In the event that the user's language preference is known, set this field to the known user language. When specified, the
|
|
2435
|
-
* documents in search results are biased towards the specified language.
|
|
2436
|
-
* boosting.
|
|
2346
|
+
* documents in search results are biased towards the specified language. The Suggest API uses this field as a hint to make better third-party autocomplete predictions.
|
|
2437
2347
|
*/
|
|
2438
2348
|
languageCode?:
|
|
2439
2349
|
string;
|
|
@@ -2718,14 +2628,6 @@ declare namespace gapi.client {
|
|
|
2718
2628
|
url?:
|
|
2719
2629
|
string;
|
|
2720
2630
|
}
|
|
2721
|
-
interface ShareScope {
|
|
2722
|
-
/** If scope is DOMAIN, this field contains the dasher domain, for example "google.com". */
|
|
2723
|
-
domain?:
|
|
2724
|
-
string;
|
|
2725
|
-
/** The scope to which the content was shared. */
|
|
2726
|
-
scope?:
|
|
2727
|
-
string;
|
|
2728
|
-
}
|
|
2729
2631
|
interface Snippet {
|
|
2730
2632
|
/** The matched ranges in the snippet. */
|
|
2731
2633
|
matchRanges?:
|
|
@@ -2950,11 +2852,6 @@ declare namespace gapi.client {
|
|
|
2950
2852
|
values?:
|
|
2951
2853
|
string[];
|
|
2952
2854
|
}
|
|
2953
|
-
interface TypeInfo {
|
|
2954
|
-
/** Contains additional video information only if document_type is VIDEO. */
|
|
2955
|
-
videoInfo?:
|
|
2956
|
-
VideoInfo;
|
|
2957
|
-
}
|
|
2958
2855
|
interface UnmappedIdentity {
|
|
2959
2856
|
/** The resource name for an external user. */
|
|
2960
2857
|
externalIdentity?:
|
|
@@ -3035,11 +2932,6 @@ declare namespace gapi.client {
|
|
|
3035
2932
|
value?:
|
|
3036
2933
|
Value;
|
|
3037
2934
|
}
|
|
3038
|
-
interface VideoInfo {
|
|
3039
|
-
/** Duration of the video in milliseconds. This field can be absent for recently uploaded video or inaccurate sometimes. */
|
|
3040
|
-
duration?:
|
|
3041
|
-
number;
|
|
3042
|
-
}
|
|
3043
2935
|
interface VPCSettings {
|
|
3044
2936
|
/**
|
|
3045
2937
|
* The resource name of the GCP Project to be used for VPC SC policy check. VPC security settings on this project will be honored for Cloud Search APIs after project_name has been
|
|
@@ -4469,8 +4361,7 @@ declare namespace gapi.client {
|
|
|
4469
4361
|
/**
|
|
4470
4362
|
* The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For translations. Set this
|
|
4471
4363
|
* field using the language set in browser or for the page. In the event that the user's language preference is known, set this field to the known user language. When specified,
|
|
4472
|
-
* the documents in search results are biased towards the specified language.
|
|
4473
|
-
* language boosting.
|
|
4364
|
+
* the documents in search results are biased towards the specified language. The Suggest API uses this field as a hint to make better third-party autocomplete predictions.
|
|
4474
4365
|
*/
|
|
4475
4366
|
"requestOptions.languageCode"?:
|
|
4476
4367
|
string;
|
|
@@ -4494,7 +4385,7 @@ declare namespace gapi.client {
|
|
|
4494
4385
|
}
|
|
4495
4386
|
interface QueryResource {
|
|
4496
4387
|
/**
|
|
4497
|
-
* Provides functionality to remove logged activity for a user. Currently to be used only for
|
|
4388
|
+
* Provides functionality to remove logged activity for a user. Currently to be used only for Chat 1p clients **Note:** This API requires a standard end user account to execute. A
|
|
4498
4389
|
* service account can't perform Remove Activity requests directly; to use a service account to perform queries, set up [Google Workspace domain-wide delegation of
|
|
4499
4390
|
* authority](https://developers.google.com/cloud-search/docs/guides/delegation/).
|
|
4500
4391
|
*/
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -101,7 +101,7 @@ Gets the latest state of a long-running operation. Clients can use this method t
|
|
|
101
101
|
await gapi.client.cloudsearch.operations.get({ name: "name", });
|
|
102
102
|
|
|
103
103
|
/*
|
|
104
|
-
Provides functionality to remove logged activity for a user. Currently to be used only for
|
|
104
|
+
Provides functionality to remove logged activity for a user. Currently to be used only for Chat 1p clients **Note:** This API requires a standard end user account to execute. A service account can't perform Remove Activity requests directly; to use a service account to perform queries, set up [Google Workspace domain-wide delegation of authority](https://developers.google.com/cloud-search/docs/guides/delegation/).
|
|
105
105
|
*/
|
|
106
106
|
await gapi.client.cloudsearch.query.removeActivity({ });
|
|
107
107
|
|
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: 20230705
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -550,8 +550,8 @@ gapi.load('client', async () => {
|
|
|
550
550
|
pageToken: "Test string",
|
|
551
551
|
});
|
|
552
552
|
/**
|
|
553
|
-
* Provides functionality to remove logged activity for a user. Currently to be used only for
|
|
554
|
-
*
|
|
553
|
+
* Provides functionality to remove logged activity for a user. Currently to be used only for Chat 1p clients **Note:** This API requires a standard end user account to execute. A service
|
|
554
|
+
* account can't perform Remove Activity requests directly; to use a service account to perform queries, set up [Google Workspace domain-wide delegation of
|
|
555
555
|
* authority](https://developers.google.com/cloud-search/docs/guides/delegation/).
|
|
556
556
|
*/
|
|
557
557
|
await gapi.client.cloudsearch.query.removeActivity({
|