@serve.zone/dcrouter 14.3.1 → 14.4.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/deno.json +1 -1
- package/dist_serve/bundle.js +121 -121
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts_interfaces/data/workhoster.d.ts +14 -79
- package/dist_ts_interfaces/requests/certificate.d.ts +5 -41
- package/dist_ts_interfaces/requests/certificate.js +1 -1
- package/dist_ts_interfaces/requests/workhoster.d.ts +12 -56
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/appstate.d.ts +1 -9
- package/package.json +2 -2
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@serve.zone/dcrouter',
|
|
6
|
-
version: '14.
|
|
6
|
+
version: '14.4.0',
|
|
7
7
|
description: 'A multifaceted routing service handling mail and SMS delivery functions.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxzQkFBc0I7SUFDNUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLDBFQUEwRTtDQUN4RixDQUFBIn0=
|
|
@@ -1,48 +1,9 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
write: boolean;
|
|
8
|
-
idempotentSync: boolean;
|
|
9
|
-
};
|
|
10
|
-
domains: {
|
|
11
|
-
read: boolean;
|
|
12
|
-
write: boolean;
|
|
13
|
-
};
|
|
14
|
-
certificates: {
|
|
15
|
-
read: boolean;
|
|
16
|
-
export: boolean;
|
|
17
|
-
forceRenew: boolean;
|
|
18
|
-
};
|
|
19
|
-
email: {
|
|
20
|
-
domains: boolean;
|
|
21
|
-
inbound: boolean;
|
|
22
|
-
outbound: boolean;
|
|
23
|
-
};
|
|
24
|
-
remoteIngress: {
|
|
25
|
-
enabled: boolean;
|
|
26
|
-
};
|
|
27
|
-
dns: {
|
|
28
|
-
authoritative: boolean;
|
|
29
|
-
providerManaged: boolean;
|
|
30
|
-
};
|
|
31
|
-
http3: {
|
|
32
|
-
enabled: boolean;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export interface IGatewayClientContext {
|
|
36
|
-
role: IApiTokenPolicy['role'];
|
|
37
|
-
scopes: TApiTokenScope[];
|
|
38
|
-
gatewayClient?: {
|
|
39
|
-
type: TGatewayClientType;
|
|
40
|
-
id: string;
|
|
41
|
-
};
|
|
42
|
-
hostnamePatterns: string[];
|
|
43
|
-
allowedRouteTargets: NonNullable<IApiTokenPolicy['allowedRouteTargets']>;
|
|
44
|
-
capabilities: NonNullable<IApiTokenPolicy['capabilities']>;
|
|
45
|
-
}
|
|
1
|
+
import type * as servezoneInterfaces from '@serve.zone/interfaces';
|
|
2
|
+
import type { IApiTokenPolicy, TGatewayClientType } from './route-management.js';
|
|
3
|
+
/** @deprecated Moved to @serve.zone/interfaces — use data.IGatewayCapabilities. */
|
|
4
|
+
export type IGatewayCapabilities = servezoneInterfaces.data.IGatewayCapabilities;
|
|
5
|
+
/** @deprecated Moved to @serve.zone/interfaces — use data.IGatewayClientContext. */
|
|
6
|
+
export type IGatewayClientContext = servezoneInterfaces.data.IGatewayClientContext;
|
|
46
7
|
export interface IGatewayClient {
|
|
47
8
|
id: string;
|
|
48
9
|
type: TGatewayClientType;
|
|
@@ -57,24 +18,12 @@ export interface IGatewayClient {
|
|
|
57
18
|
updatedAt: number;
|
|
58
19
|
createdBy: string;
|
|
59
20
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
canCreateSubdomains: boolean;
|
|
63
|
-
canManageDnsRecords: boolean;
|
|
64
|
-
canIssueCertificates: boolean;
|
|
65
|
-
canHostEmail: boolean;
|
|
66
|
-
};
|
|
67
|
-
serviceCount?: number;
|
|
68
|
-
managePath?: string;
|
|
69
|
-
}
|
|
21
|
+
/** @deprecated Moved to @serve.zone/interfaces — use data.IGatewayDomain. */
|
|
22
|
+
export type IGatewayClientDomain = servezoneInterfaces.data.IGatewayDomain;
|
|
70
23
|
/** @deprecated Use IGatewayClientDomain. */
|
|
71
24
|
export type IWorkHosterDomain = IGatewayClientDomain;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
gatewayClientId?: string;
|
|
75
|
-
appId: string;
|
|
76
|
-
hostname: string;
|
|
77
|
-
}
|
|
25
|
+
/** @deprecated Moved to @serve.zone/interfaces — use data.IGatewayClientOwnership. */
|
|
26
|
+
export type IGatewayClientOwnership = servezoneInterfaces.data.IGatewayClientOwnership;
|
|
78
27
|
/** @deprecated Use IGatewayClientOwnership. */
|
|
79
28
|
export interface IWorkAppRouteOwnership {
|
|
80
29
|
workHosterType: TGatewayClientType;
|
|
@@ -82,26 +31,12 @@ export interface IWorkAppRouteOwnership {
|
|
|
82
31
|
workAppId: string;
|
|
83
32
|
hostname: string;
|
|
84
33
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
action?: 'created' | 'updated' | 'deleted' | 'unchanged';
|
|
88
|
-
routeId?: string;
|
|
89
|
-
message?: string;
|
|
90
|
-
}
|
|
34
|
+
/** @deprecated Moved to @serve.zone/interfaces — use data.IGatewayRouteSyncResult. */
|
|
35
|
+
export type IGatewayClientRouteSyncResult = servezoneInterfaces.data.IGatewayRouteSyncResult;
|
|
91
36
|
/** @deprecated Use IGatewayClientRouteSyncResult. */
|
|
92
37
|
export type IWorkAppRouteSyncResult = IGatewayClientRouteSyncResult;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
domainName?: string;
|
|
96
|
-
status: 'active' | 'missing';
|
|
97
|
-
gatewayClientType: TGatewayClientType;
|
|
98
|
-
gatewayClientId: string;
|
|
99
|
-
appId: string;
|
|
100
|
-
hostname: string;
|
|
101
|
-
routeId?: string;
|
|
102
|
-
serviceName?: string;
|
|
103
|
-
managePath?: string;
|
|
104
|
-
}
|
|
38
|
+
/** @deprecated Moved to @serve.zone/interfaces — use data.IGatewayDnsRecord. */
|
|
39
|
+
export type IGatewayClientDnsRecord = servezoneInterfaces.data.IGatewayDnsRecord;
|
|
105
40
|
export interface IGatewayClientMailOwnership {
|
|
106
41
|
gatewayClientType: TGatewayClientType;
|
|
107
42
|
gatewayClientId: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
|
+
import type * as servezoneInterfaces from '@serve.zone/interfaces';
|
|
2
3
|
import * as authInterfaces from '../data/auth.js';
|
|
3
4
|
export type TCertificateStatus = 'valid' | 'expiring' | 'expired' | 'provisioning' | 'failed' | 'unknown';
|
|
4
5
|
export type TCertificateSource = 'acme' | 'provision-function' | 'static' | 'none';
|
|
@@ -62,44 +63,7 @@ export interface IReq_DeleteCertificate extends plugins.typedrequestInterfaces.i
|
|
|
62
63
|
message?: string;
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
apiToken?: string;
|
|
70
|
-
domain: string;
|
|
71
|
-
};
|
|
72
|
-
response: {
|
|
73
|
-
success: boolean;
|
|
74
|
-
cert?: {
|
|
75
|
-
id: string;
|
|
76
|
-
domainName: string;
|
|
77
|
-
created: number;
|
|
78
|
-
validUntil: number;
|
|
79
|
-
privateKey: string;
|
|
80
|
-
publicKey: string;
|
|
81
|
-
csr: string;
|
|
82
|
-
};
|
|
83
|
-
message?: string;
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
export interface IReq_ImportCertificate extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ImportCertificate> {
|
|
87
|
-
method: 'importCertificate';
|
|
88
|
-
request: {
|
|
89
|
-
identity?: authInterfaces.IIdentity;
|
|
90
|
-
apiToken?: string;
|
|
91
|
-
cert: {
|
|
92
|
-
id: string;
|
|
93
|
-
domainName: string;
|
|
94
|
-
created: number;
|
|
95
|
-
validUntil: number;
|
|
96
|
-
privateKey: string;
|
|
97
|
-
publicKey: string;
|
|
98
|
-
csr: string;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
response: {
|
|
102
|
-
success: boolean;
|
|
103
|
-
message?: string;
|
|
104
|
-
};
|
|
105
|
-
}
|
|
66
|
+
/** @deprecated Moved to @serve.zone/interfaces — use requests.gateway.IReq_ExportCertificate. */
|
|
67
|
+
export type IReq_ExportCertificate = servezoneInterfaces.requests.gateway.IReq_ExportCertificate;
|
|
68
|
+
/** @deprecated Moved to @serve.zone/interfaces — use requests.gateway.IReq_ImportCertificate. */
|
|
69
|
+
export type IReq_ImportCertificate = servezoneInterfaces.requests.gateway.IReq_ImportCertificate;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
2
|
import * as authInterfaces from '../data/auth.js';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VydGlmaWNhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c19pbnRlcmZhY2VzL3JlcXVlc3RzL2NlcnRpZmljYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBRXpDLE9BQU8sS0FBSyxjQUFjLE1BQU0saUJBQWlCLENBQUMifQ==
|
|
@@ -1,28 +1,18 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
|
+
import type * as servezoneInterfaces from '@serve.zone/interfaces';
|
|
2
3
|
import type * as authInterfaces from '../data/auth.js';
|
|
3
|
-
import type {
|
|
4
|
+
import type { IGatewayClient, IWorkAppMailIdentity, IWorkAppMailIdentitySyncResult, IWorkAppMailInboundRoute, IWorkAppMailOwnership, IWorkAppRouteOwnership, IWorkAppRouteSyncResult, IWorkHosterDomain } from '../data/workhoster.js';
|
|
4
5
|
import type { IDcRouterRouteConfig } from '../data/remoteingress.js';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export interface IReq_GetGatewayClientContext extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetGatewayClientContext> {
|
|
16
|
-
method: 'getGatewayClientContext';
|
|
17
|
-
request: {
|
|
18
|
-
identity?: authInterfaces.IIdentity;
|
|
19
|
-
apiToken?: string;
|
|
20
|
-
};
|
|
21
|
-
response: {
|
|
22
|
-
context: IGatewayClientContext;
|
|
23
|
-
capabilities: IGatewayCapabilities;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
6
|
+
/** @deprecated Moved to @serve.zone/interfaces — use requests.gateway.IReq_GetGatewayCapabilities. */
|
|
7
|
+
export type IReq_GetGatewayCapabilities = servezoneInterfaces.requests.gateway.IReq_GetGatewayCapabilities;
|
|
8
|
+
/** @deprecated Moved to @serve.zone/interfaces — use requests.gateway.IReq_GetGatewayClientContext. */
|
|
9
|
+
export type IReq_GetGatewayClientContext = servezoneInterfaces.requests.gateway.IReq_GetGatewayClientContext;
|
|
10
|
+
/** @deprecated Moved to @serve.zone/interfaces — use requests.gateway.IReq_GetGatewayClientDomains. */
|
|
11
|
+
export type IReq_GetGatewayClientDomains = servezoneInterfaces.requests.gateway.IReq_GetGatewayClientDomains;
|
|
12
|
+
/** @deprecated Moved to @serve.zone/interfaces — use requests.gateway.IReq_GetGatewayClientDnsRecords. */
|
|
13
|
+
export type IReq_GetGatewayClientDnsRecords = servezoneInterfaces.requests.gateway.IReq_GetGatewayClientDnsRecords;
|
|
14
|
+
/** @deprecated Moved to @serve.zone/interfaces — use requests.gateway.IReq_SyncGatewayClientRoute. */
|
|
15
|
+
export type IReq_SyncGatewayClientRoute = servezoneInterfaces.requests.gateway.IReq_SyncGatewayClientRoute;
|
|
26
16
|
export interface IReq_ListGatewayClients extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ListGatewayClients> {
|
|
27
17
|
method: 'listGatewayClients';
|
|
28
18
|
request: {
|
|
@@ -109,28 +99,6 @@ export interface IReq_GetWorkHosterDomains extends plugins.typedrequestInterface
|
|
|
109
99
|
domains: IWorkHosterDomain[];
|
|
110
100
|
};
|
|
111
101
|
}
|
|
112
|
-
export interface IReq_GetGatewayClientDomains extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetGatewayClientDomains> {
|
|
113
|
-
method: 'getGatewayClientDomains';
|
|
114
|
-
request: {
|
|
115
|
-
identity?: authInterfaces.IIdentity;
|
|
116
|
-
apiToken?: string;
|
|
117
|
-
gatewayClientId?: string;
|
|
118
|
-
};
|
|
119
|
-
response: {
|
|
120
|
-
domains: IGatewayClientDomain[];
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
export interface IReq_GetGatewayClientDnsRecords extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetGatewayClientDnsRecords> {
|
|
124
|
-
method: 'getGatewayClientDnsRecords';
|
|
125
|
-
request: {
|
|
126
|
-
identity?: authInterfaces.IIdentity;
|
|
127
|
-
apiToken?: string;
|
|
128
|
-
gatewayClientId?: string;
|
|
129
|
-
};
|
|
130
|
-
response: {
|
|
131
|
-
records: IGatewayClientDnsRecord[];
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
102
|
export interface IReq_SyncWorkAppRoute extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_SyncWorkAppRoute> {
|
|
135
103
|
method: 'syncWorkAppRoute';
|
|
136
104
|
request: {
|
|
@@ -143,18 +111,6 @@ export interface IReq_SyncWorkAppRoute extends plugins.typedrequestInterfaces.im
|
|
|
143
111
|
};
|
|
144
112
|
response: IWorkAppRouteSyncResult;
|
|
145
113
|
}
|
|
146
|
-
export interface IReq_SyncGatewayClientRoute extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_SyncGatewayClientRoute> {
|
|
147
|
-
method: 'syncGatewayClientRoute';
|
|
148
|
-
request: {
|
|
149
|
-
identity?: authInterfaces.IIdentity;
|
|
150
|
-
apiToken?: string;
|
|
151
|
-
ownership: IGatewayClientOwnership;
|
|
152
|
-
route?: IDcRouterRouteConfig;
|
|
153
|
-
enabled?: boolean;
|
|
154
|
-
delete?: boolean;
|
|
155
|
-
};
|
|
156
|
-
response: IGatewayClientRouteSyncResult;
|
|
157
|
-
}
|
|
158
114
|
export interface IReq_GetWorkAppMailIdentities extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetWorkAppMailIdentities> {
|
|
159
115
|
method: 'getWorkAppMailIdentities';
|
|
160
116
|
request: {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@serve.zone/dcrouter',
|
|
6
|
-
version: '14.
|
|
6
|
+
version: '14.4.0',
|
|
7
7
|
description: 'A multifaceted routing service handling mail and SMS delivery functions.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHNfd2ViLzAwX2NvbW1pdGluZm9fZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRztJQUN4QixJQUFJLEVBQUUsc0JBQXNCO0lBQzVCLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLFdBQVcsRUFBRSwwRUFBMEU7Q0FDeEYsQ0FBQSJ9
|
|
@@ -228,15 +228,7 @@ export declare const importCertificateAction: plugins.deesElement.domtools.plugi
|
|
|
228
228
|
}>;
|
|
229
229
|
export declare function fetchCertificateExport(domain: string): Promise<{
|
|
230
230
|
success: boolean;
|
|
231
|
-
cert?:
|
|
232
|
-
id: string;
|
|
233
|
-
domainName: string;
|
|
234
|
-
created: number;
|
|
235
|
-
validUntil: number;
|
|
236
|
-
privateKey: string;
|
|
237
|
-
publicKey: string;
|
|
238
|
-
csr: string;
|
|
239
|
-
};
|
|
231
|
+
cert?: import("@tsclass/tsclass/dist_ts/network/cert.js").ICert;
|
|
240
232
|
message?: string;
|
|
241
233
|
}>;
|
|
242
234
|
export declare function fetchConnectionToken(edgeId: string): Promise<{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serve.zone/dcrouter",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.4.0",
|
|
5
5
|
"description": "A multifaceted routing service handling mail and SMS delivery functions.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@push.rocks/smartvpn": "1.20.0",
|
|
61
61
|
"@push.rocks/taskbuffer": "^8.0.2",
|
|
62
62
|
"@serve.zone/catalog": "^2.14.0",
|
|
63
|
-
"@serve.zone/interfaces": "^
|
|
63
|
+
"@serve.zone/interfaces": "^7.4.0",
|
|
64
64
|
"@serve.zone/remoteingress": "^4.23.0",
|
|
65
65
|
"@tsclass/tsclass": "^9.5.1",
|
|
66
66
|
"@types/qrcode": "^1.5.6",
|
package/ts/00_commitinfo_data.ts
CHANGED