@authhero/saml 0.5.1 → 0.5.3
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/core.cjs +1 -1
- package/dist/core.mjs +183 -154
- package/dist/saml.cjs +4 -4
- package/dist/saml.mjs +383 -354
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/core.mjs
CHANGED
|
@@ -4929,7 +4929,9 @@ var Mr = e.object({
|
|
|
4929
4929
|
type: e.literal("EMAIL"),
|
|
4930
4930
|
config: e.object({
|
|
4931
4931
|
placeholder: e.string().optional(),
|
|
4932
|
-
default_value: e.string().optional()
|
|
4932
|
+
default_value: e.string().optional(),
|
|
4933
|
+
last_used: e.boolean().optional(),
|
|
4934
|
+
last_used_label: e.string().optional()
|
|
4933
4935
|
}).optional()
|
|
4934
4936
|
}), $r = Y.extend({
|
|
4935
4937
|
type: e.literal("FILE"),
|
|
@@ -4996,7 +4998,9 @@ var Mr = e.object({
|
|
|
4996
4998
|
placeholder: e.string().optional(),
|
|
4997
4999
|
multiline: e.boolean().optional(),
|
|
4998
5000
|
max_length: e.number().optional(),
|
|
4999
|
-
default_value: e.string().optional()
|
|
5001
|
+
default_value: e.string().optional(),
|
|
5002
|
+
last_used: e.boolean().optional(),
|
|
5003
|
+
last_used_label: e.string().optional()
|
|
5000
5004
|
}).optional()
|
|
5001
5005
|
}), si = Y.extend({
|
|
5002
5006
|
type: e.literal("COUNTRY"),
|
|
@@ -5198,7 +5202,7 @@ var bi = e.enum([
|
|
|
5198
5202
|
"credentials-exchange",
|
|
5199
5203
|
"pre-user-registration",
|
|
5200
5204
|
"post-user-registration"
|
|
5201
|
-
]), wi = e.enum([
|
|
5205
|
+
]), wi = e.enum(["post-user-login"]), Ti = e.enum(["impersonate"]), Ei = e.enum([
|
|
5202
5206
|
"ensure-username",
|
|
5203
5207
|
"set-preferred-username",
|
|
5204
5208
|
"account-linking"
|
|
@@ -5208,59 +5212,73 @@ var bi = e.enum([
|
|
|
5208
5212
|
priority: e.number().optional(),
|
|
5209
5213
|
hook_id: e.string().optional(),
|
|
5210
5214
|
metadata: e.record(e.string(), e.unknown()).optional()
|
|
5211
|
-
},
|
|
5215
|
+
}, Di = e.object({
|
|
5212
5216
|
...Z,
|
|
5213
5217
|
trigger_id: bi,
|
|
5214
5218
|
url: e.string()
|
|
5215
|
-
}),
|
|
5219
|
+
}), Oi = e.object({
|
|
5216
5220
|
...Z,
|
|
5217
5221
|
trigger_id: xi,
|
|
5218
5222
|
form_id: e.string()
|
|
5219
|
-
}),
|
|
5223
|
+
}), ki = e.object({
|
|
5220
5224
|
...Z,
|
|
5221
5225
|
trigger_id: Si,
|
|
5222
|
-
template_id:
|
|
5223
|
-
}),
|
|
5226
|
+
template_id: Ei
|
|
5227
|
+
}), Ai = e.object({
|
|
5224
5228
|
...Z,
|
|
5225
5229
|
trigger_id: Ci,
|
|
5226
5230
|
code_id: e.string()
|
|
5231
|
+
}), ji = e.object({
|
|
5232
|
+
...Z,
|
|
5233
|
+
trigger_id: wi,
|
|
5234
|
+
page_id: Ti,
|
|
5235
|
+
permission_required: e.string().optional()
|
|
5227
5236
|
});
|
|
5228
5237
|
e.union([
|
|
5229
|
-
Ti,
|
|
5230
|
-
Ei,
|
|
5231
5238
|
Di,
|
|
5232
|
-
Oi
|
|
5239
|
+
Oi,
|
|
5240
|
+
ki,
|
|
5241
|
+
Ai,
|
|
5242
|
+
ji
|
|
5233
5243
|
]);
|
|
5234
|
-
var
|
|
5244
|
+
var Mi = e.object({
|
|
5235
5245
|
...Z,
|
|
5236
5246
|
trigger_id: bi
|
|
5237
5247
|
}).extend(G.shape).extend({
|
|
5238
5248
|
hook_id: e.string(),
|
|
5239
5249
|
url: e.string()
|
|
5240
|
-
}),
|
|
5250
|
+
}), Ni = e.object({
|
|
5241
5251
|
...Z,
|
|
5242
5252
|
trigger_id: xi
|
|
5243
5253
|
}).extend(G.shape).extend({
|
|
5244
5254
|
hook_id: e.string(),
|
|
5245
5255
|
form_id: e.string()
|
|
5246
|
-
}),
|
|
5256
|
+
}), Pi = e.object({
|
|
5247
5257
|
...Z,
|
|
5248
5258
|
trigger_id: Si
|
|
5249
5259
|
}).extend(G.shape).extend({
|
|
5250
5260
|
hook_id: e.string(),
|
|
5251
|
-
template_id:
|
|
5252
|
-
}),
|
|
5261
|
+
template_id: Ei
|
|
5262
|
+
}), Fi = e.object({
|
|
5253
5263
|
...Z,
|
|
5254
5264
|
trigger_id: Ci
|
|
5255
5265
|
}).extend(G.shape).extend({
|
|
5256
5266
|
hook_id: e.string(),
|
|
5257
5267
|
code_id: e.string()
|
|
5268
|
+
}), Ii = e.object({
|
|
5269
|
+
...Z,
|
|
5270
|
+
trigger_id: wi
|
|
5271
|
+
}).extend(G.shape).extend({
|
|
5272
|
+
hook_id: e.string(),
|
|
5273
|
+
page_id: Ti,
|
|
5274
|
+
permission_required: e.string().optional()
|
|
5258
5275
|
});
|
|
5259
5276
|
e.union([
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5277
|
+
Mi,
|
|
5278
|
+
Ni,
|
|
5279
|
+
Pi,
|
|
5280
|
+
Fi,
|
|
5281
|
+
Ii
|
|
5264
5282
|
]), e.object({
|
|
5265
5283
|
code: e.string().max(1e5),
|
|
5266
5284
|
secrets: e.record(e.string(), e.string()).optional()
|
|
@@ -5268,11 +5286,11 @@ e.union([
|
|
|
5268
5286
|
id: e.string(),
|
|
5269
5287
|
tenant_id: e.string()
|
|
5270
5288
|
}).extend(G.shape);
|
|
5271
|
-
var
|
|
5289
|
+
var Li = e.object({ name: e.string().optional() }), Ri = e.object({ email: e.string().optional() }), zi = e.object({
|
|
5272
5290
|
id: e.string().optional(),
|
|
5273
5291
|
organization_id: e.string().max(50),
|
|
5274
|
-
inviter:
|
|
5275
|
-
invitee:
|
|
5292
|
+
inviter: Li,
|
|
5293
|
+
invitee: Ri,
|
|
5276
5294
|
invitation_url: e.string().url(),
|
|
5277
5295
|
client_id: e.string(),
|
|
5278
5296
|
connection_id: e.string().optional(),
|
|
@@ -5288,8 +5306,8 @@ e.object({
|
|
|
5288
5306
|
created_at: e.string().datetime(),
|
|
5289
5307
|
expires_at: e.string().datetime(),
|
|
5290
5308
|
ticket_id: e.string().optional()
|
|
5291
|
-
}).extend(
|
|
5292
|
-
var
|
|
5309
|
+
}).extend(zi.omit({ id: !0 }).shape);
|
|
5310
|
+
var Bi = e.object({
|
|
5293
5311
|
alg: e.enum([
|
|
5294
5312
|
"RS256",
|
|
5295
5313
|
"RS384",
|
|
@@ -5331,7 +5349,7 @@ var Ii = e.object({
|
|
|
5331
5349
|
message: `EC JWK is missing required member '${r}'`
|
|
5332
5350
|
});
|
|
5333
5351
|
});
|
|
5334
|
-
e.object({ keys: e.array(
|
|
5352
|
+
e.object({ keys: e.array(Bi) }), e.object({
|
|
5335
5353
|
issuer: e.string(),
|
|
5336
5354
|
authorization_endpoint: e.string(),
|
|
5337
5355
|
token_endpoint: e.string(),
|
|
@@ -5358,9 +5376,9 @@ e.object({ keys: e.array(Ii) }), e.object({
|
|
|
5358
5376
|
backchannel_logout_supported: e.boolean().optional(),
|
|
5359
5377
|
backchannel_logout_session_supported: e.boolean().optional()
|
|
5360
5378
|
});
|
|
5361
|
-
var
|
|
5379
|
+
var Vi = /* @__PURE__ */ function(e) {
|
|
5362
5380
|
return e.PENDING = "pending", e.AUTHENTICATED = "authenticated", e.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", e.AWAITING_MFA = "awaiting_mfa", e.AWAITING_HOOK = "awaiting_hook", e.AWAITING_CONTINUATION = "awaiting_continuation", e.AWAITING_CONSENT = "awaiting_consent", e.COMPLETED = "completed", e.FAILED = "failed", e.EXPIRED = "expired", e;
|
|
5363
|
-
}({}),
|
|
5381
|
+
}({}), Hi = e.nativeEnum(Vi), Ui = e.object({
|
|
5364
5382
|
strategy: e.string(),
|
|
5365
5383
|
strategy_type: e.string()
|
|
5366
5384
|
});
|
|
@@ -5374,12 +5392,12 @@ e.object({
|
|
|
5374
5392
|
useragent: e.string().optional(),
|
|
5375
5393
|
session_id: e.string().optional(),
|
|
5376
5394
|
authorization_url: e.string().optional(),
|
|
5377
|
-
state:
|
|
5395
|
+
state: Hi.optional().default("pending"),
|
|
5378
5396
|
state_data: e.string().optional(),
|
|
5379
5397
|
failure_reason: e.string().optional(),
|
|
5380
5398
|
user_id: e.string().optional(),
|
|
5381
5399
|
auth_connection: e.string().optional(),
|
|
5382
|
-
auth_strategy:
|
|
5400
|
+
auth_strategy: Ui.optional(),
|
|
5383
5401
|
authenticated_at: e.string().optional()
|
|
5384
5402
|
}).openapi({ description: "This represents a login sesion" }).extend({
|
|
5385
5403
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
@@ -5546,17 +5564,17 @@ var Q = {
|
|
|
5546
5564
|
WARNING_DURING_LOGIN: "w",
|
|
5547
5565
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
5548
5566
|
WARNING_USER_MANAGEMENT: "wum"
|
|
5549
|
-
},
|
|
5567
|
+
}, Wi = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
|
|
5550
5568
|
Q.ACLS_SUMMARY, Q.ACTIONS_EXECUTION_FAILED, Q.API_LIMIT, Q.API_LIMIT_WARNING, Q.APPI, Q.CIBA_EXCHANGE_FAILED, Q.CIBA_EXCHANGE_SUCCEEDED, Q.CIBA_START_FAILED, Q.CIBA_START_SUCCEEDED, Q.CODE_LINK_SENT, Q.CODE_SENT, Q.DEPRECATION_NOTICE, Q.FAILED_LOGIN, Q.FAILED_BY_CONNECTOR, Q.FAILED_CHANGE_EMAIL, Q.FAILED_BY_CORS, Q.FAILED_CROSS_ORIGIN_AUTHENTICATION, Q.FAILED_CHANGE_PASSWORD, Q.FAILED_POST_CHANGE_PASSWORD_HOOK, Q.FAILED_CHANGE_PHONE_NUMBER, Q.FAILED_CHANGE_PASSWORD_REQUEST, Q.FAILED_CONNECTOR_PROVISIONING, Q.FAILED_CHANGE_USERNAME, Q.FAILED_DELEGATION, Q.FAILED_DEVICE_ACTIVATION, Q.FAILED_DEVICE_AUTHORIZATION_REQUEST, Q.USER_CANCELED_DEVICE_CONFIRMATION, Q.FAILED_USER_DELETION, Q.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Q.FAILED_EXCHANGE_CUSTOM_TOKEN, Q.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Q.FAILED_FEDERATED_LOGOUT, Q.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN, Q.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN, Q.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Q.FAILED_HOOK, Q.FAILED_IMPERSONATION, Q.FAILED_INVITE_ACCEPT, Q.FAILED_LOGOUT, Q.FLOWS_EXECUTION_COMPLETED, Q.FLOWS_EXECUTION_FAILED, Q.FAILED_SENDING_NOTIFICATION, Q.FORMS_SUBMISSION_FAILED, Q.FORMS_SUBMISSION_SUCCEEDED, Q.FAILED_LOGIN_INCORRECT_PASSWORD, Q.FAILED_PUSHED_AUTHORIZATION_REQUEST, Q.FAILED_POST_USER_REGISTRATION_HOOK, Q.FAILED_SIGNUP, Q.FAILED_SILENT_AUTH, Q.FAILED_LOGIN_INVALID_EMAIL_USERNAME, Q.FAILED_USERS_IMPORT, Q.FAILED_VERIFICATION_EMAIL, Q.FAILED_VERIFICATION_EMAIL_REQUEST, Q.EMAIL_VERIFICATION_CONFIRMED, Q.EMAIL_VERIFICATION_FAILED, Q.MFA_AUTH_FAILED, Q.MFA_AUTH_REJECTED, Q.MFA_AUTH_SUCCESS, Q.MFA_ENROLLMENT_COMPLETE, Q.TOO_MANY_MFA_FAILURES, Q.MFA_RECOVERY_FAILED, Q.MFA_RECOVERY_RATE_LIMIT_EXCEED, Q.MFA_RECOVERY_SUCCESS, Q.MFA_EMAIL_SENT, Q.EMAIL_VERIFICATION_SENT, Q.EMAIL_VERIFICATION_SEND_FAILURE, Q.PUSH_NOTIFICATION_SENT, Q.ERROR_SENDING_MFA_PUSH_NOTIFICATION, Q.MFA_SMS_SENT, Q.ERROR_SENDING_MFA_SMS, Q.MFA_VOICE_CALL_SUCCESS, Q.MFA_VOICE_CALL_FAILED, Q.SECOND_FACTOR_STARTED, Q.MFA_ENROLL_STARTED, Q.MFA_ENROLLMENT_FAILED, Q.GUARDIAN_TENANT_UPDATE, Q.UNENROLL_DEVICE_ACCOUNT, Q.UPDATE_DEVICE_ACCOUNT, Q.WEBAUTHN_CHALLENGE_FAILED, Q.WEBAUTHN_ENROLLMENT_FAILED, Q.FAILED_KMS_API_OPERATION, Q.SUCCESS_KMS_API_OPERATION, Q.KMS_KEY_STATE_CHANGED, Q.TOO_MANY_CALLS_TO_DELEGATION, Q.BLOCKED_IP_ADDRESS, Q.BLOCKED_ACCOUNT_IP, Q.BLOCKED_ACCOUNT_EMAIL, Q.INFORMATION, Q.MFA_REQUIRED, Q.MANAGEMENT_API_READ_OPERATION, Q.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Q.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Q.FAILED_OIDC_BACKCHANNEL_LOGOUT, Q.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT, Q.ORGANIZATION_MEMBER_ADDED, Q.PASSKEY_CHALLENGE_FAILED, Q.PASSKEY_CHALLENGE_STARTED, Q.PRE_LOGIN_ASSESSMENT, Q.BREACHED_PASSWORD, Q.BREACHED_PASSWORD_ON_RESET, Q.SUCCESS_RESOURCE_CLEANUP, Q.RICH_CONSENTS_ACCESS_ERROR, Q.SUCCESS_LOGIN, Q.SUCCESS_API_OPERATION, Q.FAILED_API_OPERATION, Q.SUCCESS_CHANGE_EMAIL, Q.SUCCESS_CROSS_ORIGIN_AUTHENTICATION, Q.SUCCESS_CHANGE_PASSWORD, Q.SUCCESS_CHANGE_PHONE_NUMBER, Q.SUCCESS_CHANGE_PASSWORD_REQUEST, Q.SUCCESS_CHANGE_USERNAME, Q.SUCCESS_CREDENTIAL_VALIDATION, Q.SUCCESS_DELEGATION, Q.SUCCESS_USER_DELETION, Q.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Q.SUCCESS_EXCHANGE_CUSTOM_TOKEN, Q.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN, Q.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Q.SUCCESS_IMPERSONATION, Q.SUCCESSFULLY_ACCEPTED_USER_INVITE, Q.BREACHED_PASSWORD_ON_SIGNUP, Q.SUCCESS_LOGOUT, Q.SUCCESS_HOOK, Q.SUCCESS_PASSWORD_MIGRATION, Q.SUCCESS_REVOCATION, Q.SUCCESS_SIGNUP, Q.FAILED_SS_SSO_OPERATION, Q.INFORMATION_FROM_SS_SSO_OPERATION, Q.SUCCESS_SS_SSO_OPERATION, Q.SUCCESS_SILENT_AUTH, Q.SUCCESSFUL_SCIM_OPERATION, Q.SUCCESSFULLY_IMPORTED_USERS, Q.SUCCESS_VERIFICATION_EMAIL, Q.SUCCESS_VERIFICATION_EMAIL_REQUEST, Q.MAX_AMOUNT_OF_AUTHENTICATORS, Q.USER_LOGIN_BLOCK_RELEASED, Q.FAILED_UNIVERSAL_LOGOUT, Q.SUCCESSFUL_UNIVERSAL_LOGOUT, Q.WARNING_DURING_LOGIN, Q.WARNING_SENDING_NOTIFICATION, Q.WARNING_USER_MANAGEMENT, (() => {
|
|
5551
5569
|
let e = {};
|
|
5552
5570
|
for (let [t, n] of Object.entries(Q)) t.startsWith("SUCCESS_") || t.startsWith("SUCCESSFUL_") || t.startsWith("SUCCESSFULLY_") || t.endsWith("_SUCCEEDED") || t.endsWith("_COMPLETED") ? e[n] = "success" : t.startsWith("FAILED_") || t.startsWith("ERROR_") || t.startsWith("BREACHED_") || t.startsWith("BLOCKED_") || t === "MFA_AUTH_FAILED" || t === "MFA_AUTH_REJECTED" || t === "MFA_RECOVERY_FAILED" || t === "MFA_ENROLLMENT_FAILED" || t === "EMAIL_VERIFICATION_FAILED" || t === "WEBAUTHN_CHALLENGE_FAILED" || t === "WEBAUTHN_ENROLLMENT_FAILED" || t === "PASSKEY_CHALLENGE_FAILED" || t === "FLOWS_EXECUTION_FAILED" || t === "FORMS_SUBMISSION_FAILED" || t === "CIBA_EXCHANGE_FAILED" || t === "CIBA_START_FAILED" || t === "ACTIONS_EXECUTION_FAILED" || t === "RICH_CONSENTS_ACCESS_ERROR" || t === "USER_CANCELED_DEVICE_CONFIRMATION" || t === "TOO_MANY_MFA_FAILURES" || t === "MFA_RECOVERY_RATE_LIMIT_EXCEED" || t === "API_LIMIT" || t === "MAX_AMOUNT_OF_AUTHENTICATORS" ? e[n] = "failure" : t.startsWith("WARNING_") || t === "API_LIMIT_WARNING" || t === "DEPRECATION_NOTICE" || t === "PRE_LOGIN_ASSESSMENT" ? e[n] = "warning" : t === "CODE_SENT" || t === "CODE_LINK_SENT" || t === "MFA_EMAIL_SENT" || t === "MFA_SMS_SENT" || t === "EMAIL_VERIFICATION_SENT" || t === "PUSH_NOTIFICATION_SENT" ? e[n] = "code_sent" : t === "INFORMATION" || t === "INFORMATION_FROM_SS_SSO_OPERATION" || t === "MANAGEMENT_API_READ_OPERATION" || t === "APPI" || t === "ACLS_SUMMARY" || t === "ORGANIZATION_MEMBER_ADDED" ? e[n] = "info" : e[n] = "other";
|
|
5553
5571
|
return e;
|
|
5554
5572
|
})();
|
|
5555
|
-
var
|
|
5573
|
+
var Gi = e.object({
|
|
5556
5574
|
name: e.string(),
|
|
5557
5575
|
version: e.string(),
|
|
5558
5576
|
env: e.object({ node: e.string().optional() }).optional()
|
|
5559
|
-
}),
|
|
5577
|
+
}), Ki = e.object({
|
|
5560
5578
|
country_code: e.string().length(2),
|
|
5561
5579
|
city_name: e.string(),
|
|
5562
5580
|
latitude: e.string(),
|
|
@@ -5565,7 +5583,7 @@ var Vi = e.object({
|
|
|
5565
5583
|
continent_code: e.string()
|
|
5566
5584
|
});
|
|
5567
5585
|
e.object({
|
|
5568
|
-
type:
|
|
5586
|
+
type: Wi,
|
|
5569
5587
|
date: e.string(),
|
|
5570
5588
|
description: e.string().optional(),
|
|
5571
5589
|
ip: e.string().optional(),
|
|
@@ -5583,63 +5601,63 @@ e.object({
|
|
|
5583
5601
|
strategy: e.string().optional(),
|
|
5584
5602
|
strategy_type: e.string().optional(),
|
|
5585
5603
|
hostname: e.string().optional(),
|
|
5586
|
-
auth0_client:
|
|
5604
|
+
auth0_client: Gi.optional(),
|
|
5587
5605
|
log_id: e.string().optional(),
|
|
5588
|
-
location_info:
|
|
5606
|
+
location_info: Ki.optional()
|
|
5589
5607
|
}).extend({ log_id: e.string() });
|
|
5590
|
-
var
|
|
5608
|
+
var qi = e.enum([
|
|
5591
5609
|
"http",
|
|
5592
5610
|
"eventbridge",
|
|
5593
5611
|
"eventgrid",
|
|
5594
5612
|
"splunk",
|
|
5595
5613
|
"datadog",
|
|
5596
5614
|
"sumo"
|
|
5597
|
-
]),
|
|
5615
|
+
]), Ji = e.enum([
|
|
5598
5616
|
"active",
|
|
5599
5617
|
"paused",
|
|
5600
5618
|
"suspended"
|
|
5601
|
-
]),
|
|
5619
|
+
]), Yi = e.object({
|
|
5602
5620
|
type: e.string(),
|
|
5603
5621
|
name: e.string()
|
|
5604
5622
|
});
|
|
5605
5623
|
e.object({
|
|
5606
5624
|
name: e.string(),
|
|
5607
|
-
type:
|
|
5608
|
-
status:
|
|
5625
|
+
type: qi,
|
|
5626
|
+
status: Ji.optional(),
|
|
5609
5627
|
sink: e.record(e.string(), e.unknown()),
|
|
5610
|
-
filters: e.array(
|
|
5628
|
+
filters: e.array(Yi).optional(),
|
|
5611
5629
|
isPriority: e.boolean().optional()
|
|
5612
5630
|
}).extend({
|
|
5613
5631
|
id: e.string(),
|
|
5614
|
-
status:
|
|
5632
|
+
status: Ji,
|
|
5615
5633
|
created_at: e.string().optional(),
|
|
5616
5634
|
updated_at: e.string().optional()
|
|
5617
5635
|
});
|
|
5618
|
-
var
|
|
5636
|
+
var Xi = e.enum([
|
|
5619
5637
|
"auth0",
|
|
5620
5638
|
"cognito",
|
|
5621
5639
|
"okta",
|
|
5622
5640
|
"oidc"
|
|
5623
|
-
]),
|
|
5641
|
+
]), Zi = e.object({
|
|
5624
5642
|
domain: e.string(),
|
|
5625
5643
|
client_id: e.string(),
|
|
5626
5644
|
client_secret: e.string(),
|
|
5627
5645
|
audience: e.string().optional(),
|
|
5628
5646
|
scope: e.string().optional()
|
|
5629
|
-
}),
|
|
5647
|
+
}), Qi = e.object({
|
|
5630
5648
|
id: e.string().optional(),
|
|
5631
5649
|
name: e.string(),
|
|
5632
|
-
provider:
|
|
5650
|
+
provider: Xi,
|
|
5633
5651
|
connection: e.string(),
|
|
5634
5652
|
enabled: e.boolean().default(!0),
|
|
5635
|
-
credentials:
|
|
5653
|
+
credentials: Zi
|
|
5636
5654
|
});
|
|
5637
5655
|
e.object({
|
|
5638
5656
|
id: e.string(),
|
|
5639
5657
|
created_at: e.string(),
|
|
5640
5658
|
updated_at: e.string()
|
|
5641
|
-
}).extend(
|
|
5642
|
-
var
|
|
5659
|
+
}).extend(Qi.shape);
|
|
5660
|
+
var $i = e.object({
|
|
5643
5661
|
enabled: e.boolean().optional(),
|
|
5644
5662
|
shields: e.array(e.string()).optional(),
|
|
5645
5663
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -5648,13 +5666,13 @@ var Yi = e.object({
|
|
|
5648
5666
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
5649
5667
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
5650
5668
|
}).optional()
|
|
5651
|
-
}),
|
|
5669
|
+
}), ea = e.object({
|
|
5652
5670
|
enabled: e.boolean().optional(),
|
|
5653
5671
|
shields: e.array(e.string()).optional(),
|
|
5654
5672
|
allowlist: e.array(e.string()).optional(),
|
|
5655
5673
|
mode: e.string().optional(),
|
|
5656
5674
|
max_attempts: e.number().optional()
|
|
5657
|
-
}),
|
|
5675
|
+
}), ta = e.object({
|
|
5658
5676
|
enabled: e.boolean().optional(),
|
|
5659
5677
|
shields: e.array(e.string()).optional(),
|
|
5660
5678
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -5668,10 +5686,10 @@ var Yi = e.object({
|
|
|
5668
5686
|
rate: e.number().optional()
|
|
5669
5687
|
}).optional()
|
|
5670
5688
|
}).optional()
|
|
5671
|
-
}),
|
|
5672
|
-
breached_password_detection:
|
|
5673
|
-
brute_force_protection:
|
|
5674
|
-
suspicious_ip_throttling:
|
|
5689
|
+
}), na = e.object({
|
|
5690
|
+
breached_password_detection: $i.optional(),
|
|
5691
|
+
brute_force_protection: ea.optional(),
|
|
5692
|
+
suspicious_ip_throttling: ta.optional()
|
|
5675
5693
|
});
|
|
5676
5694
|
e.object({
|
|
5677
5695
|
id: e.string().optional(),
|
|
@@ -5684,14 +5702,14 @@ e.object({
|
|
|
5684
5702
|
created_at: e.string(),
|
|
5685
5703
|
updated_at: e.string()
|
|
5686
5704
|
});
|
|
5687
|
-
var
|
|
5705
|
+
var ra = e.object({
|
|
5688
5706
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
5689
5707
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
5690
5708
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
5691
5709
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
5692
5710
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
5693
5711
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
5694
|
-
}),
|
|
5712
|
+
}), ia = e.object({
|
|
5695
5713
|
id: e.string(),
|
|
5696
5714
|
revoked_at: e.string().optional(),
|
|
5697
5715
|
used_at: e.string().optional(),
|
|
@@ -5699,7 +5717,7 @@ var $i = e.object({
|
|
|
5699
5717
|
expires_at: e.string().optional(),
|
|
5700
5718
|
login_session_id: e.string(),
|
|
5701
5719
|
idle_expires_at: e.string().optional(),
|
|
5702
|
-
device:
|
|
5720
|
+
device: ra.describe("Metadata related to the device used in the session"),
|
|
5703
5721
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
5704
5722
|
});
|
|
5705
5723
|
e.object({
|
|
@@ -5707,7 +5725,7 @@ e.object({
|
|
|
5707
5725
|
updated_at: e.string(),
|
|
5708
5726
|
authenticated_at: e.string(),
|
|
5709
5727
|
last_interaction_at: e.string()
|
|
5710
|
-
}).extend(
|
|
5728
|
+
}).extend(ia.shape), e.object({
|
|
5711
5729
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
5712
5730
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
5713
5731
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -5724,7 +5742,7 @@ e.object({
|
|
|
5724
5742
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
5725
5743
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
5726
5744
|
});
|
|
5727
|
-
var
|
|
5745
|
+
var aa = e.object({
|
|
5728
5746
|
id: e.string().optional(),
|
|
5729
5747
|
audience: e.string().optional(),
|
|
5730
5748
|
friendly_name: e.string(),
|
|
@@ -5842,7 +5860,7 @@ var ta = e.object({
|
|
|
5842
5860
|
"shared_planetscale"
|
|
5843
5861
|
]).optional(),
|
|
5844
5862
|
d1_database_id: e.string().max(64).optional(),
|
|
5845
|
-
attack_protection:
|
|
5863
|
+
attack_protection: na.optional(),
|
|
5846
5864
|
mfa: e.object({
|
|
5847
5865
|
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
5848
5866
|
factors: e.object({
|
|
@@ -5873,35 +5891,35 @@ var ta = e.object({
|
|
|
5873
5891
|
e.object({
|
|
5874
5892
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
5875
5893
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
5876
|
-
}).extend(
|
|
5894
|
+
}).extend(aa.shape).extend({
|
|
5877
5895
|
id: e.string(),
|
|
5878
5896
|
is_control_plane: e.boolean().optional()
|
|
5879
5897
|
});
|
|
5880
|
-
var
|
|
5898
|
+
var oa = e.enum([
|
|
5881
5899
|
"provision",
|
|
5882
5900
|
"seed",
|
|
5883
5901
|
"upgrade",
|
|
5884
5902
|
"backup",
|
|
5885
5903
|
"deprovision"
|
|
5886
|
-
]),
|
|
5904
|
+
]), sa = e.enum([
|
|
5887
5905
|
"pending",
|
|
5888
5906
|
"running",
|
|
5889
5907
|
"succeeded",
|
|
5890
5908
|
"failed",
|
|
5891
5909
|
"cancelled"
|
|
5892
|
-
]),
|
|
5910
|
+
]), ca = e.enum(["inline", "cloudflare-workflows"]);
|
|
5893
5911
|
e.object({
|
|
5894
5912
|
tenant_id: e.string().max(255).nullable().default(null),
|
|
5895
5913
|
rollout_id: e.string().max(255).nullable().optional(),
|
|
5896
|
-
kind:
|
|
5897
|
-
engine:
|
|
5914
|
+
kind: oa,
|
|
5915
|
+
engine: ca,
|
|
5898
5916
|
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
5899
5917
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
5900
5918
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
5901
5919
|
initiated_by: e.string().max(255).nullable().optional()
|
|
5902
5920
|
}).extend({
|
|
5903
5921
|
id: e.string(),
|
|
5904
|
-
status:
|
|
5922
|
+
status: sa,
|
|
5905
5923
|
current_step: e.string().max(255).nullable().optional(),
|
|
5906
5924
|
error: e.string().nullable().optional(),
|
|
5907
5925
|
created_at: e.string(),
|
|
@@ -5916,7 +5934,7 @@ e.object({
|
|
|
5916
5934
|
error: !0,
|
|
5917
5935
|
finished_at: !0
|
|
5918
5936
|
}).partial();
|
|
5919
|
-
var
|
|
5937
|
+
var la = e.enum([
|
|
5920
5938
|
"started",
|
|
5921
5939
|
"succeeded",
|
|
5922
5940
|
"failed",
|
|
@@ -5927,18 +5945,18 @@ var aa = e.enum([
|
|
|
5927
5945
|
e.object({
|
|
5928
5946
|
operation_id: e.string().max(255),
|
|
5929
5947
|
step: e.string().max(255),
|
|
5930
|
-
outcome:
|
|
5948
|
+
outcome: la,
|
|
5931
5949
|
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
5932
5950
|
attempt: e.number().int().min(1).default(1)
|
|
5933
5951
|
}).extend({
|
|
5934
5952
|
id: e.string(),
|
|
5935
5953
|
created_at: e.string()
|
|
5936
5954
|
});
|
|
5937
|
-
var
|
|
5955
|
+
var ua = e.enum([
|
|
5938
5956
|
"upgrade",
|
|
5939
5957
|
"reseed",
|
|
5940
5958
|
"backup"
|
|
5941
|
-
]),
|
|
5959
|
+
]), da = e.enum([
|
|
5942
5960
|
"pending",
|
|
5943
5961
|
"canary",
|
|
5944
5962
|
"rolling",
|
|
@@ -5947,7 +5965,7 @@ var oa = e.enum([
|
|
|
5947
5965
|
"failed"
|
|
5948
5966
|
]);
|
|
5949
5967
|
e.object({
|
|
5950
|
-
kind:
|
|
5968
|
+
kind: ua,
|
|
5951
5969
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
5952
5970
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
5953
5971
|
wave_size: e.number().int().min(1).default(10),
|
|
@@ -5956,7 +5974,7 @@ e.object({
|
|
|
5956
5974
|
initiated_by: e.string().max(255).nullable().optional()
|
|
5957
5975
|
}).extend({
|
|
5958
5976
|
id: e.string(),
|
|
5959
|
-
status:
|
|
5977
|
+
status: da,
|
|
5960
5978
|
created_at: e.string(),
|
|
5961
5979
|
updated_at: e.string(),
|
|
5962
5980
|
finished_at: e.string().nullable().optional()
|
|
@@ -5978,7 +5996,7 @@ e.object({
|
|
|
5978
5996
|
code: e.string(),
|
|
5979
5997
|
state: e.string().optional()
|
|
5980
5998
|
});
|
|
5981
|
-
var
|
|
5999
|
+
var fa = e.object({
|
|
5982
6000
|
button_border_radius: e.number(),
|
|
5983
6001
|
button_border_weight: e.number(),
|
|
5984
6002
|
buttons_style: e.enum([
|
|
@@ -5996,7 +6014,7 @@ var ca = e.object({
|
|
|
5996
6014
|
show_widget_shadow: e.boolean(),
|
|
5997
6015
|
widget_border_weight: e.number(),
|
|
5998
6016
|
widget_corner_radius: e.number()
|
|
5999
|
-
}),
|
|
6017
|
+
}), pa = e.object({
|
|
6000
6018
|
base_focus_color: e.string(),
|
|
6001
6019
|
base_hover_color: e.string(),
|
|
6002
6020
|
body_text: e.string(),
|
|
@@ -6023,7 +6041,7 @@ var ca = e.object({
|
|
|
6023
6041
|
}), $ = e.object({
|
|
6024
6042
|
bold: e.boolean(),
|
|
6025
6043
|
size: e.number()
|
|
6026
|
-
}),
|
|
6044
|
+
}), ma = e.object({
|
|
6027
6045
|
body_text: $,
|
|
6028
6046
|
buttons_text: $,
|
|
6029
6047
|
font_url: e.string(),
|
|
@@ -6033,7 +6051,7 @@ var ca = e.object({
|
|
|
6033
6051
|
reference_text_size: e.number(),
|
|
6034
6052
|
subtitle: $,
|
|
6035
6053
|
title: $
|
|
6036
|
-
}),
|
|
6054
|
+
}), ha = e.object({
|
|
6037
6055
|
background_color: e.string(),
|
|
6038
6056
|
background_image_url: e.string(),
|
|
6039
6057
|
page_layout: e.enum([
|
|
@@ -6046,7 +6064,7 @@ var ca = e.object({
|
|
|
6046
6064
|
"chip",
|
|
6047
6065
|
"none"
|
|
6048
6066
|
]).optional()
|
|
6049
|
-
}),
|
|
6067
|
+
}), ga = e.object({
|
|
6050
6068
|
header_text_alignment: e.enum([
|
|
6051
6069
|
"center",
|
|
6052
6070
|
"left",
|
|
@@ -6063,12 +6081,12 @@ var ca = e.object({
|
|
|
6063
6081
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
6064
6082
|
});
|
|
6065
6083
|
e.object({
|
|
6066
|
-
borders:
|
|
6067
|
-
colors:
|
|
6084
|
+
borders: fa,
|
|
6085
|
+
colors: pa,
|
|
6068
6086
|
displayName: e.string(),
|
|
6069
|
-
fonts:
|
|
6070
|
-
page_background:
|
|
6071
|
-
widget:
|
|
6087
|
+
fonts: ma,
|
|
6088
|
+
page_background: ha,
|
|
6089
|
+
widget: ga
|
|
6072
6090
|
}).extend({ themeId: e.string() }), e.object({
|
|
6073
6091
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
6074
6092
|
identifier_first: e.boolean().default(!0),
|
|
@@ -6076,44 +6094,44 @@ e.object({
|
|
|
6076
6094
|
show_last_used_connection: e.boolean().default(!1),
|
|
6077
6095
|
webauthn_platform_first_factor: e.boolean()
|
|
6078
6096
|
});
|
|
6079
|
-
var
|
|
6097
|
+
var _a = e.object({
|
|
6080
6098
|
hosts: e.array(e.string()).optional(),
|
|
6081
6099
|
methods: e.array(e.string()).optional(),
|
|
6082
6100
|
path: e.string().default("/*"),
|
|
6083
6101
|
headers: e.record(e.string(), e.string()).optional(),
|
|
6084
6102
|
query: e.record(e.string(), e.string()).optional()
|
|
6085
|
-
}),
|
|
6103
|
+
}), va = e.object({
|
|
6086
6104
|
type: e.string(),
|
|
6087
6105
|
options: e.record(e.string(), e.unknown()).default({})
|
|
6088
|
-
}),
|
|
6106
|
+
}), ya = e.object({
|
|
6089
6107
|
id: e.string().optional(),
|
|
6090
6108
|
custom_domain_id: e.string(),
|
|
6091
6109
|
priority: e.number().int().default(100),
|
|
6092
|
-
match:
|
|
6093
|
-
handlers: e.array(
|
|
6110
|
+
match: _a,
|
|
6111
|
+
handlers: e.array(va).min(1)
|
|
6094
6112
|
});
|
|
6095
|
-
|
|
6113
|
+
ya.extend({
|
|
6096
6114
|
id: e.string(),
|
|
6097
6115
|
tenant_id: e.string(),
|
|
6098
6116
|
created_at: e.string(),
|
|
6099
6117
|
updated_at: e.string()
|
|
6100
|
-
}),
|
|
6118
|
+
}), ya.partial().omit({
|
|
6101
6119
|
id: !0,
|
|
6102
6120
|
custom_domain_id: !0
|
|
6103
6121
|
});
|
|
6104
|
-
var
|
|
6122
|
+
var ba = e.object({
|
|
6105
6123
|
scim: e.string(),
|
|
6106
6124
|
auth0: e.string()
|
|
6107
|
-
}),
|
|
6125
|
+
}), xa = e.object({
|
|
6108
6126
|
connection_id: e.string(),
|
|
6109
6127
|
user_id_attribute: e.string().default("externalId"),
|
|
6110
|
-
mapping: e.array(
|
|
6128
|
+
mapping: e.array(ba).default([])
|
|
6111
6129
|
});
|
|
6112
6130
|
e.object({
|
|
6113
6131
|
created_at: e.string(),
|
|
6114
6132
|
updated_at: e.string()
|
|
6115
|
-
}).extend(
|
|
6116
|
-
var
|
|
6133
|
+
}).extend(xa.shape);
|
|
6134
|
+
var Sa = e.object({
|
|
6117
6135
|
token_id: e.string(),
|
|
6118
6136
|
connection_id: e.string(),
|
|
6119
6137
|
token_hash: e.string(),
|
|
@@ -6123,20 +6141,20 @@ var va = e.object({
|
|
|
6123
6141
|
e.object({
|
|
6124
6142
|
created_at: e.string(),
|
|
6125
6143
|
last_used_at: e.string().optional()
|
|
6126
|
-
}).extend(
|
|
6127
|
-
var
|
|
6144
|
+
}).extend(Sa.shape);
|
|
6145
|
+
var Ca = e.object({
|
|
6128
6146
|
connection_id: e.string(),
|
|
6129
6147
|
external_id: e.string(),
|
|
6130
6148
|
user_id: e.string()
|
|
6131
6149
|
});
|
|
6132
|
-
e.object({ created_at: e.string() }).extend(
|
|
6150
|
+
e.object({ created_at: e.string() }).extend(Ca.shape), e.object({
|
|
6133
6151
|
name: e.string(),
|
|
6134
6152
|
enabled: e.boolean().optional().default(!0),
|
|
6135
6153
|
default_from_address: e.string().optional(),
|
|
6136
6154
|
credentials: e.record(e.string(), e.unknown()),
|
|
6137
6155
|
settings: e.object({}).optional()
|
|
6138
6156
|
});
|
|
6139
|
-
var
|
|
6157
|
+
var wa = e.enum([
|
|
6140
6158
|
"verify_email",
|
|
6141
6159
|
"verify_email_by_code",
|
|
6142
6160
|
"reset_email",
|
|
@@ -6151,7 +6169,7 @@ var ba = e.enum([
|
|
|
6151
6169
|
"user_invitation"
|
|
6152
6170
|
]);
|
|
6153
6171
|
e.object({
|
|
6154
|
-
template:
|
|
6172
|
+
template: wa,
|
|
6155
6173
|
body: e.string(),
|
|
6156
6174
|
from: e.string(),
|
|
6157
6175
|
subject: e.string(),
|
|
@@ -6168,7 +6186,7 @@ e.object({
|
|
|
6168
6186
|
expires_at: e.string().optional(),
|
|
6169
6187
|
idle_expires_at: e.string().optional(),
|
|
6170
6188
|
last_exchanged_at: e.string().optional(),
|
|
6171
|
-
device:
|
|
6189
|
+
device: ra,
|
|
6172
6190
|
resource_servers: e.array(e.object({
|
|
6173
6191
|
audience: e.string(),
|
|
6174
6192
|
scopes: e.string()
|
|
@@ -6189,10 +6207,10 @@ e.object({
|
|
|
6189
6207
|
name: e.string(),
|
|
6190
6208
|
options: e.object({})
|
|
6191
6209
|
});
|
|
6192
|
-
var
|
|
6210
|
+
var Ta = e.object({
|
|
6193
6211
|
value: e.string(),
|
|
6194
6212
|
description: e.string().optional()
|
|
6195
|
-
}),
|
|
6213
|
+
}), Ea = e.object({
|
|
6196
6214
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
6197
6215
|
enforce_policies: e.boolean().optional(),
|
|
6198
6216
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -6200,11 +6218,11 @@ var xa = e.object({
|
|
|
6200
6218
|
persist_client_authorization: e.boolean().optional(),
|
|
6201
6219
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
6202
6220
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
6203
|
-
}),
|
|
6221
|
+
}), Da = e.object({
|
|
6204
6222
|
id: e.string().optional(),
|
|
6205
6223
|
name: e.string(),
|
|
6206
6224
|
identifier: e.string(),
|
|
6207
|
-
scopes: e.array(
|
|
6225
|
+
scopes: e.array(Ta).optional(),
|
|
6208
6226
|
signing_alg: e.string().optional(),
|
|
6209
6227
|
signing_secret: e.string().optional(),
|
|
6210
6228
|
token_lifetime: e.number().default(86400),
|
|
@@ -6212,20 +6230,20 @@ var xa = e.object({
|
|
|
6212
6230
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
6213
6231
|
allow_offline_access: e.boolean().optional(),
|
|
6214
6232
|
verificationKey: e.string().optional(),
|
|
6215
|
-
options:
|
|
6233
|
+
options: Ea.optional(),
|
|
6216
6234
|
is_system: e.boolean().optional(),
|
|
6217
6235
|
metadata: e.record(e.string(), e.any()).optional()
|
|
6218
6236
|
}).extend({
|
|
6219
6237
|
created_at: e.string().optional(),
|
|
6220
6238
|
updated_at: e.string().optional()
|
|
6221
6239
|
});
|
|
6222
|
-
e.array(
|
|
6223
|
-
var
|
|
6240
|
+
e.array(Da);
|
|
6241
|
+
var Oa = e.object({
|
|
6224
6242
|
role_id: e.string(),
|
|
6225
6243
|
resource_server_identifier: e.string(),
|
|
6226
6244
|
permission_name: e.string()
|
|
6227
6245
|
}).extend({ created_at: e.string() });
|
|
6228
|
-
e.array(
|
|
6246
|
+
e.array(Oa), e.object({
|
|
6229
6247
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
6230
6248
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
6231
6249
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
@@ -6238,7 +6256,7 @@ e.array(wa), e.object({
|
|
|
6238
6256
|
failed_logins: e.array(e.string()).optional(),
|
|
6239
6257
|
last_password_reset: e.string().optional()
|
|
6240
6258
|
});
|
|
6241
|
-
var
|
|
6259
|
+
var ka = e.object({
|
|
6242
6260
|
user_id: e.string(),
|
|
6243
6261
|
resource_server_identifier: e.string(),
|
|
6244
6262
|
permission_name: e.string(),
|
|
@@ -6247,8 +6265,8 @@ var Ta = e.object({
|
|
|
6247
6265
|
tenant_id: e.string(),
|
|
6248
6266
|
created_at: e.string().optional()
|
|
6249
6267
|
});
|
|
6250
|
-
e.array(
|
|
6251
|
-
var
|
|
6268
|
+
e.array(ka);
|
|
6269
|
+
var Aa = e.object({
|
|
6252
6270
|
user_id: e.string(),
|
|
6253
6271
|
resource_server_identifier: e.string(),
|
|
6254
6272
|
resource_server_name: e.string(),
|
|
@@ -6257,8 +6275,8 @@ var Ea = e.object({
|
|
|
6257
6275
|
created_at: e.string().optional(),
|
|
6258
6276
|
organization_id: e.string().optional()
|
|
6259
6277
|
});
|
|
6260
|
-
e.array(
|
|
6261
|
-
var
|
|
6278
|
+
e.array(Aa);
|
|
6279
|
+
var ja = e.object({
|
|
6262
6280
|
user_id: e.string(),
|
|
6263
6281
|
role_id: e.string(),
|
|
6264
6282
|
organization_id: e.string().optional()
|
|
@@ -6266,8 +6284,8 @@ var Da = e.object({
|
|
|
6266
6284
|
tenant_id: e.string(),
|
|
6267
6285
|
created_at: e.string().optional()
|
|
6268
6286
|
});
|
|
6269
|
-
e.array(
|
|
6270
|
-
var
|
|
6287
|
+
e.array(ja);
|
|
6288
|
+
var Ma = e.object({
|
|
6271
6289
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
6272
6290
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
6273
6291
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
@@ -6278,19 +6296,19 @@ var Oa = e.object({
|
|
|
6278
6296
|
created_at: e.string().optional(),
|
|
6279
6297
|
updated_at: e.string().optional()
|
|
6280
6298
|
});
|
|
6281
|
-
e.array(
|
|
6282
|
-
var
|
|
6299
|
+
e.array(Ma);
|
|
6300
|
+
var Na = e.object({
|
|
6283
6301
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
6284
6302
|
colors: e.object({
|
|
6285
6303
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
6286
6304
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
6287
6305
|
}).optional()
|
|
6288
|
-
}).optional(),
|
|
6306
|
+
}).optional(), Pa = e.object({
|
|
6289
6307
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
6290
6308
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
6291
6309
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
6292
6310
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
6293
|
-
}),
|
|
6311
|
+
}), Fa = e.object({ client_credentials: e.object({
|
|
6294
6312
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
6295
6313
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
6296
6314
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
@@ -6299,15 +6317,15 @@ e.object({
|
|
|
6299
6317
|
id: e.string().optional(),
|
|
6300
6318
|
name: e.string().min(1).regex(/^[a-z0-9_-]+$/, { message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores" }).openapi({ description: "The name of the organization. Must be lowercase and can only contain letters, numbers, hyphens, and underscores." }),
|
|
6301
6319
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
6302
|
-
branding:
|
|
6320
|
+
branding: Na,
|
|
6303
6321
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
6304
|
-
enabled_connections: e.array(
|
|
6305
|
-
token_quota:
|
|
6322
|
+
enabled_connections: e.array(Pa).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
6323
|
+
token_quota: Fa
|
|
6306
6324
|
}).extend(G.shape).extend({
|
|
6307
6325
|
id: e.string(),
|
|
6308
6326
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
6309
6327
|
});
|
|
6310
|
-
var
|
|
6328
|
+
var Ia = e.object({
|
|
6311
6329
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
6312
6330
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
6313
6331
|
show_as_button: e.boolean().optional().default(!0),
|
|
@@ -6320,7 +6338,7 @@ var Ma = e.object({
|
|
|
6320
6338
|
created_at: e.string().optional(),
|
|
6321
6339
|
updated_at: e.string().optional()
|
|
6322
6340
|
});
|
|
6323
|
-
e.array(
|
|
6341
|
+
e.array(Ia), e.object({
|
|
6324
6342
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
6325
6343
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
6326
6344
|
}).extend(G.shape).extend({ id: e.string() }), e.object({
|
|
@@ -6459,22 +6477,33 @@ e.array(Ma), e.object({
|
|
|
6459
6477
|
"passwordless",
|
|
6460
6478
|
"enterprise"
|
|
6461
6479
|
]);
|
|
6462
|
-
var
|
|
6480
|
+
var La = e.object({
|
|
6481
|
+
cohort: e.string(),
|
|
6482
|
+
sessions: e.number(),
|
|
6483
|
+
active: e.array(e.number())
|
|
6484
|
+
});
|
|
6485
|
+
e.object({
|
|
6486
|
+
interval: e.literal("week"),
|
|
6487
|
+
from: e.string(),
|
|
6488
|
+
to: e.string(),
|
|
6489
|
+
cohorts: e.array(La)
|
|
6490
|
+
});
|
|
6491
|
+
var Ra = e.object({
|
|
6463
6492
|
name: e.string(),
|
|
6464
6493
|
type: e.string()
|
|
6465
|
-
}),
|
|
6494
|
+
}), za = e.object({
|
|
6466
6495
|
elapsed: e.number(),
|
|
6467
6496
|
rows_read: e.number().optional(),
|
|
6468
6497
|
bytes_read: e.number().optional()
|
|
6469
6498
|
});
|
|
6470
6499
|
e.object({
|
|
6471
|
-
meta: e.array(
|
|
6500
|
+
meta: e.array(Ra),
|
|
6472
6501
|
data: e.array(e.record(e.string(), e.any())),
|
|
6473
6502
|
rows: e.number(),
|
|
6474
6503
|
rows_before_limit_at_least: e.number().optional(),
|
|
6475
|
-
statistics:
|
|
6504
|
+
statistics: za.optional()
|
|
6476
6505
|
});
|
|
6477
|
-
var
|
|
6506
|
+
var Ba = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.signup-password.reset-password.consent.mfa.mfa-push.mfa-otp.mfa-voice.mfa-phone.mfa-webauthn.mfa-email.mfa-recovery-code.status.device-flow.email-verification.email-otp-challenge.organizations.invitation.common.passkeys.captcha.custom-form.login-passwordless.mfa-login-options".split(".")), Va = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
6478
6507
|
type: "object",
|
|
6479
6508
|
additionalProperties: {
|
|
6480
6509
|
type: "object",
|
|
@@ -6482,11 +6511,11 @@ var Fa = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.
|
|
|
6482
6511
|
}
|
|
6483
6512
|
});
|
|
6484
6513
|
e.object({
|
|
6485
|
-
prompt:
|
|
6514
|
+
prompt: Ba,
|
|
6486
6515
|
language: e.string(),
|
|
6487
|
-
custom_text:
|
|
6516
|
+
custom_text: Va
|
|
6488
6517
|
});
|
|
6489
|
-
var
|
|
6518
|
+
var Ha = e.enum([
|
|
6490
6519
|
"phone",
|
|
6491
6520
|
"totp",
|
|
6492
6521
|
"email",
|
|
@@ -6494,9 +6523,9 @@ var La = e.enum([
|
|
|
6494
6523
|
"webauthn-roaming",
|
|
6495
6524
|
"webauthn-platform",
|
|
6496
6525
|
"passkey"
|
|
6497
|
-
]),
|
|
6526
|
+
]), Ua = e.object({
|
|
6498
6527
|
user_id: e.string(),
|
|
6499
|
-
type:
|
|
6528
|
+
type: Ha,
|
|
6500
6529
|
phone_number: e.string().optional(),
|
|
6501
6530
|
totp_secret: e.string().optional(),
|
|
6502
6531
|
credential_id: e.string().optional(),
|
|
@@ -6507,7 +6536,7 @@ var La = e.enum([
|
|
|
6507
6536
|
friendly_name: e.string().optional(),
|
|
6508
6537
|
confirmed: e.boolean().default(!1)
|
|
6509
6538
|
});
|
|
6510
|
-
function
|
|
6539
|
+
function Wa(t, n) {
|
|
6511
6540
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
6512
6541
|
code: e.ZodIssueCode.custom,
|
|
6513
6542
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -6530,51 +6559,51 @@ function za(t, n) {
|
|
|
6530
6559
|
path: ["public_key"]
|
|
6531
6560
|
}));
|
|
6532
6561
|
}
|
|
6533
|
-
|
|
6562
|
+
Ua.superRefine(Wa), Ua.extend({
|
|
6534
6563
|
id: e.string(),
|
|
6535
6564
|
created_at: e.string(),
|
|
6536
6565
|
updated_at: e.string()
|
|
6537
|
-
}).superRefine(
|
|
6566
|
+
}).superRefine(Wa), e.object({
|
|
6538
6567
|
id: e.string().optional(),
|
|
6539
6568
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
6540
6569
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
6541
6570
|
});
|
|
6542
|
-
function
|
|
6571
|
+
function Ga(e) {
|
|
6543
6572
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
6544
6573
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
6545
6574
|
return n;
|
|
6546
6575
|
}
|
|
6547
6576
|
//#endregion
|
|
6548
6577
|
//#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/url-alphabet/index.js
|
|
6549
|
-
var
|
|
6578
|
+
var Ka = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", qa = (e = 21) => {
|
|
6550
6579
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
6551
|
-
for (; e--;) t +=
|
|
6580
|
+
for (; e--;) t += Ka[n[e] & 63];
|
|
6552
6581
|
return t;
|
|
6553
6582
|
};
|
|
6554
6583
|
//#endregion
|
|
6555
6584
|
//#region src/helpers.ts
|
|
6556
|
-
async function
|
|
6585
|
+
async function Ja(e) {
|
|
6557
6586
|
let t = new DecompressionStream("deflate-raw"), n = new Uint8Array(e), r = new Blob([n]).stream().pipeThrough(t);
|
|
6558
6587
|
return new Uint8Array(await new Response(r).arrayBuffer());
|
|
6559
6588
|
}
|
|
6560
|
-
async function
|
|
6561
|
-
let t =
|
|
6589
|
+
async function Ya(e) {
|
|
6590
|
+
let t = Ga(e.replace(/ /g, "+"));
|
|
6562
6591
|
try {
|
|
6563
|
-
let e = await
|
|
6592
|
+
let e = await Ja(t);
|
|
6564
6593
|
return new TextDecoder().decode(e);
|
|
6565
6594
|
} catch (e) {
|
|
6566
6595
|
return console.warn("Decompression failed, assuming data is not compressed:", e), new TextDecoder().decode(t);
|
|
6567
6596
|
}
|
|
6568
6597
|
}
|
|
6569
|
-
async function
|
|
6570
|
-
let t = await
|
|
6598
|
+
async function Xa(e) {
|
|
6599
|
+
let t = await Ya(e), n = new en({
|
|
6571
6600
|
attributeNamePrefix: "@_",
|
|
6572
6601
|
alwaysCreateTextNode: !0,
|
|
6573
6602
|
ignoreAttributes: !1
|
|
6574
6603
|
}).parse(t);
|
|
6575
6604
|
return r.parse(n);
|
|
6576
6605
|
}
|
|
6577
|
-
function
|
|
6606
|
+
function Za(e) {
|
|
6578
6607
|
let t = e.certificates.map((e) => ({
|
|
6579
6608
|
"@_use": "signing",
|
|
6580
6609
|
KeyInfo: {
|
|
@@ -6648,8 +6677,8 @@ function Ka(e) {
|
|
|
6648
6677
|
attributeNamePrefix: "@_"
|
|
6649
6678
|
}).build(n);
|
|
6650
6679
|
}
|
|
6651
|
-
async function
|
|
6652
|
-
let n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 600 * 1e3).toISOString(), i = e.issueInstant || n, a = e.sessionNotOnOrAfter || r, o = e.responseId || `_${
|
|
6680
|
+
async function Qa(e, t) {
|
|
6681
|
+
let n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 600 * 1e3).toISOString(), i = e.issueInstant || n, a = e.sessionNotOnOrAfter || r, o = e.responseId || `_${qa()}`, s = e.assertionId || `_${qa()}`, c = [{
|
|
6653
6682
|
"samlp:Response": [
|
|
6654
6683
|
{ "saml:Issuer": [{ "#text": e.issuer }] },
|
|
6655
6684
|
{ "samlp:Status": [{
|
|
@@ -6830,7 +6859,7 @@ async function qa(e, t) {
|
|
|
6830
6859
|
}
|
|
6831
6860
|
//#endregion
|
|
6832
6861
|
//#region src/signers/http.ts
|
|
6833
|
-
var
|
|
6862
|
+
var $a = class {
|
|
6834
6863
|
signUrl;
|
|
6835
6864
|
constructor(e) {
|
|
6836
6865
|
this.signUrl = e;
|
|
@@ -6850,4 +6879,4 @@ var Ja = class {
|
|
|
6850
6879
|
}
|
|
6851
6880
|
};
|
|
6852
6881
|
//#endregion
|
|
6853
|
-
export {
|
|
6882
|
+
export { $a as HttpSamlSigner, Za as createSamlMetadata, Qa as createSamlResponse, s as dsSignatureSchema, Ya as inflateDecompress, Ja as inflateRaw, Xa as parseSamlRequestQuery, n as samlIssuerSchema, i as samlMetadataResponseSchema, r as samlRequestSchema, c as samlResponseJsonSchema };
|