@blockscout/autoscout-types 0.0.9 → 0.0.10

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.
@@ -16,6 +16,16 @@ export declare enum UpdateInstanceAction {
16
16
  RESTART = "RESTART",
17
17
  UNRECOGNIZED = "UNRECOGNIZED"
18
18
  }
19
+ export declare enum DepositStatus {
20
+ UNSPECIFIED_DEPOSIT_STATUS = "UNSPECIFIED_DEPOSIT_STATUS",
21
+ DEPOSIT_STATUS_CREATED = "DEPOSIT_STATUS_CREATED",
22
+ DEPOSIT_STATUS_PENDING = "DEPOSIT_STATUS_PENDING",
23
+ DEPOSIT_STATUS_DELAYED = "DEPOSIT_STATUS_DELAYED",
24
+ DEPOSIT_STATUS_CONFIRMED = "DEPOSIT_STATUS_CONFIRMED",
25
+ DEPOSIT_STATUS_FAILED = "DEPOSIT_STATUS_FAILED",
26
+ DEPOSIT_STATUS_RESOLVED = "DEPOSIT_STATUS_RESOLVED",
27
+ UNRECOGNIZED = "UNRECOGNIZED"
28
+ }
19
29
  export interface GetConfigSchemaRequest {
20
30
  }
21
31
  export interface CreateInstanceRequest {
@@ -146,6 +156,32 @@ export interface RegisterProfileResponse {
146
156
  export interface CreateAuthTokenRequest {
147
157
  name: string;
148
158
  }
159
+ export interface CreateCoinbaseDepositRequest {
160
+ }
161
+ export interface CreateCoinbaseDepositResponse {
162
+ id: string;
163
+ url: string;
164
+ }
165
+ export interface GetCoinbaseDepositRequest {
166
+ deposit_id: string;
167
+ }
168
+ export interface ListCoinbaseDepositsRequest {
169
+ }
170
+ export interface ListCoinbaseDepositsResponse {
171
+ items: Deposit[];
172
+ }
173
+ export interface DeleteCoinbaseDepositRequest {
174
+ deposit_id: string;
175
+ }
176
+ export interface DeleteCoinbaseDepositResponse {
177
+ }
178
+ export interface Deposit {
179
+ id: string;
180
+ url: string;
181
+ created_at: string;
182
+ amount?: string | undefined;
183
+ status: DepositStatus;
184
+ }
149
185
  export interface Autoscout {
150
186
  GetConfigSchema(request: GetConfigSchemaRequest): Promise<ConfigSchema>;
151
187
  /** Creating blockscout instance with config */
@@ -176,4 +212,8 @@ export interface Autoscout {
176
212
  CreateAuthToken(request: CreateAuthTokenRequest): Promise<AuthToken>;
177
213
  /** Get list of all auth tokens for current account */
178
214
  ListAuthTokens(request: GetProfileRequest): Promise<ListAuthTokensResponse>;
215
+ CreateCoinbaseDeposit(request: CreateCoinbaseDepositRequest): Promise<CreateCoinbaseDepositResponse>;
216
+ GetCoinbaseDeposit(request: GetCoinbaseDepositRequest): Promise<Deposit>;
217
+ ListCoinbaseDeposits(request: ListCoinbaseDepositsRequest): Promise<ListCoinbaseDepositsResponse>;
218
+ DeleteCoinbaseDeposit(request: DeleteCoinbaseDepositRequest): Promise<DeleteCoinbaseDepositResponse>;
179
219
  }
@@ -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.UpdateInstanceAction = exports.DeploymentStatus = void 0;
8
+ exports.DepositStatus = exports.UpdateInstanceAction = exports.DeploymentStatus = void 0;
9
9
  var DeploymentStatus;
10
10
  (function (DeploymentStatus) {
11
11
  DeploymentStatus["NO_STATUS"] = "NO_STATUS";
@@ -24,3 +24,14 @@ var UpdateInstanceAction;
24
24
  UpdateInstanceAction["RESTART"] = "RESTART";
25
25
  UpdateInstanceAction["UNRECOGNIZED"] = "UNRECOGNIZED";
26
26
  })(UpdateInstanceAction || (exports.UpdateInstanceAction = UpdateInstanceAction = {}));
27
+ var DepositStatus;
28
+ (function (DepositStatus) {
29
+ DepositStatus["UNSPECIFIED_DEPOSIT_STATUS"] = "UNSPECIFIED_DEPOSIT_STATUS";
30
+ DepositStatus["DEPOSIT_STATUS_CREATED"] = "DEPOSIT_STATUS_CREATED";
31
+ DepositStatus["DEPOSIT_STATUS_PENDING"] = "DEPOSIT_STATUS_PENDING";
32
+ DepositStatus["DEPOSIT_STATUS_DELAYED"] = "DEPOSIT_STATUS_DELAYED";
33
+ DepositStatus["DEPOSIT_STATUS_CONFIRMED"] = "DEPOSIT_STATUS_CONFIRMED";
34
+ DepositStatus["DEPOSIT_STATUS_FAILED"] = "DEPOSIT_STATUS_FAILED";
35
+ DepositStatus["DEPOSIT_STATUS_RESOLVED"] = "DEPOSIT_STATUS_RESOLVED";
36
+ DepositStatus["UNRECOGNIZED"] = "UNRECOGNIZED";
37
+ })(DepositStatus || (exports.DepositStatus = DepositStatus = {}));
@@ -26,6 +26,17 @@ export enum UpdateInstanceAction {
26
26
  UNRECOGNIZED = "UNRECOGNIZED",
27
27
  }
28
28
 
29
+ export enum DepositStatus {
30
+ UNSPECIFIED_DEPOSIT_STATUS = "UNSPECIFIED_DEPOSIT_STATUS",
31
+ DEPOSIT_STATUS_CREATED = "DEPOSIT_STATUS_CREATED",
32
+ DEPOSIT_STATUS_PENDING = "DEPOSIT_STATUS_PENDING",
33
+ DEPOSIT_STATUS_DELAYED = "DEPOSIT_STATUS_DELAYED",
34
+ DEPOSIT_STATUS_CONFIRMED = "DEPOSIT_STATUS_CONFIRMED",
35
+ DEPOSIT_STATUS_FAILED = "DEPOSIT_STATUS_FAILED",
36
+ DEPOSIT_STATUS_RESOLVED = "DEPOSIT_STATUS_RESOLVED",
37
+ UNRECOGNIZED = "UNRECOGNIZED",
38
+ }
39
+
29
40
  export interface GetConfigSchemaRequest {
30
41
  }
31
42
 
@@ -181,6 +192,40 @@ export interface CreateAuthTokenRequest {
181
192
  name: string;
182
193
  }
183
194
 
195
+ export interface CreateCoinbaseDepositRequest {
196
+ }
197
+
198
+ export interface CreateCoinbaseDepositResponse {
199
+ id: string;
200
+ url: string;
201
+ }
202
+
203
+ export interface GetCoinbaseDepositRequest {
204
+ deposit_id: string;
205
+ }
206
+
207
+ export interface ListCoinbaseDepositsRequest {
208
+ }
209
+
210
+ export interface ListCoinbaseDepositsResponse {
211
+ items: Deposit[];
212
+ }
213
+
214
+ export interface DeleteCoinbaseDepositRequest {
215
+ deposit_id: string;
216
+ }
217
+
218
+ export interface DeleteCoinbaseDepositResponse {
219
+ }
220
+
221
+ export interface Deposit {
222
+ id: string;
223
+ url: string;
224
+ created_at: string;
225
+ amount?: string | undefined;
226
+ status: DepositStatus;
227
+ }
228
+
184
229
  export interface Autoscout {
185
230
  GetConfigSchema(request: GetConfigSchemaRequest): Promise<ConfigSchema>;
186
231
  /** Creating blockscout instance with config */
@@ -211,4 +256,8 @@ export interface Autoscout {
211
256
  CreateAuthToken(request: CreateAuthTokenRequest): Promise<AuthToken>;
212
257
  /** Get list of all auth tokens for current account */
213
258
  ListAuthTokens(request: GetProfileRequest): Promise<ListAuthTokensResponse>;
259
+ CreateCoinbaseDeposit(request: CreateCoinbaseDepositRequest): Promise<CreateCoinbaseDepositResponse>;
260
+ GetCoinbaseDeposit(request: GetCoinbaseDepositRequest): Promise<Deposit>;
261
+ ListCoinbaseDeposits(request: ListCoinbaseDepositsRequest): Promise<ListCoinbaseDepositsResponse>;
262
+ DeleteCoinbaseDeposit(request: DeleteCoinbaseDepositRequest): Promise<DeleteCoinbaseDepositResponse>;
214
263
  }
@@ -35,6 +35,18 @@ export declare enum Identicon {
35
35
  BLOCKIE = "BLOCKIE",
36
36
  UNRECOGNIZED = "UNRECOGNIZED"
37
37
  }
38
+ export declare enum AdTextProvider {
39
+ UNSPECIFIED_AD_TEXT_PROVIDER = "UNSPECIFIED_AD_TEXT_PROVIDER",
40
+ COINZILLA = "COINZILLA",
41
+ TEXT_NONE = "TEXT_NONE",
42
+ UNRECOGNIZED = "UNRECOGNIZED"
43
+ }
44
+ export declare enum AdBannerProvider {
45
+ UNSPECIFIED_AD_BANNER_PROVIDER = "UNSPECIFIED_AD_BANNER_PROVIDER",
46
+ SLICE = "SLICE",
47
+ BANNER_NONE = "BANNER_NONE",
48
+ UNRECOGNIZED = "UNRECOGNIZED"
49
+ }
38
50
  export interface DeployConfig {
39
51
  rpc_url: string;
40
52
  server_size: string;
@@ -66,6 +78,7 @@ export interface DeployConfig {
66
78
  footer?: Footer | undefined;
67
79
  optimism?: OptimismConfig | undefined;
68
80
  arbitrum?: ArbitrumConfig | undefined;
81
+ ads?: Ads | undefined;
69
82
  }
70
83
  export interface Footer {
71
84
  columns: FooterColumn[];
@@ -78,6 +91,10 @@ export interface FooterLink {
78
91
  text: string;
79
92
  url: string;
80
93
  }
94
+ export interface Ads {
95
+ text_provider: AdTextProvider;
96
+ banner_provider: AdBannerProvider;
97
+ }
81
98
  /** https://github.com/blockscout/docs/blob/df6996a0f8e553c2d4b1c3dcda6ef2518a8b39f9/for-developers/information-and-settings/env-variables/backend-envs-chain-specific.md?plain=1#L102-L119 */
82
99
  export interface OptimismConfig {
83
100
  /** changes blockscout env INDEXER_OPTIMISM_L1_RPC */
package/dist/v1/config.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // protoc v4.23.4
6
6
  // source: v1/config.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.Identicon = exports.ColorTheme = exports.NavigationLayout = exports.NodeType = exports.ChainType = void 0;
8
+ exports.AdBannerProvider = exports.AdTextProvider = exports.Identicon = exports.ColorTheme = exports.NavigationLayout = exports.NodeType = exports.ChainType = void 0;
9
9
  /* eslint-disable */
10
10
  var ChainType;
11
11
  (function (ChainType) {
@@ -49,3 +49,17 @@ var Identicon;
49
49
  Identicon["BLOCKIE"] = "BLOCKIE";
50
50
  Identicon["UNRECOGNIZED"] = "UNRECOGNIZED";
51
51
  })(Identicon || (exports.Identicon = Identicon = {}));
52
+ var AdTextProvider;
53
+ (function (AdTextProvider) {
54
+ AdTextProvider["UNSPECIFIED_AD_TEXT_PROVIDER"] = "UNSPECIFIED_AD_TEXT_PROVIDER";
55
+ AdTextProvider["COINZILLA"] = "COINZILLA";
56
+ AdTextProvider["TEXT_NONE"] = "TEXT_NONE";
57
+ AdTextProvider["UNRECOGNIZED"] = "UNRECOGNIZED";
58
+ })(AdTextProvider || (exports.AdTextProvider = AdTextProvider = {}));
59
+ var AdBannerProvider;
60
+ (function (AdBannerProvider) {
61
+ AdBannerProvider["UNSPECIFIED_AD_BANNER_PROVIDER"] = "UNSPECIFIED_AD_BANNER_PROVIDER";
62
+ AdBannerProvider["SLICE"] = "SLICE";
63
+ AdBannerProvider["BANNER_NONE"] = "BANNER_NONE";
64
+ AdBannerProvider["UNRECOGNIZED"] = "UNRECOGNIZED";
65
+ })(AdBannerProvider || (exports.AdBannerProvider = AdBannerProvider = {}));
package/dist/v1/config.ts CHANGED
@@ -48,6 +48,20 @@ export enum Identicon {
48
48
  UNRECOGNIZED = "UNRECOGNIZED",
49
49
  }
50
50
 
51
+ export enum AdTextProvider {
52
+ UNSPECIFIED_AD_TEXT_PROVIDER = "UNSPECIFIED_AD_TEXT_PROVIDER",
53
+ COINZILLA = "COINZILLA",
54
+ TEXT_NONE = "TEXT_NONE",
55
+ UNRECOGNIZED = "UNRECOGNIZED",
56
+ }
57
+
58
+ export enum AdBannerProvider {
59
+ UNSPECIFIED_AD_BANNER_PROVIDER = "UNSPECIFIED_AD_BANNER_PROVIDER",
60
+ SLICE = "SLICE",
61
+ BANNER_NONE = "BANNER_NONE",
62
+ UNRECOGNIZED = "UNRECOGNIZED",
63
+ }
64
+
51
65
  export interface DeployConfig {
52
66
  rpc_url: string;
53
67
  server_size: string;
@@ -81,6 +95,7 @@ export interface DeployConfig {
81
95
  footer?: Footer | undefined;
82
96
  optimism?: OptimismConfig | undefined;
83
97
  arbitrum?: ArbitrumConfig | undefined;
98
+ ads?: Ads | undefined;
84
99
  }
85
100
 
86
101
  export interface Footer {
@@ -97,6 +112,11 @@ export interface FooterLink {
97
112
  url: string;
98
113
  }
99
114
 
115
+ export interface Ads {
116
+ text_provider: AdTextProvider;
117
+ banner_provider: AdBannerProvider;
118
+ }
119
+
100
120
  /** https://github.com/blockscout/docs/blob/df6996a0f8e553c2d4b1c3dcda6ef2518a8b39f9/for-developers/information-and-settings/env-variables/backend-envs-chain-specific.md?plain=1#L102-L119 */
101
121
  export interface OptimismConfig {
102
122
  /** changes blockscout env INDEXER_OPTIMISM_L1_RPC */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockscout/autoscout-types",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "TypeScript definitions for Autoscout microservice",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",