@blockscout/autoscout-types 1.0.0 → 1.1.0-alpha.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.
@@ -27,6 +27,12 @@ export declare enum DepositStatus {
27
27
  DEPOSIT_STATUS_RESOLVED = "DEPOSIT_STATUS_RESOLVED",
28
28
  UNRECOGNIZED = "UNRECOGNIZED"
29
29
  }
30
+ export declare enum DepositType {
31
+ UNSPECIFIED_DEPOSIT_TYPE = "UNSPECIFIED_DEPOSIT_TYPE",
32
+ DEPOSIT_TYPE_STRIPE = "DEPOSIT_TYPE_STRIPE",
33
+ DEPOSIT_TYPE_COINBASE = "DEPOSIT_TYPE_COINBASE",
34
+ UNRECOGNIZED = "UNRECOGNIZED"
35
+ }
30
36
  export interface HealthStatus {
31
37
  ok: boolean;
32
38
  last_check: string;
@@ -86,6 +92,22 @@ export interface UserProfile {
86
92
  created_at: string;
87
93
  balance: string;
88
94
  recent_actions: UserAction[];
95
+ most_expensive_instances: MostExpensiveInstances | undefined;
96
+ }
97
+ export interface MostExpensiveInstances {
98
+ items: ExpensiveInstance[];
99
+ count: number;
100
+ total_monthly_cost: string;
101
+ }
102
+ export interface ExpensiveInstance {
103
+ instance_id: string;
104
+ name: string;
105
+ slug: string;
106
+ deployment_status: DeploymentStatus;
107
+ created_at: string;
108
+ blockscout_url?: string | undefined;
109
+ total_cost: string;
110
+ cost_per_month_approx: string;
89
111
  }
90
112
  export interface AuthToken {
91
113
  name: string;
@@ -94,10 +116,12 @@ export interface AuthToken {
94
116
  }
95
117
  export interface Deposit {
96
118
  id: string;
97
- url: string;
119
+ url?: string | undefined;
120
+ receipt_url?: string | undefined;
98
121
  created_at: string;
99
122
  amount?: string | undefined;
100
123
  status: DepositStatus;
124
+ type: DepositType;
101
125
  }
102
126
  export interface PaginationResult {
103
127
  page: number;
@@ -242,6 +266,17 @@ export interface DeleteCoinbaseDepositRequest {
242
266
  }
243
267
  export interface DeleteCoinbaseDepositResponse {
244
268
  }
269
+ export interface CreateStripeDepositRequest {
270
+ }
271
+ export interface CreateStripeDepositResponse {
272
+ id: string;
273
+ url: string;
274
+ }
275
+ export interface ListExternalDepositsRequest {
276
+ }
277
+ export interface ListExternalDepositsResponse {
278
+ items: Deposit[];
279
+ }
245
280
  export interface Autoscout {
246
281
  GetConfigSchema(request: GetConfigSchemaRequest): Promise<ConfigSchema>;
247
282
  /** Creating blockscout instance with config */
@@ -277,8 +312,10 @@ export interface Autoscout {
277
312
  ListAuthTokens(request: GetProfileRequest): Promise<ListAuthTokensResponse>;
278
313
  GetLatestTermsOfService(request: GetLatestTermsOfServiceRequest): Promise<TermsOfService>;
279
314
  AcceptTermsOfService(request: AcceptTermsOfServiceRequest): Promise<TermsOfService>;
315
+ ListExternalDeposits(request: ListExternalDepositsRequest): Promise<ListExternalDepositsResponse>;
280
316
  CreateCoinbaseDeposit(request: CreateCoinbaseDepositRequest): Promise<CreateCoinbaseDepositResponse>;
281
317
  GetCoinbaseDeposit(request: GetCoinbaseDepositRequest): Promise<Deposit>;
282
318
  ListCoinbaseDeposits(request: ListCoinbaseDepositsRequest): Promise<ListCoinbaseDepositsResponse>;
283
319
  DeleteCoinbaseDeposit(request: DeleteCoinbaseDepositRequest): Promise<DeleteCoinbaseDepositResponse>;
320
+ CreateStripeDeposit(request: CreateStripeDepositRequest): Promise<CreateStripeDepositResponse>;
284
321
  }
@@ -5,7 +5,7 @@
5
5
  // protoc v4.23.4
6
6
  // source: v1/autoscout.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.DepositStatus = exports.UpdateInstanceAction = exports.DeploymentStatus = void 0;
8
+ exports.DepositType = exports.DepositStatus = exports.UpdateInstanceAction = exports.DeploymentStatus = void 0;
9
9
  var DeploymentStatus;
10
10
  (function (DeploymentStatus) {
11
11
  DeploymentStatus["NO_STATUS"] = "NO_STATUS";
@@ -36,3 +36,10 @@ var DepositStatus;
36
36
  DepositStatus["DEPOSIT_STATUS_RESOLVED"] = "DEPOSIT_STATUS_RESOLVED";
37
37
  DepositStatus["UNRECOGNIZED"] = "UNRECOGNIZED";
38
38
  })(DepositStatus || (exports.DepositStatus = DepositStatus = {}));
39
+ var DepositType;
40
+ (function (DepositType) {
41
+ DepositType["UNSPECIFIED_DEPOSIT_TYPE"] = "UNSPECIFIED_DEPOSIT_TYPE";
42
+ DepositType["DEPOSIT_TYPE_STRIPE"] = "DEPOSIT_TYPE_STRIPE";
43
+ DepositType["DEPOSIT_TYPE_COINBASE"] = "DEPOSIT_TYPE_COINBASE";
44
+ DepositType["UNRECOGNIZED"] = "UNRECOGNIZED";
45
+ })(DepositType || (exports.DepositType = DepositType = {}));
@@ -38,6 +38,13 @@ export enum DepositStatus {
38
38
  UNRECOGNIZED = "UNRECOGNIZED",
39
39
  }
40
40
 
41
+ export enum DepositType {
42
+ UNSPECIFIED_DEPOSIT_TYPE = "UNSPECIFIED_DEPOSIT_TYPE",
43
+ DEPOSIT_TYPE_STRIPE = "DEPOSIT_TYPE_STRIPE",
44
+ DEPOSIT_TYPE_COINBASE = "DEPOSIT_TYPE_COINBASE",
45
+ UNRECOGNIZED = "UNRECOGNIZED",
46
+ }
47
+
41
48
  export interface HealthStatus {
42
49
  ok: boolean;
43
50
  last_check: string;
@@ -101,6 +108,24 @@ export interface UserProfile {
101
108
  created_at: string;
102
109
  balance: string;
103
110
  recent_actions: UserAction[];
111
+ most_expensive_instances: MostExpensiveInstances | undefined;
112
+ }
113
+
114
+ export interface MostExpensiveInstances {
115
+ items: ExpensiveInstance[];
116
+ count: number;
117
+ total_monthly_cost: string;
118
+ }
119
+
120
+ export interface ExpensiveInstance {
121
+ instance_id: string;
122
+ name: string;
123
+ slug: string;
124
+ deployment_status: DeploymentStatus;
125
+ created_at: string;
126
+ blockscout_url?: string | undefined;
127
+ total_cost: string;
128
+ cost_per_month_approx: string;
104
129
  }
105
130
 
106
131
  export interface AuthToken {
@@ -111,10 +136,12 @@ export interface AuthToken {
111
136
 
112
137
  export interface Deposit {
113
138
  id: string;
114
- url: string;
139
+ url?: string | undefined;
140
+ receipt_url?: string | undefined;
115
141
  created_at: string;
116
142
  amount?: string | undefined;
117
143
  status: DepositStatus;
144
+ type: DepositType;
118
145
  }
119
146
 
120
147
  export interface PaginationResult {
@@ -297,6 +324,21 @@ export interface DeleteCoinbaseDepositRequest {
297
324
  export interface DeleteCoinbaseDepositResponse {
298
325
  }
299
326
 
327
+ export interface CreateStripeDepositRequest {
328
+ }
329
+
330
+ export interface CreateStripeDepositResponse {
331
+ id: string;
332
+ url: string;
333
+ }
334
+
335
+ export interface ListExternalDepositsRequest {
336
+ }
337
+
338
+ export interface ListExternalDepositsResponse {
339
+ items: Deposit[];
340
+ }
341
+
300
342
  export interface Autoscout {
301
343
  GetConfigSchema(request: GetConfigSchemaRequest): Promise<ConfigSchema>;
302
344
  /** Creating blockscout instance with config */
@@ -332,8 +374,10 @@ export interface Autoscout {
332
374
  ListAuthTokens(request: GetProfileRequest): Promise<ListAuthTokensResponse>;
333
375
  GetLatestTermsOfService(request: GetLatestTermsOfServiceRequest): Promise<TermsOfService>;
334
376
  AcceptTermsOfService(request: AcceptTermsOfServiceRequest): Promise<TermsOfService>;
377
+ ListExternalDeposits(request: ListExternalDepositsRequest): Promise<ListExternalDepositsResponse>;
335
378
  CreateCoinbaseDeposit(request: CreateCoinbaseDepositRequest): Promise<CreateCoinbaseDepositResponse>;
336
379
  GetCoinbaseDeposit(request: GetCoinbaseDepositRequest): Promise<Deposit>;
337
380
  ListCoinbaseDeposits(request: ListCoinbaseDepositsRequest): Promise<ListCoinbaseDepositsResponse>;
338
381
  DeleteCoinbaseDeposit(request: DeleteCoinbaseDepositRequest): Promise<DeleteCoinbaseDepositResponse>;
382
+ CreateStripeDeposit(request: CreateStripeDepositRequest): Promise<CreateStripeDepositResponse>;
339
383
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockscout/autoscout-types",
3
- "version": "1.0.0",
3
+ "version": "1.1.0-alpha.0",
4
4
  "description": "TypeScript definitions for Autoscout microservice",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",