@maxim_mazurok/gapi.client.chat-v1 0.0.20230423 → 0.0.20230427

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 +947 -474
  2. package/package.json +1 -1
  3. package/tests.ts +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://chat.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230423
12
+ // Revision: 20230427
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -24,109 +24,147 @@ declare namespace gapi.client {
24
24
  namespace chat {
25
25
  interface ActionParameter {
26
26
  /** The name of the parameter for the action script. */
27
- key?: string;
27
+ key?:
28
+ string;
28
29
  /** The value of the parameter. */
29
- value?: string;
30
+ value?:
31
+ string;
30
32
  }
31
33
  interface ActionResponse {
32
34
  /** Input only. A response to an event related to a [dialog](https://developers.google.com/chat/how-tos/dialogs). Must be accompanied by `ResponseType.Dialog`. */
33
- dialogAction?: DialogAction;
35
+ dialogAction?:
36
+ DialogAction;
34
37
  /** Input only. The type of Chat app response. */
35
- type?: string;
38
+ type?:
39
+ string;
36
40
  /** Input only. URL for users to auth or config. (Only for REQUEST_CONFIG response types.) */
37
- url?: string;
41
+ url?:
42
+ string;
38
43
  }
39
44
  interface ActionStatus {
40
45
  /** The status code. */
41
- statusCode?: string;
46
+ statusCode?:
47
+ string;
42
48
  /** The message to send users about the status of their request. If unset, a generic message based on the `status_code` is sent. */
43
- userFacingMessage?: string;
49
+ userFacingMessage?:
50
+ string;
44
51
  }
45
52
  interface Annotation {
46
53
  /** Length of the substring in the plain-text message body this annotation corresponds to. */
47
- length?: number;
54
+ length?:
55
+ number;
48
56
  /** The metadata for a slash command. */
49
- slashCommand?: SlashCommandMetadata;
57
+ slashCommand?:
58
+ SlashCommandMetadata;
50
59
  /** Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to. */
51
- startIndex?: number;
60
+ startIndex?:
61
+ number;
52
62
  /** The type of this annotation. */
53
- type?: string;
63
+ type?:
64
+ string;
54
65
  /** The metadata of user mention. */
55
- userMention?: UserMentionMetadata;
66
+ userMention?:
67
+ UserMentionMetadata;
56
68
  }
57
69
  interface Attachment {
58
70
  /** A reference to the attachment data. This is used with the media API to download the attachment data. */
59
- attachmentDataRef?: AttachmentDataRef;
71
+ attachmentDataRef?:
72
+ AttachmentDataRef;
60
73
  /** The original file name for the content, not the full path. */
61
- contentName?: string;
74
+ contentName?:
75
+ string;
62
76
  /** The content type (MIME type) of the file. */
63
- contentType?: string;
77
+ contentType?:
78
+ string;
64
79
  /** Output only. The download URL which should be used to allow a human user to download the attachment. Chat apps should not use this URL to download attachment content. */
65
- downloadUri?: string;
80
+ downloadUri?:
81
+ string;
66
82
  /** A reference to the drive attachment. This is used with the Drive API. */
67
- driveDataRef?: DriveDataRef;
83
+ driveDataRef?:
84
+ DriveDataRef;
68
85
  /** Resource name of the attachment, in the form "spaces/*‍/messages/*‍/attachments/*". */
69
- name?: string;
86
+ name?:
87
+ string;
70
88
  /** The source of the attachment. */
71
- source?: string;
89
+ source?:
90
+ string;
72
91
  /** Output only. The thumbnail URL which should be used to preview the attachment to a human user. Chat apps should not use this URL to download attachment content. */
73
- thumbnailUri?: string;
92
+ thumbnailUri?:
93
+ string;
74
94
  }
75
95
  interface AttachmentDataRef {
76
96
  /** The resource name of the attachment data. This is used with the media API to download the attachment data. */
77
- resourceName?: string;
97
+ resourceName?:
98
+ string;
78
99
  }
79
100
  interface Button {
80
101
  /** A button with image and onclick action. */
81
- imageButton?: ImageButton;
102
+ imageButton?:
103
+ ImageButton;
82
104
  /** A button with text and onclick action. */
83
- textButton?: TextButton;
105
+ textButton?:
106
+ TextButton;
84
107
  }
85
108
  interface Card {
86
109
  /** The actions of this card. */
87
- cardActions?: CardAction[];
110
+ cardActions?:
111
+ CardAction[];
88
112
  /** The header of the card. A header usually contains a title and an image. */
89
- header?: CardHeader;
113
+ header?:
114
+ CardHeader;
90
115
  /** Name of the card. */
91
- name?: string;
116
+ name?:
117
+ string;
92
118
  /** Sections are separated by a line divider. */
93
- sections?: Section[];
119
+ sections?:
120
+ Section[];
94
121
  }
95
122
  interface CardAction {
96
123
  /** The label used to be displayed in the action menu item. */
97
- actionLabel?: string;
124
+ actionLabel?:
125
+ string;
98
126
  /** The onclick action for this action item. */
99
- onClick?: OnClick;
127
+ onClick?:
128
+ OnClick;
100
129
  }
101
130
  interface CardHeader {
102
131
  /** The image's type (e.g. square border or circular border). */
103
- imageStyle?: string;
132
+ imageStyle?:
133
+ string;
104
134
  /** The URL of the image in the card header. */
105
- imageUrl?: string;
135
+ imageUrl?:
136
+ string;
106
137
  /** The subtitle of the card header. */
107
- subtitle?: string;
138
+ subtitle?:
139
+ string;
108
140
  /**
109
141
  * The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each will take up 1 line. If only the title is specified, it will take up both
110
142
  * lines.
111
143
  */
112
- title?: string;
144
+ title?:
145
+ string;
113
146
  }
114
147
  interface CardWithId {
115
148
  /**
116
149
  * Cards support a defined layout, interactive UI elements like buttons, and rich media like images. Use this card to present detailed information, gather information from users, and
117
150
  * guide users to take a next step.
118
151
  */
119
- card?: GoogleAppsCardV1Card;
152
+ card?:
153
+ GoogleAppsCardV1Card;
120
154
  /** Required for `cardsV2` messages. Chat app-specified identifier for this widget. Scoped within a message. */
121
- cardId?: string;
155
+ cardId?:
156
+ string;
122
157
  }
123
158
  interface ChatAppLogEntry {
124
159
  /** The deployment that caused the error. For Chat apps built in Apps Script, this is the deployment ID defined by Apps Script. */
125
- deployment?: string;
160
+ deployment?:
161
+ string;
126
162
  /** The unencrypted `callback_method` name that was running when the error was encountered. */
127
- deploymentFunction?: string;
163
+ deploymentFunction?:
164
+ string;
128
165
  /** The error code and message. */
129
- error?: Status;
166
+ error?:
167
+ Status;
130
168
  }
131
169
  interface Color {
132
170
  /**
@@ -135,13 +173,17 @@ declare namespace gapi.client {
135
173
  * rather than a simple float scalar so that it is possible to distinguish between a default value and the value being unset. If omitted, this color object is rendered as a solid color
136
174
  * (as if the alpha value had been explicitly given a value of 1.0).
137
175
  */
138
- alpha?: number;
176
+ alpha?:
177
+ number;
139
178
  /** The amount of blue in the color as a value in the interval [0, 1]. */
140
- blue?: number;
179
+ blue?:
180
+ number;
141
181
  /** The amount of green in the color as a value in the interval [0, 1]. */
142
- green?: number;
182
+ green?:
183
+ number;
143
184
  /** The amount of red in the color as a value in the interval [0, 1]. */
144
- red?: number;
185
+ red?:
186
+ number;
145
187
  }
146
188
  interface CommonEventObject {
147
189
  /**
@@ -150,94 +192,121 @@ declare namespace gapi.client {
150
192
  * picker, a `DateTimeInput`. For a date-only picker, a `DateInput`. For a time-only picker, a `TimeInput`. Corresponds with the data entered by a user on a card in a
151
193
  * [dialog](https://developers.google.com/chat/how-tos/dialogs).
152
194
  */
153
- formInputs?: { [P in string]: Inputs };
195
+ formInputs?:
196
+ { [P in string]: Inputs };
154
197
  /** The hostApp enum which indicates the app the add-on is invoked from. Always `CHAT` for Chat apps. */
155
- hostApp?: string;
198
+ hostApp?:
199
+ string;
156
200
  /** Name of the invoked function associated with the widget. Only set for Chat apps. */
157
- invokedFunction?: string;
201
+ invokedFunction?:
202
+ string;
158
203
  /** Custom [parameters](/chat/api/reference/rest/v1/cards#ActionParameter) passed to the invoked function. Both keys and values must be strings. */
159
- parameters?: { [P in string]: string };
204
+ parameters?:
205
+ { [P in string]: string };
160
206
  /** The platform enum which indicates the platform where the event originates (`WEB`, `IOS`, or `ANDROID`). Not supported by Chat apps. */
161
- platform?: string;
207
+ platform?:
208
+ string;
162
209
  /**
163
210
  * The timezone ID and offset from Coordinated Universal Time (UTC). Only supported for the event types
164
211
  * [`CARD_CLICKED`](https://developers.google.com/chat/api/reference/rest/v1/EventType#ENUM_VALUES.CARD_CLICKED) and
165
212
  * [`SUBMIT_DIALOG`](https://developers.google.com/chat/api/reference/rest/v1/DialogEventType#ENUM_VALUES.SUBMIT_DIALOG).
166
213
  */
167
- timeZone?: TimeZone;
214
+ timeZone?:
215
+ TimeZone;
168
216
  /** The full `locale.displayName` in the format of [ISO 639 language code]-[ISO 3166 country/region code] such as "en-US". */
169
- userLocale?: string;
217
+ userLocale?:
218
+ string;
170
219
  }
171
220
  interface DateInput {
172
221
  /** Time since epoch time, in milliseconds. */
173
- msSinceEpoch?: string;
222
+ msSinceEpoch?:
223
+ string;
174
224
  }
175
225
  interface DateTimeInput {
176
226
  /** Whether the `datetime` input includes a calendar date. */
177
- hasDate?: boolean;
227
+ hasDate?:
228
+ boolean;
178
229
  /** Whether the `datetime` input includes a timestamp. */
179
- hasTime?: boolean;
230
+ hasTime?:
231
+ boolean;
180
232
  /** Time since epoch time, in milliseconds. */
181
- msSinceEpoch?: string;
233
+ msSinceEpoch?:
234
+ string;
182
235
  }
183
236
  interface DeprecatedEvent {
184
237
  /**
185
238
  * The form action data associated with an interactive card that was clicked. Only populated for CARD_CLICKED events. See the [Interactive Cards guide](/chat/how-tos/cards-onclick) for
186
239
  * more information.
187
240
  */
188
- action?: FormAction;
241
+ action?:
242
+ FormAction;
189
243
  /**
190
244
  * Represents information about the user's client, such as locale, host app, and platform. For Chat apps, `CommonEventObject` includes information submitted by users interacting with
191
245
  * [dialogs](https://developers.google.com/chat/how-tos/dialogs), like data entered on a card.
192
246
  */
193
- common?: CommonEventObject;
247
+ common?:
248
+ CommonEventObject;
194
249
  /**
195
250
  * The URL the Chat app should redirect the user to after they have completed an authorization or configuration flow outside of Google Chat. For more information, see [Connect a Chat
196
251
  * app with other services & tools](https://developers.google.com/chat/how-tos/connect-web-services-tools).
197
252
  */
198
- configCompleteRedirectUrl?: string;
253
+ configCompleteRedirectUrl?:
254
+ string;
199
255
  /** The type of [dialog](https://developers.google.com/chat/how-tos/dialogs) event received. */
200
- dialogEventType?: string;
256
+ dialogEventType?:
257
+ string;
201
258
  /** The timestamp indicating when the event occurred. */
202
- eventTime?: string;
259
+ eventTime?:
260
+ string;
203
261
  /** True when the event is related to [dialogs](https://developers.google.com/chat/how-tos/dialogs). */
204
- isDialogEvent?: boolean;
262
+ isDialogEvent?:
263
+ boolean;
205
264
  /** The message that triggered the event, if applicable. */
206
- message?: Message;
265
+ message?:
266
+ Message;
207
267
  /** The space in which the event occurred. */
208
- space?: Space;
268
+ space?:
269
+ Space;
209
270
  /**
210
271
  * The Chat app-defined key for the thread related to the event. See [`spaces.messages.thread.threadKey`](/chat/api/reference/rest/v1/spaces.messages#Thread.FIELDS.thread_key) for more
211
272
  * information.
212
273
  */
213
- threadKey?: string;
274
+ threadKey?:
275
+ string;
214
276
  /**
215
277
  * A secret value that legacy Chat apps can use to verify if a request is from Google. Google randomly generates the token, and its value remains static. You can obtain, revoke, or
216
278
  * regenerate the token from the [Chat API configuration page](https://console.cloud.google.com/apis/api/chat.googleapis.com/hangouts-chat) in the Google Cloud Console. Modern Chat
217
279
  * apps don't use this field. It is absent from API responses and the [Chat API configuration page](https://console.cloud.google.com/apis/api/chat.googleapis.com/hangouts-chat).
218
280
  */
219
- token?: string;
281
+ token?:
282
+ string;
220
283
  /** The type of the event. */
221
- type?: string;
284
+ type?:
285
+ string;
222
286
  /** The user that triggered the event. */
223
- user?: User;
287
+ user?:
288
+ User;
224
289
  }
225
290
  interface Dialog {
226
291
  /** Input only. Body of the dialog, which is rendered in a modal. Google Chat apps do not support the following card entities: `DateTimePicker`, `OnChangeAction`. */
227
- body?: GoogleAppsCardV1Card;
292
+ body?:
293
+ GoogleAppsCardV1Card;
228
294
  }
229
295
  interface DialogAction {
230
296
  /**
231
297
  * Input only. Status for a request to either invoke or submit a [dialog](https://developers.google.com/chat/how-tos/dialogs). Displays a status and message to users, if necessary. For
232
298
  * example, in case of an error or success.
233
299
  */
234
- actionStatus?: ActionStatus;
300
+ actionStatus?:
301
+ ActionStatus;
235
302
  /** Input only. [Dialog](https://developers.google.com/chat/how-tos/dialogs) for the request. */
236
- dialog?: Dialog;
303
+ dialog?:
304
+ Dialog;
237
305
  }
238
306
  interface DriveDataRef {
239
307
  /** The id for the drive file, for use with the Drive API. */
240
- driveFileId?: string;
308
+ driveFileId?:
309
+ string;
241
310
  }
242
311
  // tslint:disable-next-line:no-empty-interface
243
312
  interface Empty {
@@ -247,16 +316,19 @@ declare namespace gapi.client {
247
316
  * The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. The same
248
317
  * method name can be used for several elements that trigger a common behavior if desired.
249
318
  */
250
- actionMethodName?: string;
319
+ actionMethodName?:
320
+ string;
251
321
  /** List of action parameters. */
252
- parameters?: ActionParameter[];
322
+ parameters?:
323
+ ActionParameter[];
253
324
  }
254
325
  interface GoogleAppsCardV1Action {
255
326
  /**
256
327
  * A custom function to invoke when the containing element is clicked or othrwise activated. For example usage, see [Create interactive
257
328
  * cards](https://developers.google.com/chat/how-tos/cards-onclick).
258
329
  */
259
- function?: string;
330
+ function?:
331
+ string;
260
332
  /**
261
333
  * Optional. Required when opening a [dialog](https://developers.google.com/chat/how-tos/dialogs). What to do in response to an interaction with a user, such as a user clicking button
262
334
  * on a card message. If unspecified, the app responds by executing an `action` - like opening a link or running a function - as normal. By specifying an `interaction`, the app can
@@ -264,11 +336,14 @@ declare namespace gapi.client {
264
336
  * specified, a loading indicator is not shown. Supported by Chat apps, but not Google Workspace Add-ons. If specified for an add-on, the entire card is stripped and nothing is shown
265
337
  * in the client.
266
338
  */
267
- interaction?: string;
339
+ interaction?:
340
+ string;
268
341
  /** Specifies the loading indicator that the action displays while making the call to the action. */
269
- loadIndicator?: string;
342
+ loadIndicator?:
343
+ string;
270
344
  /** List of action parameters. */
271
- parameters?: GoogleAppsCardV1ActionParameter[];
345
+ parameters?:
346
+ GoogleAppsCardV1ActionParameter[];
272
347
  /**
273
348
  * Indicates whether form values persist after the action. The default value is `false`. If `true`, form values remain after the action is triggered. To let the user make changes while
274
349
  * the action is being processed, set [LoadIndicator](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `NONE`. For [card
@@ -278,28 +353,35 @@ declare namespace gapi.client {
278
353
  * when the action is triggered. To prevent the user from making changes while the action is being processed, set
279
354
  * [LoadIndicator](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `SPINNER`.
280
355
  */
281
- persistValues?: boolean;
356
+ persistValues?:
357
+ boolean;
282
358
  }
283
359
  interface GoogleAppsCardV1ActionParameter {
284
360
  /** The name of the parameter for the action script. */
285
- key?: string;
361
+ key?:
362
+ string;
286
363
  /** The value of the parameter. */
287
- value?: string;
364
+ value?:
365
+ string;
288
366
  }
289
367
  interface GoogleAppsCardV1BorderStyle {
290
368
  /** The corner radius for the border. */
291
- cornerRadius?: number;
369
+ cornerRadius?:
370
+ number;
292
371
  /** The colors to use when the type is `BORDER_TYPE_STROKE`. */
293
- strokeColor?: Color;
372
+ strokeColor?:
373
+ Color;
294
374
  /** The border type. */
295
- type?: string;
375
+ type?:
376
+ string;
296
377
  }
297
378
  interface GoogleAppsCardV1Button {
298
379
  /**
299
380
  * The alternative text used for accessibility. Set descriptive text that lets users know what the button does. For example, if a button opens a hyperlink, you might write: "Opens a
300
381
  * new browser tab and navigates to the Google Chat developer documentation at https://developers.google.com/chat".
301
382
  */
302
- altText?: string;
383
+ altText?:
384
+ string;
303
385
  /**
304
386
  * If set, the button is filled with a solid background color and the font color changes to maintain contrast with the background color. For example, setting a blue background will
305
387
  * likely result in white text. If unset, the image background is white and the font color is blue. For red, green and blue, the value of each field is a `float` number that can be
@@ -308,19 +390,25 @@ declare namespace gapi.client {
308
390
  * (1.0 - alpha) * (background color) ``` For alpha, a value of 1 corresponds with a solid color, and a value of 0 corresponds with a completely transparent color. For example, the
309
391
  * following color represents a half transparent red: ``` "color": { "red": 1, "green": 0, "blue": 0, "alpha": 0.5 } ```
310
392
  */
311
- color?: Color;
393
+ color?:
394
+ Color;
312
395
  /** If `true`, the button is displayed in an inactive state and doesn't respond to user actions. */
313
- disabled?: boolean;
396
+ disabled?:
397
+ boolean;
314
398
  /** The icon image. If both `icon` and `text` are set, then the icon appears before the text. */
315
- icon?: GoogleAppsCardV1Icon;
399
+ icon?:
400
+ GoogleAppsCardV1Icon;
316
401
  /** Required. The action to perform when the button is clicked, such as opening a hyperlink or running a custom function. */
317
- onClick?: GoogleAppsCardV1OnClick;
402
+ onClick?:
403
+ GoogleAppsCardV1OnClick;
318
404
  /** The text displayed inside the button. */
319
- text?: string;
405
+ text?:
406
+ string;
320
407
  }
321
408
  interface GoogleAppsCardV1ButtonList {
322
409
  /** An array of buttons. */
323
- buttons?: GoogleAppsCardV1Button[];
410
+ buttons?:
411
+ GoogleAppsCardV1Button[];
324
412
  }
325
413
  interface GoogleAppsCardV1Card {
326
414
  /**
@@ -329,138 +417,180 @@ declare namespace gapi.client {
329
417
  * "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { "url":
330
418
  * "https://example.com/feedback" } } } ] ```
331
419
  */
332
- cardActions?: GoogleAppsCardV1CardAction[];
420
+ cardActions?:
421
+ GoogleAppsCardV1CardAction[];
333
422
  /** In Google Workspace add-ons, sets the display properties of the `peekCardHeader`. Not supported by Chat apps. */
334
- displayStyle?: string;
423
+ displayStyle?:
424
+ string;
335
425
  /**
336
426
  * The fixed footer shown at the bottom of this card. Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. Supported by Google Workspace
337
427
  * Add-ons and Chat apps. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/chat/how-tos/dialogs), but not [card
338
428
  * messages](https://developers.google.com/chat/api/guides/message-formats/cards).
339
429
  */
340
- fixedFooter?: GoogleAppsCardV1CardFixedFooter;
430
+ fixedFooter?:
431
+ GoogleAppsCardV1CardFixedFooter;
341
432
  /** The header of the card. A header usually contains a leading image and a title. Headers always appear at the top of a card. */
342
- header?: GoogleAppsCardV1CardHeader;
433
+ header?:
434
+ GoogleAppsCardV1CardHeader;
343
435
  /** Name of the card. Used as a card identifier in card navigation. Because Chat apps don't support card navigation, they ignore this field. */
344
- name?: string;
436
+ name?:
437
+ string;
345
438
  /**
346
439
  * When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards. Not
347
440
  * supported by Chat apps.
348
441
  */
349
- peekCardHeader?: GoogleAppsCardV1CardHeader;
442
+ peekCardHeader?:
443
+ GoogleAppsCardV1CardHeader;
350
444
  /** Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. */
351
- sections?: GoogleAppsCardV1Section[];
445
+ sections?:
446
+ GoogleAppsCardV1Section[];
352
447
  }
353
448
  interface GoogleAppsCardV1CardAction {
354
449
  /** The label that displays as the action menu item. */
355
- actionLabel?: string;
450
+ actionLabel?:
451
+ string;
356
452
  /** The `onClick` action for this action item. */
357
- onClick?: GoogleAppsCardV1OnClick;
453
+ onClick?:
454
+ GoogleAppsCardV1OnClick;
358
455
  }
359
456
  interface GoogleAppsCardV1CardFixedFooter {
360
457
  /** The primary button of the fixed footer. The button must be a text button with text and color set. */
361
- primaryButton?: GoogleAppsCardV1Button;
458
+ primaryButton?:
459
+ GoogleAppsCardV1Button;
362
460
  /** The secondary button of the fixed footer. The button must be a text button with text and color set. `primaryButton` must be set if `secondaryButton` is set. */
363
- secondaryButton?: GoogleAppsCardV1Button;
461
+ secondaryButton?:
462
+ GoogleAppsCardV1Button;
364
463
  }
365
464
  interface GoogleAppsCardV1CardHeader {
366
465
  /** The alternative text of this image which is used for accessibility. */
367
- imageAltText?: string;
466
+ imageAltText?:
467
+ string;
368
468
  /** The shape used to crop the image. */
369
- imageType?: string;
469
+ imageType?:
470
+ string;
370
471
  /** The HTTPS URL of the image in the card header. */
371
- imageUrl?: string;
472
+ imageUrl?:
473
+ string;
372
474
  /** The subtitle of the card header. If specified, appears on its own line below the `title`. */
373
- subtitle?: string;
475
+ subtitle?:
476
+ string;
374
477
  /**
375
478
  * Required. The title of the card header. The header has a fixed height: if both a title and subtitle are specified, each takes up one line. If only the title is specified, it takes
376
479
  * up both lines.
377
480
  */
378
- title?: string;
481
+ title?:
482
+ string;
379
483
  }
380
484
  interface GoogleAppsCardV1DateTimePicker {
381
485
  /**
382
486
  * The text that prompts users to enter a date, time, or datetime. Specify text that helps the user enter the information your app needs. For example, if users are setting an
383
487
  * appointment, then a label like "Appointment date" or "Appointment date and time" might work well.
384
488
  */
385
- label?: string;
489
+ label?:
490
+ string;
386
491
  /**
387
492
  * The name by which the datetime picker is identified in a form input event. For details about working with form inputs, see [Receive form
388
493
  * data](https://developers.google.com/chat/how-tos/dialogs#receive_form_data_from_dialogs).
389
494
  */
390
- name?: string;
495
+ name?:
496
+ string;
391
497
  /** Triggered when the user clicks **Save** or **Clear** from the datetime picker interface. */
392
- onChangeAction?: GoogleAppsCardV1Action;
498
+ onChangeAction?:
499
+ GoogleAppsCardV1Action;
393
500
  /**
394
501
  * The number representing the time zone offset from UTC, in minutes. If set, the `value_ms_epoch` is displayed in the specified time zone. If not set, it uses the user's time zone
395
502
  * setting on the client side.
396
503
  */
397
- timezoneOffsetDate?: number;
504
+ timezoneOffsetDate?:
505
+ number;
398
506
  /** What kind of date and time input the datetime picker supports. */
399
- type?: string;
507
+ type?:
508
+ string;
400
509
  /**
401
510
  * The value displayed as the default value before user input or previous user input, represented in milliseconds ([Epoch time](https://en.wikipedia.org/wiki/Unix_time)). For
402
511
  * `DATE_AND_TIME` type, the full epoch value is used. For `DATE_ONLY` type, only date of the epoch time is used. For `TIME_ONLY` type, only time of the epoch time is used. For
403
512
  * example, to represent 3:00 AM, set epoch time to `3 * 60 * 60 * 1000`.
404
513
  */
405
- valueMsEpoch?: string;
514
+ valueMsEpoch?:
515
+ string;
406
516
  }
407
517
  interface GoogleAppsCardV1DecoratedText {
408
518
  /** The text that appears below `text`. Always truncates. */
409
- bottomLabel?: string;
519
+ bottomLabel?:
520
+ string;
410
521
  /** A button that can be clicked to trigger an action. */
411
- button?: GoogleAppsCardV1Button;
522
+ button?:
523
+ GoogleAppsCardV1Button;
412
524
  /**
413
525
  * An icon displayed after the text. Supports [built-in](https://developers.google.com/chat/api/guides/message-formats/cards#builtinicons) and
414
526
  * [custom](https://developers.google.com/chat/api/guides/message-formats/cards#customicons) icons.
415
527
  */
416
- endIcon?: GoogleAppsCardV1Icon;
528
+ endIcon?:
529
+ GoogleAppsCardV1Icon;
417
530
  /** Deprecated in favor of `startIcon`. */
418
- icon?: GoogleAppsCardV1Icon;
531
+ icon?:
532
+ GoogleAppsCardV1Icon;
419
533
  /** When users click on `topLabel` or `bottomLabel`, this action triggers. */
420
- onClick?: GoogleAppsCardV1OnClick;
534
+ onClick?:
535
+ GoogleAppsCardV1OnClick;
421
536
  /** The icon displayed in front of the text. */
422
- startIcon?: GoogleAppsCardV1Icon;
537
+ startIcon?:
538
+ GoogleAppsCardV1Icon;
423
539
  /** A switch widget can be clicked to change its state and trigger an action. */
424
- switchControl?: GoogleAppsCardV1SwitchControl;
540
+ switchControl?:
541
+ GoogleAppsCardV1SwitchControl;
425
542
  /**
426
543
  * Required. The primary text. Supports simple formatting. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace
427
544
  * Add-ons.
428
545
  */
429
- text?: string;
546
+ text?:
547
+ string;
430
548
  /** The text that appears above `text`. Always truncates. */
431
- topLabel?: string;
549
+ topLabel?:
550
+ string;
432
551
  /** The wrap text setting. If `true`, the text wraps and displays on multiple lines. Otherwise, the text is truncated. Only applies to `text`, not `topLabel` and `bottomLabel`. */
433
- wrapText?: boolean;
552
+ wrapText?:
553
+ boolean;
434
554
  }
435
555
  // tslint:disable-next-line:no-empty-interface
436
556
  interface GoogleAppsCardV1Divider {
437
557
  }
438
558
  interface GoogleAppsCardV1Grid {
439
559
  /** The border style to apply to each grid item. */
440
- borderStyle?: GoogleAppsCardV1BorderStyle;
560
+ borderStyle?:
561
+ GoogleAppsCardV1BorderStyle;
441
562
  /**
442
563
  * The number of columns to display in the grid. A default value is used if this field isn't specified, and that default value is different depending on where the grid is shown (dialog
443
564
  * versus companion).
444
565
  */
445
- columnCount?: number;
566
+ columnCount?:
567
+ number;
446
568
  /** The items to display in the grid. */
447
- items?: GoogleAppsCardV1GridItem[];
569
+ items?:
570
+ GoogleAppsCardV1GridItem[];
448
571
  /** This callback is reused by each individual grid item, but with the item's identifier and index in the items list added to the callback's parameters. */
449
- onClick?: GoogleAppsCardV1OnClick;
572
+ onClick?:
573
+ GoogleAppsCardV1OnClick;
450
574
  /** The text that displays in the grid header. */
451
- title?: string;
575
+ title?:
576
+ string;
452
577
  }
453
578
  interface GoogleAppsCardV1GridItem {
454
579
  /** A user-specified identifier for this grid item. This identifier is returned in the parent Grid's onClick callback parameters. */
455
- id?: string;
580
+ id?:
581
+ string;
456
582
  /** The image that displays in the grid item. */
457
- image?: GoogleAppsCardV1ImageComponent;
583
+ image?:
584
+ GoogleAppsCardV1ImageComponent;
458
585
  /** The layout to use for the grid item. */
459
- layout?: string;
586
+ layout?:
587
+ string;
460
588
  /** The grid item's subtitle. */
461
- subtitle?: string;
589
+ subtitle?:
590
+ string;
462
591
  /** The grid item's title. */
463
- title?: string;
592
+ title?:
593
+ string;
464
594
  }
465
595
  interface GoogleAppsCardV1Icon {
466
596
  /**
@@ -469,163 +599,204 @@ declare namespace gapi.client {
469
599
  * https://developers.google.com/chat`. If the icon is set in a Button, the `altText` appears as helper text when the user hovers over the button. However, if the button also sets
470
600
  * `text`, the icon's `altText` is ignored.
471
601
  */
472
- altText?: string;
602
+ altText?:
603
+ string;
473
604
  /**
474
605
  * Display a custom icon hosted at an HTTPS URL. For example: ``` "iconUrl": "https://developers.google.com/chat/images/quickstart-app-avatar.png" ``` Supported file types include
475
606
  * `.png` and `.jpg`.
476
607
  */
477
- iconUrl?: string;
608
+ iconUrl?:
609
+ string;
478
610
  /** The crop style applied to the image. In some cases, applying a `CIRCLE` crop causes the image to be drawn larger than a built-in icon. */
479
- imageType?: string;
611
+ imageType?:
612
+ string;
480
613
  /**
481
614
  * Display one of the built-in icons provided by Google Workspace. For example, to display an airplane icon, specify `AIRPLANE`. For a bus, specify `BUS`. For a full list of supported
482
615
  * icons, see [built-in icons](https://developers.google.com/chat/api/guides/message-formats/cards#builtinicons).
483
616
  */
484
- knownIcon?: string;
617
+ knownIcon?:
618
+ string;
485
619
  }
486
620
  interface GoogleAppsCardV1Image {
487
621
  /** The alternative text of this image, used for accessibility. */
488
- altText?: string;
622
+ altText?:
623
+ string;
489
624
  /** The `https` URL that hosts the image. For example: ``` https://developers.google.com/chat/images/quickstart-app-avatar.png ``` */
490
- imageUrl?: string;
625
+ imageUrl?:
626
+ string;
491
627
  /** When a user clicks on the image, the click triggers this action. */
492
- onClick?: GoogleAppsCardV1OnClick;
628
+ onClick?:
629
+ GoogleAppsCardV1OnClick;
493
630
  }
494
631
  interface GoogleAppsCardV1ImageComponent {
495
632
  /** The accessibility label for the image. */
496
- altText?: string;
633
+ altText?:
634
+ string;
497
635
  /** The border style to apply to the image. */
498
- borderStyle?: GoogleAppsCardV1BorderStyle;
636
+ borderStyle?:
637
+ GoogleAppsCardV1BorderStyle;
499
638
  /** The crop style to apply to the image. */
500
- cropStyle?: GoogleAppsCardV1ImageCropStyle;
639
+ cropStyle?:
640
+ GoogleAppsCardV1ImageCropStyle;
501
641
  /** The image URL. */
502
- imageUri?: string;
642
+ imageUri?:
643
+ string;
503
644
  }
504
645
  interface GoogleAppsCardV1ImageCropStyle {
505
646
  /**
506
647
  * The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`. For example, here's how to apply a 16 by 9 aspect ratio: ``` cropStyle { "type": "RECTANGLE_CUSTOM", "aspectRatio":
507
648
  * 16/9 } ```
508
649
  */
509
- aspectRatio?: number;
650
+ aspectRatio?:
651
+ number;
510
652
  /** The crop type. */
511
- type?: string;
653
+ type?:
654
+ string;
512
655
  }
513
656
  interface GoogleAppsCardV1OnClick {
514
657
  /** If specified, an action is triggered by this `onClick`. */
515
- action?: GoogleAppsCardV1Action;
658
+ action?:
659
+ GoogleAppsCardV1Action;
516
660
  /** A new card is pushed to the card stack after clicking if specified. Supported by Google Workspace Add-ons, but not Chat apps. */
517
- card?: GoogleAppsCardV1Card;
661
+ card?:
662
+ GoogleAppsCardV1Card;
518
663
  /**
519
664
  * An add-on triggers this action when the action needs to open a link. This differs from the `open_link` above in that this needs to talk to server to get the link. Thus some
520
665
  * preparation work is required for web client to do before the open link action response comes back.
521
666
  */
522
- openDynamicLinkAction?: GoogleAppsCardV1Action;
667
+ openDynamicLinkAction?:
668
+ GoogleAppsCardV1Action;
523
669
  /** If specified, this `onClick` triggers an open link action. */
524
- openLink?: GoogleAppsCardV1OpenLink;
670
+ openLink?:
671
+ GoogleAppsCardV1OpenLink;
525
672
  }
526
673
  interface GoogleAppsCardV1OpenLink {
527
674
  /** Whether the client forgets about a link after opening it, or observes it until the window closes. Not supported by Chat apps. */
528
- onClose?: string;
675
+ onClose?:
676
+ string;
529
677
  /** How to open a link. Not supported by Chat apps. */
530
- openAs?: string;
678
+ openAs?:
679
+ string;
531
680
  /** The URL to open. */
532
- url?: string;
681
+ url?:
682
+ string;
533
683
  }
534
684
  interface GoogleAppsCardV1Section {
535
685
  /**
536
686
  * Indicates whether this section is collapsible. Collapsible sections hide some or all widgets, but users can expand the section to reveal the hidden widgets by clicking **Show
537
687
  * more**. Users can hide the widgets again by clicking **Show less**. To determine which widgets are hidden, specify `uncollapsibleWidgetsCount`.
538
688
  */
539
- collapsible?: boolean;
689
+ collapsible?:
690
+ boolean;
540
691
  /**
541
692
  * Text that appears at the top of a section. Supports simple HTML formatted text. For more information about formatting text, see Formatting text in Google Chat apps and Formatting
542
693
  * text in Google Workspace Add-ons.
543
694
  */
544
- header?: string;
695
+ header?:
696
+ string;
545
697
  /**
546
698
  * The number of uncollapsible widgets which remain visible even when a section is collapsed. For example, when a section contains five widgets and the `uncollapsibleWidgetsCount` is
547
699
  * set to `2`, the first two widgets are always shown and the last three are collapsed by default. The `uncollapsibleWidgetsCount` is taken into account only when `collapsible` is
548
700
  * `true`.
549
701
  */
550
- uncollapsibleWidgetsCount?: number;
702
+ uncollapsibleWidgetsCount?:
703
+ number;
551
704
  /** All the widgets in the section. Must contain at least 1 widget. */
552
- widgets?: GoogleAppsCardV1Widget[];
705
+ widgets?:
706
+ GoogleAppsCardV1Widget[];
553
707
  }
554
708
  interface GoogleAppsCardV1SelectionInput {
555
709
  /** An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items. */
556
- items?: GoogleAppsCardV1SelectionItem[];
710
+ items?:
711
+ GoogleAppsCardV1SelectionItem[];
557
712
  /**
558
713
  * The text that appears above the selection input field in the user interface. Specify text that helps the user enter the information your app needs. For example, if users are
559
714
  * selecting the urgency of a work ticket from a drop-down menu, the label might be "Urgency" or "Select urgency".
560
715
  */
561
- label?: string;
716
+ label?:
717
+ string;
562
718
  /**
563
719
  * The name that identifies the selection input in a form input event. For details about working with form inputs, see [Receive form
564
720
  * data](https://developers.google.com/chat/how-tos/dialogs#receive_form_data_from_dialogs).
565
721
  */
566
- name?: string;
722
+ name?:
723
+ string;
567
724
  /**
568
725
  * If specified, the form is submitted when the selection changes. If not specified, you must specify a separate button that submits the form. For details about working with form
569
726
  * inputs, see [Receive form data](https://developers.google.com/chat/how-tos/dialogs#receive_form_data_from_dialogs).
570
727
  */
571
- onChangeAction?: GoogleAppsCardV1Action;
728
+ onChangeAction?:
729
+ GoogleAppsCardV1Action;
572
730
  /**
573
731
  * The type of items that are displayed to users in a `SelectionInput` widget. Selection types support different types of interactions. For example, users can select one or more
574
732
  * checkboxes, but they can only select one value from a dropdown menu.
575
733
  */
576
- type?: string;
734
+ type?:
735
+ string;
577
736
  }
578
737
  interface GoogleAppsCardV1SelectionItem {
579
738
  /**
580
739
  * When `true`, more than one item is selected. If more than one item is selected for radio buttons and dropdown menus, the first selected item is received and the ones after are
581
740
  * ignored.
582
741
  */
583
- selected?: boolean;
742
+ selected?:
743
+ boolean;
584
744
  /** The text that identifies or describes the item to users. */
585
- text?: string;
745
+ text?:
746
+ string;
586
747
  /**
587
748
  * The value associated with this item. The client should use this as a form input value. For details about working with form inputs, see [Receive form
588
749
  * data](https://developers.google.com/chat/how-tos/dialogs#receive_form_data_from_dialogs).
589
750
  */
590
- value?: string;
751
+ value?:
752
+ string;
591
753
  }
592
754
  interface GoogleAppsCardV1SuggestionItem {
593
755
  /** The value of a suggested input to a text input field. This is equivalent to what users would enter themselves. */
594
- text?: string;
756
+ text?:
757
+ string;
595
758
  }
596
759
  interface GoogleAppsCardV1Suggestions {
597
760
  /** A list of suggestions used for autocomplete recommendations in text input fields. */
598
- items?: GoogleAppsCardV1SuggestionItem[];
761
+ items?:
762
+ GoogleAppsCardV1SuggestionItem[];
599
763
  }
600
764
  interface GoogleAppsCardV1SwitchControl {
601
765
  /** How the switch appears in the user interface. */
602
- controlType?: string;
766
+ controlType?:
767
+ string;
603
768
  /**
604
769
  * The name by which the switch widget is identified in a form input event. For details about working with form inputs, see [Receive form
605
770
  * data](https://developers.google.com/chat/how-tos/dialogs#receive_form_data_from_dialogs).
606
771
  */
607
- name?: string;
772
+ name?:
773
+ string;
608
774
  /** The action to perform when the switch state is changed, such as what function to run. */
609
- onChangeAction?: GoogleAppsCardV1Action;
775
+ onChangeAction?:
776
+ GoogleAppsCardV1Action;
610
777
  /** When `true`, the switch is selected. */
611
- selected?: boolean;
778
+ selected?:
779
+ boolean;
612
780
  /**
613
781
  * The value entered by a user, returned as part of a form input event. For details about working with form inputs, see [Receive form
614
782
  * data](https://developers.google.com/chat/how-tos/dialogs#receive_form_data_from_dialogs).
615
783
  */
616
- value?: string;
784
+ value?:
785
+ string;
617
786
  }
618
787
  interface GoogleAppsCardV1TextInput {
619
788
  /**
620
789
  * Optional. Specify what action to take when the text input field provides suggestions to users who interact with it. If unspecified, the suggestions are set by `initialSuggestions`
621
790
  * and are processed by the client. If specified, the app takes the action specified here, such as running a custom function. Supported by Google Workspace Add-ons, but not Chat apps.
622
791
  */
623
- autoCompleteAction?: GoogleAppsCardV1Action;
792
+ autoCompleteAction?:
793
+ GoogleAppsCardV1Action;
624
794
  /**
625
795
  * Text that appears below the text input field meant to assist users by prompting them to enter a certain value. This text is always visible. Required if `label` is unspecified.
626
796
  * Otherwise, optional.
627
797
  */
628
- hintText?: string;
798
+ hintText?:
799
+ string;
629
800
  /**
630
801
  * Suggested values that users can enter. These values appear when users click inside the text input field. As users type, the suggested values dynamically filter to match what the
631
802
  * users have typed. For example, a text input field for programming language might suggest Java, JavaScript, Python, and C++. When users start typing "Jav", the list of suggestions
@@ -633,33 +804,40 @@ declare namespace gapi.client {
633
804
  * "javascript" and others "java script". Suggesting "JavaScript" can standardize how users interact with your app. When specified, `TextInput.type` is always `SINGLE_LINE`, even if it
634
805
  * is set to `MULTIPLE_LINE`.
635
806
  */
636
- initialSuggestions?: GoogleAppsCardV1Suggestions;
807
+ initialSuggestions?:
808
+ GoogleAppsCardV1Suggestions;
637
809
  /**
638
810
  * The text that appears above the text input field in the user interface. Specify text that helps the user enter the information your app needs. For example, if you are asking
639
811
  * someone's name, but specifically need their surname, write "surname" instead of "name". Required if `hintText` is unspecified. Otherwise, optional.
640
812
  */
641
- label?: string;
813
+ label?:
814
+ string;
642
815
  /**
643
816
  * The name by which the text input is identified in a form input event. For details about working with form inputs, see [Receive form
644
817
  * data](https://developers.google.com/chat/how-tos/dialogs#receive_form_data_from_dialogs).
645
818
  */
646
- name?: string;
819
+ name?:
820
+ string;
647
821
  /**
648
822
  * What to do when a change occurs in the text input field. Examples of changes include a user adding to the field, or deleting text. Examples of actions to take include running a
649
823
  * custom function or opening a [dialog](https://developers.google.com/chat/how-tos/dialogs) in Google Chat.
650
824
  */
651
- onChangeAction?: GoogleAppsCardV1Action;
825
+ onChangeAction?:
826
+ GoogleAppsCardV1Action;
652
827
  /** How a text input field appears in the user interface. For example, whether the field is single or multi-line. */
653
- type?: string;
828
+ type?:
829
+ string;
654
830
  /**
655
831
  * The value entered by a user, returned as part of a form input event. For details about working with form inputs, see [Receive form
656
832
  * data](https://developers.google.com/chat/how-tos/dialogs#receive_form_data_from_dialogs).
657
833
  */
658
- value?: string;
834
+ value?:
835
+ string;
659
836
  }
660
837
  interface GoogleAppsCardV1TextParagraph {
661
838
  /** The text that's shown in the widget. */
662
- text?: string;
839
+ text?:
840
+ string;
663
841
  }
664
842
  interface GoogleAppsCardV1Widget {
665
843
  /**
@@ -667,21 +845,25 @@ declare namespace gapi.client {
667
845
  * "buttons": [ { "text": "Edit", "color": { "red": 0, "green": 0, "blue": 1, "alpha": 1 }, "disabled": true, }, { "icon": { "knownIcon": "INVITE", "altText": "check calendar" },
668
846
  * "onClick": { "openLink": { "url": "https://example.com/calendar" } } } ] } ```
669
847
  */
670
- buttonList?: GoogleAppsCardV1ButtonList;
848
+ buttonList?:
849
+ GoogleAppsCardV1ButtonList;
671
850
  /**
672
851
  * Displays a selection/input widget for date, time, or date and time. Not supported by Chat apps. Support by Chat apps is coming soon. For example, the following JSON creates a
673
852
  * datetime picker to schedule an appointment: ``` "dateTimePicker": { "name": "appointment_time", "label": "Book your appointment at:", "type": "DATE_AND_TIME", "valueMsEpoch":
674
853
  * "796435200000" } ```
675
854
  */
676
- dateTimePicker?: GoogleAppsCardV1DateTimePicker;
855
+ dateTimePicker?:
856
+ GoogleAppsCardV1DateTimePicker;
677
857
  /**
678
858
  * Displays a decorated text item. For example, the following JSON creates a decorated text widget showing email address: ``` "decoratedText": { "icon": { "knownIcon": "EMAIL" },
679
859
  * "topLabel": "Email Address", "text": "sasha@example.com", "bottomLabel": "This is a new Email address!", "switchControl": { "name": "has_send_welcome_email_to_sasha", "selected":
680
860
  * false, "controlType": "CHECKBOX" } } ```
681
861
  */
682
- decoratedText?: GoogleAppsCardV1DecoratedText;
862
+ decoratedText?:
863
+ GoogleAppsCardV1DecoratedText;
683
864
  /** Displays a horizontal line divider between widgets. For example, the following JSON creates a divider: ``` "divider": { } ``` */
684
- divider?: any;
865
+ divider?:
866
+ any;
685
867
  /**
686
868
  * Displays a grid with a collection of items. A grid supports any number of columns and items. The number of rows is determined by the upper bounds of the number items divided by the
687
869
  * number of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has 6 rows. For example, the following JSON creates a 2 column grid with a
@@ -689,139 +871,179 @@ declare namespace gapi.client {
689
871
  * "https://www.example.com/image.png", "cropStyle": { "type": "SQUARE" }, "borderStyle": { "type": "STROKE" } }, "title": "An item", "textAlignment": "CENTER" } ], "onClick": {
690
872
  * "openLink": { "url": "https://www.example.com" } } } ```
691
873
  */
692
- grid?: GoogleAppsCardV1Grid;
874
+ grid?:
875
+ GoogleAppsCardV1Grid;
693
876
  /**
694
877
  * Displays an image. For example, the following JSON creates an image with alternative text: ``` "image": { "imageUrl":
695
878
  * "https://developers.google.com/chat/images/quickstart-app-avatar.png", "altText": "Chat app avatar" } ```
696
879
  */
697
- image?: GoogleAppsCardV1Image;
880
+ image?:
881
+ GoogleAppsCardV1Image;
698
882
  /**
699
883
  * Displays a selection control that lets users select items. Selection controls can be checkboxes, radio buttons, switches, or dropdown menus. For example, the following JSON creates
700
884
  * a dropdown menu that lets users choose a size: ``` "selectionInput": { "name": "size", "label": "Size" "type": "DROPDOWN", "items": [ { "text": "S", "value": "small", "selected":
701
885
  * false }, { "text": "M", "value": "medium", "selected": true }, { "text": "L", "value": "large", "selected": false }, { "text": "XL", "value": "extra_large", "selected": false } ] }
702
886
  * ```
703
887
  */
704
- selectionInput?: GoogleAppsCardV1SelectionInput;
888
+ selectionInput?:
889
+ GoogleAppsCardV1SelectionInput;
705
890
  /**
706
891
  * Displays a text box that users can type into. For example, the following JSON creates a text input for an email address: ``` "textInput": { "name": "mailing_address", "label":
707
892
  * "Mailing Address" } ``` As another example, the following JSON creates a text input for a programming language with static suggestions: ``` "textInput": { "name":
708
893
  * "preferred_programing_language", "label": "Preferred Language", "initialSuggestions": { "items": [ { "text": "C++" }, { "text": "Java" }, { "text": "JavaScript" }, { "text":
709
894
  * "Python" } ] } } ```
710
895
  */
711
- textInput?: GoogleAppsCardV1TextInput;
896
+ textInput?:
897
+ GoogleAppsCardV1TextInput;
712
898
  /**
713
899
  * Displays a text paragraph. Supports simple HTML formatted text. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google
714
900
  * Workspace Add-ons. For example, the following JSON creates a bolded text: ``` "textParagraph": { "text": " *bold text*" } ```
715
901
  */
716
- textParagraph?: GoogleAppsCardV1TextParagraph;
902
+ textParagraph?:
903
+ GoogleAppsCardV1TextParagraph;
717
904
  }
718
905
  interface Image {
719
906
  /**
720
907
  * The aspect ratio of this image (width/height). This field allows clients to reserve the right height for the image while waiting for it to load. It's not meant to override the
721
908
  * native aspect ratio of the image. If unset, the server fills it by prefetching the image.
722
909
  */
723
- aspectRatio?: number;
910
+ aspectRatio?:
911
+ number;
724
912
  /** The URL of the image. */
725
- imageUrl?: string;
913
+ imageUrl?:
914
+ string;
726
915
  /** The onclick action. */
727
- onClick?: OnClick;
916
+ onClick?:
917
+ OnClick;
728
918
  }
729
919
  interface ImageButton {
730
920
  /** The icon specified by an enum that indices to an icon provided by Chat API. */
731
- icon?: string;
921
+ icon?:
922
+ string;
732
923
  /** The icon specified by a URL. */
733
- iconUrl?: string;
924
+ iconUrl?:
925
+ string;
734
926
  /** The name of this image_button which will be used for accessibility. Default value will be provided if developers don't specify. */
735
- name?: string;
927
+ name?:
928
+ string;
736
929
  /** The onclick action. */
737
- onClick?: OnClick;
930
+ onClick?:
931
+ OnClick;
738
932
  }
739
933
  interface Inputs {
740
934
  /** Date input values. */
741
- dateInput?: DateInput;
935
+ dateInput?:
936
+ DateInput;
742
937
  /** Date and time input values. */
743
- dateTimeInput?: DateTimeInput;
938
+ dateTimeInput?:
939
+ DateTimeInput;
744
940
  /** Input parameter for regular widgets. For single-valued widgets, it is a single value list. For multi-valued widgets, such as checkbox, all the values are presented. */
745
- stringInputs?: StringInputs;
941
+ stringInputs?:
942
+ StringInputs;
746
943
  /** Time input values. */
747
- timeInput?: TimeInput;
944
+ timeInput?:
945
+ TimeInput;
748
946
  }
749
947
  interface KeyValue {
750
948
  /**
751
949
  * The text of the bottom label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace
752
950
  * Add-ons.
753
951
  */
754
- bottomLabel?: string;
952
+ bottomLabel?:
953
+ string;
755
954
  /** A button that can be clicked to trigger an action. */
756
- button?: Button;
955
+ button?:
956
+ Button;
757
957
  /**
758
958
  * The text of the content. Formatted text supported and always required. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in
759
959
  * Google Workspace Add-ons.
760
960
  */
761
- content?: string;
961
+ content?:
962
+ string;
762
963
  /** If the content should be multiline. */
763
- contentMultiline?: boolean;
964
+ contentMultiline?:
965
+ boolean;
764
966
  /** An enum value that will be replaced by the Chat API with the corresponding icon image. */
765
- icon?: string;
967
+ icon?:
968
+ string;
766
969
  /** The icon specified by a URL. */
767
- iconUrl?: string;
970
+ iconUrl?:
971
+ string;
768
972
  /** The onclick action. Only the top label, bottom label and content region are clickable. */
769
- onClick?: OnClick;
973
+ onClick?:
974
+ OnClick;
770
975
  /**
771
976
  * The text of the top label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace
772
977
  * Add-ons.
773
978
  */
774
- topLabel?: string;
979
+ topLabel?:
980
+ string;
775
981
  }
776
982
  interface ListMembershipsResponse {
777
983
  /** List of memberships in the requested (or first) page. */
778
- memberships?: Membership[];
984
+ memberships?:
985
+ Membership[];
779
986
  /** A token that can be sent as `pageToken` to retrieve the next page of results. If empty, there are no subsequent pages. */
780
- nextPageToken?: string;
987
+ nextPageToken?:
988
+ string;
781
989
  }
782
990
  interface ListSpacesResponse {
783
991
  /** A token that can be sent as `pageToken` to retrieve the next page of results. If empty, there are no subsequent pages. */
784
- nextPageToken?: string;
992
+ nextPageToken?:
993
+ string;
785
994
  /** List of spaces in the requested (or first) page. */
786
- spaces?: Space[];
995
+ spaces?:
996
+ Space[];
787
997
  }
788
998
  interface MatchedUrl {
789
999
  /** Output only. The url that was matched. */
790
- url?: string;
1000
+ url?:
1001
+ string;
791
1002
  }
792
1003
  interface Media {
793
1004
  /** Name of the media resource. */
794
- resourceName?: string;
1005
+ resourceName?:
1006
+ string;
795
1007
  }
796
1008
  interface Membership {
797
1009
  /** Output only. The creation time of the membership, such as when a member joined or was invited to join a space. */
798
- createTime?: string;
1010
+ createTime?:
1011
+ string;
799
1012
  /**
800
1013
  * The Google Chat user or app the membership corresponds to. If your Chat app [authenticates as a user](https://developers.google.com/chat/api/guides/auth/users), the output populates
801
1014
  * the [user](https://developers.google.com/chat/api/reference/rest/v1/User) `name` and `type`.
802
1015
  */
803
- member?: User;
1016
+ member?:
1017
+ User;
804
1018
  /** Resource name of the membership, assigned by the server. Format: spaces/{space}/members/{member} */
805
- name?: string;
1019
+ name?:
1020
+ string;
806
1021
  /** Output only. User's role within a Chat space, which determines their permitted actions in the space. */
807
- role?: string;
1022
+ role?:
1023
+ string;
808
1024
  /** Output only. State of the membership. */
809
- state?: string;
1025
+ state?:
1026
+ string;
810
1027
  }
811
1028
  interface Message {
812
1029
  /** Input only. Parameters that a Chat app can use to configure how its response is posted. */
813
- actionResponse?: ActionResponse;
1030
+ actionResponse?:
1031
+ ActionResponse;
814
1032
  /** Output only. Annotations associated with the text in this message. */
815
- annotations?: Annotation[];
1033
+ annotations?:
1034
+ Annotation[];
816
1035
  /** Output only. Plain-text body of the message with all Chat app mentions stripped out. */
817
- argumentText?: string;
1036
+ argumentText?:
1037
+ string;
818
1038
  /** User-uploaded attachment. */
819
- attachment?: Attachment[];
1039
+ attachment?:
1040
+ Attachment[];
820
1041
  /**
821
1042
  * Deprecated: Use `cards_v2` instead. Rich, formatted and interactive cards that can be used to display UI elements such as: formatted texts, buttons, clickable images. Cards are
822
1043
  * normally displayed below the plain-text body of the message. `cards` and `cards_v2` can have a maximum size of 32 KB.
823
1044
  */
824
- cards?: Card[];
1045
+ cards?:
1046
+ Card[];
825
1047
  /**
826
1048
  * Richly formatted and interactive cards that display UI elements and editable widgets, such as: - Formatted text - Buttons - Clickable images - Checkboxes - Radio buttons - Input
827
1049
  * widgets. Cards are usually displayed below the text body of a Chat message, but can situationally appear other places, such as
@@ -829,221 +1051,291 @@ declare namespace gapi.client {
829
1051
  * for identifying user input values. Currently supported widgets include: - `TextParagraph` - `DecoratedText` - `Image` - `ButtonList` - `Divider` - `TextInput` - `SelectionInput` -
830
1052
  * `Grid`
831
1053
  */
832
- cardsV2?: CardWithId[];
1054
+ cardsV2?:
1055
+ CardWithId[];
833
1056
  /**
834
1057
  * A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this
835
1058
  * field to get, update, or delete the message with the specified value. For example usage, see [Name a created
836
1059
  * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
837
1060
  */
838
- clientAssignedMessageId?: string;
1061
+ clientAssignedMessageId?:
1062
+ string;
839
1063
  /** Output only. The time at which the message was created in Google Chat server. */
840
- createTime?: string;
1064
+ createTime?:
1065
+ string;
841
1066
  /** A plain-text description of the message's cards, used when the actual cards cannot be displayed (e.g. mobile notifications). */
842
- fallbackText?: string;
1067
+ fallbackText?:
1068
+ string;
843
1069
  /** Output only. The time at which the message was last edited by a user. If the message has never been edited, this field is empty. */
844
- lastUpdateTime?: string;
1070
+ lastUpdateTime?:
1071
+ string;
845
1072
  /**
846
1073
  * Output only. A URL in `spaces.messages.text` that matches a link preview pattern. For more information, refer to [Preview
847
1074
  * links](https://developers.google.com/chat/how-tos/preview-links).
848
1075
  */
849
- matchedUrl?: MatchedUrl;
1076
+ matchedUrl?:
1077
+ MatchedUrl;
850
1078
  /** Resource name in the form `spaces/*‍/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB` */
851
- name?: string;
1079
+ name?:
1080
+ string;
852
1081
  /**
853
1082
  * Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/chat/api/guides/auth/users), the output populates the
854
1083
  * [user](https://developers.google.com/chat/api/reference/rest/v1/User) `name` and `type`.
855
1084
  */
856
- sender?: User;
1085
+ sender?:
1086
+ User;
857
1087
  /** Output only. Slash command information, if applicable. */
858
- slashCommand?: SlashCommand;
1088
+ slashCommand?:
1089
+ SlashCommand;
859
1090
  /**
860
1091
  * If your Chat app [authenticates as a user](https://developers.google.com/chat/api/guides/auth/users), the output populates the
861
1092
  * [space](https://developers.google.com/chat/api/reference/rest/v1/spaces) `name`.
862
1093
  */
863
- space?: Space;
1094
+ space?:
1095
+ Space;
864
1096
  /** Plain-text body of the message. The first link to an image, video, web page, or other preview-able item generates a preview chip. */
865
- text?: string;
1097
+ text?:
1098
+ string;
866
1099
  /**
867
1100
  * The thread the message belongs to. For example usage, see [Start or reply to a message
868
1101
  * thread](https://developers.google.com/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
869
1102
  */
870
- thread?: Thread;
1103
+ thread?:
1104
+ Thread;
871
1105
  /**
872
1106
  * Output only. When `true`, the message is a response in a reply thread. When `false`, the message is visible in the space's top-level conversation as either the first message of a
873
1107
  * thread or a message with no threaded replies. If the space doesn't support reply in threads, this field is always `false`.
874
1108
  */
875
- threadReply?: boolean;
1109
+ threadReply?:
1110
+ boolean;
876
1111
  }
877
1112
  interface OnClick {
878
1113
  /** A form action will be triggered by this onclick if specified. */
879
- action?: FormAction;
1114
+ action?:
1115
+ FormAction;
880
1116
  /** This onclick triggers an open link action if specified. */
881
- openLink?: OpenLink;
1117
+ openLink?:
1118
+ OpenLink;
882
1119
  }
883
1120
  interface OpenLink {
884
1121
  /** The URL to open. */
885
- url?: string;
1122
+ url?:
1123
+ string;
886
1124
  }
887
1125
  interface Section {
888
1126
  /**
889
1127
  * The header of the section. Formatted text is supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace
890
1128
  * Add-ons.
891
1129
  */
892
- header?: string;
1130
+ header?:
1131
+ string;
893
1132
  /** A section must contain at least 1 widget. */
894
- widgets?: WidgetMarkup[];
1133
+ widgets?:
1134
+ WidgetMarkup[];
895
1135
  }
896
1136
  interface SlashCommand {
897
1137
  /** The id of the slash command invoked. */
898
- commandId?: string;
1138
+ commandId?:
1139
+ string;
899
1140
  }
900
1141
  interface SlashCommandMetadata {
901
1142
  /** The Chat app whose command was invoked. */
902
- bot?: User;
1143
+ bot?:
1144
+ User;
903
1145
  /** The command id of the invoked slash command. */
904
- commandId?: string;
1146
+ commandId?:
1147
+ string;
905
1148
  /** The name of the invoked slash command. */
906
- commandName?: string;
1149
+ commandName?:
1150
+ string;
907
1151
  /** Indicating whether the slash command is for a dialog. */
908
- triggersDialog?: boolean;
1152
+ triggersDialog?:
1153
+ boolean;
909
1154
  /** The type of slash command. */
910
- type?: string;
1155
+ type?:
1156
+ string;
911
1157
  }
912
1158
  interface Space {
913
1159
  /**
914
1160
  * Output only. Whether the Chat app was installed by a Google Workspace administrator. Administrators can install a Chat app for their domain, organizational unit, or a group of
915
1161
  * users. Administrators can only install Chat apps for direct messaging between users and the app. To support admin install, your app must feature direct messaging.
916
1162
  */
917
- adminInstalled?: boolean;
1163
+ adminInstalled?:
1164
+ boolean;
918
1165
  /**
919
1166
  * The space's display name. Required when [creating a space](https://developers.google.com/chat/api/reference/rest/v1/spaces/create). For direct messages, this field may be empty.
920
1167
  * Supports up to 128 characters.
921
1168
  */
922
- displayName?: string;
1169
+ displayName?:
1170
+ string;
923
1171
  /** Resource name of the space. Format: spaces/{space} */
924
- name?: string;
1172
+ name?:
1173
+ string;
925
1174
  /** Optional. Whether the space is a DM between a Chat app and a single human. */
926
- singleUserBotDm?: boolean;
1175
+ singleUserBotDm?:
1176
+ boolean;
927
1177
  /** Details about the space including description and rules. */
928
- spaceDetails?: SpaceDetails;
1178
+ spaceDetails?:
1179
+ SpaceDetails;
929
1180
  /** Output only. The threading state in the Chat space. */
930
- spaceThreadingState?: string;
1181
+ spaceThreadingState?:
1182
+ string;
931
1183
  /** Output only. Deprecated: Use `spaceThreadingState` instead. Whether messages are threaded in this space. */
932
- threaded?: boolean;
1184
+ threaded?:
1185
+ boolean;
933
1186
  /** Output only. Deprecated: Use `singleUserBotDm` or `spaceType` (developer preview) instead. The type of a space. */
934
- type?: string;
1187
+ type?:
1188
+ string;
935
1189
  }
936
1190
  interface SpaceDetails {
937
1191
  /** Optional. A description of the space. It could describe the space's discussion topic, functional purpose, or participants. Supports up to 150 characters. */
938
- description?: string;
1192
+ description?:
1193
+ string;
939
1194
  /** Optional. The space's rules, expectations, and etiquette. Supports up to 5,000 characters. */
940
- guidelines?: string;
1195
+ guidelines?:
1196
+ string;
941
1197
  }
942
1198
  interface Status {
943
1199
  /** The status code, which should be an enum value of google.rpc.Code. */
944
- code?: number;
1200
+ code?:
1201
+ number;
945
1202
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
946
- details?: Array<{ [P in string]: any }>;
1203
+ details?:
1204
+ Array<{ [P in string]: any }>;
947
1205
  /**
948
1206
  * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
949
1207
  * client.
950
1208
  */
951
- message?: string;
1209
+ message?:
1210
+ string;
952
1211
  }
953
1212
  interface StringInputs {
954
1213
  /** An array of strings entered by the user. */
955
- value?: string[];
1214
+ value?:
1215
+ string[];
956
1216
  }
957
1217
  interface TextButton {
958
1218
  /** The onclick action of the button. */
959
- onClick?: OnClick;
1219
+ onClick?:
1220
+ OnClick;
960
1221
  /** The text of the button. */
961
- text?: string;
1222
+ text?:
1223
+ string;
962
1224
  }
963
1225
  interface TextParagraph {
964
- text?: string;
1226
+ text?:
1227
+ string;
965
1228
  }
966
1229
  interface Thread {
967
1230
  /** Resource name of the thread. Example: spaces/{space}/threads/{thread} */
968
- name?: string;
1231
+ name?:
1232
+ string;
969
1233
  /**
970
1234
  * Optional. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message
971
1235
  * thread](https://developers.google.com/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread). For other requests, this is an output only field.
972
1236
  */
973
- threadKey?: string;
1237
+ threadKey?:
1238
+ string;
974
1239
  }
975
1240
  interface TimeInput {
976
1241
  /** The hour on a 24-hour clock. */
977
- hours?: number;
1242
+ hours?:
1243
+ number;
978
1244
  /** The number of minutes past the hour. Valid values are 0 to 59. */
979
- minutes?: number;
1245
+ minutes?:
1246
+ number;
980
1247
  }
981
1248
  interface TimeZone {
982
1249
  /** The [IANA TZ](https://www.iana.org/time-zones) time zone database code, such as "America/Toronto". */
983
- id?: string;
1250
+ id?:
1251
+ string;
984
1252
  /** The user timezone offset, in milliseconds, from Coordinated Universal Time (UTC). */
985
- offset?: number;
1253
+ offset?:
1254
+ number;
986
1255
  }
987
1256
  interface User {
988
1257
  /** Output only. The user's display name. */
989
- displayName?: string;
1258
+ displayName?:
1259
+ string;
990
1260
  /** Unique identifier of the user's Google Workspace domain. */
991
- domainId?: string;
1261
+ domainId?:
1262
+ string;
992
1263
  /** Output only. When `true`, the user is deleted or their profile is not visible. */
993
- isAnonymous?: boolean;
1264
+ isAnonymous?:
1265
+ boolean;
994
1266
  /**
995
1267
  * Resource name for a Google Chat user. Format: `users/{user}`. `users/app` can be used as an alias for the calling app bot user. For human users, `{user}` is the same user identifier
996
1268
  * as: - the `{person_id`} for the [Person](https://developers.google.com/people/api/rest/v1/people) in the People API, where the Person `resource_name` is `people/{person_id}`. For
997
1269
  * example, `users/123456789` in Chat API represents the same person as `people/123456789` in People API. - the `id` for a
998
1270
  * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API.
999
1271
  */
1000
- name?: string;
1272
+ name?:
1273
+ string;
1001
1274
  /** User type. */
1002
- type?: string;
1275
+ type?:
1276
+ string;
1003
1277
  }
1004
1278
  interface UserMentionMetadata {
1005
1279
  /** The type of user mention. */
1006
- type?: string;
1280
+ type?:
1281
+ string;
1007
1282
  /** The user mentioned. */
1008
- user?: User;
1283
+ user?:
1284
+ User;
1009
1285
  }
1010
1286
  interface WidgetMarkup {
1011
1287
  /** A list of buttons. Buttons is also `oneof data` and only one of these fields should be set. */
1012
- buttons?: Button[];
1288
+ buttons?:
1289
+ Button[];
1013
1290
  /** Display an image in this widget. */
1014
- image?: Image;
1291
+ image?:
1292
+ Image;
1015
1293
  /** Display a key value item in this widget. */
1016
- keyValue?: KeyValue;
1294
+ keyValue?:
1295
+ KeyValue;
1017
1296
  /** Display a text paragraph in this widget. */
1018
- textParagraph?: TextParagraph;
1297
+ textParagraph?:
1298
+ TextParagraph;
1019
1299
  }
1020
1300
  interface MediaResource {
1021
1301
  /** Downloads media. Download is supported on the URI `/v1/media/{+name}?alt=media`. */
1022
1302
  download(request?: {
1023
1303
  /** V1 error format. */
1024
- "$.xgafv"?: string;
1304
+ "$.xgafv"?:
1305
+ string;
1025
1306
  /** OAuth access token. */
1026
- access_token?: string;
1307
+ access_token?:
1308
+ string;
1027
1309
  /** Data format for response. */
1028
- alt?: string;
1310
+ alt?:
1311
+ string;
1029
1312
  /** JSONP */
1030
- callback?: string;
1313
+ callback?:
1314
+ string;
1031
1315
  /** Selector specifying which fields to include in a partial response. */
1032
- fields?: string;
1316
+ fields?:
1317
+ string;
1033
1318
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1034
- key?: string;
1319
+ key?:
1320
+ string;
1035
1321
  /** OAuth 2.0 token for the current user. */
1036
- oauth_token?: string;
1322
+ oauth_token?:
1323
+ string;
1037
1324
  /** Returns response with indentations and line breaks. */
1038
- prettyPrint?: boolean;
1325
+ prettyPrint?:
1326
+ boolean;
1039
1327
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1040
- quotaUser?: string;
1328
+ quotaUser?:
1329
+ string;
1041
1330
  /** Name of the media that is being downloaded. See ReadRequest.resource_name. */
1042
- resourceName: string;
1331
+ resourceName:
1332
+ string;
1043
1333
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1044
- upload_protocol?: string;
1334
+ upload_protocol?:
1335
+ string;
1045
1336
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1046
- uploadType?: string;
1337
+ uploadType?:
1338
+ string;
1047
1339
  }): Request<Media>;
1048
1340
  }
1049
1341
  interface MembersResource {
@@ -1055,29 +1347,41 @@ declare namespace gapi.client {
1055
1347
  */
1056
1348
  get(request?: {
1057
1349
  /** V1 error format. */
1058
- "$.xgafv"?: string;
1350
+ "$.xgafv"?:
1351
+ string;
1059
1352
  /** OAuth access token. */
1060
- access_token?: string;
1353
+ access_token?:
1354
+ string;
1061
1355
  /** Data format for response. */
1062
- alt?: string;
1356
+ alt?:
1357
+ string;
1063
1358
  /** JSONP */
1064
- callback?: string;
1359
+ callback?:
1360
+ string;
1065
1361
  /** Selector specifying which fields to include in a partial response. */
1066
- fields?: string;
1362
+ fields?:
1363
+ string;
1067
1364
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1068
- key?: string;
1365
+ key?:
1366
+ string;
1069
1367
  /** Required. Resource name of the membership to retrieve. Format: spaces/{space}/members/{member} */
1070
- name: string;
1368
+ name:
1369
+ string;
1071
1370
  /** OAuth 2.0 token for the current user. */
1072
- oauth_token?: string;
1371
+ oauth_token?:
1372
+ string;
1073
1373
  /** Returns response with indentations and line breaks. */
1074
- prettyPrint?: boolean;
1374
+ prettyPrint?:
1375
+ boolean;
1075
1376
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1076
- quotaUser?: string;
1377
+ quotaUser?:
1378
+ string;
1077
1379
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1078
- upload_protocol?: string;
1380
+ upload_protocol?:
1381
+ string;
1079
1382
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1080
- uploadType?: string;
1383
+ uploadType?:
1384
+ string;
1081
1385
  }): Request<Membership>;
1082
1386
  /**
1083
1387
  * Lists memberships in a space. Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account
@@ -1087,39 +1391,53 @@ declare namespace gapi.client {
1087
1391
  */
1088
1392
  list(request?: {
1089
1393
  /** V1 error format. */
1090
- "$.xgafv"?: string;
1394
+ "$.xgafv"?:
1395
+ string;
1091
1396
  /** OAuth access token. */
1092
- access_token?: string;
1397
+ access_token?:
1398
+ string;
1093
1399
  /** Data format for response. */
1094
- alt?: string;
1400
+ alt?:
1401
+ string;
1095
1402
  /** JSONP */
1096
- callback?: string;
1403
+ callback?:
1404
+ string;
1097
1405
  /** Selector specifying which fields to include in a partial response. */
1098
- fields?: string;
1406
+ fields?:
1407
+ string;
1099
1408
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1100
- key?: string;
1409
+ key?:
1410
+ string;
1101
1411
  /** OAuth 2.0 token for the current user. */
1102
- oauth_token?: string;
1412
+ oauth_token?:
1413
+ string;
1103
1414
  /**
1104
1415
  * The maximum number of memberships to return. The service may return fewer than this value. If unspecified, at most 100 memberships are returned. The maximum value is 1000;
1105
1416
  * values above 1000 are coerced to 1000. Negative values return an INVALID_ARGUMENT error.
1106
1417
  */
1107
- pageSize?: number;
1418
+ pageSize?:
1419
+ number;
1108
1420
  /**
1109
1421
  * A page token, received from a previous call to list memberships. Provide this to retrieve the subsequent page. When paginating, all other parameters provided should match the
1110
1422
  * call that provided the page token. Passing different values to the other parameters may lead to unexpected results.
1111
1423
  */
1112
- pageToken?: string;
1424
+ pageToken?:
1425
+ string;
1113
1426
  /** Required. The resource name of the space for which to fetch a membership list. Format: spaces/{space} */
1114
- parent: string;
1427
+ parent:
1428
+ string;
1115
1429
  /** Returns response with indentations and line breaks. */
1116
- prettyPrint?: boolean;
1430
+ prettyPrint?:
1431
+ boolean;
1117
1432
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1118
- quotaUser?: string;
1433
+ quotaUser?:
1434
+ string;
1119
1435
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1120
- upload_protocol?: string;
1436
+ upload_protocol?:
1437
+ string;
1121
1438
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1122
- uploadType?: string;
1439
+ uploadType?:
1440
+ string;
1123
1441
  }): Request<ListMembershipsResponse>;
1124
1442
  }
1125
1443
  interface AttachmentsResource {
@@ -1129,29 +1447,41 @@ declare namespace gapi.client {
1129
1447
  */
1130
1448
  get(request?: {
1131
1449
  /** V1 error format. */
1132
- "$.xgafv"?: string;
1450
+ "$.xgafv"?:
1451
+ string;
1133
1452
  /** OAuth access token. */
1134
- access_token?: string;
1453
+ access_token?:
1454
+ string;
1135
1455
  /** Data format for response. */
1136
- alt?: string;
1456
+ alt?:
1457
+ string;
1137
1458
  /** JSONP */
1138
- callback?: string;
1459
+ callback?:
1460
+ string;
1139
1461
  /** Selector specifying which fields to include in a partial response. */
1140
- fields?: string;
1462
+ fields?:
1463
+ string;
1141
1464
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1142
- key?: string;
1465
+ key?:
1466
+ string;
1143
1467
  /** Required. Resource name of the attachment, in the form "spaces/*‍/messages/*‍/attachments/*". */
1144
- name: string;
1468
+ name:
1469
+ string;
1145
1470
  /** OAuth 2.0 token for the current user. */
1146
- oauth_token?: string;
1471
+ oauth_token?:
1472
+ string;
1147
1473
  /** Returns response with indentations and line breaks. */
1148
- prettyPrint?: boolean;
1474
+ prettyPrint?:
1475
+ boolean;
1149
1476
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1150
- quotaUser?: string;
1477
+ quotaUser?:
1478
+ string;
1151
1479
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1152
- upload_protocol?: string;
1480
+ upload_protocol?:
1481
+ string;
1153
1482
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1154
- uploadType?: string;
1483
+ uploadType?:
1484
+ string;
1155
1485
  }): Request<Attachment>;
1156
1486
  }
1157
1487
  interface MessagesResource {
@@ -1166,87 +1496,120 @@ declare namespace gapi.client {
1166
1496
  */
1167
1497
  create(request: {
1168
1498
  /** V1 error format. */
1169
- "$.xgafv"?: string;
1499
+ "$.xgafv"?:
1500
+ string;
1170
1501
  /** OAuth access token. */
1171
- access_token?: string;
1502
+ access_token?:
1503
+ string;
1172
1504
  /** Data format for response. */
1173
- alt?: string;
1505
+ alt?:
1506
+ string;
1174
1507
  /** JSONP */
1175
- callback?: string;
1508
+ callback?:
1509
+ string;
1176
1510
  /** Selector specifying which fields to include in a partial response. */
1177
- fields?: string;
1511
+ fields?:
1512
+ string;
1178
1513
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1179
- key?: string;
1514
+ key?:
1515
+ string;
1180
1516
  /**
1181
1517
  * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
1182
1518
  * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
1183
1519
  * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1184
1520
  */
1185
- messageId?: string;
1521
+ messageId?:
1522
+ string;
1186
1523
  /** Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. */
1187
- messageReplyOption?: string;
1524
+ messageReplyOption?:
1525
+ string;
1188
1526
  /** OAuth 2.0 token for the current user. */
1189
- oauth_token?: string;
1527
+ oauth_token?:
1528
+ string;
1190
1529
  /** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
1191
- parent: string;
1530
+ parent:
1531
+ string;
1192
1532
  /** Returns response with indentations and line breaks. */
1193
- prettyPrint?: boolean;
1533
+ prettyPrint?:
1534
+ boolean;
1194
1535
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1195
- quotaUser?: string;
1536
+ quotaUser?:
1537
+ string;
1196
1538
  /** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
1197
- requestId?: string;
1539
+ requestId?:
1540
+ string;
1198
1541
  /**
1199
1542
  * Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
1200
1543
  * example usage, see [Start or reply to a message thread](https://developers.google.com/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
1201
1544
  */
1202
- threadKey?: string;
1545
+ threadKey?:
1546
+ string;
1203
1547
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1204
- upload_protocol?: string;
1548
+ upload_protocol?:
1549
+ string;
1205
1550
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1206
- uploadType?: string;
1551
+ uploadType?:
1552
+ string;
1207
1553
  /** Request body */
1208
- resource: Message;
1554
+ resource:
1555
+ Message;
1209
1556
  }): Request<Message>;
1210
1557
  create(request: {
1211
1558
  /** V1 error format. */
1212
- "$.xgafv"?: string;
1559
+ "$.xgafv"?:
1560
+ string;
1213
1561
  /** OAuth access token. */
1214
- access_token?: string;
1562
+ access_token?:
1563
+ string;
1215
1564
  /** Data format for response. */
1216
- alt?: string;
1565
+ alt?:
1566
+ string;
1217
1567
  /** JSONP */
1218
- callback?: string;
1568
+ callback?:
1569
+ string;
1219
1570
  /** Selector specifying which fields to include in a partial response. */
1220
- fields?: string;
1571
+ fields?:
1572
+ string;
1221
1573
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1222
- key?: string;
1574
+ key?:
1575
+ string;
1223
1576
  /**
1224
1577
  * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
1225
1578
  * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
1226
1579
  * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1227
1580
  */
1228
- messageId?: string;
1581
+ messageId?:
1582
+ string;
1229
1583
  /** Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. */
1230
- messageReplyOption?: string;
1584
+ messageReplyOption?:
1585
+ string;
1231
1586
  /** OAuth 2.0 token for the current user. */
1232
- oauth_token?: string;
1587
+ oauth_token?:
1588
+ string;
1233
1589
  /** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
1234
- parent: string;
1590
+ parent:
1591
+ string;
1235
1592
  /** Returns response with indentations and line breaks. */
1236
- prettyPrint?: boolean;
1593
+ prettyPrint?:
1594
+ boolean;
1237
1595
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1238
- quotaUser?: string;
1596
+ quotaUser?:
1597
+ string;
1239
1598
  /** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
1240
- requestId?: string;
1599
+ requestId?:
1600
+ string;
1241
1601
  /**
1242
1602
  * Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
1243
1603
  * example usage, see [Start or reply to a message thread](https://developers.google.com/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
1244
1604
  */
1245
- threadKey?: string;
1605
+ threadKey?:
1606
+ string;
1246
1607
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1247
- upload_protocol?: string;
1608
+ upload_protocol?:
1609
+ string;
1248
1610
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1249
- uploadType?: string;
1611
+ uploadType?:
1612
+ string;
1250
1613
  },
1251
1614
  body: Message): Request<Message>;
1252
1615
  /**
@@ -1258,29 +1621,41 @@ declare namespace gapi.client {
1258
1621
  */
1259
1622
  delete(request?: {
1260
1623
  /** V1 error format. */
1261
- "$.xgafv"?: string;
1624
+ "$.xgafv"?:
1625
+ string;
1262
1626
  /** OAuth access token. */
1263
- access_token?: string;
1627
+ access_token?:
1628
+ string;
1264
1629
  /** Data format for response. */
1265
- alt?: string;
1630
+ alt?:
1631
+ string;
1266
1632
  /** JSONP */
1267
- callback?: string;
1633
+ callback?:
1634
+ string;
1268
1635
  /** Selector specifying which fields to include in a partial response. */
1269
- fields?: string;
1636
+ fields?:
1637
+ string;
1270
1638
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1271
- key?: string;
1639
+ key?:
1640
+ string;
1272
1641
  /** Required. Resource name of the message to be deleted, in the form "spaces/*‍/messages/*" Example: spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB */
1273
- name: string;
1642
+ name:
1643
+ string;
1274
1644
  /** OAuth 2.0 token for the current user. */
1275
- oauth_token?: string;
1645
+ oauth_token?:
1646
+ string;
1276
1647
  /** Returns response with indentations and line breaks. */
1277
- prettyPrint?: boolean;
1648
+ prettyPrint?:
1649
+ boolean;
1278
1650
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1279
- quotaUser?: string;
1651
+ quotaUser?:
1652
+ string;
1280
1653
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1281
- upload_protocol?: string;
1654
+ upload_protocol?:
1655
+ string;
1282
1656
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1283
- uploadType?: string;
1657
+ uploadType?:
1658
+ string;
1284
1659
  }): Request<{}>;
1285
1660
  /**
1286
1661
  * Returns a message. For example usage, see [Read a message](https://developers.google.com/chat/api/guides/crudl/messages#read_a_message). Requires
@@ -1292,33 +1667,45 @@ declare namespace gapi.client {
1292
1667
  */
1293
1668
  get(request?: {
1294
1669
  /** V1 error format. */
1295
- "$.xgafv"?: string;
1670
+ "$.xgafv"?:
1671
+ string;
1296
1672
  /** OAuth access token. */
1297
- access_token?: string;
1673
+ access_token?:
1674
+ string;
1298
1675
  /** Data format for response. */
1299
- alt?: string;
1676
+ alt?:
1677
+ string;
1300
1678
  /** JSONP */
1301
- callback?: string;
1679
+ callback?:
1680
+ string;
1302
1681
  /** Selector specifying which fields to include in a partial response. */
1303
- fields?: string;
1682
+ fields?:
1683
+ string;
1304
1684
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1305
- key?: string;
1685
+ key?:
1686
+ string;
1306
1687
  /**
1307
1688
  * Required. Resource name of the message to retrieve. Format: spaces/{space}/messages/{message} If the message begins with `client-`, then it has a custom name assigned by a Chat
1308
1689
  * app that created it with the Chat REST API. That Chat app (but not others) can pass the custom name to get, update, or delete the message. To learn more, see [create and name a
1309
1690
  * message] (https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1310
1691
  */
1311
- name: string;
1692
+ name:
1693
+ string;
1312
1694
  /** OAuth 2.0 token for the current user. */
1313
- oauth_token?: string;
1695
+ oauth_token?:
1696
+ string;
1314
1697
  /** Returns response with indentations and line breaks. */
1315
- prettyPrint?: boolean;
1698
+ prettyPrint?:
1699
+ boolean;
1316
1700
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1317
- quotaUser?: string;
1701
+ quotaUser?:
1702
+ string;
1318
1703
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1319
- upload_protocol?: string;
1704
+ upload_protocol?:
1705
+ string;
1320
1706
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1321
- uploadType?: string;
1707
+ uploadType?:
1708
+ string;
1322
1709
  }): Request<Message>;
1323
1710
  /**
1324
1711
  * Updates a message. There's a difference between `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend
@@ -1330,77 +1717,106 @@ declare namespace gapi.client {
1330
1717
  */
1331
1718
  patch(request: {
1332
1719
  /** V1 error format. */
1333
- "$.xgafv"?: string;
1720
+ "$.xgafv"?:
1721
+ string;
1334
1722
  /** OAuth access token. */
1335
- access_token?: string;
1723
+ access_token?:
1724
+ string;
1336
1725
  /**
1337
1726
  * Optional. If `true` and the message is not found, a new message is created and `updateMask` is ignored. The specified message ID must be
1338
1727
  * [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.
1339
1728
  */
1340
- allowMissing?: boolean;
1729
+ allowMissing?:
1730
+ boolean;
1341
1731
  /** Data format for response. */
1342
- alt?: string;
1732
+ alt?:
1733
+ string;
1343
1734
  /** JSONP */
1344
- callback?: string;
1735
+ callback?:
1736
+ string;
1345
1737
  /** Selector specifying which fields to include in a partial response. */
1346
- fields?: string;
1738
+ fields?:
1739
+ string;
1347
1740
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1348
- key?: string;
1741
+ key?:
1742
+ string;
1349
1743
  /** Resource name in the form `spaces/*‍/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB` */
1350
- name: string;
1744
+ name:
1745
+ string;
1351
1746
  /** OAuth 2.0 token for the current user. */
1352
- oauth_token?: string;
1747
+ oauth_token?:
1748
+ string;
1353
1749
  /** Returns response with indentations and line breaks. */
1354
- prettyPrint?: boolean;
1750
+ prettyPrint?:
1751
+ boolean;
1355
1752
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1356
- quotaUser?: string;
1753
+ quotaUser?:
1754
+ string;
1357
1755
  /**
1358
1756
  * Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - text - cards (Requires [service account
1359
1757
  * authentication](/chat/api/guides/auth/service-accounts).) - cards_v2
1360
1758
  */
1361
- updateMask?: string;
1759
+ updateMask?:
1760
+ string;
1362
1761
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1363
- upload_protocol?: string;
1762
+ upload_protocol?:
1763
+ string;
1364
1764
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1365
- uploadType?: string;
1765
+ uploadType?:
1766
+ string;
1366
1767
  /** Request body */
1367
- resource: Message;
1768
+ resource:
1769
+ Message;
1368
1770
  }): Request<Message>;
1369
1771
  patch(request: {
1370
1772
  /** V1 error format. */
1371
- "$.xgafv"?: string;
1773
+ "$.xgafv"?:
1774
+ string;
1372
1775
  /** OAuth access token. */
1373
- access_token?: string;
1776
+ access_token?:
1777
+ string;
1374
1778
  /**
1375
1779
  * Optional. If `true` and the message is not found, a new message is created and `updateMask` is ignored. The specified message ID must be
1376
1780
  * [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.
1377
1781
  */
1378
- allowMissing?: boolean;
1782
+ allowMissing?:
1783
+ boolean;
1379
1784
  /** Data format for response. */
1380
- alt?: string;
1785
+ alt?:
1786
+ string;
1381
1787
  /** JSONP */
1382
- callback?: string;
1788
+ callback?:
1789
+ string;
1383
1790
  /** Selector specifying which fields to include in a partial response. */
1384
- fields?: string;
1791
+ fields?:
1792
+ string;
1385
1793
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1386
- key?: string;
1794
+ key?:
1795
+ string;
1387
1796
  /** Resource name in the form `spaces/*‍/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB` */
1388
- name: string;
1797
+ name:
1798
+ string;
1389
1799
  /** OAuth 2.0 token for the current user. */
1390
- oauth_token?: string;
1800
+ oauth_token?:
1801
+ string;
1391
1802
  /** Returns response with indentations and line breaks. */
1392
- prettyPrint?: boolean;
1803
+ prettyPrint?:
1804
+ boolean;
1393
1805
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1394
- quotaUser?: string;
1806
+ quotaUser?:
1807
+ string;
1395
1808
  /**
1396
1809
  * Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - text - cards (Requires [service account
1397
1810
  * authentication](/chat/api/guides/auth/service-accounts).) - cards_v2
1398
1811
  */
1399
- updateMask?: string;
1812
+ updateMask?:
1813
+ string;
1400
1814
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1401
- upload_protocol?: string;
1815
+ upload_protocol?:
1816
+ string;
1402
1817
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1403
- uploadType?: string;
1818
+ uploadType?:
1819
+ string;
1404
1820
  },
1405
1821
  body: Message): Request<Message>;
1406
1822
  /**
@@ -1413,80 +1829,110 @@ declare namespace gapi.client {
1413
1829
  */
1414
1830
  update(request: {
1415
1831
  /** V1 error format. */
1416
- "$.xgafv"?: string;
1832
+ "$.xgafv"?:
1833
+ string;
1417
1834
  /** OAuth access token. */
1418
- access_token?: string;
1835
+ access_token?:
1836
+ string;
1419
1837
  /**
1420
1838
  * Optional. If `true` and the message is not found, a new message is created and `updateMask` is ignored. The specified message ID must be
1421
1839
  * [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.
1422
1840
  */
1423
- allowMissing?: boolean;
1841
+ allowMissing?:
1842
+ boolean;
1424
1843
  /** Data format for response. */
1425
- alt?: string;
1844
+ alt?:
1845
+ string;
1426
1846
  /** JSONP */
1427
- callback?: string;
1847
+ callback?:
1848
+ string;
1428
1849
  /** Selector specifying which fields to include in a partial response. */
1429
- fields?: string;
1850
+ fields?:
1851
+ string;
1430
1852
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1431
- key?: string;
1853
+ key?:
1854
+ string;
1432
1855
  /** Resource name in the form `spaces/*‍/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB` */
1433
- name: string;
1856
+ name:
1857
+ string;
1434
1858
  /** OAuth 2.0 token for the current user. */
1435
- oauth_token?: string;
1859
+ oauth_token?:
1860
+ string;
1436
1861
  /** Returns response with indentations and line breaks. */
1437
- prettyPrint?: boolean;
1862
+ prettyPrint?:
1863
+ boolean;
1438
1864
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1439
- quotaUser?: string;
1865
+ quotaUser?:
1866
+ string;
1440
1867
  /**
1441
1868
  * Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - text - cards (Requires [service account
1442
1869
  * authentication](/chat/api/guides/auth/service-accounts).) - cards_v2
1443
1870
  */
1444
- updateMask?: string;
1871
+ updateMask?:
1872
+ string;
1445
1873
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1446
- upload_protocol?: string;
1874
+ upload_protocol?:
1875
+ string;
1447
1876
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1448
- uploadType?: string;
1877
+ uploadType?:
1878
+ string;
1449
1879
  /** Request body */
1450
- resource: Message;
1880
+ resource:
1881
+ Message;
1451
1882
  }): Request<Message>;
1452
1883
  update(request: {
1453
1884
  /** V1 error format. */
1454
- "$.xgafv"?: string;
1885
+ "$.xgafv"?:
1886
+ string;
1455
1887
  /** OAuth access token. */
1456
- access_token?: string;
1888
+ access_token?:
1889
+ string;
1457
1890
  /**
1458
1891
  * Optional. If `true` and the message is not found, a new message is created and `updateMask` is ignored. The specified message ID must be
1459
1892
  * [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.
1460
1893
  */
1461
- allowMissing?: boolean;
1894
+ allowMissing?:
1895
+ boolean;
1462
1896
  /** Data format for response. */
1463
- alt?: string;
1897
+ alt?:
1898
+ string;
1464
1899
  /** JSONP */
1465
- callback?: string;
1900
+ callback?:
1901
+ string;
1466
1902
  /** Selector specifying which fields to include in a partial response. */
1467
- fields?: string;
1903
+ fields?:
1904
+ string;
1468
1905
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1469
- key?: string;
1906
+ key?:
1907
+ string;
1470
1908
  /** Resource name in the form `spaces/*‍/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB` */
1471
- name: string;
1909
+ name:
1910
+ string;
1472
1911
  /** OAuth 2.0 token for the current user. */
1473
- oauth_token?: string;
1912
+ oauth_token?:
1913
+ string;
1474
1914
  /** Returns response with indentations and line breaks. */
1475
- prettyPrint?: boolean;
1915
+ prettyPrint?:
1916
+ boolean;
1476
1917
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1477
- quotaUser?: string;
1918
+ quotaUser?:
1919
+ string;
1478
1920
  /**
1479
1921
  * Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - text - cards (Requires [service account
1480
1922
  * authentication](/chat/api/guides/auth/service-accounts).) - cards_v2
1481
1923
  */
1482
- updateMask?: string;
1924
+ updateMask?:
1925
+ string;
1483
1926
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1484
- upload_protocol?: string;
1927
+ upload_protocol?:
1928
+ string;
1485
1929
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1486
- uploadType?: string;
1930
+ uploadType?:
1931
+ string;
1487
1932
  },
1488
1933
  body: Message): Request<Message>;
1489
- attachments: AttachmentsResource;
1934
+ attachments:
1935
+ AttachmentsResource;
1490
1936
  }
1491
1937
  interface SpacesResource {
1492
1938
  /**
@@ -1497,29 +1943,41 @@ declare namespace gapi.client {
1497
1943
  */
1498
1944
  get(request?: {
1499
1945
  /** V1 error format. */
1500
- "$.xgafv"?: string;
1946
+ "$.xgafv"?:
1947
+ string;
1501
1948
  /** OAuth access token. */
1502
- access_token?: string;
1949
+ access_token?:
1950
+ string;
1503
1951
  /** Data format for response. */
1504
- alt?: string;
1952
+ alt?:
1953
+ string;
1505
1954
  /** JSONP */
1506
- callback?: string;
1955
+ callback?:
1956
+ string;
1507
1957
  /** Selector specifying which fields to include in a partial response. */
1508
- fields?: string;
1958
+ fields?:
1959
+ string;
1509
1960
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1510
- key?: string;
1961
+ key?:
1962
+ string;
1511
1963
  /** Required. Resource name of the space, in the form "spaces/*". Format: spaces/{space} */
1512
- name: string;
1964
+ name:
1965
+ string;
1513
1966
  /** OAuth 2.0 token for the current user. */
1514
- oauth_token?: string;
1967
+ oauth_token?:
1968
+ string;
1515
1969
  /** Returns response with indentations and line breaks. */
1516
- prettyPrint?: boolean;
1970
+ prettyPrint?:
1971
+ boolean;
1517
1972
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1518
- quotaUser?: string;
1973
+ quotaUser?:
1974
+ string;
1519
1975
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1520
- upload_protocol?: string;
1976
+ upload_protocol?:
1977
+ string;
1521
1978
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1522
- uploadType?: string;
1979
+ uploadType?:
1980
+ string;
1523
1981
  }): Request<Space>;
1524
1982
  /**
1525
1983
  * Lists spaces the caller is a member of. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
@@ -1530,40 +1988,55 @@ declare namespace gapi.client {
1530
1988
  */
1531
1989
  list(request?: {
1532
1990
  /** V1 error format. */
1533
- "$.xgafv"?: string;
1991
+ "$.xgafv"?:
1992
+ string;
1534
1993
  /** OAuth access token. */
1535
- access_token?: string;
1994
+ access_token?:
1995
+ string;
1536
1996
  /** Data format for response. */
1537
- alt?: string;
1997
+ alt?:
1998
+ string;
1538
1999
  /** JSONP */
1539
- callback?: string;
2000
+ callback?:
2001
+ string;
1540
2002
  /** Selector specifying which fields to include in a partial response. */
1541
- fields?: string;
2003
+ fields?:
2004
+ string;
1542
2005
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1543
- key?: string;
2006
+ key?:
2007
+ string;
1544
2008
  /** OAuth 2.0 token for the current user. */
1545
- oauth_token?: string;
2009
+ oauth_token?:
2010
+ string;
1546
2011
  /**
1547
2012
  * Optional. The maximum number of spaces to return. The service may return fewer than this value. If unspecified, at most 100 spaces are returned. The maximum value is 1000;
1548
2013
  * values above 1000 are coerced to 1000. Negative values return an `INVALID_ARGUMENT` error.
1549
2014
  */
1550
- pageSize?: number;
2015
+ pageSize?:
2016
+ number;
1551
2017
  /**
1552
2018
  * Optional. A page token, received from a previous list spaces call. Provide this to retrieve the subsequent page. When paginating, the filter value should match the call that
1553
2019
  * provided the page token. Passing a different value may lead to unexpected results.
1554
2020
  */
1555
- pageToken?: string;
2021
+ pageToken?:
2022
+ string;
1556
2023
  /** Returns response with indentations and line breaks. */
1557
- prettyPrint?: boolean;
2024
+ prettyPrint?:
2025
+ boolean;
1558
2026
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1559
- quotaUser?: string;
2027
+ quotaUser?:
2028
+ string;
1560
2029
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1561
- upload_protocol?: string;
2030
+ upload_protocol?:
2031
+ string;
1562
2032
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1563
- uploadType?: string;
2033
+ uploadType?:
2034
+ string;
1564
2035
  }): Request<ListSpacesResponse>;
1565
- members: MembersResource;
1566
- messages: MessagesResource;
2036
+ members:
2037
+ MembersResource;
2038
+ messages:
2039
+ MessagesResource;
1567
2040
  }
1568
2041
 
1569
2042
  const media: MediaResource;