@openvtc/trust-tasks 0.16.8 → 0.16.10
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 +285 -0
- package/dist/_shared/components.d.ts +206 -7
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.d.ts +4 -4
- package/dist/device/list/0.1/payload.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.js +6 -2
- package/dist/device/list/0.1/payload.js.map +1 -1
- package/dist/device/list/0.2/payload.d.ts +4 -4
- package/dist/device/list/0.2/payload.d.ts.map +1 -1
- package/dist/device/list/0.2/payload.js +6 -2
- package/dist/device/list/0.2/payload.js.map +1 -1
- package/dist/device/register/0.1/payload.d.ts +4 -4
- package/dist/device/register/0.1/payload.d.ts.map +1 -1
- package/dist/device/register/0.1/payload.js +6 -2
- package/dist/device/register/0.1/payload.js.map +1 -1
- package/dist/device/register/0.2/payload.d.ts +4 -4
- package/dist/device/register/0.2/payload.d.ts.map +1 -1
- package/dist/device/register/0.2/payload.js +6 -2
- package/dist/device/register/0.2/payload.js.map +1 -1
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -1
- package/dist/persona/_shared/0.1/persona-record.d.ts +22 -0
- package/dist/persona/_shared/0.1/persona-record.d.ts.map +1 -0
- package/dist/persona/_shared/0.1/persona-record.js +6 -0
- package/dist/persona/_shared/0.1/persona-record.js.map +1 -0
- package/dist/persona/attribute/delete/1.0/payload.d.ts +351 -0
- package/dist/persona/attribute/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/attribute/delete/1.0/payload.js +188 -0
- package/dist/persona/attribute/delete/1.0/payload.js.map +1 -0
- package/dist/persona/attribute/list/1.0/payload.d.ts +895 -0
- package/dist/persona/attribute/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/attribute/list/1.0/payload.js +532 -0
- package/dist/persona/attribute/list/1.0/payload.js.map +1 -0
- package/dist/persona/attribute/put/1.0/payload.d.ts +829 -0
- package/dist/persona/attribute/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/attribute/put/1.0/payload.js +487 -0
- package/dist/persona/attribute/put/1.0/payload.js.map +1 -0
- package/dist/persona/binding/get/1.0/payload.d.ts +382 -0
- package/dist/persona/binding/get/1.0/payload.d.ts.map +1 -0
- package/dist/persona/binding/get/1.0/payload.js +206 -0
- package/dist/persona/binding/get/1.0/payload.js.map +1 -0
- package/dist/persona/binding/list/1.0/payload.d.ts +387 -0
- package/dist/persona/binding/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/binding/list/1.0/payload.js +210 -0
- package/dist/persona/binding/list/1.0/payload.js.map +1 -0
- package/dist/persona/binding/set/1.0/payload.d.ts +545 -0
- package/dist/persona/binding/set/1.0/payload.d.ts.map +1 -0
- package/dist/persona/binding/set/1.0/payload.js +302 -0
- package/dist/persona/binding/set/1.0/payload.js.map +1 -0
- package/dist/persona/contact/delete/1.0/payload.d.ts +313 -0
- package/dist/persona/contact/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/delete/1.0/payload.js +174 -0
- package/dist/persona/contact/delete/1.0/payload.js.map +1 -0
- package/dist/persona/contact/get/1.0/payload.d.ts +1027 -0
- package/dist/persona/contact/get/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/get/1.0/payload.js +606 -0
- package/dist/persona/contact/get/1.0/payload.js.map +1 -0
- package/dist/persona/contact/list/1.0/payload.d.ts +490 -0
- package/dist/persona/contact/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/list/1.0/payload.js +262 -0
- package/dist/persona/contact/list/1.0/payload.js.map +1 -0
- package/dist/persona/contact/put/1.0/payload.d.ts +885 -0
- package/dist/persona/contact/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/put/1.0/payload.js +518 -0
- package/dist/persona/contact/put/1.0/payload.js.map +1 -0
- package/dist/persona/correlation/analyze/1.0/payload.d.ts +648 -0
- package/dist/persona/correlation/analyze/1.0/payload.d.ts.map +1 -0
- package/dist/persona/correlation/analyze/1.0/payload.js +338 -0
- package/dist/persona/correlation/analyze/1.0/payload.js.map +1 -0
- package/dist/persona/disclosure/history/1.0/payload.d.ts +639 -0
- package/dist/persona/disclosure/history/1.0/payload.d.ts.map +1 -0
- package/dist/persona/disclosure/history/1.0/payload.js +339 -0
- package/dist/persona/disclosure/history/1.0/payload.js.map +1 -0
- package/dist/persona/disclosure/present/1.0/payload.d.ts +400 -0
- package/dist/persona/disclosure/present/1.0/payload.d.ts.map +1 -0
- package/dist/persona/disclosure/present/1.0/payload.js +211 -0
- package/dist/persona/disclosure/present/1.0/payload.js.map +1 -0
- package/dist/persona/disclosure/preview/1.0/payload.d.ts +858 -0
- package/dist/persona/disclosure/preview/1.0/payload.d.ts.map +1 -0
- package/dist/persona/disclosure/preview/1.0/payload.js +480 -0
- package/dist/persona/disclosure/preview/1.0/payload.js.map +1 -0
- package/dist/persona/local/binding/set/1.0/payload.d.ts +394 -0
- package/dist/persona/local/binding/set/1.0/payload.d.ts.map +1 -0
- package/dist/persona/local/binding/set/1.0/payload.js +226 -0
- package/dist/persona/local/binding/set/1.0/payload.js.map +1 -0
- package/dist/persona/local/profile/delete/1.0/payload.d.ts +311 -0
- package/dist/persona/local/profile/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/local/profile/delete/1.0/payload.js +173 -0
- package/dist/persona/local/profile/delete/1.0/payload.js.map +1 -0
- package/dist/persona/local/profile/get/1.0/payload.d.ts +368 -0
- package/dist/persona/local/profile/get/1.0/payload.d.ts.map +1 -0
- package/dist/persona/local/profile/get/1.0/payload.js +210 -0
- package/dist/persona/local/profile/get/1.0/payload.js.map +1 -0
- package/dist/persona/local/profile/list/1.0/payload.d.ts +387 -0
- package/dist/persona/local/profile/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/local/profile/list/1.0/payload.js +214 -0
- package/dist/persona/local/profile/list/1.0/payload.js.map +1 -0
- package/dist/persona/local/profile/put/1.0/payload.d.ts +545 -0
- package/dist/persona/local/profile/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/local/profile/put/1.0/payload.js +315 -0
- package/dist/persona/local/profile/put/1.0/payload.js.map +1 -0
- package/dist/persona/profile/delete/1.0/payload.d.ts +350 -0
- package/dist/persona/profile/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/delete/1.0/payload.js +189 -0
- package/dist/persona/profile/delete/1.0/payload.js.map +1 -0
- package/dist/persona/profile/get/1.0/payload.d.ts +1307 -0
- package/dist/persona/profile/get/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/get/1.0/payload.js +804 -0
- package/dist/persona/profile/get/1.0/payload.js.map +1 -0
- package/dist/persona/profile/list/1.0/payload.d.ts +1120 -0
- package/dist/persona/profile/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/list/1.0/payload.js +680 -0
- package/dist/persona/profile/list/1.0/payload.js.map +1 -0
- package/dist/persona/profile/put/1.0/payload.d.ts +1115 -0
- package/dist/persona/profile/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/put/1.0/payload.js +675 -0
- package/dist/persona/profile/put/1.0/payload.js.map +1 -0
- package/dist/persona/renderers/list/1.0/payload.d.ts +362 -0
- package/dist/persona/renderers/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/renderers/list/1.0/payload.js +197 -0
- package/dist/persona/renderers/list/1.0/payload.js.map +1 -0
- package/dist/rooms/keys/commit/0.1/payload.d.ts +266 -0
- package/dist/rooms/keys/commit/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/commit/0.1/payload.js +146 -0
- package/dist/rooms/keys/commit/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/key-package/0.1/payload.d.ts +272 -0
- package/dist/rooms/keys/key-package/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/key-package/0.1/payload.js +147 -0
- package/dist/rooms/keys/key-package/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/welcome/0.1/payload.d.ts +276 -0
- package/dist/rooms/keys/welcome/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/welcome/0.1/payload.js +148 -0
- package/dist/rooms/keys/welcome/0.1/payload.js.map +1 -0
- package/dist/rooms/owner/claim/0.1/payload.d.ts +391 -0
- package/dist/rooms/owner/claim/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/owner/claim/0.1/payload.js +214 -0
- package/dist/rooms/owner/claim/0.1/payload.js.map +1 -0
- package/dist/rooms/owner/transfer/0.1/payload.d.ts +391 -0
- package/dist/rooms/owner/transfer/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/owner/transfer/0.1/payload.js +214 -0
- package/dist/rooms/owner/transfer/0.1/payload.js.map +1 -0
- package/dist/rooms/records/curate/0.1/payload.d.ts +500 -0
- package/dist/rooms/records/curate/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/records/curate/0.1/payload.js +277 -0
- package/dist/rooms/records/curate/0.1/payload.js.map +1 -0
- package/dist/vta/_shared/0.1/app-state-record.d.ts +1 -1
- package/dist/vta/_shared/0.1/app-state-record.d.ts.map +1 -1
- package/dist/vta/app-state/delete/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/delete/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/get/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/get/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/get-many/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/get-many/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/list/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/list/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/put/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/put/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/put-many/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/put-many/1.0/payload.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/_shared/components.ts +217 -7
- package/src/device/list/0.1/payload.ts +6 -2
- package/src/device/list/0.2/payload.ts +6 -2
- package/src/device/register/0.1/payload.ts +6 -2
- package/src/device/register/0.2/payload.ts +6 -2
- package/src/index.ts +31 -0
- package/src/persona/_shared/0.1/persona-record.ts +23 -0
- package/src/persona/attribute/delete/1.0/payload.ts +238 -0
- package/src/persona/attribute/list/1.0/payload.ts +590 -0
- package/src/persona/attribute/put/1.0/payload.ts +559 -0
- package/src/persona/binding/get/1.0/payload.ts +257 -0
- package/src/persona/binding/list/1.0/payload.ts +260 -0
- package/src/persona/binding/set/1.0/payload.ts +370 -0
- package/src/persona/contact/delete/1.0/payload.ts +216 -0
- package/src/persona/contact/get/1.0/payload.ts +662 -0
- package/src/persona/contact/list/1.0/payload.ts +323 -0
- package/src/persona/contact/put/1.0/payload.ts +580 -0
- package/src/persona/correlation/analyze/1.0/payload.ts +466 -0
- package/src/persona/disclosure/history/1.0/payload.ts +415 -0
- package/src/persona/disclosure/present/1.0/payload.ts +274 -0
- package/src/persona/disclosure/preview/1.0/payload.ts +597 -0
- package/src/persona/local/binding/set/1.0/payload.ts +267 -0
- package/src/persona/local/profile/delete/1.0/payload.ts +215 -0
- package/src/persona/local/profile/get/1.0/payload.ts +251 -0
- package/src/persona/local/profile/list/1.0/payload.ts +260 -0
- package/src/persona/local/profile/put/1.0/payload.ts +373 -0
- package/src/persona/profile/delete/1.0/payload.ts +236 -0
- package/src/persona/profile/get/1.0/payload.ts +846 -0
- package/src/persona/profile/list/1.0/payload.ts +723 -0
- package/src/persona/profile/put/1.0/payload.ts +741 -0
- package/src/persona/renderers/list/1.0/payload.ts +248 -0
- package/src/rooms/keys/commit/0.1/payload.ts +195 -0
- package/src/rooms/keys/key-package/0.1/payload.ts +196 -0
- package/src/rooms/keys/welcome/0.1/payload.ts +201 -0
- package/src/rooms/owner/claim/0.1/payload.ts +268 -0
- package/src/rooms/owner/transfer/0.1/payload.ts +268 -0
- package/src/rooms/records/curate/0.1/payload.ts +357 -0
- package/src/vta/_shared/0.1/app-state-record.ts +1 -1
- package/src/vta/app-state/delete/1.0/payload.ts +1 -1
- package/src/vta/app-state/get/1.0/payload.ts +1 -1
- package/src/vta/app-state/get-many/1.0/payload.ts +1 -1
- package/src/vta/app-state/list/1.0/payload.ts +1 -1
- package/src/vta/app-state/put/1.0/payload.ts +1 -1
- package/src/vta/app-state/put-many/1.0/payload.ts +1 -1
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/persona/renderers/list/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Enumerate the output formats this agent can present in, and what each one discards. A client cannot negotiate a format it cannot discover.
|
|
11
|
+
*/
|
|
12
|
+
export interface PersonaRenderersListPayload {
|
|
13
|
+
ext?: Ext;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Success response to persona/renderers/list. Type https://trusttasks.org/spec/persona/renderers/list/1.0#response.
|
|
17
|
+
*/
|
|
18
|
+
export interface PersonaRenderersListResponsePayload {
|
|
19
|
+
/**
|
|
20
|
+
* @maxItems 32
|
|
21
|
+
*/
|
|
22
|
+
renderers: {
|
|
23
|
+
id: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
/**
|
|
26
|
+
* True for the maintainer's lossless native form, used when a producer names no renderer. Exactly one renderer is canonical.
|
|
27
|
+
*/
|
|
28
|
+
canonical?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* What this format discards — commonly provenance, because most general-purpose contact formats have nowhere to put it. Declared here so that lossiness is negotiated rather than discovered by a holder afterwards.
|
|
31
|
+
*
|
|
32
|
+
* @maxItems 32
|
|
33
|
+
*/
|
|
34
|
+
drops: string[];
|
|
35
|
+
/**
|
|
36
|
+
* Whether the format can represent a claim proven rather than shown. Most cannot: there is no field in a general contact format for 'over the threshold'. A disclosure containing a predicate through a renderer that cannot carry one fails at negotiation rather than silently dropping the claim.
|
|
37
|
+
*/
|
|
38
|
+
canCarryPredicates: boolean;
|
|
39
|
+
}[];
|
|
40
|
+
ext?: Ext;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
44
|
+
export type { Ext };
|
|
45
|
+
|
|
46
|
+
/** Trust Task type URI. */
|
|
47
|
+
export const TYPE_URI = "https://trusttasks.org/spec/persona/renderers/list/1.0" as const;
|
|
48
|
+
|
|
49
|
+
/** Stable alias for this specification's request payload shape. */
|
|
50
|
+
export type Payload = PersonaRenderersListPayload;
|
|
51
|
+
|
|
52
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
53
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/persona/renderers/list/1.0#response" as const;
|
|
54
|
+
|
|
55
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
56
|
+
export type Response = PersonaRenderersListResponsePayload;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* This specification's payload schema, as a value.
|
|
60
|
+
*
|
|
61
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
62
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
63
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
64
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
65
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
66
|
+
*/
|
|
67
|
+
export const PAYLOAD_SCHEMA = {
|
|
68
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
69
|
+
"$id": "https://trusttasks.org/spec/persona/renderers/list/1.0",
|
|
70
|
+
"title": "Persona Renderers List — payload",
|
|
71
|
+
"description": "Enumerate the output formats this agent can present in, and what each one discards. A client cannot negotiate a format it cannot discover.",
|
|
72
|
+
"type": "object",
|
|
73
|
+
"additionalProperties": false,
|
|
74
|
+
"properties": {
|
|
75
|
+
"ext": {
|
|
76
|
+
"$ref": "#/$defs/Ext"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"$defs": {
|
|
80
|
+
"Response": {
|
|
81
|
+
"$anchor": "response",
|
|
82
|
+
"title": "Persona Renderers List — response payload",
|
|
83
|
+
"description": "Success response to persona/renderers/list. Type https://trusttasks.org/spec/persona/renderers/list/1.0#response.",
|
|
84
|
+
"type": "object",
|
|
85
|
+
"additionalProperties": false,
|
|
86
|
+
"required": [
|
|
87
|
+
"renderers"
|
|
88
|
+
],
|
|
89
|
+
"properties": {
|
|
90
|
+
"renderers": {
|
|
91
|
+
"type": "array",
|
|
92
|
+
"maxItems": 32,
|
|
93
|
+
"items": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"additionalProperties": false,
|
|
96
|
+
"required": [
|
|
97
|
+
"id",
|
|
98
|
+
"drops",
|
|
99
|
+
"canCarryPredicates"
|
|
100
|
+
],
|
|
101
|
+
"properties": {
|
|
102
|
+
"id": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"maxLength": 64
|
|
105
|
+
},
|
|
106
|
+
"description": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"maxLength": 512
|
|
109
|
+
},
|
|
110
|
+
"canonical": {
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"description": "True for the maintainer's lossless native form, used when a producer names no renderer. Exactly one renderer is canonical."
|
|
113
|
+
},
|
|
114
|
+
"drops": {
|
|
115
|
+
"type": "array",
|
|
116
|
+
"maxItems": 32,
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"maxLength": 64
|
|
120
|
+
},
|
|
121
|
+
"description": "What this format discards — commonly provenance, because most general-purpose contact formats have nowhere to put it. Declared here so that lossiness is negotiated rather than discovered by a holder afterwards."
|
|
122
|
+
},
|
|
123
|
+
"canCarryPredicates": {
|
|
124
|
+
"type": "boolean",
|
|
125
|
+
"description": "Whether the format can represent a claim proven rather than shown. Most cannot: there is no field in a general contact format for 'over the threshold'. A disclosure containing a predicate through a renderer that cannot carry one fails at negotiation rather than silently dropping the claim."
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"ext": {
|
|
131
|
+
"$ref": "#/$defs/Ext"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"Ext": {
|
|
136
|
+
"title": "Ext",
|
|
137
|
+
"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.",
|
|
138
|
+
"type": "object",
|
|
139
|
+
"minProperties": 1,
|
|
140
|
+
"additionalProperties": true,
|
|
141
|
+
"propertyNames": {
|
|
142
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
} as const;
|
|
147
|
+
|
|
148
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
149
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
150
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
151
|
+
"$ref": "#/$defs/Response",
|
|
152
|
+
"$defs": {
|
|
153
|
+
"Response": {
|
|
154
|
+
"$anchor": "response",
|
|
155
|
+
"title": "Persona Renderers List — response payload",
|
|
156
|
+
"description": "Success response to persona/renderers/list. Type https://trusttasks.org/spec/persona/renderers/list/1.0#response.",
|
|
157
|
+
"type": "object",
|
|
158
|
+
"additionalProperties": false,
|
|
159
|
+
"required": [
|
|
160
|
+
"renderers"
|
|
161
|
+
],
|
|
162
|
+
"properties": {
|
|
163
|
+
"renderers": {
|
|
164
|
+
"type": "array",
|
|
165
|
+
"maxItems": 32,
|
|
166
|
+
"items": {
|
|
167
|
+
"type": "object",
|
|
168
|
+
"additionalProperties": false,
|
|
169
|
+
"required": [
|
|
170
|
+
"id",
|
|
171
|
+
"drops",
|
|
172
|
+
"canCarryPredicates"
|
|
173
|
+
],
|
|
174
|
+
"properties": {
|
|
175
|
+
"id": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"maxLength": 64
|
|
178
|
+
},
|
|
179
|
+
"description": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"maxLength": 512
|
|
182
|
+
},
|
|
183
|
+
"canonical": {
|
|
184
|
+
"type": "boolean",
|
|
185
|
+
"description": "True for the maintainer's lossless native form, used when a producer names no renderer. Exactly one renderer is canonical."
|
|
186
|
+
},
|
|
187
|
+
"drops": {
|
|
188
|
+
"type": "array",
|
|
189
|
+
"maxItems": 32,
|
|
190
|
+
"items": {
|
|
191
|
+
"type": "string",
|
|
192
|
+
"maxLength": 64
|
|
193
|
+
},
|
|
194
|
+
"description": "What this format discards — commonly provenance, because most general-purpose contact formats have nowhere to put it. Declared here so that lossiness is negotiated rather than discovered by a holder afterwards."
|
|
195
|
+
},
|
|
196
|
+
"canCarryPredicates": {
|
|
197
|
+
"type": "boolean",
|
|
198
|
+
"description": "Whether the format can represent a claim proven rather than shown. Most cannot: there is no field in a general contact format for 'over the threshold'. A disclosure containing a predicate through a renderer that cannot carry one fails at negotiation rather than silently dropping the claim."
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"ext": {
|
|
204
|
+
"$ref": "#/$defs/Ext"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"Ext": {
|
|
209
|
+
"title": "Ext",
|
|
210
|
+
"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.",
|
|
211
|
+
"type": "object",
|
|
212
|
+
"minProperties": 1,
|
|
213
|
+
"additionalProperties": true,
|
|
214
|
+
"propertyNames": {
|
|
215
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
} as const;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
223
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
224
|
+
* per-specification and cannot be derived from the document alone, and
|
|
225
|
+
* item 2 needs the schema this carries.
|
|
226
|
+
*/
|
|
227
|
+
export const SPEC = {
|
|
228
|
+
typeUri: TYPE_URI,
|
|
229
|
+
isBearer: false,
|
|
230
|
+
isProofRequired: true,
|
|
231
|
+
isRecipientRequired: true,
|
|
232
|
+
isIssuedAtRequired: false,
|
|
233
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
234
|
+
} as const;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
238
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
239
|
+
* parties (§7.3 item 5).
|
|
240
|
+
*/
|
|
241
|
+
export const RESPONSE_SPEC = {
|
|
242
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
243
|
+
isBearer: false,
|
|
244
|
+
isProofRequired: true,
|
|
245
|
+
isRecipientRequired: true,
|
|
246
|
+
isIssuedAtRequired: false,
|
|
247
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
248
|
+
} as const;
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/keys/commit/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A room's owner delivers an MLS Commit to a member's key-holding agent, advancing it one epoch. Every member must apply every commit, in order: an agent that misses one is stuck at its last epoch and can open nothing sealed after it.
|
|
11
|
+
*/
|
|
12
|
+
export interface RoomsKeysCommitPayload {
|
|
13
|
+
/**
|
|
14
|
+
* The room whose group is advancing.
|
|
15
|
+
*/
|
|
16
|
+
roomId: string;
|
|
17
|
+
/**
|
|
18
|
+
* The MLS Commit message, base64url.
|
|
19
|
+
*/
|
|
20
|
+
commit: string;
|
|
21
|
+
/**
|
|
22
|
+
* The MLS epoch this commit produces — the recipient's epoch after applying it. Stated so a recipient can tell a replay from a gap without parsing the commit: equal to its current epoch is a replay, more than one ahead is a gap.
|
|
23
|
+
*/
|
|
24
|
+
epoch: number;
|
|
25
|
+
/**
|
|
26
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
27
|
+
*/
|
|
28
|
+
ext?: Ext;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Success response to rooms/keys/commit. Type https://trusttasks.org/spec/rooms/keys/commit/0.1#response.
|
|
32
|
+
*/
|
|
33
|
+
export interface RoomsKeysCommitResponsePayload {
|
|
34
|
+
/**
|
|
35
|
+
* The recipient's epoch after the operation. On a replay this is unchanged, which is how a sender distinguishes 'applied' from 'already had it' without either being an error.
|
|
36
|
+
*/
|
|
37
|
+
epoch: number;
|
|
38
|
+
ext?: Ext;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
42
|
+
export type { Ext };
|
|
43
|
+
|
|
44
|
+
/** Trust Task type URI. */
|
|
45
|
+
export const TYPE_URI = "https://trusttasks.org/spec/rooms/keys/commit/0.1" as const;
|
|
46
|
+
|
|
47
|
+
/** Stable alias for this specification's request payload shape. */
|
|
48
|
+
export type Payload = RoomsKeysCommitPayload;
|
|
49
|
+
|
|
50
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
51
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/keys/commit/0.1#response" as const;
|
|
52
|
+
|
|
53
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
54
|
+
export type Response = RoomsKeysCommitResponsePayload;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* This specification's payload schema, as a value.
|
|
58
|
+
*
|
|
59
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
60
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
61
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
62
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
63
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
64
|
+
*/
|
|
65
|
+
export const PAYLOAD_SCHEMA = {
|
|
66
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
67
|
+
"$id": "https://trusttasks.org/spec/rooms/keys/commit/0.1",
|
|
68
|
+
"title": "Rooms Keys Commit — payload",
|
|
69
|
+
"description": "A room's owner delivers an MLS Commit to a member's key-holding agent, advancing it one epoch. Every member must apply every commit, in order: an agent that misses one is stuck at its last epoch and can open nothing sealed after it.",
|
|
70
|
+
"type": "object",
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"required": [
|
|
73
|
+
"roomId",
|
|
74
|
+
"commit",
|
|
75
|
+
"epoch"
|
|
76
|
+
],
|
|
77
|
+
"properties": {
|
|
78
|
+
"roomId": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"description": "The room whose group is advancing."
|
|
81
|
+
},
|
|
82
|
+
"commit": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"description": "The MLS Commit message, base64url."
|
|
85
|
+
},
|
|
86
|
+
"epoch": {
|
|
87
|
+
"type": "integer",
|
|
88
|
+
"minimum": 1,
|
|
89
|
+
"description": "The MLS epoch this commit produces — the recipient's epoch after applying it. Stated so a recipient can tell a replay from a gap without parsing the commit: equal to its current epoch is a replay, more than one ahead is a gap."
|
|
90
|
+
},
|
|
91
|
+
"ext": {
|
|
92
|
+
"$ref": "#/$defs/Ext",
|
|
93
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"$defs": {
|
|
97
|
+
"Response": {
|
|
98
|
+
"$anchor": "response",
|
|
99
|
+
"title": "Rooms Keys Commit — response payload",
|
|
100
|
+
"description": "Success response to rooms/keys/commit. Type https://trusttasks.org/spec/rooms/keys/commit/0.1#response.",
|
|
101
|
+
"type": "object",
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"required": [
|
|
104
|
+
"epoch"
|
|
105
|
+
],
|
|
106
|
+
"properties": {
|
|
107
|
+
"epoch": {
|
|
108
|
+
"type": "integer",
|
|
109
|
+
"minimum": 0,
|
|
110
|
+
"description": "The recipient's epoch after the operation. On a replay this is unchanged, which is how a sender distinguishes 'applied' from 'already had it' without either being an error."
|
|
111
|
+
},
|
|
112
|
+
"ext": {
|
|
113
|
+
"$ref": "#/$defs/Ext"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"Ext": {
|
|
118
|
+
"title": "Ext",
|
|
119
|
+
"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.",
|
|
120
|
+
"type": "object",
|
|
121
|
+
"minProperties": 1,
|
|
122
|
+
"additionalProperties": true,
|
|
123
|
+
"propertyNames": {
|
|
124
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
} as const;
|
|
129
|
+
|
|
130
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
131
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
132
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
133
|
+
"$ref": "#/$defs/Response",
|
|
134
|
+
"$defs": {
|
|
135
|
+
"Response": {
|
|
136
|
+
"$anchor": "response",
|
|
137
|
+
"title": "Rooms Keys Commit — response payload",
|
|
138
|
+
"description": "Success response to rooms/keys/commit. Type https://trusttasks.org/spec/rooms/keys/commit/0.1#response.",
|
|
139
|
+
"type": "object",
|
|
140
|
+
"additionalProperties": false,
|
|
141
|
+
"required": [
|
|
142
|
+
"epoch"
|
|
143
|
+
],
|
|
144
|
+
"properties": {
|
|
145
|
+
"epoch": {
|
|
146
|
+
"type": "integer",
|
|
147
|
+
"minimum": 0,
|
|
148
|
+
"description": "The recipient's epoch after the operation. On a replay this is unchanged, which is how a sender distinguishes 'applied' from 'already had it' without either being an error."
|
|
149
|
+
},
|
|
150
|
+
"ext": {
|
|
151
|
+
"$ref": "#/$defs/Ext"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"Ext": {
|
|
156
|
+
"title": "Ext",
|
|
157
|
+
"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.",
|
|
158
|
+
"type": "object",
|
|
159
|
+
"minProperties": 1,
|
|
160
|
+
"additionalProperties": true,
|
|
161
|
+
"propertyNames": {
|
|
162
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
} as const;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
170
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
171
|
+
* per-specification and cannot be derived from the document alone, and
|
|
172
|
+
* item 2 needs the schema this carries.
|
|
173
|
+
*/
|
|
174
|
+
export const SPEC = {
|
|
175
|
+
typeUri: TYPE_URI,
|
|
176
|
+
isBearer: false,
|
|
177
|
+
isProofRequired: true,
|
|
178
|
+
isRecipientRequired: true,
|
|
179
|
+
isIssuedAtRequired: true,
|
|
180
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
181
|
+
} as const;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
185
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
186
|
+
* parties (§7.3 item 5).
|
|
187
|
+
*/
|
|
188
|
+
export const RESPONSE_SPEC = {
|
|
189
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
190
|
+
isBearer: false,
|
|
191
|
+
isProofRequired: true,
|
|
192
|
+
isRecipientRequired: true,
|
|
193
|
+
isIssuedAtRequired: true,
|
|
194
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
195
|
+
} as const;
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/keys/key-package/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* An invited party asks the agent that will hold its room keys to mint an MLS KeyPackage, so the room's owner can add it to the group. The private half stays with the agent; only the KeyPackage travels.
|
|
11
|
+
*/
|
|
12
|
+
export interface RoomsKeysKeyPackagePayload {
|
|
13
|
+
/**
|
|
14
|
+
* The room to mint a KeyPackage for. Scoped per room rather than reused across rooms: one KeyPackage presented to two rooms correlates a member across them, which is the linkage a `private` room exists to deny.
|
|
15
|
+
*/
|
|
16
|
+
roomId: string;
|
|
17
|
+
/**
|
|
18
|
+
* The invitation credential (VIC) the room issued to this party, serialized per the governing profile. Where an implementation requires one — and one that mints group state on unauthenticated request should — this is what authorizes the mint.
|
|
19
|
+
*/
|
|
20
|
+
invitation?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
23
|
+
*/
|
|
24
|
+
ext?: Ext;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Success response to rooms/keys/key-package. Type https://trusttasks.org/spec/rooms/keys/key-package/0.1#response.
|
|
28
|
+
*/
|
|
29
|
+
export interface RoomsKeysKeyPackageResponsePayload {
|
|
30
|
+
/**
|
|
31
|
+
* The MLS KeyPackage, base64url. Public: it carries a signature key, an HPKE init key and the leaf's credential, and nothing that opens anything.
|
|
32
|
+
*/
|
|
33
|
+
keyPackage: string;
|
|
34
|
+
/**
|
|
35
|
+
* When the KeyPackage stops being offered. A KeyPackage is single-use and an unused one is retained key material, so an implementation SHOULD bound how long it holds the private half.
|
|
36
|
+
*/
|
|
37
|
+
expiresAt?: string;
|
|
38
|
+
ext?: Ext;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
42
|
+
export type { Ext };
|
|
43
|
+
|
|
44
|
+
/** Trust Task type URI. */
|
|
45
|
+
export const TYPE_URI = "https://trusttasks.org/spec/rooms/keys/key-package/0.1" as const;
|
|
46
|
+
|
|
47
|
+
/** Stable alias for this specification's request payload shape. */
|
|
48
|
+
export type Payload = RoomsKeysKeyPackagePayload;
|
|
49
|
+
|
|
50
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
51
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/keys/key-package/0.1#response" as const;
|
|
52
|
+
|
|
53
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
54
|
+
export type Response = RoomsKeysKeyPackageResponsePayload;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* This specification's payload schema, as a value.
|
|
58
|
+
*
|
|
59
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
60
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
61
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
62
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
63
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
64
|
+
*/
|
|
65
|
+
export const PAYLOAD_SCHEMA = {
|
|
66
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
67
|
+
"$id": "https://trusttasks.org/spec/rooms/keys/key-package/0.1",
|
|
68
|
+
"title": "Rooms Keys Key-Package — payload",
|
|
69
|
+
"description": "An invited party asks the agent that will hold its room keys to mint an MLS KeyPackage, so the room's owner can add it to the group. The private half stays with the agent; only the KeyPackage travels.",
|
|
70
|
+
"type": "object",
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"required": [
|
|
73
|
+
"roomId"
|
|
74
|
+
],
|
|
75
|
+
"properties": {
|
|
76
|
+
"roomId": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"description": "The room to mint a KeyPackage for. Scoped per room rather than reused across rooms: one KeyPackage presented to two rooms correlates a member across them, which is the linkage a `private` room exists to deny."
|
|
79
|
+
},
|
|
80
|
+
"invitation": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"description": "The invitation credential (VIC) the room issued to this party, serialized per the governing profile. Where an implementation requires one — and one that mints group state on unauthenticated request should — this is what authorizes the mint."
|
|
83
|
+
},
|
|
84
|
+
"ext": {
|
|
85
|
+
"$ref": "#/$defs/Ext",
|
|
86
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"$defs": {
|
|
90
|
+
"Response": {
|
|
91
|
+
"$anchor": "response",
|
|
92
|
+
"title": "Rooms Keys Key-Package — response payload",
|
|
93
|
+
"description": "Success response to rooms/keys/key-package. Type https://trusttasks.org/spec/rooms/keys/key-package/0.1#response.",
|
|
94
|
+
"type": "object",
|
|
95
|
+
"additionalProperties": false,
|
|
96
|
+
"required": [
|
|
97
|
+
"keyPackage"
|
|
98
|
+
],
|
|
99
|
+
"properties": {
|
|
100
|
+
"keyPackage": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"description": "The MLS KeyPackage, base64url. Public: it carries a signature key, an HPKE init key and the leaf's credential, and nothing that opens anything."
|
|
103
|
+
},
|
|
104
|
+
"expiresAt": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"format": "date-time",
|
|
107
|
+
"description": "When the KeyPackage stops being offered. A KeyPackage is single-use and an unused one is retained key material, so an implementation SHOULD bound how long it holds the private half."
|
|
108
|
+
},
|
|
109
|
+
"ext": {
|
|
110
|
+
"$ref": "#/$defs/Ext"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"Ext": {
|
|
115
|
+
"title": "Ext",
|
|
116
|
+
"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.",
|
|
117
|
+
"type": "object",
|
|
118
|
+
"minProperties": 1,
|
|
119
|
+
"additionalProperties": true,
|
|
120
|
+
"propertyNames": {
|
|
121
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
} as const;
|
|
126
|
+
|
|
127
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
128
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
129
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
130
|
+
"$ref": "#/$defs/Response",
|
|
131
|
+
"$defs": {
|
|
132
|
+
"Response": {
|
|
133
|
+
"$anchor": "response",
|
|
134
|
+
"title": "Rooms Keys Key-Package — response payload",
|
|
135
|
+
"description": "Success response to rooms/keys/key-package. Type https://trusttasks.org/spec/rooms/keys/key-package/0.1#response.",
|
|
136
|
+
"type": "object",
|
|
137
|
+
"additionalProperties": false,
|
|
138
|
+
"required": [
|
|
139
|
+
"keyPackage"
|
|
140
|
+
],
|
|
141
|
+
"properties": {
|
|
142
|
+
"keyPackage": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"description": "The MLS KeyPackage, base64url. Public: it carries a signature key, an HPKE init key and the leaf's credential, and nothing that opens anything."
|
|
145
|
+
},
|
|
146
|
+
"expiresAt": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"format": "date-time",
|
|
149
|
+
"description": "When the KeyPackage stops being offered. A KeyPackage is single-use and an unused one is retained key material, so an implementation SHOULD bound how long it holds the private half."
|
|
150
|
+
},
|
|
151
|
+
"ext": {
|
|
152
|
+
"$ref": "#/$defs/Ext"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"Ext": {
|
|
157
|
+
"title": "Ext",
|
|
158
|
+
"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.",
|
|
159
|
+
"type": "object",
|
|
160
|
+
"minProperties": 1,
|
|
161
|
+
"additionalProperties": true,
|
|
162
|
+
"propertyNames": {
|
|
163
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
} as const;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
171
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
172
|
+
* per-specification and cannot be derived from the document alone, and
|
|
173
|
+
* item 2 needs the schema this carries.
|
|
174
|
+
*/
|
|
175
|
+
export const SPEC = {
|
|
176
|
+
typeUri: TYPE_URI,
|
|
177
|
+
isBearer: false,
|
|
178
|
+
isProofRequired: true,
|
|
179
|
+
isRecipientRequired: true,
|
|
180
|
+
isIssuedAtRequired: true,
|
|
181
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
182
|
+
} as const;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
186
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
187
|
+
* parties (§7.3 item 5).
|
|
188
|
+
*/
|
|
189
|
+
export const RESPONSE_SPEC = {
|
|
190
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
191
|
+
isBearer: false,
|
|
192
|
+
isProofRequired: true,
|
|
193
|
+
isRecipientRequired: true,
|
|
194
|
+
isIssuedAtRequired: true,
|
|
195
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
196
|
+
} as const;
|