@openvtc/trust-tasks 0.12.9 → 0.12.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/vtc/_shared/0.1/endorsement.d.ts +1 -1
  2. package/dist/vtc/ceremonies/list/0.1/payload.d.ts +22 -0
  3. package/dist/vtc/ceremonies/list/0.1/payload.d.ts.map +1 -1
  4. package/dist/vtc/ceremonies/list/0.1/payload.js +8 -0
  5. package/dist/vtc/ceremonies/list/0.1/payload.js.map +1 -1
  6. package/dist/vtc/community/profile/show/0.1/payload.d.ts +81 -22
  7. package/dist/vtc/community/profile/show/0.1/payload.d.ts.map +1 -1
  8. package/dist/vtc/community/profile/show/0.1/payload.js +34 -8
  9. package/dist/vtc/community/profile/show/0.1/payload.js.map +1 -1
  10. package/dist/vtc/community/profile/update/0.1/payload.d.ts +81 -22
  11. package/dist/vtc/community/profile/update/0.1/payload.d.ts.map +1 -1
  12. package/dist/vtc/community/profile/update/0.1/payload.js +34 -8
  13. package/dist/vtc/community/profile/update/0.1/payload.js.map +1 -1
  14. package/dist/vtc/endorsements/issue/0.1/payload.d.ts +65 -65
  15. package/dist/vtc/endorsements/issue/0.1/payload.d.ts.map +1 -1
  16. package/dist/vtc/endorsements/issue/0.1/payload.js +36 -32
  17. package/dist/vtc/endorsements/issue/0.1/payload.js.map +1 -1
  18. package/dist/vtc/endorsements/list/0.1/payload.d.ts +41 -61
  19. package/dist/vtc/endorsements/list/0.1/payload.d.ts.map +1 -1
  20. package/dist/vtc/endorsements/list/0.1/payload.js +24 -30
  21. package/dist/vtc/endorsements/list/0.1/payload.js.map +1 -1
  22. package/dist/vtc/endorsements/show/0.1/payload.d.ts +41 -61
  23. package/dist/vtc/endorsements/show/0.1/payload.d.ts.map +1 -1
  24. package/dist/vtc/endorsements/show/0.1/payload.js +24 -30
  25. package/dist/vtc/endorsements/show/0.1/payload.js.map +1 -1
  26. package/dist/vtc/install/claim/start/0.1/payload.d.ts +18 -0
  27. package/dist/vtc/install/claim/start/0.1/payload.d.ts.map +1 -1
  28. package/dist/vtc/install/claim/start/0.1/payload.js +5 -0
  29. package/dist/vtc/install/claim/start/0.1/payload.js.map +1 -1
  30. package/dist/vtc/registry/diagnostics/0.1/payload.d.ts +491 -0
  31. package/dist/vtc/registry/diagnostics/0.1/payload.d.ts.map +1 -1
  32. package/dist/vtc/registry/diagnostics/0.1/payload.js +260 -0
  33. package/dist/vtc/registry/diagnostics/0.1/payload.js.map +1 -1
  34. package/dist/vtc/website/files/list/0.1/payload.d.ts +24 -0
  35. package/dist/vtc/website/files/list/0.1/payload.d.ts.map +1 -1
  36. package/dist/vtc/website/files/list/0.1/payload.js +10 -0
  37. package/dist/vtc/website/files/list/0.1/payload.js.map +1 -1
  38. package/dist/vtc/website/generations/list/0.1/payload.d.ts +48 -0
  39. package/dist/vtc/website/generations/list/0.1/payload.d.ts.map +1 -1
  40. package/dist/vtc/website/generations/list/0.1/payload.js +20 -0
  41. package/dist/vtc/website/generations/list/0.1/payload.js.map +1 -1
  42. package/package.json +1 -1
  43. package/src/vtc/_shared/0.1/endorsement.ts +1 -1
  44. package/src/vtc/ceremonies/list/0.1/payload.ts +14 -0
  45. package/src/vtc/community/profile/show/0.1/payload.ts +47 -10
  46. package/src/vtc/community/profile/update/0.1/payload.ts +47 -10
  47. package/src/vtc/endorsements/issue/0.1/payload.ts +45 -41
  48. package/src/vtc/endorsements/list/0.1/payload.ts +29 -39
  49. package/src/vtc/endorsements/show/0.1/payload.ts +29 -39
  50. package/src/vtc/install/claim/start/0.1/payload.ts +13 -0
  51. package/src/vtc/registry/diagnostics/0.1/payload.ts +343 -0
  52. package/src/vtc/website/files/list/0.1/payload.ts +14 -0
  53. package/src/vtc/website/generations/list/0.1/payload.ts +28 -0
@@ -1 +1 @@
1
- {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/community/profile/update/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;G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qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,uEAAgF,CAAC;AAElH,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,wCAAwC,CAAC;AAEhE;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0MjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqJ1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
@@ -82,7 +82,8 @@ export const PAYLOAD_SCHEMA = {
82
82
  ],
83
83
  "properties": {
84
84
  "profile": {
85
- "$ref": "#/$defs/CommunityProfile"
85
+ "$ref": "#/$defs/CommunityProfileView",
86
+ "description": "The community's profile as read, including the immutable `communityDid` an update cannot set."
86
87
  },
87
88
  "fieldsChanged": {
88
89
  "type": "array",
@@ -106,16 +107,28 @@ export const PAYLOAD_SCHEMA = {
106
107
  "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
107
108
  }
108
109
  },
109
- "CommunityProfile": {
110
- "$anchor": "communityProfile",
111
- "title": "CommunityProfile",
110
+ "CommunityProfileView": {
111
+ "$anchor": "communityProfileView",
112
+ "title": "CommunityProfileView",
112
113
  "type": "object",
113
114
  "additionalProperties": false,
115
+ "description": "A community profile **as read**: every member of CommunityProfile, plus the immutable identity a reader needs and an update must never set.\n\nCommunityProfile is the update-facing view and omits `communityDid` on purpose, so that a patch cannot re-point a community's identity. That is right for a payload and wrong for a response: a client holding a profile has no other way to learn which DID to verify that community's credentials against, and `community/profile/show` returning the update-facing view left the one member a consumer most needs undefined.\n\nSo reads get this and updates keep CommunityProfile. The split is the point — the immutability of `communityDid` is enforced by it being absent from the payload, not by prose asking implementers not to honour it.",
114
116
  "required": [
117
+ "communityDid",
115
118
  "name",
116
119
  "language"
117
120
  ],
118
121
  "properties": {
122
+ "communityDid": {
123
+ "type": "string",
124
+ "minLength": 1,
125
+ "description": "The community's own DID — the identifier every credential it issues names as `issuer`, and the one a member's credential binds them to. Immutable: set when the community is created and not settable through an update."
126
+ },
127
+ "createdAt": {
128
+ "type": "string",
129
+ "format": "date-time",
130
+ "description": "When the community was created. Immutable, like `communityDid`."
131
+ },
119
132
  "name": {
120
133
  "type": "string",
121
134
  "minLength": 1
@@ -220,7 +233,8 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
220
233
  ],
221
234
  "properties": {
222
235
  "profile": {
223
- "$ref": "#/$defs/CommunityProfile"
236
+ "$ref": "#/$defs/CommunityProfileView",
237
+ "description": "The community's profile as read, including the immutable `communityDid` an update cannot set."
224
238
  },
225
239
  "fieldsChanged": {
226
240
  "type": "array",
@@ -244,16 +258,28 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
244
258
  "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
245
259
  }
246
260
  },
247
- "CommunityProfile": {
248
- "$anchor": "communityProfile",
249
- "title": "CommunityProfile",
261
+ "CommunityProfileView": {
262
+ "$anchor": "communityProfileView",
263
+ "title": "CommunityProfileView",
250
264
  "type": "object",
251
265
  "additionalProperties": false,
266
+ "description": "A community profile **as read**: every member of CommunityProfile, plus the immutable identity a reader needs and an update must never set.\n\nCommunityProfile is the update-facing view and omits `communityDid` on purpose, so that a patch cannot re-point a community's identity. That is right for a payload and wrong for a response: a client holding a profile has no other way to learn which DID to verify that community's credentials against, and `community/profile/show` returning the update-facing view left the one member a consumer most needs undefined.\n\nSo reads get this and updates keep CommunityProfile. The split is the point — the immutability of `communityDid` is enforced by it being absent from the payload, not by prose asking implementers not to honour it.",
252
267
  "required": [
268
+ "communityDid",
253
269
  "name",
254
270
  "language"
255
271
  ],
256
272
  "properties": {
273
+ "communityDid": {
274
+ "type": "string",
275
+ "minLength": 1,
276
+ "description": "The community's own DID — the identifier every credential it issues names as `issuer`, and the one a member's credential binds them to. Immutable: set when the community is created and not settable through an update."
277
+ },
278
+ "createdAt": {
279
+ "type": "string",
280
+ "format": "date-time",
281
+ "description": "When the community was created. Immutable, like `communityDid`."
282
+ },
257
283
  "name": {
258
284
  "type": "string",
259
285
  "minLength": 1
@@ -1 +1 @@
1
- {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/community/profile/update/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAkGH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,8DAAuE,CAAC;AAKhG,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,uEAAgF,CAAC;AAKlH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,8DAA8D;IACrE,OAAO,EAAE,wCAAwC;IACjD,MAAM,EAAE,QAAQ;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AAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,aAAa,EAAE,sqBAAsqB;YACrrB,YAAY,EAAE;gBACZ,WAAW,EAAE;oBACX,MAAM,EAAE,SAAS;oBACjB,aAAa,EAAE,yNAAyN;iBACzO;gBACD,kBAAkB,EAAE;oBAClB,MAAM,EAAE,SAAS;oBACjB,aAAa,EAAE,sPAAsP;iBACtQ;gBACD,eAAe,EAAE;oBACf,MAAM,EAAE,OAAO;oBACf,OAAO,EAAE;wBACP,MAAM,EAAE,QAAQ;wBAChB,WAAW,EAAE,CAAC;qBACf;oBACD,aAAa,EAAE,qUAAqU;iBACrV;gBACD,wBAAwB,EAAE;oBACxB,MAAM,EAAE;wBACN,QAAQ;wBACR,MAAM;qBACP;oBACD,aAAa,EAAE,uEAAuE;iBACvF;aACF;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,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,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/community/profile/update/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6GH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,8DAAuE,CAAC;AAKhG,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,uEAAgF,CAAC;AAKlH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE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ClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;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,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
@@ -33,6 +33,10 @@ export interface Ext {
33
33
  }
34
34
  export interface VTCEndorsementsIssueResponsePayload {
35
35
  endorsement: Endorsement;
36
+ /**
37
+ * The signed VEC just minted. Present only here: handing back the credential is the point of an issue call, and the issuer is the only party that can. Reads carry `endorsement.issued` — the reference — instead.
38
+ */
39
+ credential: {};
36
40
  ext?: Ext;
37
41
  }
38
42
  export interface Endorsement {
@@ -52,7 +56,7 @@ export interface Endorsement {
52
56
  * The attested claim body, validated against the endorsement type's claimSchema when it declares one.
53
57
  */
54
58
  claim?: {};
55
- issued: IssuedCredential;
59
+ issued: CredentialReference;
56
60
  /**
57
61
  * The endorsement's slot on the community's shared Revocation status list. Published, so a foreign verifier can check revocation without contacting this community.
58
62
  */
@@ -63,22 +67,18 @@ export interface Endorsement {
63
67
  revokedAt?: string | null;
64
68
  }
65
69
  /**
66
- * The registry-wide issuance receiptcredentialId, the signed VEC, and expiry.
70
+ * A pointer to the issued VEC its identifier and lifetime, not its bytes. `endorsements/issue` additionally returns the credential itself, because that is the one call whose caller has no other way to receive it.
67
71
  */
68
- export interface IssuedCredential {
72
+ export interface CredentialReference {
69
73
  credentialId: CredentialId;
70
- /**
71
- * The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's key. Opaque to the framework.
72
- */
73
- credential: {};
74
74
  /**
75
75
  * When the credential was minted.
76
76
  */
77
77
  issuedAt?: string;
78
78
  /**
79
- * When the credential's validUntil falls due.
79
+ * When it lapses, or null when it does not.
80
80
  */
81
- expiresAt: string;
81
+ expiresAt?: string | null;
82
82
  }
83
83
  /** Trust Task type URI. */
84
84
  export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/endorsements/issue/0.1";
@@ -136,11 +136,15 @@ export declare const PAYLOAD_SCHEMA: {
136
136
  readonly title: "VTC Endorsements Issue — response payload";
137
137
  readonly type: "object";
138
138
  readonly additionalProperties: false;
139
- readonly required: readonly ["endorsement"];
139
+ readonly required: readonly ["endorsement", "credential"];
140
140
  readonly properties: {
141
141
  readonly endorsement: {
142
142
  readonly $ref: "#/$defs/Endorsement";
143
143
  };
144
+ readonly credential: {
145
+ readonly type: "object";
146
+ readonly description: "The signed VEC just minted. Present only here: handing back the credential is the point of an issue call, and the issuer is the only party that can. Reads carry `endorsement.issued` — the reference — instead.";
147
+ };
144
148
  readonly ext: {
145
149
  readonly $ref: "#/$defs/Ext";
146
150
  };
@@ -184,8 +188,8 @@ export declare const PAYLOAD_SCHEMA: {
184
188
  readonly description: "The attested claim body, validated against the endorsement type's claimSchema when it declares one.";
185
189
  };
186
190
  readonly issued: {
187
- readonly $ref: "#/$defs/IssuedCredential";
188
- readonly description: "The registry-wide issuance receiptcredentialId, the signed VEC, and expiry.";
191
+ readonly $ref: "#/$defs/CredentialReference";
192
+ readonly description: "A pointer to the issued VEC its identifier and lifetime, not its bytes. `endorsements/issue` additionally returns the credential itself, because that is the one call whose caller has no other way to receive it.";
189
193
  };
190
194
  readonly statusListIndex: {
191
195
  readonly type: "integer";
@@ -199,30 +203,26 @@ export declare const PAYLOAD_SCHEMA: {
199
203
  };
200
204
  };
201
205
  };
202
- readonly IssuedCredential: {
203
- readonly $anchor: "issuedCredential";
204
- readonly title: "IssuedCredential";
205
- readonly description: "The receipt for a successfully-minted Verifiable Credential: a stable handle for revocation and audit, the signed credential itself, and when it lapses.\n\nSCOPE — this is an *issuance* receipt, returned by the party that minted the credential. It is not the shape for a *delivery* receipt, where a holder hands an already-issued credential to a party that stores it: such a task returns a receipt naming what was stored (see vtc/members/vmc and vtc/join-requests/accept) and MUST NOT echo the credential back to the party that just sent it. Reaching for this definition on a delivery task is the mistake this paragraph exists to prevent.\n\n`additionalProperties` is false, so a specification needing extra members cannot compose this by `$ref` — `allOf` evaluates each subschema against the whole object and this one would reject them. vta/credentials/issue is that case: its response is this shape plus `supersedes` and `ext`, and it therefore states the members inline while `$ref`-ing the shared CredentialId. That is deliberate, not drift.";
206
+ readonly CredentialReference: {
207
+ readonly $anchor: "credentialReference";
208
+ readonly title: "CredentialReference";
206
209
  readonly type: "object";
207
210
  readonly additionalProperties: false;
208
- readonly required: readonly ["credentialId", "credential", "expiresAt"];
211
+ readonly description: "A pointer to an issued credential, without the credential itself.\n\nThe counterpart to IssuedCredential, for the far more common case of *reading about* a credential rather than being handed one. A listing that embedded the signed credential in every row would grow with the size of the credentials rather than the number of them — a page of fifty is megabytes — and a reader that only needs to know a credential exists, when it lapses, and how to revoke it does not need the bytes.\n\nThe holder can always fetch the credential itself by `credentialId`, and a verifier can check revocation from the row's status-list slot without either. Reach for IssuedCredential only at the moment of minting, where the caller has no other way to receive what was just made for them.";
212
+ readonly required: readonly ["credentialId"];
209
213
  readonly properties: {
210
214
  readonly credentialId: {
211
215
  readonly $ref: "#/$defs/CredentialId";
212
216
  };
213
- readonly credential: {
214
- readonly type: "object";
215
- readonly description: "The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's key. Opaque to the framework.";
216
- };
217
217
  readonly issuedAt: {
218
218
  readonly type: "string";
219
219
  readonly format: "date-time";
220
220
  readonly description: "When the credential was minted.";
221
221
  };
222
222
  readonly expiresAt: {
223
- readonly type: "string";
223
+ readonly type: readonly ["string", "null"];
224
224
  readonly format: "date-time";
225
- readonly description: "When the credential's validUntil falls due.";
225
+ readonly description: "When it lapses, or null when it does not.";
226
226
  };
227
227
  };
228
228
  };
@@ -245,11 +245,15 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
245
245
  readonly title: "VTC Endorsements Issue — response payload";
246
246
  readonly type: "object";
247
247
  readonly additionalProperties: false;
248
- readonly required: readonly ["endorsement"];
248
+ readonly required: readonly ["endorsement", "credential"];
249
249
  readonly properties: {
250
250
  readonly endorsement: {
251
251
  readonly $ref: "#/$defs/Endorsement";
252
252
  };
253
+ readonly credential: {
254
+ readonly type: "object";
255
+ readonly description: "The signed VEC just minted. Present only here: handing back the credential is the point of an issue call, and the issuer is the only party that can. Reads carry `endorsement.issued` — the reference — instead.";
256
+ };
253
257
  readonly ext: {
254
258
  readonly $ref: "#/$defs/Ext";
255
259
  };
@@ -293,8 +297,8 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
293
297
  readonly description: "The attested claim body, validated against the endorsement type's claimSchema when it declares one.";
294
298
  };
295
299
  readonly issued: {
296
- readonly $ref: "#/$defs/IssuedCredential";
297
- readonly description: "The registry-wide issuance receiptcredentialId, the signed VEC, and expiry.";
300
+ readonly $ref: "#/$defs/CredentialReference";
301
+ readonly description: "A pointer to the issued VEC its identifier and lifetime, not its bytes. `endorsements/issue` additionally returns the credential itself, because that is the one call whose caller has no other way to receive it.";
298
302
  };
299
303
  readonly statusListIndex: {
300
304
  readonly type: "integer";
@@ -308,30 +312,26 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
308
312
  };
309
313
  };
310
314
  };
311
- readonly IssuedCredential: {
312
- readonly $anchor: "issuedCredential";
313
- readonly title: "IssuedCredential";
314
- readonly description: "The receipt for a successfully-minted Verifiable Credential: a stable handle for revocation and audit, the signed credential itself, and when it lapses.\n\nSCOPE — this is an *issuance* receipt, returned by the party that minted the credential. It is not the shape for a *delivery* receipt, where a holder hands an already-issued credential to a party that stores it: such a task returns a receipt naming what was stored (see vtc/members/vmc and vtc/join-requests/accept) and MUST NOT echo the credential back to the party that just sent it. Reaching for this definition on a delivery task is the mistake this paragraph exists to prevent.\n\n`additionalProperties` is false, so a specification needing extra members cannot compose this by `$ref` — `allOf` evaluates each subschema against the whole object and this one would reject them. vta/credentials/issue is that case: its response is this shape plus `supersedes` and `ext`, and it therefore states the members inline while `$ref`-ing the shared CredentialId. That is deliberate, not drift.";
315
+ readonly CredentialReference: {
316
+ readonly $anchor: "credentialReference";
317
+ readonly title: "CredentialReference";
315
318
  readonly type: "object";
316
319
  readonly additionalProperties: false;
317
- readonly required: readonly ["credentialId", "credential", "expiresAt"];
320
+ readonly description: "A pointer to an issued credential, without the credential itself.\n\nThe counterpart to IssuedCredential, for the far more common case of *reading about* a credential rather than being handed one. A listing that embedded the signed credential in every row would grow with the size of the credentials rather than the number of them — a page of fifty is megabytes — and a reader that only needs to know a credential exists, when it lapses, and how to revoke it does not need the bytes.\n\nThe holder can always fetch the credential itself by `credentialId`, and a verifier can check revocation from the row's status-list slot without either. Reach for IssuedCredential only at the moment of minting, where the caller has no other way to receive what was just made for them.";
321
+ readonly required: readonly ["credentialId"];
318
322
  readonly properties: {
319
323
  readonly credentialId: {
320
324
  readonly $ref: "#/$defs/CredentialId";
321
325
  };
322
- readonly credential: {
323
- readonly type: "object";
324
- readonly description: "The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's key. Opaque to the framework.";
325
- };
326
326
  readonly issuedAt: {
327
327
  readonly type: "string";
328
328
  readonly format: "date-time";
329
329
  readonly description: "When the credential was minted.";
330
330
  };
331
331
  readonly expiresAt: {
332
- readonly type: "string";
332
+ readonly type: readonly ["string", "null"];
333
333
  readonly format: "date-time";
334
- readonly description: "When the credential's validUntil falls due.";
334
+ readonly description: "When it lapses, or null when it does not.";
335
335
  };
336
336
  };
337
337
  };
@@ -394,11 +394,15 @@ export declare const SPEC: {
394
394
  readonly title: "VTC Endorsements Issue — response payload";
395
395
  readonly type: "object";
396
396
  readonly additionalProperties: false;
397
- readonly required: readonly ["endorsement"];
397
+ readonly required: readonly ["endorsement", "credential"];
398
398
  readonly properties: {
399
399
  readonly endorsement: {
400
400
  readonly $ref: "#/$defs/Endorsement";
401
401
  };
402
+ readonly credential: {
403
+ readonly type: "object";
404
+ readonly description: "The signed VEC just minted. Present only here: handing back the credential is the point of an issue call, and the issuer is the only party that can. Reads carry `endorsement.issued` — the reference — instead.";
405
+ };
402
406
  readonly ext: {
403
407
  readonly $ref: "#/$defs/Ext";
404
408
  };
@@ -442,8 +446,8 @@ export declare const SPEC: {
442
446
  readonly description: "The attested claim body, validated against the endorsement type's claimSchema when it declares one.";
443
447
  };
444
448
  readonly issued: {
445
- readonly $ref: "#/$defs/IssuedCredential";
446
- readonly description: "The registry-wide issuance receiptcredentialId, the signed VEC, and expiry.";
449
+ readonly $ref: "#/$defs/CredentialReference";
450
+ readonly description: "A pointer to the issued VEC its identifier and lifetime, not its bytes. `endorsements/issue` additionally returns the credential itself, because that is the one call whose caller has no other way to receive it.";
447
451
  };
448
452
  readonly statusListIndex: {
449
453
  readonly type: "integer";
@@ -457,30 +461,26 @@ export declare const SPEC: {
457
461
  };
458
462
  };
459
463
  };
460
- readonly IssuedCredential: {
461
- readonly $anchor: "issuedCredential";
462
- readonly title: "IssuedCredential";
463
- readonly description: "The receipt for a successfully-minted Verifiable Credential: a stable handle for revocation and audit, the signed credential itself, and when it lapses.\n\nSCOPE — this is an *issuance* receipt, returned by the party that minted the credential. It is not the shape for a *delivery* receipt, where a holder hands an already-issued credential to a party that stores it: such a task returns a receipt naming what was stored (see vtc/members/vmc and vtc/join-requests/accept) and MUST NOT echo the credential back to the party that just sent it. Reaching for this definition on a delivery task is the mistake this paragraph exists to prevent.\n\n`additionalProperties` is false, so a specification needing extra members cannot compose this by `$ref` — `allOf` evaluates each subschema against the whole object and this one would reject them. vta/credentials/issue is that case: its response is this shape plus `supersedes` and `ext`, and it therefore states the members inline while `$ref`-ing the shared CredentialId. That is deliberate, not drift.";
464
+ readonly CredentialReference: {
465
+ readonly $anchor: "credentialReference";
466
+ readonly title: "CredentialReference";
464
467
  readonly type: "object";
465
468
  readonly additionalProperties: false;
466
- readonly required: readonly ["credentialId", "credential", "expiresAt"];
469
+ readonly description: "A pointer to an issued credential, without the credential itself.\n\nThe counterpart to IssuedCredential, for the far more common case of *reading about* a credential rather than being handed one. A listing that embedded the signed credential in every row would grow with the size of the credentials rather than the number of them — a page of fifty is megabytes — and a reader that only needs to know a credential exists, when it lapses, and how to revoke it does not need the bytes.\n\nThe holder can always fetch the credential itself by `credentialId`, and a verifier can check revocation from the row's status-list slot without either. Reach for IssuedCredential only at the moment of minting, where the caller has no other way to receive what was just made for them.";
470
+ readonly required: readonly ["credentialId"];
467
471
  readonly properties: {
468
472
  readonly credentialId: {
469
473
  readonly $ref: "#/$defs/CredentialId";
470
474
  };
471
- readonly credential: {
472
- readonly type: "object";
473
- readonly description: "The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's key. Opaque to the framework.";
474
- };
475
475
  readonly issuedAt: {
476
476
  readonly type: "string";
477
477
  readonly format: "date-time";
478
478
  readonly description: "When the credential was minted.";
479
479
  };
480
480
  readonly expiresAt: {
481
- readonly type: "string";
481
+ readonly type: readonly ["string", "null"];
482
482
  readonly format: "date-time";
483
- readonly description: "When the credential's validUntil falls due.";
483
+ readonly description: "When it lapses, or null when it does not.";
484
484
  };
485
485
  };
486
486
  };
@@ -513,11 +513,15 @@ export declare const RESPONSE_SPEC: {
513
513
  readonly title: "VTC Endorsements Issue — response payload";
514
514
  readonly type: "object";
515
515
  readonly additionalProperties: false;
516
- readonly required: readonly ["endorsement"];
516
+ readonly required: readonly ["endorsement", "credential"];
517
517
  readonly properties: {
518
518
  readonly endorsement: {
519
519
  readonly $ref: "#/$defs/Endorsement";
520
520
  };
521
+ readonly credential: {
522
+ readonly type: "object";
523
+ readonly description: "The signed VEC just minted. Present only here: handing back the credential is the point of an issue call, and the issuer is the only party that can. Reads carry `endorsement.issued` — the reference — instead.";
524
+ };
521
525
  readonly ext: {
522
526
  readonly $ref: "#/$defs/Ext";
523
527
  };
@@ -561,8 +565,8 @@ export declare const RESPONSE_SPEC: {
561
565
  readonly description: "The attested claim body, validated against the endorsement type's claimSchema when it declares one.";
562
566
  };
563
567
  readonly issued: {
564
- readonly $ref: "#/$defs/IssuedCredential";
565
- readonly description: "The registry-wide issuance receiptcredentialId, the signed VEC, and expiry.";
568
+ readonly $ref: "#/$defs/CredentialReference";
569
+ readonly description: "A pointer to the issued VEC its identifier and lifetime, not its bytes. `endorsements/issue` additionally returns the credential itself, because that is the one call whose caller has no other way to receive it.";
566
570
  };
567
571
  readonly statusListIndex: {
568
572
  readonly type: "integer";
@@ -576,30 +580,26 @@ export declare const RESPONSE_SPEC: {
576
580
  };
577
581
  };
578
582
  };
579
- readonly IssuedCredential: {
580
- readonly $anchor: "issuedCredential";
581
- readonly title: "IssuedCredential";
582
- readonly description: "The receipt for a successfully-minted Verifiable Credential: a stable handle for revocation and audit, the signed credential itself, and when it lapses.\n\nSCOPE — this is an *issuance* receipt, returned by the party that minted the credential. It is not the shape for a *delivery* receipt, where a holder hands an already-issued credential to a party that stores it: such a task returns a receipt naming what was stored (see vtc/members/vmc and vtc/join-requests/accept) and MUST NOT echo the credential back to the party that just sent it. Reaching for this definition on a delivery task is the mistake this paragraph exists to prevent.\n\n`additionalProperties` is false, so a specification needing extra members cannot compose this by `$ref` — `allOf` evaluates each subschema against the whole object and this one would reject them. vta/credentials/issue is that case: its response is this shape plus `supersedes` and `ext`, and it therefore states the members inline while `$ref`-ing the shared CredentialId. That is deliberate, not drift.";
583
+ readonly CredentialReference: {
584
+ readonly $anchor: "credentialReference";
585
+ readonly title: "CredentialReference";
583
586
  readonly type: "object";
584
587
  readonly additionalProperties: false;
585
- readonly required: readonly ["credentialId", "credential", "expiresAt"];
588
+ readonly description: "A pointer to an issued credential, without the credential itself.\n\nThe counterpart to IssuedCredential, for the far more common case of *reading about* a credential rather than being handed one. A listing that embedded the signed credential in every row would grow with the size of the credentials rather than the number of them — a page of fifty is megabytes — and a reader that only needs to know a credential exists, when it lapses, and how to revoke it does not need the bytes.\n\nThe holder can always fetch the credential itself by `credentialId`, and a verifier can check revocation from the row's status-list slot without either. Reach for IssuedCredential only at the moment of minting, where the caller has no other way to receive what was just made for them.";
589
+ readonly required: readonly ["credentialId"];
586
590
  readonly properties: {
587
591
  readonly credentialId: {
588
592
  readonly $ref: "#/$defs/CredentialId";
589
593
  };
590
- readonly credential: {
591
- readonly type: "object";
592
- readonly description: "The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's key. Opaque to the framework.";
593
- };
594
594
  readonly issuedAt: {
595
595
  readonly type: "string";
596
596
  readonly format: "date-time";
597
597
  readonly description: "When the credential was minted.";
598
598
  };
599
599
  readonly expiresAt: {
600
- readonly type: "string";
600
+ readonly type: readonly ["string", "null"];
601
601
  readonly format: "date-time";
602
- readonly description: "When the credential's validUntil falls due.";
602
+ readonly description: "When it lapses, or null when it does not.";
603
603
  };
604
604
  };
605
605
  };
@@ -1 +1 @@
1
- {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/endorsements/issue/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,EAAE,EAAE,CAAC;IACV;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD,MAAM,WAAW,mCAAmC;IAClD,WAAW,EAAE,WAAW,CAAC;IACzB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/endorsements/issue/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,EAAE,EAAE,CAAC;IACV;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD,MAAM,WAAW,mCAAmC;IAClD,WAAW,EAAE,WAAW,CAAC;IACzB;;OAEG;IACH,UAAU,EAAE,EAAE,CAAC;IACf,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,EAAE,CAAC;IACX,MAAM,EAAE,mBAAmB,CAAC;IAC5B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AACD;;GAEG;AACH,M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-59,12 +59,17 @@ export const PAYLOAD_SCHEMA = {
59
59
  "type": "object",
60
60
  "additionalProperties": false,
61
61
  "required": [
62
- "endorsement"
62
+ "endorsement",
63
+ "credential"
63
64
  ],
64
65
  "properties": {
65
66
  "endorsement": {
66
67
  "$ref": "#/$defs/Endorsement"
67
68
  },
69
+ "credential": {
70
+ "type": "object",
71
+ "description": "The signed VEC just minted. Present only here: handing back the credential is the point of an issue call, and the issuer is the only party that can. Reads carry `endorsement.issued` — the reference — instead."
72
+ },
68
73
  "ext": {
69
74
  "$ref": "#/$defs/Ext"
70
75
  }
@@ -114,8 +119,8 @@ export const PAYLOAD_SCHEMA = {
114
119
  "description": "The attested claim body, validated against the endorsement type's claimSchema when it declares one."
115
120
  },
116
121
  "issued": {
117
- "$ref": "#/$defs/IssuedCredential",
118
- "description": "The registry-wide issuance receiptcredentialId, the signed VEC, and expiry."
122
+ "$ref": "#/$defs/CredentialReference",
123
+ "description": "A pointer to the issued VEC its identifier and lifetime, not its bytes. `endorsements/issue` additionally returns the credential itself, because that is the one call whose caller has no other way to receive it."
119
124
  },
120
125
  "statusListIndex": {
121
126
  "type": "integer",
@@ -132,34 +137,31 @@ export const PAYLOAD_SCHEMA = {
132
137
  }
133
138
  }
134
139
  },
135
- "IssuedCredential": {
136
- "$anchor": "issuedCredential",
137
- "title": "IssuedCredential",
138
- "description": "The receipt for a successfully-minted Verifiable Credential: a stable handle for revocation and audit, the signed credential itself, and when it lapses.\n\nSCOPE — this is an *issuance* receipt, returned by the party that minted the credential. It is not the shape for a *delivery* receipt, where a holder hands an already-issued credential to a party that stores it: such a task returns a receipt naming what was stored (see vtc/members/vmc and vtc/join-requests/accept) and MUST NOT echo the credential back to the party that just sent it. Reaching for this definition on a delivery task is the mistake this paragraph exists to prevent.\n\n`additionalProperties` is false, so a specification needing extra members cannot compose this by `$ref` — `allOf` evaluates each subschema against the whole object and this one would reject them. vta/credentials/issue is that case: its response is this shape plus `supersedes` and `ext`, and it therefore states the members inline while `$ref`-ing the shared CredentialId. That is deliberate, not drift.",
140
+ "CredentialReference": {
141
+ "$anchor": "credentialReference",
142
+ "title": "CredentialReference",
139
143
  "type": "object",
140
144
  "additionalProperties": false,
145
+ "description": "A pointer to an issued credential, without the credential itself.\n\nThe counterpart to IssuedCredential, for the far more common case of *reading about* a credential rather than being handed one. A listing that embedded the signed credential in every row would grow with the size of the credentials rather than the number of them — a page of fifty is megabytes — and a reader that only needs to know a credential exists, when it lapses, and how to revoke it does not need the bytes.\n\nThe holder can always fetch the credential itself by `credentialId`, and a verifier can check revocation from the row's status-list slot without either. Reach for IssuedCredential only at the moment of minting, where the caller has no other way to receive what was just made for them.",
141
146
  "required": [
142
- "credentialId",
143
- "credential",
144
- "expiresAt"
147
+ "credentialId"
145
148
  ],
146
149
  "properties": {
147
150
  "credentialId": {
148
151
  "$ref": "#/$defs/CredentialId"
149
152
  },
150
- "credential": {
151
- "type": "object",
152
- "description": "The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's key. Opaque to the framework."
153
- },
154
153
  "issuedAt": {
155
154
  "type": "string",
156
155
  "format": "date-time",
157
156
  "description": "When the credential was minted."
158
157
  },
159
158
  "expiresAt": {
160
- "type": "string",
159
+ "type": [
160
+ "string",
161
+ "null"
162
+ ],
161
163
  "format": "date-time",
162
- "description": "When the credential's validUntil falls due."
164
+ "description": "When it lapses, or null when it does not."
163
165
  }
164
166
  }
165
167
  },
@@ -183,12 +185,17 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
183
185
  "type": "object",
184
186
  "additionalProperties": false,
185
187
  "required": [
186
- "endorsement"
188
+ "endorsement",
189
+ "credential"
187
190
  ],
188
191
  "properties": {
189
192
  "endorsement": {
190
193
  "$ref": "#/$defs/Endorsement"
191
194
  },
195
+ "credential": {
196
+ "type": "object",
197
+ "description": "The signed VEC just minted. Present only here: handing back the credential is the point of an issue call, and the issuer is the only party that can. Reads carry `endorsement.issued` — the reference — instead."
198
+ },
192
199
  "ext": {
193
200
  "$ref": "#/$defs/Ext"
194
201
  }
@@ -238,8 +245,8 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
238
245
  "description": "The attested claim body, validated against the endorsement type's claimSchema when it declares one."
239
246
  },
240
247
  "issued": {
241
- "$ref": "#/$defs/IssuedCredential",
242
- "description": "The registry-wide issuance receiptcredentialId, the signed VEC, and expiry."
248
+ "$ref": "#/$defs/CredentialReference",
249
+ "description": "A pointer to the issued VEC its identifier and lifetime, not its bytes. `endorsements/issue` additionally returns the credential itself, because that is the one call whose caller has no other way to receive it."
243
250
  },
244
251
  "statusListIndex": {
245
252
  "type": "integer",
@@ -256,34 +263,31 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
256
263
  }
257
264
  }
258
265
  },
259
- "IssuedCredential": {
260
- "$anchor": "issuedCredential",
261
- "title": "IssuedCredential",
262
- "description": "The receipt for a successfully-minted Verifiable Credential: a stable handle for revocation and audit, the signed credential itself, and when it lapses.\n\nSCOPE — this is an *issuance* receipt, returned by the party that minted the credential. It is not the shape for a *delivery* receipt, where a holder hands an already-issued credential to a party that stores it: such a task returns a receipt naming what was stored (see vtc/members/vmc and vtc/join-requests/accept) and MUST NOT echo the credential back to the party that just sent it. Reaching for this definition on a delivery task is the mistake this paragraph exists to prevent.\n\n`additionalProperties` is false, so a specification needing extra members cannot compose this by `$ref` — `allOf` evaluates each subschema against the whole object and this one would reject them. vta/credentials/issue is that case: its response is this shape plus `supersedes` and `ext`, and it therefore states the members inline while `$ref`-ing the shared CredentialId. That is deliberate, not drift.",
266
+ "CredentialReference": {
267
+ "$anchor": "credentialReference",
268
+ "title": "CredentialReference",
263
269
  "type": "object",
264
270
  "additionalProperties": false,
271
+ "description": "A pointer to an issued credential, without the credential itself.\n\nThe counterpart to IssuedCredential, for the far more common case of *reading about* a credential rather than being handed one. A listing that embedded the signed credential in every row would grow with the size of the credentials rather than the number of them — a page of fifty is megabytes — and a reader that only needs to know a credential exists, when it lapses, and how to revoke it does not need the bytes.\n\nThe holder can always fetch the credential itself by `credentialId`, and a verifier can check revocation from the row's status-list slot without either. Reach for IssuedCredential only at the moment of minting, where the caller has no other way to receive what was just made for them.",
265
272
  "required": [
266
- "credentialId",
267
- "credential",
268
- "expiresAt"
273
+ "credentialId"
269
274
  ],
270
275
  "properties": {
271
276
  "credentialId": {
272
277
  "$ref": "#/$defs/CredentialId"
273
278
  },
274
- "credential": {
275
- "type": "object",
276
- "description": "The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's key. Opaque to the framework."
277
- },
278
279
  "issuedAt": {
279
280
  "type": "string",
280
281
  "format": "date-time",
281
282
  "description": "When the credential was minted."
282
283
  },
283
284
  "expiresAt": {
284
- "type": "string",
285
+ "type": [
286
+ "string",
287
+ "null"
288
+ ],
285
289
  "format": "date-time",
286
- "description": "When the credential's validUntil falls due."
290
+ "description": "When it lapses, or null when it does not."
287
291
  }
288
292
  }
289
293
  },