@juzi/wechaty-grpc 1.0.66 → 1.0.68

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.
Files changed (67) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs +1 -0
  2. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
  3. package/dist/cjs/out/wechaty/puppet/call_pb.d.ts +3 -2
  4. package/dist/cjs/out/wechaty/puppet/call_pb.js +3 -2
  5. package/dist/cjs/out/wechaty/puppet/chat-history_grpc_pb.js +1 -0
  6. package/dist/cjs/out/wechaty/puppet/chat-history_pb.d.ts +121 -0
  7. package/dist/cjs/out/wechaty/puppet/chat-history_pb.js +839 -0
  8. package/dist/cjs/out/wechaty/puppet/chat-history_pb_service.d.ts +3 -0
  9. package/dist/cjs/out/wechaty/puppet/chat-history_pb_service.js +3 -0
  10. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +49 -0
  11. package/dist/cjs/out/wechaty/puppet/message_pb.js +394 -2
  12. package/dist/cjs/out/wechaty/puppet.openapi.yaml +103 -3
  13. package/dist/cjs/out/wechaty/puppet.swagger.json +139 -4
  14. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  15. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
  16. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
  17. package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
  18. package/dist/cjs/proto/wechaty/puppet/call.proto +3 -2
  19. package/dist/cjs/proto/wechaty/puppet/chat-history.proto +42 -0
  20. package/dist/cjs/proto/wechaty/puppet/message.proto +11 -1
  21. package/dist/cjs/proto/wechaty/puppet.proto +5 -0
  22. package/dist/cjs/src/package-json.js +1 -1
  23. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  24. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  25. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  26. package/dist/esm/commonjs/generated/puppet.cjs +1 -0
  27. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
  28. package/dist/esm/out/wechaty/puppet/call_pb.d.ts +3 -2
  29. package/dist/esm/out/wechaty/puppet/call_pb.js +3 -2
  30. package/dist/esm/out/wechaty/puppet/chat-history_grpc_pb.js +1 -0
  31. package/dist/esm/out/wechaty/puppet/chat-history_pb.d.ts +121 -0
  32. package/dist/esm/out/wechaty/puppet/chat-history_pb.js +839 -0
  33. package/dist/esm/out/wechaty/puppet/chat-history_pb_service.d.ts +3 -0
  34. package/dist/esm/out/wechaty/puppet/chat-history_pb_service.js +3 -0
  35. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +49 -0
  36. package/dist/esm/out/wechaty/puppet/message_pb.js +394 -2
  37. package/dist/esm/out/wechaty/puppet.openapi.yaml +103 -3
  38. package/dist/esm/out/wechaty/puppet.swagger.json +139 -4
  39. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  40. package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
  41. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
  42. package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
  43. package/dist/esm/proto/wechaty/puppet/call.proto +3 -2
  44. package/dist/esm/proto/wechaty/puppet/chat-history.proto +42 -0
  45. package/dist/esm/proto/wechaty/puppet/message.proto +11 -1
  46. package/dist/esm/proto/wechaty/puppet.proto +5 -0
  47. package/dist/esm/src/package-json.js +1 -1
  48. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  49. package/dist/esm/tests/puppet-server-impl.js +5 -0
  50. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  51. package/out/wechaty/puppet/call_pb.d.ts +3 -2
  52. package/out/wechaty/puppet/call_pb.js +3 -2
  53. package/out/wechaty/puppet/chat-history_grpc_pb.js +1 -0
  54. package/out/wechaty/puppet/chat-history_pb.d.ts +121 -0
  55. package/out/wechaty/puppet/chat-history_pb.js +839 -0
  56. package/out/wechaty/puppet/chat-history_pb_service.d.ts +3 -0
  57. package/out/wechaty/puppet/chat-history_pb_service.js +3 -0
  58. package/out/wechaty/puppet/message_pb.d.ts +49 -0
  59. package/out/wechaty/puppet/message_pb.js +394 -2
  60. package/out/wechaty/puppet.openapi.yaml +103 -3
  61. package/out/wechaty/puppet.swagger.json +139 -4
  62. package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  63. package/out/wechaty/puppet_grpc_pb.js +33 -0
  64. package/out/wechaty/puppet_pb_service.d.ts +19 -0
  65. package/out/wechaty/puppet_pb_service.js +40 -0
  66. package/package.json +1 -1
  67. package/src/package-json.ts +1 -1
@@ -20,6 +20,7 @@ const puppetFileList = [
20
20
  '../../out/wechaty/puppet/util_pb.js',
21
21
  '../../out/wechaty/puppet/verify-code_pb.js',
22
22
  '../../out/wechaty/puppet/call_pb.js',
23
+ '../../out/wechaty/puppet/chat-history_pb.js',
23
24
 
24
25
  '../../out/wechaty/puppet_grpc_pb.js',
25
26
  '../../out/wechaty/puppet_pb.js',
@@ -42,6 +42,7 @@ export * from '../../out/wechaty/puppet/conversation_pb.js'
42
42
  export * from '../../out/wechaty/puppet/util_pb.js'
43
43
  export * from '../../out/wechaty/puppet/verify-code_pb.js'
44
44
  export * from '../../out/wechaty/puppet/call_pb.js'
45
+ export * from '../../out/wechaty/puppet/chat-history_pb.js'
45
46
 
46
47
  export * from '../../out/wechaty/puppet_grpc_pb.js'
47
48
  export * from '../../out/wechaty/puppet_pb.js'
@@ -53,8 +53,9 @@ export interface CallStatusMap {
53
53
  CALL_STATUS_UNKNOWN: 0;
54
54
  CALL_STATUS_CANCELED: 1;
55
55
  CALL_STATUS_REJECTED: 2;
56
- CALL_STATUS_ONGOING: 3;
57
- CALL_STATUS_ENDED: 4;
56
+ CALL_STATUS_MISSED: 3;
57
+ CALL_STATUS_ONGOING: 4;
58
+ CALL_STATUS_ENDED: 5;
58
59
  }
59
60
 
60
61
  export const CallStatus: CallStatusMap;
@@ -331,8 +331,9 @@ proto.wechaty.puppet.CallStatus = {
331
331
  CALL_STATUS_UNKNOWN: 0,
332
332
  CALL_STATUS_CANCELED: 1,
333
333
  CALL_STATUS_REJECTED: 2,
334
- CALL_STATUS_ONGOING: 3,
335
- CALL_STATUS_ENDED: 4
334
+ CALL_STATUS_MISSED: 3,
335
+ CALL_STATUS_ONGOING: 4,
336
+ CALL_STATUS_ENDED: 5
336
337
  };
337
338
 
338
339
  goog.object.extend(exports, proto.wechaty.puppet);
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,121 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/chat-history.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+ import * as wechaty_puppet_location_pb from "../../wechaty/puppet/location_pb";
6
+ import * as wechaty_puppet_mini_program_pb from "../../wechaty/puppet/mini-program_pb";
7
+ import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb";
8
+ import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
9
+
10
+ export class ChatHistoryContent extends jspb.Message {
11
+ getType(): ChatHistoryContentTypeMap[keyof ChatHistoryContentTypeMap];
12
+ setType(value: ChatHistoryContentTypeMap[keyof ChatHistoryContentTypeMap]): void;
13
+
14
+ getText(): string;
15
+ setText(value: string): void;
16
+
17
+ getFileBox(): string;
18
+ setFileBox(value: string): void;
19
+
20
+ hasLocation(): boolean;
21
+ clearLocation(): void;
22
+ getLocation(): wechaty_puppet_location_pb.LocationPayload | undefined;
23
+ setLocation(value?: wechaty_puppet_location_pb.LocationPayload): void;
24
+
25
+ hasUrlLink(): boolean;
26
+ clearUrlLink(): void;
27
+ getUrlLink(): wechaty_puppet_url_link_pb.UrlLinkPayload | undefined;
28
+ setUrlLink(value?: wechaty_puppet_url_link_pb.UrlLinkPayload): void;
29
+
30
+ hasMiniProgram(): boolean;
31
+ clearMiniProgram(): void;
32
+ getMiniProgram(): wechaty_puppet_mini_program_pb.MiniProgramPayload | undefined;
33
+ setMiniProgram(value?: wechaty_puppet_mini_program_pb.MiniProgramPayload): void;
34
+
35
+ hasChannel(): boolean;
36
+ clearChannel(): void;
37
+ getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
38
+ setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
39
+
40
+ clearChatHistoryList(): void;
41
+ getChatHistoryList(): Array<ChatHistoryPayload>;
42
+ setChatHistoryList(value: Array<ChatHistoryPayload>): void;
43
+ addChatHistory(value?: ChatHistoryPayload, index?: number): ChatHistoryPayload;
44
+
45
+ serializeBinary(): Uint8Array;
46
+ toObject(includeInstance?: boolean): ChatHistoryContent.AsObject;
47
+ static toObject(includeInstance: boolean, msg: ChatHistoryContent): ChatHistoryContent.AsObject;
48
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
49
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
50
+ static serializeBinaryToWriter(message: ChatHistoryContent, writer: jspb.BinaryWriter): void;
51
+ static deserializeBinary(bytes: Uint8Array): ChatHistoryContent;
52
+ static deserializeBinaryFromReader(message: ChatHistoryContent, reader: jspb.BinaryReader): ChatHistoryContent;
53
+ }
54
+
55
+ export namespace ChatHistoryContent {
56
+ export type AsObject = {
57
+ type: ChatHistoryContentTypeMap[keyof ChatHistoryContentTypeMap],
58
+ text: string,
59
+ fileBox: string,
60
+ location?: wechaty_puppet_location_pb.LocationPayload.AsObject,
61
+ urlLink?: wechaty_puppet_url_link_pb.UrlLinkPayload.AsObject,
62
+ miniProgram?: wechaty_puppet_mini_program_pb.MiniProgramPayload.AsObject,
63
+ channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
64
+ chatHistoryList: Array<ChatHistoryPayload.AsObject>,
65
+ }
66
+ }
67
+
68
+ export class ChatHistoryPayload extends jspb.Message {
69
+ getType(): number;
70
+ setType(value: number): void;
71
+
72
+ getAvatar(): string;
73
+ setAvatar(value: string): void;
74
+
75
+ getSenderName(): string;
76
+ setSenderName(value: string): void;
77
+
78
+ getCorpName(): string;
79
+ setCorpName(value: string): void;
80
+
81
+ getTime(): string;
82
+ setTime(value: string): void;
83
+
84
+ hasMessage(): boolean;
85
+ clearMessage(): void;
86
+ getMessage(): ChatHistoryContent | undefined;
87
+ setMessage(value?: ChatHistoryContent): void;
88
+
89
+ serializeBinary(): Uint8Array;
90
+ toObject(includeInstance?: boolean): ChatHistoryPayload.AsObject;
91
+ static toObject(includeInstance: boolean, msg: ChatHistoryPayload): ChatHistoryPayload.AsObject;
92
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
93
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
94
+ static serializeBinaryToWriter(message: ChatHistoryPayload, writer: jspb.BinaryWriter): void;
95
+ static deserializeBinary(bytes: Uint8Array): ChatHistoryPayload;
96
+ static deserializeBinaryFromReader(message: ChatHistoryPayload, reader: jspb.BinaryReader): ChatHistoryPayload;
97
+ }
98
+
99
+ export namespace ChatHistoryPayload {
100
+ export type AsObject = {
101
+ type: number,
102
+ avatar: string,
103
+ senderName: string,
104
+ corpName: string,
105
+ time: string,
106
+ message?: ChatHistoryContent.AsObject,
107
+ }
108
+ }
109
+
110
+ export interface ChatHistoryContentTypeMap {
111
+ TEXT: 0;
112
+ FILE: 1;
113
+ LOCATION: 2;
114
+ URL: 3;
115
+ MINI_PROGRAM: 4;
116
+ CHANNEL: 5;
117
+ CHAT_HISTORY: 6;
118
+ }
119
+
120
+ export const ChatHistoryContentType: ChatHistoryContentTypeMap;
121
+