@@ -75,6 +75,7 @@ export const AuthenticateResponseSchema = z.object({
7575 'account.global_name.update' ,
7676 'payment_sources.country_code' ,
7777 'sdk.social_layer' ,
78+ 'lobbies.write' ,
7879 ] )
7980 . or ( z . literal ( - 1 ) )
8081 . default ( - 1 ) ,
@@ -165,27 +166,22 @@ export const GetRelationshipsResponseSchema = z.object({
165166 relationships : z . array (
166167 z . object ( {
167168 type : z . number ( ) ,
168- user : z
169- . union ( [
170- z . object ( {
171- id : z . string ( ) ,
172- username : z . string ( ) ,
173- global_name : z . union ( [ z . string ( ) , z . null ( ) ] ) . optional ( ) ,
174- discriminator : z . string ( ) ,
175- avatar : z . union ( [ z . string ( ) , z . null ( ) ] ) . optional ( ) ,
176- flags : z . number ( ) ,
177- bot : z . boolean ( ) ,
178- avatar_decoration_data : z
179- . union ( [
180- z . object ( { asset : z . string ( ) , skuId : z . string ( ) . optional ( ) , expiresAt : z . number ( ) . optional ( ) } ) ,
181- z . null ( ) ,
182- ] )
183- . optional ( ) ,
184- premium_type : z . union ( [ z . number ( ) , z . null ( ) ] ) . optional ( ) ,
185- } ) ,
186- z . null ( ) ,
187- ] )
188- . optional ( ) ,
169+ user : z . object ( {
170+ id : z . string ( ) ,
171+ username : z . string ( ) ,
172+ global_name : z . union ( [ z . string ( ) , z . null ( ) ] ) . optional ( ) ,
173+ discriminator : z . string ( ) ,
174+ avatar : z . union ( [ z . string ( ) , z . null ( ) ] ) . optional ( ) ,
175+ flags : z . number ( ) ,
176+ bot : z . boolean ( ) ,
177+ avatar_decoration_data : z
178+ . union ( [
179+ z . object ( { asset : z . string ( ) , skuId : z . string ( ) . optional ( ) , expiresAt : z . number ( ) . optional ( ) } ) ,
180+ z . null ( ) ,
181+ ] )
182+ . optional ( ) ,
183+ premium_type : z . union ( [ z . number ( ) , z . null ( ) ] ) . optional ( ) ,
184+ } ) ,
189185 presence : z
190186 . object ( {
191187 status : z . string ( ) ,
@@ -246,6 +242,13 @@ export const GetRelationshipsResponseSchema = z.object({
246242} ) ;
247243export type GetRelationshipsResponse = zInfer < typeof GetRelationshipsResponseSchema > ;
248244
245+ // INVITE_USER_EMBEDDED
246+ export const InviteUserEmbeddedRequestSchema = z . object ( {
247+ user_id : z . string ( ) ,
248+ content : z . string ( ) . min ( 0 ) . max ( 1024 ) . optional ( ) ,
249+ } ) ;
250+ export type InviteUserEmbeddedRequest = zInfer < typeof InviteUserEmbeddedRequestSchema > ;
251+
249252/**
250253 * RPC Commands which support schemas.
251254 */
@@ -257,6 +260,7 @@ export enum Command {
257260 SHARE_INTERACTION = 'SHARE_INTERACTION' ,
258261 SHARE_LINK = 'SHARE_LINK' ,
259262 GET_RELATIONSHIPS = 'GET_RELATIONSHIPS' ,
263+ INVITE_USER_EMBEDDED = 'INVITE_USER_EMBEDDED' ,
260264}
261265
262266const emptyResponseSchema = z . object ( { } ) . optional ( ) . nullable ( ) ;
@@ -294,4 +298,8 @@ export const Schemas = {
294298 request : emptyRequestSchema ,
295299 response : GetRelationshipsResponseSchema ,
296300 } ,
301+ [ Command . INVITE_USER_EMBEDDED ] : {
302+ request : InviteUserEmbeddedRequestSchema ,
303+ response : emptyResponseSchema ,
304+ } ,
297305} as const ;
0 commit comments