@openvtc/trust-tasks 0.27.1 → 0.27.3

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 (228) hide show
  1. package/CHANGELOG.md +218 -0
  2. package/dist/_runtime/consume.d.ts +2 -1
  3. package/dist/_runtime/consume.d.ts.map +1 -1
  4. package/dist/_runtime/consume.js +26 -1
  5. package/dist/_runtime/consume.js.map +1 -1
  6. package/dist/_runtime/document.d.ts +9 -0
  7. package/dist/_runtime/document.d.ts.map +1 -1
  8. package/dist/_runtime/document.js +15 -1
  9. package/dist/_runtime/document.js.map +1 -1
  10. package/dist/_runtime/freshness.d.ts +4 -2
  11. package/dist/_runtime/freshness.d.ts.map +1 -1
  12. package/dist/_runtime/freshness.js +9 -6
  13. package/dist/_runtime/freshness.js.map +1 -1
  14. package/dist/_shared/components.d.ts +346 -23
  15. package/dist/_shared/components.d.ts.map +1 -1
  16. package/dist/device/list/0.1/payload.d.ts +4 -4
  17. package/dist/device/list/0.1/payload.d.ts.map +1 -1
  18. package/dist/device/list/0.1/payload.js +4 -2
  19. package/dist/device/list/0.1/payload.js.map +1 -1
  20. package/dist/device/list/0.2/payload.d.ts +4 -4
  21. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  22. package/dist/device/list/0.2/payload.js +4 -2
  23. package/dist/device/list/0.2/payload.js.map +1 -1
  24. package/dist/device/register/0.1/payload.d.ts +4 -4
  25. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  26. package/dist/device/register/0.1/payload.js +4 -2
  27. package/dist/device/register/0.1/payload.js.map +1 -1
  28. package/dist/device/register/0.2/payload.d.ts +4 -4
  29. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  30. package/dist/device/register/0.2/payload.js +4 -2
  31. package/dist/device/register/0.2/payload.js.map +1 -1
  32. package/dist/index.d.ts +25 -0
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +25 -0
  35. package/dist/index.js.map +1 -1
  36. package/dist/rooms/_shared/0.1/room.d.ts +1 -1
  37. package/dist/rooms/_shared/0.1/room.d.ts.map +1 -1
  38. package/dist/rooms/create/0.2/payload.d.ts +534 -0
  39. package/dist/rooms/create/0.2/payload.d.ts.map +1 -0
  40. package/dist/rooms/create/0.2/payload.js +293 -0
  41. package/dist/rooms/create/0.2/payload.js.map +1 -0
  42. package/dist/rooms/epoch/chain/0.2/payload.d.ts +534 -0
  43. package/dist/rooms/epoch/chain/0.2/payload.d.ts.map +1 -0
  44. package/dist/rooms/epoch/chain/0.2/payload.js +292 -0
  45. package/dist/rooms/epoch/chain/0.2/payload.js.map +1 -0
  46. package/dist/rooms/epoch/prune/0.2/payload.d.ts +467 -0
  47. package/dist/rooms/epoch/prune/0.2/payload.d.ts.map +1 -0
  48. package/dist/rooms/epoch/prune/0.2/payload.js +251 -0
  49. package/dist/rooms/epoch/prune/0.2/payload.js.map +1 -0
  50. package/dist/rooms/info/0.2/payload.d.ts +1129 -0
  51. package/dist/rooms/info/0.2/payload.d.ts.map +1 -0
  52. package/dist/rooms/info/0.2/payload.js +618 -0
  53. package/dist/rooms/info/0.2/payload.js.map +1 -0
  54. package/dist/rooms/keys/backfill/0.2/payload.d.ts +380 -0
  55. package/dist/rooms/keys/backfill/0.2/payload.d.ts.map +1 -0
  56. package/dist/rooms/keys/backfill/0.2/payload.js +197 -0
  57. package/dist/rooms/keys/backfill/0.2/payload.js.map +1 -0
  58. package/dist/rooms/keys/browse/0.1/payload.d.ts +4 -4
  59. package/dist/rooms/keys/browse/0.1/payload.js +2 -2
  60. package/dist/rooms/keys/browse/0.1/payload.js.map +1 -1
  61. package/dist/rooms/keys/browse/0.2/payload.d.ts +941 -0
  62. package/dist/rooms/keys/browse/0.2/payload.d.ts.map +1 -0
  63. package/dist/rooms/keys/browse/0.2/payload.js +558 -0
  64. package/dist/rooms/keys/browse/0.2/payload.js.map +1 -0
  65. package/dist/rooms/keys/chain/0.2/payload.d.ts +450 -0
  66. package/dist/rooms/keys/chain/0.2/payload.d.ts.map +1 -0
  67. package/dist/rooms/keys/chain/0.2/payload.js +248 -0
  68. package/dist/rooms/keys/chain/0.2/payload.js.map +1 -0
  69. package/dist/rooms/keys/profile/read/0.1/payload.d.ts +4 -4
  70. package/dist/rooms/keys/profile/read/0.1/payload.js +2 -2
  71. package/dist/rooms/keys/profile/read/0.1/payload.js.map +1 -1
  72. package/dist/rooms/keys/read/0.1/payload.d.ts +4 -4
  73. package/dist/rooms/keys/read/0.1/payload.js +2 -2
  74. package/dist/rooms/keys/read/0.1/payload.js.map +1 -1
  75. package/dist/rooms/owner/anchor/0.1/payload.d.ts +4 -4
  76. package/dist/rooms/owner/anchor/0.1/payload.js +2 -2
  77. package/dist/rooms/owner/anchor/0.1/payload.js.map +1 -1
  78. package/dist/rooms/records/get/0.1/payload.d.ts +4 -4
  79. package/dist/rooms/records/get/0.1/payload.js +2 -2
  80. package/dist/rooms/records/get/0.1/payload.js.map +1 -1
  81. package/dist/rooms/records/get/0.2/payload.d.ts +4 -4
  82. package/dist/rooms/records/get/0.2/payload.js +2 -2
  83. package/dist/rooms/records/get/0.2/payload.js.map +1 -1
  84. package/dist/rooms/records/list/0.1/payload.d.ts +4 -4
  85. package/dist/rooms/records/list/0.1/payload.js +2 -2
  86. package/dist/rooms/records/list/0.1/payload.js.map +1 -1
  87. package/dist/rooms/records/list/0.2/payload.d.ts +4 -4
  88. package/dist/rooms/records/list/0.2/payload.js +2 -2
  89. package/dist/rooms/records/list/0.2/payload.js.map +1 -1
  90. package/dist/rooms/records/list/0.3/payload.d.ts +970 -0
  91. package/dist/rooms/records/list/0.3/payload.d.ts.map +1 -0
  92. package/dist/rooms/records/list/0.3/payload.js +526 -0
  93. package/dist/rooms/records/list/0.3/payload.js.map +1 -0
  94. package/dist/rooms/records/prune/0.1/payload.d.ts +706 -0
  95. package/dist/rooms/records/prune/0.1/payload.d.ts.map +1 -0
  96. package/dist/rooms/records/prune/0.1/payload.js +374 -0
  97. package/dist/rooms/records/prune/0.1/payload.js.map +1 -0
  98. package/dist/rooms/records/put/0.3/payload.d.ts +1212 -0
  99. package/dist/rooms/records/put/0.3/payload.d.ts.map +1 -0
  100. package/dist/rooms/records/put/0.3/payload.js +646 -0
  101. package/dist/rooms/records/put/0.3/payload.js.map +1 -0
  102. package/dist/rooms/records/retention/set/0.1/payload.d.ts +521 -0
  103. package/dist/rooms/records/retention/set/0.1/payload.d.ts.map +1 -0
  104. package/dist/rooms/records/retention/set/0.1/payload.js +276 -0
  105. package/dist/rooms/records/retention/set/0.1/payload.js.map +1 -0
  106. package/dist/vault/credentials/present/0.1/payload.d.ts +407 -0
  107. package/dist/vault/credentials/present/0.1/payload.d.ts.map +1 -0
  108. package/dist/vault/credentials/present/0.1/payload.js +217 -0
  109. package/dist/vault/credentials/present/0.1/payload.js.map +1 -0
  110. package/dist/vault/credentials/query/0.1/payload.d.ts +12 -0
  111. package/dist/vault/credentials/query/0.1/payload.d.ts.map +1 -1
  112. package/dist/vault/credentials/query/0.1/payload.js +4 -0
  113. package/dist/vault/credentials/query/0.1/payload.js.map +1 -1
  114. package/dist/vta/webvh/dids/create/1.2/payload.d.ts +961 -0
  115. package/dist/vta/webvh/dids/create/1.2/payload.d.ts.map +1 -0
  116. package/dist/vta/webvh/dids/create/1.2/payload.js +480 -0
  117. package/dist/vta/webvh/dids/create/1.2/payload.js.map +1 -0
  118. package/dist/vtc/_shared/0.1/room-migration.d.ts +16 -0
  119. package/dist/vtc/_shared/0.1/room-migration.d.ts.map +1 -0
  120. package/dist/vtc/_shared/0.1/room-migration.js +6 -0
  121. package/dist/vtc/_shared/0.1/room-migration.js.map +1 -0
  122. package/dist/vtc/_shared/0.1/room-storage.d.ts +1 -1
  123. package/dist/vtc/_shared/0.1/room-storage.d.ts.map +1 -1
  124. package/dist/vtc/_shared/0.2/room-storage.d.ts +16 -0
  125. package/dist/vtc/_shared/0.2/room-storage.d.ts.map +1 -0
  126. package/dist/vtc/_shared/0.2/room-storage.js +6 -0
  127. package/dist/vtc/_shared/0.2/room-storage.js.map +1 -0
  128. package/dist/vtc/admin/events/_shared/0.4/topic.d.ts +31 -0
  129. package/dist/vtc/admin/events/_shared/0.4/topic.d.ts.map +1 -0
  130. package/dist/vtc/admin/events/_shared/0.4/topic.js +6 -0
  131. package/dist/vtc/admin/events/_shared/0.4/topic.js.map +1 -0
  132. package/dist/vtc/admin/events/event/0.4/payload.d.ts +172 -0
  133. package/dist/vtc/admin/events/event/0.4/payload.d.ts.map +1 -0
  134. package/dist/vtc/admin/events/event/0.4/payload.js +103 -0
  135. package/dist/vtc/admin/events/event/0.4/payload.js.map +1 -0
  136. package/dist/vtc/admin/events/subscribe/0.4/payload.d.ts +409 -0
  137. package/dist/vtc/admin/events/subscribe/0.4/payload.d.ts.map +1 -0
  138. package/dist/vtc/admin/events/subscribe/0.4/payload.js +238 -0
  139. package/dist/vtc/admin/events/subscribe/0.4/payload.js.map +1 -0
  140. package/dist/vtc/rooms/get/0.2/payload.d.ts +1966 -0
  141. package/dist/vtc/rooms/get/0.2/payload.d.ts.map +1 -0
  142. package/dist/vtc/rooms/get/0.2/payload.js +976 -0
  143. package/dist/vtc/rooms/get/0.2/payload.js.map +1 -0
  144. package/dist/vtc/rooms/storage/migrate/0.2/payload.d.ts +595 -0
  145. package/dist/vtc/rooms/storage/migrate/0.2/payload.d.ts.map +1 -0
  146. package/dist/vtc/rooms/storage/migrate/0.2/payload.js +336 -0
  147. package/dist/vtc/rooms/storage/migrate/0.2/payload.js.map +1 -0
  148. package/dist/vtc/storage/configs/create/0.1/payload.d.ts +1 -1
  149. package/dist/vtc/storage/configs/create/0.1/payload.d.ts.map +1 -1
  150. package/dist/vtc/storage/configs/create/0.2/payload.d.ts +1360 -0
  151. package/dist/vtc/storage/configs/create/0.2/payload.d.ts.map +1 -0
  152. package/dist/vtc/storage/configs/create/0.2/payload.js +783 -0
  153. package/dist/vtc/storage/configs/create/0.2/payload.js.map +1 -0
  154. package/dist/vtc/storage/configs/get/0.1/payload.d.ts +1 -1
  155. package/dist/vtc/storage/configs/get/0.1/payload.d.ts.map +1 -1
  156. package/dist/vtc/storage/configs/get/0.2/payload.d.ts +1854 -0
  157. package/dist/vtc/storage/configs/get/0.2/payload.d.ts.map +1 -0
  158. package/dist/vtc/storage/configs/get/0.2/payload.js +1075 -0
  159. package/dist/vtc/storage/configs/get/0.2/payload.js.map +1 -0
  160. package/dist/vtc/storage/configs/list/0.1/payload.d.ts +1 -1
  161. package/dist/vtc/storage/configs/list/0.1/payload.d.ts.map +1 -1
  162. package/dist/vtc/storage/configs/list/0.2/payload.d.ts +1955 -0
  163. package/dist/vtc/storage/configs/list/0.2/payload.d.ts.map +1 -0
  164. package/dist/vtc/storage/configs/list/0.2/payload.js +1125 -0
  165. package/dist/vtc/storage/configs/list/0.2/payload.js.map +1 -0
  166. package/dist/vtc/storage/configs/update/0.1/payload.d.ts +1 -1
  167. package/dist/vtc/storage/configs/update/0.1/payload.d.ts.map +1 -1
  168. package/dist/vtc/storage/configs/update/0.2/payload.d.ts +1362 -0
  169. package/dist/vtc/storage/configs/update/0.2/payload.d.ts.map +1 -0
  170. package/dist/vtc/storage/configs/update/0.2/payload.js +782 -0
  171. package/dist/vtc/storage/configs/update/0.2/payload.js.map +1 -0
  172. package/dist/vtc/storage/credentials/set/0.1/payload.d.ts +1 -1
  173. package/dist/vtc/storage/credentials/set/0.1/payload.d.ts.map +1 -1
  174. package/dist/vtc/storage/credentials/set/0.2/payload.d.ts +979 -0
  175. package/dist/vtc/storage/credentials/set/0.2/payload.d.ts.map +1 -0
  176. package/dist/vtc/storage/credentials/set/0.2/payload.js +573 -0
  177. package/dist/vtc/storage/credentials/set/0.2/payload.js.map +1 -0
  178. package/package.json +1 -1
  179. package/src/_runtime/consume.ts +26 -2
  180. package/src/_runtime/document.ts +17 -1
  181. package/src/_runtime/freshness.ts +9 -7
  182. package/src/_shared/components.ts +372 -23
  183. package/src/device/list/0.1/payload.ts +4 -2
  184. package/src/device/list/0.2/payload.ts +4 -2
  185. package/src/device/register/0.1/payload.ts +4 -2
  186. package/src/device/register/0.2/payload.ts +4 -2
  187. package/src/index.ts +25 -0
  188. package/src/rooms/_shared/0.1/room.ts +1 -1
  189. package/src/rooms/create/0.2/payload.ts +364 -0
  190. package/src/rooms/epoch/chain/0.2/payload.ts +347 -0
  191. package/src/rooms/epoch/prune/0.2/payload.ts +315 -0
  192. package/src/rooms/info/0.2/payload.ts +700 -0
  193. package/src/rooms/keys/backfill/0.2/payload.ts +260 -0
  194. package/src/rooms/keys/browse/0.1/payload.ts +2 -2
  195. package/src/rooms/keys/browse/0.2/payload.ts +628 -0
  196. package/src/rooms/keys/chain/0.2/payload.ts +308 -0
  197. package/src/rooms/keys/profile/read/0.1/payload.ts +2 -2
  198. package/src/rooms/keys/read/0.1/payload.ts +2 -2
  199. package/src/rooms/owner/anchor/0.1/payload.ts +2 -2
  200. package/src/rooms/records/get/0.1/payload.ts +2 -2
  201. package/src/rooms/records/get/0.2/payload.ts +2 -2
  202. package/src/rooms/records/list/0.1/payload.ts +2 -2
  203. package/src/rooms/records/list/0.2/payload.ts +2 -2
  204. package/src/rooms/records/list/0.3/payload.ts +601 -0
  205. package/src/rooms/records/prune/0.1/payload.ts +451 -0
  206. package/src/rooms/records/put/0.3/payload.ts +741 -0
  207. package/src/rooms/records/retention/set/0.1/payload.ts +338 -0
  208. package/src/vault/credentials/present/0.1/payload.ts +283 -0
  209. package/src/vault/credentials/query/0.1/payload.ts +8 -0
  210. package/src/vta/webvh/dids/create/1.2/payload.ts +660 -0
  211. package/src/vtc/_shared/0.1/room-migration.ts +17 -0
  212. package/src/vtc/_shared/0.1/room-storage.ts +1 -1
  213. package/src/vtc/_shared/0.2/room-storage.ts +17 -0
  214. package/src/vtc/admin/events/_shared/0.4/topic.ts +32 -0
  215. package/src/vtc/admin/events/event/0.4/payload.ts +137 -0
  216. package/src/vtc/admin/events/subscribe/0.4/payload.ts +318 -0
  217. package/src/vtc/rooms/get/0.2/payload.ts +1372 -0
  218. package/src/vtc/rooms/storage/migrate/0.2/payload.ts +408 -0
  219. package/src/vtc/storage/configs/create/0.1/payload.ts +1 -1
  220. package/src/vtc/storage/configs/create/0.2/payload.ts +830 -0
  221. package/src/vtc/storage/configs/get/0.1/payload.ts +1 -1
  222. package/src/vtc/storage/configs/get/0.2/payload.ts +1110 -0
  223. package/src/vtc/storage/configs/list/0.1/payload.ts +1 -1
  224. package/src/vtc/storage/configs/list/0.2/payload.ts +1177 -0
  225. package/src/vtc/storage/configs/update/0.1/payload.ts +1 -1
  226. package/src/vtc/storage/configs/update/0.2/payload.ts +829 -0
  227. package/src/vtc/storage/credentials/set/0.1/payload.ts +1 -1
  228. package/src/vtc/storage/credentials/set/0.2/payload.ts +619 -0
@@ -0,0 +1,407 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vault/credentials/present/0.1/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../_shared/components.js";
6
+ /**
7
+ * Present one stored credential to a verifier the consumer names, bound to that verifier and a nonce it chose, disclosing only the named claims.
8
+ */
9
+ export interface VaultCredentialsPresent {
10
+ /**
11
+ * Local handle from a query descriptor. Opaque; consumers must not derive or guess one.
12
+ */
13
+ id: string;
14
+ /**
15
+ * The verifier the presentation is for: the `domain` of a Data Integrity presentation, the `aud` of an SD-JWT key-binding JWT.
16
+ */
17
+ audience: string;
18
+ /**
19
+ * The value the verifier binds the presentation to: the `nonce` of a Data Integrity presentation or of an SD-JWT key-binding JWT.
20
+ */
21
+ nonce: string;
22
+ /**
23
+ * The names of the subject claims to disclose. Nothing outside them is disclosed; a credential that cannot disclose less than all its claims is refused unless they are all named.
24
+ *
25
+ * @minItems 1
26
+ * @maxItems 64
27
+ */
28
+ claims: [string, ...string[]];
29
+ /**
30
+ * Optional: why the holder is presenting, recorded with the maintainer's record of the disclosure. Never sent to the verifier.
31
+ */
32
+ purpose?: string;
33
+ /**
34
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
35
+ */
36
+ ext?: Ext;
37
+ }
38
+ export interface VaultCredentialsPresentResponsePayload {
39
+ /**
40
+ * The presentation, to be carried to the verifier unchanged.
41
+ */
42
+ presentation: {} | string;
43
+ /**
44
+ * The names of the subject claims the presentation discloses.
45
+ *
46
+ * @maxItems 256
47
+ */
48
+ disclosed: string[];
49
+ /**
50
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
51
+ */
52
+ ext?: Ext;
53
+ }
54
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
55
+ export type { Ext };
56
+ /** Trust Task type URI. */
57
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vault/credentials/present/0.1";
58
+ /** Stable alias for this specification's request payload shape. */
59
+ export type Payload = VaultCredentialsPresent;
60
+ /** Trust Task response type URI (request type URI + "#response"). */
61
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vault/credentials/present/0.1#response";
62
+ /** Stable alias for this specification's success-response payload shape. */
63
+ export type Response = VaultCredentialsPresentResponsePayload;
64
+ /**
65
+ * This specification's payload schema, as a value.
66
+ *
67
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
68
+ * rather than only as a `.json` file because TypeScript types are erased
69
+ * at runtime: without a schema a consumer has nothing to validate, and
70
+ * every REQUIRED payload member is optional in practice. Cross-file
71
+ * `$ref`s are already inlined, so it needs no resolver.
72
+ */
73
+ export declare const PAYLOAD_SCHEMA: {
74
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
75
+ readonly $id: "https://trusttasks.org/spec/vault/credentials/present/0.1";
76
+ readonly title: "Vault Credentials — Present";
77
+ readonly description: "Present one stored credential to a verifier the consumer names, bound to that verifier and a nonce it chose, disclosing only the named claims.";
78
+ readonly type: "object";
79
+ readonly additionalProperties: false;
80
+ readonly required: readonly ["id", "audience", "nonce", "claims"];
81
+ readonly properties: {
82
+ readonly id: {
83
+ readonly type: "string";
84
+ readonly minLength: 1;
85
+ readonly maxLength: 256;
86
+ readonly description: "Local handle from a query descriptor. Opaque; consumers must not derive or guess one.";
87
+ };
88
+ readonly audience: {
89
+ readonly type: "string";
90
+ readonly minLength: 1;
91
+ readonly maxLength: 512;
92
+ readonly pattern: "^\\S+$";
93
+ readonly description: "The verifier the presentation is for: the `domain` of a Data Integrity presentation, the `aud` of an SD-JWT key-binding JWT.";
94
+ };
95
+ readonly nonce: {
96
+ readonly type: "string";
97
+ readonly minLength: 1;
98
+ readonly maxLength: 256;
99
+ readonly description: "The value the verifier binds the presentation to: the `nonce` of a Data Integrity presentation or of an SD-JWT key-binding JWT.";
100
+ };
101
+ readonly claims: {
102
+ readonly type: "array";
103
+ readonly minItems: 1;
104
+ readonly maxItems: 64;
105
+ readonly uniqueItems: true;
106
+ readonly items: {
107
+ readonly type: "string";
108
+ readonly minLength: 1;
109
+ readonly maxLength: 128;
110
+ };
111
+ readonly description: "The names of the subject claims to disclose. Nothing outside them is disclosed; a credential that cannot disclose less than all its claims is refused unless they are all named.";
112
+ };
113
+ readonly purpose: {
114
+ readonly type: "string";
115
+ readonly minLength: 1;
116
+ readonly maxLength: 256;
117
+ readonly description: "Optional: why the holder is presenting, recorded with the maintainer's record of the disclosure. Never sent to the verifier.";
118
+ };
119
+ readonly ext: {
120
+ readonly $ref: "#/$defs/Ext";
121
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
122
+ };
123
+ };
124
+ readonly $defs: {
125
+ readonly Response: {
126
+ readonly $anchor: "response";
127
+ readonly title: "Vault Credentials Present — response payload";
128
+ readonly type: "object";
129
+ readonly additionalProperties: false;
130
+ readonly required: readonly ["presentation", "disclosed"];
131
+ readonly properties: {
132
+ readonly presentation: {
133
+ readonly anyOf: readonly [{
134
+ readonly type: "object";
135
+ readonly minProperties: 1;
136
+ readonly description: "A W3C Verifiable Presentation carrying `nonce` and `domain` as members its holder's Data Integrity proof signs.";
137
+ }, {
138
+ readonly type: "string";
139
+ readonly minLength: 1;
140
+ readonly maxLength: 65536;
141
+ readonly description: "A compact SD-JWT presentation with a key-binding JWT carrying `nonce` and `aud`.";
142
+ }];
143
+ readonly description: "The presentation, to be carried to the verifier unchanged.";
144
+ };
145
+ readonly disclosed: {
146
+ readonly type: "array";
147
+ readonly uniqueItems: true;
148
+ readonly maxItems: 256;
149
+ readonly items: {
150
+ readonly type: "string";
151
+ readonly minLength: 1;
152
+ readonly maxLength: 128;
153
+ };
154
+ readonly description: "The names of the subject claims the presentation discloses.";
155
+ };
156
+ readonly ext: {
157
+ readonly $ref: "#/$defs/Ext";
158
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
159
+ };
160
+ };
161
+ };
162
+ readonly Ext: {
163
+ readonly title: "Ext";
164
+ readonly 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.";
165
+ readonly type: "object";
166
+ readonly minProperties: 1;
167
+ readonly additionalProperties: true;
168
+ readonly propertyNames: {
169
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
170
+ };
171
+ };
172
+ };
173
+ };
174
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
175
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
176
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
177
+ readonly $ref: "#/$defs/Response";
178
+ readonly $defs: {
179
+ readonly Response: {
180
+ readonly $anchor: "response";
181
+ readonly title: "Vault Credentials Present — response payload";
182
+ readonly type: "object";
183
+ readonly additionalProperties: false;
184
+ readonly required: readonly ["presentation", "disclosed"];
185
+ readonly properties: {
186
+ readonly presentation: {
187
+ readonly anyOf: readonly [{
188
+ readonly type: "object";
189
+ readonly minProperties: 1;
190
+ readonly description: "A W3C Verifiable Presentation carrying `nonce` and `domain` as members its holder's Data Integrity proof signs.";
191
+ }, {
192
+ readonly type: "string";
193
+ readonly minLength: 1;
194
+ readonly maxLength: 65536;
195
+ readonly description: "A compact SD-JWT presentation with a key-binding JWT carrying `nonce` and `aud`.";
196
+ }];
197
+ readonly description: "The presentation, to be carried to the verifier unchanged.";
198
+ };
199
+ readonly disclosed: {
200
+ readonly type: "array";
201
+ readonly uniqueItems: true;
202
+ readonly maxItems: 256;
203
+ readonly items: {
204
+ readonly type: "string";
205
+ readonly minLength: 1;
206
+ readonly maxLength: 128;
207
+ };
208
+ readonly description: "The names of the subject claims the presentation discloses.";
209
+ };
210
+ readonly ext: {
211
+ readonly $ref: "#/$defs/Ext";
212
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
213
+ };
214
+ };
215
+ };
216
+ readonly Ext: {
217
+ readonly title: "Ext";
218
+ readonly 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.";
219
+ readonly type: "object";
220
+ readonly minProperties: 1;
221
+ readonly additionalProperties: true;
222
+ readonly propertyNames: {
223
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
224
+ };
225
+ };
226
+ };
227
+ };
228
+ /**
229
+ * SPEC.md §7.2 policy for the request variant, from this specification's
230
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
231
+ * per-specification and cannot be derived from the document alone, and
232
+ * item 2 needs the schema this carries.
233
+ */
234
+ export declare const SPEC: {
235
+ readonly typeUri: "https://trusttasks.org/spec/vault/credentials/present/0.1";
236
+ readonly isBearer: false;
237
+ readonly isProofRequired: true;
238
+ readonly isRecipientRequired: true;
239
+ readonly isIssuedAtRequired: true;
240
+ readonly payloadSchema: {
241
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
242
+ readonly $id: "https://trusttasks.org/spec/vault/credentials/present/0.1";
243
+ readonly title: "Vault Credentials — Present";
244
+ readonly description: "Present one stored credential to a verifier the consumer names, bound to that verifier and a nonce it chose, disclosing only the named claims.";
245
+ readonly type: "object";
246
+ readonly additionalProperties: false;
247
+ readonly required: readonly ["id", "audience", "nonce", "claims"];
248
+ readonly properties: {
249
+ readonly id: {
250
+ readonly type: "string";
251
+ readonly minLength: 1;
252
+ readonly maxLength: 256;
253
+ readonly description: "Local handle from a query descriptor. Opaque; consumers must not derive or guess one.";
254
+ };
255
+ readonly audience: {
256
+ readonly type: "string";
257
+ readonly minLength: 1;
258
+ readonly maxLength: 512;
259
+ readonly pattern: "^\\S+$";
260
+ readonly description: "The verifier the presentation is for: the `domain` of a Data Integrity presentation, the `aud` of an SD-JWT key-binding JWT.";
261
+ };
262
+ readonly nonce: {
263
+ readonly type: "string";
264
+ readonly minLength: 1;
265
+ readonly maxLength: 256;
266
+ readonly description: "The value the verifier binds the presentation to: the `nonce` of a Data Integrity presentation or of an SD-JWT key-binding JWT.";
267
+ };
268
+ readonly claims: {
269
+ readonly type: "array";
270
+ readonly minItems: 1;
271
+ readonly maxItems: 64;
272
+ readonly uniqueItems: true;
273
+ readonly items: {
274
+ readonly type: "string";
275
+ readonly minLength: 1;
276
+ readonly maxLength: 128;
277
+ };
278
+ readonly description: "The names of the subject claims to disclose. Nothing outside them is disclosed; a credential that cannot disclose less than all its claims is refused unless they are all named.";
279
+ };
280
+ readonly purpose: {
281
+ readonly type: "string";
282
+ readonly minLength: 1;
283
+ readonly maxLength: 256;
284
+ readonly description: "Optional: why the holder is presenting, recorded with the maintainer's record of the disclosure. Never sent to the verifier.";
285
+ };
286
+ readonly ext: {
287
+ readonly $ref: "#/$defs/Ext";
288
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
289
+ };
290
+ };
291
+ readonly $defs: {
292
+ readonly Response: {
293
+ readonly $anchor: "response";
294
+ readonly title: "Vault Credentials Present — response payload";
295
+ readonly type: "object";
296
+ readonly additionalProperties: false;
297
+ readonly required: readonly ["presentation", "disclosed"];
298
+ readonly properties: {
299
+ readonly presentation: {
300
+ readonly anyOf: readonly [{
301
+ readonly type: "object";
302
+ readonly minProperties: 1;
303
+ readonly description: "A W3C Verifiable Presentation carrying `nonce` and `domain` as members its holder's Data Integrity proof signs.";
304
+ }, {
305
+ readonly type: "string";
306
+ readonly minLength: 1;
307
+ readonly maxLength: 65536;
308
+ readonly description: "A compact SD-JWT presentation with a key-binding JWT carrying `nonce` and `aud`.";
309
+ }];
310
+ readonly description: "The presentation, to be carried to the verifier unchanged.";
311
+ };
312
+ readonly disclosed: {
313
+ readonly type: "array";
314
+ readonly uniqueItems: true;
315
+ readonly maxItems: 256;
316
+ readonly items: {
317
+ readonly type: "string";
318
+ readonly minLength: 1;
319
+ readonly maxLength: 128;
320
+ };
321
+ readonly description: "The names of the subject claims the presentation discloses.";
322
+ };
323
+ readonly ext: {
324
+ readonly $ref: "#/$defs/Ext";
325
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
326
+ };
327
+ };
328
+ };
329
+ readonly Ext: {
330
+ readonly title: "Ext";
331
+ readonly 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.";
332
+ readonly type: "object";
333
+ readonly minProperties: 1;
334
+ readonly additionalProperties: true;
335
+ readonly propertyNames: {
336
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
337
+ };
338
+ };
339
+ };
340
+ };
341
+ };
342
+ /**
343
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
344
+ * tracks the *issuer* party's requirement because a response swaps the
345
+ * parties (§7.3 item 5).
346
+ */
347
+ export declare const RESPONSE_SPEC: {
348
+ readonly typeUri: "https://trusttasks.org/spec/vault/credentials/present/0.1#response";
349
+ readonly isBearer: false;
350
+ readonly isProofRequired: true;
351
+ readonly isRecipientRequired: true;
352
+ readonly isIssuedAtRequired: true;
353
+ readonly payloadSchema: {
354
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
355
+ readonly $ref: "#/$defs/Response";
356
+ readonly $defs: {
357
+ readonly Response: {
358
+ readonly $anchor: "response";
359
+ readonly title: "Vault Credentials Present — response payload";
360
+ readonly type: "object";
361
+ readonly additionalProperties: false;
362
+ readonly required: readonly ["presentation", "disclosed"];
363
+ readonly properties: {
364
+ readonly presentation: {
365
+ readonly anyOf: readonly [{
366
+ readonly type: "object";
367
+ readonly minProperties: 1;
368
+ readonly description: "A W3C Verifiable Presentation carrying `nonce` and `domain` as members its holder's Data Integrity proof signs.";
369
+ }, {
370
+ readonly type: "string";
371
+ readonly minLength: 1;
372
+ readonly maxLength: 65536;
373
+ readonly description: "A compact SD-JWT presentation with a key-binding JWT carrying `nonce` and `aud`.";
374
+ }];
375
+ readonly description: "The presentation, to be carried to the verifier unchanged.";
376
+ };
377
+ readonly disclosed: {
378
+ readonly type: "array";
379
+ readonly uniqueItems: true;
380
+ readonly maxItems: 256;
381
+ readonly items: {
382
+ readonly type: "string";
383
+ readonly minLength: 1;
384
+ readonly maxLength: 128;
385
+ };
386
+ readonly description: "The names of the subject claims the presentation discloses.";
387
+ };
388
+ readonly ext: {
389
+ readonly $ref: "#/$defs/Ext";
390
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
391
+ };
392
+ };
393
+ };
394
+ readonly Ext: {
395
+ readonly title: "Ext";
396
+ readonly 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.";
397
+ readonly type: "object";
398
+ readonly minProperties: 1;
399
+ readonly additionalProperties: true;
400
+ readonly propertyNames: {
401
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
402
+ };
403
+ };
404
+ };
405
+ };
406
+ };
407
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vault/credentials/present/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OA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H,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,217 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vault/credentials/present/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vault/credentials/present/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vault/credentials/present/0.1#response";
9
+ /**
10
+ * This specification's payload schema, as a value.
11
+ *
12
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
13
+ * rather than only as a `.json` file because TypeScript types are erased
14
+ * at runtime: without a schema a consumer has nothing to validate, and
15
+ * every REQUIRED payload member is optional in practice. Cross-file
16
+ * `$ref`s are already inlined, so it needs no resolver.
17
+ */
18
+ export const PAYLOAD_SCHEMA = {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "$id": "https://trusttasks.org/spec/vault/credentials/present/0.1",
21
+ "title": "Vault Credentials — Present",
22
+ "description": "Present one stored credential to a verifier the consumer names, bound to that verifier and a nonce it chose, disclosing only the named claims.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "id",
27
+ "audience",
28
+ "nonce",
29
+ "claims"
30
+ ],
31
+ "properties": {
32
+ "id": {
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "maxLength": 256,
36
+ "description": "Local handle from a query descriptor. Opaque; consumers must not derive or guess one."
37
+ },
38
+ "audience": {
39
+ "type": "string",
40
+ "minLength": 1,
41
+ "maxLength": 512,
42
+ "pattern": "^\\S+$",
43
+ "description": "The verifier the presentation is for: the `domain` of a Data Integrity presentation, the `aud` of an SD-JWT key-binding JWT."
44
+ },
45
+ "nonce": {
46
+ "type": "string",
47
+ "minLength": 1,
48
+ "maxLength": 256,
49
+ "description": "The value the verifier binds the presentation to: the `nonce` of a Data Integrity presentation or of an SD-JWT key-binding JWT."
50
+ },
51
+ "claims": {
52
+ "type": "array",
53
+ "minItems": 1,
54
+ "maxItems": 64,
55
+ "uniqueItems": true,
56
+ "items": {
57
+ "type": "string",
58
+ "minLength": 1,
59
+ "maxLength": 128
60
+ },
61
+ "description": "The names of the subject claims to disclose. Nothing outside them is disclosed; a credential that cannot disclose less than all its claims is refused unless they are all named."
62
+ },
63
+ "purpose": {
64
+ "type": "string",
65
+ "minLength": 1,
66
+ "maxLength": 256,
67
+ "description": "Optional: why the holder is presenting, recorded with the maintainer's record of the disclosure. Never sent to the verifier."
68
+ },
69
+ "ext": {
70
+ "$ref": "#/$defs/Ext",
71
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
72
+ }
73
+ },
74
+ "$defs": {
75
+ "Response": {
76
+ "$anchor": "response",
77
+ "title": "Vault Credentials Present — response payload",
78
+ "type": "object",
79
+ "additionalProperties": false,
80
+ "required": [
81
+ "presentation",
82
+ "disclosed"
83
+ ],
84
+ "properties": {
85
+ "presentation": {
86
+ "anyOf": [
87
+ {
88
+ "type": "object",
89
+ "minProperties": 1,
90
+ "description": "A W3C Verifiable Presentation carrying `nonce` and `domain` as members its holder's Data Integrity proof signs."
91
+ },
92
+ {
93
+ "type": "string",
94
+ "minLength": 1,
95
+ "maxLength": 65536,
96
+ "description": "A compact SD-JWT presentation with a key-binding JWT carrying `nonce` and `aud`."
97
+ }
98
+ ],
99
+ "description": "The presentation, to be carried to the verifier unchanged."
100
+ },
101
+ "disclosed": {
102
+ "type": "array",
103
+ "uniqueItems": true,
104
+ "maxItems": 256,
105
+ "items": {
106
+ "type": "string",
107
+ "minLength": 1,
108
+ "maxLength": 128
109
+ },
110
+ "description": "The names of the subject claims the presentation discloses."
111
+ },
112
+ "ext": {
113
+ "$ref": "#/$defs/Ext",
114
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
115
+ }
116
+ }
117
+ },
118
+ "Ext": {
119
+ "title": "Ext",
120
+ "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.",
121
+ "type": "object",
122
+ "minProperties": 1,
123
+ "additionalProperties": true,
124
+ "propertyNames": {
125
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
126
+ }
127
+ }
128
+ }
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": "Vault Credentials Present — response payload",
138
+ "type": "object",
139
+ "additionalProperties": false,
140
+ "required": [
141
+ "presentation",
142
+ "disclosed"
143
+ ],
144
+ "properties": {
145
+ "presentation": {
146
+ "anyOf": [
147
+ {
148
+ "type": "object",
149
+ "minProperties": 1,
150
+ "description": "A W3C Verifiable Presentation carrying `nonce` and `domain` as members its holder's Data Integrity proof signs."
151
+ },
152
+ {
153
+ "type": "string",
154
+ "minLength": 1,
155
+ "maxLength": 65536,
156
+ "description": "A compact SD-JWT presentation with a key-binding JWT carrying `nonce` and `aud`."
157
+ }
158
+ ],
159
+ "description": "The presentation, to be carried to the verifier unchanged."
160
+ },
161
+ "disclosed": {
162
+ "type": "array",
163
+ "uniqueItems": true,
164
+ "maxItems": 256,
165
+ "items": {
166
+ "type": "string",
167
+ "minLength": 1,
168
+ "maxLength": 128
169
+ },
170
+ "description": "The names of the subject claims the presentation discloses."
171
+ },
172
+ "ext": {
173
+ "$ref": "#/$defs/Ext",
174
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
175
+ }
176
+ }
177
+ },
178
+ "Ext": {
179
+ "title": "Ext",
180
+ "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.",
181
+ "type": "object",
182
+ "minProperties": 1,
183
+ "additionalProperties": true,
184
+ "propertyNames": {
185
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
186
+ }
187
+ }
188
+ }
189
+ };
190
+ /**
191
+ * SPEC.md §7.2 policy for the request variant, from this specification's
192
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
193
+ * per-specification and cannot be derived from the document alone, and
194
+ * item 2 needs the schema this carries.
195
+ */
196
+ export const SPEC = {
197
+ typeUri: TYPE_URI,
198
+ isBearer: false,
199
+ isProofRequired: true,
200
+ isRecipientRequired: true,
201
+ isIssuedAtRequired: true,
202
+ payloadSchema: PAYLOAD_SCHEMA,
203
+ };
204
+ /**
205
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
206
+ * tracks the *issuer* party's requirement because a response swaps the
207
+ * parties (§7.3 item 5).
208
+ */
209
+ export const RESPONSE_SPEC = {
210
+ typeUri: RESPONSE_TYPE_URI,
211
+ isBearer: false,
212
+ isProofRequired: true,
213
+ isRecipientRequired: true,
214
+ isIssuedAtRequired: true,
215
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
216
+ };
217
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vault/credentials/present/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAyDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,2DAAoE,CAAC;AAK7F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,oEAA6E,CAAC;AAK/G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,2DAA2D;IAClE,OAAO,EAAE,6BAA6B;IACtC,aAAa,EAAE,gJAAgJ;IAC/J,MAAM,EAAE,QAAQ;IAChB,sB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;4BAClB,aAAa,EAAE,kFAAkF;yBAClG;qBACF;oBACD,aAAa,EAAE,4DAA4D;iBAC5E;gBACD,WAAW,EAAE;oBACX,MAAM,EAAE,OAAO;oBACf,aAAa,EAAE,IAAI;oBACnB,UAAU,EAAE,GAAG;oBACf,OAAO,EAAE;wBACP,MAAM,EAAE,QAAQ;wBAChB,WAAW,EAAE,CAAC;wBACd,WAAW,EAAE,GAAG;qBACjB;oBACD,aAAa,EAAE,6DAA6D;iBAC7E;gBACD,KAAK,EAAE;oBACL,MAAM,EAAE,aAAa;oBACrB,aAAa,EAAE,yDAAyD;iBACzE;aACF;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,uKAAuK;YACtL,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,CAAC;YAClB,sBAAsB,EAAE,IAAI;YAC5B,eAAe,EAAE;gBACf,SAAS,EAAE,mCAAmC;aAC/C;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
@@ -36,6 +36,10 @@ export interface VaultCredentialsQuery {
36
36
  * Match the validity dimension.
37
37
  */
38
38
  status?: "valid" | "expired" | "revoked" | "unknown";
39
+ /**
40
+ * Narrow the other constraints to credentials whose subject — the DID a presentation of the credential is made as — is this DID. Narrows only: it does not satisfy the at-least-one-filter requirement on its own.
41
+ */
42
+ subjectDid?: string;
39
43
  /**
40
44
  * Modifier, not a filter: also return archived credentials matching the other constraints. Absent means false.
41
45
  */
@@ -142,6 +146,10 @@ export declare const PAYLOAD_SCHEMA: {
142
146
  readonly $ref: "#/$defs/CredentialStatus";
143
147
  readonly description: "Match the validity dimension.";
144
148
  };
149
+ readonly subjectDid: {
150
+ readonly $ref: "#/$defs/Did";
151
+ readonly description: "Narrow the other constraints to credentials whose subject — the DID a presentation of the credential is made as — is this DID. Narrows only: it does not satisfy the at-least-one-filter requirement on its own.";
152
+ };
145
153
  readonly includeArchived: {
146
154
  readonly type: "boolean";
147
155
  readonly description: "Modifier, not a filter: also return archived credentials matching the other constraints. Absent means false.";
@@ -429,6 +437,10 @@ export declare const SPEC: {
429
437
  readonly $ref: "#/$defs/CredentialStatus";
430
438
  readonly description: "Match the validity dimension.";
431
439
  };
440
+ readonly subjectDid: {
441
+ readonly $ref: "#/$defs/Did";
442
+ readonly description: "Narrow the other constraints to credentials whose subject — the DID a presentation of the credential is made as — is this DID. Narrows only: it does not satisfy the at-least-one-filter requirement on its own.";
443
+ };
432
444
  readonly includeArchived: {
433
445
  readonly type: "boolean";
434
446
  readonly description: "Modifier, not a filter: also return archived credentials matching the other constraints. Absent means false.";