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