@serve.zone/interfaces 1.0.52 → 1.0.55

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.52',
6
+ version: '1.0.55',
7
7
  description: 'interfaces for working with containers'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHdDQUF3QztDQUN0RCxDQUFBIn0=
@@ -1,8 +1,9 @@
1
1
  import * as plugins from '../plugins.js';
2
2
  import type { IServer } from './server.js';
3
3
  export interface IClusterIdentifier {
4
+ clusterId: string;
4
5
  clusterName: string;
5
- secretKey: string;
6
+ jwt: string;
6
7
  }
7
8
  export interface ICluster {
8
9
  id: string;
@@ -1,3 +1,7 @@
1
+ /**
2
+ * results from a DeploymentDirective
3
+ * tracks the status of a deployment
4
+ */
1
5
  export interface IDeployment {
2
6
  id: string;
3
7
  deploymentDirectiveId: string;
@@ -6,6 +6,8 @@ export interface IImage {
6
6
  versions: Array<{
7
7
  version: string;
8
8
  storagePath?: string;
9
+ size: number;
10
+ createdAt: number;
9
11
  }>;
10
12
  };
11
13
  }
@@ -10,6 +10,16 @@ export interface IRequest_GetAllImages extends plugins.typedrequestInterfaces.im
10
10
  images: IImage[];
11
11
  };
12
12
  }
13
+ export interface IRequest_GetImageMetadata extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_GetImageMetadata> {
14
+ method: 'getImageMetadata';
15
+ request: {
16
+ jwt: string;
17
+ imageId: string;
18
+ };
19
+ response: {
20
+ image: IImage;
21
+ };
22
+ }
13
23
  export interface IRequest_CreateImage extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_CreateImage> {
14
24
  method: 'createImage';
15
25
  request: {
@@ -4,20 +4,3 @@ export interface IRequest_Any_Cloudly_VersionManager_InformCloudlyAboutNewContai
4
4
  request: versionInterfaces.IContainerVersionData;
5
5
  response: {};
6
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
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "1.0.52",
3
+ "version": "1.0.55",
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.52',
6
+ version: '1.0.55',
7
7
  description: 'interfaces for working with containers'
8
8
  }
@@ -4,8 +4,9 @@ import { type IDockerRegistryInfo } from '../data/docker.js';
4
4
  import type { IServer } from './server.js';
5
5
 
6
6
  export interface IClusterIdentifier {
7
+ clusterId: string;
7
8
  clusterName: string;
8
- secretKey: string;
9
+ jwt: string;
9
10
  }
10
11
 
11
12
  export interface ICluster {
@@ -1,5 +1,9 @@
1
1
  import * as plugins from '../plugins.js';
2
2
 
3
+ /**
4
+ * results from a DeploymentDirective
5
+ * tracks the status of a deployment
6
+ */
3
7
  export interface IDeployment {
4
8
  id: string;
5
9
  deploymentDirectiveId: string;
package/ts/data/image.ts CHANGED
@@ -8,6 +8,8 @@ export interface IImage {
8
8
  versions: Array<{
9
9
  version: string;
10
10
  storagePath?: string;
11
+ size: number;
12
+ createdAt: number;
11
13
  }>;
12
14
  };
13
15
  }
@@ -15,6 +15,20 @@ export interface IRequest_GetAllImages extends plugins.typedrequestInterfaces.im
15
15
  };
16
16
  }
17
17
 
18
+ export interface IRequest_GetImageMetadata extends plugins.typedrequestInterfaces.implementsTR<
19
+ plugins.typedrequestInterfaces.ITypedRequest,
20
+ IRequest_GetImageMetadata
21
+ > {
22
+ method: 'getImageMetadata';
23
+ request: {
24
+ jwt: string;
25
+ imageId: string;
26
+ };
27
+ response: {
28
+ image: IImage;
29
+ };
30
+ }
31
+
18
32
  export interface IRequest_CreateImage extends plugins.typedrequestInterfaces.implementsTR<
19
33
  plugins.typedrequestInterfaces.ITypedRequest,
20
34
  IRequest_CreateImage
@@ -6,24 +6,3 @@ export interface IRequest_Any_Cloudly_VersionManager_InformCloudlyAboutNewContai
6
6
  request: versionInterfaces.IContainerVersionData;
7
7
  response: {};
8
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
- }