@juzi/wechaty-grpc 1.0.107 → 1.0.109

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 (46) hide show
  1. package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +3 -0
  2. package/dist/cjs/out/wechaty/puppet/event_pb.js +4 -1
  3. package/dist/cjs/out/wechaty/puppet/wecom_pb.d.ts +174 -0
  4. package/dist/cjs/out/wechaty/puppet/wecom_pb.js +1257 -4
  5. package/dist/cjs/out/wechaty/puppet.openapi.yaml +136 -1
  6. package/dist/cjs/out/wechaty/puppet.swagger.json +180 -3
  7. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  8. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
  9. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
  10. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
  11. package/dist/cjs/proto/wechaty/puppet/event.proto +6 -0
  12. package/dist/cjs/proto/wechaty/puppet/wecom.proto +47 -0
  13. package/dist/cjs/proto/wechaty/puppet.proto +13 -0
  14. package/dist/cjs/src/package-json.js +1 -1
  15. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  16. package/dist/cjs/tests/puppet-server-impl.js +10 -0
  17. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  18. package/dist/esm/out/wechaty/puppet/event_pb.d.ts +3 -0
  19. package/dist/esm/out/wechaty/puppet/event_pb.js +4 -1
  20. package/dist/esm/out/wechaty/puppet/wecom_pb.d.ts +174 -0
  21. package/dist/esm/out/wechaty/puppet/wecom_pb.js +1257 -4
  22. package/dist/esm/out/wechaty/puppet.openapi.yaml +136 -1
  23. package/dist/esm/out/wechaty/puppet.swagger.json +180 -3
  24. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  25. package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
  26. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
  27. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
  28. package/dist/esm/proto/wechaty/puppet/event.proto +6 -0
  29. package/dist/esm/proto/wechaty/puppet/wecom.proto +47 -0
  30. package/dist/esm/proto/wechaty/puppet.proto +13 -0
  31. package/dist/esm/src/package-json.js +1 -1
  32. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  33. package/dist/esm/tests/puppet-server-impl.js +10 -0
  34. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  35. package/out/wechaty/puppet/event_pb.d.ts +3 -0
  36. package/out/wechaty/puppet/event_pb.js +4 -1
  37. package/out/wechaty/puppet/wecom_pb.d.ts +174 -0
  38. package/out/wechaty/puppet/wecom_pb.js +1257 -4
  39. package/out/wechaty/puppet.openapi.yaml +136 -1
  40. package/out/wechaty/puppet.swagger.json +180 -3
  41. package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  42. package/out/wechaty/puppet_grpc_pb.js +66 -0
  43. package/out/wechaty/puppet_pb_service.d.ts +38 -0
  44. package/out/wechaty/puppet_pb_service.js +80 -0
  45. package/package.json +1 -1
  46. package/src/package-json.ts +1 -1
@@ -81,6 +81,9 @@ export interface EventTypeMap {
81
81
  EVENT_TYPE_VERIFY_CODE: 33;
82
82
  EVENT_TYPE_VERIFY_SLIDE: 34;
83
83
  EVENT_TYPE_CALL: 35;
84
+ EVENT_TYPE_SAME_NET_VERIFY: 36;
85
+ EVENT_TYPE_ORG_BROADCAST_CREATED: 37;
86
+ EVENT_TYPE_ORG_BROADCAST_SENT: 38;
84
87
  }
85
88
 
86
89
  export const EventType: EventTypeMap;
@@ -438,7 +438,10 @@ proto.wechaty.puppet.EventType = {
438
438
  EVENT_TYPE_ROOM_ANNOUNCE: 32,
439
439
  EVENT_TYPE_VERIFY_CODE: 33,
440
440
  EVENT_TYPE_VERIFY_SLIDE: 34,
441
- EVENT_TYPE_CALL: 35
441
+ EVENT_TYPE_CALL: 35,
442
+ EVENT_TYPE_SAME_NET_VERIFY: 36,
443
+ EVENT_TYPE_ORG_BROADCAST_CREATED: 37,
444
+ EVENT_TYPE_ORG_BROADCAST_SENT: 38
442
445
  };
443
446
 
444
447
  goog.object.extend(exports, proto.wechaty.puppet);
@@ -305,6 +305,166 @@ export namespace GetCorpMessageInterceptionStrategiesResponse {
305
305
  }
306
306
  }
307
307
 
308
+ export class OrgBroadcastTarget extends jspb.Message {
309
+ getContactId(): string;
310
+ setContactId(value: string): void;
311
+
312
+ getRoomId(): string;
313
+ setRoomId(value: string): void;
314
+
315
+ getStatus(): OrgBroadcastTargetStatusMap[keyof OrgBroadcastTargetStatusMap];
316
+ setStatus(value: OrgBroadcastTargetStatusMap[keyof OrgBroadcastTargetStatusMap]): void;
317
+
318
+ serializeBinary(): Uint8Array;
319
+ toObject(includeInstance?: boolean): OrgBroadcastTarget.AsObject;
320
+ static toObject(includeInstance: boolean, msg: OrgBroadcastTarget): OrgBroadcastTarget.AsObject;
321
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
322
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
323
+ static serializeBinaryToWriter(message: OrgBroadcastTarget, writer: jspb.BinaryWriter): void;
324
+ static deserializeBinary(bytes: Uint8Array): OrgBroadcastTarget;
325
+ static deserializeBinaryFromReader(message: OrgBroadcastTarget, reader: jspb.BinaryReader): OrgBroadcastTarget;
326
+ }
327
+
328
+ export namespace OrgBroadcastTarget {
329
+ export type AsObject = {
330
+ contactId: string,
331
+ roomId: string,
332
+ status: OrgBroadcastTargetStatusMap[keyof OrgBroadcastTargetStatusMap],
333
+ }
334
+ }
335
+
336
+ export class OrgBroadcastPayloadRequest extends jspb.Message {
337
+ getId(): string;
338
+ setId(value: string): void;
339
+
340
+ serializeBinary(): Uint8Array;
341
+ toObject(includeInstance?: boolean): OrgBroadcastPayloadRequest.AsObject;
342
+ static toObject(includeInstance: boolean, msg: OrgBroadcastPayloadRequest): OrgBroadcastPayloadRequest.AsObject;
343
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
344
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
345
+ static serializeBinaryToWriter(message: OrgBroadcastPayloadRequest, writer: jspb.BinaryWriter): void;
346
+ static deserializeBinary(bytes: Uint8Array): OrgBroadcastPayloadRequest;
347
+ static deserializeBinaryFromReader(message: OrgBroadcastPayloadRequest, reader: jspb.BinaryReader): OrgBroadcastPayloadRequest;
348
+ }
349
+
350
+ export namespace OrgBroadcastPayloadRequest {
351
+ export type AsObject = {
352
+ id: string,
353
+ }
354
+ }
355
+
356
+ export class OrgBroadcastPayloadResponse extends jspb.Message {
357
+ getId(): string;
358
+ setId(value: string): void;
359
+
360
+ getSendType(): number;
361
+ setSendType(value: number): void;
362
+
363
+ getConversationType(): number;
364
+ setConversationType(value: number): void;
365
+
366
+ getCreatorId(): string;
367
+ setCreatorId(value: string): void;
368
+
369
+ getExecTime(): number;
370
+ setExecTime(value: number): void;
371
+
372
+ getStatus(): number;
373
+ setStatus(value: number): void;
374
+
375
+ getCanCancel(): boolean;
376
+ setCanCancel(value: boolean): void;
377
+
378
+ getAllowSelect(): boolean;
379
+ setAllowSelect(value: boolean): void;
380
+
381
+ getSent(): boolean;
382
+ setSent(value: boolean): void;
383
+
384
+ getTotalCount(): number;
385
+ setTotalCount(value: number): void;
386
+
387
+ getSentCount(): number;
388
+ setSentCount(value: number): void;
389
+
390
+ getContentListJson(): string;
391
+ setContentListJson(value: string): void;
392
+
393
+ clearTargetsList(): void;
394
+ getTargetsList(): Array<OrgBroadcastTarget>;
395
+ setTargetsList(value: Array<OrgBroadcastTarget>): void;
396
+ addTargets(value?: OrgBroadcastTarget, index?: number): OrgBroadcastTarget;
397
+
398
+ serializeBinary(): Uint8Array;
399
+ toObject(includeInstance?: boolean): OrgBroadcastPayloadResponse.AsObject;
400
+ static toObject(includeInstance: boolean, msg: OrgBroadcastPayloadResponse): OrgBroadcastPayloadResponse.AsObject;
401
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
402
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
403
+ static serializeBinaryToWriter(message: OrgBroadcastPayloadResponse, writer: jspb.BinaryWriter): void;
404
+ static deserializeBinary(bytes: Uint8Array): OrgBroadcastPayloadResponse;
405
+ static deserializeBinaryFromReader(message: OrgBroadcastPayloadResponse, reader: jspb.BinaryReader): OrgBroadcastPayloadResponse;
406
+ }
407
+
408
+ export namespace OrgBroadcastPayloadResponse {
409
+ export type AsObject = {
410
+ id: string,
411
+ sendType: number,
412
+ conversationType: number,
413
+ creatorId: string,
414
+ execTime: number,
415
+ status: number,
416
+ canCancel: boolean,
417
+ allowSelect: boolean,
418
+ sent: boolean,
419
+ totalCount: number,
420
+ sentCount: number,
421
+ contentListJson: string,
422
+ targetsList: Array<OrgBroadcastTarget.AsObject>,
423
+ }
424
+ }
425
+
426
+ export class OrgBroadcastExecuteRequest extends jspb.Message {
427
+ getId(): string;
428
+ setId(value: string): void;
429
+
430
+ clearTargetIdsList(): void;
431
+ getTargetIdsList(): Array<string>;
432
+ setTargetIdsList(value: Array<string>): void;
433
+ addTargetIds(value: string, index?: number): string;
434
+
435
+ serializeBinary(): Uint8Array;
436
+ toObject(includeInstance?: boolean): OrgBroadcastExecuteRequest.AsObject;
437
+ static toObject(includeInstance: boolean, msg: OrgBroadcastExecuteRequest): OrgBroadcastExecuteRequest.AsObject;
438
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
439
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
440
+ static serializeBinaryToWriter(message: OrgBroadcastExecuteRequest, writer: jspb.BinaryWriter): void;
441
+ static deserializeBinary(bytes: Uint8Array): OrgBroadcastExecuteRequest;
442
+ static deserializeBinaryFromReader(message: OrgBroadcastExecuteRequest, reader: jspb.BinaryReader): OrgBroadcastExecuteRequest;
443
+ }
444
+
445
+ export namespace OrgBroadcastExecuteRequest {
446
+ export type AsObject = {
447
+ id: string,
448
+ targetIdsList: Array<string>,
449
+ }
450
+ }
451
+
452
+ export class OrgBroadcastExecuteResponse extends jspb.Message {
453
+ serializeBinary(): Uint8Array;
454
+ toObject(includeInstance?: boolean): OrgBroadcastExecuteResponse.AsObject;
455
+ static toObject(includeInstance: boolean, msg: OrgBroadcastExecuteResponse): OrgBroadcastExecuteResponse.AsObject;
456
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
457
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
458
+ static serializeBinaryToWriter(message: OrgBroadcastExecuteResponse, writer: jspb.BinaryWriter): void;
459
+ static deserializeBinary(bytes: Uint8Array): OrgBroadcastExecuteResponse;
460
+ static deserializeBinaryFromReader(message: OrgBroadcastExecuteResponse, reader: jspb.BinaryReader): OrgBroadcastExecuteResponse;
461
+ }
462
+
463
+ export namespace OrgBroadcastExecuteResponse {
464
+ export type AsObject = {
465
+ }
466
+ }
467
+
308
468
  export interface CorpMessageInterceptionTypeMap {
309
469
  INTERCEPTION_TYPE_HARD: 0;
310
470
  INTERCEPTION_TYPE_SOFT: 1;
@@ -312,3 +472,17 @@ export interface CorpMessageInterceptionTypeMap {
312
472
 
313
473
  export const CorpMessageInterceptionType: CorpMessageInterceptionTypeMap;
314
474
 
475
+ export interface OrgBroadcastTargetStatusMap {
476
+ ORG_BROADCAST_TARGET_STATUS_UNSENT: 0;
477
+ ORG_BROADCAST_TARGET_STATUS_SENT: 1;
478
+ ORG_BROADCAST_TARGET_STATUS_NOT_FRIEND: 2;
479
+ ORG_BROADCAST_TARGET_STATUS_OCCUPIED: 3;
480
+ ORG_BROADCAST_TARGET_STATUS_UNCONFIRMED: 4;
481
+ ORG_BROADCAST_TARGET_STATUS_CONFIRMED: 5;
482
+ ORG_BROADCAST_TARGET_STATUS_EXPIRED: 6;
483
+ ORG_BROADCAST_TARGET_STATUS_CANCELED: 7;
484
+ ORG_BROADCAST_TARGET_STATUS_NEW_UNSENT: 8;
485
+ }
486
+
487
+ export const OrgBroadcastTargetStatus: OrgBroadcastTargetStatusMap;
488
+