@blockscout/autoscout-types 0.0.10 → 0.0.11
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 +82 -51
- package/dist/v1/autoscout.ts +94 -58
- package/dist/v1/config.d.ts +15 -0
- package/dist/v1/config.ts +18 -0
- package/package.json +1 -1
package/dist/v1/autoscout.d.ts
CHANGED
|
@@ -26,35 +26,6 @@ export declare enum DepositStatus {
|
|
|
26
26
|
DEPOSIT_STATUS_RESOLVED = "DEPOSIT_STATUS_RESOLVED",
|
|
27
27
|
UNRECOGNIZED = "UNRECOGNIZED"
|
|
28
28
|
}
|
|
29
|
-
export interface GetConfigSchemaRequest {
|
|
30
|
-
}
|
|
31
|
-
export interface CreateInstanceRequest {
|
|
32
|
-
name: string;
|
|
33
|
-
/** initial config */
|
|
34
|
-
config: DeployConfig | undefined;
|
|
35
|
-
}
|
|
36
|
-
export interface CreateInstanceResponse {
|
|
37
|
-
instance_id: string;
|
|
38
|
-
}
|
|
39
|
-
export interface DeleteInstanceRequest {
|
|
40
|
-
instance_id: string;
|
|
41
|
-
}
|
|
42
|
-
export interface DeleteInstanceResponse {
|
|
43
|
-
}
|
|
44
|
-
export interface UpdateConfigRequest {
|
|
45
|
-
instance_id: string;
|
|
46
|
-
config: DeployConfig | undefined;
|
|
47
|
-
}
|
|
48
|
-
export interface UpdateConfigResponse {
|
|
49
|
-
config: DeployConfig | undefined;
|
|
50
|
-
}
|
|
51
|
-
export interface UpdateConfigPartialRequest {
|
|
52
|
-
instance_id: string;
|
|
53
|
-
/** See `DeployConfig` for available fields */
|
|
54
|
-
config: {
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
} | undefined;
|
|
57
|
-
}
|
|
58
29
|
export interface HealthStatus {
|
|
59
30
|
ok: boolean;
|
|
60
31
|
last_check: string;
|
|
@@ -102,6 +73,75 @@ export interface Deployment {
|
|
|
102
73
|
health_status: HealthStatus | undefined;
|
|
103
74
|
indexing_status: IndexingStatus | undefined;
|
|
104
75
|
}
|
|
76
|
+
export interface DeploymentLog {
|
|
77
|
+
id: number;
|
|
78
|
+
message: string;
|
|
79
|
+
timestamp: string;
|
|
80
|
+
bucket: string;
|
|
81
|
+
group_size: number;
|
|
82
|
+
severity: string;
|
|
83
|
+
container: string;
|
|
84
|
+
}
|
|
85
|
+
export interface UserAction {
|
|
86
|
+
action: string;
|
|
87
|
+
instance_id?: string | undefined;
|
|
88
|
+
timestamp: string;
|
|
89
|
+
}
|
|
90
|
+
export interface UserProfile {
|
|
91
|
+
email: string;
|
|
92
|
+
project_title?: string | undefined;
|
|
93
|
+
created_at: string;
|
|
94
|
+
balance: string;
|
|
95
|
+
recent_actions: UserAction[];
|
|
96
|
+
}
|
|
97
|
+
export interface AuthToken {
|
|
98
|
+
name: string;
|
|
99
|
+
token_value: string;
|
|
100
|
+
created_at: string;
|
|
101
|
+
}
|
|
102
|
+
export interface Deposit {
|
|
103
|
+
id: string;
|
|
104
|
+
url: string;
|
|
105
|
+
created_at: string;
|
|
106
|
+
amount?: string | undefined;
|
|
107
|
+
status: DepositStatus;
|
|
108
|
+
}
|
|
109
|
+
export interface PaginationResult {
|
|
110
|
+
page: number;
|
|
111
|
+
next_page?: number | undefined;
|
|
112
|
+
per_page: number;
|
|
113
|
+
total_items: number;
|
|
114
|
+
total_pages: number;
|
|
115
|
+
}
|
|
116
|
+
export interface GetConfigSchemaRequest {
|
|
117
|
+
}
|
|
118
|
+
export interface CreateInstanceRequest {
|
|
119
|
+
name: string;
|
|
120
|
+
/** initial config */
|
|
121
|
+
config: DeployConfig | undefined;
|
|
122
|
+
}
|
|
123
|
+
export interface CreateInstanceResponse {
|
|
124
|
+
instance_id: string;
|
|
125
|
+
}
|
|
126
|
+
export interface DeleteInstanceRequest {
|
|
127
|
+
instance_id: string;
|
|
128
|
+
}
|
|
129
|
+
export interface DeleteInstanceResponse {
|
|
130
|
+
}
|
|
131
|
+
export interface UpdateConfigRequest {
|
|
132
|
+
instance_id: string;
|
|
133
|
+
config: DeployConfig | undefined;
|
|
134
|
+
}
|
|
135
|
+
export interface UpdateConfigResponse {
|
|
136
|
+
config: DeployConfig | undefined;
|
|
137
|
+
}
|
|
138
|
+
export interface UpdateConfigPartialRequest {
|
|
139
|
+
instance_id: string;
|
|
140
|
+
/** See `DeployConfig` for available fields */
|
|
141
|
+
config: {
|
|
142
|
+
[key: string]: any;
|
|
143
|
+
} | undefined;
|
|
144
|
+
}
|
|
105
145
|
export interface GetInstanceRequest {
|
|
106
146
|
instance_id: string;
|
|
107
147
|
}
|
|
@@ -122,24 +162,20 @@ export interface ListDeploymentsResponse {
|
|
|
122
162
|
export interface GetCurrentDeploymentRequest {
|
|
123
163
|
instance_id: string;
|
|
124
164
|
}
|
|
125
|
-
export interface
|
|
165
|
+
export interface ListDeploymentLogsRequest {
|
|
166
|
+
deployment_id: string;
|
|
167
|
+
page?: number | undefined;
|
|
168
|
+
per_page?: number | undefined;
|
|
126
169
|
}
|
|
127
|
-
export interface
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
timestamp: string;
|
|
170
|
+
export interface ListDeploymentLogsResponse {
|
|
171
|
+
items: DeploymentLog[];
|
|
172
|
+
pagination: PaginationResult | undefined;
|
|
131
173
|
}
|
|
132
|
-
export interface
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
created_at: string;
|
|
136
|
-
balance: string;
|
|
137
|
-
recent_actions: UserAction[];
|
|
174
|
+
export interface GetDeploymentLogRequest {
|
|
175
|
+
deployment_id: string;
|
|
176
|
+
id: number;
|
|
138
177
|
}
|
|
139
|
-
export interface
|
|
140
|
-
name: string;
|
|
141
|
-
token_value: string;
|
|
142
|
-
created_at: string;
|
|
178
|
+
export interface GetProfileRequest {
|
|
143
179
|
}
|
|
144
180
|
export interface ListAuthTokensResponse {
|
|
145
181
|
items: AuthToken[];
|
|
@@ -175,13 +211,6 @@ export interface DeleteCoinbaseDepositRequest {
|
|
|
175
211
|
}
|
|
176
212
|
export interface DeleteCoinbaseDepositResponse {
|
|
177
213
|
}
|
|
178
|
-
export interface Deposit {
|
|
179
|
-
id: string;
|
|
180
|
-
url: string;
|
|
181
|
-
created_at: string;
|
|
182
|
-
amount?: string | undefined;
|
|
183
|
-
status: DepositStatus;
|
|
184
|
-
}
|
|
185
214
|
export interface Autoscout {
|
|
186
215
|
GetConfigSchema(request: GetConfigSchemaRequest): Promise<ConfigSchema>;
|
|
187
216
|
/** Creating blockscout instance with config */
|
|
@@ -204,6 +233,8 @@ export interface Autoscout {
|
|
|
204
233
|
GetCurrentDeployment(request: GetCurrentDeploymentRequest): Promise<Deployment>;
|
|
205
234
|
/** Get list of deployments of the instance */
|
|
206
235
|
ListDeployments(request: ListDeploymentsRequest): Promise<ListDeploymentsResponse>;
|
|
236
|
+
ListDeploymentLogs(request: ListDeploymentLogsRequest): Promise<ListDeploymentLogsResponse>;
|
|
237
|
+
GetDeploymentLog(request: GetDeploymentLogRequest): Promise<DeploymentLog>;
|
|
207
238
|
/** Register new profile */
|
|
208
239
|
RegisterProfile(request: RegisterProfileRequest): Promise<RegisterProfileResponse>;
|
|
209
240
|
/** Get information about current account */
|
package/dist/v1/autoscout.ts
CHANGED
|
@@ -37,41 +37,6 @@ export enum DepositStatus {
|
|
|
37
37
|
UNRECOGNIZED = "UNRECOGNIZED",
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export interface GetConfigSchemaRequest {
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface CreateInstanceRequest {
|
|
44
|
-
name: string;
|
|
45
|
-
/** initial config */
|
|
46
|
-
config: DeployConfig | undefined;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface CreateInstanceResponse {
|
|
50
|
-
instance_id: string;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface DeleteInstanceRequest {
|
|
54
|
-
instance_id: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface DeleteInstanceResponse {
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface UpdateConfigRequest {
|
|
61
|
-
instance_id: string;
|
|
62
|
-
config: DeployConfig | undefined;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface UpdateConfigResponse {
|
|
66
|
-
config: DeployConfig | undefined;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface UpdateConfigPartialRequest {
|
|
70
|
-
instance_id: string;
|
|
71
|
-
/** See `DeployConfig` for available fields */
|
|
72
|
-
config: { [key: string]: any } | undefined;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
40
|
export interface HealthStatus {
|
|
76
41
|
ok: boolean;
|
|
77
42
|
last_check: string;
|
|
@@ -123,6 +88,87 @@ export interface Deployment {
|
|
|
123
88
|
indexing_status: IndexingStatus | undefined;
|
|
124
89
|
}
|
|
125
90
|
|
|
91
|
+
export interface DeploymentLog {
|
|
92
|
+
id: number;
|
|
93
|
+
message: string;
|
|
94
|
+
timestamp: string;
|
|
95
|
+
bucket: string;
|
|
96
|
+
group_size: number;
|
|
97
|
+
severity: string;
|
|
98
|
+
container: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface UserAction {
|
|
102
|
+
action: string;
|
|
103
|
+
instance_id?: string | undefined;
|
|
104
|
+
timestamp: string;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface UserProfile {
|
|
108
|
+
email: string;
|
|
109
|
+
project_title?: string | undefined;
|
|
110
|
+
created_at: string;
|
|
111
|
+
balance: string;
|
|
112
|
+
recent_actions: UserAction[];
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface AuthToken {
|
|
116
|
+
name: string;
|
|
117
|
+
token_value: string;
|
|
118
|
+
created_at: string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export interface Deposit {
|
|
122
|
+
id: string;
|
|
123
|
+
url: string;
|
|
124
|
+
created_at: string;
|
|
125
|
+
amount?: string | undefined;
|
|
126
|
+
status: DepositStatus;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface PaginationResult {
|
|
130
|
+
page: number;
|
|
131
|
+
next_page?: number | undefined;
|
|
132
|
+
per_page: number;
|
|
133
|
+
total_items: number;
|
|
134
|
+
total_pages: number;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface GetConfigSchemaRequest {
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface CreateInstanceRequest {
|
|
141
|
+
name: string;
|
|
142
|
+
/** initial config */
|
|
143
|
+
config: DeployConfig | undefined;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export interface CreateInstanceResponse {
|
|
147
|
+
instance_id: string;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface DeleteInstanceRequest {
|
|
151
|
+
instance_id: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export interface DeleteInstanceResponse {
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export interface UpdateConfigRequest {
|
|
158
|
+
instance_id: string;
|
|
159
|
+
config: DeployConfig | undefined;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface UpdateConfigResponse {
|
|
163
|
+
config: DeployConfig | undefined;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface UpdateConfigPartialRequest {
|
|
167
|
+
instance_id: string;
|
|
168
|
+
/** See `DeployConfig` for available fields */
|
|
169
|
+
config: { [key: string]: any } | undefined;
|
|
170
|
+
}
|
|
171
|
+
|
|
126
172
|
export interface GetInstanceRequest {
|
|
127
173
|
instance_id: string;
|
|
128
174
|
}
|
|
@@ -150,27 +196,23 @@ export interface GetCurrentDeploymentRequest {
|
|
|
150
196
|
instance_id: string;
|
|
151
197
|
}
|
|
152
198
|
|
|
153
|
-
export interface
|
|
199
|
+
export interface ListDeploymentLogsRequest {
|
|
200
|
+
deployment_id: string;
|
|
201
|
+
page?: number | undefined;
|
|
202
|
+
per_page?: number | undefined;
|
|
154
203
|
}
|
|
155
204
|
|
|
156
|
-
export interface
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
timestamp: string;
|
|
205
|
+
export interface ListDeploymentLogsResponse {
|
|
206
|
+
items: DeploymentLog[];
|
|
207
|
+
pagination: PaginationResult | undefined;
|
|
160
208
|
}
|
|
161
209
|
|
|
162
|
-
export interface
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
created_at: string;
|
|
166
|
-
balance: string;
|
|
167
|
-
recent_actions: UserAction[];
|
|
210
|
+
export interface GetDeploymentLogRequest {
|
|
211
|
+
deployment_id: string;
|
|
212
|
+
id: number;
|
|
168
213
|
}
|
|
169
214
|
|
|
170
|
-
export interface
|
|
171
|
-
name: string;
|
|
172
|
-
token_value: string;
|
|
173
|
-
created_at: string;
|
|
215
|
+
export interface GetProfileRequest {
|
|
174
216
|
}
|
|
175
217
|
|
|
176
218
|
export interface ListAuthTokensResponse {
|
|
@@ -218,14 +260,6 @@ export interface DeleteCoinbaseDepositRequest {
|
|
|
218
260
|
export interface DeleteCoinbaseDepositResponse {
|
|
219
261
|
}
|
|
220
262
|
|
|
221
|
-
export interface Deposit {
|
|
222
|
-
id: string;
|
|
223
|
-
url: string;
|
|
224
|
-
created_at: string;
|
|
225
|
-
amount?: string | undefined;
|
|
226
|
-
status: DepositStatus;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
263
|
export interface Autoscout {
|
|
230
264
|
GetConfigSchema(request: GetConfigSchemaRequest): Promise<ConfigSchema>;
|
|
231
265
|
/** Creating blockscout instance with config */
|
|
@@ -248,6 +282,8 @@ export interface Autoscout {
|
|
|
248
282
|
GetCurrentDeployment(request: GetCurrentDeploymentRequest): Promise<Deployment>;
|
|
249
283
|
/** Get list of deployments of the instance */
|
|
250
284
|
ListDeployments(request: ListDeploymentsRequest): Promise<ListDeploymentsResponse>;
|
|
285
|
+
ListDeploymentLogs(request: ListDeploymentLogsRequest): Promise<ListDeploymentLogsResponse>;
|
|
286
|
+
GetDeploymentLog(request: GetDeploymentLogRequest): Promise<DeploymentLog>;
|
|
251
287
|
/** Register new profile */
|
|
252
288
|
RegisterProfile(request: RegisterProfileRequest): Promise<RegisterProfileResponse>;
|
|
253
289
|
/** Get information about current account */
|
package/dist/v1/config.d.ts
CHANGED
|
@@ -79,6 +79,8 @@ export interface DeployConfig {
|
|
|
79
79
|
optimism?: OptimismConfig | undefined;
|
|
80
80
|
arbitrum?: ArbitrumConfig | undefined;
|
|
81
81
|
ads?: Ads | undefined;
|
|
82
|
+
meta_og?: MetaOg | undefined;
|
|
83
|
+
final_config?: FinalConfig | undefined;
|
|
82
84
|
}
|
|
83
85
|
export interface Footer {
|
|
84
86
|
columns: FooterColumn[];
|
|
@@ -95,6 +97,19 @@ export interface Ads {
|
|
|
95
97
|
text_provider: AdTextProvider;
|
|
96
98
|
banner_provider: AdBannerProvider;
|
|
97
99
|
}
|
|
100
|
+
export interface MetaOg {
|
|
101
|
+
description?: string | undefined;
|
|
102
|
+
image_url?: string | undefined;
|
|
103
|
+
enhanced_data_enabled?: boolean | undefined;
|
|
104
|
+
seo_enhanced_data_enabled?: boolean | undefined;
|
|
105
|
+
}
|
|
106
|
+
export interface FinalConfig {
|
|
107
|
+
fields: FinalConfigField[];
|
|
108
|
+
}
|
|
109
|
+
export interface FinalConfigField {
|
|
110
|
+
json_path: string;
|
|
111
|
+
value: string;
|
|
112
|
+
}
|
|
98
113
|
/** https://github.com/blockscout/docs/blob/df6996a0f8e553c2d4b1c3dcda6ef2518a8b39f9/for-developers/information-and-settings/env-variables/backend-envs-chain-specific.md?plain=1#L102-L119 */
|
|
99
114
|
export interface OptimismConfig {
|
|
100
115
|
/** changes blockscout env INDEXER_OPTIMISM_L1_RPC */
|
package/dist/v1/config.ts
CHANGED
|
@@ -96,6 +96,8 @@ export interface DeployConfig {
|
|
|
96
96
|
optimism?: OptimismConfig | undefined;
|
|
97
97
|
arbitrum?: ArbitrumConfig | undefined;
|
|
98
98
|
ads?: Ads | undefined;
|
|
99
|
+
meta_og?: MetaOg | undefined;
|
|
100
|
+
final_config?: FinalConfig | undefined;
|
|
99
101
|
}
|
|
100
102
|
|
|
101
103
|
export interface Footer {
|
|
@@ -117,6 +119,22 @@ export interface Ads {
|
|
|
117
119
|
banner_provider: AdBannerProvider;
|
|
118
120
|
}
|
|
119
121
|
|
|
122
|
+
export interface MetaOg {
|
|
123
|
+
description?: string | undefined;
|
|
124
|
+
image_url?: string | undefined;
|
|
125
|
+
enhanced_data_enabled?: boolean | undefined;
|
|
126
|
+
seo_enhanced_data_enabled?: boolean | undefined;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface FinalConfig {
|
|
130
|
+
fields: FinalConfigField[];
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface FinalConfigField {
|
|
134
|
+
json_path: string;
|
|
135
|
+
value: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
120
138
|
/** https://github.com/blockscout/docs/blob/df6996a0f8e553c2d4b1c3dcda6ef2518a8b39f9/for-developers/information-and-settings/env-variables/backend-envs-chain-specific.md?plain=1#L102-L119 */
|
|
121
139
|
export interface OptimismConfig {
|
|
122
140
|
/** changes blockscout env INDEXER_OPTIMISM_L1_RPC */
|