@blockscout/autoscout-types 1.7.1 → 1.7.2-alpha
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.
- package/dist/v1/autoscout.d.ts +37 -0
- package/dist/v1/autoscout.js +1 -0
- package/dist/v1/autoscout.ts +42 -0
- package/package.json +1 -1
package/dist/v1/autoscout.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare enum DeploymentStatus {
|
|
|
4
4
|
NO_STATUS = "NO_STATUS",
|
|
5
5
|
CREATED = "CREATED",
|
|
6
6
|
PENDING = "PENDING",
|
|
7
|
+
UNHEALTHY = "UNHEALTHY",
|
|
7
8
|
RUNNING = "RUNNING",
|
|
8
9
|
STOPPING = "STOPPING",
|
|
9
10
|
STOPPED = "STOPPED",
|
|
@@ -103,6 +104,12 @@ export interface UserProfile {
|
|
|
103
104
|
recent_actions: UserAction[];
|
|
104
105
|
most_expensive_instances: MostExpensiveInstances | undefined;
|
|
105
106
|
}
|
|
107
|
+
export interface User {
|
|
108
|
+
email: string;
|
|
109
|
+
project_title?: string | undefined;
|
|
110
|
+
created_at: string;
|
|
111
|
+
balance: string;
|
|
112
|
+
}
|
|
106
113
|
export interface MostExpensiveInstances {
|
|
107
114
|
items: ExpensiveInstance[];
|
|
108
115
|
count: number;
|
|
@@ -226,6 +233,19 @@ export interface ListInstancesRequest {
|
|
|
226
233
|
export interface ListInstancesResponse {
|
|
227
234
|
items: Instance[];
|
|
228
235
|
}
|
|
236
|
+
export interface SearchInstancesRequest {
|
|
237
|
+
instance_id?: number | undefined;
|
|
238
|
+
instance_uuid?: string | undefined;
|
|
239
|
+
instance_slug?: string | undefined;
|
|
240
|
+
user_id?: number | undefined;
|
|
241
|
+
user_email?: string | undefined;
|
|
242
|
+
page?: number | undefined;
|
|
243
|
+
per_page?: number | undefined;
|
|
244
|
+
}
|
|
245
|
+
export interface SearchInstancesResponse {
|
|
246
|
+
items: Instance[];
|
|
247
|
+
pagination: PaginationResult | undefined;
|
|
248
|
+
}
|
|
229
249
|
export interface SyncDeploymentsServerSpecRequest {
|
|
230
250
|
all_running: boolean;
|
|
231
251
|
deployment_ids: string[];
|
|
@@ -331,6 +351,19 @@ export interface CreateUserAcquisitionSourceRequest {
|
|
|
331
351
|
}
|
|
332
352
|
export interface CreateUserAcquisitionSourceResponse {
|
|
333
353
|
}
|
|
354
|
+
export interface SearchUsersRequest {
|
|
355
|
+
user_id?: number | undefined;
|
|
356
|
+
user_email?: string | undefined;
|
|
357
|
+
user_roles: string[];
|
|
358
|
+
created_before?: string | undefined;
|
|
359
|
+
created_after?: string | undefined;
|
|
360
|
+
page?: number | undefined;
|
|
361
|
+
per_page?: number | undefined;
|
|
362
|
+
}
|
|
363
|
+
export interface SearchUsersResponse {
|
|
364
|
+
items: User[];
|
|
365
|
+
pagination: PaginationResult | undefined;
|
|
366
|
+
}
|
|
334
367
|
export interface CreateCoinbaseDepositRequest {
|
|
335
368
|
amount_cents: number;
|
|
336
369
|
promocode?: string | undefined;
|
|
@@ -404,6 +437,8 @@ export interface Autoscout {
|
|
|
404
437
|
DeleteInstance(request: DeleteInstanceRequest): Promise<DeleteInstanceResponse>;
|
|
405
438
|
/** Get list of all owned instances */
|
|
406
439
|
ListInstances(request: ListInstancesRequest): Promise<ListInstancesResponse>;
|
|
440
|
+
/** Search instances matching a set of filters */
|
|
441
|
+
SearchInstances(request: SearchInstancesRequest): Promise<SearchInstancesResponse>;
|
|
407
442
|
SyncDeploymentsServerSpec(request: SyncDeploymentsServerSpecRequest): Promise<SyncDeploymentsServerSpecResponse>;
|
|
408
443
|
/** Get detailed information about specific deployment */
|
|
409
444
|
GetDeployment(request: GetDeploymentRequest): Promise<Deployment>;
|
|
@@ -429,6 +464,8 @@ export interface Autoscout {
|
|
|
429
464
|
PreviewRegularPromocode(request: RegularPromocodeRequest): Promise<RegularPromocodeResponse>;
|
|
430
465
|
ActivateRegularPromocode(request: RegularPromocodeRequest): Promise<RegularPromocodeResponse>;
|
|
431
466
|
CreateUserAcquisitionSource(request: CreateUserAcquisitionSourceRequest): Promise<CreateUserAcquisitionSourceResponse>;
|
|
467
|
+
/** Search users matching a set of filters */
|
|
468
|
+
SearchUsers(request: SearchUsersRequest): Promise<SearchUsersResponse>;
|
|
432
469
|
ListDeposits(request: ListDepositsRequest): Promise<ListDepositsResponse>;
|
|
433
470
|
PreviewDeposit(request: PreviewDepositRequest): Promise<PreviewDepositResponse>;
|
|
434
471
|
CreateCoinbaseDeposit(request: CreateCoinbaseDepositRequest): Promise<CreateCoinbaseDepositResponse>;
|
package/dist/v1/autoscout.js
CHANGED
|
@@ -11,6 +11,7 @@ var DeploymentStatus;
|
|
|
11
11
|
DeploymentStatus["NO_STATUS"] = "NO_STATUS";
|
|
12
12
|
DeploymentStatus["CREATED"] = "CREATED";
|
|
13
13
|
DeploymentStatus["PENDING"] = "PENDING";
|
|
14
|
+
DeploymentStatus["UNHEALTHY"] = "UNHEALTHY";
|
|
14
15
|
DeploymentStatus["RUNNING"] = "RUNNING";
|
|
15
16
|
DeploymentStatus["STOPPING"] = "STOPPING";
|
|
16
17
|
DeploymentStatus["STOPPED"] = "STOPPED";
|
package/dist/v1/autoscout.ts
CHANGED
|
@@ -12,6 +12,7 @@ export enum DeploymentStatus {
|
|
|
12
12
|
NO_STATUS = "NO_STATUS",
|
|
13
13
|
CREATED = "CREATED",
|
|
14
14
|
PENDING = "PENDING",
|
|
15
|
+
UNHEALTHY = "UNHEALTHY",
|
|
15
16
|
RUNNING = "RUNNING",
|
|
16
17
|
STOPPING = "STOPPING",
|
|
17
18
|
STOPPED = "STOPPED",
|
|
@@ -121,6 +122,13 @@ export interface UserProfile {
|
|
|
121
122
|
most_expensive_instances: MostExpensiveInstances | undefined;
|
|
122
123
|
}
|
|
123
124
|
|
|
125
|
+
export interface User {
|
|
126
|
+
email: string;
|
|
127
|
+
project_title?: string | undefined;
|
|
128
|
+
created_at: string;
|
|
129
|
+
balance: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
124
132
|
export interface MostExpensiveInstances {
|
|
125
133
|
items: ExpensiveInstance[];
|
|
126
134
|
count: number;
|
|
@@ -267,6 +275,21 @@ export interface ListInstancesResponse {
|
|
|
267
275
|
items: Instance[];
|
|
268
276
|
}
|
|
269
277
|
|
|
278
|
+
export interface SearchInstancesRequest {
|
|
279
|
+
instance_id?: number | undefined;
|
|
280
|
+
instance_uuid?: string | undefined;
|
|
281
|
+
instance_slug?: string | undefined;
|
|
282
|
+
user_id?: number | undefined;
|
|
283
|
+
user_email?: string | undefined;
|
|
284
|
+
page?: number | undefined;
|
|
285
|
+
per_page?: number | undefined;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export interface SearchInstancesResponse {
|
|
289
|
+
items: Instance[];
|
|
290
|
+
pagination: PaginationResult | undefined;
|
|
291
|
+
}
|
|
292
|
+
|
|
270
293
|
export interface SyncDeploymentsServerSpecRequest {
|
|
271
294
|
all_running: boolean;
|
|
272
295
|
deployment_ids: string[];
|
|
@@ -399,6 +422,21 @@ export interface CreateUserAcquisitionSourceRequest {
|
|
|
399
422
|
export interface CreateUserAcquisitionSourceResponse {
|
|
400
423
|
}
|
|
401
424
|
|
|
425
|
+
export interface SearchUsersRequest {
|
|
426
|
+
user_id?: number | undefined;
|
|
427
|
+
user_email?: string | undefined;
|
|
428
|
+
user_roles: string[];
|
|
429
|
+
created_before?: string | undefined;
|
|
430
|
+
created_after?: string | undefined;
|
|
431
|
+
page?: number | undefined;
|
|
432
|
+
per_page?: number | undefined;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
export interface SearchUsersResponse {
|
|
436
|
+
items: User[];
|
|
437
|
+
pagination: PaginationResult | undefined;
|
|
438
|
+
}
|
|
439
|
+
|
|
402
440
|
export interface CreateCoinbaseDepositRequest {
|
|
403
441
|
amount_cents: number;
|
|
404
442
|
promocode?: string | undefined;
|
|
@@ -487,6 +525,8 @@ export interface Autoscout {
|
|
|
487
525
|
DeleteInstance(request: DeleteInstanceRequest): Promise<DeleteInstanceResponse>;
|
|
488
526
|
/** Get list of all owned instances */
|
|
489
527
|
ListInstances(request: ListInstancesRequest): Promise<ListInstancesResponse>;
|
|
528
|
+
/** Search instances matching a set of filters */
|
|
529
|
+
SearchInstances(request: SearchInstancesRequest): Promise<SearchInstancesResponse>;
|
|
490
530
|
SyncDeploymentsServerSpec(request: SyncDeploymentsServerSpecRequest): Promise<SyncDeploymentsServerSpecResponse>;
|
|
491
531
|
/** Get detailed information about specific deployment */
|
|
492
532
|
GetDeployment(request: GetDeploymentRequest): Promise<Deployment>;
|
|
@@ -514,6 +554,8 @@ export interface Autoscout {
|
|
|
514
554
|
CreateUserAcquisitionSource(
|
|
515
555
|
request: CreateUserAcquisitionSourceRequest,
|
|
516
556
|
): Promise<CreateUserAcquisitionSourceResponse>;
|
|
557
|
+
/** Search users matching a set of filters */
|
|
558
|
+
SearchUsers(request: SearchUsersRequest): Promise<SearchUsersResponse>;
|
|
517
559
|
ListDeposits(request: ListDepositsRequest): Promise<ListDepositsResponse>;
|
|
518
560
|
PreviewDeposit(request: PreviewDepositRequest): Promise<PreviewDepositResponse>;
|
|
519
561
|
CreateCoinbaseDeposit(request: CreateCoinbaseDepositRequest): Promise<CreateCoinbaseDepositResponse>;
|