@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,261 @@
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
+ status?: string | string[] | undefined;
11
+ sort?: string | string[] | undefined;
12
+ method?: string | string[] | undefined;
13
+ page?: string | string[] | undefined;
14
+ perPage?: string | string[] | undefined;
15
+ };
16
+ };
17
+ output: {
18
+ data: {
19
+ name: string;
20
+ id: number;
21
+ order_by: number;
22
+ created_at: string;
23
+ updated_at: string;
24
+ status: import("../../generated/prisma/client").$Enums.Status;
25
+ type: string | null;
26
+ fixed_fee: number | null;
27
+ percent_fee: number | null;
28
+ url: string;
29
+ config: string | number | boolean | {
30
+ [x: string]: string | number | boolean | /*elided*/ any | {
31
+ [x: number]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
32
+ length: number;
33
+ toString: null;
34
+ toLocaleString: null;
35
+ pop: null;
36
+ push: {};
37
+ concat: {};
38
+ join: {};
39
+ reverse: null;
40
+ shift: null;
41
+ slice: {};
42
+ sort: {};
43
+ splice: {};
44
+ unshift: {};
45
+ indexOf: {};
46
+ lastIndexOf: {};
47
+ every: {};
48
+ some: {};
49
+ forEach: {};
50
+ map: {};
51
+ filter: {};
52
+ reduce: {};
53
+ reduceRight: {};
54
+ find: {};
55
+ findIndex: {};
56
+ fill: {};
57
+ copyWithin: {};
58
+ entries: null;
59
+ keys: null;
60
+ values: null;
61
+ includes: {};
62
+ flatMap: {};
63
+ flat: {};
64
+ at: {};
65
+ [Symbol.iterator]: null;
66
+ readonly [Symbol.unscopables]: {
67
+ [x: number]: boolean | undefined;
68
+ length?: boolean | undefined;
69
+ toString?: boolean | undefined;
70
+ toLocaleString?: boolean | undefined;
71
+ pop?: boolean | undefined;
72
+ push?: boolean | undefined;
73
+ concat?: boolean | undefined;
74
+ join?: boolean | undefined;
75
+ reverse?: boolean | undefined;
76
+ shift?: boolean | undefined;
77
+ slice?: boolean | undefined;
78
+ sort?: boolean | undefined;
79
+ splice?: boolean | undefined;
80
+ unshift?: boolean | undefined;
81
+ indexOf?: boolean | undefined;
82
+ lastIndexOf?: boolean | undefined;
83
+ every?: boolean | undefined;
84
+ some?: boolean | undefined;
85
+ forEach?: boolean | undefined;
86
+ map?: boolean | undefined;
87
+ filter?: boolean | undefined;
88
+ reduce?: boolean | undefined;
89
+ reduceRight?: boolean | undefined;
90
+ find?: boolean | undefined;
91
+ findIndex?: boolean | undefined;
92
+ fill?: boolean | undefined;
93
+ copyWithin?: boolean | undefined;
94
+ entries?: boolean | undefined;
95
+ keys?: boolean | undefined;
96
+ values?: boolean | undefined;
97
+ includes?: boolean | undefined;
98
+ flatMap?: boolean | undefined;
99
+ flat?: boolean | undefined;
100
+ at?: boolean | undefined;
101
+ };
102
+ } | null | undefined;
103
+ } | {
104
+ [x: number]: string | number | boolean | {
105
+ [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
106
+ } | /*elided*/ any | null;
107
+ length: number;
108
+ toString: null;
109
+ toLocaleString: null;
110
+ pop: null;
111
+ push: {};
112
+ concat: {};
113
+ join: {};
114
+ reverse: null;
115
+ shift: null;
116
+ slice: {};
117
+ sort: {};
118
+ splice: {};
119
+ unshift: {};
120
+ indexOf: {};
121
+ lastIndexOf: {};
122
+ every: {};
123
+ some: {};
124
+ forEach: {};
125
+ map: {};
126
+ filter: {};
127
+ reduce: {};
128
+ reduceRight: {};
129
+ find: {};
130
+ findIndex: {};
131
+ fill: {};
132
+ copyWithin: {};
133
+ entries: null;
134
+ keys: null;
135
+ values: null;
136
+ includes: {};
137
+ flatMap: {};
138
+ flat: {};
139
+ at: {};
140
+ [Symbol.iterator]: null;
141
+ readonly [Symbol.unscopables]: {
142
+ [x: number]: boolean | undefined;
143
+ length?: boolean | undefined;
144
+ toString?: boolean | undefined;
145
+ toLocaleString?: boolean | undefined;
146
+ pop?: boolean | undefined;
147
+ push?: boolean | undefined;
148
+ concat?: boolean | undefined;
149
+ join?: boolean | undefined;
150
+ reverse?: boolean | undefined;
151
+ shift?: boolean | undefined;
152
+ slice?: boolean | undefined;
153
+ sort?: boolean | undefined;
154
+ splice?: boolean | undefined;
155
+ unshift?: boolean | undefined;
156
+ indexOf?: boolean | undefined;
157
+ lastIndexOf?: boolean | undefined;
158
+ every?: boolean | undefined;
159
+ some?: boolean | undefined;
160
+ forEach?: boolean | undefined;
161
+ map?: boolean | undefined;
162
+ filter?: boolean | undefined;
163
+ reduce?: boolean | undefined;
164
+ reduceRight?: boolean | undefined;
165
+ find?: boolean | undefined;
166
+ findIndex?: boolean | undefined;
167
+ fill?: boolean | undefined;
168
+ copyWithin?: boolean | undefined;
169
+ entries?: boolean | undefined;
170
+ keys?: boolean | undefined;
171
+ values?: boolean | undefined;
172
+ includes?: boolean | undefined;
173
+ flatMap?: boolean | undefined;
174
+ flat?: boolean | undefined;
175
+ at?: boolean | undefined;
176
+ };
177
+ } | null;
178
+ method: import("../../generated/prisma/client").$Enums.PaymentMethod;
179
+ }[];
180
+ total: number;
181
+ };
182
+ outputFormat: "json";
183
+ status: import("hono/utils/http-status").ContentfulStatusCode;
184
+ };
185
+ };
186
+ } & {
187
+ "/": {
188
+ $post: {
189
+ input: {
190
+ json: {
191
+ name: string;
192
+ status: "active" | "inactive";
193
+ type: string | null;
194
+ fixed_fee: number | null;
195
+ percent_fee: number | null;
196
+ url: string;
197
+ config: Record<string, string>;
198
+ method: "epay" | "bepusdt" | "heleket";
199
+ };
200
+ };
201
+ output: null;
202
+ outputFormat: "body";
203
+ status: 204;
204
+ };
205
+ };
206
+ } & {
207
+ "/:id": {
208
+ $delete: {
209
+ input: {
210
+ param: {
211
+ id: string;
212
+ };
213
+ };
214
+ output: null;
215
+ outputFormat: "body";
216
+ status: 204;
217
+ };
218
+ };
219
+ } & {
220
+ "/:id": {
221
+ $patch: {
222
+ input: {
223
+ param: {
224
+ id: string;
225
+ };
226
+ } & {
227
+ json: {
228
+ name: string;
229
+ status: "active" | "inactive";
230
+ type: string | null;
231
+ fixed_fee: number | null;
232
+ percent_fee: number | null;
233
+ url: string;
234
+ config: Record<string, string>;
235
+ method: "epay" | "bepusdt" | "heleket";
236
+ };
237
+ };
238
+ output: null;
239
+ outputFormat: "body";
240
+ status: 204;
241
+ };
242
+ };
243
+ } & {
244
+ "/:id/order": {
245
+ $patch: {
246
+ input: {
247
+ param: {
248
+ id: string;
249
+ };
250
+ } & {
251
+ json: {
252
+ order_by: number;
253
+ };
254
+ };
255
+ output: null;
256
+ outputFormat: "body";
257
+ status: 204;
258
+ };
259
+ };
260
+ }, "/">;
261
+ export default app;
@@ -0,0 +1,198 @@
1
+ declare const app: import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
2
+ "/": {
3
+ $post: {
4
+ input: {
5
+ json: {
6
+ name: string;
7
+ status: "active" | "inactive";
8
+ ip_limit: number | null;
9
+ bandwidth_limit: number | null;
10
+ traffic: number | null;
11
+ price: number;
12
+ max_tunnels: number | null;
13
+ description: string | null;
14
+ original_price: number | null;
15
+ allow_custom_in_node_group: boolean;
16
+ allow_custom_out_node_group: boolean;
17
+ all_in_node_groups: boolean;
18
+ all_out_node_groups: boolean;
19
+ setup_fee: number | null;
20
+ billing_cycle: "month" | "quarter" | "half_year" | "year" | "lifetime";
21
+ renewable: boolean;
22
+ stock: number | null;
23
+ node_group_ids: number[];
24
+ };
25
+ };
26
+ output: null;
27
+ outputFormat: "body";
28
+ status: 201;
29
+ };
30
+ };
31
+ } & {
32
+ "/": {
33
+ $get: {
34
+ input: {
35
+ query: {
36
+ name?: string | string[] | undefined;
37
+ status?: string | string[] | undefined;
38
+ sort?: string | string[] | undefined;
39
+ billing_cycle?: string | string[] | undefined;
40
+ page?: string | string[] | undefined;
41
+ perPage?: string | string[] | undefined;
42
+ };
43
+ };
44
+ output: {
45
+ node_group_ids: number[];
46
+ node_groups: {
47
+ node_group_id: number;
48
+ }[];
49
+ name: string;
50
+ id: number;
51
+ order_by: number;
52
+ created_at: string;
53
+ updated_at: string;
54
+ status: import("../../generated/prisma/client").$Enums.Status;
55
+ ip_limit: number | null;
56
+ bandwidth_limit: number | null;
57
+ traffic: number | null;
58
+ price: number;
59
+ max_tunnels: number | null;
60
+ description: string | null;
61
+ original_price: number | null;
62
+ allow_custom_in_node_group: boolean;
63
+ allow_custom_out_node_group: boolean;
64
+ all_in_node_groups: boolean;
65
+ all_out_node_groups: boolean;
66
+ setup_fee: number | null;
67
+ billing_cycle: import("../../generated/prisma/client").$Enums.BillingCycle;
68
+ renewable: boolean;
69
+ stock: number | null;
70
+ }[];
71
+ outputFormat: "json";
72
+ status: 200;
73
+ };
74
+ };
75
+ } & {
76
+ "/:id/order": {
77
+ $patch: {
78
+ input: {
79
+ param: {
80
+ id: string;
81
+ };
82
+ } & {
83
+ json: {
84
+ order_by: number;
85
+ };
86
+ };
87
+ output: null;
88
+ outputFormat: "body";
89
+ status: 204;
90
+ };
91
+ };
92
+ } & {
93
+ "/:id": {
94
+ $patch: {
95
+ input: {
96
+ param: {
97
+ id: string;
98
+ };
99
+ } & {
100
+ json: {
101
+ name: string;
102
+ status: "active" | "inactive";
103
+ ip_limit: number | null;
104
+ bandwidth_limit: number | null;
105
+ traffic: number | null;
106
+ price: number;
107
+ max_tunnels: number | null;
108
+ description: string | null;
109
+ original_price: number | null;
110
+ allow_custom_in_node_group: boolean;
111
+ allow_custom_out_node_group: boolean;
112
+ all_in_node_groups: boolean;
113
+ all_out_node_groups: boolean;
114
+ setup_fee: number | null;
115
+ billing_cycle: "month" | "quarter" | "half_year" | "year" | "lifetime";
116
+ renewable: boolean;
117
+ stock: number | null;
118
+ node_group_ids: number[];
119
+ };
120
+ };
121
+ output: null;
122
+ outputFormat: "body";
123
+ status: 204;
124
+ };
125
+ };
126
+ } & {
127
+ "/": {
128
+ $delete: {
129
+ input: {
130
+ query: {
131
+ ids: string;
132
+ };
133
+ };
134
+ output: null;
135
+ outputFormat: "body";
136
+ status: 204;
137
+ };
138
+ };
139
+ } & {
140
+ "/orders": {
141
+ $get: {
142
+ input: {
143
+ query: {
144
+ email?: string | string[] | undefined;
145
+ plan_id?: string | string[] | undefined;
146
+ sort?: string | string[] | undefined;
147
+ page?: string | string[] | undefined;
148
+ perPage?: string | string[] | undefined;
149
+ };
150
+ };
151
+ output: {
152
+ data: {
153
+ user: {
154
+ email: string;
155
+ };
156
+ plan: {
157
+ name: string;
158
+ price: number;
159
+ };
160
+ coupon: {
161
+ type: import("../../generated/prisma/client").$Enums.CouponType;
162
+ value: number;
163
+ } | null;
164
+ id: number;
165
+ created_at: string;
166
+ updated_at: string;
167
+ user_id: number;
168
+ balance: number;
169
+ plan_id: number;
170
+ price: number;
171
+ coupon_id: number | null;
172
+ }[];
173
+ total: number;
174
+ };
175
+ outputFormat: "json";
176
+ status: import("hono/utils/http-status").ContentfulStatusCode;
177
+ };
178
+ };
179
+ } & {
180
+ "/stats": {
181
+ $get: {
182
+ input: {
183
+ query: {
184
+ start_date?: string | undefined;
185
+ end_date?: string | undefined;
186
+ aggregate_by?: "month" | "year" | "day" | undefined;
187
+ };
188
+ };
189
+ output: {
190
+ date: string;
191
+ total: number;
192
+ }[];
193
+ outputFormat: "json";
194
+ status: import("hono/utils/http-status").ContentfulStatusCode;
195
+ };
196
+ };
197
+ }, "/">;
198
+ export default app;
@@ -0,0 +1,92 @@
1
+ declare const app: import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
2
+ "/": {
3
+ $post: {
4
+ input: {
5
+ json: {
6
+ type: "fixed" | "percentage";
7
+ value: number;
8
+ code: string;
9
+ valid_start: Date | null;
10
+ valid_end: Date | null;
11
+ valid_cycle: "month" | "quarter" | "half_year" | "year" | "lifetime" | null;
12
+ max_use: number | null;
13
+ max_use_per_user: number | null;
14
+ };
15
+ };
16
+ output: null;
17
+ outputFormat: "body";
18
+ status: 201;
19
+ };
20
+ };
21
+ } & {
22
+ "/": {
23
+ $get: {
24
+ input: {
25
+ query: {
26
+ type?: string | string[] | undefined;
27
+ sort?: string | string[] | undefined;
28
+ code?: string | string[] | undefined;
29
+ valid_cycle?: string | string[] | undefined;
30
+ page?: string | string[] | undefined;
31
+ perPage?: string | string[] | undefined;
32
+ };
33
+ };
34
+ output: {
35
+ data: {
36
+ id: number;
37
+ created_at: string;
38
+ updated_at: string;
39
+ type: import("../../generated/prisma/client").$Enums.CouponType;
40
+ value: number;
41
+ code: string;
42
+ valid_start: string | null;
43
+ valid_end: string | null;
44
+ valid_cycle: import("../../generated/prisma/client").$Enums.BillingCycle | null;
45
+ max_use: number | null;
46
+ max_use_per_user: number | null;
47
+ }[];
48
+ total: number;
49
+ };
50
+ outputFormat: "json";
51
+ status: import("hono/utils/http-status").ContentfulStatusCode;
52
+ };
53
+ };
54
+ } & {
55
+ "/:id": {
56
+ $patch: {
57
+ input: {
58
+ param: {
59
+ id: string;
60
+ };
61
+ } & {
62
+ json: {
63
+ type?: "fixed" | "percentage" | undefined;
64
+ value?: number | undefined;
65
+ code?: string | undefined;
66
+ valid_start?: Date | null | undefined;
67
+ valid_end?: Date | null | undefined;
68
+ valid_cycle?: "month" | "quarter" | "half_year" | "year" | "lifetime" | null | undefined;
69
+ max_use?: number | null | undefined;
70
+ max_use_per_user?: number | null | undefined;
71
+ };
72
+ };
73
+ output: null;
74
+ outputFormat: "body";
75
+ status: 204;
76
+ };
77
+ };
78
+ } & {
79
+ "/": {
80
+ $delete: {
81
+ input: {
82
+ query: {
83
+ ids: string;
84
+ };
85
+ };
86
+ output: null;
87
+ outputFormat: "body";
88
+ status: 204;
89
+ };
90
+ };
91
+ }, "/">;
92
+ export default app;
@@ -0,0 +1,77 @@
1
+ declare const app: import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
2
+ "/": {
3
+ $get: {
4
+ input: {
5
+ query: {
6
+ start_date?: string | string[] | undefined;
7
+ end_date?: string | string[] | undefined;
8
+ aggregate_by?: string | string[] | undefined;
9
+ };
10
+ };
11
+ output: {
12
+ user: {
13
+ status: import("../../generated/prisma/client").$Enums.Status;
14
+ count: number;
15
+ }[];
16
+ node_group: {
17
+ node_type: import("../../generated/prisma/client").$Enums.NodeType;
18
+ count: number;
19
+ }[];
20
+ tunnel: {
21
+ status: import("../../generated/prisma/client").$Enums.Status;
22
+ count: number;
23
+ }[];
24
+ topup_order: {
25
+ status: import("../../generated/prisma/client").$Enums.TopupOrderStatus;
26
+ count: number;
27
+ }[];
28
+ node: {
29
+ status: import("../../generated/prisma/client").$Enums.Status;
30
+ count: number;
31
+ }[];
32
+ };
33
+ outputFormat: "json";
34
+ status: import("hono/utils/http-status").ContentfulStatusCode;
35
+ };
36
+ };
37
+ } & {
38
+ "/user": {
39
+ $get: {
40
+ input: {
41
+ query: {
42
+ start_date?: string | undefined;
43
+ end_date?: string | undefined;
44
+ aggregate_by?: "month" | "year" | "day" | undefined;
45
+ };
46
+ };
47
+ output: {
48
+ date: string;
49
+ total: number;
50
+ }[];
51
+ outputFormat: "json";
52
+ status: import("hono/utils/http-status").ContentfulStatusCode;
53
+ };
54
+ };
55
+ } & {
56
+ "/traffic": {
57
+ $get: {
58
+ input: {
59
+ query: {
60
+ in_node_group_id?: string | string[] | undefined;
61
+ out_node_group_id?: string | string[] | undefined;
62
+ start_date?: string | string[] | undefined;
63
+ end_date?: string | string[] | undefined;
64
+ aggregate_by?: string | string[] | undefined;
65
+ };
66
+ };
67
+ output: {
68
+ date: string;
69
+ traffic: number;
70
+ traffic_cost: number;
71
+ }[];
72
+ outputFormat: "json";
73
+ status: import("hono/utils/http-status").ContentfulStatusCode;
74
+ };
75
+ };
76
+ }, "/">;
77
+ export default app;
@@ -0,0 +1,68 @@
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
+ output: {
9
+ MIN_TOPUP_AMOUNT: string;
10
+ NOTICE: string;
11
+ NOTICE_POPUP: string;
12
+ NOTICE_POPUP_INTERVAL_HOURS: string;
13
+ SITE_NAME: string;
14
+ SITE_DESCRIPTION: string;
15
+ ALLOW_REGISTER: string;
16
+ LOGO_URL: string;
17
+ HIDE_NODE_STATUS: string;
18
+ AUTO_UPDATE_AGENT: string;
19
+ CHATWOOT_BASE_URL: string;
20
+ CHATWOOT_TOKEN: string;
21
+ TUNNEL_TRAFFIC_RETENTION_DAYS: string;
22
+ HIDE_FOOTER: string;
23
+ HIDE_DOCS: string;
24
+ LANDING_PAGE_URL: string;
25
+ REFERRAL_COMMISSION_RATE: string;
26
+ REFERRAL_FIRST_ONLY: string;
27
+ REFERRAL_MODE: string;
28
+ OBSERVER_PERIOD: string;
29
+ EMAIL_PROVIDER: string;
30
+ SMTP_HOST: string;
31
+ SMTP_PORT: string;
32
+ SMTP_SECURE: string;
33
+ SMTP_USER: string;
34
+ SMTP_PASS: string;
35
+ SMTP_FROM: string;
36
+ RESEND_API_KEY: string;
37
+ RESEND_FROM: string;
38
+ };
39
+ outputFormat: "json";
40
+ status: import("hono/utils/http-status").ContentfulStatusCode;
41
+ };
42
+ };
43
+ } & {
44
+ "/": {
45
+ $patch: {
46
+ input: {
47
+ json: Partial<Record<"MIN_TOPUP_AMOUNT" | "NOTICE" | "NOTICE_POPUP" | "NOTICE_POPUP_INTERVAL_HOURS" | "SITE_NAME" | "SITE_DESCRIPTION" | "ALLOW_REGISTER" | "LOGO_URL" | "HIDE_NODE_STATUS" | "AUTO_UPDATE_AGENT" | "CHATWOOT_BASE_URL" | "CHATWOOT_TOKEN" | "TUNNEL_TRAFFIC_RETENTION_DAYS" | "HIDE_FOOTER" | "HIDE_DOCS" | "LANDING_PAGE_URL" | "REFERRAL_COMMISSION_RATE" | "REFERRAL_FIRST_ONLY" | "REFERRAL_MODE" | "OBSERVER_PERIOD" | "EMAIL_PROVIDER" | "SMTP_HOST" | "SMTP_PORT" | "SMTP_SECURE" | "SMTP_USER" | "SMTP_PASS" | "SMTP_FROM" | "RESEND_API_KEY" | "RESEND_FROM", any>>;
48
+ };
49
+ output: null;
50
+ outputFormat: "body";
51
+ status: 204;
52
+ };
53
+ };
54
+ } & {
55
+ "/test-email": {
56
+ $post: {
57
+ input: {
58
+ json: {
59
+ email?: string | undefined;
60
+ };
61
+ };
62
+ output: null;
63
+ outputFormat: "body";
64
+ status: 204;
65
+ };
66
+ };
67
+ }, "/">;
68
+ export default app;