@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.
- package/dist/vtc/_shared/0.1/endorsement.d.ts +1 -1
- package/dist/vtc/ceremonies/list/0.1/payload.d.ts +22 -0
- package/dist/vtc/ceremonies/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/ceremonies/list/0.1/payload.js +8 -0
- package/dist/vtc/ceremonies/list/0.1/payload.js.map +1 -1
- package/dist/vtc/community/profile/show/0.1/payload.d.ts +81 -22
- package/dist/vtc/community/profile/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/community/profile/show/0.1/payload.js +34 -8
- package/dist/vtc/community/profile/show/0.1/payload.js.map +1 -1
- package/dist/vtc/community/profile/update/0.1/payload.d.ts +81 -22
- package/dist/vtc/community/profile/update/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/community/profile/update/0.1/payload.js +34 -8
- package/dist/vtc/community/profile/update/0.1/payload.js.map +1 -1
- package/dist/vtc/endorsements/issue/0.1/payload.d.ts +65 -65
- package/dist/vtc/endorsements/issue/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/endorsements/issue/0.1/payload.js +36 -32
- package/dist/vtc/endorsements/issue/0.1/payload.js.map +1 -1
- package/dist/vtc/endorsements/list/0.1/payload.d.ts +41 -61
- package/dist/vtc/endorsements/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/endorsements/list/0.1/payload.js +24 -30
- package/dist/vtc/endorsements/list/0.1/payload.js.map +1 -1
- package/dist/vtc/endorsements/show/0.1/payload.d.ts +41 -61
- package/dist/vtc/endorsements/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/endorsements/show/0.1/payload.js +24 -30
- package/dist/vtc/endorsements/show/0.1/payload.js.map +1 -1
- package/dist/vtc/install/claim/start/0.1/payload.d.ts +18 -0
- package/dist/vtc/install/claim/start/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/install/claim/start/0.1/payload.js +5 -0
- package/dist/vtc/install/claim/start/0.1/payload.js.map +1 -1
- package/dist/vtc/registry/diagnostics/0.1/payload.d.ts +491 -0
- package/dist/vtc/registry/diagnostics/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/registry/diagnostics/0.1/payload.js +260 -0
- package/dist/vtc/registry/diagnostics/0.1/payload.js.map +1 -1
- package/dist/vtc/website/files/list/0.1/payload.d.ts +24 -0
- package/dist/vtc/website/files/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/website/files/list/0.1/payload.js +10 -0
- package/dist/vtc/website/files/list/0.1/payload.js.map +1 -1
- package/dist/vtc/website/generations/list/0.1/payload.d.ts +48 -0
- package/dist/vtc/website/generations/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/website/generations/list/0.1/payload.js +20 -0
- package/dist/vtc/website/generations/list/0.1/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/vtc/_shared/0.1/endorsement.ts +1 -1
- package/src/vtc/ceremonies/list/0.1/payload.ts +14 -0
- package/src/vtc/community/profile/show/0.1/payload.ts +47 -10
- package/src/vtc/community/profile/update/0.1/payload.ts +47 -10
- package/src/vtc/endorsements/issue/0.1/payload.ts +45 -41
- package/src/vtc/endorsements/list/0.1/payload.ts +29 -39
- package/src/vtc/endorsements/show/0.1/payload.ts +29 -39
- package/src/vtc/install/claim/start/0.1/payload.ts +13 -0
- package/src/vtc/registry/diagnostics/0.1/payload.ts +343 -0
- package/src/vtc/website/files/list/0.1/payload.ts +14 -0
- package/src/vtc/website/generations/list/0.1/payload.ts +28 -0
|
@@ -37,7 +37,7 @@ export interface Endorsement {
|
|
|
37
37
|
* The attested claim body, validated against the endorsement type's claimSchema when it declares one.
|
|
38
38
|
*/
|
|
39
39
|
claim?: {};
|
|
40
|
-
issued:
|
|
40
|
+
issued: CredentialReference;
|
|
41
41
|
/**
|
|
42
42
|
* The endorsement's slot on the community's shared Revocation status list. Published, so a foreign verifier can check revocation without contacting this community.
|
|
43
43
|
*/
|
|
@@ -48,22 +48,18 @@ export interface Endorsement {
|
|
|
48
48
|
revokedAt?: string | null;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* 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.
|
|
52
52
|
*/
|
|
53
|
-
export interface
|
|
53
|
+
export interface CredentialReference {
|
|
54
54
|
credentialId: CredentialId;
|
|
55
|
-
/**
|
|
56
|
-
* The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's key. Opaque to the framework.
|
|
57
|
-
*/
|
|
58
|
-
credential: {};
|
|
59
55
|
/**
|
|
60
56
|
* When the credential was minted.
|
|
61
57
|
*/
|
|
62
58
|
issuedAt?: string;
|
|
63
59
|
/**
|
|
64
|
-
* When
|
|
60
|
+
* When it lapses, or null when it does not.
|
|
65
61
|
*/
|
|
66
|
-
expiresAt
|
|
62
|
+
expiresAt?: string | null;
|
|
67
63
|
}
|
|
68
64
|
/** Trust Task type URI. */
|
|
69
65
|
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/endorsements/show/0.1";
|
|
@@ -152,8 +148,8 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
152
148
|
readonly description: "The attested claim body, validated against the endorsement type's claimSchema when it declares one.";
|
|
153
149
|
};
|
|
154
150
|
readonly issued: {
|
|
155
|
-
readonly $ref: "#/$defs/
|
|
156
|
-
readonly description: "
|
|
151
|
+
readonly $ref: "#/$defs/CredentialReference";
|
|
152
|
+
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.";
|
|
157
153
|
};
|
|
158
154
|
readonly statusListIndex: {
|
|
159
155
|
readonly type: "integer";
|
|
@@ -167,30 +163,26 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
167
163
|
};
|
|
168
164
|
};
|
|
169
165
|
};
|
|
170
|
-
readonly
|
|
171
|
-
readonly $anchor: "
|
|
172
|
-
readonly title: "
|
|
173
|
-
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.";
|
|
166
|
+
readonly CredentialReference: {
|
|
167
|
+
readonly $anchor: "credentialReference";
|
|
168
|
+
readonly title: "CredentialReference";
|
|
174
169
|
readonly type: "object";
|
|
175
170
|
readonly additionalProperties: false;
|
|
176
|
-
readonly
|
|
171
|
+
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.";
|
|
172
|
+
readonly required: readonly ["credentialId"];
|
|
177
173
|
readonly properties: {
|
|
178
174
|
readonly credentialId: {
|
|
179
175
|
readonly $ref: "#/$defs/CredentialId";
|
|
180
176
|
};
|
|
181
|
-
readonly credential: {
|
|
182
|
-
readonly type: "object";
|
|
183
|
-
readonly description: "The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's key. Opaque to the framework.";
|
|
184
|
-
};
|
|
185
177
|
readonly issuedAt: {
|
|
186
178
|
readonly type: "string";
|
|
187
179
|
readonly format: "date-time";
|
|
188
180
|
readonly description: "When the credential was minted.";
|
|
189
181
|
};
|
|
190
182
|
readonly expiresAt: {
|
|
191
|
-
readonly type: "string";
|
|
183
|
+
readonly type: readonly ["string", "null"];
|
|
192
184
|
readonly format: "date-time";
|
|
193
|
-
readonly description: "When
|
|
185
|
+
readonly description: "When it lapses, or null when it does not.";
|
|
194
186
|
};
|
|
195
187
|
};
|
|
196
188
|
};
|
|
@@ -261,8 +253,8 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
261
253
|
readonly description: "The attested claim body, validated against the endorsement type's claimSchema when it declares one.";
|
|
262
254
|
};
|
|
263
255
|
readonly issued: {
|
|
264
|
-
readonly $ref: "#/$defs/
|
|
265
|
-
readonly description: "
|
|
256
|
+
readonly $ref: "#/$defs/CredentialReference";
|
|
257
|
+
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.";
|
|
266
258
|
};
|
|
267
259
|
readonly statusListIndex: {
|
|
268
260
|
readonly type: "integer";
|
|
@@ -276,30 +268,26 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
276
268
|
};
|
|
277
269
|
};
|
|
278
270
|
};
|
|
279
|
-
readonly
|
|
280
|
-
readonly $anchor: "
|
|
281
|
-
readonly title: "
|
|
282
|
-
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.";
|
|
271
|
+
readonly CredentialReference: {
|
|
272
|
+
readonly $anchor: "credentialReference";
|
|
273
|
+
readonly title: "CredentialReference";
|
|
283
274
|
readonly type: "object";
|
|
284
275
|
readonly additionalProperties: false;
|
|
285
|
-
readonly
|
|
276
|
+
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.";
|
|
277
|
+
readonly required: readonly ["credentialId"];
|
|
286
278
|
readonly properties: {
|
|
287
279
|
readonly credentialId: {
|
|
288
280
|
readonly $ref: "#/$defs/CredentialId";
|
|
289
281
|
};
|
|
290
|
-
readonly credential: {
|
|
291
|
-
readonly type: "object";
|
|
292
|
-
readonly description: "The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's key. Opaque to the framework.";
|
|
293
|
-
};
|
|
294
282
|
readonly issuedAt: {
|
|
295
283
|
readonly type: "string";
|
|
296
284
|
readonly format: "date-time";
|
|
297
285
|
readonly description: "When the credential was minted.";
|
|
298
286
|
};
|
|
299
287
|
readonly expiresAt: {
|
|
300
|
-
readonly type: "string";
|
|
288
|
+
readonly type: readonly ["string", "null"];
|
|
301
289
|
readonly format: "date-time";
|
|
302
|
-
readonly description: "When
|
|
290
|
+
readonly description: "When it lapses, or null when it does not.";
|
|
303
291
|
};
|
|
304
292
|
};
|
|
305
293
|
};
|
|
@@ -393,8 +381,8 @@ export declare const SPEC: {
|
|
|
393
381
|
readonly description: "The attested claim body, validated against the endorsement type's claimSchema when it declares one.";
|
|
394
382
|
};
|
|
395
383
|
readonly issued: {
|
|
396
|
-
readonly $ref: "#/$defs/
|
|
397
|
-
readonly description: "
|
|
384
|
+
readonly $ref: "#/$defs/CredentialReference";
|
|
385
|
+
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.";
|
|
398
386
|
};
|
|
399
387
|
readonly statusListIndex: {
|
|
400
388
|
readonly type: "integer";
|
|
@@ -408,30 +396,26 @@ export declare const SPEC: {
|
|
|
408
396
|
};
|
|
409
397
|
};
|
|
410
398
|
};
|
|
411
|
-
readonly
|
|
412
|
-
readonly $anchor: "
|
|
413
|
-
readonly title: "
|
|
414
|
-
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.";
|
|
399
|
+
readonly CredentialReference: {
|
|
400
|
+
readonly $anchor: "credentialReference";
|
|
401
|
+
readonly title: "CredentialReference";
|
|
415
402
|
readonly type: "object";
|
|
416
403
|
readonly additionalProperties: false;
|
|
417
|
-
readonly
|
|
404
|
+
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.";
|
|
405
|
+
readonly required: readonly ["credentialId"];
|
|
418
406
|
readonly properties: {
|
|
419
407
|
readonly credentialId: {
|
|
420
408
|
readonly $ref: "#/$defs/CredentialId";
|
|
421
409
|
};
|
|
422
|
-
readonly credential: {
|
|
423
|
-
readonly type: "object";
|
|
424
|
-
readonly description: "The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's key. Opaque to the framework.";
|
|
425
|
-
};
|
|
426
410
|
readonly issuedAt: {
|
|
427
411
|
readonly type: "string";
|
|
428
412
|
readonly format: "date-time";
|
|
429
413
|
readonly description: "When the credential was minted.";
|
|
430
414
|
};
|
|
431
415
|
readonly expiresAt: {
|
|
432
|
-
readonly type: "string";
|
|
416
|
+
readonly type: readonly ["string", "null"];
|
|
433
417
|
readonly format: "date-time";
|
|
434
|
-
readonly description: "When
|
|
418
|
+
readonly description: "When it lapses, or null when it does not.";
|
|
435
419
|
};
|
|
436
420
|
};
|
|
437
421
|
};
|
|
@@ -512,8 +496,8 @@ export declare const RESPONSE_SPEC: {
|
|
|
512
496
|
readonly description: "The attested claim body, validated against the endorsement type's claimSchema when it declares one.";
|
|
513
497
|
};
|
|
514
498
|
readonly issued: {
|
|
515
|
-
readonly $ref: "#/$defs/
|
|
516
|
-
readonly description: "
|
|
499
|
+
readonly $ref: "#/$defs/CredentialReference";
|
|
500
|
+
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.";
|
|
517
501
|
};
|
|
518
502
|
readonly statusListIndex: {
|
|
519
503
|
readonly type: "integer";
|
|
@@ -527,30 +511,26 @@ export declare const RESPONSE_SPEC: {
|
|
|
527
511
|
};
|
|
528
512
|
};
|
|
529
513
|
};
|
|
530
|
-
readonly
|
|
531
|
-
readonly $anchor: "
|
|
532
|
-
readonly title: "
|
|
533
|
-
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.";
|
|
514
|
+
readonly CredentialReference: {
|
|
515
|
+
readonly $anchor: "credentialReference";
|
|
516
|
+
readonly title: "CredentialReference";
|
|
534
517
|
readonly type: "object";
|
|
535
518
|
readonly additionalProperties: false;
|
|
536
|
-
readonly
|
|
519
|
+
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.";
|
|
520
|
+
readonly required: readonly ["credentialId"];
|
|
537
521
|
readonly properties: {
|
|
538
522
|
readonly credentialId: {
|
|
539
523
|
readonly $ref: "#/$defs/CredentialId";
|
|
540
524
|
};
|
|
541
|
-
readonly credential: {
|
|
542
|
-
readonly type: "object";
|
|
543
|
-
readonly description: "The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's key. Opaque to the framework.";
|
|
544
|
-
};
|
|
545
525
|
readonly issuedAt: {
|
|
546
526
|
readonly type: "string";
|
|
547
527
|
readonly format: "date-time";
|
|
548
528
|
readonly description: "When the credential was minted.";
|
|
549
529
|
};
|
|
550
530
|
readonly expiresAt: {
|
|
551
|
-
readonly type: "string";
|
|
531
|
+
readonly type: readonly ["string", "null"];
|
|
552
532
|
readonly format: "date-time";
|
|
553
|
-
readonly description: "When
|
|
533
|
+
readonly description: "When it lapses, or null when it does not.";
|
|
554
534
|
};
|
|
555
535
|
};
|
|
556
536
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/endorsements/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,MAAM,WAAW,0BAA0B;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,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,kCAAkC;IACjD,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,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,EAAE,CAAC;IACX,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/endorsements/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,MAAM,WAAW,0BAA0B;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,G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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuH1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
|
|
@@ -95,8 +95,8 @@ export const PAYLOAD_SCHEMA = {
|
|
|
95
95
|
"description": "The attested claim body, validated against the endorsement type's claimSchema when it declares one."
|
|
96
96
|
},
|
|
97
97
|
"issued": {
|
|
98
|
-
"$ref": "#/$defs/
|
|
99
|
-
"description": "
|
|
98
|
+
"$ref": "#/$defs/CredentialReference",
|
|
99
|
+
"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."
|
|
100
100
|
},
|
|
101
101
|
"statusListIndex": {
|
|
102
102
|
"type": "integer",
|
|
@@ -113,34 +113,31 @@ export const PAYLOAD_SCHEMA = {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
|
-
"
|
|
117
|
-
"$anchor": "
|
|
118
|
-
"title": "
|
|
119
|
-
"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.",
|
|
116
|
+
"CredentialReference": {
|
|
117
|
+
"$anchor": "credentialReference",
|
|
118
|
+
"title": "CredentialReference",
|
|
120
119
|
"type": "object",
|
|
121
120
|
"additionalProperties": false,
|
|
121
|
+
"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.",
|
|
122
122
|
"required": [
|
|
123
|
-
"credentialId"
|
|
124
|
-
"credential",
|
|
125
|
-
"expiresAt"
|
|
123
|
+
"credentialId"
|
|
126
124
|
],
|
|
127
125
|
"properties": {
|
|
128
126
|
"credentialId": {
|
|
129
127
|
"$ref": "#/$defs/CredentialId"
|
|
130
128
|
},
|
|
131
|
-
"credential": {
|
|
132
|
-
"type": "object",
|
|
133
|
-
"description": "The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's key. Opaque to the framework."
|
|
134
|
-
},
|
|
135
129
|
"issuedAt": {
|
|
136
130
|
"type": "string",
|
|
137
131
|
"format": "date-time",
|
|
138
132
|
"description": "When the credential was minted."
|
|
139
133
|
},
|
|
140
134
|
"expiresAt": {
|
|
141
|
-
"type":
|
|
135
|
+
"type": [
|
|
136
|
+
"string",
|
|
137
|
+
"null"
|
|
138
|
+
],
|
|
142
139
|
"format": "date-time",
|
|
143
|
-
"description": "When
|
|
140
|
+
"description": "When it lapses, or null when it does not."
|
|
144
141
|
}
|
|
145
142
|
}
|
|
146
143
|
},
|
|
@@ -219,8 +216,8 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
219
216
|
"description": "The attested claim body, validated against the endorsement type's claimSchema when it declares one."
|
|
220
217
|
},
|
|
221
218
|
"issued": {
|
|
222
|
-
"$ref": "#/$defs/
|
|
223
|
-
"description": "
|
|
219
|
+
"$ref": "#/$defs/CredentialReference",
|
|
220
|
+
"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."
|
|
224
221
|
},
|
|
225
222
|
"statusListIndex": {
|
|
226
223
|
"type": "integer",
|
|
@@ -237,34 +234,31 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
237
234
|
}
|
|
238
235
|
}
|
|
239
236
|
},
|
|
240
|
-
"
|
|
241
|
-
"$anchor": "
|
|
242
|
-
"title": "
|
|
243
|
-
"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.",
|
|
237
|
+
"CredentialReference": {
|
|
238
|
+
"$anchor": "credentialReference",
|
|
239
|
+
"title": "CredentialReference",
|
|
244
240
|
"type": "object",
|
|
245
241
|
"additionalProperties": false,
|
|
242
|
+
"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.",
|
|
246
243
|
"required": [
|
|
247
|
-
"credentialId"
|
|
248
|
-
"credential",
|
|
249
|
-
"expiresAt"
|
|
244
|
+
"credentialId"
|
|
250
245
|
],
|
|
251
246
|
"properties": {
|
|
252
247
|
"credentialId": {
|
|
253
248
|
"$ref": "#/$defs/CredentialId"
|
|
254
249
|
},
|
|
255
|
-
"credential": {
|
|
256
|
-
"type": "object",
|
|
257
|
-
"description": "The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's key. Opaque to the framework."
|
|
258
|
-
},
|
|
259
250
|
"issuedAt": {
|
|
260
251
|
"type": "string",
|
|
261
252
|
"format": "date-time",
|
|
262
253
|
"description": "When the credential was minted."
|
|
263
254
|
},
|
|
264
255
|
"expiresAt": {
|
|
265
|
-
"type":
|
|
256
|
+
"type": [
|
|
257
|
+
"string",
|
|
258
|
+
"null"
|
|
259
|
+
],
|
|
266
260
|
"format": "date-time",
|
|
267
|
-
"description": "When
|
|
261
|
+
"description": "When it lapses, or null when it does not."
|
|
268
262
|
}
|
|
269
263
|
}
|
|
270
264
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/endorsements/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/endorsements/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA+DH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,uDAAgE,CAAC;AAKzF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,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EX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -7,6 +7,14 @@ export interface VTCInstallClaimStartPayload {
|
|
|
7
7
|
* The EdDSA-signed install JWT (aud=vtc-install) printed by vtc setup.
|
|
8
8
|
*/
|
|
9
9
|
installToken: string;
|
|
10
|
+
/**
|
|
11
|
+
* A short code the operator receives **out of band**, alongside the install URL but through a separate channel.
|
|
12
|
+
*
|
|
13
|
+
* The second factor on a claim: the URL alone is deliberately insufficient, so a stolen or forwarded install link cannot claim the passkey by itself. A maintainer that mints one shows the plaintext once and stores only a hash; a claim that omits or fails it is refused before any registration challenge is issued.
|
|
14
|
+
*
|
|
15
|
+
* Optional in the schema because a maintainer may issue tokens without one — but a maintainer that does issue one MUST require it, and SHOULD issue one for any invite that travels over a channel it does not control.
|
|
16
|
+
*/
|
|
17
|
+
claimSecret?: string;
|
|
10
18
|
ext?: Ext;
|
|
11
19
|
}
|
|
12
20
|
/**
|
|
@@ -60,6 +68,11 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
60
68
|
readonly minLength: 1;
|
|
61
69
|
readonly description: "The EdDSA-signed install JWT (aud=vtc-install) printed by vtc setup.";
|
|
62
70
|
};
|
|
71
|
+
readonly claimSecret: {
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
readonly minLength: 1;
|
|
74
|
+
readonly description: "A short code the operator receives **out of band**, alongside the install URL but through a separate channel.\n\nThe second factor on a claim: the URL alone is deliberately insufficient, so a stolen or forwarded install link cannot claim the passkey by itself. A maintainer that mints one shows the plaintext once and stores only a hash; a claim that omits or fails it is refused before any registration challenge is issued.\n\nOptional in the schema because a maintainer may issue tokens without one — but a maintainer that does issue one MUST require it, and SHOULD issue one for any invite that travels over a channel it does not control.";
|
|
75
|
+
};
|
|
63
76
|
readonly ext: {
|
|
64
77
|
readonly $ref: "#/$defs/Ext";
|
|
65
78
|
};
|
|
@@ -170,6 +183,11 @@ export declare const SPEC: {
|
|
|
170
183
|
readonly minLength: 1;
|
|
171
184
|
readonly description: "The EdDSA-signed install JWT (aud=vtc-install) printed by vtc setup.";
|
|
172
185
|
};
|
|
186
|
+
readonly claimSecret: {
|
|
187
|
+
readonly type: "string";
|
|
188
|
+
readonly minLength: 1;
|
|
189
|
+
readonly description: "A short code the operator receives **out of band**, alongside the install URL but through a separate channel.\n\nThe second factor on a claim: the URL alone is deliberately insufficient, so a stolen or forwarded install link cannot claim the passkey by itself. A maintainer that mints one shows the plaintext once and stores only a hash; a claim that omits or fails it is refused before any registration challenge is issued.\n\nOptional in the schema because a maintainer may issue tokens without one — but a maintainer that does issue one MUST require it, and SHOULD issue one for any invite that travels over a channel it does not control.";
|
|
190
|
+
};
|
|
173
191
|
readonly ext: {
|
|
174
192
|
readonly $ref: "#/$defs/Ext";
|
|
175
193
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/install/claim/start/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,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;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,EAAE,CAAC;IACZ;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6C1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
|
|
@@ -30,6 +30,11 @@ export const PAYLOAD_SCHEMA = {
|
|
|
30
30
|
"minLength": 1,
|
|
31
31
|
"description": "The EdDSA-signed install JWT (aud=vtc-install) printed by vtc setup."
|
|
32
32
|
},
|
|
33
|
+
"claimSecret": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"minLength": 1,
|
|
36
|
+
"description": "A short code the operator receives **out of band**, alongside the install URL but through a separate channel.\n\nThe second factor on a claim: the URL alone is deliberately insufficient, so a stolen or forwarded install link cannot claim the passkey by itself. A maintainer that mints one shows the plaintext once and stores only a hash; a claim that omits or fails it is refused before any registration challenge is issued.\n\nOptional in the schema because a maintainer may issue tokens without one — but a maintainer that does issue one MUST require it, and SHOULD issue one for any invite that travels over a channel it does not control."
|
|
37
|
+
},
|
|
33
38
|
"ext": {
|
|
34
39
|
"$ref": "#/$defs/Ext"
|
|
35
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/install/claim/start/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/install/claim/start/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,yDAAkE,CAAC;AAK3F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,kEAA2E,CAAC;AA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