@google-apps/chat 0.1.0 → 0.3.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 +1 -0
- package/build/protos/google/apps/card/v1/card.proto +242 -160
- package/build/protos/google/chat/v1/action_status.proto +4 -4
- package/build/protos/google/chat/v1/annotation.proto +46 -4
- package/build/protos/google/chat/v1/attachment.proto +12 -3
- package/build/protos/google/chat/v1/chat_service.proto +95 -83
- package/build/protos/google/chat/v1/contextual_addon.proto +4 -4
- package/build/protos/google/chat/v1/deletion_metadata.proto +3 -3
- package/build/protos/google/chat/v1/group.proto +3 -3
- package/build/protos/google/chat/v1/history_state.proto +3 -3
- package/build/protos/google/chat/v1/matched_url.proto +3 -3
- package/build/protos/google/chat/v1/membership.proto +36 -14
- package/build/protos/google/chat/v1/message.proto +88 -57
- package/build/protos/google/chat/v1/reaction.proto +7 -5
- package/build/protos/google/chat/v1/slash_command.proto +6 -5
- package/build/protos/google/chat/v1/space.proto +31 -20
- package/build/protos/google/chat/v1/space_setup.proto +4 -3
- package/build/protos/google/chat/v1/user.proto +6 -5
- package/build/protos/google/chat/v1/widgets.proto +7 -7
- package/build/protos/protos.d.ts +724 -142
- package/build/protos/protos.js +2007 -576
- package/build/protos/protos.json +179 -47
- package/build/src/v1/chat_service_client.d.ts +174 -135
- package/build/src/v1/chat_service_client.js +58 -31
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +5 -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": {
|
|
@@ -2381,13 +2406,13 @@
|
|
|
2381
2406
|
"nested": {
|
|
2382
2407
|
"v1": {
|
|
2383
2408
|
"options": {
|
|
2384
|
-
"csharp_namespace": "Google.Chat.V1",
|
|
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
2412
|
"java_outer_classname": "SpaceSetupProto",
|
|
2388
2413
|
"java_package": "com.google.chat.v1",
|
|
2389
|
-
"php_namespace": "Google\\Chat\\V1",
|
|
2390
|
-
"ruby_package": "Google::Chat::V1"
|
|
2414
|
+
"php_namespace": "Google\\Apps\\Chat\\V1",
|
|
2415
|
+
"ruby_package": "Google::Apps::Chat::V1"
|
|
2391
2416
|
},
|
|
2392
2417
|
"nested": {
|
|
2393
2418
|
"ActionStatus": {
|
|
@@ -2412,7 +2437,8 @@
|
|
|
2412
2437
|
"metadata": {
|
|
2413
2438
|
"oneof": [
|
|
2414
2439
|
"userMention",
|
|
2415
|
-
"slashCommand"
|
|
2440
|
+
"slashCommand",
|
|
2441
|
+
"richLinkMetadata"
|
|
2416
2442
|
]
|
|
2417
2443
|
}
|
|
2418
2444
|
},
|
|
@@ -2439,6 +2465,10 @@
|
|
|
2439
2465
|
"slashCommand": {
|
|
2440
2466
|
"type": "SlashCommandMetadata",
|
|
2441
2467
|
"id": 5
|
|
2468
|
+
},
|
|
2469
|
+
"richLinkMetadata": {
|
|
2470
|
+
"type": "RichLinkMetadata",
|
|
2471
|
+
"id": 6
|
|
2442
2472
|
}
|
|
2443
2473
|
}
|
|
2444
2474
|
},
|
|
@@ -2496,52 +2526,57 @@
|
|
|
2496
2526
|
}
|
|
2497
2527
|
}
|
|
2498
2528
|
},
|
|
2499
|
-
"
|
|
2500
|
-
"
|
|
2501
|
-
"
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2529
|
+
"RichLinkMetadata": {
|
|
2530
|
+
"oneofs": {
|
|
2531
|
+
"data": {
|
|
2532
|
+
"oneof": [
|
|
2533
|
+
"driveLinkData"
|
|
2534
|
+
]
|
|
2535
|
+
}
|
|
2536
|
+
},
|
|
2507
2537
|
"fields": {
|
|
2508
|
-
"
|
|
2538
|
+
"uri": {
|
|
2509
2539
|
"type": "string",
|
|
2510
2540
|
"id": 1
|
|
2511
2541
|
},
|
|
2512
|
-
"
|
|
2513
|
-
"type": "
|
|
2514
|
-
"id": 2
|
|
2515
|
-
"options": {
|
|
2516
|
-
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
2517
|
-
}
|
|
2518
|
-
},
|
|
2519
|
-
"domainId": {
|
|
2520
|
-
"type": "string",
|
|
2521
|
-
"id": 6
|
|
2522
|
-
},
|
|
2523
|
-
"type": {
|
|
2524
|
-
"type": "Type",
|
|
2525
|
-
"id": 5
|
|
2542
|
+
"richLinkType": {
|
|
2543
|
+
"type": "RichLinkType",
|
|
2544
|
+
"id": 2
|
|
2526
2545
|
},
|
|
2527
|
-
"
|
|
2528
|
-
"type": "
|
|
2529
|
-
"id":
|
|
2530
|
-
"options": {
|
|
2531
|
-
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
2532
|
-
}
|
|
2546
|
+
"driveLinkData": {
|
|
2547
|
+
"type": "DriveLinkData",
|
|
2548
|
+
"id": 3
|
|
2533
2549
|
}
|
|
2534
2550
|
},
|
|
2535
2551
|
"nested": {
|
|
2536
|
-
"
|
|
2552
|
+
"RichLinkType": {
|
|
2537
2553
|
"values": {
|
|
2538
|
-
"
|
|
2539
|
-
"
|
|
2540
|
-
"BOT": 2
|
|
2554
|
+
"RICH_LINK_TYPE_UNSPECIFIED": 0,
|
|
2555
|
+
"DRIVE_FILE": 1
|
|
2541
2556
|
}
|
|
2542
2557
|
}
|
|
2543
2558
|
}
|
|
2544
2559
|
},
|
|
2560
|
+
"DriveLinkData": {
|
|
2561
|
+
"fields": {
|
|
2562
|
+
"driveDataRef": {
|
|
2563
|
+
"type": "DriveDataRef",
|
|
2564
|
+
"id": 1
|
|
2565
|
+
},
|
|
2566
|
+
"mimeType": {
|
|
2567
|
+
"type": "string",
|
|
2568
|
+
"id": 2
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
},
|
|
2572
|
+
"AnnotationType": {
|
|
2573
|
+
"values": {
|
|
2574
|
+
"ANNOTATION_TYPE_UNSPECIFIED": 0,
|
|
2575
|
+
"USER_MENTION": 1,
|
|
2576
|
+
"SLASH_COMMAND": 2,
|
|
2577
|
+
"RICH_LINK": 3
|
|
2578
|
+
}
|
|
2579
|
+
},
|
|
2545
2580
|
"Attachment": {
|
|
2546
2581
|
"options": {
|
|
2547
2582
|
"(google.api.resource).type": "chat.googleapis.com/Attachment",
|
|
@@ -2676,6 +2711,45 @@
|
|
|
2676
2711
|
}
|
|
2677
2712
|
}
|
|
2678
2713
|
},
|
|
2714
|
+
"User": {
|
|
2715
|
+
"fields": {
|
|
2716
|
+
"name": {
|
|
2717
|
+
"type": "string",
|
|
2718
|
+
"id": 1
|
|
2719
|
+
},
|
|
2720
|
+
"displayName": {
|
|
2721
|
+
"type": "string",
|
|
2722
|
+
"id": 2,
|
|
2723
|
+
"options": {
|
|
2724
|
+
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
2725
|
+
}
|
|
2726
|
+
},
|
|
2727
|
+
"domainId": {
|
|
2728
|
+
"type": "string",
|
|
2729
|
+
"id": 6
|
|
2730
|
+
},
|
|
2731
|
+
"type": {
|
|
2732
|
+
"type": "Type",
|
|
2733
|
+
"id": 5
|
|
2734
|
+
},
|
|
2735
|
+
"isAnonymous": {
|
|
2736
|
+
"type": "bool",
|
|
2737
|
+
"id": 7,
|
|
2738
|
+
"options": {
|
|
2739
|
+
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2742
|
+
},
|
|
2743
|
+
"nested": {
|
|
2744
|
+
"Type": {
|
|
2745
|
+
"values": {
|
|
2746
|
+
"TYPE_UNSPECIFIED": 0,
|
|
2747
|
+
"HUMAN": 1,
|
|
2748
|
+
"BOT": 2
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
},
|
|
2679
2753
|
"ChatService": {
|
|
2680
2754
|
"options": {
|
|
2681
2755
|
"(google.api.default_host)": "chat.googleapis.com",
|
|
@@ -3012,6 +3086,26 @@
|
|
|
3012
3086
|
}
|
|
3013
3087
|
]
|
|
3014
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
|
+
},
|
|
3015
3109
|
"DeleteMembership": {
|
|
3016
3110
|
"requestType": "DeleteMembershipRequest",
|
|
3017
3111
|
"responseType": "Membership",
|
|
@@ -3183,6 +3277,24 @@
|
|
|
3183
3277
|
}
|
|
3184
3278
|
}
|
|
3185
3279
|
},
|
|
3280
|
+
"UpdateMembershipRequest": {
|
|
3281
|
+
"fields": {
|
|
3282
|
+
"membership": {
|
|
3283
|
+
"type": "Membership",
|
|
3284
|
+
"id": 1,
|
|
3285
|
+
"options": {
|
|
3286
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3287
|
+
}
|
|
3288
|
+
},
|
|
3289
|
+
"updateMask": {
|
|
3290
|
+
"type": "google.protobuf.FieldMask",
|
|
3291
|
+
"id": 2,
|
|
3292
|
+
"options": {
|
|
3293
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3294
|
+
}
|
|
3295
|
+
}
|
|
3296
|
+
}
|
|
3297
|
+
},
|
|
3186
3298
|
"ListMembershipsRequest": {
|
|
3187
3299
|
"fields": {
|
|
3188
3300
|
"parent": {
|
|
@@ -3440,6 +3552,11 @@
|
|
|
3440
3552
|
"options": {
|
|
3441
3553
|
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
3442
3554
|
}
|
|
3555
|
+
},
|
|
3556
|
+
"accessoryWidgets": {
|
|
3557
|
+
"rule": "repeated",
|
|
3558
|
+
"type": "AccessoryWidget",
|
|
3559
|
+
"id": 44
|
|
3443
3560
|
}
|
|
3444
3561
|
}
|
|
3445
3562
|
},
|
|
@@ -3569,6 +3686,21 @@
|
|
|
3569
3686
|
}
|
|
3570
3687
|
}
|
|
3571
3688
|
},
|
|
3689
|
+
"AccessoryWidget": {
|
|
3690
|
+
"oneofs": {
|
|
3691
|
+
"action": {
|
|
3692
|
+
"oneof": [
|
|
3693
|
+
"buttonList"
|
|
3694
|
+
]
|
|
3695
|
+
}
|
|
3696
|
+
},
|
|
3697
|
+
"fields": {
|
|
3698
|
+
"buttonList": {
|
|
3699
|
+
"type": "google.apps.card.v1.ButtonList",
|
|
3700
|
+
"id": 1
|
|
3701
|
+
}
|
|
3702
|
+
}
|
|
3703
|
+
},
|
|
3572
3704
|
"GetMessageRequest": {
|
|
3573
3705
|
"fields": {
|
|
3574
3706
|
"name": {
|