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