@long2ice/relayx-backend 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.
Files changed (88) hide show
  1. package/README.md +13 -0
  2. package/dist/app.d.ts +8592 -0
  3. package/dist/bullmq/index.d.ts +1 -0
  4. package/dist/bullmq/jobs.d.ts +34 -0
  5. package/dist/bullmq/queue.d.ts +6 -0
  6. package/dist/bullmq/queuedash.d.ts +12 -0
  7. package/dist/bullmq/worker.d.ts +1 -0
  8. package/dist/config.d.ts +16 -0
  9. package/dist/db.d.ts +3 -0
  10. package/dist/generated/prisma/zod/index.d.ts +2289 -0
  11. package/dist/index.d.ts +1 -0
  12. package/dist/middlewares/auth.d.ts +3 -0
  13. package/dist/middlewares/ip.d.ts +2 -0
  14. package/dist/middlewares/license.d.ts +2 -0
  15. package/dist/middlewares/plan.d.ts +2 -0
  16. package/dist/routes/admin/license.d.ts +90 -0
  17. package/dist/routes/admin/node.d.ts +919 -0
  18. package/dist/routes/admin/node_group.d.ts +2115 -0
  19. package/dist/routes/admin/pay.d.ts +261 -0
  20. package/dist/routes/admin/plan.d.ts +198 -0
  21. package/dist/routes/admin/plan_coupon.d.ts +92 -0
  22. package/dist/routes/admin/stats.d.ts +77 -0
  23. package/dist/routes/admin/system_config.d.ts +68 -0
  24. package/dist/routes/admin/ticket.d.ts +113 -0
  25. package/dist/routes/admin/topup.d.ts +88 -0
  26. package/dist/routes/admin/topup_activity.d.ts +84 -0
  27. package/dist/routes/admin/tunnel.d.ts +566 -0
  28. package/dist/routes/admin/user.d.ts +299 -0
  29. package/dist/routes/admin/user_plan.d.ts +109 -0
  30. package/dist/routes/bot.d.ts +13 -0
  31. package/dist/routes/dns_provider.d.ts +240 -0
  32. package/dist/routes/health.d.ts +3 -0
  33. package/dist/routes/in_node_group_dns.d.ts +132 -0
  34. package/dist/routes/license.d.ts +50 -0
  35. package/dist/routes/node.d.ts +148 -0
  36. package/dist/routes/node_group.d.ts +1498 -0
  37. package/dist/routes/pay.d.ts +34 -0
  38. package/dist/routes/plan.d.ts +148 -0
  39. package/dist/routes/plan_coupon.d.ts +22 -0
  40. package/dist/routes/system_config.d.ts +87 -0
  41. package/dist/routes/ticket.d.ts +129 -0
  42. package/dist/routes/topup.d.ts +93 -0
  43. package/dist/routes/tunnel.d.ts +742 -0
  44. package/dist/routes/user.d.ts +293 -0
  45. package/dist/schemas/context.d.ts +9 -0
  46. package/dist/schemas/license.d.ts +7 -0
  47. package/dist/schemas/request.d.ts +1181 -0
  48. package/dist/schemas/response.d.ts +2439 -0
  49. package/dist/schemas/socket.io.d.ts +33 -0
  50. package/dist/schemas/tunnel.d.ts +10 -0
  51. package/dist/services/dns/cloudflare.d.ts +12 -0
  52. package/dist/services/dns/huawei.d.ts +12 -0
  53. package/dist/services/dns/index.d.ts +4 -0
  54. package/dist/services/dns/interface.d.ts +8 -0
  55. package/dist/services/dns_provider.d.ts +46 -0
  56. package/dist/services/email.d.ts +11 -0
  57. package/dist/services/fernet.d.ts +2 -0
  58. package/dist/services/in_node_group_dns.d.ts +65 -0
  59. package/dist/services/license.d.ts +87 -0
  60. package/dist/services/logger.d.ts +7 -0
  61. package/dist/services/node.d.ts +39 -0
  62. package/dist/services/node_group.d.ts +75 -0
  63. package/dist/services/notify.d.ts +44 -0
  64. package/dist/services/order.d.ts +3 -0
  65. package/dist/services/pay.d.ts +6 -0
  66. package/dist/services/plan.d.ts +119 -0
  67. package/dist/services/plan_coupon.d.ts +16 -0
  68. package/dist/services/redis.d.ts +59 -0
  69. package/dist/services/stackauth.d.ts +25 -0
  70. package/dist/services/sysinfo.d.ts +7 -0
  71. package/dist/services/system_config.d.ts +7 -0
  72. package/dist/services/telegram.d.ts +8 -0
  73. package/dist/services/ticket.d.ts +134 -0
  74. package/dist/services/topup.d.ts +37 -0
  75. package/dist/services/topup_activity.d.ts +21 -0
  76. package/dist/services/tunnel.d.ts +1235 -0
  77. package/dist/services/user.d.ts +25 -0
  78. package/dist/socket-io/events.d.ts +13 -0
  79. package/dist/socket-io/handlers/disconnect.d.ts +2 -0
  80. package/dist/socket-io/handlers/listen.d.ts +3 -0
  81. package/dist/socket-io/handlers/register.d.ts +2 -0
  82. package/dist/socket-io/handlers/sysinfo.d.ts +2 -0
  83. package/dist/socket-io/index.d.ts +3 -0
  84. package/dist/socket-io/utils.d.ts +8 -0
  85. package/dist/utils/date.d.ts +1 -0
  86. package/dist/utils/ip.d.ts +2 -0
  87. package/dist/utils/uuid.d.ts +1 -0
  88. package/package.json +82 -0
@@ -0,0 +1,299 @@
1
+ import { Variables } from "../../schemas/context";
2
+ declare const app: import("hono/hono-base").HonoBase<{
3
+ Variables: Variables;
4
+ }, {
5
+ "/": {
6
+ $get: {
7
+ input: {
8
+ query: {
9
+ super_admin?: string | string[] | undefined;
10
+ email?: string | string[] | undefined;
11
+ status?: string | string[] | undefined;
12
+ sort?: string | string[] | undefined;
13
+ page?: string | string[] | undefined;
14
+ perPage?: string | string[] | undefined;
15
+ };
16
+ };
17
+ output: {
18
+ data: {
19
+ id: number;
20
+ created_at: string;
21
+ updated_at: string;
22
+ super_admin: boolean;
23
+ email: string;
24
+ balance: number;
25
+ tg_id: string | null;
26
+ uid: string | null;
27
+ note: string | null;
28
+ parent_id: number | null;
29
+ referral_commission_rate: number | null;
30
+ referral_first_only: boolean | null;
31
+ auto_renew: boolean;
32
+ api_key: string;
33
+ notify_subscriptions: string | number | boolean | {
34
+ [x: string]: string | number | boolean | /*elided*/ any | {
35
+ [x: number]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
36
+ length: number;
37
+ toString: null;
38
+ toLocaleString: null;
39
+ pop: null;
40
+ push: {};
41
+ concat: {};
42
+ join: {};
43
+ reverse: null;
44
+ shift: null;
45
+ slice: {};
46
+ sort: {};
47
+ splice: {};
48
+ unshift: {};
49
+ indexOf: {};
50
+ lastIndexOf: {};
51
+ every: {};
52
+ some: {};
53
+ forEach: {};
54
+ map: {};
55
+ filter: {};
56
+ reduce: {};
57
+ reduceRight: {};
58
+ find: {};
59
+ findIndex: {};
60
+ fill: {};
61
+ copyWithin: {};
62
+ entries: null;
63
+ keys: null;
64
+ values: null;
65
+ includes: {};
66
+ flatMap: {};
67
+ flat: {};
68
+ at: {};
69
+ [Symbol.iterator]: null;
70
+ readonly [Symbol.unscopables]: {
71
+ [x: number]: boolean | undefined;
72
+ length?: boolean | undefined;
73
+ toString?: boolean | undefined;
74
+ toLocaleString?: boolean | undefined;
75
+ pop?: boolean | undefined;
76
+ push?: boolean | undefined;
77
+ concat?: boolean | undefined;
78
+ join?: boolean | undefined;
79
+ reverse?: boolean | undefined;
80
+ shift?: boolean | undefined;
81
+ slice?: boolean | undefined;
82
+ sort?: boolean | undefined;
83
+ splice?: boolean | undefined;
84
+ unshift?: boolean | undefined;
85
+ indexOf?: boolean | undefined;
86
+ lastIndexOf?: boolean | undefined;
87
+ every?: boolean | undefined;
88
+ some?: boolean | undefined;
89
+ forEach?: boolean | undefined;
90
+ map?: boolean | undefined;
91
+ filter?: boolean | undefined;
92
+ reduce?: boolean | undefined;
93
+ reduceRight?: boolean | undefined;
94
+ find?: boolean | undefined;
95
+ findIndex?: boolean | undefined;
96
+ fill?: boolean | undefined;
97
+ copyWithin?: boolean | undefined;
98
+ entries?: boolean | undefined;
99
+ keys?: boolean | undefined;
100
+ values?: boolean | undefined;
101
+ includes?: boolean | undefined;
102
+ flatMap?: boolean | undefined;
103
+ flat?: boolean | undefined;
104
+ at?: boolean | undefined;
105
+ };
106
+ } | null | undefined;
107
+ } | {
108
+ [x: number]: string | number | boolean | {
109
+ [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
110
+ } | /*elided*/ any | null;
111
+ length: number;
112
+ toString: null;
113
+ toLocaleString: null;
114
+ pop: null;
115
+ push: {};
116
+ concat: {};
117
+ join: {};
118
+ reverse: null;
119
+ shift: null;
120
+ slice: {};
121
+ sort: {};
122
+ splice: {};
123
+ unshift: {};
124
+ indexOf: {};
125
+ lastIndexOf: {};
126
+ every: {};
127
+ some: {};
128
+ forEach: {};
129
+ map: {};
130
+ filter: {};
131
+ reduce: {};
132
+ reduceRight: {};
133
+ find: {};
134
+ findIndex: {};
135
+ fill: {};
136
+ copyWithin: {};
137
+ entries: null;
138
+ keys: null;
139
+ values: null;
140
+ includes: {};
141
+ flatMap: {};
142
+ flat: {};
143
+ at: {};
144
+ [Symbol.iterator]: null;
145
+ readonly [Symbol.unscopables]: {
146
+ [x: number]: boolean | undefined;
147
+ length?: boolean | undefined;
148
+ toString?: boolean | undefined;
149
+ toLocaleString?: boolean | undefined;
150
+ pop?: boolean | undefined;
151
+ push?: boolean | undefined;
152
+ concat?: boolean | undefined;
153
+ join?: boolean | undefined;
154
+ reverse?: boolean | undefined;
155
+ shift?: boolean | undefined;
156
+ slice?: boolean | undefined;
157
+ sort?: boolean | undefined;
158
+ splice?: boolean | undefined;
159
+ unshift?: boolean | undefined;
160
+ indexOf?: boolean | undefined;
161
+ lastIndexOf?: boolean | undefined;
162
+ every?: boolean | undefined;
163
+ some?: boolean | undefined;
164
+ forEach?: boolean | undefined;
165
+ map?: boolean | undefined;
166
+ filter?: boolean | undefined;
167
+ reduce?: boolean | undefined;
168
+ reduceRight?: boolean | undefined;
169
+ find?: boolean | undefined;
170
+ findIndex?: boolean | undefined;
171
+ fill?: boolean | undefined;
172
+ copyWithin?: boolean | undefined;
173
+ entries?: boolean | undefined;
174
+ keys?: boolean | undefined;
175
+ values?: boolean | undefined;
176
+ includes?: boolean | undefined;
177
+ flatMap?: boolean | undefined;
178
+ flat?: boolean | undefined;
179
+ at?: boolean | undefined;
180
+ };
181
+ } | null;
182
+ status: import("../../generated/prisma/client").$Enums.Status;
183
+ }[];
184
+ total: number;
185
+ };
186
+ outputFormat: "json";
187
+ status: import("hono/utils/http-status").ContentfulStatusCode;
188
+ };
189
+ };
190
+ } & {
191
+ "/": {
192
+ $post: {
193
+ input: {
194
+ json: {
195
+ super_admin: boolean;
196
+ email: string;
197
+ balance: number;
198
+ tg_id: string | null;
199
+ note: string | null;
200
+ referral_commission_rate: number | null;
201
+ referral_first_only: boolean | null;
202
+ auto_renew: boolean;
203
+ status: "active" | "inactive";
204
+ password?: string | undefined;
205
+ };
206
+ };
207
+ output: null;
208
+ outputFormat: "body";
209
+ status: 204;
210
+ };
211
+ };
212
+ } & {
213
+ "/:id": {
214
+ $put: {
215
+ input: {
216
+ param: {
217
+ id: string;
218
+ };
219
+ } & {
220
+ json: {
221
+ super_admin?: boolean | undefined;
222
+ email?: string | undefined;
223
+ balance?: number | undefined;
224
+ tg_id?: string | null | undefined;
225
+ note?: string | null | undefined;
226
+ referral_commission_rate?: number | null | undefined;
227
+ referral_first_only?: boolean | null | undefined;
228
+ auto_renew?: boolean | undefined;
229
+ status?: "active" | "inactive" | undefined;
230
+ };
231
+ };
232
+ output: null;
233
+ outputFormat: "body";
234
+ status: 204;
235
+ };
236
+ };
237
+ } & {
238
+ "/": {
239
+ $delete: {
240
+ input: {
241
+ query: {
242
+ ids: string;
243
+ };
244
+ };
245
+ output: null;
246
+ outputFormat: "body";
247
+ status: 204;
248
+ };
249
+ };
250
+ } & {
251
+ "/:id/password": {
252
+ $patch: {
253
+ input: {
254
+ param: {
255
+ id: string;
256
+ };
257
+ } & {
258
+ json: {
259
+ password: string;
260
+ };
261
+ };
262
+ output: null;
263
+ outputFormat: "body";
264
+ status: 204;
265
+ };
266
+ };
267
+ } & {
268
+ "/balance/log": {
269
+ $get: {
270
+ input: {
271
+ query: {
272
+ email?: string | string[] | undefined;
273
+ type?: string | string[] | undefined;
274
+ sort?: string | string[] | undefined;
275
+ page?: string | string[] | undefined;
276
+ perPage?: string | string[] | undefined;
277
+ };
278
+ };
279
+ output: {
280
+ data: {
281
+ created_at: string;
282
+ user: {
283
+ email: string;
284
+ };
285
+ id: number;
286
+ updated_at: string;
287
+ user_id: number;
288
+ balance: number;
289
+ amount: number;
290
+ type: import("../../generated/prisma/client").$Enums.BalanceLogType;
291
+ }[];
292
+ total: number;
293
+ };
294
+ outputFormat: "json";
295
+ status: import("hono/utils/http-status").ContentfulStatusCode;
296
+ };
297
+ };
298
+ }, "/">;
299
+ export default app;
@@ -0,0 +1,109 @@
1
+ import { Variables } from "../../schemas/context";
2
+ declare const app: import("hono/hono-base").HonoBase<{
3
+ Variables: Variables;
4
+ }, {
5
+ "/": {
6
+ $get: {
7
+ input: {
8
+ query: {
9
+ email?: string | string[] | undefined;
10
+ plan_id?: string | string[] | undefined;
11
+ sort?: string | string[] | undefined;
12
+ page?: string | string[] | undefined;
13
+ perPage?: string | string[] | undefined;
14
+ };
15
+ };
16
+ output: {
17
+ data: {
18
+ user: {
19
+ id: number;
20
+ email: string;
21
+ };
22
+ plan: {
23
+ name: string;
24
+ id: number;
25
+ };
26
+ id: number;
27
+ created_at: string;
28
+ updated_at: string;
29
+ user_id: number;
30
+ traffic: number | null;
31
+ plan_id: number;
32
+ traffic_used: number;
33
+ max_tunnels: number | null;
34
+ expired_at: string | null;
35
+ }[];
36
+ total: number;
37
+ };
38
+ outputFormat: "json";
39
+ status: import("hono/utils/http-status").ContentfulStatusCode;
40
+ };
41
+ };
42
+ } & {
43
+ "/": {
44
+ $post: {
45
+ input: {
46
+ json: {
47
+ user_id: number;
48
+ traffic: number | null;
49
+ plan_id: number;
50
+ max_tunnels: number | null;
51
+ expired_at: Date | null;
52
+ };
53
+ };
54
+ output: null;
55
+ outputFormat: "body";
56
+ status: 204;
57
+ };
58
+ };
59
+ } & {
60
+ "/:id": {
61
+ $patch: {
62
+ input: {
63
+ param: {
64
+ id: string;
65
+ };
66
+ } & {
67
+ json: {
68
+ traffic: number | null;
69
+ plan_id: number;
70
+ traffic_used: number;
71
+ max_tunnels: number | null;
72
+ expired_at: Date | null;
73
+ };
74
+ };
75
+ output: null;
76
+ outputFormat: "body";
77
+ status: 204;
78
+ };
79
+ };
80
+ } & {
81
+ "/": {
82
+ $delete: {
83
+ input: {
84
+ query: {
85
+ ids: string;
86
+ };
87
+ };
88
+ output: null;
89
+ outputFormat: "body";
90
+ status: 204;
91
+ };
92
+ };
93
+ } & {
94
+ "/": {
95
+ $patch: {
96
+ input: {
97
+ json: {
98
+ ids: number[];
99
+ add_days?: number | undefined;
100
+ add_traffic?: number | undefined;
101
+ };
102
+ };
103
+ output: null;
104
+ outputFormat: "body";
105
+ status: 204;
106
+ };
107
+ };
108
+ }, "/">;
109
+ export default app;
@@ -0,0 +1,13 @@
1
+ declare const app: import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
2
+ "/": {
3
+ $get: {
4
+ input: {};
5
+ output: {
6
+ username: string | undefined;
7
+ };
8
+ outputFormat: "json";
9
+ status: import("hono/utils/http-status").ContentfulStatusCode;
10
+ };
11
+ };
12
+ }, "/">;
13
+ export default app;
@@ -0,0 +1,240 @@
1
+ import { Variables } from "../schemas/context";
2
+ declare const app: import("hono/hono-base").HonoBase<{
3
+ Variables: Variables;
4
+ }, {
5
+ "/": {
6
+ $get: {
7
+ input: {
8
+ query: {
9
+ name?: string | string[] | undefined;
10
+ type?: string | string[] | undefined;
11
+ sort?: string | string[] | undefined;
12
+ page?: string | string[] | undefined;
13
+ perPage?: string | string[] | undefined;
14
+ };
15
+ };
16
+ output: {
17
+ data: {
18
+ name: string;
19
+ id: number;
20
+ created_at: string;
21
+ updated_at: string;
22
+ type: import("../generated/prisma/client").$Enums.DNSProviderType;
23
+ config: string | number | boolean | {
24
+ [x: string]: string | number | boolean | /*elided*/ any | {
25
+ [x: number]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
26
+ length: number;
27
+ toString: null;
28
+ toLocaleString: null;
29
+ pop: null;
30
+ push: {};
31
+ concat: {};
32
+ join: {};
33
+ reverse: null;
34
+ shift: null;
35
+ slice: {};
36
+ sort: {};
37
+ splice: {};
38
+ unshift: {};
39
+ indexOf: {};
40
+ lastIndexOf: {};
41
+ every: {};
42
+ some: {};
43
+ forEach: {};
44
+ map: {};
45
+ filter: {};
46
+ reduce: {};
47
+ reduceRight: {};
48
+ find: {};
49
+ findIndex: {};
50
+ fill: {};
51
+ copyWithin: {};
52
+ entries: null;
53
+ keys: null;
54
+ values: null;
55
+ includes: {};
56
+ flatMap: {};
57
+ flat: {};
58
+ at: {};
59
+ [Symbol.iterator]: null;
60
+ readonly [Symbol.unscopables]: {
61
+ [x: number]: boolean | undefined;
62
+ length?: boolean | undefined;
63
+ toString?: boolean | undefined;
64
+ toLocaleString?: boolean | undefined;
65
+ pop?: boolean | undefined;
66
+ push?: boolean | undefined;
67
+ concat?: boolean | undefined;
68
+ join?: boolean | undefined;
69
+ reverse?: boolean | undefined;
70
+ shift?: boolean | undefined;
71
+ slice?: boolean | undefined;
72
+ sort?: boolean | undefined;
73
+ splice?: boolean | undefined;
74
+ unshift?: boolean | undefined;
75
+ indexOf?: boolean | undefined;
76
+ lastIndexOf?: boolean | undefined;
77
+ every?: boolean | undefined;
78
+ some?: boolean | undefined;
79
+ forEach?: boolean | undefined;
80
+ map?: boolean | undefined;
81
+ filter?: boolean | undefined;
82
+ reduce?: boolean | undefined;
83
+ reduceRight?: boolean | undefined;
84
+ find?: boolean | undefined;
85
+ findIndex?: boolean | undefined;
86
+ fill?: boolean | undefined;
87
+ copyWithin?: boolean | undefined;
88
+ entries?: boolean | undefined;
89
+ keys?: boolean | undefined;
90
+ values?: boolean | undefined;
91
+ includes?: boolean | undefined;
92
+ flatMap?: boolean | undefined;
93
+ flat?: boolean | undefined;
94
+ at?: boolean | undefined;
95
+ };
96
+ } | null | undefined;
97
+ } | {
98
+ [x: number]: string | number | boolean | {
99
+ [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
100
+ } | /*elided*/ any | null;
101
+ length: number;
102
+ toString: null;
103
+ toLocaleString: null;
104
+ pop: null;
105
+ push: {};
106
+ concat: {};
107
+ join: {};
108
+ reverse: null;
109
+ shift: null;
110
+ slice: {};
111
+ sort: {};
112
+ splice: {};
113
+ unshift: {};
114
+ indexOf: {};
115
+ lastIndexOf: {};
116
+ every: {};
117
+ some: {};
118
+ forEach: {};
119
+ map: {};
120
+ filter: {};
121
+ reduce: {};
122
+ reduceRight: {};
123
+ find: {};
124
+ findIndex: {};
125
+ fill: {};
126
+ copyWithin: {};
127
+ entries: null;
128
+ keys: null;
129
+ values: null;
130
+ includes: {};
131
+ flatMap: {};
132
+ flat: {};
133
+ at: {};
134
+ [Symbol.iterator]: null;
135
+ readonly [Symbol.unscopables]: {
136
+ [x: number]: boolean | undefined;
137
+ length?: boolean | undefined;
138
+ toString?: boolean | undefined;
139
+ toLocaleString?: boolean | undefined;
140
+ pop?: boolean | undefined;
141
+ push?: boolean | undefined;
142
+ concat?: boolean | undefined;
143
+ join?: boolean | undefined;
144
+ reverse?: boolean | undefined;
145
+ shift?: boolean | undefined;
146
+ slice?: boolean | undefined;
147
+ sort?: boolean | undefined;
148
+ splice?: boolean | undefined;
149
+ unshift?: boolean | undefined;
150
+ indexOf?: boolean | undefined;
151
+ lastIndexOf?: boolean | undefined;
152
+ every?: boolean | undefined;
153
+ some?: boolean | undefined;
154
+ forEach?: boolean | undefined;
155
+ map?: boolean | undefined;
156
+ filter?: boolean | undefined;
157
+ reduce?: boolean | undefined;
158
+ reduceRight?: boolean | undefined;
159
+ find?: boolean | undefined;
160
+ findIndex?: boolean | undefined;
161
+ fill?: boolean | undefined;
162
+ copyWithin?: boolean | undefined;
163
+ entries?: boolean | undefined;
164
+ keys?: boolean | undefined;
165
+ values?: boolean | undefined;
166
+ includes?: boolean | undefined;
167
+ flatMap?: boolean | undefined;
168
+ flat?: boolean | undefined;
169
+ at?: boolean | undefined;
170
+ };
171
+ } | null;
172
+ }[];
173
+ total: number;
174
+ };
175
+ outputFormat: "json";
176
+ status: import("hono/utils/http-status").ContentfulStatusCode;
177
+ };
178
+ };
179
+ } & {
180
+ "/summary": {
181
+ $get: {
182
+ input: {};
183
+ output: {
184
+ name: string;
185
+ id: number;
186
+ type: import("../generated/prisma/client").$Enums.DNSProviderType;
187
+ }[];
188
+ outputFormat: "json";
189
+ status: import("hono/utils/http-status").ContentfulStatusCode;
190
+ };
191
+ };
192
+ } & {
193
+ "/": {
194
+ $post: {
195
+ input: {
196
+ json: {
197
+ name: string;
198
+ type: "cloudflare" | "huawei";
199
+ config: Record<string, string>;
200
+ };
201
+ };
202
+ output: null;
203
+ outputFormat: "body";
204
+ status: 204;
205
+ };
206
+ };
207
+ } & {
208
+ "/:id": {
209
+ $patch: {
210
+ input: {
211
+ param: {
212
+ id: string;
213
+ };
214
+ } & {
215
+ json: {
216
+ name: string;
217
+ type: "cloudflare" | "huawei";
218
+ config: Record<string, string>;
219
+ };
220
+ };
221
+ output: null;
222
+ outputFormat: "body";
223
+ status: 204;
224
+ };
225
+ };
226
+ } & {
227
+ "/": {
228
+ $delete: {
229
+ input: {
230
+ query: {
231
+ ids: string;
232
+ };
233
+ };
234
+ output: null;
235
+ outputFormat: "body";
236
+ status: 204;
237
+ };
238
+ };
239
+ }, "/">;
240
+ export default app;
@@ -0,0 +1,3 @@
1
+ import { Hono } from "hono";
2
+ declare const app: Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
3
+ export default app;