@authhero/adapter-interfaces 4.6.0 → 4.7.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.
|
@@ -9,6 +9,9 @@ export declare const connectionOptionsSchema: z.ZodObject<{
|
|
|
9
9
|
client_secret: z.ZodOptional<z.ZodString>;
|
|
10
10
|
app_secret: z.ZodOptional<z.ZodString>;
|
|
11
11
|
scope: z.ZodOptional<z.ZodString>;
|
|
12
|
+
client_secret_hint: z.ZodOptional<z.ZodString>;
|
|
13
|
+
app_secret_hint: z.ZodOptional<z.ZodString>;
|
|
14
|
+
twilio_token_hint: z.ZodOptional<z.ZodString>;
|
|
12
15
|
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
13
16
|
token_endpoint: z.ZodOptional<z.ZodString>;
|
|
14
17
|
userinfo_endpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -55,6 +58,7 @@ export declare const connectionOptionsSchema: z.ZodObject<{
|
|
|
55
58
|
userinfo_endpoint: z.ZodOptional<z.ZodString>;
|
|
56
59
|
client_id: z.ZodOptional<z.ZodString>;
|
|
57
60
|
client_secret: z.ZodOptional<z.ZodString>;
|
|
61
|
+
client_secret_hint: z.ZodOptional<z.ZodString>;
|
|
58
62
|
realm: z.ZodOptional<z.ZodString>;
|
|
59
63
|
}, z.core.$strip>>;
|
|
60
64
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
@@ -160,6 +164,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
160
164
|
client_secret: z.ZodOptional<z.ZodString>;
|
|
161
165
|
app_secret: z.ZodOptional<z.ZodString>;
|
|
162
166
|
scope: z.ZodOptional<z.ZodString>;
|
|
167
|
+
client_secret_hint: z.ZodOptional<z.ZodString>;
|
|
168
|
+
app_secret_hint: z.ZodOptional<z.ZodString>;
|
|
169
|
+
twilio_token_hint: z.ZodOptional<z.ZodString>;
|
|
163
170
|
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
164
171
|
token_endpoint: z.ZodOptional<z.ZodString>;
|
|
165
172
|
userinfo_endpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -206,6 +213,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
206
213
|
userinfo_endpoint: z.ZodOptional<z.ZodString>;
|
|
207
214
|
client_id: z.ZodOptional<z.ZodString>;
|
|
208
215
|
client_secret: z.ZodOptional<z.ZodString>;
|
|
216
|
+
client_secret_hint: z.ZodOptional<z.ZodString>;
|
|
209
217
|
realm: z.ZodOptional<z.ZodString>;
|
|
210
218
|
}, z.core.$strip>>;
|
|
211
219
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
@@ -322,6 +330,9 @@ export declare const connectionSchema: z.ZodObject<{
|
|
|
322
330
|
client_secret: z.ZodOptional<z.ZodString>;
|
|
323
331
|
app_secret: z.ZodOptional<z.ZodString>;
|
|
324
332
|
scope: z.ZodOptional<z.ZodString>;
|
|
333
|
+
client_secret_hint: z.ZodOptional<z.ZodString>;
|
|
334
|
+
app_secret_hint: z.ZodOptional<z.ZodString>;
|
|
335
|
+
twilio_token_hint: z.ZodOptional<z.ZodString>;
|
|
325
336
|
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
326
337
|
token_endpoint: z.ZodOptional<z.ZodString>;
|
|
327
338
|
userinfo_endpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -368,6 +379,7 @@ export declare const connectionSchema: z.ZodObject<{
|
|
|
368
379
|
userinfo_endpoint: z.ZodOptional<z.ZodString>;
|
|
369
380
|
client_id: z.ZodOptional<z.ZodString>;
|
|
370
381
|
client_secret: z.ZodOptional<z.ZodString>;
|
|
382
|
+
client_secret_hint: z.ZodOptional<z.ZodString>;
|
|
371
383
|
realm: z.ZodOptional<z.ZodString>;
|
|
372
384
|
}, z.core.$strip>>;
|
|
373
385
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
+
/**
|
|
3
|
+
* Triggers the given stored hook is allowed to run on, or `undefined` when the
|
|
4
|
+
* value isn't a recognisable hook.
|
|
5
|
+
*
|
|
6
|
+
* Needed because the update path validates a union of *partial* variant
|
|
7
|
+
* schemas: a body carrying only `trigger_id` matches whichever member has no
|
|
8
|
+
* other required field left, so the stored hook's type is invisible to the
|
|
9
|
+
* request validator. Callers re-check the incoming trigger against the row
|
|
10
|
+
* they're about to modify.
|
|
11
|
+
*/
|
|
12
|
+
export declare function allowedTriggersForHook(hook: unknown): readonly string[] | undefined;
|
|
2
13
|
/**
|
|
3
14
|
* Built-in universal-login pages a page hook can interrupt the login with.
|
|
4
15
|
* The runtime redirects to `/u/{page_id}` (or `/u2/{page_id}`), so this enum
|
|
@@ -44,12 +55,7 @@ export declare const hookInsertSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
44
55
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
45
56
|
}, z.core.$strip>, z.ZodObject<{
|
|
46
57
|
trigger_id: z.ZodEnum<{
|
|
47
|
-
"pre-user-registration": "pre-user-registration";
|
|
48
|
-
"post-user-registration": "post-user-registration";
|
|
49
58
|
"post-user-login": "post-user-login";
|
|
50
|
-
"validate-registration-username": "validate-registration-username";
|
|
51
|
-
"pre-user-deletion": "pre-user-deletion";
|
|
52
|
-
"post-user-deletion": "post-user-deletion";
|
|
53
59
|
}>;
|
|
54
60
|
form_id: z.ZodString;
|
|
55
61
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -122,12 +128,7 @@ export declare const hookSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
122
128
|
url: z.ZodString;
|
|
123
129
|
}, z.core.$strip>, z.ZodObject<{
|
|
124
130
|
trigger_id: z.ZodEnum<{
|
|
125
|
-
"pre-user-registration": "pre-user-registration";
|
|
126
|
-
"post-user-registration": "post-user-registration";
|
|
127
131
|
"post-user-login": "post-user-login";
|
|
128
|
-
"validate-registration-username": "validate-registration-username";
|
|
129
|
-
"pre-user-deletion": "pre-user-deletion";
|
|
130
|
-
"post-user-deletion": "post-user-deletion";
|
|
131
132
|
}>;
|
|
132
133
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
133
134
|
synchronous: z.ZodDefault<z.ZodBoolean>;
|