File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,6 @@ import { defineRpcEndpoint } from '../rpc/schemas';
44
55export const open = defineRpcEndpoint ( {
66 method : 'open' ,
7- params : z
8- . object ( { mode : z . enum ( [ 'fullpage' , 'popup' ] ) } )
9- . passthrough ( )
10- . optional ( ) ,
11- result : z . null ( ) ,
7+ params : z . object ( { mode : z . enum ( [ 'fullpage' , 'popup' ] ) } ) . default ( { mode : 'popup' } ) ,
8+ result : z . object ( { success : z . literal ( true ) } ) ,
129} ) ;
13-
14- export type OpenParams = z . infer < typeof open . params > ;
Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ export enum RpcErrorCode {
6565 // Client defined errors
6666 USER_REJECTION = 4001 ,
6767 METHOD_NOT_SUPPORTED = 4002 ,
68+ // gRPC spec borrowed
69+ PERMISSION_DENIED = 7 ,
70+ UNAUTHENTICATED = 16 ,
6871}
6972const rpcErrorCodeSchema = z . nativeEnum ( RpcErrorCode ) ;
7073
You can’t perform that action at this time.
0 commit comments