@openvtc/trust-tasks 0.21.4 → 0.21.6

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 (212) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/dist/_shared/components.d.ts +210 -2
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/auth/_shared/0.1/passkey-invite.d.ts +16 -0
  5. package/dist/auth/_shared/0.1/passkey-invite.d.ts.map +1 -0
  6. package/dist/auth/_shared/0.1/passkey-invite.js +6 -0
  7. package/dist/auth/_shared/0.1/passkey-invite.js.map +1 -0
  8. package/dist/auth/passkey/enroll/invite/list/0.1/payload.d.ts +393 -0
  9. package/dist/auth/passkey/enroll/invite/list/0.1/payload.d.ts.map +1 -0
  10. package/dist/auth/passkey/enroll/invite/list/0.1/payload.js +234 -0
  11. package/dist/auth/passkey/enroll/invite/list/0.1/payload.js.map +1 -0
  12. package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.d.ts +228 -0
  13. package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.d.ts.map +1 -0
  14. package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.js +138 -0
  15. package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.js.map +1 -0
  16. package/dist/auth/passkey/enroll/invite/update/0.1/payload.d.ts +459 -0
  17. package/dist/auth/passkey/enroll/invite/update/0.1/payload.d.ts.map +1 -0
  18. package/dist/auth/passkey/enroll/invite/update/0.1/payload.js +286 -0
  19. package/dist/auth/passkey/enroll/invite/update/0.1/payload.js.map +1 -0
  20. package/dist/auth/revoke-session/0.2/payload.d.ts +347 -0
  21. package/dist/auth/revoke-session/0.2/payload.d.ts.map +1 -0
  22. package/dist/auth/revoke-session/0.2/payload.js +209 -0
  23. package/dist/auth/revoke-session/0.2/payload.js.map +1 -0
  24. package/dist/auth/step-up/start/0.1/payload.d.ts +420 -0
  25. package/dist/auth/step-up/start/0.1/payload.d.ts.map +1 -0
  26. package/dist/auth/step-up/start/0.1/payload.js +232 -0
  27. package/dist/auth/step-up/start/0.1/payload.js.map +1 -0
  28. package/dist/did-management/_shared/0.1/service-instance.d.ts +1 -1
  29. package/dist/did-management/_shared/0.1/service-instance.d.ts.map +1 -1
  30. package/dist/did-management/_shared/0.2/metrics-snapshot.d.ts +16 -0
  31. package/dist/did-management/_shared/0.2/metrics-snapshot.d.ts.map +1 -0
  32. package/dist/did-management/_shared/0.2/metrics-snapshot.js +6 -0
  33. package/dist/did-management/_shared/0.2/metrics-snapshot.js.map +1 -0
  34. package/dist/did-management/_shared/0.2/service-instance.d.ts +16 -0
  35. package/dist/did-management/_shared/0.2/service-instance.d.ts.map +1 -0
  36. package/dist/did-management/_shared/0.2/service-instance.js +6 -0
  37. package/dist/did-management/_shared/0.2/service-instance.js.map +1 -0
  38. package/dist/did-management/agent-name/resolve/0.1/payload.d.ts +318 -0
  39. package/dist/did-management/agent-name/resolve/0.1/payload.d.ts.map +1 -0
  40. package/dist/did-management/agent-name/resolve/0.1/payload.js +179 -0
  41. package/dist/did-management/agent-name/resolve/0.1/payload.js.map +1 -0
  42. package/dist/did-management/did/log/0.1/payload.d.ts +436 -0
  43. package/dist/did-management/did/log/0.1/payload.d.ts.map +1 -0
  44. package/dist/did-management/did/log/0.1/payload.js +228 -0
  45. package/dist/did-management/did/log/0.1/payload.js.map +1 -0
  46. package/dist/did-management/domain/list/0.1/payload.d.ts +423 -0
  47. package/dist/did-management/domain/list/0.1/payload.d.ts.map +1 -0
  48. package/dist/did-management/domain/list/0.1/payload.js +244 -0
  49. package/dist/did-management/domain/list/0.1/payload.js.map +1 -0
  50. package/dist/did-management/identity/list/0.1/payload.d.ts +494 -0
  51. package/dist/did-management/identity/list/0.1/payload.d.ts.map +1 -0
  52. package/dist/did-management/identity/list/0.1/payload.js +274 -0
  53. package/dist/did-management/identity/list/0.1/payload.js.map +1 -0
  54. package/dist/did-management/identity/retire/0.1/payload.d.ts +242 -0
  55. package/dist/did-management/identity/retire/0.1/payload.d.ts.map +1 -0
  56. package/dist/did-management/identity/retire/0.1/payload.js +142 -0
  57. package/dist/did-management/identity/retire/0.1/payload.js.map +1 -0
  58. package/dist/did-management/registry/admin-register/0.1/payload.d.ts +1 -1
  59. package/dist/did-management/registry/admin-register/0.1/payload.d.ts.map +1 -1
  60. package/dist/did-management/registry/check/0.1/payload.d.ts +639 -0
  61. package/dist/did-management/registry/check/0.1/payload.d.ts.map +1 -0
  62. package/dist/did-management/registry/check/0.1/payload.js +383 -0
  63. package/dist/did-management/registry/check/0.1/payload.js.map +1 -0
  64. package/dist/did-management/registry/get/0.1/payload.d.ts +632 -0
  65. package/dist/did-management/registry/get/0.1/payload.d.ts.map +1 -0
  66. package/dist/did-management/registry/get/0.1/payload.js +381 -0
  67. package/dist/did-management/registry/get/0.1/payload.js.map +1 -0
  68. package/dist/did-management/registry/list/0.1/payload.d.ts +661 -0
  69. package/dist/did-management/registry/list/0.1/payload.d.ts.map +1 -0
  70. package/dist/did-management/registry/list/0.1/payload.js +398 -0
  71. package/dist/did-management/registry/list/0.1/payload.js.map +1 -0
  72. package/dist/did-management/registry/purge-domain/0.1/payload.d.ts +269 -0
  73. package/dist/did-management/registry/purge-domain/0.1/payload.d.ts.map +1 -0
  74. package/dist/did-management/registry/purge-domain/0.1/payload.js +160 -0
  75. package/dist/did-management/registry/purge-domain/0.1/payload.js.map +1 -0
  76. package/dist/did-management/replica/domain/assign/0.1/payload.d.ts +233 -0
  77. package/dist/did-management/replica/domain/assign/0.1/payload.d.ts.map +1 -0
  78. package/dist/did-management/replica/domain/assign/0.1/payload.js +143 -0
  79. package/dist/did-management/replica/domain/assign/0.1/payload.js.map +1 -0
  80. package/dist/did-management/replica/domain/purge/0.1/payload.d.ts +257 -0
  81. package/dist/did-management/replica/domain/purge/0.1/payload.d.ts.map +1 -0
  82. package/dist/did-management/replica/domain/purge/0.1/payload.js +155 -0
  83. package/dist/did-management/replica/domain/purge/0.1/payload.js.map +1 -0
  84. package/dist/did-management/replica/domain/unassign/0.1/payload.d.ts +257 -0
  85. package/dist/did-management/replica/domain/unassign/0.1/payload.d.ts.map +1 -0
  86. package/dist/did-management/replica/domain/unassign/0.1/payload.js +155 -0
  87. package/dist/did-management/replica/domain/unassign/0.1/payload.js.map +1 -0
  88. package/dist/did-management/replica/domain/upsert/0.1/payload.d.ts +401 -0
  89. package/dist/did-management/replica/domain/upsert/0.1/payload.d.ts.map +1 -0
  90. package/dist/did-management/replica/domain/upsert/0.1/payload.js +241 -0
  91. package/dist/did-management/replica/domain/upsert/0.1/payload.js.map +1 -0
  92. package/dist/did-management/server/config/0.1/payload.d.ts +838 -0
  93. package/dist/did-management/server/config/0.1/payload.d.ts.map +1 -0
  94. package/dist/did-management/server/config/0.1/payload.js +444 -0
  95. package/dist/did-management/server/config/0.1/payload.js.map +1 -0
  96. package/dist/did-management/server/info/0.1/payload.d.ts +285 -0
  97. package/dist/did-management/server/info/0.1/payload.d.ts.map +1 -0
  98. package/dist/did-management/server/info/0.1/payload.js +160 -0
  99. package/dist/did-management/server/info/0.1/payload.js.map +1 -0
  100. package/dist/did-management/server/metrics/0.1/payload.d.ts +674 -0
  101. package/dist/did-management/server/metrics/0.1/payload.d.ts.map +1 -0
  102. package/dist/did-management/server/metrics/0.1/payload.js +387 -0
  103. package/dist/did-management/server/metrics/0.1/payload.js.map +1 -0
  104. package/dist/did-management/stats/get/0.1/payload.d.ts +349 -0
  105. package/dist/did-management/stats/get/0.1/payload.d.ts.map +1 -0
  106. package/dist/did-management/stats/get/0.1/payload.js +187 -0
  107. package/dist/did-management/stats/get/0.1/payload.js.map +1 -0
  108. package/dist/did-management/stats/timeseries/0.1/payload.d.ts +381 -0
  109. package/dist/did-management/stats/timeseries/0.1/payload.d.ts.map +1 -0
  110. package/dist/did-management/stats/timeseries/0.1/payload.js +227 -0
  111. package/dist/did-management/stats/timeseries/0.1/payload.js.map +1 -0
  112. package/dist/index.d.ts +38 -0
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.js +38 -0
  115. package/dist/index.js.map +1 -1
  116. package/dist/keys/import-wrapping-key/0.1/payload.d.ts +289 -0
  117. package/dist/keys/import-wrapping-key/0.1/payload.d.ts.map +1 -0
  118. package/dist/keys/import-wrapping-key/0.1/payload.js +158 -0
  119. package/dist/keys/import-wrapping-key/0.1/payload.js.map +1 -0
  120. package/dist/vta/health/details/0.1/payload.d.ts +479 -0
  121. package/dist/vta/health/details/0.1/payload.d.ts.map +1 -0
  122. package/dist/vta/health/details/0.1/payload.js +258 -0
  123. package/dist/vta/health/details/0.1/payload.js.map +1 -0
  124. package/dist/vta/restore/status/0.1/payload.d.ts +565 -0
  125. package/dist/vta/restore/status/0.1/payload.d.ts.map +1 -0
  126. package/dist/vta/restore/status/0.1/payload.js +294 -0
  127. package/dist/vta/restore/status/0.1/payload.js.map +1 -0
  128. package/dist/vtc/_shared/0.1/invite.d.ts +1 -1
  129. package/dist/vtc/_shared/0.1/invite.d.ts.map +1 -1
  130. package/dist/vtc/admin/invites/list/0.1/payload.d.ts +1 -1
  131. package/dist/vtc/admin/invites/list/0.1/payload.d.ts.map +1 -1
  132. package/dist/webvh/_shared/0.1/sync-update.d.ts +16 -0
  133. package/dist/webvh/_shared/0.1/sync-update.d.ts.map +1 -0
  134. package/dist/webvh/_shared/0.1/sync-update.js +6 -0
  135. package/dist/webvh/_shared/0.1/sync-update.js.map +1 -0
  136. package/dist/webvh/_shared/0.1/witness-key.d.ts +16 -0
  137. package/dist/webvh/_shared/0.1/witness-key.d.ts.map +1 -0
  138. package/dist/webvh/_shared/0.1/witness-key.js +6 -0
  139. package/dist/webvh/_shared/0.1/witness-key.js.map +1 -0
  140. package/dist/webvh/sync/batch/0.1/payload.d.ts +503 -0
  141. package/dist/webvh/sync/batch/0.1/payload.d.ts.map +1 -0
  142. package/dist/webvh/sync/batch/0.1/payload.js +290 -0
  143. package/dist/webvh/sync/batch/0.1/payload.js.map +1 -0
  144. package/dist/webvh/sync/delete/0.2/payload.d.ts +242 -0
  145. package/dist/webvh/sync/delete/0.2/payload.d.ts.map +1 -0
  146. package/dist/webvh/sync/delete/0.2/payload.js +148 -0
  147. package/dist/webvh/sync/delete/0.2/payload.js.map +1 -0
  148. package/dist/webvh/sync/update/0.2/payload.d.ts +315 -0
  149. package/dist/webvh/sync/update/0.2/payload.d.ts.map +1 -0
  150. package/dist/webvh/sync/update/0.2/payload.js +177 -0
  151. package/dist/webvh/sync/update/0.2/payload.js.map +1 -0
  152. package/dist/webvh/witness/key/create/0.1/payload.d.ts +346 -0
  153. package/dist/webvh/witness/key/create/0.1/payload.d.ts.map +1 -0
  154. package/dist/webvh/witness/key/create/0.1/payload.js +202 -0
  155. package/dist/webvh/witness/key/create/0.1/payload.js.map +1 -0
  156. package/dist/webvh/witness/key/delete/0.1/payload.d.ts +237 -0
  157. package/dist/webvh/witness/key/delete/0.1/payload.d.ts.map +1 -0
  158. package/dist/webvh/witness/key/delete/0.1/payload.js +141 -0
  159. package/dist/webvh/witness/key/delete/0.1/payload.js.map +1 -0
  160. package/dist/webvh/witness/key/list/0.1/payload.d.ts +349 -0
  161. package/dist/webvh/witness/key/list/0.1/payload.d.ts.map +1 -0
  162. package/dist/webvh/witness/key/list/0.1/payload.js +204 -0
  163. package/dist/webvh/witness/key/list/0.1/payload.js.map +1 -0
  164. package/dist/webvh/witness/sign/0.1/payload.d.ts +401 -0
  165. package/dist/webvh/witness/sign/0.1/payload.d.ts.map +1 -0
  166. package/dist/webvh/witness/sign/0.1/payload.js +229 -0
  167. package/dist/webvh/witness/sign/0.1/payload.js.map +1 -0
  168. package/package.json +1 -1
  169. package/src/_shared/components.ts +210 -2
  170. package/src/auth/_shared/0.1/passkey-invite.ts +17 -0
  171. package/src/auth/passkey/enroll/invite/list/0.1/payload.ts +266 -0
  172. package/src/auth/passkey/enroll/invite/revoke/0.1/payload.ts +165 -0
  173. package/src/auth/passkey/enroll/invite/update/0.1/payload.ts +327 -0
  174. package/src/auth/revoke-session/0.2/payload.ts +268 -0
  175. package/src/auth/step-up/start/0.1/payload.ts +287 -0
  176. package/src/did-management/_shared/0.1/service-instance.ts +1 -1
  177. package/src/did-management/_shared/0.2/metrics-snapshot.ts +17 -0
  178. package/src/did-management/_shared/0.2/service-instance.ts +17 -0
  179. package/src/did-management/agent-name/resolve/0.1/payload.ts +222 -0
  180. package/src/did-management/did/log/0.1/payload.ts +295 -0
  181. package/src/did-management/domain/list/0.1/payload.ts +280 -0
  182. package/src/did-management/identity/list/0.1/payload.ts +335 -0
  183. package/src/did-management/identity/retire/0.1/payload.ts +175 -0
  184. package/src/did-management/registry/admin-register/0.1/payload.ts +1 -1
  185. package/src/did-management/registry/check/0.1/payload.ts +415 -0
  186. package/src/did-management/registry/get/0.1/payload.ts +410 -0
  187. package/src/did-management/registry/list/0.1/payload.ts +434 -0
  188. package/src/did-management/registry/purge-domain/0.1/payload.ts +198 -0
  189. package/src/did-management/replica/domain/assign/0.1/payload.ts +173 -0
  190. package/src/did-management/replica/domain/purge/0.1/payload.ts +189 -0
  191. package/src/did-management/replica/domain/unassign/0.1/payload.ts +189 -0
  192. package/src/did-management/replica/domain/upsert/0.1/payload.ts +271 -0
  193. package/src/did-management/server/config/0.1/payload.ts +545 -0
  194. package/src/did-management/server/info/0.1/payload.ts +200 -0
  195. package/src/did-management/server/metrics/0.1/payload.ts +418 -0
  196. package/src/did-management/stats/get/0.1/payload.ts +237 -0
  197. package/src/did-management/stats/timeseries/0.1/payload.ts +279 -0
  198. package/src/index.ts +38 -0
  199. package/src/keys/import-wrapping-key/0.1/payload.ts +206 -0
  200. package/src/vta/health/details/0.1/payload.ts +336 -0
  201. package/src/vta/restore/status/0.1/payload.ts +379 -0
  202. package/src/vtc/_shared/0.1/invite.ts +1 -1
  203. package/src/vtc/admin/invites/list/0.1/payload.ts +1 -1
  204. package/src/webvh/_shared/0.1/sync-update.ts +17 -0
  205. package/src/webvh/_shared/0.1/witness-key.ts +17 -0
  206. package/src/webvh/sync/batch/0.1/payload.ts +336 -0
  207. package/src/webvh/sync/delete/0.2/payload.ts +181 -0
  208. package/src/webvh/sync/update/0.2/payload.ts +233 -0
  209. package/src/webvh/witness/key/create/0.1/payload.ts +231 -0
  210. package/src/webvh/witness/key/delete/0.1/payload.ts +171 -0
  211. package/src/webvh/witness/key/list/0.1/payload.ts +232 -0
  212. package/src/webvh/witness/sign/0.1/payload.ts +279 -0
@@ -2777,6 +2777,43 @@ export interface GitNamespace {
2777
2777
  */
2778
2778
  state: "pending" | "bound";
2779
2779
  }
2780
+ /**
2781
+ * One histogram's distribution, in the Prometheus cumulative-bucket convention: each bucket's `count` includes every observation at or below its `le`.
2782
+ */
2783
+ export interface Histogram {
2784
+ /**
2785
+ * The histogram's stable name (e.g. `did_hosting_resolve_seconds`).
2786
+ */
2787
+ name: string;
2788
+ /**
2789
+ * Dimensions the distribution is broken down by. Absent or empty when the histogram carries none.
2790
+ */
2791
+ labels?: {
2792
+ [k: string]: string | undefined;
2793
+ };
2794
+ /**
2795
+ * Total number of observations.
2796
+ */
2797
+ count: number;
2798
+ /**
2799
+ * Sum of all observed values.
2800
+ */
2801
+ sum: number;
2802
+ /**
2803
+ * Cumulative buckets, ordered by ascending `le`. Empty when the service exposes no bucket breakdown for this histogram — count and sum still apply. Always present, for the same reason as the snapshot's own arrays.
2804
+ */
2805
+ buckets: HistogramBucket[];
2806
+ }
2807
+ export interface HistogramBucket {
2808
+ /**
2809
+ * Upper bound of this bucket, inclusive. The final bucket conventionally reports the same value as the histogram's own `count` at whatever `le` the service treats as its ceiling.
2810
+ */
2811
+ le: number;
2812
+ /**
2813
+ * Number of observations at or below `le`.
2814
+ */
2815
+ count: number;
2816
+ }
2780
2817
  /**
2781
2818
  * OpenPGP-style ASCII-armored HPKE bundle — the existing OpenVTC sealed-transfer wire form (X25519-HKDF-SHA256 KEM + ChaCha20-Poly1305 AEAD, framed in armor with Bundle-Id / Digest-Algo headers and a CRC24 checksum). Producer assertion (`did-signed` / `attested` / `pinned-only`) is the integrity / authenticity anchor.
2782
2819
  *
@@ -2850,10 +2887,34 @@ export interface InvitationSummary {
2850
2887
  */
2851
2888
  revokedAt?: string;
2852
2889
  }
2890
+ export interface InviteSummary_AuthV0_1 {
2891
+ /**
2892
+ * Consumer-chosen opaque handle for the invite. It is NOT the invite token and MUST NOT be derivable into it; knowing it lets an administrator manage the invite, never redeem it.
2893
+ */
2894
+ inviteId: string;
2895
+ /**
2896
+ * The VID the invite binds a passkey to.
2897
+ */
2898
+ subject: string;
2899
+ /**
2900
+ * What the redeemed credential may authenticate, as in auth/passkey/enroll/invite.
2901
+ */
2902
+ purpose: "session" | "stepUp";
2903
+ /**
2904
+ * The role the invitee receives on redemption. Absent when the consumer applies its default role, and always absent for purpose stepUp.
2905
+ */
2906
+ role?: string;
2907
+ createdAt: string;
2908
+ expiresAt: string;
2909
+ /**
2910
+ * True when expiresAt has passed. An expired invite can no longer be redeemed; it is listed until the consumer's cleanup removes it.
2911
+ */
2912
+ expired: boolean;
2913
+ }
2853
2914
  /**
2854
2915
  * One outstanding or historical admin invite. Consumed rows are retained as audit history and cannot be revoked.
2855
2916
  */
2856
- export interface InviteSummary {
2917
+ export interface InviteSummary_VtcV0_1 {
2857
2918
  /**
2858
2919
  * Unique invite identifier; the revoke target.
2859
2920
  */
@@ -3224,6 +3285,44 @@ export interface MessageMeta {
3224
3285
  */
3225
3286
  deliveredAt?: string;
3226
3287
  }
3288
+ /**
3289
+ * One counter or gauge reading.
3290
+ */
3291
+ export interface Metric {
3292
+ /**
3293
+ * The metric's stable name (e.g. `did_hosting_requests_total`). Implementation-defined; the framework imposes no vocabulary.
3294
+ */
3295
+ name: string;
3296
+ /**
3297
+ * The current reading.
3298
+ */
3299
+ value: number;
3300
+ /**
3301
+ * Dimensions the value is broken down by (e.g. `{"method": "resolve"}`). Absent or empty when the metric carries none.
3302
+ */
3303
+ labels?: {
3304
+ [k: string]: string | undefined;
3305
+ };
3306
+ }
3307
+ export interface MetricsSnapshot {
3308
+ /**
3309
+ * When the service read these values from its own instrumentation. Not the same as the envelope's issuedAt when a snapshot is cached briefly before answering.
3310
+ */
3311
+ takenAt: string;
3312
+ /**
3313
+ * Monotonically increasing totals (e.g. requests served, errors raised). Empty when the service exposes none. Always present, so a collector can tell "no counters" from "the field was dropped".
3314
+ */
3315
+ counters: Metric[];
3316
+ /**
3317
+ * Point-in-time values that can rise or fall (e.g. open connections, queue depth). Empty when the service exposes none. Always present, for the same reason as counters.
3318
+ */
3319
+ gauges: Metric[];
3320
+ /**
3321
+ * Distributions of observed values (e.g. request latency). Empty when the service exposes none. Always present, for the same reason as counters.
3322
+ */
3323
+ histograms: Histogram[];
3324
+ ext?: Ext;
3325
+ }
3227
3326
  /**
3228
3327
  * One observed step in the life of one message at the mediator. Carries metadata only — never a message body.
3229
3328
  */
@@ -4474,7 +4573,7 @@ export interface SealedRecord {
4474
4573
  */
4475
4574
  epoch: number;
4476
4575
  }
4477
- export interface ServiceInstance {
4576
+ export interface ServiceInstance_DidManagementV0_1 {
4478
4577
  /**
4479
4578
  * Stable identifier the control plane uses for this instance. SHOULD be derived from the instance's DID (e.g. `did:web:host.example` → `did_web_host_example`) so it survives restarts.
4480
4579
  */
@@ -4492,6 +4591,62 @@ export interface ServiceInstance {
4492
4591
  lastSeen?: string;
4493
4592
  ext?: Ext;
4494
4593
  }
4594
+ export interface ServiceInstance_DidManagementV0_2 {
4595
+ /**
4596
+ * Stable identifier the control plane uses for this instance. SHOULD be derived from the instance's DID so it survives restarts.
4597
+ */
4598
+ instanceId: string;
4599
+ /**
4600
+ * The instance's own DID — the identity its signed documents are verified against and the one the control plane addresses.
4601
+ */
4602
+ did: string;
4603
+ /**
4604
+ * `server` — a hosting server (edge) that resolves DIDs the control plane syncs to it. `witness` — a did:webvh witness. `watcher` — a did:webvh watcher that mirrors logs.
4605
+ */
4606
+ serviceType: "server" | "witness" | "watcher";
4607
+ /**
4608
+ * Operator-chosen display label. Untrusted free text.
4609
+ */
4610
+ label?: string;
4611
+ /**
4612
+ * The instance's public base URL, where it serves DID resolution. Absent when the instance registered without one.
4613
+ */
4614
+ publicUrl?: string;
4615
+ /**
4616
+ * The control plane's current verdict, from the instance's last answered health probe. `degraded` — answered late; `unreachable` — has not answered within the control plane's configured window.
4617
+ */
4618
+ status: "active" | "degraded" | "unreachable";
4619
+ /**
4620
+ * Hosting domains the instance has acknowledged serving. Always present — empty for an instance that serves none, which includes every `witness` and `watcher`.
4621
+ */
4622
+ servedDomains: string[];
4623
+ /**
4624
+ * DID methods the instance can host (e.g. `webvh`, `web`, `webs`), as it declared at registration.
4625
+ */
4626
+ enabledMethods?: string[];
4627
+ /**
4628
+ * `service[].type` values of the instance's DID document when the control plane last resolved it. Display only: nothing is routed on it. Absent when the document has not been resolved.
4629
+ */
4630
+ advertisedServices?: string[];
4631
+ /**
4632
+ * When `advertisedServices` was last resolved. Absent with it.
4633
+ */
4634
+ servicesCheckedAt?: string;
4635
+ /**
4636
+ * The last document the control plane received from this instance. Absent when it has received none.
4637
+ */
4638
+ lastInbound?: TransportObservation;
4639
+ /**
4640
+ * The last document the control plane delivered to this instance. Absent when it has delivered none.
4641
+ */
4642
+ lastOutbound?: TransportObservation;
4643
+ /**
4644
+ * When the instance last answered a health probe. Absent when it never has.
4645
+ */
4646
+ lastHealthCheck?: string;
4647
+ registeredAt: string;
4648
+ ext?: Ext;
4649
+ }
4495
4650
  /**
4496
4651
  * The outcome of a change to an advertised service. Every member describes the **log entry the change produced**, because that is what the change actually is: the agent's DID document is the record, and a consumer that treats the response as a mere acknowledgement will miss that a redeploy may be required.
4497
4652
  */
@@ -4729,6 +4884,33 @@ export interface Sync {
4729
4884
  */
4730
4885
  drift: DriftItem[];
4731
4886
  }
4887
+ export interface SyncUpdate {
4888
+ /**
4889
+ * The slot path on its hosting domain (e.g. `alice`, `people/alice`, or `.well-known` for a root DID).
4890
+ */
4891
+ mnemonic: string;
4892
+ /**
4893
+ * The DID the log establishes. A replica MUST refuse a log that does not establish exactly this DID.
4894
+ */
4895
+ didId: string;
4896
+ /**
4897
+ * The slot's complete did.jsonl — one log entry per line — not a delta.
4898
+ */
4899
+ logContent: string;
4900
+ /**
4901
+ * The slot's did-witness.json. ABSENT means the slot holds no witness proofs: the replica MUST drop any witness proofs it holds for the slot. Absence never means "unchanged".
4902
+ */
4903
+ witnessContent?: string;
4904
+ /**
4905
+ * Number of entries in `logContent`, as the source counts them. A replica MUST refuse an update whose `logContent` does not contain exactly this many entries.
4906
+ */
4907
+ versionCount: number;
4908
+ /**
4909
+ * Whether the source has disabled the slot. A replica MUST stop serving a disabled slot and MUST resume only on an update carrying `false`.
4910
+ */
4911
+ disabled: boolean;
4912
+ ext?: Ext;
4913
+ }
4732
4914
  /**
4733
4915
  * 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.
4734
4916
  */
@@ -4775,6 +4957,13 @@ export interface TrafficOutcome {
4775
4957
  */
4776
4958
  detail?: string;
4777
4959
  }
4960
+ export interface TransportObservation {
4961
+ /**
4962
+ * The binding the document actually travelled on.
4963
+ */
4964
+ transport: "tsp" | "didcomm" | "https";
4965
+ at: string;
4966
+ }
4778
4967
  export interface TrustRecord {
4779
4968
  entity_id: string;
4780
4969
  authority_id: string;
@@ -5343,6 +5532,25 @@ export interface WebvhServerRecord {
5343
5532
  updatedAt: string;
5344
5533
  ext?: Ext;
5345
5534
  }
5535
+ export interface WitnessKey {
5536
+ /**
5537
+ * The witness service's identifier for this identity. Opaque to the requester.
5538
+ */
5539
+ witnessId: string;
5540
+ /**
5541
+ * The witness identity's DID (for example a `did:key`) — the value a did:webvh log names in its `witness` parameter, and the controller of the key that signs its proofs.
5542
+ */
5543
+ did: string;
5544
+ /**
5545
+ * Operator-chosen display label. Untrusted free text. Absent when none was given.
5546
+ */
5547
+ label?: string;
5548
+ createdAt: string;
5549
+ /**
5550
+ * How many witness proofs this identity has signed.
5551
+ */
5552
+ proofsSigned: number;
5553
+ }
5346
5554
  /**
5347
5555
  * The outcome of one write within a `vta/app-state/put-many` batch. Per-record rather than per-batch, because the default batch mode applies each write on its own merits: a caller flushing ten unrelated edits needs to know which one conflicted, not merely that something did.
5348
5556
  */
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/_shared/0.1/passkey-invite.schema.json
4
+ */
5
+
6
+ /**
7
+ * What an administrator may read back about a passkey enrolment invite after issuing it. Deliberately omits the invite token, its URL and the claim code: an unredeemed token is a credential to bind a passkey to somebody else's VID, so it is disclosed once, at issuance, and never again.
8
+ */
9
+ export interface AuthSharedPasskeyInviteSummary {
10
+ [k: string]: unknown | undefined;
11
+ }
12
+
13
+ /**
14
+ * The definitions this shared schema publishes, hoisted to one declaration each.
15
+ * See "../../../_shared/components.js".
16
+ */
17
+ export type { InviteSummary_AuthV0_1 as InviteSummary } from "../../../_shared/components.js";
@@ -0,0 +1,266 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/passkey/enroll/invite/list/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext, InviteSummary_AuthV0_1 as InviteSummary } from "../../../../../../_shared/components.js";
7
+
8
+
9
+ export interface AuthPasskeyInviteListPayload {
10
+ /**
11
+ * When true, invites whose expiry has passed are listed too. Absent or false means only unexpired invites are listed.
12
+ */
13
+ includeExpired?: boolean;
14
+ ext?: Ext;
15
+ }
16
+ export interface AuthPasskeyInviteListResponsePayload {
17
+ /**
18
+ * Every unredeemed invite within the administrator's authority, newest first.
19
+ */
20
+ invites: InviteSummary[];
21
+ ext?: Ext;
22
+ }
23
+
24
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
25
+ export type { Ext, InviteSummary };
26
+
27
+ /** Trust Task type URI. */
28
+ export const TYPE_URI = "https://trusttasks.org/spec/auth/passkey/enroll/invite/list/0.1" as const;
29
+
30
+ /** Stable alias for this specification's request payload shape. */
31
+ export type Payload = AuthPasskeyInviteListPayload;
32
+
33
+ /** Trust Task response type URI (request type URI + "#response"). */
34
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/passkey/enroll/invite/list/0.1#response" as const;
35
+
36
+ /** Stable alias for this specification's success-response payload shape. */
37
+ export type Response = AuthPasskeyInviteListResponsePayload;
38
+
39
+ /**
40
+ * This specification's payload schema, as a value.
41
+ *
42
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
43
+ * rather than only as a `.json` file because TypeScript types are erased
44
+ * at runtime: without a schema a consumer has nothing to validate, and
45
+ * every REQUIRED payload member is optional in practice. Cross-file
46
+ * `$ref`s are already inlined, so it needs no resolver.
47
+ */
48
+ export const PAYLOAD_SCHEMA = {
49
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
50
+ "$id": "https://trusttasks.org/spec/auth/passkey/enroll/invite/list/0.1",
51
+ "title": "Auth Passkey Invite List — payload",
52
+ "type": "object",
53
+ "additionalProperties": false,
54
+ "properties": {
55
+ "includeExpired": {
56
+ "type": "boolean",
57
+ "description": "When true, invites whose expiry has passed are listed too. Absent or false means only unexpired invites are listed."
58
+ },
59
+ "ext": {
60
+ "$ref": "#/$defs/Ext"
61
+ }
62
+ },
63
+ "$defs": {
64
+ "Response": {
65
+ "$anchor": "response",
66
+ "title": "Auth Passkey Invite List — response payload",
67
+ "type": "object",
68
+ "additionalProperties": false,
69
+ "required": [
70
+ "invites"
71
+ ],
72
+ "properties": {
73
+ "invites": {
74
+ "type": "array",
75
+ "items": {
76
+ "$ref": "#/$defs/InviteSummary"
77
+ },
78
+ "description": "Every unredeemed invite within the administrator's authority, newest first."
79
+ },
80
+ "ext": {
81
+ "$ref": "#/$defs/Ext"
82
+ }
83
+ }
84
+ },
85
+ "Ext": {
86
+ "title": "Ext",
87
+ "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.",
88
+ "type": "object",
89
+ "minProperties": 1,
90
+ "additionalProperties": true,
91
+ "propertyNames": {
92
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
93
+ }
94
+ },
95
+ "InviteSummary": {
96
+ "$anchor": "inviteSummary",
97
+ "title": "InviteSummary",
98
+ "type": "object",
99
+ "additionalProperties": false,
100
+ "required": [
101
+ "inviteId",
102
+ "subject",
103
+ "purpose",
104
+ "createdAt",
105
+ "expiresAt",
106
+ "expired"
107
+ ],
108
+ "properties": {
109
+ "inviteId": {
110
+ "type": "string",
111
+ "minLength": 1,
112
+ "maxLength": 128,
113
+ "description": "Consumer-chosen opaque handle for the invite. It is NOT the invite token and MUST NOT be derivable into it; knowing it lets an administrator manage the invite, never redeem it."
114
+ },
115
+ "subject": {
116
+ "type": "string",
117
+ "minLength": 1,
118
+ "description": "The VID the invite binds a passkey to."
119
+ },
120
+ "purpose": {
121
+ "type": "string",
122
+ "enum": [
123
+ "session",
124
+ "stepUp"
125
+ ],
126
+ "description": "What the redeemed credential may authenticate, as in auth/passkey/enroll/invite."
127
+ },
128
+ "role": {
129
+ "type": "string",
130
+ "description": "The role the invitee receives on redemption. Absent when the consumer applies its default role, and always absent for purpose stepUp."
131
+ },
132
+ "createdAt": {
133
+ "type": "string",
134
+ "format": "date-time"
135
+ },
136
+ "expiresAt": {
137
+ "type": "string",
138
+ "format": "date-time"
139
+ },
140
+ "expired": {
141
+ "type": "boolean",
142
+ "description": "True when expiresAt has passed. An expired invite can no longer be redeemed; it is listed until the consumer's cleanup removes it."
143
+ }
144
+ }
145
+ }
146
+ }
147
+ } as const;
148
+
149
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
150
+ export const RESPONSE_PAYLOAD_SCHEMA = {
151
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
152
+ "$ref": "#/$defs/Response",
153
+ "$defs": {
154
+ "Response": {
155
+ "$anchor": "response",
156
+ "title": "Auth Passkey Invite List — response payload",
157
+ "type": "object",
158
+ "additionalProperties": false,
159
+ "required": [
160
+ "invites"
161
+ ],
162
+ "properties": {
163
+ "invites": {
164
+ "type": "array",
165
+ "items": {
166
+ "$ref": "#/$defs/InviteSummary"
167
+ },
168
+ "description": "Every unredeemed invite within the administrator's authority, newest first."
169
+ },
170
+ "ext": {
171
+ "$ref": "#/$defs/Ext"
172
+ }
173
+ }
174
+ },
175
+ "Ext": {
176
+ "title": "Ext",
177
+ "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.",
178
+ "type": "object",
179
+ "minProperties": 1,
180
+ "additionalProperties": true,
181
+ "propertyNames": {
182
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
183
+ }
184
+ },
185
+ "InviteSummary": {
186
+ "$anchor": "inviteSummary",
187
+ "title": "InviteSummary",
188
+ "type": "object",
189
+ "additionalProperties": false,
190
+ "required": [
191
+ "inviteId",
192
+ "subject",
193
+ "purpose",
194
+ "createdAt",
195
+ "expiresAt",
196
+ "expired"
197
+ ],
198
+ "properties": {
199
+ "inviteId": {
200
+ "type": "string",
201
+ "minLength": 1,
202
+ "maxLength": 128,
203
+ "description": "Consumer-chosen opaque handle for the invite. It is NOT the invite token and MUST NOT be derivable into it; knowing it lets an administrator manage the invite, never redeem it."
204
+ },
205
+ "subject": {
206
+ "type": "string",
207
+ "minLength": 1,
208
+ "description": "The VID the invite binds a passkey to."
209
+ },
210
+ "purpose": {
211
+ "type": "string",
212
+ "enum": [
213
+ "session",
214
+ "stepUp"
215
+ ],
216
+ "description": "What the redeemed credential may authenticate, as in auth/passkey/enroll/invite."
217
+ },
218
+ "role": {
219
+ "type": "string",
220
+ "description": "The role the invitee receives on redemption. Absent when the consumer applies its default role, and always absent for purpose stepUp."
221
+ },
222
+ "createdAt": {
223
+ "type": "string",
224
+ "format": "date-time"
225
+ },
226
+ "expiresAt": {
227
+ "type": "string",
228
+ "format": "date-time"
229
+ },
230
+ "expired": {
231
+ "type": "boolean",
232
+ "description": "True when expiresAt has passed. An expired invite can no longer be redeemed; it is listed until the consumer's cleanup removes it."
233
+ }
234
+ }
235
+ }
236
+ }
237
+ } as const;
238
+
239
+ /**
240
+ * SPEC.md §7.2 policy for the request variant, from this specification's
241
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
242
+ * per-specification and cannot be derived from the document alone, and
243
+ * item 2 needs the schema this carries.
244
+ */
245
+ export const SPEC = {
246
+ typeUri: TYPE_URI,
247
+ isBearer: false,
248
+ isProofRequired: true,
249
+ isRecipientRequired: true,
250
+ isIssuedAtRequired: false,
251
+ payloadSchema: PAYLOAD_SCHEMA,
252
+ } as const;
253
+
254
+ /**
255
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
256
+ * tracks the *issuer* party's requirement because a response swaps the
257
+ * parties (§7.3 item 5).
258
+ */
259
+ export const RESPONSE_SPEC = {
260
+ typeUri: RESPONSE_TYPE_URI,
261
+ isBearer: false,
262
+ isProofRequired: true,
263
+ isRecipientRequired: true,
264
+ isIssuedAtRequired: false,
265
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
266
+ } as const;