@nest-boot/auth 8.0.3-beta.1 → 8.0.3-beta.2
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 +538 -2
- package/dist/abilities/user.ability.d.ts +3 -0
- package/dist/abilities/user.ability.js +2 -0
- package/dist/abilities/user.ability.js.map +1 -1
- package/dist/abilities/workspace.ability.d.ts +3 -0
- package/dist/abilities/workspace.ability.js +2 -0
- package/dist/abilities/workspace.ability.js.map +1 -1
- package/dist/adapters/mikro-orm/adapter-config.js +1 -0
- package/dist/adapters/mikro-orm/adapter-config.js.map +1 -1
- package/dist/adapters/mikro-orm/create-custom-adapter.d.ts +3 -2
- package/dist/adapters/mikro-orm/entity-metadata-resolver.d.ts +2 -2
- package/dist/adapters/mikro-orm/entity-metadata-resolver.js +22 -0
- package/dist/adapters/mikro-orm/entity-metadata-resolver.js.map +1 -1
- package/dist/adapters/mikro-orm/where-compiler.d.ts +24 -24
- package/dist/adapters/mikro-orm-adapter.d.ts +6 -2
- package/dist/adapters/mikro-orm-adapter.js +2 -1
- package/dist/adapters/mikro-orm-adapter.js.map +1 -1
- package/dist/api-key-usage.interceptor.d.ts +5 -2
- package/dist/api-key-usage.interceptor.js +10 -8
- package/dist/api-key-usage.interceptor.js.map +1 -1
- package/dist/auth-handler.middleware.d.ts +3 -0
- package/dist/auth-handler.middleware.js +3 -0
- package/dist/auth-handler.middleware.js.map +1 -1
- package/dist/auth-module-options.interface.d.ts +31 -338
- package/dist/auth.constants.d.ts +4 -0
- package/dist/auth.constants.js +4 -0
- package/dist/auth.constants.js.map +1 -1
- package/dist/auth.guard.d.ts +31 -9
- package/dist/auth.guard.js +49 -106
- package/dist/auth.guard.js.map +1 -1
- package/dist/auth.middleware.d.ts +20 -6
- package/dist/auth.middleware.js +119 -48
- package/dist/auth.middleware.js.map +1 -1
- package/dist/auth.module-definition.d.ts +1 -1
- package/dist/auth.module.d.ts +28 -5
- package/dist/auth.module.js +87 -64
- package/dist/auth.module.js.map +1 -1
- package/dist/connections/account.connection-definition.d.ts +9 -0
- package/dist/connections/account.connection-definition.js +38 -0
- package/dist/connections/account.connection-definition.js.map +1 -0
- package/dist/connections/index.d.ts +8 -0
- package/dist/connections/index.js +9 -0
- package/dist/connections/index.js.map +1 -0
- package/dist/connections/invitation.connection-definition.d.ts +9 -0
- package/dist/connections/invitation.connection-definition.js +40 -0
- package/dist/connections/invitation.connection-definition.js.map +1 -0
- package/dist/connections/member.connection-definition.d.ts +9 -0
- package/dist/connections/member.connection-definition.js +52 -0
- package/dist/connections/member.connection-definition.js.map +1 -0
- package/dist/connections/session.connection-definition.d.ts +9 -0
- package/dist/connections/session.connection-definition.js +32 -0
- package/dist/connections/session.connection-definition.js.map +1 -0
- package/dist/connections/user-api-key.connection-definition.d.ts +13 -0
- package/dist/connections/user-api-key.connection-definition.js +60 -0
- package/dist/connections/user-api-key.connection-definition.js.map +1 -0
- package/dist/connections/user.connection-definition.d.ts +9 -0
- package/dist/connections/user.connection-definition.js +46 -0
- package/dist/connections/user.connection-definition.js.map +1 -0
- package/dist/connections/workspace-api-key.connection-definition.d.ts +13 -0
- package/dist/connections/workspace-api-key.connection-definition.js +60 -0
- package/dist/connections/workspace-api-key.connection-definition.js.map +1 -0
- package/dist/connections/workspace.connection-definition.d.ts +13 -0
- package/dist/connections/workspace.connection-definition.js +43 -0
- package/dist/connections/workspace.connection-definition.js.map +1 -0
- package/dist/decorators/can.decorator.d.ts +8 -0
- package/dist/decorators/can.decorator.js +8 -0
- package/dist/decorators/can.decorator.js.map +1 -1
- package/dist/decorators/current-api-key.decorator.d.ts +1 -0
- package/dist/decorators/current-api-key.decorator.js +3 -3
- package/dist/decorators/current-api-key.decorator.js.map +1 -1
- package/dist/decorators/current-member.decorator.d.ts +2 -0
- package/dist/decorators/current-member.decorator.js +6 -0
- package/dist/decorators/current-member.decorator.js.map +1 -0
- package/dist/decorators/current-session.decorator.d.ts +1 -0
- package/dist/decorators/current-session.decorator.js +3 -2
- package/dist/decorators/current-session.decorator.js.map +1 -1
- package/dist/decorators/current-user.decorator.d.ts +1 -0
- package/dist/decorators/current-user.decorator.js +3 -2
- package/dist/decorators/current-user.decorator.js.map +1 -1
- package/dist/decorators/current-workspace.decorator.d.ts +1 -0
- package/dist/decorators/current-workspace.decorator.js +3 -2
- package/dist/decorators/current-workspace.decorator.js.map +1 -1
- package/dist/decorators/index.d.ts +1 -1
- package/dist/decorators/index.js +1 -1
- package/dist/decorators/index.js.map +1 -1
- package/dist/decorators/public.decorator.d.ts +1 -0
- package/dist/decorators/public.decorator.js +1 -0
- package/dist/decorators/public.decorator.js.map +1 -1
- package/dist/decorators/user-can.decorator.d.ts +8 -0
- package/dist/decorators/user-can.decorator.js +8 -0
- package/dist/decorators/user-can.decorator.js.map +1 -1
- package/dist/decorators/workspace-can.decorator.d.ts +8 -0
- package/dist/decorators/workspace-can.decorator.js +8 -0
- package/dist/decorators/workspace-can.decorator.js.map +1 -1
- package/dist/entities/account.entity.d.ts +21 -3
- package/dist/entities/account.entity.js +67 -29
- package/dist/entities/account.entity.js.map +1 -1
- package/dist/entities/auth-entity-map.d.ts +21 -0
- package/dist/entities/auth-entity-map.js +22 -0
- package/dist/entities/auth-entity-map.js.map +1 -0
- package/dist/entities/index.d.ts +14 -3
- package/dist/entities/index.js +25 -3
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/invitation.entity.d.ts +24 -0
- package/dist/entities/invitation.entity.js +117 -0
- package/dist/entities/invitation.entity.js.map +1 -0
- package/dist/entities/member.entity.d.ts +28 -0
- package/dist/entities/member.entity.js +126 -0
- package/dist/entities/member.entity.js.map +1 -0
- package/dist/entities/session.entity.d.ts +16 -6
- package/dist/entities/session.entity.js +57 -27
- package/dist/entities/session.entity.js.map +1 -1
- package/dist/entities/user-api-key.entity.d.ts +29 -0
- package/dist/entities/user-api-key.entity.js +147 -0
- package/dist/entities/user-api-key.entity.js.map +1 -0
- package/dist/entities/user.entity.d.ts +18 -2
- package/dist/entities/user.entity.js +104 -29
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/entities/verification.entity.d.ts +8 -1
- package/dist/entities/verification.entity.js +27 -11
- package/dist/entities/verification.entity.js.map +1 -1
- package/dist/entities/workspace-api-key.entity.d.ts +29 -0
- package/dist/entities/workspace-api-key.entity.js +147 -0
- package/dist/entities/workspace-api-key.entity.js.map +1 -0
- package/dist/entities/workspace.entity.d.ts +10 -3
- package/dist/entities/workspace.entity.js +51 -20
- package/dist/entities/workspace.entity.js.map +1 -1
- package/dist/enums/index.d.ts +8 -0
- package/dist/enums/index.js +9 -0
- package/dist/enums/index.js.map +1 -0
- package/dist/enums/invitation-status.enum.d.ts +11 -0
- package/dist/enums/invitation-status.enum.js +17 -0
- package/dist/enums/invitation-status.enum.js.map +1 -0
- package/dist/enums/member-status.enum.d.ts +9 -0
- package/dist/enums/member-status.enum.js +15 -0
- package/dist/enums/member-status.enum.js.map +1 -0
- package/dist/enums/user-api-key-permission.enum.d.ts +4 -0
- package/dist/enums/user-api-key-permission.enum.js +11 -0
- package/dist/enums/user-api-key-permission.enum.js.map +1 -0
- package/dist/enums/user-permission.enum.d.ts +4 -0
- package/dist/enums/user-permission.enum.js +7 -0
- package/dist/enums/user-permission.enum.js.map +1 -0
- package/dist/enums/user-role.enum.d.ts +4 -0
- package/dist/enums/user-role.enum.js +6 -0
- package/dist/enums/user-role.enum.js.map +1 -0
- package/dist/enums/workspace-api-key-permission.enum.d.ts +4 -0
- package/dist/enums/workspace-api-key-permission.enum.js +11 -0
- package/dist/enums/workspace-api-key-permission.enum.js.map +1 -0
- package/dist/enums/workspace-permission.enum.d.ts +4 -0
- package/dist/enums/workspace-permission.enum.js +7 -0
- package/dist/enums/workspace-permission.enum.js.map +1 -0
- package/dist/enums/workspace-role.enum.d.ts +4 -0
- package/dist/enums/workspace-role.enum.js +9 -0
- package/dist/enums/workspace-role.enum.js.map +1 -0
- package/dist/index.d.ts +182 -12
- package/dist/index.js +181 -12
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/api-key-authentication.service.d.ts +14 -0
- package/dist/infrastructure/api-key-authentication.service.js +78 -0
- package/dist/infrastructure/api-key-authentication.service.js.map +1 -0
- package/dist/infrastructure/auth-ability.factory.d.ts +15 -0
- package/dist/infrastructure/auth-ability.factory.js +91 -0
- package/dist/infrastructure/auth-ability.factory.js.map +1 -0
- package/dist/infrastructure/auth-enum-registry.d.ts +8 -0
- package/dist/infrastructure/auth-enum-registry.js +48 -0
- package/dist/infrastructure/auth-enum-registry.js.map +1 -0
- package/dist/infrastructure/auth-service.providers.d.ts +3 -0
- package/dist/infrastructure/auth-service.providers.js +72 -0
- package/dist/infrastructure/auth-service.providers.js.map +1 -0
- package/dist/infrastructure/create-contextual-auth-service.d.ts +10 -0
- package/dist/infrastructure/create-contextual-auth-service.js +50 -0
- package/dist/infrastructure/create-contextual-auth-service.js.map +1 -0
- package/dist/infrastructure/request-identity.d.ts +34 -0
- package/dist/infrastructure/request-identity.js +174 -0
- package/dist/infrastructure/request-identity.js.map +1 -0
- package/dist/infrastructure/revoked-authentication.exception.d.ts +4 -0
- package/dist/infrastructure/revoked-authentication.exception.js +5 -0
- package/dist/infrastructure/revoked-authentication.exception.js.map +1 -0
- package/dist/inputs/add-member.input.d.ts +5 -0
- package/dist/inputs/add-member.input.js +26 -0
- package/dist/inputs/add-member.input.js.map +1 -0
- package/dist/inputs/auth-change-email.input.d.ts +7 -0
- package/dist/inputs/auth-change-email.input.js +33 -0
- package/dist/inputs/auth-change-email.input.js.map +1 -0
- package/dist/inputs/auth-change-password.input.d.ts +9 -0
- package/dist/inputs/auth-change-password.input.js +40 -0
- package/dist/inputs/auth-change-password.input.js.map +1 -0
- package/dist/inputs/auth-delete-user.input.d.ts +9 -0
- package/dist/inputs/auth-delete-user.input.js +40 -0
- package/dist/inputs/auth-delete-user.input.js.map +1 -0
- package/dist/inputs/auth-link-social-account.input.d.ts +13 -0
- package/dist/inputs/auth-link-social-account.input.js +54 -0
- package/dist/inputs/auth-link-social-account.input.js.map +1 -0
- package/dist/inputs/auth-request-password-reset.input.d.ts +7 -0
- package/dist/inputs/auth-request-password-reset.input.js +33 -0
- package/dist/inputs/auth-request-password-reset.input.js.map +1 -0
- package/dist/inputs/auth-reset-password.input.d.ts +7 -0
- package/dist/inputs/auth-reset-password.input.js +33 -0
- package/dist/inputs/auth-reset-password.input.js.map +1 -0
- package/dist/inputs/auth-send-verification-email.input.d.ts +7 -0
- package/dist/inputs/auth-send-verification-email.input.js +33 -0
- package/dist/inputs/auth-send-verification-email.input.js.map +1 -0
- package/dist/inputs/auth-sign-in-social.input.d.ts +17 -0
- package/dist/inputs/auth-sign-in-social.input.js +68 -0
- package/dist/inputs/auth-sign-in-social.input.js.map +1 -0
- package/dist/inputs/auth-sign-in.input.d.ts +11 -0
- package/dist/inputs/auth-sign-in.input.js +47 -0
- package/dist/inputs/auth-sign-in.input.js.map +1 -0
- package/dist/inputs/auth-sign-up.input.d.ts +15 -0
- package/dist/inputs/auth-sign-up.input.js +61 -0
- package/dist/inputs/auth-sign-up.input.js.map +1 -0
- package/dist/inputs/auth-update-user.input.d.ts +7 -0
- package/dist/inputs/auth-update-user.input.js +33 -0
- package/dist/inputs/auth-update-user.input.js.map +1 -0
- package/dist/inputs/ban-user.input.d.ts +7 -0
- package/dist/inputs/ban-user.input.js +33 -0
- package/dist/inputs/ban-user.input.js.map +1 -0
- package/dist/inputs/create-invitation.input.d.ts +10 -0
- package/dist/inputs/create-invitation.input.js +41 -0
- package/dist/inputs/create-invitation.input.js.map +1 -0
- package/dist/inputs/create-user-api-key.input.d.ts +14 -0
- package/dist/inputs/create-user-api-key.input.js +55 -0
- package/dist/inputs/create-user-api-key.input.js.map +1 -0
- package/dist/inputs/create-user.input.d.ts +15 -0
- package/dist/inputs/create-user.input.js +56 -0
- package/dist/inputs/create-user.input.js.map +1 -0
- package/dist/inputs/create-workspace-api-key.input.d.ts +14 -0
- package/dist/inputs/create-workspace-api-key.input.js +55 -0
- package/dist/inputs/create-workspace-api-key.input.js.map +1 -0
- package/dist/inputs/create-workspace.input.d.ts +7 -0
- package/dist/inputs/create-workspace.input.js +28 -0
- package/dist/inputs/create-workspace.input.js.map +1 -0
- package/dist/inputs/set-member-permissions.input.d.ts +6 -0
- package/dist/inputs/set-member-permissions.input.js +27 -0
- package/dist/inputs/set-member-permissions.input.js.map +1 -0
- package/dist/inputs/set-member-roles.input.d.ts +6 -0
- package/dist/inputs/set-member-roles.input.js +27 -0
- package/dist/inputs/set-member-roles.input.js.map +1 -0
- package/dist/inputs/set-user-password.input.d.ts +5 -0
- package/dist/inputs/set-user-password.input.js +26 -0
- package/dist/inputs/set-user-password.input.js.map +1 -0
- package/dist/inputs/set-user-permissions.input.d.ts +6 -0
- package/dist/inputs/set-user-permissions.input.js +27 -0
- package/dist/inputs/set-user-permissions.input.js.map +1 -0
- package/dist/inputs/set-user-roles.input.d.ts +6 -0
- package/dist/inputs/set-user-roles.input.js +27 -0
- package/dist/inputs/set-user-roles.input.js.map +1 -0
- package/dist/inputs/update-member.input.d.ts +10 -0
- package/dist/inputs/update-member.input.js +43 -0
- package/dist/inputs/update-member.input.js.map +1 -0
- package/dist/inputs/update-user-api-key.input.d.ts +14 -0
- package/dist/inputs/update-user-api-key.input.js +50 -0
- package/dist/inputs/update-user-api-key.input.js.map +1 -0
- package/dist/inputs/update-user.input.d.ts +11 -0
- package/dist/inputs/update-user.input.js +47 -0
- package/dist/inputs/update-user.input.js.map +1 -0
- package/dist/inputs/update-workspace-api-key.input.d.ts +14 -0
- package/dist/inputs/update-workspace-api-key.input.js +50 -0
- package/dist/inputs/update-workspace-api-key.input.js.map +1 -0
- package/dist/inputs/update-workspace.input.d.ts +7 -0
- package/dist/inputs/update-workspace.input.js +28 -0
- package/dist/inputs/update-workspace.input.js.map +1 -0
- package/dist/inputs/user-id.input.d.ts +5 -0
- package/dist/inputs/user-id.input.js +26 -0
- package/dist/inputs/user-id.input.js.map +1 -0
- package/dist/interfaces/ability-rules.interface.d.ts +8 -0
- package/dist/interfaces/ability-rules.interface.js +2 -0
- package/dist/interfaces/ability-rules.interface.js.map +1 -0
- package/dist/interfaces/accept-invitation-result.interface.d.ts +9 -0
- package/dist/interfaces/accept-invitation-result.interface.js +2 -0
- package/dist/interfaces/accept-invitation-result.interface.js.map +1 -0
- package/dist/interfaces/add-member-options.interface.d.ts +7 -0
- package/dist/interfaces/add-member-options.interface.js +2 -0
- package/dist/interfaces/add-member-options.interface.js.map +1 -0
- package/dist/interfaces/auth-access-token.interface.d.ts +11 -0
- package/dist/interfaces/auth-access-token.interface.js +2 -0
- package/dist/interfaces/auth-access-token.interface.js.map +1 -0
- package/dist/interfaces/auth-account-info.interface.d.ts +11 -0
- package/dist/interfaces/auth-account-info.interface.js +2 -0
- package/dist/interfaces/auth-account-info.interface.js.map +1 -0
- package/dist/interfaces/auth-account.interface.d.ts +19 -0
- package/dist/interfaces/auth-account.interface.js +2 -0
- package/dist/interfaces/auth-account.interface.js.map +1 -0
- package/dist/interfaces/auth-change-email-confirmation-data.interface.d.ts +12 -0
- package/dist/interfaces/auth-change-email-confirmation-data.interface.js +2 -0
- package/dist/interfaces/auth-change-email-confirmation-data.interface.js.map +1 -0
- package/dist/interfaces/auth-delete-account-verification-data.interface.d.ts +10 -0
- package/dist/interfaces/auth-delete-account-verification-data.interface.js +2 -0
- package/dist/interfaces/auth-delete-account-verification-data.interface.js.map +1 -0
- package/dist/interfaces/auth-email-verification-data.interface.d.ts +10 -0
- package/dist/interfaces/auth-email-verification-data.interface.js +2 -0
- package/dist/interfaces/auth-email-verification-data.interface.js.map +1 -0
- package/dist/interfaces/auth-invitation-email-data.interface.d.ts +18 -0
- package/dist/interfaces/auth-invitation-email-data.interface.js +2 -0
- package/dist/interfaces/auth-invitation-email-data.interface.js.map +1 -0
- package/dist/interfaces/auth-module-account-linking-options.interface.d.ts +18 -0
- package/dist/interfaces/auth-module-account-linking-options.interface.js +2 -0
- package/dist/interfaces/auth-module-account-linking-options.interface.js.map +1 -0
- package/dist/interfaces/auth-module-account-options.interface.d.ts +16 -0
- package/dist/interfaces/auth-module-account-options.interface.js +2 -0
- package/dist/interfaces/auth-module-account-options.interface.js.map +1 -0
- package/dist/interfaces/auth-module-api-key-options.interface.d.ts +15 -0
- package/dist/interfaces/auth-module-api-key-options.interface.js +2 -0
- package/dist/interfaces/auth-module-api-key-options.interface.js.map +1 -0
- package/dist/interfaces/auth-module-change-email-options.interface.d.ts +10 -0
- package/dist/interfaces/auth-module-change-email-options.interface.js +2 -0
- package/dist/interfaces/auth-module-change-email-options.interface.js.map +1 -0
- package/dist/interfaces/auth-module-delete-user-options.interface.d.ts +15 -0
- package/dist/interfaces/auth-module-delete-user-options.interface.js +2 -0
- package/dist/interfaces/auth-module-delete-user-options.interface.js.map +1 -0
- package/dist/interfaces/auth-module-email-and-password-options.interface.d.ts +34 -0
- package/dist/interfaces/auth-module-email-and-password-options.interface.js +2 -0
- package/dist/interfaces/auth-module-email-and-password-options.interface.js.map +1 -0
- package/dist/interfaces/auth-module-email-verification-options.interface.d.ts +19 -0
- package/dist/interfaces/auth-module-email-verification-options.interface.js +2 -0
- package/dist/interfaces/auth-module-email-verification-options.interface.js.map +1 -0
- package/dist/interfaces/auth-module-middleware-options.interface.d.ts +11 -0
- package/dist/interfaces/auth-module-middleware-options.interface.js +2 -0
- package/dist/interfaces/auth-module-middleware-options.interface.js.map +1 -0
- package/dist/interfaces/auth-module-oauth-provider.interface.d.ts +91 -0
- package/dist/interfaces/auth-module-oauth-provider.interface.js +2 -0
- package/dist/interfaces/auth-module-oauth-provider.interface.js.map +1 -0
- package/dist/interfaces/auth-module-password-options.interface.d.ts +10 -0
- package/dist/interfaces/auth-module-password-options.interface.js +2 -0
- package/dist/interfaces/auth-module-password-options.interface.js.map +1 -0
- package/dist/interfaces/auth-module-session-cookie-cache-options.interface.d.ts +14 -0
- package/dist/interfaces/auth-module-session-cookie-cache-options.interface.js +2 -0
- package/dist/interfaces/auth-module-session-cookie-cache-options.interface.js.map +1 -0
- package/dist/interfaces/auth-module-session-cookie-cache-refresh-options.interface.d.ts +5 -0
- package/dist/interfaces/auth-module-session-cookie-cache-refresh-options.interface.js +2 -0
- package/dist/interfaces/auth-module-session-cookie-cache-refresh-options.interface.js.map +1 -0
- package/dist/interfaces/auth-module-session-options.interface.d.ts +16 -0
- package/dist/interfaces/auth-module-session-options.interface.js +2 -0
- package/dist/interfaces/auth-module-session-options.interface.js.map +1 -0
- package/dist/interfaces/auth-module-social-provider.interface.d.ts +109 -0
- package/dist/interfaces/auth-module-social-provider.interface.js +2 -0
- package/dist/interfaces/auth-module-social-provider.interface.js.map +1 -0
- package/dist/interfaces/auth-module-user-options.interface.d.ts +22 -0
- package/dist/interfaces/auth-module-user-options.interface.js +2 -0
- package/dist/interfaces/auth-module-user-options.interface.js.map +1 -0
- package/dist/interfaces/auth-module-workspace-options.interface.d.ts +19 -0
- package/dist/interfaces/auth-module-workspace-options.interface.js +2 -0
- package/dist/interfaces/auth-module-workspace-options.interface.js.map +1 -0
- package/dist/interfaces/auth-oauth-basic-token-endpoint-auth.interface.d.ts +5 -0
- package/dist/interfaces/auth-oauth-basic-token-endpoint-auth.interface.js +2 -0
- package/dist/interfaces/auth-oauth-basic-token-endpoint-auth.interface.js.map +1 -0
- package/dist/interfaces/auth-oauth-client-assertion-context.interface.d.ts +9 -0
- package/dist/interfaces/auth-oauth-client-assertion-context.interface.js +2 -0
- package/dist/interfaces/auth-oauth-client-assertion-context.interface.js.map +1 -0
- package/dist/interfaces/auth-oauth-custom-token-endpoint-auth.interface.d.ts +8 -0
- package/dist/interfaces/auth-oauth-custom-token-endpoint-auth.interface.js +2 -0
- package/dist/interfaces/auth-oauth-custom-token-endpoint-auth.interface.js.map +1 -0
- package/dist/interfaces/auth-oauth-mapped-user.interface.d.ts +15 -0
- package/dist/interfaces/auth-oauth-mapped-user.interface.js +2 -0
- package/dist/interfaces/auth-oauth-mapped-user.interface.js.map +1 -0
- package/dist/interfaces/auth-oauth-no-token-endpoint-auth.interface.d.ts +5 -0
- package/dist/interfaces/auth-oauth-no-token-endpoint-auth.interface.js +2 -0
- package/dist/interfaces/auth-oauth-no-token-endpoint-auth.interface.js.map +1 -0
- package/dist/interfaces/auth-oauth-post-token-endpoint-auth.interface.d.ts +5 -0
- package/dist/interfaces/auth-oauth-post-token-endpoint-auth.interface.js +2 -0
- package/dist/interfaces/auth-oauth-post-token-endpoint-auth.interface.js.map +1 -0
- package/dist/interfaces/auth-oauth-private-key-jwt-token-endpoint-auth.interface.d.ts +9 -0
- package/dist/interfaces/auth-oauth-private-key-jwt-token-endpoint-auth.interface.js +2 -0
- package/dist/interfaces/auth-oauth-private-key-jwt-token-endpoint-auth.interface.js.map +1 -0
- package/dist/interfaces/auth-oauth-profile.interface.d.ts +9 -0
- package/dist/interfaces/auth-oauth-profile.interface.js +2 -0
- package/dist/interfaces/auth-oauth-profile.interface.js.map +1 -0
- package/dist/interfaces/auth-oauth-refresh-context.interface.d.ts +7 -0
- package/dist/interfaces/auth-oauth-refresh-context.interface.js +2 -0
- package/dist/interfaces/auth-oauth-refresh-context.interface.js.map +1 -0
- package/dist/interfaces/auth-oauth-token-request-client-options.interface.d.ts +7 -0
- package/dist/interfaces/auth-oauth-token-request-client-options.interface.js +2 -0
- package/dist/interfaces/auth-oauth-token-request-client-options.interface.js.map +1 -0
- package/dist/interfaces/auth-oauth-token-request-context.interface.d.ts +15 -0
- package/dist/interfaces/auth-oauth-token-request-context.interface.js +2 -0
- package/dist/interfaces/auth-oauth-token-request-context.interface.js.map +1 -0
- package/dist/interfaces/auth-oauth-tokens.interface.d.ts +19 -0
- package/dist/interfaces/auth-oauth-tokens.interface.js +2 -0
- package/dist/interfaces/auth-oauth-tokens.interface.js.map +1 -0
- package/dist/interfaces/auth-oauth-user-info.interface.d.ts +13 -0
- package/dist/interfaces/auth-oauth-user-info.interface.js +2 -0
- package/dist/interfaces/auth-oauth-user-info.interface.js.map +1 -0
- package/dist/interfaces/auth-provider-user-info.interface.d.ts +13 -0
- package/dist/interfaces/auth-provider-user-info.interface.js +2 -0
- package/dist/interfaces/auth-provider-user-info.interface.js.map +1 -0
- package/dist/interfaces/auth-refreshed-token.interface.d.ts +19 -0
- package/dist/interfaces/auth-refreshed-token.interface.js +2 -0
- package/dist/interfaces/auth-refreshed-token.interface.js.map +1 -0
- package/dist/interfaces/auth-reset-password-data.interface.d.ts +10 -0
- package/dist/interfaces/auth-reset-password-data.interface.js +2 -0
- package/dist/interfaces/auth-reset-password-data.interface.js.map +1 -0
- package/dist/interfaces/auth-social-provider-user-info.interface.d.ts +8 -0
- package/dist/interfaces/auth-social-provider-user-info.interface.js +2 -0
- package/dist/interfaces/auth-social-provider-user-info.interface.js.map +1 -0
- package/dist/interfaces/auth-social-provider.interface.d.ts +7 -0
- package/dist/interfaces/auth-social-provider.interface.js +2 -0
- package/dist/interfaces/auth-social-provider.interface.js.map +1 -0
- package/dist/interfaces/auth-user.interface.d.ts +19 -0
- package/dist/interfaces/auth-user.interface.js +2 -0
- package/dist/interfaces/auth-user.interface.js.map +1 -0
- package/dist/interfaces/authenticated-session.interface.d.ts +9 -0
- package/dist/interfaces/authenticated-session.interface.js +2 -0
- package/dist/interfaces/authenticated-session.interface.js.map +1 -0
- package/dist/interfaces/ban-user-options.interface.d.ts +7 -0
- package/dist/interfaces/ban-user-options.interface.js +2 -0
- package/dist/interfaces/ban-user-options.interface.js.map +1 -0
- package/dist/interfaces/can-options.interface.d.ts +2 -0
- package/dist/interfaces/change-auth-email-options.interface.d.ts +7 -0
- package/dist/interfaces/change-auth-email-options.interface.js +2 -0
- package/dist/interfaces/change-auth-email-options.interface.js.map +1 -0
- package/dist/interfaces/change-auth-password-options.interface.d.ts +9 -0
- package/dist/interfaces/change-auth-password-options.interface.js +2 -0
- package/dist/interfaces/change-auth-password-options.interface.js.map +1 -0
- package/dist/interfaces/change-auth-password-result.interface.d.ts +5 -0
- package/dist/interfaces/change-auth-password-result.interface.js +2 -0
- package/dist/interfaces/change-auth-password-result.interface.js.map +1 -0
- package/dist/interfaces/create-api-key-options.interface.d.ts +14 -0
- package/dist/interfaces/create-api-key-options.interface.js +2 -0
- package/dist/interfaces/create-api-key-options.interface.js.map +1 -0
- package/dist/interfaces/create-invitation-options.interface.d.ts +9 -0
- package/dist/interfaces/create-invitation-options.interface.js +2 -0
- package/dist/interfaces/create-invitation-options.interface.js.map +1 -0
- package/dist/interfaces/create-user-options.interface.d.ts +13 -0
- package/dist/interfaces/create-user-options.interface.js +2 -0
- package/dist/interfaces/create-user-options.interface.js.map +1 -0
- package/dist/interfaces/create-workspace-options.interface.d.ts +5 -0
- package/dist/interfaces/create-workspace-options.interface.js +2 -0
- package/dist/interfaces/create-workspace-options.interface.js.map +1 -0
- package/dist/interfaces/created-api-key.interface.d.ts +8 -0
- package/dist/interfaces/created-api-key.interface.js +2 -0
- package/dist/interfaces/created-api-key.interface.js.map +1 -0
- package/dist/interfaces/delete-auth-user-options.interface.d.ts +9 -0
- package/dist/interfaces/delete-auth-user-options.interface.js +2 -0
- package/dist/interfaces/delete-auth-user-options.interface.js.map +1 -0
- package/dist/interfaces/delete-auth-user-result.interface.d.ts +7 -0
- package/dist/interfaces/delete-auth-user-result.interface.js +2 -0
- package/dist/interfaces/delete-auth-user-result.interface.js.map +1 -0
- package/dist/interfaces/impersonation-options.interface.d.ts +7 -0
- package/dist/interfaces/impersonation-options.interface.js +2 -0
- package/dist/interfaces/impersonation-options.interface.js.map +1 -0
- package/dist/interfaces/link-auth-social-account-options.interface.d.ts +21 -0
- package/dist/interfaces/link-auth-social-account-options.interface.js +2 -0
- package/dist/interfaces/link-auth-social-account-options.interface.js.map +1 -0
- package/dist/interfaces/link-auth-social-account-result.interface.d.ts +7 -0
- package/dist/interfaces/link-auth-social-account-result.interface.js +2 -0
- package/dist/interfaces/link-auth-social-account-result.interface.js.map +1 -0
- package/dist/interfaces/request-identity-patch.interface.d.ts +13 -0
- package/dist/interfaces/request-identity-patch.interface.js +2 -0
- package/dist/interfaces/request-identity-patch.interface.js.map +1 -0
- package/dist/interfaces/request-password-reset-options.interface.d.ts +7 -0
- package/dist/interfaces/request-password-reset-options.interface.js +2 -0
- package/dist/interfaces/request-password-reset-options.interface.js.map +1 -0
- package/dist/interfaces/request-password-reset-result.interface.d.ts +7 -0
- package/dist/interfaces/request-password-reset-result.interface.js +2 -0
- package/dist/interfaces/request-password-reset-result.interface.js.map +1 -0
- package/dist/interfaces/request-permissions.interface.d.ts +7 -0
- package/dist/interfaces/request-permissions.interface.js +2 -0
- package/dist/interfaces/request-permissions.interface.js.map +1 -0
- package/dist/interfaces/reset-password-options.interface.d.ts +7 -0
- package/dist/interfaces/reset-password-options.interface.js +2 -0
- package/dist/interfaces/reset-password-options.interface.js.map +1 -0
- package/dist/interfaces/route-argument-metadata-value.interface.d.ts +4 -0
- package/dist/interfaces/scope-policy-options.interface.d.ts +6 -0
- package/dist/interfaces/send-verification-email-options.interface.d.ts +7 -0
- package/dist/interfaces/send-verification-email-options.interface.js +2 -0
- package/dist/interfaces/send-verification-email-options.interface.js.map +1 -0
- package/dist/interfaces/serialized-ability-rule.interface.d.ts +7 -0
- package/dist/interfaces/sign-in-entity-result.interface.d.ts +7 -0
- package/dist/interfaces/sign-in-entity-result.interface.js +2 -0
- package/dist/interfaces/sign-in-entity-result.interface.js.map +1 -0
- package/dist/interfaces/sign-in-options.interface.d.ts +11 -0
- package/dist/interfaces/sign-in-options.interface.js +2 -0
- package/dist/interfaces/sign-in-options.interface.js.map +1 -0
- package/dist/interfaces/sign-in-result.interface.d.ts +12 -0
- package/dist/interfaces/sign-in-result.interface.js +2 -0
- package/dist/interfaces/sign-in-result.interface.js.map +1 -0
- package/dist/interfaces/sign-in-social-entity-result.interface.d.ts +7 -0
- package/dist/interfaces/sign-in-social-entity-result.interface.js +2 -0
- package/dist/interfaces/sign-in-social-entity-result.interface.js.map +1 -0
- package/dist/interfaces/sign-in-social-options.interface.d.ts +23 -0
- package/dist/interfaces/sign-in-social-options.interface.js +2 -0
- package/dist/interfaces/sign-in-social-options.interface.js.map +1 -0
- package/dist/interfaces/sign-in-social-result.interface.d.ts +12 -0
- package/dist/interfaces/sign-in-social-result.interface.js +2 -0
- package/dist/interfaces/sign-in-social-result.interface.js.map +1 -0
- package/dist/interfaces/sign-up-options.interface.d.ts +15 -0
- package/dist/interfaces/sign-up-options.interface.js +2 -0
- package/dist/interfaces/sign-up-options.interface.js.map +1 -0
- package/dist/interfaces/sign-up-result.interface.d.ts +8 -0
- package/dist/interfaces/sign-up-result.interface.js +2 -0
- package/dist/interfaces/sign-up-result.interface.js.map +1 -0
- package/dist/interfaces/unlink-auth-account-options.interface.d.ts +5 -0
- package/dist/interfaces/unlink-auth-account-options.interface.js +2 -0
- package/dist/interfaces/unlink-auth-account-options.interface.js.map +1 -0
- package/dist/interfaces/update-api-key-options.interface.d.ts +14 -0
- package/dist/interfaces/update-api-key-options.interface.js +2 -0
- package/dist/interfaces/update-api-key-options.interface.js.map +1 -0
- package/dist/interfaces/update-auth-user-options.interface.d.ts +7 -0
- package/dist/interfaces/update-auth-user-options.interface.js +2 -0
- package/dist/interfaces/update-auth-user-options.interface.js.map +1 -0
- package/dist/interfaces/update-member-options.interface.d.ts +10 -0
- package/dist/interfaces/update-member-options.interface.js +2 -0
- package/dist/interfaces/update-member-options.interface.js.map +1 -0
- package/dist/interfaces/update-user-options.interface.d.ts +11 -0
- package/dist/interfaces/update-user-options.interface.js +2 -0
- package/dist/interfaces/update-user-options.interface.js.map +1 -0
- package/dist/interfaces/update-workspace-options.interface.d.ts +5 -0
- package/dist/interfaces/update-workspace-options.interface.js +2 -0
- package/dist/interfaces/update-workspace-options.interface.js.map +1 -0
- package/dist/interfaces/user-api-key-validation.interface.d.ts +11 -0
- package/dist/interfaces/user-api-key-validation.interface.js +2 -0
- package/dist/interfaces/user-api-key-validation.interface.js.map +1 -0
- package/dist/interfaces/user-can-metadata.interface.d.ts +3 -0
- package/dist/interfaces/user-has-permissions-options.interface.d.ts +5 -0
- package/dist/interfaces/user-has-permissions-options.interface.js +2 -0
- package/dist/interfaces/user-has-permissions-options.interface.js.map +1 -0
- package/dist/interfaces/workspace-api-key-validation.interface.d.ts +11 -0
- package/dist/interfaces/workspace-api-key-validation.interface.js +2 -0
- package/dist/interfaces/workspace-api-key-validation.interface.js.map +1 -0
- package/dist/interfaces/workspace-can-metadata.interface.d.ts +3 -0
- package/dist/interfaces/workspace-has-permissions-options.interface.d.ts +5 -0
- package/dist/interfaces/workspace-has-permissions-options.interface.js +2 -0
- package/dist/interfaces/workspace-has-permissions-options.interface.js.map +1 -0
- package/dist/objects/accept-invitation-payload.object.d.ts +9 -0
- package/dist/objects/accept-invitation-payload.object.js +36 -0
- package/dist/objects/accept-invitation-payload.object.js.map +1 -0
- package/dist/objects/add-member-payload.object.d.ts +5 -0
- package/dist/objects/add-member-payload.object.js +24 -0
- package/dist/objects/add-member-payload.object.js.map +1 -0
- package/dist/objects/auth-ability-rule.object.d.ts +15 -0
- package/dist/objects/auth-ability-rule.object.js +55 -0
- package/dist/objects/auth-ability-rule.object.js.map +1 -0
- package/dist/objects/auth-change-password-result.object.d.ts +5 -0
- package/dist/objects/auth-change-password-result.object.js +24 -0
- package/dist/objects/auth-change-password-result.object.js.map +1 -0
- package/dist/objects/auth-delete-user-result.object.d.ts +7 -0
- package/dist/objects/auth-delete-user-result.object.js +30 -0
- package/dist/objects/auth-delete-user-result.object.js.map +1 -0
- package/dist/objects/auth-link-social-account-result.object.d.ts +7 -0
- package/dist/objects/auth-link-social-account-result.object.js +30 -0
- package/dist/objects/auth-link-social-account-result.object.js.map +1 -0
- package/dist/objects/auth-request-password-reset-result.object.d.ts +7 -0
- package/dist/objects/auth-request-password-reset-result.object.js +30 -0
- package/dist/objects/auth-request-password-reset-result.object.js.map +1 -0
- package/dist/objects/auth-sign-in-result.object.d.ts +12 -0
- package/dist/objects/auth-sign-in-result.object.js +43 -0
- package/dist/objects/auth-sign-in-result.object.js.map +1 -0
- package/dist/objects/auth-sign-in-social-result.object.d.ts +12 -0
- package/dist/objects/auth-sign-in-social-result.object.js +43 -0
- package/dist/objects/auth-sign-in-social-result.object.js.map +1 -0
- package/dist/objects/auth-social-provider.object.d.ts +7 -0
- package/dist/objects/auth-social-provider.object.js +30 -0
- package/dist/objects/auth-social-provider.object.js.map +1 -0
- package/dist/objects/ban-user-payload.object.d.ts +5 -0
- package/dist/objects/ban-user-payload.object.js +24 -0
- package/dist/objects/ban-user-payload.object.js.map +1 -0
- package/dist/objects/cancel-invitation-payload.object.d.ts +5 -0
- package/dist/objects/cancel-invitation-payload.object.js +24 -0
- package/dist/objects/cancel-invitation-payload.object.js.map +1 -0
- package/dist/objects/create-invitation-payload.object.d.ts +5 -0
- package/dist/objects/create-invitation-payload.object.js +24 -0
- package/dist/objects/create-invitation-payload.object.js.map +1 -0
- package/dist/objects/create-user-api-key-result.object.d.ts +10 -0
- package/dist/objects/create-user-api-key-result.object.js +33 -0
- package/dist/objects/create-user-api-key-result.object.js.map +1 -0
- package/dist/objects/create-user-payload.object.d.ts +5 -0
- package/dist/objects/create-user-payload.object.js +24 -0
- package/dist/objects/create-user-payload.object.js.map +1 -0
- package/dist/objects/create-workspace-api-key-result.object.d.ts +10 -0
- package/dist/objects/create-workspace-api-key-result.object.js +33 -0
- package/dist/objects/create-workspace-api-key-result.object.js.map +1 -0
- package/dist/objects/create-workspace-payload.object.d.ts +5 -0
- package/dist/objects/create-workspace-payload.object.js +24 -0
- package/dist/objects/create-workspace-payload.object.js.map +1 -0
- package/dist/objects/delete-user-payload.object.d.ts +5 -0
- package/dist/objects/delete-user-payload.object.js +24 -0
- package/dist/objects/delete-user-payload.object.js.map +1 -0
- package/dist/objects/delete-workspace-payload.object.d.ts +5 -0
- package/dist/objects/delete-workspace-payload.object.js +24 -0
- package/dist/objects/delete-workspace-payload.object.js.map +1 -0
- package/dist/objects/leave-workspace-payload.object.d.ts +5 -0
- package/dist/objects/leave-workspace-payload.object.js +24 -0
- package/dist/objects/leave-workspace-payload.object.js.map +1 -0
- package/dist/objects/reject-invitation-payload.object.d.ts +5 -0
- package/dist/objects/reject-invitation-payload.object.js +24 -0
- package/dist/objects/reject-invitation-payload.object.js.map +1 -0
- package/dist/objects/remove-member-payload.object.d.ts +5 -0
- package/dist/objects/remove-member-payload.object.js +24 -0
- package/dist/objects/remove-member-payload.object.js.map +1 -0
- package/dist/objects/set-member-permissions-payload.object.d.ts +5 -0
- package/dist/objects/set-member-permissions-payload.object.js +24 -0
- package/dist/objects/set-member-permissions-payload.object.js.map +1 -0
- package/dist/objects/set-member-roles-payload.object.d.ts +5 -0
- package/dist/objects/set-member-roles-payload.object.js +24 -0
- package/dist/objects/set-member-roles-payload.object.js.map +1 -0
- package/dist/objects/set-user-permissions-payload.object.d.ts +5 -0
- package/dist/objects/set-user-permissions-payload.object.js +24 -0
- package/dist/objects/set-user-permissions-payload.object.js.map +1 -0
- package/dist/objects/set-user-roles-payload.object.d.ts +5 -0
- package/dist/objects/set-user-roles-payload.object.js +24 -0
- package/dist/objects/set-user-roles-payload.object.js.map +1 -0
- package/dist/objects/sign-up-payload.object.d.ts +7 -0
- package/dist/objects/sign-up-payload.object.js +30 -0
- package/dist/objects/sign-up-payload.object.js.map +1 -0
- package/dist/objects/unban-user-payload.object.d.ts +5 -0
- package/dist/objects/unban-user-payload.object.js +24 -0
- package/dist/objects/unban-user-payload.object.js.map +1 -0
- package/dist/objects/update-member-payload.object.d.ts +5 -0
- package/dist/objects/update-member-payload.object.js +24 -0
- package/dist/objects/update-member-payload.object.js.map +1 -0
- package/dist/objects/update-user-payload.object.d.ts +5 -0
- package/dist/objects/update-user-payload.object.js +24 -0
- package/dist/objects/update-user-payload.object.js.map +1 -0
- package/dist/objects/update-workspace-payload.object.d.ts +5 -0
- package/dist/objects/update-workspace-payload.object.js +24 -0
- package/dist/objects/update-workspace-payload.object.js.map +1 -0
- package/dist/objects/user-api-key-permission-option.object.d.ts +8 -0
- package/dist/objects/user-api-key-permission-option.object.js +31 -0
- package/dist/objects/user-api-key-permission-option.object.js.map +1 -0
- package/dist/objects/user-permission-option.object.d.ts +8 -0
- package/dist/objects/user-permission-option.object.js +31 -0
- package/dist/objects/user-permission-option.object.js.map +1 -0
- package/dist/objects/user-role-option.object.d.ts +8 -0
- package/dist/objects/user-role-option.object.js +31 -0
- package/dist/objects/user-role-option.object.js.map +1 -0
- package/dist/objects/workspace-api-key-permission-option.object.d.ts +8 -0
- package/dist/objects/workspace-api-key-permission-option.object.js +31 -0
- package/dist/objects/workspace-api-key-permission-option.object.js.map +1 -0
- package/dist/objects/workspace-permission-option.object.d.ts +8 -0
- package/dist/objects/workspace-permission-option.object.js +31 -0
- package/dist/objects/workspace-permission-option.object.js.map +1 -0
- package/dist/objects/workspace-role-option.object.d.ts +8 -0
- package/dist/objects/workspace-role-option.object.js +31 -0
- package/dist/objects/workspace-role-option.object.js.map +1 -0
- package/dist/permission.constants.d.ts +23 -0
- package/dist/permission.constants.js +23 -0
- package/dist/permission.constants.js.map +1 -1
- package/dist/policies/create-scope-policy.d.ts +1 -0
- package/dist/policies/create-scope-policy.js +2 -1
- package/dist/policies/create-scope-policy.js.map +1 -1
- package/dist/policies/user-scope.policy.d.ts +8 -0
- package/dist/policies/user-scope.policy.js +8 -0
- package/dist/policies/user-scope.policy.js.map +1 -1
- package/dist/policies/workspace-scope.policy.d.ts +8 -0
- package/dist/policies/workspace-scope.policy.js +8 -0
- package/dist/policies/workspace-scope.policy.js.map +1 -1
- package/dist/resolvers/auth.resolver.d.ts +67 -0
- package/dist/resolvers/auth.resolver.js +279 -0
- package/dist/resolvers/auth.resolver.js.map +1 -0
- package/dist/resolvers/invitation.resolver.d.ts +32 -0
- package/dist/resolvers/invitation.resolver.js +134 -0
- package/dist/resolvers/invitation.resolver.js.map +1 -0
- package/dist/resolvers/member.resolver.d.ts +73 -0
- package/dist/resolvers/member.resolver.js +191 -0
- package/dist/resolvers/member.resolver.js.map +1 -0
- package/dist/resolvers/session.resolver.d.ts +33 -0
- package/dist/resolvers/session.resolver.js +156 -0
- package/dist/resolvers/session.resolver.js.map +1 -0
- package/dist/resolvers/user-api-key.resolver.d.ts +24 -0
- package/dist/resolvers/user-api-key.resolver.js +84 -0
- package/dist/resolvers/user-api-key.resolver.js.map +1 -0
- package/dist/resolvers/user.resolver.d.ts +75 -0
- package/dist/resolvers/user.resolver.js +289 -0
- package/dist/resolvers/user.resolver.js.map +1 -0
- package/dist/resolvers/workspace-api-key.resolver.d.ts +24 -0
- package/dist/resolvers/workspace-api-key.resolver.js +84 -0
- package/dist/resolvers/workspace-api-key.resolver.js.map +1 -0
- package/dist/resolvers/workspace.resolver.d.ts +80 -0
- package/dist/resolvers/workspace.resolver.js +211 -0
- package/dist/resolvers/workspace.resolver.js.map +1 -0
- package/dist/services/access-control.service.d.ts +52 -0
- package/dist/services/access-control.service.js +201 -0
- package/dist/services/access-control.service.js.map +1 -0
- package/dist/services/account.service.d.ts +14 -0
- package/dist/services/account.service.js +43 -0
- package/dist/services/account.service.js.map +1 -0
- package/dist/services/auth.service.d.ts +101 -0
- package/dist/services/auth.service.js +333 -0
- package/dist/services/auth.service.js.map +1 -0
- package/dist/services/invitation.service.d.ts +58 -0
- package/dist/services/invitation.service.js +386 -0
- package/dist/services/invitation.service.js.map +1 -0
- package/dist/services/member.service.d.ts +75 -0
- package/dist/services/member.service.js +390 -0
- package/dist/services/member.service.js.map +1 -0
- package/dist/services/session.service.d.ts +58 -0
- package/dist/services/session.service.js +313 -0
- package/dist/services/session.service.js.map +1 -0
- package/dist/services/user-api-key.service.d.ts +48 -0
- package/dist/services/user-api-key.service.js +260 -0
- package/dist/services/user-api-key.service.js.map +1 -0
- package/dist/services/user-deletion.service.d.ts +15 -0
- package/dist/services/user-deletion.service.js +50 -0
- package/dist/services/user-deletion.service.js.map +1 -0
- package/dist/services/user.service.d.ts +81 -0
- package/dist/services/user.service.js +479 -0
- package/dist/services/user.service.js.map +1 -0
- package/dist/services/workspace-api-key.service.d.ts +49 -0
- package/dist/services/workspace-api-key.service.js +272 -0
- package/dist/services/workspace-api-key.service.js.map +1 -0
- package/dist/services/workspace.service.d.ts +40 -0
- package/dist/services/workspace.service.js +202 -0
- package/dist/services/workspace.service.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/api-key-validation.type.d.ts +4 -0
- package/dist/types/api-key-validation.type.js +2 -0
- package/dist/types/api-key-validation.type.js.map +1 -0
- package/dist/types/api-key.type.d.ts +4 -0
- package/dist/types/api-key.type.js +2 -0
- package/dist/types/api-key.type.js.map +1 -0
- package/dist/types/auth-account-selector.type.d.ts +12 -0
- package/dist/types/auth-account-selector.type.js +2 -0
- package/dist/types/auth-account-selector.type.js.map +1 -0
- package/dist/types/auth-invitation-email-inviter.type.d.ts +7 -0
- package/dist/types/auth-invitation-email-inviter.type.js +2 -0
- package/dist/types/auth-invitation-email-inviter.type.js.map +1 -0
- package/dist/types/auth-maybe-promise.type.d.ts +2 -0
- package/dist/types/auth-maybe-promise.type.js +2 -0
- package/dist/types/auth-maybe-promise.type.js.map +1 -0
- package/dist/types/auth-module-provider.type.d.ts +4 -0
- package/dist/types/auth-module-provider.type.js +2 -0
- package/dist/types/auth-module-provider.type.js.map +1 -0
- package/dist/types/auth-module-roles.type.d.ts +3 -1
- package/dist/types/auth-module-social-provider-id.type.d.ts +2 -0
- package/dist/types/auth-module-social-provider-id.type.js +2 -0
- package/dist/types/auth-module-social-provider-id.type.js.map +1 -0
- package/dist/types/auth-oauth-token-endpoint-auth.type.d.ts +7 -0
- package/dist/types/auth-oauth-token-endpoint-auth.type.js +2 -0
- package/dist/types/auth-oauth-token-endpoint-auth.type.js.map +1 -0
- package/dist/types/auth-send-invitation-email.type.d.ts +7 -0
- package/dist/types/auth-send-invitation-email.type.js +2 -0
- package/dist/types/auth-send-invitation-email.type.js.map +1 -0
- package/dist/types/auth-send-reset-password.type.d.ts +7 -0
- package/dist/types/auth-send-reset-password.type.js +2 -0
- package/dist/types/auth-send-reset-password.type.js.map +1 -0
- package/dist/types/auth-send-verification-email.type.d.ts +7 -0
- package/dist/types/auth-send-verification-email.type.js +2 -0
- package/dist/types/auth-send-verification-email.type.js.map +1 -0
- package/dist/types/build-user-ability-callback.type.d.ts +10 -4
- package/dist/types/build-workspace-ability-callback.type.d.ts +10 -4
- package/dist/types/can-subject-factory.type.d.ts +1 -0
- package/dist/types/can-subject.type.d.ts +1 -0
- package/dist/types/lowercase-identifier.type.d.ts +6 -0
- package/dist/types/lowercase-identifier.type.js +2 -0
- package/dist/types/lowercase-identifier.type.js.map +1 -0
- package/dist/types/permission-name.type.d.ts +3 -0
- package/dist/types/permission-name.type.js +2 -0
- package/dist/types/permission-name.type.js.map +1 -0
- package/dist/types/role-name.type.d.ts +3 -0
- package/dist/types/role-name.type.js +2 -0
- package/dist/types/role-name.type.js.map +1 -0
- package/dist/types/route-argument-metadata.type.d.ts +1 -0
- package/dist/user.constants.d.ts +8 -2
- package/dist/user.constants.js +24 -14
- package/dist/user.constants.js.map +1 -1
- package/dist/utils/api-key-credential.util.d.ts +4 -0
- package/dist/utils/api-key-credential.util.js +16 -0
- package/dist/utils/api-key-credential.util.js.map +1 -0
- package/dist/utils/api-key-permissions.util.d.ts +6 -0
- package/dist/utils/api-key-permissions.util.js +16 -0
- package/dist/utils/api-key-permissions.util.js.map +1 -0
- package/dist/utils/append-metadata.util.d.ts +1 -0
- package/dist/utils/append-metadata.util.js +1 -0
- package/dist/utils/append-metadata.util.js.map +1 -1
- package/dist/utils/apply-auth-response-cookies.util.d.ts +1 -0
- package/dist/utils/apply-auth-response-cookies.util.js +1 -0
- package/dist/utils/apply-auth-response-cookies.util.js.map +1 -1
- package/dist/utils/auth-role.util.d.ts +8 -2
- package/dist/utils/auth-role.util.js +22 -6
- package/dist/utils/auth-role.util.js.map +1 -1
- package/dist/utils/build-request-ability.util.d.ts +7 -0
- package/dist/utils/build-request-ability.util.js +25 -0
- package/dist/utils/build-request-ability.util.js.map +1 -0
- package/dist/utils/can.util.d.ts +1 -0
- package/dist/utils/can.util.js +1 -0
- package/dist/utils/can.util.js.map +1 -1
- package/dist/utils/create-email-verification-config.d.ts +1 -0
- package/dist/utils/create-email-verification-config.js +1 -0
- package/dist/utils/create-email-verification-config.js.map +1 -1
- package/dist/utils/create-generic-oauth-config.d.ts +1 -0
- package/dist/utils/create-generic-oauth-config.js +1 -0
- package/dist/utils/create-generic-oauth-config.js.map +1 -1
- package/dist/utils/create-permission-enum.util.d.ts +2 -0
- package/dist/utils/create-permission-enum.util.js +16 -0
- package/dist/utils/create-permission-enum.util.js.map +1 -0
- package/dist/utils/create-user-config.d.ts +2 -1
- package/dist/utils/create-user-config.js +1 -0
- package/dist/utils/create-user-config.js.map +1 -1
- package/dist/utils/estimate-entropy.d.ts +7 -0
- package/dist/utils/estimate-entropy.js +7 -0
- package/dist/utils/estimate-entropy.js.map +1 -1
- package/dist/utils/extend-ability.util.d.ts +4 -0
- package/dist/utils/extend-ability.util.js +62 -0
- package/dist/utils/extend-ability.util.js.map +1 -0
- package/dist/utils/extract-api-key.util.d.ts +1 -0
- package/dist/utils/extract-api-key.util.js +1 -0
- package/dist/utils/extract-api-key.util.js.map +1 -1
- package/dist/utils/get-current-api-key.util.d.ts +3 -0
- package/dist/utils/get-current-api-key.util.js +9 -0
- package/dist/utils/get-current-api-key.util.js.map +1 -0
- package/dist/utils/get-user-ability.util.d.ts +2 -1
- package/dist/utils/get-user-ability.util.js +5 -2
- package/dist/utils/get-user-ability.util.js.map +1 -1
- package/dist/utils/get-workspace-ability.util.d.ts +2 -1
- package/dist/utils/get-workspace-ability.util.js +5 -2
- package/dist/utils/get-workspace-ability.util.js.map +1 -1
- package/dist/utils/resolve-auth-catalog.util.d.ts +7 -0
- package/dist/utils/resolve-auth-catalog.util.js +34 -0
- package/dist/utils/resolve-auth-catalog.util.js.map +1 -0
- package/dist/utils/resolve-effective-permissions.util.d.ts +9 -0
- package/dist/utils/resolve-effective-permissions.util.js +18 -0
- package/dist/utils/resolve-effective-permissions.util.js.map +1 -0
- package/dist/utils/resolve-request-permissions.util.d.ts +6 -0
- package/dist/utils/resolve-request-permissions.util.js +44 -0
- package/dist/utils/resolve-request-permissions.util.js.map +1 -0
- package/dist/utils/run-auth-query.d.ts +4 -0
- package/dist/utils/run-auth-query.js +32 -2
- package/dist/utils/run-auth-query.js.map +1 -1
- package/dist/utils/serialize-ability-rules.util.d.ts +1 -0
- package/dist/utils/serialize-ability-rules.util.js +2 -1
- package/dist/utils/serialize-ability-rules.util.js.map +1 -1
- package/dist/utils/split-auth-providers.d.ts +2 -1
- package/dist/utils/split-auth-providers.js +1 -0
- package/dist/utils/split-auth-providers.js.map +1 -1
- package/dist/utils/user-can.util.d.ts +1 -0
- package/dist/utils/user-can.util.js +3 -12
- package/dist/utils/user-can.util.js.map +1 -1
- package/dist/utils/workspace-can.util.d.ts +1 -0
- package/dist/utils/workspace-can.util.js +4 -12
- package/dist/utils/workspace-can.util.js.map +1 -1
- package/dist/workspace.constants.d.ts +10 -3
- package/dist/workspace.constants.js +24 -13
- package/dist/workspace.constants.js.map +1 -1
- package/package.json +36 -13
- package/dist/access-control.service.d.ts +0 -18
- package/dist/access-control.service.js +0 -153
- package/dist/access-control.service.js.map +0 -1
- package/dist/api-key.service.d.ts +0 -75
- package/dist/api-key.service.js +0 -332
- package/dist/api-key.service.js.map +0 -1
- package/dist/auth.service.d.ts +0 -27
- package/dist/auth.service.js +0 -199
- package/dist/auth.service.js.map +0 -1
- package/dist/decorators/current-workspace-member.decorator.d.ts +0 -1
- package/dist/decorators/current-workspace-member.decorator.js +0 -5
- package/dist/decorators/current-workspace-member.decorator.js.map +0 -1
- package/dist/entities/api-key.entity.d.ts +0 -17
- package/dist/entities/api-key.entity.js +0 -92
- package/dist/entities/api-key.entity.js.map +0 -1
- package/dist/entities/resolve-auth-relation-target.d.ts +0 -3
- package/dist/entities/resolve-auth-relation-target.js +0 -30
- package/dist/entities/resolve-auth-relation-target.js.map +0 -1
- package/dist/entities/workspace-invitation.entity.d.ts +0 -14
- package/dist/entities/workspace-invitation.entity.js +0 -74
- package/dist/entities/workspace-invitation.entity.js.map +0 -1
- package/dist/entities/workspace-member.entity.d.ts +0 -16
- package/dist/entities/workspace-member.entity.js +0 -86
- package/dist/entities/workspace-member.entity.js.map +0 -1
- package/dist/interfaces/auth-role.interface.d.ts +0 -4
- package/dist/interfaces/auth-role.interface.js +0 -2
- package/dist/interfaces/auth-role.interface.js.map +0 -1
- package/dist/interfaces/auth-service.interface.d.ts +0 -160
- package/dist/interfaces/auth-service.interface.js +0 -2
- package/dist/interfaces/auth-service.interface.js.map +0 -1
- package/dist/interfaces/session-service.interface.d.ts +0 -5
- package/dist/interfaces/session-service.interface.js +0 -2
- package/dist/interfaces/session-service.interface.js.map +0 -1
- package/dist/interfaces/user-service.interface.d.ts +0 -44
- package/dist/interfaces/user-service.interface.js +0 -2
- package/dist/interfaces/user-service.interface.js.map +0 -1
- package/dist/interfaces/workspace-service.interface.d.ts +0 -37
- package/dist/interfaces/workspace-service.interface.js +0 -2
- package/dist/interfaces/workspace-service.interface.js.map +0 -1
- package/dist/session.service.d.ts +0 -18
- package/dist/session.service.js +0 -165
- package/dist/session.service.js.map +0 -1
- package/dist/user-deletion.service.d.ts +0 -19
- package/dist/user-deletion.service.js +0 -96
- package/dist/user-deletion.service.js.map +0 -1
- package/dist/user.service.d.ts +0 -54
- package/dist/user.service.js +0 -384
- package/dist/user.service.js.map +0 -1
- package/dist/workspace.service.d.ts +0 -59
- package/dist/workspace.service.js +0 -618
- package/dist/workspace.service.js.map +0 -1
|
@@ -10,35 +10,42 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
import { BaseEntity, t } from "@mikro-orm/core";
|
|
11
11
|
import { Entity, Index, PrimaryKey, Property, } from "@mikro-orm/decorators/legacy";
|
|
12
12
|
import { randomUUID } from "crypto";
|
|
13
|
-
|
|
13
|
+
/** Built-in Verification entity with authentication persistence and access policies. */
|
|
14
|
+
let Verification = class Verification extends BaseEntity {
|
|
15
|
+
/** Primary key (UUID v4, auto-generated). */
|
|
14
16
|
id = randomUUID();
|
|
17
|
+
/** Identifier associated with this verification (e.g. email address). */
|
|
15
18
|
identifier;
|
|
19
|
+
/** Verification token value. */
|
|
16
20
|
value;
|
|
21
|
+
/** Timestamp when this verification expires. */
|
|
17
22
|
expiresAt;
|
|
23
|
+
/** Timestamp when the verification was created. */
|
|
18
24
|
createdAt = new Date();
|
|
25
|
+
/** Timestamp of the last update. */
|
|
19
26
|
updatedAt = new Date();
|
|
20
27
|
};
|
|
21
28
|
__decorate([
|
|
22
29
|
PrimaryKey({ type: t.uuid }),
|
|
23
30
|
__metadata("design:type", Object)
|
|
24
|
-
],
|
|
31
|
+
], Verification.prototype, "id", void 0);
|
|
25
32
|
__decorate([
|
|
26
33
|
Index(),
|
|
27
34
|
Property({ type: t.text }),
|
|
28
35
|
__metadata("design:type", String)
|
|
29
|
-
],
|
|
36
|
+
], Verification.prototype, "identifier", void 0);
|
|
30
37
|
__decorate([
|
|
31
38
|
Property({ type: t.text }),
|
|
32
39
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
40
|
+
], Verification.prototype, "value", void 0);
|
|
34
41
|
__decorate([
|
|
35
42
|
Property({ type: t.datetime }),
|
|
36
43
|
__metadata("design:type", Date)
|
|
37
|
-
],
|
|
44
|
+
], Verification.prototype, "expiresAt", void 0);
|
|
38
45
|
__decorate([
|
|
39
46
|
Property({ type: t.datetime, defaultRaw: "now()" }),
|
|
40
47
|
__metadata("design:type", Object)
|
|
41
|
-
],
|
|
48
|
+
], Verification.prototype, "createdAt", void 0);
|
|
42
49
|
__decorate([
|
|
43
50
|
Property({
|
|
44
51
|
type: t.datetime,
|
|
@@ -46,9 +53,18 @@ __decorate([
|
|
|
46
53
|
onUpdate: () => new Date(),
|
|
47
54
|
}),
|
|
48
55
|
__metadata("design:type", Object)
|
|
49
|
-
],
|
|
50
|
-
|
|
51
|
-
Entity({
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
], Verification.prototype, "updatedAt", void 0);
|
|
57
|
+
Verification = __decorate([
|
|
58
|
+
Entity({
|
|
59
|
+
policies: [
|
|
60
|
+
{
|
|
61
|
+
command: "all",
|
|
62
|
+
roles: ["anonymous", "authenticated"],
|
|
63
|
+
using: () => "false",
|
|
64
|
+
check: () => "false",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
})
|
|
68
|
+
], Verification);
|
|
69
|
+
export { Verification };
|
|
54
70
|
//# sourceMappingURL=verification.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification.entity.js","sourceRoot":"","sources":["../../src/entities/verification.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAY,CAAC,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EACL,MAAM,EACN,KAAK,EACL,UAAU,EACV,QAAQ,GACT,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"verification.entity.js","sourceRoot":"","sources":["../../src/entities/verification.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAY,CAAC,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EACL,MAAM,EACN,KAAK,EACL,UAAU,EACV,QAAQ,GACT,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,wFAAwF;AAWjF,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAC1C,6CAA6C;IAE7C,EAAE,GAAgB,UAAU,EAAE,CAAC;IAE/B,yEAAyE;IAGzE,UAAU,CAAU;IAEpB,gCAAgC;IAEhC,KAAK,CAAU;IAEf,gDAAgD;IAEhD,SAAS,CAAQ;IAEjB,mDAAmD;IAEnD,SAAS,GAAc,IAAI,IAAI,EAAE,CAAC;IAElC,oCAAoC;IAMpC,SAAS,GAAc,IAAI,IAAI,EAAE,CAAC;CACnC,CAAA;AA1BC;IADC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;;wCACE;AAK/B;IAFC,KAAK,EAAE;IACP,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;;gDACP;AAIpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;;2CACZ;AAIf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;8BACnB,IAAI;+CAAC;AAIjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;;+CAClB;AAQlC;IALC,QAAQ,CAAC;QACR,IAAI,EAAE,CAAC,CAAC,QAAQ;QAChB,UAAU,EAAE,OAAO;QACnB,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;KAC3B,CAAC;;+CACgC;AA5BvB,YAAY;IAVxB,MAAM,CAAC;QACN,QAAQ,EAAE;YACR;gBACE,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC;gBACrC,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO;gBACpB,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO;aACrB;SACF;KACF,CAAC;GACW,YAAY,CA6BxB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseEntity, type Opt, type Ref } from "@mikro-orm/core";
|
|
2
|
+
import { Workspace } from "./workspace.entity.js";
|
|
3
|
+
/** Built-in WorkspaceApiKey entity with authentication persistence and access policies. */
|
|
4
|
+
export declare class WorkspaceApiKey extends BaseEntity {
|
|
5
|
+
/** Primary key (Sonyflake ID, auto-generated). */
|
|
6
|
+
id: Opt<string>;
|
|
7
|
+
/** API-key display name. */
|
|
8
|
+
name: string;
|
|
9
|
+
/** Starting characters retained for recognition in user interfaces. */
|
|
10
|
+
start?: Opt<string> | null;
|
|
11
|
+
/** Public prefix embedded in the plaintext key. */
|
|
12
|
+
prefix?: Opt<string> | null;
|
|
13
|
+
/** SHA-256 hash of the complete plaintext API key. */
|
|
14
|
+
key: string;
|
|
15
|
+
/** Whether the key can authenticate requests. */
|
|
16
|
+
enabled: Opt<boolean>;
|
|
17
|
+
/** Operations that this API key may perform. */
|
|
18
|
+
permissions: Opt<string[]>;
|
|
19
|
+
/** Timestamp when the key was created. */
|
|
20
|
+
createdAt: Opt<Date>;
|
|
21
|
+
/** Timestamp of the last update. */
|
|
22
|
+
updatedAt: Opt<Date>;
|
|
23
|
+
/** Last successful usage timestamp. */
|
|
24
|
+
lastUsedAt?: Opt<Date> | null;
|
|
25
|
+
/** Expiration timestamp; `null` means the key does not expire. */
|
|
26
|
+
expiresAt?: Opt<Date> | null;
|
|
27
|
+
/** Owning workspace; physical deletion cascades to its keys. */
|
|
28
|
+
workspace: Ref<Workspace>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
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 { BaseEntity, t, } from "@mikro-orm/core";
|
|
11
|
+
import { Entity, Index, ManyToOne, PrimaryKey, Property, Unique, } from "@mikro-orm/decorators/legacy";
|
|
12
|
+
import { Field, HideField, ID, ObjectType } from "@nest-boot/graphql";
|
|
13
|
+
import { Sonyflake } from "sonyflake-js";
|
|
14
|
+
import { WorkspaceApiKeyPermission } from "../enums/workspace-api-key-permission.enum.js";
|
|
15
|
+
import { Workspace } from "./workspace.entity.js";
|
|
16
|
+
const matchesApiKeyOwner = (columns) => `("${columns.workspace}" = nullif(current_setting('app.workspace.id', true), '')::bigint)`;
|
|
17
|
+
/** Built-in WorkspaceApiKey entity with authentication persistence and access policies. */
|
|
18
|
+
let WorkspaceApiKey = class WorkspaceApiKey extends BaseEntity {
|
|
19
|
+
/** Primary key (Sonyflake ID, auto-generated). */
|
|
20
|
+
id = Sonyflake.next().toString();
|
|
21
|
+
/** API-key display name. */
|
|
22
|
+
name;
|
|
23
|
+
/** Starting characters retained for recognition in user interfaces. */
|
|
24
|
+
start = null;
|
|
25
|
+
/** Public prefix embedded in the plaintext key. */
|
|
26
|
+
prefix = null;
|
|
27
|
+
/** SHA-256 hash of the complete plaintext API key. */
|
|
28
|
+
key;
|
|
29
|
+
/** Whether the key can authenticate requests. */
|
|
30
|
+
enabled = true;
|
|
31
|
+
/** Operations that this API key may perform. */
|
|
32
|
+
// eslint-disable-next-line @nest-boot/graphql-field-config-from-types -- Dynamic enums preserve the stored string array type.
|
|
33
|
+
permissions = [];
|
|
34
|
+
/** Timestamp when the key was created. */
|
|
35
|
+
createdAt = new Date();
|
|
36
|
+
/** Timestamp of the last update. */
|
|
37
|
+
updatedAt = new Date();
|
|
38
|
+
/** Last successful usage timestamp. */
|
|
39
|
+
lastUsedAt = null;
|
|
40
|
+
/** Expiration timestamp; `null` means the key does not expire. */
|
|
41
|
+
expiresAt = null;
|
|
42
|
+
/** Owning workspace; physical deletion cascades to its keys. */
|
|
43
|
+
workspace;
|
|
44
|
+
};
|
|
45
|
+
__decorate([
|
|
46
|
+
PrimaryKey({
|
|
47
|
+
type: t.bigint,
|
|
48
|
+
}),
|
|
49
|
+
Field(() => ID),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], WorkspaceApiKey.prototype, "id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
Property({ type: t.string }),
|
|
54
|
+
Field(() => String),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], WorkspaceApiKey.prototype, "name", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
Property({ type: t.string, nullable: true }),
|
|
59
|
+
Field(() => String, { nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], WorkspaceApiKey.prototype, "start", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
Property({
|
|
64
|
+
type: t.string,
|
|
65
|
+
nullable: true,
|
|
66
|
+
}),
|
|
67
|
+
Field(() => String, { nullable: true }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], WorkspaceApiKey.prototype, "prefix", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
Property({
|
|
72
|
+
type: t.text,
|
|
73
|
+
}),
|
|
74
|
+
Unique(),
|
|
75
|
+
HideField(),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], WorkspaceApiKey.prototype, "key", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
Property({
|
|
80
|
+
type: t.boolean,
|
|
81
|
+
default: true,
|
|
82
|
+
}),
|
|
83
|
+
Field(() => Boolean),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], WorkspaceApiKey.prototype, "enabled", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
Property({ type: t.array, defaultRaw: "'{}'" }),
|
|
88
|
+
Field(() => [WorkspaceApiKeyPermission]),
|
|
89
|
+
__metadata("design:type", Object)
|
|
90
|
+
], WorkspaceApiKey.prototype, "permissions", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
Property({
|
|
93
|
+
type: t.datetime,
|
|
94
|
+
defaultRaw: "now()",
|
|
95
|
+
}),
|
|
96
|
+
Field(() => Date),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], WorkspaceApiKey.prototype, "createdAt", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
Property({
|
|
101
|
+
type: t.datetime,
|
|
102
|
+
defaultRaw: "now()",
|
|
103
|
+
onUpdate: () => new Date(),
|
|
104
|
+
}),
|
|
105
|
+
Field(() => Date),
|
|
106
|
+
__metadata("design:type", Object)
|
|
107
|
+
], WorkspaceApiKey.prototype, "updatedAt", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
Property({
|
|
110
|
+
type: t.datetime,
|
|
111
|
+
nullable: true,
|
|
112
|
+
}),
|
|
113
|
+
Field(() => Date, { nullable: true }),
|
|
114
|
+
__metadata("design:type", Object)
|
|
115
|
+
], WorkspaceApiKey.prototype, "lastUsedAt", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
Property({
|
|
118
|
+
type: t.datetime,
|
|
119
|
+
nullable: true,
|
|
120
|
+
}),
|
|
121
|
+
Field(() => Date, { nullable: true }),
|
|
122
|
+
__metadata("design:type", Object)
|
|
123
|
+
], WorkspaceApiKey.prototype, "expiresAt", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
Index(),
|
|
126
|
+
ManyToOne(() => Workspace, { ref: true, deleteRule: "cascade" }),
|
|
127
|
+
HideField(),
|
|
128
|
+
__metadata("design:type", Object)
|
|
129
|
+
], WorkspaceApiKey.prototype, "workspace", void 0);
|
|
130
|
+
WorkspaceApiKey = __decorate([
|
|
131
|
+
ObjectType(),
|
|
132
|
+
Entity({
|
|
133
|
+
policies: [
|
|
134
|
+
{
|
|
135
|
+
command: "all",
|
|
136
|
+
roles: ["authenticated"],
|
|
137
|
+
using: matchesApiKeyOwner,
|
|
138
|
+
check: matchesApiKeyOwner,
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
}),
|
|
142
|
+
Index({ properties: ["key"] }),
|
|
143
|
+
Index({ properties: ["prefix"] }),
|
|
144
|
+
Index({ properties: ["createdAt"] })
|
|
145
|
+
], WorkspaceApiKey);
|
|
146
|
+
export { WorkspaceApiKey };
|
|
147
|
+
//# sourceMappingURL=workspace-api-key.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-api-key.entity.js","sourceRoot":"","sources":["../../src/entities/workspace-api-key.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EAIV,CAAC,GACF,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,MAAM,EACN,KAAK,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACR,MAAM,GACP,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,kBAAkB,GAAoC,CAAC,OAAO,EAAE,EAAE,CACtE,KAAK,OAAO,CAAC,SAAS,oEAAoE,CAAC;AAE7F,2FAA2F;AAepF,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,UAAU;IAC7C,kDAAkD;IAKlD,EAAE,GAAgB,SAAS,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC;IAE9C,4BAA4B;IAG5B,IAAI,CAAU;IAEd,uEAAuE;IAGvE,KAAK,GAAwB,IAAI,CAAC;IAElC,mDAAmD;IAMnD,MAAM,GAAwB,IAAI,CAAC;IAEnC,sDAAsD;IAMtD,GAAG,CAAU;IAEb,iDAAiD;IAMjD,OAAO,GAAiB,IAAI,CAAC;IAE7B,gDAAgD;IAChD,8HAA8H;IAG9H,WAAW,GAAkB,EAAE,CAAC;IAEhC,0CAA0C;IAM1C,SAAS,GAAc,IAAI,IAAI,EAAE,CAAC;IAElC,oCAAoC;IAOpC,SAAS,GAAc,IAAI,IAAI,EAAE,CAAC;IAElC,uCAAuC;IAMvC,UAAU,GAAsB,IAAI,CAAC;IAErC,kEAAkE;IAMlE,SAAS,GAAsB,IAAI,CAAC;IAEpC,gEAAgE;IAIhE,SAAS,CAAkB;CAC5B,CAAA;AAhFC;IAJC,UAAU,CAAC;QACV,IAAI,EAAE,CAAC,CAAC,MAAM;KACf,CAAC;IACD,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;;2CAC8B;AAK9C;IAFC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,KAAK,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACN;AAKd;IAFC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5C,KAAK,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACN;AAQlC;IALC,QAAQ,CAAC;QACR,IAAI,EAAE,CAAC,CAAC,MAAM;QACd,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,KAAK,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACL;AAQnC;IALC,QAAQ,CAAC;QACR,IAAI,EAAE,CAAC,CAAC,IAAI;KACb,CAAC;IACD,MAAM,EAAE;IACR,SAAS,EAAE;;4CACC;AAQb;IALC,QAAQ,CAAC;QACR,IAAI,EAAE,CAAC,CAAC,OAAO;QACf,OAAO,EAAE,IAAI;KACd,CAAC;IACD,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;gDACQ;AAM7B;IAFC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;IAC/C,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,yBAAyB,CAAC,CAAC;;oDACT;AAQhC;IALC,QAAQ,CAAC;QACR,IAAI,EAAE,CAAC,CAAC,QAAQ;QAChB,UAAU,EAAE,OAAO;KACpB,CAAC;IACD,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;;kDACgB;AASlC;IANC,QAAQ,CAAC;QACR,IAAI,EAAE,CAAC,CAAC,QAAQ;QAChB,UAAU,EAAE,OAAO;QACnB,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;KAC3B,CAAC;IACD,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;;kDACgB;AAQlC;IALC,QAAQ,CAAC;QACR,IAAI,EAAE,CAAC,CAAC,QAAQ;QAChB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACD;AAQrC;IALC,QAAQ,CAAC;QACR,IAAI,EAAE,CAAC,CAAC,QAAQ;QAChB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACF;AAMpC;IAHC,KAAK,EAAE;IACP,SAAS,CAAC,GAAG,EAAE,CAAC,SAAS,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC;IAChE,SAAS,EAAE;;kDACe;AArFhB,eAAe;IAd3B,UAAU,EAAE;IACZ,MAAM,CAAyB;QAC9B,QAAQ,EAAE;YACR;gBACE,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,CAAC,eAAe,CAAC;gBACxB,KAAK,EAAE,kBAAkB;gBACzB,KAAK,EAAE,kBAAkB;aAC1B;SACF;KACF,CAAC;IACD,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;IACjC,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;GACxB,eAAe,CAsF3B"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { BaseEntity, type Opt } from "@mikro-orm/core";
|
|
2
|
-
|
|
1
|
+
import { BaseEntity, Collection, type Opt } from "@mikro-orm/core";
|
|
2
|
+
import { Member } from "./member.entity.js";
|
|
3
|
+
/** Built-in Workspace entity with authentication persistence and access policies. */
|
|
4
|
+
export declare class Workspace extends BaseEntity {
|
|
5
|
+
/** Primary key (Sonyflake ID, auto-generated). */
|
|
3
6
|
id: Opt<string>;
|
|
7
|
+
/** Workspace display name. */
|
|
4
8
|
name: string;
|
|
9
|
+
/** Timestamp when the workspace was created. */
|
|
5
10
|
createdAt: Opt<Date>;
|
|
11
|
+
/** Timestamp of the last update. */
|
|
6
12
|
updatedAt: Opt<Date>;
|
|
7
|
-
|
|
13
|
+
/** Members of this workspace; reads retain the caller's RLS scope. */
|
|
14
|
+
members: Collection<Member>;
|
|
8
15
|
}
|
|
@@ -7,42 +7,73 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
import { BaseEntity, Collection, t } from "@mikro-orm/core";
|
|
11
|
+
import { Entity, Index, OneToMany, PrimaryKey, Property, } from "@mikro-orm/decorators/legacy";
|
|
12
|
+
import { Field, HideField, ID, ObjectType } from "@nest-boot/graphql";
|
|
13
|
+
import { Sonyflake } from "sonyflake-js";
|
|
14
|
+
import { workspaceScopePolicy } from "../policies/workspace-scope.policy.js";
|
|
15
|
+
import { Member } from "./member.entity.js";
|
|
16
|
+
/** Built-in Workspace entity with authentication persistence and access policies. */
|
|
17
|
+
let Workspace = class Workspace extends BaseEntity {
|
|
18
|
+
/** Primary key (Sonyflake ID, auto-generated). */
|
|
19
|
+
id = Sonyflake.next().toString();
|
|
20
|
+
/** Workspace display name. */
|
|
15
21
|
name;
|
|
22
|
+
/** Timestamp when the workspace was created. */
|
|
16
23
|
createdAt = new Date();
|
|
24
|
+
/** Timestamp of the last update. */
|
|
17
25
|
updatedAt = new Date();
|
|
18
|
-
|
|
26
|
+
/** Members of this workspace; reads retain the caller's RLS scope. */
|
|
27
|
+
members = new Collection(this);
|
|
19
28
|
};
|
|
20
29
|
__decorate([
|
|
21
|
-
PrimaryKey({
|
|
30
|
+
PrimaryKey({
|
|
31
|
+
type: t.bigint,
|
|
32
|
+
}),
|
|
33
|
+
Field(() => ID),
|
|
22
34
|
__metadata("design:type", Object)
|
|
23
|
-
],
|
|
35
|
+
], Workspace.prototype, "id", void 0);
|
|
24
36
|
__decorate([
|
|
25
|
-
Property({ type: t.
|
|
37
|
+
Property({ type: t.string }),
|
|
38
|
+
Field(() => String),
|
|
26
39
|
__metadata("design:type", String)
|
|
27
|
-
],
|
|
40
|
+
], Workspace.prototype, "name", void 0);
|
|
28
41
|
__decorate([
|
|
29
|
-
Property({
|
|
42
|
+
Property({
|
|
43
|
+
type: t.datetime,
|
|
44
|
+
defaultRaw: "now()",
|
|
45
|
+
}),
|
|
46
|
+
Field(() => Date),
|
|
30
47
|
__metadata("design:type", Object)
|
|
31
|
-
],
|
|
48
|
+
], Workspace.prototype, "createdAt", void 0);
|
|
32
49
|
__decorate([
|
|
33
50
|
Property({
|
|
34
51
|
type: t.datetime,
|
|
35
52
|
defaultRaw: "now()",
|
|
36
53
|
onUpdate: () => new Date(),
|
|
37
54
|
}),
|
|
55
|
+
Field(() => Date),
|
|
38
56
|
__metadata("design:type", Object)
|
|
39
|
-
],
|
|
57
|
+
], Workspace.prototype, "updatedAt", void 0);
|
|
40
58
|
__decorate([
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
59
|
+
OneToMany(() => Member, "workspace"),
|
|
60
|
+
HideField(),
|
|
61
|
+
__metadata("design:type", Collection)
|
|
62
|
+
], Workspace.prototype, "members", void 0);
|
|
63
|
+
Workspace = __decorate([
|
|
64
|
+
ObjectType(),
|
|
65
|
+
Entity({
|
|
66
|
+
policies: [
|
|
67
|
+
{
|
|
68
|
+
command: "select",
|
|
69
|
+
using: () => "true",
|
|
70
|
+
roles: ["authenticated", "anonymous"],
|
|
71
|
+
},
|
|
72
|
+
workspaceScopePolicy({ property: "id", command: "update" }),
|
|
73
|
+
workspaceScopePolicy({ property: "id", command: "delete" }),
|
|
74
|
+
],
|
|
75
|
+
}),
|
|
76
|
+
Index({ properties: ["createdAt"] })
|
|
77
|
+
], Workspace);
|
|
78
|
+
export { Workspace };
|
|
48
79
|
//# sourceMappingURL=workspace.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.entity.js","sourceRoot":"","sources":["../../src/entities/workspace.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"workspace.entity.js","sourceRoot":"","sources":["../../src/entities/workspace.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAY,CAAC,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EACL,MAAM,EACN,KAAK,EACL,SAAS,EACT,UAAU,EACV,QAAQ,GACT,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,qFAAqF;AAc9E,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU;IACvC,kDAAkD;IAKlD,EAAE,GAAgB,SAAS,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC;IAE9C,8BAA8B;IAG9B,IAAI,CAAU;IAEd,gDAAgD;IAMhD,SAAS,GAAc,IAAI,IAAI,EAAE,CAAC;IAElC,oCAAoC;IAOpC,SAAS,GAAc,IAAI,IAAI,EAAE,CAAC;IAElC,sEAAsE;IAGtE,OAAO,GAAuB,IAAI,UAAU,CAAS,IAAI,CAAC,CAAC;CAC5D,CAAA;AA5BC;IAJC,UAAU,CAAC;QACV,IAAI,EAAE,CAAC,CAAC,MAAM;KACf,CAAC;IACD,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;;qCAC8B;AAK9C;IAFC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,KAAK,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;uCACN;AAQd;IALC,QAAQ,CAAC;QACR,IAAI,EAAE,CAAC,CAAC,QAAQ;QAChB,UAAU,EAAE,OAAO;KACpB,CAAC;IACD,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;;4CACgB;AASlC;IANC,QAAQ,CAAC;QACR,IAAI,EAAE,CAAC,CAAC,QAAQ;QAChB,UAAU,EAAE,OAAO;QACnB,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;KAC3B,CAAC;IACD,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;;4CACgB;AAKlC;IAFC,SAAS,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC;IACpC,SAAS,EAAE;8BACH,UAAU;0CAAwC;AAjChD,SAAS;IAbrB,UAAU,EAAE;IACZ,MAAM,CAAC;QACN,QAAQ,EAAE;YACR;gBACE,OAAO,EAAE,QAAQ;gBACjB,KAAK,EAAE,GAAG,EAAE,CAAC,MAAM;gBACnB,KAAK,EAAE,CAAC,eAAe,EAAE,WAAW,CAAC;aACtC;YACD,oBAAoB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;YAC3D,oBAAoB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;SAC5D;KACF,CAAC;IACD,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;GACxB,SAAS,CAkCrB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./invitation-status.enum.js";
|
|
2
|
+
export * from "./member-status.enum.js";
|
|
3
|
+
export * from "./user-api-key-permission.enum.js";
|
|
4
|
+
export * from "./user-permission.enum.js";
|
|
5
|
+
export * from "./user-role.enum.js";
|
|
6
|
+
export * from "./workspace-api-key-permission.enum.js";
|
|
7
|
+
export * from "./workspace-permission.enum.js";
|
|
8
|
+
export * from "./workspace-role.enum.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./invitation-status.enum.js";
|
|
2
|
+
export * from "./member-status.enum.js";
|
|
3
|
+
export * from "./user-api-key-permission.enum.js";
|
|
4
|
+
export * from "./user-permission.enum.js";
|
|
5
|
+
export * from "./user-role.enum.js";
|
|
6
|
+
export * from "./workspace-api-key-permission.enum.js";
|
|
7
|
+
export * from "./workspace-permission.enum.js";
|
|
8
|
+
export * from "./workspace-role.enum.js";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { registerEnumType } from "@nest-boot/graphql";
|
|
2
|
+
/** Workspace invitation status. */
|
|
3
|
+
export var InvitationStatus;
|
|
4
|
+
(function (InvitationStatus) {
|
|
5
|
+
/** Accepted. */
|
|
6
|
+
InvitationStatus["ACCEPTED"] = "accepted";
|
|
7
|
+
/** Canceled. */
|
|
8
|
+
InvitationStatus["CANCELED"] = "canceled";
|
|
9
|
+
/** Pending. */
|
|
10
|
+
InvitationStatus["PENDING"] = "pending";
|
|
11
|
+
/** Rejected. */
|
|
12
|
+
InvitationStatus["REJECTED"] = "rejected";
|
|
13
|
+
})(InvitationStatus || (InvitationStatus = {}));
|
|
14
|
+
registerEnumType(InvitationStatus, {
|
|
15
|
+
name: "InvitationStatus",
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=invitation-status.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invitation-status.enum.js","sourceRoot":"","sources":["../../src/enums/invitation-status.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,mCAAmC;AACnC,MAAM,CAAN,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,gBAAgB;IAChB,yCAAqB,CAAA;IACrB,gBAAgB;IAChB,yCAAqB,CAAA;IACrB,eAAe;IACf,uCAAmB,CAAA;IACnB,gBAAgB;IAChB,yCAAqB,CAAA;AACvB,CAAC,EATW,gBAAgB,KAAhB,gBAAgB,QAS3B;AAED,gBAAgB,CAAC,gBAAgB,EAAE;IACjC,IAAI,EAAE,kBAAkB;CACzB,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { registerEnumType } from "@nest-boot/graphql";
|
|
2
|
+
/**
|
|
3
|
+
* Workspace member status.
|
|
4
|
+
*/
|
|
5
|
+
export var MemberStatus;
|
|
6
|
+
(function (MemberStatus) {
|
|
7
|
+
/** Active. */
|
|
8
|
+
MemberStatus["ACTIVE"] = "ACTIVE";
|
|
9
|
+
/** Disabled. */
|
|
10
|
+
MemberStatus["DISABLED"] = "DISABLED";
|
|
11
|
+
})(MemberStatus || (MemberStatus = {}));
|
|
12
|
+
registerEnumType(MemberStatus, {
|
|
13
|
+
name: "MemberStatus",
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=member-status.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member-status.enum.js","sourceRoot":"","sources":["../../src/enums/member-status.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;GAEG;AACH,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,cAAc;IACd,iCAAiB,CAAA;IACjB,gBAAgB;IAChB,qCAAqB,CAAA;AACvB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAED,gBAAgB,CAAC,YAAY,EAAE;IAC7B,IAAI,EAAE,cAAc;CACrB,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Original API-key permission value, before GraphQL enum serialization. */
|
|
2
|
+
export type UserApiKeyPermission = string;
|
|
3
|
+
/** API-key permission enum names mapped to their original permission strings. */
|
|
4
|
+
export declare const UserApiKeyPermission: Record<string, string>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { registerEnumType } from "@nest-boot/graphql";
|
|
2
|
+
import { DEFAULT_USER_PERMISSIONS } from "../user.constants.js";
|
|
3
|
+
import { createPermissionEnum } from "../utils/create-permission-enum.util.js";
|
|
4
|
+
import { DEFAULT_WORKSPACE_PERMISSIONS } from "../workspace.constants.js";
|
|
5
|
+
/** API-key permission enum names mapped to their original permission strings. */
|
|
6
|
+
export const UserApiKeyPermission = createPermissionEnum([
|
|
7
|
+
...DEFAULT_USER_PERMISSIONS,
|
|
8
|
+
...DEFAULT_WORKSPACE_PERMISSIONS,
|
|
9
|
+
]);
|
|
10
|
+
registerEnumType(UserApiKeyPermission, { name: "UserApiKeyPermission" });
|
|
11
|
+
//# sourceMappingURL=user-api-key-permission.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-api-key-permission.enum.js","sourceRoot":"","sources":["../../src/enums/user-api-key-permission.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAK1E,iFAAiF;AACjF,MAAM,CAAC,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;IACvD,GAAG,wBAAwB;IAC3B,GAAG,6BAA6B;CACjC,CAAC,CAAC;AAEH,gBAAgB,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { registerEnumType } from "@nest-boot/graphql";
|
|
2
|
+
import { DEFAULT_USER_PERMISSIONS } from "../user.constants.js";
|
|
3
|
+
import { createPermissionEnum } from "../utils/create-permission-enum.util.js";
|
|
4
|
+
/** User permission enum names mapped to their original permission strings. */
|
|
5
|
+
export const UserPermission = createPermissionEnum(DEFAULT_USER_PERMISSIONS);
|
|
6
|
+
registerEnumType(UserPermission, { name: "UserPermission" });
|
|
7
|
+
//# sourceMappingURL=user-permission.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-permission.enum.js","sourceRoot":"","sources":["../../src/enums/user-permission.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAK/E,8EAA8E;AAC9E,MAAM,CAAC,MAAM,cAAc,GAAG,oBAAoB,CAAC,wBAAwB,CAAC,CAAC;AAE7E,gBAAgB,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { registerEnumType } from "@nest-boot/graphql";
|
|
2
|
+
import { DEFAULT_USER_ROLES } from "../user.constants.js";
|
|
3
|
+
/** User role values populated from AuthModule configuration before schema generation. */
|
|
4
|
+
export const UserRole = Object.fromEntries(Object.keys(DEFAULT_USER_ROLES).map((role) => [role.toUpperCase(), role]));
|
|
5
|
+
registerEnumType(UserRole, { name: "UserRole" });
|
|
6
|
+
//# sourceMappingURL=user-role.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-role.enum.js","sourceRoot":"","sources":["../../src/enums/user-role.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAK1D,yFAAyF;AACzF,MAAM,CAAC,MAAM,QAAQ,GAA2B,MAAM,CAAC,WAAW,CAChE,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,CAAC,CAAC,CAC1E,CAAC;AAEF,gBAAgB,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Original API-key permission value, before GraphQL enum serialization. */
|
|
2
|
+
export type WorkspaceApiKeyPermission = string;
|
|
3
|
+
/** API-key permission enum names mapped to their original permission strings. */
|
|
4
|
+
export declare const WorkspaceApiKeyPermission: Record<string, string>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { registerEnumType } from "@nest-boot/graphql";
|
|
2
|
+
import { createPermissionEnum } from "../utils/create-permission-enum.util.js";
|
|
3
|
+
import { DEFAULT_WORKSPACE_PERMISSIONS } from "../workspace.constants.js";
|
|
4
|
+
/** API-key permission enum names mapped to their original permission strings. */
|
|
5
|
+
export const WorkspaceApiKeyPermission = createPermissionEnum([
|
|
6
|
+
...DEFAULT_WORKSPACE_PERMISSIONS,
|
|
7
|
+
]);
|
|
8
|
+
registerEnumType(WorkspaceApiKeyPermission, {
|
|
9
|
+
name: "WorkspaceApiKeyPermission",
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=workspace-api-key-permission.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-api-key-permission.enum.js","sourceRoot":"","sources":["../../src/enums/workspace-api-key-permission.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAK1E,iFAAiF;AACjF,MAAM,CAAC,MAAM,yBAAyB,GAAG,oBAAoB,CAAC;IAC5D,GAAG,6BAA6B;CACjC,CAAC,CAAC;AAEH,gBAAgB,CAAC,yBAAyB,EAAE;IAC1C,IAAI,EAAE,2BAA2B;CAClC,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Original workspace permission value, before GraphQL enum serialization. */
|
|
2
|
+
export type WorkspacePermission = string;
|
|
3
|
+
/** Workspace permission enum names mapped to their original permission strings. */
|
|
4
|
+
export declare const WorkspacePermission: Record<string, string>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { registerEnumType } from "@nest-boot/graphql";
|
|
2
|
+
import { createPermissionEnum } from "../utils/create-permission-enum.util.js";
|
|
3
|
+
import { DEFAULT_WORKSPACE_PERMISSIONS } from "../workspace.constants.js";
|
|
4
|
+
/** Workspace permission enum names mapped to their original permission strings. */
|
|
5
|
+
export const WorkspacePermission = createPermissionEnum(DEFAULT_WORKSPACE_PERMISSIONS);
|
|
6
|
+
registerEnumType(WorkspacePermission, { name: "WorkspacePermission" });
|
|
7
|
+
//# sourceMappingURL=workspace-permission.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-permission.enum.js","sourceRoot":"","sources":["../../src/enums/workspace-permission.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAK1E,mFAAmF;AACnF,MAAM,CAAC,MAAM,mBAAmB,GAAG,oBAAoB,CACrD,6BAA6B,CAC9B,CAAC;AAEF,gBAAgB,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { registerEnumType } from "@nest-boot/graphql";
|
|
2
|
+
import { DEFAULT_WORKSPACE_ROLES } from "../workspace.constants.js";
|
|
3
|
+
/** Workspace role values populated from AuthModule configuration before schema generation. */
|
|
4
|
+
export const WorkspaceRole = Object.fromEntries(Object.keys(DEFAULT_WORKSPACE_ROLES).map((role) => [
|
|
5
|
+
role.toUpperCase(),
|
|
6
|
+
role,
|
|
7
|
+
]));
|
|
8
|
+
registerEnumType(WorkspaceRole, { name: "WorkspaceRole" });
|
|
9
|
+
//# sourceMappingURL=workspace-role.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-role.enum.js","sourceRoot":"","sources":["../../src/enums/workspace-role.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAKpE,8FAA8F;AAC9F,MAAM,CAAC,MAAM,aAAa,GAA2B,MAAM,CAAC,WAAW,CACrE,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;IACjD,IAAI,CAAC,WAAW,EAAE;IAClB,IAAI;CACL,CAAC,CACH,CAAC;AAEF,gBAAgB,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC"}
|