@kong-ui-public/entities-vaults 4.0.15-pr.2781.b1238e65f.0 → 4.0.15
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/entities-vaults.es.js +2877 -0
- package/dist/entities-vaults.umd.js +1 -0
- package/dist/style.css +1 -0
- package/dist/types/components/SecretForm.vue.d.ts +54 -0
- package/dist/types/components/SecretForm.vue.d.ts.map +1 -0
- package/dist/types/components/SecretFormInner.vue.d.ts +54 -0
- package/dist/types/components/SecretFormInner.vue.d.ts.map +1 -0
- package/dist/types/components/SecretList.vue.d.ts +85 -0
- package/dist/types/components/SecretList.vue.d.ts.map +1 -0
- package/dist/types/components/SecretListInner.vue.d.ts +85 -0
- package/dist/types/components/SecretListInner.vue.d.ts.map +1 -0
- package/dist/types/components/VaultConfigCard.vue.d.ts +63 -0
- package/dist/types/components/VaultConfigCard.vue.d.ts.map +1 -0
- package/dist/types/components/VaultForm.vue.d.ts +44 -0
- package/dist/types/components/VaultForm.vue.d.ts.map +1 -0
- package/dist/types/components/VaultList.vue.d.ts +107 -0
- package/dist/types/components/VaultList.vue.d.ts.map +1 -0
- package/dist/types/components/VaultSecretPicker.vue.d.ts +81 -0
- package/dist/types/components/VaultSecretPicker.vue.d.ts.map +1 -0
- package/dist/types/components/VaultSecretPickerProvider.vue.d.ts +13 -0
- package/dist/types/components/VaultSecretPickerProvider.vue.d.ts.map +1 -0
- package/dist/types/composables/index.d.ts +6 -0
- package/dist/types/composables/index.d.ts.map +1 -0
- package/dist/types/composables/useI18n.d.ts +9 -0
- package/dist/types/composables/useI18n.d.ts.map +1 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/secrets-endpoints.d.ts +16 -0
- package/dist/types/secrets-endpoints.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +6 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/secret-form.d.ts +19 -0
- package/dist/types/types/secret-form.d.ts.map +1 -0
- package/dist/types/types/secret-list.d.ts +15 -0
- package/dist/types/types/secret-list.d.ts.map +1 -0
- package/dist/types/types/vault-config.d.ts +16 -0
- package/dist/types/types/vault-config.d.ts.map +1 -0
- package/dist/types/types/vault-form.d.ts +174 -0
- package/dist/types/types/vault-form.d.ts.map +1 -0
- package/dist/types/types/vault-list.d.ts +33 -0
- package/dist/types/types/vault-list.d.ts.map +1 -0
- package/dist/types/utils.d.ts +37 -0
- package/dist/types/utils.d.ts.map +1 -0
- package/dist/types/vaults-endpoints.d.ts +24 -0
- package/dist/types/vaults-endpoints.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { AxiosError } from 'axios';
|
|
2
|
+
import type { PropType } from 'vue';
|
|
3
|
+
import '@kong-ui-public/entities-shared/dist/style.css';
|
|
4
|
+
import type { KongManagerVaultEntityConfig, KonnectVaultEntityConfig } from '../types';
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
7
|
+
config: {
|
|
8
|
+
type: PropType<KonnectVaultEntityConfig | KongManagerVaultEntityConfig>;
|
|
9
|
+
required: true;
|
|
10
|
+
validator: (config: KonnectVaultEntityConfig | KongManagerVaultEntityConfig) => boolean;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* External link for documentation that determines visibility of Documentation button
|
|
14
|
+
*/
|
|
15
|
+
configCardDoc: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
required: false;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Control visibility of card title content
|
|
22
|
+
*/
|
|
23
|
+
hideTitle: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
28
|
+
loading: (isLoading: boolean) => any;
|
|
29
|
+
"fetch:success": (data: Record<string, any>) => any;
|
|
30
|
+
"fetch:error": (error: AxiosError<unknown, any>) => any;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
33
|
+
config: {
|
|
34
|
+
type: PropType<KonnectVaultEntityConfig | KongManagerVaultEntityConfig>;
|
|
35
|
+
required: true;
|
|
36
|
+
validator: (config: KonnectVaultEntityConfig | KongManagerVaultEntityConfig) => boolean;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* External link for documentation that determines visibility of Documentation button
|
|
40
|
+
*/
|
|
41
|
+
configCardDoc: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
required: false;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Control visibility of card title content
|
|
48
|
+
*/
|
|
49
|
+
hideTitle: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
}>> & Readonly<{
|
|
54
|
+
onLoading?: ((isLoading: boolean) => any) | undefined;
|
|
55
|
+
"onFetch:success"?: ((data: Record<string, any>) => any) | undefined;
|
|
56
|
+
"onFetch:error"?: ((error: AxiosError<unknown, any>) => any) | undefined;
|
|
57
|
+
}>, {
|
|
58
|
+
configCardDoc: string;
|
|
59
|
+
hideTitle: boolean;
|
|
60
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
61
|
+
declare const _default: typeof __VLS_export;
|
|
62
|
+
export default _default;
|
|
63
|
+
//# sourceMappingURL=VaultConfigCard.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VaultConfigCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/VaultConfigCard.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,gDAAgD,CAAA;AACvD,OAAO,KAAK,EAAE,4BAA4B,EAAE,wBAAwB,EAA4B,MAAM,UAAU,CAAA;AAuLhH,QAAA,MAAM,YAAY;IAGhB,oHAAoH;;cAElG,QAAQ,CAAC,wBAAwB,GAAG,4BAA4B,CAAC;;4BAE7D,wBAAwB,GAAG,4BAA4B,KAAG,OAAO;;IAQvF;;OAEG;;;;;;IAMH;;OAEG;;;;;;;;;;IAtBH,oHAAoH;;cAElG,QAAQ,CAAC,wBAAwB,GAAG,4BAA4B,CAAC;;4BAE7D,wBAAwB,GAAG,4BAA4B,KAAG,OAAO;;IAQvF;;OAEG;;;;;;IAMH;;OAEG;;;;;;;;;;;;4EAMH,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import '@kong-ui-public/entities-shared/dist/style.css';
|
|
2
|
+
import type { PropType } from 'vue';
|
|
3
|
+
import type { VaultStateFields, KongManagerVaultFormConfig, KonnectVaultFormConfig } from '../types';
|
|
4
|
+
import type { AxiosError } from 'axios';
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
7
|
+
config: {
|
|
8
|
+
type: PropType<KonnectVaultFormConfig | KongManagerVaultFormConfig>;
|
|
9
|
+
required: true;
|
|
10
|
+
validator: (config: KonnectVaultFormConfig | KongManagerVaultFormConfig) => boolean;
|
|
11
|
+
};
|
|
12
|
+
/** If a valid vaultId is provided, it will put the form in Edit mode instead of Create */
|
|
13
|
+
vaultId: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: false;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
19
|
+
error: (error: AxiosError<unknown, any>) => any;
|
|
20
|
+
loading: (isLoading: boolean) => any;
|
|
21
|
+
update: (data: VaultStateFields) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
24
|
+
config: {
|
|
25
|
+
type: PropType<KonnectVaultFormConfig | KongManagerVaultFormConfig>;
|
|
26
|
+
required: true;
|
|
27
|
+
validator: (config: KonnectVaultFormConfig | KongManagerVaultFormConfig) => boolean;
|
|
28
|
+
};
|
|
29
|
+
/** If a valid vaultId is provided, it will put the form in Edit mode instead of Create */
|
|
30
|
+
vaultId: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
required: false;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{
|
|
36
|
+
onError?: ((error: AxiosError<unknown, any>) => any) | undefined;
|
|
37
|
+
onLoading?: ((isLoading: boolean) => any) | undefined;
|
|
38
|
+
onUpdate?: ((data: VaultStateFields) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
vaultId: string;
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
42
|
+
declare const _default: typeof __VLS_export;
|
|
43
|
+
export default _default;
|
|
44
|
+
//# sourceMappingURL=VaultForm.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VaultForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/VaultForm.vue"],"names":[],"mappings":"AA87CA,OAAO,gDAAgD,CAAA;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAQV,gBAAgB,EAChB,0BAA0B,EAC1B,sBAAsB,EAGvB,MAAM,UAAU,CAAA;AAOjB,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,OAAO,CAAA;AA01EtD,QAAA,MAAM,YAAY;IAGhB,oHAAoH;;cAElG,QAAQ,CAAC,sBAAsB,GAAG,0BAA0B,CAAC;;4BAEzD,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF,0FAA0F;;;;;;;;;;;IAZ1F,oHAAoH;;cAElG,QAAQ,CAAC,sBAAsB,GAAG,0BAA0B,CAAC;;4BAEzD,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF,0FAA0F;;;;;;;;;;;;4EAO1F,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { AxiosError } from 'axios';
|
|
3
|
+
import type { KongManagerVaultListConfig, KonnectVaultListConfig, EntityRow, CopyEventPayload } from '../types';
|
|
4
|
+
import '@kong-ui-public/entities-shared/dist/style.css';
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
7
|
+
config: {
|
|
8
|
+
type: PropType<KonnectVaultListConfig | KongManagerVaultListConfig>;
|
|
9
|
+
required: true;
|
|
10
|
+
validator: (config: KonnectVaultListConfig | KongManagerVaultListConfig) => boolean;
|
|
11
|
+
};
|
|
12
|
+
cacheIdentifier: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can create a new entity */
|
|
17
|
+
canCreate: {
|
|
18
|
+
type: PropType<() => boolean | Promise<boolean>>;
|
|
19
|
+
required: false;
|
|
20
|
+
default: () => Promise<boolean>;
|
|
21
|
+
};
|
|
22
|
+
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can delete a given entity */
|
|
23
|
+
canDelete: {
|
|
24
|
+
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
25
|
+
required: false;
|
|
26
|
+
default: () => Promise<boolean>;
|
|
27
|
+
};
|
|
28
|
+
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can edit a given entity */
|
|
29
|
+
canEdit: {
|
|
30
|
+
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
31
|
+
required: false;
|
|
32
|
+
default: () => Promise<boolean>;
|
|
33
|
+
};
|
|
34
|
+
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can retrieve (view details) a given entity */
|
|
35
|
+
canRetrieve: {
|
|
36
|
+
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
37
|
+
required: false;
|
|
38
|
+
default: () => Promise<boolean>;
|
|
39
|
+
};
|
|
40
|
+
/** default to false, setting to true will teleport the toolbar button to the destination in the consuming app */
|
|
41
|
+
useActionOutside: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
46
|
+
error: (error: AxiosError<unknown, any>) => any;
|
|
47
|
+
"click:learn-more": () => any;
|
|
48
|
+
"copy:success": (payload: CopyEventPayload) => any;
|
|
49
|
+
"copy:error": (payload: CopyEventPayload) => any;
|
|
50
|
+
"delete:success": (route: EntityRow) => any;
|
|
51
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
53
|
+
config: {
|
|
54
|
+
type: PropType<KonnectVaultListConfig | KongManagerVaultListConfig>;
|
|
55
|
+
required: true;
|
|
56
|
+
validator: (config: KonnectVaultListConfig | KongManagerVaultListConfig) => boolean;
|
|
57
|
+
};
|
|
58
|
+
cacheIdentifier: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can create a new entity */
|
|
63
|
+
canCreate: {
|
|
64
|
+
type: PropType<() => boolean | Promise<boolean>>;
|
|
65
|
+
required: false;
|
|
66
|
+
default: () => Promise<boolean>;
|
|
67
|
+
};
|
|
68
|
+
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can delete a given entity */
|
|
69
|
+
canDelete: {
|
|
70
|
+
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
71
|
+
required: false;
|
|
72
|
+
default: () => Promise<boolean>;
|
|
73
|
+
};
|
|
74
|
+
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can edit a given entity */
|
|
75
|
+
canEdit: {
|
|
76
|
+
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
77
|
+
required: false;
|
|
78
|
+
default: () => Promise<boolean>;
|
|
79
|
+
};
|
|
80
|
+
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can retrieve (view details) a given entity */
|
|
81
|
+
canRetrieve: {
|
|
82
|
+
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
83
|
+
required: false;
|
|
84
|
+
default: () => Promise<boolean>;
|
|
85
|
+
};
|
|
86
|
+
/** default to false, setting to true will teleport the toolbar button to the destination in the consuming app */
|
|
87
|
+
useActionOutside: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
}>> & Readonly<{
|
|
92
|
+
onError?: ((error: AxiosError<unknown, any>) => any) | undefined;
|
|
93
|
+
"onClick:learn-more"?: (() => any) | undefined;
|
|
94
|
+
"onCopy:success"?: ((payload: CopyEventPayload) => any) | undefined;
|
|
95
|
+
"onCopy:error"?: ((payload: CopyEventPayload) => any) | undefined;
|
|
96
|
+
"onDelete:success"?: ((route: EntityRow) => any) | undefined;
|
|
97
|
+
}>, {
|
|
98
|
+
cacheIdentifier: string;
|
|
99
|
+
canCreate: () => boolean | Promise<boolean>;
|
|
100
|
+
canDelete: (row: EntityRow) => boolean | Promise<boolean>;
|
|
101
|
+
canEdit: (row: EntityRow) => boolean | Promise<boolean>;
|
|
102
|
+
canRetrieve: (row: EntityRow) => boolean | Promise<boolean>;
|
|
103
|
+
useActionOutside: boolean;
|
|
104
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
105
|
+
declare const _default: typeof __VLS_export;
|
|
106
|
+
export default _default;
|
|
107
|
+
//# sourceMappingURL=VaultList.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VaultList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/VaultList.vue"],"names":[],"mappings":"AAikBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AA6BvC,OAAO,KAAK,EACV,0BAA0B,EAC1B,sBAAsB,EACtB,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAEjB,OAAO,gDAAgD,CAAA;AA29BvD,QAAA,MAAM,YAAY;IAGhB,oHAAoH;;cAElG,QAAQ,CAAC,sBAAsB,GAAG,0BAA0B,CAAC;;4BAEzD,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;;;;;IAYnF,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;;;;;;;;IAxCjH,oHAAoH;;cAElG,QAAQ,CAAC,sBAAsB,GAAG,0BAA0B,CAAC;;4BAEzD,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;;;;;IAYnF,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;;;;;;;;;qBAtB9E,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;uBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;4EAU3E,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { type KongManagerBaseFormConfig, type KonnectBaseFormConfig } from '@kong-ui-public/entities-shared';
|
|
2
|
+
import type { EntityRow as VaultEntity } from '../types';
|
|
3
|
+
import type { SelectItem } from '@kong/kongponents';
|
|
4
|
+
import { type PropType } from 'vue';
|
|
5
|
+
export interface SelectVaultItem extends SelectItem {
|
|
6
|
+
vault: VaultEntity;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
11
|
+
config: {
|
|
12
|
+
type: PropType<KonnectBaseFormConfig | KongManagerBaseFormConfig>;
|
|
13
|
+
required: true;
|
|
14
|
+
validator: (config: KonnectBaseFormConfig | KongManagerBaseFormConfig) => boolean;
|
|
15
|
+
};
|
|
16
|
+
setup: {
|
|
17
|
+
type: PropType<string | false>;
|
|
18
|
+
required: false;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
title: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: false;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
proceedButtonText: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
required: false;
|
|
29
|
+
default: undefined;
|
|
30
|
+
};
|
|
31
|
+
additionalDisabled: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
required: false;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
cancel: () => any;
|
|
38
|
+
proceed: (secretRef: string) => any;
|
|
39
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
config: {
|
|
41
|
+
type: PropType<KonnectBaseFormConfig | KongManagerBaseFormConfig>;
|
|
42
|
+
required: true;
|
|
43
|
+
validator: (config: KonnectBaseFormConfig | KongManagerBaseFormConfig) => boolean;
|
|
44
|
+
};
|
|
45
|
+
setup: {
|
|
46
|
+
type: PropType<string | false>;
|
|
47
|
+
required: false;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
title: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
required: false;
|
|
53
|
+
default: undefined;
|
|
54
|
+
};
|
|
55
|
+
proceedButtonText: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
required: false;
|
|
58
|
+
default: undefined;
|
|
59
|
+
};
|
|
60
|
+
additionalDisabled: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
required: false;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
}>> & Readonly<{
|
|
66
|
+
onCancel?: (() => any) | undefined;
|
|
67
|
+
onProceed?: ((secretRef: string) => any) | undefined;
|
|
68
|
+
}>, {
|
|
69
|
+
title: string;
|
|
70
|
+
setup: string | false;
|
|
71
|
+
proceedButtonText: string;
|
|
72
|
+
additionalDisabled: boolean;
|
|
73
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
74
|
+
'form-prefix'?: (props: {}) => any;
|
|
75
|
+
}>;
|
|
76
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
77
|
+
new (): {
|
|
78
|
+
$slots: S;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=VaultSecretPicker.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VaultSecretPicker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/VaultSecretPicker.vue"],"names":[],"mappings":"AA6bA,OAAO,EAAgC,KAAK,yBAAyB,EAAE,KAAK,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AAC1I,OAAO,KAAK,EAAmC,SAAS,IAAI,WAAW,EAAE,MAAM,UAAU,CAAA;AAGzF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAkC,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAA;AAInE,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,KAAK,EAAE,WAAW,CAAA;CACnB;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;;cAmmBE,QAAQ,CAAC,qBAAqB,GAAG,yBAAyB,CAAC;;4BAEvD,qBAAqB,GAAG,yBAAyB,KAAG,OAAO;;;cAQtD,QAAQ,CAAC,MAAM,GAAG,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cAVjC,QAAQ,CAAC,qBAAqB,GAAG,yBAAyB,CAAC;;4BAEvD,qBAAqB,GAAG,yBAAyB,KAAG,OAAO;;;cAQtD,QAAQ,CAAC,MAAM,GAAG,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAnBjC,CAAC,KAAK,IAAiB,KAAK,GAAG;EAyC/C,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
value: string;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
update: (value: string) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
open: (args_0: string, args_1: (value: string) => void) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
9
|
+
onOpen?: ((args_0: string, args_1: (value: string) => void) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=VaultSecretPickerProvider.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VaultSecretPickerProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/VaultSecretPickerProvider.vue"],"names":[],"mappings":"AAyDA,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAChC,CAAA;AAwED,QAAA,MAAM,YAAY;2CAzEA,MAAM,KAAK,IAAI;;+CAAf,MAAM,KAAK,IAAI;kFA4E/B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;;;;AAG/B,wBAEC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createI18n, i18nTComponent } from '@kong-ui-public/i18n';
|
|
2
|
+
import english from '../locales/en.json';
|
|
3
|
+
interface UseI18nReturn {
|
|
4
|
+
i18n: ReturnType<typeof createI18n<typeof english>>;
|
|
5
|
+
i18nT: ReturnType<typeof i18nTComponent<typeof english>>;
|
|
6
|
+
}
|
|
7
|
+
export default function useI18n(): UseI18nReturn;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=useI18n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../../src/composables/useI18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,OAAO,MAAM,oBAAoB,CAAA;AAExC,UAAU,aAAa;IACrB,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;IACnD,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;CACzD;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,aAAa,CAO/C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import VaultList from './components/VaultList.vue';
|
|
2
|
+
import VaultForm from './components/VaultForm.vue';
|
|
3
|
+
import VaultConfigCard from './components/VaultConfigCard.vue';
|
|
4
|
+
import SecretList from './components/SecretList.vue';
|
|
5
|
+
import SecretForm from './components/SecretForm.vue';
|
|
6
|
+
import VaultSecretPickerProvider from './components/VaultSecretPickerProvider.vue';
|
|
7
|
+
import VaultSecretPicker from './components/VaultSecretPicker.vue';
|
|
8
|
+
import vaultsEndpoints from './vaults-endpoints';
|
|
9
|
+
import secretsEndpoints from './secrets-endpoints';
|
|
10
|
+
export { VaultList, VaultForm, VaultConfigCard, SecretList, SecretForm };
|
|
11
|
+
export { VaultSecretPickerProvider, VaultSecretPicker };
|
|
12
|
+
export { vaultsEndpoints, secretsEndpoints };
|
|
13
|
+
export * from './types';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,eAAe,MAAM,kCAAkC,CAAA;AAC9D,OAAO,UAAU,MAAM,6BAA6B,CAAA;AACpD,OAAO,UAAU,MAAM,6BAA6B,CAAA;AACpD,OAAO,yBAAyB,MAAM,4CAA4C,CAAA;AAClF,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAElE,OAAO,eAAe,MAAM,oBAAoB,CAAA;AAChD,OAAO,gBAAgB,MAAM,qBAAqB,CAAA;AAElD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,CAAA;AACxE,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,CAAA;AAEvD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAA;AAE5C,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
getVault: {
|
|
3
|
+
konnect: string;
|
|
4
|
+
};
|
|
5
|
+
list: {
|
|
6
|
+
konnect: string;
|
|
7
|
+
};
|
|
8
|
+
form: {
|
|
9
|
+
konnect: {
|
|
10
|
+
create: string;
|
|
11
|
+
edit: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=secrets-endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secrets-endpoints.d.ts","sourceRoot":"","sources":["../../src/secrets-endpoints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAGA,wBAaC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { BaseFormConfig, KonnectBaseFormConfig } from '@kong-ui-public/entities-shared';
|
|
2
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
3
|
+
export interface BaseSecretFormConfig extends Omit<BaseFormConfig, 'cancelRoute'> {
|
|
4
|
+
/** Route to return to if canceling create/edit a Secret form */
|
|
5
|
+
cancelRoute: RouteLocationRaw;
|
|
6
|
+
}
|
|
7
|
+
/** Konnect Secret form config */
|
|
8
|
+
export interface KonnectSecretFormConfig extends Omit<KonnectBaseFormConfig, 'cancelRoute'>, BaseSecretFormConfig {
|
|
9
|
+
}
|
|
10
|
+
export interface SecretStateFields {
|
|
11
|
+
key: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}
|
|
14
|
+
export interface SecretState {
|
|
15
|
+
fields: SecretStateFields;
|
|
16
|
+
readonly: boolean;
|
|
17
|
+
errorMessage: string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=secret-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret-form.d.ts","sourceRoot":"","sources":["../../../src/types/secret-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AAC5F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC;IAC/E,gEAAgE;IAChE,WAAW,EAAE,gBAAgB,CAAA;CAC9B;AAED,iCAAiC;AACjC,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,aAAa,CAAC,EAAE,oBAAoB;CAAI;AAErH,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,iBAAiB,CAAA;IACzB,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;CACrB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
2
|
+
import type { KonnectBaseTableConfig } from '@kong-ui-public/entities-shared';
|
|
3
|
+
/** Konnect secret list config */
|
|
4
|
+
export interface KonnectSecretListConfig extends KonnectBaseTableConfig {
|
|
5
|
+
/** Route for creating a secret */
|
|
6
|
+
createRoute: RouteLocationRaw;
|
|
7
|
+
/** A function that returns the route for editing a secret */
|
|
8
|
+
getEditRoute: (id: string) => RouteLocationRaw;
|
|
9
|
+
}
|
|
10
|
+
export interface SecretEntityRow extends Record<string, any> {
|
|
11
|
+
id: string;
|
|
12
|
+
key: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=secret-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret-list.d.ts","sourceRoot":"","sources":["../../../src/types/secret-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAE7E,iCAAiC;AACjC,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,kCAAkC;IAClC,WAAW,EAAE,gBAAgB,CAAA;IAC7B,6DAA6D;IAC7D,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;CAC/C;AAED,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAC1D,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ConfigurationSchemaItem, KongManagerBaseEntityConfig, KonnectBaseEntityConfig } from '@kong-ui-public/entities-shared';
|
|
2
|
+
export interface KonnectVaultEntityConfig extends KonnectBaseEntityConfig {
|
|
3
|
+
}
|
|
4
|
+
export interface KongManagerVaultEntityConfig extends KongManagerBaseEntityConfig {
|
|
5
|
+
}
|
|
6
|
+
export interface VaultConfigurationSchema {
|
|
7
|
+
id: ConfigurationSchemaItem;
|
|
8
|
+
name: ConfigurationSchemaItem;
|
|
9
|
+
created_at: ConfigurationSchemaItem;
|
|
10
|
+
updated_at: ConfigurationSchemaItem;
|
|
11
|
+
config: ConfigurationSchemaItem;
|
|
12
|
+
description: ConfigurationSchemaItem;
|
|
13
|
+
prefix: ConfigurationSchemaItem;
|
|
14
|
+
tags: ConfigurationSchemaItem;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=vault-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault-config.d.ts","sourceRoot":"","sources":["../../../src/types/vault-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAEpI,MAAM,WAAW,wBAAyB,SAAQ,uBAAuB;CAAG;AAE5E,MAAM,WAAW,4BAA6B,SAAQ,2BAA2B;CAAG;AAEpF,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,uBAAuB,CAAA;IAC3B,IAAI,EAAE,uBAAuB,CAAA;IAC7B,UAAU,EAAE,uBAAuB,CAAA;IACnC,UAAU,EAAE,uBAAuB,CAAA;IACnC,MAAM,EAAE,uBAAuB,CAAA;IAC/B,WAAW,EAAE,uBAAuB,CAAA;IACpC,MAAM,EAAE,uBAAuB,CAAA;IAC/B,IAAI,EAAE,uBAAuB,CAAA;CAC9B"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import type { BaseFormConfig, KongManagerBaseFormConfig, KonnectBaseFormConfig } from '@kong-ui-public/entities-shared';
|
|
2
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
3
|
+
export interface BaseVaultFormConfig extends Omit<BaseFormConfig, 'cancelRoute'> {
|
|
4
|
+
/** Route to return to if canceling create/edit a Vault form */
|
|
5
|
+
cancelRoute: RouteLocationRaw;
|
|
6
|
+
/**
|
|
7
|
+
* Show/hide Azure option - mostly for Konnect to pass feature flag value
|
|
8
|
+
* TODO: remove when support for Azure is added
|
|
9
|
+
*/
|
|
10
|
+
azureVaultProviderAvailable: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Show/hide SupportTTL option - mostly for Konnect to pass feature flag value
|
|
13
|
+
* TODO: remove when support for Support TTL is added
|
|
14
|
+
*/
|
|
15
|
+
ttl: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Show/hide approle option and corresponding fields
|
|
18
|
+
* TODO: remove when support for approle option is added
|
|
19
|
+
*/
|
|
20
|
+
hcvAppRoleMethodAvailable?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Show/hide cert option and corresponding fields
|
|
23
|
+
*/
|
|
24
|
+
hcvCertMethodAvailable?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Show/hide jwt option and corresponding fields
|
|
27
|
+
*/
|
|
28
|
+
hcvJwtMethodAvailable?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Show/hide AWS StsEndpointUrl field
|
|
31
|
+
*/
|
|
32
|
+
awsStsEndpointUrlAvailable?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Show/hide Conjur option - mostly for Konnect to pass feature flag value
|
|
35
|
+
* TODO: remove when support for Conjur is added
|
|
36
|
+
*/
|
|
37
|
+
conjurVaultProviderAvailable?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Show/hide Base64 field (added since 3.11)
|
|
40
|
+
*/
|
|
41
|
+
base64FieldAvailable?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/** Konnect Vault form config */
|
|
44
|
+
export interface KonnectVaultFormConfig extends Omit<KonnectBaseFormConfig, 'cancelRoute'>, BaseVaultFormConfig {
|
|
45
|
+
}
|
|
46
|
+
/** Kong Manager Vault form config */
|
|
47
|
+
export interface KongManagerVaultFormConfig extends Omit<KongManagerBaseFormConfig, 'cancelRoute'>, BaseVaultFormConfig {
|
|
48
|
+
}
|
|
49
|
+
export declare enum VaultProviders {
|
|
50
|
+
AWS = "aws",
|
|
51
|
+
GCP = "gcp",
|
|
52
|
+
HCV = "hcv",
|
|
53
|
+
ENV = "env",
|
|
54
|
+
AZURE = "azure",
|
|
55
|
+
KONNECT = "konnect",
|
|
56
|
+
CONJUR = "conjur"
|
|
57
|
+
}
|
|
58
|
+
export declare enum VaultAuthMethods {
|
|
59
|
+
TOKEN = "token",
|
|
60
|
+
K8S = "kubernetes",
|
|
61
|
+
APP_ROLE = "approle",
|
|
62
|
+
CERT = "cert",
|
|
63
|
+
JWT = "jwt"
|
|
64
|
+
}
|
|
65
|
+
export interface ConfigStoreConfig {
|
|
66
|
+
}
|
|
67
|
+
export interface KongVaultConfig {
|
|
68
|
+
prefix: string;
|
|
69
|
+
base64_decode?: boolean;
|
|
70
|
+
}
|
|
71
|
+
export interface AWSVaultConfig {
|
|
72
|
+
region: string;
|
|
73
|
+
endpoint_url?: string;
|
|
74
|
+
assume_role_arn?: string;
|
|
75
|
+
role_session_name: string;
|
|
76
|
+
ttl?: number;
|
|
77
|
+
neg_ttl?: number;
|
|
78
|
+
resurrect_ttl?: number;
|
|
79
|
+
sts_endpoint_url?: string;
|
|
80
|
+
base64_decode?: boolean;
|
|
81
|
+
}
|
|
82
|
+
export interface GCPVaultConfig {
|
|
83
|
+
project_id: string;
|
|
84
|
+
ttl?: number;
|
|
85
|
+
neg_ttl?: number;
|
|
86
|
+
resurrect_ttl?: number;
|
|
87
|
+
base64_decode?: boolean;
|
|
88
|
+
}
|
|
89
|
+
export interface HCVVaultConfig {
|
|
90
|
+
protocol: string;
|
|
91
|
+
host: string;
|
|
92
|
+
port: number;
|
|
93
|
+
mount: string;
|
|
94
|
+
kv: string;
|
|
95
|
+
namespace: string;
|
|
96
|
+
auth_method: string;
|
|
97
|
+
token?: string;
|
|
98
|
+
kube_role?: string;
|
|
99
|
+
kube_auth_path?: string;
|
|
100
|
+
kube_api_token_file?: string;
|
|
101
|
+
approle_auth_path?: string;
|
|
102
|
+
approle_role_id?: string;
|
|
103
|
+
approle_secret_id?: string;
|
|
104
|
+
approle_secret_id_file?: string;
|
|
105
|
+
approle_response_wrapping?: boolean;
|
|
106
|
+
ttl?: number;
|
|
107
|
+
neg_ttl?: number;
|
|
108
|
+
resurrect_ttl?: number;
|
|
109
|
+
base64_decode?: boolean;
|
|
110
|
+
cert_auth_role_name?: string;
|
|
111
|
+
cert_auth_cert?: string;
|
|
112
|
+
cert_auth_cert_key?: string;
|
|
113
|
+
oauth2_audiences?: string;
|
|
114
|
+
oauth2_client_id?: string;
|
|
115
|
+
oauth2_client_secret?: string;
|
|
116
|
+
jwt_role?: string;
|
|
117
|
+
oauth2_token_endpoint?: string;
|
|
118
|
+
}
|
|
119
|
+
export interface AzureVaultConfig {
|
|
120
|
+
location: string;
|
|
121
|
+
vault_uri: string;
|
|
122
|
+
credentials_prefix: string;
|
|
123
|
+
type: string;
|
|
124
|
+
client_id?: string;
|
|
125
|
+
tenant_id?: string;
|
|
126
|
+
ttl?: number;
|
|
127
|
+
neg_ttl?: number;
|
|
128
|
+
resurrect_ttl?: number;
|
|
129
|
+
base64_decode?: boolean;
|
|
130
|
+
}
|
|
131
|
+
export interface ConjurVaultConfig {
|
|
132
|
+
endpoint_url: string;
|
|
133
|
+
auth_method: 'api_key';
|
|
134
|
+
login?: string;
|
|
135
|
+
account?: string;
|
|
136
|
+
api_key?: string;
|
|
137
|
+
ttl?: number;
|
|
138
|
+
neg_ttl?: number;
|
|
139
|
+
resurrect_ttl?: number;
|
|
140
|
+
base64_decode?: boolean;
|
|
141
|
+
}
|
|
142
|
+
export interface HCVVaultConfigPayload extends Omit<HCVVaultConfig, 'namespace' | 'token'> {
|
|
143
|
+
namespace: string | null;
|
|
144
|
+
token?: string | null;
|
|
145
|
+
}
|
|
146
|
+
export interface AzureVaultConfigPayload extends Omit<AzureVaultConfig, 'client_id' | 'tenant_id'> {
|
|
147
|
+
client_id?: string | null;
|
|
148
|
+
tenant_id?: string | null;
|
|
149
|
+
}
|
|
150
|
+
export interface AWSVaultConfigPayload extends Omit<AWSVaultConfig, 'endpoint_url' | 'assume_role_arn'> {
|
|
151
|
+
endpoint_url?: string | null;
|
|
152
|
+
assume_role_arn?: string | null;
|
|
153
|
+
}
|
|
154
|
+
export interface VaultPayload {
|
|
155
|
+
name: VaultProviders;
|
|
156
|
+
prefix: string;
|
|
157
|
+
description: string | null;
|
|
158
|
+
tags: string[];
|
|
159
|
+
config: ConfigStoreConfig | KongVaultConfig | GCPVaultConfig | HCVVaultConfigPayload | AzureVaultConfigPayload | AWSVaultConfigPayload;
|
|
160
|
+
}
|
|
161
|
+
export interface VaultStateFields {
|
|
162
|
+
prefix: string;
|
|
163
|
+
description: string;
|
|
164
|
+
tags: string;
|
|
165
|
+
}
|
|
166
|
+
export interface VaultState {
|
|
167
|
+
fields: VaultStateFields;
|
|
168
|
+
isReadonly: boolean;
|
|
169
|
+
errorMessage: string;
|
|
170
|
+
}
|
|
171
|
+
export interface KonnectConfigStore {
|
|
172
|
+
id: string;
|
|
173
|
+
}
|
|
174
|
+
//# sourceMappingURL=vault-form.d.ts.map
|