@serve.zone/interfaces 14.0.0 → 16.0.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.
@@ -2,13 +2,54 @@ import * as plugins from '../plugins.js';
2
2
  import type { IService } from '../data/service.js';
3
3
  import type { TServiceWritableData } from '../data/service.js';
4
4
  import type { IRegistryTarget } from '../data/registry.js';
5
- import type { IIdentity } from '../data/user.js';
5
+ import type { IIdentity, IIdentityCredential } from '../data/user.js';
6
6
  import type { IServiceRessources } from '../data/docker.js';
7
7
  import type { IImageRelease } from '../data/immutableimage.js';
8
8
  import type {
9
9
  IDeploymentPreflightReport,
10
10
  IDeploymentPreflightRequestData,
11
11
  } from '../data/deploymentpreflight.js';
12
+ import type {
13
+ IDeploymentReservationInput,
14
+ IServiceDeploymentOperation,
15
+ IServiceDeploymentStatus,
16
+ } from '../data/deploymentoperation.js';
17
+ import type { TSha256Digest } from '../data/immutableimage.js';
18
+ import type {
19
+ IServiceDeploymentAdoptionInput,
20
+ IServiceDeploymentAdoptionPreflightInput,
21
+ IServiceDeploymentAdoptionReport,
22
+ IServiceDeploymentAdoptionResult,
23
+ } from '../data/deploymentadoption.js';
24
+
25
+ export interface IRequest_Any_Cloudly_GetServiceDeploymentAdoptionPreflight
26
+ extends plugins.typedrequestInterfaces.implementsTR<
27
+ plugins.typedrequestInterfaces.ITypedRequest,
28
+ IRequest_Any_Cloudly_GetServiceDeploymentAdoptionPreflight
29
+ > {
30
+ method: 'getServiceDeploymentAdoptionPreflight';
31
+ request: IServiceDeploymentAdoptionPreflightInput & {
32
+ identity: IIdentityCredential;
33
+ };
34
+ response: {
35
+ report: IServiceDeploymentAdoptionReport;
36
+ };
37
+ }
38
+
39
+ export interface IRequest_Any_Cloudly_AdoptServiceDeployment
40
+ extends plugins.typedrequestInterfaces.implementsTR<
41
+ plugins.typedrequestInterfaces.ITypedRequest,
42
+ IRequest_Any_Cloudly_AdoptServiceDeployment
43
+ > {
44
+ method: 'adoptServiceDeployment';
45
+ request: IServiceDeploymentAdoptionInput & {
46
+ identity: IIdentityCredential;
47
+ };
48
+ response: {
49
+ service: IService;
50
+ result: IServiceDeploymentAdoptionResult;
51
+ };
52
+ }
12
53
 
13
54
  export interface IRequest_Any_Cloudly_GetDeploymentPreflight
14
55
  extends plugins.typedrequestInterfaces.implementsTR<
@@ -17,7 +58,7 @@ extends plugins.typedrequestInterfaces.implementsTR<
17
58
  > {
18
59
  method: 'getDeploymentPreflight';
19
60
  request: IDeploymentPreflightRequestData & {
20
- identity: IIdentity;
61
+ identity: IIdentityCredential;
21
62
  };
22
63
  response: {
23
64
  report: IDeploymentPreflightReport;
@@ -76,8 +117,9 @@ extends plugins.typedrequestInterfaces.implementsTR<
76
117
  > {
77
118
  method: 'getServiceImageReleases';
78
119
  request: {
79
- identity: IIdentity;
120
+ identity: IIdentityCredential;
80
121
  serviceId: string;
122
+ operationId?: string;
81
123
  };
82
124
  response: {
83
125
  releases: IImageRelease[];
@@ -91,9 +133,14 @@ extends plugins.typedrequestInterfaces.implementsTR<
91
133
  > {
92
134
  method: 'promoteServiceImageRelease';
93
135
  request: {
94
- identity: IIdentity;
136
+ identity: IIdentityCredential;
137
+ operationId: string;
95
138
  serviceId: string;
96
139
  releaseId: string;
140
+ expectedRepository: string;
141
+ expectedTag: string;
142
+ expectedDigest: TSha256Digest;
143
+ expectedOperationRevision: number;
97
144
  idempotencyKey: string;
98
145
  expectedRolloutGeneration: number;
99
146
  expectedCurrentRolloutId?: string;
@@ -102,6 +149,7 @@ extends plugins.typedrequestInterfaces.implementsTR<
102
149
  };
103
150
  response: {
104
151
  service: IService;
152
+ operation: IServiceDeploymentOperation;
105
153
  };
106
154
  }
107
155
 
@@ -112,15 +160,106 @@ extends plugins.typedrequestInterfaces.implementsTR<
112
160
  > {
113
161
  method: 'rollbackServiceImageRelease';
114
162
  request: {
115
- identity: IIdentity;
163
+ identity: IIdentityCredential;
164
+ operationId: string;
116
165
  serviceId: string;
117
166
  releaseId: string;
167
+ expectedRepository: string;
168
+ expectedTag: string;
169
+ expectedDigest: TSha256Digest;
170
+ expectedOperationRevision: number;
118
171
  idempotencyKey: string;
119
172
  expectedCurrentRolloutId: string;
120
173
  expectedRolloutGeneration: number;
121
174
  };
122
175
  response: {
123
176
  service: IService;
177
+ operation: IServiceDeploymentOperation;
178
+ };
179
+ }
180
+
181
+ export interface IRequest_Any_Cloudly_ReserveServiceDeployment
182
+ extends plugins.typedrequestInterfaces.implementsTR<
183
+ plugins.typedrequestInterfaces.ITypedRequest,
184
+ IRequest_Any_Cloudly_ReserveServiceDeployment
185
+ > {
186
+ method: 'reserveServiceDeployment';
187
+ request: {
188
+ identity: IIdentityCredential;
189
+ } & IDeploymentReservationInput;
190
+ response: {
191
+ operation: IServiceDeploymentOperation;
192
+ registryTarget: IRegistryTarget;
193
+ };
194
+ }
195
+
196
+ export interface IRequest_Any_Cloudly_GetServiceDeploymentStatus
197
+ extends plugins.typedrequestInterfaces.implementsTR<
198
+ plugins.typedrequestInterfaces.ITypedRequest,
199
+ IRequest_Any_Cloudly_GetServiceDeploymentStatus
200
+ > {
201
+ method: 'getServiceDeploymentStatus';
202
+ request: {
203
+ identity: IIdentityCredential;
204
+ serviceId: string;
205
+ operationId: string;
206
+ };
207
+ response: {
208
+ status: IServiceDeploymentStatus;
209
+ };
210
+ }
211
+
212
+ export interface IRequest_Any_Cloudly_PromoteServiceDeploymentRoute
213
+ extends plugins.typedrequestInterfaces.implementsTR<
214
+ plugins.typedrequestInterfaces.ITypedRequest,
215
+ IRequest_Any_Cloudly_PromoteServiceDeploymentRoute
216
+ > {
217
+ method: 'promoteServiceDeploymentRoute';
218
+ request: {
219
+ identity: IIdentityCredential;
220
+ serviceId: string;
221
+ operationId: string;
222
+ expectedOperationRevision: number;
223
+ expectedRolloutId: string;
224
+ expectedRolloutGeneration: number;
225
+ expectedDigest: TSha256Digest;
226
+ };
227
+ response: {
228
+ status: IServiceDeploymentStatus;
229
+ };
230
+ }
231
+
232
+ export interface IRequest_Any_Cloudly_RetryServiceDeployment
233
+ extends plugins.typedrequestInterfaces.implementsTR<
234
+ plugins.typedrequestInterfaces.ITypedRequest,
235
+ IRequest_Any_Cloudly_RetryServiceDeployment
236
+ > {
237
+ method: 'retryServiceDeployment';
238
+ request: {
239
+ identity: IIdentityCredential;
240
+ serviceId: string;
241
+ operationId: string;
242
+ expectedOperationRevision: number;
243
+ };
244
+ response: {
245
+ operation: IServiceDeploymentOperation;
246
+ };
247
+ }
248
+
249
+ export interface IRequest_Any_Cloudly_CleanupServiceDeployment
250
+ extends plugins.typedrequestInterfaces.implementsTR<
251
+ plugins.typedrequestInterfaces.ITypedRequest,
252
+ IRequest_Any_Cloudly_CleanupServiceDeployment
253
+ > {
254
+ method: 'cleanupServiceDeployment';
255
+ request: {
256
+ identity: IIdentityCredential;
257
+ serviceId: string;
258
+ operationId: string;
259
+ expectedOperationRevision: number;
260
+ };
261
+ response: {
262
+ operation: IServiceDeploymentOperation;
124
263
  };
125
264
  }
126
265