@juzi/wechaty-grpc 1.0.16 → 1.0.18

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 (104) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs +2 -0
  2. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +2 -0
  3. package/dist/cjs/out/wechaty/puppet/moment_grpc_pb.js +1 -0
  4. package/dist/cjs/out/wechaty/puppet/moment_pb.d.ts +300 -0
  5. package/dist/cjs/out/wechaty/puppet/moment_pb.js +2272 -0
  6. package/dist/cjs/out/wechaty/puppet/moment_pb_service.d.ts +3 -0
  7. package/dist/cjs/out/wechaty/puppet/moment_pb_service.js +3 -0
  8. package/dist/cjs/out/wechaty/puppet/post_grpc_pb.js +1 -0
  9. package/dist/cjs/out/wechaty/puppet/post_pb.d.ts +176 -0
  10. package/dist/cjs/out/wechaty/puppet/post_pb.js +1189 -0
  11. package/dist/cjs/out/wechaty/puppet/post_pb_service.d.ts +3 -0
  12. package/dist/cjs/out/wechaty/puppet/post_pb_service.js +3 -0
  13. package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +3 -2
  14. package/dist/cjs/out/wechaty/puppet/tag_pb.js +3 -2
  15. package/dist/cjs/out/wechaty/puppet.openapi.yaml +288 -2
  16. package/dist/cjs/out/wechaty/puppet.swagger.json +446 -2
  17. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +121 -0
  18. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +238 -0
  19. package/dist/cjs/out/wechaty/puppet_pb.d.ts +2 -0
  20. package/dist/cjs/out/wechaty/puppet_pb.js +4 -0
  21. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +134 -0
  22. package/dist/cjs/out/wechaty/puppet_pb_service.js +281 -0
  23. package/dist/cjs/proto/wechaty/puppet/channel.proto +8 -8
  24. package/dist/cjs/proto/wechaty/puppet/contact.proto +29 -29
  25. package/dist/cjs/proto/wechaty/puppet/friendship.proto +14 -14
  26. package/dist/cjs/proto/wechaty/puppet/location.proto +5 -5
  27. package/dist/cjs/proto/wechaty/puppet/message.proto +42 -43
  28. package/dist/cjs/proto/wechaty/puppet/mini-program.proto +9 -9
  29. package/dist/cjs/proto/wechaty/puppet/moment.proto +66 -0
  30. package/dist/cjs/proto/wechaty/puppet/post.proto +57 -0
  31. package/dist/cjs/proto/wechaty/puppet/room-invitation.proto +8 -8
  32. package/dist/cjs/proto/wechaty/puppet/room-member.proto +4 -4
  33. package/dist/cjs/proto/wechaty/puppet/room.proto +11 -11
  34. package/dist/cjs/proto/wechaty/puppet/tag.proto +7 -6
  35. package/dist/cjs/proto/wechaty/puppet/url-link.proto +4 -4
  36. package/dist/cjs/proto/wechaty/puppet.proto +58 -0
  37. package/dist/cjs/src/package-json.js +2 -2
  38. package/dist/cjs/src/package-json.js.map +1 -1
  39. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  40. package/dist/cjs/tests/puppet-server-impl.js +35 -0
  41. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  42. package/dist/esm/commonjs/generated/puppet.cjs +2 -0
  43. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +2 -0
  44. package/dist/esm/out/wechaty/puppet/moment_grpc_pb.js +1 -0
  45. package/dist/esm/out/wechaty/puppet/moment_pb.d.ts +300 -0
  46. package/dist/esm/out/wechaty/puppet/moment_pb.js +2272 -0
  47. package/dist/esm/out/wechaty/puppet/moment_pb_service.d.ts +3 -0
  48. package/dist/esm/out/wechaty/puppet/moment_pb_service.js +3 -0
  49. package/dist/esm/out/wechaty/puppet/post_grpc_pb.js +1 -0
  50. package/dist/esm/out/wechaty/puppet/post_pb.d.ts +176 -0
  51. package/dist/esm/out/wechaty/puppet/post_pb.js +1189 -0
  52. package/dist/esm/out/wechaty/puppet/post_pb_service.d.ts +3 -0
  53. package/dist/esm/out/wechaty/puppet/post_pb_service.js +3 -0
  54. package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +3 -2
  55. package/dist/esm/out/wechaty/puppet/tag_pb.js +3 -2
  56. package/dist/esm/out/wechaty/puppet.openapi.yaml +288 -2
  57. package/dist/esm/out/wechaty/puppet.swagger.json +446 -2
  58. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +121 -0
  59. package/dist/esm/out/wechaty/puppet_grpc_pb.js +238 -0
  60. package/dist/esm/out/wechaty/puppet_pb.d.ts +2 -0
  61. package/dist/esm/out/wechaty/puppet_pb.js +4 -0
  62. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +134 -0
  63. package/dist/esm/out/wechaty/puppet_pb_service.js +281 -0
  64. package/dist/esm/proto/wechaty/puppet/channel.proto +8 -8
  65. package/dist/esm/proto/wechaty/puppet/contact.proto +29 -29
  66. package/dist/esm/proto/wechaty/puppet/friendship.proto +14 -14
  67. package/dist/esm/proto/wechaty/puppet/location.proto +5 -5
  68. package/dist/esm/proto/wechaty/puppet/message.proto +42 -43
  69. package/dist/esm/proto/wechaty/puppet/mini-program.proto +9 -9
  70. package/dist/esm/proto/wechaty/puppet/moment.proto +66 -0
  71. package/dist/esm/proto/wechaty/puppet/post.proto +57 -0
  72. package/dist/esm/proto/wechaty/puppet/room-invitation.proto +8 -8
  73. package/dist/esm/proto/wechaty/puppet/room-member.proto +4 -4
  74. package/dist/esm/proto/wechaty/puppet/room.proto +11 -11
  75. package/dist/esm/proto/wechaty/puppet/tag.proto +7 -6
  76. package/dist/esm/proto/wechaty/puppet/url-link.proto +4 -4
  77. package/dist/esm/proto/wechaty/puppet.proto +58 -0
  78. package/dist/esm/src/package-json.js +2 -2
  79. package/dist/esm/src/package-json.js.map +1 -1
  80. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  81. package/dist/esm/tests/puppet-server-impl.js +35 -0
  82. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  83. package/out/wechaty/puppet/moment_grpc_pb.js +1 -0
  84. package/out/wechaty/puppet/moment_pb.d.ts +300 -0
  85. package/out/wechaty/puppet/moment_pb.js +2272 -0
  86. package/out/wechaty/puppet/moment_pb_service.d.ts +3 -0
  87. package/out/wechaty/puppet/moment_pb_service.js +3 -0
  88. package/out/wechaty/puppet/post_grpc_pb.js +1 -0
  89. package/out/wechaty/puppet/post_pb.d.ts +176 -0
  90. package/out/wechaty/puppet/post_pb.js +1189 -0
  91. package/out/wechaty/puppet/post_pb_service.d.ts +3 -0
  92. package/out/wechaty/puppet/post_pb_service.js +3 -0
  93. package/out/wechaty/puppet/tag_pb.d.ts +3 -2
  94. package/out/wechaty/puppet/tag_pb.js +3 -2
  95. package/out/wechaty/puppet.openapi.yaml +288 -2
  96. package/out/wechaty/puppet.swagger.json +446 -2
  97. package/out/wechaty/puppet_grpc_pb.d.ts +121 -0
  98. package/out/wechaty/puppet_grpc_pb.js +238 -0
  99. package/out/wechaty/puppet_pb.d.ts +2 -0
  100. package/out/wechaty/puppet_pb.js +4 -0
  101. package/out/wechaty/puppet_pb_service.d.ts +134 -0
  102. package/out/wechaty/puppet_pb_service.js +281 -0
  103. package/package.json +1 -1
  104. package/src/package-json.ts +2 -2
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/moment.proto
3
+
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/moment.proto
3
+
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,176 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/post.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
6
+ import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb";
7
+ import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
8
+
9
+ export class PostSayable extends jspb.Message {
10
+ getType(): SayableTypeMap[keyof SayableTypeMap];
11
+ setType(value: SayableTypeMap[keyof SayableTypeMap]): void;
12
+
13
+ hasId(): boolean;
14
+ clearId(): void;
15
+ getId(): string;
16
+ setId(value: string): void;
17
+
18
+ hasText(): boolean;
19
+ clearText(): void;
20
+ getText(): string;
21
+ setText(value: string): void;
22
+
23
+ hasFileBox(): boolean;
24
+ clearFileBox(): void;
25
+ getFileBox(): string;
26
+ setFileBox(value: string): void;
27
+
28
+ hasUrlLink(): boolean;
29
+ clearUrlLink(): void;
30
+ getUrlLink(): wechaty_puppet_url_link_pb.UrlLinkPayload | undefined;
31
+ setUrlLink(value?: wechaty_puppet_url_link_pb.UrlLinkPayload): void;
32
+
33
+ hasCahnel(): boolean;
34
+ clearCahnel(): void;
35
+ getCahnel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
36
+ setCahnel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
37
+
38
+ getSayablesCase(): PostSayable.SayablesCase;
39
+ serializeBinary(): Uint8Array;
40
+ toObject(includeInstance?: boolean): PostSayable.AsObject;
41
+ static toObject(includeInstance: boolean, msg: PostSayable): PostSayable.AsObject;
42
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
43
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
44
+ static serializeBinaryToWriter(message: PostSayable, writer: jspb.BinaryWriter): void;
45
+ static deserializeBinary(bytes: Uint8Array): PostSayable;
46
+ static deserializeBinaryFromReader(message: PostSayable, reader: jspb.BinaryReader): PostSayable;
47
+ }
48
+
49
+ export namespace PostSayable {
50
+ export type AsObject = {
51
+ type: SayableTypeMap[keyof SayableTypeMap],
52
+ id: string,
53
+ text: string,
54
+ fileBox: string,
55
+ urlLink?: wechaty_puppet_url_link_pb.UrlLinkPayload.AsObject,
56
+ cahnel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
57
+ }
58
+
59
+ export enum SayablesCase {
60
+ SAYABLES_NOT_SET = 0,
61
+ ID = 2,
62
+ TEXT = 3,
63
+ FILE_BOX = 4,
64
+ URL_LINK = 5,
65
+ CAHNEL = 6,
66
+ }
67
+ }
68
+
69
+ export class PostPayloadClient extends jspb.Message {
70
+ getParentId(): string;
71
+ setParentId(value: string): void;
72
+
73
+ getRootId(): string;
74
+ setRootId(value: string): void;
75
+
76
+ getType(): PostTypeMap[keyof PostTypeMap];
77
+ setType(value: PostTypeMap[keyof PostTypeMap]): void;
78
+
79
+ clearSayableListList(): void;
80
+ getSayableListList(): Array<PostSayable>;
81
+ setSayableListList(value: Array<PostSayable>): void;
82
+ addSayableList(value?: PostSayable, index?: number): PostSayable;
83
+
84
+ serializeBinary(): Uint8Array;
85
+ toObject(includeInstance?: boolean): PostPayloadClient.AsObject;
86
+ static toObject(includeInstance: boolean, msg: PostPayloadClient): PostPayloadClient.AsObject;
87
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
88
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
89
+ static serializeBinaryToWriter(message: PostPayloadClient, writer: jspb.BinaryWriter): void;
90
+ static deserializeBinary(bytes: Uint8Array): PostPayloadClient;
91
+ static deserializeBinaryFromReader(message: PostPayloadClient, reader: jspb.BinaryReader): PostPayloadClient;
92
+ }
93
+
94
+ export namespace PostPayloadClient {
95
+ export type AsObject = {
96
+ parentId: string,
97
+ rootId: string,
98
+ type: PostTypeMap[keyof PostTypeMap],
99
+ sayableListList: Array<PostSayable.AsObject>,
100
+ }
101
+ }
102
+
103
+ export class PostPayloadServer extends jspb.Message {
104
+ getParentId(): string;
105
+ setParentId(value: string): void;
106
+
107
+ getRootId(): string;
108
+ setRootId(value: string): void;
109
+
110
+ getType(): PostTypeMap[keyof PostTypeMap];
111
+ setType(value: PostTypeMap[keyof PostTypeMap]): void;
112
+
113
+ clearSayableListList(): void;
114
+ getSayableListList(): Array<PostSayable>;
115
+ setSayableListList(value: Array<PostSayable>): void;
116
+ addSayableList(value?: PostSayable, index?: number): PostSayable;
117
+
118
+ getContactId(): string;
119
+ setContactId(value: string): void;
120
+
121
+ hasTimestamp(): boolean;
122
+ clearTimestamp(): void;
123
+ getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined;
124
+ setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): void;
125
+
126
+ getChildren(): number;
127
+ setChildren(value: number): void;
128
+
129
+ getDescendant(): number;
130
+ setDescendant(value: number): void;
131
+
132
+ getLike(): number;
133
+ setLike(value: number): void;
134
+
135
+ serializeBinary(): Uint8Array;
136
+ toObject(includeInstance?: boolean): PostPayloadServer.AsObject;
137
+ static toObject(includeInstance: boolean, msg: PostPayloadServer): PostPayloadServer.AsObject;
138
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
139
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
140
+ static serializeBinaryToWriter(message: PostPayloadServer, writer: jspb.BinaryWriter): void;
141
+ static deserializeBinary(bytes: Uint8Array): PostPayloadServer;
142
+ static deserializeBinaryFromReader(message: PostPayloadServer, reader: jspb.BinaryReader): PostPayloadServer;
143
+ }
144
+
145
+ export namespace PostPayloadServer {
146
+ export type AsObject = {
147
+ parentId: string,
148
+ rootId: string,
149
+ type: PostTypeMap[keyof PostTypeMap],
150
+ sayableListList: Array<PostSayable.AsObject>,
151
+ contactId: string,
152
+ timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject,
153
+ children: number,
154
+ descendant: number,
155
+ like: number,
156
+ }
157
+ }
158
+
159
+ export interface PostTypeMap {
160
+ POST_TYPE_UNSPECIFIED: 0;
161
+ POST_TYPE_MOMENT: 1;
162
+ POST_TYPE_CHANNEL: 2;
163
+ POST_TYPE_MESSAGE: 3;
164
+ }
165
+
166
+ export const PostType: PostTypeMap;
167
+
168
+ export interface SayableTypeMap {
169
+ SAYABLE_TYPE_TEXT: 0;
170
+ SAYABLE_TYPE_FILE: 1;
171
+ SAYABLE_TYPE_URL: 2;
172
+ SAYABLE_TYPE_CHANNEL: 3;
173
+ }
174
+
175
+ export const SayableType: SayableTypeMap;
176
+