@authhero/saml 0.5.2 → 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 +177 -152
- package/dist/saml.cjs +4 -4
- package/dist/saml.mjs +377 -352
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/core.mjs
CHANGED
|
@@ -5202,7 +5202,7 @@ var bi = e.enum([
|
|
|
5202
5202
|
"credentials-exchange",
|
|
5203
5203
|
"pre-user-registration",
|
|
5204
5204
|
"post-user-registration"
|
|
5205
|
-
]), wi = e.enum([
|
|
5205
|
+
]), wi = e.enum(["post-user-login"]), Ti = e.enum(["impersonate"]), Ei = e.enum([
|
|
5206
5206
|
"ensure-username",
|
|
5207
5207
|
"set-preferred-username",
|
|
5208
5208
|
"account-linking"
|
|
@@ -5212,59 +5212,73 @@ var bi = e.enum([
|
|
|
5212
5212
|
priority: e.number().optional(),
|
|
5213
5213
|
hook_id: e.string().optional(),
|
|
5214
5214
|
metadata: e.record(e.string(), e.unknown()).optional()
|
|
5215
|
-
},
|
|
5215
|
+
}, Di = e.object({
|
|
5216
5216
|
...Z,
|
|
5217
5217
|
trigger_id: bi,
|
|
5218
5218
|
url: e.string()
|
|
5219
|
-
}),
|
|
5219
|
+
}), Oi = e.object({
|
|
5220
5220
|
...Z,
|
|
5221
5221
|
trigger_id: xi,
|
|
5222
5222
|
form_id: e.string()
|
|
5223
|
-
}),
|
|
5223
|
+
}), ki = e.object({
|
|
5224
5224
|
...Z,
|
|
5225
5225
|
trigger_id: Si,
|
|
5226
|
-
template_id:
|
|
5227
|
-
}),
|
|
5226
|
+
template_id: Ei
|
|
5227
|
+
}), Ai = e.object({
|
|
5228
5228
|
...Z,
|
|
5229
5229
|
trigger_id: Ci,
|
|
5230
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()
|
|
5231
5236
|
});
|
|
5232
5237
|
e.union([
|
|
5233
|
-
Ti,
|
|
5234
|
-
Ei,
|
|
5235
5238
|
Di,
|
|
5236
|
-
Oi
|
|
5239
|
+
Oi,
|
|
5240
|
+
ki,
|
|
5241
|
+
Ai,
|
|
5242
|
+
ji
|
|
5237
5243
|
]);
|
|
5238
|
-
var
|
|
5244
|
+
var Mi = e.object({
|
|
5239
5245
|
...Z,
|
|
5240
5246
|
trigger_id: bi
|
|
5241
5247
|
}).extend(G.shape).extend({
|
|
5242
5248
|
hook_id: e.string(),
|
|
5243
5249
|
url: e.string()
|
|
5244
|
-
}),
|
|
5250
|
+
}), Ni = e.object({
|
|
5245
5251
|
...Z,
|
|
5246
5252
|
trigger_id: xi
|
|
5247
5253
|
}).extend(G.shape).extend({
|
|
5248
5254
|
hook_id: e.string(),
|
|
5249
5255
|
form_id: e.string()
|
|
5250
|
-
}),
|
|
5256
|
+
}), Pi = e.object({
|
|
5251
5257
|
...Z,
|
|
5252
5258
|
trigger_id: Si
|
|
5253
5259
|
}).extend(G.shape).extend({
|
|
5254
5260
|
hook_id: e.string(),
|
|
5255
|
-
template_id:
|
|
5256
|
-
}),
|
|
5261
|
+
template_id: Ei
|
|
5262
|
+
}), Fi = e.object({
|
|
5257
5263
|
...Z,
|
|
5258
5264
|
trigger_id: Ci
|
|
5259
5265
|
}).extend(G.shape).extend({
|
|
5260
5266
|
hook_id: e.string(),
|
|
5261
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()
|
|
5262
5275
|
});
|
|
5263
5276
|
e.union([
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5277
|
+
Mi,
|
|
5278
|
+
Ni,
|
|
5279
|
+
Pi,
|
|
5280
|
+
Fi,
|
|
5281
|
+
Ii
|
|
5268
5282
|
]), e.object({
|
|
5269
5283
|
code: e.string().max(1e5),
|
|
5270
5284
|
secrets: e.record(e.string(), e.string()).optional()
|
|
@@ -5272,11 +5286,11 @@ e.union([
|
|
|
5272
5286
|
id: e.string(),
|
|
5273
5287
|
tenant_id: e.string()
|
|
5274
5288
|
}).extend(G.shape);
|
|
5275
|
-
var
|
|
5289
|
+
var Li = e.object({ name: e.string().optional() }), Ri = e.object({ email: e.string().optional() }), zi = e.object({
|
|
5276
5290
|
id: e.string().optional(),
|
|
5277
5291
|
organization_id: e.string().max(50),
|
|
5278
|
-
inviter:
|
|
5279
|
-
invitee:
|
|
5292
|
+
inviter: Li,
|
|
5293
|
+
invitee: Ri,
|
|
5280
5294
|
invitation_url: e.string().url(),
|
|
5281
5295
|
client_id: e.string(),
|
|
5282
5296
|
connection_id: e.string().optional(),
|
|
@@ -5292,8 +5306,8 @@ e.object({
|
|
|
5292
5306
|
created_at: e.string().datetime(),
|
|
5293
5307
|
expires_at: e.string().datetime(),
|
|
5294
5308
|
ticket_id: e.string().optional()
|
|
5295
|
-
}).extend(
|
|
5296
|
-
var
|
|
5309
|
+
}).extend(zi.omit({ id: !0 }).shape);
|
|
5310
|
+
var Bi = e.object({
|
|
5297
5311
|
alg: e.enum([
|
|
5298
5312
|
"RS256",
|
|
5299
5313
|
"RS384",
|
|
@@ -5335,7 +5349,7 @@ var Ii = e.object({
|
|
|
5335
5349
|
message: `EC JWK is missing required member '${r}'`
|
|
5336
5350
|
});
|
|
5337
5351
|
});
|
|
5338
|
-
e.object({ keys: e.array(
|
|
5352
|
+
e.object({ keys: e.array(Bi) }), e.object({
|
|
5339
5353
|
issuer: e.string(),
|
|
5340
5354
|
authorization_endpoint: e.string(),
|
|
5341
5355
|
token_endpoint: e.string(),
|
|
@@ -5362,9 +5376,9 @@ e.object({ keys: e.array(Ii) }), e.object({
|
|
|
5362
5376
|
backchannel_logout_supported: e.boolean().optional(),
|
|
5363
5377
|
backchannel_logout_session_supported: e.boolean().optional()
|
|
5364
5378
|
});
|
|
5365
|
-
var
|
|
5379
|
+
var Vi = /* @__PURE__ */ function(e) {
|
|
5366
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;
|
|
5367
|
-
}({}),
|
|
5381
|
+
}({}), Hi = e.nativeEnum(Vi), Ui = e.object({
|
|
5368
5382
|
strategy: e.string(),
|
|
5369
5383
|
strategy_type: e.string()
|
|
5370
5384
|
});
|
|
@@ -5378,12 +5392,12 @@ e.object({
|
|
|
5378
5392
|
useragent: e.string().optional(),
|
|
5379
5393
|
session_id: e.string().optional(),
|
|
5380
5394
|
authorization_url: e.string().optional(),
|
|
5381
|
-
state:
|
|
5395
|
+
state: Hi.optional().default("pending"),
|
|
5382
5396
|
state_data: e.string().optional(),
|
|
5383
5397
|
failure_reason: e.string().optional(),
|
|
5384
5398
|
user_id: e.string().optional(),
|
|
5385
5399
|
auth_connection: e.string().optional(),
|
|
5386
|
-
auth_strategy:
|
|
5400
|
+
auth_strategy: Ui.optional(),
|
|
5387
5401
|
authenticated_at: e.string().optional()
|
|
5388
5402
|
}).openapi({ description: "This represents a login sesion" }).extend({
|
|
5389
5403
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
@@ -5550,17 +5564,17 @@ var Q = {
|
|
|
5550
5564
|
WARNING_DURING_LOGIN: "w",
|
|
5551
5565
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
5552
5566
|
WARNING_USER_MANAGEMENT: "wum"
|
|
5553
|
-
},
|
|
5567
|
+
}, Wi = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
|
|
5554
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, (() => {
|
|
5555
5569
|
let e = {};
|
|
5556
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";
|
|
5557
5571
|
return e;
|
|
5558
5572
|
})();
|
|
5559
|
-
var
|
|
5573
|
+
var Gi = e.object({
|
|
5560
5574
|
name: e.string(),
|
|
5561
5575
|
version: e.string(),
|
|
5562
5576
|
env: e.object({ node: e.string().optional() }).optional()
|
|
5563
|
-
}),
|
|
5577
|
+
}), Ki = e.object({
|
|
5564
5578
|
country_code: e.string().length(2),
|
|
5565
5579
|
city_name: e.string(),
|
|
5566
5580
|
latitude: e.string(),
|
|
@@ -5569,7 +5583,7 @@ var Vi = e.object({
|
|
|
5569
5583
|
continent_code: e.string()
|
|
5570
5584
|
});
|
|
5571
5585
|
e.object({
|
|
5572
|
-
type:
|
|
5586
|
+
type: Wi,
|
|
5573
5587
|
date: e.string(),
|
|
5574
5588
|
description: e.string().optional(),
|
|
5575
5589
|
ip: e.string().optional(),
|
|
@@ -5587,63 +5601,63 @@ e.object({
|
|
|
5587
5601
|
strategy: e.string().optional(),
|
|
5588
5602
|
strategy_type: e.string().optional(),
|
|
5589
5603
|
hostname: e.string().optional(),
|
|
5590
|
-
auth0_client:
|
|
5604
|
+
auth0_client: Gi.optional(),
|
|
5591
5605
|
log_id: e.string().optional(),
|
|
5592
|
-
location_info:
|
|
5606
|
+
location_info: Ki.optional()
|
|
5593
5607
|
}).extend({ log_id: e.string() });
|
|
5594
|
-
var
|
|
5608
|
+
var qi = e.enum([
|
|
5595
5609
|
"http",
|
|
5596
5610
|
"eventbridge",
|
|
5597
5611
|
"eventgrid",
|
|
5598
5612
|
"splunk",
|
|
5599
5613
|
"datadog",
|
|
5600
5614
|
"sumo"
|
|
5601
|
-
]),
|
|
5615
|
+
]), Ji = e.enum([
|
|
5602
5616
|
"active",
|
|
5603
5617
|
"paused",
|
|
5604
5618
|
"suspended"
|
|
5605
|
-
]),
|
|
5619
|
+
]), Yi = e.object({
|
|
5606
5620
|
type: e.string(),
|
|
5607
5621
|
name: e.string()
|
|
5608
5622
|
});
|
|
5609
5623
|
e.object({
|
|
5610
5624
|
name: e.string(),
|
|
5611
|
-
type:
|
|
5612
|
-
status:
|
|
5625
|
+
type: qi,
|
|
5626
|
+
status: Ji.optional(),
|
|
5613
5627
|
sink: e.record(e.string(), e.unknown()),
|
|
5614
|
-
filters: e.array(
|
|
5628
|
+
filters: e.array(Yi).optional(),
|
|
5615
5629
|
isPriority: e.boolean().optional()
|
|
5616
5630
|
}).extend({
|
|
5617
5631
|
id: e.string(),
|
|
5618
|
-
status:
|
|
5632
|
+
status: Ji,
|
|
5619
5633
|
created_at: e.string().optional(),
|
|
5620
5634
|
updated_at: e.string().optional()
|
|
5621
5635
|
});
|
|
5622
|
-
var
|
|
5636
|
+
var Xi = e.enum([
|
|
5623
5637
|
"auth0",
|
|
5624
5638
|
"cognito",
|
|
5625
5639
|
"okta",
|
|
5626
5640
|
"oidc"
|
|
5627
|
-
]),
|
|
5641
|
+
]), Zi = e.object({
|
|
5628
5642
|
domain: e.string(),
|
|
5629
5643
|
client_id: e.string(),
|
|
5630
5644
|
client_secret: e.string(),
|
|
5631
5645
|
audience: e.string().optional(),
|
|
5632
5646
|
scope: e.string().optional()
|
|
5633
|
-
}),
|
|
5647
|
+
}), Qi = e.object({
|
|
5634
5648
|
id: e.string().optional(),
|
|
5635
5649
|
name: e.string(),
|
|
5636
|
-
provider:
|
|
5650
|
+
provider: Xi,
|
|
5637
5651
|
connection: e.string(),
|
|
5638
5652
|
enabled: e.boolean().default(!0),
|
|
5639
|
-
credentials:
|
|
5653
|
+
credentials: Zi
|
|
5640
5654
|
});
|
|
5641
5655
|
e.object({
|
|
5642
5656
|
id: e.string(),
|
|
5643
5657
|
created_at: e.string(),
|
|
5644
5658
|
updated_at: e.string()
|
|
5645
|
-
}).extend(
|
|
5646
|
-
var
|
|
5659
|
+
}).extend(Qi.shape);
|
|
5660
|
+
var $i = e.object({
|
|
5647
5661
|
enabled: e.boolean().optional(),
|
|
5648
5662
|
shields: e.array(e.string()).optional(),
|
|
5649
5663
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -5652,13 +5666,13 @@ var Yi = e.object({
|
|
|
5652
5666
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
5653
5667
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
5654
5668
|
}).optional()
|
|
5655
|
-
}),
|
|
5669
|
+
}), ea = e.object({
|
|
5656
5670
|
enabled: e.boolean().optional(),
|
|
5657
5671
|
shields: e.array(e.string()).optional(),
|
|
5658
5672
|
allowlist: e.array(e.string()).optional(),
|
|
5659
5673
|
mode: e.string().optional(),
|
|
5660
5674
|
max_attempts: e.number().optional()
|
|
5661
|
-
}),
|
|
5675
|
+
}), ta = e.object({
|
|
5662
5676
|
enabled: e.boolean().optional(),
|
|
5663
5677
|
shields: e.array(e.string()).optional(),
|
|
5664
5678
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -5672,10 +5686,10 @@ var Yi = e.object({
|
|
|
5672
5686
|
rate: e.number().optional()
|
|
5673
5687
|
}).optional()
|
|
5674
5688
|
}).optional()
|
|
5675
|
-
}),
|
|
5676
|
-
breached_password_detection:
|
|
5677
|
-
brute_force_protection:
|
|
5678
|
-
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()
|
|
5679
5693
|
});
|
|
5680
5694
|
e.object({
|
|
5681
5695
|
id: e.string().optional(),
|
|
@@ -5688,14 +5702,14 @@ e.object({
|
|
|
5688
5702
|
created_at: e.string(),
|
|
5689
5703
|
updated_at: e.string()
|
|
5690
5704
|
});
|
|
5691
|
-
var
|
|
5705
|
+
var ra = e.object({
|
|
5692
5706
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
5693
5707
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
5694
5708
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
5695
5709
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
5696
5710
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
5697
5711
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
5698
|
-
}),
|
|
5712
|
+
}), ia = e.object({
|
|
5699
5713
|
id: e.string(),
|
|
5700
5714
|
revoked_at: e.string().optional(),
|
|
5701
5715
|
used_at: e.string().optional(),
|
|
@@ -5703,7 +5717,7 @@ var $i = e.object({
|
|
|
5703
5717
|
expires_at: e.string().optional(),
|
|
5704
5718
|
login_session_id: e.string(),
|
|
5705
5719
|
idle_expires_at: e.string().optional(),
|
|
5706
|
-
device:
|
|
5720
|
+
device: ra.describe("Metadata related to the device used in the session"),
|
|
5707
5721
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
5708
5722
|
});
|
|
5709
5723
|
e.object({
|
|
@@ -5711,7 +5725,7 @@ e.object({
|
|
|
5711
5725
|
updated_at: e.string(),
|
|
5712
5726
|
authenticated_at: e.string(),
|
|
5713
5727
|
last_interaction_at: e.string()
|
|
5714
|
-
}).extend(
|
|
5728
|
+
}).extend(ia.shape), e.object({
|
|
5715
5729
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
5716
5730
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
5717
5731
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -5728,7 +5742,7 @@ e.object({
|
|
|
5728
5742
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
5729
5743
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
5730
5744
|
});
|
|
5731
|
-
var
|
|
5745
|
+
var aa = e.object({
|
|
5732
5746
|
id: e.string().optional(),
|
|
5733
5747
|
audience: e.string().optional(),
|
|
5734
5748
|
friendly_name: e.string(),
|
|
@@ -5846,7 +5860,7 @@ var ta = e.object({
|
|
|
5846
5860
|
"shared_planetscale"
|
|
5847
5861
|
]).optional(),
|
|
5848
5862
|
d1_database_id: e.string().max(64).optional(),
|
|
5849
|
-
attack_protection:
|
|
5863
|
+
attack_protection: na.optional(),
|
|
5850
5864
|
mfa: e.object({
|
|
5851
5865
|
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
5852
5866
|
factors: e.object({
|
|
@@ -5877,35 +5891,35 @@ var ta = e.object({
|
|
|
5877
5891
|
e.object({
|
|
5878
5892
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
5879
5893
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
5880
|
-
}).extend(
|
|
5894
|
+
}).extend(aa.shape).extend({
|
|
5881
5895
|
id: e.string(),
|
|
5882
5896
|
is_control_plane: e.boolean().optional()
|
|
5883
5897
|
});
|
|
5884
|
-
var
|
|
5898
|
+
var oa = e.enum([
|
|
5885
5899
|
"provision",
|
|
5886
5900
|
"seed",
|
|
5887
5901
|
"upgrade",
|
|
5888
5902
|
"backup",
|
|
5889
5903
|
"deprovision"
|
|
5890
|
-
]),
|
|
5904
|
+
]), sa = e.enum([
|
|
5891
5905
|
"pending",
|
|
5892
5906
|
"running",
|
|
5893
5907
|
"succeeded",
|
|
5894
5908
|
"failed",
|
|
5895
5909
|
"cancelled"
|
|
5896
|
-
]),
|
|
5910
|
+
]), ca = e.enum(["inline", "cloudflare-workflows"]);
|
|
5897
5911
|
e.object({
|
|
5898
5912
|
tenant_id: e.string().max(255).nullable().default(null),
|
|
5899
5913
|
rollout_id: e.string().max(255).nullable().optional(),
|
|
5900
|
-
kind:
|
|
5901
|
-
engine:
|
|
5914
|
+
kind: oa,
|
|
5915
|
+
engine: ca,
|
|
5902
5916
|
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
5903
5917
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
5904
5918
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
5905
5919
|
initiated_by: e.string().max(255).nullable().optional()
|
|
5906
5920
|
}).extend({
|
|
5907
5921
|
id: e.string(),
|
|
5908
|
-
status:
|
|
5922
|
+
status: sa,
|
|
5909
5923
|
current_step: e.string().max(255).nullable().optional(),
|
|
5910
5924
|
error: e.string().nullable().optional(),
|
|
5911
5925
|
created_at: e.string(),
|
|
@@ -5920,7 +5934,7 @@ e.object({
|
|
|
5920
5934
|
error: !0,
|
|
5921
5935
|
finished_at: !0
|
|
5922
5936
|
}).partial();
|
|
5923
|
-
var
|
|
5937
|
+
var la = e.enum([
|
|
5924
5938
|
"started",
|
|
5925
5939
|
"succeeded",
|
|
5926
5940
|
"failed",
|
|
@@ -5931,18 +5945,18 @@ var aa = e.enum([
|
|
|
5931
5945
|
e.object({
|
|
5932
5946
|
operation_id: e.string().max(255),
|
|
5933
5947
|
step: e.string().max(255),
|
|
5934
|
-
outcome:
|
|
5948
|
+
outcome: la,
|
|
5935
5949
|
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
5936
5950
|
attempt: e.number().int().min(1).default(1)
|
|
5937
5951
|
}).extend({
|
|
5938
5952
|
id: e.string(),
|
|
5939
5953
|
created_at: e.string()
|
|
5940
5954
|
});
|
|
5941
|
-
var
|
|
5955
|
+
var ua = e.enum([
|
|
5942
5956
|
"upgrade",
|
|
5943
5957
|
"reseed",
|
|
5944
5958
|
"backup"
|
|
5945
|
-
]),
|
|
5959
|
+
]), da = e.enum([
|
|
5946
5960
|
"pending",
|
|
5947
5961
|
"canary",
|
|
5948
5962
|
"rolling",
|
|
@@ -5951,7 +5965,7 @@ var oa = e.enum([
|
|
|
5951
5965
|
"failed"
|
|
5952
5966
|
]);
|
|
5953
5967
|
e.object({
|
|
5954
|
-
kind:
|
|
5968
|
+
kind: ua,
|
|
5955
5969
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
5956
5970
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
5957
5971
|
wave_size: e.number().int().min(1).default(10),
|
|
@@ -5960,7 +5974,7 @@ e.object({
|
|
|
5960
5974
|
initiated_by: e.string().max(255).nullable().optional()
|
|
5961
5975
|
}).extend({
|
|
5962
5976
|
id: e.string(),
|
|
5963
|
-
status:
|
|
5977
|
+
status: da,
|
|
5964
5978
|
created_at: e.string(),
|
|
5965
5979
|
updated_at: e.string(),
|
|
5966
5980
|
finished_at: e.string().nullable().optional()
|
|
@@ -5982,7 +5996,7 @@ e.object({
|
|
|
5982
5996
|
code: e.string(),
|
|
5983
5997
|
state: e.string().optional()
|
|
5984
5998
|
});
|
|
5985
|
-
var
|
|
5999
|
+
var fa = e.object({
|
|
5986
6000
|
button_border_radius: e.number(),
|
|
5987
6001
|
button_border_weight: e.number(),
|
|
5988
6002
|
buttons_style: e.enum([
|
|
@@ -6000,7 +6014,7 @@ var ca = e.object({
|
|
|
6000
6014
|
show_widget_shadow: e.boolean(),
|
|
6001
6015
|
widget_border_weight: e.number(),
|
|
6002
6016
|
widget_corner_radius: e.number()
|
|
6003
|
-
}),
|
|
6017
|
+
}), pa = e.object({
|
|
6004
6018
|
base_focus_color: e.string(),
|
|
6005
6019
|
base_hover_color: e.string(),
|
|
6006
6020
|
body_text: e.string(),
|
|
@@ -6027,7 +6041,7 @@ var ca = e.object({
|
|
|
6027
6041
|
}), $ = e.object({
|
|
6028
6042
|
bold: e.boolean(),
|
|
6029
6043
|
size: e.number()
|
|
6030
|
-
}),
|
|
6044
|
+
}), ma = e.object({
|
|
6031
6045
|
body_text: $,
|
|
6032
6046
|
buttons_text: $,
|
|
6033
6047
|
font_url: e.string(),
|
|
@@ -6037,7 +6051,7 @@ var ca = e.object({
|
|
|
6037
6051
|
reference_text_size: e.number(),
|
|
6038
6052
|
subtitle: $,
|
|
6039
6053
|
title: $
|
|
6040
|
-
}),
|
|
6054
|
+
}), ha = e.object({
|
|
6041
6055
|
background_color: e.string(),
|
|
6042
6056
|
background_image_url: e.string(),
|
|
6043
6057
|
page_layout: e.enum([
|
|
@@ -6050,7 +6064,7 @@ var ca = e.object({
|
|
|
6050
6064
|
"chip",
|
|
6051
6065
|
"none"
|
|
6052
6066
|
]).optional()
|
|
6053
|
-
}),
|
|
6067
|
+
}), ga = e.object({
|
|
6054
6068
|
header_text_alignment: e.enum([
|
|
6055
6069
|
"center",
|
|
6056
6070
|
"left",
|
|
@@ -6067,12 +6081,12 @@ var ca = e.object({
|
|
|
6067
6081
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
6068
6082
|
});
|
|
6069
6083
|
e.object({
|
|
6070
|
-
borders:
|
|
6071
|
-
colors:
|
|
6084
|
+
borders: fa,
|
|
6085
|
+
colors: pa,
|
|
6072
6086
|
displayName: e.string(),
|
|
6073
|
-
fonts:
|
|
6074
|
-
page_background:
|
|
6075
|
-
widget:
|
|
6087
|
+
fonts: ma,
|
|
6088
|
+
page_background: ha,
|
|
6089
|
+
widget: ga
|
|
6076
6090
|
}).extend({ themeId: e.string() }), e.object({
|
|
6077
6091
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
6078
6092
|
identifier_first: e.boolean().default(!0),
|
|
@@ -6080,44 +6094,44 @@ e.object({
|
|
|
6080
6094
|
show_last_used_connection: e.boolean().default(!1),
|
|
6081
6095
|
webauthn_platform_first_factor: e.boolean()
|
|
6082
6096
|
});
|
|
6083
|
-
var
|
|
6097
|
+
var _a = e.object({
|
|
6084
6098
|
hosts: e.array(e.string()).optional(),
|
|
6085
6099
|
methods: e.array(e.string()).optional(),
|
|
6086
6100
|
path: e.string().default("/*"),
|
|
6087
6101
|
headers: e.record(e.string(), e.string()).optional(),
|
|
6088
6102
|
query: e.record(e.string(), e.string()).optional()
|
|
6089
|
-
}),
|
|
6103
|
+
}), va = e.object({
|
|
6090
6104
|
type: e.string(),
|
|
6091
6105
|
options: e.record(e.string(), e.unknown()).default({})
|
|
6092
|
-
}),
|
|
6106
|
+
}), ya = e.object({
|
|
6093
6107
|
id: e.string().optional(),
|
|
6094
6108
|
custom_domain_id: e.string(),
|
|
6095
6109
|
priority: e.number().int().default(100),
|
|
6096
|
-
match:
|
|
6097
|
-
handlers: e.array(
|
|
6110
|
+
match: _a,
|
|
6111
|
+
handlers: e.array(va).min(1)
|
|
6098
6112
|
});
|
|
6099
|
-
|
|
6113
|
+
ya.extend({
|
|
6100
6114
|
id: e.string(),
|
|
6101
6115
|
tenant_id: e.string(),
|
|
6102
6116
|
created_at: e.string(),
|
|
6103
6117
|
updated_at: e.string()
|
|
6104
|
-
}),
|
|
6118
|
+
}), ya.partial().omit({
|
|
6105
6119
|
id: !0,
|
|
6106
6120
|
custom_domain_id: !0
|
|
6107
6121
|
});
|
|
6108
|
-
var
|
|
6122
|
+
var ba = e.object({
|
|
6109
6123
|
scim: e.string(),
|
|
6110
6124
|
auth0: e.string()
|
|
6111
|
-
}),
|
|
6125
|
+
}), xa = e.object({
|
|
6112
6126
|
connection_id: e.string(),
|
|
6113
6127
|
user_id_attribute: e.string().default("externalId"),
|
|
6114
|
-
mapping: e.array(
|
|
6128
|
+
mapping: e.array(ba).default([])
|
|
6115
6129
|
});
|
|
6116
6130
|
e.object({
|
|
6117
6131
|
created_at: e.string(),
|
|
6118
6132
|
updated_at: e.string()
|
|
6119
|
-
}).extend(
|
|
6120
|
-
var
|
|
6133
|
+
}).extend(xa.shape);
|
|
6134
|
+
var Sa = e.object({
|
|
6121
6135
|
token_id: e.string(),
|
|
6122
6136
|
connection_id: e.string(),
|
|
6123
6137
|
token_hash: e.string(),
|
|
@@ -6127,20 +6141,20 @@ var va = e.object({
|
|
|
6127
6141
|
e.object({
|
|
6128
6142
|
created_at: e.string(),
|
|
6129
6143
|
last_used_at: e.string().optional()
|
|
6130
|
-
}).extend(
|
|
6131
|
-
var
|
|
6144
|
+
}).extend(Sa.shape);
|
|
6145
|
+
var Ca = e.object({
|
|
6132
6146
|
connection_id: e.string(),
|
|
6133
6147
|
external_id: e.string(),
|
|
6134
6148
|
user_id: e.string()
|
|
6135
6149
|
});
|
|
6136
|
-
e.object({ created_at: e.string() }).extend(
|
|
6150
|
+
e.object({ created_at: e.string() }).extend(Ca.shape), e.object({
|
|
6137
6151
|
name: e.string(),
|
|
6138
6152
|
enabled: e.boolean().optional().default(!0),
|
|
6139
6153
|
default_from_address: e.string().optional(),
|
|
6140
6154
|
credentials: e.record(e.string(), e.unknown()),
|
|
6141
6155
|
settings: e.object({}).optional()
|
|
6142
6156
|
});
|
|
6143
|
-
var
|
|
6157
|
+
var wa = e.enum([
|
|
6144
6158
|
"verify_email",
|
|
6145
6159
|
"verify_email_by_code",
|
|
6146
6160
|
"reset_email",
|
|
@@ -6155,7 +6169,7 @@ var ba = e.enum([
|
|
|
6155
6169
|
"user_invitation"
|
|
6156
6170
|
]);
|
|
6157
6171
|
e.object({
|
|
6158
|
-
template:
|
|
6172
|
+
template: wa,
|
|
6159
6173
|
body: e.string(),
|
|
6160
6174
|
from: e.string(),
|
|
6161
6175
|
subject: e.string(),
|
|
@@ -6172,7 +6186,7 @@ e.object({
|
|
|
6172
6186
|
expires_at: e.string().optional(),
|
|
6173
6187
|
idle_expires_at: e.string().optional(),
|
|
6174
6188
|
last_exchanged_at: e.string().optional(),
|
|
6175
|
-
device:
|
|
6189
|
+
device: ra,
|
|
6176
6190
|
resource_servers: e.array(e.object({
|
|
6177
6191
|
audience: e.string(),
|
|
6178
6192
|
scopes: e.string()
|
|
@@ -6193,10 +6207,10 @@ e.object({
|
|
|
6193
6207
|
name: e.string(),
|
|
6194
6208
|
options: e.object({})
|
|
6195
6209
|
});
|
|
6196
|
-
var
|
|
6210
|
+
var Ta = e.object({
|
|
6197
6211
|
value: e.string(),
|
|
6198
6212
|
description: e.string().optional()
|
|
6199
|
-
}),
|
|
6213
|
+
}), Ea = e.object({
|
|
6200
6214
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
6201
6215
|
enforce_policies: e.boolean().optional(),
|
|
6202
6216
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -6204,11 +6218,11 @@ var xa = e.object({
|
|
|
6204
6218
|
persist_client_authorization: e.boolean().optional(),
|
|
6205
6219
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
6206
6220
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
6207
|
-
}),
|
|
6221
|
+
}), Da = e.object({
|
|
6208
6222
|
id: e.string().optional(),
|
|
6209
6223
|
name: e.string(),
|
|
6210
6224
|
identifier: e.string(),
|
|
6211
|
-
scopes: e.array(
|
|
6225
|
+
scopes: e.array(Ta).optional(),
|
|
6212
6226
|
signing_alg: e.string().optional(),
|
|
6213
6227
|
signing_secret: e.string().optional(),
|
|
6214
6228
|
token_lifetime: e.number().default(86400),
|
|
@@ -6216,20 +6230,20 @@ var xa = e.object({
|
|
|
6216
6230
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
6217
6231
|
allow_offline_access: e.boolean().optional(),
|
|
6218
6232
|
verificationKey: e.string().optional(),
|
|
6219
|
-
options:
|
|
6233
|
+
options: Ea.optional(),
|
|
6220
6234
|
is_system: e.boolean().optional(),
|
|
6221
6235
|
metadata: e.record(e.string(), e.any()).optional()
|
|
6222
6236
|
}).extend({
|
|
6223
6237
|
created_at: e.string().optional(),
|
|
6224
6238
|
updated_at: e.string().optional()
|
|
6225
6239
|
});
|
|
6226
|
-
e.array(
|
|
6227
|
-
var
|
|
6240
|
+
e.array(Da);
|
|
6241
|
+
var Oa = e.object({
|
|
6228
6242
|
role_id: e.string(),
|
|
6229
6243
|
resource_server_identifier: e.string(),
|
|
6230
6244
|
permission_name: e.string()
|
|
6231
6245
|
}).extend({ created_at: e.string() });
|
|
6232
|
-
e.array(
|
|
6246
|
+
e.array(Oa), e.object({
|
|
6233
6247
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
6234
6248
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
6235
6249
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
@@ -6242,7 +6256,7 @@ e.array(wa), e.object({
|
|
|
6242
6256
|
failed_logins: e.array(e.string()).optional(),
|
|
6243
6257
|
last_password_reset: e.string().optional()
|
|
6244
6258
|
});
|
|
6245
|
-
var
|
|
6259
|
+
var ka = e.object({
|
|
6246
6260
|
user_id: e.string(),
|
|
6247
6261
|
resource_server_identifier: e.string(),
|
|
6248
6262
|
permission_name: e.string(),
|
|
@@ -6251,8 +6265,8 @@ var Ta = e.object({
|
|
|
6251
6265
|
tenant_id: e.string(),
|
|
6252
6266
|
created_at: e.string().optional()
|
|
6253
6267
|
});
|
|
6254
|
-
e.array(
|
|
6255
|
-
var
|
|
6268
|
+
e.array(ka);
|
|
6269
|
+
var Aa = e.object({
|
|
6256
6270
|
user_id: e.string(),
|
|
6257
6271
|
resource_server_identifier: e.string(),
|
|
6258
6272
|
resource_server_name: e.string(),
|
|
@@ -6261,8 +6275,8 @@ var Ea = e.object({
|
|
|
6261
6275
|
created_at: e.string().optional(),
|
|
6262
6276
|
organization_id: e.string().optional()
|
|
6263
6277
|
});
|
|
6264
|
-
e.array(
|
|
6265
|
-
var
|
|
6278
|
+
e.array(Aa);
|
|
6279
|
+
var ja = e.object({
|
|
6266
6280
|
user_id: e.string(),
|
|
6267
6281
|
role_id: e.string(),
|
|
6268
6282
|
organization_id: e.string().optional()
|
|
@@ -6270,8 +6284,8 @@ var Da = e.object({
|
|
|
6270
6284
|
tenant_id: e.string(),
|
|
6271
6285
|
created_at: e.string().optional()
|
|
6272
6286
|
});
|
|
6273
|
-
e.array(
|
|
6274
|
-
var
|
|
6287
|
+
e.array(ja);
|
|
6288
|
+
var Ma = e.object({
|
|
6275
6289
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
6276
6290
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
6277
6291
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
@@ -6282,19 +6296,19 @@ var Oa = e.object({
|
|
|
6282
6296
|
created_at: e.string().optional(),
|
|
6283
6297
|
updated_at: e.string().optional()
|
|
6284
6298
|
});
|
|
6285
|
-
e.array(
|
|
6286
|
-
var
|
|
6299
|
+
e.array(Ma);
|
|
6300
|
+
var Na = e.object({
|
|
6287
6301
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
6288
6302
|
colors: e.object({
|
|
6289
6303
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
6290
6304
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
6291
6305
|
}).optional()
|
|
6292
|
-
}).optional(),
|
|
6306
|
+
}).optional(), Pa = e.object({
|
|
6293
6307
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
6294
6308
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
6295
6309
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
6296
6310
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
6297
|
-
}),
|
|
6311
|
+
}), Fa = e.object({ client_credentials: e.object({
|
|
6298
6312
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
6299
6313
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
6300
6314
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
@@ -6303,15 +6317,15 @@ e.object({
|
|
|
6303
6317
|
id: e.string().optional(),
|
|
6304
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." }),
|
|
6305
6319
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
6306
|
-
branding:
|
|
6320
|
+
branding: Na,
|
|
6307
6321
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
6308
|
-
enabled_connections: e.array(
|
|
6309
|
-
token_quota:
|
|
6322
|
+
enabled_connections: e.array(Pa).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
6323
|
+
token_quota: Fa
|
|
6310
6324
|
}).extend(G.shape).extend({
|
|
6311
6325
|
id: e.string(),
|
|
6312
6326
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
6313
6327
|
});
|
|
6314
|
-
var
|
|
6328
|
+
var Ia = e.object({
|
|
6315
6329
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
6316
6330
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
6317
6331
|
show_as_button: e.boolean().optional().default(!0),
|
|
@@ -6324,7 +6338,7 @@ var Ma = e.object({
|
|
|
6324
6338
|
created_at: e.string().optional(),
|
|
6325
6339
|
updated_at: e.string().optional()
|
|
6326
6340
|
});
|
|
6327
|
-
e.array(
|
|
6341
|
+
e.array(Ia), e.object({
|
|
6328
6342
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
6329
6343
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
6330
6344
|
}).extend(G.shape).extend({ id: e.string() }), e.object({
|
|
@@ -6463,22 +6477,33 @@ e.array(Ma), e.object({
|
|
|
6463
6477
|
"passwordless",
|
|
6464
6478
|
"enterprise"
|
|
6465
6479
|
]);
|
|
6466
|
-
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({
|
|
6467
6492
|
name: e.string(),
|
|
6468
6493
|
type: e.string()
|
|
6469
|
-
}),
|
|
6494
|
+
}), za = e.object({
|
|
6470
6495
|
elapsed: e.number(),
|
|
6471
6496
|
rows_read: e.number().optional(),
|
|
6472
6497
|
bytes_read: e.number().optional()
|
|
6473
6498
|
});
|
|
6474
6499
|
e.object({
|
|
6475
|
-
meta: e.array(
|
|
6500
|
+
meta: e.array(Ra),
|
|
6476
6501
|
data: e.array(e.record(e.string(), e.any())),
|
|
6477
6502
|
rows: e.number(),
|
|
6478
6503
|
rows_before_limit_at_least: e.number().optional(),
|
|
6479
|
-
statistics:
|
|
6504
|
+
statistics: za.optional()
|
|
6480
6505
|
});
|
|
6481
|
-
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({
|
|
6482
6507
|
type: "object",
|
|
6483
6508
|
additionalProperties: {
|
|
6484
6509
|
type: "object",
|
|
@@ -6486,11 +6511,11 @@ var Fa = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.
|
|
|
6486
6511
|
}
|
|
6487
6512
|
});
|
|
6488
6513
|
e.object({
|
|
6489
|
-
prompt:
|
|
6514
|
+
prompt: Ba,
|
|
6490
6515
|
language: e.string(),
|
|
6491
|
-
custom_text:
|
|
6516
|
+
custom_text: Va
|
|
6492
6517
|
});
|
|
6493
|
-
var
|
|
6518
|
+
var Ha = e.enum([
|
|
6494
6519
|
"phone",
|
|
6495
6520
|
"totp",
|
|
6496
6521
|
"email",
|
|
@@ -6498,9 +6523,9 @@ var La = e.enum([
|
|
|
6498
6523
|
"webauthn-roaming",
|
|
6499
6524
|
"webauthn-platform",
|
|
6500
6525
|
"passkey"
|
|
6501
|
-
]),
|
|
6526
|
+
]), Ua = e.object({
|
|
6502
6527
|
user_id: e.string(),
|
|
6503
|
-
type:
|
|
6528
|
+
type: Ha,
|
|
6504
6529
|
phone_number: e.string().optional(),
|
|
6505
6530
|
totp_secret: e.string().optional(),
|
|
6506
6531
|
credential_id: e.string().optional(),
|
|
@@ -6511,7 +6536,7 @@ var La = e.enum([
|
|
|
6511
6536
|
friendly_name: e.string().optional(),
|
|
6512
6537
|
confirmed: e.boolean().default(!1)
|
|
6513
6538
|
});
|
|
6514
|
-
function
|
|
6539
|
+
function Wa(t, n) {
|
|
6515
6540
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
6516
6541
|
code: e.ZodIssueCode.custom,
|
|
6517
6542
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -6534,51 +6559,51 @@ function za(t, n) {
|
|
|
6534
6559
|
path: ["public_key"]
|
|
6535
6560
|
}));
|
|
6536
6561
|
}
|
|
6537
|
-
|
|
6562
|
+
Ua.superRefine(Wa), Ua.extend({
|
|
6538
6563
|
id: e.string(),
|
|
6539
6564
|
created_at: e.string(),
|
|
6540
6565
|
updated_at: e.string()
|
|
6541
|
-
}).superRefine(
|
|
6566
|
+
}).superRefine(Wa), e.object({
|
|
6542
6567
|
id: e.string().optional(),
|
|
6543
6568
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
6544
6569
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
6545
6570
|
});
|
|
6546
|
-
function
|
|
6571
|
+
function Ga(e) {
|
|
6547
6572
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
6548
6573
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
6549
6574
|
return n;
|
|
6550
6575
|
}
|
|
6551
6576
|
//#endregion
|
|
6552
6577
|
//#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/url-alphabet/index.js
|
|
6553
|
-
var
|
|
6578
|
+
var Ka = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", qa = (e = 21) => {
|
|
6554
6579
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
6555
|
-
for (; e--;) t +=
|
|
6580
|
+
for (; e--;) t += Ka[n[e] & 63];
|
|
6556
6581
|
return t;
|
|
6557
6582
|
};
|
|
6558
6583
|
//#endregion
|
|
6559
6584
|
//#region src/helpers.ts
|
|
6560
|
-
async function
|
|
6585
|
+
async function Ja(e) {
|
|
6561
6586
|
let t = new DecompressionStream("deflate-raw"), n = new Uint8Array(e), r = new Blob([n]).stream().pipeThrough(t);
|
|
6562
6587
|
return new Uint8Array(await new Response(r).arrayBuffer());
|
|
6563
6588
|
}
|
|
6564
|
-
async function
|
|
6565
|
-
let t =
|
|
6589
|
+
async function Ya(e) {
|
|
6590
|
+
let t = Ga(e.replace(/ /g, "+"));
|
|
6566
6591
|
try {
|
|
6567
|
-
let e = await
|
|
6592
|
+
let e = await Ja(t);
|
|
6568
6593
|
return new TextDecoder().decode(e);
|
|
6569
6594
|
} catch (e) {
|
|
6570
6595
|
return console.warn("Decompression failed, assuming data is not compressed:", e), new TextDecoder().decode(t);
|
|
6571
6596
|
}
|
|
6572
6597
|
}
|
|
6573
|
-
async function
|
|
6574
|
-
let t = await
|
|
6598
|
+
async function Xa(e) {
|
|
6599
|
+
let t = await Ya(e), n = new en({
|
|
6575
6600
|
attributeNamePrefix: "@_",
|
|
6576
6601
|
alwaysCreateTextNode: !0,
|
|
6577
6602
|
ignoreAttributes: !1
|
|
6578
6603
|
}).parse(t);
|
|
6579
6604
|
return r.parse(n);
|
|
6580
6605
|
}
|
|
6581
|
-
function
|
|
6606
|
+
function Za(e) {
|
|
6582
6607
|
let t = e.certificates.map((e) => ({
|
|
6583
6608
|
"@_use": "signing",
|
|
6584
6609
|
KeyInfo: {
|
|
@@ -6652,8 +6677,8 @@ function Ka(e) {
|
|
|
6652
6677
|
attributeNamePrefix: "@_"
|
|
6653
6678
|
}).build(n);
|
|
6654
6679
|
}
|
|
6655
|
-
async function
|
|
6656
|
-
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 = [{
|
|
6657
6682
|
"samlp:Response": [
|
|
6658
6683
|
{ "saml:Issuer": [{ "#text": e.issuer }] },
|
|
6659
6684
|
{ "samlp:Status": [{
|
|
@@ -6834,7 +6859,7 @@ async function qa(e, t) {
|
|
|
6834
6859
|
}
|
|
6835
6860
|
//#endregion
|
|
6836
6861
|
//#region src/signers/http.ts
|
|
6837
|
-
var
|
|
6862
|
+
var $a = class {
|
|
6838
6863
|
signUrl;
|
|
6839
6864
|
constructor(e) {
|
|
6840
6865
|
this.signUrl = e;
|
|
@@ -6854,4 +6879,4 @@ var Ja = class {
|
|
|
6854
6879
|
}
|
|
6855
6880
|
};
|
|
6856
6881
|
//#endregion
|
|
6857
|
-
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 };
|