@blockscout/autoscout-types 1.0.1 → 1.1.0-alpha.1
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 +41 -1
- package/dist/v1/autoscout.js +8 -1
- package/dist/v1/autoscout.ts +48 -1
- package/package.json +1 -1
package/dist/v1/autoscout.d.ts
CHANGED
|
@@ -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
|
|
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,20 @@ 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
|
+
page?: number | undefined;
|
|
277
|
+
per_page?: number | undefined;
|
|
278
|
+
}
|
|
279
|
+
export interface ListExternalDepositsResponse {
|
|
280
|
+
items: Deposit[];
|
|
281
|
+
pagination: PaginationResult | undefined;
|
|
282
|
+
}
|
|
245
283
|
export interface Autoscout {
|
|
246
284
|
GetConfigSchema(request: GetConfigSchemaRequest): Promise<ConfigSchema>;
|
|
247
285
|
/** Creating blockscout instance with config */
|
|
@@ -277,8 +315,10 @@ export interface Autoscout {
|
|
|
277
315
|
ListAuthTokens(request: GetProfileRequest): Promise<ListAuthTokensResponse>;
|
|
278
316
|
GetLatestTermsOfService(request: GetLatestTermsOfServiceRequest): Promise<TermsOfService>;
|
|
279
317
|
AcceptTermsOfService(request: AcceptTermsOfServiceRequest): Promise<TermsOfService>;
|
|
318
|
+
ListExternalDeposits(request: ListExternalDepositsRequest): Promise<ListExternalDepositsResponse>;
|
|
280
319
|
CreateCoinbaseDeposit(request: CreateCoinbaseDepositRequest): Promise<CreateCoinbaseDepositResponse>;
|
|
281
320
|
GetCoinbaseDeposit(request: GetCoinbaseDepositRequest): Promise<Deposit>;
|
|
282
321
|
ListCoinbaseDeposits(request: ListCoinbaseDepositsRequest): Promise<ListCoinbaseDepositsResponse>;
|
|
283
322
|
DeleteCoinbaseDeposit(request: DeleteCoinbaseDepositRequest): Promise<DeleteCoinbaseDepositResponse>;
|
|
323
|
+
CreateStripeDeposit(request: CreateStripeDepositRequest): Promise<CreateStripeDepositResponse>;
|
|
284
324
|
}
|
package/dist/v1/autoscout.js
CHANGED
|
@@ -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 = {}));
|
package/dist/v1/autoscout.ts
CHANGED
|
@@ -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
|
|
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,24 @@ 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
|
+
page?: number | undefined;
|
|
337
|
+
per_page?: number | undefined;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export interface ListExternalDepositsResponse {
|
|
341
|
+
items: Deposit[];
|
|
342
|
+
pagination: PaginationResult | undefined;
|
|
343
|
+
}
|
|
344
|
+
|
|
300
345
|
export interface Autoscout {
|
|
301
346
|
GetConfigSchema(request: GetConfigSchemaRequest): Promise<ConfigSchema>;
|
|
302
347
|
/** Creating blockscout instance with config */
|
|
@@ -332,8 +377,10 @@ export interface Autoscout {
|
|
|
332
377
|
ListAuthTokens(request: GetProfileRequest): Promise<ListAuthTokensResponse>;
|
|
333
378
|
GetLatestTermsOfService(request: GetLatestTermsOfServiceRequest): Promise<TermsOfService>;
|
|
334
379
|
AcceptTermsOfService(request: AcceptTermsOfServiceRequest): Promise<TermsOfService>;
|
|
380
|
+
ListExternalDeposits(request: ListExternalDepositsRequest): Promise<ListExternalDepositsResponse>;
|
|
335
381
|
CreateCoinbaseDeposit(request: CreateCoinbaseDepositRequest): Promise<CreateCoinbaseDepositResponse>;
|
|
336
382
|
GetCoinbaseDeposit(request: GetCoinbaseDepositRequest): Promise<Deposit>;
|
|
337
383
|
ListCoinbaseDeposits(request: ListCoinbaseDepositsRequest): Promise<ListCoinbaseDepositsResponse>;
|
|
338
384
|
DeleteCoinbaseDeposit(request: DeleteCoinbaseDepositRequest): Promise<DeleteCoinbaseDepositResponse>;
|
|
385
|
+
CreateStripeDeposit(request: CreateStripeDepositRequest): Promise<CreateStripeDepositResponse>;
|
|
339
386
|
}
|