@google-apps/chat 0.12.0 → 0.14.0
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/CHANGELOG.md +24 -0
- package/README.md +4 -2
- package/build/protos/google/apps/card/v1/card.proto +1 -1
- package/build/protos/google/chat/v1/action_status.proto +1 -1
- package/build/protos/google/chat/v1/annotation.proto +1 -1
- package/build/protos/google/chat/v1/attachment.proto +1 -1
- package/build/protos/google/chat/v1/chat_service.proto +34 -2
- package/build/protos/google/chat/v1/contextual_addon.proto +1 -1
- package/build/protos/google/chat/v1/deletion_metadata.proto +5 -1
- package/build/protos/google/chat/v1/event_payload.proto +1 -1
- package/build/protos/google/chat/v1/group.proto +1 -1
- package/build/protos/google/chat/v1/history_state.proto +1 -1
- package/build/protos/google/chat/v1/matched_url.proto +1 -1
- package/build/protos/google/chat/v1/membership.proto +1 -1
- package/build/protos/google/chat/v1/message.proto +1 -1
- package/build/protos/google/chat/v1/reaction.proto +1 -1
- package/build/protos/google/chat/v1/slash_command.proto +2 -2
- package/build/protos/google/chat/v1/space.proto +1 -1
- package/build/protos/google/chat/v1/space_event.proto +1 -1
- package/build/protos/google/chat/v1/space_notification_setting.proto +122 -0
- package/build/protos/google/chat/v1/space_read_state.proto +1 -1
- package/build/protos/google/chat/v1/space_setup.proto +1 -1
- package/build/protos/google/chat/v1/thread_read_state.proto +1 -1
- package/build/protos/google/chat/v1/user.proto +1 -1
- package/build/protos/google/chat/v1/widgets.proto +1 -1
- package/build/protos/protos.d.ts +378 -1
- package/build/protos/protos.js +890 -0
- package/build/protos/protos.json +131 -5
- package/build/src/v1/chat_service_client.d.ts +102 -7
- package/build/src/v1/chat_service_client.js +565 -117
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +10 -0
- package/build/src/v1/chat_service_proto_list.json +25 -0
- package/build/src/v1/gapic_metadata.json +357 -0
- package/package.json +16 -16
package/build/protos/protos.json
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"options": {
|
|
3
|
-
"syntax": "proto3"
|
|
4
|
-
},
|
|
5
2
|
"nested": {
|
|
6
3
|
"google": {
|
|
7
4
|
"nested": {
|
|
@@ -2981,7 +2978,7 @@
|
|
|
2981
2978
|
"ChatService": {
|
|
2982
2979
|
"options": {
|
|
2983
2980
|
"(google.api.default_host)": "chat.googleapis.com",
|
|
2984
|
-
"(google.api.oauth_scopes)": "https://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonly"
|
|
2981
|
+
"(google.api.oauth_scopes)": "https://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonly,https://www.googleapis.com/auth/chat.users.spacesettings"
|
|
2985
2982
|
},
|
|
2986
2983
|
"methods": {
|
|
2987
2984
|
"CreateMessage": {
|
|
@@ -3517,6 +3514,44 @@
|
|
|
3517
3514
|
"(google.api.method_signature)": "parent,filter"
|
|
3518
3515
|
}
|
|
3519
3516
|
]
|
|
3517
|
+
},
|
|
3518
|
+
"GetSpaceNotificationSetting": {
|
|
3519
|
+
"requestType": "GetSpaceNotificationSettingRequest",
|
|
3520
|
+
"responseType": "SpaceNotificationSetting",
|
|
3521
|
+
"options": {
|
|
3522
|
+
"(google.api.http).get": "/v1/{name=users/*/spaces/*/spaceNotificationSetting}",
|
|
3523
|
+
"(google.api.method_signature)": "name"
|
|
3524
|
+
},
|
|
3525
|
+
"parsedOptions": [
|
|
3526
|
+
{
|
|
3527
|
+
"(google.api.http)": {
|
|
3528
|
+
"get": "/v1/{name=users/*/spaces/*/spaceNotificationSetting}"
|
|
3529
|
+
}
|
|
3530
|
+
},
|
|
3531
|
+
{
|
|
3532
|
+
"(google.api.method_signature)": "name"
|
|
3533
|
+
}
|
|
3534
|
+
]
|
|
3535
|
+
},
|
|
3536
|
+
"UpdateSpaceNotificationSetting": {
|
|
3537
|
+
"requestType": "UpdateSpaceNotificationSettingRequest",
|
|
3538
|
+
"responseType": "SpaceNotificationSetting",
|
|
3539
|
+
"options": {
|
|
3540
|
+
"(google.api.http).patch": "/v1/{space_notification_setting.name=users/*/spaces/*/spaceNotificationSetting}",
|
|
3541
|
+
"(google.api.http).body": "space_notification_setting",
|
|
3542
|
+
"(google.api.method_signature)": "space_notification_setting,update_mask"
|
|
3543
|
+
},
|
|
3544
|
+
"parsedOptions": [
|
|
3545
|
+
{
|
|
3546
|
+
"(google.api.http)": {
|
|
3547
|
+
"patch": "/v1/{space_notification_setting.name=users/*/spaces/*/spaceNotificationSetting}",
|
|
3548
|
+
"body": "space_notification_setting"
|
|
3549
|
+
}
|
|
3550
|
+
},
|
|
3551
|
+
{
|
|
3552
|
+
"(google.api.method_signature)": "space_notification_setting,update_mask"
|
|
3553
|
+
}
|
|
3554
|
+
]
|
|
3520
3555
|
}
|
|
3521
3556
|
}
|
|
3522
3557
|
},
|
|
@@ -4682,7 +4717,8 @@
|
|
|
4682
4717
|
"ADMIN": 3,
|
|
4683
4718
|
"APP_MESSAGE_EXPIRY": 4,
|
|
4684
4719
|
"CREATOR_VIA_APP": 5,
|
|
4685
|
-
"SPACE_OWNER_VIA_APP": 6
|
|
4720
|
+
"SPACE_OWNER_VIA_APP": 6,
|
|
4721
|
+
"SPACE_MEMBER": 7
|
|
4686
4722
|
}
|
|
4687
4723
|
}
|
|
4688
4724
|
}
|
|
@@ -5618,6 +5654,96 @@
|
|
|
5618
5654
|
}
|
|
5619
5655
|
}
|
|
5620
5656
|
},
|
|
5657
|
+
"SpaceNotificationSetting": {
|
|
5658
|
+
"options": {
|
|
5659
|
+
"(google.api.resource).type": "chat.googleapis.com/SpaceNotificationSetting",
|
|
5660
|
+
"(google.api.resource).pattern": "users/{user}/spaces/{space}/spaceNotificationSetting",
|
|
5661
|
+
"(google.api.resource).singular": "spaceNotificationSetting"
|
|
5662
|
+
},
|
|
5663
|
+
"oneofs": {
|
|
5664
|
+
"_notificationSetting": {
|
|
5665
|
+
"oneof": [
|
|
5666
|
+
"notificationSetting"
|
|
5667
|
+
]
|
|
5668
|
+
},
|
|
5669
|
+
"_muteSetting": {
|
|
5670
|
+
"oneof": [
|
|
5671
|
+
"muteSetting"
|
|
5672
|
+
]
|
|
5673
|
+
}
|
|
5674
|
+
},
|
|
5675
|
+
"fields": {
|
|
5676
|
+
"name": {
|
|
5677
|
+
"type": "string",
|
|
5678
|
+
"id": 1,
|
|
5679
|
+
"options": {
|
|
5680
|
+
"(google.api.field_behavior)": "IDENTIFIER"
|
|
5681
|
+
}
|
|
5682
|
+
},
|
|
5683
|
+
"notificationSetting": {
|
|
5684
|
+
"type": "NotificationSetting",
|
|
5685
|
+
"id": 2,
|
|
5686
|
+
"options": {
|
|
5687
|
+
"proto3_optional": true
|
|
5688
|
+
}
|
|
5689
|
+
},
|
|
5690
|
+
"muteSetting": {
|
|
5691
|
+
"type": "MuteSetting",
|
|
5692
|
+
"id": 3,
|
|
5693
|
+
"options": {
|
|
5694
|
+
"proto3_optional": true
|
|
5695
|
+
}
|
|
5696
|
+
}
|
|
5697
|
+
},
|
|
5698
|
+
"nested": {
|
|
5699
|
+
"NotificationSetting": {
|
|
5700
|
+
"values": {
|
|
5701
|
+
"NOTIFICATION_SETTING_UNSPECIFIED": 0,
|
|
5702
|
+
"ALL": 1,
|
|
5703
|
+
"MAIN_CONVERSATIONS": 2,
|
|
5704
|
+
"FOR_YOU": 3,
|
|
5705
|
+
"OFF": 4
|
|
5706
|
+
}
|
|
5707
|
+
},
|
|
5708
|
+
"MuteSetting": {
|
|
5709
|
+
"values": {
|
|
5710
|
+
"MUTE_SETTING_UNSPECIFIED": 0,
|
|
5711
|
+
"UNMUTED": 1,
|
|
5712
|
+
"MUTED": 2
|
|
5713
|
+
}
|
|
5714
|
+
}
|
|
5715
|
+
}
|
|
5716
|
+
},
|
|
5717
|
+
"GetSpaceNotificationSettingRequest": {
|
|
5718
|
+
"fields": {
|
|
5719
|
+
"name": {
|
|
5720
|
+
"type": "string",
|
|
5721
|
+
"id": 1,
|
|
5722
|
+
"options": {
|
|
5723
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
5724
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/SpaceNotificationSetting"
|
|
5725
|
+
}
|
|
5726
|
+
}
|
|
5727
|
+
}
|
|
5728
|
+
},
|
|
5729
|
+
"UpdateSpaceNotificationSettingRequest": {
|
|
5730
|
+
"fields": {
|
|
5731
|
+
"spaceNotificationSetting": {
|
|
5732
|
+
"type": "SpaceNotificationSetting",
|
|
5733
|
+
"id": 1,
|
|
5734
|
+
"options": {
|
|
5735
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
5736
|
+
}
|
|
5737
|
+
},
|
|
5738
|
+
"updateMask": {
|
|
5739
|
+
"type": "google.protobuf.FieldMask",
|
|
5740
|
+
"id": 2,
|
|
5741
|
+
"options": {
|
|
5742
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
5743
|
+
}
|
|
5744
|
+
}
|
|
5745
|
+
}
|
|
5746
|
+
},
|
|
5621
5747
|
"SpaceReadState": {
|
|
5622
5748
|
"options": {
|
|
5623
5749
|
"(google.api.resource).type": "chat.googleapis.com/SpaceReadState",
|
|
@@ -18,6 +18,7 @@ export declare class ChatServiceClient {
|
|
|
18
18
|
private _defaults;
|
|
19
19
|
private _universeDomain;
|
|
20
20
|
private _servicePath;
|
|
21
|
+
private _log;
|
|
21
22
|
auth: gax.GoogleAuth;
|
|
22
23
|
descriptors: Descriptors;
|
|
23
24
|
warn: (code: string, message: string, warnType?: string) => void;
|
|
@@ -52,7 +53,7 @@ export declare class ChatServiceClient {
|
|
|
52
53
|
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
|
|
53
54
|
* the environment variable GCLOUD_PROJECT for your project ID. If your
|
|
54
55
|
* app is running in an environment which supports
|
|
55
|
-
* {@link https://
|
|
56
|
+
* {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
|
|
56
57
|
* your project ID will be detected automatically.
|
|
57
58
|
* @param {string} [options.apiEndpoint] - The domain name of the
|
|
58
59
|
* API remote host.
|
|
@@ -1467,6 +1468,76 @@ export declare class ChatServiceClient {
|
|
|
1467
1468
|
]>;
|
|
1468
1469
|
getSpaceEvent(request: protos.google.chat.v1.IGetSpaceEventRequest, options: CallOptions, callback: Callback<protos.google.chat.v1.ISpaceEvent, protos.google.chat.v1.IGetSpaceEventRequest | null | undefined, {} | null | undefined>): void;
|
|
1469
1470
|
getSpaceEvent(request: protos.google.chat.v1.IGetSpaceEventRequest, callback: Callback<protos.google.chat.v1.ISpaceEvent, protos.google.chat.v1.IGetSpaceEventRequest | null | undefined, {} | null | undefined>): void;
|
|
1471
|
+
/**
|
|
1472
|
+
* Gets the space notification setting. For an example, see [Get the
|
|
1473
|
+
* caller's space notification
|
|
1474
|
+
* setting](https://developers.google.com/workspace/chat/get-space-notification-setting).
|
|
1475
|
+
*
|
|
1476
|
+
* Requires [user
|
|
1477
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
1478
|
+
*
|
|
1479
|
+
* @param {Object} request
|
|
1480
|
+
* The request object that will be sent.
|
|
1481
|
+
* @param {string} request.name
|
|
1482
|
+
* Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting
|
|
1483
|
+
*
|
|
1484
|
+
* - `users/me/spaces/{space}/spaceNotificationSetting`, OR
|
|
1485
|
+
* - `users/user@example.com/spaces/{space}/spaceNotificationSetting`, OR
|
|
1486
|
+
* - `users/123456789/spaces/{space}/spaceNotificationSetting`.
|
|
1487
|
+
* Note: Only the caller's user id or email is allowed in the path.
|
|
1488
|
+
* @param {object} [options]
|
|
1489
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1490
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1491
|
+
* The first element of the array is an object representing {@link protos.google.chat.v1.SpaceNotificationSetting|SpaceNotificationSetting}.
|
|
1492
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
1493
|
+
* for more details and examples.
|
|
1494
|
+
* @example <caption>include:samples/generated/v1/chat_service.get_space_notification_setting.js</caption>
|
|
1495
|
+
* region_tag:chat_v1_generated_ChatService_GetSpaceNotificationSetting_async
|
|
1496
|
+
*/
|
|
1497
|
+
getSpaceNotificationSetting(request?: protos.google.chat.v1.IGetSpaceNotificationSettingRequest, options?: CallOptions): Promise<[
|
|
1498
|
+
protos.google.chat.v1.ISpaceNotificationSetting,
|
|
1499
|
+
protos.google.chat.v1.IGetSpaceNotificationSettingRequest | undefined,
|
|
1500
|
+
{} | undefined
|
|
1501
|
+
]>;
|
|
1502
|
+
getSpaceNotificationSetting(request: protos.google.chat.v1.IGetSpaceNotificationSettingRequest, options: CallOptions, callback: Callback<protos.google.chat.v1.ISpaceNotificationSetting, protos.google.chat.v1.IGetSpaceNotificationSettingRequest | null | undefined, {} | null | undefined>): void;
|
|
1503
|
+
getSpaceNotificationSetting(request: protos.google.chat.v1.IGetSpaceNotificationSettingRequest, callback: Callback<protos.google.chat.v1.ISpaceNotificationSetting, protos.google.chat.v1.IGetSpaceNotificationSettingRequest | null | undefined, {} | null | undefined>): void;
|
|
1504
|
+
/**
|
|
1505
|
+
* Updates the space notification setting. For an example, see [Update
|
|
1506
|
+
* the caller's space notification
|
|
1507
|
+
* setting](https://developers.google.com/workspace/chat/update-space-notification-setting).
|
|
1508
|
+
*
|
|
1509
|
+
* Requires [user
|
|
1510
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
1511
|
+
*
|
|
1512
|
+
* @param {Object} request
|
|
1513
|
+
* The request object that will be sent.
|
|
1514
|
+
* @param {google.chat.v1.SpaceNotificationSetting} request.spaceNotificationSetting
|
|
1515
|
+
* Required. The resource name for the space notification settings must be
|
|
1516
|
+
* populated in the form of
|
|
1517
|
+
* `users/{user}/spaces/{space}/spaceNotificationSetting`. Only fields
|
|
1518
|
+
* specified by `update_mask` are updated.
|
|
1519
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
1520
|
+
* Required. Supported field paths:
|
|
1521
|
+
*
|
|
1522
|
+
* - `notification_setting`
|
|
1523
|
+
*
|
|
1524
|
+
* - `mute_setting`
|
|
1525
|
+
* @param {object} [options]
|
|
1526
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1527
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1528
|
+
* The first element of the array is an object representing {@link protos.google.chat.v1.SpaceNotificationSetting|SpaceNotificationSetting}.
|
|
1529
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
1530
|
+
* for more details and examples.
|
|
1531
|
+
* @example <caption>include:samples/generated/v1/chat_service.update_space_notification_setting.js</caption>
|
|
1532
|
+
* region_tag:chat_v1_generated_ChatService_UpdateSpaceNotificationSetting_async
|
|
1533
|
+
*/
|
|
1534
|
+
updateSpaceNotificationSetting(request?: protos.google.chat.v1.IUpdateSpaceNotificationSettingRequest, options?: CallOptions): Promise<[
|
|
1535
|
+
protos.google.chat.v1.ISpaceNotificationSetting,
|
|
1536
|
+
protos.google.chat.v1.IUpdateSpaceNotificationSettingRequest | undefined,
|
|
1537
|
+
{} | undefined
|
|
1538
|
+
]>;
|
|
1539
|
+
updateSpaceNotificationSetting(request: protos.google.chat.v1.IUpdateSpaceNotificationSettingRequest, options: CallOptions, callback: Callback<protos.google.chat.v1.ISpaceNotificationSetting, protos.google.chat.v1.IUpdateSpaceNotificationSettingRequest | null | undefined, {} | null | undefined>): void;
|
|
1540
|
+
updateSpaceNotificationSetting(request: protos.google.chat.v1.IUpdateSpaceNotificationSettingRequest, callback: Callback<protos.google.chat.v1.ISpaceNotificationSetting, protos.google.chat.v1.IUpdateSpaceNotificationSettingRequest | null | undefined, {} | null | undefined>): void;
|
|
1470
1541
|
/**
|
|
1471
1542
|
* Lists messages in a space that the caller is a member of, including
|
|
1472
1543
|
* messages from blocked members and spaces. If you list messages from a
|
|
@@ -1573,7 +1644,7 @@ export declare class ChatServiceClient {
|
|
|
1573
1644
|
listMessages(request: protos.google.chat.v1.IListMessagesRequest, options: CallOptions, callback: PaginationCallback<protos.google.chat.v1.IListMessagesRequest, protos.google.chat.v1.IListMessagesResponse | null | undefined, protos.google.chat.v1.IMessage>): void;
|
|
1574
1645
|
listMessages(request: protos.google.chat.v1.IListMessagesRequest, callback: PaginationCallback<protos.google.chat.v1.IListMessagesRequest, protos.google.chat.v1.IListMessagesResponse | null | undefined, protos.google.chat.v1.IMessage>): void;
|
|
1575
1646
|
/**
|
|
1576
|
-
* Equivalent to `
|
|
1647
|
+
* Equivalent to `listMessages`, but returns a NodeJS Stream object.
|
|
1577
1648
|
* @param {Object} request
|
|
1578
1649
|
* The request object that will be sent.
|
|
1579
1650
|
* @param {string} request.parent
|
|
@@ -1887,7 +1958,7 @@ export declare class ChatServiceClient {
|
|
|
1887
1958
|
listMemberships(request: protos.google.chat.v1.IListMembershipsRequest, options: CallOptions, callback: PaginationCallback<protos.google.chat.v1.IListMembershipsRequest, protos.google.chat.v1.IListMembershipsResponse | null | undefined, protos.google.chat.v1.IMembership>): void;
|
|
1888
1959
|
listMemberships(request: protos.google.chat.v1.IListMembershipsRequest, callback: PaginationCallback<protos.google.chat.v1.IListMembershipsRequest, protos.google.chat.v1.IListMembershipsResponse | null | undefined, protos.google.chat.v1.IMembership>): void;
|
|
1889
1960
|
/**
|
|
1890
|
-
* Equivalent to `
|
|
1961
|
+
* Equivalent to `listMemberships`, but returns a NodeJS Stream object.
|
|
1891
1962
|
* @param {Object} request
|
|
1892
1963
|
* The request object that will be sent.
|
|
1893
1964
|
* @param {string} request.parent
|
|
@@ -2178,7 +2249,7 @@ export declare class ChatServiceClient {
|
|
|
2178
2249
|
listSpaces(request: protos.google.chat.v1.IListSpacesRequest, options: CallOptions, callback: PaginationCallback<protos.google.chat.v1.IListSpacesRequest, protos.google.chat.v1.IListSpacesResponse | null | undefined, protos.google.chat.v1.ISpace>): void;
|
|
2179
2250
|
listSpaces(request: protos.google.chat.v1.IListSpacesRequest, callback: PaginationCallback<protos.google.chat.v1.IListSpacesRequest, protos.google.chat.v1.IListSpacesResponse | null | undefined, protos.google.chat.v1.ISpace>): void;
|
|
2180
2251
|
/**
|
|
2181
|
-
* Equivalent to `
|
|
2252
|
+
* Equivalent to `listSpaces`, but returns a NodeJS Stream object.
|
|
2182
2253
|
* @param {Object} request
|
|
2183
2254
|
* The request object that will be sent.
|
|
2184
2255
|
* @param {number} [request.pageSize]
|
|
@@ -2438,7 +2509,7 @@ export declare class ChatServiceClient {
|
|
|
2438
2509
|
searchSpaces(request: protos.google.chat.v1.ISearchSpacesRequest, options: CallOptions, callback: PaginationCallback<protos.google.chat.v1.ISearchSpacesRequest, protos.google.chat.v1.ISearchSpacesResponse | null | undefined, protos.google.chat.v1.ISpace>): void;
|
|
2439
2510
|
searchSpaces(request: protos.google.chat.v1.ISearchSpacesRequest, callback: PaginationCallback<protos.google.chat.v1.ISearchSpacesRequest, protos.google.chat.v1.ISearchSpacesResponse | null | undefined, protos.google.chat.v1.ISpace>): void;
|
|
2440
2511
|
/**
|
|
2441
|
-
* Equivalent to `
|
|
2512
|
+
* Equivalent to `searchSpaces`, but returns a NodeJS Stream object.
|
|
2442
2513
|
* @param {Object} request
|
|
2443
2514
|
* The request object that will be sent.
|
|
2444
2515
|
* @param {boolean} request.useAdminAccess
|
|
@@ -2809,7 +2880,7 @@ export declare class ChatServiceClient {
|
|
|
2809
2880
|
listReactions(request: protos.google.chat.v1.IListReactionsRequest, options: CallOptions, callback: PaginationCallback<protos.google.chat.v1.IListReactionsRequest, protos.google.chat.v1.IListReactionsResponse | null | undefined, protos.google.chat.v1.IReaction>): void;
|
|
2810
2881
|
listReactions(request: protos.google.chat.v1.IListReactionsRequest, callback: PaginationCallback<protos.google.chat.v1.IListReactionsRequest, protos.google.chat.v1.IListReactionsResponse | null | undefined, protos.google.chat.v1.IReaction>): void;
|
|
2811
2882
|
/**
|
|
2812
|
-
* Equivalent to `
|
|
2883
|
+
* Equivalent to `listReactions`, but returns a NodeJS Stream object.
|
|
2813
2884
|
* @param {Object} request
|
|
2814
2885
|
* The request object that will be sent.
|
|
2815
2886
|
* @param {string} request.parent
|
|
@@ -3074,7 +3145,7 @@ export declare class ChatServiceClient {
|
|
|
3074
3145
|
listSpaceEvents(request: protos.google.chat.v1.IListSpaceEventsRequest, options: CallOptions, callback: PaginationCallback<protos.google.chat.v1.IListSpaceEventsRequest, protos.google.chat.v1.IListSpaceEventsResponse | null | undefined, protos.google.chat.v1.ISpaceEvent>): void;
|
|
3075
3146
|
listSpaceEvents(request: protos.google.chat.v1.IListSpaceEventsRequest, callback: PaginationCallback<protos.google.chat.v1.IListSpaceEventsRequest, protos.google.chat.v1.IListSpaceEventsResponse | null | undefined, protos.google.chat.v1.ISpaceEvent>): void;
|
|
3076
3147
|
/**
|
|
3077
|
-
* Equivalent to `
|
|
3148
|
+
* Equivalent to `listSpaceEvents`, but returns a NodeJS Stream object.
|
|
3078
3149
|
* @param {Object} request
|
|
3079
3150
|
* The request object that will be sent.
|
|
3080
3151
|
* @param {string} request.parent
|
|
@@ -3436,6 +3507,30 @@ export declare class ChatServiceClient {
|
|
|
3436
3507
|
* @returns {string} A string representing the space_event.
|
|
3437
3508
|
*/
|
|
3438
3509
|
matchSpaceEventFromSpaceEventName(spaceEventName: string): string | number;
|
|
3510
|
+
/**
|
|
3511
|
+
* Return a fully-qualified spaceNotificationSetting resource name string.
|
|
3512
|
+
*
|
|
3513
|
+
* @param {string} user
|
|
3514
|
+
* @param {string} space
|
|
3515
|
+
* @returns {string} Resource name string.
|
|
3516
|
+
*/
|
|
3517
|
+
spaceNotificationSettingPath(user: string, space: string): string;
|
|
3518
|
+
/**
|
|
3519
|
+
* Parse the user from SpaceNotificationSetting resource.
|
|
3520
|
+
*
|
|
3521
|
+
* @param {string} spaceNotificationSettingName
|
|
3522
|
+
* A fully-qualified path representing SpaceNotificationSetting resource.
|
|
3523
|
+
* @returns {string} A string representing the user.
|
|
3524
|
+
*/
|
|
3525
|
+
matchUserFromSpaceNotificationSettingName(spaceNotificationSettingName: string): string | number;
|
|
3526
|
+
/**
|
|
3527
|
+
* Parse the space from SpaceNotificationSetting resource.
|
|
3528
|
+
*
|
|
3529
|
+
* @param {string} spaceNotificationSettingName
|
|
3530
|
+
* A fully-qualified path representing SpaceNotificationSetting resource.
|
|
3531
|
+
* @returns {string} A string representing the space.
|
|
3532
|
+
*/
|
|
3533
|
+
matchSpaceFromSpaceNotificationSettingName(spaceNotificationSettingName: string): string | number;
|
|
3439
3534
|
/**
|
|
3440
3535
|
* Return a fully-qualified spaceReadState resource name string.
|
|
3441
3536
|
*
|