@authhero/kysely-adapter 10.53.0 → 10.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kysely-adapter.cjs +8 -8
- package/dist/kysely-adapter.d.ts +369 -191
- package/dist/kysely-adapter.mjs +2111 -1962
- package/package.json +3 -3
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -4238,6 +4238,135 @@ declare const hookSchema: z.ZodUnion<[
|
|
|
4238
4238
|
}>
|
|
4239
4239
|
]>;
|
|
4240
4240
|
export type Hook = z.infer<typeof hookSchema>;
|
|
4241
|
+
declare const inviteInsertSchema: z.ZodObject<{
|
|
4242
|
+
organization_id: z.ZodString;
|
|
4243
|
+
inviter: z.ZodObject<{
|
|
4244
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4245
|
+
}, "strip", z.ZodTypeAny, {
|
|
4246
|
+
name?: string | undefined;
|
|
4247
|
+
}, {
|
|
4248
|
+
name?: string | undefined;
|
|
4249
|
+
}>;
|
|
4250
|
+
invitee: z.ZodObject<{
|
|
4251
|
+
email: z.ZodOptional<z.ZodString>;
|
|
4252
|
+
}, "strip", z.ZodTypeAny, {
|
|
4253
|
+
email?: string | undefined;
|
|
4254
|
+
}, {
|
|
4255
|
+
email?: string | undefined;
|
|
4256
|
+
}>;
|
|
4257
|
+
invitation_url: z.ZodString;
|
|
4258
|
+
client_id: z.ZodString;
|
|
4259
|
+
connection_id: z.ZodOptional<z.ZodString>;
|
|
4260
|
+
app_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4261
|
+
user_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4262
|
+
ttl_sec: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
4263
|
+
roles: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4264
|
+
send_invitation_email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
4265
|
+
}, "strip", z.ZodTypeAny, {
|
|
4266
|
+
client_id: string;
|
|
4267
|
+
organization_id: string;
|
|
4268
|
+
inviter: {
|
|
4269
|
+
name?: string | undefined;
|
|
4270
|
+
};
|
|
4271
|
+
invitee: {
|
|
4272
|
+
email?: string | undefined;
|
|
4273
|
+
};
|
|
4274
|
+
invitation_url: string;
|
|
4275
|
+
app_metadata?: Record<string, any> | undefined;
|
|
4276
|
+
user_metadata?: Record<string, any> | undefined;
|
|
4277
|
+
connection_id?: string | undefined;
|
|
4278
|
+
ttl_sec?: number | undefined;
|
|
4279
|
+
roles?: string[] | undefined;
|
|
4280
|
+
send_invitation_email?: boolean | undefined;
|
|
4281
|
+
}, {
|
|
4282
|
+
client_id: string;
|
|
4283
|
+
organization_id: string;
|
|
4284
|
+
inviter: {
|
|
4285
|
+
name?: string | undefined;
|
|
4286
|
+
};
|
|
4287
|
+
invitee: {
|
|
4288
|
+
email?: string | undefined;
|
|
4289
|
+
};
|
|
4290
|
+
invitation_url: string;
|
|
4291
|
+
app_metadata?: Record<string, any> | undefined;
|
|
4292
|
+
user_metadata?: Record<string, any> | undefined;
|
|
4293
|
+
connection_id?: string | undefined;
|
|
4294
|
+
ttl_sec?: number | undefined;
|
|
4295
|
+
roles?: string[] | undefined;
|
|
4296
|
+
send_invitation_email?: boolean | undefined;
|
|
4297
|
+
}>;
|
|
4298
|
+
export type InviteInsert = z.infer<typeof inviteInsertSchema>;
|
|
4299
|
+
declare const inviteSchema: z.ZodObject<{
|
|
4300
|
+
id: z.ZodString;
|
|
4301
|
+
created_at: z.ZodString;
|
|
4302
|
+
expires_at: z.ZodString;
|
|
4303
|
+
ticket_id: z.ZodOptional<z.ZodString>;
|
|
4304
|
+
} & {
|
|
4305
|
+
organization_id: z.ZodString;
|
|
4306
|
+
inviter: z.ZodObject<{
|
|
4307
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4308
|
+
}, "strip", z.ZodTypeAny, {
|
|
4309
|
+
name?: string | undefined;
|
|
4310
|
+
}, {
|
|
4311
|
+
name?: string | undefined;
|
|
4312
|
+
}>;
|
|
4313
|
+
invitee: z.ZodObject<{
|
|
4314
|
+
email: z.ZodOptional<z.ZodString>;
|
|
4315
|
+
}, "strip", z.ZodTypeAny, {
|
|
4316
|
+
email?: string | undefined;
|
|
4317
|
+
}, {
|
|
4318
|
+
email?: string | undefined;
|
|
4319
|
+
}>;
|
|
4320
|
+
invitation_url: z.ZodString;
|
|
4321
|
+
client_id: z.ZodString;
|
|
4322
|
+
connection_id: z.ZodOptional<z.ZodString>;
|
|
4323
|
+
app_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4324
|
+
user_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
4325
|
+
ttl_sec: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
4326
|
+
roles: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4327
|
+
send_invitation_email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
4328
|
+
}, "strip", z.ZodTypeAny, {
|
|
4329
|
+
created_at: string;
|
|
4330
|
+
client_id: string;
|
|
4331
|
+
id: string;
|
|
4332
|
+
expires_at: string;
|
|
4333
|
+
organization_id: string;
|
|
4334
|
+
inviter: {
|
|
4335
|
+
name?: string | undefined;
|
|
4336
|
+
};
|
|
4337
|
+
invitee: {
|
|
4338
|
+
email?: string | undefined;
|
|
4339
|
+
};
|
|
4340
|
+
invitation_url: string;
|
|
4341
|
+
app_metadata?: Record<string, any> | undefined;
|
|
4342
|
+
user_metadata?: Record<string, any> | undefined;
|
|
4343
|
+
connection_id?: string | undefined;
|
|
4344
|
+
ttl_sec?: number | undefined;
|
|
4345
|
+
roles?: string[] | undefined;
|
|
4346
|
+
send_invitation_email?: boolean | undefined;
|
|
4347
|
+
ticket_id?: string | undefined;
|
|
4348
|
+
}, {
|
|
4349
|
+
created_at: string;
|
|
4350
|
+
client_id: string;
|
|
4351
|
+
id: string;
|
|
4352
|
+
expires_at: string;
|
|
4353
|
+
organization_id: string;
|
|
4354
|
+
inviter: {
|
|
4355
|
+
name?: string | undefined;
|
|
4356
|
+
};
|
|
4357
|
+
invitee: {
|
|
4358
|
+
email?: string | undefined;
|
|
4359
|
+
};
|
|
4360
|
+
invitation_url: string;
|
|
4361
|
+
app_metadata?: Record<string, any> | undefined;
|
|
4362
|
+
user_metadata?: Record<string, any> | undefined;
|
|
4363
|
+
connection_id?: string | undefined;
|
|
4364
|
+
ttl_sec?: number | undefined;
|
|
4365
|
+
roles?: string[] | undefined;
|
|
4366
|
+
send_invitation_email?: boolean | undefined;
|
|
4367
|
+
ticket_id?: string | undefined;
|
|
4368
|
+
}>;
|
|
4369
|
+
export type Invite = z.infer<typeof inviteSchema>;
|
|
4241
4370
|
export interface ListParams {
|
|
4242
4371
|
page?: number;
|
|
4243
4372
|
per_page?: number;
|
|
@@ -4497,165 +4626,10 @@ declare const loginSessionSchema: z.ZodObject<{
|
|
|
4497
4626
|
login_completed?: boolean | undefined;
|
|
4498
4627
|
}>;
|
|
4499
4628
|
export type LoginSession = z.infer<typeof loginSessionSchema>;
|
|
4500
|
-
declare const
|
|
4501
|
-
readonly ACLS_SUMMARY: "acls_summary";
|
|
4502
|
-
readonly ACTIONS_EXECUTION_FAILED: "actions_execution_failed";
|
|
4503
|
-
readonly API_LIMIT: "api_limit";
|
|
4504
|
-
readonly API_LIMIT_WARNING: "api_limit_warning";
|
|
4505
|
-
readonly APPI: "appi";
|
|
4506
|
-
readonly CIBA_EXCHANGE_FAILED: "ciba_exchange_failed";
|
|
4507
|
-
readonly CIBA_EXCHANGE_SUCCEEDED: "ciba_exchange_succeeded";
|
|
4508
|
-
readonly CIBA_START_FAILED: "ciba_start_failed";
|
|
4509
|
-
readonly CIBA_START_SUCCEEDED: "ciba_start_succeeded";
|
|
4510
|
-
readonly CODE_LINK_SENT: "cls";
|
|
4511
|
-
readonly CODE_SENT: "cs";
|
|
4512
|
-
readonly DEPRECATION_NOTICE: "depnote";
|
|
4513
|
-
readonly FAILED_LOGIN: "f";
|
|
4514
|
-
readonly FAILED_BY_CONNECTOR: "fc";
|
|
4515
|
-
readonly FAILED_CHANGE_EMAIL: "fce";
|
|
4516
|
-
readonly FAILED_BY_CORS: "fco";
|
|
4517
|
-
readonly FAILED_CROSS_ORIGIN_AUTHENTICATION: "fcoa";
|
|
4518
|
-
readonly FAILED_CHANGE_PASSWORD: "fcp";
|
|
4519
|
-
readonly FAILED_POST_CHANGE_PASSWORD_HOOK: "fcph";
|
|
4520
|
-
readonly FAILED_CHANGE_PHONE_NUMBER: "fcpn";
|
|
4521
|
-
readonly FAILED_CHANGE_PASSWORD_REQUEST: "fcpr";
|
|
4522
|
-
readonly FAILED_CONNECTOR_PROVISIONING: "fcpro";
|
|
4523
|
-
readonly FAILED_CHANGE_USERNAME: "fcu";
|
|
4524
|
-
readonly FAILED_DELEGATION: "fd";
|
|
4525
|
-
readonly FAILED_DEVICE_ACTIVATION: "fdeac";
|
|
4526
|
-
readonly FAILED_DEVICE_AUTHORIZATION_REQUEST: "fdeaz";
|
|
4527
|
-
readonly USER_CANCELED_DEVICE_CONFIRMATION: "fdecc";
|
|
4528
|
-
readonly FAILED_USER_DELETION: "fdu";
|
|
4529
|
-
readonly FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN: "feacft";
|
|
4530
|
-
readonly FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS: "feccft";
|
|
4531
|
-
readonly FAILED_EXCHANGE_CUSTOM_TOKEN: "fecte";
|
|
4532
|
-
readonly FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN: "fede";
|
|
4533
|
-
readonly FAILED_FEDERATED_LOGOUT: "federated_logout_failed";
|
|
4534
|
-
readonly FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN: "fens";
|
|
4535
|
-
readonly FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN: "feoobft";
|
|
4536
|
-
readonly FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN: "feotpft";
|
|
4537
|
-
readonly FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN: "fepft";
|
|
4538
|
-
readonly FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN: "fepotpft";
|
|
4539
|
-
readonly FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN: "fercft";
|
|
4540
|
-
readonly FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN: "ferrt";
|
|
4541
|
-
readonly FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN: "fertft";
|
|
4542
|
-
readonly FAILED_HOOK: "fh";
|
|
4543
|
-
readonly FAILED_INVITE_ACCEPT: "fi";
|
|
4544
|
-
readonly FAILED_LOGOUT: "flo";
|
|
4545
|
-
readonly FLOWS_EXECUTION_COMPLETED: "flows_execution_completed";
|
|
4546
|
-
readonly FLOWS_EXECUTION_FAILED: "flows_execution_failed";
|
|
4547
|
-
readonly FAILED_SENDING_NOTIFICATION: "fn";
|
|
4548
|
-
readonly FORMS_SUBMISSION_FAILED: "forms_submission_failed";
|
|
4549
|
-
readonly FORMS_SUBMISSION_SUCCEEDED: "forms_submission_succeeded";
|
|
4550
|
-
readonly FAILED_LOGIN_INCORRECT_PASSWORD: "fp";
|
|
4551
|
-
readonly FAILED_PUSHED_AUTHORIZATION_REQUEST: "fpar";
|
|
4552
|
-
readonly FAILED_POST_USER_REGISTRATION_HOOK: "fpurh";
|
|
4553
|
-
readonly FAILED_SIGNUP: "fs";
|
|
4554
|
-
readonly FAILED_SILENT_AUTH: "fsa";
|
|
4555
|
-
readonly FAILED_LOGIN_INVALID_EMAIL_USERNAME: "fu";
|
|
4556
|
-
readonly FAILED_USERS_IMPORT: "fui";
|
|
4557
|
-
readonly FAILED_VERIFICATION_EMAIL: "fv";
|
|
4558
|
-
readonly FAILED_VERIFICATION_EMAIL_REQUEST: "fvr";
|
|
4559
|
-
readonly EMAIL_VERIFICATION_CONFIRMED: "gd_auth_email_verification";
|
|
4560
|
-
readonly EMAIL_VERIFICATION_FAILED: "gd_auth_fail_email_verification";
|
|
4561
|
-
readonly MFA_AUTH_FAILED: "gd_auth_failed";
|
|
4562
|
-
readonly MFA_AUTH_REJECTED: "gd_auth_rejected";
|
|
4563
|
-
readonly MFA_AUTH_SUCCESS: "gd_auth_succeed";
|
|
4564
|
-
readonly MFA_ENROLLMENT_COMPLETE: "gd_enrollment_complete";
|
|
4565
|
-
readonly TOO_MANY_MFA_FAILURES: "gd_otp_rate_limit_exceed";
|
|
4566
|
-
readonly MFA_RECOVERY_FAILED: "gd_recovery_failed";
|
|
4567
|
-
readonly MFA_RECOVERY_RATE_LIMIT_EXCEED: "gd_recovery_rate_limit_exceed";
|
|
4568
|
-
readonly MFA_RECOVERY_SUCCESS: "gd_recovery_succeed";
|
|
4569
|
-
readonly MFA_EMAIL_SENT: "gd_send_email";
|
|
4570
|
-
readonly EMAIL_VERIFICATION_SENT: "gd_send_email_verification";
|
|
4571
|
-
readonly EMAIL_VERIFICATION_SEND_FAILURE: "gd_send_email_verification_failure";
|
|
4572
|
-
readonly PUSH_NOTIFICATION_SENT: "gd_send_pn";
|
|
4573
|
-
readonly ERROR_SENDING_MFA_PUSH_NOTIFICATION: "gd_send_pn_failure";
|
|
4574
|
-
readonly MFA_SMS_SENT: "gd_send_sms";
|
|
4575
|
-
readonly ERROR_SENDING_MFA_SMS: "gd_send_sms_failure";
|
|
4576
|
-
readonly MFA_VOICE_CALL_SUCCESS: "gd_send_voice";
|
|
4577
|
-
readonly MFA_VOICE_CALL_FAILED: "gd_send_voice_failure";
|
|
4578
|
-
readonly SECOND_FACTOR_STARTED: "gd_start_auth";
|
|
4579
|
-
readonly MFA_ENROLL_STARTED: "gd_start_enroll";
|
|
4580
|
-
readonly MFA_ENROLLMENT_FAILED: "gd_start_enroll_failed";
|
|
4581
|
-
readonly GUARDIAN_TENANT_UPDATE: "gd_tenant_update";
|
|
4582
|
-
readonly UNENROLL_DEVICE_ACCOUNT: "gd_unenroll";
|
|
4583
|
-
readonly UPDATE_DEVICE_ACCOUNT: "gd_update_device_account";
|
|
4584
|
-
readonly WEBAUTHN_CHALLENGE_FAILED: "gd_webauthn_challenge_failed";
|
|
4585
|
-
readonly WEBAUTHN_ENROLLMENT_FAILED: "gd_webauthn_enrollment_failed";
|
|
4586
|
-
readonly FAILED_KMS_API_OPERATION: "kms_key_management_failure";
|
|
4587
|
-
readonly SUCCESS_KMS_API_OPERATION: "kms_key_management_success";
|
|
4588
|
-
readonly KMS_KEY_STATE_CHANGED: "kms_key_state_changed";
|
|
4589
|
-
readonly TOO_MANY_CALLS_TO_DELEGATION: "limit_delegation";
|
|
4590
|
-
readonly BLOCKED_IP_ADDRESS: "limit_mu";
|
|
4591
|
-
readonly BLOCKED_ACCOUNT_IP: "limit_sul";
|
|
4592
|
-
readonly BLOCKED_ACCOUNT_EMAIL: "limit_wc";
|
|
4593
|
-
readonly MFA_REQUIRED: "mfar";
|
|
4594
|
-
readonly MANAGEMENT_API_READ_OPERATION: "mgmt_api_read";
|
|
4595
|
-
readonly FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT: "my_account_authentication_method_failed";
|
|
4596
|
-
readonly SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT: "my_account_authentication_method_succeeded";
|
|
4597
|
-
readonly FAILED_OIDC_BACKCHANNEL_LOGOUT: "oidc_backchannel_logout_failed";
|
|
4598
|
-
readonly SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT: "oidc_backchannel_logout_succeeded";
|
|
4599
|
-
readonly ORGANIZATION_MEMBER_ADDED: "organization_member_added";
|
|
4600
|
-
readonly PASSKEY_CHALLENGE_FAILED: "passkey_challenge_failed";
|
|
4601
|
-
readonly PASSKEY_CHALLENGE_STARTED: "passkey_challenge_started";
|
|
4602
|
-
readonly PRE_LOGIN_ASSESSMENT: "pla";
|
|
4603
|
-
readonly BREACHED_PASSWORD: "pwd_leak";
|
|
4604
|
-
readonly BREACHED_PASSWORD_ON_RESET: "reset_pwd_leak";
|
|
4605
|
-
readonly SUCCESS_RESOURCE_CLEANUP: "resource_cleanup";
|
|
4606
|
-
readonly RICH_CONSENTS_ACCESS_ERROR: "rich_consents_access_error";
|
|
4607
|
-
readonly SUCCESS_LOGIN: "s";
|
|
4608
|
-
readonly SUCCESS_API_OPERATION: "sapi";
|
|
4609
|
-
readonly SUCCESS_CHANGE_EMAIL: "sce";
|
|
4610
|
-
readonly SUCCESS_CROSS_ORIGIN_AUTHENTICATION: "scoa";
|
|
4611
|
-
readonly SUCCESS_CHANGE_PASSWORD: "scp";
|
|
4612
|
-
readonly SUCCESS_CHANGE_PHONE_NUMBER: "scpn";
|
|
4613
|
-
readonly SUCCESS_CHANGE_PASSWORD_REQUEST: "scpr";
|
|
4614
|
-
readonly SUCCESS_CHANGE_USERNAME: "scu";
|
|
4615
|
-
readonly SUCCESS_CREDENTIAL_VALIDATION: "scv";
|
|
4616
|
-
readonly SUCCESS_DELEGATION: "sd";
|
|
4617
|
-
readonly SUCCESS_USER_DELETION: "sdu";
|
|
4618
|
-
readonly SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN: "seacft";
|
|
4619
|
-
readonly SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS: "seccft";
|
|
4620
|
-
readonly SUCCESS_EXCHANGE_CUSTOM_TOKEN: "secte";
|
|
4621
|
-
readonly SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN: "sede";
|
|
4622
|
-
readonly SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN: "sens";
|
|
4623
|
-
readonly SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN: "seoobft";
|
|
4624
|
-
readonly SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN: "seotpft";
|
|
4625
|
-
readonly SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN: "sepft";
|
|
4626
|
-
readonly SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN: "sepkoobft";
|
|
4627
|
-
readonly SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN: "sepkotpft";
|
|
4628
|
-
readonly SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN: "sepkrcft";
|
|
4629
|
-
readonly SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN: "sercft";
|
|
4630
|
-
readonly SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN: "sertft";
|
|
4631
|
-
readonly SUCCESSFULLY_ACCEPTED_USER_INVITE: "si";
|
|
4632
|
-
readonly BREACHED_PASSWORD_ON_SIGNUP: "signup_pwd_leak";
|
|
4633
|
-
readonly SUCCESS_LOGOUT: "slo";
|
|
4634
|
-
readonly SUCCESS_REVOCATION: "srrt";
|
|
4635
|
-
readonly SUCCESS_SIGNUP: "ss";
|
|
4636
|
-
readonly FAILED_SS_SSO_OPERATION: "ss_sso_failure";
|
|
4637
|
-
readonly INFORMATION_FROM_SS_SSO_OPERATION: "ss_sso_info";
|
|
4638
|
-
readonly SUCCESS_SS_SSO_OPERATION: "ss_sso_success";
|
|
4639
|
-
readonly SUCCESS_SILENT_AUTH: "ssa";
|
|
4640
|
-
readonly SUCCESSFUL_SCIM_OPERATION: "sscim";
|
|
4641
|
-
readonly SUCCESSFULLY_IMPORTED_USERS: "sui";
|
|
4642
|
-
readonly SUCCESS_VERIFICATION_EMAIL: "sv";
|
|
4643
|
-
readonly SUCCESS_VERIFICATION_EMAIL_REQUEST: "svr";
|
|
4644
|
-
readonly MAX_AMOUNT_OF_AUTHENTICATORS: "too_many_records";
|
|
4645
|
-
readonly USER_LOGIN_BLOCK_RELEASED: "ublkdu";
|
|
4646
|
-
readonly FAILED_UNIVERSAL_LOGOUT: "universal_logout_failed";
|
|
4647
|
-
readonly SUCCESSFUL_UNIVERSAL_LOGOUT: "universal_logout_succeeded";
|
|
4648
|
-
readonly WARNING_DURING_LOGIN: "w";
|
|
4649
|
-
readonly WARNING_SENDING_NOTIFICATION: "wn";
|
|
4650
|
-
readonly WARNING_USER_MANAGEMENT: "wum";
|
|
4651
|
-
};
|
|
4652
|
-
export type LogType = (typeof LogTypes)[keyof typeof LogTypes];
|
|
4653
|
-
declare const logSchema: z.ZodObject<{
|
|
4629
|
+
declare const logInsertSchema: z.ZodObject<{
|
|
4654
4630
|
type: z.ZodEffects<z.ZodString, "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum", string>;
|
|
4655
4631
|
date: z.ZodString;
|
|
4656
4632
|
description: z.ZodOptional<z.ZodString>;
|
|
4657
|
-
log_id: z.ZodOptional<z.ZodString>;
|
|
4658
|
-
_id: z.ZodOptional<z.ZodString>;
|
|
4659
4633
|
ip: z.ZodString;
|
|
4660
4634
|
user_agent: z.ZodString;
|
|
4661
4635
|
details: z.ZodOptional<z.ZodAny>;
|
|
@@ -4694,6 +4668,7 @@ declare const logSchema: z.ZodObject<{
|
|
|
4694
4668
|
node?: string | undefined;
|
|
4695
4669
|
} | undefined;
|
|
4696
4670
|
}>>;
|
|
4671
|
+
log_id: z.ZodOptional<z.ZodString>;
|
|
4697
4672
|
}, "strip", z.ZodTypeAny, {
|
|
4698
4673
|
type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
|
|
4699
4674
|
date: string;
|
|
@@ -4708,8 +4683,6 @@ declare const logSchema: z.ZodObject<{
|
|
|
4708
4683
|
scope?: string[] | undefined;
|
|
4709
4684
|
strategy?: string | undefined;
|
|
4710
4685
|
connection_id?: string | undefined;
|
|
4711
|
-
log_id?: string | undefined;
|
|
4712
|
-
_id?: string | undefined;
|
|
4713
4686
|
details?: any;
|
|
4714
4687
|
user_name?: string | undefined;
|
|
4715
4688
|
client_name?: string | undefined;
|
|
@@ -4722,6 +4695,7 @@ declare const logSchema: z.ZodObject<{
|
|
|
4722
4695
|
node?: string | undefined;
|
|
4723
4696
|
} | undefined;
|
|
4724
4697
|
} | undefined;
|
|
4698
|
+
log_id?: string | undefined;
|
|
4725
4699
|
}, {
|
|
4726
4700
|
type: string;
|
|
4727
4701
|
date: string;
|
|
@@ -4736,8 +4710,106 @@ declare const logSchema: z.ZodObject<{
|
|
|
4736
4710
|
scope?: string[] | undefined;
|
|
4737
4711
|
strategy?: string | undefined;
|
|
4738
4712
|
connection_id?: string | undefined;
|
|
4713
|
+
details?: any;
|
|
4714
|
+
user_name?: string | undefined;
|
|
4715
|
+
client_name?: string | undefined;
|
|
4716
|
+
strategy_type?: string | undefined;
|
|
4717
|
+
hostname?: string | undefined;
|
|
4718
|
+
auth0_client?: {
|
|
4719
|
+
name: string;
|
|
4720
|
+
version: string;
|
|
4721
|
+
env?: {
|
|
4722
|
+
node?: string | undefined;
|
|
4723
|
+
} | undefined;
|
|
4724
|
+
} | undefined;
|
|
4739
4725
|
log_id?: string | undefined;
|
|
4740
|
-
|
|
4726
|
+
}>;
|
|
4727
|
+
export type LogInsert = z.infer<typeof logInsertSchema>;
|
|
4728
|
+
declare const logSchema: z.ZodObject<{
|
|
4729
|
+
log_id: z.ZodString;
|
|
4730
|
+
type: z.ZodEffects<z.ZodString, "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum", string>;
|
|
4731
|
+
date: z.ZodString;
|
|
4732
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4733
|
+
ip: z.ZodString;
|
|
4734
|
+
user_agent: z.ZodString;
|
|
4735
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
4736
|
+
isMobile: z.ZodBoolean;
|
|
4737
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
4738
|
+
user_name: z.ZodOptional<z.ZodString>;
|
|
4739
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
4740
|
+
connection_id: z.ZodOptional<z.ZodString>;
|
|
4741
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
4742
|
+
client_name: z.ZodOptional<z.ZodString>;
|
|
4743
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
4744
|
+
scope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4745
|
+
strategy: z.ZodOptional<z.ZodString>;
|
|
4746
|
+
strategy_type: z.ZodOptional<z.ZodString>;
|
|
4747
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
4748
|
+
auth0_client: z.ZodOptional<z.ZodObject<{
|
|
4749
|
+
name: z.ZodString;
|
|
4750
|
+
version: z.ZodString;
|
|
4751
|
+
env: z.ZodOptional<z.ZodObject<{
|
|
4752
|
+
node: z.ZodOptional<z.ZodString>;
|
|
4753
|
+
}, "strip", z.ZodTypeAny, {
|
|
4754
|
+
node?: string | undefined;
|
|
4755
|
+
}, {
|
|
4756
|
+
node?: string | undefined;
|
|
4757
|
+
}>>;
|
|
4758
|
+
}, "strip", z.ZodTypeAny, {
|
|
4759
|
+
name: string;
|
|
4760
|
+
version: string;
|
|
4761
|
+
env?: {
|
|
4762
|
+
node?: string | undefined;
|
|
4763
|
+
} | undefined;
|
|
4764
|
+
}, {
|
|
4765
|
+
name: string;
|
|
4766
|
+
version: string;
|
|
4767
|
+
env?: {
|
|
4768
|
+
node?: string | undefined;
|
|
4769
|
+
} | undefined;
|
|
4770
|
+
}>>;
|
|
4771
|
+
}, "strip", z.ZodTypeAny, {
|
|
4772
|
+
type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
|
|
4773
|
+
date: string;
|
|
4774
|
+
ip: string;
|
|
4775
|
+
user_agent: string;
|
|
4776
|
+
isMobile: boolean;
|
|
4777
|
+
log_id: string;
|
|
4778
|
+
description?: string | undefined;
|
|
4779
|
+
connection?: string | undefined;
|
|
4780
|
+
user_id?: string | undefined;
|
|
4781
|
+
client_id?: string | undefined;
|
|
4782
|
+
audience?: string | undefined;
|
|
4783
|
+
scope?: string[] | undefined;
|
|
4784
|
+
strategy?: string | undefined;
|
|
4785
|
+
connection_id?: string | undefined;
|
|
4786
|
+
details?: any;
|
|
4787
|
+
user_name?: string | undefined;
|
|
4788
|
+
client_name?: string | undefined;
|
|
4789
|
+
strategy_type?: string | undefined;
|
|
4790
|
+
hostname?: string | undefined;
|
|
4791
|
+
auth0_client?: {
|
|
4792
|
+
name: string;
|
|
4793
|
+
version: string;
|
|
4794
|
+
env?: {
|
|
4795
|
+
node?: string | undefined;
|
|
4796
|
+
} | undefined;
|
|
4797
|
+
} | undefined;
|
|
4798
|
+
}, {
|
|
4799
|
+
type: string;
|
|
4800
|
+
date: string;
|
|
4801
|
+
ip: string;
|
|
4802
|
+
user_agent: string;
|
|
4803
|
+
isMobile: boolean;
|
|
4804
|
+
log_id: string;
|
|
4805
|
+
description?: string | undefined;
|
|
4806
|
+
connection?: string | undefined;
|
|
4807
|
+
user_id?: string | undefined;
|
|
4808
|
+
client_id?: string | undefined;
|
|
4809
|
+
audience?: string | undefined;
|
|
4810
|
+
scope?: string[] | undefined;
|
|
4811
|
+
strategy?: string | undefined;
|
|
4812
|
+
connection_id?: string | undefined;
|
|
4741
4813
|
details?: any;
|
|
4742
4814
|
user_name?: string | undefined;
|
|
4743
4815
|
client_name?: string | undefined;
|
|
@@ -4752,10 +4824,6 @@ declare const logSchema: z.ZodObject<{
|
|
|
4752
4824
|
} | undefined;
|
|
4753
4825
|
}>;
|
|
4754
4826
|
export type Log = z.infer<typeof logSchema>;
|
|
4755
|
-
export type LogsResponse = Log & {
|
|
4756
|
-
log_id: string;
|
|
4757
|
-
_id: string;
|
|
4758
|
-
};
|
|
4759
4827
|
declare const passwordInsertSchema: z.ZodObject<{
|
|
4760
4828
|
user_id: z.ZodString;
|
|
4761
4829
|
password: z.ZodString;
|
|
@@ -7329,12 +7397,12 @@ export interface UserDataAdapter {
|
|
|
7329
7397
|
unlink(tenantId: string, id: string, provider: string, linked_user_id: string): Promise<boolean>;
|
|
7330
7398
|
}
|
|
7331
7399
|
export interface ListLogsResponse extends Totals {
|
|
7332
|
-
logs:
|
|
7400
|
+
logs: Log[];
|
|
7333
7401
|
}
|
|
7334
7402
|
export interface LogsDataAdapter {
|
|
7335
|
-
create(tenantId: string, params:
|
|
7403
|
+
create(tenantId: string, params: LogInsert): Promise<Log>;
|
|
7336
7404
|
list(tenantId: string, params?: ListParams): Promise<ListLogsResponse>;
|
|
7337
|
-
get(tenantId: string, logId: string): Promise<
|
|
7405
|
+
get(tenantId: string, logId: string): Promise<Log | null>;
|
|
7338
7406
|
}
|
|
7339
7407
|
export interface ListConnectionsResponse extends Totals {
|
|
7340
7408
|
connections: Connection[];
|
|
@@ -7488,6 +7556,16 @@ export interface UserOrganizationsAdapter {
|
|
|
7488
7556
|
} & Totals>;
|
|
7489
7557
|
update(tenantId: string, id: string, params: Partial<UserOrganizationInsert>): Promise<boolean>;
|
|
7490
7558
|
}
|
|
7559
|
+
export interface ListInvitesResponse extends Totals {
|
|
7560
|
+
invites: Invite[];
|
|
7561
|
+
}
|
|
7562
|
+
export interface InvitesAdapter {
|
|
7563
|
+
create(tenant_id: string, params: InviteInsert): Promise<Invite>;
|
|
7564
|
+
get(tenant_id: string, id: string): Promise<Invite | null>;
|
|
7565
|
+
remove(tenant_id: string, id: string): Promise<boolean>;
|
|
7566
|
+
list(tenant_id: string, params?: ListParams): Promise<ListInvitesResponse>;
|
|
7567
|
+
update(tenant_id: string, id: string, params: Partial<InviteInsert>): Promise<boolean>;
|
|
7568
|
+
}
|
|
7491
7569
|
export interface DataAdapters {
|
|
7492
7570
|
branding: BrandingAdapter;
|
|
7493
7571
|
cache?: CacheAdapter;
|
|
@@ -7500,6 +7578,7 @@ export interface DataAdapters {
|
|
|
7500
7578
|
emailProviders: EmailProvidersAdapter;
|
|
7501
7579
|
forms: FormsAdapter;
|
|
7502
7580
|
hooks: HooksAdapter;
|
|
7581
|
+
invites: InvitesAdapter;
|
|
7503
7582
|
keys: KeysAdapter;
|
|
7504
7583
|
loginSessions: LoginSessionsAdapter;
|
|
7505
7584
|
logs: LogsDataAdapter;
|
|
@@ -7518,30 +7597,6 @@ export interface DataAdapters {
|
|
|
7518
7597
|
organizations: OrganizationsAdapter;
|
|
7519
7598
|
userOrganizations: UserOrganizationsAdapter;
|
|
7520
7599
|
}
|
|
7521
|
-
export interface SqlLog {
|
|
7522
|
-
id: string;
|
|
7523
|
-
tenant_id: string;
|
|
7524
|
-
type: LogType;
|
|
7525
|
-
date: string;
|
|
7526
|
-
description?: string;
|
|
7527
|
-
ip: string;
|
|
7528
|
-
user_agent: string;
|
|
7529
|
-
details?: string;
|
|
7530
|
-
auth0_client?: string;
|
|
7531
|
-
isMobile?: number;
|
|
7532
|
-
user_id?: string;
|
|
7533
|
-
user_name?: string;
|
|
7534
|
-
connection?: string;
|
|
7535
|
-
connection_id?: string;
|
|
7536
|
-
client_id?: string;
|
|
7537
|
-
client_name?: string;
|
|
7538
|
-
audience?: string;
|
|
7539
|
-
scope?: string;
|
|
7540
|
-
strategy?: string;
|
|
7541
|
-
strategy_type?: string;
|
|
7542
|
-
hostname?: string;
|
|
7543
|
-
session_connection?: string;
|
|
7544
|
-
}
|
|
7545
7600
|
declare const sqlThemeSchema: z.ZodObject<{
|
|
7546
7601
|
[x: string]: any;
|
|
7547
7602
|
} & {
|
|
@@ -8129,6 +8184,76 @@ declare const sqlFormSchema: z.ZodObject<{
|
|
|
8129
8184
|
css?: string | undefined;
|
|
8130
8185
|
} | undefined;
|
|
8131
8186
|
}>;
|
|
8187
|
+
declare const sqlLogSchema: z.ZodObject<{
|
|
8188
|
+
id: z.ZodString;
|
|
8189
|
+
tenant_id: z.ZodString;
|
|
8190
|
+
type: z.ZodEffects<z.ZodString, "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum", string>;
|
|
8191
|
+
date: z.ZodString;
|
|
8192
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8193
|
+
ip: z.ZodString;
|
|
8194
|
+
user_agent: z.ZodString;
|
|
8195
|
+
details: z.ZodOptional<z.ZodString>;
|
|
8196
|
+
auth0_client: z.ZodOptional<z.ZodString>;
|
|
8197
|
+
isMobile: z.ZodOptional<z.ZodNumber>;
|
|
8198
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
8199
|
+
user_name: z.ZodOptional<z.ZodString>;
|
|
8200
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
8201
|
+
connection_id: z.ZodOptional<z.ZodString>;
|
|
8202
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
8203
|
+
client_name: z.ZodOptional<z.ZodString>;
|
|
8204
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
8205
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
8206
|
+
strategy: z.ZodOptional<z.ZodString>;
|
|
8207
|
+
strategy_type: z.ZodOptional<z.ZodString>;
|
|
8208
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
8209
|
+
session_connection: z.ZodOptional<z.ZodString>;
|
|
8210
|
+
}, "strip", z.ZodTypeAny, {
|
|
8211
|
+
type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
|
|
8212
|
+
date: string;
|
|
8213
|
+
tenant_id: string;
|
|
8214
|
+
id: string;
|
|
8215
|
+
ip: string;
|
|
8216
|
+
user_agent: string;
|
|
8217
|
+
description?: string | undefined;
|
|
8218
|
+
user_id?: string | undefined;
|
|
8219
|
+
connection?: string | undefined;
|
|
8220
|
+
client_id?: string | undefined;
|
|
8221
|
+
details?: string | undefined;
|
|
8222
|
+
auth0_client?: string | undefined;
|
|
8223
|
+
isMobile?: number | undefined;
|
|
8224
|
+
user_name?: string | undefined;
|
|
8225
|
+
connection_id?: string | undefined;
|
|
8226
|
+
client_name?: string | undefined;
|
|
8227
|
+
audience?: string | undefined;
|
|
8228
|
+
scope?: string | undefined;
|
|
8229
|
+
strategy?: string | undefined;
|
|
8230
|
+
strategy_type?: string | undefined;
|
|
8231
|
+
hostname?: string | undefined;
|
|
8232
|
+
session_connection?: string | undefined;
|
|
8233
|
+
}, {
|
|
8234
|
+
type: string;
|
|
8235
|
+
date: string;
|
|
8236
|
+
tenant_id: string;
|
|
8237
|
+
id: string;
|
|
8238
|
+
ip: string;
|
|
8239
|
+
user_agent: string;
|
|
8240
|
+
description?: string | undefined;
|
|
8241
|
+
user_id?: string | undefined;
|
|
8242
|
+
connection?: string | undefined;
|
|
8243
|
+
client_id?: string | undefined;
|
|
8244
|
+
details?: string | undefined;
|
|
8245
|
+
auth0_client?: string | undefined;
|
|
8246
|
+
isMobile?: number | undefined;
|
|
8247
|
+
user_name?: string | undefined;
|
|
8248
|
+
connection_id?: string | undefined;
|
|
8249
|
+
client_name?: string | undefined;
|
|
8250
|
+
audience?: string | undefined;
|
|
8251
|
+
scope?: string | undefined;
|
|
8252
|
+
strategy?: string | undefined;
|
|
8253
|
+
strategy_type?: string | undefined;
|
|
8254
|
+
hostname?: string | undefined;
|
|
8255
|
+
session_connection?: string | undefined;
|
|
8256
|
+
}>;
|
|
8132
8257
|
declare const sqlResourceServerSchema: z.ZodObject<Omit<{
|
|
8133
8258
|
tenant_id: z.ZodString;
|
|
8134
8259
|
scopes: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -8475,6 +8600,58 @@ declare const sqlUserOrganizationSchema: z.ZodObject<{
|
|
|
8475
8600
|
id: string;
|
|
8476
8601
|
organization_id: string;
|
|
8477
8602
|
}>;
|
|
8603
|
+
declare const sqlInviteSchema: z.ZodObject<{
|
|
8604
|
+
id: z.ZodString;
|
|
8605
|
+
tenant_id: z.ZodString;
|
|
8606
|
+
organization_id: z.ZodString;
|
|
8607
|
+
inviter: z.ZodString;
|
|
8608
|
+
invitee: z.ZodString;
|
|
8609
|
+
client_id: z.ZodString;
|
|
8610
|
+
connection_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8611
|
+
invitation_url: z.ZodString;
|
|
8612
|
+
created_at: z.ZodString;
|
|
8613
|
+
expires_at: z.ZodString;
|
|
8614
|
+
app_metadata: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8615
|
+
user_metadata: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8616
|
+
roles: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8617
|
+
ticket_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8618
|
+
ttl_sec: z.ZodOptional<z.ZodNumber>;
|
|
8619
|
+
send_invitation_email: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
8620
|
+
}, "strip", z.ZodTypeAny, {
|
|
8621
|
+
tenant_id: string;
|
|
8622
|
+
app_metadata: string;
|
|
8623
|
+
user_metadata: string;
|
|
8624
|
+
created_at: string;
|
|
8625
|
+
id: string;
|
|
8626
|
+
expires_at: string;
|
|
8627
|
+
client_id: string;
|
|
8628
|
+
organization_id: string;
|
|
8629
|
+
inviter: string;
|
|
8630
|
+
invitee: string;
|
|
8631
|
+
invitation_url: string;
|
|
8632
|
+
roles: string;
|
|
8633
|
+
send_invitation_email: number;
|
|
8634
|
+
connection_id?: string | null | undefined;
|
|
8635
|
+
ticket_id?: string | null | undefined;
|
|
8636
|
+
ttl_sec?: number | undefined;
|
|
8637
|
+
}, {
|
|
8638
|
+
tenant_id: string;
|
|
8639
|
+
created_at: string;
|
|
8640
|
+
id: string;
|
|
8641
|
+
expires_at: string;
|
|
8642
|
+
client_id: string;
|
|
8643
|
+
organization_id: string;
|
|
8644
|
+
inviter: string;
|
|
8645
|
+
invitee: string;
|
|
8646
|
+
invitation_url: string;
|
|
8647
|
+
app_metadata?: string | undefined;
|
|
8648
|
+
user_metadata?: string | undefined;
|
|
8649
|
+
connection_id?: string | null | undefined;
|
|
8650
|
+
roles?: string | undefined;
|
|
8651
|
+
ticket_id?: string | null | undefined;
|
|
8652
|
+
ttl_sec?: number | undefined;
|
|
8653
|
+
send_invitation_email?: number | undefined;
|
|
8654
|
+
}>;
|
|
8478
8655
|
declare const sqlClientSchema: z.ZodObject<{
|
|
8479
8656
|
tenant_id: z.ZodString;
|
|
8480
8657
|
global: z.ZodNumber;
|
|
@@ -8686,7 +8863,7 @@ export interface Database {
|
|
|
8686
8863
|
created_at: string;
|
|
8687
8864
|
};
|
|
8688
8865
|
login_sessions: z.infer<typeof sqlLoginSchema>;
|
|
8689
|
-
logs:
|
|
8866
|
+
logs: z.infer<typeof sqlLogSchema>;
|
|
8690
8867
|
passwords: Password & {
|
|
8691
8868
|
tenant_id: string;
|
|
8692
8869
|
};
|
|
@@ -8703,6 +8880,7 @@ export interface Database {
|
|
|
8703
8880
|
roles: z.infer<typeof sqlRoleSchema>;
|
|
8704
8881
|
organizations: z.infer<typeof sqlOrganizationSchema>;
|
|
8705
8882
|
user_organizations: z.infer<typeof sqlUserOrganizationSchema>;
|
|
8883
|
+
invites: z.infer<typeof sqlInviteSchema>;
|
|
8706
8884
|
}
|
|
8707
8885
|
export declare function migrateToLatest(db: Kysely<Database>, debug?: boolean): Promise<void>;
|
|
8708
8886
|
export declare function migrateDown(db: Kysely<Database>): Promise<void>;
|