@openvtc/trust-tasks 0.21.10 → 0.21.12

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.
Files changed (208) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/dist/_framework/0.4/framework.d.ts +1 -1
  3. package/dist/_framework/0.4/framework.d.ts.map +1 -1
  4. package/dist/_shared/components.d.ts +371 -0
  5. package/dist/_shared/components.d.ts.map +1 -1
  6. package/dist/auth/_shared/0.1/signing-key.d.ts +16 -0
  7. package/dist/auth/_shared/0.1/signing-key.d.ts.map +1 -0
  8. package/dist/auth/_shared/0.1/signing-key.js +6 -0
  9. package/dist/auth/_shared/0.1/signing-key.js.map +1 -0
  10. package/dist/auth/signing-key/enroll/0.1/payload.d.ts +545 -0
  11. package/dist/auth/signing-key/enroll/0.1/payload.d.ts.map +1 -0
  12. package/dist/auth/signing-key/enroll/0.1/payload.js +307 -0
  13. package/dist/auth/signing-key/enroll/0.1/payload.js.map +1 -0
  14. package/dist/auth/signing-key/list/0.1/payload.d.ts +509 -0
  15. package/dist/auth/signing-key/list/0.1/payload.d.ts.map +1 -0
  16. package/dist/auth/signing-key/list/0.1/payload.js +289 -0
  17. package/dist/auth/signing-key/list/0.1/payload.js.map +1 -0
  18. package/dist/auth/signing-key/revoke/0.1/payload.d.ts +292 -0
  19. package/dist/auth/signing-key/revoke/0.1/payload.d.ts.map +1 -0
  20. package/dist/auth/signing-key/revoke/0.1/payload.js +167 -0
  21. package/dist/auth/signing-key/revoke/0.1/payload.js.map +1 -0
  22. package/dist/index.d.ts +39 -0
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +39 -0
  25. package/dist/index.js.map +1 -1
  26. package/dist/trust-task-discovery/0.3/payload.d.ts +483 -0
  27. package/dist/trust-task-discovery/0.3/payload.d.ts.map +1 -0
  28. package/dist/trust-task-discovery/0.3/payload.js +242 -0
  29. package/dist/trust-task-discovery/0.3/payload.js.map +1 -0
  30. package/dist/vtc/_shared/0.1/community-presentation.d.ts +16 -0
  31. package/dist/vtc/_shared/0.1/community-presentation.d.ts.map +1 -0
  32. package/dist/vtc/_shared/0.1/community-presentation.js +6 -0
  33. package/dist/vtc/_shared/0.1/community-presentation.js.map +1 -0
  34. package/dist/vtc/_shared/0.1/relationship-lifecycle.d.ts +16 -0
  35. package/dist/vtc/_shared/0.1/relationship-lifecycle.d.ts.map +1 -0
  36. package/dist/vtc/_shared/0.1/relationship-lifecycle.js +6 -0
  37. package/dist/vtc/_shared/0.1/relationship-lifecycle.js.map +1 -0
  38. package/dist/vtc/_shared/0.1/schema-registry.d.ts +16 -0
  39. package/dist/vtc/_shared/0.1/schema-registry.d.ts.map +1 -0
  40. package/dist/vtc/_shared/0.1/schema-registry.js +6 -0
  41. package/dist/vtc/_shared/0.1/schema-registry.js.map +1 -0
  42. package/dist/vtc/_shared/0.1/vetting-auto-grant.d.ts +16 -0
  43. package/dist/vtc/_shared/0.1/vetting-auto-grant.d.ts.map +1 -0
  44. package/dist/vtc/_shared/0.1/vetting-auto-grant.js +6 -0
  45. package/dist/vtc/_shared/0.1/vetting-auto-grant.js.map +1 -0
  46. package/dist/vtc/_shared/0.1/website-transfer.d.ts +16 -0
  47. package/dist/vtc/_shared/0.1/website-transfer.d.ts.map +1 -0
  48. package/dist/vtc/_shared/0.1/website-transfer.js +6 -0
  49. package/dist/vtc/_shared/0.1/website-transfer.js.map +1 -0
  50. package/dist/vtc/community/branding/show/0.1/payload.d.ts +319 -0
  51. package/dist/vtc/community/branding/show/0.1/payload.d.ts.map +1 -0
  52. package/dist/vtc/community/branding/show/0.1/payload.js +179 -0
  53. package/dist/vtc/community/branding/show/0.1/payload.js.map +1 -0
  54. package/dist/vtc/community/branding/update/0.1/payload.d.ts +328 -0
  55. package/dist/vtc/community/branding/update/0.1/payload.d.ts.map +1 -0
  56. package/dist/vtc/community/branding/update/0.1/payload.js +185 -0
  57. package/dist/vtc/community/branding/update/0.1/payload.js.map +1 -0
  58. package/dist/vtc/community/join-discovery/show/0.1/payload.d.ts +267 -0
  59. package/dist/vtc/community/join-discovery/show/0.1/payload.d.ts.map +1 -0
  60. package/dist/vtc/community/join-discovery/show/0.1/payload.js +157 -0
  61. package/dist/vtc/community/join-discovery/show/0.1/payload.js.map +1 -0
  62. package/dist/vtc/community/join-discovery/update/0.1/payload.d.ts +276 -0
  63. package/dist/vtc/community/join-discovery/update/0.1/payload.d.ts.map +1 -0
  64. package/dist/vtc/community/join-discovery/update/0.1/payload.js +163 -0
  65. package/dist/vtc/community/join-discovery/update/0.1/payload.js.map +1 -0
  66. package/dist/vtc/community/requested-attributes/show/0.1/payload.d.ts +339 -0
  67. package/dist/vtc/community/requested-attributes/show/0.1/payload.d.ts.map +1 -0
  68. package/dist/vtc/community/requested-attributes/show/0.1/payload.js +193 -0
  69. package/dist/vtc/community/requested-attributes/show/0.1/payload.js.map +1 -0
  70. package/dist/vtc/community/requested-attributes/update/0.1/payload.d.ts +348 -0
  71. package/dist/vtc/community/requested-attributes/update/0.1/payload.d.ts.map +1 -0
  72. package/dist/vtc/community/requested-attributes/update/0.1/payload.js +199 -0
  73. package/dist/vtc/community/requested-attributes/update/0.1/payload.js.map +1 -0
  74. package/dist/vtc/join-requests/query/0.1/payload.d.ts +412 -0
  75. package/dist/vtc/join-requests/query/0.1/payload.d.ts.map +1 -0
  76. package/dist/vtc/join-requests/query/0.1/payload.js +228 -0
  77. package/dist/vtc/join-requests/query/0.1/payload.js.map +1 -0
  78. package/dist/vtc/join-requests/vetting/show/0.1/payload.d.ts +1016 -0
  79. package/dist/vtc/join-requests/vetting/show/0.1/payload.d.ts.map +1 -0
  80. package/dist/vtc/join-requests/vetting/show/0.1/payload.js +509 -0
  81. package/dist/vtc/join-requests/vetting/show/0.1/payload.js.map +1 -0
  82. package/dist/vtc/relationships/restore/0.1/payload.d.ts +462 -0
  83. package/dist/vtc/relationships/restore/0.1/payload.d.ts.map +1 -0
  84. package/dist/vtc/relationships/restore/0.1/payload.js +270 -0
  85. package/dist/vtc/relationships/restore/0.1/payload.js.map +1 -0
  86. package/dist/vtc/relationships/suspend/0.1/payload.d.ts +462 -0
  87. package/dist/vtc/relationships/suspend/0.1/payload.d.ts.map +1 -0
  88. package/dist/vtc/relationships/suspend/0.1/payload.js +270 -0
  89. package/dist/vtc/relationships/suspend/0.1/payload.js.map +1 -0
  90. package/dist/vtc/rooms/list/0.1/payload.d.ts +653 -0
  91. package/dist/vtc/rooms/list/0.1/payload.d.ts.map +1 -0
  92. package/dist/vtc/rooms/list/0.1/payload.js +360 -0
  93. package/dist/vtc/rooms/list/0.1/payload.js.map +1 -0
  94. package/dist/vtc/schemas/accepts/delete/0.1/payload.d.ts +240 -0
  95. package/dist/vtc/schemas/accepts/delete/0.1/payload.d.ts.map +1 -0
  96. package/dist/vtc/schemas/accepts/delete/0.1/payload.js +141 -0
  97. package/dist/vtc/schemas/accepts/delete/0.1/payload.js.map +1 -0
  98. package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts +1214 -0
  99. package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts.map +1 -0
  100. package/dist/vtc/schemas/accepts/list/0.1/payload.js +681 -0
  101. package/dist/vtc/schemas/accepts/list/0.1/payload.js.map +1 -0
  102. package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts +1165 -0
  103. package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts.map +1 -0
  104. package/dist/vtc/schemas/accepts/register/0.1/payload.js +665 -0
  105. package/dist/vtc/schemas/accepts/register/0.1/payload.js.map +1 -0
  106. package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts +1144 -0
  107. package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts.map +1 -0
  108. package/dist/vtc/schemas/accepts/show/0.1/payload.js +655 -0
  109. package/dist/vtc/schemas/accepts/show/0.1/payload.js.map +1 -0
  110. package/dist/vtc/schemas/delete/0.1/payload.d.ts +240 -0
  111. package/dist/vtc/schemas/delete/0.1/payload.d.ts.map +1 -0
  112. package/dist/vtc/schemas/delete/0.1/payload.js +141 -0
  113. package/dist/vtc/schemas/delete/0.1/payload.js.map +1 -0
  114. package/dist/vtc/schemas/list/0.1/payload.d.ts +541 -0
  115. package/dist/vtc/schemas/list/0.1/payload.d.ts.map +1 -0
  116. package/dist/vtc/schemas/list/0.1/payload.js +300 -0
  117. package/dist/vtc/schemas/list/0.1/payload.js.map +1 -0
  118. package/dist/vtc/schemas/register/0.1/payload.d.ts +512 -0
  119. package/dist/vtc/schemas/register/0.1/payload.d.ts.map +1 -0
  120. package/dist/vtc/schemas/register/0.1/payload.js +292 -0
  121. package/dist/vtc/schemas/register/0.1/payload.js.map +1 -0
  122. package/dist/vtc/schemas/show/0.1/payload.d.ts +484 -0
  123. package/dist/vtc/schemas/show/0.1/payload.d.ts.map +1 -0
  124. package/dist/vtc/schemas/show/0.1/payload.js +279 -0
  125. package/dist/vtc/schemas/show/0.1/payload.js.map +1 -0
  126. package/dist/vtc/vetting/auto-grant/show/0.1/payload.d.ts +463 -0
  127. package/dist/vtc/vetting/auto-grant/show/0.1/payload.d.ts.map +1 -0
  128. package/dist/vtc/vetting/auto-grant/show/0.1/payload.js +269 -0
  129. package/dist/vtc/vetting/auto-grant/show/0.1/payload.js.map +1 -0
  130. package/dist/vtc/vetting/auto-grant/update/0.1/payload.d.ts +491 -0
  131. package/dist/vtc/vetting/auto-grant/update/0.1/payload.d.ts.map +1 -0
  132. package/dist/vtc/vetting/auto-grant/update/0.1/payload.js +282 -0
  133. package/dist/vtc/vetting/auto-grant/update/0.1/payload.js.map +1 -0
  134. package/dist/vtc/vetting/revocations/list/0.1/payload.d.ts +608 -0
  135. package/dist/vtc/vetting/revocations/list/0.1/payload.d.ts.map +1 -0
  136. package/dist/vtc/vetting/revocations/list/0.1/payload.js +332 -0
  137. package/dist/vtc/vetting/revocations/list/0.1/payload.js.map +1 -0
  138. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.d.ts +992 -0
  139. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.d.ts.map +1 -0
  140. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.js +461 -0
  141. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.js.map +1 -0
  142. package/dist/vtc/website/deploy/0.1/payload.d.ts +369 -0
  143. package/dist/vtc/website/deploy/0.1/payload.d.ts.map +1 -0
  144. package/dist/vtc/website/deploy/0.1/payload.js +213 -0
  145. package/dist/vtc/website/deploy/0.1/payload.js.map +1 -0
  146. package/dist/vtc/website/files/show/0.1/payload.d.ts +455 -0
  147. package/dist/vtc/website/files/show/0.1/payload.d.ts.map +1 -0
  148. package/dist/vtc/website/files/show/0.1/payload.js +247 -0
  149. package/dist/vtc/website/files/show/0.1/payload.js.map +1 -0
  150. package/dist/vtc/website/upload/abort/0.1/payload.d.ts +256 -0
  151. package/dist/vtc/website/upload/abort/0.1/payload.d.ts.map +1 -0
  152. package/dist/vtc/website/upload/abort/0.1/payload.js +149 -0
  153. package/dist/vtc/website/upload/abort/0.1/payload.js.map +1 -0
  154. package/dist/vtc/website/upload/begin/0.1/payload.d.ts +658 -0
  155. package/dist/vtc/website/upload/begin/0.1/payload.d.ts.map +1 -0
  156. package/dist/vtc/website/upload/begin/0.1/payload.js +375 -0
  157. package/dist/vtc/website/upload/begin/0.1/payload.js.map +1 -0
  158. package/dist/vtc/website/upload/chunk/0.1/payload.d.ts +447 -0
  159. package/dist/vtc/website/upload/chunk/0.1/payload.d.ts.map +1 -0
  160. package/dist/vtc/website/upload/chunk/0.1/payload.js +253 -0
  161. package/dist/vtc/website/upload/chunk/0.1/payload.js.map +1 -0
  162. package/dist/vtc/website/upload/commit/0.1/payload.d.ts +603 -0
  163. package/dist/vtc/website/upload/commit/0.1/payload.d.ts.map +1 -0
  164. package/dist/vtc/website/upload/commit/0.1/payload.js +337 -0
  165. package/dist/vtc/website/upload/commit/0.1/payload.js.map +1 -0
  166. package/package.json +1 -1
  167. package/src/_framework/0.4/framework.ts +1 -1
  168. package/src/_shared/components.ts +371 -0
  169. package/src/auth/_shared/0.1/signing-key.ts +17 -0
  170. package/src/auth/signing-key/enroll/0.1/payload.ts +349 -0
  171. package/src/auth/signing-key/list/0.1/payload.ts +323 -0
  172. package/src/auth/signing-key/revoke/0.1/payload.ts +204 -0
  173. package/src/index.ts +39 -0
  174. package/src/trust-task-discovery/0.3/payload.ts +357 -0
  175. package/src/vtc/_shared/0.1/community-presentation.ts +17 -0
  176. package/src/vtc/_shared/0.1/relationship-lifecycle.ts +17 -0
  177. package/src/vtc/_shared/0.1/schema-registry.ts +17 -0
  178. package/src/vtc/_shared/0.1/vetting-auto-grant.ts +17 -0
  179. package/src/vtc/_shared/0.1/website-transfer.ts +17 -0
  180. package/src/vtc/community/branding/show/0.1/payload.ts +207 -0
  181. package/src/vtc/community/branding/update/0.1/payload.ts +214 -0
  182. package/src/vtc/community/join-discovery/show/0.1/payload.ts +185 -0
  183. package/src/vtc/community/join-discovery/update/0.1/payload.ts +192 -0
  184. package/src/vtc/community/requested-attributes/show/0.1/payload.ts +221 -0
  185. package/src/vtc/community/requested-attributes/update/0.1/payload.ts +228 -0
  186. package/src/vtc/join-requests/query/0.1/payload.ts +285 -0
  187. package/src/vtc/join-requests/vetting/show/0.1/payload.ts +740 -0
  188. package/src/vtc/relationships/restore/0.1/payload.ts +307 -0
  189. package/src/vtc/relationships/suspend/0.1/payload.ts +307 -0
  190. package/src/vtc/rooms/list/0.1/payload.ts +449 -0
  191. package/src/vtc/schemas/accepts/delete/0.1/payload.ts +170 -0
  192. package/src/vtc/schemas/accepts/list/0.1/payload.ts +724 -0
  193. package/src/vtc/schemas/accepts/register/0.1/payload.ts +697 -0
  194. package/src/vtc/schemas/accepts/show/0.1/payload.ts +684 -0
  195. package/src/vtc/schemas/delete/0.1/payload.ts +170 -0
  196. package/src/vtc/schemas/list/0.1/payload.ts +344 -0
  197. package/src/vtc/schemas/register/0.1/payload.ts +325 -0
  198. package/src/vtc/schemas/show/0.1/payload.ts +308 -0
  199. package/src/vtc/vetting/auto-grant/show/0.1/payload.ts +297 -0
  200. package/src/vtc/vetting/auto-grant/update/0.1/payload.ts +316 -0
  201. package/src/vtc/vetting/revocations/list/0.1/payload.ts +416 -0
  202. package/src/vtc/vetting/vetters/grants/list/0.1/payload.ts +700 -0
  203. package/src/vtc/website/deploy/0.1/payload.ts +255 -0
  204. package/src/vtc/website/files/show/0.1/payload.ts +303 -0
  205. package/src/vtc/website/upload/abort/0.1/payload.ts +182 -0
  206. package/src/vtc/website/upload/begin/0.1/payload.ts +408 -0
  207. package/src/vtc/website/upload/chunk/0.1/payload.ts +295 -0
  208. package/src/vtc/website/upload/commit/0.1/payload.ts +385 -0
@@ -0,0 +1,307 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/relationships/restore/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext, InForce, LifecycleReason } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * Restore one published relationship edge. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCRelationshipsRestorePayload {
13
+ /**
14
+ * The relationship (VRC) id, as vtc/relationships/list returns it.
15
+ */
16
+ id: string;
17
+ reason?: LifecycleReason;
18
+ ext?: Ext;
19
+ }
20
+ export interface VTCRelationshipsRestoreResponsePayload {
21
+ /**
22
+ * Echoed.
23
+ */
24
+ id: string;
25
+ state: InForce;
26
+ ext?: Ext;
27
+ }
28
+
29
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
30
+ export type { Ext, InForce, LifecycleReason };
31
+
32
+ /** Trust Task type URI. */
33
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/relationships/restore/0.1" as const;
34
+
35
+ /** Stable alias for this specification's request payload shape. */
36
+ export type Payload = VTCRelationshipsRestorePayload;
37
+
38
+ /** Trust Task response type URI (request type URI + "#response"). */
39
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/relationships/restore/0.1#response" as const;
40
+
41
+ /** Stable alias for this specification's success-response payload shape. */
42
+ export type Response = VTCRelationshipsRestoreResponsePayload;
43
+
44
+ /**
45
+ * This specification's payload schema, as a value.
46
+ *
47
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
48
+ * rather than only as a `.json` file because TypeScript types are erased
49
+ * at runtime: without a schema a consumer has nothing to validate, and
50
+ * every REQUIRED payload member is optional in practice. Cross-file
51
+ * `$ref`s are already inlined, so it needs no resolver.
52
+ */
53
+ export const PAYLOAD_SCHEMA = {
54
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
55
+ "$id": "https://trusttasks.org/spec/vtc/relationships/restore/0.1",
56
+ "title": "VTC Relationships — Restore — payload",
57
+ "description": "Restore one published relationship edge. The outer document members are owned by the framework — SPEC §6.3.",
58
+ "type": "object",
59
+ "additionalProperties": false,
60
+ "required": [
61
+ "id"
62
+ ],
63
+ "properties": {
64
+ "id": {
65
+ "type": "string",
66
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
67
+ "description": "The relationship (VRC) id, as vtc/relationships/list returns it."
68
+ },
69
+ "reason": {
70
+ "$ref": "#/$defs/LifecycleReason"
71
+ },
72
+ "ext": {
73
+ "$ref": "#/$defs/Ext"
74
+ }
75
+ },
76
+ "$defs": {
77
+ "Response": {
78
+ "$anchor": "response",
79
+ "title": "VTC Relationships — Restore — response payload",
80
+ "type": "object",
81
+ "additionalProperties": false,
82
+ "required": [
83
+ "id",
84
+ "state"
85
+ ],
86
+ "properties": {
87
+ "id": {
88
+ "type": "string",
89
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
90
+ "description": "Echoed."
91
+ },
92
+ "state": {
93
+ "$ref": "#/$defs/InForce"
94
+ },
95
+ "ext": {
96
+ "$ref": "#/$defs/Ext"
97
+ }
98
+ }
99
+ },
100
+ "Ext": {
101
+ "title": "Ext",
102
+ "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.",
103
+ "type": "object",
104
+ "minProperties": 1,
105
+ "additionalProperties": true,
106
+ "propertyNames": {
107
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
108
+ }
109
+ },
110
+ "InForce": {
111
+ "title": "InForce",
112
+ "type": "object",
113
+ "additionalProperties": false,
114
+ "required": [
115
+ "state"
116
+ ],
117
+ "description": "Whether the edge is in force now, and if not, why not — the edge's resolved state, which is not the same thing as the event just recorded: restoring an edge whose `validUntil` passed while it was suspended records the restoration and still resolves `expired`. Exactly the members its `state` names are present.",
118
+ "properties": {
119
+ "state": {
120
+ "type": "string",
121
+ "enum": [
122
+ "yes",
123
+ "notYetValid",
124
+ "expired",
125
+ "suspended",
126
+ "superseded",
127
+ "withdrawn",
128
+ "indeterminate"
129
+ ],
130
+ "description": "`yes`: inside its window, nothing standing against it. `notYetValid`: its `validFrom` has not arrived. `expired`: its `validUntil` has passed. `suspended`: temporarily ineffective — the only non-`yes` state a lifecycle event can reverse. `superseded`: displaced by a later credential. `withdrawn`: terminal. `indeterminate`: the credential's own window could not be read, so no honest answer is available."
131
+ },
132
+ "validFrom": {
133
+ "type": "string",
134
+ "format": "date-time",
135
+ "description": "Present for `notYetValid`."
136
+ },
137
+ "validUntil": {
138
+ "type": "string",
139
+ "format": "date-time",
140
+ "description": "Present for `expired`."
141
+ },
142
+ "since": {
143
+ "type": "string",
144
+ "format": "date-time",
145
+ "description": "Present for `suspended`: when the standing suspension was recorded."
146
+ },
147
+ "at": {
148
+ "type": "string",
149
+ "format": "date-time",
150
+ "description": "Present for `superseded` and `withdrawn`."
151
+ },
152
+ "by": {
153
+ "type": "string",
154
+ "minLength": 1,
155
+ "maxLength": 256,
156
+ "description": "Present for `superseded`: the digest of the credential that displaced it."
157
+ },
158
+ "reason": {
159
+ "type": "string",
160
+ "minLength": 1,
161
+ "maxLength": 500,
162
+ "description": "Present for `indeterminate`: why the window could not be read. Written by the community."
163
+ }
164
+ }
165
+ },
166
+ "LifecycleReason": {
167
+ "title": "LifecycleReason",
168
+ "type": "string",
169
+ "minLength": 1,
170
+ "maxLength": 500,
171
+ "description": "Why the edge was suspended or restored, stored verbatim on the lifecycle event. Free text written by the caller — the edge's issuer or a moderating administrator — and read by the counterparty and by administrators; retained with the edge. Untrusted, attributed to its author wherever rendered, and never read by the community's state machine."
172
+ }
173
+ }
174
+ } as const;
175
+
176
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
177
+ export const RESPONSE_PAYLOAD_SCHEMA = {
178
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
179
+ "$ref": "#/$defs/Response",
180
+ "$defs": {
181
+ "Response": {
182
+ "$anchor": "response",
183
+ "title": "VTC Relationships — Restore — response payload",
184
+ "type": "object",
185
+ "additionalProperties": false,
186
+ "required": [
187
+ "id",
188
+ "state"
189
+ ],
190
+ "properties": {
191
+ "id": {
192
+ "type": "string",
193
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
194
+ "description": "Echoed."
195
+ },
196
+ "state": {
197
+ "$ref": "#/$defs/InForce"
198
+ },
199
+ "ext": {
200
+ "$ref": "#/$defs/Ext"
201
+ }
202
+ }
203
+ },
204
+ "Ext": {
205
+ "title": "Ext",
206
+ "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.",
207
+ "type": "object",
208
+ "minProperties": 1,
209
+ "additionalProperties": true,
210
+ "propertyNames": {
211
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
212
+ }
213
+ },
214
+ "InForce": {
215
+ "title": "InForce",
216
+ "type": "object",
217
+ "additionalProperties": false,
218
+ "required": [
219
+ "state"
220
+ ],
221
+ "description": "Whether the edge is in force now, and if not, why not — the edge's resolved state, which is not the same thing as the event just recorded: restoring an edge whose `validUntil` passed while it was suspended records the restoration and still resolves `expired`. Exactly the members its `state` names are present.",
222
+ "properties": {
223
+ "state": {
224
+ "type": "string",
225
+ "enum": [
226
+ "yes",
227
+ "notYetValid",
228
+ "expired",
229
+ "suspended",
230
+ "superseded",
231
+ "withdrawn",
232
+ "indeterminate"
233
+ ],
234
+ "description": "`yes`: inside its window, nothing standing against it. `notYetValid`: its `validFrom` has not arrived. `expired`: its `validUntil` has passed. `suspended`: temporarily ineffective — the only non-`yes` state a lifecycle event can reverse. `superseded`: displaced by a later credential. `withdrawn`: terminal. `indeterminate`: the credential's own window could not be read, so no honest answer is available."
235
+ },
236
+ "validFrom": {
237
+ "type": "string",
238
+ "format": "date-time",
239
+ "description": "Present for `notYetValid`."
240
+ },
241
+ "validUntil": {
242
+ "type": "string",
243
+ "format": "date-time",
244
+ "description": "Present for `expired`."
245
+ },
246
+ "since": {
247
+ "type": "string",
248
+ "format": "date-time",
249
+ "description": "Present for `suspended`: when the standing suspension was recorded."
250
+ },
251
+ "at": {
252
+ "type": "string",
253
+ "format": "date-time",
254
+ "description": "Present for `superseded` and `withdrawn`."
255
+ },
256
+ "by": {
257
+ "type": "string",
258
+ "minLength": 1,
259
+ "maxLength": 256,
260
+ "description": "Present for `superseded`: the digest of the credential that displaced it."
261
+ },
262
+ "reason": {
263
+ "type": "string",
264
+ "minLength": 1,
265
+ "maxLength": 500,
266
+ "description": "Present for `indeterminate`: why the window could not be read. Written by the community."
267
+ }
268
+ }
269
+ },
270
+ "LifecycleReason": {
271
+ "title": "LifecycleReason",
272
+ "type": "string",
273
+ "minLength": 1,
274
+ "maxLength": 500,
275
+ "description": "Why the edge was suspended or restored, stored verbatim on the lifecycle event. Free text written by the caller — the edge's issuer or a moderating administrator — and read by the counterparty and by administrators; retained with the edge. Untrusted, attributed to its author wherever rendered, and never read by the community's state machine."
276
+ }
277
+ }
278
+ } as const;
279
+
280
+ /**
281
+ * SPEC.md §7.2 policy for the request variant, from this specification's
282
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
283
+ * per-specification and cannot be derived from the document alone, and
284
+ * item 2 needs the schema this carries.
285
+ */
286
+ export const SPEC = {
287
+ typeUri: TYPE_URI,
288
+ isBearer: false,
289
+ isProofRequired: true,
290
+ isRecipientRequired: true,
291
+ isIssuedAtRequired: true,
292
+ payloadSchema: PAYLOAD_SCHEMA,
293
+ } as const;
294
+
295
+ /**
296
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
297
+ * tracks the *issuer* party's requirement because a response swaps the
298
+ * parties (§7.3 item 5).
299
+ */
300
+ export const RESPONSE_SPEC = {
301
+ typeUri: RESPONSE_TYPE_URI,
302
+ isBearer: false,
303
+ isProofRequired: true,
304
+ isRecipientRequired: true,
305
+ isIssuedAtRequired: true,
306
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
307
+ } as const;
@@ -0,0 +1,307 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/relationships/suspend/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext, InForce, LifecycleReason } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * Suspend one published relationship edge. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCRelationshipsSuspendPayload {
13
+ /**
14
+ * The relationship (VRC) id, as vtc/relationships/list returns it.
15
+ */
16
+ id: string;
17
+ reason?: LifecycleReason;
18
+ ext?: Ext;
19
+ }
20
+ export interface VTCRelationshipsSuspendResponsePayload {
21
+ /**
22
+ * Echoed.
23
+ */
24
+ id: string;
25
+ state: InForce;
26
+ ext?: Ext;
27
+ }
28
+
29
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
30
+ export type { Ext, InForce, LifecycleReason };
31
+
32
+ /** Trust Task type URI. */
33
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/relationships/suspend/0.1" as const;
34
+
35
+ /** Stable alias for this specification's request payload shape. */
36
+ export type Payload = VTCRelationshipsSuspendPayload;
37
+
38
+ /** Trust Task response type URI (request type URI + "#response"). */
39
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/relationships/suspend/0.1#response" as const;
40
+
41
+ /** Stable alias for this specification's success-response payload shape. */
42
+ export type Response = VTCRelationshipsSuspendResponsePayload;
43
+
44
+ /**
45
+ * This specification's payload schema, as a value.
46
+ *
47
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
48
+ * rather than only as a `.json` file because TypeScript types are erased
49
+ * at runtime: without a schema a consumer has nothing to validate, and
50
+ * every REQUIRED payload member is optional in practice. Cross-file
51
+ * `$ref`s are already inlined, so it needs no resolver.
52
+ */
53
+ export const PAYLOAD_SCHEMA = {
54
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
55
+ "$id": "https://trusttasks.org/spec/vtc/relationships/suspend/0.1",
56
+ "title": "VTC Relationships — Suspend — payload",
57
+ "description": "Suspend one published relationship edge. The outer document members are owned by the framework — SPEC §6.3.",
58
+ "type": "object",
59
+ "additionalProperties": false,
60
+ "required": [
61
+ "id"
62
+ ],
63
+ "properties": {
64
+ "id": {
65
+ "type": "string",
66
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
67
+ "description": "The relationship (VRC) id, as vtc/relationships/list returns it."
68
+ },
69
+ "reason": {
70
+ "$ref": "#/$defs/LifecycleReason"
71
+ },
72
+ "ext": {
73
+ "$ref": "#/$defs/Ext"
74
+ }
75
+ },
76
+ "$defs": {
77
+ "Response": {
78
+ "$anchor": "response",
79
+ "title": "VTC Relationships — Suspend — response payload",
80
+ "type": "object",
81
+ "additionalProperties": false,
82
+ "required": [
83
+ "id",
84
+ "state"
85
+ ],
86
+ "properties": {
87
+ "id": {
88
+ "type": "string",
89
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
90
+ "description": "Echoed."
91
+ },
92
+ "state": {
93
+ "$ref": "#/$defs/InForce"
94
+ },
95
+ "ext": {
96
+ "$ref": "#/$defs/Ext"
97
+ }
98
+ }
99
+ },
100
+ "Ext": {
101
+ "title": "Ext",
102
+ "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.",
103
+ "type": "object",
104
+ "minProperties": 1,
105
+ "additionalProperties": true,
106
+ "propertyNames": {
107
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
108
+ }
109
+ },
110
+ "InForce": {
111
+ "title": "InForce",
112
+ "type": "object",
113
+ "additionalProperties": false,
114
+ "required": [
115
+ "state"
116
+ ],
117
+ "description": "Whether the edge is in force now, and if not, why not — the edge's resolved state, which is not the same thing as the event just recorded: restoring an edge whose `validUntil` passed while it was suspended records the restoration and still resolves `expired`. Exactly the members its `state` names are present.",
118
+ "properties": {
119
+ "state": {
120
+ "type": "string",
121
+ "enum": [
122
+ "yes",
123
+ "notYetValid",
124
+ "expired",
125
+ "suspended",
126
+ "superseded",
127
+ "withdrawn",
128
+ "indeterminate"
129
+ ],
130
+ "description": "`yes`: inside its window, nothing standing against it. `notYetValid`: its `validFrom` has not arrived. `expired`: its `validUntil` has passed. `suspended`: temporarily ineffective — the only non-`yes` state a lifecycle event can reverse. `superseded`: displaced by a later credential. `withdrawn`: terminal. `indeterminate`: the credential's own window could not be read, so no honest answer is available."
131
+ },
132
+ "validFrom": {
133
+ "type": "string",
134
+ "format": "date-time",
135
+ "description": "Present for `notYetValid`."
136
+ },
137
+ "validUntil": {
138
+ "type": "string",
139
+ "format": "date-time",
140
+ "description": "Present for `expired`."
141
+ },
142
+ "since": {
143
+ "type": "string",
144
+ "format": "date-time",
145
+ "description": "Present for `suspended`: when the standing suspension was recorded."
146
+ },
147
+ "at": {
148
+ "type": "string",
149
+ "format": "date-time",
150
+ "description": "Present for `superseded` and `withdrawn`."
151
+ },
152
+ "by": {
153
+ "type": "string",
154
+ "minLength": 1,
155
+ "maxLength": 256,
156
+ "description": "Present for `superseded`: the digest of the credential that displaced it."
157
+ },
158
+ "reason": {
159
+ "type": "string",
160
+ "minLength": 1,
161
+ "maxLength": 500,
162
+ "description": "Present for `indeterminate`: why the window could not be read. Written by the community."
163
+ }
164
+ }
165
+ },
166
+ "LifecycleReason": {
167
+ "title": "LifecycleReason",
168
+ "type": "string",
169
+ "minLength": 1,
170
+ "maxLength": 500,
171
+ "description": "Why the edge was suspended or restored, stored verbatim on the lifecycle event. Free text written by the caller — the edge's issuer or a moderating administrator — and read by the counterparty and by administrators; retained with the edge. Untrusted, attributed to its author wherever rendered, and never read by the community's state machine."
172
+ }
173
+ }
174
+ } as const;
175
+
176
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
177
+ export const RESPONSE_PAYLOAD_SCHEMA = {
178
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
179
+ "$ref": "#/$defs/Response",
180
+ "$defs": {
181
+ "Response": {
182
+ "$anchor": "response",
183
+ "title": "VTC Relationships — Suspend — response payload",
184
+ "type": "object",
185
+ "additionalProperties": false,
186
+ "required": [
187
+ "id",
188
+ "state"
189
+ ],
190
+ "properties": {
191
+ "id": {
192
+ "type": "string",
193
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
194
+ "description": "Echoed."
195
+ },
196
+ "state": {
197
+ "$ref": "#/$defs/InForce"
198
+ },
199
+ "ext": {
200
+ "$ref": "#/$defs/Ext"
201
+ }
202
+ }
203
+ },
204
+ "Ext": {
205
+ "title": "Ext",
206
+ "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.",
207
+ "type": "object",
208
+ "minProperties": 1,
209
+ "additionalProperties": true,
210
+ "propertyNames": {
211
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
212
+ }
213
+ },
214
+ "InForce": {
215
+ "title": "InForce",
216
+ "type": "object",
217
+ "additionalProperties": false,
218
+ "required": [
219
+ "state"
220
+ ],
221
+ "description": "Whether the edge is in force now, and if not, why not — the edge's resolved state, which is not the same thing as the event just recorded: restoring an edge whose `validUntil` passed while it was suspended records the restoration and still resolves `expired`. Exactly the members its `state` names are present.",
222
+ "properties": {
223
+ "state": {
224
+ "type": "string",
225
+ "enum": [
226
+ "yes",
227
+ "notYetValid",
228
+ "expired",
229
+ "suspended",
230
+ "superseded",
231
+ "withdrawn",
232
+ "indeterminate"
233
+ ],
234
+ "description": "`yes`: inside its window, nothing standing against it. `notYetValid`: its `validFrom` has not arrived. `expired`: its `validUntil` has passed. `suspended`: temporarily ineffective — the only non-`yes` state a lifecycle event can reverse. `superseded`: displaced by a later credential. `withdrawn`: terminal. `indeterminate`: the credential's own window could not be read, so no honest answer is available."
235
+ },
236
+ "validFrom": {
237
+ "type": "string",
238
+ "format": "date-time",
239
+ "description": "Present for `notYetValid`."
240
+ },
241
+ "validUntil": {
242
+ "type": "string",
243
+ "format": "date-time",
244
+ "description": "Present for `expired`."
245
+ },
246
+ "since": {
247
+ "type": "string",
248
+ "format": "date-time",
249
+ "description": "Present for `suspended`: when the standing suspension was recorded."
250
+ },
251
+ "at": {
252
+ "type": "string",
253
+ "format": "date-time",
254
+ "description": "Present for `superseded` and `withdrawn`."
255
+ },
256
+ "by": {
257
+ "type": "string",
258
+ "minLength": 1,
259
+ "maxLength": 256,
260
+ "description": "Present for `superseded`: the digest of the credential that displaced it."
261
+ },
262
+ "reason": {
263
+ "type": "string",
264
+ "minLength": 1,
265
+ "maxLength": 500,
266
+ "description": "Present for `indeterminate`: why the window could not be read. Written by the community."
267
+ }
268
+ }
269
+ },
270
+ "LifecycleReason": {
271
+ "title": "LifecycleReason",
272
+ "type": "string",
273
+ "minLength": 1,
274
+ "maxLength": 500,
275
+ "description": "Why the edge was suspended or restored, stored verbatim on the lifecycle event. Free text written by the caller — the edge's issuer or a moderating administrator — and read by the counterparty and by administrators; retained with the edge. Untrusted, attributed to its author wherever rendered, and never read by the community's state machine."
276
+ }
277
+ }
278
+ } as const;
279
+
280
+ /**
281
+ * SPEC.md §7.2 policy for the request variant, from this specification's
282
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
283
+ * per-specification and cannot be derived from the document alone, and
284
+ * item 2 needs the schema this carries.
285
+ */
286
+ export const SPEC = {
287
+ typeUri: TYPE_URI,
288
+ isBearer: false,
289
+ isProofRequired: true,
290
+ isRecipientRequired: true,
291
+ isIssuedAtRequired: true,
292
+ payloadSchema: PAYLOAD_SCHEMA,
293
+ } as const;
294
+
295
+ /**
296
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
297
+ * tracks the *issuer* party's requirement because a response swaps the
298
+ * parties (§7.3 item 5).
299
+ */
300
+ export const RESPONSE_SPEC = {
301
+ typeUri: RESPONSE_TYPE_URI,
302
+ isBearer: false,
303
+ isProofRequired: true,
304
+ isRecipientRequired: true,
305
+ isIssuedAtRequired: true,
306
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
307
+ } as const;