@serve.zone/interfaces 1.0.5

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.
Files changed (73) hide show
  1. package/dist_ts/00_commitinfo_data.d.ts +8 -0
  2. package/dist_ts/00_commitinfo_data.js +9 -0
  3. package/dist_ts/config/cluster.d.ts +32 -0
  4. package/dist_ts/config/cluster.js +2 -0
  5. package/dist_ts/config/docker.d.ts +10 -0
  6. package/dist_ts/config/docker.js +2 -0
  7. package/dist_ts/config/server.d.ts +18 -0
  8. package/dist_ts/config/server.js +2 -0
  9. package/dist_ts/data/cluster.d.ts +4 -0
  10. package/dist_ts/data/cluster.js +2 -0
  11. package/dist_ts/data/config.d.ts +3 -0
  12. package/dist_ts/data/config.js +6 -0
  13. package/dist_ts/data/event.d.ts +6 -0
  14. package/dist_ts/data/event.js +2 -0
  15. package/dist_ts/data/index.d.ts +6 -0
  16. package/dist_ts/data/index.js +7 -0
  17. package/dist_ts/data/status.d.ts +16 -0
  18. package/dist_ts/data/status.js +2 -0
  19. package/dist_ts/data/traffic.d.ts +4 -0
  20. package/dist_ts/data/traffic.js +3 -0
  21. package/dist_ts/data/version.d.ts +11 -0
  22. package/dist_ts/data/version.js +2 -0
  23. package/dist_ts/index.d.ts +3 -0
  24. package/dist_ts/index.js +4 -0
  25. package/dist_ts/plugins.d.ts +4 -0
  26. package/dist_ts/plugins.js +7 -0
  27. package/dist_ts/requests/certificate.d.ts +11 -0
  28. package/dist_ts/requests/certificate.js +2 -0
  29. package/dist_ts/requests/config.d.ts +36 -0
  30. package/dist_ts/requests/config.js +4 -0
  31. package/dist_ts/requests/identity.d.ts +14 -0
  32. package/dist_ts/requests/identity.js +3 -0
  33. package/dist_ts/requests/index.d.ts +10 -0
  34. package/dist_ts/requests/index.js +12 -0
  35. package/dist_ts/requests/inform.d.ts +8 -0
  36. package/dist_ts/requests/inform.js +2 -0
  37. package/dist_ts/requests/network.d.ts +8 -0
  38. package/dist_ts/requests/network.js +2 -0
  39. package/dist_ts/requests/routing.d.ts +11 -0
  40. package/dist_ts/requests/routing.js +2 -0
  41. package/dist_ts/requests/server.d.ts +11 -0
  42. package/dist_ts/requests/server.js +4 -0
  43. package/dist_ts/requests/status.d.ts +11 -0
  44. package/dist_ts/requests/status.js +2 -0
  45. package/dist_ts/requests/version.d.ts +23 -0
  46. package/dist_ts/requests/version.js +2 -0
  47. package/license +19 -0
  48. package/npmextra.json +18 -0
  49. package/package.json +50 -0
  50. package/readme.md +39 -0
  51. package/ts/00_commitinfo_data.ts +8 -0
  52. package/ts/config/cluster.ts +30 -0
  53. package/ts/config/docker.ts +12 -0
  54. package/ts/config/server.ts +23 -0
  55. package/ts/data/cluster.ts +4 -0
  56. package/ts/data/config.ts +7 -0
  57. package/ts/data/event.ts +11 -0
  58. package/ts/data/index.ts +6 -0
  59. package/ts/data/status.ts +20 -0
  60. package/ts/data/traffic.ts +5 -0
  61. package/ts/data/version.ts +11 -0
  62. package/ts/index.ts +7 -0
  63. package/ts/plugins.ts +13 -0
  64. package/ts/requests/certificate.ts +16 -0
  65. package/ts/requests/config.ts +56 -0
  66. package/ts/requests/identity.ts +23 -0
  67. package/ts/requests/index.ts +23 -0
  68. package/ts/requests/inform.ts +12 -0
  69. package/ts/requests/network.ts +9 -0
  70. package/ts/requests/routing.ts +12 -0
  71. package/ts/requests/server.ts +19 -0
  72. package/ts/requests/status.ts +12 -0
  73. package/ts/requests/version.ts +29 -0
@@ -0,0 +1,8 @@
1
+ /**
2
+ * autocreated commitinfo by @pushrocks/commitinfo
3
+ */
4
+ export declare const commitinfo: {
5
+ name: string;
6
+ version: string;
7
+ description: string;
8
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * autocreated commitinfo by @pushrocks/commitinfo
3
+ */
4
+ export const commitinfo = {
5
+ name: '@serve.zone/interfaces',
6
+ version: '1.0.5',
7
+ description: 'interfaces for working with containers'
8
+ };
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHdDQUF3QztDQUN0RCxDQUFBIn0=
@@ -0,0 +1,32 @@
1
+ import { type IDockerRegistryInfo, type IServiceRessources } from './docker.js';
2
+ export interface IClusterConfig {
3
+ name: string;
4
+ zone: 'servezone' | 'gitzone' | 'shipzone' | 'umbrellazone' | 'trafficzone' | 'proxyzone';
5
+ type: 'cluster';
6
+ secretKey: string;
7
+ jumpCode: string;
8
+ jumpCodeUsedAt: number;
9
+ manager_domain: string;
10
+ manager_ip: string;
11
+ containers: IClusterConfigContainer[];
12
+ acmeInfo: {
13
+ serverAddress: string;
14
+ serverSecret: string;
15
+ };
16
+ registryInfo: IDockerRegistryInfo;
17
+ }
18
+ export interface IClusterConfigContainer {
19
+ name: string;
20
+ image: string;
21
+ ports: {
22
+ web: number;
23
+ custom?: {
24
+ [domain: string]: string;
25
+ };
26
+ };
27
+ resources?: IServiceRessources;
28
+ domains: string[];
29
+ secrets: {
30
+ [key: string]: string;
31
+ };
32
+ }
@@ -0,0 +1,2 @@
1
+ import {} from './docker.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2x1c3Rlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2NvbmZpZy9jbHVzdGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBcUQsTUFBTSxhQUFhLENBQUMifQ==
@@ -0,0 +1,10 @@
1
+ import * as plugins from '../plugins.js';
2
+ export interface IDockerRegistryInfo {
3
+ serveraddress: string;
4
+ username: string;
5
+ password: string;
6
+ }
7
+ export interface IServiceRessources {
8
+ memorySizeMB?: number;
9
+ volumeMounts?: plugins.tsclass.container.IVolumeMount[];
10
+ }
@@ -0,0 +1,2 @@
1
+ import * as plugins from '../plugins.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9ja2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvY29uZmlnL2RvY2tlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQyJ9
@@ -0,0 +1,18 @@
1
+ import { type IDockerRegistryInfo } from './docker.js';
2
+ export interface IServerConfig {
3
+ type: 'server';
4
+ /**
5
+ * a list of debian packages to be installed
6
+ */
7
+ requiredDebianPackages: string[];
8
+ /**
9
+ * a list of SSH keys to deploy
10
+ */
11
+ sshKeys: IServezoneSshKey[];
12
+ dockerRegistryInfo: IDockerRegistryInfo;
13
+ }
14
+ export interface IServezoneSshKey {
15
+ keyName: string;
16
+ public: string;
17
+ private?: string;
18
+ }
@@ -0,0 +1,2 @@
1
+ import {} from './docker.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvY29uZmlnL3NlcnZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQTRCLE1BQU0sYUFBYSxDQUFDIn0=
@@ -0,0 +1,4 @@
1
+ export interface IClusterIdentifier {
2
+ clusterName: string;
3
+ secretKey: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2x1c3Rlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2RhdGEvY2x1c3Rlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,3 @@
1
+ export * from '../config/cluster.js';
2
+ export * from '../config/server.js';
3
+ export type TConfigType = 'server' | 'cluster' | 'coreflow' | 'service';
@@ -0,0 +1,6 @@
1
+ /* ==========
2
+ This file exports all config interfaces for easier access under module.config.[anyconfig]
3
+ // ========== */
4
+ export * from '../config/cluster.js';
5
+ export * from '../config/server.js';
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvZGF0YS9jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O2dCQUVnQjtBQUVoQixjQUFjLHNCQUFzQixDQUFDO0FBQ3JDLGNBQWMscUJBQXFCLENBQUMifQ==
@@ -0,0 +1,6 @@
1
+ import * as plugins from '../plugins.js';
2
+ export interface IEvent_Cloudly_ContainerVersionNotification extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedEvent<plugins.tsclass.container.IContainer>, IEvent_Cloudly_ContainerVersionNotification> {
3
+ name: 'newContainerVersion';
4
+ uniqueEventId: string;
5
+ payload: plugins.tsclass.container.IContainer;
6
+ }
@@ -0,0 +1,2 @@
1
+ import * as plugins from '../plugins.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL2V2ZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDIn0=
@@ -0,0 +1,6 @@
1
+ export * from './cluster.js';
2
+ export * from './config.js';
3
+ export * from './event.js';
4
+ export * from './status.js';
5
+ export * from './traffic.js';
6
+ export * from './version.js';
@@ -0,0 +1,7 @@
1
+ export * from './cluster.js';
2
+ export * from './config.js';
3
+ export * from './event.js';
4
+ export * from './status.js';
5
+ export * from './traffic.js';
6
+ export * from './version.js';
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsY0FBYyxDQUFDIn0=
@@ -0,0 +1,16 @@
1
+ export interface IClusterStatus {
2
+ name: string;
3
+ ip: string;
4
+ nodesCount: number;
5
+ containersUnderManagementCount: number;
6
+ nodeStatusId: string;
7
+ containerStatusArray: IContainerStatus[];
8
+ }
9
+ export interface INodeStatus {
10
+ nodeId: string;
11
+ }
12
+ export interface IContainerStatus {
13
+ serviceName: string;
14
+ dockerImageUrl: string;
15
+ dockerImageVersion: string;
16
+ }
@@ -0,0 +1,2 @@
1
+ import * as plugins from '../plugins.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvZGF0YS9zdGF0dXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE9BQU8sTUFBTSxlQUFlLENBQUMifQ==
@@ -0,0 +1,4 @@
1
+ import * as plugins from '../plugins.js';
2
+ interface IReverseProxyConfig extends plugins.tsclass.network.IReverseProxyConfig {
3
+ }
4
+ export { type IReverseProxyConfig };
@@ -0,0 +1,3 @@
1
+ import * as plugins from '../plugins.js';
2
+ export {};
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhZmZpYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2RhdGEvdHJhZmZpYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQztBQUl6QyxPQUFPLEVBQTRCLENBQUMifQ==
@@ -0,0 +1,11 @@
1
+ export interface IContainerVersionData {
2
+ /**
3
+ * the docker image url
4
+ * example: registry.gitlab.com/hosttoday/ht-docker-node:latest
5
+ */
6
+ dockerImageUrl: string;
7
+ /**
8
+ * the docker image version. Note: This is different from docker tags that are often used for versions.
9
+ */
10
+ dockerImageVersion: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2RhdGEvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,3 @@
1
+ import * as data from './data/index.js';
2
+ import * as requests from './requests/index.js';
3
+ export { data, requests };
@@ -0,0 +1,4 @@
1
+ import * as data from './data/index.js';
2
+ import * as requests from './requests/index.js';
3
+ export { data, requests };
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssSUFBSSxNQUFNLGlCQUFpQixDQUFDO0FBQ3hDLE9BQU8sS0FBSyxRQUFRLE1BQU0scUJBQXFCLENBQUM7QUFFaEQsT0FBTyxFQUNMLElBQUksRUFDSixRQUFRLEVBQ1QsQ0FBQSJ9
@@ -0,0 +1,4 @@
1
+ import * as typedrequestInterfaces from '@apiglobal/typedrequest-interfaces';
2
+ export { typedrequestInterfaces };
3
+ import * as tsclass from '@tsclass/tsclass';
4
+ export { tsclass };
@@ -0,0 +1,7 @@
1
+ // @apiglobal scope
2
+ import * as typedrequestInterfaces from '@apiglobal/typedrequest-interfaces';
3
+ export { typedrequestInterfaces };
4
+ // tsclass scope
5
+ import * as tsclass from '@tsclass/tsclass';
6
+ export { tsclass };
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3BsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsbUJBQW1CO0FBQ25CLE9BQU8sS0FBSyxzQkFBc0IsTUFBTSxvQ0FBb0MsQ0FBQztBQUU3RSxPQUFPLEVBQ0wsc0JBQXNCLEVBQ3ZCLENBQUE7QUFFRCxnQkFBZ0I7QUFDaEIsT0FBTyxLQUFLLE9BQU8sTUFBTSxrQkFBa0IsQ0FBQztBQUU1QyxPQUFPLEVBQ0wsT0FBTyxFQUNSLENBQUEifQ==
@@ -0,0 +1,11 @@
1
+ import * as plugins from '../plugins.js';
2
+ export interface IRequest_Any_Cloudly_GetSslCertificate extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_GetSslCertificate> {
3
+ method: 'getSslCertificate';
4
+ request: {
5
+ authToken: string;
6
+ requiredCertName: string;
7
+ };
8
+ response: {
9
+ certificate: plugins.tsclass.network.ICert;
10
+ };
11
+ }
@@ -0,0 +1,2 @@
1
+ import * as plugins from '../plugins.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VydGlmaWNhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0cy9jZXJ0aWZpY2F0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQyJ9
@@ -0,0 +1,36 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as clusterInterfaces from '../data/cluster.js';
3
+ import * as configInterfaces from '../data/config.js';
4
+ export interface IRequest_Any_Cloudly_GetServerConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_GetServerConfig> {
5
+ method: 'getServerConfig';
6
+ request: {
7
+ clusterIdentifier: clusterInterfaces.IClusterIdentifier;
8
+ };
9
+ response: {
10
+ configData: configInterfaces.IServerConfig;
11
+ };
12
+ }
13
+ export interface IRequest_Any_Cloudly_GetClusterConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_GetClusterConfig> {
14
+ method: 'getClusterConfig';
15
+ request: {
16
+ clusterIdentifier: clusterInterfaces.IClusterIdentifier;
17
+ };
18
+ response: {
19
+ configData: configInterfaces.IClusterConfig;
20
+ };
21
+ }
22
+ export interface IRequest_Cloudly_Coreflow_PushClusterConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Cloudly_Coreflow_PushClusterConfig> {
23
+ method: 'pushClusterConfig';
24
+ request: {
25
+ configData: configInterfaces.IClusterConfig;
26
+ };
27
+ response: {};
28
+ }
29
+ export interface IRequest_Cloudly_Coreflow_PushContainerUpdate extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Cloudly_Coreflow_PushContainerUpdate> {
30
+ method: 'pushContainerUpdate';
31
+ request: {
32
+ configData: configInterfaces.IClusterConfig;
33
+ specificContainerConfigToUpdate: configInterfaces.IClusterConfigContainer;
34
+ };
35
+ response: {};
36
+ }
@@ -0,0 +1,4 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as clusterInterfaces from '../data/cluster.js';
3
+ import * as configInterfaces from '../data/config.js';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcmVxdWVzdHMvY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sS0FBSyxpQkFBaUIsTUFBTSxvQkFBb0IsQ0FBQztBQUN4RCxPQUFPLEtBQUssZ0JBQWdCLE1BQU0sbUJBQW1CLENBQUMifQ==
@@ -0,0 +1,14 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as clusterInterfaces from '../data/cluster.js';
3
+ /**
4
+ * get the identity that then will be used to get the config
5
+ */
6
+ export interface IRequest_Any_Cloudly_CoreflowManager_GetIdentityByJumpCode extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_CoreflowManager_GetIdentityByJumpCode> {
7
+ method: 'getIdentityByJumpCode';
8
+ request: {
9
+ jumpCode: string;
10
+ };
11
+ response: {
12
+ clusterIdentifier: clusterInterfaces.IClusterIdentifier;
13
+ };
14
+ }
@@ -0,0 +1,3 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as clusterInterfaces from '../data/cluster.js';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0cy9pZGVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEtBQUssaUJBQWlCLE1BQU0sb0JBQW9CLENBQUMifQ==
@@ -0,0 +1,10 @@
1
+ import * as certificateRequests from './certificate.js';
2
+ import * as configRequests from './config.js';
3
+ import * as identityRequests from './identity.js';
4
+ import * as networkRequests from './network.js';
5
+ import * as routingRequests from './routing.js';
6
+ import * as serverRequests from './server.js';
7
+ import * as statusRequests from './status.js';
8
+ import * as versionRequests from './version.js';
9
+ export { certificateRequests as certificate, configRequests as config, identityRequests as identity, networkRequests as network, routingRequests as routing, serverRequests as server, statusRequests as status, versionRequests as version, };
10
+ export * from './inform.js';
@@ -0,0 +1,12 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as certificateRequests from './certificate.js';
3
+ import * as configRequests from './config.js';
4
+ import * as identityRequests from './identity.js';
5
+ import * as networkRequests from './network.js';
6
+ import * as routingRequests from './routing.js';
7
+ import * as serverRequests from './server.js';
8
+ import * as statusRequests from './status.js';
9
+ import * as versionRequests from './version.js';
10
+ export { certificateRequests as certificate, configRequests as config, identityRequests as identity, networkRequests as network, routingRequests as routing, serverRequests as server, statusRequests as status, versionRequests as version, };
11
+ export * from './inform.js';
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEtBQUssbUJBQW1CLE1BQU0sa0JBQWtCLENBQUM7QUFDeEQsT0FBTyxLQUFLLGNBQWMsTUFBTSxhQUFhLENBQUM7QUFDOUMsT0FBTyxLQUFLLGdCQUFnQixNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEtBQUssZUFBZSxNQUFNLGNBQWMsQ0FBQztBQUNoRCxPQUFPLEtBQUssZUFBZSxNQUFNLGNBQWMsQ0FBQztBQUNoRCxPQUFPLEtBQUssY0FBYyxNQUFNLGFBQWEsQ0FBQztBQUM5QyxPQUFPLEtBQUssY0FBYyxNQUFNLGFBQWEsQ0FBQztBQUM5QyxPQUFPLEtBQUssZUFBZSxNQUFNLGNBQWMsQ0FBQztBQUVoRCxPQUFPLEVBQ0wsbUJBQW1CLElBQUksV0FBVyxFQUNsQyxjQUFjLElBQUksTUFBTSxFQUN4QixnQkFBZ0IsSUFBSSxRQUFRLEVBQzVCLGVBQWUsSUFBSSxPQUFPLEVBQzFCLGVBQWUsSUFBSSxPQUFPLEVBQzFCLGNBQWMsSUFBSSxNQUFNLEVBQ3hCLGNBQWMsSUFBSSxNQUFNLEVBQ3hCLGVBQWUsSUFBSSxPQUFPLEdBQzNCLENBQUM7QUFFRixjQUFjLGFBQWEsQ0FBQyJ9
@@ -0,0 +1,8 @@
1
+ import * as plugins from '../plugins.js';
2
+ export interface IRequest_InformAboutNewContainerImage extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_InformAboutNewContainerImage> {
3
+ method: 'servezonestandard_InformAboutNewContainerVersion';
4
+ request: {
5
+ containerImageInfo: plugins.tsclass.container.IContainer;
6
+ };
7
+ response: {};
8
+ }
@@ -0,0 +1,2 @@
1
+ import * as plugins from '../plugins.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcmVxdWVzdHMvaW5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDIn0=
@@ -0,0 +1,8 @@
1
+ import * as plugins from '../plugins.js';
2
+ export interface IRequest_Any_Cloudly_GetNetworkNodes {
3
+ method: 'getNetworkNodes';
4
+ request: {};
5
+ response: {
6
+ networkNodes: plugins.tsclass.network.INetworkNode[];
7
+ };
8
+ }
@@ -0,0 +1,2 @@
1
+ import * as plugins from '../plugins.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV0d29yay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL3JlcXVlc3RzL25ldHdvcmsudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE9BQU8sTUFBTSxlQUFlLENBQUMifQ==
@@ -0,0 +1,11 @@
1
+ import { type IReverseProxyConfig } from '../data/traffic.js';
2
+ export interface IRequest_Coreflow_Coretraffic_RoutingUpdate {
3
+ method: 'updateRouting';
4
+ request: {
5
+ reverseConfigs: IReverseProxyConfig[];
6
+ };
7
+ response: {
8
+ status: 'ok' | 'error';
9
+ errorText: string;
10
+ };
11
+ }
@@ -0,0 +1,2 @@
1
+ import {} from '../data/traffic.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL3JlcXVlc3RzL3JvdXRpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUE0QixNQUFNLG9CQUFvQixDQUFDIn0=
@@ -0,0 +1,11 @@
1
+ import * as plugins from '../plugins.js';
2
+ export interface IRequest_Cloudly_ServerConfig_TriggerAction extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Cloudly_ServerConfig_TriggerAction> {
3
+ method: 'serverConfigTriggerAction';
4
+ request: {
5
+ actionName: 'reboot' | 'rebuild';
6
+ payload: any;
7
+ };
8
+ response: {
9
+ actionConfirmed: boolean;
10
+ };
11
+ }
@@ -0,0 +1,4 @@
1
+ // link external types for reference
2
+ import {} from './config.js';
3
+ import * as plugins from '../plugins.js';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcmVxdWVzdHMvc2VydmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG9DQUFvQztBQUNwQyxPQUFPLEVBQTZDLE1BQU0sYUFBYSxDQUFBO0FBRXZFLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDIn0=
@@ -0,0 +1,11 @@
1
+ import * as clusterInterfaces from '../data/cluster.js';
2
+ /**
3
+ * a status update dashboard
4
+ */
5
+ export interface IRequest_Coreflow_Cloudly_CoreflowManagerStatusupdate {
6
+ method: 'cloudlyStatus';
7
+ request: {
8
+ clusterIdentifier: clusterInterfaces.IClusterIdentifier;
9
+ };
10
+ response: {};
11
+ }
@@ -0,0 +1,2 @@
1
+ import * as clusterInterfaces from '../data/cluster.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcmVxdWVzdHMvc3RhdHVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxpQkFBaUIsTUFBTSxvQkFBb0IsQ0FBQyJ9
@@ -0,0 +1,23 @@
1
+ import * as versionInterfaces from '../data/version.js';
2
+ export interface IRequest_Any_Cloudly_VersionManager_InformCloudlyAboutNewContainerVersion {
3
+ method: 'informCloudlyAboutNewContainerVersion';
4
+ request: versionInterfaces.IContainerVersionData;
5
+ response: {};
6
+ }
7
+ export interface IRequest_Cloudly_Coreflow_VersionManager_InformCoreflowAboutNewContainerVersion {
8
+ method: 'informCoreflowAboutNewContainerVersion';
9
+ request: versionInterfaces.IContainerVersionData;
10
+ response: {};
11
+ }
12
+ export interface IRequest_Any_Cloudly_VersionManager_GetLatestContainerVersion {
13
+ method: 'getLatestContainerVersion';
14
+ request: {
15
+ dockerImageUrl: string;
16
+ };
17
+ response: versionInterfaces.IContainerVersionData;
18
+ }
19
+ export interface IRequest_Any_Cloudly_VersionManager_ListAllContainerVersions {
20
+ method: 'listAllContainerVersions';
21
+ request: {};
22
+ response: versionInterfaces.IContainerVersionData[];
23
+ }
@@ -0,0 +1,2 @@
1
+ import * as versionInterfaces from '../data/version.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL3JlcXVlc3RzL3ZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLGlCQUFpQixNQUFNLG9CQUFvQixDQUFDIn0=
package/license ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2021 Lossless GmbH (hello@lossless.com)
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
package/npmextra.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "gitzone": {
3
+ "projectType": "npm",
4
+ "module": {
5
+ "githost": "gitlab.com",
6
+ "gitscope": "serve.zone",
7
+ "gitrepo": "interfaces",
8
+ "description": "interfaces for working with containers",
9
+ "npmPackagename": "@serve.zone/interfaces",
10
+ "license": "MIT",
11
+ "projectDomain": "serve.zone"
12
+ }
13
+ },
14
+ "npmci": {
15
+ "npmGlobalTools": [],
16
+ "npmAccessLevel": "public"
17
+ }
18
+ }
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@serve.zone/interfaces",
3
+ "version": "1.0.5",
4
+ "private": false,
5
+ "description": "interfaces for working with containers",
6
+ "main": "dist_ts/index.js",
7
+ "typings": "dist_ts/index.d.ts",
8
+ "author": "Lossless GmbH",
9
+ "license": "MIT",
10
+ "devDependencies": {
11
+ "@git.zone/tsbuild": "^2.1.66",
12
+ "@git.zone/tsbundle": "^2.0.8",
13
+ "@git.zone/tstest": "^1.0.77",
14
+ "@push.rocks/tapbundle": "^5.0.8",
15
+ "@types/node": "^20.11.5"
16
+ },
17
+ "dependencies": {
18
+ "@apiglobal/typedrequest-interfaces": "^2.0.1",
19
+ "@tsclass/tsclass": "^4.0.46"
20
+ },
21
+ "browserslist": [
22
+ "last 1 chrome versions"
23
+ ],
24
+ "files": [
25
+ "ts/**/*",
26
+ "ts_web/**/*",
27
+ "dist/**/*",
28
+ "dist_*/**/*",
29
+ "dist_ts/**/*",
30
+ "dist_ts_web/**/*",
31
+ "assets/**/*",
32
+ "cli.js",
33
+ "npmextra.json",
34
+ "readme.md"
35
+ ],
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://gitlab.com/serve.zone/interfaces.git"
39
+ },
40
+ "bugs": {
41
+ "url": "https://gitlab.com/serve.zone/interfaces/issues"
42
+ },
43
+ "homepage": "https://gitlab.com/serve.zone/interfaces#readme",
44
+ "type": "module",
45
+ "scripts": {
46
+ "test": "(tstest test/ --web)",
47
+ "build": "(tsbuild --web)",
48
+ "buildDocs": "tsdoc"
49
+ }
50
+ }
package/readme.md ADDED
@@ -0,0 +1,39 @@
1
+ # @servezone/interfaces
2
+ interfaces for working with containers
3
+
4
+ ## Availabililty and Links
5
+ * [npmjs.org (npm package)](https://www.npmjs.com/package/@servezone/interfaces)
6
+ * [gitlab.com (source)](https://gitlab.com/servezone/interfaces)
7
+ * [github.com (source mirror)](https://github.com/servezone/interfaces)
8
+ * [docs (typedoc)](https://servezone.gitlab.io/interfaces/)
9
+
10
+ ## Status for master
11
+
12
+ Status Category | Status Badge
13
+ -- | --
14
+ GitLab Pipelines | [![pipeline status](https://gitlab.com/servezone/interfaces/badges/master/pipeline.svg)](https://lossless.cloud)
15
+ GitLab Pipline Test Coverage | [![coverage report](https://gitlab.com/servezone/interfaces/badges/master/coverage.svg)](https://lossless.cloud)
16
+ npm | [![npm downloads per month](https://badgen.net/npm/dy/@servezone/interfaces)](https://lossless.cloud)
17
+ Snyk | [![Known Vulnerabilities](https://badgen.net/snyk/servezone/interfaces)](https://lossless.cloud)
18
+ TypeScript Support | [![TypeScript](https://badgen.net/badge/TypeScript/>=%203.x/blue?icon=typescript)](https://lossless.cloud)
19
+ node Support | [![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
20
+ Code Style | [![Code Style](https://badgen.net/badge/style/prettier/purple)](https://lossless.cloud)
21
+ PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@servezone/interfaces)](https://lossless.cloud)
22
+ PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@servezone/interfaces)](https://lossless.cloud)
23
+ BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@servezone/interfaces)](https://lossless.cloud)
24
+ Platform support | [![Supports Windows 10](https://badgen.net/badge/supports%20Windows%2010/yes/green?icon=windows)](https://lossless.cloud) [![Supports Mac OS X](https://badgen.net/badge/supports%20Mac%20OS%20X/yes/green?icon=apple)](https://lossless.cloud)
25
+
26
+ ## Usage
27
+
28
+ Use TypeScript for best in class intellisense
29
+
30
+ ## Contribution
31
+
32
+ We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)
33
+
34
+ For further information read the linked docs at the top of this readme.
35
+
36
+ > MIT licensed | **&copy;** [Lossless GmbH](https://lossless.gmbh)
37
+ | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
38
+
39
+ [![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com)
@@ -0,0 +1,8 @@
1
+ /**
2
+ * autocreated commitinfo by @pushrocks/commitinfo
3
+ */
4
+ export const commitinfo = {
5
+ name: '@serve.zone/interfaces',
6
+ version: '1.0.5',
7
+ description: 'interfaces for working with containers'
8
+ }
@@ -0,0 +1,30 @@
1
+ import { type IDockerRegistryInfo, type IServiceRessources } from './docker.js';
2
+
3
+ export interface IClusterConfig {
4
+ name: string;
5
+ zone: 'servezone' | 'gitzone' | 'shipzone' | 'umbrellazone' | 'trafficzone' | 'proxyzone';
6
+ type: 'cluster';
7
+ secretKey: string;
8
+ jumpCode: string;
9
+ jumpCodeUsedAt: number;
10
+ manager_domain: string;
11
+ manager_ip: string;
12
+ containers: IClusterConfigContainer[];
13
+ acmeInfo: {
14
+ serverAddress: string;
15
+ serverSecret: string;
16
+ };
17
+ registryInfo: IDockerRegistryInfo;
18
+ }
19
+
20
+ export interface IClusterConfigContainer {
21
+ name: string;
22
+ image: string;
23
+ ports: {
24
+ web: number;
25
+ custom?: { [domain: string]: string };
26
+ };
27
+ resources?: IServiceRessources;
28
+ domains: string[];
29
+ secrets: { [key: string]: string };
30
+ }
@@ -0,0 +1,12 @@
1
+ import * as plugins from '../plugins.js';
2
+
3
+ export interface IDockerRegistryInfo {
4
+ serveraddress: string;
5
+ username: string;
6
+ password: string;
7
+ }
8
+
9
+ export interface IServiceRessources {
10
+ memorySizeMB?: number;
11
+ volumeMounts?: plugins.tsclass.container.IVolumeMount[];
12
+ }
@@ -0,0 +1,23 @@
1
+ import { type IDockerRegistryInfo } from './docker.js';
2
+
3
+ export interface IServerConfig {
4
+ type: 'server';
5
+
6
+ /**
7
+ * a list of debian packages to be installed
8
+ */
9
+ requiredDebianPackages: string[];
10
+
11
+ /**
12
+ * a list of SSH keys to deploy
13
+ */
14
+ sshKeys: IServezoneSshKey[];
15
+
16
+ dockerRegistryInfo: IDockerRegistryInfo;
17
+ }
18
+
19
+ export interface IServezoneSshKey {
20
+ keyName: string;
21
+ public: string;
22
+ private?: string;
23
+ }
@@ -0,0 +1,4 @@
1
+ export interface IClusterIdentifier {
2
+ clusterName: string;
3
+ secretKey: string;
4
+ }
@@ -0,0 +1,7 @@
1
+ /* ==========
2
+ This file exports all config interfaces for easier access under module.config.[anyconfig]
3
+ // ========== */
4
+
5
+ export * from '../config/cluster.js';
6
+ export * from '../config/server.js';
7
+ export type TConfigType = 'server' | 'cluster' | 'coreflow' | 'service';
@@ -0,0 +1,11 @@
1
+ import * as plugins from '../plugins.js';
2
+
3
+ export interface IEvent_Cloudly_ContainerVersionNotification
4
+ extends plugins.typedrequestInterfaces.implementsTR<
5
+ plugins.typedrequestInterfaces.ITypedEvent<plugins.tsclass.container.IContainer>,
6
+ IEvent_Cloudly_ContainerVersionNotification
7
+ > {
8
+ name: 'newContainerVersion';
9
+ uniqueEventId: string;
10
+ payload: plugins.tsclass.container.IContainer;
11
+ }
@@ -0,0 +1,6 @@
1
+ export * from './cluster.js';
2
+ export * from './config.js';
3
+ export * from './event.js';
4
+ export * from './status.js';
5
+ export * from './traffic.js';
6
+ export * from './version.js';
@@ -0,0 +1,20 @@
1
+ import * as plugins from '../plugins.js';
2
+
3
+ export interface IClusterStatus {
4
+ name: string;
5
+ ip: string;
6
+ nodesCount: number;
7
+ containersUnderManagementCount: number;
8
+ nodeStatusId: string;
9
+ containerStatusArray: IContainerStatus[];
10
+ }
11
+
12
+ export interface INodeStatus {
13
+ nodeId: string;
14
+ }
15
+
16
+ export interface IContainerStatus {
17
+ serviceName: string;
18
+ dockerImageUrl: string;
19
+ dockerImageVersion: string;
20
+ }
@@ -0,0 +1,5 @@
1
+ import * as plugins from '../plugins.js';
2
+
3
+ interface IReverseProxyConfig extends plugins.tsclass.network.IReverseProxyConfig {}
4
+
5
+ export { type IReverseProxyConfig };
@@ -0,0 +1,11 @@
1
+ export interface IContainerVersionData {
2
+ /**
3
+ * the docker image url
4
+ * example: registry.gitlab.com/hosttoday/ht-docker-node:latest
5
+ */
6
+ dockerImageUrl: string;
7
+ /**
8
+ * the docker image version. Note: This is different from docker tags that are often used for versions.
9
+ */
10
+ dockerImageVersion: string;
11
+ }
package/ts/index.ts ADDED
@@ -0,0 +1,7 @@
1
+ import * as data from './data/index.js';
2
+ import * as requests from './requests/index.js';
3
+
4
+ export {
5
+ data,
6
+ requests
7
+ }
package/ts/plugins.ts ADDED
@@ -0,0 +1,13 @@
1
+ // @apiglobal scope
2
+ import * as typedrequestInterfaces from '@apiglobal/typedrequest-interfaces';
3
+
4
+ export {
5
+ typedrequestInterfaces
6
+ }
7
+
8
+ // tsclass scope
9
+ import * as tsclass from '@tsclass/tsclass';
10
+
11
+ export {
12
+ tsclass
13
+ }
@@ -0,0 +1,16 @@
1
+ import * as plugins from '../plugins.js';
2
+
3
+ export interface IRequest_Any_Cloudly_GetSslCertificate
4
+ extends plugins.typedrequestInterfaces.implementsTR<
5
+ plugins.typedrequestInterfaces.ITypedRequest,
6
+ IRequest_Any_Cloudly_GetSslCertificate
7
+ > {
8
+ method: 'getSslCertificate';
9
+ request: {
10
+ authToken: string;
11
+ requiredCertName: string;
12
+ };
13
+ response: {
14
+ certificate: plugins.tsclass.network.ICert;
15
+ };
16
+ }
@@ -0,0 +1,56 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as clusterInterfaces from '../data/cluster.js';
3
+ import * as configInterfaces from '../data/config.js';
4
+
5
+ export interface IRequest_Any_Cloudly_GetServerConfig
6
+ extends plugins.typedrequestInterfaces.implementsTR<
7
+ plugins.typedrequestInterfaces.ITypedRequest,
8
+ IRequest_Any_Cloudly_GetServerConfig
9
+ > {
10
+ method: 'getServerConfig';
11
+ request: {
12
+ clusterIdentifier: clusterInterfaces.IClusterIdentifier;
13
+ };
14
+ response: {
15
+ configData: configInterfaces.IServerConfig;
16
+ };
17
+ }
18
+
19
+ export interface IRequest_Any_Cloudly_GetClusterConfig
20
+ extends plugins.typedrequestInterfaces.implementsTR<
21
+ plugins.typedrequestInterfaces.ITypedRequest,
22
+ IRequest_Any_Cloudly_GetClusterConfig
23
+ > {
24
+ method: 'getClusterConfig';
25
+ request: {
26
+ clusterIdentifier: clusterInterfaces.IClusterIdentifier;
27
+ };
28
+ response: {
29
+ configData: configInterfaces.IClusterConfig;
30
+ };
31
+ }
32
+
33
+ export interface IRequest_Cloudly_Coreflow_PushClusterConfig
34
+ extends plugins.typedrequestInterfaces.implementsTR<
35
+ plugins.typedrequestInterfaces.ITypedRequest,
36
+ IRequest_Cloudly_Coreflow_PushClusterConfig
37
+ > {
38
+ method: 'pushClusterConfig';
39
+ request: {
40
+ configData: configInterfaces.IClusterConfig;
41
+ };
42
+ response: {};
43
+ }
44
+
45
+ export interface IRequest_Cloudly_Coreflow_PushContainerUpdate
46
+ extends plugins.typedrequestInterfaces.implementsTR<
47
+ plugins.typedrequestInterfaces.ITypedRequest,
48
+ IRequest_Cloudly_Coreflow_PushContainerUpdate
49
+ > {
50
+ method: 'pushContainerUpdate'
51
+ request: {
52
+ configData: configInterfaces.IClusterConfig;
53
+ specificContainerConfigToUpdate: configInterfaces.IClusterConfigContainer;
54
+ };
55
+ response: {}
56
+ }
@@ -0,0 +1,23 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as clusterInterfaces from '../data/cluster.js';
3
+
4
+ // ========
5
+ // IDENTITY
6
+ // ========
7
+
8
+ /**
9
+ * get the identity that then will be used to get the config
10
+ */
11
+ export interface IRequest_Any_Cloudly_CoreflowManager_GetIdentityByJumpCode
12
+ extends plugins.typedrequestInterfaces.implementsTR<
13
+ plugins.typedrequestInterfaces.ITypedRequest,
14
+ IRequest_Any_Cloudly_CoreflowManager_GetIdentityByJumpCode
15
+ > {
16
+ method: 'getIdentityByJumpCode';
17
+ request: {
18
+ jumpCode: string;
19
+ };
20
+ response: {
21
+ clusterIdentifier: clusterInterfaces.IClusterIdentifier;
22
+ };
23
+ }
@@ -0,0 +1,23 @@
1
+ import * as plugins from '../plugins.js';
2
+
3
+ import * as certificateRequests from './certificate.js';
4
+ import * as configRequests from './config.js';
5
+ import * as identityRequests from './identity.js';
6
+ import * as networkRequests from './network.js';
7
+ import * as routingRequests from './routing.js';
8
+ import * as serverRequests from './server.js';
9
+ import * as statusRequests from './status.js';
10
+ import * as versionRequests from './version.js';
11
+
12
+ export {
13
+ certificateRequests as certificate,
14
+ configRequests as config,
15
+ identityRequests as identity,
16
+ networkRequests as network,
17
+ routingRequests as routing,
18
+ serverRequests as server,
19
+ statusRequests as status,
20
+ versionRequests as version,
21
+ };
22
+
23
+ export * from './inform.js';
@@ -0,0 +1,12 @@
1
+ import * as plugins from '../plugins.js';
2
+
3
+ export interface IRequest_InformAboutNewContainerImage extends plugins.typedrequestInterfaces.implementsTR<
4
+ plugins.typedrequestInterfaces.ITypedRequest,
5
+ IRequest_InformAboutNewContainerImage
6
+ > {
7
+ method: 'servezonestandard_InformAboutNewContainerVersion';
8
+ request: {
9
+ containerImageInfo: plugins.tsclass.container.IContainer
10
+ };
11
+ response: {};
12
+ }
@@ -0,0 +1,9 @@
1
+ import * as plugins from '../plugins.js';
2
+
3
+ export interface IRequest_Any_Cloudly_GetNetworkNodes {
4
+ method: 'getNetworkNodes';
5
+ request: {};
6
+ response: {
7
+ networkNodes: plugins.tsclass.network.INetworkNode[];
8
+ };
9
+ }
@@ -0,0 +1,12 @@
1
+ import { type IReverseProxyConfig } from '../data/traffic.js';
2
+
3
+ export interface IRequest_Coreflow_Coretraffic_RoutingUpdate {
4
+ method: 'updateRouting';
5
+ request: {
6
+ reverseConfigs: IReverseProxyConfig[];
7
+ };
8
+ response: {
9
+ status: 'ok' | 'error';
10
+ errorText: string;
11
+ };
12
+ }
@@ -0,0 +1,19 @@
1
+ // link external types for reference
2
+ import { type IRequest_Any_Cloudly_GetServerConfig } from './config.js'
3
+
4
+ import * as plugins from '../plugins.js';
5
+
6
+ export interface IRequest_Cloudly_ServerConfig_TriggerAction
7
+ extends plugins.typedrequestInterfaces.implementsTR<
8
+ plugins.typedrequestInterfaces.ITypedRequest,
9
+ IRequest_Cloudly_ServerConfig_TriggerAction
10
+ > {
11
+ method: 'serverConfigTriggerAction';
12
+ request: {
13
+ actionName: 'reboot' | 'rebuild';
14
+ payload: any;
15
+ };
16
+ response: {
17
+ actionConfirmed: boolean;
18
+ };
19
+ }
@@ -0,0 +1,12 @@
1
+ import * as clusterInterfaces from '../data/cluster.js';
2
+
3
+ /**
4
+ * a status update dashboard
5
+ */
6
+ export interface IRequest_Coreflow_Cloudly_CoreflowManagerStatusupdate {
7
+ method: 'cloudlyStatus';
8
+ request: {
9
+ clusterIdentifier: clusterInterfaces.IClusterIdentifier;
10
+ };
11
+ response: {};
12
+ }
@@ -0,0 +1,29 @@
1
+ import * as versionInterfaces from '../data/version.js';
2
+
3
+ // Containers
4
+ export interface IRequest_Any_Cloudly_VersionManager_InformCloudlyAboutNewContainerVersion {
5
+ method: 'informCloudlyAboutNewContainerVersion';
6
+ request: versionInterfaces.IContainerVersionData;
7
+ response: {};
8
+ }
9
+
10
+ // Containers
11
+ export interface IRequest_Cloudly_Coreflow_VersionManager_InformCoreflowAboutNewContainerVersion {
12
+ method: 'informCoreflowAboutNewContainerVersion';
13
+ request: versionInterfaces.IContainerVersionData;
14
+ response: {};
15
+ }
16
+
17
+ export interface IRequest_Any_Cloudly_VersionManager_GetLatestContainerVersion {
18
+ method: 'getLatestContainerVersion';
19
+ request: {
20
+ dockerImageUrl: string;
21
+ };
22
+ response: versionInterfaces.IContainerVersionData;
23
+ }
24
+
25
+ export interface IRequest_Any_Cloudly_VersionManager_ListAllContainerVersions {
26
+ method: 'listAllContainerVersions';
27
+ request: {};
28
+ response: versionInterfaces.IContainerVersionData[];
29
+ }