@google-apps/chat 0.22.0 → 0.23.1

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.
@@ -2741,7 +2741,9 @@
2741
2741
  "java_package": "com.google.chat.v1",
2742
2742
  "objc_class_prefix": "DYNAPIProto",
2743
2743
  "php_namespace": "Google\\Apps\\Chat\\V1",
2744
- "ruby_package": "Google::Apps::Chat::V1"
2744
+ "ruby_package": "Google::Apps::Chat::V1",
2745
+ "(google.api.resource_definition).type": "chat.googleapis.com/User",
2746
+ "(google.api.resource_definition).pattern": "users/{user}"
2745
2747
  },
2746
2748
  "nested": {
2747
2749
  "ActionStatus": {
@@ -3497,7 +3499,7 @@
3497
3499
  "ChatService": {
3498
3500
  "options": {
3499
3501
  "(google.api.default_host)": "chat.googleapis.com",
3500
- "(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.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.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.spacesettings"
3502
+ "(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"
3501
3503
  },
3502
3504
  "methods": {
3503
3505
  "CreateMessage": {
@@ -4145,6 +4147,136 @@
4145
4147
  "(google.api.method_signature)": "space_notification_setting,update_mask"
4146
4148
  }
4147
4149
  ]
4150
+ },
4151
+ "CreateSection": {
4152
+ "requestType": "CreateSectionRequest",
4153
+ "responseType": "Section",
4154
+ "options": {
4155
+ "(google.api.http).post": "/v1/{parent=users/*}/sections",
4156
+ "(google.api.http).body": "section",
4157
+ "(google.api.method_signature)": "parent,section"
4158
+ },
4159
+ "parsedOptions": [
4160
+ {
4161
+ "(google.api.http)": {
4162
+ "post": "/v1/{parent=users/*}/sections",
4163
+ "body": "section"
4164
+ }
4165
+ },
4166
+ {
4167
+ "(google.api.method_signature)": "parent,section"
4168
+ }
4169
+ ]
4170
+ },
4171
+ "DeleteSection": {
4172
+ "requestType": "DeleteSectionRequest",
4173
+ "responseType": "google.protobuf.Empty",
4174
+ "options": {
4175
+ "(google.api.http).delete": "/v1/{name=users/*/sections/*}",
4176
+ "(google.api.method_signature)": "name"
4177
+ },
4178
+ "parsedOptions": [
4179
+ {
4180
+ "(google.api.http)": {
4181
+ "delete": "/v1/{name=users/*/sections/*}"
4182
+ }
4183
+ },
4184
+ {
4185
+ "(google.api.method_signature)": "name"
4186
+ }
4187
+ ]
4188
+ },
4189
+ "UpdateSection": {
4190
+ "requestType": "UpdateSectionRequest",
4191
+ "responseType": "Section",
4192
+ "options": {
4193
+ "(google.api.http).patch": "/v1/{section.name=users/*/sections/*}",
4194
+ "(google.api.http).body": "section",
4195
+ "(google.api.method_signature)": "section,update_mask"
4196
+ },
4197
+ "parsedOptions": [
4198
+ {
4199
+ "(google.api.http)": {
4200
+ "patch": "/v1/{section.name=users/*/sections/*}",
4201
+ "body": "section"
4202
+ }
4203
+ },
4204
+ {
4205
+ "(google.api.method_signature)": "section,update_mask"
4206
+ }
4207
+ ]
4208
+ },
4209
+ "ListSections": {
4210
+ "requestType": "ListSectionsRequest",
4211
+ "responseType": "ListSectionsResponse",
4212
+ "options": {
4213
+ "(google.api.http).get": "/v1/{parent=users/*}/sections",
4214
+ "(google.api.method_signature)": "parent"
4215
+ },
4216
+ "parsedOptions": [
4217
+ {
4218
+ "(google.api.http)": {
4219
+ "get": "/v1/{parent=users/*}/sections"
4220
+ }
4221
+ },
4222
+ {
4223
+ "(google.api.method_signature)": "parent"
4224
+ }
4225
+ ]
4226
+ },
4227
+ "PositionSection": {
4228
+ "requestType": "PositionSectionRequest",
4229
+ "responseType": "PositionSectionResponse",
4230
+ "options": {
4231
+ "(google.api.http).post": "/v1/{name=users/*/sections/*}:position",
4232
+ "(google.api.http).body": "*"
4233
+ },
4234
+ "parsedOptions": [
4235
+ {
4236
+ "(google.api.http)": {
4237
+ "post": "/v1/{name=users/*/sections/*}:position",
4238
+ "body": "*"
4239
+ }
4240
+ }
4241
+ ]
4242
+ },
4243
+ "ListSectionItems": {
4244
+ "requestType": "ListSectionItemsRequest",
4245
+ "responseType": "ListSectionItemsResponse",
4246
+ "options": {
4247
+ "(google.api.http).get": "/v1/{parent=users/*/sections/*}/items",
4248
+ "(google.api.method_signature)": "parent"
4249
+ },
4250
+ "parsedOptions": [
4251
+ {
4252
+ "(google.api.http)": {
4253
+ "get": "/v1/{parent=users/*/sections/*}/items"
4254
+ }
4255
+ },
4256
+ {
4257
+ "(google.api.method_signature)": "parent"
4258
+ }
4259
+ ]
4260
+ },
4261
+ "MoveSectionItem": {
4262
+ "requestType": "MoveSectionItemRequest",
4263
+ "responseType": "MoveSectionItemResponse",
4264
+ "options": {
4265
+ "(google.api.http).post": "/v1/{name=users/*/sections/*/items/*}:move",
4266
+ "(google.api.http).body": "*",
4267
+ "(google.api.method_signature)": "name,target_section"
4268
+ },
4269
+ "parsedOptions": [
4270
+ {
4271
+ "(google.api.http)": {
4272
+ "post": "/v1/{name=users/*/sections/*/items/*}:move",
4273
+ "body": "*"
4274
+ }
4275
+ },
4276
+ {
4277
+ "(google.api.method_signature)": "name,target_section"
4278
+ }
4279
+ ]
4148
4280
  }
4149
4281
  }
4150
4282
  },
@@ -4623,6 +4755,95 @@
4623
4755
  "options": {
4624
4756
  "(google.api.field_behavior)": "REQUIRED"
4625
4757
  }
4758
+ },
4759
+ "quoteType": {
4760
+ "type": "QuoteType",
4761
+ "id": 4,
4762
+ "options": {
4763
+ "(google.api.field_behavior)": "OPTIONAL"
4764
+ }
4765
+ },
4766
+ "quotedMessageSnapshot": {
4767
+ "type": "QuotedMessageSnapshot",
4768
+ "id": 5,
4769
+ "options": {
4770
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4771
+ }
4772
+ },
4773
+ "forwardedMetadata": {
4774
+ "type": "ForwardedMetadata",
4775
+ "id": 6,
4776
+ "options": {
4777
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4778
+ }
4779
+ }
4780
+ },
4781
+ "nested": {
4782
+ "QuoteType": {
4783
+ "values": {
4784
+ "QUOTE_TYPE_UNSPECIFIED": 0,
4785
+ "REPLY": 1
4786
+ }
4787
+ }
4788
+ }
4789
+ },
4790
+ "QuotedMessageSnapshot": {
4791
+ "fields": {
4792
+ "sender": {
4793
+ "type": "string",
4794
+ "id": 1,
4795
+ "options": {
4796
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4797
+ }
4798
+ },
4799
+ "text": {
4800
+ "type": "string",
4801
+ "id": 2,
4802
+ "options": {
4803
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4804
+ }
4805
+ },
4806
+ "formattedText": {
4807
+ "type": "string",
4808
+ "id": 3,
4809
+ "options": {
4810
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4811
+ }
4812
+ },
4813
+ "annotations": {
4814
+ "rule": "repeated",
4815
+ "type": "Annotation",
4816
+ "id": 4,
4817
+ "options": {
4818
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4819
+ }
4820
+ },
4821
+ "attachments": {
4822
+ "rule": "repeated",
4823
+ "type": "Attachment",
4824
+ "id": 5,
4825
+ "options": {
4826
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4827
+ }
4828
+ }
4829
+ }
4830
+ },
4831
+ "ForwardedMetadata": {
4832
+ "fields": {
4833
+ "space": {
4834
+ "type": "string",
4835
+ "id": 1,
4836
+ "options": {
4837
+ "(google.api.field_behavior)": "OUTPUT_ONLY",
4838
+ "(google.api.resource_reference).type": "chat.googleapis.com/Space"
4839
+ }
4840
+ },
4841
+ "spaceDisplayName": {
4842
+ "type": "string",
4843
+ "id": 2,
4844
+ "options": {
4845
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4846
+ }
4626
4847
  }
4627
4848
  }
4628
4849
  },
@@ -5949,6 +6170,297 @@
5949
6170
  "HISTORY_ON": 2
5950
6171
  }
5951
6172
  },
6173
+ "Section": {
6174
+ "options": {
6175
+ "(google.api.resource).type": "chat.googleapis.com/Section",
6176
+ "(google.api.resource).pattern": "users/{user}/sections/{section}",
6177
+ "(google.api.resource).plural": "sections",
6178
+ "(google.api.resource).singular": "section"
6179
+ },
6180
+ "fields": {
6181
+ "name": {
6182
+ "type": "string",
6183
+ "id": 1,
6184
+ "options": {
6185
+ "(google.api.field_behavior)": "IDENTIFIER"
6186
+ }
6187
+ },
6188
+ "displayName": {
6189
+ "type": "string",
6190
+ "id": 2,
6191
+ "options": {
6192
+ "(google.api.field_behavior)": "OPTIONAL"
6193
+ }
6194
+ },
6195
+ "sortOrder": {
6196
+ "type": "int32",
6197
+ "id": 3
6198
+ },
6199
+ "type": {
6200
+ "type": "SectionType",
6201
+ "id": 4,
6202
+ "options": {
6203
+ "(google.api.field_behavior)": "REQUIRED"
6204
+ }
6205
+ }
6206
+ },
6207
+ "nested": {
6208
+ "SectionType": {
6209
+ "values": {
6210
+ "SECTION_TYPE_UNSPECIFIED": 0,
6211
+ "CUSTOM_SECTION": 1,
6212
+ "DEFAULT_DIRECT_MESSAGES": 2,
6213
+ "DEFAULT_SPACES": 3,
6214
+ "DEFAULT_APPS": 6
6215
+ }
6216
+ }
6217
+ }
6218
+ },
6219
+ "SectionItem": {
6220
+ "options": {
6221
+ "(google.api.resource).type": "chat.googleapis.com/SectionItem",
6222
+ "(google.api.resource).pattern": "users/{user}/sections/{section}/items/{item}",
6223
+ "(google.api.resource).plural": "sectionItems",
6224
+ "(google.api.resource).singular": "sectionItem"
6225
+ },
6226
+ "oneofs": {
6227
+ "item": {
6228
+ "oneof": [
6229
+ "space"
6230
+ ]
6231
+ }
6232
+ },
6233
+ "fields": {
6234
+ "name": {
6235
+ "type": "string",
6236
+ "id": 1,
6237
+ "options": {
6238
+ "(google.api.field_behavior)": "IDENTIFIER"
6239
+ }
6240
+ },
6241
+ "space": {
6242
+ "type": "string",
6243
+ "id": 2,
6244
+ "options": {
6245
+ "(google.api.field_behavior)": "OPTIONAL",
6246
+ "(google.api.resource_reference).type": "chat.googleapis.com/Space"
6247
+ }
6248
+ }
6249
+ }
6250
+ },
6251
+ "CreateSectionRequest": {
6252
+ "fields": {
6253
+ "parent": {
6254
+ "type": "string",
6255
+ "id": 1,
6256
+ "options": {
6257
+ "(google.api.field_behavior)": "REQUIRED",
6258
+ "(google.api.resource_reference).type": "chat.googleapis.com/User"
6259
+ }
6260
+ },
6261
+ "section": {
6262
+ "type": "Section",
6263
+ "id": 2,
6264
+ "options": {
6265
+ "(google.api.field_behavior)": "REQUIRED"
6266
+ }
6267
+ }
6268
+ }
6269
+ },
6270
+ "DeleteSectionRequest": {
6271
+ "fields": {
6272
+ "name": {
6273
+ "type": "string",
6274
+ "id": 1,
6275
+ "options": {
6276
+ "(google.api.field_behavior)": "REQUIRED",
6277
+ "(google.api.resource_reference).type": "chat.googleapis.com/Section"
6278
+ }
6279
+ }
6280
+ }
6281
+ },
6282
+ "UpdateSectionRequest": {
6283
+ "fields": {
6284
+ "section": {
6285
+ "type": "Section",
6286
+ "id": 1,
6287
+ "options": {
6288
+ "(google.api.field_behavior)": "REQUIRED"
6289
+ }
6290
+ },
6291
+ "updateMask": {
6292
+ "type": "google.protobuf.FieldMask",
6293
+ "id": 2,
6294
+ "options": {
6295
+ "(google.api.field_behavior)": "REQUIRED"
6296
+ }
6297
+ }
6298
+ }
6299
+ },
6300
+ "ListSectionsRequest": {
6301
+ "fields": {
6302
+ "parent": {
6303
+ "type": "string",
6304
+ "id": 1,
6305
+ "options": {
6306
+ "(google.api.field_behavior)": "REQUIRED",
6307
+ "(google.api.resource_reference).type": "chat.googleapis.com/User"
6308
+ }
6309
+ },
6310
+ "pageSize": {
6311
+ "type": "int32",
6312
+ "id": 2,
6313
+ "options": {
6314
+ "(google.api.field_behavior)": "OPTIONAL"
6315
+ }
6316
+ },
6317
+ "pageToken": {
6318
+ "type": "string",
6319
+ "id": 3,
6320
+ "options": {
6321
+ "(google.api.field_behavior)": "OPTIONAL"
6322
+ }
6323
+ }
6324
+ }
6325
+ },
6326
+ "ListSectionsResponse": {
6327
+ "fields": {
6328
+ "sections": {
6329
+ "rule": "repeated",
6330
+ "type": "Section",
6331
+ "id": 1
6332
+ },
6333
+ "nextPageToken": {
6334
+ "type": "string",
6335
+ "id": 2
6336
+ }
6337
+ }
6338
+ },
6339
+ "PositionSectionRequest": {
6340
+ "oneofs": {
6341
+ "position": {
6342
+ "oneof": [
6343
+ "sortOrder",
6344
+ "relativePosition"
6345
+ ]
6346
+ }
6347
+ },
6348
+ "fields": {
6349
+ "name": {
6350
+ "type": "string",
6351
+ "id": 1,
6352
+ "options": {
6353
+ "(google.api.field_behavior)": "REQUIRED",
6354
+ "(google.api.resource_reference).type": "chat.googleapis.com/Section"
6355
+ }
6356
+ },
6357
+ "sortOrder": {
6358
+ "type": "int32",
6359
+ "id": 2,
6360
+ "options": {
6361
+ "(google.api.field_behavior)": "OPTIONAL"
6362
+ }
6363
+ },
6364
+ "relativePosition": {
6365
+ "type": "Position",
6366
+ "id": 3,
6367
+ "options": {
6368
+ "(google.api.field_behavior)": "OPTIONAL"
6369
+ }
6370
+ }
6371
+ },
6372
+ "nested": {
6373
+ "Position": {
6374
+ "values": {
6375
+ "POSITION_UNSPECIFIED": 0,
6376
+ "START": 1,
6377
+ "END": 2
6378
+ }
6379
+ }
6380
+ }
6381
+ },
6382
+ "PositionSectionResponse": {
6383
+ "fields": {
6384
+ "section": {
6385
+ "type": "Section",
6386
+ "id": 1
6387
+ }
6388
+ }
6389
+ },
6390
+ "ListSectionItemsRequest": {
6391
+ "fields": {
6392
+ "parent": {
6393
+ "type": "string",
6394
+ "id": 1,
6395
+ "options": {
6396
+ "(google.api.field_behavior)": "REQUIRED",
6397
+ "(google.api.resource_reference).type": "chat.googleapis.com/Section"
6398
+ }
6399
+ },
6400
+ "pageSize": {
6401
+ "type": "int32",
6402
+ "id": 2,
6403
+ "options": {
6404
+ "(google.api.field_behavior)": "OPTIONAL"
6405
+ }
6406
+ },
6407
+ "pageToken": {
6408
+ "type": "string",
6409
+ "id": 3,
6410
+ "options": {
6411
+ "(google.api.field_behavior)": "OPTIONAL"
6412
+ }
6413
+ },
6414
+ "filter": {
6415
+ "type": "string",
6416
+ "id": 4,
6417
+ "options": {
6418
+ "(google.api.field_behavior)": "OPTIONAL"
6419
+ }
6420
+ }
6421
+ }
6422
+ },
6423
+ "ListSectionItemsResponse": {
6424
+ "fields": {
6425
+ "sectionItems": {
6426
+ "rule": "repeated",
6427
+ "type": "SectionItem",
6428
+ "id": 1
6429
+ },
6430
+ "nextPageToken": {
6431
+ "type": "string",
6432
+ "id": 2
6433
+ }
6434
+ }
6435
+ },
6436
+ "MoveSectionItemRequest": {
6437
+ "fields": {
6438
+ "name": {
6439
+ "type": "string",
6440
+ "id": 1,
6441
+ "options": {
6442
+ "(google.api.field_behavior)": "REQUIRED",
6443
+ "(google.api.resource_reference).type": "chat.googleapis.com/SectionItem"
6444
+ }
6445
+ },
6446
+ "targetSection": {
6447
+ "type": "string",
6448
+ "id": 2,
6449
+ "options": {
6450
+ "(google.api.field_behavior)": "REQUIRED",
6451
+ "(google.api.resource_reference).type": "chat.googleapis.com/Section"
6452
+ }
6453
+ }
6454
+ }
6455
+ },
6456
+ "MoveSectionItemResponse": {
6457
+ "fields": {
6458
+ "sectionItem": {
6459
+ "type": "SectionItem",
6460
+ "id": 1
6461
+ }
6462
+ }
6463
+ },
5952
6464
  "SpaceEvent": {
5953
6465
  "options": {
5954
6466
  "(google.api.resource).type": "chat.googleapis.com/SpaceEvent",
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2025 Google LLC
2
+ // Copyright 2026 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.