@serve.zone/interfaces 19.7.0 → 19.8.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 +9 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/requests/gateway.d.ts +11 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/requests/gateway.ts +15 -0
package/changelog.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-07-29 - 19.8.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- add an authenticated gateway-client mail-domain count contract (gateway)
|
|
8
|
+
- Expose getGatewayClientMailDomainCount with a count-only response for distinct configured mail domains.
|
|
9
|
+
- Derive ownership from the authenticating gateway credential instead of caller-selected owner fields.
|
|
10
|
+
- Document the new request and extend gateway contract tests.
|
|
11
|
+
|
|
3
12
|
## 2026-07-29 - 19.7.0
|
|
4
13
|
|
|
5
14
|
### Features
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@serve.zone/interfaces',
|
|
6
|
-
version: '19.
|
|
6
|
+
version: '19.8.0',
|
|
7
7
|
description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
|
|
@@ -100,6 +100,17 @@ export interface IReq_GetGatewayClientMailOverview extends plugins.typedrequestI
|
|
|
100
100
|
emails: IMailOverviewEmail[];
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
+
/** Cheap gateway-client-owned count of distinct configured mail domains. */
|
|
104
|
+
export interface IReq_GetGatewayClientMailDomainCount extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetGatewayClientMailDomainCount> {
|
|
105
|
+
method: 'getGatewayClientMailDomainCount';
|
|
106
|
+
request: {
|
|
107
|
+
identity?: IGatewayIdentity;
|
|
108
|
+
apiToken?: string;
|
|
109
|
+
};
|
|
110
|
+
response: {
|
|
111
|
+
count: number;
|
|
112
|
+
};
|
|
113
|
+
}
|
|
103
114
|
export interface IReq_GetGatewayClientDomains extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetGatewayClientDomains> {
|
|
104
115
|
method: 'getGatewayClientDomains';
|
|
105
116
|
request: {
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -345,7 +345,7 @@ const provisioning: requests.gateway.IReq_ProvisionGatewayClientCredential['requ
|
|
|
345
345
|
};
|
|
346
346
|
```
|
|
347
347
|
|
|
348
|
-
`getGatewayClientContext` returns effective live policy. A `gatewayClient` role necessarily includes the credential ID, bound client ID/type, and `policyGeneration`; consumers should reject admin/operator or mismatched contexts rather than falling back to a caller-supplied owner ID. `getGatewayClientMailOverview` provides an owner-scoped domain and recent-message summary. Cloudly therefore uses only `dcrouterGatewayApiToken`; the former `dcrouterOpsApiToken` setting is not part of `data.ICloudlySettings`.
|
|
348
|
+
`getGatewayClientContext` returns effective live policy. A `gatewayClient` role necessarily includes the credential ID, bound client ID/type, and `policyGeneration`; consumers should reject admin/operator or mismatched contexts rather than falling back to a caller-supplied owner ID. `getGatewayClientMailOverview` provides an owner-scoped domain and recent-message summary. `getGatewayClientMailDomainCount` derives ownership exclusively from the authenticating gateway credential and returns `{ count: number }` for its distinct configured mail domains. Cloudly therefore uses only `dcrouterGatewayApiToken`; the former `dcrouterOpsApiToken` setting is not part of `data.ICloudlySettings`.
|
|
349
349
|
|
|
350
350
|
Request groups are exported by product area:
|
|
351
351
|
|
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/requests/gateway.ts
CHANGED
|
@@ -141,6 +141,21 @@ export interface IReq_GetGatewayClientMailOverview extends plugins.typedrequestI
|
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
/** Cheap gateway-client-owned count of distinct configured mail domains. */
|
|
145
|
+
export interface IReq_GetGatewayClientMailDomainCount extends plugins.typedrequestInterfaces.implementsTR<
|
|
146
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
147
|
+
IReq_GetGatewayClientMailDomainCount
|
|
148
|
+
> {
|
|
149
|
+
method: 'getGatewayClientMailDomainCount';
|
|
150
|
+
request: {
|
|
151
|
+
identity?: IGatewayIdentity;
|
|
152
|
+
apiToken?: string;
|
|
153
|
+
};
|
|
154
|
+
response: {
|
|
155
|
+
count: number;
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
144
159
|
export interface IReq_GetGatewayClientDomains extends plugins.typedrequestInterfaces.implementsTR<
|
|
145
160
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
146
161
|
IReq_GetGatewayClientDomains
|