@maxim_mazurok/gapi.client.cloudsearch-v1 0.0.20221018 → 0.0.20221108

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 +492 -14
  2. package/package.json +1 -1
  3. package/tests.ts +26 -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://cloudsearch.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20221018
12
+ // Revision: 20221108
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1137,6 +1137,24 @@ declare namespace gapi.client {
1137
1137
  /** The height of image url as fetched by fife. This field is asynchronously filled. */
1138
1138
  slackDataImageUrlHeight?: number;
1139
1139
  }
1140
+ interface Attribute {
1141
+ /** The name of the attribute. Required - If a write is attempted with an empty string, the server will return an error. */
1142
+ name?: string;
1143
+ value?: CaribouAttributeValue;
1144
+ }
1145
+ interface AttributeRemoved {
1146
+ attributeId?: string;
1147
+ messageKeys?: MultiKey[];
1148
+ }
1149
+ interface Attributes {
1150
+ attribute?: Attribute[];
1151
+ }
1152
+ interface AttributeSet {
1153
+ attributeId?: string;
1154
+ /** The serialized attribute_value as persisted in the storage layer. The application is responsible for deserializing it to an Attribute.Value if appropriate. */
1155
+ attributeValue?: string;
1156
+ messageKeys?: MultiKey[];
1157
+ }
1140
1158
  interface AuditLoggingSettings {
1141
1159
  /** Indicates whether audit logging is on/off for admin activity read APIs i.e. Get/List DataSources, Get/List SearchApplications etc. */
1142
1160
  logAdminReadActions?: boolean;
@@ -1295,8 +1313,6 @@ declare namespace gapi.client {
1295
1313
  * this field is empty. For recurring events, it refers to the recurring instance associated with the current call, as determined by the server.
1296
1314
  */
1297
1315
  calendarEventId?: string;
1298
- /** Configuration for the chat for this conference. */
1299
- chatConfig?: ChatConfig;
1300
1316
  /**
1301
1317
  * The current co-activity session, or unset if there is none in progress. A co-activity session can be initiated by devices in JOINED state . Initiator of the co-activity is expected
1302
1318
  * to populate this field to start the session. Once clients detect that the co-activity has finished, any JOINED device can clear this field to end the co-activity session. In the
@@ -1317,7 +1333,7 @@ declare namespace gapi.client {
1317
1333
  /**
1318
1334
  * Output only. Information about the media backend for the currently ongoing conference in the meeting space. The media backend information will only be filled in for clients that are
1319
1335
  * supposed to present the information. The information should be displayed in a debug panel and is only intended for internal debugging purposes. If the string is empty nothing should
1320
- * be displayed about the media backend.
1336
+ * be displayed about the media backend. Deprecated because media backend is always MEDIA_ROUTER since Dec 2018.
1321
1337
  */
1322
1338
  mediaBackendInfo?: string;
1323
1339
  /**
@@ -1417,15 +1433,22 @@ declare namespace gapi.client {
1417
1433
  */
1418
1434
  title?: string;
1419
1435
  }
1436
+ interface CaribouAttributeValue {
1437
+ /** Tags 1 through 15 are reserved for the most commonly used fields. */
1438
+ booleanValue?: boolean;
1439
+ intValue?: number;
1440
+ longValue?: string;
1441
+ /**
1442
+ * Generally, applications should avoid storing raw bytes and instead store structured data as protocol buffer extensions. This both reduces the amount of ad-hoc attribute parsing code
1443
+ * as well as eliminates an intermediate copy of the data when deserializing the value. The rawByteValue field is mainly provided for compatibility with attributes stored before the
1444
+ * introduction of the Attribute.Value.
1445
+ */
1446
+ rawByteValue?: string;
1447
+ stringValue?: string;
1448
+ }
1420
1449
  // tslint:disable-next-line:no-empty-interface
1421
1450
  interface ChatClientActionMarkup {
1422
1451
  }
1423
- interface ChatConfig {
1424
- /** The Type of chat this Conference is currently using. */
1425
- chatType?: string;
1426
- /** The configuration of Google Chat when selected. */
1427
- googleChatConfig?: GoogleChatConfig;
1428
- }
1429
1452
  interface ChatConserverDynamitePlaceholderMetadata {
1430
1453
  attachmentMetadata?: ChatConserverDynamitePlaceholderMetadataAttachmentMetadata;
1431
1454
  botMessageMetadata?: any;
@@ -1516,10 +1539,32 @@ declare namespace gapi.client {
1516
1539
  */
1517
1540
  requiredConsistencyTimestampUsec?: string;
1518
1541
  }
1542
+ interface ClientContext {
1543
+ /**
1544
+ * The client operation to which this history record belongs. The notion of a client operation is provided to keep track of client operations which might span multiple transactions in
1545
+ * the lower level.
1546
+ */
1547
+ clientOperationId?: string;
1548
+ /** E.g. "pinto", "imap", "bigtop", "upload" */
1549
+ clientType?: string;
1550
+ /** Contains information about the session which created this history record. This will be empty if the history record was generated by an internal request. */
1551
+ sessionContext?: SessionContext;
1552
+ /** Textual representation of the user's IP address, if available. */
1553
+ userIp?: string;
1554
+ }
1519
1555
  interface CloudPrincipalProto {
1520
1556
  /** Format: "{identity-pool}:{subject}#" Details: go/cloud-principal-identifiers */
1521
1557
  id?: string;
1522
1558
  }
1559
+ interface ClusterInfo {
1560
+ /**
1561
+ * IDs of the highest priority clusters to which the thread belongs to. If this field is not present, the thread does not belong to any cluster and would be shown in the inbox,
1562
+ * unclustered.
1563
+ */
1564
+ clusterId?: string[];
1565
+ /** If the thread belongs to a grouped cluster and all of those clusters are throttled, then this field is set to true. */
1566
+ throttled?: boolean;
1567
+ }
1523
1568
  interface CoActivity {
1524
1569
  /** The title of the activity in this co-activity session. For example, this might be the title of the video being co-watched, or the name of the round of a game being co-played. */
1525
1570
  activityTitle?: string;
@@ -2091,6 +2136,8 @@ declare namespace gapi.client {
2091
2136
  * always returned.
2092
2137
  */
2093
2138
  count?: number;
2139
+ /** Filter to be passed in the search request if the corresponding bucket is selected. */
2140
+ filter?: Filter;
2094
2141
  /**
2095
2142
  * Percent of results that match the bucket value. The returned value is between (0-100], and is rounded down to an integer if fractional. If the value is not explicitly returned, it
2096
2143
  * represents a percentage value that rounds to 0. Percentages are returned for all searches, but are an estimate. Because percentages are always returned, you should render
@@ -2100,6 +2147,11 @@ declare namespace gapi.client {
2100
2147
  value?: Value;
2101
2148
  }
2102
2149
  interface FacetOptions {
2150
+ /**
2151
+ * If set, describes integer faceting options for the given integer property. The corresponding integer property in the schema should be marked isFacetable. The number of buckets
2152
+ * returned would be minimum of this and num_facet_buckets.
2153
+ */
2154
+ integerFacetingOptions?: IntegerFacetingOptions;
2103
2155
  /** Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100. */
2104
2156
  numFacetBuckets?: number;
2105
2157
  /** If object_type is set, only those objects of that type will be used to compute facets. If empty, then all objects will be used to compute facets. */
@@ -2129,6 +2181,12 @@ declare namespace gapi.client {
2129
2181
  compositeFilter?: CompositeFilter;
2130
2182
  valueFilter?: ValueFilter;
2131
2183
  }
2184
+ // tslint:disable-next-line:no-empty-interface
2185
+ interface FilterCreated {
2186
+ }
2187
+ // tslint:disable-next-line:no-empty-interface
2188
+ interface FilterDeleted {
2189
+ }
2132
2190
  interface FilterOptions {
2133
2191
  /** Generic filter to restrict the search, such as `lang:en`, `site:xyz`. */
2134
2192
  filter?: Filter;
@@ -2138,11 +2196,26 @@ declare namespace gapi.client {
2138
2196
  */
2139
2197
  objectType?: string;
2140
2198
  }
2199
+ interface FilterUpdate {
2200
+ filterCreated?: any;
2201
+ filterDeleted?: any;
2202
+ filterId?: string;
2203
+ }
2141
2204
  interface FixedFooter {
2142
2205
  buttons?: Button[];
2143
2206
  primaryButton?: TextButton;
2144
2207
  secondaryButton?: TextButton;
2145
2208
  }
2209
+ interface Folder {
2210
+ /** Folder mapping id. */
2211
+ id?: string;
2212
+ /** One for each copy of the message in the IMAP folder. */
2213
+ message?: ImapsyncFolderAttributeFolderMessage[];
2214
+ }
2215
+ interface FolderAttribute {
2216
+ /** List of all IMAP folders where the message presents. */
2217
+ folder?: Folder[];
2218
+ }
2146
2219
  interface FormAction {
2147
2220
  /** Apps script function that should be invoked in the developer's apps script when the containing element is clicked/activated. */
2148
2221
  actionMethodName?: string;
@@ -2190,6 +2263,68 @@ declare namespace gapi.client {
2190
2263
  */
2191
2264
  freshnessProperty?: string;
2192
2265
  }
2266
+ interface FuseboxItem {
2267
+ attributes?: Attributes;
2268
+ /** The creation time of the Item in micro seconds. */
2269
+ creationTimeMicroseconds?: string;
2270
+ history?: History;
2271
+ /** The key is used to refer to an item. Note that every field of the MultiKey is unique to the Item, and thus the Item can be looked up by any of the fields. */
2272
+ itemKey?: MultiKey;
2273
+ labels?: Labels;
2274
+ /** The modification time of the Item in micro seconds. Modifications to the message include label addition, deletion, etc. */
2275
+ lastModificationTimeUs?: string;
2276
+ /** go/lockpicker Locker counterpart of references. */
2277
+ lockerReferences?: References;
2278
+ matchInfo?: MatchInfo;
2279
+ /** Type-specific data are represented as extensions to the ItemParts message. */
2280
+ parts?: any;
2281
+ /**
2282
+ * The read timestamp at which this item was read. This is a temporary field used to check if two items streamed during dual reading were read at the same timestamp. This will be
2283
+ * populated by Fusebox RPCs. "DO NOT USE UNLESS YOU TALK TO FUSEBOX TEAM (gmail-fusebox@)".
2284
+ */
2285
+ readTs?: string;
2286
+ /** References to attachments, video attachments in Youtube and Hangout messages. */
2287
+ references?: References;
2288
+ /** The snippet is a brief bit of text describing this item. */
2289
+ snippet?: string;
2290
+ /** The key of the Thread with which this Item is associated. */
2291
+ threadKey?: MultiKey;
2292
+ /** A base64 encoded and encrypted string generated from the Gaia Id and the thread id. Used to generate the permalink for this thread, exposed from Gmail API. */
2293
+ threadLocator?: string;
2294
+ triggers?: Triggers;
2295
+ /** The latest history operation id that resulted in a mutation of the item. */
2296
+ version?: string;
2297
+ }
2298
+ interface FuseboxItemThreadMatchInfo {
2299
+ /**
2300
+ * If SearchQuery.Options.Clustering is present, the query will be treated as a cluster query, and this field may be populated with the cluster ID of the cluster to which this thread
2301
+ * belongs, if any. The cluster ID will be a label on the message.
2302
+ */
2303
+ clusterId?: string;
2304
+ /**
2305
+ * The server id of the last item that matched the query. This is always set, regardless of the compute_matching_items_per_thread option. This is the value by which search results are
2306
+ * sorted, in descending (i.e. newest first) order.
2307
+ */
2308
+ lastMatchingItemId?: string;
2309
+ /**
2310
+ * The MultiKey of the last item that matched the query. This is always set, regardless of the compute_matching_items_per_thread option. This is the value by which search results are
2311
+ * sorted, in descending (i.e. newest first) order.
2312
+ */
2313
+ lastMatchingItemKey?: MultiKey;
2314
+ /**
2315
+ * If SearchQuery.Options.compute_matching_items_per_thread, this field will contain the keys of all items that matched the query, in ascending order. Note that this option requires
2316
+ * extra computation.
2317
+ */
2318
+ matchingItemKey?: MultiKey[];
2319
+ /**
2320
+ * The rank of this ItemThread in the result set of the query. This rank may be used to sort ItemThreads in proper order. Ranks are specific to a query, and stable for a given query at
2321
+ * a specific time.
2322
+ */
2323
+ rank?: Rank;
2324
+ }
2325
+ interface FuseboxPrefUpdatePreState {
2326
+ value?: string;
2327
+ }
2193
2328
  interface GaiaGroupProto {
2194
2329
  groupId?: string;
2195
2330
  }
@@ -2256,10 +2391,6 @@ declare namespace gapi.client {
2256
2391
  taskAction?: TaskActionMarkup;
2257
2392
  updateDraftActionMarkup?: UpdateDraftActionMarkup;
2258
2393
  }
2259
- interface GoogleChatConfig {
2260
- /** ID of the Chat group. */
2261
- chatGroupId?: string;
2262
- }
2263
2394
  interface GoogleChatV1ContextualAddOnMarkup {
2264
2395
  /** A list of cards. A card must contain a header and at least 1 section. */
2265
2396
  cards?: GoogleChatV1ContextualAddOnMarkupCard[];
@@ -2508,6 +2639,24 @@ declare namespace gapi.client {
2508
2639
  interface HashtagData {
2509
2640
  searchText?: string;
2510
2641
  }
2642
+ interface History {
2643
+ record?: HistoryRecord[];
2644
+ }
2645
+ interface HistoryRecord {
2646
+ /** This will almost always be set, but there are corner cases in which the information is not available, and thus applications must handle its absence appropriately. */
2647
+ clientContext?: ClientContext;
2648
+ filterUpdate?: FilterUpdate;
2649
+ imapUpdate?: ImapUpdate;
2650
+ labelUpdate?: LabelUpdate;
2651
+ prefUpdate?: PrefUpdate;
2652
+ /** Each HistoryRecord has a unique id. Ids are monotonically increasing, and not necessarily contiguous. */
2653
+ recordId?: string;
2654
+ threadUpdate?: ThreadUpdate;
2655
+ /** This will almost always be set, but there are corner cases in which the information is not available, and thus applications must handle its absence appropriately. */
2656
+ transactionContext?: TransactionContext;
2657
+ txnDebugInfo?: any;
2658
+ type?: string;
2659
+ }
2511
2660
  interface HostAppActionMarkup {
2512
2661
  /** Actions handled by Calendar. */
2513
2662
  calendarAction?: CalendarClientActionMarkup;
@@ -2607,6 +2756,45 @@ declare namespace gapi.client {
2607
2756
  onClick?: OnClick;
2608
2757
  text?: string;
2609
2758
  }
2759
+ interface ImapSessionContext {
2760
+ app?: string;
2761
+ /** User agent information */
2762
+ deviceType?: string;
2763
+ /**
2764
+ * As agreed with Bond team, this holds the fingerprint of any "aguid" or "guid" provided by the ID command. The fingerprint should be calculated by fingerprint2011. Note that not all
2765
+ * clients will provide aguid or guid through ID command.
2766
+ */
2767
+ guidFingerprint?: string;
2768
+ os?: string;
2769
+ osVersion?: OsVersion;
2770
+ possiblyTrimmedModel?: PossiblyTrimmedModel;
2771
+ }
2772
+ interface ImapSyncDelete {
2773
+ /** Contains the value of //imapsync/folder attribute of deleted message. */
2774
+ mappings?: FolderAttribute;
2775
+ msgId?: string;
2776
+ }
2777
+ interface ImapsyncFolderAttributeFolderMessage {
2778
+ /** Flags of the message. Represents unseen and flagged state. */
2779
+ flags?: ImapsyncFolderAttributeFolderMessageFlags;
2780
+ /** UID of the message. */
2781
+ uid?: string;
2782
+ }
2783
+ interface ImapsyncFolderAttributeFolderMessageFlags {
2784
+ /** Flagged state of the message. */
2785
+ flagged?: boolean;
2786
+ /** Seen state of the message. */
2787
+ seen?: boolean;
2788
+ }
2789
+ interface ImapUidsReassign {
2790
+ /** Label */
2791
+ labelId?: string;
2792
+ /** The message Ids */
2793
+ messageId?: string[];
2794
+ }
2795
+ interface ImapUpdate {
2796
+ imapUidsReassign?: ImapUidsReassign;
2797
+ }
2610
2798
  interface IncomingWebhookChangedMetadata {
2611
2799
  /** The webhook name at the time of the change. Used in Spanner storage, BE API responses and FE API responses. */
2612
2800
  incomingWebhookName?: string;
@@ -2649,6 +2837,13 @@ declare namespace gapi.client {
2649
2837
  contentType?: string;
2650
2838
  mimeType?: string;
2651
2839
  }
2840
+ interface IntegerFacetingOptions {
2841
+ /**
2842
+ * Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {<1, [1,5),
2843
+ * [5-10), [10-100), >=100}.
2844
+ */
2845
+ integerBuckets?: string[];
2846
+ }
2652
2847
  interface IntegerOperatorOptions {
2653
2848
  /**
2654
2849
  * Indicates the operator name required in the query in order to isolate the integer property using the greater-than operator. For example, if greaterThanOperatorName is
@@ -2671,6 +2866,8 @@ declare namespace gapi.client {
2671
2866
  operatorName?: string;
2672
2867
  }
2673
2868
  interface IntegerPropertyOptions {
2869
+ /** If set, describes integer faceting options for the given integer property. The corresponding integer property should be marked isFacetable. */
2870
+ integerFacetingOptions?: IntegerFacetingOptions;
2674
2871
  /**
2675
2872
  * The maximum value of the property. The minimum and maximum values for the property are used to rank results according to the ordered ranking. Indexing requests with values greater
2676
2873
  * than the maximum are accepted and ranked with the same weight as items indexed with the maximum value.
@@ -2840,6 +3037,9 @@ declare namespace gapi.client {
2840
3037
  /** The time when the item was last modified in the source repository. */
2841
3038
  updateTime?: string;
2842
3039
  }
3040
+ // tslint:disable-next-line:no-empty-interface
3041
+ interface ItemParts {
3042
+ }
2843
3043
  interface ItemStatus {
2844
3044
  /** Status code. */
2845
3045
  code?: string;
@@ -2854,6 +3054,40 @@ declare namespace gapi.client {
2854
3054
  /** The structured data object that should conform to a registered object definition in the schema for the data source. */
2855
3055
  object?: StructuredDataObject;
2856
3056
  }
3057
+ interface ItemThread {
3058
+ clusterInfo?: ClusterInfo;
3059
+ /**
3060
+ * The Items in the ItemThread. In the context of a search, the list of Items may be a subset of those that logically belong to the ItemThread. The details of which items are included
3061
+ * are available in the ItemThreadView returned in the overall rpc response.
3062
+ */
3063
+ item?: FuseboxItem[];
3064
+ /**
3065
+ * The server id of the last item returned in the ItemThread. This can be deduced from the [item] list but is provided for convenience. When manually constructing an ItemThreadViewSpec
3066
+ * to perform operations on the ItemThread, this value can be used as the [high_item_id_watermark].
3067
+ */
3068
+ lastItemId?: string;
3069
+ matchInfo?: FuseboxItemThreadMatchInfo;
3070
+ /** A snippet summarizing the thread. This field is only populated for searches. */
3071
+ snippet?: string;
3072
+ /**
3073
+ * The MultiKey that identifies this thread. This value never changes, i.e. remains constant across modifications to the thread, including addition, relabeling, or deletion of
3074
+ * contained Items. As such, the thread key may not necessarily correspond to the key of an contained Item. Legacy note: The "server_id" of the thread key is equivalent to the notion
3075
+ * of the "original thread id" in the CSS API.
3076
+ */
3077
+ threadKey?: MultiKey;
3078
+ /** A base64 encoded and encrypted string generated from the Gaia Id and the thread id. Used to generate the permalink for this thread, exposed from Gmail API. */
3079
+ threadLocator?: string;
3080
+ /** Next available id : 10 */
3081
+ topicState?: TopicState;
3082
+ /** The latest history operation id that resulted in a mutation of any item in the thread. */
3083
+ version?: string;
3084
+ }
3085
+ interface JobsettedServerSpec {
3086
+ /** E.g. "gateway", "stubby" etc. Leave unset to use the default unnamed port. */
3087
+ portName?: string;
3088
+ /** E.g. "satellite-server", "bigtop-sync", etc. */
3089
+ serverName?: string;
3090
+ }
2857
3091
  interface KeyValue {
2858
3092
  /** Formatted text supported. */
2859
3093
  bottomLabel?: string;
@@ -2875,6 +3109,45 @@ declare namespace gapi.client {
2875
3109
  /** Formatted text supported. */
2876
3110
  topLabel?: string;
2877
3111
  }
3112
+ interface LabelAdded {
3113
+ labelId?: string;
3114
+ labelName?: string;
3115
+ messageKeys?: MultiKey[];
3116
+ syncId?: number;
3117
+ }
3118
+ // tslint:disable-next-line:no-empty-interface
3119
+ interface LabelCreated {
3120
+ }
3121
+ // tslint:disable-next-line:no-empty-interface
3122
+ interface LabelDeleted {
3123
+ }
3124
+ interface LabelRemoved {
3125
+ labelId?: string;
3126
+ labelName?: string;
3127
+ messageKeys?: MultiKey[];
3128
+ syncId?: number;
3129
+ }
3130
+ interface LabelRenamed {
3131
+ oldCanonicalName?: string;
3132
+ }
3133
+ interface Labels {
3134
+ /** The display name of the labels. This is populated (instead of the id) when the request fetch_spec has LABEL_DISPLAY_NAMES. */
3135
+ displayName?: string[];
3136
+ /** The ids of the labels attached to the Item, e.g. "^i", "^x_1" */
3137
+ id?: string[];
3138
+ }
3139
+ interface LabelUpdate {
3140
+ canonicalName?: string;
3141
+ labelCreated?: any;
3142
+ labelDeleted?: any;
3143
+ labelId?: string;
3144
+ labelRenamed?: LabelRenamed;
3145
+ labelUpdated?: any;
3146
+ syncId?: number;
3147
+ }
3148
+ // tslint:disable-next-line:no-empty-interface
3149
+ interface LabelUpdated {
3150
+ }
2878
3151
  interface LanguageConfig {
2879
3152
  /** The spoken language(s) in BCP47 language code. */
2880
3153
  spokenLanguages?: string[];
@@ -2962,6 +3235,10 @@ declare namespace gapi.client {
2962
3235
  nextPageToken?: string;
2963
3236
  unmappedIdentities?: UnmappedIdentity[];
2964
3237
  }
3238
+ interface MatchInfo {
3239
+ /** Reference keys for image attachments that matches search query. */
3240
+ matchingImageReferenceKey?: string[];
3241
+ }
2965
3242
  interface MatchRange {
2966
3243
  /** End of the match in the snippet. */
2967
3244
  end?: number;
@@ -3184,10 +3461,22 @@ declare namespace gapi.client {
3184
3461
  */
3185
3462
  uploadMetadata?: UploadMetadata[];
3186
3463
  }
3464
+ interface MessageAdded {
3465
+ attributeIds?: string[];
3466
+ labelIds?: string[];
3467
+ messageKey?: MultiKey;
3468
+ /** Note that there can be fewer sync ids than label ids. */
3469
+ syncIds?: number[];
3470
+ }
3187
3471
  interface MessageAttributes {
3188
3472
  /** If true: message is a tombstone in the client. Default false. */
3189
3473
  isTombstone?: boolean;
3190
3474
  }
3475
+ interface MessageDeleted {
3476
+ /** Value of coproc's message delete history record extension that exports /imapsync/folder attribute of deleted messages which have ^is label. */
3477
+ imapSyncMappings?: ImapSyncDelete[];
3478
+ messageKeys?: MultiKey[];
3479
+ }
3191
3480
  interface MessageId {
3192
3481
  /** Opaque, server-assigned ID of the Message. While this ID is guaranteed to be unique within the Space, it's not guaranteed to be globally unique. */
3193
3482
  messageId?: string;
@@ -3207,6 +3496,9 @@ declare namespace gapi.client {
3207
3496
  interface MessageProps {
3208
3497
  babelProps?: BabelMessageProps;
3209
3498
  }
3499
+ // tslint:disable-next-line:no-empty-interface
3500
+ interface MessageSet {
3501
+ }
3210
3502
  interface Metadata {
3211
3503
  /** The creation time for this document or object in the search result. */
3212
3504
  createTime?: string;
@@ -3234,6 +3526,12 @@ declare namespace gapi.client {
3234
3526
  /** The list of displayed properties for the metaline. The maximum number of properties is 5. */
3235
3527
  properties?: DisplayedProperty[];
3236
3528
  }
3529
+ interface MultiKey {
3530
+ /** A client-assigned string based key. */
3531
+ clientAssignedPermId?: string;
3532
+ /** A server-assigned ID. This ID must be used only by Gmail and is constructed using millesecond ts << 20 + randomness. The ID affects the sort order of the index. */
3533
+ serverId?: string;
3534
+ }
3237
3535
  interface Name {
3238
3536
  /** The read-only display name formatted according to the locale specified by the viewer's account or the `Accept-Language` HTTP header. */
3239
3537
  displayName?: string;
@@ -3358,6 +3656,11 @@ declare namespace gapi.client {
3358
3656
  */
3359
3657
  response?: { [P in string]: any };
3360
3658
  }
3659
+ interface OsVersion {
3660
+ majorVersion?: number;
3661
+ minorVersion?: number;
3662
+ tertiaryVersion?: number;
3663
+ }
3361
3664
  interface OtrChatMessageEvent {
3362
3665
  expirationTimestampUsec?: string;
3363
3666
  kansasRowId?: string;
@@ -3457,9 +3760,26 @@ declare namespace gapi.client {
3457
3760
  */
3458
3761
  items?: Item[];
3459
3762
  }
3763
+ interface PossiblyTrimmedModel {
3764
+ isTrimmed?: boolean;
3765
+ model?: string;
3766
+ }
3460
3767
  interface PostiniUserProto {
3461
3768
  postiniUserId?: string;
3462
3769
  }
3770
+ // tslint:disable-next-line:no-empty-interface
3771
+ interface PrefDeleted {
3772
+ }
3773
+ interface PrefUpdate {
3774
+ /** Name of the affected preference. */
3775
+ name?: string;
3776
+ prefDeleted?: any;
3777
+ prefWritten?: PrefWritten;
3778
+ preState?: FuseboxPrefUpdatePreState;
3779
+ }
3780
+ interface PrefWritten {
3781
+ value?: string;
3782
+ }
3463
3783
  interface Presenter {
3464
3784
  /** The device resource name of the device which requested the current presenter to be set. This field can not be modified by clients. */
3465
3785
  byDeviceId?: string;
@@ -3468,6 +3788,13 @@ declare namespace gapi.client {
3468
3788
  /** The device resource name of the currently presenting device. */
3469
3789
  presenterDeviceId?: string;
3470
3790
  }
3791
+ interface PreState {
3792
+ labelIds?: string[];
3793
+ messageKey?: MultiKey;
3794
+ /** Note that there can be fewer sync ids than label ids. */
3795
+ syncIds?: number[];
3796
+ threadKey?: MultiKey;
3797
+ }
3471
3798
  interface Principal {
3472
3799
  /** This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID} */
3473
3800
  groupResourceName?: string;
@@ -3786,6 +4113,15 @@ declare namespace gapi.client {
3786
4113
  /** Output only. Upload metadata of the quoted message. */
3787
4114
  uploadMetadata?: UploadMetadata[];
3788
4115
  }
4116
+ interface Rank {
4117
+ /**
4118
+ * The primary rank is the most significant rank member. This rank element should always be present. Items with higher primary rank are always considered of higher rank than those of
4119
+ * lower primary rank.
4120
+ */
4121
+ primary?: string;
4122
+ /** The secondary rank may be used to rank items of identical primary rank. This rank element should always be present. */
4123
+ secondary?: string;
4124
+ }
3789
4125
  interface RbacRoleProto {
3790
4126
  name?: string;
3791
4127
  objectId?: string;
@@ -3843,6 +4179,19 @@ declare namespace gapi.client {
3843
4179
  /** Recording session's state information. */
3844
4180
  sessionStateInfo?: SessionStateInfo;
3845
4181
  }
4182
+ interface Reference {
4183
+ blobId?: string;
4184
+ contentType?: string;
4185
+ hash?: string;
4186
+ /** LINT.IfChange */
4187
+ key?: string;
4188
+ /** LINT.ThenChange(//depot/google3/storage/slice/production/gmail/ user_data_tables.pi) */
4189
+ name?: string;
4190
+ size?: string;
4191
+ }
4192
+ interface References {
4193
+ references?: Reference[];
4194
+ }
3846
4195
  interface RenameEvent {
3847
4196
  newName?: string;
3848
4197
  originalName?: string;
@@ -3971,6 +4320,15 @@ declare namespace gapi.client {
3971
4320
  /** Opaque, server-assigned ID of the Roster. */
3972
4321
  id?: string;
3973
4322
  }
4323
+ interface RpcOptions {
4324
+ /**
4325
+ * The RPC's request extensions (i.e. RPC::request_extensions(), a.k.a. the Stubby side channel) will be merged with the specified [request_extensions]. When Triggers are batched, the
4326
+ * RPC's request extensions will be merged with all of the [request_extensions] of the Triggers in the batch. Note that merging of request extensions follows standard protocol buffer
4327
+ * semantics; values of singular fields override previous values, and values of repeated fields are appended (In the case of Triggers, Triggers with later fire times will be merged
4328
+ * after Triggers with earlier fire times in the same batch). It is not advised to specify extensions with repeated fields on batchable Triggers.
4329
+ */
4330
+ requestExtensions?: any;
4331
+ }
3974
4332
  interface SafeUrlProto {
3975
4333
  /**
3976
4334
  * IMPORTANT: Never set or read this field, even from tests, it is private. See documentation at the top of .proto file for programming language packages with which to create or read
@@ -4168,6 +4526,20 @@ declare namespace gapi.client {
4168
4526
  /** The value associated with this item which will be sent back to app scripts. Client should use as a form input value. */
4169
4527
  value?: string;
4170
4528
  }
4529
+ interface SessionContext {
4530
+ /** Time at which this activity's session was authenticated, in seconds since the epoch. */
4531
+ authTime?: string;
4532
+ /** Gaia ID of the authenticated user when delegate access is active. In such sessions the main gaia ID is that of the delegator, i.e. the account being accessed. */
4533
+ delegateUserId?: string;
4534
+ /** Device User Session ID, see go/dusi. */
4535
+ dusi?: string;
4536
+ /** Imap session context for Bond/Gmail integration */
4537
+ imapSessionContext?: ImapSessionContext;
4538
+ /** OAuth login ID. */
4539
+ oauthLoginId?: number;
4540
+ /** The devconsole project ID of the developer who authenticated with OAuth. */
4541
+ oauthProjectId?: string;
4542
+ }
4171
4543
  interface SessionEvent {
4172
4544
  /** The initiator of the latest event of the streaming session. It will be set for all user events (`type` is 100-199) and unset for all server events(`type` is 200-299). */
4173
4545
  deviceId?: string;
@@ -4517,6 +4889,35 @@ declare namespace gapi.client {
4517
4889
  /** The maximum allowable length for text values is 2048 characters. */
4518
4890
  values?: string[];
4519
4891
  }
4892
+ interface ThreadKeySet {
4893
+ /** Messages on which the thread_key was changed. */
4894
+ messageKeys?: MultiKey[];
4895
+ /** The new thread_key for this thread */
4896
+ newThreadKey?: MultiKey;
4897
+ }
4898
+ interface ThreadUpdate {
4899
+ attributeRemoved?: AttributeRemoved;
4900
+ attributeSet?: AttributeSet;
4901
+ labelAdded?: LabelAdded;
4902
+ labelRemoved?: LabelRemoved;
4903
+ /** Indicates the record id of the last operation that modified this thread. */
4904
+ lastHistoryRecordId?: string;
4905
+ messageAdded?: MessageAdded;
4906
+ messageDeleted?: MessageDeleted;
4907
+ /**
4908
+ * The first non-empty thread-key on any message in the thread (including deleted messages). This field has been introduced to maintain backward compatibility for clients that are not
4909
+ * subthread aware.
4910
+ */
4911
+ originalThreadKey?: MultiKey;
4912
+ /** The PreStates of all messages before the transaction. These are suppressed if the client requested that prestates not be included in the output of the GetHistoryRequest. */
4913
+ preState?: PreState[];
4914
+ /** Affected thread */
4915
+ threadKey?: MultiKey;
4916
+ threadKeySet?: ThreadKeySet;
4917
+ /** Thread PLID */
4918
+ threadLocator?: string;
4919
+ topicStateUpdate?: TopicStateUpdate;
4920
+ }
4520
4921
  interface TimestampOperatorOptions {
4521
4922
  /**
4522
4923
  * Indicates the operator name required in the query in order to isolate the timestamp property using the greater-than operator. For example, if greaterThanOperatorName is
@@ -4564,6 +4965,29 @@ declare namespace gapi.client {
4564
4965
  */
4565
4966
  topicId?: string;
4566
4967
  }
4968
+ interface TopicState {
4969
+ /**
4970
+ * Map of label => count of topic constituent messages with label These only contain counts of labels that are relevant for topic normalization/denormalization. Eg. If a topic thread
4971
+ * has 5 constituents, 4 of which are in inbox, this will contain ^i => 4. Some labels of interest are archive, inbox, trash, spam, etc.
4972
+ */
4973
+ labelIdMessageCount?: { [P in string]: number };
4974
+ /** Number of constituents for this entity. */
4975
+ numConstituents?: number;
4976
+ }
4977
+ interface TopicStateUpdate {
4978
+ topicState?: TopicState;
4979
+ }
4980
+ interface TransactionContext {
4981
+ /** The last HistoryRecord of the transaction. Note that this may correspond to a record that is filtered by Tingle (and thus not returned to the client). See http://b/9513464. */
4982
+ endingRecordId?: string;
4983
+ /** The first HistoryRecord of the transaction. Note that this may be a record of type INTERNAL. */
4984
+ startingRecordId?: string;
4985
+ /** The microsecond timestamp of the transaction. */
4986
+ writeTimestampUs?: string;
4987
+ }
4988
+ // tslint:disable-next-line:no-empty-interface
4989
+ interface TransactionDebugInfo {
4990
+ }
4567
4991
  interface TranscriptionSessionInfo {
4568
4992
  /** Transcription session's state information. */
4569
4993
  sessionStateInfo?: SessionStateInfo;
@@ -4573,6 +4997,58 @@ declare namespace gapi.client {
4573
4997
  // tslint:disable-next-line:no-empty-interface
4574
4998
  interface TransientData {
4575
4999
  }
5000
+ interface Trigger {
5001
+ /**
5002
+ * Each dispatcher should use an enum to for the actions that it supports. If a dispatcher has only one action, this does not need to be set. (It can be expanded later, defining the
5003
+ * default behaviour as type 0.) For purposes such as batching, the type of a trigger is (dispatcher, action_type).
5004
+ */
5005
+ actionType?: number;
5006
+ /**
5007
+ * Maximum possible delay in micros that can be tolerated so triggers can be batched, which makes processing more efficient compared to firing triggers individually. Note that the
5008
+ * actual fire time will be somewhere in the timerange interval [fire_time_us, fire_time_us + batch_time_us).
5009
+ */
5010
+ batchTimeUs?: string;
5011
+ /** Which server should interpret action_type. */
5012
+ dispatcher?: string;
5013
+ /** Must be set for DISPATCHER_STUBBY_DISPATCHER. */
5014
+ dispatchId?: number;
5015
+ /** Earliest time to fire at in microseconds. The actual time that the trigger will fire will be in the timerange: [fire_time_us, fire_time_us + batch_time_us). */
5016
+ fireTimeUs?: string;
5017
+ /** Must be set for DISPATCHER_JOBSETTED_PRIMARY. */
5018
+ jobsettedServerSpec?: JobsettedServerSpec;
5019
+ /** The trigger key, if applicable. */
5020
+ key?: string;
5021
+ rpcOptions?: RpcOptions;
5022
+ /**
5023
+ * The slice_fire_time_us is automatically computed and stored as part of the trigger write. It represents the exact fire time at which the trigger will be queued to fire and will
5024
+ * satisfy fire_time_us < slice_fire_time_us <= fire_time_us + batch_time_us Triggers have an index row in the slice trigger index with the row prefix matching this time. Note that
5025
+ * this field is internal to gmail_cp and is ignored if set by external clients when adding / updating triggers.
5026
+ */
5027
+ sliceFireTimeUs?: string;
5028
+ /** Trigger action to perform. This should always be set. */
5029
+ triggerAction?: TriggerAction;
5030
+ /** The TriggerKey will uniquely determine a trigger within a given context. A context is a single message for message triggers or a single account for account triggers. */
5031
+ triggerKey?: TriggerKey;
5032
+ }
5033
+ interface TriggerAction {
5034
+ action?: string;
5035
+ /** Clients should use extensions on the Trigger message instead. */
5036
+ data?: string;
5037
+ dataInt?: string;
5038
+ }
5039
+ interface TriggerKey {
5040
+ /** Identifier to distinguish multiple Triggers of the same type (per message or per account). */
5041
+ instanceId?: string;
5042
+ /**
5043
+ * A non-empty string that identifies the type of Trigger. Triggers of the same type may be batched together. The universe of values for the type field should be finite as it is used
5044
+ * as a stats key.
5045
+ */
5046
+ type?: string;
5047
+ }
5048
+ interface Triggers {
5049
+ /** A list of triggers. */
5050
+ triggers?: Trigger[];
5051
+ }
4576
5052
  interface TrustedResourceUrlProto {
4577
5053
  /**
4578
5054
  * IMPORTANT: Never set or read this field, even from tests, it is private. See documentation at the top of .proto file for programming language packages with which to create or read
@@ -4685,6 +5161,8 @@ declare namespace gapi.client {
4685
5161
  contentType?: string;
4686
5162
  /** The metrics metadata of the Data Loss Prevention attachment scan. */
4687
5163
  dlpMetricsMetadata?: AppsDynamiteSharedDlpMetricsMetadata;
5164
+ /** The timestamp of the most recent virus scan completed (in microseconds). */
5165
+ latestVirusScanTimestamp?: string;
4688
5166
  /** A copy of the LocalId in Annotation. This field is supposed to be filled by server only. */
4689
5167
  localId?: string;
4690
5168
  /** Original dimension of the content. Only set for image attachments. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudsearch-v1",
3
- "version": "0.0.20221018",
3
+ "version": "0.0.20221108",
4
4
  "description": "TypeScript typings for Cloud Search API v1",
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: 20221018
6
+ // Revision: 20221108
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -183,6 +183,11 @@ gapi.load('client', async () => {
183
183
  },
184
184
  },
185
185
  integerPropertyOptions: {
186
+ integerFacetingOptions: {
187
+ integerBuckets: [
188
+ "Test string"
189
+ ],
190
+ },
186
191
  maximumValue: "Test string",
187
192
  minimumValue: "Test string",
188
193
  operatorOptions: {
@@ -601,6 +606,11 @@ gapi.load('client', async () => {
601
606
  ],
602
607
  facetOptions: [
603
608
  {
609
+ integerFacetingOptions: {
610
+ integerBuckets: [
611
+ "Test string"
612
+ ],
613
+ },
604
614
  numFacetBuckets: 42,
605
615
  objectType: "Test string",
606
616
  operatorName: "Test string",
@@ -841,6 +851,11 @@ gapi.load('client', async () => {
841
851
  ],
842
852
  defaultFacetOptions: [
843
853
  {
854
+ integerFacetingOptions: {
855
+ integerBuckets: [
856
+ "Test string"
857
+ ],
858
+ },
844
859
  numFacetBuckets: 42,
845
860
  objectType: "Test string",
846
861
  operatorName: "Test string",
@@ -939,6 +954,11 @@ gapi.load('client', async () => {
939
954
  ],
940
955
  defaultFacetOptions: [
941
956
  {
957
+ integerFacetingOptions: {
958
+ integerBuckets: [
959
+ "Test string"
960
+ ],
961
+ },
942
962
  numFacetBuckets: 42,
943
963
  objectType: "Test string",
944
964
  operatorName: "Test string",
@@ -1029,6 +1049,11 @@ gapi.load('client', async () => {
1029
1049
  ],
1030
1050
  defaultFacetOptions: [
1031
1051
  {
1052
+ integerFacetingOptions: {
1053
+ integerBuckets: [
1054
+ "Test string"
1055
+ ],
1056
+ },
1032
1057
  numFacetBuckets: 42,
1033
1058
  objectType: "Test string",
1034
1059
  operatorName: "Test string",