@serve.zone/interfaces 32.98.0 → 32.99.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-11-16 - 32.99.0
4
+
5
+ ### Features
6
+
7
+ - Create idempotency keys on three more creates (AGL-2106, Linus ruling 265 point 5): `requests.dns.IRequest_Any_Cloudly_CreateDnsEntry`, `requests.externalRegistry.IReq_CreateRegistry` and `requests.domain.IRequest_Any_Cloudly_CreateDomain` take the optional `idempotencyKey` the other four creates carry, one per user action, so a create sent again after an unknown outcome is answered with the DNS entry, registry or domain the first one stored. Same rule and validator (`data.isIdempotencyKey`, `data.validateCreateIdempotencyKey`); optional in this major so shipped callers keep working, required at the next major. A controller built before it ignores the member. Spec: `test.idempotencykey`.
8
+
3
9
  ## 2026-11-16 - 32.98.0
4
10
 
5
11
  ### Features
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '32.98.0',
6
+ version: '32.99.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFNBQVM7SUFDbEIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
@@ -13,7 +13,8 @@ export declare const idempotencyKeyContract: Readonly<{
13
13
  export declare const isIdempotencyKey: (valueArg: unknown) => valueArg is string;
14
14
  /**
15
15
  * Every error of the optional `idempotencyKey` of a create request (`createService`,
16
- * `createCluster`, `createServiceBackup`, `createImage`); empty when the request omits the member
16
+ * `createCluster`, `createServiceBackup`, `createImage`, `createDnsEntry`,
17
+ * `createExternalRegistry`, `createDomain`); empty when the request omits the member
17
18
  * (absent or `undefined`, which the wire never carries) or states a valid key. It judges that
18
19
  * member only, never the request's other members.
19
20
  */
@@ -7,12 +7,14 @@ import { readDataProperties } from '../private/dataproperties.js';
7
7
  * record's id from it and answers a create it already stored with that record, so a re-sent create
8
8
  * never makes a second one. First-party callers send one key per user action, never one per
9
9
  * attempt, and never a key derived from the request's content, which would merge two legitimate
10
- * identical creates.
10
+ * identical creates. A create answered from a stored record applies nothing of the re-sent
11
+ * request: the same key with different content is answered with the record as it was stored.
11
12
  *
12
- * The member is optional on `createService`, `createCluster`, `createServiceBackup` and
13
- * `createImage` so callers built before it keep working, and becomes required at the next major of
14
- * this package. A controller built before the member ignores it (those requests have no exact-key
15
- * reader), so a caller that relies on it names the minimum controller that honours it.
13
+ * The member is optional on `createService`, `createCluster`, `createServiceBackup`, `createImage`,
14
+ * `createDnsEntry`, `createExternalRegistry` and `createDomain` so callers built before it keep
15
+ * working, and becomes required at the next major of this package. A controller built before the
16
+ * member ignores it (those requests have no exact-key reader), so a caller that relies on it names
17
+ * the minimum controller that honours it.
16
18
  */
17
19
  /** Bounds of an idempotency key. */
18
20
  export const idempotencyKeyContract = Object.freeze({
@@ -30,7 +32,8 @@ const idempotencyKeyPattern = /^[A-Za-z0-9][A-Za-z0-9:._-]{0,199}$/;
30
32
  export const isIdempotencyKey = (valueArg) => (typeof valueArg === 'string' && idempotencyKeyPattern.test(valueArg));
31
33
  /**
32
34
  * Every error of the optional `idempotencyKey` of a create request (`createService`,
33
- * `createCluster`, `createServiceBackup`, `createImage`); empty when the request omits the member
35
+ * `createCluster`, `createServiceBackup`, `createImage`, `createDnsEntry`,
36
+ * `createExternalRegistry`, `createDomain`); empty when the request omits the member
34
37
  * (absent or `undefined`, which the wire never carries) or states a valid key. It judges that
35
38
  * member only, never the request's other members.
36
39
  */
@@ -44,4 +47,4 @@ export const validateCreateIdempotencyKey = (requestArg) => {
44
47
  ? []
45
48
  : ['idempotencyKey must be a bounded canonical identifier'];
46
49
  };
47
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbXBvdGVuY3lrZXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL2lkZW1wb3RlbmN5a2V5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLDhCQUE4QixDQUFDO0FBRWxFOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBRUgsb0NBQW9DO0FBQ3BDLE1BQU0sQ0FBQyxNQUFNLHNCQUFzQixHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUM7SUFDbEQsc0NBQXNDO0lBQ3RDLGFBQWEsRUFBRSxHQUFHO0NBQ25CLENBQUMsQ0FBQztBQUVILE1BQU0scUJBQXFCLEdBQUcscUNBQXFDLENBQUM7QUFFcEU7Ozs7OztHQU1HO0FBQ0gsTUFBTSxDQUFDLE1BQU0sZ0JBQWdCLEdBQUcsQ0FBQyxRQUFpQixFQUFzQixFQUFFLENBQUMsQ0FDekUsT0FBTyxRQUFRLEtBQUssUUFBUSxJQUFJLHFCQUFxQixDQUFDLElBQUksQ0FBQyxRQUFRLENBQUMsQ0FDckUsQ0FBQztBQUVGOzs7OztHQUtHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sNEJBQTRCLEdBQUcsQ0FBQyxVQUFtQixFQUFZLEVBQUU7SUFDNUUsTUFBTSxPQUFPLEdBQUcsa0JBQWtCLENBQUMsVUFBVSxDQUFDLENBQUM7SUFDL0MsSUFBSSxPQUFPLEtBQUssSUF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bUIsRUFBWSxFQUFFO0lBQzVFLE1BQU0sT0FBTyxHQUFHLGtCQUFrQixDQUFDLFVBQVUsQ0FBQyxDQUFDO0lBQy9DLElBQUksT0FBTyxLQUFLLElBQUk7UUFBRSxPQUFPLENBQUMsdUNBQXVDLENBQUMsQ0FBQztJQUN2RSxJQUFJLE9BQU8sQ0FBQyxjQUFjLEtBQUssU0FBUztRQUFFLE9BQU8sRUFBRSxDQUFDO0lBQ3BELE9BQU8sZ0JBQWdCLENBQUMsT0FBTyxDQUFDLGNBQWMsQ0FBQztRQUM3QyxDQUFDLENBQUMsRUFBRTtRQUNKLENBQUMsQ0FBQyxDQUFDLHVEQUF1RCxDQUFDLENBQUM7QUFDaEUsQ0FBQyxDQUFDIn0=
@@ -26,6 +26,15 @@ export interface IRequest_Any_Cloudly_CreateDnsEntry extends plugins.typedreques
26
26
  request: {
27
27
  identity: IIdentity;
28
28
  dnsEntryData: IDnsEntry['data'];
29
+ /**
30
+ * Names the user action this create belongs to (`data.isIdempotencyKey`,
31
+ * `data.validateCreateIdempotencyKey`): a create sent again with the same key, after an answer
32
+ * that never arrived or one named `outcome-unknown`, is answered with the DNS entry the first one
33
+ * stored instead of creating a second. One key per user action, never per attempt. Optional in
34
+ * this major so callers built before it keep working; required at the next major. A controller
35
+ * built before the member ignores it.
36
+ */
37
+ idempotencyKey?: string;
29
38
  };
30
39
  response: {
31
40
  dnsEntry: IDnsEntry;
@@ -25,6 +25,15 @@ export interface IRequest_Any_Cloudly_CreateDomain extends plugins.typedrequestI
25
25
  request: {
26
26
  identity: IIdentity;
27
27
  domainData: IDomain['data'];
28
+ /**
29
+ * Names the user action this create belongs to (`data.isIdempotencyKey`,
30
+ * `data.validateCreateIdempotencyKey`): a create sent again with the same key, after an answer
31
+ * that never arrived or one named `outcome-unknown`, is answered with the domain the first one
32
+ * stored instead of creating a second. One key per user action, never per attempt. Optional in
33
+ * this major so callers built before it keep working; required at the next major. A controller
34
+ * built before the member ignores it.
35
+ */
36
+ idempotencyKey?: string;
28
37
  };
29
38
  response: {
30
39
  domain: IDomain;
@@ -25,6 +25,15 @@ export interface IReq_CreateRegistry extends plugins.typedrequestInterfaces.impl
25
25
  request: {
26
26
  identity: userInterfaces.IIdentity;
27
27
  registryData: data.IExternalRegistry['data'];
28
+ /**
29
+ * Names the user action this create belongs to (`data.isIdempotencyKey`,
30
+ * `data.validateCreateIdempotencyKey`): a create sent again with the same key, after an answer
31
+ * that never arrived or one named `outcome-unknown`, is answered with the registry the first one
32
+ * stored instead of creating a second. One key per user action, never per attempt. Optional in
33
+ * this major so callers built before it keep working; required at the next major. A controller
34
+ * built before the member ignores it.
35
+ */
36
+ idempotencyKey?: string;
28
37
  };
29
38
  response: {
30
39
  registry: data.IExternalRegistryPublic;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "32.98.0",
3
+ "version": "32.99.0",
4
4
  "private": false,
5
5
  "description": "Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.",
6
6
  "exports": {
package/readme.md CHANGED
@@ -4170,10 +4170,13 @@ says nothing was stored, or as done.
4170
4170
 
4171
4171
  ### Create Idempotency Keys
4172
4172
 
4173
- `createService`, `createCluster`, `createServiceBackup` (a manual backup) and `createImage` take an
4174
- optional `idempotencyKey` naming the user action the create belongs to: a create sent again with the
4175
- same key, after an answer that never arrived or one named `outcome-unknown`, is answered with the record
4176
- the first one stored instead of creating a second. A first-party caller sends one key per user action,
4173
+ `createService`, `createCluster`, `createServiceBackup` (a manual backup), `createImage`,
4174
+ `createDnsEntry`, `createExternalRegistry` and `createDomain` take an optional `idempotencyKey`
4175
+ naming the user action the create belongs to: a create sent again with the same key, after an
4176
+ answer that never arrived or one named `outcome-unknown`, is answered with the record the first one
4177
+ stored instead of creating a second; nothing of the re-sent request is applied, so the same key
4178
+ with different content is answered with the record as it was stored. A first-party caller sends one
4179
+ key per user action,
4177
4180
  never one per attempt, and never a key derived from the request's content. The key is a bounded
4178
4181
  canonical identifier (`data.isIdempotencyKey`, at most `data.idempotencyKeyContract.maximumLength`
4179
4182
  (200) characters, the rule `data.validateDeploymentReservationInput`,
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '32.98.0',
6
+ version: '32.99.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.'
8
8
  }
@@ -8,12 +8,14 @@ import { readDataProperties } from '../private/dataproperties.js';
8
8
  * record's id from it and answers a create it already stored with that record, so a re-sent create
9
9
  * never makes a second one. First-party callers send one key per user action, never one per
10
10
  * attempt, and never a key derived from the request's content, which would merge two legitimate
11
- * identical creates.
11
+ * identical creates. A create answered from a stored record applies nothing of the re-sent
12
+ * request: the same key with different content is answered with the record as it was stored.
12
13
  *
13
- * The member is optional on `createService`, `createCluster`, `createServiceBackup` and
14
- * `createImage` so callers built before it keep working, and becomes required at the next major of
15
- * this package. A controller built before the member ignores it (those requests have no exact-key
16
- * reader), so a caller that relies on it names the minimum controller that honours it.
14
+ * The member is optional on `createService`, `createCluster`, `createServiceBackup`, `createImage`,
15
+ * `createDnsEntry`, `createExternalRegistry` and `createDomain` so callers built before it keep
16
+ * working, and becomes required at the next major of this package. A controller built before the
17
+ * member ignores it (those requests have no exact-key reader), so a caller that relies on it names
18
+ * the minimum controller that honours it.
17
19
  */
18
20
 
19
21
  /** Bounds of an idempotency key. */
@@ -37,7 +39,8 @@ export const isIdempotencyKey = (valueArg: unknown): valueArg is string => (
37
39
 
38
40
  /**
39
41
  * Every error of the optional `idempotencyKey` of a create request (`createService`,
40
- * `createCluster`, `createServiceBackup`, `createImage`); empty when the request omits the member
42
+ * `createCluster`, `createServiceBackup`, `createImage`, `createDnsEntry`,
43
+ * `createExternalRegistry`, `createDomain`); empty when the request omits the member
41
44
  * (absent or `undefined`, which the wire never carries) or states a valid key. It judges that
42
45
  * member only, never the request's other members.
43
46
  */
@@ -41,6 +41,15 @@ extends plugins.typedrequestInterfaces.implementsTR<
41
41
  request: {
42
42
  identity: IIdentity;
43
43
  dnsEntryData: IDnsEntry['data'];
44
+ /**
45
+ * Names the user action this create belongs to (`data.isIdempotencyKey`,
46
+ * `data.validateCreateIdempotencyKey`): a create sent again with the same key, after an answer
47
+ * that never arrived or one named `outcome-unknown`, is answered with the DNS entry the first one
48
+ * stored instead of creating a second. One key per user action, never per attempt. Optional in
49
+ * this major so callers built before it keep working; required at the next major. A controller
50
+ * built before the member ignores it.
51
+ */
52
+ idempotencyKey?: string;
44
53
  };
45
54
  response: {
46
55
  dnsEntry: IDnsEntry;
@@ -40,6 +40,15 @@ extends plugins.typedrequestInterfaces.implementsTR<
40
40
  request: {
41
41
  identity: IIdentity;
42
42
  domainData: IDomain['data'];
43
+ /**
44
+ * Names the user action this create belongs to (`data.isIdempotencyKey`,
45
+ * `data.validateCreateIdempotencyKey`): a create sent again with the same key, after an answer
46
+ * that never arrived or one named `outcome-unknown`, is answered with the domain the first one
47
+ * stored instead of creating a second. One key per user action, never per attempt. Optional in
48
+ * this major so callers built before it keep working; required at the next major. A controller
49
+ * built before the member ignores it.
50
+ */
51
+ idempotencyKey?: string;
43
52
  };
44
53
  response: {
45
54
  domain: IDomain;
@@ -37,6 +37,15 @@ export interface IReq_CreateRegistry extends plugins.typedrequestInterfaces.impl
37
37
  request: {
38
38
  identity: userInterfaces.IIdentity;
39
39
  registryData: data.IExternalRegistry['data'];
40
+ /**
41
+ * Names the user action this create belongs to (`data.isIdempotencyKey`,
42
+ * `data.validateCreateIdempotencyKey`): a create sent again with the same key, after an answer
43
+ * that never arrived or one named `outcome-unknown`, is answered with the registry the first one
44
+ * stored instead of creating a second. One key per user action, never per attempt. Optional in
45
+ * this major so callers built before it keep working; required at the next major. A controller
46
+ * built before the member ignores it.
47
+ */
48
+ idempotencyKey?: string;
40
49
  };
41
50
  response: {
42
51
  registry: data.IExternalRegistryPublic;