@google-apps/chat 0.29.0 → 0.31.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/build/protos/google/chat/v1/chat_service.proto +3 -0
- package/build/protos/google/chat/v1/markup_syntax.proto +47 -0
- package/build/protos/google/chat/v1/message.proto +34 -4
- package/build/protos/google/chat/v1/space.proto +1 -0
- package/build/protos/protos.d.ts +31 -0
- package/build/protos/protos.js +1 -1
- package/build/protos/protos.json +36 -1
- package/build/src/v1/chat_service_client.d.ts +24 -0
- package/build/src/v1/chat_service_client.js +90 -73
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_proto_list.json +1 -0
- package/build/src/v1/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -284,7 +284,7 @@ class ChatServiceClient {
|
|
|
284
284
|
'moveSectionItem',
|
|
285
285
|
];
|
|
286
286
|
for (const methodName of chatServiceStubMethods) {
|
|
287
|
-
const callPromise = this.chatServiceStub.then(
|
|
287
|
+
const callPromise = this.chatServiceStub.then(stub => (...args) => {
|
|
288
288
|
if (this._terminated) {
|
|
289
289
|
return Promise.reject('The client has already been closed.');
|
|
290
290
|
}
|
|
@@ -352,6 +352,9 @@ class ChatServiceClient {
|
|
|
352
352
|
'https://www.googleapis.com/auth/chat.admin.memberships.readonly',
|
|
353
353
|
'https://www.googleapis.com/auth/chat.admin.spaces',
|
|
354
354
|
'https://www.googleapis.com/auth/chat.admin.spaces.readonly',
|
|
355
|
+
'https://www.googleapis.com/auth/chat.app.all.memberships.readonly',
|
|
356
|
+
'https://www.googleapis.com/auth/chat.app.all.messages.readonly',
|
|
357
|
+
'https://www.googleapis.com/auth/chat.app.all.spaces.readonly',
|
|
355
358
|
'https://www.googleapis.com/auth/chat.app.delete',
|
|
356
359
|
'https://www.googleapis.com/auth/chat.app.memberships',
|
|
357
360
|
'https://www.googleapis.com/auth/chat.app.memberships.readonly',
|
|
@@ -413,7 +416,7 @@ class ChatServiceClient {
|
|
|
413
416
|
this._gaxModule.routingHeader.fromParams({
|
|
414
417
|
parent: request.parent ?? '',
|
|
415
418
|
});
|
|
416
|
-
this.initialize().catch(
|
|
419
|
+
this.initialize().catch(err => {
|
|
417
420
|
throw err;
|
|
418
421
|
});
|
|
419
422
|
this._log.info('createMessage request %j', request);
|
|
@@ -456,7 +459,7 @@ class ChatServiceClient {
|
|
|
456
459
|
this._gaxModule.routingHeader.fromParams({
|
|
457
460
|
name: request.name ?? '',
|
|
458
461
|
});
|
|
459
|
-
this.initialize().catch(
|
|
462
|
+
this.initialize().catch(err => {
|
|
460
463
|
throw err;
|
|
461
464
|
});
|
|
462
465
|
this._log.info('getMembership request %j', request);
|
|
@@ -499,7 +502,7 @@ class ChatServiceClient {
|
|
|
499
502
|
this._gaxModule.routingHeader.fromParams({
|
|
500
503
|
name: request.name ?? '',
|
|
501
504
|
});
|
|
502
|
-
this.initialize().catch(
|
|
505
|
+
this.initialize().catch(err => {
|
|
503
506
|
throw err;
|
|
504
507
|
});
|
|
505
508
|
this._log.info('getMessage request %j', request);
|
|
@@ -542,7 +545,7 @@ class ChatServiceClient {
|
|
|
542
545
|
this._gaxModule.routingHeader.fromParams({
|
|
543
546
|
'message.name': request.message.name ?? '',
|
|
544
547
|
});
|
|
545
|
-
this.initialize().catch(
|
|
548
|
+
this.initialize().catch(err => {
|
|
546
549
|
throw err;
|
|
547
550
|
});
|
|
548
551
|
this._log.info('updateMessage request %j', request);
|
|
@@ -585,7 +588,7 @@ class ChatServiceClient {
|
|
|
585
588
|
this._gaxModule.routingHeader.fromParams({
|
|
586
589
|
name: request.name ?? '',
|
|
587
590
|
});
|
|
588
|
-
this.initialize().catch(
|
|
591
|
+
this.initialize().catch(err => {
|
|
589
592
|
throw err;
|
|
590
593
|
});
|
|
591
594
|
this._log.info('deleteMessage request %j', request);
|
|
@@ -628,7 +631,7 @@ class ChatServiceClient {
|
|
|
628
631
|
this._gaxModule.routingHeader.fromParams({
|
|
629
632
|
name: request.name ?? '',
|
|
630
633
|
});
|
|
631
|
-
this.initialize().catch(
|
|
634
|
+
this.initialize().catch(err => {
|
|
632
635
|
throw err;
|
|
633
636
|
});
|
|
634
637
|
this._log.info('getAttachment request %j', request);
|
|
@@ -671,7 +674,7 @@ class ChatServiceClient {
|
|
|
671
674
|
this._gaxModule.routingHeader.fromParams({
|
|
672
675
|
parent: request.parent ?? '',
|
|
673
676
|
});
|
|
674
|
-
this.initialize().catch(
|
|
677
|
+
this.initialize().catch(err => {
|
|
675
678
|
throw err;
|
|
676
679
|
});
|
|
677
680
|
this._log.info('uploadAttachment request %j', request);
|
|
@@ -714,7 +717,7 @@ class ChatServiceClient {
|
|
|
714
717
|
this._gaxModule.routingHeader.fromParams({
|
|
715
718
|
name: request.name ?? '',
|
|
716
719
|
});
|
|
717
|
-
this.initialize().catch(
|
|
720
|
+
this.initialize().catch(err => {
|
|
718
721
|
throw err;
|
|
719
722
|
});
|
|
720
723
|
this._log.info('getSpace request %j', request);
|
|
@@ -753,7 +756,7 @@ class ChatServiceClient {
|
|
|
753
756
|
options = options || {};
|
|
754
757
|
options.otherArgs = options.otherArgs || {};
|
|
755
758
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
756
|
-
this.initialize().catch(
|
|
759
|
+
this.initialize().catch(err => {
|
|
757
760
|
throw err;
|
|
758
761
|
});
|
|
759
762
|
this._log.info('createSpace request %j', request);
|
|
@@ -792,7 +795,7 @@ class ChatServiceClient {
|
|
|
792
795
|
options = options || {};
|
|
793
796
|
options.otherArgs = options.otherArgs || {};
|
|
794
797
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
795
|
-
this.initialize().catch(
|
|
798
|
+
this.initialize().catch(err => {
|
|
796
799
|
throw err;
|
|
797
800
|
});
|
|
798
801
|
this._log.info('setUpSpace request %j', request);
|
|
@@ -835,7 +838,7 @@ class ChatServiceClient {
|
|
|
835
838
|
this._gaxModule.routingHeader.fromParams({
|
|
836
839
|
'space.name': request.space.name ?? '',
|
|
837
840
|
});
|
|
838
|
-
this.initialize().catch(
|
|
841
|
+
this.initialize().catch(err => {
|
|
839
842
|
throw err;
|
|
840
843
|
});
|
|
841
844
|
this._log.info('updateSpace request %j', request);
|
|
@@ -878,7 +881,7 @@ class ChatServiceClient {
|
|
|
878
881
|
this._gaxModule.routingHeader.fromParams({
|
|
879
882
|
name: request.name ?? '',
|
|
880
883
|
});
|
|
881
|
-
this.initialize().catch(
|
|
884
|
+
this.initialize().catch(err => {
|
|
882
885
|
throw err;
|
|
883
886
|
});
|
|
884
887
|
this._log.info('deleteSpace request %j', request);
|
|
@@ -921,7 +924,7 @@ class ChatServiceClient {
|
|
|
921
924
|
this._gaxModule.routingHeader.fromParams({
|
|
922
925
|
name: request.name ?? '',
|
|
923
926
|
});
|
|
924
|
-
this.initialize().catch(
|
|
927
|
+
this.initialize().catch(err => {
|
|
925
928
|
throw err;
|
|
926
929
|
});
|
|
927
930
|
this._log.info('completeImportSpace request %j', request);
|
|
@@ -960,7 +963,7 @@ class ChatServiceClient {
|
|
|
960
963
|
options = options || {};
|
|
961
964
|
options.otherArgs = options.otherArgs || {};
|
|
962
965
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
963
|
-
this.initialize().catch(
|
|
966
|
+
this.initialize().catch(err => {
|
|
964
967
|
throw err;
|
|
965
968
|
});
|
|
966
969
|
this._log.info('findDirectMessage request %j', request);
|
|
@@ -1003,7 +1006,7 @@ class ChatServiceClient {
|
|
|
1003
1006
|
this._gaxModule.routingHeader.fromParams({
|
|
1004
1007
|
parent: request.parent ?? '',
|
|
1005
1008
|
});
|
|
1006
|
-
this.initialize().catch(
|
|
1009
|
+
this.initialize().catch(err => {
|
|
1007
1010
|
throw err;
|
|
1008
1011
|
});
|
|
1009
1012
|
this._log.info('createMembership request %j', request);
|
|
@@ -1046,7 +1049,7 @@ class ChatServiceClient {
|
|
|
1046
1049
|
this._gaxModule.routingHeader.fromParams({
|
|
1047
1050
|
'membership.name': request.membership.name ?? '',
|
|
1048
1051
|
});
|
|
1049
|
-
this.initialize().catch(
|
|
1052
|
+
this.initialize().catch(err => {
|
|
1050
1053
|
throw err;
|
|
1051
1054
|
});
|
|
1052
1055
|
this._log.info('updateMembership request %j', request);
|
|
@@ -1089,7 +1092,7 @@ class ChatServiceClient {
|
|
|
1089
1092
|
this._gaxModule.routingHeader.fromParams({
|
|
1090
1093
|
name: request.name ?? '',
|
|
1091
1094
|
});
|
|
1092
|
-
this.initialize().catch(
|
|
1095
|
+
this.initialize().catch(err => {
|
|
1093
1096
|
throw err;
|
|
1094
1097
|
});
|
|
1095
1098
|
this._log.info('deleteMembership request %j', request);
|
|
@@ -1132,7 +1135,7 @@ class ChatServiceClient {
|
|
|
1132
1135
|
this._gaxModule.routingHeader.fromParams({
|
|
1133
1136
|
parent: request.parent ?? '',
|
|
1134
1137
|
});
|
|
1135
|
-
this.initialize().catch(
|
|
1138
|
+
this.initialize().catch(err => {
|
|
1136
1139
|
throw err;
|
|
1137
1140
|
});
|
|
1138
1141
|
this._log.info('createReaction request %j', request);
|
|
@@ -1175,7 +1178,7 @@ class ChatServiceClient {
|
|
|
1175
1178
|
this._gaxModule.routingHeader.fromParams({
|
|
1176
1179
|
name: request.name ?? '',
|
|
1177
1180
|
});
|
|
1178
|
-
this.initialize().catch(
|
|
1181
|
+
this.initialize().catch(err => {
|
|
1179
1182
|
throw err;
|
|
1180
1183
|
});
|
|
1181
1184
|
this._log.info('deleteReaction request %j', request);
|
|
@@ -1214,7 +1217,7 @@ class ChatServiceClient {
|
|
|
1214
1217
|
options = options || {};
|
|
1215
1218
|
options.otherArgs = options.otherArgs || {};
|
|
1216
1219
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1217
|
-
this.initialize().catch(
|
|
1220
|
+
this.initialize().catch(err => {
|
|
1218
1221
|
throw err;
|
|
1219
1222
|
});
|
|
1220
1223
|
this._log.info('createCustomEmoji request %j', request);
|
|
@@ -1257,7 +1260,7 @@ class ChatServiceClient {
|
|
|
1257
1260
|
this._gaxModule.routingHeader.fromParams({
|
|
1258
1261
|
name: request.name ?? '',
|
|
1259
1262
|
});
|
|
1260
|
-
this.initialize().catch(
|
|
1263
|
+
this.initialize().catch(err => {
|
|
1261
1264
|
throw err;
|
|
1262
1265
|
});
|
|
1263
1266
|
this._log.info('getCustomEmoji request %j', request);
|
|
@@ -1300,7 +1303,7 @@ class ChatServiceClient {
|
|
|
1300
1303
|
this._gaxModule.routingHeader.fromParams({
|
|
1301
1304
|
name: request.name ?? '',
|
|
1302
1305
|
});
|
|
1303
|
-
this.initialize().catch(
|
|
1306
|
+
this.initialize().catch(err => {
|
|
1304
1307
|
throw err;
|
|
1305
1308
|
});
|
|
1306
1309
|
this._log.info('deleteCustomEmoji request %j', request);
|
|
@@ -1343,7 +1346,7 @@ class ChatServiceClient {
|
|
|
1343
1346
|
this._gaxModule.routingHeader.fromParams({
|
|
1344
1347
|
name: request.name ?? '',
|
|
1345
1348
|
});
|
|
1346
|
-
this.initialize().catch(
|
|
1349
|
+
this.initialize().catch(err => {
|
|
1347
1350
|
throw err;
|
|
1348
1351
|
});
|
|
1349
1352
|
this._log.info('getSpaceReadState request %j', request);
|
|
@@ -1386,7 +1389,7 @@ class ChatServiceClient {
|
|
|
1386
1389
|
this._gaxModule.routingHeader.fromParams({
|
|
1387
1390
|
'space_read_state.name': request.spaceReadState.name ?? '',
|
|
1388
1391
|
});
|
|
1389
|
-
this.initialize().catch(
|
|
1392
|
+
this.initialize().catch(err => {
|
|
1390
1393
|
throw err;
|
|
1391
1394
|
});
|
|
1392
1395
|
this._log.info('updateSpaceReadState request %j', request);
|
|
@@ -1429,7 +1432,7 @@ class ChatServiceClient {
|
|
|
1429
1432
|
this._gaxModule.routingHeader.fromParams({
|
|
1430
1433
|
name: request.name ?? '',
|
|
1431
1434
|
});
|
|
1432
|
-
this.initialize().catch(
|
|
1435
|
+
this.initialize().catch(err => {
|
|
1433
1436
|
throw err;
|
|
1434
1437
|
});
|
|
1435
1438
|
this._log.info('getThreadReadState request %j', request);
|
|
@@ -1472,7 +1475,7 @@ class ChatServiceClient {
|
|
|
1472
1475
|
this._gaxModule.routingHeader.fromParams({
|
|
1473
1476
|
name: request.name ?? '',
|
|
1474
1477
|
});
|
|
1475
|
-
this.initialize().catch(
|
|
1478
|
+
this.initialize().catch(err => {
|
|
1476
1479
|
throw err;
|
|
1477
1480
|
});
|
|
1478
1481
|
this._log.info('getAvailability request %j', request);
|
|
@@ -1515,7 +1518,7 @@ class ChatServiceClient {
|
|
|
1515
1518
|
this._gaxModule.routingHeader.fromParams({
|
|
1516
1519
|
name: request.name ?? '',
|
|
1517
1520
|
});
|
|
1518
|
-
this.initialize().catch(
|
|
1521
|
+
this.initialize().catch(err => {
|
|
1519
1522
|
throw err;
|
|
1520
1523
|
});
|
|
1521
1524
|
this._log.info('markAsActive request %j', request);
|
|
@@ -1558,7 +1561,7 @@ class ChatServiceClient {
|
|
|
1558
1561
|
this._gaxModule.routingHeader.fromParams({
|
|
1559
1562
|
name: request.name ?? '',
|
|
1560
1563
|
});
|
|
1561
|
-
this.initialize().catch(
|
|
1564
|
+
this.initialize().catch(err => {
|
|
1562
1565
|
throw err;
|
|
1563
1566
|
});
|
|
1564
1567
|
this._log.info('markAsAway request %j', request);
|
|
@@ -1601,7 +1604,7 @@ class ChatServiceClient {
|
|
|
1601
1604
|
this._gaxModule.routingHeader.fromParams({
|
|
1602
1605
|
name: request.name ?? '',
|
|
1603
1606
|
});
|
|
1604
|
-
this.initialize().catch(
|
|
1607
|
+
this.initialize().catch(err => {
|
|
1605
1608
|
throw err;
|
|
1606
1609
|
});
|
|
1607
1610
|
this._log.info('markAsDoNotDisturb request %j', request);
|
|
@@ -1644,7 +1647,7 @@ class ChatServiceClient {
|
|
|
1644
1647
|
this._gaxModule.routingHeader.fromParams({
|
|
1645
1648
|
'availability.name': request.availability.name ?? '',
|
|
1646
1649
|
});
|
|
1647
|
-
this.initialize().catch(
|
|
1650
|
+
this.initialize().catch(err => {
|
|
1648
1651
|
throw err;
|
|
1649
1652
|
});
|
|
1650
1653
|
this._log.info('updateAvailability request %j', request);
|
|
@@ -1687,7 +1690,7 @@ class ChatServiceClient {
|
|
|
1687
1690
|
this._gaxModule.routingHeader.fromParams({
|
|
1688
1691
|
name: request.name ?? '',
|
|
1689
1692
|
});
|
|
1690
|
-
this.initialize().catch(
|
|
1693
|
+
this.initialize().catch(err => {
|
|
1691
1694
|
throw err;
|
|
1692
1695
|
});
|
|
1693
1696
|
this._log.info('getSpaceEvent request %j', request);
|
|
@@ -1730,7 +1733,7 @@ class ChatServiceClient {
|
|
|
1730
1733
|
this._gaxModule.routingHeader.fromParams({
|
|
1731
1734
|
name: request.name ?? '',
|
|
1732
1735
|
});
|
|
1733
|
-
this.initialize().catch(
|
|
1736
|
+
this.initialize().catch(err => {
|
|
1734
1737
|
throw err;
|
|
1735
1738
|
});
|
|
1736
1739
|
this._log.info('getSpaceNotificationSetting request %j', request);
|
|
@@ -1773,7 +1776,7 @@ class ChatServiceClient {
|
|
|
1773
1776
|
this._gaxModule.routingHeader.fromParams({
|
|
1774
1777
|
'space_notification_setting.name': request.spaceNotificationSetting.name ?? '',
|
|
1775
1778
|
});
|
|
1776
|
-
this.initialize().catch(
|
|
1779
|
+
this.initialize().catch(err => {
|
|
1777
1780
|
throw err;
|
|
1778
1781
|
});
|
|
1779
1782
|
this._log.info('updateSpaceNotificationSetting request %j', request);
|
|
@@ -1816,7 +1819,7 @@ class ChatServiceClient {
|
|
|
1816
1819
|
this._gaxModule.routingHeader.fromParams({
|
|
1817
1820
|
parent: request.parent ?? '',
|
|
1818
1821
|
});
|
|
1819
|
-
this.initialize().catch(
|
|
1822
|
+
this.initialize().catch(err => {
|
|
1820
1823
|
throw err;
|
|
1821
1824
|
});
|
|
1822
1825
|
this._log.info('createSection request %j', request);
|
|
@@ -1859,7 +1862,7 @@ class ChatServiceClient {
|
|
|
1859
1862
|
this._gaxModule.routingHeader.fromParams({
|
|
1860
1863
|
name: request.name ?? '',
|
|
1861
1864
|
});
|
|
1862
|
-
this.initialize().catch(
|
|
1865
|
+
this.initialize().catch(err => {
|
|
1863
1866
|
throw err;
|
|
1864
1867
|
});
|
|
1865
1868
|
this._log.info('deleteSection request %j', request);
|
|
@@ -1902,7 +1905,7 @@ class ChatServiceClient {
|
|
|
1902
1905
|
this._gaxModule.routingHeader.fromParams({
|
|
1903
1906
|
'section.name': request.section.name ?? '',
|
|
1904
1907
|
});
|
|
1905
|
-
this.initialize().catch(
|
|
1908
|
+
this.initialize().catch(err => {
|
|
1906
1909
|
throw err;
|
|
1907
1910
|
});
|
|
1908
1911
|
this._log.info('updateSection request %j', request);
|
|
@@ -1945,7 +1948,7 @@ class ChatServiceClient {
|
|
|
1945
1948
|
this._gaxModule.routingHeader.fromParams({
|
|
1946
1949
|
name: request.name ?? '',
|
|
1947
1950
|
});
|
|
1948
|
-
this.initialize().catch(
|
|
1951
|
+
this.initialize().catch(err => {
|
|
1949
1952
|
throw err;
|
|
1950
1953
|
});
|
|
1951
1954
|
this._log.info('positionSection request %j', request);
|
|
@@ -1988,7 +1991,7 @@ class ChatServiceClient {
|
|
|
1988
1991
|
this._gaxModule.routingHeader.fromParams({
|
|
1989
1992
|
name: request.name ?? '',
|
|
1990
1993
|
});
|
|
1991
|
-
this.initialize().catch(
|
|
1994
|
+
this.initialize().catch(err => {
|
|
1992
1995
|
throw err;
|
|
1993
1996
|
});
|
|
1994
1997
|
this._log.info('moveSectionItem request %j', request);
|
|
@@ -2031,7 +2034,7 @@ class ChatServiceClient {
|
|
|
2031
2034
|
this._gaxModule.routingHeader.fromParams({
|
|
2032
2035
|
parent: request.parent ?? '',
|
|
2033
2036
|
});
|
|
2034
|
-
this.initialize().catch(
|
|
2037
|
+
this.initialize().catch(err => {
|
|
2035
2038
|
throw err;
|
|
2036
2039
|
});
|
|
2037
2040
|
const wrappedCallback = callback
|
|
@@ -2124,6 +2127,9 @@ class ChatServiceClient {
|
|
|
2124
2127
|
* Optional. Whether to include deleted messages. Deleted messages include
|
|
2125
2128
|
* deleted time and metadata about their deletion, but message content is
|
|
2126
2129
|
* unavailable.
|
|
2130
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
2131
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
2132
|
+
* `formatted_text` field.
|
|
2127
2133
|
* @param {object} [options]
|
|
2128
2134
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2129
2135
|
* @returns {Stream}
|
|
@@ -2146,7 +2152,7 @@ class ChatServiceClient {
|
|
|
2146
2152
|
});
|
|
2147
2153
|
const defaultCallSettings = this._defaults['listMessages'];
|
|
2148
2154
|
const callSettings = defaultCallSettings.merge(options);
|
|
2149
|
-
this.initialize().catch(
|
|
2155
|
+
this.initialize().catch(err => {
|
|
2150
2156
|
throw err;
|
|
2151
2157
|
});
|
|
2152
2158
|
this._log.info('listMessages stream %j', request);
|
|
@@ -2230,6 +2236,9 @@ class ChatServiceClient {
|
|
|
2230
2236
|
* Optional. Whether to include deleted messages. Deleted messages include
|
|
2231
2237
|
* deleted time and metadata about their deletion, but message content is
|
|
2232
2238
|
* unavailable.
|
|
2239
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
2240
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
2241
|
+
* `formatted_text` field.
|
|
2233
2242
|
* @param {object} [options]
|
|
2234
2243
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2235
2244
|
* @returns {Object}
|
|
@@ -2253,7 +2262,7 @@ class ChatServiceClient {
|
|
|
2253
2262
|
});
|
|
2254
2263
|
const defaultCallSettings = this._defaults['listMessages'];
|
|
2255
2264
|
const callSettings = defaultCallSettings.merge(options);
|
|
2256
|
-
this.initialize().catch(
|
|
2265
|
+
this.initialize().catch(err => {
|
|
2257
2266
|
throw err;
|
|
2258
2267
|
});
|
|
2259
2268
|
this._log.info('listMessages iterate %j', request);
|
|
@@ -2276,7 +2285,7 @@ class ChatServiceClient {
|
|
|
2276
2285
|
this._gaxModule.routingHeader.fromParams({
|
|
2277
2286
|
parent: request.parent ?? '',
|
|
2278
2287
|
});
|
|
2279
|
-
this.initialize().catch(
|
|
2288
|
+
this.initialize().catch(err => {
|
|
2280
2289
|
throw err;
|
|
2281
2290
|
});
|
|
2282
2291
|
const wrappedCallback = callback
|
|
@@ -2409,7 +2418,7 @@ class ChatServiceClient {
|
|
|
2409
2418
|
});
|
|
2410
2419
|
const defaultCallSettings = this._defaults['listMemberships'];
|
|
2411
2420
|
const callSettings = defaultCallSettings.merge(options);
|
|
2412
|
-
this.initialize().catch(
|
|
2421
|
+
this.initialize().catch(err => {
|
|
2413
2422
|
throw err;
|
|
2414
2423
|
});
|
|
2415
2424
|
this._log.info('listMemberships stream %j', request);
|
|
@@ -2534,7 +2543,7 @@ class ChatServiceClient {
|
|
|
2534
2543
|
});
|
|
2535
2544
|
const defaultCallSettings = this._defaults['listMemberships'];
|
|
2536
2545
|
const callSettings = defaultCallSettings.merge(options);
|
|
2537
|
-
this.initialize().catch(
|
|
2546
|
+
this.initialize().catch(err => {
|
|
2538
2547
|
throw err;
|
|
2539
2548
|
});
|
|
2540
2549
|
this._log.info('listMemberships iterate %j', request);
|
|
@@ -2557,7 +2566,7 @@ class ChatServiceClient {
|
|
|
2557
2566
|
this._gaxModule.routingHeader.fromParams({
|
|
2558
2567
|
parent: request.parent ?? '',
|
|
2559
2568
|
});
|
|
2560
|
-
this.initialize().catch(
|
|
2569
|
+
this.initialize().catch(err => {
|
|
2561
2570
|
throw err;
|
|
2562
2571
|
});
|
|
2563
2572
|
const wrappedCallback = callback
|
|
@@ -2740,6 +2749,9 @@ class ChatServiceClient {
|
|
|
2740
2749
|
* The default ordering is `create_time desc`. Only a single order per query
|
|
2741
2750
|
* (`create_time` or `relevance`) is supported. Only descending order (`desc`)
|
|
2742
2751
|
* is supported, and it must be specified after the order attribute.
|
|
2752
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
2753
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
2754
|
+
* `formatted_text` field.
|
|
2743
2755
|
* @param {google.chat.v1.SearchMessagesRequest.SearchMessagesView} [request.view]
|
|
2744
2756
|
* Optional. Specifies what kind of search results view to return. The default
|
|
2745
2757
|
* is `SEARCH_MESSAGES_VIEW_BASIC`.
|
|
@@ -2765,7 +2777,7 @@ class ChatServiceClient {
|
|
|
2765
2777
|
});
|
|
2766
2778
|
const defaultCallSettings = this._defaults['searchMessages'];
|
|
2767
2779
|
const callSettings = defaultCallSettings.merge(options);
|
|
2768
|
-
this.initialize().catch(
|
|
2780
|
+
this.initialize().catch(err => {
|
|
2769
2781
|
throw err;
|
|
2770
2782
|
});
|
|
2771
2783
|
this._log.info('searchMessages stream %j', request);
|
|
@@ -2939,6 +2951,9 @@ class ChatServiceClient {
|
|
|
2939
2951
|
* The default ordering is `create_time desc`. Only a single order per query
|
|
2940
2952
|
* (`create_time` or `relevance`) is supported. Only descending order (`desc`)
|
|
2941
2953
|
* is supported, and it must be specified after the order attribute.
|
|
2954
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
2955
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
2956
|
+
* `formatted_text` field.
|
|
2942
2957
|
* @param {google.chat.v1.SearchMessagesRequest.SearchMessagesView} [request.view]
|
|
2943
2958
|
* Optional. Specifies what kind of search results view to return. The default
|
|
2944
2959
|
* is `SEARCH_MESSAGES_VIEW_BASIC`.
|
|
@@ -2965,7 +2980,7 @@ class ChatServiceClient {
|
|
|
2965
2980
|
});
|
|
2966
2981
|
const defaultCallSettings = this._defaults['searchMessages'];
|
|
2967
2982
|
const callSettings = defaultCallSettings.merge(options);
|
|
2968
|
-
this.initialize().catch(
|
|
2983
|
+
this.initialize().catch(err => {
|
|
2969
2984
|
throw err;
|
|
2970
2985
|
});
|
|
2971
2986
|
this._log.info('searchMessages iterate %j', request);
|
|
@@ -2984,7 +2999,7 @@ class ChatServiceClient {
|
|
|
2984
2999
|
options = options || {};
|
|
2985
3000
|
options.otherArgs = options.otherArgs || {};
|
|
2986
3001
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2987
|
-
this.initialize().catch(
|
|
3002
|
+
this.initialize().catch(err => {
|
|
2988
3003
|
throw err;
|
|
2989
3004
|
});
|
|
2990
3005
|
const wrappedCallback = callback
|
|
@@ -3059,7 +3074,7 @@ class ChatServiceClient {
|
|
|
3059
3074
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3060
3075
|
const defaultCallSettings = this._defaults['listSpaces'];
|
|
3061
3076
|
const callSettings = defaultCallSettings.merge(options);
|
|
3062
|
-
this.initialize().catch(
|
|
3077
|
+
this.initialize().catch(err => {
|
|
3063
3078
|
throw err;
|
|
3064
3079
|
});
|
|
3065
3080
|
this._log.info('listSpaces stream %j', request);
|
|
@@ -3126,7 +3141,7 @@ class ChatServiceClient {
|
|
|
3126
3141
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3127
3142
|
const defaultCallSettings = this._defaults['listSpaces'];
|
|
3128
3143
|
const callSettings = defaultCallSettings.merge(options);
|
|
3129
|
-
this.initialize().catch(
|
|
3144
|
+
this.initialize().catch(err => {
|
|
3130
3145
|
throw err;
|
|
3131
3146
|
});
|
|
3132
3147
|
this._log.info('listSpaces iterate %j', request);
|
|
@@ -3145,7 +3160,7 @@ class ChatServiceClient {
|
|
|
3145
3160
|
options = options || {};
|
|
3146
3161
|
options.otherArgs = options.otherArgs || {};
|
|
3147
3162
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3148
|
-
this.initialize().catch(
|
|
3163
|
+
this.initialize().catch(err => {
|
|
3149
3164
|
throw err;
|
|
3150
3165
|
});
|
|
3151
3166
|
const wrappedCallback = callback
|
|
@@ -3321,6 +3336,7 @@ class ChatServiceClient {
|
|
|
3321
3336
|
*
|
|
3322
3337
|
* - `create_time DESC`
|
|
3323
3338
|
* - `relevance DESC`
|
|
3339
|
+
* [Developer Preview](https://developers.google.com/workspace/preview).
|
|
3324
3340
|
* @param {object} [options]
|
|
3325
3341
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
3326
3342
|
* @returns {Stream}
|
|
@@ -3339,7 +3355,7 @@ class ChatServiceClient {
|
|
|
3339
3355
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3340
3356
|
const defaultCallSettings = this._defaults['searchSpaces'];
|
|
3341
3357
|
const callSettings = defaultCallSettings.merge(options);
|
|
3342
|
-
this.initialize().catch(
|
|
3358
|
+
this.initialize().catch(err => {
|
|
3343
3359
|
throw err;
|
|
3344
3360
|
});
|
|
3345
3361
|
this._log.info('searchSpaces stream %j', request);
|
|
@@ -3506,6 +3522,7 @@ class ChatServiceClient {
|
|
|
3506
3522
|
*
|
|
3507
3523
|
* - `create_time DESC`
|
|
3508
3524
|
* - `relevance DESC`
|
|
3525
|
+
* [Developer Preview](https://developers.google.com/workspace/preview).
|
|
3509
3526
|
* @param {object} [options]
|
|
3510
3527
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
3511
3528
|
* @returns {Object}
|
|
@@ -3525,7 +3542,7 @@ class ChatServiceClient {
|
|
|
3525
3542
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3526
3543
|
const defaultCallSettings = this._defaults['searchSpaces'];
|
|
3527
3544
|
const callSettings = defaultCallSettings.merge(options);
|
|
3528
|
-
this.initialize().catch(
|
|
3545
|
+
this.initialize().catch(err => {
|
|
3529
3546
|
throw err;
|
|
3530
3547
|
});
|
|
3531
3548
|
this._log.info('searchSpaces iterate %j', request);
|
|
@@ -3544,7 +3561,7 @@ class ChatServiceClient {
|
|
|
3544
3561
|
options = options || {};
|
|
3545
3562
|
options.otherArgs = options.otherArgs || {};
|
|
3546
3563
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3547
|
-
this.initialize().catch(
|
|
3564
|
+
this.initialize().catch(err => {
|
|
3548
3565
|
throw err;
|
|
3549
3566
|
});
|
|
3550
3567
|
const wrappedCallback = callback
|
|
@@ -3624,7 +3641,7 @@ class ChatServiceClient {
|
|
|
3624
3641
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3625
3642
|
const defaultCallSettings = this._defaults['findGroupChats'];
|
|
3626
3643
|
const callSettings = defaultCallSettings.merge(options);
|
|
3627
|
-
this.initialize().catch(
|
|
3644
|
+
this.initialize().catch(err => {
|
|
3628
3645
|
throw err;
|
|
3629
3646
|
});
|
|
3630
3647
|
this._log.info('findGroupChats stream %j', request);
|
|
@@ -3696,7 +3713,7 @@ class ChatServiceClient {
|
|
|
3696
3713
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3697
3714
|
const defaultCallSettings = this._defaults['findGroupChats'];
|
|
3698
3715
|
const callSettings = defaultCallSettings.merge(options);
|
|
3699
|
-
this.initialize().catch(
|
|
3716
|
+
this.initialize().catch(err => {
|
|
3700
3717
|
throw err;
|
|
3701
3718
|
});
|
|
3702
3719
|
this._log.info('findGroupChats iterate %j', request);
|
|
@@ -3719,7 +3736,7 @@ class ChatServiceClient {
|
|
|
3719
3736
|
this._gaxModule.routingHeader.fromParams({
|
|
3720
3737
|
parent: request.parent ?? '',
|
|
3721
3738
|
});
|
|
3722
|
-
this.initialize().catch(
|
|
3739
|
+
this.initialize().catch(err => {
|
|
3723
3740
|
throw err;
|
|
3724
3741
|
});
|
|
3725
3742
|
const wrappedCallback = callback
|
|
@@ -3822,7 +3839,7 @@ class ChatServiceClient {
|
|
|
3822
3839
|
});
|
|
3823
3840
|
const defaultCallSettings = this._defaults['listReactions'];
|
|
3824
3841
|
const callSettings = defaultCallSettings.merge(options);
|
|
3825
|
-
this.initialize().catch(
|
|
3842
|
+
this.initialize().catch(err => {
|
|
3826
3843
|
throw err;
|
|
3827
3844
|
});
|
|
3828
3845
|
this._log.info('listReactions stream %j', request);
|
|
@@ -3917,7 +3934,7 @@ class ChatServiceClient {
|
|
|
3917
3934
|
});
|
|
3918
3935
|
const defaultCallSettings = this._defaults['listReactions'];
|
|
3919
3936
|
const callSettings = defaultCallSettings.merge(options);
|
|
3920
|
-
this.initialize().catch(
|
|
3937
|
+
this.initialize().catch(err => {
|
|
3921
3938
|
throw err;
|
|
3922
3939
|
});
|
|
3923
3940
|
this._log.info('listReactions iterate %j', request);
|
|
@@ -3936,7 +3953,7 @@ class ChatServiceClient {
|
|
|
3936
3953
|
options = options || {};
|
|
3937
3954
|
options.otherArgs = options.otherArgs || {};
|
|
3938
3955
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3939
|
-
this.initialize().catch(
|
|
3956
|
+
this.initialize().catch(err => {
|
|
3940
3957
|
throw err;
|
|
3941
3958
|
});
|
|
3942
3959
|
const wrappedCallback = callback
|
|
@@ -4003,7 +4020,7 @@ class ChatServiceClient {
|
|
|
4003
4020
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
4004
4021
|
const defaultCallSettings = this._defaults['listCustomEmojis'];
|
|
4005
4022
|
const callSettings = defaultCallSettings.merge(options);
|
|
4006
|
-
this.initialize().catch(
|
|
4023
|
+
this.initialize().catch(err => {
|
|
4007
4024
|
throw err;
|
|
4008
4025
|
});
|
|
4009
4026
|
this._log.info('listCustomEmojis stream %j', request);
|
|
@@ -4062,7 +4079,7 @@ class ChatServiceClient {
|
|
|
4062
4079
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
4063
4080
|
const defaultCallSettings = this._defaults['listCustomEmojis'];
|
|
4064
4081
|
const callSettings = defaultCallSettings.merge(options);
|
|
4065
|
-
this.initialize().catch(
|
|
4082
|
+
this.initialize().catch(err => {
|
|
4066
4083
|
throw err;
|
|
4067
4084
|
});
|
|
4068
4085
|
this._log.info('listCustomEmojis iterate %j', request);
|
|
@@ -4085,7 +4102,7 @@ class ChatServiceClient {
|
|
|
4085
4102
|
this._gaxModule.routingHeader.fromParams({
|
|
4086
4103
|
parent: request.parent ?? '',
|
|
4087
4104
|
});
|
|
4088
|
-
this.initialize().catch(
|
|
4105
|
+
this.initialize().catch(err => {
|
|
4089
4106
|
throw err;
|
|
4090
4107
|
});
|
|
4091
4108
|
const wrappedCallback = callback
|
|
@@ -4199,7 +4216,7 @@ class ChatServiceClient {
|
|
|
4199
4216
|
});
|
|
4200
4217
|
const defaultCallSettings = this._defaults['listSpaceEvents'];
|
|
4201
4218
|
const callSettings = defaultCallSettings.merge(options);
|
|
4202
|
-
this.initialize().catch(
|
|
4219
|
+
this.initialize().catch(err => {
|
|
4203
4220
|
throw err;
|
|
4204
4221
|
});
|
|
4205
4222
|
this._log.info('listSpaceEvents stream %j', request);
|
|
@@ -4305,7 +4322,7 @@ class ChatServiceClient {
|
|
|
4305
4322
|
});
|
|
4306
4323
|
const defaultCallSettings = this._defaults['listSpaceEvents'];
|
|
4307
4324
|
const callSettings = defaultCallSettings.merge(options);
|
|
4308
|
-
this.initialize().catch(
|
|
4325
|
+
this.initialize().catch(err => {
|
|
4309
4326
|
throw err;
|
|
4310
4327
|
});
|
|
4311
4328
|
this._log.info('listSpaceEvents iterate %j', request);
|
|
@@ -4328,7 +4345,7 @@ class ChatServiceClient {
|
|
|
4328
4345
|
this._gaxModule.routingHeader.fromParams({
|
|
4329
4346
|
parent: request.parent ?? '',
|
|
4330
4347
|
});
|
|
4331
|
-
this.initialize().catch(
|
|
4348
|
+
this.initialize().catch(err => {
|
|
4332
4349
|
throw err;
|
|
4333
4350
|
});
|
|
4334
4351
|
const wrappedCallback = callback
|
|
@@ -4400,7 +4417,7 @@ class ChatServiceClient {
|
|
|
4400
4417
|
});
|
|
4401
4418
|
const defaultCallSettings = this._defaults['listSections'];
|
|
4402
4419
|
const callSettings = defaultCallSettings.merge(options);
|
|
4403
|
-
this.initialize().catch(
|
|
4420
|
+
this.initialize().catch(err => {
|
|
4404
4421
|
throw err;
|
|
4405
4422
|
});
|
|
4406
4423
|
this._log.info('listSections stream %j', request);
|
|
@@ -4464,7 +4481,7 @@ class ChatServiceClient {
|
|
|
4464
4481
|
});
|
|
4465
4482
|
const defaultCallSettings = this._defaults['listSections'];
|
|
4466
4483
|
const callSettings = defaultCallSettings.merge(options);
|
|
4467
|
-
this.initialize().catch(
|
|
4484
|
+
this.initialize().catch(err => {
|
|
4468
4485
|
throw err;
|
|
4469
4486
|
});
|
|
4470
4487
|
this._log.info('listSections iterate %j', request);
|
|
@@ -4487,7 +4504,7 @@ class ChatServiceClient {
|
|
|
4487
4504
|
this._gaxModule.routingHeader.fromParams({
|
|
4488
4505
|
parent: request.parent ?? '',
|
|
4489
4506
|
});
|
|
4490
|
-
this.initialize().catch(
|
|
4507
|
+
this.initialize().catch(err => {
|
|
4491
4508
|
throw err;
|
|
4492
4509
|
});
|
|
4493
4510
|
const wrappedCallback = callback
|
|
@@ -4564,7 +4581,7 @@ class ChatServiceClient {
|
|
|
4564
4581
|
});
|
|
4565
4582
|
const defaultCallSettings = this._defaults['listSectionItems'];
|
|
4566
4583
|
const callSettings = defaultCallSettings.merge(options);
|
|
4567
|
-
this.initialize().catch(
|
|
4584
|
+
this.initialize().catch(err => {
|
|
4568
4585
|
throw err;
|
|
4569
4586
|
});
|
|
4570
4587
|
this._log.info('listSectionItems stream %j', request);
|
|
@@ -4633,7 +4650,7 @@ class ChatServiceClient {
|
|
|
4633
4650
|
});
|
|
4634
4651
|
const defaultCallSettings = this._defaults['listSectionItems'];
|
|
4635
4652
|
const callSettings = defaultCallSettings.merge(options);
|
|
4636
|
-
this.initialize().catch(
|
|
4653
|
+
this.initialize().catch(err => {
|
|
4637
4654
|
throw err;
|
|
4638
4655
|
});
|
|
4639
4656
|
this._log.info('listSectionItems iterate %j', request);
|
|
@@ -5181,7 +5198,7 @@ class ChatServiceClient {
|
|
|
5181
5198
|
*/
|
|
5182
5199
|
close() {
|
|
5183
5200
|
if (this.chatServiceStub && !this._terminated) {
|
|
5184
|
-
return this.chatServiceStub.then(
|
|
5201
|
+
return this.chatServiceStub.then(stub => {
|
|
5185
5202
|
this._log.info('ending gRPC channel');
|
|
5186
5203
|
this._terminated = true;
|
|
5187
5204
|
stub.close();
|