@openvtc/trust-tasks 0.26.14 → 0.26.16
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/CHANGELOG.md +183 -0
- package/dist/_shared/components.d.ts +392 -1
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -1
- package/dist/rooms/_shared/0.1/personal-label.d.ts +16 -0
- package/dist/rooms/_shared/0.1/personal-label.d.ts.map +1 -0
- package/dist/rooms/_shared/0.1/personal-label.js +6 -0
- package/dist/rooms/_shared/0.1/personal-label.js.map +1 -0
- package/dist/rooms/_shared/0.1/room.d.ts +1 -1
- package/dist/rooms/_shared/0.1/room.d.ts.map +1 -1
- package/dist/rooms/blobs/get/0.1/payload.d.ts +4 -4
- package/dist/rooms/blobs/get/0.1/payload.js +2 -2
- package/dist/rooms/blobs/get/0.1/payload.js.map +1 -1
- package/dist/rooms/blobs/get/0.2/payload.d.ts +4 -4
- package/dist/rooms/blobs/get/0.2/payload.js +2 -2
- package/dist/rooms/blobs/get/0.2/payload.js.map +1 -1
- package/dist/rooms/blobs/upload/begin/0.1/payload.d.ts +4 -4
- package/dist/rooms/blobs/upload/begin/0.1/payload.js +2 -2
- package/dist/rooms/blobs/upload/begin/0.1/payload.js.map +1 -1
- package/dist/rooms/blobs/upload/begin/0.2/payload.d.ts +4 -4
- package/dist/rooms/blobs/upload/begin/0.2/payload.js +2 -2
- package/dist/rooms/blobs/upload/begin/0.2/payload.js.map +1 -1
- package/dist/rooms/epoch/chain/0.1/payload.d.ts +4 -4
- package/dist/rooms/epoch/chain/0.1/payload.js +2 -2
- package/dist/rooms/epoch/chain/0.1/payload.js.map +1 -1
- package/dist/rooms/epoch/commits/0.1/payload.d.ts +4 -4
- package/dist/rooms/epoch/commits/0.1/payload.js +2 -2
- package/dist/rooms/epoch/commits/0.1/payload.js.map +1 -1
- package/dist/rooms/epoch/mint/0.1/payload.d.ts +4 -4
- package/dist/rooms/epoch/mint/0.1/payload.js +2 -2
- package/dist/rooms/epoch/mint/0.1/payload.js.map +1 -1
- package/dist/rooms/epoch/prune/0.1/payload.d.ts +4 -4
- package/dist/rooms/epoch/prune/0.1/payload.js +2 -2
- package/dist/rooms/epoch/prune/0.1/payload.js.map +1 -1
- package/dist/rooms/info/0.1/payload.d.ts +4 -4
- package/dist/rooms/info/0.1/payload.js +2 -2
- package/dist/rooms/info/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/act/0.4/payload.d.ts +546 -0
- package/dist/rooms/keys/act/0.4/payload.d.ts.map +1 -0
- package/dist/rooms/keys/act/0.4/payload.js +305 -0
- package/dist/rooms/keys/act/0.4/payload.js.map +1 -0
- package/dist/rooms/keys/label/0.1/payload.d.ts +757 -0
- package/dist/rooms/keys/label/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/label/0.1/payload.js +388 -0
- package/dist/rooms/keys/label/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/list/0.2/payload.d.ts +667 -0
- package/dist/rooms/keys/list/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/keys/list/0.2/payload.js +350 -0
- package/dist/rooms/keys/list/0.2/payload.js.map +1 -0
- package/dist/rooms/keys/present/0.2/payload.d.ts +4 -4
- package/dist/rooms/keys/present/0.2/payload.js +2 -2
- package/dist/rooms/keys/present/0.2/payload.js.map +1 -1
- package/dist/rooms/keys/profile/read/0.1/payload.d.ts +1652 -0
- package/dist/rooms/keys/profile/read/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/profile/read/0.1/payload.js +649 -0
- package/dist/rooms/keys/profile/read/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/profile/write/0.1/payload.d.ts +583 -0
- package/dist/rooms/keys/profile/write/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/profile/write/0.1/payload.js +319 -0
- package/dist/rooms/keys/profile/write/0.1/payload.js.map +1 -0
- package/dist/rooms/owner/claim/0.1/payload.d.ts +4 -4
- package/dist/rooms/owner/claim/0.1/payload.js +2 -2
- package/dist/rooms/owner/claim/0.1/payload.js.map +1 -1
- package/dist/rooms/owner/group/remove/0.2/payload.d.ts +600 -0
- package/dist/rooms/owner/group/remove/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/owner/group/remove/0.2/payload.js +310 -0
- package/dist/rooms/owner/group/remove/0.2/payload.js.map +1 -0
- package/dist/rooms/owner/revoke/0.1/payload.d.ts +1481 -0
- package/dist/rooms/owner/revoke/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/owner/revoke/0.1/payload.js +811 -0
- package/dist/rooms/owner/revoke/0.1/payload.js.map +1 -0
- package/dist/rooms/owner/transfer/0.1/payload.d.ts +4 -4
- package/dist/rooms/owner/transfer/0.1/payload.js +2 -2
- package/dist/rooms/owner/transfer/0.1/payload.js.map +1 -1
- package/dist/rooms/records/curate/0.1/payload.d.ts +4 -4
- package/dist/rooms/records/curate/0.1/payload.js +2 -2
- package/dist/rooms/records/curate/0.1/payload.js.map +1 -1
- package/dist/rooms/records/get/0.1/payload.d.ts +4 -4
- package/dist/rooms/records/get/0.1/payload.js +2 -2
- package/dist/rooms/records/get/0.1/payload.js.map +1 -1
- package/dist/rooms/records/get/0.2/payload.d.ts +4 -4
- package/dist/rooms/records/get/0.2/payload.js +2 -2
- package/dist/rooms/records/get/0.2/payload.js.map +1 -1
- package/dist/rooms/records/list/0.1/payload.d.ts +4 -4
- package/dist/rooms/records/list/0.1/payload.js +2 -2
- package/dist/rooms/records/list/0.1/payload.js.map +1 -1
- package/dist/rooms/records/list/0.2/payload.d.ts +4 -4
- package/dist/rooms/records/list/0.2/payload.js +2 -2
- package/dist/rooms/records/list/0.2/payload.js.map +1 -1
- package/dist/rooms/records/put/0.1/payload.d.ts +4 -4
- package/dist/rooms/records/put/0.1/payload.js +2 -2
- package/dist/rooms/records/put/0.1/payload.js.map +1 -1
- package/dist/rooms/records/put/0.2/payload.d.ts +4 -4
- package/dist/rooms/records/put/0.2/payload.js +2 -2
- package/dist/rooms/records/put/0.2/payload.js.map +1 -1
- package/dist/rooms/revocations/get/0.1/payload.d.ts +905 -0
- package/dist/rooms/revocations/get/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/revocations/get/0.1/payload.js +512 -0
- package/dist/rooms/revocations/get/0.1/payload.js.map +1 -0
- package/dist/rooms/revocations/put/0.1/payload.d.ts +1021 -0
- package/dist/rooms/revocations/put/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/revocations/put/0.1/payload.js +583 -0
- package/dist/rooms/revocations/put/0.1/payload.js.map +1 -0
- package/dist/rooms/usage/0.1/payload.d.ts +4 -4
- package/dist/rooms/usage/0.1/payload.js +2 -2
- package/dist/rooms/usage/0.1/payload.js.map +1 -1
- package/dist/vtc/_shared/0.1/community-room.d.ts +1 -1
- package/dist/vtc/_shared/0.1/community-room.d.ts.map +1 -1
- package/dist/vtc/community/theme/show/0.1/payload.d.ts +238 -0
- package/dist/vtc/community/theme/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/theme/show/0.1/payload.js +135 -0
- package/dist/vtc/community/theme/show/0.1/payload.js.map +1 -0
- package/dist/vtc/community/theme/update/0.1/payload.d.ts +286 -0
- package/dist/vtc/community/theme/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/theme/update/0.1/payload.js +157 -0
- package/dist/vtc/community/theme/update/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/community/create/0.1/payload.d.ts +4 -4
- package/dist/vtc/rooms/community/create/0.1/payload.js +2 -2
- package/dist/vtc/rooms/community/create/0.1/payload.js.map +1 -1
- package/dist/vtc/rooms/community/create/0.2/payload.d.ts +989 -0
- package/dist/vtc/rooms/community/create/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/create/0.2/payload.js +559 -0
- package/dist/vtc/rooms/community/create/0.2/payload.js.map +1 -0
- package/dist/vtc/rooms/community/create/0.3/payload.d.ts +1013 -0
- package/dist/vtc/rooms/community/create/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/create/0.3/payload.js +577 -0
- package/dist/vtc/rooms/community/create/0.3/payload.js.map +1 -0
- package/dist/vtc/rooms/community/get/0.1/payload.d.ts +4 -4
- package/dist/vtc/rooms/community/get/0.1/payload.js +2 -2
- package/dist/vtc/rooms/community/get/0.1/payload.js.map +1 -1
- package/dist/vtc/rooms/community/get/0.2/payload.d.ts +887 -0
- package/dist/vtc/rooms/community/get/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/get/0.2/payload.js +517 -0
- package/dist/vtc/rooms/community/get/0.2/payload.js.map +1 -0
- package/dist/vtc/rooms/community/list/0.1/payload.d.ts +4 -4
- package/dist/vtc/rooms/community/list/0.1/payload.js +2 -2
- package/dist/vtc/rooms/community/list/0.1/payload.js.map +1 -1
- package/dist/vtc/rooms/community/list/0.2/payload.d.ts +960 -0
- package/dist/vtc/rooms/community/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/list/0.2/payload.js +544 -0
- package/dist/vtc/rooms/community/list/0.2/payload.js.map +1 -0
- package/dist/vtc/rooms/community/members/remove/0.2/payload.d.ts +681 -0
- package/dist/vtc/rooms/community/members/remove/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/members/remove/0.2/payload.js +393 -0
- package/dist/vtc/rooms/community/members/remove/0.2/payload.js.map +1 -0
- package/dist/vtc/rooms/community/update/0.1/payload.d.ts +1013 -0
- package/dist/vtc/rooms/community/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/update/0.1/payload.js +573 -0
- package/dist/vtc/rooms/community/update/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/community/update/0.2/payload.d.ts +1037 -0
- package/dist/vtc/rooms/community/update/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/update/0.2/payload.js +593 -0
- package/dist/vtc/rooms/community/update/0.2/payload.js.map +1 -0
- package/dist/vtc/rooms/offers/list/0.1/payload.d.ts +4 -4
- package/dist/vtc/rooms/offers/list/0.1/payload.js +2 -2
- package/dist/vtc/rooms/offers/list/0.1/payload.js.map +1 -1
- package/dist/vtc/rooms/offers/list/0.2/payload.d.ts +736 -0
- package/dist/vtc/rooms/offers/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/offers/list/0.2/payload.js +430 -0
- package/dist/vtc/rooms/offers/list/0.2/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +426 -1
- package/src/index.ts +20 -0
- package/src/rooms/_shared/0.1/personal-label.ts +17 -0
- package/src/rooms/_shared/0.1/room.ts +1 -1
- package/src/rooms/blobs/get/0.1/payload.ts +2 -2
- package/src/rooms/blobs/get/0.2/payload.ts +2 -2
- package/src/rooms/blobs/upload/begin/0.1/payload.ts +2 -2
- package/src/rooms/blobs/upload/begin/0.2/payload.ts +2 -2
- package/src/rooms/epoch/chain/0.1/payload.ts +2 -2
- package/src/rooms/epoch/commits/0.1/payload.ts +2 -2
- package/src/rooms/epoch/mint/0.1/payload.ts +2 -2
- package/src/rooms/epoch/prune/0.1/payload.ts +2 -2
- package/src/rooms/info/0.1/payload.ts +2 -2
- package/src/rooms/keys/act/0.4/payload.ts +380 -0
- package/src/rooms/keys/label/0.1/payload.ts +474 -0
- package/src/rooms/keys/list/0.2/payload.ts +412 -0
- package/src/rooms/keys/present/0.2/payload.ts +2 -2
- package/src/rooms/keys/profile/read/0.1/payload.ts +1617 -0
- package/src/rooms/keys/profile/write/0.1/payload.ts +388 -0
- package/src/rooms/owner/claim/0.1/payload.ts +2 -2
- package/src/rooms/owner/group/remove/0.2/payload.ts +415 -0
- package/src/rooms/owner/revoke/0.1/payload.ts +954 -0
- package/src/rooms/owner/transfer/0.1/payload.ts +2 -2
- package/src/rooms/records/curate/0.1/payload.ts +2 -2
- package/src/rooms/records/get/0.1/payload.ts +2 -2
- package/src/rooms/records/get/0.2/payload.ts +2 -2
- package/src/rooms/records/list/0.1/payload.ts +2 -2
- package/src/rooms/records/list/0.2/payload.ts +2 -2
- package/src/rooms/records/put/0.1/payload.ts +2 -2
- package/src/rooms/records/put/0.2/payload.ts +2 -2
- package/src/rooms/revocations/get/0.1/payload.ts +562 -0
- package/src/rooms/revocations/put/0.1/payload.ts +637 -0
- package/src/rooms/usage/0.1/payload.ts +2 -2
- package/src/vtc/_shared/0.1/community-room.ts +1 -1
- package/src/vtc/community/theme/show/0.1/payload.ts +170 -0
- package/src/vtc/community/theme/update/0.1/payload.ts +204 -0
- package/src/vtc/rooms/community/create/0.1/payload.ts +2 -2
- package/src/vtc/rooms/community/create/0.2/payload.ts +613 -0
- package/src/vtc/rooms/community/create/0.3/payload.ts +635 -0
- package/src/vtc/rooms/community/get/0.1/payload.ts +2 -2
- package/src/vtc/rooms/community/get/0.2/payload.ts +549 -0
- package/src/vtc/rooms/community/list/0.1/payload.ts +2 -2
- package/src/vtc/rooms/community/list/0.2/payload.ts +591 -0
- package/src/vtc/rooms/community/members/remove/0.2/payload.ts +439 -0
- package/src/vtc/rooms/community/update/0.1/payload.ts +629 -0
- package/src/vtc/rooms/community/update/0.2/payload.ts +653 -0
- package/src/vtc/rooms/offers/list/0.1/payload.ts +2 -2
- package/src/vtc/rooms/offers/list/0.2/payload.ts +473 -0
|
@@ -248,7 +248,7 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
248
248
|
readonly type: "object";
|
|
249
249
|
readonly additionalProperties: false;
|
|
250
250
|
readonly required: readonly ["membership", "authority"];
|
|
251
|
-
readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.";
|
|
251
|
+
readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.\n\n**Every credential is its issuer's attestation, and only its issuer's.** For the membership credential and for every link of `authority`, a host MUST verify the credential's `proof` with a key that the credential's own `issuer` lists for `assertionMethod` in its DID document, and MUST refuse a credential whose proof names a verification method that is not its issuer's. A proof that verifies under some other party's key is that party's statement, not the issuer's, and confers nothing. The same binding holds for every other document a room signs, such as a `RevocationList`.\n\n**A chain that verifies may still be revoked.** A host that has accepted a `RevocationList` for the room (`rooms/revocations/put`) MUST, from the moment it accepted it, refuse every presentation in which the membership credential or any link of `authority` is revoked by that list, under every task and every version of every task it serves for the room. A chain from which any link is revoked is refused whole: a credential delegated from a revoked one confers nothing, however it was attenuated. The refusal is the same `permissionDenied` as any other failed presentation.";
|
|
252
252
|
readonly properties: {
|
|
253
253
|
readonly membership: {
|
|
254
254
|
readonly type: "string";
|
|
@@ -404,7 +404,7 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
404
404
|
readonly type: "object";
|
|
405
405
|
readonly additionalProperties: false;
|
|
406
406
|
readonly required: readonly ["membership", "authority"];
|
|
407
|
-
readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.";
|
|
407
|
+
readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.\n\n**Every credential is its issuer's attestation, and only its issuer's.** For the membership credential and for every link of `authority`, a host MUST verify the credential's `proof` with a key that the credential's own `issuer` lists for `assertionMethod` in its DID document, and MUST refuse a credential whose proof names a verification method that is not its issuer's. A proof that verifies under some other party's key is that party's statement, not the issuer's, and confers nothing. The same binding holds for every other document a room signs, such as a `RevocationList`.\n\n**A chain that verifies may still be revoked.** A host that has accepted a `RevocationList` for the room (`rooms/revocations/put`) MUST, from the moment it accepted it, refuse every presentation in which the membership credential or any link of `authority` is revoked by that list, under every task and every version of every task it serves for the room. A chain from which any link is revoked is refused whole: a credential delegated from a revoked one confers nothing, however it was attenuated. The refusal is the same `permissionDenied` as any other failed presentation.";
|
|
408
408
|
readonly properties: {
|
|
409
409
|
readonly membership: {
|
|
410
410
|
readonly type: "string";
|
|
@@ -601,7 +601,7 @@ export declare const SPEC: {
|
|
|
601
601
|
readonly type: "object";
|
|
602
602
|
readonly additionalProperties: false;
|
|
603
603
|
readonly required: readonly ["membership", "authority"];
|
|
604
|
-
readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.";
|
|
604
|
+
readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.\n\n**Every credential is its issuer's attestation, and only its issuer's.** For the membership credential and for every link of `authority`, a host MUST verify the credential's `proof` with a key that the credential's own `issuer` lists for `assertionMethod` in its DID document, and MUST refuse a credential whose proof names a verification method that is not its issuer's. A proof that verifies under some other party's key is that party's statement, not the issuer's, and confers nothing. The same binding holds for every other document a room signs, such as a `RevocationList`.\n\n**A chain that verifies may still be revoked.** A host that has accepted a `RevocationList` for the room (`rooms/revocations/put`) MUST, from the moment it accepted it, refuse every presentation in which the membership credential or any link of `authority` is revoked by that list, under every task and every version of every task it serves for the room. A chain from which any link is revoked is refused whole: a credential delegated from a revoked one confers nothing, however it was attenuated. The refusal is the same `permissionDenied` as any other failed presentation.";
|
|
605
605
|
readonly properties: {
|
|
606
606
|
readonly membership: {
|
|
607
607
|
readonly type: "string";
|
|
@@ -768,7 +768,7 @@ export declare const RESPONSE_SPEC: {
|
|
|
768
768
|
readonly type: "object";
|
|
769
769
|
readonly additionalProperties: false;
|
|
770
770
|
readonly required: readonly ["membership", "authority"];
|
|
771
|
-
readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.";
|
|
771
|
+
readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.\n\n**Every credential is its issuer's attestation, and only its issuer's.** For the membership credential and for every link of `authority`, a host MUST verify the credential's `proof` with a key that the credential's own `issuer` lists for `assertionMethod` in its DID document, and MUST refuse a credential whose proof names a verification method that is not its issuer's. A proof that verifies under some other party's key is that party's statement, not the issuer's, and confers nothing. The same binding holds for every other document a room signs, such as a `RevocationList`.\n\n**A chain that verifies may still be revoked.** A host that has accepted a `RevocationList` for the room (`rooms/revocations/put`) MUST, from the moment it accepted it, refuse every presentation in which the membership credential or any link of `authority` is revoked by that list, under every task and every version of every task it serves for the room. A chain from which any link is revoked is refused whole: a credential delegated from a revoked one confers nothing, however it was attenuated. The refusal is the same `permissionDenied` as any other failed presentation.";
|
|
772
772
|
readonly properties: {
|
|
773
773
|
readonly membership: {
|
|
774
774
|
readonly type: "string";
|
|
@@ -194,7 +194,7 @@ export const PAYLOAD_SCHEMA = {
|
|
|
194
194
|
"membership",
|
|
195
195
|
"authority"
|
|
196
196
|
],
|
|
197
|
-
"description": "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.",
|
|
197
|
+
"description": "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.\n\n**Every credential is its issuer's attestation, and only its issuer's.** For the membership credential and for every link of `authority`, a host MUST verify the credential's `proof` with a key that the credential's own `issuer` lists for `assertionMethod` in its DID document, and MUST refuse a credential whose proof names a verification method that is not its issuer's. A proof that verifies under some other party's key is that party's statement, not the issuer's, and confers nothing. The same binding holds for every other document a room signs, such as a `RevocationList`.\n\n**A chain that verifies may still be revoked.** A host that has accepted a `RevocationList` for the room (`rooms/revocations/put`) MUST, from the moment it accepted it, refuse every presentation in which the membership credential or any link of `authority` is revoked by that list, under every task and every version of every task it serves for the room. A chain from which any link is revoked is refused whole: a credential delegated from a revoked one confers nothing, however it was attenuated. The refusal is the same `permissionDenied` as any other failed presentation.",
|
|
198
198
|
"properties": {
|
|
199
199
|
"membership": {
|
|
200
200
|
"type": "string",
|
|
@@ -364,7 +364,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
364
364
|
"membership",
|
|
365
365
|
"authority"
|
|
366
366
|
],
|
|
367
|
-
"description": "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.",
|
|
367
|
+
"description": "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.\n\n**Every credential is its issuer's attestation, and only its issuer's.** For the membership credential and for every link of `authority`, a host MUST verify the credential's `proof` with a key that the credential's own `issuer` lists for `assertionMethod` in its DID document, and MUST refuse a credential whose proof names a verification method that is not its issuer's. A proof that verifies under some other party's key is that party's statement, not the issuer's, and confers nothing. The same binding holds for every other document a room signs, such as a `RevocationList`.\n\n**A chain that verifies may still be revoked.** A host that has accepted a `RevocationList` for the room (`rooms/revocations/put`) MUST, from the moment it accepted it, refuse every presentation in which the membership credential or any link of `authority` is revoked by that list, under every task and every version of every task it serves for the room. A chain from which any link is revoked is refused whole: a credential delegated from a revoked one confers nothing, however it was attenuated. The refusal is the same `permissionDenied` as any other failed presentation.",
|
|
368
368
|
"properties": {
|
|
369
369
|
"membership": {
|
|
370
370
|
"type": "string",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/rooms/usage/0.1/payload.ts"],"names":[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;YAC9N,YAAY,EAAE;gBACZ,UAAU,EAAE;oBACV,MAAM,EAAE,SAAS;oBACjB,SAAS,EAAE,CAAC;oBACZ,aAAa,EAAE,yFAAyF;iBACzG;gBACD,cAAc,EAAE;oBACd,MAAM,EAAE,SAAS;oBACjB,SAAS,EAAE,CAAC;oBACZ,SAAS,EAAE,UAAU;oBACrB,aAAa,EAAE,oGAAoG;iBACpH;gBACD,UAAU,EAAE;oBACV,MAAM,EAAE,SAAS;oBACjB,SAAS,EAAE,CAAC;oBACZ,aAAa,EAAE,wEAAwE;iBACxF;aACF;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE,OAAO;YAChB,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,OAAO;gBACP,OAAO;gBACP,eAAe;aAChB;YACD,aAAa,EAAE,wDAAwD;YACvE,YAAY,EAAE;gBACZ,OAAO,EAAE;oBACP,MAAM,EAAE,SAAS;oBACjB,SAAS,EAAE,CAAC;oBACZ,aAAa,EAAE,wCAAwC;iBACxD;gBACD,OAAO,EAAE;oBACP,MAAM,EAAE,SAAS;oBACjB,SAAS,EAAE,CAAC;oBACZ,aAAa,EAAE,kNAAkN;iBAClO;gBACD,eAAe,EAAE;oBACf,MAAM,EAAE,SAAS;oBACjB,SAAS,EAAE,CAAC;oBACZ,aAAa,EAAE,uLAAuL;iBACvM;gBACD,eAAe,EAAE;oBACf,MAAM,EAAE,SAAS;oBACjB,SAAS,EAAE,CAAC;oBACZ,aAAa,EAAE,sFAAsF;iBACtG;aACF;SACF;QACD,uBAAuB,EAAE;YACvB,OAAO,EAAE,uBAAuB;YAChC,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,YAAY;gBACZ,WAAW;aACZ;YACD,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/rooms/usage/0.1/payload.ts"],"names":[],"mappings":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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,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -12,5 +12,5 @@ export interface VTCSharedCommunityOwnedRoomDefinitions {
|
|
|
12
12
|
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
13
13
|
* See "../../../_shared/components.js".
|
|
14
14
|
*/
|
|
15
|
-
export type { CommunityRoom, MemberAction, MemberActions, MemberState, Offer, OfferCredentials, Reason, RoomLabel, RoomMember } from "../../../_shared/components.js";
|
|
15
|
+
export type { CommunityRoom, CommunityRoomV2, MemberAction, MemberActions, MemberState, Offer, OfferCredentials, OfferV2, Reason, RoomDescription, RoomLabel, RoomMember, RoomTag, RoomTags } from "../../../_shared/components.js";
|
|
16
16
|
//# sourceMappingURL=community-room.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"community-room.d.ts","sourceRoot":"","sources":["../../../../src/vtc/_shared/0.1/community-room.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACrD,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"community-room.d.ts","sourceRoot":"","sources":["../../../../src/vtc/_shared/0.1/community-room.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACrD,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/community/theme/show/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext } from "../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* An empty request: the community has one theme. The outer document members are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTCCommunityThemeShowPayload {
|
|
10
|
+
ext?: Ext;
|
|
11
|
+
}
|
|
12
|
+
export interface VTCCommunityThemeShowResponsePayload {
|
|
13
|
+
/**
|
|
14
|
+
* The stored theme stylesheet, in the theme profile of vtc/community/theme/update/0.1. The empty string when the community has none.
|
|
15
|
+
*/
|
|
16
|
+
stylesheet: string;
|
|
17
|
+
/**
|
|
18
|
+
* When the stylesheet was last replaced. Absent when the community never set one.
|
|
19
|
+
*/
|
|
20
|
+
updatedAt?: string;
|
|
21
|
+
ext?: Ext;
|
|
22
|
+
}
|
|
23
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
24
|
+
export type { Ext };
|
|
25
|
+
/** Trust Task type URI. */
|
|
26
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/community/theme/show/0.1";
|
|
27
|
+
/** Stable alias for this specification's request payload shape. */
|
|
28
|
+
export type Payload = VTCCommunityThemeShowPayload;
|
|
29
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
30
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/community/theme/show/0.1#response";
|
|
31
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
32
|
+
export type Response = VTCCommunityThemeShowResponsePayload;
|
|
33
|
+
/**
|
|
34
|
+
* This specification's payload schema, as a value.
|
|
35
|
+
*
|
|
36
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
37
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
38
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
39
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
40
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
41
|
+
*/
|
|
42
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
43
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
44
|
+
readonly $id: "https://trusttasks.org/spec/vtc/community/theme/show/0.1";
|
|
45
|
+
readonly title: "VTC Community — Theme — Show — payload";
|
|
46
|
+
readonly description: "An empty request: the community has one theme. The outer document members are owned by the framework — SPEC §6.3.";
|
|
47
|
+
readonly type: "object";
|
|
48
|
+
readonly additionalProperties: false;
|
|
49
|
+
readonly properties: {
|
|
50
|
+
readonly ext: {
|
|
51
|
+
readonly $ref: "#/$defs/Ext";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
readonly $defs: {
|
|
55
|
+
readonly Response: {
|
|
56
|
+
readonly $anchor: "response";
|
|
57
|
+
readonly title: "VTC Community — Theme — Show — response payload";
|
|
58
|
+
readonly type: "object";
|
|
59
|
+
readonly additionalProperties: false;
|
|
60
|
+
readonly required: readonly ["stylesheet"];
|
|
61
|
+
readonly properties: {
|
|
62
|
+
readonly stylesheet: {
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
readonly maxLength: 32768;
|
|
65
|
+
readonly description: "The stored theme stylesheet, in the theme profile of vtc/community/theme/update/0.1. The empty string when the community has none.";
|
|
66
|
+
};
|
|
67
|
+
readonly updatedAt: {
|
|
68
|
+
readonly type: "string";
|
|
69
|
+
readonly format: "date-time";
|
|
70
|
+
readonly description: "When the stylesheet was last replaced. Absent when the community never set one.";
|
|
71
|
+
};
|
|
72
|
+
readonly ext: {
|
|
73
|
+
readonly $ref: "#/$defs/Ext";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
readonly Ext: {
|
|
78
|
+
readonly title: "Ext";
|
|
79
|
+
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.";
|
|
80
|
+
readonly type: "object";
|
|
81
|
+
readonly minProperties: 1;
|
|
82
|
+
readonly additionalProperties: true;
|
|
83
|
+
readonly propertyNames: {
|
|
84
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
90
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
91
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
92
|
+
readonly $ref: "#/$defs/Response";
|
|
93
|
+
readonly $defs: {
|
|
94
|
+
readonly Response: {
|
|
95
|
+
readonly $anchor: "response";
|
|
96
|
+
readonly title: "VTC Community — Theme — Show — response payload";
|
|
97
|
+
readonly type: "object";
|
|
98
|
+
readonly additionalProperties: false;
|
|
99
|
+
readonly required: readonly ["stylesheet"];
|
|
100
|
+
readonly properties: {
|
|
101
|
+
readonly stylesheet: {
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
readonly maxLength: 32768;
|
|
104
|
+
readonly description: "The stored theme stylesheet, in the theme profile of vtc/community/theme/update/0.1. The empty string when the community has none.";
|
|
105
|
+
};
|
|
106
|
+
readonly updatedAt: {
|
|
107
|
+
readonly type: "string";
|
|
108
|
+
readonly format: "date-time";
|
|
109
|
+
readonly description: "When the stylesheet was last replaced. Absent when the community never set one.";
|
|
110
|
+
};
|
|
111
|
+
readonly ext: {
|
|
112
|
+
readonly $ref: "#/$defs/Ext";
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
readonly Ext: {
|
|
117
|
+
readonly title: "Ext";
|
|
118
|
+
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.";
|
|
119
|
+
readonly type: "object";
|
|
120
|
+
readonly minProperties: 1;
|
|
121
|
+
readonly additionalProperties: true;
|
|
122
|
+
readonly propertyNames: {
|
|
123
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
130
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
131
|
+
* per-specification and cannot be derived from the document alone, and
|
|
132
|
+
* item 2 needs the schema this carries.
|
|
133
|
+
*/
|
|
134
|
+
export declare const SPEC: {
|
|
135
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/community/theme/show/0.1";
|
|
136
|
+
readonly isBearer: false;
|
|
137
|
+
readonly isProofRequired: false;
|
|
138
|
+
readonly isRecipientRequired: true;
|
|
139
|
+
readonly isIssuedAtRequired: false;
|
|
140
|
+
readonly payloadSchema: {
|
|
141
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
142
|
+
readonly $id: "https://trusttasks.org/spec/vtc/community/theme/show/0.1";
|
|
143
|
+
readonly title: "VTC Community — Theme — Show — payload";
|
|
144
|
+
readonly description: "An empty request: the community has one theme. The outer document members are owned by the framework — SPEC §6.3.";
|
|
145
|
+
readonly type: "object";
|
|
146
|
+
readonly additionalProperties: false;
|
|
147
|
+
readonly properties: {
|
|
148
|
+
readonly ext: {
|
|
149
|
+
readonly $ref: "#/$defs/Ext";
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
readonly $defs: {
|
|
153
|
+
readonly Response: {
|
|
154
|
+
readonly $anchor: "response";
|
|
155
|
+
readonly title: "VTC Community — Theme — Show — response payload";
|
|
156
|
+
readonly type: "object";
|
|
157
|
+
readonly additionalProperties: false;
|
|
158
|
+
readonly required: readonly ["stylesheet"];
|
|
159
|
+
readonly properties: {
|
|
160
|
+
readonly stylesheet: {
|
|
161
|
+
readonly type: "string";
|
|
162
|
+
readonly maxLength: 32768;
|
|
163
|
+
readonly description: "The stored theme stylesheet, in the theme profile of vtc/community/theme/update/0.1. The empty string when the community has none.";
|
|
164
|
+
};
|
|
165
|
+
readonly updatedAt: {
|
|
166
|
+
readonly type: "string";
|
|
167
|
+
readonly format: "date-time";
|
|
168
|
+
readonly description: "When the stylesheet was last replaced. Absent when the community never set one.";
|
|
169
|
+
};
|
|
170
|
+
readonly ext: {
|
|
171
|
+
readonly $ref: "#/$defs/Ext";
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
readonly Ext: {
|
|
176
|
+
readonly title: "Ext";
|
|
177
|
+
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.";
|
|
178
|
+
readonly type: "object";
|
|
179
|
+
readonly minProperties: 1;
|
|
180
|
+
readonly additionalProperties: true;
|
|
181
|
+
readonly propertyNames: {
|
|
182
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
190
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
191
|
+
* parties (§7.3 item 5).
|
|
192
|
+
*/
|
|
193
|
+
export declare const RESPONSE_SPEC: {
|
|
194
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/community/theme/show/0.1#response";
|
|
195
|
+
readonly isBearer: false;
|
|
196
|
+
readonly isProofRequired: false;
|
|
197
|
+
readonly isRecipientRequired: false;
|
|
198
|
+
readonly isIssuedAtRequired: false;
|
|
199
|
+
readonly payloadSchema: {
|
|
200
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
201
|
+
readonly $ref: "#/$defs/Response";
|
|
202
|
+
readonly $defs: {
|
|
203
|
+
readonly Response: {
|
|
204
|
+
readonly $anchor: "response";
|
|
205
|
+
readonly title: "VTC Community — Theme — Show — response payload";
|
|
206
|
+
readonly type: "object";
|
|
207
|
+
readonly additionalProperties: false;
|
|
208
|
+
readonly required: readonly ["stylesheet"];
|
|
209
|
+
readonly properties: {
|
|
210
|
+
readonly stylesheet: {
|
|
211
|
+
readonly type: "string";
|
|
212
|
+
readonly maxLength: 32768;
|
|
213
|
+
readonly description: "The stored theme stylesheet, in the theme profile of vtc/community/theme/update/0.1. The empty string when the community has none.";
|
|
214
|
+
};
|
|
215
|
+
readonly updatedAt: {
|
|
216
|
+
readonly type: "string";
|
|
217
|
+
readonly format: "date-time";
|
|
218
|
+
readonly description: "When the stylesheet was last replaced. Absent when the community never set one.";
|
|
219
|
+
};
|
|
220
|
+
readonly ext: {
|
|
221
|
+
readonly $ref: "#/$defs/Ext";
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
readonly Ext: {
|
|
226
|
+
readonly title: "Ext";
|
|
227
|
+
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.";
|
|
228
|
+
readonly type: "object";
|
|
229
|
+
readonly minProperties: 1;
|
|
230
|
+
readonly additionalProperties: true;
|
|
231
|
+
readonly propertyNames: {
|
|
232
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/community/theme/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,0DAAmE,CAAC;AAE5F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,4BAA4B,CAAC;AAEnD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,mEAA4E,CAAC;AAE9G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,oCAAoC,CAAC;AAE5D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/community/theme/show/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/community/theme/show/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/community/theme/show/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/community/theme/show/0.1",
|
|
21
|
+
"title": "VTC Community — Theme — Show — payload",
|
|
22
|
+
"description": "An empty request: the community has one theme. The outer document members are owned by the framework — SPEC §6.3.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"properties": {
|
|
26
|
+
"ext": {
|
|
27
|
+
"$ref": "#/$defs/Ext"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"$defs": {
|
|
31
|
+
"Response": {
|
|
32
|
+
"$anchor": "response",
|
|
33
|
+
"title": "VTC Community — Theme — Show — response payload",
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": [
|
|
37
|
+
"stylesheet"
|
|
38
|
+
],
|
|
39
|
+
"properties": {
|
|
40
|
+
"stylesheet": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"maxLength": 32768,
|
|
43
|
+
"description": "The stored theme stylesheet, in the theme profile of vtc/community/theme/update/0.1. The empty string when the community has none."
|
|
44
|
+
},
|
|
45
|
+
"updatedAt": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"format": "date-time",
|
|
48
|
+
"description": "When the stylesheet was last replaced. Absent when the community never set one."
|
|
49
|
+
},
|
|
50
|
+
"ext": {
|
|
51
|
+
"$ref": "#/$defs/Ext"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"Ext": {
|
|
56
|
+
"title": "Ext",
|
|
57
|
+
"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.",
|
|
58
|
+
"type": "object",
|
|
59
|
+
"minProperties": 1,
|
|
60
|
+
"additionalProperties": true,
|
|
61
|
+
"propertyNames": {
|
|
62
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
68
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
69
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
70
|
+
"$ref": "#/$defs/Response",
|
|
71
|
+
"$defs": {
|
|
72
|
+
"Response": {
|
|
73
|
+
"$anchor": "response",
|
|
74
|
+
"title": "VTC Community — Theme — Show — response payload",
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"required": [
|
|
78
|
+
"stylesheet"
|
|
79
|
+
],
|
|
80
|
+
"properties": {
|
|
81
|
+
"stylesheet": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"maxLength": 32768,
|
|
84
|
+
"description": "The stored theme stylesheet, in the theme profile of vtc/community/theme/update/0.1. The empty string when the community has none."
|
|
85
|
+
},
|
|
86
|
+
"updatedAt": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"format": "date-time",
|
|
89
|
+
"description": "When the stylesheet was last replaced. Absent when the community never set one."
|
|
90
|
+
},
|
|
91
|
+
"ext": {
|
|
92
|
+
"$ref": "#/$defs/Ext"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"Ext": {
|
|
97
|
+
"title": "Ext",
|
|
98
|
+
"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.",
|
|
99
|
+
"type": "object",
|
|
100
|
+
"minProperties": 1,
|
|
101
|
+
"additionalProperties": true,
|
|
102
|
+
"propertyNames": {
|
|
103
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
110
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
111
|
+
* per-specification and cannot be derived from the document alone, and
|
|
112
|
+
* item 2 needs the schema this carries.
|
|
113
|
+
*/
|
|
114
|
+
export const SPEC = {
|
|
115
|
+
typeUri: TYPE_URI,
|
|
116
|
+
isBearer: false,
|
|
117
|
+
isProofRequired: false,
|
|
118
|
+
isRecipientRequired: true,
|
|
119
|
+
isIssuedAtRequired: false,
|
|
120
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
124
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
125
|
+
* parties (§7.3 item 5).
|
|
126
|
+
*/
|
|
127
|
+
export const RESPONSE_SPEC = {
|
|
128
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
129
|
+
isBearer: false,
|
|
130
|
+
isProofRequired: false,
|
|
131
|
+
isRecipientRequired: false,
|
|
132
|
+
isIssuedAtRequired: false,
|
|
133
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
134
|
+
};
|
|
135
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/community/theme/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0BH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,0DAAmE,CAAC;AAK5F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,mEAA4E,CAAC;AAK9G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,0DAA0D;IACjE,OAAO,EAAE,wCAAwC;IACjD,aAAa,EAAE,mHAAmH;IAClI,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,YAAY,EAAE;QACZ,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,iDAAiD;YAC1D,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,YAAY;aACb;YACD,YAAY,EAAE;gBACZ,YAAY,EAAE;oBACZ,MAAM,EAAE,QAAQ;oBAChB,WAAW,EAAE,KAAK;oBAClB,aAAa,EAAE,oIAAoI;iBACpJ;gBACD,WAAW,EAAE;oBACX,MAAM,EAAE,QAAQ;oBAChB,QAAQ,EAAE,WAAW;oBACrB,aAAa,EAAE,iFAAiF;iBACjG;gBACD,KAAK,EAAE;oBACL,MAAM,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