@voxgig/sdkgen 4.47.0 → 4.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +12 -4
- 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/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 +175 -32
- 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 +96 -20
- 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/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/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 +219 -37
- 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/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/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/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/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/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/MediaUtility.js +32 -0
- 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/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/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/media.lua +36 -0
- 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 +78 -15
- 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/media.pm +29 -0
- 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/Media.php +29 -0
- package/project/.sdk/tm/php/utility/PrepareBody.php +7 -5
- 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/media.py +24 -0
- 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/media.rb +21 -0
- 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/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/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/Misc.scala +133 -13
- 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/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/MakeError.swift +4 -4
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeOptions.swift +7 -7
- 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/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/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 +96 -20
- 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 +12 -5
- 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.1 (elixir/lib/voxgig_struct.ex)
|
|
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 — Elixir port.
|
|
@@ -156,6 +159,7 @@ defmodule Voxgig.Struct do
|
|
|
156
159
|
|
|
157
160
|
@skip :vox_skip
|
|
158
161
|
@delete :vox_delete
|
|
162
|
+
@heldnull :vox_heldnull
|
|
159
163
|
def skip, do: @skip
|
|
160
164
|
def delete, do: @delete
|
|
161
165
|
def is_skip(v), do: v == @skip
|
|
@@ -231,7 +235,23 @@ defmodule Voxgig.Struct do
|
|
|
231
235
|
@r_inject_part ~r/`([^`]*)`/
|
|
232
236
|
@r_meta_path ~r/^([^$]+)\$([=~])(.+)$/
|
|
233
237
|
@r_transform_name ~r/`\$([A-Z]+)`/
|
|
234
|
-
@
|
|
238
|
+
@r_checker_name ~r/^\$[A-Z]+$/
|
|
239
|
+
# \z, not $: PCRE's $ also matches before a trailing newline.
|
|
240
|
+
@r_list_key ~r/^(0|-?[1-9][0-9]*)\z/
|
|
241
|
+
|
|
242
|
+
@condense_version 1
|
|
243
|
+
@condense_map 0
|
|
244
|
+
@condense_list 1
|
|
245
|
+
@condense_str 2
|
|
246
|
+
@condense_num 3
|
|
247
|
+
@condense_true 4
|
|
248
|
+
@condense_false 5
|
|
249
|
+
@condense_null 6
|
|
250
|
+
@s_condense "$condense"
|
|
251
|
+
@s_condsym "sym"
|
|
252
|
+
@s_condnode "node"
|
|
253
|
+
@s_condroot "root"
|
|
254
|
+
@condense_immutable "struct: condensed structures are immutable - expand() first, then modify the copy"
|
|
235
255
|
|
|
236
256
|
# ---------------------------------------------------------------------------
|
|
237
257
|
# Low-level helpers
|
|
@@ -277,18 +297,12 @@ defmodule Voxgig.Struct do
|
|
|
277
297
|
defp mapkey(k) when is_number(k), do: num_to_string(k)
|
|
278
298
|
defp mapkey(k), do: js_string(k)
|
|
279
299
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
defp
|
|
283
|
-
|
|
284
|
-
defp
|
|
285
|
-
|
|
286
|
-
{n, ""} -> n
|
|
287
|
-
_ -> nil
|
|
288
|
-
end
|
|
289
|
-
end
|
|
290
|
-
|
|
291
|
-
defp to_int(_), do: nil
|
|
300
|
+
# A list key's index, possibly negative: an integral number, or the string an
|
|
301
|
+
# integer prints as. "01", "+1", " 1", "1.0", "-0" and 1.5 are not list keys.
|
|
302
|
+
defp listidx_(k) when is_integer(k), do: k
|
|
303
|
+
defp listidx_(k) when is_float(k), do: if(is_intish(k), do: trunc(k), else: nil)
|
|
304
|
+
defp listidx_(k) when is_binary(k), do: if(Regex.match?(@r_list_key, k), do: String.to_integer(k), else: nil)
|
|
305
|
+
defp listidx_(_), do: nil
|
|
292
306
|
|
|
293
307
|
defp clz32(n0) do
|
|
294
308
|
n = Bitwise.band(n0, 0xFFFFFFFF)
|
|
@@ -415,52 +429,47 @@ defmodule Voxgig.Struct do
|
|
|
415
429
|
|
|
416
430
|
defp omap_del(pairs, k), do: Enum.reject(pairs, fn {kk, _} -> kk == k end)
|
|
417
431
|
|
|
432
|
+
# The value a node stores at key, or :error. A list reads only a non-negative
|
|
433
|
+
# list key, a map only a string or number key.
|
|
434
|
+
defp readprop_(val, key) do
|
|
435
|
+
cond do
|
|
436
|
+
islist(val) ->
|
|
437
|
+
case listidx_(key) do
|
|
438
|
+
ki when is_integer(ki) and ki >= 0 ->
|
|
439
|
+
items = list_items(val)
|
|
440
|
+
if ki < length(items), do: {:ok, Enum.at(items, ki)}, else: :error
|
|
441
|
+
|
|
442
|
+
_ ->
|
|
443
|
+
:error
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
ismap(val) and (is_binary(key) or is_number(key)) ->
|
|
447
|
+
omap_get(map_pairs(val), mapkey(key))
|
|
448
|
+
|
|
449
|
+
true ->
|
|
450
|
+
:error
|
|
451
|
+
end
|
|
452
|
+
end
|
|
453
|
+
|
|
418
454
|
def getprop(val, key, alt \\ nil) do
|
|
419
455
|
if val == nil or key == nil do
|
|
420
456
|
alt
|
|
421
457
|
else
|
|
422
|
-
out =
|
|
423
|
-
|
|
424
|
-
ismap(val) ->
|
|
425
|
-
case omap_get(map_pairs(val), mapkey(key)) do
|
|
426
|
-
{:ok, v} -> v
|
|
427
|
-
:error -> nil
|
|
428
|
-
end
|
|
429
|
-
|
|
430
|
-
islist(val) ->
|
|
431
|
-
ki = to_int(key)
|
|
432
|
-
items = if ki == nil, do: [], else: list_items(val)
|
|
433
|
-
if ki != nil and ki >= 0 and ki < length(items), do: Enum.at(items, ki), else: nil
|
|
434
|
-
|
|
435
|
-
true ->
|
|
436
|
-
nil
|
|
437
|
-
end
|
|
438
|
-
|
|
439
|
-
if out == nil, do: alt, else: out
|
|
458
|
+
out = lookup_(val, key)
|
|
459
|
+
if out == nil or out == @noarg, do: alt, else: out
|
|
440
460
|
end
|
|
441
461
|
end
|
|
442
462
|
|
|
443
463
|
defp lookup_(val, key) do
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
ismap(val) ->
|
|
449
|
-
case omap_get(map_pairs(val), mapkey(key)) do
|
|
450
|
-
{:ok, v} -> v
|
|
451
|
-
:error -> nil
|
|
452
|
-
end
|
|
453
|
-
|
|
454
|
-
islist(val) ->
|
|
455
|
-
ki = to_int(key)
|
|
456
|
-
items = if ki == nil, do: [], else: list_items(val)
|
|
457
|
-
if ki != nil and ki >= 0 and ki < length(items), do: Enum.at(items, ki), else: nil
|
|
458
|
-
|
|
459
|
-
true ->
|
|
460
|
-
nil
|
|
464
|
+
case readprop_(val, key) do
|
|
465
|
+
{:ok, v} -> v
|
|
466
|
+
:error -> nil
|
|
461
467
|
end
|
|
462
468
|
end
|
|
463
469
|
|
|
470
|
+
# Literal presence, beside lookup_: a nil the node holds is a null, not an absent key.
|
|
471
|
+
defp holds_(node, key), do: readprop_(node, key) != :error
|
|
472
|
+
|
|
464
473
|
def haskey(val \\ nil, key \\ nil), do: getprop(val, key) != nil
|
|
465
474
|
|
|
466
475
|
def getelem(val, key, alt \\ nil) do
|
|
@@ -468,20 +477,15 @@ defmodule Voxgig.Struct do
|
|
|
468
477
|
alt
|
|
469
478
|
else
|
|
470
479
|
out =
|
|
471
|
-
if
|
|
472
|
-
|
|
480
|
+
case if(islist(val), do: listidx_(key), else: nil) do
|
|
481
|
+
nil ->
|
|
482
|
+
nil
|
|
473
483
|
|
|
474
|
-
|
|
484
|
+
ki ->
|
|
475
485
|
items = list_items(val)
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
if nk >= 0 and nk < len, do: Enum.at(items, nk), else: nil
|
|
480
|
-
else
|
|
481
|
-
nil
|
|
482
|
-
end
|
|
483
|
-
else
|
|
484
|
-
nil
|
|
486
|
+
# A negative key counts from the end.
|
|
487
|
+
nk = if ki < 0, do: length(items) + ki, else: ki
|
|
488
|
+
if nk >= 0, do: Enum.at(items, nk), else: nil
|
|
485
489
|
end
|
|
486
490
|
|
|
487
491
|
if out == nil do
|
|
@@ -548,11 +552,13 @@ defmodule Voxgig.Struct do
|
|
|
548
552
|
parent
|
|
549
553
|
|
|
550
554
|
ismap(parent) ->
|
|
551
|
-
|
|
555
|
+
pairs = map_pairs(parent)
|
|
556
|
+
if condensedpairs_(pairs), do: raise(Voxgig.Struct.Error, message: @condense_immutable)
|
|
557
|
+
map_set_pairs(parent, omap_put(pairs, mapkey(key), val))
|
|
552
558
|
parent
|
|
553
559
|
|
|
554
560
|
islist(parent) ->
|
|
555
|
-
case
|
|
561
|
+
case listidx_(key) do
|
|
556
562
|
nil ->
|
|
557
563
|
parent
|
|
558
564
|
|
|
@@ -585,11 +591,13 @@ defmodule Voxgig.Struct do
|
|
|
585
591
|
parent
|
|
586
592
|
|
|
587
593
|
ismap(parent) ->
|
|
588
|
-
|
|
594
|
+
pairs = map_pairs(parent)
|
|
595
|
+
if condensedpairs_(pairs), do: raise(Voxgig.Struct.Error, message: @condense_immutable)
|
|
596
|
+
map_set_pairs(parent, omap_del(pairs, mapkey(key)))
|
|
589
597
|
parent
|
|
590
598
|
|
|
591
599
|
islist(parent) ->
|
|
592
|
-
case
|
|
600
|
+
case listidx_(key) do
|
|
593
601
|
nil ->
|
|
594
602
|
parent
|
|
595
603
|
|
|
@@ -707,7 +715,32 @@ defmodule Voxgig.Struct do
|
|
|
707
715
|
vlist_new(Enum.map(matches, fn groups -> vlist_new(Enum.map(groups, fn g -> g || "" end)) end))
|
|
708
716
|
end
|
|
709
717
|
|
|
710
|
-
def re_replace(
|
|
718
|
+
def re_replace(p, input, repl) do
|
|
719
|
+
str = if(is_binary(input), do: input, else: js_string(input))
|
|
720
|
+
|
|
721
|
+
cond do
|
|
722
|
+
is_function(repl) ->
|
|
723
|
+
Regex.replace(rx(p), str, fn whole, caps ->
|
|
724
|
+
js_string(repl.(vlist_new([whole | List.wrap(caps)])))
|
|
725
|
+
end)
|
|
726
|
+
|
|
727
|
+
true ->
|
|
728
|
+
# JS-style refs: $& is the whole match (\\0), $1..$9 are captures
|
|
729
|
+
# (\\1..); $$ is a literal $.
|
|
730
|
+
repl_s = if(is_binary(repl), do: repl, else: js_string(repl))
|
|
731
|
+
|
|
732
|
+
translated =
|
|
733
|
+
Regex.replace(~r/\$(\$|&|[1-9])/, repl_s, fn _, ref ->
|
|
734
|
+
case ref do
|
|
735
|
+
"$" -> "$"
|
|
736
|
+
"&" -> "\\0"
|
|
737
|
+
d -> "\\" <> d
|
|
738
|
+
end
|
|
739
|
+
end)
|
|
740
|
+
|
|
741
|
+
Regex.replace(rx(p), str, translated)
|
|
742
|
+
end
|
|
743
|
+
end
|
|
711
744
|
def re_escape(s), do: escre(s)
|
|
712
745
|
|
|
713
746
|
def escre(s \\ nil) do
|
|
@@ -1159,7 +1192,7 @@ defmodule Voxgig.Struct do
|
|
|
1159
1192
|
if oi >= lenlist do
|
|
1160
1193
|
out
|
|
1161
1194
|
else
|
|
1162
|
-
obj =
|
|
1195
|
+
obj = lookup_(objs, oi)
|
|
1163
1196
|
|
|
1164
1197
|
out2 =
|
|
1165
1198
|
if not isnode(obj) do
|
|
@@ -1254,56 +1287,74 @@ defmodule Voxgig.Struct do
|
|
|
1254
1287
|
def getpath(store, path, injdef \\ nil) do
|
|
1255
1288
|
parts =
|
|
1256
1289
|
cond do
|
|
1257
|
-
islist(path) -> list_items(path)
|
|
1290
|
+
islist(path) -> pathparts_(list_items(path))
|
|
1258
1291
|
is_binary(path) -> String.split(path, ".")
|
|
1259
|
-
is_number(path)
|
|
1292
|
+
is_number(path) -> [num_to_string(path)]
|
|
1260
1293
|
true -> nil
|
|
1261
1294
|
end
|
|
1262
1295
|
|
|
1263
|
-
|
|
1264
|
-
nil
|
|
1265
|
-
else
|
|
1266
|
-
has_inj = injdef != nil
|
|
1267
|
-
base = idef(injdef, "base")
|
|
1268
|
-
dparent = idef(injdef, "dparent")
|
|
1269
|
-
inj_meta = idef(injdef, "meta")
|
|
1270
|
-
inj_key = idef(injdef, "key")
|
|
1271
|
-
dpath = idef(injdef, "dpath")
|
|
1272
|
-
src = if iskey(base), do: getprop(store, base, store), else: store
|
|
1273
|
-
numparts = length(parts)
|
|
1274
|
-
|
|
1275
|
-
val =
|
|
1276
|
-
cond do
|
|
1277
|
-
path == nil or store == nil or (numparts == 1 and Enum.at(parts, 0) == @s_mt) or numparts == 0 ->
|
|
1278
|
-
src
|
|
1296
|
+
condensed = parts != nil and iscondensed(store)
|
|
1279
1297
|
|
|
1280
|
-
|
|
1281
|
-
|
|
1298
|
+
cond do
|
|
1299
|
+
parts == nil ->
|
|
1300
|
+
nil
|
|
1282
1301
|
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
case if(is_binary(Enum.at(parts, 0)), do: Regex.run(@r_meta_path, Enum.at(parts, 0)), else: nil) do
|
|
1288
|
-
[_, g1, _, g3] when inj_meta != nil and has_inj ->
|
|
1289
|
-
{getprop(inj_meta, g1), List.replace_at(parts, 0, g3)}
|
|
1302
|
+
# Reads only the nodes on the path. A base changes what the path
|
|
1303
|
+
# resolves against, so that read walks the expanded copy instead.
|
|
1304
|
+
condensed and idef(injdef, "base") == nil ->
|
|
1305
|
+
condensematerialise_(store, condensewalk_(store, lookup_(store, @s_condroot), parts))
|
|
1290
1306
|
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1307
|
+
true ->
|
|
1308
|
+
getpath_parts(if(condensed, do: expand(store), else: store), path, parts, injdef)
|
|
1309
|
+
end
|
|
1310
|
+
end
|
|
1294
1311
|
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1312
|
+
# A number part reads as it prints; any part neither string nor number misses.
|
|
1313
|
+
defp pathparts_(items) do
|
|
1314
|
+
if Enum.all?(items, &(is_binary(&1) or is_number(&1))), do: Enum.map(items, &mapkey/1), else: nil
|
|
1315
|
+
end
|
|
1298
1316
|
|
|
1299
|
-
|
|
1317
|
+
defp getpath_parts(store, path, parts, injdef) do
|
|
1318
|
+
has_inj = injdef != nil
|
|
1319
|
+
base = idef(injdef, "base")
|
|
1320
|
+
dparent = idef(injdef, "dparent")
|
|
1321
|
+
inj_meta = idef(injdef, "meta")
|
|
1322
|
+
inj_key = idef(injdef, "key")
|
|
1323
|
+
dpath = idef(injdef, "dpath")
|
|
1324
|
+
src = if iskey(base), do: getprop(store, base, store), else: store
|
|
1325
|
+
numparts = length(parts)
|
|
1300
1326
|
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1327
|
+
val =
|
|
1328
|
+
cond do
|
|
1329
|
+
path == nil or store == nil or (numparts == 1 and Enum.at(parts, 0) == @s_mt) or numparts == 0 ->
|
|
1330
|
+
src
|
|
1331
|
+
|
|
1332
|
+
true ->
|
|
1333
|
+
val0 = if numparts == 1, do: getprop(store, Enum.at(parts, 0)), else: store
|
|
1334
|
+
|
|
1335
|
+
if isfunc(val0) do
|
|
1336
|
+
val0
|
|
1337
|
+
else
|
|
1338
|
+
{val1, parts1} =
|
|
1339
|
+
case if(is_binary(Enum.at(parts, 0)), do: Regex.run(@r_meta_path, Enum.at(parts, 0)), else: nil) do
|
|
1340
|
+
[_, g1, _, g3] when inj_meta != nil and has_inj ->
|
|
1341
|
+
{getprop(inj_meta, g1), List.replace_at(parts, 0, g3)}
|
|
1342
|
+
|
|
1343
|
+
_ ->
|
|
1344
|
+
{src, parts}
|
|
1345
|
+
end
|
|
1346
|
+
|
|
1347
|
+
getpath_loop(store, parts1, 0, val1, has_inj, inj_key, inj_meta, src, dparent, dpath)
|
|
1348
|
+
end
|
|
1306
1349
|
end
|
|
1350
|
+
|
|
1351
|
+
handler = idef(injdef, "handler")
|
|
1352
|
+
|
|
1353
|
+
if has_inj and isfunc(handler) do
|
|
1354
|
+
ref = pathify(path)
|
|
1355
|
+
if isinj(injdef), do: handler.(injdef, val, ref, store), else: handler.(dummy_inj(), val, ref, store)
|
|
1356
|
+
else
|
|
1357
|
+
val
|
|
1307
1358
|
end
|
|
1308
1359
|
end
|
|
1309
1360
|
|
|
@@ -1332,7 +1383,12 @@ defmodule Voxgig.Struct do
|
|
|
1332
1383
|
true -> raw
|
|
1333
1384
|
end
|
|
1334
1385
|
|
|
1335
|
-
part =
|
|
1386
|
+
part =
|
|
1387
|
+
cond do
|
|
1388
|
+
not is_binary(part0) -> strkey(part0)
|
|
1389
|
+
String.contains?(part0, "$") -> String.replace(part0, "$$", "$")
|
|
1390
|
+
true -> part0
|
|
1391
|
+
end
|
|
1336
1392
|
|
|
1337
1393
|
if part == @s_mt do
|
|
1338
1394
|
{ascends, pi2} = count_ascends(parts, pi, 0)
|
|
@@ -1357,6 +1413,7 @@ defmodule Voxgig.Struct do
|
|
|
1357
1413
|
end
|
|
1358
1414
|
|
|
1359
1415
|
def setpath(store, path, val, injdef \\ nil) do
|
|
1416
|
+
if iscondensed(store), do: raise(Voxgig.Struct.Error, message: @condense_immutable)
|
|
1360
1417
|
ptype = typify(path)
|
|
1361
1418
|
|
|
1362
1419
|
parts =
|
|
@@ -1430,7 +1487,8 @@ defmodule Voxgig.Struct do
|
|
|
1430
1487
|
modify: nil,
|
|
1431
1488
|
prior: nil,
|
|
1432
1489
|
extra: nil,
|
|
1433
|
-
root: nil
|
|
1490
|
+
root: nil,
|
|
1491
|
+
named: false
|
|
1434
1492
|
})
|
|
1435
1493
|
end
|
|
1436
1494
|
|
|
@@ -1490,7 +1548,8 @@ defmodule Voxgig.Struct do
|
|
|
1490
1548
|
dpath: vlist_new(list_items(ig(inj, :dpath))),
|
|
1491
1549
|
dparent: ig(inj, :dparent),
|
|
1492
1550
|
extra: ig(inj, :extra),
|
|
1493
|
-
root: ig(inj, :root)
|
|
1551
|
+
root: ig(inj, :root),
|
|
1552
|
+
named: false
|
|
1494
1553
|
})
|
|
1495
1554
|
end
|
|
1496
1555
|
|
|
@@ -1502,7 +1561,13 @@ defmodule Voxgig.Struct do
|
|
|
1502
1561
|
{getelem(ig(inj, :nodes), -ancestor), getelem(ig(inj, :path), -ancestor)}
|
|
1503
1562
|
end
|
|
1504
1563
|
|
|
1505
|
-
|
|
1564
|
+
cond do
|
|
1565
|
+
# A list keeps the removed slot as a hole until inject's loop ends.
|
|
1566
|
+
val == nil and ancestor < 2 and islist(target) -> setprop(target, key, @skip)
|
|
1567
|
+
val == nil -> delprop(target, key)
|
|
1568
|
+
val == @heldnull -> setprop(target, key, nil)
|
|
1569
|
+
true -> setprop(target, key, val)
|
|
1570
|
+
end
|
|
1506
1571
|
end
|
|
1507
1572
|
|
|
1508
1573
|
# ---------------------------------------------------------------------------
|
|
@@ -1532,6 +1597,7 @@ defmodule Voxgig.Struct do
|
|
|
1532
1597
|
end
|
|
1533
1598
|
|
|
1534
1599
|
inj_descend(inj)
|
|
1600
|
+
is_(inj, :named, false)
|
|
1535
1601
|
|
|
1536
1602
|
rv =
|
|
1537
1603
|
cond do
|
|
@@ -1541,6 +1607,7 @@ defmodule Voxgig.Struct do
|
|
|
1541
1607
|
ks = Enum.map(map_pairs(val), &elem(&1, 0))
|
|
1542
1608
|
normal = ks |> Enum.filter(fn k -> not String.contains?(k, @s_ds) end) |> Enum.sort()
|
|
1543
1609
|
trans = ks |> Enum.filter(fn k -> String.contains?(k, @s_ds) end) |> Enum.sort()
|
|
1610
|
+
is_(inj, :named, normal != [])
|
|
1544
1611
|
normal ++ trans
|
|
1545
1612
|
else
|
|
1546
1613
|
n = length(list_items(val))
|
|
@@ -1548,13 +1615,14 @@ defmodule Voxgig.Struct do
|
|
|
1548
1615
|
end
|
|
1549
1616
|
|
|
1550
1617
|
inject_loop(inj, val, store, nodekeys, 0)
|
|
1618
|
+
if islist(val), do: list_set_items(val, Enum.reject(list_items(val), &is_skip/1))
|
|
1551
1619
|
val
|
|
1552
1620
|
|
|
1553
1621
|
is_binary(val) ->
|
|
1554
1622
|
is_(inj, :mode, @m_val)
|
|
1555
1623
|
nv = injectstr(val, store, inj)
|
|
1556
1624
|
if not is_skip(nv), do: inj_setval(inj, nv)
|
|
1557
|
-
nv
|
|
1625
|
+
if nv == @heldnull, do: nil, else: nv
|
|
1558
1626
|
|
|
1559
1627
|
true ->
|
|
1560
1628
|
val
|
|
@@ -1564,14 +1632,16 @@ defmodule Voxgig.Struct do
|
|
|
1564
1632
|
mkey = ig(inj, :key)
|
|
1565
1633
|
mparent = ig(inj, :parent)
|
|
1566
1634
|
mval = getprop(mparent, mkey)
|
|
1567
|
-
ig(inj, :modify).(mval, mkey, mparent, inj)
|
|
1635
|
+
ig(inj, :modify).(if(is_skip(mval), do: nil, else: mval), mkey, mparent, inj)
|
|
1568
1636
|
end
|
|
1569
1637
|
|
|
1570
1638
|
is_(inj, :ival, rv)
|
|
1571
1639
|
|
|
1572
1640
|
cond do
|
|
1573
|
-
|
|
1574
|
-
|
|
1641
|
+
# Read literally: a null a list directive set at $TOP is the result,
|
|
1642
|
+
# and a $TOP a directive removed leaves no value.
|
|
1643
|
+
ig(inj, :prior) == nil and ig(inj, :root) != nil ->
|
|
1644
|
+
lookup_(ig(inj, :root), @s_dtop)
|
|
1575
1645
|
|
|
1576
1646
|
ig(inj, :key) == @s_dtop and ig(inj, :parent) != nil and haskey(ig(inj, :parent), @s_dtop) ->
|
|
1577
1647
|
getprop(ig(inj, :parent), @s_dtop)
|
|
@@ -1673,7 +1743,7 @@ defmodule Voxgig.Struct do
|
|
|
1673
1743
|
# ---------------------------------------------------------------------------
|
|
1674
1744
|
|
|
1675
1745
|
defp transform_delete(inj, _v, _r, _s) do
|
|
1676
|
-
|
|
1746
|
+
inj_setval(inj, nil)
|
|
1677
1747
|
nil
|
|
1678
1748
|
end
|
|
1679
1749
|
|
|
@@ -1928,11 +1998,10 @@ defmodule Voxgig.Struct do
|
|
|
1928
1998
|
end
|
|
1929
1999
|
end
|
|
1930
2000
|
|
|
1931
|
-
defp transform_ref(inj,
|
|
2001
|
+
defp transform_ref(inj, _val, _r, store) do
|
|
1932
2002
|
if ig(inj, :mode) != @m_val do
|
|
1933
2003
|
nil
|
|
1934
2004
|
else
|
|
1935
|
-
nodes = ig(inj, :nodes)
|
|
1936
2005
|
refpath = lookup_(ig(inj, :parent), 1)
|
|
1937
2006
|
is_(inj, :keyi, size(ig(inj, :keys)))
|
|
1938
2007
|
spec_func = getprop(store, @s_dspec)
|
|
@@ -1941,7 +2010,11 @@ defmodule Voxgig.Struct do
|
|
|
1941
2010
|
nil
|
|
1942
2011
|
else
|
|
1943
2012
|
spec = spec_func.(inj, nil, "", store)
|
|
1944
|
-
|
|
2013
|
+
# A relative path starts where this slot is, so .x is a sibling.
|
|
2014
|
+
dpath = slice(ig(inj, :path), 1, -2)
|
|
2015
|
+
refinj = vmap_new([{"dpath", dpath}, {"dparent", getpath(spec, dpath)}])
|
|
2016
|
+
ref = getpath(spec, refpath, refinj)
|
|
2017
|
+
refv = refchain_(spec, refinj, ref, ref, [refpath])
|
|
1945
2018
|
flag = vlist_new([false])
|
|
1946
2019
|
|
|
1947
2020
|
if isnode(refv) do
|
|
@@ -1952,37 +2025,39 @@ defmodule Voxgig.Struct do
|
|
|
1952
2025
|
end
|
|
1953
2026
|
|
|
1954
2027
|
has_sub = getelem(flag, 0) == true
|
|
1955
|
-
tref = clone(refv)
|
|
1956
|
-
cpath = slice(ig(inj, :path), 0, size(ig(inj, :path)) - 3)
|
|
1957
|
-
tpath = slice(ig(inj, :path), 0, size(ig(inj, :path)) - 1)
|
|
1958
|
-
tcur = getpath(store, cpath)
|
|
1959
|
-
tval = getpath(store, tpath)
|
|
1960
|
-
|
|
1961
|
-
rval =
|
|
1962
|
-
if refv != nil and (not has_sub or tval != nil) do
|
|
1963
|
-
cs = inj_child(inj, 0, vlist_new([getelem(tpath, -1)]))
|
|
1964
|
-
is_(cs, :path, tpath)
|
|
1965
|
-
is_(cs, :nodes, slice(ig(inj, :nodes), 0, size(ig(inj, :nodes)) - 1))
|
|
1966
|
-
is_(cs, :parent, getelem(nodes, -2))
|
|
1967
|
-
is_(cs, :ival, tref)
|
|
1968
|
-
is_(cs, :dparent, tcur)
|
|
1969
|
-
inject(tref, store, cs)
|
|
1970
|
-
ig(cs, :ival)
|
|
1971
|
-
else
|
|
1972
|
-
nil
|
|
1973
|
-
end
|
|
1974
2028
|
|
|
1975
|
-
|
|
2029
|
+
# A recursive reference stops where the data does.
|
|
2030
|
+
tval = getpath(store, slice(ig(inj, :path), 0, size(ig(inj, :path)) - 1))
|
|
2031
|
+
rval = if not has_sub or tval != nil, do: clone(refv), else: nil
|
|
2032
|
+
|
|
2033
|
+
# The enclosing loop injects the referenced spec in this list's place, so
|
|
2034
|
+
# neither this pass nor this element leaves a value for modify to check.
|
|
2035
|
+
grandparent = inj_setval(inj, rval, 2)
|
|
2036
|
+
prior = ig(inj, :prior)
|
|
1976
2037
|
|
|
1977
|
-
if
|
|
1978
|
-
is_(
|
|
2038
|
+
if prior != nil do
|
|
2039
|
+
is_(prior, :modify, nil)
|
|
2040
|
+
if islist(grandparent) or rval != nil, do: is_(prior, :keyi, ig(prior, :keyi) - 1)
|
|
1979
2041
|
end
|
|
1980
2042
|
|
|
1981
|
-
|
|
2043
|
+
@skip
|
|
1982
2044
|
end
|
|
1983
2045
|
end
|
|
1984
2046
|
end
|
|
1985
2047
|
|
|
2048
|
+
# A chain of references that comes back to a path it has named names nothing.
|
|
2049
|
+
defp refchain_(spec, refinj, ref, next, seen) do
|
|
2050
|
+
if islist(next) and lookup_(next, 0) == "`$REF`" do
|
|
2051
|
+
nextpath = lookup_(next, 1)
|
|
2052
|
+
|
|
2053
|
+
if nextpath in seen,
|
|
2054
|
+
do: nil,
|
|
2055
|
+
else: refchain_(spec, refinj, ref, getpath(spec, nextpath, refinj), [nextpath | seen])
|
|
2056
|
+
else
|
|
2057
|
+
ref
|
|
2058
|
+
end
|
|
2059
|
+
end
|
|
2060
|
+
|
|
1986
2061
|
defp formatter_tbl do
|
|
1987
2062
|
%{
|
|
1988
2063
|
"identity" => fn _k, v -> v end,
|
|
@@ -2192,13 +2267,14 @@ defmodule Voxgig.Struct do
|
|
|
2192
2267
|
defp push_err(inj, msg), do: setprop(ig(inj, :errs), size(ig(inj, :errs)), msg)
|
|
2193
2268
|
|
|
2194
2269
|
defp invalid_type_msg(path, needtype, vt, v, _whence) do
|
|
2195
|
-
|
|
2270
|
+
novalue = v == nil or v == @noarg
|
|
2271
|
+
vs = if novalue, do: "no value", else: stringify(v)
|
|
2196
2272
|
|
|
2197
2273
|
"Expected " <>
|
|
2198
2274
|
(if size(path) > 1, do: "field " <> pathify(path, 1) <> " to be ", else: "") <>
|
|
2199
2275
|
needtype <>
|
|
2200
2276
|
", but found " <>
|
|
2201
|
-
(if
|
|
2277
|
+
(if novalue, do: "", else: typename(vt) <> @s_viz) <>
|
|
2202
2278
|
vs <> "."
|
|
2203
2279
|
end
|
|
2204
2280
|
|
|
@@ -2207,8 +2283,8 @@ defmodule Voxgig.Struct do
|
|
|
2207
2283
|
t = typify(out)
|
|
2208
2284
|
|
|
2209
2285
|
cond do
|
|
2210
|
-
Bitwise.band(@t_string, t) == 0 -> push_err(inj, invalid_type_msg(ig(inj, :path), "string", t, out, "V1010"));
|
|
2211
|
-
out == @s_mt -> push_err(inj, "Empty string at " <> pathify(ig(inj, :path), 1));
|
|
2286
|
+
Bitwise.band(@t_string, t) == 0 -> push_err(inj, invalid_type_msg(ig(inj, :path), "string", t, out, "V1010")); keepnull_(inj, out)
|
|
2287
|
+
out == @s_mt -> push_err(inj, "Empty string at " <> pathify(ig(inj, :path), 1)); out
|
|
2212
2288
|
true -> out
|
|
2213
2289
|
end
|
|
2214
2290
|
end
|
|
@@ -2218,22 +2294,32 @@ defmodule Voxgig.Struct do
|
|
|
2218
2294
|
idx = type_index(tname)
|
|
2219
2295
|
typev0 = if idx >= 0, do: Bitwise.bsl(1, 31 - idx), else: 0
|
|
2220
2296
|
typev = if tname == "nil", do: Bitwise.bor(typev0, @t_null), else: typev0
|
|
2221
|
-
|
|
2222
|
-
|
|
2297
|
+
dparent = ig(inj, :dparent)
|
|
2298
|
+
key = ig(inj, :key)
|
|
2299
|
+
out = lookup_(dparent, key)
|
|
2300
|
+
# With one nil, only the parent tells a missing field (no value) from a null one.
|
|
2301
|
+
t = typify(if out == nil and not holds_(dparent, key), do: @noarg, else: out)
|
|
2223
2302
|
|
|
2224
2303
|
if Bitwise.band(t, typev) == 0 do
|
|
2225
2304
|
push_err(inj, invalid_type_msg(ig(inj, :path), tname, t, out, "V1001"))
|
|
2226
|
-
nil
|
|
2227
|
-
else
|
|
2228
|
-
out
|
|
2229
2305
|
end
|
|
2306
|
+
|
|
2307
|
+
keepnull_(inj, out)
|
|
2230
2308
|
end
|
|
2231
2309
|
|
|
2232
2310
|
defp type_index(tname) do
|
|
2233
2311
|
Enum.find_index(Tuple.to_list(@typename), fn x -> x == tname end) || -1
|
|
2234
2312
|
end
|
|
2235
2313
|
|
|
2236
|
-
defp validate_any(inj, _v, _r, _s), do: lookup_(ig(inj, :dparent), ig(inj, :key))
|
|
2314
|
+
defp validate_any(inj, _v, _r, _s), do: keepnull_(inj, lookup_(ig(inj, :dparent), ig(inj, :key)))
|
|
2315
|
+
|
|
2316
|
+
# A null the data holds comes back as @heldnull, which inj_setval writes:
|
|
2317
|
+
# it deletes the slot for nil, and a list would shift down.
|
|
2318
|
+
defp keepnull_(inj, out) do
|
|
2319
|
+
if out == nil and ig(inj, :mode) == @m_val and ig(inj, :full) == true and holds_(ig(inj, :dparent), ig(inj, :key)),
|
|
2320
|
+
do: @heldnull,
|
|
2321
|
+
else: out
|
|
2322
|
+
end
|
|
2237
2323
|
|
|
2238
2324
|
defp validate_child(inj, _v, _r, _s) do
|
|
2239
2325
|
parent = ig(inj, :parent)
|
|
@@ -2254,7 +2340,7 @@ defmodule Voxgig.Struct do
|
|
|
2254
2340
|
nil
|
|
2255
2341
|
|
|
2256
2342
|
not ismap(tval) ->
|
|
2257
|
-
|
|
2343
|
+
# validation reports the mismatch, once.
|
|
2258
2344
|
nil
|
|
2259
2345
|
|
|
2260
2346
|
true ->
|
|
@@ -2276,7 +2362,6 @@ defmodule Voxgig.Struct do
|
|
|
2276
2362
|
nil
|
|
2277
2363
|
|
|
2278
2364
|
not islist(ig(inj, :dparent)) ->
|
|
2279
|
-
push_err(inj, invalid_type_msg(slice(path, 0, size(path) - 1), "list", typify(ig(inj, :dparent)), ig(inj, :dparent), "V0230"))
|
|
2280
2365
|
is_(inj, :keyi, size(parent))
|
|
2281
2366
|
ig(inj, :dparent)
|
|
2282
2367
|
|
|
@@ -2284,8 +2369,21 @@ defmodule Voxgig.Struct do
|
|
|
2284
2369
|
Enum.each(items_pairs(ig(inj, :dparent)), fn {k, _} -> setprop(parent, k, clone(childtm)) end)
|
|
2285
2370
|
n = size(ig(inj, :dparent))
|
|
2286
2371
|
list_set_items(parent, Enum.take(list_items(parent), n))
|
|
2287
|
-
|
|
2288
|
-
|
|
2372
|
+
|
|
2373
|
+
# NOTE: modifying inj! This extends the child value loop in inject
|
|
2374
|
+
# to cover every cloned child.
|
|
2375
|
+
Enum.each(size(keys)..(size(parent) - 1)//1, fn ckeyi ->
|
|
2376
|
+
setprop(keys, size(keys), strkey(ckeyi))
|
|
2377
|
+
end)
|
|
2378
|
+
|
|
2379
|
+
# Restart the child value loop at the first element (the loop
|
|
2380
|
+
# increments keyi on resume) so that the first element is also
|
|
2381
|
+
# validated against the child template.
|
|
2382
|
+
is_(inj, :keyi, -1)
|
|
2383
|
+
|
|
2384
|
+
# @skip leaves the cloned child template in place at the first
|
|
2385
|
+
# element so the resumed loop can validate it.
|
|
2386
|
+
@skip
|
|
2289
2387
|
end
|
|
2290
2388
|
|
|
2291
2389
|
true ->
|
|
@@ -2293,107 +2391,320 @@ defmodule Voxgig.Struct do
|
|
|
2293
2391
|
end
|
|
2294
2392
|
end
|
|
2295
2393
|
|
|
2296
|
-
|
|
2394
|
+
# The members a spec does not name: the map form is a key, the list form a
|
|
2395
|
+
# tuple's last item. Each places clones of its spec for the loop to check.
|
|
2396
|
+
defp validate_rest(inj, _v, _r, _s) do
|
|
2397
|
+
parent = ig(inj, :parent)
|
|
2398
|
+
keys = ig(inj, :keys)
|
|
2399
|
+
path = ig(inj, :path)
|
|
2400
|
+
prior = ig(inj, :prior)
|
|
2401
|
+
|
|
2402
|
+
cond do
|
|
2403
|
+
ig(inj, :mode) == @m_keypre ->
|
|
2404
|
+
resttm = lookup_(parent, ig(inj, :key))
|
|
2405
|
+
tval = getprop(ig(inj, :dparent), getelem(path, -2))
|
|
2406
|
+
|
|
2407
|
+
if ismap(tval) do
|
|
2408
|
+
Enum.each(keysof(tval), fn ckey ->
|
|
2409
|
+
if ckey not in list_items(keys) do
|
|
2410
|
+
setprop(parent, ckey, clone(resttm))
|
|
2411
|
+
setprop(keys, size(keys), ckey)
|
|
2412
|
+
end
|
|
2413
|
+
end)
|
|
2414
|
+
end
|
|
2415
|
+
|
|
2416
|
+
inj_setval(inj, nil)
|
|
2417
|
+
nil
|
|
2418
|
+
|
|
2419
|
+
ig(inj, :mode) != @m_val or prior == nil or not islist(ig(prior, :parent)) or ig(inj, :keyi) != 0 ->
|
|
2420
|
+
push_err(inj, restmsg_(slice(path, 1), " must be the last element of an array."))
|
|
2421
|
+
nil
|
|
2422
|
+
|
|
2423
|
+
true ->
|
|
2424
|
+
is_(inj, :keyi, size(keys))
|
|
2425
|
+
is_(prior, :modify, nil)
|
|
2426
|
+
|
|
2427
|
+
tuple = ig(prior, :parent)
|
|
2428
|
+
slot = listidx_(ig(prior, :key))
|
|
2429
|
+
dlist = ig(prior, :dparent)
|
|
2430
|
+
numitems = if islist(dlist), do: size(dlist), else: 0
|
|
2431
|
+
|
|
2432
|
+
if numitems <= slot do
|
|
2433
|
+
inj_setval(inj, nil, 2)
|
|
2434
|
+
else
|
|
2435
|
+
resttm = lookup_(parent, 1)
|
|
2436
|
+
Enum.each(slot..(numitems - 1)//1, fn i -> setprop(tuple, i, clone(resttm)) end)
|
|
2437
|
+
pkeys = ig(prior, :keys)
|
|
2438
|
+
Enum.each(size(pkeys)..(numitems - 1)//1, fn i -> setprop(pkeys, size(pkeys), strkey(i)) end)
|
|
2439
|
+
is_(prior, :keyi, ig(prior, :keyi) - 1)
|
|
2440
|
+
end
|
|
2441
|
+
|
|
2442
|
+
@skip
|
|
2443
|
+
end
|
|
2444
|
+
end
|
|
2445
|
+
|
|
2446
|
+
defp restmsg_(path, problem), do: "The $REST validator at field " <> pathify(path) <> problem
|
|
2447
|
+
|
|
2448
|
+
defp validate_exact(inj, _v, _r, _s) do
|
|
2297
2449
|
if ig(inj, :mode) != @m_val do
|
|
2450
|
+
delprop(ig(inj, :parent), ig(inj, :key))
|
|
2298
2451
|
nil
|
|
2299
2452
|
else
|
|
2300
2453
|
parent = ig(inj, :parent)
|
|
2301
2454
|
|
|
2302
2455
|
if not islist(parent) or ig(inj, :keyi) != 0 do
|
|
2303
|
-
push_err(inj, "The $
|
|
2456
|
+
push_err(inj, "The $EXACT validator at field " <> pathify(ig(inj, :path), 1, 1) <> " must be the first element of an array.")
|
|
2304
2457
|
nil
|
|
2305
2458
|
else
|
|
2459
|
+
{cval, held} = slotval_(inj)
|
|
2306
2460
|
is_(inj, :keyi, size(ig(inj, :keys)))
|
|
2307
|
-
|
|
2461
|
+
|
|
2462
|
+
# Replace [$EXACT, ...] with the data value; SKIP keeps inject off the detached list.
|
|
2463
|
+
slotset_(inj, cval, held)
|
|
2464
|
+
|
|
2308
2465
|
is_(inj, :path, slice(ig(inj, :path), 0, size(ig(inj, :path)) - 1))
|
|
2309
|
-
|
|
2310
|
-
tvals = slice(parent, 1)
|
|
2466
|
+
tvals = list_items(slice(parent, 1))
|
|
2311
2467
|
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
else
|
|
2316
|
-
matched = validate_one_loop(inj, store, list_items(tvals), false)
|
|
2468
|
+
cond do
|
|
2469
|
+
tvals == [] ->
|
|
2470
|
+
push_err(inj, "The $EXACT validator at field " <> pathify(ig(inj, :path), 1, 1) <> " must have at least one argument.")
|
|
2317
2471
|
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
push_err(inj, invalid_type_msg(ig(inj, :path), (if size(tvals) > 1, do: "one of ", else: "") <> valdesc, typify(ig(inj, :dparent)), ig(inj, :dparent), "V0210"))
|
|
2322
|
-
end
|
|
2472
|
+
# An absent value equals no argument.
|
|
2473
|
+
held and Enum.any?(tvals, fn tv -> deepequal_(tv, cval) end) ->
|
|
2474
|
+
:ok
|
|
2323
2475
|
|
|
2324
|
-
|
|
2476
|
+
true ->
|
|
2477
|
+
valdesc = Enum.map_join(tvals, ", ", &stringify/1)
|
|
2478
|
+
valdesc = Regex.replace(@r_transform_name, valdesc, fn _w, g1 -> String.downcase(g1) end)
|
|
2479
|
+
push_err(inj, invalid_type_msg(ig(inj, :path), (if size(ig(inj, :path)) > 1, do: "", else: "value ") <> "exactly equal to " <> (if length(tvals) == 1, do: "", else: "one of ") <> valdesc, typify(cval), cval, "V0110"))
|
|
2325
2480
|
end
|
|
2481
|
+
|
|
2482
|
+
@skip
|
|
2326
2483
|
end
|
|
2327
2484
|
end
|
|
2328
2485
|
end
|
|
2329
2486
|
|
|
2330
|
-
|
|
2487
|
+
# Count the specs that admit the value: ['`$NOF`', count, spec, ...], where
|
|
2488
|
+
# count is an integer, or a map holding min, max or both.
|
|
2489
|
+
defp validate_nof(inj, _v, _r, store), do: validatecount_(inj, store, "$NOF", true)
|
|
2331
2490
|
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2491
|
+
# Every spec admits the value: ['`$ALL`', spec, ...].
|
|
2492
|
+
defp validate_all(inj, _v, _r, store), do: validatecount_(inj, store, "$ALL", false)
|
|
2493
|
+
|
|
2494
|
+
# The counting list directives. Without a count, every spec has to admit.
|
|
2495
|
+
defp validatecount_(inj, store, name, counted) do
|
|
2496
|
+
parent = ig(inj, :parent)
|
|
2497
|
+
|
|
2498
|
+
cond do
|
|
2499
|
+
ig(inj, :mode) != @m_val ->
|
|
2500
|
+
nil
|
|
2501
|
+
|
|
2502
|
+
not islist(parent) or ig(inj, :keyi) != 0 ->
|
|
2503
|
+
push_err(inj, "The " <> name <> " validator at field " <> pathify(ig(inj, :path), 1, 1) <> " must be the first element of an array.")
|
|
2504
|
+
nil
|
|
2505
|
+
|
|
2506
|
+
true ->
|
|
2507
|
+
{cval, held} = slotval_(inj)
|
|
2508
|
+
is_(inj, :keyi, size(ig(inj, :keys)))
|
|
2509
|
+
|
|
2510
|
+
# Replace the directive's list with the data value. Each return is SKIP, so
|
|
2511
|
+
# that inject leaves the detached list alone and validates nothing in it.
|
|
2512
|
+
slotset_(inj, cval, held)
|
|
2513
|
+
|
|
2514
|
+
is_(inj, :path, slice(ig(inj, :path), -1))
|
|
2515
|
+
count = if counted, do: lookup_(parent, 1), else: nil
|
|
2516
|
+
tvals = list_items(slice(parent, if(counted, do: 2, else: 1)))
|
|
2517
|
+
numtvals = length(tvals)
|
|
2518
|
+
field = "The " <> name <> " validator at field " <> pathify(ig(inj, :path), 1)
|
|
2519
|
+
|
|
2520
|
+
if numtvals == 0 do
|
|
2521
|
+
push_err(inj, field <> (if counted, do: " must have a count and", else: " must have") <> " at least one argument.")
|
|
2522
|
+
else
|
|
2523
|
+
{lo, hi, countdesc} = if counted, do: nofcount_(count, numtvals), else: {numtvals, numtvals, "all"}
|
|
2524
|
+
|
|
2525
|
+
if countdesc == nil do
|
|
2526
|
+
push_err(inj, field <> " has an invalid count: " <> stringify(count) <> ".")
|
|
2527
|
+
else
|
|
2528
|
+
admitted =
|
|
2529
|
+
tvals
|
|
2530
|
+
|> Enum.with_index()
|
|
2531
|
+
|> Enum.reduce_while(0, fn {tval, ti}, admitted ->
|
|
2532
|
+
left = numtvals - ti
|
|
2533
|
+
|
|
2534
|
+
# Stop once the specs left cannot change the verdict.
|
|
2535
|
+
if hi < admitted or admitted + left < lo or (lo <= admitted and admitted + left <= hi) do
|
|
2536
|
+
{:halt, admitted}
|
|
2537
|
+
else
|
|
2538
|
+
{:cont, if(admits_(cval, held, tval, inj, store), do: admitted + 1, else: admitted)}
|
|
2539
|
+
end
|
|
2540
|
+
end)
|
|
2541
|
+
|
|
2542
|
+
if admitted < lo or hi < admitted do
|
|
2543
|
+
valdesc = Enum.map_join(tvals, ", ", &stringify/1)
|
|
2544
|
+
valdesc = Regex.replace(@r_transform_name, valdesc, fn _w, g1 -> String.downcase(g1) end)
|
|
2545
|
+
push_err(inj, invalid_type_msg(ig(inj, :path), countdesc <> " of " <> valdesc, typify(cval), cval, "V0310"))
|
|
2546
|
+
end
|
|
2547
|
+
end
|
|
2548
|
+
end
|
|
2549
|
+
|
|
2550
|
+
@skip
|
|
2343
2551
|
end
|
|
2344
2552
|
end
|
|
2345
2553
|
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
nil
|
|
2350
|
-
else
|
|
2351
|
-
parent = ig(inj, :parent)
|
|
2554
|
+
# The value's length is within a bound: ['`$LEN`', bound, spec?], where the
|
|
2555
|
+
# bound is as for a $NOF count. A string's length is in code points.
|
|
2556
|
+
defp validate_len(inj, _v, _r, store), do: validatebound_(inj, store, "$LEN")
|
|
2352
2557
|
|
|
2353
|
-
|
|
2354
|
-
|
|
2558
|
+
# The value is a number within a bound: ['`$RANGE`', bound, spec?], where the
|
|
2559
|
+
# bound holds min or gt, max or lt, or one of each.
|
|
2560
|
+
defp validate_range(inj, _v, _r, store), do: validatebound_(inj, store, "$RANGE")
|
|
2561
|
+
|
|
2562
|
+
defp validate_like(inj, _v, _r, store), do: validatebound_(inj, store, "$LIKE")
|
|
2563
|
+
|
|
2564
|
+
# The bounding list directives: a bound or pattern, then at most one spec that also admits.
|
|
2565
|
+
defp validatebound_(inj, store, name) do
|
|
2566
|
+
parent = ig(inj, :parent)
|
|
2567
|
+
|
|
2568
|
+
cond do
|
|
2569
|
+
ig(inj, :mode) != @m_val ->
|
|
2355
2570
|
nil
|
|
2356
|
-
|
|
2571
|
+
|
|
2572
|
+
not islist(parent) or ig(inj, :keyi) != 0 ->
|
|
2573
|
+
push_err(inj, "The " <> name <> " validator at field " <> pathify(ig(inj, :path), 1, 1) <> " must be the first element of an array.")
|
|
2574
|
+
nil
|
|
2575
|
+
|
|
2576
|
+
true ->
|
|
2577
|
+
{cval, held} = slotval_(inj)
|
|
2357
2578
|
is_(inj, :keyi, size(ig(inj, :keys)))
|
|
2358
|
-
inj_setval(inj, ig(inj, :dparent), 2)
|
|
2359
|
-
is_(inj, :path, slice(ig(inj, :path), 0, size(ig(inj, :path)) - 1))
|
|
2360
|
-
is_(inj, :key, getelem(ig(inj, :path), -1))
|
|
2361
|
-
tvals = slice(parent, 1)
|
|
2362
2579
|
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2580
|
+
# As for the counting directives: SKIP keeps inject off the detached list.
|
|
2581
|
+
slotset_(inj, cval, held)
|
|
2582
|
+
|
|
2583
|
+
is_(inj, :path, slice(ig(inj, :path), -1))
|
|
2584
|
+
field = "The " <> name <> " validator at field " <> pathify(ig(inj, :path), 1)
|
|
2585
|
+
nargs = size(parent) - 1
|
|
2586
|
+
islen = name == "$LEN"
|
|
2587
|
+
islike = name == "$LIKE"
|
|
2588
|
+
argname = if islike, do: "pattern", else: "bound"
|
|
2589
|
+
|
|
2590
|
+
if nargs < 1 or nargs > 2 do
|
|
2591
|
+
push_err(inj, field <> " must have a " <> argname <> " and at most one spec.")
|
|
2366
2592
|
else
|
|
2367
|
-
|
|
2593
|
+
bound = lookup_(parent, 1)
|
|
2594
|
+
like = if islike, do: likere_(bound), else: nil
|
|
2595
|
+
likedesc = if like == nil, do: nil, else: "like /" <> bound <> "/"
|
|
2596
|
+
{lo, hi, desc} = if islen, do: lenbound_(bound), else: {0, 0, if(islike, do: likedesc, else: rangedesc_(bound))}
|
|
2597
|
+
ctype = typify(cval)
|
|
2598
|
+
needs = if islen, do: Bitwise.bor(Bitwise.bor(@t_string, @t_list), @t_map), else: if(islike, do: @t_string, else: @t_number)
|
|
2368
2599
|
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
push_err(inj, invalid_type_msg(ig(inj, :path), (if size(ig(inj, :path)) > 1, do: "", else: "value ") <> "exactly equal to " <> (if size(tvals) == 1, do: "", else: "one of ") <> valdesc, typify(ig(inj, :dparent)), ig(inj, :dparent), "V0110"))
|
|
2373
|
-
end
|
|
2600
|
+
cond do
|
|
2601
|
+
desc == nil ->
|
|
2602
|
+
push_err(inj, field <> " has an invalid " <> argname <> ": " <> stringify(bound) <> ".")
|
|
2374
2603
|
|
|
2375
|
-
|
|
2604
|
+
nargs == 2 and not admits_(cval, held, lookup_(parent, 2), inj, store) ->
|
|
2605
|
+
specdesc = Regex.replace(@r_transform_name, stringify(lookup_(parent, 2)), fn _w, g1 -> String.downcase(g1) end)
|
|
2606
|
+
push_err(inj, invalid_type_msg(ig(inj, :path), specdesc, ctype, cval, "V0410"))
|
|
2607
|
+
|
|
2608
|
+
Bitwise.band(needs, ctype) == 0 ->
|
|
2609
|
+
needtype = if islen, do: "string, list or map", else: if(islike, do: "string", else: "number")
|
|
2610
|
+
push_err(inj, invalid_type_msg(ig(inj, :path), needtype, ctype, cval, "V0420"))
|
|
2611
|
+
|
|
2612
|
+
not (if islen, do: inlen_(cval, lo, hi), else: if(islike, do: re_test(like, cval), else: inrange_(bound, cval))) ->
|
|
2613
|
+
needtype = (if size(ig(inj, :path)) > 1, do: "", else: "value ") <> desc
|
|
2614
|
+
push_err(inj, invalid_type_msg(ig(inj, :path), needtype, ctype, cval, "V0430"))
|
|
2615
|
+
|
|
2616
|
+
true ->
|
|
2617
|
+
:ok
|
|
2618
|
+
end
|
|
2376
2619
|
end
|
|
2620
|
+
|
|
2621
|
+
@skip
|
|
2622
|
+
end
|
|
2623
|
+
end
|
|
2624
|
+
|
|
2625
|
+
# The bounds of a $LEN bound, with -1 for no maximum, and the words for it,
|
|
2626
|
+
# which are absent when the bound is invalid.
|
|
2627
|
+
defp lenbound_(bound) do
|
|
2628
|
+
case nofcount_(bound, -1) do
|
|
2629
|
+
{_, _, nil} ->
|
|
2630
|
+
{0, 0, nil}
|
|
2631
|
+
|
|
2632
|
+
{lo, hi, _} ->
|
|
2633
|
+
words =
|
|
2634
|
+
cond do
|
|
2635
|
+
lo == hi -> num_to_string(lo)
|
|
2636
|
+
hi == -1 -> "at least " <> num_to_string(lo)
|
|
2637
|
+
lo == 0 -> "at most " <> num_to_string(hi)
|
|
2638
|
+
true -> num_to_string(lo) <> " to " <> num_to_string(hi)
|
|
2639
|
+
end
|
|
2640
|
+
|
|
2641
|
+
{lo, hi, "of length " <> words}
|
|
2642
|
+
end
|
|
2643
|
+
end
|
|
2644
|
+
|
|
2645
|
+
# String.length counts graphemes; a string's length here is in code points.
|
|
2646
|
+
defp inlen_(val, lo, hi) do
|
|
2647
|
+
len = if is_binary(val), do: length(String.codepoints(val)), else: size(val)
|
|
2648
|
+
lo <= len and (hi == -1 or len <= hi)
|
|
2649
|
+
end
|
|
2650
|
+
|
|
2651
|
+
# A $LIKE pattern compiled by the port's own regex engine; absent unless it compiles.
|
|
2652
|
+
defp likere_(pattern) do
|
|
2653
|
+
if is_binary(pattern) do
|
|
2654
|
+
try do
|
|
2655
|
+
re_compile(pattern)
|
|
2656
|
+
rescue
|
|
2657
|
+
Regex.CompileError -> nil
|
|
2377
2658
|
end
|
|
2378
2659
|
end
|
|
2379
2660
|
end
|
|
2380
2661
|
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2662
|
+
# The words for a $RANGE bound, which are absent when the bound is invalid.
|
|
2663
|
+
defp rangedesc_(bound) do
|
|
2664
|
+
if ismap(bound) do
|
|
2665
|
+
min = lookup_(bound, "min")
|
|
2666
|
+
max = lookup_(bound, "max")
|
|
2667
|
+
gt = lookup_(bound, "gt")
|
|
2668
|
+
lt = lookup_(bound, "lt")
|
|
2669
|
+
lower = if min == nil, do: gt, else: min
|
|
2670
|
+
upper = if max == nil, do: lt, else: max
|
|
2671
|
+
isnum = fn n -> n == nil or Bitwise.band(@t_number, typify(n)) > 0 end
|
|
2672
|
+
|
|
2673
|
+
valid =
|
|
2674
|
+
size(bound) > 0 and
|
|
2675
|
+
size(bound) == Enum.count([min, max, gt, lt], &(&1 != nil)) and
|
|
2676
|
+
(min == nil or gt == nil) and
|
|
2677
|
+
(max == nil or lt == nil) and
|
|
2678
|
+
isnum.(min) and isnum.(max) and isnum.(gt) and isnum.(lt) and
|
|
2679
|
+
(lower == nil or upper == nil or lower <= upper)
|
|
2680
|
+
|
|
2681
|
+
if valid do
|
|
2682
|
+
lowerdesc =
|
|
2683
|
+
cond do
|
|
2684
|
+
min != nil -> "at least " <> stringify(min)
|
|
2685
|
+
gt != nil -> "greater than " <> stringify(gt)
|
|
2686
|
+
true -> nil
|
|
2687
|
+
end
|
|
2688
|
+
|
|
2689
|
+
upperdesc =
|
|
2690
|
+
cond do
|
|
2691
|
+
max != nil -> "at most " <> stringify(max)
|
|
2692
|
+
lt != nil -> "less than " <> stringify(lt)
|
|
2693
|
+
true -> nil
|
|
2694
|
+
end
|
|
2695
|
+
|
|
2696
|
+
[lowerdesc, upperdesc] |> Enum.reject(&is_nil/1) |> Enum.join(" and ")
|
|
2697
|
+
end
|
|
2390
2698
|
end
|
|
2391
2699
|
end
|
|
2392
2700
|
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2701
|
+
# A number within a valid $RANGE bound.
|
|
2702
|
+
defp inrange_(bound, val) do
|
|
2703
|
+
min = lookup_(bound, "min")
|
|
2704
|
+
max = lookup_(bound, "max")
|
|
2705
|
+
gt = lookup_(bound, "gt")
|
|
2706
|
+
lt = lookup_(bound, "lt")
|
|
2707
|
+
(min == nil or min <= val) and (max == nil or val <= max) and (gt == nil or gt < val) and (lt == nil or val < lt)
|
|
2397
2708
|
end
|
|
2398
2709
|
|
|
2399
2710
|
defp validation(pval, key, parent, inj) do
|
|
@@ -2425,8 +2736,17 @@ defmodule Voxgig.Struct do
|
|
|
2425
2736
|
ckeys = keysof(cval)
|
|
2426
2737
|
pkeys = keysof(pval)
|
|
2427
2738
|
|
|
2428
|
-
|
|
2429
|
-
|
|
2739
|
+
# Only a spec written as {} is open, even if named keys resolved away.
|
|
2740
|
+
if (pkeys != [] or ig(inj, :named)) and getprop(pval, @s_bopen) != true do
|
|
2741
|
+
# Literal presence: the shape DECLARES ck even when its value
|
|
2742
|
+
# is nil. Canonical uses `NONE === _lookup`; `lookup_` here
|
|
2743
|
+
# returns nil for BOTH absent and present-nil, so testing
|
|
2744
|
+
# `== nil` (Group A) would drop records with a nil field from
|
|
2745
|
+
# an open ($AND) select. Test omap key presence instead.
|
|
2746
|
+
badkeys =
|
|
2747
|
+
Enum.filter(ckeys, fn ck ->
|
|
2748
|
+
match?(:error, omap_get(map_pairs(pval), mapkey(ck)))
|
|
2749
|
+
end)
|
|
2430
2750
|
if badkeys != [], do: push_err(inj, "Unexpected keys at field " <> pathify(ig(inj, :path), 1) <> @s_viz <> Enum.join(badkeys, ", "))
|
|
2431
2751
|
else
|
|
2432
2752
|
merge(vlist_new([pval, cval]))
|
|
@@ -2435,10 +2755,22 @@ defmodule Voxgig.Struct do
|
|
|
2435
2755
|
end
|
|
2436
2756
|
|
|
2437
2757
|
islist(cval) ->
|
|
2438
|
-
|
|
2758
|
+
cond do
|
|
2759
|
+
not islist(pval) ->
|
|
2760
|
+
push_err(inj, invalid_type_msg(ig(inj, :path), typename(ptype), ctype, cval, "V0030"))
|
|
2761
|
+
|
|
2762
|
+
size(pval) > 0 ->
|
|
2763
|
+
# Closed list, so reject items past the end of the shape.
|
|
2764
|
+
badkeys = Enum.map(size(pval)..(size(cval) - 1)//1, &strkey/1)
|
|
2765
|
+
if badkeys != [], do: push_err(inj, "Unexpected keys at field " <> pathify(ig(inj, :path), 1) <> @s_viz <> Enum.join(badkeys, ", "))
|
|
2766
|
+
|
|
2767
|
+
true ->
|
|
2768
|
+
# Empty spec list [] means list can be open (any items).
|
|
2769
|
+
merge(vlist_new([pval, cval]))
|
|
2770
|
+
end
|
|
2439
2771
|
|
|
2440
2772
|
exact_b ->
|
|
2441
|
-
if not
|
|
2773
|
+
if not deepequal_(cval, pval) do
|
|
2442
2774
|
pathmsg = if size(ig(inj, :path)) > 1, do: "at field " <> pathify(ig(inj, :path), 1) <> ": ", else: ""
|
|
2443
2775
|
push_err(inj, "Value " <> pathmsg <> js_string(cval) <> " should equal " <> js_string(pval) <> ".")
|
|
2444
2776
|
end
|
|
@@ -2477,17 +2809,203 @@ defmodule Voxgig.Struct do
|
|
|
2477
2809
|
Enum.each(["$NUMBER", "$INTEGER", "$DECIMAL", "$BOOLEAN", "$NULL", "$NIL", "$MAP", "$LIST", "$FUNCTION", "$INSTANCE"], fn k -> setprop(base, k, &validate_type/4) end)
|
|
2478
2810
|
setprop(base, "$ANY", &validate_any/4)
|
|
2479
2811
|
setprop(base, "$CHILD", &validate_child/4)
|
|
2480
|
-
setprop(base, "$ONE", &validate_one/4)
|
|
2481
2812
|
setprop(base, "$EXACT", &validate_exact/4)
|
|
2813
|
+
setprop(base, "$NOF", &validate_nof/4)
|
|
2814
|
+
setprop(base, "$ALL", &validate_all/4)
|
|
2815
|
+
setprop(base, "$LEN", &validate_len/4)
|
|
2816
|
+
setprop(base, "$RANGE", &validate_range/4)
|
|
2817
|
+
setprop(base, "$LIKE", &validate_like/4)
|
|
2818
|
+
setprop(base, "$REST", &validate_rest/4)
|
|
2482
2819
|
store = merge(vlist_new([base, if(extra == nil, do: empty_map(), else: extra), vmap_new([{@s_derrs, errs}])]), 1)
|
|
2483
2820
|
meta = getprop(injdef, "meta", empty_map())
|
|
2484
2821
|
setprop(meta, @s_bexact, getprop(meta, @s_bexact, false))
|
|
2485
|
-
|
|
2486
|
-
|
|
2822
|
+
|
|
2823
|
+
# A spec that names an unknown checker validates nothing.
|
|
2824
|
+
numerrs = size(errs)
|
|
2825
|
+
checknames_(spec, store, [], errs)
|
|
2826
|
+
|
|
2827
|
+
out =
|
|
2828
|
+
if numerrs < size(errs) do
|
|
2829
|
+
clone(data)
|
|
2830
|
+
else
|
|
2831
|
+
idef = vmap_new([{"meta", meta}, {"extra", store}, {"modify", &validation/4}, {"handler", &validate_handler/4}, {"errs", errs}])
|
|
2832
|
+
transform(data, spec, idef)
|
|
2833
|
+
end
|
|
2834
|
+
|
|
2487
2835
|
if size(errs) > 0 and not collect, do: raise(Voxgig.Struct.Error, message: join(errs, " | "))
|
|
2488
2836
|
out
|
|
2489
2837
|
end
|
|
2490
2838
|
|
|
2839
|
+
# Names a validate spec may use besides its checkers: transform's that it keeps, and $OPEN.
|
|
2840
|
+
@validate_names ["$TOP", "$SPEC", "$BT", "$DS", "$WHEN", "$ANNO", "$REF", "$FORMAT", "$APPLY", "$OPEN"]
|
|
2841
|
+
|
|
2842
|
+
# Report each checker the spec names that validate lacks, and each misplaced
|
|
2843
|
+
# $REST; $EXACT's arguments are literals. Last: spec is a list's last item.
|
|
2844
|
+
defp checknames_(spec, store, path, errs, last \\ false) do
|
|
2845
|
+
name = refname_(spec)
|
|
2846
|
+
head = if islist(spec), do: refname_(lookup_(spec, 0)), else: nil
|
|
2847
|
+
restkey = "`$REST`"
|
|
2848
|
+
|
|
2849
|
+
cond do
|
|
2850
|
+
name != nil ->
|
|
2851
|
+
cond do
|
|
2852
|
+
unknownname_(name, store) ->
|
|
2853
|
+
setprop(errs, size(errs), "Unknown validator " <> name <> " at field " <> pathify(vlist_new(path)) <> ".")
|
|
2854
|
+
|
|
2855
|
+
name == "$REST" ->
|
|
2856
|
+
setprop(errs, size(errs), restmsg_(vlist_new(path), " must be the last element of an array."))
|
|
2857
|
+
|
|
2858
|
+
true ->
|
|
2859
|
+
:ok
|
|
2860
|
+
end
|
|
2861
|
+
|
|
2862
|
+
head == "$EXACT" ->
|
|
2863
|
+
:ok
|
|
2864
|
+
|
|
2865
|
+
head == "$REST" ->
|
|
2866
|
+
cond do
|
|
2867
|
+
last != true -> setprop(errs, size(errs), restmsg_(vlist_new(path), " must be the last element of an array."))
|
|
2868
|
+
size(spec) != 2 -> setprop(errs, size(errs), restmsg_(vlist_new(path), " must have exactly one spec."))
|
|
2869
|
+
true -> :ok
|
|
2870
|
+
end
|
|
2871
|
+
|
|
2872
|
+
checknames_(lookup_(spec, 1), store, path ++ [1], errs)
|
|
2873
|
+
|
|
2874
|
+
true ->
|
|
2875
|
+
if ismap(spec) and holds_(spec, restkey) and holds_(spec, "`$CHILD`") do
|
|
2876
|
+
setprop(errs, size(errs), restmsg_(vlist_new(path), " cannot be used with $CHILD."))
|
|
2877
|
+
end
|
|
2878
|
+
|
|
2879
|
+
lastkey = if islist(spec), do: strkey(size(spec) - 1), else: nil
|
|
2880
|
+
|
|
2881
|
+
Enum.each(keysof(spec), fn key ->
|
|
2882
|
+
if ismap(spec) and key != restkey, do: checknames_(key, store, path, errs)
|
|
2883
|
+
checknames_(lookup_(spec, key), store, path ++ [key], errs, lastkey == key)
|
|
2884
|
+
end)
|
|
2885
|
+
end
|
|
2886
|
+
end
|
|
2887
|
+
|
|
2888
|
+
# The name a whole-string reference gives, when it is a checker name in any case.
|
|
2889
|
+
defp refname_(val) do
|
|
2890
|
+
case if(is_binary(val), do: Regex.run(@r_inject_full, val), else: nil) do
|
|
2891
|
+
[_, name] -> if Regex.match?(@r_checker_name, String.upcase(name)), do: name, else: nil
|
|
2892
|
+
_ -> nil
|
|
2893
|
+
end
|
|
2894
|
+
end
|
|
2895
|
+
|
|
2896
|
+
# Unknown: undefined and upper case, or a defined name in another case. Null disables a name.
|
|
2897
|
+
defp unknownname_(name, store) do
|
|
2898
|
+
known = fn n -> n in @validate_names or lookup_(store, n) != nil end
|
|
2899
|
+
upper = String.upcase(name)
|
|
2900
|
+
not known.(name) and (upper == name or known.(upper))
|
|
2901
|
+
end
|
|
2902
|
+
|
|
2903
|
+
# The data value at a list directive's slot, and whether the slot holds one.
|
|
2904
|
+
# The directive's own dparent was read with getprop, which reports a stored
|
|
2905
|
+
# null as absent, and with one nil only the slot can tell them apart.
|
|
2906
|
+
defp slotval_(inj) do
|
|
2907
|
+
prior = ig(inj, :prior)
|
|
2908
|
+
|
|
2909
|
+
slot =
|
|
2910
|
+
if prior == nil do
|
|
2911
|
+
{ig(inj, :dparent), ig(inj, :dparent) != nil}
|
|
2912
|
+
else
|
|
2913
|
+
{lookup_(ig(prior, :dparent), ig(prior, :key)), holds_(ig(prior, :dparent), ig(prior, :key))}
|
|
2914
|
+
end
|
|
2915
|
+
|
|
2916
|
+
# A trial hands an absent value down as noarg: the slot holds no value.
|
|
2917
|
+
if elem(slot, 0) == @noarg, do: {nil, false}, else: slot
|
|
2918
|
+
end
|
|
2919
|
+
|
|
2920
|
+
# inj_setval deletes for nil, so a null the slot holds is set directly.
|
|
2921
|
+
defp slotset_(inj, cval, held) do
|
|
2922
|
+
if cval == nil and held do
|
|
2923
|
+
setprop(getelem(ig(inj, :nodes), -2), getelem(ig(inj, :path), -2), nil)
|
|
2924
|
+
else
|
|
2925
|
+
inj_setval(inj, cval, 2)
|
|
2926
|
+
end
|
|
2927
|
+
end
|
|
2928
|
+
|
|
2929
|
+
# JSON equality: numbers by value, lists in order, maps by key in any order.
|
|
2930
|
+
defp deepequal_(a, b) do
|
|
2931
|
+
atype = typify(a)
|
|
2932
|
+
|
|
2933
|
+
cond do
|
|
2934
|
+
a == b ->
|
|
2935
|
+
true
|
|
2936
|
+
|
|
2937
|
+
atype != typify(b) or Bitwise.band(Bitwise.bor(@t_list, @t_map), atype) == 0 ->
|
|
2938
|
+
false
|
|
2939
|
+
|
|
2940
|
+
true ->
|
|
2941
|
+
akeys = keysof(a)
|
|
2942
|
+
bkeys = keysof(b)
|
|
2943
|
+
|
|
2944
|
+
length(akeys) == length(bkeys) and
|
|
2945
|
+
Enum.all?(Enum.zip(akeys, bkeys), fn {ak, bk} -> ak == bk and deepequal_(lookup_(a, ak), lookup_(b, bk)) end)
|
|
2946
|
+
end
|
|
2947
|
+
end
|
|
2948
|
+
|
|
2949
|
+
# Every member val has is in out, unchanged. A member only out has is a
|
|
2950
|
+
# default the spec supplied, and is ignored.
|
|
2951
|
+
defp keeps_(val, out) do
|
|
2952
|
+
if Bitwise.band(Bitwise.bor(@t_list, @t_map), typify(val)) == 0 or islist(val) != islist(out) or not isnode(out) do
|
|
2953
|
+
deepequal_(val, out)
|
|
2954
|
+
else
|
|
2955
|
+
Enum.all?(keysof(val), fn k -> holds_(out, k) and keeps_(lookup_(val, k), lookup_(out, k)) end)
|
|
2956
|
+
end
|
|
2957
|
+
end
|
|
2958
|
+
|
|
2959
|
+
# A spec admits a value when validating the value against it finds no error
|
|
2960
|
+
# and gives back the value as it is. Any output keeps an absent value, which
|
|
2961
|
+
# goes down as noarg so that the nested validation reads it as no value.
|
|
2962
|
+
defp admits_(val, held, spec, inj, store) do
|
|
2963
|
+
tval = if held, do: val, else: @noarg
|
|
2964
|
+
terrs = empty_list()
|
|
2965
|
+
vstore = merge(vlist_new([empty_map(), store]), 1)
|
|
2966
|
+
setprop(vstore, @s_dtop, tval)
|
|
2967
|
+
out = validate(tval, spec, vmap_new([{"extra", vstore}, {"errs", terrs}, {"meta", ig(inj, :meta)}]))
|
|
2968
|
+
size(terrs) == 0 and (not held or keeps_(val, out))
|
|
2969
|
+
end
|
|
2970
|
+
|
|
2971
|
+
# The bounds of a $NOF count, and the words for it, which are absent when
|
|
2972
|
+
# the count is invalid. Without a max, the bound is the number of specs.
|
|
2973
|
+
defp nofcount_(count, numtvals) do
|
|
2974
|
+
isnat = fn n -> Bitwise.band(@t_integer, typify(n)) > 0 and n >= 0 end
|
|
2975
|
+
|
|
2976
|
+
if isnat.(count) do
|
|
2977
|
+
{count, count, if(count == 0, do: "none", else: "exactly " <> num_to_string(count))}
|
|
2978
|
+
else
|
|
2979
|
+
min = lookup_(count, "min")
|
|
2980
|
+
max = lookup_(count, "max")
|
|
2981
|
+
|
|
2982
|
+
valid =
|
|
2983
|
+
ismap(count) and size(count) > 0 and
|
|
2984
|
+
size(count) == (if min == nil, do: 0, else: 1) + (if max == nil, do: 0, else: 1) and
|
|
2985
|
+
(min == nil or isnat.(min)) and
|
|
2986
|
+
(max == nil or isnat.(max)) and
|
|
2987
|
+
(min == nil or max == nil or min <= max)
|
|
2988
|
+
|
|
2989
|
+
if valid do
|
|
2990
|
+
lo = if min == nil, do: 0, else: min
|
|
2991
|
+
hi = if max == nil, do: numtvals, else: max
|
|
2992
|
+
|
|
2993
|
+
desc =
|
|
2994
|
+
cond do
|
|
2995
|
+
max == nil -> "at least " <> num_to_string(lo)
|
|
2996
|
+
hi == 0 -> "none"
|
|
2997
|
+
min == nil -> "at most " <> num_to_string(hi)
|
|
2998
|
+
lo == hi -> "exactly " <> num_to_string(lo)
|
|
2999
|
+
true -> num_to_string(lo) <> " to " <> num_to_string(hi)
|
|
3000
|
+
end
|
|
3001
|
+
|
|
3002
|
+
{lo, hi, desc}
|
|
3003
|
+
else
|
|
3004
|
+
{0, 0, nil}
|
|
3005
|
+
end
|
|
3006
|
+
end
|
|
3007
|
+
end
|
|
3008
|
+
|
|
2491
3009
|
# ---------------------------------------------------------------------------
|
|
2492
3010
|
# select
|
|
2493
3011
|
# ---------------------------------------------------------------------------
|
|
@@ -2575,32 +3093,40 @@ defmodule Voxgig.Struct do
|
|
|
2575
3093
|
end
|
|
2576
3094
|
end
|
|
2577
3095
|
|
|
2578
|
-
defp select_cmp(inj,
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
point = getpath(store, ppath)
|
|
3096
|
+
defp select_cmp(inj, v, ref, store) do
|
|
3097
|
+
cond do
|
|
3098
|
+
# The list form of $LIKE is validate's checker; the key form is this operator.
|
|
3099
|
+
ig(inj, :mode) == @m_val and ref == "$LIKE" ->
|
|
3100
|
+
validate_like(inj, v, ref, store)
|
|
2584
3101
|
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
3102
|
+
ig(inj, :mode) == @m_keypre ->
|
|
3103
|
+
term = getprop(ig(inj, :parent), ig(inj, :key))
|
|
3104
|
+
gkey = getelem(ig(inj, :path), -2)
|
|
3105
|
+
ppath = slice(ig(inj, :path), -1)
|
|
3106
|
+
point = getpath(store, ppath)
|
|
3107
|
+
|
|
3108
|
+
pass =
|
|
3109
|
+
cond do
|
|
3110
|
+
ref == "$GT" -> num_cmp(point, term, :gt)
|
|
3111
|
+
ref == "$LT" -> num_cmp(point, term, :lt)
|
|
3112
|
+
ref == "$GTE" -> num_cmp(point, term, :gte)
|
|
3113
|
+
ref == "$LTE" -> num_cmp(point, term, :lte)
|
|
3114
|
+
ref == "$LIKE" -> is_binary(term) and Regex.match?(Regex.compile!(term), stringify(point))
|
|
3115
|
+
true -> false
|
|
3116
|
+
end
|
|
3117
|
+
|
|
3118
|
+
if pass do
|
|
3119
|
+
gp = getelem(ig(inj, :nodes), -2)
|
|
3120
|
+
setprop(gp, gkey, point)
|
|
3121
|
+
else
|
|
3122
|
+
push_err(inj, "CMP: " <> pathify(ppath) <> "⨯" <> stringify(point) <> " fail:" <> js_string(ref) <> " " <> stringify(term))
|
|
2593
3123
|
end
|
|
2594
3124
|
|
|
2595
|
-
|
|
2596
|
-
gp = getelem(ig(inj, :nodes), -2)
|
|
2597
|
-
setprop(gp, gkey, point)
|
|
2598
|
-
else
|
|
2599
|
-
push_err(inj, "CMP: " <> pathify(ppath) <> "⨯" <> stringify(point) <> " fail:" <> js_string(ref) <> " " <> stringify(term))
|
|
2600
|
-
end
|
|
2601
|
-
end
|
|
3125
|
+
nil
|
|
2602
3126
|
|
|
2603
|
-
|
|
3127
|
+
true ->
|
|
3128
|
+
nil
|
|
3129
|
+
end
|
|
2604
3130
|
end
|
|
2605
3131
|
|
|
2606
3132
|
def select(children0, query) do
|
|
@@ -2629,11 +3155,7 @@ defmodule Voxgig.Struct do
|
|
|
2629
3155
|
setprop(extra, "$LTE", &select_cmp/4)
|
|
2630
3156
|
setprop(extra, "$LIKE", &select_cmp/4)
|
|
2631
3157
|
q = clone(query)
|
|
2632
|
-
|
|
2633
|
-
walk(q, after: fn _k, v, _p, _path ->
|
|
2634
|
-
if ismap(v), do: setprop(v, @s_bopen, getprop(v, @s_bopen, true))
|
|
2635
|
-
v
|
|
2636
|
-
end)
|
|
3158
|
+
openquery_(q)
|
|
2637
3159
|
|
|
2638
3160
|
Enum.each(list_items(children), fn child ->
|
|
2639
3161
|
errs = empty_list()
|
|
@@ -2648,6 +3170,318 @@ defmodule Voxgig.Struct do
|
|
|
2648
3170
|
end
|
|
2649
3171
|
end
|
|
2650
3172
|
|
|
3173
|
+
# Open every map in a select query, so a child may hold keys the query does
|
|
3174
|
+
# not name, but leave a directive's literals as written: what $EXACT
|
|
3175
|
+
# compares, and the count or bound of $NOF, $LEN and $RANGE.
|
|
3176
|
+
defp openquery_(q) do
|
|
3177
|
+
cond do
|
|
3178
|
+
ismap(q) ->
|
|
3179
|
+
setprop(q, @s_bopen, getprop(q, @s_bopen, true))
|
|
3180
|
+
Enum.each(items_pairs(q), fn {_, v} -> openquery_(v) end)
|
|
3181
|
+
|
|
3182
|
+
islist(q) ->
|
|
3183
|
+
elems = list_items(q)
|
|
3184
|
+
head = List.first(elems)
|
|
3185
|
+
exact = head == @s_bexact
|
|
3186
|
+
bounded = head in ["`$NOF`", "`$LEN`", "`$RANGE`"]
|
|
3187
|
+
|
|
3188
|
+
elems
|
|
3189
|
+
|> Enum.with_index()
|
|
3190
|
+
|> Enum.each(fn {v, i} ->
|
|
3191
|
+
if i == 0 or not (exact or (bounded and i == 1)), do: openquery_(v)
|
|
3192
|
+
end)
|
|
3193
|
+
|
|
3194
|
+
true ->
|
|
3195
|
+
nil
|
|
3196
|
+
end
|
|
3197
|
+
end
|
|
3198
|
+
|
|
3199
|
+
# ---------------------------------------------------------------------------
|
|
3200
|
+
# condense
|
|
3201
|
+
# ---------------------------------------------------------------------------
|
|
3202
|
+
|
|
3203
|
+
def iscondensed(val \\ nil), do: ismap(val) and condensedpairs_(map_pairs(val))
|
|
3204
|
+
|
|
3205
|
+
# The version has to match, not merely be a number: a later format read with
|
|
3206
|
+
# this one's schema would decode wrongly without failing.
|
|
3207
|
+
defp condensedpairs_(pairs) do
|
|
3208
|
+
case List.keyfind(pairs, @s_condense, 0) do
|
|
3209
|
+
{_, v} when is_number(v) and v == @condense_version ->
|
|
3210
|
+
islist(pairval_(pairs, @s_condsym)) and islist(pairval_(pairs, @s_condnode)) and
|
|
3211
|
+
is_number(pairval_(pairs, @s_condroot))
|
|
3212
|
+
|
|
3213
|
+
_ ->
|
|
3214
|
+
false
|
|
3215
|
+
end
|
|
3216
|
+
end
|
|
3217
|
+
|
|
3218
|
+
defp pairval_(pairs, k) do
|
|
3219
|
+
case List.keyfind(pairs, k, 0) do
|
|
3220
|
+
{_, v} -> v
|
|
3221
|
+
nil -> nil
|
|
3222
|
+
end
|
|
3223
|
+
end
|
|
3224
|
+
|
|
3225
|
+
def condense(val) do
|
|
3226
|
+
# UTF-8 byte order is code-point order, the order the format sorts symbols in.
|
|
3227
|
+
sym = val |> condensecollect_(MapSet.new()) |> Enum.sort()
|
|
3228
|
+
symid = sym |> Enum.with_index() |> Map.new()
|
|
3229
|
+
{root, {nodes, _, _}} = condensebuild_(val, symid, {[], 0, %{}})
|
|
3230
|
+
|
|
3231
|
+
vmap_new([
|
|
3232
|
+
{@s_condense, @condense_version},
|
|
3233
|
+
{@s_condsym, vlist_new(sym)},
|
|
3234
|
+
{@s_condnode, vlist_new(nodes |> Enum.reverse() |> Enum.map(&vlist_new/1))},
|
|
3235
|
+
{@s_condroot, root}
|
|
3236
|
+
])
|
|
3237
|
+
end
|
|
3238
|
+
|
|
3239
|
+
defp condensecollect_(n, acc) do
|
|
3240
|
+
cond do
|
|
3241
|
+
ismap(n) -> Enum.reduce(map_pairs(n), acc, fn {k, v}, a -> condensecollect_(v, MapSet.put(a, k)) end)
|
|
3242
|
+
islist(n) -> Enum.reduce(list_items(n), acc, &condensecollect_/2)
|
|
3243
|
+
is_binary(n) -> MapSet.put(acc, n)
|
|
3244
|
+
true -> acc
|
|
3245
|
+
end
|
|
3246
|
+
end
|
|
3247
|
+
|
|
3248
|
+
# Post-order, so a subtree is interned before its parent refers to it, and
|
|
3249
|
+
# map pairs in ascending symbol id, so that a lookup can bisect them.
|
|
3250
|
+
defp condensebuild_(n, symid, acc) do
|
|
3251
|
+
cond do
|
|
3252
|
+
ismap(n) ->
|
|
3253
|
+
{enc, acc} =
|
|
3254
|
+
map_pairs(n)
|
|
3255
|
+
|> Enum.sort_by(&elem(&1, 0))
|
|
3256
|
+
|> Enum.reduce({[], acc}, fn {k, v}, {enc, a} ->
|
|
3257
|
+
{vi, a} = condensebuild_(v, symid, a)
|
|
3258
|
+
{[vi, Map.fetch!(symid, k) | enc], a}
|
|
3259
|
+
end)
|
|
3260
|
+
|
|
3261
|
+
condenseintern_([@condense_map | Enum.reverse(enc)], acc)
|
|
3262
|
+
|
|
3263
|
+
islist(n) ->
|
|
3264
|
+
{enc, acc} =
|
|
3265
|
+
Enum.reduce(list_items(n), {[], acc}, fn v, {enc, a} ->
|
|
3266
|
+
{vi, a} = condensebuild_(v, symid, a)
|
|
3267
|
+
{[vi | enc], a}
|
|
3268
|
+
end)
|
|
3269
|
+
|
|
3270
|
+
condenseintern_([@condense_list | Enum.reverse(enc)], acc)
|
|
3271
|
+
|
|
3272
|
+
is_binary(n) ->
|
|
3273
|
+
condenseintern_([@condense_str, Map.fetch!(symid, n)], acc)
|
|
3274
|
+
|
|
3275
|
+
is_number(n) ->
|
|
3276
|
+
condenseintern_([@condense_num, n], acc)
|
|
3277
|
+
|
|
3278
|
+
n == true ->
|
|
3279
|
+
condenseintern_([@condense_true], acc)
|
|
3280
|
+
|
|
3281
|
+
n == false ->
|
|
3282
|
+
condenseintern_([@condense_false], acc)
|
|
3283
|
+
|
|
3284
|
+
true ->
|
|
3285
|
+
condenseintern_([@condense_null], acc)
|
|
3286
|
+
end
|
|
3287
|
+
end
|
|
3288
|
+
|
|
3289
|
+
# An integral float keys as its integer, so 1 and 1.0 share one node.
|
|
3290
|
+
defp condenseintern_(enc, {nodes, count, seen} = acc) do
|
|
3291
|
+
key = Enum.map(enc, &condenseint_/1)
|
|
3292
|
+
|
|
3293
|
+
case Map.fetch(seen, key) do
|
|
3294
|
+
{:ok, idx} -> {idx, acc}
|
|
3295
|
+
:error -> {count, {[enc | nodes], count + 1, Map.put(seen, key, count)}}
|
|
3296
|
+
end
|
|
3297
|
+
end
|
|
3298
|
+
|
|
3299
|
+
defp condenseint_(n) when is_float(n), do: if(n == Float.floor(n), do: trunc(n), else: n)
|
|
3300
|
+
defp condenseint_(n), do: n
|
|
3301
|
+
|
|
3302
|
+
defp condensefound_(idx), do: is_number(idx) and idx >= 0
|
|
3303
|
+
|
|
3304
|
+
defp condensetuple_(cd, key) do
|
|
3305
|
+
v = lookup_(cd, key)
|
|
3306
|
+
if islist(v), do: List.to_tuple(list_items(v)), else: {}
|
|
3307
|
+
end
|
|
3308
|
+
|
|
3309
|
+
defp condensesym_(syms, id) do
|
|
3310
|
+
i = condenseint_(id)
|
|
3311
|
+
if is_integer(i) and i >= 0 and i < tuple_size(syms), do: elem(syms, i)
|
|
3312
|
+
end
|
|
3313
|
+
|
|
3314
|
+
# Node idx as a list of its encoding, or nil when there is no such node.
|
|
3315
|
+
defp condenseenc_(nodes, idx) do
|
|
3316
|
+
i = condenseint_(idx)
|
|
3317
|
+
|
|
3318
|
+
if is_integer(i) and i >= 0 and i < tuple_size(nodes) do
|
|
3319
|
+
enc = elem(nodes, i)
|
|
3320
|
+
|
|
3321
|
+
cond do
|
|
3322
|
+
islist(enc) -> list_items(enc)
|
|
3323
|
+
enc == nil -> nil
|
|
3324
|
+
true -> []
|
|
3325
|
+
end
|
|
3326
|
+
end
|
|
3327
|
+
end
|
|
3328
|
+
|
|
3329
|
+
defp condensesymid_(syms, key, lo, hi) when lo <= hi do
|
|
3330
|
+
mid = div(lo + hi, 2)
|
|
3331
|
+
s = elem(syms, mid)
|
|
3332
|
+
|
|
3333
|
+
cond do
|
|
3334
|
+
s == key -> mid
|
|
3335
|
+
s < key -> condensesymid_(syms, key, mid + 1, hi)
|
|
3336
|
+
true -> condensesymid_(syms, key, lo, mid - 1)
|
|
3337
|
+
end
|
|
3338
|
+
end
|
|
3339
|
+
|
|
3340
|
+
defp condensesymid_(_syms, _key, _lo, _hi), do: -1
|
|
3341
|
+
|
|
3342
|
+
defp condensepair_(enc, id, lo, hi) when lo <= hi do
|
|
3343
|
+
mid = div(lo + hi, 2)
|
|
3344
|
+
k = elem(enc, 1 + mid * 2)
|
|
3345
|
+
|
|
3346
|
+
cond do
|
|
3347
|
+
k == id -> elem(enc, 2 + mid * 2)
|
|
3348
|
+
k < id -> condensepair_(enc, id, mid + 1, hi)
|
|
3349
|
+
true -> condensepair_(enc, id, lo, mid - 1)
|
|
3350
|
+
end
|
|
3351
|
+
end
|
|
3352
|
+
|
|
3353
|
+
defp condensepair_(_enc, _id, _lo, _hi), do: -1
|
|
3354
|
+
|
|
3355
|
+
defp condensechild_(_syms, _nodes, _idx, key) when not (is_binary(key) or is_number(key)), do: -1
|
|
3356
|
+
|
|
3357
|
+
defp condensechild_(syms, nodes, idx, key) do
|
|
3358
|
+
case condenseenc_(nodes, idx) do
|
|
3359
|
+
[kind | _] = enc when kind == @condense_map ->
|
|
3360
|
+
case condensesymid_(syms, js_string(key), 0, tuple_size(syms) - 1) do
|
|
3361
|
+
-1 -> -1
|
|
3362
|
+
id -> condensepair_(List.to_tuple(enc), id, 0, div(length(enc) - 1, 2) - 1)
|
|
3363
|
+
end
|
|
3364
|
+
|
|
3365
|
+
[kind | items] when kind == @condense_list ->
|
|
3366
|
+
i = listidx_(js_string(key)) || -1
|
|
3367
|
+
if i >= 0 and i < length(items), do: Enum.at(items, i), else: -1
|
|
3368
|
+
|
|
3369
|
+
_ ->
|
|
3370
|
+
-1
|
|
3371
|
+
end
|
|
3372
|
+
end
|
|
3373
|
+
|
|
3374
|
+
defp condenseparts_(path) do
|
|
3375
|
+
cond do
|
|
3376
|
+
islist(path) -> list_items(path)
|
|
3377
|
+
path == @s_mt or path == nil or path == @noarg -> []
|
|
3378
|
+
is_binary(path) -> String.split(path, ".")
|
|
3379
|
+
true -> [js_string(path)]
|
|
3380
|
+
end
|
|
3381
|
+
end
|
|
3382
|
+
|
|
3383
|
+
defp condensewalk_(cd, idx, parts) do
|
|
3384
|
+
syms = condensetuple_(cd, @s_condsym)
|
|
3385
|
+
nodes = condensetuple_(cd, @s_condnode)
|
|
3386
|
+
|
|
3387
|
+
Enum.reduce_while(parts, idx, fn part, at ->
|
|
3388
|
+
cond do
|
|
3389
|
+
is_number(at) and at < 0 -> {:halt, -1}
|
|
3390
|
+
part == @s_mt -> {:cont, at}
|
|
3391
|
+
true -> {:cont, condensechild_(syms, nodes, at, part)}
|
|
3392
|
+
end
|
|
3393
|
+
end)
|
|
3394
|
+
end
|
|
3395
|
+
|
|
3396
|
+
# A fresh tree each call: no materialisation shares a container with another,
|
|
3397
|
+
# even where the condensed form shares the node.
|
|
3398
|
+
defp condensematerialise_(cd, idx) do
|
|
3399
|
+
if is_number(idx) and idx < 0 do
|
|
3400
|
+
nil
|
|
3401
|
+
else
|
|
3402
|
+
condenserebuild_(condensetuple_(cd, @s_condsym), condensetuple_(cd, @s_condnode), idx)
|
|
3403
|
+
end
|
|
3404
|
+
end
|
|
3405
|
+
|
|
3406
|
+
defp condenserebuild_(syms, nodes, idx) do
|
|
3407
|
+
case condenseenc_(nodes, idx) do
|
|
3408
|
+
[kind | pairs] when kind == @condense_map ->
|
|
3409
|
+
pairs
|
|
3410
|
+
|> Enum.chunk_every(2)
|
|
3411
|
+
|> Enum.map(fn [k | v] -> {mapkey(condensesym_(syms, k)), condenserebuild_(syms, nodes, List.first(v))} end)
|
|
3412
|
+
|> vmap_new()
|
|
3413
|
+
|
|
3414
|
+
[kind | items] when kind == @condense_list ->
|
|
3415
|
+
vlist_new(Enum.map(items, &condenserebuild_(syms, nodes, &1)))
|
|
3416
|
+
|
|
3417
|
+
[kind | rest] when kind == @condense_str ->
|
|
3418
|
+
condensesym_(syms, List.first(rest))
|
|
3419
|
+
|
|
3420
|
+
[kind | rest] when kind == @condense_num ->
|
|
3421
|
+
List.first(rest)
|
|
3422
|
+
|
|
3423
|
+
[kind | _] when kind == @condense_true ->
|
|
3424
|
+
true
|
|
3425
|
+
|
|
3426
|
+
[kind | _] when kind == @condense_false ->
|
|
3427
|
+
false
|
|
3428
|
+
|
|
3429
|
+
_ ->
|
|
3430
|
+
nil
|
|
3431
|
+
end
|
|
3432
|
+
end
|
|
3433
|
+
|
|
3434
|
+
def expand(cd) do
|
|
3435
|
+
if iscondensed(cd), do: condensematerialise_(cd, lookup_(cd, @s_condroot)), else: cd
|
|
3436
|
+
end
|
|
3437
|
+
|
|
3438
|
+
defp condensekeys_(cd, idx) do
|
|
3439
|
+
case condenseenc_(condensetuple_(cd, @s_condnode), idx) do
|
|
3440
|
+
[kind | pairs] when kind == @condense_map ->
|
|
3441
|
+
syms = condensetuple_(cd, @s_condsym)
|
|
3442
|
+
pairs |> Enum.take_every(2) |> Enum.map(&condensesym_(syms, &1))
|
|
3443
|
+
|
|
3444
|
+
[kind | items] when kind == @condense_list ->
|
|
3445
|
+
items |> Enum.with_index() |> Enum.map(fn {_, i} -> Integer.to_string(i) end)
|
|
3446
|
+
|
|
3447
|
+
_ ->
|
|
3448
|
+
[]
|
|
3449
|
+
end
|
|
3450
|
+
end
|
|
3451
|
+
|
|
3452
|
+
defp condensesize_(cd, idx) do
|
|
3453
|
+
case condenseenc_(condensetuple_(cd, @s_condnode), idx) do
|
|
3454
|
+
[kind | pairs] when kind == @condense_map -> div(length(pairs), 2)
|
|
3455
|
+
[kind | items] when kind == @condense_list -> length(items)
|
|
3456
|
+
_ -> 0
|
|
3457
|
+
end
|
|
3458
|
+
end
|
|
3459
|
+
|
|
3460
|
+
# A cursor, as a map of closures: get, keys, has and at take a path (nil for
|
|
3461
|
+
# none), the rest take nothing. ref() hands out ONE shared materialisation
|
|
3462
|
+
# per node, through a memo every view reached by at() shares; mutating it
|
|
3463
|
+
# changes what every other ref() of that node sees.
|
|
3464
|
+
def condenseview(cd, idx \\ nil, memo \\ nil) do
|
|
3465
|
+
start = if idx == nil, do: (if iscondensed(cd), do: lookup_(cd, @s_condroot), else: -1), else: idx
|
|
3466
|
+
refmemo = if memo == nil, do: empty_map(), else: memo
|
|
3467
|
+
resolve = fn path -> condensewalk_(cd, start, condenseparts_(path)) end
|
|
3468
|
+
|
|
3469
|
+
%{
|
|
3470
|
+
get: fn path -> condensematerialise_(cd, resolve.(path)) end,
|
|
3471
|
+
keys: fn path -> condensekeys_(cd, resolve.(path)) end,
|
|
3472
|
+
has: fn path -> condensefound_(resolve.(path)) end,
|
|
3473
|
+
at: fn path -> condenseview(cd, resolve.(path), refmemo) end,
|
|
3474
|
+
value: fn -> condensematerialise_(cd, start) end,
|
|
3475
|
+
size: fn -> condensesize_(cd, start) end,
|
|
3476
|
+
exists: fn -> condensefound_(start) end,
|
|
3477
|
+
ref: fn ->
|
|
3478
|
+
k = js_string(start)
|
|
3479
|
+
if not holds_(refmemo, k), do: setprop(refmemo, k, condensematerialise_(cd, start))
|
|
3480
|
+
lookup_(refmemo, k)
|
|
3481
|
+
end
|
|
3482
|
+
}
|
|
3483
|
+
end
|
|
3484
|
+
|
|
2651
3485
|
# ---------------------------------------------------------------------------
|
|
2652
3486
|
# builders
|
|
2653
3487
|
# ---------------------------------------------------------------------------
|
|
@@ -2665,7 +3499,8 @@ defmodule Voxgig.Struct do
|
|
|
2665
3499
|
else
|
|
2666
3500
|
k0 = Enum.at(kv, i)
|
|
2667
3501
|
k = cond do; k0 == nil -> "null"; is_binary(k0) -> k0; true -> stringify(k0) end
|
|
2668
|
-
|
|
3502
|
+
# Written directly, as canonical's jm assigns: a builder never refuses a condensed shape.
|
|
3503
|
+
map_set_pairs(m, omap_put(map_pairs(m), k, if(i + 1 < n, do: Enum.at(kv, i + 1), else: nil)))
|
|
2669
3504
|
jm_loop(m, kv, n, i + 2)
|
|
2670
3505
|
end
|
|
2671
3506
|
end
|