@openvtc/trust-tasks 0.19.2 → 0.19.4

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 (80) hide show
  1. package/CHANGELOG.md +215 -0
  2. package/dist/_shared/components.d.ts +298 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +14 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +14 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/keys/export-secret/0.1/payload.d.ts +309 -0
  9. package/dist/keys/export-secret/0.1/payload.d.ts.map +1 -0
  10. package/dist/keys/export-secret/0.1/payload.js +181 -0
  11. package/dist/keys/export-secret/0.1/payload.js.map +1 -0
  12. package/dist/vetting/_shared/0.1/identity-vetting.d.ts +11 -0
  13. package/dist/vetting/_shared/0.1/identity-vetting.d.ts.map +1 -0
  14. package/dist/vetting/_shared/0.1/identity-vetting.js +6 -0
  15. package/dist/vetting/_shared/0.1/identity-vetting.js.map +1 -0
  16. package/dist/vetting/_shared/0.1/vetting-card.d.ts +16 -0
  17. package/dist/vetting/_shared/0.1/vetting-card.d.ts.map +1 -0
  18. package/dist/vetting/_shared/0.1/vetting-card.js +6 -0
  19. package/dist/vetting/_shared/0.1/vetting-card.js.map +1 -0
  20. package/dist/vetting/_shared/0.1/vetting.d.ts +16 -0
  21. package/dist/vetting/_shared/0.1/vetting.d.ts.map +1 -0
  22. package/dist/vetting/_shared/0.1/vetting.js +6 -0
  23. package/dist/vetting/_shared/0.1/vetting.js.map +1 -0
  24. package/dist/vetting/decline/0.1/payload.d.ts +138 -0
  25. package/dist/vetting/decline/0.1/payload.d.ts.map +1 -0
  26. package/dist/vetting/decline/0.1/payload.js +81 -0
  27. package/dist/vetting/decline/0.1/payload.js.map +1 -0
  28. package/dist/vetting/request/0.1/payload.d.ts +1188 -0
  29. package/dist/vetting/request/0.1/payload.d.ts.map +1 -0
  30. package/dist/vetting/request/0.1/payload.js +596 -0
  31. package/dist/vetting/request/0.1/payload.js.map +1 -0
  32. package/dist/vetting/session/0.1/payload.d.ts +978 -0
  33. package/dist/vetting/session/0.1/payload.d.ts.map +1 -0
  34. package/dist/vetting/session/0.1/payload.js +570 -0
  35. package/dist/vetting/session/0.1/payload.js.map +1 -0
  36. package/dist/vtc/_shared/0.1/vetter-profile.d.ts +16 -0
  37. package/dist/vtc/_shared/0.1/vetter-profile.d.ts.map +1 -0
  38. package/dist/vtc/_shared/0.1/vetter-profile.js +6 -0
  39. package/dist/vtc/_shared/0.1/vetter-profile.js.map +1 -0
  40. package/dist/vtc/join-requests/manifest/0.2/payload.d.ts +1294 -0
  41. package/dist/vtc/join-requests/manifest/0.2/payload.d.ts.map +1 -0
  42. package/dist/vtc/join-requests/manifest/0.2/payload.js +667 -0
  43. package/dist/vtc/join-requests/manifest/0.2/payload.js.map +1 -0
  44. package/dist/vtc/vetting/revoke-statement/0.1/payload.d.ts +299 -0
  45. package/dist/vtc/vetting/revoke-statement/0.1/payload.d.ts.map +1 -0
  46. package/dist/vtc/vetting/revoke-statement/0.1/payload.js +172 -0
  47. package/dist/vtc/vetting/revoke-statement/0.1/payload.js.map +1 -0
  48. package/dist/vtc/vetting/vetters/grant/0.1/payload.d.ts +337 -0
  49. package/dist/vtc/vetting/vetters/grant/0.1/payload.d.ts.map +1 -0
  50. package/dist/vtc/vetting/vetters/grant/0.1/payload.js +183 -0
  51. package/dist/vtc/vetting/vetters/grant/0.1/payload.js.map +1 -0
  52. package/dist/vtc/vetting/vetters/list/0.1/payload.d.ts +1257 -0
  53. package/dist/vtc/vetting/vetters/list/0.1/payload.d.ts.map +1 -0
  54. package/dist/vtc/vetting/vetters/list/0.1/payload.js +597 -0
  55. package/dist/vtc/vetting/vetters/list/0.1/payload.js.map +1 -0
  56. package/dist/vtc/vetting/vetters/profile/0.1/payload.d.ts +970 -0
  57. package/dist/vtc/vetting/vetters/profile/0.1/payload.d.ts.map +1 -0
  58. package/dist/vtc/vetting/vetters/profile/0.1/payload.js +463 -0
  59. package/dist/vtc/vetting/vetters/profile/0.1/payload.js.map +1 -0
  60. package/dist/vtc/vetting/vetters/resend/0.1/payload.d.ts +240 -0
  61. package/dist/vtc/vetting/vetters/resend/0.1/payload.d.ts.map +1 -0
  62. package/dist/vtc/vetting/vetters/resend/0.1/payload.js +137 -0
  63. package/dist/vtc/vetting/vetters/resend/0.1/payload.js.map +1 -0
  64. package/package.json +1 -1
  65. package/src/_shared/components.ts +318 -0
  66. package/src/index.ts +14 -0
  67. package/src/keys/export-secret/0.1/payload.ts +227 -0
  68. package/src/vetting/_shared/0.1/identity-vetting.ts +11 -0
  69. package/src/vetting/_shared/0.1/vetting-card.ts +17 -0
  70. package/src/vetting/_shared/0.1/vetting.ts +17 -0
  71. package/src/vetting/decline/0.1/payload.ts +111 -0
  72. package/src/vetting/request/0.1/payload.ts +799 -0
  73. package/src/vetting/session/0.1/payload.ts +629 -0
  74. package/src/vtc/_shared/0.1/vetter-profile.ts +17 -0
  75. package/src/vtc/join-requests/manifest/0.2/payload.ts +815 -0
  76. package/src/vtc/vetting/revoke-statement/0.1/payload.ts +218 -0
  77. package/src/vtc/vetting/vetters/grant/0.1/payload.ts +237 -0
  78. package/src/vtc/vetting/vetters/list/0.1/payload.ts +816 -0
  79. package/src/vtc/vetting/vetters/profile/0.1/payload.ts +647 -0
  80. package/src/vtc/vetting/vetters/resend/0.1/payload.ts +174 -0
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vetting/_shared/0.1/vetting.schema.json
4
+ */
5
+
6
+ /**
7
+ * The vocabularies every identity-vetting artifact is written in: how a vetter established who an applicant is (VettingMethod), what documentation is accepted or was relied on (VettingDocumentation), and how the vetter knows the applicant (VettingRelationship). Used by vtc/join-requests/manifest (what a community requires), the vetting/* peer tasks (what a vetter offers and does), and the identity-vetting endorsement body (what a vetter attested). One definition, so a community's requirement and a vetter's statement are compared value-for-value rather than by translation. Claim types are not redefined here: they are the persona family's ClaimType (persona/_shared/0.1/persona-record), because a Vetting Card is rendered from a persona. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
8
+ */
9
+ export interface VettingSharedVocabulary {
10
+ [k: string]: unknown | undefined;
11
+ }
12
+
13
+ /**
14
+ * The definitions this shared schema publishes, hoisted to one declaration each.
15
+ * See "../../../_shared/components.js".
16
+ */
17
+ export type { VettingDocumentation, VettingMethod, VettingRelationship } from "../../../_shared/components.js";
@@ -0,0 +1,111 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vetting/decline/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext } from "../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * A vetter tells an applicant it will not issue a Vetting Statement for an accepted request. The reason code is optional: a vetter never has to justify declining. Sent to the applicant only — never to the community.
11
+ */
12
+ export interface VettingDeclinePayload {
13
+ /**
14
+ * The `requestId` from the vetter's acceptance of the applicant's vetting request.
15
+ */
16
+ requestId: string;
17
+ /**
18
+ * OPTIONAL. `couldNotVerify` — the vetter could not establish the claimed identity. `documentMismatch` — the documentation did not match the card or the person. `livenessFailed` — the match code could not be confirmed with the person. `notComfortable` — the vetter prefers not to attest. `other` — none of these.
19
+ */
20
+ code?: "couldNotVerify" | "documentMismatch" | "livenessFailed" | "notComfortable" | "other";
21
+ /**
22
+ * OPTIONAL vetter-authored text for the applicant. Attributed to the vetter on every surface that renders it; read by the applicant only.
23
+ */
24
+ message?: string;
25
+ ext?: Ext;
26
+ }
27
+
28
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
29
+ export type { Ext };
30
+
31
+ /** Trust Task type URI. */
32
+ export const TYPE_URI = "https://trusttasks.org/spec/vetting/decline/0.1" as const;
33
+
34
+ /** Stable alias for this specification's request payload shape. */
35
+ export type Payload = VettingDeclinePayload;
36
+
37
+ /**
38
+ * This specification's payload schema, as a value.
39
+ *
40
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
41
+ * rather than only as a `.json` file because TypeScript types are erased
42
+ * at runtime: without a schema a consumer has nothing to validate, and
43
+ * every REQUIRED payload member is optional in practice. Cross-file
44
+ * `$ref`s are already inlined, so it needs no resolver.
45
+ */
46
+ export const PAYLOAD_SCHEMA = {
47
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
48
+ "$id": "https://trusttasks.org/spec/vetting/decline/0.1",
49
+ "title": "Vetting Decline — payload",
50
+ "description": "A vetter tells an applicant it will not issue a Vetting Statement for an accepted request. The reason code is optional: a vetter never has to justify declining. Sent to the applicant only — never to the community.",
51
+ "type": "object",
52
+ "additionalProperties": false,
53
+ "required": [
54
+ "requestId"
55
+ ],
56
+ "properties": {
57
+ "requestId": {
58
+ "type": "string",
59
+ "minLength": 1,
60
+ "maxLength": 128,
61
+ "description": "The `requestId` from the vetter's acceptance of the applicant's vetting request."
62
+ },
63
+ "code": {
64
+ "type": "string",
65
+ "enum": [
66
+ "couldNotVerify",
67
+ "documentMismatch",
68
+ "livenessFailed",
69
+ "notComfortable",
70
+ "other"
71
+ ],
72
+ "description": "OPTIONAL. `couldNotVerify` — the vetter could not establish the claimed identity. `documentMismatch` — the documentation did not match the card or the person. `livenessFailed` — the match code could not be confirmed with the person. `notComfortable` — the vetter prefers not to attest. `other` — none of these."
73
+ },
74
+ "message": {
75
+ "type": "string",
76
+ "minLength": 1,
77
+ "maxLength": 500,
78
+ "description": "OPTIONAL vetter-authored text for the applicant. Attributed to the vetter on every surface that renders it; read by the applicant only."
79
+ },
80
+ "ext": {
81
+ "$ref": "#/$defs/Ext"
82
+ }
83
+ },
84
+ "$defs": {
85
+ "Ext": {
86
+ "title": "Ext",
87
+ "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.",
88
+ "type": "object",
89
+ "minProperties": 1,
90
+ "additionalProperties": true,
91
+ "propertyNames": {
92
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
93
+ }
94
+ }
95
+ }
96
+ } as const;
97
+
98
+ /**
99
+ * SPEC.md §7.2 policy for the request variant, from this specification's
100
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
101
+ * per-specification and cannot be derived from the document alone, and
102
+ * item 2 needs the schema this carries.
103
+ */
104
+ export const SPEC = {
105
+ typeUri: TYPE_URI,
106
+ isBearer: false,
107
+ isProofRequired: true,
108
+ isRecipientRequired: true,
109
+ isIssuedAtRequired: true,
110
+ payloadSchema: PAYLOAD_SCHEMA,
111
+ } as const;