@@ -246,6 +246,15 @@ export const GetRelationshipsResponseSchema = z.object({
246246} ) ;
247247export type GetRelationshipsResponse = zInfer < typeof GetRelationshipsResponseSchema > ;
248248
249+ // ACTIVITY_INVITE_USER
250+ export const ActivityInviteUserRequestSchema = z . object ( {
251+ user_id : z . string ( ) ,
252+ type : z . literal ( 1 ) ,
253+ content : z . string ( ) . min ( 0 ) . max ( 1024 ) . optional ( ) ,
254+ pid : z . number ( ) . gte ( 0 ) . optional ( ) ,
255+ } ) ;
256+ export type ActivityInviteUserRequest = zInfer < typeof ActivityInviteUserRequestSchema > ;
257+
249258/**
250259 * RPC Commands which support schemas.
251260 */
@@ -257,6 +266,7 @@ export enum Command {
257266 SHARE_INTERACTION = 'SHARE_INTERACTION' ,
258267 SHARE_LINK = 'SHARE_LINK' ,
259268 GET_RELATIONSHIPS = 'GET_RELATIONSHIPS' ,
269+ ACTIVITY_INVITE_USER = 'ACTIVITY_INVITE_USER' ,
260270}
261271
262272const emptyResponseSchema = z . object ( { } ) . optional ( ) . nullable ( ) ;
@@ -294,4 +304,8 @@ export const Schemas = {
294304 request : emptyRequestSchema ,
295305 response : GetRelationshipsResponseSchema ,
296306 } ,
307+ [ Command . ACTIVITY_INVITE_USER ] : {
308+ request : ActivityInviteUserRequestSchema ,
309+ response : emptyResponseSchema ,
310+ } ,
297311} as const ;
0 commit comments