@serve.zone/interfaces 1.0.5 → 1.0.8
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_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/data/env.d.ts +7 -0
- package/dist_ts/data/env.js +2 -0
- package/dist_ts/data/index.d.ts +2 -0
- package/dist_ts/data/index.js +3 -1
- package/dist_ts/data/secret.d.ts +70 -0
- package/dist_ts/data/secret.js +2 -0
- package/dist_ts/requests/secret.d.ts +68 -0
- package/dist_ts/requests/secret.js +3 -0
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/data/env.ts +6 -0
- package/ts/data/index.ts +3 -1
- package/ts/data/secret.ts +78 -0
- package/ts/requests/secret.ts +93 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@serve.zone/interfaces',
|
|
6
|
-
version: '1.0.
|
|
6
|
+
version: '1.0.8',
|
|
7
7
|
description: 'interfaces for working with containers'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHdDQUF3QztDQUN0RCxDQUFBIn0=
|
package/dist_ts/data/index.d.ts
CHANGED
package/dist_ts/data/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './cluster.js';
|
|
2
2
|
export * from './config.js';
|
|
3
|
+
export * from './env.js';
|
|
3
4
|
export * from './event.js';
|
|
5
|
+
export * from './secret.js';
|
|
4
6
|
export * from './status.js';
|
|
5
7
|
export * from './traffic.js';
|
|
6
8
|
export * from './version.js';
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsYUFBYSxDQUFBO0FBQzNCLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsY0FBYyxDQUFDIn0=
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export interface ISecretGroup {
|
|
2
|
+
/**
|
|
3
|
+
* the insatnce id. This should be a random id, except for default
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
data: {
|
|
7
|
+
/**
|
|
8
|
+
* the key of the secretgroup like CI_RUNNER_TOKEN
|
|
9
|
+
*/
|
|
10
|
+
key: string;
|
|
11
|
+
/**
|
|
12
|
+
* the priority of the secretgroup
|
|
13
|
+
* will be used to determine which secretgroup will be used
|
|
14
|
+
* when there are multiple secretgroups with the same key
|
|
15
|
+
*/
|
|
16
|
+
priority?: number;
|
|
17
|
+
/**
|
|
18
|
+
* any tags that can be used to filter the secretgroup
|
|
19
|
+
* can be used for putting secrets into projects
|
|
20
|
+
*/
|
|
21
|
+
tags: {
|
|
22
|
+
key: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}[];
|
|
25
|
+
/**
|
|
26
|
+
* the values for this secretGroup
|
|
27
|
+
*/
|
|
28
|
+
environments: {
|
|
29
|
+
[key: string]: {
|
|
30
|
+
value: string;
|
|
31
|
+
/**
|
|
32
|
+
* can be used to update the value
|
|
33
|
+
*/
|
|
34
|
+
updateToken?: string;
|
|
35
|
+
/**
|
|
36
|
+
* the linux timestamp of the last update
|
|
37
|
+
*/
|
|
38
|
+
lastUpdated: number;
|
|
39
|
+
history: {
|
|
40
|
+
timestamp: string;
|
|
41
|
+
value: string;
|
|
42
|
+
}[];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export interface ISecretBundle {
|
|
48
|
+
id: string;
|
|
49
|
+
data: {
|
|
50
|
+
purpose: string;
|
|
51
|
+
/**
|
|
52
|
+
* You can add specific secret groups using this
|
|
53
|
+
*/
|
|
54
|
+
includedSecretGroupIds: string[];
|
|
55
|
+
/**
|
|
56
|
+
* You can add specific tags using this
|
|
57
|
+
*/
|
|
58
|
+
includedTags: {
|
|
59
|
+
key: string;
|
|
60
|
+
value: string;
|
|
61
|
+
}[];
|
|
62
|
+
/**
|
|
63
|
+
* authrozations select a specific environment of a config bundle
|
|
64
|
+
*/
|
|
65
|
+
authorizations: Array<{
|
|
66
|
+
secretAccessKey: string;
|
|
67
|
+
environment: string;
|
|
68
|
+
}>;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
import * as data from '../data/index.js';
|
|
3
|
+
export interface IReq_GetEnvBundle extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetEnvBundle> {
|
|
4
|
+
method: 'getEnvBundle';
|
|
5
|
+
request: {
|
|
6
|
+
authorization: string;
|
|
7
|
+
/**
|
|
8
|
+
* specify this if you want to get a warning, if the envBundle is for an unexpected environment
|
|
9
|
+
*/
|
|
10
|
+
environment?: string;
|
|
11
|
+
};
|
|
12
|
+
response: {
|
|
13
|
+
envBundle: data.IEnvBundle;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface IReq_Admin_LoginWithUsernameAndPassword extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Admin_LoginWithUsernameAndPassword> {
|
|
17
|
+
method: 'adminLoginWithUsernameAndPassword';
|
|
18
|
+
request: {
|
|
19
|
+
username: string;
|
|
20
|
+
password: string;
|
|
21
|
+
};
|
|
22
|
+
response: {
|
|
23
|
+
jwt: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface IReq_Admin_GetConfigBundlesAndSecretGroups extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Admin_GetConfigBundlesAndSecretGroups> {
|
|
27
|
+
method: 'adminGetConfigBundlesAndSecretGroups';
|
|
28
|
+
request: {
|
|
29
|
+
jwt: string;
|
|
30
|
+
};
|
|
31
|
+
response: {
|
|
32
|
+
secretBundles: data.ISecretBundle[];
|
|
33
|
+
secretGroups: data.ISecretGroup[];
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export interface IReq_Admin_CreateConfigBundlesAndSecretGroups extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Admin_CreateConfigBundlesAndSecretGroups> {
|
|
37
|
+
method: 'adminCreateConfigBundlesAndSecretGroups';
|
|
38
|
+
request: {
|
|
39
|
+
jwt: string;
|
|
40
|
+
secretBundles: data.ISecretBundle[];
|
|
41
|
+
secretGroups: data.ISecretGroup[];
|
|
42
|
+
};
|
|
43
|
+
response: {
|
|
44
|
+
ok: boolean;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export interface IReq_Admin_UpdateConfigBundlesAndSecretGroups extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Admin_UpdateConfigBundlesAndSecretGroups> {
|
|
48
|
+
method: 'adminUpdateConfigBundlesAndSecretGroups';
|
|
49
|
+
request: {
|
|
50
|
+
jwt: string;
|
|
51
|
+
configBundles: data.ISecretBundle[];
|
|
52
|
+
secretGroups: data.ISecretGroup[];
|
|
53
|
+
};
|
|
54
|
+
response: {
|
|
55
|
+
ok: boolean;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export interface IReq_Admin_DeleteConfigBundlesAndSecretGroups extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Admin_DeleteConfigBundlesAndSecretGroups> {
|
|
59
|
+
method: 'adminDeleteConfigBundlesAndSecretGroups';
|
|
60
|
+
request: {
|
|
61
|
+
jwt: string;
|
|
62
|
+
secretBundleIds: string[];
|
|
63
|
+
secretGroupIds: string[];
|
|
64
|
+
};
|
|
65
|
+
response: {
|
|
66
|
+
ok: boolean;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
import * as data from '../data/index.js';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjcmV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcmVxdWVzdHMvc2VjcmV0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sS0FBSyxJQUFJLE1BQU0sa0JBQWtCLENBQUMifQ==
|
package/package.json
CHANGED
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/data/env.ts
ADDED
package/ts/data/index.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './cluster.js';
|
|
2
2
|
export * from './config.js';
|
|
3
|
+
export * from './env.js';
|
|
3
4
|
export * from './event.js';
|
|
5
|
+
export * from './secret.js'
|
|
4
6
|
export * from './status.js';
|
|
5
7
|
export * from './traffic.js';
|
|
6
|
-
export * from './version.js';
|
|
8
|
+
export * from './version.js';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export interface ISecretGroup {
|
|
2
|
+
/**
|
|
3
|
+
* the insatnce id. This should be a random id, except for default
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
|
|
7
|
+
data: {
|
|
8
|
+
/**
|
|
9
|
+
* the key of the secretgroup like CI_RUNNER_TOKEN
|
|
10
|
+
*/
|
|
11
|
+
key: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* the priority of the secretgroup
|
|
15
|
+
* will be used to determine which secretgroup will be used
|
|
16
|
+
* when there are multiple secretgroups with the same key
|
|
17
|
+
*/
|
|
18
|
+
priority?: number;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* any tags that can be used to filter the secretgroup
|
|
22
|
+
* can be used for putting secrets into projects
|
|
23
|
+
*/
|
|
24
|
+
tags: {
|
|
25
|
+
key: string;
|
|
26
|
+
value: string;
|
|
27
|
+
}[];
|
|
28
|
+
/**
|
|
29
|
+
* the values for this secretGroup
|
|
30
|
+
*/
|
|
31
|
+
environments: {
|
|
32
|
+
[key: string]: {
|
|
33
|
+
value: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* can be used to update the value
|
|
37
|
+
*/
|
|
38
|
+
updateToken?: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* the linux timestamp of the last update
|
|
42
|
+
*/
|
|
43
|
+
lastUpdated: number;
|
|
44
|
+
history: {
|
|
45
|
+
timestamp: string;
|
|
46
|
+
value: string;
|
|
47
|
+
}[];
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface ISecretBundle {
|
|
54
|
+
id: string;
|
|
55
|
+
data: {
|
|
56
|
+
purpose: string;
|
|
57
|
+
/**
|
|
58
|
+
* You can add specific secret groups using this
|
|
59
|
+
*/
|
|
60
|
+
includedSecretGroupIds: string[];
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* You can add specific tags using this
|
|
64
|
+
*/
|
|
65
|
+
includedTags: {
|
|
66
|
+
key: string;
|
|
67
|
+
value: string;
|
|
68
|
+
}[];
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* authrozations select a specific environment of a config bundle
|
|
72
|
+
*/
|
|
73
|
+
authorizations: Array<{
|
|
74
|
+
secretAccessKey: string;
|
|
75
|
+
environment: string;
|
|
76
|
+
}>;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
import * as data from '../data/index.js';
|
|
3
|
+
|
|
4
|
+
export interface IReq_GetEnvBundle extends plugins.typedrequestInterfaces.implementsTR<
|
|
5
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
6
|
+
IReq_GetEnvBundle
|
|
7
|
+
> {
|
|
8
|
+
method: 'getEnvBundle';
|
|
9
|
+
request: {
|
|
10
|
+
authorization: string;
|
|
11
|
+
/**
|
|
12
|
+
* specify this if you want to get a warning, if the envBundle is for an unexpected environment
|
|
13
|
+
*/
|
|
14
|
+
environment?: string;
|
|
15
|
+
};
|
|
16
|
+
response: {
|
|
17
|
+
envBundle: data.IEnvBundle;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface IReq_Admin_LoginWithUsernameAndPassword extends plugins.typedrequestInterfaces.implementsTR<
|
|
22
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
23
|
+
IReq_Admin_LoginWithUsernameAndPassword
|
|
24
|
+
> {
|
|
25
|
+
method: 'adminLoginWithUsernameAndPassword';
|
|
26
|
+
request: {
|
|
27
|
+
username: string;
|
|
28
|
+
password: string;
|
|
29
|
+
};
|
|
30
|
+
response: {
|
|
31
|
+
jwt: string;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface IReq_Admin_GetConfigBundlesAndSecretGroups extends plugins.typedrequestInterfaces.implementsTR<
|
|
36
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
37
|
+
IReq_Admin_GetConfigBundlesAndSecretGroups
|
|
38
|
+
> {
|
|
39
|
+
method: 'adminGetConfigBundlesAndSecretGroups';
|
|
40
|
+
request: {
|
|
41
|
+
jwt: string;
|
|
42
|
+
};
|
|
43
|
+
response: {
|
|
44
|
+
secretBundles: data.ISecretBundle[];
|
|
45
|
+
secretGroups: data.ISecretGroup[];
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface IReq_Admin_CreateConfigBundlesAndSecretGroups extends plugins.typedrequestInterfaces.implementsTR<
|
|
51
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
52
|
+
IReq_Admin_CreateConfigBundlesAndSecretGroups
|
|
53
|
+
> {
|
|
54
|
+
method: 'adminCreateConfigBundlesAndSecretGroups';
|
|
55
|
+
request: {
|
|
56
|
+
jwt: string;
|
|
57
|
+
secretBundles: data.ISecretBundle[];
|
|
58
|
+
secretGroups: data.ISecretGroup[];
|
|
59
|
+
};
|
|
60
|
+
response: {
|
|
61
|
+
ok: boolean;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface IReq_Admin_UpdateConfigBundlesAndSecretGroups extends plugins.typedrequestInterfaces.implementsTR<
|
|
66
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
67
|
+
IReq_Admin_UpdateConfigBundlesAndSecretGroups
|
|
68
|
+
> {
|
|
69
|
+
method: 'adminUpdateConfigBundlesAndSecretGroups';
|
|
70
|
+
request: {
|
|
71
|
+
jwt: string;
|
|
72
|
+
configBundles: data.ISecretBundle[];
|
|
73
|
+
secretGroups: data.ISecretGroup[];
|
|
74
|
+
};
|
|
75
|
+
response: {
|
|
76
|
+
ok: boolean;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface IReq_Admin_DeleteConfigBundlesAndSecretGroups extends plugins.typedrequestInterfaces.implementsTR<
|
|
81
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
82
|
+
IReq_Admin_DeleteConfigBundlesAndSecretGroups
|
|
83
|
+
> {
|
|
84
|
+
method: 'adminDeleteConfigBundlesAndSecretGroups';
|
|
85
|
+
request: {
|
|
86
|
+
jwt: string;
|
|
87
|
+
secretBundleIds: string[];
|
|
88
|
+
secretGroupIds: string[];
|
|
89
|
+
};
|
|
90
|
+
response: {
|
|
91
|
+
ok: boolean;
|
|
92
|
+
};
|
|
93
|
+
}
|