@serve.zone/interfaces 1.0.62 → 1.0.65
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/index.d.ts +2 -1
- package/dist_ts/data/index.js +3 -2
- package/dist_ts/data/secretbundle.d.ts +37 -0
- package/dist_ts/data/secretbundle.js +2 -0
- package/dist_ts/data/secretgroup.d.ts +48 -0
- package/dist_ts/data/secretgroup.js +2 -0
- package/dist_ts/data/service.d.ts +7 -4
- package/dist_ts/requests/image.d.ts +3 -0
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/data/index.ts +2 -1
- package/ts/data/secretbundle.ts +42 -0
- package/ts/data/{secret.ts → secretgroup.ts} +0 -29
- package/ts/data/service.ts +5 -2
- package/ts/requests/image.ts +3 -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.65',
|
|
7
7
|
description: 'interfaces for working with containers'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHdDQUF3QztDQUN0RCxDQUFBIn0=
|
package/dist_ts/data/index.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ export * from './docker.js';
|
|
|
7
7
|
export * from './env.js';
|
|
8
8
|
export * from './event.js';
|
|
9
9
|
export * from './image.js';
|
|
10
|
-
export * from './
|
|
10
|
+
export * from './secretbundle.js';
|
|
11
|
+
export * from './secretgroup.js';
|
|
11
12
|
export * from './server.js';
|
|
12
13
|
export * from './service.js';
|
|
13
14
|
export * from './status.js';
|
package/dist_ts/data/index.js
CHANGED
|
@@ -7,11 +7,12 @@ export * from './docker.js';
|
|
|
7
7
|
export * from './env.js';
|
|
8
8
|
export * from './event.js';
|
|
9
9
|
export * from './image.js';
|
|
10
|
-
export * from './
|
|
10
|
+
export * from './secretbundle.js';
|
|
11
|
+
export * from './secretgroup.js';
|
|
11
12
|
export * from './server.js';
|
|
12
13
|
export * from './service.js';
|
|
13
14
|
export * from './status.js';
|
|
14
15
|
export * from './traffic.js';
|
|
15
16
|
export * from './user.js';
|
|
16
17
|
export * from './version.js';
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxrQkFBa0IsQ0FBQTtBQUNoQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLGNBQWMsQ0FBQyJ9
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface ISecretBundle {
|
|
2
|
+
id: string;
|
|
3
|
+
data: {
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
/**
|
|
7
|
+
* determines if the secret is a service or an external secret
|
|
8
|
+
* if external secret additional checks are put in place to protect the secret
|
|
9
|
+
*/
|
|
10
|
+
type: 'service' | 'npmci' | 'gitzone' | 'external';
|
|
11
|
+
/**
|
|
12
|
+
* You can add specific secret groups using this
|
|
13
|
+
*/
|
|
14
|
+
includedSecretGroupIds: string[];
|
|
15
|
+
/**
|
|
16
|
+
* You can add specific tags using this
|
|
17
|
+
*/
|
|
18
|
+
includedTags: {
|
|
19
|
+
key: string;
|
|
20
|
+
value?: string;
|
|
21
|
+
}[];
|
|
22
|
+
/**
|
|
23
|
+
* add images
|
|
24
|
+
*/
|
|
25
|
+
includedImages: {
|
|
26
|
+
imageId: string;
|
|
27
|
+
permissions: ('read' | 'write')[];
|
|
28
|
+
}[];
|
|
29
|
+
/**
|
|
30
|
+
* authrozations select a specific environment of a config bundle
|
|
31
|
+
*/
|
|
32
|
+
authorizations: Array<{
|
|
33
|
+
secretAccessKey: string;
|
|
34
|
+
environment: string;
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
/**
|
|
10
|
+
* the key of the secretgroup like CI_RUNNER_TOKEN
|
|
11
|
+
*/
|
|
12
|
+
key: string;
|
|
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
|
+
* any tags that can be used to filter the secretgroup
|
|
21
|
+
* can be used for putting secrets into projects
|
|
22
|
+
*/
|
|
23
|
+
tags: {
|
|
24
|
+
key: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}[];
|
|
27
|
+
/**
|
|
28
|
+
* the values for this secretGroup
|
|
29
|
+
*/
|
|
30
|
+
environments: {
|
|
31
|
+
[key: string]: {
|
|
32
|
+
value: string;
|
|
33
|
+
/**
|
|
34
|
+
* can be used to update the value
|
|
35
|
+
*/
|
|
36
|
+
updateToken?: string;
|
|
37
|
+
/**
|
|
38
|
+
* the linux timestamp of the last update
|
|
39
|
+
*/
|
|
40
|
+
lastUpdated: number;
|
|
41
|
+
history: {
|
|
42
|
+
timestamp: string;
|
|
43
|
+
value: string;
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type { IServiceRessources } from "./docker.js";
|
|
2
2
|
export interface IService {
|
|
3
3
|
name: string;
|
|
4
|
-
|
|
4
|
+
imageId: string;
|
|
5
|
+
environment: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
secretBundleId: string;
|
|
9
|
+
scaleFactor: number;
|
|
10
|
+
balancingStrategy: 'round-robin' | 'least-connections';
|
|
5
11
|
ports: {
|
|
6
12
|
web: number;
|
|
7
13
|
custom?: {
|
|
@@ -10,9 +16,6 @@ export interface IService {
|
|
|
10
16
|
};
|
|
11
17
|
resources?: IServiceRessources;
|
|
12
18
|
domains: string[];
|
|
13
|
-
secrets: {
|
|
14
|
-
[key: string]: string;
|
|
15
|
-
};
|
|
16
19
|
deploymentIds: string[];
|
|
17
20
|
deploymentDirectiveIds: string[];
|
|
18
21
|
}
|
|
@@ -9,6 +9,9 @@ export interface IRequest_GetAllImages extends plugins.typedrequestInterfaces.im
|
|
|
9
9
|
images: IImage[];
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* get all kinds of image metadata
|
|
14
|
+
*/
|
|
12
15
|
export interface IRequest_GetImageMetadata extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_GetImageMetadata> {
|
|
13
16
|
method: 'getImageMetadata';
|
|
14
17
|
request: {
|
package/package.json
CHANGED
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/data/index.ts
CHANGED
|
@@ -7,7 +7,8 @@ export * from './docker.js';
|
|
|
7
7
|
export * from './env.js';
|
|
8
8
|
export * from './event.js';
|
|
9
9
|
export * from './image.js';
|
|
10
|
-
export * from './
|
|
10
|
+
export * from './secretbundle.js';
|
|
11
|
+
export * from './secretgroup.js'
|
|
11
12
|
export * from './server.js';
|
|
12
13
|
export * from './service.js';
|
|
13
14
|
export * from './status.js';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface ISecretBundle {
|
|
2
|
+
id: string;
|
|
3
|
+
data: {
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* determines if the secret is a service or an external secret
|
|
9
|
+
* if external secret additional checks are put in place to protect the secret
|
|
10
|
+
*/
|
|
11
|
+
type: 'service' | 'npmci' | 'gitzone' | 'external';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* You can add specific secret groups using this
|
|
15
|
+
*/
|
|
16
|
+
includedSecretGroupIds: string[];
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* You can add specific tags using this
|
|
20
|
+
*/
|
|
21
|
+
includedTags: {
|
|
22
|
+
key: string;
|
|
23
|
+
value?: string;
|
|
24
|
+
}[];
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* add images
|
|
28
|
+
*/
|
|
29
|
+
includedImages: {
|
|
30
|
+
imageId: string;
|
|
31
|
+
permissions: ('read' | 'write')[];
|
|
32
|
+
}[];
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* authrozations select a specific environment of a config bundle
|
|
36
|
+
*/
|
|
37
|
+
authorizations: Array<{
|
|
38
|
+
secretAccessKey: string;
|
|
39
|
+
environment: string;
|
|
40
|
+
}>;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -52,32 +52,3 @@ export interface ISecretGroup {
|
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
export interface ISecretBundle {
|
|
57
|
-
id: string;
|
|
58
|
-
data: {
|
|
59
|
-
name: string;
|
|
60
|
-
description: string;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* You can add specific secret groups using this
|
|
64
|
-
*/
|
|
65
|
-
includedSecretGroupIds: string[];
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* You can add specific tags using this
|
|
69
|
-
*/
|
|
70
|
-
includedTags: {
|
|
71
|
-
key: string;
|
|
72
|
-
value: string;
|
|
73
|
-
}[];
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* authrozations select a specific environment of a config bundle
|
|
77
|
-
*/
|
|
78
|
-
authorizations: Array<{
|
|
79
|
-
secretAccessKey: string;
|
|
80
|
-
environment: string;
|
|
81
|
-
}>;
|
|
82
|
-
};
|
|
83
|
-
}
|
package/ts/data/service.ts
CHANGED
|
@@ -2,14 +2,17 @@ import type { IServiceRessources } from "./docker.js";
|
|
|
2
2
|
|
|
3
3
|
export interface IService {
|
|
4
4
|
name: string;
|
|
5
|
-
|
|
5
|
+
imageId: string;
|
|
6
|
+
environment: {[key: string]: string};
|
|
7
|
+
secretBundleId: string;
|
|
8
|
+
scaleFactor: number;
|
|
9
|
+
balancingStrategy: 'round-robin' | 'least-connections';
|
|
6
10
|
ports: {
|
|
7
11
|
web: number;
|
|
8
12
|
custom?: { [domain: string]: string };
|
|
9
13
|
};
|
|
10
14
|
resources?: IServiceRessources;
|
|
11
15
|
domains: string[];
|
|
12
|
-
secrets: { [key: string]: string };
|
|
13
16
|
deploymentIds: string[];
|
|
14
17
|
deploymentDirectiveIds: string[];
|
|
15
18
|
}
|
package/ts/requests/image.ts
CHANGED
|
@@ -15,6 +15,9 @@ export interface IRequest_GetAllImages extends plugins.typedrequestInterfaces.im
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* get all kinds of image metadata
|
|
20
|
+
*/
|
|
18
21
|
export interface IRequest_GetImageMetadata extends plugins.typedrequestInterfaces.implementsTR<
|
|
19
22
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
20
23
|
IRequest_GetImageMetadata
|