ory / sdk

The place where ORY's SDKs are being auto-generated
Apache License 2.0
137 stars 85 forks source link

ErrorBrowserLocationChangeRequired: Type Error in kratos sdk for typescript ? #277

Closed jossbnd closed 3 weeks ago

jossbnd commented 1 year ago

Preflight checklist

Describe the bug

I am not sure but shouldn't it be type GenericError instead of ErrorGeneric ?

https://github.com/ory/sdk/blob/a7bdd86eaed50bdfc3a82d320b50f954198c367d/clients/kratos/typescript/api.ts#L304

Reproducing the bug

in clients/kratos/typescript/api.ts, type of 'error' should be GenericError

/**
 * 
 * @export
 * @interface ErrorBrowserLocationChangeRequired
 */
export interface ErrorBrowserLocationChangeRequired {
    /**
     * 
     * @type {ErrorGeneric}
     * @memberof ErrorBrowserLocationChangeRequired
     */
    'error'?: ErrorGeneric;
    /**
     * Points to where to redirect the user to next.
     * @type {string}
     * @memberof ErrorBrowserLocationChangeRequired
     */
    'redirect_browser_to'?: string;
}

Relevant log output

No response

Relevant configuration

No response

Version

0.13.1

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Docker Compose

Additional Context

No response

aeneasr commented 3 weeks ago

This should be resolved as far as I know!