@openvtc/trust-tasks 0.21.12 → 0.21.14
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 +85 -0
- package/dist/_shared/components.d.ts +91 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/auth/_shared/0.3/session.d.ts +16 -0
- package/dist/auth/_shared/0.3/session.d.ts.map +1 -0
- package/dist/auth/_shared/0.3/session.js +6 -0
- package/dist/auth/_shared/0.3/session.js.map +1 -0
- package/dist/auth/authenticate/0.3/payload.d.ts +852 -0
- package/dist/auth/authenticate/0.3/payload.d.ts.map +1 -0
- package/dist/auth/authenticate/0.3/payload.js +442 -0
- package/dist/auth/authenticate/0.3/payload.js.map +1 -0
- package/dist/auth/refresh/0.2/payload.d.ts +729 -0
- package/dist/auth/refresh/0.2/payload.d.ts.map +1 -0
- package/dist/auth/refresh/0.2/payload.js +392 -0
- package/dist/auth/refresh/0.2/payload.js.map +1 -0
- package/dist/git-ns/_shared/0.5/git-ns.d.ts +16 -0
- package/dist/git-ns/_shared/0.5/git-ns.d.ts.map +1 -0
- package/dist/git-ns/_shared/0.5/git-ns.js +6 -0
- package/dist/git-ns/_shared/0.5/git-ns.js.map +1 -0
- package/dist/git-ns/account/list/0.1/payload.d.ts +598 -0
- package/dist/git-ns/account/list/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/account/list/0.1/payload.js +317 -0
- package/dist/git-ns/account/list/0.1/payload.js.map +1 -0
- package/dist/git-ns/activity/list/0.1/payload.d.ts +642 -0
- package/dist/git-ns/activity/list/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/activity/list/0.1/payload.js +343 -0
- package/dist/git-ns/activity/list/0.1/payload.js.map +1 -0
- package/dist/git-ns/bridge/job/list/0.1/payload.d.ts +697 -0
- package/dist/git-ns/bridge/job/list/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/bridge/job/list/0.1/payload.js +386 -0
- package/dist/git-ns/bridge/job/list/0.1/payload.js.map +1 -0
- package/dist/git-ns/projection/show/0.1/payload.d.ts +705 -0
- package/dist/git-ns/projection/show/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/projection/show/0.1/payload.js +377 -0
- package/dist/git-ns/projection/show/0.1/payload.js.map +1 -0
- package/dist/git-ns/right/issued-by-departed/0.1/payload.d.ts +862 -0
- package/dist/git-ns/right/issued-by-departed/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/right/issued-by-departed/0.1/payload.js +487 -0
- package/dist/git-ns/right/issued-by-departed/0.1/payload.js.map +1 -0
- package/dist/git-ns/right/list/0.1/payload.d.ts +773 -0
- package/dist/git-ns/right/list/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/right/list/0.1/payload.js +439 -0
- package/dist/git-ns/right/list/0.1/payload.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/contexts/update-did/1.1/payload.d.ts +388 -0
- package/dist/vta/contexts/update-did/1.1/payload.d.ts.map +1 -0
- package/dist/vta/contexts/update-did/1.1/payload.js +227 -0
- package/dist/vta/contexts/update-did/1.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +91 -0
- package/src/auth/_shared/0.3/session.ts +17 -0
- package/src/auth/authenticate/0.3/payload.ts +527 -0
- package/src/auth/refresh/0.2/payload.ts +444 -0
- package/src/git-ns/_shared/0.5/git-ns.ts +17 -0
- package/src/git-ns/account/list/0.1/payload.ts +392 -0
- package/src/git-ns/activity/list/0.1/payload.ts +430 -0
- package/src/git-ns/bridge/job/list/0.1/payload.ts +490 -0
- package/src/git-ns/projection/show/0.1/payload.ts +479 -0
- package/src/git-ns/right/issued-by-departed/0.1/payload.ts +550 -0
- package/src/git-ns/right/list/0.1/payload.ts +493 -0
- package/src/index.ts +11 -0
- package/src/vta/contexts/update-did/1.1/payload.ts +256 -0
|
@@ -589,6 +589,10 @@ export type RetentionPolicy = "chained" | "fromJoin";
|
|
|
589
589
|
* One of the five git rights. Each string is also the TRQP `action` the VTC publishes the right under in its Trust Registry, so it is carried verbatim. `git.ns.admin` and `git.repo.create` apply to a namespace resource; `git.repo.own` and `git.repo.maintain` to a repository resource; `git.commit.sign` to either.
|
|
590
590
|
*/
|
|
591
591
|
export type Right = "git.ns.admin" | "git.repo.create" | "git.repo.own" | "git.repo.maintain" | "git.commit.sign";
|
|
592
|
+
/**
|
|
593
|
+
* Where a right an administrator sees came from. `recorded` — a `git-ns/*` record, governed by the rights model and returned nowhere the subject cannot eventually see it through `git-ns/view`. `roleDerived` — a v0.1 `[hooks.git-trust] grant_on_role` grant: published by the hook relay from the community's own role configuration, never written by any `git-ns/*` task, and not itself a `RightRecord` — it has no `grantedAt`, no `expiresAt` and no `reason`, only a subject, a right and a resource.
|
|
594
|
+
*/
|
|
595
|
+
export type RightOrigin = "recorded" | "roleDerived";
|
|
592
596
|
/**
|
|
593
597
|
* Where a key is in its role's lifecycle. `pending` — planned by a preview or a change awaiting approval; not published; custody projection only. `staged` — published and bound to its role, but not yet used: a planned rotation publishes the successor and waits until the entry's cache horizon — publication plus the longer of the document's TTL and the verifier cache cap (CONVENTIONS.md §11.1) — before the VTA first uses it, so that no verifier holding a cached document sees a signature by a key it has never seen (VTI-KEY-122). Becomes `active` at the rotation's `activatesAt`. `active` — the key the VTA uses for new signatures (or, for `messaging`, advertises for new sessions). `retiring` — still published so that what it signed and sessions keyed to it keep working, but never used again: from the successor's first use the VTA MUST NOT sign with it, while a retiring `messaging` key stays usable for decryption, and senders may still encrypt to it, until it is retired (CONVENTIONS.md §11.3). `retired` — removed by planned rotation; what it signed while published remains valid, judged against the DID version current at issuance (CONVENTIONS.md §7). A retired `attestation` or `messaging` key is destroyed at retirement. `revoked` — removed from every relationship and from `keyRoles` in one entry, without overlap, because it is or may be compromised; what it signed from `compromisedSince` onward establishes nothing. `retired` and `revoked` are terminal.
|
|
594
598
|
*/
|
|
@@ -1192,6 +1196,46 @@ export interface AdminAccount {
|
|
|
1192
1196
|
*/
|
|
1193
1197
|
accountType: AccountType;
|
|
1194
1198
|
}
|
|
1199
|
+
/**
|
|
1200
|
+
* One right as the administrator's rights console shows it: a recorded `RightRecord` restated with the membership facts an administrator needs (`subjectMember`, `granterDeparted`), or a role-derived grant that carries no record. `git-ns/right/list` and `git-ns/right/issued-by-departed` are its only producers.
|
|
1201
|
+
*/
|
|
1202
|
+
export interface AdminRightRow {
|
|
1203
|
+
/**
|
|
1204
|
+
* Who holds the right.
|
|
1205
|
+
*/
|
|
1206
|
+
subject: Did_GitNsV0_3;
|
|
1207
|
+
right: Right;
|
|
1208
|
+
resource: Resource;
|
|
1209
|
+
origin: RightOrigin;
|
|
1210
|
+
/**
|
|
1211
|
+
* Who caused the right (see `RightRecord.grantedBy`). Present exactly when `origin` is `recorded`; a role-derived grant is published by the hook relay from configuration, not by an actor.
|
|
1212
|
+
*/
|
|
1213
|
+
grantedBy?: Did_GitNsV0_3;
|
|
1214
|
+
/**
|
|
1215
|
+
* Present exactly when `origin` is `recorded`.
|
|
1216
|
+
*/
|
|
1217
|
+
grantedAt?: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* When the right lapses. Absent: no expiry, or `origin` is `roleDerived` (a role-derived grant never expires on its own — it is withdrawn by editing `[hooks.git-trust] grant_on_role`).
|
|
1220
|
+
*/
|
|
1221
|
+
expiresAt?: string;
|
|
1222
|
+
/**
|
|
1223
|
+
* The granter's free-text reason, restated from the `RightRecord`. Absent when `origin` is `roleDerived`, or the record carries none.
|
|
1224
|
+
*/
|
|
1225
|
+
reason?: string;
|
|
1226
|
+
/**
|
|
1227
|
+
* Whether `subject` is a current member of the community. `false` marks a right held by someone who has since left, or by an external signer the community never enrolled.
|
|
1228
|
+
*/
|
|
1229
|
+
subjectMember: boolean;
|
|
1230
|
+
/**
|
|
1231
|
+
* Whether `grantedBy` was a member at the time of the grant and has since left. Always `false` when `origin` is `roleDerived`, or when the record's granter was never itself a member (the VTC's own DID, for a right it derives from configuration).
|
|
1232
|
+
*/
|
|
1233
|
+
granterDeparted: boolean;
|
|
1234
|
+
/**
|
|
1235
|
+
* Present exactly when `origin` is `recorded` and the record carries `breakGlass` — see `RightRecord.breakGlass`. Absent for a role-derived grant, which cannot be self-granted through break-glass.
|
|
1236
|
+
*/
|
|
1237
|
+
breakGlass?: BreakGlass;
|
|
1238
|
+
}
|
|
1195
1239
|
/**
|
|
1196
1240
|
* An agent name bound to a DID. A name is only ever authoritative in the DID→name direction: the DID document's `alsoKnownAs` is what proves the binding, because anyone controlling a domain can point a name at somebody else's DID.
|
|
1197
1241
|
*/
|
|
@@ -5024,6 +5068,53 @@ export interface Session_AuthV0_2 {
|
|
|
5024
5068
|
*/
|
|
5025
5069
|
ext?: Ext;
|
|
5026
5070
|
}
|
|
5071
|
+
/**
|
|
5072
|
+
* A logical authentication context bound to a subject. Producers and consumers exchange Session-shaped data in challenge issuance, authentication responses, and introspection (whoami).
|
|
5073
|
+
*/
|
|
5074
|
+
export interface Session_AuthV0_3 {
|
|
5075
|
+
/**
|
|
5076
|
+
* Opaque, server-chosen session identifier. Stable for the lifetime of the session. Consumers MUST treat the value as opaque; no structure is implied.
|
|
5077
|
+
*/
|
|
5078
|
+
id: string;
|
|
5079
|
+
/**
|
|
5080
|
+
* The authenticated party's VID (typically a DID URL). For a session established by a proxied login (auth/authenticate/0.3), this is the *principal* being authenticated as — never the delegate that signed the authenticate document; see `actor`.
|
|
5081
|
+
*/
|
|
5082
|
+
subject: string;
|
|
5083
|
+
/**
|
|
5084
|
+
* ISO-8601 timestamp when the session was created.
|
|
5085
|
+
*/
|
|
5086
|
+
issuedAt: string;
|
|
5087
|
+
/**
|
|
5088
|
+
* ISO-8601 timestamp when the session ceases to be valid. Producers SHOULD refresh before this time; consumers MUST reject after. A consumer honouring `absoluteExpiresAt` MUST NOT advance this value past it, by refresh or any other means.
|
|
5089
|
+
*/
|
|
5090
|
+
expiresAt: string;
|
|
5091
|
+
/**
|
|
5092
|
+
* Authentication Methods References per [RFC 8176]. Typical values: "did" (challenge-response), "passkey" (WebAuthn), "vta" (verifiable-trust agent approval). Multi-factor sessions list every method used.
|
|
5093
|
+
*
|
|
5094
|
+
* @minItems 1
|
|
5095
|
+
*/
|
|
5096
|
+
amr?: [string, ...string[]];
|
|
5097
|
+
/**
|
|
5098
|
+
* Authentication Context Class Reference per [OIDC Core §2]. Profiles define their own values; the recommended set is "aal1" (single-factor DID auth), "aal2" (a second possession-or-biometric factor confirmed), and "aal3" (hardware-bound second factor).
|
|
5099
|
+
*/
|
|
5100
|
+
acr?: string;
|
|
5101
|
+
/**
|
|
5102
|
+
* The did:key VID bound to this session by auth/authenticate/0.2 or 0.3, when the producer registered one. Present here so introspection (auth/whoami, auth/sessions/list) can show the binding a client already holds; it is descriptive, not an additional grant — the binding, its scope and its lifetime are governed entirely by the auth/authenticate specification version that established it. Absent when the session was established without a session key, or by a specification version that does not carry one.
|
|
5103
|
+
*/
|
|
5104
|
+
sessionKey?: string;
|
|
5105
|
+
/**
|
|
5106
|
+
* The delegate's VID — the party whose `proof` actually authenticated this session — when this session was established by a *proxied* login (auth/authenticate/0.3, `payload.principal` present and distinct from `issuer`). Absent whenever `subject` authenticated with its own key, including every auth/authenticate/0.1 and /0.2 session and an auth/authenticate/0.3 request where `principal` is absent or equals `issuer`. Carrying `actor` separately from `subject` is what lets an audit trail, a revocation, or a response to a compromised delegate name the true acting party without conflating it with the principal it acted for — see auth/authenticate/0.3 Security & Privacy (Correlation).
|
|
5107
|
+
*/
|
|
5108
|
+
actor?: string;
|
|
5109
|
+
/**
|
|
5110
|
+
* The instant beyond which this session's `expiresAt` MUST NOT be advanced, by auth/refresh/0.2 or by any other means — an absolute session lifetime set once at authentication and never moved forward. Consumers that impose no such ceiling beyond the session's own rolling `expiresAt` omit this member; its absence is not itself a claim that the session is unbounded, only that this response does not state a bound. See auth/refresh/0.2 Conformance and Security & Privacy for the enforcement rule.
|
|
5111
|
+
*/
|
|
5112
|
+
absoluteExpiresAt?: string;
|
|
5113
|
+
/**
|
|
5114
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
5115
|
+
*/
|
|
5116
|
+
ext?: Ext;
|
|
5117
|
+
}
|
|
5027
5118
|
/**
|
|
5028
5119
|
* One signing-key delegation, as its holder sees it. A delegation confers nothing of its own: it names an identity that already holds whatever standing it holds, and a document signed by the key is authorized by that identity's standing read at execution time.
|
|
5029
5120
|
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/_shared/0.3/session.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Reusable JSON Schema fragments that describe an authenticated session, referenced by the auth/* Trust Task specifications. 0.3 adds `actor` (auth/authenticate/0.3 — the delegate that authenticated on the subject's behalf, when the session was established by a proxied login) and `absoluteExpiresAt` (auth/refresh/0.2 — the ceiling a refresh MUST NOT advance `expiresAt` past). 0.1 and 0.2 remain in place for specifications still pinned to them (SPEC.md §6.6 item 3 — a component version bump never changes an already-published specification version underfoot).
|
|
8
|
+
*/
|
|
9
|
+
export interface AuthSharedSessionDefinitions {
|
|
10
|
+
[k: string]: unknown | undefined;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
15
|
+
* See "../../../_shared/components.js".
|
|
16
|
+
*/
|
|
17
|
+
export type { Session_AuthV0_3 as Session } from "../../../_shared/components.js";
|