@serve.zone/interfaces 5.4.4 → 5.4.6
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/data/image.d.ts +6 -0
- package/dist_ts/data/index.d.ts +1 -0
- package/dist_ts/data/index.js +2 -1
- package/dist_ts/data/registry.d.ts +23 -0
- package/dist_ts/data/registry.js +2 -0
- package/dist_ts/data/service.d.ts +3 -0
- package/dist_ts/requests/config.d.ts +5 -0
- package/dist_ts/requests/index.d.ts +2 -1
- package/dist_ts/requests/index.js +3 -2
- package/dist_ts/requests/platform.d.ts +98 -0
- package/dist_ts/requests/platform.js +2 -0
- package/dist_ts/requests/service.d.ts +12 -0
- package/package.json +2 -2
- package/readme.md +192 -5
- package/ts/data/image.ts +6 -0
- package/ts/data/index.ts +1 -0
- package/ts/data/registry.ts +25 -0
- package/ts/data/service.ts +3 -0
- package/ts/requests/config.ts +5 -0
- package/ts/requests/index.ts +3 -1
- package/ts/requests/platform.ts +148 -0
- package/ts/requests/service.ts +17 -0
package/dist_ts/data/image.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IRegistryPushEvent } from './registry.js';
|
|
1
2
|
export interface IImage {
|
|
2
3
|
id: string;
|
|
3
4
|
data: {
|
|
@@ -10,9 +11,14 @@ export interface IImage {
|
|
|
10
11
|
description: string;
|
|
11
12
|
versions: Array<{
|
|
12
13
|
versionString: string;
|
|
14
|
+
digest?: string;
|
|
15
|
+
registryRepository?: string;
|
|
16
|
+
registryTag?: string;
|
|
17
|
+
source?: 'upload' | 'registry';
|
|
13
18
|
storagePath?: string;
|
|
14
19
|
size: number;
|
|
15
20
|
createdAt: number;
|
|
16
21
|
}>;
|
|
22
|
+
lastPushEvent?: IRegistryPushEvent;
|
|
17
23
|
};
|
|
18
24
|
}
|
package/dist_ts/data/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './domain.js';
|
|
|
8
8
|
export * from './event.js';
|
|
9
9
|
export * from './externalregistry.js';
|
|
10
10
|
export * from './image.js';
|
|
11
|
+
export * from './registry.js';
|
|
11
12
|
export * from './secretbundle.js';
|
|
12
13
|
export * from './secretgroup.js';
|
|
13
14
|
export * from './baremetal.js';
|
package/dist_ts/data/index.js
CHANGED
|
@@ -8,6 +8,7 @@ export * from './domain.js';
|
|
|
8
8
|
export * from './event.js';
|
|
9
9
|
export * from './externalregistry.js';
|
|
10
10
|
export * from './image.js';
|
|
11
|
+
export * from './registry.js';
|
|
11
12
|
export * from './secretbundle.js';
|
|
12
13
|
export * from './secretgroup.js';
|
|
13
14
|
export * from './baremetal.js';
|
|
@@ -19,4 +20,4 @@ export * from './taskexecution.js';
|
|
|
19
20
|
export * from './traffic.js';
|
|
20
21
|
export * from './user.js';
|
|
21
22
|
export * from './version.js';
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLGNBQWMsQ0FBQyJ9
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type TRegistryProtocol = 'oci';
|
|
2
|
+
export interface IRegistryTarget {
|
|
3
|
+
protocol: TRegistryProtocol;
|
|
4
|
+
registryHost: string;
|
|
5
|
+
repository: string;
|
|
6
|
+
tag: string;
|
|
7
|
+
imageUrl: string;
|
|
8
|
+
serviceId?: string;
|
|
9
|
+
imageId?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IRegistryPushEvent {
|
|
12
|
+
protocol: TRegistryProtocol;
|
|
13
|
+
registryHost: string;
|
|
14
|
+
repository: string;
|
|
15
|
+
tag: string;
|
|
16
|
+
digest: string;
|
|
17
|
+
imageUrl: string;
|
|
18
|
+
pushedAt: number;
|
|
19
|
+
serviceId?: string;
|
|
20
|
+
imageId?: string;
|
|
21
|
+
actorUserId?: string;
|
|
22
|
+
manifestMediaType?: string;
|
|
23
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IServiceRessources } from './docker.js';
|
|
2
|
+
import type { IRegistryTarget } from './registry.js';
|
|
2
3
|
export interface IService {
|
|
3
4
|
id: string;
|
|
4
5
|
data: {
|
|
@@ -6,6 +7,8 @@ export interface IService {
|
|
|
6
7
|
description: string;
|
|
7
8
|
imageId: string;
|
|
8
9
|
imageVersion: string;
|
|
10
|
+
registryTarget?: IRegistryTarget;
|
|
11
|
+
deployOnPush?: boolean;
|
|
9
12
|
environment: {
|
|
10
13
|
[key: string]: string;
|
|
11
14
|
};
|
|
@@ -3,6 +3,7 @@ import * as clusterInterfaces from '../data/cluster.js';
|
|
|
3
3
|
import * as serverInterfaces from '../data/server.js';
|
|
4
4
|
import * as userInterfaces from '../data/user.js';
|
|
5
5
|
import type { IService } from '../data/service.js';
|
|
6
|
+
import type { IPlatformBinding, IPlatformProviderConfig } from '../platform/types.js';
|
|
6
7
|
export interface IRequest_Any_Cloudly_GetServerConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_GetServerConfig> {
|
|
7
8
|
method: 'getServerConfig';
|
|
8
9
|
request: {
|
|
@@ -21,6 +22,8 @@ export interface IRequest_Any_Cloudly_GetClusterConfig extends plugins.typedrequ
|
|
|
21
22
|
response: {
|
|
22
23
|
configData: clusterInterfaces.ICluster;
|
|
23
24
|
services: IService[];
|
|
25
|
+
platformProviderConfigs?: IPlatformProviderConfig[];
|
|
26
|
+
platformBindings?: IPlatformBinding[];
|
|
24
27
|
};
|
|
25
28
|
}
|
|
26
29
|
export interface IRequest_Cloudly_Coreflow_PushClusterConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Cloudly_Coreflow_PushClusterConfig> {
|
|
@@ -28,6 +31,8 @@ export interface IRequest_Cloudly_Coreflow_PushClusterConfig extends plugins.typ
|
|
|
28
31
|
request: {
|
|
29
32
|
configData: clusterInterfaces.ICluster;
|
|
30
33
|
services: IService[];
|
|
34
|
+
platformProviderConfigs?: IPlatformProviderConfig[];
|
|
35
|
+
platformBindings?: IPlatformBinding[];
|
|
31
36
|
};
|
|
32
37
|
response: {};
|
|
33
38
|
}
|
|
@@ -13,6 +13,7 @@ import * as informRequests from './inform.js';
|
|
|
13
13
|
import * as logRequests from './log.js';
|
|
14
14
|
import * as networkRequests from './network.js';
|
|
15
15
|
import * as nodeRequests from './node.js';
|
|
16
|
+
import * as platformRequests from './platform.js';
|
|
16
17
|
import * as routingRequests from './routing.js';
|
|
17
18
|
import * as secretBundleRequests from './secretbundle.js';
|
|
18
19
|
import * as secretGroupRequests from './secretgroup.js';
|
|
@@ -22,5 +23,5 @@ import * as settingsRequests from './settings.js';
|
|
|
22
23
|
import * as statusRequests from './status.js';
|
|
23
24
|
import * as taskRequests from './task.js';
|
|
24
25
|
import * as versionRequests from './version.js';
|
|
25
|
-
export { adminRequests as admin, baremetalRequests as baremetal, certificateRequests as certificate, clusterRequests as cluster, configRequests as config, deploymentRequests as deployment, dnsRequests as dns, domainRequests as domain, externalRegistryRequests as externalRegistry, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, nodeRequests as node, routingRequests as routing, secretBundleRequests as secretbundle, secretGroupRequests as secretgroup, serverRequests as server, serviceRequests as service, settingsRequests as settings, statusRequests as status, taskRequests as task, versionRequests as version, };
|
|
26
|
+
export { adminRequests as admin, baremetalRequests as baremetal, certificateRequests as certificate, clusterRequests as cluster, configRequests as config, deploymentRequests as deployment, dnsRequests as dns, domainRequests as domain, externalRegistryRequests as externalRegistry, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, nodeRequests as node, platformRequests as platform, routingRequests as routing, secretBundleRequests as secretbundle, secretGroupRequests as secretgroup, serverRequests as server, serviceRequests as service, settingsRequests as settings, statusRequests as status, taskRequests as task, versionRequests as version, };
|
|
26
27
|
export * from './inform.js';
|
|
@@ -14,6 +14,7 @@ import * as informRequests from './inform.js';
|
|
|
14
14
|
import * as logRequests from './log.js';
|
|
15
15
|
import * as networkRequests from './network.js';
|
|
16
16
|
import * as nodeRequests from './node.js';
|
|
17
|
+
import * as platformRequests from './platform.js';
|
|
17
18
|
import * as routingRequests from './routing.js';
|
|
18
19
|
import * as secretBundleRequests from './secretbundle.js';
|
|
19
20
|
import * as secretGroupRequests from './secretgroup.js';
|
|
@@ -23,6 +24,6 @@ import * as settingsRequests from './settings.js';
|
|
|
23
24
|
import * as statusRequests from './status.js';
|
|
24
25
|
import * as taskRequests from './task.js';
|
|
25
26
|
import * as versionRequests from './version.js';
|
|
26
|
-
export { adminRequests as admin, baremetalRequests as baremetal, certificateRequests as certificate, clusterRequests as cluster, configRequests as config, deploymentRequests as deployment, dnsRequests as dns, domainRequests as domain, externalRegistryRequests as externalRegistry, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, nodeRequests as node, routingRequests as routing, secretBundleRequests as secretbundle, secretGroupRequests as secretgroup, serverRequests as server, serviceRequests as service, settingsRequests as settings, statusRequests as status, taskRequests as task, versionRequests as version, };
|
|
27
|
+
export { adminRequests as admin, baremetalRequests as baremetal, certificateRequests as certificate, clusterRequests as cluster, configRequests as config, deploymentRequests as deployment, dnsRequests as dns, domainRequests as domain, externalRegistryRequests as externalRegistry, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, nodeRequests as node, platformRequests as platform, routingRequests as routing, secretBundleRequests as secretbundle, secretGroupRequests as secretgroup, serverRequests as server, serviceRequests as service, settingsRequests as settings, statusRequests as status, taskRequests as task, versionRequests as version, };
|
|
27
28
|
export * from './inform.js';
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEtBQUssYUFBYSxNQUFNLFlBQVksQ0FBQztBQUM1QyxPQUFPLEtBQUssaUJBQWlCLE1BQU0sZ0JBQWdCLENBQUM7QUFDcEQsT0FBTyxLQUFLLG1CQUFtQixNQUFNLGtCQUFrQixDQUFDO0FBQ3hELE9BQU8sS0FBSyxlQUFlLE1BQU0sY0FBYyxDQUFDO0FBQ2hELE9BQU8sS0FBSyxjQUFjLE1BQU0sYUFBYSxDQUFDO0FBQzlDLE9BQU8sS0FBSyxrQkFBa0IsTUFBTSxpQkFBaUIsQ0FBQztBQUN0RCxPQUFPLEtBQUssV0FBVyxNQUFNLFVBQVUsQ0FBQztBQUN4QyxPQUFPLEtBQUssY0FBYyxNQUFNLGFBQWEsQ0FBQztBQUM5QyxPQUFPLEtBQUssd0JBQXdCLE1BQU0sdUJBQXVCLENBQUM7QUFDbEUsT0FBTyxLQUFLLGdCQUFnQixNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEtBQUssYUFBYSxNQUFNLFlBQVksQ0FBQztBQUM1QyxPQUFPLEtBQUssY0FBYyxNQUFNLGFBQWEsQ0FBQztBQUM5QyxPQUFPLEtBQUssV0FBVyxNQUFNLFVBQVUsQ0FBQztBQUN4QyxPQUFPLEtBQUssZUFBZSxNQUFNLGNBQWMsQ0FBQztBQUNoRCxPQUFPLEtBQUssWUFBWSxNQUFNLFdBQVcsQ0FBQztBQUMxQyxPQUFPLEtBQUssZ0JBQWdCLE1BQU0sZUFBZSxDQUFDO0FBQ2xELE9BQU8sS0FBSyxlQUFlLE1BQU0sY0FBYyxDQUFDO0FBQ2hELE9BQU8sS0FBSyxvQkFBb0IsTUFBTSxtQkFBbUIsQ0FBQztBQUMxRCxPQUFPLEtBQUssbUJBQW1CLE1BQU0sa0JBQWtCLENBQUM7QUFDeEQsT0FBTyxLQUFLLGNBQWMsTUFBTSxhQUFhLENBQUM7QUFDOUMsT0FBTyxLQUFLLGVBQWUsTUFBTSxjQUFjLENBQUM7QUFDaEQsT0FBTyxLQUFLLGdCQUFnQixNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEtBQUssY0FBYyxNQUFNLGFBQWEsQ0FBQztBQUM5QyxPQUFPLEtBQUssWUFBWSxNQUFNLFdBQVcsQ0FBQztBQUMxQyxPQUFPLEtBQUssZUFBZSxNQUFNLGNBQWMsQ0FBQztBQUVoRCxPQUFPLEVBQ0wsYUFBYSxJQUFJLEtBQUssRUFDdEIsaUJBQWlCLElBQUksU0FBUyxFQUM5QixtQkFBbUIsSUFBSSxXQUFXLEVBQ2xDLGVBQWUsSUFBSSxPQUFPLEVBQzFCLGNBQWMsSUFBSSxNQUFNLEVBQ3hCLGtCQUFrQixJQUFJLFVBQVUsRUFDaEMsV0FBVyxJQUFJLEdBQUcsRUFDbEIsY0FBYyxJQUFJLE1BQU0sRUFDeEIsd0JBQXdCLElBQUksZ0JBQWdCLEVBQzVDLGdCQUFnQixJQUFJLFFBQVEsRUFDNUIsYUFBYSxJQUFJLEtBQUssRUFDdEIsY0FBYyxJQUFJLE1BQU0sRUFDeEIsV0FBVyxJQUFJLEdBQUcsRUFDbEIsZUFBZSxJQUFJLE9BQU8sRUFDMUIsWUFBWSxJQUFJLElBQUksRUFDcEIsZ0JBQWdCLElBQUksUUFBUSxFQUM1QixlQUFlLElBQUksT0FBTyxFQUMxQixvQkFBb0IsSUFBSSxZQUFZLEVBQ3BDLG1CQUFtQixJQUFJLFdBQVcsRUFDbEMsY0FBYyxJQUFJLE1BQU0sRUFDeEIsZUFBZSxJQUFJLE9BQU8sRUFDMUIsZ0JBQWdCLElBQUksUUFBUSxFQUM1QixjQUFjLElBQUksTUFBTSxFQUN4QixZQUFZLElBQUksSUFBSSxFQUNwQixlQUFlLElBQUksT0FBTyxHQUMzQixDQUFDO0FBRUYsY0FBYyxhQUFhLENBQUMifQ==
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
import type { IIdentity } from '../data/user.js';
|
|
3
|
+
import type { IPlatformBinding, IPlatformCapability, IPlatformProviderConfig, TPlatformBindingStatus } from '../platform/types.js';
|
|
4
|
+
export interface IReq_Any_Cloudly_GetPlatformDesiredState extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_GetPlatformDesiredState> {
|
|
5
|
+
method: 'getPlatformDesiredState';
|
|
6
|
+
request: {
|
|
7
|
+
identity: IIdentity;
|
|
8
|
+
};
|
|
9
|
+
response: {
|
|
10
|
+
capabilities: IPlatformCapability[];
|
|
11
|
+
providerConfigs: IPlatformProviderConfig[];
|
|
12
|
+
bindings: IPlatformBinding[];
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface IReq_Any_Cloudly_GetPlatformCapabilities extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_GetPlatformCapabilities> {
|
|
16
|
+
method: 'getPlatformCapabilities';
|
|
17
|
+
request: {
|
|
18
|
+
identity: IIdentity;
|
|
19
|
+
};
|
|
20
|
+
response: {
|
|
21
|
+
capabilities: IPlatformCapability[];
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface IReq_Any_Cloudly_GetPlatformProviderConfigs extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_GetPlatformProviderConfigs> {
|
|
25
|
+
method: 'getPlatformProviderConfigs';
|
|
26
|
+
request: {
|
|
27
|
+
identity: IIdentity;
|
|
28
|
+
capability?: IPlatformProviderConfig['capability'];
|
|
29
|
+
};
|
|
30
|
+
response: {
|
|
31
|
+
providerConfigs: IPlatformProviderConfig[];
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export interface IReq_Any_Cloudly_UpsertPlatformProviderConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_UpsertPlatformProviderConfig> {
|
|
35
|
+
method: 'upsertPlatformProviderConfig';
|
|
36
|
+
request: {
|
|
37
|
+
identity: IIdentity;
|
|
38
|
+
providerConfig: IPlatformProviderConfig;
|
|
39
|
+
};
|
|
40
|
+
response: {
|
|
41
|
+
providerConfig: IPlatformProviderConfig;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export interface IReq_Any_Cloudly_DeletePlatformProviderConfigById extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_DeletePlatformProviderConfigById> {
|
|
45
|
+
method: 'deletePlatformProviderConfigById';
|
|
46
|
+
request: {
|
|
47
|
+
identity: IIdentity;
|
|
48
|
+
providerConfigId: string;
|
|
49
|
+
};
|
|
50
|
+
response: {
|
|
51
|
+
success: boolean;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export interface IReq_Any_Cloudly_GetPlatformBindings extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_GetPlatformBindings> {
|
|
55
|
+
method: 'getPlatformBindings';
|
|
56
|
+
request: {
|
|
57
|
+
identity: IIdentity;
|
|
58
|
+
serviceId?: string;
|
|
59
|
+
capability?: IPlatformBinding['capability'];
|
|
60
|
+
};
|
|
61
|
+
response: {
|
|
62
|
+
bindings: IPlatformBinding[];
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export interface IReq_Any_Cloudly_UpsertPlatformBinding extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_UpsertPlatformBinding> {
|
|
66
|
+
method: 'upsertPlatformBinding';
|
|
67
|
+
request: {
|
|
68
|
+
identity: IIdentity;
|
|
69
|
+
binding: IPlatformBinding;
|
|
70
|
+
};
|
|
71
|
+
response: {
|
|
72
|
+
binding: IPlatformBinding;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export interface IReq_Any_Cloudly_UpdatePlatformBindingStatus extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_UpdatePlatformBindingStatus> {
|
|
76
|
+
method: 'updatePlatformBindingStatus';
|
|
77
|
+
request: {
|
|
78
|
+
identity: IIdentity;
|
|
79
|
+
bindingId: string;
|
|
80
|
+
status: TPlatformBindingStatus;
|
|
81
|
+
endpoints?: IPlatformBinding['endpoints'];
|
|
82
|
+
credentials?: IPlatformBinding['credentials'];
|
|
83
|
+
errorText?: string;
|
|
84
|
+
};
|
|
85
|
+
response: {
|
|
86
|
+
binding: IPlatformBinding;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export interface IReq_Any_Cloudly_DeletePlatformBindingById extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_DeletePlatformBindingById> {
|
|
90
|
+
method: 'deletePlatformBindingById';
|
|
91
|
+
request: {
|
|
92
|
+
identity: IIdentity;
|
|
93
|
+
bindingId: string;
|
|
94
|
+
};
|
|
95
|
+
response: {
|
|
96
|
+
success: boolean;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdGZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0cy9wbGF0Zm9ybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQyJ9
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
2
|
import type { IService } from '../data/service.js';
|
|
3
|
+
import type { IRegistryTarget } from '../data/registry.js';
|
|
3
4
|
import type { IIdentity } from '../data/user.js';
|
|
4
5
|
export interface IRequest_Any_Cloudly_GetServiceById extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_GetServiceById> {
|
|
5
6
|
method: 'getServiceById';
|
|
@@ -20,6 +21,17 @@ export interface IRequest_Any_Cloudly_GetServices extends plugins.typedrequestIn
|
|
|
20
21
|
services: IService[];
|
|
21
22
|
};
|
|
22
23
|
}
|
|
24
|
+
export interface IRequest_Any_Cloudly_GetServiceRegistryTarget extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_GetServiceRegistryTarget> {
|
|
25
|
+
method: 'getServiceRegistryTarget';
|
|
26
|
+
request: {
|
|
27
|
+
identity: IIdentity;
|
|
28
|
+
serviceId: string;
|
|
29
|
+
tag?: string;
|
|
30
|
+
};
|
|
31
|
+
response: {
|
|
32
|
+
registryTarget: IRegistryTarget;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
23
35
|
export interface IRequest_Any_Cloudly_CreateService extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_CreateService> {
|
|
24
36
|
method: 'createService';
|
|
25
37
|
request: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serve.zone/interfaces",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.",
|
|
6
6
|
"exports": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@git.zone/tsbuild": "^4.4.0",
|
|
19
|
-
"@git.zone/tsdoc": "^
|
|
19
|
+
"@git.zone/tsdoc": "^2.0.2",
|
|
20
20
|
"@git.zone/tsrun": "^2.0.2",
|
|
21
21
|
"@git.zone/tstest": "^3.6.3",
|
|
22
22
|
"@types/node": "^25.6.0"
|
package/readme.md
CHANGED
|
@@ -2,7 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
`@serve.zone/interfaces` is the contract package used by Cloudly, Spark, Coreflow, Coretraffic, Platformclient, CLI clients, and external integrators. It contains only public data shapes and typed RPC request definitions, so services can evolve independently while speaking the same language.
|
|
6
|
+
|
|
7
|
+
## Issue Reporting and Security
|
|
8
|
+
|
|
9
|
+
For reporting bugs, issues, or security vulnerabilities, please visit [community.foss.global/](https://community.foss.global/). This is the central community hub for all issue reporting. Developers who sign and comply with our contribution agreement and go through identification can also get a [code.foss.global/](https://code.foss.global/) account to submit Pull Requests directly.
|
|
10
|
+
|
|
11
|
+
## What This Package Provides
|
|
12
|
+
|
|
13
|
+
- `data` contains persistent platform shapes such as clusters, cluster nodes, deployments, services, images, DNS records, domains, secrets, users, identities, settings, status, traffic, server metadata, bare-metal inventory, and task executions.
|
|
14
|
+
- `requests` contains `@api.global/typedrequest-interfaces` contracts for Cloudly and platform RPC methods. Each request defines its method name, request payload, and response payload.
|
|
15
|
+
- `platform` contains current platform-service contracts for email, SMS, push notifications, letters, AI, backups, databases, logging, object storage, and SIP.
|
|
16
|
+
- `platformservice` contains legacy compatibility contracts used by older platform-service clients.
|
|
17
|
+
|
|
18
|
+
The package intentionally has no service implementation logic. It is a stable shared vocabulary for the rest of serve.zone.
|
|
6
19
|
|
|
7
20
|
## Install
|
|
8
21
|
|
|
@@ -10,12 +23,151 @@ This package contains the public contracts consumed by Cloudly, Spark, Coreflow,
|
|
|
10
23
|
pnpm add @serve.zone/interfaces
|
|
11
24
|
```
|
|
12
25
|
|
|
13
|
-
##
|
|
26
|
+
## Public API
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import { data, platform, platformservice, requests } from '@serve.zone/interfaces';
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
The root export exposes four namespaces:
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
export {
|
|
36
|
+
data,
|
|
37
|
+
platform,
|
|
38
|
+
platformservice,
|
|
39
|
+
requests,
|
|
40
|
+
};
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Data Interfaces
|
|
44
|
+
|
|
45
|
+
Use `data` when you need durable serve.zone object shapes.
|
|
14
46
|
|
|
15
47
|
```typescript
|
|
16
|
-
import { data
|
|
48
|
+
import { data } from '@serve.zone/interfaces';
|
|
49
|
+
|
|
50
|
+
const service: data.IService = {
|
|
51
|
+
id: 'service-api',
|
|
52
|
+
data: {
|
|
53
|
+
name: 'api',
|
|
54
|
+
description: 'Public API service',
|
|
55
|
+
imageId: 'image-api',
|
|
56
|
+
imageVersion: '1.0.0',
|
|
57
|
+
environment: {
|
|
58
|
+
NODE_ENV: 'production',
|
|
59
|
+
},
|
|
60
|
+
secretBundleId: 'secretbundle-api',
|
|
61
|
+
serviceCategory: 'workload',
|
|
62
|
+
deploymentStrategy: 'limited-replicas',
|
|
63
|
+
scaleFactor: 2,
|
|
64
|
+
balancingStrategy: 'round-robin',
|
|
65
|
+
ports: {
|
|
66
|
+
web: 3000,
|
|
67
|
+
},
|
|
68
|
+
domains: [
|
|
69
|
+
{
|
|
70
|
+
name: 'api',
|
|
71
|
+
protocol: 'https',
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
deploymentIds: [],
|
|
75
|
+
},
|
|
76
|
+
};
|
|
17
77
|
```
|
|
18
78
|
|
|
79
|
+
Common data contracts include:
|
|
80
|
+
|
|
81
|
+
- `ICluster` and `IClusterNode` for cluster membership and provisioning metadata.
|
|
82
|
+
- `IService`, `IDeployment`, and `IImage` for workload configuration and deployment state.
|
|
83
|
+
- `IDnsEntry`, `IDomain`, and traffic interfaces for routing and domain management.
|
|
84
|
+
- `ISecretBundle` and `ISecretGroup` for secret ownership and grouping.
|
|
85
|
+
- `IUser`, `IIdentity`, and token-related interfaces for authentication context.
|
|
86
|
+
- `ICloudlyConfig`, settings, status, server, bare-metal, and task execution interfaces for control-plane state.
|
|
87
|
+
|
|
88
|
+
## TypedRequest Contracts
|
|
89
|
+
|
|
90
|
+
Use `requests` when registering handlers or creating typed clients with `@api.global/typedrequest` or `@api.global/typedsocket`.
|
|
91
|
+
|
|
92
|
+
```typescript
|
|
93
|
+
import { requests } from '@serve.zone/interfaces';
|
|
94
|
+
|
|
95
|
+
type GetClustersRequest = requests.cluster.IReq_Any_Cloudly_GetClusters;
|
|
96
|
+
|
|
97
|
+
const methodName: GetClustersRequest['method'] = 'getClusters';
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Each request interface follows the same structure:
|
|
101
|
+
|
|
102
|
+
```typescript
|
|
103
|
+
interface IExampleRequest {
|
|
104
|
+
method: 'methodName';
|
|
105
|
+
request: Record<string, unknown>;
|
|
106
|
+
response: Record<string, unknown>;
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Request groups are exported by domain:
|
|
111
|
+
|
|
112
|
+
- `requests.admin`
|
|
113
|
+
- `requests.baremetal`
|
|
114
|
+
- `requests.certificate`
|
|
115
|
+
- `requests.cluster`
|
|
116
|
+
- `requests.config`
|
|
117
|
+
- `requests.deployment`
|
|
118
|
+
- `requests.dns`
|
|
119
|
+
- `requests.domain`
|
|
120
|
+
- `requests.externalRegistry`
|
|
121
|
+
- `requests.identity`
|
|
122
|
+
- `requests.image`
|
|
123
|
+
- `requests.inform`
|
|
124
|
+
- `requests.log`
|
|
125
|
+
- `requests.network`
|
|
126
|
+
- `requests.node`
|
|
127
|
+
- `requests.routing`
|
|
128
|
+
- `requests.secretbundle`
|
|
129
|
+
- `requests.secretgroup`
|
|
130
|
+
- `requests.server`
|
|
131
|
+
- `requests.service`
|
|
132
|
+
- `requests.settings`
|
|
133
|
+
- `requests.status`
|
|
134
|
+
- `requests.task`
|
|
135
|
+
- `requests.version`
|
|
136
|
+
|
|
137
|
+
## Platform Contracts
|
|
138
|
+
|
|
139
|
+
Use `platform` for current product-facing platform APIs.
|
|
140
|
+
|
|
141
|
+
```typescript
|
|
142
|
+
import { platform } from '@serve.zone/interfaces';
|
|
143
|
+
|
|
144
|
+
type SendEmailRequest = platform.email.IReq_SendEmail;
|
|
145
|
+
|
|
146
|
+
const sendEmailMethod: SendEmailRequest['method'] = 'sendEmail';
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Available platform modules:
|
|
150
|
+
|
|
151
|
+
- `platform.email` for email sending, recipient registration, status checks, and email stats.
|
|
152
|
+
- `platform.sms` for SMS delivery contracts.
|
|
153
|
+
- `platform.pushnotification` for push-notification contracts.
|
|
154
|
+
- `platform.letter` for physical letter workflows.
|
|
155
|
+
- `platform.ai` for AI bridge contracts.
|
|
156
|
+
- `platform.backup`, `platform.database`, `platform.logging`, `platform.objectstorage`, and `platform.sip` for infrastructure-facing platform features.
|
|
157
|
+
- `platform.types` for shared platform service metadata.
|
|
158
|
+
|
|
159
|
+
## Legacy Platformservice Contracts
|
|
160
|
+
|
|
161
|
+
`platformservice` is retained for older integrations that still consume the previous namespace layout.
|
|
162
|
+
|
|
163
|
+
```typescript
|
|
164
|
+
import { platformservice } from '@serve.zone/interfaces';
|
|
165
|
+
|
|
166
|
+
type LegacySendEmailRequest = platformservice.mta.IRequest_SendEmail;
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
New code should prefer the `platform` namespace unless it must remain compatible with an existing platformservice consumer.
|
|
170
|
+
|
|
19
171
|
## Development
|
|
20
172
|
|
|
21
173
|
```bash
|
|
@@ -24,6 +176,41 @@ pnpm run build
|
|
|
24
176
|
pnpm test
|
|
25
177
|
```
|
|
26
178
|
|
|
27
|
-
|
|
179
|
+
This package is built with `tsbuild` and tested with `@git.zone/tstest`.
|
|
180
|
+
|
|
181
|
+
## Ownership Rules
|
|
182
|
+
|
|
183
|
+
Only ecosystem-wide public contracts belong in this package. Cloudly-internal implementation details, service-private DTOs, and temporary migration helpers should stay in the consuming project until they become real shared contracts.
|
|
184
|
+
|
|
185
|
+
Good candidates for this package:
|
|
186
|
+
|
|
187
|
+
- Types persisted or exchanged across multiple serve.zone services.
|
|
188
|
+
- TypedRequest contracts used by more than one project.
|
|
189
|
+
- External SDK-facing interfaces that must remain stable.
|
|
190
|
+
|
|
191
|
+
Poor candidates for this package:
|
|
192
|
+
|
|
193
|
+
- Private implementation details of a single service.
|
|
194
|
+
- Convenience wrappers with runtime behavior.
|
|
195
|
+
- Backward-compatibility aliases without an active consumer.
|
|
196
|
+
|
|
197
|
+
## License and Legal Information
|
|
198
|
+
|
|
199
|
+
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [license](./license) file.
|
|
200
|
+
|
|
201
|
+
**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.
|
|
202
|
+
|
|
203
|
+
### Trademarks
|
|
204
|
+
|
|
205
|
+
This project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH or third parties, and are not included within the scope of the MIT license granted herein.
|
|
206
|
+
|
|
207
|
+
Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines or the guidelines of the respective third-party owners, and any usage must be approved in writing. Third-party trademarks used herein are the property of their respective owners and used only in a descriptive manner, e.g. for an implementation of an API or similar.
|
|
208
|
+
|
|
209
|
+
### Company Information
|
|
210
|
+
|
|
211
|
+
Task Venture Capital GmbH
|
|
212
|
+
Registered at District Court Bremen HRB 35230 HB, Germany
|
|
213
|
+
|
|
214
|
+
For any legal inquiries or further information, please contact us via email at hello@task.vc.
|
|
28
215
|
|
|
29
|
-
|
|
216
|
+
By using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.
|
package/ts/data/image.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
|
+
import type { IRegistryPushEvent } from './registry.js';
|
|
2
3
|
|
|
3
4
|
export interface IImage {
|
|
4
5
|
id: string;
|
|
@@ -12,9 +13,14 @@ export interface IImage {
|
|
|
12
13
|
description: string;
|
|
13
14
|
versions: Array<{
|
|
14
15
|
versionString: string;
|
|
16
|
+
digest?: string;
|
|
17
|
+
registryRepository?: string;
|
|
18
|
+
registryTag?: string;
|
|
19
|
+
source?: 'upload' | 'registry';
|
|
15
20
|
storagePath?: string;
|
|
16
21
|
size: number;
|
|
17
22
|
createdAt: number;
|
|
18
23
|
}>;
|
|
24
|
+
lastPushEvent?: IRegistryPushEvent;
|
|
19
25
|
};
|
|
20
26
|
}
|
package/ts/data/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './domain.js';
|
|
|
8
8
|
export * from './event.js';
|
|
9
9
|
export * from './externalregistry.js';
|
|
10
10
|
export * from './image.js';
|
|
11
|
+
export * from './registry.js';
|
|
11
12
|
export * from './secretbundle.js';
|
|
12
13
|
export * from './secretgroup.js';
|
|
13
14
|
export * from './baremetal.js';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type TRegistryProtocol = 'oci';
|
|
2
|
+
|
|
3
|
+
export interface IRegistryTarget {
|
|
4
|
+
protocol: TRegistryProtocol;
|
|
5
|
+
registryHost: string;
|
|
6
|
+
repository: string;
|
|
7
|
+
tag: string;
|
|
8
|
+
imageUrl: string;
|
|
9
|
+
serviceId?: string;
|
|
10
|
+
imageId?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface IRegistryPushEvent {
|
|
14
|
+
protocol: TRegistryProtocol;
|
|
15
|
+
registryHost: string;
|
|
16
|
+
repository: string;
|
|
17
|
+
tag: string;
|
|
18
|
+
digest: string;
|
|
19
|
+
imageUrl: string;
|
|
20
|
+
pushedAt: number;
|
|
21
|
+
serviceId?: string;
|
|
22
|
+
imageId?: string;
|
|
23
|
+
actorUserId?: string;
|
|
24
|
+
manifestMediaType?: string;
|
|
25
|
+
}
|
package/ts/data/service.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IServiceRessources } from './docker.js';
|
|
2
|
+
import type { IRegistryTarget } from './registry.js';
|
|
2
3
|
|
|
3
4
|
export interface IService {
|
|
4
5
|
id: string;
|
|
@@ -7,6 +8,8 @@ export interface IService {
|
|
|
7
8
|
description: string;
|
|
8
9
|
imageId: string;
|
|
9
10
|
imageVersion: string;
|
|
11
|
+
registryTarget?: IRegistryTarget;
|
|
12
|
+
deployOnPush?: boolean;
|
|
10
13
|
environment: { [key: string]: string };
|
|
11
14
|
/**
|
|
12
15
|
* the main secret bundle id, exclusive to the service
|
package/ts/requests/config.ts
CHANGED
|
@@ -3,6 +3,7 @@ import * as clusterInterfaces from '../data/cluster.js';
|
|
|
3
3
|
import * as serverInterfaces from '../data/server.js';
|
|
4
4
|
import * as userInterfaces from '../data/user.js';
|
|
5
5
|
import type { IService } from '../data/service.js';
|
|
6
|
+
import type { IPlatformBinding, IPlatformProviderConfig } from '../platform/types.js';
|
|
6
7
|
|
|
7
8
|
export interface IRequest_Any_Cloudly_GetServerConfig
|
|
8
9
|
extends plugins.typedrequestInterfaces.implementsTR<
|
|
@@ -31,6 +32,8 @@ extends plugins.typedrequestInterfaces.implementsTR<
|
|
|
31
32
|
response: {
|
|
32
33
|
configData: clusterInterfaces.ICluster;
|
|
33
34
|
services: IService[];
|
|
35
|
+
platformProviderConfigs?: IPlatformProviderConfig[];
|
|
36
|
+
platformBindings?: IPlatformBinding[];
|
|
34
37
|
};
|
|
35
38
|
}
|
|
36
39
|
|
|
@@ -43,6 +46,8 @@ extends plugins.typedrequestInterfaces.implementsTR<
|
|
|
43
46
|
request: {
|
|
44
47
|
configData: clusterInterfaces.ICluster;
|
|
45
48
|
services: IService[];
|
|
49
|
+
platformProviderConfigs?: IPlatformProviderConfig[];
|
|
50
|
+
platformBindings?: IPlatformBinding[];
|
|
46
51
|
};
|
|
47
52
|
response: {};
|
|
48
53
|
}
|
package/ts/requests/index.ts
CHANGED
|
@@ -15,6 +15,7 @@ import * as informRequests from './inform.js';
|
|
|
15
15
|
import * as logRequests from './log.js';
|
|
16
16
|
import * as networkRequests from './network.js';
|
|
17
17
|
import * as nodeRequests from './node.js';
|
|
18
|
+
import * as platformRequests from './platform.js';
|
|
18
19
|
import * as routingRequests from './routing.js';
|
|
19
20
|
import * as secretBundleRequests from './secretbundle.js';
|
|
20
21
|
import * as secretGroupRequests from './secretgroup.js';
|
|
@@ -41,6 +42,7 @@ export {
|
|
|
41
42
|
logRequests as log,
|
|
42
43
|
networkRequests as network,
|
|
43
44
|
nodeRequests as node,
|
|
45
|
+
platformRequests as platform,
|
|
44
46
|
routingRequests as routing,
|
|
45
47
|
secretBundleRequests as secretbundle,
|
|
46
48
|
secretGroupRequests as secretgroup,
|
|
@@ -52,4 +54,4 @@ export {
|
|
|
52
54
|
versionRequests as version,
|
|
53
55
|
};
|
|
54
56
|
|
|
55
|
-
export * from './inform.js';
|
|
57
|
+
export * from './inform.js';
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
import type { IIdentity } from '../data/user.js';
|
|
3
|
+
import type {
|
|
4
|
+
IPlatformBinding,
|
|
5
|
+
IPlatformCapability,
|
|
6
|
+
IPlatformProviderConfig,
|
|
7
|
+
TPlatformBindingStatus,
|
|
8
|
+
} from '../platform/types.js';
|
|
9
|
+
|
|
10
|
+
export interface IReq_Any_Cloudly_GetPlatformDesiredState
|
|
11
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
12
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
13
|
+
IReq_Any_Cloudly_GetPlatformDesiredState
|
|
14
|
+
> {
|
|
15
|
+
method: 'getPlatformDesiredState';
|
|
16
|
+
request: {
|
|
17
|
+
identity: IIdentity;
|
|
18
|
+
};
|
|
19
|
+
response: {
|
|
20
|
+
capabilities: IPlatformCapability[];
|
|
21
|
+
providerConfigs: IPlatformProviderConfig[];
|
|
22
|
+
bindings: IPlatformBinding[];
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface IReq_Any_Cloudly_GetPlatformCapabilities
|
|
27
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
28
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
29
|
+
IReq_Any_Cloudly_GetPlatformCapabilities
|
|
30
|
+
> {
|
|
31
|
+
method: 'getPlatformCapabilities';
|
|
32
|
+
request: {
|
|
33
|
+
identity: IIdentity;
|
|
34
|
+
};
|
|
35
|
+
response: {
|
|
36
|
+
capabilities: IPlatformCapability[];
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface IReq_Any_Cloudly_GetPlatformProviderConfigs
|
|
41
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
42
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
43
|
+
IReq_Any_Cloudly_GetPlatformProviderConfigs
|
|
44
|
+
> {
|
|
45
|
+
method: 'getPlatformProviderConfigs';
|
|
46
|
+
request: {
|
|
47
|
+
identity: IIdentity;
|
|
48
|
+
capability?: IPlatformProviderConfig['capability'];
|
|
49
|
+
};
|
|
50
|
+
response: {
|
|
51
|
+
providerConfigs: IPlatformProviderConfig[];
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface IReq_Any_Cloudly_UpsertPlatformProviderConfig
|
|
56
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
57
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
58
|
+
IReq_Any_Cloudly_UpsertPlatformProviderConfig
|
|
59
|
+
> {
|
|
60
|
+
method: 'upsertPlatformProviderConfig';
|
|
61
|
+
request: {
|
|
62
|
+
identity: IIdentity;
|
|
63
|
+
providerConfig: IPlatformProviderConfig;
|
|
64
|
+
};
|
|
65
|
+
response: {
|
|
66
|
+
providerConfig: IPlatformProviderConfig;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface IReq_Any_Cloudly_DeletePlatformProviderConfigById
|
|
71
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
72
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
73
|
+
IReq_Any_Cloudly_DeletePlatformProviderConfigById
|
|
74
|
+
> {
|
|
75
|
+
method: 'deletePlatformProviderConfigById';
|
|
76
|
+
request: {
|
|
77
|
+
identity: IIdentity;
|
|
78
|
+
providerConfigId: string;
|
|
79
|
+
};
|
|
80
|
+
response: {
|
|
81
|
+
success: boolean;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface IReq_Any_Cloudly_GetPlatformBindings
|
|
86
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
87
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
88
|
+
IReq_Any_Cloudly_GetPlatformBindings
|
|
89
|
+
> {
|
|
90
|
+
method: 'getPlatformBindings';
|
|
91
|
+
request: {
|
|
92
|
+
identity: IIdentity;
|
|
93
|
+
serviceId?: string;
|
|
94
|
+
capability?: IPlatformBinding['capability'];
|
|
95
|
+
};
|
|
96
|
+
response: {
|
|
97
|
+
bindings: IPlatformBinding[];
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface IReq_Any_Cloudly_UpsertPlatformBinding
|
|
102
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
103
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
104
|
+
IReq_Any_Cloudly_UpsertPlatformBinding
|
|
105
|
+
> {
|
|
106
|
+
method: 'upsertPlatformBinding';
|
|
107
|
+
request: {
|
|
108
|
+
identity: IIdentity;
|
|
109
|
+
binding: IPlatformBinding;
|
|
110
|
+
};
|
|
111
|
+
response: {
|
|
112
|
+
binding: IPlatformBinding;
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface IReq_Any_Cloudly_UpdatePlatformBindingStatus
|
|
117
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
118
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
119
|
+
IReq_Any_Cloudly_UpdatePlatformBindingStatus
|
|
120
|
+
> {
|
|
121
|
+
method: 'updatePlatformBindingStatus';
|
|
122
|
+
request: {
|
|
123
|
+
identity: IIdentity;
|
|
124
|
+
bindingId: string;
|
|
125
|
+
status: TPlatformBindingStatus;
|
|
126
|
+
endpoints?: IPlatformBinding['endpoints'];
|
|
127
|
+
credentials?: IPlatformBinding['credentials'];
|
|
128
|
+
errorText?: string;
|
|
129
|
+
};
|
|
130
|
+
response: {
|
|
131
|
+
binding: IPlatformBinding;
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface IReq_Any_Cloudly_DeletePlatformBindingById
|
|
136
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
137
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
138
|
+
IReq_Any_Cloudly_DeletePlatformBindingById
|
|
139
|
+
> {
|
|
140
|
+
method: 'deletePlatformBindingById';
|
|
141
|
+
request: {
|
|
142
|
+
identity: IIdentity;
|
|
143
|
+
bindingId: string;
|
|
144
|
+
};
|
|
145
|
+
response: {
|
|
146
|
+
success: boolean;
|
|
147
|
+
};
|
|
148
|
+
}
|
package/ts/requests/service.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
2
|
import type { IService } from '../data/service.js';
|
|
3
|
+
import type { IRegistryTarget } from '../data/registry.js';
|
|
3
4
|
import type { IIdentity } from '../data/user.js';
|
|
4
5
|
import type { IServiceRessources } from '../data/docker.js';
|
|
5
6
|
|
|
@@ -32,6 +33,22 @@ extends plugins.typedrequestInterfaces.implementsTR<
|
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
35
|
|
|
36
|
+
export interface IRequest_Any_Cloudly_GetServiceRegistryTarget
|
|
37
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
38
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
39
|
+
IRequest_Any_Cloudly_GetServiceRegistryTarget
|
|
40
|
+
> {
|
|
41
|
+
method: 'getServiceRegistryTarget';
|
|
42
|
+
request: {
|
|
43
|
+
identity: IIdentity;
|
|
44
|
+
serviceId: string;
|
|
45
|
+
tag?: string;
|
|
46
|
+
};
|
|
47
|
+
response: {
|
|
48
|
+
registryTarget: IRegistryTarget;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
35
52
|
export interface IRequest_Any_Cloudly_CreateService
|
|
36
53
|
extends plugins.typedrequestInterfaces.implementsTR<
|
|
37
54
|
plugins.typedrequestInterfaces.ITypedRequest,
|