@blockscout/autoscout-types 0.0.10 → 0.0.12

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.
@@ -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 GetProfileRequest {
165
+ export interface ListDeploymentLogsRequest {
166
+ deployment_id: string;
167
+ page?: number | undefined;
168
+ per_page?: number | undefined;
126
169
  }
127
- export interface UserAction {
128
- action: string;
129
- instance_id?: string | undefined;
130
- timestamp: string;
170
+ export interface ListDeploymentLogsResponse {
171
+ items: DeploymentLog[];
172
+ pagination: PaginationResult | undefined;
131
173
  }
132
- export interface UserProfile {
133
- email: string;
134
- project_title?: string | undefined;
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 AuthToken {
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 */
@@ -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 GetProfileRequest {
199
+ export interface ListDeploymentLogsRequest {
200
+ deployment_id: string;
201
+ page?: number | undefined;
202
+ per_page?: number | undefined;
154
203
  }
155
204
 
156
- export interface UserAction {
157
- action: string;
158
- instance_id?: string | undefined;
159
- timestamp: string;
205
+ export interface ListDeploymentLogsResponse {
206
+ items: DeploymentLog[];
207
+ pagination: PaginationResult | undefined;
160
208
  }
161
209
 
162
- export interface UserProfile {
163
- email: string;
164
- project_title?: string | undefined;
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 AuthToken {
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 */
@@ -67,7 +67,7 @@ export interface DeployConfig {
67
67
  rpc_ws_url?: string | undefined;
68
68
  public_rpc_url?: string | undefined;
69
69
  wallet_connect_project_id?: string | undefined;
70
- eip_1559_elasticity?: number | undefined;
70
+ eip_1559_elasticity?: string | undefined;
71
71
  navigation_layout: NavigationLayout;
72
72
  favicon_url?: string | undefined;
73
73
  og_image_url?: string | undefined;
@@ -79,6 +79,13 @@ 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;
84
+ api_spec_url?: string | undefined;
85
+ hide_navigation: string[];
86
+ menu_other: MenuItem[];
87
+ disable_graphql?: boolean | undefined;
88
+ maintenance_banner?: string | undefined;
82
89
  }
83
90
  export interface Footer {
84
91
  columns: FooterColumn[];
@@ -95,6 +102,23 @@ export interface Ads {
95
102
  text_provider: AdTextProvider;
96
103
  banner_provider: AdBannerProvider;
97
104
  }
105
+ export interface MetaOg {
106
+ description?: string | undefined;
107
+ image_url?: string | undefined;
108
+ enhanced_data_enabled?: boolean | undefined;
109
+ seo_enhanced_data_enabled?: boolean | undefined;
110
+ }
111
+ export interface FinalConfig {
112
+ fields: FinalConfigField[];
113
+ }
114
+ export interface FinalConfigField {
115
+ json_path: string;
116
+ value: string;
117
+ }
118
+ export interface MenuItem {
119
+ text: string;
120
+ url: string;
121
+ }
98
122
  /** https://github.com/blockscout/docs/blob/df6996a0f8e553c2d4b1c3dcda6ef2518a8b39f9/for-developers/information-and-settings/env-variables/backend-envs-chain-specific.md?plain=1#L102-L119 */
99
123
  export interface OptimismConfig {
100
124
  /** changes blockscout env INDEXER_OPTIMISM_L1_RPC */
@@ -125,6 +149,10 @@ export interface OptimismConfig {
125
149
  l2_fault_proof_enabled?: boolean | undefined;
126
150
  /** NEXT_PUBLIC_HAS_MUD_FRAMEWORK */
127
151
  has_mud_framework?: boolean | undefined;
152
+ beacon_rpc_url?: string | undefined;
153
+ beacon_blob_fetcher_reference_slot?: string | undefined;
154
+ beacon_blob_fetcher_slot_duration?: string | undefined;
155
+ beacon_blob_fetcher_reference_timestamp?: string | undefined;
128
156
  }
129
157
  /** https://github.com/blockscout/docs/blob/594e4c2ef83556b3cb41e9fd43bca776afb63c05/for-developers/information-and-settings/env-variables/backend-envs-chain-specific.md?plain=1#L136 */
130
158
  export interface ArbitrumConfig {
package/dist/v1/config.ts CHANGED
@@ -82,7 +82,7 @@ export interface DeployConfig {
82
82
  rpc_ws_url?: string | undefined;
83
83
  public_rpc_url?: string | undefined;
84
84
  wallet_connect_project_id?: string | undefined;
85
- eip_1559_elasticity?: number | undefined;
85
+ eip_1559_elasticity?: string | undefined;
86
86
  navigation_layout: NavigationLayout;
87
87
  favicon_url?: string | undefined;
88
88
  og_image_url?: string | undefined;
@@ -96,6 +96,13 @@ 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;
101
+ api_spec_url?: string | undefined;
102
+ hide_navigation: string[];
103
+ menu_other: MenuItem[];
104
+ disable_graphql?: boolean | undefined;
105
+ maintenance_banner?: string | undefined;
99
106
  }
100
107
 
101
108
  export interface Footer {
@@ -117,6 +124,27 @@ export interface Ads {
117
124
  banner_provider: AdBannerProvider;
118
125
  }
119
126
 
127
+ export interface MetaOg {
128
+ description?: string | undefined;
129
+ image_url?: string | undefined;
130
+ enhanced_data_enabled?: boolean | undefined;
131
+ seo_enhanced_data_enabled?: boolean | undefined;
132
+ }
133
+
134
+ export interface FinalConfig {
135
+ fields: FinalConfigField[];
136
+ }
137
+
138
+ export interface FinalConfigField {
139
+ json_path: string;
140
+ value: string;
141
+ }
142
+
143
+ export interface MenuItem {
144
+ text: string;
145
+ url: string;
146
+ }
147
+
120
148
  /** https://github.com/blockscout/docs/blob/df6996a0f8e553c2d4b1c3dcda6ef2518a8b39f9/for-developers/information-and-settings/env-variables/backend-envs-chain-specific.md?plain=1#L102-L119 */
121
149
  export interface OptimismConfig {
122
150
  /** changes blockscout env INDEXER_OPTIMISM_L1_RPC */
@@ -169,6 +197,10 @@ export interface OptimismConfig {
169
197
  | undefined;
170
198
  /** NEXT_PUBLIC_HAS_MUD_FRAMEWORK */
171
199
  has_mud_framework?: boolean | undefined;
200
+ beacon_rpc_url?: string | undefined;
201
+ beacon_blob_fetcher_reference_slot?: string | undefined;
202
+ beacon_blob_fetcher_slot_duration?: string | undefined;
203
+ beacon_blob_fetcher_reference_timestamp?: string | undefined;
172
204
  }
173
205
 
174
206
  /** https://github.com/blockscout/docs/blob/594e4c2ef83556b3cb41e9fd43bca776afb63c05/for-developers/information-and-settings/env-variables/backend-envs-chain-specific.md?plain=1#L136 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockscout/autoscout-types",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "TypeScript definitions for Autoscout microservice",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",