@google-apps/chat 0.6.0 → 0.8.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 +14 -0
- package/README.md +2 -0
- package/build/protos/google/chat/v1/annotation.proto +29 -0
- package/build/protos/google/chat/v1/chat_service.proto +44 -0
- package/build/protos/google/chat/v1/event_payload.proto +177 -0
- package/build/protos/google/chat/v1/space_event.proto +292 -0
- package/build/protos/protos.d.ts +2441 -2
- package/build/protos/protos.js +5870 -2
- package/build/protos/protos.json +390 -2
- package/build/src/v1/chat_service_client.d.ts +347 -0
- package/build/src/v1/chat_service_client.js +286 -0
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +10 -0
- package/package.json +1 -1
package/build/protos/protos.json
CHANGED
|
@@ -2531,7 +2531,8 @@
|
|
|
2531
2531
|
"oneofs": {
|
|
2532
2532
|
"data": {
|
|
2533
2533
|
"oneof": [
|
|
2534
|
-
"driveLinkData"
|
|
2534
|
+
"driveLinkData",
|
|
2535
|
+
"chatSpaceLinkData"
|
|
2535
2536
|
]
|
|
2536
2537
|
}
|
|
2537
2538
|
},
|
|
@@ -2547,13 +2548,18 @@
|
|
|
2547
2548
|
"driveLinkData": {
|
|
2548
2549
|
"type": "DriveLinkData",
|
|
2549
2550
|
"id": 3
|
|
2551
|
+
},
|
|
2552
|
+
"chatSpaceLinkData": {
|
|
2553
|
+
"type": "ChatSpaceLinkData",
|
|
2554
|
+
"id": 4
|
|
2550
2555
|
}
|
|
2551
2556
|
},
|
|
2552
2557
|
"nested": {
|
|
2553
2558
|
"RichLinkType": {
|
|
2554
2559
|
"values": {
|
|
2555
2560
|
"RICH_LINK_TYPE_UNSPECIFIED": 0,
|
|
2556
|
-
"DRIVE_FILE": 1
|
|
2561
|
+
"DRIVE_FILE": 1,
|
|
2562
|
+
"CHAT_SPACE": 2
|
|
2557
2563
|
}
|
|
2558
2564
|
}
|
|
2559
2565
|
}
|
|
@@ -2570,6 +2576,31 @@
|
|
|
2570
2576
|
}
|
|
2571
2577
|
}
|
|
2572
2578
|
},
|
|
2579
|
+
"ChatSpaceLinkData": {
|
|
2580
|
+
"fields": {
|
|
2581
|
+
"space": {
|
|
2582
|
+
"type": "string",
|
|
2583
|
+
"id": 1,
|
|
2584
|
+
"options": {
|
|
2585
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/Space"
|
|
2586
|
+
}
|
|
2587
|
+
},
|
|
2588
|
+
"thread": {
|
|
2589
|
+
"type": "string",
|
|
2590
|
+
"id": 2,
|
|
2591
|
+
"options": {
|
|
2592
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/Thread"
|
|
2593
|
+
}
|
|
2594
|
+
},
|
|
2595
|
+
"message": {
|
|
2596
|
+
"type": "string",
|
|
2597
|
+
"id": 3,
|
|
2598
|
+
"options": {
|
|
2599
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/Message"
|
|
2600
|
+
}
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
},
|
|
2573
2604
|
"AnnotationType": {
|
|
2574
2605
|
"values": {
|
|
2575
2606
|
"ANNOTATION_TYPE_UNSPECIFIED": 0,
|
|
@@ -3236,6 +3267,42 @@
|
|
|
3236
3267
|
"(google.api.method_signature)": "name"
|
|
3237
3268
|
}
|
|
3238
3269
|
]
|
|
3270
|
+
},
|
|
3271
|
+
"GetSpaceEvent": {
|
|
3272
|
+
"requestType": "GetSpaceEventRequest",
|
|
3273
|
+
"responseType": "SpaceEvent",
|
|
3274
|
+
"options": {
|
|
3275
|
+
"(google.api.http).get": "/v1/{name=spaces/*/spaceEvents/*}",
|
|
3276
|
+
"(google.api.method_signature)": "name"
|
|
3277
|
+
},
|
|
3278
|
+
"parsedOptions": [
|
|
3279
|
+
{
|
|
3280
|
+
"(google.api.http)": {
|
|
3281
|
+
"get": "/v1/{name=spaces/*/spaceEvents/*}"
|
|
3282
|
+
}
|
|
3283
|
+
},
|
|
3284
|
+
{
|
|
3285
|
+
"(google.api.method_signature)": "name"
|
|
3286
|
+
}
|
|
3287
|
+
]
|
|
3288
|
+
},
|
|
3289
|
+
"ListSpaceEvents": {
|
|
3290
|
+
"requestType": "ListSpaceEventsRequest",
|
|
3291
|
+
"responseType": "ListSpaceEventsResponse",
|
|
3292
|
+
"options": {
|
|
3293
|
+
"(google.api.http).get": "/v1/{parent=spaces/*}/spaceEvents",
|
|
3294
|
+
"(google.api.method_signature)": "parent,filter"
|
|
3295
|
+
},
|
|
3296
|
+
"parsedOptions": [
|
|
3297
|
+
{
|
|
3298
|
+
"(google.api.http)": {
|
|
3299
|
+
"get": "/v1/{parent=spaces/*}/spaceEvents"
|
|
3300
|
+
}
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
"(google.api.method_signature)": "parent,filter"
|
|
3304
|
+
}
|
|
3305
|
+
]
|
|
3239
3306
|
}
|
|
3240
3307
|
}
|
|
3241
3308
|
},
|
|
@@ -4789,6 +4856,327 @@
|
|
|
4789
4856
|
"HISTORY_ON": 2
|
|
4790
4857
|
}
|
|
4791
4858
|
},
|
|
4859
|
+
"SpaceEvent": {
|
|
4860
|
+
"options": {
|
|
4861
|
+
"(google.api.resource).type": "chat.googleapis.com/SpaceEvent",
|
|
4862
|
+
"(google.api.resource).pattern": "spaces/{space}/spaceEvents/{space_event}"
|
|
4863
|
+
},
|
|
4864
|
+
"oneofs": {
|
|
4865
|
+
"payload": {
|
|
4866
|
+
"oneof": [
|
|
4867
|
+
"messageCreatedEventData",
|
|
4868
|
+
"messageUpdatedEventData",
|
|
4869
|
+
"messageDeletedEventData",
|
|
4870
|
+
"messageBatchCreatedEventData",
|
|
4871
|
+
"messageBatchUpdatedEventData",
|
|
4872
|
+
"messageBatchDeletedEventData",
|
|
4873
|
+
"spaceUpdatedEventData",
|
|
4874
|
+
"spaceBatchUpdatedEventData",
|
|
4875
|
+
"membershipCreatedEventData",
|
|
4876
|
+
"membershipUpdatedEventData",
|
|
4877
|
+
"membershipDeletedEventData",
|
|
4878
|
+
"membershipBatchCreatedEventData",
|
|
4879
|
+
"membershipBatchUpdatedEventData",
|
|
4880
|
+
"membershipBatchDeletedEventData",
|
|
4881
|
+
"reactionCreatedEventData",
|
|
4882
|
+
"reactionDeletedEventData",
|
|
4883
|
+
"reactionBatchCreatedEventData",
|
|
4884
|
+
"reactionBatchDeletedEventData"
|
|
4885
|
+
]
|
|
4886
|
+
}
|
|
4887
|
+
},
|
|
4888
|
+
"fields": {
|
|
4889
|
+
"name": {
|
|
4890
|
+
"type": "string",
|
|
4891
|
+
"id": 1
|
|
4892
|
+
},
|
|
4893
|
+
"eventTime": {
|
|
4894
|
+
"type": "google.protobuf.Timestamp",
|
|
4895
|
+
"id": 3
|
|
4896
|
+
},
|
|
4897
|
+
"eventType": {
|
|
4898
|
+
"type": "string",
|
|
4899
|
+
"id": 6
|
|
4900
|
+
},
|
|
4901
|
+
"messageCreatedEventData": {
|
|
4902
|
+
"type": "MessageCreatedEventData",
|
|
4903
|
+
"id": 12
|
|
4904
|
+
},
|
|
4905
|
+
"messageUpdatedEventData": {
|
|
4906
|
+
"type": "MessageUpdatedEventData",
|
|
4907
|
+
"id": 13
|
|
4908
|
+
},
|
|
4909
|
+
"messageDeletedEventData": {
|
|
4910
|
+
"type": "MessageDeletedEventData",
|
|
4911
|
+
"id": 14
|
|
4912
|
+
},
|
|
4913
|
+
"messageBatchCreatedEventData": {
|
|
4914
|
+
"type": "MessageBatchCreatedEventData",
|
|
4915
|
+
"id": 26
|
|
4916
|
+
},
|
|
4917
|
+
"messageBatchUpdatedEventData": {
|
|
4918
|
+
"type": "MessageBatchUpdatedEventData",
|
|
4919
|
+
"id": 27
|
|
4920
|
+
},
|
|
4921
|
+
"messageBatchDeletedEventData": {
|
|
4922
|
+
"type": "MessageBatchDeletedEventData",
|
|
4923
|
+
"id": 28
|
|
4924
|
+
},
|
|
4925
|
+
"spaceUpdatedEventData": {
|
|
4926
|
+
"type": "SpaceUpdatedEventData",
|
|
4927
|
+
"id": 15
|
|
4928
|
+
},
|
|
4929
|
+
"spaceBatchUpdatedEventData": {
|
|
4930
|
+
"type": "SpaceBatchUpdatedEventData",
|
|
4931
|
+
"id": 29
|
|
4932
|
+
},
|
|
4933
|
+
"membershipCreatedEventData": {
|
|
4934
|
+
"type": "MembershipCreatedEventData",
|
|
4935
|
+
"id": 17
|
|
4936
|
+
},
|
|
4937
|
+
"membershipUpdatedEventData": {
|
|
4938
|
+
"type": "MembershipUpdatedEventData",
|
|
4939
|
+
"id": 18
|
|
4940
|
+
},
|
|
4941
|
+
"membershipDeletedEventData": {
|
|
4942
|
+
"type": "MembershipDeletedEventData",
|
|
4943
|
+
"id": 219
|
|
4944
|
+
},
|
|
4945
|
+
"membershipBatchCreatedEventData": {
|
|
4946
|
+
"type": "MembershipBatchCreatedEventData",
|
|
4947
|
+
"id": 31
|
|
4948
|
+
},
|
|
4949
|
+
"membershipBatchUpdatedEventData": {
|
|
4950
|
+
"type": "MembershipBatchUpdatedEventData",
|
|
4951
|
+
"id": 32
|
|
4952
|
+
},
|
|
4953
|
+
"membershipBatchDeletedEventData": {
|
|
4954
|
+
"type": "MembershipBatchDeletedEventData",
|
|
4955
|
+
"id": 33
|
|
4956
|
+
},
|
|
4957
|
+
"reactionCreatedEventData": {
|
|
4958
|
+
"type": "ReactionCreatedEventData",
|
|
4959
|
+
"id": 21
|
|
4960
|
+
},
|
|
4961
|
+
"reactionDeletedEventData": {
|
|
4962
|
+
"type": "ReactionDeletedEventData",
|
|
4963
|
+
"id": 22
|
|
4964
|
+
},
|
|
4965
|
+
"reactionBatchCreatedEventData": {
|
|
4966
|
+
"type": "ReactionBatchCreatedEventData",
|
|
4967
|
+
"id": 34
|
|
4968
|
+
},
|
|
4969
|
+
"reactionBatchDeletedEventData": {
|
|
4970
|
+
"type": "ReactionBatchDeletedEventData",
|
|
4971
|
+
"id": 35
|
|
4972
|
+
}
|
|
4973
|
+
}
|
|
4974
|
+
},
|
|
4975
|
+
"GetSpaceEventRequest": {
|
|
4976
|
+
"fields": {
|
|
4977
|
+
"name": {
|
|
4978
|
+
"type": "string",
|
|
4979
|
+
"id": 1,
|
|
4980
|
+
"options": {
|
|
4981
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
4982
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/SpaceEvent"
|
|
4983
|
+
}
|
|
4984
|
+
}
|
|
4985
|
+
}
|
|
4986
|
+
},
|
|
4987
|
+
"ListSpaceEventsRequest": {
|
|
4988
|
+
"fields": {
|
|
4989
|
+
"parent": {
|
|
4990
|
+
"type": "string",
|
|
4991
|
+
"id": 1,
|
|
4992
|
+
"options": {
|
|
4993
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
4994
|
+
"(google.api.resource_reference).child_type": "chat.googleapis.com/SpaceEvent"
|
|
4995
|
+
}
|
|
4996
|
+
},
|
|
4997
|
+
"pageSize": {
|
|
4998
|
+
"type": "int32",
|
|
4999
|
+
"id": 5
|
|
5000
|
+
},
|
|
5001
|
+
"pageToken": {
|
|
5002
|
+
"type": "string",
|
|
5003
|
+
"id": 6
|
|
5004
|
+
},
|
|
5005
|
+
"filter": {
|
|
5006
|
+
"type": "string",
|
|
5007
|
+
"id": 8,
|
|
5008
|
+
"options": {
|
|
5009
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
5010
|
+
}
|
|
5011
|
+
}
|
|
5012
|
+
}
|
|
5013
|
+
},
|
|
5014
|
+
"ListSpaceEventsResponse": {
|
|
5015
|
+
"fields": {
|
|
5016
|
+
"spaceEvents": {
|
|
5017
|
+
"rule": "repeated",
|
|
5018
|
+
"type": "SpaceEvent",
|
|
5019
|
+
"id": 1
|
|
5020
|
+
},
|
|
5021
|
+
"nextPageToken": {
|
|
5022
|
+
"type": "string",
|
|
5023
|
+
"id": 2
|
|
5024
|
+
}
|
|
5025
|
+
}
|
|
5026
|
+
},
|
|
5027
|
+
"MembershipCreatedEventData": {
|
|
5028
|
+
"fields": {
|
|
5029
|
+
"membership": {
|
|
5030
|
+
"type": "Membership",
|
|
5031
|
+
"id": 1
|
|
5032
|
+
}
|
|
5033
|
+
}
|
|
5034
|
+
},
|
|
5035
|
+
"MembershipDeletedEventData": {
|
|
5036
|
+
"fields": {
|
|
5037
|
+
"membership": {
|
|
5038
|
+
"type": "Membership",
|
|
5039
|
+
"id": 1
|
|
5040
|
+
}
|
|
5041
|
+
}
|
|
5042
|
+
},
|
|
5043
|
+
"MembershipUpdatedEventData": {
|
|
5044
|
+
"fields": {
|
|
5045
|
+
"membership": {
|
|
5046
|
+
"type": "Membership",
|
|
5047
|
+
"id": 1
|
|
5048
|
+
}
|
|
5049
|
+
}
|
|
5050
|
+
},
|
|
5051
|
+
"MembershipBatchCreatedEventData": {
|
|
5052
|
+
"fields": {
|
|
5053
|
+
"memberships": {
|
|
5054
|
+
"rule": "repeated",
|
|
5055
|
+
"type": "MembershipCreatedEventData",
|
|
5056
|
+
"id": 1
|
|
5057
|
+
}
|
|
5058
|
+
}
|
|
5059
|
+
},
|
|
5060
|
+
"MembershipBatchUpdatedEventData": {
|
|
5061
|
+
"fields": {
|
|
5062
|
+
"memberships": {
|
|
5063
|
+
"rule": "repeated",
|
|
5064
|
+
"type": "MembershipUpdatedEventData",
|
|
5065
|
+
"id": 1
|
|
5066
|
+
}
|
|
5067
|
+
}
|
|
5068
|
+
},
|
|
5069
|
+
"MembershipBatchDeletedEventData": {
|
|
5070
|
+
"fields": {
|
|
5071
|
+
"memberships": {
|
|
5072
|
+
"rule": "repeated",
|
|
5073
|
+
"type": "MembershipDeletedEventData",
|
|
5074
|
+
"id": 1
|
|
5075
|
+
}
|
|
5076
|
+
}
|
|
5077
|
+
},
|
|
5078
|
+
"MessageCreatedEventData": {
|
|
5079
|
+
"fields": {
|
|
5080
|
+
"message": {
|
|
5081
|
+
"type": "Message",
|
|
5082
|
+
"id": 1
|
|
5083
|
+
}
|
|
5084
|
+
}
|
|
5085
|
+
},
|
|
5086
|
+
"MessageUpdatedEventData": {
|
|
5087
|
+
"fields": {
|
|
5088
|
+
"message": {
|
|
5089
|
+
"type": "Message",
|
|
5090
|
+
"id": 1
|
|
5091
|
+
}
|
|
5092
|
+
}
|
|
5093
|
+
},
|
|
5094
|
+
"MessageDeletedEventData": {
|
|
5095
|
+
"fields": {
|
|
5096
|
+
"message": {
|
|
5097
|
+
"type": "Message",
|
|
5098
|
+
"id": 1
|
|
5099
|
+
}
|
|
5100
|
+
}
|
|
5101
|
+
},
|
|
5102
|
+
"MessageBatchCreatedEventData": {
|
|
5103
|
+
"fields": {
|
|
5104
|
+
"messages": {
|
|
5105
|
+
"rule": "repeated",
|
|
5106
|
+
"type": "MessageCreatedEventData",
|
|
5107
|
+
"id": 1
|
|
5108
|
+
}
|
|
5109
|
+
}
|
|
5110
|
+
},
|
|
5111
|
+
"MessageBatchUpdatedEventData": {
|
|
5112
|
+
"fields": {
|
|
5113
|
+
"messages": {
|
|
5114
|
+
"rule": "repeated",
|
|
5115
|
+
"type": "MessageUpdatedEventData",
|
|
5116
|
+
"id": 1
|
|
5117
|
+
}
|
|
5118
|
+
}
|
|
5119
|
+
},
|
|
5120
|
+
"MessageBatchDeletedEventData": {
|
|
5121
|
+
"fields": {
|
|
5122
|
+
"messages": {
|
|
5123
|
+
"rule": "repeated",
|
|
5124
|
+
"type": "MessageDeletedEventData",
|
|
5125
|
+
"id": 1
|
|
5126
|
+
}
|
|
5127
|
+
}
|
|
5128
|
+
},
|
|
5129
|
+
"SpaceUpdatedEventData": {
|
|
5130
|
+
"fields": {
|
|
5131
|
+
"space": {
|
|
5132
|
+
"type": "Space",
|
|
5133
|
+
"id": 1
|
|
5134
|
+
}
|
|
5135
|
+
}
|
|
5136
|
+
},
|
|
5137
|
+
"SpaceBatchUpdatedEventData": {
|
|
5138
|
+
"fields": {
|
|
5139
|
+
"spaces": {
|
|
5140
|
+
"rule": "repeated",
|
|
5141
|
+
"type": "SpaceUpdatedEventData",
|
|
5142
|
+
"id": 1
|
|
5143
|
+
}
|
|
5144
|
+
}
|
|
5145
|
+
},
|
|
5146
|
+
"ReactionCreatedEventData": {
|
|
5147
|
+
"fields": {
|
|
5148
|
+
"reaction": {
|
|
5149
|
+
"type": "Reaction",
|
|
5150
|
+
"id": 1
|
|
5151
|
+
}
|
|
5152
|
+
}
|
|
5153
|
+
},
|
|
5154
|
+
"ReactionDeletedEventData": {
|
|
5155
|
+
"fields": {
|
|
5156
|
+
"reaction": {
|
|
5157
|
+
"type": "Reaction",
|
|
5158
|
+
"id": 1
|
|
5159
|
+
}
|
|
5160
|
+
}
|
|
5161
|
+
},
|
|
5162
|
+
"ReactionBatchCreatedEventData": {
|
|
5163
|
+
"fields": {
|
|
5164
|
+
"reactions": {
|
|
5165
|
+
"rule": "repeated",
|
|
5166
|
+
"type": "ReactionCreatedEventData",
|
|
5167
|
+
"id": 1
|
|
5168
|
+
}
|
|
5169
|
+
}
|
|
5170
|
+
},
|
|
5171
|
+
"ReactionBatchDeletedEventData": {
|
|
5172
|
+
"fields": {
|
|
5173
|
+
"reactions": {
|
|
5174
|
+
"rule": "repeated",
|
|
5175
|
+
"type": "ReactionDeletedEventData",
|
|
5176
|
+
"id": 1
|
|
5177
|
+
}
|
|
5178
|
+
}
|
|
5179
|
+
},
|
|
4792
5180
|
"SpaceReadState": {
|
|
4793
5181
|
"options": {
|
|
4794
5182
|
"(google.api.resource).type": "chat.googleapis.com/SpaceReadState",
|