@serve.zone/interfaces 5.4.6 → 5.8.0

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.
@@ -0,0 +1,198 @@
1
+ import * as plugins from '../plugins.js';
2
+ import type {
3
+ IBackupArchiveManifest,
4
+ IBackupArchiveObject,
5
+ IBackupRecord,
6
+ IBackupReplicationResult,
7
+ TBackupSnapshot,
8
+ } from '../data/backup.js';
9
+ import type { IService } from '../data/service.js';
10
+ import type { IIdentity } from '../data/user.js';
11
+
12
+ export interface IReq_Any_Cloudly_CreateServiceBackup
13
+ extends plugins.typedrequestInterfaces.implementsTR<
14
+ plugins.typedrequestInterfaces.ITypedRequest,
15
+ IReq_Any_Cloudly_CreateServiceBackup
16
+ > {
17
+ method: 'createServiceBackup';
18
+ request: {
19
+ identity: IIdentity;
20
+ serviceId: string;
21
+ clusterId?: string;
22
+ tags?: Record<string, string>;
23
+ replicate?: boolean;
24
+ };
25
+ response: {
26
+ backup: IBackupRecord;
27
+ };
28
+ }
29
+
30
+ export interface IReq_Any_Cloudly_GetServiceBackups
31
+ extends plugins.typedrequestInterfaces.implementsTR<
32
+ plugins.typedrequestInterfaces.ITypedRequest,
33
+ IReq_Any_Cloudly_GetServiceBackups
34
+ > {
35
+ method: 'getServiceBackups';
36
+ request: {
37
+ identity: IIdentity;
38
+ serviceId?: string;
39
+ status?: IBackupRecord['status'];
40
+ };
41
+ response: {
42
+ backups: IBackupRecord[];
43
+ };
44
+ }
45
+
46
+ export interface IReq_Any_Cloudly_GetBackupById
47
+ extends plugins.typedrequestInterfaces.implementsTR<
48
+ plugins.typedrequestInterfaces.ITypedRequest,
49
+ IReq_Any_Cloudly_GetBackupById
50
+ > {
51
+ method: 'getBackupById';
52
+ request: {
53
+ identity: IIdentity;
54
+ backupId: string;
55
+ };
56
+ response: {
57
+ backup: IBackupRecord;
58
+ };
59
+ }
60
+
61
+ export interface IReq_Any_Cloudly_RestoreServiceBackup
62
+ extends plugins.typedrequestInterfaces.implementsTR<
63
+ plugins.typedrequestInterfaces.ITypedRequest,
64
+ IReq_Any_Cloudly_RestoreServiceBackup
65
+ > {
66
+ method: 'restoreServiceBackup';
67
+ request: {
68
+ identity: IIdentity;
69
+ backupId: string;
70
+ clear?: boolean;
71
+ resourceTypes?: Array<TBackupSnapshot['type']>;
72
+ };
73
+ response: {
74
+ backup: IBackupRecord;
75
+ };
76
+ }
77
+
78
+ export interface IReq_Cloudly_Coreflow_ExecuteServiceBackup
79
+ extends plugins.typedrequestInterfaces.implementsTR<
80
+ plugins.typedrequestInterfaces.ITypedRequest,
81
+ IReq_Cloudly_Coreflow_ExecuteServiceBackup
82
+ > {
83
+ method: 'executeServiceBackup';
84
+ request: {
85
+ backupId: string;
86
+ service: IService;
87
+ tags?: Record<string, string>;
88
+ replication?: {
89
+ enabled: boolean;
90
+ };
91
+ };
92
+ response: {
93
+ snapshots: TBackupSnapshot[];
94
+ replication?: IBackupReplicationResult;
95
+ };
96
+ }
97
+
98
+ export interface IReq_Cloudly_Coreflow_ExecuteServiceRestore
99
+ extends plugins.typedrequestInterfaces.implementsTR<
100
+ plugins.typedrequestInterfaces.ITypedRequest,
101
+ IReq_Cloudly_Coreflow_ExecuteServiceRestore
102
+ > {
103
+ method: 'executeServiceRestore';
104
+ request: {
105
+ backupId: string;
106
+ service: IService;
107
+ snapshots: TBackupSnapshot[];
108
+ clear?: boolean;
109
+ resourceTypes?: Array<TBackupSnapshot['type']>;
110
+ replication?: {
111
+ enabled: boolean;
112
+ };
113
+ };
114
+ response: {
115
+ restored: TBackupSnapshot[];
116
+ };
117
+ }
118
+
119
+ export interface IReq_Coreflow_Cloudly_PrepareBackupReplication
120
+ extends plugins.typedrequestInterfaces.implementsTR<
121
+ plugins.typedrequestInterfaces.ITypedRequest,
122
+ IReq_Coreflow_Cloudly_PrepareBackupReplication
123
+ > {
124
+ method: 'prepareBackupReplication';
125
+ request: {
126
+ identity: IIdentity;
127
+ backupId: string;
128
+ manifest: IBackupArchiveManifest;
129
+ };
130
+ response: {
131
+ missingObjects: IBackupArchiveObject[];
132
+ };
133
+ }
134
+
135
+ export interface IReq_Coreflow_Cloudly_UploadBackupArchiveObject
136
+ extends plugins.typedrequestInterfaces.implementsTR<
137
+ plugins.typedrequestInterfaces.ITypedRequest,
138
+ IReq_Coreflow_Cloudly_UploadBackupArchiveObject
139
+ > {
140
+ method: 'uploadBackupArchiveObject';
141
+ request: {
142
+ identity: IIdentity;
143
+ backupId: string;
144
+ object: IBackupArchiveObject;
145
+ contentsBase64: string;
146
+ };
147
+ response: {
148
+ accepted: boolean;
149
+ };
150
+ }
151
+
152
+ export interface IReq_Coreflow_Cloudly_CompleteBackupReplication
153
+ extends plugins.typedrequestInterfaces.implementsTR<
154
+ plugins.typedrequestInterfaces.ITypedRequest,
155
+ IReq_Coreflow_Cloudly_CompleteBackupReplication
156
+ > {
157
+ method: 'completeBackupReplication';
158
+ request: {
159
+ identity: IIdentity;
160
+ backupId: string;
161
+ manifest: IBackupArchiveManifest;
162
+ };
163
+ response: {
164
+ replication: IBackupReplicationResult;
165
+ };
166
+ }
167
+
168
+ export interface IReq_Coreflow_Cloudly_GetBackupArchiveManifest
169
+ extends plugins.typedrequestInterfaces.implementsTR<
170
+ plugins.typedrequestInterfaces.ITypedRequest,
171
+ IReq_Coreflow_Cloudly_GetBackupArchiveManifest
172
+ > {
173
+ method: 'getBackupArchiveManifest';
174
+ request: {
175
+ identity: IIdentity;
176
+ backupId: string;
177
+ };
178
+ response: {
179
+ manifest: IBackupArchiveManifest;
180
+ };
181
+ }
182
+
183
+ export interface IReq_Coreflow_Cloudly_DownloadBackupArchiveObject
184
+ extends plugins.typedrequestInterfaces.implementsTR<
185
+ plugins.typedrequestInterfaces.ITypedRequest,
186
+ IReq_Coreflow_Cloudly_DownloadBackupArchiveObject
187
+ > {
188
+ method: 'downloadBackupArchiveObject';
189
+ request: {
190
+ identity: IIdentity;
191
+ backupId: string;
192
+ object: IBackupArchiveObject;
193
+ };
194
+ response: {
195
+ object: IBackupArchiveObject;
196
+ contentsBase64: string;
197
+ };
198
+ }
@@ -0,0 +1,93 @@
1
+ import type {
2
+ IBaseOsHeartbeatResult,
3
+ IBaseOsDesiredState,
4
+ IBaseOsImageBuild,
5
+ IBaseOsImageBuildRequest,
6
+ IBaseOsImageDownloadUrl,
7
+ IBaseOsNode,
8
+ IBaseOsRegisterResult,
9
+ IBaseOsRuntimeInfo,
10
+ } from '../data/baseos.js';
11
+ import type { IIdentity } from '../data/user.js';
12
+
13
+ export interface IRequest_BaseOs_Cloudly_RegisterNode {
14
+ method: 'baseOsRegisterNode';
15
+ request: {
16
+ joinToken?: string;
17
+ nodeToken?: string;
18
+ status: IBaseOsRuntimeInfo;
19
+ };
20
+ response: IBaseOsRegisterResult;
21
+ }
22
+
23
+ export interface IRequest_BaseOs_Cloudly_SendHeartbeat {
24
+ method: 'baseOsSendHeartbeat';
25
+ request: {
26
+ nodeToken: string;
27
+ status: IBaseOsRuntimeInfo;
28
+ };
29
+ response: IBaseOsHeartbeatResult;
30
+ }
31
+
32
+ export interface IRequest_Any_Cloudly_GetBaseOsNodes {
33
+ method: 'getBaseOsNodes';
34
+ request: {
35
+ identity: IIdentity;
36
+ };
37
+ response: {
38
+ nodes: IBaseOsNode[];
39
+ };
40
+ }
41
+
42
+ export interface IRequest_Any_Cloudly_SetBaseOsNodeDesiredState {
43
+ method: 'setBaseOsNodeDesiredState';
44
+ request: {
45
+ identity: IIdentity;
46
+ nodeId: string;
47
+ desiredState: IBaseOsDesiredState;
48
+ };
49
+ response: {
50
+ node: IBaseOsNode;
51
+ };
52
+ }
53
+
54
+ export interface IRequest_Any_Cloudly_CreateBaseOsImageBuild {
55
+ method: 'createBaseOsImageBuild';
56
+ request: {
57
+ identity: IIdentity;
58
+ build: IBaseOsImageBuildRequest;
59
+ };
60
+ response: {
61
+ build: IBaseOsImageBuild;
62
+ };
63
+ }
64
+
65
+ export interface IRequest_Any_Cloudly_GetBaseOsImageBuilds {
66
+ method: 'getBaseOsImageBuilds';
67
+ request: {
68
+ identity: IIdentity;
69
+ };
70
+ response: {
71
+ builds: IBaseOsImageBuild[];
72
+ };
73
+ }
74
+
75
+ export interface IRequest_Any_Cloudly_GetBaseOsImageBuildById {
76
+ method: 'getBaseOsImageBuildById';
77
+ request: {
78
+ identity: IIdentity;
79
+ buildId: string;
80
+ };
81
+ response: {
82
+ build: IBaseOsImageBuild;
83
+ };
84
+ }
85
+
86
+ export interface IRequest_Any_Cloudly_CreateBaseOsImageDownloadUrl {
87
+ method: 'createBaseOsImageDownloadUrl';
88
+ request: {
89
+ identity: IIdentity;
90
+ buildId: string;
91
+ };
92
+ response: IBaseOsImageDownloadUrl;
93
+ }
@@ -58,6 +58,7 @@ export interface IReq_Any_Cloudly_UpdateCluster extends plugins.typedrequestInte
58
58
  method: 'updateCluster';
59
59
  request: {
60
60
  identity: userInterfaces.IIdentity;
61
+ clusterId: string;
61
62
  clusterData: clusterInterfaces.ICluster['data'];
62
63
  };
63
64
  response: {
@@ -2,6 +2,8 @@ import * as plugins from '../plugins.js';
2
2
 
3
3
  import * as adminRequests from './admin.js';
4
4
  import * as baremetalRequests from './baremetal.js';
5
+ import * as baseOsRequests from './baseos.js';
6
+ import * as backupRequests from './backup.js';
5
7
  import * as certificateRequests from './certificate.js';
6
8
  import * as clusterRequests from './cluster.js';
7
9
  import * as configRequests from './config.js';
@@ -29,6 +31,8 @@ import * as versionRequests from './version.js';
29
31
  export {
30
32
  adminRequests as admin,
31
33
  baremetalRequests as baremetal,
34
+ baseOsRequests as baseos,
35
+ backupRequests as backup,
32
36
  certificateRequests as certificate,
33
37
  clusterRequests as cluster,
34
38
  configRequests as config,