@long2ice/relayx-backend 0.0.1 → 0.0.3

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.
package/dist/app.d.ts CHANGED
@@ -3038,6 +3038,7 @@ declare const routes: import("hono/hono-base").HonoBase<import("hono/types").Bla
3038
3038
  max_tunnels: number | null;
3039
3039
  description: string | null;
3040
3040
  original_price: number | null;
3041
+ whitelist_limit: number | null;
3041
3042
  allow_custom_in_node_group: boolean;
3042
3043
  allow_custom_out_node_group: boolean;
3043
3044
  all_in_node_groups: boolean;
@@ -3085,6 +3086,7 @@ declare const routes: import("hono/hono-base").HonoBase<import("hono/types").Bla
3085
3086
  max_tunnels: number | null;
3086
3087
  description: string | null;
3087
3088
  original_price: number | null;
3089
+ whitelist_limit: number | null;
3088
3090
  allow_custom_in_node_group: boolean;
3089
3091
  allow_custom_out_node_group: boolean;
3090
3092
  all_in_node_groups: boolean;
@@ -3133,6 +3135,7 @@ declare const routes: import("hono/hono-base").HonoBase<import("hono/types").Bla
3133
3135
  max_tunnels: number | null;
3134
3136
  description: string | null;
3135
3137
  original_price: number | null;
3138
+ whitelist_limit: number | null;
3136
3139
  allow_custom_in_node_group: boolean;
3137
3140
  allow_custom_out_node_group: boolean;
3138
3141
  all_in_node_groups: boolean;
@@ -3634,6 +3637,155 @@ declare const routes: import("hono/hono-base").HonoBase<import("hono/types").Bla
3634
3637
  plan_id: number;
3635
3638
  traffic_used: number;
3636
3639
  max_tunnels: number | null;
3640
+ whitelist_ips: string | number | boolean | {
3641
+ [x: string]: string | number | boolean | /*elided*/ any | {
3642
+ [x: number]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
3643
+ length: number;
3644
+ toString: null;
3645
+ toLocaleString: null;
3646
+ pop: null;
3647
+ push: {};
3648
+ concat: {};
3649
+ join: {};
3650
+ reverse: null;
3651
+ shift: null;
3652
+ slice: {};
3653
+ sort: {};
3654
+ splice: {};
3655
+ unshift: {};
3656
+ indexOf: {};
3657
+ lastIndexOf: {};
3658
+ every: {};
3659
+ some: {};
3660
+ forEach: {};
3661
+ map: {};
3662
+ filter: {};
3663
+ reduce: {};
3664
+ reduceRight: {};
3665
+ find: {};
3666
+ findIndex: {};
3667
+ fill: {};
3668
+ copyWithin: {};
3669
+ entries: null;
3670
+ keys: null;
3671
+ values: null;
3672
+ includes: {};
3673
+ flatMap: {};
3674
+ flat: {};
3675
+ at: {};
3676
+ [Symbol.iterator]: null;
3677
+ readonly [Symbol.unscopables]: {
3678
+ [x: number]: boolean | undefined;
3679
+ length?: boolean | undefined;
3680
+ toString?: boolean | undefined;
3681
+ toLocaleString?: boolean | undefined;
3682
+ pop?: boolean | undefined;
3683
+ push?: boolean | undefined;
3684
+ concat?: boolean | undefined;
3685
+ join?: boolean | undefined;
3686
+ reverse?: boolean | undefined;
3687
+ shift?: boolean | undefined;
3688
+ slice?: boolean | undefined;
3689
+ sort?: boolean | undefined;
3690
+ splice?: boolean | undefined;
3691
+ unshift?: boolean | undefined;
3692
+ indexOf?: boolean | undefined;
3693
+ lastIndexOf?: boolean | undefined;
3694
+ every?: boolean | undefined;
3695
+ some?: boolean | undefined;
3696
+ forEach?: boolean | undefined;
3697
+ map?: boolean | undefined;
3698
+ filter?: boolean | undefined;
3699
+ reduce?: boolean | undefined;
3700
+ reduceRight?: boolean | undefined;
3701
+ find?: boolean | undefined;
3702
+ findIndex?: boolean | undefined;
3703
+ fill?: boolean | undefined;
3704
+ copyWithin?: boolean | undefined;
3705
+ entries?: boolean | undefined;
3706
+ keys?: boolean | undefined;
3707
+ values?: boolean | undefined;
3708
+ includes?: boolean | undefined;
3709
+ flatMap?: boolean | undefined;
3710
+ flat?: boolean | undefined;
3711
+ at?: boolean | undefined;
3712
+ };
3713
+ } | null | undefined;
3714
+ } | {
3715
+ [x: number]: string | number | boolean | {
3716
+ [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
3717
+ } | /*elided*/ any | null;
3718
+ length: number;
3719
+ toString: null;
3720
+ toLocaleString: null;
3721
+ pop: null;
3722
+ push: {};
3723
+ concat: {};
3724
+ join: {};
3725
+ reverse: null;
3726
+ shift: null;
3727
+ slice: {};
3728
+ sort: {};
3729
+ splice: {};
3730
+ unshift: {};
3731
+ indexOf: {};
3732
+ lastIndexOf: {};
3733
+ every: {};
3734
+ some: {};
3735
+ forEach: {};
3736
+ map: {};
3737
+ filter: {};
3738
+ reduce: {};
3739
+ reduceRight: {};
3740
+ find: {};
3741
+ findIndex: {};
3742
+ fill: {};
3743
+ copyWithin: {};
3744
+ entries: null;
3745
+ keys: null;
3746
+ values: null;
3747
+ includes: {};
3748
+ flatMap: {};
3749
+ flat: {};
3750
+ at: {};
3751
+ [Symbol.iterator]: null;
3752
+ readonly [Symbol.unscopables]: {
3753
+ [x: number]: boolean | undefined;
3754
+ length?: boolean | undefined;
3755
+ toString?: boolean | undefined;
3756
+ toLocaleString?: boolean | undefined;
3757
+ pop?: boolean | undefined;
3758
+ push?: boolean | undefined;
3759
+ concat?: boolean | undefined;
3760
+ join?: boolean | undefined;
3761
+ reverse?: boolean | undefined;
3762
+ shift?: boolean | undefined;
3763
+ slice?: boolean | undefined;
3764
+ sort?: boolean | undefined;
3765
+ splice?: boolean | undefined;
3766
+ unshift?: boolean | undefined;
3767
+ indexOf?: boolean | undefined;
3768
+ lastIndexOf?: boolean | undefined;
3769
+ every?: boolean | undefined;
3770
+ some?: boolean | undefined;
3771
+ forEach?: boolean | undefined;
3772
+ map?: boolean | undefined;
3773
+ filter?: boolean | undefined;
3774
+ reduce?: boolean | undefined;
3775
+ reduceRight?: boolean | undefined;
3776
+ find?: boolean | undefined;
3777
+ findIndex?: boolean | undefined;
3778
+ fill?: boolean | undefined;
3779
+ copyWithin?: boolean | undefined;
3780
+ entries?: boolean | undefined;
3781
+ keys?: boolean | undefined;
3782
+ values?: boolean | undefined;
3783
+ includes?: boolean | undefined;
3784
+ flatMap?: boolean | undefined;
3785
+ flat?: boolean | undefined;
3786
+ at?: boolean | undefined;
3787
+ };
3788
+ } | null;
3637
3789
  expired_at: string | null;
3638
3790
  }[];
3639
3791
  total: number;
@@ -4424,7 +4576,12 @@ declare const routes: import("hono/hono-base").HonoBase<import("hono/types").Bla
4424
4576
  listen_ip: string | null;
4425
4577
  listen_port: number | null;
4426
4578
  is_port_used: boolean;
4427
- white_list: string | number | boolean | {
4579
+ ip_type: import("./generated/prisma/client").$Enums.IpType;
4580
+ ip_limit: number | null;
4581
+ bandwidth_limit: number | null;
4582
+ traffic: number;
4583
+ traffic_cost: number;
4584
+ stats: string | number | boolean | {
4428
4585
  [x: string]: string | number | boolean | /*elided*/ any | {
4429
4586
  [x: number]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
4430
4587
  length: number;
@@ -4573,200 +4730,45 @@ declare const routes: import("hono/hono-base").HonoBase<import("hono/types").Bla
4573
4730
  at?: boolean | undefined;
4574
4731
  };
4575
4732
  } | null;
4576
- ip_type: import("./generated/prisma/client").$Enums.IpType;
4577
- ip_limit: number | null;
4578
- bandwidth_limit: number | null;
4579
- traffic: number;
4580
- traffic_cost: number;
4581
- stats: string | number | boolean | {
4582
- [x: string]: string | number | boolean | /*elided*/ any | {
4583
- [x: number]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
4584
- length: number;
4585
- toString: null;
4586
- toLocaleString: null;
4587
- pop: null;
4588
- push: {};
4589
- concat: {};
4590
- join: {};
4591
- reverse: null;
4592
- shift: null;
4593
- slice: {};
4594
- sort: {};
4595
- splice: {};
4596
- unshift: {};
4597
- indexOf: {};
4598
- lastIndexOf: {};
4599
- every: {};
4600
- some: {};
4601
- forEach: {};
4602
- map: {};
4603
- filter: {};
4604
- reduce: {};
4605
- reduceRight: {};
4606
- find: {};
4607
- findIndex: {};
4608
- fill: {};
4609
- copyWithin: {};
4610
- entries: null;
4611
- keys: null;
4612
- values: null;
4613
- includes: {};
4614
- flatMap: {};
4615
- flat: {};
4616
- at: {};
4617
- [Symbol.iterator]: null;
4618
- readonly [Symbol.unscopables]: {
4619
- [x: number]: boolean | undefined;
4620
- length?: boolean | undefined;
4621
- toString?: boolean | undefined;
4622
- toLocaleString?: boolean | undefined;
4623
- pop?: boolean | undefined;
4624
- push?: boolean | undefined;
4625
- concat?: boolean | undefined;
4626
- join?: boolean | undefined;
4627
- reverse?: boolean | undefined;
4628
- shift?: boolean | undefined;
4629
- slice?: boolean | undefined;
4630
- sort?: boolean | undefined;
4631
- splice?: boolean | undefined;
4632
- unshift?: boolean | undefined;
4633
- indexOf?: boolean | undefined;
4634
- lastIndexOf?: boolean | undefined;
4635
- every?: boolean | undefined;
4636
- some?: boolean | undefined;
4637
- forEach?: boolean | undefined;
4638
- map?: boolean | undefined;
4639
- filter?: boolean | undefined;
4640
- reduce?: boolean | undefined;
4641
- reduceRight?: boolean | undefined;
4642
- find?: boolean | undefined;
4643
- findIndex?: boolean | undefined;
4644
- fill?: boolean | undefined;
4645
- copyWithin?: boolean | undefined;
4646
- entries?: boolean | undefined;
4647
- keys?: boolean | undefined;
4648
- values?: boolean | undefined;
4649
- includes?: boolean | undefined;
4650
- flatMap?: boolean | undefined;
4651
- flat?: boolean | undefined;
4652
- at?: boolean | undefined;
4653
- };
4654
- } | null | undefined;
4655
- } | {
4656
- [x: number]: string | number | boolean | {
4657
- [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
4658
- } | /*elided*/ any | null;
4659
- length: number;
4660
- toString: null;
4661
- toLocaleString: null;
4662
- pop: null;
4663
- push: {};
4664
- concat: {};
4665
- join: {};
4666
- reverse: null;
4667
- shift: null;
4668
- slice: {};
4669
- sort: {};
4670
- splice: {};
4671
- unshift: {};
4672
- indexOf: {};
4673
- lastIndexOf: {};
4674
- every: {};
4675
- some: {};
4676
- forEach: {};
4677
- map: {};
4678
- filter: {};
4679
- reduce: {};
4680
- reduceRight: {};
4681
- find: {};
4682
- findIndex: {};
4683
- fill: {};
4684
- copyWithin: {};
4685
- entries: null;
4686
- keys: null;
4687
- values: null;
4688
- includes: {};
4689
- flatMap: {};
4690
- flat: {};
4691
- at: {};
4692
- [Symbol.iterator]: null;
4693
- readonly [Symbol.unscopables]: {
4694
- [x: number]: boolean | undefined;
4695
- length?: boolean | undefined;
4696
- toString?: boolean | undefined;
4697
- toLocaleString?: boolean | undefined;
4698
- pop?: boolean | undefined;
4699
- push?: boolean | undefined;
4700
- concat?: boolean | undefined;
4701
- join?: boolean | undefined;
4702
- reverse?: boolean | undefined;
4703
- shift?: boolean | undefined;
4704
- slice?: boolean | undefined;
4705
- sort?: boolean | undefined;
4706
- splice?: boolean | undefined;
4707
- unshift?: boolean | undefined;
4708
- indexOf?: boolean | undefined;
4709
- lastIndexOf?: boolean | undefined;
4710
- every?: boolean | undefined;
4711
- some?: boolean | undefined;
4712
- forEach?: boolean | undefined;
4713
- map?: boolean | undefined;
4714
- filter?: boolean | undefined;
4715
- reduce?: boolean | undefined;
4716
- reduceRight?: boolean | undefined;
4717
- find?: boolean | undefined;
4718
- findIndex?: boolean | undefined;
4719
- fill?: boolean | undefined;
4720
- copyWithin?: boolean | undefined;
4721
- entries?: boolean | undefined;
4722
- keys?: boolean | undefined;
4723
- values?: boolean | undefined;
4724
- includes?: boolean | undefined;
4725
- flatMap?: boolean | undefined;
4726
- flat?: boolean | undefined;
4727
- at?: boolean | undefined;
4728
- };
4729
- } | null;
4730
- proxy_protocol: boolean;
4731
- in_node_group_id: number;
4732
- out_node_group_id: number | null;
4733
- }[];
4734
- total: number;
4735
- };
4736
- outputFormat: "json";
4737
- status: import("hono/utils/http-status").ContentfulStatusCode;
4738
- };
4739
- };
4740
- } & {
4741
- "/": {
4742
- $post: {
4743
- input: {
4744
- json: {
4745
- name: string;
4746
- load_balance_type: "round" | "rand" | "fifo" | "hash" | "ll" | "lc";
4747
- user_id: number;
4748
- status: "active" | "inactive";
4749
- tunnel_type: "tcp" | "mtcp" | "udp" | "relayx" | "mtls" | "mwss" | "wss" | "tls" | "quic";
4750
- category: "port_forward" | "remote_port_forward";
4751
- listen_ip: string | null;
4752
- listen_port: number | null;
4753
- listen_protocol: {
4754
- type?: string | null | undefined;
4755
- username?: string | null | undefined;
4756
- password?: string | null | undefined;
4757
- } | null;
4758
- white_list: string[] | null;
4759
- forward_addresses: {
4760
- weight: number;
4761
- address: string;
4762
- host?: string | null | undefined;
4763
- }[];
4764
- forward_addresses_protocol: {
4765
- type?: string | null | undefined;
4766
- username?: string | null | undefined;
4767
- password?: string | null | undefined;
4768
- } | null;
4769
- ip_type: "auto" | "ipv4" | "ipv6";
4733
+ proxy_protocol: boolean;
4734
+ in_node_group_id: number;
4735
+ out_node_group_id: number | null;
4736
+ }[];
4737
+ total: number;
4738
+ };
4739
+ outputFormat: "json";
4740
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4741
+ };
4742
+ };
4743
+ } & {
4744
+ "/": {
4745
+ $post: {
4746
+ input: {
4747
+ json: {
4748
+ name: string;
4749
+ load_balance_type: "round" | "rand" | "fifo" | "hash" | "ll" | "lc";
4750
+ user_id: number;
4751
+ status: "active" | "inactive";
4752
+ tunnel_type: "tcp" | "mtcp" | "udp" | "relayx" | "mtls" | "mwss" | "wss" | "tls" | "quic";
4753
+ category: "port_forward" | "remote_port_forward";
4754
+ listen_ip: string | null;
4755
+ listen_port: number | null;
4756
+ listen_protocol: {
4757
+ type?: string | null | undefined;
4758
+ username?: string | null | undefined;
4759
+ password?: string | null | undefined;
4760
+ } | null;
4761
+ forward_addresses: {
4762
+ weight: number;
4763
+ address: string;
4764
+ host?: string | null | undefined;
4765
+ }[];
4766
+ forward_addresses_protocol: {
4767
+ type?: string | null | undefined;
4768
+ username?: string | null | undefined;
4769
+ password?: string | null | undefined;
4770
+ } | null;
4771
+ ip_type: "auto" | "ipv4" | "ipv6";
4770
4772
  ip_limit: number | null;
4771
4773
  bandwidth_limit: number | null;
4772
4774
  proxy_protocol: boolean;
@@ -4821,7 +4823,6 @@ declare const routes: import("hono/hono-base").HonoBase<import("hono/types").Bla
4821
4823
  username?: string | null | undefined;
4822
4824
  password?: string | null | undefined;
4823
4825
  } | null;
4824
- white_list: string[] | null;
4825
4826
  forward_addresses: {
4826
4827
  weight: number;
4827
4828
  address: string;
@@ -5003,244 +5004,95 @@ declare const routes: import("hono/hono-base").HonoBase<import("hono/types").Bla
5003
5004
  ticket_id: number;
5004
5005
  };
5005
5006
  outputFormat: "json";
5006
- status: 201;
5007
- };
5008
- };
5009
- } & {
5010
- "/:id": {
5011
- $patch: {
5012
- input: {
5013
- param: {
5014
- id: string;
5015
- };
5016
- } & {
5017
- json: {
5018
- status: "open" | "closed";
5019
- };
5020
- };
5021
- output: null;
5022
- outputFormat: "body";
5023
- status: 204;
5024
- };
5025
- };
5026
- }, "/ticket">, "/admin"> | import("hono/types").MergeSchemaPath<{
5027
- "/": {
5028
- $get: {
5029
- input: {
5030
- query: {
5031
- name?: string | string[] | undefined;
5032
- status?: string | string[] | undefined;
5033
- tunnel_type?: string | string[] | undefined;
5034
- listen_port?: string | string[] | undefined;
5035
- ip_type?: string | string[] | undefined;
5036
- in_node_group_id?: string | string[] | undefined;
5037
- out_node_group_id?: string | string[] | undefined;
5038
- sort?: string | string[] | undefined;
5039
- page?: string | string[] | undefined;
5040
- perPage?: string | string[] | undefined;
5041
- in_tunnel_chain_id?: string | string[] | undefined;
5042
- out_tunnel_chain_id?: string | string[] | undefined;
5043
- };
5044
- };
5045
- output: {
5046
- data: {
5047
- forward_addresses: {
5048
- address: string;
5049
- weight: number;
5050
- host?: string | null | undefined;
5051
- }[];
5052
- tunnel_chains: {
5053
- node_group_id: number;
5054
- node_type: import("./generated/prisma/client").$Enums.NodeType;
5055
- }[];
5056
- listen_protocol: {
5057
- type: string;
5058
- username: string;
5059
- password: string;
5060
- };
5061
- forward_addresses_protocol: {
5062
- type: string;
5063
- username: string;
5064
- password: string;
5065
- };
5066
- user: {
5067
- email: string;
5068
- };
5069
- in_node_group: {
5070
- name: string;
5071
- connect_ip: string | null;
5072
- admission: boolean;
5073
- traffic_rate: number;
5074
- nodes: {
5075
- connect_ip: string;
5076
- }[];
5077
- };
5078
- out_node_group: {
5079
- name: string;
5080
- traffic_rate: number;
5081
- } | null;
5082
- name: string;
5083
- id: number;
5084
- load_balance_type: import("./generated/prisma/client").$Enums.LoadBalanceType;
5085
- order_by: number;
5086
- created_at: string;
5087
- updated_at: string;
5088
- user_id: number;
5089
- status: import("./generated/prisma/client").$Enums.Status;
5090
- tunnel_type: import("./generated/prisma/client").$Enums.TunnelType;
5091
- category: import("./generated/prisma/client").$Enums.TunnelCategory;
5092
- listen_ip: string | null;
5093
- listen_port: number | null;
5094
- is_port_used: boolean;
5095
- white_list: string | number | boolean | {
5096
- [x: string]: string | number | boolean | /*elided*/ any | {
5097
- [x: number]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
5098
- length: number;
5099
- toString: null;
5100
- toLocaleString: null;
5101
- pop: null;
5102
- push: {};
5103
- concat: {};
5104
- join: {};
5105
- reverse: null;
5106
- shift: null;
5107
- slice: {};
5108
- sort: {};
5109
- splice: {};
5110
- unshift: {};
5111
- indexOf: {};
5112
- lastIndexOf: {};
5113
- every: {};
5114
- some: {};
5115
- forEach: {};
5116
- map: {};
5117
- filter: {};
5118
- reduce: {};
5119
- reduceRight: {};
5120
- find: {};
5121
- findIndex: {};
5122
- fill: {};
5123
- copyWithin: {};
5124
- entries: null;
5125
- keys: null;
5126
- values: null;
5127
- includes: {};
5128
- flatMap: {};
5129
- flat: {};
5130
- at: {};
5131
- [Symbol.iterator]: null;
5132
- readonly [Symbol.unscopables]: {
5133
- [x: number]: boolean | undefined;
5134
- length?: boolean | undefined;
5135
- toString?: boolean | undefined;
5136
- toLocaleString?: boolean | undefined;
5137
- pop?: boolean | undefined;
5138
- push?: boolean | undefined;
5139
- concat?: boolean | undefined;
5140
- join?: boolean | undefined;
5141
- reverse?: boolean | undefined;
5142
- shift?: boolean | undefined;
5143
- slice?: boolean | undefined;
5144
- sort?: boolean | undefined;
5145
- splice?: boolean | undefined;
5146
- unshift?: boolean | undefined;
5147
- indexOf?: boolean | undefined;
5148
- lastIndexOf?: boolean | undefined;
5149
- every?: boolean | undefined;
5150
- some?: boolean | undefined;
5151
- forEach?: boolean | undefined;
5152
- map?: boolean | undefined;
5153
- filter?: boolean | undefined;
5154
- reduce?: boolean | undefined;
5155
- reduceRight?: boolean | undefined;
5156
- find?: boolean | undefined;
5157
- findIndex?: boolean | undefined;
5158
- fill?: boolean | undefined;
5159
- copyWithin?: boolean | undefined;
5160
- entries?: boolean | undefined;
5161
- keys?: boolean | undefined;
5162
- values?: boolean | undefined;
5163
- includes?: boolean | undefined;
5164
- flatMap?: boolean | undefined;
5165
- flat?: boolean | undefined;
5166
- at?: boolean | undefined;
5167
- };
5168
- } | null | undefined;
5169
- } | {
5170
- [x: number]: string | number | boolean | {
5171
- [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
5172
- } | /*elided*/ any | null;
5173
- length: number;
5174
- toString: null;
5175
- toLocaleString: null;
5176
- pop: null;
5177
- push: {};
5178
- concat: {};
5179
- join: {};
5180
- reverse: null;
5181
- shift: null;
5182
- slice: {};
5183
- sort: {};
5184
- splice: {};
5185
- unshift: {};
5186
- indexOf: {};
5187
- lastIndexOf: {};
5188
- every: {};
5189
- some: {};
5190
- forEach: {};
5191
- map: {};
5192
- filter: {};
5193
- reduce: {};
5194
- reduceRight: {};
5195
- find: {};
5196
- findIndex: {};
5197
- fill: {};
5198
- copyWithin: {};
5199
- entries: null;
5200
- keys: null;
5201
- values: null;
5202
- includes: {};
5203
- flatMap: {};
5204
- flat: {};
5205
- at: {};
5206
- [Symbol.iterator]: null;
5207
- readonly [Symbol.unscopables]: {
5208
- [x: number]: boolean | undefined;
5209
- length?: boolean | undefined;
5210
- toString?: boolean | undefined;
5211
- toLocaleString?: boolean | undefined;
5212
- pop?: boolean | undefined;
5213
- push?: boolean | undefined;
5214
- concat?: boolean | undefined;
5215
- join?: boolean | undefined;
5216
- reverse?: boolean | undefined;
5217
- shift?: boolean | undefined;
5218
- slice?: boolean | undefined;
5219
- sort?: boolean | undefined;
5220
- splice?: boolean | undefined;
5221
- unshift?: boolean | undefined;
5222
- indexOf?: boolean | undefined;
5223
- lastIndexOf?: boolean | undefined;
5224
- every?: boolean | undefined;
5225
- some?: boolean | undefined;
5226
- forEach?: boolean | undefined;
5227
- map?: boolean | undefined;
5228
- filter?: boolean | undefined;
5229
- reduce?: boolean | undefined;
5230
- reduceRight?: boolean | undefined;
5231
- find?: boolean | undefined;
5232
- findIndex?: boolean | undefined;
5233
- fill?: boolean | undefined;
5234
- copyWithin?: boolean | undefined;
5235
- entries?: boolean | undefined;
5236
- keys?: boolean | undefined;
5237
- values?: boolean | undefined;
5238
- includes?: boolean | undefined;
5239
- flatMap?: boolean | undefined;
5240
- flat?: boolean | undefined;
5241
- at?: boolean | undefined;
5242
- };
5007
+ status: 201;
5008
+ };
5009
+ };
5010
+ } & {
5011
+ "/:id": {
5012
+ $patch: {
5013
+ input: {
5014
+ param: {
5015
+ id: string;
5016
+ };
5017
+ } & {
5018
+ json: {
5019
+ status: "open" | "closed";
5020
+ };
5021
+ };
5022
+ output: null;
5023
+ outputFormat: "body";
5024
+ status: 204;
5025
+ };
5026
+ };
5027
+ }, "/ticket">, "/admin"> | import("hono/types").MergeSchemaPath<{
5028
+ "/": {
5029
+ $get: {
5030
+ input: {
5031
+ query: {
5032
+ name?: string | string[] | undefined;
5033
+ status?: string | string[] | undefined;
5034
+ tunnel_type?: string | string[] | undefined;
5035
+ listen_port?: string | string[] | undefined;
5036
+ ip_type?: string | string[] | undefined;
5037
+ in_node_group_id?: string | string[] | undefined;
5038
+ out_node_group_id?: string | string[] | undefined;
5039
+ sort?: string | string[] | undefined;
5040
+ page?: string | string[] | undefined;
5041
+ perPage?: string | string[] | undefined;
5042
+ in_tunnel_chain_id?: string | string[] | undefined;
5043
+ out_tunnel_chain_id?: string | string[] | undefined;
5044
+ };
5045
+ };
5046
+ output: {
5047
+ data: {
5048
+ forward_addresses: {
5049
+ address: string;
5050
+ weight: number;
5051
+ host?: string | null | undefined;
5052
+ }[];
5053
+ tunnel_chains: {
5054
+ node_group_id: number;
5055
+ node_type: import("./generated/prisma/client").$Enums.NodeType;
5056
+ }[];
5057
+ listen_protocol: {
5058
+ type: string;
5059
+ username: string;
5060
+ password: string;
5061
+ };
5062
+ forward_addresses_protocol: {
5063
+ type: string;
5064
+ username: string;
5065
+ password: string;
5066
+ };
5067
+ user: {
5068
+ email: string;
5069
+ };
5070
+ in_node_group: {
5071
+ name: string;
5072
+ connect_ip: string | null;
5073
+ admission: boolean;
5074
+ traffic_rate: number;
5075
+ nodes: {
5076
+ connect_ip: string;
5077
+ }[];
5078
+ };
5079
+ out_node_group: {
5080
+ name: string;
5081
+ traffic_rate: number;
5243
5082
  } | null;
5083
+ name: string;
5084
+ id: number;
5085
+ load_balance_type: import("./generated/prisma/client").$Enums.LoadBalanceType;
5086
+ order_by: number;
5087
+ created_at: string;
5088
+ updated_at: string;
5089
+ user_id: number;
5090
+ status: import("./generated/prisma/client").$Enums.Status;
5091
+ tunnel_type: import("./generated/prisma/client").$Enums.TunnelType;
5092
+ category: import("./generated/prisma/client").$Enums.TunnelCategory;
5093
+ listen_ip: string | null;
5094
+ listen_port: number | null;
5095
+ is_port_used: boolean;
5244
5096
  ip_type: import("./generated/prisma/client").$Enums.IpType;
5245
5097
  ip_limit: number | null;
5246
5098
  bandwidth_limit: number | null;
@@ -5434,7 +5286,6 @@ declare const routes: import("hono/hono-base").HonoBase<import("hono/types").Bla
5434
5286
  username?: string | null | undefined;
5435
5287
  password?: string | null | undefined;
5436
5288
  } | null;
5437
- white_list: string[] | null;
5438
5289
  forward_addresses: {
5439
5290
  weight: number;
5440
5291
  address: string;
@@ -5539,7 +5390,6 @@ declare const routes: import("hono/hono-base").HonoBase<import("hono/types").Bla
5539
5390
  username?: string | null | undefined;
5540
5391
  password?: string | null | undefined;
5541
5392
  } | null;
5542
- white_list: string[] | null;
5543
5393
  forward_addresses: {
5544
5394
  weight: number;
5545
5395
  address: string;
@@ -5654,6 +5504,31 @@ declare const routes: import("hono/hono-base").HonoBase<import("hono/types").Bla
5654
5504
  status: import("hono/utils/http-status").ContentfulStatusCode;
5655
5505
  };
5656
5506
  };
5507
+ } & {
5508
+ "/whitelist": {
5509
+ $get: {
5510
+ input: {};
5511
+ output: {
5512
+ whitelist_ips: string[];
5513
+ whitelist_limit: number | null;
5514
+ };
5515
+ outputFormat: "json";
5516
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5517
+ };
5518
+ };
5519
+ } & {
5520
+ "/whitelist": {
5521
+ $put: {
5522
+ input: {
5523
+ json: {
5524
+ whitelist_ips: string[];
5525
+ };
5526
+ };
5527
+ output: null;
5528
+ outputFormat: "body";
5529
+ status: 204;
5530
+ };
5531
+ };
5657
5532
  } & {
5658
5533
  "/:id/test": {
5659
5534
  $get: {
@@ -7416,6 +7291,7 @@ declare const routes: import("hono/hono-base").HonoBase<import("hono/types").Bla
7416
7291
  max_tunnels: number | null;
7417
7292
  description: string | null;
7418
7293
  original_price: number | null;
7294
+ whitelist_limit: number | null;
7419
7295
  allow_custom_in_node_group: boolean;
7420
7296
  allow_custom_out_node_group: boolean;
7421
7297
  all_in_node_groups: boolean;
@@ -7433,6 +7309,155 @@ declare const routes: import("hono/hono-base").HonoBase<import("hono/types").Bla
7433
7309
  plan_id: number;
7434
7310
  traffic_used: number;
7435
7311
  max_tunnels: number | null;
7312
+ whitelist_ips: string | number | boolean | {
7313
+ [x: string]: string | number | boolean | /*elided*/ any | {
7314
+ [x: number]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
7315
+ length: number;
7316
+ toString: null;
7317
+ toLocaleString: null;
7318
+ pop: null;
7319
+ push: {};
7320
+ concat: {};
7321
+ join: {};
7322
+ reverse: null;
7323
+ shift: null;
7324
+ slice: {};
7325
+ sort: {};
7326
+ splice: {};
7327
+ unshift: {};
7328
+ indexOf: {};
7329
+ lastIndexOf: {};
7330
+ every: {};
7331
+ some: {};
7332
+ forEach: {};
7333
+ map: {};
7334
+ filter: {};
7335
+ reduce: {};
7336
+ reduceRight: {};
7337
+ find: {};
7338
+ findIndex: {};
7339
+ fill: {};
7340
+ copyWithin: {};
7341
+ entries: null;
7342
+ keys: null;
7343
+ values: null;
7344
+ includes: {};
7345
+ flatMap: {};
7346
+ flat: {};
7347
+ at: {};
7348
+ [Symbol.iterator]: null;
7349
+ readonly [Symbol.unscopables]: {
7350
+ [x: number]: boolean | undefined;
7351
+ length?: boolean | undefined;
7352
+ toString?: boolean | undefined;
7353
+ toLocaleString?: boolean | undefined;
7354
+ pop?: boolean | undefined;
7355
+ push?: boolean | undefined;
7356
+ concat?: boolean | undefined;
7357
+ join?: boolean | undefined;
7358
+ reverse?: boolean | undefined;
7359
+ shift?: boolean | undefined;
7360
+ slice?: boolean | undefined;
7361
+ sort?: boolean | undefined;
7362
+ splice?: boolean | undefined;
7363
+ unshift?: boolean | undefined;
7364
+ indexOf?: boolean | undefined;
7365
+ lastIndexOf?: boolean | undefined;
7366
+ every?: boolean | undefined;
7367
+ some?: boolean | undefined;
7368
+ forEach?: boolean | undefined;
7369
+ map?: boolean | undefined;
7370
+ filter?: boolean | undefined;
7371
+ reduce?: boolean | undefined;
7372
+ reduceRight?: boolean | undefined;
7373
+ find?: boolean | undefined;
7374
+ findIndex?: boolean | undefined;
7375
+ fill?: boolean | undefined;
7376
+ copyWithin?: boolean | undefined;
7377
+ entries?: boolean | undefined;
7378
+ keys?: boolean | undefined;
7379
+ values?: boolean | undefined;
7380
+ includes?: boolean | undefined;
7381
+ flatMap?: boolean | undefined;
7382
+ flat?: boolean | undefined;
7383
+ at?: boolean | undefined;
7384
+ };
7385
+ } | null | undefined;
7386
+ } | {
7387
+ [x: number]: string | number | boolean | {
7388
+ [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
7389
+ } | /*elided*/ any | null;
7390
+ length: number;
7391
+ toString: null;
7392
+ toLocaleString: null;
7393
+ pop: null;
7394
+ push: {};
7395
+ concat: {};
7396
+ join: {};
7397
+ reverse: null;
7398
+ shift: null;
7399
+ slice: {};
7400
+ sort: {};
7401
+ splice: {};
7402
+ unshift: {};
7403
+ indexOf: {};
7404
+ lastIndexOf: {};
7405
+ every: {};
7406
+ some: {};
7407
+ forEach: {};
7408
+ map: {};
7409
+ filter: {};
7410
+ reduce: {};
7411
+ reduceRight: {};
7412
+ find: {};
7413
+ findIndex: {};
7414
+ fill: {};
7415
+ copyWithin: {};
7416
+ entries: null;
7417
+ keys: null;
7418
+ values: null;
7419
+ includes: {};
7420
+ flatMap: {};
7421
+ flat: {};
7422
+ at: {};
7423
+ [Symbol.iterator]: null;
7424
+ readonly [Symbol.unscopables]: {
7425
+ [x: number]: boolean | undefined;
7426
+ length?: boolean | undefined;
7427
+ toString?: boolean | undefined;
7428
+ toLocaleString?: boolean | undefined;
7429
+ pop?: boolean | undefined;
7430
+ push?: boolean | undefined;
7431
+ concat?: boolean | undefined;
7432
+ join?: boolean | undefined;
7433
+ reverse?: boolean | undefined;
7434
+ shift?: boolean | undefined;
7435
+ slice?: boolean | undefined;
7436
+ sort?: boolean | undefined;
7437
+ splice?: boolean | undefined;
7438
+ unshift?: boolean | undefined;
7439
+ indexOf?: boolean | undefined;
7440
+ lastIndexOf?: boolean | undefined;
7441
+ every?: boolean | undefined;
7442
+ some?: boolean | undefined;
7443
+ forEach?: boolean | undefined;
7444
+ map?: boolean | undefined;
7445
+ filter?: boolean | undefined;
7446
+ reduce?: boolean | undefined;
7447
+ reduceRight?: boolean | undefined;
7448
+ find?: boolean | undefined;
7449
+ findIndex?: boolean | undefined;
7450
+ fill?: boolean | undefined;
7451
+ copyWithin?: boolean | undefined;
7452
+ entries?: boolean | undefined;
7453
+ keys?: boolean | undefined;
7454
+ values?: boolean | undefined;
7455
+ includes?: boolean | undefined;
7456
+ flatMap?: boolean | undefined;
7457
+ flat?: boolean | undefined;
7458
+ at?: boolean | undefined;
7459
+ };
7460
+ } | null;
7436
7461
  expired_at: string | null;
7437
7462
  } | null;
7438
7463
  id: number;
@@ -7748,6 +7773,7 @@ declare const routes: import("hono/hono-base").HonoBase<import("hono/types").Bla
7748
7773
  max_tunnels: number | null;
7749
7774
  description: string | null;
7750
7775
  original_price: number | null;
7776
+ whitelist_limit: number | null;
7751
7777
  allow_custom_in_node_group: boolean;
7752
7778
  allow_custom_out_node_group: boolean;
7753
7779
  all_in_node_groups: boolean;
@@ -7783,6 +7809,7 @@ declare const routes: import("hono/hono-base").HonoBase<import("hono/types").Bla
7783
7809
  max_tunnels: number | null;
7784
7810
  description: string | null;
7785
7811
  original_price: number | null;
7812
+ whitelist_limit: number | null;
7786
7813
  allow_custom_in_node_group: boolean;
7787
7814
  allow_custom_out_node_group: boolean;
7788
7815
  all_in_node_groups: boolean;