UNPKG

wechaty-puppet-padplus

Version:
47 lines (38 loc) 1.29 kB
/* eslint camelcase: 0 */ import { FriendshipType, } from 'wechaty-puppet' export interface PadplusRequestTokenPayload { full_url : string, info : string, message : string, share_url : string, status : number, } export interface PadplusFriendshipPayload { fromusername : string, // 'lizhuohuan' encryptusername : string, // v1_xxx@stranger' content : string, // 'hello' ticket : string, // 'v2_1a0d2cf325e64b6f74bed09e944529e7cc7a7580cb323475050664566dd0302d89b8e2ed95b596b459cf762d94a0ce606da39babbae0dc26b18a62e079bfc120@stranger', } export interface FriendshipPayloadBase { id : string, contactId : string, hello? : string, timestamp?: number, } export type FriendshipPayloadConfirm = FriendshipPayloadBase & { type : FriendshipType.Confirm, } export type FriendshipPayloadReceive = FriendshipPayloadBase & { stranger? : string, ticket : string, type : FriendshipType.Receive, } export type FriendshipPayloadVerify = FriendshipPayloadBase & { type : FriendshipType.Verify, } export type FriendshipPayload = FriendshipPayloadConfirm | FriendshipPayloadReceive | FriendshipPayloadVerify export interface AddContactGrpcResponse { status: string, }