@blockscout/autoscout-types 0.0.13 → 0.0.14
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 +42 -8
- package/dist/v1/autoscout.js +1 -0
- package/dist/v1/autoscout.ts +50 -10
- package/package.json +1 -1
package/dist/v1/autoscout.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare enum DeploymentStatus {
|
|
|
8
8
|
STOPPING = "STOPPING",
|
|
9
9
|
STOPPED = "STOPPED",
|
|
10
10
|
FAILED = "FAILED",
|
|
11
|
+
QUEUED = "QUEUED",
|
|
11
12
|
UNRECOGNIZED = "UNRECOGNIZED"
|
|
12
13
|
}
|
|
13
14
|
export declare enum UpdateInstanceAction {
|
|
@@ -41,14 +42,6 @@ export interface IndexingStatus {
|
|
|
41
42
|
indexed_blocks_ratio?: string | undefined;
|
|
42
43
|
indexed_internal_transactions_ratio?: string | undefined;
|
|
43
44
|
}
|
|
44
|
-
export interface UpdateInstanceStatusRequest {
|
|
45
|
-
instance_id: string;
|
|
46
|
-
action: UpdateInstanceAction;
|
|
47
|
-
}
|
|
48
|
-
export interface UpdateInstanceStatusResponse {
|
|
49
|
-
status: DeploymentStatus;
|
|
50
|
-
deployment_id: string;
|
|
51
|
-
}
|
|
52
45
|
export interface Instance {
|
|
53
46
|
instance_id: string;
|
|
54
47
|
name: string;
|
|
@@ -142,6 +135,33 @@ export interface UpdateConfigPartialRequest {
|
|
|
142
135
|
[key: string]: any;
|
|
143
136
|
} | undefined;
|
|
144
137
|
}
|
|
138
|
+
export interface UpdateInstanceStatusRequest {
|
|
139
|
+
instance_id: string;
|
|
140
|
+
action: UpdateInstanceAction;
|
|
141
|
+
}
|
|
142
|
+
export interface UpdateInstanceStatusResponse {
|
|
143
|
+
status: DeploymentStatus;
|
|
144
|
+
deployment_id: string;
|
|
145
|
+
}
|
|
146
|
+
export interface UpdateInstanceStatusBatchRequest {
|
|
147
|
+
all_running: boolean;
|
|
148
|
+
instance_ids: string[];
|
|
149
|
+
action: UpdateInstanceAction;
|
|
150
|
+
dry_run: boolean;
|
|
151
|
+
}
|
|
152
|
+
export interface BatchUpdateInstanceStatusItem {
|
|
153
|
+
ok: boolean;
|
|
154
|
+
error?: string | undefined;
|
|
155
|
+
instance_slug: string;
|
|
156
|
+
instance_id: string;
|
|
157
|
+
deployment_id?: string | undefined;
|
|
158
|
+
status: DeploymentStatus;
|
|
159
|
+
}
|
|
160
|
+
export interface UpdateInstanceStatusBatchResponse {
|
|
161
|
+
total: number;
|
|
162
|
+
total_errors: number;
|
|
163
|
+
items: BatchUpdateInstanceStatusItem[];
|
|
164
|
+
}
|
|
145
165
|
export interface GetInstanceRequest {
|
|
146
166
|
instance_id: string;
|
|
147
167
|
}
|
|
@@ -192,6 +212,17 @@ export interface RegisterProfileResponse {
|
|
|
192
212
|
export interface CreateAuthTokenRequest {
|
|
193
213
|
name: string;
|
|
194
214
|
}
|
|
215
|
+
export interface GetLatestTermsOfServiceRequest {
|
|
216
|
+
}
|
|
217
|
+
export interface TermsOfService {
|
|
218
|
+
content_url: string;
|
|
219
|
+
version: string;
|
|
220
|
+
accepted: boolean;
|
|
221
|
+
accepted_at?: string | undefined;
|
|
222
|
+
}
|
|
223
|
+
export interface AcceptTermsOfServiceRequest {
|
|
224
|
+
version: string;
|
|
225
|
+
}
|
|
195
226
|
export interface CreateCoinbaseDepositRequest {
|
|
196
227
|
}
|
|
197
228
|
export interface CreateCoinbaseDepositResponse {
|
|
@@ -221,6 +252,7 @@ export interface Autoscout {
|
|
|
221
252
|
UpdateConfigPartial(request: UpdateConfigPartialRequest): Promise<UpdateConfigResponse>;
|
|
222
253
|
/** Start or finish the instance */
|
|
223
254
|
UpdateInstanceStatus(request: UpdateInstanceStatusRequest): Promise<UpdateInstanceStatusResponse>;
|
|
255
|
+
UpdateInstanceStatusBatch(request: UpdateInstanceStatusBatchRequest): Promise<UpdateInstanceStatusBatchResponse>;
|
|
224
256
|
/** Get detailed information of the instance */
|
|
225
257
|
GetInstance(request: GetInstanceRequest): Promise<Instance>;
|
|
226
258
|
/** Delete instance */
|
|
@@ -243,6 +275,8 @@ export interface Autoscout {
|
|
|
243
275
|
CreateAuthToken(request: CreateAuthTokenRequest): Promise<AuthToken>;
|
|
244
276
|
/** Get list of all auth tokens for current account */
|
|
245
277
|
ListAuthTokens(request: GetProfileRequest): Promise<ListAuthTokensResponse>;
|
|
278
|
+
GetLatestTermsOfService(request: GetLatestTermsOfServiceRequest): Promise<TermsOfService>;
|
|
279
|
+
AcceptTermsOfService(request: AcceptTermsOfServiceRequest): Promise<TermsOfService>;
|
|
246
280
|
CreateCoinbaseDeposit(request: CreateCoinbaseDepositRequest): Promise<CreateCoinbaseDepositResponse>;
|
|
247
281
|
GetCoinbaseDeposit(request: GetCoinbaseDepositRequest): Promise<Deposit>;
|
|
248
282
|
ListCoinbaseDeposits(request: ListCoinbaseDepositsRequest): Promise<ListCoinbaseDepositsResponse>;
|
package/dist/v1/autoscout.js
CHANGED
|
@@ -15,6 +15,7 @@ var DeploymentStatus;
|
|
|
15
15
|
DeploymentStatus["STOPPING"] = "STOPPING";
|
|
16
16
|
DeploymentStatus["STOPPED"] = "STOPPED";
|
|
17
17
|
DeploymentStatus["FAILED"] = "FAILED";
|
|
18
|
+
DeploymentStatus["QUEUED"] = "QUEUED";
|
|
18
19
|
DeploymentStatus["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
19
20
|
})(DeploymentStatus || (exports.DeploymentStatus = DeploymentStatus = {}));
|
|
20
21
|
var UpdateInstanceAction;
|
package/dist/v1/autoscout.ts
CHANGED
|
@@ -16,6 +16,7 @@ export enum DeploymentStatus {
|
|
|
16
16
|
STOPPING = "STOPPING",
|
|
17
17
|
STOPPED = "STOPPED",
|
|
18
18
|
FAILED = "FAILED",
|
|
19
|
+
QUEUED = "QUEUED",
|
|
19
20
|
UNRECOGNIZED = "UNRECOGNIZED",
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -52,16 +53,6 @@ export interface IndexingStatus {
|
|
|
52
53
|
indexed_internal_transactions_ratio?: string | undefined;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
|
-
export interface UpdateInstanceStatusRequest {
|
|
56
|
-
instance_id: string;
|
|
57
|
-
action: UpdateInstanceAction;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface UpdateInstanceStatusResponse {
|
|
61
|
-
status: DeploymentStatus;
|
|
62
|
-
deployment_id: string;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
56
|
export interface Instance {
|
|
66
57
|
instance_id: string;
|
|
67
58
|
name: string;
|
|
@@ -169,6 +160,38 @@ export interface UpdateConfigPartialRequest {
|
|
|
169
160
|
config: { [key: string]: any } | undefined;
|
|
170
161
|
}
|
|
171
162
|
|
|
163
|
+
export interface UpdateInstanceStatusRequest {
|
|
164
|
+
instance_id: string;
|
|
165
|
+
action: UpdateInstanceAction;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface UpdateInstanceStatusResponse {
|
|
169
|
+
status: DeploymentStatus;
|
|
170
|
+
deployment_id: string;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface UpdateInstanceStatusBatchRequest {
|
|
174
|
+
all_running: boolean;
|
|
175
|
+
instance_ids: string[];
|
|
176
|
+
action: UpdateInstanceAction;
|
|
177
|
+
dry_run: boolean;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface BatchUpdateInstanceStatusItem {
|
|
181
|
+
ok: boolean;
|
|
182
|
+
error?: string | undefined;
|
|
183
|
+
instance_slug: string;
|
|
184
|
+
instance_id: string;
|
|
185
|
+
deployment_id?: string | undefined;
|
|
186
|
+
status: DeploymentStatus;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export interface UpdateInstanceStatusBatchResponse {
|
|
190
|
+
total: number;
|
|
191
|
+
total_errors: number;
|
|
192
|
+
items: BatchUpdateInstanceStatusItem[];
|
|
193
|
+
}
|
|
194
|
+
|
|
172
195
|
export interface GetInstanceRequest {
|
|
173
196
|
instance_id: string;
|
|
174
197
|
}
|
|
@@ -234,6 +257,20 @@ export interface CreateAuthTokenRequest {
|
|
|
234
257
|
name: string;
|
|
235
258
|
}
|
|
236
259
|
|
|
260
|
+
export interface GetLatestTermsOfServiceRequest {
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export interface TermsOfService {
|
|
264
|
+
content_url: string;
|
|
265
|
+
version: string;
|
|
266
|
+
accepted: boolean;
|
|
267
|
+
accepted_at?: string | undefined;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export interface AcceptTermsOfServiceRequest {
|
|
271
|
+
version: string;
|
|
272
|
+
}
|
|
273
|
+
|
|
237
274
|
export interface CreateCoinbaseDepositRequest {
|
|
238
275
|
}
|
|
239
276
|
|
|
@@ -270,6 +307,7 @@ export interface Autoscout {
|
|
|
270
307
|
UpdateConfigPartial(request: UpdateConfigPartialRequest): Promise<UpdateConfigResponse>;
|
|
271
308
|
/** Start or finish the instance */
|
|
272
309
|
UpdateInstanceStatus(request: UpdateInstanceStatusRequest): Promise<UpdateInstanceStatusResponse>;
|
|
310
|
+
UpdateInstanceStatusBatch(request: UpdateInstanceStatusBatchRequest): Promise<UpdateInstanceStatusBatchResponse>;
|
|
273
311
|
/** Get detailed information of the instance */
|
|
274
312
|
GetInstance(request: GetInstanceRequest): Promise<Instance>;
|
|
275
313
|
/** Delete instance */
|
|
@@ -292,6 +330,8 @@ export interface Autoscout {
|
|
|
292
330
|
CreateAuthToken(request: CreateAuthTokenRequest): Promise<AuthToken>;
|
|
293
331
|
/** Get list of all auth tokens for current account */
|
|
294
332
|
ListAuthTokens(request: GetProfileRequest): Promise<ListAuthTokensResponse>;
|
|
333
|
+
GetLatestTermsOfService(request: GetLatestTermsOfServiceRequest): Promise<TermsOfService>;
|
|
334
|
+
AcceptTermsOfService(request: AcceptTermsOfServiceRequest): Promise<TermsOfService>;
|
|
295
335
|
CreateCoinbaseDeposit(request: CreateCoinbaseDepositRequest): Promise<CreateCoinbaseDepositResponse>;
|
|
296
336
|
GetCoinbaseDeposit(request: GetCoinbaseDepositRequest): Promise<Deposit>;
|
|
297
337
|
ListCoinbaseDeposits(request: ListCoinbaseDepositsRequest): Promise<ListCoinbaseDepositsResponse>;
|