@serve.zone/interfaces 13.0.1 → 15.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,19 @@ 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';
12
18
 
13
19
  export interface IRequest_Any_Cloudly_GetDeploymentPreflight
14
20
  extends plugins.typedrequestInterfaces.implementsTR<
@@ -17,7 +23,7 @@ extends plugins.typedrequestInterfaces.implementsTR<
17
23
  > {
18
24
  method: 'getDeploymentPreflight';
19
25
  request: IDeploymentPreflightRequestData & {
20
- identity: IIdentity;
26
+ identity: IIdentityCredential;
21
27
  };
22
28
  response: {
23
29
  report: IDeploymentPreflightReport;
@@ -76,8 +82,9 @@ extends plugins.typedrequestInterfaces.implementsTR<
76
82
  > {
77
83
  method: 'getServiceImageReleases';
78
84
  request: {
79
- identity: IIdentity;
85
+ identity: IIdentityCredential;
80
86
  serviceId: string;
87
+ operationId?: string;
81
88
  };
82
89
  response: {
83
90
  releases: IImageRelease[];
@@ -91,9 +98,14 @@ extends plugins.typedrequestInterfaces.implementsTR<
91
98
  > {
92
99
  method: 'promoteServiceImageRelease';
93
100
  request: {
94
- identity: IIdentity;
101
+ identity: IIdentityCredential;
102
+ operationId: string;
95
103
  serviceId: string;
96
104
  releaseId: string;
105
+ expectedRepository: string;
106
+ expectedTag: string;
107
+ expectedDigest: TSha256Digest;
108
+ expectedOperationRevision: number;
97
109
  idempotencyKey: string;
98
110
  expectedRolloutGeneration: number;
99
111
  expectedCurrentRolloutId?: string;
@@ -102,6 +114,7 @@ extends plugins.typedrequestInterfaces.implementsTR<
102
114
  };
103
115
  response: {
104
116
  service: IService;
117
+ operation: IServiceDeploymentOperation;
105
118
  };
106
119
  }
107
120
 
@@ -112,15 +125,106 @@ extends plugins.typedrequestInterfaces.implementsTR<
112
125
  > {
113
126
  method: 'rollbackServiceImageRelease';
114
127
  request: {
115
- identity: IIdentity;
128
+ identity: IIdentityCredential;
129
+ operationId: string;
116
130
  serviceId: string;
117
131
  releaseId: string;
132
+ expectedRepository: string;
133
+ expectedTag: string;
134
+ expectedDigest: TSha256Digest;
135
+ expectedOperationRevision: number;
118
136
  idempotencyKey: string;
119
137
  expectedCurrentRolloutId: string;
120
138
  expectedRolloutGeneration: number;
121
139
  };
122
140
  response: {
123
141
  service: IService;
142
+ operation: IServiceDeploymentOperation;
143
+ };
144
+ }
145
+
146
+ export interface IRequest_Any_Cloudly_ReserveServiceDeployment
147
+ extends plugins.typedrequestInterfaces.implementsTR<
148
+ plugins.typedrequestInterfaces.ITypedRequest,
149
+ IRequest_Any_Cloudly_ReserveServiceDeployment
150
+ > {
151
+ method: 'reserveServiceDeployment';
152
+ request: {
153
+ identity: IIdentityCredential;
154
+ } & IDeploymentReservationInput;
155
+ response: {
156
+ operation: IServiceDeploymentOperation;
157
+ registryTarget: IRegistryTarget;
158
+ };
159
+ }
160
+
161
+ export interface IRequest_Any_Cloudly_GetServiceDeploymentStatus
162
+ extends plugins.typedrequestInterfaces.implementsTR<
163
+ plugins.typedrequestInterfaces.ITypedRequest,
164
+ IRequest_Any_Cloudly_GetServiceDeploymentStatus
165
+ > {
166
+ method: 'getServiceDeploymentStatus';
167
+ request: {
168
+ identity: IIdentityCredential;
169
+ serviceId: string;
170
+ operationId: string;
171
+ };
172
+ response: {
173
+ status: IServiceDeploymentStatus;
174
+ };
175
+ }
176
+
177
+ export interface IRequest_Any_Cloudly_PromoteServiceDeploymentRoute
178
+ extends plugins.typedrequestInterfaces.implementsTR<
179
+ plugins.typedrequestInterfaces.ITypedRequest,
180
+ IRequest_Any_Cloudly_PromoteServiceDeploymentRoute
181
+ > {
182
+ method: 'promoteServiceDeploymentRoute';
183
+ request: {
184
+ identity: IIdentityCredential;
185
+ serviceId: string;
186
+ operationId: string;
187
+ expectedOperationRevision: number;
188
+ expectedRolloutId: string;
189
+ expectedRolloutGeneration: number;
190
+ expectedDigest: TSha256Digest;
191
+ };
192
+ response: {
193
+ status: IServiceDeploymentStatus;
194
+ };
195
+ }
196
+
197
+ export interface IRequest_Any_Cloudly_RetryServiceDeployment
198
+ extends plugins.typedrequestInterfaces.implementsTR<
199
+ plugins.typedrequestInterfaces.ITypedRequest,
200
+ IRequest_Any_Cloudly_RetryServiceDeployment
201
+ > {
202
+ method: 'retryServiceDeployment';
203
+ request: {
204
+ identity: IIdentityCredential;
205
+ serviceId: string;
206
+ operationId: string;
207
+ expectedOperationRevision: number;
208
+ };
209
+ response: {
210
+ operation: IServiceDeploymentOperation;
211
+ };
212
+ }
213
+
214
+ export interface IRequest_Any_Cloudly_CleanupServiceDeployment
215
+ extends plugins.typedrequestInterfaces.implementsTR<
216
+ plugins.typedrequestInterfaces.ITypedRequest,
217
+ IRequest_Any_Cloudly_CleanupServiceDeployment
218
+ > {
219
+ method: 'cleanupServiceDeployment';
220
+ request: {
221
+ identity: IIdentityCredential;
222
+ serviceId: string;
223
+ operationId: string;
224
+ expectedOperationRevision: number;
225
+ };
226
+ response: {
227
+ operation: IServiceDeploymentOperation;
124
228
  };
125
229
  }
126
230