@nest-boot/auth 8.1.0 → 8.2.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/README.md +247 -142
- package/dist/admin/admin.providers.d.ts +3 -0
- package/dist/admin/admin.providers.js +17 -0
- package/dist/admin/admin.providers.js.map +1 -0
- package/dist/admin/connections/system-account.connection-definition.d.ts +9 -0
- package/dist/admin/connections/system-account.connection-definition.js +41 -0
- package/dist/admin/connections/system-account.connection-definition.js.map +1 -0
- package/dist/admin/enums/system-account-permission.enum.d.ts +4 -0
- package/dist/admin/enums/system-account-permission.enum.js +7 -0
- package/dist/admin/enums/system-account-permission.enum.js.map +1 -0
- package/dist/admin/inputs/ban-user.input.js.map +1 -0
- package/dist/admin/inputs/create-system-account.input.d.ts +8 -0
- package/dist/admin/inputs/create-system-account.input.js +34 -0
- package/dist/admin/inputs/create-system-account.input.js.map +1 -0
- package/dist/admin/inputs/create-user.input.d.ts +15 -0
- package/dist/admin/inputs/create-user.input.js +56 -0
- package/dist/admin/inputs/create-user.input.js.map +1 -0
- package/dist/admin/inputs/set-user-password.input.js.map +1 -0
- package/dist/admin/inputs/set-user-permissions.input.d.ts +6 -0
- package/dist/admin/inputs/set-user-permissions.input.js +27 -0
- package/dist/admin/inputs/set-user-permissions.input.js.map +1 -0
- package/dist/admin/inputs/set-user-roles.input.d.ts +6 -0
- package/dist/admin/inputs/set-user-roles.input.js +27 -0
- package/dist/admin/inputs/set-user-roles.input.js.map +1 -0
- package/dist/admin/inputs/update-system-account.input.d.ts +10 -0
- package/dist/admin/inputs/update-system-account.input.js +41 -0
- package/dist/admin/inputs/update-system-account.input.js.map +1 -0
- package/dist/admin/inputs/update-user.input.js.map +1 -0
- package/dist/admin/inputs/user-id.input.js.map +1 -0
- package/dist/admin/interfaces/auth-module-admin-options.interface.d.ts +5 -0
- package/dist/admin/interfaces/auth-module-admin-options.interface.js +2 -0
- package/dist/admin/interfaces/auth-module-admin-options.interface.js.map +1 -0
- package/dist/admin/interfaces/ban-user-options.interface.js.map +1 -0
- package/dist/admin/interfaces/create-user-options.interface.js.map +1 -0
- package/dist/admin/interfaces/impersonation-options.interface.js.map +1 -0
- package/dist/admin/interfaces/update-user-options.interface.js.map +1 -0
- package/dist/admin/objects/ban-user-payload.object.js.map +1 -0
- package/dist/admin/objects/create-user-payload.object.js.map +1 -0
- package/dist/admin/objects/delete-user-payload.object.js.map +1 -0
- package/dist/admin/objects/set-user-permissions-payload.object.js.map +1 -0
- package/dist/admin/objects/set-user-roles-payload.object.js.map +1 -0
- package/dist/admin/objects/system-account-permission-option.object.d.ts +10 -0
- package/dist/admin/objects/system-account-permission-option.object.js +37 -0
- package/dist/admin/objects/system-account-permission-option.object.js.map +1 -0
- package/dist/admin/objects/unban-user-payload.object.js.map +1 -0
- package/dist/admin/objects/update-user-payload.object.js.map +1 -0
- package/dist/admin/objects/user-permission-option.object.d.ts +8 -0
- package/dist/admin/objects/user-permission-option.object.js +31 -0
- package/dist/admin/objects/user-permission-option.object.js.map +1 -0
- package/dist/admin/objects/user-role-option.object.d.ts +8 -0
- package/dist/admin/objects/user-role-option.object.js +31 -0
- package/dist/admin/objects/user-role-option.object.js.map +1 -0
- package/dist/admin/resolvers/admin-session.resolver.d.ts +38 -0
- package/dist/admin/resolvers/admin-session.resolver.js +99 -0
- package/dist/admin/resolvers/admin-session.resolver.js.map +1 -0
- package/dist/admin/resolvers/admin-user.resolver.d.ts +104 -0
- package/dist/admin/resolvers/admin-user.resolver.js +247 -0
- package/dist/admin/resolvers/admin-user.resolver.js.map +1 -0
- package/dist/admin/resolvers/system-account.resolver.d.ts +60 -0
- package/dist/admin/resolvers/system-account.resolver.js +145 -0
- package/dist/admin/resolvers/system-account.resolver.js.map +1 -0
- package/dist/admin/services/system-account.service.d.ts +62 -0
- package/dist/admin/services/system-account.service.js +177 -0
- package/dist/admin/services/system-account.service.js.map +1 -0
- package/dist/admin/utils/assert-system-account-administrator.util.d.ts +8 -0
- package/dist/admin/utils/assert-system-account-administrator.util.js +27 -0
- package/dist/admin/utils/assert-system-account-administrator.util.js.map +1 -0
- package/dist/api-key/api-key.providers.d.ts +3 -0
- package/dist/api-key/api-key.providers.js +30 -0
- package/dist/api-key/api-key.providers.js.map +1 -0
- package/dist/api-key/connections/create-api-key-connection.d.ts +14 -0
- package/dist/api-key/connections/create-api-key-connection.js +91 -0
- package/dist/api-key/connections/create-api-key-connection.js.map +1 -0
- package/dist/api-key/connections/system-api-key.connection-definition.d.ts +12 -0
- package/dist/api-key/connections/system-api-key.connection-definition.js +29 -0
- package/dist/api-key/connections/system-api-key.connection-definition.js.map +1 -0
- package/dist/api-key/connections/user-api-key.connection-definition.d.ts +12 -0
- package/dist/api-key/connections/user-api-key.connection-definition.js +29 -0
- package/dist/api-key/connections/user-api-key.connection-definition.js.map +1 -0
- package/dist/api-key/connections/workspace-api-key.connection-definition.d.ts +12 -0
- package/dist/api-key/connections/workspace-api-key.connection-definition.js +29 -0
- package/dist/api-key/connections/workspace-api-key.connection-definition.js.map +1 -0
- package/dist/api-key/constants/system-account.constants.d.ts +2 -0
- package/dist/api-key/constants/system-account.constants.js +10 -0
- package/dist/api-key/constants/system-account.constants.js.map +1 -0
- package/dist/api-key/decorators/current-api-key.decorator.js.map +1 -0
- package/dist/api-key/entities/api-key.entity-schema.d.ts +19 -0
- package/dist/api-key/entities/api-key.entity-schema.js +85 -0
- package/dist/api-key/entities/api-key.entity-schema.js.map +1 -0
- package/dist/api-key/entities/api-key.entity.d.ts +88 -0
- package/dist/api-key/entities/api-key.entity.js +121 -0
- package/dist/api-key/entities/api-key.entity.js.map +1 -0
- package/dist/api-key/entities/system-account.entity.d.ts +24 -0
- package/dist/api-key/entities/system-account.entity.js +101 -0
- package/dist/api-key/entities/system-account.entity.js.map +1 -0
- package/dist/api-key/enums/system-api-key-permission.enum.d.ts +3 -0
- package/dist/api-key/enums/system-api-key-permission.enum.js +6 -0
- package/dist/api-key/enums/system-api-key-permission.enum.js.map +1 -0
- package/dist/api-key/enums/user-api-key-permission.enum.js +11 -0
- package/dist/api-key/enums/user-api-key-permission.enum.js.map +1 -0
- package/dist/api-key/enums/workspace-api-key-permission.enum.d.ts +4 -0
- package/dist/api-key/enums/workspace-api-key-permission.enum.js +11 -0
- package/dist/api-key/enums/workspace-api-key-permission.enum.js.map +1 -0
- package/dist/api-key/inputs/create-system-api-key.input.d.ts +16 -0
- package/dist/api-key/inputs/create-system-api-key.input.js +62 -0
- package/dist/api-key/inputs/create-system-api-key.input.js.map +1 -0
- package/dist/api-key/inputs/create-user-api-key.input.js.map +1 -0
- package/dist/api-key/inputs/create-workspace-api-key.input.d.ts +16 -0
- package/dist/api-key/inputs/create-workspace-api-key.input.js +62 -0
- package/dist/api-key/inputs/create-workspace-api-key.input.js.map +1 -0
- package/dist/api-key/inputs/update-system-api-key.input.d.ts +12 -0
- package/dist/api-key/inputs/update-system-api-key.input.js +43 -0
- package/dist/api-key/inputs/update-system-api-key.input.js.map +1 -0
- package/dist/api-key/inputs/update-user-api-key.input.d.ts +12 -0
- package/dist/api-key/inputs/update-user-api-key.input.js +43 -0
- package/dist/api-key/inputs/update-user-api-key.input.js.map +1 -0
- package/dist/api-key/inputs/update-workspace-api-key.input.d.ts +12 -0
- package/dist/api-key/inputs/update-workspace-api-key.input.js +43 -0
- package/dist/api-key/inputs/update-workspace-api-key.input.js.map +1 -0
- package/dist/api-key/interceptors/api-key-usage.interceptor.d.ts +19 -0
- package/dist/api-key/interceptors/api-key-usage.interceptor.js +46 -0
- package/dist/api-key/interceptors/api-key-usage.interceptor.js.map +1 -0
- package/dist/api-key/interfaces/auth-module-api-key-options.interface.d.ts +13 -0
- package/dist/api-key/interfaces/auth-module-api-key-options.interface.js.map +1 -0
- package/dist/api-key/interfaces/auth-module-api-key-scope-options.interface.d.ts +11 -0
- package/dist/api-key/interfaces/auth-module-api-key-scope-options.interface.js.map +1 -0
- package/dist/api-key/interfaces/create-api-key-options.interface.js.map +1 -0
- package/dist/api-key/interfaces/create-system-api-key-options.interface.d.ts +6 -0
- package/dist/api-key/interfaces/create-system-api-key-options.interface.js +2 -0
- package/dist/api-key/interfaces/create-system-api-key-options.interface.js.map +1 -0
- package/dist/api-key/interfaces/create-workspace-api-key-options.interface.d.ts +7 -0
- package/dist/api-key/interfaces/create-workspace-api-key-options.interface.js +2 -0
- package/dist/api-key/interfaces/create-workspace-api-key-options.interface.js.map +1 -0
- package/dist/api-key/interfaces/created-api-key.interface.d.ts +8 -0
- package/dist/api-key/interfaces/created-api-key.interface.js.map +1 -0
- package/dist/api-key/interfaces/system-api-key-validation.interface.d.ts +8 -0
- package/dist/api-key/interfaces/system-api-key-validation.interface.js +2 -0
- package/dist/api-key/interfaces/system-api-key-validation.interface.js.map +1 -0
- package/dist/api-key/interfaces/update-api-key-options.interface.d.ts +12 -0
- package/dist/api-key/interfaces/update-api-key-options.interface.js.map +1 -0
- package/dist/api-key/interfaces/user-api-key-validation.interface.d.ts +11 -0
- package/dist/api-key/interfaces/user-api-key-validation.interface.js.map +1 -0
- package/dist/api-key/interfaces/workspace-api-key-validation.interface.d.ts +17 -0
- package/dist/api-key/interfaces/workspace-api-key-validation.interface.js +2 -0
- package/dist/api-key/interfaces/workspace-api-key-validation.interface.js.map +1 -0
- package/dist/api-key/objects/api-key.object.d.ts +76 -0
- package/dist/api-key/objects/api-key.object.js +162 -0
- package/dist/api-key/objects/api-key.object.js.map +1 -0
- package/dist/api-key/objects/create-system-api-key-result.object.d.ts +6 -0
- package/dist/api-key/objects/create-system-api-key-result.object.js +29 -0
- package/dist/api-key/objects/create-system-api-key-result.object.js.map +1 -0
- package/dist/api-key/objects/create-user-api-key-result.object.d.ts +6 -0
- package/dist/api-key/objects/create-user-api-key-result.object.js +29 -0
- package/dist/api-key/objects/create-user-api-key-result.object.js.map +1 -0
- package/dist/api-key/objects/create-workspace-api-key-result.object.d.ts +6 -0
- package/dist/api-key/objects/create-workspace-api-key-result.object.js +29 -0
- package/dist/api-key/objects/create-workspace-api-key-result.object.js.map +1 -0
- package/dist/api-key/objects/system-api-key-permission-option.object.d.ts +10 -0
- package/dist/api-key/objects/system-api-key-permission-option.object.js +37 -0
- package/dist/api-key/objects/system-api-key-permission-option.object.js.map +1 -0
- package/dist/api-key/objects/system-api-key.object.d.ts +20 -0
- package/dist/api-key/objects/system-api-key.object.js +42 -0
- package/dist/api-key/objects/system-api-key.object.js.map +1 -0
- package/dist/api-key/objects/user-api-key-permission-option.object.js.map +1 -0
- package/dist/api-key/objects/user-api-key.object.d.ts +21 -0
- package/dist/api-key/objects/user-api-key.object.js +45 -0
- package/dist/api-key/objects/user-api-key.object.js.map +1 -0
- package/dist/api-key/objects/workspace-api-key-permission-option.object.d.ts +10 -0
- package/dist/api-key/objects/workspace-api-key-permission-option.object.js +37 -0
- package/dist/api-key/objects/workspace-api-key-permission-option.object.js.map +1 -0
- package/dist/api-key/objects/workspace-api-key.object.d.ts +21 -0
- package/dist/api-key/objects/workspace-api-key.object.js +45 -0
- package/dist/api-key/objects/workspace-api-key.object.js.map +1 -0
- package/dist/api-key/policies/api-key-owner.policy.d.ts +8 -0
- package/dist/api-key/policies/api-key-owner.policy.js +19 -0
- package/dist/api-key/policies/api-key-owner.policy.js.map +1 -0
- package/dist/api-key/resolvers/system-api-key-relation.resolver.d.ts +16 -0
- package/dist/api-key/resolvers/system-api-key-relation.resolver.js +57 -0
- package/dist/api-key/resolvers/system-api-key-relation.resolver.js.map +1 -0
- package/dist/api-key/resolvers/system-api-key.resolver.d.ts +77 -0
- package/dist/api-key/resolvers/system-api-key.resolver.js +183 -0
- package/dist/api-key/resolvers/system-api-key.resolver.js.map +1 -0
- package/dist/api-key/resolvers/user-api-key-relation.resolver.d.ts +16 -0
- package/dist/api-key/resolvers/user-api-key-relation.resolver.js +57 -0
- package/dist/api-key/resolvers/user-api-key-relation.resolver.js.map +1 -0
- package/dist/api-key/resolvers/user-api-key.resolver.d.ts +69 -0
- package/dist/api-key/resolvers/user-api-key.resolver.js +157 -0
- package/dist/api-key/resolvers/user-api-key.resolver.js.map +1 -0
- package/dist/api-key/resolvers/workspace-api-key-connection.resolver.d.ts +30 -0
- package/dist/api-key/resolvers/workspace-api-key-connection.resolver.js +71 -0
- package/dist/api-key/resolvers/workspace-api-key-connection.resolver.js.map +1 -0
- package/dist/api-key/resolvers/workspace-api-key-relation.resolver.d.ts +16 -0
- package/dist/api-key/resolvers/workspace-api-key-relation.resolver.js +57 -0
- package/dist/api-key/resolvers/workspace-api-key-relation.resolver.js.map +1 -0
- package/dist/api-key/resolvers/workspace-api-key.resolver.d.ts +63 -0
- package/dist/api-key/resolvers/workspace-api-key.resolver.js +146 -0
- package/dist/api-key/resolvers/workspace-api-key.resolver.js.map +1 -0
- package/dist/api-key/services/api-key-authentication.service.d.ts +33 -0
- package/dist/api-key/services/api-key-authentication.service.js +164 -0
- package/dist/api-key/services/api-key-authentication.service.js.map +1 -0
- package/dist/api-key/services/api-key.service.d.ts +67 -0
- package/dist/api-key/services/api-key.service.js +195 -0
- package/dist/api-key/services/api-key.service.js.map +1 -0
- package/dist/api-key/services/system-api-key.service.d.ts +67 -0
- package/dist/api-key/services/system-api-key.service.js +266 -0
- package/dist/api-key/services/system-api-key.service.js.map +1 -0
- package/dist/api-key/services/user-api-key.service.d.ts +83 -0
- package/dist/api-key/services/user-api-key.service.js +263 -0
- package/dist/api-key/services/user-api-key.service.js.map +1 -0
- package/dist/api-key/services/workspace-api-key.service.d.ts +90 -0
- package/dist/api-key/services/workspace-api-key.service.js +331 -0
- package/dist/api-key/services/workspace-api-key.service.js.map +1 -0
- package/dist/api-key/types/api-key-validation.type.d.ts +5 -0
- package/dist/api-key/types/api-key-validation.type.js.map +1 -0
- package/dist/api-key/utils/api-key-credential.util.js.map +1 -0
- package/dist/api-key/utils/api-key-permissions.util.d.ts +21 -0
- package/dist/api-key/utils/api-key-permissions.util.js +63 -0
- package/dist/api-key/utils/api-key-permissions.util.js.map +1 -0
- package/dist/api-key/utils/api-key-view.util.d.ts +27 -0
- package/dist/api-key/utils/api-key-view.util.js +22 -0
- package/dist/api-key/utils/api-key-view.util.js.map +1 -0
- package/dist/api-key/utils/assert-api-key-feature.util.d.ts +7 -0
- package/dist/api-key/utils/assert-api-key-feature.util.js +13 -0
- package/dist/api-key/utils/assert-api-key-feature.util.js.map +1 -0
- package/dist/api-key/utils/assert-api-key-owner.util.d.ts +8 -0
- package/dist/api-key/utils/assert-api-key-owner.util.js +12 -0
- package/dist/api-key/utils/assert-api-key-owner.util.js.map +1 -0
- package/dist/api-key/utils/extract-api-key.util.js.map +1 -0
- package/dist/api-key/utils/get-current-api-key.util.d.ts +7 -0
- package/dist/api-key/utils/get-current-api-key.util.js +13 -0
- package/dist/api-key/utils/get-current-api-key.util.js.map +1 -0
- package/dist/api-key/utils/is-current-api-key.util.d.ts +7 -0
- package/dist/api-key/utils/is-current-api-key.util.js +13 -0
- package/dist/api-key/utils/is-current-api-key.util.js.map +1 -0
- package/dist/api-key/utils/resolve-api-key-relation.util.d.ts +14 -0
- package/dist/api-key/utils/resolve-api-key-relation.util.js +35 -0
- package/dist/api-key/utils/resolve-api-key-relation.util.js.map +1 -0
- package/dist/common/auth.ability.d.ts +23 -0
- package/dist/common/auth.ability.js +46 -0
- package/dist/common/auth.ability.js.map +1 -0
- package/dist/common/constants/permission.constants.js.map +1 -0
- package/dist/common/decorators/can.decorator.d.ts +11 -0
- package/dist/common/decorators/can.decorator.js +16 -0
- package/dist/common/decorators/can.decorator.js.map +1 -0
- package/dist/common/decorators/public.decorator.d.ts +7 -0
- package/dist/common/decorators/public.decorator.js +9 -0
- package/dist/common/decorators/public.decorator.js.map +1 -0
- package/dist/common/feature-provider.d.ts +15 -0
- package/dist/common/feature-provider.js +19 -0
- package/dist/common/feature-provider.js.map +1 -0
- package/dist/common/interfaces/ability-context.interface.d.ts +19 -0
- package/dist/common/interfaces/ability-context.interface.js.map +1 -0
- package/dist/common/interfaces/ability-rules.interface.js.map +1 -0
- package/dist/common/interfaces/can-metadata.interface.d.ts +9 -0
- package/dist/common/interfaces/can-metadata.interface.js.map +1 -0
- package/dist/common/interfaces/request-permissions.interface.js.map +1 -0
- package/dist/common/interfaces/route-argument-metadata-value.interface.js.map +1 -0
- package/dist/common/interfaces/scope-policy-options.interface.js.map +1 -0
- package/dist/common/interfaces/serialized-ability-rule.interface.js.map +1 -0
- package/dist/common/policies/create-scope-policy.js.map +1 -0
- package/dist/common/policies/index.js.map +1 -0
- package/dist/common/policies/user-scope.policy.js.map +1 -0
- package/dist/common/policies/workspace-scope.policy.js.map +1 -0
- package/dist/common/utils/append-metadata.util.js.map +1 -0
- package/dist/common/utils/authorize.util.js.map +1 -0
- package/dist/common/utils/can.util.js.map +1 -0
- package/dist/common/utils/create-permission-enum.util.js.map +1 -0
- package/dist/common/utils/extend-ability.util.js +112 -0
- package/dist/common/utils/extend-ability.util.js.map +1 -0
- package/dist/common/utils/filter-permission-values.util.d.ts +7 -0
- package/dist/common/utils/filter-permission-values.util.js +11 -0
- package/dist/common/utils/filter-permission-values.util.js.map +1 -0
- package/dist/common/utils/get-auth-ability.util.js +22 -0
- package/dist/common/utils/get-auth-ability.util.js.map +1 -0
- package/dist/common/utils/omit-credentials.util.js +17 -0
- package/dist/common/utils/omit-credentials.util.js.map +1 -0
- package/dist/common/utils/permission-grants.util.d.ts +33 -0
- package/dist/common/utils/permission-grants.util.js +54 -0
- package/dist/common/utils/permission-grants.util.js.map +1 -0
- package/dist/common/utils/resolve-auth-catalog.util.d.ts +12 -0
- package/dist/common/utils/resolve-auth-catalog.util.js +73 -0
- package/dist/common/utils/resolve-auth-catalog.util.js.map +1 -0
- package/dist/common/utils/resolve-effective-permissions.util.d.ts +36 -0
- package/dist/common/utils/resolve-effective-permissions.util.js +48 -0
- package/dist/common/utils/resolve-effective-permissions.util.js.map +1 -0
- package/dist/common/utils/resolve-request-permissions.util.d.ts +14 -0
- package/dist/common/utils/resolve-request-permissions.util.js +66 -0
- package/dist/common/utils/resolve-request-permissions.util.js.map +1 -0
- package/dist/common/utils/run-auth-query.js +55 -0
- package/dist/common/utils/run-auth-query.js.map +1 -0
- package/dist/common/utils/serialize-ability-rules.util.js +41 -0
- package/dist/common/utils/serialize-ability-rules.util.js.map +1 -0
- package/dist/core/adapters/mikro-orm/adapter-config.js.map +1 -0
- package/dist/core/adapters/mikro-orm/create-custom-adapter.js +110 -0
- package/dist/core/adapters/mikro-orm/create-custom-adapter.js.map +1 -0
- package/dist/core/adapters/mikro-orm/entity-metadata-resolver.js +103 -0
- package/dist/core/adapters/mikro-orm/entity-metadata-resolver.js.map +1 -0
- package/dist/core/adapters/mikro-orm/where-compiler.js +81 -0
- package/dist/core/adapters/mikro-orm/where-compiler.js.map +1 -0
- package/dist/core/adapters/mikro-orm-adapter.js +38 -0
- package/dist/core/adapters/mikro-orm-adapter.js.map +1 -0
- package/dist/core/auth-ability.factory.d.ts +14 -0
- package/dist/core/auth-ability.factory.js +146 -0
- package/dist/core/auth-ability.factory.js.map +1 -0
- package/dist/core/auth-context.d.ts +35 -0
- package/dist/core/auth-context.js +172 -0
- package/dist/core/auth-context.js.map +1 -0
- package/dist/core/auth-entities.d.ts +12 -0
- package/dist/core/auth-entities.js +25 -0
- package/dist/core/auth-entities.js.map +1 -0
- package/dist/core/auth-enum-registry.d.ts +11 -0
- package/dist/core/auth-enum-registry.js +79 -0
- package/dist/core/auth-enum-registry.js.map +1 -0
- package/dist/core/auth-handler.middleware.js +45 -0
- package/dist/core/auth-handler.middleware.js.map +1 -0
- package/dist/core/auth-service.providers.d.ts +18 -0
- package/dist/core/auth-service.providers.js +19 -0
- package/dist/core/auth-service.providers.js.map +1 -0
- package/dist/core/auth.guard.d.ts +48 -0
- package/dist/core/auth.guard.js +219 -0
- package/dist/core/auth.guard.js.map +1 -0
- package/dist/core/auth.middleware.d.ts +62 -0
- package/dist/core/auth.middleware.js +254 -0
- package/dist/core/auth.middleware.js.map +1 -0
- package/dist/core/auth.module-definition.d.ts +2 -0
- package/dist/core/auth.module-definition.js.map +1 -0
- package/dist/core/auth.module.d.ts +41 -0
- package/dist/core/auth.module.js +231 -0
- package/dist/core/auth.module.js.map +1 -0
- package/dist/core/better-auth-adapter.js.map +1 -0
- package/dist/core/connections/account.connection-definition.js.map +1 -0
- package/dist/core/connections/session.connection-definition.js.map +1 -0
- package/dist/core/connections/user.connection-definition.js.map +1 -0
- package/dist/core/constants/auth.constants.js.map +1 -0
- package/dist/core/constants/user.constants.d.ts +13 -0
- package/dist/core/constants/user.constants.js +38 -0
- package/dist/core/constants/user.constants.js.map +1 -0
- package/dist/core/create-auth-instance.d.ts +31 -0
- package/dist/core/create-auth-instance.js +170 -0
- package/dist/core/create-auth-instance.js.map +1 -0
- package/dist/core/decorators/current-session.decorator.js.map +1 -0
- package/dist/core/decorators/current-user.decorator.js.map +1 -0
- package/dist/core/entities/account.entity.js +143 -0
- package/dist/core/entities/account.entity.js.map +1 -0
- package/dist/core/entities/auth-entity-map.d.ts +20 -0
- package/dist/core/entities/auth-entity-map.js +21 -0
- package/dist/core/entities/auth-entity-map.js.map +1 -0
- package/dist/core/entities/session.entity.js.map +1 -0
- package/dist/core/entities/user.entity.d.ts +28 -0
- package/dist/core/entities/user.entity.js +151 -0
- package/dist/core/entities/user.entity.js.map +1 -0
- package/dist/core/entities/verification.entity.js.map +1 -0
- package/dist/core/enums/user-permission.enum.js +7 -0
- package/dist/core/enums/user-permission.enum.js.map +1 -0
- package/dist/core/enums/user-role.enum.js +6 -0
- package/dist/core/enums/user-role.enum.js.map +1 -0
- package/dist/core/inputs/auth-change-email.input.js.map +1 -0
- package/dist/core/inputs/auth-change-password.input.js.map +1 -0
- package/dist/core/inputs/auth-delete-user.input.js.map +1 -0
- package/dist/core/inputs/auth-link-social-account.input.js.map +1 -0
- package/dist/core/inputs/auth-request-password-reset.input.js.map +1 -0
- package/dist/core/inputs/auth-reset-password.input.js.map +1 -0
- package/dist/core/inputs/auth-send-verification-email.input.js.map +1 -0
- package/dist/core/inputs/auth-sign-in-social.input.js.map +1 -0
- package/dist/core/inputs/auth-sign-in.input.js.map +1 -0
- package/dist/core/inputs/auth-sign-up.input.js.map +1 -0
- package/dist/core/inputs/auth-update-user.input.js.map +1 -0
- package/dist/core/interfaces/auth-access-token.interface.js.map +1 -0
- package/dist/core/interfaces/auth-account-info.interface.js.map +1 -0
- package/dist/core/interfaces/auth-account.interface.js.map +1 -0
- package/dist/core/interfaces/auth-change-email-confirmation-data.interface.js.map +1 -0
- package/dist/core/interfaces/auth-context-patch.interface.d.ts +16 -0
- package/dist/core/interfaces/auth-context-patch.interface.js +2 -0
- package/dist/core/interfaces/auth-context-patch.interface.js.map +1 -0
- package/dist/core/interfaces/auth-delete-account-verification-data.interface.js.map +1 -0
- package/dist/core/interfaces/auth-email-verification-data.interface.js.map +1 -0
- package/dist/core/interfaces/auth-module-account-linking-options.interface.js.map +1 -0
- package/dist/core/interfaces/auth-module-account-options.interface.js.map +1 -0
- package/dist/core/interfaces/auth-module-change-email-options.interface.js.map +1 -0
- package/dist/core/interfaces/auth-module-delete-user-options.interface.js.map +1 -0
- package/dist/core/interfaces/auth-module-email-and-password-options.interface.js.map +1 -0
- package/dist/core/interfaces/auth-module-email-verification-options.interface.js.map +1 -0
- package/dist/core/interfaces/auth-module-middleware-options.interface.js.map +1 -0
- package/dist/core/interfaces/auth-module-oauth-provider.interface.js.map +1 -0
- package/dist/core/interfaces/auth-module-options.interface.d.ts +49 -0
- package/dist/core/interfaces/auth-module-options.interface.js.map +1 -0
- package/dist/core/interfaces/auth-module-password-options.interface.js.map +1 -0
- package/dist/core/interfaces/auth-module-session-cookie-cache-options.interface.js.map +1 -0
- package/dist/core/interfaces/auth-module-session-cookie-cache-refresh-options.interface.js.map +1 -0
- package/dist/core/interfaces/auth-module-session-options.interface.js.map +1 -0
- package/dist/core/interfaces/auth-module-social-provider.interface.js.map +1 -0
- package/dist/core/interfaces/auth-module-user-options.interface.js.map +1 -0
- package/dist/core/interfaces/auth-oauth-basic-token-endpoint-auth.interface.js.map +1 -0
- package/dist/core/interfaces/auth-oauth-client-assertion-context.interface.js.map +1 -0
- package/dist/core/interfaces/auth-oauth-custom-token-endpoint-auth.interface.js.map +1 -0
- package/dist/core/interfaces/auth-oauth-mapped-user.interface.js.map +1 -0
- package/dist/core/interfaces/auth-oauth-no-token-endpoint-auth.interface.js.map +1 -0
- package/dist/core/interfaces/auth-oauth-post-token-endpoint-auth.interface.js.map +1 -0
- package/dist/core/interfaces/auth-oauth-private-key-jwt-token-endpoint-auth.interface.js.map +1 -0
- package/dist/core/interfaces/auth-oauth-profile.interface.js.map +1 -0
- package/dist/core/interfaces/auth-oauth-refresh-context.interface.js.map +1 -0
- package/dist/core/interfaces/auth-oauth-token-request-client-options.interface.js.map +1 -0
- package/dist/core/interfaces/auth-oauth-token-request-context.interface.js.map +1 -0
- package/dist/core/interfaces/auth-oauth-tokens.interface.js.map +1 -0
- package/dist/core/interfaces/auth-oauth-user-info.interface.js.map +1 -0
- package/dist/core/interfaces/auth-provider-user-info.interface.js.map +1 -0
- package/dist/core/interfaces/auth-refreshed-token.interface.js.map +1 -0
- package/dist/core/interfaces/auth-reset-password-data.interface.js.map +1 -0
- package/dist/core/interfaces/auth-social-provider-user-info.interface.js.map +1 -0
- package/dist/core/interfaces/auth-social-provider.interface.js.map +1 -0
- package/dist/core/interfaces/auth-user.interface.js.map +1 -0
- package/dist/core/interfaces/authenticated-session.interface.js.map +1 -0
- package/dist/core/interfaces/change-auth-email-options.interface.js.map +1 -0
- package/dist/core/interfaces/change-auth-password-options.interface.js.map +1 -0
- package/dist/core/interfaces/change-auth-password-result.interface.js.map +1 -0
- package/dist/core/interfaces/delete-auth-user-options.interface.js.map +1 -0
- package/dist/core/interfaces/delete-auth-user-result.interface.js.map +1 -0
- package/dist/core/interfaces/link-auth-social-account-options.interface.js.map +1 -0
- package/dist/core/interfaces/link-auth-social-account-result.interface.js.map +1 -0
- package/dist/core/interfaces/request-password-reset-options.interface.js.map +1 -0
- package/dist/core/interfaces/request-password-reset-result.interface.js.map +1 -0
- package/dist/core/interfaces/reset-password-options.interface.js.map +1 -0
- package/dist/core/interfaces/send-verification-email-options.interface.js.map +1 -0
- package/dist/core/interfaces/sign-in-entity-result.interface.js.map +1 -0
- package/dist/core/interfaces/sign-in-options.interface.js.map +1 -0
- package/dist/core/interfaces/sign-in-result.interface.js.map +1 -0
- package/dist/core/interfaces/sign-in-social-entity-result.interface.js.map +1 -0
- package/dist/core/interfaces/sign-in-social-options.interface.js.map +1 -0
- package/dist/core/interfaces/sign-in-social-result.interface.js.map +1 -0
- package/dist/core/interfaces/sign-up-options.interface.js.map +1 -0
- package/dist/core/interfaces/sign-up-result.interface.js.map +1 -0
- package/dist/core/interfaces/unlink-auth-account-options.interface.js.map +1 -0
- package/dist/core/interfaces/update-auth-user-options.interface.js.map +1 -0
- package/dist/core/interfaces/user-has-permissions-options.interface.js.map +1 -0
- package/dist/core/objects/auth-ability-rule.object.js.map +1 -0
- package/dist/core/objects/auth-change-password-result.object.js.map +1 -0
- package/dist/core/objects/auth-delete-user-result.object.js.map +1 -0
- package/dist/core/objects/auth-link-social-account-result.object.js.map +1 -0
- package/dist/core/objects/auth-request-password-reset-result.object.js.map +1 -0
- package/dist/core/objects/auth-sign-in-result.object.js.map +1 -0
- package/dist/core/objects/auth-sign-in-social-result.object.js.map +1 -0
- package/dist/core/objects/auth-social-provider.object.js.map +1 -0
- package/dist/core/objects/password-policy.object.js.map +1 -0
- package/dist/core/objects/sign-up-payload.object.js.map +1 -0
- package/dist/core/resolvers/auth.resolver.js +352 -0
- package/dist/core/resolvers/auth.resolver.js.map +1 -0
- package/dist/core/resolvers/session.resolver.d.ts +53 -0
- package/dist/core/resolvers/session.resolver.js +137 -0
- package/dist/core/resolvers/session.resolver.js.map +1 -0
- package/dist/core/resolvers/user.resolver.d.ts +41 -0
- package/dist/core/resolvers/user.resolver.js +94 -0
- package/dist/core/resolvers/user.resolver.js.map +1 -0
- package/dist/core/revoked-authentication.exception.js.map +1 -0
- package/dist/core/services/account.service.js +63 -0
- package/dist/core/services/account.service.js.map +1 -0
- package/dist/core/services/auth.service.js +471 -0
- package/dist/core/services/auth.service.js.map +1 -0
- package/dist/core/services/session.service.d.ts +92 -0
- package/dist/core/services/session.service.js +440 -0
- package/dist/core/services/session.service.js.map +1 -0
- package/dist/core/services/user-deletion.service.d.ts +21 -0
- package/dist/core/services/user-deletion.service.js +58 -0
- package/dist/core/services/user-deletion.service.js.map +1 -0
- package/dist/core/services/user.service.d.ts +176 -0
- package/dist/core/services/user.service.js +613 -0
- package/dist/core/services/user.service.js.map +1 -0
- package/dist/core/types/auth-account-selector.type.js.map +1 -0
- package/dist/core/types/auth-maybe-promise.type.js.map +1 -0
- package/dist/core/types/auth-module-provider.type.js.map +1 -0
- package/dist/core/types/auth-module-roles.type.js.map +1 -0
- package/dist/core/types/auth-module-social-provider-id.type.js.map +1 -0
- package/dist/core/types/auth-oauth-token-endpoint-auth.type.js.map +1 -0
- package/dist/core/types/auth-send-reset-password.type.js.map +1 -0
- package/dist/core/types/auth-send-verification-email.type.js.map +1 -0
- package/dist/core/types/build-ability-callback.type.d.ts +4 -0
- package/dist/core/types/build-ability-callback.type.js.map +1 -0
- package/dist/core/types/can-subject-callback.type.js.map +1 -0
- package/dist/core/types/lowercase-identifier.type.js.map +1 -0
- package/dist/core/types/permission-name.type.js.map +1 -0
- package/dist/core/types/role-name.type.js.map +1 -0
- package/dist/core/types/route-argument-metadata.type.d.ts +3 -0
- package/dist/core/types/route-argument-metadata.type.js.map +1 -0
- package/dist/core/utils/apply-auth-response-cookies.util.js +18 -0
- package/dist/core/utils/apply-auth-response-cookies.util.js.map +1 -0
- package/dist/core/utils/assert-current-identity.util.d.ts +29 -0
- package/dist/core/utils/assert-current-identity.util.js +69 -0
- package/dist/core/utils/assert-current-identity.util.js.map +1 -0
- package/dist/core/utils/auth-role.util.js.map +1 -0
- package/dist/core/utils/build-request-ability.util.d.ts +8 -0
- package/dist/core/utils/build-request-ability.util.js +33 -0
- package/dist/core/utils/build-request-ability.util.js.map +1 -0
- package/dist/core/utils/clear-authentication-context.util.d.ts +6 -0
- package/dist/core/utils/clear-authentication-context.util.js +35 -0
- package/dist/core/utils/clear-authentication-context.util.js.map +1 -0
- package/dist/core/utils/create-email-and-password-config.d.ts +16 -0
- package/dist/core/utils/create-email-and-password-config.js.map +1 -0
- package/dist/core/utils/create-email-verification-config.d.ts +13 -0
- package/dist/core/utils/create-email-verification-config.js.map +1 -0
- package/dist/core/utils/create-generic-oauth-config.js.map +1 -0
- package/dist/core/utils/create-oidc-config.js.map +1 -0
- package/dist/core/utils/create-social-provider-config.js.map +1 -0
- package/dist/core/utils/create-social-providers-config.js.map +1 -0
- package/dist/core/utils/create-user-config.js +59 -0
- package/dist/core/utils/create-user-config.js.map +1 -0
- package/dist/core/utils/estimate-entropy.js +14 -0
- package/dist/core/utils/estimate-entropy.js.map +1 -0
- package/dist/core/utils/generic-oauth-provider-config.type.js.map +1 -0
- package/dist/core/utils/has-social-provider-credential-env-config.js.map +1 -0
- package/dist/core/utils/is-env-true.js.map +1 -0
- package/dist/core/utils/oidc.constants.d.ts +4 -0
- package/dist/core/utils/oidc.constants.js +15 -0
- package/dist/core/utils/oidc.constants.js.map +1 -0
- package/dist/core/utils/resolve-auth-features.util.d.ts +26 -0
- package/dist/core/utils/resolve-auth-features.util.js +67 -0
- package/dist/core/utils/resolve-auth-features.util.js.map +1 -0
- package/dist/core/utils/resolve-oidc-prompt.js.map +1 -0
- package/dist/core/utils/resolve-oidc-scopes.js.map +1 -0
- package/dist/core/utils/resolve-required-oidc-env.js.map +1 -0
- package/dist/core/utils/resolve-required-social-provider-env.js.map +1 -0
- package/dist/core/utils/resolve-secret.d.ts +7 -0
- package/dist/core/utils/resolve-secret.js.map +1 -0
- package/dist/core/utils/resolve-social-provider-enabled.js.map +1 -0
- package/dist/core/utils/social-provider.constants.d.ts +20 -0
- package/dist/core/utils/social-provider.constants.js +19 -0
- package/dist/core/utils/social-provider.constants.js.map +1 -0
- package/dist/core/utils/split-auth-providers.js.map +1 -0
- package/dist/index.d.ts +270 -211
- package/dist/index.js +270 -209
- package/dist/index.js.map +1 -1
- package/dist/workspace/connections/workspace-invitation.connection-definition.d.ts +9 -0
- package/dist/workspace/connections/workspace-invitation.connection-definition.js +45 -0
- package/dist/workspace/connections/workspace-invitation.connection-definition.js.map +1 -0
- package/dist/workspace/connections/workspace-member.connection-definition.d.ts +9 -0
- package/dist/workspace/connections/workspace-member.connection-definition.js +58 -0
- package/dist/workspace/connections/workspace-member.connection-definition.js.map +1 -0
- package/dist/workspace/connections/workspace.connection-definition.js +48 -0
- package/dist/workspace/connections/workspace.connection-definition.js.map +1 -0
- package/dist/workspace/constants/workspace.constants.d.ts +15 -0
- package/dist/workspace/constants/workspace.constants.js +39 -0
- package/dist/workspace/constants/workspace.constants.js.map +1 -0
- package/dist/workspace/decorators/current-workspace-member.decorator.d.ts +2 -0
- package/dist/workspace/decorators/current-workspace-member.decorator.js +6 -0
- package/dist/workspace/decorators/current-workspace-member.decorator.js.map +1 -0
- package/dist/workspace/decorators/current-workspace.decorator.js.map +1 -0
- package/dist/workspace/entities/workspace-invitation.entity.d.ts +29 -0
- package/dist/workspace/entities/workspace-invitation.entity.js +129 -0
- package/dist/workspace/entities/workspace-invitation.entity.js.map +1 -0
- package/dist/workspace/entities/workspace-member.entity.d.ts +37 -0
- package/dist/workspace/entities/workspace-member.entity.js +151 -0
- package/dist/workspace/entities/workspace-member.entity.js.map +1 -0
- package/dist/workspace/entities/workspace.entity.d.ts +15 -0
- package/dist/workspace/entities/workspace.entity.js +79 -0
- package/dist/workspace/entities/workspace.entity.js.map +1 -0
- package/dist/workspace/enums/workspace-invitation-status.enum.d.ts +11 -0
- package/dist/workspace/enums/workspace-invitation-status.enum.js +17 -0
- package/dist/workspace/enums/workspace-invitation-status.enum.js.map +1 -0
- package/dist/workspace/enums/workspace-member-status.enum.d.ts +9 -0
- package/dist/workspace/enums/workspace-member-status.enum.js +15 -0
- package/dist/workspace/enums/workspace-member-status.enum.js.map +1 -0
- package/dist/workspace/enums/workspace-member-type.enum.d.ts +7 -0
- package/dist/workspace/enums/workspace-member-type.enum.js +11 -0
- package/dist/workspace/enums/workspace-member-type.enum.js.map +1 -0
- package/dist/workspace/enums/workspace-permission.enum.js +7 -0
- package/dist/workspace/enums/workspace-permission.enum.js.map +1 -0
- package/dist/workspace/enums/workspace-role.enum.js +9 -0
- package/dist/workspace/enums/workspace-role.enum.js.map +1 -0
- package/dist/workspace/inputs/add-workspace-member.input.d.ts +16 -0
- package/dist/workspace/inputs/add-workspace-member.input.js +57 -0
- package/dist/workspace/inputs/add-workspace-member.input.js.map +1 -0
- package/dist/workspace/inputs/create-workspace-invitation.input.d.ts +10 -0
- package/dist/workspace/inputs/create-workspace-invitation.input.js +41 -0
- package/dist/workspace/inputs/create-workspace-invitation.input.js.map +1 -0
- package/dist/workspace/inputs/create-workspace.input.js.map +1 -0
- package/dist/workspace/inputs/set-workspace-member-permissions.input.d.ts +6 -0
- package/dist/workspace/inputs/set-workspace-member-permissions.input.js +27 -0
- package/dist/workspace/inputs/set-workspace-member-permissions.input.js.map +1 -0
- package/dist/workspace/inputs/set-workspace-member-roles.input.d.ts +6 -0
- package/dist/workspace/inputs/set-workspace-member-roles.input.js +27 -0
- package/dist/workspace/inputs/set-workspace-member-roles.input.js.map +1 -0
- package/dist/workspace/inputs/update-workspace-member.input.d.ts +10 -0
- package/dist/workspace/inputs/update-workspace-member.input.js +45 -0
- package/dist/workspace/inputs/update-workspace-member.input.js.map +1 -0
- package/dist/workspace/inputs/update-workspace.input.js.map +1 -0
- package/dist/workspace/interfaces/accept-workspace-invitation-result.interface.d.ts +9 -0
- package/dist/workspace/interfaces/accept-workspace-invitation-result.interface.js +2 -0
- package/dist/workspace/interfaces/accept-workspace-invitation-result.interface.js.map +1 -0
- package/dist/workspace/interfaces/add-workspace-member-options.interface.d.ts +7 -0
- package/dist/workspace/interfaces/add-workspace-member-options.interface.js +2 -0
- package/dist/workspace/interfaces/add-workspace-member-options.interface.js.map +1 -0
- package/dist/workspace/interfaces/auth-module-workspace-options.interface.d.ts +18 -0
- package/dist/workspace/interfaces/auth-module-workspace-options.interface.js.map +1 -0
- package/dist/workspace/interfaces/auth-workspace-invitation-email-data.interface.d.ts +18 -0
- package/dist/workspace/interfaces/auth-workspace-invitation-email-data.interface.js +2 -0
- package/dist/workspace/interfaces/auth-workspace-invitation-email-data.interface.js.map +1 -0
- package/dist/workspace/interfaces/create-workspace-invitation-options.interface.d.ts +9 -0
- package/dist/workspace/interfaces/create-workspace-invitation-options.interface.js +2 -0
- package/dist/workspace/interfaces/create-workspace-invitation-options.interface.js.map +1 -0
- package/dist/workspace/interfaces/create-workspace-options.interface.js.map +1 -0
- package/dist/workspace/interfaces/update-workspace-member-options.interface.d.ts +10 -0
- package/dist/workspace/interfaces/update-workspace-member-options.interface.js +2 -0
- package/dist/workspace/interfaces/update-workspace-member-options.interface.js.map +1 -0
- package/dist/workspace/interfaces/update-workspace-options.interface.js.map +1 -0
- package/dist/workspace/interfaces/workspace-has-permissions-options.interface.js.map +1 -0
- package/dist/workspace/objects/accept-workspace-invitation-payload.object.d.ts +9 -0
- package/dist/workspace/objects/accept-workspace-invitation-payload.object.js +36 -0
- package/dist/workspace/objects/accept-workspace-invitation-payload.object.js.map +1 -0
- package/dist/workspace/objects/add-workspace-member-payload.object.d.ts +5 -0
- package/dist/workspace/objects/add-workspace-member-payload.object.js +24 -0
- package/dist/workspace/objects/add-workspace-member-payload.object.js.map +1 -0
- package/dist/workspace/objects/cancel-workspace-invitation-payload.object.d.ts +5 -0
- package/dist/workspace/objects/cancel-workspace-invitation-payload.object.js +24 -0
- package/dist/workspace/objects/cancel-workspace-invitation-payload.object.js.map +1 -0
- package/dist/workspace/objects/create-workspace-invitation-payload.object.d.ts +5 -0
- package/dist/workspace/objects/create-workspace-invitation-payload.object.js +24 -0
- package/dist/workspace/objects/create-workspace-invitation-payload.object.js.map +1 -0
- package/dist/workspace/objects/create-workspace-payload.object.js.map +1 -0
- package/dist/workspace/objects/delete-workspace-payload.object.js.map +1 -0
- package/dist/workspace/objects/leave-workspace-payload.object.js.map +1 -0
- package/dist/workspace/objects/reject-workspace-invitation-payload.object.d.ts +5 -0
- package/dist/workspace/objects/reject-workspace-invitation-payload.object.js +24 -0
- package/dist/workspace/objects/reject-workspace-invitation-payload.object.js.map +1 -0
- package/dist/workspace/objects/remove-workspace-member-payload.object.d.ts +5 -0
- package/dist/workspace/objects/remove-workspace-member-payload.object.js +24 -0
- package/dist/workspace/objects/remove-workspace-member-payload.object.js.map +1 -0
- package/dist/workspace/objects/set-workspace-member-permissions-payload.object.d.ts +5 -0
- package/dist/workspace/objects/set-workspace-member-permissions-payload.object.js +24 -0
- package/dist/workspace/objects/set-workspace-member-permissions-payload.object.js.map +1 -0
- package/dist/workspace/objects/set-workspace-member-roles-payload.object.d.ts +5 -0
- package/dist/workspace/objects/set-workspace-member-roles-payload.object.js +24 -0
- package/dist/workspace/objects/set-workspace-member-roles-payload.object.js.map +1 -0
- package/dist/workspace/objects/update-workspace-member-payload.object.d.ts +5 -0
- package/dist/workspace/objects/update-workspace-member-payload.object.js +24 -0
- package/dist/workspace/objects/update-workspace-member-payload.object.js.map +1 -0
- package/dist/workspace/objects/update-workspace-payload.object.js.map +1 -0
- package/dist/workspace/objects/workspace-permission-option.object.js.map +1 -0
- package/dist/workspace/objects/workspace-role-option.object.js.map +1 -0
- package/dist/workspace/resolvers/user-workspace.resolver.d.ts +34 -0
- package/dist/workspace/resolvers/user-workspace.resolver.js +77 -0
- package/dist/workspace/resolvers/user-workspace.resolver.js.map +1 -0
- package/dist/workspace/resolvers/workspace-invitation.resolver.d.ts +67 -0
- package/dist/workspace/resolvers/workspace-invitation.resolver.js +170 -0
- package/dist/workspace/resolvers/workspace-invitation.resolver.js.map +1 -0
- package/dist/workspace/resolvers/workspace-member.resolver.d.ts +92 -0
- package/dist/workspace/resolvers/workspace-member.resolver.js +233 -0
- package/dist/workspace/resolvers/workspace-member.resolver.js.map +1 -0
- package/dist/workspace/resolvers/workspace.resolver.d.ts +108 -0
- package/dist/workspace/resolvers/workspace.resolver.js +256 -0
- package/dist/workspace/resolvers/workspace.resolver.js.map +1 -0
- package/dist/workspace/services/workspace-invitation.service.d.ts +120 -0
- package/dist/workspace/services/workspace-invitation.service.js +466 -0
- package/dist/workspace/services/workspace-invitation.service.js.map +1 -0
- package/dist/workspace/services/workspace-member.service.d.ts +169 -0
- package/dist/workspace/services/workspace-member.service.js +564 -0
- package/dist/workspace/services/workspace-member.service.js.map +1 -0
- package/dist/workspace/services/workspace.service.d.ts +108 -0
- package/dist/workspace/services/workspace.service.js +347 -0
- package/dist/workspace/services/workspace.service.js.map +1 -0
- package/dist/workspace/types/auth-send-workspace-invitation-email.type.d.ts +7 -0
- package/dist/workspace/types/auth-send-workspace-invitation-email.type.js +2 -0
- package/dist/workspace/types/auth-send-workspace-invitation-email.type.js.map +1 -0
- package/dist/workspace/types/auth-workspace-invitation-email-inviter.type.d.ts +7 -0
- package/dist/workspace/types/auth-workspace-invitation-email-inviter.type.js +2 -0
- package/dist/workspace/types/auth-workspace-invitation-email-inviter.type.js.map +1 -0
- package/dist/workspace/utils/get-current-workspace-member.util.d.ts +6 -0
- package/dist/workspace/utils/get-current-workspace-member.util.js +17 -0
- package/dist/workspace/utils/get-current-workspace-member.util.js.map +1 -0
- package/dist/workspace/utils/read-invitation-identity.util.d.ts +8 -0
- package/dist/workspace/utils/read-invitation-identity.util.js +38 -0
- package/dist/workspace/utils/read-invitation-identity.util.js.map +1 -0
- package/dist/workspace/utils/resolve-request-workspace-member.util.d.ts +7 -0
- package/dist/workspace/utils/resolve-request-workspace-member.util.js +29 -0
- package/dist/workspace/utils/resolve-request-workspace-member.util.js.map +1 -0
- package/dist/workspace/workspace.providers.d.ts +3 -0
- package/dist/workspace/workspace.providers.js +16 -0
- package/dist/workspace/workspace.providers.js.map +1 -0
- package/package.json +14 -11
- package/dist/adapters/mikro-orm/adapter-config.js.map +0 -1
- package/dist/adapters/mikro-orm/create-custom-adapter.js +0 -106
- package/dist/adapters/mikro-orm/create-custom-adapter.js.map +0 -1
- package/dist/adapters/mikro-orm/entity-metadata-resolver.js +0 -97
- package/dist/adapters/mikro-orm/entity-metadata-resolver.js.map +0 -1
- package/dist/adapters/mikro-orm/where-compiler.js +0 -80
- package/dist/adapters/mikro-orm/where-compiler.js.map +0 -1
- package/dist/adapters/mikro-orm-adapter.js +0 -38
- package/dist/adapters/mikro-orm-adapter.js.map +0 -1
- package/dist/api-key-usage.interceptor.d.ts +0 -19
- package/dist/api-key-usage.interceptor.js +0 -45
- package/dist/api-key-usage.interceptor.js.map +0 -1
- package/dist/auth-handler.middleware.js +0 -45
- package/dist/auth-handler.middleware.js.map +0 -1
- package/dist/auth-module-options.interface.d.ts +0 -46
- package/dist/auth-module-options.interface.js.map +0 -1
- package/dist/auth.ability.d.ts +0 -17
- package/dist/auth.ability.js +0 -32
- package/dist/auth.ability.js.map +0 -1
- package/dist/auth.constants.js.map +0 -1
- package/dist/auth.guard.d.ts +0 -48
- package/dist/auth.guard.js +0 -219
- package/dist/auth.guard.js.map +0 -1
- package/dist/auth.middleware.d.ts +0 -54
- package/dist/auth.middleware.js +0 -235
- package/dist/auth.middleware.js.map +0 -1
- package/dist/auth.module-definition.d.ts +0 -2
- package/dist/auth.module-definition.js.map +0 -1
- package/dist/auth.module.d.ts +0 -40
- package/dist/auth.module.js +0 -169
- package/dist/auth.module.js.map +0 -1
- package/dist/connections/account.connection-definition.js.map +0 -1
- package/dist/connections/index.d.ts +0 -8
- package/dist/connections/index.js +0 -9
- package/dist/connections/index.js.map +0 -1
- package/dist/connections/member-api-key.connection-definition.d.ts +0 -13
- package/dist/connections/member-api-key.connection-definition.js +0 -60
- package/dist/connections/member-api-key.connection-definition.js.map +0 -1
- package/dist/connections/member.connection-definition.d.ts +0 -9
- package/dist/connections/member.connection-definition.js +0 -53
- package/dist/connections/member.connection-definition.js.map +0 -1
- package/dist/connections/session.connection-definition.js.map +0 -1
- package/dist/connections/user-api-key.connection-definition.d.ts +0 -13
- package/dist/connections/user-api-key.connection-definition.js +0 -60
- package/dist/connections/user-api-key.connection-definition.js.map +0 -1
- package/dist/connections/user.connection-definition.js.map +0 -1
- package/dist/connections/workspace.connection-definition.js +0 -43
- package/dist/connections/workspace.connection-definition.js.map +0 -1
- package/dist/decorators/can.decorator.d.ts +0 -11
- package/dist/decorators/can.decorator.js +0 -15
- package/dist/decorators/can.decorator.js.map +0 -1
- package/dist/decorators/current-api-key.decorator.js.map +0 -1
- package/dist/decorators/current-member.decorator.d.ts +0 -2
- package/dist/decorators/current-member.decorator.js +0 -6
- package/dist/decorators/current-member.decorator.js.map +0 -1
- package/dist/decorators/current-session.decorator.js.map +0 -1
- package/dist/decorators/current-user.decorator.js.map +0 -1
- package/dist/decorators/current-workspace.decorator.js.map +0 -1
- package/dist/decorators/index.d.ts +0 -7
- package/dist/decorators/index.js +0 -8
- package/dist/decorators/index.js.map +0 -1
- package/dist/decorators/public.decorator.d.ts +0 -7
- package/dist/decorators/public.decorator.js +0 -9
- package/dist/decorators/public.decorator.js.map +0 -1
- package/dist/entities/account.entity.js +0 -143
- package/dist/entities/account.entity.js.map +0 -1
- package/dist/entities/auth-entity-map.d.ts +0 -21
- package/dist/entities/auth-entity-map.js +0 -22
- package/dist/entities/auth-entity-map.js.map +0 -1
- package/dist/entities/index.d.ts +0 -19
- package/dist/entities/index.js +0 -31
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/invitation.entity.d.ts +0 -29
- package/dist/entities/invitation.entity.js +0 -129
- package/dist/entities/invitation.entity.js.map +0 -1
- package/dist/entities/member-api-key.entity.d.ts +0 -39
- package/dist/entities/member-api-key.entity.js +0 -171
- package/dist/entities/member-api-key.entity.js.map +0 -1
- package/dist/entities/member.entity.d.ts +0 -37
- package/dist/entities/member.entity.js +0 -151
- package/dist/entities/member.entity.js.map +0 -1
- package/dist/entities/session.entity.js.map +0 -1
- package/dist/entities/user-api-key.entity.d.ts +0 -29
- package/dist/entities/user-api-key.entity.js +0 -147
- package/dist/entities/user-api-key.entity.js.map +0 -1
- package/dist/entities/user.entity.d.ts +0 -31
- package/dist/entities/user.entity.js +0 -159
- package/dist/entities/user.entity.js.map +0 -1
- package/dist/entities/verification.entity.js.map +0 -1
- package/dist/entities/workspace.entity.d.ts +0 -15
- package/dist/entities/workspace.entity.js +0 -79
- package/dist/entities/workspace.entity.js.map +0 -1
- package/dist/enums/index.d.ts +0 -9
- package/dist/enums/index.js +0 -10
- package/dist/enums/index.js.map +0 -1
- package/dist/enums/member-api-key-permission.enum.d.ts +0 -4
- package/dist/enums/member-api-key-permission.enum.js +0 -11
- package/dist/enums/member-api-key-permission.enum.js.map +0 -1
- package/dist/enums/member-status.enum.d.ts +0 -9
- package/dist/enums/member-status.enum.js +0 -15
- package/dist/enums/member-status.enum.js.map +0 -1
- package/dist/enums/member-type.enum.d.ts +0 -7
- package/dist/enums/member-type.enum.js +0 -11
- package/dist/enums/member-type.enum.js.map +0 -1
- package/dist/enums/user-api-key-permission.enum.js +0 -11
- package/dist/enums/user-api-key-permission.enum.js.map +0 -1
- package/dist/enums/user-permission.enum.js +0 -7
- package/dist/enums/user-permission.enum.js.map +0 -1
- package/dist/enums/user-role.enum.js +0 -6
- package/dist/enums/user-role.enum.js.map +0 -1
- package/dist/enums/workspace-permission.enum.js +0 -7
- package/dist/enums/workspace-permission.enum.js.map +0 -1
- package/dist/enums/workspace-role.enum.js +0 -9
- package/dist/enums/workspace-role.enum.js.map +0 -1
- package/dist/features/invitations/accept-invitation-payload.object.d.ts +0 -9
- package/dist/features/invitations/accept-invitation-payload.object.js +0 -36
- package/dist/features/invitations/accept-invitation-payload.object.js.map +0 -1
- package/dist/features/invitations/accept-invitation-result.interface.d.ts +0 -9
- package/dist/features/invitations/accept-invitation-result.interface.js +0 -2
- package/dist/features/invitations/accept-invitation-result.interface.js.map +0 -1
- package/dist/features/invitations/auth-invitation-email-data.interface.d.ts +0 -18
- package/dist/features/invitations/auth-invitation-email-data.interface.js +0 -2
- package/dist/features/invitations/auth-invitation-email-data.interface.js.map +0 -1
- package/dist/features/invitations/auth-invitation-email-inviter.type.d.ts +0 -7
- package/dist/features/invitations/auth-invitation-email-inviter.type.js +0 -2
- package/dist/features/invitations/auth-invitation-email-inviter.type.js.map +0 -1
- package/dist/features/invitations/auth-send-invitation-email.type.d.ts +0 -7
- package/dist/features/invitations/auth-send-invitation-email.type.js +0 -2
- package/dist/features/invitations/auth-send-invitation-email.type.js.map +0 -1
- package/dist/features/invitations/cancel-invitation-payload.object.d.ts +0 -5
- package/dist/features/invitations/cancel-invitation-payload.object.js +0 -24
- package/dist/features/invitations/cancel-invitation-payload.object.js.map +0 -1
- package/dist/features/invitations/create-invitation-options.interface.d.ts +0 -9
- package/dist/features/invitations/create-invitation-options.interface.js +0 -2
- package/dist/features/invitations/create-invitation-options.interface.js.map +0 -1
- package/dist/features/invitations/create-invitation-payload.object.d.ts +0 -5
- package/dist/features/invitations/create-invitation-payload.object.js +0 -24
- package/dist/features/invitations/create-invitation-payload.object.js.map +0 -1
- package/dist/features/invitations/create-invitation.input.d.ts +0 -10
- package/dist/features/invitations/create-invitation.input.js +0 -41
- package/dist/features/invitations/create-invitation.input.js.map +0 -1
- package/dist/features/invitations/invitation-status.enum.d.ts +0 -11
- package/dist/features/invitations/invitation-status.enum.js +0 -17
- package/dist/features/invitations/invitation-status.enum.js.map +0 -1
- package/dist/features/invitations/invitation.connection-definition.d.ts +0 -9
- package/dist/features/invitations/invitation.connection-definition.js +0 -40
- package/dist/features/invitations/invitation.connection-definition.js.map +0 -1
- package/dist/features/invitations/invitation.resolver.d.ts +0 -67
- package/dist/features/invitations/invitation.resolver.js +0 -169
- package/dist/features/invitations/invitation.resolver.js.map +0 -1
- package/dist/features/invitations/invitation.service.d.ts +0 -120
- package/dist/features/invitations/invitation.service.js +0 -444
- package/dist/features/invitations/invitation.service.js.map +0 -1
- package/dist/features/invitations/reject-invitation-payload.object.d.ts +0 -5
- package/dist/features/invitations/reject-invitation-payload.object.js +0 -24
- package/dist/features/invitations/reject-invitation-payload.object.js.map +0 -1
- package/dist/infrastructure/api-key-authentication.service.d.ts +0 -30
- package/dist/infrastructure/api-key-authentication.service.js +0 -111
- package/dist/infrastructure/api-key-authentication.service.js.map +0 -1
- package/dist/infrastructure/api-key-lifecycle.d.ts +0 -53
- package/dist/infrastructure/api-key-lifecycle.js +0 -96
- package/dist/infrastructure/api-key-lifecycle.js.map +0 -1
- package/dist/infrastructure/auth-ability.factory.d.ts +0 -21
- package/dist/infrastructure/auth-ability.factory.js +0 -128
- package/dist/infrastructure/auth-ability.factory.js.map +0 -1
- package/dist/infrastructure/auth-enum-registry.d.ts +0 -11
- package/dist/infrastructure/auth-enum-registry.js +0 -58
- package/dist/infrastructure/auth-enum-registry.js.map +0 -1
- package/dist/infrastructure/auth-service.providers.d.ts +0 -6
- package/dist/infrastructure/auth-service.providers.js +0 -73
- package/dist/infrastructure/auth-service.providers.js.map +0 -1
- package/dist/infrastructure/better-auth-adapter.js.map +0 -1
- package/dist/infrastructure/create-auth-instance.d.ts +0 -28
- package/dist/infrastructure/create-auth-instance.js +0 -132
- package/dist/infrastructure/create-auth-instance.js.map +0 -1
- package/dist/infrastructure/create-contextual-auth-service.d.ts +0 -14
- package/dist/infrastructure/create-contextual-auth-service.js +0 -54
- package/dist/infrastructure/create-contextual-auth-service.js.map +0 -1
- package/dist/infrastructure/request-identity.d.ts +0 -117
- package/dist/infrastructure/request-identity.js +0 -280
- package/dist/infrastructure/request-identity.js.map +0 -1
- package/dist/infrastructure/revoked-authentication.exception.js.map +0 -1
- package/dist/inputs/add-member.input.d.ts +0 -16
- package/dist/inputs/add-member.input.js +0 -57
- package/dist/inputs/add-member.input.js.map +0 -1
- package/dist/inputs/auth-change-email.input.js.map +0 -1
- package/dist/inputs/auth-change-password.input.js.map +0 -1
- package/dist/inputs/auth-delete-user.input.js.map +0 -1
- package/dist/inputs/auth-link-social-account.input.js.map +0 -1
- package/dist/inputs/auth-request-password-reset.input.js.map +0 -1
- package/dist/inputs/auth-reset-password.input.js.map +0 -1
- package/dist/inputs/auth-send-verification-email.input.js.map +0 -1
- package/dist/inputs/auth-sign-in-social.input.js.map +0 -1
- package/dist/inputs/auth-sign-in.input.js.map +0 -1
- package/dist/inputs/auth-sign-up.input.js.map +0 -1
- package/dist/inputs/auth-update-user.input.js.map +0 -1
- package/dist/inputs/ban-user.input.js.map +0 -1
- package/dist/inputs/create-member-api-key.input.d.ts +0 -16
- package/dist/inputs/create-member-api-key.input.js +0 -62
- package/dist/inputs/create-member-api-key.input.js.map +0 -1
- package/dist/inputs/create-user-api-key.input.js.map +0 -1
- package/dist/inputs/create-user.input.d.ts +0 -15
- package/dist/inputs/create-user.input.js +0 -56
- package/dist/inputs/create-user.input.js.map +0 -1
- package/dist/inputs/create-workspace.input.js.map +0 -1
- package/dist/inputs/set-member-permissions.input.d.ts +0 -6
- package/dist/inputs/set-member-permissions.input.js +0 -27
- package/dist/inputs/set-member-permissions.input.js.map +0 -1
- package/dist/inputs/set-member-roles.input.d.ts +0 -6
- package/dist/inputs/set-member-roles.input.js +0 -27
- package/dist/inputs/set-member-roles.input.js.map +0 -1
- package/dist/inputs/set-user-password.input.js.map +0 -1
- package/dist/inputs/set-user-permissions.input.d.ts +0 -6
- package/dist/inputs/set-user-permissions.input.js +0 -27
- package/dist/inputs/set-user-permissions.input.js.map +0 -1
- package/dist/inputs/set-user-roles.input.d.ts +0 -6
- package/dist/inputs/set-user-roles.input.js +0 -27
- package/dist/inputs/set-user-roles.input.js.map +0 -1
- package/dist/inputs/update-member-api-key.input.d.ts +0 -14
- package/dist/inputs/update-member-api-key.input.js +0 -50
- package/dist/inputs/update-member-api-key.input.js.map +0 -1
- package/dist/inputs/update-member.input.d.ts +0 -10
- package/dist/inputs/update-member.input.js +0 -43
- package/dist/inputs/update-member.input.js.map +0 -1
- package/dist/inputs/update-user-api-key.input.d.ts +0 -14
- package/dist/inputs/update-user-api-key.input.js +0 -50
- package/dist/inputs/update-user-api-key.input.js.map +0 -1
- package/dist/inputs/update-user.input.js.map +0 -1
- package/dist/inputs/update-workspace.input.js.map +0 -1
- package/dist/inputs/user-id.input.js.map +0 -1
- package/dist/interfaces/ability-context.interface.d.ts +0 -16
- package/dist/interfaces/ability-context.interface.js.map +0 -1
- package/dist/interfaces/ability-rules.interface.js.map +0 -1
- package/dist/interfaces/add-member-options.interface.d.ts +0 -7
- package/dist/interfaces/add-member-options.interface.js +0 -2
- package/dist/interfaces/add-member-options.interface.js.map +0 -1
- package/dist/interfaces/auth-access-token.interface.js.map +0 -1
- package/dist/interfaces/auth-account-info.interface.js.map +0 -1
- package/dist/interfaces/auth-account.interface.js.map +0 -1
- package/dist/interfaces/auth-change-email-confirmation-data.interface.js.map +0 -1
- package/dist/interfaces/auth-delete-account-verification-data.interface.js.map +0 -1
- package/dist/interfaces/auth-email-verification-data.interface.js.map +0 -1
- package/dist/interfaces/auth-module-account-linking-options.interface.js.map +0 -1
- package/dist/interfaces/auth-module-account-options.interface.js.map +0 -1
- package/dist/interfaces/auth-module-api-key-options.interface.d.ts +0 -8
- package/dist/interfaces/auth-module-api-key-options.interface.js.map +0 -1
- package/dist/interfaces/auth-module-api-key-scope-options.interface.d.ts +0 -9
- package/dist/interfaces/auth-module-api-key-scope-options.interface.js.map +0 -1
- package/dist/interfaces/auth-module-change-email-options.interface.js.map +0 -1
- package/dist/interfaces/auth-module-delete-user-options.interface.js.map +0 -1
- package/dist/interfaces/auth-module-email-and-password-options.interface.js.map +0 -1
- package/dist/interfaces/auth-module-email-verification-options.interface.js.map +0 -1
- package/dist/interfaces/auth-module-middleware-options.interface.js.map +0 -1
- package/dist/interfaces/auth-module-oauth-provider.interface.js.map +0 -1
- package/dist/interfaces/auth-module-password-options.interface.js.map +0 -1
- package/dist/interfaces/auth-module-session-cookie-cache-options.interface.js.map +0 -1
- package/dist/interfaces/auth-module-session-cookie-cache-refresh-options.interface.js.map +0 -1
- package/dist/interfaces/auth-module-session-options.interface.js.map +0 -1
- package/dist/interfaces/auth-module-social-provider.interface.js.map +0 -1
- package/dist/interfaces/auth-module-user-options.interface.js.map +0 -1
- package/dist/interfaces/auth-module-workspace-options.interface.d.ts +0 -16
- package/dist/interfaces/auth-module-workspace-options.interface.js.map +0 -1
- package/dist/interfaces/auth-oauth-basic-token-endpoint-auth.interface.js.map +0 -1
- package/dist/interfaces/auth-oauth-client-assertion-context.interface.js.map +0 -1
- package/dist/interfaces/auth-oauth-custom-token-endpoint-auth.interface.js.map +0 -1
- package/dist/interfaces/auth-oauth-mapped-user.interface.js.map +0 -1
- package/dist/interfaces/auth-oauth-no-token-endpoint-auth.interface.js.map +0 -1
- package/dist/interfaces/auth-oauth-post-token-endpoint-auth.interface.js.map +0 -1
- package/dist/interfaces/auth-oauth-private-key-jwt-token-endpoint-auth.interface.js.map +0 -1
- package/dist/interfaces/auth-oauth-profile.interface.js.map +0 -1
- package/dist/interfaces/auth-oauth-refresh-context.interface.js.map +0 -1
- package/dist/interfaces/auth-oauth-token-request-client-options.interface.js.map +0 -1
- package/dist/interfaces/auth-oauth-token-request-context.interface.js.map +0 -1
- package/dist/interfaces/auth-oauth-tokens.interface.js.map +0 -1
- package/dist/interfaces/auth-oauth-user-info.interface.js.map +0 -1
- package/dist/interfaces/auth-provider-user-info.interface.js.map +0 -1
- package/dist/interfaces/auth-refreshed-token.interface.js.map +0 -1
- package/dist/interfaces/auth-reset-password-data.interface.js.map +0 -1
- package/dist/interfaces/auth-social-provider-user-info.interface.js.map +0 -1
- package/dist/interfaces/auth-social-provider.interface.js.map +0 -1
- package/dist/interfaces/auth-user.interface.js.map +0 -1
- package/dist/interfaces/authenticated-session.interface.js.map +0 -1
- package/dist/interfaces/ban-user-options.interface.js.map +0 -1
- package/dist/interfaces/can-metadata.interface.d.ts +0 -9
- package/dist/interfaces/can-metadata.interface.js.map +0 -1
- package/dist/interfaces/change-auth-email-options.interface.js.map +0 -1
- package/dist/interfaces/change-auth-password-options.interface.js.map +0 -1
- package/dist/interfaces/change-auth-password-result.interface.js.map +0 -1
- package/dist/interfaces/create-api-key-options.interface.js.map +0 -1
- package/dist/interfaces/create-member-api-key-options.interface.d.ts +0 -7
- package/dist/interfaces/create-member-api-key-options.interface.js +0 -2
- package/dist/interfaces/create-member-api-key-options.interface.js.map +0 -1
- package/dist/interfaces/create-user-options.interface.js.map +0 -1
- package/dist/interfaces/create-workspace-options.interface.js.map +0 -1
- package/dist/interfaces/created-api-key.interface.d.ts +0 -8
- package/dist/interfaces/created-api-key.interface.js.map +0 -1
- package/dist/interfaces/delete-auth-user-options.interface.js.map +0 -1
- package/dist/interfaces/delete-auth-user-result.interface.js.map +0 -1
- package/dist/interfaces/impersonation-options.interface.js.map +0 -1
- package/dist/interfaces/link-auth-social-account-options.interface.js.map +0 -1
- package/dist/interfaces/link-auth-social-account-result.interface.js.map +0 -1
- package/dist/interfaces/member-api-key-validation.interface.d.ts +0 -17
- package/dist/interfaces/member-api-key-validation.interface.js +0 -2
- package/dist/interfaces/member-api-key-validation.interface.js.map +0 -1
- package/dist/interfaces/request-identity-patch.interface.d.ts +0 -16
- package/dist/interfaces/request-identity-patch.interface.js +0 -2
- package/dist/interfaces/request-identity-patch.interface.js.map +0 -1
- package/dist/interfaces/request-password-reset-options.interface.js.map +0 -1
- package/dist/interfaces/request-password-reset-result.interface.js.map +0 -1
- package/dist/interfaces/request-permissions.interface.js.map +0 -1
- package/dist/interfaces/reset-password-options.interface.js.map +0 -1
- package/dist/interfaces/route-argument-metadata-value.interface.js.map +0 -1
- package/dist/interfaces/scope-policy-options.interface.js.map +0 -1
- package/dist/interfaces/send-verification-email-options.interface.js.map +0 -1
- package/dist/interfaces/serialized-ability-rule.interface.js.map +0 -1
- package/dist/interfaces/sign-in-entity-result.interface.js.map +0 -1
- package/dist/interfaces/sign-in-options.interface.js.map +0 -1
- package/dist/interfaces/sign-in-result.interface.js.map +0 -1
- package/dist/interfaces/sign-in-social-entity-result.interface.js.map +0 -1
- package/dist/interfaces/sign-in-social-options.interface.js.map +0 -1
- package/dist/interfaces/sign-in-social-result.interface.js.map +0 -1
- package/dist/interfaces/sign-up-options.interface.js.map +0 -1
- package/dist/interfaces/sign-up-result.interface.js.map +0 -1
- package/dist/interfaces/unlink-auth-account-options.interface.js.map +0 -1
- package/dist/interfaces/update-api-key-options.interface.d.ts +0 -14
- package/dist/interfaces/update-api-key-options.interface.js.map +0 -1
- package/dist/interfaces/update-auth-user-options.interface.js.map +0 -1
- package/dist/interfaces/update-member-options.interface.d.ts +0 -10
- package/dist/interfaces/update-member-options.interface.js +0 -2
- package/dist/interfaces/update-member-options.interface.js.map +0 -1
- package/dist/interfaces/update-user-options.interface.js.map +0 -1
- package/dist/interfaces/update-workspace-options.interface.js.map +0 -1
- package/dist/interfaces/user-api-key-validation.interface.d.ts +0 -11
- package/dist/interfaces/user-api-key-validation.interface.js.map +0 -1
- package/dist/interfaces/user-has-permissions-options.interface.js.map +0 -1
- package/dist/interfaces/workspace-has-permissions-options.interface.js.map +0 -1
- package/dist/objects/add-member-payload.object.d.ts +0 -5
- package/dist/objects/add-member-payload.object.js +0 -24
- package/dist/objects/add-member-payload.object.js.map +0 -1
- package/dist/objects/auth-ability-rule.object.js.map +0 -1
- package/dist/objects/auth-change-password-result.object.js.map +0 -1
- package/dist/objects/auth-delete-user-result.object.js.map +0 -1
- package/dist/objects/auth-link-social-account-result.object.js.map +0 -1
- package/dist/objects/auth-request-password-reset-result.object.js.map +0 -1
- package/dist/objects/auth-sign-in-result.object.js.map +0 -1
- package/dist/objects/auth-sign-in-social-result.object.js.map +0 -1
- package/dist/objects/auth-social-provider.object.js.map +0 -1
- package/dist/objects/ban-user-payload.object.js.map +0 -1
- package/dist/objects/create-member-api-key-result.object.d.ts +0 -10
- package/dist/objects/create-member-api-key-result.object.js +0 -33
- package/dist/objects/create-member-api-key-result.object.js.map +0 -1
- package/dist/objects/create-user-api-key-result.object.d.ts +0 -10
- package/dist/objects/create-user-api-key-result.object.js +0 -33
- package/dist/objects/create-user-api-key-result.object.js.map +0 -1
- package/dist/objects/create-user-payload.object.js.map +0 -1
- package/dist/objects/create-workspace-payload.object.js.map +0 -1
- package/dist/objects/delete-user-payload.object.js.map +0 -1
- package/dist/objects/delete-workspace-payload.object.js.map +0 -1
- package/dist/objects/leave-workspace-payload.object.js.map +0 -1
- package/dist/objects/member-api-key-permission-option.object.d.ts +0 -10
- package/dist/objects/member-api-key-permission-option.object.js +0 -37
- package/dist/objects/member-api-key-permission-option.object.js.map +0 -1
- package/dist/objects/password-policy.object.js.map +0 -1
- package/dist/objects/remove-member-payload.object.d.ts +0 -5
- package/dist/objects/remove-member-payload.object.js +0 -24
- package/dist/objects/remove-member-payload.object.js.map +0 -1
- package/dist/objects/set-member-permissions-payload.object.d.ts +0 -5
- package/dist/objects/set-member-permissions-payload.object.js +0 -24
- package/dist/objects/set-member-permissions-payload.object.js.map +0 -1
- package/dist/objects/set-member-roles-payload.object.d.ts +0 -5
- package/dist/objects/set-member-roles-payload.object.js +0 -24
- package/dist/objects/set-member-roles-payload.object.js.map +0 -1
- package/dist/objects/set-user-permissions-payload.object.js.map +0 -1
- package/dist/objects/set-user-roles-payload.object.js.map +0 -1
- package/dist/objects/sign-up-payload.object.js.map +0 -1
- package/dist/objects/unban-user-payload.object.js.map +0 -1
- package/dist/objects/update-member-payload.object.d.ts +0 -5
- package/dist/objects/update-member-payload.object.js +0 -24
- package/dist/objects/update-member-payload.object.js.map +0 -1
- package/dist/objects/update-user-payload.object.js.map +0 -1
- package/dist/objects/update-workspace-payload.object.js.map +0 -1
- package/dist/objects/user-api-key-permission-option.object.js.map +0 -1
- package/dist/objects/user-permission-option.object.d.ts +0 -8
- package/dist/objects/user-permission-option.object.js +0 -31
- package/dist/objects/user-permission-option.object.js.map +0 -1
- package/dist/objects/user-role-option.object.d.ts +0 -8
- package/dist/objects/user-role-option.object.js +0 -31
- package/dist/objects/user-role-option.object.js.map +0 -1
- package/dist/objects/workspace-permission-option.object.js.map +0 -1
- package/dist/objects/workspace-role-option.object.js.map +0 -1
- package/dist/permission.constants.js.map +0 -1
- package/dist/policies/create-scope-policy.js.map +0 -1
- package/dist/policies/index.js.map +0 -1
- package/dist/policies/user-scope.policy.js.map +0 -1
- package/dist/policies/workspace-scope.policy.js.map +0 -1
- package/dist/resolvers/auth.resolver.js +0 -352
- package/dist/resolvers/auth.resolver.js.map +0 -1
- package/dist/resolvers/member-api-key.resolver.d.ts +0 -46
- package/dist/resolvers/member-api-key.resolver.js +0 -109
- package/dist/resolvers/member-api-key.resolver.js.map +0 -1
- package/dist/resolvers/member.resolver.d.ts +0 -88
- package/dist/resolvers/member.resolver.js +0 -216
- package/dist/resolvers/member.resolver.js.map +0 -1
- package/dist/resolvers/session.resolver.d.ts +0 -80
- package/dist/resolvers/session.resolver.js +0 -203
- package/dist/resolvers/session.resolver.js.map +0 -1
- package/dist/resolvers/user-api-key.resolver.d.ts +0 -46
- package/dist/resolvers/user-api-key.resolver.js +0 -105
- package/dist/resolvers/user-api-key.resolver.js.map +0 -1
- package/dist/resolvers/user.resolver.d.ts +0 -172
- package/dist/resolvers/user.resolver.js +0 -390
- package/dist/resolvers/user.resolver.js.map +0 -1
- package/dist/resolvers/workspace.resolver.d.ts +0 -104
- package/dist/resolvers/workspace.resolver.js +0 -236
- package/dist/resolvers/workspace.resolver.js.map +0 -1
- package/dist/services/account.service.js +0 -63
- package/dist/services/account.service.js.map +0 -1
- package/dist/services/auth.service.js +0 -443
- package/dist/services/auth.service.js.map +0 -1
- package/dist/services/member-api-key.service.d.ts +0 -76
- package/dist/services/member-api-key.service.js +0 -264
- package/dist/services/member-api-key.service.js.map +0 -1
- package/dist/services/member.service.d.ts +0 -165
- package/dist/services/member.service.js +0 -519
- package/dist/services/member.service.js.map +0 -1
- package/dist/services/session.service.d.ts +0 -83
- package/dist/services/session.service.js +0 -377
- package/dist/services/session.service.js.map +0 -1
- package/dist/services/user-api-key.service.d.ts +0 -74
- package/dist/services/user-api-key.service.js +0 -231
- package/dist/services/user-api-key.service.js.map +0 -1
- package/dist/services/user-deletion.service.d.ts +0 -21
- package/dist/services/user-deletion.service.js +0 -56
- package/dist/services/user-deletion.service.js.map +0 -1
- package/dist/services/user.service.d.ts +0 -172
- package/dist/services/user.service.js +0 -579
- package/dist/services/user.service.js.map +0 -1
- package/dist/services/workspace.service.d.ts +0 -78
- package/dist/services/workspace.service.js +0 -240
- package/dist/services/workspace.service.js.map +0 -1
- package/dist/types/api-key-metadata.type.d.ts +0 -6
- package/dist/types/api-key-metadata.type.js +0 -2
- package/dist/types/api-key-metadata.type.js.map +0 -1
- package/dist/types/api-key-validation.type.d.ts +0 -4
- package/dist/types/api-key-validation.type.js.map +0 -1
- package/dist/types/api-key.type.d.ts +0 -4
- package/dist/types/api-key.type.js +0 -2
- package/dist/types/api-key.type.js.map +0 -1
- package/dist/types/auth-account-selector.type.js.map +0 -1
- package/dist/types/auth-maybe-promise.type.js.map +0 -1
- package/dist/types/auth-module-provider.type.js.map +0 -1
- package/dist/types/auth-module-roles.type.js.map +0 -1
- package/dist/types/auth-module-social-provider-id.type.js.map +0 -1
- package/dist/types/auth-oauth-token-endpoint-auth.type.js.map +0 -1
- package/dist/types/auth-send-reset-password.type.js.map +0 -1
- package/dist/types/auth-send-verification-email.type.js.map +0 -1
- package/dist/types/build-ability-callback.type.d.ts +0 -4
- package/dist/types/build-ability-callback.type.js.map +0 -1
- package/dist/types/can-subject-callback.type.js.map +0 -1
- package/dist/types/lowercase-identifier.type.js.map +0 -1
- package/dist/types/permission-name.type.js.map +0 -1
- package/dist/types/role-name.type.js.map +0 -1
- package/dist/types/route-argument-metadata.type.d.ts +0 -3
- package/dist/types/route-argument-metadata.type.js.map +0 -1
- package/dist/user.constants.d.ts +0 -13
- package/dist/user.constants.js +0 -31
- package/dist/user.constants.js.map +0 -1
- package/dist/utils/api-key-credential.util.js.map +0 -1
- package/dist/utils/api-key-permissions.util.d.ts +0 -21
- package/dist/utils/api-key-permissions.util.js +0 -47
- package/dist/utils/api-key-permissions.util.js.map +0 -1
- package/dist/utils/append-metadata.util.js.map +0 -1
- package/dist/utils/apply-auth-response-cookies.util.js +0 -17
- package/dist/utils/apply-auth-response-cookies.util.js.map +0 -1
- package/dist/utils/auth-role.util.js.map +0 -1
- package/dist/utils/authorize.util.js.map +0 -1
- package/dist/utils/build-request-ability.util.d.ts +0 -8
- package/dist/utils/build-request-ability.util.js +0 -29
- package/dist/utils/build-request-ability.util.js.map +0 -1
- package/dist/utils/can.util.js.map +0 -1
- package/dist/utils/create-email-and-password-config.d.ts +0 -16
- package/dist/utils/create-email-and-password-config.js.map +0 -1
- package/dist/utils/create-email-verification-config.d.ts +0 -13
- package/dist/utils/create-email-verification-config.js.map +0 -1
- package/dist/utils/create-generic-oauth-config.js.map +0 -1
- package/dist/utils/create-oidc-config.js.map +0 -1
- package/dist/utils/create-permission-enum.util.js.map +0 -1
- package/dist/utils/create-social-provider-config.js.map +0 -1
- package/dist/utils/create-social-providers-config.js.map +0 -1
- package/dist/utils/create-user-config.js +0 -55
- package/dist/utils/create-user-config.js.map +0 -1
- package/dist/utils/estimate-entropy.js +0 -13
- package/dist/utils/estimate-entropy.js.map +0 -1
- package/dist/utils/extend-ability.util.js +0 -92
- package/dist/utils/extend-ability.util.js.map +0 -1
- package/dist/utils/extract-api-key.util.js.map +0 -1
- package/dist/utils/generic-oauth-provider-config.type.js.map +0 -1
- package/dist/utils/get-auth-ability.util.js +0 -20
- package/dist/utils/get-auth-ability.util.js.map +0 -1
- package/dist/utils/get-current-api-key.util.d.ts +0 -7
- package/dist/utils/get-current-api-key.util.js +0 -13
- package/dist/utils/get-current-api-key.util.js.map +0 -1
- package/dist/utils/has-oidc-env-config.d.ts +0 -5
- package/dist/utils/has-oidc-env-config.js +0 -9
- package/dist/utils/has-oidc-env-config.js.map +0 -1
- package/dist/utils/has-social-provider-credential-env-config.js.map +0 -1
- package/dist/utils/has-social-provider-env-config.d.ts +0 -7
- package/dist/utils/has-social-provider-env-config.js +0 -10
- package/dist/utils/has-social-provider-env-config.js.map +0 -1
- package/dist/utils/is-env-true.js.map +0 -1
- package/dist/utils/oidc.constants.d.ts +0 -5
- package/dist/utils/oidc.constants.js +0 -24
- package/dist/utils/oidc.constants.js.map +0 -1
- package/dist/utils/omit-credentials.util.js +0 -16
- package/dist/utils/omit-credentials.util.js.map +0 -1
- package/dist/utils/permission-grants.util.d.ts +0 -33
- package/dist/utils/permission-grants.util.js +0 -51
- package/dist/utils/permission-grants.util.js.map +0 -1
- package/dist/utils/resolve-auth-catalog.util.d.ts +0 -12
- package/dist/utils/resolve-auth-catalog.util.js +0 -49
- package/dist/utils/resolve-auth-catalog.util.js.map +0 -1
- package/dist/utils/resolve-effective-permissions.util.d.ts +0 -27
- package/dist/utils/resolve-effective-permissions.util.js +0 -36
- package/dist/utils/resolve-effective-permissions.util.js.map +0 -1
- package/dist/utils/resolve-oidc-prompt.js.map +0 -1
- package/dist/utils/resolve-oidc-scopes.js.map +0 -1
- package/dist/utils/resolve-request-member.util.d.ts +0 -7
- package/dist/utils/resolve-request-member.util.js +0 -27
- package/dist/utils/resolve-request-member.util.js.map +0 -1
- package/dist/utils/resolve-request-permissions.util.d.ts +0 -14
- package/dist/utils/resolve-request-permissions.util.js +0 -47
- package/dist/utils/resolve-request-permissions.util.js.map +0 -1
- package/dist/utils/resolve-required-oidc-env.js.map +0 -1
- package/dist/utils/resolve-required-social-provider-env.js.map +0 -1
- package/dist/utils/resolve-secret.d.ts +0 -7
- package/dist/utils/resolve-secret.js.map +0 -1
- package/dist/utils/resolve-social-provider-enabled.js.map +0 -1
- package/dist/utils/run-auth-query.js +0 -54
- package/dist/utils/run-auth-query.js.map +0 -1
- package/dist/utils/serialize-ability-rules.util.js +0 -38
- package/dist/utils/serialize-ability-rules.util.js.map +0 -1
- package/dist/utils/social-provider.constants.d.ts +0 -22
- package/dist/utils/social-provider.constants.js +0 -31
- package/dist/utils/social-provider.constants.js.map +0 -1
- package/dist/utils/split-auth-providers.js.map +0 -1
- package/dist/with-auth-database-config.d.ts +0 -9
- package/dist/with-auth-database-config.js +0 -21
- package/dist/with-auth-database-config.js.map +0 -1
- package/dist/workspace.constants.d.ts +0 -15
- package/dist/workspace.constants.js +0 -39
- package/dist/workspace.constants.js.map +0 -1
- /package/dist/{inputs → admin/inputs}/ban-user.input.d.ts +0 -0
- /package/dist/{inputs → admin/inputs}/ban-user.input.js +0 -0
- /package/dist/{inputs → admin/inputs}/set-user-password.input.d.ts +0 -0
- /package/dist/{inputs → admin/inputs}/set-user-password.input.js +0 -0
- /package/dist/{inputs → admin/inputs}/update-user.input.d.ts +0 -0
- /package/dist/{inputs → admin/inputs}/update-user.input.js +0 -0
- /package/dist/{inputs → admin/inputs}/user-id.input.d.ts +0 -0
- /package/dist/{inputs → admin/inputs}/user-id.input.js +0 -0
- /package/dist/{interfaces → admin/interfaces}/ban-user-options.interface.d.ts +0 -0
- /package/dist/{interfaces → admin/interfaces}/ban-user-options.interface.js +0 -0
- /package/dist/{interfaces → admin/interfaces}/create-user-options.interface.d.ts +0 -0
- /package/dist/{interfaces → admin/interfaces}/create-user-options.interface.js +0 -0
- /package/dist/{interfaces → admin/interfaces}/impersonation-options.interface.d.ts +0 -0
- /package/dist/{interfaces → admin/interfaces}/impersonation-options.interface.js +0 -0
- /package/dist/{interfaces → admin/interfaces}/update-user-options.interface.d.ts +0 -0
- /package/dist/{interfaces → admin/interfaces}/update-user-options.interface.js +0 -0
- /package/dist/{objects → admin/objects}/ban-user-payload.object.d.ts +0 -0
- /package/dist/{objects → admin/objects}/ban-user-payload.object.js +0 -0
- /package/dist/{objects → admin/objects}/create-user-payload.object.d.ts +0 -0
- /package/dist/{objects → admin/objects}/create-user-payload.object.js +0 -0
- /package/dist/{objects → admin/objects}/delete-user-payload.object.d.ts +0 -0
- /package/dist/{objects → admin/objects}/delete-user-payload.object.js +0 -0
- /package/dist/{objects → admin/objects}/set-user-permissions-payload.object.d.ts +0 -0
- /package/dist/{objects → admin/objects}/set-user-permissions-payload.object.js +0 -0
- /package/dist/{objects → admin/objects}/set-user-roles-payload.object.d.ts +0 -0
- /package/dist/{objects → admin/objects}/set-user-roles-payload.object.js +0 -0
- /package/dist/{objects → admin/objects}/unban-user-payload.object.d.ts +0 -0
- /package/dist/{objects → admin/objects}/unban-user-payload.object.js +0 -0
- /package/dist/{objects → admin/objects}/update-user-payload.object.d.ts +0 -0
- /package/dist/{objects → admin/objects}/update-user-payload.object.js +0 -0
- /package/dist/{decorators → api-key/decorators}/current-api-key.decorator.d.ts +0 -0
- /package/dist/{decorators → api-key/decorators}/current-api-key.decorator.js +0 -0
- /package/dist/{enums → api-key/enums}/user-api-key-permission.enum.d.ts +0 -0
- /package/dist/{inputs → api-key/inputs}/create-user-api-key.input.d.ts +0 -0
- /package/dist/{inputs → api-key/inputs}/create-user-api-key.input.js +0 -0
- /package/dist/{interfaces → api-key/interfaces}/auth-module-api-key-options.interface.js +0 -0
- /package/dist/{interfaces → api-key/interfaces}/auth-module-api-key-scope-options.interface.js +0 -0
- /package/dist/{interfaces → api-key/interfaces}/create-api-key-options.interface.d.ts +0 -0
- /package/dist/{interfaces → api-key/interfaces}/create-api-key-options.interface.js +0 -0
- /package/dist/{interfaces → api-key/interfaces}/created-api-key.interface.js +0 -0
- /package/dist/{interfaces → api-key/interfaces}/update-api-key-options.interface.js +0 -0
- /package/dist/{interfaces → api-key/interfaces}/user-api-key-validation.interface.js +0 -0
- /package/dist/{objects → api-key/objects}/user-api-key-permission-option.object.d.ts +0 -0
- /package/dist/{objects → api-key/objects}/user-api-key-permission-option.object.js +0 -0
- /package/dist/{types → api-key/types}/api-key-validation.type.js +0 -0
- /package/dist/{utils → api-key/utils}/api-key-credential.util.d.ts +0 -0
- /package/dist/{utils → api-key/utils}/api-key-credential.util.js +0 -0
- /package/dist/{utils → api-key/utils}/extract-api-key.util.d.ts +0 -0
- /package/dist/{utils → api-key/utils}/extract-api-key.util.js +0 -0
- /package/dist/{permission.constants.d.ts → common/constants/permission.constants.d.ts} +0 -0
- /package/dist/{permission.constants.js → common/constants/permission.constants.js} +0 -0
- /package/dist/{interfaces → common/interfaces}/ability-context.interface.js +0 -0
- /package/dist/{interfaces → common/interfaces}/ability-rules.interface.d.ts +0 -0
- /package/dist/{interfaces → common/interfaces}/ability-rules.interface.js +0 -0
- /package/dist/{interfaces → common/interfaces}/can-metadata.interface.js +0 -0
- /package/dist/{interfaces → common/interfaces}/request-permissions.interface.d.ts +0 -0
- /package/dist/{interfaces → common/interfaces}/request-permissions.interface.js +0 -0
- /package/dist/{interfaces → common/interfaces}/route-argument-metadata-value.interface.d.ts +0 -0
- /package/dist/{interfaces → common/interfaces}/route-argument-metadata-value.interface.js +0 -0
- /package/dist/{interfaces → common/interfaces}/scope-policy-options.interface.d.ts +0 -0
- /package/dist/{interfaces → common/interfaces}/scope-policy-options.interface.js +0 -0
- /package/dist/{interfaces → common/interfaces}/serialized-ability-rule.interface.d.ts +0 -0
- /package/dist/{interfaces → common/interfaces}/serialized-ability-rule.interface.js +0 -0
- /package/dist/{policies → common/policies}/create-scope-policy.d.ts +0 -0
- /package/dist/{policies → common/policies}/create-scope-policy.js +0 -0
- /package/dist/{policies → common/policies}/index.d.ts +0 -0
- /package/dist/{policies → common/policies}/index.js +0 -0
- /package/dist/{policies → common/policies}/user-scope.policy.d.ts +0 -0
- /package/dist/{policies → common/policies}/user-scope.policy.js +0 -0
- /package/dist/{policies → common/policies}/workspace-scope.policy.d.ts +0 -0
- /package/dist/{policies → common/policies}/workspace-scope.policy.js +0 -0
- /package/dist/{utils → common/utils}/append-metadata.util.d.ts +0 -0
- /package/dist/{utils → common/utils}/append-metadata.util.js +0 -0
- /package/dist/{utils → common/utils}/authorize.util.d.ts +0 -0
- /package/dist/{utils → common/utils}/authorize.util.js +0 -0
- /package/dist/{utils → common/utils}/can.util.d.ts +0 -0
- /package/dist/{utils → common/utils}/can.util.js +0 -0
- /package/dist/{utils → common/utils}/create-permission-enum.util.d.ts +0 -0
- /package/dist/{utils → common/utils}/create-permission-enum.util.js +0 -0
- /package/dist/{utils → common/utils}/extend-ability.util.d.ts +0 -0
- /package/dist/{utils → common/utils}/get-auth-ability.util.d.ts +0 -0
- /package/dist/{utils → common/utils}/omit-credentials.util.d.ts +0 -0
- /package/dist/{utils → common/utils}/run-auth-query.d.ts +0 -0
- /package/dist/{utils → common/utils}/serialize-ability-rules.util.d.ts +0 -0
- /package/dist/{adapters → core/adapters}/mikro-orm/adapter-config.d.ts +0 -0
- /package/dist/{adapters → core/adapters}/mikro-orm/adapter-config.js +0 -0
- /package/dist/{adapters → core/adapters}/mikro-orm/create-custom-adapter.d.ts +0 -0
- /package/dist/{adapters → core/adapters}/mikro-orm/entity-metadata-resolver.d.ts +0 -0
- /package/dist/{adapters → core/adapters}/mikro-orm/where-compiler.d.ts +0 -0
- /package/dist/{adapters → core/adapters}/mikro-orm-adapter.d.ts +0 -0
- /package/dist/{auth-handler.middleware.d.ts → core/auth-handler.middleware.d.ts} +0 -0
- /package/dist/{auth.module-definition.js → core/auth.module-definition.js} +0 -0
- /package/dist/{infrastructure → core}/better-auth-adapter.d.ts +0 -0
- /package/dist/{infrastructure → core}/better-auth-adapter.js +0 -0
- /package/dist/{connections → core/connections}/account.connection-definition.d.ts +0 -0
- /package/dist/{connections → core/connections}/account.connection-definition.js +0 -0
- /package/dist/{connections → core/connections}/session.connection-definition.d.ts +0 -0
- /package/dist/{connections → core/connections}/session.connection-definition.js +0 -0
- /package/dist/{connections → core/connections}/user.connection-definition.d.ts +0 -0
- /package/dist/{connections → core/connections}/user.connection-definition.js +0 -0
- /package/dist/{auth.constants.d.ts → core/constants/auth.constants.d.ts} +0 -0
- /package/dist/{auth.constants.js → core/constants/auth.constants.js} +0 -0
- /package/dist/{decorators → core/decorators}/current-session.decorator.d.ts +0 -0
- /package/dist/{decorators → core/decorators}/current-session.decorator.js +0 -0
- /package/dist/{decorators → core/decorators}/current-user.decorator.d.ts +0 -0
- /package/dist/{decorators → core/decorators}/current-user.decorator.js +0 -0
- /package/dist/{entities → core/entities}/account.entity.d.ts +0 -0
- /package/dist/{entities → core/entities}/session.entity.d.ts +0 -0
- /package/dist/{entities → core/entities}/session.entity.js +0 -0
- /package/dist/{entities → core/entities}/verification.entity.d.ts +0 -0
- /package/dist/{entities → core/entities}/verification.entity.js +0 -0
- /package/dist/{enums → core/enums}/user-permission.enum.d.ts +0 -0
- /package/dist/{enums → core/enums}/user-role.enum.d.ts +0 -0
- /package/dist/{inputs → core/inputs}/auth-change-email.input.d.ts +0 -0
- /package/dist/{inputs → core/inputs}/auth-change-email.input.js +0 -0
- /package/dist/{inputs → core/inputs}/auth-change-password.input.d.ts +0 -0
- /package/dist/{inputs → core/inputs}/auth-change-password.input.js +0 -0
- /package/dist/{inputs → core/inputs}/auth-delete-user.input.d.ts +0 -0
- /package/dist/{inputs → core/inputs}/auth-delete-user.input.js +0 -0
- /package/dist/{inputs → core/inputs}/auth-link-social-account.input.d.ts +0 -0
- /package/dist/{inputs → core/inputs}/auth-link-social-account.input.js +0 -0
- /package/dist/{inputs → core/inputs}/auth-request-password-reset.input.d.ts +0 -0
- /package/dist/{inputs → core/inputs}/auth-request-password-reset.input.js +0 -0
- /package/dist/{inputs → core/inputs}/auth-reset-password.input.d.ts +0 -0
- /package/dist/{inputs → core/inputs}/auth-reset-password.input.js +0 -0
- /package/dist/{inputs → core/inputs}/auth-send-verification-email.input.d.ts +0 -0
- /package/dist/{inputs → core/inputs}/auth-send-verification-email.input.js +0 -0
- /package/dist/{inputs → core/inputs}/auth-sign-in-social.input.d.ts +0 -0
- /package/dist/{inputs → core/inputs}/auth-sign-in-social.input.js +0 -0
- /package/dist/{inputs → core/inputs}/auth-sign-in.input.d.ts +0 -0
- /package/dist/{inputs → core/inputs}/auth-sign-in.input.js +0 -0
- /package/dist/{inputs → core/inputs}/auth-sign-up.input.d.ts +0 -0
- /package/dist/{inputs → core/inputs}/auth-sign-up.input.js +0 -0
- /package/dist/{inputs → core/inputs}/auth-update-user.input.d.ts +0 -0
- /package/dist/{inputs → core/inputs}/auth-update-user.input.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-access-token.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-access-token.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-account-info.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-account-info.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-account.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-account.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-change-email-confirmation-data.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-change-email-confirmation-data.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-delete-account-verification-data.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-delete-account-verification-data.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-email-verification-data.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-email-verification-data.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-account-linking-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-account-linking-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-account-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-account-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-change-email-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-change-email-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-delete-user-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-delete-user-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-email-and-password-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-email-and-password-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-email-verification-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-email-verification-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-middleware-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-middleware-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-oauth-provider.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-oauth-provider.interface.js +0 -0
- /package/dist/{auth-module-options.interface.js → core/interfaces/auth-module-options.interface.js} +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-password-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-password-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-session-cookie-cache-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-session-cookie-cache-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-session-cookie-cache-refresh-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-session-cookie-cache-refresh-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-session-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-session-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-social-provider.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-social-provider.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-user-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-module-user-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-basic-token-endpoint-auth.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-basic-token-endpoint-auth.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-client-assertion-context.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-client-assertion-context.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-custom-token-endpoint-auth.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-custom-token-endpoint-auth.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-mapped-user.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-mapped-user.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-no-token-endpoint-auth.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-no-token-endpoint-auth.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-post-token-endpoint-auth.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-post-token-endpoint-auth.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-private-key-jwt-token-endpoint-auth.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-private-key-jwt-token-endpoint-auth.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-profile.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-profile.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-refresh-context.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-refresh-context.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-token-request-client-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-token-request-client-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-token-request-context.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-token-request-context.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-tokens.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-tokens.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-user-info.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-oauth-user-info.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-provider-user-info.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-provider-user-info.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-refreshed-token.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-refreshed-token.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-reset-password-data.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-reset-password-data.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-social-provider-user-info.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-social-provider-user-info.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-social-provider.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-social-provider.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-user.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/auth-user.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/authenticated-session.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/authenticated-session.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/change-auth-email-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/change-auth-email-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/change-auth-password-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/change-auth-password-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/change-auth-password-result.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/change-auth-password-result.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/delete-auth-user-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/delete-auth-user-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/delete-auth-user-result.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/delete-auth-user-result.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/link-auth-social-account-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/link-auth-social-account-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/link-auth-social-account-result.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/link-auth-social-account-result.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/request-password-reset-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/request-password-reset-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/request-password-reset-result.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/request-password-reset-result.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/reset-password-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/reset-password-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/send-verification-email-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/send-verification-email-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/sign-in-entity-result.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/sign-in-entity-result.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/sign-in-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/sign-in-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/sign-in-result.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/sign-in-result.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/sign-in-social-entity-result.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/sign-in-social-entity-result.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/sign-in-social-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/sign-in-social-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/sign-in-social-result.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/sign-in-social-result.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/sign-up-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/sign-up-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/sign-up-result.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/sign-up-result.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/unlink-auth-account-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/unlink-auth-account-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/update-auth-user-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/update-auth-user-options.interface.js +0 -0
- /package/dist/{interfaces → core/interfaces}/user-has-permissions-options.interface.d.ts +0 -0
- /package/dist/{interfaces → core/interfaces}/user-has-permissions-options.interface.js +0 -0
- /package/dist/{objects → core/objects}/auth-ability-rule.object.d.ts +0 -0
- /package/dist/{objects → core/objects}/auth-ability-rule.object.js +0 -0
- /package/dist/{objects → core/objects}/auth-change-password-result.object.d.ts +0 -0
- /package/dist/{objects → core/objects}/auth-change-password-result.object.js +0 -0
- /package/dist/{objects → core/objects}/auth-delete-user-result.object.d.ts +0 -0
- /package/dist/{objects → core/objects}/auth-delete-user-result.object.js +0 -0
- /package/dist/{objects → core/objects}/auth-link-social-account-result.object.d.ts +0 -0
- /package/dist/{objects → core/objects}/auth-link-social-account-result.object.js +0 -0
- /package/dist/{objects → core/objects}/auth-request-password-reset-result.object.d.ts +0 -0
- /package/dist/{objects → core/objects}/auth-request-password-reset-result.object.js +0 -0
- /package/dist/{objects → core/objects}/auth-sign-in-result.object.d.ts +0 -0
- /package/dist/{objects → core/objects}/auth-sign-in-result.object.js +0 -0
- /package/dist/{objects → core/objects}/auth-sign-in-social-result.object.d.ts +0 -0
- /package/dist/{objects → core/objects}/auth-sign-in-social-result.object.js +0 -0
- /package/dist/{objects → core/objects}/auth-social-provider.object.d.ts +0 -0
- /package/dist/{objects → core/objects}/auth-social-provider.object.js +0 -0
- /package/dist/{objects → core/objects}/password-policy.object.d.ts +0 -0
- /package/dist/{objects → core/objects}/password-policy.object.js +0 -0
- /package/dist/{objects → core/objects}/sign-up-payload.object.d.ts +0 -0
- /package/dist/{objects → core/objects}/sign-up-payload.object.js +0 -0
- /package/dist/{resolvers → core/resolvers}/auth.resolver.d.ts +0 -0
- /package/dist/{infrastructure → core}/revoked-authentication.exception.d.ts +0 -0
- /package/dist/{infrastructure → core}/revoked-authentication.exception.js +0 -0
- /package/dist/{services → core/services}/account.service.d.ts +0 -0
- /package/dist/{services → core/services}/auth.service.d.ts +0 -0
- /package/dist/{types → core/types}/auth-account-selector.type.d.ts +0 -0
- /package/dist/{types → core/types}/auth-account-selector.type.js +0 -0
- /package/dist/{types → core/types}/auth-maybe-promise.type.d.ts +0 -0
- /package/dist/{types → core/types}/auth-maybe-promise.type.js +0 -0
- /package/dist/{types → core/types}/auth-module-provider.type.d.ts +0 -0
- /package/dist/{types → core/types}/auth-module-provider.type.js +0 -0
- /package/dist/{types → core/types}/auth-module-roles.type.d.ts +0 -0
- /package/dist/{types → core/types}/auth-module-roles.type.js +0 -0
- /package/dist/{types → core/types}/auth-module-social-provider-id.type.d.ts +0 -0
- /package/dist/{types → core/types}/auth-module-social-provider-id.type.js +0 -0
- /package/dist/{types → core/types}/auth-oauth-token-endpoint-auth.type.d.ts +0 -0
- /package/dist/{types → core/types}/auth-oauth-token-endpoint-auth.type.js +0 -0
- /package/dist/{types → core/types}/auth-send-reset-password.type.d.ts +0 -0
- /package/dist/{types → core/types}/auth-send-reset-password.type.js +0 -0
- /package/dist/{types → core/types}/auth-send-verification-email.type.d.ts +0 -0
- /package/dist/{types → core/types}/auth-send-verification-email.type.js +0 -0
- /package/dist/{types → core/types}/build-ability-callback.type.js +0 -0
- /package/dist/{types → core/types}/can-subject-callback.type.d.ts +0 -0
- /package/dist/{types → core/types}/can-subject-callback.type.js +0 -0
- /package/dist/{types → core/types}/lowercase-identifier.type.d.ts +0 -0
- /package/dist/{types → core/types}/lowercase-identifier.type.js +0 -0
- /package/dist/{types → core/types}/permission-name.type.d.ts +0 -0
- /package/dist/{types → core/types}/permission-name.type.js +0 -0
- /package/dist/{types → core/types}/role-name.type.d.ts +0 -0
- /package/dist/{types → core/types}/role-name.type.js +0 -0
- /package/dist/{types → core/types}/route-argument-metadata.type.js +0 -0
- /package/dist/{utils → core/utils}/apply-auth-response-cookies.util.d.ts +0 -0
- /package/dist/{utils → core/utils}/auth-role.util.d.ts +0 -0
- /package/dist/{utils → core/utils}/auth-role.util.js +0 -0
- /package/dist/{utils → core/utils}/create-email-and-password-config.js +0 -0
- /package/dist/{utils → core/utils}/create-email-verification-config.js +0 -0
- /package/dist/{utils → core/utils}/create-generic-oauth-config.d.ts +0 -0
- /package/dist/{utils → core/utils}/create-generic-oauth-config.js +0 -0
- /package/dist/{utils → core/utils}/create-oidc-config.d.ts +0 -0
- /package/dist/{utils → core/utils}/create-oidc-config.js +0 -0
- /package/dist/{utils → core/utils}/create-social-provider-config.d.ts +0 -0
- /package/dist/{utils → core/utils}/create-social-provider-config.js +0 -0
- /package/dist/{utils → core/utils}/create-social-providers-config.d.ts +0 -0
- /package/dist/{utils → core/utils}/create-social-providers-config.js +0 -0
- /package/dist/{utils → core/utils}/create-user-config.d.ts +0 -0
- /package/dist/{utils → core/utils}/estimate-entropy.d.ts +0 -0
- /package/dist/{utils → core/utils}/generic-oauth-provider-config.type.d.ts +0 -0
- /package/dist/{utils → core/utils}/generic-oauth-provider-config.type.js +0 -0
- /package/dist/{utils → core/utils}/has-social-provider-credential-env-config.d.ts +0 -0
- /package/dist/{utils → core/utils}/has-social-provider-credential-env-config.js +0 -0
- /package/dist/{utils → core/utils}/is-env-true.d.ts +0 -0
- /package/dist/{utils → core/utils}/is-env-true.js +0 -0
- /package/dist/{utils → core/utils}/resolve-oidc-prompt.d.ts +0 -0
- /package/dist/{utils → core/utils}/resolve-oidc-prompt.js +0 -0
- /package/dist/{utils → core/utils}/resolve-oidc-scopes.d.ts +0 -0
- /package/dist/{utils → core/utils}/resolve-oidc-scopes.js +0 -0
- /package/dist/{utils → core/utils}/resolve-required-oidc-env.d.ts +0 -0
- /package/dist/{utils → core/utils}/resolve-required-oidc-env.js +0 -0
- /package/dist/{utils → core/utils}/resolve-required-social-provider-env.d.ts +0 -0
- /package/dist/{utils → core/utils}/resolve-required-social-provider-env.js +0 -0
- /package/dist/{utils → core/utils}/resolve-secret.js +0 -0
- /package/dist/{utils → core/utils}/resolve-social-provider-enabled.d.ts +0 -0
- /package/dist/{utils → core/utils}/resolve-social-provider-enabled.js +0 -0
- /package/dist/{utils → core/utils}/split-auth-providers.d.ts +0 -0
- /package/dist/{utils → core/utils}/split-auth-providers.js +0 -0
- /package/dist/{connections → workspace/connections}/workspace.connection-definition.d.ts +0 -0
- /package/dist/{decorators → workspace/decorators}/current-workspace.decorator.d.ts +0 -0
- /package/dist/{decorators → workspace/decorators}/current-workspace.decorator.js +0 -0
- /package/dist/{enums → workspace/enums}/workspace-permission.enum.d.ts +0 -0
- /package/dist/{enums → workspace/enums}/workspace-role.enum.d.ts +0 -0
- /package/dist/{inputs → workspace/inputs}/create-workspace.input.d.ts +0 -0
- /package/dist/{inputs → workspace/inputs}/create-workspace.input.js +0 -0
- /package/dist/{inputs → workspace/inputs}/update-workspace.input.d.ts +0 -0
- /package/dist/{inputs → workspace/inputs}/update-workspace.input.js +0 -0
- /package/dist/{interfaces → workspace/interfaces}/auth-module-workspace-options.interface.js +0 -0
- /package/dist/{interfaces → workspace/interfaces}/create-workspace-options.interface.d.ts +0 -0
- /package/dist/{interfaces → workspace/interfaces}/create-workspace-options.interface.js +0 -0
- /package/dist/{interfaces → workspace/interfaces}/update-workspace-options.interface.d.ts +0 -0
- /package/dist/{interfaces → workspace/interfaces}/update-workspace-options.interface.js +0 -0
- /package/dist/{interfaces → workspace/interfaces}/workspace-has-permissions-options.interface.d.ts +0 -0
- /package/dist/{interfaces → workspace/interfaces}/workspace-has-permissions-options.interface.js +0 -0
- /package/dist/{objects → workspace/objects}/create-workspace-payload.object.d.ts +0 -0
- /package/dist/{objects → workspace/objects}/create-workspace-payload.object.js +0 -0
- /package/dist/{objects → workspace/objects}/delete-workspace-payload.object.d.ts +0 -0
- /package/dist/{objects → workspace/objects}/delete-workspace-payload.object.js +0 -0
- /package/dist/{objects → workspace/objects}/leave-workspace-payload.object.d.ts +0 -0
- /package/dist/{objects → workspace/objects}/leave-workspace-payload.object.js +0 -0
- /package/dist/{objects → workspace/objects}/update-workspace-payload.object.d.ts +0 -0
- /package/dist/{objects → workspace/objects}/update-workspace-payload.object.js +0 -0
- /package/dist/{objects → workspace/objects}/workspace-permission-option.object.d.ts +0 -0
- /package/dist/{objects → workspace/objects}/workspace-permission-option.object.js +0 -0
- /package/dist/{objects → workspace/objects}/workspace-role-option.object.d.ts +0 -0
- /package/dist/{objects → workspace/objects}/workspace-role-option.object.js +0 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { Args, Info, Parent, ResolveField, Resolver } from "@nest-boot/graphql";
|
|
14
|
+
import { filterPermissionValues } from "../../common/utils/filter-permission-values.util.js";
|
|
15
|
+
import { AccountConnection, AccountConnectionArgs, } from "../connections/account.connection-definition.js";
|
|
16
|
+
import { SessionConnection, SessionConnectionArgs, } from "../connections/session.connection-definition.js";
|
|
17
|
+
import { User } from "../entities/user.entity.js";
|
|
18
|
+
import { UserPermission } from "../enums/user-permission.enum.js";
|
|
19
|
+
import { AccountService } from "../services/account.service.js";
|
|
20
|
+
import { SessionService } from "../services/session.service.js";
|
|
21
|
+
/** Self-service relations on authenticated users. */
|
|
22
|
+
let UserResolver = class UserResolver {
|
|
23
|
+
sessionService;
|
|
24
|
+
accountService;
|
|
25
|
+
/**
|
|
26
|
+
* Resolves grants supported by the current GraphQL permission catalog.
|
|
27
|
+
* @param user - Identity or credential whose stored grants are being presented.
|
|
28
|
+
* @returns Serializable permission values without mutating effective grants.
|
|
29
|
+
*/
|
|
30
|
+
permissions(user) {
|
|
31
|
+
return filterPermissionValues(user.permissions, UserPermission);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Creates this resolver.
|
|
35
|
+
* @param sessionService - Self-session queries.
|
|
36
|
+
* @param accountService - Linked account queries.
|
|
37
|
+
*/
|
|
38
|
+
constructor(sessionService, accountService) {
|
|
39
|
+
this.sessionService = sessionService;
|
|
40
|
+
this.accountService = accountService;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Lists active sessions belonging to the parent user after service authorization.
|
|
44
|
+
* @param user - The user whose account is being accessed.
|
|
45
|
+
* @param args - Pagination, filtering, and ordering arguments.
|
|
46
|
+
* @param info - GraphQL selection information used to shape the query.
|
|
47
|
+
* @returns Paginated active sessions belonging to the user.
|
|
48
|
+
*/
|
|
49
|
+
async sessions(user, args, info) {
|
|
50
|
+
return await this.sessionService.getSessionConnectionByUser(user, args, info);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Paginates the parent's linked accounts after service authorization.
|
|
54
|
+
* @param user - The user whose account is being accessed.
|
|
55
|
+
* @param args - Pagination, filtering, and ordering arguments.
|
|
56
|
+
* @param info - GraphQL selection information used to shape the query.
|
|
57
|
+
* @returns Paginated linked accounts with credentials omitted.
|
|
58
|
+
*/
|
|
59
|
+
async accounts(user, args, info) {
|
|
60
|
+
return await this.accountService.getAccountConnectionByUser(user, args, info);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
__decorate([
|
|
64
|
+
ResolveField(() => [UserPermission]),
|
|
65
|
+
__param(0, Parent()),
|
|
66
|
+
__metadata("design:type", Function),
|
|
67
|
+
__metadata("design:paramtypes", [User]),
|
|
68
|
+
__metadata("design:returntype", Array)
|
|
69
|
+
], UserResolver.prototype, "permissions", null);
|
|
70
|
+
__decorate([
|
|
71
|
+
ResolveField(() => SessionConnection),
|
|
72
|
+
__param(0, Parent()),
|
|
73
|
+
__param(1, Args({ type: () => SessionConnectionArgs })),
|
|
74
|
+
__param(2, Info()),
|
|
75
|
+
__metadata("design:type", Function),
|
|
76
|
+
__metadata("design:paramtypes", [User, Object, Object]),
|
|
77
|
+
__metadata("design:returntype", Promise)
|
|
78
|
+
], UserResolver.prototype, "sessions", null);
|
|
79
|
+
__decorate([
|
|
80
|
+
ResolveField(() => AccountConnection),
|
|
81
|
+
__param(0, Parent()),
|
|
82
|
+
__param(1, Args({ type: () => AccountConnectionArgs })),
|
|
83
|
+
__param(2, Info()),
|
|
84
|
+
__metadata("design:type", Function),
|
|
85
|
+
__metadata("design:paramtypes", [User, Object, Object]),
|
|
86
|
+
__metadata("design:returntype", Promise)
|
|
87
|
+
], UserResolver.prototype, "accounts", null);
|
|
88
|
+
UserResolver = __decorate([
|
|
89
|
+
Resolver(() => User),
|
|
90
|
+
__metadata("design:paramtypes", [SessionService,
|
|
91
|
+
AccountService])
|
|
92
|
+
], UserResolver);
|
|
93
|
+
export { UserResolver };
|
|
94
|
+
//# sourceMappingURL=user.resolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.resolver.js","sourceRoot":"","sources":["../../../src/core/resolvers/user.resolver.ts"],"names":[],"mappings":";;;;;;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C;IADC,YAAY,CAAC,GAAG,EAAE,CAAC,CAAC,cAAc,CAAC,CAAC;IACxB,WAAA,MAAM,EAAE,CAAA;;qCAAO,IAAI;;+CAE/B;AAoBK;IADL,YAAY,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC;IAEnC,WAAA,MAAM,EAAE,CAAA;IACR,WAAA,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,qBAAqB,EAAE,CAAC,CAAA;IAE3C,WAAA,IAAI,EAAE,CAAA;;qCAHS,IAAI;;4CAUrB;AAUK;IADL,YAAY,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC;IAEnC,WAAA,MAAM,EAAE,CAAA;IACR,WAAA,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,qBAAqB,EAAE,CAAC,CAAA;IAE3C,WAAA,IAAI,EAAE,CAAA;;qCAHS,IAAI;;4CAUrB;AA7DU,YAAY;IADxB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;qCAkBgB,cAAc;QACd,cAAc;GAlBtC,YAAY,CA8DxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revoked-authentication.exception.js","sourceRoot":"","sources":["../../src/core/revoked-authentication.exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;;GAGG;AACH,MAAM,OAAO,8BAA+B,SAAQ,kBAAkB;CAAG"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { EntityManager } from "@mikro-orm/core";
|
|
11
|
+
import { ConnectionManager, } from "@nest-boot/graphql-connection";
|
|
12
|
+
import { ForbiddenException, Injectable } from "@nestjs/common";
|
|
13
|
+
import { getCurrentApiKey } from "../../api-key/utils/get-current-api-key.util.js";
|
|
14
|
+
import { omitCredentials } from "../../common/utils/omit-credentials.util.js";
|
|
15
|
+
import { AccountConnection } from "../connections/account.connection-definition.js";
|
|
16
|
+
import { assertCurrentUser } from "../utils/assert-current-identity.util.js";
|
|
17
|
+
/** Safe account queries scoped to the current user session and application RLS. */
|
|
18
|
+
let AccountService = class AccountService {
|
|
19
|
+
em;
|
|
20
|
+
/**
|
|
21
|
+
* Creates the account query service.
|
|
22
|
+
* @param em - Entity manager used for persistence.
|
|
23
|
+
*/
|
|
24
|
+
constructor(em) {
|
|
25
|
+
this.em = em;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Paginates the current session user's accounts without loading credentials.
|
|
29
|
+
* @param user - The user whose account is being accessed.
|
|
30
|
+
* @param args - Pagination, filtering, and ordering arguments.
|
|
31
|
+
* @param info - GraphQL selection information used to shape the query.
|
|
32
|
+
* @returns Paginated provider accounts with credentials omitted.
|
|
33
|
+
*/
|
|
34
|
+
async getAccountConnectionByUser(user, args, info) {
|
|
35
|
+
assertCurrentUser(user);
|
|
36
|
+
if (getCurrentApiKey()) {
|
|
37
|
+
throw new ForbiddenException("Account inspection requires a user session");
|
|
38
|
+
}
|
|
39
|
+
const connection = await new ConnectionManager(this.em).find(AccountConnection, args, {
|
|
40
|
+
...(info && { info }),
|
|
41
|
+
where: { user: String(user.id) },
|
|
42
|
+
exclude: ["password", "accessToken", "refreshToken", "idToken"],
|
|
43
|
+
});
|
|
44
|
+
return {
|
|
45
|
+
...connection,
|
|
46
|
+
edges: connection.edges.map((edge) => ({
|
|
47
|
+
...edge,
|
|
48
|
+
node: omitCredentials(edge.node, [
|
|
49
|
+
"password",
|
|
50
|
+
"accessToken",
|
|
51
|
+
"refreshToken",
|
|
52
|
+
"idToken",
|
|
53
|
+
]),
|
|
54
|
+
})),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
AccountService = __decorate([
|
|
59
|
+
Injectable(),
|
|
60
|
+
__metadata("design:paramtypes", [EntityManager])
|
|
61
|
+
], AccountService);
|
|
62
|
+
export { AccountService };
|
|
63
|
+
//# sourceMappingURL=account.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.service.js","sourceRoot":"","sources":["../../../src/core/services/account.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAEL,iBAAiB,GAElB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AAGpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE7E,mFAAmF;AAE5E,IAAM,cAAc,GAApB,MAAM,cAAc;IAKI;IAJ7B;;;OAGG;IACH,YAA6B,EAAiB;QAAjB,OAAE,GAAF,EAAE,CAAe;IAAG,CAAC;IAElD;;;;;;OAMG;IACH,KAAK,CAAC,0BAA0B,CAC9B,IAAU,EACV,IAAsC,EACtC,IAAyB;QAMzB,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,gBAAgB,EAAE,EAAE,CAAC;YACvB,MAAM,IAAI,kBAAkB,CAC1B,4CAA4C,CAC7C,CAAC;QACJ,CAAC;QACD,MAAM,UAAU,GAAG,MAAM,IAAI,iBAAiB,CAC5C,IAAI,CAAC,EAAsB,CAC5B,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,EAAE;YAC9B,GAAG,CAAC,IAAI,IAAI,EAAE,IAAI,EAAE,CAAC;YACrB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAChC,OAAO,EAAE,CAAC,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,CAAC;SAChE,CAAC,CAAC;QACH,OAAO;YACL,GAAG,UAAU;YACb,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBACrC,GAAG,IAAI;gBACP,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE;oBAC/B,UAAU;oBACV,aAAa;oBACb,cAAc;oBACd,SAAS;iBACV,CAAC;aACH,CAAC,CAAC;SACJ,CAAC;IACJ,CAAC;CACF,CAAA;AAjDY,cAAc;IAD1B,UAAU,EAAE;qCAMsB,aAAa;GALnC,cAAc,CAiD1B"}
|
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { headers, RequestContext } from "@nest-boot/request-context";
|
|
14
|
+
import { ForbiddenException, Inject, Injectable } from "@nestjs/common";
|
|
15
|
+
import { AuthMiddleware } from "../auth.middleware.js";
|
|
16
|
+
import { adaptBetterAuth, } from "../better-auth-adapter.js";
|
|
17
|
+
import { AUTH_TOKEN } from "../constants/auth.constants.js";
|
|
18
|
+
import { Session } from "../entities/session.entity.js";
|
|
19
|
+
import { User } from "../entities/user.entity.js";
|
|
20
|
+
import { applyAuthResponseCookies } from "../utils/apply-auth-response-cookies.util.js";
|
|
21
|
+
import { SessionService } from "./session.service.js";
|
|
22
|
+
import { UserService } from "./user.service.js";
|
|
23
|
+
/** Application-facing user and account authentication operations. */
|
|
24
|
+
let AuthService = class AuthService {
|
|
25
|
+
authMiddleware;
|
|
26
|
+
userService;
|
|
27
|
+
sessionService;
|
|
28
|
+
/**
|
|
29
|
+
* Creates a new AuthService instance.
|
|
30
|
+
* @param auth - Internal Better Auth instance.
|
|
31
|
+
* @param authMiddleware - Middleware that populates the request identity.
|
|
32
|
+
* @param userService - Service for user profiles and permissions.
|
|
33
|
+
* @param sessionService - Service for session queries and revocation.
|
|
34
|
+
*/
|
|
35
|
+
constructor(auth, authMiddleware, userService, sessionService) {
|
|
36
|
+
this.authMiddleware = authMiddleware;
|
|
37
|
+
this.userService = userService;
|
|
38
|
+
this.sessionService = sessionService;
|
|
39
|
+
this.auth = adaptBetterAuth(auth);
|
|
40
|
+
}
|
|
41
|
+
auth;
|
|
42
|
+
/**
|
|
43
|
+
* Returns the public credential password policy.
|
|
44
|
+
* @returns Configured minimum and maximum password lengths.
|
|
45
|
+
*/
|
|
46
|
+
getPasswordPolicy() {
|
|
47
|
+
return this.userService.getPasswordPolicy();
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Starts impersonation and adopts its identity before returning application fields.
|
|
51
|
+
* @param id - Identifier of the record to access.
|
|
52
|
+
* @returns User represented by the new impersonation session.
|
|
53
|
+
*/
|
|
54
|
+
async impersonateUser(id) {
|
|
55
|
+
this.authMiddleware.assertAuthenticationCanChange();
|
|
56
|
+
const result = await this.userService.impersonateUser(this.getCurrentUser(), id);
|
|
57
|
+
return await this.adoptSession(result.session.token);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Restores the administrator and its abilities/RLS scope in the same request.
|
|
61
|
+
* @returns Restored administrator, or null when there was no impersonation session.
|
|
62
|
+
*/
|
|
63
|
+
async stopImpersonating() {
|
|
64
|
+
this.authMiddleware.assertAuthenticationCanChange();
|
|
65
|
+
const session = RequestContext.isActive()
|
|
66
|
+
? RequestContext.get(Session)
|
|
67
|
+
: null;
|
|
68
|
+
if (!session) {
|
|
69
|
+
throw new ForbiddenException("A user session is required");
|
|
70
|
+
}
|
|
71
|
+
const result = await this.userService.stopImpersonating(session);
|
|
72
|
+
return result ? await this.adoptSession(result.session.token) : null;
|
|
73
|
+
}
|
|
74
|
+
async adoptSession(token) {
|
|
75
|
+
const user = await this.authMiddleware.authenticateSession(token);
|
|
76
|
+
await this.sessionService.setSessionCookie(token);
|
|
77
|
+
return user;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Registers a user without exposing relations that require a session.
|
|
81
|
+
* @param options - Configuration for this operation.
|
|
82
|
+
* @returns Created user's identifier and optional session token.
|
|
83
|
+
*/
|
|
84
|
+
async signUpPayload(options) {
|
|
85
|
+
const result = await this.signUp(options);
|
|
86
|
+
if (result.token) {
|
|
87
|
+
await this.resolveResultUser(result.user, result.token);
|
|
88
|
+
}
|
|
89
|
+
return { id: result.user.id, token: result.token };
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Signs in and establishes the new identity for nested GraphQL selections.
|
|
93
|
+
* @param options - Configuration for this operation.
|
|
94
|
+
* @returns Sign-in response with the persisted user entity.
|
|
95
|
+
*/
|
|
96
|
+
async signInEntity(options) {
|
|
97
|
+
const result = await this.signIn(options);
|
|
98
|
+
return {
|
|
99
|
+
...result,
|
|
100
|
+
user: await this.resolveResultUser(result.user, result.token),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Returns a redirect payload or the authenticated application user.
|
|
105
|
+
* @param options - Configuration for this operation.
|
|
106
|
+
* @returns Social sign-in response with a persisted user when available.
|
|
107
|
+
*/
|
|
108
|
+
async signInSocialEntity(options) {
|
|
109
|
+
const result = await this.signInSocial(options);
|
|
110
|
+
return {
|
|
111
|
+
...result,
|
|
112
|
+
user: result.user
|
|
113
|
+
? await this.resolveResultUser(result.user, result.token)
|
|
114
|
+
: null,
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
async resolveResultUser(user, token) {
|
|
118
|
+
if (token) {
|
|
119
|
+
const current = RequestContext.isActive()
|
|
120
|
+
? RequestContext.get(User)
|
|
121
|
+
: null;
|
|
122
|
+
const session = RequestContext.isActive()
|
|
123
|
+
? RequestContext.get(Session)
|
|
124
|
+
: null;
|
|
125
|
+
if (current && session?.token === token) {
|
|
126
|
+
return current;
|
|
127
|
+
}
|
|
128
|
+
const entity = await this.authMiddleware.authenticateSession(token);
|
|
129
|
+
return entity;
|
|
130
|
+
}
|
|
131
|
+
// Registration without a session must not authenticate the request. Only
|
|
132
|
+
// load the exact user returned by the successful registration operation.
|
|
133
|
+
return await this.authMiddleware.resolveRegisteredUser(user.id);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Returns the current user, rejecting principals without a user identity.
|
|
137
|
+
* @returns Authenticated user from the current request.
|
|
138
|
+
*/
|
|
139
|
+
getCurrentUser() {
|
|
140
|
+
const user = RequestContext.isActive() ? RequestContext.get(User) : null;
|
|
141
|
+
if (!user) {
|
|
142
|
+
throw new ForbiddenException("A user identity is required");
|
|
143
|
+
}
|
|
144
|
+
return user;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Lists social and generic OAuth providers currently enabled.
|
|
148
|
+
* @returns Provider identifiers and display names available for sign-in.
|
|
149
|
+
*/
|
|
150
|
+
async listSocialProviders() {
|
|
151
|
+
const context = await this.auth.$context;
|
|
152
|
+
return context.socialProviders.map(({ id, name }) => ({
|
|
153
|
+
id,
|
|
154
|
+
name,
|
|
155
|
+
}));
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Signs up a user with an email address and password.
|
|
159
|
+
* @param options - Configuration for this operation.
|
|
160
|
+
* @returns User registration response and optional session token.
|
|
161
|
+
*/
|
|
162
|
+
async signUp(options) {
|
|
163
|
+
this.authMiddleware.assertAuthenticationCanChange();
|
|
164
|
+
const result = await this.auth.api.signUpEmail({
|
|
165
|
+
body: options,
|
|
166
|
+
headers: headers(),
|
|
167
|
+
returnHeaders: true,
|
|
168
|
+
});
|
|
169
|
+
if (result.response.token) {
|
|
170
|
+
await this.authMiddleware.authenticateSession(result.response.token);
|
|
171
|
+
}
|
|
172
|
+
applyAuthResponseCookies(result.headers);
|
|
173
|
+
return result.response;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Signs in a user with an email address and password.
|
|
177
|
+
* @param options - Configuration for this operation.
|
|
178
|
+
* @returns Normalized password sign-in response.
|
|
179
|
+
*/
|
|
180
|
+
async signIn(options) {
|
|
181
|
+
this.authMiddleware.assertAuthenticationCanChange();
|
|
182
|
+
const result = await this.auth.api.signInEmail({
|
|
183
|
+
body: options,
|
|
184
|
+
headers: headers(),
|
|
185
|
+
returnHeaders: true,
|
|
186
|
+
});
|
|
187
|
+
if (result.response.token) {
|
|
188
|
+
await this.authMiddleware.authenticateSession(result.response.token);
|
|
189
|
+
}
|
|
190
|
+
applyAuthResponseCookies(result.headers);
|
|
191
|
+
return this.normalizeSignInResult(result.response);
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Starts a social or generic OAuth sign-in flow.
|
|
195
|
+
* @param options - Configuration for this operation.
|
|
196
|
+
* @returns Normalized social sign-in response.
|
|
197
|
+
*/
|
|
198
|
+
async signInSocial(options) {
|
|
199
|
+
this.authMiddleware.assertAuthenticationCanChange();
|
|
200
|
+
const result = await this.auth.api.signInSocial({
|
|
201
|
+
body: options,
|
|
202
|
+
headers: headers(),
|
|
203
|
+
returnHeaders: true,
|
|
204
|
+
});
|
|
205
|
+
const response = this.normalizeSignInSocialResult(result.response);
|
|
206
|
+
if (response.token) {
|
|
207
|
+
await this.authMiddleware.authenticateSession(response.token);
|
|
208
|
+
}
|
|
209
|
+
applyAuthResponseCookies(result.headers);
|
|
210
|
+
return response;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Signs out the session represented by the current request context.
|
|
214
|
+
* @returns Whether the current session was signed out successfully.
|
|
215
|
+
*/
|
|
216
|
+
async signOut() {
|
|
217
|
+
this.authMiddleware.assertAuthenticationCanChange();
|
|
218
|
+
const result = await this.auth.api.signOut({
|
|
219
|
+
headers: await this.sessionService.getCurrentSessionHeaders(),
|
|
220
|
+
returnHeaders: true,
|
|
221
|
+
});
|
|
222
|
+
if (result.response.success) {
|
|
223
|
+
this.authMiddleware.clearAuthentication();
|
|
224
|
+
}
|
|
225
|
+
applyAuthResponseCookies(result.headers);
|
|
226
|
+
return result.response.success;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Sends an email-verification link to an unverified email address.
|
|
230
|
+
* @param options - Configuration for this operation.
|
|
231
|
+
* @returns Whether the verification email request succeeded.
|
|
232
|
+
*/
|
|
233
|
+
async sendVerificationEmail(options) {
|
|
234
|
+
const result = await this.auth.api.sendVerificationEmail({ body: options });
|
|
235
|
+
return result.status;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Requests an enumeration-safe password-reset email.
|
|
239
|
+
* @param options - Configuration for this operation.
|
|
240
|
+
* @returns Password reset request status and message.
|
|
241
|
+
*/
|
|
242
|
+
async requestPasswordReset(options) {
|
|
243
|
+
return await this.auth.api.requestPasswordReset({ body: options });
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Resets a credential password using a password-reset token.
|
|
247
|
+
* @param options - Configuration for this operation.
|
|
248
|
+
* @returns Whether the password was reset successfully.
|
|
249
|
+
*/
|
|
250
|
+
async resetPassword(options) {
|
|
251
|
+
this.authMiddleware.assertAuthenticationCanChange();
|
|
252
|
+
const result = await this.auth.api.resetPassword({ body: options });
|
|
253
|
+
if (result.status) {
|
|
254
|
+
await this.authMiddleware.revalidateCurrentSession();
|
|
255
|
+
}
|
|
256
|
+
return result.status;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Verifies the authenticated user's credential password.
|
|
260
|
+
* @param password - Plaintext password to verify.
|
|
261
|
+
* @returns Whether password verification succeeded.
|
|
262
|
+
*/
|
|
263
|
+
async verifyCurrentUserPassword(password) {
|
|
264
|
+
const result = await this.auth.api.verifyPassword({
|
|
265
|
+
body: { password },
|
|
266
|
+
headers: await this.sessionService.getCurrentSessionHeaders(),
|
|
267
|
+
});
|
|
268
|
+
return result.status;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Updates the authenticated user's profile and refreshes its request identity.
|
|
272
|
+
* @param options - Configuration for this operation.
|
|
273
|
+
* @returns Whether the profile update succeeded.
|
|
274
|
+
*/
|
|
275
|
+
async updateCurrentUser(options) {
|
|
276
|
+
this.authMiddleware.assertAuthenticationCanChange();
|
|
277
|
+
const result = await this.auth.api.updateUser({
|
|
278
|
+
body: options,
|
|
279
|
+
headers: await this.sessionService.getCurrentSessionHeaders(),
|
|
280
|
+
returnHeaders: true,
|
|
281
|
+
});
|
|
282
|
+
if (result.response.status) {
|
|
283
|
+
await this.authMiddleware.refreshCurrentUser();
|
|
284
|
+
}
|
|
285
|
+
applyAuthResponseCookies(result.headers);
|
|
286
|
+
return result.response.status;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Starts or completes the authenticated user's configured email-change flow.
|
|
290
|
+
* @param options - Configuration for this operation.
|
|
291
|
+
* @returns Whether the email change request succeeded.
|
|
292
|
+
*/
|
|
293
|
+
async changeCurrentUserEmail(options) {
|
|
294
|
+
this.authMiddleware.assertAuthenticationCanChange();
|
|
295
|
+
const result = await this.auth.api.changeEmail({
|
|
296
|
+
body: options,
|
|
297
|
+
headers: await this.sessionService.getCurrentSessionHeaders(),
|
|
298
|
+
returnHeaders: true,
|
|
299
|
+
});
|
|
300
|
+
// A successful response may only queue verification; reload persisted state.
|
|
301
|
+
if (result.response.status) {
|
|
302
|
+
await this.authMiddleware.refreshCurrentUser();
|
|
303
|
+
}
|
|
304
|
+
applyAuthResponseCookies(result.headers);
|
|
305
|
+
return result.response.status;
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Changes the authenticated user's credential password.
|
|
309
|
+
* @param options - Configuration for this operation.
|
|
310
|
+
* @returns Replacement session token, when the password change issues one.
|
|
311
|
+
*/
|
|
312
|
+
async changeCurrentUserPassword(options) {
|
|
313
|
+
if (options.revokeOtherSessions) {
|
|
314
|
+
this.authMiddleware.assertAuthenticationCanChange();
|
|
315
|
+
}
|
|
316
|
+
const result = await this.auth.api.changePassword({
|
|
317
|
+
body: options,
|
|
318
|
+
headers: await this.sessionService.getCurrentSessionHeaders(),
|
|
319
|
+
returnHeaders: true,
|
|
320
|
+
});
|
|
321
|
+
if (result.response.token) {
|
|
322
|
+
try {
|
|
323
|
+
await this.authMiddleware.authenticateSession(result.response.token);
|
|
324
|
+
}
|
|
325
|
+
catch (error) {
|
|
326
|
+
// Rotation already revoked the old session; never retain its identity.
|
|
327
|
+
this.authMiddleware.clearAuthentication();
|
|
328
|
+
throw error;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
applyAuthResponseCookies(result.headers);
|
|
332
|
+
return { token: result.response.token };
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Adds a credential password to an authenticated account that has none.
|
|
336
|
+
* @param newPassword - New plaintext password to validate and store.
|
|
337
|
+
* @returns Whether the credential password was set successfully.
|
|
338
|
+
*/
|
|
339
|
+
async setCurrentUserPassword(newPassword) {
|
|
340
|
+
const result = await this.auth.api.setPassword({
|
|
341
|
+
body: { newPassword },
|
|
342
|
+
headers: await this.sessionService.getCurrentSessionHeaders(),
|
|
343
|
+
});
|
|
344
|
+
return result.status;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Requests deletion of the authenticated user's account.
|
|
348
|
+
* @param options - Configuration for this operation.
|
|
349
|
+
* @returns Account deletion status and any redirect information.
|
|
350
|
+
*/
|
|
351
|
+
async deleteCurrentUser(options) {
|
|
352
|
+
this.authMiddleware.assertAuthenticationCanChange();
|
|
353
|
+
const result = await this.auth.api.deleteUser({
|
|
354
|
+
body: options ?? {},
|
|
355
|
+
headers: await this.sessionService.getCurrentSessionHeaders(),
|
|
356
|
+
returnHeaders: true,
|
|
357
|
+
});
|
|
358
|
+
if (result.response.success && result.response.message === "User deleted") {
|
|
359
|
+
this.authMiddleware.clearAuthentication();
|
|
360
|
+
}
|
|
361
|
+
applyAuthResponseCookies(result.headers);
|
|
362
|
+
return result.response;
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Lists safe summaries of authentication accounts linked to the current user.
|
|
366
|
+
* @returns Provider accounts linked to the authenticated user.
|
|
367
|
+
*/
|
|
368
|
+
async listCurrentUserAccounts() {
|
|
369
|
+
return await this.auth.api.listUserAccounts({
|
|
370
|
+
headers: await this.sessionService.getCurrentSessionHeaders(),
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Starts a social or OpenID Connect account-linking flow.
|
|
375
|
+
* @param options - Configuration for this operation.
|
|
376
|
+
* @returns Account linking response and any provider redirect URL.
|
|
377
|
+
*/
|
|
378
|
+
async linkCurrentUserAccount(options) {
|
|
379
|
+
const result = await this.auth.api.linkSocialAccount({
|
|
380
|
+
body: options,
|
|
381
|
+
headers: await this.sessionService.getCurrentSessionHeaders(),
|
|
382
|
+
returnHeaders: true,
|
|
383
|
+
});
|
|
384
|
+
applyAuthResponseCookies(result.headers);
|
|
385
|
+
return result.response;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Unlinks an authentication account from the current user.
|
|
389
|
+
* @param options - Configuration for this operation.
|
|
390
|
+
* @returns Whether the provider account was unlinked successfully.
|
|
391
|
+
*/
|
|
392
|
+
async unlinkCurrentUserAccount(options) {
|
|
393
|
+
const result = await this.auth.api.unlinkAccount({
|
|
394
|
+
body: options,
|
|
395
|
+
headers: await this.sessionService.getCurrentSessionHeaders(),
|
|
396
|
+
});
|
|
397
|
+
return result.status;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Returns a usable provider access token for a linked account.
|
|
401
|
+
* @param selector - Fields that identify the provider account.
|
|
402
|
+
* @returns Provider access token with expiration and scope metadata.
|
|
403
|
+
*/
|
|
404
|
+
async getAccessToken(selector) {
|
|
405
|
+
const result = await this.auth.api.getAccessToken({
|
|
406
|
+
body: selector,
|
|
407
|
+
headers: await this.sessionService.getCurrentSessionHeaders(),
|
|
408
|
+
});
|
|
409
|
+
return {
|
|
410
|
+
accessToken: result.accessToken,
|
|
411
|
+
accessTokenExpiresAt: result.accessTokenExpiresAt ?? null,
|
|
412
|
+
scopes: result.scopes,
|
|
413
|
+
idToken: result.idToken ?? null,
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Refreshes provider credentials for a linked account.
|
|
418
|
+
* @param selector - Fields that identify the provider account.
|
|
419
|
+
* @returns Refreshed provider tokens and their expiration metadata.
|
|
420
|
+
*/
|
|
421
|
+
async refreshToken(selector) {
|
|
422
|
+
const result = await this.auth.api.refreshToken({
|
|
423
|
+
body: selector,
|
|
424
|
+
headers: await this.sessionService.getCurrentSessionHeaders(),
|
|
425
|
+
});
|
|
426
|
+
return {
|
|
427
|
+
accessToken: result.accessToken ?? null,
|
|
428
|
+
refreshToken: result.refreshToken,
|
|
429
|
+
accessTokenExpiresAt: result.accessTokenExpiresAt ?? null,
|
|
430
|
+
refreshTokenExpiresAt: result.refreshTokenExpiresAt ?? null,
|
|
431
|
+
scope: result.scope ?? null,
|
|
432
|
+
idToken: result.idToken ?? null,
|
|
433
|
+
providerId: result.providerId,
|
|
434
|
+
accountId: result.accountId,
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Returns provider identity and metadata for a linked account.
|
|
439
|
+
* @param selector - Fields that identify the provider account.
|
|
440
|
+
* @returns Information returned by the selected provider account.
|
|
441
|
+
*/
|
|
442
|
+
async getAccountInfo(selector) {
|
|
443
|
+
return (await this.auth.api.accountInfo({
|
|
444
|
+
query: selector,
|
|
445
|
+
headers: await this.sessionService.getCurrentSessionHeaders(),
|
|
446
|
+
}));
|
|
447
|
+
}
|
|
448
|
+
normalizeSignInResult(result) {
|
|
449
|
+
return {
|
|
450
|
+
...result,
|
|
451
|
+
url: result.url ?? null,
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
normalizeSignInSocialResult(result) {
|
|
455
|
+
return {
|
|
456
|
+
redirect: result.redirect,
|
|
457
|
+
url: result.url ?? null,
|
|
458
|
+
token: result.token ?? null,
|
|
459
|
+
user: result.user ?? null,
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
};
|
|
463
|
+
AuthService = __decorate([
|
|
464
|
+
Injectable(),
|
|
465
|
+
__param(0, Inject(AUTH_TOKEN)),
|
|
466
|
+
__metadata("design:paramtypes", [Object, AuthMiddleware,
|
|
467
|
+
UserService,
|
|
468
|
+
SessionService])
|
|
469
|
+
], AuthService);
|
|
470
|
+
export { AuthService };
|
|
471
|
+
//# sourceMappingURL=auth.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.service.js","s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