shoal-web-sdk 0.0.18 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sdk/sdk.gen.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare const getServiceHealth: <ThrowOnError extends boolean = false>(op
|
|
|
20
20
|
/**
|
|
21
21
|
* Registers an account through kinde's webhook.
|
|
22
22
|
*/
|
|
23
|
-
export declare const registerAccount: <ThrowOnError extends boolean = false>(options
|
|
23
|
+
export declare const registerAccount: <ThrowOnError extends boolean = false>(options: Options<RegisterAccountData, ThrowOnError>) => import("./client").RequestResult<RegisterAccountResponses, RegisterAccountErrors, ThrowOnError, "fields">;
|
|
24
24
|
/**
|
|
25
25
|
* This will submit a password reset request requiring the user to reset their password on next sign in.
|
|
26
26
|
*/
|
package/dist/sdk/sdk.gen.js
CHANGED
|
@@ -19,7 +19,8 @@ export const getServiceHealth = (options) => {
|
|
|
19
19
|
* Registers an account through kinde's webhook.
|
|
20
20
|
*/
|
|
21
21
|
export const registerAccount = (options) => {
|
|
22
|
-
return (options
|
|
22
|
+
return (options.client ?? client).post({
|
|
23
|
+
bodySerializer: null,
|
|
23
24
|
security: [
|
|
24
25
|
{
|
|
25
26
|
scheme: 'bearer',
|
|
@@ -29,8 +30,8 @@ export const registerAccount = (options) => {
|
|
|
29
30
|
url: '/register',
|
|
30
31
|
...options,
|
|
31
32
|
headers: {
|
|
32
|
-
'Content-Type': '
|
|
33
|
-
...options
|
|
33
|
+
'Content-Type': 'text/plain',
|
|
34
|
+
...options.headers
|
|
34
35
|
}
|
|
35
36
|
});
|
|
36
37
|
};
|
package/dist/sdk/types.gen.d.ts
CHANGED
|
@@ -8,45 +8,6 @@ export type ErrorResponse = {
|
|
|
8
8
|
message: string;
|
|
9
9
|
internalCode: unknown;
|
|
10
10
|
};
|
|
11
|
-
/**
|
|
12
|
-
* The request body that kinde attaches during callback account creation.
|
|
13
|
-
*/
|
|
14
|
-
export type CallBackClaims = {
|
|
15
|
-
data: {
|
|
16
|
-
user: {
|
|
17
|
-
email?: string;
|
|
18
|
-
first_name?: string;
|
|
19
|
-
id: string;
|
|
20
|
-
is_password_reset_requested?: boolean;
|
|
21
|
-
is_suspended?: boolean;
|
|
22
|
-
last_name?: string;
|
|
23
|
-
organizations?: Array<{
|
|
24
|
-
code?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Arbitrary JSON
|
|
27
|
-
*/
|
|
28
|
-
permissions?: unknown;
|
|
29
|
-
/**
|
|
30
|
-
* Arbitrary JSON
|
|
31
|
-
*/
|
|
32
|
-
roles?: unknown;
|
|
33
|
-
}>;
|
|
34
|
-
/**
|
|
35
|
-
* Arbitrary JSON
|
|
36
|
-
*/
|
|
37
|
-
phone?: unknown;
|
|
38
|
-
/**
|
|
39
|
-
* Arbitrary JSON
|
|
40
|
-
*/
|
|
41
|
-
username?: unknown;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
event_id: string;
|
|
45
|
-
event_timestamp: string;
|
|
46
|
-
source: string;
|
|
47
|
-
timestamp: string;
|
|
48
|
-
type: string;
|
|
49
|
-
};
|
|
50
11
|
export type AccountProfile = {
|
|
51
12
|
id: string;
|
|
52
13
|
kindeSub: string;
|
|
@@ -79,7 +40,7 @@ export type RegisterAccountData = {
|
|
|
79
40
|
/**
|
|
80
41
|
* Kinde account creation callback.
|
|
81
42
|
*/
|
|
82
|
-
body
|
|
43
|
+
body: string;
|
|
83
44
|
path?: never;
|
|
84
45
|
query?: never;
|
|
85
46
|
url: '/register';
|
|
@@ -7,7 +7,7 @@ export declare const useRegisterAccount: (config?: {
|
|
|
7
7
|
onSuccess?: Parameters<typeof useMutation>["0"]["onSuccess"];
|
|
8
8
|
onError?: Parameters<typeof useMutation>["0"]["onError"];
|
|
9
9
|
retry?: boolean;
|
|
10
|
-
}) => import("@tanstack/react-query").UseMutationResult<unknown, unknown, Omit<RegisterAccountData, "url"
|
|
10
|
+
}) => import("@tanstack/react-query").UseMutationResult<unknown, unknown, Omit<RegisterAccountData, "url">, unknown>;
|
|
11
11
|
export declare const useRequestAccountPasswordReset: (config?: {
|
|
12
12
|
onSuccess?: Parameters<typeof useMutation>["0"]["onSuccess"];
|
|
13
13
|
onError?: Parameters<typeof useMutation>["0"]["onError"];
|