@maxim_mazurok/gapi.client.cloudsearch-v1 0.0.20220801 → 0.0.20220823

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 +933 -915
  2. package/package.json +1 -1
  3. package/tests.ts +1 -1
package/index.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
11
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
12
  // Generated from: https://cloudsearch.googleapis.com/$discovery/rest?version=v1
13
- // Revision: 20220801
13
+ // Revision: 20220823
14
14
 
15
15
  /// <reference types="gapi.client" />
16
16
 
@@ -35,271 +35,7 @@ declare namespace gapi.client {
35
35
  /** Output only. IDs of meeting devices (at most ten are provided) that have not acked yet. */
36
36
  unackedDeviceIds?: string[];
37
37
  }
38
- interface AclInfo {
39
- /** Number of groups which have at least read access to the document. */
40
- groupsCount?: number;
41
- /** The scope to which the content was shared. */
42
- scope?: string;
43
- /** Number of users which have at least read access to the document. */
44
- usersCount?: number;
45
- }
46
- interface ActionParameter {
47
- key?: string;
48
- value?: string;
49
- }
50
- // tslint:disable-next-line:no-empty-interface
51
- interface AllAuthenticatedUsersProto {
52
- }
53
- interface AppsDynamiteAnnotation {
54
- babelPlaceholderMetadata?: AppsDynamiteBabelPlaceholderMetadata;
55
- /** LINT.ThenChange(//depot/google3/java/com/google/apps/dynamite/v1/backend/action/common/SystemMessageHelper.java) */
56
- cardCapabilityMetadata?: AppsDynamiteCardCapabilityMetadata;
57
- /** Whether the annotation should be rendered as a chip. If this is missing or unspecified, fallback to should_not_render on the metadata. */
58
- chipRenderType?: string;
59
- consentedAppUnfurlMetadata?: AppsDynamiteConsentedAppUnfurlMetadata;
60
- customEmojiMetadata?: AppsDynamiteCustomEmojiMetadata;
61
- dataLossPreventionMetadata?: AppsDynamiteDataLossPreventionMetadata;
62
- /** Chip annotations */
63
- driveMetadata?: AppsDynamiteDriveMetadata;
64
- formatMetadata?: AppsDynamiteFormatMetadata;
65
- groupRetentionSettingsUpdated?: AppsDynamiteGroupRetentionSettingsUpdatedMetaData;
66
- /**
67
- * Metadata for 1P integrations like tasks, calendar. These are supported only through integration server as 1P integrations use the integration API (which in turn uses backend API
68
- * with special permissions) to post messages. Clients should never set this. LINT.IfChange
69
- */
70
- gsuiteIntegrationMetadata?: AppsDynamiteGsuiteIntegrationMetadata;
71
- incomingWebhookChangedMetadata?: AppsDynamiteIncomingWebhookChangedMetadata;
72
- /** LINT.ThenChange(//depot/google3/java/com/google/apps/dynamite/v1/backend/action/common/SystemMessageHelper.java) */
73
- integrationConfigUpdated?: AppsDynamiteIntegrationConfigUpdatedMetadata;
74
- /** Length of the text_body substring beginning from start_index the Annotation corresponds to. */
75
- length?: number;
76
- /**
77
- * A unique client-assigned ID for this annotation. This is helpful in matching the back-filled annotations to the original annotations on client side, without having to re-parse the
78
- * message.
79
- */
80
- localId?: string;
81
- /** Metadata for system messages. Clients should never set this. LINT.IfChange */
82
- membershipChanged?: AppsDynamiteMembershipChangedMetadata;
83
- readReceiptsSettingsMetadata?: AppsDynamiteReadReceiptsSettingsUpdatedMetadata;
84
- /**
85
- * Metadata that defines all of the required features that must be rendered in the message. Clients can use this to see whether they support the entire message, or show a fallback chip
86
- * otherwise. See go/message-quoting-client-to-server for details. LINT.ThenChange( //depot/google3/java/com/google/apps/dynamite/v1/allshared/parser/AnnotationSanitizer.java,
87
- * //depot/google3/java/com/google/apps/dynamite/v1/backend/action/common/SystemMessageHelper.java, //depot/google3/java/com/google/caribou/eli/mediation/chat/AnnotationTranslator.java
88
- * )
89
- */
90
- requiredMessageFeaturesMetadata?: AppsDynamiteRequiredMessageFeaturesMetadata;
91
- roomUpdated?: AppsDynamiteRoomUpdatedMetadata;
92
- /**
93
- * Whether or not the annotation is invalidated by the server. Example of situations for invalidation include: when the URL is malformed, or when Drive item ID is rejected by Drive
94
- * Service.
95
- */
96
- serverInvalidated?: boolean;
97
- slashCommandMetadata?: AppsDynamiteSlashCommandMetadata;
98
- /** Start index (0-indexed) of the Message text the Annotation corresponds to, inclusive. */
99
- startIndex?: number;
100
- /** Type of the Annotation. */
101
- type?: string;
102
- /** A unique server-assigned ID for this annotation. This is helpful in matching annotation objects when fetched from service. */
103
- uniqueId?: string;
104
- uploadMetadata?: AppsDynamiteUploadMetadata;
105
- urlMetadata?: AppsDynamiteUrlMetadata;
106
- /** Metadata that clients can set for annotations. LINT.IfChange In-text annotations */
107
- userMentionMetadata?: AppsDynamiteUserMentionMetadata;
108
- videoCallMetadata?: AppsDynamiteVideoCallMetadata;
109
- youtubeMetadata?: AppsDynamiteYoutubeMetadata;
110
- }
111
- interface AppsDynamiteAppId {
112
- /** Enum indicating the type of App this is. */
113
- appType?: string;
114
- /**
115
- * Enum indicating which 1P App this is when app_type is GSUITE_APP. Determined & set by the 1P API as a convenience for all users of this identifier(Eg. clients, chime, backend etc.)
116
- * to map to 1P properties.
117
- */
118
- gsuiteAppType?: string;
119
- /** Numeric identifier of the App. Set to Project number for 1/3P Apps. For Webhook, this is WebhookId. Determined & set by the 1P API from App credentials on the side channel. */
120
- id?: string;
121
- }
122
- interface AppsDynamiteAttachment {
123
- /** Revised version of Gmail AddOn attachment approved by API design review. */
124
- addOnData?: GoogleChatV1ContextualAddOnMarkup;
125
- /** The userId for the bot/app that created this data, to be used for attribution of attachments when the attachment was not created by the message sender. */
126
- appId?: AppsDynamiteUserId;
127
- /** To identify an attachment within repeated in a message */
128
- attachmentId?: string;
129
- /** Card AddOn attachment with the possibility for specifying editable widgets. */
130
- cardAddOnData?: AppsDynamiteSharedCard;
131
- /** Deprecated version of Gmail AddOn attachment. */
132
- deprecatedAddOnData?: ContextualAddOnMarkup;
133
- /** Slack attachment. */
134
- slackData?: AppsDynamiteV1ApiCompatV1Attachment;
135
- /** The height of image url as fetched by fife. This field is asynchronously filled. */
136
- slackDataImageUrlHeight?: number;
137
- }
138
- interface AppsDynamiteBabelMessageProps {
139
- /** Babel clients locally generate this ID to dedupe against the async fanout. */
140
- clientGeneratedId?: string;
141
- /** Stores additional Babel-specific properties (such as event metadata). */
142
- contentExtension?: ChatContentExtension;
143
- /** Stores the delivery source of messages (such as phone number for SMS). */
144
- deliveryMedium?: DeliveryMedium;
145
- /** Primary identifier used by Hangouts Classic for its events (messages). */
146
- eventId?: string;
147
- /** Stores message segments (text content) and attachments (media URLs). */
148
- messageContent?: MessageContent;
149
- /** Whether or not these message properties were backfilled by go/dinnertrain. */
150
- wasUpdatedByBackfill?: boolean;
151
- }
152
- interface AppsDynamiteBabelPlaceholderMetadata {
153
- deleteMetadata?: any;
154
- editMetadata?: any;
155
- hangoutVideoMetadata?: AppsDynamiteBabelPlaceholderMetadataHangoutVideoEventMetadata;
156
- }
157
- // tslint:disable-next-line:no-empty-interface
158
- interface AppsDynamiteBabelPlaceholderMetadataDeleteMetadata {
159
- }
160
- // tslint:disable-next-line:no-empty-interface
161
- interface AppsDynamiteBabelPlaceholderMetadataEditMetadata {
162
- }
163
- interface AppsDynamiteBabelPlaceholderMetadataHangoutVideoEventMetadata {
164
- hangoutVideoType?: string;
165
- }
166
- interface AppsDynamiteBackendDlpScanSummary {
167
- /**
168
- * The scan ID of the corresponding {@link DlpViolationScanRecord} in the {@link EphemeralDlpScans} Spanner table. This can be used to fetch additional details about the scan, e.g. for
169
- * audit logging.
170
- */
171
- scanId?: string;
172
- /**
173
- * Indicates that was no attempt to scan a message or attachment because it was not applicable in the given context (e.g. atomic mutuate). If this is true, scan_outcome should not be
174
- * set. This flag is used to identify messages that DLP did not attempt to scan for monitoring scan coverage. Contents that DLP attempted to scan but skipped can be identified by
175
- * DlpScanOutcome.SCAN_SKIPPED_* reasons.
176
- */
177
- scanNotApplicableForContext?: boolean;
178
- /** The outcome of a DLP Scan. If this is set, scan_not_applicable_for_context should not be true. */
179
- scanOutcome?: string;
180
- }
181
- interface AppsDynamiteBackendLabelsCommunalLabelTag {
182
- /** Gaia ID of the user who added the tag, if any. Not present for any tags automatically created by server-side processing. */
183
- creatorUserId?: string;
184
- /** A string ID representing the label. Possible ID values are documented at go/chat-labels-howto:ids. Example: "^*t_p" for "Pinned". */
185
- labelId?: string;
186
- }
187
- interface AppsDynamiteBackendLabelsPersonalLabelTag {
188
- /** A string ID representing the label. Possible ID values are documented at go/chat-labels-howto:ids. Examples: "^t" for "Starred", "^nu" for "Nudged". */
189
- labelId?: string;
190
- }
191
- interface AppsDynamiteBotResponse {
192
- botId?: AppsDynamiteUserId;
193
- requiredAction?: string;
194
- responseType?: string;
195
- /** URL for setting up bot. */
196
- setupUrl?: string;
197
- }
198
- interface AppsDynamiteCardCapabilityMetadata {
199
- /** NEXT TAG : 2 */
200
- requiredCapabilities?: string[];
201
- }
202
- interface AppsDynamiteConsentedAppUnfurlMetadata {
203
- /** Client specified AppId, which will not be sanitized and is untrusted. */
204
- clientSpecifiedAppId?: AppsDynamiteUserId;
205
- }
206
- interface AppsDynamiteContentReport {
207
- /** The time at which the report is generated. Always populated when it is in a response. */
208
- reportCreateTimestamp?: string;
209
- /** User ID of the reporter. Always populated when it is in a response. */
210
- reporterUserId?: AppsDynamiteUserId;
211
- /** Additional user-provided justification on the report. Optional. */
212
- reportJustification?: AppsDynamiteContentReportJustification;
213
- /** Type of the report. Always populated when it is in a response. */
214
- reportType?: AppsDynamiteSharedContentReportType;
215
- /** Create timestamp of the revisions of the message when it's reported. Always populated when it is in a response. */
216
- revisionCreateTimestamp?: string;
217
- }
218
- interface AppsDynamiteContentReportJustification {
219
- /** Optional. User-generated free-text justification for the content report. */
220
- userJustification?: string;
221
- }
222
- interface AppsDynamiteCustomEmojiMetadata {
223
- customEmoji?: AppsDynamiteSharedCustomEmoji;
224
- }
225
- interface AppsDynamiteCustomerId {
226
- customerId?: string;
227
- }
228
- interface AppsDynamiteDataLossPreventionMetadata {
229
- /** The DLP scan summary that should only be set after the message is scanned in the Chat backend. */
230
- dlpScanSummary?: AppsDynamiteBackendDlpScanSummary;
231
- /** Flag set by client on message resend to bypass WARN violation. */
232
- warnAcknowledged?: boolean;
233
- }
234
- interface AppsDynamiteDmId {
235
- /** Unique server assigned Id, per Direct Message Space. */
236
- dmId?: string;
237
- }
238
- interface AppsDynamiteDriveMetadata {
239
- aclFixRequest?: AppsDynamiteDriveMetadataAclFixRequest;
240
- aclFixStatus?: AppsDynamiteDriveMetadataAclFixStatus;
241
- /** Can the current user edit this resource */
242
- canEdit?: boolean;
243
- /** Can the current user share this resource */
244
- canShare?: boolean;
245
- /** Can the current user view this resource */
246
- canView?: boolean;
247
- /**
248
- * DriveAction for organizing this file in Drive. If the user does not have access to the Drive file, the value will be DriveAction.DRIVE_ACTION_UNSPECIFIED. This field is only set
249
- * when part of a FileResult in a ListFilesResponse.
250
- */
251
- driveAction?: string;
252
- driveState?: string;
253
- /** Output only. Trusted Resource URL for drive file embedding. */
254
- embedUrl?: TrustedResourceUrlProto;
255
- /** Indicates whether the Drive link contains an encrypted doc ID. If true, Dynamite should not attempt to query the doc ID in Drive Service. See go/docid-encryption for details. */
256
- encryptedDocId?: boolean;
257
- /** This is deprecated and unneeded. TODO (b/182479059): Remove this. */
258
- encryptedResourceKey?: string;
259
- /** External mimetype of the Drive Resource (Useful for creating Drive URL) See: http://b/35219462 */
260
- externalMimetype?: string;
261
- /** Drive resource ID of the artifact. */
262
- id?: string;
263
- /**
264
- * Deprecated. Whether the setting to restrict downloads is enabled for this file. This was previously used to determine whether to hide the download and print buttons in the UI, but
265
- * is no longer used by clients, because Projector now independently queries Drive to ensure that we have the most up-to-date value.
266
- */
267
- isDownloadRestricted?: boolean;
268
- /**
269
- * If the current user is the Drive file's owner. The field is currently only set for Annotations for the ListFiles action (as opposed to fetching Topics/Messages with Drive
270
- * annotations).
271
- */
272
- isOwner?: boolean;
273
- /** Only present if this DriveMetadata is converted from an UploadMetadata. */
274
- legacyUploadMetadata?: AppsDynamiteDriveMetadataLegacyUploadMetadata;
275
- /** Mimetype of the Drive Resource */
276
- mimetype?: string;
277
- /** The display name of the organization owning the Drive item. */
278
- organizationDisplayName?: string;
279
- /**
280
- * Shortcut ID of this drive file in the shared drive, which is associated with a named room this file was shared in. Shortcuts will not be created for DMs or unnamed rooms. This is
281
- * populated after the DriveMetadata is migrated to shared drive. go/chat-shared-drive-uploads.
282
- */
283
- shortcutAuthorizedItemId?: AuthorizedItemId;
284
- /** If this field is set to true, server should still contact external backends to get metadata for search but clients should not render this chip. */
285
- shouldNotRender?: boolean;
286
- /** Thumbnail image of the Drive Resource */
287
- thumbnailHeight?: number;
288
- /** Thumbnail image of the Drive Resource */
289
- thumbnailUrl?: string;
290
- /** Thumbnail image of the Drive Resource */
291
- thumbnailWidth?: number;
292
- /** Title of the Drive Resource */
293
- title?: string;
294
- /**
295
- * Url string fragment that generally indicates the specific location in the linked file. Example: #header=h.123abc456. If the fragment is not present this will not be present and
296
- * therefore default to an empty string. The "#" will not be included.
297
- */
298
- urlFragment?: string;
299
- /** This is considered SPII and should not be logged. */
300
- wrappedResourceKey?: WrappedResourceKey;
301
- }
302
- interface AppsDynamiteDriveMetadataAclFixRequest {
38
+ interface AclFixRequest {
303
39
  /**
304
40
  * For Spaces messages: This field is ignored. For DMs messages: The list of email addresses that should be added to the Drive item's ACL. In general, the list should not be empty when
305
41
  * the boolean "should_fix" field is set; otherwise, the list should be empty. During transition - when clients do not specify this field but the "should_fix" is true, we follow the
@@ -310,7 +46,7 @@ declare namespace gapi.client {
310
46
  /** Whether to attempt to fix the ACL by adding the room or DM members to the Drive file's ACL. */
311
47
  shouldFix?: boolean;
312
48
  }
313
- interface AppsDynamiteDriveMetadataAclFixStatus {
49
+ interface AclFixStatus {
314
50
  fixability?: string;
315
51
  /**
316
52
  * List of recipient email addresses for which access can be granted. This field contains the same email addresses from the GetMessagePreviewMetadata request if all recipients can be
@@ -323,406 +59,94 @@ declare namespace gapi.client {
323
59
  */
324
60
  outOfDomainWarningEmailAddress?: string[];
325
61
  }
326
- interface AppsDynamiteDriveMetadataLegacyUploadMetadata {
327
- /**
328
- * A unique ID generated from legacy UploadMetadata. This is used for interopping URLs after uploading blob to shared drive. Links in Classic might break without this.
329
- * go/drive-file-attachment-interop-from-dynamite.
330
- */
331
- legacyUniqueId?: string;
332
- /** The blob in this UploadMetadata has been uploaded to shared drive. This UploadMetadata is no longer attached to a message. go/shared-drive-data-migration. */
333
- uploadMetadata?: AppsDynamiteUploadMetadata;
334
- }
335
- interface AppsDynamiteFormatMetadata {
336
- /**
337
- * Font color is set if and only if format_type is FONT_COLOR. The components are stored as (alpha << 24) | (red << 16) | (green << 8) | blue. Clients should always set the alpha
338
- * component to 0xFF. NEXT TAG: 3
339
- */
340
- fontColor?: number;
341
- /** LINT.ThenChange(//depot/google3/apps/dynamite/v1/web/datakeys/annotated_span.proto) */
342
- formatType?: string;
343
- }
344
- interface AppsDynamiteFrontendBotInfo {
345
- /** Identifier of the application associated with the bot. */
346
- appId?: AppsDynamiteAppId;
347
- /** URL for the avatar picture of the User in dynamite. This field should be populated if the request is FetchBotCategories/ListBotCatalogEntries */
348
- botAvatarUrl?: string;
349
- /** Non-unique, user-defined display name of the Bot. This field should be populated if the request is FetchBotCategories/ListBotCatalogEntries. */
350
- botName?: string;
351
- /** Short description for the bot. */
352
- description?: string;
353
- /** Name of bot developer. */
354
- developerName?: string;
355
- /** URL for the banner image in GSuite Market Place. The banner will be 220x140. */
356
- marketPlaceBannerUrl?: string;
357
- /** Indicates whether bot is enabled/disabled. */
358
- status?: string;
359
- /**
360
- * The supported uses are limited according to the user that made the request. If the user does not have permission to use the bot, the list will be empty. This could occur for non
361
- * whitelisted bots in the catalog.
362
- */
363
- supportedUses?: string[];
364
- /**
365
- * Urls with additional information related to the bot. This field should always be set even if all the fields within it are empty, so that it is convenient for clients to work with
366
- * this field in javascript.
367
- */
368
- supportUrls?: AppsDynamiteFrontendBotInfoSupportUrls;
369
- whitelistStatus?: string;
370
- }
371
- interface AppsDynamiteFrontendBotInfoSupportUrls {
372
- /** Link to the admin configuration webpage for the bot. Configured by Pantheon, may be empty. */
373
- adminConfigUrl?: string;
374
- /** Link to the deletion policy webpage for the bot. Configured by Pantheon, may be empty. */
375
- deletionPolicyUrl?: string;
376
- /** Link to the privacy policy webpage for the bot. May be empty. */
377
- privacyPolicyUrl?: string;
378
- /** Link to the setup webpage for the bot. Configured by Pantheon, may be empty. */
379
- setupUrl?: string;
380
- /** Link to the support webpage for the developer of the bot. May be empty. */
381
- supportUrl?: string;
382
- /** Link to the terms of service webpage for the bot. May be empty. */
383
- tosUrl?: string;
384
- }
385
- interface AppsDynamiteFrontendMember {
386
- roster?: AppsDynamiteFrontendRoster;
387
- user?: AppsDynamiteFrontendUser;
388
- }
389
- interface AppsDynamiteFrontendRoster {
390
- avatarUrl?: string;
391
- id?: AppsDynamiteRosterId;
392
- membershipCount?: number;
393
- name?: string;
394
- /** Roster gaia key, usually an email address. Set in looking up rosters response. */
395
- rosterGaiaKey?: string;
396
- /** Roster deletion state - considered active unless set to deleted */
397
- rosterState?: string;
398
- }
399
- interface AppsDynamiteFrontendUser {
400
- /** URL for the avatar picture of the User in dynamite */
401
- avatarUrl?: string;
402
- /** Information about whether the user is blocked by requester and/or has blocked requester. */
403
- blockRelationship?: AppsDynamiteSharedUserBlockRelationship;
404
- /** Bot-specific profile information. Leave it empty for human users. */
405
- botInfo?: AppsDynamiteFrontendBotInfo;
406
- /** Deleted flag, if true, means User has been soft-deleted/purged Deprecated. Use user_account_state field instead. */
407
- deleted?: boolean;
408
- /** Email ID of the user */
409
- email?: string;
410
- /** First or given name of the user */
411
- firstName?: string;
412
- /** Gender of the user */
413
- gender?: string;
414
- /** UserId */
415
- id?: AppsDynamiteUserId;
416
- /** Set to true if none of the depending services (Gaia, PeopleApi) returns any info for this user. */
417
- isAnonymous?: boolean;
418
- /** Last or family name of the user */
419
- lastName?: string;
420
- /** Non-unique, user-defined display name of the User */
421
- name?: string;
422
- /** Information about whether the user is a consumer user, or the GSuite customer that they belong to. */
423
- organizationInfo?: AppsDynamiteSharedOrganizationInfo;
424
- /** Phone number(s) of the user */
425
- phoneNumber?: AppsDynamiteSharedPhoneNumber[];
426
- /** State of user's Gaia Account */
427
- userAccountState?: string;
428
- /** Visibility of user's Profile */
429
- userProfileVisibility?: string;
430
- }
431
- interface AppsDynamiteGroupId {
432
- /** Unique, immutable ID of the Direct Message Space */
433
- dmId?: AppsDynamiteDmId;
434
- /** Unique, immutable ID of the Space */
435
- spaceId?: AppsDynamiteSpaceId;
436
- }
437
- interface AppsDynamiteGroupRetentionSettingsUpdatedMetaData {
438
- /** The user who triggered the retention settings update */
439
- initiator?: AppsDynamiteUserId;
440
- /** The updated space retention settings */
441
- retentionSettings?: AppsDynamiteSharedRetentionSettings;
442
- }
443
- interface AppsDynamiteGsuiteIntegrationMetadata {
444
- activityFeedData?: AppsDynamiteSharedActivityFeedAnnotationData;
445
- assistantData?: AppsDynamiteSharedAssistantAnnotationData;
446
- calendarEventData?: AppsDynamiteSharedCalendarEventAnnotationData;
447
- /** Data used to render call artifacts. */
448
- callData?: AppsDynamiteSharedCallAnnotationData;
449
- clientType?: string;
450
- /**
451
- * A list of all strings that are to be indexed for this 1P chip. Each string in this list would be the contents of a single string field in the 1P chip. Eg. For Tasks[title = “hello
452
- * world”, description = “good bye”]. If we want to index only the title, this would be set to [“hello world”]. If both title and description, then this would be [“hello world”, “good
453
- * bye”]. Please make sure that the contents of this field is a subset of strings that are rendered as part of the 1P Chip.
454
- */
455
- indexableTexts?: string[];
456
- tasksData?: AppsDynamiteSharedTasksAnnotationData;
457
- }
458
- interface AppsDynamiteIncomingWebhookChangedMetadata {
459
- /** The webhook name at the time of the change. Used in Spanner storage, BE API responses and FE API responses. */
460
- incomingWebhookName?: string;
461
- /** The user id of the user whose action triggered this system message. Used in Spanner storage, BE API responses and FE API responses. */
462
- initiatorId?: AppsDynamiteUserId;
463
- /** Complete profile when ListTopicsRequest FetchOptions.USER is set. Otherwise, only the id will be filled in. Used in FE API responses. */
464
- initiatorProfile?: AppsDynamiteFrontendUser;
465
- /**
466
- * The webhook id of the incoming webhook in question. This field should not be used to load webhook information dynamically and is only present for debugging purposes. Used in Spanner
467
- * storage, BE API responses and FE API responses.
468
- */
469
- obfuscatedIncomingWebhookId?: string;
470
- /** Only populated for UPDATED_NAME and UPDATED_NAME_AND_AVATAR events, where the webhook name was changed. Used in Spanner storage, BE API responses and FE API responses. */
471
- oldIncomingWebhookName?: string;
472
- /** Used in Spanner storage, BE API responses and FE API responses. */
473
- type?: string;
474
- }
475
- interface AppsDynamiteIntegrationConfigMutation {
476
- /** Add an app using its identifier. */
477
- addApp?: AppsDynamiteAppId;
478
- /** Add a pinned tab using its identifier. */
479
- addPinnedItem?: AppsDynamitePinnedItemId;
480
- /** Remove an active app using its identifier. */
481
- removeApp?: AppsDynamiteAppId;
482
- /** Remove an active pinned tab using its identifier. */
483
- removePinnedItem?: AppsDynamitePinnedItemId;
484
- }
485
- interface AppsDynamiteIntegrationConfigUpdatedMetadata {
486
- /** The user whose action triggered this system message. */
487
- initiatorId?: AppsDynamiteUserId;
488
- /** A list of updates applied on the integration config. */
489
- mutations?: AppsDynamiteIntegrationConfigMutation[];
490
- }
491
- interface AppsDynamiteInviteeInfo {
492
- /** Email as typed by the user when invited to Room or DM. This value will be canonicalized and hashed before retained in storage. */
493
- email?: string;
494
- /** Unique, immutable ID of the User. */
495
- userId?: AppsDynamiteUserId;
496
- }
497
- interface AppsDynamiteMemberId {
498
- /** Unique, immutable ID of the Roster. */
499
- rosterId?: AppsDynamiteRosterId;
500
- /** Unique, immutable ID of the User. */
501
- userId?: AppsDynamiteUserId;
502
- }
503
- interface AppsDynamiteMembershipChangedMetadata {
504
- affectedMemberProfiles?: AppsDynamiteFrontendMember[];
505
- /** List of users and rosters whose membership status changed. */
506
- affectedMembers?: AppsDynamiteMemberId[];
507
- affectedMemberships?: AppsDynamiteMembershipChangedMetadataAffectedMembership[];
508
- /** The user whose action triggered this system message. */
509
- initiator?: AppsDynamiteUserId;
510
- /** Complete member profiles, when ListTopicsRequest FetchOptions.USER is set. Otherwise, only the id will be filled in. */
511
- initiatorProfile?: AppsDynamiteFrontendUser;
512
- type?: string;
513
- }
514
- interface AppsDynamiteMembershipChangedMetadataAffectedMembership {
515
- affectedMember?: AppsDynamiteMemberId;
516
- priorMembershipRole?: string;
517
- priorMembershipState?: string;
518
- targetMembershipRole?: string;
519
- }
520
- interface AppsDynamiteMessage {
521
- /** Annotations parsed and extracted from the text body. */
522
- annotations?: AppsDynamiteAnnotation[];
523
- /** Custom display profile info for apps. Leave the field empty for real users. */
524
- appProfile?: AppsDynamiteSharedAppProfile;
525
- /** Attachments parsed from incoming webhooks */
526
- attachments?: AppsDynamiteAttachment[];
527
- /** Lightweight message attributes which values are calculated and set in the servers. */
528
- attributes?: AppsDynamiteMessageAttributes;
529
- /** Responses from bots indicating if extra auth/config is needed. */
530
- botResponses?: AppsDynamiteBotResponse[];
531
- /**
532
- * Communal labels associated with a message. These exist on the message itself regardless of which user fetches them. Order of entries is arbitrary and will not list duplicates of the
533
- * same label_id. See go/chat-labels-design for details.
534
- */
535
- communalLabels?: AppsDynamiteBackendLabelsCommunalLabelTag[];
536
- contentReportSummary?: AppsDynamiteMessageContentReportSummary;
537
- /** Time when the Message was posted in microseconds. */
538
- createTime?: string;
539
- /** ID of the User who posted the Message. This includes information to identify if this was posted by an App on behalf of a user. */
540
- creatorId?: AppsDynamiteUserId;
541
- /** Indicates who can delete the message. This field is set on the read path (e.g. ListTopics) but doesn’t have any effect on the write path (e.g. CreateMessageRequest). */
542
- deletableBy?: string;
543
- /** Was this message deleted by Vault (Only used for Vault support) This is false if message is live or message was deleted by user. */
544
- deletedByVault?: boolean;
545
- /** Time when the Message was deleted in microseconds. This field is set to nonzero value only for Messages deleted globally. */
546
- deleteTime?: string;
547
- /** Time when the Message was per-user deleted by the message requester in microseconds. This field is set to nonzero value only for Message per-user deleted by the requester. */
548
- deleteTimeForRequester?: string;
549
- /**
550
- * Data Loss Prevention scan information for this message. Messages are evaluated in the backend on create message/topic and edit message actions. DEPRECATED: use dlp_scan_summary
551
- * instead.
552
- */
553
- dlpScanOutcome?: string;
554
- /** Data Loss Prevention scan information for this message. Messages are evaluated in the backend on create message/topic and edit message actions. */
555
- dlpScanSummary?: AppsDynamiteBackendDlpScanSummary;
556
- /** Indicates who can edit the message. This field is set on the read path (e.g. ListTopics) but doesn’t have any effect on the write path (e.g. CreateMessageRequest). */
557
- editableBy?: string;
558
- /** A plain-text description of the attachment, used when clients cannot display formatted attachment (e.g. mobile push notifications). */
559
- fallbackText?: string;
560
- /** ID of the resource. */
561
- id?: AppsDynamiteMessageId;
562
- /**
563
- * Output only. Indicates if the message is an inline reply. Set to true only if the message's ParentPath is non-NULL. Currently, only inline replies have non-NULL ParentPath. See
564
- * go/chat-be-inline-reply-indicator.
565
- */
566
- isInlineReply?: boolean;
567
- /** If the message was edited by a user, timestamp of the last edit, in microseconds. */
568
- lastEditTime?: string;
569
- /** Time when the Message text was last updated in microseconds. */
570
- lastUpdateTime?: string;
571
- /** A unique id specified on the client side. */
572
- localId?: string;
573
- /**
574
- * An optional payload (restricted to 1P applications) that will be stored with this message. This can only be set by the 1P API and should be used to deliver additional data such a 1P
575
- * sync version, 1P entity ID to the client for more advanced functionality [Eg. inform Group Tasks tab of new version while linking, fetch & render a live Task/Meet call tile].
576
- */
577
- messageIntegrationPayload?: AppsDynamiteSharedMessageIntegrationPayload;
578
- /** Where the message was posted from */
579
- messageOrigin?: string;
580
- /** State of the message, indicating whether the message is visible to all members in the group or is only visible to the sender only, or the private_message_viewer if it is set. */
581
- messageState?: string;
582
- /** Indicates if this message contains any suggestions that were provided by any Apps. */
583
- originAppSuggestions?: AppsDynamiteSharedOriginAppSuggestion[];
62
+ interface AclInfo {
63
+ /** Number of groups which have at least read access to the document. */
64
+ groupsCount?: number;
65
+ /** The scope to which the content was shared. */
66
+ scope?: string;
67
+ /** Number of users which have at least read access to the document. */
68
+ usersCount?: number;
69
+ }
70
+ interface ActionParameter {
71
+ key?: string;
72
+ value?: string;
73
+ }
74
+ interface AffectedMembership {
75
+ affectedMember?: MemberId;
76
+ priorMembershipRole?: string;
77
+ priorMembershipState?: string;
78
+ targetMembershipRole?: string;
79
+ }
80
+ // tslint:disable-next-line:no-empty-interface
81
+ interface AllAuthenticatedUsersProto {
82
+ }
83
+ interface Annotation {
84
+ babelPlaceholderMetadata?: BabelPlaceholderMetadata;
85
+ /** LINT.ThenChange(//depot/google3/java/com/google/apps/dynamite/v1/backend/action/common/SystemMessageHelper.java) */
86
+ cardCapabilityMetadata?: CardCapabilityMetadata;
87
+ /** Whether the annotation should be rendered as a chip. If this is missing or unspecified, fallback to should_not_render on the metadata. */
88
+ chipRenderType?: string;
89
+ consentedAppUnfurlMetadata?: ConsentedAppUnfurlMetadata;
90
+ customEmojiMetadata?: CustomEmojiMetadata;
91
+ dataLossPreventionMetadata?: DataLossPreventionMetadata;
92
+ /** Chip annotations */
93
+ driveMetadata?: DriveMetadata;
94
+ formatMetadata?: FormatMetadata;
95
+ groupRetentionSettingsUpdated?: GroupRetentionSettingsUpdatedMetaData;
584
96
  /**
585
- * Personal labels associated with a message for the viewing user. Order of entries is arbitrary and will not list duplicates of the same label_id. See go/chat-labels-design for
586
- * details. NOTE: This will be unpopulated in the case of SpaceChangelog events.
97
+ * Metadata for 1P integrations like tasks, calendar. These are supported only through integration server as 1P integrations use the integration API (which in turn uses backend API
98
+ * with special permissions) to post messages. Clients should never set this. LINT.IfChange
587
99
  */
588
- personalLabels?: AppsDynamiteBackendLabelsPersonalLabelTag[];
100
+ gsuiteIntegrationMetadata?: GsuiteIntegrationMetadata;
101
+ incomingWebhookChangedMetadata?: IncomingWebhookChangedMetadata;
102
+ /** LINT.ThenChange(//depot/google3/java/com/google/apps/dynamite/v1/backend/action/common/SystemMessageHelper.java) */
103
+ integrationConfigUpdated?: IntegrationConfigUpdatedMetadata;
104
+ /** Length of the text_body substring beginning from start_index the Annotation corresponds to. */
105
+ length?: number;
589
106
  /**
590
- * A list of per-user private information. This is deprecated, because we no longer plan to support partially private messages or private messages for multiple users. The message_state
591
- * and private_message_viewer fields should be sufficient for this infrastructure.
107
+ * A unique client-assigned ID for this annotation. This is helpful in matching the back-filled annotations to the original annotations on client side, without having to re-parse the
108
+ * message.
592
109
  */
593
- privateMessageInfos?: AppsDynamitePrivateMessageInfo[];
110
+ localId?: string;
111
+ /** Metadata for system messages. Clients should never set this. LINT.IfChange */
112
+ membershipChanged?: MembershipChangedMetadata;
113
+ readReceiptsSettingsMetadata?: ReadReceiptsSettingsUpdatedMetadata;
594
114
  /**
595
- * Should only be set if the Message State is PRIVATE. If set, the message content is only visible to this user (and any apps associated with the message), as well as the message
596
- * creator. If unset, a private message is visible to the message creator only.
115
+ * Metadata that defines all of the required features that must be rendered in the message. Clients can use this to see whether they support the entire message, or show a fallback chip
116
+ * otherwise. See go/message-quoting-client-to-server for details. LINT.ThenChange( //depot/google3/java/com/google/apps/dynamite/v1/allshared/parser/AnnotationSanitizer.java,
117
+ * //depot/google3/java/com/google/apps/dynamite/v1/backend/action/common/SystemMessageHelper.java, //depot/google3/java/com/google/caribou/eli/mediation/chat/AnnotationTranslator.java
118
+ * )
597
119
  */
598
- privateMessageViewer?: AppsDynamiteUserId;
599
- /** Contains additional (currently Hangouts Classic only) properties applicable to this message. */
600
- props?: AppsDynamiteMessageProps;
601
- /** Output only. Whether this message has been quoted by another message or not. Used by clients to handle message edit flows for messages that have been quoted. */
602
- quotedByState?: string;
603
- /** Output only. Metadata for a message that is quoted by this message. */
604
- quotedMessageMetadata?: AppsDynamiteQuotedMessageMetadata;
605
- /** A list of user reactions to this message. Ordered by the timestamp of the first reaction, ascending (oldest to newest). */
606
- reactions?: AppsDynamiteSharedReaction[];
607
- /** Output only. Details of content reports. Set only when the request asks for it. */
608
- reports?: AppsDynamiteContentReport[];
609
- /** The retention settings of the message. */
610
- retentionSettings?: AppsDynamiteSharedRetentionSettings;
611
- /** A client-specified string that can be used to uniquely identify a message in a space, in lieu of `id.message_id`. */
612
- secondaryMessageKey?: string;
613
- /** Plaintext body of the Message. */
614
- textBody?: string;
615
- /** Information for the stoning of a Message. */
616
- tombstoneMetadata?: AppsDynamiteTombstoneMetadata;
617
- /** ID of the User who last updated (created/edited/deleted) the Message. This includes information to identify if this was updated by an App on behalf of a user. */
618
- updaterId?: AppsDynamiteUserId;
120
+ requiredMessageFeaturesMetadata?: RequiredMessageFeaturesMetadata;
121
+ roomUpdated?: RoomUpdatedMetadata;
619
122
  /**
620
- * UploadMetadata b/36864213 is an ongoing effort to move UploadMetadata out of annotations field and save it to upload_metadata field only. After the migration, UploadMetadata will
621
- * only be saved in this field.
123
+ * Whether or not the annotation is invalidated by the server. Example of situations for invalidation include: when the URL is malformed, or when Drive item ID is rejected by Drive
124
+ * Service.
622
125
  */
623
- uploadMetadata?: AppsDynamiteUploadMetadata[];
624
- }
625
- interface AppsDynamiteMessageAttributes {
626
- /** If true: message is a tombstone in the client. Default false. */
627
- isTombstone?: boolean;
628
- }
629
- interface AppsDynamiteMessageContentReportSummary {
630
- /** Total number of reports attached to this (revision of) message. */
631
- numberReports?: number;
632
- /** Totoal number of reports attached to all revisions of this message (i.e. since creation). Set only when the request asks for it. */
633
- numberReportsAllRevisions?: number;
634
- }
635
- interface AppsDynamiteMessageId {
636
- /** 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. */
637
- messageId?: string;
638
- /** ID of the Message's immediate parent. */
639
- parentId?: AppsDynamiteMessageParentId;
640
- }
641
- interface AppsDynamiteMessageInfo {
642
- /** The content of a matching message. */
643
- message?: AppsDynamiteMessage;
644
- /** Searcher's membership state in the space where the message is posted. */
645
- searcherMembershipState?: string;
646
- }
647
- interface AppsDynamiteMessageParentId {
648
- /** ID of the Topic this Message is posted to. NEXT TAG : 5 */
649
- topicId?: AppsDynamiteTopicId;
650
- }
651
- interface AppsDynamiteMessageProps {
652
- babelProps?: AppsDynamiteBabelMessageProps;
653
- }
654
- interface AppsDynamitePinnedItemId {
655
- /** Identifier for a Drive file (e.g. Docs, Sheets, Slides). */
656
- driveId?: string;
657
- }
658
- interface AppsDynamitePrivateMessageInfo {
659
- /** Annotations private to {@code userId}. */
660
- annotations?: AppsDynamiteAnnotation[];
661
- /** Attachments private to {@code userId}. */
662
- attachments?: AppsDynamiteAttachment[];
663
- contextualAddOnMarkup?: GoogleChatV1ContextualAddOnMarkup[];
664
- gsuiteIntegrationMetadata?: AppsDynamiteGsuiteIntegrationMetadata[];
665
- /** Text private to {@code user_id}. Initial restriction: Only one of public text or private text is rendered on the client. So if public text is set, private text is ignored. */
666
- text?: string;
667
- /** Required. The elements in this struct are visible to this user. */
668
- userId?: AppsDynamiteUserId;
126
+ serverInvalidated?: boolean;
127
+ slashCommandMetadata?: SlashCommandMetadata;
128
+ /** Start index (0-indexed) of the Message text the Annotation corresponds to, inclusive. */
129
+ startIndex?: number;
130
+ /** Type of the Annotation. */
131
+ type?: string;
132
+ /** A unique server-assigned ID for this annotation. This is helpful in matching annotation objects when fetched from service. */
133
+ uniqueId?: string;
134
+ uploadMetadata?: UploadMetadata;
135
+ urlMetadata?: UrlMetadata;
136
+ /** Metadata that clients can set for annotations. LINT.IfChange In-text annotations */
137
+ userMentionMetadata?: UserMentionMetadata;
138
+ videoCallMetadata?: VideoCallMetadata;
139
+ youtubeMetadata?: YoutubeMetadata;
669
140
  }
670
- interface AppsDynamiteQuotedMessageMetadata {
671
- /** Output only. Snapshot of the annotations of the quoted message. */
672
- annotations?: AppsDynamiteAnnotation[];
673
- /** Output only. Custom display profile info for apps. Will be empty for real users. */
674
- appProfile?: AppsDynamiteSharedAppProfile;
675
- /** Output only. The bot attachment state of the quoted message. Used by clients to display a bot attachment indicator in the UI. */
676
- botAttachmentState?: string;
677
- /** Output only. ID of the User who posted the quoted message. This includes information to identify if the quoted message was posted by an App on behalf of a user. */
678
- creatorId?: AppsDynamiteUserId;
141
+ interface AppId {
142
+ /** Enum indicating the type of App this is. */
143
+ appType?: string;
679
144
  /**
680
- * The `last_update_time` of the original message when the client initiated the quote creation. This is derived from the request payload passed from clients. Used to fetch the quoted
681
- * message contents at a specific time on the read path. This field is populated from storage directly.
145
+ * Enum indicating which 1P App this is when app_type is GSUITE_APP. Determined & set by the 1P API as a convenience for all users of this identifier(Eg. clients, chime, backend etc.)
146
+ * to map to 1P properties.
682
147
  */
683
- lastUpdateTimeWhenQuotedMicros?: string;
684
- /** MessageId of the original message that is being quoted. This is derived from the request payload passed from clients. This field is populated from storage directly. */
685
- messageId?: AppsDynamiteMessageId;
686
- /** Output only. The state of the quoted message. Used by clients to display tombstones for quotes that reference a deleted message. */
687
- messageState?: string;
688
- /** Output only. The retention (OTR) settings of the quoted message. */
689
- retentionSettings?: AppsDynamiteSharedRetentionSettings;
690
- /** Output only. Snapshot of the text body of the quoted message. */
691
- textBody?: string;
692
- /** Output only. Upload metadata of the quoted message. NEXT TAG: 11 */
693
- uploadMetadata?: AppsDynamiteUploadMetadata[];
694
- }
695
- interface AppsDynamiteReadReceiptsSettingsUpdatedMetadata {
696
- /** The new read receipts state. */
697
- readReceiptsEnabled?: boolean;
698
- }
699
- interface AppsDynamiteRequiredMessageFeaturesMetadata {
700
- requiredFeatures?: string[];
701
- }
702
- interface AppsDynamiteRoomUpdatedMetadata {
703
- groupDetailsMetadata?: AppsDynamiteRoomUpdatedMetadataGroupDetailsUpdatedMetadata;
704
- groupLinkSharingEnabled?: boolean;
705
- /** The user who initiated this room update. Complete member profiles, when ListTopicsRequest FetchOptions.USER is set. Otherwise, only the id will be filled in. */
706
- initiator?: AppsDynamiteFrontendUser;
707
- /** The type of the user who initiated this room update. */
708
- initiatorType?: string;
709
- /** What was updated in the room. */
710
- name?: string;
711
- renameMetadata?: AppsDynamiteRoomUpdatedMetadataRoomRenameMetadata;
712
- /** DEPRECATED: See GroupVisibility proto definition. */
713
- visibility?: AppsDynamiteSharedGroupVisibility;
714
- }
715
- interface AppsDynamiteRoomUpdatedMetadataGroupDetailsUpdatedMetadata {
716
- newGroupDetails?: AppsDynamiteSharedGroupDetails;
717
- prevGroupDetails?: AppsDynamiteSharedGroupDetails;
718
- }
719
- interface AppsDynamiteRoomUpdatedMetadataRoomRenameMetadata {
720
- newName?: string;
721
- /** NEXT_TAG: 3 */
722
- prevName?: string;
723
- }
724
- interface AppsDynamiteRosterId {
725
- /** Opaque, server-assigned ID of the Roster. */
148
+ gsuiteAppType?: string;
149
+ /** Numeric identifier of the App. Set to Project number for 1/3P Apps. For Webhook, this is WebhookId. Determined & set by the 1P API from App credentials on the side channel. */
726
150
  id?: string;
727
151
  }
728
152
  interface AppsDynamiteSharedAction {
@@ -758,7 +182,7 @@ declare namespace gapi.client {
758
182
  /** The number of updaters for clients to show, currently set to the total number of updaters minus the one set in updater_to_show. */
759
183
  updaterCountToShow?: number;
760
184
  /** The updater for clients to show. */
761
- updaterToShow?: AppsDynamiteUserId;
185
+ updaterToShow?: UserId;
762
186
  }
763
187
  interface AppsDynamiteSharedAppProfile {
764
188
  /** Displayed user avatar emoji. */
@@ -830,9 +254,9 @@ declare namespace gapi.client {
830
254
  /** The results of the Data Loss Prevention (DLP) scan of the attachment. DEPRECATED: use dlp_scan_summary instead. */
831
255
  dlpScanOutcome?: string;
832
256
  /** Summary of a Data Loss Prevention (DLP) scan of the attachment. Attachments are evaluated in the backend when they are uploaded. */
833
- dlpScanSummary?: AppsDynamiteBackendDlpScanSummary;
257
+ dlpScanSummary?: DlpScanSummary;
834
258
  /** GroupId to which this attachment is uploaded. */
835
- groupId?: AppsDynamiteGroupId;
259
+ groupId?: GroupId;
836
260
  /** Original dimension of the content. Only set for image attachments. */
837
261
  originalDimension?: AppsDynamiteSharedDimension;
838
262
  /**
@@ -840,7 +264,7 @@ declare namespace gapi.client {
840
264
  * message id in the blob_path, but in the case of a quote reply, the blob_path would contain the quoted message id. Thus this message id field is needed to fetch the quote reply
841
265
  * message instead. This field is conditionally populated at read time for quotes and never persisted in storage. See go/message-quoting-attachments for more context.
842
266
  */
843
- quoteReplyMessageId?: AppsDynamiteMessageId;
267
+ quoteReplyMessageId?: MessageId;
844
268
  /** The SHA256 hash of the attachment bytes. */
845
269
  sha256?: string;
846
270
  /** User IP address at upload time. Ex. "123.1.2.3". Used by Ares abuse scanning. */
@@ -957,7 +381,7 @@ declare namespace gapi.client {
957
381
  /** Identify the button/action that created the suggestion. A simple example would be a card button within the stream, or the id which can identify a specific suggestion. */
958
382
  actionId?: string;
959
383
  /** The message_id for the message that was posted by the app/bot. */
960
- suggestionMessageId?: AppsDynamiteMessageId;
384
+ suggestionMessageId?: MessageId;
961
385
  }
962
386
  interface AppsDynamiteSharedCardSection {
963
387
  /** Indicates whether this section is collapsible. If a section is collapsible, the description must be given. */
@@ -1054,13 +478,13 @@ declare namespace gapi.client {
1054
478
  /** Time when the Emoji was created, in microseconds. This field may be present in Spanner, within the server, or in public APIs. */
1055
479
  createTimeMicros?: string;
1056
480
  /** This field should *never* be persisted to Spanner. */
1057
- creatorUserId?: AppsDynamiteUserId;
481
+ creatorUserId?: UserId;
1058
482
  /** Time when the emoji was deleted, in microseconds. This field may be present in Spanner, within the server, or in public APIs. Only present if the emoji has been deleted. */
1059
483
  deleteTimeMicros?: string;
1060
484
  /** Output only. A short-lived URL clients can use for directly accessing a custom emoji image. This field is intended for API consumption, and should *never* be persisted to Spanner. */
1061
485
  ephemeralUrl?: string;
1062
486
  /** This field should *never* be persisted to Spanner. */
1063
- ownerCustomerId?: AppsDynamiteCustomerId;
487
+ ownerCustomerId?: CustomerId;
1064
488
  /**
1065
489
  * Opaque token that clients use to construct the URL for accessing the custom emoji’s image data. This field is intended for API consumption, and should *never* be persisted to
1066
490
  * Spanner.
@@ -1257,7 +681,7 @@ declare namespace gapi.client {
1257
681
  /** Whether the person is the recipient of the suggestions. */
1258
682
  isRecipient?: boolean;
1259
683
  /** Obfuscated user ID. */
1260
- user?: AppsDynamiteUserId;
684
+ user?: UserId;
1261
685
  }
1262
686
  interface AppsDynamiteSharedMeetMetadata {
1263
687
  /** Required. A globally unique code (e.g. "cxv-zbgj-wzw") that points to a meeting space. Note: Meeting codes may be regenerated, which will cause old meeting codes to become invalid. */
@@ -1267,7 +691,7 @@ declare namespace gapi.client {
1267
691
  }
1268
692
  interface AppsDynamiteSharedMessageInfo {
1269
693
  /** Id of the source chat message. This is kept here because the top-level message ID to refers the AF message ID. */
1270
- messageId?: AppsDynamiteMessageId;
694
+ messageId?: MessageId;
1271
695
  /**
1272
696
  * Timestamp of when the topic containing the message has been read by the user. This is populated if the message references an inline reply, in which case the space may be marked as
1273
697
  * read but the topic still has unread messages.
@@ -1335,10 +759,10 @@ declare namespace gapi.client {
1335
759
  interface AppsDynamiteSharedOrganizationInfoConsumerInfo {
1336
760
  }
1337
761
  interface AppsDynamiteSharedOrganizationInfoCustomerInfo {
1338
- customerId?: AppsDynamiteCustomerId;
762
+ customerId?: CustomerId;
1339
763
  }
1340
764
  interface AppsDynamiteSharedOriginAppSuggestion {
1341
- appId?: AppsDynamiteAppId;
765
+ appId?: AppId;
1342
766
  cardClickSuggestion?: AppsDynamiteSharedCardClickSuggestion;
1343
767
  }
1344
768
  interface AppsDynamiteSharedPhoneNumber {
@@ -1384,7 +808,7 @@ declare namespace gapi.client {
1384
808
  avatarInfo?: AppsDynamiteSharedAvatarInfo;
1385
809
  avatarUrl?: string;
1386
810
  description?: string;
1387
- groupId?: AppsDynamiteGroupId;
811
+ groupId?: GroupId;
1388
812
  /**
1389
813
  * The email address of the user that invited the calling user to the room, if available. This field will only be populated for direct invites, it will be empty if the user was
1390
814
  * indirectly invited to the group.
@@ -1417,7 +841,7 @@ declare namespace gapi.client {
1417
841
  }
1418
842
  interface AppsDynamiteSharedTasksAnnotationDataAssigneeChange {
1419
843
  /** Obfuscated user ID of previous assignee. Not set if the task was originally not assigned. */
1420
- oldAssignee?: AppsDynamiteUserId;
844
+ oldAssignee?: UserId;
1421
845
  }
1422
846
  // tslint:disable-next-line:no-empty-interface
1423
847
  interface AppsDynamiteSharedTasksAnnotationDataCompletionChange {
@@ -1430,7 +854,7 @@ declare namespace gapi.client {
1430
854
  }
1431
855
  interface AppsDynamiteSharedTasksAnnotationDataTaskProperties {
1432
856
  /** Obfuscated user ID of new assignee. Not set if the task doesn't have an assignee. */
1433
- assignee?: AppsDynamiteUserId;
857
+ assignee?: UserId;
1434
858
  /** Whether the task is marked as completed. */
1435
859
  completed?: boolean;
1436
860
  /** Whether the task is marked as deleted. */
@@ -1476,205 +900,69 @@ declare namespace gapi.client {
1476
900
  text?: string;
1477
901
  }
1478
902
  interface AppsDynamiteSharedUserBlockRelationship {
1479
- hasBlockedRequester?: boolean;
1480
- isBlockedByRequester?: boolean;
1481
- }
1482
- interface AppsDynamiteSharedVideoReference {
1483
- /** Available transcode format. Value is defined in video/storage/proto/content_header.proto */
1484
- format?: number[];
1485
- /** Transcode status */
1486
- status?: string;
1487
- }
1488
- interface AppsDynamiteSharedWidget {
1489
- /**
1490
- * A list of buttons. For example, the following JSON creates two buttons. The first is a filled text button and the second is an image button that opens a link: ``` "buttonList": {
1491
- * "buttons": [ "button": { "text": "Edit", "Color": { "Red": 255 "Green": 255 "Blue": 255 } "disabled": true }, "button": { "icon": { "knownIcon": "INVITE" "altText": "check calendar"
1492
- * }, "onClick": { "openLink": { "url": "https://example.com/calendar" } } }, ] } ```
1493
- */
1494
- buttonList?: AppsDynamiteSharedButtonList;
1495
- /**
1496
- * Displays a single row of columns with widgets stacked vertically in each column. For example, the following JSON creates a 2 column widget each containing a single item. ```
1497
- * "columns": { "wrapStyle": "WRAP", "columnItems": [ { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment" : "CENTER", "widgets": [ {
1498
- * "textParagraph": { "text": "First column text paragraph", } } ] }, { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment" : "CENTER",
1499
- * "widgets": [ { "textParagraph": { "text": "Second column text paragraph", } } ] }, ] } } ```
1500
- */
1501
- columns?: AppsDynamiteSharedColumns;
1502
- /**
1503
- * Displays a selection/input widget for date/time. For example, the following JSON creates a date/time picker for an appointment time: ``` "date_time_picker": { "name":
1504
- * "appointment_time", "label": "Book your appointment at:", "type": "DateTimePickerType.DATE_AND_TIME", "valueMsEpoch": "796435200000" } ```
1505
- */
1506
- dateTimePicker?: AppsDynamiteSharedDateTimePicker;
1507
- /**
1508
- * Displays a decorated text item in this widget. For example, the following JSON creates a decorated text widget showing email address: ``` "decoratedText": { "icon": { "knownIcon":
1509
- * "EMAIL" }, "topLabel": "Email Address", "content": "heba.salam@example.com", "bottomLabel": "This is a new Email address!", "switchWidget": { "name":
1510
- * "has_send_welcome_email_to_heba_salam", "selected": false, "controlType": "ControlType.CHECKBOX" } } ```
1511
- */
1512
- decoratedText?: AppsDynamiteSharedDecoratedText;
1513
- /** Displays a divider. For example, the following JSON creates a divider: ``` "divider": { } ``` */
1514
- divider?: any;
1515
- /**
1516
- * Displays a grid with a collection of items. For example, the following JSON creates a 2 column grid with a single item: ``` "grid": { "title": "A fine collection of items",
1517
- * "numColumns": 2, "borderStyle": { "type": "STROKE", "cornerRadius": 4.0 }, "items": [ "image": { "imageUri": "https://www.example.com/image.png", "cropStyle": { "type": "SQUARE" },
1518
- * "borderStyle": { "type": "STROKE" } }, "title": "An item", "textAlignment": "CENTER" ], "onClick": { "openLink": { "url":"https://www.example.com" } } } ```
1519
- */
1520
- grid?: AppsDynamiteSharedGrid;
1521
- /** The horizontal alignment of this widget. */
1522
- horizontalAlignment?: string;
1523
- /**
1524
- * Displays an image in this widget. For example, the following JSON creates an image with alternative text: ``` "image": { "imageUrl": "https://example.com/heba_salam.png" "altText":
1525
- * "Avatar for Heba Salam" } ```
1526
- */
1527
- image?: AppsDynamiteSharedImage;
1528
- /**
1529
- * Displays a switch control in this widget. For example, the following JSON creates a dropdown selection for size: ``` "switchControl": { "name": "size", "label": "Size" "type":
1530
- * "SelectionType.DROPDOWN", "items": [ { "text": "S", "value": "small", "selected": false }, { "text": "M", "value": "medium", "selected": true }, { "text": "L", "value": "large",
1531
- * "selected": false }, { "text": "XL", "value": "extra_large", "selected": false } ] } ```
1532
- */
1533
- selectionInput?: AppsDynamiteSharedSelectionInput;
1534
- /**
1535
- * Displays a text input in this widget. For example, the following JSON creates a text input for mail address: ``` "textInput": { "name": "mailing_address", "label": "Mailing Address"
1536
- * } ``` As another example, the following JSON creates a text input for programming language with static suggestions: ``` "textInput": { "name": "preferred_programing_language",
1537
- * "label": "Preferred Language", "initialSuggestions": { "items": [ { "text": "C++" }, { "text": "Java" }, { "text": "JavaScript" }, { "text": "Python" } ] } } ```
1538
- */
1539
- textInput?: AppsDynamiteSharedTextInput;
1540
- /** Displays a text paragraph in this widget. For example, the following JSON creates a bolded text: ``` "textParagraph": { "text": " *bold text*" } ``` */
1541
- textParagraph?: AppsDynamiteSharedTextParagraph;
1542
- }
1543
- interface AppsDynamiteSlashCommandMetadata {
1544
- /** Hint string for the arguments expected by the slash command. */
1545
- argumentsHint?: string;
1546
- /** Unique id for the slash command. */
1547
- commandId?: string;
1548
- /** Name of the slash command. */
1549
- commandName?: string;
1550
- /** ID of the bot which owns the slash command. */
1551
- id?: AppsDynamiteUserId;
1552
- /** Whether or not this slash command should trigger a dialog. */
1553
- triggersDialog?: boolean;
1554
- type?: string;
1555
- }
1556
- interface AppsDynamiteSpaceId {
1557
- /** Unique, immutable ID of the Space */
1558
- spaceId?: string;
1559
- }
1560
- interface AppsDynamiteTombstoneMetadata {
1561
- /** Indicates the type of Tombstone. */
1562
- tombstoneType?: string;
1563
- }
1564
- interface AppsDynamiteTopicId {
1565
- /** The Space or DM that the topic belongs to. */
1566
- groupId?: AppsDynamiteGroupId;
1567
- /**
1568
- * Opaque, server-assigned ID of the Topic. While this ID is guaranteed to be unique within the Space, it's not guaranteed to be globally unique. Internal usage: this field can be
1569
- * empty in the following cases: 1. To create the first message in a topic. 2. To list last N messages of a Space (regardless of topic).
1570
- */
1571
- topicId?: string;
1572
- }
1573
- interface AppsDynamiteUploadMetadata {
1574
- /** Opaque token. Clients shall simply pass it back to the Backend. This field will NOT be saved into storage. */
1575
- attachmentToken?: string;
1576
- /** Information about the uploaded attachment that is only used in Backend. This field will NOT be sent out of Google. */
1577
- backendUploadMetadata?: AppsDynamiteSharedBackendUploadMetadata;
1578
- /**
1579
- * The "new" secure identifier for Drive files. Should be used instead of the deprecated string drive_id field above. This should only be set if the upload file has been added to
1580
- * Drive. Note that older Drive files that do not have a ResourceKey should still use this field, with the resource_key field unset.
1581
- */
1582
- clonedAuthorizedItemId?: AuthorizedItemId;
1583
- /**
1584
- * DriveAction for organizing the cloned version of this upload in Drive, if the file has been added to Drive. This field is not set if the file has not been added to Drive.
1585
- * Additionally, this field is only set when part of a FileResult in a ListFilesResponse.
1586
- */
1587
- clonedDriveAction?: string;
1588
- /** Reference to a Drive ID, if this upload file has been previously cloned to Drive. Note: this is deprecated in favor of the AuthorizedItemId below. */
1589
- clonedDriveId?: string;
1590
- /** The original file name for the content, not the full path. */
1591
- contentName?: string;
1592
- /** Type is from Scotty's best_guess by default: http://google3/uploader/agent/scotty_agent.proto?l=51&rcl=140889785 */
1593
- contentType?: string;
1594
- /** The metrics metadata of the Data Loss Prevention attachment scan. */
1595
- dlpMetricsMetadata?: AppsDynamiteSharedDlpMetricsMetadata;
1596
- /** A copy of the LocalId in Annotation. This field is supposed to be filled by server only. */
1597
- localId?: string;
1598
- /** Original dimension of the content. Only set for image attachments. */
1599
- originalDimension?: AppsDynamiteSharedDimension;
1600
- /** Reference to a transcoded video attachment. Only set for video attachments. */
1601
- videoReference?: AppsDynamiteSharedVideoReference;
1602
- /** Result for a virus scan. It's duplicated in the above field apps.dynamite.shared.BackendUploadMetadata */
1603
- virusScanResult?: string;
903
+ hasBlockedRequester?: boolean;
904
+ isBlockedByRequester?: boolean;
1604
905
  }
1605
- interface AppsDynamiteUrlMetadata {
1606
- /** Domain for this url. If it's an IP address the address is returned. */
1607
- domain?: string;
1608
- /** The signed GWS URL. */
1609
- gwsUrl?: SafeUrlProto;
1610
- /** The expiration timestamp for GWS URL, only set when gws_url is set. */
1611
- gwsUrlExpirationTimestamp?: string;
1612
- /** Dimensions of the image: height. This field is string to match with page render service response. Deprecated. Use int_image_height instead. */
1613
- imageHeight?: string;
1614
- /** Representative image of the website. */
1615
- imageUrl?: string;
1616
- /** Dimensions of the image: width. This field is string to match with page render service response. Deprecated. Use int_image_height instead. */
1617
- imageWidth?: string;
1618
- /** Dimensions of the image: height. */
1619
- intImageHeight?: number;
1620
- /** Dimensions of the image: width. */
1621
- intImageWidth?: number;
906
+ interface AppsDynamiteSharedVideoReference {
907
+ /** Available transcode format. Value is defined in video/storage/proto/content_header.proto */
908
+ format?: number[];
909
+ /** Transcode status */
910
+ status?: string;
911
+ }
912
+ interface AppsDynamiteSharedWidget {
1622
913
  /**
1623
- * Mime type of the content (Currently mapped from Page Render Service ItemType) Note that this is not necessarily the mime type of the http resource. For example a text/html from
1624
- * youtube or vimeo may actually be classified as a video type. Then we shall mark it as video/* since we don't know exactly what type of video it is. NEXT TAG : 16
914
+ * A list of buttons. For example, the following JSON creates two buttons. The first is a filled text button and the second is an image button that opens a link: ``` "buttonList": {
915
+ * "buttons": [ "button": { "text": "Edit", "Color": { "Red": 255 "Green": 255 "Blue": 255 } "disabled": true }, "button": { "icon": { "knownIcon": "INVITE" "altText": "check calendar"
916
+ * }, "onClick": { "openLink": { "url": "https://example.com/calendar" } } }, ] } ```
1625
917
  */
1626
- mimeType?: string;
1627
- /** The stable redirect URL pointing to frontend server. */
1628
- redirectUrl?: SafeUrlProto;
1629
- /** If the UrlMetadata is missing data for rendering a chip. Deprecated. Use Annotation.ChipRenderType instead. */
1630
- shouldNotRender?: boolean;
1631
- /** Snippet/small description of the weblink. */
1632
- snippet?: string;
1633
- /** Title of the Weblink. */
1634
- title?: string;
1635
- /** The original URL. */
1636
- url?: SafeUrlProto;
1637
- }
1638
- interface AppsDynamiteUserId {
918
+ buttonList?: AppsDynamiteSharedButtonList;
1639
919
  /**
1640
- * Optional. Opaque, server-assigned ID of the user profile associated with App/user acting on behalf of the human user. This is currently only set when a 3P application is acting on
1641
- * the user's behalf.
920
+ * Displays a single row of columns with widgets stacked vertically in each column. For example, the following JSON creates a 2 column widget each containing a single item. ```
921
+ * "columns": { "wrapStyle": "WRAP", "columnItems": [ { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment" : "CENTER", "widgets": [ {
922
+ * "textParagraph": { "text": "First column text paragraph", } } ] }, { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment" : "CENTER",
923
+ * "widgets": [ { "textParagraph": { "text": "Second column text paragraph", } } ] }, ] } } ```
1642
924
  */
1643
- actingUserId?: string;
1644
- /** Opaque, server-assigned ID of the User. */
1645
- id?: string;
925
+ columns?: AppsDynamiteSharedColumns;
1646
926
  /**
1647
- * Optional. Identifier of the App involved (directly or on behalf of a human creator) in creating this message. This is not set if the user posted a message directly, but is used in
1648
- * the case of, for example, a message being generated by a 1P integration based on a user action (creating an event, creating a task etc). This should only be used on the BE. For
1649
- * clients, please use the field in the FE message proto instead (google3/apps/dynamite/v1/frontend/api/message.proto?q=origin_app_id).
927
+ * Displays a selection/input widget for date/time. For example, the following JSON creates a date/time picker for an appointment time: ``` "date_time_picker": { "name":
928
+ * "appointment_time", "label": "Book your appointment at:", "type": "DateTimePickerType.DATE_AND_TIME", "valueMsEpoch": "796435200000" } ```
1650
929
  */
1651
- originAppId?: AppsDynamiteAppId;
930
+ dateTimePicker?: AppsDynamiteSharedDateTimePicker;
1652
931
  /**
1653
- * Clients do not need to send UserType to Backend, but Backend will always send this field to clients per the following rule: 1. For HUMAN Ids, the field is empty but by default
1654
- * .getType() will return HUMAN. 2. For BOT Ids, the field is ALWAYS set to BOT.
932
+ * Displays a decorated text item in this widget. For example, the following JSON creates a decorated text widget showing email address: ``` "decoratedText": { "icon": { "knownIcon":
933
+ * "EMAIL" }, "topLabel": "Email Address", "content": "heba.salam@example.com", "bottomLabel": "This is a new Email address!", "switchWidget": { "name":
934
+ * "has_send_welcome_email_to_heba_salam", "selected": false, "controlType": "ControlType.CHECKBOX" } } ```
1655
935
  */
1656
- type?: string;
1657
- }
1658
- interface AppsDynamiteUserMentionMetadata {
936
+ decoratedText?: AppsDynamiteSharedDecoratedText;
937
+ /** Displays a divider. For example, the following JSON creates a divider: ``` "divider": { } ``` */
938
+ divider?: any;
1659
939
  /**
1660
- * Display name of the mentioned user. This field should remain empty when clients resolve a UserMention annotation. It will be filled in when a UserMention is generated by the
1661
- * Integration Server.
940
+ * Displays a grid with a collection of items. For example, the following JSON creates a 2 column grid with a single item: ``` "grid": { "title": "A fine collection of items",
941
+ * "numColumns": 2, "borderStyle": { "type": "STROKE", "cornerRadius": 4.0 }, "items": [ "image": { "imageUri": "https://www.example.com/image.png", "cropStyle": { "type": "SQUARE" },
942
+ * "borderStyle": { "type": "STROKE" } }, "title": "An item", "textAlignment": "CENTER" ], "onClick": { "openLink": { "url":"https://www.example.com" } } } ```
1662
943
  */
1663
- displayName?: string;
944
+ grid?: AppsDynamiteSharedGrid;
945
+ /** The horizontal alignment of this widget. */
946
+ horizontalAlignment?: string;
1664
947
  /**
1665
- * Gender of the mentioned user. One of "female", "male" or "other". Used for choosing accurate translations for strings that contain the UserMention, when these need to be constructed
1666
- * (e.g. task assignment update message). This field should remain empty when clients resolve a UserMention. It will be filled in when a UserMention is generated by the Integration
1667
- * Server.
948
+ * Displays an image in this widget. For example, the following JSON creates an image with alternative text: ``` "image": { "imageUrl": "https://example.com/heba_salam.png" "altText":
949
+ * "Avatar for Heba Salam" } ```
1668
950
  */
1669
- gender?: string;
1670
- /** To be deprecated. Use invitee_info field instead. ID of the User mentioned. This field should remain empty when type == MENTION_ALL. */
1671
- id?: AppsDynamiteUserId;
951
+ image?: AppsDynamiteSharedImage;
1672
952
  /**
1673
- * Invitee UserId and email used when mentioned. This field should remain empty when type == MENTION_ALL. Invitee_info.email is only used when a user is @-mentioned with an email
1674
- * address, and it will be empty when clients get messages from Backend.
953
+ * Displays a switch control in this widget. For example, the following JSON creates a dropdown selection for size: ``` "switchControl": { "name": "size", "label": "Size" "type":
954
+ * "SelectionType.DROPDOWN", "items": [ { "text": "S", "value": "small", "selected": false }, { "text": "M", "value": "medium", "selected": true }, { "text": "L", "value": "large",
955
+ * "selected": false }, { "text": "XL", "value": "extra_large", "selected": false } ] } ```
1675
956
  */
1676
- inviteeInfo?: AppsDynamiteInviteeInfo;
1677
- type?: string;
957
+ selectionInput?: AppsDynamiteSharedSelectionInput;
958
+ /**
959
+ * Displays a text input in this widget. For example, the following JSON creates a text input for mail address: ``` "textInput": { "name": "mailing_address", "label": "Mailing Address"
960
+ * } ``` As another example, the following JSON creates a text input for programming language with static suggestions: ``` "textInput": { "name": "preferred_programing_language",
961
+ * "label": "Preferred Language", "initialSuggestions": { "items": [ { "text": "C++" }, { "text": "Java" }, { "text": "JavaScript" }, { "text": "Python" } ] } } ```
962
+ */
963
+ textInput?: AppsDynamiteSharedTextInput;
964
+ /** Displays a text paragraph in this widget. For example, the following JSON creates a bolded text: ``` "textParagraph": { "text": " *bold text*" } ``` */
965
+ textParagraph?: AppsDynamiteSharedTextParagraph;
1678
966
  }
1679
967
  interface AppsDynamiteV1ApiCompatV1Action {
1680
968
  /** Confirmation dialog config. */
@@ -1748,30 +1036,21 @@ declare namespace gapi.client {
1748
1036
  /** The text value of the field. */
1749
1037
  value?: string;
1750
1038
  }
1751
- interface AppsDynamiteVideoCallMetadata {
1752
- /** Thor meeting space. */
1753
- meetingSpace?: MeetingSpace;
1754
- /** If this field is set to true, server should still contact external backends to get metadata for search but clients should not render this chip. */
1755
- shouldNotRender?: boolean;
1756
- /** Whether this meeting space was created via Dynamite in this Dynamite group. */
1757
- wasCreatedInCurrentGroup?: boolean;
1758
- }
1759
- interface AppsDynamiteYoutubeMetadata {
1760
- /** YouTube resource ID of the artifact. */
1761
- id?: string;
1762
- /** If this field is set to true, server should still contact external backends to get metadata for search but clients should not render this chip. */
1763
- shouldNotRender?: boolean;
1764
- /** YouTube query parameter for timestamp. YouTube specific flag that allows users to embed time token when sharing a link. This property contains parsed time token in seconds. */
1765
- startTime?: number;
1766
- }
1767
1039
  interface Attachment {
1768
- /** An embed represents an external entity. See go/es-embeds. */
1769
- embedItem?: EmbedClientItem;
1770
- /** An id to uniquely identify an attachment when several attachments are in a collection. */
1771
- id?: string;
1772
- }
1773
- interface AttachmentMetadata {
1774
- filename?: string;
1040
+ /** Revised version of Gmail AddOn attachment approved by API design review. */
1041
+ addOnData?: GoogleChatV1ContextualAddOnMarkup;
1042
+ /** The userId for the bot/app that created this data, to be used for attribution of attachments when the attachment was not created by the message sender. */
1043
+ appId?: UserId;
1044
+ /** To identify an attachment within repeated in a message */
1045
+ attachmentId?: string;
1046
+ /** Card AddOn attachment with the possibility for specifying editable widgets. */
1047
+ cardAddOnData?: AppsDynamiteSharedCard;
1048
+ /** Deprecated version of Gmail AddOn attachment. */
1049
+ deprecatedAddOnData?: ContextualAddOnMarkup;
1050
+ /** Slack attachment. */
1051
+ slackData?: AppsDynamiteV1ApiCompatV1Attachment;
1052
+ /** The height of image url as fetched by fife. This field is asynchronously filled. */
1053
+ slackDataImageUrlHeight?: number;
1775
1054
  }
1776
1055
  interface AuditLoggingSettings {
1777
1056
  /** Indicates whether audit logging is on/off for admin activity read APIs i.e. Get/List DataSources, Get/List SearchApplications etc. */
@@ -1798,6 +1077,25 @@ declare namespace gapi.client {
1798
1077
  interface AutoCompleteItem {
1799
1078
  text?: string;
1800
1079
  }
1080
+ interface BabelMessageProps {
1081
+ /** Babel clients locally generate this ID to dedupe against the async fanout. */
1082
+ clientGeneratedId?: string;
1083
+ /** Stores additional Babel-specific properties (such as event metadata). */
1084
+ contentExtension?: ChatContentExtension;
1085
+ /** Stores the delivery source of messages (such as phone number for SMS). */
1086
+ deliveryMedium?: DeliveryMedium;
1087
+ /** Primary identifier used by Hangouts Classic for its events (messages). */
1088
+ eventId?: string;
1089
+ /** Stores message segments (text content) and attachments (media URLs). */
1090
+ messageContent?: ChatConserverMessageContent;
1091
+ /** Whether or not these message properties were backfilled by go/dinnertrain. */
1092
+ wasUpdatedByBackfill?: boolean;
1093
+ }
1094
+ interface BabelPlaceholderMetadata {
1095
+ deleteMetadata?: any;
1096
+ editMetadata?: any;
1097
+ hangoutVideoMetadata?: HangoutVideoEventMetadata;
1098
+ }
1801
1099
  interface BooleanOperatorOptions {
1802
1100
  /**
1803
1101
  * Indicates the operator name required in the query in order to isolate the boolean property. For example, if operatorName is *closed* and the property's name is *isClosed*, then
@@ -1819,8 +1117,39 @@ declare namespace gapi.client {
1819
1117
  /** The border type. */
1820
1118
  type?: string;
1821
1119
  }
1822
- // tslint:disable-next-line:no-empty-interface
1823
- interface BotMessageMetadata {
1120
+ interface BotInfo {
1121
+ /** Identifier of the application associated with the bot. */
1122
+ appId?: AppId;
1123
+ /** URL for the avatar picture of the User in dynamite. This field should be populated if the request is FetchBotCategories/ListBotCatalogEntries */
1124
+ botAvatarUrl?: string;
1125
+ /** Non-unique, user-defined display name of the Bot. This field should be populated if the request is FetchBotCategories/ListBotCatalogEntries. */
1126
+ botName?: string;
1127
+ /** Short description for the bot. */
1128
+ description?: string;
1129
+ /** Name of bot developer. */
1130
+ developerName?: string;
1131
+ /** URL for the banner image in GSuite Market Place. The banner will be 220x140. */
1132
+ marketPlaceBannerUrl?: string;
1133
+ /** Indicates whether bot is enabled/disabled. */
1134
+ status?: string;
1135
+ /**
1136
+ * The supported uses are limited according to the user that made the request. If the user does not have permission to use the bot, the list will be empty. This could occur for non
1137
+ * whitelisted bots in the catalog.
1138
+ */
1139
+ supportedUses?: string[];
1140
+ /**
1141
+ * Urls with additional information related to the bot. This field should always be set even if all the fields within it are empty, so that it is convenient for clients to work with
1142
+ * this field in javascript.
1143
+ */
1144
+ supportUrls?: SupportUrls;
1145
+ whitelistStatus?: string;
1146
+ }
1147
+ interface BotResponse {
1148
+ botId?: UserId;
1149
+ requiredAction?: string;
1150
+ responseType?: string;
1151
+ /** URL for setting up bot. */
1152
+ setupUrl?: string;
1824
1153
  }
1825
1154
  interface BroadcastAccess {
1826
1155
  /** The policy that controls the broadcast's viewer access. */
@@ -1849,9 +1178,6 @@ declare namespace gapi.client {
1849
1178
  imageButton?: ImageButton;
1850
1179
  textButton?: TextButton;
1851
1180
  }
1852
- // tslint:disable-next-line:no-empty-interface
1853
- interface CalendarEventMetadata {
1854
- }
1855
1181
  interface CallInfo {
1856
1182
  /** Abuse reporting configuration for the ongoing conference. */
1857
1183
  abuseReportingConfig?: AbuseReportingConfig;
@@ -1874,6 +1200,8 @@ declare namespace gapi.client {
1874
1200
  * this field is empty. For recurring events, it refers to the recurring instance associated with the current call, as determined by the server.
1875
1201
  */
1876
1202
  calendarEventId?: string;
1203
+ /** Configuration for the chat for this conference. */
1204
+ chatConfig?: ChatConfig;
1877
1205
  /**
1878
1206
  * 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
1879
1207
  * 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
@@ -1923,8 +1251,6 @@ declare namespace gapi.client {
1923
1251
  * one.
1924
1252
  */
1925
1253
  streamingSessions?: StreamingSessionInfo[];
1926
- /** Supported caption languages in BCP 47 language code format, e.g.'en-US'. */
1927
- supportedCaptionLanguages?: string[];
1928
1254
  /** Information about active transcription session in the ongoing conference. */
1929
1255
  transcriptionSessionInfo?: TranscriptionSessionInfo;
1930
1256
  /** The number of devices viewing the conference - MeetingDevices that are in VIEWER role and JOINED state in the conference. */
@@ -1981,6 +1307,10 @@ declare namespace gapi.client {
1981
1307
  actionLabel?: string;
1982
1308
  onClick?: OnClick;
1983
1309
  }
1310
+ interface CardCapabilityMetadata {
1311
+ /** NEXT TAG : 2 */
1312
+ requiredCapabilities?: string[];
1313
+ }
1984
1314
  interface CardHeader {
1985
1315
  /** The alternative text of this image which will be used for accessibility. */
1986
1316
  imageAltText?: string;
@@ -1993,6 +1323,53 @@ declare namespace gapi.client {
1993
1323
  */
1994
1324
  title?: string;
1995
1325
  }
1326
+ interface ChatConfig {
1327
+ /** The Type of chat this Conference is currently using. */
1328
+ chatType?: string;
1329
+ /** The configuration of Google Chat when selected. */
1330
+ googleChatConfig?: GoogleChatConfig;
1331
+ }
1332
+ interface ChatConserverDynamitePlaceholderMetadata {
1333
+ attachmentMetadata?: ChatConserverDynamitePlaceholderMetadataAttachmentMetadata;
1334
+ botMessageMetadata?: any;
1335
+ calendarEventMetadata?: any;
1336
+ deleteMetadata?: any;
1337
+ editMetadata?: any;
1338
+ /** The space URL embedded in the localized string. */
1339
+ spaceUrl?: string;
1340
+ tasksMetadata?: any;
1341
+ videoCallMetadata?: ChatConserverDynamitePlaceholderMetadataVideoCallMetadata;
1342
+ }
1343
+ interface ChatConserverDynamitePlaceholderMetadataAttachmentMetadata {
1344
+ filename?: string;
1345
+ }
1346
+ // tslint:disable-next-line:no-empty-interface
1347
+ interface ChatConserverDynamitePlaceholderMetadataBotMessageMetadata {
1348
+ }
1349
+ // tslint:disable-next-line:no-empty-interface
1350
+ interface ChatConserverDynamitePlaceholderMetadataCalendarEventMetadata {
1351
+ }
1352
+ // tslint:disable-next-line:no-empty-interface
1353
+ interface ChatConserverDynamitePlaceholderMetadataDeleteMetadata {
1354
+ }
1355
+ // tslint:disable-next-line:no-empty-interface
1356
+ interface ChatConserverDynamitePlaceholderMetadataEditMetadata {
1357
+ }
1358
+ // tslint:disable-next-line:no-empty-interface
1359
+ interface ChatConserverDynamitePlaceholderMetadataTasksMetadata {
1360
+ }
1361
+ interface ChatConserverDynamitePlaceholderMetadataVideoCallMetadata {
1362
+ meetingUrl?: string;
1363
+ }
1364
+ interface ChatConserverMessageContent {
1365
+ /**
1366
+ * Items attached to this message, such as photos. This should *NOT* be set by clients. It will be automatically set from media uploaded along with this request and using the
1367
+ * information provided in existing_media.
1368
+ */
1369
+ attachment?: SocialCommonAttachmentAttachment[];
1370
+ /** The text part of the message content. Segments are concatenated together to yield the full message. A message can have zero or more segments. */
1371
+ segment?: Segment[];
1372
+ }
1996
1373
  interface ChatContentExtension {
1997
1374
  /** Annotations to decorate this event. */
1998
1375
  annotation?: EventAnnotation[];
@@ -2000,7 +1377,7 @@ declare namespace gapi.client {
2000
1377
  * This metadata informs how the placeholder string will be localized dynamically in Hangouts. See go/localization-of-system-messages. This is only used as part of REGULAR_CHAT_MESSAGE
2001
1378
  * events.
2002
1379
  */
2003
- dynamitePlaceholderMetadata?: DynamitePlaceholderMetadata;
1380
+ dynamitePlaceholderMetadata?: ChatConserverDynamitePlaceholderMetadata;
2004
1381
  /** Is this event OnTR or OffTR? Since some events can be ON_THE_RECORD and have an expiration_timestamp (for example enterprise retention users) we need to store the otr status. */
2005
1382
  eventOtrStatus?: string;
2006
1383
  /** Group-link sharing toggle event. */
@@ -2075,12 +1452,22 @@ declare namespace gapi.client {
2075
1452
  /** The amount of red in the color as a value in the interval [0, 1]. */
2076
1453
  red?: number;
2077
1454
  }
1455
+ interface CommunalLabelTag {
1456
+ /** Gaia ID of the user who added the tag, if any. Not present for any tags automatically created by server-side processing. */
1457
+ creatorUserId?: string;
1458
+ /** A string ID representing the label. Possible ID values are documented at go/chat-labels-howto:ids. Example: "^*t_p" for "Pinned". */
1459
+ labelId?: string;
1460
+ }
2078
1461
  interface CompositeFilter {
2079
1462
  /** The logic operator of the sub filter. */
2080
1463
  logicOperator?: string;
2081
1464
  /** Sub filters. */
2082
1465
  subFilters?: Filter[];
2083
1466
  }
1467
+ interface ConsentedAppUnfurlMetadata {
1468
+ /** Client specified AppId, which will not be sanitized and is untrusted. */
1469
+ clientSpecifiedAppId?: UserId;
1470
+ }
2084
1471
  interface ContactGroupProto {
2085
1472
  /** Group ID is unique only relative to the owner's Gaia ID. */
2086
1473
  groupId?: string;
@@ -2092,6 +1479,28 @@ declare namespace gapi.client {
2092
1479
  */
2093
1480
  requiredConsistencyTimestampUsec?: string;
2094
1481
  }
1482
+ interface ContentReport {
1483
+ /** The time at which the report is generated. Always populated when it is in a response. */
1484
+ reportCreateTimestamp?: string;
1485
+ /** User ID of the reporter. Always populated when it is in a response. */
1486
+ reporterUserId?: UserId;
1487
+ /** Additional user-provided justification on the report. Optional. */
1488
+ reportJustification?: ContentReportJustification;
1489
+ /** Type of the report. Always populated when it is in a response. */
1490
+ reportType?: AppsDynamiteSharedContentReportType;
1491
+ /** Create timestamp of the revisions of the message when it's reported. Always populated when it is in a response. */
1492
+ revisionCreateTimestamp?: string;
1493
+ }
1494
+ interface ContentReportJustification {
1495
+ /** Optional. User-generated free-text justification for the content report. */
1496
+ userJustification?: string;
1497
+ }
1498
+ interface ContentReportSummary {
1499
+ /** Total number of reports attached to this (revision of) message. */
1500
+ numberReports?: number;
1501
+ /** Totoal number of reports attached to all revisions of this message (i.e. since creation). Set only when the request asks for it. */
1502
+ numberReportsAllRevisions?: number;
1503
+ }
2095
1504
  interface ContextAttribute {
2096
1505
  /**
2097
1506
  * The name of the attribute. It should not be empty. The maximum length is 32 characters. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9).
@@ -2119,6 +1528,12 @@ declare namespace gapi.client {
2119
1528
  /** The wrapped CSE key used by this conference. */
2120
1529
  wrappedKey?: string;
2121
1530
  }
1531
+ interface CustomEmojiMetadata {
1532
+ customEmoji?: AppsDynamiteSharedCustomEmoji;
1533
+ }
1534
+ interface CustomerId {
1535
+ customerId?: string;
1536
+ }
2122
1537
  interface CustomerIndexStats {
2123
1538
  /** The date for which statistics were calculated. */
2124
1539
  date?: Date;
@@ -2158,6 +1573,12 @@ declare namespace gapi.client {
2158
1573
  /** The count of unique active users in the past thirty days */
2159
1574
  thirtyDaysActiveUsersCount?: string;
2160
1575
  }
1576
+ interface DataLossPreventionMetadata {
1577
+ /** The DLP scan summary that should only be set after the message is scanned in the Chat backend. */
1578
+ dlpScanSummary?: DlpScanSummary;
1579
+ /** Flag set by client on message resend to bypass WARN violation. */
1580
+ warnAcknowledged?: boolean;
1581
+ }
2161
1582
  interface DataSource {
2162
1583
  /**
2163
1584
  * If true, sets the datasource to read-only mode. In read-only mode, the Indexing API rejects any requests to index or delete items in this source. Enabling read-only mode does not
@@ -2311,10 +1732,29 @@ declare namespace gapi.client {
2311
1732
  * The name of the top-level property as defined in a property definition for the object. If the name is not a defined property in the schema, an error is given when attempting to
2312
1733
  * update the schema.
2313
1734
  */
2314
- propertyName?: string;
1735
+ propertyName?: string;
1736
+ }
1737
+ // tslint:disable-next-line:no-empty-interface
1738
+ interface Divider {
1739
+ }
1740
+ interface DlpScanSummary {
1741
+ /**
1742
+ * The scan ID of the corresponding {@link DlpViolationScanRecord} in the {@link EphemeralDlpScans} Spanner table. This can be used to fetch additional details about the scan, e.g. for
1743
+ * audit logging.
1744
+ */
1745
+ scanId?: string;
1746
+ /**
1747
+ * Indicates that was no attempt to scan a message or attachment because it was not applicable in the given context (e.g. atomic mutuate). If this is true, scan_outcome should not be
1748
+ * set. This flag is used to identify messages that DLP did not attempt to scan for monitoring scan coverage. Contents that DLP attempted to scan but skipped can be identified by
1749
+ * DlpScanOutcome.SCAN_SKIPPED_* reasons.
1750
+ */
1751
+ scanNotApplicableForContext?: boolean;
1752
+ /** The outcome of a DLP Scan. If this is set, scan_not_applicable_for_context should not be true. */
1753
+ scanOutcome?: string;
2315
1754
  }
2316
- // tslint:disable-next-line:no-empty-interface
2317
- interface Divider {
1755
+ interface DmId {
1756
+ /** Unique server assigned Id, per Direct Message Space. */
1757
+ dmId?: string;
2318
1758
  }
2319
1759
  interface DocumentInfo {
2320
1760
  /** A whiteboard document. */
@@ -2340,23 +1780,76 @@ declare namespace gapi.client {
2340
1780
  interface DriveLocationRestrict {
2341
1781
  type?: string;
2342
1782
  }
1783
+ interface DriveMetadata {
1784
+ aclFixRequest?: AclFixRequest;
1785
+ aclFixStatus?: AclFixStatus;
1786
+ /** Can the current user edit this resource */
1787
+ canEdit?: boolean;
1788
+ /** Can the current user share this resource */
1789
+ canShare?: boolean;
1790
+ /** Can the current user view this resource */
1791
+ canView?: boolean;
1792
+ /**
1793
+ * DriveAction for organizing this file in Drive. If the user does not have access to the Drive file, the value will be DriveAction.DRIVE_ACTION_UNSPECIFIED. This field is only set
1794
+ * when part of a FileResult in a ListFilesResponse.
1795
+ */
1796
+ driveAction?: string;
1797
+ driveState?: string;
1798
+ /** Output only. Trusted Resource URL for drive file embedding. */
1799
+ embedUrl?: TrustedResourceUrlProto;
1800
+ /** Indicates whether the Drive link contains an encrypted doc ID. If true, Dynamite should not attempt to query the doc ID in Drive Service. See go/docid-encryption for details. */
1801
+ encryptedDocId?: boolean;
1802
+ /** This is deprecated and unneeded. TODO (b/182479059): Remove this. */
1803
+ encryptedResourceKey?: string;
1804
+ /** External mimetype of the Drive Resource (Useful for creating Drive URL) See: http://b/35219462 */
1805
+ externalMimetype?: string;
1806
+ /** Drive resource ID of the artifact. */
1807
+ id?: string;
1808
+ /**
1809
+ * Deprecated. Whether the setting to restrict downloads is enabled for this file. This was previously used to determine whether to hide the download and print buttons in the UI, but
1810
+ * is no longer used by clients, because Projector now independently queries Drive to ensure that we have the most up-to-date value.
1811
+ */
1812
+ isDownloadRestricted?: boolean;
1813
+ /**
1814
+ * If the current user is the Drive file's owner. The field is currently only set for Annotations for the ListFiles action (as opposed to fetching Topics/Messages with Drive
1815
+ * annotations).
1816
+ */
1817
+ isOwner?: boolean;
1818
+ /** Only present if this DriveMetadata is converted from an UploadMetadata. */
1819
+ legacyUploadMetadata?: LegacyUploadMetadata;
1820
+ /** Mimetype of the Drive Resource */
1821
+ mimetype?: string;
1822
+ /** The display name of the organization owning the Drive item. */
1823
+ organizationDisplayName?: string;
1824
+ /**
1825
+ * Shortcut ID of this drive file in the shared drive, which is associated with a named room this file was shared in. Shortcuts will not be created for DMs or unnamed rooms. This is
1826
+ * populated after the DriveMetadata is migrated to shared drive. go/chat-shared-drive-uploads.
1827
+ */
1828
+ shortcutAuthorizedItemId?: AuthorizedItemId;
1829
+ /** If this field is set to true, server should still contact external backends to get metadata for search but clients should not render this chip. */
1830
+ shouldNotRender?: boolean;
1831
+ /** Thumbnail image of the Drive Resource */
1832
+ thumbnailHeight?: number;
1833
+ /** Thumbnail image of the Drive Resource */
1834
+ thumbnailUrl?: string;
1835
+ /** Thumbnail image of the Drive Resource */
1836
+ thumbnailWidth?: number;
1837
+ /** Title of the Drive Resource */
1838
+ title?: string;
1839
+ /**
1840
+ * Url string fragment that generally indicates the specific location in the linked file. Example: #header=h.123abc456. If the fragment is not present this will not be present and
1841
+ * therefore default to an empty string. The "#" will not be included.
1842
+ */
1843
+ urlFragment?: string;
1844
+ /** This is considered SPII and should not be logged. */
1845
+ wrappedResourceKey?: WrappedResourceKey;
1846
+ }
2343
1847
  interface DriveMimeTypeRestrict {
2344
1848
  type?: string;
2345
1849
  }
2346
1850
  interface DriveTimeSpanRestrict {
2347
1851
  type?: string;
2348
1852
  }
2349
- interface DynamitePlaceholderMetadata {
2350
- attachmentMetadata?: AttachmentMetadata;
2351
- botMessageMetadata?: any;
2352
- calendarEventMetadata?: any;
2353
- deleteMetadata?: any;
2354
- editMetadata?: any;
2355
- /** The space URL embedded in the localized string. */
2356
- spaceUrl?: string;
2357
- tasksMetadata?: any;
2358
- videoCallMetadata?: VideoCallMetadata;
2359
- }
2360
1853
  interface DynamiteSpacesScoringInfo {
2361
1854
  affinityScore?: number;
2362
1855
  commonContactCountAffinityScore?: number;
@@ -2379,8 +1872,16 @@ declare namespace gapi.client {
2379
1872
  interface EditMetadata {
2380
1873
  }
2381
1874
  interface EmailAddress {
1875
+ /** If the value of type is custom, this property contains the custom type string. */
1876
+ customType?: string;
2382
1877
  /** The email address. */
2383
1878
  emailAddress?: string;
1879
+ /** The URL to send email. */
1880
+ emailUrl?: string;
1881
+ /** Indicates if this is the user's primary email. Only one entry can be marked as primary. */
1882
+ primary?: boolean;
1883
+ /** The type of the email account. Acceptable values are: "custom", "home", "other", "work". */
1884
+ type?: string;
2384
1885
  }
2385
1886
  interface EmailOwnerProto {
2386
1887
  email?: string;
@@ -2548,6 +2049,15 @@ declare namespace gapi.client {
2548
2049
  */
2549
2050
  persistValues?: boolean;
2550
2051
  }
2052
+ interface FormatMetadata {
2053
+ /**
2054
+ * Font color is set if and only if format_type is FONT_COLOR. The components are stored as (alpha << 24) | (red << 16) | (green << 8) | blue. Clients should always set the alpha
2055
+ * component to 0xFF. NEXT TAG: 3
2056
+ */
2057
+ fontColor?: number;
2058
+ /** LINT.ThenChange(//depot/google3/apps/dynamite/v1/web/datakeys/annotated_span.proto) */
2059
+ formatType?: string;
2060
+ }
2551
2061
  interface Formatting {
2552
2062
  bold?: boolean;
2553
2063
  /** This indicates that the segment should be rendered as highlighted or visually emphasized. */
@@ -2631,6 +2141,10 @@ declare namespace gapi.client {
2631
2141
  interface GetSearchApplicationUserStatsResponse {
2632
2142
  stats?: SearchApplicationUserStats[];
2633
2143
  }
2144
+ interface GoogleChatConfig {
2145
+ /** ID of the Chat group. */
2146
+ chatGroupId?: string;
2147
+ }
2634
2148
  interface GoogleChatV1ContextualAddOnMarkup {
2635
2149
  /** A list of cards. A card must contain a header and at least 1 section. */
2636
2150
  cards?: GoogleChatV1ContextualAddOnMarkupCard[];
@@ -2821,9 +2335,40 @@ declare namespace gapi.client {
2821
2335
  /** Text properties. */
2822
2336
  title?: string;
2823
2337
  }
2338
+ interface GroupDetailsUpdatedMetadata {
2339
+ newGroupDetails?: AppsDynamiteSharedGroupDetails;
2340
+ prevGroupDetails?: AppsDynamiteSharedGroupDetails;
2341
+ }
2342
+ interface GroupId {
2343
+ /** Unique, immutable ID of the Direct Message Space */
2344
+ dmId?: DmId;
2345
+ /** Unique, immutable ID of the Space */
2346
+ spaceId?: SpaceId;
2347
+ }
2824
2348
  interface GroupLinkSharingModificationEvent {
2825
2349
  newStatus?: string;
2826
2350
  }
2351
+ interface GroupRetentionSettingsUpdatedMetaData {
2352
+ /** The user who triggered the retention settings update */
2353
+ initiator?: UserId;
2354
+ /** The updated space retention settings */
2355
+ retentionSettings?: AppsDynamiteSharedRetentionSettings;
2356
+ }
2357
+ interface GsuiteIntegrationMetadata {
2358
+ activityFeedData?: AppsDynamiteSharedActivityFeedAnnotationData;
2359
+ assistantData?: AppsDynamiteSharedAssistantAnnotationData;
2360
+ calendarEventData?: AppsDynamiteSharedCalendarEventAnnotationData;
2361
+ /** Data used to render call artifacts. */
2362
+ callData?: AppsDynamiteSharedCallAnnotationData;
2363
+ clientType?: string;
2364
+ /**
2365
+ * A list of all strings that are to be indexed for this 1P chip. Each string in this list would be the contents of a single string field in the 1P chip. Eg. For Tasks[title = “hello
2366
+ * world”, description = “good bye”]. If we want to index only the title, this would be set to [“hello world”]. If both title and description, then this would be [“hello world”, “good
2367
+ * bye”]. Please make sure that the contents of this field is a subset of strings that are rendered as part of the 1P Chip.
2368
+ */
2369
+ indexableTexts?: string[];
2370
+ tasksData?: AppsDynamiteSharedTasksAnnotationData;
2371
+ }
2827
2372
  interface GSuitePrincipal {
2828
2373
  /** This principal represents all users of the Google Workspace domain of the customer. */
2829
2374
  gsuiteDomain?: boolean;
@@ -2838,6 +2383,9 @@ declare namespace gapi.client {
2838
2383
  participantId?: StoredParticipantId[];
2839
2384
  type?: string;
2840
2385
  }
2386
+ interface HangoutVideoEventMetadata {
2387
+ hangoutVideoType?: string;
2388
+ }
2841
2389
  interface HashtagData {
2842
2390
  searchText?: string;
2843
2391
  }
@@ -2926,6 +2474,23 @@ declare namespace gapi.client {
2926
2474
  onClick?: OnClick;
2927
2475
  text?: string;
2928
2476
  }
2477
+ interface IncomingWebhookChangedMetadata {
2478
+ /** The webhook name at the time of the change. Used in Spanner storage, BE API responses and FE API responses. */
2479
+ incomingWebhookName?: string;
2480
+ /** The user id of the user whose action triggered this system message. Used in Spanner storage, BE API responses and FE API responses. */
2481
+ initiatorId?: UserId;
2482
+ /** Complete profile when ListTopicsRequest FetchOptions.USER is set. Otherwise, only the id will be filled in. Used in FE API responses. */
2483
+ initiatorProfile?: User;
2484
+ /**
2485
+ * The webhook id of the incoming webhook in question. This field should not be used to load webhook information dynamically and is only present for debugging purposes. Used in Spanner
2486
+ * storage, BE API responses and FE API responses.
2487
+ */
2488
+ obfuscatedIncomingWebhookId?: string;
2489
+ /** Only populated for UPDATED_NAME and UPDATED_NAME_AND_AVATAR events, where the webhook name was changed. Used in Spanner storage, BE API responses and FE API responses. */
2490
+ oldIncomingWebhookName?: string;
2491
+ /** Used in Spanner storage, BE API responses and FE API responses. */
2492
+ type?: string;
2493
+ }
2929
2494
  interface IndexItemOptions {
2930
2495
  /** Specifies if the index request should allow Google Workspace principals that do not exist or are deleted. */
2931
2496
  allowUnknownGsuitePrincipals?: boolean;
@@ -2984,6 +2549,22 @@ declare namespace gapi.client {
2984
2549
  interface IntegerValues {
2985
2550
  values?: string[];
2986
2551
  }
2552
+ interface IntegrationConfigMutation {
2553
+ /** Add an app using its identifier. */
2554
+ addApp?: AppId;
2555
+ /** Add a pinned tab using its identifier. */
2556
+ addPinnedItem?: PinnedItemId;
2557
+ /** Remove an active app using its identifier. */
2558
+ removeApp?: AppId;
2559
+ /** Remove an active pinned tab using its identifier. */
2560
+ removePinnedItem?: PinnedItemId;
2561
+ }
2562
+ interface IntegrationConfigUpdatedMetadata {
2563
+ /** The user whose action triggered this system message. */
2564
+ initiatorId?: UserId;
2565
+ /** A list of updates applied on the integration config. */
2566
+ mutations?: IntegrationConfigMutation[];
2567
+ }
2987
2568
  interface Interaction {
2988
2569
  /** The time when the user acted on the item. If multiple actions of the same type exist for a single user, only the most recent action is recorded. */
2989
2570
  interactionTime?: string;
@@ -2994,6 +2575,12 @@ declare namespace gapi.client {
2994
2575
  interface InviteAcceptedEvent {
2995
2576
  participantId?: StoredParticipantId[];
2996
2577
  }
2578
+ interface InviteeInfo {
2579
+ /** Email as typed by the user when invited to Room or DM. This value will be canonicalized and hashed before retained in storage. */
2580
+ email?: string;
2581
+ /** Unique, immutable ID of the User. */
2582
+ userId?: UserId;
2583
+ }
2997
2584
  interface Item {
2998
2585
  /** Access control list for this item. */
2999
2586
  acl?: ItemAcl;
@@ -3158,6 +2745,15 @@ declare namespace gapi.client {
3158
2745
  interface LdapUserProto {
3159
2746
  userName?: string;
3160
2747
  }
2748
+ interface LegacyUploadMetadata {
2749
+ /**
2750
+ * A unique ID generated from legacy UploadMetadata. This is used for interopping URLs after uploading blob to shared drive. Links in Classic might break without this.
2751
+ * go/drive-file-attachment-interop-from-dynamite.
2752
+ */
2753
+ legacyUniqueId?: string;
2754
+ /** The blob in this UploadMetadata has been uploaded to shared drive. This UploadMetadata is no longer attached to a message. go/shared-drive-data-migration. */
2755
+ uploadMetadata?: UploadMetadata;
2756
+ }
3161
2757
  interface LinkData {
3162
2758
  /**
3163
2759
  * An Attachment represents the structured entity to which we are linking. It contains an Embed (apps/tacotown/proto/embeds/embed_client.proto) with fields specific to the appropriate
@@ -3170,7 +2766,7 @@ declare namespace gapi.client {
3170
2766
  * Within the Attachment, fields of EmbedClientItem have their own visibility annotations, which should be enforced separately from Segment visibility annotations. See:
3171
2767
  * apps/tacotown/proto/embeds/embed_annotations.proto
3172
2768
  */
3173
- attachment?: Attachment;
2769
+ attachment?: SocialCommonAttachmentAttachment;
3174
2770
  /** The hint to use when rendering the associated attachment. Ignored if there is no associated attachment. */
3175
2771
  attachmentRenderHint?: string;
3176
2772
  /**
@@ -3293,6 +2889,27 @@ declare namespace gapi.client {
3293
2889
  /** A universal phone access method for this meeting space. Can be unset. */
3294
2890
  universalPhoneAccess?: UniversalPhoneAccess;
3295
2891
  }
2892
+ interface Member {
2893
+ roster?: Roster;
2894
+ user?: User;
2895
+ }
2896
+ interface MemberId {
2897
+ /** Unique, immutable ID of the Roster. */
2898
+ rosterId?: RosterId;
2899
+ /** Unique, immutable ID of the User. */
2900
+ userId?: UserId;
2901
+ }
2902
+ interface MembershipChangedMetadata {
2903
+ affectedMemberProfiles?: Member[];
2904
+ /** List of users and rosters whose membership status changed. */
2905
+ affectedMembers?: MemberId[];
2906
+ affectedMemberships?: AffectedMembership[];
2907
+ /** The user whose action triggered this system message. */
2908
+ initiator?: UserId;
2909
+ /** Complete member profiles, when ListTopicsRequest FetchOptions.USER is set. Otherwise, only the id will be filled in. */
2910
+ initiatorProfile?: User;
2911
+ type?: string;
2912
+ }
3296
2913
  interface MembershipChangeEvent {
3297
2914
  /** This should only be set when MembershipChange type is LEAVE. */
3298
2915
  leaveReason?: string;
@@ -3315,14 +2932,133 @@ declare namespace gapi.client {
3315
2932
  /** The value associated with this item which will be sent back to app scripts. Client should use as a form input value. */
3316
2933
  value?: string;
3317
2934
  }
3318
- interface MessageContent {
3319
- /**
3320
- * Items attached to this message, such as photos. This should *NOT* be set by clients. It will be automatically set from media uploaded along with this request and using the
3321
- * information provided in existing_media.
3322
- */
3323
- attachment?: Attachment[];
3324
- /** The text part of the message content. Segments are concatenated together to yield the full message. A message can have zero or more segments. */
3325
- segment?: Segment[];
2935
+ interface Message {
2936
+ /** Annotations parsed and extracted from the text body. */
2937
+ annotations?: Annotation[];
2938
+ /** Custom display profile info for apps. Leave the field empty for real users. */
2939
+ appProfile?: AppsDynamiteSharedAppProfile;
2940
+ /** Attachments parsed from incoming webhooks */
2941
+ attachments?: Attachment[];
2942
+ /** Lightweight message attributes which values are calculated and set in the servers. */
2943
+ attributes?: MessageAttributes;
2944
+ /** Responses from bots indicating if extra auth/config is needed. */
2945
+ botResponses?: BotResponse[];
2946
+ /**
2947
+ * Communal labels associated with a message. These exist on the message itself regardless of which user fetches them. Order of entries is arbitrary and will not list duplicates of the
2948
+ * same label_id. See go/chat-labels-design for details.
2949
+ */
2950
+ communalLabels?: CommunalLabelTag[];
2951
+ contentReportSummary?: ContentReportSummary;
2952
+ /** Time when the Message was posted in microseconds. */
2953
+ createTime?: string;
2954
+ /** ID of the User who posted the Message. This includes information to identify if this was posted by an App on behalf of a user. */
2955
+ creatorId?: UserId;
2956
+ /** Indicates who can delete the message. This field is set on the read path (e.g. ListTopics) but doesn’t have any effect on the write path (e.g. CreateMessageRequest). */
2957
+ deletableBy?: string;
2958
+ /** Was this message deleted by Vault (Only used for Vault support) This is false if message is live or message was deleted by user. */
2959
+ deletedByVault?: boolean;
2960
+ /** Time when the Message was deleted in microseconds. This field is set to nonzero value only for Messages deleted globally. */
2961
+ deleteTime?: string;
2962
+ /** Time when the Message was per-user deleted by the message requester in microseconds. This field is set to nonzero value only for Message per-user deleted by the requester. */
2963
+ deleteTimeForRequester?: string;
2964
+ /**
2965
+ * Data Loss Prevention scan information for this message. Messages are evaluated in the backend on create message/topic and edit message actions. DEPRECATED: use dlp_scan_summary
2966
+ * instead.
2967
+ */
2968
+ dlpScanOutcome?: string;
2969
+ /** Data Loss Prevention scan information for this message. Messages are evaluated in the backend on create message/topic and edit message actions. */
2970
+ dlpScanSummary?: DlpScanSummary;
2971
+ /** Indicates who can edit the message. This field is set on the read path (e.g. ListTopics) but doesn’t have any effect on the write path (e.g. CreateMessageRequest). */
2972
+ editableBy?: string;
2973
+ /** A plain-text description of the attachment, used when clients cannot display formatted attachment (e.g. mobile push notifications). */
2974
+ fallbackText?: string;
2975
+ /** ID of the resource. */
2976
+ id?: MessageId;
2977
+ /**
2978
+ * Output only. Indicates if the message is an inline reply. Set to true only if the message's ParentPath is non-NULL. Currently, only inline replies have non-NULL ParentPath. See
2979
+ * go/chat-be-inline-reply-indicator.
2980
+ */
2981
+ isInlineReply?: boolean;
2982
+ /** If the message was edited by a user, timestamp of the last edit, in microseconds. */
2983
+ lastEditTime?: string;
2984
+ /** Time when the Message text was last updated in microseconds. */
2985
+ lastUpdateTime?: string;
2986
+ /** A unique id specified on the client side. */
2987
+ localId?: string;
2988
+ /**
2989
+ * An optional payload (restricted to 1P applications) that will be stored with this message. This can only be set by the 1P API and should be used to deliver additional data such a 1P
2990
+ * sync version, 1P entity ID to the client for more advanced functionality [Eg. inform Group Tasks tab of new version while linking, fetch & render a live Task/Meet call tile].
2991
+ */
2992
+ messageIntegrationPayload?: AppsDynamiteSharedMessageIntegrationPayload;
2993
+ /** Where the message was posted from */
2994
+ messageOrigin?: string;
2995
+ /** State of the message, indicating whether the message is visible to all members in the group or is only visible to the sender only, or the private_message_viewer if it is set. */
2996
+ messageState?: string;
2997
+ /** Indicates if this message contains any suggestions that were provided by any Apps. */
2998
+ originAppSuggestions?: AppsDynamiteSharedOriginAppSuggestion[];
2999
+ /**
3000
+ * Personal labels associated with a message for the viewing user. Order of entries is arbitrary and will not list duplicates of the same label_id. See go/chat-labels-design for
3001
+ * details. NOTE: This will be unpopulated in the case of SpaceChangelog events.
3002
+ */
3003
+ personalLabels?: PersonalLabelTag[];
3004
+ /**
3005
+ * A list of per-user private information. This is deprecated, because we no longer plan to support partially private messages or private messages for multiple users. The message_state
3006
+ * and private_message_viewer fields should be sufficient for this infrastructure.
3007
+ */
3008
+ privateMessageInfos?: PrivateMessageInfo[];
3009
+ /**
3010
+ * Should only be set if the Message State is PRIVATE. If set, the message content is only visible to this user (and any apps associated with the message), as well as the message
3011
+ * creator. If unset, a private message is visible to the message creator only.
3012
+ */
3013
+ privateMessageViewer?: UserId;
3014
+ /** Contains additional (currently Hangouts Classic only) properties applicable to this message. */
3015
+ props?: MessageProps;
3016
+ /** Output only. Whether this message has been quoted by another message or not. Used by clients to handle message edit flows for messages that have been quoted. */
3017
+ quotedByState?: string;
3018
+ /** Output only. Metadata for a message that is quoted by this message. */
3019
+ quotedMessageMetadata?: QuotedMessageMetadata;
3020
+ /** A list of user reactions to this message. Ordered by the timestamp of the first reaction, ascending (oldest to newest). */
3021
+ reactions?: AppsDynamiteSharedReaction[];
3022
+ /** Output only. Details of content reports. Set only when the request asks for it. */
3023
+ reports?: ContentReport[];
3024
+ /** The retention settings of the message. */
3025
+ retentionSettings?: AppsDynamiteSharedRetentionSettings;
3026
+ /** A client-specified string that can be used to uniquely identify a message in a space, in lieu of `id.message_id`. */
3027
+ secondaryMessageKey?: string;
3028
+ /** Plaintext body of the Message. */
3029
+ textBody?: string;
3030
+ /** Information for the stoning of a Message. */
3031
+ tombstoneMetadata?: TombstoneMetadata;
3032
+ /** ID of the User who last updated (created/edited/deleted) the Message. This includes information to identify if this was updated by an App on behalf of a user. */
3033
+ updaterId?: UserId;
3034
+ /**
3035
+ * UploadMetadata b/36864213 is an ongoing effort to move UploadMetadata out of annotations field and save it to upload_metadata field only. After the migration, UploadMetadata will
3036
+ * only be saved in this field.
3037
+ */
3038
+ uploadMetadata?: UploadMetadata[];
3039
+ }
3040
+ interface MessageAttributes {
3041
+ /** If true: message is a tombstone in the client. Default false. */
3042
+ isTombstone?: boolean;
3043
+ }
3044
+ interface MessageId {
3045
+ /** 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. */
3046
+ messageId?: string;
3047
+ /** ID of the Message's immediate parent. */
3048
+ parentId?: MessageParentId;
3049
+ }
3050
+ interface MessageInfo {
3051
+ /** The content of a matching message. */
3052
+ message?: Message;
3053
+ /** Searcher's membership state in the space where the message is posted. */
3054
+ searcherMembershipState?: string;
3055
+ }
3056
+ interface MessageParentId {
3057
+ /** ID of the Topic this Message is posted to. NEXT TAG : 5 */
3058
+ topicId?: TopicId;
3059
+ }
3060
+ interface MessageProps {
3061
+ babelProps?: BabelMessageProps;
3326
3062
  }
3327
3063
  interface Metadata {
3328
3064
  /** The creation time for this document or object in the search result. */
@@ -3510,6 +3246,10 @@ declare namespace gapi.client {
3510
3246
  /** A person's read-only photo. A picture shown next to the person's name to help others recognize the person in search results. */
3511
3247
  photos?: Photo[];
3512
3248
  }
3249
+ interface PersonalLabelTag {
3250
+ /** A string ID representing the label. Possible ID values are documented at go/chat-labels-howto:ids. Examples: "^t" for "Starred", "^nu" for "Nudged". */
3251
+ labelId?: string;
3252
+ }
3513
3253
  interface PhoneAccess {
3514
3254
  /** The phone number to dial for this meeting space in INTERNATIONAL format. Full phone number with a leading '+' character and whitespace separations. */
3515
3255
  formattedPhoneNumber?: string;
@@ -3534,6 +3274,10 @@ declare namespace gapi.client {
3534
3274
  /** The URL of the photo. */
3535
3275
  url?: string;
3536
3276
  }
3277
+ interface PinnedItemId {
3278
+ /** Identifier for a Drive file (e.g. Docs, Sheets, Slides). */
3279
+ driveId?: string;
3280
+ }
3537
3281
  interface PollItemsRequest {
3538
3282
  /** The name of connector making this call. Format: datasources/{source_id}/connectors/{ID} */
3539
3283
  connectorName?: string;
@@ -3628,6 +3372,18 @@ declare namespace gapi.client {
3628
3372
  /** scope = ZWIEBACK_SESSION */
3629
3373
  zwiebackSession?: ZwiebackSessionProto;
3630
3374
  }
3375
+ interface PrivateMessageInfo {
3376
+ /** Annotations private to {@code userId}. */
3377
+ annotations?: Annotation[];
3378
+ /** Attachments private to {@code userId}. */
3379
+ attachments?: Attachment[];
3380
+ contextualAddOnMarkup?: GoogleChatV1ContextualAddOnMarkup[];
3381
+ gsuiteIntegrationMetadata?: GsuiteIntegrationMetadata[];
3382
+ /** Text private to {@code user_id}. Initial restriction: Only one of public text or private text is rendered on the client. So if public text is set, private text is ignored. */
3383
+ text?: string;
3384
+ /** Required. The elements in this struct are visible to this user. */
3385
+ userId?: UserId;
3386
+ }
3631
3387
  interface ProcessingError {
3632
3388
  /** Error code indicating the nature of the error. */
3633
3389
  code?: string;
@@ -3835,6 +3591,31 @@ declare namespace gapi.client {
3835
3591
  // tslint:disable-next-line:no-empty-interface
3836
3592
  interface QuerySuggestion {
3837
3593
  }
3594
+ interface QuotedMessageMetadata {
3595
+ /** Output only. Snapshot of the annotations of the quoted message. */
3596
+ annotations?: Annotation[];
3597
+ /** Output only. Custom display profile info for apps. Will be empty for real users. */
3598
+ appProfile?: AppsDynamiteSharedAppProfile;
3599
+ /** Output only. The bot attachment state of the quoted message. Used by clients to display a bot attachment indicator in the UI. */
3600
+ botAttachmentState?: string;
3601
+ /** Output only. ID of the User who posted the quoted message. This includes information to identify if the quoted message was posted by an App on behalf of a user. */
3602
+ creatorId?: UserId;
3603
+ /**
3604
+ * The `last_update_time` of the original message when the client initiated the quote creation. This is derived from the request payload passed from clients. Used to fetch the quoted
3605
+ * message contents at a specific time on the read path. This field is populated from storage directly.
3606
+ */
3607
+ lastUpdateTimeWhenQuotedMicros?: string;
3608
+ /** MessageId of the original message that is being quoted. This is derived from the request payload passed from clients. This field is populated from storage directly. */
3609
+ messageId?: MessageId;
3610
+ /** Output only. The state of the quoted message. Used by clients to display tombstones for quotes that reference a deleted message. */
3611
+ messageState?: string;
3612
+ /** Output only. The retention (OTR) settings of the quoted message. */
3613
+ retentionSettings?: AppsDynamiteSharedRetentionSettings;
3614
+ /** Output only. Snapshot of the text body of the quoted message. */
3615
+ textBody?: string;
3616
+ /** Output only. Upload metadata of the quoted message. NEXT TAG: 11 */
3617
+ uploadMetadata?: UploadMetadata[];
3618
+ }
3838
3619
  interface RbacRoleProto {
3839
3620
  name?: string;
3840
3621
  objectId?: string;
@@ -3851,6 +3632,10 @@ declare namespace gapi.client {
3851
3632
  /** Unicode string representing a single emoji. */
3852
3633
  emoji?: string;
3853
3634
  }
3635
+ interface ReadReceiptsSettingsUpdatedMetadata {
3636
+ /** The new read receipts state. */
3637
+ readReceiptsEnabled?: boolean;
3638
+ }
3854
3639
  interface RecordingEvent {
3855
3640
  /** The initiator of the latest event of the recording. It will be set for all user events (`type` is 100-199) and unset for all server events (`type` is 200-299). */
3856
3641
  deviceId?: string;
@@ -3916,6 +3701,9 @@ declare namespace gapi.client {
3916
3701
  */
3917
3702
  timeZone?: string;
3918
3703
  }
3704
+ interface RequiredMessageFeaturesMetadata {
3705
+ requiredFeatures?: string[];
3706
+ }
3919
3707
  interface ResetSearchApplicationRequest {
3920
3708
  /** Common debug options. */
3921
3709
  debugOptions?: DebugOptions;
@@ -3927,6 +3715,8 @@ declare namespace gapi.client {
3927
3715
  roleId?: number;
3928
3716
  }
3929
3717
  interface ResponseDebugInfo {
3718
+ /** Experiments enabled in QAPI. */
3719
+ enabledExperiments?: number[];
3930
3720
  /** General debug info formatted for display. */
3931
3721
  formattedDebugInfo?: string;
3932
3722
  }
@@ -3968,6 +3758,38 @@ declare namespace gapi.client {
3968
3758
  /** Indicates the ranking importance given to property when it is matched during retrieval. Once set, the token importance of a property cannot be changed. */
3969
3759
  importance?: string;
3970
3760
  }
3761
+ interface RoomRenameMetadata {
3762
+ newName?: string;
3763
+ /** NEXT_TAG: 3 */
3764
+ prevName?: string;
3765
+ }
3766
+ interface RoomUpdatedMetadata {
3767
+ groupDetailsMetadata?: GroupDetailsUpdatedMetadata;
3768
+ groupLinkSharingEnabled?: boolean;
3769
+ /** The user who initiated this room update. Complete member profiles, when ListTopicsRequest FetchOptions.USER is set. Otherwise, only the id will be filled in. */
3770
+ initiator?: User;
3771
+ /** The type of the user who initiated this room update. */
3772
+ initiatorType?: string;
3773
+ /** What was updated in the room. */
3774
+ name?: string;
3775
+ renameMetadata?: RoomRenameMetadata;
3776
+ /** DEPRECATED: See GroupVisibility proto definition. */
3777
+ visibility?: AppsDynamiteSharedGroupVisibility;
3778
+ }
3779
+ interface Roster {
3780
+ avatarUrl?: string;
3781
+ id?: RosterId;
3782
+ membershipCount?: number;
3783
+ name?: string;
3784
+ /** Roster gaia key, usually an email address. Set in looking up rosters response. */
3785
+ rosterGaiaKey?: string;
3786
+ /** Roster deletion state - considered active unless set to deleted */
3787
+ rosterState?: string;
3788
+ }
3789
+ interface RosterId {
3790
+ /** Opaque, server-assigned ID of the Roster. */
3791
+ id?: string;
3792
+ }
3971
3793
  interface SafeUrlProto {
3972
3794
  /**
3973
3795
  * 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
@@ -4244,12 +4066,31 @@ declare namespace gapi.client {
4244
4066
  /** This is optional because required enums cannot be extended. */
4245
4067
  type?: string;
4246
4068
  }
4069
+ interface SlashCommandMetadata {
4070
+ /** Hint string for the arguments expected by the slash command. */
4071
+ argumentsHint?: string;
4072
+ /** Unique id for the slash command. */
4073
+ commandId?: string;
4074
+ /** Name of the slash command. */
4075
+ commandName?: string;
4076
+ /** ID of the bot which owns the slash command. */
4077
+ id?: UserId;
4078
+ /** Whether or not this slash command should trigger a dialog. */
4079
+ triggersDialog?: boolean;
4080
+ type?: string;
4081
+ }
4247
4082
  interface Snippet {
4248
4083
  /** The matched ranges in the snippet. */
4249
4084
  matchRanges?: MatchRange[];
4250
4085
  /** The snippet of the document. The snippet of the document. May contain escaped HTML character that should be unescaped prior to rendering. */
4251
4086
  snippet?: string;
4252
4087
  }
4088
+ interface SocialCommonAttachmentAttachment {
4089
+ /** An embed represents an external entity. See go/es-embeds. */
4090
+ embedItem?: EmbedClientItem;
4091
+ /** An id to uniquely identify an attachment when several attachments are in a collection. */
4092
+ id?: string;
4093
+ }
4253
4094
  interface SocialGraphNodeProto {
4254
4095
  /** The fields from ccc/socialgraph/socialgraphnode.proto:SgnNode that uniquely identify a social graph node. The 'ident' field is not included here because its value can be changed. */
4255
4096
  sgnDomain?: string;
@@ -4298,6 +4139,10 @@ declare namespace gapi.client {
4298
4139
  /** Importance of the source. */
4299
4140
  sourceImportance?: string;
4300
4141
  }
4142
+ interface SpaceId {
4143
+ /** Unique, immutable ID of the Space */
4144
+ spaceId?: string;
4145
+ }
4301
4146
  interface SpellResult {
4302
4147
  /** The suggested spelling of the query. */
4303
4148
  suggestedQuery?: string;
@@ -4393,6 +4238,20 @@ declare namespace gapi.client {
4393
4238
  /** The suggested query that will be used for search, when the user clicks on the suggestion */
4394
4239
  suggestedQuery?: string;
4395
4240
  }
4241
+ interface SupportUrls {
4242
+ /** Link to the admin configuration webpage for the bot. Configured by Pantheon, may be empty. */
4243
+ adminConfigUrl?: string;
4244
+ /** Link to the deletion policy webpage for the bot. Configured by Pantheon, may be empty. */
4245
+ deletionPolicyUrl?: string;
4246
+ /** Link to the privacy policy webpage for the bot. May be empty. */
4247
+ privacyPolicyUrl?: string;
4248
+ /** Link to the setup webpage for the bot. Configured by Pantheon, may be empty. */
4249
+ setupUrl?: string;
4250
+ /** Link to the support webpage for the developer of the bot. May be empty. */
4251
+ supportUrl?: string;
4252
+ /** Link to the terms of service webpage for the bot. May be empty. */
4253
+ tosUrl?: string;
4254
+ }
4396
4255
  interface SwitchWidget {
4397
4256
  controlType?: string;
4398
4257
  /** The name of the switch widget which is will be used in FormInput. */
@@ -4402,9 +4261,6 @@ declare namespace gapi.client {
4402
4261
  /** The value is what is passed back in apps script callback. */
4403
4262
  value?: string;
4404
4263
  }
4405
- // tslint:disable-next-line:no-empty-interface
4406
- interface TasksMetadata {
4407
- }
4408
4264
  interface TextButton {
4409
4265
  /** The alternative text used for accessibility Next field number: 7. */
4410
4266
  altText?: string;
@@ -4498,12 +4354,25 @@ declare namespace gapi.client {
4498
4354
  interface TimestampValues {
4499
4355
  values?: string[];
4500
4356
  }
4357
+ interface TombstoneMetadata {
4358
+ /** Indicates the type of Tombstone. */
4359
+ tombstoneType?: string;
4360
+ }
4501
4361
  interface Toolbar {
4502
4362
  /** Background color of the toolbar in RBG hex representation. */
4503
4363
  color?: string;
4504
4364
  iconUrl?: string;
4505
4365
  name?: string;
4506
4366
  }
4367
+ interface TopicId {
4368
+ /** The Space or DM that the topic belongs to. */
4369
+ groupId?: GroupId;
4370
+ /**
4371
+ * Opaque, server-assigned ID of the Topic. While this ID is guaranteed to be unique within the Space, it's not guaranteed to be globally unique. Internal usage: this field can be
4372
+ * empty in the following cases: 1. To create the first message in a topic. 2. To list last N messages of a Space (regardless of topic).
4373
+ */
4374
+ topicId?: string;
4375
+ }
4507
4376
  interface TranscriptionSessionInfo {
4508
4377
  /** Transcription session's state information. */
4509
4378
  sessionStateInfo?: SessionStateInfo;
@@ -4567,12 +4436,129 @@ declare namespace gapi.client {
4567
4436
  /** The name of the content reference. The maximum length is 2048 characters. */
4568
4437
  name?: string;
4569
4438
  }
4439
+ interface UploadMetadata {
4440
+ /** Opaque token. Clients shall simply pass it back to the Backend. This field will NOT be saved into storage. */
4441
+ attachmentToken?: string;
4442
+ /** Information about the uploaded attachment that is only used in Backend. This field will NOT be sent out of Google. */
4443
+ backendUploadMetadata?: AppsDynamiteSharedBackendUploadMetadata;
4444
+ /**
4445
+ * The "new" secure identifier for Drive files. Should be used instead of the deprecated string drive_id field above. This should only be set if the upload file has been added to
4446
+ * Drive. Note that older Drive files that do not have a ResourceKey should still use this field, with the resource_key field unset.
4447
+ */
4448
+ clonedAuthorizedItemId?: AuthorizedItemId;
4449
+ /**
4450
+ * DriveAction for organizing the cloned version of this upload in Drive, if the file has been added to Drive. This field is not set if the file has not been added to Drive.
4451
+ * Additionally, this field is only set when part of a FileResult in a ListFilesResponse.
4452
+ */
4453
+ clonedDriveAction?: string;
4454
+ /** Reference to a Drive ID, if this upload file has been previously cloned to Drive. Note: this is deprecated in favor of the AuthorizedItemId below. */
4455
+ clonedDriveId?: string;
4456
+ /** The original file name for the content, not the full path. */
4457
+ contentName?: string;
4458
+ /** Type is from Scotty's best_guess by default: http://google3/uploader/agent/scotty_agent.proto?l=51&rcl=140889785 */
4459
+ contentType?: string;
4460
+ /** The metrics metadata of the Data Loss Prevention attachment scan. */
4461
+ dlpMetricsMetadata?: AppsDynamiteSharedDlpMetricsMetadata;
4462
+ /** A copy of the LocalId in Annotation. This field is supposed to be filled by server only. */
4463
+ localId?: string;
4464
+ /** Original dimension of the content. Only set for image attachments. */
4465
+ originalDimension?: AppsDynamiteSharedDimension;
4466
+ /** Reference to a transcoded video attachment. Only set for video attachments. */
4467
+ videoReference?: AppsDynamiteSharedVideoReference;
4468
+ /** Result for a virus scan. It's duplicated in the above field apps.dynamite.shared.BackendUploadMetadata */
4469
+ virusScanResult?: string;
4470
+ }
4471
+ interface UrlMetadata {
4472
+ /** Domain for this url. If it's an IP address the address is returned. */
4473
+ domain?: string;
4474
+ /** The signed GWS URL. */
4475
+ gwsUrl?: SafeUrlProto;
4476
+ /** The expiration timestamp for GWS URL, only set when gws_url is set. */
4477
+ gwsUrlExpirationTimestamp?: string;
4478
+ /** Dimensions of the image: height. This field is string to match with page render service response. Deprecated. Use int_image_height instead. */
4479
+ imageHeight?: string;
4480
+ /** Representative image of the website. */
4481
+ imageUrl?: string;
4482
+ /** Dimensions of the image: width. This field is string to match with page render service response. Deprecated. Use int_image_height instead. */
4483
+ imageWidth?: string;
4484
+ /** Dimensions of the image: height. */
4485
+ intImageHeight?: number;
4486
+ /** Dimensions of the image: width. */
4487
+ intImageWidth?: number;
4488
+ /**
4489
+ * Mime type of the content (Currently mapped from Page Render Service ItemType) Note that this is not necessarily the mime type of the http resource. For example a text/html from
4490
+ * youtube or vimeo may actually be classified as a video type. Then we shall mark it as video/* since we don't know exactly what type of video it is. NEXT TAG : 16
4491
+ */
4492
+ mimeType?: string;
4493
+ /** The stable redirect URL pointing to frontend server. */
4494
+ redirectUrl?: SafeUrlProto;
4495
+ /** If the UrlMetadata is missing data for rendering a chip. Deprecated. Use Annotation.ChipRenderType instead. */
4496
+ shouldNotRender?: boolean;
4497
+ /** Snippet/small description of the weblink. */
4498
+ snippet?: string;
4499
+ /** Title of the Weblink. */
4500
+ title?: string;
4501
+ /** The original URL. */
4502
+ url?: SafeUrlProto;
4503
+ }
4504
+ interface User {
4505
+ /** URL for the avatar picture of the User in dynamite */
4506
+ avatarUrl?: string;
4507
+ /** Information about whether the user is blocked by requester and/or has blocked requester. */
4508
+ blockRelationship?: AppsDynamiteSharedUserBlockRelationship;
4509
+ /** Bot-specific profile information. Leave it empty for human users. */
4510
+ botInfo?: BotInfo;
4511
+ /** Deleted flag, if true, means User has been soft-deleted/purged Deprecated. Use user_account_state field instead. */
4512
+ deleted?: boolean;
4513
+ /** Email ID of the user */
4514
+ email?: string;
4515
+ /** First or given name of the user */
4516
+ firstName?: string;
4517
+ /** Gender of the user */
4518
+ gender?: string;
4519
+ /** UserId */
4520
+ id?: UserId;
4521
+ /** Set to true if none of the depending services (Gaia, PeopleApi) returns any info for this user. */
4522
+ isAnonymous?: boolean;
4523
+ /** Last or family name of the user */
4524
+ lastName?: string;
4525
+ /** Non-unique, user-defined display name of the User */
4526
+ name?: string;
4527
+ /** Information about whether the user is a consumer user, or the GSuite customer that they belong to. */
4528
+ organizationInfo?: AppsDynamiteSharedOrganizationInfo;
4529
+ /** Phone number(s) of the user */
4530
+ phoneNumber?: AppsDynamiteSharedPhoneNumber[];
4531
+ /** State of user's Gaia Account */
4532
+ userAccountState?: string;
4533
+ /** Visibility of user's Profile */
4534
+ userProfileVisibility?: string;
4535
+ }
4570
4536
  interface UserDisplayInfo {
4571
4537
  /** The avatar to show for this user */
4572
4538
  avatarUrl?: string;
4573
4539
  /** The name to show for this user */
4574
4540
  displayName?: string;
4575
4541
  }
4542
+ interface UserId {
4543
+ /**
4544
+ * Optional. Opaque, server-assigned ID of the user profile associated with App/user acting on behalf of the human user. This is currently only set when a 3P application is acting on
4545
+ * the user's behalf.
4546
+ */
4547
+ actingUserId?: string;
4548
+ /** Opaque, server-assigned ID of the User. */
4549
+ id?: string;
4550
+ /**
4551
+ * Optional. Identifier of the App involved (directly or on behalf of a human creator) in creating this message. This is not set if the user posted a message directly, but is used in
4552
+ * the case of, for example, a message being generated by a 1P integration based on a user action (creating an event, creating a task etc). This should only be used on the BE. For
4553
+ * clients, please use the field in the FE message proto instead (google3/apps/dynamite/v1/frontend/api/message.proto?q=origin_app_id).
4554
+ */
4555
+ originAppId?: AppId;
4556
+ /**
4557
+ * Clients do not need to send UserType to Backend, but Backend will always send this field to clients per the following rule: 1. For HUMAN Ids, the field is empty but by default
4558
+ * .getType() will return HUMAN. 2. For BOT Ids, the field is ALWAYS set to BOT.
4559
+ */
4560
+ type?: string;
4561
+ }
4576
4562
  interface UserInfo {
4577
4563
  /** Describes how updater_count_to_show should be used. */
4578
4564
  updaterCountDisplayType?: string;
@@ -4583,7 +4569,7 @@ declare namespace gapi.client {
4583
4569
  /** The gaia id of the updater for clients to show used for Gmail items. If the updater is an external user, the email field below should be populated. */
4584
4570
  updaterToShowGaiaId?: string;
4585
4571
  /** The updater for clients to show used for Dynamite Chat items. */
4586
- updaterToShowUserId?: AppsDynamiteUserId;
4572
+ updaterToShowUserId?: UserId;
4587
4573
  }
4588
4574
  interface UserMentionData {
4589
4575
  email?: string;
@@ -4594,6 +4580,27 @@ declare namespace gapi.client {
4594
4580
  /** An obfuscated gaia ID: */
4595
4581
  userId?: string;
4596
4582
  }
4583
+ interface UserMentionMetadata {
4584
+ /**
4585
+ * Display name of the mentioned user. This field should remain empty when clients resolve a UserMention annotation. It will be filled in when a UserMention is generated by the
4586
+ * Integration Server.
4587
+ */
4588
+ displayName?: string;
4589
+ /**
4590
+ * Gender of the mentioned user. One of "female", "male" or "other". Used for choosing accurate translations for strings that contain the UserMention, when these need to be constructed
4591
+ * (e.g. task assignment update message). This field should remain empty when clients resolve a UserMention. It will be filled in when a UserMention is generated by the Integration
4592
+ * Server.
4593
+ */
4594
+ gender?: string;
4595
+ /** To be deprecated. Use invitee_info field instead. ID of the User mentioned. This field should remain empty when type == MENTION_ALL. */
4596
+ id?: UserId;
4597
+ /**
4598
+ * Invitee UserId and email used when mentioned. This field should remain empty when type == MENTION_ALL. Invitee_info.email is only used when a user is @-mentioned with an email
4599
+ * address, and it will be empty when clients get messages from Backend.
4600
+ */
4601
+ inviteeInfo?: InviteeInfo;
4602
+ type?: string;
4603
+ }
4597
4604
  interface Value {
4598
4605
  booleanValue?: boolean;
4599
4606
  dateValue?: Date;
@@ -4613,7 +4620,12 @@ declare namespace gapi.client {
4613
4620
  value?: Value;
4614
4621
  }
4615
4622
  interface VideoCallMetadata {
4616
- meetingUrl?: string;
4623
+ /** Thor meeting space. */
4624
+ meetingSpace?: MeetingSpace;
4625
+ /** If this field is set to true, server should still contact external backends to get metadata for search but clients should not render this chip. */
4626
+ shouldNotRender?: boolean;
4627
+ /** Whether this meeting space was created via Dynamite in this Dynamite group. */
4628
+ wasCreatedInCurrentGroup?: boolean;
4617
4629
  }
4618
4630
  interface VideoInfo {
4619
4631
  /** Duration of the video in milliseconds. This field can be absent for recently uploaded video or inaccurate sometimes. */
@@ -4659,8 +4671,6 @@ declare namespace gapi.client {
4659
4671
  title?: string;
4660
4672
  /** The uri for whiteboard document. */
4661
4673
  uri?: string;
4662
- /** This field is deprecated and will be removed. Please use "uri" instead. */
4663
- whiteboardUri?: string;
4664
4674
  }
4665
4675
  interface WidgetMarkup {
4666
4676
  /** buttons is also oneof data and only one of these fields should be set. */
@@ -4707,6 +4717,14 @@ declare namespace gapi.client {
4707
4717
  /** Output only. A URL that can be used to watch the meeting broadcast. Will be populated by the backend. */
4708
4718
  viewUrl?: string;
4709
4719
  }
4720
+ interface YoutubeMetadata {
4721
+ /** YouTube resource ID of the artifact. */
4722
+ id?: string;
4723
+ /** If this field is set to true, server should still contact external backends to get metadata for search but clients should not render this chip. */
4724
+ shouldNotRender?: boolean;
4725
+ /** YouTube query parameter for timestamp. YouTube specific flag that allows users to embed time token when sharing a link. This property contains parsed time token in seconds. */
4726
+ startTime?: number;
4727
+ }
4710
4728
  interface YoutubeUserProto {
4711
4729
  youtubeUserId?: string;
4712
4730
  }