@blockscout/autoscout-types 1.6.0-alpha.0 → 1.6.0-alpha.2

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.
@@ -83,6 +83,12 @@ export interface DeploymentLog {
83
83
  severity: string;
84
84
  container: string;
85
85
  }
86
+ export interface DeploymentHourStorageUsage {
87
+ timestamp: string;
88
+ usage_mb: number;
89
+ free_quota_mb: number;
90
+ overage_cost_per_gb_hour: string;
91
+ }
86
92
  export interface UserAction {
87
93
  action: string;
88
94
  instance_id?: string | undefined;
@@ -219,6 +225,21 @@ export interface ListInstancesRequest {
219
225
  export interface ListInstancesResponse {
220
226
  items: Instance[];
221
227
  }
228
+ export interface SyncDeploymentsServerSpecRequest {
229
+ all_running: boolean;
230
+ deployment_ids: string[];
231
+ dry_run: boolean;
232
+ }
233
+ export interface SyncDeploymentsServerSpecItem {
234
+ ok: boolean;
235
+ error?: string | undefined;
236
+ deployment_id: string;
237
+ }
238
+ export interface SyncDeploymentsServerSpecResponse {
239
+ total: number;
240
+ total_errors: number;
241
+ items: SyncDeploymentsServerSpecItem[];
242
+ }
222
243
  export interface GetDeploymentRequest {
223
244
  deployment_id: string;
224
245
  }
@@ -228,6 +249,16 @@ export interface ListDeploymentsRequest {
228
249
  export interface ListDeploymentsResponse {
229
250
  items: Deployment[];
230
251
  }
252
+ export interface GetDeploymentStorageUsageRequest {
253
+ deployment_id: string;
254
+ from?: string | undefined;
255
+ to?: string | undefined;
256
+ }
257
+ export interface GetDeploymentStorageUsageResponse {
258
+ storage_data: DeploymentHourStorageUsage[];
259
+ /** timestamp (hour) until which the deployment's storage has been paid for */
260
+ paid_until?: string | undefined;
261
+ }
231
262
  export interface GetCurrentDeploymentRequest {
232
263
  instance_id: string;
233
264
  }
@@ -362,12 +393,14 @@ export interface Autoscout {
362
393
  DeleteInstance(request: DeleteInstanceRequest): Promise<DeleteInstanceResponse>;
363
394
  /** Get list of all owned instances */
364
395
  ListInstances(request: ListInstancesRequest): Promise<ListInstancesResponse>;
396
+ SyncDeploymentsServerSpec(request: SyncDeploymentsServerSpecRequest): Promise<SyncDeploymentsServerSpecResponse>;
365
397
  /** Get detailed information about specific deployment */
366
398
  GetDeployment(request: GetDeploymentRequest): Promise<Deployment>;
367
399
  /** Get detailed information about current deployment of the instance */
368
400
  GetCurrentDeployment(request: GetCurrentDeploymentRequest): Promise<Deployment>;
369
401
  /** Get list of deployments of the instance */
370
402
  ListDeployments(request: ListDeploymentsRequest): Promise<ListDeploymentsResponse>;
403
+ GetDeploymentStorageUsage(request: GetDeploymentStorageUsageRequest): Promise<GetDeploymentStorageUsageResponse>;
371
404
  ListDeploymentLogs(request: ListDeploymentLogsRequest): Promise<ListDeploymentLogsResponse>;
372
405
  GetDeploymentLog(request: GetDeploymentLogRequest): Promise<DeploymentLog>;
373
406
  /** Register new profile */
@@ -98,6 +98,13 @@ export interface DeploymentLog {
98
98
  container: string;
99
99
  }
100
100
 
101
+ export interface DeploymentHourStorageUsage {
102
+ timestamp: string;
103
+ usage_mb: number;
104
+ free_quota_mb: number;
105
+ overage_cost_per_gb_hour: string;
106
+ }
107
+
101
108
  export interface UserAction {
102
109
  action: string;
103
110
  instance_id?: string | undefined;
@@ -259,6 +266,24 @@ export interface ListInstancesResponse {
259
266
  items: Instance[];
260
267
  }
261
268
 
269
+ export interface SyncDeploymentsServerSpecRequest {
270
+ all_running: boolean;
271
+ deployment_ids: string[];
272
+ dry_run: boolean;
273
+ }
274
+
275
+ export interface SyncDeploymentsServerSpecItem {
276
+ ok: boolean;
277
+ error?: string | undefined;
278
+ deployment_id: string;
279
+ }
280
+
281
+ export interface SyncDeploymentsServerSpecResponse {
282
+ total: number;
283
+ total_errors: number;
284
+ items: SyncDeploymentsServerSpecItem[];
285
+ }
286
+
262
287
  export interface GetDeploymentRequest {
263
288
  deployment_id: string;
264
289
  }
@@ -271,6 +296,18 @@ export interface ListDeploymentsResponse {
271
296
  items: Deployment[];
272
297
  }
273
298
 
299
+ export interface GetDeploymentStorageUsageRequest {
300
+ deployment_id: string;
301
+ from?: string | undefined;
302
+ to?: string | undefined;
303
+ }
304
+
305
+ export interface GetDeploymentStorageUsageResponse {
306
+ storage_data: DeploymentHourStorageUsage[];
307
+ /** timestamp (hour) until which the deployment's storage has been paid for */
308
+ paid_until?: string | undefined;
309
+ }
310
+
274
311
  export interface GetCurrentDeploymentRequest {
275
312
  instance_id: string;
276
313
  }
@@ -437,12 +474,14 @@ export interface Autoscout {
437
474
  DeleteInstance(request: DeleteInstanceRequest): Promise<DeleteInstanceResponse>;
438
475
  /** Get list of all owned instances */
439
476
  ListInstances(request: ListInstancesRequest): Promise<ListInstancesResponse>;
477
+ SyncDeploymentsServerSpec(request: SyncDeploymentsServerSpecRequest): Promise<SyncDeploymentsServerSpecResponse>;
440
478
  /** Get detailed information about specific deployment */
441
479
  GetDeployment(request: GetDeploymentRequest): Promise<Deployment>;
442
480
  /** Get detailed information about current deployment of the instance */
443
481
  GetCurrentDeployment(request: GetCurrentDeploymentRequest): Promise<Deployment>;
444
482
  /** Get list of deployments of the instance */
445
483
  ListDeployments(request: ListDeploymentsRequest): Promise<ListDeploymentsResponse>;
484
+ GetDeploymentStorageUsage(request: GetDeploymentStorageUsageRequest): Promise<GetDeploymentStorageUsageResponse>;
446
485
  ListDeploymentLogs(request: ListDeploymentLogsRequest): Promise<ListDeploymentLogsResponse>;
447
486
  GetDeploymentLog(request: GetDeploymentLogRequest): Promise<DeploymentLog>;
448
487
  /** Register new profile */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockscout/autoscout-types",
3
- "version": "1.6.0-alpha.0",
3
+ "version": "1.6.0-alpha.2",
4
4
  "description": "TypeScript definitions for Autoscout microservice",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",