@openvtc/trust-tasks 0.21.13 → 0.21.15
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 +88 -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 +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/vtc/relationships/revoke/0.2/payload.d.ts +287 -0
- package/dist/vtc/relationships/revoke/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/relationships/revoke/0.2/payload.js +159 -0
- package/dist/vtc/relationships/revoke/0.2/payload.js.map +1 -0
- package/dist/vtc/vetting/vetters/resend/0.2/payload.d.ts +254 -0
- package/dist/vtc/vetting/vetters/resend/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/resend/0.2/payload.js +142 -0
- package/dist/vtc/vetting/vetters/resend/0.2/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 +12 -0
- package/src/vtc/relationships/revoke/0.2/payload.ts +209 -0
- package/src/vtc/vetting/vetters/resend/0.2/payload.ts +183 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/auth/refresh/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,gBAAgB,IAAI,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAGpG;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC;IACpB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;AAE1C,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,8CAAuD,CAAC;AAEhF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,WAAW,CAAC;AAElC,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,uDAAgE,CAAC;AAElG,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,0BAA0B,CAAC;AAElD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyLjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+J1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/refresh/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/auth/refresh/0.2";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/refresh/0.2#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/auth/refresh/0.2",
|
|
21
|
+
"title": "Auth — Refresh",
|
|
22
|
+
"description": "Exchange a refresh token for a new access token (and optionally a new refresh token). 0.2 adds no new payload member: it accepts an optional framework `proof` made by a session key bound to the session at auth/authenticate/0.2 or 0.3, presented alongside — never instead of — the refresh token, and it never advances a session's `expiresAt` past its `absoluteExpiresAt`. See Conformance and Security & Privacy.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"refreshToken"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"refreshToken": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"description": "The refresh token previously issued in a TokenBundle. Consumers verify it server-side; producers treat it as opaque."
|
|
33
|
+
},
|
|
34
|
+
"scope": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"minLength": 1
|
|
39
|
+
},
|
|
40
|
+
"description": "Optional capability tags requested on the new access token. MAY be narrower than the original session's scope; consumers MUST NOT widen scope on refresh."
|
|
41
|
+
},
|
|
42
|
+
"ext": {
|
|
43
|
+
"$ref": "#/$defs/Ext",
|
|
44
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"$defs": {
|
|
48
|
+
"Response": {
|
|
49
|
+
"$anchor": "response",
|
|
50
|
+
"title": "Auth Refresh — response payload",
|
|
51
|
+
"description": "Issued by the auth service when the presented refresh token is valid. Carried in a Trust Task document whose type is https://trusttasks.org/spec/auth/refresh/0.2#response.",
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"required": [
|
|
55
|
+
"tokens"
|
|
56
|
+
],
|
|
57
|
+
"properties": {
|
|
58
|
+
"session": {
|
|
59
|
+
"$ref": "#/$defs/Session",
|
|
60
|
+
"description": "Optional session snapshot. Consumers SHOULD include it so the producer can refresh client-side state (acr changes after step-up, scope changes after policy edits, and the session's `absoluteExpiresAt`) without a separate whoami call."
|
|
61
|
+
},
|
|
62
|
+
"tokens": {
|
|
63
|
+
"$ref": "#/$defs/TokenBundle",
|
|
64
|
+
"description": "New access token. If the consumer's policy rotates refresh tokens on each use, a new refreshToken is included; otherwise the producer continues using the previously-issued one."
|
|
65
|
+
},
|
|
66
|
+
"ext": {
|
|
67
|
+
"$ref": "#/$defs/Ext",
|
|
68
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"Ext": {
|
|
73
|
+
"title": "Ext",
|
|
74
|
+
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
75
|
+
"type": "object",
|
|
76
|
+
"minProperties": 1,
|
|
77
|
+
"additionalProperties": true,
|
|
78
|
+
"propertyNames": {
|
|
79
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"TokenBundle": {
|
|
83
|
+
"$anchor": "tokenBundle",
|
|
84
|
+
"title": "TokenBundle",
|
|
85
|
+
"description": "An access token (typically short-lived JWT) paired with an optional refresh token (typically long-lived opaque string). The shapes follow OAuth 2.0 (RFC 6749 §5.1) conventions but are not coupled to any particular OAuth profile.",
|
|
86
|
+
"type": "object",
|
|
87
|
+
"additionalProperties": false,
|
|
88
|
+
"required": [
|
|
89
|
+
"accessToken",
|
|
90
|
+
"tokenType",
|
|
91
|
+
"expiresIn"
|
|
92
|
+
],
|
|
93
|
+
"properties": {
|
|
94
|
+
"accessToken": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"minLength": 1,
|
|
97
|
+
"description": "Bearer-style access token. Consumers presenting this token to downstream services prove the holder of the original session. Format is consumer-defined — JWT is common, but opaque strings are also valid."
|
|
98
|
+
},
|
|
99
|
+
"refreshToken": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"minLength": 1,
|
|
102
|
+
"description": "Long-lived token redeemable via auth/refresh for a new access token. MAY be absent when the issuer does not support refresh."
|
|
103
|
+
},
|
|
104
|
+
"tokenType": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"minLength": 1,
|
|
107
|
+
"description": "Token presentation scheme. Almost always \"Bearer\"; reserved for future schemes."
|
|
108
|
+
},
|
|
109
|
+
"expiresIn": {
|
|
110
|
+
"type": "integer",
|
|
111
|
+
"minimum": 1,
|
|
112
|
+
"description": "Seconds from issuance until the access token expires."
|
|
113
|
+
},
|
|
114
|
+
"refreshExpiresIn": {
|
|
115
|
+
"type": "integer",
|
|
116
|
+
"minimum": 1,
|
|
117
|
+
"description": "Seconds from issuance until the refresh token expires, when one was issued."
|
|
118
|
+
},
|
|
119
|
+
"scope": {
|
|
120
|
+
"type": "array",
|
|
121
|
+
"items": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"minLength": 1
|
|
124
|
+
},
|
|
125
|
+
"description": "Capability tags effective on this token. Format is consumer-defined; the framework imposes no syntax."
|
|
126
|
+
},
|
|
127
|
+
"ext": {
|
|
128
|
+
"$ref": "#/$defs/Ext",
|
|
129
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"Session": {
|
|
134
|
+
"$anchor": "session",
|
|
135
|
+
"title": "Session",
|
|
136
|
+
"description": "A logical authentication context bound to a subject. Producers and consumers exchange Session-shaped data in challenge issuance, authentication responses, and introspection (whoami).",
|
|
137
|
+
"type": "object",
|
|
138
|
+
"additionalProperties": false,
|
|
139
|
+
"required": [
|
|
140
|
+
"id",
|
|
141
|
+
"subject",
|
|
142
|
+
"issuedAt",
|
|
143
|
+
"expiresAt"
|
|
144
|
+
],
|
|
145
|
+
"properties": {
|
|
146
|
+
"id": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"minLength": 1,
|
|
149
|
+
"description": "Opaque, server-chosen session identifier. Stable for the lifetime of the session. Consumers MUST treat the value as opaque; no structure is implied."
|
|
150
|
+
},
|
|
151
|
+
"subject": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"minLength": 1,
|
|
154
|
+
"description": "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`."
|
|
155
|
+
},
|
|
156
|
+
"issuedAt": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"format": "date-time",
|
|
159
|
+
"description": "ISO-8601 timestamp when the session was created."
|
|
160
|
+
},
|
|
161
|
+
"expiresAt": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"format": "date-time",
|
|
164
|
+
"description": "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."
|
|
165
|
+
},
|
|
166
|
+
"amr": {
|
|
167
|
+
"type": "array",
|
|
168
|
+
"minItems": 1,
|
|
169
|
+
"items": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"minLength": 1
|
|
172
|
+
},
|
|
173
|
+
"description": "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."
|
|
174
|
+
},
|
|
175
|
+
"acr": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"description": "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)."
|
|
178
|
+
},
|
|
179
|
+
"sessionKey": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"pattern": "^did:key:z[1-9A-HJ-NP-Za-km-z]+$",
|
|
182
|
+
"maxLength": 512,
|
|
183
|
+
"description": "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."
|
|
184
|
+
},
|
|
185
|
+
"actor": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"minLength": 1,
|
|
188
|
+
"maxLength": 2048,
|
|
189
|
+
"description": "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)."
|
|
190
|
+
},
|
|
191
|
+
"absoluteExpiresAt": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"format": "date-time",
|
|
194
|
+
"description": "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."
|
|
195
|
+
},
|
|
196
|
+
"ext": {
|
|
197
|
+
"$ref": "#/$defs/Ext",
|
|
198
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
205
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
206
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
207
|
+
"$ref": "#/$defs/Response",
|
|
208
|
+
"$defs": {
|
|
209
|
+
"Response": {
|
|
210
|
+
"$anchor": "response",
|
|
211
|
+
"title": "Auth Refresh — response payload",
|
|
212
|
+
"description": "Issued by the auth service when the presented refresh token is valid. Carried in a Trust Task document whose type is https://trusttasks.org/spec/auth/refresh/0.2#response.",
|
|
213
|
+
"type": "object",
|
|
214
|
+
"additionalProperties": false,
|
|
215
|
+
"required": [
|
|
216
|
+
"tokens"
|
|
217
|
+
],
|
|
218
|
+
"properties": {
|
|
219
|
+
"session": {
|
|
220
|
+
"$ref": "#/$defs/Session",
|
|
221
|
+
"description": "Optional session snapshot. Consumers SHOULD include it so the producer can refresh client-side state (acr changes after step-up, scope changes after policy edits, and the session's `absoluteExpiresAt`) without a separate whoami call."
|
|
222
|
+
},
|
|
223
|
+
"tokens": {
|
|
224
|
+
"$ref": "#/$defs/TokenBundle",
|
|
225
|
+
"description": "New access token. If the consumer's policy rotates refresh tokens on each use, a new refreshToken is included; otherwise the producer continues using the previously-issued one."
|
|
226
|
+
},
|
|
227
|
+
"ext": {
|
|
228
|
+
"$ref": "#/$defs/Ext",
|
|
229
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"Ext": {
|
|
234
|
+
"title": "Ext",
|
|
235
|
+
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
236
|
+
"type": "object",
|
|
237
|
+
"minProperties": 1,
|
|
238
|
+
"additionalProperties": true,
|
|
239
|
+
"propertyNames": {
|
|
240
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"TokenBundle": {
|
|
244
|
+
"$anchor": "tokenBundle",
|
|
245
|
+
"title": "TokenBundle",
|
|
246
|
+
"description": "An access token (typically short-lived JWT) paired with an optional refresh token (typically long-lived opaque string). The shapes follow OAuth 2.0 (RFC 6749 §5.1) conventions but are not coupled to any particular OAuth profile.",
|
|
247
|
+
"type": "object",
|
|
248
|
+
"additionalProperties": false,
|
|
249
|
+
"required": [
|
|
250
|
+
"accessToken",
|
|
251
|
+
"tokenType",
|
|
252
|
+
"expiresIn"
|
|
253
|
+
],
|
|
254
|
+
"properties": {
|
|
255
|
+
"accessToken": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"minLength": 1,
|
|
258
|
+
"description": "Bearer-style access token. Consumers presenting this token to downstream services prove the holder of the original session. Format is consumer-defined — JWT is common, but opaque strings are also valid."
|
|
259
|
+
},
|
|
260
|
+
"refreshToken": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"minLength": 1,
|
|
263
|
+
"description": "Long-lived token redeemable via auth/refresh for a new access token. MAY be absent when the issuer does not support refresh."
|
|
264
|
+
},
|
|
265
|
+
"tokenType": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"minLength": 1,
|
|
268
|
+
"description": "Token presentation scheme. Almost always \"Bearer\"; reserved for future schemes."
|
|
269
|
+
},
|
|
270
|
+
"expiresIn": {
|
|
271
|
+
"type": "integer",
|
|
272
|
+
"minimum": 1,
|
|
273
|
+
"description": "Seconds from issuance until the access token expires."
|
|
274
|
+
},
|
|
275
|
+
"refreshExpiresIn": {
|
|
276
|
+
"type": "integer",
|
|
277
|
+
"minimum": 1,
|
|
278
|
+
"description": "Seconds from issuance until the refresh token expires, when one was issued."
|
|
279
|
+
},
|
|
280
|
+
"scope": {
|
|
281
|
+
"type": "array",
|
|
282
|
+
"items": {
|
|
283
|
+
"type": "string",
|
|
284
|
+
"minLength": 1
|
|
285
|
+
},
|
|
286
|
+
"description": "Capability tags effective on this token. Format is consumer-defined; the framework imposes no syntax."
|
|
287
|
+
},
|
|
288
|
+
"ext": {
|
|
289
|
+
"$ref": "#/$defs/Ext",
|
|
290
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"Session": {
|
|
295
|
+
"$anchor": "session",
|
|
296
|
+
"title": "Session",
|
|
297
|
+
"description": "A logical authentication context bound to a subject. Producers and consumers exchange Session-shaped data in challenge issuance, authentication responses, and introspection (whoami).",
|
|
298
|
+
"type": "object",
|
|
299
|
+
"additionalProperties": false,
|
|
300
|
+
"required": [
|
|
301
|
+
"id",
|
|
302
|
+
"subject",
|
|
303
|
+
"issuedAt",
|
|
304
|
+
"expiresAt"
|
|
305
|
+
],
|
|
306
|
+
"properties": {
|
|
307
|
+
"id": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"minLength": 1,
|
|
310
|
+
"description": "Opaque, server-chosen session identifier. Stable for the lifetime of the session. Consumers MUST treat the value as opaque; no structure is implied."
|
|
311
|
+
},
|
|
312
|
+
"subject": {
|
|
313
|
+
"type": "string",
|
|
314
|
+
"minLength": 1,
|
|
315
|
+
"description": "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`."
|
|
316
|
+
},
|
|
317
|
+
"issuedAt": {
|
|
318
|
+
"type": "string",
|
|
319
|
+
"format": "date-time",
|
|
320
|
+
"description": "ISO-8601 timestamp when the session was created."
|
|
321
|
+
},
|
|
322
|
+
"expiresAt": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"format": "date-time",
|
|
325
|
+
"description": "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."
|
|
326
|
+
},
|
|
327
|
+
"amr": {
|
|
328
|
+
"type": "array",
|
|
329
|
+
"minItems": 1,
|
|
330
|
+
"items": {
|
|
331
|
+
"type": "string",
|
|
332
|
+
"minLength": 1
|
|
333
|
+
},
|
|
334
|
+
"description": "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."
|
|
335
|
+
},
|
|
336
|
+
"acr": {
|
|
337
|
+
"type": "string",
|
|
338
|
+
"description": "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)."
|
|
339
|
+
},
|
|
340
|
+
"sessionKey": {
|
|
341
|
+
"type": "string",
|
|
342
|
+
"pattern": "^did:key:z[1-9A-HJ-NP-Za-km-z]+$",
|
|
343
|
+
"maxLength": 512,
|
|
344
|
+
"description": "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."
|
|
345
|
+
},
|
|
346
|
+
"actor": {
|
|
347
|
+
"type": "string",
|
|
348
|
+
"minLength": 1,
|
|
349
|
+
"maxLength": 2048,
|
|
350
|
+
"description": "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)."
|
|
351
|
+
},
|
|
352
|
+
"absoluteExpiresAt": {
|
|
353
|
+
"type": "string",
|
|
354
|
+
"format": "date-time",
|
|
355
|
+
"description": "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."
|
|
356
|
+
},
|
|
357
|
+
"ext": {
|
|
358
|
+
"$ref": "#/$defs/Ext",
|
|
359
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
367
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
368
|
+
* per-specification and cannot be derived from the document alone, and
|
|
369
|
+
* item 2 needs the schema this carries.
|
|
370
|
+
*/
|
|
371
|
+
export const SPEC = {
|
|
372
|
+
typeUri: TYPE_URI,
|
|
373
|
+
isBearer: false,
|
|
374
|
+
isProofRequired: false,
|
|
375
|
+
isRecipientRequired: true,
|
|
376
|
+
isIssuedAtRequired: true,
|
|
377
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
381
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
382
|
+
* parties (§7.3 item 5).
|
|
383
|
+
*/
|
|
384
|
+
export const RESPONSE_SPEC = {
|
|
385
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
386
|
+
isBearer: false,
|
|
387
|
+
isProofRequired: false,
|
|
388
|
+
isRecipientRequired: true,
|
|
389
|
+
isIssuedAtRequired: true,
|
|
390
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
391
|
+
};
|
|
392
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/auth/refresh/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA2CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,8CAAuD,CAAC;AAKhF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,uDAAgE,CAAC;AAKlG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,gBAAgB;IACzB,aAAa,EAAE,4ZAA4Z;IAC3a,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,cAAc;KACf;IACD,YAAY,EAAE;QACZ,cAAc,EAAE;YACd,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,sHAAsH;SACtI;QACD,OAAO,EAAE;YACP,MAAM,EAAE,OAAO;YACf,OAAO,EAAE;gBACP,MAAM,EAAE,QAAQ;gBAChB,WAAW,EAAE,CAAC;aACf;YACD,aAAa,EAAE,2JAA2J;SAC3K;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;YACrB,aAAa,EAAE,yDAAyD;SACzE;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,iCAAiC;YAC1C,aAAa,EAAE,6KAA6K;YAC5L,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU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EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/git-ns/_shared/0.5/git-ns.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Shapes used by more than one git-ns/* task: forge-qualified resources, the five git rights, namespaces, repositories, rights records, forge accounts and drift. 0.5 adds `AdminRightRow` and `RightOrigin`: the row shape the administrator's rights console shows, which is either a `RightRecord` restated with membership facts (`recorded`) or a v0.1 `[hooks.git-trust] grant_on_role` grant that is not a record at all (`roleDerived`) — used by git-ns/right/list and git-ns/right/issued-by-departed. Every other definition is unchanged from 0.4. Not itself a Trust Task specification. A VTC is the source of truth for all of these; the Trust Registry and the forge are projections of them.
|
|
7
|
+
*/
|
|
8
|
+
export interface GitNamespacesSharedDefinitionsForTheGitNsSpecFamily {
|
|
9
|
+
[k: string]: unknown | undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
13
|
+
* See "../../../_shared/components.js".
|
|
14
|
+
*/
|
|
15
|
+
export type { AdminRightRow, BreakGlass, Did_GitNsV0_3 as Did, ForgeAccount, ForgeHost, ForgeId, NamespaceId, RepoResource, Resource, Right, RightOrigin } from "../../../_shared/components.js";
|
|
16
|
+
//# sourceMappingURL=git-ns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-ns.d.ts","sourceRoot":"","sources":["../../../../src/git-ns/_shared/0.5/git-ns.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,mDAAmD;IAClE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,IAAI,GAAG,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-ns.js","sourceRoot":"","sources":["../../../../src/git-ns/_shared/0.5/git-ns.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|