From c6b51af4b1c4ee0e5d44c32ab3142cbbf1944789 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 25 Jun 2024 15:47:42 +0530 Subject: [PATCH] feat: removed knex-tables.d.ts --- backend/src/@types/knex-tables.d.ts | 593 ------------------------ backend/src/@types/knex.d.ts | 676 +++++++++++++++------------- 2 files changed, 360 insertions(+), 909 deletions(-) delete mode 100644 backend/src/@types/knex-tables.d.ts diff --git a/backend/src/@types/knex-tables.d.ts b/backend/src/@types/knex-tables.d.ts deleted file mode 100644 index 79342ea27..000000000 --- a/backend/src/@types/knex-tables.d.ts +++ /dev/null @@ -1,593 +0,0 @@ -import { Knex } from "knex"; - -import { - TableName, - TAccessApprovalPolicies, - TAccessApprovalPoliciesApprovers, - TAccessApprovalPoliciesApproversInsert, - TAccessApprovalPoliciesApproversUpdate, - TAccessApprovalPoliciesInsert, - TAccessApprovalPoliciesUpdate, - TAccessApprovalRequests, - TAccessApprovalRequestsInsert, - TAccessApprovalRequestsReviewers, - TAccessApprovalRequestsReviewersInsert, - TAccessApprovalRequestsReviewersUpdate, - TAccessApprovalRequestsUpdate, - TApiKeys, - TApiKeysInsert, - TApiKeysUpdate, - TAuditLogs, - TAuditLogsInsert, - TAuditLogStreams, - TAuditLogStreamsInsert, - TAuditLogStreamsUpdate, - TAuditLogsUpdate, - TAuthTokens, - TAuthTokenSessions, - TAuthTokenSessionsInsert, - TAuthTokenSessionsUpdate, - TAuthTokensInsert, - TAuthTokensUpdate, - TBackupPrivateKey, - TBackupPrivateKeyInsert, - TBackupPrivateKeyUpdate, - TCertificateAuthorities, - TCertificateAuthoritiesInsert, - TCertificateAuthoritiesUpdate, - TCertificateAuthorityCerts, - TCertificateAuthorityCertsInsert, - TCertificateAuthorityCertsUpdate, - TCertificateAuthorityCrl, - TCertificateAuthorityCrlInsert, - TCertificateAuthorityCrlUpdate, - TCertificateAuthoritySecret, - TCertificateAuthoritySecretInsert, - TCertificateAuthoritySecretUpdate, - TCertificateBodies, - TCertificateBodiesInsert, - TCertificateBodiesUpdate, - TCertificates, - TCertificateSecrets, - TCertificateSecretsInsert, - TCertificateSecretsUpdate, - TCertificatesInsert, - TCertificatesUpdate, - TDynamicSecretLeases, - TDynamicSecretLeasesInsert, - TDynamicSecretLeasesUpdate, - TDynamicSecrets, - TDynamicSecretsInsert, - TDynamicSecretsUpdate, - TGitAppInstallSessions, - TGitAppInstallSessionsInsert, - TGitAppInstallSessionsUpdate, - TGitAppOrg, - TGitAppOrgInsert, - TGitAppOrgUpdate, - TGroupProjectMembershipRoles, - TGroupProjectMembershipRolesInsert, - TGroupProjectMembershipRolesUpdate, - TGroupProjectMemberships, - TGroupProjectMembershipsInsert, - TGroupProjectMembershipsUpdate, - TGroups, - TGroupsInsert, - TGroupsUpdate, - TIdentities, - TIdentitiesInsert, - TIdentitiesUpdate, - TIdentityAccessTokens, - TIdentityAccessTokensInsert, - TIdentityAccessTokensUpdate, - TIdentityAwsAuths, - TIdentityAwsAuthsInsert, - TIdentityAwsAuthsUpdate, - TIdentityAzureAuths, - TIdentityAzureAuthsInsert, - TIdentityAzureAuthsUpdate, - TIdentityGcpAuths, - TIdentityGcpAuthsInsert, - TIdentityGcpAuthsUpdate, - TIdentityKubernetesAuths, - TIdentityKubernetesAuthsInsert, - TIdentityKubernetesAuthsUpdate, - TIdentityOrgMemberships, - TIdentityOrgMembershipsInsert, - TIdentityOrgMembershipsUpdate, - TIdentityProjectAdditionalPrivilege, - TIdentityProjectAdditionalPrivilegeInsert, - TIdentityProjectAdditionalPrivilegeUpdate, - TIdentityProjectMembershipRole, - TIdentityProjectMembershipRoleInsert, - TIdentityProjectMembershipRoleUpdate, - TIdentityProjectMemberships, - TIdentityProjectMembershipsInsert, - TIdentityProjectMembershipsUpdate, - TIdentityUaClientSecrets, - TIdentityUaClientSecretsInsert, - TIdentityUaClientSecretsUpdate, - TIdentityUniversalAuths, - TIdentityUniversalAuthsInsert, - TIdentityUniversalAuthsUpdate, - TIncidentContacts, - TIncidentContactsInsert, - TIncidentContactsUpdate, - TIntegrationAuths, - TIntegrationAuthsInsert, - TIntegrationAuthsUpdate, - TIntegrations, - TIntegrationsInsert, - TIntegrationsUpdate, - TKmsKeys, - TKmsKeysInsert, - TKmsKeysUpdate, - TKmsKeyVersions, - TKmsKeyVersionsInsert, - TKmsKeyVersionsUpdate, - TKmsRootConfig, - TKmsRootConfigInsert, - TKmsRootConfigUpdate, - TLdapConfigs, - TLdapConfigsInsert, - TLdapConfigsUpdate, - TLdapGroupMaps, - TLdapGroupMapsInsert, - TLdapGroupMapsUpdate, - TOrganizations, - TOrganizationsInsert, - TOrganizationsUpdate, - TOrgBots, - TOrgBotsInsert, - TOrgBotsUpdate, - TOrgMemberships, - TOrgMembershipsInsert, - TOrgMembershipsUpdate, - TOrgRoles, - TOrgRolesInsert, - TOrgRolesUpdate, - TProjectBots, - TProjectBotsInsert, - TProjectBotsUpdate, - TProjectEnvironments, - TProjectEnvironmentsInsert, - TProjectEnvironmentsUpdate, - TProjectKeys, - TProjectKeysInsert, - TProjectKeysUpdate, - TProjectMemberships, - TProjectMembershipsInsert, - TProjectMembershipsUpdate, - TProjectRoles, - TProjectRolesInsert, - TProjectRolesUpdate, - TProjects, - TProjectsInsert, - TProjectsUpdate, - TProjectUserAdditionalPrivilege, - TProjectUserAdditionalPrivilegeInsert, - TProjectUserAdditionalPrivilegeUpdate, - TProjectUserMembershipRoles, - TProjectUserMembershipRolesInsert, - TProjectUserMembershipRolesUpdate, - TRateLimit, - TRateLimitInsert, - TRateLimitUpdate, - TSamlConfigs, - TSamlConfigsInsert, - TSamlConfigsUpdate, - TScimTokens, - TScimTokensInsert, - TScimTokensUpdate, - TSecretApprovalPolicies, - TSecretApprovalPoliciesApprovers, - TSecretApprovalPoliciesApproversInsert, - TSecretApprovalPoliciesApproversUpdate, - TSecretApprovalPoliciesInsert, - TSecretApprovalPoliciesUpdate, - TSecretApprovalRequests, - TSecretApprovalRequestSecretTags, - TSecretApprovalRequestSecretTagsInsert, - TSecretApprovalRequestSecretTagsUpdate, - TSecretApprovalRequestsInsert, - TSecretApprovalRequestsReviewers, - TSecretApprovalRequestsReviewersInsert, - TSecretApprovalRequestsReviewersUpdate, - TSecretApprovalRequestsSecrets, - TSecretApprovalRequestsSecretsInsert, - TSecretApprovalRequestsSecretsUpdate, - TSecretApprovalRequestsUpdate, - TSecretBlindIndexes, - TSecretBlindIndexesInsert, - TSecretBlindIndexesUpdate, - TSecretFolders, - TSecretFoldersInsert, - TSecretFoldersUpdate, - TSecretFolderVersions, - TSecretFolderVersionsInsert, - TSecretFolderVersionsUpdate, - TSecretImports, - TSecretImportsInsert, - TSecretImportsUpdate, - TSecretReferences, - TSecretReferencesInsert, - TSecretReferencesUpdate, - TSecretRotationOutputs, - TSecretRotationOutputsInsert, - TSecretRotationOutputsUpdate, - TSecretRotations, - TSecretRotationsInsert, - TSecretRotationsUpdate, - TSecrets, - TSecretScanningGitRisks, - TSecretScanningGitRisksInsert, - TSecretScanningGitRisksUpdate, - TSecretSharing, - TSecretSharingInsert, - TSecretSharingUpdate, - TSecretsInsert, - TSecretSnapshotFolders, - TSecretSnapshotFoldersInsert, - TSecretSnapshotFoldersUpdate, - TSecretSnapshots, - TSecretSnapshotSecrets, - TSecretSnapshotSecretsInsert, - TSecretSnapshotSecretsUpdate, - TSecretSnapshotsInsert, - TSecretSnapshotsUpdate, - TSecretsUpdate, - TSecretTagJunction, - TSecretTagJunctionInsert, - TSecretTagJunctionUpdate, - TSecretTags, - TSecretTagsInsert, - TSecretTagsUpdate, - TSecretVersions, - TSecretVersionsInsert, - TSecretVersionsUpdate, - TSecretVersionTagJunction, - TSecretVersionTagJunctionInsert, - TSecretVersionTagJunctionUpdate, - TServiceTokens, - TServiceTokensInsert, - TServiceTokensUpdate, - TSuperAdmin, - TSuperAdminInsert, - TSuperAdminUpdate, - TTrustedIps, - TTrustedIpsInsert, - TTrustedIpsUpdate, - TUserActions, - TUserActionsInsert, - TUserActionsUpdate, - TUserAliases, - TUserAliasesInsert, - TUserAliasesUpdate, - TUserEncryptionKeys, - TUserEncryptionKeysInsert, - TUserEncryptionKeysUpdate, - TUserGroupMembership, - TUserGroupMembershipInsert, - TUserGroupMembershipUpdate, - TUsers, - TUsersInsert, - TUsersUpdate, - TWebhooks, - TWebhooksInsert, - TWebhooksUpdate -} from "@app/db/schemas"; - -declare module "knex/types/tables" { - interface Tables { - [TableName.Users]: Knex.CompositeTableType; - [TableName.Groups]: Knex.CompositeTableType; - [TableName.CertificateAuthority]: Knex.CompositeTableType< - TCertificateAuthorities, - TCertificateAuthoritiesInsert, - TCertificateAuthoritiesUpdate - >; - [TableName.CertificateAuthorityCert]: Knex.CompositeTableType< - TCertificateAuthorityCerts, - TCertificateAuthorityCertsInsert, - TCertificateAuthorityCertsUpdate - >; - [TableName.CertificateAuthoritySecret]: Knex.CompositeTableType< - TCertificateAuthoritySecret, - TCertificateAuthoritySecretInsert, - TCertificateAuthoritySecretUpdate - >; - [TableName.CertificateAuthorityCrl]: Knex.CompositeTableType< - TCertificateAuthorityCrl, - TCertificateAuthorityCrlInsert, - TCertificateAuthorityCrlUpdate - >; - [TableName.Certificate]: Knex.CompositeTableType; - [TableName.CertificateBody]: Knex.CompositeTableType< - TCertificateBodies, - TCertificateBodiesInsert, - TCertificateBodiesUpdate - >; - [TableName.CertificateSecret]: Knex.CompositeTableType< - TCertificateSecrets, - TCertificateSecretsInsert, - TCertificateSecretsUpdate - >; - [TableName.UserGroupMembership]: Knex.CompositeTableType< - TUserGroupMembership, - TUserGroupMembershipInsert, - TUserGroupMembershipUpdate - >; - [TableName.GroupProjectMembership]: Knex.CompositeTableType< - TGroupProjectMemberships, - TGroupProjectMembershipsInsert, - TGroupProjectMembershipsUpdate - >; - [TableName.GroupProjectMembershipRole]: Knex.CompositeTableType< - TGroupProjectMembershipRoles, - TGroupProjectMembershipRolesInsert, - TGroupProjectMembershipRolesUpdate - >; - [TableName.UserAliases]: Knex.CompositeTableType; - [TableName.UserEncryptionKey]: Knex.CompositeTableType< - TUserEncryptionKeys, - TUserEncryptionKeysInsert, - TUserEncryptionKeysUpdate - >; - [TableName.AuthTokens]: Knex.CompositeTableType; - [TableName.AuthTokenSession]: Knex.CompositeTableType< - TAuthTokenSessions, - TAuthTokenSessionsInsert, - TAuthTokenSessionsUpdate - >; - [TableName.BackupPrivateKey]: Knex.CompositeTableType< - TBackupPrivateKey, - TBackupPrivateKeyInsert, - TBackupPrivateKeyUpdate - >; - [TableName.Organization]: Knex.CompositeTableType; - [TableName.OrgMembership]: Knex.CompositeTableType; - [TableName.OrgRoles]: Knex.CompositeTableType; - [TableName.IncidentContact]: Knex.CompositeTableType< - TIncidentContacts, - TIncidentContactsInsert, - TIncidentContactsUpdate - >; - [TableName.UserAction]: Knex.CompositeTableType; - [TableName.SuperAdmin]: Knex.CompositeTableType; - [TableName.ApiKey]: Knex.CompositeTableType; - [TableName.Project]: Knex.CompositeTableType; - [TableName.ProjectMembership]: Knex.CompositeTableType< - TProjectMemberships, - TProjectMembershipsInsert, - TProjectMembershipsUpdate - >; - [TableName.Environment]: Knex.CompositeTableType< - TProjectEnvironments, - TProjectEnvironmentsInsert, - TProjectEnvironmentsUpdate - >; - [TableName.ProjectBot]: Knex.CompositeTableType; - [TableName.ProjectUserMembershipRole]: Knex.CompositeTableType< - TProjectUserMembershipRoles, - TProjectUserMembershipRolesInsert, - TProjectUserMembershipRolesUpdate - >; - [TableName.ProjectRoles]: Knex.CompositeTableType; - [TableName.ProjectUserAdditionalPrivilege]: Knex.CompositeTableType< - TProjectUserAdditionalPrivilege, - TProjectUserAdditionalPrivilegeInsert, - TProjectUserAdditionalPrivilegeUpdate - >; - [TableName.ProjectKeys]: Knex.CompositeTableType; - [TableName.Secret]: Knex.CompositeTableType; - [TableName.SecretReference]: Knex.CompositeTableType< - TSecretReferences, - TSecretReferencesInsert, - TSecretReferencesUpdate - >; - [TableName.SecretBlindIndex]: Knex.CompositeTableType< - TSecretBlindIndexes, - TSecretBlindIndexesInsert, - TSecretBlindIndexesUpdate - >; - [TableName.SecretVersion]: Knex.CompositeTableType; - [TableName.SecretFolder]: Knex.CompositeTableType; - [TableName.SecretFolderVersion]: Knex.CompositeTableType< - TSecretFolderVersions, - TSecretFolderVersionsInsert, - TSecretFolderVersionsUpdate - >; - [TableName.SecretSharing]: Knex.CompositeTableType; - [TableName.RateLimit]: Knex.CompositeTableType; - [TableName.SecretTag]: Knex.CompositeTableType; - [TableName.SecretImport]: Knex.CompositeTableType; - [TableName.Integration]: Knex.CompositeTableType; - [TableName.Webhook]: Knex.CompositeTableType; - [TableName.ServiceToken]: Knex.CompositeTableType; - [TableName.IntegrationAuth]: Knex.CompositeTableType< - TIntegrationAuths, - TIntegrationAuthsInsert, - TIntegrationAuthsUpdate - >; - [TableName.Identity]: Knex.CompositeTableType; - [TableName.IdentityUniversalAuth]: Knex.CompositeTableType< - TIdentityUniversalAuths, - TIdentityUniversalAuthsInsert, - TIdentityUniversalAuthsUpdate - >; - [TableName.IdentityKubernetesAuth]: Knex.CompositeTableType< - TIdentityKubernetesAuths, - TIdentityKubernetesAuthsInsert, - TIdentityKubernetesAuthsUpdate - >; - [TableName.IdentityGcpAuth]: Knex.CompositeTableType< - TIdentityGcpAuths, - TIdentityGcpAuthsInsert, - TIdentityGcpAuthsUpdate - >; - [TableName.IdentityAwsAuth]: Knex.CompositeTableType< - TIdentityAwsAuths, - TIdentityAwsAuthsInsert, - TIdentityAwsAuthsUpdate - >; - [TableName.IdentityAzureAuth]: Knex.CompositeTableType< - TIdentityAzureAuths, - TIdentityAzureAuthsInsert, - TIdentityAzureAuthsUpdate - >; - [TableName.IdentityUaClientSecret]: Knex.CompositeTableType< - TIdentityUaClientSecrets, - TIdentityUaClientSecretsInsert, - TIdentityUaClientSecretsUpdate - >; - [TableName.IdentityAccessToken]: Knex.CompositeTableType< - TIdentityAccessTokens, - TIdentityAccessTokensInsert, - TIdentityAccessTokensUpdate - >; - [TableName.IdentityOrgMembership]: Knex.CompositeTableType< - TIdentityOrgMemberships, - TIdentityOrgMembershipsInsert, - TIdentityOrgMembershipsUpdate - >; - [TableName.IdentityProjectMembership]: Knex.CompositeTableType< - TIdentityProjectMemberships, - TIdentityProjectMembershipsInsert, - TIdentityProjectMembershipsUpdate - >; - [TableName.IdentityProjectMembershipRole]: Knex.CompositeTableType< - TIdentityProjectMembershipRole, - TIdentityProjectMembershipRoleInsert, - TIdentityProjectMembershipRoleUpdate - >; - [TableName.IdentityProjectAdditionalPrivilege]: Knex.CompositeTableType< - TIdentityProjectAdditionalPrivilege, - TIdentityProjectAdditionalPrivilegeInsert, - TIdentityProjectAdditionalPrivilegeUpdate - >; - - [TableName.AccessApprovalPolicy]: Knex.CompositeTableType< - TAccessApprovalPolicies, - TAccessApprovalPoliciesInsert, - TAccessApprovalPoliciesUpdate - >; - - [TableName.AccessApprovalPolicyApprover]: Knex.CompositeTableType< - TAccessApprovalPoliciesApprovers, - TAccessApprovalPoliciesApproversInsert, - TAccessApprovalPoliciesApproversUpdate - >; - - [TableName.AccessApprovalRequest]: Knex.CompositeTableType< - TAccessApprovalRequests, - TAccessApprovalRequestsInsert, - TAccessApprovalRequestsUpdate - >; - - [TableName.AccessApprovalRequestReviewer]: Knex.CompositeTableType< - TAccessApprovalRequestsReviewers, - TAccessApprovalRequestsReviewersInsert, - TAccessApprovalRequestsReviewersUpdate - >; - - [TableName.ScimToken]: Knex.CompositeTableType; - [TableName.SecretApprovalPolicy]: Knex.CompositeTableType< - TSecretApprovalPolicies, - TSecretApprovalPoliciesInsert, - TSecretApprovalPoliciesUpdate - >; - [TableName.SecretApprovalPolicyApprover]: Knex.CompositeTableType< - TSecretApprovalPoliciesApprovers, - TSecretApprovalPoliciesApproversInsert, - TSecretApprovalPoliciesApproversUpdate - >; - [TableName.SecretApprovalRequest]: Knex.CompositeTableType< - TSecretApprovalRequests, - TSecretApprovalRequestsInsert, - TSecretApprovalRequestsUpdate - >; - [TableName.SecretApprovalRequestReviewer]: Knex.CompositeTableType< - TSecretApprovalRequestsReviewers, - TSecretApprovalRequestsReviewersInsert, - TSecretApprovalRequestsReviewersUpdate - >; - [TableName.SecretApprovalRequestSecret]: Knex.CompositeTableType< - TSecretApprovalRequestsSecrets, - TSecretApprovalRequestsSecretsInsert, - TSecretApprovalRequestsSecretsUpdate - >; - [TableName.SecretApprovalRequestSecretTag]: Knex.CompositeTableType< - TSecretApprovalRequestSecretTags, - TSecretApprovalRequestSecretTagsInsert, - TSecretApprovalRequestSecretTagsUpdate - >; - [TableName.SecretRotation]: Knex.CompositeTableType< - TSecretRotations, - TSecretRotationsInsert, - TSecretRotationsUpdate - >; - [TableName.SecretRotationOutput]: Knex.CompositeTableType< - TSecretRotationOutputs, - TSecretRotationOutputsInsert, - TSecretRotationOutputsUpdate - >; - [TableName.Snapshot]: Knex.CompositeTableType; - [TableName.SnapshotSecret]: Knex.CompositeTableType< - TSecretSnapshotSecrets, - TSecretSnapshotSecretsInsert, - TSecretSnapshotSecretsUpdate - >; - [TableName.SnapshotFolder]: Knex.CompositeTableType< - TSecretSnapshotFolders, - TSecretSnapshotFoldersInsert, - TSecretSnapshotFoldersUpdate - >; - [TableName.DynamicSecret]: Knex.CompositeTableType; - [TableName.DynamicSecretLease]: Knex.CompositeTableType< - TDynamicSecretLeases, - TDynamicSecretLeasesInsert, - TDynamicSecretLeasesUpdate - >; - [TableName.SamlConfig]: Knex.CompositeTableType; - [TableName.LdapConfig]: Knex.CompositeTableType; - [TableName.LdapGroupMap]: Knex.CompositeTableType; - [TableName.OrgBot]: Knex.CompositeTableType; - [TableName.AuditLog]: Knex.CompositeTableType; - [TableName.AuditLogStream]: Knex.CompositeTableType< - TAuditLogStreams, - TAuditLogStreamsInsert, - TAuditLogStreamsUpdate - >; - [TableName.GitAppInstallSession]: Knex.CompositeTableType< - TGitAppInstallSessions, - TGitAppInstallSessionsInsert, - TGitAppInstallSessionsUpdate - >; - [TableName.GitAppOrg]: Knex.CompositeTableType; - [TableName.SecretScanningGitRisk]: Knex.CompositeTableType< - TSecretScanningGitRisks, - TSecretScanningGitRisksInsert, - TSecretScanningGitRisksUpdate - >; - [TableName.TrustedIps]: Knex.CompositeTableType; - // Junction tables - [TableName.JnSecretTag]: Knex.CompositeTableType< - TSecretTagJunction, - TSecretTagJunctionInsert, - TSecretTagJunctionUpdate - >; - [TableName.SecretVersionTag]: Knex.CompositeTableType< - TSecretVersionTagJunction, - TSecretVersionTagJunctionInsert, - TSecretVersionTagJunctionUpdate - >; - // KMS service - [TableName.KmsServerRootConfig]: Knex.CompositeTableType< - TKmsRootConfig, - TKmsRootConfigInsert, - TKmsRootConfigUpdate - >; - [TableName.KmsKey]: Knex.CompositeTableType; - [TableName.KmsKeyVersion]: Knex.CompositeTableType; - } -} diff --git a/backend/src/@types/knex.d.ts b/backend/src/@types/knex.d.ts index edd1cb773..d0b907025 100644 --- a/backend/src/@types/knex.d.ts +++ b/backend/src/@types/knex.d.ts @@ -280,322 +280,6 @@ import { TWebhooksUpdate } from "@app/db/schemas"; -declare module "knex/types/tables" { - interface Tables { - [TableName.Users]: Knex.CompositeTableType; - [TableName.Groups]: Knex.CompositeTableType; - [TableName.CertificateAuthority]: Knex.CompositeTableType< - TCertificateAuthorities, - TCertificateAuthoritiesInsert, - TCertificateAuthoritiesUpdate - >; - [TableName.CertificateAuthorityCert]: Knex.CompositeTableType< - TCertificateAuthorityCerts, - TCertificateAuthorityCertsInsert, - TCertificateAuthorityCertsUpdate - >; - [TableName.CertificateAuthoritySecret]: Knex.CompositeTableType< - TCertificateAuthoritySecret, - TCertificateAuthoritySecretInsert, - TCertificateAuthoritySecretUpdate - >; - [TableName.CertificateAuthorityCrl]: Knex.CompositeTableType< - TCertificateAuthorityCrl, - TCertificateAuthorityCrlInsert, - TCertificateAuthorityCrlUpdate - >; - [TableName.Certificate]: Knex.CompositeTableType; - [TableName.CertificateBody]: Knex.CompositeTableType< - TCertificateBodies, - TCertificateBodiesInsert, - TCertificateBodiesUpdate - >; - [TableName.CertificateSecret]: Knex.CompositeTableType< - TCertificateSecrets, - TCertificateSecretsInsert, - TCertificateSecretsUpdate - >; - [TableName.UserGroupMembership]: Knex.CompositeTableType< - TUserGroupMembership, - TUserGroupMembershipInsert, - TUserGroupMembershipUpdate - >; - [TableName.GroupProjectMembership]: Knex.CompositeTableType< - TGroupProjectMemberships, - TGroupProjectMembershipsInsert, - TGroupProjectMembershipsUpdate - >; - [TableName.GroupProjectMembershipRole]: Knex.CompositeTableType< - TGroupProjectMembershipRoles, - TGroupProjectMembershipRolesInsert, - TGroupProjectMembershipRolesUpdate - >; - [TableName.UserAliases]: Knex.CompositeTableType; - [TableName.UserEncryptionKey]: Knex.CompositeTableType< - TUserEncryptionKeys, - TUserEncryptionKeysInsert, - TUserEncryptionKeysUpdate - >; - [TableName.AuthTokens]: Knex.CompositeTableType; - [TableName.AuthTokenSession]: Knex.CompositeTableType< - TAuthTokenSessions, - TAuthTokenSessionsInsert, - TAuthTokenSessionsUpdate - >; - [TableName.BackupPrivateKey]: Knex.CompositeTableType< - TBackupPrivateKey, - TBackupPrivateKeyInsert, - TBackupPrivateKeyUpdate - >; - [TableName.Organization]: Knex.CompositeTableType; - [TableName.OrgMembership]: Knex.CompositeTableType; - [TableName.OrgRoles]: Knex.CompositeTableType; - [TableName.IncidentContact]: Knex.CompositeTableType< - TIncidentContacts, - TIncidentContactsInsert, - TIncidentContactsUpdate - >; - [TableName.UserAction]: Knex.CompositeTableType; - [TableName.SuperAdmin]: Knex.CompositeTableType; - [TableName.ApiKey]: Knex.CompositeTableType; - [TableName.Project]: Knex.CompositeTableType; - [TableName.ProjectMembership]: Knex.CompositeTableType< - TProjectMemberships, - TProjectMembershipsInsert, - TProjectMembershipsUpdate - >; - [TableName.Environment]: Knex.CompositeTableType< - TProjectEnvironments, - TProjectEnvironmentsInsert, - TProjectEnvironmentsUpdate - >; - [TableName.ProjectBot]: Knex.CompositeTableType; - [TableName.ProjectUserMembershipRole]: Knex.CompositeTableType< - TProjectUserMembershipRoles, - TProjectUserMembershipRolesInsert, - TProjectUserMembershipRolesUpdate - >; - [TableName.ProjectRoles]: Knex.CompositeTableType; - [TableName.ProjectUserAdditionalPrivilege]: Knex.CompositeTableType< - TProjectUserAdditionalPrivilege, - TProjectUserAdditionalPrivilegeInsert, - TProjectUserAdditionalPrivilegeUpdate - >; - [TableName.ProjectKeys]: Knex.CompositeTableType; - [TableName.Secret]: Knex.CompositeTableType; - [TableName.SecretReference]: Knex.CompositeTableType< - TSecretReferences, - TSecretReferencesInsert, - TSecretReferencesUpdate - >; - [TableName.SecretBlindIndex]: Knex.CompositeTableType< - TSecretBlindIndexes, - TSecretBlindIndexesInsert, - TSecretBlindIndexesUpdate - >; - [TableName.SecretVersion]: Knex.CompositeTableType; - [TableName.SecretFolder]: Knex.CompositeTableType; - [TableName.SecretFolderVersion]: Knex.CompositeTableType< - TSecretFolderVersions, - TSecretFolderVersionsInsert, - TSecretFolderVersionsUpdate - >; - [TableName.SecretSharing]: Knex.CompositeTableType; - [TableName.RateLimit]: Knex.CompositeTableType; - [TableName.SecretTag]: Knex.CompositeTableType; - [TableName.SecretImport]: Knex.CompositeTableType; - [TableName.Integration]: Knex.CompositeTableType; - [TableName.Webhook]: Knex.CompositeTableType; - [TableName.ServiceToken]: Knex.CompositeTableType; - [TableName.IntegrationAuth]: Knex.CompositeTableType< - TIntegrationAuths, - TIntegrationAuthsInsert, - TIntegrationAuthsUpdate - >; - [TableName.Identity]: Knex.CompositeTableType; - [TableName.IdentityUniversalAuth]: Knex.CompositeTableType< - TIdentityUniversalAuths, - TIdentityUniversalAuthsInsert, - TIdentityUniversalAuthsUpdate - >; - [TableName.IdentityKubernetesAuth]: Knex.CompositeTableType< - TIdentityKubernetesAuths, - TIdentityKubernetesAuthsInsert, - TIdentityKubernetesAuthsUpdate - >; - [TableName.IdentityGcpAuth]: Knex.CompositeTableType< - TIdentityGcpAuths, - TIdentityGcpAuthsInsert, - TIdentityGcpAuthsUpdate - >; - [TableName.IdentityAwsAuth]: Knex.CompositeTableType< - TIdentityAwsAuths, - TIdentityAwsAuthsInsert, - TIdentityAwsAuthsUpdate - >; - [TableName.IdentityAzureAuth]: Knex.CompositeTableType< - TIdentityAzureAuths, - TIdentityAzureAuthsInsert, - TIdentityAzureAuthsUpdate - >; - [TableName.IdentityUaClientSecret]: Knex.CompositeTableType< - TIdentityUaClientSecrets, - TIdentityUaClientSecretsInsert, - TIdentityUaClientSecretsUpdate - >; - [TableName.IdentityAccessToken]: Knex.CompositeTableType< - TIdentityAccessTokens, - TIdentityAccessTokensInsert, - TIdentityAccessTokensUpdate - >; - [TableName.IdentityOrgMembership]: Knex.CompositeTableType< - TIdentityOrgMemberships, - TIdentityOrgMembershipsInsert, - TIdentityOrgMembershipsUpdate - >; - [TableName.IdentityProjectMembership]: Knex.CompositeTableType< - TIdentityProjectMemberships, - TIdentityProjectMembershipsInsert, - TIdentityProjectMembershipsUpdate - >; - [TableName.IdentityProjectMembershipRole]: Knex.CompositeTableType< - TIdentityProjectMembershipRole, - TIdentityProjectMembershipRoleInsert, - TIdentityProjectMembershipRoleUpdate - >; - [TableName.IdentityProjectAdditionalPrivilege]: Knex.CompositeTableType< - TIdentityProjectAdditionalPrivilege, - TIdentityProjectAdditionalPrivilegeInsert, - TIdentityProjectAdditionalPrivilegeUpdate - >; - - [TableName.AccessApprovalPolicy]: Knex.CompositeTableType< - TAccessApprovalPolicies, - TAccessApprovalPoliciesInsert, - TAccessApprovalPoliciesUpdate - >; - - [TableName.AccessApprovalPolicyApprover]: Knex.CompositeTableType< - TAccessApprovalPoliciesApprovers, - TAccessApprovalPoliciesApproversInsert, - TAccessApprovalPoliciesApproversUpdate - >; - - [TableName.AccessApprovalRequest]: Knex.CompositeTableType< - TAccessApprovalRequests, - TAccessApprovalRequestsInsert, - TAccessApprovalRequestsUpdate - >; - - [TableName.AccessApprovalRequestReviewer]: Knex.CompositeTableType< - TAccessApprovalRequestsReviewers, - TAccessApprovalRequestsReviewersInsert, - TAccessApprovalRequestsReviewersUpdate - >; - - [TableName.ScimToken]: Knex.CompositeTableType; - [TableName.SecretApprovalPolicy]: Knex.CompositeTableType< - TSecretApprovalPolicies, - TSecretApprovalPoliciesInsert, - TSecretApprovalPoliciesUpdate - >; - [TableName.SecretApprovalPolicyApprover]: Knex.CompositeTableType< - TSecretApprovalPoliciesApprovers, - TSecretApprovalPoliciesApproversInsert, - TSecretApprovalPoliciesApproversUpdate - >; - [TableName.SecretApprovalRequest]: Knex.CompositeTableType< - TSecretApprovalRequests, - TSecretApprovalRequestsInsert, - TSecretApprovalRequestsUpdate - >; - [TableName.SecretApprovalRequestReviewer]: Knex.CompositeTableType< - TSecretApprovalRequestsReviewers, - TSecretApprovalRequestsReviewersInsert, - TSecretApprovalRequestsReviewersUpdate - >; - [TableName.SecretApprovalRequestSecret]: Knex.CompositeTableType< - TSecretApprovalRequestsSecrets, - TSecretApprovalRequestsSecretsInsert, - TSecretApprovalRequestsSecretsUpdate - >; - [TableName.SecretApprovalRequestSecretTag]: Knex.CompositeTableType< - TSecretApprovalRequestSecretTags, - TSecretApprovalRequestSecretTagsInsert, - TSecretApprovalRequestSecretTagsUpdate - >; - [TableName.SecretRotation]: Knex.CompositeTableType< - TSecretRotations, - TSecretRotationsInsert, - TSecretRotationsUpdate - >; - [TableName.SecretRotationOutput]: Knex.CompositeTableType< - TSecretRotationOutputs, - TSecretRotationOutputsInsert, - TSecretRotationOutputsUpdate - >; - [TableName.Snapshot]: Knex.CompositeTableType; - [TableName.SnapshotSecret]: Knex.CompositeTableType< - TSecretSnapshotSecrets, - TSecretSnapshotSecretsInsert, - TSecretSnapshotSecretsUpdate - >; - [TableName.SnapshotFolder]: Knex.CompositeTableType< - TSecretSnapshotFolders, - TSecretSnapshotFoldersInsert, - TSecretSnapshotFoldersUpdate - >; - [TableName.DynamicSecret]: Knex.CompositeTableType; - [TableName.DynamicSecretLease]: Knex.CompositeTableType< - TDynamicSecretLeases, - TDynamicSecretLeasesInsert, - TDynamicSecretLeasesUpdate - >; - [TableName.SamlConfig]: Knex.CompositeTableType; - [TableName.OidcConfig]: Knex.CompositeTableType; - [TableName.LdapConfig]: Knex.CompositeTableType; - [TableName.LdapGroupMap]: Knex.CompositeTableType; - [TableName.OrgBot]: Knex.CompositeTableType; - [TableName.AuditLog]: Knex.CompositeTableType; - [TableName.AuditLogStream]: Knex.CompositeTableType< - TAuditLogStreams, - TAuditLogStreamsInsert, - TAuditLogStreamsUpdate - >; - [TableName.GitAppInstallSession]: Knex.CompositeTableType< - TGitAppInstallSessions, - TGitAppInstallSessionsInsert, - TGitAppInstallSessionsUpdate - >; - [TableName.GitAppOrg]: Knex.CompositeTableType; - [TableName.SecretScanningGitRisk]: Knex.CompositeTableType< - TSecretScanningGitRisks, - TSecretScanningGitRisksInsert, - TSecretScanningGitRisksUpdate - >; - [TableName.TrustedIps]: Knex.CompositeTableType; - // Junction tables - [TableName.JnSecretTag]: Knex.CompositeTableType< - TSecretTagJunction, - TSecretTagJunctionInsert, - TSecretTagJunctionUpdate - >; - [TableName.SecretVersionTag]: Knex.CompositeTableType< - TSecretVersionTagJunction, - TSecretVersionTagJunctionInsert, - TSecretVersionTagJunctionUpdate - >; - // KMS service - [TableName.KmsServerRootConfig]: Knex.CompositeTableType< - TKmsRootConfig, - TKmsRootConfigInsert, - TKmsRootConfigUpdate - >; - [TableName.KmsKey]: Knex.CompositeTableType; - [TableName.KmsKeyVersion]: Knex.CompositeTableType; - } -} - declare module "knex" { namespace Knex { interface QueryInterface { @@ -604,3 +288,363 @@ declare module "knex" { } } } + +declare module "knex/types/tables" { + interface Tables { + [TableName.Users]: KnexOriginal.CompositeTableType; + [TableName.Groups]: KnexOriginal.CompositeTableType; + [TableName.CertificateAuthority]: KnexOriginal.CompositeTableType< + TCertificateAuthorities, + TCertificateAuthoritiesInsert, + TCertificateAuthoritiesUpdate + >; + [TableName.CertificateAuthorityCert]: KnexOriginal.CompositeTableType< + TCertificateAuthorityCerts, + TCertificateAuthorityCertsInsert, + TCertificateAuthorityCertsUpdate + >; + [TableName.CertificateAuthoritySecret]: KnexOriginal.CompositeTableType< + TCertificateAuthoritySecret, + TCertificateAuthoritySecretInsert, + TCertificateAuthoritySecretUpdate + >; + [TableName.CertificateAuthorityCrl]: KnexOriginal.CompositeTableType< + TCertificateAuthorityCrl, + TCertificateAuthorityCrlInsert, + TCertificateAuthorityCrlUpdate + >; + [TableName.Certificate]: KnexOriginal.CompositeTableType; + [TableName.CertificateBody]: KnexOriginal.CompositeTableType< + TCertificateBodies, + TCertificateBodiesInsert, + TCertificateBodiesUpdate + >; + [TableName.CertificateSecret]: KnexOriginal.CompositeTableType< + TCertificateSecrets, + TCertificateSecretsInsert, + TCertificateSecretsUpdate + >; + [TableName.UserGroupMembership]: KnexOriginal.CompositeTableType< + TUserGroupMembership, + TUserGroupMembershipInsert, + TUserGroupMembershipUpdate + >; + [TableName.GroupProjectMembership]: KnexOriginal.CompositeTableType< + TGroupProjectMemberships, + TGroupProjectMembershipsInsert, + TGroupProjectMembershipsUpdate + >; + [TableName.GroupProjectMembershipRole]: KnexOriginal.CompositeTableType< + TGroupProjectMembershipRoles, + TGroupProjectMembershipRolesInsert, + TGroupProjectMembershipRolesUpdate + >; + [TableName.UserAliases]: KnexOriginal.CompositeTableType; + [TableName.UserEncryptionKey]: KnexOriginal.CompositeTableType< + TUserEncryptionKeys, + TUserEncryptionKeysInsert, + TUserEncryptionKeysUpdate + >; + [TableName.AuthTokens]: KnexOriginal.CompositeTableType; + [TableName.AuthTokenSession]: KnexOriginal.CompositeTableType< + TAuthTokenSessions, + TAuthTokenSessionsInsert, + TAuthTokenSessionsUpdate + >; + [TableName.BackupPrivateKey]: KnexOriginal.CompositeTableType< + TBackupPrivateKey, + TBackupPrivateKeyInsert, + TBackupPrivateKeyUpdate + >; + [TableName.Organization]: KnexOriginal.CompositeTableType< + TOrganizations, + TOrganizationsInsert, + TOrganizationsUpdate + >; + [TableName.OrgMembership]: KnexOriginal.CompositeTableType< + TOrgMemberships, + TOrgMembershipsInsert, + TOrgMembershipsUpdate + >; + [TableName.OrgRoles]: KnexOriginal.CompositeTableType; + [TableName.IncidentContact]: KnexOriginal.CompositeTableType< + TIncidentContacts, + TIncidentContactsInsert, + TIncidentContactsUpdate + >; + [TableName.UserAction]: KnexOriginal.CompositeTableType; + [TableName.SuperAdmin]: KnexOriginal.CompositeTableType; + [TableName.ApiKey]: KnexOriginal.CompositeTableType; + [TableName.Project]: KnexOriginal.CompositeTableType; + [TableName.ProjectMembership]: KnexOriginal.CompositeTableType< + TProjectMemberships, + TProjectMembershipsInsert, + TProjectMembershipsUpdate + >; + [TableName.Environment]: KnexOriginal.CompositeTableType< + TProjectEnvironments, + TProjectEnvironmentsInsert, + TProjectEnvironmentsUpdate + >; + [TableName.ProjectBot]: KnexOriginal.CompositeTableType; + [TableName.ProjectUserMembershipRole]: KnexOriginal.CompositeTableType< + TProjectUserMembershipRoles, + TProjectUserMembershipRolesInsert, + TProjectUserMembershipRolesUpdate + >; + [TableName.ProjectRoles]: KnexOriginal.CompositeTableType; + [TableName.ProjectUserAdditionalPrivilege]: KnexOriginal.CompositeTableType< + TProjectUserAdditionalPrivilege, + TProjectUserAdditionalPrivilegeInsert, + TProjectUserAdditionalPrivilegeUpdate + >; + [TableName.ProjectKeys]: KnexOriginal.CompositeTableType; + [TableName.Secret]: KnexOriginal.CompositeTableType; + [TableName.SecretReference]: KnexOriginal.CompositeTableType< + TSecretReferences, + TSecretReferencesInsert, + TSecretReferencesUpdate + >; + [TableName.SecretBlindIndex]: KnexOriginal.CompositeTableType< + TSecretBlindIndexes, + TSecretBlindIndexesInsert, + TSecretBlindIndexesUpdate + >; + [TableName.SecretVersion]: KnexOriginal.CompositeTableType< + TSecretVersions, + TSecretVersionsInsert, + TSecretVersionsUpdate + >; + [TableName.SecretFolder]: KnexOriginal.CompositeTableType< + TSecretFolders, + TSecretFoldersInsert, + TSecretFoldersUpdate + >; + [TableName.SecretFolderVersion]: KnexOriginal.CompositeTableType< + TSecretFolderVersions, + TSecretFolderVersionsInsert, + TSecretFolderVersionsUpdate + >; + [TableName.SecretSharing]: KnexOriginal.CompositeTableType< + TSecretSharing, + TSecretSharingInsert, + TSecretSharingUpdate + >; + [TableName.RateLimit]: KnexOriginal.CompositeTableType; + [TableName.SecretTag]: KnexOriginal.CompositeTableType; + [TableName.SecretImport]: KnexOriginal.CompositeTableType< + TSecretImports, + TSecretImportsInsert, + TSecretImportsUpdate + >; + [TableName.Integration]: KnexOriginal.CompositeTableType; + [TableName.Webhook]: KnexOriginal.CompositeTableType; + [TableName.ServiceToken]: KnexOriginal.CompositeTableType< + TServiceTokens, + TServiceTokensInsert, + TServiceTokensUpdate + >; + [TableName.IntegrationAuth]: KnexOriginal.CompositeTableType< + TIntegrationAuths, + TIntegrationAuthsInsert, + TIntegrationAuthsUpdate + >; + [TableName.Identity]: KnexOriginal.CompositeTableType; + [TableName.IdentityUniversalAuth]: KnexOriginal.CompositeTableType< + TIdentityUniversalAuths, + TIdentityUniversalAuthsInsert, + TIdentityUniversalAuthsUpdate + >; + [TableName.IdentityKubernetesAuth]: KnexOriginal.CompositeTableType< + TIdentityKubernetesAuths, + TIdentityKubernetesAuthsInsert, + TIdentityKubernetesAuthsUpdate + >; + [TableName.IdentityGcpAuth]: KnexOriginal.CompositeTableType< + TIdentityGcpAuths, + TIdentityGcpAuthsInsert, + TIdentityGcpAuthsUpdate + >; + [TableName.IdentityAwsAuth]: KnexOriginal.CompositeTableType< + TIdentityAwsAuths, + TIdentityAwsAuthsInsert, + TIdentityAwsAuthsUpdate + >; + [TableName.IdentityAzureAuth]: KnexOriginal.CompositeTableType< + TIdentityAzureAuths, + TIdentityAzureAuthsInsert, + TIdentityAzureAuthsUpdate + >; + [TableName.IdentityUaClientSecret]: KnexOriginal.CompositeTableType< + TIdentityUaClientSecrets, + TIdentityUaClientSecretsInsert, + TIdentityUaClientSecretsUpdate + >; + [TableName.IdentityAccessToken]: KnexOriginal.CompositeTableType< + TIdentityAccessTokens, + TIdentityAccessTokensInsert, + TIdentityAccessTokensUpdate + >; + [TableName.IdentityOrgMembership]: KnexOriginal.CompositeTableType< + TIdentityOrgMemberships, + TIdentityOrgMembershipsInsert, + TIdentityOrgMembershipsUpdate + >; + [TableName.IdentityProjectMembership]: KnexOriginal.CompositeTableType< + TIdentityProjectMemberships, + TIdentityProjectMembershipsInsert, + TIdentityProjectMembershipsUpdate + >; + [TableName.IdentityProjectMembershipRole]: KnexOriginal.CompositeTableType< + TIdentityProjectMembershipRole, + TIdentityProjectMembershipRoleInsert, + TIdentityProjectMembershipRoleUpdate + >; + [TableName.IdentityProjectAdditionalPrivilege]: KnexOriginal.CompositeTableType< + TIdentityProjectAdditionalPrivilege, + TIdentityProjectAdditionalPrivilegeInsert, + TIdentityProjectAdditionalPrivilegeUpdate + >; + + [TableName.AccessApprovalPolicy]: KnexOriginal.CompositeTableType< + TAccessApprovalPolicies, + TAccessApprovalPoliciesInsert, + TAccessApprovalPoliciesUpdate + >; + + [TableName.AccessApprovalPolicyApprover]: KnexOriginal.CompositeTableType< + TAccessApprovalPoliciesApprovers, + TAccessApprovalPoliciesApproversInsert, + TAccessApprovalPoliciesApproversUpdate + >; + + [TableName.AccessApprovalRequest]: KnexOriginal.CompositeTableType< + TAccessApprovalRequests, + TAccessApprovalRequestsInsert, + TAccessApprovalRequestsUpdate + >; + + [TableName.AccessApprovalRequestReviewer]: KnexOriginal.CompositeTableType< + TAccessApprovalRequestsReviewers, + TAccessApprovalRequestsReviewersInsert, + TAccessApprovalRequestsReviewersUpdate + >; + + [TableName.ScimToken]: KnexOriginal.CompositeTableType; + [TableName.SecretApprovalPolicy]: KnexOriginal.CompositeTableType< + TSecretApprovalPolicies, + TSecretApprovalPoliciesInsert, + TSecretApprovalPoliciesUpdate + >; + [TableName.SecretApprovalPolicyApprover]: KnexOriginal.CompositeTableType< + TSecretApprovalPoliciesApprovers, + TSecretApprovalPoliciesApproversInsert, + TSecretApprovalPoliciesApproversUpdate + >; + [TableName.SecretApprovalRequest]: KnexOriginal.CompositeTableType< + TSecretApprovalRequests, + TSecretApprovalRequestsInsert, + TSecretApprovalRequestsUpdate + >; + [TableName.SecretApprovalRequestReviewer]: KnexOriginal.CompositeTableType< + TSecretApprovalRequestsReviewers, + TSecretApprovalRequestsReviewersInsert, + TSecretApprovalRequestsReviewersUpdate + >; + [TableName.SecretApprovalRequestSecret]: KnexOriginal.CompositeTableType< + TSecretApprovalRequestsSecrets, + TSecretApprovalRequestsSecretsInsert, + TSecretApprovalRequestsSecretsUpdate + >; + [TableName.SecretApprovalRequestSecretTag]: KnexOriginal.CompositeTableType< + TSecretApprovalRequestSecretTags, + TSecretApprovalRequestSecretTagsInsert, + TSecretApprovalRequestSecretTagsUpdate + >; + [TableName.SecretRotation]: KnexOriginal.CompositeTableType< + TSecretRotations, + TSecretRotationsInsert, + TSecretRotationsUpdate + >; + [TableName.SecretRotationOutput]: KnexOriginal.CompositeTableType< + TSecretRotationOutputs, + TSecretRotationOutputsInsert, + TSecretRotationOutputsUpdate + >; + [TableName.Snapshot]: KnexOriginal.CompositeTableType< + TSecretSnapshots, + TSecretSnapshotsInsert, + TSecretSnapshotsUpdate + >; + [TableName.SnapshotSecret]: KnexOriginal.CompositeTableType< + TSecretSnapshotSecrets, + TSecretSnapshotSecretsInsert, + TSecretSnapshotSecretsUpdate + >; + [TableName.SnapshotFolder]: KnexOriginal.CompositeTableType< + TSecretSnapshotFolders, + TSecretSnapshotFoldersInsert, + TSecretSnapshotFoldersUpdate + >; + [TableName.DynamicSecret]: KnexOriginal.CompositeTableType< + TDynamicSecrets, + TDynamicSecretsInsert, + TDynamicSecretsUpdate + >; + [TableName.DynamicSecretLease]: KnexOriginal.CompositeTableType< + TDynamicSecretLeases, + TDynamicSecretLeasesInsert, + TDynamicSecretLeasesUpdate + >; + [TableName.SamlConfig]: KnexOriginal.CompositeTableType; + [TableName.OidcConfig]: Knex.CompositeTableType; + [TableName.LdapConfig]: KnexOriginal.CompositeTableType; + [TableName.LdapGroupMap]: KnexOriginal.CompositeTableType< + TLdapGroupMaps, + TLdapGroupMapsInsert, + TLdapGroupMapsUpdate + >; + [TableName.OrgBot]: KnexOriginal.CompositeTableType; + [TableName.AuditLog]: KnexOriginal.CompositeTableType; + [TableName.AuditLogStream]: KnexOriginal.CompositeTableType< + TAuditLogStreams, + TAuditLogStreamsInsert, + TAuditLogStreamsUpdate + >; + [TableName.GitAppInstallSession]: KnexOriginal.CompositeTableType< + TGitAppInstallSessions, + TGitAppInstallSessionsInsert, + TGitAppInstallSessionsUpdate + >; + [TableName.GitAppOrg]: KnexOriginal.CompositeTableType; + [TableName.SecretScanningGitRisk]: KnexOriginal.CompositeTableType< + TSecretScanningGitRisks, + TSecretScanningGitRisksInsert, + TSecretScanningGitRisksUpdate + >; + [TableName.TrustedIps]: KnexOriginal.CompositeTableType; + // Junction tables + [TableName.JnSecretTag]: KnexOriginal.CompositeTableType< + TSecretTagJunction, + TSecretTagJunctionInsert, + TSecretTagJunctionUpdate + >; + [TableName.SecretVersionTag]: KnexOriginal.CompositeTableType< + TSecretVersionTagJunction, + TSecretVersionTagJunctionInsert, + TSecretVersionTagJunctionUpdate + >; + // KMS service + [TableName.KmsServerRootConfig]: KnexOriginal.CompositeTableType< + TKmsRootConfig, + TKmsRootConfigInsert, + TKmsRootConfigUpdate + >; + [TableName.KmsKey]: KnexOriginal.CompositeTableType; + [TableName.KmsKeyVersion]: KnexOriginal.CompositeTableType< + TKmsKeyVersions, + TKmsKeyVersionsInsert, + TKmsKeyVersionsUpdate + >; + } +}