@blockscout/autoscout-types 0.0.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.
@@ -0,0 +1,154 @@
1
+ import { type DeployConfig, type DeployConfigPartial } from "./config";
2
+ export declare enum DeploymentStatus {
3
+ NO_STATUS = "NO_STATUS",
4
+ CREATED = "CREATED",
5
+ PENDING = "PENDING",
6
+ RUNNING = "RUNNING",
7
+ STOPPING = "STOPPING",
8
+ STOPPED = "STOPPED",
9
+ FAILED = "FAILED",
10
+ UNHEALTHY = "UNHEALTHY",
11
+ UNRECOGNIZED = "UNRECOGNIZED"
12
+ }
13
+ export declare enum UpdateInstanceAction {
14
+ START = "START",
15
+ STOP = "STOP",
16
+ RESTART = "RESTART",
17
+ UNRECOGNIZED = "UNRECOGNIZED"
18
+ }
19
+ export interface CreateInstanceRequest {
20
+ name: string;
21
+ /** initial config */
22
+ config: DeployConfig | undefined;
23
+ }
24
+ export interface CreateInstanceResponse {
25
+ instance_id: string;
26
+ }
27
+ export interface DeleteInstanceRequest {
28
+ instance_id: string;
29
+ }
30
+ export interface DeleteInstanceResponse {
31
+ }
32
+ export interface UpdateConfigRequest {
33
+ instance_id: string;
34
+ config: DeployConfig | undefined;
35
+ }
36
+ export interface UpdateConfigResponse {
37
+ config: DeployConfig | undefined;
38
+ }
39
+ export interface UpdateConfigPartialRequest {
40
+ instance_id: string;
41
+ config: DeployConfigPartial | undefined;
42
+ }
43
+ export interface UpdateInstanceStatusRequest {
44
+ instance_id: string;
45
+ action: UpdateInstanceAction;
46
+ }
47
+ export interface UpdateInstanceStatusResponse {
48
+ status: DeploymentStatus;
49
+ deployment_id: string;
50
+ }
51
+ export interface Instance {
52
+ instance_id: string;
53
+ name: string;
54
+ slug: string;
55
+ created_at: string;
56
+ config: DeployConfig | undefined;
57
+ deployment: Deployment | undefined;
58
+ }
59
+ export interface Deployment {
60
+ deployment_id: string;
61
+ instance_id: string;
62
+ status: DeploymentStatus;
63
+ error?: string | undefined;
64
+ created_at: string;
65
+ started_at?: string | undefined;
66
+ finished_at?: string | undefined;
67
+ config: DeployConfig | undefined;
68
+ blockscout_url?: string | undefined;
69
+ total_cost: string;
70
+ }
71
+ export interface GetInstanceRequest {
72
+ instance_id: string;
73
+ }
74
+ export interface ListInstancesRequest {
75
+ }
76
+ export interface ListInstancesResponse {
77
+ items: Instance[];
78
+ }
79
+ export interface GetDeploymentRequest {
80
+ deployment_id: string;
81
+ }
82
+ export interface ListDeploymentsRequest {
83
+ instance_id: string;
84
+ }
85
+ export interface ListDeploymentsResponse {
86
+ items: Deployment[];
87
+ }
88
+ export interface GetCurrentDeploymentRequest {
89
+ instance_id: string;
90
+ }
91
+ export interface GetProfileRequest {
92
+ }
93
+ export interface UserAction {
94
+ action: string;
95
+ instance_id?: string | undefined;
96
+ timestamp: string;
97
+ }
98
+ export interface UserProfile {
99
+ email: string;
100
+ project_title?: string | undefined;
101
+ created_at: string;
102
+ balance: string;
103
+ recent_actions: UserAction[];
104
+ }
105
+ export interface AuthToken {
106
+ name: string;
107
+ token_value: string;
108
+ created_at: string;
109
+ }
110
+ export interface ListAuthTokensResponse {
111
+ items: AuthToken[];
112
+ }
113
+ export interface RegisterProfileRequest {
114
+ email: string;
115
+ project_title: string;
116
+ promo?: string | undefined;
117
+ }
118
+ export interface RegisterProfileResponse {
119
+ profile: UserProfile | undefined;
120
+ initial_token: AuthToken | undefined;
121
+ }
122
+ export interface CreateAuthTokenRequest {
123
+ name: string;
124
+ }
125
+ export interface Autoscout {
126
+ /** Creating blockscout instance with config */
127
+ CreateInstance(request: CreateInstanceRequest): Promise<CreateInstanceResponse>;
128
+ /** Update configuration of blockscout instance */
129
+ UpdateConfig(request: UpdateConfigRequest): Promise<UpdateConfigResponse>;
130
+ /** Update configuration of blockscout instance (partially) */
131
+ UpdateConfigPartial(request: UpdateConfigPartialRequest): Promise<UpdateConfigResponse>;
132
+ /** Start or finish the instance */
133
+ UpdateInstanceStatus(request: UpdateInstanceStatusRequest): Promise<UpdateInstanceStatusResponse>;
134
+ /** Get detailed information of the instance */
135
+ GetInstance(request: GetInstanceRequest): Promise<Instance>;
136
+ /** Delete instance */
137
+ DeleteInstance(request: DeleteInstanceRequest): Promise<DeleteInstanceResponse>;
138
+ /** Get list of all owned instances */
139
+ ListInstances(request: ListInstancesRequest): Promise<ListInstancesResponse>;
140
+ /** Get detailed information about specific deployment */
141
+ GetDeployment(request: GetDeploymentRequest): Promise<Deployment>;
142
+ /** Get detailed information about current deployment of the instance */
143
+ GetCurrentDeployment(request: GetCurrentDeploymentRequest): Promise<Deployment>;
144
+ /** Get list of deployments of the instance */
145
+ ListDeployments(request: ListDeploymentsRequest): Promise<ListDeploymentsResponse>;
146
+ /** Register new profile */
147
+ RegisterProfile(request: RegisterProfileRequest): Promise<RegisterProfileResponse>;
148
+ /** Get information about current account */
149
+ GetProfile(request: GetProfileRequest): Promise<UserProfile>;
150
+ /** Generate auth api token for current account */
151
+ CreateAuthToken(request: CreateAuthTokenRequest): Promise<AuthToken>;
152
+ /** Get list of all auth tokens for current account */
153
+ ListAuthTokens(request: GetProfileRequest): Promise<ListAuthTokensResponse>;
154
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.176.2
5
+ // protoc v5.27.0
6
+ // source: v1/autoscout.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.UpdateInstanceAction = exports.DeploymentStatus = void 0;
9
+ var DeploymentStatus;
10
+ (function (DeploymentStatus) {
11
+ DeploymentStatus["NO_STATUS"] = "NO_STATUS";
12
+ DeploymentStatus["CREATED"] = "CREATED";
13
+ DeploymentStatus["PENDING"] = "PENDING";
14
+ DeploymentStatus["RUNNING"] = "RUNNING";
15
+ DeploymentStatus["STOPPING"] = "STOPPING";
16
+ DeploymentStatus["STOPPED"] = "STOPPED";
17
+ DeploymentStatus["FAILED"] = "FAILED";
18
+ DeploymentStatus["UNHEALTHY"] = "UNHEALTHY";
19
+ DeploymentStatus["UNRECOGNIZED"] = "UNRECOGNIZED";
20
+ })(DeploymentStatus || (exports.DeploymentStatus = DeploymentStatus = {}));
21
+ var UpdateInstanceAction;
22
+ (function (UpdateInstanceAction) {
23
+ UpdateInstanceAction["START"] = "START";
24
+ UpdateInstanceAction["STOP"] = "STOP";
25
+ UpdateInstanceAction["RESTART"] = "RESTART";
26
+ UpdateInstanceAction["UNRECOGNIZED"] = "UNRECOGNIZED";
27
+ })(UpdateInstanceAction || (exports.UpdateInstanceAction = UpdateInstanceAction = {}));
@@ -0,0 +1,190 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v1.176.2
4
+ // protoc v5.27.0
5
+ // source: v1/autoscout.proto
6
+
7
+ /* eslint-disable */
8
+ import { type DeployConfig, type DeployConfigPartial } from "./config";
9
+
10
+ export enum DeploymentStatus {
11
+ NO_STATUS = "NO_STATUS",
12
+ CREATED = "CREATED",
13
+ PENDING = "PENDING",
14
+ RUNNING = "RUNNING",
15
+ STOPPING = "STOPPING",
16
+ STOPPED = "STOPPED",
17
+ FAILED = "FAILED",
18
+ UNHEALTHY = "UNHEALTHY",
19
+ UNRECOGNIZED = "UNRECOGNIZED",
20
+ }
21
+
22
+ export enum UpdateInstanceAction {
23
+ START = "START",
24
+ STOP = "STOP",
25
+ RESTART = "RESTART",
26
+ UNRECOGNIZED = "UNRECOGNIZED",
27
+ }
28
+
29
+ export interface CreateInstanceRequest {
30
+ name: string;
31
+ /** initial config */
32
+ config: DeployConfig | undefined;
33
+ }
34
+
35
+ export interface CreateInstanceResponse {
36
+ instance_id: string;
37
+ }
38
+
39
+ export interface DeleteInstanceRequest {
40
+ instance_id: string;
41
+ }
42
+
43
+ export interface DeleteInstanceResponse {
44
+ }
45
+
46
+ export interface UpdateConfigRequest {
47
+ instance_id: string;
48
+ config: DeployConfig | undefined;
49
+ }
50
+
51
+ export interface UpdateConfigResponse {
52
+ config: DeployConfig | undefined;
53
+ }
54
+
55
+ export interface UpdateConfigPartialRequest {
56
+ instance_id: string;
57
+ config: DeployConfigPartial | undefined;
58
+ }
59
+
60
+ export interface UpdateInstanceStatusRequest {
61
+ instance_id: string;
62
+ action: UpdateInstanceAction;
63
+ }
64
+
65
+ export interface UpdateInstanceStatusResponse {
66
+ status: DeploymentStatus;
67
+ deployment_id: string;
68
+ }
69
+
70
+ export interface Instance {
71
+ instance_id: string;
72
+ name: string;
73
+ slug: string;
74
+ created_at: string;
75
+ config: DeployConfig | undefined;
76
+ deployment: Deployment | undefined;
77
+ }
78
+
79
+ export interface Deployment {
80
+ deployment_id: string;
81
+ instance_id: string;
82
+ status: DeploymentStatus;
83
+ error?: string | undefined;
84
+ created_at: string;
85
+ started_at?: string | undefined;
86
+ finished_at?: string | undefined;
87
+ config: DeployConfig | undefined;
88
+ blockscout_url?: string | undefined;
89
+ total_cost: string;
90
+ }
91
+
92
+ export interface GetInstanceRequest {
93
+ instance_id: string;
94
+ }
95
+
96
+ export interface ListInstancesRequest {
97
+ }
98
+
99
+ export interface ListInstancesResponse {
100
+ items: Instance[];
101
+ }
102
+
103
+ export interface GetDeploymentRequest {
104
+ deployment_id: string;
105
+ }
106
+
107
+ export interface ListDeploymentsRequest {
108
+ instance_id: string;
109
+ }
110
+
111
+ export interface ListDeploymentsResponse {
112
+ items: Deployment[];
113
+ }
114
+
115
+ export interface GetCurrentDeploymentRequest {
116
+ instance_id: string;
117
+ }
118
+
119
+ export interface GetProfileRequest {
120
+ }
121
+
122
+ export interface UserAction {
123
+ action: string;
124
+ instance_id?: string | undefined;
125
+ timestamp: string;
126
+ }
127
+
128
+ export interface UserProfile {
129
+ email: string;
130
+ project_title?: string | undefined;
131
+ created_at: string;
132
+ balance: string;
133
+ recent_actions: UserAction[];
134
+ }
135
+
136
+ export interface AuthToken {
137
+ name: string;
138
+ token_value: string;
139
+ created_at: string;
140
+ }
141
+
142
+ export interface ListAuthTokensResponse {
143
+ items: AuthToken[];
144
+ }
145
+
146
+ export interface RegisterProfileRequest {
147
+ email: string;
148
+ project_title: string;
149
+ promo?: string | undefined;
150
+ }
151
+
152
+ export interface RegisterProfileResponse {
153
+ profile: UserProfile | undefined;
154
+ initial_token: AuthToken | undefined;
155
+ }
156
+
157
+ export interface CreateAuthTokenRequest {
158
+ name: string;
159
+ }
160
+
161
+ export interface Autoscout {
162
+ /** Creating blockscout instance with config */
163
+ CreateInstance(request: CreateInstanceRequest): Promise<CreateInstanceResponse>;
164
+ /** Update configuration of blockscout instance */
165
+ UpdateConfig(request: UpdateConfigRequest): Promise<UpdateConfigResponse>;
166
+ /** Update configuration of blockscout instance (partially) */
167
+ UpdateConfigPartial(request: UpdateConfigPartialRequest): Promise<UpdateConfigResponse>;
168
+ /** Start or finish the instance */
169
+ UpdateInstanceStatus(request: UpdateInstanceStatusRequest): Promise<UpdateInstanceStatusResponse>;
170
+ /** Get detailed information of the instance */
171
+ GetInstance(request: GetInstanceRequest): Promise<Instance>;
172
+ /** Delete instance */
173
+ DeleteInstance(request: DeleteInstanceRequest): Promise<DeleteInstanceResponse>;
174
+ /** Get list of all owned instances */
175
+ ListInstances(request: ListInstancesRequest): Promise<ListInstancesResponse>;
176
+ /** Get detailed information about specific deployment */
177
+ GetDeployment(request: GetDeploymentRequest): Promise<Deployment>;
178
+ /** Get detailed information about current deployment of the instance */
179
+ GetCurrentDeployment(request: GetCurrentDeploymentRequest): Promise<Deployment>;
180
+ /** Get list of deployments of the instance */
181
+ ListDeployments(request: ListDeploymentsRequest): Promise<ListDeploymentsResponse>;
182
+ /** Register new profile */
183
+ RegisterProfile(request: RegisterProfileRequest): Promise<RegisterProfileResponse>;
184
+ /** Get information about current account */
185
+ GetProfile(request: GetProfileRequest): Promise<UserProfile>;
186
+ /** Generate auth api token for current account */
187
+ CreateAuthToken(request: CreateAuthTokenRequest): Promise<AuthToken>;
188
+ /** Get list of all auth tokens for current account */
189
+ ListAuthTokens(request: GetProfileRequest): Promise<ListAuthTokensResponse>;
190
+ }
@@ -0,0 +1,63 @@
1
+ export interface DeployConfig {
2
+ rpc_url: string;
3
+ server_size: string;
4
+ chain_type?: string | undefined;
5
+ node_type?: string | undefined;
6
+ chain_id?: string | undefined;
7
+ token_symbol?: string | undefined;
8
+ instance_url?: string | undefined;
9
+ logo_url?: string | undefined;
10
+ chain_name?: string | undefined;
11
+ icon_url?: string | undefined;
12
+ homeplate_background?: string | undefined;
13
+ homeplate_text_color?: string | undefined;
14
+ is_testnet?: boolean | undefined;
15
+ stats_enabled?: boolean | undefined;
16
+ rpc_ws_url?: string | undefined;
17
+ public_rpc_url?: string | undefined;
18
+ wallet_connect_project_id?: string | undefined;
19
+ optimism?: OptimismConfig | undefined;
20
+ }
21
+ export interface DeployConfigPartial {
22
+ rpc_url?: string | undefined;
23
+ server_size?: string | undefined;
24
+ chain_type?: string | undefined;
25
+ node_type?: string | undefined;
26
+ chain_id?: string | undefined;
27
+ token_symbol?: string | undefined;
28
+ instance_url?: string | undefined;
29
+ logo_url?: string | undefined;
30
+ chain_name?: string | undefined;
31
+ icon_url?: string | undefined;
32
+ homeplate_background?: string | undefined;
33
+ homeplate_text_color?: string | undefined;
34
+ is_testnet?: boolean | undefined;
35
+ stats_enabled?: boolean | undefined;
36
+ rpc_ws_url?: string | undefined;
37
+ public_rpc_url?: string | undefined;
38
+ wallet_connect_project_id?: string | undefined;
39
+ optimism?: OptimismConfig | undefined;
40
+ }
41
+ /** https://github.com/blockscout/docs/blob/df6996a0f8e553c2d4b1c3dcda6ef2518a8b39f9/for-developers/information-and-settings/env-variables/backend-envs-chain-specific.md?plain=1#L102-L119 */
42
+ export interface OptimismConfig {
43
+ /** changes blockscout env INDEXER_OPTIMISM_L1_RPC */
44
+ l1_rpc_url?: string | undefined;
45
+ /** changes blockscout env INDEXER_OPTIMISM_L1_SYSTEM_CONFIG_CONTRACT */
46
+ l1_system_config_contract?: string | undefined;
47
+ /** changes blockscout env INDEXER_OPTIMISM_L1_BATCH_BLOCKSCOUT_BLOBS_API_URL */
48
+ l1_batch_blockscout_blobs_api_url?: string | undefined;
49
+ /** changes blockscout env INDEXER_OPTIMISM_L1_BATCH_CELESTIA_BLOBS_API_URL */
50
+ l1_batch_celestia_blobs_api_url?: string | undefined;
51
+ /** changes blockscout env INDEXER_OPTIMISM_L1_BATCH_BLOCKS_CHUNK_SIZE */
52
+ l1_batch_blocks_chunk_size?: number | undefined;
53
+ /** changes blockscout env INDEXER_OPTIMISM_L2_BATCH_GENESIS_BLOCK_NUMBER */
54
+ l2_batch_genesis_block_number?: number | undefined;
55
+ /** changes blockscout env INDEXER_OPTIMISM_L1_OUTPUT_ORACLE_CONTRACT */
56
+ l1_output_oracle_contract?: string | undefined;
57
+ /** changes blockscout env INDEXER_OPTIMISM_L1_DEPOSITS_BATCH_SIZE */
58
+ l1_deposits_batch_size?: number | undefined;
59
+ /** changes blockscout env INDEXER_OPTIMISM_L2_WITHDRAWALS_START_BLOCK */
60
+ l2_withdrawals_start_block?: number | undefined;
61
+ /** changes blockscout env INDEXER_OPTIMISM_L2_MESSAGE_PASSER_CONTRACT */
62
+ l2_message_passer_contract?: string | undefined;
63
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.176.2
5
+ // protoc v5.27.0
6
+ // source: v1/config.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,91 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v1.176.2
4
+ // protoc v5.27.0
5
+ // source: v1/config.proto
6
+
7
+ /* eslint-disable */
8
+
9
+ export interface DeployConfig {
10
+ rpc_url: string;
11
+ server_size: string;
12
+ chain_type?: string | undefined;
13
+ node_type?: string | undefined;
14
+ chain_id?: string | undefined;
15
+ token_symbol?: string | undefined;
16
+ instance_url?: string | undefined;
17
+ logo_url?: string | undefined;
18
+ chain_name?: string | undefined;
19
+ icon_url?: string | undefined;
20
+ homeplate_background?: string | undefined;
21
+ homeplate_text_color?: string | undefined;
22
+ is_testnet?: boolean | undefined;
23
+ stats_enabled?: boolean | undefined;
24
+ rpc_ws_url?: string | undefined;
25
+ public_rpc_url?: string | undefined;
26
+ wallet_connect_project_id?: string | undefined;
27
+ optimism?: OptimismConfig | undefined;
28
+ }
29
+
30
+ export interface DeployConfigPartial {
31
+ rpc_url?: string | undefined;
32
+ server_size?: string | undefined;
33
+ chain_type?: string | undefined;
34
+ node_type?: string | undefined;
35
+ chain_id?: string | undefined;
36
+ token_symbol?: string | undefined;
37
+ instance_url?: string | undefined;
38
+ logo_url?: string | undefined;
39
+ chain_name?: string | undefined;
40
+ icon_url?: string | undefined;
41
+ homeplate_background?: string | undefined;
42
+ homeplate_text_color?: string | undefined;
43
+ is_testnet?: boolean | undefined;
44
+ stats_enabled?: boolean | undefined;
45
+ rpc_ws_url?: string | undefined;
46
+ public_rpc_url?: string | undefined;
47
+ wallet_connect_project_id?: string | undefined;
48
+ optimism?: OptimismConfig | undefined;
49
+ }
50
+
51
+ /** https://github.com/blockscout/docs/blob/df6996a0f8e553c2d4b1c3dcda6ef2518a8b39f9/for-developers/information-and-settings/env-variables/backend-envs-chain-specific.md?plain=1#L102-L119 */
52
+ export interface OptimismConfig {
53
+ /** changes blockscout env INDEXER_OPTIMISM_L1_RPC */
54
+ l1_rpc_url?:
55
+ | string
56
+ | undefined;
57
+ /** changes blockscout env INDEXER_OPTIMISM_L1_SYSTEM_CONFIG_CONTRACT */
58
+ l1_system_config_contract?:
59
+ | string
60
+ | undefined;
61
+ /** changes blockscout env INDEXER_OPTIMISM_L1_BATCH_BLOCKSCOUT_BLOBS_API_URL */
62
+ l1_batch_blockscout_blobs_api_url?:
63
+ | string
64
+ | undefined;
65
+ /** changes blockscout env INDEXER_OPTIMISM_L1_BATCH_CELESTIA_BLOBS_API_URL */
66
+ l1_batch_celestia_blobs_api_url?:
67
+ | string
68
+ | undefined;
69
+ /** changes blockscout env INDEXER_OPTIMISM_L1_BATCH_BLOCKS_CHUNK_SIZE */
70
+ l1_batch_blocks_chunk_size?:
71
+ | number
72
+ | undefined;
73
+ /** changes blockscout env INDEXER_OPTIMISM_L2_BATCH_GENESIS_BLOCK_NUMBER */
74
+ l2_batch_genesis_block_number?:
75
+ | number
76
+ | undefined;
77
+ /** changes blockscout env INDEXER_OPTIMISM_L1_OUTPUT_ORACLE_CONTRACT */
78
+ l1_output_oracle_contract?:
79
+ | string
80
+ | undefined;
81
+ /** changes blockscout env INDEXER_OPTIMISM_L1_DEPOSITS_BATCH_SIZE */
82
+ l1_deposits_batch_size?:
83
+ | number
84
+ | undefined;
85
+ /** changes blockscout env INDEXER_OPTIMISM_L2_WITHDRAWALS_START_BLOCK */
86
+ l2_withdrawals_start_block?:
87
+ | number
88
+ | undefined;
89
+ /** changes blockscout env INDEXER_OPTIMISM_L2_MESSAGE_PASSER_CONTRACT */
90
+ l2_message_passer_contract?: string | undefined;
91
+ }
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './dist/v1/autoscout';
2
+ export * from './dist/v1/config';
package/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dist/v1/autoscout"), exports);
18
+ __exportStar(require("./dist/v1/config"), exports);
package/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './dist/v1/autoscout';
2
+ export * from './dist/v1/config';
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@blockscout/autoscout-types",
3
+ "version": "0.0.1",
4
+ "description": "TypeScript definitions for Autoscout microservice",
5
+ "main": "./index.js",
6
+ "types": "./index.d.ts",
7
+ "scripts": {
8
+ "build": "npm run compile:proto && npm run compile:ts",
9
+ "compile:proto": "mkdir -p ./dist && protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_opt=snakeToCamel=false --ts_proto_opt=stringEnums=true --ts_proto_opt=onlyTypes=true --ts_proto_opt=emitImportedFiles=false --ts_proto_opt=exportCommonSymbols=false --proto_path=../autoscout-proto/proto --proto_path=../../blockscout-rs/proto --ts_proto_out=./dist ../autoscout-proto/proto/v1/autoscout.proto ../autoscout-proto/proto/v1/config.proto",
10
+ "compile:ts": "tsc --declaration ./index.ts"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/blockscout/blockscout-rs.git",
15
+ "directory": "autoscout-types"
16
+ },
17
+ "license": "MIT",
18
+ "bugs": {
19
+ "url": "https://github.com/blockscout/blockscout-rs/issues"
20
+ },
21
+ "homepage": "https://github.com/blockscout/blockscout-rs#readme",
22
+ "devDependencies": {
23
+ "ts-proto": "1.176.2",
24
+ "typescript": "5.4.5"
25
+ }
26
+ }