@serve.zone/interfaces 1.0.61 → 1.0.64

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.61',
6
+ version: '1.0.64',
7
7
  description: 'interfaces for working with containers'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHdDQUF3QztDQUN0RCxDQUFBIn0=
@@ -4,7 +4,7 @@ export interface IImage {
4
4
  name: string;
5
5
  description: string;
6
6
  versions: Array<{
7
- version: string;
7
+ versionString: string;
8
8
  storagePath?: string;
9
9
  size: number;
10
10
  createdAt: number;
@@ -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 './secret.js';
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';
@@ -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 './secret.js';
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
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O0FBQzNCLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxrQkFBa0IsQ0FBQTtBQUNoQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLGNBQWMsQ0FBQyJ9
@@ -0,0 +1,30 @@
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' | '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
+ * authrozations select a specific environment of a config bundle
24
+ */
25
+ authorizations: Array<{
26
+ secretAccessKey: string;
27
+ environment: string;
28
+ }>;
29
+ };
30
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjcmV0YnVuZGxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvZGF0YS9zZWNyZXRidW5kbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjcmV0Z3JvdXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL3NlY3JldGdyb3VwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -1,7 +1,12 @@
1
1
  import type { IServiceRessources } from "./docker.js";
2
2
  export interface IService {
3
3
  name: string;
4
- image: string;
4
+ imageId: string;
5
+ scaleFactor: number;
6
+ balancingStrategy: 'round-robin' | 'least-connections';
7
+ secrets: {
8
+ [key: string]: string;
9
+ };
5
10
  ports: {
6
11
  web: number;
7
12
  custom?: {
@@ -10,9 +15,6 @@ export interface IService {
10
15
  };
11
16
  resources?: IServiceRessources;
12
17
  domains: string[];
13
- secrets: {
14
- [key: string]: string;
15
- };
16
18
  deploymentIds: string[];
17
19
  deploymentDirectiveIds: string[];
18
20
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
1
  import * as plugins from '../plugins.js';
3
2
  import type { IImage } from '../data/index.js';
4
3
  export interface IRequest_GetAllImages extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_GetAllImages> {
@@ -10,6 +9,9 @@ export interface IRequest_GetAllImages extends plugins.typedrequestInterfaces.im
10
9
  images: IImage[];
11
10
  };
12
11
  }
12
+ /**
13
+ * get all kinds of image metadata
14
+ */
13
15
  export interface IRequest_GetImageMetadata extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_GetImageMetadata> {
14
16
  method: 'getImageMetadata';
15
17
  request: {
@@ -35,10 +37,9 @@ export interface IRequest_PushImageVersion extends plugins.typedrequestInterface
35
37
  method: 'pushImageVersion';
36
38
  request: {
37
39
  jwt: string;
38
- name: string;
39
- version: string;
40
- imageStream?: plugins.typedrequestInterfaces.IVirtualStream;
41
- chunk: Buffer;
40
+ imageId: string;
41
+ versionString: string;
42
+ imageStream: plugins.typedrequestInterfaces.IVirtualStream;
42
43
  };
43
44
  response: {};
44
45
  }
@@ -46,8 +47,8 @@ export interface IRequest_PullImageVersion extends plugins.typedrequestInterface
46
47
  method: 'pullImageVersion';
47
48
  request: {
48
49
  jwt: string;
49
- name: string;
50
- version: string;
50
+ imageId: string;
51
+ versionString: string;
51
52
  };
52
53
  response: {
53
54
  imageStream: plugins.typedrequestInterfaces.IVirtualStream;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "1.0.61",
3
+ "version": "1.0.64",
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.61',
6
+ version: '1.0.64',
7
7
  description: 'interfaces for working with containers'
8
8
  }
package/ts/data/image.ts CHANGED
@@ -6,7 +6,7 @@ export interface IImage {
6
6
  name: string;
7
7
  description: string;
8
8
  versions: Array<{
9
- version: string;
9
+ versionString: string;
10
10
  storagePath?: string;
11
11
  size: number;
12
12
  createdAt: number;
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 './secret.js'
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,34 @@
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' | '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
+ * authrozations select a specific environment of a config bundle
28
+ */
29
+ authorizations: Array<{
30
+ secretAccessKey: string;
31
+ environment: string;
32
+ }>;
33
+ };
34
+ }
@@ -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
- }
@@ -2,14 +2,16 @@ import type { IServiceRessources } from "./docker.js";
2
2
 
3
3
  export interface IService {
4
4
  name: string;
5
- image: string;
5
+ imageId: string;
6
+ scaleFactor: number;
7
+ balancingStrategy: 'round-robin' | 'least-connections';
8
+ secrets: { [key: string]: string };
6
9
  ports: {
7
10
  web: number;
8
11
  custom?: { [domain: string]: string };
9
12
  };
10
13
  resources?: IServiceRessources;
11
14
  domains: string[];
12
- secrets: { [key: string]: string };
13
15
  deploymentIds: string[];
14
16
  deploymentDirectiveIds: string[];
15
17
  }
@@ -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
@@ -52,10 +55,9 @@ export interface IRequest_PushImageVersion extends plugins.typedrequestInterface
52
55
  method: 'pushImageVersion';
53
56
  request: {
54
57
  jwt: string;
55
- name: string;
56
- version: string;
57
- imageStream?: plugins.typedrequestInterfaces.IVirtualStream;
58
- chunk: Buffer;
58
+ imageId: string;
59
+ versionString: string;
60
+ imageStream: plugins.typedrequestInterfaces.IVirtualStream;
59
61
  };
60
62
  response: {
61
63
  };
@@ -68,8 +70,8 @@ export interface IRequest_PullImageVersion extends plugins.typedrequestInterface
68
70
  method: 'pullImageVersion';
69
71
  request: {
70
72
  jwt: string;
71
- name: string;
72
- version: string;
73
+ imageId: string;
74
+ versionString: string;
73
75
  };
74
76
  response: {
75
77
  imageStream: plugins.typedrequestInterfaces.IVirtualStream;