cohorte 3.0.0-dev.8 → 3.0.0

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 (229) hide show
  1. package/CHANGELOG.md +1532 -0
  2. package/README.md +316 -62
  3. package/bin/cli.js +212 -0
  4. package/bin/report.js +141 -0
  5. package/core/agents/cohorte-profile-reader.md +50 -0
  6. package/core/agents/cohorte-release.md +58 -0
  7. package/core/agents/cohorte-review.md +174 -0
  8. package/core/agents/implementer.template.md +146 -0
  9. package/core/commands/cohorte-align-ds.md +33 -0
  10. package/core/commands/cohorte-audit.md +67 -0
  11. package/core/commands/cohorte-brainstorm.md +73 -0
  12. package/core/commands/cohorte-build.md +241 -0
  13. package/core/commands/cohorte-doctor.md +133 -0
  14. package/core/commands/cohorte-fix.md +80 -0
  15. package/core/commands/cohorte-fleet.md +111 -0
  16. package/core/commands/cohorte-init-pipeline.md +30 -0
  17. package/core/commands/cohorte-intake.md +92 -0
  18. package/core/commands/cohorte-patch.md +118 -0
  19. package/core/commands/cohorte-refactor.md +57 -0
  20. package/core/commands/cohorte-retro.md +85 -0
  21. package/core/commands/cohorte-review.md +224 -0
  22. package/core/commands/cohorte-ship.md +155 -0
  23. package/core/commands/cohorte-spec.md +105 -0
  24. package/core/commands/cohorte-update-pipeline.md +115 -0
  25. package/core/hooks/gate.py +2931 -0
  26. package/core/templates/agent-handoff.md +34 -0
  27. package/core/templates/brainstorm-return.md +42 -0
  28. package/core/templates/decisions.template.md +42 -0
  29. package/core/templates/design-brief.md +37 -0
  30. package/core/templates/patch.template.md +86 -0
  31. package/core/templates/pr-body.md +25 -0
  32. package/core/templates/review-feedback.md +46 -0
  33. package/core/templates/spec.template.md +88 -0
  34. package/core/templates/steps/init-pipeline/01-detect-stack.md +44 -0
  35. package/core/templates/steps/init-pipeline/02-interview-gaps.md +55 -0
  36. package/core/templates/steps/init-pipeline/03-draft-profile.md +9 -0
  37. package/core/templates/steps/init-pipeline/04-write-render.md +91 -0
  38. package/core/templates/steps/init-pipeline/05-report.md +11 -0
  39. package/core/templates/steps/review-pr/01-pr-mode.md +54 -0
  40. package/core/workflows/audit.js +306 -0
  41. package/core/workflows/loop.js +687 -0
  42. package/core/workflows/refactor.js +291 -0
  43. package/core/workflows/review.js +491 -0
  44. package/install.ps1 +72 -0
  45. package/install.sh +69 -0
  46. package/lib/doctor.js +472 -0
  47. package/lib/install.js +377 -0
  48. package/lib/project.js +322 -0
  49. package/lib/render.js +121 -0
  50. package/lib/versions.js +145 -0
  51. package/lib/yaml.js +174 -0
  52. package/package.json +36 -17
  53. package/profile/PIPELINE.template.md +250 -0
  54. package/profile/SCHEMA.md +749 -0
  55. package/profile/cohorte.config.template.yaml +43 -0
  56. package/scripts/feature-diff.sh +118 -0
  57. package/scripts/kanban-move.sh +307 -0
  58. package/scripts/metrics/collect.mjs +542 -0
  59. package/scripts/metrics/prices.json +42 -0
  60. package/scripts/new-feature.sh.template +122 -0
  61. package/scripts/preflight.sh +114 -0
  62. package/scripts/remove-feature.sh.template +56 -0
  63. package/assets/manifest.json +0 -203
  64. package/assets/migrations/config/README.md +0 -12
  65. package/assets/migrations/state/0001_init.sql +0 -154
  66. package/assets/prompts/README.md +0 -11
  67. package/assets/prompts/agents/brainstormer.md +0 -3
  68. package/assets/prompts/agents/fixer.md +0 -7
  69. package/assets/prompts/agents/implementer.md +0 -12
  70. package/assets/prompts/agents/reviewer.md +0 -8
  71. package/assets/prompts/agents/security-reviewer.md +0 -7
  72. package/assets/prompts/agents/spec-author.md +0 -3
  73. package/assets/prompts/phases/build.md +0 -5
  74. package/assets/prompts/phases/review.md +0 -5
  75. package/assets/prompts/phases/test.md +0 -5
  76. package/assets/prompts/system.md +0 -11
  77. package/assets/schemas/agent-output.schema.json +0 -225
  78. package/assets/schemas/auth-status.schema.json +0 -87
  79. package/assets/schemas/command-result.schema.json +0 -192
  80. package/assets/schemas/commands.schema.json +0 -959
  81. package/assets/schemas/config.schema.json +0 -2281
  82. package/assets/schemas/doctor-report.schema.json +0 -104
  83. package/assets/schemas/events.schema.json +0 -8514
  84. package/assets/schemas/fake-script.schema.json +0 -549
  85. package/assets/schemas/inspect.schema.json +0 -3133
  86. package/assets/schemas/manifest.schema.json +0 -79
  87. package/assets/schemas/ownership.schema.json +0 -52
  88. package/assets/schemas/policy-verdict.schema.json +0 -282
  89. package/assets/schemas/project-model.schema.json +0 -783
  90. package/assets/schemas/project-status.schema.json +0 -217
  91. package/assets/schemas/reconcile-plan.schema.json +0 -154
  92. package/assets/schemas/run-diff.schema.json +0 -177
  93. package/assets/schemas/run-snapshot-manifest.schema.json +0 -2104
  94. package/assets/schemas/run-state.schema.json +0 -1755
  95. package/assets/schemas/runtime-capabilities.schema.json +0 -1545
  96. package/assets/schemas/sandbox-capabilities.schema.json +0 -116
  97. package/assets/schemas/skill.schema.json +0 -87
  98. package/assets/schemas/spec.schema.json +0 -202
  99. package/assets/schemas/tool-catalogue.schema.json +0 -655
  100. package/assets/schemas/trust-record.schema.json +0 -38
  101. package/assets/skills/README.md +0 -9
  102. package/assets/skills/inspect-surface.md +0 -4
  103. package/dist/agent-host.mjs +0 -2187
  104. package/dist/agent-host.mjs.map +0 -1
  105. package/dist/bundle-manifest.json +0 -128
  106. package/dist/chunks/__host-DgGPyco9.mjs +0 -18
  107. package/dist/chunks/__host-DgGPyco9.mjs.map +0 -1
  108. package/dist/chunks/align-ds-r_X_1aQ_.mjs +0 -93
  109. package/dist/chunks/align-ds-r_X_1aQ_.mjs.map +0 -1
  110. package/dist/chunks/approve-Cv135UqI.mjs +0 -19
  111. package/dist/chunks/approve-Cv135UqI.mjs.map +0 -1
  112. package/dist/chunks/audit-B4ZWQ_DI.mjs +0 -179
  113. package/dist/chunks/audit-B4ZWQ_DI.mjs.map +0 -1
  114. package/dist/chunks/auth-BT5oVp76.mjs +0 -132
  115. package/dist/chunks/auth-BT5oVp76.mjs.map +0 -1
  116. package/dist/chunks/auth-Dnlksuo5.mjs +0 -141
  117. package/dist/chunks/auth-Dnlksuo5.mjs.map +0 -1
  118. package/dist/chunks/brainstorm-SJwOIEif.mjs +0 -123
  119. package/dist/chunks/brainstorm-SJwOIEif.mjs.map +0 -1
  120. package/dist/chunks/build-C_-mbZfD.mjs +0 -19
  121. package/dist/chunks/build-C_-mbZfD.mjs.map +0 -1
  122. package/dist/chunks/cancel-KV_cpsqS.mjs +0 -15
  123. package/dist/chunks/cancel-KV_cpsqS.mjs.map +0 -1
  124. package/dist/chunks/canonical-C8UxeEmB.mjs +0 -57
  125. package/dist/chunks/canonical-C8UxeEmB.mjs.map +0 -1
  126. package/dist/chunks/catalogue-IaCJdfB8.mjs +0 -1549
  127. package/dist/chunks/catalogue-IaCJdfB8.mjs.map +0 -1
  128. package/dist/chunks/compose-DRKjQcn0.mjs +0 -7333
  129. package/dist/chunks/compose-DRKjQcn0.mjs.map +0 -1
  130. package/dist/chunks/config-Cqu5XQoP.mjs +0 -96
  131. package/dist/chunks/config-Cqu5XQoP.mjs.map +0 -1
  132. package/dist/chunks/contract-DjssDPpS.mjs +0 -335
  133. package/dist/chunks/contract-DjssDPpS.mjs.map +0 -1
  134. package/dist/chunks/contract-bQ9FJl4N.mjs +0 -123
  135. package/dist/chunks/contract-bQ9FJl4N.mjs.map +0 -1
  136. package/dist/chunks/deny-ClTxSvHJ.mjs +0 -15
  137. package/dist/chunks/deny-ClTxSvHJ.mjs.map +0 -1
  138. package/dist/chunks/diff-Qw0II0sj.mjs +0 -101
  139. package/dist/chunks/diff-Qw0II0sj.mjs.map +0 -1
  140. package/dist/chunks/discover-BZPolSZG.mjs +0 -21
  141. package/dist/chunks/discover-BZPolSZG.mjs.map +0 -1
  142. package/dist/chunks/doctor-DcDFPvQM.mjs +0 -222
  143. package/dist/chunks/doctor-DcDFPvQM.mjs.map +0 -1
  144. package/dist/chunks/fix-C9roGiQz.mjs +0 -82
  145. package/dist/chunks/fix-C9roGiQz.mjs.map +0 -1
  146. package/dist/chunks/fleet-yWHQY2ya.mjs +0 -297
  147. package/dist/chunks/fleet-yWHQY2ya.mjs.map +0 -1
  148. package/dist/chunks/gc-BBXlBF5w.mjs +0 -161
  149. package/dist/chunks/gc-BBXlBF5w.mjs.map +0 -1
  150. package/dist/chunks/init--FxxkrcT.mjs +0 -63
  151. package/dist/chunks/init--FxxkrcT.mjs.map +0 -1
  152. package/dist/chunks/inspect-Buby4cQD.mjs +0 -22
  153. package/dist/chunks/inspect-Buby4cQD.mjs.map +0 -1
  154. package/dist/chunks/intake-C1pesxCJ.mjs +0 -12
  155. package/dist/chunks/intake-C1pesxCJ.mjs.map +0 -1
  156. package/dist/chunks/logs-Giq5sUau.mjs +0 -25
  157. package/dist/chunks/logs-Giq5sUau.mjs.map +0 -1
  158. package/dist/chunks/loop-BWsUpyus.mjs +0 -212
  159. package/dist/chunks/loop-BWsUpyus.mjs.map +0 -1
  160. package/dist/chunks/migrate-DuYCAbE3.mjs +0 -33
  161. package/dist/chunks/migrate-DuYCAbE3.mjs.map +0 -1
  162. package/dist/chunks/models-Btp6X2YZ.mjs +0 -24
  163. package/dist/chunks/models-Btp6X2YZ.mjs.map +0 -1
  164. package/dist/chunks/obsidian-BHLkXx_H.mjs +0 -235
  165. package/dist/chunks/obsidian-BHLkXx_H.mjs.map +0 -1
  166. package/dist/chunks/patch-sAgVqjpx.mjs +0 -50
  167. package/dist/chunks/patch-sAgVqjpx.mjs.map +0 -1
  168. package/dist/chunks/pause-BASBfKLO.mjs +0 -16
  169. package/dist/chunks/pause-BASBfKLO.mjs.map +0 -1
  170. package/dist/chunks/policy-Du7WVBFX.mjs +0 -139
  171. package/dist/chunks/policy-Du7WVBFX.mjs.map +0 -1
  172. package/dist/chunks/providers-Dx78imKj.mjs +0 -19
  173. package/dist/chunks/providers-Dx78imKj.mjs.map +0 -1
  174. package/dist/chunks/reconcile-BHn66X3C.mjs +0 -50
  175. package/dist/chunks/reconcile-BHn66X3C.mjs.map +0 -1
  176. package/dist/chunks/refactor-DV3RfGjk.mjs +0 -153
  177. package/dist/chunks/refactor-DV3RfGjk.mjs.map +0 -1
  178. package/dist/chunks/render-DyZr5Lgi.mjs +0 -53
  179. package/dist/chunks/render-DyZr5Lgi.mjs.map +0 -1
  180. package/dist/chunks/resume-GJQRb2Eb.mjs +0 -15
  181. package/dist/chunks/resume-GJQRb2Eb.mjs.map +0 -1
  182. package/dist/chunks/retro-Dr-2RTNN.mjs +0 -78
  183. package/dist/chunks/retro-Dr-2RTNN.mjs.map +0 -1
  184. package/dist/chunks/retry-CLrUem1H.mjs +0 -15
  185. package/dist/chunks/retry-CLrUem1H.mjs.map +0 -1
  186. package/dist/chunks/review-ZsBqp3vZ.mjs +0 -35
  187. package/dist/chunks/review-ZsBqp3vZ.mjs.map +0 -1
  188. package/dist/chunks/run-BGabwbDL.mjs +0 -109
  189. package/dist/chunks/run-BGabwbDL.mjs.map +0 -1
  190. package/dist/chunks/run-tool-C3rAv4XF.mjs +0 -26
  191. package/dist/chunks/run-tool-C3rAv4XF.mjs.map +0 -1
  192. package/dist/chunks/scan-C5uDr7Yq.mjs +0 -167
  193. package/dist/chunks/scan-C5uDr7Yq.mjs.map +0 -1
  194. package/dist/chunks/schema-Bq9qtgsd.mjs +0 -583
  195. package/dist/chunks/schema-Bq9qtgsd.mjs.map +0 -1
  196. package/dist/chunks/send-BdnJ85Nz.mjs +0 -19
  197. package/dist/chunks/send-BdnJ85Nz.mjs.map +0 -1
  198. package/dist/chunks/ship-BizfUe62.mjs +0 -140
  199. package/dist/chunks/ship-BizfUe62.mjs.map +0 -1
  200. package/dist/chunks/shutdown-BM92Iyv2.mjs +0 -15
  201. package/dist/chunks/shutdown-BM92Iyv2.mjs.map +0 -1
  202. package/dist/chunks/skip-DZG5kpcH.mjs +0 -18
  203. package/dist/chunks/skip-DZG5kpcH.mjs.map +0 -1
  204. package/dist/chunks/spec-C2h3U64g.mjs +0 -65
  205. package/dist/chunks/spec-C2h3U64g.mjs.map +0 -1
  206. package/dist/chunks/spec-path-tptqR7W8.mjs +0 -10
  207. package/dist/chunks/spec-path-tptqR7W8.mjs.map +0 -1
  208. package/dist/chunks/src-Bfr1yzsn.mjs +0 -1689
  209. package/dist/chunks/src-Bfr1yzsn.mjs.map +0 -1
  210. package/dist/chunks/src-CPW2_Ons.mjs +0 -5487
  211. package/dist/chunks/src-CPW2_Ons.mjs.map +0 -1
  212. package/dist/chunks/src-Cu3TxNob.mjs +0 -783
  213. package/dist/chunks/src-Cu3TxNob.mjs.map +0 -1
  214. package/dist/chunks/src-DNsLSxgm.mjs +0 -928
  215. package/dist/chunks/src-DNsLSxgm.mjs.map +0 -1
  216. package/dist/chunks/src-DbS9gkJy.mjs +0 -117
  217. package/dist/chunks/src-DbS9gkJy.mjs.map +0 -1
  218. package/dist/chunks/src-yi5whv3n.mjs +0 -2118
  219. package/dist/chunks/src-yi5whv3n.mjs.map +0 -1
  220. package/dist/chunks/status-SMjiOMYy.mjs +0 -29
  221. package/dist/chunks/status-SMjiOMYy.mjs.map +0 -1
  222. package/dist/chunks/tail-BuhT-2PH.mjs +0 -25
  223. package/dist/chunks/tail-BuhT-2PH.mjs.map +0 -1
  224. package/dist/chunks/update-BXIppsbi.mjs +0 -16
  225. package/dist/chunks/update-BXIppsbi.mjs.map +0 -1
  226. package/dist/chunks/update-pipeline-Du-Gu1Pl.mjs +0 -56
  227. package/dist/chunks/update-pipeline-Du-Gu1Pl.mjs.map +0 -1
  228. package/dist/cli.mjs +0 -186
  229. package/dist/cli.mjs.map +0 -1
@@ -1,79 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://cohorte.dev/schemas/3/manifest.schema.json",
4
- "title": "Cohorte installation manifest (.cohorte/manifest.yaml)",
5
- "type": "object",
6
- "required": [
7
- "schemaVersion",
8
- "cohorteVersion",
9
- "createdWith",
10
- "protocol",
11
- "stateSchemaVersion",
12
- "generated"
13
- ],
14
- "properties": {
15
- "schemaVersion": {
16
- "type": "number",
17
- "const": 1
18
- },
19
- "cohorteVersion": {
20
- "type": "string",
21
- "minLength": 1
22
- },
23
- "createdWith": {
24
- "type": "string",
25
- "minLength": 1
26
- },
27
- "protocol": {
28
- "type": "object",
29
- "required": [
30
- "min",
31
- "max"
32
- ],
33
- "properties": {
34
- "min": {
35
- "type": "string",
36
- "minLength": 1
37
- },
38
- "max": {
39
- "type": "string",
40
- "minLength": 1
41
- }
42
- }
43
- },
44
- "stateSchemaVersion": {
45
- "type": "integer",
46
- "minimum": 0
47
- },
48
- "generated": {
49
- "type": "array",
50
- "items": {
51
- "type": "object",
52
- "required": [
53
- "path",
54
- "templateId",
55
- "templateSha256",
56
- "renderedSha256"
57
- ],
58
- "properties": {
59
- "path": {
60
- "type": "string",
61
- "minLength": 1
62
- },
63
- "templateId": {
64
- "type": "string",
65
- "minLength": 1
66
- },
67
- "templateSha256": {
68
- "type": "string",
69
- "pattern": "^[0-9a-f]{64}$"
70
- },
71
- "renderedSha256": {
72
- "type": "string",
73
- "pattern": "^[0-9a-f]{64}$"
74
- }
75
- }
76
- }
77
- }
78
- }
79
- }
@@ -1,52 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://cohorte.dev/schemas/3/ownership.schema.json",
4
- "title": "Cohorte surface ownership map (.cohorte/ownership.yaml)",
5
- "type": "object",
6
- "required": [
7
- "surfaces"
8
- ],
9
- "properties": {
10
- "surfaces": {
11
- "type": "object",
12
- "patternProperties": {
13
- "^[A-Za-z0-9_][A-Za-z0-9_.-]{0,127}$": {
14
- "type": "object",
15
- "required": [
16
- "paths",
17
- "owners",
18
- "reviewers"
19
- ],
20
- "properties": {
21
- "paths": {
22
- "type": "array",
23
- "items": {
24
- "type": "string",
25
- "minLength": 1
26
- },
27
- "minItems": 1
28
- },
29
- "owners": {
30
- "type": "array",
31
- "items": {
32
- "type": "string",
33
- "minLength": 1
34
- }
35
- },
36
- "reviewers": {
37
- "type": "array",
38
- "items": {
39
- "type": "string",
40
- "minLength": 1
41
- }
42
- },
43
- "approval": {
44
- "type": "string",
45
- "const": "human"
46
- }
47
- }
48
- }
49
- }
50
- }
51
- }
52
- }
@@ -1,282 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://cohorte.dev/schemas/3/policy-verdict.schema.json",
4
- "title": "Cohorte policy verdict (policy explain)",
5
- "type": "object",
6
- "required": [
7
- "decision",
8
- "stage",
9
- "ruleId",
10
- "reason",
11
- "modelFacingReason",
12
- "overridable",
13
- "securityViolation",
14
- "asks",
15
- "evaluatedRules",
16
- "normalized"
17
- ],
18
- "properties": {
19
- "decision": {
20
- "type": "string",
21
- "enum": [
22
- "allow",
23
- "deny",
24
- "ask",
25
- "allow-once",
26
- "allow-for-run"
27
- ]
28
- },
29
- "stage": {
30
- "type": "string",
31
- "enum": [
32
- "liveness",
33
- "schema",
34
- "capability",
35
- "path",
36
- "command",
37
- "network",
38
- "budget",
39
- "approval"
40
- ]
41
- },
42
- "ruleId": {
43
- "type": "string",
44
- "minLength": 1
45
- },
46
- "reason": {
47
- "type": "string"
48
- },
49
- "modelFacingReason": {
50
- "type": "string"
51
- },
52
- "overridable": {
53
- "type": "boolean"
54
- },
55
- "securityViolation": {
56
- "type": "boolean"
57
- },
58
- "asks": {
59
- "type": "array",
60
- "items": {
61
- "type": "object",
62
- "required": [
63
- "stage",
64
- "ruleId",
65
- "reason"
66
- ],
67
- "properties": {
68
- "stage": {
69
- "type": "string",
70
- "enum": [
71
- "liveness",
72
- "schema",
73
- "capability",
74
- "path",
75
- "command",
76
- "network",
77
- "budget",
78
- "approval"
79
- ]
80
- },
81
- "ruleId": {
82
- "type": "string"
83
- },
84
- "reason": {
85
- "type": "string"
86
- }
87
- }
88
- }
89
- },
90
- "evaluatedRules": {
91
- "type": "array",
92
- "items": {
93
- "type": "string"
94
- }
95
- },
96
- "normalized": {
97
- "anyOf": [
98
- {
99
- "type": "object",
100
- "required": [
101
- "tool",
102
- "paths",
103
- "input",
104
- "grantKeyMaterial"
105
- ],
106
- "properties": {
107
- "tool": {
108
- "type": "string"
109
- },
110
- "paths": {
111
- "type": "array",
112
- "items": {
113
- "type": "object",
114
- "required": [
115
- "arg",
116
- "resolved",
117
- "intent"
118
- ],
119
- "properties": {
120
- "arg": {
121
- "type": "string"
122
- },
123
- "resolved": {
124
- "type": "object",
125
- "required": [
126
- "canonical",
127
- "relative",
128
- "root",
129
- "exists",
130
- "viaSymlink"
131
- ],
132
- "properties": {
133
- "canonical": {
134
- "type": "string",
135
- "minLength": 1
136
- },
137
- "relative": {
138
- "type": "string"
139
- },
140
- "root": {
141
- "type": "string",
142
- "minLength": 1
143
- },
144
- "exists": {
145
- "type": "boolean"
146
- },
147
- "identity": {
148
- "type": "object",
149
- "required": [
150
- "dev",
151
- "ino",
152
- "nlink"
153
- ],
154
- "properties": {
155
- "dev": {
156
- "type": "number"
157
- },
158
- "ino": {
159
- "type": "number"
160
- },
161
- "nlink": {
162
- "type": "number"
163
- }
164
- }
165
- },
166
- "viaSymlink": {
167
- "type": "boolean"
168
- }
169
- }
170
- },
171
- "intent": {
172
- "type": "string",
173
- "enum": [
174
- "read",
175
- "write",
176
- "create",
177
- "list",
178
- "exec-cwd"
179
- ]
180
- }
181
- }
182
- }
183
- },
184
- "command": {
185
- "type": "object",
186
- "required": [
187
- "file",
188
- "args",
189
- "cwd",
190
- "ruleId",
191
- "replay",
192
- "network",
193
- "timeoutMs"
194
- ],
195
- "properties": {
196
- "file": {
197
- "type": "string",
198
- "minLength": 1
199
- },
200
- "args": {
201
- "type": "array",
202
- "items": {
203
- "type": "string"
204
- }
205
- },
206
- "cwd": {
207
- "type": "string",
208
- "minLength": 1
209
- },
210
- "ruleId": {
211
- "type": "string"
212
- },
213
- "replay": {
214
- "type": "string",
215
- "enum": [
216
- "idempotent",
217
- "at-most-once"
218
- ]
219
- },
220
- "network": {
221
- "type": "boolean"
222
- },
223
- "timeoutMs": {
224
- "type": "integer",
225
- "minimum": 0
226
- }
227
- }
228
- },
229
- "input": {
230
- "$ref": "#/$defs/JsonValue"
231
- },
232
- "grantKeyMaterial": {
233
- "$ref": "#/$defs/JsonValue"
234
- }
235
- }
236
- },
237
- {
238
- "type": "null"
239
- }
240
- ]
241
- },
242
- "approvalId": {
243
- "type": "string",
244
- "pattern": "^apr_[0-9a-f]{32}$"
245
- },
246
- "grantId": {
247
- "type": "string"
248
- }
249
- },
250
- "$defs": {
251
- "JsonValue": {
252
- "anyOf": [
253
- {
254
- "type": "null"
255
- },
256
- {
257
- "type": "boolean"
258
- },
259
- {
260
- "type": "number"
261
- },
262
- {
263
- "type": "string"
264
- },
265
- {
266
- "type": "array",
267
- "items": {
268
- "$ref": "#/$defs/JsonValue"
269
- }
270
- },
271
- {
272
- "type": "object",
273
- "patternProperties": {
274
- "^.*$": {
275
- "$ref": "#/$defs/JsonValue"
276
- }
277
- }
278
- }
279
- ]
280
- }
281
- }
282
- }