@maxim_mazurok/gapi.client.chat-v1 0.2.20260618 → 0.3.20260623
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +320 -50
- package/package.json +1 -1
- package/readme.md +7 -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:
|
|
12
|
+
// Revision: 20260623
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -106,9 +106,7 @@ declare namespace gapi.client {
|
|
|
106
106
|
appCommandId?: number;
|
|
107
107
|
/** The type of Chat app command. */
|
|
108
108
|
appCommandType?:
|
|
109
|
-
| '
|
|
110
|
-
| 'SLASH_COMMAND'
|
|
111
|
-
| 'QUICK_COMMAND';
|
|
109
|
+
'APP_COMMAND_TYPE_UNSPECIFIED' | 'SLASH_COMMAND' | 'QUICK_COMMAND';
|
|
112
110
|
}
|
|
113
111
|
interface AttachedGif {
|
|
114
112
|
/** Output only. The URL that hosts the GIF image. */
|
|
@@ -138,6 +136,17 @@ declare namespace gapi.client {
|
|
|
138
136
|
/** Optional. The resource name of the attachment data. This field is used with the media API to download the attachment data. */
|
|
139
137
|
resourceName?: string;
|
|
140
138
|
}
|
|
139
|
+
interface Availability {
|
|
140
|
+
/** Optional. The user's custom status. */
|
|
141
|
+
customStatus?: CustomStatus;
|
|
142
|
+
/** Output only. Metadata if the user state is set to DO_NOT_DISTURB. */
|
|
143
|
+
doNotDisturbMetadata?: DoNotDisturbMetadata;
|
|
144
|
+
/** Identifier. Resource name of the user's availability. Format: `users/{user}/availability` `{user}` is the id for the Person in the People API or Admin SDK directory API. For example, `users/123456789`. The user's email address or `me` can also be used as an alias to refer to the caller. For example, `users/user@example.com` or `users/me`. */
|
|
145
|
+
name?: string;
|
|
146
|
+
/** Output only. The user's current availability state. */
|
|
147
|
+
state?:
|
|
148
|
+
'STATE_UNSPECIFIED' | 'ACTIVE' | 'IDLE' | 'AWAY' | 'DO_NOT_DISTURB';
|
|
149
|
+
}
|
|
141
150
|
interface Button {
|
|
142
151
|
/** A button with image and `onclick` action. */
|
|
143
152
|
imageButton?: ImageButton;
|
|
@@ -266,6 +275,16 @@ declare namespace gapi.client {
|
|
|
266
275
|
/** Required. Input only. The image file name. Supported file extensions: `.png`, `.jpg`, `.gif`. */
|
|
267
276
|
filename?: string;
|
|
268
277
|
}
|
|
278
|
+
interface CustomStatus {
|
|
279
|
+
/** Required. The emoji of the custom status. Only Unicode emojis are supported; custom emojis are not supported. */
|
|
280
|
+
emoji?: Emoji;
|
|
281
|
+
/** The timestamp when the custom status expires. */
|
|
282
|
+
expireTime?: string;
|
|
283
|
+
/** Required. The text of the custom status. This will be a string with maximum length of 64. */
|
|
284
|
+
text?: string;
|
|
285
|
+
/** Input only. The time-to-live duration after which the custom status expires. */
|
|
286
|
+
ttl?: string;
|
|
287
|
+
}
|
|
269
288
|
interface DateInput {
|
|
270
289
|
/** Time since epoch time, in milliseconds. */
|
|
271
290
|
msSinceEpoch?: string;
|
|
@@ -341,6 +360,10 @@ declare namespace gapi.client {
|
|
|
341
360
|
/** Input only. [Dialog](https://developers.google.com/workspace/chat/dialogs) for the request. */
|
|
342
361
|
dialog?: Dialog;
|
|
343
362
|
}
|
|
363
|
+
interface DoNotDisturbMetadata {
|
|
364
|
+
/** Output only. Timestamp until which the user should be marked as DO_NOT_DISTURB. This can be maximum of 1 year in the future. */
|
|
365
|
+
expirationTime?: string;
|
|
366
|
+
}
|
|
344
367
|
interface DriveDataRef {
|
|
345
368
|
/** The ID for the drive file. Use with the Drive API. */
|
|
346
369
|
driveFileId?: string;
|
|
@@ -454,9 +477,7 @@ declare namespace gapi.client {
|
|
|
454
477
|
peekCardHeader?: GoogleAppsCardV1CardHeader;
|
|
455
478
|
/** The divider style between the header, sections and footer. */
|
|
456
479
|
sectionDividerStyle?:
|
|
457
|
-
| '
|
|
458
|
-
| 'SOLID_DIVIDER'
|
|
459
|
-
| 'NO_DIVIDER';
|
|
480
|
+
'DIVIDER_STYLE_UNSPECIFIED' | 'SOLID_DIVIDER' | 'NO_DIVIDER';
|
|
460
481
|
/** Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card). */
|
|
461
482
|
sections?: GoogleAppsCardV1Section[];
|
|
462
483
|
}
|
|
@@ -521,18 +542,12 @@ declare namespace gapi.client {
|
|
|
521
542
|
expandButton?: GoogleAppsCardV1Button;
|
|
522
543
|
/** The horizontal alignment of the expand and collapse button. */
|
|
523
544
|
horizontalAlignment?:
|
|
524
|
-
| '
|
|
525
|
-
| 'START'
|
|
526
|
-
| 'CENTER'
|
|
527
|
-
| 'END';
|
|
545
|
+
'HORIZONTAL_ALIGNMENT_UNSPECIFIED' | 'START' | 'CENTER' | 'END';
|
|
528
546
|
}
|
|
529
547
|
interface GoogleAppsCardV1Column {
|
|
530
548
|
/** Specifies whether widgets align to the left, right, or center of a column. */
|
|
531
549
|
horizontalAlignment?:
|
|
532
|
-
| '
|
|
533
|
-
| 'START'
|
|
534
|
-
| 'CENTER'
|
|
535
|
-
| 'END';
|
|
550
|
+
'HORIZONTAL_ALIGNMENT_UNSPECIFIED' | 'START' | 'CENTER' | 'END';
|
|
536
551
|
/** Specifies how a column fills the width of the card. */
|
|
537
552
|
horizontalSizeStyle?:
|
|
538
553
|
| 'HORIZONTAL_SIZE_STYLE_UNSPECIFIED'
|
|
@@ -540,10 +555,7 @@ declare namespace gapi.client {
|
|
|
540
555
|
| 'FILL_MINIMUM_SPACE';
|
|
541
556
|
/** Specifies whether widgets align to the top, bottom, or center of a column. */
|
|
542
557
|
verticalAlignment?:
|
|
543
|
-
| '
|
|
544
|
-
| 'CENTER'
|
|
545
|
-
| 'TOP'
|
|
546
|
-
| 'BOTTOM';
|
|
558
|
+
'VERTICAL_ALIGNMENT_UNSPECIFIED' | 'CENTER' | 'TOP' | 'BOTTOM';
|
|
547
559
|
/** An array of widgets included in a column. Widgets appear in the order that they are specified. */
|
|
548
560
|
widgets?: GoogleAppsCardV1Widgets[];
|
|
549
561
|
}
|
|
@@ -604,10 +616,7 @@ declare namespace gapi.client {
|
|
|
604
616
|
startIcon?: GoogleAppsCardV1Icon;
|
|
605
617
|
/** Optional. Vertical alignment of the start icon. If not set, the icon will be vertically centered. [Google Chat apps](https://developers.google.com/workspace/chat): */
|
|
606
618
|
startIconVerticalAlignment?:
|
|
607
|
-
| '
|
|
608
|
-
| 'TOP'
|
|
609
|
-
| 'MIDDLE'
|
|
610
|
-
| 'BOTTOM';
|
|
619
|
+
'VERTICAL_ALIGNMENT_UNSPECIFIED' | 'TOP' | 'MIDDLE' | 'BOTTOM';
|
|
611
620
|
/** A switch widget that a user can click to change its state and trigger an action. */
|
|
612
621
|
switchControl?: GoogleAppsCardV1SwitchControl;
|
|
613
622
|
/** Required. The primary text. Supports simple formatting. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) and [Formatting text in Google Workspace add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). */
|
|
@@ -805,11 +814,7 @@ declare namespace gapi.client {
|
|
|
805
814
|
platformDataSource?: GoogleAppsCardV1PlatformDataSource;
|
|
806
815
|
/** 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 checkboxes, but they can only select one value from a dropdown menu. */
|
|
807
816
|
type?:
|
|
808
|
-
| '
|
|
809
|
-
| 'RADIO_BUTTON'
|
|
810
|
-
| 'SWITCH'
|
|
811
|
-
| 'DROPDOWN'
|
|
812
|
-
| 'MULTI_SELECT';
|
|
817
|
+
'CHECK_BOX' | 'RADIO_BUTTON' | 'SWITCH' | 'DROPDOWN' | 'MULTI_SELECT';
|
|
813
818
|
}
|
|
814
819
|
interface GoogleAppsCardV1SelectionItem {
|
|
815
820
|
/** For multiselect menus, a text description or label that's displayed below the item's `text` field. */
|
|
@@ -915,10 +920,7 @@ declare namespace gapi.client {
|
|
|
915
920
|
grid?: GoogleAppsCardV1Grid;
|
|
916
921
|
/** Specifies whether widgets align to the left, right, or center of a column. */
|
|
917
922
|
horizontalAlignment?:
|
|
918
|
-
| '
|
|
919
|
-
| 'START'
|
|
920
|
-
| 'CENTER'
|
|
921
|
-
| 'END';
|
|
923
|
+
'HORIZONTAL_ALIGNMENT_UNSPECIFIED' | 'START' | 'CENTER' | 'END';
|
|
922
924
|
/** A unique ID assigned to the widget that's used to identify the widget to be mutated. The ID has a character limit of 64 characters and should be in the format of `[a-zA-Z0-9-]+`. Available for Google Workspace add-ons that extend Google Workspace Studio. Unavailable for Google Chat apps. */
|
|
923
925
|
id?: string;
|
|
924
926
|
/** Displays an image. For example, the following JSON creates an image with alternative text: ``` "image": { "imageUrl": "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", "altText": "Chat app avatar" } ``` */
|
|
@@ -1131,6 +1133,19 @@ declare namespace gapi.client {
|
|
|
1131
1133
|
/** List of spaces in the requested (or first) page. Note: The `permissionSettings` field is not returned in the Space object for list requests. */
|
|
1132
1134
|
spaces?: Space[];
|
|
1133
1135
|
}
|
|
1136
|
+
interface MarkAsActiveRequest {
|
|
1137
|
+
/** The absolute timestamp when the ACTIVE state expires. */
|
|
1138
|
+
expireTime?: string;
|
|
1139
|
+
/** The duration from the current time until the ACTIVE state expires. Using a short TTL can effectively reset the user's state to be based on activity after this brief duration. */
|
|
1140
|
+
ttl?: string;
|
|
1141
|
+
}
|
|
1142
|
+
interface MarkAsAwayRequest {}
|
|
1143
|
+
interface MarkAsDoNotDisturbRequest {
|
|
1144
|
+
/** The absolute timestamp when the DND state expires. */
|
|
1145
|
+
expireTime?: string;
|
|
1146
|
+
/** The duration from the current time until the DND state expires. */
|
|
1147
|
+
ttl?: string;
|
|
1148
|
+
}
|
|
1134
1149
|
interface MatchedUrl {
|
|
1135
1150
|
/** Output only. The URL that was matched. */
|
|
1136
1151
|
url?: string;
|
|
@@ -1142,10 +1157,7 @@ declare namespace gapi.client {
|
|
|
1142
1157
|
interface MeetSpaceLinkData {
|
|
1143
1158
|
/** Optional. Output only. If the Meet is a Huddle, indicates the status of the huddle. Otherwise, this is unset. */
|
|
1144
1159
|
huddleStatus?:
|
|
1145
|
-
| '
|
|
1146
|
-
| 'STARTED'
|
|
1147
|
-
| 'ENDED'
|
|
1148
|
-
| 'MISSED';
|
|
1160
|
+
'HUDDLE_STATUS_UNSPECIFIED' | 'STARTED' | 'ENDED' | 'MISSED';
|
|
1149
1161
|
/** Meeting code of the linked Meet space. */
|
|
1150
1162
|
meetingCode?: string;
|
|
1151
1163
|
/** Indicates the type of the Meet space. */
|
|
@@ -1176,10 +1188,7 @@ declare namespace gapi.client {
|
|
|
1176
1188
|
| 'ROLE_ASSISTANT_MANAGER';
|
|
1177
1189
|
/** Output only. State of the membership. */
|
|
1178
1190
|
state?:
|
|
1179
|
-
| '
|
|
1180
|
-
| 'JOINED'
|
|
1181
|
-
| 'INVITED'
|
|
1182
|
-
| 'NOT_A_MEMBER';
|
|
1191
|
+
'MEMBERSHIP_STATE_UNSPECIFIED' | 'JOINED' | 'INVITED' | 'NOT_A_MEMBER';
|
|
1183
1192
|
}
|
|
1184
1193
|
interface MembershipBatchCreatedEventData {
|
|
1185
1194
|
/** A list of new memberships. */
|
|
@@ -1497,9 +1506,7 @@ declare namespace gapi.client {
|
|
|
1497
1506
|
spaceDetails?: SpaceDetails;
|
|
1498
1507
|
/** Optional. The message history state for messages and threads in this space. */
|
|
1499
1508
|
spaceHistoryState?:
|
|
1500
|
-
| '
|
|
1501
|
-
| 'HISTORY_OFF'
|
|
1502
|
-
| 'HISTORY_ON';
|
|
1509
|
+
'HISTORY_STATE_UNSPECIFIED' | 'HISTORY_OFF' | 'HISTORY_ON';
|
|
1503
1510
|
/** Output only. The threading state in the Chat space. */
|
|
1504
1511
|
spaceThreadingState?:
|
|
1505
1512
|
| 'SPACE_THREADING_STATE_UNSPECIFIED'
|
|
@@ -1508,10 +1515,7 @@ declare namespace gapi.client {
|
|
|
1508
1515
|
| 'UNTHREADED_MESSAGES';
|
|
1509
1516
|
/** Optional. The type of space. Required when creating a space or updating the space type of a space. Output only for other usage. */
|
|
1510
1517
|
spaceType?:
|
|
1511
|
-
| '
|
|
1512
|
-
| 'SPACE'
|
|
1513
|
-
| 'GROUP_CHAT'
|
|
1514
|
-
| 'DIRECT_MESSAGE';
|
|
1518
|
+
'SPACE_TYPE_UNSPECIFIED' | 'SPACE' | 'GROUP_CHAT' | 'DIRECT_MESSAGE';
|
|
1515
1519
|
/** Output only. The URI for a user to access the space. */
|
|
1516
1520
|
spaceUri?: string;
|
|
1517
1521
|
/** Output only. Deprecated: Use `spaceThreadingState` instead. Whether messages are threaded in this space. */
|
|
@@ -3013,7 +3017,7 @@ declare namespace gapi.client {
|
|
|
3013
3017
|
},
|
|
3014
3018
|
body: Space,
|
|
3015
3019
|
): Request<Space>;
|
|
3016
|
-
/** Returns a list of spaces in a Google Workspace organization. For an example, see [Search for and manage spaces](https://developers.google.com/workspace/chat/search-manage-admin). When `use_admin_access` is set to `false`, the results are limited to spaces where the calling user is a joined member. To search with administrator privileges, set `use_admin_access` to `true`. Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.spaces.readonly` - `https://www.googleapis.com/auth/chat.spaces` - [User authentication with administrator privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges) and one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.admin.spaces.readonly` - `https://www.googleapis.com/auth/chat.admin.spaces` */
|
|
3020
|
+
/** Returns a list of spaces in a Google Workspace organization. For an example, see [Search for and manage spaces](https://developers.google.com/workspace/chat/search-manage-admin). When `use_admin_access` is set to `false`, the results are limited to spaces where the calling user is a joined member. To search with administrator privileges, set `use_admin_access` to `true`. Setting `use_admin_access` to `false` is available under Developer Preview. Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.spaces.readonly` - `https://www.googleapis.com/auth/chat.spaces` - [User authentication with administrator privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges) and one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.admin.spaces.readonly` - `https://www.googleapis.com/auth/chat.admin.spaces` */
|
|
3017
3021
|
search(request?: {
|
|
3018
3022
|
/** V1 error format. */
|
|
3019
3023
|
'$.xgafv'?: '1' | '2';
|
|
@@ -3037,7 +3041,7 @@ declare namespace gapi.client {
|
|
|
3037
3041
|
pageToken?: string;
|
|
3038
3042
|
/** Returns response with indentations and line breaks. */
|
|
3039
3043
|
prettyPrint?: boolean;
|
|
3040
|
-
/** Required. A search query. You can search by using the following parameters when `useAdminAccess` is set to `true`: - `create_time` - `customer` - `display_name` - `external_user_allowed` - `last_active_time` - `space_history_state` - `space_type` When `useAdminAccess` is set to `false`: - `display_name` - `external_user_allowed` `create_time` and `last_active_time` accept a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported comparison operators are: `=`, `<`, `>`, `<=`, `>=`. `customer` is required and is used to indicate which customer to fetch spaces from. `customers/my_customer` is the only supported value. `display_name` only accepts the `HAS` (`:`) operator. The text to match is first tokenized into tokens and each token is prefix-matched case-insensitively and independently as a substring anywhere in the space's `display_name`. For example, `Fun Eve` matches `Fun event` or `The evening was fun`, but not `notFun event` or `even`. When `useAdminAccess` is set to `false`, `display_name` is required to retrieve meaningful results. Otherwise, the default behavior is to return an empty response. `external_user_allowed` accepts either `true` or `false`. `space_history_state` only accepts values from the [`historyState`] (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) field of a `space` resource. `space_type` is required and the only valid value is `SPACE`. Across different fields, only `AND` operators are supported. A valid example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid example is `space_type = "SPACE" OR display_name:"Hello"`. Among the same field, `space_type` doesn't support `AND` or `OR` operators. `display_name`, 'space_history_state', and 'external_user_allowed' only support `OR` operators. `last_active_time` and `create_time` support both `AND` and `OR` operators. `AND` can only be used to represent an interval, such as `last_active_time < "2022-01-01T00:00:00+00:00" AND last_active_time > "2023-01-01T00:00:00+00:00"`. The following example queries are valid when `useAdminAccess` is set to `true`: ``` customer = "customers/my_customer" AND space_type = "SPACE" customer = "customers/my_customer" AND space_type = "SPACE" AND display_name:"Hello World" customer = "customers/my_customer" AND space_type = "SPACE" AND (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > "2022-01-01T00:00:00+00:00") customer = "customers/my_customer" AND space_type = "SPACE" AND (display_name:"Hello World" OR display_name:"Fun event") AND (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < "2022-01-01T00:00:00+00:00") customer = "customers/my_customer" AND space_type = "SPACE" AND (create_time > "2019-01-01T00:00:00+00:00" AND create_time < "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") ``` The following example queries are valid when `useAdminAccess` is set to `false`: ``` display_name:"Hello World" (display_name:"Hello" OR display_name:"Fun") (external_user_allowed = "true") (external_user_allowed = "true" AND display_name:"Hello") ``` */
|
|
3044
|
+
/** Required. A search query. You can search by using the following parameters when `useAdminAccess` is set to `true`: - `create_time` - `customer` - `display_name` - `external_user_allowed` - `last_active_time` - `space_history_state` - `space_type` When `useAdminAccess` is set to `false`: - `display_name` - `external_user_allowed` `create_time` and `last_active_time` accept a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported comparison operators are: `=`, `<`, `>`, `<=`, `>=`. `customer` is required when `useAdminAccess` is set to `true`, and is used to indicate which customer to fetch spaces from. `customers/my_customer` is the only supported value. `display_name` only accepts the `HAS` (`:`) operator. The text to match is first tokenized into tokens and each token is prefix-matched case-insensitively and independently as a substring anywhere in the space's `display_name`. For example, `Fun Eve` matches `Fun event` or `The evening was fun`, but not `notFun event` or `even`. When `useAdminAccess` is set to `false`, `display_name` is required to retrieve meaningful results. Otherwise, the default behavior is to return an empty response. `external_user_allowed` accepts either `true` or `false`. `space_history_state` only accepts values from the [`historyState`] (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) field of a `space` resource. `space_type` is required when `useAdminAccess` is set to `true`, and the only valid value is `SPACE`. Across different fields, only `AND` operators are supported. A valid example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid example is `space_type = "SPACE" OR display_name:"Hello"`. Among the same field, `space_type` doesn't support `AND` or `OR` operators. `display_name`, 'space_history_state', and 'external_user_allowed' only support `OR` operators. `last_active_time` and `create_time` support both `AND` and `OR` operators. `AND` can only be used to represent an interval, such as `last_active_time < "2022-01-01T00:00:00+00:00" AND last_active_time > "2023-01-01T00:00:00+00:00"`. The following example queries are valid when `useAdminAccess` is set to `true`: ``` customer = "customers/my_customer" AND space_type = "SPACE" customer = "customers/my_customer" AND space_type = "SPACE" AND display_name:"Hello World" customer = "customers/my_customer" AND space_type = "SPACE" AND (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > "2022-01-01T00:00:00+00:00") customer = "customers/my_customer" AND space_type = "SPACE" AND (display_name:"Hello World" OR display_name:"Fun event") AND (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < "2022-01-01T00:00:00+00:00") customer = "customers/my_customer" AND space_type = "SPACE" AND (create_time > "2019-01-01T00:00:00+00:00" AND create_time < "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") ``` The following example queries are valid when `useAdminAccess` is set to `false`: ``` display_name:"Hello World" (display_name:"Hello" OR display_name:"Fun") (external_user_allowed = "true") // Returns an empty response. (external_user_allowed = "true" AND display_name:"Hello") ``` */
|
|
3041
3045
|
query?: string;
|
|
3042
3046
|
/** 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. */
|
|
3043
3047
|
quotaUser?: string;
|
|
@@ -3045,7 +3049,7 @@ declare namespace gapi.client {
|
|
|
3045
3049
|
upload_protocol?: string;
|
|
3046
3050
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3047
3051
|
uploadType?: string;
|
|
3048
|
-
/** When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). */
|
|
3052
|
+
/** When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Setting `use_admin_access` to `false` is available under Developer Preview. [Developer Preview](https://developers.google.com/workspace/preview). */
|
|
3049
3053
|
useAdminAccess?: boolean;
|
|
3050
3054
|
}): Request<SearchSpacesResponse>;
|
|
3051
3055
|
/** Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. For an example, see [Set up a space with initial members](https://developers.google.com/workspace/chat/set-up-spaces). To specify the human members to add, add memberships with the appropriate `membership.member.name`. To add a human user, use `users/{user}`, where `{user}` can be the email address for the user. For users in the same Workspace organization `{user}` can also be the `id` for the person from the People API, or the `id` for the user in the Directory API. For example, if the People API Person profile ID for `user@example.com` is `123456789`, you can add the user to the space by setting the `membership.member.name` to `users/user@example.com` or `users/123456789`. To specify the Google groups to add, add memberships with the appropriate `membership.group_member.name`. To add or invite a Google group, use `groups/{group}`, where `{group}` is the `id` for the group from the Cloud Identity Groups API. For example, you can use [Cloud Identity Groups lookup API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup) to retrieve the ID `123456789` for group email `group@example.com`, then you can add the group to the space by setting the `membership.group_member.name` to `groups/123456789`. Group email is not supported, and Google groups can only be added as members in named spaces. For a named space or group chat, if the caller blocks, or is blocked by some members, or doesn't have permission to add some members, then those members aren't added to the created space. To create a direct message (DM) between the calling user and another human user, specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the calling app, set `Space.singleUserBotDm` to `true` and don't specify any memberships. You can only use this method to set up a DM with the calling app. To add the calling app as a member of a space or an existing DM between two human users, see [Invite or add a user or app to a space](https://developers.google.com/workspace/chat/create-members). If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies aren't supported. If you receive the error message `ALREADY_EXISTS` when setting up a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.spaces.create` - `https://www.googleapis.com/auth/chat.spaces` */
|
|
@@ -3106,6 +3110,271 @@ declare namespace gapi.client {
|
|
|
3106
3110
|
messages: MessagesResource;
|
|
3107
3111
|
spaceEvents: SpaceEventsResource;
|
|
3108
3112
|
}
|
|
3113
|
+
interface AvailabilityResource {
|
|
3114
|
+
/** Returns availability information for a human user in Google Chat. For example, this can be used to check if a user is online or away, or to retrieve their custom status message. This method only retrieves the authenticated user's availability. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.availability.readonly` - `https://www.googleapis.com/auth/chat.users.availability` */
|
|
3115
|
+
getAvailability(request?: {
|
|
3116
|
+
/** V1 error format. */
|
|
3117
|
+
'$.xgafv'?: '1' | '2';
|
|
3118
|
+
/** OAuth access token. */
|
|
3119
|
+
access_token?: string;
|
|
3120
|
+
/** Data format for response. */
|
|
3121
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3122
|
+
/** JSONP */
|
|
3123
|
+
callback?: string;
|
|
3124
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3125
|
+
fields?: string;
|
|
3126
|
+
/** 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. */
|
|
3127
|
+
key?: string;
|
|
3128
|
+
/** Required. The resource name of the availability to retrieve. Format: users/{user}/availability `{user}` is the id for the Person in the People API or Admin SDK directory API. For example, `users/123456789`. The user's email address or `me` can also be used as an alias to refer to the caller. For example, `users/user@example.com` or `users/me`. */
|
|
3129
|
+
name: string;
|
|
3130
|
+
/** OAuth 2.0 token for the current user. */
|
|
3131
|
+
oauth_token?: string;
|
|
3132
|
+
/** Returns response with indentations and line breaks. */
|
|
3133
|
+
prettyPrint?: boolean;
|
|
3134
|
+
/** 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. */
|
|
3135
|
+
quotaUser?: string;
|
|
3136
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3137
|
+
upload_protocol?: string;
|
|
3138
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3139
|
+
uploadType?: string;
|
|
3140
|
+
}): Request<Availability>;
|
|
3141
|
+
/** Marks user as `ACTIVE` in Google Chat. Sets the user's availability state to `ACTIVE`. The `ACTIVE` state lasts until the specified expiration, at which point the user's state becomes `AWAY`. Note that if the user is actively using Chat, the `ACTIVE` state duration may extend beyond the provided expiration. This method only updates the authenticated user's availability. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.availability` */
|
|
3142
|
+
markAsActive(request: {
|
|
3143
|
+
/** V1 error format. */
|
|
3144
|
+
'$.xgafv'?: '1' | '2';
|
|
3145
|
+
/** OAuth access token. */
|
|
3146
|
+
access_token?: string;
|
|
3147
|
+
/** Data format for response. */
|
|
3148
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3149
|
+
/** JSONP */
|
|
3150
|
+
callback?: string;
|
|
3151
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3152
|
+
fields?: string;
|
|
3153
|
+
/** 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. */
|
|
3154
|
+
key?: string;
|
|
3155
|
+
/** Required. The resource name of the availability to mark as active. Format: users/{user}/availability `{user}` is the id for the Person in the People API or Admin SDK directory API. For example, `users/123456789`. The user's email address or `me` can also be used as an alias to refer to the caller. For example, `users/user@example.com` or `users/me`. */
|
|
3156
|
+
name: string;
|
|
3157
|
+
/** OAuth 2.0 token for the current user. */
|
|
3158
|
+
oauth_token?: string;
|
|
3159
|
+
/** Returns response with indentations and line breaks. */
|
|
3160
|
+
prettyPrint?: boolean;
|
|
3161
|
+
/** 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. */
|
|
3162
|
+
quotaUser?: string;
|
|
3163
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3164
|
+
upload_protocol?: string;
|
|
3165
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3166
|
+
uploadType?: string;
|
|
3167
|
+
/** Request body */
|
|
3168
|
+
resource: MarkAsActiveRequest;
|
|
3169
|
+
}): Request<Availability>;
|
|
3170
|
+
markAsActive(
|
|
3171
|
+
request: {
|
|
3172
|
+
/** V1 error format. */
|
|
3173
|
+
'$.xgafv'?: '1' | '2';
|
|
3174
|
+
/** OAuth access token. */
|
|
3175
|
+
access_token?: string;
|
|
3176
|
+
/** Data format for response. */
|
|
3177
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3178
|
+
/** JSONP */
|
|
3179
|
+
callback?: string;
|
|
3180
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3181
|
+
fields?: string;
|
|
3182
|
+
/** 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. */
|
|
3183
|
+
key?: string;
|
|
3184
|
+
/** Required. The resource name of the availability to mark as active. Format: users/{user}/availability `{user}` is the id for the Person in the People API or Admin SDK directory API. For example, `users/123456789`. The user's email address or `me` can also be used as an alias to refer to the caller. For example, `users/user@example.com` or `users/me`. */
|
|
3185
|
+
name: string;
|
|
3186
|
+
/** OAuth 2.0 token for the current user. */
|
|
3187
|
+
oauth_token?: string;
|
|
3188
|
+
/** Returns response with indentations and line breaks. */
|
|
3189
|
+
prettyPrint?: boolean;
|
|
3190
|
+
/** 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. */
|
|
3191
|
+
quotaUser?: string;
|
|
3192
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3193
|
+
upload_protocol?: string;
|
|
3194
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3195
|
+
uploadType?: string;
|
|
3196
|
+
},
|
|
3197
|
+
body: MarkAsActiveRequest,
|
|
3198
|
+
): Request<Availability>;
|
|
3199
|
+
/** Marks user as `AWAY` in Google Chat. Sets the user's state to away and is not affected by the user's activity. This method only updates the authenticated user's availability. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.availability` */
|
|
3200
|
+
markAsAway(request: {
|
|
3201
|
+
/** V1 error format. */
|
|
3202
|
+
'$.xgafv'?: '1' | '2';
|
|
3203
|
+
/** OAuth access token. */
|
|
3204
|
+
access_token?: string;
|
|
3205
|
+
/** Data format for response. */
|
|
3206
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3207
|
+
/** JSONP */
|
|
3208
|
+
callback?: string;
|
|
3209
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3210
|
+
fields?: string;
|
|
3211
|
+
/** 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. */
|
|
3212
|
+
key?: string;
|
|
3213
|
+
/** Required. The resource name of the availability to mark as away. Format: users/{user}/availability `{user}` is the id for the Person in the People API or Admin SDK directory API. For example, `users/123456789`. The user's email address or `me` can also be used as an alias to refer to the caller. For example, `users/user@example.com` or `users/me`. */
|
|
3214
|
+
name: string;
|
|
3215
|
+
/** OAuth 2.0 token for the current user. */
|
|
3216
|
+
oauth_token?: string;
|
|
3217
|
+
/** Returns response with indentations and line breaks. */
|
|
3218
|
+
prettyPrint?: boolean;
|
|
3219
|
+
/** 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. */
|
|
3220
|
+
quotaUser?: string;
|
|
3221
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3222
|
+
upload_protocol?: string;
|
|
3223
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3224
|
+
uploadType?: string;
|
|
3225
|
+
/** Request body */
|
|
3226
|
+
resource: MarkAsAwayRequest;
|
|
3227
|
+
}): Request<Availability>;
|
|
3228
|
+
markAsAway(
|
|
3229
|
+
request: {
|
|
3230
|
+
/** V1 error format. */
|
|
3231
|
+
'$.xgafv'?: '1' | '2';
|
|
3232
|
+
/** OAuth access token. */
|
|
3233
|
+
access_token?: string;
|
|
3234
|
+
/** Data format for response. */
|
|
3235
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3236
|
+
/** JSONP */
|
|
3237
|
+
callback?: string;
|
|
3238
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3239
|
+
fields?: string;
|
|
3240
|
+
/** 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. */
|
|
3241
|
+
key?: string;
|
|
3242
|
+
/** Required. The resource name of the availability to mark as away. Format: users/{user}/availability `{user}` is the id for the Person in the People API or Admin SDK directory API. For example, `users/123456789`. The user's email address or `me` can also be used as an alias to refer to the caller. For example, `users/user@example.com` or `users/me`. */
|
|
3243
|
+
name: string;
|
|
3244
|
+
/** OAuth 2.0 token for the current user. */
|
|
3245
|
+
oauth_token?: string;
|
|
3246
|
+
/** Returns response with indentations and line breaks. */
|
|
3247
|
+
prettyPrint?: boolean;
|
|
3248
|
+
/** 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. */
|
|
3249
|
+
quotaUser?: string;
|
|
3250
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3251
|
+
upload_protocol?: string;
|
|
3252
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3253
|
+
uploadType?: string;
|
|
3254
|
+
},
|
|
3255
|
+
body: MarkAsAwayRequest,
|
|
3256
|
+
): Request<Availability>;
|
|
3257
|
+
/** Marks user as`DO_NOT_DISTURB` in Google Chat. Sets a user's availability state to `DO_NOT_DISTURB` until a specified expiration time. When in `DO_NOT_DISTURB`, users typically won't receive notifications. This method only updates the authenticated user's availability. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.availability` */
|
|
3258
|
+
markAsDoNotDisturb(request: {
|
|
3259
|
+
/** V1 error format. */
|
|
3260
|
+
'$.xgafv'?: '1' | '2';
|
|
3261
|
+
/** OAuth access token. */
|
|
3262
|
+
access_token?: string;
|
|
3263
|
+
/** Data format for response. */
|
|
3264
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3265
|
+
/** JSONP */
|
|
3266
|
+
callback?: string;
|
|
3267
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3268
|
+
fields?: string;
|
|
3269
|
+
/** 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. */
|
|
3270
|
+
key?: string;
|
|
3271
|
+
/** Required. The resource name of the availability to mark as Do Not Disturb. Format: users/{user}/availability `{user}` is the id for the Person in the People API or Admin SDK directory API. For example, `users/123456789`. The user's email address or `me` can also be used as an alias to refer to the caller. For example, `users/user@example.com` or `users/me`. */
|
|
3272
|
+
name: string;
|
|
3273
|
+
/** OAuth 2.0 token for the current user. */
|
|
3274
|
+
oauth_token?: string;
|
|
3275
|
+
/** Returns response with indentations and line breaks. */
|
|
3276
|
+
prettyPrint?: boolean;
|
|
3277
|
+
/** 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. */
|
|
3278
|
+
quotaUser?: string;
|
|
3279
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3280
|
+
upload_protocol?: string;
|
|
3281
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3282
|
+
uploadType?: string;
|
|
3283
|
+
/** Request body */
|
|
3284
|
+
resource: MarkAsDoNotDisturbRequest;
|
|
3285
|
+
}): Request<Availability>;
|
|
3286
|
+
markAsDoNotDisturb(
|
|
3287
|
+
request: {
|
|
3288
|
+
/** V1 error format. */
|
|
3289
|
+
'$.xgafv'?: '1' | '2';
|
|
3290
|
+
/** OAuth access token. */
|
|
3291
|
+
access_token?: string;
|
|
3292
|
+
/** Data format for response. */
|
|
3293
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3294
|
+
/** JSONP */
|
|
3295
|
+
callback?: string;
|
|
3296
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3297
|
+
fields?: string;
|
|
3298
|
+
/** 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. */
|
|
3299
|
+
key?: string;
|
|
3300
|
+
/** Required. The resource name of the availability to mark as Do Not Disturb. Format: users/{user}/availability `{user}` is the id for the Person in the People API or Admin SDK directory API. For example, `users/123456789`. The user's email address or `me` can also be used as an alias to refer to the caller. For example, `users/user@example.com` or `users/me`. */
|
|
3301
|
+
name: string;
|
|
3302
|
+
/** OAuth 2.0 token for the current user. */
|
|
3303
|
+
oauth_token?: string;
|
|
3304
|
+
/** Returns response with indentations and line breaks. */
|
|
3305
|
+
prettyPrint?: boolean;
|
|
3306
|
+
/** 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. */
|
|
3307
|
+
quotaUser?: string;
|
|
3308
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3309
|
+
upload_protocol?: string;
|
|
3310
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3311
|
+
uploadType?: string;
|
|
3312
|
+
},
|
|
3313
|
+
body: MarkAsDoNotDisturbRequest,
|
|
3314
|
+
): Request<Availability>;
|
|
3315
|
+
/** Updates availability information for a human user. Only the `custom_status` field can be updated through this method. This method only updates the authenticated user's availability. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.availability` */
|
|
3316
|
+
updateAvailability(request: {
|
|
3317
|
+
/** V1 error format. */
|
|
3318
|
+
'$.xgafv'?: '1' | '2';
|
|
3319
|
+
/** OAuth access token. */
|
|
3320
|
+
access_token?: string;
|
|
3321
|
+
/** Data format for response. */
|
|
3322
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3323
|
+
/** JSONP */
|
|
3324
|
+
callback?: string;
|
|
3325
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3326
|
+
fields?: string;
|
|
3327
|
+
/** 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. */
|
|
3328
|
+
key?: string;
|
|
3329
|
+
/** Identifier. Resource name of the user's availability. Format: `users/{user}/availability` `{user}` is the id for the Person in the People API or Admin SDK directory API. For example, `users/123456789`. The user's email address or `me` can also be used as an alias to refer to the caller. For example, `users/user@example.com` or `users/me`. */
|
|
3330
|
+
name: string;
|
|
3331
|
+
/** OAuth 2.0 token for the current user. */
|
|
3332
|
+
oauth_token?: string;
|
|
3333
|
+
/** Returns response with indentations and line breaks. */
|
|
3334
|
+
prettyPrint?: boolean;
|
|
3335
|
+
/** 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. */
|
|
3336
|
+
quotaUser?: string;
|
|
3337
|
+
/** Required. The list of fields to update. The only field that can be updated is `custom_status`. */
|
|
3338
|
+
updateMask?: string;
|
|
3339
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3340
|
+
upload_protocol?: string;
|
|
3341
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3342
|
+
uploadType?: string;
|
|
3343
|
+
/** Request body */
|
|
3344
|
+
resource: Availability;
|
|
3345
|
+
}): Request<Availability>;
|
|
3346
|
+
updateAvailability(
|
|
3347
|
+
request: {
|
|
3348
|
+
/** V1 error format. */
|
|
3349
|
+
'$.xgafv'?: '1' | '2';
|
|
3350
|
+
/** OAuth access token. */
|
|
3351
|
+
access_token?: string;
|
|
3352
|
+
/** Data format for response. */
|
|
3353
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3354
|
+
/** JSONP */
|
|
3355
|
+
callback?: string;
|
|
3356
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3357
|
+
fields?: string;
|
|
3358
|
+
/** 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. */
|
|
3359
|
+
key?: string;
|
|
3360
|
+
/** Identifier. Resource name of the user's availability. Format: `users/{user}/availability` `{user}` is the id for the Person in the People API or Admin SDK directory API. For example, `users/123456789`. The user's email address or `me` can also be used as an alias to refer to the caller. For example, `users/user@example.com` or `users/me`. */
|
|
3361
|
+
name: string;
|
|
3362
|
+
/** OAuth 2.0 token for the current user. */
|
|
3363
|
+
oauth_token?: string;
|
|
3364
|
+
/** Returns response with indentations and line breaks. */
|
|
3365
|
+
prettyPrint?: boolean;
|
|
3366
|
+
/** 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. */
|
|
3367
|
+
quotaUser?: string;
|
|
3368
|
+
/** Required. The list of fields to update. The only field that can be updated is `custom_status`. */
|
|
3369
|
+
updateMask?: string;
|
|
3370
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3371
|
+
upload_protocol?: string;
|
|
3372
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3373
|
+
uploadType?: string;
|
|
3374
|
+
},
|
|
3375
|
+
body: Availability,
|
|
3376
|
+
): Request<Availability>;
|
|
3377
|
+
}
|
|
3109
3378
|
interface ItemsResource {
|
|
3110
3379
|
/** Lists items in a section. Only spaces can be section items. For details, see [Create and organize sections in Google Chat](https://support.google.com/chat/answer/16059854). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.sections` - `https://www.googleapis.com/auth/chat.users.sections.readonly` */
|
|
3111
3380
|
list(request?: {
|
|
@@ -3652,6 +3921,7 @@ declare namespace gapi.client {
|
|
|
3652
3921
|
threads: ThreadsResource;
|
|
3653
3922
|
}
|
|
3654
3923
|
interface UsersResource {
|
|
3924
|
+
availability: AvailabilityResource;
|
|
3655
3925
|
sections: SectionsResource;
|
|
3656
3926
|
spaces: SpacesResource;
|
|
3657
3927
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -147,6 +147,12 @@ var client_id = '',
|
|
|
147
147
|
// View chat and spaces in Google Chat
|
|
148
148
|
'https://www.googleapis.com/auth/chat.spaces.readonly',
|
|
149
149
|
|
|
150
|
+
// See and change your availability status in Google Chat.
|
|
151
|
+
'https://www.googleapis.com/auth/chat.users.availability',
|
|
152
|
+
|
|
153
|
+
// See your availability status in Google Chat.
|
|
154
|
+
'https://www.googleapis.com/auth/chat.users.availability.readonly',
|
|
155
|
+
|
|
150
156
|
// View and modify last read time for Google Chat conversations
|
|
151
157
|
'https://www.googleapis.com/auth/chat.users.readstate',
|
|
152
158
|
|
|
@@ -251,7 +257,7 @@ Updates a space. For an example, see [Update a space](https://developers.google.
|
|
|
251
257
|
await gapi.client.chat.spaces.patch({name: 'name'});
|
|
252
258
|
|
|
253
259
|
/*
|
|
254
|
-
Returns a list of spaces in a Google Workspace organization. For an example, see [Search for and manage spaces](https://developers.google.com/workspace/chat/search-manage-admin). When `use_admin_access` is set to `false`, the results are limited to spaces where the calling user is a joined member. To search with administrator privileges, set `use_admin_access` to `true`. Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.spaces.readonly` - `https://www.googleapis.com/auth/chat.spaces` - [User authentication with administrator privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges) and one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.admin.spaces.readonly` - `https://www.googleapis.com/auth/chat.admin.spaces`
|
|
260
|
+
Returns a list of spaces in a Google Workspace organization. For an example, see [Search for and manage spaces](https://developers.google.com/workspace/chat/search-manage-admin). When `use_admin_access` is set to `false`, the results are limited to spaces where the calling user is a joined member. To search with administrator privileges, set `use_admin_access` to `true`. Setting `use_admin_access` to `false` is available under Developer Preview. Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.spaces.readonly` - `https://www.googleapis.com/auth/chat.spaces` - [User authentication with administrator privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges) and one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.admin.spaces.readonly` - `https://www.googleapis.com/auth/chat.admin.spaces`
|
|
255
261
|
*/
|
|
256
262
|
await gapi.client.chat.spaces.search({});
|
|
257
263
|
|