@authhero/adapter-interfaces 0.79.0 → 0.81.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/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +389 -424
- package/dist/adapter-interfaces.mjs +816 -782
- package/package.json +1 -1
|
@@ -1,634 +1,634 @@
|
|
|
1
|
-
import { z as
|
|
2
|
-
const
|
|
3
|
-
start:
|
|
4
|
-
limit:
|
|
5
|
-
length:
|
|
6
|
-
}),
|
|
7
|
-
created_at:
|
|
8
|
-
updated_at:
|
|
9
|
-
}), h =
|
|
10
|
-
email:
|
|
11
|
-
email_verified:
|
|
12
|
-
name:
|
|
13
|
-
username:
|
|
14
|
-
given_name:
|
|
15
|
-
phone_number:
|
|
16
|
-
phone_verified:
|
|
17
|
-
family_name:
|
|
18
|
-
}).catchall(
|
|
19
|
-
connection:
|
|
20
|
-
user_id:
|
|
21
|
-
provider:
|
|
22
|
-
isSocial:
|
|
23
|
-
access_token:
|
|
24
|
-
access_token_secret:
|
|
25
|
-
refresh_token:
|
|
1
|
+
import { z as e } from "@hono/zod-openapi";
|
|
2
|
+
const Fe = e.object({
|
|
3
|
+
start: e.number(),
|
|
4
|
+
limit: e.number(),
|
|
5
|
+
length: e.number()
|
|
6
|
+
}), a = e.object({
|
|
7
|
+
created_at: e.string(),
|
|
8
|
+
updated_at: e.string()
|
|
9
|
+
}), h = e.object({
|
|
10
|
+
email: e.string().optional(),
|
|
11
|
+
email_verified: e.boolean().optional(),
|
|
12
|
+
name: e.string().optional(),
|
|
13
|
+
username: e.string().optional(),
|
|
14
|
+
given_name: e.string().optional(),
|
|
15
|
+
phone_number: e.string().optional(),
|
|
16
|
+
phone_verified: e.boolean().optional(),
|
|
17
|
+
family_name: e.string().optional()
|
|
18
|
+
}).catchall(e.any()), A = e.object({
|
|
19
|
+
connection: e.string(),
|
|
20
|
+
user_id: e.string(),
|
|
21
|
+
provider: e.string(),
|
|
22
|
+
isSocial: e.boolean(),
|
|
23
|
+
access_token: e.string().optional(),
|
|
24
|
+
access_token_secret: e.string().optional(),
|
|
25
|
+
refresh_token: e.string().optional(),
|
|
26
26
|
profileData: h.optional()
|
|
27
|
-
}), l =
|
|
28
|
-
email:
|
|
29
|
-
username:
|
|
30
|
-
phone_number:
|
|
31
|
-
given_name:
|
|
32
|
-
family_name:
|
|
33
|
-
nickname:
|
|
34
|
-
name:
|
|
35
|
-
picture:
|
|
36
|
-
locale:
|
|
37
|
-
linked_to:
|
|
38
|
-
profileData:
|
|
39
|
-
user_id:
|
|
40
|
-
app_metadata:
|
|
41
|
-
user_metadata:
|
|
27
|
+
}), l = e.object({
|
|
28
|
+
email: e.string().optional().transform((t) => t && t.toLowerCase()),
|
|
29
|
+
username: e.string().optional(),
|
|
30
|
+
phone_number: e.string().optional(),
|
|
31
|
+
given_name: e.string().optional(),
|
|
32
|
+
family_name: e.string().optional(),
|
|
33
|
+
nickname: e.string().optional(),
|
|
34
|
+
name: e.string().optional(),
|
|
35
|
+
picture: e.string().optional(),
|
|
36
|
+
locale: e.string().optional(),
|
|
37
|
+
linked_to: e.string().optional(),
|
|
38
|
+
profileData: e.string().optional(),
|
|
39
|
+
user_id: e.string().optional(),
|
|
40
|
+
app_metadata: e.any().default({}).optional(),
|
|
41
|
+
user_metadata: e.any().default({}).optional()
|
|
42
42
|
}), b = l.extend({
|
|
43
|
-
email_verified:
|
|
44
|
-
verify_email:
|
|
45
|
-
last_ip:
|
|
46
|
-
last_login:
|
|
47
|
-
user_id:
|
|
48
|
-
provider:
|
|
49
|
-
connection:
|
|
50
|
-
is_social:
|
|
51
|
-
}), C =
|
|
43
|
+
email_verified: e.boolean().default(!1),
|
|
44
|
+
verify_email: e.boolean().optional(),
|
|
45
|
+
last_ip: e.string().optional(),
|
|
46
|
+
last_login: e.string().optional(),
|
|
47
|
+
user_id: e.string().optional(),
|
|
48
|
+
provider: e.string().default("email"),
|
|
49
|
+
connection: e.string().default("email"),
|
|
50
|
+
is_social: e.boolean().optional()
|
|
51
|
+
}), C = e.object({
|
|
52
52
|
...b.shape,
|
|
53
|
-
...
|
|
54
|
-
user_id:
|
|
55
|
-
is_social:
|
|
56
|
-
email:
|
|
57
|
-
login_count:
|
|
58
|
-
identities:
|
|
59
|
-
}),
|
|
60
|
-
login_count:
|
|
61
|
-
multifactor:
|
|
62
|
-
last_ip:
|
|
63
|
-
last_login:
|
|
64
|
-
user_id:
|
|
65
|
-
}).catchall(
|
|
66
|
-
let f = (
|
|
67
|
-
let
|
|
68
|
-
for (;
|
|
69
|
-
|
|
70
|
-
return
|
|
53
|
+
...a.shape,
|
|
54
|
+
user_id: e.string(),
|
|
55
|
+
is_social: e.boolean(),
|
|
56
|
+
email: e.string().optional(),
|
|
57
|
+
login_count: e.number().default(0),
|
|
58
|
+
identities: e.array(A).optional()
|
|
59
|
+
}), je = C, ke = l.extend({
|
|
60
|
+
login_count: e.number(),
|
|
61
|
+
multifactor: e.array(e.string()).optional(),
|
|
62
|
+
last_ip: e.string().optional(),
|
|
63
|
+
last_login: e.string().optional(),
|
|
64
|
+
user_id: e.string()
|
|
65
|
+
}).catchall(e.any()), I = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
66
|
+
let f = (t = 21) => {
|
|
67
|
+
let o = "", s = crypto.getRandomValues(new Uint8Array(t));
|
|
68
|
+
for (; t--; )
|
|
69
|
+
o += I[s[t] & 63];
|
|
70
|
+
return o;
|
|
71
71
|
};
|
|
72
|
-
const O =
|
|
73
|
-
audience:
|
|
74
|
-
recipient:
|
|
75
|
-
createUpnClaim:
|
|
76
|
-
mapUnknownClaimsAsIs:
|
|
77
|
-
passthroughClaimsWithNoMapping:
|
|
78
|
-
mapIdentities:
|
|
79
|
-
signatureAlgorithm:
|
|
80
|
-
digestAlgorithm:
|
|
81
|
-
issuer:
|
|
82
|
-
destination:
|
|
83
|
-
lifetimeInSeconds:
|
|
84
|
-
signResponse:
|
|
85
|
-
nameIdentifierFormat:
|
|
86
|
-
nameIdentifierProbes:
|
|
87
|
-
authnContextClassRef:
|
|
88
|
-
mappings:
|
|
89
|
-
}),
|
|
90
|
-
id:
|
|
91
|
-
name:
|
|
92
|
-
callbacks:
|
|
72
|
+
const O = e.object({
|
|
73
|
+
audience: e.string().optional(),
|
|
74
|
+
recipient: e.string().optional(),
|
|
75
|
+
createUpnClaim: e.boolean().optional(),
|
|
76
|
+
mapUnknownClaimsAsIs: e.boolean().optional(),
|
|
77
|
+
passthroughClaimsWithNoMapping: e.boolean().optional(),
|
|
78
|
+
mapIdentities: e.boolean().optional(),
|
|
79
|
+
signatureAlgorithm: e.string().optional(),
|
|
80
|
+
digestAlgorithm: e.string().optional(),
|
|
81
|
+
issuer: e.string().optional(),
|
|
82
|
+
destination: e.string().optional(),
|
|
83
|
+
lifetimeInSeconds: e.number().optional(),
|
|
84
|
+
signResponse: e.boolean().optional(),
|
|
85
|
+
nameIdentifierFormat: e.string().optional(),
|
|
86
|
+
nameIdentifierProbes: e.array(e.string()).optional(),
|
|
87
|
+
authnContextClassRef: e.string().optional(),
|
|
88
|
+
mappings: e.record(e.string()).optional()
|
|
89
|
+
}), T = e.object({
|
|
90
|
+
id: e.string(),
|
|
91
|
+
name: e.string(),
|
|
92
|
+
callbacks: e.array(e.string()).default([]).optional().openapi({
|
|
93
93
|
description: "Comma-separated list of URLs whitelisted to use as a callback to the client after authentication."
|
|
94
94
|
}),
|
|
95
|
-
allowed_origins:
|
|
95
|
+
allowed_origins: e.array(e.string()).default([]).optional().openapi({
|
|
96
96
|
description: "Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level. Query strings and hash information are not taken into account when validating these URLs."
|
|
97
97
|
}),
|
|
98
|
-
web_origins:
|
|
98
|
+
web_origins: e.array(e.string()).default([]).optional().openapi({
|
|
99
99
|
description: "Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."
|
|
100
100
|
}),
|
|
101
|
-
allowed_logout_urls:
|
|
101
|
+
allowed_logout_urls: e.array(e.string()).default([]).optional().openapi({
|
|
102
102
|
description: "Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."
|
|
103
103
|
}),
|
|
104
|
-
allowed_clients:
|
|
104
|
+
allowed_clients: e.array(e.string()).default([]).optional().openapi({
|
|
105
105
|
description: "Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients"
|
|
106
106
|
}),
|
|
107
|
-
addons:
|
|
107
|
+
addons: e.object({
|
|
108
108
|
samlp: O.optional()
|
|
109
109
|
}).default({}).optional().openapi({
|
|
110
110
|
description: "Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."
|
|
111
111
|
}),
|
|
112
|
-
email_validation:
|
|
112
|
+
email_validation: e.enum(["enabled", "disabled", "enforced"]).default("enforced").optional().openapi({
|
|
113
113
|
description: "Defines if it possible to sign in with an unverified email and if verification emails will be sent. This is not available in auth0"
|
|
114
114
|
}),
|
|
115
|
-
client_secret:
|
|
116
|
-
disable_sign_ups:
|
|
115
|
+
client_secret: e.string().default(() => f()).optional(),
|
|
116
|
+
disable_sign_ups: e.boolean().optional().default(!1).openapi({
|
|
117
117
|
description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
|
|
118
118
|
}),
|
|
119
|
-
client_metadata:
|
|
120
|
-
}),
|
|
121
|
-
created_at:
|
|
122
|
-
updated_at:
|
|
123
|
-
...
|
|
124
|
-
}), i =
|
|
125
|
-
x:
|
|
126
|
-
y:
|
|
119
|
+
client_metadata: e.record(e.string().length(255)).optional()
|
|
120
|
+
}), N = e.object({
|
|
121
|
+
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
122
|
+
updated_at: e.string().transform((t) => t === null ? "" : t),
|
|
123
|
+
...T.shape
|
|
124
|
+
}), i = e.object({
|
|
125
|
+
x: e.number(),
|
|
126
|
+
y: e.number()
|
|
127
127
|
});
|
|
128
|
-
var c = /* @__PURE__ */ ((
|
|
129
|
-
const r =
|
|
130
|
-
id:
|
|
131
|
-
category:
|
|
132
|
-
type:
|
|
128
|
+
var c = /* @__PURE__ */ ((t) => (t.RICH_TEXT = "RICH_TEXT", t.NEXT_BUTTON = "NEXT_BUTTON", t.BACK_BUTTON = "BACK_BUTTON", t.SUBMIT_BUTTON = "SUBMIT_BUTTON", t.DIVIDER = "DIVIDER", t.TEXT = "TEXT", t.EMAIL = "EMAIL", t.PASSWORD = "PASSWORD", t.NUMBER = "NUMBER", t.PHONE = "PHONE", t.DATE = "DATE", t.CHECKBOX = "CHECKBOX", t.RADIO = "RADIO", t.SELECT = "SELECT", t.HIDDEN = "HIDDEN", t.LEGAL = "LEGAL", t))(c || {}), p = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.FIELD = "FIELD", t))(p || {});
|
|
129
|
+
const r = e.object({
|
|
130
|
+
id: e.string(),
|
|
131
|
+
category: e.nativeEnum(p),
|
|
132
|
+
type: e.nativeEnum(c)
|
|
133
133
|
}), R = r.extend({
|
|
134
|
-
category:
|
|
134
|
+
category: e.literal(
|
|
135
135
|
"BLOCK"
|
|
136
136
|
/* BLOCK */
|
|
137
137
|
),
|
|
138
|
-
type:
|
|
138
|
+
type: e.literal(
|
|
139
139
|
"RICH_TEXT"
|
|
140
140
|
/* RICH_TEXT */
|
|
141
141
|
),
|
|
142
|
-
config:
|
|
143
|
-
content:
|
|
142
|
+
config: e.object({
|
|
143
|
+
content: e.string()
|
|
144
144
|
}).passthrough()
|
|
145
145
|
}), L = r.extend({
|
|
146
|
-
category:
|
|
146
|
+
category: e.literal(
|
|
147
147
|
"BLOCK"
|
|
148
148
|
/* BLOCK */
|
|
149
149
|
),
|
|
150
|
-
type:
|
|
151
|
-
|
|
150
|
+
type: e.union([
|
|
151
|
+
e.literal(
|
|
152
152
|
"NEXT_BUTTON"
|
|
153
153
|
/* NEXT_BUTTON */
|
|
154
154
|
),
|
|
155
|
-
|
|
155
|
+
e.literal(
|
|
156
156
|
"BACK_BUTTON"
|
|
157
157
|
/* BACK_BUTTON */
|
|
158
158
|
),
|
|
159
|
-
|
|
159
|
+
e.literal(
|
|
160
160
|
"SUBMIT_BUTTON"
|
|
161
161
|
/* SUBMIT_BUTTON */
|
|
162
162
|
)
|
|
163
163
|
]),
|
|
164
|
-
config:
|
|
165
|
-
text:
|
|
164
|
+
config: e.object({
|
|
165
|
+
text: e.string()
|
|
166
166
|
}).passthrough()
|
|
167
167
|
}), D = r.extend({
|
|
168
|
-
category:
|
|
168
|
+
category: e.literal(
|
|
169
169
|
"FIELD"
|
|
170
170
|
/* FIELD */
|
|
171
171
|
),
|
|
172
|
-
type:
|
|
172
|
+
type: e.literal(
|
|
173
173
|
"LEGAL"
|
|
174
174
|
/* LEGAL */
|
|
175
175
|
),
|
|
176
|
-
required:
|
|
177
|
-
sensitive:
|
|
178
|
-
config:
|
|
179
|
-
text:
|
|
176
|
+
required: e.boolean().optional(),
|
|
177
|
+
sensitive: e.boolean().optional(),
|
|
178
|
+
config: e.object({
|
|
179
|
+
text: e.string()
|
|
180
180
|
}).passthrough()
|
|
181
181
|
}), y = r.extend({
|
|
182
|
-
category:
|
|
182
|
+
category: e.literal(
|
|
183
183
|
"FIELD"
|
|
184
184
|
/* FIELD */
|
|
185
185
|
),
|
|
186
|
-
type:
|
|
187
|
-
|
|
186
|
+
type: e.union([
|
|
187
|
+
e.literal(
|
|
188
188
|
"TEXT"
|
|
189
189
|
/* TEXT */
|
|
190
190
|
),
|
|
191
|
-
|
|
191
|
+
e.literal(
|
|
192
192
|
"EMAIL"
|
|
193
193
|
/* EMAIL */
|
|
194
194
|
),
|
|
195
|
-
|
|
195
|
+
e.literal(
|
|
196
196
|
"PASSWORD"
|
|
197
197
|
/* PASSWORD */
|
|
198
198
|
),
|
|
199
|
-
|
|
199
|
+
e.literal(
|
|
200
200
|
"NUMBER"
|
|
201
201
|
/* NUMBER */
|
|
202
202
|
),
|
|
203
|
-
|
|
203
|
+
e.literal(
|
|
204
204
|
"PHONE"
|
|
205
205
|
/* PHONE */
|
|
206
206
|
),
|
|
207
|
-
|
|
207
|
+
e.literal(
|
|
208
208
|
"DATE"
|
|
209
209
|
/* DATE */
|
|
210
210
|
),
|
|
211
|
-
|
|
211
|
+
e.literal(
|
|
212
212
|
"CHECKBOX"
|
|
213
213
|
/* CHECKBOX */
|
|
214
214
|
),
|
|
215
|
-
|
|
215
|
+
e.literal(
|
|
216
216
|
"RADIO"
|
|
217
217
|
/* RADIO */
|
|
218
218
|
),
|
|
219
|
-
|
|
219
|
+
e.literal(
|
|
220
220
|
"SELECT"
|
|
221
221
|
/* SELECT */
|
|
222
222
|
),
|
|
223
|
-
|
|
223
|
+
e.literal(
|
|
224
224
|
"HIDDEN"
|
|
225
225
|
/* HIDDEN */
|
|
226
226
|
)
|
|
227
227
|
]),
|
|
228
|
-
required:
|
|
229
|
-
sensitive:
|
|
230
|
-
config:
|
|
231
|
-
label:
|
|
232
|
-
placeholder:
|
|
228
|
+
required: e.boolean().optional(),
|
|
229
|
+
sensitive: e.boolean().optional(),
|
|
230
|
+
config: e.object({
|
|
231
|
+
label: e.string().optional(),
|
|
232
|
+
placeholder: e.string().optional()
|
|
233
233
|
}).passthrough()
|
|
234
|
-
}), U =
|
|
235
|
-
id:
|
|
236
|
-
category:
|
|
237
|
-
type:
|
|
238
|
-
}).passthrough(), F =
|
|
234
|
+
}), U = e.object({
|
|
235
|
+
id: e.string(),
|
|
236
|
+
category: e.string(),
|
|
237
|
+
type: e.string()
|
|
238
|
+
}).passthrough(), F = e.union([
|
|
239
239
|
R,
|
|
240
240
|
L,
|
|
241
241
|
D,
|
|
242
242
|
y,
|
|
243
243
|
U
|
|
244
244
|
]);
|
|
245
|
-
var j = /* @__PURE__ */ ((
|
|
246
|
-
const k =
|
|
247
|
-
id:
|
|
248
|
-
type:
|
|
245
|
+
var j = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(j || {});
|
|
246
|
+
const k = e.object({
|
|
247
|
+
id: e.string(),
|
|
248
|
+
type: e.literal(
|
|
249
249
|
"STEP"
|
|
250
250
|
/* STEP */
|
|
251
251
|
),
|
|
252
252
|
coordinates: i,
|
|
253
|
-
alias:
|
|
254
|
-
config:
|
|
255
|
-
components:
|
|
256
|
-
next_node:
|
|
253
|
+
alias: e.string().optional(),
|
|
254
|
+
config: e.object({
|
|
255
|
+
components: e.array(F),
|
|
256
|
+
next_node: e.string()
|
|
257
257
|
}).passthrough()
|
|
258
|
-
}), w =
|
|
259
|
-
id:
|
|
260
|
-
type:
|
|
258
|
+
}), w = e.object({
|
|
259
|
+
id: e.string(),
|
|
260
|
+
type: e.literal(
|
|
261
261
|
"FLOW"
|
|
262
262
|
/* FLOW */
|
|
263
263
|
),
|
|
264
264
|
coordinates: i,
|
|
265
|
-
alias:
|
|
266
|
-
config:
|
|
267
|
-
flow_id:
|
|
268
|
-
next_node:
|
|
265
|
+
alias: e.string().optional(),
|
|
266
|
+
config: e.object({
|
|
267
|
+
flow_id: e.string(),
|
|
268
|
+
next_node: e.string()
|
|
269
269
|
})
|
|
270
|
-
}),
|
|
271
|
-
id:
|
|
272
|
-
type:
|
|
270
|
+
}), P = e.object({
|
|
271
|
+
id: e.string(),
|
|
272
|
+
type: e.string(),
|
|
273
273
|
coordinates: i
|
|
274
|
-
}).passthrough(),
|
|
274
|
+
}).passthrough(), v = e.union([
|
|
275
275
|
k,
|
|
276
276
|
w,
|
|
277
|
-
|
|
278
|
-
]),
|
|
279
|
-
next_node:
|
|
277
|
+
P
|
|
278
|
+
]), H = e.object({
|
|
279
|
+
next_node: e.string(),
|
|
280
280
|
coordinates: i
|
|
281
|
-
}).passthrough(), M =
|
|
282
|
-
resume_flow:
|
|
281
|
+
}).passthrough(), M = e.object({
|
|
282
|
+
resume_flow: e.boolean().optional(),
|
|
283
283
|
coordinates: i
|
|
284
|
-
}).passthrough(), G =
|
|
285
|
-
id:
|
|
286
|
-
name:
|
|
287
|
-
languages:
|
|
288
|
-
primary:
|
|
284
|
+
}).passthrough(), G = e.object({
|
|
285
|
+
id: e.string(),
|
|
286
|
+
name: e.string(),
|
|
287
|
+
languages: e.object({
|
|
288
|
+
primary: e.string()
|
|
289
289
|
}).passthrough(),
|
|
290
|
-
nodes:
|
|
291
|
-
start:
|
|
290
|
+
nodes: e.array(v),
|
|
291
|
+
start: H,
|
|
292
292
|
ending: M,
|
|
293
|
-
created_at:
|
|
294
|
-
updated_at:
|
|
295
|
-
links:
|
|
296
|
-
sdkSrc:
|
|
297
|
-
sdk_src:
|
|
293
|
+
created_at: e.string(),
|
|
294
|
+
updated_at: e.string(),
|
|
295
|
+
links: e.object({
|
|
296
|
+
sdkSrc: e.string().optional(),
|
|
297
|
+
sdk_src: e.string().optional()
|
|
298
298
|
}).passthrough()
|
|
299
|
-
}).passthrough(),
|
|
299
|
+
}).passthrough(), we = G.omit({
|
|
300
300
|
id: !0,
|
|
301
301
|
created_at: !0,
|
|
302
302
|
updated_at: !0
|
|
303
303
|
});
|
|
304
|
-
var d = /* @__PURE__ */ ((
|
|
305
|
-
const x =
|
|
306
|
-
client_id:
|
|
307
|
-
act_as:
|
|
308
|
-
response_type:
|
|
309
|
-
response_mode:
|
|
310
|
-
redirect_uri:
|
|
311
|
-
audience:
|
|
312
|
-
organization:
|
|
313
|
-
state:
|
|
314
|
-
nonce:
|
|
315
|
-
scope:
|
|
316
|
-
prompt:
|
|
317
|
-
code_challenge_method:
|
|
318
|
-
code_challenge:
|
|
319
|
-
username:
|
|
320
|
-
ui_locales:
|
|
304
|
+
var d = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(d || {}), g = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(g || {}), E = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(E || {});
|
|
305
|
+
const x = e.object({
|
|
306
|
+
client_id: e.string(),
|
|
307
|
+
act_as: e.string().optional(),
|
|
308
|
+
response_type: e.nativeEnum(d).optional(),
|
|
309
|
+
response_mode: e.nativeEnum(g).optional(),
|
|
310
|
+
redirect_uri: e.string().optional(),
|
|
311
|
+
audience: e.string().optional(),
|
|
312
|
+
organization: e.string().optional(),
|
|
313
|
+
state: e.string().optional(),
|
|
314
|
+
nonce: e.string().optional(),
|
|
315
|
+
scope: e.string().optional(),
|
|
316
|
+
prompt: e.string().optional(),
|
|
317
|
+
code_challenge_method: e.nativeEnum(E).optional(),
|
|
318
|
+
code_challenge: e.string().optional(),
|
|
319
|
+
username: e.string().optional(),
|
|
320
|
+
ui_locales: e.string().optional(),
|
|
321
321
|
// The following fields are not available in Auth0
|
|
322
|
-
vendor_id:
|
|
323
|
-
}),
|
|
324
|
-
colors:
|
|
325
|
-
primary:
|
|
326
|
-
page_background:
|
|
327
|
-
type:
|
|
328
|
-
start:
|
|
329
|
-
end:
|
|
330
|
-
angle_deg:
|
|
322
|
+
vendor_id: e.string().optional()
|
|
323
|
+
}), Pe = e.object({
|
|
324
|
+
colors: e.object({
|
|
325
|
+
primary: e.string(),
|
|
326
|
+
page_background: e.object({
|
|
327
|
+
type: e.string().optional(),
|
|
328
|
+
start: e.string().optional(),
|
|
329
|
+
end: e.string().optional(),
|
|
330
|
+
angle_deg: e.number().optional()
|
|
331
331
|
}).optional()
|
|
332
332
|
}).optional(),
|
|
333
|
-
logo_url:
|
|
334
|
-
favicon_url:
|
|
335
|
-
font:
|
|
336
|
-
url:
|
|
333
|
+
logo_url: e.string().optional(),
|
|
334
|
+
favicon_url: e.string().optional(),
|
|
335
|
+
font: e.object({
|
|
336
|
+
url: e.string()
|
|
337
337
|
}).optional()
|
|
338
|
-
}), K =
|
|
339
|
-
kid:
|
|
340
|
-
team_id:
|
|
341
|
-
realms:
|
|
342
|
-
authentication_method:
|
|
343
|
-
client_id:
|
|
344
|
-
client_secret:
|
|
345
|
-
app_secret:
|
|
346
|
-
scope:
|
|
347
|
-
authorization_endpoint:
|
|
348
|
-
token_endpoint:
|
|
349
|
-
userinfo_endpoint:
|
|
350
|
-
jwks_uri:
|
|
351
|
-
discovery_url:
|
|
352
|
-
issuer:
|
|
353
|
-
provider:
|
|
354
|
-
from:
|
|
355
|
-
twilio_sid:
|
|
356
|
-
twilio_token:
|
|
357
|
-
}), B =
|
|
358
|
-
id:
|
|
359
|
-
name:
|
|
360
|
-
strategy:
|
|
338
|
+
}), K = e.object({
|
|
339
|
+
kid: e.string().optional(),
|
|
340
|
+
team_id: e.string().optional(),
|
|
341
|
+
realms: e.string().optional(),
|
|
342
|
+
authentication_method: e.string().optional(),
|
|
343
|
+
client_id: e.string().optional(),
|
|
344
|
+
client_secret: e.string().optional(),
|
|
345
|
+
app_secret: e.string().optional(),
|
|
346
|
+
scope: e.string().optional(),
|
|
347
|
+
authorization_endpoint: e.string().optional(),
|
|
348
|
+
token_endpoint: e.string().optional(),
|
|
349
|
+
userinfo_endpoint: e.string().optional(),
|
|
350
|
+
jwks_uri: e.string().optional(),
|
|
351
|
+
discovery_url: e.string().optional(),
|
|
352
|
+
issuer: e.string().optional(),
|
|
353
|
+
provider: e.string().optional(),
|
|
354
|
+
from: e.string().optional(),
|
|
355
|
+
twilio_sid: e.string().optional(),
|
|
356
|
+
twilio_token: e.string().optional()
|
|
357
|
+
}), B = e.object({
|
|
358
|
+
id: e.string().optional(),
|
|
359
|
+
name: e.string(),
|
|
360
|
+
strategy: e.string(),
|
|
361
361
|
options: K.default({}),
|
|
362
|
-
enabled_clients:
|
|
363
|
-
response_type:
|
|
364
|
-
response_mode:
|
|
365
|
-
}), X =
|
|
366
|
-
id:
|
|
367
|
-
created_at:
|
|
368
|
-
updated_at:
|
|
369
|
-
}).extend(B.shape),
|
|
370
|
-
name:
|
|
371
|
-
audience:
|
|
372
|
-
sender_email:
|
|
373
|
-
sender_name:
|
|
374
|
-
support_url:
|
|
375
|
-
logo:
|
|
376
|
-
primary_color:
|
|
377
|
-
secondary_color:
|
|
378
|
-
language:
|
|
379
|
-
id:
|
|
380
|
-
}),
|
|
381
|
-
created_at:
|
|
382
|
-
updated_at:
|
|
383
|
-
...
|
|
384
|
-
id:
|
|
362
|
+
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
363
|
+
response_type: e.custom().optional(),
|
|
364
|
+
response_mode: e.custom().optional()
|
|
365
|
+
}), X = e.object({
|
|
366
|
+
id: e.string(),
|
|
367
|
+
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
368
|
+
updated_at: e.string().transform((t) => t === null ? "" : t)
|
|
369
|
+
}).extend(B.shape), W = e.object({
|
|
370
|
+
name: e.string(),
|
|
371
|
+
audience: e.string(),
|
|
372
|
+
sender_email: e.string().email(),
|
|
373
|
+
sender_name: e.string(),
|
|
374
|
+
support_url: e.string().url().optional(),
|
|
375
|
+
logo: e.string().url().optional(),
|
|
376
|
+
primary_color: e.string().optional(),
|
|
377
|
+
secondary_color: e.string().optional(),
|
|
378
|
+
language: e.string().optional(),
|
|
379
|
+
id: e.string().optional()
|
|
380
|
+
}), V = e.object({
|
|
381
|
+
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
382
|
+
updated_at: e.string().transform((t) => t === null ? "" : t),
|
|
383
|
+
...W.shape,
|
|
384
|
+
id: e.string()
|
|
385
385
|
});
|
|
386
|
-
|
|
387
|
-
...
|
|
388
|
-
tenant:
|
|
389
|
-
connections:
|
|
386
|
+
e.object({
|
|
387
|
+
...N.shape,
|
|
388
|
+
tenant: V,
|
|
389
|
+
connections: e.array(X)
|
|
390
390
|
});
|
|
391
|
-
const Y =
|
|
391
|
+
const Y = e.enum([
|
|
392
392
|
"password_reset",
|
|
393
393
|
"email_verification",
|
|
394
394
|
"otp",
|
|
395
395
|
"authorization_code",
|
|
396
396
|
"oauth2_state",
|
|
397
397
|
"ticket"
|
|
398
|
-
]), q =
|
|
399
|
-
code_id:
|
|
398
|
+
]), q = e.object({
|
|
399
|
+
code_id: e.string().openapi({
|
|
400
400
|
description: "The code that will be used in for instance an email verification flow"
|
|
401
401
|
}),
|
|
402
|
-
login_id:
|
|
402
|
+
login_id: e.string().openapi({
|
|
403
403
|
description: "The id of the login session that the code is connected to"
|
|
404
404
|
}),
|
|
405
|
-
connection_id:
|
|
405
|
+
connection_id: e.string().optional().openapi({
|
|
406
406
|
description: "The connection that the code is connected to"
|
|
407
407
|
}),
|
|
408
408
|
code_type: Y,
|
|
409
|
-
code_verifier:
|
|
409
|
+
code_verifier: e.string().optional().openapi({
|
|
410
410
|
description: "The code verifier used in PKCE in outbound flows"
|
|
411
411
|
}),
|
|
412
|
-
code_challenge:
|
|
412
|
+
code_challenge: e.string().optional().openapi({
|
|
413
413
|
description: "The code challenge used in PKCE in outbound flows"
|
|
414
414
|
}),
|
|
415
|
-
code_challenge_method:
|
|
415
|
+
code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({
|
|
416
416
|
description: "The code challenge method used in PKCE in outbound flows"
|
|
417
417
|
}),
|
|
418
|
-
redirect_uri:
|
|
418
|
+
redirect_uri: e.string().optional().openapi({
|
|
419
419
|
description: "The redirect URI associated with the code"
|
|
420
420
|
}),
|
|
421
|
-
nonce:
|
|
421
|
+
nonce: e.string().optional().openapi({
|
|
422
422
|
description: "The nonce value used for security in OIDC flows"
|
|
423
423
|
}),
|
|
424
|
-
state:
|
|
424
|
+
state: e.string().optional().openapi({
|
|
425
425
|
description: "The state parameter used for CSRF protection in OAuth flows"
|
|
426
426
|
}),
|
|
427
|
-
expires_at:
|
|
428
|
-
used_at:
|
|
429
|
-
user_id:
|
|
430
|
-
}),
|
|
427
|
+
expires_at: e.string(),
|
|
428
|
+
used_at: e.string().optional(),
|
|
429
|
+
user_id: e.string().optional()
|
|
430
|
+
}), ve = e.object({
|
|
431
431
|
...q.shape,
|
|
432
|
-
created_at:
|
|
433
|
-
}), z =
|
|
434
|
-
domain:
|
|
435
|
-
custom_domain_id:
|
|
436
|
-
type:
|
|
437
|
-
verification_method:
|
|
438
|
-
tls_policy:
|
|
439
|
-
custom_client_ip_header:
|
|
432
|
+
created_at: e.string()
|
|
433
|
+
}), z = e.object({
|
|
434
|
+
domain: e.string(),
|
|
435
|
+
custom_domain_id: e.string().optional(),
|
|
436
|
+
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
437
|
+
verification_method: e.enum(["txt"]).optional(),
|
|
438
|
+
tls_policy: e.enum(["recommended"]).optional(),
|
|
439
|
+
custom_client_ip_header: e.enum([
|
|
440
440
|
"true-client-ip",
|
|
441
441
|
"cf-connecting-ip",
|
|
442
442
|
"x-forwarded-for",
|
|
443
443
|
"x-azure-clientip",
|
|
444
444
|
"null"
|
|
445
445
|
]).optional(),
|
|
446
|
-
domain_metadata:
|
|
447
|
-
}), Q =
|
|
448
|
-
name:
|
|
449
|
-
record:
|
|
450
|
-
domain:
|
|
451
|
-
}), Z =
|
|
446
|
+
domain_metadata: e.record(e.string().max(255)).optional()
|
|
447
|
+
}), Q = e.object({
|
|
448
|
+
name: e.literal("txt"),
|
|
449
|
+
record: e.string(),
|
|
450
|
+
domain: e.string()
|
|
451
|
+
}), Z = e.object({
|
|
452
452
|
...z.shape,
|
|
453
|
-
custom_domain_id:
|
|
454
|
-
primary:
|
|
455
|
-
status:
|
|
456
|
-
origin_domain_name:
|
|
457
|
-
verification:
|
|
458
|
-
methods:
|
|
453
|
+
custom_domain_id: e.string(),
|
|
454
|
+
primary: e.boolean(),
|
|
455
|
+
status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
456
|
+
origin_domain_name: e.string().optional(),
|
|
457
|
+
verification: e.object({
|
|
458
|
+
methods: e.array(Q)
|
|
459
459
|
}).optional(),
|
|
460
|
-
tls_policy:
|
|
461
|
-
}),
|
|
462
|
-
tenant_id:
|
|
463
|
-
}),
|
|
464
|
-
id:
|
|
465
|
-
type:
|
|
466
|
-
label:
|
|
467
|
-
className:
|
|
468
|
-
disabled:
|
|
469
|
-
order:
|
|
470
|
-
visible:
|
|
471
|
-
customizations:
|
|
472
|
-
}), J =
|
|
473
|
-
|
|
474
|
-
id:
|
|
475
|
-
type:
|
|
476
|
-
config:
|
|
477
|
-
content:
|
|
460
|
+
tls_policy: e.string().optional()
|
|
461
|
+
}), He = Z.extend({
|
|
462
|
+
tenant_id: e.string()
|
|
463
|
+
}), Me = e.object({
|
|
464
|
+
id: e.string(),
|
|
465
|
+
type: e.literal("submit"),
|
|
466
|
+
label: e.string(),
|
|
467
|
+
className: e.string().optional(),
|
|
468
|
+
disabled: e.boolean().optional().default(!1),
|
|
469
|
+
order: e.number().optional(),
|
|
470
|
+
visible: e.boolean().optional().default(!0),
|
|
471
|
+
customizations: e.record(e.string(), e.any()).optional()
|
|
472
|
+
}), J = e.discriminatedUnion("type", [
|
|
473
|
+
e.object({
|
|
474
|
+
id: e.string(),
|
|
475
|
+
type: e.literal("RICH_TEXT"),
|
|
476
|
+
config: e.object({
|
|
477
|
+
content: e.string()
|
|
478
478
|
}),
|
|
479
|
-
order:
|
|
480
|
-
visible:
|
|
479
|
+
order: e.number().optional(),
|
|
480
|
+
visible: e.boolean().optional().default(!0)
|
|
481
481
|
}),
|
|
482
|
-
|
|
483
|
-
id:
|
|
484
|
-
type:
|
|
485
|
-
config:
|
|
486
|
-
text:
|
|
487
|
-
html:
|
|
482
|
+
e.object({
|
|
483
|
+
id: e.string(),
|
|
484
|
+
type: e.literal("LEGAL"),
|
|
485
|
+
config: e.object({
|
|
486
|
+
text: e.string(),
|
|
487
|
+
html: e.boolean().optional()
|
|
488
488
|
}),
|
|
489
|
-
required:
|
|
490
|
-
order:
|
|
491
|
-
visible:
|
|
489
|
+
required: e.boolean().optional(),
|
|
490
|
+
order: e.number().optional(),
|
|
491
|
+
visible: e.boolean().optional().default(!0)
|
|
492
492
|
}),
|
|
493
|
-
|
|
494
|
-
id:
|
|
495
|
-
type:
|
|
496
|
-
config:
|
|
497
|
-
placeholder:
|
|
498
|
-
multiline:
|
|
493
|
+
e.object({
|
|
494
|
+
id: e.string(),
|
|
495
|
+
type: e.literal("TEXT"),
|
|
496
|
+
config: e.object({
|
|
497
|
+
placeholder: e.string().optional(),
|
|
498
|
+
multiline: e.boolean().optional()
|
|
499
499
|
}),
|
|
500
|
-
required:
|
|
501
|
-
sensitive:
|
|
502
|
-
order:
|
|
503
|
-
visible:
|
|
500
|
+
required: e.boolean().optional(),
|
|
501
|
+
sensitive: e.boolean().optional(),
|
|
502
|
+
order: e.number().optional(),
|
|
503
|
+
visible: e.boolean().optional().default(!0)
|
|
504
504
|
}),
|
|
505
|
-
|
|
506
|
-
id:
|
|
507
|
-
type:
|
|
508
|
-
config:
|
|
509
|
-
text:
|
|
505
|
+
e.object({
|
|
506
|
+
id: e.string(),
|
|
507
|
+
type: e.literal("NEXT_BUTTON"),
|
|
508
|
+
config: e.object({
|
|
509
|
+
text: e.string().optional()
|
|
510
510
|
}),
|
|
511
|
-
order:
|
|
512
|
-
visible:
|
|
511
|
+
order: e.number().optional(),
|
|
512
|
+
visible: e.boolean().optional().default(!0)
|
|
513
513
|
})
|
|
514
514
|
// Add more component types as needed
|
|
515
|
-
]), $ =
|
|
516
|
-
name:
|
|
515
|
+
]), $ = e.object({
|
|
516
|
+
name: e.string().openapi({
|
|
517
517
|
description: "The name of the form"
|
|
518
518
|
}),
|
|
519
|
-
messages:
|
|
520
|
-
errors:
|
|
521
|
-
custom:
|
|
519
|
+
messages: e.object({
|
|
520
|
+
errors: e.record(e.string(), e.any()).optional(),
|
|
521
|
+
custom: e.record(e.string(), e.any()).optional()
|
|
522
522
|
}).optional(),
|
|
523
|
-
languages:
|
|
524
|
-
primary:
|
|
525
|
-
default:
|
|
523
|
+
languages: e.object({
|
|
524
|
+
primary: e.string().optional(),
|
|
525
|
+
default: e.string().optional()
|
|
526
526
|
}).optional(),
|
|
527
|
-
translations:
|
|
528
|
-
nodes:
|
|
529
|
-
|
|
527
|
+
translations: e.record(e.string(), e.any()).optional(),
|
|
528
|
+
nodes: e.array(
|
|
529
|
+
e.discriminatedUnion("type", [
|
|
530
530
|
// FLOW node
|
|
531
|
-
|
|
532
|
-
id:
|
|
533
|
-
type:
|
|
534
|
-
coordinates:
|
|
535
|
-
alias:
|
|
536
|
-
config:
|
|
537
|
-
flow_id:
|
|
538
|
-
next_node:
|
|
531
|
+
e.object({
|
|
532
|
+
id: e.string(),
|
|
533
|
+
type: e.literal("FLOW"),
|
|
534
|
+
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
535
|
+
alias: e.string().min(1).max(150).optional(),
|
|
536
|
+
config: e.object({
|
|
537
|
+
flow_id: e.string().max(30),
|
|
538
|
+
next_node: e.string()
|
|
539
539
|
})
|
|
540
540
|
}),
|
|
541
541
|
// ROUTER node
|
|
542
|
-
|
|
543
|
-
id:
|
|
544
|
-
type:
|
|
545
|
-
coordinates:
|
|
546
|
-
alias:
|
|
547
|
-
config:
|
|
548
|
-
rules:
|
|
549
|
-
|
|
550
|
-
id:
|
|
551
|
-
alias:
|
|
552
|
-
condition:
|
|
553
|
-
next_node:
|
|
542
|
+
e.object({
|
|
543
|
+
id: e.string(),
|
|
544
|
+
type: e.literal("ROUTER"),
|
|
545
|
+
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
546
|
+
alias: e.string().min(1).max(150),
|
|
547
|
+
config: e.object({
|
|
548
|
+
rules: e.array(
|
|
549
|
+
e.object({
|
|
550
|
+
id: e.string(),
|
|
551
|
+
alias: e.string().min(1).max(150).optional(),
|
|
552
|
+
condition: e.any(),
|
|
553
|
+
next_node: e.string()
|
|
554
554
|
})
|
|
555
555
|
),
|
|
556
|
-
fallback:
|
|
556
|
+
fallback: e.array(e.string())
|
|
557
557
|
})
|
|
558
558
|
}),
|
|
559
559
|
// STEP node
|
|
560
|
-
|
|
561
|
-
id:
|
|
562
|
-
type:
|
|
563
|
-
coordinates:
|
|
564
|
-
alias:
|
|
565
|
-
config:
|
|
566
|
-
components:
|
|
567
|
-
next_node:
|
|
560
|
+
e.object({
|
|
561
|
+
id: e.string(),
|
|
562
|
+
type: e.literal("STEP"),
|
|
563
|
+
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
564
|
+
alias: e.string().min(1).max(150).optional(),
|
|
565
|
+
config: e.object({
|
|
566
|
+
components: e.array(J),
|
|
567
|
+
next_node: e.string()
|
|
568
568
|
})
|
|
569
569
|
})
|
|
570
570
|
])
|
|
571
571
|
).optional(),
|
|
572
|
-
start:
|
|
573
|
-
hidden_fields:
|
|
574
|
-
next_node:
|
|
575
|
-
coordinates:
|
|
572
|
+
start: e.object({
|
|
573
|
+
hidden_fields: e.array(e.object({ key: e.string(), value: e.string() })).optional(),
|
|
574
|
+
next_node: e.string().optional(),
|
|
575
|
+
coordinates: e.object({ x: e.number(), y: e.number() }).optional()
|
|
576
576
|
}).optional(),
|
|
577
|
-
ending:
|
|
578
|
-
redirection:
|
|
579
|
-
delay:
|
|
580
|
-
target:
|
|
577
|
+
ending: e.object({
|
|
578
|
+
redirection: e.object({
|
|
579
|
+
delay: e.number().optional(),
|
|
580
|
+
target: e.string().optional()
|
|
581
581
|
}).optional(),
|
|
582
|
-
after_submit:
|
|
583
|
-
coordinates:
|
|
584
|
-
resume_flow:
|
|
582
|
+
after_submit: e.object({ flow_id: e.string().optional() }).optional(),
|
|
583
|
+
coordinates: e.object({ x: e.number(), y: e.number() }).optional(),
|
|
584
|
+
resume_flow: e.boolean().optional()
|
|
585
585
|
}).optional(),
|
|
586
|
-
style:
|
|
586
|
+
style: e.object({ css: e.string().optional() }).optional()
|
|
587
587
|
}).openapi({
|
|
588
588
|
description: "Schema for flow-based forms (matches new JSON structure)"
|
|
589
|
-
}),
|
|
590
|
-
...
|
|
589
|
+
}), Ge = e.object({
|
|
590
|
+
...a.shape,
|
|
591
591
|
...$.shape,
|
|
592
|
-
id:
|
|
593
|
-
}), u =
|
|
592
|
+
id: e.string()
|
|
593
|
+
}), u = e.enum([
|
|
594
594
|
"pre-user-signup",
|
|
595
595
|
"post-user-registration",
|
|
596
596
|
"post-user-login"
|
|
597
597
|
// Potentially other triggers specific to webhooks in the future
|
|
598
|
-
]), S =
|
|
598
|
+
]), S = e.enum([
|
|
599
599
|
"pre-user-signup",
|
|
600
600
|
"post-user-registration",
|
|
601
601
|
"post-user-login"
|
|
602
602
|
]), _ = {
|
|
603
|
-
enabled:
|
|
604
|
-
synchronous:
|
|
605
|
-
priority:
|
|
606
|
-
hook_id:
|
|
607
|
-
},
|
|
603
|
+
enabled: e.boolean().default(!1),
|
|
604
|
+
synchronous: e.boolean().default(!1),
|
|
605
|
+
priority: e.number().optional(),
|
|
606
|
+
hook_id: e.string().optional()
|
|
607
|
+
}, ee = e.object({
|
|
608
608
|
..._,
|
|
609
609
|
trigger_id: u,
|
|
610
|
-
url:
|
|
611
|
-
}),
|
|
610
|
+
url: e.string()
|
|
611
|
+
}), te = e.object({
|
|
612
612
|
..._,
|
|
613
613
|
trigger_id: S,
|
|
614
|
-
form_id:
|
|
615
|
-
}),
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
]),
|
|
614
|
+
form_id: e.string()
|
|
615
|
+
}), xe = e.union([
|
|
616
|
+
ee,
|
|
617
|
+
te
|
|
618
|
+
]), ne = e.object({
|
|
619
619
|
..._,
|
|
620
620
|
trigger_id: u,
|
|
621
|
-
...
|
|
622
|
-
hook_id:
|
|
623
|
-
url:
|
|
624
|
-
}),
|
|
621
|
+
...a.shape,
|
|
622
|
+
hook_id: e.string(),
|
|
623
|
+
url: e.string()
|
|
624
|
+
}), oe = e.object({
|
|
625
625
|
..._,
|
|
626
626
|
trigger_id: S,
|
|
627
|
-
...
|
|
628
|
-
hook_id:
|
|
629
|
-
form_id:
|
|
630
|
-
}),
|
|
631
|
-
alg:
|
|
627
|
+
...a.shape,
|
|
628
|
+
hook_id: e.string(),
|
|
629
|
+
form_id: e.string()
|
|
630
|
+
}), Ke = e.union([ne, oe]), ie = e.object({
|
|
631
|
+
alg: e.enum([
|
|
632
632
|
"RS256",
|
|
633
633
|
"RS384",
|
|
634
634
|
"RS512",
|
|
@@ -639,57 +639,57 @@ const Y = t.enum([
|
|
|
639
639
|
"HS384",
|
|
640
640
|
"HS512"
|
|
641
641
|
]),
|
|
642
|
-
e:
|
|
643
|
-
kid:
|
|
644
|
-
kty:
|
|
645
|
-
n:
|
|
646
|
-
x5t:
|
|
647
|
-
x5c:
|
|
648
|
-
use:
|
|
649
|
-
}),
|
|
650
|
-
keys:
|
|
651
|
-
}),
|
|
652
|
-
issuer:
|
|
653
|
-
authorization_endpoint:
|
|
654
|
-
token_endpoint:
|
|
655
|
-
device_authorization_endpoint:
|
|
656
|
-
userinfo_endpoint:
|
|
657
|
-
mfa_challenge_endpoint:
|
|
658
|
-
jwks_uri:
|
|
659
|
-
registration_endpoint:
|
|
660
|
-
revocation_endpoint:
|
|
661
|
-
scopes_supported:
|
|
662
|
-
response_types_supported:
|
|
663
|
-
code_challenge_methods_supported:
|
|
664
|
-
response_modes_supported:
|
|
665
|
-
subject_types_supported:
|
|
666
|
-
id_token_signing_alg_values_supported:
|
|
667
|
-
token_endpoint_auth_methods_supported:
|
|
668
|
-
claims_supported:
|
|
669
|
-
request_uri_parameter_supported:
|
|
670
|
-
request_parameter_supported:
|
|
671
|
-
token_endpoint_auth_signing_alg_values_supported:
|
|
672
|
-
}),
|
|
673
|
-
csrf_token:
|
|
674
|
-
auth0Client:
|
|
642
|
+
e: e.string(),
|
|
643
|
+
kid: e.string(),
|
|
644
|
+
kty: e.enum(["RSA", "EC", "oct"]),
|
|
645
|
+
n: e.string(),
|
|
646
|
+
x5t: e.string().optional(),
|
|
647
|
+
x5c: e.array(e.string()).optional(),
|
|
648
|
+
use: e.enum(["sig", "enc"]).optional()
|
|
649
|
+
}), Be = e.object({
|
|
650
|
+
keys: e.array(ie)
|
|
651
|
+
}), Xe = e.object({
|
|
652
|
+
issuer: e.string(),
|
|
653
|
+
authorization_endpoint: e.string(),
|
|
654
|
+
token_endpoint: e.string(),
|
|
655
|
+
device_authorization_endpoint: e.string(),
|
|
656
|
+
userinfo_endpoint: e.string(),
|
|
657
|
+
mfa_challenge_endpoint: e.string(),
|
|
658
|
+
jwks_uri: e.string(),
|
|
659
|
+
registration_endpoint: e.string(),
|
|
660
|
+
revocation_endpoint: e.string(),
|
|
661
|
+
scopes_supported: e.array(e.string()),
|
|
662
|
+
response_types_supported: e.array(e.string()),
|
|
663
|
+
code_challenge_methods_supported: e.array(e.string()),
|
|
664
|
+
response_modes_supported: e.array(e.string()),
|
|
665
|
+
subject_types_supported: e.array(e.string()),
|
|
666
|
+
id_token_signing_alg_values_supported: e.array(e.string()),
|
|
667
|
+
token_endpoint_auth_methods_supported: e.array(e.string()),
|
|
668
|
+
claims_supported: e.array(e.string()),
|
|
669
|
+
request_uri_parameter_supported: e.boolean(),
|
|
670
|
+
request_parameter_supported: e.boolean(),
|
|
671
|
+
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
672
|
+
}), se = e.object({
|
|
673
|
+
csrf_token: e.string(),
|
|
674
|
+
auth0Client: e.string().optional(),
|
|
675
675
|
authParams: x,
|
|
676
|
-
expires_at:
|
|
677
|
-
deleted_at:
|
|
678
|
-
ip:
|
|
679
|
-
useragent:
|
|
680
|
-
session_id:
|
|
681
|
-
authorization_url:
|
|
682
|
-
login_completed:
|
|
676
|
+
expires_at: e.string(),
|
|
677
|
+
deleted_at: e.string().optional(),
|
|
678
|
+
ip: e.string().optional(),
|
|
679
|
+
useragent: e.string().optional(),
|
|
680
|
+
session_id: e.string().optional(),
|
|
681
|
+
authorization_url: e.string().optional(),
|
|
682
|
+
login_completed: e.boolean().optional().default(!1)
|
|
683
683
|
}).openapi({
|
|
684
684
|
description: "This represents a login sesion"
|
|
685
|
-
}),
|
|
686
|
-
...
|
|
687
|
-
id:
|
|
685
|
+
}), We = e.object({
|
|
686
|
+
...se.shape,
|
|
687
|
+
id: e.string().openapi({
|
|
688
688
|
description: "This is is used as the state in the universal login"
|
|
689
689
|
}),
|
|
690
|
-
created_at:
|
|
691
|
-
updated_at:
|
|
692
|
-
}),
|
|
690
|
+
created_at: e.string(),
|
|
691
|
+
updated_at: e.string()
|
|
692
|
+
}), ae = {
|
|
693
693
|
// Network & System
|
|
694
694
|
ACLS_SUMMARY: "acls_summary",
|
|
695
695
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -856,316 +856,343 @@ const Y = t.enum([
|
|
|
856
856
|
WARNING_DURING_LOGIN: "w",
|
|
857
857
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
858
858
|
WARNING_USER_MANAGEMENT: "wum"
|
|
859
|
-
},
|
|
860
|
-
(
|
|
859
|
+
}, re = e.string().refine(
|
|
860
|
+
(t) => Object.values(ae).includes(t),
|
|
861
861
|
{ message: "Invalid log type" }
|
|
862
|
-
),
|
|
863
|
-
name:
|
|
864
|
-
version:
|
|
865
|
-
env:
|
|
866
|
-
node:
|
|
862
|
+
), _e = e.object({
|
|
863
|
+
name: e.string(),
|
|
864
|
+
version: e.string(),
|
|
865
|
+
env: e.object({
|
|
866
|
+
node: e.string().optional()
|
|
867
867
|
}).optional()
|
|
868
|
-
}),
|
|
869
|
-
type:
|
|
870
|
-
date:
|
|
871
|
-
description:
|
|
872
|
-
log_id:
|
|
873
|
-
_id:
|
|
874
|
-
ip:
|
|
875
|
-
user_agent:
|
|
876
|
-
details:
|
|
868
|
+
}), Ve = e.object({
|
|
869
|
+
type: re,
|
|
870
|
+
date: e.string(),
|
|
871
|
+
description: e.string().optional(),
|
|
872
|
+
log_id: e.string().optional(),
|
|
873
|
+
_id: e.string().optional(),
|
|
874
|
+
ip: e.string(),
|
|
875
|
+
user_agent: e.string(),
|
|
876
|
+
details: e.any().optional(),
|
|
877
877
|
// Using z.any() as a placeholder for "details" type
|
|
878
|
-
isMobile:
|
|
879
|
-
user_id:
|
|
880
|
-
user_name:
|
|
881
|
-
connection:
|
|
882
|
-
connection_id:
|
|
883
|
-
client_id:
|
|
884
|
-
client_name:
|
|
885
|
-
audience:
|
|
886
|
-
scope:
|
|
887
|
-
strategy:
|
|
888
|
-
strategy_type:
|
|
889
|
-
hostname:
|
|
890
|
-
auth0_client:
|
|
891
|
-
}),
|
|
892
|
-
user_id:
|
|
893
|
-
password:
|
|
894
|
-
algorithm:
|
|
895
|
-
}),
|
|
896
|
-
...
|
|
897
|
-
created_at:
|
|
898
|
-
updated_at:
|
|
899
|
-
}), m =
|
|
900
|
-
initial_user_agent:
|
|
901
|
-
initial_ip:
|
|
902
|
-
initial_asn:
|
|
903
|
-
last_user_agent:
|
|
904
|
-
last_ip:
|
|
905
|
-
last_asn:
|
|
906
|
-
}),
|
|
907
|
-
id:
|
|
908
|
-
revoked_at:
|
|
909
|
-
used_at:
|
|
910
|
-
user_id:
|
|
911
|
-
expires_at:
|
|
912
|
-
login_session_id:
|
|
913
|
-
idle_expires_at:
|
|
878
|
+
isMobile: e.boolean(),
|
|
879
|
+
user_id: e.string().optional(),
|
|
880
|
+
user_name: e.string().optional(),
|
|
881
|
+
connection: e.string().optional(),
|
|
882
|
+
connection_id: e.string().optional(),
|
|
883
|
+
client_id: e.string().optional(),
|
|
884
|
+
client_name: e.string().optional(),
|
|
885
|
+
audience: e.string().optional(),
|
|
886
|
+
scope: e.array(e.string()).optional(),
|
|
887
|
+
strategy: e.string().optional(),
|
|
888
|
+
strategy_type: e.string().optional(),
|
|
889
|
+
hostname: e.string().optional(),
|
|
890
|
+
auth0_client: _e.optional()
|
|
891
|
+
}), le = e.object({
|
|
892
|
+
user_id: e.string(),
|
|
893
|
+
password: e.string(),
|
|
894
|
+
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id")
|
|
895
|
+
}), Ye = e.object({
|
|
896
|
+
...le.shape,
|
|
897
|
+
created_at: e.string(),
|
|
898
|
+
updated_at: e.string()
|
|
899
|
+
}), m = e.object({
|
|
900
|
+
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
901
|
+
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
902
|
+
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
903
|
+
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
904
|
+
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
905
|
+
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
906
|
+
}), ce = e.object({
|
|
907
|
+
id: e.string(),
|
|
908
|
+
revoked_at: e.string().optional(),
|
|
909
|
+
used_at: e.string().optional(),
|
|
910
|
+
user_id: e.string().describe("The user ID associated with the session"),
|
|
911
|
+
expires_at: e.string().optional(),
|
|
912
|
+
login_session_id: e.string(),
|
|
913
|
+
idle_expires_at: e.string().optional(),
|
|
914
914
|
device: m.describe(
|
|
915
915
|
"Metadata related to the device used in the session"
|
|
916
916
|
),
|
|
917
|
-
clients:
|
|
918
|
-
}),
|
|
919
|
-
created_at:
|
|
920
|
-
updated_at:
|
|
921
|
-
authenticated_at:
|
|
922
|
-
last_interaction_at:
|
|
923
|
-
...
|
|
924
|
-
}),
|
|
925
|
-
kid:
|
|
926
|
-
cert:
|
|
927
|
-
fingerprint:
|
|
928
|
-
thumbprint:
|
|
929
|
-
pkcs7:
|
|
917
|
+
clients: e.array(e.string()).describe("List of client details for the session")
|
|
918
|
+
}), qe = e.object({
|
|
919
|
+
created_at: e.string(),
|
|
920
|
+
updated_at: e.string(),
|
|
921
|
+
authenticated_at: e.string(),
|
|
922
|
+
last_interaction_at: e.string(),
|
|
923
|
+
...ce.shape
|
|
924
|
+
}), ze = e.object({
|
|
925
|
+
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
926
|
+
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
927
|
+
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
928
|
+
thumbprint: e.string().openapi({ description: "The cert thumbprint" }),
|
|
929
|
+
pkcs7: e.string().optional().openapi({
|
|
930
930
|
description: "The private key in pkcs7 format"
|
|
931
931
|
}),
|
|
932
|
-
current:
|
|
933
|
-
next:
|
|
934
|
-
previous:
|
|
935
|
-
current_since:
|
|
932
|
+
current: e.boolean().optional().openapi({ description: "True if the key is the current key" }),
|
|
933
|
+
next: e.boolean().optional().openapi({ description: "True if the key is the next key" }),
|
|
934
|
+
previous: e.boolean().optional().openapi({ description: "True if the key is the previous key" }),
|
|
935
|
+
current_since: e.string().optional().openapi({
|
|
936
936
|
description: "The date and time when the key became the current key"
|
|
937
937
|
}),
|
|
938
|
-
current_until:
|
|
938
|
+
current_until: e.string().optional().openapi({
|
|
939
939
|
description: "The date and time when the current key was rotated"
|
|
940
940
|
}),
|
|
941
|
-
revoked:
|
|
942
|
-
revoked_at:
|
|
941
|
+
revoked: e.boolean().optional().openapi({ description: "True if the key is revoked" }),
|
|
942
|
+
revoked_at: e.string().optional().openapi({ description: "The date and time when the key was revoked" })
|
|
943
943
|
});
|
|
944
|
-
var
|
|
945
|
-
const
|
|
946
|
-
access_token:
|
|
947
|
-
id_token:
|
|
948
|
-
scope:
|
|
949
|
-
state:
|
|
950
|
-
refresh_token:
|
|
951
|
-
token_type:
|
|
952
|
-
expires_in:
|
|
944
|
+
var pe = /* @__PURE__ */ ((t) => (t.RefreshToken = "refresh_token", t.AuthorizationCode = "authorization_code", t.ClientCredential = "client_credentials", t.Passwordless = "passwordless", t.Password = "password", t.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", t))(pe || {});
|
|
945
|
+
const Qe = e.object({
|
|
946
|
+
access_token: e.string(),
|
|
947
|
+
id_token: e.string().optional(),
|
|
948
|
+
scope: e.string().optional(),
|
|
949
|
+
state: e.string().optional(),
|
|
950
|
+
refresh_token: e.string().optional(),
|
|
951
|
+
token_type: e.string(),
|
|
952
|
+
expires_in: e.number()
|
|
953
953
|
});
|
|
954
|
-
|
|
955
|
-
code:
|
|
956
|
-
state:
|
|
954
|
+
e.object({
|
|
955
|
+
code: e.string(),
|
|
956
|
+
state: e.string().optional()
|
|
957
957
|
});
|
|
958
|
-
const
|
|
959
|
-
button_border_radius:
|
|
960
|
-
button_border_weight:
|
|
961
|
-
buttons_style:
|
|
962
|
-
input_border_radius:
|
|
963
|
-
input_border_weight:
|
|
964
|
-
inputs_style:
|
|
965
|
-
show_widget_shadow:
|
|
966
|
-
widget_border_weight:
|
|
967
|
-
widget_corner_radius:
|
|
968
|
-
}),
|
|
969
|
-
base_focus_color:
|
|
970
|
-
base_hover_color:
|
|
971
|
-
body_text:
|
|
972
|
-
captcha_widget_theme:
|
|
973
|
-
error:
|
|
974
|
-
header:
|
|
975
|
-
icons:
|
|
976
|
-
input_background:
|
|
977
|
-
input_border:
|
|
978
|
-
input_filled_text:
|
|
979
|
-
input_labels_placeholders:
|
|
980
|
-
links_focused_components:
|
|
981
|
-
primary_button:
|
|
982
|
-
primary_button_label:
|
|
983
|
-
secondary_button_border:
|
|
984
|
-
secondary_button_label:
|
|
985
|
-
success:
|
|
986
|
-
widget_background:
|
|
987
|
-
widget_border:
|
|
988
|
-
}),
|
|
989
|
-
bold:
|
|
990
|
-
size:
|
|
991
|
-
}),
|
|
992
|
-
body_text:
|
|
993
|
-
buttons_text:
|
|
994
|
-
font_url:
|
|
995
|
-
input_labels:
|
|
996
|
-
links:
|
|
997
|
-
links_style:
|
|
998
|
-
reference_text_size:
|
|
999
|
-
subtitle:
|
|
1000
|
-
title:
|
|
1001
|
-
}),
|
|
1002
|
-
background_color:
|
|
1003
|
-
background_image_url:
|
|
1004
|
-
page_layout:
|
|
1005
|
-
}),
|
|
1006
|
-
header_text_alignment:
|
|
1007
|
-
logo_height:
|
|
1008
|
-
logo_position:
|
|
1009
|
-
logo_url:
|
|
1010
|
-
social_buttons_layout:
|
|
1011
|
-
}),
|
|
1012
|
-
borders:
|
|
1013
|
-
colors:
|
|
1014
|
-
displayName:
|
|
1015
|
-
fonts:
|
|
1016
|
-
page_background:
|
|
1017
|
-
widget:
|
|
1018
|
-
}),
|
|
1019
|
-
themeId:
|
|
1020
|
-
}),
|
|
1021
|
-
universal_login_experience:
|
|
1022
|
-
identifier_first:
|
|
1023
|
-
password_first:
|
|
1024
|
-
webauthn_platform_first_factor:
|
|
1025
|
-
}),
|
|
1026
|
-
name:
|
|
1027
|
-
enabled:
|
|
1028
|
-
default_from_address:
|
|
1029
|
-
credentials:
|
|
1030
|
-
|
|
1031
|
-
accessKeyId:
|
|
1032
|
-
secretAccessKey:
|
|
1033
|
-
region:
|
|
958
|
+
const de = e.object({
|
|
959
|
+
button_border_radius: e.number(),
|
|
960
|
+
button_border_weight: e.number(),
|
|
961
|
+
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
962
|
+
input_border_radius: e.number(),
|
|
963
|
+
input_border_weight: e.number(),
|
|
964
|
+
inputs_style: e.enum(["pill", "rounded", "sharp"]),
|
|
965
|
+
show_widget_shadow: e.boolean(),
|
|
966
|
+
widget_border_weight: e.number(),
|
|
967
|
+
widget_corner_radius: e.number()
|
|
968
|
+
}), ge = e.object({
|
|
969
|
+
base_focus_color: e.string(),
|
|
970
|
+
base_hover_color: e.string(),
|
|
971
|
+
body_text: e.string(),
|
|
972
|
+
captcha_widget_theme: e.enum(["auto", "dark", "light"]),
|
|
973
|
+
error: e.string(),
|
|
974
|
+
header: e.string(),
|
|
975
|
+
icons: e.string(),
|
|
976
|
+
input_background: e.string(),
|
|
977
|
+
input_border: e.string(),
|
|
978
|
+
input_filled_text: e.string(),
|
|
979
|
+
input_labels_placeholders: e.string(),
|
|
980
|
+
links_focused_components: e.string(),
|
|
981
|
+
primary_button: e.string(),
|
|
982
|
+
primary_button_label: e.string(),
|
|
983
|
+
secondary_button_border: e.string(),
|
|
984
|
+
secondary_button_label: e.string(),
|
|
985
|
+
success: e.string(),
|
|
986
|
+
widget_background: e.string(),
|
|
987
|
+
widget_border: e.string()
|
|
988
|
+
}), n = e.object({
|
|
989
|
+
bold: e.boolean(),
|
|
990
|
+
size: e.number()
|
|
991
|
+
}), Ee = e.object({
|
|
992
|
+
body_text: n,
|
|
993
|
+
buttons_text: n,
|
|
994
|
+
font_url: e.string(),
|
|
995
|
+
input_labels: n,
|
|
996
|
+
links: n,
|
|
997
|
+
links_style: e.enum(["normal", "underlined"]),
|
|
998
|
+
reference_text_size: e.number(),
|
|
999
|
+
subtitle: n,
|
|
1000
|
+
title: n
|
|
1001
|
+
}), ue = e.object({
|
|
1002
|
+
background_color: e.string(),
|
|
1003
|
+
background_image_url: e.string(),
|
|
1004
|
+
page_layout: e.enum(["center", "left", "right"])
|
|
1005
|
+
}), Se = e.object({
|
|
1006
|
+
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
1007
|
+
logo_height: e.number(),
|
|
1008
|
+
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
1009
|
+
logo_url: e.string(),
|
|
1010
|
+
social_buttons_layout: e.enum(["bottom", "top"])
|
|
1011
|
+
}), me = e.object({
|
|
1012
|
+
borders: de,
|
|
1013
|
+
colors: ge,
|
|
1014
|
+
displayName: e.string(),
|
|
1015
|
+
fonts: Ee,
|
|
1016
|
+
page_background: ue,
|
|
1017
|
+
widget: Se
|
|
1018
|
+
}), Ze = me.extend({
|
|
1019
|
+
themeId: e.string()
|
|
1020
|
+
}), Je = e.object({
|
|
1021
|
+
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1022
|
+
identifier_first: e.boolean().default(!0),
|
|
1023
|
+
password_first: e.boolean().default(!1),
|
|
1024
|
+
webauthn_platform_first_factor: e.boolean()
|
|
1025
|
+
}), $e = e.object({
|
|
1026
|
+
name: e.string(),
|
|
1027
|
+
enabled: e.boolean().optional().default(!0),
|
|
1028
|
+
default_from_address: e.string().optional(),
|
|
1029
|
+
credentials: e.union([
|
|
1030
|
+
e.object({
|
|
1031
|
+
accessKeyId: e.string(),
|
|
1032
|
+
secretAccessKey: e.string(),
|
|
1033
|
+
region: e.string()
|
|
1034
1034
|
}),
|
|
1035
|
-
|
|
1036
|
-
smtp_host:
|
|
1037
|
-
smtp_port:
|
|
1038
|
-
smtp_user:
|
|
1039
|
-
smtp_pass:
|
|
1035
|
+
e.object({
|
|
1036
|
+
smtp_host: e.array(e.string()),
|
|
1037
|
+
smtp_port: e.number(),
|
|
1038
|
+
smtp_user: e.string(),
|
|
1039
|
+
smtp_pass: e.string()
|
|
1040
1040
|
}),
|
|
1041
|
-
|
|
1042
|
-
api_key:
|
|
1043
|
-
domain:
|
|
1041
|
+
e.object({
|
|
1042
|
+
api_key: e.string(),
|
|
1043
|
+
domain: e.string().optional()
|
|
1044
1044
|
}),
|
|
1045
|
-
|
|
1046
|
-
connectionString:
|
|
1045
|
+
e.object({
|
|
1046
|
+
connectionString: e.string()
|
|
1047
1047
|
}),
|
|
1048
|
-
|
|
1049
|
-
tenantId:
|
|
1050
|
-
clientId:
|
|
1051
|
-
clientSecret:
|
|
1048
|
+
e.object({
|
|
1049
|
+
tenantId: e.string(),
|
|
1050
|
+
clientId: e.string(),
|
|
1051
|
+
clientSecret: e.string()
|
|
1052
1052
|
})
|
|
1053
1053
|
]),
|
|
1054
|
-
settings:
|
|
1055
|
-
}),
|
|
1054
|
+
settings: e.object({}).optional()
|
|
1055
|
+
}), he = e.object({
|
|
1056
1056
|
// The actual refresh token value (primary key).
|
|
1057
|
-
id:
|
|
1057
|
+
id: e.string(),
|
|
1058
1058
|
// Link to the session record
|
|
1059
|
-
session_id:
|
|
1059
|
+
session_id: e.string(),
|
|
1060
1060
|
// Link to user (foreign key)
|
|
1061
|
-
user_id:
|
|
1062
|
-
client_id:
|
|
1061
|
+
user_id: e.string(),
|
|
1062
|
+
client_id: e.string(),
|
|
1063
1063
|
// When the refresh token expires.
|
|
1064
|
-
expires_at:
|
|
1065
|
-
idle_expires_at:
|
|
1064
|
+
expires_at: e.string().optional(),
|
|
1065
|
+
idle_expires_at: e.string().optional(),
|
|
1066
1066
|
// When the token was last used.
|
|
1067
|
-
last_exchanged_at:
|
|
1067
|
+
last_exchanged_at: e.string().optional(),
|
|
1068
1068
|
device: m,
|
|
1069
|
-
resource_servers:
|
|
1070
|
-
|
|
1071
|
-
audience:
|
|
1072
|
-
scopes:
|
|
1069
|
+
resource_servers: e.array(
|
|
1070
|
+
e.object({
|
|
1071
|
+
audience: e.string(),
|
|
1072
|
+
scopes: e.string()
|
|
1073
1073
|
})
|
|
1074
1074
|
),
|
|
1075
|
-
rotating:
|
|
1076
|
-
}),
|
|
1075
|
+
rotating: e.boolean()
|
|
1076
|
+
}), et = e.object({
|
|
1077
1077
|
// When the refresh token record was created.
|
|
1078
|
-
created_at:
|
|
1078
|
+
created_at: e.string(),
|
|
1079
1079
|
// Spread in the rest of the refresh token properties.
|
|
1080
|
-
...
|
|
1081
|
-
}),
|
|
1082
|
-
to:
|
|
1083
|
-
message:
|
|
1084
|
-
}),
|
|
1085
|
-
name:
|
|
1086
|
-
options:
|
|
1087
|
-
}),
|
|
1088
|
-
value:
|
|
1089
|
-
description:
|
|
1090
|
-
}),
|
|
1091
|
-
token_dialect:
|
|
1092
|
-
enforce_policies:
|
|
1093
|
-
allow_skipping_userinfo:
|
|
1094
|
-
skip_userinfo:
|
|
1095
|
-
persist_client_authorization:
|
|
1096
|
-
enable_introspection_endpoint:
|
|
1097
|
-
mtls:
|
|
1098
|
-
bound_access_tokens:
|
|
1080
|
+
...he.shape
|
|
1081
|
+
}), tt = e.object({
|
|
1082
|
+
to: e.string(),
|
|
1083
|
+
message: e.string()
|
|
1084
|
+
}), nt = e.object({
|
|
1085
|
+
name: e.string(),
|
|
1086
|
+
options: e.object({})
|
|
1087
|
+
}), Ae = e.object({
|
|
1088
|
+
value: e.string(),
|
|
1089
|
+
description: e.string().optional()
|
|
1090
|
+
}), be = e.object({
|
|
1091
|
+
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1092
|
+
enforce_policies: e.boolean().optional(),
|
|
1093
|
+
allow_skipping_userinfo: e.boolean().optional(),
|
|
1094
|
+
skip_userinfo: e.boolean().optional(),
|
|
1095
|
+
persist_client_authorization: e.boolean().optional(),
|
|
1096
|
+
enable_introspection_endpoint: e.boolean().optional(),
|
|
1097
|
+
mtls: e.object({
|
|
1098
|
+
bound_access_tokens: e.boolean().optional()
|
|
1099
1099
|
}).optional()
|
|
1100
|
-
})
|
|
1101
|
-
name:
|
|
1102
|
-
identifier:
|
|
1103
|
-
scopes:
|
|
1104
|
-
signing_alg:
|
|
1105
|
-
signing_secret:
|
|
1106
|
-
token_lifetime:
|
|
1107
|
-
token_lifetime_for_web:
|
|
1108
|
-
skip_consent_for_verifiable_first_party_clients:
|
|
1109
|
-
allow_offline_access:
|
|
1110
|
-
verificationKey:
|
|
1111
|
-
options:
|
|
1112
|
-
}),
|
|
1113
|
-
id:
|
|
1114
|
-
...
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
})
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1100
|
+
}), Ce = e.object({
|
|
1101
|
+
name: e.string(),
|
|
1102
|
+
identifier: e.string(),
|
|
1103
|
+
scopes: e.array(Ae).optional(),
|
|
1104
|
+
signing_alg: e.string().optional(),
|
|
1105
|
+
signing_secret: e.string().optional(),
|
|
1106
|
+
token_lifetime: e.number().optional(),
|
|
1107
|
+
token_lifetime_for_web: e.number().optional(),
|
|
1108
|
+
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1109
|
+
allow_offline_access: e.boolean().optional(),
|
|
1110
|
+
verificationKey: e.string().optional(),
|
|
1111
|
+
options: be.optional()
|
|
1112
|
+
}), Ie = e.object({
|
|
1113
|
+
id: e.string().optional(),
|
|
1114
|
+
...Ce.shape,
|
|
1115
|
+
created_at: e.string().optional(),
|
|
1116
|
+
updated_at: e.string().optional()
|
|
1117
|
+
}), ot = e.array(Ie), fe = e.object({
|
|
1118
|
+
role_id: e.string(),
|
|
1119
|
+
resource_server_identifier: e.string(),
|
|
1120
|
+
permission_name: e.string()
|
|
1121
|
+
}), Oe = e.object({
|
|
1122
|
+
...fe.shape,
|
|
1123
|
+
tenant_id: e.string(),
|
|
1124
|
+
created_at: e.string().optional()
|
|
1125
|
+
}), it = e.array(Oe), Te = e.object({
|
|
1126
|
+
role_id: e.string(),
|
|
1127
|
+
resource_server_identifier: e.string(),
|
|
1128
|
+
resource_server_name: e.string(),
|
|
1129
|
+
permission_name: e.string(),
|
|
1130
|
+
description: e.string().nullable().optional(),
|
|
1131
|
+
created_at: e.string().optional()
|
|
1132
|
+
}), st = e.array(
|
|
1133
|
+
Te
|
|
1134
|
+
), Ne = e.object({
|
|
1135
|
+
user_id: e.string(),
|
|
1136
|
+
resource_server_identifier: e.string(),
|
|
1137
|
+
permission_name: e.string()
|
|
1138
|
+
}), Re = e.object({
|
|
1139
|
+
...Ne.shape,
|
|
1140
|
+
tenant_id: e.string(),
|
|
1141
|
+
created_at: e.string().optional()
|
|
1142
|
+
}), at = e.array(Re), Le = e.object({
|
|
1143
|
+
user_id: e.string(),
|
|
1144
|
+
resource_server_identifier: e.string(),
|
|
1145
|
+
resource_server_name: e.string(),
|
|
1146
|
+
permission_name: e.string(),
|
|
1147
|
+
description: e.string().nullable().optional(),
|
|
1148
|
+
created_at: e.string().optional()
|
|
1149
|
+
}), rt = e.array(
|
|
1150
|
+
Le
|
|
1151
|
+
), De = e.object({
|
|
1152
|
+
name: e.string().min(1).max(50).openapi({
|
|
1153
|
+
description: "The name of the role. Cannot include '<' or '>'"
|
|
1154
|
+
}),
|
|
1155
|
+
description: e.string().max(255).optional().openapi({
|
|
1156
|
+
description: "The description of the role"
|
|
1157
|
+
})
|
|
1158
|
+
}), ye = e.object({
|
|
1159
|
+
id: e.string().openapi({
|
|
1160
|
+
description: "The unique identifier of the role"
|
|
1161
|
+
}),
|
|
1162
|
+
...De.shape,
|
|
1163
|
+
created_at: e.string().optional(),
|
|
1164
|
+
updated_at: e.string().optional()
|
|
1165
|
+
}), _t = e.array(ye);
|
|
1166
|
+
function lt(t) {
|
|
1167
|
+
const [o, s] = t.split("|");
|
|
1168
|
+
if (!o || !s)
|
|
1169
|
+
throw new Error(`Invalid user_id: ${t}`);
|
|
1170
|
+
return { connection: o, id: s };
|
|
1144
1171
|
}
|
|
1145
1172
|
export {
|
|
1146
|
-
|
|
1173
|
+
_e as Auth0Client,
|
|
1147
1174
|
g as AuthorizationResponseMode,
|
|
1148
1175
|
d as AuthorizationResponseType,
|
|
1149
1176
|
E as CodeChallengeMethod,
|
|
1150
1177
|
p as ComponentCategory,
|
|
1151
1178
|
c as ComponentType,
|
|
1152
|
-
|
|
1153
|
-
|
|
1179
|
+
pe as GrantType,
|
|
1180
|
+
ae as LogTypes,
|
|
1154
1181
|
j as NodeType,
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1182
|
+
T as applicationInsertSchema,
|
|
1183
|
+
N as applicationSchema,
|
|
1184
|
+
we as auth0FlowInsertSchema,
|
|
1158
1185
|
G as auth0FlowSchema,
|
|
1159
|
-
|
|
1186
|
+
je as auth0UserResponseSchema,
|
|
1160
1187
|
x as authParamsSchema,
|
|
1161
1188
|
l as baseUserSchema,
|
|
1162
|
-
|
|
1163
|
-
|
|
1189
|
+
de as bordersSchema,
|
|
1190
|
+
Pe as brandingSchema,
|
|
1164
1191
|
L as buttonComponentSchema,
|
|
1165
1192
|
q as codeInsertSchema,
|
|
1166
|
-
|
|
1193
|
+
ve as codeSchema,
|
|
1167
1194
|
Y as codeTypeSchema,
|
|
1168
|
-
|
|
1195
|
+
ge as colorsSchema,
|
|
1169
1196
|
F as componentSchema,
|
|
1170
1197
|
B as connectionInsertSchema,
|
|
1171
1198
|
K as connectionOptionsSchema,
|
|
@@ -1173,67 +1200,74 @@ export {
|
|
|
1173
1200
|
i as coordinatesSchema,
|
|
1174
1201
|
z as customDomainInsertSchema,
|
|
1175
1202
|
Z as customDomainSchema,
|
|
1176
|
-
|
|
1177
|
-
|
|
1203
|
+
He as customDomainWithTenantIdSchema,
|
|
1204
|
+
$e as emailProviderSchema,
|
|
1178
1205
|
M as endingSchema,
|
|
1179
1206
|
y as fieldComponentSchema,
|
|
1180
1207
|
w as flowNodeSchema,
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1208
|
+
n as fontDetailsSchema,
|
|
1209
|
+
Ee as fontsSchema,
|
|
1210
|
+
Me as formControlSchema,
|
|
1184
1211
|
$ as formInsertSchema,
|
|
1185
1212
|
J as formNodeComponentDefinition,
|
|
1186
|
-
|
|
1213
|
+
Ge as formSchema,
|
|
1187
1214
|
U as genericComponentSchema,
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1215
|
+
P as genericNodeSchema,
|
|
1216
|
+
xe as hookInsertSchema,
|
|
1217
|
+
Ke as hookSchema,
|
|
1191
1218
|
A as identitySchema,
|
|
1192
|
-
|
|
1193
|
-
|
|
1219
|
+
Be as jwksKeySchema,
|
|
1220
|
+
ie as jwksSchema,
|
|
1194
1221
|
D as legalComponentSchema,
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
te as permissionListSchema,
|
|
1205
|
-
Ot as permissionSchema,
|
|
1206
|
-
ft as permissionSourceSchema,
|
|
1222
|
+
Ve as logSchema,
|
|
1223
|
+
se as loginSessionInsertSchema,
|
|
1224
|
+
We as loginSessionSchema,
|
|
1225
|
+
v as nodeSchema,
|
|
1226
|
+
Xe as openIDConfigurationSchema,
|
|
1227
|
+
ue as pageBackgroundSchema,
|
|
1228
|
+
lt as parseUserId,
|
|
1229
|
+
le as passwordInsertSchema,
|
|
1230
|
+
Ye as passwordSchema,
|
|
1207
1231
|
h as profileDataSchema,
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1232
|
+
Je as promptSettingSchema,
|
|
1233
|
+
he as refreshTokenInsertSchema,
|
|
1234
|
+
et as refreshTokenSchema,
|
|
1235
|
+
Ce as resourceServerInsertSchema,
|
|
1236
|
+
ot as resourceServerListSchema,
|
|
1237
|
+
be as resourceServerOptionsSchema,
|
|
1238
|
+
Ie as resourceServerSchema,
|
|
1239
|
+
Ae as resourceServerScopeSchema,
|
|
1216
1240
|
R as richTextComponentSchema,
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1241
|
+
De as roleInsertSchema,
|
|
1242
|
+
_t as roleListSchema,
|
|
1243
|
+
fe as rolePermissionInsertSchema,
|
|
1244
|
+
it as rolePermissionListSchema,
|
|
1245
|
+
Oe as rolePermissionSchema,
|
|
1246
|
+
st as rolePermissionWithDetailsListSchema,
|
|
1247
|
+
Te as rolePermissionWithDetailsSchema,
|
|
1248
|
+
ye as roleSchema,
|
|
1220
1249
|
O as samlpAddon,
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1250
|
+
ce as sessionInsertSchema,
|
|
1251
|
+
qe as sessionSchema,
|
|
1252
|
+
ze as signingKeySchema,
|
|
1253
|
+
nt as smsProviderSchema,
|
|
1254
|
+
tt as smsSendParamsSchema,
|
|
1255
|
+
H as startSchema,
|
|
1227
1256
|
k as stepNodeSchema,
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1257
|
+
W as tenantInsertSchema,
|
|
1258
|
+
V as tenantSchema,
|
|
1259
|
+
me as themeInsertSchema,
|
|
1260
|
+
Ze as themeSchema,
|
|
1261
|
+
Qe as tokenResponseSchema,
|
|
1262
|
+
Fe as totalsSchema,
|
|
1234
1263
|
b as userInsertSchema,
|
|
1235
|
-
|
|
1264
|
+
Ne as userPermissionInsertSchema,
|
|
1265
|
+
at as userPermissionListSchema,
|
|
1266
|
+
Re as userPermissionSchema,
|
|
1267
|
+
rt as userPermissionWithDetailsListSchema,
|
|
1268
|
+
Le as userPermissionWithDetailsSchema,
|
|
1269
|
+
ke as userResponseSchema,
|
|
1236
1270
|
C as userSchema,
|
|
1237
1271
|
Q as verificationMethodsSchema,
|
|
1238
|
-
|
|
1272
|
+
Se as widgetSchema
|
|
1239
1273
|
};
|