@serve.zone/dcrouter-apiclient 32.3.0

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 (200) hide show
  1. package/dist_ts_apiclient/classes.apitoken.d.ts +41 -0
  2. package/dist_ts_apiclient/classes.apitoken.js +115 -0
  3. package/dist_ts_apiclient/classes.certificate.d.ts +57 -0
  4. package/dist_ts_apiclient/classes.certificate.js +69 -0
  5. package/dist_ts_apiclient/classes.config.d.ts +7 -0
  6. package/dist_ts_apiclient/classes.config.js +11 -0
  7. package/dist_ts_apiclient/classes.dcrouterapiclient.d.ts +54 -0
  8. package/dist_ts_apiclient/classes.dcrouterapiclient.js +97 -0
  9. package/dist_ts_apiclient/classes.email.d.ts +30 -0
  10. package/dist_ts_apiclient/classes.email.js +52 -0
  11. package/dist_ts_apiclient/classes.gatewayclient.d.ts +28 -0
  12. package/dist_ts_apiclient/classes.gatewayclient.js +52 -0
  13. package/dist_ts_apiclient/classes.logs.d.ts +28 -0
  14. package/dist_ts_apiclient/classes.logs.js +69 -0
  15. package/dist_ts_apiclient/classes.radius.d.ts +59 -0
  16. package/dist_ts_apiclient/classes.radius.js +95 -0
  17. package/dist_ts_apiclient/classes.remoteingress.d.ts +66 -0
  18. package/dist_ts_apiclient/classes.remoteingress.js +164 -0
  19. package/dist_ts_apiclient/classes.route.d.ts +39 -0
  20. package/dist_ts_apiclient/classes.route.js +125 -0
  21. package/dist_ts_apiclient/classes.stats.d.ts +47 -0
  22. package/dist_ts_apiclient/classes.stats.js +38 -0
  23. package/dist_ts_apiclient/classes.testing.d.ts +65 -0
  24. package/dist_ts_apiclient/classes.testing.js +120 -0
  25. package/dist_ts_apiclient/index.d.ts +12 -0
  26. package/dist_ts_apiclient/index.js +16 -0
  27. package/dist_ts_apiclient/plugins.d.ts +4 -0
  28. package/dist_ts_apiclient/plugins.js +6 -0
  29. package/dist_ts_interfaces/data/acme-config.d.ts +23 -0
  30. package/dist_ts_interfaces/data/acme-config.js +2 -0
  31. package/dist_ts_interfaces/data/auth.d.ts +8 -0
  32. package/dist_ts_interfaces/data/auth.js +2 -0
  33. package/dist_ts_interfaces/data/config-events.d.ts +34 -0
  34. package/dist_ts_interfaces/data/config-events.js +8 -0
  35. package/dist_ts_interfaces/data/dns-authority.d.ts +98 -0
  36. package/dist_ts_interfaces/data/dns-authority.js +26 -0
  37. package/dist_ts_interfaces/data/dns-provider.d.ts +136 -0
  38. package/dist_ts_interfaces/data/dns-provider.js +41 -0
  39. package/dist_ts_interfaces/data/dns-record.d.ts +48 -0
  40. package/dist_ts_interfaces/data/dns-record.js +2 -0
  41. package/dist_ts_interfaces/data/domain.d.ts +35 -0
  42. package/dist_ts_interfaces/data/domain.js +2 -0
  43. package/dist_ts_interfaces/data/email-domain.d.ts +177 -0
  44. package/dist_ts_interfaces/data/email-domain.js +2 -0
  45. package/dist_ts_interfaces/data/email-settings.d.ts +68 -0
  46. package/dist_ts_interfaces/data/email-settings.js +2 -0
  47. package/dist_ts_interfaces/data/index.d.ts +18 -0
  48. package/dist_ts_interfaces/data/index.js +19 -0
  49. package/dist_ts_interfaces/data/remoteingress.d.ts +181 -0
  50. package/dist_ts_interfaces/data/remoteingress.js +15 -0
  51. package/dist_ts_interfaces/data/route-management.d.ts +270 -0
  52. package/dist_ts_interfaces/data/route-management.js +130 -0
  53. package/dist_ts_interfaces/data/security-policy.d.ts +32 -0
  54. package/dist_ts_interfaces/data/security-policy.js +2 -0
  55. package/dist_ts_interfaces/data/smtp-account.d.ts +50 -0
  56. package/dist_ts_interfaces/data/smtp-account.js +9 -0
  57. package/dist_ts_interfaces/data/stats.d.ts +283 -0
  58. package/dist_ts_interfaces/data/stats.js +2 -0
  59. package/dist_ts_interfaces/data/target-profile.d.ts +30 -0
  60. package/dist_ts_interfaces/data/target-profile.js +2 -0
  61. package/dist_ts_interfaces/data/testing.d.ts +191 -0
  62. package/dist_ts_interfaces/data/testing.js +20 -0
  63. package/dist_ts_interfaces/data/vpn.d.ts +65 -0
  64. package/dist_ts_interfaces/data/vpn.js +2 -0
  65. package/dist_ts_interfaces/data/workhoster.d.ts +63 -0
  66. package/dist_ts_interfaces/data/workhoster.js +2 -0
  67. package/dist_ts_interfaces/index.d.ts +5 -0
  68. package/dist_ts_interfaces/index.js +8 -0
  69. package/dist_ts_interfaces/plugins.d.ts +2 -0
  70. package/dist_ts_interfaces/plugins.js +4 -0
  71. package/dist_ts_interfaces/requests/acme-config.d.ts +42 -0
  72. package/dist_ts_interfaces/requests/acme-config.js +2 -0
  73. package/dist_ts_interfaces/requests/admin.d.ts +69 -0
  74. package/dist_ts_interfaces/requests/admin.js +3 -0
  75. package/dist_ts_interfaces/requests/api-tokens.d.ts +85 -0
  76. package/dist_ts_interfaces/requests/api-tokens.js +2 -0
  77. package/dist_ts_interfaces/requests/certificate.d.ts +87 -0
  78. package/dist_ts_interfaces/requests/certificate.js +5 -0
  79. package/dist_ts_interfaces/requests/combined.stats.d.ts +29 -0
  80. package/dist_ts_interfaces/requests/combined.stats.js +2 -0
  81. package/dist_ts_interfaces/requests/config-events.d.ts +35 -0
  82. package/dist_ts_interfaces/requests/config-events.js +4 -0
  83. package/dist_ts_interfaces/requests/config.d.ts +93 -0
  84. package/dist_ts_interfaces/requests/config.js +3 -0
  85. package/dist_ts_interfaces/requests/dns-authority.d.ts +80 -0
  86. package/dist_ts_interfaces/requests/dns-authority.js +3 -0
  87. package/dist_ts_interfaces/requests/dns-providers.d.ts +117 -0
  88. package/dist_ts_interfaces/requests/dns-providers.js +2 -0
  89. package/dist_ts_interfaces/requests/dns-records.d.ts +89 -0
  90. package/dist_ts_interfaces/requests/dns-records.js +2 -0
  91. package/dist_ts_interfaces/requests/domains.d.ts +142 -0
  92. package/dist_ts_interfaces/requests/domains.js +2 -0
  93. package/dist_ts_interfaces/requests/email-domains.d.ts +154 -0
  94. package/dist_ts_interfaces/requests/email-domains.js +2 -0
  95. package/dist_ts_interfaces/requests/email-ops.d.ts +211 -0
  96. package/dist_ts_interfaces/requests/email-ops.js +3 -0
  97. package/dist_ts_interfaces/requests/email-settings.d.ts +26 -0
  98. package/dist_ts_interfaces/requests/email-settings.js +2 -0
  99. package/dist_ts_interfaces/requests/index.d.ts +29 -0
  100. package/dist_ts_interfaces/requests/index.js +30 -0
  101. package/dist_ts_interfaces/requests/logs.d.ts +43 -0
  102. package/dist_ts_interfaces/requests/logs.js +4 -0
  103. package/dist_ts_interfaces/requests/network-targets.d.ts +102 -0
  104. package/dist_ts_interfaces/requests/network-targets.js +2 -0
  105. package/dist_ts_interfaces/requests/radius.d.ts +280 -0
  106. package/dist_ts_interfaces/requests/radius.js +3 -0
  107. package/dist_ts_interfaces/requests/realtime.d.ts +38 -0
  108. package/dist_ts_interfaces/requests/realtime.js +12 -0
  109. package/dist_ts_interfaces/requests/remoteingress.d.ts +162 -0
  110. package/dist_ts_interfaces/requests/remoteingress.js +3 -0
  111. package/dist_ts_interfaces/requests/route-management.d.ts +147 -0
  112. package/dist_ts_interfaces/requests/route-management.js +2 -0
  113. package/dist_ts_interfaces/requests/security-policy.d.ts +105 -0
  114. package/dist_ts_interfaces/requests/security-policy.js +2 -0
  115. package/dist_ts_interfaces/requests/smtp-accounts.d.ts +125 -0
  116. package/dist_ts_interfaces/requests/smtp-accounts.js +2 -0
  117. package/dist_ts_interfaces/requests/source-profiles.d.ts +102 -0
  118. package/dist_ts_interfaces/requests/source-profiles.js +2 -0
  119. package/dist_ts_interfaces/requests/stats.d.ts +196 -0
  120. package/dist_ts_interfaces/requests/stats.js +4 -0
  121. package/dist_ts_interfaces/requests/target-profiles.d.ts +105 -0
  122. package/dist_ts_interfaces/requests/target-profiles.js +2 -0
  123. package/dist_ts_interfaces/requests/testing.d.ts +169 -0
  124. package/dist_ts_interfaces/requests/testing.js +2 -0
  125. package/dist_ts_interfaces/requests/users.d.ts +53 -0
  126. package/dist_ts_interfaces/requests/users.js +3 -0
  127. package/dist_ts_interfaces/requests/vpn.d.ts +188 -0
  128. package/dist_ts_interfaces/requests/vpn.js +3 -0
  129. package/dist_ts_interfaces/requests/workhoster.d.ts +79 -0
  130. package/dist_ts_interfaces/requests/workhoster.js +2 -0
  131. package/license +21 -0
  132. package/package.json +67 -0
  133. package/readme.md +218 -0
  134. package/ts_apiclient/classes.apitoken.ts +157 -0
  135. package/ts_apiclient/classes.certificate.ts +124 -0
  136. package/ts_apiclient/classes.config.ts +17 -0
  137. package/ts_apiclient/classes.dcrouterapiclient.ts +138 -0
  138. package/ts_apiclient/classes.email.ts +77 -0
  139. package/ts_apiclient/classes.gatewayclient.ts +110 -0
  140. package/ts_apiclient/classes.logs.ts +91 -0
  141. package/ts_apiclient/classes.radius.ts +180 -0
  142. package/ts_apiclient/classes.remoteingress.ts +217 -0
  143. package/ts_apiclient/classes.route.ts +166 -0
  144. package/ts_apiclient/classes.stats.ts +111 -0
  145. package/ts_apiclient/classes.testing.ts +152 -0
  146. package/ts_apiclient/index.ts +17 -0
  147. package/ts_apiclient/plugins.ts +10 -0
  148. package/ts_apiclient/readme.md +218 -0
  149. package/ts_interfaces/data/acme-config.ts +23 -0
  150. package/ts_interfaces/data/auth.ts +8 -0
  151. package/ts_interfaces/data/config-events.ts +38 -0
  152. package/ts_interfaces/data/dns-authority.ts +106 -0
  153. package/ts_interfaces/data/dns-provider.ts +174 -0
  154. package/ts_interfaces/data/dns-record.ts +50 -0
  155. package/ts_interfaces/data/domain.ts +36 -0
  156. package/ts_interfaces/data/email-domain.ts +206 -0
  157. package/ts_interfaces/data/email-settings.ts +75 -0
  158. package/ts_interfaces/data/index.ts +18 -0
  159. package/ts_interfaces/data/remoteingress.ts +204 -0
  160. package/ts_interfaces/data/route-management.ts +436 -0
  161. package/ts_interfaces/data/security-policy.ts +37 -0
  162. package/ts_interfaces/data/smtp-account.ts +63 -0
  163. package/ts_interfaces/data/stats.ts +305 -0
  164. package/ts_interfaces/data/target-profile.ts +31 -0
  165. package/ts_interfaces/data/testing.ts +184 -0
  166. package/ts_interfaces/data/vpn.ts +68 -0
  167. package/ts_interfaces/data/workhoster.ts +72 -0
  168. package/ts_interfaces/index.ts +9 -0
  169. package/ts_interfaces/plugins.ts +6 -0
  170. package/ts_interfaces/readme.md +194 -0
  171. package/ts_interfaces/requests/acme-config.ts +54 -0
  172. package/ts_interfaces/requests/admin.ts +96 -0
  173. package/ts_interfaces/requests/api-tokens.ts +109 -0
  174. package/ts_interfaces/requests/certificate.ts +106 -0
  175. package/ts_interfaces/requests/combined.stats.ts +30 -0
  176. package/ts_interfaces/requests/config-events.ts +45 -0
  177. package/ts_interfaces/requests/config.ts +94 -0
  178. package/ts_interfaces/requests/dns-authority.ts +104 -0
  179. package/ts_interfaces/requests/dns-providers.ts +154 -0
  180. package/ts_interfaces/requests/dns-records.ts +113 -0
  181. package/ts_interfaces/requests/domains.ts +178 -0
  182. package/ts_interfaces/requests/email-domains.ts +193 -0
  183. package/ts_interfaces/requests/email-ops.ts +266 -0
  184. package/ts_interfaces/requests/email-settings.ts +34 -0
  185. package/ts_interfaces/requests/index.ts +29 -0
  186. package/ts_interfaces/requests/logs.ts +58 -0
  187. package/ts_interfaces/requests/network-targets.ts +127 -0
  188. package/ts_interfaces/requests/radius.ts +341 -0
  189. package/ts_interfaces/requests/realtime.ts +59 -0
  190. package/ts_interfaces/requests/remoteingress.ts +202 -0
  191. package/ts_interfaces/requests/route-management.ts +194 -0
  192. package/ts_interfaces/requests/security-policy.ts +144 -0
  193. package/ts_interfaces/requests/smtp-accounts.ts +163 -0
  194. package/ts_interfaces/requests/source-profiles.ts +127 -0
  195. package/ts_interfaces/requests/stats.ts +207 -0
  196. package/ts_interfaces/requests/target-profiles.ts +130 -0
  197. package/ts_interfaces/requests/testing.ts +186 -0
  198. package/ts_interfaces/requests/users.ts +66 -0
  199. package/ts_interfaces/requests/vpn.ts +238 -0
  200. package/ts_interfaces/requests/workhoster.ts +100 -0
@@ -0,0 +1,105 @@
1
+ import * as plugins from '../plugins.js';
2
+ import type * as authInterfaces from '../data/auth.js';
3
+ import type { IIpIntelligenceRecord, ISecurityBlockRule, ISecurityCompiledPolicy, ISecurityPolicyAuditEvent, TSecurityBlockRuleMatchMode, TSecurityBlockRuleType } from '../data/security-policy.js';
4
+ export interface IReq_ListSecurityBlockRules extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ListSecurityBlockRules> {
5
+ method: 'listSecurityBlockRules';
6
+ request: {
7
+ identity?: authInterfaces.IIdentity;
8
+ apiToken?: string;
9
+ };
10
+ response: {
11
+ rules: ISecurityBlockRule[];
12
+ };
13
+ }
14
+ export interface IReq_CreateSecurityBlockRule extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_CreateSecurityBlockRule> {
15
+ method: 'createSecurityBlockRule';
16
+ request: {
17
+ identity?: authInterfaces.IIdentity;
18
+ apiToken?: string;
19
+ type: TSecurityBlockRuleType;
20
+ value: string;
21
+ matchMode?: TSecurityBlockRuleMatchMode;
22
+ reason?: string;
23
+ enabled?: boolean;
24
+ };
25
+ response: {
26
+ success: boolean;
27
+ rule?: ISecurityBlockRule;
28
+ message?: string;
29
+ };
30
+ }
31
+ export interface IReq_UpdateSecurityBlockRule extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_UpdateSecurityBlockRule> {
32
+ method: 'updateSecurityBlockRule';
33
+ request: {
34
+ identity?: authInterfaces.IIdentity;
35
+ apiToken?: string;
36
+ id: string;
37
+ value?: string;
38
+ matchMode?: TSecurityBlockRuleMatchMode;
39
+ reason?: string;
40
+ enabled?: boolean;
41
+ };
42
+ response: {
43
+ success: boolean;
44
+ rule?: ISecurityBlockRule;
45
+ message?: string;
46
+ };
47
+ }
48
+ export interface IReq_DeleteSecurityBlockRule extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_DeleteSecurityBlockRule> {
49
+ method: 'deleteSecurityBlockRule';
50
+ request: {
51
+ identity?: authInterfaces.IIdentity;
52
+ apiToken?: string;
53
+ id: string;
54
+ };
55
+ response: {
56
+ success: boolean;
57
+ message?: string;
58
+ };
59
+ }
60
+ export interface IReq_ListIpIntelligence extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ListIpIntelligence> {
61
+ method: 'listIpIntelligence';
62
+ request: {
63
+ identity?: authInterfaces.IIdentity;
64
+ apiToken?: string;
65
+ ipAddresses?: string[];
66
+ limit?: number;
67
+ };
68
+ response: {
69
+ records: IIpIntelligenceRecord[];
70
+ };
71
+ }
72
+ export interface IReq_GetCompiledSecurityPolicy extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetCompiledSecurityPolicy> {
73
+ method: 'getCompiledSecurityPolicy';
74
+ request: {
75
+ identity?: authInterfaces.IIdentity;
76
+ apiToken?: string;
77
+ };
78
+ response: {
79
+ policy: ISecurityCompiledPolicy;
80
+ };
81
+ }
82
+ export interface IReq_ListSecurityPolicyAudit extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ListSecurityPolicyAudit> {
83
+ method: 'listSecurityPolicyAudit';
84
+ request: {
85
+ identity?: authInterfaces.IIdentity;
86
+ apiToken?: string;
87
+ limit?: number;
88
+ };
89
+ response: {
90
+ events: ISecurityPolicyAuditEvent[];
91
+ };
92
+ }
93
+ export interface IReq_RefreshIpIntelligence extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_RefreshIpIntelligence> {
94
+ method: 'refreshIpIntelligence';
95
+ request: {
96
+ identity?: authInterfaces.IIdentity;
97
+ apiToken?: string;
98
+ ipAddress: string;
99
+ };
100
+ response: {
101
+ success: boolean;
102
+ record?: IIpIntelligenceRecord;
103
+ message?: string;
104
+ };
105
+ }
@@ -0,0 +1,2 @@
1
+ import * as plugins from '../plugins.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjdXJpdHktcG9saWN5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHNfaW50ZXJmYWNlcy9yZXF1ZXN0cy9zZWN1cml0eS1wb2xpY3kudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE9BQU8sTUFBTSxlQUFlLENBQUMifQ==
@@ -0,0 +1,125 @@
1
+ import * as plugins from '../plugins.js';
2
+ import type * as authInterfaces from '../data/auth.js';
3
+ import type { ISmtpAccountInfo, ISmtpAccountMailPolicy, ISmtpAccountRecipientScope, ISmtpAccountSenderScope } from '../data/smtp-account.js';
4
+ /**
5
+ * Shared mutation result. `warnings` carries non-blocking findings such as
6
+ * sender domains that are not managed email domains (warn-and-allow).
7
+ */
8
+ export interface ISmtpAccountActionResult {
9
+ success: boolean;
10
+ message?: string;
11
+ code?: string;
12
+ warnings?: string[];
13
+ }
14
+ /**
15
+ * List all SMTP submission accounts (never includes credentials).
16
+ */
17
+ export interface IReq_GetSmtpAccounts extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetSmtpAccounts> {
18
+ method: 'getSmtpAccounts';
19
+ request: {
20
+ identity?: authInterfaces.IIdentity;
21
+ apiToken?: string;
22
+ };
23
+ response: {
24
+ accounts: ISmtpAccountInfo[];
25
+ };
26
+ }
27
+ /**
28
+ * Create an SMTP submission account. The password is machine-generated and
29
+ * returned exactly once in this response; only a SCRAM verifier is persisted.
30
+ */
31
+ export interface IReq_CreateSmtpAccount extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_CreateSmtpAccount> {
32
+ method: 'createSmtpAccount';
33
+ request: {
34
+ identity?: authInterfaces.IIdentity;
35
+ apiToken?: string;
36
+ username: string;
37
+ description?: string;
38
+ senderScope?: ISmtpAccountSenderScope;
39
+ recipientScope?: ISmtpAccountRecipientScope;
40
+ mailPolicy?: ISmtpAccountMailPolicy;
41
+ };
42
+ response: ISmtpAccountActionResult & {
43
+ account?: ISmtpAccountInfo;
44
+ /** Shown once; never retrievable again. */
45
+ password?: string;
46
+ };
47
+ }
48
+ /**
49
+ * Update an SMTP account's description, scopes, or mail policy.
50
+ */
51
+ export interface IReq_UpdateSmtpAccount extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_UpdateSmtpAccount> {
52
+ method: 'updateSmtpAccount';
53
+ request: {
54
+ identity?: authInterfaces.IIdentity;
55
+ apiToken?: string;
56
+ id: string;
57
+ description?: string;
58
+ senderScope?: ISmtpAccountSenderScope;
59
+ recipientScope?: ISmtpAccountRecipientScope;
60
+ mailPolicy?: ISmtpAccountMailPolicy;
61
+ };
62
+ response: ISmtpAccountActionResult & {
63
+ account?: ISmtpAccountInfo;
64
+ };
65
+ }
66
+ /**
67
+ * Enable or disable an SMTP account. Disabled accounts always fail
68
+ * authentication (and still shadow same-named legacy static users).
69
+ */
70
+ export interface IReq_ToggleSmtpAccount extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ToggleSmtpAccount> {
71
+ method: 'toggleSmtpAccount';
72
+ request: {
73
+ identity?: authInterfaces.IIdentity;
74
+ apiToken?: string;
75
+ id: string;
76
+ enabled: boolean;
77
+ };
78
+ response: ISmtpAccountActionResult & {
79
+ account?: ISmtpAccountInfo;
80
+ };
81
+ }
82
+ /**
83
+ * Rotate an SMTP account's password. The new password is returned exactly
84
+ * once; the previous credential stops working immediately.
85
+ */
86
+ export interface IReq_RotateSmtpAccountPassword extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_RotateSmtpAccountPassword> {
87
+ method: 'rotateSmtpAccountPassword';
88
+ request: {
89
+ identity?: authInterfaces.IIdentity;
90
+ apiToken?: string;
91
+ id: string;
92
+ };
93
+ response: ISmtpAccountActionResult & {
94
+ account?: ISmtpAccountInfo;
95
+ /** Shown once; never retrievable again. */
96
+ password?: string;
97
+ };
98
+ }
99
+ /**
100
+ * Delete an SMTP account.
101
+ */
102
+ export interface IReq_DeleteSmtpAccount extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_DeleteSmtpAccount> {
103
+ method: 'deleteSmtpAccount';
104
+ request: {
105
+ identity?: authInterfaces.IIdentity;
106
+ apiToken?: string;
107
+ id: string;
108
+ };
109
+ response: ISmtpAccountActionResult;
110
+ }
111
+ /**
112
+ * Remove a named legacy route from the persisted email server settings
113
+ * (EmailServerSettingsDoc.emailConfig.routes) — the retirement lever for
114
+ * legacy internal-relay routes once scoped SMTP accounts replace them.
115
+ * Applies through the standard email settings restart path.
116
+ */
117
+ export interface IReq_RemoveLegacyEmailRoute extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_RemoveLegacyEmailRoute> {
118
+ method: 'removeLegacyEmailRoute';
119
+ request: {
120
+ identity?: authInterfaces.IIdentity;
121
+ apiToken?: string;
122
+ routeName: string;
123
+ };
124
+ response: ISmtpAccountActionResult;
125
+ }
@@ -0,0 +1,2 @@
1
+ import * as plugins from '../plugins.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic210cC1hY2NvdW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzX2ludGVyZmFjZXMvcmVxdWVzdHMvc210cC1hY2NvdW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQyJ9
@@ -0,0 +1,102 @@
1
+ import * as plugins from '../plugins.js';
2
+ import type * as authInterfaces from '../data/auth.js';
3
+ import type { ISourceProfile, IRouteSecurity } from '../data/route-management.js';
4
+ /**
5
+ * Get all source profiles.
6
+ */
7
+ export interface IReq_GetSourceProfiles extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetSourceProfiles> {
8
+ method: 'getSourceProfiles';
9
+ request: {
10
+ identity?: authInterfaces.IIdentity;
11
+ apiToken?: string;
12
+ };
13
+ response: {
14
+ profiles: ISourceProfile[];
15
+ };
16
+ }
17
+ /**
18
+ * Get a single source profile by ID.
19
+ */
20
+ export interface IReq_GetSourceProfile extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetSourceProfile> {
21
+ method: 'getSourceProfile';
22
+ request: {
23
+ identity?: authInterfaces.IIdentity;
24
+ apiToken?: string;
25
+ id: string;
26
+ };
27
+ response: {
28
+ profile: ISourceProfile | null;
29
+ };
30
+ }
31
+ /**
32
+ * Create a new source profile.
33
+ */
34
+ export interface IReq_CreateSourceProfile extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_CreateSourceProfile> {
35
+ method: 'createSourceProfile';
36
+ request: {
37
+ identity?: authInterfaces.IIdentity;
38
+ apiToken?: string;
39
+ name: string;
40
+ description?: string;
41
+ security: IRouteSecurity;
42
+ extendsProfiles?: string[];
43
+ };
44
+ response: {
45
+ success: boolean;
46
+ id?: string;
47
+ message?: string;
48
+ };
49
+ }
50
+ /**
51
+ * Update a source profile.
52
+ */
53
+ export interface IReq_UpdateSourceProfile extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_UpdateSourceProfile> {
54
+ method: 'updateSourceProfile';
55
+ request: {
56
+ identity?: authInterfaces.IIdentity;
57
+ apiToken?: string;
58
+ id: string;
59
+ name?: string;
60
+ description?: string;
61
+ security?: IRouteSecurity;
62
+ extendsProfiles?: string[];
63
+ };
64
+ response: {
65
+ success: boolean;
66
+ affectedRouteCount?: number;
67
+ message?: string;
68
+ };
69
+ }
70
+ /**
71
+ * Delete a source profile.
72
+ */
73
+ export interface IReq_DeleteSourceProfile extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_DeleteSourceProfile> {
74
+ method: 'deleteSourceProfile';
75
+ request: {
76
+ identity?: authInterfaces.IIdentity;
77
+ apiToken?: string;
78
+ id: string;
79
+ force?: boolean;
80
+ };
81
+ response: {
82
+ success: boolean;
83
+ message?: string;
84
+ };
85
+ }
86
+ /**
87
+ * Get which routes reference a source profile.
88
+ */
89
+ export interface IReq_GetSourceProfileUsage extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetSourceProfileUsage> {
90
+ method: 'getSourceProfileUsage';
91
+ request: {
92
+ identity?: authInterfaces.IIdentity;
93
+ apiToken?: string;
94
+ id: string;
95
+ };
96
+ response: {
97
+ routes: Array<{
98
+ id: string;
99
+ name: string;
100
+ }>;
101
+ };
102
+ }
@@ -0,0 +1,2 @@
1
+ import * as plugins from '../plugins.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlLXByb2ZpbGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHNfaW50ZXJmYWNlcy9yZXF1ZXN0cy9zb3VyY2UtcHJvZmlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE9BQU8sTUFBTSxlQUFlLENBQUMifQ==
@@ -0,0 +1,196 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as authInterfaces from '../data/auth.js';
3
+ import * as statsInterfaces from '../data/stats.js';
4
+ export interface IReq_GetServerStatistics extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetServerStatistics> {
5
+ method: 'getServerStatistics';
6
+ request: {
7
+ identity?: authInterfaces.IIdentity;
8
+ apiToken?: string;
9
+ includeHistory?: boolean;
10
+ timeRange?: '1h' | '6h' | '24h' | '7d' | '30d';
11
+ };
12
+ response: {
13
+ stats: statsInterfaces.IServerStats;
14
+ history?: Array<{
15
+ timestamp: number;
16
+ value: number;
17
+ }>;
18
+ };
19
+ }
20
+ export interface IReq_GetEmailStatistics extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetEmailStatistics> {
21
+ method: 'getEmailStatistics';
22
+ request: {
23
+ identity?: authInterfaces.IIdentity;
24
+ apiToken?: string;
25
+ timeRange?: '1h' | '6h' | '24h' | '7d' | '30d';
26
+ domain?: string;
27
+ includeDetails?: boolean;
28
+ };
29
+ response: {
30
+ stats: statsInterfaces.IEmailStats;
31
+ domainBreakdown?: {
32
+ [domain: string]: statsInterfaces.IEmailStats;
33
+ };
34
+ };
35
+ }
36
+ export interface IReq_GetDnsStatistics extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetDnsStatistics> {
37
+ method: 'getDnsStatistics';
38
+ request: {
39
+ identity?: authInterfaces.IIdentity;
40
+ apiToken?: string;
41
+ timeRange?: '1h' | '6h' | '24h' | '7d' | '30d';
42
+ domain?: string;
43
+ includeQueryTypes?: boolean;
44
+ };
45
+ response: {
46
+ stats: statsInterfaces.IDnsStats;
47
+ domainBreakdown?: {
48
+ [domain: string]: statsInterfaces.IDnsStats;
49
+ };
50
+ };
51
+ }
52
+ export interface IReq_GetRateLimitStatus extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetRateLimitStatus> {
53
+ method: 'getRateLimitStatus';
54
+ request: {
55
+ identity?: authInterfaces.IIdentity;
56
+ apiToken?: string;
57
+ domain?: string;
58
+ ip?: string;
59
+ includeBlocked?: boolean;
60
+ };
61
+ response: {
62
+ limits: statsInterfaces.IRateLimitInfo[];
63
+ globalLimit?: {
64
+ current: number;
65
+ limit: number;
66
+ remaining: number;
67
+ };
68
+ };
69
+ }
70
+ export interface IReq_GetSecurityMetrics extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetSecurityMetrics> {
71
+ method: 'getSecurityMetrics';
72
+ request: {
73
+ identity?: authInterfaces.IIdentity;
74
+ apiToken?: string;
75
+ timeRange?: '1h' | '6h' | '24h' | '7d' | '30d';
76
+ includeDetails?: boolean;
77
+ };
78
+ response: {
79
+ metrics: statsInterfaces.ISecurityMetrics;
80
+ trends?: {
81
+ spam: Array<{
82
+ timestamp: number;
83
+ value: number;
84
+ }>;
85
+ malware: Array<{
86
+ timestamp: number;
87
+ value: number;
88
+ }>;
89
+ phishing: Array<{
90
+ timestamp: number;
91
+ value: number;
92
+ }>;
93
+ };
94
+ };
95
+ }
96
+ export interface IReq_GetActiveConnections extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetActiveConnections> {
97
+ method: 'getActiveConnections';
98
+ request: {
99
+ identity?: authInterfaces.IIdentity;
100
+ apiToken?: string;
101
+ protocol?: 'smtp' | 'smtps' | 'http' | 'https';
102
+ state?: string;
103
+ limit?: number;
104
+ cursor?: string;
105
+ };
106
+ response: {
107
+ connections: statsInterfaces.IConnectionInfo[];
108
+ summary: {
109
+ total: number;
110
+ byProtocol: {
111
+ [protocol: string]: number;
112
+ };
113
+ byState: {
114
+ [state: string]: number;
115
+ };
116
+ };
117
+ pagination: {
118
+ limit: number;
119
+ hasMore: boolean;
120
+ nextCursor?: string;
121
+ };
122
+ };
123
+ }
124
+ export interface IReq_GetQueueStatus extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetQueueStatus> {
125
+ method: 'getQueueStatus';
126
+ request: {
127
+ identity?: authInterfaces.IIdentity;
128
+ apiToken?: string;
129
+ queueName?: string;
130
+ };
131
+ response: {
132
+ queues: statsInterfaces.IQueueStatus[];
133
+ totalItems: number;
134
+ };
135
+ }
136
+ export interface IReq_GetHealthStatus extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetHealthStatus> {
137
+ method: 'getHealthStatus';
138
+ request: {
139
+ identity?: authInterfaces.IIdentity;
140
+ apiToken?: string;
141
+ detailed?: boolean;
142
+ };
143
+ response: {
144
+ health: statsInterfaces.IHealthStatus;
145
+ };
146
+ }
147
+ export interface IReq_GetNetworkStats extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetNetworkStats> {
148
+ method: 'getNetworkStats';
149
+ request: {
150
+ identity?: authInterfaces.IIdentity;
151
+ apiToken?: string;
152
+ };
153
+ response: {
154
+ connectionsByIP: Array<{
155
+ ip: string;
156
+ count: number;
157
+ }>;
158
+ throughputRate: {
159
+ bytesInPerSecond: number;
160
+ bytesOutPerSecond: number;
161
+ };
162
+ topIPs: Array<{
163
+ ip: string;
164
+ count: number;
165
+ }>;
166
+ totalDataTransferred: {
167
+ bytesIn: number;
168
+ bytesOut: number;
169
+ };
170
+ throughputHistory: Array<{
171
+ timestamp: number;
172
+ in: number;
173
+ out: number;
174
+ }>;
175
+ frontendConnectionHistory: statsInterfaces.IProtocolConnectionHistoryPoint[];
176
+ backendConnectionHistory: statsInterfaces.IProtocolConnectionHistoryPoint[];
177
+ throughputByIP: Array<{
178
+ ip: string;
179
+ in: number;
180
+ out: number;
181
+ }>;
182
+ requestsPerSecond: number;
183
+ requestsTotal: number;
184
+ backends?: statsInterfaces.IBackendInfo[];
185
+ topIPsByBandwidth: Array<{
186
+ ip: string;
187
+ count: number;
188
+ bwIn: number;
189
+ bwOut: number;
190
+ }>;
191
+ topASNs: statsInterfaces.IAsnActivity[];
192
+ domainActivity: statsInterfaces.IDomainActivity[];
193
+ frontendProtocols?: statsInterfaces.IProtocolDistribution | null;
194
+ backendProtocols?: statsInterfaces.IProtocolDistribution | null;
195
+ };
196
+ }
@@ -0,0 +1,4 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as authInterfaces from '../data/auth.js';
3
+ import * as statsInterfaces from '../data/stats.js';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c19pbnRlcmZhY2VzL3JlcXVlc3RzL3N0YXRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sS0FBSyxjQUFjLE1BQU0saUJBQWlCLENBQUM7QUFDbEQsT0FBTyxLQUFLLGVBQWUsTUFBTSxrQkFBa0IsQ0FBQyJ9
@@ -0,0 +1,105 @@
1
+ import * as plugins from '../plugins.js';
2
+ import type * as authInterfaces from '../data/auth.js';
3
+ import type { ITargetProfile, ITargetProfileTarget } from '../data/target-profile.js';
4
+ /**
5
+ * Get all target profiles.
6
+ */
7
+ export interface IReq_GetTargetProfiles extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetTargetProfiles> {
8
+ method: 'getTargetProfiles';
9
+ request: {
10
+ identity?: authInterfaces.IIdentity;
11
+ apiToken?: string;
12
+ };
13
+ response: {
14
+ profiles: ITargetProfile[];
15
+ };
16
+ }
17
+ /**
18
+ * Get a single target profile by ID.
19
+ */
20
+ export interface IReq_GetTargetProfile extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetTargetProfile> {
21
+ method: 'getTargetProfile';
22
+ request: {
23
+ identity?: authInterfaces.IIdentity;
24
+ apiToken?: string;
25
+ id: string;
26
+ };
27
+ response: {
28
+ profile: ITargetProfile | null;
29
+ };
30
+ }
31
+ /**
32
+ * Create a new target profile.
33
+ */
34
+ export interface IReq_CreateTargetProfile extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_CreateTargetProfile> {
35
+ method: 'createTargetProfile';
36
+ request: {
37
+ identity?: authInterfaces.IIdentity;
38
+ apiToken?: string;
39
+ name: string;
40
+ description?: string;
41
+ domains?: string[];
42
+ targets?: ITargetProfileTarget[];
43
+ routeRefs?: string[];
44
+ allowRoutesByClientSourceIp?: boolean;
45
+ };
46
+ response: {
47
+ success: boolean;
48
+ id?: string;
49
+ message?: string;
50
+ };
51
+ }
52
+ /**
53
+ * Update a target profile.
54
+ */
55
+ export interface IReq_UpdateTargetProfile extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_UpdateTargetProfile> {
56
+ method: 'updateTargetProfile';
57
+ request: {
58
+ identity?: authInterfaces.IIdentity;
59
+ apiToken?: string;
60
+ id: string;
61
+ name?: string;
62
+ description?: string;
63
+ domains?: string[];
64
+ targets?: ITargetProfileTarget[];
65
+ routeRefs?: string[];
66
+ allowRoutesByClientSourceIp?: boolean;
67
+ };
68
+ response: {
69
+ success: boolean;
70
+ message?: string;
71
+ };
72
+ }
73
+ /**
74
+ * Delete a target profile.
75
+ */
76
+ export interface IReq_DeleteTargetProfile extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_DeleteTargetProfile> {
77
+ method: 'deleteTargetProfile';
78
+ request: {
79
+ identity?: authInterfaces.IIdentity;
80
+ apiToken?: string;
81
+ id: string;
82
+ force?: boolean;
83
+ };
84
+ response: {
85
+ success: boolean;
86
+ message?: string;
87
+ };
88
+ }
89
+ /**
90
+ * Get which VPN clients reference a target profile.
91
+ */
92
+ export interface IReq_GetTargetProfileUsage extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetTargetProfileUsage> {
93
+ method: 'getTargetProfileUsage';
94
+ request: {
95
+ identity?: authInterfaces.IIdentity;
96
+ apiToken?: string;
97
+ id: string;
98
+ };
99
+ response: {
100
+ clients: Array<{
101
+ clientId: string;
102
+ description?: string;
103
+ }>;
104
+ };
105
+ }
@@ -0,0 +1,2 @@
1
+ import * as plugins from '../plugins.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFyZ2V0LXByb2ZpbGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHNfaW50ZXJmYWNlcy9yZXF1ZXN0cy90YXJnZXQtcHJvZmlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE9BQU8sTUFBTSxlQUFlLENBQUMifQ==