@fractalwagmi/fractal-auth-api
Advanced tools
Comparing version
@@ -47,4 +47,11 @@ /* eslint-disable */ | ||
export type FractalAuthApprovalApproveResponse = object; | ||
export interface FractalAuthApprovalApproveResponse { | ||
redirect?: FractalAuthApprovalApproveResponseRedirectTarget; | ||
} | ||
export interface FractalAuthApprovalApproveResponseRedirectTarget { | ||
url: string; | ||
code: string; | ||
} | ||
export interface FractalAuthApprovalGetUrlResponse { | ||
@@ -110,3 +117,3 @@ url?: string; | ||
export type RequestParams = {}; | ||
export type RequestQuery = { clientId?: string; scope?: string[] }; | ||
export type RequestQuery = { clientId?: string; scope?: string[]; redirect?: string }; | ||
export type RequestBody = never; | ||
@@ -398,3 +405,3 @@ export type RequestHeaders = {}; | ||
*/ | ||
getUrl: (query?: { clientId?: string; scope?: string[] }, params: RequestParams = {}) => | ||
getUrl: (query?: { clientId?: string; scope?: string[]; redirect?: string }, params: RequestParams = {}) => | ||
this.request<FractalAuthApprovalGetUrlResponse, GoogleRpcStatus>({ | ||
@@ -401,0 +408,0 @@ path: `/auth/v2/approval/geturl`, |
@@ -29,3 +29,9 @@ export interface FractalAuthApprovalApprovalResultRequest { | ||
} | ||
export declare type FractalAuthApprovalApproveResponse = object; | ||
export interface FractalAuthApprovalApproveResponse { | ||
redirect?: FractalAuthApprovalApproveResponseRedirectTarget; | ||
} | ||
export interface FractalAuthApprovalApproveResponseRedirectTarget { | ||
url: string; | ||
code: string; | ||
} | ||
export interface FractalAuthApprovalGetUrlResponse { | ||
@@ -91,2 +97,3 @@ url?: string; | ||
scope?: string[]; | ||
redirect?: string; | ||
}; | ||
@@ -194,3 +201,3 @@ type RequestBody = never; | ||
*/ | ||
approve: (body: FractalAuthApprovalApproveRequest, params?: RequestParams) => Promise<HttpResponse<object, GoogleRpcStatus>>; | ||
approve: (body: FractalAuthApprovalApproveRequest, params?: RequestParams) => Promise<HttpResponse<FractalAuthApprovalApproveResponse, GoogleRpcStatus>>; | ||
/** | ||
@@ -216,2 +223,3 @@ * No description | ||
scope?: string[] | undefined; | ||
redirect?: string | undefined; | ||
} | undefined, params?: RequestParams) => Promise<HttpResponse<FractalAuthApprovalGetUrlResponse, GoogleRpcStatus>>; | ||
@@ -218,0 +226,0 @@ /** |
{ | ||
"name": "@fractalwagmi/fractal-auth-api", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/auth-api.js", |
31801
1.49%860
1.65%