@decaf-ts/integrations 0.2.2 → 0.3.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/dist/integrations.cjs +1 -1
- package/lib/cjs/index.cjs +3 -3
- package/lib/cjs/keycloak/services/KeycloakAuthService.cjs +2 -5
- package/lib/cjs/keycloak/services/KeycloakAuthService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakClientService.cjs +2 -5
- package/lib/cjs/keycloak/services/KeycloakClientService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakIdentityProviderService.cjs +2 -5
- package/lib/cjs/keycloak/services/KeycloakIdentityProviderService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakRealmService.cjs +5 -18
- package/lib/cjs/keycloak/services/KeycloakRealmService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakRoleService.cjs +27 -5
- package/lib/cjs/keycloak/services/KeycloakRoleService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakService.cjs +30 -1
- package/lib/cjs/keycloak/services/KeycloakService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakUserService.cjs +2 -5
- package/lib/cjs/keycloak/services/KeycloakUserService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaAuthService.cjs +3 -6
- package/lib/cjs/kibana/services/KibanaAuthService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaDashboardService.cjs +6 -18
- package/lib/cjs/kibana/services/KibanaDashboardService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaDataViewService.cjs +4 -16
- package/lib/cjs/kibana/services/KibanaDataViewService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaRoleService.cjs +2 -5
- package/lib/cjs/kibana/services/KibanaRoleService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaSpaceService.cjs +2 -5
- package/lib/cjs/kibana/services/KibanaSpaceService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaUserService.cjs +2 -5
- package/lib/cjs/kibana/services/KibanaUserService.cjs.map +1 -1
- package/lib/cjs/shared/runtime.cjs +26 -0
- package/lib/cjs/shared/runtime.cjs.map +1 -0
- package/lib/esm/index.js +3 -3
- package/lib/esm/keycloak/services/KeycloakAuthService.js +2 -5
- package/lib/esm/keycloak/services/KeycloakAuthService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakClientService.js +2 -5
- package/lib/esm/keycloak/services/KeycloakClientService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakIdentityProviderService.js +2 -5
- package/lib/esm/keycloak/services/KeycloakIdentityProviderService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakRealmService.js +5 -18
- package/lib/esm/keycloak/services/KeycloakRealmService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakRoleService.js +27 -5
- package/lib/esm/keycloak/services/KeycloakRoleService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakService.js +31 -2
- package/lib/esm/keycloak/services/KeycloakService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakUserService.js +2 -5
- package/lib/esm/keycloak/services/KeycloakUserService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaAuthService.js +3 -6
- package/lib/esm/kibana/services/KibanaAuthService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaDashboardService.js +6 -18
- package/lib/esm/kibana/services/KibanaDashboardService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaDataViewService.js +4 -16
- package/lib/esm/kibana/services/KibanaDataViewService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaRoleService.js +2 -5
- package/lib/esm/kibana/services/KibanaRoleService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaSpaceService.js +2 -5
- package/lib/esm/kibana/services/KibanaSpaceService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaUserService.js +2 -5
- package/lib/esm/kibana/services/KibanaUserService.js.map +1 -1
- package/lib/esm/shared/runtime.js +21 -0
- package/lib/esm/shared/runtime.js.map +1 -0
- package/lib/types/index.d.cts +2 -2
- package/lib/types/index.d.mts +2 -2
- package/lib/types/keycloak/services/KeycloakAuthService.d.cts +0 -1
- package/lib/types/keycloak/services/KeycloakAuthService.d.mts +0 -1
- package/lib/types/keycloak/services/KeycloakClientService.d.cts +0 -1
- package/lib/types/keycloak/services/KeycloakClientService.d.mts +0 -1
- package/lib/types/keycloak/services/KeycloakIdentityProviderService.d.cts +0 -1
- package/lib/types/keycloak/services/KeycloakIdentityProviderService.d.mts +0 -1
- package/lib/types/keycloak/services/KeycloakRealmService.d.cts +0 -2
- package/lib/types/keycloak/services/KeycloakRealmService.d.mts +0 -2
- package/lib/types/keycloak/services/KeycloakRoleService.d.cts +14 -1
- package/lib/types/keycloak/services/KeycloakRoleService.d.mts +14 -1
- package/lib/types/keycloak/services/KeycloakService.d.cts +9 -0
- package/lib/types/keycloak/services/KeycloakService.d.mts +9 -0
- package/lib/types/keycloak/services/KeycloakUserService.d.cts +0 -1
- package/lib/types/keycloak/services/KeycloakUserService.d.mts +0 -1
- package/lib/types/keycloak/types.d.cts +15 -1
- package/lib/types/keycloak/types.d.mts +15 -1
- package/lib/types/kibana/services/KibanaAuthService.d.cts +0 -1
- package/lib/types/kibana/services/KibanaAuthService.d.mts +0 -1
- package/lib/types/kibana/services/KibanaDashboardService.d.cts +0 -2
- package/lib/types/kibana/services/KibanaDashboardService.d.mts +0 -2
- package/lib/types/kibana/services/KibanaDataViewService.d.cts +0 -2
- package/lib/types/kibana/services/KibanaDataViewService.d.mts +0 -2
- package/lib/types/kibana/services/KibanaRoleService.d.cts +0 -1
- package/lib/types/kibana/services/KibanaRoleService.d.mts +0 -1
- package/lib/types/kibana/services/KibanaSpaceService.d.cts +0 -1
- package/lib/types/kibana/services/KibanaSpaceService.d.mts +0 -1
- package/lib/types/kibana/services/KibanaUserService.d.cts +0 -1
- package/lib/types/kibana/services/KibanaUserService.d.mts +0 -1
- package/lib/types/kibana/types.d.cts +4 -1
- package/lib/types/kibana/types.d.mts +4 -1
- package/lib/types/shared/runtime.d.cts +2 -0
- package/lib/types/shared/runtime.d.mts +2 -0
- package/package.json +5 -3
|
@@ -8,6 +8,20 @@ export declare class KeycloakRoleService extends ClientBasedService<AxiosInstanc
|
|
|
8
8
|
client: AxiosInstance;
|
|
9
9
|
}>;
|
|
10
10
|
createClientRoles(keycloakSetupConfig: KeycloakSetupConfig, roleConfigs: KeycloakClientRoleConfig[] | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a realm-level role in the specified realm.
|
|
13
|
+
*
|
|
14
|
+
* When `compositeRoles` is provided, the role is created as a Keycloak
|
|
15
|
+
* composite role that includes the given sub-roles. This allows role
|
|
16
|
+
* hierarchies (e.g. `admin ⊃ writer ⊃ reader`) so that a user assigned
|
|
17
|
+
* the composite role automatically inherits all sub-roles in their JWT.
|
|
18
|
+
*
|
|
19
|
+
* @param realmName The realm in which to create the role.
|
|
20
|
+
* @param roleName The name of the realm role to create.
|
|
21
|
+
* @param compositeRoles Optional array of existing realm role names to
|
|
22
|
+
* include as composites.
|
|
23
|
+
*/
|
|
24
|
+
createRealmRole(realmName: string, roleName: string, compositeRoles: string[] | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
11
25
|
getRealmRoles(realmName: string, ...args: MaybeContextualArg<any>): Promise<any[]>;
|
|
12
26
|
getClientRoles(realmName: string, clientUUID: string, ...args: MaybeContextualArg<any>): Promise<any[]>;
|
|
13
27
|
grantRealmRolesToUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
@@ -17,7 +31,6 @@ export declare class KeycloakRoleService extends ClientBasedService<AxiosInstanc
|
|
|
17
31
|
revokeClientRolesFromUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
18
32
|
replaceClientRolesForUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
19
33
|
private createHttpClient;
|
|
20
|
-
private isProduction;
|
|
21
34
|
private getAdminAccessToken;
|
|
22
35
|
private getRealmAccessToken;
|
|
23
36
|
private getAccessToken;
|
|
@@ -27,12 +27,21 @@ export declare class KeycloakService extends ClientBasedService<AxiosInstance, K
|
|
|
27
27
|
editUser(realmName: string, userUUID: string, payload: any, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
28
28
|
removeUserFromRealm(realmName: string, userUUID: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
29
29
|
addRealmRolesToUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Creates a realm-level role, optionally as a composite of existing roles.
|
|
32
|
+
*/
|
|
33
|
+
createRealmRole(realmName: string, roleName: string, compositeRoles: string[] | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Creates a client in the configured realm and returns its UUID.
|
|
36
|
+
*/
|
|
37
|
+
createClient(config: KeycloakSetupConfig, overrides: Partial<import("../types.d.cts").KeycloakClientConfig> | undefined, ...args: MaybeContextualArg<any>): Promise<string>;
|
|
30
38
|
addClientRolesToUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
31
39
|
deleteAdminApiUser(keycloakSetupConfig: KeycloakSetupConfig, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
32
40
|
setupOrganization(config: KeycloakSetupConfig, ...args: MaybeContextualArg<any>): Promise<KeycloakSetupConfig>;
|
|
33
41
|
setupOrganizationSSO(keycloakSetupConfig: KeycloakSetupConfig, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
34
42
|
deleteOrganization(realmName: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
35
43
|
private createHttpClient;
|
|
44
|
+
private waitForRealm;
|
|
36
45
|
private updateClientScopesRolesMappers;
|
|
37
46
|
private parseJsonResponse;
|
|
38
47
|
}
|
|
@@ -27,12 +27,21 @@ export declare class KeycloakService extends ClientBasedService<AxiosInstance, K
|
|
|
27
27
|
editUser(realmName: string, userUUID: string, payload: any, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
28
28
|
removeUserFromRealm(realmName: string, userUUID: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
29
29
|
addRealmRolesToUser(realmName: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Creates a realm-level role, optionally as a composite of existing roles.
|
|
32
|
+
*/
|
|
33
|
+
createRealmRole(realmName: string, roleName: string, compositeRoles: string[] | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Creates a client in the configured realm and returns its UUID.
|
|
36
|
+
*/
|
|
37
|
+
createClient(config: KeycloakSetupConfig, overrides: Partial<import("../types.d.mts").KeycloakClientConfig> | undefined, ...args: MaybeContextualArg<any>): Promise<string>;
|
|
30
38
|
addClientRolesToUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
31
39
|
deleteAdminApiUser(keycloakSetupConfig: KeycloakSetupConfig, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
32
40
|
setupOrganization(config: KeycloakSetupConfig, ...args: MaybeContextualArg<any>): Promise<KeycloakSetupConfig>;
|
|
33
41
|
setupOrganizationSSO(keycloakSetupConfig: KeycloakSetupConfig, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
34
42
|
deleteOrganization(realmName: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
35
43
|
private createHttpClient;
|
|
44
|
+
private waitForRealm;
|
|
36
45
|
private updateClientScopesRolesMappers;
|
|
37
46
|
private parseJsonResponse;
|
|
38
47
|
}
|
|
@@ -35,7 +35,6 @@ export declare class KeycloakUserService extends ClientBasedService<AxiosInstanc
|
|
|
35
35
|
revokeClientRolesFromUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
36
36
|
replaceClientRolesForUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
37
37
|
private createHttpClient;
|
|
38
|
-
private isProduction;
|
|
39
38
|
private getAdminAccessToken;
|
|
40
39
|
private getAccessToken;
|
|
41
40
|
private request;
|
|
@@ -35,7 +35,6 @@ export declare class KeycloakUserService extends ClientBasedService<AxiosInstanc
|
|
|
35
35
|
revokeClientRolesFromUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
36
36
|
replaceClientRolesForUser(realmName: string, clientUUID: string, userUUID: string, roleNames: string[], ...args: MaybeContextualArg<any>): Promise<void>;
|
|
37
37
|
private createHttpClient;
|
|
38
|
-
private isProduction;
|
|
39
38
|
private getAdminAccessToken;
|
|
40
39
|
private getAccessToken;
|
|
41
40
|
private request;
|
|
@@ -22,6 +22,9 @@ export interface KeycloakClientRoleConfig {
|
|
|
22
22
|
claimValue: string;
|
|
23
23
|
description?: string;
|
|
24
24
|
}
|
|
25
|
+
export interface ProductionAwareConfig {
|
|
26
|
+
isProduction(): boolean;
|
|
27
|
+
}
|
|
25
28
|
export interface KeycloakClientConfig {
|
|
26
29
|
clientId: string;
|
|
27
30
|
secret: string;
|
|
@@ -90,7 +93,7 @@ export interface KeycloakUserConfigOverrides {
|
|
|
90
93
|
export interface KeycloakIdentityProviderConfigOverrides {
|
|
91
94
|
payload?: Partial<Record<string, unknown>>;
|
|
92
95
|
}
|
|
93
|
-
export interface KeycloakSetupConfig {
|
|
96
|
+
export interface KeycloakSetupConfig extends ProductionAwareConfig {
|
|
94
97
|
id: string;
|
|
95
98
|
host: string;
|
|
96
99
|
protocol: "http" | "https";
|
|
@@ -100,4 +103,15 @@ export interface KeycloakSetupConfig {
|
|
|
100
103
|
client: KeycloakClientConfig;
|
|
101
104
|
identityProvider?: KeycloakIdentityProviderConfig;
|
|
102
105
|
realmConfig?: KeycloakRealmConfig;
|
|
106
|
+
/**
|
|
107
|
+
* When true, realm roles are created as Keycloak composite roles forming a
|
|
108
|
+
* hierarchy (e.g. admin ⊃ writer ⊃ reader). A user assigned the composite
|
|
109
|
+
* role automatically inherits all sub-roles in their JWT.
|
|
110
|
+
*
|
|
111
|
+
* When false (default), roles are independent — admin does NOT imply writer
|
|
112
|
+
* or reader. Each user must be explicitly granted every role they need.
|
|
113
|
+
*
|
|
114
|
+
* @default false
|
|
115
|
+
*/
|
|
116
|
+
useCompositeRoles?: boolean;
|
|
103
117
|
}
|
|
@@ -22,6 +22,9 @@ export interface KeycloakClientRoleConfig {
|
|
|
22
22
|
claimValue: string;
|
|
23
23
|
description?: string;
|
|
24
24
|
}
|
|
25
|
+
export interface ProductionAwareConfig {
|
|
26
|
+
isProduction(): boolean;
|
|
27
|
+
}
|
|
25
28
|
export interface KeycloakClientConfig {
|
|
26
29
|
clientId: string;
|
|
27
30
|
secret: string;
|
|
@@ -90,7 +93,7 @@ export interface KeycloakUserConfigOverrides {
|
|
|
90
93
|
export interface KeycloakIdentityProviderConfigOverrides {
|
|
91
94
|
payload?: Partial<Record<string, unknown>>;
|
|
92
95
|
}
|
|
93
|
-
export interface KeycloakSetupConfig {
|
|
96
|
+
export interface KeycloakSetupConfig extends ProductionAwareConfig {
|
|
94
97
|
id: string;
|
|
95
98
|
host: string;
|
|
96
99
|
protocol: "http" | "https";
|
|
@@ -100,4 +103,15 @@ export interface KeycloakSetupConfig {
|
|
|
100
103
|
client: KeycloakClientConfig;
|
|
101
104
|
identityProvider?: KeycloakIdentityProviderConfig;
|
|
102
105
|
realmConfig?: KeycloakRealmConfig;
|
|
106
|
+
/**
|
|
107
|
+
* When true, realm roles are created as Keycloak composite roles forming a
|
|
108
|
+
* hierarchy (e.g. admin ⊃ writer ⊃ reader). A user assigned the composite
|
|
109
|
+
* role automatically inherits all sub-roles in their JWT.
|
|
110
|
+
*
|
|
111
|
+
* When false (default), roles are independent — admin does NOT imply writer
|
|
112
|
+
* or reader. Each user must be explicitly granted every role they need.
|
|
113
|
+
*
|
|
114
|
+
* @default false
|
|
115
|
+
*/
|
|
116
|
+
useCompositeRoles?: boolean;
|
|
103
117
|
}
|
|
@@ -11,6 +11,5 @@ export declare class KibanaAuthService extends ClientBasedService<AxiosInstance,
|
|
|
11
11
|
logout(user: KibanaUser, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
12
12
|
protected parseError(error: Error): Error;
|
|
13
13
|
private createHttpClient;
|
|
14
|
-
private isSecureEnvironment;
|
|
15
14
|
private request;
|
|
16
15
|
}
|
|
@@ -11,6 +11,5 @@ export declare class KibanaAuthService extends ClientBasedService<AxiosInstance,
|
|
|
11
11
|
logout(user: KibanaUser, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
12
12
|
protected parseError(error: Error): Error;
|
|
13
13
|
private createHttpClient;
|
|
14
|
-
private isSecureEnvironment;
|
|
15
14
|
private request;
|
|
16
15
|
}
|
|
@@ -25,7 +25,5 @@ export declare class KibanaDashboardService extends ClientBasedService<AxiosInst
|
|
|
25
25
|
verifySpaceSetup(realmName: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
26
26
|
private createHttpClient;
|
|
27
27
|
protected parseError(error: Error): Error;
|
|
28
|
-
private isSecureEnvironment;
|
|
29
28
|
private request;
|
|
30
|
-
private parseJson;
|
|
31
29
|
}
|
|
@@ -25,7 +25,5 @@ export declare class KibanaDashboardService extends ClientBasedService<AxiosInst
|
|
|
25
25
|
verifySpaceSetup(realmName: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
26
26
|
private createHttpClient;
|
|
27
27
|
protected parseError(error: Error): Error;
|
|
28
|
-
private isSecureEnvironment;
|
|
29
28
|
private request;
|
|
30
|
-
private parseJson;
|
|
31
29
|
}
|
|
@@ -15,9 +15,7 @@ export declare class KibanaDataViewService extends ClientBasedService<AxiosInsta
|
|
|
15
15
|
setDefaultDataView(realmName: string, dataViewId: string | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
16
16
|
private createHttpClient;
|
|
17
17
|
protected parseError(error: Error): Error;
|
|
18
|
-
private isSecureEnvironment;
|
|
19
18
|
private normalizeDataViewConfig;
|
|
20
19
|
private defaultDataViewConfigs;
|
|
21
20
|
private request;
|
|
22
|
-
private parseJson;
|
|
23
21
|
}
|
|
@@ -15,9 +15,7 @@ export declare class KibanaDataViewService extends ClientBasedService<AxiosInsta
|
|
|
15
15
|
setDefaultDataView(realmName: string, dataViewId: string | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
16
16
|
private createHttpClient;
|
|
17
17
|
protected parseError(error: Error): Error;
|
|
18
|
-
private isSecureEnvironment;
|
|
19
18
|
private normalizeDataViewConfig;
|
|
20
19
|
private defaultDataViewConfigs;
|
|
21
20
|
private request;
|
|
22
|
-
private parseJson;
|
|
23
21
|
}
|
|
@@ -13,7 +13,6 @@ export declare class KibanaRoleService extends ClientBasedService<AxiosInstance,
|
|
|
13
13
|
updateRole(realmName: string, payload: Partial<KibanaRoleConfig>, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
14
14
|
private createHttpClient;
|
|
15
15
|
protected parseError(error: Error): Error;
|
|
16
|
-
private isSecureEnvironment;
|
|
17
16
|
private normalizeRoleConfig;
|
|
18
17
|
private request;
|
|
19
18
|
}
|
|
@@ -13,7 +13,6 @@ export declare class KibanaRoleService extends ClientBasedService<AxiosInstance,
|
|
|
13
13
|
updateRole(realmName: string, payload: Partial<KibanaRoleConfig>, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
14
14
|
private createHttpClient;
|
|
15
15
|
protected parseError(error: Error): Error;
|
|
16
|
-
private isSecureEnvironment;
|
|
17
16
|
private normalizeRoleConfig;
|
|
18
17
|
private request;
|
|
19
18
|
}
|
|
@@ -14,7 +14,6 @@ export declare class KibanaSpaceService extends ClientBasedService<AxiosInstance
|
|
|
14
14
|
deleteSpace(realmName: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
15
15
|
private createHttpClient;
|
|
16
16
|
protected parseError(error: Error): Error;
|
|
17
|
-
private isSecureEnvironment;
|
|
18
17
|
private normalizeSpaceConfig;
|
|
19
18
|
private request;
|
|
20
19
|
}
|
|
@@ -14,7 +14,6 @@ export declare class KibanaSpaceService extends ClientBasedService<AxiosInstance
|
|
|
14
14
|
deleteSpace(realmName: string, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
15
15
|
private createHttpClient;
|
|
16
16
|
protected parseError(error: Error): Error;
|
|
17
|
-
private isSecureEnvironment;
|
|
18
17
|
private normalizeSpaceConfig;
|
|
19
18
|
private request;
|
|
20
19
|
}
|
|
@@ -13,7 +13,6 @@ export declare class KibanaUserService extends ClientBasedService<AxiosInstance,
|
|
|
13
13
|
updateUser(user: KibanaUser, realmName: string, roleNames: string[] | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
14
14
|
private createHttpClient;
|
|
15
15
|
protected parseError(error: Error): Error;
|
|
16
|
-
private isSecureEnvironment;
|
|
17
16
|
private normalizeRoleConfig;
|
|
18
17
|
private request;
|
|
19
18
|
}
|
|
@@ -13,7 +13,6 @@ export declare class KibanaUserService extends ClientBasedService<AxiosInstance,
|
|
|
13
13
|
updateUser(user: KibanaUser, realmName: string, roleNames: string[] | undefined, ...args: MaybeContextualArg<any>): Promise<void>;
|
|
14
14
|
private createHttpClient;
|
|
15
15
|
protected parseError(error: Error): Error;
|
|
16
|
-
private isSecureEnvironment;
|
|
17
16
|
private normalizeRoleConfig;
|
|
18
17
|
private request;
|
|
19
18
|
}
|
|
@@ -20,6 +20,9 @@ export interface KibanaSpaceConfig {
|
|
|
20
20
|
solution?: string;
|
|
21
21
|
imageUrl?: string;
|
|
22
22
|
}
|
|
23
|
+
export interface ProductionAwareConfig {
|
|
24
|
+
isProduction(): boolean;
|
|
25
|
+
}
|
|
23
26
|
/**
|
|
24
27
|
* @module integrations/kibana/types
|
|
25
28
|
* @summary Kibana configuration and payload types.
|
|
@@ -57,7 +60,7 @@ export interface KibanaRoleConfig {
|
|
|
57
60
|
}>;
|
|
58
61
|
metadata?: Record<string, unknown>;
|
|
59
62
|
}
|
|
60
|
-
export interface KibanaSetupConfig {
|
|
63
|
+
export interface KibanaSetupConfig extends ProductionAwareConfig {
|
|
61
64
|
id: string;
|
|
62
65
|
host: string;
|
|
63
66
|
es_host: string;
|
|
@@ -20,6 +20,9 @@ export interface KibanaSpaceConfig {
|
|
|
20
20
|
solution?: string;
|
|
21
21
|
imageUrl?: string;
|
|
22
22
|
}
|
|
23
|
+
export interface ProductionAwareConfig {
|
|
24
|
+
isProduction(): boolean;
|
|
25
|
+
}
|
|
23
26
|
/**
|
|
24
27
|
* @module integrations/kibana/types
|
|
25
28
|
* @summary Kibana configuration and payload types.
|
|
@@ -57,7 +60,7 @@ export interface KibanaRoleConfig {
|
|
|
57
60
|
}>;
|
|
58
61
|
metadata?: Record<string, unknown>;
|
|
59
62
|
}
|
|
60
|
-
export interface KibanaSetupConfig {
|
|
63
|
+
export interface KibanaSetupConfig extends ProductionAwareConfig {
|
|
61
64
|
id: string;
|
|
62
65
|
host: string;
|
|
63
66
|
es_host: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decaf-ts/integrations",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.mts",
|
|
@@ -254,8 +254,10 @@
|
|
|
254
254
|
"uuid": "^11.1.1"
|
|
255
255
|
},
|
|
256
256
|
"devDependencies": {
|
|
257
|
+
"@decaf-ts/cli": "latest",
|
|
257
258
|
"@decaf-ts/for-http": "latest",
|
|
258
|
-
"@decaf-ts/for-
|
|
259
|
+
"@decaf-ts/for-nano": "latest",
|
|
260
|
+
"@decaf-ts/for-nest": "0.11.2-refactor.5",
|
|
259
261
|
"@decaf-ts/utils": "latest",
|
|
260
262
|
"@nestjs/common": "^11.0.0",
|
|
261
263
|
"@nestjs/core": "^11.0.0",
|
|
@@ -270,7 +272,7 @@
|
|
|
270
272
|
},
|
|
271
273
|
"peerDependencies": {
|
|
272
274
|
"@decaf-ts/for-http": "latest",
|
|
273
|
-
"@decaf-ts/for-nest": "0.11.2
|
|
275
|
+
"@decaf-ts/for-nest": "0.11.2-refactor.5",
|
|
274
276
|
"jose": ">=5.0.0"
|
|
275
277
|
},
|
|
276
278
|
"peerDependenciesMeta": {
|