"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.connectionFieldsMap = void 0;
// ============ Connection Fields Map ============
exports.connectionFieldsMap = {
    Database: {
        schemas: 'Schema',
        tables: 'Table',
        checkConstraints: 'CheckConstraint',
        fields: 'Field',
        foreignKeyConstraints: 'ForeignKeyConstraint',
        fullTextSearches: 'FullTextSearch',
        indices: 'Index',
        policies: 'Policy',
        primaryKeyConstraints: 'PrimaryKeyConstraint',
        schemaGrants: 'SchemaGrant',
        tableGrants: 'TableGrant',
        triggerFunctions: 'TriggerFunction',
        triggers: 'Trigger',
        uniqueConstraints: 'UniqueConstraint',
        views: 'View',
        viewGrants: 'ViewGrant',
        viewRules: 'ViewRule',
        defaultPrivileges: 'DefaultPrivilege',
        enums: 'Enum',
        embeddingChunks: 'EmbeddingChunk',
        spatialRelations: 'SpatialRelation',
        functions: 'Function',
        partitions: 'Partition',
        databaseTransfers: 'DatabaseTransfer',
        apis: 'Api',
        apiModules: 'ApiModule',
        apiSchemas: 'ApiSchema',
        sites: 'Site',
        apps: 'App',
        domains: 'Domain',
        siteMetadata: 'SiteMetadatum',
        siteModules: 'SiteModule',
        siteThemes: 'SiteTheme',
        apiSettings: 'ApiSetting',
        corsSettings: 'CorsSetting',
        connectedAccountsModules: 'ConnectedAccountsModule',
        cryptoAddressesModules: 'CryptoAddressesModule',
        cryptoAuthModules: 'CryptoAuthModule',
        defaultIdsModules: 'DefaultIdsModule',
        denormalizedTableFields: 'DenormalizedTableField',
        emailsModules: 'EmailsModule',
        configSecretsUserModules: 'ConfigSecretsUserModule',
        invitesModules: 'InvitesModule',
        eventsModules: 'EventsModule',
        limitsModules: 'LimitsModule',
        membershipTypesModules: 'MembershipTypesModule',
        membershipsModules: 'MembershipsModule',
        permissionsModules: 'PermissionsModule',
        phoneNumbersModules: 'PhoneNumbersModule',
        profilesModules: 'ProfilesModule',
        userStateModules: 'UserStateModule',
        sessionsModules: 'SessionsModule',
        userAuthModules: 'UserAuthModule',
        usersModules: 'UsersModule',
        secureTableProvisions: 'SecureTableProvision',
        relationProvisions: 'RelationProvision',
        blueprints: 'Blueprint',
        blueprintConstructions: 'BlueprintConstruction',
        storageModules: 'StorageModule',
        entityTypeProvisions: 'EntityTypeProvision',
        sessionSecretsModules: 'SessionSecretsModule',
        webauthnCredentialsModules: 'WebauthnCredentialsModule',
        webauthnAuthModules: 'WebauthnAuthModule',
        identityProvidersModules: 'IdentityProvidersModule',
        notificationsModules: 'NotificationsModule',
        realtimeModules: 'RealtimeModule',
        configSecretsOrgModules: 'ConfigSecretsOrgModule',
        inferenceLogModules: 'InferenceLogModule',
        computeLogModules: 'ComputeLogModule',
        transferLogModules: 'TransferLogModule',
        storageLogModules: 'StorageLogModule',
        dbUsageModules: 'DbUsageModule',
        agentModules: 'AgentModule',
        merkleStoreModules: 'MerkleStoreModule',
        graphModules: 'GraphModule',
        namespaceModules: 'NamespaceModule',
        functionModules: 'FunctionModule',
        databaseProvisionModules: 'DatabaseProvisionModule',
    },
    Schema: {
        tables: 'Table',
        schemaGrants: 'SchemaGrant',
        views: 'View',
        defaultPrivileges: 'DefaultPrivilege',
        enums: 'Enum',
        functions: 'Function',
        apiSchemas: 'ApiSchema',
        sessionSecretsModules: 'SessionSecretsModule',
        identityProvidersModulesByPrivateSchemaId: 'IdentityProvidersModule',
        identityProvidersModules: 'IdentityProvidersModule',
        realtimeModulesByPrivateSchemaId: 'RealtimeModule',
        realtimeModules: 'RealtimeModule',
        realtimeModulesBySubscriptionsSchemaId: 'RealtimeModule',
        configSecretsOrgModules: 'ConfigSecretsOrgModule',
        merkleStoreModulesByPrivateSchemaId: 'MerkleStoreModule',
    },
    Table: {
        checkConstraints: 'CheckConstraint',
        fields: 'Field',
        foreignKeyConstraints: 'ForeignKeyConstraint',
        fullTextSearches: 'FullTextSearch',
        indices: 'Index',
        policies: 'Policy',
        primaryKeyConstraints: 'PrimaryKeyConstraint',
        tableGrants: 'TableGrant',
        triggers: 'Trigger',
        uniqueConstraints: 'UniqueConstraint',
        views: 'View',
        viewTables: 'ViewTable',
        embeddingChunksByChunksTableId: 'EmbeddingChunk',
        embeddingChunks: 'EmbeddingChunk',
        spatialRelationsByRefTableId: 'SpatialRelation',
        spatialRelations: 'SpatialRelation',
        secureTableProvisions: 'SecureTableProvision',
        relationProvisionsBySourceTableId: 'RelationProvision',
        relationProvisionsByTargetTableId: 'RelationProvision',
        sessionSecretsModulesBySessionsTableId: 'SessionSecretsModule',
        sessionSecretsModules: 'SessionSecretsModule',
        identityProvidersModules: 'IdentityProvidersModule',
        realtimeModulesByChangeLogTableId: 'RealtimeModule',
        realtimeModulesByListenerNodeTableId: 'RealtimeModule',
        realtimeModulesBySourceRegistryTableId: 'RealtimeModule',
        configSecretsOrgModules: 'ConfigSecretsOrgModule',
    },
    Field: {
        spatialRelations: 'SpatialRelation',
        spatialRelationsByRefFieldId: 'SpatialRelation',
    },
    View: {
        viewTables: 'ViewTable',
        viewGrants: 'ViewGrant',
        viewRules: 'ViewRule',
    },
    MerkleStoreModule: {
        graphModules: 'GraphModule',
    },
    Api: {
        apiModules: 'ApiModule',
        apiSchemas: 'ApiSchema',
        domains: 'Domain',
        corsSettings: 'CorsSetting',
    },
    Site: {
        domains: 'Domain',
        siteMetadata: 'SiteMetadatum',
        siteModules: 'SiteModule',
        siteThemes: 'SiteTheme',
    },
    Blueprint: {
        blueprintConstructions: 'BlueprintConstruction',
    },
    BlueprintTemplate: {
        blueprintTemplatesByForkedFromId: 'BlueprintTemplate',
        blueprintsByTemplateId: 'Blueprint',
    },
    AppLimitDefault: {
        appLimitCreditsByDefaultLimitId: 'AppLimitCredit',
        appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem',
    },
    OrgLimitDefault: {
        orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit',
    },
    AppLimitCreditCode: {
        appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem',
        appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption',
    },
    User: {
        ownedDatabases: 'Database',
        appAdminGrantsByActorId: 'AppAdminGrant',
        appAdminGrantsByGrantorId: 'AppAdminGrant',
        appOwnerGrantsByActorId: 'AppOwnerGrant',
        appOwnerGrantsByGrantorId: 'AppOwnerGrant',
        appGrantsByActorId: 'AppGrant',
        appGrantsByGrantorId: 'AppGrant',
        orgMembershipsByActorId: 'OrgMembership',
        orgMembershipsByEntityId: 'OrgMembership',
        orgMembersByActorId: 'OrgMember',
        orgMembersByEntityId: 'OrgMember',
        orgAdminGrantsByActorId: 'OrgAdminGrant',
        orgAdminGrantsByEntityId: 'OrgAdminGrant',
        orgAdminGrantsByGrantorId: 'OrgAdminGrant',
        orgOwnerGrantsByActorId: 'OrgOwnerGrant',
        orgOwnerGrantsByEntityId: 'OrgOwnerGrant',
        orgOwnerGrantsByGrantorId: 'OrgOwnerGrant',
        orgMemberProfilesByActorId: 'OrgMemberProfile',
        orgMemberProfilesByEntityId: 'OrgMemberProfile',
        orgGrantsByActorId: 'OrgGrant',
        orgGrantsByEntityId: 'OrgGrant',
        orgGrantsByGrantorId: 'OrgGrant',
        parentOrgChartEdges: 'OrgChartEdge',
        orgChartEdgesByEntityId: 'OrgChartEdge',
        childOrgChartEdges: 'OrgChartEdge',
        parentOrgChartEdgeGrants: 'OrgChartEdgeGrant',
        orgChartEdgeGrantsByEntityId: 'OrgChartEdgeGrant',
        orgChartEdgeGrantsByGrantorId: 'OrgChartEdgeGrant',
        childOrgChartEdgeGrants: 'OrgChartEdgeGrant',
        orgPermissionDefaultsByEntityId: 'OrgPermissionDefault',
        appLimitsByActorId: 'AppLimit',
        appLimitCreditsByActorId: 'AppLimitCredit',
        orgLimitsByActorId: 'OrgLimit',
        orgLimitsByEntityId: 'OrgLimit',
        orgLimitCreditsByActorId: 'OrgLimitCredit',
        orgLimitCreditsByEntityId: 'OrgLimitCredit',
        orgLimitAggregatesByEntityId: 'OrgLimitAggregate',
        orgLimitWarningsByEntityId: 'OrgLimitWarning',
        ownedEmails: 'Email',
        ownedPhoneNumbers: 'PhoneNumber',
        ownedCryptoAddresses: 'CryptoAddress',
        ownedWebauthnCredentials: 'WebauthnCredential',
        appInvitesBySenderId: 'AppInvite',
        appClaimedInvitesByReceiverId: 'AppClaimedInvite',
        appClaimedInvitesBySenderId: 'AppClaimedInvite',
        orgInvitesByEntityId: 'OrgInvite',
        orgInvitesByReceiverId: 'OrgInvite',
        orgInvitesBySenderId: 'OrgInvite',
        orgClaimedInvitesByEntityId: 'OrgClaimedInvite',
        orgClaimedInvitesByReceiverId: 'OrgClaimedInvite',
        orgClaimedInvitesBySenderId: 'OrgClaimedInvite',
        auditLogAuthsByActorId: 'AuditLogAuth',
    },
};
