@openvtc/trust-tasks 0.2.50 → 0.2.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/acl/grant/0.1/payload.d.ts +4 -0
  2. package/dist/acl/grant/0.1/payload.d.ts.map +1 -1
  3. package/dist/acl/grant/0.1/payload.js.map +1 -1
  4. package/dist/acl/update/0.1/payload.d.ts +5 -1
  5. package/dist/acl/update/0.1/payload.d.ts.map +1 -1
  6. package/dist/acl/update/0.1/payload.js.map +1 -1
  7. package/dist/index.d.ts +11 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +11 -0
  10. package/dist/index.js.map +1 -1
  11. package/dist/keys/_shared/0.1/key-record.d.ts +11 -0
  12. package/dist/keys/_shared/0.1/key-record.d.ts.map +1 -0
  13. package/dist/keys/_shared/0.1/key-record.js +6 -0
  14. package/dist/keys/_shared/0.1/key-record.js.map +1 -0
  15. package/dist/keys/_shared/0.1/sign-algorithm.d.ts +11 -0
  16. package/dist/keys/_shared/0.1/sign-algorithm.d.ts.map +1 -0
  17. package/dist/keys/_shared/0.1/sign-algorithm.js +6 -0
  18. package/dist/keys/_shared/0.1/sign-algorithm.js.map +1 -0
  19. package/dist/keys/create/0.1/payload.d.ts +35 -0
  20. package/dist/keys/create/0.1/payload.d.ts.map +1 -0
  21. package/dist/keys/create/0.1/payload.js +9 -0
  22. package/dist/keys/create/0.1/payload.js.map +1 -0
  23. package/dist/keys/derive-and-sign/0.1/payload.d.ts +39 -0
  24. package/dist/keys/derive-and-sign/0.1/payload.d.ts.map +1 -0
  25. package/dist/keys/derive-and-sign/0.1/payload.js +9 -0
  26. package/dist/keys/derive-and-sign/0.1/payload.js.map +1 -0
  27. package/dist/keys/derive-and-sign-document/0.1/payload.d.ts +38 -0
  28. package/dist/keys/derive-and-sign-document/0.1/payload.d.ts.map +1 -0
  29. package/dist/keys/derive-and-sign-document/0.1/payload.js +9 -0
  30. package/dist/keys/derive-and-sign-document/0.1/payload.js.map +1 -0
  31. package/dist/keys/import/0.1/payload.d.ts +48 -0
  32. package/dist/keys/import/0.1/payload.d.ts.map +1 -0
  33. package/dist/keys/import/0.1/payload.js +9 -0
  34. package/dist/keys/import/0.1/payload.js.map +1 -0
  35. package/dist/keys/list/0.1/payload.d.ts +35 -0
  36. package/dist/keys/list/0.1/payload.d.ts.map +1 -0
  37. package/dist/keys/list/0.1/payload.js +9 -0
  38. package/dist/keys/list/0.1/payload.js.map +1 -0
  39. package/dist/keys/rename/0.1/payload.d.ts +29 -0
  40. package/dist/keys/rename/0.1/payload.d.ts.map +1 -0
  41. package/dist/keys/rename/0.1/payload.js +9 -0
  42. package/dist/keys/rename/0.1/payload.js.map +1 -0
  43. package/dist/keys/revoke/0.1/payload.d.ts +29 -0
  44. package/dist/keys/revoke/0.1/payload.d.ts.map +1 -0
  45. package/dist/keys/revoke/0.1/payload.js +9 -0
  46. package/dist/keys/revoke/0.1/payload.js.map +1 -0
  47. package/dist/keys/show/0.1/payload.d.ts +22 -0
  48. package/dist/keys/show/0.1/payload.d.ts.map +1 -0
  49. package/dist/keys/show/0.1/payload.js +9 -0
  50. package/dist/keys/show/0.1/payload.js.map +1 -0
  51. package/dist/keys/sign/0.1/payload.d.ts +31 -0
  52. package/dist/keys/sign/0.1/payload.d.ts.map +1 -0
  53. package/dist/keys/sign/0.1/payload.js +9 -0
  54. package/dist/keys/sign/0.1/payload.js.map +1 -0
  55. package/package.json +1 -1
  56. package/src/acl/grant/0.1/payload.ts +4 -0
  57. package/src/acl/update/0.1/payload.ts +5 -1
  58. package/src/index.ts +11 -0
  59. package/src/keys/_shared/0.1/key-record.ts +11 -0
  60. package/src/keys/_shared/0.1/sign-algorithm.ts +11 -0
  61. package/src/keys/create/0.1/payload.ts +38 -0
  62. package/src/keys/derive-and-sign/0.1/payload.ts +42 -0
  63. package/src/keys/derive-and-sign-document/0.1/payload.ts +41 -0
  64. package/src/keys/import/0.1/payload.ts +51 -0
  65. package/src/keys/list/0.1/payload.ts +38 -0
  66. package/src/keys/rename/0.1/payload.ts +31 -0
  67. package/src/keys/revoke/0.1/payload.ts +31 -0
  68. package/src/keys/show/0.1/payload.ts +24 -0
  69. package/src/keys/sign/0.1/payload.ts +34 -0
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/rename/0.1/payload.schema.json
4
+ */
5
+ /**
6
+ * Change a key's identifier. The key material is untouched — only the name it is addressed by changes.
7
+ */
8
+ export interface KeysRenamePayload {
9
+ /**
10
+ * The identifier the key is addressed by today.
11
+ */
12
+ keyId: string;
13
+ /**
14
+ * The identifier it should be addressed by afterwards. MUST NOT collide with an existing record.
15
+ */
16
+ newKeyId: string;
17
+ ext?: Ext;
18
+ }
19
+ /**
20
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
21
+ */
22
+ export interface Ext {
23
+ [k: string]: unknown | undefined;
24
+ }
25
+ /** Trust Task type URI. */
26
+ export declare const TYPE_URI: "https://trusttasks.org/spec/keys/rename/0.1";
27
+ /** Trust Task response type URI (request type URI + "#response"). */
28
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/keys/rename/0.1#response";
29
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/keys/rename/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,6CAAsD,CAAC;AAE/E,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,sDAA+D,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/rename/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/keys/rename/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/keys/rename/0.1#response";
9
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/keys/rename/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuBH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,6CAAsD,CAAC;AAE/E,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,sDAA+D,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/revoke/0.1/payload.schema.json
4
+ */
5
+ /**
6
+ * Retire a key from further use. The record is retained so historic signatures stay attributable; this is not a delete.
7
+ */
8
+ export interface KeysRevokePayload {
9
+ /**
10
+ * Identifier of the key to retire.
11
+ */
12
+ keyId: string;
13
+ /**
14
+ * Optional human-readable rationale, recorded with the revocation.
15
+ */
16
+ reason?: string;
17
+ ext?: Ext;
18
+ }
19
+ /**
20
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
21
+ */
22
+ export interface Ext {
23
+ [k: string]: unknown | undefined;
24
+ }
25
+ /** Trust Task type URI. */
26
+ export declare const TYPE_URI: "https://trusttasks.org/spec/keys/revoke/0.1";
27
+ /** Trust Task response type URI (request type URI + "#response"). */
28
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/keys/revoke/0.1#response";
29
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/keys/revoke/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,6CAAsD,CAAC;AAE/E,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,sDAA+D,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/revoke/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/keys/revoke/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/keys/revoke/0.1#response";
9
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/keys/revoke/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuBH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,6CAAsD,CAAC;AAE/E,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,sDAA+D,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/show/0.1/payload.schema.json
4
+ */
5
+ export interface KeysShowPayload {
6
+ /**
7
+ * Identifier of the key to read.
8
+ */
9
+ keyId: string;
10
+ ext?: Ext;
11
+ }
12
+ /**
13
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
14
+ */
15
+ export interface Ext {
16
+ [k: string]: unknown | undefined;
17
+ }
18
+ /** Trust Task type URI. */
19
+ export declare const TYPE_URI: "https://trusttasks.org/spec/keys/show/0.1";
20
+ /** Trust Task response type URI (request type URI + "#response"). */
21
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/keys/show/0.1#response";
22
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/keys/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,2CAAoD,CAAC;AAE7E,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,oDAA6D,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/show/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/keys/show/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/keys/show/0.1#response";
9
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/keys/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgBH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,2CAAoD,CAAC;AAE7E,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,oDAA6D,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/sign/0.1/payload.schema.json
4
+ */
5
+ /**
6
+ * Signature algorithm to use. MUST be compatible with the named key's `keyType`.
7
+ */
8
+ export type SignAlgorithm = "EdDSA" | "ES256";
9
+ export interface KeysSignPayload {
10
+ /**
11
+ * Identifier of the key to sign with. The key MUST be `active`. Which keys a producer may name is the whole of this task's authorization story — the maintainer signs the bytes it is given without inspecting them.
12
+ */
13
+ keyId: string;
14
+ /**
15
+ * The exact bytes to sign, base64url-encoded without padding. The maintainer signs these bytes verbatim: it does not parse, canonicalize, or wrap them.
16
+ */
17
+ payload: string;
18
+ algorithm: SignAlgorithm;
19
+ ext?: Ext;
20
+ }
21
+ /**
22
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
23
+ */
24
+ export interface Ext {
25
+ [k: string]: unknown | undefined;
26
+ }
27
+ /** Trust Task type URI. */
28
+ export declare const TYPE_URI: "https://trusttasks.org/spec/keys/sign/0.1";
29
+ /** Trust Task response type URI (request type URI + "#response"). */
30
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/keys/sign/0.1#response";
31
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/keys/sign/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,OAAO,CAAC;AAE9C,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,aAAa,CAAC;IACzB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,2CAAoD,CAAC;AAE7E,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,oDAA6D,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/sign/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/keys/sign/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/keys/sign/0.1#response";
9
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/keys/sign/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0BH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,2CAAoD,CAAC;AAE7E,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,oDAA6D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openvtc/trust-tasks",
3
- "version": "0.2.50",
3
+ "version": "0.2.52",
4
4
  "description": "Generated TypeScript bindings for the Trust Tasks framework registry.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -27,6 +27,10 @@ export interface AclEntry {
27
27
  * Opaque scope identifiers (e.g. contexts, domains, resource prefixes).
28
28
  */
29
29
  scopes?: string[];
30
+ /**
31
+ * Key identifiers this subject may invoke the maintainer's signing oracle on. INTERSECTS WITH `scopes` — it can only narrow, never widen: a key named here that lies outside the entry's scopes remains unreachable, exactly as if it were not named. ABSENT means every key within the entry's scopes (the behaviour of entries that pre-date this member); explicit `null` is equivalent to absent, and producers SHOULD omit the member instead. PRESENT-BUT-EMPTY means authorized on NO keys — the opposite of absent, and deliberately so: emptiness is never a wildcard (CONVENTIONS.md §5). A consumer MUST preserve and enforce the absent-vs-empty distinction end to end; collapsing the two (e.g. by testing emptiness alone) re-creates the empty-means-unrestricted class of privilege-escalation defect this family's conventions exist to prevent.
32
+ */
33
+ allowedKeys?: string[] | null;
30
34
  /**
31
35
  * Optional human-readable label.
32
36
  */
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  /**
7
- * Amend the non-role attributes of an existing ACL entry: its label, scopes, expiry, step-up requirement, or approve-authority. Role changes are NOT expressible here — they go through acl/change-role, which requires the current role as a compare-and-swap.
7
+ * Amend the non-role attributes of an existing ACL entry: its label, scopes, allowed keys, expiry, step-up requirement, or approve-authority. Role changes are NOT expressible here — they go through acl/change-role, which requires the current role as a compare-and-swap.
8
8
  */
9
9
  export interface ACLUpdatePayload {
10
10
  /**
@@ -19,6 +19,10 @@ export interface ACLUpdatePayload {
19
19
  * Replacement scope set, applied wholesale rather than merged — a caller that means to add one sends the full intended set. NARROWING THE SET IS A REVOCATION and a consumer MUST refuse it here, directing the caller to acl/revoke, so that every removal of authority passes through the task that is audited and reasoned as a revocation.
20
20
  */
21
21
  scopes?: string[];
22
+ /**
23
+ * Replacement key filter, applied wholesale rather than merged (the entry's allowedKeys becomes exactly this value). Omitted leaves the filter unchanged. Explicit `null` REMOVES the filter — the subject may once again reach every key within its scopes, a privilege increase a consumer SHOULD gate like clearing `expiresAt`. An EMPTY ARRAY sets the filter to no keys at all — the narrowest grant, not a wildcard. A replacement that narrows the previous filter IS a privilege reduction: unlike `scopes` (whose narrowing is refused here and routed to acl/revoke) it is accepted, because acl/revoke/0.1 cannot express a per-key reduction — but the consumer MUST audit it as a reduction and apply it to the subject's live sessions rather than letting the wider set survive until a credential expires.
24
+ */
25
+ allowedKeys?: string[] | null;
22
26
  /**
23
27
  * Replacement expiry. Explicit `null` makes the entry permanent — a privilege increase, which a consumer SHOULD gate at least as strictly as the original grant.
24
28
  */
package/src/index.ts CHANGED
@@ -122,6 +122,17 @@ export * as GovernanceShared_v0_1 from "./governance/_shared/0.1/governance";
122
122
  export * as GovernanceCapabilityDisable_v0_1 from "./governance/capability/disable/0.1/payload";
123
123
  export * as GovernanceCapabilityEnable_v0_1 from "./governance/capability/enable/0.1/payload";
124
124
  export * as GovernanceCapabilityList_v0_1 from "./governance/capability/list/0.1/payload";
125
+ export * as KeyRecordShared_v0_1 from "./keys/_shared/0.1/key-record";
126
+ export * as SignAlgorithmShared_v0_1 from "./keys/_shared/0.1/sign-algorithm";
127
+ export * as KeysCreate_v0_1 from "./keys/create/0.1/payload";
128
+ export * as KeysDeriveAndSignDocument_v0_1 from "./keys/derive-and-sign-document/0.1/payload";
129
+ export * as KeysDeriveAndSign_v0_1 from "./keys/derive-and-sign/0.1/payload";
130
+ export * as KeysImport_v0_1 from "./keys/import/0.1/payload";
131
+ export * as KeysList_v0_1 from "./keys/list/0.1/payload";
132
+ export * as KeysRename_v0_1 from "./keys/rename/0.1/payload";
133
+ export * as KeysRevoke_v0_1 from "./keys/revoke/0.1/payload";
134
+ export * as KeysShow_v0_1 from "./keys/show/0.1/payload";
135
+ export * as KeysSign_v0_1 from "./keys/sign/0.1/payload";
125
136
  export * as MessagingShared_v0_1 from "./messaging/_shared/0.1/messaging";
126
137
  export * as MessagingAccessListAdd_v0_1 from "./messaging/access-list/add/0.1/payload";
127
138
  export * as MessagingAccessListClear_v0_1 from "./messaging/access-list/clear/0.1/payload";
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/_shared/0.1/key-record.schema.json
4
+ */
5
+
6
+ /**
7
+ * Canonical KeyRecord $def referenced by every keys/* specification, alongside the KeyType, KeyStatus and KeyOrigin enumerations. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
8
+ */
9
+ export interface KeyRecordSharedDefinitionForTheKeysSpecFamily {
10
+ [k: string]: unknown | undefined;
11
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/_shared/0.1/sign-algorithm.schema.json
4
+ */
5
+
6
+ /**
7
+ * Canonical SignAlgorithm $def, shared by every keys/* specification that produces a signature. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
8
+ */
9
+ export interface SignAlgorithmSharedDefinitionForTheKeysSpecFamily {
10
+ [k: string]: unknown | undefined;
11
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/create/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Algorithm to generate.
8
+ */
9
+ export type KeyType = "ed25519" | "x25519" | "p256";
10
+
11
+ export interface KeysCreatePayload {
12
+ keyType: KeyType;
13
+ /**
14
+ * Hierarchical-deterministic path to derive at. Where the custodian derives from a seed, supplying the path makes the key reproducible from that seed; omitting it leaves the choice to the custodian.
15
+ */
16
+ derivationPath?: string;
17
+ /**
18
+ * Optional human-readable label for the resulting record.
19
+ */
20
+ label?: string;
21
+ /**
22
+ * Scope to file the key under. Absence is the most restrictive reading, not a wildcard — see KeyRecord.contextId.
23
+ */
24
+ contextId?: string;
25
+ ext?: Ext;
26
+ }
27
+ /**
28
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
29
+ */
30
+ export interface Ext {
31
+ [k: string]: unknown | undefined;
32
+ }
33
+
34
+ /** Trust Task type URI. */
35
+ export const TYPE_URI = "https://trusttasks.org/spec/keys/create/0.1" as const;
36
+
37
+ /** Trust Task response type URI (request type URI + "#response"). */
38
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/keys/create/0.1#response" as const;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/derive-and-sign/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Algorithm to derive. MUST be one that can sign.
8
+ */
9
+ export type KeyType = "ed25519" | "x25519" | "p256";
10
+ /**
11
+ * Signature algorithm. MUST be compatible with the derived key's type.
12
+ */
13
+ export type SignAlgorithm = "EdDSA" | "ES256";
14
+
15
+ /**
16
+ * Derive a key at a path and sign with it in one step, without adding a stored key record.
17
+ */
18
+ export interface KeysDeriveAndSignPayload {
19
+ keyType: KeyType;
20
+ /**
21
+ * Hierarchical-deterministic path to derive at. The same path against the same seed always yields the same key, which is what makes this reproducible rather than ephemeral.
22
+ */
23
+ derivationPath: string;
24
+ /**
25
+ * The exact bytes to sign, base64url-encoded without padding. Signed verbatim — not parsed, canonicalized or wrapped.
26
+ */
27
+ payload: string;
28
+ algorithm: SignAlgorithm;
29
+ ext?: Ext;
30
+ }
31
+ /**
32
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
33
+ */
34
+ export interface Ext {
35
+ [k: string]: unknown | undefined;
36
+ }
37
+
38
+ /** Trust Task type URI. */
39
+ export const TYPE_URI = "https://trusttasks.org/spec/keys/derive-and-sign/0.1" as const;
40
+
41
+ /** Trust Task response type URI (request type URI + "#response"). */
42
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/keys/derive-and-sign/0.1#response" as const;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/derive-and-sign-document/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Algorithm to derive. MUST be one that can sign.
8
+ */
9
+ export type KeyType = "ed25519" | "x25519" | "p256";
10
+
11
+ /**
12
+ * Derive a key at a path and return the supplied JSON document with a Data Integrity proof grafted on. Unlike keys/derive-and-sign, the custodian canonicalizes the document itself.
13
+ */
14
+ export interface KeysDeriveAndSignDocumentPayload {
15
+ keyType: KeyType;
16
+ /**
17
+ * Hierarchical-deterministic path to derive at.
18
+ */
19
+ derivationPath: string;
20
+ /**
21
+ * The JSON document to sign. Any `proof` member present is stripped before canonicalization — the custodian signs the document's content, never a previous signature over it.
22
+ */
23
+ document: {};
24
+ /**
25
+ * Proof purpose to record in the generated proof. Absent means `assertionMethod`.
26
+ */
27
+ proofPurpose?: string;
28
+ ext?: Ext;
29
+ }
30
+ /**
31
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
32
+ */
33
+ export interface Ext {
34
+ [k: string]: unknown | undefined;
35
+ }
36
+
37
+ /** Trust Task type URI. */
38
+ export const TYPE_URI = "https://trusttasks.org/spec/keys/derive-and-sign-document/0.1" as const;
39
+
40
+ /** Trust Task response type URI (request type URI + "#response"). */
41
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/keys/derive-and-sign-document/0.1#response" as const;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/import/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Hand an externally-created private key to a custodian. Exactly one carrier member MUST be present; the choice of carrier is a confidentiality decision, not a formatting one.
8
+ */
9
+ export type KeysImportPayload = {
10
+ keyType: KeyType;
11
+ /**
12
+ * The private key inside an armored sealed-transfer bundle, encrypted to the custodian's own public key. The only carrier that keeps the key confidential from every intermediary, including a transport terminator, so it is the one to prefer.
13
+ */
14
+ privateKeySealed?: string;
15
+ /**
16
+ * The private key as a JWE compact serialization, encrypted to the custodian. Equivalent in intent to `privateKeySealed`; retained for producers that already speak JOSE.
17
+ */
18
+ privateKeyJwe?: string;
19
+ /**
20
+ * The raw private key, multibase-encoded and NOT encrypted to the custodian. Admissible **only** where the transport itself provides end-to-end confidentiality between producer and custodian. A custodian reachable over a transport that terminates anywhere in between (TLS at a load balancer, for instance) MUST refuse this member — see the specification's Security section.
21
+ */
22
+ privateKeyMultibase?: string;
23
+ /**
24
+ * Optional human-readable label for the resulting record.
25
+ */
26
+ label?: string;
27
+ /**
28
+ * Scope to file the imported key under. Absence is the most restrictive reading, not a wildcard — see KeyRecord.contextId.
29
+ */
30
+ contextId?: string;
31
+ ext?: Ext;
32
+ } & {
33
+ [k: string]: unknown | undefined;
34
+ };
35
+ /**
36
+ * Algorithm of the key being imported. The custodian MUST verify the supplied material is of this type rather than trusting the claim.
37
+ */
38
+ export type KeyType = "ed25519" | "x25519" | "p256";
39
+
40
+ /**
41
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
42
+ */
43
+ export interface Ext {
44
+ [k: string]: unknown | undefined;
45
+ }
46
+
47
+ /** Trust Task type URI. */
48
+ export const TYPE_URI = "https://trusttasks.org/spec/keys/import/0.1" as const;
49
+
50
+ /** Trust Task response type URI (request type URI + "#response"). */
51
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/keys/import/0.1#response" as const;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/list/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Return only keys in this lifecycle state. Omitted returns every state, including revoked keys.
8
+ */
9
+ export type KeyStatus = "active" | "revoked";
10
+
11
+ export interface KeysListPayload {
12
+ status?: KeyStatus;
13
+ /**
14
+ * Return only keys filed under this scope.
15
+ */
16
+ contextId?: string;
17
+ /**
18
+ * Zero-based index of the first record to return.
19
+ */
20
+ offset?: number;
21
+ /**
22
+ * Maximum records to return. The custodian MAY return fewer and MAY impose its own ceiling; `total` says how many matched.
23
+ */
24
+ limit?: number;
25
+ ext?: Ext;
26
+ }
27
+ /**
28
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
29
+ */
30
+ export interface Ext {
31
+ [k: string]: unknown | undefined;
32
+ }
33
+
34
+ /** Trust Task type URI. */
35
+ export const TYPE_URI = "https://trusttasks.org/spec/keys/list/0.1" as const;
36
+
37
+ /** Trust Task response type URI (request type URI + "#response"). */
38
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/keys/list/0.1#response" as const;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/rename/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Change a key's identifier. The key material is untouched — only the name it is addressed by changes.
8
+ */
9
+ export interface KeysRenamePayload {
10
+ /**
11
+ * The identifier the key is addressed by today.
12
+ */
13
+ keyId: string;
14
+ /**
15
+ * The identifier it should be addressed by afterwards. MUST NOT collide with an existing record.
16
+ */
17
+ newKeyId: string;
18
+ ext?: Ext;
19
+ }
20
+ /**
21
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
22
+ */
23
+ export interface Ext {
24
+ [k: string]: unknown | undefined;
25
+ }
26
+
27
+ /** Trust Task type URI. */
28
+ export const TYPE_URI = "https://trusttasks.org/spec/keys/rename/0.1" as const;
29
+
30
+ /** Trust Task response type URI (request type URI + "#response"). */
31
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/keys/rename/0.1#response" as const;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/revoke/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Retire a key from further use. The record is retained so historic signatures stay attributable; this is not a delete.
8
+ */
9
+ export interface KeysRevokePayload {
10
+ /**
11
+ * Identifier of the key to retire.
12
+ */
13
+ keyId: string;
14
+ /**
15
+ * Optional human-readable rationale, recorded with the revocation.
16
+ */
17
+ reason?: string;
18
+ ext?: Ext;
19
+ }
20
+ /**
21
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
22
+ */
23
+ export interface Ext {
24
+ [k: string]: unknown | undefined;
25
+ }
26
+
27
+ /** Trust Task type URI. */
28
+ export const TYPE_URI = "https://trusttasks.org/spec/keys/revoke/0.1" as const;
29
+
30
+ /** Trust Task response type URI (request type URI + "#response"). */
31
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/keys/revoke/0.1#response" as const;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/show/0.1/payload.schema.json
4
+ */
5
+
6
+ export interface KeysShowPayload {
7
+ /**
8
+ * Identifier of the key to read.
9
+ */
10
+ keyId: string;
11
+ ext?: Ext;
12
+ }
13
+ /**
14
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
15
+ */
16
+ export interface Ext {
17
+ [k: string]: unknown | undefined;
18
+ }
19
+
20
+ /** Trust Task type URI. */
21
+ export const TYPE_URI = "https://trusttasks.org/spec/keys/show/0.1" as const;
22
+
23
+ /** Trust Task response type URI (request type URI + "#response"). */
24
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/keys/show/0.1#response" as const;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/sign/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Signature algorithm to use. MUST be compatible with the named key's `keyType`.
8
+ */
9
+ export type SignAlgorithm = "EdDSA" | "ES256";
10
+
11
+ export interface KeysSignPayload {
12
+ /**
13
+ * Identifier of the key to sign with. The key MUST be `active`. Which keys a producer may name is the whole of this task's authorization story — the maintainer signs the bytes it is given without inspecting them.
14
+ */
15
+ keyId: string;
16
+ /**
17
+ * The exact bytes to sign, base64url-encoded without padding. The maintainer signs these bytes verbatim: it does not parse, canonicalize, or wrap them.
18
+ */
19
+ payload: string;
20
+ algorithm: SignAlgorithm;
21
+ ext?: Ext;
22
+ }
23
+ /**
24
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
25
+ */
26
+ export interface Ext {
27
+ [k: string]: unknown | undefined;
28
+ }
29
+
30
+ /** Trust Task type URI. */
31
+ export const TYPE_URI = "https://trusttasks.org/spec/keys/sign/0.1" as const;
32
+
33
+ /** Trust Task response type URI (request type URI + "#response"). */
34
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/keys/sign/0.1#response" as const;