@voxgig/sdkgen 4.46.0 → 4.48.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 (1965) hide show
  1. package/bin/voxgig-sdkgen +1 -1
  2. package/dist/action/check.js +61 -4
  3. package/dist/action/check.js.map +1 -1
  4. package/dist/action/doctor.d.ts +5 -0
  5. package/dist/action/doctor.js +51 -6
  6. package/dist/action/doctor.js.map +1 -1
  7. package/dist/action/package.d.ts +1 -1
  8. package/dist/action/package.js +6 -16
  9. package/dist/action/package.js.map +1 -1
  10. package/dist/action/remove.js +15 -4
  11. package/dist/action/remove.js.map +1 -1
  12. package/dist/action/resolve.d.ts +1 -0
  13. package/dist/action/resolve.js +10 -4
  14. package/dist/action/resolve.js.map +1 -1
  15. package/dist/action/target.js +55 -29
  16. package/dist/action/target.js.map +1 -1
  17. package/dist/admin/status.d.ts +7 -1
  18. package/dist/admin/status.js +34 -5
  19. package/dist/admin/status.js.map +1 -1
  20. package/dist/cmp/AgentGuide.js +53 -32
  21. package/dist/cmp/AgentGuide.js.map +1 -1
  22. package/dist/cmp/AgentGuideContent.d.ts +3 -3
  23. package/dist/cmp/AgentGuideContent.js +26 -19
  24. package/dist/cmp/AgentGuideContent.js.map +1 -1
  25. package/dist/cmp/AgentGuideFeature.js +14 -6
  26. package/dist/cmp/AgentGuideFeature.js.map +1 -1
  27. package/dist/cmp/AgentGuideTop.js +25 -16
  28. package/dist/cmp/AgentGuideTop.js.map +1 -1
  29. package/dist/cmp/Changelog.js +37 -7
  30. package/dist/cmp/Changelog.js.map +1 -1
  31. package/dist/cmp/Deploy.js +67 -21
  32. package/dist/cmp/Deploy.js.map +1 -1
  33. package/dist/cmp/Entity.js +1 -1
  34. package/dist/cmp/Entity.js.map +1 -1
  35. package/dist/cmp/ExternalTarget.js +5 -0
  36. package/dist/cmp/ExternalTarget.js.map +1 -1
  37. package/dist/cmp/Feature.js +2 -2
  38. package/dist/cmp/Feature.js.map +1 -1
  39. package/dist/cmp/FeatureDocs.d.ts +1 -0
  40. package/dist/cmp/FeatureDocs.js +2 -1
  41. package/dist/cmp/FeatureDocs.js.map +1 -1
  42. package/dist/cmp/License.d.ts +3 -1
  43. package/dist/cmp/License.js +25 -7
  44. package/dist/cmp/License.js.map +1 -1
  45. package/dist/cmp/Main.js +1 -1
  46. package/dist/cmp/Main.js.map +1 -1
  47. package/dist/cmp/PublishWorkflow.js +63 -53
  48. package/dist/cmp/PublishWorkflow.js.map +1 -1
  49. package/dist/cmp/Readme.js +0 -2
  50. package/dist/cmp/Readme.js.map +1 -1
  51. package/dist/cmp/ReadmeErrors.js +77 -77
  52. package/dist/cmp/ReadmeErrors.js.map +1 -1
  53. package/dist/cmp/ReadmeExplanation.js +5 -10
  54. package/dist/cmp/ReadmeExplanation.js.map +1 -1
  55. package/dist/cmp/ReadmeFeatures.js +13 -9
  56. package/dist/cmp/ReadmeFeatures.js.map +1 -1
  57. package/dist/cmp/ReadmeIntro.js +1 -1
  58. package/dist/cmp/ReadmeIntro.js.map +1 -1
  59. package/dist/cmp/ReadmeModel.js +15 -11
  60. package/dist/cmp/ReadmeModel.js.map +1 -1
  61. package/dist/cmp/ReadmeOptions.js +3 -11
  62. package/dist/cmp/ReadmeOptions.js.map +1 -1
  63. package/dist/cmp/ReadmeQuick.js +10 -2
  64. package/dist/cmp/ReadmeQuick.js.map +1 -1
  65. package/dist/cmp/ReadmeRefFeatures.js +34 -30
  66. package/dist/cmp/ReadmeRefFeatures.js.map +1 -1
  67. package/dist/cmp/ReadmeStation.js +3 -3
  68. package/dist/cmp/ReadmeStation.js.map +1 -1
  69. package/dist/cmp/ReadmeTop.js +135 -102
  70. package/dist/cmp/ReadmeTop.js.map +1 -1
  71. package/dist/cmp/Registered.js +1 -1
  72. package/dist/cmp/Registered.js.map +1 -1
  73. package/dist/cmp/Security.js +23 -3
  74. package/dist/cmp/Security.js.map +1 -1
  75. package/dist/cmp/Test.js +1 -1
  76. package/dist/cmp/Test.js.map +1 -1
  77. package/dist/helpers/alongside.d.ts +2 -3
  78. package/dist/helpers/alongside.js +16 -15
  79. package/dist/helpers/alongside.js.map +1 -1
  80. package/dist/helpers/applicability.d.ts +2 -1
  81. package/dist/helpers/applicability.js +14 -1
  82. package/dist/helpers/applicability.js.map +1 -1
  83. package/dist/helpers/canonSpec.d.ts +5 -1
  84. package/dist/helpers/canonSpec.js +44 -10
  85. package/dist/helpers/canonSpec.js.map +1 -1
  86. package/dist/helpers/clientOptions.d.ts +9 -0
  87. package/dist/helpers/clientOptions.js +44 -0
  88. package/dist/helpers/clientOptions.js.map +1 -0
  89. package/dist/helpers/component.js +9 -1
  90. package/dist/helpers/component.js.map +1 -1
  91. package/dist/helpers/consumer.d.ts +10 -0
  92. package/dist/helpers/consumer.js +42 -0
  93. package/dist/helpers/consumer.js.map +1 -0
  94. package/dist/helpers/definitionPlan.js +0 -1
  95. package/dist/helpers/definitionPlan.js.map +1 -1
  96. package/dist/helpers/doctext.js +10 -1
  97. package/dist/helpers/doctext.js.map +1 -1
  98. package/dist/helpers/facts.js +198 -4
  99. package/dist/helpers/facts.js.map +1 -1
  100. package/dist/helpers/flowGuard.d.ts +1 -1
  101. package/dist/helpers/flowGuard.js +21 -8
  102. package/dist/helpers/flowGuard.js.map +1 -1
  103. package/dist/helpers/generated.d.ts +1 -0
  104. package/dist/helpers/generated.js +1 -1
  105. package/dist/helpers/generated.js.map +1 -1
  106. package/dist/helpers/graphqlPoint.d.ts +2 -1
  107. package/dist/helpers/graphqlPoint.js +17 -0
  108. package/dist/helpers/graphqlPoint.js.map +1 -1
  109. package/dist/helpers/guardModel.d.ts +2 -0
  110. package/dist/helpers/guardModel.js +41 -0
  111. package/dist/helpers/guardModel.js.map +1 -0
  112. package/dist/helpers/manifest.d.ts +2 -1
  113. package/dist/helpers/manifest.js +16 -0
  114. package/dist/helpers/manifest.js.map +1 -1
  115. package/dist/helpers/mcpTools.d.ts +3 -2
  116. package/dist/helpers/mcpTools.js +9 -3
  117. package/dist/helpers/mcpTools.js.map +1 -1
  118. package/dist/helpers/naming.js +3 -2
  119. package/dist/helpers/naming.js.map +1 -1
  120. package/dist/helpers/opShape.d.ts +8 -2
  121. package/dist/helpers/opShape.js +48 -18
  122. package/dist/helpers/opShape.js.map +1 -1
  123. package/dist/helpers/optional.d.ts +0 -1
  124. package/dist/helpers/optional.js +0 -1
  125. package/dist/helpers/optional.js.map +1 -1
  126. package/dist/helpers/optspec.js +16 -4
  127. package/dist/helpers/optspec.js.map +1 -1
  128. package/dist/helpers/packageMeta.d.ts +7 -4
  129. package/dist/helpers/packageMeta.js +130 -47
  130. package/dist/helpers/packageMeta.js.map +1 -1
  131. package/dist/helpers/placement.d.ts +15 -0
  132. package/dist/helpers/placement.js +76 -0
  133. package/dist/helpers/placement.js.map +1 -0
  134. package/dist/helpers/readerdir.d.ts +4 -0
  135. package/dist/helpers/readerdir.js +26 -0
  136. package/dist/helpers/readerdir.js.map +1 -0
  137. package/dist/helpers/semver.d.ts +2 -1
  138. package/dist/helpers/semver.js +21 -0
  139. package/dist/helpers/semver.js.map +1 -1
  140. package/dist/helpers/serverVars.js +3 -2
  141. package/dist/helpers/serverVars.js.map +1 -1
  142. package/dist/helpers/shipped.d.ts +2 -1
  143. package/dist/helpers/shipped.js +12 -0
  144. package/dist/helpers/shipped.js.map +1 -1
  145. package/dist/helpers/sourcestring.d.ts +4 -0
  146. package/dist/helpers/sourcestring.js +49 -0
  147. package/dist/helpers/sourcestring.js.map +1 -0
  148. package/dist/helpers/stdrep.d.ts +1 -1
  149. package/dist/helpers/stdrep.js +8 -4
  150. package/dist/helpers/stdrep.js.map +1 -1
  151. package/dist/helpers/surface.d.ts +12 -0
  152. package/dist/helpers/surface.js +81 -0
  153. package/dist/helpers/surface.js.map +1 -0
  154. package/dist/helpers/targetguard.d.ts +13 -0
  155. package/dist/helpers/targetguard.js +65 -0
  156. package/dist/helpers/targetguard.js.map +1 -0
  157. package/dist/helpers/testPolicy.js +3 -3
  158. package/dist/helpers/testPolicy.js.map +1 -1
  159. package/dist/helpers/text.d.ts +3 -1
  160. package/dist/helpers/text.js +16 -0
  161. package/dist/helpers/text.js.map +1 -1
  162. package/dist/helpers/textguard.d.ts +31 -0
  163. package/dist/helpers/textguard.js +157 -0
  164. package/dist/helpers/textguard.js.map +1 -0
  165. package/dist/helpers/title.d.ts +4 -0
  166. package/dist/helpers/title.js +52 -0
  167. package/dist/helpers/title.js.map +1 -0
  168. package/dist/sdkgen.d.ts +15 -11
  169. package/dist/sdkgen.js +77 -71
  170. package/dist/sdkgen.js.map +1 -1
  171. package/dist/testkit.d.ts +6 -2
  172. package/dist/testkit.js +4 -1
  173. package/dist/testkit.js.map +1 -1
  174. package/dist/tsconfig.tsbuildinfo +1 -1
  175. package/dist/utility.js +12 -4
  176. package/dist/utility.js.map +1 -1
  177. package/model/fact.aontu +106 -0
  178. package/model/sdkgen.aontu +11 -1
  179. package/package.json +1 -1
  180. package/project/.sdk/model/feature/netsim.aontu +1 -1
  181. package/project/.sdk/model/feature/secrets.aontu +1 -0
  182. package/project/.sdk/model/feature/test.aontu +1 -1
  183. package/project/.sdk/model/feature/validate.aontu +1 -1
  184. package/project/.sdk/model/target/c.aontu +1 -0
  185. package/project/.sdk/model/target/clojure.aontu +1 -0
  186. package/project/.sdk/model/target/cpp.aontu +1 -0
  187. package/project/.sdk/model/target/csharp.aontu +1 -0
  188. package/project/.sdk/model/target/elixir.aontu +1 -0
  189. package/project/.sdk/model/target/go-cli.aontu +5 -5
  190. package/project/.sdk/model/target/go-mcp.aontu +6 -8
  191. package/project/.sdk/model/target/go.aontu +1 -1
  192. package/project/.sdk/model/target/java.aontu +1 -0
  193. package/project/.sdk/model/target/kotlin.aontu +1 -0
  194. package/project/.sdk/model/target/ocaml.aontu +1 -0
  195. package/project/.sdk/model/target/perl.aontu +1 -0
  196. package/project/.sdk/model/target/py-data.aontu +2 -0
  197. package/project/.sdk/model/target/rust.aontu +1 -0
  198. package/project/.sdk/model/target/scala.aontu +1 -0
  199. package/project/.sdk/model/target/zig.aontu +1 -0
  200. package/project/.sdk/src/cmp/c/Config_c.ts +8 -33
  201. package/project/.sdk/src/cmp/c/EntityTypes_c.ts +6 -5
  202. package/project/.sdk/src/cmp/c/Main_c.ts +4 -0
  203. package/project/.sdk/src/cmp/c/PrepareAuth_c.ts +9 -19
  204. package/project/.sdk/src/cmp/c/ReadmeEntity_c.ts +8 -10
  205. package/project/.sdk/src/cmp/c/ReadmeExamplesTest_c.ts +12 -4
  206. package/project/.sdk/src/cmp/c/ReadmeExplanation_c.ts +4 -2
  207. package/project/.sdk/src/cmp/c/ReadmeHowto_c.ts +18 -22
  208. package/project/.sdk/src/cmp/c/ReadmeInstall_c.ts +19 -15
  209. package/project/.sdk/src/cmp/c/ReadmeIntro_c.ts +5 -7
  210. package/project/.sdk/src/cmp/c/ReadmeModel_c.ts +32 -33
  211. package/project/.sdk/src/cmp/c/ReadmeQuick_c.ts +29 -12
  212. package/project/.sdk/src/cmp/c/ReadmeRef_c.ts +35 -26
  213. package/project/.sdk/src/cmp/c/ReadmeTopHowto_c.ts +5 -4
  214. package/project/.sdk/src/cmp/c/ReadmeTopQuick_c.ts +19 -6
  215. package/project/.sdk/src/cmp/c/TestClean_c.ts +298 -22
  216. package/project/.sdk/src/cmp/c/TestDirect_c.ts +1 -1
  217. package/project/.sdk/src/cmp/c/fragment/Entity.fragment.c +9 -9
  218. package/project/.sdk/src/cmp/c/fragment/EntityCreateOp.fragment.c +0 -1
  219. package/project/.sdk/src/cmp/c/fragment/EntityLoadOp.fragment.c +0 -1
  220. package/project/.sdk/src/cmp/c/fragment/EntityPatchOp.fragment.c +0 -1
  221. package/project/.sdk/src/cmp/c/fragment/EntityRemoveOp.fragment.c +0 -1
  222. package/project/.sdk/src/cmp/c/fragment/EntityUpdateOp.fragment.c +0 -1
  223. package/project/.sdk/src/cmp/c/fragment/Main.fragment.c +19 -7
  224. package/project/.sdk/src/cmp/clojure/Config_clojure.ts +4 -25
  225. package/project/.sdk/src/cmp/clojure/Main_clojure.ts +4 -0
  226. package/project/.sdk/src/cmp/clojure/PrepareAuth_clojure.ts +10 -21
  227. package/project/.sdk/src/cmp/clojure/ReadmeEntity_clojure.ts +8 -10
  228. package/project/.sdk/src/cmp/clojure/ReadmeExamplesTest_clojure.ts +13 -5
  229. package/project/.sdk/src/cmp/clojure/ReadmeExplanation_clojure.ts +13 -3
  230. package/project/.sdk/src/cmp/clojure/ReadmeHowto_clojure.ts +9 -8
  231. package/project/.sdk/src/cmp/clojure/ReadmeInstall_clojure.ts +13 -11
  232. package/project/.sdk/src/cmp/clojure/ReadmeIntro_clojure.ts +5 -7
  233. package/project/.sdk/src/cmp/clojure/ReadmeModel_clojure.ts +24 -33
  234. package/project/.sdk/src/cmp/clojure/ReadmeQuick_clojure.ts +21 -10
  235. package/project/.sdk/src/cmp/clojure/ReadmeRef_clojure.ts +23 -23
  236. package/project/.sdk/src/cmp/clojure/ReadmeTopHowto_clojure.ts +5 -4
  237. package/project/.sdk/src/cmp/clojure/ReadmeTopQuick_clojure.ts +11 -4
  238. package/project/.sdk/src/cmp/clojure/Schema_clojure.ts +2 -1
  239. package/project/.sdk/src/cmp/clojure/TestClean_clojure.ts +177 -12
  240. package/project/.sdk/src/cmp/clojure/fragment/Entity.fragment.clj +11 -12
  241. package/project/.sdk/src/cmp/clojure/fragment/EntityLoadOp.fragment.clj +1 -1
  242. package/project/.sdk/src/cmp/clojure/fragment/EntityRemoveOp.fragment.clj +2 -2
  243. package/project/.sdk/src/cmp/cpp/Config_cpp.ts +2 -17
  244. package/project/.sdk/src/cmp/cpp/EntityTypes_cpp.ts +4 -9
  245. package/project/.sdk/src/cmp/cpp/Main_cpp.ts +4 -0
  246. package/project/.sdk/src/cmp/cpp/PrepareAuth_cpp.ts +10 -21
  247. package/project/.sdk/src/cmp/cpp/ReadmeEntity_cpp.ts +10 -12
  248. package/project/.sdk/src/cmp/cpp/ReadmeExamplesTest_cpp.ts +12 -4
  249. package/project/.sdk/src/cmp/cpp/ReadmeExplanation_cpp.ts +5 -2
  250. package/project/.sdk/src/cmp/cpp/ReadmeHowto_cpp.ts +28 -11
  251. package/project/.sdk/src/cmp/cpp/ReadmeInstall_cpp.ts +16 -11
  252. package/project/.sdk/src/cmp/cpp/ReadmeIntro_cpp.ts +5 -7
  253. package/project/.sdk/src/cmp/cpp/ReadmeModel_cpp.ts +26 -35
  254. package/project/.sdk/src/cmp/cpp/ReadmeQuick_cpp.ts +23 -13
  255. package/project/.sdk/src/cmp/cpp/ReadmeRef_cpp.ts +30 -29
  256. package/project/.sdk/src/cmp/cpp/ReadmeTopHowto_cpp.ts +5 -4
  257. package/project/.sdk/src/cmp/cpp/ReadmeTopQuick_cpp.ts +13 -7
  258. package/project/.sdk/src/cmp/cpp/TestClean_cpp.ts +285 -14
  259. package/project/.sdk/src/cmp/cpp/TestEntity_cpp.ts +44 -24
  260. package/project/.sdk/src/cmp/cpp/fragment/EntityCreateOp.fragment.cpp +0 -1
  261. package/project/.sdk/src/cmp/cpp/fragment/EntityLoadOp.fragment.cpp +0 -1
  262. package/project/.sdk/src/cmp/cpp/fragment/EntityPatchOp.fragment.cpp +0 -1
  263. package/project/.sdk/src/cmp/cpp/fragment/EntityRemoveOp.fragment.cpp +0 -1
  264. package/project/.sdk/src/cmp/cpp/fragment/EntityUpdateOp.fragment.cpp +0 -1
  265. package/project/.sdk/src/cmp/csharp/Config_csharp.ts +5 -27
  266. package/project/.sdk/src/cmp/csharp/EntityTypes_csharp.ts +4 -5
  267. package/project/.sdk/src/cmp/csharp/Main_csharp.ts +5 -1
  268. package/project/.sdk/src/cmp/csharp/Package_csharp.ts +2 -1
  269. package/project/.sdk/src/cmp/csharp/PrepareAuth_csharp.ts +9 -20
  270. package/project/.sdk/src/cmp/csharp/ReadmeEntity_csharp.ts +10 -12
  271. package/project/.sdk/src/cmp/csharp/ReadmeExamplesTest_csharp.ts +18 -10
  272. package/project/.sdk/src/cmp/csharp/ReadmeExplanation_csharp.ts +1 -1
  273. package/project/.sdk/src/cmp/csharp/ReadmeHowto_csharp.ts +24 -12
  274. package/project/.sdk/src/cmp/csharp/ReadmeInstall_csharp.ts +9 -6
  275. package/project/.sdk/src/cmp/csharp/ReadmeIntro_csharp.ts +4 -6
  276. package/project/.sdk/src/cmp/csharp/ReadmeModel_csharp.ts +25 -35
  277. package/project/.sdk/src/cmp/csharp/ReadmeQuick_csharp.ts +22 -11
  278. package/project/.sdk/src/cmp/csharp/ReadmeRef_csharp.ts +25 -25
  279. package/project/.sdk/src/cmp/csharp/ReadmeTopHowto_csharp.ts +5 -4
  280. package/project/.sdk/src/cmp/csharp/ReadmeTopQuick_csharp.ts +11 -4
  281. package/project/.sdk/src/cmp/csharp/TestClean_csharp.ts +420 -27
  282. package/project/.sdk/src/cmp/csharp/TestDirect_csharp.ts +13 -13
  283. package/project/.sdk/src/cmp/csharp/TestEntity_csharp.ts +34 -35
  284. package/project/.sdk/src/cmp/csharp/fragment/EntityBase.fragment.cs +8 -7
  285. package/project/.sdk/src/cmp/csharp/fragment/Main.fragment.cs +4 -4
  286. package/project/.sdk/src/cmp/elixir/Config_elixir.ts +5 -26
  287. package/project/.sdk/src/cmp/elixir/EntityTypes_elixir.ts +8 -6
  288. package/project/.sdk/src/cmp/elixir/Main_elixir.ts +8 -2
  289. package/project/.sdk/src/cmp/elixir/Package_elixir.ts +3 -3
  290. package/project/.sdk/src/cmp/elixir/PrepareAuth_elixir.ts +10 -18
  291. package/project/.sdk/src/cmp/elixir/ReadmeEntity_elixir.ts +10 -12
  292. package/project/.sdk/src/cmp/elixir/ReadmeExamplesTest_elixir.ts +12 -5
  293. package/project/.sdk/src/cmp/elixir/ReadmeExplanation_elixir.ts +4 -2
  294. package/project/.sdk/src/cmp/elixir/ReadmeHowto_elixir.ts +13 -21
  295. package/project/.sdk/src/cmp/elixir/ReadmeInstall_elixir.ts +12 -8
  296. package/project/.sdk/src/cmp/elixir/ReadmeIntro_elixir.ts +5 -7
  297. package/project/.sdk/src/cmp/elixir/ReadmeModel_elixir.ts +24 -35
  298. package/project/.sdk/src/cmp/elixir/ReadmeQuick_elixir.ts +22 -11
  299. package/project/.sdk/src/cmp/elixir/ReadmeRef_elixir.ts +24 -24
  300. package/project/.sdk/src/cmp/elixir/ReadmeTopHowto_elixir.ts +5 -4
  301. package/project/.sdk/src/cmp/elixir/ReadmeTopQuick_elixir.ts +11 -4
  302. package/project/.sdk/src/cmp/elixir/Schema_elixir.ts +2 -1
  303. package/project/.sdk/src/cmp/elixir/TestClean_elixir.ts +231 -12
  304. package/project/.sdk/src/cmp/elixir/TestEntity_elixir.ts +3 -3
  305. package/project/.sdk/src/cmp/elixir/app_elixir.ts +14 -0
  306. package/project/.sdk/src/cmp/elixir/fragment/Main.fragment.ex +4 -4
  307. package/project/.sdk/src/cmp/go/Config_go.ts +16 -31
  308. package/project/.sdk/src/cmp/go/EntityTypes_go.ts +13 -7
  309. package/project/.sdk/src/cmp/go/Main_go.ts +10 -12
  310. package/project/.sdk/src/cmp/go/PrepareAuth_go.ts +12 -21
  311. package/project/.sdk/src/cmp/go/ReadmeEntity_go.ts +5 -5
  312. package/project/.sdk/src/cmp/go/ReadmeExamplesTest_go.ts +20 -9
  313. package/project/.sdk/src/cmp/go/ReadmeExplanation_go.ts +4 -2
  314. package/project/.sdk/src/cmp/go/ReadmeHowto_go.ts +28 -13
  315. package/project/.sdk/src/cmp/go/ReadmeInstall_go.ts +11 -6
  316. package/project/.sdk/src/cmp/go/ReadmeIntro_go.ts +5 -4
  317. package/project/.sdk/src/cmp/go/ReadmeModel_go.ts +32 -34
  318. package/project/.sdk/src/cmp/go/ReadmeQuick_go.ts +16 -12
  319. package/project/.sdk/src/cmp/go/ReadmeRef_go.ts +32 -22
  320. package/project/.sdk/src/cmp/go/ReadmeTopHowto_go.ts +5 -4
  321. package/project/.sdk/src/cmp/go/ReadmeTopQuick_go.ts +7 -4
  322. package/project/.sdk/src/cmp/go/Schema_go.ts +2 -1
  323. package/project/.sdk/src/cmp/go/TestClean_go.ts +484 -45
  324. package/project/.sdk/src/cmp/go/TestDirect_go.ts +15 -13
  325. package/project/.sdk/src/cmp/go/TestEntity_go.ts +35 -35
  326. package/project/.sdk/src/cmp/go/fragment/Entity.fragment.go +1 -1
  327. package/project/.sdk/src/cmp/go/fragment/Main.fragment.go +14 -6
  328. package/project/.sdk/src/cmp/go-cli/Main_go-cli.ts +238 -96
  329. package/project/.sdk/src/cmp/go-cli/fragment/main.fragment.go +13 -12
  330. package/project/.sdk/src/cmp/go-cli/fragment/words.fragment.go +3 -8
  331. package/project/.sdk/src/cmp/go-mcp/Main_go-mcp.ts +183 -66
  332. package/project/.sdk/src/cmp/go-mcp/fragment/main.fragment.go +7 -7
  333. package/project/.sdk/src/cmp/java/Config_java.ts +8 -32
  334. package/project/.sdk/src/cmp/java/EntityTypes_java.ts +4 -5
  335. package/project/.sdk/src/cmp/java/Main_java.ts +5 -1
  336. package/project/.sdk/src/cmp/java/Package_java.ts +4 -7
  337. package/project/.sdk/src/cmp/java/PrepareAuth_java.ts +13 -11
  338. package/project/.sdk/src/cmp/java/ReadmeEntity_java.ts +10 -12
  339. package/project/.sdk/src/cmp/java/ReadmeExamplesTest_java.ts +17 -9
  340. package/project/.sdk/src/cmp/java/ReadmeExplanation_java.ts +1 -1
  341. package/project/.sdk/src/cmp/java/ReadmeHowto_java.ts +24 -12
  342. package/project/.sdk/src/cmp/java/ReadmeInstall_java.ts +8 -10
  343. package/project/.sdk/src/cmp/java/ReadmeIntro_java.ts +5 -7
  344. package/project/.sdk/src/cmp/java/ReadmeModel_java.ts +24 -35
  345. package/project/.sdk/src/cmp/java/ReadmeQuick_java.ts +12 -10
  346. package/project/.sdk/src/cmp/java/ReadmeRef_java.ts +25 -25
  347. package/project/.sdk/src/cmp/java/ReadmeTopHowto_java.ts +5 -4
  348. package/project/.sdk/src/cmp/java/ReadmeTopQuick_java.ts +3 -3
  349. package/project/.sdk/src/cmp/java/Schema_java.ts +2 -1
  350. package/project/.sdk/src/cmp/java/TestClean_java.ts +386 -19
  351. package/project/.sdk/src/cmp/java/TestDirect_java.ts +12 -11
  352. package/project/.sdk/src/cmp/java/TestEntity_java.ts +27 -27
  353. package/project/.sdk/src/cmp/java/fragment/EntityBase.fragment.java +8 -7
  354. package/project/.sdk/src/cmp/java/utility_java.ts +7 -23
  355. package/project/.sdk/src/cmp/js/Config_js.ts +13 -35
  356. package/project/.sdk/src/cmp/js/EntityBase_js.ts +1 -1
  357. package/project/.sdk/src/cmp/js/EntityTypes_js.ts +4 -5
  358. package/project/.sdk/src/cmp/js/Entity_js.ts +1 -1
  359. package/project/.sdk/src/cmp/js/Main_js.ts +6 -9
  360. package/project/.sdk/src/cmp/js/Package_js.ts +3 -2
  361. package/project/.sdk/src/cmp/js/PrepareAuth_js.ts +9 -17
  362. package/project/.sdk/src/cmp/js/ReadmeEntity_js.ts +12 -14
  363. package/project/.sdk/src/cmp/js/ReadmeExplanation_js.ts +1 -1
  364. package/project/.sdk/src/cmp/js/ReadmeHowto_js.ts +41 -16
  365. package/project/.sdk/src/cmp/js/ReadmeInstall_js.ts +9 -6
  366. package/project/.sdk/src/cmp/js/ReadmeIntro_js.ts +6 -3
  367. package/project/.sdk/src/cmp/js/ReadmeModel_js.ts +23 -37
  368. package/project/.sdk/src/cmp/js/ReadmeQuick_js.ts +15 -5
  369. package/project/.sdk/src/cmp/js/ReadmeRef_js.ts +31 -35
  370. package/project/.sdk/src/cmp/js/ReadmeTopHowto_js.ts +5 -4
  371. package/project/.sdk/src/cmp/js/ReadmeTopQuick_js.ts +12 -4
  372. package/project/.sdk/src/cmp/js/Schema_js.ts +2 -1
  373. package/project/.sdk/src/cmp/js/TestClean_js.ts +229 -13
  374. package/project/.sdk/src/cmp/js/TestDirect_js.ts +16 -14
  375. package/project/.sdk/src/cmp/js/TestEntity_js.ts +30 -28
  376. package/project/.sdk/src/cmp/js/TestLive_js.ts +7 -6
  377. package/project/.sdk/src/cmp/js/fragment/Direct.test.fragment.js +1 -1
  378. package/project/.sdk/src/cmp/js/fragment/Entity.test.fragment.js +1 -1
  379. package/project/.sdk/src/cmp/js/fragment/EntityBase.fragment.js +5 -4
  380. package/project/.sdk/src/cmp/js/fragment/EntityCreateOp.fragment.js +1 -2
  381. package/project/.sdk/src/cmp/js/fragment/EntityLoadOp.fragment.js +1 -2
  382. package/project/.sdk/src/cmp/js/fragment/EntityPatchOp.fragment.js +1 -2
  383. package/project/.sdk/src/cmp/js/fragment/EntityRemoveOp.fragment.js +1 -2
  384. package/project/.sdk/src/cmp/js/fragment/EntityUpdateOp.fragment.js +1 -2
  385. package/project/.sdk/src/cmp/js/fragment/Main.fragment.js +4 -4
  386. package/project/.sdk/src/cmp/kotlin/Config_kotlin.ts +3 -25
  387. package/project/.sdk/src/cmp/kotlin/EntityTypes_kotlin.ts +4 -5
  388. package/project/.sdk/src/cmp/kotlin/Main_kotlin.ts +5 -1
  389. package/project/.sdk/src/cmp/kotlin/Package_kotlin.ts +5 -5
  390. package/project/.sdk/src/cmp/kotlin/PrepareAuth_kotlin.ts +13 -12
  391. package/project/.sdk/src/cmp/kotlin/ReadmeEntity_kotlin.ts +10 -12
  392. package/project/.sdk/src/cmp/kotlin/ReadmeExamplesTest_kotlin.ts +17 -9
  393. package/project/.sdk/src/cmp/kotlin/ReadmeExplanation_kotlin.ts +1 -1
  394. package/project/.sdk/src/cmp/kotlin/ReadmeHowto_kotlin.ts +24 -12
  395. package/project/.sdk/src/cmp/kotlin/ReadmeInstall_kotlin.ts +8 -10
  396. package/project/.sdk/src/cmp/kotlin/ReadmeIntro_kotlin.ts +5 -7
  397. package/project/.sdk/src/cmp/kotlin/ReadmeModel_kotlin.ts +24 -35
  398. package/project/.sdk/src/cmp/kotlin/ReadmeQuick_kotlin.ts +23 -24
  399. package/project/.sdk/src/cmp/kotlin/ReadmeRef_kotlin.ts +25 -25
  400. package/project/.sdk/src/cmp/kotlin/ReadmeTopHowto_kotlin.ts +5 -4
  401. package/project/.sdk/src/cmp/kotlin/ReadmeTopQuick_kotlin.ts +12 -10
  402. package/project/.sdk/src/cmp/kotlin/Schema_kotlin.ts +2 -1
  403. package/project/.sdk/src/cmp/kotlin/TestClean_kotlin.ts +306 -18
  404. package/project/.sdk/src/cmp/kotlin/TestDirect_kotlin.ts +19 -8
  405. package/project/.sdk/src/cmp/kotlin/TestEntity_kotlin.ts +34 -24
  406. package/project/.sdk/src/cmp/kotlin/fragment/EntityBase.fragment.kt +8 -7
  407. package/project/.sdk/src/cmp/kotlin/utility_kotlin.ts +7 -23
  408. package/project/.sdk/src/cmp/lua/Config_lua.ts +16 -26
  409. package/project/.sdk/src/cmp/lua/EntityTypes_lua.ts +4 -5
  410. package/project/.sdk/src/cmp/lua/Main_lua.ts +5 -4
  411. package/project/.sdk/src/cmp/lua/Package_lua.ts +12 -6
  412. package/project/.sdk/src/cmp/lua/PrepareAuth_lua.ts +13 -12
  413. package/project/.sdk/src/cmp/lua/ReadmeEntity_lua.ts +10 -12
  414. package/project/.sdk/src/cmp/lua/ReadmeExamplesTest_lua.ts +12 -5
  415. package/project/.sdk/src/cmp/lua/ReadmeExplanation_lua.ts +5 -3
  416. package/project/.sdk/src/cmp/lua/ReadmeHowto_lua.ts +25 -13
  417. package/project/.sdk/src/cmp/lua/ReadmeInstall_lua.ts +5 -4
  418. package/project/.sdk/src/cmp/lua/ReadmeIntro_lua.ts +6 -5
  419. package/project/.sdk/src/cmp/lua/ReadmeModel_lua.ts +32 -43
  420. package/project/.sdk/src/cmp/lua/ReadmeQuick_lua.ts +22 -11
  421. package/project/.sdk/src/cmp/lua/ReadmeRef_lua.ts +22 -26
  422. package/project/.sdk/src/cmp/lua/ReadmeTopHowto_lua.ts +5 -4
  423. package/project/.sdk/src/cmp/lua/ReadmeTopQuick_lua.ts +11 -4
  424. package/project/.sdk/src/cmp/lua/Schema_lua.ts +2 -1
  425. package/project/.sdk/src/cmp/lua/TestClean_lua.ts +297 -13
  426. package/project/.sdk/src/cmp/lua/TestDirect_lua.ts +13 -12
  427. package/project/.sdk/src/cmp/lua/TestEntity_lua.ts +30 -30
  428. package/project/.sdk/src/cmp/lua/fragment/Entity.fragment.lua +10 -10
  429. package/project/.sdk/src/cmp/lua/fragment/Main.fragment.lua +4 -4
  430. package/project/.sdk/src/cmp/ocaml/Config_ocaml.ts +4 -20
  431. package/project/.sdk/src/cmp/ocaml/Main_ocaml.ts +4 -0
  432. package/project/.sdk/src/cmp/ocaml/Package_ocaml.ts +8 -5
  433. package/project/.sdk/src/cmp/ocaml/PrepareAuth_ocaml.ts +11 -24
  434. package/project/.sdk/src/cmp/ocaml/ReadmeEntity_ocaml.ts +8 -10
  435. package/project/.sdk/src/cmp/ocaml/ReadmeExamplesTest_ocaml.ts +11 -4
  436. package/project/.sdk/src/cmp/ocaml/ReadmeExplanation_ocaml.ts +1 -1
  437. package/project/.sdk/src/cmp/ocaml/ReadmeHowto_ocaml.ts +12 -20
  438. package/project/.sdk/src/cmp/ocaml/ReadmeInstall_ocaml.ts +12 -11
  439. package/project/.sdk/src/cmp/ocaml/ReadmeIntro_ocaml.ts +8 -10
  440. package/project/.sdk/src/cmp/ocaml/ReadmeModel_ocaml.ts +26 -35
  441. package/project/.sdk/src/cmp/ocaml/ReadmeQuick_ocaml.ts +22 -11
  442. package/project/.sdk/src/cmp/ocaml/ReadmeRef_ocaml.ts +24 -23
  443. package/project/.sdk/src/cmp/ocaml/ReadmeTopHowto_ocaml.ts +5 -4
  444. package/project/.sdk/src/cmp/ocaml/ReadmeTopQuick_ocaml.ts +11 -4
  445. package/project/.sdk/src/cmp/ocaml/TestClean_ocaml.ts +179 -14
  446. package/project/.sdk/src/cmp/ocaml/TestEntity_ocaml.ts +1 -1
  447. package/project/.sdk/src/cmp/ocaml/utility_ocaml.ts +0 -9
  448. package/project/.sdk/src/cmp/perl/Config_perl.ts +2 -16
  449. package/project/.sdk/src/cmp/perl/Main_perl.ts +3 -1
  450. package/project/.sdk/src/cmp/perl/PrepareAuth_perl.ts +12 -10
  451. package/project/.sdk/src/cmp/perl/ReadmeEntity_perl.ts +8 -10
  452. package/project/.sdk/src/cmp/perl/ReadmeExamplesTest_perl.ts +16 -10
  453. package/project/.sdk/src/cmp/perl/ReadmeExplanation_perl.ts +1 -1
  454. package/project/.sdk/src/cmp/perl/ReadmeHowto_perl.ts +25 -13
  455. package/project/.sdk/src/cmp/perl/ReadmeInstall_perl.ts +10 -9
  456. package/project/.sdk/src/cmp/perl/ReadmeIntro_perl.ts +4 -6
  457. package/project/.sdk/src/cmp/perl/ReadmeModel_perl.ts +24 -35
  458. package/project/.sdk/src/cmp/perl/ReadmeQuick_perl.ts +22 -11
  459. package/project/.sdk/src/cmp/perl/ReadmeRef_perl.ts +23 -23
  460. package/project/.sdk/src/cmp/perl/ReadmeTopHowto_perl.ts +5 -4
  461. package/project/.sdk/src/cmp/perl/ReadmeTopQuick_perl.ts +11 -4
  462. package/project/.sdk/src/cmp/perl/TestClean_perl.ts +407 -26
  463. package/project/.sdk/src/cmp/perl/TestDirect_perl.ts +13 -12
  464. package/project/.sdk/src/cmp/perl/TestEntity_perl.ts +29 -30
  465. package/project/.sdk/src/cmp/perl/fragment/Entity.fragment.pm +20 -11
  466. package/project/.sdk/src/cmp/perl/fragment/EntityLoadOp.fragment.pm +5 -5
  467. package/project/.sdk/src/cmp/perl/fragment/EntityRemoveOp.fragment.pm +3 -3
  468. package/project/.sdk/src/cmp/perl/fragment/Main.fragment.pm +10 -5
  469. package/project/.sdk/src/cmp/php/Config_php.ts +18 -33
  470. package/project/.sdk/src/cmp/php/EntityTypes_php.ts +4 -5
  471. package/project/.sdk/src/cmp/php/Main_php.ts +5 -9
  472. package/project/.sdk/src/cmp/php/PrepareAuth_php.ts +7 -17
  473. package/project/.sdk/src/cmp/php/ReadmeEntity_php.ts +10 -12
  474. package/project/.sdk/src/cmp/php/ReadmeExamplesTest_php.ts +15 -9
  475. package/project/.sdk/src/cmp/php/ReadmeExplanation_php.ts +5 -3
  476. package/project/.sdk/src/cmp/php/ReadmeHowto_php.ts +24 -12
  477. package/project/.sdk/src/cmp/php/ReadmeInstall_php.ts +8 -5
  478. package/project/.sdk/src/cmp/php/ReadmeIntro_php.ts +1 -1
  479. package/project/.sdk/src/cmp/php/ReadmeModel_php.ts +31 -37
  480. package/project/.sdk/src/cmp/php/ReadmeQuick_php.ts +22 -11
  481. package/project/.sdk/src/cmp/php/ReadmeRef_php.ts +32 -29
  482. package/project/.sdk/src/cmp/php/ReadmeTopHowto_php.ts +5 -4
  483. package/project/.sdk/src/cmp/php/ReadmeTopQuick_php.ts +11 -4
  484. package/project/.sdk/src/cmp/php/Schema_php.ts +2 -1
  485. package/project/.sdk/src/cmp/php/TestClean_php.ts +416 -39
  486. package/project/.sdk/src/cmp/php/TestDirect_php.ts +13 -12
  487. package/project/.sdk/src/cmp/php/TestEntity_php.ts +56 -31
  488. package/project/.sdk/src/cmp/php/fragment/Entity.fragment.php +8 -8
  489. package/project/.sdk/src/cmp/php/fragment/EntityCreateOp.fragment.php +1 -1
  490. package/project/.sdk/src/cmp/php/fragment/EntityListOp.fragment.php +1 -1
  491. package/project/.sdk/src/cmp/php/fragment/EntityLoadOp.fragment.php +3 -3
  492. package/project/.sdk/src/cmp/php/fragment/EntityPatchOp.fragment.php +1 -1
  493. package/project/.sdk/src/cmp/php/fragment/EntityRemoveOp.fragment.php +3 -3
  494. package/project/.sdk/src/cmp/php/fragment/EntityUpdateOp.fragment.php +1 -1
  495. package/project/.sdk/src/cmp/php/fragment/Main.fragment.php +4 -4
  496. package/project/.sdk/src/cmp/py/Config_py.ts +18 -33
  497. package/project/.sdk/src/cmp/py/EntityTypes_py.ts +4 -5
  498. package/project/.sdk/src/cmp/py/Main_py.ts +3 -9
  499. package/project/.sdk/src/cmp/py/PrepareAuth_py.ts +8 -19
  500. package/project/.sdk/src/cmp/py/ReadmeEntity_py.ts +10 -12
  501. package/project/.sdk/src/cmp/py/ReadmeExamplesTest_py.ts +21 -14
  502. package/project/.sdk/src/cmp/py/ReadmeExplanation_py.ts +25 -15
  503. package/project/.sdk/src/cmp/py/ReadmeHowto_py.ts +25 -13
  504. package/project/.sdk/src/cmp/py/ReadmeInstall_py.ts +5 -4
  505. package/project/.sdk/src/cmp/py/ReadmeIntro_py.ts +4 -6
  506. package/project/.sdk/src/cmp/py/ReadmeModel_py.ts +25 -36
  507. package/project/.sdk/src/cmp/py/ReadmeQuick_py.ts +11 -9
  508. package/project/.sdk/src/cmp/py/ReadmeRef_py.ts +28 -28
  509. package/project/.sdk/src/cmp/py/ReadmeTopHowto_py.ts +5 -4
  510. package/project/.sdk/src/cmp/py/ReadmeTopQuick_py.ts +3 -3
  511. package/project/.sdk/src/cmp/py/Schema_py.ts +2 -1
  512. package/project/.sdk/src/cmp/py/TestClean_py.ts +342 -28
  513. package/project/.sdk/src/cmp/py/TestDirect_py.ts +12 -11
  514. package/project/.sdk/src/cmp/py/TestEntity_py.ts +31 -31
  515. package/project/.sdk/src/cmp/py/fragment/Entity.fragment.py +10 -9
  516. package/project/.sdk/src/cmp/py/fragment/Main.fragment.py +4 -6
  517. package/project/.sdk/src/cmp/py-data/Main_py-data.ts +280 -145
  518. package/project/.sdk/src/cmp/rb/Config_rb.ts +16 -26
  519. package/project/.sdk/src/cmp/rb/Main_rb.ts +3 -9
  520. package/project/.sdk/src/cmp/rb/PrepareAuth_rb.ts +9 -18
  521. package/project/.sdk/src/cmp/rb/ReadmeEntity_rb.ts +10 -12
  522. package/project/.sdk/src/cmp/rb/ReadmeExamplesTest_rb.ts +15 -10
  523. package/project/.sdk/src/cmp/rb/ReadmeExplanation_rb.ts +5 -3
  524. package/project/.sdk/src/cmp/rb/ReadmeHowto_rb.ts +24 -12
  525. package/project/.sdk/src/cmp/rb/ReadmeInstall_rb.ts +8 -5
  526. package/project/.sdk/src/cmp/rb/ReadmeIntro_rb.ts +1 -1
  527. package/project/.sdk/src/cmp/rb/ReadmeModel_rb.ts +28 -37
  528. package/project/.sdk/src/cmp/rb/ReadmeQuick_rb.ts +22 -11
  529. package/project/.sdk/src/cmp/rb/ReadmeRef_rb.ts +27 -27
  530. package/project/.sdk/src/cmp/rb/ReadmeTopHowto_rb.ts +5 -4
  531. package/project/.sdk/src/cmp/rb/ReadmeTopQuick_rb.ts +11 -4
  532. package/project/.sdk/src/cmp/rb/Schema_rb.ts +2 -1
  533. package/project/.sdk/src/cmp/rb/TestClean_rb.ts +270 -23
  534. package/project/.sdk/src/cmp/rb/TestDirect_rb.ts +13 -12
  535. package/project/.sdk/src/cmp/rb/TestEntity_rb.ts +30 -30
  536. package/project/.sdk/src/cmp/rb/fragment/Entity.fragment.rb +9 -9
  537. package/project/.sdk/src/cmp/rb/fragment/EntityLoadOp.fragment.rb +1 -1
  538. package/project/.sdk/src/cmp/rb/fragment/EntityRemoveOp.fragment.rb +1 -1
  539. package/project/.sdk/src/cmp/rb/fragment/Main.fragment.rb +4 -4
  540. package/project/.sdk/src/cmp/rust/Config_rust.ts +4 -34
  541. package/project/.sdk/src/cmp/rust/EntityTypes_rust.ts +3 -4
  542. package/project/.sdk/src/cmp/rust/Main_rust.ts +6 -2
  543. package/project/.sdk/src/cmp/rust/Package_rust.ts +6 -3
  544. package/project/.sdk/src/cmp/rust/PrepareAuth_rust.ts +13 -12
  545. package/project/.sdk/src/cmp/rust/ReadmeEntity_rust.ts +10 -12
  546. package/project/.sdk/src/cmp/rust/ReadmeExamplesTest_rust.ts +13 -6
  547. package/project/.sdk/src/cmp/rust/ReadmeExplanation_rust.ts +4 -2
  548. package/project/.sdk/src/cmp/rust/ReadmeHowto_rust.ts +26 -13
  549. package/project/.sdk/src/cmp/rust/ReadmeInstall_rust.ts +11 -10
  550. package/project/.sdk/src/cmp/rust/ReadmeIntro_rust.ts +5 -7
  551. package/project/.sdk/src/cmp/rust/ReadmeModel_rust.ts +35 -37
  552. package/project/.sdk/src/cmp/rust/ReadmeQuick_rust.ts +22 -10
  553. package/project/.sdk/src/cmp/rust/ReadmeRef_rust.ts +41 -32
  554. package/project/.sdk/src/cmp/rust/ReadmeTopHowto_rust.ts +5 -4
  555. package/project/.sdk/src/cmp/rust/ReadmeTopQuick_rust.ts +12 -4
  556. package/project/.sdk/src/cmp/rust/TestClean_rust.ts +391 -18
  557. package/project/.sdk/src/cmp/rust/TestDirect_rust.ts +17 -14
  558. package/project/.sdk/src/cmp/rust/TestEntity_rust.ts +35 -34
  559. package/project/.sdk/src/cmp/rust/fragment/Entity.fragment.rs +2 -2
  560. package/project/.sdk/src/cmp/rust/fragment/EntityCreateOp.fragment.rs +0 -1
  561. package/project/.sdk/src/cmp/rust/fragment/EntityListOp.fragment.rs +1 -1
  562. package/project/.sdk/src/cmp/rust/fragment/EntityLoadOp.fragment.rs +0 -1
  563. package/project/.sdk/src/cmp/rust/fragment/EntityPatchOp.fragment.rs +0 -1
  564. package/project/.sdk/src/cmp/rust/fragment/EntityUpdateOp.fragment.rs +0 -1
  565. package/project/.sdk/src/cmp/rust/fragment/Main.fragment.rs +5 -4
  566. package/project/.sdk/src/cmp/rust/utility_rust.ts +0 -8
  567. package/project/.sdk/src/cmp/scala/Config_scala.ts +5 -26
  568. package/project/.sdk/src/cmp/scala/EntityTypes_scala.ts +4 -5
  569. package/project/.sdk/src/cmp/scala/Main_scala.ts +5 -1
  570. package/project/.sdk/src/cmp/scala/PrepareAuth_scala.ts +13 -13
  571. package/project/.sdk/src/cmp/scala/ReadmeEntity_scala.ts +10 -12
  572. package/project/.sdk/src/cmp/scala/ReadmeExamplesTest_scala.ts +11 -4
  573. package/project/.sdk/src/cmp/scala/ReadmeExplanation_scala.ts +3 -3
  574. package/project/.sdk/src/cmp/scala/ReadmeHowto_scala.ts +12 -20
  575. package/project/.sdk/src/cmp/scala/ReadmeInstall_scala.ts +11 -15
  576. package/project/.sdk/src/cmp/scala/ReadmeIntro_scala.ts +5 -7
  577. package/project/.sdk/src/cmp/scala/ReadmeModel_scala.ts +24 -35
  578. package/project/.sdk/src/cmp/scala/ReadmeQuick_scala.ts +24 -24
  579. package/project/.sdk/src/cmp/scala/ReadmeRef_scala.ts +25 -25
  580. package/project/.sdk/src/cmp/scala/ReadmeTopHowto_scala.ts +5 -4
  581. package/project/.sdk/src/cmp/scala/ReadmeTopQuick_scala.ts +13 -10
  582. package/project/.sdk/src/cmp/scala/Schema_scala.ts +2 -1
  583. package/project/.sdk/src/cmp/scala/TestClean_scala.ts +324 -20
  584. package/project/.sdk/src/cmp/scala/TestEntity_scala.ts +16 -16
  585. package/project/.sdk/src/cmp/scala/fragment/EntityBase.fragment.scala +8 -7
  586. package/project/.sdk/src/cmp/scala/utility_scala.ts +4 -19
  587. package/project/.sdk/src/cmp/swift/Config_swift.ts +3 -14
  588. package/project/.sdk/src/cmp/swift/EntityTypes_swift.ts +3 -4
  589. package/project/.sdk/src/cmp/swift/Main_swift.ts +4 -0
  590. package/project/.sdk/src/cmp/swift/PrepareAuth_swift.ts +14 -14
  591. package/project/.sdk/src/cmp/swift/ReadmeEntity_swift.ts +10 -12
  592. package/project/.sdk/src/cmp/swift/ReadmeExamplesTest_swift.ts +14 -7
  593. package/project/.sdk/src/cmp/swift/ReadmeExplanation_swift.ts +3 -3
  594. package/project/.sdk/src/cmp/swift/ReadmeHowto_swift.ts +12 -20
  595. package/project/.sdk/src/cmp/swift/ReadmeInstall_swift.ts +13 -13
  596. package/project/.sdk/src/cmp/swift/ReadmeIntro_swift.ts +4 -6
  597. package/project/.sdk/src/cmp/swift/ReadmeModel_swift.ts +24 -35
  598. package/project/.sdk/src/cmp/swift/ReadmeQuick_swift.ts +25 -26
  599. package/project/.sdk/src/cmp/swift/ReadmeRef_swift.ts +25 -25
  600. package/project/.sdk/src/cmp/swift/ReadmeTopHowto_swift.ts +5 -4
  601. package/project/.sdk/src/cmp/swift/ReadmeTopQuick_swift.ts +13 -11
  602. package/project/.sdk/src/cmp/swift/TestClean_swift.ts +352 -23
  603. package/project/.sdk/src/cmp/swift/fragment/EntityBase.fragment.swift +8 -7
  604. package/project/.sdk/src/cmp/swift/fragment/Main.fragment.swift +5 -5
  605. package/project/.sdk/src/cmp/ts/Config_ts.ts +13 -35
  606. package/project/.sdk/src/cmp/ts/EntityBase_ts.ts +1 -1
  607. package/project/.sdk/src/cmp/ts/EntityTypes_ts.ts +4 -5
  608. package/project/.sdk/src/cmp/ts/Entity_ts.ts +1 -1
  609. package/project/.sdk/src/cmp/ts/Main_ts.ts +6 -9
  610. package/project/.sdk/src/cmp/ts/Package_ts.ts +3 -2
  611. package/project/.sdk/src/cmp/ts/PrepareAuth_ts.ts +11 -10
  612. package/project/.sdk/src/cmp/ts/ReadmeEntity_ts.ts +9 -11
  613. package/project/.sdk/src/cmp/ts/ReadmeExampleTest_ts.ts +33 -9
  614. package/project/.sdk/src/cmp/ts/ReadmeExamplesTest_ts.ts +35 -7
  615. package/project/.sdk/src/cmp/ts/ReadmeExplanation_ts.ts +1 -1
  616. package/project/.sdk/src/cmp/ts/ReadmeHowto_ts.ts +38 -18
  617. package/project/.sdk/src/cmp/ts/ReadmeInstall_ts.ts +9 -5
  618. package/project/.sdk/src/cmp/ts/ReadmeIntro_ts.ts +6 -3
  619. package/project/.sdk/src/cmp/ts/ReadmeModel_ts.ts +32 -53
  620. package/project/.sdk/src/cmp/ts/ReadmeQuick_ts.ts +11 -9
  621. package/project/.sdk/src/cmp/ts/ReadmeRef_ts.ts +22 -26
  622. package/project/.sdk/src/cmp/ts/ReadmeTopHowto_ts.ts +5 -4
  623. package/project/.sdk/src/cmp/ts/ReadmeTopQuick_ts.ts +6 -6
  624. package/project/.sdk/src/cmp/ts/Schema_ts.ts +2 -1
  625. package/project/.sdk/src/cmp/ts/TestClean_ts.ts +229 -13
  626. package/project/.sdk/src/cmp/ts/TestDefinition_ts.ts +3 -1
  627. package/project/.sdk/src/cmp/ts/TestDirect_ts.ts +17 -17
  628. package/project/.sdk/src/cmp/ts/TestEntity_ts.ts +30 -30
  629. package/project/.sdk/src/cmp/ts/TestLive_ts.ts +7 -6
  630. package/project/.sdk/src/cmp/ts/fragment/Direct.test.fragment.ts +1 -1
  631. package/project/.sdk/src/cmp/ts/fragment/Entity.test.fragment.ts +1 -1
  632. package/project/.sdk/src/cmp/ts/fragment/EntityBase.fragment.ts +3 -3
  633. package/project/.sdk/src/cmp/ts/fragment/Main.fragment.ts +2 -2
  634. package/project/.sdk/src/cmp/zig/Config_zig.ts +5 -21
  635. package/project/.sdk/src/cmp/zig/Main_zig.ts +4 -0
  636. package/project/.sdk/src/cmp/zig/Package_zig.ts +3 -2
  637. package/project/.sdk/src/cmp/zig/PrepareAuth_zig.ts +10 -21
  638. package/project/.sdk/src/cmp/zig/ReadmeEntity_zig.ts +9 -11
  639. package/project/.sdk/src/cmp/zig/ReadmeExamplesTest_zig.ts +8 -7
  640. package/project/.sdk/src/cmp/zig/ReadmeExplanation_zig.ts +1 -1
  641. package/project/.sdk/src/cmp/zig/ReadmeHowto_zig.ts +17 -22
  642. package/project/.sdk/src/cmp/zig/ReadmeInstall_zig.ts +12 -9
  643. package/project/.sdk/src/cmp/zig/ReadmeIntro_zig.ts +5 -7
  644. package/project/.sdk/src/cmp/zig/ReadmeModel_zig.ts +40 -37
  645. package/project/.sdk/src/cmp/zig/ReadmeQuick_zig.ts +25 -11
  646. package/project/.sdk/src/cmp/zig/ReadmeRef_zig.ts +46 -30
  647. package/project/.sdk/src/cmp/zig/ReadmeTopHowto_zig.ts +5 -4
  648. package/project/.sdk/src/cmp/zig/ReadmeTopQuick_zig.ts +15 -5
  649. package/project/.sdk/src/cmp/zig/TestClean_zig.ts +259 -26
  650. package/project/.sdk/src/cmp/zig/fragment/Build.fragment.zig +1 -0
  651. package/project/.sdk/src/cmp/zig/fragment/Entity.fragment.zig +16 -17
  652. package/project/.sdk/src/cmp/zig/fragment/Main.fragment.zig +23 -12
  653. package/project/.sdk/src/cmp/zig/fragment/Root.fragment.zig +2 -1
  654. package/project/.sdk/src/cmp/zig/utility_zig.ts +0 -13
  655. package/project/.sdk/tm/c/Makefile +2 -1
  656. package/project/.sdk/tm/c/core/response.c +27 -4
  657. package/project/.sdk/tm/c/core/sdk.h +14 -7
  658. package/project/.sdk/tm/c/feature/secrets/plugin/capability.c +2 -2
  659. package/project/.sdk/tm/c/feature/secrets/plugin/capability.h +2 -2
  660. package/project/.sdk/tm/c/feature/secrets/plugin/catalog.c +2 -2
  661. package/project/.sdk/tm/c/feature/secrets/plugin/catalog.h +2 -2
  662. package/project/.sdk/tm/c/feature/secrets/plugin/config.c +2 -2
  663. package/project/.sdk/tm/c/feature/secrets/plugin/config.h +2 -2
  664. package/project/.sdk/tm/c/feature/secrets/plugin/depend.c +2 -2
  665. package/project/.sdk/tm/c/feature/secrets/plugin/depend.h +2 -2
  666. package/project/.sdk/tm/c/feature/secrets/plugin/env.c +2 -2
  667. package/project/.sdk/tm/c/feature/secrets/plugin/env.h +2 -2
  668. package/project/.sdk/tm/c/feature/secrets/plugin/export.c +2 -2
  669. package/project/.sdk/tm/c/feature/secrets/plugin/export.h +2 -2
  670. package/project/.sdk/tm/c/feature/secrets/plugin/graph.c +2 -2
  671. package/project/.sdk/tm/c/feature/secrets/plugin/graph.h +2 -2
  672. package/project/.sdk/tm/c/feature/secrets/plugin/host.c +2 -2
  673. package/project/.sdk/tm/c/feature/secrets/plugin/host.h +2 -2
  674. package/project/.sdk/tm/c/feature/secrets/plugin/order.c +2 -2
  675. package/project/.sdk/tm/c/feature/secrets/plugin/order.h +2 -2
  676. package/project/.sdk/tm/c/feature/secrets/plugin/point.c +2 -2
  677. package/project/.sdk/tm/c/feature/secrets/plugin/point.h +2 -2
  678. package/project/.sdk/tm/c/feature/secrets/plugin/ref.c +2 -2
  679. package/project/.sdk/tm/c/feature/secrets/plugin/ref.h +2 -2
  680. package/project/.sdk/tm/c/feature/secrets/plugin/resolve.c +2 -2
  681. package/project/.sdk/tm/c/feature/secrets/plugin/resolve.h +2 -2
  682. package/project/.sdk/tm/c/feature/secrets/plugin/types.c +2 -2
  683. package/project/.sdk/tm/c/feature/secrets/plugin/types.h +2 -2
  684. package/project/.sdk/tm/c/feature/secrets/plugin/value.c +2 -2
  685. package/project/.sdk/tm/c/feature/secrets/plugin/value.h +2 -2
  686. package/project/.sdk/tm/c/feature/secrets/plugin/version.c +2 -2
  687. package/project/.sdk/tm/c/feature/secrets/plugin/version.h +2 -2
  688. package/project/.sdk/tm/c/feature/secrets/plugins/aws.c +2 -2
  689. package/project/.sdk/tm/c/feature/secrets/plugins/azuresecrets.c +2 -2
  690. package/project/.sdk/tm/c/feature/secrets/plugins/boru.c +2 -2
  691. package/project/.sdk/tm/c/feature/secrets/plugins/clock.c +2 -2
  692. package/project/.sdk/tm/c/feature/secrets/plugins/doppler.c +2 -2
  693. package/project/.sdk/tm/c/feature/secrets/plugins/encode.c +2 -2
  694. package/project/.sdk/tm/c/feature/secrets/plugins/gcpsecrets.c +2 -2
  695. package/project/.sdk/tm/c/feature/secrets/plugins/hashicorp.c +2 -2
  696. package/project/.sdk/tm/c/feature/secrets/plugins/httpjson.c +2 -2
  697. package/project/.sdk/tm/c/feature/secrets/plugins/infisical.c +2 -2
  698. package/project/.sdk/tm/c/feature/secrets/plugins/minivault.c +2 -2
  699. package/project/.sdk/tm/c/feature/secrets/plugins/onepassword.c +2 -2
  700. package/project/.sdk/tm/c/feature/secrets/plugins/proc.c +2 -2
  701. package/project/.sdk/tm/c/feature/secrets/plugins/secretspec.c +2 -2
  702. package/project/.sdk/tm/c/feature/secrets/plugins/sekretoplugins.h +2 -2
  703. package/project/.sdk/tm/c/feature/secrets/plugins/sha256.c +2 -2
  704. package/project/.sdk/tm/c/feature/secrets/plugins/sigv4.c +2 -2
  705. package/project/.sdk/tm/c/feature/secrets/plugins/support.h +2 -2
  706. package/project/.sdk/tm/c/feature/secrets/plugins/tls.c +2 -2
  707. package/project/.sdk/tm/c/feature/secrets/sekreto/internal.h +2 -2
  708. package/project/.sdk/tm/c/feature/secrets/sekreto/json.c +2 -2
  709. package/project/.sdk/tm/c/feature/secrets/sekreto/providers.c +2 -2
  710. package/project/.sdk/tm/c/feature/secrets/sekreto/sekreto.c +2 -2
  711. package/project/.sdk/tm/c/feature/secrets/sekreto/sekreto.h +2 -2
  712. package/project/.sdk/tm/c/feature/secrets/sekreto/util.c +2 -2
  713. package/project/.sdk/tm/c/feature/secrets.c +4 -2
  714. package/project/.sdk/tm/c/feature/validate.c +5 -5
  715. package/project/.sdk/tm/c/tests/feature/secrets/secrets_test.c +200 -1
  716. package/project/.sdk/tm/c/tests/pipeline_test.c +1 -1
  717. package/project/.sdk/tm/c/tests/primary_corpus_test.c +17 -4
  718. package/project/.sdk/tm/c/tests/primary_utility_test.c +7 -7
  719. package/project/.sdk/tm/c/tests/sdk_pipeline_test.c +2 -2
  720. package/project/.sdk/tm/c/tests/server_variable_test.c +10 -48
  721. package/project/.sdk/tm/c/tests/struct_corpus_test.c +68 -2
  722. package/project/.sdk/tm/c/tests/transport_test.c +161 -3
  723. package/project/.sdk/tm/c/tests/vendor/omni/json.c +65 -26
  724. package/project/.sdk/tm/c/tests/vendor/omni/omni.h +2 -2
  725. package/project/.sdk/tm/c/tests/vendor/omni/runner.c +2 -2
  726. package/project/.sdk/tm/c/tests/vendor/omni/util.c +2 -2
  727. package/project/.sdk/tm/c/utility/clean.c +94 -12
  728. package/project/.sdk/tm/c/utility/fetcher.c +22 -6
  729. package/project/.sdk/tm/c/utility/make_error.c +4 -4
  730. package/project/.sdk/tm/c/utility/make_options.c +22 -16
  731. package/project/.sdk/tm/c/utility/struct/inject.c +23 -2
  732. package/project/.sdk/tm/c/utility/struct/re_util.c +3 -0
  733. package/project/.sdk/tm/c/utility/struct/regex.c +43 -22
  734. package/project/.sdk/tm/c/utility/struct/regex.h +4 -1
  735. package/project/.sdk/tm/c/utility/struct/transform.c +982 -296
  736. package/project/.sdk/tm/c/utility/struct/utility.c +712 -136
  737. package/project/.sdk/tm/c/utility/struct/value.c +3 -0
  738. package/project/.sdk/tm/c/utility/struct/value.h +3 -0
  739. package/project/.sdk/tm/c/utility/struct/value_io.c +3 -0
  740. package/project/.sdk/tm/c/utility/struct/value_io.h +3 -0
  741. package/project/.sdk/tm/c/utility/struct/voxgig_struct.h +36 -1
  742. package/project/.sdk/tm/clojure/feature/secrets/sdk/feature/secrets.clj +3 -1
  743. package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/capability.clj +2 -2
  744. package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/catalog.clj +2 -2
  745. package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/config.clj +2 -2
  746. package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/depend.clj +2 -2
  747. package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/env.clj +2 -2
  748. package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/export.clj +2 -2
  749. package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/graph.clj +2 -2
  750. package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/host.clj +2 -2
  751. package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/json.clj +2 -2
  752. package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/order.clj +2 -2
  753. package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/point.clj +2 -2
  754. package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/ref.clj +2 -2
  755. package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/resolve.clj +2 -2
  756. package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/types.clj +2 -2
  757. package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/version.clj +2 -2
  758. package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin.clj +2 -2
  759. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/addr.clj +2 -2
  760. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/chain.clj +2 -2
  761. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/core.clj +2 -2
  762. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/json.clj +2 -2
  763. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/aws.clj +2 -2
  764. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/azuresecrets.clj +2 -2
  765. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/boru.clj +2 -2
  766. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/doppler.clj +2 -2
  767. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/gcpsecrets.clj +2 -2
  768. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/hashicorp.clj +2 -2
  769. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/httpjson.clj +2 -2
  770. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/infisical.clj +2 -2
  771. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/minivault.clj +2 -2
  772. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/onepassword.clj +2 -2
  773. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/proc.clj +2 -2
  774. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/secretspec.clj +2 -2
  775. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/sigv4.clj +2 -2
  776. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/provider.clj +2 -2
  777. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/providers.clj +2 -2
  778. package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto.clj +2 -2
  779. package/project/.sdk/tm/clojure/src/sdk/client.clj +4 -4
  780. package/project/.sdk/tm/clojure/src/sdk/core.clj +175 -32
  781. package/project/.sdk/tm/clojure/src/sdk/features.clj +6 -7
  782. package/project/.sdk/tm/clojure/src/voxgig/struct.clj +866 -186
  783. package/project/.sdk/tm/clojure/test/sdk/test/feature/secrets.clj +85 -2
  784. package/project/.sdk/tm/clojure/test/sdk/test/feature.clj +1 -1
  785. package/project/.sdk/tm/clojure/test/sdk/test/omni_smoke.clj +1 -1
  786. package/project/.sdk/tm/clojure/test/sdk/test/pipeline.clj +98 -3
  787. package/project/.sdk/tm/clojure/test/sdk/test/primary.clj +7 -2
  788. package/project/.sdk/tm/clojure/test/sdk/test/struct_corpus.clj +22 -9
  789. package/project/.sdk/tm/clojure/test/sdk/test_runner.clj +15 -14
  790. package/project/.sdk/tm/clojure/test/vendor/omni/voxgig/omni/json.clj +2 -2
  791. package/project/.sdk/tm/clojure/test/vendor/omni/voxgig/omni/runner.clj +2 -2
  792. package/project/.sdk/tm/clojure/test/vendor/omni/voxgig/omni/util.clj +2 -2
  793. package/project/.sdk/tm/cpp/Makefile +3 -3
  794. package/project/.sdk/tm/cpp/core/types.hpp +49 -30
  795. package/project/.sdk/tm/cpp/feature/secrets/plugin/capability.cpp +2 -2
  796. package/project/.sdk/tm/cpp/feature/secrets/plugin/capability.hpp +2 -2
  797. package/project/.sdk/tm/cpp/feature/secrets/plugin/catalog.cpp +2 -2
  798. package/project/.sdk/tm/cpp/feature/secrets/plugin/catalog.hpp +2 -2
  799. package/project/.sdk/tm/cpp/feature/secrets/plugin/config.cpp +2 -2
  800. package/project/.sdk/tm/cpp/feature/secrets/plugin/config.hpp +2 -2
  801. package/project/.sdk/tm/cpp/feature/secrets/plugin/depend.cpp +2 -2
  802. package/project/.sdk/tm/cpp/feature/secrets/plugin/depend.hpp +2 -2
  803. package/project/.sdk/tm/cpp/feature/secrets/plugin/env.cpp +2 -2
  804. package/project/.sdk/tm/cpp/feature/secrets/plugin/env.hpp +2 -2
  805. package/project/.sdk/tm/cpp/feature/secrets/plugin/export.cpp +2 -2
  806. package/project/.sdk/tm/cpp/feature/secrets/plugin/export.hpp +2 -2
  807. package/project/.sdk/tm/cpp/feature/secrets/plugin/graph.cpp +2 -2
  808. package/project/.sdk/tm/cpp/feature/secrets/plugin/graph.hpp +2 -2
  809. package/project/.sdk/tm/cpp/feature/secrets/plugin/host.cpp +2 -2
  810. package/project/.sdk/tm/cpp/feature/secrets/plugin/host.hpp +2 -2
  811. package/project/.sdk/tm/cpp/feature/secrets/plugin/order.cpp +2 -2
  812. package/project/.sdk/tm/cpp/feature/secrets/plugin/order.hpp +2 -2
  813. package/project/.sdk/tm/cpp/feature/secrets/plugin/point.cpp +2 -2
  814. package/project/.sdk/tm/cpp/feature/secrets/plugin/point.hpp +2 -2
  815. package/project/.sdk/tm/cpp/feature/secrets/plugin/ref.cpp +2 -2
  816. package/project/.sdk/tm/cpp/feature/secrets/plugin/ref.hpp +2 -2
  817. package/project/.sdk/tm/cpp/feature/secrets/plugin/resolve.cpp +2 -2
  818. package/project/.sdk/tm/cpp/feature/secrets/plugin/resolve.hpp +2 -2
  819. package/project/.sdk/tm/cpp/feature/secrets/plugin/types.cpp +2 -2
  820. package/project/.sdk/tm/cpp/feature/secrets/plugin/types.hpp +2 -2
  821. package/project/.sdk/tm/cpp/feature/secrets/plugin/value.cpp +2 -2
  822. package/project/.sdk/tm/cpp/feature/secrets/plugin/value.hpp +2 -2
  823. package/project/.sdk/tm/cpp/feature/secrets/plugin/version.cpp +2 -2
  824. package/project/.sdk/tm/cpp/feature/secrets/plugin/version.hpp +2 -2
  825. package/project/.sdk/tm/cpp/feature/secrets/plugins/Aws.cpp +2 -2
  826. package/project/.sdk/tm/cpp/feature/secrets/plugins/Aws.hpp +2 -2
  827. package/project/.sdk/tm/cpp/feature/secrets/plugins/Azuresecrets.cpp +2 -2
  828. package/project/.sdk/tm/cpp/feature/secrets/plugins/Azuresecrets.hpp +2 -2
  829. package/project/.sdk/tm/cpp/feature/secrets/plugins/Boru.cpp +2 -2
  830. package/project/.sdk/tm/cpp/feature/secrets/plugins/Boru.hpp +2 -2
  831. package/project/.sdk/tm/cpp/feature/secrets/plugins/Crypto.cpp +2 -2
  832. package/project/.sdk/tm/cpp/feature/secrets/plugins/Crypto.hpp +2 -2
  833. package/project/.sdk/tm/cpp/feature/secrets/plugins/Doppler.cpp +2 -2
  834. package/project/.sdk/tm/cpp/feature/secrets/plugins/Doppler.hpp +2 -2
  835. package/project/.sdk/tm/cpp/feature/secrets/plugins/Gcpsecrets.cpp +2 -2
  836. package/project/.sdk/tm/cpp/feature/secrets/plugins/Gcpsecrets.hpp +2 -2
  837. package/project/.sdk/tm/cpp/feature/secrets/plugins/Hashicorp.cpp +2 -2
  838. package/project/.sdk/tm/cpp/feature/secrets/plugins/Hashicorp.hpp +2 -2
  839. package/project/.sdk/tm/cpp/feature/secrets/plugins/Httpjson.cpp +2 -2
  840. package/project/.sdk/tm/cpp/feature/secrets/plugins/Httpjson.hpp +2 -2
  841. package/project/.sdk/tm/cpp/feature/secrets/plugins/Infisical.cpp +2 -2
  842. package/project/.sdk/tm/cpp/feature/secrets/plugins/Infisical.hpp +2 -2
  843. package/project/.sdk/tm/cpp/feature/secrets/plugins/Minivault.cpp +2 -2
  844. package/project/.sdk/tm/cpp/feature/secrets/plugins/Minivault.hpp +2 -2
  845. package/project/.sdk/tm/cpp/feature/secrets/plugins/Onepassword.cpp +2 -2
  846. package/project/.sdk/tm/cpp/feature/secrets/plugins/Onepassword.hpp +2 -2
  847. package/project/.sdk/tm/cpp/feature/secrets/plugins/Proc.cpp +2 -2
  848. package/project/.sdk/tm/cpp/feature/secrets/plugins/Proc.hpp +2 -2
  849. package/project/.sdk/tm/cpp/feature/secrets/plugins/Secretspec.cpp +2 -2
  850. package/project/.sdk/tm/cpp/feature/secrets/plugins/Secretspec.hpp +2 -2
  851. package/project/.sdk/tm/cpp/feature/secrets/plugins/Sigv4.cpp +2 -2
  852. package/project/.sdk/tm/cpp/feature/secrets/plugins/Sigv4.hpp +2 -2
  853. package/project/.sdk/tm/cpp/feature/secrets/plugins/Tls.cpp +2 -2
  854. package/project/.sdk/tm/cpp/feature/secrets/plugins/Tls.hpp +2 -2
  855. package/project/.sdk/tm/cpp/feature/secrets/sekreto/Json.cpp +2 -2
  856. package/project/.sdk/tm/cpp/feature/secrets/sekreto/Json.hpp +2 -2
  857. package/project/.sdk/tm/cpp/feature/secrets/sekreto/Provider.cpp +2 -2
  858. package/project/.sdk/tm/cpp/feature/secrets/sekreto/Provider.hpp +2 -2
  859. package/project/.sdk/tm/cpp/feature/secrets/sekreto/Providers.cpp +2 -2
  860. package/project/.sdk/tm/cpp/feature/secrets/sekreto/Providers.hpp +2 -2
  861. package/project/.sdk/tm/cpp/feature/secrets/sekreto/Sekreto.cpp +2 -2
  862. package/project/.sdk/tm/cpp/feature/secrets/sekreto/Sekreto.hpp +2 -2
  863. package/project/.sdk/tm/cpp/feature/secrets.hpp +3 -1
  864. package/project/.sdk/tm/cpp/feature/validate.hpp +5 -5
  865. package/project/.sdk/tm/cpp/test/custom_utility_test.cpp +1 -1
  866. package/project/.sdk/tm/cpp/test/feature/secrets/secrets_test.cpp +226 -0
  867. package/project/.sdk/tm/cpp/test/omni_resolver.hpp +1 -1
  868. package/project/.sdk/tm/cpp/test/primary_utility_test.cpp +9 -3
  869. package/project/.sdk/tm/cpp/test/runner_support.hpp +25 -4
  870. package/project/.sdk/tm/cpp/test/struct_corpus_test.cpp +32 -3
  871. package/project/.sdk/tm/cpp/test/vendor/omni/json.hpp +55 -17
  872. package/project/.sdk/tm/cpp/test/vendor/omni/omni.hpp +2 -2
  873. package/project/.sdk/tm/cpp/test/vendor/omni/util.hpp +2 -2
  874. package/project/.sdk/tm/cpp/utility/pipeline.hpp +96 -20
  875. package/project/.sdk/tm/cpp/utility/voxgigstruct/value.hpp +3 -0
  876. package/project/.sdk/tm/cpp/utility/voxgigstruct/value_io.hpp +3 -0
  877. package/project/.sdk/tm/cpp/utility/voxgigstruct/voxgig_struct.hpp +1374 -371
  878. package/project/.sdk/tm/csharp/Makefile +6 -6
  879. package/project/.sdk/tm/csharp/core/Response.cs +21 -2
  880. package/project/.sdk/tm/csharp/core/Result.cs +2 -2
  881. package/project/.sdk/tm/csharp/core/Utility.cs +2 -0
  882. package/project/.sdk/tm/csharp/feature/SecretsFeature.cs +7 -6
  883. package/project/.sdk/tm/csharp/feature/ValidateFeature.cs +4 -5
  884. package/project/.sdk/tm/csharp/feature/secrets/plugin/Capability.cs +2 -2
  885. package/project/.sdk/tm/csharp/feature/secrets/plugin/Catalog.cs +2 -2
  886. package/project/.sdk/tm/csharp/feature/secrets/plugin/Config.cs +2 -2
  887. package/project/.sdk/tm/csharp/feature/secrets/plugin/Definition.cs +2 -2
  888. package/project/.sdk/tm/csharp/feature/secrets/plugin/Depend.cs +2 -2
  889. package/project/.sdk/tm/csharp/feature/secrets/plugin/Entry.cs +2 -2
  890. package/project/.sdk/tm/csharp/feature/secrets/plugin/Env.cs +2 -2
  891. package/project/.sdk/tm/csharp/feature/secrets/plugin/Export.cs +2 -2
  892. package/project/.sdk/tm/csharp/feature/secrets/plugin/Graph.cs +2 -2
  893. package/project/.sdk/tm/csharp/feature/secrets/plugin/Host.cs +2 -2
  894. package/project/.sdk/tm/csharp/feature/secrets/plugin/Inst.cs +2 -2
  895. package/project/.sdk/tm/csharp/feature/secrets/plugin/Json.cs +2 -2
  896. package/project/.sdk/tm/csharp/feature/secrets/plugin/Order.cs +2 -2
  897. package/project/.sdk/tm/csharp/feature/secrets/plugin/Plugin.cs +2 -2
  898. package/project/.sdk/tm/csharp/feature/secrets/plugin/Point.cs +2 -2
  899. package/project/.sdk/tm/csharp/feature/secrets/plugin/Refs.cs +2 -2
  900. package/project/.sdk/tm/csharp/feature/secrets/plugin/Resolve.cs +2 -2
  901. package/project/.sdk/tm/csharp/feature/secrets/plugin/Types.cs +2 -2
  902. package/project/.sdk/tm/csharp/feature/secrets/plugin/Version.cs +2 -2
  903. package/project/.sdk/tm/csharp/feature/secrets/plugins/Aws.cs +2 -2
  904. package/project/.sdk/tm/csharp/feature/secrets/plugins/AzureSecrets.cs +2 -2
  905. package/project/.sdk/tm/csharp/feature/secrets/plugins/Boru.cs +2 -2
  906. package/project/.sdk/tm/csharp/feature/secrets/plugins/Child.cs +2 -2
  907. package/project/.sdk/tm/csharp/feature/secrets/plugins/Doppler.cs +2 -2
  908. package/project/.sdk/tm/csharp/feature/secrets/plugins/GcpSecrets.cs +2 -2
  909. package/project/.sdk/tm/csharp/feature/secrets/plugins/Hashicorp.cs +2 -2
  910. package/project/.sdk/tm/csharp/feature/secrets/plugins/HttpJson.cs +2 -2
  911. package/project/.sdk/tm/csharp/feature/secrets/plugins/Infisical.cs +2 -2
  912. package/project/.sdk/tm/csharp/feature/secrets/plugins/MiniVault.cs +2 -2
  913. package/project/.sdk/tm/csharp/feature/secrets/plugins/OnePassword.cs +2 -2
  914. package/project/.sdk/tm/csharp/feature/secrets/plugins/SecretSpec.cs +2 -2
  915. package/project/.sdk/tm/csharp/feature/secrets/plugins/Sigv4.cs +2 -2
  916. package/project/.sdk/tm/csharp/feature/secrets/sekreto/Json.cs +2 -2
  917. package/project/.sdk/tm/csharp/feature/secrets/sekreto/Providers.cs +2 -2
  918. package/project/.sdk/tm/csharp/feature/secrets/sekreto/Sekreto.cs +2 -2
  919. package/project/.sdk/tm/csharp/test/PipelineTest.cs +1 -1
  920. package/project/.sdk/tm/csharp/test/PrimaryUtilityTest.cs +242 -1
  921. package/project/.sdk/tm/csharp/test/Runner.cs +4 -4
  922. package/project/.sdk/tm/csharp/test/StructUtilityTest.cs +38 -38
  923. package/project/.sdk/tm/csharp/test/feature/secrets/SecretsFeatureTest.cs +267 -0
  924. package/project/.sdk/tm/csharp/test/vendor/omni/Runner.cs +2 -2
  925. package/project/.sdk/tm/csharp/test/vendor/omni/Util.cs +2 -2
  926. package/project/.sdk/tm/csharp/utility/Clean.cs +139 -12
  927. package/project/.sdk/tm/csharp/utility/Fetcher.cs +115 -35
  928. package/project/.sdk/tm/csharp/utility/MakeError.cs +4 -5
  929. package/project/.sdk/tm/csharp/utility/MakeOptions.cs +5 -5
  930. package/project/.sdk/tm/csharp/utility/Register.cs +1 -0
  931. package/project/.sdk/tm/csharp/utility/struct/Struct.cs +1587 -325
  932. package/project/.sdk/tm/elixir/lib/projectname/entity_base.ex +9 -11
  933. package/project/.sdk/tm/elixir/lib/projectname/error.ex +1 -1
  934. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/capability.ex +2 -2
  935. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/catalog.ex +2 -2
  936. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/config.ex +2 -2
  937. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/depend.ex +2 -2
  938. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/env.ex +2 -2
  939. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/error.ex +2 -2
  940. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/export.ex +2 -2
  941. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/graph.ex +2 -2
  942. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/host.ex +2 -2
  943. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/inst.ex +2 -2
  944. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/json.ex +2 -2
  945. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/order.ex +2 -2
  946. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/point.ex +2 -2
  947. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/ref.ex +2 -2
  948. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/resolve.ex +2 -2
  949. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/types.ex +2 -2
  950. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/version.ex +2 -2
  951. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/voxgig_plugin.ex +2 -2
  952. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/json.ex +2 -2
  953. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/aws.ex +2 -2
  954. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/azuresecrets.ex +2 -2
  955. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/boru.ex +2 -2
  956. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/doppler.ex +2 -2
  957. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/gcpsecrets.ex +2 -2
  958. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/hashicorp.ex +2 -2
  959. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/http.ex +2 -2
  960. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/httpjson.ex +2 -2
  961. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/infisical.ex +2 -2
  962. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/minivault.ex +2 -2
  963. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/onepassword.ex +2 -2
  964. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/proc.ex +2 -2
  965. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/secretspec.ex +2 -2
  966. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/sigv4.ex +2 -2
  967. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/provider.ex +2 -2
  968. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/providers.ex +2 -2
  969. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/sekreto.ex +2 -2
  970. package/project/.sdk/tm/elixir/lib/projectname/feature/secrets.ex +4 -2
  971. package/project/.sdk/tm/elixir/lib/projectname/feature/validate.ex +4 -5
  972. package/project/.sdk/tm/elixir/lib/projectname/utility.ex +219 -37
  973. package/project/.sdk/tm/elixir/lib/utility/struct/voxgig_struct.ex +1088 -253
  974. package/project/.sdk/tm/elixir/test/feature/secrets/secrets_test.exs +147 -1
  975. package/project/.sdk/tm/elixir/test/pipeline_test.exs +167 -1
  976. package/project/.sdk/tm/elixir/test/primary_utility_test.exs +12 -1
  977. package/project/.sdk/tm/elixir/test/struct_corpus_test.exs +43 -21
  978. package/project/.sdk/tm/elixir/test/support/omni.ex +2 -2
  979. package/project/.sdk/tm/elixir/test/vendor/omni/json.ex +33 -5
  980. package/project/.sdk/tm/elixir/test/vendor/omni/runner.ex +2 -2
  981. package/project/.sdk/tm/elixir/test/vendor/omni/util.ex +2 -2
  982. package/project/.sdk/tm/go/Makefile +4 -4
  983. package/project/.sdk/tm/go/core/response.go +17 -4
  984. package/project/.sdk/tm/go/core/result.go +2 -2
  985. package/project/.sdk/tm/go/core/utility_type.go +2 -1
  986. package/project/.sdk/tm/go/feature/secrets/plugin/capability.go +2 -2
  987. package/project/.sdk/tm/go/feature/secrets/plugin/catalog.go +2 -2
  988. package/project/.sdk/tm/go/feature/secrets/plugin/config.go +2 -2
  989. package/project/.sdk/tm/go/feature/secrets/plugin/depend.go +2 -2
  990. package/project/.sdk/tm/go/feature/secrets/plugin/env.go +2 -2
  991. package/project/.sdk/tm/go/feature/secrets/plugin/export.go +2 -2
  992. package/project/.sdk/tm/go/feature/secrets/plugin/graph.go +2 -2
  993. package/project/.sdk/tm/go/feature/secrets/plugin/host.go +2 -2
  994. package/project/.sdk/tm/go/feature/secrets/plugin/order.go +2 -2
  995. package/project/.sdk/tm/go/feature/secrets/plugin/point.go +2 -2
  996. package/project/.sdk/tm/go/feature/secrets/plugin/ref.go +2 -2
  997. package/project/.sdk/tm/go/feature/secrets/plugin/resolve.go +2 -2
  998. package/project/.sdk/tm/go/feature/secrets/plugin/types.go +2 -2
  999. package/project/.sdk/tm/go/feature/secrets/plugin/util.go +2 -2
  1000. package/project/.sdk/tm/go/feature/secrets/plugin/version.go +2 -2
  1001. package/project/.sdk/tm/go/feature/secrets/plugins/aws/aws.go +2 -2
  1002. package/project/.sdk/tm/go/feature/secrets/plugins/aws/sigv4.go +2 -2
  1003. package/project/.sdk/tm/go/feature/secrets/plugins/azuresecrets/azuresecrets.go +2 -2
  1004. package/project/.sdk/tm/go/feature/secrets/plugins/boru/boru.go +2 -2
  1005. package/project/.sdk/tm/go/feature/secrets/plugins/doppler/doppler.go +2 -2
  1006. package/project/.sdk/tm/go/feature/secrets/plugins/gcpsecrets/gcpsecrets.go +2 -2
  1007. package/project/.sdk/tm/go/feature/secrets/plugins/hashicorp/hashicorp.go +2 -2
  1008. package/project/.sdk/tm/go/feature/secrets/plugins/httpjson/httpjson.go +2 -2
  1009. package/project/.sdk/tm/go/feature/secrets/plugins/infisical/infisical.go +2 -2
  1010. package/project/.sdk/tm/go/feature/secrets/plugins/minivault/format.go +2 -2
  1011. package/project/.sdk/tm/go/feature/secrets/plugins/minivault/minivault.go +2 -2
  1012. package/project/.sdk/tm/go/feature/secrets/plugins/onepassword/onepassword.go +2 -2
  1013. package/project/.sdk/tm/go/feature/secrets/plugins/secretspec/secretspec.go +2 -2
  1014. package/project/.sdk/tm/go/feature/secrets/sekreto/addr.go +2 -2
  1015. package/project/.sdk/tm/go/feature/secrets/sekreto/providers.go +2 -2
  1016. package/project/.sdk/tm/go/feature/secrets/sekreto/sekreto.go +2 -2
  1017. package/project/.sdk/tm/go/feature/secrets_feature.go +8 -1
  1018. package/project/.sdk/tm/go/test/concurrency_test.go +1 -1
  1019. package/project/.sdk/tm/go/test/custom_utility_test.go +5 -5
  1020. package/project/.sdk/tm/go/test/feature/secrets/secrets_feature_test.go +160 -7
  1021. package/project/.sdk/tm/go/test/feature_corpus_test.go +1 -1
  1022. package/project/.sdk/tm/go/test/feature_test.go +5 -1
  1023. package/project/.sdk/tm/go/test/omni/omni.go +2 -2
  1024. package/project/.sdk/tm/go/test/omni/util.go +12 -5
  1025. package/project/.sdk/tm/go/test/omniresolver_test.go +1 -1
  1026. package/project/.sdk/tm/go/test/pipeline_test.go +4 -1
  1027. package/project/.sdk/tm/go/test/primary_utility_test.go +181 -5
  1028. package/project/.sdk/tm/go/test/server_variable_test.go +50 -0
  1029. package/project/.sdk/tm/go/test/struct_utility_test.go +59 -56
  1030. package/project/.sdk/tm/go/test/testsupport_test.go +13 -3
  1031. package/project/.sdk/tm/go/utility/clean.go +223 -6
  1032. package/project/.sdk/tm/go/utility/fetcher.go +59 -10
  1033. package/project/.sdk/tm/go/utility/make_error.go +4 -4
  1034. package/project/.sdk/tm/go/utility/make_options.go +12 -5
  1035. package/project/.sdk/tm/go/utility/register.go +12 -1
  1036. package/project/.sdk/tm/go/utility/struct/voxgigstruct.go +1510 -430
  1037. package/project/.sdk/tm/java/Makefile +7 -6
  1038. package/project/.sdk/tm/java/core/Response.java +16 -2
  1039. package/project/.sdk/tm/java/core/Result.java +2 -2
  1040. package/project/.sdk/tm/java/core/SdkClient.java +4 -4
  1041. package/project/.sdk/tm/java/core/Utility.java +7 -0
  1042. package/project/.sdk/tm/java/feature/SecretsFeature.java +3 -0
  1043. package/project/.sdk/tm/java/feature/ValidateFeature.java +4 -5
  1044. package/project/.sdk/tm/java/feature/secrets/plugin/Capability.java +2 -2
  1045. package/project/.sdk/tm/java/feature/secrets/plugin/Catalog.java +2 -2
  1046. package/project/.sdk/tm/java/feature/secrets/plugin/Config.java +2 -2
  1047. package/project/.sdk/tm/java/feature/secrets/plugin/Definition.java +2 -2
  1048. package/project/.sdk/tm/java/feature/secrets/plugin/Depend.java +2 -2
  1049. package/project/.sdk/tm/java/feature/secrets/plugin/Entry.java +2 -2
  1050. package/project/.sdk/tm/java/feature/secrets/plugin/Env.java +2 -2
  1051. package/project/.sdk/tm/java/feature/secrets/plugin/Export.java +2 -2
  1052. package/project/.sdk/tm/java/feature/secrets/plugin/Graph.java +2 -2
  1053. package/project/.sdk/tm/java/feature/secrets/plugin/Host.java +2 -2
  1054. package/project/.sdk/tm/java/feature/secrets/plugin/Inst.java +2 -2
  1055. package/project/.sdk/tm/java/feature/secrets/plugin/Json.java +2 -2
  1056. package/project/.sdk/tm/java/feature/secrets/plugin/Order.java +2 -2
  1057. package/project/.sdk/tm/java/feature/secrets/plugin/Plugin.java +2 -2
  1058. package/project/.sdk/tm/java/feature/secrets/plugin/PluginException.java +2 -2
  1059. package/project/.sdk/tm/java/feature/secrets/plugin/Point.java +2 -2
  1060. package/project/.sdk/tm/java/feature/secrets/plugin/Refs.java +2 -2
  1061. package/project/.sdk/tm/java/feature/secrets/plugin/Resolve.java +2 -2
  1062. package/project/.sdk/tm/java/feature/secrets/plugin/Types.java +2 -2
  1063. package/project/.sdk/tm/java/feature/secrets/plugin/Version.java +2 -2
  1064. package/project/.sdk/tm/java/feature/secrets/sekreto/Addr.java +2 -2
  1065. package/project/.sdk/tm/java/feature/secrets/sekreto/Builtins.java +2 -2
  1066. package/project/.sdk/tm/java/feature/secrets/sekreto/Json.java +2 -2
  1067. package/project/.sdk/tm/java/feature/secrets/sekreto/Provider.java +2 -2
  1068. package/project/.sdk/tm/java/feature/secrets/sekreto/Sekreto.java +2 -2
  1069. package/project/.sdk/tm/java/feature/secrets/sekreto/Support.java +2 -2
  1070. package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Aws.java +2 -2
  1071. package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Azuresecrets.java +2 -2
  1072. package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Boru.java +2 -2
  1073. package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Doppler.java +2 -2
  1074. package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Gcpsecrets.java +2 -2
  1075. package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Hashicorp.java +2 -2
  1076. package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Httpjson.java +2 -2
  1077. package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Infisical.java +2 -2
  1078. package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Minivault.java +2 -2
  1079. package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Onepassword.java +2 -2
  1080. package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Proc.java +2 -2
  1081. package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Secretspec.java +2 -2
  1082. package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Sigv4.java +2 -2
  1083. package/project/.sdk/tm/java/test/PipelineTest.java +1 -1
  1084. package/project/.sdk/tm/java/test/PrimaryUtilityTest.java +199 -2
  1085. package/project/.sdk/tm/java/test/RunnerSupport.java +4 -4
  1086. package/project/.sdk/tm/java/test/StructCorpusTest.java +32 -3
  1087. package/project/.sdk/tm/java/test/feature/secrets/SecretsFeatureTest.java +111 -2
  1088. package/project/.sdk/tm/java/test/vendor/omni/Json.java +2 -2
  1089. package/project/.sdk/tm/java/test/vendor/omni/Runner.java +2 -2
  1090. package/project/.sdk/tm/java/test/vendor/omni/Util.java +2 -2
  1091. package/project/.sdk/tm/java/utility/Clean.java +186 -19
  1092. package/project/.sdk/tm/java/utility/Fetcher.java +109 -14
  1093. package/project/.sdk/tm/java/utility/MakeError.java +4 -4
  1094. package/project/.sdk/tm/java/utility/MakeOptions.java +5 -5
  1095. package/project/.sdk/tm/java/utility/Register.java +4 -0
  1096. package/project/.sdk/tm/java/utility/TransformResponse.java +5 -0
  1097. package/project/.sdk/tm/java/utility/struct/Struct.java +1239 -229
  1098. package/project/.sdk/tm/js/Makefile +5 -4
  1099. package/project/.sdk/tm/js/src/feature/secrets/SecretsFeature.js +2 -0
  1100. package/project/.sdk/tm/js/src/feature/secrets/plugin/capability.js +1 -1
  1101. package/project/.sdk/tm/js/src/feature/secrets/plugin/catalog.js +1 -1
  1102. package/project/.sdk/tm/js/src/feature/secrets/plugin/config.js +1 -1
  1103. package/project/.sdk/tm/js/src/feature/secrets/plugin/depend.js +1 -1
  1104. package/project/.sdk/tm/js/src/feature/secrets/plugin/env.js +1 -1
  1105. package/project/.sdk/tm/js/src/feature/secrets/plugin/export.js +1 -1
  1106. package/project/.sdk/tm/js/src/feature/secrets/plugin/graph.js +1 -1
  1107. package/project/.sdk/tm/js/src/feature/secrets/plugin/host.js +1 -1
  1108. package/project/.sdk/tm/js/src/feature/secrets/plugin/index.js +1 -1
  1109. package/project/.sdk/tm/js/src/feature/secrets/plugin/order.js +1 -1
  1110. package/project/.sdk/tm/js/src/feature/secrets/plugin/point.js +1 -1
  1111. package/project/.sdk/tm/js/src/feature/secrets/plugin/ref.js +1 -1
  1112. package/project/.sdk/tm/js/src/feature/secrets/plugin/resolve.js +1 -1
  1113. package/project/.sdk/tm/js/src/feature/secrets/plugin/types.js +1 -1
  1114. package/project/.sdk/tm/js/src/feature/secrets/plugin/version.js +1 -1
  1115. package/project/.sdk/tm/js/src/feature/secrets/sekreto/Sekreto.js +1 -1
  1116. package/project/.sdk/tm/js/src/feature/secrets/sekreto/index.js +1 -1
  1117. package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/aws.js +1 -1
  1118. package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/azuresecrets.js +1 -1
  1119. package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/boru.js +1 -1
  1120. package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/doppler.js +1 -1
  1121. package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/gcpsecrets.js +1 -1
  1122. package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/hashicorp.js +1 -1
  1123. package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/httpjson.js +1 -1
  1124. package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/infisical.js +1 -1
  1125. package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/minivault.js +1 -1
  1126. package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/onepassword.js +1 -1
  1127. package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/secretspec.js +1 -1
  1128. package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/sigv4.js +1 -1
  1129. package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/addr.js +1 -1
  1130. package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/builtin.js +1 -1
  1131. package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/dotenv.js +1 -1
  1132. package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/env.js +1 -1
  1133. package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/file.js +1 -1
  1134. package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/memory.js +1 -1
  1135. package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/support.js +1 -1
  1136. package/project/.sdk/tm/js/src/feature/validate/ValidateFeature.js +4 -5
  1137. package/project/.sdk/tm/js/src/utility/CleanUtility.js +104 -10
  1138. package/project/.sdk/tm/js/src/utility/FetcherUtility.js +99 -1
  1139. package/project/.sdk/tm/js/src/utility/MakeErrorUtility.js +4 -4
  1140. package/project/.sdk/tm/js/src/utility/MakeOptionsUtility.js +5 -5
  1141. package/project/.sdk/tm/js/src/utility/MediaUtility.js +32 -0
  1142. package/project/.sdk/tm/js/src/utility/ResultBodyUtility.js +6 -14
  1143. package/project/.sdk/tm/js/src/utility/StructUtility.js +972 -180
  1144. package/project/.sdk/tm/js/src/utility/Utility.js +2 -1
  1145. package/project/.sdk/tm/js/test/feature/harness.js +6 -7
  1146. package/project/.sdk/tm/js/test/feature/secrets/Secrets.test.js +92 -2
  1147. package/project/.sdk/tm/js/test/live-entity.js +8 -8
  1148. package/project/.sdk/tm/js/test/utility/PrimaryUtility.test.js +9 -1
  1149. package/project/.sdk/tm/js/test/utility/StructUtility.test.js +32 -27
  1150. package/project/.sdk/tm/js/test/utility/index.js +1 -1
  1151. package/project/.sdk/tm/js/test/vendor/omni/index.js +1 -1
  1152. package/project/.sdk/tm/js/test/vendor/omni/runner.js +1 -1
  1153. package/project/.sdk/tm/js/test/vendor/omni/util.js +1 -1
  1154. package/project/.sdk/tm/kotlin/Makefile +7 -6
  1155. package/project/.sdk/tm/kotlin/core/Response.kt +17 -2
  1156. package/project/.sdk/tm/kotlin/core/Result.kt +2 -2
  1157. package/project/.sdk/tm/kotlin/core/SdkClient.kt +4 -4
  1158. package/project/.sdk/tm/kotlin/core/Utility.kt +4 -2
  1159. package/project/.sdk/tm/kotlin/feature/SecretsFeature.kt +2 -0
  1160. package/project/.sdk/tm/kotlin/feature/ValidateFeature.kt +4 -5
  1161. package/project/.sdk/tm/kotlin/feature/secrets/plugin/Capability.kt +2 -2
  1162. package/project/.sdk/tm/kotlin/feature/secrets/plugin/Catalog.kt +2 -2
  1163. package/project/.sdk/tm/kotlin/feature/secrets/plugin/Config.kt +2 -2
  1164. package/project/.sdk/tm/kotlin/feature/secrets/plugin/Depend.kt +2 -2
  1165. package/project/.sdk/tm/kotlin/feature/secrets/plugin/Env.kt +2 -2
  1166. package/project/.sdk/tm/kotlin/feature/secrets/plugin/Export.kt +2 -2
  1167. package/project/.sdk/tm/kotlin/feature/secrets/plugin/Graph.kt +2 -2
  1168. package/project/.sdk/tm/kotlin/feature/secrets/plugin/Host.kt +2 -2
  1169. package/project/.sdk/tm/kotlin/feature/secrets/plugin/Json.kt +2 -2
  1170. package/project/.sdk/tm/kotlin/feature/secrets/plugin/Order.kt +2 -2
  1171. package/project/.sdk/tm/kotlin/feature/secrets/plugin/Plugin.kt +2 -2
  1172. package/project/.sdk/tm/kotlin/feature/secrets/plugin/Point.kt +2 -2
  1173. package/project/.sdk/tm/kotlin/feature/secrets/plugin/Refs.kt +2 -2
  1174. package/project/.sdk/tm/kotlin/feature/secrets/plugin/Resolve.kt +2 -2
  1175. package/project/.sdk/tm/kotlin/feature/secrets/plugin/Types.kt +2 -2
  1176. package/project/.sdk/tm/kotlin/feature/secrets/plugin/Version.kt +2 -2
  1177. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Json.kt +2 -2
  1178. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Provider.kt +2 -2
  1179. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Providers.kt +2 -2
  1180. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Sekreto.kt +2 -2
  1181. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Spec.kt +2 -2
  1182. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Support.kt +2 -2
  1183. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Aws.kt +2 -2
  1184. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Azuresecrets.kt +2 -2
  1185. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Boru.kt +2 -2
  1186. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Doppler.kt +2 -2
  1187. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Gcpsecrets.kt +2 -2
  1188. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Hashicorp.kt +2 -2
  1189. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Httpjson.kt +2 -2
  1190. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Infisical.kt +2 -2
  1191. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Minivault.kt +2 -2
  1192. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Onepassword.kt +2 -2
  1193. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Secretspec.kt +2 -2
  1194. package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Sigv4.kt +2 -2
  1195. package/project/.sdk/tm/kotlin/test/PipelineTest.kt +1 -1
  1196. package/project/.sdk/tm/kotlin/test/PrimaryUtilityTest.kt +188 -2
  1197. package/project/.sdk/tm/kotlin/test/RunnerSupport.kt +23 -4
  1198. package/project/.sdk/tm/kotlin/test/StructCorpusTest.kt +23 -3
  1199. package/project/.sdk/tm/kotlin/test/feature/secrets/SecretsTest.kt +110 -1
  1200. package/project/.sdk/tm/kotlin/test/vendor/omni/Json.kt +2 -2
  1201. package/project/.sdk/tm/kotlin/test/vendor/omni/Runner.kt +2 -2
  1202. package/project/.sdk/tm/kotlin/test/vendor/omni/Util.kt +2 -2
  1203. package/project/.sdk/tm/kotlin/utility/CoreUtil.kt +142 -16
  1204. package/project/.sdk/tm/kotlin/utility/Fetcher.kt +113 -14
  1205. package/project/.sdk/tm/kotlin/utility/MakeOptions.kt +5 -5
  1206. package/project/.sdk/tm/kotlin/utility/Register.kt +1 -0
  1207. package/project/.sdk/tm/kotlin/utility/struct/Struct.kt +1074 -164
  1208. package/project/.sdk/tm/lua/Makefile +4 -3
  1209. package/project/.sdk/tm/lua/core/utility_type.lua +2 -0
  1210. package/project/.sdk/tm/lua/feature/secrets/native/sekretonet.c +2 -2
  1211. package/project/.sdk/tm/lua/feature/secrets/native/sekretovault.c +2 -2
  1212. package/project/.sdk/tm/lua/feature/secrets/plugin/capability.lua +2 -2
  1213. package/project/.sdk/tm/lua/feature/secrets/plugin/catalog.lua +2 -2
  1214. package/project/.sdk/tm/lua/feature/secrets/plugin/config.lua +2 -2
  1215. package/project/.sdk/tm/lua/feature/secrets/plugin/depend.lua +2 -2
  1216. package/project/.sdk/tm/lua/feature/secrets/plugin/env.lua +2 -2
  1217. package/project/.sdk/tm/lua/feature/secrets/plugin/export.lua +2 -2
  1218. package/project/.sdk/tm/lua/feature/secrets/plugin/graph.lua +2 -2
  1219. package/project/.sdk/tm/lua/feature/secrets/plugin/host.lua +2 -2
  1220. package/project/.sdk/tm/lua/feature/secrets/plugin/json.lua +2 -2
  1221. package/project/.sdk/tm/lua/feature/secrets/plugin/order.lua +2 -2
  1222. package/project/.sdk/tm/lua/feature/secrets/plugin/point.lua +2 -2
  1223. package/project/.sdk/tm/lua/feature/secrets/plugin/ref.lua +2 -2
  1224. package/project/.sdk/tm/lua/feature/secrets/plugin/resolve.lua +2 -2
  1225. package/project/.sdk/tm/lua/feature/secrets/plugin/types.lua +2 -2
  1226. package/project/.sdk/tm/lua/feature/secrets/plugin/version.lua +2 -2
  1227. package/project/.sdk/tm/lua/feature/secrets/plugin.lua +2 -2
  1228. package/project/.sdk/tm/lua/feature/secrets/sekreto/addr.lua +2 -2
  1229. package/project/.sdk/tm/lua/feature/secrets/sekreto/err.lua +2 -2
  1230. package/project/.sdk/tm/lua/feature/secrets/sekreto/name.lua +2 -2
  1231. package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/aws.lua +2 -2
  1232. package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/azuresecrets.lua +2 -2
  1233. package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/boru.lua +2 -2
  1234. package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/crypto.lua +2 -2
  1235. package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/doppler.lua +2 -2
  1236. package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/gcpsecrets.lua +2 -2
  1237. package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/hashicorp.lua +2 -2
  1238. package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/httpjson.lua +2 -2
  1239. package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/infisical.lua +2 -2
  1240. package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/json.lua +2 -2
  1241. package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/minivault.lua +2 -2
  1242. package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/net.lua +2 -2
  1243. package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/onepassword.lua +2 -2
  1244. package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/secretspec.lua +2 -2
  1245. package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/sigv4.lua +2 -2
  1246. package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/support.lua +2 -2
  1247. package/project/.sdk/tm/lua/feature/secrets/sekreto/providers.lua +2 -2
  1248. package/project/.sdk/tm/lua/feature/secrets/sekreto.lua +2 -2
  1249. package/project/.sdk/tm/lua/feature/secrets_feature.lua +3 -0
  1250. package/project/.sdk/tm/lua/feature/validate_feature.lua +5 -6
  1251. package/project/.sdk/tm/lua/test/feature/secrets/secrets_feature_test.lua +115 -2
  1252. package/project/.sdk/tm/lua/test/omni.lua +1 -1
  1253. package/project/.sdk/tm/lua/test/pipeline_test.lua +1 -1
  1254. package/project/.sdk/tm/lua/test/primary_utility_test.lua +160 -1
  1255. package/project/.sdk/tm/lua/test/runner.lua +3 -1
  1256. package/project/.sdk/tm/lua/test/struct_utility_test.lua +152 -44
  1257. package/project/.sdk/tm/lua/test/vendor/omni/json.lua +26 -6
  1258. package/project/.sdk/tm/lua/test/vendor/omni/regex.lua +2 -2
  1259. package/project/.sdk/tm/lua/test/vendor/omni/runner.lua +2 -2
  1260. package/project/.sdk/tm/lua/test/vendor/omni/util.lua +2 -2
  1261. package/project/.sdk/tm/lua/utility/clean.lua +86 -6
  1262. package/project/.sdk/tm/lua/utility/fetcher.lua +19 -5
  1263. package/project/.sdk/tm/lua/utility/make_error.lua +4 -5
  1264. package/project/.sdk/tm/lua/utility/make_options.lua +5 -5
  1265. package/project/.sdk/tm/lua/utility/media.lua +36 -0
  1266. package/project/.sdk/tm/lua/utility/register.lua +1 -0
  1267. package/project/.sdk/tm/lua/utility/struct/regex.lua +26 -9
  1268. package/project/.sdk/tm/lua/utility/struct/struct.lua +1289 -245
  1269. package/project/.sdk/tm/lua/utility/unreadable_body.lua +6 -16
  1270. package/project/.sdk/tm/ocaml/Makefile +1 -1
  1271. package/project/.sdk/tm/ocaml/feature/secrets/plugin/capability.ml +2 -2
  1272. package/project/.sdk/tm/ocaml/feature/secrets/plugin/catalog.ml +2 -2
  1273. package/project/.sdk/tm/ocaml/feature/secrets/plugin/config.ml +2 -2
  1274. package/project/.sdk/tm/ocaml/feature/secrets/plugin/defs.ml +2 -2
  1275. package/project/.sdk/tm/ocaml/feature/secrets/plugin/depend.ml +2 -2
  1276. package/project/.sdk/tm/ocaml/feature/secrets/plugin/env.ml +2 -2
  1277. package/project/.sdk/tm/ocaml/feature/secrets/plugin/export.ml +2 -2
  1278. package/project/.sdk/tm/ocaml/feature/secrets/plugin/graph.ml +2 -2
  1279. package/project/.sdk/tm/ocaml/feature/secrets/plugin/host.ml +2 -2
  1280. package/project/.sdk/tm/ocaml/feature/secrets/plugin/order.ml +2 -2
  1281. package/project/.sdk/tm/ocaml/feature/secrets/plugin/point.ml +2 -2
  1282. package/project/.sdk/tm/ocaml/feature/secrets/plugin/ref.ml +2 -2
  1283. package/project/.sdk/tm/ocaml/feature/secrets/plugin/resolve.ml +2 -2
  1284. package/project/.sdk/tm/ocaml/feature/secrets/plugin/types.ml +2 -2
  1285. package/project/.sdk/tm/ocaml/feature/secrets/plugin/value.ml +2 -2
  1286. package/project/.sdk/tm/ocaml/feature/secrets/plugin/version.ml +2 -2
  1287. package/project/.sdk/tm/ocaml/feature/secrets/plugins/aws.ml +2 -2
  1288. package/project/.sdk/tm/ocaml/feature/secrets/plugins/azuresecrets.ml +2 -2
  1289. package/project/.sdk/tm/ocaml/feature/secrets/plugins/boru.ml +2 -2
  1290. package/project/.sdk/tm/ocaml/feature/secrets/plugins/crypto.ml +2 -2
  1291. package/project/.sdk/tm/ocaml/feature/secrets/plugins/doppler.ml +2 -2
  1292. package/project/.sdk/tm/ocaml/feature/secrets/plugins/gcpsecrets.ml +2 -2
  1293. package/project/.sdk/tm/ocaml/feature/secrets/plugins/hashicorp.ml +2 -2
  1294. package/project/.sdk/tm/ocaml/feature/secrets/plugins/http.ml +2 -2
  1295. package/project/.sdk/tm/ocaml/feature/secrets/plugins/httpjson.ml +2 -2
  1296. package/project/.sdk/tm/ocaml/feature/secrets/plugins/infisical.ml +2 -2
  1297. package/project/.sdk/tm/ocaml/feature/secrets/plugins/minivault.ml +2 -2
  1298. package/project/.sdk/tm/ocaml/feature/secrets/plugins/minivault_stubs.c +2 -2
  1299. package/project/.sdk/tm/ocaml/feature/secrets/plugins/onepassword.ml +2 -2
  1300. package/project/.sdk/tm/ocaml/feature/secrets/plugins/runcmd.ml +2 -2
  1301. package/project/.sdk/tm/ocaml/feature/secrets/plugins/secretspec.ml +2 -2
  1302. package/project/.sdk/tm/ocaml/feature/secrets/plugins/sigv4.ml +2 -2
  1303. package/project/.sdk/tm/ocaml/feature/secrets/plugins/tls.ml +2 -2
  1304. package/project/.sdk/tm/ocaml/feature/secrets/plugins/tls_stubs.c +2 -2
  1305. package/project/.sdk/tm/ocaml/feature/secrets/sekreto/json.ml +2 -2
  1306. package/project/.sdk/tm/ocaml/feature/secrets/sekreto/provider.ml +2 -2
  1307. package/project/.sdk/tm/ocaml/feature/secrets/sekreto/secret.ml +2 -2
  1308. package/project/.sdk/tm/ocaml/feature/secrets/sekreto/sekreto.ml +2 -2
  1309. package/project/.sdk/tm/ocaml/feature/secrets_feature.ml +3 -1
  1310. package/project/.sdk/tm/ocaml/sdk_features.ml +9 -10
  1311. package/project/.sdk/tm/ocaml/sdk_runtime.ml +78 -15
  1312. package/project/.sdk/tm/ocaml/sdk_types.ml +1 -1
  1313. package/project/.sdk/tm/ocaml/test/feature/secrets/t_secrets.ml +157 -4
  1314. package/project/.sdk/tm/ocaml/test/primary_utility_test.ml +14 -9
  1315. package/project/.sdk/tm/ocaml/test/struct_corpus.ml +24 -15
  1316. package/project/.sdk/tm/ocaml/test/vendor/omni/omni.ml +34 -28
  1317. package/project/.sdk/tm/ocaml/utility/voxgig_struct.ml +807 -157
  1318. package/project/.sdk/tm/ocaml/utility/vregex.ml +190 -60
  1319. package/project/.sdk/tm/perl/Makefile +8 -7
  1320. package/project/.sdk/tm/perl/core/control.pm +1 -1
  1321. package/project/.sdk/tm/perl/core/error.pm +14 -1
  1322. package/project/.sdk/tm/perl/core/helpers.pm +8 -7
  1323. package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Capability.pm +2 -2
  1324. package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Catalog.pm +2 -2
  1325. package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Config.pm +2 -2
  1326. package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Depend.pm +2 -2
  1327. package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Env.pm +2 -2
  1328. package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Export.pm +2 -2
  1329. package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Graph.pm +2 -2
  1330. package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Host.pm +2 -2
  1331. package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Order.pm +2 -2
  1332. package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Point.pm +2 -2
  1333. package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Ref.pm +2 -2
  1334. package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Resolve.pm +2 -2
  1335. package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Types.pm +2 -2
  1336. package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Version.pm +2 -2
  1337. package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin.pm +2 -2
  1338. package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Aws.pm +1 -1
  1339. package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Azuresecrets.pm +1 -1
  1340. package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Boru.pm +1 -1
  1341. package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Doppler.pm +1 -1
  1342. package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Gcpsecrets.pm +1 -1
  1343. package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Hashicorp.pm +1 -1
  1344. package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Httpjson.pm +1 -1
  1345. package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Infisical.pm +1 -1
  1346. package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Minivault.pm +1 -1
  1347. package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Onepassword.pm +1 -1
  1348. package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Proc.pm +1 -1
  1349. package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Secretspec.pm +1 -1
  1350. package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Sigv4.pm +1 -1
  1351. package/project/.sdk/tm/perl/feature/secrets/sekreto/Voxgig/Sekreto/Addr.pm +1 -1
  1352. package/project/.sdk/tm/perl/feature/secrets/sekreto/Voxgig/Sekreto/Providers.pm +1 -1
  1353. package/project/.sdk/tm/perl/feature/secrets/sekreto/Voxgig/Sekreto.pm +1 -1
  1354. package/project/.sdk/tm/perl/feature/secrets_feature.pm +2 -0
  1355. package/project/.sdk/tm/perl/feature/validate_feature.pm +4 -5
  1356. package/project/.sdk/tm/perl/lib/Voxgig/Struct.pm +1082 -149
  1357. package/project/.sdk/tm/perl/t/feature/secrets/secrets.t +105 -0
  1358. package/project/.sdk/tm/perl/t/feature_corpus.t +1 -1
  1359. package/project/.sdk/tm/perl/t/omni.pm +16 -6
  1360. package/project/.sdk/tm/perl/t/primary_utility.t +151 -2
  1361. package/project/.sdk/tm/perl/t/runner.pm +1 -1
  1362. package/project/.sdk/tm/perl/t/struct_utility.t +19 -11
  1363. package/project/.sdk/tm/perl/t/vendor/omni/Voxgig/Omni/Runner.pm +1 -1
  1364. package/project/.sdk/tm/perl/t/vendor/omni/Voxgig/Omni/Util.pm +1 -1
  1365. package/project/.sdk/tm/perl/t/vendor/omni/Voxgig/Omni.pm +1 -1
  1366. package/project/.sdk/tm/perl/utility/clean.pm +130 -15
  1367. package/project/.sdk/tm/perl/utility/fetcher.pm +18 -5
  1368. package/project/.sdk/tm/perl/utility/make_error.pm +4 -4
  1369. package/project/.sdk/tm/perl/utility/make_options.pm +5 -5
  1370. package/project/.sdk/tm/perl/utility/media.pm +29 -0
  1371. package/project/.sdk/tm/perl/utility/result_body.pm +6 -13
  1372. package/project/.sdk/tm/perl/utility/transform_response.pm +3 -0
  1373. package/project/.sdk/tm/php/Makefile +4 -3
  1374. package/project/.sdk/tm/php/core/Control.php +3 -2
  1375. package/project/.sdk/tm/php/core/Helpers.php +49 -0
  1376. package/project/.sdk/tm/php/core/UtilityType.php +2 -0
  1377. package/project/.sdk/tm/php/feature/SecretsFeature.php +2 -0
  1378. package/project/.sdk/tm/php/feature/ValidateFeature.php +6 -5
  1379. package/project/.sdk/tm/php/feature/secrets/plugin/Capability.php +2 -2
  1380. package/project/.sdk/tm/php/feature/secrets/plugin/Catalog.php +2 -2
  1381. package/project/.sdk/tm/php/feature/secrets/plugin/Config.php +2 -2
  1382. package/project/.sdk/tm/php/feature/secrets/plugin/Depend.php +2 -2
  1383. package/project/.sdk/tm/php/feature/secrets/plugin/Env.php +2 -2
  1384. package/project/.sdk/tm/php/feature/secrets/plugin/Export.php +2 -2
  1385. package/project/.sdk/tm/php/feature/secrets/plugin/Graph.php +2 -2
  1386. package/project/.sdk/tm/php/feature/secrets/plugin/Host.php +2 -2
  1387. package/project/.sdk/tm/php/feature/secrets/plugin/Order.php +2 -2
  1388. package/project/.sdk/tm/php/feature/secrets/plugin/Point.php +2 -2
  1389. package/project/.sdk/tm/php/feature/secrets/plugin/Ref.php +2 -2
  1390. package/project/.sdk/tm/php/feature/secrets/plugin/Resolve.php +2 -2
  1391. package/project/.sdk/tm/php/feature/secrets/plugin/Types.php +2 -2
  1392. package/project/.sdk/tm/php/feature/secrets/plugin/Version.php +2 -2
  1393. package/project/.sdk/tm/php/feature/secrets/plugin/plugin.php +2 -2
  1394. package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/aws.php +2 -2
  1395. package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/azuresecrets.php +2 -2
  1396. package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/boru.php +2 -2
  1397. package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/doppler.php +2 -2
  1398. package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/gcpsecrets.php +2 -2
  1399. package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/hashicorp.php +2 -2
  1400. package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/httpjson.php +2 -2
  1401. package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/infisical.php +2 -2
  1402. package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/minivault.php +2 -2
  1403. package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/onepassword.php +2 -2
  1404. package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/runcmd.php +2 -2
  1405. package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/secretspec.php +2 -2
  1406. package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/sigv4.php +2 -2
  1407. package/project/.sdk/tm/php/feature/secrets/sekreto/src/Addr.php +2 -2
  1408. package/project/.sdk/tm/php/feature/secrets/sekreto/src/Providers.php +2 -2
  1409. package/project/.sdk/tm/php/feature/secrets/sekreto/src/Sekreto.php +2 -2
  1410. package/project/.sdk/tm/php/test/FeatureCorpusTest.php +1 -1
  1411. package/project/.sdk/tm/php/test/Omni.php +1 -1
  1412. package/project/.sdk/tm/php/test/PipelineTest.php +146 -1
  1413. package/project/.sdk/tm/php/test/PrimaryUtilityTest.php +23 -1
  1414. package/project/.sdk/tm/php/test/Runner.php +1 -1
  1415. package/project/.sdk/tm/php/test/StructUtilityTest.php +65 -116
  1416. package/project/.sdk/tm/php/test/feature/secrets/SecretsTest.php +119 -2
  1417. package/project/.sdk/tm/php/test/vendor/omni/Runner.php +2 -2
  1418. package/project/.sdk/tm/php/test/vendor/omni/Util.php +2 -2
  1419. package/project/.sdk/tm/php/utility/Clean.php +119 -19
  1420. package/project/.sdk/tm/php/utility/Fetcher.php +24 -7
  1421. package/project/.sdk/tm/php/utility/MakeError.php +4 -5
  1422. package/project/.sdk/tm/php/utility/MakeOptions.php +9 -5
  1423. package/project/.sdk/tm/php/utility/Media.php +29 -0
  1424. package/project/.sdk/tm/php/utility/PrepareBody.php +7 -5
  1425. package/project/.sdk/tm/php/utility/Register.php +1 -0
  1426. package/project/.sdk/tm/php/utility/ResultBody.php +6 -16
  1427. package/project/.sdk/tm/php/utility/TransformResponse.php +5 -0
  1428. package/project/.sdk/tm/php/utility/struct/Struct.php +1933 -530
  1429. package/project/.sdk/tm/py/Makefile +3 -2
  1430. package/project/.sdk/tm/py/pkg/core/utility_type.py +2 -0
  1431. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/__init__.py +1 -1
  1432. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/capability.py +1 -1
  1433. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/catalog.py +1 -1
  1434. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/config.py +1 -1
  1435. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/depend.py +1 -1
  1436. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/env.py +1 -1
  1437. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/export.py +1 -1
  1438. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/graph.py +1 -1
  1439. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/host.py +1 -1
  1440. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/order.py +1 -1
  1441. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/point.py +1 -1
  1442. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/ref.py +1 -1
  1443. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/resolve.py +1 -1
  1444. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/types.py +1 -1
  1445. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/version.py +1 -1
  1446. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/__init__.py +1 -1
  1447. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/addr.py +1 -1
  1448. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/aws.py +1 -1
  1449. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/azuresecrets.py +1 -1
  1450. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/boru.py +1 -1
  1451. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/doppler.py +1 -1
  1452. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/gcpsecrets.py +1 -1
  1453. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/hashicorp.py +1 -1
  1454. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/httpjson.py +1 -1
  1455. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/infisical.py +1 -1
  1456. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/minivault.py +1 -1
  1457. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/onepassword.py +1 -1
  1458. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/secretspec.py +1 -1
  1459. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/sigv4.py +1 -1
  1460. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/providers.py +1 -1
  1461. package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/sekreto.py +1 -1
  1462. package/project/.sdk/tm/py/pkg/feature/secrets_feature.py +12 -1
  1463. package/project/.sdk/tm/py/pkg/feature/validate_feature.py +4 -5
  1464. package/project/.sdk/tm/py/pkg/utility/clean.py +104 -16
  1465. package/project/.sdk/tm/py/pkg/utility/fetcher.py +64 -4
  1466. package/project/.sdk/tm/py/pkg/utility/make_error.py +4 -4
  1467. package/project/.sdk/tm/py/pkg/utility/make_options.py +5 -5
  1468. package/project/.sdk/tm/py/pkg/utility/media.py +24 -0
  1469. package/project/.sdk/tm/py/pkg/utility/register.py +2 -1
  1470. package/project/.sdk/tm/py/pkg/utility/result_body.py +7 -12
  1471. package/project/.sdk/tm/py/pkg/utility/voxgig_struct/voxgig_struct.py +1057 -198
  1472. package/project/.sdk/tm/py/test/feature/secrets/test_secrets.py +124 -0
  1473. package/project/.sdk/tm/py/test/feature_harness.py +6 -6
  1474. package/project/.sdk/tm/py/test/omni.py +1 -1
  1475. package/project/.sdk/tm/py/test/runner.py +6 -4
  1476. package/project/.sdk/tm/py/test/test_feature_corpus.py +2 -2
  1477. package/project/.sdk/tm/py/test/test_pipeline.py +1 -1
  1478. package/project/.sdk/tm/py/test/test_primary_utility.py +135 -1
  1479. package/project/.sdk/tm/py/test/test_struct_utility.py +29 -30
  1480. package/project/.sdk/tm/py/test/voxgig_omni/__init__.py +1 -1
  1481. package/project/.sdk/tm/py/test/voxgig_omni/runner.py +1 -1
  1482. package/project/.sdk/tm/py/test/voxgig_omni/util.py +1 -1
  1483. package/project/.sdk/tm/py-data/Makefile +5 -4
  1484. package/project/.sdk/tm/py-data/pkg/auth.py +8 -5
  1485. package/project/.sdk/tm/py-data/pkg/fetch.py +8 -8
  1486. package/project/.sdk/tm/py-data/test/conftest.py +6 -7
  1487. package/project/.sdk/tm/py-data/test/test_auth.py +5 -0
  1488. package/project/.sdk/tm/rb/Makefile +3 -2
  1489. package/project/.sdk/tm/rb/core/control.rb +1 -1
  1490. package/project/.sdk/tm/rb/core/utility_type.rb +2 -1
  1491. package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/capability.rb +2 -2
  1492. package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/catalog.rb +2 -2
  1493. package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/config.rb +2 -2
  1494. package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/depend.rb +2 -2
  1495. package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/env.rb +2 -2
  1496. package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/export.rb +2 -2
  1497. package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/graph.rb +2 -2
  1498. package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/host.rb +2 -2
  1499. package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/order.rb +2 -2
  1500. package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/point.rb +2 -2
  1501. package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/ref.rb +2 -2
  1502. package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/resolve.rb +2 -2
  1503. package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/types.rb +2 -2
  1504. package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/version.rb +2 -2
  1505. package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin.rb +2 -2
  1506. package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/addr.rb +2 -2
  1507. package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/aws.rb +2 -2
  1508. package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/azuresecrets.rb +2 -2
  1509. package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/boru.rb +2 -2
  1510. package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/doppler.rb +2 -2
  1511. package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/gcpsecrets.rb +2 -2
  1512. package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/hashicorp.rb +2 -2
  1513. package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/httpjson.rb +2 -2
  1514. package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/infisical.rb +2 -2
  1515. package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/minivault.rb +2 -2
  1516. package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/onepassword.rb +2 -2
  1517. package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/secretspec.rb +2 -2
  1518. package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/sigv4.rb +2 -2
  1519. package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/providers.rb +2 -2
  1520. package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/sekreto.rb +2 -2
  1521. package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto.rb +2 -2
  1522. package/project/.sdk/tm/rb/feature/secrets_feature.rb +3 -0
  1523. package/project/.sdk/tm/rb/feature/validate_feature.rb +4 -5
  1524. package/project/.sdk/tm/rb/test/feature/secrets/secrets_feature_test.rb +117 -0
  1525. package/project/.sdk/tm/rb/test/feature_corpus_test.rb +1 -1
  1526. package/project/.sdk/tm/rb/test/omni.rb +1 -1
  1527. package/project/.sdk/tm/rb/test/pipeline_test.rb +1 -1
  1528. package/project/.sdk/tm/rb/test/primary_utility_test.rb +121 -1
  1529. package/project/.sdk/tm/rb/test/runner.rb +1 -1
  1530. package/project/.sdk/tm/rb/test/struct_utility_test.rb +30 -34
  1531. package/project/.sdk/tm/rb/test/vendor/omni/runner.rb +2 -2
  1532. package/project/.sdk/tm/rb/test/vendor/omni/util.rb +2 -2
  1533. package/project/.sdk/tm/rb/test/vendor/omni/voxgig_omni.rb +2 -2
  1534. package/project/.sdk/tm/rb/utility/clean.rb +94 -14
  1535. package/project/.sdk/tm/rb/utility/fetcher.rb +12 -3
  1536. package/project/.sdk/tm/rb/utility/make_error.rb +4 -4
  1537. package/project/.sdk/tm/rb/utility/make_options.rb +5 -5
  1538. package/project/.sdk/tm/rb/utility/media.rb +21 -0
  1539. package/project/.sdk/tm/rb/utility/register.rb +1 -0
  1540. package/project/.sdk/tm/rb/utility/result_body.rb +7 -9
  1541. package/project/.sdk/tm/rb/utility/struct/voxgig_struct.rb +1569 -678
  1542. package/project/.sdk/tm/rust/Makefile +5 -5
  1543. package/project/.sdk/tm/rust/core/helpers.rs +1 -1
  1544. package/project/.sdk/tm/rust/core/response.rs +18 -2
  1545. package/project/.sdk/tm/rust/core/result.rs +4 -4
  1546. package/project/.sdk/tm/rust/core/utility_type.rs +5 -1
  1547. package/project/.sdk/tm/rust/feature/secrets/plugin/capability.rs +1 -1
  1548. package/project/.sdk/tm/rust/feature/secrets/plugin/catalog.rs +1 -1
  1549. package/project/.sdk/tm/rust/feature/secrets/plugin/config.rs +1 -1
  1550. package/project/.sdk/tm/rust/feature/secrets/plugin/depend.rs +1 -1
  1551. package/project/.sdk/tm/rust/feature/secrets/plugin/env.rs +1 -1
  1552. package/project/.sdk/tm/rust/feature/secrets/plugin/export.rs +1 -1
  1553. package/project/.sdk/tm/rust/feature/secrets/plugin/graph.rs +1 -1
  1554. package/project/.sdk/tm/rust/feature/secrets/plugin/host.rs +1 -1
  1555. package/project/.sdk/tm/rust/feature/secrets/plugin/mod.rs +1 -1
  1556. package/project/.sdk/tm/rust/feature/secrets/plugin/order.rs +1 -1
  1557. package/project/.sdk/tm/rust/feature/secrets/plugin/point.rs +1 -1
  1558. package/project/.sdk/tm/rust/feature/secrets/plugin/refs.rs +1 -1
  1559. package/project/.sdk/tm/rust/feature/secrets/plugin/resolve.rs +1 -1
  1560. package/project/.sdk/tm/rust/feature/secrets/plugin/types.rs +1 -1
  1561. package/project/.sdk/tm/rust/feature/secrets/plugin/value.rs +1 -1
  1562. package/project/.sdk/tm/rust/feature/secrets/plugin/version.rs +1 -1
  1563. package/project/.sdk/tm/rust/feature/secrets/plugins/aws/crypto.rs +1 -1
  1564. package/project/.sdk/tm/rust/feature/secrets/plugins/aws/sigv4.rs +1 -1
  1565. package/project/.sdk/tm/rust/feature/secrets/plugins/aws.rs +1 -1
  1566. package/project/.sdk/tm/rust/feature/secrets/plugins/azuresecrets.rs +1 -1
  1567. package/project/.sdk/tm/rust/feature/secrets/plugins/boru.rs +1 -1
  1568. package/project/.sdk/tm/rust/feature/secrets/plugins/doppler.rs +1 -1
  1569. package/project/.sdk/tm/rust/feature/secrets/plugins/gcpsecrets.rs +1 -1
  1570. package/project/.sdk/tm/rust/feature/secrets/plugins/hashicorp.rs +1 -1
  1571. package/project/.sdk/tm/rust/feature/secrets/plugins/httpjson/http.rs +1 -1
  1572. package/project/.sdk/tm/rust/feature/secrets/plugins/httpjson/json.rs +1 -1
  1573. package/project/.sdk/tm/rust/feature/secrets/plugins/httpjson.rs +1 -1
  1574. package/project/.sdk/tm/rust/feature/secrets/plugins/infisical.rs +1 -1
  1575. package/project/.sdk/tm/rust/feature/secrets/plugins/minivault/format.rs +1 -1
  1576. package/project/.sdk/tm/rust/feature/secrets/plugins/minivault.rs +1 -1
  1577. package/project/.sdk/tm/rust/feature/secrets/plugins/onepassword.rs +1 -1
  1578. package/project/.sdk/tm/rust/feature/secrets/plugins/secretspec.rs +1 -1
  1579. package/project/.sdk/tm/rust/feature/secrets/sekreto/addr.rs +1 -1
  1580. package/project/.sdk/tm/rust/feature/secrets/sekreto/mod.rs +1 -1
  1581. package/project/.sdk/tm/rust/feature/secrets/sekreto/providers.rs +1 -1
  1582. package/project/.sdk/tm/rust/feature/secrets/sekreto/sekreto.rs +1 -1
  1583. package/project/.sdk/tm/rust/feature/secrets.rs +10 -1
  1584. package/project/.sdk/tm/rust/tests/common/mod.rs +3 -3
  1585. package/project/.sdk/tm/rust/tests/feature/secrets/main.rs +309 -10
  1586. package/project/.sdk/tm/rust/tests/omni_resolver/mod.rs +1 -1
  1587. package/project/.sdk/tm/rust/tests/pipeline_test.rs +5 -2
  1588. package/project/.sdk/tm/rust/tests/primary_utility_test.rs +281 -13
  1589. package/project/.sdk/tm/rust/tests/server_variable_test.rs +48 -0
  1590. package/project/.sdk/tm/rust/tests/struct_utility_test.rs +9 -1
  1591. package/project/.sdk/tm/rust/tests/vendor/omni/json.rs +27 -11
  1592. package/project/.sdk/tm/rust/tests/vendor/omni/mod.rs +1 -1
  1593. package/project/.sdk/tm/rust/tests/vendor/omni/regex.rs +1 -1
  1594. package/project/.sdk/tm/rust/tests/vendor/omni/runner.rs +1 -1
  1595. package/project/.sdk/tm/rust/tests/vendor/omni/util.rs +1 -1
  1596. package/project/.sdk/tm/rust/utility/clean.rs +128 -9
  1597. package/project/.sdk/tm/rust/utility/fetcher.rs +107 -44
  1598. package/project/.sdk/tm/rust/utility/make_error.rs +4 -4
  1599. package/project/.sdk/tm/rust/utility/make_options.rs +12 -8
  1600. package/project/.sdk/tm/rust/utility/voxgigstruct/consts.rs +18 -20
  1601. package/project/.sdk/tm/rust/utility/voxgigstruct/major.rs +1328 -227
  1602. package/project/.sdk/tm/rust/utility/voxgigstruct/mini.rs +90 -95
  1603. package/project/.sdk/tm/rust/utility/voxgigstruct/mod.rs +12 -8
  1604. package/project/.sdk/tm/rust/utility/voxgigstruct/ordered_map.rs +3 -1
  1605. package/project/.sdk/tm/rust/utility/voxgigstruct/re.rs +49 -6
  1606. package/project/.sdk/tm/rust/utility/voxgigstruct/value.rs +5 -2
  1607. package/project/.sdk/tm/scala/Makefile +4 -4
  1608. package/project/.sdk/tm/scala/core/Response.scala +19 -2
  1609. package/project/.sdk/tm/scala/core/Result.scala +2 -2
  1610. package/project/.sdk/tm/scala/core/SdkClient.scala +4 -4
  1611. package/project/.sdk/tm/scala/core/Types.scala +3 -0
  1612. package/project/.sdk/tm/scala/core/Utility.scala +2 -0
  1613. package/project/.sdk/tm/scala/feature/SecretsFeature.scala +2 -0
  1614. package/project/.sdk/tm/scala/feature/ValidateFeature.scala +4 -5
  1615. package/project/.sdk/tm/scala/feature/secrets/plugin/Capability.scala +2 -2
  1616. package/project/.sdk/tm/scala/feature/secrets/plugin/Config.scala +2 -2
  1617. package/project/.sdk/tm/scala/feature/secrets/plugin/Depend.scala +2 -2
  1618. package/project/.sdk/tm/scala/feature/secrets/plugin/Env.scala +2 -2
  1619. package/project/.sdk/tm/scala/feature/secrets/plugin/Export.scala +2 -2
  1620. package/project/.sdk/tm/scala/feature/secrets/plugin/Graph.scala +2 -2
  1621. package/project/.sdk/tm/scala/feature/secrets/plugin/Host.scala +2 -2
  1622. package/project/.sdk/tm/scala/feature/secrets/plugin/Json.scala +2 -2
  1623. package/project/.sdk/tm/scala/feature/secrets/plugin/Order.scala +2 -2
  1624. package/project/.sdk/tm/scala/feature/secrets/plugin/Plugin.scala +2 -2
  1625. package/project/.sdk/tm/scala/feature/secrets/plugin/Point.scala +2 -2
  1626. package/project/.sdk/tm/scala/feature/secrets/plugin/Refs.scala +2 -2
  1627. package/project/.sdk/tm/scala/feature/secrets/plugin/Resolve.scala +2 -2
  1628. package/project/.sdk/tm/scala/feature/secrets/plugin/Types.scala +2 -2
  1629. package/project/.sdk/tm/scala/feature/secrets/plugin/Value.scala +2 -2
  1630. package/project/.sdk/tm/scala/feature/secrets/plugin/Version.scala +2 -2
  1631. package/project/.sdk/tm/scala/feature/secrets/sekreto/Json.scala +2 -2
  1632. package/project/.sdk/tm/scala/feature/secrets/sekreto/Provider.scala +2 -2
  1633. package/project/.sdk/tm/scala/feature/secrets/sekreto/Providers.scala +2 -2
  1634. package/project/.sdk/tm/scala/feature/secrets/sekreto/Sekreto.scala +2 -2
  1635. package/project/.sdk/tm/scala/feature/secrets/sekreto/Spec.scala +2 -2
  1636. package/project/.sdk/tm/scala/feature/secrets/sekreto/Support.scala +2 -2
  1637. package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Aws.scala +2 -2
  1638. package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Azuresecrets.scala +2 -2
  1639. package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Boru.scala +2 -2
  1640. package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Doppler.scala +2 -2
  1641. package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Gcpsecrets.scala +2 -2
  1642. package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Hashicorp.scala +2 -2
  1643. package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Httpjson.scala +2 -2
  1644. package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Infisical.scala +2 -2
  1645. package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Minivault.scala +2 -2
  1646. package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Onepassword.scala +2 -2
  1647. package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Secretspec.scala +2 -2
  1648. package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Sigv4.scala +2 -2
  1649. package/project/.sdk/tm/scala/sdktest/PrimaryCorpus.scala +10 -4
  1650. package/project/.sdk/tm/scala/sdktest/SdkTestMain.scala +219 -3
  1651. package/project/.sdk/tm/scala/sdktest/StructCorpus.scala +20 -14
  1652. package/project/.sdk/tm/scala/sdktest/feature/secrets/SecretsTestMain.scala +108 -0
  1653. package/project/.sdk/tm/scala/sdktest/vendor/omni/Json.scala +2 -2
  1654. package/project/.sdk/tm/scala/sdktest/vendor/omni/Runner.scala +2 -2
  1655. package/project/.sdk/tm/scala/sdktest/vendor/omni/Util.scala +2 -2
  1656. package/project/.sdk/tm/scala/utility/Fetcher.scala +101 -14
  1657. package/project/.sdk/tm/scala/utility/Make.scala +4 -4
  1658. package/project/.sdk/tm/scala/utility/Misc.scala +133 -13
  1659. package/project/.sdk/tm/scala/utility/Register.scala +1 -0
  1660. package/project/.sdk/tm/scala/utility/Transform.scala +6 -1
  1661. package/project/.sdk/tm/scala/utility/struct/Struct.java +1267 -253
  1662. package/project/.sdk/tm/scala/utility/struct/voxgig_struct.scala +909 -202
  1663. package/project/.sdk/tm/swift/Makefile +5 -5
  1664. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Condense.swift +351 -0
  1665. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Constants.swift +7 -4
  1666. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Inject.swift +39 -24
  1667. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Injection.swift +51 -14
  1668. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/JSON.swift +4 -1
  1669. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Merge.swift +3 -0
  1670. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Minor.swift +190 -77
  1671. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/OrderedDictionary.swift +3 -0
  1672. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Path.swift +37 -8
  1673. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Select.swift +37 -20
  1674. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Transform.swift +67 -46
  1675. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Validate.swift +602 -110
  1676. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Value.swift +22 -16
  1677. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Walk.swift +9 -1
  1678. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Response.swift +20 -2
  1679. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Result.swift +2 -2
  1680. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Support.swift +15 -0
  1681. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Utility.swift +2 -0
  1682. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/SecretsFeature.swift +2 -0
  1683. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TestFeature.swift +6 -6
  1684. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/ValidateFeature.swift +5 -6
  1685. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Capability.swift +2 -2
  1686. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Catalog.swift +2 -2
  1687. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Config.swift +2 -2
  1688. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Depend.swift +2 -2
  1689. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Env.swift +2 -2
  1690. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Export.swift +2 -2
  1691. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Graph.swift +2 -2
  1692. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Host.swift +2 -2
  1693. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Json.swift +2 -2
  1694. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Order.swift +2 -2
  1695. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Point.swift +2 -2
  1696. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Refs.swift +2 -2
  1697. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Resolve.swift +2 -2
  1698. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Types.swift +2 -2
  1699. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Value.swift +2 -2
  1700. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Version.swift +2 -2
  1701. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Aws.swift +2 -2
  1702. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Azuresecrets.swift +2 -2
  1703. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Boru.swift +2 -2
  1704. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Crypto.swift +2 -2
  1705. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Doppler.swift +2 -2
  1706. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Gcpsecrets.swift +2 -2
  1707. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Hashicorp.swift +2 -2
  1708. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Httpjson.swift +2 -2
  1709. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Infisical.swift +2 -2
  1710. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Onepassword.swift +2 -2
  1711. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Proc.swift +2 -2
  1712. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Secretspec.swift +2 -2
  1713. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Sigv4.swift +2 -2
  1714. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Addr.swift +2 -2
  1715. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Json.swift +2 -2
  1716. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Provider.swift +2 -2
  1717. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Providers.swift +2 -2
  1718. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Sekreto.swift +2 -2
  1719. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Fetcher.swift +24 -8
  1720. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeError.swift +4 -4
  1721. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeOptions.swift +7 -7
  1722. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Register.swift +1 -0
  1723. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/ResultUtil.swift +130 -30
  1724. package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/OmniResolver.swift +2 -2
  1725. package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/PipelineTest.swift +1 -1
  1726. package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/PrimaryUtilityTest.swift +191 -1
  1727. package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/Runner.swift +3 -3
  1728. package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/StructUtilityTest.swift +36 -14
  1729. package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/feature/secrets/SecretsFeatureTest.swift +167 -1
  1730. package/project/.sdk/tm/swift/Tests/vendor/omni/Json.swift +32 -8
  1731. package/project/.sdk/tm/swift/Tests/vendor/omni/Runner.swift +2 -2
  1732. package/project/.sdk/tm/swift/Tests/vendor/omni/Util.swift +2 -2
  1733. package/project/.sdk/tm/ts/Makefile +3 -2
  1734. package/project/.sdk/tm/ts/src/feature/secrets/SecretsFeature.ts +2 -0
  1735. package/project/.sdk/tm/ts/src/feature/secrets/plugin/Capability.ts +1 -1
  1736. package/project/.sdk/tm/ts/src/feature/secrets/plugin/Catalog.ts +1 -1
  1737. package/project/.sdk/tm/ts/src/feature/secrets/plugin/Config.ts +1 -1
  1738. package/project/.sdk/tm/ts/src/feature/secrets/plugin/Depend.ts +1 -1
  1739. package/project/.sdk/tm/ts/src/feature/secrets/plugin/Env.ts +1 -1
  1740. package/project/.sdk/tm/ts/src/feature/secrets/plugin/Export.ts +1 -1
  1741. package/project/.sdk/tm/ts/src/feature/secrets/plugin/FeatureHost.ts +1 -1
  1742. package/project/.sdk/tm/ts/src/feature/secrets/plugin/Graph.ts +1 -1
  1743. package/project/.sdk/tm/ts/src/feature/secrets/plugin/Host.ts +1 -1
  1744. package/project/.sdk/tm/ts/src/feature/secrets/plugin/Order.ts +1 -1
  1745. package/project/.sdk/tm/ts/src/feature/secrets/plugin/Point.ts +1 -1
  1746. package/project/.sdk/tm/ts/src/feature/secrets/plugin/Ref.ts +1 -1
  1747. package/project/.sdk/tm/ts/src/feature/secrets/plugin/Resolve.ts +1 -1
  1748. package/project/.sdk/tm/ts/src/feature/secrets/plugin/Types.ts +1 -1
  1749. package/project/.sdk/tm/ts/src/feature/secrets/plugin/Version.ts +1 -1
  1750. package/project/.sdk/tm/ts/src/feature/secrets/plugin/index.ts +1 -1
  1751. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/Sekreto.ts +1 -1
  1752. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/index.ts +1 -1
  1753. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/aws.ts +1 -1
  1754. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/azuresecrets.ts +1 -1
  1755. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/boru.ts +1 -1
  1756. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/doppler.ts +1 -1
  1757. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/gcpsecrets.ts +1 -1
  1758. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/hashicorp.ts +1 -1
  1759. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/httpjson.ts +1 -1
  1760. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/infisical.ts +1 -1
  1761. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/minivault.ts +1 -1
  1762. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/onepassword.ts +1 -1
  1763. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/secretspec.ts +1 -1
  1764. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/sigv4.ts +1 -1
  1765. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/addr.ts +1 -1
  1766. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/builtin.ts +1 -1
  1767. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/dotenv.ts +1 -1
  1768. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/env.ts +1 -1
  1769. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/file.ts +1 -1
  1770. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/memory.ts +1 -1
  1771. package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/support.ts +1 -1
  1772. package/project/.sdk/tm/ts/src/utility/CleanUtility.ts +115 -10
  1773. package/project/.sdk/tm/ts/src/utility/FetcherUtility.ts +100 -1
  1774. package/project/.sdk/tm/ts/src/utility/MakeErrorUtility.ts +2 -1
  1775. package/project/.sdk/tm/ts/src/utility/MediaUtility.ts +32 -0
  1776. package/project/.sdk/tm/ts/src/utility/ResultBodyUtility.ts +5 -14
  1777. package/project/.sdk/tm/ts/src/utility/StructUtility.ts +708 -199
  1778. package/project/.sdk/tm/ts/src/utility/Utility.ts +2 -1
  1779. package/project/.sdk/tm/ts/test/feature/secrets/Secrets.test.ts +93 -2
  1780. package/project/.sdk/tm/ts/test/live-entity.ts +8 -8
  1781. package/project/.sdk/tm/ts/test/utility/PrimaryUtility.test.ts +9 -1
  1782. package/project/.sdk/tm/ts/test/utility/StructUtility.test.ts +32 -27
  1783. package/project/.sdk/tm/ts/test/utility/index.ts +1 -1
  1784. package/project/.sdk/tm/ts/test/vendor/omni/Runner.ts +1 -1
  1785. package/project/.sdk/tm/ts/test/vendor/omni/Util.ts +1 -1
  1786. package/project/.sdk/tm/ts/test/vendor/omni/index.ts +1 -1
  1787. package/project/.sdk/tm/zig/core/helpers.zig +2 -2
  1788. package/project/.sdk/tm/zig/core/result.zig +2 -2
  1789. package/project/.sdk/tm/zig/core/types.zig +2 -2
  1790. package/project/.sdk/tm/zig/core/utility.zig +96 -20
  1791. package/project/.sdk/tm/zig/feature/netsim.zig +1 -1
  1792. package/project/.sdk/tm/zig/feature/rbac.zig +1 -1
  1793. package/project/.sdk/tm/zig/feature/secrets/plugin/capability.zig +2 -2
  1794. package/project/.sdk/tm/zig/feature/secrets/plugin/catalog.zig +2 -2
  1795. package/project/.sdk/tm/zig/feature/secrets/plugin/config.zig +2 -2
  1796. package/project/.sdk/tm/zig/feature/secrets/plugin/depend.zig +2 -2
  1797. package/project/.sdk/tm/zig/feature/secrets/plugin/env.zig +2 -2
  1798. package/project/.sdk/tm/zig/feature/secrets/plugin/export.zig +2 -2
  1799. package/project/.sdk/tm/zig/feature/secrets/plugin/graph.zig +2 -2
  1800. package/project/.sdk/tm/zig/feature/secrets/plugin/host.zig +2 -2
  1801. package/project/.sdk/tm/zig/feature/secrets/plugin/inst.zig +2 -2
  1802. package/project/.sdk/tm/zig/feature/secrets/plugin/order.zig +2 -2
  1803. package/project/.sdk/tm/zig/feature/secrets/plugin/plugin.zig +2 -2
  1804. package/project/.sdk/tm/zig/feature/secrets/plugin/point.zig +2 -2
  1805. package/project/.sdk/tm/zig/feature/secrets/plugin/ref.zig +2 -2
  1806. package/project/.sdk/tm/zig/feature/secrets/plugin/resolve.zig +2 -2
  1807. package/project/.sdk/tm/zig/feature/secrets/plugin/types.zig +2 -2
  1808. package/project/.sdk/tm/zig/feature/secrets/plugin/value.zig +2 -2
  1809. package/project/.sdk/tm/zig/feature/secrets/plugin/version.zig +2 -2
  1810. package/project/.sdk/tm/zig/feature/secrets/plugins/aws.zig +2 -2
  1811. package/project/.sdk/tm/zig/feature/secrets/plugins/azuresecrets.zig +2 -2
  1812. package/project/.sdk/tm/zig/feature/secrets/plugins/boru.zig +2 -2
  1813. package/project/.sdk/tm/zig/feature/secrets/plugins/doppler.zig +2 -2
  1814. package/project/.sdk/tm/zig/feature/secrets/plugins/gcpsecrets.zig +2 -2
  1815. package/project/.sdk/tm/zig/feature/secrets/plugins/hashicorp.zig +2 -2
  1816. package/project/.sdk/tm/zig/feature/secrets/plugins/httpjson.zig +2 -2
  1817. package/project/.sdk/tm/zig/feature/secrets/plugins/infisical.zig +2 -2
  1818. package/project/.sdk/tm/zig/feature/secrets/plugins/minivault.zig +2 -2
  1819. package/project/.sdk/tm/zig/feature/secrets/plugins/onepassword.zig +2 -2
  1820. package/project/.sdk/tm/zig/feature/secrets/plugins/secretspec.zig +2 -2
  1821. package/project/.sdk/tm/zig/feature/secrets/plugins/sigv4.zig +2 -2
  1822. package/project/.sdk/tm/zig/feature/secrets/sekreto/addr.zig +2 -2
  1823. package/project/.sdk/tm/zig/feature/secrets/sekreto/builtins.zig +2 -2
  1824. package/project/.sdk/tm/zig/feature/secrets/sekreto/provider.zig +2 -2
  1825. package/project/.sdk/tm/zig/feature/secrets/sekreto/sekreto.zig +2 -2
  1826. package/project/.sdk/tm/zig/feature/secrets.zig +3 -1
  1827. package/project/.sdk/tm/zig/feature/validate.zig +4 -5
  1828. package/project/.sdk/tm/zig/test/feature/secrets/secrets_test.zig +199 -39
  1829. package/project/.sdk/tm/zig/test/fh.zig +11 -0
  1830. package/project/.sdk/tm/zig/test/gotcha_test.zig +11 -10
  1831. package/project/.sdk/tm/zig/test/omniresolver.zig +1 -1
  1832. package/project/.sdk/tm/zig/test/pipeline_test.zig +1 -1
  1833. package/project/.sdk/tm/zig/test/primary_utility_test.zig +17 -9
  1834. package/project/.sdk/tm/zig/test/server_variable_test.zig +46 -0
  1835. package/project/.sdk/tm/zig/test/struct_corpus.zig +54 -34
  1836. package/project/.sdk/tm/zig/test/vendor/omni/omni.zig +2 -2
  1837. package/project/.sdk/tm/zig/test/vendor/omni/regex.zig +2 -2
  1838. package/project/.sdk/tm/zig/utility/voxgigstruct/regex.zig +35 -16
  1839. package/project/.sdk/tm/zig/utility/voxgigstruct/struct.zig +1680 -563
  1840. package/project/sdkgen-package.json +1 -1
  1841. package/src/action/check.ts +82 -4
  1842. package/src/action/doctor.ts +70 -6
  1843. package/src/action/package.ts +1 -13
  1844. package/src/action/remove.ts +19 -5
  1845. package/src/action/resolve.ts +11 -4
  1846. package/src/action/target.ts +75 -32
  1847. package/src/admin/status.ts +25 -5
  1848. package/src/cmp/AgentGuide.ts +57 -32
  1849. package/src/cmp/AgentGuideContent.ts +26 -19
  1850. package/src/cmp/AgentGuideFeature.ts +15 -6
  1851. package/src/cmp/AgentGuideTop.ts +28 -16
  1852. package/src/cmp/Changelog.ts +46 -6
  1853. package/src/cmp/Deploy.ts +76 -25
  1854. package/src/cmp/Entity.ts +1 -1
  1855. package/src/cmp/ExternalTarget.ts +6 -0
  1856. package/src/cmp/Feature.ts +3 -3
  1857. package/src/cmp/FeatureDocs.ts +4 -2
  1858. package/src/cmp/License.ts +33 -10
  1859. package/src/cmp/Main.ts +1 -1
  1860. package/src/cmp/PublishWorkflow.ts +66 -58
  1861. package/src/cmp/Readme.ts +0 -2
  1862. package/src/cmp/ReadmeErrors.ts +82 -81
  1863. package/src/cmp/ReadmeExplanation.ts +7 -11
  1864. package/src/cmp/ReadmeFeatures.ts +16 -9
  1865. package/src/cmp/ReadmeIntro.ts +1 -1
  1866. package/src/cmp/ReadmeModel.ts +17 -11
  1867. package/src/cmp/ReadmeOptions.ts +3 -16
  1868. package/src/cmp/ReadmeQuick.ts +11 -2
  1869. package/src/cmp/ReadmeRefFeatures.ts +38 -33
  1870. package/src/cmp/ReadmeStation.ts +4 -5
  1871. package/src/cmp/ReadmeTop.ts +145 -102
  1872. package/src/cmp/Registered.ts +1 -1
  1873. package/src/cmp/Security.ts +32 -5
  1874. package/src/cmp/Test.ts +1 -1
  1875. package/src/helpers/alongside.ts +16 -19
  1876. package/src/helpers/applicability.ts +16 -1
  1877. package/src/helpers/canonSpec.ts +56 -10
  1878. package/src/helpers/clientOptions.ts +67 -0
  1879. package/src/helpers/component.ts +11 -1
  1880. package/src/helpers/consumer.ts +62 -0
  1881. package/src/helpers/definitionPlan.ts +0 -1
  1882. package/src/helpers/doctext.ts +12 -2
  1883. package/src/helpers/facts.ts +243 -5
  1884. package/src/helpers/flowGuard.ts +23 -8
  1885. package/src/helpers/generated.ts +3 -1
  1886. package/src/helpers/graphqlPoint.ts +20 -1
  1887. package/src/helpers/guardModel.ts +50 -0
  1888. package/src/helpers/manifest.ts +19 -0
  1889. package/src/helpers/mcpTools.ts +15 -3
  1890. package/src/helpers/naming.ts +3 -2
  1891. package/src/helpers/opShape.ts +56 -18
  1892. package/src/helpers/optional.ts +0 -1
  1893. package/src/helpers/optspec.ts +22 -5
  1894. package/src/helpers/packageMeta.ts +142 -45
  1895. package/src/helpers/placement.ts +114 -0
  1896. package/src/helpers/readerdir.ts +33 -0
  1897. package/src/helpers/semver.ts +26 -0
  1898. package/src/helpers/serverVars.ts +4 -2
  1899. package/src/helpers/shipped.ts +13 -0
  1900. package/src/helpers/sourcestring.ts +55 -0
  1901. package/src/helpers/stdrep.ts +9 -4
  1902. package/src/helpers/surface.ts +100 -0
  1903. package/src/helpers/targetguard.ts +91 -0
  1904. package/src/helpers/testPolicy.ts +3 -3
  1905. package/src/helpers/text.ts +22 -0
  1906. package/src/helpers/textguard.ts +208 -0
  1907. package/src/helpers/title.ts +59 -0
  1908. package/src/sdkgen.ts +89 -88
  1909. package/src/testkit.ts +12 -0
  1910. package/src/utility.ts +12 -5
  1911. package/project/.sdk/src/cmp/c/ReadmeOptions_c.ts +0 -65
  1912. package/project/.sdk/src/cmp/clojure/ReadmeOptions_clojure.ts +0 -61
  1913. package/project/.sdk/src/cmp/cpp/ReadmeOptions_cpp.ts +0 -62
  1914. package/project/.sdk/src/cmp/csharp/ReadmeOptions_csharp.ts +0 -60
  1915. package/project/.sdk/src/cmp/elixir/ReadmeOptions_elixir.ts +0 -62
  1916. package/project/.sdk/src/cmp/go/ReadmeOptions_go.ts +0 -59
  1917. package/project/.sdk/src/cmp/java/ReadmeOptions_java.ts +0 -61
  1918. package/project/.sdk/src/cmp/js/ReadmeOptions_js.ts +0 -59
  1919. package/project/.sdk/src/cmp/kotlin/ReadmeOptions_kotlin.ts +0 -61
  1920. package/project/.sdk/src/cmp/lua/ReadmeOptions_lua.ts +0 -59
  1921. package/project/.sdk/src/cmp/ocaml/ReadmeOptions_ocaml.ts +0 -59
  1922. package/project/.sdk/src/cmp/perl/ReadmeOptions_perl.ts +0 -59
  1923. package/project/.sdk/src/cmp/php/ReadmeOptions_php.ts +0 -59
  1924. package/project/.sdk/src/cmp/py/ReadmeOptions_py.ts +0 -59
  1925. package/project/.sdk/src/cmp/rb/ReadmeOptions_rb.ts +0 -59
  1926. package/project/.sdk/src/cmp/rust/ReadmeOptions_rust.ts +0 -60
  1927. package/project/.sdk/src/cmp/scala/ReadmeOptions_scala.ts +0 -61
  1928. package/project/.sdk/src/cmp/swift/ReadmeOptions_swift.ts +0 -62
  1929. package/project/.sdk/src/cmp/ts/ReadmeOptions_ts.ts +0 -59
  1930. package/project/.sdk/src/cmp/zig/ReadmeOptions_zig.ts +0 -60
  1931. package/project/.sdk/tm/c/LICENSE +0 -22
  1932. package/project/.sdk/tm/c/VERSION +0 -1
  1933. package/project/.sdk/tm/clojure/LICENSE +0 -22
  1934. package/project/.sdk/tm/clojure/VERSION +0 -1
  1935. package/project/.sdk/tm/cpp/LICENSE +0 -22
  1936. package/project/.sdk/tm/cpp/VERSION +0 -1
  1937. package/project/.sdk/tm/csharp/LICENSE +0 -22
  1938. package/project/.sdk/tm/csharp/VERSION +0 -1
  1939. package/project/.sdk/tm/elixir/LICENSE +0 -21
  1940. package/project/.sdk/tm/elixir/VERSION +0 -1
  1941. package/project/.sdk/tm/go/LICENSE +0 -22
  1942. package/project/.sdk/tm/go/VERSION +0 -1
  1943. package/project/.sdk/tm/java/LICENSE +0 -22
  1944. package/project/.sdk/tm/java/VERSION +0 -1
  1945. package/project/.sdk/tm/js/LICENSE +0 -22
  1946. package/project/.sdk/tm/kotlin/LICENSE +0 -22
  1947. package/project/.sdk/tm/kotlin/VERSION +0 -1
  1948. package/project/.sdk/tm/lua/LICENSE +0 -22
  1949. package/project/.sdk/tm/ocaml/LICENSE +0 -21
  1950. package/project/.sdk/tm/ocaml/VERSION +0 -1
  1951. package/project/.sdk/tm/perl/LICENSE +0 -22
  1952. package/project/.sdk/tm/php/LICENSE +0 -22
  1953. package/project/.sdk/tm/php/VERSION +0 -1
  1954. package/project/.sdk/tm/py/LICENSE +0 -22
  1955. package/project/.sdk/tm/py-data/LICENSE +0 -22
  1956. package/project/.sdk/tm/rb/LICENSE +0 -22
  1957. package/project/.sdk/tm/rust/LICENSE +0 -22
  1958. package/project/.sdk/tm/rust/VERSION +0 -1
  1959. package/project/.sdk/tm/scala/LICENSE +0 -22
  1960. package/project/.sdk/tm/scala/VERSION +0 -1
  1961. package/project/.sdk/tm/swift/LICENSE +0 -22
  1962. package/project/.sdk/tm/swift/VERSION +0 -1
  1963. package/project/.sdk/tm/ts/LICENSE +0 -22
  1964. package/project/.sdk/tm/zig/LICENSE +0 -21
  1965. package/project/.sdk/tm/zig/VERSION +0 -1
@@ -1,3 +1,6 @@
1
+ // VENDORED: @voxgig/struct 0.1.4 (cpp/src/voxgig_struct.hpp)
2
+ // Source: https://github.com/voxgig/struct @ 358af9d51c90b589a295a70b2165dbe4629eaf8e [tag: sdk-20261125-1959-0]
3
+ // License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
1
4
  // Copyright (c) 2025-2026 Voxgig Ltd. MIT LICENSE.
2
5
  //
3
6
  // Voxgig Struct — main API.
@@ -13,6 +16,8 @@
13
16
  #include <cctype>
14
17
  #include <cmath>
15
18
  #include <cstdint>
19
+ #include <cstdio>
20
+ #include <cstdlib>
16
21
  #include <iomanip>
17
22
  #include <regex>
18
23
  #include <sstream>
@@ -76,10 +81,6 @@ inline const std::string& S_BOPEN() {
76
81
  return s;
77
82
  }
78
83
 
79
- inline const std::regex& R_INTEGER_KEY() {
80
- static const std::regex r("^[-0-9]+$");
81
- return r;
82
- }
83
84
  inline const std::regex& R_META_PATH() {
84
85
  static const std::regex r("^([^$]+)\\$([=~])(.+)$");
85
86
  return r;
@@ -203,6 +204,13 @@ inline Value inject(const Value& val, const Value& store, Injection* injdef = nu
203
204
  inline Value transform(const Value& data, const Value& spec, const Value& options = Value::undef());
204
205
  inline Value validate(const Value& data, const Value& spec, const Value& options = Value::undef());
205
206
  inline std::vector<Value> select(const Value& children, const Value& query);
207
+ inline bool iscondensed(const Value& val = Value::undef());
208
+
209
+ inline const std::string& S_IMMUTABLE() {
210
+ static const std::string s =
211
+ "struct: condensed structures are immutable - expand() first, then modify the copy";
212
+ return s;
213
+ }
206
214
 
207
215
  // ===========================================================================
208
216
  // strkey / getprop / setprop / delprop / getelem
@@ -226,12 +234,65 @@ inline std::string strkey(const Value& key) {
226
234
  return S_MT();
227
235
  }
228
236
 
237
+ namespace detail {
238
+
239
+ // A list key this far from zero is past any list: a write appends or prepends, a read misses.
240
+ constexpr int64_t LISTKEY_HUGE = 1000000000000000000;
241
+
242
+ // ^(0|-?[1-9][0-9]*)$, the form String(n) gives an integer n, as that integer. So "01",
243
+ // "+1", " 1", "1.0" and "-0" are not list keys.
244
+ inline bool canon_listindex(const std::string& key, int64_t& index) {
245
+ size_t j = !key.empty() && '-' == key[0] ? 1 : 0;
246
+ if (j == key.size() || ('0' == key[j] && 1 < key.size()))
247
+ return false;
248
+ int64_t i = 0;
249
+ for (; j < key.size(); j++) {
250
+ if (key[j] < '0' || '9' < key[j])
251
+ return false;
252
+ i = i < LISTKEY_HUGE / 10 ? i * 10 + (key[j] - '0') : LISTKEY_HUGE;
253
+ }
254
+ index = '-' == key[0] ? -i : i;
255
+ return true;
256
+ }
257
+
258
+ // The canonical _listkey: an integral number, or a string canon_listindex accepts.
259
+ inline bool list_key(const Value& key, int64_t& index) {
260
+ if (key.is_int()) {
261
+ index = key.as_int();
262
+ return true;
263
+ }
264
+ if (key.is_double()) {
265
+ double d = key.as_double();
266
+ if (!std::isfinite(d) || std::floor(d) != d)
267
+ return false;
268
+ if (std::fabs(d) < static_cast<double>(LISTKEY_HUGE))
269
+ index = static_cast<int64_t>(d);
270
+ else
271
+ index = 0 < d ? LISTKEY_HUGE : -LISTKEY_HUGE;
272
+ return true;
273
+ }
274
+ return key.is_string() && canon_listindex(key.as_string(), index);
275
+ }
276
+
277
+ // The element a list read selects, else -1. Only getelem counts a negative key from the end.
278
+ inline int64_t list_readindex(const Value& key) {
279
+ int64_t i = -1;
280
+ return list_key(key, i) && 0 <= i ? i : -1;
281
+ }
282
+
283
+ // A map reads a string or number key; any other key names no member.
284
+ inline bool map_readkey(const Value& key) {
285
+ return key.is_string() || key.is_number();
286
+ }
287
+
288
+ } // namespace detail
289
+
229
290
  inline Value getprop(const Value& val, const Value& key, const Value& alt) {
230
291
  if (val.is_undef() || key.is_undef())
231
292
  return alt;
232
293
  if (val.is_map()) {
233
294
  auto m = val.as_map();
234
- if (!m)
295
+ if (!m || !detail::map_readkey(key))
235
296
  return alt;
236
297
  std::string sk = strkey(key);
237
298
  Value* found = m->find(sk);
@@ -247,26 +308,10 @@ inline Value getprop(const Value& val, const Value& key, const Value& alt) {
247
308
  auto l = val.as_list();
248
309
  if (!l)
249
310
  return alt;
250
- int idx;
251
- if (key.is_int()) {
252
- idx = static_cast<int>(key.as_int());
253
- } else if (key.is_string()) {
254
- // Match TS: only accept strings that match /^[-0-9]+$/ entirely.
255
- if (!std::regex_match(key.as_string(), R_INTEGER_KEY()))
256
- return alt;
257
- try {
258
- idx = std::stoi(key.as_string());
259
- } catch (...) {
260
- return alt;
261
- }
262
- } else if (key.is_double()) {
263
- idx = static_cast<int>(key.as_double());
264
- } else {
265
- return alt;
266
- }
267
- if (idx < 0 || idx >= static_cast<int>(l->size()))
311
+ int64_t idx = detail::list_readindex(key);
312
+ if (idx < 0 || idx >= static_cast<int64_t>(l->size()))
268
313
  return alt;
269
- Value v = (*l)[idx];
314
+ Value v = (*l)[static_cast<size_t>(idx)];
270
315
  // Group A: a stored JSON null counts as "no value" — substitute the alt.
271
316
  if (v.is_undef() || v.is_null())
272
317
  return alt;
@@ -275,16 +320,6 @@ inline Value getprop(const Value& val, const Value& key, const Value& alt) {
275
320
  return alt;
276
321
  }
277
322
 
278
- // Match TS regex /^[-0-9]+$/ check.
279
- inline bool is_integer_key_string(const Value& key) {
280
- if (key.is_int() || key.is_double())
281
- return true;
282
- if (key.is_string()) {
283
- return std::regex_match(key.as_string(), R_INTEGER_KEY());
284
- }
285
- return false;
286
- }
287
-
288
323
  inline Value getelem(const Value& val, const Value& key, const Value& alt) {
289
324
  Value out = Value::undef();
290
325
  if (val.is_undef() || key.is_undef()) {
@@ -294,27 +329,13 @@ inline Value getelem(const Value& val, const Value& key, const Value& alt) {
294
329
  }
295
330
  if (val.is_list()) {
296
331
  auto l = val.as_list();
297
- int nkey;
298
- if (key.is_int()) {
299
- nkey = static_cast<int>(key.as_int());
300
- } else if (key.is_string()) {
301
- if (!is_integer_key_string(key))
302
- return alt;
303
- try {
304
- nkey = std::stoi(key.as_string());
305
- } catch (...) {
306
- return alt;
307
- }
308
- } else if (key.is_double()) {
309
- nkey = static_cast<int>(key.as_double());
310
- } else {
311
- return alt;
312
- }
313
- if (nkey < 0)
314
- nkey = static_cast<int>(l->size()) + nkey;
315
- if (nkey < 0 || nkey >= static_cast<int>(l->size()))
332
+ int64_t size = static_cast<int64_t>(l->size());
333
+ int64_t nkey = -1;
334
+ if (detail::list_key(key, nkey) && nkey < 0)
335
+ nkey += size;
336
+ if (nkey < 0 || nkey >= size)
316
337
  return alt;
317
- out = (*l)[nkey];
338
+ out = (*l)[static_cast<size_t>(nkey)];
318
339
  }
319
340
  // Group A: a stored JSON null at the slot counts as "no value" (canonical
320
341
  // `null == out` is true for both undefined and null) — substitute the alt.
@@ -335,32 +356,15 @@ inline Value lookup_v(const Value& val, const Value& key) {
335
356
  auto l = val.as_list();
336
357
  if (!l)
337
358
  return Value::undef();
338
- int idx;
339
- if (key.is_int()) {
340
- idx = static_cast<int>(key.as_int());
341
- } else if (key.is_double()) {
342
- idx = static_cast<int>(key.as_double());
343
- } else if (key.is_string()) {
344
- if (!std::regex_match(key.as_string(), R_INTEGER_KEY()))
345
- return Value::undef();
346
- try {
347
- idx = std::stoi(key.as_string());
348
- } catch (...) {
349
- return Value::undef();
350
- }
351
- } else {
352
- return Value::undef();
353
- }
354
- if (idx < 0)
355
- idx = static_cast<int>(l->size()) + idx;
356
- if (idx < 0 || idx >= static_cast<int>(l->size()))
359
+ int64_t idx = detail::list_readindex(key);
360
+ if (idx < 0 || idx >= static_cast<int64_t>(l->size()))
357
361
  return Value::undef();
358
- Value v = (*l)[idx];
362
+ Value v = (*l)[static_cast<size_t>(idx)];
359
363
  return v.is_undef() ? Value::undef() : v;
360
364
  }
361
365
  if (val.is_map()) {
362
366
  auto m = val.as_map();
363
- if (!m)
367
+ if (!m || !detail::map_readkey(key))
364
368
  return Value::undef();
365
369
  std::string sk = strkey(key);
366
370
  if (sk.empty())
@@ -376,6 +380,8 @@ inline Value lookup_v(const Value& val, const Value& key) {
376
380
  inline Value setprop(Value parent, const Value& key, const Value& val) {
377
381
  if (!iskey(key))
378
382
  return parent;
383
+ if (iscondensed(parent))
384
+ throw std::runtime_error(S_IMMUTABLE());
379
385
  if (parent.is_map()) {
380
386
  auto m = parent.as_map();
381
387
  std::string sk = strkey(key);
@@ -384,25 +390,15 @@ inline Value setprop(Value parent, const Value& key, const Value& val) {
384
390
  }
385
391
  if (parent.is_list()) {
386
392
  auto l = parent.as_list();
387
- int idx;
388
- if (key.is_int())
389
- idx = static_cast<int>(key.as_int());
390
- else if (key.is_string()) {
391
- try {
392
- idx = std::stoi(key.as_string());
393
- } catch (...) {
394
- return parent;
395
- }
396
- } else if (key.is_double())
397
- idx = static_cast<int>(key.as_double());
398
- else
393
+ int64_t idx = 0;
394
+ if (!detail::list_key(key, idx))
399
395
  return parent;
400
396
 
401
397
  if (idx >= 0) {
402
- if (idx >= static_cast<int>(l->size())) {
398
+ if (idx >= static_cast<int64_t>(l->size())) {
403
399
  l->push_back(val);
404
400
  } else {
405
- (*l)[idx] = val;
401
+ (*l)[static_cast<size_t>(idx)] = val;
406
402
  }
407
403
  } else {
408
404
  l->insert(l->begin(), val);
@@ -415,28 +411,17 @@ inline Value setprop(Value parent, const Value& key, const Value& val) {
415
411
  inline Value delprop(Value parent, const Value& key) {
416
412
  if (!iskey(key))
417
413
  return parent;
414
+ if (iscondensed(parent))
415
+ throw std::runtime_error(S_IMMUTABLE());
418
416
  if (parent.is_map()) {
419
417
  parent.as_map()->erase(strkey(key));
420
418
  return parent;
421
419
  }
422
420
  if (parent.is_list()) {
423
421
  auto l = parent.as_list();
424
- int idx;
425
- if (key.is_int())
426
- idx = static_cast<int>(key.as_int());
427
- else if (key.is_string()) {
428
- try {
429
- idx = std::stoi(key.as_string());
430
- } catch (...) {
431
- return parent;
432
- }
433
- } else if (key.is_double())
434
- idx = static_cast<int>(key.as_double());
435
- else
436
- return parent;
437
- if (idx >= 0 && idx < static_cast<int>(l->size())) {
422
+ int64_t idx = -1;
423
+ if (detail::list_key(key, idx) && 0 <= idx && idx < static_cast<int64_t>(l->size()))
438
424
  l->erase(l->begin() + idx);
439
- }
440
425
  return parent;
441
426
  }
442
427
  return parent;
@@ -493,7 +478,8 @@ inline std::vector<Value> items(const Value& v) {
493
478
  for (const auto& key : keysof(v)) {
494
479
  auto pair = std::make_shared<List>();
495
480
  pair->push_back(Value(key));
496
- pair->push_back(getprop(v, Value(key)));
481
+ // Canonical reads val[k]: a stored null is a value here (Group B).
482
+ pair->push_back(lookup_v(v, Value(key)));
497
483
  out.push_back(Value(std::move(pair)));
498
484
  }
499
485
  return out;
@@ -654,6 +640,10 @@ inline bool re_test(const std::string& pattern, const std::string& input) {
654
640
  return std::regex_search(input, std::regex(pattern));
655
641
  }
656
642
 
643
+ inline bool re_test(const std::regex& re, const std::string& input) {
644
+ return std::regex_search(input, re);
645
+ }
646
+
657
647
  inline std::vector<std::string> re_find(const std::string& pattern, const std::string& input) {
658
648
  std::smatch m;
659
649
  if (!std::regex_search(input, m, std::regex(pattern)))
@@ -1241,47 +1231,27 @@ inline Value merge_v(const Value& list, int maxdepth) {
1241
1231
  }
1242
1232
 
1243
1233
  // ===========================================================================
1244
- // pathParts — shared helper for getpath / setpath
1234
+ // pathParts — a string path's parts, shared by getpath / setpath
1245
1235
  // ===========================================================================
1246
1236
 
1247
1237
  namespace detail {
1248
- inline std::vector<std::string> path_parts(const Value& path) {
1238
+ inline std::vector<std::string> path_parts(const std::string& s) {
1249
1239
  std::vector<std::string> out;
1250
- if (path.is_string()) {
1251
- const std::string& s = path.as_string();
1252
- if (s.empty()) {
1253
- out.push_back("");
1254
- return out;
1255
- }
1256
- size_t pos = 0;
1257
- while (pos <= s.size()) {
1258
- size_t dot = s.find('.', pos);
1259
- if (dot == std::string::npos) {
1260
- out.push_back(s.substr(pos));
1261
- break;
1262
- }
1263
- out.push_back(s.substr(pos, dot - pos));
1264
- pos = dot + 1;
1265
- }
1240
+ if (s.empty()) {
1241
+ out.push_back("");
1266
1242
  return out;
1267
1243
  }
1268
- if (path.is_list()) {
1269
- auto l = path.as_list();
1270
- for (const auto& e : *l) {
1271
- if (e.is_string())
1272
- out.push_back(e.as_string());
1273
- else if (e.is_number())
1274
- out.push_back(strkey(e));
1275
- else
1276
- out.push_back(strkey(e));
1244
+ size_t pos = 0;
1245
+ while (pos <= s.size()) {
1246
+ size_t dot = s.find('.', pos);
1247
+ if (dot == std::string::npos) {
1248
+ out.push_back(s.substr(pos));
1249
+ break;
1277
1250
  }
1278
- return out;
1279
- }
1280
- if (path.is_number()) {
1281
- out.push_back(strkey(path));
1282
- return out;
1251
+ out.push_back(s.substr(pos, dot - pos));
1252
+ pos = dot + 1;
1283
1253
  }
1284
- return {};
1254
+ return out;
1285
1255
  }
1286
1256
  } // namespace detail
1287
1257
 
@@ -1290,44 +1260,39 @@ inline std::vector<std::string> path_parts(const Value& path) {
1290
1260
  // ===========================================================================
1291
1261
 
1292
1262
  inline Value setpath_v(const Value& store, const Value& path, const Value& val) {
1293
- std::vector<std::string> parts;
1294
- bool path_is_list = path.is_list();
1295
- if (path.is_undef() || path.is_null())
1296
- return Value::undef();
1297
- if (path.is_string())
1298
- parts = detail::path_parts(path);
1299
- else if (path.is_list())
1300
- parts = detail::path_parts(path);
1301
- else if (path.is_number())
1302
- parts.push_back(strkey(path));
1303
- else
1263
+ if (iscondensed(store))
1264
+ throw std::runtime_error(S_IMMUTABLE());
1265
+
1266
+ // The parts stay as given: setprop decides what a number or string key names.
1267
+ std::vector<Value> parts;
1268
+ if (path.is_string()) {
1269
+ for (const auto& part : detail::path_parts(path.as_string()))
1270
+ parts.emplace_back(part);
1271
+ } else if (path.is_list()) {
1272
+ parts.assign(path.as_list()->begin(), path.as_list()->end());
1273
+ } else if (path.is_number()) {
1274
+ parts.push_back(path);
1275
+ } else {
1304
1276
  return Value::undef();
1277
+ }
1305
1278
  if (parts.empty())
1306
1279
  return Value::undef();
1307
1280
 
1308
- // String paths only create maps (TS: "Use a string list to create list parts").
1309
- // For list paths, decide list-vs-map by whether the next part is integer.
1281
+ // A number next part makes a list; string paths only create maps.
1310
1282
  Value parent = store;
1311
1283
  for (size_t i = 0; i + 1 < parts.size(); i++) {
1312
- Value next = getprop(parent, Value(parts[i]));
1284
+ Value next = getprop(parent, parts[i]);
1313
1285
  if (!isnode(next)) {
1314
- bool make_list = false;
1315
- if (path_is_list) {
1316
- // Check the original list for whether parts[i+1] came from a number.
1317
- Value el = getprop(path, Value(static_cast<int64_t>(i + 1)));
1318
- if (el.is_number())
1319
- make_list = true;
1320
- }
1321
- next = make_list ? Value(std::make_shared<List>()) : Value(std::shared_ptr<Map>(new Map()));
1322
- setprop(parent, Value(parts[i]), next);
1286
+ next = 0 != (T_number & typify(parts[i + 1])) ? Value(std::make_shared<List>())
1287
+ : Value(std::shared_ptr<Map>(new Map()));
1288
+ setprop(parent, parts[i], next);
1323
1289
  }
1324
1290
  parent = next;
1325
1291
  }
1326
- Value last_key(parts.back());
1327
1292
  if (is_delete(val)) {
1328
- delprop(parent, last_key);
1293
+ delprop(parent, parts.back());
1329
1294
  } else {
1330
- setprop(parent, last_key, val);
1295
+ setprop(parent, parts.back(), val);
1331
1296
  }
1332
1297
  return parent;
1333
1298
  }
@@ -1356,6 +1321,7 @@ public:
1356
1321
  Modify modify;
1357
1322
  Injection* prior = nullptr;
1358
1323
  Value extra;
1324
+ bool named = false; // Current map node names keys of its own (not $ commands).
1359
1325
 
1360
1326
  Injection(const Value& val_in, const Value& parent_in) : val(val_in), parent(parent_in) {
1361
1327
  keys = std::make_shared<std::vector<std::string>>();
@@ -1430,7 +1396,10 @@ public:
1430
1396
  Value setval(const Value& v, int ancestor) {
1431
1397
  Value pp;
1432
1398
  if (ancestor < 2) {
1433
- if (v.is_undef()) {
1399
+ // A list keeps the removed slot as a hole until inject's loop ends.
1400
+ if (v.is_undef() && parent.is_list()) {
1401
+ pp = setprop(parent, Value(key), SKIP());
1402
+ } else if (v.is_undef()) {
1434
1403
  pp = delprop(parent, Value(key));
1435
1404
  parent = pp;
1436
1405
  } else {
@@ -1454,6 +1423,501 @@ public:
1454
1423
  }
1455
1424
  };
1456
1425
 
1426
+ // ===========================================================================
1427
+ // condense / expand / iscondensed / condenseview
1428
+ // ===========================================================================
1429
+
1430
+ namespace detail {
1431
+
1432
+ constexpr int64_t CONDENSE_VERSION = 1;
1433
+
1434
+ constexpr int64_t CONDENSE_MAP = 0;
1435
+ constexpr int64_t CONDENSE_LIST = 1;
1436
+ constexpr int64_t CONDENSE_STR = 2;
1437
+ constexpr int64_t CONDENSE_NUM = 3;
1438
+ constexpr int64_t CONDENSE_TRUE = 4;
1439
+ constexpr int64_t CONDENSE_FALSE = 5;
1440
+ constexpr int64_t CONDENSE_NULL = 6;
1441
+
1442
+ inline const std::string& S_condense() {
1443
+ static const std::string s = "$condense";
1444
+ return s;
1445
+ }
1446
+ inline const std::string& S_condsym() {
1447
+ static const std::string s = "sym";
1448
+ return s;
1449
+ }
1450
+ inline const std::string& S_condnode() {
1451
+ static const std::string s = "node";
1452
+ return s;
1453
+ }
1454
+ inline const std::string& S_condroot() {
1455
+ static const std::string s = "root";
1456
+ return s;
1457
+ }
1458
+
1459
+ // The integer a number holds: false for anything else, a fraction included.
1460
+ inline bool cond_int(const Value& v, int64_t& out) {
1461
+ if (v.is_int()) {
1462
+ out = v.as_int();
1463
+ return true;
1464
+ }
1465
+ if (v.is_double()) {
1466
+ double d = v.as_double();
1467
+ if (std::floor(d) == d && -0x1p63 <= d && d < 0x1p63) {
1468
+ out = static_cast<int64_t>(d);
1469
+ return true;
1470
+ }
1471
+ }
1472
+ return false;
1473
+ }
1474
+
1475
+ // An index read from the format, or -1 when the value cannot be one.
1476
+ inline int64_t cond_idx(const Value& v) {
1477
+ int64_t i = -1;
1478
+ return cond_int(v, i) ? i : -1;
1479
+ }
1480
+
1481
+ inline const List* cond_list(const Value& v) {
1482
+ const auto* l = std::get_if<std::shared_ptr<List>>(&v.storage);
1483
+ return l ? l->get() : nullptr;
1484
+ }
1485
+
1486
+ inline const Value* cond_field(const Value& cond, const std::string& name) {
1487
+ const auto* m = std::get_if<std::shared_ptr<Map>>(&cond.storage);
1488
+ return m && *m ? (*m)->find(name) : nullptr;
1489
+ }
1490
+
1491
+ inline const List* cond_fieldlist(const Value& cond, const std::string& name) {
1492
+ const Value* f = cond_field(cond, name);
1493
+ return f ? cond_list(*f) : nullptr;
1494
+ }
1495
+
1496
+ inline int64_t cond_root(const Value& cond) {
1497
+ const Value* root = cond_field(cond, S_condroot());
1498
+ return root ? cond_idx(*root) : -1;
1499
+ }
1500
+
1501
+ // Node idx's encoding; nullptr when it is absent or null.
1502
+ inline const Value* cond_enc(const Value& cond, int64_t idx) {
1503
+ const List* node = cond_fieldlist(cond, S_condnode());
1504
+ if (!node || idx < 0 || static_cast<uint64_t>(idx) >= node->size())
1505
+ return nullptr;
1506
+ const Value& enc = (*node)[static_cast<size_t>(idx)];
1507
+ return enc.is_undef() || enc.is_null() ? nullptr : &enc;
1508
+ }
1509
+
1510
+ inline int64_t cond_kind(const List* el) {
1511
+ return el && !el->empty() ? cond_idx((*el)[0]) : -1;
1512
+ }
1513
+
1514
+ // sym[id]; nullptr when id does not index sym.
1515
+ inline const Value* cond_sym(const Value& cond, const Value& id) {
1516
+ const List* sym = cond_fieldlist(cond, S_condsym());
1517
+ int64_t i = cond_idx(id);
1518
+ return sym && 0 <= i && static_cast<uint64_t>(i) < sym->size() ? &(*sym)[static_cast<size_t>(i)]
1519
+ : nullptr;
1520
+ }
1521
+
1522
+ inline std::string cond_numstr(double d) {
1523
+ char buf[40];
1524
+ if (std::isnan(d))
1525
+ return "NaN";
1526
+ if (std::isinf(d))
1527
+ return d < 0 ? "-Infinity" : "Infinity";
1528
+ if (std::floor(d) == d && std::fabs(d) < 1e21) {
1529
+ std::snprintf(buf, sizeof buf, "%.0f", 0 == d ? 0.0 : d);
1530
+ return buf;
1531
+ }
1532
+ for (int p = 1; p <= 17; p++) {
1533
+ std::snprintf(buf, sizeof buf, "%.*g", p, d);
1534
+ if (std::strtod(buf, nullptr) == d)
1535
+ break;
1536
+ }
1537
+ return buf;
1538
+ }
1539
+
1540
+ // JS `'' + v`.
1541
+ inline std::string cond_str(const Value& v) {
1542
+ if (v.is_string())
1543
+ return v.as_string();
1544
+ if (v.is_int())
1545
+ return std::to_string(v.as_int());
1546
+ if (v.is_double())
1547
+ return cond_numstr(v.as_double());
1548
+ if (v.is_bool())
1549
+ return v.as_bool() ? "true" : "false";
1550
+ if (v.is_null())
1551
+ return "null";
1552
+ if (v.is_undef())
1553
+ return "undefined";
1554
+ if (const List* l = cond_list(v)) {
1555
+ std::string out;
1556
+ for (size_t i = 0; i < l->size(); i++) {
1557
+ if (0 < i)
1558
+ out += ",";
1559
+ if (!(*l)[i].is_undef() && !(*l)[i].is_null())
1560
+ out += cond_str((*l)[i]);
1561
+ }
1562
+ return out;
1563
+ }
1564
+ return "[object Object]";
1565
+ }
1566
+
1567
+ // sym[id] as a map key: its string form when it is not a string.
1568
+ inline std::string cond_keyname(const Value& cond, const Value& id) {
1569
+ const Value* s = cond_sym(cond, id);
1570
+ return s ? cond_str(*s) : "undefined";
1571
+ }
1572
+
1573
+ // Code-point order: in UTF-8, std::string's unsigned byte order.
1574
+ inline int64_t cond_symid(const Value& cond, const std::string& key) {
1575
+ const List* sym = cond_fieldlist(cond, S_condsym());
1576
+ if (!sym)
1577
+ return -1;
1578
+ int64_t lo = 0;
1579
+ int64_t hi = static_cast<int64_t>(sym->size()) - 1;
1580
+ while (lo <= hi) {
1581
+ int64_t mid = (lo + hi) / 2;
1582
+ const Value& s = (*sym)[static_cast<size_t>(mid)];
1583
+ int c = (s.is_string() ? s.as_string() : S_MT()).compare(key);
1584
+ if (0 == c)
1585
+ return mid;
1586
+ if (0 > c)
1587
+ lo = mid + 1;
1588
+ else
1589
+ hi = mid - 1;
1590
+ }
1591
+ return -1;
1592
+ }
1593
+
1594
+ // The node index of key inside node idx, or -1. Touches only this node.
1595
+ inline int64_t cond_child(const Value& cond, int64_t idx, const std::string& key) {
1596
+ const Value* enc = cond_enc(cond, idx);
1597
+ const List* el = enc ? cond_list(*enc) : nullptr;
1598
+ int64_t kind = cond_kind(el);
1599
+
1600
+ if (CONDENSE_MAP == kind) {
1601
+ int64_t symid = cond_symid(cond, key);
1602
+ int64_t lo = 0;
1603
+ int64_t hi = (static_cast<int64_t>(el->size()) - 1) / 2 - 1;
1604
+ while (0 <= symid && lo <= hi) {
1605
+ int64_t mid = (lo + hi) / 2;
1606
+ int64_t k = cond_idx((*el)[static_cast<size_t>(1 + mid * 2)]);
1607
+ if (k == symid)
1608
+ return cond_idx((*el)[static_cast<size_t>(2 + mid * 2)]);
1609
+ if (k < symid)
1610
+ lo = mid + 1;
1611
+ else
1612
+ hi = mid - 1;
1613
+ }
1614
+ return -1;
1615
+ }
1616
+
1617
+ if (CONDENSE_LIST == kind) {
1618
+ int64_t i = -1;
1619
+ return canon_listindex(key, i) && 0 <= i && i < static_cast<int64_t>(el->size()) - 1
1620
+ ? cond_idx((*el)[static_cast<size_t>(1 + i)])
1621
+ : -1;
1622
+ }
1623
+
1624
+ return -1;
1625
+ }
1626
+
1627
+ // Walk a path from node idx: the node index reached, or -1.
1628
+ inline int64_t cond_resolve(const Value& cond, int64_t idx, const Value& path) {
1629
+ int64_t at = idx;
1630
+
1631
+ if (const List* parts = cond_list(path)) {
1632
+ for (const Value& part : *parts) {
1633
+ if (0 > at || (!part.is_string() && !part.is_number()))
1634
+ return -1;
1635
+ if (!part.is_string() || !part.as_string().empty())
1636
+ at = cond_child(cond, at, cond_str(part));
1637
+ }
1638
+ } else if (path.is_string()) {
1639
+ const std::string& s = path.as_string();
1640
+ size_t from = 0;
1641
+ for (size_t j = 0; !s.empty() && j <= s.size(); j++) {
1642
+ if (j < s.size() && '.' != s[j])
1643
+ continue;
1644
+ if (0 > at)
1645
+ return -1;
1646
+ if (from < j)
1647
+ at = cond_child(cond, at, s.substr(from, j - from));
1648
+ from = j + 1;
1649
+ }
1650
+ } else if (!path.is_undef() && !path.is_null()) {
1651
+ if (0 > at)
1652
+ return -1;
1653
+ at = cond_child(cond, at, cond_str(path));
1654
+ }
1655
+
1656
+ return at;
1657
+ }
1658
+
1659
+ // A fresh, independent tree for node idx; undefined when there is no such node.
1660
+ inline Value cond_rebuild(const Value& cond, int64_t idx) {
1661
+ const Value* enc = cond_enc(cond, idx);
1662
+ if (!enc)
1663
+ return Value::undef();
1664
+ const List* el = cond_list(*enc);
1665
+ int64_t kind = cond_kind(el);
1666
+
1667
+ if (CONDENSE_MAP == kind) {
1668
+ auto out = std::shared_ptr<Map>(new Map());
1669
+ for (size_t j = 1; j < el->size(); j += 2) {
1670
+ Value child = cond_rebuild(cond, j + 1 < el->size() ? cond_idx((*el)[j + 1]) : -1);
1671
+ std::string key = cond_keyname(cond, (*el)[j]);
1672
+ // As setprop does for an absent value, the key goes.
1673
+ if (child.is_undef())
1674
+ out->erase(key);
1675
+ else
1676
+ out->set(key, std::move(child));
1677
+ }
1678
+ return Value(out);
1679
+ }
1680
+
1681
+ if (CONDENSE_LIST == kind) {
1682
+ auto out = std::make_shared<List>();
1683
+ out->reserve(el->size() - 1);
1684
+ for (size_t j = 1; j < el->size(); j++)
1685
+ out->push_back(cond_rebuild(cond, cond_idx((*el)[j])));
1686
+ return Value(out);
1687
+ }
1688
+
1689
+ if (CONDENSE_STR == kind) {
1690
+ const Value* s = 1 < el->size() ? cond_sym(cond, (*el)[1]) : nullptr;
1691
+ return s ? clone(*s) : Value::undef();
1692
+ }
1693
+
1694
+ if (CONDENSE_NUM == kind)
1695
+ return 1 < el->size() ? clone((*el)[1]) : Value::undef();
1696
+
1697
+ if (CONDENSE_TRUE == kind || CONDENSE_FALSE == kind)
1698
+ return Value(CONDENSE_TRUE == kind);
1699
+
1700
+ return Value(nullptr);
1701
+ }
1702
+
1703
+ inline std::vector<std::string> cond_keys(const Value& cond, int64_t idx) {
1704
+ std::vector<std::string> out;
1705
+ const Value* enc = cond_enc(cond, idx);
1706
+ const List* el = enc ? cond_list(*enc) : nullptr;
1707
+ int64_t kind = cond_kind(el);
1708
+
1709
+ if (CONDENSE_MAP == kind) {
1710
+ for (size_t j = 1; j < el->size(); j += 2)
1711
+ out.push_back(cond_keyname(cond, (*el)[j]));
1712
+ } else if (CONDENSE_LIST == kind) {
1713
+ for (size_t j = 1; j < el->size(); j++)
1714
+ out.push_back(std::to_string(j - 1));
1715
+ }
1716
+
1717
+ return out;
1718
+ }
1719
+
1720
+ // Equal numbers spell the same, so an integer and a decimal of one value share a node.
1721
+ inline std::string cond_numkey(const Value& v) {
1722
+ int64_t i = 0;
1723
+ if (cond_int(v, i))
1724
+ return std::to_string(i);
1725
+ char buf[40];
1726
+ std::snprintf(buf, sizeof buf, "%.17g", v.as_double());
1727
+ return buf;
1728
+ }
1729
+
1730
+ class Condenser {
1731
+ public:
1732
+ // Pass one: every distinct map key and string value, sorted.
1733
+ explicit Condenser(const Value& val) {
1734
+ collect(val);
1735
+ std::sort(syms_.begin(), syms_.end(),
1736
+ [](const std::string* a, const std::string* b) { return *a < *b; });
1737
+ syms_.erase(std::unique(syms_.begin(), syms_.end(),
1738
+ [](const std::string* a, const std::string* b) { return *a == *b; }),
1739
+ syms_.end());
1740
+ }
1741
+
1742
+ Value condense(const Value& val) {
1743
+ int64_t root = build(val);
1744
+
1745
+ auto sym = std::make_shared<List>();
1746
+ sym->reserve(syms_.size());
1747
+ for (const std::string* s : syms_)
1748
+ sym->push_back(Value(*s));
1749
+
1750
+ auto out = std::shared_ptr<Map>(new Map());
1751
+ out->set(S_condense(), Value(CONDENSE_VERSION));
1752
+ out->set(S_condsym(), Value(sym));
1753
+ out->set(S_condnode(), Value(node_));
1754
+ out->set(S_condroot(), Value(root));
1755
+ return Value(out);
1756
+ }
1757
+
1758
+ private:
1759
+ std::vector<const std::string*> syms_;
1760
+ std::shared_ptr<List> node_ = std::make_shared<List>();
1761
+ std::unordered_map<std::string, int64_t> seen_;
1762
+
1763
+ void collect(const Value& n) {
1764
+ if (n.is_map()) {
1765
+ for (const auto& [k, v] : *n.as_map()) {
1766
+ syms_.push_back(&k);
1767
+ collect(v);
1768
+ }
1769
+ } else if (const List* l = cond_list(n)) {
1770
+ for (const Value& c : *l)
1771
+ collect(c);
1772
+ } else if (n.is_string()) {
1773
+ syms_.push_back(&n.as_string());
1774
+ }
1775
+ }
1776
+
1777
+ int64_t symid(const std::string& s) const {
1778
+ auto it = std::lower_bound(syms_.begin(), syms_.end(), &s,
1779
+ [](const std::string* a, const std::string* b) { return *a < *b; });
1780
+ return it != syms_.end() && **it == s ? it - syms_.begin() : -1;
1781
+ }
1782
+
1783
+ // Post-order, so identical subtrees are already interned when a parent names them.
1784
+ int64_t build(const Value& n) {
1785
+ auto enc = std::make_shared<List>();
1786
+
1787
+ if (n.is_map()) {
1788
+ std::vector<std::pair<int64_t, const Value*>> pairs;
1789
+ for (const auto& [k, v] : *n.as_map())
1790
+ pairs.emplace_back(symid(k), &v);
1791
+ std::sort(pairs.begin(), pairs.end(),
1792
+ [](const auto& a, const auto& b) { return a.first < b.first; });
1793
+ enc->push_back(Value(CONDENSE_MAP));
1794
+ for (const auto& [id, v] : pairs) {
1795
+ enc->push_back(Value(id));
1796
+ enc->push_back(Value(build(*v)));
1797
+ }
1798
+ } else if (const List* l = cond_list(n)) {
1799
+ enc->push_back(Value(CONDENSE_LIST));
1800
+ for (const Value& c : *l)
1801
+ enc->push_back(Value(build(c)));
1802
+ } else if (n.is_string()) {
1803
+ enc->push_back(Value(CONDENSE_STR));
1804
+ enc->push_back(Value(symid(n.as_string())));
1805
+ } else if (n.is_number()) {
1806
+ enc->push_back(Value(CONDENSE_NUM));
1807
+ enc->push_back(n);
1808
+ } else if (n.is_bool()) {
1809
+ enc->push_back(Value(n.as_bool() ? CONDENSE_TRUE : CONDENSE_FALSE));
1810
+ } else {
1811
+ enc->push_back(Value(CONDENSE_NULL));
1812
+ }
1813
+
1814
+ return intern(enc);
1815
+ }
1816
+
1817
+ // An encoding equal to one already built reuses that node.
1818
+ int64_t intern(const std::shared_ptr<List>& enc) {
1819
+ std::string key;
1820
+ for (size_t i = 0; i < enc->size(); i++) {
1821
+ if (0 < i)
1822
+ key += ",";
1823
+ key += cond_numkey((*enc)[i]);
1824
+ }
1825
+ auto hit = seen_.find(key);
1826
+ if (hit != seen_.end())
1827
+ return hit->second;
1828
+ int64_t idx = static_cast<int64_t>(node_->size());
1829
+ node_->push_back(Value(enc));
1830
+ seen_.emplace(std::move(key), idx);
1831
+ return idx;
1832
+ }
1833
+ };
1834
+
1835
+ } // namespace detail
1836
+
1837
+ inline bool iscondensed(const Value& val) {
1838
+ int64_t version = -1;
1839
+ const Value* ver = detail::cond_field(val, detail::S_condense());
1840
+ const Value* root = detail::cond_field(val, detail::S_condroot());
1841
+ return ver && detail::cond_int(*ver, version) && detail::CONDENSE_VERSION == version &&
1842
+ detail::cond_fieldlist(val, detail::S_condsym()) &&
1843
+ detail::cond_fieldlist(val, detail::S_condnode()) && root && root->is_number();
1844
+ }
1845
+
1846
+ // Pure: the same input gives the same bytes, on every port.
1847
+ inline Value condense(const Value& val) {
1848
+ return detail::Condenser(val).condense(val);
1849
+ }
1850
+
1851
+ // A value that is not condensed comes back as itself.
1852
+ inline Value expand(const Value& cond) {
1853
+ if (!iscondensed(cond))
1854
+ return cond;
1855
+ return detail::cond_rebuild(cond, detail::cond_root(cond));
1856
+ }
1857
+
1858
+ // A cursor into a condensed structure. Views made by at() share the memo, so ref()
1859
+ // hands every one of them the same node.
1860
+ class CondenseView {
1861
+ public:
1862
+ CondenseView(Value cond, int64_t start, std::shared_ptr<Map> memo)
1863
+ : cond_(std::move(cond)), start_(start), memo_(std::move(memo)) {}
1864
+
1865
+ Value get(const Value& path = Value::undef()) const {
1866
+ return detail::cond_rebuild(cond_, detail::cond_resolve(cond_, start_, path));
1867
+ }
1868
+
1869
+ std::vector<std::string> keys(const Value& path = Value::undef()) const {
1870
+ return detail::cond_keys(cond_, detail::cond_resolve(cond_, start_, path));
1871
+ }
1872
+
1873
+ bool has(const Value& path = Value::undef()) const {
1874
+ return 0 <= detail::cond_resolve(cond_, start_, path);
1875
+ }
1876
+
1877
+ CondenseView at(const Value& path = Value::undef()) const {
1878
+ return CondenseView(cond_, detail::cond_resolve(cond_, start_, path), memo_);
1879
+ }
1880
+
1881
+ Value value() const { return detail::cond_rebuild(cond_, start_); }
1882
+
1883
+ int64_t size() const {
1884
+ const Value* enc = detail::cond_enc(cond_, start_);
1885
+ const List* el = enc ? detail::cond_list(*enc) : nullptr;
1886
+ int64_t kind = detail::cond_kind(el);
1887
+ if (detail::CONDENSE_MAP == kind)
1888
+ return (static_cast<int64_t>(el->size()) - 1) / 2;
1889
+ if (detail::CONDENSE_LIST == kind)
1890
+ return static_cast<int64_t>(el->size()) - 1;
1891
+ return 0;
1892
+ }
1893
+
1894
+ bool exists() const { return 0 <= start_; }
1895
+
1896
+ // Shared, unlike get() and value(): mutating the result changes every reader of the node.
1897
+ Value ref() const {
1898
+ std::string k = std::to_string(start_);
1899
+ if (const Value* hit = memo_->find(k))
1900
+ return *hit;
1901
+ Value out = detail::cond_rebuild(cond_, start_);
1902
+ if (!out.is_undef())
1903
+ memo_->set(k, out);
1904
+ return out;
1905
+ }
1906
+
1907
+ private:
1908
+ Value cond_;
1909
+ int64_t start_;
1910
+ std::shared_ptr<Map> memo_;
1911
+ };
1912
+
1913
+ inline CondenseView condenseview(const Value& cond, const Value& idx = Value::undef(),
1914
+ const Value& memo = Value::undef()) {
1915
+ int64_t start = idx.is_undef() || idx.is_null()
1916
+ ? (iscondensed(cond) ? detail::cond_root(cond) : -1)
1917
+ : detail::cond_idx(idx);
1918
+ return CondenseView(cond, start, memo.is_map() ? memo.as_map() : std::shared_ptr<Map>(new Map()));
1919
+ }
1920
+
1457
1921
  // ===========================================================================
1458
1922
  // getpath
1459
1923
  // ===========================================================================
@@ -1467,20 +1931,35 @@ inline Value getpath_inner(const Value& store, const Value& path, std::vector<st
1467
1931
 
1468
1932
  inline Value getpath_v(const Value& store, const Value& path, Injection* inj) {
1469
1933
  std::vector<std::string> parts;
1470
- bool valid_path = false;
1471
1934
  if (path.is_string()) {
1472
- parts = detail::path_parts(path);
1473
- valid_path = true;
1935
+ parts = detail::path_parts(path.as_string());
1474
1936
  } else if (path.is_list()) {
1475
- parts = detail::path_parts(path);
1476
- valid_path = true;
1937
+ // A number part reads as its string form; any other part makes the whole path miss.
1938
+ for (const Value& part : *path.as_list()) {
1939
+ if (part.is_string())
1940
+ parts.push_back(part.as_string());
1941
+ else if (part.is_number())
1942
+ parts.push_back(detail::cond_str(part));
1943
+ else
1944
+ return Value::undef();
1945
+ }
1477
1946
  } else if (path.is_number()) {
1478
- parts.push_back(strkey(path));
1479
- valid_path = true;
1480
- }
1481
- // Note: undef / null / bool / map paths are invalid (matches TS lines 1147-1153).
1482
- if (!valid_path)
1947
+ parts.push_back(detail::cond_str(path));
1948
+ } else {
1483
1949
  return Value::undef();
1950
+ }
1951
+
1952
+ // A base changes what the path resolves against, so honour it on the expansion.
1953
+ if (iscondensed(store)) {
1954
+ if (!inj || inj->base.empty()) {
1955
+ Value found =
1956
+ detail::cond_rebuild(store, detail::cond_resolve(store, detail::cond_root(store), path));
1957
+ // Group A, as a plain getpath reads it: a stored null is absent.
1958
+ return found.is_null() ? Value::undef() : found;
1959
+ }
1960
+ return getpath_v(expand(store), path, inj);
1961
+ }
1962
+
1484
1963
  Value val = detail::getpath_inner(store, path, parts, inj);
1485
1964
  if (inj && inj->handler) {
1486
1965
  std::string ref = path.is_undef() ? "" : pathify(path);
@@ -1555,8 +2034,10 @@ inline Value getpath_inner(const Value& store, const Value& path, std::vector<st
1555
2034
  part = stringify(res);
1556
2035
  }
1557
2036
 
1558
- // $$ -> $
1559
- part = std::regex_replace(part, R_DOUBLE_DOLLAR(), "$");
2037
+ // $$ -> $ (skip the std::regex for the common no-"$$" segment)
2038
+ if (part.find("$$") != std::string::npos) {
2039
+ part = std::regex_replace(part, R_DOUBLE_DOLLAR(), "$");
2040
+ }
1560
2041
 
1561
2042
  if (part.empty()) {
1562
2043
  int ascends = 0;
@@ -1865,6 +2346,8 @@ inline Value inject(const Value& val, const Value& store, Injection* injdef) {
1865
2346
 
1866
2347
  inj->descend();
1867
2348
 
2349
+ inj->named = false;
2350
+
1868
2351
  Value cur = val;
1869
2352
 
1870
2353
  if (isnode(cur) && !cur.is_sentinel()) {
@@ -1877,6 +2360,7 @@ inline Value inject(const Value& val, const Value& store, Injection* injdef) {
1877
2360
  if (k.find('$') == std::string::npos)
1878
2361
  nodekeys->push_back(k);
1879
2362
  }
2363
+ inj->named = !nodekeys->empty();
1880
2364
  for (const auto& k : node_keys_vec) {
1881
2365
  if (k.find('$') != std::string::npos)
1882
2366
  nodekeys->push_back(k);
@@ -1909,6 +2393,11 @@ inline Value inject(const Value& val, const Value& store, Injection* injdef) {
1909
2393
  nodekeys = cinj->keys;
1910
2394
  }
1911
2395
  }
2396
+
2397
+ if (cur.is_list()) {
2398
+ auto& items = *cur.as_list();
2399
+ items.erase(std::remove_if(items.begin(), items.end(), is_skip), items.end());
2400
+ }
1912
2401
  } else if (cur.is_string()) {
1913
2402
  inj->mode = M_VAL;
1914
2403
  Value newVal = injectstr(cur.as_string(), store, inj);
@@ -1922,7 +2411,7 @@ inline Value inject(const Value& val, const Value& store, Injection* injdef) {
1922
2411
  Value mkey(inj->key);
1923
2412
  Value mparent = inj->parent;
1924
2413
  Value mval = getprop(mparent, mkey);
1925
- inj->modify(mval, mkey, mparent, *inj, store);
2414
+ inj->modify(is_skip(mval) ? Value::undef() : mval, mkey, mparent, *inj, store);
1926
2415
  }
1927
2416
 
1928
2417
  inj->val = cur;
@@ -2494,7 +2983,10 @@ inline Value REF_FN(Injection& inj, const Value& val, const std::string& ref, co
2494
2983
  spec = spec_holder.as_injector()(synth, Value::undef(), "$SPEC", store);
2495
2984
  }
2496
2985
 
2497
- std::vector<std::string> dpath_slice(inj.path.begin() + 1, inj.path.end());
2986
+ // slice(inj.path, 1, -2): the node holding this slot, so .x is a sibling.
2987
+ std::vector<std::string> dpath_slice;
2988
+ for (size_t i = 1; i + 2 < inj.path.size(); i++)
2989
+ dpath_slice.push_back(inj.path[i]);
2498
2990
  Injection refInj(Value::undef(), Value::undef());
2499
2991
  refInj.dpath = dpath_slice;
2500
2992
  auto fp = std::make_shared<List>();
@@ -2504,6 +2996,19 @@ inline Value REF_FN(Injection& inj, const Value& val, const std::string& ref, co
2504
2996
  refInj.handler = injecthandler;
2505
2997
  Value refResolved = getpath_v(spec, refpath, &refInj);
2506
2998
 
2999
+ // A chain of references that comes back to a path it has named names nothing.
3000
+ std::vector<Value> seen{refpath};
3001
+ for (Value next = refResolved;
3002
+ next.is_list() && Value("`$REF`") == lookup_v(next, Value(int64_t(0)));) {
3003
+ Value nextpath = lookup_v(next, Value(int64_t(1)));
3004
+ if (std::find(seen.begin(), seen.end(), nextpath) != seen.end()) {
3005
+ refResolved = Value::undef();
3006
+ break;
3007
+ }
3008
+ seen.push_back(nextpath);
3009
+ next = getpath_v(spec, nextpath, &refInj);
3010
+ }
3011
+
2507
3012
  Value tref = clone(refResolved);
2508
3013
  bool hasSubRef = false;
2509
3014
  if (isnode(tref)) {
@@ -2516,50 +3021,24 @@ inline Value REF_FN(Injection& inj, const Value& val, const std::string& ref, co
2516
3021
  });
2517
3022
  }
2518
3023
 
2519
- std::vector<std::string> cpath_v;
2520
- if (inj.path.size() >= 3) {
2521
- cpath_v = std::vector<std::string>(inj.path.begin(), inj.path.begin() + (inj.path.size() - 3));
2522
- }
2523
- std::vector<std::string> tpath_v;
2524
- if (!inj.path.empty()) {
2525
- tpath_v = std::vector<std::string>(inj.path.begin(), inj.path.end() - 1);
2526
- }
2527
- auto cpath_list = std::make_shared<List>();
2528
- for (auto& p : cpath_v)
2529
- cpath_list->push_back(Value(p));
3024
+ // A recursive reference stops where the data does.
2530
3025
  auto tpath_list = std::make_shared<List>();
2531
- for (auto& p : tpath_v)
2532
- tpath_list->push_back(Value(p));
3026
+ for (size_t i = 0; i + 1 < inj.path.size(); i++)
3027
+ tpath_list->push_back(Value(inj.path[i]));
3028
+ Value tval = getpath_v(store, Value(tpath_list));
3029
+ Value rval = (!hasSubRef || !tval.is_undef()) ? tref : Value::undef();
2533
3030
 
2534
- Value tval_at = getpath_v(store, Value(tpath_list));
2535
- Value rval = Value::undef();
3031
+ // The enclosing loop injects the referenced spec in this list's place, so
3032
+ // neither this pass nor this element leaves a value for modify to check.
3033
+ Value grandparent = inj.setval(rval, 2);
2536
3034
 
2537
- if (!hasSubRef || !tval_at.is_undef()) {
2538
- std::string lastkey = tpath_v.empty() ? "" : tpath_v.back();
2539
- auto single_keys = std::make_shared<std::vector<std::string>>();
2540
- single_keys->push_back(lastkey);
2541
- auto tinj_owner = inj.child(0, single_keys);
2542
- Injection* tinj = tinj_owner.get();
2543
- tinj->path = tpath_v;
2544
- if (inj.nodes && inj.nodes->size() >= 1) {
2545
- tinj->nodes = std::make_shared<std::vector<Value>>(inj.nodes->begin(), inj.nodes->end() - 1);
3035
+ if (Injection* prior = inj.prior) {
3036
+ prior->modify = nullptr;
3037
+ if (grandparent.is_list() || !rval.is_undef()) {
3038
+ prior->keyI--;
2546
3039
  }
2547
- if (inj.nodes && inj.nodes->size() >= 2) {
2548
- tinj->parent = (*inj.nodes)[inj.nodes->size() - 2];
2549
- }
2550
- tinj->val = tref;
2551
- tinj->dpath = cpath_v;
2552
- tinj->dparent = getpath_v(store, Value(cpath_list));
2553
-
2554
- inject(tref, store, tinj);
2555
- rval = tinj->val;
2556
- }
2557
-
2558
- Value grandparent = inj.setval(rval, 2);
2559
- if (grandparent.is_list() && inj.prior) {
2560
- inj.prior->keyI--;
2561
3040
  }
2562
- return val;
3041
+ return SKIP();
2563
3042
  }
2564
3043
 
2565
3044
  } // namespace transforms
@@ -2697,14 +3176,14 @@ inline Value STRING_FN(Injection& inj, const Value& val, const std::string& ref,
2697
3176
  int t = typify(out);
2698
3177
  if ((T_string & t) == 0) {
2699
3178
  inj.errs->push_back(Value(invalid_type_msg(inj.path, "string", t, out, "V1010")));
2700
- return Value::undef();
3179
+ return out;
2701
3180
  }
2702
3181
  if (out.as_string().empty()) {
2703
3182
  auto pl = std::make_shared<List>();
2704
3183
  for (auto& p : inj.path)
2705
3184
  pl->push_back(Value(p));
2706
3185
  inj.errs->push_back(Value("Empty string at " + pathify(Value(pl), 1, 0)));
2707
- return Value::undef();
3186
+ return out;
2708
3187
  }
2709
3188
  return out;
2710
3189
  }
@@ -2722,12 +3201,13 @@ inline Value TYPE_FN(Injection& inj, const Value& val, const std::string& ref, c
2722
3201
  }
2723
3202
  if (idx < 0)
2724
3203
  return Value::undef();
2725
- int typev = 1 << (31 - idx);
3204
+ // $NIL is absent or null.
3205
+ int typev = (1 << (31 - idx)) | (tname == "nil" ? T_null : 0);
2726
3206
  Value out = lookup_v(inj.dparent, Value(inj.key));
2727
3207
  int t = typify(out);
2728
3208
  if ((t & typev) == 0) {
2729
3209
  inj.errs->push_back(Value(invalid_type_msg(inj.path, tname, t, out, "V1001")));
2730
- return Value::undef();
3210
+ return out;
2731
3211
  }
2732
3212
  return out;
2733
3213
  }
@@ -2746,11 +3226,7 @@ inline Value CHILD_FN(Injection& inj, const Value& val, const std::string& ref,
2746
3226
  if (tval.is_undef() || tval.is_null()) {
2747
3227
  tval = Value(std::shared_ptr<Map>(new Map()));
2748
3228
  } else if (!ismap(tval)) {
2749
- auto pl = std::make_shared<List>();
2750
- for (size_t i = 0; i + 1 < inj.path.size(); i++)
2751
- pl->push_back(Value(inj.path[i]));
2752
- inj.errs->push_back(
2753
- Value(invalid_type_msg(Value(pl), "object", typify(tval), tval, "V0220")));
3229
+ // _validation reports the mismatch, once.
2754
3230
  return Value::undef();
2755
3231
  }
2756
3232
  auto ckeys = keysof(tval);
@@ -2773,11 +3249,6 @@ inline Value CHILD_FN(Injection& inj, const Value& val, const std::string& ref,
2773
3249
  return Value::undef();
2774
3250
  }
2775
3251
  if (!inj.dparent.is_list()) {
2776
- auto pl = std::make_shared<List>();
2777
- for (size_t i = 0; i + 1 < inj.path.size(); i++)
2778
- pl->push_back(Value(inj.path[i]));
2779
- inj.errs->push_back(
2780
- Value(invalid_type_msg(Value(pl), "list", typify(inj.dparent), inj.dparent, "V0230")));
2781
3252
  inj.keyI = static_cast<int>(size(inj.parent));
2782
3253
  return inj.dparent;
2783
3254
  }
@@ -2788,108 +3259,257 @@ inline Value CHILD_FN(Injection& inj, const Value& val, const std::string& ref,
2788
3259
  }
2789
3260
  while (pl->size() > dpl->size())
2790
3261
  pl->pop_back();
2791
- inj.keyI = 0;
2792
- return getprop(inj.dparent, Value(int64_t(0)));
3262
+
3263
+ // NOTE: modifying inj! This extends the child value loop in inject
3264
+ // to cover every cloned child.
3265
+ if (inj.keys) {
3266
+ for (size_t ckeyI = inj.keys->size(); ckeyI < pl->size(); ckeyI++) {
3267
+ inj.keys->push_back(strkey(Value(static_cast<int64_t>(ckeyI))));
3268
+ }
3269
+ }
3270
+
3271
+ // Restart the child value loop at the first element (the loop
3272
+ // increments keyI on resume) so that the first element is also
3273
+ // validated against the child template.
3274
+ inj.keyI = -1;
3275
+
3276
+ // SKIP leaves the cloned child template in place at the first
3277
+ // element so the resumed loop can validate it.
3278
+ return SKIP();
2793
3279
  }
2794
3280
  return Value::undef();
2795
3281
  }
2796
3282
 
2797
- inline Value ONE_FN(Injection& inj, const Value& val, const std::string& ref, const Value& store) {
2798
- if (inj.mode != M_VAL)
2799
- return Value::undef();
2800
- if (!inj.parent.is_list() || inj.keyI != 0) {
2801
- auto pl = std::make_shared<List>();
2802
- for (auto& p : inj.path)
2803
- pl->push_back(Value(p));
2804
- inj.errs->push_back(Value("The $ONE validator at field " + pathify(Value(pl), 1, 1) +
2805
- " must be the first element of an array."));
3283
+ inline std::string restmsg(const Value& path, const std::string& problem) {
3284
+ return "The $REST validator at field " + pathify(path) + problem;
3285
+ }
3286
+
3287
+ // The members a spec does not name: the map form is a key, the list form a
3288
+ // tuple's last item. Each places clones of its spec for the loop to check.
3289
+ inline Value REST_FN(Injection& inj, const Value& val, const std::string& ref, const Value& store) {
3290
+ if (inj.mode == M_KEYPRE) {
3291
+ Value resttm = lookup_v(inj.parent, Value(inj.key));
3292
+ Value pkey = inj.path.size() >= 2 ? Value(inj.path[inj.path.size() - 2]) : Value::undef();
3293
+ Value tval = getprop(inj.dparent, pkey);
3294
+
3295
+ if (ismap(tval) && inj.keys) {
3296
+ for (const auto& ck : keysof(tval)) {
3297
+ if (std::find(inj.keys->begin(), inj.keys->end(), ck) == inj.keys->end()) {
3298
+ setprop(inj.parent, Value(ck), clone(resttm));
3299
+ inj.keys->push_back(ck);
3300
+ }
3301
+ }
3302
+ }
3303
+
3304
+ inj.setval(Value::undef());
2806
3305
  return Value::undef();
2807
3306
  }
2808
- inj.keyI = static_cast<int>(inj.keys ? inj.keys->size() : 0);
2809
- inj.setval(inj.dparent, 2);
2810
- if (!inj.path.empty())
2811
- inj.path.pop_back();
2812
- inj.key = inj.path.empty() ? "" : inj.path.back();
2813
3307
 
2814
- std::vector<Value> tvals;
2815
- if (inj.parent.is_list()) {
2816
- auto pl = inj.parent.as_list();
2817
- for (size_t i = 1; i < pl->size(); i++)
2818
- tvals.push_back((*pl)[i]);
2819
- }
2820
- if (tvals.empty()) {
3308
+ Injection* prior = inj.prior;
3309
+ if (inj.mode != M_VAL || !prior || !prior->parent.is_list() || 0 != inj.keyI) {
2821
3310
  auto pl = std::make_shared<List>();
2822
- for (auto& p : inj.path)
2823
- pl->push_back(Value(p));
2824
- inj.errs->push_back(Value("The $ONE validator at field " + pathify(Value(pl), 1, 1) +
2825
- " must have at least one argument."));
3311
+ for (size_t i = 1; i < inj.path.size(); i++)
3312
+ pl->push_back(Value(inj.path[i]));
3313
+ inj.errs->push_back(Value(restmsg(Value(pl), " must be the last element of an array.")));
2826
3314
  return Value::undef();
2827
3315
  }
2828
- for (const auto& tval : tvals) {
2829
- auto terrs = std::make_shared<std::vector<Value>>();
2830
- auto vstore = std::shared_ptr<Map>(new Map());
2831
- if (store.is_map()) {
2832
- for (const auto& [k, v] : *store.as_map())
2833
- vstore->set(k, v);
2834
- }
2835
- vstore->set(S_DTOP(), inj.dparent);
2836
- auto opts = std::shared_ptr<Map>(new Map());
2837
- auto terrs_list = std::make_shared<List>();
2838
- opts->set("extra", Value(vstore));
2839
- opts->set("errs", Value(terrs_list));
2840
- if (inj.meta)
2841
- opts->set("meta", Value(inj.meta));
2842
- Value vcurrent;
2843
- try {
2844
- vcurrent = validate(inj.dparent, tval, Value(opts));
2845
- } catch (const std::exception& e) {
2846
- terrs_list->push_back(Value(std::string(e.what())));
2847
- vcurrent = inj.dparent;
2848
- }
2849
- inj.setval(vcurrent, -2);
2850
- if (terrs_list->empty())
2851
- return Value::undef();
3316
+
3317
+ inj.keyI = static_cast<int>(inj.keys ? inj.keys->size() : 0);
3318
+ prior->modify = nullptr;
3319
+
3320
+ Value tuple = prior->parent;
3321
+ int64_t slot = 0;
3322
+ detail::list_key(Value(prior->key), slot);
3323
+ Value dlist = prior->dparent;
3324
+ int64_t numitems = dlist.is_list() ? size(dlist) : 0;
3325
+
3326
+ if (numitems <= slot) {
3327
+ inj.setval(Value::undef(), 2);
3328
+ return SKIP();
2852
3329
  }
2853
- // No match.
2854
- std::string valdesc;
3330
+
3331
+ Value resttm = lookup_v(inj.parent, Value(int64_t(1)));
3332
+ for (int64_t i = slot; i < numitems; i++)
3333
+ setprop(tuple, Value(i), clone(resttm));
3334
+ for (auto i = static_cast<int64_t>(prior->keys->size()); i < numitems; i++)
3335
+ prior->keys->push_back(strkey(Value(i)));
3336
+
3337
+ prior->keyI--;
3338
+ return SKIP();
3339
+ }
3340
+
3341
+ // Lowers every `$NAME` marker in the joined description, nested ones included.
3342
+ inline std::string describe_alternatives(const std::vector<Value>& tvals) {
3343
+ std::string joined;
2855
3344
  for (size_t i = 0; i < tvals.size(); i++) {
2856
3345
  if (i > 0)
2857
- valdesc += ", ";
2858
- if (tvals[i].is_string()) {
2859
- std::smatch m;
2860
- const std::string& s = tvals[i].as_string();
2861
- if (std::regex_match(s, m, R_TRANSFORM_NAME())) {
2862
- std::string lower = m[1].str();
2863
- for (auto& c : lower)
2864
- c = static_cast<char>(std::tolower(static_cast<unsigned char>(c)));
2865
- valdesc += lower;
2866
- continue;
2867
- }
2868
- }
2869
- valdesc += stringify(tvals[i]);
3346
+ joined += ", ";
3347
+ joined += stringify(tvals[i]);
2870
3348
  }
2871
- inj.errs->push_back(
2872
- Value(invalid_type_msg(inj.path, (tvals.size() > 1 ? "one of " : "") + valdesc,
2873
- typify(inj.dparent), inj.dparent, "V0210")));
2874
- return Value::undef();
3349
+ std::string out;
3350
+ auto begin = std::sregex_iterator(joined.begin(), joined.end(), R_TRANSFORM_NAME());
3351
+ size_t last = 0;
3352
+ for (auto it = begin; it != std::sregex_iterator(); ++it) {
3353
+ const std::smatch& m = *it;
3354
+ out.append(joined, last, static_cast<size_t>(m.position(0)) - last);
3355
+ std::string lower = m[1].str();
3356
+ for (auto& c : lower)
3357
+ c = static_cast<char>(std::tolower(static_cast<unsigned char>(c)));
3358
+ out += lower;
3359
+ last = static_cast<size_t>(m.position(0) + m.length(0));
3360
+ }
3361
+ out.append(joined, last, std::string::npos);
3362
+ return out;
3363
+ }
3364
+
3365
+ inline Value pathlist(const std::vector<std::string>& path) {
3366
+ auto pl = std::make_shared<List>();
3367
+ for (const auto& p : path)
3368
+ pl->push_back(Value(p));
3369
+ return Value(pl);
3370
+ }
3371
+
3372
+ // The data value at a list directive's slot. The directive's own dparent was
3373
+ // read with getprop, which reports a stored null as absent.
3374
+ inline Value slotval(const Injection& inj) {
3375
+ return inj.prior ? lookup_v(inj.prior->dparent, Value(inj.prior->key)) : inj.dparent;
3376
+ }
3377
+
3378
+ // JSON equality: numbers by value, lists in order, maps by key in any order.
3379
+ inline bool deepequal(const Value& a, const Value& b) {
3380
+ if (a == b)
3381
+ return true;
3382
+
3383
+ int atype = typify(a);
3384
+ if (atype != typify(b) || 0 == ((T_list | T_map) & atype))
3385
+ return false;
3386
+
3387
+ auto akeys = keysof(a);
3388
+ auto bkeys = keysof(b);
3389
+ if (akeys.size() != bkeys.size())
3390
+ return false;
3391
+
3392
+ for (size_t kI = 0; kI < akeys.size(); kI++) {
3393
+ const std::string& k = akeys[kI];
3394
+ if (k != bkeys[kI] || !deepequal(lookup_v(a, Value(k)), lookup_v(b, Value(k))))
3395
+ return false;
3396
+ }
3397
+
3398
+ return true;
3399
+ }
3400
+
3401
+ // Every member val has is in out, unchanged. A member only out has is a
3402
+ // default the spec supplied, and is ignored.
3403
+ inline bool keeps(const Value& val, const Value& out) {
3404
+ if (val.is_undef())
3405
+ return true;
3406
+
3407
+ // No two cpp functions compare equal, so one given back as its own kind is kept.
3408
+ if (val.is_func())
3409
+ return out.is_func() && val.is_injector() == out.is_injector();
3410
+
3411
+ if (0 == ((T_list | T_map) & typify(val)) || val.is_list() != out.is_list() || !isnode(out))
3412
+ return deepequal(val, out);
3413
+
3414
+ for (const auto& k : keysof(val)) {
3415
+ if (!keeps(lookup_v(val, Value(k)), lookup_v(out, Value(k))))
3416
+ return false;
3417
+ }
3418
+
3419
+ return true;
3420
+ }
3421
+
3422
+ // A spec admits a value when validating the value against it finds no error
3423
+ // and gives back the value as it is.
3424
+ inline bool admits(const Value& val, const Value& spec, Injection& inj, const Value& store) {
3425
+ auto vstore = std::shared_ptr<Map>(new Map());
3426
+ if (store.is_map()) {
3427
+ for (const auto& [k, v] : *store.as_map())
3428
+ vstore->set(k, v);
3429
+ }
3430
+ vstore->set(S_DTOP(), val);
3431
+
3432
+ auto terrs = std::make_shared<List>();
3433
+ auto opts = std::shared_ptr<Map>(new Map());
3434
+ opts->set("extra", Value(vstore));
3435
+ opts->set("errs", Value(terrs));
3436
+ if (inj.meta)
3437
+ opts->set("meta", Value(inj.meta));
3438
+
3439
+ Value out = validate(val, spec, Value(opts));
3440
+
3441
+ return terrs->empty() && keeps(val, out);
3442
+ }
3443
+
3444
+ // The bounds of a $NOF count, and the words for it. False when the count is
3445
+ // invalid. Without a max, the bound is the number of specs.
3446
+ inline bool nofcount(const Value& count, int64_t numtvals, int64_t& lo, int64_t& hi,
3447
+ std::string& desc) {
3448
+ // A decimal with an integral value counts, as JavaScript does not tell 2.0 from 2.
3449
+ auto isnat = [](const Value& n, int64_t& nat) {
3450
+ double d = n.as_double();
3451
+ if (n.is_int())
3452
+ nat = n.as_int();
3453
+ else if (n.is_double() && 0 <= d && d < static_cast<double>(INT64_MAX) && std::floor(d) == d)
3454
+ nat = static_cast<int64_t>(d);
3455
+ else
3456
+ return false;
3457
+ return 0 <= nat;
3458
+ };
3459
+
3460
+ if (isnat(count, lo)) {
3461
+ hi = lo;
3462
+ desc = 0 == lo ? "none" : "exactly " + std::to_string(lo);
3463
+ return true;
3464
+ }
3465
+
3466
+ Value min = lookup_v(count, Value("min"));
3467
+ Value max = lookup_v(count, Value("max"));
3468
+
3469
+ lo = 0;
3470
+ hi = numtvals;
3471
+ bool valid = count.is_map() && 0 < count.as_map()->size() &&
3472
+ count.as_map()->size() ==
3473
+ static_cast<size_t>(min.is_undef() ? 0 : 1) + (max.is_undef() ? 0 : 1) &&
3474
+ (min.is_undef() || isnat(min, lo)) && (max.is_undef() || isnat(max, hi)) &&
3475
+ (min.is_undef() || max.is_undef() || lo <= hi);
3476
+
3477
+ if (!valid)
3478
+ return false;
3479
+
3480
+ if (max.is_undef())
3481
+ desc = "at least " + std::to_string(lo);
3482
+ else if (0 == hi)
3483
+ desc = "none";
3484
+ else if (min.is_undef())
3485
+ desc = "at most " + std::to_string(hi);
3486
+ else if (lo == hi)
3487
+ desc = "exactly " + std::to_string(lo);
3488
+ else
3489
+ desc = std::to_string(lo) + " to " + std::to_string(hi);
3490
+
3491
+ return true;
2875
3492
  }
2876
3493
 
2877
3494
  inline Value EXACT_FN(Injection& inj, const Value& val, const std::string& ref,
2878
3495
  const Value& store) {
2879
3496
  if (inj.mode == M_VAL) {
2880
3497
  if (!inj.parent.is_list() || inj.keyI != 0) {
2881
- auto pl = std::make_shared<List>();
2882
- for (auto& p : inj.path)
2883
- pl->push_back(Value(p));
2884
- inj.errs->push_back(Value("The $EXACT validator at field " + pathify(Value(pl), 1, 1) +
3498
+ inj.errs->push_back(Value("The $EXACT validator at field " +
3499
+ pathify(pathlist(inj.path), 1, 1) +
2885
3500
  " must be the first element of an array."));
2886
3501
  return Value::undef();
2887
3502
  }
3503
+
3504
+ Value cval = slotval(inj);
3505
+
2888
3506
  inj.keyI = static_cast<int>(inj.keys ? inj.keys->size() : 0);
2889
- inj.setval(inj.dparent, 2);
3507
+
3508
+ // Replace [$EXACT, ...] with the data value; SKIP keeps inject off the detached list.
3509
+ inj.setval(cval, 2);
3510
+
2890
3511
  if (!inj.path.empty())
2891
3512
  inj.path.pop_back();
2892
- inj.key = inj.path.empty() ? "" : inj.path.back();
2893
3513
 
2894
3514
  std::vector<Value> tvals;
2895
3515
  if (inj.parent.is_list()) {
@@ -2898,57 +3518,381 @@ inline Value EXACT_FN(Injection& inj, const Value& val, const std::string& ref,
2898
3518
  tvals.push_back((*pl)[i]);
2899
3519
  }
2900
3520
  if (tvals.empty()) {
2901
- auto pl = std::make_shared<List>();
2902
- for (auto& p : inj.path)
2903
- pl->push_back(Value(p));
2904
- inj.errs->push_back(Value("The $EXACT validator at field " + pathify(Value(pl), 1, 1) +
3521
+ inj.errs->push_back(Value("The $EXACT validator at field " +
3522
+ pathify(pathlist(inj.path), 1, 1) +
2905
3523
  " must have at least one argument."));
2906
- return Value::undef();
3524
+ return SKIP();
2907
3525
  }
2908
- std::string currentstr;
2909
- bool currentstr_set = false;
3526
+
2910
3527
  for (const auto& tval : tvals) {
2911
- bool exactmatch = (tval == inj.dparent);
2912
- if (!exactmatch && isnode(tval)) {
2913
- if (!currentstr_set) {
2914
- currentstr = stringify(inj.dparent);
2915
- currentstr_set = true;
2916
- }
2917
- std::string ts = stringify(tval);
2918
- exactmatch = (ts == currentstr);
2919
- }
2920
- if (exactmatch)
2921
- return Value::undef();
2922
- }
2923
- std::string valdesc;
2924
- for (size_t i = 0; i < tvals.size(); i++) {
2925
- if (i > 0)
2926
- valdesc += ", ";
2927
- if (tvals[i].is_string()) {
2928
- std::smatch m;
2929
- const std::string& s = tvals[i].as_string();
2930
- if (std::regex_match(s, m, R_TRANSFORM_NAME())) {
2931
- std::string lower = m[1].str();
2932
- for (auto& c : lower)
2933
- c = static_cast<char>(std::tolower(static_cast<unsigned char>(c)));
2934
- valdesc += lower;
2935
- continue;
2936
- }
2937
- }
2938
- valdesc += stringify(tvals[i]);
3528
+ if (deepequal(tval, cval))
3529
+ return SKIP();
2939
3530
  }
3531
+
3532
+ std::string valdesc = describe_alternatives(tvals);
2940
3533
  inj.errs->push_back(Value(invalid_type_msg(inj.path,
2941
3534
  std::string(inj.path.size() > 1 ? "" : "value ") +
2942
3535
  "exactly equal to " +
2943
3536
  (tvals.size() == 1 ? "" : "one of ") + valdesc,
2944
- typify(inj.dparent), inj.dparent, "V0110")));
2945
- return Value::undef();
3537
+ typify(cval), cval, "V0110")));
3538
+ return SKIP();
2946
3539
  } else {
2947
3540
  delprop(inj.parent, Value(inj.key));
2948
3541
  return Value::undef();
2949
3542
  }
2950
3543
  }
2951
3544
 
3545
+ // The counting list directives. Without a count, every spec has to admit.
3546
+ inline Value validatecount(Injection& inj, const Value& store, const std::string& name,
3547
+ bool counted) {
3548
+ if (inj.mode != M_VAL)
3549
+ return Value::undef();
3550
+
3551
+ if (!inj.parent.is_list() || inj.keyI != 0) {
3552
+ inj.errs->push_back(Value("The " + name + " validator at field " +
3553
+ pathify(pathlist(inj.path), 1, 1) +
3554
+ " must be the first element of an array."));
3555
+ return Value::undef();
3556
+ }
3557
+
3558
+ Value cval = slotval(inj);
3559
+
3560
+ inj.keyI = static_cast<int>(inj.keys ? inj.keys->size() : 0);
3561
+
3562
+ // Replace the directive's list with the data value. Each return is SKIP, so
3563
+ // that inject leaves the detached list alone and validates nothing in it.
3564
+ inj.setval(cval, 2);
3565
+
3566
+ if (!inj.path.empty())
3567
+ inj.path.pop_back();
3568
+
3569
+ auto pl = inj.parent.as_list();
3570
+ size_t first = counted ? 2 : 1;
3571
+ Value count = counted ? lookup_v(inj.parent, Value(int64_t(1))) : Value::undef();
3572
+ std::vector<Value> tvals;
3573
+ for (size_t i = first; i < pl->size(); i++)
3574
+ tvals.push_back((*pl)[i]);
3575
+ int64_t numtvals = static_cast<int64_t>(tvals.size());
3576
+ std::string field = "The " + name + " validator at field " + pathify(pathlist(inj.path), 1);
3577
+
3578
+ if (0 == numtvals) {
3579
+ inj.errs->push_back(Value(field + (counted ? " must have a count and" : " must have") +
3580
+ " at least one argument."));
3581
+ return SKIP();
3582
+ }
3583
+
3584
+ int64_t lo = numtvals;
3585
+ int64_t hi = numtvals;
3586
+ std::string countdesc = "all";
3587
+ if (counted && !nofcount(count, numtvals, lo, hi, countdesc)) {
3588
+ inj.errs->push_back(Value(field + " has an invalid count: " + stringify(count) + "."));
3589
+ return SKIP();
3590
+ }
3591
+
3592
+ int64_t admitted = 0;
3593
+ for (int64_t tI = 0; tI < numtvals; tI++) {
3594
+ int64_t left = numtvals - tI;
3595
+
3596
+ // Stop once the specs left cannot change the verdict.
3597
+ if (hi < admitted || admitted + left < lo || (lo <= admitted && admitted + left <= hi))
3598
+ break;
3599
+
3600
+ if (admits(cval, tvals[static_cast<size_t>(tI)], inj, store))
3601
+ admitted++;
3602
+ }
3603
+
3604
+ if (admitted < lo || hi < admitted) {
3605
+ inj.errs->push_back(Value(invalid_type_msg(
3606
+ inj.path, countdesc + " of " + describe_alternatives(tvals), typify(cval), cval, "V0310")));
3607
+ }
3608
+
3609
+ return SKIP();
3610
+ }
3611
+
3612
+ // Count the specs that admit the value: ['`$NOF`', count, spec, ...], where
3613
+ // count is an integer, or a map holding min, max or both.
3614
+ inline Value NOF_FN(Injection& inj, const Value& val, const std::string& ref, const Value& store) {
3615
+ return validatecount(inj, store, "$NOF", true);
3616
+ }
3617
+
3618
+ // Every spec admits the value: ['`$ALL`', spec, ...].
3619
+ inline Value ALL_FN(Injection& inj, const Value& val, const std::string& ref, const Value& store) {
3620
+ return validatecount(inj, store, "$ALL", false);
3621
+ }
3622
+
3623
+ // The bounds of a $LEN bound, with -1 for no maximum, and the words for it.
3624
+ // False when the bound is invalid.
3625
+ inline bool lenbound(const Value& bound, int64_t& lo, int64_t& hi, std::string& desc) {
3626
+ std::string countdesc;
3627
+ if (!nofcount(bound, -1, lo, hi, countdesc))
3628
+ return false;
3629
+
3630
+ desc = "of length " + (lo == hi ? std::to_string(lo)
3631
+ : -1 == hi ? "at least " + std::to_string(lo)
3632
+ : 0 == lo ? "at most " + std::to_string(hi)
3633
+ : std::to_string(lo) + " to " + std::to_string(hi));
3634
+ return true;
3635
+ }
3636
+
3637
+ // The words for a $RANGE bound. False when the bound is invalid.
3638
+ inline bool rangedesc(const Value& bound, std::string& desc) {
3639
+ if (!bound.is_map())
3640
+ return false;
3641
+
3642
+ Value min = lookup_v(bound, Value("min"));
3643
+ Value max = lookup_v(bound, Value("max"));
3644
+ Value gt = lookup_v(bound, Value("gt"));
3645
+ Value lt = lookup_v(bound, Value("lt"));
3646
+ Value lower = min.is_undef() ? gt : min;
3647
+ Value upper = max.is_undef() ? lt : max;
3648
+ auto isnum = [](const Value& n) { return n.is_undef() || 0 != (T_number & typify(n)); };
3649
+
3650
+ size_t given = 0;
3651
+ for (const Value* n : {&min, &max, &gt, &lt})
3652
+ given += n->is_undef() ? 0 : 1;
3653
+
3654
+ size_t numkeys = bound.as_map()->size();
3655
+ bool valid = 0 < numkeys && numkeys == given && (min.is_undef() || gt.is_undef()) &&
3656
+ (max.is_undef() || lt.is_undef()) && isnum(min) && isnum(max) && isnum(gt) &&
3657
+ isnum(lt) &&
3658
+ (lower.is_undef() || upper.is_undef() || lower.as_double() <= upper.as_double());
3659
+
3660
+ if (!valid)
3661
+ return false;
3662
+
3663
+ std::string lowdesc = !min.is_undef() ? "at least " + stringify(min)
3664
+ : !gt.is_undef() ? "greater than " + stringify(gt)
3665
+ : "";
3666
+ std::string updesc = !max.is_undef() ? "at most " + stringify(max)
3667
+ : !lt.is_undef() ? "less than " + stringify(lt)
3668
+ : "";
3669
+ desc = lowdesc + (lowdesc.empty() || updesc.empty() ? "" : " and ") + updesc;
3670
+ return true;
3671
+ }
3672
+
3673
+ // A number within a valid $RANGE bound, compared as doubles, as JavaScript does.
3674
+ inline bool inrange(const Value& bound, const Value& val) {
3675
+ Value min = lookup_v(bound, Value("min"));
3676
+ Value max = lookup_v(bound, Value("max"));
3677
+ Value gt = lookup_v(bound, Value("gt"));
3678
+ Value lt = lookup_v(bound, Value("lt"));
3679
+ double v = val.as_double();
3680
+
3681
+ return (min.is_undef() || min.as_double() <= v) && (max.is_undef() || v <= max.as_double()) &&
3682
+ (gt.is_undef() || gt.as_double() < v) && (lt.is_undef() || v < lt.as_double());
3683
+ }
3684
+
3685
+ // A string's length in code points: its UTF-8 bytes that do not continue a character.
3686
+ inline int64_t codepoints(const std::string& s) {
3687
+ int64_t n = 0;
3688
+ for (unsigned char b : s)
3689
+ n += 0x80 == (b & 0xC0) ? 0 : 1;
3690
+ return n;
3691
+ }
3692
+
3693
+ // A $LIKE pattern compiled by std::regex, through re_compile, which throws on a
3694
+ // bad pattern. False unless it compiles.
3695
+ inline bool likere(const Value& pattern, std::regex& like) {
3696
+ if (!pattern.is_string())
3697
+ return false;
3698
+ try {
3699
+ like = re_compile(pattern.as_string());
3700
+ return true;
3701
+ } catch (const std::regex_error&) {
3702
+ return false;
3703
+ }
3704
+ }
3705
+
3706
+ // The bounding list directives: a bound or pattern, then at most one spec that also admits.
3707
+ inline Value validatebound(Injection& inj, const Value& store, const std::string& name) {
3708
+ if (inj.mode != M_VAL)
3709
+ return Value::undef();
3710
+
3711
+ if (!inj.parent.is_list() || inj.keyI != 0) {
3712
+ inj.errs->push_back(Value("The " + name + " validator at field " +
3713
+ pathify(pathlist(inj.path), 1, 1) +
3714
+ " must be the first element of an array."));
3715
+ return Value::undef();
3716
+ }
3717
+
3718
+ Value cval = slotval(inj);
3719
+
3720
+ inj.keyI = static_cast<int>(inj.keys ? inj.keys->size() : 0);
3721
+
3722
+ // As for the counting directives: SKIP keeps inject off the detached list.
3723
+ inj.setval(cval, 2);
3724
+
3725
+ if (!inj.path.empty())
3726
+ inj.path.pop_back();
3727
+
3728
+ std::string field = "The " + name + " validator at field " + pathify(pathlist(inj.path), 1);
3729
+ int64_t nargs = size(inj.parent) - 1;
3730
+ bool islen = "$LEN" == name;
3731
+ bool islike = "$LIKE" == name;
3732
+ std::string argname = islike ? "pattern" : "bound";
3733
+
3734
+ if (nargs < 1 || 2 < nargs) {
3735
+ inj.errs->push_back(Value(field + " must have a " + argname + " and at most one spec."));
3736
+ return SKIP();
3737
+ }
3738
+
3739
+ Value bound = lookup_v(inj.parent, Value(int64_t(1)));
3740
+ std::regex like;
3741
+ int64_t lo = 0;
3742
+ int64_t hi = 0;
3743
+ std::string desc;
3744
+
3745
+ bool valid = islen ? lenbound(bound, lo, hi, desc)
3746
+ : islike ? likere(bound, like)
3747
+ : rangedesc(bound, desc);
3748
+
3749
+ if (!valid) {
3750
+ inj.errs->push_back(
3751
+ Value(field + " has an invalid " + argname + ": " + stringify(bound) + "."));
3752
+ return SKIP();
3753
+ }
3754
+
3755
+ if (islike)
3756
+ desc = "like /" + bound.as_string() + "/";
3757
+
3758
+ int ctype = typify(cval);
3759
+
3760
+ if (2 == nargs) {
3761
+ Value spec = lookup_v(inj.parent, Value(int64_t(2)));
3762
+ if (!admits(cval, spec, inj, store)) {
3763
+ inj.errs->push_back(
3764
+ Value(invalid_type_msg(inj.path, describe_alternatives({spec}), ctype, cval, "V0410")));
3765
+ return SKIP();
3766
+ }
3767
+ }
3768
+
3769
+ if (0 == ((islen ? T_string | T_list | T_map : islike ? T_string : T_number) & ctype)) {
3770
+ std::string needtype = islen ? "string, list or map" : islike ? "string" : "number";
3771
+ inj.errs->push_back(Value(invalid_type_msg(inj.path, needtype, ctype, cval, "V0420")));
3772
+ return SKIP();
3773
+ }
3774
+
3775
+ int64_t len = islen ? (cval.is_string() ? codepoints(cval.as_string()) : size(cval)) : 0;
3776
+ bool inbound = islen ? lo <= len && (-1 == hi || len <= hi)
3777
+ : islike ? re_test(like, cval.as_string())
3778
+ : inrange(bound, cval);
3779
+
3780
+ if (!inbound) {
3781
+ std::string needtype = std::string(inj.path.size() > 1 ? "" : "value ") + desc;
3782
+ inj.errs->push_back(Value(invalid_type_msg(inj.path, needtype, ctype, cval, "V0430")));
3783
+ }
3784
+
3785
+ return SKIP();
3786
+ }
3787
+
3788
+ // The value's length is within a bound: ['`$LEN`', bound, spec?], where the
3789
+ // bound is as for a $NOF count. A string's length is in code points.
3790
+ inline Value LEN_FN(Injection& inj, const Value& val, const std::string& ref, const Value& store) {
3791
+ return validatebound(inj, store, "$LEN");
3792
+ }
3793
+
3794
+ // The value is a number within a bound: ['`$RANGE`', bound, spec?], where the
3795
+ // bound holds min or gt, max or lt, or one of each.
3796
+ inline Value RANGE_FN(Injection& inj, const Value& val, const std::string& ref,
3797
+ const Value& store) {
3798
+ return validatebound(inj, store, "$RANGE");
3799
+ }
3800
+
3801
+ inline Value LIKE_FN(Injection& inj, const Value& val, const std::string& ref, const Value& store) {
3802
+ return validatebound(inj, store, "$LIKE");
3803
+ }
3804
+
3805
+ // Names a validate spec may use besides its checkers: transform's that it keeps, and $OPEN.
3806
+ inline const std::vector<std::string>& VALIDATE_NAMES() {
3807
+ static const std::vector<std::string> names = {"$TOP", "$SPEC", "$BT", "$DS", "$WHEN",
3808
+ "$ANNO", "$REF", "$FORMAT", "$APPLY", "$OPEN"};
3809
+ return names;
3810
+ }
3811
+
3812
+ inline const std::regex& R_CHECKER_NAME() {
3813
+ static const std::regex r("^\\$[A-Z]+$");
3814
+ return r;
3815
+ }
3816
+
3817
+ inline std::string upper(std::string s) {
3818
+ for (auto& c : s)
3819
+ c = static_cast<char>(std::toupper(static_cast<unsigned char>(c)));
3820
+ return s;
3821
+ }
3822
+
3823
+ // The name a whole-string reference gives, when it is a checker name in any
3824
+ // case. Empty when there is none.
3825
+ inline std::string refname(const Value& val) {
3826
+ if (!val.is_string())
3827
+ return "";
3828
+ std::smatch m;
3829
+ const std::string& s = val.as_string();
3830
+ if (!std::regex_match(s, m, R_INJECTION_FULL()))
3831
+ return "";
3832
+ std::string name = m[1].str();
3833
+ return std::regex_match(upper(name), R_CHECKER_NAME()) ? name : "";
3834
+ }
3835
+
3836
+ inline bool knownname(const std::string& n, const Value& store) {
3837
+ const auto& names = VALIDATE_NAMES();
3838
+ if (std::find(names.begin(), names.end(), n) != names.end())
3839
+ return true;
3840
+ Value found = lookup_v(store, Value(n));
3841
+ return !found.is_undef() && !found.is_null();
3842
+ }
3843
+
3844
+ // Unknown: undefined and upper case, or a defined name in another case. Null disables a name.
3845
+ inline bool unknownname(const std::string& name, const Value& store) {
3846
+ std::string uname = upper(name);
3847
+ return !knownname(name, store) && (uname == name || knownname(uname, store));
3848
+ }
3849
+
3850
+ // Report each checker the spec names that validate lacks, and each misplaced
3851
+ // $REST; $EXACT's arguments are literals. Last: spec is a list's last item.
3852
+ inline void checknames(const Value& spec, const Value& store, std::vector<std::string>& path,
3853
+ std::vector<Value>& errs, bool last = false) {
3854
+ std::string name = refname(spec);
3855
+ if (!name.empty()) {
3856
+ if (unknownname(name, store))
3857
+ errs.push_back(
3858
+ Value("Unknown validator " + name + " at field " + pathify(pathlist(path)) + "."));
3859
+ else if ("$REST" == name)
3860
+ errs.push_back(Value(restmsg(pathlist(path), " must be the last element of an array.")));
3861
+ return;
3862
+ }
3863
+
3864
+ std::string head =
3865
+ spec.is_list() && !spec.as_list()->empty() ? refname((*spec.as_list())[0]) : "";
3866
+ if ("$EXACT" == head)
3867
+ return;
3868
+
3869
+ if ("$REST" == head) {
3870
+ if (!last)
3871
+ errs.push_back(Value(restmsg(pathlist(path), " must be the last element of an array.")));
3872
+ else if (2 != size(spec))
3873
+ errs.push_back(Value(restmsg(pathlist(path), " must have exactly one spec.")));
3874
+ path.push_back("1");
3875
+ checknames(lookup_v(spec, Value(int64_t(1))), store, path, errs);
3876
+ path.pop_back();
3877
+ return;
3878
+ }
3879
+
3880
+ const std::string restkey = "`$REST`";
3881
+ if (spec.is_map() && !lookup_v(spec, Value(restkey)).is_undef() &&
3882
+ !lookup_v(spec, Value("`$CHILD`")).is_undef())
3883
+ errs.push_back(Value(restmsg(pathlist(path), " cannot be used with $CHILD.")));
3884
+
3885
+ auto keys = keysof(spec);
3886
+ for (size_t i = 0; i < keys.size(); i++) {
3887
+ if (spec.is_map() && restkey != keys[i])
3888
+ checknames(Value(keys[i]), store, path, errs);
3889
+ path.push_back(keys[i]);
3890
+ checknames(lookup_v(spec, Value(keys[i])), store, path, errs,
3891
+ spec.is_list() && i + 1 == keys.size());
3892
+ path.pop_back();
3893
+ }
3894
+ }
3895
+
2952
3896
  } // namespace validators
2953
3897
 
2954
3898
  // ===========================================================================
@@ -2990,7 +3934,8 @@ inline void _validation(const Value& pval, const Value& key, const Value& parent
2990
3934
  auto pkeys = keysof(pval);
2991
3935
  Value open_v = getprop(pval, Value(S_BOPEN()));
2992
3936
  bool is_open = open_v.is_bool() && open_v.as_bool();
2993
- if (!pkeys.empty() && !is_open) {
3937
+ // Only a spec written as {} is open, even if named keys resolved away.
3938
+ if ((!pkeys.empty() || inj.named) && !is_open) {
2994
3939
  std::vector<std::string> badkeys;
2995
3940
  for (auto& ck : ckeys) {
2996
3941
  // Canonical uses `NONE === _lookup(pval, ckey)`: the shape's literal
@@ -3024,6 +3969,30 @@ inline void _validation(const Value& pval, const Value& key, const Value& parent
3024
3969
  if (!islist(pval)) {
3025
3970
  inj.errs->push_back(
3026
3971
  Value(invalid_type_msg(inj.path, typename_str(ptype), ctype, cval, "V0030")));
3972
+ } else if (0 < size(pval)) {
3973
+ // Closed list, so reject items past the end of the shape.
3974
+ std::vector<std::string> badkeys;
3975
+ for (int64_t i = size(pval); i < size(cval); i++)
3976
+ badkeys.push_back(strkey(Value(i)));
3977
+ if (!badkeys.empty()) {
3978
+ auto pl = std::make_shared<List>();
3979
+ for (auto& p : inj.path)
3980
+ pl->push_back(Value(p));
3981
+ std::string joined;
3982
+ for (size_t i = 0; i < badkeys.size(); i++) {
3983
+ if (i > 0)
3984
+ joined += ", ";
3985
+ joined += badkeys[i];
3986
+ }
3987
+ inj.errs->push_back(
3988
+ Value("Unexpected keys at field " + pathify(Value(pl), 1, 0) + ": " + joined));
3989
+ }
3990
+ } else {
3991
+ // Empty spec list [] means list can be open (any items).
3992
+ auto args_l = std::make_shared<List>();
3993
+ args_l->push_back(pval);
3994
+ args_l->push_back(cval);
3995
+ merge_v(Value(args_l));
3027
3996
  }
3028
3997
  } else if (exact) {
3029
3998
  if (cval != pval) {
@@ -3099,8 +4068,13 @@ inline Value validate(const Value& data, const Value& spec, const Value& options
3099
4068
  baseStore->set("$INSTANCE", Value(Injector(validators::TYPE_FN)));
3100
4069
  baseStore->set("$ANY", Value(Injector(validators::ANY_FN)));
3101
4070
  baseStore->set("$CHILD", Value(Injector(validators::CHILD_FN)));
3102
- baseStore->set("$ONE", Value(Injector(validators::ONE_FN)));
3103
4071
  baseStore->set("$EXACT", Value(Injector(validators::EXACT_FN)));
4072
+ baseStore->set("$NOF", Value(Injector(validators::NOF_FN)));
4073
+ baseStore->set("$ALL", Value(Injector(validators::ALL_FN)));
4074
+ baseStore->set("$LEN", Value(Injector(validators::LEN_FN)));
4075
+ baseStore->set("$RANGE", Value(Injector(validators::RANGE_FN)));
4076
+ baseStore->set("$LIKE", Value(Injector(validators::LIKE_FN)));
4077
+ baseStore->set("$REST", Value(Injector(validators::REST_FN)));
3104
4078
 
3105
4079
  auto mergeList = std::make_shared<List>();
3106
4080
  mergeList->push_back(Value(baseStore));
@@ -3123,22 +4097,32 @@ inline Value validate(const Value& data, const Value& spec, const Value& options
3123
4097
  if (!meta->find(S_BEXACT()))
3124
4098
  meta->set(S_BEXACT(), Value(false));
3125
4099
 
3126
- auto opts = std::shared_ptr<Map>(new Map());
3127
- opts->set("meta", Value(meta));
3128
- opts->set("extra", store);
3129
- opts->set("modify", Value(Modify(_validation)));
3130
- opts->set("handler", Value(Injector(_validatehandler)));
3131
- auto opt_errs_list = std::make_shared<List>();
3132
- for (const auto& e : *errs)
3133
- opt_errs_list->push_back(e);
3134
- opts->set("errs", Value(opt_errs_list));
3135
-
3136
- Value out = transform(data, spec, Value(opts));
3137
-
3138
- // Sync opt_errs_list back to errs.
3139
- errs->clear();
3140
- for (const auto& e : *opt_errs_list)
3141
- errs->push_back(e);
4100
+ // A spec that names an unknown checker validates nothing.
4101
+ size_t numerrs = errs->size();
4102
+ std::vector<std::string> namepath;
4103
+ validators::checknames(spec, store, namepath, *errs);
4104
+
4105
+ Value out;
4106
+ if (numerrs < errs->size()) {
4107
+ out = clone(data);
4108
+ } else {
4109
+ auto opts = std::shared_ptr<Map>(new Map());
4110
+ opts->set("meta", Value(meta));
4111
+ opts->set("extra", store);
4112
+ opts->set("modify", Value(Modify(_validation)));
4113
+ opts->set("handler", Value(Injector(_validatehandler)));
4114
+ auto opt_errs_list = std::make_shared<List>();
4115
+ for (const auto& e : *errs)
4116
+ opt_errs_list->push_back(e);
4117
+ opts->set("errs", Value(opt_errs_list));
4118
+
4119
+ out = transform(data, spec, Value(opts));
4120
+
4121
+ // Sync opt_errs_list back to errs.
4122
+ errs->clear();
4123
+ for (const auto& e : *opt_errs_list)
4124
+ errs->push_back(e);
4125
+ }
3142
4126
 
3143
4127
  if (!errs->empty() && !collect) {
3144
4128
  std::string msg;
@@ -3274,6 +4258,10 @@ inline Value NOT_FN(Injection& inj, const Value& val, const std::string& ref, co
3274
4258
  }
3275
4259
 
3276
4260
  inline Value CMP_FN(Injection& inj, const Value& val, const std::string& ref, const Value& store) {
4261
+ // The list form of $LIKE is validate's checker; the key form is this operator.
4262
+ if (M_VAL == inj.mode && "$LIKE" == ref)
4263
+ return validators::LIKE_FN(inj, val, ref, store);
4264
+
3277
4265
  if (inj.mode != M_KEYPRE)
3278
4266
  return Value::undef();
3279
4267
  Value term = lookup_v(inj.parent, Value(inj.key));
@@ -3314,6 +4302,27 @@ inline Value CMP_FN(Injection& inj, const Value& val, const std::string& ref, co
3314
4302
  return Value::undef();
3315
4303
  }
3316
4304
 
4305
+ // Open every map in a select query, so a child may hold keys the query does
4306
+ // not name, but leave a directive's literals as written: what $EXACT
4307
+ // compares, and the count or bound of $NOF, $LEN and $RANGE.
4308
+ inline void openquery(const Value& q) {
4309
+ if (ismap(q)) {
4310
+ Value cur = getprop(q, Value(S_BOPEN()));
4311
+ setprop(q, Value(S_BOPEN()), cur.is_undef() ? Value(true) : cur);
4312
+ for (const auto& entry : *q.as_map())
4313
+ openquery(entry.second);
4314
+ } else if (islist(q)) {
4315
+ auto l = q.as_list();
4316
+ std::string head = !l->empty() && (*l)[0].is_string() ? (*l)[0].as_string() : "";
4317
+ bool exact = S_BEXACT() == head;
4318
+ bool bounded = "`$NOF`" == head || "`$LEN`" == head || "`$RANGE`" == head;
4319
+ for (size_t i = 0; i < l->size(); i++) {
4320
+ if (0 == i || !(exact || (bounded && 1 == i)))
4321
+ openquery((*l)[i]);
4322
+ }
4323
+ }
4324
+ }
4325
+
3317
4326
  } // namespace selectors
3318
4327
 
3319
4328
  inline std::vector<Value> select(const Value& children, const Value& query) {
@@ -3353,14 +4362,8 @@ inline std::vector<Value> select(const Value& children, const Value& query) {
3353
4362
  extra->set("$LIKE", Value(Injector(selectors::CMP_FN)));
3354
4363
 
3355
4364
  Value q = clone(query);
3356
- walk_v(q,
3357
- [](const Value&, const Value& v, const Value&, const std::vector<std::string>&) -> Value {
3358
- if (ismap(v)) {
3359
- Value cur = getprop(v, Value(S_BOPEN()));
3360
- setprop(v, Value(S_BOPEN()), cur.is_undef() ? Value(true) : cur);
3361
- }
3362
- return v;
3363
- });
4365
+
4366
+ selectors::openquery(q);
3364
4367
 
3365
4368
  std::vector<Value> results;
3366
4369
  for (const auto& child : childList) {