@google-apps/chat 0.2.0 → 0.4.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 +4 -0
- package/build/protos/google/apps/card/v1/card.proto +242 -160
- package/build/protos/google/chat/v1/action_status.proto +1 -1
- package/build/protos/google/chat/v1/annotation.proto +2 -2
- package/build/protos/google/chat/v1/attachment.proto +9 -0
- package/build/protos/google/chat/v1/chat_service.proto +135 -81
- package/build/protos/google/chat/v1/contextual_addon.proto +1 -1
- package/build/protos/google/chat/v1/membership.proto +33 -11
- package/build/protos/google/chat/v1/message.proto +71 -113
- package/build/protos/google/chat/v1/reaction.proto +4 -2
- package/build/protos/google/chat/v1/slash_command.proto +3 -2
- package/build/protos/google/chat/v1/space.proto +28 -17
- package/build/protos/google/chat/v1/space_read_state.proto +112 -0
- package/build/protos/google/chat/v1/space_setup.proto +1 -0
- package/build/protos/google/chat/v1/thread_read_state.proto +74 -0
- package/build/protos/google/chat/v1/user.proto +3 -2
- package/build/protos/google/chat/v1/widgets.proto +4 -4
- package/build/protos/protos.d.ts +887 -76
- package/build/protos/protos.js +1976 -192
- package/build/protos/protos.json +210 -12
- package/build/src/v1/chat_service_client.d.ts +368 -134
- package/build/src/v1/chat_service_client.js +196 -24
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +20 -0
- package/package.json +1 -1
package/build/protos/protos.json
CHANGED
|
@@ -1361,6 +1361,15 @@
|
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
1363
1363
|
},
|
|
1364
|
+
"FieldMask": {
|
|
1365
|
+
"fields": {
|
|
1366
|
+
"paths": {
|
|
1367
|
+
"rule": "repeated",
|
|
1368
|
+
"type": "string",
|
|
1369
|
+
"id": 1
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
},
|
|
1364
1373
|
"Timestamp": {
|
|
1365
1374
|
"fields": {
|
|
1366
1375
|
"seconds": {
|
|
@@ -1373,15 +1382,6 @@
|
|
|
1373
1382
|
}
|
|
1374
1383
|
}
|
|
1375
1384
|
},
|
|
1376
|
-
"FieldMask": {
|
|
1377
|
-
"fields": {
|
|
1378
|
-
"paths": {
|
|
1379
|
-
"rule": "repeated",
|
|
1380
|
-
"type": "string",
|
|
1381
|
-
"id": 1
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1384
|
-
},
|
|
1385
1385
|
"Empty": {
|
|
1386
1386
|
"fields": {}
|
|
1387
1387
|
}
|
|
@@ -1983,7 +1983,8 @@
|
|
|
1983
1983
|
"icons": {
|
|
1984
1984
|
"oneof": [
|
|
1985
1985
|
"knownIcon",
|
|
1986
|
-
"iconUrl"
|
|
1986
|
+
"iconUrl",
|
|
1987
|
+
"materialIcon"
|
|
1987
1988
|
]
|
|
1988
1989
|
}
|
|
1989
1990
|
},
|
|
@@ -1996,6 +1997,10 @@
|
|
|
1996
1997
|
"type": "string",
|
|
1997
1998
|
"id": 2
|
|
1998
1999
|
},
|
|
2000
|
+
"materialIcon": {
|
|
2001
|
+
"type": "MaterialIcon",
|
|
2002
|
+
"id": 5
|
|
2003
|
+
},
|
|
1999
2004
|
"altText": {
|
|
2000
2005
|
"type": "string",
|
|
2001
2006
|
"id": 3
|
|
@@ -2006,6 +2011,26 @@
|
|
|
2006
2011
|
}
|
|
2007
2012
|
}
|
|
2008
2013
|
},
|
|
2014
|
+
"MaterialIcon": {
|
|
2015
|
+
"fields": {
|
|
2016
|
+
"name": {
|
|
2017
|
+
"type": "string",
|
|
2018
|
+
"id": 1
|
|
2019
|
+
},
|
|
2020
|
+
"fill": {
|
|
2021
|
+
"type": "bool",
|
|
2022
|
+
"id": 2
|
|
2023
|
+
},
|
|
2024
|
+
"weight": {
|
|
2025
|
+
"type": "int32",
|
|
2026
|
+
"id": 3
|
|
2027
|
+
},
|
|
2028
|
+
"grade": {
|
|
2029
|
+
"type": "int32",
|
|
2030
|
+
"id": 4
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
},
|
|
2009
2034
|
"ImageCropStyle": {
|
|
2010
2035
|
"fields": {
|
|
2011
2036
|
"type": {
|
|
@@ -2384,7 +2409,7 @@
|
|
|
2384
2409
|
"csharp_namespace": "Google.Apps.Chat.V1",
|
|
2385
2410
|
"go_package": "cloud.google.com/go/chat/apiv1/chatpb;chatpb",
|
|
2386
2411
|
"java_multiple_files": true,
|
|
2387
|
-
"java_outer_classname": "
|
|
2412
|
+
"java_outer_classname": "ThreadReadStateProto",
|
|
2388
2413
|
"java_package": "com.google.chat.v1",
|
|
2389
2414
|
"php_namespace": "Google\\Apps\\Chat\\V1",
|
|
2390
2415
|
"ruby_package": "Google::Apps::Chat::V1"
|
|
@@ -2728,7 +2753,7 @@
|
|
|
2728
2753
|
"ChatService": {
|
|
2729
2754
|
"options": {
|
|
2730
2755
|
"(google.api.default_host)": "chat.googleapis.com",
|
|
2731
|
-
"(google.api.oauth_scopes)": "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"
|
|
2756
|
+
"(google.api.oauth_scopes)": "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"
|
|
2732
2757
|
},
|
|
2733
2758
|
"methods": {
|
|
2734
2759
|
"CreateMessage": {
|
|
@@ -3061,6 +3086,26 @@
|
|
|
3061
3086
|
}
|
|
3062
3087
|
]
|
|
3063
3088
|
},
|
|
3089
|
+
"UpdateMembership": {
|
|
3090
|
+
"requestType": "UpdateMembershipRequest",
|
|
3091
|
+
"responseType": "Membership",
|
|
3092
|
+
"options": {
|
|
3093
|
+
"(google.api.http).patch": "/v1/{membership.name=spaces/*/members/*}",
|
|
3094
|
+
"(google.api.http).body": "membership",
|
|
3095
|
+
"(google.api.method_signature)": "membership,update_mask"
|
|
3096
|
+
},
|
|
3097
|
+
"parsedOptions": [
|
|
3098
|
+
{
|
|
3099
|
+
"(google.api.http)": {
|
|
3100
|
+
"patch": "/v1/{membership.name=spaces/*/members/*}",
|
|
3101
|
+
"body": "membership"
|
|
3102
|
+
}
|
|
3103
|
+
},
|
|
3104
|
+
{
|
|
3105
|
+
"(google.api.method_signature)": "membership,update_mask"
|
|
3106
|
+
}
|
|
3107
|
+
]
|
|
3108
|
+
},
|
|
3064
3109
|
"DeleteMembership": {
|
|
3065
3110
|
"requestType": "DeleteMembershipRequest",
|
|
3066
3111
|
"responseType": "Membership",
|
|
@@ -3134,6 +3179,62 @@
|
|
|
3134
3179
|
"(google.api.method_signature)": "name"
|
|
3135
3180
|
}
|
|
3136
3181
|
]
|
|
3182
|
+
},
|
|
3183
|
+
"GetSpaceReadState": {
|
|
3184
|
+
"requestType": "GetSpaceReadStateRequest",
|
|
3185
|
+
"responseType": "SpaceReadState",
|
|
3186
|
+
"options": {
|
|
3187
|
+
"(google.api.http).get": "/v1/{name=users/*/spaces/*/spaceReadState}",
|
|
3188
|
+
"(google.api.method_signature)": "name"
|
|
3189
|
+
},
|
|
3190
|
+
"parsedOptions": [
|
|
3191
|
+
{
|
|
3192
|
+
"(google.api.http)": {
|
|
3193
|
+
"get": "/v1/{name=users/*/spaces/*/spaceReadState}"
|
|
3194
|
+
}
|
|
3195
|
+
},
|
|
3196
|
+
{
|
|
3197
|
+
"(google.api.method_signature)": "name"
|
|
3198
|
+
}
|
|
3199
|
+
]
|
|
3200
|
+
},
|
|
3201
|
+
"UpdateSpaceReadState": {
|
|
3202
|
+
"requestType": "UpdateSpaceReadStateRequest",
|
|
3203
|
+
"responseType": "SpaceReadState",
|
|
3204
|
+
"options": {
|
|
3205
|
+
"(google.api.http).patch": "/v1/{space_read_state.name=users/*/spaces/*/spaceReadState}",
|
|
3206
|
+
"(google.api.http).body": "space_read_state",
|
|
3207
|
+
"(google.api.method_signature)": "space_read_state,update_mask"
|
|
3208
|
+
},
|
|
3209
|
+
"parsedOptions": [
|
|
3210
|
+
{
|
|
3211
|
+
"(google.api.http)": {
|
|
3212
|
+
"patch": "/v1/{space_read_state.name=users/*/spaces/*/spaceReadState}",
|
|
3213
|
+
"body": "space_read_state"
|
|
3214
|
+
}
|
|
3215
|
+
},
|
|
3216
|
+
{
|
|
3217
|
+
"(google.api.method_signature)": "space_read_state,update_mask"
|
|
3218
|
+
}
|
|
3219
|
+
]
|
|
3220
|
+
},
|
|
3221
|
+
"GetThreadReadState": {
|
|
3222
|
+
"requestType": "GetThreadReadStateRequest",
|
|
3223
|
+
"responseType": "ThreadReadState",
|
|
3224
|
+
"options": {
|
|
3225
|
+
"(google.api.http).get": "/v1/{name=users/*/spaces/*/threads/*/threadReadState}",
|
|
3226
|
+
"(google.api.method_signature)": "name"
|
|
3227
|
+
},
|
|
3228
|
+
"parsedOptions": [
|
|
3229
|
+
{
|
|
3230
|
+
"(google.api.http)": {
|
|
3231
|
+
"get": "/v1/{name=users/*/spaces/*/threads/*/threadReadState}"
|
|
3232
|
+
}
|
|
3233
|
+
},
|
|
3234
|
+
{
|
|
3235
|
+
"(google.api.method_signature)": "name"
|
|
3236
|
+
}
|
|
3237
|
+
]
|
|
3137
3238
|
}
|
|
3138
3239
|
}
|
|
3139
3240
|
},
|
|
@@ -3232,6 +3333,24 @@
|
|
|
3232
3333
|
}
|
|
3233
3334
|
}
|
|
3234
3335
|
},
|
|
3336
|
+
"UpdateMembershipRequest": {
|
|
3337
|
+
"fields": {
|
|
3338
|
+
"membership": {
|
|
3339
|
+
"type": "Membership",
|
|
3340
|
+
"id": 1,
|
|
3341
|
+
"options": {
|
|
3342
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3343
|
+
}
|
|
3344
|
+
},
|
|
3345
|
+
"updateMask": {
|
|
3346
|
+
"type": "google.protobuf.FieldMask",
|
|
3347
|
+
"id": 2,
|
|
3348
|
+
"options": {
|
|
3349
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3350
|
+
}
|
|
3351
|
+
}
|
|
3352
|
+
}
|
|
3353
|
+
},
|
|
3235
3354
|
"ListMembershipsRequest": {
|
|
3236
3355
|
"fields": {
|
|
3237
3356
|
"parent": {
|
|
@@ -4625,6 +4744,56 @@
|
|
|
4625
4744
|
"HISTORY_ON": 2
|
|
4626
4745
|
}
|
|
4627
4746
|
},
|
|
4747
|
+
"SpaceReadState": {
|
|
4748
|
+
"options": {
|
|
4749
|
+
"(google.api.resource).type": "chat.googleapis.com/SpaceReadState",
|
|
4750
|
+
"(google.api.resource).pattern": "users/{user}/spaces/{space}/spaceReadState",
|
|
4751
|
+
"(google.api.resource).singular": "spaceReadState"
|
|
4752
|
+
},
|
|
4753
|
+
"fields": {
|
|
4754
|
+
"name": {
|
|
4755
|
+
"type": "string",
|
|
4756
|
+
"id": 1
|
|
4757
|
+
},
|
|
4758
|
+
"lastReadTime": {
|
|
4759
|
+
"type": "google.protobuf.Timestamp",
|
|
4760
|
+
"id": 2,
|
|
4761
|
+
"options": {
|
|
4762
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
4763
|
+
}
|
|
4764
|
+
}
|
|
4765
|
+
}
|
|
4766
|
+
},
|
|
4767
|
+
"GetSpaceReadStateRequest": {
|
|
4768
|
+
"fields": {
|
|
4769
|
+
"name": {
|
|
4770
|
+
"type": "string",
|
|
4771
|
+
"id": 1,
|
|
4772
|
+
"options": {
|
|
4773
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
4774
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/SpaceReadState"
|
|
4775
|
+
}
|
|
4776
|
+
}
|
|
4777
|
+
}
|
|
4778
|
+
},
|
|
4779
|
+
"UpdateSpaceReadStateRequest": {
|
|
4780
|
+
"fields": {
|
|
4781
|
+
"spaceReadState": {
|
|
4782
|
+
"type": "SpaceReadState",
|
|
4783
|
+
"id": 1,
|
|
4784
|
+
"options": {
|
|
4785
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
4786
|
+
}
|
|
4787
|
+
},
|
|
4788
|
+
"updateMask": {
|
|
4789
|
+
"type": "google.protobuf.FieldMask",
|
|
4790
|
+
"id": 2,
|
|
4791
|
+
"options": {
|
|
4792
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
4793
|
+
}
|
|
4794
|
+
}
|
|
4795
|
+
}
|
|
4796
|
+
},
|
|
4628
4797
|
"SetUpSpaceRequest": {
|
|
4629
4798
|
"fields": {
|
|
4630
4799
|
"space": {
|
|
@@ -4650,6 +4819,35 @@
|
|
|
4650
4819
|
}
|
|
4651
4820
|
}
|
|
4652
4821
|
}
|
|
4822
|
+
},
|
|
4823
|
+
"ThreadReadState": {
|
|
4824
|
+
"options": {
|
|
4825
|
+
"(google.api.resource).type": "chat.googleapis.com/ThreadReadState",
|
|
4826
|
+
"(google.api.resource).pattern": "users/{user}/spaces/{space}/threads/{thread}/threadReadState",
|
|
4827
|
+
"(google.api.resource).singular": "threadReadState"
|
|
4828
|
+
},
|
|
4829
|
+
"fields": {
|
|
4830
|
+
"name": {
|
|
4831
|
+
"type": "string",
|
|
4832
|
+
"id": 1
|
|
4833
|
+
},
|
|
4834
|
+
"lastReadTime": {
|
|
4835
|
+
"type": "google.protobuf.Timestamp",
|
|
4836
|
+
"id": 2
|
|
4837
|
+
}
|
|
4838
|
+
}
|
|
4839
|
+
},
|
|
4840
|
+
"GetThreadReadStateRequest": {
|
|
4841
|
+
"fields": {
|
|
4842
|
+
"name": {
|
|
4843
|
+
"type": "string",
|
|
4844
|
+
"id": 1,
|
|
4845
|
+
"options": {
|
|
4846
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
4847
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/ThreadReadState"
|
|
4848
|
+
}
|
|
4849
|
+
}
|
|
4850
|
+
}
|
|
4653
4851
|
}
|
|
4654
4852
|
}
|
|
4655
4853
|
}
|