@serve.zone/dcrouter 13.30.0 → 13.32.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.
- package/dist_serve/bundle.js +1042 -1014
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.dcrouter.d.ts +1 -1
- package/dist_ts/opsserver/classes.opsserver.d.ts +4 -2
- package/dist_ts/opsserver/classes.opsserver.js +2 -11
- package/dist_ts/opsserver/handlers/acme-config.handler.js +7 -24
- package/dist_ts/opsserver/handlers/admin.handler.d.ts +12 -0
- package/dist_ts/opsserver/handlers/admin.handler.js +129 -95
- package/dist_ts/opsserver/handlers/api-token.handler.js +28 -2
- package/dist_ts/opsserver/handlers/certificate.handler.js +7 -24
- package/dist_ts/opsserver/handlers/config.handler.js +3 -1
- package/dist_ts/opsserver/handlers/dns-provider.handler.js +7 -24
- package/dist_ts/opsserver/handlers/dns-record.handler.js +7 -24
- package/dist_ts/opsserver/handlers/domain.handler.js +7 -24
- package/dist_ts/opsserver/handlers/email-domain.handler.js +7 -24
- package/dist_ts/opsserver/handlers/email-ops.handler.js +8 -1
- package/dist_ts/opsserver/handlers/logs.handler.js +4 -1
- package/dist_ts/opsserver/handlers/network-target.handler.js +7 -24
- package/dist_ts/opsserver/handlers/radius.handler.js +32 -1
- package/dist_ts/opsserver/handlers/remoteingress.handler.js +24 -1
- package/dist_ts/opsserver/handlers/route-management.handler.js +7 -26
- package/dist_ts/opsserver/handlers/security.handler.js +32 -7
- package/dist_ts/opsserver/handlers/source-profile.handler.js +7 -24
- package/dist_ts/opsserver/handlers/stats.handler.js +8 -1
- package/dist_ts/opsserver/handlers/target-profile.handler.js +7 -24
- package/dist_ts/opsserver/handlers/users.handler.d.ts +1 -1
- package/dist_ts/opsserver/handlers/users.handler.js +35 -4
- package/dist_ts/opsserver/handlers/vpn.handler.js +34 -1
- package/dist_ts/opsserver/handlers/workhoster.handler.js +16 -35
- package/dist_ts/opsserver/helpers/auth.d.ts +21 -0
- package/dist_ts/opsserver/helpers/auth.js +63 -0
- package/dist_ts_interfaces/data/route-management.d.ts +2 -1
- package/dist_ts_interfaces/data/route-management.js +48 -2
- package/dist_ts_interfaces/requests/api-tokens.d.ts +10 -5
- package/dist_ts_interfaces/requests/combined.stats.d.ts +2 -1
- package/dist_ts_interfaces/requests/config.d.ts +2 -1
- package/dist_ts_interfaces/requests/email-ops.d.ts +6 -3
- package/dist_ts_interfaces/requests/logs.d.ts +4 -2
- package/dist_ts_interfaces/requests/radius.d.ts +24 -12
- package/dist_ts_interfaces/requests/remoteingress.d.ts +14 -7
- package/dist_ts_interfaces/requests/security-policy.d.ts +16 -8
- package/dist_ts_interfaces/requests/stats.d.ts +18 -9
- package/dist_ts_interfaces/requests/users.d.ts +39 -2
- package/dist_ts_interfaces/requests/vpn.d.ts +22 -11
- package/dist_ts_interfaces/requests/workhoster.d.ts +10 -5
- package/dist_ts_migrations/index.js +3 -1
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/appstate.d.ts +8 -0
- package/dist_ts_web/appstate.js +52 -2
- package/dist_ts_web/elements/access/ops-view-apitokens.js +2 -21
- package/dist_ts_web/elements/access/ops-view-users.d.ts +2 -0
- package/dist_ts_web/elements/access/ops-view-users.js +133 -2
- package/dist_ts_web/elements/network/ops-view-routes.js +11 -1
- package/dist_ts_web/elements/ops-dashboard.js +2 -4
- package/package.json +3 -3
- package/readme.md +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.dcrouter.ts +1 -1
- package/ts/opsserver/classes.opsserver.ts +3 -14
- package/ts/opsserver/handlers/acme-config.handler.ts +6 -23
- package/ts/opsserver/handlers/admin.handler.ts +155 -111
- package/ts/opsserver/handlers/api-token.handler.ts +27 -1
- package/ts/opsserver/handlers/certificate.handler.ts +6 -23
- package/ts/opsserver/handlers/config.handler.ts +2 -0
- package/ts/opsserver/handlers/dns-provider.handler.ts +6 -23
- package/ts/opsserver/handlers/dns-record.handler.ts +6 -23
- package/ts/opsserver/handlers/domain.handler.ts +6 -23
- package/ts/opsserver/handlers/email-domain.handler.ts +6 -23
- package/ts/opsserver/handlers/email-ops.handler.ts +7 -0
- package/ts/opsserver/handlers/logs.handler.ts +3 -0
- package/ts/opsserver/handlers/network-target.handler.ts +6 -23
- package/ts/opsserver/handlers/radius.handler.ts +31 -0
- package/ts/opsserver/handlers/remoteingress.handler.ts +23 -0
- package/ts/opsserver/handlers/route-management.handler.ts +6 -25
- package/ts/opsserver/handlers/security.handler.ts +31 -6
- package/ts/opsserver/handlers/source-profile.handler.ts +6 -23
- package/ts/opsserver/handlers/stats.handler.ts +7 -0
- package/ts/opsserver/handlers/target-profile.handler.ts +6 -23
- package/ts/opsserver/handlers/users.handler.ts +46 -3
- package/ts/opsserver/handlers/vpn.handler.ts +33 -0
- package/ts/opsserver/handlers/workhoster.handler.ts +18 -33
- package/ts/opsserver/helpers/auth.ts +91 -0
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/appstate.ts +69 -1
- package/ts_web/elements/access/ops-view-apitokens.ts +1 -20
- package/ts_web/elements/access/ops-view-users.ts +139 -1
- package/ts_web/elements/network/ops-view-routes.ts +9 -0
- package/ts_web/elements/ops-dashboard.ts +1 -3
|
@@ -52,7 +52,8 @@ export interface IEmailDetail extends IEmail {
|
|
|
52
52
|
export interface IReq_GetAllEmails extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetAllEmails> {
|
|
53
53
|
method: 'getAllEmails';
|
|
54
54
|
request: {
|
|
55
|
-
identity
|
|
55
|
+
identity?: authInterfaces.IIdentity;
|
|
56
|
+
apiToken?: string;
|
|
56
57
|
};
|
|
57
58
|
response: {
|
|
58
59
|
emails: IEmail[];
|
|
@@ -61,7 +62,8 @@ export interface IReq_GetAllEmails extends plugins.typedrequestInterfaces.implem
|
|
|
61
62
|
export interface IReq_GetEmailDetail extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetEmailDetail> {
|
|
62
63
|
method: 'getEmailDetail';
|
|
63
64
|
request: {
|
|
64
|
-
identity
|
|
65
|
+
identity?: authInterfaces.IIdentity;
|
|
66
|
+
apiToken?: string;
|
|
65
67
|
emailId: string;
|
|
66
68
|
};
|
|
67
69
|
response: {
|
|
@@ -71,7 +73,8 @@ export interface IReq_GetEmailDetail extends plugins.typedrequestInterfaces.impl
|
|
|
71
73
|
export interface IReq_ResendEmail extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ResendEmail> {
|
|
72
74
|
method: 'resendEmail';
|
|
73
75
|
request: {
|
|
74
|
-
identity
|
|
76
|
+
identity?: authInterfaces.IIdentity;
|
|
77
|
+
apiToken?: string;
|
|
75
78
|
emailId: string;
|
|
76
79
|
};
|
|
77
80
|
response: {
|
|
@@ -4,7 +4,8 @@ import * as statsInterfaces from '../data/stats.js';
|
|
|
4
4
|
export interface IReq_GetRecentLogs extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetRecentLogs> {
|
|
5
5
|
method: 'getRecentLogs';
|
|
6
6
|
request: {
|
|
7
|
-
identity
|
|
7
|
+
identity?: authInterfaces.IIdentity;
|
|
8
|
+
apiToken?: string;
|
|
8
9
|
level?: 'debug' | 'info' | 'warn' | 'error';
|
|
9
10
|
category?: 'smtp' | 'dns' | 'security' | 'system' | 'email';
|
|
10
11
|
limit?: number;
|
|
@@ -21,7 +22,8 @@ export interface IReq_GetRecentLogs extends plugins.typedrequestInterfaces.imple
|
|
|
21
22
|
export interface IReq_GetLogStream extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetLogStream> {
|
|
22
23
|
method: 'getLogStream';
|
|
23
24
|
request: {
|
|
24
|
-
identity
|
|
25
|
+
identity?: authInterfaces.IIdentity;
|
|
26
|
+
apiToken?: string;
|
|
25
27
|
follow?: boolean;
|
|
26
28
|
filters?: {
|
|
27
29
|
level?: string[];
|
|
@@ -6,7 +6,8 @@ import * as authInterfaces from '../data/auth.js';
|
|
|
6
6
|
export interface IReq_GetRadiusClients extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetRadiusClients> {
|
|
7
7
|
method: 'getRadiusClients';
|
|
8
8
|
request: {
|
|
9
|
-
identity
|
|
9
|
+
identity?: authInterfaces.IIdentity;
|
|
10
|
+
apiToken?: string;
|
|
10
11
|
};
|
|
11
12
|
response: {
|
|
12
13
|
clients: Array<{
|
|
@@ -23,7 +24,8 @@ export interface IReq_GetRadiusClients extends plugins.typedrequestInterfaces.im
|
|
|
23
24
|
export interface IReq_SetRadiusClient extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_SetRadiusClient> {
|
|
24
25
|
method: 'setRadiusClient';
|
|
25
26
|
request: {
|
|
26
|
-
identity
|
|
27
|
+
identity?: authInterfaces.IIdentity;
|
|
28
|
+
apiToken?: string;
|
|
27
29
|
client: {
|
|
28
30
|
name: string;
|
|
29
31
|
ipRange: string;
|
|
@@ -43,7 +45,8 @@ export interface IReq_SetRadiusClient extends plugins.typedrequestInterfaces.imp
|
|
|
43
45
|
export interface IReq_RemoveRadiusClient extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_RemoveRadiusClient> {
|
|
44
46
|
method: 'removeRadiusClient';
|
|
45
47
|
request: {
|
|
46
|
-
identity
|
|
48
|
+
identity?: authInterfaces.IIdentity;
|
|
49
|
+
apiToken?: string;
|
|
47
50
|
name: string;
|
|
48
51
|
};
|
|
49
52
|
response: {
|
|
@@ -57,7 +60,8 @@ export interface IReq_RemoveRadiusClient extends plugins.typedrequestInterfaces.
|
|
|
57
60
|
export interface IReq_GetVlanMappings extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetVlanMappings> {
|
|
58
61
|
method: 'getVlanMappings';
|
|
59
62
|
request: {
|
|
60
|
-
identity
|
|
63
|
+
identity?: authInterfaces.IIdentity;
|
|
64
|
+
apiToken?: string;
|
|
61
65
|
};
|
|
62
66
|
response: {
|
|
63
67
|
mappings: Array<{
|
|
@@ -80,7 +84,8 @@ export interface IReq_GetVlanMappings extends plugins.typedrequestInterfaces.imp
|
|
|
80
84
|
export interface IReq_SetVlanMapping extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_SetVlanMapping> {
|
|
81
85
|
method: 'setVlanMapping';
|
|
82
86
|
request: {
|
|
83
|
-
identity
|
|
87
|
+
identity?: authInterfaces.IIdentity;
|
|
88
|
+
apiToken?: string;
|
|
84
89
|
mapping: {
|
|
85
90
|
mac: string;
|
|
86
91
|
vlan: number;
|
|
@@ -107,7 +112,8 @@ export interface IReq_SetVlanMapping extends plugins.typedrequestInterfaces.impl
|
|
|
107
112
|
export interface IReq_RemoveVlanMapping extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_RemoveVlanMapping> {
|
|
108
113
|
method: 'removeVlanMapping';
|
|
109
114
|
request: {
|
|
110
|
-
identity
|
|
115
|
+
identity?: authInterfaces.IIdentity;
|
|
116
|
+
apiToken?: string;
|
|
111
117
|
mac: string;
|
|
112
118
|
};
|
|
113
119
|
response: {
|
|
@@ -121,7 +127,8 @@ export interface IReq_RemoveVlanMapping extends plugins.typedrequestInterfaces.i
|
|
|
121
127
|
export interface IReq_UpdateVlanConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_UpdateVlanConfig> {
|
|
122
128
|
method: 'updateVlanConfig';
|
|
123
129
|
request: {
|
|
124
|
-
identity
|
|
130
|
+
identity?: authInterfaces.IIdentity;
|
|
131
|
+
apiToken?: string;
|
|
125
132
|
defaultVlan?: number;
|
|
126
133
|
allowUnknownMacs?: boolean;
|
|
127
134
|
};
|
|
@@ -139,7 +146,8 @@ export interface IReq_UpdateVlanConfig extends plugins.typedrequestInterfaces.im
|
|
|
139
146
|
export interface IReq_TestVlanAssignment extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_TestVlanAssignment> {
|
|
140
147
|
method: 'testVlanAssignment';
|
|
141
148
|
request: {
|
|
142
|
-
identity
|
|
149
|
+
identity?: authInterfaces.IIdentity;
|
|
150
|
+
apiToken?: string;
|
|
143
151
|
mac: string;
|
|
144
152
|
};
|
|
145
153
|
response: {
|
|
@@ -159,7 +167,8 @@ export interface IReq_TestVlanAssignment extends plugins.typedrequestInterfaces.
|
|
|
159
167
|
export interface IReq_GetRadiusSessions extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetRadiusSessions> {
|
|
160
168
|
method: 'getRadiusSessions';
|
|
161
169
|
request: {
|
|
162
|
-
identity
|
|
170
|
+
identity?: authInterfaces.IIdentity;
|
|
171
|
+
apiToken?: string;
|
|
163
172
|
filter?: {
|
|
164
173
|
username?: string;
|
|
165
174
|
nasIpAddress?: string;
|
|
@@ -191,7 +200,8 @@ export interface IReq_GetRadiusSessions extends plugins.typedrequestInterfaces.i
|
|
|
191
200
|
export interface IReq_DisconnectRadiusSession extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_DisconnectRadiusSession> {
|
|
192
201
|
method: 'disconnectRadiusSession';
|
|
193
202
|
request: {
|
|
194
|
-
identity
|
|
203
|
+
identity?: authInterfaces.IIdentity;
|
|
204
|
+
apiToken?: string;
|
|
195
205
|
sessionId: string;
|
|
196
206
|
reason?: string;
|
|
197
207
|
};
|
|
@@ -206,7 +216,8 @@ export interface IReq_DisconnectRadiusSession extends plugins.typedrequestInterf
|
|
|
206
216
|
export interface IReq_GetRadiusAccountingSummary extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetRadiusAccountingSummary> {
|
|
207
217
|
method: 'getRadiusAccountingSummary';
|
|
208
218
|
request: {
|
|
209
|
-
identity
|
|
219
|
+
identity?: authInterfaces.IIdentity;
|
|
220
|
+
apiToken?: string;
|
|
210
221
|
startTime: number;
|
|
211
222
|
endTime: number;
|
|
212
223
|
};
|
|
@@ -235,7 +246,8 @@ export interface IReq_GetRadiusAccountingSummary extends plugins.typedrequestInt
|
|
|
235
246
|
export interface IReq_GetRadiusStatistics extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetRadiusStatistics> {
|
|
236
247
|
method: 'getRadiusStatistics';
|
|
237
248
|
request: {
|
|
238
|
-
identity
|
|
249
|
+
identity?: authInterfaces.IIdentity;
|
|
250
|
+
apiToken?: string;
|
|
239
251
|
};
|
|
240
252
|
response: {
|
|
241
253
|
stats: {
|
|
@@ -7,7 +7,8 @@ import type { IRemoteIngress, IRemoteIngressStatus } from '../data/remoteingress
|
|
|
7
7
|
export interface IReq_CreateRemoteIngress extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_CreateRemoteIngress> {
|
|
8
8
|
method: 'createRemoteIngress';
|
|
9
9
|
request: {
|
|
10
|
-
identity
|
|
10
|
+
identity?: authInterfaces.IIdentity;
|
|
11
|
+
apiToken?: string;
|
|
11
12
|
name: string;
|
|
12
13
|
listenPorts?: number[];
|
|
13
14
|
autoDerivePorts?: boolean;
|
|
@@ -24,7 +25,8 @@ export interface IReq_CreateRemoteIngress extends plugins.typedrequestInterfaces
|
|
|
24
25
|
export interface IReq_DeleteRemoteIngress extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_DeleteRemoteIngress> {
|
|
25
26
|
method: 'deleteRemoteIngress';
|
|
26
27
|
request: {
|
|
27
|
-
identity
|
|
28
|
+
identity?: authInterfaces.IIdentity;
|
|
29
|
+
apiToken?: string;
|
|
28
30
|
id: string;
|
|
29
31
|
};
|
|
30
32
|
response: {
|
|
@@ -38,7 +40,8 @@ export interface IReq_DeleteRemoteIngress extends plugins.typedrequestInterfaces
|
|
|
38
40
|
export interface IReq_UpdateRemoteIngress extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_UpdateRemoteIngress> {
|
|
39
41
|
method: 'updateRemoteIngress';
|
|
40
42
|
request: {
|
|
41
|
-
identity
|
|
43
|
+
identity?: authInterfaces.IIdentity;
|
|
44
|
+
apiToken?: string;
|
|
42
45
|
id: string;
|
|
43
46
|
name?: string;
|
|
44
47
|
listenPorts?: number[];
|
|
@@ -57,7 +60,8 @@ export interface IReq_UpdateRemoteIngress extends plugins.typedrequestInterfaces
|
|
|
57
60
|
export interface IReq_RegenerateRemoteIngressSecret extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_RegenerateRemoteIngressSecret> {
|
|
58
61
|
method: 'regenerateRemoteIngressSecret';
|
|
59
62
|
request: {
|
|
60
|
-
identity
|
|
63
|
+
identity?: authInterfaces.IIdentity;
|
|
64
|
+
apiToken?: string;
|
|
61
65
|
id: string;
|
|
62
66
|
};
|
|
63
67
|
response: {
|
|
@@ -71,7 +75,8 @@ export interface IReq_RegenerateRemoteIngressSecret extends plugins.typedrequest
|
|
|
71
75
|
export interface IReq_GetRemoteIngresses extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetRemoteIngresses> {
|
|
72
76
|
method: 'getRemoteIngresses';
|
|
73
77
|
request: {
|
|
74
|
-
identity
|
|
78
|
+
identity?: authInterfaces.IIdentity;
|
|
79
|
+
apiToken?: string;
|
|
75
80
|
};
|
|
76
81
|
response: {
|
|
77
82
|
edges: IRemoteIngress[];
|
|
@@ -83,7 +88,8 @@ export interface IReq_GetRemoteIngresses extends plugins.typedrequestInterfaces.
|
|
|
83
88
|
export interface IReq_GetRemoteIngressStatus extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetRemoteIngressStatus> {
|
|
84
89
|
method: 'getRemoteIngressStatus';
|
|
85
90
|
request: {
|
|
86
|
-
identity
|
|
91
|
+
identity?: authInterfaces.IIdentity;
|
|
92
|
+
apiToken?: string;
|
|
87
93
|
};
|
|
88
94
|
response: {
|
|
89
95
|
statuses: IRemoteIngressStatus[];
|
|
@@ -96,7 +102,8 @@ export interface IReq_GetRemoteIngressStatus extends plugins.typedrequestInterfa
|
|
|
96
102
|
export interface IReq_GetRemoteIngressConnectionToken extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetRemoteIngressConnectionToken> {
|
|
97
103
|
method: 'getRemoteIngressConnectionToken';
|
|
98
104
|
request: {
|
|
99
|
-
identity
|
|
105
|
+
identity?: authInterfaces.IIdentity;
|
|
106
|
+
apiToken?: string;
|
|
100
107
|
edgeId: string;
|
|
101
108
|
hubHost?: string;
|
|
102
109
|
};
|
|
@@ -4,7 +4,8 @@ import type { IIpIntelligenceRecord, ISecurityBlockRule, ISecurityCompiledPolicy
|
|
|
4
4
|
export interface IReq_ListSecurityBlockRules extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ListSecurityBlockRules> {
|
|
5
5
|
method: 'listSecurityBlockRules';
|
|
6
6
|
request: {
|
|
7
|
-
identity
|
|
7
|
+
identity?: authInterfaces.IIdentity;
|
|
8
|
+
apiToken?: string;
|
|
8
9
|
};
|
|
9
10
|
response: {
|
|
10
11
|
rules: ISecurityBlockRule[];
|
|
@@ -13,7 +14,8 @@ export interface IReq_ListSecurityBlockRules extends plugins.typedrequestInterfa
|
|
|
13
14
|
export interface IReq_CreateSecurityBlockRule extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_CreateSecurityBlockRule> {
|
|
14
15
|
method: 'createSecurityBlockRule';
|
|
15
16
|
request: {
|
|
16
|
-
identity
|
|
17
|
+
identity?: authInterfaces.IIdentity;
|
|
18
|
+
apiToken?: string;
|
|
17
19
|
type: TSecurityBlockRuleType;
|
|
18
20
|
value: string;
|
|
19
21
|
matchMode?: TSecurityBlockRuleMatchMode;
|
|
@@ -29,7 +31,8 @@ export interface IReq_CreateSecurityBlockRule extends plugins.typedrequestInterf
|
|
|
29
31
|
export interface IReq_UpdateSecurityBlockRule extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_UpdateSecurityBlockRule> {
|
|
30
32
|
method: 'updateSecurityBlockRule';
|
|
31
33
|
request: {
|
|
32
|
-
identity
|
|
34
|
+
identity?: authInterfaces.IIdentity;
|
|
35
|
+
apiToken?: string;
|
|
33
36
|
id: string;
|
|
34
37
|
value?: string;
|
|
35
38
|
matchMode?: TSecurityBlockRuleMatchMode;
|
|
@@ -45,7 +48,8 @@ export interface IReq_UpdateSecurityBlockRule extends plugins.typedrequestInterf
|
|
|
45
48
|
export interface IReq_DeleteSecurityBlockRule extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_DeleteSecurityBlockRule> {
|
|
46
49
|
method: 'deleteSecurityBlockRule';
|
|
47
50
|
request: {
|
|
48
|
-
identity
|
|
51
|
+
identity?: authInterfaces.IIdentity;
|
|
52
|
+
apiToken?: string;
|
|
49
53
|
id: string;
|
|
50
54
|
};
|
|
51
55
|
response: {
|
|
@@ -56,7 +60,8 @@ export interface IReq_DeleteSecurityBlockRule extends plugins.typedrequestInterf
|
|
|
56
60
|
export interface IReq_ListIpIntelligence extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ListIpIntelligence> {
|
|
57
61
|
method: 'listIpIntelligence';
|
|
58
62
|
request: {
|
|
59
|
-
identity
|
|
63
|
+
identity?: authInterfaces.IIdentity;
|
|
64
|
+
apiToken?: string;
|
|
60
65
|
};
|
|
61
66
|
response: {
|
|
62
67
|
records: IIpIntelligenceRecord[];
|
|
@@ -65,7 +70,8 @@ export interface IReq_ListIpIntelligence extends plugins.typedrequestInterfaces.
|
|
|
65
70
|
export interface IReq_GetCompiledSecurityPolicy extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetCompiledSecurityPolicy> {
|
|
66
71
|
method: 'getCompiledSecurityPolicy';
|
|
67
72
|
request: {
|
|
68
|
-
identity
|
|
73
|
+
identity?: authInterfaces.IIdentity;
|
|
74
|
+
apiToken?: string;
|
|
69
75
|
};
|
|
70
76
|
response: {
|
|
71
77
|
policy: ISecurityCompiledPolicy;
|
|
@@ -74,7 +80,8 @@ export interface IReq_GetCompiledSecurityPolicy extends plugins.typedrequestInte
|
|
|
74
80
|
export interface IReq_ListSecurityPolicyAudit extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ListSecurityPolicyAudit> {
|
|
75
81
|
method: 'listSecurityPolicyAudit';
|
|
76
82
|
request: {
|
|
77
|
-
identity
|
|
83
|
+
identity?: authInterfaces.IIdentity;
|
|
84
|
+
apiToken?: string;
|
|
78
85
|
limit?: number;
|
|
79
86
|
};
|
|
80
87
|
response: {
|
|
@@ -84,7 +91,8 @@ export interface IReq_ListSecurityPolicyAudit extends plugins.typedrequestInterf
|
|
|
84
91
|
export interface IReq_RefreshIpIntelligence extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_RefreshIpIntelligence> {
|
|
85
92
|
method: 'refreshIpIntelligence';
|
|
86
93
|
request: {
|
|
87
|
-
identity
|
|
94
|
+
identity?: authInterfaces.IIdentity;
|
|
95
|
+
apiToken?: string;
|
|
88
96
|
ipAddress: string;
|
|
89
97
|
};
|
|
90
98
|
response: {
|
|
@@ -4,7 +4,8 @@ import * as statsInterfaces from '../data/stats.js';
|
|
|
4
4
|
export interface IReq_GetServerStatistics extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetServerStatistics> {
|
|
5
5
|
method: 'getServerStatistics';
|
|
6
6
|
request: {
|
|
7
|
-
identity
|
|
7
|
+
identity?: authInterfaces.IIdentity;
|
|
8
|
+
apiToken?: string;
|
|
8
9
|
includeHistory?: boolean;
|
|
9
10
|
timeRange?: '1h' | '6h' | '24h' | '7d' | '30d';
|
|
10
11
|
};
|
|
@@ -19,7 +20,8 @@ export interface IReq_GetServerStatistics extends plugins.typedrequestInterfaces
|
|
|
19
20
|
export interface IReq_GetEmailStatistics extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetEmailStatistics> {
|
|
20
21
|
method: 'getEmailStatistics';
|
|
21
22
|
request: {
|
|
22
|
-
identity
|
|
23
|
+
identity?: authInterfaces.IIdentity;
|
|
24
|
+
apiToken?: string;
|
|
23
25
|
timeRange?: '1h' | '6h' | '24h' | '7d' | '30d';
|
|
24
26
|
domain?: string;
|
|
25
27
|
includeDetails?: boolean;
|
|
@@ -34,7 +36,8 @@ export interface IReq_GetEmailStatistics extends plugins.typedrequestInterfaces.
|
|
|
34
36
|
export interface IReq_GetDnsStatistics extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetDnsStatistics> {
|
|
35
37
|
method: 'getDnsStatistics';
|
|
36
38
|
request: {
|
|
37
|
-
identity
|
|
39
|
+
identity?: authInterfaces.IIdentity;
|
|
40
|
+
apiToken?: string;
|
|
38
41
|
timeRange?: '1h' | '6h' | '24h' | '7d' | '30d';
|
|
39
42
|
domain?: string;
|
|
40
43
|
includeQueryTypes?: boolean;
|
|
@@ -49,7 +52,8 @@ export interface IReq_GetDnsStatistics extends plugins.typedrequestInterfaces.im
|
|
|
49
52
|
export interface IReq_GetRateLimitStatus extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetRateLimitStatus> {
|
|
50
53
|
method: 'getRateLimitStatus';
|
|
51
54
|
request: {
|
|
52
|
-
identity
|
|
55
|
+
identity?: authInterfaces.IIdentity;
|
|
56
|
+
apiToken?: string;
|
|
53
57
|
domain?: string;
|
|
54
58
|
ip?: string;
|
|
55
59
|
includeBlocked?: boolean;
|
|
@@ -66,7 +70,8 @@ export interface IReq_GetRateLimitStatus extends plugins.typedrequestInterfaces.
|
|
|
66
70
|
export interface IReq_GetSecurityMetrics extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetSecurityMetrics> {
|
|
67
71
|
method: 'getSecurityMetrics';
|
|
68
72
|
request: {
|
|
69
|
-
identity
|
|
73
|
+
identity?: authInterfaces.IIdentity;
|
|
74
|
+
apiToken?: string;
|
|
70
75
|
timeRange?: '1h' | '6h' | '24h' | '7d' | '30d';
|
|
71
76
|
includeDetails?: boolean;
|
|
72
77
|
};
|
|
@@ -91,7 +96,8 @@ export interface IReq_GetSecurityMetrics extends plugins.typedrequestInterfaces.
|
|
|
91
96
|
export interface IReq_GetActiveConnections extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetActiveConnections> {
|
|
92
97
|
method: 'getActiveConnections';
|
|
93
98
|
request: {
|
|
94
|
-
identity
|
|
99
|
+
identity?: authInterfaces.IIdentity;
|
|
100
|
+
apiToken?: string;
|
|
95
101
|
protocol?: 'smtp' | 'smtps' | 'http' | 'https';
|
|
96
102
|
state?: string;
|
|
97
103
|
};
|
|
@@ -111,7 +117,8 @@ export interface IReq_GetActiveConnections extends plugins.typedrequestInterface
|
|
|
111
117
|
export interface IReq_GetQueueStatus extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetQueueStatus> {
|
|
112
118
|
method: 'getQueueStatus';
|
|
113
119
|
request: {
|
|
114
|
-
identity
|
|
120
|
+
identity?: authInterfaces.IIdentity;
|
|
121
|
+
apiToken?: string;
|
|
115
122
|
queueName?: string;
|
|
116
123
|
};
|
|
117
124
|
response: {
|
|
@@ -122,7 +129,8 @@ export interface IReq_GetQueueStatus extends plugins.typedrequestInterfaces.impl
|
|
|
122
129
|
export interface IReq_GetHealthStatus extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetHealthStatus> {
|
|
123
130
|
method: 'getHealthStatus';
|
|
124
131
|
request: {
|
|
125
|
-
identity
|
|
132
|
+
identity?: authInterfaces.IIdentity;
|
|
133
|
+
apiToken?: string;
|
|
126
134
|
detailed?: boolean;
|
|
127
135
|
};
|
|
128
136
|
response: {
|
|
@@ -132,7 +140,8 @@ export interface IReq_GetHealthStatus extends plugins.typedrequestInterfaces.imp
|
|
|
132
140
|
export interface IReq_GetNetworkStats extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetNetworkStats> {
|
|
133
141
|
method: 'getNetworkStats';
|
|
134
142
|
request: {
|
|
135
|
-
identity
|
|
143
|
+
identity?: authInterfaces.IIdentity;
|
|
144
|
+
apiToken?: string;
|
|
136
145
|
};
|
|
137
146
|
response: {
|
|
138
147
|
connectionsByIP: Array<{
|
|
@@ -1,16 +1,53 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
2
|
import * as authInterfaces from '../data/auth.js';
|
|
3
3
|
import type { IAdminUserProjection } from './admin.js';
|
|
4
|
+
export type TUserManagementRole = 'admin' | 'user';
|
|
4
5
|
/**
|
|
5
|
-
* List all OpsServer users (admin-only
|
|
6
|
+
* List all OpsServer users (admin-only).
|
|
6
7
|
* Deliberately omits password/secret fields from the response.
|
|
7
8
|
*/
|
|
8
9
|
export interface IReq_ListUsers extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ListUsers> {
|
|
9
10
|
method: 'listUsers';
|
|
10
11
|
request: {
|
|
11
|
-
identity
|
|
12
|
+
identity?: authInterfaces.IIdentity;
|
|
13
|
+
apiToken?: string;
|
|
12
14
|
};
|
|
13
15
|
response: {
|
|
14
16
|
users: IAdminUserProjection[];
|
|
15
17
|
};
|
|
16
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Create a persisted OpsServer user account (admin-only).
|
|
21
|
+
*/
|
|
22
|
+
export interface IReq_CreateUser extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_CreateUser> {
|
|
23
|
+
method: 'createUser';
|
|
24
|
+
request: {
|
|
25
|
+
identity?: authInterfaces.IIdentity;
|
|
26
|
+
apiToken?: string;
|
|
27
|
+
email: string;
|
|
28
|
+
name?: string;
|
|
29
|
+
role: TUserManagementRole;
|
|
30
|
+
password: string;
|
|
31
|
+
enableIdpGlobalAuth?: boolean;
|
|
32
|
+
};
|
|
33
|
+
response: {
|
|
34
|
+
success: boolean;
|
|
35
|
+
user?: IAdminUserProjection;
|
|
36
|
+
message?: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Delete a persisted OpsServer user account (admin-only).
|
|
41
|
+
*/
|
|
42
|
+
export interface IReq_DeleteUser extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_DeleteUser> {
|
|
43
|
+
method: 'deleteUser';
|
|
44
|
+
request: {
|
|
45
|
+
identity?: authInterfaces.IIdentity;
|
|
46
|
+
apiToken?: string;
|
|
47
|
+
id: string;
|
|
48
|
+
};
|
|
49
|
+
response: {
|
|
50
|
+
success: boolean;
|
|
51
|
+
message?: string;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -7,7 +7,8 @@ import type { IVpnClient, IVpnServerStatus, IVpnClientTelemetry, IVpnConnectedCl
|
|
|
7
7
|
export interface IReq_GetVpnClients extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetVpnClients> {
|
|
8
8
|
method: 'getVpnClients';
|
|
9
9
|
request: {
|
|
10
|
-
identity
|
|
10
|
+
identity?: authInterfaces.IIdentity;
|
|
11
|
+
apiToken?: string;
|
|
11
12
|
};
|
|
12
13
|
response: {
|
|
13
14
|
clients: IVpnClient[];
|
|
@@ -19,7 +20,8 @@ export interface IReq_GetVpnClients extends plugins.typedrequestInterfaces.imple
|
|
|
19
20
|
export interface IReq_GetVpnStatus extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetVpnStatus> {
|
|
20
21
|
method: 'getVpnStatus';
|
|
21
22
|
request: {
|
|
22
|
-
identity
|
|
23
|
+
identity?: authInterfaces.IIdentity;
|
|
24
|
+
apiToken?: string;
|
|
23
25
|
};
|
|
24
26
|
response: {
|
|
25
27
|
status: IVpnServerStatus;
|
|
@@ -31,7 +33,8 @@ export interface IReq_GetVpnStatus extends plugins.typedrequestInterfaces.implem
|
|
|
31
33
|
export interface IReq_CreateVpnClient extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_CreateVpnClient> {
|
|
32
34
|
method: 'createVpnClient';
|
|
33
35
|
request: {
|
|
34
|
-
identity
|
|
36
|
+
identity?: authInterfaces.IIdentity;
|
|
37
|
+
apiToken?: string;
|
|
35
38
|
clientId: string;
|
|
36
39
|
targetProfileIds?: string[];
|
|
37
40
|
description?: string;
|
|
@@ -57,7 +60,8 @@ export interface IReq_CreateVpnClient extends plugins.typedrequestInterfaces.imp
|
|
|
57
60
|
export interface IReq_UpdateVpnClient extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_UpdateVpnClient> {
|
|
58
61
|
method: 'updateVpnClient';
|
|
59
62
|
request: {
|
|
60
|
-
identity
|
|
63
|
+
identity?: authInterfaces.IIdentity;
|
|
64
|
+
apiToken?: string;
|
|
61
65
|
clientId: string;
|
|
62
66
|
description?: string;
|
|
63
67
|
targetProfileIds?: string[];
|
|
@@ -80,7 +84,8 @@ export interface IReq_UpdateVpnClient extends plugins.typedrequestInterfaces.imp
|
|
|
80
84
|
export interface IReq_GetVpnConnectedClients extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetVpnConnectedClients> {
|
|
81
85
|
method: 'getVpnConnectedClients';
|
|
82
86
|
request: {
|
|
83
|
-
identity
|
|
87
|
+
identity?: authInterfaces.IIdentity;
|
|
88
|
+
apiToken?: string;
|
|
84
89
|
};
|
|
85
90
|
response: {
|
|
86
91
|
connectedClients: IVpnConnectedClient[];
|
|
@@ -92,7 +97,8 @@ export interface IReq_GetVpnConnectedClients extends plugins.typedrequestInterfa
|
|
|
92
97
|
export interface IReq_DeleteVpnClient extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_DeleteVpnClient> {
|
|
93
98
|
method: 'deleteVpnClient';
|
|
94
99
|
request: {
|
|
95
|
-
identity
|
|
100
|
+
identity?: authInterfaces.IIdentity;
|
|
101
|
+
apiToken?: string;
|
|
96
102
|
clientId: string;
|
|
97
103
|
};
|
|
98
104
|
response: {
|
|
@@ -106,7 +112,8 @@ export interface IReq_DeleteVpnClient extends plugins.typedrequestInterfaces.imp
|
|
|
106
112
|
export interface IReq_EnableVpnClient extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_EnableVpnClient> {
|
|
107
113
|
method: 'enableVpnClient';
|
|
108
114
|
request: {
|
|
109
|
-
identity
|
|
115
|
+
identity?: authInterfaces.IIdentity;
|
|
116
|
+
apiToken?: string;
|
|
110
117
|
clientId: string;
|
|
111
118
|
};
|
|
112
119
|
response: {
|
|
@@ -120,7 +127,8 @@ export interface IReq_EnableVpnClient extends plugins.typedrequestInterfaces.imp
|
|
|
120
127
|
export interface IReq_DisableVpnClient extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_DisableVpnClient> {
|
|
121
128
|
method: 'disableVpnClient';
|
|
122
129
|
request: {
|
|
123
|
-
identity
|
|
130
|
+
identity?: authInterfaces.IIdentity;
|
|
131
|
+
apiToken?: string;
|
|
124
132
|
clientId: string;
|
|
125
133
|
};
|
|
126
134
|
response: {
|
|
@@ -134,7 +142,8 @@ export interface IReq_DisableVpnClient extends plugins.typedrequestInterfaces.im
|
|
|
134
142
|
export interface IReq_RotateVpnClientKey extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_RotateVpnClientKey> {
|
|
135
143
|
method: 'rotateVpnClientKey';
|
|
136
144
|
request: {
|
|
137
|
-
identity
|
|
145
|
+
identity?: authInterfaces.IIdentity;
|
|
146
|
+
apiToken?: string;
|
|
138
147
|
clientId: string;
|
|
139
148
|
};
|
|
140
149
|
response: {
|
|
@@ -150,7 +159,8 @@ export interface IReq_RotateVpnClientKey extends plugins.typedrequestInterfaces.
|
|
|
150
159
|
export interface IReq_ExportVpnClientConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ExportVpnClientConfig> {
|
|
151
160
|
method: 'exportVpnClientConfig';
|
|
152
161
|
request: {
|
|
153
|
-
identity
|
|
162
|
+
identity?: authInterfaces.IIdentity;
|
|
163
|
+
apiToken?: string;
|
|
154
164
|
clientId: string;
|
|
155
165
|
format: 'smartvpn' | 'wireguard';
|
|
156
166
|
};
|
|
@@ -166,7 +176,8 @@ export interface IReq_ExportVpnClientConfig extends plugins.typedrequestInterfac
|
|
|
166
176
|
export interface IReq_GetVpnClientTelemetry extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetVpnClientTelemetry> {
|
|
167
177
|
method: 'getVpnClientTelemetry';
|
|
168
178
|
request: {
|
|
169
|
-
identity
|
|
179
|
+
identity?: authInterfaces.IIdentity;
|
|
180
|
+
apiToken?: string;
|
|
170
181
|
clientId: string;
|
|
171
182
|
};
|
|
172
183
|
response: {
|
|
@@ -26,7 +26,8 @@ export interface IReq_GetGatewayClientContext extends plugins.typedrequestInterf
|
|
|
26
26
|
export interface IReq_ListGatewayClients extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ListGatewayClients> {
|
|
27
27
|
method: 'listGatewayClients';
|
|
28
28
|
request: {
|
|
29
|
-
identity
|
|
29
|
+
identity?: authInterfaces.IIdentity;
|
|
30
|
+
apiToken?: string;
|
|
30
31
|
};
|
|
31
32
|
response: {
|
|
32
33
|
gatewayClients: IGatewayClient[];
|
|
@@ -35,7 +36,8 @@ export interface IReq_ListGatewayClients extends plugins.typedrequestInterfaces.
|
|
|
35
36
|
export interface IReq_CreateGatewayClient extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_CreateGatewayClient> {
|
|
36
37
|
method: 'createGatewayClient';
|
|
37
38
|
request: {
|
|
38
|
-
identity
|
|
39
|
+
identity?: authInterfaces.IIdentity;
|
|
40
|
+
apiToken?: string;
|
|
39
41
|
id?: string;
|
|
40
42
|
type: IGatewayClient['type'];
|
|
41
43
|
name: string;
|
|
@@ -53,7 +55,8 @@ export interface IReq_CreateGatewayClient extends plugins.typedrequestInterfaces
|
|
|
53
55
|
export interface IReq_UpdateGatewayClient extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_UpdateGatewayClient> {
|
|
54
56
|
method: 'updateGatewayClient';
|
|
55
57
|
request: {
|
|
56
|
-
identity
|
|
58
|
+
identity?: authInterfaces.IIdentity;
|
|
59
|
+
apiToken?: string;
|
|
57
60
|
id: string;
|
|
58
61
|
name?: string;
|
|
59
62
|
description?: string;
|
|
@@ -71,7 +74,8 @@ export interface IReq_UpdateGatewayClient extends plugins.typedrequestInterfaces
|
|
|
71
74
|
export interface IReq_DeleteGatewayClient extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_DeleteGatewayClient> {
|
|
72
75
|
method: 'deleteGatewayClient';
|
|
73
76
|
request: {
|
|
74
|
-
identity
|
|
77
|
+
identity?: authInterfaces.IIdentity;
|
|
78
|
+
apiToken?: string;
|
|
75
79
|
id: string;
|
|
76
80
|
};
|
|
77
81
|
response: {
|
|
@@ -82,7 +86,8 @@ export interface IReq_DeleteGatewayClient extends plugins.typedrequestInterfaces
|
|
|
82
86
|
export interface IReq_CreateGatewayClientToken extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_CreateGatewayClientToken> {
|
|
83
87
|
method: 'createGatewayClientToken';
|
|
84
88
|
request: {
|
|
85
|
-
identity
|
|
89
|
+
identity?: authInterfaces.IIdentity;
|
|
90
|
+
apiToken?: string;
|
|
86
91
|
gatewayClientId: string;
|
|
87
92
|
name?: string;
|
|
88
93
|
expiresInDays?: number | null;
|
|
@@ -56,6 +56,8 @@ export async function createMigrationRunner(db, targetVersion) {
|
|
|
56
56
|
db: db,
|
|
57
57
|
// Brand-new installs skip all migrations and stamp directly to the current version.
|
|
58
58
|
freshInstallVersion: targetVersion,
|
|
59
|
+
// dcrouter uses the package version as targetVersion; bridge releases without DB changes.
|
|
60
|
+
targetVersionStrategy: 'bridge',
|
|
59
61
|
});
|
|
60
62
|
// Register steps in execution order. Each step's .from() must match the
|
|
61
63
|
// previous step's .to() to form a contiguous chain.
|
|
@@ -116,4 +118,4 @@ export async function createMigrationRunner(db, targetVersion) {
|
|
|
116
118
|
});
|
|
117
119
|
return migration;
|
|
118
120
|
}
|
|
119
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
121
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90c19taWdyYXRpb25zL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQWVILEtBQUssVUFBVSwrQkFBK0IsQ0FBQyxHQUc5QztJQUNDLE1BQU0sVUFBVSxHQUFHLEdBQUcsQ0FBQyxLQUFNLENBQUMsVUFBVSxDQUFDLGtCQUFrQixDQUFDLENBQUM7SUFDN0QsTUFBTSxN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