@serve.zone/interfaces 30.11.0 → 30.13.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 +18 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/data/coremail.d.ts +67 -0
- package/dist_ts/data/coremail.js +1 -1
- package/dist_ts/data/coremail.runtime.d.ts +19 -1
- package/dist_ts/data/coremail.runtime.js +191 -4
- package/dist_ts/data/index.d.ts +1 -0
- package/dist_ts/data/index.js +2 -1
- package/dist_ts/data/mail.d.ts +17 -4
- package/dist_ts/data/networkcredential.d.ts +32 -0
- package/dist_ts/data/networkcredential.js +66 -0
- package/dist_ts/requests/coremail.d.ts +44 -1
- package/dist_ts/requests/mail.d.ts +50 -0
- package/dist_ts/requests/runtimesession.d.ts +7 -0
- package/package.json +1 -1
- package/readme.md +60 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/data/coremail.runtime.ts +278 -2
- package/ts/data/coremail.ts +72 -0
- package/ts/data/index.ts +1 -0
- package/ts/data/mail.ts +36 -4
- package/ts/data/networkcredential.ts +88 -0
- package/ts/requests/coremail.ts +48 -0
- package/ts/requests/mail.ts +62 -0
- package/ts/requests/runtimesession.ts +10 -0
package/ts/requests/coremail.ts
CHANGED
|
@@ -10,6 +10,7 @@ import type {
|
|
|
10
10
|
ICoreMailRecipientResolution,
|
|
11
11
|
ICoreMailReconciliationStatus,
|
|
12
12
|
ICoreMailReplicaIdentity,
|
|
13
|
+
ICoreMailServiceMailStatistics,
|
|
13
14
|
ICoreMailSubmission,
|
|
14
15
|
ICoreMailUploadGrant,
|
|
15
16
|
TCoreMailInboundAckOutcome,
|
|
@@ -237,6 +238,33 @@ export interface IReq_CoreMailGetReconciliationStatus extends plugins.typedreque
|
|
|
237
238
|
};
|
|
238
239
|
}
|
|
239
240
|
|
|
241
|
+
/**
|
|
242
|
+
* Control-session read of per-service mail counters. Authority comes from the
|
|
243
|
+
* authenticated control session; the request carries no tenant or binding
|
|
244
|
+
* authority of its own.
|
|
245
|
+
*/
|
|
246
|
+
export interface IReq_CoreMailGetServiceMailStatistics extends plugins.typedrequestInterfaces.implementsTR<
|
|
247
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
248
|
+
IReq_CoreMailGetServiceMailStatistics
|
|
249
|
+
> {
|
|
250
|
+
method: 'coreMailGetServiceMailStatistics';
|
|
251
|
+
request: {
|
|
252
|
+
/** Inclusive first UTC calendar day, `YYYY-MM-DD`. */
|
|
253
|
+
fromDayUtc: string;
|
|
254
|
+
/** Inclusive last UTC calendar day, `YYYY-MM-DD`. */
|
|
255
|
+
toDayUtc: string;
|
|
256
|
+
/** Optional service filter. Omitted means every service known to this CoreMail. */
|
|
257
|
+
serviceIds?: string[];
|
|
258
|
+
/** Opaque CoreMail-owned composite cursor. */
|
|
259
|
+
cursor?: string;
|
|
260
|
+
limit: number;
|
|
261
|
+
};
|
|
262
|
+
response: {
|
|
263
|
+
statistics: ICoreMailServiceMailStatistics[];
|
|
264
|
+
nextCursor?: string;
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
|
|
240
268
|
export interface IReq_CoreMailGatewayAuthenticate extends plugins.typedrequestInterfaces.implementsTR<
|
|
241
269
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
242
270
|
IReq_CoreMailGatewayAuthenticate
|
|
@@ -256,6 +284,13 @@ export interface IReq_CoreMailGatewayAuthenticate extends plugins.typedrequestIn
|
|
|
256
284
|
};
|
|
257
285
|
}
|
|
258
286
|
|
|
287
|
+
/**
|
|
288
|
+
* CoreMail binds every issued routing handle to a digest of the exact
|
|
289
|
+
* normalized `envelope` and `source` sent here. The following
|
|
290
|
+
* `coreMailGatewayPrepareInboundHandoff` call must therefore resend
|
|
291
|
+
* byte-identical values: the full `rcptTo` set in the same order, the same
|
|
292
|
+
* `mailFrom`, and the same connection source fields.
|
|
293
|
+
*/
|
|
259
294
|
export interface IReq_CoreMailGatewayResolveRecipients extends plugins.typedrequestInterfaces.implementsTR<
|
|
260
295
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
261
296
|
IReq_CoreMailGatewayResolveRecipients
|
|
@@ -271,6 +306,13 @@ export interface IReq_CoreMailGatewayResolveRecipients extends plugins.typedrequ
|
|
|
271
306
|
};
|
|
272
307
|
}
|
|
273
308
|
|
|
309
|
+
/**
|
|
310
|
+
* The handoff is validated against the routing handles issued by
|
|
311
|
+
* `coreMailGatewayResolveRecipients`. `message.envelope` and `source` must be
|
|
312
|
+
* byte-identical to the resolve-time values, including the full `rcptTo` set in
|
|
313
|
+
* the same order, because CoreMail recomputes the envelope digest the handles
|
|
314
|
+
* are bound to.
|
|
315
|
+
*/
|
|
274
316
|
export interface IReq_CoreMailGatewayPrepareInboundHandoff extends plugins.typedrequestInterfaces.implementsTR<
|
|
275
317
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
276
318
|
IReq_CoreMailGatewayPrepareInboundHandoff
|
|
@@ -343,6 +385,12 @@ export interface IReq_CoreMailGatewayCompleteOutboundHandoff extends plugins.typ
|
|
|
343
385
|
};
|
|
344
386
|
}
|
|
345
387
|
|
|
388
|
+
/**
|
|
389
|
+
* Status polling for one accepted transport message. `status.updatedAt` must be
|
|
390
|
+
* monotonic per `transportMessageId`. A `transportMessageId` that is
|
|
391
|
+
* permanently unknown to the gateway must be answered with a terminal `failed`
|
|
392
|
+
* status rather than an error, because CoreMail retries errors indefinitely.
|
|
393
|
+
*/
|
|
346
394
|
export interface IReq_CoreMailGatewayGetOutboundStatus extends plugins.typedrequestInterfaces.implementsTR<
|
|
347
395
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
348
396
|
IReq_CoreMailGatewayGetOutboundStatus
|
package/ts/requests/mail.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
|
+
import type { ICoreMailGatewayPeerDesiredState } from '../data/coremail.js';
|
|
2
3
|
import type { IIdentity } from '../data/user.js';
|
|
3
4
|
import type {
|
|
4
5
|
IMailAddressBinding,
|
|
@@ -144,6 +145,67 @@ export interface IReq_DeleteMailAddressBinding extends plugins.typedrequestInter
|
|
|
144
145
|
};
|
|
145
146
|
}
|
|
146
147
|
|
|
148
|
+
/**
|
|
149
|
+
* dcrouter-owned CoreMail gateway peer state.
|
|
150
|
+
*
|
|
151
|
+
* `peer.transferOrigin` must equal the `gateway.coreMailTransferOrigin` carried
|
|
152
|
+
* in that CoreMail service's own desired state. The producer (Cloudly or
|
|
153
|
+
* Onebox) is the single owner of that string: dcrouter never infers it from a
|
|
154
|
+
* socket, Host header, TypedSocket tag, or peer input.
|
|
155
|
+
*/
|
|
156
|
+
export interface IReq_ListCoreMailGatewayPeers extends plugins.typedrequestInterfaces.implementsTR<
|
|
157
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
158
|
+
IReq_ListCoreMailGatewayPeers
|
|
159
|
+
> {
|
|
160
|
+
method: 'listCoreMailGatewayPeers';
|
|
161
|
+
request: {
|
|
162
|
+
auth: IMailControlRequestAuth;
|
|
163
|
+
owner: IMailResourceOwner;
|
|
164
|
+
};
|
|
165
|
+
response: {
|
|
166
|
+
peers: ICoreMailGatewayPeerDesiredState[];
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Creates or replaces one CoreMail gateway peer. On success the accepted peer is
|
|
172
|
+
* returned in its stored form so the producer can compare the exact applied
|
|
173
|
+
* state. `owner` is required (not partial) because a peer is producer-owned
|
|
174
|
+
* provisioning state, never a filtered listing.
|
|
175
|
+
*/
|
|
176
|
+
export interface IReq_SyncCoreMailGatewayPeer extends plugins.typedrequestInterfaces.implementsTR<
|
|
177
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
178
|
+
IReq_SyncCoreMailGatewayPeer
|
|
179
|
+
> {
|
|
180
|
+
method: 'syncCoreMailGatewayPeer';
|
|
181
|
+
request: {
|
|
182
|
+
auth: IMailControlRequestAuth;
|
|
183
|
+
owner: IMailResourceOwner;
|
|
184
|
+
peer: ICoreMailGatewayPeerDesiredState;
|
|
185
|
+
};
|
|
186
|
+
response: {
|
|
187
|
+
success: boolean;
|
|
188
|
+
peer?: ICoreMailGatewayPeerDesiredState;
|
|
189
|
+
message?: string;
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export interface IReq_DeleteCoreMailGatewayPeer extends plugins.typedrequestInterfaces.implementsTR<
|
|
194
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
195
|
+
IReq_DeleteCoreMailGatewayPeer
|
|
196
|
+
> {
|
|
197
|
+
method: 'deleteCoreMailGatewayPeer';
|
|
198
|
+
request: {
|
|
199
|
+
auth: IMailControlRequestAuth;
|
|
200
|
+
owner: IMailResourceOwner;
|
|
201
|
+
coreMailServiceId: string;
|
|
202
|
+
};
|
|
203
|
+
response: {
|
|
204
|
+
success: boolean;
|
|
205
|
+
message?: string;
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
|
|
147
209
|
export interface IReq_ListWorkAppMailBindings extends plugins.typedrequestInterfaces.implementsTR<
|
|
148
210
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
149
211
|
IReq_ListWorkAppMailBindings
|
|
@@ -3,6 +3,16 @@ import type * as data from '../data/runtimesession.js';
|
|
|
3
3
|
import type * as terminal from '../data/runtimeterminalreceipt.js';
|
|
4
4
|
import type * as network from '../data/networkdelivery.js';
|
|
5
5
|
import type * as protection from '../data/networkprotection.js';
|
|
6
|
+
import type * as credential from '../data/networkcredential.js';
|
|
7
|
+
|
|
8
|
+
/** Current-peer, exact-projection authorization; response contains secret keys. */
|
|
9
|
+
export interface IReq_Pallet_Controller_GetRuntimeManagedVpnCredentialV1 extends plugins.typedrequestInterfaces.implementsTR<
|
|
10
|
+
plugins.typedrequestInterfaces.ITypedRequest, IReq_Pallet_Controller_GetRuntimeManagedVpnCredentialV1
|
|
11
|
+
> {
|
|
12
|
+
method: 'getRuntimeManagedVpnCredentialV1';
|
|
13
|
+
request: credential.IGetRuntimeManagedVpnCredentialRequestV1;
|
|
14
|
+
response: credential.IGetRuntimeManagedVpnCredentialResponseV1;
|
|
15
|
+
}
|
|
6
16
|
|
|
7
17
|
/** Current authenticated peer reports its durable complete native protection journal. */
|
|
8
18
|
export interface IReq_Pallet_Controller_ReportRuntimeNetworkProtectionV1 extends plugins.typedrequestInterfaces.implementsTR<
|