@openvtc/trust-tasks 0.26.18 → 0.26.19

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 (104) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/_shared/components.d.ts +113 -1
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +9 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +9 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/rooms/owner/group/add/0.3/payload.d.ts +417 -0
  9. package/dist/rooms/owner/group/add/0.3/payload.d.ts.map +1 -0
  10. package/dist/rooms/owner/group/add/0.3/payload.js +218 -0
  11. package/dist/rooms/owner/group/add/0.3/payload.js.map +1 -0
  12. package/dist/rooms/owner/group/renew/0.2/payload.d.ts +299 -0
  13. package/dist/rooms/owner/group/renew/0.2/payload.d.ts.map +1 -0
  14. package/dist/rooms/owner/group/renew/0.2/payload.js +163 -0
  15. package/dist/rooms/owner/group/renew/0.2/payload.js.map +1 -0
  16. package/dist/vtc/directory/_shared/0.1/directory-card.d.ts +1 -1
  17. package/dist/vtc/directory/_shared/0.1/directory-card.d.ts.map +1 -1
  18. package/dist/vtc/directory/_shared/0.1/disclosure-statement.d.ts +18 -0
  19. package/dist/vtc/directory/_shared/0.1/disclosure-statement.d.ts.map +1 -0
  20. package/dist/vtc/directory/_shared/0.1/disclosure-statement.js +6 -0
  21. package/dist/vtc/directory/_shared/0.1/disclosure-statement.js.map +1 -0
  22. package/dist/vtc/directory/card/assert/0.1/payload.d.ts +4 -4
  23. package/dist/vtc/directory/card/assert/0.1/payload.js +2 -2
  24. package/dist/vtc/directory/card/assert/0.1/payload.js.map +1 -1
  25. package/dist/vtc/directory/card/public/0.1/payload.d.ts +348 -0
  26. package/dist/vtc/directory/card/public/0.1/payload.d.ts.map +1 -0
  27. package/dist/vtc/directory/card/public/0.1/payload.js +197 -0
  28. package/dist/vtc/directory/card/public/0.1/payload.js.map +1 -0
  29. package/dist/vtc/directory/card/publish/0.1/payload.d.ts +384 -0
  30. package/dist/vtc/directory/card/publish/0.1/payload.d.ts.map +1 -0
  31. package/dist/vtc/directory/card/publish/0.1/payload.js +222 -0
  32. package/dist/vtc/directory/card/publish/0.1/payload.js.map +1 -0
  33. package/dist/vtc/directory/card/show/0.1/payload.d.ts +138 -6
  34. package/dist/vtc/directory/card/show/0.1/payload.d.ts.map +1 -1
  35. package/dist/vtc/directory/card/show/0.1/payload.js +82 -2
  36. package/dist/vtc/directory/card/show/0.1/payload.js.map +1 -1
  37. package/dist/vtc/directory/card/update/0.1/payload.d.ts +138 -6
  38. package/dist/vtc/directory/card/update/0.1/payload.d.ts.map +1 -1
  39. package/dist/vtc/directory/card/update/0.1/payload.js +82 -2
  40. package/dist/vtc/directory/card/update/0.1/payload.js.map +1 -1
  41. package/dist/vtc/directory/disclosure/0.1/payload.d.ts +951 -0
  42. package/dist/vtc/directory/disclosure/0.1/payload.d.ts.map +1 -0
  43. package/dist/vtc/directory/disclosure/0.1/payload.js +613 -0
  44. package/dist/vtc/directory/disclosure/0.1/payload.js.map +1 -0
  45. package/dist/vtc/directory/entries/list/0.1/payload.d.ts +4 -4
  46. package/dist/vtc/directory/entries/list/0.1/payload.js +2 -2
  47. package/dist/vtc/directory/entries/list/0.1/payload.js.map +1 -1
  48. package/dist/vtc/directory/entries/show/0.1/payload.d.ts +4 -4
  49. package/dist/vtc/directory/entries/show/0.1/payload.js +2 -2
  50. package/dist/vtc/directory/entries/show/0.1/payload.js.map +1 -1
  51. package/dist/vtc/directory/images/get/0.1/payload.d.ts +484 -0
  52. package/dist/vtc/directory/images/get/0.1/payload.d.ts.map +1 -0
  53. package/dist/vtc/directory/images/get/0.1/payload.js +273 -0
  54. package/dist/vtc/directory/images/get/0.1/payload.js.map +1 -0
  55. package/dist/vtc/directory/images/upload/0.1/payload.d.ts +441 -0
  56. package/dist/vtc/directory/images/upload/0.1/payload.d.ts.map +1 -0
  57. package/dist/vtc/directory/images/upload/0.1/payload.js +262 -0
  58. package/dist/vtc/directory/images/upload/0.1/payload.js.map +1 -0
  59. package/dist/vtc/directory/introduction/0.1/payload.d.ts +2 -2
  60. package/dist/vtc/directory/introduction/0.1/payload.js +1 -1
  61. package/dist/vtc/directory/introduction/0.1/payload.js.map +1 -1
  62. package/dist/vtc/groups/join/0.1/payload.d.ts +4 -4
  63. package/dist/vtc/groups/join/0.1/payload.js +2 -2
  64. package/dist/vtc/groups/join/0.1/payload.js.map +1 -1
  65. package/dist/vtc/groups/members/add/0.1/payload.d.ts +4 -4
  66. package/dist/vtc/groups/members/add/0.1/payload.js +2 -2
  67. package/dist/vtc/groups/members/add/0.1/payload.js.map +1 -1
  68. package/dist/vtc/groups/members/list/0.1/payload.d.ts +4 -4
  69. package/dist/vtc/groups/members/list/0.1/payload.js +2 -2
  70. package/dist/vtc/groups/members/list/0.1/payload.js.map +1 -1
  71. package/dist/vtc/groups/requests/decide/0.1/payload.d.ts +4 -4
  72. package/dist/vtc/groups/requests/decide/0.1/payload.js +2 -2
  73. package/dist/vtc/groups/requests/decide/0.1/payload.js.map +1 -1
  74. package/dist/vtc/groups/requests/list/0.1/payload.d.ts +4 -4
  75. package/dist/vtc/groups/requests/list/0.1/payload.js +2 -2
  76. package/dist/vtc/groups/requests/list/0.1/payload.js.map +1 -1
  77. package/dist/vtc/join-requests/manifest/0.4/payload.d.ts +2303 -0
  78. package/dist/vtc/join-requests/manifest/0.4/payload.d.ts.map +1 -0
  79. package/dist/vtc/join-requests/manifest/0.4/payload.js +1293 -0
  80. package/dist/vtc/join-requests/manifest/0.4/payload.js.map +1 -0
  81. package/package.json +1 -1
  82. package/src/_shared/components.ts +113 -1
  83. package/src/index.ts +9 -0
  84. package/src/rooms/owner/group/add/0.3/payload.ts +288 -0
  85. package/src/rooms/owner/group/renew/0.2/payload.ts +213 -0
  86. package/src/vtc/directory/_shared/0.1/directory-card.ts +1 -1
  87. package/src/vtc/directory/_shared/0.1/disclosure-statement.ts +19 -0
  88. package/src/vtc/directory/card/assert/0.1/payload.ts +2 -2
  89. package/src/vtc/directory/card/public/0.1/payload.ts +238 -0
  90. package/src/vtc/directory/card/publish/0.1/payload.ts +261 -0
  91. package/src/vtc/directory/card/show/0.1/payload.ts +84 -4
  92. package/src/vtc/directory/card/update/0.1/payload.ts +84 -4
  93. package/src/vtc/directory/disclosure/0.1/payload.ts +645 -0
  94. package/src/vtc/directory/entries/list/0.1/payload.ts +2 -2
  95. package/src/vtc/directory/entries/show/0.1/payload.ts +2 -2
  96. package/src/vtc/directory/images/get/0.1/payload.ts +320 -0
  97. package/src/vtc/directory/images/upload/0.1/payload.ts +308 -0
  98. package/src/vtc/directory/introduction/0.1/payload.ts +1 -1
  99. package/src/vtc/groups/join/0.1/payload.ts +2 -2
  100. package/src/vtc/groups/members/add/0.1/payload.ts +2 -2
  101. package/src/vtc/groups/members/list/0.1/payload.ts +2 -2
  102. package/src/vtc/groups/requests/decide/0.1/payload.ts +2 -2
  103. package/src/vtc/groups/requests/list/0.1/payload.ts +2 -2
  104. package/src/vtc/join-requests/manifest/0.4/payload.ts +1490 -0
@@ -0,0 +1,348 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/directory/card/public/0.1/payload.schema.json
4
+ */
5
+ import type { DigestMultibase, EntryId, Ext, PublishedCard } from "../../../../../_shared/components.js";
6
+ /**
7
+ * Read a member's external card, as they signed it. Anyone may ask; the request carries nothing about the reader. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTCDirectoryCardPublicPayload {
10
+ entryId: EntryId;
11
+ /**
12
+ * The card the reader expects, from a registry pointer. Where the card served now is another, the answer is `notFound`.
13
+ */
14
+ cardDigest?: DigestMultibase;
15
+ ext?: Ext;
16
+ }
17
+ /**
18
+ * The success response to a vtc/directory/card/public/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/public/0.1#response.
19
+ */
20
+ export interface VTCDirectoryCardPublicResponsePayload {
21
+ /**
22
+ * Exactly as the member signed it.
23
+ */
24
+ card: PublishedCard;
25
+ cardDigest: DigestMultibase;
26
+ publishedAt: string;
27
+ ext?: Ext;
28
+ }
29
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
30
+ export type { DigestMultibase, EntryId, Ext, PublishedCard };
31
+ /** Trust Task type URI. */
32
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/directory/card/public/0.1";
33
+ /** Stable alias for this specification's request payload shape. */
34
+ export type Payload = VTCDirectoryCardPublicPayload;
35
+ /** Trust Task response type URI (request type URI + "#response"). */
36
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/directory/card/public/0.1#response";
37
+ /** Stable alias for this specification's success-response payload shape. */
38
+ export type Response = VTCDirectoryCardPublicResponsePayload;
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 declare const PAYLOAD_SCHEMA: {
49
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
50
+ readonly $id: "https://trusttasks.org/spec/vtc/directory/card/public/0.1";
51
+ readonly title: "VTC Directory — Card — Public — payload";
52
+ readonly description: "Read a member's external card, as they signed it. Anyone may ask; the request carries nothing about the reader. The outer document members are owned by the framework — SPEC §6.3.";
53
+ readonly type: "object";
54
+ readonly additionalProperties: false;
55
+ readonly required: readonly ["entryId"];
56
+ readonly properties: {
57
+ readonly entryId: {
58
+ readonly $ref: "#/$defs/EntryId";
59
+ };
60
+ readonly cardDigest: {
61
+ readonly $ref: "#/$defs/DigestMultibase";
62
+ readonly description: "The card the reader expects, from a registry pointer. Where the card served now is another, the answer is `notFound`.";
63
+ };
64
+ readonly ext: {
65
+ readonly $ref: "#/$defs/Ext";
66
+ };
67
+ };
68
+ readonly $defs: {
69
+ readonly Response: {
70
+ readonly $anchor: "response";
71
+ readonly title: "VTC Directory — Card — Public — response payload";
72
+ readonly description: "The success response to a vtc/directory/card/public/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/public/0.1#response.";
73
+ readonly type: "object";
74
+ readonly additionalProperties: false;
75
+ readonly required: readonly ["card", "cardDigest", "publishedAt"];
76
+ readonly properties: {
77
+ readonly card: {
78
+ readonly $ref: "#/$defs/PublishedCard";
79
+ readonly description: "Exactly as the member signed it.";
80
+ };
81
+ readonly cardDigest: {
82
+ readonly $ref: "#/$defs/DigestMultibase";
83
+ };
84
+ readonly publishedAt: {
85
+ readonly type: "string";
86
+ readonly format: "date-time";
87
+ };
88
+ readonly ext: {
89
+ readonly $ref: "#/$defs/Ext";
90
+ };
91
+ };
92
+ };
93
+ readonly Ext: {
94
+ readonly title: "Ext";
95
+ 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.";
96
+ readonly type: "object";
97
+ readonly minProperties: 1;
98
+ readonly additionalProperties: true;
99
+ readonly propertyNames: {
100
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
101
+ };
102
+ };
103
+ readonly DigestMultibase: {
104
+ readonly title: "DigestMultibase";
105
+ readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
106
+ readonly type: "string";
107
+ readonly minLength: 16;
108
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
109
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
110
+ };
111
+ readonly PublishedCard: {
112
+ readonly title: "PublishedCard";
113
+ readonly description: "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.";
114
+ readonly type: "object";
115
+ readonly additionalProperties: true;
116
+ };
117
+ readonly EntryId: {
118
+ readonly title: "EntryId";
119
+ readonly description: "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.";
120
+ readonly type: "string";
121
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
122
+ };
123
+ };
124
+ };
125
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
126
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
127
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
128
+ readonly $ref: "#/$defs/Response";
129
+ readonly $defs: {
130
+ readonly Response: {
131
+ readonly $anchor: "response";
132
+ readonly title: "VTC Directory — Card — Public — response payload";
133
+ readonly description: "The success response to a vtc/directory/card/public/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/public/0.1#response.";
134
+ readonly type: "object";
135
+ readonly additionalProperties: false;
136
+ readonly required: readonly ["card", "cardDigest", "publishedAt"];
137
+ readonly properties: {
138
+ readonly card: {
139
+ readonly $ref: "#/$defs/PublishedCard";
140
+ readonly description: "Exactly as the member signed it.";
141
+ };
142
+ readonly cardDigest: {
143
+ readonly $ref: "#/$defs/DigestMultibase";
144
+ };
145
+ readonly publishedAt: {
146
+ readonly type: "string";
147
+ readonly format: "date-time";
148
+ };
149
+ readonly ext: {
150
+ readonly $ref: "#/$defs/Ext";
151
+ };
152
+ };
153
+ };
154
+ readonly Ext: {
155
+ readonly title: "Ext";
156
+ 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.";
157
+ readonly type: "object";
158
+ readonly minProperties: 1;
159
+ readonly additionalProperties: true;
160
+ readonly propertyNames: {
161
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
162
+ };
163
+ };
164
+ readonly DigestMultibase: {
165
+ readonly title: "DigestMultibase";
166
+ readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
167
+ readonly type: "string";
168
+ readonly minLength: 16;
169
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
170
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
171
+ };
172
+ readonly PublishedCard: {
173
+ readonly title: "PublishedCard";
174
+ readonly description: "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.";
175
+ readonly type: "object";
176
+ readonly additionalProperties: true;
177
+ };
178
+ readonly EntryId: {
179
+ readonly title: "EntryId";
180
+ readonly description: "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.";
181
+ readonly type: "string";
182
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
183
+ };
184
+ };
185
+ };
186
+ /**
187
+ * SPEC.md §7.2 policy for the request variant, from this specification's
188
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
189
+ * per-specification and cannot be derived from the document alone, and
190
+ * item 2 needs the schema this carries.
191
+ */
192
+ export declare const SPEC: {
193
+ readonly typeUri: "https://trusttasks.org/spec/vtc/directory/card/public/0.1";
194
+ readonly isBearer: false;
195
+ readonly isProofRequired: false;
196
+ readonly isRecipientRequired: true;
197
+ readonly isIssuedAtRequired: false;
198
+ readonly payloadSchema: {
199
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
200
+ readonly $id: "https://trusttasks.org/spec/vtc/directory/card/public/0.1";
201
+ readonly title: "VTC Directory — Card — Public — payload";
202
+ readonly description: "Read a member's external card, as they signed it. Anyone may ask; the request carries nothing about the reader. The outer document members are owned by the framework — SPEC §6.3.";
203
+ readonly type: "object";
204
+ readonly additionalProperties: false;
205
+ readonly required: readonly ["entryId"];
206
+ readonly properties: {
207
+ readonly entryId: {
208
+ readonly $ref: "#/$defs/EntryId";
209
+ };
210
+ readonly cardDigest: {
211
+ readonly $ref: "#/$defs/DigestMultibase";
212
+ readonly description: "The card the reader expects, from a registry pointer. Where the card served now is another, the answer is `notFound`.";
213
+ };
214
+ readonly ext: {
215
+ readonly $ref: "#/$defs/Ext";
216
+ };
217
+ };
218
+ readonly $defs: {
219
+ readonly Response: {
220
+ readonly $anchor: "response";
221
+ readonly title: "VTC Directory — Card — Public — response payload";
222
+ readonly description: "The success response to a vtc/directory/card/public/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/public/0.1#response.";
223
+ readonly type: "object";
224
+ readonly additionalProperties: false;
225
+ readonly required: readonly ["card", "cardDigest", "publishedAt"];
226
+ readonly properties: {
227
+ readonly card: {
228
+ readonly $ref: "#/$defs/PublishedCard";
229
+ readonly description: "Exactly as the member signed it.";
230
+ };
231
+ readonly cardDigest: {
232
+ readonly $ref: "#/$defs/DigestMultibase";
233
+ };
234
+ readonly publishedAt: {
235
+ readonly type: "string";
236
+ readonly format: "date-time";
237
+ };
238
+ readonly ext: {
239
+ readonly $ref: "#/$defs/Ext";
240
+ };
241
+ };
242
+ };
243
+ readonly Ext: {
244
+ readonly title: "Ext";
245
+ 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.";
246
+ readonly type: "object";
247
+ readonly minProperties: 1;
248
+ readonly additionalProperties: true;
249
+ readonly propertyNames: {
250
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
251
+ };
252
+ };
253
+ readonly DigestMultibase: {
254
+ readonly title: "DigestMultibase";
255
+ readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
256
+ readonly type: "string";
257
+ readonly minLength: 16;
258
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
259
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
260
+ };
261
+ readonly PublishedCard: {
262
+ readonly title: "PublishedCard";
263
+ readonly description: "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.";
264
+ readonly type: "object";
265
+ readonly additionalProperties: true;
266
+ };
267
+ readonly EntryId: {
268
+ readonly title: "EntryId";
269
+ readonly description: "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.";
270
+ readonly type: "string";
271
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
272
+ };
273
+ };
274
+ };
275
+ };
276
+ /**
277
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
278
+ * tracks the *issuer* party's requirement because a response swaps the
279
+ * parties (§7.3 item 5).
280
+ */
281
+ export declare const RESPONSE_SPEC: {
282
+ readonly typeUri: "https://trusttasks.org/spec/vtc/directory/card/public/0.1#response";
283
+ readonly isBearer: false;
284
+ readonly isProofRequired: false;
285
+ readonly isRecipientRequired: true;
286
+ readonly isIssuedAtRequired: false;
287
+ readonly payloadSchema: {
288
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
289
+ readonly $ref: "#/$defs/Response";
290
+ readonly $defs: {
291
+ readonly Response: {
292
+ readonly $anchor: "response";
293
+ readonly title: "VTC Directory — Card — Public — response payload";
294
+ readonly description: "The success response to a vtc/directory/card/public/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/public/0.1#response.";
295
+ readonly type: "object";
296
+ readonly additionalProperties: false;
297
+ readonly required: readonly ["card", "cardDigest", "publishedAt"];
298
+ readonly properties: {
299
+ readonly card: {
300
+ readonly $ref: "#/$defs/PublishedCard";
301
+ readonly description: "Exactly as the member signed it.";
302
+ };
303
+ readonly cardDigest: {
304
+ readonly $ref: "#/$defs/DigestMultibase";
305
+ };
306
+ readonly publishedAt: {
307
+ readonly type: "string";
308
+ readonly format: "date-time";
309
+ };
310
+ readonly ext: {
311
+ readonly $ref: "#/$defs/Ext";
312
+ };
313
+ };
314
+ };
315
+ readonly Ext: {
316
+ readonly title: "Ext";
317
+ 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.";
318
+ readonly type: "object";
319
+ readonly minProperties: 1;
320
+ readonly additionalProperties: true;
321
+ readonly propertyNames: {
322
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
323
+ };
324
+ };
325
+ readonly DigestMultibase: {
326
+ readonly title: "DigestMultibase";
327
+ readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
328
+ readonly type: "string";
329
+ readonly minLength: 16;
330
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
331
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
332
+ };
333
+ readonly PublishedCard: {
334
+ readonly title: "PublishedCard";
335
+ readonly description: "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.";
336
+ readonly type: "object";
337
+ readonly additionalProperties: true;
338
+ };
339
+ readonly EntryId: {
340
+ readonly title: "EntryId";
341
+ readonly description: "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.";
342
+ readonly type: "string";
343
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
344
+ };
345
+ };
346
+ };
347
+ };
348
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/directory/card/public/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAGzG;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,eAAe,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,CAAC;AAE7D,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,2DAAoE,CAAC;AAE7F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,6BAA6B,CAAC;AAEpD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,oEAA6E,CAAC;AAE/G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,qCAAqC,CAAC;AAE7D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiE1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,197 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/directory/card/public/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/directory/card/public/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/directory/card/public/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/vtc/directory/card/public/0.1",
21
+ "title": "VTC Directory — Card — Public — payload",
22
+ "description": "Read a member's external card, as they signed it. Anyone may ask; the request carries nothing about the reader. The outer document members are owned by the framework — SPEC §6.3.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "entryId"
27
+ ],
28
+ "properties": {
29
+ "entryId": {
30
+ "$ref": "#/$defs/EntryId"
31
+ },
32
+ "cardDigest": {
33
+ "$ref": "#/$defs/DigestMultibase",
34
+ "description": "The card the reader expects, from a registry pointer. Where the card served now is another, the answer is `notFound`."
35
+ },
36
+ "ext": {
37
+ "$ref": "#/$defs/Ext"
38
+ }
39
+ },
40
+ "$defs": {
41
+ "Response": {
42
+ "$anchor": "response",
43
+ "title": "VTC Directory — Card — Public — response payload",
44
+ "description": "The success response to a vtc/directory/card/public/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/public/0.1#response.",
45
+ "type": "object",
46
+ "additionalProperties": false,
47
+ "required": [
48
+ "card",
49
+ "cardDigest",
50
+ "publishedAt"
51
+ ],
52
+ "properties": {
53
+ "card": {
54
+ "$ref": "#/$defs/PublishedCard",
55
+ "description": "Exactly as the member signed it."
56
+ },
57
+ "cardDigest": {
58
+ "$ref": "#/$defs/DigestMultibase"
59
+ },
60
+ "publishedAt": {
61
+ "type": "string",
62
+ "format": "date-time"
63
+ },
64
+ "ext": {
65
+ "$ref": "#/$defs/Ext"
66
+ }
67
+ }
68
+ },
69
+ "Ext": {
70
+ "title": "Ext",
71
+ "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.",
72
+ "type": "object",
73
+ "minProperties": 1,
74
+ "additionalProperties": true,
75
+ "propertyNames": {
76
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
77
+ }
78
+ },
79
+ "DigestMultibase": {
80
+ "title": "DigestMultibase",
81
+ "description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
82
+ "type": "string",
83
+ "minLength": 16,
84
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
85
+ "examples": [
86
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
87
+ ]
88
+ },
89
+ "PublishedCard": {
90
+ "title": "PublishedCard",
91
+ "description": "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.",
92
+ "type": "object",
93
+ "additionalProperties": true
94
+ },
95
+ "EntryId": {
96
+ "title": "EntryId",
97
+ "description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
98
+ "type": "string",
99
+ "pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
100
+ }
101
+ }
102
+ };
103
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
104
+ export const RESPONSE_PAYLOAD_SCHEMA = {
105
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
106
+ "$ref": "#/$defs/Response",
107
+ "$defs": {
108
+ "Response": {
109
+ "$anchor": "response",
110
+ "title": "VTC Directory — Card — Public — response payload",
111
+ "description": "The success response to a vtc/directory/card/public/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/public/0.1#response.",
112
+ "type": "object",
113
+ "additionalProperties": false,
114
+ "required": [
115
+ "card",
116
+ "cardDigest",
117
+ "publishedAt"
118
+ ],
119
+ "properties": {
120
+ "card": {
121
+ "$ref": "#/$defs/PublishedCard",
122
+ "description": "Exactly as the member signed it."
123
+ },
124
+ "cardDigest": {
125
+ "$ref": "#/$defs/DigestMultibase"
126
+ },
127
+ "publishedAt": {
128
+ "type": "string",
129
+ "format": "date-time"
130
+ },
131
+ "ext": {
132
+ "$ref": "#/$defs/Ext"
133
+ }
134
+ }
135
+ },
136
+ "Ext": {
137
+ "title": "Ext",
138
+ "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.",
139
+ "type": "object",
140
+ "minProperties": 1,
141
+ "additionalProperties": true,
142
+ "propertyNames": {
143
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
144
+ }
145
+ },
146
+ "DigestMultibase": {
147
+ "title": "DigestMultibase",
148
+ "description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
149
+ "type": "string",
150
+ "minLength": 16,
151
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
152
+ "examples": [
153
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
154
+ ]
155
+ },
156
+ "PublishedCard": {
157
+ "title": "PublishedCard",
158
+ "description": "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.",
159
+ "type": "object",
160
+ "additionalProperties": true
161
+ },
162
+ "EntryId": {
163
+ "title": "EntryId",
164
+ "description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
165
+ "type": "string",
166
+ "pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
167
+ }
168
+ }
169
+ };
170
+ /**
171
+ * SPEC.md §7.2 policy for the request variant, from this specification's
172
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
173
+ * per-specification and cannot be derived from the document alone, and
174
+ * item 2 needs the schema this carries.
175
+ */
176
+ export const SPEC = {
177
+ typeUri: TYPE_URI,
178
+ isBearer: false,
179
+ isProofRequired: false,
180
+ isRecipientRequired: true,
181
+ isIssuedAtRequired: false,
182
+ payloadSchema: PAYLOAD_SCHEMA,
183
+ };
184
+ /**
185
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
186
+ * tracks the *issuer* party's requirement because a response swaps the
187
+ * parties (§7.3 item 5).
188
+ */
189
+ export const RESPONSE_SPEC = {
190
+ typeUri: RESPONSE_TYPE_URI,
191
+ isBearer: false,
192
+ isProofRequired: false,
193
+ isRecipientRequired: true,
194
+ isIssuedAtRequired: false,
195
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
196
+ };
197
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/directory/card/public/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgCH,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,yCAAyC;IAClD,aAAa,EAAE,oLAAoL;IACnM,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,SAAS;KACV;IACD,YAAY,EAAE;QACZ,SAAS,EAAE;YACT,MAAM,EAAE,iBAAiB;SAC1B;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,yBAAyB;YACjC,aAAa,EAAE,uHAAuH;SACvI;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,kDAAkD;YAC3D,aAAa,EAAE,qLAAqL;YACpM,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,MAAM;gBACN,YAAY;gBACZ,aAAa;aACd;YACD,YAAY,EAAE;gBACZ,MAAM,EAAE;oBACN,MAAM,EAAE,uBAAuB;oBAC/B,aAAa,EAAE,kCAAkC;iBAClD;gBACD,YAAY,EAAE;oBACZ,MAAM,EAAE,yBAAyB;iBAClC;gBACD,aAAa,EAAE;oBACb,MAAM,EAAE,QAAQ;oBAChB,QAAQ,EAAE,WAAW;iBACtB;gBACD,KAAK,EAAE;oBACL,MAAM,EAAE,aAAa;iBACtB;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;QACD,iBAAiB,EAAE;YACjB,OAAO,EAAE,iBAAiB;YAC1B,aAAa,EAAE,gnDAAgnD;YAC/nD,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,EAAE;YACf,SAAS,EAAE,4CAA4C;YACvD,UAAU,EAAE;gBACV,iDAAiD;aAClD;SACF;QACD,eAAe,EAAE;YACf,OAAO,EAAE,eAAe;YACxB,aAAa,EAAE,8+BAA8+B;YAC7/B,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,IAAI;SAC7B;QACD,SAAS,EAAE;YACT,OAAO,EAAE,SAAS;YAClB,aAAa,EAAE,6bAA6b;YAC5c,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,4BAA4B;SACxC;KACF;CACO,CAAC;AAEX,mEAAmE;AACnE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,SAAS,EAAE,8CAA8C;IACzD,MAAM,EAAE,kBAAkB;IAC1B,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,kDAAkD;YAC3D,aAAa,EAAE,qLAAqL;YACpM,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,MAAM;gBACN,YAAY;gBACZ,aAAa;aACd;YACD,YAAY,EAAE;gBACZ,MAAM,EAAE;oBACN,MAAM,EAAE,uBAAuB;oBAC/B,aAAa,EAAE,kCAAkC;iBAClD;gBACD,YAAY,EAAE;oBACZ,MAAM,EAAE,yBAAyB;iBAClC;gBACD,aAAa,EAAE;oBACb,MAAM,EAAE,QAAQ;oBAChB,QAAQ,EAAE,WAAW;iBACtB;gBACD,KAAK,EAAE;oBACL,MAAM,EAAE,aAAa;iBACtB;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;QACD,iBAAiB,EAAE;YACjB,OAAO,EAAE,iBAAiB;YAC1B,aAAa,EAAE,gnDAAgnD;YAC/nD,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,EAAE;YACf,SAAS,EAAE,4CAA4C;YACvD,UAAU,EAAE;gBACV,iDAAiD;aAClD;SACF;QACD,eAAe,EAAE;YACf,OAAO,EAAE,eAAe;YACxB,aAAa,EAAE,8+BAA8+B;YAC7/B,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,IAAI;SAC7B;QACD,SAAS,EAAE;YACT,OAAO,EAAE,SAAS;YAClB,aAAa,EAAE,6bAA6b;YAC5c,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,4BAA4B;SACxC;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}