@serve.zone/interfaces 32.123.0 → 32.125.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/changelog.md +17 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/data/backupmx.d.ts +135 -0
- package/dist_ts/data/backupmx.js +128 -0
- package/dist_ts/data/certificateauthority.d.ts +57 -0
- package/dist_ts/data/certificateauthority.js +69 -0
- package/dist_ts/data/externaldns.d.ts +135 -0
- package/dist_ts/data/externaldns.js +138 -0
- package/dist_ts/data/gateway.d.ts +22 -0
- package/dist_ts/data/gateway.js +1 -1
- package/dist_ts/data/gatewayarearows.d.ts +2 -1
- package/dist_ts/data/gatewayarearows.js +1 -1
- package/dist_ts/data/gatewayareas.d.ts +19 -0
- package/dist_ts/data/gatewayareas.js +1 -1
- package/dist_ts/data/gatewayareas.validation.js +37 -5
- package/dist_ts/data/hetzner.d.ts +177 -0
- package/dist_ts/data/hetzner.js +253 -0
- package/dist_ts/data/index.d.ts +5 -0
- package/dist_ts/data/index.js +6 -1
- package/dist_ts/data/pathrouting.d.ts +170 -0
- package/dist_ts/data/pathrouting.js +227 -0
- package/dist_ts/requests/backupmx.d.ts +209 -0
- package/dist_ts/requests/backupmx.js +2 -0
- package/dist_ts/requests/certificateauthority.d.ts +118 -0
- package/dist_ts/requests/certificateauthority.js +2 -0
- package/dist_ts/requests/externaldns.d.ts +213 -0
- package/dist_ts/requests/externaldns.js +2 -0
- package/dist_ts/requests/hetzner.d.ts +216 -0
- package/dist_ts/requests/hetzner.js +2 -0
- package/dist_ts/requests/index.d.ts +6 -1
- package/dist_ts/requests/index.js +7 -2
- package/dist_ts/requests/pathrouting.d.ts +107 -0
- package/dist_ts/requests/pathrouting.js +2 -0
- package/package.json +47 -8
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/data/backupmx.ts +252 -0
- package/ts/data/certificateauthority.ts +115 -0
- package/ts/data/externaldns.ts +273 -0
- package/ts/data/gateway.ts +22 -0
- package/ts/data/gatewayarearows.ts +2 -0
- package/ts/data/gatewayareas.ts +20 -0
- package/ts/data/gatewayareas.validation.ts +40 -4
- package/ts/data/hetzner.ts +419 -0
- package/ts/data/index.ts +5 -0
- package/ts/data/pathrouting.ts +410 -0
- package/ts/requests/backupmx.ts +275 -0
- package/ts/requests/certificateauthority.ts +139 -0
- package/ts/requests/externaldns.ts +263 -0
- package/ts/requests/hetzner.ts +276 -0
- package/ts/requests/index.ts +10 -0
- package/ts/requests/pathrouting.ts +134 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import type { ITypedRequest, implementsTR } from '@api.global/typedrequest-interfaces';
|
|
2
|
+
import type {
|
|
3
|
+
IGatewayPathProbeRequest,
|
|
4
|
+
IGatewayPathProbeResult,
|
|
5
|
+
IGatewayPathTelemetryReport,
|
|
6
|
+
IServicePathDecision,
|
|
7
|
+
IServicePathPolicy,
|
|
8
|
+
TPathRoutingRefusalCode,
|
|
9
|
+
TServiceRoutingProfile,
|
|
10
|
+
} from '../data/pathrouting.js';
|
|
11
|
+
import type { IIdentityCredential } from '../data/user.js';
|
|
12
|
+
|
|
13
|
+
export type TPathRoutingResult<TData> =
|
|
14
|
+
| ({ ok: true } & TData)
|
|
15
|
+
| { ok: false; code: TPathRoutingRefusalCode; message: string };
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Gateway-to-controller telemetry push over the authenticated gateway TypedSocket.
|
|
19
|
+
* Carries Hop 1 (RemoteIngress <-> dcrouter) and Hop 2 (dcrouter <-> backend) measurements.
|
|
20
|
+
*/
|
|
21
|
+
export interface IReq_Gateway_Cloudly_PushPathTelemetry extends implementsTR<
|
|
22
|
+
ITypedRequest,
|
|
23
|
+
IReq_Gateway_Cloudly_PushPathTelemetry
|
|
24
|
+
> {
|
|
25
|
+
method: 'pushGatewayPathTelemetry';
|
|
26
|
+
request: {
|
|
27
|
+
report: IGatewayPathTelemetryReport;
|
|
28
|
+
};
|
|
29
|
+
response: {
|
|
30
|
+
accepted: boolean;
|
|
31
|
+
reevaluatedServices: number;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Controller-to-gateway on-demand bounded path probe over the authenticated gateway TypedSocket.
|
|
37
|
+
*/
|
|
38
|
+
export interface IReq_Cloudly_Gateway_RunPathProbe extends implementsTR<
|
|
39
|
+
ITypedRequest,
|
|
40
|
+
IReq_Cloudly_Gateway_RunPathProbe
|
|
41
|
+
> {
|
|
42
|
+
method: 'runGatewayPathProbe';
|
|
43
|
+
request: IGatewayPathProbeRequest;
|
|
44
|
+
response: IGatewayPathProbeResult;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface IReq_Admin_Cloudly_UpsertServicePathPolicy extends implementsTR<
|
|
48
|
+
ITypedRequest,
|
|
49
|
+
IReq_Admin_Cloudly_UpsertServicePathPolicy
|
|
50
|
+
> {
|
|
51
|
+
method: 'upsertServicePathPolicy';
|
|
52
|
+
request: {
|
|
53
|
+
identity: IIdentityCredential;
|
|
54
|
+
serviceId: string;
|
|
55
|
+
hostname: string;
|
|
56
|
+
targetKey: string;
|
|
57
|
+
clusterId?: string | null;
|
|
58
|
+
enabled?: boolean;
|
|
59
|
+
profile?: TServiceRoutingProfile;
|
|
60
|
+
pinnedGatewayId?: string | null;
|
|
61
|
+
pinnedEdgeId?: string | null;
|
|
62
|
+
hysteresisMargin?: number;
|
|
63
|
+
minDwellMs?: number;
|
|
64
|
+
ttlSeconds?: number;
|
|
65
|
+
proxied?: boolean;
|
|
66
|
+
};
|
|
67
|
+
response: TPathRoutingResult<{ policy: IServicePathPolicy }>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface IReq_Admin_Cloudly_ListServicePathPolicies extends implementsTR<
|
|
71
|
+
ITypedRequest,
|
|
72
|
+
IReq_Admin_Cloudly_ListServicePathPolicies
|
|
73
|
+
> {
|
|
74
|
+
method: 'listServicePathPolicies';
|
|
75
|
+
request: {
|
|
76
|
+
identity: IIdentityCredential;
|
|
77
|
+
serviceId?: string;
|
|
78
|
+
};
|
|
79
|
+
response: TPathRoutingResult<{ policies: IServicePathPolicy[] }>;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface IReq_Admin_Cloudly_DeleteServicePathPolicy extends implementsTR<
|
|
83
|
+
ITypedRequest,
|
|
84
|
+
IReq_Admin_Cloudly_DeleteServicePathPolicy
|
|
85
|
+
> {
|
|
86
|
+
method: 'deleteServicePathPolicy';
|
|
87
|
+
request: {
|
|
88
|
+
identity: IIdentityCredential;
|
|
89
|
+
serviceId: string;
|
|
90
|
+
};
|
|
91
|
+
response: TPathRoutingResult<{ deleted: true }>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface IReq_Admin_Cloudly_ListServicePathDecisions extends implementsTR<
|
|
95
|
+
ITypedRequest,
|
|
96
|
+
IReq_Admin_Cloudly_ListServicePathDecisions
|
|
97
|
+
> {
|
|
98
|
+
method: 'listServicePathDecisions';
|
|
99
|
+
request: {
|
|
100
|
+
identity: IIdentityCredential;
|
|
101
|
+
serviceId?: string;
|
|
102
|
+
};
|
|
103
|
+
response: TPathRoutingResult<{ decisions: IServicePathDecision[] }>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface IReq_Admin_Cloudly_EvaluateServicePaths extends implementsTR<
|
|
107
|
+
ITypedRequest,
|
|
108
|
+
IReq_Admin_Cloudly_EvaluateServicePaths
|
|
109
|
+
> {
|
|
110
|
+
method: 'evaluateServicePaths';
|
|
111
|
+
request: {
|
|
112
|
+
identity: IIdentityCredential;
|
|
113
|
+
serviceId?: string;
|
|
114
|
+
/** When true, immediately reconciles winning edge IPs into CloudlyExternalDnsManager. */
|
|
115
|
+
applyDns?: boolean;
|
|
116
|
+
};
|
|
117
|
+
response: TPathRoutingResult<{
|
|
118
|
+
decisions: IServicePathDecision[];
|
|
119
|
+
dnsUpdatedCount: number;
|
|
120
|
+
}>;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface IReq_Admin_Cloudly_TriggerGatewayPathProbe extends implementsTR<
|
|
124
|
+
ITypedRequest,
|
|
125
|
+
IReq_Admin_Cloudly_TriggerGatewayPathProbe
|
|
126
|
+
> {
|
|
127
|
+
method: 'triggerGatewayPathProbe';
|
|
128
|
+
request: {
|
|
129
|
+
identity: IIdentityCredential;
|
|
130
|
+
gatewayId: string;
|
|
131
|
+
probe: IGatewayPathProbeRequest;
|
|
132
|
+
};
|
|
133
|
+
response: TPathRoutingResult<{ result: IGatewayPathProbeResult }>;
|
|
134
|
+
}
|