@juzi/wechaty-grpc 1.0.74 → 1.0.75
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/dist/cjs/out/wechaty/puppet/wecom_pb.d.ts +150 -0
- package/dist/cjs/out/wechaty/puppet/wecom_pb.js +1178 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +322 -208
- package/dist/cjs/out/wechaty/puppet.swagger.json +447 -264
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +51 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +99 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +120 -0
- package/dist/cjs/proto/wechaty/puppet/wecom.proto +27 -0
- package/dist/cjs/proto/wechaty/puppet.proto +19 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +15 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/wecom_pb.d.ts +150 -0
- package/dist/esm/out/wechaty/puppet/wecom_pb.js +1178 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +322 -208
- package/dist/esm/out/wechaty/puppet.swagger.json +447 -264
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +51 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +99 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +120 -0
- package/dist/esm/proto/wechaty/puppet/wecom.proto +27 -0
- package/dist/esm/proto/wechaty/puppet.proto +19 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +15 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/wecom_pb.d.ts +150 -0
- package/out/wechaty/puppet/wecom_pb.js +1178 -0
- package/out/wechaty/puppet.openapi.yaml +322 -208
- package/out/wechaty/puppet.swagger.json +447 -264
- package/out/wechaty/puppet_grpc_pb.d.ts +51 -0
- package/out/wechaty/puppet_grpc_pb.js +99 -0
- package/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/out/wechaty/puppet_pb_service.js +120 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Wechaty Puppet Service OpenAPI Specification",
|
|
5
5
|
"description": "Wechaty is a Conversational RPA SDK for chatbot makers. With only 6 lines of code, you can create a bot on the most popular IMs like WeChat, Whatsapp, WeCom, Gitter, etc.\n\nWechaty Puppet Service is the RESTful API for Wechaty API, which is build on top of the Wechaty Puppet Abstraction and the gRPC proto definition.",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.75",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -322,16 +322,7 @@
|
|
|
322
322
|
"in": "body",
|
|
323
323
|
"required": true,
|
|
324
324
|
"schema": {
|
|
325
|
-
"
|
|
326
|
-
"properties": {
|
|
327
|
-
"corporationRemarkStringValueDeprecated": {
|
|
328
|
-
"type": "string",
|
|
329
|
-
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
330
|
-
},
|
|
331
|
-
"corporationRemark": {
|
|
332
|
-
"type": "string"
|
|
333
|
-
}
|
|
334
|
-
}
|
|
325
|
+
"$ref": "#/definitions/PuppetContactCorporationRemarkBody"
|
|
335
326
|
}
|
|
336
327
|
}
|
|
337
328
|
],
|
|
@@ -369,7 +360,7 @@
|
|
|
369
360
|
"in": "body",
|
|
370
361
|
"required": true,
|
|
371
362
|
"schema": {
|
|
372
|
-
"
|
|
363
|
+
"$ref": "#/definitions/PuppetContactDeleteBody"
|
|
373
364
|
}
|
|
374
365
|
}
|
|
375
366
|
],
|
|
@@ -407,16 +398,7 @@
|
|
|
407
398
|
"in": "body",
|
|
408
399
|
"required": true,
|
|
409
400
|
"schema": {
|
|
410
|
-
"
|
|
411
|
-
"properties": {
|
|
412
|
-
"descriptionStringValueDeprecated": {
|
|
413
|
-
"type": "string",
|
|
414
|
-
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
415
|
-
},
|
|
416
|
-
"description": {
|
|
417
|
-
"type": "string"
|
|
418
|
-
}
|
|
419
|
-
}
|
|
401
|
+
"$ref": "#/definitions/PuppetContactDescriptionBody"
|
|
420
402
|
}
|
|
421
403
|
}
|
|
422
404
|
],
|
|
@@ -454,15 +436,7 @@
|
|
|
454
436
|
"in": "body",
|
|
455
437
|
"required": true,
|
|
456
438
|
"schema": {
|
|
457
|
-
"
|
|
458
|
-
"properties": {
|
|
459
|
-
"phones": {
|
|
460
|
-
"type": "array",
|
|
461
|
-
"items": {
|
|
462
|
-
"type": "string"
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
}
|
|
439
|
+
"$ref": "#/definitions/PuppetContactPhoneBody"
|
|
466
440
|
}
|
|
467
441
|
}
|
|
468
442
|
],
|
|
@@ -562,17 +536,7 @@
|
|
|
562
536
|
"in": "body",
|
|
563
537
|
"required": true,
|
|
564
538
|
"schema": {
|
|
565
|
-
"
|
|
566
|
-
"properties": {
|
|
567
|
-
"aliasStringValueDeprecated": {
|
|
568
|
-
"type": "string",
|
|
569
|
-
"description": "DEPRECATED, will be removed after Dec 31, 2022",
|
|
570
|
-
"title": "nullable"
|
|
571
|
-
},
|
|
572
|
-
"alias": {
|
|
573
|
-
"type": "string"
|
|
574
|
-
}
|
|
575
|
-
}
|
|
539
|
+
"$ref": "#/definitions/PuppetContactAliasBody"
|
|
576
540
|
}
|
|
577
541
|
}
|
|
578
542
|
],
|
|
@@ -701,98 +665,7 @@
|
|
|
701
665
|
"in": "body",
|
|
702
666
|
"required": true,
|
|
703
667
|
"schema": {
|
|
704
|
-
"
|
|
705
|
-
"properties": {
|
|
706
|
-
"gender": {
|
|
707
|
-
"$ref": "#/definitions/puppetContactGender",
|
|
708
|
-
"title": "性别"
|
|
709
|
-
},
|
|
710
|
-
"type": {
|
|
711
|
-
"$ref": "#/definitions/puppetContactType",
|
|
712
|
-
"title": "类型"
|
|
713
|
-
},
|
|
714
|
-
"name": {
|
|
715
|
-
"type": "string",
|
|
716
|
-
"title": "姓名"
|
|
717
|
-
},
|
|
718
|
-
"avatar": {
|
|
719
|
-
"type": "string",
|
|
720
|
-
"title": "头像"
|
|
721
|
-
},
|
|
722
|
-
"address": {
|
|
723
|
-
"type": "string",
|
|
724
|
-
"title": "地址"
|
|
725
|
-
},
|
|
726
|
-
"alias": {
|
|
727
|
-
"type": "string",
|
|
728
|
-
"title": "别名,即备注"
|
|
729
|
-
},
|
|
730
|
-
"city": {
|
|
731
|
-
"type": "string",
|
|
732
|
-
"title": "城市"
|
|
733
|
-
},
|
|
734
|
-
"friend": {
|
|
735
|
-
"type": "boolean",
|
|
736
|
-
"title": "是否为好友"
|
|
737
|
-
},
|
|
738
|
-
"province": {
|
|
739
|
-
"type": "string",
|
|
740
|
-
"title": "省份"
|
|
741
|
-
},
|
|
742
|
-
"signature": {
|
|
743
|
-
"type": "string",
|
|
744
|
-
"title": "签名"
|
|
745
|
-
},
|
|
746
|
-
"star": {
|
|
747
|
-
"type": "boolean",
|
|
748
|
-
"title": "是否为特别好友"
|
|
749
|
-
},
|
|
750
|
-
"weixin": {
|
|
751
|
-
"type": "string",
|
|
752
|
-
"title": "IM专属id,在企微环境中特指weixinId"
|
|
753
|
-
},
|
|
754
|
-
"corporation": {
|
|
755
|
-
"type": "string",
|
|
756
|
-
"title": "企业"
|
|
757
|
-
},
|
|
758
|
-
"title": {
|
|
759
|
-
"type": "string",
|
|
760
|
-
"title": "头衔"
|
|
761
|
-
},
|
|
762
|
-
"description": {
|
|
763
|
-
"type": "string",
|
|
764
|
-
"title": "描述"
|
|
765
|
-
},
|
|
766
|
-
"coworker": {
|
|
767
|
-
"type": "boolean",
|
|
768
|
-
"title": "是否为同事"
|
|
769
|
-
},
|
|
770
|
-
"phones": {
|
|
771
|
-
"type": "array",
|
|
772
|
-
"items": {
|
|
773
|
-
"type": "string"
|
|
774
|
-
},
|
|
775
|
-
"title": "电话号码,企微中最多5个"
|
|
776
|
-
},
|
|
777
|
-
"additionalInfo": {
|
|
778
|
-
"type": "string",
|
|
779
|
-
"title": "额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。"
|
|
780
|
-
},
|
|
781
|
-
"tagIds": {
|
|
782
|
-
"type": "array",
|
|
783
|
-
"items": {
|
|
784
|
-
"type": "string"
|
|
785
|
-
},
|
|
786
|
-
"title": "标签(的id)"
|
|
787
|
-
},
|
|
788
|
-
"clearPhones": {
|
|
789
|
-
"type": "boolean",
|
|
790
|
-
"description": "*\n The protobuf encoding doesn't distinguish between these two cases. (undefined vs [])\n Since protobuf is language-agnostic,\n it doesn't understand the conceptual nuance of \"undefined\" versus \"[]\" of Javascript."
|
|
791
|
-
},
|
|
792
|
-
"clearTagIds": {
|
|
793
|
-
"type": "boolean"
|
|
794
|
-
}
|
|
795
|
-
}
|
|
668
|
+
"$ref": "#/definitions/PuppetContactPayloadModifyBody"
|
|
796
669
|
}
|
|
797
670
|
}
|
|
798
671
|
],
|
|
@@ -832,12 +705,7 @@
|
|
|
832
705
|
"in": "body",
|
|
833
706
|
"required": true,
|
|
834
707
|
"schema": {
|
|
835
|
-
"
|
|
836
|
-
"properties": {
|
|
837
|
-
"hasRead": {
|
|
838
|
-
"type": "boolean"
|
|
839
|
-
}
|
|
840
|
-
}
|
|
708
|
+
"$ref": "#/definitions/PuppetConversationReadBody"
|
|
841
709
|
}
|
|
842
710
|
}
|
|
843
711
|
],
|
|
@@ -875,12 +743,7 @@
|
|
|
875
743
|
"in": "body",
|
|
876
744
|
"required": true,
|
|
877
745
|
"schema": {
|
|
878
|
-
"
|
|
879
|
-
"properties": {
|
|
880
|
-
"channel": {
|
|
881
|
-
"$ref": "#/definitions/puppetChannelPayload"
|
|
882
|
-
}
|
|
883
|
-
}
|
|
746
|
+
"$ref": "#/definitions/PuppetMessageSendChannelBody"
|
|
884
747
|
}
|
|
885
748
|
}
|
|
886
749
|
],
|
|
@@ -918,12 +781,7 @@
|
|
|
918
781
|
"in": "body",
|
|
919
782
|
"required": true,
|
|
920
783
|
"schema": {
|
|
921
|
-
"
|
|
922
|
-
"properties": {
|
|
923
|
-
"contactId": {
|
|
924
|
-
"type": "string"
|
|
925
|
-
}
|
|
926
|
-
}
|
|
784
|
+
"$ref": "#/definitions/PuppetMessageSendContactBody"
|
|
927
785
|
}
|
|
928
786
|
}
|
|
929
787
|
],
|
|
@@ -1010,12 +868,7 @@
|
|
|
1010
868
|
"in": "body",
|
|
1011
869
|
"required": true,
|
|
1012
870
|
"schema": {
|
|
1013
|
-
"
|
|
1014
|
-
"properties": {
|
|
1015
|
-
"location": {
|
|
1016
|
-
"$ref": "#/definitions/puppetLocationPayload"
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
871
|
+
"$ref": "#/definitions/PuppetMessageSendLocationBody"
|
|
1019
872
|
}
|
|
1020
873
|
}
|
|
1021
874
|
],
|
|
@@ -1054,18 +907,7 @@
|
|
|
1054
907
|
"in": "body",
|
|
1055
908
|
"required": true,
|
|
1056
909
|
"schema": {
|
|
1057
|
-
"
|
|
1058
|
-
"properties": {
|
|
1059
|
-
"miniProgramDeprecated": {
|
|
1060
|
-
"type": "string",
|
|
1061
|
-
"description": "deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022",
|
|
1062
|
-
"title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
|
|
1063
|
-
},
|
|
1064
|
-
"miniProgram": {
|
|
1065
|
-
"$ref": "#/definitions/puppetMiniProgramPayload",
|
|
1066
|
-
"title": "小程序payload"
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
910
|
+
"$ref": "#/definitions/PuppetMessageSendMiniProgramBody"
|
|
1069
911
|
}
|
|
1070
912
|
}
|
|
1071
913
|
],
|
|
@@ -1104,25 +946,7 @@
|
|
|
1104
946
|
"in": "body",
|
|
1105
947
|
"required": true,
|
|
1106
948
|
"schema": {
|
|
1107
|
-
"
|
|
1108
|
-
"properties": {
|
|
1109
|
-
"text": {
|
|
1110
|
-
"type": "string",
|
|
1111
|
-
"title": "文本内容"
|
|
1112
|
-
},
|
|
1113
|
-
"mentionalIds": {
|
|
1114
|
-
"type": "array",
|
|
1115
|
-
"items": {
|
|
1116
|
-
"type": "string"
|
|
1117
|
-
},
|
|
1118
|
-
"title": "@人id列表"
|
|
1119
|
-
},
|
|
1120
|
-
"quoteId": {
|
|
1121
|
-
"type": "string",
|
|
1122
|
-
"title": "引用消息的id"
|
|
1123
|
-
}
|
|
1124
|
-
},
|
|
1125
|
-
"title": "发文本消息"
|
|
949
|
+
"$ref": "#/definitions/PuppetMessageSendTextBody"
|
|
1126
950
|
}
|
|
1127
951
|
}
|
|
1128
952
|
],
|
|
@@ -1161,18 +985,7 @@
|
|
|
1161
985
|
"in": "body",
|
|
1162
986
|
"required": true,
|
|
1163
987
|
"schema": {
|
|
1164
|
-
"
|
|
1165
|
-
"properties": {
|
|
1166
|
-
"urlLinkDeprecated": {
|
|
1167
|
-
"type": "string",
|
|
1168
|
-
"description": "deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022",
|
|
1169
|
-
"title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
|
|
1170
|
-
},
|
|
1171
|
-
"urlLink": {
|
|
1172
|
-
"$ref": "#/definitions/puppetUrlLinkPayload",
|
|
1173
|
-
"title": "链接payload"
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
988
|
+
"$ref": "#/definitions/PuppetMessageSendUrlBody"
|
|
1176
989
|
}
|
|
1177
990
|
}
|
|
1178
991
|
],
|
|
@@ -1420,23 +1233,7 @@
|
|
|
1420
1233
|
"in": "body",
|
|
1421
1234
|
"required": true,
|
|
1422
1235
|
"schema": {
|
|
1423
|
-
"
|
|
1424
|
-
"properties": {
|
|
1425
|
-
"hello": {
|
|
1426
|
-
"type": "string"
|
|
1427
|
-
},
|
|
1428
|
-
"sourceRoomIdStringValueDeprecated": {
|
|
1429
|
-
"type": "string",
|
|
1430
|
-
"title": "Deprecated: will be removed after Dec 31, 2022"
|
|
1431
|
-
},
|
|
1432
|
-
"sourceContactIdStringValueDeprecated": {
|
|
1433
|
-
"type": "string",
|
|
1434
|
-
"title": "Deprecated: will be removed after Dec 31, 2022"
|
|
1435
|
-
},
|
|
1436
|
-
"referrer": {
|
|
1437
|
-
"$ref": "#/definitions/puppetReferrer"
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1236
|
+
"$ref": "#/definitions/PuppetFriendshipAddBody"
|
|
1440
1237
|
}
|
|
1441
1238
|
}
|
|
1442
1239
|
],
|
|
@@ -2740,17 +2537,7 @@
|
|
|
2740
2537
|
"in": "body",
|
|
2741
2538
|
"required": true,
|
|
2742
2539
|
"schema": {
|
|
2743
|
-
"
|
|
2744
|
-
"properties": {
|
|
2745
|
-
"textStringValueDeprecated": {
|
|
2746
|
-
"type": "string",
|
|
2747
|
-
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
2748
|
-
},
|
|
2749
|
-
"text": {
|
|
2750
|
-
"type": "string"
|
|
2751
|
-
}
|
|
2752
|
-
},
|
|
2753
|
-
"title": "群公告"
|
|
2540
|
+
"$ref": "#/definitions/PuppetRoomAnnounceBody"
|
|
2754
2541
|
}
|
|
2755
2542
|
}
|
|
2756
2543
|
],
|
|
@@ -3866,9 +3653,351 @@
|
|
|
3866
3653
|
"Puppet"
|
|
3867
3654
|
]
|
|
3868
3655
|
}
|
|
3656
|
+
},
|
|
3657
|
+
"/wecom/roomAntiSpamStrategy/apply": {
|
|
3658
|
+
"post": {
|
|
3659
|
+
"operationId": "Puppet_ApplyRoomAntiSpamStrategy",
|
|
3660
|
+
"responses": {
|
|
3661
|
+
"200": {
|
|
3662
|
+
"description": "A successful response.",
|
|
3663
|
+
"schema": {
|
|
3664
|
+
"$ref": "#/definitions/puppetApplyRoomAntiSpamStrategyResponse"
|
|
3665
|
+
}
|
|
3666
|
+
},
|
|
3667
|
+
"default": {
|
|
3668
|
+
"description": "An unexpected error response.",
|
|
3669
|
+
"schema": {
|
|
3670
|
+
"$ref": "#/definitions/rpcStatus"
|
|
3671
|
+
}
|
|
3672
|
+
}
|
|
3673
|
+
},
|
|
3674
|
+
"parameters": [
|
|
3675
|
+
{
|
|
3676
|
+
"name": "body",
|
|
3677
|
+
"in": "body",
|
|
3678
|
+
"required": true,
|
|
3679
|
+
"schema": {
|
|
3680
|
+
"$ref": "#/definitions/puppetApplyRoomAntiSpamStrategyRequest"
|
|
3681
|
+
}
|
|
3682
|
+
}
|
|
3683
|
+
],
|
|
3684
|
+
"tags": [
|
|
3685
|
+
"Puppet"
|
|
3686
|
+
]
|
|
3687
|
+
}
|
|
3688
|
+
},
|
|
3689
|
+
"/wecom/roomAntiSpamStrategy/{strategyId}/rooms": {
|
|
3690
|
+
"get": {
|
|
3691
|
+
"operationId": "Puppet_GetRoomAntiSpamStrategyEffectRoomList",
|
|
3692
|
+
"responses": {
|
|
3693
|
+
"200": {
|
|
3694
|
+
"description": "A successful response.",
|
|
3695
|
+
"schema": {
|
|
3696
|
+
"$ref": "#/definitions/puppetGetRoomAntiSpamStrategyEffectRoomListResponse"
|
|
3697
|
+
}
|
|
3698
|
+
},
|
|
3699
|
+
"default": {
|
|
3700
|
+
"description": "An unexpected error response.",
|
|
3701
|
+
"schema": {
|
|
3702
|
+
"$ref": "#/definitions/rpcStatus"
|
|
3703
|
+
}
|
|
3704
|
+
}
|
|
3705
|
+
},
|
|
3706
|
+
"parameters": [
|
|
3707
|
+
{
|
|
3708
|
+
"name": "strategyId",
|
|
3709
|
+
"in": "path",
|
|
3710
|
+
"required": true,
|
|
3711
|
+
"type": "string"
|
|
3712
|
+
}
|
|
3713
|
+
],
|
|
3714
|
+
"tags": [
|
|
3715
|
+
"Puppet"
|
|
3716
|
+
]
|
|
3717
|
+
}
|
|
3718
|
+
},
|
|
3719
|
+
"/wecom/roomAntiSpamStrategyList": {
|
|
3720
|
+
"get": {
|
|
3721
|
+
"operationId": "Puppet_GetRoomAntiSpamStrategyList",
|
|
3722
|
+
"responses": {
|
|
3723
|
+
"200": {
|
|
3724
|
+
"description": "A successful response.",
|
|
3725
|
+
"schema": {
|
|
3726
|
+
"$ref": "#/definitions/puppetGetRoomAntiSpamStrategyListResponse"
|
|
3727
|
+
}
|
|
3728
|
+
},
|
|
3729
|
+
"default": {
|
|
3730
|
+
"description": "An unexpected error response.",
|
|
3731
|
+
"schema": {
|
|
3732
|
+
"$ref": "#/definitions/rpcStatus"
|
|
3733
|
+
}
|
|
3734
|
+
}
|
|
3735
|
+
},
|
|
3736
|
+
"tags": [
|
|
3737
|
+
"Puppet"
|
|
3738
|
+
]
|
|
3739
|
+
}
|
|
3869
3740
|
}
|
|
3870
3741
|
},
|
|
3871
3742
|
"definitions": {
|
|
3743
|
+
"PuppetContactAliasBody": {
|
|
3744
|
+
"type": "object",
|
|
3745
|
+
"properties": {
|
|
3746
|
+
"aliasStringValueDeprecated": {
|
|
3747
|
+
"type": "string",
|
|
3748
|
+
"description": "DEPRECATED, will be removed after Dec 31, 2022",
|
|
3749
|
+
"title": "nullable"
|
|
3750
|
+
},
|
|
3751
|
+
"alias": {
|
|
3752
|
+
"type": "string"
|
|
3753
|
+
}
|
|
3754
|
+
}
|
|
3755
|
+
},
|
|
3756
|
+
"PuppetContactCorporationRemarkBody": {
|
|
3757
|
+
"type": "object",
|
|
3758
|
+
"properties": {
|
|
3759
|
+
"corporationRemarkStringValueDeprecated": {
|
|
3760
|
+
"type": "string",
|
|
3761
|
+
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
3762
|
+
},
|
|
3763
|
+
"corporationRemark": {
|
|
3764
|
+
"type": "string"
|
|
3765
|
+
}
|
|
3766
|
+
}
|
|
3767
|
+
},
|
|
3768
|
+
"PuppetContactDeleteBody": {
|
|
3769
|
+
"type": "object"
|
|
3770
|
+
},
|
|
3771
|
+
"PuppetContactDescriptionBody": {
|
|
3772
|
+
"type": "object",
|
|
3773
|
+
"properties": {
|
|
3774
|
+
"descriptionStringValueDeprecated": {
|
|
3775
|
+
"type": "string",
|
|
3776
|
+
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
3777
|
+
},
|
|
3778
|
+
"description": {
|
|
3779
|
+
"type": "string"
|
|
3780
|
+
}
|
|
3781
|
+
}
|
|
3782
|
+
},
|
|
3783
|
+
"PuppetContactPayloadModifyBody": {
|
|
3784
|
+
"type": "object",
|
|
3785
|
+
"properties": {
|
|
3786
|
+
"gender": {
|
|
3787
|
+
"$ref": "#/definitions/puppetContactGender",
|
|
3788
|
+
"title": "性别"
|
|
3789
|
+
},
|
|
3790
|
+
"type": {
|
|
3791
|
+
"$ref": "#/definitions/puppetContactType",
|
|
3792
|
+
"title": "类型"
|
|
3793
|
+
},
|
|
3794
|
+
"name": {
|
|
3795
|
+
"type": "string",
|
|
3796
|
+
"title": "姓名"
|
|
3797
|
+
},
|
|
3798
|
+
"avatar": {
|
|
3799
|
+
"type": "string",
|
|
3800
|
+
"title": "头像"
|
|
3801
|
+
},
|
|
3802
|
+
"address": {
|
|
3803
|
+
"type": "string",
|
|
3804
|
+
"title": "地址"
|
|
3805
|
+
},
|
|
3806
|
+
"alias": {
|
|
3807
|
+
"type": "string",
|
|
3808
|
+
"title": "别名,即备注"
|
|
3809
|
+
},
|
|
3810
|
+
"city": {
|
|
3811
|
+
"type": "string",
|
|
3812
|
+
"title": "城市"
|
|
3813
|
+
},
|
|
3814
|
+
"friend": {
|
|
3815
|
+
"type": "boolean",
|
|
3816
|
+
"title": "是否为好友"
|
|
3817
|
+
},
|
|
3818
|
+
"province": {
|
|
3819
|
+
"type": "string",
|
|
3820
|
+
"title": "省份"
|
|
3821
|
+
},
|
|
3822
|
+
"signature": {
|
|
3823
|
+
"type": "string",
|
|
3824
|
+
"title": "签名"
|
|
3825
|
+
},
|
|
3826
|
+
"star": {
|
|
3827
|
+
"type": "boolean",
|
|
3828
|
+
"title": "是否为特别好友"
|
|
3829
|
+
},
|
|
3830
|
+
"weixin": {
|
|
3831
|
+
"type": "string",
|
|
3832
|
+
"title": "IM专属id,在企微环境中特指weixinId"
|
|
3833
|
+
},
|
|
3834
|
+
"corporation": {
|
|
3835
|
+
"type": "string",
|
|
3836
|
+
"title": "企业"
|
|
3837
|
+
},
|
|
3838
|
+
"title": {
|
|
3839
|
+
"type": "string",
|
|
3840
|
+
"title": "头衔"
|
|
3841
|
+
},
|
|
3842
|
+
"description": {
|
|
3843
|
+
"type": "string",
|
|
3844
|
+
"title": "描述"
|
|
3845
|
+
},
|
|
3846
|
+
"coworker": {
|
|
3847
|
+
"type": "boolean",
|
|
3848
|
+
"title": "是否为同事"
|
|
3849
|
+
},
|
|
3850
|
+
"phones": {
|
|
3851
|
+
"type": "array",
|
|
3852
|
+
"items": {
|
|
3853
|
+
"type": "string"
|
|
3854
|
+
},
|
|
3855
|
+
"title": "电话号码,企微中最多5个"
|
|
3856
|
+
},
|
|
3857
|
+
"additionalInfo": {
|
|
3858
|
+
"type": "string",
|
|
3859
|
+
"title": "额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。"
|
|
3860
|
+
},
|
|
3861
|
+
"tagIds": {
|
|
3862
|
+
"type": "array",
|
|
3863
|
+
"items": {
|
|
3864
|
+
"type": "string"
|
|
3865
|
+
},
|
|
3866
|
+
"title": "标签(的id)"
|
|
3867
|
+
},
|
|
3868
|
+
"clearPhones": {
|
|
3869
|
+
"type": "boolean",
|
|
3870
|
+
"description": "*\n The protobuf encoding doesn't distinguish between these two cases. (undefined vs [])\n Since protobuf is language-agnostic,\n it doesn't understand the conceptual nuance of \"undefined\" versus \"[]\" of Javascript."
|
|
3871
|
+
},
|
|
3872
|
+
"clearTagIds": {
|
|
3873
|
+
"type": "boolean"
|
|
3874
|
+
}
|
|
3875
|
+
}
|
|
3876
|
+
},
|
|
3877
|
+
"PuppetContactPhoneBody": {
|
|
3878
|
+
"type": "object",
|
|
3879
|
+
"properties": {
|
|
3880
|
+
"phones": {
|
|
3881
|
+
"type": "array",
|
|
3882
|
+
"items": {
|
|
3883
|
+
"type": "string"
|
|
3884
|
+
}
|
|
3885
|
+
}
|
|
3886
|
+
}
|
|
3887
|
+
},
|
|
3888
|
+
"PuppetConversationReadBody": {
|
|
3889
|
+
"type": "object",
|
|
3890
|
+
"properties": {
|
|
3891
|
+
"hasRead": {
|
|
3892
|
+
"type": "boolean"
|
|
3893
|
+
}
|
|
3894
|
+
}
|
|
3895
|
+
},
|
|
3896
|
+
"PuppetFriendshipAddBody": {
|
|
3897
|
+
"type": "object",
|
|
3898
|
+
"properties": {
|
|
3899
|
+
"hello": {
|
|
3900
|
+
"type": "string"
|
|
3901
|
+
},
|
|
3902
|
+
"sourceRoomIdStringValueDeprecated": {
|
|
3903
|
+
"type": "string",
|
|
3904
|
+
"title": "Deprecated: will be removed after Dec 31, 2022"
|
|
3905
|
+
},
|
|
3906
|
+
"sourceContactIdStringValueDeprecated": {
|
|
3907
|
+
"type": "string",
|
|
3908
|
+
"title": "Deprecated: will be removed after Dec 31, 2022"
|
|
3909
|
+
},
|
|
3910
|
+
"referrer": {
|
|
3911
|
+
"$ref": "#/definitions/puppetReferrer"
|
|
3912
|
+
}
|
|
3913
|
+
}
|
|
3914
|
+
},
|
|
3915
|
+
"PuppetMessageSendChannelBody": {
|
|
3916
|
+
"type": "object",
|
|
3917
|
+
"properties": {
|
|
3918
|
+
"channel": {
|
|
3919
|
+
"$ref": "#/definitions/puppetChannelPayload"
|
|
3920
|
+
}
|
|
3921
|
+
}
|
|
3922
|
+
},
|
|
3923
|
+
"PuppetMessageSendContactBody": {
|
|
3924
|
+
"type": "object",
|
|
3925
|
+
"properties": {
|
|
3926
|
+
"contactId": {
|
|
3927
|
+
"type": "string"
|
|
3928
|
+
}
|
|
3929
|
+
}
|
|
3930
|
+
},
|
|
3931
|
+
"PuppetMessageSendLocationBody": {
|
|
3932
|
+
"type": "object",
|
|
3933
|
+
"properties": {
|
|
3934
|
+
"location": {
|
|
3935
|
+
"$ref": "#/definitions/puppetLocationPayload"
|
|
3936
|
+
}
|
|
3937
|
+
}
|
|
3938
|
+
},
|
|
3939
|
+
"PuppetMessageSendMiniProgramBody": {
|
|
3940
|
+
"type": "object",
|
|
3941
|
+
"properties": {
|
|
3942
|
+
"miniProgramDeprecated": {
|
|
3943
|
+
"type": "string",
|
|
3944
|
+
"description": "deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022",
|
|
3945
|
+
"title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
|
|
3946
|
+
},
|
|
3947
|
+
"miniProgram": {
|
|
3948
|
+
"$ref": "#/definitions/puppetMiniProgramPayload",
|
|
3949
|
+
"title": "小程序payload"
|
|
3950
|
+
}
|
|
3951
|
+
}
|
|
3952
|
+
},
|
|
3953
|
+
"PuppetMessageSendTextBody": {
|
|
3954
|
+
"type": "object",
|
|
3955
|
+
"properties": {
|
|
3956
|
+
"text": {
|
|
3957
|
+
"type": "string",
|
|
3958
|
+
"title": "文本内容"
|
|
3959
|
+
},
|
|
3960
|
+
"mentionalIds": {
|
|
3961
|
+
"type": "array",
|
|
3962
|
+
"items": {
|
|
3963
|
+
"type": "string"
|
|
3964
|
+
},
|
|
3965
|
+
"title": "@人id列表"
|
|
3966
|
+
},
|
|
3967
|
+
"quoteId": {
|
|
3968
|
+
"type": "string",
|
|
3969
|
+
"title": "引用消息的id"
|
|
3970
|
+
}
|
|
3971
|
+
},
|
|
3972
|
+
"title": "发文本消息"
|
|
3973
|
+
},
|
|
3974
|
+
"PuppetMessageSendUrlBody": {
|
|
3975
|
+
"type": "object",
|
|
3976
|
+
"properties": {
|
|
3977
|
+
"urlLinkDeprecated": {
|
|
3978
|
+
"type": "string",
|
|
3979
|
+
"description": "deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022",
|
|
3980
|
+
"title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
|
|
3981
|
+
},
|
|
3982
|
+
"urlLink": {
|
|
3983
|
+
"$ref": "#/definitions/puppetUrlLinkPayload",
|
|
3984
|
+
"title": "链接payload"
|
|
3985
|
+
}
|
|
3986
|
+
}
|
|
3987
|
+
},
|
|
3988
|
+
"PuppetRoomAnnounceBody": {
|
|
3989
|
+
"type": "object",
|
|
3990
|
+
"properties": {
|
|
3991
|
+
"textStringValueDeprecated": {
|
|
3992
|
+
"type": "string",
|
|
3993
|
+
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
3994
|
+
},
|
|
3995
|
+
"text": {
|
|
3996
|
+
"type": "string"
|
|
3997
|
+
}
|
|
3998
|
+
},
|
|
3999
|
+
"title": "群公告"
|
|
4000
|
+
},
|
|
3872
4001
|
"protobufAny": {
|
|
3873
4002
|
"type": "object",
|
|
3874
4003
|
"properties": {
|
|
@@ -3878,6 +4007,26 @@
|
|
|
3878
4007
|
},
|
|
3879
4008
|
"additionalProperties": {}
|
|
3880
4009
|
},
|
|
4010
|
+
"puppetApplyRoomAntiSpamStrategyRequest": {
|
|
4011
|
+
"type": "object",
|
|
4012
|
+
"properties": {
|
|
4013
|
+
"strategyId": {
|
|
4014
|
+
"type": "string"
|
|
4015
|
+
},
|
|
4016
|
+
"roomIds": {
|
|
4017
|
+
"type": "array",
|
|
4018
|
+
"items": {
|
|
4019
|
+
"type": "string"
|
|
4020
|
+
}
|
|
4021
|
+
},
|
|
4022
|
+
"active": {
|
|
4023
|
+
"type": "boolean"
|
|
4024
|
+
}
|
|
4025
|
+
}
|
|
4026
|
+
},
|
|
4027
|
+
"puppetApplyRoomAntiSpamStrategyResponse": {
|
|
4028
|
+
"type": "object"
|
|
4029
|
+
},
|
|
3881
4030
|
"puppetBroadcastStatus": {
|
|
3882
4031
|
"type": "string",
|
|
3883
4032
|
"enum": [
|
|
@@ -4586,6 +4735,29 @@
|
|
|
4586
4735
|
}
|
|
4587
4736
|
}
|
|
4588
4737
|
},
|
|
4738
|
+
"puppetGetRoomAntiSpamStrategyEffectRoomListResponse": {
|
|
4739
|
+
"type": "object",
|
|
4740
|
+
"properties": {
|
|
4741
|
+
"roomIds": {
|
|
4742
|
+
"type": "array",
|
|
4743
|
+
"items": {
|
|
4744
|
+
"type": "string"
|
|
4745
|
+
}
|
|
4746
|
+
}
|
|
4747
|
+
}
|
|
4748
|
+
},
|
|
4749
|
+
"puppetGetRoomAntiSpamStrategyListResponse": {
|
|
4750
|
+
"type": "object",
|
|
4751
|
+
"properties": {
|
|
4752
|
+
"strategies": {
|
|
4753
|
+
"type": "array",
|
|
4754
|
+
"items": {
|
|
4755
|
+
"type": "object",
|
|
4756
|
+
"$ref": "#/definitions/puppetRoomAntiSpamStrategy"
|
|
4757
|
+
}
|
|
4758
|
+
}
|
|
4759
|
+
}
|
|
4760
|
+
},
|
|
4589
4761
|
"puppetImageType": {
|
|
4590
4762
|
"type": "string",
|
|
4591
4763
|
"enum": [
|
|
@@ -5291,6 +5463,17 @@
|
|
|
5291
5463
|
}
|
|
5292
5464
|
}
|
|
5293
5465
|
},
|
|
5466
|
+
"puppetRoomAntiSpamStrategy": {
|
|
5467
|
+
"type": "object",
|
|
5468
|
+
"properties": {
|
|
5469
|
+
"id": {
|
|
5470
|
+
"type": "string"
|
|
5471
|
+
},
|
|
5472
|
+
"name": {
|
|
5473
|
+
"type": "string"
|
|
5474
|
+
}
|
|
5475
|
+
}
|
|
5476
|
+
},
|
|
5294
5477
|
"puppetRoomAvatarResponse": {
|
|
5295
5478
|
"type": "object",
|
|
5296
5479
|
"properties": {
|
|
@@ -5652,20 +5835,6 @@
|
|
|
5652
5835
|
}
|
|
5653
5836
|
}
|
|
5654
5837
|
},
|
|
5655
|
-
"puppetTagGroupPayload": {
|
|
5656
|
-
"type": "object",
|
|
5657
|
-
"properties": {
|
|
5658
|
-
"id": {
|
|
5659
|
-
"type": "string"
|
|
5660
|
-
},
|
|
5661
|
-
"name": {
|
|
5662
|
-
"type": "string"
|
|
5663
|
-
},
|
|
5664
|
-
"type": {
|
|
5665
|
-
"$ref": "#/definitions/puppetTagType"
|
|
5666
|
-
}
|
|
5667
|
-
}
|
|
5668
|
-
},
|
|
5669
5838
|
"puppetTagGroupPayloadRequest": {
|
|
5670
5839
|
"type": "object",
|
|
5671
5840
|
"properties": {
|
|
@@ -5678,7 +5847,7 @@
|
|
|
5678
5847
|
"type": "object",
|
|
5679
5848
|
"properties": {
|
|
5680
5849
|
"payload": {
|
|
5681
|
-
"$ref": "#/definitions/
|
|
5850
|
+
"$ref": "#/definitions/wechatypuppetTagGroupPayload"
|
|
5682
5851
|
}
|
|
5683
5852
|
}
|
|
5684
5853
|
},
|
|
@@ -5693,25 +5862,6 @@
|
|
|
5693
5862
|
}
|
|
5694
5863
|
}
|
|
5695
5864
|
},
|
|
5696
|
-
"puppetTagPayload": {
|
|
5697
|
-
"type": "object",
|
|
5698
|
-
"properties": {
|
|
5699
|
-
"id": {
|
|
5700
|
-
"type": "string"
|
|
5701
|
-
},
|
|
5702
|
-
"name": {
|
|
5703
|
-
"type": "string",
|
|
5704
|
-
"title": "标签名"
|
|
5705
|
-
},
|
|
5706
|
-
"groupId": {
|
|
5707
|
-
"type": "string",
|
|
5708
|
-
"title": "所属标签组的id,可为空"
|
|
5709
|
-
},
|
|
5710
|
-
"type": {
|
|
5711
|
-
"$ref": "#/definitions/puppetTagType"
|
|
5712
|
-
}
|
|
5713
|
-
}
|
|
5714
|
-
},
|
|
5715
5865
|
"puppetTagPayloadRequest": {
|
|
5716
5866
|
"type": "object",
|
|
5717
5867
|
"properties": {
|
|
@@ -5724,7 +5874,7 @@
|
|
|
5724
5874
|
"type": "object",
|
|
5725
5875
|
"properties": {
|
|
5726
5876
|
"payload": {
|
|
5727
|
-
"$ref": "#/definitions/
|
|
5877
|
+
"$ref": "#/definitions/wechatypuppetTagPayload"
|
|
5728
5878
|
}
|
|
5729
5879
|
}
|
|
5730
5880
|
},
|
|
@@ -5862,6 +6012,39 @@
|
|
|
5862
6012
|
}
|
|
5863
6013
|
}
|
|
5864
6014
|
}
|
|
6015
|
+
},
|
|
6016
|
+
"wechatypuppetTagGroupPayload": {
|
|
6017
|
+
"type": "object",
|
|
6018
|
+
"properties": {
|
|
6019
|
+
"id": {
|
|
6020
|
+
"type": "string"
|
|
6021
|
+
},
|
|
6022
|
+
"name": {
|
|
6023
|
+
"type": "string"
|
|
6024
|
+
},
|
|
6025
|
+
"type": {
|
|
6026
|
+
"$ref": "#/definitions/puppetTagType"
|
|
6027
|
+
}
|
|
6028
|
+
}
|
|
6029
|
+
},
|
|
6030
|
+
"wechatypuppetTagPayload": {
|
|
6031
|
+
"type": "object",
|
|
6032
|
+
"properties": {
|
|
6033
|
+
"id": {
|
|
6034
|
+
"type": "string"
|
|
6035
|
+
},
|
|
6036
|
+
"name": {
|
|
6037
|
+
"type": "string",
|
|
6038
|
+
"title": "标签名"
|
|
6039
|
+
},
|
|
6040
|
+
"groupId": {
|
|
6041
|
+
"type": "string",
|
|
6042
|
+
"title": "所属标签组的id,可为空"
|
|
6043
|
+
},
|
|
6044
|
+
"type": {
|
|
6045
|
+
"$ref": "#/definitions/puppetTagType"
|
|
6046
|
+
}
|
|
6047
|
+
}
|
|
5865
6048
|
}
|
|
5866
6049
|
}
|
|
5867
6050
|
}
|