@serve.zone/interfaces 1.0.5 → 1.0.7

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.
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '1.0.5',
6
+ version: '1.0.7',
7
7
  description: 'interfaces for working with containers'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHdDQUF3QztDQUN0RCxDQUFBIn0=
@@ -0,0 +1,7 @@
1
+ export interface IEnvBundle {
2
+ environment: string;
3
+ timeSensitive: boolean;
4
+ configKeyValueObject: {
5
+ [key: string]: string;
6
+ };
7
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvZGF0YS9lbnYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
@@ -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
8
  export * from './version.js';
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsY0FBYyxDQUFDIn0=
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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjcmV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvZGF0YS9zZWNyZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "private": false,
5
5
  "description": "interfaces for working with containers",
6
6
  "main": "dist_ts/index.js",
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '1.0.5',
6
+ version: '1.0.7',
7
7
  description: 'interfaces for working with containers'
8
8
  }
package/ts/data/env.ts ADDED
@@ -0,0 +1,6 @@
1
+
2
+ export interface IEnvBundle {
3
+ environment: string;
4
+ timeSensitive: boolean;
5
+ configKeyValueObject: {[key: string]: string};
6
+ }
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
+ }