@decaf-ts/integrations 0.1.1
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/.dockerignore +0 -0
- package/.gitlab-ci.yml +197 -0
- package/.prettierrc +9 -0
- package/.snyk +12 -0
- package/LICENSE.md +21 -0
- package/README.md +22 -0
- package/dist/integrations.cjs +2 -0
- package/dist/integrations.cjs.map +1 -0
- package/dist/integrations.js +2 -0
- package/dist/integrations.js.map +1 -0
- package/docker/1password-compose.yml +24 -0
- package/docker/aws-compose.yml +24 -0
- package/docker/azure-compose.yml +23 -0
- package/docker/compose.integration.yml +164 -0
- package/docker/gcp-compose.yml +16 -0
- package/docker/keycloak-compose.yml +24 -0
- package/docker/kibana-compose.yml +67 -0
- package/docker/vault-compose.yml +25 -0
- package/eslint.config.js +32 -0
- package/jest.config.cjs +48 -0
- package/lib/cjs/docker/DockerComposeService.cjs +152 -0
- package/lib/cjs/docker/DockerComposeService.cjs.map +1 -0
- package/lib/cjs/docker/index.cjs +24 -0
- package/lib/cjs/docker/index.cjs.map +1 -0
- package/lib/cjs/index.cjs +29 -0
- package/lib/cjs/index.cjs.map +1 -0
- package/lib/cjs/keycloak/index.cjs +26 -0
- package/lib/cjs/keycloak/index.cjs.map +1 -0
- package/lib/cjs/keycloak/services/KeycloakAuthService.cjs +189 -0
- package/lib/cjs/keycloak/services/KeycloakAuthService.cjs.map +1 -0
- package/lib/cjs/keycloak/services/KeycloakClientService.cjs +245 -0
- package/lib/cjs/keycloak/services/KeycloakClientService.cjs.map +1 -0
- package/lib/cjs/keycloak/services/KeycloakIdentityProviderService.cjs +234 -0
- package/lib/cjs/keycloak/services/KeycloakIdentityProviderService.cjs.map +1 -0
- package/lib/cjs/keycloak/services/KeycloakRealmService.cjs +202 -0
- package/lib/cjs/keycloak/services/KeycloakRealmService.cjs.map +1 -0
- package/lib/cjs/keycloak/services/KeycloakRoleService.cjs +249 -0
- package/lib/cjs/keycloak/services/KeycloakRoleService.cjs.map +1 -0
- package/lib/cjs/keycloak/services/KeycloakService.cjs +225 -0
- package/lib/cjs/keycloak/services/KeycloakService.cjs.map +1 -0
- package/lib/cjs/keycloak/services/KeycloakUserService.cjs +279 -0
- package/lib/cjs/keycloak/services/KeycloakUserService.cjs.map +1 -0
- package/lib/cjs/keycloak/services/index.cjs +30 -0
- package/lib/cjs/keycloak/services/index.cjs.map +1 -0
- package/lib/cjs/keycloak/types.cjs +4 -0
- package/lib/cjs/keycloak/types.cjs.map +1 -0
- package/lib/cjs/kibana/helpers.cjs +62 -0
- package/lib/cjs/kibana/helpers.cjs.map +1 -0
- package/lib/cjs/kibana/index.cjs +27 -0
- package/lib/cjs/kibana/index.cjs.map +1 -0
- package/lib/cjs/kibana/services/KibanaAuthService.cjs +148 -0
- package/lib/cjs/kibana/services/KibanaAuthService.cjs.map +1 -0
- package/lib/cjs/kibana/services/KibanaDashboardService.cjs +228 -0
- package/lib/cjs/kibana/services/KibanaDashboardService.cjs.map +1 -0
- package/lib/cjs/kibana/services/KibanaDataViewService.cjs +216 -0
- package/lib/cjs/kibana/services/KibanaDataViewService.cjs.map +1 -0
- package/lib/cjs/kibana/services/KibanaRoleService.cjs +184 -0
- package/lib/cjs/kibana/services/KibanaRoleService.cjs.map +1 -0
- package/lib/cjs/kibana/services/KibanaService.cjs +167 -0
- package/lib/cjs/kibana/services/KibanaService.cjs.map +1 -0
- package/lib/cjs/kibana/services/KibanaSpaceService.cjs +179 -0
- package/lib/cjs/kibana/services/KibanaSpaceService.cjs.map +1 -0
- package/lib/cjs/kibana/services/KibanaUserService.cjs +198 -0
- package/lib/cjs/kibana/services/KibanaUserService.cjs.map +1 -0
- package/lib/cjs/kibana/services/index.cjs +24 -0
- package/lib/cjs/kibana/services/index.cjs.map +1 -0
- package/lib/cjs/kibana/types.cjs +4 -0
- package/lib/cjs/kibana/types.cjs.map +1 -0
- package/lib/cjs/nest/authService.cjs +37 -0
- package/lib/cjs/nest/authService.cjs.map +1 -0
- package/lib/cjs/nest/index.cjs +29 -0
- package/lib/cjs/nest/index.cjs.map +1 -0
- package/lib/cjs/nest/keycloakAuthHandler.cjs +44 -0
- package/lib/cjs/nest/keycloakAuthHandler.cjs.map +1 -0
- package/lib/cjs/nest/keycloakModule.cjs +25 -0
- package/lib/cjs/nest/keycloakModule.cjs.map +1 -0
- package/lib/cjs/nest/types.cjs +4 -0
- package/lib/cjs/nest/types.cjs.map +1 -0
- package/lib/cjs/nest/utils.cjs +68 -0
- package/lib/cjs/nest/utils.cjs.map +1 -0
- package/lib/cjs/secrets/aws/AwsSecretService.cjs +307 -0
- package/lib/cjs/secrets/aws/AwsSecretService.cjs.map +1 -0
- package/lib/cjs/secrets/aws/AwsSecretServiceConfig.cjs +4 -0
- package/lib/cjs/secrets/aws/AwsSecretServiceConfig.cjs.map +1 -0
- package/lib/cjs/secrets/aws/index.cjs +25 -0
- package/lib/cjs/secrets/aws/index.cjs.map +1 -0
- package/lib/cjs/secrets/azure/AzureKeyVaultSecretService.cjs +245 -0
- package/lib/cjs/secrets/azure/AzureKeyVaultSecretService.cjs.map +1 -0
- package/lib/cjs/secrets/azure/AzureKeyVaultSecretServiceConfig.cjs +4 -0
- package/lib/cjs/secrets/azure/AzureKeyVaultSecretServiceConfig.cjs.map +1 -0
- package/lib/cjs/secrets/azure/index.cjs +25 -0
- package/lib/cjs/secrets/azure/index.cjs.map +1 -0
- package/lib/cjs/secrets/core/SecretErrors.cjs +70 -0
- package/lib/cjs/secrets/core/SecretErrors.cjs.map +1 -0
- package/lib/cjs/secrets/core/SecretName.cjs +54 -0
- package/lib/cjs/secrets/core/SecretName.cjs.map +1 -0
- package/lib/cjs/secrets/core/SecretReference.cjs +51 -0
- package/lib/cjs/secrets/core/SecretReference.cjs.map +1 -0
- package/lib/cjs/secrets/core/SecretSerialization.cjs +52 -0
- package/lib/cjs/secrets/core/SecretSerialization.cjs.map +1 -0
- package/lib/cjs/secrets/core/SecretService.cjs +19 -0
- package/lib/cjs/secrets/core/SecretService.cjs.map +1 -0
- package/lib/cjs/secrets/core/SecretTypes.cjs +4 -0
- package/lib/cjs/secrets/core/SecretTypes.cjs.map +1 -0
- package/lib/cjs/secrets/core/index.cjs +29 -0
- package/lib/cjs/secrets/core/index.cjs.map +1 -0
- package/lib/cjs/secrets/gcp/GcpSecretManagerService.cjs +332 -0
- package/lib/cjs/secrets/gcp/GcpSecretManagerService.cjs.map +1 -0
- package/lib/cjs/secrets/gcp/GcpSecretManagerServiceConfig.cjs +4 -0
- package/lib/cjs/secrets/gcp/GcpSecretManagerServiceConfig.cjs.map +1 -0
- package/lib/cjs/secrets/gcp/index.cjs +25 -0
- package/lib/cjs/secrets/gcp/index.cjs.map +1 -0
- package/lib/cjs/secrets/index.cjs +25 -0
- package/lib/cjs/secrets/index.cjs.map +1 -0
- package/lib/cjs/secrets/model/ModelSecretCrypto.cjs +80 -0
- package/lib/cjs/secrets/model/ModelSecretCrypto.cjs.map +1 -0
- package/lib/cjs/secrets/model/ModelSecretService.cjs +271 -0
- package/lib/cjs/secrets/model/ModelSecretService.cjs.map +1 -0
- package/lib/cjs/secrets/model/ModelSecretServiceConfig.cjs +4 -0
- package/lib/cjs/secrets/model/ModelSecretServiceConfig.cjs.map +1 -0
- package/lib/cjs/secrets/model/Secret.cjs +49 -0
- package/lib/cjs/secrets/model/Secret.cjs.map +1 -0
- package/lib/cjs/secrets/model/index.cjs +26 -0
- package/lib/cjs/secrets/model/index.cjs.map +1 -0
- package/lib/cjs/secrets/onepassword/OnePasswordSecretService.cjs +402 -0
- package/lib/cjs/secrets/onepassword/OnePasswordSecretService.cjs.map +1 -0
- package/lib/cjs/secrets/onepassword/OnePasswordSecretServiceConfig.cjs +4 -0
- package/lib/cjs/secrets/onepassword/OnePasswordSecretServiceConfig.cjs.map +1 -0
- package/lib/cjs/secrets/onepassword/index.cjs +25 -0
- package/lib/cjs/secrets/onepassword/index.cjs.map +1 -0
- package/lib/cjs/secrets/vault/VaultSecretService.cjs +318 -0
- package/lib/cjs/secrets/vault/VaultSecretService.cjs.map +1 -0
- package/lib/cjs/secrets/vault/VaultSecretServiceConfig.cjs +4 -0
- package/lib/cjs/secrets/vault/VaultSecretServiceConfig.cjs.map +1 -0
- package/lib/cjs/secrets/vault/index.cjs +25 -0
- package/lib/cjs/secrets/vault/index.cjs.map +1 -0
- package/lib/cjs/utils.cjs +43 -0
- package/lib/cjs/utils.cjs.map +1 -0
- package/lib/esm/docker/DockerComposeService.js +140 -0
- package/lib/esm/docker/DockerComposeService.js.map +1 -0
- package/lib/esm/docker/index.js +7 -0
- package/lib/esm/docker/index.js.map +1 -0
- package/lib/esm/index.js +11 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/keycloak/index.js +9 -0
- package/lib/esm/keycloak/index.js.map +1 -0
- package/lib/esm/keycloak/services/KeycloakAuthService.js +148 -0
- package/lib/esm/keycloak/services/KeycloakAuthService.js.map +1 -0
- package/lib/esm/keycloak/services/KeycloakClientService.js +204 -0
- package/lib/esm/keycloak/services/KeycloakClientService.js.map +1 -0
- package/lib/esm/keycloak/services/KeycloakIdentityProviderService.js +193 -0
- package/lib/esm/keycloak/services/KeycloakIdentityProviderService.js.map +1 -0
- package/lib/esm/keycloak/services/KeycloakRealmService.js +161 -0
- package/lib/esm/keycloak/services/KeycloakRealmService.js.map +1 -0
- package/lib/esm/keycloak/services/KeycloakRoleService.js +208 -0
- package/lib/esm/keycloak/services/KeycloakRoleService.js.map +1 -0
- package/lib/esm/keycloak/services/KeycloakService.js +180 -0
- package/lib/esm/keycloak/services/KeycloakService.js.map +1 -0
- package/lib/esm/keycloak/services/KeycloakUserService.js +238 -0
- package/lib/esm/keycloak/services/KeycloakUserService.js.map +1 -0
- package/lib/esm/keycloak/services/index.js +13 -0
- package/lib/esm/keycloak/services/index.js.map +1 -0
- package/lib/esm/keycloak/types.js +2 -0
- package/lib/esm/keycloak/types.js.map +1 -0
- package/lib/esm/kibana/helpers.js +56 -0
- package/lib/esm/kibana/helpers.js.map +1 -0
- package/lib/esm/kibana/index.js +10 -0
- package/lib/esm/kibana/index.js.map +1 -0
- package/lib/esm/kibana/services/KibanaAuthService.js +107 -0
- package/lib/esm/kibana/services/KibanaAuthService.js.map +1 -0
- package/lib/esm/kibana/services/KibanaDashboardService.js +182 -0
- package/lib/esm/kibana/services/KibanaDashboardService.js.map +1 -0
- package/lib/esm/kibana/services/KibanaDataViewService.js +170 -0
- package/lib/esm/kibana/services/KibanaDataViewService.js.map +1 -0
- package/lib/esm/kibana/services/KibanaRoleService.js +138 -0
- package/lib/esm/kibana/services/KibanaRoleService.js.map +1 -0
- package/lib/esm/kibana/services/KibanaService.js +126 -0
- package/lib/esm/kibana/services/KibanaService.js.map +1 -0
- package/lib/esm/kibana/services/KibanaSpaceService.js +133 -0
- package/lib/esm/kibana/services/KibanaSpaceService.js.map +1 -0
- package/lib/esm/kibana/services/KibanaUserService.js +152 -0
- package/lib/esm/kibana/services/KibanaUserService.js.map +1 -0
- package/lib/esm/kibana/services/index.js +13 -0
- package/lib/esm/kibana/services/index.js.map +1 -0
- package/lib/esm/kibana/types.js +2 -0
- package/lib/esm/kibana/types.js.map +1 -0
- package/lib/esm/nest/authService.js +32 -0
- package/lib/esm/nest/authService.js.map +1 -0
- package/lib/esm/nest/index.js +12 -0
- package/lib/esm/nest/index.js.map +1 -0
- package/lib/esm/nest/keycloakAuthHandler.js +39 -0
- package/lib/esm/nest/keycloakAuthHandler.js.map +1 -0
- package/lib/esm/nest/keycloakModule.js +19 -0
- package/lib/esm/nest/keycloakModule.js.map +1 -0
- package/lib/esm/nest/types.js +2 -0
- package/lib/esm/nest/types.js.map +1 -0
- package/lib/esm/nest/utils.js +60 -0
- package/lib/esm/nest/utils.js.map +1 -0
- package/lib/esm/secrets/aws/AwsSecretService.js +302 -0
- package/lib/esm/secrets/aws/AwsSecretService.js.map +1 -0
- package/lib/esm/secrets/aws/AwsSecretServiceConfig.js +2 -0
- package/lib/esm/secrets/aws/AwsSecretServiceConfig.js.map +1 -0
- package/lib/esm/secrets/aws/index.js +8 -0
- package/lib/esm/secrets/aws/index.js.map +1 -0
- package/lib/esm/secrets/azure/AzureKeyVaultSecretService.js +240 -0
- package/lib/esm/secrets/azure/AzureKeyVaultSecretService.js.map +1 -0
- package/lib/esm/secrets/azure/AzureKeyVaultSecretServiceConfig.js +2 -0
- package/lib/esm/secrets/azure/AzureKeyVaultSecretServiceConfig.js.map +1 -0
- package/lib/esm/secrets/azure/index.js +8 -0
- package/lib/esm/secrets/azure/index.js.map +1 -0
- package/lib/esm/secrets/core/SecretErrors.js +61 -0
- package/lib/esm/secrets/core/SecretErrors.js.map +1 -0
- package/lib/esm/secrets/core/SecretName.js +49 -0
- package/lib/esm/secrets/core/SecretName.js.map +1 -0
- package/lib/esm/secrets/core/SecretReference.js +45 -0
- package/lib/esm/secrets/core/SecretReference.js.map +1 -0
- package/lib/esm/secrets/core/SecretSerialization.js +47 -0
- package/lib/esm/secrets/core/SecretSerialization.js.map +1 -0
- package/lib/esm/secrets/core/SecretService.js +14 -0
- package/lib/esm/secrets/core/SecretService.js.map +1 -0
- package/lib/esm/secrets/core/SecretTypes.js +2 -0
- package/lib/esm/secrets/core/SecretTypes.js.map +1 -0
- package/lib/esm/secrets/core/index.js +12 -0
- package/lib/esm/secrets/core/index.js.map +1 -0
- package/lib/esm/secrets/gcp/GcpSecretManagerService.js +294 -0
- package/lib/esm/secrets/gcp/GcpSecretManagerService.js.map +1 -0
- package/lib/esm/secrets/gcp/GcpSecretManagerServiceConfig.js +2 -0
- package/lib/esm/secrets/gcp/GcpSecretManagerServiceConfig.js.map +1 -0
- package/lib/esm/secrets/gcp/index.js +8 -0
- package/lib/esm/secrets/gcp/index.js.map +1 -0
- package/lib/esm/secrets/index.js +8 -0
- package/lib/esm/secrets/index.js.map +1 -0
- package/lib/esm/secrets/model/ModelSecretCrypto.js +73 -0
- package/lib/esm/secrets/model/ModelSecretCrypto.js.map +1 -0
- package/lib/esm/secrets/model/ModelSecretService.js +266 -0
- package/lib/esm/secrets/model/ModelSecretService.js.map +1 -0
- package/lib/esm/secrets/model/ModelSecretServiceConfig.js +2 -0
- package/lib/esm/secrets/model/ModelSecretServiceConfig.js.map +1 -0
- package/lib/esm/secrets/model/Secret.js +39 -0
- package/lib/esm/secrets/model/Secret.js.map +1 -0
- package/lib/esm/secrets/model/index.js +9 -0
- package/lib/esm/secrets/model/index.js.map +1 -0
- package/lib/esm/secrets/onepassword/OnePasswordSecretService.js +397 -0
- package/lib/esm/secrets/onepassword/OnePasswordSecretService.js.map +1 -0
- package/lib/esm/secrets/onepassword/OnePasswordSecretServiceConfig.js +2 -0
- package/lib/esm/secrets/onepassword/OnePasswordSecretServiceConfig.js.map +1 -0
- package/lib/esm/secrets/onepassword/index.js +8 -0
- package/lib/esm/secrets/onepassword/index.js.map +1 -0
- package/lib/esm/secrets/vault/VaultSecretService.js +312 -0
- package/lib/esm/secrets/vault/VaultSecretService.js.map +1 -0
- package/lib/esm/secrets/vault/VaultSecretServiceConfig.js +2 -0
- package/lib/esm/secrets/vault/VaultSecretServiceConfig.js.map +1 -0
- package/lib/esm/secrets/vault/index.js +8 -0
- package/lib/esm/secrets/vault/index.js.map +1 -0
- package/lib/esm/utils.js +39 -0
- package/lib/esm/utils.js.map +1 -0
- package/lib/types/docker/DockerComposeService.d.cts +53 -0
- package/lib/types/docker/DockerComposeService.d.mts +53 -0
- package/lib/types/docker/index.d.cts +6 -0
- package/lib/types/docker/index.d.mts +6 -0
- package/lib/types/index.d.cts +10 -0
- package/lib/types/index.d.mts +10 -0
- package/lib/types/keycloak/index.d.cts +8 -0
- package/lib/types/keycloak/index.d.mts +8 -0
- package/lib/types/keycloak/services/KeycloakAuthService.d.cts +20 -0
- package/lib/types/keycloak/services/KeycloakAuthService.d.mts +20 -0
- package/lib/types/keycloak/services/KeycloakClientService.d.cts +25 -0
- package/lib/types/keycloak/services/KeycloakClientService.d.mts +25 -0
- package/lib/types/keycloak/services/KeycloakIdentityProviderService.d.cts +23 -0
- package/lib/types/keycloak/services/KeycloakIdentityProviderService.d.mts +23 -0
- package/lib/types/keycloak/services/KeycloakRealmService.d.cts +31 -0
- package/lib/types/keycloak/services/KeycloakRealmService.d.mts +31 -0
- package/lib/types/keycloak/services/KeycloakRoleService.d.cts +29 -0
- package/lib/types/keycloak/services/KeycloakRoleService.d.mts +29 -0
- package/lib/types/keycloak/services/KeycloakService.d.cts +38 -0
- package/lib/types/keycloak/services/KeycloakService.d.mts +38 -0
- package/lib/types/keycloak/services/KeycloakUserService.d.cts +46 -0
- package/lib/types/keycloak/services/KeycloakUserService.d.mts +46 -0
- package/lib/types/keycloak/services/index.d.cts +12 -0
- package/lib/types/keycloak/services/index.d.mts +12 -0
- package/lib/types/keycloak/types.d.cts +103 -0
- package/lib/types/keycloak/types.d.mts +103 -0
- package/lib/types/kibana/helpers.d.cts +9 -0
- package/lib/types/kibana/helpers.d.mts +9 -0
- package/lib/types/kibana/index.d.cts +9 -0
- package/lib/types/kibana/index.d.mts +9 -0
- package/lib/types/kibana/services/KibanaAuthService.d.cts +16 -0
- package/lib/types/kibana/services/KibanaAuthService.d.mts +16 -0
- package/lib/types/kibana/services/KibanaDashboardService.d.cts +31 -0
- package/lib/types/kibana/services/KibanaDashboardService.d.mts +31 -0
- package/lib/types/kibana/services/KibanaDataViewService.d.cts +23 -0
- package/lib/types/kibana/services/KibanaDataViewService.d.mts +23 -0
- package/lib/types/kibana/services/KibanaRoleService.d.cts +19 -0
- package/lib/types/kibana/services/KibanaRoleService.d.mts +19 -0
- package/lib/types/kibana/services/KibanaService.d.cts +55 -0
- package/lib/types/kibana/services/KibanaService.d.mts +55 -0
- package/lib/types/kibana/services/KibanaSpaceService.d.cts +20 -0
- package/lib/types/kibana/services/KibanaSpaceService.d.mts +20 -0
- package/lib/types/kibana/services/KibanaUserService.d.cts +19 -0
- package/lib/types/kibana/services/KibanaUserService.d.mts +19 -0
- package/lib/types/kibana/services/index.d.cts +12 -0
- package/lib/types/kibana/services/index.d.mts +12 -0
- package/lib/types/kibana/types.d.cts +75 -0
- package/lib/types/kibana/types.d.mts +75 -0
- package/lib/types/nest/authService.d.cts +9 -0
- package/lib/types/nest/authService.d.mts +9 -0
- package/lib/types/nest/index.d.cts +11 -0
- package/lib/types/nest/index.d.mts +11 -0
- package/lib/types/nest/keycloakAuthHandler.d.cts +7 -0
- package/lib/types/nest/keycloakAuthHandler.d.mts +7 -0
- package/lib/types/nest/keycloakModule.d.cts +15 -0
- package/lib/types/nest/keycloakModule.d.mts +15 -0
- package/lib/types/nest/types.d.cts +48 -0
- package/lib/types/nest/types.d.mts +48 -0
- package/lib/types/nest/utils.d.cts +11 -0
- package/lib/types/nest/utils.d.mts +11 -0
- package/lib/types/secrets/aws/AwsSecretService.d.cts +19 -0
- package/lib/types/secrets/aws/AwsSecretService.d.mts +19 -0
- package/lib/types/secrets/aws/AwsSecretServiceConfig.d.cts +16 -0
- package/lib/types/secrets/aws/AwsSecretServiceConfig.d.mts +16 -0
- package/lib/types/secrets/aws/index.d.cts +7 -0
- package/lib/types/secrets/aws/index.d.mts +7 -0
- package/lib/types/secrets/azure/AzureKeyVaultSecretService.d.cts +20 -0
- package/lib/types/secrets/azure/AzureKeyVaultSecretService.d.mts +20 -0
- package/lib/types/secrets/azure/AzureKeyVaultSecretServiceConfig.d.cts +11 -0
- package/lib/types/secrets/azure/AzureKeyVaultSecretServiceConfig.d.mts +11 -0
- package/lib/types/secrets/azure/index.d.cts +7 -0
- package/lib/types/secrets/azure/index.d.mts +7 -0
- package/lib/types/secrets/core/SecretErrors.d.cts +15 -0
- package/lib/types/secrets/core/SecretErrors.d.mts +15 -0
- package/lib/types/secrets/core/SecretName.d.cts +2 -0
- package/lib/types/secrets/core/SecretName.d.mts +2 -0
- package/lib/types/secrets/core/SecretReference.d.cts +13 -0
- package/lib/types/secrets/core/SecretReference.d.mts +13 -0
- package/lib/types/secrets/core/SecretSerialization.d.cts +3 -0
- package/lib/types/secrets/core/SecretSerialization.d.mts +3 -0
- package/lib/types/secrets/core/SecretService.d.cts +22 -0
- package/lib/types/secrets/core/SecretService.d.mts +22 -0
- package/lib/types/secrets/core/SecretTypes.d.cts +76 -0
- package/lib/types/secrets/core/SecretTypes.d.mts +76 -0
- package/lib/types/secrets/core/index.d.cts +11 -0
- package/lib/types/secrets/core/index.d.mts +11 -0
- package/lib/types/secrets/gcp/GcpSecretManagerService.d.cts +20 -0
- package/lib/types/secrets/gcp/GcpSecretManagerService.d.mts +20 -0
- package/lib/types/secrets/gcp/GcpSecretManagerServiceConfig.d.cts +15 -0
- package/lib/types/secrets/gcp/GcpSecretManagerServiceConfig.d.mts +15 -0
- package/lib/types/secrets/gcp/index.d.cts +7 -0
- package/lib/types/secrets/gcp/index.d.mts +7 -0
- package/lib/types/secrets/index.d.cts +7 -0
- package/lib/types/secrets/index.d.mts +7 -0
- package/lib/types/secrets/model/ModelSecretCrypto.d.cts +11 -0
- package/lib/types/secrets/model/ModelSecretCrypto.d.mts +11 -0
- package/lib/types/secrets/model/ModelSecretService.d.cts +21 -0
- package/lib/types/secrets/model/ModelSecretService.d.mts +21 -0
- package/lib/types/secrets/model/ModelSecretServiceConfig.d.cts +10 -0
- package/lib/types/secrets/model/ModelSecretServiceConfig.d.mts +10 -0
- package/lib/types/secrets/model/Secret.d.cts +24 -0
- package/lib/types/secrets/model/Secret.d.mts +24 -0
- package/lib/types/secrets/model/index.d.cts +8 -0
- package/lib/types/secrets/model/index.d.mts +8 -0
- package/lib/types/secrets/onepassword/OnePasswordSecretService.d.cts +22 -0
- package/lib/types/secrets/onepassword/OnePasswordSecretService.d.mts +22 -0
- package/lib/types/secrets/onepassword/OnePasswordSecretServiceConfig.d.cts +13 -0
- package/lib/types/secrets/onepassword/OnePasswordSecretServiceConfig.d.mts +13 -0
- package/lib/types/secrets/onepassword/index.d.cts +7 -0
- package/lib/types/secrets/onepassword/index.d.mts +7 -0
- package/lib/types/secrets/vault/VaultSecretService.d.cts +37 -0
- package/lib/types/secrets/vault/VaultSecretService.d.mts +37 -0
- package/lib/types/secrets/vault/VaultSecretServiceConfig.d.cts +13 -0
- package/lib/types/secrets/vault/VaultSecretServiceConfig.d.mts +13 -0
- package/lib/types/secrets/vault/index.d.cts +7 -0
- package/lib/types/secrets/vault/index.d.mts +7 -0
- package/lib/types/utils.d.cts +7 -0
- package/lib/types/utils.d.mts +7 -0
- package/package.json +192 -0
- package/renovate.json +21 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MaybeContextualArg } from "@decaf-ts/core";
|
|
2
|
+
import { ClientBasedService } from "@decaf-ts/core";
|
|
3
|
+
import type { KeycloakIdentityProviderConfig, KeycloakSetupConfig } from "../types.d.cts";
|
|
4
|
+
import { AxiosInstance } from "axios";
|
|
5
|
+
export declare class KeycloakIdentityProviderService extends ClientBasedService<AxiosInstance, KeycloakSetupConfig> {
|
|
6
|
+
initialize(...args: MaybeContextualArg<any>): Promise<{
|
|
7
|
+
config: KeycloakSetupConfig;
|
|
8
|
+
client: AxiosInstance;
|
|
9
|
+
}>;
|
|
10
|
+
createIdentityProvider(keycloakSetupConfig: KeycloakSetupConfig, overrides: Partial<KeycloakIdentityProviderConfig> | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
11
|
+
updateIdentityProvider(keycloakSetupConfig: KeycloakSetupConfig, overrides: Partial<KeycloakIdentityProviderConfig> | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
12
|
+
createIdentityProviderMappers(keycloakSetupConfig: KeycloakSetupConfig, roleConfigs: any[] | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
13
|
+
private createHttpClient;
|
|
14
|
+
private isProduction;
|
|
15
|
+
private getRealmAccessToken;
|
|
16
|
+
private getAccessToken;
|
|
17
|
+
private normalizeIdentityProviderConfig;
|
|
18
|
+
private buildIdentityProviderPayload;
|
|
19
|
+
private request;
|
|
20
|
+
private handleHttpResponse;
|
|
21
|
+
protected parseError(error: Error): Error;
|
|
22
|
+
private parseJsonResponse;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MaybeContextualArg } from "@decaf-ts/core";
|
|
2
|
+
import { ClientBasedService } from "@decaf-ts/core";
|
|
3
|
+
import type { KeycloakIdentityProviderConfig, KeycloakSetupConfig } from "../types.d.mts";
|
|
4
|
+
import { AxiosInstance } from "axios";
|
|
5
|
+
export declare class KeycloakIdentityProviderService extends ClientBasedService<AxiosInstance, KeycloakSetupConfig> {
|
|
6
|
+
initialize(...args: MaybeContextualArg<any>): Promise<{
|
|
7
|
+
config: KeycloakSetupConfig;
|
|
8
|
+
client: AxiosInstance;
|
|
9
|
+
}>;
|
|
10
|
+
createIdentityProvider(keycloakSetupConfig: KeycloakSetupConfig, overrides: Partial<KeycloakIdentityProviderConfig> | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
11
|
+
updateIdentityProvider(keycloakSetupConfig: KeycloakSetupConfig, overrides: Partial<KeycloakIdentityProviderConfig> | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
12
|
+
createIdentityProviderMappers(keycloakSetupConfig: KeycloakSetupConfig, roleConfigs: any[] | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
13
|
+
private createHttpClient;
|
|
14
|
+
private isProduction;
|
|
15
|
+
private getRealmAccessToken;
|
|
16
|
+
private getAccessToken;
|
|
17
|
+
private normalizeIdentityProviderConfig;
|
|
18
|
+
private buildIdentityProviderPayload;
|
|
19
|
+
private request;
|
|
20
|
+
private handleHttpResponse;
|
|
21
|
+
protected parseError(error: Error): Error;
|
|
22
|
+
private parseJsonResponse;
|
|
23
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { MaybeContextualArg } from "@decaf-ts/core";
|
|
2
|
+
import { ClientBasedService } from "@decaf-ts/core";
|
|
3
|
+
import type { KeycloakRealmConfig, KeycloakSetupConfig } from "../types.d.cts";
|
|
4
|
+
import { AxiosInstance } from "axios";
|
|
5
|
+
type KeycloakRealmRepresentation = {
|
|
6
|
+
realm?: string;
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
export declare class KeycloakRealmService extends ClientBasedService<AxiosInstance, KeycloakSetupConfig> {
|
|
11
|
+
initialize(...args: MaybeContextualArg<any>): Promise<{
|
|
12
|
+
config: KeycloakSetupConfig;
|
|
13
|
+
client: AxiosInstance;
|
|
14
|
+
}>;
|
|
15
|
+
createRealm(realmName: string, payload: Partial<KeycloakRealmConfig> | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
16
|
+
updateRealm(realmName: string, payload: Partial<KeycloakRealmConfig>, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
17
|
+
deleteRealm(realmName: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
18
|
+
addRealm(realmName: string, payload: Partial<KeycloakRealmConfig> | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
19
|
+
editRealm(realmName: string, payload: Partial<KeycloakRealmConfig>, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
20
|
+
removeRealm(realmName: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
21
|
+
getRealm(realmName: string, ...args: MaybeContextualArg<any>): Promise<KeycloakRealmRepresentation>;
|
|
22
|
+
private createHttpClient;
|
|
23
|
+
private isProduction;
|
|
24
|
+
private getAccessToken;
|
|
25
|
+
private fetchRealm;
|
|
26
|
+
private request;
|
|
27
|
+
private handleHttpResponse;
|
|
28
|
+
protected parseError(error: Error): Error;
|
|
29
|
+
private parseJsonResponse;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { MaybeContextualArg } from "@decaf-ts/core";
|
|
2
|
+
import { ClientBasedService } from "@decaf-ts/core";
|
|
3
|
+
import type { KeycloakRealmConfig, KeycloakSetupConfig } from "../types.d.mts";
|
|
4
|
+
import { AxiosInstance } from "axios";
|
|
5
|
+
type KeycloakRealmRepresentation = {
|
|
6
|
+
realm?: string;
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
export declare class KeycloakRealmService extends ClientBasedService<AxiosInstance, KeycloakSetupConfig> {
|
|
11
|
+
initialize(...args: MaybeContextualArg<any>): Promise<{
|
|
12
|
+
config: KeycloakSetupConfig;
|
|
13
|
+
client: AxiosInstance;
|
|
14
|
+
}>;
|
|
15
|
+
createRealm(realmName: string, payload: Partial<KeycloakRealmConfig> | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
16
|
+
updateRealm(realmName: string, payload: Partial<KeycloakRealmConfig>, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
17
|
+
deleteRealm(realmName: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
18
|
+
addRealm(realmName: string, payload: Partial<KeycloakRealmConfig> | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
19
|
+
editRealm(realmName: string, payload: Partial<KeycloakRealmConfig>, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
20
|
+
removeRealm(realmName: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
21
|
+
getRealm(realmName: string, ...args: MaybeContextualArg<any>): Promise<KeycloakRealmRepresentation>;
|
|
22
|
+
private createHttpClient;
|
|
23
|
+
private isProduction;
|
|
24
|
+
private getAccessToken;
|
|
25
|
+
private fetchRealm;
|
|
26
|
+
private request;
|
|
27
|
+
private handleHttpResponse;
|
|
28
|
+
protected parseError(error: Error): Error;
|
|
29
|
+
private parseJsonResponse;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MaybeContextualArg } from "@decaf-ts/core";
|
|
2
|
+
import { ClientBasedService } from "@decaf-ts/core";
|
|
3
|
+
import type { KeycloakClientRoleConfig, KeycloakSetupConfig } from "../types.d.cts";
|
|
4
|
+
import { AxiosInstance } from "axios";
|
|
5
|
+
export declare class KeycloakRoleService extends ClientBasedService<AxiosInstance, KeycloakSetupConfig> {
|
|
6
|
+
initialize(...args: MaybeContextualArg<any>): Promise<{
|
|
7
|
+
config: KeycloakSetupConfig;
|
|
8
|
+
client: AxiosInstance;
|
|
9
|
+
}>;
|
|
10
|
+
createClientRoles(keycloakSetupConfig: KeycloakSetupConfig, roleConfigs: KeycloakClientRoleConfig[] | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
11
|
+
getRealmRoles(realmName: string, ...args: MaybeContextualArg<any>): Promise<any[]>;
|
|
12
|
+
getClientRoles(realmName: string, clientUUID: string, ...args: MaybeContextualArg<any>): Promise<any[]>;
|
|
13
|
+
grantRealmRolesToUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
14
|
+
grantClientRolesToUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
15
|
+
revokeRealmRolesFromUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
16
|
+
replaceRealmRolesForUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
17
|
+
revokeClientRolesFromUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
18
|
+
replaceClientRolesForUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
19
|
+
private createHttpClient;
|
|
20
|
+
private isProduction;
|
|
21
|
+
private getAdminAccessToken;
|
|
22
|
+
private getRealmAccessToken;
|
|
23
|
+
private getAccessToken;
|
|
24
|
+
assignRolesToUser(rolesUrl: string, setRolesUrl: string, roleNames: string[], accessToken: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
25
|
+
private request;
|
|
26
|
+
private handleHttpResponse;
|
|
27
|
+
protected parseError(error: Error): Error;
|
|
28
|
+
private parseJsonResponse;
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MaybeContextualArg } from "@decaf-ts/core";
|
|
2
|
+
import { ClientBasedService } from "@decaf-ts/core";
|
|
3
|
+
import type { KeycloakClientRoleConfig, KeycloakSetupConfig } from "../types.d.mts";
|
|
4
|
+
import { AxiosInstance } from "axios";
|
|
5
|
+
export declare class KeycloakRoleService extends ClientBasedService<AxiosInstance, KeycloakSetupConfig> {
|
|
6
|
+
initialize(...args: MaybeContextualArg<any>): Promise<{
|
|
7
|
+
config: KeycloakSetupConfig;
|
|
8
|
+
client: AxiosInstance;
|
|
9
|
+
}>;
|
|
10
|
+
createClientRoles(keycloakSetupConfig: KeycloakSetupConfig, roleConfigs: KeycloakClientRoleConfig[] | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
11
|
+
getRealmRoles(realmName: string, ...args: MaybeContextualArg<any>): Promise<any[]>;
|
|
12
|
+
getClientRoles(realmName: string, clientUUID: string, ...args: MaybeContextualArg<any>): Promise<any[]>;
|
|
13
|
+
grantRealmRolesToUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
14
|
+
grantClientRolesToUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
15
|
+
revokeRealmRolesFromUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
16
|
+
replaceRealmRolesForUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
17
|
+
revokeClientRolesFromUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
18
|
+
replaceClientRolesForUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
19
|
+
private createHttpClient;
|
|
20
|
+
private isProduction;
|
|
21
|
+
private getAdminAccessToken;
|
|
22
|
+
private getRealmAccessToken;
|
|
23
|
+
private getAccessToken;
|
|
24
|
+
assignRolesToUser(rolesUrl: string, setRolesUrl: string, roleNames: string[], accessToken: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
25
|
+
private request;
|
|
26
|
+
private handleHttpResponse;
|
|
27
|
+
protected parseError(error: Error): Error;
|
|
28
|
+
private parseJsonResponse;
|
|
29
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ClientBasedService, MaybeContextualArg } from "@decaf-ts/core";
|
|
2
|
+
import type { KeycloakSetupConfig, KeycloakUser } from "../types.d.cts";
|
|
3
|
+
import { AxiosInstance } from "axios";
|
|
4
|
+
import { KeycloakRealmService } from "./KeycloakRealmService.d.cts";
|
|
5
|
+
import { KeycloakUserService } from "./KeycloakUserService.d.cts";
|
|
6
|
+
import { KeycloakRoleService } from "./KeycloakRoleService.d.cts";
|
|
7
|
+
import { KeycloakClientService } from "./KeycloakClientService.d.cts";
|
|
8
|
+
import { KeycloakIdentityProviderService } from "./KeycloakIdentityProviderService.d.cts";
|
|
9
|
+
import { KeycloakAuthService } from "./KeycloakAuthService.d.cts";
|
|
10
|
+
export declare class KeycloakService extends ClientBasedService<AxiosInstance, KeycloakSetupConfig> {
|
|
11
|
+
protected realmService: KeycloakRealmService;
|
|
12
|
+
protected userService: KeycloakUserService;
|
|
13
|
+
protected roleService: KeycloakRoleService;
|
|
14
|
+
protected clientService: KeycloakClientService;
|
|
15
|
+
protected identityProviderService: KeycloakIdentityProviderService;
|
|
16
|
+
protected authService: KeycloakAuthService;
|
|
17
|
+
constructor();
|
|
18
|
+
initialize(...args: MaybeContextualArg<any>): Promise<{
|
|
19
|
+
config: KeycloakSetupConfig;
|
|
20
|
+
client: AxiosInstance;
|
|
21
|
+
}>;
|
|
22
|
+
setupKeycloak(keycloakSetupConfig: KeycloakSetupConfig, ...args: MaybeContextualArg<any>): Promise<KeycloakSetupConfig>;
|
|
23
|
+
addRealm(realmName: string, payload: any, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
24
|
+
editRealm(realmName: string, payload: any, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
25
|
+
removeRealm(realmName: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
26
|
+
addUserToRealm(keycloakUser: KeycloakUser, payload: any, ...args: MaybeContextualArg<any>): Promise<string>;
|
|
27
|
+
editUser(realmName: string, userUUID: string, payload: any, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
28
|
+
removeUserFromRealm(realmName: string, userUUID: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
29
|
+
addRealmRolesToUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
30
|
+
addClientRolesToUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
31
|
+
deleteAdminApiUser(keycloakSetupConfig: KeycloakSetupConfig, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
32
|
+
setupOrganization(config: KeycloakSetupConfig, ...args: MaybeContextualArg<any>): Promise<KeycloakSetupConfig>;
|
|
33
|
+
setupOrganizationSSO(keycloakSetupConfig: KeycloakSetupConfig, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
34
|
+
deleteOrganization(realmName: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
35
|
+
private createHttpClient;
|
|
36
|
+
private updateClientScopesRolesMappers;
|
|
37
|
+
private parseJsonResponse;
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ClientBasedService, MaybeContextualArg } from "@decaf-ts/core";
|
|
2
|
+
import type { KeycloakSetupConfig, KeycloakUser } from "../types.d.mts";
|
|
3
|
+
import { AxiosInstance } from "axios";
|
|
4
|
+
import { KeycloakRealmService } from "./KeycloakRealmService.d.mts";
|
|
5
|
+
import { KeycloakUserService } from "./KeycloakUserService.d.mts";
|
|
6
|
+
import { KeycloakRoleService } from "./KeycloakRoleService.d.mts";
|
|
7
|
+
import { KeycloakClientService } from "./KeycloakClientService.d.mts";
|
|
8
|
+
import { KeycloakIdentityProviderService } from "./KeycloakIdentityProviderService.d.mts";
|
|
9
|
+
import { KeycloakAuthService } from "./KeycloakAuthService.d.mts";
|
|
10
|
+
export declare class KeycloakService extends ClientBasedService<AxiosInstance, KeycloakSetupConfig> {
|
|
11
|
+
protected realmService: KeycloakRealmService;
|
|
12
|
+
protected userService: KeycloakUserService;
|
|
13
|
+
protected roleService: KeycloakRoleService;
|
|
14
|
+
protected clientService: KeycloakClientService;
|
|
15
|
+
protected identityProviderService: KeycloakIdentityProviderService;
|
|
16
|
+
protected authService: KeycloakAuthService;
|
|
17
|
+
constructor();
|
|
18
|
+
initialize(...args: MaybeContextualArg<any>): Promise<{
|
|
19
|
+
config: KeycloakSetupConfig;
|
|
20
|
+
client: AxiosInstance;
|
|
21
|
+
}>;
|
|
22
|
+
setupKeycloak(keycloakSetupConfig: KeycloakSetupConfig, ...args: MaybeContextualArg<any>): Promise<KeycloakSetupConfig>;
|
|
23
|
+
addRealm(realmName: string, payload: any, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
24
|
+
editRealm(realmName: string, payload: any, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
25
|
+
removeRealm(realmName: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
26
|
+
addUserToRealm(keycloakUser: KeycloakUser, payload: any, ...args: MaybeContextualArg<any>): Promise<string>;
|
|
27
|
+
editUser(realmName: string, userUUID: string, payload: any, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
28
|
+
removeUserFromRealm(realmName: string, userUUID: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
29
|
+
addRealmRolesToUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
30
|
+
addClientRolesToUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
31
|
+
deleteAdminApiUser(keycloakSetupConfig: KeycloakSetupConfig, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
32
|
+
setupOrganization(config: KeycloakSetupConfig, ...args: MaybeContextualArg<any>): Promise<KeycloakSetupConfig>;
|
|
33
|
+
setupOrganizationSSO(keycloakSetupConfig: KeycloakSetupConfig, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
34
|
+
deleteOrganization(realmName: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
35
|
+
private createHttpClient;
|
|
36
|
+
private updateClientScopesRolesMappers;
|
|
37
|
+
private parseJsonResponse;
|
|
38
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { MaybeContextualArg } from "@decaf-ts/core";
|
|
2
|
+
import { ClientBasedService } from "@decaf-ts/core";
|
|
3
|
+
import type { KeycloakSetupConfig, KeycloakUser } from "../types.d.cts";
|
|
4
|
+
import { AxiosInstance } from "axios";
|
|
5
|
+
export type KeycloakUserRepresentation = {
|
|
6
|
+
username?: string;
|
|
7
|
+
firstName?: string;
|
|
8
|
+
lastName?: string;
|
|
9
|
+
email?: string;
|
|
10
|
+
emailVerified?: boolean;
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
credentials?: Array<{
|
|
13
|
+
type: string;
|
|
14
|
+
value: string;
|
|
15
|
+
temporary?: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
};
|
|
19
|
+
export declare class KeycloakUserService extends ClientBasedService<AxiosInstance, KeycloakSetupConfig> {
|
|
20
|
+
initialize(...args: MaybeContextualArg<any>): Promise<{
|
|
21
|
+
config: KeycloakSetupConfig;
|
|
22
|
+
client: AxiosInstance;
|
|
23
|
+
}>;
|
|
24
|
+
addUserToRealm(keycloakUser: KeycloakUser, payload: Partial<KeycloakUserRepresentation> | undefined, ...args: MaybeContextualArg<any>): Promise<string>;
|
|
25
|
+
editUser(realmName: string, userUUID: string, payload: Partial<KeycloakUserRepresentation>, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
26
|
+
updateRealmUser(realmName: string, userUUID: string, payload: Partial<KeycloakUserRepresentation>, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
27
|
+
removeUserFromRealm(realmName: string, userUUID: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
28
|
+
deleteUser(accessToken: string, keycloakUser: KeycloakUser, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
29
|
+
createRealmUser(keycloakUser: KeycloakUser, payload: Partial<KeycloakUserRepresentation> | undefined, ...args: MaybeContextualArg<any>): Promise<string>;
|
|
30
|
+
assignRolesToUser(rolesUrl: string, setRolesUrl: string, roleNames: string[], accessToken: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
31
|
+
grantRealmRolesToUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
32
|
+
grantClientRolesToUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
33
|
+
revokeRealmRolesFromUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
34
|
+
replaceRealmRolesForUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
35
|
+
revokeClientRolesFromUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
36
|
+
replaceClientRolesForUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
37
|
+
private createHttpClient;
|
|
38
|
+
private isProduction;
|
|
39
|
+
private getAdminAccessToken;
|
|
40
|
+
private getAccessToken;
|
|
41
|
+
private request;
|
|
42
|
+
private handleHttpResponse;
|
|
43
|
+
protected parseError(error: Error): Error;
|
|
44
|
+
private extractUUIDfromResponse;
|
|
45
|
+
private parseJsonResponse;
|
|
46
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { MaybeContextualArg } from "@decaf-ts/core";
|
|
2
|
+
import { ClientBasedService } from "@decaf-ts/core";
|
|
3
|
+
import type { KeycloakSetupConfig, KeycloakUser } from "../types.d.mts";
|
|
4
|
+
import { AxiosInstance } from "axios";
|
|
5
|
+
export type KeycloakUserRepresentation = {
|
|
6
|
+
username?: string;
|
|
7
|
+
firstName?: string;
|
|
8
|
+
lastName?: string;
|
|
9
|
+
email?: string;
|
|
10
|
+
emailVerified?: boolean;
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
credentials?: Array<{
|
|
13
|
+
type: string;
|
|
14
|
+
value: string;
|
|
15
|
+
temporary?: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
};
|
|
19
|
+
export declare class KeycloakUserService extends ClientBasedService<AxiosInstance, KeycloakSetupConfig> {
|
|
20
|
+
initialize(...args: MaybeContextualArg<any>): Promise<{
|
|
21
|
+
config: KeycloakSetupConfig;
|
|
22
|
+
client: AxiosInstance;
|
|
23
|
+
}>;
|
|
24
|
+
addUserToRealm(keycloakUser: KeycloakUser, payload: Partial<KeycloakUserRepresentation> | undefined, ...args: MaybeContextualArg<any>): Promise<string>;
|
|
25
|
+
editUser(realmName: string, userUUID: string, payload: Partial<KeycloakUserRepresentation>, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
26
|
+
updateRealmUser(realmName: string, userUUID: string, payload: Partial<KeycloakUserRepresentation>, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
27
|
+
removeUserFromRealm(realmName: string, userUUID: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
28
|
+
deleteUser(accessToken: string, keycloakUser: KeycloakUser, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
29
|
+
createRealmUser(keycloakUser: KeycloakUser, payload: Partial<KeycloakUserRepresentation> | undefined, ...args: MaybeContextualArg<any>): Promise<string>;
|
|
30
|
+
assignRolesToUser(rolesUrl: string, setRolesUrl: string, roleNames: string[], accessToken: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
31
|
+
grantRealmRolesToUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
32
|
+
grantClientRolesToUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
33
|
+
revokeRealmRolesFromUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
34
|
+
replaceRealmRolesForUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
35
|
+
revokeClientRolesFromUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
36
|
+
replaceClientRolesForUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
37
|
+
private createHttpClient;
|
|
38
|
+
private isProduction;
|
|
39
|
+
private getAdminAccessToken;
|
|
40
|
+
private getAccessToken;
|
|
41
|
+
private request;
|
|
42
|
+
private handleHttpResponse;
|
|
43
|
+
protected parseError(error: Error): Error;
|
|
44
|
+
private extractUUIDfromResponse;
|
|
45
|
+
private parseJsonResponse;
|
|
46
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module integrations/keycloak/services
|
|
3
|
+
* @summary Keycloak provisioning services.
|
|
4
|
+
* @description Re-exports the orchestrator and lower-level services used to manage realms, roles, clients, users, identity providers, and access tokens.
|
|
5
|
+
*/
|
|
6
|
+
export * from "./KeycloakAuthService.d.cts";
|
|
7
|
+
export * from "./KeycloakClientService.d.cts";
|
|
8
|
+
export * from "./KeycloakIdentityProviderService.d.cts";
|
|
9
|
+
export * from "./KeycloakRealmService.d.cts";
|
|
10
|
+
export * from "./KeycloakRoleService.d.cts";
|
|
11
|
+
export * from "./KeycloakService.d.cts";
|
|
12
|
+
export * from "./KeycloakUserService.d.cts";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module integrations/keycloak/services
|
|
3
|
+
* @summary Keycloak provisioning services.
|
|
4
|
+
* @description Re-exports the orchestrator and lower-level services used to manage realms, roles, clients, users, identity providers, and access tokens.
|
|
5
|
+
*/
|
|
6
|
+
export * from "./KeycloakAuthService.d.mts";
|
|
7
|
+
export * from "./KeycloakClientService.d.mts";
|
|
8
|
+
export * from "./KeycloakIdentityProviderService.d.mts";
|
|
9
|
+
export * from "./KeycloakRealmService.d.mts";
|
|
10
|
+
export * from "./KeycloakRoleService.d.mts";
|
|
11
|
+
export * from "./KeycloakService.d.mts";
|
|
12
|
+
export * from "./KeycloakUserService.d.mts";
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module integrations/keycloak/types
|
|
3
|
+
* @summary Keycloak configuration and payload types.
|
|
4
|
+
* @description Shared type definitions for Keycloak provisioning services and their setup payloads.
|
|
5
|
+
*/
|
|
6
|
+
export interface KeycloakUser {
|
|
7
|
+
realm: string;
|
|
8
|
+
apiClientId: string;
|
|
9
|
+
username: string;
|
|
10
|
+
password: string;
|
|
11
|
+
usernameUUID?: string;
|
|
12
|
+
firstName?: string;
|
|
13
|
+
lastName?: string;
|
|
14
|
+
email?: string;
|
|
15
|
+
emailVerified?: boolean;
|
|
16
|
+
enabled?: boolean;
|
|
17
|
+
requiredActions?: string[];
|
|
18
|
+
attributes?: Record<string, string[] | string>;
|
|
19
|
+
}
|
|
20
|
+
export interface KeycloakClientRoleConfig {
|
|
21
|
+
roleName: string;
|
|
22
|
+
claimValue: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface KeycloakClientConfig {
|
|
26
|
+
clientId: string;
|
|
27
|
+
secret: string;
|
|
28
|
+
clientName: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
rootUrl?: string;
|
|
31
|
+
adminUrl?: string;
|
|
32
|
+
baseUrl?: string;
|
|
33
|
+
redirectUris: string[];
|
|
34
|
+
webOrigins: string[];
|
|
35
|
+
clientUUID?: string;
|
|
36
|
+
roles?: KeycloakClientRoleConfig[];
|
|
37
|
+
enabled?: boolean;
|
|
38
|
+
protocol?: string;
|
|
39
|
+
standardFlowEnabled?: boolean;
|
|
40
|
+
implicitFlowEnabled?: boolean;
|
|
41
|
+
directAccessGrantsEnabled?: boolean;
|
|
42
|
+
serviceAccountsEnabled?: boolean;
|
|
43
|
+
authorizationServicesEnabled?: boolean;
|
|
44
|
+
publicClient?: boolean;
|
|
45
|
+
frontchannelLogout?: boolean;
|
|
46
|
+
consentRequired?: boolean;
|
|
47
|
+
alwaysDisplayInConsole?: boolean;
|
|
48
|
+
bearerOnly?: boolean;
|
|
49
|
+
surrogateAuthRequired?: boolean;
|
|
50
|
+
notBefore?: number;
|
|
51
|
+
attributes?: Record<string, string>;
|
|
52
|
+
}
|
|
53
|
+
export interface KeycloakIdentityProviderConfig {
|
|
54
|
+
alias: string;
|
|
55
|
+
displayName: string;
|
|
56
|
+
tenantId: string;
|
|
57
|
+
clientId: string;
|
|
58
|
+
clientSecret: string;
|
|
59
|
+
providerId?: string;
|
|
60
|
+
syncMode?: string;
|
|
61
|
+
mapperSyncMode?: string;
|
|
62
|
+
mapperClaimName?: string;
|
|
63
|
+
enabled?: boolean;
|
|
64
|
+
hideOnLogin?: boolean;
|
|
65
|
+
linkOnly?: boolean;
|
|
66
|
+
storeToken?: boolean;
|
|
67
|
+
trustEmail?: boolean;
|
|
68
|
+
updateProfileFirstLoginMode?: string;
|
|
69
|
+
config?: Record<string, string>;
|
|
70
|
+
}
|
|
71
|
+
export interface KeycloakRealmConfig {
|
|
72
|
+
realm?: string;
|
|
73
|
+
enabled?: boolean;
|
|
74
|
+
displayName?: string;
|
|
75
|
+
displayNameHtml?: string;
|
|
76
|
+
loginWithEmailAllowed?: boolean;
|
|
77
|
+
duplicateEmailsAllowed?: boolean;
|
|
78
|
+
resetPasswordAllowed?: boolean;
|
|
79
|
+
registrationAllowed?: boolean;
|
|
80
|
+
rememberMe?: boolean;
|
|
81
|
+
verifyEmail?: boolean;
|
|
82
|
+
attributes?: Record<string, string>;
|
|
83
|
+
}
|
|
84
|
+
export interface KeycloakClientConfigOverrides {
|
|
85
|
+
payload?: Partial<Record<string, unknown>>;
|
|
86
|
+
}
|
|
87
|
+
export interface KeycloakUserConfigOverrides {
|
|
88
|
+
payload?: Partial<Record<string, unknown>>;
|
|
89
|
+
}
|
|
90
|
+
export interface KeycloakIdentityProviderConfigOverrides {
|
|
91
|
+
payload?: Partial<Record<string, unknown>>;
|
|
92
|
+
}
|
|
93
|
+
export interface KeycloakSetupConfig {
|
|
94
|
+
id: string;
|
|
95
|
+
host: string;
|
|
96
|
+
protocol: "http" | "https";
|
|
97
|
+
rootApiUser?: KeycloakUser;
|
|
98
|
+
adminApiUser?: KeycloakUser;
|
|
99
|
+
realmApiUser?: KeycloakUser;
|
|
100
|
+
client: KeycloakClientConfig;
|
|
101
|
+
identityProvider?: KeycloakIdentityProviderConfig;
|
|
102
|
+
realmConfig?: KeycloakRealmConfig;
|
|
103
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module integrations/keycloak/types
|
|
3
|
+
* @summary Keycloak configuration and payload types.
|
|
4
|
+
* @description Shared type definitions for Keycloak provisioning services and their setup payloads.
|
|
5
|
+
*/
|
|
6
|
+
export interface KeycloakUser {
|
|
7
|
+
realm: string;
|
|
8
|
+
apiClientId: string;
|
|
9
|
+
username: string;
|
|
10
|
+
password: string;
|
|
11
|
+
usernameUUID?: string;
|
|
12
|
+
firstName?: string;
|
|
13
|
+
lastName?: string;
|
|
14
|
+
email?: string;
|
|
15
|
+
emailVerified?: boolean;
|
|
16
|
+
enabled?: boolean;
|
|
17
|
+
requiredActions?: string[];
|
|
18
|
+
attributes?: Record<string, string[] | string>;
|
|
19
|
+
}
|
|
20
|
+
export interface KeycloakClientRoleConfig {
|
|
21
|
+
roleName: string;
|
|
22
|
+
claimValue: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface KeycloakClientConfig {
|
|
26
|
+
clientId: string;
|
|
27
|
+
secret: string;
|
|
28
|
+
clientName: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
rootUrl?: string;
|
|
31
|
+
adminUrl?: string;
|
|
32
|
+
baseUrl?: string;
|
|
33
|
+
redirectUris: string[];
|
|
34
|
+
webOrigins: string[];
|
|
35
|
+
clientUUID?: string;
|
|
36
|
+
roles?: KeycloakClientRoleConfig[];
|
|
37
|
+
enabled?: boolean;
|
|
38
|
+
protocol?: string;
|
|
39
|
+
standardFlowEnabled?: boolean;
|
|
40
|
+
implicitFlowEnabled?: boolean;
|
|
41
|
+
directAccessGrantsEnabled?: boolean;
|
|
42
|
+
serviceAccountsEnabled?: boolean;
|
|
43
|
+
authorizationServicesEnabled?: boolean;
|
|
44
|
+
publicClient?: boolean;
|
|
45
|
+
frontchannelLogout?: boolean;
|
|
46
|
+
consentRequired?: boolean;
|
|
47
|
+
alwaysDisplayInConsole?: boolean;
|
|
48
|
+
bearerOnly?: boolean;
|
|
49
|
+
surrogateAuthRequired?: boolean;
|
|
50
|
+
notBefore?: number;
|
|
51
|
+
attributes?: Record<string, string>;
|
|
52
|
+
}
|
|
53
|
+
export interface KeycloakIdentityProviderConfig {
|
|
54
|
+
alias: string;
|
|
55
|
+
displayName: string;
|
|
56
|
+
tenantId: string;
|
|
57
|
+
clientId: string;
|
|
58
|
+
clientSecret: string;
|
|
59
|
+
providerId?: string;
|
|
60
|
+
syncMode?: string;
|
|
61
|
+
mapperSyncMode?: string;
|
|
62
|
+
mapperClaimName?: string;
|
|
63
|
+
enabled?: boolean;
|
|
64
|
+
hideOnLogin?: boolean;
|
|
65
|
+
linkOnly?: boolean;
|
|
66
|
+
storeToken?: boolean;
|
|
67
|
+
trustEmail?: boolean;
|
|
68
|
+
updateProfileFirstLoginMode?: string;
|
|
69
|
+
config?: Record<string, string>;
|
|
70
|
+
}
|
|
71
|
+
export interface KeycloakRealmConfig {
|
|
72
|
+
realm?: string;
|
|
73
|
+
enabled?: boolean;
|
|
74
|
+
displayName?: string;
|
|
75
|
+
displayNameHtml?: string;
|
|
76
|
+
loginWithEmailAllowed?: boolean;
|
|
77
|
+
duplicateEmailsAllowed?: boolean;
|
|
78
|
+
resetPasswordAllowed?: boolean;
|
|
79
|
+
registrationAllowed?: boolean;
|
|
80
|
+
rememberMe?: boolean;
|
|
81
|
+
verifyEmail?: boolean;
|
|
82
|
+
attributes?: Record<string, string>;
|
|
83
|
+
}
|
|
84
|
+
export interface KeycloakClientConfigOverrides {
|
|
85
|
+
payload?: Partial<Record<string, unknown>>;
|
|
86
|
+
}
|
|
87
|
+
export interface KeycloakUserConfigOverrides {
|
|
88
|
+
payload?: Partial<Record<string, unknown>>;
|
|
89
|
+
}
|
|
90
|
+
export interface KeycloakIdentityProviderConfigOverrides {
|
|
91
|
+
payload?: Partial<Record<string, unknown>>;
|
|
92
|
+
}
|
|
93
|
+
export interface KeycloakSetupConfig {
|
|
94
|
+
id: string;
|
|
95
|
+
host: string;
|
|
96
|
+
protocol: "http" | "https";
|
|
97
|
+
rootApiUser?: KeycloakUser;
|
|
98
|
+
adminApiUser?: KeycloakUser;
|
|
99
|
+
realmApiUser?: KeycloakUser;
|
|
100
|
+
client: KeycloakClientConfig;
|
|
101
|
+
identityProvider?: KeycloakIdentityProviderConfig;
|
|
102
|
+
realmConfig?: KeycloakRealmConfig;
|
|
103
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module integrations/kibana/helpers
|
|
3
|
+
* @summary Kibana configuration helpers.
|
|
4
|
+
* @description Convenience builders for default Kibana spaces, data views, and role configurations.
|
|
5
|
+
*/
|
|
6
|
+
import type { KibanaDataViewConfig, KibanaRoleConfig, KibanaSpaceConfig } from "./types.d.cts";
|
|
7
|
+
export declare function createDefaultKibanaSpaceConfig(realm: string): KibanaSpaceConfig;
|
|
8
|
+
export declare function createDefaultKibanaDataViewConfigs(realm: string): KibanaDataViewConfig[];
|
|
9
|
+
export declare function createDefaultKibanaRoleConfig(realm: string): KibanaRoleConfig;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module integrations/kibana/helpers
|
|
3
|
+
* @summary Kibana configuration helpers.
|
|
4
|
+
* @description Convenience builders for default Kibana spaces, data views, and role configurations.
|
|
5
|
+
*/
|
|
6
|
+
import type { KibanaDataViewConfig, KibanaRoleConfig, KibanaSpaceConfig } from "./types.d.mts";
|
|
7
|
+
export declare function createDefaultKibanaSpaceConfig(realm: string): KibanaSpaceConfig;
|
|
8
|
+
export declare function createDefaultKibanaDataViewConfigs(realm: string): KibanaDataViewConfig[];
|
|
9
|
+
export declare function createDefaultKibanaRoleConfig(realm: string): KibanaRoleConfig;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./types.d.cts";
|
|
2
|
+
export * from "./helpers.d.cts";
|
|
3
|
+
export * from "./services/index.d.cts";
|
|
4
|
+
/**
|
|
5
|
+
* @summary Kibana integrations.
|
|
6
|
+
* @description Helpers for provisioning Kibana spaces, data views, and dashboards.
|
|
7
|
+
* @namespace kibana
|
|
8
|
+
* @memberOf module:integrations
|
|
9
|
+
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./types.d.mts";
|
|
2
|
+
export * from "./helpers.d.mts";
|
|
3
|
+
export * from "./services/index.d.mts";
|
|
4
|
+
/**
|
|
5
|
+
* @summary Kibana integrations.
|
|
6
|
+
* @description Helpers for provisioning Kibana spaces, data views, and dashboards.
|
|
7
|
+
* @namespace kibana
|
|
8
|
+
* @memberOf module:integrations
|
|
9
|
+
*/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MaybeContextualArg } from "@decaf-ts/core";
|
|
2
|
+
import { ClientBasedService } from "@decaf-ts/core";
|
|
3
|
+
import type { KibanaSetupConfig, KibanaUser } from "../types.d.cts";
|
|
4
|
+
import { AxiosInstance } from "axios";
|
|
5
|
+
export declare class KibanaAuthService extends ClientBasedService<AxiosInstance, KibanaSetupConfig> {
|
|
6
|
+
initialize(...args: MaybeContextualArg<any>): Promise<{
|
|
7
|
+
config: KibanaSetupConfig;
|
|
8
|
+
client: AxiosInstance;
|
|
9
|
+
}>;
|
|
10
|
+
loginToKibana(username: string | undefined, password: string | undefined, ...args: MaybeContextualArg<any>): Promise<string[] | undefined>;
|
|
11
|
+
logout(user: KibanaUser, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
12
|
+
protected parseError(error: Error): Error;
|
|
13
|
+
private createHttpClient;
|
|
14
|
+
private isSecureEnvironment;
|
|
15
|
+
private request;
|
|
16
|
+
}
|