@google-apps/chat 0.25.0 → 0.27.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/audience.proto +48 -0
- package/build/protos/google/chat/v1/availability.proto +232 -0
- package/build/protos/google/chat/v1/chat_service.proto +105 -0
- package/build/protos/google/chat/v1/membership.proto +27 -0
- package/build/protos/google/chat/v1/space.proto +55 -0
- package/build/protos/protos.d.ts +1388 -0
- package/build/protos/protos.js +1 -80676
- package/build/protos/protos.json +364 -1
- package/build/src/v1/chat_service_client.d.ts +251 -0
- package/build/src/v1/chat_service_client.js +245 -0
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +25 -0
- package/build/src/v1/chat_service_proto_list.json +2 -0
- package/build/src/v1/gapic_metadata.json +50 -0
- package/package.json +3 -3
package/build/protos/protos.json
CHANGED
|
@@ -3631,10 +3631,220 @@
|
|
|
3631
3631
|
}
|
|
3632
3632
|
}
|
|
3633
3633
|
},
|
|
3634
|
+
"Audience": {
|
|
3635
|
+
"fields": {
|
|
3636
|
+
"name": {
|
|
3637
|
+
"type": "string",
|
|
3638
|
+
"id": 1
|
|
3639
|
+
}
|
|
3640
|
+
}
|
|
3641
|
+
},
|
|
3642
|
+
"Availability": {
|
|
3643
|
+
"options": {
|
|
3644
|
+
"(google.api.resource).type": "chat.googleapis.com/Availability",
|
|
3645
|
+
"(google.api.resource).pattern": "users/{user}/availability",
|
|
3646
|
+
"(google.api.resource).plural": "availabilities",
|
|
3647
|
+
"(google.api.resource).singular": "availability"
|
|
3648
|
+
},
|
|
3649
|
+
"oneofs": {
|
|
3650
|
+
"stateMetadata": {
|
|
3651
|
+
"oneof": [
|
|
3652
|
+
"doNotDisturbMetadata"
|
|
3653
|
+
]
|
|
3654
|
+
}
|
|
3655
|
+
},
|
|
3656
|
+
"fields": {
|
|
3657
|
+
"name": {
|
|
3658
|
+
"type": "string",
|
|
3659
|
+
"id": 1,
|
|
3660
|
+
"options": {
|
|
3661
|
+
"(google.api.field_behavior)": "IDENTIFIER"
|
|
3662
|
+
}
|
|
3663
|
+
},
|
|
3664
|
+
"state": {
|
|
3665
|
+
"type": "State",
|
|
3666
|
+
"id": 2,
|
|
3667
|
+
"options": {
|
|
3668
|
+
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
3669
|
+
}
|
|
3670
|
+
},
|
|
3671
|
+
"doNotDisturbMetadata": {
|
|
3672
|
+
"type": "DoNotDisturbMetadata",
|
|
3673
|
+
"id": 3,
|
|
3674
|
+
"options": {
|
|
3675
|
+
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
3676
|
+
}
|
|
3677
|
+
},
|
|
3678
|
+
"customStatus": {
|
|
3679
|
+
"type": "CustomStatus",
|
|
3680
|
+
"id": 4,
|
|
3681
|
+
"options": {
|
|
3682
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
3683
|
+
}
|
|
3684
|
+
}
|
|
3685
|
+
},
|
|
3686
|
+
"nested": {
|
|
3687
|
+
"State": {
|
|
3688
|
+
"values": {
|
|
3689
|
+
"STATE_UNSPECIFIED": 0,
|
|
3690
|
+
"ACTIVE": 1,
|
|
3691
|
+
"IDLE": 2,
|
|
3692
|
+
"AWAY": 3,
|
|
3693
|
+
"DO_NOT_DISTURB": 4
|
|
3694
|
+
}
|
|
3695
|
+
}
|
|
3696
|
+
}
|
|
3697
|
+
},
|
|
3698
|
+
"CustomStatus": {
|
|
3699
|
+
"oneofs": {
|
|
3700
|
+
"expiration": {
|
|
3701
|
+
"oneof": [
|
|
3702
|
+
"expireTime",
|
|
3703
|
+
"ttl"
|
|
3704
|
+
]
|
|
3705
|
+
}
|
|
3706
|
+
},
|
|
3707
|
+
"fields": {
|
|
3708
|
+
"text": {
|
|
3709
|
+
"type": "string",
|
|
3710
|
+
"id": 1,
|
|
3711
|
+
"options": {
|
|
3712
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3713
|
+
}
|
|
3714
|
+
},
|
|
3715
|
+
"emoji": {
|
|
3716
|
+
"type": "Emoji",
|
|
3717
|
+
"id": 2,
|
|
3718
|
+
"options": {
|
|
3719
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3720
|
+
}
|
|
3721
|
+
},
|
|
3722
|
+
"expireTime": {
|
|
3723
|
+
"type": "google.protobuf.Timestamp",
|
|
3724
|
+
"id": 3
|
|
3725
|
+
},
|
|
3726
|
+
"ttl": {
|
|
3727
|
+
"type": "google.protobuf.Duration",
|
|
3728
|
+
"id": 4,
|
|
3729
|
+
"options": {
|
|
3730
|
+
"(google.api.field_behavior)": "INPUT_ONLY"
|
|
3731
|
+
}
|
|
3732
|
+
}
|
|
3733
|
+
}
|
|
3734
|
+
},
|
|
3735
|
+
"DoNotDisturbMetadata": {
|
|
3736
|
+
"fields": {
|
|
3737
|
+
"expirationTime": {
|
|
3738
|
+
"type": "google.protobuf.Timestamp",
|
|
3739
|
+
"id": 1,
|
|
3740
|
+
"options": {
|
|
3741
|
+
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
3742
|
+
}
|
|
3743
|
+
}
|
|
3744
|
+
}
|
|
3745
|
+
},
|
|
3746
|
+
"GetAvailabilityRequest": {
|
|
3747
|
+
"fields": {
|
|
3748
|
+
"name": {
|
|
3749
|
+
"type": "string",
|
|
3750
|
+
"id": 1,
|
|
3751
|
+
"options": {
|
|
3752
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
3753
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/Availability"
|
|
3754
|
+
}
|
|
3755
|
+
}
|
|
3756
|
+
}
|
|
3757
|
+
},
|
|
3758
|
+
"UpdateAvailabilityRequest": {
|
|
3759
|
+
"fields": {
|
|
3760
|
+
"availability": {
|
|
3761
|
+
"type": "Availability",
|
|
3762
|
+
"id": 1,
|
|
3763
|
+
"options": {
|
|
3764
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3765
|
+
}
|
|
3766
|
+
},
|
|
3767
|
+
"updateMask": {
|
|
3768
|
+
"type": "google.protobuf.FieldMask",
|
|
3769
|
+
"id": 2,
|
|
3770
|
+
"options": {
|
|
3771
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3772
|
+
}
|
|
3773
|
+
}
|
|
3774
|
+
}
|
|
3775
|
+
},
|
|
3776
|
+
"MarkAsActiveRequest": {
|
|
3777
|
+
"oneofs": {
|
|
3778
|
+
"expiration": {
|
|
3779
|
+
"oneof": [
|
|
3780
|
+
"expireTime",
|
|
3781
|
+
"ttl"
|
|
3782
|
+
]
|
|
3783
|
+
}
|
|
3784
|
+
},
|
|
3785
|
+
"fields": {
|
|
3786
|
+
"name": {
|
|
3787
|
+
"type": "string",
|
|
3788
|
+
"id": 1,
|
|
3789
|
+
"options": {
|
|
3790
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
3791
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/Availability"
|
|
3792
|
+
}
|
|
3793
|
+
},
|
|
3794
|
+
"expireTime": {
|
|
3795
|
+
"type": "google.protobuf.Timestamp",
|
|
3796
|
+
"id": 2
|
|
3797
|
+
},
|
|
3798
|
+
"ttl": {
|
|
3799
|
+
"type": "google.protobuf.Duration",
|
|
3800
|
+
"id": 3
|
|
3801
|
+
}
|
|
3802
|
+
}
|
|
3803
|
+
},
|
|
3804
|
+
"MarkAsAwayRequest": {
|
|
3805
|
+
"fields": {
|
|
3806
|
+
"name": {
|
|
3807
|
+
"type": "string",
|
|
3808
|
+
"id": 1,
|
|
3809
|
+
"options": {
|
|
3810
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
3811
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/Availability"
|
|
3812
|
+
}
|
|
3813
|
+
}
|
|
3814
|
+
}
|
|
3815
|
+
},
|
|
3816
|
+
"MarkAsDoNotDisturbRequest": {
|
|
3817
|
+
"oneofs": {
|
|
3818
|
+
"expiration": {
|
|
3819
|
+
"oneof": [
|
|
3820
|
+
"expireTime",
|
|
3821
|
+
"ttl"
|
|
3822
|
+
]
|
|
3823
|
+
}
|
|
3824
|
+
},
|
|
3825
|
+
"fields": {
|
|
3826
|
+
"name": {
|
|
3827
|
+
"type": "string",
|
|
3828
|
+
"id": 1,
|
|
3829
|
+
"options": {
|
|
3830
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
3831
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/Availability"
|
|
3832
|
+
}
|
|
3833
|
+
},
|
|
3834
|
+
"expireTime": {
|
|
3835
|
+
"type": "google.protobuf.Timestamp",
|
|
3836
|
+
"id": 2
|
|
3837
|
+
},
|
|
3838
|
+
"ttl": {
|
|
3839
|
+
"type": "google.protobuf.Duration",
|
|
3840
|
+
"id": 3
|
|
3841
|
+
}
|
|
3842
|
+
}
|
|
3843
|
+
},
|
|
3634
3844
|
"ChatService": {
|
|
3635
3845
|
"options": {
|
|
3636
3846
|
"(google.api.default_host)": "chat.googleapis.com",
|
|
3637
|
-
"(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.app.delete,https://www.googleapis.com/auth/chat.app.memberships,https://www.googleapis.com/auth/chat.app.memberships.readonly,https://www.googleapis.com/auth/chat.app.messages.readonly,https://www.googleapis.com/auth/chat.app.spaces,https://www.googleapis.com/auth/chat.app.spaces.create,https://www.googleapis.com/auth/chat.app.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.customemojis,https://www.googleapis.com/auth/chat.customemojis.readonly,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.sections,https://www.googleapis.com/auth/chat.users.sections.readonly,https://www.googleapis.com/auth/chat.users.spacesettings"
|
|
3847
|
+
"(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.app.delete,https://www.googleapis.com/auth/chat.app.memberships,https://www.googleapis.com/auth/chat.app.memberships.readonly,https://www.googleapis.com/auth/chat.app.messages.readonly,https://www.googleapis.com/auth/chat.app.spaces,https://www.googleapis.com/auth/chat.app.spaces.create,https://www.googleapis.com/auth/chat.app.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.customemojis,https://www.googleapis.com/auth/chat.customemojis.readonly,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.availability,https://www.googleapis.com/auth/chat.users.availability.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.sections,https://www.googleapis.com/auth/chat.users.sections.readonly,https://www.googleapis.com/auth/chat.users.spacesettings"
|
|
3638
3848
|
},
|
|
3639
3849
|
"methods": {
|
|
3640
3850
|
"CreateMessage": {
|
|
@@ -4223,6 +4433,92 @@
|
|
|
4223
4433
|
}
|
|
4224
4434
|
]
|
|
4225
4435
|
},
|
|
4436
|
+
"GetAvailability": {
|
|
4437
|
+
"requestType": "GetAvailabilityRequest",
|
|
4438
|
+
"responseType": "Availability",
|
|
4439
|
+
"options": {
|
|
4440
|
+
"(google.api.http).get": "/v1/{name=users/*/availability}",
|
|
4441
|
+
"(google.api.method_signature)": "name"
|
|
4442
|
+
},
|
|
4443
|
+
"parsedOptions": [
|
|
4444
|
+
{
|
|
4445
|
+
"(google.api.http)": {
|
|
4446
|
+
"get": "/v1/{name=users/*/availability}"
|
|
4447
|
+
}
|
|
4448
|
+
},
|
|
4449
|
+
{
|
|
4450
|
+
"(google.api.method_signature)": "name"
|
|
4451
|
+
}
|
|
4452
|
+
]
|
|
4453
|
+
},
|
|
4454
|
+
"MarkAsActive": {
|
|
4455
|
+
"requestType": "MarkAsActiveRequest",
|
|
4456
|
+
"responseType": "Availability",
|
|
4457
|
+
"options": {
|
|
4458
|
+
"(google.api.http).post": "/v1/{name=users/*/availability}:markAsActive",
|
|
4459
|
+
"(google.api.http).body": "*"
|
|
4460
|
+
},
|
|
4461
|
+
"parsedOptions": [
|
|
4462
|
+
{
|
|
4463
|
+
"(google.api.http)": {
|
|
4464
|
+
"post": "/v1/{name=users/*/availability}:markAsActive",
|
|
4465
|
+
"body": "*"
|
|
4466
|
+
}
|
|
4467
|
+
}
|
|
4468
|
+
]
|
|
4469
|
+
},
|
|
4470
|
+
"MarkAsAway": {
|
|
4471
|
+
"requestType": "MarkAsAwayRequest",
|
|
4472
|
+
"responseType": "Availability",
|
|
4473
|
+
"options": {
|
|
4474
|
+
"(google.api.http).post": "/v1/{name=users/*/availability}:markAsAway",
|
|
4475
|
+
"(google.api.http).body": "*"
|
|
4476
|
+
},
|
|
4477
|
+
"parsedOptions": [
|
|
4478
|
+
{
|
|
4479
|
+
"(google.api.http)": {
|
|
4480
|
+
"post": "/v1/{name=users/*/availability}:markAsAway",
|
|
4481
|
+
"body": "*"
|
|
4482
|
+
}
|
|
4483
|
+
}
|
|
4484
|
+
]
|
|
4485
|
+
},
|
|
4486
|
+
"MarkAsDoNotDisturb": {
|
|
4487
|
+
"requestType": "MarkAsDoNotDisturbRequest",
|
|
4488
|
+
"responseType": "Availability",
|
|
4489
|
+
"options": {
|
|
4490
|
+
"(google.api.http).post": "/v1/{name=users/*/availability}:markAsDoNotDisturb",
|
|
4491
|
+
"(google.api.http).body": "*"
|
|
4492
|
+
},
|
|
4493
|
+
"parsedOptions": [
|
|
4494
|
+
{
|
|
4495
|
+
"(google.api.http)": {
|
|
4496
|
+
"post": "/v1/{name=users/*/availability}:markAsDoNotDisturb",
|
|
4497
|
+
"body": "*"
|
|
4498
|
+
}
|
|
4499
|
+
}
|
|
4500
|
+
]
|
|
4501
|
+
},
|
|
4502
|
+
"UpdateAvailability": {
|
|
4503
|
+
"requestType": "UpdateAvailabilityRequest",
|
|
4504
|
+
"responseType": "Availability",
|
|
4505
|
+
"options": {
|
|
4506
|
+
"(google.api.http).patch": "/v1/{availability.name=users/*/availability}",
|
|
4507
|
+
"(google.api.http).body": "availability",
|
|
4508
|
+
"(google.api.method_signature)": "availability,update_mask"
|
|
4509
|
+
},
|
|
4510
|
+
"parsedOptions": [
|
|
4511
|
+
{
|
|
4512
|
+
"(google.api.http)": {
|
|
4513
|
+
"patch": "/v1/{availability.name=users/*/availability}",
|
|
4514
|
+
"body": "availability"
|
|
4515
|
+
}
|
|
4516
|
+
},
|
|
4517
|
+
{
|
|
4518
|
+
"(google.api.method_signature)": "availability,update_mask"
|
|
4519
|
+
}
|
|
4520
|
+
]
|
|
4521
|
+
},
|
|
4226
4522
|
"GetSpaceEvent": {
|
|
4227
4523
|
"requestType": "GetSpaceEventRequest",
|
|
4228
4524
|
"responseType": "SpaceEvent",
|
|
@@ -4491,6 +4787,13 @@
|
|
|
4491
4787
|
"options": {
|
|
4492
4788
|
"(google.api.field_behavior)": "OPTIONAL"
|
|
4493
4789
|
}
|
|
4790
|
+
},
|
|
4791
|
+
"affiliation": {
|
|
4792
|
+
"type": "Affiliation",
|
|
4793
|
+
"id": 9,
|
|
4794
|
+
"options": {
|
|
4795
|
+
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
4796
|
+
}
|
|
4494
4797
|
}
|
|
4495
4798
|
},
|
|
4496
4799
|
"nested": {
|
|
@@ -4509,6 +4812,14 @@
|
|
|
4509
4812
|
"ROLE_MANAGER": 2,
|
|
4510
4813
|
"ROLE_ASSISTANT_MANAGER": 4
|
|
4511
4814
|
}
|
|
4815
|
+
},
|
|
4816
|
+
"Affiliation": {
|
|
4817
|
+
"values": {
|
|
4818
|
+
"AFFILIATION_UNSPECIFIED": 0,
|
|
4819
|
+
"INTERNAL": 1,
|
|
4820
|
+
"EXTERNAL": 2,
|
|
4821
|
+
"MANAGED_EXTERNAL": 3
|
|
4822
|
+
}
|
|
4512
4823
|
}
|
|
4513
4824
|
}
|
|
4514
4825
|
},
|
|
@@ -5983,6 +6294,13 @@
|
|
|
5983
6294
|
"options": {
|
|
5984
6295
|
"(google.api.field_behavior)": "OPTIONAL"
|
|
5985
6296
|
}
|
|
6297
|
+
},
|
|
6298
|
+
"accessPermissionSettings": {
|
|
6299
|
+
"type": "AccessPermissionSettings",
|
|
6300
|
+
"id": 5,
|
|
6301
|
+
"options": {
|
|
6302
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
6303
|
+
}
|
|
5986
6304
|
}
|
|
5987
6305
|
},
|
|
5988
6306
|
"nested": {
|
|
@@ -5995,6 +6313,51 @@
|
|
|
5995
6313
|
}
|
|
5996
6314
|
}
|
|
5997
6315
|
},
|
|
6316
|
+
"AccessPermissionSettings": {
|
|
6317
|
+
"fields": {
|
|
6318
|
+
"discoverSpaceSetting": {
|
|
6319
|
+
"type": "AccessPermissionSetting",
|
|
6320
|
+
"id": 1,
|
|
6321
|
+
"options": {
|
|
6322
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
6323
|
+
}
|
|
6324
|
+
},
|
|
6325
|
+
"joinSpaceSetting": {
|
|
6326
|
+
"type": "AccessPermissionSetting",
|
|
6327
|
+
"id": 2,
|
|
6328
|
+
"options": {
|
|
6329
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
6330
|
+
}
|
|
6331
|
+
}
|
|
6332
|
+
}
|
|
6333
|
+
},
|
|
6334
|
+
"AccessPermissionSetting": {
|
|
6335
|
+
"fields": {
|
|
6336
|
+
"principals": {
|
|
6337
|
+
"rule": "repeated",
|
|
6338
|
+
"type": "Principal",
|
|
6339
|
+
"id": 1,
|
|
6340
|
+
"options": {
|
|
6341
|
+
"(google.api.field_behavior)": "UNORDERED_LIST"
|
|
6342
|
+
}
|
|
6343
|
+
}
|
|
6344
|
+
}
|
|
6345
|
+
},
|
|
6346
|
+
"Principal": {
|
|
6347
|
+
"oneofs": {
|
|
6348
|
+
"principalType": {
|
|
6349
|
+
"oneof": [
|
|
6350
|
+
"audience"
|
|
6351
|
+
]
|
|
6352
|
+
}
|
|
6353
|
+
},
|
|
6354
|
+
"fields": {
|
|
6355
|
+
"audience": {
|
|
6356
|
+
"type": "Audience",
|
|
6357
|
+
"id": 1
|
|
6358
|
+
}
|
|
6359
|
+
}
|
|
6360
|
+
},
|
|
5998
6361
|
"PredefinedPermissionSettings": {
|
|
5999
6362
|
"values": {
|
|
6000
6363
|
"PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED": 0,
|