@humanagencyp/hap-core 0.11.1 → 0.11.2
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/dist/index.d.mts +13 -0
- package/dist/index.d.ts +13 -0
- package/package.json +1 -1
- package/src/types.ts +13 -0
package/dist/index.d.mts
CHANGED
|
@@ -315,6 +315,19 @@ interface ProfileBoundsField {
|
|
|
315
315
|
* kinds, and the same boundType can carry different units.
|
|
316
316
|
*/
|
|
317
317
|
unit?: FieldUnit;
|
|
318
|
+
/**
|
|
319
|
+
* The largest value a mandate may set for this (numeric) bound — a ceiling
|
|
320
|
+
* on what the owner can grant, declared by the profile. E.g. reporting@0.2
|
|
321
|
+
* `read_max_age_days: { maximum: 366 }`: no reporting mandate may read back
|
|
322
|
+
* further than a year.
|
|
323
|
+
*
|
|
324
|
+
* Distinct from the bound itself: the bound limits each ACTION; `maximum`
|
|
325
|
+
* limits the MANDATE. A value above it is not a valid mandate for this
|
|
326
|
+
* profile — the mandate editor caps its input, the issuing Authority Server
|
|
327
|
+
* should refuse it, and an enforcement point that reads the bound applies
|
|
328
|
+
* min(value, maximum). Absent → no ceiling.
|
|
329
|
+
*/
|
|
330
|
+
maximum?: number;
|
|
318
331
|
/** @deprecated v0.4: use boundType instead. */
|
|
319
332
|
constraint?: FieldConstraint;
|
|
320
333
|
/** @deprecated v0.4: use boundType: { kind: 'enum', values: [...] }. */
|
package/dist/index.d.ts
CHANGED
|
@@ -315,6 +315,19 @@ interface ProfileBoundsField {
|
|
|
315
315
|
* kinds, and the same boundType can carry different units.
|
|
316
316
|
*/
|
|
317
317
|
unit?: FieldUnit;
|
|
318
|
+
/**
|
|
319
|
+
* The largest value a mandate may set for this (numeric) bound — a ceiling
|
|
320
|
+
* on what the owner can grant, declared by the profile. E.g. reporting@0.2
|
|
321
|
+
* `read_max_age_days: { maximum: 366 }`: no reporting mandate may read back
|
|
322
|
+
* further than a year.
|
|
323
|
+
*
|
|
324
|
+
* Distinct from the bound itself: the bound limits each ACTION; `maximum`
|
|
325
|
+
* limits the MANDATE. A value above it is not a valid mandate for this
|
|
326
|
+
* profile — the mandate editor caps its input, the issuing Authority Server
|
|
327
|
+
* should refuse it, and an enforcement point that reads the bound applies
|
|
328
|
+
* min(value, maximum). Absent → no ceiling.
|
|
329
|
+
*/
|
|
330
|
+
maximum?: number;
|
|
318
331
|
/** @deprecated v0.4: use boundType instead. */
|
|
319
332
|
constraint?: FieldConstraint;
|
|
320
333
|
/** @deprecated v0.4: use boundType: { kind: 'enum', values: [...] }. */
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -320,6 +320,19 @@ export interface ProfileBoundsField {
|
|
|
320
320
|
* kinds, and the same boundType can carry different units.
|
|
321
321
|
*/
|
|
322
322
|
unit?: FieldUnit;
|
|
323
|
+
/**
|
|
324
|
+
* The largest value a mandate may set for this (numeric) bound — a ceiling
|
|
325
|
+
* on what the owner can grant, declared by the profile. E.g. reporting@0.2
|
|
326
|
+
* `read_max_age_days: { maximum: 366 }`: no reporting mandate may read back
|
|
327
|
+
* further than a year.
|
|
328
|
+
*
|
|
329
|
+
* Distinct from the bound itself: the bound limits each ACTION; `maximum`
|
|
330
|
+
* limits the MANDATE. A value above it is not a valid mandate for this
|
|
331
|
+
* profile — the mandate editor caps its input, the issuing Authority Server
|
|
332
|
+
* should refuse it, and an enforcement point that reads the bound applies
|
|
333
|
+
* min(value, maximum). Absent → no ceiling.
|
|
334
|
+
*/
|
|
335
|
+
maximum?: number;
|
|
323
336
|
/** @deprecated v0.4: use boundType instead. */
|
|
324
337
|
constraint?: FieldConstraint;
|
|
325
338
|
/** @deprecated v0.4: use boundType: { kind: 'enum', values: [...] }. */
|