authhero 8.19.0 → 8.21.0
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/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +142 -142
- package/dist/authhero.d.ts +317 -250
- package/dist/authhero.mjs +14752 -16956
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +4 -4
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +2 -2
- package/dist/types/helpers/hook-events.d.ts +35 -15
- package/dist/types/hooks/link-users.d.ts +9 -1
- package/dist/types/hooks/user-registration.d.ts +8 -5
- package/dist/types/index.d.ts +317 -250
- package/dist/types/routes/auth-api/index.d.ts +22 -22
- package/dist/types/routes/auth-api/passwordless.d.ts +14 -14
- package/dist/types/routes/auth-api/register/index.d.ts +2 -2
- package/dist/types/routes/auth-api/revoke.d.ts +6 -6
- package/dist/types/routes/management-api/action-executions.d.ts +1 -1
- package/dist/types/routes/management-api/actions.d.ts +3 -1
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/branding.d.ts +1 -1
- package/dist/types/routes/management-api/client-grants.d.ts +24 -8
- package/dist/types/routes/management-api/clients.d.ts +14 -13
- package/dist/types/routes/management-api/connections.d.ts +17 -16
- package/dist/types/routes/management-api/flows.d.ts +1 -0
- package/dist/types/routes/management-api/forms.d.ts +127 -126
- package/dist/types/routes/management-api/grants.d.ts +1 -0
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/hooks.d.ts +25 -24
- package/dist/types/routes/management-api/index.d.ts +288 -221
- package/dist/types/routes/management-api/logs.d.ts +4 -3
- package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
- package/dist/types/routes/management-api/organizations.d.ts +36 -2
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/resource-servers.d.ts +1 -0
- package/dist/types/routes/management-api/roles.d.ts +8 -6
- package/dist/types/routes/management-api/tenants.d.ts +1 -1
- package/dist/types/routes/management-api/users.d.ts +7 -2
- package/dist/types/routes/universal-login/common.d.ts +8 -8
- package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
- package/dist/types/routes/universal-login/identifier.d.ts +2 -2
- package/dist/types/routes/universal-login/index.d.ts +2 -2
- package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/dist/types/types/IdToken.d.ts +1 -1
- package/package.json +6 -6
|
@@ -12,7 +12,7 @@ export declare const guardianRoutes: OpenAPIHono<{
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
output: {
|
|
15
|
-
name: "email" | "
|
|
15
|
+
name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
|
|
16
16
|
enabled: boolean;
|
|
17
17
|
trial_expired?: boolean | undefined;
|
|
18
18
|
}[];
|
|
@@ -167,7 +167,7 @@ export declare const guardianRoutes: OpenAPIHono<{
|
|
|
167
167
|
$get: {
|
|
168
168
|
input: {
|
|
169
169
|
param: {
|
|
170
|
-
factor_name: "email" | "
|
|
170
|
+
factor_name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
|
|
171
171
|
};
|
|
172
172
|
} & {
|
|
173
173
|
header: {
|
|
@@ -175,7 +175,7 @@ export declare const guardianRoutes: OpenAPIHono<{
|
|
|
175
175
|
};
|
|
176
176
|
};
|
|
177
177
|
output: {
|
|
178
|
-
name: "email" | "
|
|
178
|
+
name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
|
|
179
179
|
enabled: boolean;
|
|
180
180
|
trial_expired?: boolean | undefined;
|
|
181
181
|
};
|
|
@@ -188,7 +188,7 @@ export declare const guardianRoutes: OpenAPIHono<{
|
|
|
188
188
|
$put: {
|
|
189
189
|
input: {
|
|
190
190
|
param: {
|
|
191
|
-
factor_name: "email" | "
|
|
191
|
+
factor_name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
|
|
192
192
|
};
|
|
193
193
|
} & {
|
|
194
194
|
header: {
|
|
@@ -200,7 +200,7 @@ export declare const guardianRoutes: OpenAPIHono<{
|
|
|
200
200
|
};
|
|
201
201
|
};
|
|
202
202
|
output: {
|
|
203
|
-
name: "email" | "
|
|
203
|
+
name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
|
|
204
204
|
enabled: boolean;
|
|
205
205
|
trial_expired?: boolean | undefined;
|
|
206
206
|
};
|
|
@@ -24,7 +24,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
output: ({
|
|
27
|
-
trigger_id: "
|
|
27
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
28
28
|
enabled: boolean;
|
|
29
29
|
synchronous: boolean;
|
|
30
30
|
created_at: string;
|
|
@@ -36,7 +36,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
36
36
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
37
37
|
} | undefined;
|
|
38
38
|
} | {
|
|
39
|
-
trigger_id: "
|
|
39
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
40
40
|
enabled: boolean;
|
|
41
41
|
synchronous: boolean;
|
|
42
42
|
created_at: string;
|
|
@@ -48,7 +48,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
48
48
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
49
49
|
} | undefined;
|
|
50
50
|
} | {
|
|
51
|
-
trigger_id: "post-user-
|
|
51
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
52
52
|
enabled: boolean;
|
|
53
53
|
synchronous: boolean;
|
|
54
54
|
created_at: string;
|
|
@@ -60,7 +60,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
60
60
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
61
61
|
} | undefined;
|
|
62
62
|
} | {
|
|
63
|
-
trigger_id: "
|
|
63
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
|
|
64
64
|
enabled: boolean;
|
|
65
65
|
synchronous: boolean;
|
|
66
66
|
created_at: string;
|
|
@@ -76,7 +76,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
76
76
|
limit: number;
|
|
77
77
|
length: number;
|
|
78
78
|
hooks: ({
|
|
79
|
-
trigger_id: "
|
|
79
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
80
80
|
enabled: boolean;
|
|
81
81
|
synchronous: boolean;
|
|
82
82
|
created_at: string;
|
|
@@ -88,7 +88,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
88
88
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
89
89
|
} | undefined;
|
|
90
90
|
} | {
|
|
91
|
-
trigger_id: "
|
|
91
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
92
92
|
enabled: boolean;
|
|
93
93
|
synchronous: boolean;
|
|
94
94
|
created_at: string;
|
|
@@ -100,7 +100,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
100
100
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
101
101
|
} | undefined;
|
|
102
102
|
} | {
|
|
103
|
-
trigger_id: "post-user-
|
|
103
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
104
104
|
enabled: boolean;
|
|
105
105
|
synchronous: boolean;
|
|
106
106
|
created_at: string;
|
|
@@ -112,7 +112,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
112
112
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
113
113
|
} | undefined;
|
|
114
114
|
} | {
|
|
115
|
-
trigger_id: "
|
|
115
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
|
|
116
116
|
enabled: boolean;
|
|
117
117
|
synchronous: boolean;
|
|
118
118
|
created_at: string;
|
|
@@ -125,6 +125,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
125
125
|
} | undefined;
|
|
126
126
|
})[];
|
|
127
127
|
total?: number | undefined;
|
|
128
|
+
next?: string | undefined;
|
|
128
129
|
};
|
|
129
130
|
outputFormat: "json";
|
|
130
131
|
status: 200;
|
|
@@ -139,7 +140,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
139
140
|
};
|
|
140
141
|
} & {
|
|
141
142
|
json: {
|
|
142
|
-
trigger_id: "
|
|
143
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
143
144
|
url: string;
|
|
144
145
|
enabled?: boolean | undefined;
|
|
145
146
|
synchronous?: boolean | undefined;
|
|
@@ -147,7 +148,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
147
148
|
hook_id?: string | undefined;
|
|
148
149
|
metadata?: Record<string, unknown> | undefined;
|
|
149
150
|
} | {
|
|
150
|
-
trigger_id: "
|
|
151
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
151
152
|
form_id: string;
|
|
152
153
|
enabled?: boolean | undefined;
|
|
153
154
|
synchronous?: boolean | undefined;
|
|
@@ -155,7 +156,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
155
156
|
hook_id?: string | undefined;
|
|
156
157
|
metadata?: Record<string, unknown> | undefined;
|
|
157
158
|
} | {
|
|
158
|
-
trigger_id: "post-user-
|
|
159
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
159
160
|
template_id: "ensure-username" | "set-preferred-username" | "account-linking";
|
|
160
161
|
enabled?: boolean | undefined;
|
|
161
162
|
synchronous?: boolean | undefined;
|
|
@@ -163,7 +164,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
163
164
|
hook_id?: string | undefined;
|
|
164
165
|
metadata?: Record<string, unknown> | undefined;
|
|
165
166
|
} | {
|
|
166
|
-
trigger_id: "
|
|
167
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
|
|
167
168
|
code_id: string;
|
|
168
169
|
enabled?: boolean | undefined;
|
|
169
170
|
synchronous?: boolean | undefined;
|
|
@@ -173,7 +174,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
173
174
|
};
|
|
174
175
|
};
|
|
175
176
|
output: {
|
|
176
|
-
trigger_id: "
|
|
177
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
177
178
|
enabled: boolean;
|
|
178
179
|
synchronous: boolean;
|
|
179
180
|
created_at: string;
|
|
@@ -185,7 +186,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
185
186
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
186
187
|
} | undefined;
|
|
187
188
|
} | {
|
|
188
|
-
trigger_id: "
|
|
189
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
189
190
|
enabled: boolean;
|
|
190
191
|
synchronous: boolean;
|
|
191
192
|
created_at: string;
|
|
@@ -197,7 +198,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
197
198
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
198
199
|
} | undefined;
|
|
199
200
|
} | {
|
|
200
|
-
trigger_id: "post-user-
|
|
201
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
201
202
|
enabled: boolean;
|
|
202
203
|
synchronous: boolean;
|
|
203
204
|
created_at: string;
|
|
@@ -209,7 +210,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
209
210
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
210
211
|
} | undefined;
|
|
211
212
|
} | {
|
|
212
|
-
trigger_id: "
|
|
213
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
|
|
213
214
|
enabled: boolean;
|
|
214
215
|
synchronous: boolean;
|
|
215
216
|
created_at: string;
|
|
@@ -255,7 +256,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
255
256
|
json: unknown;
|
|
256
257
|
};
|
|
257
258
|
output: {
|
|
258
|
-
trigger_id: "
|
|
259
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
259
260
|
enabled: boolean;
|
|
260
261
|
synchronous: boolean;
|
|
261
262
|
created_at: string;
|
|
@@ -267,7 +268,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
267
268
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
268
269
|
} | undefined;
|
|
269
270
|
} | {
|
|
270
|
-
trigger_id: "
|
|
271
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
271
272
|
enabled: boolean;
|
|
272
273
|
synchronous: boolean;
|
|
273
274
|
created_at: string;
|
|
@@ -279,7 +280,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
279
280
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
280
281
|
} | undefined;
|
|
281
282
|
} | {
|
|
282
|
-
trigger_id: "post-user-
|
|
283
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
283
284
|
enabled: boolean;
|
|
284
285
|
synchronous: boolean;
|
|
285
286
|
created_at: string;
|
|
@@ -291,7 +292,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
291
292
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
292
293
|
} | undefined;
|
|
293
294
|
} | {
|
|
294
|
-
trigger_id: "
|
|
295
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
|
|
295
296
|
enabled: boolean;
|
|
296
297
|
synchronous: boolean;
|
|
297
298
|
created_at: string;
|
|
@@ -333,7 +334,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
333
334
|
};
|
|
334
335
|
};
|
|
335
336
|
output: {
|
|
336
|
-
trigger_id: "
|
|
337
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
337
338
|
enabled: boolean;
|
|
338
339
|
synchronous: boolean;
|
|
339
340
|
created_at: string;
|
|
@@ -345,7 +346,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
345
346
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
346
347
|
} | undefined;
|
|
347
348
|
} | {
|
|
348
|
-
trigger_id: "
|
|
349
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
349
350
|
enabled: boolean;
|
|
350
351
|
synchronous: boolean;
|
|
351
352
|
created_at: string;
|
|
@@ -357,7 +358,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
357
358
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
358
359
|
} | undefined;
|
|
359
360
|
} | {
|
|
360
|
-
trigger_id: "post-user-
|
|
361
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
361
362
|
enabled: boolean;
|
|
362
363
|
synchronous: boolean;
|
|
363
364
|
created_at: string;
|
|
@@ -369,7 +370,7 @@ export declare const hooksRoutes: OpenAPIHono<{
|
|
|
369
370
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
370
371
|
} | undefined;
|
|
371
372
|
} | {
|
|
372
|
-
trigger_id: "
|
|
373
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
|
|
373
374
|
enabled: boolean;
|
|
374
375
|
synchronous: boolean;
|
|
375
376
|
created_at: string;
|