@voxgig/sdkgen 1.3.8 → 1.3.10

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 (1731) hide show
  1. package/bin/voxgig-sdkgen +1 -1
  2. package/package.json +1 -1
  3. package/project/.sdk/model/feature/audit.aontu +22 -0
  4. package/project/.sdk/model/feature/cache.aontu +23 -0
  5. package/project/.sdk/model/feature/clienttrack.aontu +20 -0
  6. package/project/.sdk/model/feature/debug.aontu +25 -0
  7. package/project/.sdk/model/feature/feature-index.aontu +20 -1
  8. package/project/.sdk/model/feature/idempotency.aontu +21 -0
  9. package/project/.sdk/model/feature/metrics.aontu +20 -0
  10. package/project/.sdk/model/feature/netsim.aontu +36 -0
  11. package/project/.sdk/model/feature/paging.aontu +23 -0
  12. package/project/.sdk/model/feature/proxy.aontu +23 -0
  13. package/project/.sdk/model/feature/ratelimit.aontu +21 -0
  14. package/project/.sdk/model/feature/rbac.aontu +24 -0
  15. package/project/.sdk/model/feature/retry.aontu +23 -0
  16. package/project/.sdk/model/feature/streaming.aontu +22 -0
  17. package/project/.sdk/model/feature/telemetry.aontu +21 -0
  18. package/project/.sdk/model/feature/timeout.aontu +18 -0
  19. package/project/.sdk/model/target/c.aontu +37 -0
  20. package/project/.sdk/model/target/clojure.aontu +36 -0
  21. package/project/.sdk/model/target/cpp.aontu +35 -0
  22. package/project/.sdk/model/target/csharp.aontu +35 -0
  23. package/project/.sdk/model/target/dart.aontu +34 -0
  24. package/project/.sdk/model/target/elixir.aontu +33 -0
  25. package/project/.sdk/model/target/haskell.aontu +47 -0
  26. package/project/.sdk/model/target/java.aontu +37 -0
  27. package/project/.sdk/model/target/kotlin.aontu +37 -0
  28. package/project/.sdk/model/target/ocaml.aontu +36 -0
  29. package/project/.sdk/model/target/perl.aontu +37 -0
  30. package/project/.sdk/model/target/rust.aontu +37 -0
  31. package/project/.sdk/model/target/scala.aontu +37 -0
  32. package/project/.sdk/model/target/swift.aontu +35 -0
  33. package/project/.sdk/model/target/zig.aontu +27 -0
  34. package/project/.sdk/src/cmp/c/Config_c.ts +109 -0
  35. package/project/.sdk/src/cmp/c/EntityBase_c.ts +61 -0
  36. package/project/.sdk/src/cmp/c/EntityOperation_c.ts +41 -0
  37. package/project/.sdk/src/cmp/c/Entity_c.ts +85 -0
  38. package/project/.sdk/src/cmp/c/Gitignore_c.ts +29 -0
  39. package/project/.sdk/src/cmp/c/MainEntity_c.ts +31 -0
  40. package/project/.sdk/src/cmp/c/Main_c.ts +83 -0
  41. package/project/.sdk/src/cmp/c/Package_c.ts +17 -0
  42. package/project/.sdk/src/cmp/c/TestDirect_c.ts +227 -0
  43. package/project/.sdk/src/cmp/c/TestEntity_c.ts +82 -0
  44. package/project/.sdk/src/cmp/c/Test_c.ts +51 -0
  45. package/project/.sdk/src/cmp/c/fragment/Entity.fragment.c +265 -0
  46. package/project/.sdk/src/cmp/c/fragment/EntityCreateOp.fragment.c +27 -0
  47. package/project/.sdk/src/cmp/c/fragment/EntityListOp.fragment.c +24 -0
  48. package/project/.sdk/src/cmp/c/fragment/EntityLoadOp.fragment.c +29 -0
  49. package/project/.sdk/src/cmp/c/fragment/EntityRemoveOp.fragment.c +29 -0
  50. package/project/.sdk/src/cmp/c/fragment/EntityUpdateOp.fragment.c +29 -0
  51. package/project/.sdk/src/cmp/c/fragment/Main.fragment.c +220 -0
  52. package/project/.sdk/src/cmp/c/tsconfig.json +15 -0
  53. package/project/.sdk/src/cmp/c/utility_c.ts +102 -0
  54. package/project/.sdk/src/cmp/clojure/Config_clojure.ts +94 -0
  55. package/project/.sdk/src/cmp/clojure/EntityOperation_clojure.ts +35 -0
  56. package/project/.sdk/src/cmp/clojure/Entity_clojure.ts +77 -0
  57. package/project/.sdk/src/cmp/clojure/Gitignore_clojure.ts +28 -0
  58. package/project/.sdk/src/cmp/clojure/MainEntity_clojure.ts +21 -0
  59. package/project/.sdk/src/cmp/clojure/Main_clojure.ts +88 -0
  60. package/project/.sdk/src/cmp/clojure/Package_clojure.ts +41 -0
  61. package/project/.sdk/src/cmp/clojure/Test_clojure.ts +120 -0
  62. package/project/.sdk/src/cmp/clojure/fragment/Entity.fragment.clj +158 -0
  63. package/project/.sdk/src/cmp/clojure/fragment/EntityCreateOp.fragment.clj +14 -0
  64. package/project/.sdk/src/cmp/clojure/fragment/EntityListOp.fragment.clj +17 -0
  65. package/project/.sdk/src/cmp/clojure/fragment/EntityLoadOp.fragment.clj +15 -0
  66. package/project/.sdk/src/cmp/clojure/fragment/EntityRemoveOp.fragment.clj +15 -0
  67. package/project/.sdk/src/cmp/clojure/fragment/EntityUpdateOp.fragment.clj +15 -0
  68. package/project/.sdk/src/cmp/clojure/tsconfig.json +15 -0
  69. package/project/.sdk/src/cmp/clojure/utility_clojure.ts +82 -0
  70. package/project/.sdk/src/cmp/cpp/Config_cpp.ts +136 -0
  71. package/project/.sdk/src/cmp/cpp/EntityBase_cpp.ts +51 -0
  72. package/project/.sdk/src/cmp/cpp/EntityOperation_cpp.ts +37 -0
  73. package/project/.sdk/src/cmp/cpp/Entity_cpp.ts +78 -0
  74. package/project/.sdk/src/cmp/cpp/Gitignore_cpp.ts +27 -0
  75. package/project/.sdk/src/cmp/cpp/MainEntity_cpp.ts +35 -0
  76. package/project/.sdk/src/cmp/cpp/Main_cpp.ts +84 -0
  77. package/project/.sdk/src/cmp/cpp/Package_cpp.ts +17 -0
  78. package/project/.sdk/src/cmp/cpp/TestDirect_cpp.ts +258 -0
  79. package/project/.sdk/src/cmp/cpp/TestEntity_cpp.ts +454 -0
  80. package/project/.sdk/src/cmp/cpp/Test_cpp.ts +36 -0
  81. package/project/.sdk/src/cmp/cpp/fragment/Entity.fragment.cpp +40 -0
  82. package/project/.sdk/src/cmp/cpp/fragment/EntityCreateOp.fragment.cpp +22 -0
  83. package/project/.sdk/src/cmp/cpp/fragment/EntityListOp.fragment.cpp +21 -0
  84. package/project/.sdk/src/cmp/cpp/fragment/EntityLoadOp.fragment.cpp +25 -0
  85. package/project/.sdk/src/cmp/cpp/fragment/EntityRemoveOp.fragment.cpp +21 -0
  86. package/project/.sdk/src/cmp/cpp/fragment/EntityUpdateOp.fragment.cpp +22 -0
  87. package/project/.sdk/src/cmp/cpp/fragment/Main.fragment.cpp +43 -0
  88. package/project/.sdk/src/cmp/cpp/tsconfig.json +15 -0
  89. package/project/.sdk/src/cmp/cpp/utility_cpp.ts +83 -0
  90. package/project/.sdk/src/cmp/csharp/Config_csharp.ts +134 -0
  91. package/project/.sdk/src/cmp/csharp/EntityBase_csharp.ts +39 -0
  92. package/project/.sdk/src/cmp/csharp/EntityOperation_csharp.ts +41 -0
  93. package/project/.sdk/src/cmp/csharp/Entity_csharp.ts +85 -0
  94. package/project/.sdk/src/cmp/csharp/Gitignore_csharp.ts +38 -0
  95. package/project/.sdk/src/cmp/csharp/MainEntity_csharp.ts +36 -0
  96. package/project/.sdk/src/cmp/csharp/Main_csharp.ts +91 -0
  97. package/project/.sdk/src/cmp/csharp/Package_csharp.ts +101 -0
  98. package/project/.sdk/src/cmp/csharp/SdkError_csharp.ts +42 -0
  99. package/project/.sdk/src/cmp/csharp/TestDirect_csharp.ts +560 -0
  100. package/project/.sdk/src/cmp/csharp/TestEntity_csharp.ts +618 -0
  101. package/project/.sdk/src/cmp/csharp/Test_csharp.ts +38 -0
  102. package/project/.sdk/src/cmp/csharp/fragment/Entity.fragment.cs +28 -0
  103. package/project/.sdk/src/cmp/csharp/fragment/EntityBase.fragment.cs +268 -0
  104. package/project/.sdk/src/cmp/csharp/fragment/EntityCreateOp.fragment.cs +37 -0
  105. package/project/.sdk/src/cmp/csharp/fragment/EntityListOp.fragment.cs +35 -0
  106. package/project/.sdk/src/cmp/csharp/fragment/EntityLoadOp.fragment.cs +41 -0
  107. package/project/.sdk/src/cmp/csharp/fragment/EntityRemoveOp.fragment.cs +41 -0
  108. package/project/.sdk/src/cmp/csharp/fragment/EntityUpdateOp.fragment.cs +41 -0
  109. package/project/.sdk/src/cmp/csharp/fragment/Main.fragment.cs +278 -0
  110. package/project/.sdk/src/cmp/csharp/fragment/SdkError.fragment.cs +21 -0
  111. package/project/.sdk/src/cmp/csharp/tsconfig.json +15 -0
  112. package/project/.sdk/src/cmp/csharp/utility_csharp.ts +143 -0
  113. package/project/.sdk/src/cmp/dart/Config_dart.ts +99 -0
  114. package/project/.sdk/src/cmp/dart/EntityBase_dart.ts +34 -0
  115. package/project/.sdk/src/cmp/dart/EntityOperation_dart.ts +43 -0
  116. package/project/.sdk/src/cmp/dart/EntityTypes_dart.ts +190 -0
  117. package/project/.sdk/src/cmp/dart/Entity_dart.ts +79 -0
  118. package/project/.sdk/src/cmp/dart/Gitignore_dart.ts +34 -0
  119. package/project/.sdk/src/cmp/dart/MainEntity_dart.ts +33 -0
  120. package/project/.sdk/src/cmp/dart/Main_dart.ts +105 -0
  121. package/project/.sdk/src/cmp/dart/Package_dart.ts +81 -0
  122. package/project/.sdk/src/cmp/dart/SdkError_dart.ts +42 -0
  123. package/project/.sdk/src/cmp/dart/TestDirect_dart.ts +498 -0
  124. package/project/.sdk/src/cmp/dart/TestEntity_dart.ts +552 -0
  125. package/project/.sdk/src/cmp/dart/Test_dart.ts +105 -0
  126. package/project/.sdk/src/cmp/dart/fragment/Config.fragment.dart +48 -0
  127. package/project/.sdk/src/cmp/dart/fragment/Direct.test.fragment.dart +25 -0
  128. package/project/.sdk/src/cmp/dart/fragment/Entity.fragment.dart +31 -0
  129. package/project/.sdk/src/cmp/dart/fragment/Entity.test.fragment.dart +67 -0
  130. package/project/.sdk/src/cmp/dart/fragment/EntityBase.fragment.dart +285 -0
  131. package/project/.sdk/src/cmp/dart/fragment/EntityCreateOp.fragment.dart +90 -0
  132. package/project/.sdk/src/cmp/dart/fragment/EntityListOp.fragment.dart +90 -0
  133. package/project/.sdk/src/cmp/dart/fragment/EntityLoadOp.fragment.dart +94 -0
  134. package/project/.sdk/src/cmp/dart/fragment/EntityRemoveOp.fragment.dart +94 -0
  135. package/project/.sdk/src/cmp/dart/fragment/EntityUpdateOp.fragment.dart +94 -0
  136. package/project/.sdk/src/cmp/dart/fragment/Main.fragment.dart +240 -0
  137. package/project/.sdk/src/cmp/dart/fragment/SdkError.fragment.dart +18 -0
  138. package/project/.sdk/src/cmp/dart/tsconfig.json +15 -0
  139. package/project/.sdk/src/cmp/dart/utility_dart.ts +86 -0
  140. package/project/.sdk/src/cmp/elixir/Config_elixir.ts +101 -0
  141. package/project/.sdk/src/cmp/elixir/EntityOperation_elixir.ts +27 -0
  142. package/project/.sdk/src/cmp/elixir/Entity_elixir.ts +54 -0
  143. package/project/.sdk/src/cmp/elixir/Gitignore_elixir.ts +28 -0
  144. package/project/.sdk/src/cmp/elixir/MainEntity_elixir.ts +26 -0
  145. package/project/.sdk/src/cmp/elixir/Main_elixir.ts +124 -0
  146. package/project/.sdk/src/cmp/elixir/Package_elixir.ts +64 -0
  147. package/project/.sdk/src/cmp/elixir/TestDirect_elixir.ts +95 -0
  148. package/project/.sdk/src/cmp/elixir/TestEntity_elixir.ts +115 -0
  149. package/project/.sdk/src/cmp/elixir/Test_elixir.ts +47 -0
  150. package/project/.sdk/src/cmp/elixir/fragment/Entity.fragment.ex +37 -0
  151. package/project/.sdk/src/cmp/elixir/fragment/EntityCreateOp.fragment.ex +28 -0
  152. package/project/.sdk/src/cmp/elixir/fragment/EntityListOp.fragment.ex +30 -0
  153. package/project/.sdk/src/cmp/elixir/fragment/EntityLoadOp.fragment.ex +32 -0
  154. package/project/.sdk/src/cmp/elixir/fragment/EntityRemoveOp.fragment.ex +32 -0
  155. package/project/.sdk/src/cmp/elixir/fragment/EntityUpdateOp.fragment.ex +30 -0
  156. package/project/.sdk/src/cmp/elixir/fragment/Main.fragment.ex +218 -0
  157. package/project/.sdk/src/cmp/elixir/fragment/Pipeline.fragment.ex +62 -0
  158. package/project/.sdk/src/cmp/elixir/tsconfig.json +15 -0
  159. package/project/.sdk/src/cmp/elixir/utility_elixir.ts +85 -0
  160. package/project/.sdk/src/cmp/go/TestEntity_go.ts +62 -0
  161. package/project/.sdk/src/cmp/go/fragment/Entity.fragment.go +133 -0
  162. package/project/.sdk/src/cmp/go/fragment/Main.fragment.go +14 -8
  163. package/project/.sdk/src/cmp/haskell/Config_haskell.ts +115 -0
  164. package/project/.sdk/src/cmp/haskell/Entity_haskell.ts +13 -0
  165. package/project/.sdk/src/cmp/haskell/Gitignore_haskell.ts +27 -0
  166. package/project/.sdk/src/cmp/haskell/Main_haskell.ts +123 -0
  167. package/project/.sdk/src/cmp/haskell/Package_haskell.ts +58 -0
  168. package/project/.sdk/src/cmp/haskell/Test_haskell.ts +263 -0
  169. package/project/.sdk/src/cmp/haskell/tsconfig.json +15 -0
  170. package/project/.sdk/src/cmp/haskell/utility_haskell.ts +105 -0
  171. package/project/.sdk/src/cmp/java/Config_java.ts +138 -0
  172. package/project/.sdk/src/cmp/java/EntityBase_java.ts +50 -0
  173. package/project/.sdk/src/cmp/java/EntityOperation_java.ts +48 -0
  174. package/project/.sdk/src/cmp/java/Entity_java.ts +95 -0
  175. package/project/.sdk/src/cmp/java/Gitignore_java.ts +37 -0
  176. package/project/.sdk/src/cmp/java/MainEntity_java.ts +41 -0
  177. package/project/.sdk/src/cmp/java/Main_java.ts +100 -0
  178. package/project/.sdk/src/cmp/java/Package_java.ts +126 -0
  179. package/project/.sdk/src/cmp/java/SdkError_java.ts +49 -0
  180. package/project/.sdk/src/cmp/java/TestDirect_java.ts +509 -0
  181. package/project/.sdk/src/cmp/java/TestEntity_java.ts +599 -0
  182. package/project/.sdk/src/cmp/java/Test_java.ts +42 -0
  183. package/project/.sdk/src/cmp/java/fragment/Entity.fragment.java +35 -0
  184. package/project/.sdk/src/cmp/java/fragment/EntityBase.fragment.java +235 -0
  185. package/project/.sdk/src/cmp/java/fragment/EntityCreateOp.fragment.java +42 -0
  186. package/project/.sdk/src/cmp/java/fragment/EntityListOp.fragment.java +39 -0
  187. package/project/.sdk/src/cmp/java/fragment/EntityLoadOp.fragment.java +45 -0
  188. package/project/.sdk/src/cmp/java/fragment/EntityRemoveOp.fragment.java +45 -0
  189. package/project/.sdk/src/cmp/java/fragment/EntityUpdateOp.fragment.java +45 -0
  190. package/project/.sdk/src/cmp/java/fragment/Main.fragment.java +34 -0
  191. package/project/.sdk/src/cmp/java/fragment/SdkError.fragment.java +27 -0
  192. package/project/.sdk/src/cmp/java/tsconfig.json +15 -0
  193. package/project/.sdk/src/cmp/java/utility_java.ts +102 -0
  194. package/project/.sdk/src/cmp/js/Config_js.ts +4 -2
  195. package/project/.sdk/src/cmp/js/TestEntity_js.ts +1 -0
  196. package/project/.sdk/src/cmp/js/fragment/Entity.test.fragment.js +32 -1
  197. package/project/.sdk/src/cmp/js/fragment/EntityBase.fragment.js +81 -0
  198. package/project/.sdk/src/cmp/js/fragment/Main.fragment.js +10 -5
  199. package/project/.sdk/src/cmp/kotlin/Config_kotlin.ts +128 -0
  200. package/project/.sdk/src/cmp/kotlin/EntityBase_kotlin.ts +50 -0
  201. package/project/.sdk/src/cmp/kotlin/EntityOperation_kotlin.ts +48 -0
  202. package/project/.sdk/src/cmp/kotlin/Entity_kotlin.ts +93 -0
  203. package/project/.sdk/src/cmp/kotlin/Gitignore_kotlin.ts +41 -0
  204. package/project/.sdk/src/cmp/kotlin/MainEntity_kotlin.ts +40 -0
  205. package/project/.sdk/src/cmp/kotlin/Main_kotlin.ts +94 -0
  206. package/project/.sdk/src/cmp/kotlin/Package_kotlin.ts +110 -0
  207. package/project/.sdk/src/cmp/kotlin/SdkError_kotlin.ts +48 -0
  208. package/project/.sdk/src/cmp/kotlin/TestDirect_kotlin.ts +479 -0
  209. package/project/.sdk/src/cmp/kotlin/TestEntity_kotlin.ts +567 -0
  210. package/project/.sdk/src/cmp/kotlin/Test_kotlin.ts +42 -0
  211. package/project/.sdk/src/cmp/kotlin/fragment/Entity.fragment.kt +28 -0
  212. package/project/.sdk/src/cmp/kotlin/fragment/EntityBase.fragment.kt +195 -0
  213. package/project/.sdk/src/cmp/kotlin/fragment/EntityCreateOp.fragment.kt +37 -0
  214. package/project/.sdk/src/cmp/kotlin/fragment/EntityListOp.fragment.kt +34 -0
  215. package/project/.sdk/src/cmp/kotlin/fragment/EntityLoadOp.fragment.kt +40 -0
  216. package/project/.sdk/src/cmp/kotlin/fragment/EntityRemoveOp.fragment.kt +40 -0
  217. package/project/.sdk/src/cmp/kotlin/fragment/EntityUpdateOp.fragment.kt +40 -0
  218. package/project/.sdk/src/cmp/kotlin/fragment/Main.fragment.kt +28 -0
  219. package/project/.sdk/src/cmp/kotlin/fragment/SdkError.fragment.kt +24 -0
  220. package/project/.sdk/src/cmp/kotlin/tsconfig.json +15 -0
  221. package/project/.sdk/src/cmp/kotlin/utility_kotlin.ts +101 -0
  222. package/project/.sdk/src/cmp/lua/Entity_lua.ts +7 -9
  223. package/project/.sdk/src/cmp/lua/TestEntity_lua.ts +55 -0
  224. package/project/.sdk/src/cmp/lua/fragment/Entity.fragment.lua +137 -0
  225. package/project/.sdk/src/cmp/lua/fragment/Main.fragment.lua +9 -6
  226. package/project/.sdk/src/cmp/ocaml/Config_ocaml.ts +114 -0
  227. package/project/.sdk/src/cmp/ocaml/EntityOperation_ocaml.ts +63 -0
  228. package/project/.sdk/src/cmp/ocaml/Entity_ocaml.ts +152 -0
  229. package/project/.sdk/src/cmp/ocaml/Gitignore_ocaml.ts +37 -0
  230. package/project/.sdk/src/cmp/ocaml/MainEntity_ocaml.ts +28 -0
  231. package/project/.sdk/src/cmp/ocaml/Main_ocaml.ts +111 -0
  232. package/project/.sdk/src/cmp/ocaml/Package_ocaml.ts +47 -0
  233. package/project/.sdk/src/cmp/ocaml/SdkError_ocaml.ts +42 -0
  234. package/project/.sdk/src/cmp/ocaml/TestDirect_ocaml.ts +47 -0
  235. package/project/.sdk/src/cmp/ocaml/TestEntity_ocaml.ts +130 -0
  236. package/project/.sdk/src/cmp/ocaml/Test_ocaml.ts +35 -0
  237. package/project/.sdk/src/cmp/ocaml/fragment/RunOp.fragment.ml +32 -0
  238. package/project/.sdk/src/cmp/ocaml/tsconfig.json +15 -0
  239. package/project/.sdk/src/cmp/ocaml/utility_ocaml.ts +129 -0
  240. package/project/.sdk/src/cmp/perl/Config_perl.ts +127 -0
  241. package/project/.sdk/src/cmp/perl/EntityOperation_perl.ts +42 -0
  242. package/project/.sdk/src/cmp/perl/Entity_perl.ts +84 -0
  243. package/project/.sdk/src/cmp/perl/Gitignore_perl.ts +32 -0
  244. package/project/.sdk/src/cmp/perl/MainEntity_perl.ts +34 -0
  245. package/project/.sdk/src/cmp/perl/Main_perl.ts +140 -0
  246. package/project/.sdk/src/cmp/perl/Package_perl.ts +63 -0
  247. package/project/.sdk/src/cmp/perl/TestDirect_perl.ts +433 -0
  248. package/project/.sdk/src/cmp/perl/TestEntity_perl.ts +515 -0
  249. package/project/.sdk/src/cmp/perl/Test_perl.ts +54 -0
  250. package/project/.sdk/src/cmp/perl/fragment/Entity.fragment.pm +235 -0
  251. package/project/.sdk/src/cmp/perl/fragment/EntityCreateOp.fragment.pm +31 -0
  252. package/project/.sdk/src/cmp/perl/fragment/EntityListOp.fragment.pm +43 -0
  253. package/project/.sdk/src/cmp/perl/fragment/EntityLoadOp.fragment.pm +34 -0
  254. package/project/.sdk/src/cmp/perl/fragment/EntityRemoveOp.fragment.pm +32 -0
  255. package/project/.sdk/src/cmp/perl/fragment/EntityUpdateOp.fragment.pm +32 -0
  256. package/project/.sdk/src/cmp/perl/fragment/Main.fragment.pm +263 -0
  257. package/project/.sdk/src/cmp/perl/fragment/SdkError.fragment.pm +27 -0
  258. package/project/.sdk/src/cmp/perl/tsconfig.json +15 -0
  259. package/project/.sdk/src/cmp/perl/utility_perl.ts +30 -0
  260. package/project/.sdk/src/cmp/php/TestEntity_php.ts +53 -0
  261. package/project/.sdk/src/cmp/php/fragment/Entity.fragment.php +124 -0
  262. package/project/.sdk/src/cmp/php/fragment/Main.fragment.php +13 -6
  263. package/project/.sdk/src/cmp/py/Entity_py.ts +8 -9
  264. package/project/.sdk/src/cmp/py/TestEntity_py.ts +48 -0
  265. package/project/.sdk/src/cmp/py/fragment/Entity.fragment.py +135 -28
  266. package/project/.sdk/src/cmp/py/fragment/Main.fragment.py +9 -6
  267. package/project/.sdk/src/cmp/rb/Entity_rb.ts +8 -9
  268. package/project/.sdk/src/cmp/rb/ReadmeExamplesTest_rb.ts +4 -1
  269. package/project/.sdk/src/cmp/rb/TestEntity_rb.ts +50 -0
  270. package/project/.sdk/src/cmp/rb/fragment/Entity.fragment.rb +122 -23
  271. package/project/.sdk/src/cmp/rb/fragment/Main.fragment.rb +9 -6
  272. package/project/.sdk/src/cmp/rust/Config_rust.ts +118 -0
  273. package/project/.sdk/src/cmp/rust/EntityBase_rust.ts +59 -0
  274. package/project/.sdk/src/cmp/rust/EntityOperation_rust.ts +44 -0
  275. package/project/.sdk/src/cmp/rust/Entity_rust.ts +94 -0
  276. package/project/.sdk/src/cmp/rust/Gitignore_rust.ts +29 -0
  277. package/project/.sdk/src/cmp/rust/MainEntity_rust.ts +37 -0
  278. package/project/.sdk/src/cmp/rust/Main_rust.ts +146 -0
  279. package/project/.sdk/src/cmp/rust/Package_rust.ts +80 -0
  280. package/project/.sdk/src/cmp/rust/SdkError_rust.ts +42 -0
  281. package/project/.sdk/src/cmp/rust/TestDirect_rust.ts +448 -0
  282. package/project/.sdk/src/cmp/rust/TestEntity_rust.ts +635 -0
  283. package/project/.sdk/src/cmp/rust/Test_rust.ts +51 -0
  284. package/project/.sdk/src/cmp/rust/fragment/Entity.fragment.rs +288 -0
  285. package/project/.sdk/src/cmp/rust/fragment/EntityCreateOp.fragment.rs +29 -0
  286. package/project/.sdk/src/cmp/rust/fragment/EntityListOp.fragment.rs +26 -0
  287. package/project/.sdk/src/cmp/rust/fragment/EntityLoadOp.fragment.rs +35 -0
  288. package/project/.sdk/src/cmp/rust/fragment/EntityRemoveOp.fragment.rs +35 -0
  289. package/project/.sdk/src/cmp/rust/fragment/EntityUpdateOp.fragment.rs +35 -0
  290. package/project/.sdk/src/cmp/rust/fragment/Main.fragment.rs +296 -0
  291. package/project/.sdk/src/cmp/rust/fragment/SdkError.fragment.rs +34 -0
  292. package/project/.sdk/src/cmp/rust/tsconfig.json +15 -0
  293. package/project/.sdk/src/cmp/rust/utility_rust.ts +104 -0
  294. package/project/.sdk/src/cmp/scala/Config_scala.ts +126 -0
  295. package/project/.sdk/src/cmp/scala/EntityBase_scala.ts +50 -0
  296. package/project/.sdk/src/cmp/scala/EntityOperation_scala.ts +46 -0
  297. package/project/.sdk/src/cmp/scala/Entity_scala.ts +87 -0
  298. package/project/.sdk/src/cmp/scala/Gitignore_scala.ts +31 -0
  299. package/project/.sdk/src/cmp/scala/MainEntity_scala.ts +40 -0
  300. package/project/.sdk/src/cmp/scala/Main_scala.ts +93 -0
  301. package/project/.sdk/src/cmp/scala/Package_scala.ts +22 -0
  302. package/project/.sdk/src/cmp/scala/TestDirect_scala.ts +233 -0
  303. package/project/.sdk/src/cmp/scala/TestEntity_scala.ts +397 -0
  304. package/project/.sdk/src/cmp/scala/Test_scala.ts +93 -0
  305. package/project/.sdk/src/cmp/scala/fragment/Entity.fragment.scala +24 -0
  306. package/project/.sdk/src/cmp/scala/fragment/EntityBase.fragment.scala +169 -0
  307. package/project/.sdk/src/cmp/scala/fragment/EntityCreateOp.fragment.scala +32 -0
  308. package/project/.sdk/src/cmp/scala/fragment/EntityListOp.fragment.scala +28 -0
  309. package/project/.sdk/src/cmp/scala/fragment/EntityLoadOp.fragment.scala +33 -0
  310. package/project/.sdk/src/cmp/scala/fragment/EntityRemoveOp.fragment.scala +33 -0
  311. package/project/.sdk/src/cmp/scala/fragment/EntityUpdateOp.fragment.scala +33 -0
  312. package/project/.sdk/src/cmp/scala/fragment/Main.fragment.scala +27 -0
  313. package/project/.sdk/src/cmp/scala/tsconfig.json +15 -0
  314. package/project/.sdk/src/cmp/scala/utility_scala.ts +99 -0
  315. package/project/.sdk/src/cmp/swift/Config_swift.ts +127 -0
  316. package/project/.sdk/src/cmp/swift/EntityBase_swift.ts +38 -0
  317. package/project/.sdk/src/cmp/swift/EntityOperation_swift.ts +39 -0
  318. package/project/.sdk/src/cmp/swift/Entity_swift.ts +86 -0
  319. package/project/.sdk/src/cmp/swift/Gitignore_swift.ts +32 -0
  320. package/project/.sdk/src/cmp/swift/MainEntity_swift.ts +35 -0
  321. package/project/.sdk/src/cmp/swift/Main_swift.ts +94 -0
  322. package/project/.sdk/src/cmp/swift/Package_swift.ts +66 -0
  323. package/project/.sdk/src/cmp/swift/SdkError_swift.ts +41 -0
  324. package/project/.sdk/src/cmp/swift/TestDirect_swift.ts +84 -0
  325. package/project/.sdk/src/cmp/swift/TestEntity_swift.ts +84 -0
  326. package/project/.sdk/src/cmp/swift/Test_swift.ts +39 -0
  327. package/project/.sdk/src/cmp/swift/fragment/Entity.fragment.swift +23 -0
  328. package/project/.sdk/src/cmp/swift/fragment/EntityBase.fragment.swift +202 -0
  329. package/project/.sdk/src/cmp/swift/fragment/EntityCreateOp.fragment.swift +23 -0
  330. package/project/.sdk/src/cmp/swift/fragment/EntityListOp.fragment.swift +21 -0
  331. package/project/.sdk/src/cmp/swift/fragment/EntityLoadOp.fragment.swift +24 -0
  332. package/project/.sdk/src/cmp/swift/fragment/EntityRemoveOp.fragment.swift +24 -0
  333. package/project/.sdk/src/cmp/swift/fragment/EntityUpdateOp.fragment.swift +24 -0
  334. package/project/.sdk/src/cmp/swift/fragment/Main.fragment.swift +211 -0
  335. package/project/.sdk/src/cmp/swift/fragment/SdkError.fragment.swift +22 -0
  336. package/project/.sdk/src/cmp/swift/tsconfig.json +15 -0
  337. package/project/.sdk/src/cmp/swift/utility_swift.ts +76 -0
  338. package/project/.sdk/src/cmp/ts/Config_ts.ts +4 -2
  339. package/project/.sdk/src/cmp/ts/Package_ts.ts +12 -0
  340. package/project/.sdk/src/cmp/ts/TestEntity_ts.ts +8 -0
  341. package/project/.sdk/src/cmp/ts/fragment/EntityBase.fragment.ts +81 -0
  342. package/project/.sdk/src/cmp/ts/fragment/Main.fragment.ts +10 -5
  343. package/project/.sdk/src/cmp/zig/Config_zig.ts +113 -0
  344. package/project/.sdk/src/cmp/zig/EntityOperation_zig.ts +39 -0
  345. package/project/.sdk/src/cmp/zig/Entity_zig.ts +89 -0
  346. package/project/.sdk/src/cmp/zig/Gitignore_zig.ts +27 -0
  347. package/project/.sdk/src/cmp/zig/MainEntity_zig.ts +38 -0
  348. package/project/.sdk/src/cmp/zig/Main_zig.ts +78 -0
  349. package/project/.sdk/src/cmp/zig/Test_zig.ts +114 -0
  350. package/project/.sdk/src/cmp/zig/fragment/Entity.fragment.zig +278 -0
  351. package/project/.sdk/src/cmp/zig/fragment/EntityCreateOp.fragment.zig +24 -0
  352. package/project/.sdk/src/cmp/zig/fragment/EntityListOp.fragment.zig +21 -0
  353. package/project/.sdk/src/cmp/zig/fragment/EntityLoadOp.fragment.zig +26 -0
  354. package/project/.sdk/src/cmp/zig/fragment/EntityRemoveOp.fragment.zig +26 -0
  355. package/project/.sdk/src/cmp/zig/fragment/EntityUpdateOp.fragment.zig +26 -0
  356. package/project/.sdk/src/cmp/zig/fragment/Main.fragment.zig +258 -0
  357. package/project/.sdk/src/cmp/zig/tsconfig.json +15 -0
  358. package/project/.sdk/src/cmp/zig/utility_zig.ts +95 -0
  359. package/project/.sdk/tm/c/LICENSE +22 -0
  360. package/project/.sdk/tm/c/Makefile +50 -0
  361. package/project/.sdk/tm/c/VERSION +1 -0
  362. package/project/.sdk/tm/c/core/context.c +145 -0
  363. package/project/.sdk/tm/c/core/control.c +19 -0
  364. package/project/.sdk/tm/c/core/error.c +24 -0
  365. package/project/.sdk/tm/c/core/helpers.c +228 -0
  366. package/project/.sdk/tm/c/core/operation.c +34 -0
  367. package/project/.sdk/tm/c/core/point.c +49 -0
  368. package/project/.sdk/tm/c/core/response.c +29 -0
  369. package/project/.sdk/tm/c/core/result.c +60 -0
  370. package/project/.sdk/tm/c/core/sdk.h +514 -0
  371. package/project/.sdk/tm/c/core/spec.c +94 -0
  372. package/project/.sdk/tm/c/core/utility.c +74 -0
  373. package/project/.sdk/tm/c/feature/audit.c +134 -0
  374. package/project/.sdk/tm/c/feature/base.c +40 -0
  375. package/project/.sdk/tm/c/feature/cache.c +262 -0
  376. package/project/.sdk/tm/c/feature/clienttrack.c +144 -0
  377. package/project/.sdk/tm/c/feature/debug.c +230 -0
  378. package/project/.sdk/tm/c/feature/idempotency.c +164 -0
  379. package/project/.sdk/tm/c/feature/log.c +79 -0
  380. package/project/.sdk/tm/c/feature/metrics.c +177 -0
  381. package/project/.sdk/tm/c/feature/netsim.c +211 -0
  382. package/project/.sdk/tm/c/feature/paging.c +223 -0
  383. package/project/.sdk/tm/c/feature/proxy.c +249 -0
  384. package/project/.sdk/tm/c/feature/ratelimit.c +124 -0
  385. package/project/.sdk/tm/c/feature/rbac.c +167 -0
  386. package/project/.sdk/tm/c/feature/retry.c +164 -0
  387. package/project/.sdk/tm/c/feature/streaming.c +147 -0
  388. package/project/.sdk/tm/c/feature/support.c +115 -0
  389. package/project/.sdk/tm/c/feature/telemetry.c +205 -0
  390. package/project/.sdk/tm/c/feature/test.c +385 -0
  391. package/project/.sdk/tm/c/feature/timeout.c +106 -0
  392. package/project/.sdk/tm/c/src/feature/README.md +1 -0
  393. package/project/.sdk/tm/c/src/feature/audit/.gitkeep +0 -0
  394. package/project/.sdk/tm/c/src/feature/base/.gitkeep +0 -0
  395. package/project/.sdk/tm/c/src/feature/cache/.gitkeep +0 -0
  396. package/project/.sdk/tm/c/src/feature/clienttrack/.gitkeep +0 -0
  397. package/project/.sdk/tm/c/src/feature/debug/.gitkeep +0 -0
  398. package/project/.sdk/tm/c/src/feature/idempotency/.gitkeep +0 -0
  399. package/project/.sdk/tm/c/src/feature/log/.gitkeep +0 -0
  400. package/project/.sdk/tm/c/src/feature/metrics/.gitkeep +0 -0
  401. package/project/.sdk/tm/c/src/feature/netsim/.gitkeep +0 -0
  402. package/project/.sdk/tm/c/src/feature/paging/.gitkeep +0 -0
  403. package/project/.sdk/tm/c/src/feature/proxy/.gitkeep +0 -0
  404. package/project/.sdk/tm/c/src/feature/ratelimit/.gitkeep +0 -0
  405. package/project/.sdk/tm/c/src/feature/rbac/.gitkeep +0 -0
  406. package/project/.sdk/tm/c/src/feature/retry/.gitkeep +0 -0
  407. package/project/.sdk/tm/c/src/feature/streaming/.gitkeep +0 -0
  408. package/project/.sdk/tm/c/src/feature/telemetry/.gitkeep +0 -0
  409. package/project/.sdk/tm/c/src/feature/test/.gitkeep +0 -0
  410. package/project/.sdk/tm/c/src/feature/timeout/.gitkeep +0 -0
  411. package/project/.sdk/tm/c/tests/ctest.h +58 -0
  412. package/project/.sdk/tm/c/tests/feature_harness.h +441 -0
  413. package/project/.sdk/tm/c/tests/feature_test.c +1210 -0
  414. package/project/.sdk/tm/c/tests/pipeline_test.c +561 -0
  415. package/project/.sdk/tm/c/tests/primary_utility_test.c +573 -0
  416. package/project/.sdk/tm/c/tests/runner.h +274 -0
  417. package/project/.sdk/tm/c/tests/sdk_pipeline_test.c +89 -0
  418. package/project/.sdk/tm/c/tests/struct_corpus_test.c +939 -0
  419. package/project/.sdk/tm/c/utility/clean.c +20 -0
  420. package/project/.sdk/tm/c/utility/done.c +26 -0
  421. package/project/.sdk/tm/c/utility/feature_add.c +42 -0
  422. package/project/.sdk/tm/c/utility/feature_hook.c +22 -0
  423. package/project/.sdk/tm/c/utility/feature_init.c +22 -0
  424. package/project/.sdk/tm/c/utility/fetcher.c +78 -0
  425. package/project/.sdk/tm/c/utility/jsonparse.c +11 -0
  426. package/project/.sdk/tm/c/utility/make_context.c +7 -0
  427. package/project/.sdk/tm/c/utility/make_error.c +66 -0
  428. package/project/.sdk/tm/c/utility/make_fetch_def.c +43 -0
  429. package/project/.sdk/tm/c/utility/make_options.c +179 -0
  430. package/project/.sdk/tm/c/utility/make_point.c +109 -0
  431. package/project/.sdk/tm/c/utility/make_request.c +62 -0
  432. package/project/.sdk/tm/c/utility/make_response.c +45 -0
  433. package/project/.sdk/tm/c/utility/make_result.c +61 -0
  434. package/project/.sdk/tm/c/utility/make_spec.c +60 -0
  435. package/project/.sdk/tm/c/utility/make_url.c +88 -0
  436. package/project/.sdk/tm/c/utility/param.c +58 -0
  437. package/project/.sdk/tm/c/utility/prepare_auth.c +65 -0
  438. package/project/.sdk/tm/c/utility/prepare_body.c +12 -0
  439. package/project/.sdk/tm/c/utility/prepare_headers.c +13 -0
  440. package/project/.sdk/tm/c/utility/prepare_method.c +16 -0
  441. package/project/.sdk/tm/c/utility/prepare_params.c +30 -0
  442. package/project/.sdk/tm/c/utility/prepare_path.c +17 -0
  443. package/project/.sdk/tm/c/utility/prepare_query.c +37 -0
  444. package/project/.sdk/tm/c/utility/result_basic.c +43 -0
  445. package/project/.sdk/tm/c/utility/result_body.c +17 -0
  446. package/project/.sdk/tm/c/utility/result_headers.c +17 -0
  447. package/project/.sdk/tm/c/utility/struct/inject.c +703 -0
  448. package/project/.sdk/tm/c/utility/struct/re_util.c +221 -0
  449. package/project/.sdk/tm/c/utility/struct/regex.c +1103 -0
  450. package/project/.sdk/tm/c/utility/struct/regex.h +84 -0
  451. package/project/.sdk/tm/c/utility/struct/transform.c +2224 -0
  452. package/project/.sdk/tm/c/utility/struct/utility.c +1971 -0
  453. package/project/.sdk/tm/c/utility/struct/value.c +640 -0
  454. package/project/.sdk/tm/c/utility/struct/value.h +273 -0
  455. package/project/.sdk/tm/c/utility/struct/value_io.c +366 -0
  456. package/project/.sdk/tm/c/utility/struct/value_io.h +31 -0
  457. package/project/.sdk/tm/c/utility/struct/voxgig_struct.h +216 -0
  458. package/project/.sdk/tm/c/utility/transform_request.c +21 -0
  459. package/project/.sdk/tm/c/utility/transform_response.c +36 -0
  460. package/project/.sdk/tm/clojure/LICENSE +22 -0
  461. package/project/.sdk/tm/clojure/Makefile +15 -0
  462. package/project/.sdk/tm/clojure/VERSION +1 -0
  463. package/project/.sdk/tm/clojure/src/feature/README.md +1 -0
  464. package/project/.sdk/tm/clojure/src/feature/audit/.gitkeep +0 -0
  465. package/project/.sdk/tm/clojure/src/feature/base/.gitkeep +0 -0
  466. package/project/.sdk/tm/clojure/src/feature/cache/.gitkeep +0 -0
  467. package/project/.sdk/tm/clojure/src/feature/clienttrack/.gitkeep +0 -0
  468. package/project/.sdk/tm/clojure/src/feature/debug/.gitkeep +0 -0
  469. package/project/.sdk/tm/clojure/src/feature/idempotency/.gitkeep +0 -0
  470. package/project/.sdk/tm/clojure/src/feature/log/.gitkeep +0 -0
  471. package/project/.sdk/tm/clojure/src/feature/metrics/.gitkeep +0 -0
  472. package/project/.sdk/tm/clojure/src/feature/netsim/.gitkeep +0 -0
  473. package/project/.sdk/tm/clojure/src/feature/paging/.gitkeep +0 -0
  474. package/project/.sdk/tm/clojure/src/feature/proxy/.gitkeep +0 -0
  475. package/project/.sdk/tm/clojure/src/feature/ratelimit/.gitkeep +0 -0
  476. package/project/.sdk/tm/clojure/src/feature/rbac/.gitkeep +0 -0
  477. package/project/.sdk/tm/clojure/src/feature/retry/.gitkeep +0 -0
  478. package/project/.sdk/tm/clojure/src/feature/streaming/.gitkeep +0 -0
  479. package/project/.sdk/tm/clojure/src/feature/telemetry/.gitkeep +0 -0
  480. package/project/.sdk/tm/clojure/src/feature/test/.gitkeep +0 -0
  481. package/project/.sdk/tm/clojure/src/feature/timeout/.gitkeep +0 -0
  482. package/project/.sdk/tm/clojure/src/sdk/client.clj +119 -0
  483. package/project/.sdk/tm/clojure/src/sdk/core.clj +901 -0
  484. package/project/.sdk/tm/clojure/src/sdk/features.clj +1027 -0
  485. package/project/.sdk/tm/clojure/src/voxgig/struct.clj +1734 -0
  486. package/project/.sdk/tm/clojure/test/sdk/test/feature.clj +596 -0
  487. package/project/.sdk/tm/clojure/test/sdk/test/netsim.clj +42 -0
  488. package/project/.sdk/tm/clojure/test/sdk/test/pipeline.clj +314 -0
  489. package/project/.sdk/tm/clojure/test/sdk/test/primary.clj +52 -0
  490. package/project/.sdk/tm/clojure/test/sdk/test/struct_corpus.clj +337 -0
  491. package/project/.sdk/tm/clojure/test/sdk/test_runner.clj +39 -0
  492. package/project/.sdk/tm/clojure/test/sdk/testutil.clj +35 -0
  493. package/project/.sdk/tm/cpp/LICENSE +22 -0
  494. package/project/.sdk/tm/cpp/Makefile +36 -0
  495. package/project/.sdk/tm/cpp/VERSION +1 -0
  496. package/project/.sdk/tm/cpp/core/sdk.hpp +16 -0
  497. package/project/.sdk/tm/cpp/core/struct.hpp +225 -0
  498. package/project/.sdk/tm/cpp/core/types.hpp +1105 -0
  499. package/project/.sdk/tm/cpp/feature/audit.hpp +107 -0
  500. package/project/.sdk/tm/cpp/feature/base.hpp +34 -0
  501. package/project/.sdk/tm/cpp/feature/cache.hpp +189 -0
  502. package/project/.sdk/tm/cpp/feature/clienttrack.hpp +105 -0
  503. package/project/.sdk/tm/cpp/feature/debug.hpp +157 -0
  504. package/project/.sdk/tm/cpp/feature/idempotency.hpp +119 -0
  505. package/project/.sdk/tm/cpp/feature/log.hpp +90 -0
  506. package/project/.sdk/tm/cpp/feature/metrics.hpp +103 -0
  507. package/project/.sdk/tm/cpp/feature/netsim.hpp +152 -0
  508. package/project/.sdk/tm/cpp/feature/options.hpp +156 -0
  509. package/project/.sdk/tm/cpp/feature/paging.hpp +156 -0
  510. package/project/.sdk/tm/cpp/feature/proxy.hpp +145 -0
  511. package/project/.sdk/tm/cpp/feature/ratelimit.hpp +87 -0
  512. package/project/.sdk/tm/cpp/feature/rbac.hpp +108 -0
  513. package/project/.sdk/tm/cpp/feature/retry.hpp +130 -0
  514. package/project/.sdk/tm/cpp/feature/streaming.hpp +98 -0
  515. package/project/.sdk/tm/cpp/feature/telemetry.hpp +139 -0
  516. package/project/.sdk/tm/cpp/feature/test.hpp +289 -0
  517. package/project/.sdk/tm/cpp/feature/timeout.hpp +88 -0
  518. package/project/.sdk/tm/cpp/src/feature/README.md +1 -0
  519. package/project/.sdk/tm/cpp/src/feature/audit/.gitkeep +0 -0
  520. package/project/.sdk/tm/cpp/src/feature/base/.gitkeep +0 -0
  521. package/project/.sdk/tm/cpp/src/feature/cache/.gitkeep +0 -0
  522. package/project/.sdk/tm/cpp/src/feature/clienttrack/.gitkeep +0 -0
  523. package/project/.sdk/tm/cpp/src/feature/debug/.gitkeep +0 -0
  524. package/project/.sdk/tm/cpp/src/feature/idempotency/.gitkeep +0 -0
  525. package/project/.sdk/tm/cpp/src/feature/log/.gitkeep +0 -0
  526. package/project/.sdk/tm/cpp/src/feature/metrics/.gitkeep +0 -0
  527. package/project/.sdk/tm/cpp/src/feature/netsim/.gitkeep +0 -0
  528. package/project/.sdk/tm/cpp/src/feature/paging/.gitkeep +0 -0
  529. package/project/.sdk/tm/cpp/src/feature/proxy/.gitkeep +0 -0
  530. package/project/.sdk/tm/cpp/src/feature/ratelimit/.gitkeep +0 -0
  531. package/project/.sdk/tm/cpp/src/feature/rbac/.gitkeep +0 -0
  532. package/project/.sdk/tm/cpp/src/feature/retry/.gitkeep +0 -0
  533. package/project/.sdk/tm/cpp/src/feature/streaming/.gitkeep +0 -0
  534. package/project/.sdk/tm/cpp/src/feature/telemetry/.gitkeep +0 -0
  535. package/project/.sdk/tm/cpp/src/feature/test/.gitkeep +0 -0
  536. package/project/.sdk/tm/cpp/src/feature/timeout/.gitkeep +0 -0
  537. package/project/.sdk/tm/cpp/test/custom_utility_test.cpp +57 -0
  538. package/project/.sdk/tm/cpp/test/exists_test.cpp +16 -0
  539. package/project/.sdk/tm/cpp/test/feature_test.cpp +911 -0
  540. package/project/.sdk/tm/cpp/test/harness.hpp +344 -0
  541. package/project/.sdk/tm/cpp/test/netsim_test.cpp +48 -0
  542. package/project/.sdk/tm/cpp/test/pipeline_test.cpp +526 -0
  543. package/project/.sdk/tm/cpp/test/primary_utility_test.cpp +841 -0
  544. package/project/.sdk/tm/cpp/test/runner_support.hpp +437 -0
  545. package/project/.sdk/tm/cpp/test/sdk-test-control.json +19 -0
  546. package/project/.sdk/tm/cpp/test/struct_corpus_test.cpp +494 -0
  547. package/project/.sdk/tm/cpp/test/struct_runner.hpp +314 -0
  548. package/project/.sdk/tm/cpp/test/testlib.hpp +82 -0
  549. package/project/.sdk/tm/cpp/utility/pipeline.hpp +1054 -0
  550. package/project/.sdk/tm/cpp/utility/voxgigstruct/value.hpp +525 -0
  551. package/project/.sdk/tm/cpp/utility/voxgigstruct/value_io.hpp +315 -0
  552. package/project/.sdk/tm/cpp/utility/voxgigstruct/voxgig_struct.hpp +3379 -0
  553. package/project/.sdk/tm/csharp/LICENSE +22 -0
  554. package/project/.sdk/tm/csharp/Makefile +43 -0
  555. package/project/.sdk/tm/csharp/VERSION +1 -0
  556. package/project/.sdk/tm/csharp/core/Context.cs +257 -0
  557. package/project/.sdk/tm/csharp/core/Control.cs +17 -0
  558. package/project/.sdk/tm/csharp/core/Helpers.cs +61 -0
  559. package/project/.sdk/tm/csharp/core/Operation.cs +51 -0
  560. package/project/.sdk/tm/csharp/core/Point.cs +68 -0
  561. package/project/.sdk/tm/csharp/core/Response.cs +45 -0
  562. package/project/.sdk/tm/csharp/core/Result.cs +63 -0
  563. package/project/.sdk/tm/csharp/core/Spec.cs +81 -0
  564. package/project/.sdk/tm/csharp/core/Types.cs +21 -0
  565. package/project/.sdk/tm/csharp/core/Utility.cs +88 -0
  566. package/project/.sdk/tm/csharp/feature/AuditFeature.cs +116 -0
  567. package/project/.sdk/tm/csharp/feature/BaseFeature.cs +39 -0
  568. package/project/.sdk/tm/csharp/feature/CacheFeature.cs +186 -0
  569. package/project/.sdk/tm/csharp/feature/ClienttrackFeature.cs +103 -0
  570. package/project/.sdk/tm/csharp/feature/DebugFeature.cs +157 -0
  571. package/project/.sdk/tm/csharp/feature/FeatureOptions.cs +197 -0
  572. package/project/.sdk/tm/csharp/feature/IdempotencyFeature.cs +97 -0
  573. package/project/.sdk/tm/csharp/feature/LogFeature.cs +109 -0
  574. package/project/.sdk/tm/csharp/feature/MetricsFeature.cs +117 -0
  575. package/project/.sdk/tm/csharp/feature/NetsimFeature.cs +200 -0
  576. package/project/.sdk/tm/csharp/feature/PagingFeature.cs +187 -0
  577. package/project/.sdk/tm/csharp/feature/ProxyFeature.cs +138 -0
  578. package/project/.sdk/tm/csharp/feature/RatelimitFeature.cs +89 -0
  579. package/project/.sdk/tm/csharp/feature/RbacFeature.cs +124 -0
  580. package/project/.sdk/tm/csharp/feature/RetryFeature.cs +174 -0
  581. package/project/.sdk/tm/csharp/feature/StreamingFeature.cs +93 -0
  582. package/project/.sdk/tm/csharp/feature/TelemetryFeature.cs +145 -0
  583. package/project/.sdk/tm/csharp/feature/TestFeature.cs +368 -0
  584. package/project/.sdk/tm/csharp/feature/TimeoutFeature.cs +69 -0
  585. package/project/.sdk/tm/csharp/src/feature/README.md +1 -0
  586. package/project/.sdk/tm/csharp/src/feature/audit/.gitkeep +0 -0
  587. package/project/.sdk/tm/csharp/src/feature/base/.gitkeep +0 -0
  588. package/project/.sdk/tm/csharp/src/feature/cache/.gitkeep +0 -0
  589. package/project/.sdk/tm/csharp/src/feature/clienttrack/.gitkeep +0 -0
  590. package/project/.sdk/tm/csharp/src/feature/debug/.gitkeep +0 -0
  591. package/project/.sdk/tm/csharp/src/feature/idempotency/.gitkeep +0 -0
  592. package/project/.sdk/tm/csharp/src/feature/log/.gitkeep +0 -0
  593. package/project/.sdk/tm/csharp/src/feature/metrics/.gitkeep +0 -0
  594. package/project/.sdk/tm/csharp/src/feature/netsim/.gitkeep +0 -0
  595. package/project/.sdk/tm/csharp/src/feature/paging/.gitkeep +0 -0
  596. package/project/.sdk/tm/csharp/src/feature/proxy/.gitkeep +0 -0
  597. package/project/.sdk/tm/csharp/src/feature/ratelimit/.gitkeep +0 -0
  598. package/project/.sdk/tm/csharp/src/feature/rbac/.gitkeep +0 -0
  599. package/project/.sdk/tm/csharp/src/feature/retry/.gitkeep +0 -0
  600. package/project/.sdk/tm/csharp/src/feature/streaming/.gitkeep +0 -0
  601. package/project/.sdk/tm/csharp/src/feature/telemetry/.gitkeep +0 -0
  602. package/project/.sdk/tm/csharp/src/feature/test/.gitkeep +0 -0
  603. package/project/.sdk/tm/csharp/src/feature/timeout/.gitkeep +0 -0
  604. package/project/.sdk/tm/csharp/test/CustomUtilityTest.cs +51 -0
  605. package/project/.sdk/tm/csharp/test/ExistsTest.cs +17 -0
  606. package/project/.sdk/tm/csharp/test/FeatureTest.cs +1653 -0
  607. package/project/.sdk/tm/csharp/test/NetsimTest.cs +67 -0
  608. package/project/.sdk/tm/csharp/test/PipelineTest.cs +605 -0
  609. package/project/.sdk/tm/csharp/test/PrimaryUtilityTest.cs +957 -0
  610. package/project/.sdk/tm/csharp/test/Runner.cs +626 -0
  611. package/project/.sdk/tm/csharp/test/StructRunner.cs +276 -0
  612. package/project/.sdk/tm/csharp/test/StructUtilityTest.cs +1273 -0
  613. package/project/.sdk/tm/csharp/test/sdk-test-control.json +19 -0
  614. package/project/.sdk/tm/csharp/utility/Clean.cs +11 -0
  615. package/project/.sdk/tm/csharp/utility/Done.cs +28 -0
  616. package/project/.sdk/tm/csharp/utility/FeatureAdd.cs +54 -0
  617. package/project/.sdk/tm/csharp/utility/FeatureHook.cs +35 -0
  618. package/project/.sdk/tm/csharp/utility/FeatureInit.cs +28 -0
  619. package/project/.sdk/tm/csharp/utility/Fetcher.cs +181 -0
  620. package/project/.sdk/tm/csharp/utility/MakeContext.cs +11 -0
  621. package/project/.sdk/tm/csharp/utility/MakeError.cs +69 -0
  622. package/project/.sdk/tm/csharp/utility/MakeFetchDef.cs +38 -0
  623. package/project/.sdk/tm/csharp/utility/MakeOptions.cs +203 -0
  624. package/project/.sdk/tm/csharp/utility/MakePoint.cs +127 -0
  625. package/project/.sdk/tm/csharp/utility/MakeRequest.cs +87 -0
  626. package/project/.sdk/tm/csharp/utility/MakeResponse.cs +55 -0
  627. package/project/.sdk/tm/csharp/utility/MakeResult.cs +64 -0
  628. package/project/.sdk/tm/csharp/utility/MakeSpec.cs +64 -0
  629. package/project/.sdk/tm/csharp/utility/MakeUrl.cs +54 -0
  630. package/project/.sdk/tm/csharp/utility/Param.cs +67 -0
  631. package/project/.sdk/tm/csharp/utility/PrepareAuth.cs +54 -0
  632. package/project/.sdk/tm/csharp/utility/PrepareBody.cs +19 -0
  633. package/project/.sdk/tm/csharp/utility/PrepareHeaders.cs +22 -0
  634. package/project/.sdk/tm/csharp/utility/PrepareMethod.cs +22 -0
  635. package/project/.sdk/tm/csharp/utility/PrepareParams.cs +38 -0
  636. package/project/.sdk/tm/csharp/utility/PreparePath.cs +18 -0
  637. package/project/.sdk/tm/csharp/utility/PrepareQuery.cs +40 -0
  638. package/project/.sdk/tm/csharp/utility/Register.cs +41 -0
  639. package/project/.sdk/tm/csharp/utility/ResultBasic.cs +39 -0
  640. package/project/.sdk/tm/csharp/utility/ResultBody.cs +22 -0
  641. package/project/.sdk/tm/csharp/utility/ResultHeaders.cs +26 -0
  642. package/project/.sdk/tm/csharp/utility/TransformRequest.cs +39 -0
  643. package/project/.sdk/tm/csharp/utility/TransformResponse.cs +53 -0
  644. package/project/.sdk/tm/csharp/utility/struct/Struct.cs +3582 -0
  645. package/project/.sdk/tm/dart/LICENSE +22 -0
  646. package/project/.sdk/tm/dart/Makefile +50 -0
  647. package/project/.sdk/tm/dart/lib/Context.dart +150 -0
  648. package/project/.sdk/tm/dart/lib/Control.dart +15 -0
  649. package/project/.sdk/tm/dart/lib/Operation.dart +31 -0
  650. package/project/.sdk/tm/dart/lib/Point.dart +43 -0
  651. package/project/.sdk/tm/dart/lib/Response.dart +32 -0
  652. package/project/.sdk/tm/dart/lib/Result.dart +39 -0
  653. package/project/.sdk/tm/dart/lib/Spec.dart +49 -0
  654. package/project/.sdk/tm/dart/lib/feature/audit/AuditFeature.dart +103 -0
  655. package/project/.sdk/tm/dart/lib/feature/base/BaseFeature.dart +76 -0
  656. package/project/.sdk/tm/dart/lib/feature/cache/CacheFeature.dart +152 -0
  657. package/project/.sdk/tm/dart/lib/feature/clienttrack/ClienttrackFeature.dart +104 -0
  658. package/project/.sdk/tm/dart/lib/feature/debug/DebugFeature.dart +153 -0
  659. package/project/.sdk/tm/dart/lib/feature/idempotency/IdempotencyFeature.dart +92 -0
  660. package/project/.sdk/tm/dart/lib/feature/log/LogFeature.dart +85 -0
  661. package/project/.sdk/tm/dart/lib/feature/metrics/MetricsFeature.dart +103 -0
  662. package/project/.sdk/tm/dart/lib/feature/netsim/NetsimFeature.dart +186 -0
  663. package/project/.sdk/tm/dart/lib/feature/paging/PagingFeature.dart +145 -0
  664. package/project/.sdk/tm/dart/lib/feature/proxy/ProxyFeature.dart +118 -0
  665. package/project/.sdk/tm/dart/lib/feature/ratelimit/RatelimitFeature.dart +103 -0
  666. package/project/.sdk/tm/dart/lib/feature/rbac/RbacFeature.dart +121 -0
  667. package/project/.sdk/tm/dart/lib/feature/retry/RetryFeature.dart +155 -0
  668. package/project/.sdk/tm/dart/lib/feature/streaming/StreamingFeature.dart +97 -0
  669. package/project/.sdk/tm/dart/lib/feature/telemetry/TelemetryFeature.dart +136 -0
  670. package/project/.sdk/tm/dart/lib/feature/test/TestFeature.dart +270 -0
  671. package/project/.sdk/tm/dart/lib/feature/timeout/TimeoutFeature.dart +104 -0
  672. package/project/.sdk/tm/dart/lib/utility/CleanUtility.dart +12 -0
  673. package/project/.sdk/tm/dart/lib/utility/DoneUtility.dart +18 -0
  674. package/project/.sdk/tm/dart/lib/utility/ErrUtility.dart +46 -0
  675. package/project/.sdk/tm/dart/lib/utility/FeatureAddUtility.dart +35 -0
  676. package/project/.sdk/tm/dart/lib/utility/FeatureHookUtility.dart +20 -0
  677. package/project/.sdk/tm/dart/lib/utility/FeatureInitUtility.dart +9 -0
  678. package/project/.sdk/tm/dart/lib/utility/FetcherUtility.dart +95 -0
  679. package/project/.sdk/tm/dart/lib/utility/MakeContextUtility.dart +6 -0
  680. package/project/.sdk/tm/dart/lib/utility/MakeErrorUtility.dart +67 -0
  681. package/project/.sdk/tm/dart/lib/utility/MakeFetchDefUtility.dart +42 -0
  682. package/project/.sdk/tm/dart/lib/utility/MakeOptionsUtility.dart +147 -0
  683. package/project/.sdk/tm/dart/lib/utility/MakePointUtility.dart +84 -0
  684. package/project/.sdk/tm/dart/lib/utility/MakeRequestUtility.dart +63 -0
  685. package/project/.sdk/tm/dart/lib/utility/MakeResponseUtility.dart +54 -0
  686. package/project/.sdk/tm/dart/lib/utility/MakeResultUtility.dart +49 -0
  687. package/project/.sdk/tm/dart/lib/utility/MakeSpecUtility.dart +61 -0
  688. package/project/.sdk/tm/dart/lib/utility/MakeUrlUtility.dart +51 -0
  689. package/project/.sdk/tm/dart/lib/utility/ParamUtility.dart +56 -0
  690. package/project/.sdk/tm/dart/lib/utility/PrepareAuthUtility.dart +46 -0
  691. package/project/.sdk/tm/dart/lib/utility/PrepareBodyUtility.dart +19 -0
  692. package/project/.sdk/tm/dart/lib/utility/PrepareHeadersUtility.dart +11 -0
  693. package/project/.sdk/tm/dart/lib/utility/PrepareMethodUtility.dart +15 -0
  694. package/project/.sdk/tm/dart/lib/utility/PrepareParamsUtility.dart +23 -0
  695. package/project/.sdk/tm/dart/lib/utility/PreparePathUtility.dart +9 -0
  696. package/project/.sdk/tm/dart/lib/utility/PrepareQueryUtility.dart +18 -0
  697. package/project/.sdk/tm/dart/lib/utility/ResultBasicUtility.dart +29 -0
  698. package/project/.sdk/tm/dart/lib/utility/ResultBodyUtility.dart +15 -0
  699. package/project/.sdk/tm/dart/lib/utility/ResultHeadersUtility.dart +18 -0
  700. package/project/.sdk/tm/dart/lib/utility/StructUtility.dart +127 -0
  701. package/project/.sdk/tm/dart/lib/utility/TransformRequestUtility.dart +28 -0
  702. package/project/.sdk/tm/dart/lib/utility/TransformResponseUtility.dart +44 -0
  703. package/project/.sdk/tm/dart/lib/utility/Utility.dart +230 -0
  704. package/project/.sdk/tm/dart/lib/utility/voxgig_struct.dart +2456 -0
  705. package/project/.sdk/tm/dart/src/feature/README.md +3 -0
  706. package/project/.sdk/tm/dart/src/feature/audit/.gitkeep +0 -0
  707. package/project/.sdk/tm/dart/src/feature/base/.gitkeep +0 -0
  708. package/project/.sdk/tm/dart/src/feature/cache/.gitkeep +0 -0
  709. package/project/.sdk/tm/dart/src/feature/clienttrack/.gitkeep +0 -0
  710. package/project/.sdk/tm/dart/src/feature/debug/.gitkeep +0 -0
  711. package/project/.sdk/tm/dart/src/feature/idempotency/.gitkeep +0 -0
  712. package/project/.sdk/tm/dart/src/feature/log/.gitkeep +0 -0
  713. package/project/.sdk/tm/dart/src/feature/metrics/.gitkeep +0 -0
  714. package/project/.sdk/tm/dart/src/feature/netsim/.gitkeep +0 -0
  715. package/project/.sdk/tm/dart/src/feature/paging/.gitkeep +0 -0
  716. package/project/.sdk/tm/dart/src/feature/proxy/.gitkeep +0 -0
  717. package/project/.sdk/tm/dart/src/feature/ratelimit/.gitkeep +0 -0
  718. package/project/.sdk/tm/dart/src/feature/rbac/.gitkeep +0 -0
  719. package/project/.sdk/tm/dart/src/feature/retry/.gitkeep +0 -0
  720. package/project/.sdk/tm/dart/src/feature/streaming/.gitkeep +0 -0
  721. package/project/.sdk/tm/dart/src/feature/telemetry/.gitkeep +0 -0
  722. package/project/.sdk/tm/dart/src/feature/test/.gitkeep +0 -0
  723. package/project/.sdk/tm/dart/src/feature/timeout/.gitkeep +0 -0
  724. package/project/.sdk/tm/dart/test/custom_test.dart +65 -0
  725. package/project/.sdk/tm/dart/test/exists_test.dart +12 -0
  726. package/project/.sdk/tm/dart/test/feature/harness.dart +329 -0
  727. package/project/.sdk/tm/dart/test/feature_test.dart +1139 -0
  728. package/project/.sdk/tm/dart/test/harness.dart +153 -0
  729. package/project/.sdk/tm/dart/test/netsim_test.dart +48 -0
  730. package/project/.sdk/tm/dart/test/pipeline_test.dart +608 -0
  731. package/project/.sdk/tm/dart/test/primary_test.dart +411 -0
  732. package/project/.sdk/tm/dart/test/runner.dart +406 -0
  733. package/project/.sdk/tm/dart/test/sdk-test-control.json +19 -0
  734. package/project/.sdk/tm/dart/test/struct_corpus.dart +531 -0
  735. package/project/.sdk/tm/dart/test/struct_test.dart +41 -0
  736. package/project/.sdk/tm/dart/test/utility.dart +159 -0
  737. package/project/.sdk/tm/elixir/LICENSE +21 -0
  738. package/project/.sdk/tm/elixir/Makefile +15 -0
  739. package/project/.sdk/tm/elixir/VERSION +1 -0
  740. package/project/.sdk/tm/elixir/lib/projectname/context.ex +138 -0
  741. package/project/.sdk/tm/elixir/lib/projectname/core.ex +125 -0
  742. package/project/.sdk/tm/elixir/lib/projectname/entity_base.ex +155 -0
  743. package/project/.sdk/tm/elixir/lib/projectname/error.ex +16 -0
  744. package/project/.sdk/tm/elixir/lib/projectname/feature/audit.ex +125 -0
  745. package/project/.sdk/tm/elixir/lib/projectname/feature/cache.ex +170 -0
  746. package/project/.sdk/tm/elixir/lib/projectname/feature/clienttrack.ex +136 -0
  747. package/project/.sdk/tm/elixir/lib/projectname/feature/debug.ex +232 -0
  748. package/project/.sdk/tm/elixir/lib/projectname/feature/idempotency.ex +107 -0
  749. package/project/.sdk/tm/elixir/lib/projectname/feature/log.ex +62 -0
  750. package/project/.sdk/tm/elixir/lib/projectname/feature/metrics.ex +130 -0
  751. package/project/.sdk/tm/elixir/lib/projectname/feature/netsim.ex +213 -0
  752. package/project/.sdk/tm/elixir/lib/projectname/feature/paging.ex +191 -0
  753. package/project/.sdk/tm/elixir/lib/projectname/feature/proxy.ex +142 -0
  754. package/project/.sdk/tm/elixir/lib/projectname/feature/ratelimit.ex +81 -0
  755. package/project/.sdk/tm/elixir/lib/projectname/feature/rbac.ex +139 -0
  756. package/project/.sdk/tm/elixir/lib/projectname/feature/retry.ex +150 -0
  757. package/project/.sdk/tm/elixir/lib/projectname/feature/streaming.ex +107 -0
  758. package/project/.sdk/tm/elixir/lib/projectname/feature/telemetry.ex +172 -0
  759. package/project/.sdk/tm/elixir/lib/projectname/feature/test.ex +285 -0
  760. package/project/.sdk/tm/elixir/lib/projectname/feature/timeout.ex +64 -0
  761. package/project/.sdk/tm/elixir/lib/projectname/feature.ex +90 -0
  762. package/project/.sdk/tm/elixir/lib/projectname/helpers.ex +66 -0
  763. package/project/.sdk/tm/elixir/lib/projectname/json.ex +115 -0
  764. package/project/.sdk/tm/elixir/lib/projectname/utility.ex +1257 -0
  765. package/project/.sdk/tm/elixir/lib/utility/struct/voxgig_struct.ex +2615 -0
  766. package/project/.sdk/tm/elixir/src/feature/README.md +3 -0
  767. package/project/.sdk/tm/elixir/src/feature/audit/.gitkeep +0 -0
  768. package/project/.sdk/tm/elixir/src/feature/base/.gitkeep +0 -0
  769. package/project/.sdk/tm/elixir/src/feature/cache/.gitkeep +0 -0
  770. package/project/.sdk/tm/elixir/src/feature/clienttrack/.gitkeep +0 -0
  771. package/project/.sdk/tm/elixir/src/feature/debug/.gitkeep +0 -0
  772. package/project/.sdk/tm/elixir/src/feature/idempotency/.gitkeep +0 -0
  773. package/project/.sdk/tm/elixir/src/feature/log/.gitkeep +0 -0
  774. package/project/.sdk/tm/elixir/src/feature/metrics/.gitkeep +0 -0
  775. package/project/.sdk/tm/elixir/src/feature/netsim/.gitkeep +0 -0
  776. package/project/.sdk/tm/elixir/src/feature/paging/.gitkeep +0 -0
  777. package/project/.sdk/tm/elixir/src/feature/proxy/.gitkeep +0 -0
  778. package/project/.sdk/tm/elixir/src/feature/ratelimit/.gitkeep +0 -0
  779. package/project/.sdk/tm/elixir/src/feature/rbac/.gitkeep +0 -0
  780. package/project/.sdk/tm/elixir/src/feature/retry/.gitkeep +0 -0
  781. package/project/.sdk/tm/elixir/src/feature/streaming/.gitkeep +0 -0
  782. package/project/.sdk/tm/elixir/src/feature/telemetry/.gitkeep +0 -0
  783. package/project/.sdk/tm/elixir/src/feature/test/.gitkeep +0 -0
  784. package/project/.sdk/tm/elixir/src/feature/timeout/.gitkeep +0 -0
  785. package/project/.sdk/tm/elixir/test/feature_test.exs +879 -0
  786. package/project/.sdk/tm/elixir/test/netsim_test.exs +58 -0
  787. package/project/.sdk/tm/elixir/test/pipeline_test.exs +558 -0
  788. package/project/.sdk/tm/elixir/test/primary_utility_test.exs +133 -0
  789. package/project/.sdk/tm/elixir/test/stream_test.exs +119 -0
  790. package/project/.sdk/tm/elixir/test/struct_corpus_test.exs +18 -0
  791. package/project/.sdk/tm/elixir/test/support/feature_harness.ex +346 -0
  792. package/project/.sdk/tm/elixir/test/support/struct_corpus.ex +677 -0
  793. package/project/.sdk/tm/elixir/test/test_helper.exs +1 -0
  794. package/project/.sdk/tm/go/core/context.go +10 -0
  795. package/project/.sdk/tm/go/core/control.go +2 -0
  796. package/project/.sdk/tm/go/core/result.go +6 -0
  797. package/project/.sdk/tm/go/core/types.go +1 -0
  798. package/project/.sdk/tm/go/feature/audit_feature.go +110 -0
  799. package/project/.sdk/tm/go/feature/base_feature.go +8 -0
  800. package/project/.sdk/tm/go/feature/cache_feature.go +171 -0
  801. package/project/.sdk/tm/go/feature/clienttrack_feature.go +100 -0
  802. package/project/.sdk/tm/go/feature/debug_feature.go +159 -0
  803. package/project/.sdk/tm/go/feature/feature_options.go +204 -0
  804. package/project/.sdk/tm/go/feature/idempotency_feature.go +115 -0
  805. package/project/.sdk/tm/go/feature/metrics_feature.go +112 -0
  806. package/project/.sdk/tm/go/feature/netsim_feature.go +184 -0
  807. package/project/.sdk/tm/go/feature/paging_feature.go +173 -0
  808. package/project/.sdk/tm/go/feature/proxy_feature.go +121 -0
  809. package/project/.sdk/tm/go/feature/ratelimit_feature.go +88 -0
  810. package/project/.sdk/tm/go/feature/rbac_feature.go +126 -0
  811. package/project/.sdk/tm/go/feature/retry_feature.go +165 -0
  812. package/project/.sdk/tm/go/feature/streaming_feature.go +119 -0
  813. package/project/.sdk/tm/go/feature/telemetry_feature.go +142 -0
  814. package/project/.sdk/tm/go/feature/test_feature.go +78 -3
  815. package/project/.sdk/tm/go/feature/timeout_feature.go +88 -0
  816. package/project/.sdk/tm/go/src/feature/audit/.gitkeep +0 -0
  817. package/project/.sdk/tm/go/src/feature/cache/.gitkeep +0 -0
  818. package/project/.sdk/tm/go/src/feature/clienttrack/.gitkeep +0 -0
  819. package/project/.sdk/tm/go/src/feature/debug/.gitkeep +0 -0
  820. package/project/.sdk/tm/go/src/feature/idempotency/.gitkeep +0 -0
  821. package/project/.sdk/tm/go/src/feature/metrics/.gitkeep +0 -0
  822. package/project/.sdk/tm/go/src/feature/netsim/.gitkeep +0 -0
  823. package/project/.sdk/tm/go/src/feature/paging/.gitkeep +0 -0
  824. package/project/.sdk/tm/go/src/feature/proxy/.gitkeep +0 -0
  825. package/project/.sdk/tm/go/src/feature/ratelimit/.gitkeep +0 -0
  826. package/project/.sdk/tm/go/src/feature/rbac/.gitkeep +0 -0
  827. package/project/.sdk/tm/go/src/feature/retry/.gitkeep +0 -0
  828. package/project/.sdk/tm/go/src/feature/streaming/.gitkeep +0 -0
  829. package/project/.sdk/tm/go/src/feature/telemetry/.gitkeep +0 -0
  830. package/project/.sdk/tm/go/src/feature/timeout/.gitkeep +0 -0
  831. package/project/.sdk/tm/go/test/feature_test.go +1465 -0
  832. package/project/.sdk/tm/go/test/netsim_test.go +70 -0
  833. package/project/.sdk/tm/go/test/pipeline_test.go +571 -0
  834. package/project/.sdk/tm/go/utility/feature_add.go +38 -0
  835. package/project/.sdk/tm/go/utility/fetcher.go +13 -1
  836. package/project/.sdk/tm/go/utility/make_error.go +8 -0
  837. package/project/.sdk/tm/go/utility/make_options.go +62 -0
  838. package/project/.sdk/tm/go/utility/make_point.go +6 -0
  839. package/project/.sdk/tm/go-cli/src/feature/audit/.gitkeep +0 -0
  840. package/project/.sdk/tm/go-cli/src/feature/cache/.gitkeep +0 -0
  841. package/project/.sdk/tm/go-cli/src/feature/clienttrack/.gitkeep +0 -0
  842. package/project/.sdk/tm/go-cli/src/feature/debug/.gitkeep +0 -0
  843. package/project/.sdk/tm/go-cli/src/feature/idempotency/.gitkeep +0 -0
  844. package/project/.sdk/tm/go-cli/src/feature/metrics/.gitkeep +0 -0
  845. package/project/.sdk/tm/go-cli/src/feature/netsim/.gitkeep +0 -0
  846. package/project/.sdk/tm/go-cli/src/feature/paging/.gitkeep +0 -0
  847. package/project/.sdk/tm/go-cli/src/feature/proxy/.gitkeep +0 -0
  848. package/project/.sdk/tm/go-cli/src/feature/ratelimit/.gitkeep +0 -0
  849. package/project/.sdk/tm/go-cli/src/feature/rbac/.gitkeep +0 -0
  850. package/project/.sdk/tm/go-cli/src/feature/retry/.gitkeep +0 -0
  851. package/project/.sdk/tm/go-cli/src/feature/streaming/.gitkeep +0 -0
  852. package/project/.sdk/tm/go-cli/src/feature/telemetry/.gitkeep +0 -0
  853. package/project/.sdk/tm/go-cli/src/feature/timeout/.gitkeep +0 -0
  854. package/project/.sdk/tm/go-mcp/src/feature/audit/.gitkeep +0 -0
  855. package/project/.sdk/tm/go-mcp/src/feature/cache/.gitkeep +0 -0
  856. package/project/.sdk/tm/go-mcp/src/feature/clienttrack/.gitkeep +0 -0
  857. package/project/.sdk/tm/go-mcp/src/feature/debug/.gitkeep +0 -0
  858. package/project/.sdk/tm/go-mcp/src/feature/idempotency/.gitkeep +0 -0
  859. package/project/.sdk/tm/go-mcp/src/feature/metrics/.gitkeep +0 -0
  860. package/project/.sdk/tm/go-mcp/src/feature/netsim/.gitkeep +0 -0
  861. package/project/.sdk/tm/go-mcp/src/feature/paging/.gitkeep +0 -0
  862. package/project/.sdk/tm/go-mcp/src/feature/proxy/.gitkeep +0 -0
  863. package/project/.sdk/tm/go-mcp/src/feature/ratelimit/.gitkeep +0 -0
  864. package/project/.sdk/tm/go-mcp/src/feature/rbac/.gitkeep +0 -0
  865. package/project/.sdk/tm/go-mcp/src/feature/retry/.gitkeep +0 -0
  866. package/project/.sdk/tm/go-mcp/src/feature/streaming/.gitkeep +0 -0
  867. package/project/.sdk/tm/go-mcp/src/feature/telemetry/.gitkeep +0 -0
  868. package/project/.sdk/tm/go-mcp/src/feature/timeout/.gitkeep +0 -0
  869. package/project/.sdk/tm/haskell/LICENSE +21 -0
  870. package/project/.sdk/tm/haskell/Makefile +22 -0
  871. package/project/.sdk/tm/haskell/VERSION +1 -0
  872. package/project/.sdk/tm/haskell/src/SdkFeatures.hs +1278 -0
  873. package/project/.sdk/tm/haskell/src/SdkHelpers.hs +337 -0
  874. package/project/.sdk/tm/haskell/src/SdkRuntime.hs +1007 -0
  875. package/project/.sdk/tm/haskell/src/SdkTypes.hs +186 -0
  876. package/project/.sdk/tm/haskell/src/VoxgigStruct.hs +2299 -0
  877. package/project/.sdk/tm/haskell/src/Vregex.hs +237 -0
  878. package/project/.sdk/tm/haskell/src/feature/README.md +5 -0
  879. package/project/.sdk/tm/haskell/src/feature/audit/.gitkeep +0 -0
  880. package/project/.sdk/tm/haskell/src/feature/base/.gitkeep +0 -0
  881. package/project/.sdk/tm/haskell/src/feature/cache/.gitkeep +0 -0
  882. package/project/.sdk/tm/haskell/src/feature/clienttrack/.gitkeep +0 -0
  883. package/project/.sdk/tm/haskell/src/feature/debug/.gitkeep +0 -0
  884. package/project/.sdk/tm/haskell/src/feature/idempotency/.gitkeep +0 -0
  885. package/project/.sdk/tm/haskell/src/feature/log/.gitkeep +0 -0
  886. package/project/.sdk/tm/haskell/src/feature/metrics/.gitkeep +0 -0
  887. package/project/.sdk/tm/haskell/src/feature/netsim/.gitkeep +0 -0
  888. package/project/.sdk/tm/haskell/src/feature/paging/.gitkeep +0 -0
  889. package/project/.sdk/tm/haskell/src/feature/proxy/.gitkeep +0 -0
  890. package/project/.sdk/tm/haskell/src/feature/ratelimit/.gitkeep +0 -0
  891. package/project/.sdk/tm/haskell/src/feature/rbac/.gitkeep +0 -0
  892. package/project/.sdk/tm/haskell/src/feature/retry/.gitkeep +0 -0
  893. package/project/.sdk/tm/haskell/src/feature/streaming/.gitkeep +0 -0
  894. package/project/.sdk/tm/haskell/src/feature/telemetry/.gitkeep +0 -0
  895. package/project/.sdk/tm/haskell/src/feature/test/.gitkeep +0 -0
  896. package/project/.sdk/tm/haskell/src/feature/timeout/.gitkeep +0 -0
  897. package/project/.sdk/tm/haskell/test/Harness.hs +276 -0
  898. package/project/.sdk/tm/haskell/test/Runner.hs +47 -0
  899. package/project/.sdk/tm/haskell/test/StructCorpus.hs +449 -0
  900. package/project/.sdk/tm/haskell/test/TCustomUtility.hs +38 -0
  901. package/project/.sdk/tm/haskell/test/TFeature.hs +794 -0
  902. package/project/.sdk/tm/haskell/test/TNetsim.hs +50 -0
  903. package/project/.sdk/tm/haskell/test/TPipeline.hs +334 -0
  904. package/project/.sdk/tm/haskell/test/TPrimaryUtility.hs +386 -0
  905. package/project/.sdk/tm/haskell/test/TestJson.hs +107 -0
  906. package/project/.sdk/tm/haskell/test/Testutil.hs +59 -0
  907. package/project/.sdk/tm/java/LICENSE +22 -0
  908. package/project/.sdk/tm/java/Makefile +44 -0
  909. package/project/.sdk/tm/java/VERSION +1 -0
  910. package/project/.sdk/tm/java/core/Context.java +269 -0
  911. package/project/.sdk/tm/java/core/Control.java +23 -0
  912. package/project/.sdk/tm/java/core/Entity.java +13 -0
  913. package/project/.sdk/tm/java/core/Feature.java +45 -0
  914. package/project/.sdk/tm/java/core/FeaturePlacement.java +13 -0
  915. package/project/.sdk/tm/java/core/Helpers.java +50 -0
  916. package/project/.sdk/tm/java/core/Operation.java +47 -0
  917. package/project/.sdk/tm/java/core/Point.java +90 -0
  918. package/project/.sdk/tm/java/core/Response.java +48 -0
  919. package/project/.sdk/tm/java/core/Result.java +64 -0
  920. package/project/.sdk/tm/java/core/SdkClient.java +280 -0
  921. package/project/.sdk/tm/java/core/SdkEntity.java +28 -0
  922. package/project/.sdk/tm/java/core/Spec.java +84 -0
  923. package/project/.sdk/tm/java/core/Utility.java +128 -0
  924. package/project/.sdk/tm/java/feature/AuditFeature.java +113 -0
  925. package/project/.sdk/tm/java/feature/BaseFeature.java +91 -0
  926. package/project/.sdk/tm/java/feature/CacheFeature.java +184 -0
  927. package/project/.sdk/tm/java/feature/ClienttrackFeature.java +103 -0
  928. package/project/.sdk/tm/java/feature/DebugFeature.java +163 -0
  929. package/project/.sdk/tm/java/feature/FeatureOptions.java +204 -0
  930. package/project/.sdk/tm/java/feature/IdempotencyFeature.java +115 -0
  931. package/project/.sdk/tm/java/feature/LogFeature.java +143 -0
  932. package/project/.sdk/tm/java/feature/MetricsFeature.java +115 -0
  933. package/project/.sdk/tm/java/feature/NetsimFeature.java +181 -0
  934. package/project/.sdk/tm/java/feature/PagingFeature.java +178 -0
  935. package/project/.sdk/tm/java/feature/ProxyFeature.java +122 -0
  936. package/project/.sdk/tm/java/feature/RatelimitFeature.java +83 -0
  937. package/project/.sdk/tm/java/feature/RbacFeature.java +132 -0
  938. package/project/.sdk/tm/java/feature/RetryFeature.java +156 -0
  939. package/project/.sdk/tm/java/feature/StreamingFeature.java +110 -0
  940. package/project/.sdk/tm/java/feature/TelemetryFeature.java +146 -0
  941. package/project/.sdk/tm/java/feature/TestFeature.java +333 -0
  942. package/project/.sdk/tm/java/feature/TimeoutFeature.java +89 -0
  943. package/project/.sdk/tm/java/src/feature/README.md +1 -0
  944. package/project/.sdk/tm/java/src/feature/audit/.gitkeep +0 -0
  945. package/project/.sdk/tm/java/src/feature/base/.gitkeep +0 -0
  946. package/project/.sdk/tm/java/src/feature/cache/.gitkeep +0 -0
  947. package/project/.sdk/tm/java/src/feature/clienttrack/.gitkeep +0 -0
  948. package/project/.sdk/tm/java/src/feature/debug/.gitkeep +0 -0
  949. package/project/.sdk/tm/java/src/feature/idempotency/.gitkeep +0 -0
  950. package/project/.sdk/tm/java/src/feature/log/.gitkeep +0 -0
  951. package/project/.sdk/tm/java/src/feature/metrics/.gitkeep +0 -0
  952. package/project/.sdk/tm/java/src/feature/netsim/.gitkeep +0 -0
  953. package/project/.sdk/tm/java/src/feature/paging/.gitkeep +0 -0
  954. package/project/.sdk/tm/java/src/feature/proxy/.gitkeep +0 -0
  955. package/project/.sdk/tm/java/src/feature/ratelimit/.gitkeep +0 -0
  956. package/project/.sdk/tm/java/src/feature/rbac/.gitkeep +0 -0
  957. package/project/.sdk/tm/java/src/feature/retry/.gitkeep +0 -0
  958. package/project/.sdk/tm/java/src/feature/streaming/.gitkeep +0 -0
  959. package/project/.sdk/tm/java/src/feature/telemetry/.gitkeep +0 -0
  960. package/project/.sdk/tm/java/src/feature/test/.gitkeep +0 -0
  961. package/project/.sdk/tm/java/src/feature/timeout/.gitkeep +0 -0
  962. package/project/.sdk/tm/java/test/CustomUtilityTest.java +59 -0
  963. package/project/.sdk/tm/java/test/ExistsTest.java +16 -0
  964. package/project/.sdk/tm/java/test/FeatureHarness.java +448 -0
  965. package/project/.sdk/tm/java/test/FeatureTest.java +1018 -0
  966. package/project/.sdk/tm/java/test/NetsimTest.java +59 -0
  967. package/project/.sdk/tm/java/test/PipelineTest.java +618 -0
  968. package/project/.sdk/tm/java/test/PrimaryUtilityTest.java +864 -0
  969. package/project/.sdk/tm/java/test/RunnerSupport.java +545 -0
  970. package/project/.sdk/tm/java/test/StructCorpusTest.java +351 -0
  971. package/project/.sdk/tm/java/test/StructRunner.java +281 -0
  972. package/project/.sdk/tm/java/test/sdk-test-control.json +19 -0
  973. package/project/.sdk/tm/java/utility/Clean.java +12 -0
  974. package/project/.sdk/tm/java/utility/Done.java +29 -0
  975. package/project/.sdk/tm/java/utility/FeatureAdd.java +59 -0
  976. package/project/.sdk/tm/java/utility/FeatureHookUtil.java +72 -0
  977. package/project/.sdk/tm/java/utility/FeatureInit.java +35 -0
  978. package/project/.sdk/tm/java/utility/Fetcher.java +170 -0
  979. package/project/.sdk/tm/java/utility/Json.java +268 -0
  980. package/project/.sdk/tm/java/utility/MakeContext.java +14 -0
  981. package/project/.sdk/tm/java/utility/MakeError.java +81 -0
  982. package/project/.sdk/tm/java/utility/MakeFetchDef.java +48 -0
  983. package/project/.sdk/tm/java/utility/MakeOptions.java +168 -0
  984. package/project/.sdk/tm/java/utility/MakePoint.java +118 -0
  985. package/project/.sdk/tm/java/utility/MakeRequest.java +83 -0
  986. package/project/.sdk/tm/java/utility/MakeResponse.java +54 -0
  987. package/project/.sdk/tm/java/utility/MakeResult.java +68 -0
  988. package/project/.sdk/tm/java/utility/MakeSpec.java +69 -0
  989. package/project/.sdk/tm/java/utility/MakeUrl.java +67 -0
  990. package/project/.sdk/tm/java/utility/Param.java +74 -0
  991. package/project/.sdk/tm/java/utility/PrepareAuth.java +66 -0
  992. package/project/.sdk/tm/java/utility/PrepareBody.java +16 -0
  993. package/project/.sdk/tm/java/utility/PrepareHeaders.java +28 -0
  994. package/project/.sdk/tm/java/utility/PrepareMethod.java +28 -0
  995. package/project/.sdk/tm/java/utility/PrepareParams.java +50 -0
  996. package/project/.sdk/tm/java/utility/PreparePath.java +26 -0
  997. package/project/.sdk/tm/java/utility/PrepareQuery.java +54 -0
  998. package/project/.sdk/tm/java/utility/Register.java +41 -0
  999. package/project/.sdk/tm/java/utility/ResultBasic.java +36 -0
  1000. package/project/.sdk/tm/java/utility/ResultBody.java +23 -0
  1001. package/project/.sdk/tm/java/utility/ResultHeaders.java +36 -0
  1002. package/project/.sdk/tm/java/utility/TransformRequest.java +35 -0
  1003. package/project/.sdk/tm/java/utility/TransformResponse.java +52 -0
  1004. package/project/.sdk/tm/java/utility/struct/Struct.java +3550 -0
  1005. package/project/.sdk/tm/js/src/feature/audit/AuditFeature.js +96 -0
  1006. package/project/.sdk/tm/js/src/feature/cache/CacheFeature.js +150 -0
  1007. package/project/.sdk/tm/js/src/feature/clienttrack/ClienttrackFeature.js +104 -0
  1008. package/project/.sdk/tm/js/src/feature/debug/DebugFeature.js +132 -0
  1009. package/project/.sdk/tm/js/src/feature/idempotency/IdempotencyFeature.js +95 -0
  1010. package/project/.sdk/tm/js/src/feature/metrics/MetricsFeature.js +102 -0
  1011. package/project/.sdk/tm/js/src/feature/netsim/NetsimFeature.js +187 -0
  1012. package/project/.sdk/tm/js/src/feature/paging/PagingFeature.js +139 -0
  1013. package/project/.sdk/tm/js/src/feature/proxy/ProxyFeature.js +110 -0
  1014. package/project/.sdk/tm/js/src/feature/ratelimit/RatelimitFeature.js +106 -0
  1015. package/project/.sdk/tm/js/src/feature/rbac/RbacFeature.js +102 -0
  1016. package/project/.sdk/tm/js/src/feature/retry/RetryFeature.js +158 -0
  1017. package/project/.sdk/tm/js/src/feature/streaming/StreamingFeature.js +96 -0
  1018. package/project/.sdk/tm/js/src/feature/telemetry/TelemetryFeature.js +128 -0
  1019. package/project/.sdk/tm/js/src/feature/test/TestFeature.js +58 -1
  1020. package/project/.sdk/tm/js/src/feature/timeout/TimeoutFeature.js +101 -0
  1021. package/project/.sdk/tm/js/src/utility/FeatureHookUtility.js +4 -1
  1022. package/project/.sdk/tm/js/src/utility/MakeErrorUtility.js +9 -0
  1023. package/project/.sdk/tm/js/src/utility/MakeOptionsUtility.js +31 -1
  1024. package/project/.sdk/tm/js/test/feature/harness.js +275 -0
  1025. package/project/.sdk/tm/js/test/feature.test.js +772 -0
  1026. package/project/.sdk/tm/js/test/netsim.test.js +43 -0
  1027. package/project/.sdk/tm/js/test/pipeline.test.js +382 -0
  1028. package/project/.sdk/tm/kotlin/LICENSE +22 -0
  1029. package/project/.sdk/tm/kotlin/Makefile +43 -0
  1030. package/project/.sdk/tm/kotlin/VERSION +1 -0
  1031. package/project/.sdk/tm/kotlin/core/Context.kt +247 -0
  1032. package/project/.sdk/tm/kotlin/core/Control.kt +21 -0
  1033. package/project/.sdk/tm/kotlin/core/Helpers.kt +49 -0
  1034. package/project/.sdk/tm/kotlin/core/Interfaces.kt +88 -0
  1035. package/project/.sdk/tm/kotlin/core/Operation.kt +43 -0
  1036. package/project/.sdk/tm/kotlin/core/Point.kt +83 -0
  1037. package/project/.sdk/tm/kotlin/core/Response.kt +43 -0
  1038. package/project/.sdk/tm/kotlin/core/Result.kt +61 -0
  1039. package/project/.sdk/tm/kotlin/core/SdkClient.kt +266 -0
  1040. package/project/.sdk/tm/kotlin/core/Spec.kt +76 -0
  1041. package/project/.sdk/tm/kotlin/core/Utility.kt +93 -0
  1042. package/project/.sdk/tm/kotlin/feature/AuditFeature.kt +96 -0
  1043. package/project/.sdk/tm/kotlin/feature/BaseFeature.kt +57 -0
  1044. package/project/.sdk/tm/kotlin/feature/CacheFeature.kt +167 -0
  1045. package/project/.sdk/tm/kotlin/feature/ClienttrackFeature.kt +84 -0
  1046. package/project/.sdk/tm/kotlin/feature/DebugFeature.kt +141 -0
  1047. package/project/.sdk/tm/kotlin/feature/FeatureOptions.kt +191 -0
  1048. package/project/.sdk/tm/kotlin/feature/IdempotencyFeature.kt +98 -0
  1049. package/project/.sdk/tm/kotlin/feature/LogFeature.kt +92 -0
  1050. package/project/.sdk/tm/kotlin/feature/MetricsFeature.kt +96 -0
  1051. package/project/.sdk/tm/kotlin/feature/NetsimFeature.kt +162 -0
  1052. package/project/.sdk/tm/kotlin/feature/PagingFeature.kt +143 -0
  1053. package/project/.sdk/tm/kotlin/feature/ProxyFeature.kt +109 -0
  1054. package/project/.sdk/tm/kotlin/feature/RatelimitFeature.kt +77 -0
  1055. package/project/.sdk/tm/kotlin/feature/RbacFeature.kt +100 -0
  1056. package/project/.sdk/tm/kotlin/feature/RetryFeature.kt +140 -0
  1057. package/project/.sdk/tm/kotlin/feature/StreamingFeature.kt +90 -0
  1058. package/project/.sdk/tm/kotlin/feature/TelemetryFeature.kt +118 -0
  1059. package/project/.sdk/tm/kotlin/feature/TestFeature.kt +306 -0
  1060. package/project/.sdk/tm/kotlin/feature/TimeoutFeature.kt +74 -0
  1061. package/project/.sdk/tm/kotlin/src/feature/README.md +1 -0
  1062. package/project/.sdk/tm/kotlin/src/feature/audit/.gitkeep +0 -0
  1063. package/project/.sdk/tm/kotlin/src/feature/base/.gitkeep +0 -0
  1064. package/project/.sdk/tm/kotlin/src/feature/cache/.gitkeep +0 -0
  1065. package/project/.sdk/tm/kotlin/src/feature/clienttrack/.gitkeep +0 -0
  1066. package/project/.sdk/tm/kotlin/src/feature/debug/.gitkeep +0 -0
  1067. package/project/.sdk/tm/kotlin/src/feature/idempotency/.gitkeep +0 -0
  1068. package/project/.sdk/tm/kotlin/src/feature/log/.gitkeep +0 -0
  1069. package/project/.sdk/tm/kotlin/src/feature/metrics/.gitkeep +0 -0
  1070. package/project/.sdk/tm/kotlin/src/feature/netsim/.gitkeep +0 -0
  1071. package/project/.sdk/tm/kotlin/src/feature/paging/.gitkeep +0 -0
  1072. package/project/.sdk/tm/kotlin/src/feature/proxy/.gitkeep +0 -0
  1073. package/project/.sdk/tm/kotlin/src/feature/ratelimit/.gitkeep +0 -0
  1074. package/project/.sdk/tm/kotlin/src/feature/rbac/.gitkeep +0 -0
  1075. package/project/.sdk/tm/kotlin/src/feature/retry/.gitkeep +0 -0
  1076. package/project/.sdk/tm/kotlin/src/feature/streaming/.gitkeep +0 -0
  1077. package/project/.sdk/tm/kotlin/src/feature/telemetry/.gitkeep +0 -0
  1078. package/project/.sdk/tm/kotlin/src/feature/test/.gitkeep +0 -0
  1079. package/project/.sdk/tm/kotlin/src/feature/timeout/.gitkeep +0 -0
  1080. package/project/.sdk/tm/kotlin/test/CustomUtilityTest.kt +51 -0
  1081. package/project/.sdk/tm/kotlin/test/ExistsTest.kt +15 -0
  1082. package/project/.sdk/tm/kotlin/test/FeatureHarness.kt +380 -0
  1083. package/project/.sdk/tm/kotlin/test/FeatureTest.kt +924 -0
  1084. package/project/.sdk/tm/kotlin/test/NetsimTest.kt +50 -0
  1085. package/project/.sdk/tm/kotlin/test/PipelineTest.kt +556 -0
  1086. package/project/.sdk/tm/kotlin/test/PrimaryUtilityTest.kt +829 -0
  1087. package/project/.sdk/tm/kotlin/test/RunnerSupport.kt +477 -0
  1088. package/project/.sdk/tm/kotlin/test/StructCorpusTest.kt +297 -0
  1089. package/project/.sdk/tm/kotlin/test/StructRunner.kt +177 -0
  1090. package/project/.sdk/tm/kotlin/test/sdk-test-control.json +19 -0
  1091. package/project/.sdk/tm/kotlin/utility/CoreUtil.kt +96 -0
  1092. package/project/.sdk/tm/kotlin/utility/FeatureUtil.kt +121 -0
  1093. package/project/.sdk/tm/kotlin/utility/Fetcher.kt +156 -0
  1094. package/project/.sdk/tm/kotlin/utility/Json.kt +237 -0
  1095. package/project/.sdk/tm/kotlin/utility/MakeOptions.kt +152 -0
  1096. package/project/.sdk/tm/kotlin/utility/MakePoint.kt +108 -0
  1097. package/project/.sdk/tm/kotlin/utility/MakeReqRes.kt +152 -0
  1098. package/project/.sdk/tm/kotlin/utility/MakeSpecUrl.kt +142 -0
  1099. package/project/.sdk/tm/kotlin/utility/Prepare.kt +236 -0
  1100. package/project/.sdk/tm/kotlin/utility/Register.kt +39 -0
  1101. package/project/.sdk/tm/kotlin/utility/ResultTransform.kt +109 -0
  1102. package/project/.sdk/tm/kotlin/utility/struct/Struct.kt +2697 -0
  1103. package/project/.sdk/tm/lua/feature/audit_feature.lua +132 -0
  1104. package/project/.sdk/tm/lua/feature/cache_feature.lua +188 -0
  1105. package/project/.sdk/tm/lua/feature/clienttrack_feature.lua +127 -0
  1106. package/project/.sdk/tm/lua/feature/debug_feature.lua +194 -0
  1107. package/project/.sdk/tm/lua/feature/idempotency_feature.lua +127 -0
  1108. package/project/.sdk/tm/lua/feature/metrics_feature.lua +135 -0
  1109. package/project/.sdk/tm/lua/feature/netsim_feature.lua +205 -0
  1110. package/project/.sdk/tm/lua/feature/paging_feature.lua +180 -0
  1111. package/project/.sdk/tm/lua/feature/proxy_feature.lua +147 -0
  1112. package/project/.sdk/tm/lua/feature/ratelimit_feature.lua +120 -0
  1113. package/project/.sdk/tm/lua/feature/rbac_feature.lua +141 -0
  1114. package/project/.sdk/tm/lua/feature/retry_feature.lua +188 -0
  1115. package/project/.sdk/tm/lua/feature/streaming_feature.lua +143 -0
  1116. package/project/.sdk/tm/lua/feature/telemetry_feature.lua +159 -0
  1117. package/project/.sdk/tm/lua/feature/test_feature.lua +85 -1
  1118. package/project/.sdk/tm/lua/feature/timeout_feature.lua +94 -0
  1119. package/project/.sdk/tm/lua/src/feature/audit/.gitkeep +0 -0
  1120. package/project/.sdk/tm/lua/src/feature/cache/.gitkeep +0 -0
  1121. package/project/.sdk/tm/lua/src/feature/clienttrack/.gitkeep +0 -0
  1122. package/project/.sdk/tm/lua/src/feature/debug/.gitkeep +0 -0
  1123. package/project/.sdk/tm/lua/src/feature/idempotency/.gitkeep +0 -0
  1124. package/project/.sdk/tm/lua/src/feature/metrics/.gitkeep +0 -0
  1125. package/project/.sdk/tm/lua/src/feature/netsim/.gitkeep +0 -0
  1126. package/project/.sdk/tm/lua/src/feature/paging/.gitkeep +0 -0
  1127. package/project/.sdk/tm/lua/src/feature/proxy/.gitkeep +0 -0
  1128. package/project/.sdk/tm/lua/src/feature/ratelimit/.gitkeep +0 -0
  1129. package/project/.sdk/tm/lua/src/feature/rbac/.gitkeep +0 -0
  1130. package/project/.sdk/tm/lua/src/feature/retry/.gitkeep +0 -0
  1131. package/project/.sdk/tm/lua/src/feature/streaming/.gitkeep +0 -0
  1132. package/project/.sdk/tm/lua/src/feature/telemetry/.gitkeep +0 -0
  1133. package/project/.sdk/tm/lua/src/feature/timeout/.gitkeep +0 -0
  1134. package/project/.sdk/tm/lua/test/feature_test.lua +1244 -0
  1135. package/project/.sdk/tm/lua/test/netsim_test.lua +61 -0
  1136. package/project/.sdk/tm/lua/test/pipeline_test.lua +613 -0
  1137. package/project/.sdk/tm/lua/utility/feature_add.lua +28 -1
  1138. package/project/.sdk/tm/lua/utility/make_error.lua +9 -0
  1139. package/project/.sdk/tm/lua/utility/make_options.lua +58 -0
  1140. package/project/.sdk/tm/lua/utility/make_point.lua +8 -1
  1141. package/project/.sdk/tm/ocaml/LICENSE +21 -0
  1142. package/project/.sdk/tm/ocaml/Makefile +58 -0
  1143. package/project/.sdk/tm/ocaml/VERSION +1 -0
  1144. package/project/.sdk/tm/ocaml/sdk_features.ml +1127 -0
  1145. package/project/.sdk/tm/ocaml/sdk_helpers.ml +110 -0
  1146. package/project/.sdk/tm/ocaml/sdk_runtime.ml +942 -0
  1147. package/project/.sdk/tm/ocaml/sdk_types.ml +259 -0
  1148. package/project/.sdk/tm/ocaml/src/feature/README.md +1 -0
  1149. package/project/.sdk/tm/ocaml/src/feature/audit/.gitkeep +0 -0
  1150. package/project/.sdk/tm/ocaml/src/feature/base/.gitkeep +0 -0
  1151. package/project/.sdk/tm/ocaml/src/feature/cache/.gitkeep +0 -0
  1152. package/project/.sdk/tm/ocaml/src/feature/clienttrack/.gitkeep +0 -0
  1153. package/project/.sdk/tm/ocaml/src/feature/debug/.gitkeep +0 -0
  1154. package/project/.sdk/tm/ocaml/src/feature/idempotency/.gitkeep +0 -0
  1155. package/project/.sdk/tm/ocaml/src/feature/log/.gitkeep +0 -0
  1156. package/project/.sdk/tm/ocaml/src/feature/metrics/.gitkeep +0 -0
  1157. package/project/.sdk/tm/ocaml/src/feature/netsim/.gitkeep +0 -0
  1158. package/project/.sdk/tm/ocaml/src/feature/paging/.gitkeep +0 -0
  1159. package/project/.sdk/tm/ocaml/src/feature/proxy/.gitkeep +0 -0
  1160. package/project/.sdk/tm/ocaml/src/feature/ratelimit/.gitkeep +0 -0
  1161. package/project/.sdk/tm/ocaml/src/feature/rbac/.gitkeep +0 -0
  1162. package/project/.sdk/tm/ocaml/src/feature/retry/.gitkeep +0 -0
  1163. package/project/.sdk/tm/ocaml/src/feature/streaming/.gitkeep +0 -0
  1164. package/project/.sdk/tm/ocaml/src/feature/telemetry/.gitkeep +0 -0
  1165. package/project/.sdk/tm/ocaml/src/feature/test/.gitkeep +0 -0
  1166. package/project/.sdk/tm/ocaml/src/feature/timeout/.gitkeep +0 -0
  1167. package/project/.sdk/tm/ocaml/test/custom_utility.ml +30 -0
  1168. package/project/.sdk/tm/ocaml/test/harness.ml +198 -0
  1169. package/project/.sdk/tm/ocaml/test/struct_corpus.ml +487 -0
  1170. package/project/.sdk/tm/ocaml/test/t_feature.ml +533 -0
  1171. package/project/.sdk/tm/ocaml/test/t_main.ml +5 -0
  1172. package/project/.sdk/tm/ocaml/test/t_pipeline.ml +354 -0
  1173. package/project/.sdk/tm/ocaml/test/testutil.ml +57 -0
  1174. package/project/.sdk/tm/ocaml/utility/voxgig_struct.ml +1858 -0
  1175. package/project/.sdk/tm/ocaml/utility/vregex.ml +254 -0
  1176. package/project/.sdk/tm/perl/LICENSE +22 -0
  1177. package/project/.sdk/tm/perl/Makefile +57 -0
  1178. package/project/.sdk/tm/perl/core/context.pm +138 -0
  1179. package/project/.sdk/tm/perl/core/control.pm +22 -0
  1180. package/project/.sdk/tm/perl/core/error.pm +30 -0
  1181. package/project/.sdk/tm/perl/core/helpers.pm +142 -0
  1182. package/project/.sdk/tm/perl/core/operation.pm +47 -0
  1183. package/project/.sdk/tm/perl/core/response.pm +40 -0
  1184. package/project/.sdk/tm/perl/core/result.pm +45 -0
  1185. package/project/.sdk/tm/perl/core/spec.pm +33 -0
  1186. package/project/.sdk/tm/perl/core/utility_type.pm +32 -0
  1187. package/project/.sdk/tm/perl/feature/audit_feature.pm +128 -0
  1188. package/project/.sdk/tm/perl/feature/base_feature.pm +41 -0
  1189. package/project/.sdk/tm/perl/feature/cache_feature.pm +168 -0
  1190. package/project/.sdk/tm/perl/feature/clienttrack_feature.pm +126 -0
  1191. package/project/.sdk/tm/perl/feature/debug_feature.pm +168 -0
  1192. package/project/.sdk/tm/perl/feature/idempotency_feature.pm +104 -0
  1193. package/project/.sdk/tm/perl/feature/log_feature.pm +77 -0
  1194. package/project/.sdk/tm/perl/feature/metrics_feature.pm +124 -0
  1195. package/project/.sdk/tm/perl/feature/netsim_feature.pm +215 -0
  1196. package/project/.sdk/tm/perl/feature/paging_feature.pm +158 -0
  1197. package/project/.sdk/tm/perl/feature/proxy_feature.pm +128 -0
  1198. package/project/.sdk/tm/perl/feature/ratelimit_feature.pm +126 -0
  1199. package/project/.sdk/tm/perl/feature/rbac_feature.pm +124 -0
  1200. package/project/.sdk/tm/perl/feature/retry_feature.pm +153 -0
  1201. package/project/.sdk/tm/perl/feature/streaming_feature.pm +112 -0
  1202. package/project/.sdk/tm/perl/feature/telemetry_feature.pm +155 -0
  1203. package/project/.sdk/tm/perl/feature/test_feature.pm +314 -0
  1204. package/project/.sdk/tm/perl/feature/timeout_feature.pm +110 -0
  1205. package/project/.sdk/tm/perl/lib/Voxgig/Struct.pm +2897 -0
  1206. package/project/.sdk/tm/perl/src/feature/README.md +3 -0
  1207. package/project/.sdk/tm/perl/src/feature/audit/.gitkeep +0 -0
  1208. package/project/.sdk/tm/perl/src/feature/base/.gitkeep +0 -0
  1209. package/project/.sdk/tm/perl/src/feature/cache/.gitkeep +0 -0
  1210. package/project/.sdk/tm/perl/src/feature/clienttrack/.gitkeep +0 -0
  1211. package/project/.sdk/tm/perl/src/feature/debug/.gitkeep +0 -0
  1212. package/project/.sdk/tm/perl/src/feature/idempotency/.gitkeep +0 -0
  1213. package/project/.sdk/tm/perl/src/feature/log/.gitkeep +0 -0
  1214. package/project/.sdk/tm/perl/src/feature/metrics/.gitkeep +0 -0
  1215. package/project/.sdk/tm/perl/src/feature/netsim/.gitkeep +0 -0
  1216. package/project/.sdk/tm/perl/src/feature/paging/.gitkeep +0 -0
  1217. package/project/.sdk/tm/perl/src/feature/proxy/.gitkeep +0 -0
  1218. package/project/.sdk/tm/perl/src/feature/ratelimit/.gitkeep +0 -0
  1219. package/project/.sdk/tm/perl/src/feature/rbac/.gitkeep +0 -0
  1220. package/project/.sdk/tm/perl/src/feature/retry/.gitkeep +0 -0
  1221. package/project/.sdk/tm/perl/src/feature/streaming/.gitkeep +0 -0
  1222. package/project/.sdk/tm/perl/src/feature/telemetry/.gitkeep +0 -0
  1223. package/project/.sdk/tm/perl/src/feature/test/.gitkeep +0 -0
  1224. package/project/.sdk/tm/perl/src/feature/timeout/.gitkeep +0 -0
  1225. package/project/.sdk/tm/perl/t/feature.t +1054 -0
  1226. package/project/.sdk/tm/perl/t/netsim.t +55 -0
  1227. package/project/.sdk/tm/perl/t/pipeline.t +632 -0
  1228. package/project/.sdk/tm/perl/t/primary_utility.t +1023 -0
  1229. package/project/.sdk/tm/perl/t/runner.pm +140 -0
  1230. package/project/.sdk/tm/perl/t/sdk-test-control.json +19 -0
  1231. package/project/.sdk/tm/perl/t/stream.t +132 -0
  1232. package/project/.sdk/tm/perl/t/struct_runner.pm +275 -0
  1233. package/project/.sdk/tm/perl/t/struct_utility.t +438 -0
  1234. package/project/.sdk/tm/perl/utility/clean.pm +15 -0
  1235. package/project/.sdk/tm/perl/utility/done.pm +34 -0
  1236. package/project/.sdk/tm/perl/utility/feature_add.pm +47 -0
  1237. package/project/.sdk/tm/perl/utility/feature_hook.pm +25 -0
  1238. package/project/.sdk/tm/perl/utility/feature_init.pm +33 -0
  1239. package/project/.sdk/tm/perl/utility/fetcher.pm +112 -0
  1240. package/project/.sdk/tm/perl/utility/make_context.pm +22 -0
  1241. package/project/.sdk/tm/perl/utility/make_error.pm +74 -0
  1242. package/project/.sdk/tm/perl/utility/make_fetch_def.pm +46 -0
  1243. package/project/.sdk/tm/perl/utility/make_options.pm +123 -0
  1244. package/project/.sdk/tm/perl/utility/make_point.pm +104 -0
  1245. package/project/.sdk/tm/perl/utility/make_request.pm +66 -0
  1246. package/project/.sdk/tm/perl/utility/make_response.pm +38 -0
  1247. package/project/.sdk/tm/perl/utility/make_result.pm +53 -0
  1248. package/project/.sdk/tm/perl/utility/make_spec.pm +71 -0
  1249. package/project/.sdk/tm/perl/utility/make_url.pm +63 -0
  1250. package/project/.sdk/tm/perl/utility/param.pm +65 -0
  1251. package/project/.sdk/tm/perl/utility/prepare_auth.pm +56 -0
  1252. package/project/.sdk/tm/perl/utility/prepare_body.pm +17 -0
  1253. package/project/.sdk/tm/perl/utility/prepare_headers.pm +27 -0
  1254. package/project/.sdk/tm/perl/utility/prepare_method.pm +25 -0
  1255. package/project/.sdk/tm/perl/utility/prepare_params.pm +41 -0
  1256. package/project/.sdk/tm/perl/utility/prepare_path.pm +29 -0
  1257. package/project/.sdk/tm/perl/utility/prepare_query.pm +40 -0
  1258. package/project/.sdk/tm/perl/utility/register.pm +53 -0
  1259. package/project/.sdk/tm/perl/utility/result_basic.pm +38 -0
  1260. package/project/.sdk/tm/perl/utility/result_body.pm +28 -0
  1261. package/project/.sdk/tm/perl/utility/result_headers.pm +32 -0
  1262. package/project/.sdk/tm/perl/utility/transform_request.pm +30 -0
  1263. package/project/.sdk/tm/perl/utility/transform_response.pm +43 -0
  1264. package/project/.sdk/tm/php/core/Result.php +10 -0
  1265. package/project/.sdk/tm/php/feature/AuditFeature.php +125 -0
  1266. package/project/.sdk/tm/php/feature/BaseFeature.php +6 -0
  1267. package/project/.sdk/tm/php/feature/CacheFeature.php +158 -0
  1268. package/project/.sdk/tm/php/feature/ClienttrackFeature.php +126 -0
  1269. package/project/.sdk/tm/php/feature/DebugFeature.php +167 -0
  1270. package/project/.sdk/tm/php/feature/IdempotencyFeature.php +102 -0
  1271. package/project/.sdk/tm/php/feature/MetricsFeature.php +122 -0
  1272. package/project/.sdk/tm/php/feature/NetsimFeature.php +190 -0
  1273. package/project/.sdk/tm/php/feature/PagingFeature.php +153 -0
  1274. package/project/.sdk/tm/php/feature/ProxyFeature.php +136 -0
  1275. package/project/.sdk/tm/php/feature/RatelimitFeature.php +116 -0
  1276. package/project/.sdk/tm/php/feature/RbacFeature.php +133 -0
  1277. package/project/.sdk/tm/php/feature/RetryFeature.php +159 -0
  1278. package/project/.sdk/tm/php/feature/StreamingFeature.php +107 -0
  1279. package/project/.sdk/tm/php/feature/TelemetryFeature.php +156 -0
  1280. package/project/.sdk/tm/php/feature/TestFeature.php +80 -1
  1281. package/project/.sdk/tm/php/feature/TimeoutFeature.php +95 -0
  1282. package/project/.sdk/tm/php/src/feature/audit/.gitkeep +0 -0
  1283. package/project/.sdk/tm/php/src/feature/cache/.gitkeep +0 -0
  1284. package/project/.sdk/tm/php/src/feature/clienttrack/.gitkeep +0 -0
  1285. package/project/.sdk/tm/php/src/feature/debug/.gitkeep +0 -0
  1286. package/project/.sdk/tm/php/src/feature/idempotency/.gitkeep +0 -0
  1287. package/project/.sdk/tm/php/src/feature/metrics/.gitkeep +0 -0
  1288. package/project/.sdk/tm/php/src/feature/netsim/.gitkeep +0 -0
  1289. package/project/.sdk/tm/php/src/feature/paging/.gitkeep +0 -0
  1290. package/project/.sdk/tm/php/src/feature/proxy/.gitkeep +0 -0
  1291. package/project/.sdk/tm/php/src/feature/ratelimit/.gitkeep +0 -0
  1292. package/project/.sdk/tm/php/src/feature/rbac/.gitkeep +0 -0
  1293. package/project/.sdk/tm/php/src/feature/retry/.gitkeep +0 -0
  1294. package/project/.sdk/tm/php/src/feature/streaming/.gitkeep +0 -0
  1295. package/project/.sdk/tm/php/src/feature/telemetry/.gitkeep +0 -0
  1296. package/project/.sdk/tm/php/src/feature/timeout/.gitkeep +0 -0
  1297. package/project/.sdk/tm/php/test/FeatureTest.php +1259 -0
  1298. package/project/.sdk/tm/php/test/NetsimTest.php +53 -0
  1299. package/project/.sdk/tm/php/test/PipelineTest.php +674 -0
  1300. package/project/.sdk/tm/php/utility/FeatureAdd.php +32 -1
  1301. package/project/.sdk/tm/php/utility/MakeError.php +9 -0
  1302. package/project/.sdk/tm/php/utility/MakeOptions.php +46 -0
  1303. package/project/.sdk/tm/php/utility/MakePoint.php +7 -0
  1304. package/project/.sdk/tm/py/core/context.py +4 -0
  1305. package/project/.sdk/tm/py/core/control.py +3 -0
  1306. package/project/.sdk/tm/py/feature/audit_feature.py +98 -0
  1307. package/project/.sdk/tm/py/feature/cache_feature.py +138 -0
  1308. package/project/.sdk/tm/py/feature/clienttrack_feature.py +97 -0
  1309. package/project/.sdk/tm/py/feature/debug_feature.py +134 -0
  1310. package/project/.sdk/tm/py/feature/idempotency_feature.py +89 -0
  1311. package/project/.sdk/tm/py/feature/metrics_feature.py +93 -0
  1312. package/project/.sdk/tm/py/feature/netsim_feature.py +170 -0
  1313. package/project/.sdk/tm/py/feature/paging_feature.py +134 -0
  1314. package/project/.sdk/tm/py/feature/proxy_feature.py +104 -0
  1315. package/project/.sdk/tm/py/feature/ratelimit_feature.py +98 -0
  1316. package/project/.sdk/tm/py/feature/rbac_feature.py +102 -0
  1317. package/project/.sdk/tm/py/feature/retry_feature.py +142 -0
  1318. package/project/.sdk/tm/py/feature/streaming_feature.py +84 -0
  1319. package/project/.sdk/tm/py/feature/telemetry_feature.py +128 -0
  1320. package/project/.sdk/tm/py/feature/test_feature.py +70 -1
  1321. package/project/.sdk/tm/py/feature/timeout_feature.py +78 -0
  1322. package/project/.sdk/tm/py/src/feature/audit/.gitkeep +0 -0
  1323. package/project/.sdk/tm/py/src/feature/cache/.gitkeep +0 -0
  1324. package/project/.sdk/tm/py/src/feature/clienttrack/.gitkeep +0 -0
  1325. package/project/.sdk/tm/py/src/feature/debug/.gitkeep +0 -0
  1326. package/project/.sdk/tm/py/src/feature/idempotency/.gitkeep +0 -0
  1327. package/project/.sdk/tm/py/src/feature/metrics/.gitkeep +0 -0
  1328. package/project/.sdk/tm/py/src/feature/netsim/.gitkeep +0 -0
  1329. package/project/.sdk/tm/py/src/feature/paging/.gitkeep +0 -0
  1330. package/project/.sdk/tm/py/src/feature/proxy/.gitkeep +0 -0
  1331. package/project/.sdk/tm/py/src/feature/ratelimit/.gitkeep +0 -0
  1332. package/project/.sdk/tm/py/src/feature/rbac/.gitkeep +0 -0
  1333. package/project/.sdk/tm/py/src/feature/retry/.gitkeep +0 -0
  1334. package/project/.sdk/tm/py/src/feature/streaming/.gitkeep +0 -0
  1335. package/project/.sdk/tm/py/src/feature/telemetry/.gitkeep +0 -0
  1336. package/project/.sdk/tm/py/src/feature/timeout/.gitkeep +0 -0
  1337. package/project/.sdk/tm/py/test/feature_harness.py +336 -0
  1338. package/project/.sdk/tm/py/test/test_feature.py +807 -0
  1339. package/project/.sdk/tm/py/test/test_netsim.py +52 -0
  1340. package/project/.sdk/tm/py/test/test_pipeline.py +606 -0
  1341. package/project/.sdk/tm/py/utility/feature_add.py +25 -1
  1342. package/project/.sdk/tm/py/utility/make_error.py +8 -0
  1343. package/project/.sdk/tm/py/utility/make_options.py +32 -0
  1344. package/project/.sdk/tm/py/utility/make_point.py +8 -2
  1345. package/project/.sdk/tm/py/utility/make_request.py +6 -2
  1346. package/project/.sdk/tm/py/utility/make_response.py +6 -2
  1347. package/project/.sdk/tm/py/utility/make_result.py +6 -2
  1348. package/project/.sdk/tm/py/utility/make_spec.py +6 -2
  1349. package/project/.sdk/tm/rb/core/context.rb +2 -0
  1350. package/project/.sdk/tm/rb/core/control.rb +5 -1
  1351. package/project/.sdk/tm/rb/core/result.rb +2 -1
  1352. package/project/.sdk/tm/rb/feature/audit_feature.rb +103 -0
  1353. package/project/.sdk/tm/rb/feature/base_feature.rb +5 -0
  1354. package/project/.sdk/tm/rb/feature/cache_feature.rb +133 -0
  1355. package/project/.sdk/tm/rb/feature/clienttrack_feature.rb +91 -0
  1356. package/project/.sdk/tm/rb/feature/debug_feature.rb +138 -0
  1357. package/project/.sdk/tm/rb/feature/idempotency_feature.rb +78 -0
  1358. package/project/.sdk/tm/rb/feature/metrics_feature.rb +91 -0
  1359. package/project/.sdk/tm/rb/feature/netsim_feature.rb +167 -0
  1360. package/project/.sdk/tm/rb/feature/paging_feature.rb +120 -0
  1361. package/project/.sdk/tm/rb/feature/proxy_feature.rb +93 -0
  1362. package/project/.sdk/tm/rb/feature/ratelimit_feature.rb +95 -0
  1363. package/project/.sdk/tm/rb/feature/rbac_feature.rb +96 -0
  1364. package/project/.sdk/tm/rb/feature/retry_feature.rb +116 -0
  1365. package/project/.sdk/tm/rb/feature/streaming_feature.rb +85 -0
  1366. package/project/.sdk/tm/rb/feature/telemetry_feature.rb +122 -0
  1367. package/project/.sdk/tm/rb/feature/test_feature.rb +65 -1
  1368. package/project/.sdk/tm/rb/feature/timeout_feature.rb +74 -0
  1369. package/project/.sdk/tm/rb/src/feature/audit/.gitkeep +0 -0
  1370. package/project/.sdk/tm/rb/src/feature/cache/.gitkeep +0 -0
  1371. package/project/.sdk/tm/rb/src/feature/clienttrack/.gitkeep +0 -0
  1372. package/project/.sdk/tm/rb/src/feature/debug/.gitkeep +0 -0
  1373. package/project/.sdk/tm/rb/src/feature/idempotency/.gitkeep +0 -0
  1374. package/project/.sdk/tm/rb/src/feature/metrics/.gitkeep +0 -0
  1375. package/project/.sdk/tm/rb/src/feature/netsim/.gitkeep +0 -0
  1376. package/project/.sdk/tm/rb/src/feature/paging/.gitkeep +0 -0
  1377. package/project/.sdk/tm/rb/src/feature/proxy/.gitkeep +0 -0
  1378. package/project/.sdk/tm/rb/src/feature/ratelimit/.gitkeep +0 -0
  1379. package/project/.sdk/tm/rb/src/feature/rbac/.gitkeep +0 -0
  1380. package/project/.sdk/tm/rb/src/feature/retry/.gitkeep +0 -0
  1381. package/project/.sdk/tm/rb/src/feature/streaming/.gitkeep +0 -0
  1382. package/project/.sdk/tm/rb/src/feature/telemetry/.gitkeep +0 -0
  1383. package/project/.sdk/tm/rb/src/feature/timeout/.gitkeep +0 -0
  1384. package/project/.sdk/tm/rb/test/feature_test.rb +1031 -0
  1385. package/project/.sdk/tm/rb/test/netsim_test.rb +48 -0
  1386. package/project/.sdk/tm/rb/test/pipeline_test.rb +584 -0
  1387. package/project/.sdk/tm/rb/utility/feature_add.rb +28 -1
  1388. package/project/.sdk/tm/rb/utility/make_error.rb +8 -0
  1389. package/project/.sdk/tm/rb/utility/make_options.rb +35 -0
  1390. package/project/.sdk/tm/rb/utility/make_point.rb +7 -1
  1391. package/project/.sdk/tm/rust/LICENSE +22 -0
  1392. package/project/.sdk/tm/rust/Makefile +41 -0
  1393. package/project/.sdk/tm/rust/VERSION +1 -0
  1394. package/project/.sdk/tm/rust/core/context.rs +320 -0
  1395. package/project/.sdk/tm/rust/core/control.rs +37 -0
  1396. package/project/.sdk/tm/rust/core/helpers.rs +168 -0
  1397. package/project/.sdk/tm/rust/core/mod.rs +18 -0
  1398. package/project/.sdk/tm/rust/core/operation.rs +35 -0
  1399. package/project/.sdk/tm/rust/core/point.rs +68 -0
  1400. package/project/.sdk/tm/rust/core/response.rs +38 -0
  1401. package/project/.sdk/tm/rust/core/result.rs +90 -0
  1402. package/project/.sdk/tm/rust/core/spec.rs +109 -0
  1403. package/project/.sdk/tm/rust/core/types.rs +105 -0
  1404. package/project/.sdk/tm/rust/core/utility_type.rs +184 -0
  1405. package/project/.sdk/tm/rust/feature/audit.rs +138 -0
  1406. package/project/.sdk/tm/rust/feature/base.rs +49 -0
  1407. package/project/.sdk/tm/rust/feature/cache.rs +198 -0
  1408. package/project/.sdk/tm/rust/feature/clienttrack.rs +154 -0
  1409. package/project/.sdk/tm/rust/feature/debug.rs +188 -0
  1410. package/project/.sdk/tm/rust/feature/idempotency.rs +139 -0
  1411. package/project/.sdk/tm/rust/feature/log.rs +114 -0
  1412. package/project/.sdk/tm/rust/feature/metrics.rs +136 -0
  1413. package/project/.sdk/tm/rust/feature/mod.rs +24 -0
  1414. package/project/.sdk/tm/rust/feature/netsim.rs +233 -0
  1415. package/project/.sdk/tm/rust/feature/paging.rs +209 -0
  1416. package/project/.sdk/tm/rust/feature/proxy.rs +165 -0
  1417. package/project/.sdk/tm/rust/feature/ratelimit.rs +116 -0
  1418. package/project/.sdk/tm/rust/feature/rbac.rs +152 -0
  1419. package/project/.sdk/tm/rust/feature/retry.rs +190 -0
  1420. package/project/.sdk/tm/rust/feature/streaming.rs +124 -0
  1421. package/project/.sdk/tm/rust/feature/support.rs +145 -0
  1422. package/project/.sdk/tm/rust/feature/telemetry.rs +185 -0
  1423. package/project/.sdk/tm/rust/feature/test.rs +397 -0
  1424. package/project/.sdk/tm/rust/feature/timeout.rs +103 -0
  1425. package/project/.sdk/tm/rust/src/feature/README.md +1 -0
  1426. package/project/.sdk/tm/rust/src/feature/audit/.gitkeep +0 -0
  1427. package/project/.sdk/tm/rust/src/feature/base/.gitkeep +0 -0
  1428. package/project/.sdk/tm/rust/src/feature/cache/.gitkeep +0 -0
  1429. package/project/.sdk/tm/rust/src/feature/clienttrack/.gitkeep +0 -0
  1430. package/project/.sdk/tm/rust/src/feature/debug/.gitkeep +0 -0
  1431. package/project/.sdk/tm/rust/src/feature/idempotency/.gitkeep +0 -0
  1432. package/project/.sdk/tm/rust/src/feature/log/.gitkeep +0 -0
  1433. package/project/.sdk/tm/rust/src/feature/metrics/.gitkeep +0 -0
  1434. package/project/.sdk/tm/rust/src/feature/netsim/.gitkeep +0 -0
  1435. package/project/.sdk/tm/rust/src/feature/paging/.gitkeep +0 -0
  1436. package/project/.sdk/tm/rust/src/feature/proxy/.gitkeep +0 -0
  1437. package/project/.sdk/tm/rust/src/feature/ratelimit/.gitkeep +0 -0
  1438. package/project/.sdk/tm/rust/src/feature/rbac/.gitkeep +0 -0
  1439. package/project/.sdk/tm/rust/src/feature/retry/.gitkeep +0 -0
  1440. package/project/.sdk/tm/rust/src/feature/streaming/.gitkeep +0 -0
  1441. package/project/.sdk/tm/rust/src/feature/telemetry/.gitkeep +0 -0
  1442. package/project/.sdk/tm/rust/src/feature/test/.gitkeep +0 -0
  1443. package/project/.sdk/tm/rust/src/feature/timeout/.gitkeep +0 -0
  1444. package/project/.sdk/tm/rust/tests/common/mod.rs +969 -0
  1445. package/project/.sdk/tm/rust/tests/custom_utility_test.rs +69 -0
  1446. package/project/.sdk/tm/rust/tests/feature_test.rs +1864 -0
  1447. package/project/.sdk/tm/rust/tests/netsim_test.rs +78 -0
  1448. package/project/.sdk/tm/rust/tests/pipeline_test.rs +699 -0
  1449. package/project/.sdk/tm/rust/tests/primary_utility_test.rs +999 -0
  1450. package/project/.sdk/tm/rust/tests/sdk-test-control.json +19 -0
  1451. package/project/.sdk/tm/rust/tests/struct_runner/mod.rs +424 -0
  1452. package/project/.sdk/tm/rust/tests/struct_utility_test.rs +733 -0
  1453. package/project/.sdk/tm/rust/utility/clean.rs +13 -0
  1454. package/project/.sdk/tm/rust/utility/done.rs +31 -0
  1455. package/project/.sdk/tm/rust/utility/feature_add.rs +46 -0
  1456. package/project/.sdk/tm/rust/utility/feature_hook.rs +18 -0
  1457. package/project/.sdk/tm/rust/utility/feature_init.rs +26 -0
  1458. package/project/.sdk/tm/rust/utility/fetcher.rs +142 -0
  1459. package/project/.sdk/tm/rust/utility/jsonparse.rs +211 -0
  1460. package/project/.sdk/tm/rust/utility/make_context.rs +7 -0
  1461. package/project/.sdk/tm/rust/utility/make_error.rs +79 -0
  1462. package/project/.sdk/tm/rust/utility/make_fetch_def.rs +42 -0
  1463. package/project/.sdk/tm/rust/utility/make_options.rs +175 -0
  1464. package/project/.sdk/tm/rust/utility/make_point.rs +116 -0
  1465. package/project/.sdk/tm/rust/utility/make_request.rs +73 -0
  1466. package/project/.sdk/tm/rust/utility/make_response.rs +56 -0
  1467. package/project/.sdk/tm/rust/utility/make_result.rs +64 -0
  1468. package/project/.sdk/tm/rust/utility/make_spec.rs +70 -0
  1469. package/project/.sdk/tm/rust/utility/make_url.rs +83 -0
  1470. package/project/.sdk/tm/rust/utility/mod.rs +36 -0
  1471. package/project/.sdk/tm/rust/utility/param.rs +67 -0
  1472. package/project/.sdk/tm/rust/utility/prepare_auth.rs +65 -0
  1473. package/project/.sdk/tm/rust/utility/prepare_body.rs +14 -0
  1474. package/project/.sdk/tm/rust/utility/prepare_headers.rs +23 -0
  1475. package/project/.sdk/tm/rust/utility/prepare_method.rs +18 -0
  1476. package/project/.sdk/tm/rust/utility/prepare_params.rs +33 -0
  1477. package/project/.sdk/tm/rust/utility/prepare_path.rs +17 -0
  1478. package/project/.sdk/tm/rust/utility/prepare_query.rs +47 -0
  1479. package/project/.sdk/tm/rust/utility/result_basic.rs +35 -0
  1480. package/project/.sdk/tm/rust/utility/result_body.rs +26 -0
  1481. package/project/.sdk/tm/rust/utility/result_headers.rs +24 -0
  1482. package/project/.sdk/tm/rust/utility/transform_request.rs +31 -0
  1483. package/project/.sdk/tm/rust/utility/transform_response.rs +55 -0
  1484. package/project/.sdk/tm/rust/utility/voxgigstruct/consts.rs +122 -0
  1485. package/project/.sdk/tm/rust/utility/voxgigstruct/major.rs +2688 -0
  1486. package/project/.sdk/tm/rust/utility/voxgigstruct/mini.rs +1081 -0
  1487. package/project/.sdk/tm/rust/utility/voxgigstruct/mod.rs +70 -0
  1488. package/project/.sdk/tm/rust/utility/voxgigstruct/ordered_map.rs +159 -0
  1489. package/project/.sdk/tm/rust/utility/voxgigstruct/re.rs +1229 -0
  1490. package/project/.sdk/tm/rust/utility/voxgigstruct/value.rs +372 -0
  1491. package/project/.sdk/tm/scala/LICENSE +22 -0
  1492. package/project/.sdk/tm/scala/Makefile +24 -0
  1493. package/project/.sdk/tm/scala/VERSION +1 -0
  1494. package/project/.sdk/tm/scala/core/Context.scala +160 -0
  1495. package/project/.sdk/tm/scala/core/Contracts.scala +76 -0
  1496. package/project/.sdk/tm/scala/core/Control.scala +23 -0
  1497. package/project/.sdk/tm/scala/core/Helpers.scala +38 -0
  1498. package/project/.sdk/tm/scala/core/Operation.scala +37 -0
  1499. package/project/.sdk/tm/scala/core/Point.scala +44 -0
  1500. package/project/.sdk/tm/scala/core/Response.scala +37 -0
  1501. package/project/.sdk/tm/scala/core/Result.scala +42 -0
  1502. package/project/.sdk/tm/scala/core/SdkClient.scala +220 -0
  1503. package/project/.sdk/tm/scala/core/SdkError.scala +15 -0
  1504. package/project/.sdk/tm/scala/core/Spec.scala +39 -0
  1505. package/project/.sdk/tm/scala/core/Types.scala +31 -0
  1506. package/project/.sdk/tm/scala/core/Utility.scala +85 -0
  1507. package/project/.sdk/tm/scala/feature/AuditFeature.scala +101 -0
  1508. package/project/.sdk/tm/scala/feature/BaseFeature.scala +21 -0
  1509. package/project/.sdk/tm/scala/feature/CacheFeature.scala +181 -0
  1510. package/project/.sdk/tm/scala/feature/ClienttrackFeature.scala +93 -0
  1511. package/project/.sdk/tm/scala/feature/DebugFeature.scala +149 -0
  1512. package/project/.sdk/tm/scala/feature/FeatureOptions.scala +111 -0
  1513. package/project/.sdk/tm/scala/feature/IdempotencyFeature.scala +106 -0
  1514. package/project/.sdk/tm/scala/feature/LogFeature.scala +64 -0
  1515. package/project/.sdk/tm/scala/feature/MetricsFeature.scala +105 -0
  1516. package/project/.sdk/tm/scala/feature/NetsimFeature.scala +134 -0
  1517. package/project/.sdk/tm/scala/feature/PagingFeature.scala +170 -0
  1518. package/project/.sdk/tm/scala/feature/ProxyFeature.scala +113 -0
  1519. package/project/.sdk/tm/scala/feature/RatelimitFeature.scala +58 -0
  1520. package/project/.sdk/tm/scala/feature/RbacFeature.scala +90 -0
  1521. package/project/.sdk/tm/scala/feature/RetryFeature.scala +104 -0
  1522. package/project/.sdk/tm/scala/feature/StreamingFeature.scala +98 -0
  1523. package/project/.sdk/tm/scala/feature/TelemetryFeature.scala +129 -0
  1524. package/project/.sdk/tm/scala/feature/TestFeature.scala +253 -0
  1525. package/project/.sdk/tm/scala/feature/TimeoutFeature.scala +57 -0
  1526. package/project/.sdk/tm/scala/sdktest/SdkTestMain.scala +766 -0
  1527. package/project/.sdk/tm/scala/sdktest/SdkTestSupport.scala +93 -0
  1528. package/project/.sdk/tm/scala/sdktest/StructCorpus.scala +0 -0
  1529. package/project/.sdk/tm/scala/sdktest/sdk-test-control.json +19 -0
  1530. package/project/.sdk/tm/scala/src/feature/README.md +1 -0
  1531. package/project/.sdk/tm/scala/src/feature/audit/.gitkeep +0 -0
  1532. package/project/.sdk/tm/scala/src/feature/base/.gitkeep +0 -0
  1533. package/project/.sdk/tm/scala/src/feature/cache/.gitkeep +0 -0
  1534. package/project/.sdk/tm/scala/src/feature/clienttrack/.gitkeep +0 -0
  1535. package/project/.sdk/tm/scala/src/feature/debug/.gitkeep +0 -0
  1536. package/project/.sdk/tm/scala/src/feature/idempotency/.gitkeep +0 -0
  1537. package/project/.sdk/tm/scala/src/feature/log/.gitkeep +0 -0
  1538. package/project/.sdk/tm/scala/src/feature/metrics/.gitkeep +0 -0
  1539. package/project/.sdk/tm/scala/src/feature/netsim/.gitkeep +0 -0
  1540. package/project/.sdk/tm/scala/src/feature/paging/.gitkeep +0 -0
  1541. package/project/.sdk/tm/scala/src/feature/proxy/.gitkeep +0 -0
  1542. package/project/.sdk/tm/scala/src/feature/ratelimit/.gitkeep +0 -0
  1543. package/project/.sdk/tm/scala/src/feature/rbac/.gitkeep +0 -0
  1544. package/project/.sdk/tm/scala/src/feature/retry/.gitkeep +0 -0
  1545. package/project/.sdk/tm/scala/src/feature/streaming/.gitkeep +0 -0
  1546. package/project/.sdk/tm/scala/src/feature/telemetry/.gitkeep +0 -0
  1547. package/project/.sdk/tm/scala/src/feature/test/.gitkeep +0 -0
  1548. package/project/.sdk/tm/scala/src/feature/timeout/.gitkeep +0 -0
  1549. package/project/.sdk/tm/scala/utility/FeatureUtils.scala +68 -0
  1550. package/project/.sdk/tm/scala/utility/Fetcher.scala +129 -0
  1551. package/project/.sdk/tm/scala/utility/Json.java +268 -0
  1552. package/project/.sdk/tm/scala/utility/Make.scala +463 -0
  1553. package/project/.sdk/tm/scala/utility/MakeSpec.scala +49 -0
  1554. package/project/.sdk/tm/scala/utility/Misc.scala +68 -0
  1555. package/project/.sdk/tm/scala/utility/Prepare.scala +142 -0
  1556. package/project/.sdk/tm/scala/utility/Register.scala +38 -0
  1557. package/project/.sdk/tm/scala/utility/Results.scala +63 -0
  1558. package/project/.sdk/tm/scala/utility/StructUtility.scala +29 -0
  1559. package/project/.sdk/tm/scala/utility/Transform.scala +52 -0
  1560. package/project/.sdk/tm/scala/utility/struct/Struct.java +3550 -0
  1561. package/project/.sdk/tm/scala/utility/struct/voxgig_struct.scala +1833 -0
  1562. package/project/.sdk/tm/swift/LICENSE +22 -0
  1563. package/project/.sdk/tm/swift/Makefile +41 -0
  1564. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Constants.swift +113 -0
  1565. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Inject.swift +260 -0
  1566. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Injection.swift +111 -0
  1567. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/JSON.swift +327 -0
  1568. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Merge.swift +55 -0
  1569. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Minor.swift +601 -0
  1570. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/OrderedDictionary.swift +79 -0
  1571. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Path.swift +157 -0
  1572. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Select.swift +259 -0
  1573. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Transform.swift +462 -0
  1574. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Validate.swift +378 -0
  1575. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Value.swift +184 -0
  1576. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Walk.swift +44 -0
  1577. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Context.swift +161 -0
  1578. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Control.swift +20 -0
  1579. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Operation.swift +27 -0
  1580. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Point.swift +37 -0
  1581. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Response.swift +29 -0
  1582. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Result.swift +41 -0
  1583. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Spec.swift +36 -0
  1584. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Support.swift +98 -0
  1585. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Types.swift +25 -0
  1586. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Utility.swift +81 -0
  1587. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/AuditFeature.swift +99 -0
  1588. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/BaseFeature.swift +60 -0
  1589. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/CacheFeature.swift +164 -0
  1590. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/ClienttrackFeature.swift +95 -0
  1591. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/DebugFeature.swift +126 -0
  1592. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/FeatureOptions.swift +96 -0
  1593. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/IdempotencyFeature.swift +80 -0
  1594. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/LogFeature.swift +69 -0
  1595. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/MetricsFeature.swift +103 -0
  1596. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/NetsimFeature.swift +177 -0
  1597. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/PagingFeature.swift +154 -0
  1598. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/ProxyFeature.swift +122 -0
  1599. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/RatelimitFeature.swift +79 -0
  1600. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/RbacFeature.swift +103 -0
  1601. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/RetryFeature.swift +150 -0
  1602. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/StreamingFeature.swift +82 -0
  1603. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TelemetryFeature.swift +119 -0
  1604. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TestFeature.swift +257 -0
  1605. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TimeoutFeature.swift +83 -0
  1606. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Feature.swift +56 -0
  1607. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Fetcher.swift +107 -0
  1608. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Make.swift +321 -0
  1609. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeError.swift +56 -0
  1610. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeOptions.swift +151 -0
  1611. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Prepare.swift +157 -0
  1612. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Register.swift +40 -0
  1613. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/ResultUtil.swift +107 -0
  1614. package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/CustomUtilityTest.swift +44 -0
  1615. package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/ExistsTest.swift +12 -0
  1616. package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/FeatureTest.swift +1049 -0
  1617. package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/NetsimTest.swift +50 -0
  1618. package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/PipelineTest.swift +398 -0
  1619. package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/PrimaryUtilityTest.swift +750 -0
  1620. package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/Runner.swift +237 -0
  1621. package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/StructUtilityTest.swift +523 -0
  1622. package/project/.sdk/tm/swift/VERSION +1 -0
  1623. package/project/.sdk/tm/swift/src/feature/README.md +6 -0
  1624. package/project/.sdk/tm/swift/src/feature/audit/.gitkeep +0 -0
  1625. package/project/.sdk/tm/swift/src/feature/base/.gitkeep +0 -0
  1626. package/project/.sdk/tm/swift/src/feature/cache/.gitkeep +0 -0
  1627. package/project/.sdk/tm/swift/src/feature/clienttrack/.gitkeep +0 -0
  1628. package/project/.sdk/tm/swift/src/feature/debug/.gitkeep +0 -0
  1629. package/project/.sdk/tm/swift/src/feature/idempotency/.gitkeep +0 -0
  1630. package/project/.sdk/tm/swift/src/feature/log/.gitkeep +0 -0
  1631. package/project/.sdk/tm/swift/src/feature/metrics/.gitkeep +0 -0
  1632. package/project/.sdk/tm/swift/src/feature/netsim/.gitkeep +0 -0
  1633. package/project/.sdk/tm/swift/src/feature/paging/.gitkeep +0 -0
  1634. package/project/.sdk/tm/swift/src/feature/proxy/.gitkeep +0 -0
  1635. package/project/.sdk/tm/swift/src/feature/ratelimit/.gitkeep +0 -0
  1636. package/project/.sdk/tm/swift/src/feature/rbac/.gitkeep +0 -0
  1637. package/project/.sdk/tm/swift/src/feature/retry/.gitkeep +0 -0
  1638. package/project/.sdk/tm/swift/src/feature/streaming/.gitkeep +0 -0
  1639. package/project/.sdk/tm/swift/src/feature/telemetry/.gitkeep +0 -0
  1640. package/project/.sdk/tm/swift/src/feature/test/.gitkeep +0 -0
  1641. package/project/.sdk/tm/swift/src/feature/timeout/.gitkeep +0 -0
  1642. package/project/.sdk/tm/ts/Makefile +6 -1
  1643. package/project/.sdk/tm/ts/src/feature/audit/AuditFeature.ts +98 -0
  1644. package/project/.sdk/tm/ts/src/feature/cache/CacheFeature.ts +152 -0
  1645. package/project/.sdk/tm/ts/src/feature/clienttrack/ClienttrackFeature.ts +106 -0
  1646. package/project/.sdk/tm/ts/src/feature/debug/DebugFeature.ts +134 -0
  1647. package/project/.sdk/tm/ts/src/feature/idempotency/IdempotencyFeature.ts +97 -0
  1648. package/project/.sdk/tm/ts/src/feature/metrics/MetricsFeature.ts +104 -0
  1649. package/project/.sdk/tm/ts/src/feature/netsim/NetsimFeature.ts +189 -0
  1650. package/project/.sdk/tm/ts/src/feature/paging/PagingFeature.ts +141 -0
  1651. package/project/.sdk/tm/ts/src/feature/proxy/ProxyFeature.ts +112 -0
  1652. package/project/.sdk/tm/ts/src/feature/ratelimit/RatelimitFeature.ts +108 -0
  1653. package/project/.sdk/tm/ts/src/feature/rbac/RbacFeature.ts +104 -0
  1654. package/project/.sdk/tm/ts/src/feature/retry/RetryFeature.ts +160 -0
  1655. package/project/.sdk/tm/ts/src/feature/streaming/StreamingFeature.ts +98 -0
  1656. package/project/.sdk/tm/ts/src/feature/telemetry/TelemetryFeature.ts +130 -0
  1657. package/project/.sdk/tm/ts/src/feature/test/TestFeature.ts +58 -1
  1658. package/project/.sdk/tm/ts/src/feature/timeout/TimeoutFeature.ts +103 -0
  1659. package/project/.sdk/tm/ts/src/utility/FeatureHookUtility.ts +4 -1
  1660. package/project/.sdk/tm/ts/src/utility/MakeErrorUtility.ts +9 -0
  1661. package/project/.sdk/tm/ts/src/utility/MakeOptionsUtility.ts +31 -1
  1662. package/project/.sdk/tm/ts/test/feature/harness.ts +293 -0
  1663. package/project/.sdk/tm/ts/test/feature.test.ts +772 -0
  1664. package/project/.sdk/tm/ts/test/netsim.test.ts +43 -0
  1665. package/project/.sdk/tm/ts/test/pipeline.test.ts +382 -0
  1666. package/project/.sdk/tm/zig/LICENSE +21 -0
  1667. package/project/.sdk/tm/zig/Makefile +31 -0
  1668. package/project/.sdk/tm/zig/VERSION +1 -0
  1669. package/project/.sdk/tm/zig/build.zig +58 -0
  1670. package/project/.sdk/tm/zig/build.zig.zon +11 -0
  1671. package/project/.sdk/tm/zig/core/context.zig +258 -0
  1672. package/project/.sdk/tm/zig/core/control.zig +26 -0
  1673. package/project/.sdk/tm/zig/core/error.zig +28 -0
  1674. package/project/.sdk/tm/zig/core/helpers.zig +326 -0
  1675. package/project/.sdk/tm/zig/core/mem.zig +20 -0
  1676. package/project/.sdk/tm/zig/core/operation.zig +34 -0
  1677. package/project/.sdk/tm/zig/core/point.zig +63 -0
  1678. package/project/.sdk/tm/zig/core/response.zig +32 -0
  1679. package/project/.sdk/tm/zig/core/result.zig +73 -0
  1680. package/project/.sdk/tm/zig/core/spec.zig +68 -0
  1681. package/project/.sdk/tm/zig/core/types.zig +101 -0
  1682. package/project/.sdk/tm/zig/core/utility.zig +1115 -0
  1683. package/project/.sdk/tm/zig/feature/audit.zig +131 -0
  1684. package/project/.sdk/tm/zig/feature/base.zig +52 -0
  1685. package/project/.sdk/tm/zig/feature/cache.zig +216 -0
  1686. package/project/.sdk/tm/zig/feature/clienttrack.zig +129 -0
  1687. package/project/.sdk/tm/zig/feature/debug.zig +191 -0
  1688. package/project/.sdk/tm/zig/feature/idempotency.zig +121 -0
  1689. package/project/.sdk/tm/zig/feature/log.zig +93 -0
  1690. package/project/.sdk/tm/zig/feature/metrics.zig +145 -0
  1691. package/project/.sdk/tm/zig/feature/netsim.zig +186 -0
  1692. package/project/.sdk/tm/zig/feature/paging.zig +201 -0
  1693. package/project/.sdk/tm/zig/feature/proxy.zig +180 -0
  1694. package/project/.sdk/tm/zig/feature/ratelimit.zig +123 -0
  1695. package/project/.sdk/tm/zig/feature/rbac.zig +126 -0
  1696. package/project/.sdk/tm/zig/feature/retry.zig +167 -0
  1697. package/project/.sdk/tm/zig/feature/streaming.zig +127 -0
  1698. package/project/.sdk/tm/zig/feature/support.zig +128 -0
  1699. package/project/.sdk/tm/zig/feature/telemetry.zig +165 -0
  1700. package/project/.sdk/tm/zig/feature/test.zig +315 -0
  1701. package/project/.sdk/tm/zig/feature/timeout.zig +105 -0
  1702. package/project/.sdk/tm/zig/root.zig +74 -0
  1703. package/project/.sdk/tm/zig/src/feature/README.md +1 -0
  1704. package/project/.sdk/tm/zig/src/feature/audit/.gitkeep +0 -0
  1705. package/project/.sdk/tm/zig/src/feature/base/.gitkeep +0 -0
  1706. package/project/.sdk/tm/zig/src/feature/cache/.gitkeep +0 -0
  1707. package/project/.sdk/tm/zig/src/feature/clienttrack/.gitkeep +0 -0
  1708. package/project/.sdk/tm/zig/src/feature/debug/.gitkeep +0 -0
  1709. package/project/.sdk/tm/zig/src/feature/idempotency/.gitkeep +0 -0
  1710. package/project/.sdk/tm/zig/src/feature/log/.gitkeep +0 -0
  1711. package/project/.sdk/tm/zig/src/feature/metrics/.gitkeep +0 -0
  1712. package/project/.sdk/tm/zig/src/feature/netsim/.gitkeep +0 -0
  1713. package/project/.sdk/tm/zig/src/feature/paging/.gitkeep +0 -0
  1714. package/project/.sdk/tm/zig/src/feature/proxy/.gitkeep +0 -0
  1715. package/project/.sdk/tm/zig/src/feature/ratelimit/.gitkeep +0 -0
  1716. package/project/.sdk/tm/zig/src/feature/rbac/.gitkeep +0 -0
  1717. package/project/.sdk/tm/zig/src/feature/retry/.gitkeep +0 -0
  1718. package/project/.sdk/tm/zig/src/feature/streaming/.gitkeep +0 -0
  1719. package/project/.sdk/tm/zig/src/feature/telemetry/.gitkeep +0 -0
  1720. package/project/.sdk/tm/zig/src/feature/test/.gitkeep +0 -0
  1721. package/project/.sdk/tm/zig/src/feature/timeout/.gitkeep +0 -0
  1722. package/project/.sdk/tm/zig/test/feature_test.zig +1045 -0
  1723. package/project/.sdk/tm/zig/test/fh.zig +531 -0
  1724. package/project/.sdk/tm/zig/test/gotcha_test.zig +230 -0
  1725. package/project/.sdk/tm/zig/test/pipeline_test.zig +493 -0
  1726. package/project/.sdk/tm/zig/test/primary_utility_test.zig +346 -0
  1727. package/project/.sdk/tm/zig/test/struct_corpus.zig +1145 -0
  1728. package/project/.sdk/tm/zig/test/struct_runner.zig +226 -0
  1729. package/project/.sdk/tm/zig/utility/jsonparse.zig +13 -0
  1730. package/project/.sdk/tm/zig/utility/voxgigstruct/regex.zig +779 -0
  1731. package/project/.sdk/tm/zig/utility/voxgigstruct/struct.zig +4400 -0
@@ -0,0 +1,2224 @@
1
+ /* Copyright (c) 2025-2026 Voxgig Ltd. MIT LICENSE.
2
+ *
3
+ * Transform, validate, select — and the 11 transform commands, 15 validate
4
+ * checkers, and 4 select operators.
5
+ *
6
+ * Mirrors ts/src/StructUtility.ts lines 1306–2499.
7
+ */
8
+
9
+ #include "voxgig_struct.h"
10
+
11
+ #include <ctype.h>
12
+ #include <math.h>
13
+ #include <stdio.h>
14
+ #include <stdlib.h>
15
+ #include <string.h>
16
+ #include <time.h>
17
+
18
+ /* Forward decls of items shared from inject.c */
19
+ voxgig_value* voxgig_inject_str_v(const char* val, size_t vlen, voxgig_value* store,
20
+ voxgig_injection* inj);
21
+
22
+ /* Local helpers */
23
+ static char* xstrdup_t(const char* s) {
24
+ if (!s)
25
+ s = "";
26
+ size_t n = strlen(s);
27
+ char* o = (char*)malloc(n + 1);
28
+ if (!o)
29
+ abort();
30
+ memcpy(o, s, n + 1);
31
+ return o;
32
+ }
33
+
34
+ static voxgig_value* _invalid_type_msg(voxgig_strvec* path, const char* needtype, int vt,
35
+ voxgig_value* v) {
36
+ char* vs = NULL;
37
+ if (!v || voxgig_is_undef(v) || voxgig_is_null(v))
38
+ vs = xstrdup_t("no value");
39
+ else
40
+ vs = voxgig_stringify(v, -1);
41
+
42
+ char* pathstr = NULL;
43
+ if (path && path->len > 1) {
44
+ /* pathify(path, 1, 0) — equivalent to slice(path,1).join('.') */
45
+ voxgig_value* lst = voxgig_new_list();
46
+ for (size_t i = 1; i < path->len; i++) {
47
+ voxgig_list_push(voxgig_as_list(lst), voxgig_new_string(path->data[i]));
48
+ }
49
+ pathstr = voxgig_pathify(lst, 0, 0);
50
+ voxgig_release(lst);
51
+ }
52
+
53
+ char* buf = (char*)malloc((pathstr ? strlen(pathstr) : 0) + strlen(needtype) + strlen(vs) + 128);
54
+ if (!buf)
55
+ abort();
56
+ buf[0] = '\0';
57
+ strcat(buf, "Expected ");
58
+ if (pathstr && *pathstr) {
59
+ strcat(buf, "field ");
60
+ strcat(buf, pathstr);
61
+ strcat(buf, " to be ");
62
+ }
63
+ strcat(buf, needtype);
64
+ strcat(buf, ", but found ");
65
+ if (v && !voxgig_is_undef(v) && !voxgig_is_null(v)) {
66
+ strcat(buf, voxgig_typename(vt));
67
+ strcat(buf, ": ");
68
+ }
69
+ strcat(buf, vs);
70
+ strcat(buf, ".");
71
+ voxgig_value* res = voxgig_new_string(buf);
72
+ free(buf);
73
+ free(vs);
74
+ free(pathstr);
75
+ return res;
76
+ }
77
+
78
+ /* ===========================================================================
79
+ * Transform commands
80
+ * ===========================================================================*/
81
+
82
+ static voxgig_value* tx_DELETE(voxgig_injection* inj, voxgig_value* val, const char* ref,
83
+ voxgig_value* store, void* ud) {
84
+ (void)val;
85
+ (void)ref;
86
+ (void)store;
87
+ (void)ud;
88
+ voxgig_inj_setval(inj, NULL, 0);
89
+ return voxgig_new_undef();
90
+ }
91
+
92
+ static voxgig_value* tx_COPY(voxgig_injection* inj, voxgig_value* val, const char* ref,
93
+ voxgig_value* store, void* ud) {
94
+ (void)val;
95
+ (void)ref;
96
+ (void)store;
97
+ (void)ud;
98
+ if (!voxgig_check_placement(VOXGIG_M_VAL, "COPY", VOXGIG_T_ANY, inj))
99
+ return voxgig_new_undef();
100
+ voxgig_value* keyv = voxgig_new_string(inj->key);
101
+ voxgig_value* tmp = voxgig_lookup(inj->dparent, keyv);
102
+ voxgig_value* out = tmp ? voxgig_retain(tmp) : voxgig_new_undef();
103
+ voxgig_release(keyv);
104
+ voxgig_inj_setval(inj, out, 0);
105
+ return out;
106
+ }
107
+
108
+ static voxgig_value* tx_KEY(voxgig_injection* inj, voxgig_value* val, const char* ref,
109
+ voxgig_value* store, void* ud) {
110
+ (void)val;
111
+ (void)ref;
112
+ (void)store;
113
+ (void)ud;
114
+ if (inj->mode != VOXGIG_M_VAL)
115
+ return voxgig_new_undef();
116
+
117
+ voxgig_value* parent = inj->parent;
118
+ voxgig_value* bkey = voxgig_new_string("`$KEY`");
119
+ voxgig_value* keyspec = voxgig_getprop(parent, bkey, NULL);
120
+ if (!voxgig_is_undef(keyspec)) {
121
+ voxgig_delprop(parent, bkey);
122
+ voxgig_release(bkey);
123
+ voxgig_value* out = voxgig_getprop(inj->dparent, keyspec, NULL);
124
+ voxgig_release(keyspec);
125
+ return out;
126
+ }
127
+ voxgig_release(keyspec);
128
+ voxgig_release(bkey);
129
+
130
+ voxgig_value* banno = voxgig_new_string("`$ANNO`");
131
+ voxgig_value* anno = voxgig_getprop(parent, banno, NULL);
132
+ voxgig_release(banno);
133
+ voxgig_value* key_str = voxgig_new_string("KEY");
134
+ voxgig_value* defv = NULL;
135
+ /* path[-2] */
136
+ if (inj->path.len >= 2) {
137
+ defv = voxgig_new_string(inj->path.data[inj->path.len - 2]);
138
+ } else {
139
+ defv = voxgig_new_undef();
140
+ }
141
+ voxgig_value* result = voxgig_getprop(anno, key_str, defv);
142
+ voxgig_release(anno);
143
+ voxgig_release(key_str);
144
+ voxgig_release(defv);
145
+ return result;
146
+ }
147
+
148
+ static voxgig_value* tx_ANNO(voxgig_injection* inj, voxgig_value* val, const char* ref,
149
+ voxgig_value* store, void* ud) {
150
+ (void)val;
151
+ (void)ref;
152
+ (void)store;
153
+ (void)ud;
154
+ voxgig_value* banno = voxgig_new_string("`$ANNO`");
155
+ voxgig_delprop(inj->parent, banno);
156
+ voxgig_release(banno);
157
+ return voxgig_new_undef();
158
+ }
159
+
160
+ static voxgig_value* tx_MERGE(voxgig_injection* inj, voxgig_value* val, const char* ref,
161
+ voxgig_value* store, void* ud) {
162
+ (void)val;
163
+ (void)ref;
164
+ (void)store;
165
+ (void)ud;
166
+ if (inj->mode == VOXGIG_M_KEYPRE) {
167
+ return voxgig_new_string(inj->key);
168
+ }
169
+ if (inj->mode == VOXGIG_M_KEYPOST) {
170
+ voxgig_value* keyv = voxgig_new_string(inj->key);
171
+ voxgig_value* args = voxgig_getprop(inj->parent, keyv, NULL);
172
+ voxgig_release(keyv);
173
+ voxgig_value* args_list = NULL;
174
+ if (voxgig_is_list(args)) {
175
+ args_list = voxgig_retain(args);
176
+ } else {
177
+ args_list = voxgig_new_list();
178
+ voxgig_list_push(voxgig_as_list(args_list), args ? voxgig_retain(args) : voxgig_new_undef());
179
+ }
180
+ voxgig_release(args);
181
+ voxgig_inj_setval(inj, NULL, 0);
182
+ /* mergelist = [parent, ...args, clone(parent)] */
183
+ voxgig_value* mergelist = voxgig_new_list();
184
+ voxgig_list_push(voxgig_as_list(mergelist), voxgig_retain(inj->parent));
185
+ voxgig_list* al = voxgig_as_list(args_list);
186
+ for (size_t i = 0; i < al->len; i++)
187
+ voxgig_list_push(voxgig_as_list(mergelist), voxgig_retain(al->items[i]));
188
+ voxgig_list_push(voxgig_as_list(mergelist), voxgig_clone(inj->parent));
189
+ voxgig_release(args_list);
190
+ voxgig_value* merged = voxgig_merge(mergelist, VOXGIG_MAXDEPTH);
191
+ voxgig_release(merged);
192
+ voxgig_release(mergelist);
193
+ return voxgig_new_string(inj->key);
194
+ }
195
+ return voxgig_new_undef();
196
+ }
197
+
198
+ static voxgig_value* tx_EACH(voxgig_injection* inj, voxgig_value* val, const char* ref,
199
+ voxgig_value* store, void* ud) {
200
+ (void)val;
201
+ (void)ref;
202
+ (void)ud;
203
+ if (!voxgig_check_placement(VOXGIG_M_VAL, "EACH", VOXGIG_T_LIST, inj))
204
+ return voxgig_new_undef();
205
+
206
+ /* Truncate keys to length 1. */
207
+ if (inj->keys.len > 1) {
208
+ for (size_t i = 1; i < inj->keys.len; i++)
209
+ free(inj->keys.data[i]);
210
+ inj->keys.len = 1;
211
+ }
212
+
213
+ /* args = inj.parent[1..] */
214
+ voxgig_list* pl = voxgig_as_list(inj->parent);
215
+ voxgig_value* args = voxgig_new_list();
216
+ for (size_t i = 1; i < pl->len; i++)
217
+ voxgig_list_push(voxgig_as_list(args), voxgig_retain(pl->items[i]));
218
+ int argT[2] = {VOXGIG_T_STRING, VOXGIG_T_ANY};
219
+ voxgig_value* check = voxgig_injector_args(argT, 2, args);
220
+ voxgig_release(args);
221
+ voxgig_value* err = voxgig_list_get(voxgig_as_list(check), 0);
222
+ if (err && !voxgig_is_undef(err)) {
223
+ char buf[512];
224
+ snprintf(buf, sizeof(buf), "$EACH: %s", voxgig_as_string(err));
225
+ voxgig_list_push(voxgig_as_list(inj->errs), voxgig_new_string(buf));
226
+ voxgig_release(check);
227
+ return voxgig_new_undef();
228
+ }
229
+ voxgig_value* srcpath = voxgig_retain(voxgig_list_get(voxgig_as_list(check), 1));
230
+ voxgig_value* child = voxgig_retain(voxgig_list_get(voxgig_as_list(check), 2));
231
+ voxgig_release(check);
232
+
233
+ /* srcstore = store[inj.base] || store */
234
+ voxgig_value* srcstore = store;
235
+ if (inj->base) {
236
+ voxgig_value* bs = voxgig_map_get(voxgig_as_map(store), inj->base);
237
+ if (bs)
238
+ srcstore = bs;
239
+ }
240
+ voxgig_value* src = voxgig_getpath(srcstore, srcpath, inj);
241
+ int srctype = voxgig_typify(src);
242
+
243
+ /* Build tval = list of cloned children. */
244
+ voxgig_value* tval = voxgig_new_list();
245
+ if (srctype & VOXGIG_T_LIST) {
246
+ voxgig_list* sl = voxgig_as_list(src);
247
+ for (size_t i = 0; i < sl->len; i++) {
248
+ voxgig_list_push(voxgig_as_list(tval), voxgig_clone(child));
249
+ }
250
+ } else if (srctype & VOXGIG_T_MAP) {
251
+ voxgig_map* sm = voxgig_as_map(src);
252
+ for (size_t i = 0; i < sm->len; i++) {
253
+ voxgig_value* cc = voxgig_clone(child);
254
+ voxgig_value* anno = voxgig_new_map();
255
+ voxgig_value* keymap = voxgig_new_map();
256
+ voxgig_map_set(voxgig_as_map(keymap), "KEY", voxgig_new_string(sm->entries[i].key));
257
+ voxgig_map_set(voxgig_as_map(anno), "`$ANNO`", keymap);
258
+ voxgig_value* mlist = voxgig_new_list();
259
+ voxgig_list_push(voxgig_as_list(mlist), cc);
260
+ voxgig_list_push(voxgig_as_list(mlist), anno);
261
+ voxgig_value* merged = voxgig_merge(mlist, 1);
262
+ voxgig_release(mlist);
263
+ voxgig_list_push(voxgig_as_list(tval), merged);
264
+ }
265
+ }
266
+
267
+ voxgig_value* rval = voxgig_new_list();
268
+
269
+ if (voxgig_list_len(voxgig_as_list(tval)) > 0) {
270
+ /* tcur initialised below */
271
+ /* ckey = inj.path[-2] */
272
+ const char* ckey = inj->path.len >= 2 ? inj->path.data[inj->path.len - 2] : "";
273
+ /* tpath = slice(inj.path, -1) */
274
+ voxgig_strvec tpath;
275
+ voxgig_strvec_init(&tpath);
276
+ if (inj->path.len > 0) {
277
+ for (size_t i = 0; i + 1 < inj->path.len; i++)
278
+ voxgig_strvec_push(&tpath, inj->path.data[i]);
279
+ }
280
+ /* dpath = [$TOP, ...srcpath.split('.'), '$:'+ckey] */
281
+ voxgig_strvec dpath;
282
+ voxgig_strvec_init(&dpath);
283
+ voxgig_strvec_push(&dpath, "$TOP");
284
+ if (voxgig_is_string(srcpath)) {
285
+ const char* s = voxgig_as_string(srcpath);
286
+ size_t n = voxgig_string_len(srcpath);
287
+ size_t i = 0;
288
+ while (i <= n) {
289
+ size_t j = i;
290
+ while (j < n && s[j] != '.')
291
+ j++;
292
+ voxgig_strvec_push_n(&dpath, s + i, j - i);
293
+ i = j + 1;
294
+ if (j == n)
295
+ break;
296
+ }
297
+ }
298
+ char marker[256];
299
+ snprintf(marker, sizeof(marker), "$:%s", ckey);
300
+ voxgig_strvec_push(&dpath, marker);
301
+
302
+ /* tcur = {ckey: src items} */
303
+ voxgig_value* tcur = voxgig_new_map();
304
+ /* tcur[ckey] = items(src).map(n=>n[1]) — basically a list of src values */
305
+ voxgig_value* tcsrc = voxgig_new_list();
306
+ if (voxgig_is_list(src)) {
307
+ voxgig_list* sl = voxgig_as_list(src);
308
+ for (size_t i = 0; i < sl->len; i++)
309
+ voxgig_list_push(voxgig_as_list(tcsrc), voxgig_retain(sl->items[i]));
310
+ } else if (voxgig_is_map(src)) {
311
+ voxgig_map* sm = voxgig_as_map(src);
312
+ for (size_t i = 0; i < sm->len; i++)
313
+ voxgig_list_push(voxgig_as_list(tcsrc), voxgig_retain(sm->entries[i].value));
314
+ }
315
+ voxgig_map_set(voxgig_as_map(tcur), ckey, tcsrc);
316
+
317
+ if (tpath.len > 1) {
318
+ const char* pkey = inj->path.len >= 3 ? inj->path.data[inj->path.len - 3] : "$TOP";
319
+ voxgig_value* outer = voxgig_new_map();
320
+ voxgig_map_set(voxgig_as_map(outer), pkey, tcur);
321
+ tcur = outer;
322
+ char m2[256];
323
+ snprintf(m2, sizeof(m2), "$:%s", pkey);
324
+ voxgig_strvec_push(&dpath, m2);
325
+ }
326
+
327
+ /* tinj = inj.child(0, [ckey]) */
328
+ voxgig_strvec ckeys_one;
329
+ voxgig_strvec_init(&ckeys_one);
330
+ voxgig_strvec_push(&ckeys_one, ckey);
331
+ voxgig_injection* tinj = voxgig_inj_child(inj, 0, &ckeys_one);
332
+ voxgig_strvec_free(&ckeys_one);
333
+ /* Override tinj fields. */
334
+ voxgig_strvec_clear(&tinj->path);
335
+ for (size_t i = 0; i < tpath.len; i++)
336
+ voxgig_strvec_push(&tinj->path, tpath.data[i]);
337
+ voxgig_strvec_free(&tpath);
338
+ /* tinj.nodes = slice(inj.nodes, -1) */
339
+ if (inj->nodes_len > 0) {
340
+ tinj->nodes_len = inj->nodes_len - 1;
341
+ if (tinj->nodes_cap < tinj->nodes_len) {
342
+ tinj->nodes = (voxgig_value**)realloc(tinj->nodes, tinj->nodes_len * sizeof(voxgig_value*));
343
+ tinj->nodes_cap = tinj->nodes_len;
344
+ }
345
+ for (size_t i = 0; i < tinj->nodes_len; i++)
346
+ tinj->nodes[i] = inj->nodes[i];
347
+ } else {
348
+ tinj->nodes_len = 0;
349
+ }
350
+ /* tinj.parent = nodes[-1] */
351
+ voxgig_release(tinj->parent);
352
+ tinj->parent =
353
+ tinj->nodes_len > 0 ? voxgig_retain(tinj->nodes[tinj->nodes_len - 1]) : voxgig_new_undef();
354
+ voxgig_value* ckeyv = voxgig_new_string(ckey);
355
+ voxgig_setprop(tinj->parent, ckeyv, tval);
356
+ voxgig_release(ckeyv);
357
+ voxgig_release(tinj->val);
358
+ tinj->val = voxgig_retain(tval);
359
+ voxgig_strvec_clear(&tinj->dpath);
360
+ for (size_t i = 0; i < dpath.len; i++)
361
+ voxgig_strvec_push(&tinj->dpath, dpath.data[i]);
362
+ voxgig_strvec_free(&dpath);
363
+ voxgig_release(tinj->dparent);
364
+ tinj->dparent = tcur;
365
+
366
+ voxgig_value* out = voxgig_inject(tval, store, tinj);
367
+ voxgig_release(out);
368
+ voxgig_release(rval);
369
+ rval = voxgig_retain(tinj->val);
370
+ voxgig_inj_free(tinj);
371
+ } else {
372
+ voxgig_release(rval);
373
+ rval = voxgig_new_list();
374
+ }
375
+
376
+ /* target = inj.nodes[-2] (fallback nodes[-1]) */
377
+ voxgig_value* target = NULL;
378
+ if (inj->nodes_len >= 2)
379
+ target = inj->nodes[inj->nodes_len - 2];
380
+ else if (inj->nodes_len >= 1)
381
+ target = inj->nodes[inj->nodes_len - 1];
382
+ const char* tkey = inj->path.len >= 2 ? inj->path.data[inj->path.len - 2] : "";
383
+ voxgig_value* tkeyv = voxgig_new_string(tkey);
384
+ voxgig_setprop(target, tkeyv, rval);
385
+ voxgig_release(tkeyv);
386
+
387
+ voxgig_release(srcpath);
388
+ voxgig_release(child);
389
+ voxgig_release(src);
390
+ voxgig_release(tval);
391
+
392
+ /* Return rval[0] to prevent caller from damaging first slot. */
393
+ voxgig_list* rl = voxgig_as_list(rval);
394
+ voxgig_value* ret = (rl && rl->len > 0) ? voxgig_retain(rl->items[0]) : voxgig_new_undef();
395
+ voxgig_release(rval);
396
+ return ret;
397
+ }
398
+
399
+ static voxgig_value* tx_PACK(voxgig_injection* inj, voxgig_value* val, const char* ref,
400
+ voxgig_value* store, void* ud) {
401
+ (void)val;
402
+ (void)ref;
403
+ (void)ud;
404
+ if (!voxgig_check_placement(VOXGIG_M_KEYPRE, "EACH", VOXGIG_T_MAP, inj))
405
+ return voxgig_new_undef();
406
+
407
+ voxgig_value* keyv = voxgig_new_string(inj->key);
408
+ voxgig_value* args = voxgig_getprop(inj->parent, keyv, NULL);
409
+ voxgig_release(keyv);
410
+
411
+ int argT[2] = {VOXGIG_T_STRING, VOXGIG_T_ANY};
412
+ voxgig_value* check = voxgig_injector_args(argT, 2, args);
413
+ voxgig_value* err = voxgig_list_get(voxgig_as_list(check), 0);
414
+ if (err && !voxgig_is_undef(err)) {
415
+ char buf[512];
416
+ snprintf(buf, sizeof(buf), "$EACH: %s", voxgig_as_string(err));
417
+ voxgig_list_push(voxgig_as_list(inj->errs), voxgig_new_string(buf));
418
+ voxgig_release(check);
419
+ voxgig_release(args);
420
+ return voxgig_new_undef();
421
+ }
422
+ voxgig_value* srcpath = voxgig_retain(voxgig_list_get(voxgig_as_list(check), 1));
423
+ voxgig_value* origchildspec = voxgig_retain(voxgig_list_get(voxgig_as_list(check), 2));
424
+ voxgig_release(check);
425
+ voxgig_release(args);
426
+
427
+ /* target / tkey */
428
+ const char* tkey = inj->path.len >= 2 ? inj->path.data[inj->path.len - 2] : "";
429
+ size_t pathsize = inj->path.len;
430
+ voxgig_value* target = NULL;
431
+ if (inj->nodes_len >= pathsize - 1 && pathsize >= 2)
432
+ target = inj->nodes[pathsize - 2];
433
+ else if (inj->nodes_len >= 1)
434
+ target = inj->nodes[inj->nodes_len - 1];
435
+
436
+ voxgig_value* srcstore = store;
437
+ if (inj->base) {
438
+ voxgig_value* bs = voxgig_map_get(voxgig_as_map(store), inj->base);
439
+ if (bs)
440
+ srcstore = bs;
441
+ }
442
+ voxgig_value* src = voxgig_getpath(srcstore, srcpath, inj);
443
+ /* Normalise src to list. */
444
+ if (!voxgig_is_list(src)) {
445
+ if (voxgig_is_map(src)) {
446
+ voxgig_value* lst = voxgig_new_list();
447
+ voxgig_map* sm = voxgig_as_map(src);
448
+ for (size_t i = 0; i < sm->len; i++) {
449
+ voxgig_value* it = sm->entries[i].value;
450
+ voxgig_value* anno = voxgig_new_map();
451
+ voxgig_map_set(voxgig_as_map(anno), "KEY", voxgig_new_string(sm->entries[i].key));
452
+ voxgig_value* bk = voxgig_new_string("`$ANNO`");
453
+ voxgig_setprop(it, bk, anno);
454
+ voxgig_release(bk);
455
+ voxgig_release(anno);
456
+ voxgig_list_push(voxgig_as_list(lst), voxgig_retain(it));
457
+ }
458
+ voxgig_release(src);
459
+ src = lst;
460
+ } else {
461
+ voxgig_release(src);
462
+ src = voxgig_new_undef();
463
+ }
464
+ }
465
+ if (voxgig_is_undef(src) || voxgig_is_null(src)) {
466
+ voxgig_release(srcpath);
467
+ voxgig_release(origchildspec);
468
+ voxgig_release(src);
469
+ return voxgig_new_undef();
470
+ }
471
+
472
+ voxgig_value* bkey = voxgig_new_string("`$KEY`");
473
+ voxgig_value* keypath = voxgig_getprop(origchildspec, bkey, NULL);
474
+ voxgig_delprop(origchildspec, bkey);
475
+ voxgig_release(bkey);
476
+
477
+ voxgig_value* bval = voxgig_new_string("`$VAL`");
478
+ voxgig_value* child = voxgig_getprop(origchildspec, bval, origchildspec);
479
+ voxgig_release(bval);
480
+
481
+ /* Build tval map. */
482
+ voxgig_value* tval = voxgig_new_map();
483
+ voxgig_list* sl = voxgig_as_list(src);
484
+ for (size_t i = 0; i < sl->len; i++) {
485
+ voxgig_value* srcnode = sl->items[i];
486
+ char* keystr = NULL;
487
+ if (!voxgig_is_undef(keypath)) {
488
+ if (voxgig_is_string(keypath) && voxgig_string_len(keypath) > 0 &&
489
+ voxgig_as_string(keypath)[0] == '`') {
490
+ /* inject(keypath, merge([{},store,{$TOP:srcnode}], 1)) */
491
+ voxgig_value* mlist = voxgig_new_list();
492
+ voxgig_list_push(voxgig_as_list(mlist), voxgig_new_map());
493
+ voxgig_list_push(voxgig_as_list(mlist), voxgig_retain(store));
494
+ voxgig_value* topwrap = voxgig_new_map();
495
+ voxgig_map_set(voxgig_as_map(topwrap), "$TOP", voxgig_retain(srcnode));
496
+ voxgig_list_push(voxgig_as_list(mlist), topwrap);
497
+ voxgig_value* mstore = voxgig_merge(mlist, 1);
498
+ voxgig_release(mlist);
499
+ voxgig_value* iv = voxgig_inject(keypath, mstore, NULL);
500
+ keystr = voxgig_stringify(iv, -1);
501
+ voxgig_release(iv);
502
+ voxgig_release(mstore);
503
+ } else {
504
+ voxgig_value* kv = voxgig_getpath(srcnode, keypath, inj);
505
+ keystr = voxgig_stringify(kv, -1);
506
+ voxgig_release(kv);
507
+ }
508
+ } else {
509
+ /* Use index. */
510
+ char tmp[32];
511
+ snprintf(tmp, sizeof(tmp), "%zu", i);
512
+ keystr = xstrdup_t(tmp);
513
+ }
514
+ voxgig_value* tchild = voxgig_clone(child);
515
+ voxgig_map_set(voxgig_as_map(tval), keystr, tchild);
516
+ /* Preserve $ANNO from src. */
517
+ voxgig_value* annob = voxgig_new_string("`$ANNO`");
518
+ voxgig_value* anno = voxgig_getprop(srcnode, annob, NULL);
519
+ if (voxgig_is_undef(anno)) {
520
+ voxgig_delprop(tchild, annob);
521
+ } else {
522
+ voxgig_setprop(tchild, annob, anno);
523
+ }
524
+ voxgig_release(anno);
525
+ voxgig_release(annob);
526
+ free(keystr);
527
+ }
528
+ voxgig_release(child);
529
+
530
+ voxgig_value* rval = voxgig_new_map();
531
+ if (!voxgig_isempty(tval)) {
532
+ /* tsrc = parallel src map */
533
+ voxgig_value* tsrc = voxgig_new_map();
534
+ for (size_t i = 0; i < sl->len; i++) {
535
+ voxgig_value* n = sl->items[i];
536
+ char* keystr = NULL;
537
+ if (!voxgig_is_undef(keypath)) {
538
+ if (voxgig_is_string(keypath) && voxgig_string_len(keypath) > 0 &&
539
+ voxgig_as_string(keypath)[0] == '`') {
540
+ voxgig_value* mlist = voxgig_new_list();
541
+ voxgig_list_push(voxgig_as_list(mlist), voxgig_new_map());
542
+ voxgig_list_push(voxgig_as_list(mlist), voxgig_retain(store));
543
+ voxgig_value* tw = voxgig_new_map();
544
+ voxgig_map_set(voxgig_as_map(tw), "$TOP", voxgig_retain(n));
545
+ voxgig_list_push(voxgig_as_list(mlist), tw);
546
+ voxgig_value* ms = voxgig_merge(mlist, 1);
547
+ voxgig_release(mlist);
548
+ voxgig_value* iv = voxgig_inject(keypath, ms, NULL);
549
+ keystr = voxgig_stringify(iv, -1);
550
+ voxgig_release(iv);
551
+ voxgig_release(ms);
552
+ } else {
553
+ voxgig_value* kv = voxgig_getpath(n, keypath, inj);
554
+ keystr = voxgig_stringify(kv, -1);
555
+ voxgig_release(kv);
556
+ }
557
+ } else {
558
+ char tmp[32];
559
+ snprintf(tmp, sizeof(tmp), "%zu", i);
560
+ keystr = xstrdup_t(tmp);
561
+ }
562
+ voxgig_map_set(voxgig_as_map(tsrc), keystr, voxgig_retain(n));
563
+ free(keystr);
564
+ }
565
+
566
+ /* tpath = slice(inj.path, -1) */
567
+ voxgig_strvec tpath;
568
+ voxgig_strvec_init(&tpath);
569
+ for (size_t i = 0; i + 1 < inj->path.len; i++)
570
+ voxgig_strvec_push(&tpath, inj->path.data[i]);
571
+ const char* ckey = inj->path.len >= 2 ? inj->path.data[inj->path.len - 2] : "";
572
+
573
+ /* dpath build */
574
+ voxgig_strvec dpath;
575
+ voxgig_strvec_init(&dpath);
576
+ voxgig_strvec_push(&dpath, "$TOP");
577
+ if (voxgig_is_string(srcpath)) {
578
+ const char* s = voxgig_as_string(srcpath);
579
+ size_t n = voxgig_string_len(srcpath);
580
+ size_t pos = 0;
581
+ while (pos <= n) {
582
+ size_t j = pos;
583
+ while (j < n && s[j] != '.')
584
+ j++;
585
+ voxgig_strvec_push_n(&dpath, s + pos, j - pos);
586
+ pos = j + 1;
587
+ if (j == n)
588
+ break;
589
+ }
590
+ }
591
+ char marker[256];
592
+ snprintf(marker, sizeof(marker), "$:%s", ckey);
593
+ voxgig_strvec_push(&dpath, marker);
594
+
595
+ voxgig_value* tcur = voxgig_new_map();
596
+ voxgig_map_set(voxgig_as_map(tcur), ckey, tsrc);
597
+ if (tpath.len > 1) {
598
+ const char* pkey = inj->path.len >= 3 ? inj->path.data[inj->path.len - 3] : "$TOP";
599
+ voxgig_value* outer = voxgig_new_map();
600
+ voxgig_map_set(voxgig_as_map(outer), pkey, tcur);
601
+ tcur = outer;
602
+ char m2[256];
603
+ snprintf(m2, sizeof(m2), "$:%s", pkey);
604
+ voxgig_strvec_push(&dpath, m2);
605
+ }
606
+
607
+ voxgig_strvec ckeys_one;
608
+ voxgig_strvec_init(&ckeys_one);
609
+ voxgig_strvec_push(&ckeys_one, ckey);
610
+ voxgig_injection* tinj = voxgig_inj_child(inj, 0, &ckeys_one);
611
+ voxgig_strvec_free(&ckeys_one);
612
+ voxgig_strvec_clear(&tinj->path);
613
+ for (size_t i = 0; i < tpath.len; i++)
614
+ voxgig_strvec_push(&tinj->path, tpath.data[i]);
615
+ voxgig_strvec_free(&tpath);
616
+ if (inj->nodes_len > 0) {
617
+ tinj->nodes_len = inj->nodes_len - 1;
618
+ if (tinj->nodes_cap < tinj->nodes_len) {
619
+ tinj->nodes = (voxgig_value**)realloc(tinj->nodes, tinj->nodes_len * sizeof(voxgig_value*));
620
+ tinj->nodes_cap = tinj->nodes_len;
621
+ }
622
+ for (size_t i = 0; i < tinj->nodes_len; i++)
623
+ tinj->nodes[i] = inj->nodes[i];
624
+ } else {
625
+ tinj->nodes_len = 0;
626
+ }
627
+ voxgig_release(tinj->parent);
628
+ tinj->parent =
629
+ tinj->nodes_len > 0 ? voxgig_retain(tinj->nodes[tinj->nodes_len - 1]) : voxgig_new_undef();
630
+ voxgig_release(tinj->val);
631
+ tinj->val = voxgig_retain(tval);
632
+ voxgig_strvec_clear(&tinj->dpath);
633
+ for (size_t i = 0; i < dpath.len; i++)
634
+ voxgig_strvec_push(&tinj->dpath, dpath.data[i]);
635
+ voxgig_strvec_free(&dpath);
636
+ voxgig_release(tinj->dparent);
637
+ tinj->dparent = tcur;
638
+
639
+ voxgig_value* out = voxgig_inject(tval, store, tinj);
640
+ voxgig_release(out);
641
+ voxgig_release(rval);
642
+ rval = voxgig_retain(tinj->val);
643
+ voxgig_inj_free(tinj);
644
+ }
645
+
646
+ voxgig_value* tkeyv = voxgig_new_string(tkey);
647
+ voxgig_setprop(target, tkeyv, rval);
648
+ voxgig_release(tkeyv);
649
+
650
+ voxgig_release(srcpath);
651
+ voxgig_release(origchildspec);
652
+ voxgig_release(src);
653
+ voxgig_release(keypath);
654
+ voxgig_release(tval);
655
+ voxgig_release(rval);
656
+
657
+ return voxgig_new_undef();
658
+ }
659
+
660
+ static voxgig_value* tx_REF(voxgig_injection* inj, voxgig_value* val, const char* ref,
661
+ voxgig_value* store, void* ud) {
662
+ (void)ref;
663
+ (void)ud;
664
+ if (inj->mode != VOXGIG_M_VAL)
665
+ return voxgig_new_undef();
666
+
667
+ /* refpath = parent[1] */
668
+ voxgig_value* one = voxgig_new_int(1);
669
+ voxgig_value* refpath = voxgig_getprop(inj->parent, one, NULL);
670
+ voxgig_release(one);
671
+ /* End loop. */
672
+ inj->keyI = inj->keys.len;
673
+
674
+ /* spec = store.$SPEC() — invoke the function. */
675
+ voxgig_value* spec_fn = voxgig_map_get(voxgig_as_map(store), "$SPEC");
676
+ voxgig_value* spec = NULL;
677
+ if (spec_fn && voxgig_is_injector(spec_fn)) {
678
+ spec = spec_fn->as.fn.fn.inj(inj, spec_fn, "$SPEC", store, spec_fn->as.fn.ud);
679
+ } else {
680
+ spec = voxgig_new_undef();
681
+ }
682
+
683
+ /* dpath = slice(inj.path, 1) */
684
+ voxgig_value* dpath_v = voxgig_new_list();
685
+ for (size_t i = 1; i < inj->path.len; i++)
686
+ voxgig_list_push(voxgig_as_list(dpath_v), voxgig_new_string(inj->path.data[i]));
687
+
688
+ /* Build child injection state for the inner getpath. */
689
+ voxgig_injection* tmp_inj = voxgig_inj_new(NULL, NULL);
690
+ /* tmp_inj.dpath = dpath_v elements */
691
+ voxgig_strvec_clear(&tmp_inj->dpath);
692
+ voxgig_list* dl = voxgig_as_list(dpath_v);
693
+ for (size_t i = 0; i < dl->len; i++)
694
+ voxgig_strvec_push(&tmp_inj->dpath, voxgig_as_string(dl->items[i]));
695
+ voxgig_value* dparent = voxgig_getpath(spec, dpath_v, NULL);
696
+ tmp_inj->dparent = dparent;
697
+ voxgig_value* refv = voxgig_getpath(spec, refpath, tmp_inj);
698
+ voxgig_inj_free(tmp_inj);
699
+ voxgig_release(spec);
700
+
701
+ /* Walk refv for sub-refs. */
702
+ bool hasSubRef = false;
703
+ if (voxgig_is_node(refv)) {
704
+ /* Iterative walk. */
705
+ /* Simplified: walk all values; if any string equals "`$REF`", set flag. */
706
+ /* Use a stack. */
707
+ voxgig_value* stk = voxgig_new_list();
708
+ voxgig_list_push(voxgig_as_list(stk), voxgig_retain(refv));
709
+ while (voxgig_list_len(voxgig_as_list(stk)) > 0) {
710
+ voxgig_value* node =
711
+ voxgig_list_get(voxgig_as_list(stk), voxgig_list_len(voxgig_as_list(stk)) - 1);
712
+ voxgig_retain(node);
713
+ voxgig_list_erase(voxgig_as_list(stk), voxgig_list_len(voxgig_as_list(stk)) - 1);
714
+ if (voxgig_is_map(node)) {
715
+ voxgig_map* m = voxgig_as_map(node);
716
+ for (size_t i = 0; i < m->len; i++) {
717
+ voxgig_value* v = m->entries[i].value;
718
+ if (voxgig_is_string(v) && strcmp(voxgig_as_string(v), "`$REF`") == 0)
719
+ hasSubRef = true;
720
+ if (voxgig_is_node(v))
721
+ voxgig_list_push(voxgig_as_list(stk), voxgig_retain(v));
722
+ }
723
+ } else if (voxgig_is_list(node)) {
724
+ voxgig_list* l = voxgig_as_list(node);
725
+ for (size_t i = 0; i < l->len; i++) {
726
+ voxgig_value* v = l->items[i];
727
+ if (voxgig_is_string(v) && strcmp(voxgig_as_string(v), "`$REF`") == 0)
728
+ hasSubRef = true;
729
+ if (voxgig_is_node(v))
730
+ voxgig_list_push(voxgig_as_list(stk), voxgig_retain(v));
731
+ }
732
+ }
733
+ voxgig_release(node);
734
+ }
735
+ voxgig_release(stk);
736
+ }
737
+
738
+ voxgig_value* tref = voxgig_clone(refv);
739
+
740
+ /* cpath = slice(inj.path, -3), tpath = slice(inj.path, -1) */
741
+ voxgig_value* cpath = voxgig_new_list();
742
+ /* slice(path, -3) means keep all but last 3 */
743
+ if (inj->path.len > 3) {
744
+ for (size_t i = 0; i + 3 < inj->path.len; i++)
745
+ voxgig_list_push(voxgig_as_list(cpath), voxgig_new_string(inj->path.data[i]));
746
+ }
747
+ voxgig_value* tpath = voxgig_new_list();
748
+ if (inj->path.len > 1) {
749
+ for (size_t i = 0; i + 1 < inj->path.len; i++)
750
+ voxgig_list_push(voxgig_as_list(tpath), voxgig_new_string(inj->path.data[i]));
751
+ }
752
+ voxgig_value* tcur = voxgig_getpath(store, cpath, NULL);
753
+ voxgig_value* tval = voxgig_getpath(store, tpath, NULL);
754
+ voxgig_value* rval = voxgig_new_undef();
755
+ if (!hasSubRef || !voxgig_is_undef(tval)) {
756
+ /* tinj = inj.child(0, [last_of_tpath]) */
757
+ voxgig_list* tplist = voxgig_as_list(tpath);
758
+ const char* lastpart =
759
+ tplist->len > 0 ? voxgig_as_string(voxgig_list_get(tplist, tplist->len - 1)) : "";
760
+ voxgig_strvec ckeys_one;
761
+ voxgig_strvec_init(&ckeys_one);
762
+ voxgig_strvec_push(&ckeys_one, lastpart);
763
+ voxgig_injection* tinj = voxgig_inj_child(inj, 0, &ckeys_one);
764
+ voxgig_strvec_free(&ckeys_one);
765
+
766
+ voxgig_strvec_clear(&tinj->path);
767
+ for (size_t i = 0; i < tplist->len; i++)
768
+ voxgig_strvec_push(&tinj->path, voxgig_as_string(tplist->items[i]));
769
+ if (inj->nodes_len > 0) {
770
+ tinj->nodes_len = inj->nodes_len - 1;
771
+ if (tinj->nodes_cap < tinj->nodes_len) {
772
+ tinj->nodes = (voxgig_value**)realloc(tinj->nodes, tinj->nodes_len * sizeof(voxgig_value*));
773
+ tinj->nodes_cap = tinj->nodes_len;
774
+ }
775
+ for (size_t i = 0; i < tinj->nodes_len; i++)
776
+ tinj->nodes[i] = inj->nodes[i];
777
+ } else {
778
+ tinj->nodes_len = 0;
779
+ }
780
+ voxgig_release(tinj->parent);
781
+ tinj->parent =
782
+ inj->nodes_len >= 2 ? voxgig_retain(inj->nodes[inj->nodes_len - 2]) : voxgig_new_undef();
783
+ voxgig_release(tinj->val);
784
+ tinj->val = voxgig_retain(tref);
785
+
786
+ voxgig_strvec_clear(&tinj->dpath);
787
+ voxgig_list* cpl = voxgig_as_list(cpath);
788
+ for (size_t i = 0; i < cpl->len; i++)
789
+ voxgig_strvec_push(&tinj->dpath, voxgig_as_string(cpl->items[i]));
790
+ voxgig_release(tinj->dparent);
791
+ tinj->dparent = voxgig_retain(tcur);
792
+
793
+ voxgig_value* out = voxgig_inject(tref, store, tinj);
794
+ voxgig_release(out);
795
+ rval = voxgig_retain(tinj->val);
796
+ voxgig_inj_free(tinj);
797
+ }
798
+
799
+ voxgig_value* grandparent = voxgig_inj_setval(inj, rval, 2);
800
+ if (voxgig_is_list(grandparent) && inj->prior) {
801
+ /* TS: `inj.prior.keyI--`. With signed numbers, keyI can go to -1. We use
802
+ keyI_neg as a flag for "logically -1" (size_t cannot represent it). */
803
+ if (inj->prior->keyI > 0) {
804
+ inj->prior->keyI--;
805
+ } else if (inj->prior->keyI == 0 && !inj->prior->keyI_neg) {
806
+ inj->prior->keyI_neg = true;
807
+ }
808
+ }
809
+
810
+ voxgig_release(refpath);
811
+ voxgig_release(dpath_v);
812
+ voxgig_release(refv);
813
+ voxgig_release(tref);
814
+ voxgig_release(cpath);
815
+ voxgig_release(tpath);
816
+ voxgig_release(tcur);
817
+ voxgig_release(tval);
818
+ voxgig_release(rval);
819
+ return val ? voxgig_retain(val) : voxgig_new_undef();
820
+ }
821
+
822
+ /* FORMATTER table */
823
+ static voxgig_value* formatter_identity(voxgig_value* k, voxgig_value* v, voxgig_value* parent,
824
+ voxgig_value* path, void* ud) {
825
+ (void)k;
826
+ (void)parent;
827
+ (void)path;
828
+ (void)ud;
829
+ return v ? voxgig_retain(v) : voxgig_new_undef();
830
+ }
831
+ static voxgig_value* formatter_upper(voxgig_value* k, voxgig_value* v, voxgig_value* parent,
832
+ voxgig_value* path, void* ud) {
833
+ (void)k;
834
+ (void)parent;
835
+ (void)path;
836
+ (void)ud;
837
+ if (voxgig_is_node(v))
838
+ return v ? voxgig_retain(v) : voxgig_new_undef();
839
+ char* s = voxgig_stringify(v, -1);
840
+ for (char* p = s; *p; p++)
841
+ *p = (char)toupper((unsigned char)*p);
842
+ voxgig_value* out = voxgig_new_string(s);
843
+ free(s);
844
+ return out;
845
+ }
846
+ static voxgig_value* formatter_lower(voxgig_value* k, voxgig_value* v, voxgig_value* parent,
847
+ voxgig_value* path, void* ud) {
848
+ (void)k;
849
+ (void)parent;
850
+ (void)path;
851
+ (void)ud;
852
+ if (voxgig_is_node(v))
853
+ return v ? voxgig_retain(v) : voxgig_new_undef();
854
+ char* s = voxgig_stringify(v, -1);
855
+ for (char* p = s; *p; p++)
856
+ *p = (char)tolower((unsigned char)*p);
857
+ voxgig_value* out = voxgig_new_string(s);
858
+ free(s);
859
+ return out;
860
+ }
861
+ static voxgig_value* formatter_string(voxgig_value* k, voxgig_value* v, voxgig_value* parent,
862
+ voxgig_value* path, void* ud) {
863
+ (void)k;
864
+ (void)parent;
865
+ (void)path;
866
+ (void)ud;
867
+ if (voxgig_is_node(v))
868
+ return v ? voxgig_retain(v) : voxgig_new_undef();
869
+ char* s = voxgig_stringify(v, -1);
870
+ voxgig_value* out = voxgig_new_string(s);
871
+ free(s);
872
+ return out;
873
+ }
874
+ static voxgig_value* formatter_number(voxgig_value* k, voxgig_value* v, voxgig_value* parent,
875
+ voxgig_value* path, void* ud) {
876
+ (void)k;
877
+ (void)parent;
878
+ (void)path;
879
+ (void)ud;
880
+ if (voxgig_is_node(v))
881
+ return v ? voxgig_retain(v) : voxgig_new_undef();
882
+ if (voxgig_is_number(v))
883
+ return voxgig_retain(v);
884
+ if (voxgig_is_string(v)) {
885
+ char* end = NULL;
886
+ double d = strtod(voxgig_as_string(v), &end);
887
+ if (end && *end == '\0') {
888
+ if (d == floor(d))
889
+ return voxgig_new_int((int64_t)d);
890
+ return voxgig_new_double(d);
891
+ }
892
+ }
893
+ return voxgig_new_int(0);
894
+ }
895
+ static voxgig_value* formatter_integer(voxgig_value* k, voxgig_value* v, voxgig_value* parent,
896
+ voxgig_value* path, void* ud) {
897
+ (void)k;
898
+ (void)parent;
899
+ (void)path;
900
+ (void)ud;
901
+ if (voxgig_is_node(v))
902
+ return v ? voxgig_retain(v) : voxgig_new_undef();
903
+ int32_t i = 0;
904
+ if (voxgig_is_number(v))
905
+ i = (int32_t)voxgig_as_int(v);
906
+ else if (voxgig_is_string(v)) {
907
+ char* end = NULL;
908
+ double d = strtod(voxgig_as_string(v), &end);
909
+ if (end && *end == '\0')
910
+ i = (int32_t)d;
911
+ }
912
+ return voxgig_new_int((int64_t)i);
913
+ }
914
+ static voxgig_value* formatter_concat(voxgig_value* k, voxgig_value* v, voxgig_value* parent,
915
+ voxgig_value* path, void* ud) {
916
+ (void)parent;
917
+ (void)path;
918
+ (void)ud;
919
+ if ((!k || voxgig_is_undef(k)) && voxgig_is_list(v)) {
920
+ char* buf = NULL;
921
+ size_t len = 0, cap = 0;
922
+ voxgig_list* l = voxgig_as_list(v);
923
+ for (size_t i = 0; i < l->len; i++) {
924
+ voxgig_value* el = l->items[i];
925
+ if (voxgig_is_node(el))
926
+ continue;
927
+ char* s = voxgig_stringify(el, -1);
928
+ size_t sl = strlen(s);
929
+ if (len + sl + 1 > cap) {
930
+ size_t nc = cap == 0 ? 64 : cap;
931
+ while (nc < len + sl + 1)
932
+ nc *= 2;
933
+ buf = (char*)realloc(buf, nc);
934
+ if (!buf)
935
+ abort();
936
+ cap = nc;
937
+ }
938
+ memcpy(buf + len, s, sl);
939
+ len += sl;
940
+ buf[len] = '\0';
941
+ free(s);
942
+ }
943
+ if (!buf)
944
+ buf = xstrdup_t("");
945
+ voxgig_value* out = voxgig_new_string(buf);
946
+ free(buf);
947
+ return out;
948
+ }
949
+ return v ? voxgig_retain(v) : voxgig_new_undef();
950
+ }
951
+
952
+ static voxgig_walkapply_fn formatter_lookup(const char* name) {
953
+ if (strcmp(name, "identity") == 0)
954
+ return formatter_identity;
955
+ if (strcmp(name, "upper") == 0)
956
+ return formatter_upper;
957
+ if (strcmp(name, "lower") == 0)
958
+ return formatter_lower;
959
+ if (strcmp(name, "string") == 0)
960
+ return formatter_string;
961
+ if (strcmp(name, "number") == 0)
962
+ return formatter_number;
963
+ if (strcmp(name, "integer") == 0)
964
+ return formatter_integer;
965
+ if (strcmp(name, "concat") == 0)
966
+ return formatter_concat;
967
+ return NULL;
968
+ }
969
+
970
+ static voxgig_value* tx_FORMAT(voxgig_injection* inj, voxgig_value* val, const char* ref,
971
+ voxgig_value* store, void* ud) {
972
+ (void)val;
973
+ (void)ref;
974
+ (void)ud;
975
+ /* Truncate keys. */
976
+ if (inj->keys.len > 1) {
977
+ for (size_t i = 1; i < inj->keys.len; i++)
978
+ free(inj->keys.data[i]);
979
+ inj->keys.len = 1;
980
+ }
981
+ if (inj->mode != VOXGIG_M_VAL)
982
+ return voxgig_new_undef();
983
+
984
+ voxgig_value* one = voxgig_new_int(1);
985
+ voxgig_value* two = voxgig_new_int(2);
986
+ voxgig_value* name = voxgig_getprop(inj->parent, one, NULL);
987
+ voxgig_value* child = voxgig_getprop(inj->parent, two, NULL);
988
+ voxgig_release(one);
989
+ voxgig_release(two);
990
+
991
+ const char* tkey = inj->path.len >= 2 ? inj->path.data[inj->path.len - 2] : "";
992
+ voxgig_value* target = NULL;
993
+ if (inj->nodes_len >= 2)
994
+ target = inj->nodes[inj->nodes_len - 2];
995
+ else if (inj->nodes_len >= 1)
996
+ target = inj->nodes[inj->nodes_len - 1];
997
+
998
+ voxgig_injection* cinj = voxgig_inject_child(child, store, inj);
999
+ voxgig_value* resolved = voxgig_retain(cinj->val);
1000
+
1001
+ voxgig_walkapply_fn fmt = NULL;
1002
+ if (voxgig_is_func(name)) {
1003
+ /* Function name: use injector to walk. */
1004
+ /* Wrap injector as walk_apply via lambda-like helper not feasible; treat as injector call. */
1005
+ } else if (voxgig_is_string(name)) {
1006
+ fmt = formatter_lookup(voxgig_as_string(name));
1007
+ }
1008
+ if (!fmt) {
1009
+ char msg[256];
1010
+ snprintf(msg, sizeof(msg), "$FORMAT: unknown format: %s.",
1011
+ voxgig_is_string(name) ? voxgig_as_string(name) : "(unknown)");
1012
+ voxgig_list_push(voxgig_as_list(inj->errs), voxgig_new_string(msg));
1013
+ voxgig_release(name);
1014
+ voxgig_release(child);
1015
+ voxgig_release(resolved);
1016
+ if (cinj != inj)
1017
+ voxgig_inj_free(cinj);
1018
+ return voxgig_new_undef();
1019
+ }
1020
+
1021
+ voxgig_value* out = voxgig_walk(resolved, fmt, NULL, VOXGIG_MAXDEPTH, NULL);
1022
+
1023
+ voxgig_value* tkeyv = voxgig_new_string(tkey);
1024
+ voxgig_setprop(target, tkeyv, out);
1025
+ voxgig_release(tkeyv);
1026
+
1027
+ voxgig_release(name);
1028
+ voxgig_release(child);
1029
+ voxgig_release(resolved);
1030
+ if (cinj != inj)
1031
+ voxgig_inj_free(cinj);
1032
+
1033
+ return out;
1034
+ }
1035
+
1036
+ static voxgig_value* tx_APPLY(voxgig_injection* inj, voxgig_value* val, const char* ref,
1037
+ voxgig_value* store, void* ud) {
1038
+ (void)val;
1039
+ (void)ref;
1040
+ (void)ud;
1041
+ if (!voxgig_check_placement(VOXGIG_M_VAL, "APPLY", VOXGIG_T_LIST, inj))
1042
+ return voxgig_new_undef();
1043
+
1044
+ /* args = parent[1..] */
1045
+ voxgig_list* pl = voxgig_as_list(inj->parent);
1046
+ voxgig_value* args = voxgig_new_list();
1047
+ for (size_t i = 1; i < pl->len; i++)
1048
+ voxgig_list_push(voxgig_as_list(args), voxgig_retain(pl->items[i]));
1049
+ int argT[2] = {VOXGIG_T_FUNCTION, VOXGIG_T_ANY};
1050
+ voxgig_value* check = voxgig_injector_args(argT, 2, args);
1051
+ voxgig_release(args);
1052
+ voxgig_value* err = voxgig_list_get(voxgig_as_list(check), 0);
1053
+ if (err && !voxgig_is_undef(err)) {
1054
+ char buf[512];
1055
+ snprintf(buf, sizeof(buf), "$APPLY: %s", voxgig_as_string(err));
1056
+ voxgig_list_push(voxgig_as_list(inj->errs), voxgig_new_string(buf));
1057
+ voxgig_release(check);
1058
+ return voxgig_new_undef();
1059
+ }
1060
+ voxgig_value* apply = voxgig_retain(voxgig_list_get(voxgig_as_list(check), 1));
1061
+ voxgig_value* child = voxgig_retain(voxgig_list_get(voxgig_as_list(check), 2));
1062
+ voxgig_release(check);
1063
+
1064
+ const char* tkey = inj->path.len >= 2 ? inj->path.data[inj->path.len - 2] : "";
1065
+ voxgig_value* target = NULL;
1066
+ if (inj->nodes_len >= 2)
1067
+ target = inj->nodes[inj->nodes_len - 2];
1068
+ else if (inj->nodes_len >= 1)
1069
+ target = inj->nodes[inj->nodes_len - 1];
1070
+
1071
+ voxgig_injection* cinj = voxgig_inject_child(child, store, inj);
1072
+ voxgig_value* resolved = voxgig_retain(cinj->val);
1073
+
1074
+ voxgig_value* out = apply->as.fn.fn.inj(cinj, resolved, "", store, apply->as.fn.ud);
1075
+
1076
+ voxgig_value* tkeyv = voxgig_new_string(tkey);
1077
+ voxgig_setprop(target, tkeyv, out);
1078
+ voxgig_release(tkeyv);
1079
+
1080
+ voxgig_release(apply);
1081
+ voxgig_release(child);
1082
+ voxgig_release(resolved);
1083
+ if (cinj != inj)
1084
+ voxgig_inj_free(cinj);
1085
+
1086
+ return out;
1087
+ }
1088
+
1089
+ /* ===========================================================================
1090
+ * Validate checkers
1091
+ * ===========================================================================*/
1092
+
1093
+ static int typename_to_bit(const char* tname) {
1094
+ static const struct {
1095
+ const char* name;
1096
+ int bit;
1097
+ } TABLE[] = {
1098
+ {"any", VOXGIG_T_ANY}, {"nil", VOXGIG_T_NOVAL},
1099
+ {"boolean", VOXGIG_T_BOOLEAN}, {"decimal", VOXGIG_T_DECIMAL},
1100
+ {"integer", VOXGIG_T_INTEGER}, {"number", VOXGIG_T_NUMBER},
1101
+ {"string", VOXGIG_T_STRING}, {"function", VOXGIG_T_FUNCTION},
1102
+ {"symbol", VOXGIG_T_SYMBOL}, {"null", VOXGIG_T_NULL},
1103
+ {"list", VOXGIG_T_LIST}, {"map", VOXGIG_T_MAP},
1104
+ {"instance", VOXGIG_T_INSTANCE}, {"scalar", VOXGIG_T_SCALAR},
1105
+ {"node", VOXGIG_T_NODE},
1106
+ };
1107
+ for (size_t i = 0; i < sizeof(TABLE) / sizeof(TABLE[0]); i++) {
1108
+ if (strcmp(TABLE[i].name, tname) == 0)
1109
+ return TABLE[i].bit;
1110
+ }
1111
+ return 0;
1112
+ }
1113
+
1114
+ static voxgig_value* va_STRING(voxgig_injection* inj, voxgig_value* val, const char* ref,
1115
+ voxgig_value* store, void* ud) {
1116
+ (void)val;
1117
+ (void)ref;
1118
+ (void)store;
1119
+ (void)ud;
1120
+ voxgig_value* keyv = voxgig_new_string(inj->key);
1121
+ voxgig_value* tmp = voxgig_lookup(inj->dparent, keyv);
1122
+ voxgig_value* out = tmp ? voxgig_retain(tmp) : voxgig_new_undef();
1123
+ voxgig_release(keyv);
1124
+ int t = voxgig_typify(out);
1125
+ if ((t & VOXGIG_T_STRING) == 0) {
1126
+ voxgig_value* msg = _invalid_type_msg(&inj->path, "string", t, out);
1127
+ voxgig_list_push(voxgig_as_list(inj->errs), msg);
1128
+ voxgig_release(out);
1129
+ return voxgig_new_undef();
1130
+ }
1131
+ if (voxgig_string_len(out) == 0) {
1132
+ /* Build "Empty string at <path>" message. */
1133
+ voxgig_value* lst = voxgig_new_list();
1134
+ for (size_t i = 1; i < inj->path.len; i++)
1135
+ voxgig_list_push(voxgig_as_list(lst), voxgig_new_string(inj->path.data[i]));
1136
+ char* p = voxgig_pathify(lst, 0, 0);
1137
+ voxgig_release(lst);
1138
+ char buf[512];
1139
+ snprintf(buf, sizeof(buf), "Empty string at %s", p);
1140
+ free(p);
1141
+ voxgig_list_push(voxgig_as_list(inj->errs), voxgig_new_string(buf));
1142
+ voxgig_release(out);
1143
+ return voxgig_new_undef();
1144
+ }
1145
+ return out;
1146
+ }
1147
+
1148
+ static voxgig_value* va_TYPE(voxgig_injection* inj, voxgig_value* val, const char* ref,
1149
+ voxgig_value* store, void* ud) {
1150
+ (void)val;
1151
+ (void)store;
1152
+ (void)ud;
1153
+ /* tname = ref[1..].toLowerCase() */
1154
+ if (!ref || ref[0] != '$')
1155
+ return voxgig_new_undef();
1156
+ char tname[32];
1157
+ size_t rl = strlen(ref);
1158
+ size_t cp = rl - 1;
1159
+ if (cp >= sizeof(tname))
1160
+ cp = sizeof(tname) - 1;
1161
+ for (size_t i = 0; i < cp; i++)
1162
+ tname[i] = (char)tolower((unsigned char)ref[1 + i]);
1163
+ tname[cp] = '\0';
1164
+ int typev = typename_to_bit(tname);
1165
+ voxgig_value* keyv = voxgig_new_string(inj->key);
1166
+ voxgig_value* tmp = voxgig_lookup(inj->dparent, keyv);
1167
+ voxgig_value* out = tmp ? voxgig_retain(tmp) : voxgig_new_undef();
1168
+ voxgig_release(keyv);
1169
+ int t = voxgig_typify(out);
1170
+ if ((t & typev) == 0) {
1171
+ voxgig_value* msg = _invalid_type_msg(&inj->path, tname, t, out);
1172
+ voxgig_list_push(voxgig_as_list(inj->errs), msg);
1173
+ voxgig_release(out);
1174
+ return voxgig_new_undef();
1175
+ }
1176
+ return out;
1177
+ }
1178
+
1179
+ static voxgig_value* va_ANY(voxgig_injection* inj, voxgig_value* val, const char* ref,
1180
+ voxgig_value* store, void* ud) {
1181
+ (void)val;
1182
+ (void)ref;
1183
+ (void)store;
1184
+ (void)ud;
1185
+ voxgig_value* keyv = voxgig_new_string(inj->key);
1186
+ voxgig_value* tmp = voxgig_lookup(inj->dparent, keyv);
1187
+ voxgig_value* out = tmp ? voxgig_retain(tmp) : voxgig_new_undef();
1188
+ voxgig_release(keyv);
1189
+ return out;
1190
+ }
1191
+
1192
+ static voxgig_value* va_CHILD(voxgig_injection* inj, voxgig_value* val, const char* ref,
1193
+ voxgig_value* store, void* ud) {
1194
+ (void)val;
1195
+ (void)ref;
1196
+ (void)store;
1197
+ (void)ud;
1198
+ if (inj->mode == VOXGIG_M_KEYPRE) {
1199
+ voxgig_value* keyv = voxgig_new_string(inj->key);
1200
+ voxgig_value* childtm = voxgig_getprop(inj->parent, keyv, NULL);
1201
+ voxgig_release(keyv);
1202
+ const char* pkey = inj->path.len >= 2 ? inj->path.data[inj->path.len - 2] : "";
1203
+ voxgig_value* pkv = voxgig_new_string(pkey);
1204
+ voxgig_value* tval = voxgig_getprop(inj->dparent, pkv, NULL);
1205
+ voxgig_release(pkv);
1206
+ bool tval_undef = voxgig_is_undef(tval) || voxgig_is_null(tval);
1207
+ if (tval_undef) {
1208
+ voxgig_release(tval);
1209
+ tval = voxgig_new_map();
1210
+ } else if (!voxgig_is_map(tval)) {
1211
+ /* error */
1212
+ voxgig_value* msg = _invalid_type_msg(&inj->path, "object", voxgig_typify(tval), tval);
1213
+ voxgig_list_push(voxgig_as_list(inj->errs), msg);
1214
+ voxgig_release(tval);
1215
+ voxgig_release(childtm);
1216
+ return voxgig_new_undef();
1217
+ }
1218
+ voxgig_strvec ckeys = voxgig_keysof(tval);
1219
+ for (size_t i = 0; i < ckeys.len; i++) {
1220
+ voxgig_value* ckv = voxgig_new_string(ckeys.data[i]);
1221
+ voxgig_setprop(inj->parent, ckv, voxgig_clone(childtm));
1222
+ voxgig_release(ckv);
1223
+ voxgig_strvec_push(&inj->keys, ckeys.data[i]);
1224
+ }
1225
+ voxgig_strvec_free(&ckeys);
1226
+ voxgig_inj_setval(inj, NULL, 0);
1227
+ voxgig_release(tval);
1228
+ voxgig_release(childtm);
1229
+ return voxgig_new_undef();
1230
+ }
1231
+ if (inj->mode == VOXGIG_M_VAL) {
1232
+ if (!voxgig_is_list(inj->parent)) {
1233
+ voxgig_list_push(voxgig_as_list(inj->errs), voxgig_new_string("Invalid $CHILD as value"));
1234
+ return voxgig_new_undef();
1235
+ }
1236
+ voxgig_value* one = voxgig_new_int(1);
1237
+ voxgig_value* childtm = voxgig_getprop(inj->parent, one, NULL);
1238
+ voxgig_release(one);
1239
+ if (!inj->dparent || voxgig_is_undef(inj->dparent)) {
1240
+ /* Empty list as default. */
1241
+ voxgig_value* nul = NULL;
1242
+ voxgig_value* empty = voxgig_new_list();
1243
+ (void)nul;
1244
+ /* slice(parent, 0, 0, true) — clear parent list. */
1245
+ if (voxgig_is_list(inj->parent))
1246
+ voxgig_list_clear(voxgig_as_list(inj->parent));
1247
+ voxgig_release(empty);
1248
+ voxgig_release(childtm);
1249
+ return voxgig_new_undef();
1250
+ }
1251
+ if (!voxgig_is_list(inj->dparent)) {
1252
+ voxgig_value* msg =
1253
+ _invalid_type_msg(&inj->path, "list", voxgig_typify(inj->dparent), inj->dparent);
1254
+ voxgig_list_push(voxgig_as_list(inj->errs), msg);
1255
+ inj->keyI = voxgig_list_len(voxgig_as_list(inj->parent));
1256
+ voxgig_release(childtm);
1257
+ return inj->dparent ? voxgig_retain(inj->dparent) : voxgig_new_undef();
1258
+ }
1259
+ /* Clone childtm into parent for each item. */
1260
+ voxgig_list* dl = voxgig_as_list(inj->dparent);
1261
+ voxgig_list_clear(voxgig_as_list(inj->parent));
1262
+ for (size_t i = 0; i < dl->len; i++) {
1263
+ voxgig_list_push(voxgig_as_list(inj->parent), voxgig_clone(childtm));
1264
+ }
1265
+ inj->keyI = 0;
1266
+ voxgig_release(childtm);
1267
+ return dl->len > 0 ? voxgig_retain(dl->items[0]) : voxgig_new_undef();
1268
+ }
1269
+ return voxgig_new_undef();
1270
+ }
1271
+
1272
+ /* Forward decl for use in ONE / select. */
1273
+ voxgig_value* voxgig_validate(voxgig_value* data, voxgig_value* spec, voxgig_injection* injdef);
1274
+
1275
+ static voxgig_value* va_ONE(voxgig_injection* inj, voxgig_value* val, const char* ref,
1276
+ voxgig_value* store, void* ud) {
1277
+ (void)val;
1278
+ (void)ref;
1279
+ (void)ud;
1280
+ if (inj->mode != VOXGIG_M_VAL)
1281
+ return voxgig_new_undef();
1282
+ if (!voxgig_is_list(inj->parent) || inj->keyI != 0) {
1283
+ /* Build path string. */
1284
+ voxgig_value* lst = voxgig_new_list();
1285
+ for (size_t i = 1; i + 1 < inj->path.len; i++)
1286
+ voxgig_list_push(voxgig_as_list(lst), voxgig_new_string(inj->path.data[i]));
1287
+ char* ps = voxgig_pathify(lst, 0, 0);
1288
+ voxgig_release(lst);
1289
+ char buf[512];
1290
+ snprintf(buf, sizeof(buf),
1291
+ "The $ONE validator at field %s must be the first element of an array.", ps);
1292
+ free(ps);
1293
+ voxgig_list_push(voxgig_as_list(inj->errs), voxgig_new_string(buf));
1294
+ return voxgig_new_undef();
1295
+ }
1296
+ inj->keyI = inj->keys.len;
1297
+ voxgig_inj_setval(inj, inj->dparent, 2);
1298
+
1299
+ /* slice path to drop last. */
1300
+ if (inj->path.len > 0) {
1301
+ free(inj->path.data[inj->path.len - 1]);
1302
+ inj->path.len--;
1303
+ }
1304
+ free(inj->key);
1305
+ inj->key = inj->path.len > 0 ? xstrdup_t(inj->path.data[inj->path.len - 1]) : xstrdup_t("");
1306
+
1307
+ voxgig_list* pl = voxgig_as_list(inj->parent);
1308
+ voxgig_value* tvals = voxgig_new_list();
1309
+ for (size_t i = 1; i < pl->len; i++)
1310
+ voxgig_list_push(voxgig_as_list(tvals), voxgig_retain(pl->items[i]));
1311
+ if (voxgig_list_len(voxgig_as_list(tvals)) == 0) {
1312
+ voxgig_value* lst = voxgig_new_list();
1313
+ for (size_t i = 1; i + 1 < inj->path.len; i++)
1314
+ voxgig_list_push(voxgig_as_list(lst), voxgig_new_string(inj->path.data[i]));
1315
+ char* ps = voxgig_pathify(lst, 0, 0);
1316
+ voxgig_release(lst);
1317
+ char buf[512];
1318
+ snprintf(buf, sizeof(buf), "The $ONE validator at field %s must have at least one argument.",
1319
+ ps);
1320
+ free(ps);
1321
+ voxgig_list_push(voxgig_as_list(inj->errs), voxgig_new_string(buf));
1322
+ voxgig_release(tvals);
1323
+ return voxgig_new_undef();
1324
+ }
1325
+
1326
+ voxgig_list* tvl = voxgig_as_list(tvals);
1327
+ for (size_t i = 0; i < tvl->len; i++) {
1328
+ voxgig_value* tval = tvl->items[i];
1329
+ /* vstore = merge([{}, store], 1); vstore.$TOP = inj.dparent */
1330
+ voxgig_value* mlist = voxgig_new_list();
1331
+ voxgig_list_push(voxgig_as_list(mlist), voxgig_new_map());
1332
+ voxgig_list_push(voxgig_as_list(mlist), voxgig_retain(store));
1333
+ voxgig_value* vstore = voxgig_merge(mlist, 1);
1334
+ voxgig_release(mlist);
1335
+ voxgig_map_set(voxgig_as_map(vstore), "$TOP",
1336
+ inj->dparent ? voxgig_retain(inj->dparent) : voxgig_new_undef());
1337
+
1338
+ voxgig_injection* sub = voxgig_inj_new(NULL, NULL);
1339
+ sub->extra = vstore;
1340
+ sub->errs = voxgig_new_list();
1341
+ sub->meta = voxgig_retain(inj->meta);
1342
+ voxgig_value* vcurrent = voxgig_validate(inj->dparent, tval, sub);
1343
+ voxgig_inj_setval(inj, vcurrent, -2);
1344
+ voxgig_release(vcurrent);
1345
+
1346
+ size_t terrlen = voxgig_list_len(voxgig_as_list(sub->errs));
1347
+ voxgig_inj_free(sub);
1348
+ voxgig_release(vstore);
1349
+ if (terrlen == 0) {
1350
+ voxgig_release(tvals);
1351
+ return voxgig_new_undef();
1352
+ }
1353
+ }
1354
+ /* All failed: build "one of <vals>" needtype and push V0210-style msg. */
1355
+ size_t tvc = voxgig_list_len(voxgig_as_list(tvals));
1356
+ char needtype[1024];
1357
+ needtype[0] = '\0';
1358
+ if (tvc > 1)
1359
+ strcat(needtype, "one of ");
1360
+ bool first_tv = true;
1361
+ voxgig_list* tvl_ = voxgig_as_list(tvals);
1362
+ for (size_t i = 0; i < tvl_->len; i++) {
1363
+ char* s = voxgig_stringify(tvl_->items[i], -1);
1364
+ /* Lower-case any `$NAME` -> name for human readability (R_TRANSFORM_NAME). */
1365
+ size_t sl = strlen(s);
1366
+ char* ls = (char*)malloc(sl + 1);
1367
+ size_t lw = 0;
1368
+ for (size_t k = 0; k < sl; k++) {
1369
+ if (k + 2 < sl && s[k] == '`' && s[k + 1] == '$' && s[k + 2] >= 'A' && s[k + 2] <= 'Z') {
1370
+ /* find closing ` */
1371
+ size_t e = k + 2;
1372
+ while (e < sl && s[e] >= 'A' && s[e] <= 'Z')
1373
+ e++;
1374
+ if (e < sl && s[e] == '`') {
1375
+ for (size_t q = k + 2; q < e; q++)
1376
+ ls[lw++] = (char)(s[q] - 'A' + 'a');
1377
+ k = e;
1378
+ continue;
1379
+ }
1380
+ }
1381
+ ls[lw++] = s[k];
1382
+ }
1383
+ ls[lw] = '\0';
1384
+ free(s);
1385
+ size_t cur = strlen(needtype);
1386
+ if (cur + lw + 4 < sizeof(needtype)) {
1387
+ if (!first_tv)
1388
+ strcat(needtype, ", ");
1389
+ strcat(needtype, ls);
1390
+ first_tv = false;
1391
+ }
1392
+ free(ls);
1393
+ }
1394
+ voxgig_value* msg =
1395
+ _invalid_type_msg(&inj->path, needtype, voxgig_typify(inj->dparent), inj->dparent);
1396
+ voxgig_list_push(voxgig_as_list(inj->errs), msg);
1397
+ voxgig_release(tvals);
1398
+ return voxgig_new_undef();
1399
+ }
1400
+
1401
+ static voxgig_value* va_EXACT(voxgig_injection* inj, voxgig_value* val, const char* ref,
1402
+ voxgig_value* store, void* ud) {
1403
+ (void)val;
1404
+ (void)ref;
1405
+ (void)store;
1406
+ (void)ud;
1407
+ if (inj->mode != VOXGIG_M_VAL) {
1408
+ voxgig_value* keyv = voxgig_new_string(inj->key);
1409
+ voxgig_delprop(inj->parent, keyv);
1410
+ voxgig_release(keyv);
1411
+ return voxgig_new_undef();
1412
+ }
1413
+ if (!voxgig_is_list(inj->parent) || inj->keyI != 0) {
1414
+ voxgig_list_push(voxgig_as_list(inj->errs),
1415
+ voxgig_new_string("$EXACT must be first element of array."));
1416
+ return voxgig_new_undef();
1417
+ }
1418
+ inj->keyI = inj->keys.len;
1419
+ voxgig_inj_setval(inj, inj->dparent, 2);
1420
+ if (inj->path.len > 0) {
1421
+ free(inj->path.data[inj->path.len - 1]);
1422
+ inj->path.len--;
1423
+ }
1424
+ free(inj->key);
1425
+ inj->key = inj->path.len > 0 ? xstrdup_t(inj->path.data[inj->path.len - 1]) : xstrdup_t("");
1426
+ voxgig_list* pl = voxgig_as_list(inj->parent);
1427
+ if (pl->len <= 1) {
1428
+ voxgig_list_push(voxgig_as_list(inj->errs),
1429
+ voxgig_new_string("$EXACT must have at least one argument."));
1430
+ return voxgig_new_undef();
1431
+ }
1432
+ char* curstr = NULL;
1433
+ for (size_t i = 1; i < pl->len; i++) {
1434
+ voxgig_value* tval = pl->items[i];
1435
+ bool match = voxgig_equals(tval, inj->dparent);
1436
+ if (!match && voxgig_is_node(tval)) {
1437
+ if (!curstr)
1438
+ curstr = voxgig_stringify(inj->dparent, -1);
1439
+ char* tvs = voxgig_stringify(tval, -1);
1440
+ if (strcmp(tvs, curstr) == 0)
1441
+ match = true;
1442
+ free(tvs);
1443
+ }
1444
+ if (match) {
1445
+ free(curstr);
1446
+ return voxgig_new_undef();
1447
+ }
1448
+ }
1449
+ free(curstr);
1450
+ /* Build "exactly equal to <vals>" needtype string. */
1451
+ size_t tvc = pl->len > 1 ? pl->len - 1 : 0;
1452
+ char needtype[1024];
1453
+ needtype[0] = '\0';
1454
+ if (inj->path.len <= 1)
1455
+ strcat(needtype, "value ");
1456
+ strcat(needtype, "exactly equal to ");
1457
+ if (tvc > 1)
1458
+ strcat(needtype, "one of ");
1459
+ bool first_tv = true;
1460
+ for (size_t i = 1; i < pl->len; i++) {
1461
+ char* s = voxgig_stringify(pl->items[i], -1);
1462
+ size_t slen = strlen(s);
1463
+ size_t cur = strlen(needtype);
1464
+ if (cur + slen + 4 < sizeof(needtype)) {
1465
+ if (!first_tv)
1466
+ strcat(needtype, ", ");
1467
+ strcat(needtype, s);
1468
+ first_tv = false;
1469
+ }
1470
+ free(s);
1471
+ }
1472
+ voxgig_value* msg =
1473
+ _invalid_type_msg(&inj->path, needtype, voxgig_typify(inj->dparent), inj->dparent);
1474
+ voxgig_list_push(voxgig_as_list(inj->errs), msg);
1475
+ return voxgig_new_undef();
1476
+ }
1477
+
1478
+ /* ===========================================================================
1479
+ * Validation modifier
1480
+ * ===========================================================================*/
1481
+
1482
+ static void _validation(voxgig_value* pval, voxgig_value* key, voxgig_value* parent,
1483
+ voxgig_injection* inj, voxgig_value* store, void* ud) {
1484
+ (void)store;
1485
+ (void)ud;
1486
+ if (!inj)
1487
+ return;
1488
+ if (pval && voxgig_is_skip(pval))
1489
+ return;
1490
+
1491
+ /* exact = inj.meta[`$EXACT`] */
1492
+ voxgig_value* bex = voxgig_new_string("`$EXACT`");
1493
+ voxgig_value* exv = voxgig_getprop(inj->meta, bex, NULL);
1494
+ voxgig_release(bex);
1495
+ bool exact = voxgig_is_bool(exv) && voxgig_as_bool(exv);
1496
+ voxgig_release(exv);
1497
+
1498
+ voxgig_value* cp = voxgig_lookup(inj->dparent, key);
1499
+ voxgig_value* cval = cp ? voxgig_retain(cp) : voxgig_new_undef();
1500
+ bool cval_undef = !cval || voxgig_is_undef(cval);
1501
+ if (!exact && cval_undef) {
1502
+ voxgig_release(cval);
1503
+ return;
1504
+ }
1505
+
1506
+ int ptype = voxgig_typify(pval);
1507
+ /* Skip if pval is a residual command string. */
1508
+ if ((ptype & VOXGIG_T_STRING) && pval && strchr(voxgig_as_string(pval), '$')) {
1509
+ voxgig_release(cval);
1510
+ return;
1511
+ }
1512
+ int ctype = voxgig_typify(cval);
1513
+ if (ptype != ctype && pval && !voxgig_is_undef(pval)) {
1514
+ voxgig_value* msg = _invalid_type_msg(&inj->path, voxgig_typename(ptype), ctype, cval);
1515
+ voxgig_list_push(voxgig_as_list(inj->errs), msg);
1516
+ voxgig_release(cval);
1517
+ return;
1518
+ }
1519
+
1520
+ if (voxgig_is_map(cval)) {
1521
+ if (!voxgig_is_map(pval)) {
1522
+ voxgig_value* msg = _invalid_type_msg(&inj->path, voxgig_typename(ptype), ctype, cval);
1523
+ voxgig_list_push(voxgig_as_list(inj->errs), msg);
1524
+ voxgig_release(cval);
1525
+ return;
1526
+ }
1527
+ voxgig_strvec ckeys = voxgig_keysof(cval);
1528
+ voxgig_strvec pkeys = voxgig_keysof(pval);
1529
+ voxgig_value* bopen = voxgig_new_string("`$OPEN`");
1530
+ voxgig_value* openv = voxgig_getprop(pval, bopen, NULL);
1531
+ bool is_open = voxgig_is_bool(openv) && voxgig_as_bool(openv);
1532
+ voxgig_release(openv);
1533
+ if (pkeys.len > 0 && !is_open) {
1534
+ /* Closed object: gather badkeys. */
1535
+ char buf[4096];
1536
+ buf[0] = '\0';
1537
+ bool first = true;
1538
+ for (size_t i = 0; i < ckeys.len; i++) {
1539
+ voxgig_value* kv = voxgig_new_string(ckeys.data[i]);
1540
+ /* Literal presence: _validation needs to know if the SHAPE declares
1541
+ this key, regardless of whether validator stored null in the slot.
1542
+ Group A's haskey would miss null-valued slots. */
1543
+ bool has = voxgig_lookup(pval, kv) != NULL;
1544
+ voxgig_release(kv);
1545
+ if (!has) {
1546
+ if (!first)
1547
+ strcat(buf, ", ");
1548
+ strcat(buf, ckeys.data[i]);
1549
+ first = false;
1550
+ }
1551
+ }
1552
+ if (buf[0] != '\0') {
1553
+ voxgig_value* lst = voxgig_new_list();
1554
+ for (size_t i = 1; i < inj->path.len; i++)
1555
+ voxgig_list_push(voxgig_as_list(lst), voxgig_new_string(inj->path.data[i]));
1556
+ char* ps = voxgig_pathify(lst, 0, 0);
1557
+ voxgig_release(lst);
1558
+ char full[4500];
1559
+ snprintf(full, sizeof(full), "Unexpected keys at field %s: %s", ps, buf);
1560
+ free(ps);
1561
+ voxgig_list_push(voxgig_as_list(inj->errs), voxgig_new_string(full));
1562
+ }
1563
+ } else {
1564
+ /* Open: merge cval into pval. */
1565
+ voxgig_value* ml = voxgig_new_list();
1566
+ voxgig_list_push(voxgig_as_list(ml), voxgig_retain(pval));
1567
+ voxgig_list_push(voxgig_as_list(ml), voxgig_retain(cval));
1568
+ voxgig_value* m = voxgig_merge(ml, VOXGIG_MAXDEPTH);
1569
+ voxgig_release(ml);
1570
+ voxgig_release(m);
1571
+ if (voxgig_is_node(pval))
1572
+ voxgig_delprop(pval, bopen);
1573
+ }
1574
+ voxgig_release(bopen);
1575
+ voxgig_strvec_free(&ckeys);
1576
+ voxgig_strvec_free(&pkeys);
1577
+ } else if (voxgig_is_list(cval)) {
1578
+ if (!voxgig_is_list(pval)) {
1579
+ voxgig_value* msg = _invalid_type_msg(&inj->path, voxgig_typename(ptype), ctype, cval);
1580
+ voxgig_list_push(voxgig_as_list(inj->errs), msg);
1581
+ }
1582
+ } else if (exact) {
1583
+ if (!voxgig_equals(cval, pval)) {
1584
+ voxgig_value* lst = voxgig_new_list();
1585
+ for (size_t i = 1; i < inj->path.len; i++)
1586
+ voxgig_list_push(voxgig_as_list(lst), voxgig_new_string(inj->path.data[i]));
1587
+ char* ps = voxgig_pathify(lst, 0, 0);
1588
+ voxgig_release(lst);
1589
+ char* cs = voxgig_stringify(cval, -1);
1590
+ char* psv = voxgig_stringify(pval, -1);
1591
+ size_t bufsz = strlen(ps) + strlen(cs) + strlen(psv) + 64;
1592
+ char* buf = (char*)malloc(bufsz);
1593
+ if (inj->path.len > 1)
1594
+ snprintf(buf, bufsz, "Value at field %s: %s should equal %s.", ps, cs, psv);
1595
+ else
1596
+ snprintf(buf, bufsz, "Value %s should equal %s.", cs, psv);
1597
+ voxgig_list_push(voxgig_as_list(inj->errs), voxgig_new_string(buf));
1598
+ free(buf);
1599
+ free(ps);
1600
+ free(cs);
1601
+ free(psv);
1602
+ }
1603
+ } else {
1604
+ /* Spec value is a default; copy data over. */
1605
+ voxgig_setprop(parent, key, cval);
1606
+ }
1607
+ voxgig_release(cval);
1608
+ }
1609
+
1610
+ /* ===========================================================================
1611
+ * Validate handler (R_META_PATH detection)
1612
+ * ===========================================================================*/
1613
+
1614
+ static voxgig_value* voxgig_validatehandler(voxgig_injection* inj, voxgig_value* val,
1615
+ const char* ref, voxgig_value* store, void* ud) {
1616
+ (void)store;
1617
+ (void)ud;
1618
+ if (ref) {
1619
+ const char* dol = strchr(ref, '$');
1620
+ if (dol && dol != ref && (dol[1] == '=' || dol[1] == '~') && dol[2] != '\0') {
1621
+ char sep = dol[1];
1622
+ if (sep == '=') {
1623
+ voxgig_value* pair = voxgig_new_list();
1624
+ voxgig_list_push(voxgig_as_list(pair), voxgig_new_string("`$EXACT`"));
1625
+ voxgig_list_push(voxgig_as_list(pair), val ? voxgig_retain(val) : voxgig_new_undef());
1626
+ voxgig_inj_setval(inj, pair, 0);
1627
+ voxgig_release(pair);
1628
+ } else {
1629
+ voxgig_inj_setval(inj, val, 0);
1630
+ }
1631
+ inj->keyI = 0;
1632
+ inj->keyI_neg = true;
1633
+ return voxgig_new_skip();
1634
+ }
1635
+ }
1636
+ /* Delegate to inject-handler. */
1637
+ voxgig_value* out = val ? voxgig_retain(val) : voxgig_new_undef();
1638
+ bool iscmd = voxgig_is_injector(val) && (ref == NULL || ref[0] == '$');
1639
+ if (iscmd) {
1640
+ voxgig_release(out);
1641
+ out = val->as.fn.fn.inj(inj, val, ref, store, val->as.fn.ud);
1642
+ } else if (inj->mode == VOXGIG_M_VAL && inj->full) {
1643
+ voxgig_inj_setval(inj, val, 0);
1644
+ }
1645
+ return out;
1646
+ }
1647
+
1648
+ /* Spec wrapper (returns origspec). */
1649
+ static voxgig_value* spec_fn_impl(voxgig_injection* inj, voxgig_value* val, const char* ref,
1650
+ voxgig_value* store, void* ud) {
1651
+ (void)inj;
1652
+ (void)val;
1653
+ (void)ref;
1654
+ (void)store;
1655
+ return voxgig_retain((voxgig_value*)ud);
1656
+ }
1657
+
1658
+ /* $BT / $DS / $WHEN runtime helpers (returned via store as injector calls). */
1659
+ static voxgig_value* tx_BT(voxgig_injection* inj, voxgig_value* val, const char* ref,
1660
+ voxgig_value* store, void* ud) {
1661
+ (void)inj;
1662
+ (void)val;
1663
+ (void)ref;
1664
+ (void)store;
1665
+ (void)ud;
1666
+ return voxgig_new_string("`");
1667
+ }
1668
+ static voxgig_value* tx_DS(voxgig_injection* inj, voxgig_value* val, const char* ref,
1669
+ voxgig_value* store, void* ud) {
1670
+ (void)inj;
1671
+ (void)val;
1672
+ (void)ref;
1673
+ (void)store;
1674
+ (void)ud;
1675
+ return voxgig_new_string("$");
1676
+ }
1677
+ static voxgig_value* tx_WHEN(voxgig_injection* inj, voxgig_value* val, const char* ref,
1678
+ voxgig_value* store, void* ud) {
1679
+ (void)inj;
1680
+ (void)val;
1681
+ (void)ref;
1682
+ (void)store;
1683
+ (void)ud;
1684
+ /* ISO-8601 UTC timestamp (best effort). */
1685
+ time_t t = time(NULL);
1686
+ struct tm* tm = gmtime(&t);
1687
+ char buf[64];
1688
+ strftime(buf, sizeof(buf), "%Y-%m-%dT%H:%M:%S.000Z", tm);
1689
+ return voxgig_new_string(buf);
1690
+ }
1691
+
1692
+ /* ===========================================================================
1693
+ * transform
1694
+ * ===========================================================================*/
1695
+
1696
+ voxgig_value* voxgig_transform(voxgig_value* data, voxgig_value* spec, voxgig_injection* injdef) {
1697
+ voxgig_value* origspec = spec;
1698
+ voxgig_value* spec_clone = voxgig_clone(spec);
1699
+
1700
+ voxgig_value* errs = NULL;
1701
+ bool collect = false;
1702
+ voxgig_value* injdef_modify = NULL;
1703
+ voxgig_value* injdef_handler = NULL;
1704
+ voxgig_value* injdef_meta = NULL;
1705
+ voxgig_value* injdef_extra = NULL;
1706
+
1707
+ if (injdef) {
1708
+ if (injdef->errs) {
1709
+ errs = voxgig_retain(injdef->errs);
1710
+ collect = true;
1711
+ }
1712
+ if (injdef->modify_val)
1713
+ injdef_modify = voxgig_retain(injdef->modify_val);
1714
+ if (injdef->handler_val)
1715
+ injdef_handler = voxgig_retain(injdef->handler_val);
1716
+ if (injdef->meta)
1717
+ injdef_meta = voxgig_retain(injdef->meta);
1718
+ if (injdef->extra)
1719
+ injdef_extra = injdef->extra; /* borrowed */
1720
+ }
1721
+ if (!errs)
1722
+ errs = voxgig_new_list();
1723
+
1724
+ /* extra split into extraTransforms (keys starting with $) and extraData. */
1725
+ voxgig_value* extraTransforms = voxgig_new_map();
1726
+ voxgig_value* extraData = voxgig_new_map();
1727
+ if (injdef_extra && voxgig_is_map(injdef_extra)) {
1728
+ voxgig_map* em = voxgig_as_map(injdef_extra);
1729
+ for (size_t i = 0; i < em->len; i++) {
1730
+ const char* k = em->entries[i].key;
1731
+ voxgig_value* v = em->entries[i].value;
1732
+ if (k[0] == '$')
1733
+ voxgig_map_set(voxgig_as_map(extraTransforms), k, voxgig_retain(v));
1734
+ else
1735
+ voxgig_map_set(voxgig_as_map(extraData), k, voxgig_retain(v));
1736
+ }
1737
+ }
1738
+
1739
+ /* dataClone = merge([extraData (or undef if empty), clone(data)]) */
1740
+ voxgig_value* ml = voxgig_new_list();
1741
+ if (!voxgig_isempty(extraData))
1742
+ voxgig_list_push(voxgig_as_list(ml), voxgig_clone(extraData));
1743
+ voxgig_list_push(voxgig_as_list(ml), voxgig_clone(data));
1744
+ voxgig_value* dataClone = voxgig_merge(ml, VOXGIG_MAXDEPTH);
1745
+ voxgig_release(ml);
1746
+
1747
+ /* Build store. */
1748
+ voxgig_value* builtins = voxgig_new_map();
1749
+ voxgig_map_set(voxgig_as_map(builtins), "$TOP", dataClone);
1750
+ /* $SPEC closure */
1751
+ voxgig_value* spec_fn = voxgig_new_injector(spec_fn_impl, origspec);
1752
+ voxgig_map_set(voxgig_as_map(builtins), "$SPEC", spec_fn);
1753
+ voxgig_map_set(voxgig_as_map(builtins), "$BT", voxgig_new_injector(tx_BT, NULL));
1754
+ voxgig_map_set(voxgig_as_map(builtins), "$DS", voxgig_new_injector(tx_DS, NULL));
1755
+ voxgig_map_set(voxgig_as_map(builtins), "$WHEN", voxgig_new_injector(tx_WHEN, NULL));
1756
+ voxgig_map_set(voxgig_as_map(builtins), "$DELETE", voxgig_new_injector(tx_DELETE, NULL));
1757
+ voxgig_map_set(voxgig_as_map(builtins), "$COPY", voxgig_new_injector(tx_COPY, NULL));
1758
+ voxgig_map_set(voxgig_as_map(builtins), "$KEY", voxgig_new_injector(tx_KEY, NULL));
1759
+ voxgig_map_set(voxgig_as_map(builtins), "$ANNO", voxgig_new_injector(tx_ANNO, NULL));
1760
+ voxgig_map_set(voxgig_as_map(builtins), "$MERGE", voxgig_new_injector(tx_MERGE, NULL));
1761
+ voxgig_map_set(voxgig_as_map(builtins), "$EACH", voxgig_new_injector(tx_EACH, NULL));
1762
+ voxgig_map_set(voxgig_as_map(builtins), "$PACK", voxgig_new_injector(tx_PACK, NULL));
1763
+ voxgig_map_set(voxgig_as_map(builtins), "$REF", voxgig_new_injector(tx_REF, NULL));
1764
+ voxgig_map_set(voxgig_as_map(builtins), "$FORMAT", voxgig_new_injector(tx_FORMAT, NULL));
1765
+ voxgig_map_set(voxgig_as_map(builtins), "$APPLY", voxgig_new_injector(tx_APPLY, NULL));
1766
+
1767
+ voxgig_value* errwrap = voxgig_new_map();
1768
+ voxgig_map_set(voxgig_as_map(errwrap), "$ERRS", voxgig_retain(errs));
1769
+
1770
+ voxgig_value* sml = voxgig_new_list();
1771
+ voxgig_list_push(voxgig_as_list(sml), builtins);
1772
+ voxgig_list_push(voxgig_as_list(sml), extraTransforms);
1773
+ voxgig_list_push(voxgig_as_list(sml), errwrap);
1774
+ voxgig_value* store = voxgig_merge(sml, 1);
1775
+ voxgig_release(sml);
1776
+
1777
+ /* Pass the (mode=0) config-bag injdef so inject() carries over caller settings
1778
+ while initialising as root. */
1779
+ voxgig_value* out = voxgig_inject(spec_clone, store, injdef);
1780
+
1781
+ bool generr = voxgig_list_len(voxgig_as_list(errs)) > 0 && !collect;
1782
+ if (generr) {
1783
+ /* "throw" — emit error to stderr and return undef? In TS, throws.
1784
+ For C, write the joined message into errs and abort via a longer-term
1785
+ approach. For now, return out and the caller can inspect errs. */
1786
+ }
1787
+
1788
+ voxgig_release(spec_clone);
1789
+ voxgig_release(store);
1790
+ voxgig_release(errs);
1791
+ voxgig_release(extraData);
1792
+ if (injdef_modify)
1793
+ voxgig_release(injdef_modify);
1794
+ if (injdef_handler)
1795
+ voxgig_release(injdef_handler);
1796
+ if (injdef_meta)
1797
+ voxgig_release(injdef_meta);
1798
+
1799
+ return out;
1800
+ }
1801
+
1802
+ /* ===========================================================================
1803
+ * validate
1804
+ * ===========================================================================*/
1805
+
1806
+ voxgig_value* voxgig_validate(voxgig_value* data, voxgig_value* spec, voxgig_injection* injdef) {
1807
+ voxgig_value* errs = NULL;
1808
+ bool collect = false;
1809
+ voxgig_value* meta_in = NULL;
1810
+ voxgig_value* extra_in = NULL;
1811
+
1812
+ if (injdef) {
1813
+ if (injdef->errs) {
1814
+ errs = voxgig_retain(injdef->errs);
1815
+ collect = true;
1816
+ }
1817
+ if (injdef->meta)
1818
+ meta_in = voxgig_retain(injdef->meta);
1819
+ if (injdef->extra)
1820
+ extra_in = injdef->extra;
1821
+ }
1822
+ if (!errs)
1823
+ errs = voxgig_new_list();
1824
+ if (!meta_in)
1825
+ meta_in = voxgig_new_map();
1826
+
1827
+ voxgig_value* bex = voxgig_new_string("`$EXACT`");
1828
+ if (!voxgig_haskey(meta_in, bex)) {
1829
+ voxgig_map_set(voxgig_as_map(meta_in), "`$EXACT`", voxgig_new_bool(false));
1830
+ }
1831
+ voxgig_release(bex);
1832
+
1833
+ /* Build validator store. */
1834
+ voxgig_value* m1 = voxgig_new_map();
1835
+ voxgig_map_set(voxgig_as_map(m1), "$DELETE", voxgig_new_null());
1836
+ voxgig_map_set(voxgig_as_map(m1), "$COPY", voxgig_new_null());
1837
+ voxgig_map_set(voxgig_as_map(m1), "$KEY", voxgig_new_null());
1838
+ voxgig_map_set(voxgig_as_map(m1), "$META", voxgig_new_null());
1839
+ voxgig_map_set(voxgig_as_map(m1), "$MERGE", voxgig_new_null());
1840
+ voxgig_map_set(voxgig_as_map(m1), "$EACH", voxgig_new_null());
1841
+ voxgig_map_set(voxgig_as_map(m1), "$PACK", voxgig_new_null());
1842
+ voxgig_map_set(voxgig_as_map(m1), "$STRING", voxgig_new_injector(va_STRING, NULL));
1843
+ voxgig_map_set(voxgig_as_map(m1), "$NUMBER", voxgig_new_injector(va_TYPE, NULL));
1844
+ voxgig_map_set(voxgig_as_map(m1), "$INTEGER", voxgig_new_injector(va_TYPE, NULL));
1845
+ voxgig_map_set(voxgig_as_map(m1), "$DECIMAL", voxgig_new_injector(va_TYPE, NULL));
1846
+ voxgig_map_set(voxgig_as_map(m1), "$BOOLEAN", voxgig_new_injector(va_TYPE, NULL));
1847
+ voxgig_map_set(voxgig_as_map(m1), "$NULL", voxgig_new_injector(va_TYPE, NULL));
1848
+ voxgig_map_set(voxgig_as_map(m1), "$NIL", voxgig_new_injector(va_TYPE, NULL));
1849
+ voxgig_map_set(voxgig_as_map(m1), "$MAP", voxgig_new_injector(va_TYPE, NULL));
1850
+ voxgig_map_set(voxgig_as_map(m1), "$LIST", voxgig_new_injector(va_TYPE, NULL));
1851
+ voxgig_map_set(voxgig_as_map(m1), "$FUNCTION", voxgig_new_injector(va_TYPE, NULL));
1852
+ voxgig_map_set(voxgig_as_map(m1), "$INSTANCE", voxgig_new_injector(va_TYPE, NULL));
1853
+ voxgig_map_set(voxgig_as_map(m1), "$ANY", voxgig_new_injector(va_ANY, NULL));
1854
+ voxgig_map_set(voxgig_as_map(m1), "$CHILD", voxgig_new_injector(va_CHILD, NULL));
1855
+ voxgig_map_set(voxgig_as_map(m1), "$ONE", voxgig_new_injector(va_ONE, NULL));
1856
+ voxgig_map_set(voxgig_as_map(m1), "$EXACT", voxgig_new_injector(va_EXACT, NULL));
1857
+
1858
+ voxgig_value* ext = extra_in ? voxgig_retain(extra_in) : voxgig_new_map();
1859
+ voxgig_value* errwrap = voxgig_new_map();
1860
+ voxgig_map_set(voxgig_as_map(errwrap), "$ERRS", voxgig_retain(errs));
1861
+
1862
+ voxgig_value* ml = voxgig_new_list();
1863
+ voxgig_list_push(voxgig_as_list(ml), m1);
1864
+ voxgig_list_push(voxgig_as_list(ml), ext);
1865
+ voxgig_list_push(voxgig_as_list(ml), errwrap);
1866
+ voxgig_value* store = voxgig_merge(ml, 1);
1867
+ voxgig_release(ml);
1868
+
1869
+ /* Wire up transform with our store / handler / modify. */
1870
+ voxgig_injection* sub = voxgig_inj_new(NULL, NULL);
1871
+ sub->mode = 0; /* config bag, not mid-recursion */
1872
+ voxgig_release(sub->errs);
1873
+ sub->errs = voxgig_retain(errs);
1874
+ voxgig_release(sub->meta);
1875
+ sub->meta = voxgig_retain(meta_in);
1876
+ sub->extra = store;
1877
+ voxgig_release(sub->modify_val);
1878
+ sub->modify_val = voxgig_new_modify(_validation, NULL);
1879
+ voxgig_release(sub->handler_val);
1880
+ sub->handler_val = voxgig_new_injector(voxgig_validatehandler, NULL);
1881
+
1882
+ voxgig_value* out = voxgig_transform(data, spec, sub);
1883
+
1884
+ bool generr = voxgig_list_len(voxgig_as_list(errs)) > 0 && !collect;
1885
+ (void)generr; /* Same as transform: keep errs accessible. */
1886
+
1887
+ voxgig_inj_free(sub);
1888
+ voxgig_release(store);
1889
+ voxgig_release(errs);
1890
+ voxgig_release(meta_in);
1891
+ return out;
1892
+ }
1893
+
1894
+ /* ===========================================================================
1895
+ * Select operators
1896
+ * ===========================================================================*/
1897
+
1898
+ static voxgig_value* sel_AND(voxgig_injection* inj, voxgig_value* val, const char* ref,
1899
+ voxgig_value* store, void* ud) {
1900
+ (void)val;
1901
+ (void)ref;
1902
+ (void)ud;
1903
+ if (inj->mode != VOXGIG_M_KEYPRE)
1904
+ return voxgig_new_undef();
1905
+ voxgig_value* keyv = voxgig_new_string(inj->key);
1906
+ voxgig_value* terms = voxgig_getprop(inj->parent, keyv, NULL);
1907
+ voxgig_release(keyv);
1908
+ /* ppath = slice(inj.path, -1); point = getpath(store, ppath) */
1909
+ voxgig_value* ppath = voxgig_new_list();
1910
+ for (size_t i = 0; i + 1 < inj->path.len; i++)
1911
+ voxgig_list_push(voxgig_as_list(ppath), voxgig_new_string(inj->path.data[i]));
1912
+ voxgig_value* point = voxgig_getpath(store, ppath, NULL);
1913
+
1914
+ voxgig_value* ml = voxgig_new_list();
1915
+ voxgig_list_push(voxgig_as_list(ml), voxgig_new_map());
1916
+ voxgig_list_push(voxgig_as_list(ml), voxgig_retain(store));
1917
+ voxgig_value* vstore = voxgig_merge(ml, 1);
1918
+ voxgig_release(ml);
1919
+ voxgig_map_set(voxgig_as_map(vstore), "$TOP", voxgig_retain(point));
1920
+
1921
+ if (voxgig_is_list(terms)) {
1922
+ voxgig_list* tl = voxgig_as_list(terms);
1923
+ for (size_t i = 0; i < tl->len; i++) {
1924
+ voxgig_value* term = tl->items[i];
1925
+ voxgig_injection* sub = voxgig_inj_new(NULL, NULL);
1926
+ sub->extra = vstore;
1927
+ voxgig_release(sub->errs);
1928
+ sub->errs = voxgig_new_list();
1929
+ voxgig_release(sub->meta);
1930
+ sub->meta = voxgig_retain(inj->meta);
1931
+ voxgig_value* out = voxgig_validate(point, term, sub);
1932
+ voxgig_release(out);
1933
+ if (voxgig_list_len(voxgig_as_list(sub->errs)) > 0) {
1934
+ voxgig_list_push(voxgig_as_list(inj->errs), voxgig_new_string("AND failed"));
1935
+ }
1936
+ voxgig_inj_free(sub);
1937
+ }
1938
+ }
1939
+ /* setprop(grandparent, gkey, point) */
1940
+ const char* gkey = inj->path.len >= 2 ? inj->path.data[inj->path.len - 2] : "";
1941
+ voxgig_value* gp = inj->nodes_len >= 2 ? inj->nodes[inj->nodes_len - 2] : NULL;
1942
+ voxgig_value* gkv = voxgig_new_string(gkey);
1943
+ if (gp)
1944
+ voxgig_setprop(gp, gkv, point);
1945
+ voxgig_release(gkv);
1946
+
1947
+ voxgig_release(terms);
1948
+ voxgig_release(ppath);
1949
+ voxgig_release(point);
1950
+ voxgig_release(vstore);
1951
+ return voxgig_new_undef();
1952
+ }
1953
+
1954
+ static voxgig_value* sel_OR(voxgig_injection* inj, voxgig_value* val, const char* ref,
1955
+ voxgig_value* store, void* ud) {
1956
+ (void)val;
1957
+ (void)ref;
1958
+ (void)ud;
1959
+ if (inj->mode != VOXGIG_M_KEYPRE)
1960
+ return voxgig_new_undef();
1961
+ voxgig_value* keyv = voxgig_new_string(inj->key);
1962
+ voxgig_value* terms = voxgig_getprop(inj->parent, keyv, NULL);
1963
+ voxgig_release(keyv);
1964
+ voxgig_value* ppath = voxgig_new_list();
1965
+ for (size_t i = 0; i + 1 < inj->path.len; i++)
1966
+ voxgig_list_push(voxgig_as_list(ppath), voxgig_new_string(inj->path.data[i]));
1967
+ voxgig_value* point = voxgig_getpath(store, ppath, NULL);
1968
+
1969
+ voxgig_value* ml = voxgig_new_list();
1970
+ voxgig_list_push(voxgig_as_list(ml), voxgig_new_map());
1971
+ voxgig_list_push(voxgig_as_list(ml), voxgig_retain(store));
1972
+ voxgig_value* vstore = voxgig_merge(ml, 1);
1973
+ voxgig_release(ml);
1974
+ voxgig_map_set(voxgig_as_map(vstore), "$TOP", voxgig_retain(point));
1975
+
1976
+ bool any_ok = false;
1977
+ if (voxgig_is_list(terms)) {
1978
+ voxgig_list* tl = voxgig_as_list(terms);
1979
+ for (size_t i = 0; i < tl->len; i++) {
1980
+ voxgig_value* term = tl->items[i];
1981
+ voxgig_injection* sub = voxgig_inj_new(NULL, NULL);
1982
+ sub->extra = vstore;
1983
+ voxgig_release(sub->errs);
1984
+ sub->errs = voxgig_new_list();
1985
+ voxgig_release(sub->meta);
1986
+ sub->meta = voxgig_retain(inj->meta);
1987
+ voxgig_value* out = voxgig_validate(point, term, sub);
1988
+ voxgig_release(out);
1989
+ if (voxgig_list_len(voxgig_as_list(sub->errs)) == 0) {
1990
+ any_ok = true;
1991
+ voxgig_inj_free(sub);
1992
+ break;
1993
+ }
1994
+ voxgig_inj_free(sub);
1995
+ }
1996
+ }
1997
+ if (any_ok) {
1998
+ const char* gkey = inj->path.len >= 2 ? inj->path.data[inj->path.len - 2] : "";
1999
+ voxgig_value* gp = inj->nodes_len >= 2 ? inj->nodes[inj->nodes_len - 2] : NULL;
2000
+ voxgig_value* gkv = voxgig_new_string(gkey);
2001
+ if (gp)
2002
+ voxgig_setprop(gp, gkv, point);
2003
+ voxgig_release(gkv);
2004
+ } else {
2005
+ voxgig_list_push(voxgig_as_list(inj->errs), voxgig_new_string("OR failed"));
2006
+ }
2007
+ voxgig_release(terms);
2008
+ voxgig_release(ppath);
2009
+ voxgig_release(point);
2010
+ voxgig_release(vstore);
2011
+ return voxgig_new_undef();
2012
+ }
2013
+
2014
+ static voxgig_value* sel_NOT(voxgig_injection* inj, voxgig_value* val, const char* ref,
2015
+ voxgig_value* store, void* ud) {
2016
+ (void)val;
2017
+ (void)ref;
2018
+ (void)ud;
2019
+ if (inj->mode != VOXGIG_M_KEYPRE)
2020
+ return voxgig_new_undef();
2021
+ voxgig_value* keyv = voxgig_new_string(inj->key);
2022
+ voxgig_value* term = voxgig_getprop(inj->parent, keyv, NULL);
2023
+ voxgig_release(keyv);
2024
+ voxgig_value* ppath = voxgig_new_list();
2025
+ for (size_t i = 0; i + 1 < inj->path.len; i++)
2026
+ voxgig_list_push(voxgig_as_list(ppath), voxgig_new_string(inj->path.data[i]));
2027
+ voxgig_value* point = voxgig_getpath(store, ppath, NULL);
2028
+
2029
+ voxgig_value* ml = voxgig_new_list();
2030
+ voxgig_list_push(voxgig_as_list(ml), voxgig_new_map());
2031
+ voxgig_list_push(voxgig_as_list(ml), voxgig_retain(store));
2032
+ voxgig_value* vstore = voxgig_merge(ml, 1);
2033
+ voxgig_release(ml);
2034
+ voxgig_map_set(voxgig_as_map(vstore), "$TOP", voxgig_retain(point));
2035
+
2036
+ voxgig_injection* sub = voxgig_inj_new(NULL, NULL);
2037
+ sub->extra = vstore;
2038
+ voxgig_release(sub->errs);
2039
+ sub->errs = voxgig_new_list();
2040
+ voxgig_release(sub->meta);
2041
+ sub->meta = voxgig_retain(inj->meta);
2042
+ voxgig_value* out = voxgig_validate(point, term, sub);
2043
+ voxgig_release(out);
2044
+ if (voxgig_list_len(voxgig_as_list(sub->errs)) == 0) {
2045
+ voxgig_list_push(voxgig_as_list(inj->errs), voxgig_new_string("NOT failed"));
2046
+ }
2047
+ voxgig_inj_free(sub);
2048
+
2049
+ const char* gkey = inj->path.len >= 2 ? inj->path.data[inj->path.len - 2] : "";
2050
+ voxgig_value* gp = inj->nodes_len >= 2 ? inj->nodes[inj->nodes_len - 2] : NULL;
2051
+ voxgig_value* gkv = voxgig_new_string(gkey);
2052
+ if (gp)
2053
+ voxgig_setprop(gp, gkv, point);
2054
+ voxgig_release(gkv);
2055
+
2056
+ voxgig_release(term);
2057
+ voxgig_release(ppath);
2058
+ voxgig_release(point);
2059
+ voxgig_release(vstore);
2060
+ return voxgig_new_undef();
2061
+ }
2062
+
2063
+ static int cmp_values(voxgig_value* a, voxgig_value* b) {
2064
+ if (voxgig_is_number(a) && voxgig_is_number(b)) {
2065
+ double da = voxgig_as_double(a);
2066
+ double db = voxgig_as_double(b);
2067
+ if (da < db)
2068
+ return -1;
2069
+ if (da > db)
2070
+ return 1;
2071
+ return 0;
2072
+ }
2073
+ if (voxgig_is_string(a) && voxgig_is_string(b))
2074
+ return strcmp(voxgig_as_string(a), voxgig_as_string(b));
2075
+ /* Fallback: stringify. */
2076
+ char* sa = voxgig_stringify(a, -1);
2077
+ char* sb = voxgig_stringify(b, -1);
2078
+ int r = strcmp(sa, sb);
2079
+ free(sa);
2080
+ free(sb);
2081
+ return r;
2082
+ }
2083
+
2084
+ static voxgig_value* sel_CMP(voxgig_injection* inj, voxgig_value* val, const char* ref,
2085
+ voxgig_value* store, void* ud) {
2086
+ (void)val;
2087
+ (void)ud;
2088
+ if (inj->mode != VOXGIG_M_KEYPRE)
2089
+ return voxgig_new_undef();
2090
+ voxgig_value* keyv = voxgig_new_string(inj->key);
2091
+ voxgig_value* term = voxgig_getprop(inj->parent, keyv, NULL);
2092
+ voxgig_release(keyv);
2093
+ voxgig_value* ppath = voxgig_new_list();
2094
+ for (size_t i = 0; i + 1 < inj->path.len; i++)
2095
+ voxgig_list_push(voxgig_as_list(ppath), voxgig_new_string(inj->path.data[i]));
2096
+ voxgig_value* point = voxgig_getpath(store, ppath, NULL);
2097
+
2098
+ bool pass = false;
2099
+ int c = cmp_values(point, term);
2100
+ if (strcmp(ref, "$GT") == 0)
2101
+ pass = c > 0;
2102
+ else if (strcmp(ref, "$LT") == 0)
2103
+ pass = c < 0;
2104
+ else if (strcmp(ref, "$GTE") == 0)
2105
+ pass = c >= 0;
2106
+ else if (strcmp(ref, "$LTE") == 0)
2107
+ pass = c <= 0;
2108
+ else if (strcmp(ref, "$LIKE") == 0) {
2109
+ char* ps = voxgig_stringify(point, -1);
2110
+ const char* termstr = voxgig_is_string(term) ? voxgig_as_string(term) : "";
2111
+ pass = voxgig_re_test(termstr, ps);
2112
+ free(ps);
2113
+ }
2114
+ const char* gkey = inj->path.len >= 2 ? inj->path.data[inj->path.len - 2] : "";
2115
+ voxgig_value* gp = inj->nodes_len >= 2 ? inj->nodes[inj->nodes_len - 2] : NULL;
2116
+ voxgig_value* gkv = voxgig_new_string(gkey);
2117
+ if (pass) {
2118
+ if (gp)
2119
+ voxgig_setprop(gp, gkv, point);
2120
+ } else {
2121
+ char buf[256];
2122
+ snprintf(buf, sizeof(buf), "CMP: %s failed", ref);
2123
+ voxgig_list_push(voxgig_as_list(inj->errs), voxgig_new_string(buf));
2124
+ }
2125
+ voxgig_release(gkv);
2126
+ voxgig_release(term);
2127
+ voxgig_release(ppath);
2128
+ voxgig_release(point);
2129
+ return voxgig_new_undef();
2130
+ }
2131
+
2132
+ /* ===========================================================================
2133
+ * select
2134
+ * ===========================================================================*/
2135
+
2136
+ /* walk callback to add `$OPEN` to every map in the query. */
2137
+ static voxgig_value* set_open_callback(voxgig_value* k, voxgig_value* v, voxgig_value* parent,
2138
+ voxgig_value* path, void* ud) {
2139
+ (void)k;
2140
+ (void)parent;
2141
+ (void)path;
2142
+ (void)ud;
2143
+ if (voxgig_is_map(v)) {
2144
+ voxgig_value* bk = voxgig_new_string("`$OPEN`");
2145
+ if (!voxgig_haskey(v, bk)) {
2146
+ voxgig_map_set(voxgig_as_map(v), "`$OPEN`", voxgig_new_bool(true));
2147
+ }
2148
+ voxgig_release(bk);
2149
+ }
2150
+ return v ? voxgig_retain(v) : voxgig_new_undef();
2151
+ }
2152
+
2153
+ voxgig_value* voxgig_select(voxgig_value* children, voxgig_value* query) {
2154
+ if (!voxgig_is_node(children))
2155
+ return voxgig_new_list();
2156
+
2157
+ /* Convert children to list, adding $KEY to each. */
2158
+ voxgig_value* child_list = voxgig_new_list();
2159
+ if (voxgig_is_map(children)) {
2160
+ voxgig_map* m = voxgig_as_map(children);
2161
+ for (size_t i = 0; i < m->len; i++) {
2162
+ voxgig_value* it = m->entries[i].value;
2163
+ if (voxgig_is_map(it)) {
2164
+ voxgig_map_set(voxgig_as_map(it), "$KEY", voxgig_new_string(m->entries[i].key));
2165
+ }
2166
+ voxgig_list_push(voxgig_as_list(child_list), voxgig_retain(it));
2167
+ }
2168
+ } else {
2169
+ voxgig_list* l = voxgig_as_list(children);
2170
+ for (size_t i = 0; i < l->len; i++) {
2171
+ voxgig_value* it = l->items[i];
2172
+ if (voxgig_is_map(it)) {
2173
+ voxgig_map_set(voxgig_as_map(it), "$KEY", voxgig_new_int((int64_t)i));
2174
+ }
2175
+ voxgig_list_push(voxgig_as_list(child_list), voxgig_retain(it));
2176
+ }
2177
+ }
2178
+
2179
+ /* extra = {$AND:..., $OR:..., $NOT:..., $GT/$LT/$GTE/$LTE/$LIKE:...} */
2180
+ voxgig_value* extra = voxgig_new_map();
2181
+ voxgig_map_set(voxgig_as_map(extra), "$AND", voxgig_new_injector(sel_AND, NULL));
2182
+ voxgig_map_set(voxgig_as_map(extra), "$OR", voxgig_new_injector(sel_OR, NULL));
2183
+ voxgig_map_set(voxgig_as_map(extra), "$NOT", voxgig_new_injector(sel_NOT, NULL));
2184
+ voxgig_map_set(voxgig_as_map(extra), "$GT", voxgig_new_injector(sel_CMP, NULL));
2185
+ voxgig_map_set(voxgig_as_map(extra), "$LT", voxgig_new_injector(sel_CMP, NULL));
2186
+ voxgig_map_set(voxgig_as_map(extra), "$GTE", voxgig_new_injector(sel_CMP, NULL));
2187
+ voxgig_map_set(voxgig_as_map(extra), "$LTE", voxgig_new_injector(sel_CMP, NULL));
2188
+ voxgig_map_set(voxgig_as_map(extra), "$LIKE", voxgig_new_injector(sel_CMP, NULL));
2189
+
2190
+ /* meta = {`$EXACT`: true} */
2191
+ voxgig_value* meta = voxgig_new_map();
2192
+ voxgig_map_set(voxgig_as_map(meta), "`$EXACT`", voxgig_new_bool(true));
2193
+
2194
+ /* q = clone(query); walk q to set `$OPEN` on every map. */
2195
+ voxgig_value* q = voxgig_clone(query);
2196
+ voxgig_value* walked = voxgig_walk(q, set_open_callback, NULL, VOXGIG_MAXDEPTH, NULL);
2197
+ voxgig_release(walked);
2198
+
2199
+ voxgig_value* results = voxgig_new_list();
2200
+ voxgig_list* cl = voxgig_as_list(child_list);
2201
+ for (size_t i = 0; i < cl->len; i++) {
2202
+ voxgig_value* child = cl->items[i];
2203
+ voxgig_injection* sub = voxgig_inj_new(NULL, NULL);
2204
+ voxgig_release(sub->errs);
2205
+ sub->errs = voxgig_new_list();
2206
+ voxgig_release(sub->meta);
2207
+ sub->meta = voxgig_retain(meta);
2208
+ sub->extra = extra;
2209
+ voxgig_value* qc = voxgig_clone(q);
2210
+ voxgig_value* out = voxgig_validate(child, qc, sub);
2211
+ voxgig_release(out);
2212
+ voxgig_release(qc);
2213
+ if (voxgig_list_len(voxgig_as_list(sub->errs)) == 0) {
2214
+ voxgig_list_push(voxgig_as_list(results), voxgig_retain(child));
2215
+ }
2216
+ voxgig_inj_free(sub);
2217
+ }
2218
+
2219
+ voxgig_release(child_list);
2220
+ voxgig_release(extra);
2221
+ voxgig_release(meta);
2222
+ voxgig_release(q);
2223
+ return results;
2224
+ }