@openvtc/trust-tasks 0.23.0 → 0.23.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/CHANGELOG.md +70 -0
- package/dist/_shared/components.d.ts +102 -1
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/vtc/admin/actions/_shared/0.1/action.d.ts +1 -1
- package/dist/vtc/admin/actions/_shared/0.1/action.d.ts.map +1 -1
- package/dist/vtc/admin/actions/_shared/0.2/action.d.ts +26 -0
- package/dist/vtc/admin/actions/_shared/0.2/action.d.ts.map +1 -0
- package/dist/vtc/admin/actions/_shared/0.2/action.js +6 -0
- package/dist/vtc/admin/actions/_shared/0.2/action.js.map +1 -0
- package/dist/vtc/admin/actions/acknowledge/0.1/payload.d.ts +1 -1
- package/dist/vtc/admin/actions/acknowledge/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/admin/actions/acknowledge/0.2/payload.d.ts +1052 -0
- package/dist/vtc/admin/actions/acknowledge/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/admin/actions/acknowledge/0.2/payload.js +666 -0
- package/dist/vtc/admin/actions/acknowledge/0.2/payload.js.map +1 -0
- package/dist/vtc/admin/actions/cancel/0.1/payload.d.ts +1 -1
- package/dist/vtc/admin/actions/cancel/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/admin/actions/cancel/0.2/payload.d.ts +1066 -0
- package/dist/vtc/admin/actions/cancel/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/admin/actions/cancel/0.2/payload.js +671 -0
- package/dist/vtc/admin/actions/cancel/0.2/payload.js.map +1 -0
- package/dist/vtc/admin/actions/list/0.1/payload.d.ts +1 -1
- package/dist/vtc/admin/actions/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/admin/actions/list/0.2/payload.d.ts +1240 -0
- package/dist/vtc/admin/actions/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/admin/actions/list/0.2/payload.js +756 -0
- package/dist/vtc/admin/actions/list/0.2/payload.js.map +1 -0
- package/dist/vtc/admin/actions/show/0.1/payload.d.ts +1 -1
- package/dist/vtc/admin/actions/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/admin/actions/show/0.2/payload.d.ts +1052 -0
- package/dist/vtc/admin/actions/show/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/admin/actions/show/0.2/payload.js +666 -0
- package/dist/vtc/admin/actions/show/0.2/payload.js.map +1 -0
- package/dist/vtc/admin/events/_shared/0.1/topic.d.ts +27 -0
- package/dist/vtc/admin/events/_shared/0.1/topic.d.ts.map +1 -0
- package/dist/vtc/admin/events/_shared/0.1/topic.js +6 -0
- package/dist/vtc/admin/events/_shared/0.1/topic.js.map +1 -0
- package/dist/vtc/admin/events/event/0.1/payload.d.ts +172 -0
- package/dist/vtc/admin/events/event/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/event/0.1/payload.js +99 -0
- package/dist/vtc/admin/events/event/0.1/payload.js.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.1/payload.d.ts +409 -0
- package/dist/vtc/admin/events/subscribe/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.1/payload.js +230 -0
- package/dist/vtc/admin/events/subscribe/0.1/payload.js.map +1 -0
- package/dist/vtc/members/authority-reduction-pending-notice/0.1/payload.d.ts +236 -0
- package/dist/vtc/members/authority-reduction-pending-notice/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/members/authority-reduction-pending-notice/0.1/payload.js +122 -0
- package/dist/vtc/members/authority-reduction-pending-notice/0.1/payload.js.map +1 -0
- package/dist/vtc/operator/offline-write/0.1/payload.d.ts +167 -0
- package/dist/vtc/operator/offline-write/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/operator/offline-write/0.1/payload.js +96 -0
- package/dist/vtc/operator/offline-write/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +110 -1
- package/src/index.ts +10 -0
- package/src/vtc/admin/actions/_shared/0.1/action.ts +1 -1
- package/src/vtc/admin/actions/_shared/0.2/action.ts +27 -0
- package/src/vtc/admin/actions/acknowledge/0.1/payload.ts +1 -1
- package/src/vtc/admin/actions/acknowledge/0.2/payload.ts +701 -0
- package/src/vtc/admin/actions/cancel/0.1/payload.ts +1 -1
- package/src/vtc/admin/actions/cancel/0.2/payload.ts +710 -0
- package/src/vtc/admin/actions/list/0.1/payload.ts +1 -1
- package/src/vtc/admin/actions/list/0.2/payload.ts +825 -0
- package/src/vtc/admin/actions/show/0.1/payload.ts +1 -1
- package/src/vtc/admin/actions/show/0.2/payload.ts +701 -0
- package/src/vtc/admin/events/_shared/0.1/topic.ts +28 -0
- package/src/vtc/admin/events/event/0.1/payload.ts +133 -0
- package/src/vtc/admin/events/subscribe/0.1/payload.ts +302 -0
- package/src/vtc/members/authority-reduction-pending-notice/0.1/payload.ts +176 -0
- package/src/vtc/operator/offline-write/0.1/payload.ts +133 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/operator/offline-write/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAkCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,4DAAqE,CAAC;AAK9F;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,4DAA4D;IACnE,OAAO,EAAE,qCAAqC;IAC9C,aAAa,EAAE,qvBAAqvB;IACpwB,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,SAAS;QACT,MAAM;QACN,MAAM;QACN,IAAI;KACL;IACD,YAAY,EAAE;QACZ,SAAS,EAAE;YACT,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,QAAQ;gBACR,WAAW;gBACX,aAAa;gBACb,mBAAmB;gBACnB,eAAe;gBACf,oBAAoB;aACrB;YACD,aAAa,EAAE,sjBAAsjB;SACtkB;QACD,MAAM,EAAE;YACN,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,CAAC;YACb,UAAU,EAAE,EAAE;YACd,aAAa,EAAE,IAAI;YACnB,OAAO,EAAE;gBACP,MAAM,EAAE,QAAQ;gBAChB,WAAW,EAAE,CAAC;gBACd,WAAW,EAAE,IAAI;aAClB;YACD,aAAa,EAAE,4UAA4U;SAC5V;QACD,MAAM,EAAE;YACN,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,0QAA0Q;SAC1R;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,WAAW;YACrB,aAAa,EAAE,4JAA4J;SAC5K;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,KAAK,EAAE;YACL,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,uKAAuK;YACtL,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,CAAC;YAClB,sBAAsB,EAAE,IAAI;YAC5B,eAAe,EAAE;gBACf,SAAS,EAAE,mCAAmC;aAC/C;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,KAAK;IAC1B,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -637,6 +637,10 @@ export type Resource = string;
|
|
|
637
637
|
* Opaque qualifier naming the part of the maintainer's resources a capability applies to (e.g. `git-ns:github.com/acme`, `git-repo:github.com/acme/r#4211`, `policy:join`). Its grammar and containment rule are the maintainer's: a qualified capability covers the named resource and the resources inside it. A qualifier MUST NOT be read as widening the entry's act scope.
|
|
638
638
|
*/
|
|
639
639
|
export type ResourceQualifier = string;
|
|
640
|
+
/**
|
|
641
|
+
* Opaque, community-minted position in one caller's event stream. A console MUST NOT parse, construct or order it; it only hands the latest one back as `since` when it re-subscribes. A community binds it to the caller it was minted for and treats a token minted for anyone else as unknown.
|
|
642
|
+
*/
|
|
643
|
+
export type ResumeToken = string;
|
|
640
644
|
/**
|
|
641
645
|
* Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.
|
|
642
646
|
*/
|
|
@@ -801,6 +805,10 @@ export type SyncEvent_SyncV0_2 =
|
|
|
801
805
|
| VaultDeletedEvent_SyncV0_2
|
|
802
806
|
| AclChangedEvent_SyncV0_2
|
|
803
807
|
| PolicyChangedEvent_SyncV0_2;
|
|
808
|
+
/**
|
|
809
|
+
* One kind of change a console can be told about. A closed set: a topic not listed here is a new MINOR version of this component, not an `ext` member, because each topic is bound to the read that authorizes it.
|
|
810
|
+
*/
|
|
811
|
+
export type Topic = "actions" | "acknowledgements" | "joinRequests" | "members" | "singleAdminMode" | "config";
|
|
804
812
|
/**
|
|
805
813
|
* How the traffic reached or left the mediator. `peerMediator` is mediator-to-mediator forwarding.
|
|
806
814
|
*/
|
|
@@ -1349,7 +1357,7 @@ export interface AclEntry_AclV0_2 {
|
|
|
1349
1357
|
/**
|
|
1350
1358
|
* One parked administrative operation, as the caller is entitled to see it. The same action reads differently to different callers only in `challenge` and `callerRole`, which are per-caller.
|
|
1351
1359
|
*/
|
|
1352
|
-
export interface
|
|
1360
|
+
export interface Action_VtcAdminActionsV0_1 {
|
|
1353
1361
|
actionId: ActionId;
|
|
1354
1362
|
/**
|
|
1355
1363
|
* `approval` — eligible approvers approve or decline, N-of-M; the operation executes when the threshold is met. `acknowledge` — an operation that already happened (an operator's offline or break-glass write) which every remaining administrator must acknowledge; there is nothing to approve or decline. `queue` — an existing human decision (for example a join review) surfaced in the same list, with a threshold of one.
|
|
@@ -1438,6 +1446,107 @@ export interface Action {
|
|
|
1438
1446
|
requesterOpenActions?: number;
|
|
1439
1447
|
ext?: Ext;
|
|
1440
1448
|
}
|
|
1449
|
+
/**
|
|
1450
|
+
* One parked administrative operation, as the caller is entitled to see it. The same action reads differently to different callers only in `challenge` and `callerRole`, which are per-caller.
|
|
1451
|
+
*/
|
|
1452
|
+
export interface Action_VtcAdminActionsV0_2 {
|
|
1453
|
+
actionId: ActionId;
|
|
1454
|
+
/**
|
|
1455
|
+
* `approval` — eligible approvers approve or decline, N-of-M; the operation executes when the threshold is met. `acknowledge` — an operation that already happened (an operator's offline or break-glass write) which every remaining administrator must acknowledge; there is nothing to approve or decline. `queue` — an existing human decision (for example a join review) surfaced in the same list, with a threshold of one. `coolingOff` — an operation with no eligible third party to consent, which lands by itself at `landsAt` unless its requester cancels it first; nobody approves, declines or acknowledges it.
|
|
1456
|
+
*/
|
|
1457
|
+
category: "approval" | "acknowledge" | "queue" | "coolingOff";
|
|
1458
|
+
/**
|
|
1459
|
+
* The community's name for what kind of operation is parked, dotted and lowerCamelCase (`acl.grant.authority`, `member.join.review`). Selects the summary template. The set is OPEN: a renderer that does not recognise a kind still renders `summary` from its fields.
|
|
1460
|
+
*/
|
|
1461
|
+
kind: string;
|
|
1462
|
+
/**
|
|
1463
|
+
* The Type URI of the parked operation — the Trust Task the community will execute when the action completes (for `coolingOff`, when it lands). Together with `payload` it is exactly what will run. For `acknowledge`, the Type URI of the operation that already took effect; an operator's offline write, which is a command on the community's host and has no Trust Task of its own, is named by the record type `https://trusttasks.org/spec/vtc/operator/offline-write/0.1`, and `payload` is then that record.
|
|
1464
|
+
*/
|
|
1465
|
+
typeUri: string;
|
|
1466
|
+
/**
|
|
1467
|
+
* VID of the party whose operation was parked. For `acknowledge`, the operator whose offline write is being acknowledged, where the community can attribute one. For `coolingOff`, the administrator whose operation will land — the only party who may cancel it.
|
|
1468
|
+
*/
|
|
1469
|
+
requester: string;
|
|
1470
|
+
/**
|
|
1471
|
+
* `open` — awaiting decisions, or for `coolingOff` awaiting `landsAt`. `completed` — the threshold was met and the operation executed, a `coolingOff` operation landed, or, for `acknowledge`, every administrator acknowledged. `declined` — an eligible approver denied it. `expired` — it lapsed at `expiresAt`. `cancelled` — the requester withdrew it, or the community invalidated it (see `closedReason`). `failed` — the threshold was met or `landsAt` reached but the re-check at execution refused it, or execution itself failed; the operation did not take effect.
|
|
1472
|
+
*/
|
|
1473
|
+
status: "open" | "completed" | "declined" | "expired" | "cancelled" | "failed";
|
|
1474
|
+
/**
|
|
1475
|
+
* When the operation was parked.
|
|
1476
|
+
*/
|
|
1477
|
+
createdAt: string;
|
|
1478
|
+
/**
|
|
1479
|
+
* When an open action lapses. ALWAYS present for `approval`, whose open life is bounded (72 hours by default; the community configures it between 15 minutes and 14 days). Absent for an `acknowledge` or `queue` action that does not expire, and ALWAYS absent for `coolingOff`, which does not lapse but lands — see `landsAt`.
|
|
1480
|
+
*/
|
|
1481
|
+
expiresAt?: string;
|
|
1482
|
+
/**
|
|
1483
|
+
* When a `coolingOff` action lands: the instant from which the community executes the parked operation, after its execution-time re-check, unless the requester cancelled first. Present exactly when `category` is `coolingOff`. It is a deadline for the requester's cancellation, not for anyone's approval, and it is fixed when the action is parked: neither the requester nor the subject can move it.
|
|
1484
|
+
*/
|
|
1485
|
+
landsAt?: string;
|
|
1486
|
+
/**
|
|
1487
|
+
* Who may withdraw the action with `vtc/admin/actions/cancel` while it is `open`. Present on every open `coolingOff` action, where it is `requester`: the operation lands unless its requester stops it, and nobody else — the subject included — can. A closed set so that a console can offer a cancel control without inferring it; future values would widen who may cancel and need a new version.
|
|
1488
|
+
*/
|
|
1489
|
+
cancellableBy?: "requester";
|
|
1490
|
+
/**
|
|
1491
|
+
* When the action left `open`. Present exactly when `status` is not `open`.
|
|
1492
|
+
*/
|
|
1493
|
+
closedAt?: string;
|
|
1494
|
+
/**
|
|
1495
|
+
* Why the action closed. Present exactly when `status` is not `open`. `invalidated` — the community closed it because something it depended on stopped holding before the threshold or `landsAt` (an approver or the requester lost standing, the target state moved); `failedRecheck` — the threshold was met or `landsAt` reached but the execution-time re-check refused; `landedAfterCoolingOff` — a `coolingOff` action reached `landsAt` uncancelled and its operation executed (`status: completed`).
|
|
1496
|
+
*/
|
|
1497
|
+
closedReason?:
|
|
1498
|
+
| "thresholdMet"
|
|
1499
|
+
| "declined"
|
|
1500
|
+
| "expired"
|
|
1501
|
+
| "cancelledByRequester"
|
|
1502
|
+
| "invalidated"
|
|
1503
|
+
| "failedRecheck"
|
|
1504
|
+
| "acknowledged"
|
|
1505
|
+
| "landedAfterCoolingOff";
|
|
1506
|
+
/**
|
|
1507
|
+
* The number of distinct approvals the operation needs. Present for `approval`; absent otherwise (a `queue` decision is one decision by construction, `acknowledge` needs every remaining administrator, and `coolingOff` needs no approval at all).
|
|
1508
|
+
*/
|
|
1509
|
+
threshold?: number;
|
|
1510
|
+
/**
|
|
1511
|
+
* The decisions in favour recorded so far — approvals for `approval` and `queue`, acknowledgements for `acknowledge` — one entry per distinct subject, in the order recorded. Empty while none has landed, and always empty for `coolingOff`, which takes no decisions.
|
|
1512
|
+
*/
|
|
1513
|
+
approvals: {
|
|
1514
|
+
/**
|
|
1515
|
+
* VID of the approver or acknowledger, as proven by the decision's own proof.
|
|
1516
|
+
*/
|
|
1517
|
+
subject: string;
|
|
1518
|
+
/**
|
|
1519
|
+
* When the decision was recorded.
|
|
1520
|
+
*/
|
|
1521
|
+
at: string;
|
|
1522
|
+
}[];
|
|
1523
|
+
/**
|
|
1524
|
+
* How many further distinct decisions the action needs while `open` — approvals for `approval`, acknowledgements for `acknowledge`. Lets a console say 'one more' without disclosing the eligible set. Absent for `coolingOff`, which waits on time, not on decisions.
|
|
1525
|
+
*/
|
|
1526
|
+
approversRemaining?: number;
|
|
1527
|
+
summary: Summary;
|
|
1528
|
+
/**
|
|
1529
|
+
* The exact payload of the parked operation — the object `payloadDigest` is computed over and the one the community will execute. Carried so an approver can recompute the digest and re-derive every summary field from it rather than trusting the rendering (VTI-APV-013). Deliberately an open object: its shape is governed by the specification `typeUri` names, and a digest is checked over members exactly as received.
|
|
1530
|
+
*/
|
|
1531
|
+
payload: {};
|
|
1532
|
+
/**
|
|
1533
|
+
* Digest of `payload`, taken over its RFC 8785 (JCS) canonicalization. The community re-derives it from the payload it is about to execute and refuses on mismatch. The digest an approver signs over is the challenge-salted one of `task-consent/decision`, not this value; this one lets the approver check that `payload` is what was parked.
|
|
1534
|
+
*/
|
|
1535
|
+
payloadDigest: DigestMultibase;
|
|
1536
|
+
/**
|
|
1537
|
+
* Present ONLY on an action the CALLER may decide now — an `approval` or `queue` action on which the caller is an eligible approver who has not yet decided. Never present on `acknowledge` or `coolingOff`. Per-approver: two approvers are shown different challenges for the same action. Echoed verbatim in `task-consent/decision`'s `challenge`, which binds that decision to this approver and this action. Absent for everyone else, including the requester.
|
|
1538
|
+
*/
|
|
1539
|
+
challenge?: string;
|
|
1540
|
+
/**
|
|
1541
|
+
* The caller's relation to this action. `approver` — an eligible approver (whether or not already decided). `requester` — the party whose operation was parked. `acknowledger` — an administrator expected to acknowledge it. `subject` — the party a `coolingOff` operation acts on, shown it so that they learn of it before it lands; a subject can neither decide nor cancel it. `observer` — none of these; seen only through the audit-read capability on a `history` or `all` view.
|
|
1542
|
+
*/
|
|
1543
|
+
callerRole: "approver" | "requester" | "acknowledger" | "subject" | "observer";
|
|
1544
|
+
/**
|
|
1545
|
+
* How many open actions the requester currently has at the community, this one included. For consent-fatigue display: an approver shown the twentieth request from one requester today should be able to see that it is the twentieth.
|
|
1546
|
+
*/
|
|
1547
|
+
requesterOpenActions?: number;
|
|
1548
|
+
ext?: Ext;
|
|
1549
|
+
}
|
|
1441
1550
|
/**
|
|
1442
1551
|
* A privileged account at the mediator (an `admin` or `rootAdmin`).
|
|
1443
1552
|
*/
|
package/src/index.ts
CHANGED
|
@@ -622,11 +622,19 @@ export * as VettingAutoGrantShared_v0_1 from "./vtc/_shared/0.1/vetting-auto-gra
|
|
|
622
622
|
export * as WebsiteTransferShared_v0_1 from "./vtc/_shared/0.1/website-transfer.js";
|
|
623
623
|
export * as SchemaRegistryShared_v0_2 from "./vtc/_shared/0.2/schema-registry.js";
|
|
624
624
|
export * as ActionShared_v0_1 from "./vtc/admin/actions/_shared/0.1/action.js";
|
|
625
|
+
export * as ActionShared_v0_2 from "./vtc/admin/actions/_shared/0.2/action.js";
|
|
625
626
|
export * as VtcAdminActionsAcknowledge_v0_1 from "./vtc/admin/actions/acknowledge/0.1/payload.js";
|
|
627
|
+
export * as VtcAdminActionsAcknowledge_v0_2 from "./vtc/admin/actions/acknowledge/0.2/payload.js";
|
|
626
628
|
export * as VtcAdminActionsCancel_v0_1 from "./vtc/admin/actions/cancel/0.1/payload.js";
|
|
629
|
+
export * as VtcAdminActionsCancel_v0_2 from "./vtc/admin/actions/cancel/0.2/payload.js";
|
|
627
630
|
export * as VtcAdminActionsList_v0_1 from "./vtc/admin/actions/list/0.1/payload.js";
|
|
631
|
+
export * as VtcAdminActionsList_v0_2 from "./vtc/admin/actions/list/0.2/payload.js";
|
|
628
632
|
export * as VtcAdminActionsShow_v0_1 from "./vtc/admin/actions/show/0.1/payload.js";
|
|
633
|
+
export * as VtcAdminActionsShow_v0_2 from "./vtc/admin/actions/show/0.2/payload.js";
|
|
629
634
|
export * as VtcAdminBootstrap_v0_1 from "./vtc/admin/bootstrap/0.1/payload.js";
|
|
635
|
+
export * as TopicShared_v0_1 from "./vtc/admin/events/_shared/0.1/topic.js";
|
|
636
|
+
export * as VtcAdminEventsEvent_v0_1 from "./vtc/admin/events/event/0.1/payload.js";
|
|
637
|
+
export * as VtcAdminEventsSubscribe_v0_1 from "./vtc/admin/events/subscribe/0.1/payload.js";
|
|
630
638
|
export * as VtcAdminInvitesCreate_v0_1 from "./vtc/admin/invites/create/0.1/payload.js";
|
|
631
639
|
export * as VtcAdminInvitesList_v0_1 from "./vtc/admin/invites/list/0.1/payload.js";
|
|
632
640
|
export * as VtcAdminInvitesRevoke_v0_1 from "./vtc/admin/invites/revoke/0.1/payload.js";
|
|
@@ -686,6 +694,7 @@ export * as VtcJoinRequestsVettingShow_v0_1 from "./vtc/join-requests/vetting/sh
|
|
|
686
694
|
export * as VtcJoinRequestsWithdraw_v0_1 from "./vtc/join-requests/withdraw/0.1/payload.js";
|
|
687
695
|
export * as VtcMembersAdminRemove_v0_1 from "./vtc/members/admin-remove/0.1/payload.js";
|
|
688
696
|
export * as VtcMembersAuthorityReducedNotice_v0_1 from "./vtc/members/authority-reduced-notice/0.1/payload.js";
|
|
697
|
+
export * as VtcMembersAuthorityReductionPendingNotice_v0_1 from "./vtc/members/authority-reduction-pending-notice/0.1/payload.js";
|
|
689
698
|
export * as VtcMembersCredentials_v0_1 from "./vtc/members/credentials/0.1/payload.js";
|
|
690
699
|
export * as VtcMembersList_v0_1 from "./vtc/members/list/0.1/payload.js";
|
|
691
700
|
export * as VtcMembersPersonhoodAssert_v0_1 from "./vtc/members/personhood/assert/0.1/payload.js";
|
|
@@ -705,6 +714,7 @@ export * as VtcMembersSolicitVmc_v0_1 from "./vtc/members/solicit-vmc/0.1/payloa
|
|
|
705
714
|
export * as VtcMembersStepUpPasskeyNotice_v0_1 from "./vtc/members/step-up-passkey-notice/0.1/payload.js";
|
|
706
715
|
export * as VtcMembersUpdate_v0_1 from "./vtc/members/update/0.1/payload.js";
|
|
707
716
|
export * as VtcMembersVmc_v0_1 from "./vtc/members/vmc/0.1/payload.js";
|
|
717
|
+
export * as VtcOperatorOfflineWrite_v0_1 from "./vtc/operator/offline-write/0.1/payload.js";
|
|
708
718
|
export * as VtcPoliciesTest_v0_1 from "./vtc/policies/test/0.1/payload.js";
|
|
709
719
|
export * as VtcRecognitionCheck_v0_1 from "./vtc/recognition/check/0.1/payload.js";
|
|
710
720
|
export * as VtcRegistryDiagnostics_v0_1 from "./vtc/registry/diagnostics/0.1/payload.js";
|
|
@@ -22,4 +22,4 @@ export interface VTCAdminActionsSharedDefinitions {
|
|
|
22
22
|
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
23
23
|
* See "../../../../../_shared/components.js".
|
|
24
24
|
*/
|
|
25
|
-
export type { Action, ActionId, Field, Summary } from "../../../../../_shared/components.js";
|
|
25
|
+
export type { Action_VtcAdminActionsV0_1 as Action, ActionId, Field, Summary } from "../../../../../_shared/components.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/admin/actions/_shared/0.2/action.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Shared shapes for a Verifiable Trust Community's administrative ACTIONS: operations parked for other administrators' decision instead of being refused.
|
|
8
|
+
*
|
|
9
|
+
* THE MODEL. When an administrative operation needs more than its requester's own authority — a grant of administrative authority that needs N-of-M approval, an operator's offline (break-glass) write every administrator must see, a human decision such as a join review — the community does not refuse it. It parks the operation as an Action. An Action names its eligible approvers (or acknowledgers) and, for `approval`, a threshold N. When the N-th approval lands, the community re-checks everything it checked at submission — the requester's standing, each approver's standing, the community's policy, the state the operation acts on — and executes the parked operation EXACTLY ONCE; the action then leaves every administrator's list. One deny closes it for everyone. An open action lapses at `expiresAt`: 72 hours by default, community-configurable between 15 minutes and 14 days.
|
|
10
|
+
*
|
|
11
|
+
* COOLING OFF (new in 0.2). Some operations need a third party's agreement that does not exist — the removal of an administrator in a community where nobody other than the requester and the subject holds the authority to consent. The community neither refuses such an operation nor lets it take effect at once: it parks it as a `coolingOff` action, which has no threshold, no approvers and no expiry. It LANDS at `landsAt` — the community executes the parked payload then, exactly once and after the same execution-time re-check as any other action — unless the requester withdraws it with `vtc/admin/actions/cancel` first. The cooling-off period is 24 hours by default and community-configurable. The subject is shown the action (`callerRole: subject`) and told of it by `vtc/members/authority-reduction-pending-notice`, so a reduction nobody else reviewed is never a surprise; the subject cannot block it, because a veto held by the subject would protect a compromised subject from its own removal.
|
|
12
|
+
*
|
|
13
|
+
* THE REPLY TO THE REQUESTER. The gated operation is not answered with an error or with its own `#response`. The community answers it with the framework-reserved `trust-task-next-step/0.1`, carrying `continuation: proceed` and one `expects` entry whose `typeUri` is `https://trusttasks.org/spec/vtc/admin/actions/show/0.2` with `hint: {"actionId": "…"}`. `proceed` is deliberate: the requester does NOT re-submit the original operation — the community executes the parked payload itself once the threshold is met — so the requester's next step is to follow the action, not to retry. No separate response specification exists for this reply.
|
|
14
|
+
*
|
|
15
|
+
* THE DECISION. A `coolingOff` action takes no decision: nobody approves it and nobody acknowledges it. An approver decides through `task-consent/decision` (0.2 or later), echoing the `challenge` it was shown on the action and quoting `actionId`. An acknowledger answers `acknowledge` actions with `vtc/admin/actions/acknowledge`. The requester may withdraw an open action with `vtc/admin/actions/cancel`.
|
|
16
|
+
*
|
|
17
|
+
* WHAT APPROVERS ARE SHOWN. The `summary` is rendered from a SUMMARY TEMPLATE delivered as data — a title, an effect sentence, and named fields each locating a value in the digested payload by JSON Pointer — and the template is pinned per kind by `templateDigest`. A renderer MUST derive every field it shows from `payload` via that field's `pointer`, and MUST refuse to render an action whose carried `value` differs from the value at the pointer, or whose `payloadDigest` does not match `payload`. It MUST NOT present an action from `title` or `effect` text alone: those are prose the community authored, and a decision taken on prose is a decision about whatever the prose claimed rather than about the payload that will execute (VTI-APV-013).
|
|
18
|
+
*/
|
|
19
|
+
export interface VTCAdminActionsSharedDefinitions {
|
|
20
|
+
[k: string]: unknown | undefined;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
25
|
+
* See "../../../../../_shared/components.js".
|
|
26
|
+
*/
|
|
27
|
+
export type { Action_VtcAdminActionsV0_2 as Action, ActionId, Field, Summary } from "../../../../../_shared/components.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Source: specs/vtc/admin/actions/acknowledge/0.1/payload.schema.json
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { Action, ActionId, DigestMultibase, Ext, Field, Summary } from "../../../../../_shared/components.js";
|
|
6
|
+
import type { Action_VtcAdminActionsV0_1 as Action, ActionId, DigestMultibase, Ext, Field, Summary } from "../../../../../_shared/components.js";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
/**
|