@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 (clojure/src/voxgig/struct.clj)
|
|
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
|
|
@@ -18,7 +21,7 @@
|
|
|
18
21
|
(:refer-clojure :exclude [merge filter flatten replace]))
|
|
19
22
|
|
|
20
23
|
(import '(java.util LinkedHashMap ArrayList List Map)
|
|
21
|
-
'(java.util.regex Pattern Matcher))
|
|
24
|
+
'(java.util.regex Pattern Matcher PatternSyntaxException))
|
|
22
25
|
|
|
23
26
|
;; ---------------------------------------------------------------------------
|
|
24
27
|
;; String / mode / type constants
|
|
@@ -98,6 +101,7 @@
|
|
|
98
101
|
;; Private markers (compared by identity).
|
|
99
102
|
(def SKIP (doto (LinkedHashMap.) (.put "`$SKIP`" true)))
|
|
100
103
|
(def DELETE (doto (LinkedHashMap.) (.put "`$DELETE`" true)))
|
|
104
|
+
(def ^:private HELDNULL (Object.))
|
|
101
105
|
|
|
102
106
|
(def ^:const MAXDEPTH 32)
|
|
103
107
|
|
|
@@ -107,6 +111,22 @@
|
|
|
107
111
|
(def ^:private R-INJECT-FULL (Pattern/compile "^`(\\$[A-Z]+|[^`]*)[0-9]*`$"))
|
|
108
112
|
(def ^:private R-INJECT-PART (Pattern/compile "`([^`]*)`"))
|
|
109
113
|
(def ^:private R-TRANSFORM-NAME (Pattern/compile "`\\$([A-Z]+)`"))
|
|
114
|
+
(def ^:private R-CHECKER-NAME (Pattern/compile "^\\$[A-Z]+$"))
|
|
115
|
+
|
|
116
|
+
(def ^:private CONDENSE_VERSION 1)
|
|
117
|
+
(def ^:private CONDENSE_MAP 0)
|
|
118
|
+
(def ^:private CONDENSE_LIST 1)
|
|
119
|
+
(def ^:private CONDENSE_STR 2)
|
|
120
|
+
(def ^:private CONDENSE_NUM 3)
|
|
121
|
+
(def ^:private CONDENSE_TRUE 4)
|
|
122
|
+
(def ^:private CONDENSE_FALSE 5)
|
|
123
|
+
(def ^:private CONDENSE_NULL 6)
|
|
124
|
+
(def ^:private S-condense "$condense")
|
|
125
|
+
(def ^:private S-condsym "sym")
|
|
126
|
+
(def ^:private S-condnode "node")
|
|
127
|
+
(def ^:private S-condroot "root")
|
|
128
|
+
(def ^:private CONDENSE-IMMUTABLE
|
|
129
|
+
"struct: condensed structures are immutable - expand() first, then modify the copy")
|
|
110
130
|
|
|
111
131
|
;; ---------------------------------------------------------------------------
|
|
112
132
|
;; Mutable-collection helpers
|
|
@@ -137,7 +157,8 @@
|
|
|
137
157
|
_injecthandler _validatehandler _invalidTypeMsg
|
|
138
158
|
inj-descend inj-child inj-setval
|
|
139
159
|
checkPlacement injectorArgs injectChild
|
|
140
|
-
validate transform select jsonify FORMATTER
|
|
160
|
+
validate transform select jsonify FORMATTER
|
|
161
|
+
iscondensed expand condenseresolve condensematerialise condensekey)
|
|
141
162
|
|
|
142
163
|
;; ---------------------------------------------------------------------------
|
|
143
164
|
;; Low-level numeric / key helpers
|
|
@@ -147,16 +168,27 @@
|
|
|
147
168
|
(defn- jdouble? [v] (or (instance? Double v) (instance? Float v)))
|
|
148
169
|
(defn- jint? [v] (and (number? v) (not (jbool? v)) (not (jdouble? v))))
|
|
149
170
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
171
|
+
;; A list key's index, possibly negative, or nil: an integral number, or the
|
|
172
|
+
;; string String(n) prints for one ("01", " 1", "+1", "1.0" and "-0" are not).
|
|
173
|
+
(defn- listindex [key]
|
|
153
174
|
(cond
|
|
154
|
-
(
|
|
155
|
-
|
|
156
|
-
(
|
|
157
|
-
(
|
|
175
|
+
(jdouble? key) (let [d (double key)]
|
|
176
|
+
(when (and (== d (Math/rint d)) (not (Double/isInfinite d))) (unchecked-long d)))
|
|
177
|
+
(or (string? key) (number? key))
|
|
178
|
+
(let [k (str key)]
|
|
179
|
+
(when (re-matches #"0|-?[1-9][0-9]*" k)
|
|
180
|
+
(try (Long/parseLong k)
|
|
181
|
+
(catch NumberFormatException _ (if (.startsWith k "-") Long/MIN_VALUE Long/MAX_VALUE)))))
|
|
158
182
|
:else nil))
|
|
159
183
|
|
|
184
|
+
;; The index a list read takes key to, or nil: a non-negative list key in range.
|
|
185
|
+
(defn- readindex [^List lst key]
|
|
186
|
+
(let [ki (listindex key)]
|
|
187
|
+
(when (and ki (<= 0 ki) (< ki (.size lst))) ki)))
|
|
188
|
+
|
|
189
|
+
;; Only a string or a number names a property.
|
|
190
|
+
(defn- readkey? [key] (or (string? key) (number? key)))
|
|
191
|
+
|
|
160
192
|
;; ---------------------------------------------------------------------------
|
|
161
193
|
;; Minor utilities
|
|
162
194
|
;; ---------------------------------------------------------------------------
|
|
@@ -249,14 +281,12 @@
|
|
|
249
281
|
(if (or (nil? val) (nil? key))
|
|
250
282
|
alt
|
|
251
283
|
(do
|
|
252
|
-
(when (islist val)
|
|
253
|
-
(let [
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
(when (and (<= 0 nk) (< nk len))
|
|
259
|
-
(reset! out (.get ^List val (int nk))))))))
|
|
284
|
+
(when-let [ki (when (islist val) (listindex key))]
|
|
285
|
+
(let [len (.size ^List val)
|
|
286
|
+
;; A negative key counts from the end.
|
|
287
|
+
nk (if (neg? ki) (+ len ki) ki)]
|
|
288
|
+
(when (and (<= 0 nk) (< nk len))
|
|
289
|
+
(reset! out (.get ^List val (int nk))))))
|
|
260
290
|
(if (nil? @out)
|
|
261
291
|
(if (isfunc alt) (alt) alt)
|
|
262
292
|
@out))))))
|
|
@@ -266,26 +296,24 @@
|
|
|
266
296
|
([val key alt]
|
|
267
297
|
(if (or (nil? val) (nil? key))
|
|
268
298
|
alt
|
|
269
|
-
(let [out (
|
|
270
|
-
|
|
271
|
-
(if (.containsKey ^Map val skey)
|
|
272
|
-
(.get ^Map val skey) alt))
|
|
273
|
-
(islist val) (let [ki (parse-long-strict key)]
|
|
274
|
-
(if (and ki (<= 0 ki) (< ki (.size ^List val)))
|
|
275
|
-
(.get ^List val (int ki)) alt))
|
|
276
|
-
:else alt)]
|
|
277
|
-
(if (nil? out) alt out)))))
|
|
299
|
+
(let [out (_lookup val key)]
|
|
300
|
+
(if (or (nil? out) (identical? out NOARG)) alt out)))))
|
|
278
301
|
|
|
279
302
|
(defn- _lookup [val key]
|
|
280
303
|
(cond
|
|
281
304
|
(or (nil? val) (nil? key)) nil
|
|
282
|
-
(ismap val) (
|
|
283
|
-
|
|
284
|
-
(islist val) (let [ki (parse-long-strict key)]
|
|
285
|
-
(if (and ki (<= 0 ki) (< ki (.size ^List val)))
|
|
286
|
-
(.get ^List val (int ki)) nil))
|
|
305
|
+
(ismap val) (when (readkey? key) (.get ^Map val (str key)))
|
|
306
|
+
(islist val) (when-let [ki (readindex val key)] (.get ^List val (int ki)))
|
|
287
307
|
:else nil))
|
|
288
308
|
|
|
309
|
+
;; Literal presence, beside _lookup: a nil the node holds is a null, not an absent key.
|
|
310
|
+
(defn- _holds [val key]
|
|
311
|
+
(cond
|
|
312
|
+
(nil? key) false
|
|
313
|
+
(ismap val) (and (readkey? key) (.containsKey ^Map val (str key)))
|
|
314
|
+
(islist val) (some? (readindex val key))
|
|
315
|
+
:else false))
|
|
316
|
+
|
|
289
317
|
(defn haskey
|
|
290
318
|
([val] (haskey val nil))
|
|
291
319
|
([val key] (some? (getprop val key))))
|
|
@@ -324,10 +352,11 @@
|
|
|
324
352
|
|
|
325
353
|
(defn setprop [parent key val]
|
|
326
354
|
(when (iskey key)
|
|
355
|
+
(when (iscondensed parent) (throw (RuntimeException. ^String CONDENSE-IMMUTABLE)))
|
|
327
356
|
(cond
|
|
328
357
|
(ismap parent) (.put ^Map parent (str key) val)
|
|
329
358
|
(islist parent)
|
|
330
|
-
(let [ki (
|
|
359
|
+
(let [ki (listindex key)]
|
|
331
360
|
(when ki
|
|
332
361
|
(let [^List p parent len (.size p)]
|
|
333
362
|
(if (>= ki 0)
|
|
@@ -338,10 +367,11 @@
|
|
|
338
367
|
|
|
339
368
|
(defn delprop [parent key]
|
|
340
369
|
(when (iskey key)
|
|
370
|
+
(when (iscondensed parent) (throw (RuntimeException. ^String CONDENSE-IMMUTABLE)))
|
|
341
371
|
(cond
|
|
342
372
|
(ismap parent) (.remove ^Map parent (str key))
|
|
343
373
|
(islist parent)
|
|
344
|
-
(let [ki (
|
|
374
|
+
(let [ki (listindex key)]
|
|
345
375
|
(when ki
|
|
346
376
|
(let [^List p parent]
|
|
347
377
|
(when (and (<= 0 ki) (< ki (.size p)))
|
|
@@ -763,16 +793,34 @@
|
|
|
763
793
|
;; getpath / setpath
|
|
764
794
|
;; ---------------------------------------------------------------------------
|
|
765
795
|
|
|
796
|
+
;; A number part reads as String(n) prints it; any part neither string nor
|
|
797
|
+
;; number makes the whole path miss.
|
|
798
|
+
(defn- pathparts ^ArrayList [path]
|
|
799
|
+
(when (every? #(or (string? %) (number? %)) path)
|
|
800
|
+
(alist-of (map condensekey path))))
|
|
801
|
+
|
|
766
802
|
(defn getpath
|
|
767
803
|
([store path] (getpath store path nil))
|
|
768
804
|
([store path injdef]
|
|
769
805
|
(let [parts (cond
|
|
770
|
-
(islist path) (
|
|
806
|
+
(islist path) (pathparts path)
|
|
771
807
|
(string? path) (alist-of (.split ^String path "\\." -1))
|
|
772
|
-
(
|
|
773
|
-
:else nil)
|
|
774
|
-
|
|
808
|
+
(number? path) (alist-of [(condensekey path)])
|
|
809
|
+
:else nil)
|
|
810
|
+
condensed (and (some? parts) (iscondensed store))
|
|
811
|
+
direct (and condensed
|
|
812
|
+
(nil? (if (inj? injdef) (ig injdef :base) (when injdef (getprop injdef S-base)))))
|
|
813
|
+
store (if (and condensed (not direct)) (expand store) store)]
|
|
814
|
+
(cond
|
|
815
|
+
(nil? parts)
|
|
775
816
|
nil
|
|
817
|
+
|
|
818
|
+
;; Reads only the nodes on the path. A base changes what the path
|
|
819
|
+
;; resolves against, so that read walks the expanded copy instead.
|
|
820
|
+
direct
|
|
821
|
+
(condensematerialise store (condenseresolve store (_lookup store S-condroot) parts))
|
|
822
|
+
|
|
823
|
+
:else
|
|
776
824
|
(let [is-inj (inj? injdef)
|
|
777
825
|
base (if is-inj (ig injdef :base) (when injdef (getprop injdef S-base)))
|
|
778
826
|
dparent (if is-inj (ig injdef :dparent) (when injdef (getprop injdef "dparent")))
|
|
@@ -835,6 +883,7 @@
|
|
|
835
883
|
(defn setpath
|
|
836
884
|
([store path val] (setpath store path val nil))
|
|
837
885
|
([store path val injdef]
|
|
886
|
+
(when (iscondensed store) (throw (RuntimeException. ^String CONDENSE-IMMUTABLE)))
|
|
838
887
|
(let [ptype (typify path)
|
|
839
888
|
parts (cond
|
|
840
889
|
(pos? (bit-and T_list ptype)) (alist-of path)
|
|
@@ -897,7 +946,7 @@
|
|
|
897
946
|
:path (alist-of (concat (ig inj :path) [key]))
|
|
898
947
|
:nodes (alist-of (concat (ig inj :nodes) [val]))
|
|
899
948
|
:handler (ig inj :handler) :errs (ig inj :errs) :meta (ig inj :meta)
|
|
900
|
-
:base (ig inj :base) :modify (ig inj :modify)})]
|
|
949
|
+
:base (ig inj :base) :modify (ig inj :modify) :named false})]
|
|
901
950
|
(is! cinj :prior inj)
|
|
902
951
|
(is! cinj :dpath (alist-of (ig inj :dpath)))
|
|
903
952
|
(is! cinj :dparent (ig inj :dparent))
|
|
@@ -908,12 +957,16 @@
|
|
|
908
957
|
(defn- inj-setval
|
|
909
958
|
([^Inj inj val] (inj-setval inj val nil))
|
|
910
959
|
([^Inj inj val ancestor]
|
|
911
|
-
(let [
|
|
960
|
+
(let [near (or (nil? ancestor) (< ancestor 2))
|
|
961
|
+
[target key] (if near
|
|
912
962
|
[(ig inj :parent) (ig inj :key)]
|
|
913
963
|
[(getelem (ig inj :nodes) (- ancestor)) (getelem (ig inj :path) (- ancestor))])]
|
|
914
|
-
(
|
|
915
|
-
|
|
916
|
-
(setprop target key
|
|
964
|
+
(cond
|
|
965
|
+
;; A list keeps the removed slot as a hole until inject's loop ends.
|
|
966
|
+
(and (nil? val) near (islist target)) (setprop target key SKIP)
|
|
967
|
+
(nil? val) (delprop target key)
|
|
968
|
+
(identical? val HELDNULL) (setprop target key nil)
|
|
969
|
+
:else (setprop target key val)))))
|
|
917
970
|
|
|
918
971
|
;; ---------------------------------------------------------------------------
|
|
919
972
|
;; inject
|
|
@@ -929,7 +982,7 @@
|
|
|
929
982
|
inj (new-inj
|
|
930
983
|
{:mode S-MVAL :full false :keyI 0 :keys (alist-of [S-DTOP]) :key S-DTOP
|
|
931
984
|
:val val :parent parent :path (alist-of [S-DTOP]) :nodes (alist-of [parent])
|
|
932
|
-
:handler _injecthandler :base S-DTOP
|
|
985
|
+
:handler _injecthandler :base S-DTOP :named false
|
|
933
986
|
:modify (when injdef (getprop injdef "modify"))
|
|
934
987
|
:meta (getprop injdef "meta" (lhm))
|
|
935
988
|
:errs (getprop store S-DERRS (alist))})]
|
|
@@ -943,6 +996,7 @@
|
|
|
943
996
|
(when (getprop injdef "dpath") (is! inj :dpath (getprop injdef "dpath"))))
|
|
944
997
|
inj))]
|
|
945
998
|
(inj-descend inj)
|
|
999
|
+
(is! inj :named false)
|
|
946
1000
|
|
|
947
1001
|
(let [val
|
|
948
1002
|
(cond
|
|
@@ -952,6 +1006,7 @@
|
|
|
952
1006
|
(let [ks (vec (map str (map-keys val)))
|
|
953
1007
|
normal (sort (clojure.core/filter #(not (.contains ^String % S-DS)) ks))
|
|
954
1008
|
trans (sort (clojure.core/filter #(.contains ^String % S-DS) ks))]
|
|
1009
|
+
(is! inj :named (> (count normal) 0))
|
|
955
1010
|
(alist-of (concat normal trans)))
|
|
956
1011
|
(alist-of (map str (range (.size ^List val))))))]
|
|
957
1012
|
(loop [nkI 0]
|
|
@@ -970,6 +1025,8 @@
|
|
|
970
1025
|
(_injectstr nodekey store childinj)
|
|
971
1026
|
(reset! nodekeys (ig childinj :keys)))
|
|
972
1027
|
(recur (inc (ig childinj :keyI)))))))
|
|
1028
|
+
(when (islist val)
|
|
1029
|
+
(.removeIf ^List val (reify java.util.function.Predicate (test [_ x] (identical? x SKIP)))))
|
|
973
1030
|
val)
|
|
974
1031
|
|
|
975
1032
|
(string? val)
|
|
@@ -977,20 +1034,22 @@
|
|
|
977
1034
|
(is! inj :mode S-MVAL)
|
|
978
1035
|
(let [v (_injectstr val store inj)]
|
|
979
1036
|
(when-not (identical? v SKIP) (inj-setval inj v))
|
|
980
|
-
v))
|
|
1037
|
+
(if (identical? v HELDNULL) nil v)))
|
|
981
1038
|
|
|
982
1039
|
:else val)]
|
|
983
1040
|
|
|
984
1041
|
;; Custom modification (runs after special commands).
|
|
985
1042
|
(when (and (ig inj :modify) (not (identical? val SKIP)))
|
|
986
1043
|
(let [mkey (ig inj :key) mparent (ig inj :parent) mval (getprop mparent mkey)]
|
|
987
|
-
((ig inj :modify) mval mkey mparent inj)))
|
|
1044
|
+
((ig inj :modify) (when-not (identical? mval SKIP) mval) mkey mparent inj)))
|
|
988
1045
|
|
|
989
1046
|
(is! inj :val val)
|
|
990
1047
|
|
|
991
1048
|
(cond
|
|
992
|
-
|
|
993
|
-
|
|
1049
|
+
;; Read literally: a null a list directive set at $TOP is the result,
|
|
1050
|
+
;; and a $TOP a directive removed leaves no value.
|
|
1051
|
+
(and (nil? (ig inj :prior)) (some? (ig inj :root)))
|
|
1052
|
+
(_lookup (ig inj :root) S-DTOP)
|
|
994
1053
|
(and (= (ig inj :key) S-DTOP) (some? (ig inj :parent)) (haskey (ig inj :parent) S-DTOP))
|
|
995
1054
|
(getprop (ig inj :parent) S-DTOP)
|
|
996
1055
|
:else val)))))
|
|
@@ -1037,19 +1096,13 @@
|
|
|
1037
1096
|
;; ---------------------------------------------------------------------------
|
|
1038
1097
|
|
|
1039
1098
|
(defn- transform_DELETE [inj _val _ref _store]
|
|
1040
|
-
(
|
|
1099
|
+
(inj-setval inj nil) nil)
|
|
1041
1100
|
|
|
1042
1101
|
(defn- transform_COPY [inj _val _ref _store]
|
|
1043
1102
|
(let [mode (ig inj :mode) key (ig inj :key)]
|
|
1044
1103
|
(if (.startsWith ^String mode "key")
|
|
1045
1104
|
key
|
|
1046
|
-
(let [
|
|
1047
|
-
out (if-not (isnode dparent)
|
|
1048
|
-
(if (not= (size path) 2)
|
|
1049
|
-
dparent
|
|
1050
|
-
(if (parse-long-strict key) dparent nil))
|
|
1051
|
-
(let [o (getprop dparent key)]
|
|
1052
|
-
(if (and (nil? o) (some? key) (parse-long-strict key)) dparent o)))]
|
|
1105
|
+
(let [out (_lookup (ig inj :dparent) key)]
|
|
1053
1106
|
(inj-setval inj out)
|
|
1054
1107
|
out))))
|
|
1055
1108
|
|
|
@@ -1209,40 +1262,45 @@
|
|
|
1209
1262
|
(setprop target tkey @rval)
|
|
1210
1263
|
nil)))))))))
|
|
1211
1264
|
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
(let [
|
|
1217
|
-
(
|
|
1218
|
-
|
|
1219
|
-
(
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
(
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1265
|
+
;; A chain of references that comes back to a path it has named names nothing.
|
|
1266
|
+
(defn- _refchain [spec refinj ref refpath]
|
|
1267
|
+
(loop [nxt ref seen #{refpath}]
|
|
1268
|
+
(if (and (islist nxt) (= "`$REF`" (_lookup nxt 0)))
|
|
1269
|
+
(let [nextpath (_lookup nxt 1)]
|
|
1270
|
+
(if (contains? seen nextpath)
|
|
1271
|
+
nil
|
|
1272
|
+
(recur (getpath spec nextpath refinj) (conj seen nextpath))))
|
|
1273
|
+
ref)))
|
|
1274
|
+
|
|
1275
|
+
(defn- transform_REF [inj _val _ref store]
|
|
1276
|
+
(if (not= (ig inj :mode) S-MVAL)
|
|
1277
|
+
nil
|
|
1278
|
+
(let [refpath (getprop (ig inj :parent) 1)]
|
|
1279
|
+
(is! inj :keyI (size (ig inj :keys)))
|
|
1280
|
+
(let [spec-func (getprop store S-DSPEC)]
|
|
1281
|
+
(if-not (isfunc spec-func)
|
|
1282
|
+
nil
|
|
1283
|
+
(let [spec (spec-func)
|
|
1284
|
+
;; A relative path starts where this slot is, so .x is a sibling.
|
|
1285
|
+
dpath (slice (ig inj :path) 1 -2)
|
|
1286
|
+
refinj (doto (lhm) (.put "dpath" dpath) (.put "dparent" (getpath spec dpath)))
|
|
1287
|
+
ref (_refchain spec refinj (getpath spec refpath refinj) refpath)
|
|
1288
|
+
hasSubRef (atom false)]
|
|
1289
|
+
(when (isnode ref)
|
|
1290
|
+
(walk ref (fn [_k v _p _path] (when (= v "`$REF`") (reset! hasSubRef true)) v)))
|
|
1291
|
+
;; A recursive reference stops where the data does.
|
|
1292
|
+
(let [tpath (slice (ig inj :path) 0 (- (size (ig inj :path)) 1))
|
|
1293
|
+
tval (getpath store tpath)
|
|
1294
|
+
rval (when (or (not @hasSubRef) (some? tval)) (clone ref))
|
|
1295
|
+
;; The enclosing loop injects the referenced spec in this list's place, so
|
|
1296
|
+
;; neither this pass nor this element leaves a value for modify to check.
|
|
1297
|
+
grandparent (inj-setval inj rval 2)
|
|
1298
|
+
prior (ig inj :prior)]
|
|
1299
|
+
(when prior
|
|
1300
|
+
(is! prior :modify nil)
|
|
1301
|
+
(when (or (islist grandparent) (some? rval))
|
|
1302
|
+
(is! prior :keyI (dec (ig prior :keyI)))))
|
|
1303
|
+
SKIP)))))))
|
|
1246
1304
|
|
|
1247
1305
|
;; FORMATTER
|
|
1248
1306
|
(defn- jsstr [v]
|
|
@@ -1407,11 +1465,18 @@
|
|
|
1407
1465
|
;; validate
|
|
1408
1466
|
;; ---------------------------------------------------------------------------
|
|
1409
1467
|
|
|
1468
|
+
;; A null the data holds comes back as HELDNULL, which inj-setval writes:
|
|
1469
|
+
;; it deletes the slot for nil, and a list would shift down.
|
|
1470
|
+
(defn- _keepnull [inj out]
|
|
1471
|
+
(if (and (nil? out) (= (ig inj :mode) S-MVAL) (true? (ig inj :full)) (_holds (ig inj :dparent) (ig inj :key)))
|
|
1472
|
+
HELDNULL
|
|
1473
|
+
out))
|
|
1474
|
+
|
|
1410
1475
|
(defn- validate_STRING [inj _val _ref _store]
|
|
1411
|
-
(let [out (
|
|
1476
|
+
(let [out (_lookup (ig inj :dparent) (ig inj :key)) t (typify out)]
|
|
1412
1477
|
(cond
|
|
1413
|
-
(zero? (bit-and T_string t)) (do (.add ^List (ig inj :errs) (_invalidTypeMsg (ig inj :path) S-string t out "V1010"))
|
|
1414
|
-
(= out S-MT) (do (.add ^List (ig inj :errs) (str "Empty string at " (pathify (ig inj :path) 1)))
|
|
1478
|
+
(zero? (bit-and T_string t)) (do (.add ^List (ig inj :errs) (_invalidTypeMsg (ig inj :path) S-string t out "V1010")) (_keepnull inj out))
|
|
1479
|
+
(= out S-MT) (do (.add ^List (ig inj :errs) (str "Empty string at " (pathify (ig inj :path) 1))) out)
|
|
1415
1480
|
:else out)))
|
|
1416
1481
|
|
|
1417
1482
|
(defn- validate_TYPE [inj _val ref _store]
|
|
@@ -1419,14 +1484,17 @@
|
|
|
1419
1484
|
idx (.indexOf ^java.util.List (vec TYPENAME) tname)
|
|
1420
1485
|
typev0 (if (>= idx 0) (bit-shift-left 1 (- 31 idx)) 0)
|
|
1421
1486
|
typev (if (= tname S-nil) (bit-or typev0 T_null) typev0)
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1487
|
+
dparent (ig inj :dparent)
|
|
1488
|
+
key (ig inj :key)
|
|
1489
|
+
out (_lookup dparent key)
|
|
1490
|
+
;; One nil: only the slot tells a missing field (no value) from a held null.
|
|
1491
|
+
t (if (or (some? out) (_holds dparent key)) (typify out) T_noval)]
|
|
1492
|
+
(when (zero? (bit-and t typev))
|
|
1493
|
+
(.add ^List (ig inj :errs) (_invalidTypeMsg (ig inj :path) tname t out "V1001")))
|
|
1494
|
+
(_keepnull inj out)))
|
|
1427
1495
|
|
|
1428
1496
|
(defn- validate_ANY [inj _val _ref _store]
|
|
1429
|
-
(
|
|
1497
|
+
(_keepnull inj (_lookup (ig inj :dparent) (ig inj :key))))
|
|
1430
1498
|
|
|
1431
1499
|
(defn- validate_CHILD [inj _val _ref _store]
|
|
1432
1500
|
(let [mode (ig inj :mode) key (ig inj :key) parent (ig inj :parent)
|
|
@@ -1440,8 +1508,8 @@
|
|
|
1440
1508
|
(nil? tval) (let [tval (lhm)]
|
|
1441
1509
|
(doseq [ckey (keysof tval)] (setprop parent ckey (clone childtm)) (.add ^List keys ckey))
|
|
1442
1510
|
(delprop parent key) nil)
|
|
1443
|
-
|
|
1444
|
-
(
|
|
1511
|
+
;; _validation reports the mismatch, once.
|
|
1512
|
+
(not (ismap tval)) nil
|
|
1445
1513
|
:else
|
|
1446
1514
|
(do (doseq [ckey (keysof tval)] (setprop parent ckey (clone childtm)) (.add ^List keys ckey))
|
|
1447
1515
|
(delprop parent key) nil)))
|
|
@@ -1452,74 +1520,332 @@
|
|
|
1452
1520
|
(not (islist parent)) (do (.add ^List (ig inj :errs) "Invalid $CHILD as value") nil)
|
|
1453
1521
|
(nil? (ig inj :dparent)) (do (.clear ^List parent) nil)
|
|
1454
1522
|
(not (islist (ig inj :dparent)))
|
|
1455
|
-
(do (
|
|
1456
|
-
(is! inj :keyI (size parent)) (ig inj :dparent))
|
|
1523
|
+
(do (is! inj :keyI (size parent)) (ig inj :dparent))
|
|
1457
1524
|
:else
|
|
1458
1525
|
(do (doseq [n (items (ig inj :dparent))] (setprop parent (nth n 0) (clone childtm)))
|
|
1459
1526
|
(while (> (.size ^List parent) (.size ^List (ig inj :dparent))) (.remove ^List parent (int (dec (.size ^List parent)))))
|
|
1460
|
-
|
|
1461
|
-
|
|
1527
|
+
;; NOTE: modifying inj! This extends the child value loop in inject
|
|
1528
|
+
;; to cover every cloned child.
|
|
1529
|
+
(doseq [ckeyI (range (size keys) (size parent))] (.add ^List keys (strkey ckeyI)))
|
|
1530
|
+
;; Restart the child value loop at the first element (the loop
|
|
1531
|
+
;; increments keyI on resume) so that the first element is also
|
|
1532
|
+
;; validated against the child template.
|
|
1533
|
+
(is! inj :keyI -1)
|
|
1534
|
+
;; SKIP leaves the cloned child template in place at the first
|
|
1535
|
+
;; element so the resumed loop can validate it.
|
|
1536
|
+
SKIP)))
|
|
1462
1537
|
:else nil)))
|
|
1463
1538
|
|
|
1464
|
-
(defn-
|
|
1539
|
+
(defn- _restmsg [path problem]
|
|
1540
|
+
(str "The $REST validator at field " (pathify path) problem))
|
|
1541
|
+
|
|
1542
|
+
;; The members a spec does not name: the map form is a key, the list form a
|
|
1543
|
+
;; tuple's last item. Each places clones of its spec for the loop to check.
|
|
1544
|
+
(defn- validate_REST [inj _val _ref _store]
|
|
1545
|
+
(let [mode (ig inj :mode) parent (ig inj :parent) keys (ig inj :keys)
|
|
1546
|
+
path (ig inj :path) prior (ig inj :prior)]
|
|
1547
|
+
(cond
|
|
1548
|
+
(= mode S-MKEYPRE)
|
|
1549
|
+
(let [resttm (_lookup parent (ig inj :key))
|
|
1550
|
+
tval (getprop (ig inj :dparent) (getelem path -2))]
|
|
1551
|
+
(when (ismap tval)
|
|
1552
|
+
(doseq [ckey (keysof tval)]
|
|
1553
|
+
(when-not (.contains ^List keys ckey)
|
|
1554
|
+
(setprop parent ckey (clone resttm))
|
|
1555
|
+
(.add ^List keys ckey))))
|
|
1556
|
+
(inj-setval inj nil)
|
|
1557
|
+
nil)
|
|
1558
|
+
|
|
1559
|
+
(or (not= mode S-MVAL) (nil? prior) (not (islist (ig prior :parent))) (not= 0 (ig inj :keyI)))
|
|
1560
|
+
(do (.add ^List (ig inj :errs) (_restmsg (slice path 1) " must be the last element of an array."))
|
|
1561
|
+
nil)
|
|
1562
|
+
|
|
1563
|
+
:else
|
|
1564
|
+
(let [tuple (ig prior :parent)
|
|
1565
|
+
slot (listindex (ig prior :key))
|
|
1566
|
+
dlist (ig prior :dparent)
|
|
1567
|
+
numitems (if (islist dlist) (size dlist) 0)]
|
|
1568
|
+
(is! inj :keyI (size keys))
|
|
1569
|
+
(is! prior :modify nil)
|
|
1570
|
+
(if (<= numitems slot)
|
|
1571
|
+
(inj-setval inj nil 2)
|
|
1572
|
+
(let [resttm (_lookup parent 1)
|
|
1573
|
+
^List pkeys (ig prior :keys)]
|
|
1574
|
+
(doseq [i (range slot numitems)] (setprop tuple i (clone resttm)))
|
|
1575
|
+
(doseq [i (range (size pkeys) numitems)] (.add pkeys (strkey i)))
|
|
1576
|
+
(is! prior :keyI (dec (ig prior :keyI)))))
|
|
1577
|
+
SKIP))))
|
|
1578
|
+
|
|
1579
|
+
;; The data value at a list directive's slot, and whether the slot holds one.
|
|
1580
|
+
;; The directive's own dparent was read with getprop, which reports a stored
|
|
1581
|
+
;; null as absent, and with one nil only the slot can tell them apart.
|
|
1582
|
+
(defn- _slotval [inj]
|
|
1583
|
+
(let [prior (ig inj :prior)
|
|
1584
|
+
[cval held] (if (nil? prior)
|
|
1585
|
+
[(ig inj :dparent) (some? (ig inj :dparent))]
|
|
1586
|
+
[(_lookup (ig prior :dparent) (ig prior :key)) (_holds (ig prior :dparent) (ig prior :key))])]
|
|
1587
|
+
;; A trial hands an absent value down as NOARG: the slot holds no value.
|
|
1588
|
+
(if (identical? cval NOARG) [nil false] [cval held])))
|
|
1589
|
+
|
|
1590
|
+
;; inj-setval deletes for nil, so a null the slot holds is set directly.
|
|
1591
|
+
(defn- _slotset [inj cval held]
|
|
1592
|
+
(if (and (nil? cval) held)
|
|
1593
|
+
(setprop (getelem (ig inj :nodes) -2) (getelem (ig inj :path) -2) nil)
|
|
1594
|
+
(inj-setval inj cval 2)))
|
|
1595
|
+
|
|
1596
|
+
;; JSON equality: numbers by value, lists in order, maps by key in any order.
|
|
1597
|
+
(defn- _deepequal [a b]
|
|
1598
|
+
(let [atype (typify a)]
|
|
1599
|
+
(cond
|
|
1600
|
+
(and (number? a) (number? b)) (== a b)
|
|
1601
|
+
(= a b) true
|
|
1602
|
+
(or (not= atype (typify b)) (zero? (bit-and (bit-or T_list T_map) atype))) false
|
|
1603
|
+
:else
|
|
1604
|
+
(let [akeys (keysof a) bkeys (keysof b)]
|
|
1605
|
+
(and (= (count akeys) (count bkeys))
|
|
1606
|
+
(every? true? (map (fn [ak bk] (and (= ak bk) (_deepequal (_lookup a ak) (_lookup b bk))))
|
|
1607
|
+
akeys bkeys)))))))
|
|
1608
|
+
|
|
1609
|
+
;; Every member val has is in out, unchanged. A member only out has is a
|
|
1610
|
+
;; default the spec supplied, and is ignored.
|
|
1611
|
+
(defn- _keeps [val out]
|
|
1612
|
+
(if (or (zero? (bit-and (bit-or T_list T_map) (typify val)))
|
|
1613
|
+
(not= (islist val) (islist out))
|
|
1614
|
+
(not (isnode out)))
|
|
1615
|
+
(_deepequal val out)
|
|
1616
|
+
(every? (fn [k] (and (_holds out k) (_keeps (_lookup val k) (_lookup out k)))) (keysof val))))
|
|
1617
|
+
|
|
1618
|
+
;; A spec admits a value when validating the value against it finds no error
|
|
1619
|
+
;; and gives back the value as it is. Any output keeps an absent value, which
|
|
1620
|
+
;; goes down as NOARG so that the nested validation reads it as no value.
|
|
1621
|
+
(defn- _admits [val held spec inj store]
|
|
1622
|
+
(let [tval (if held val NOARG)
|
|
1623
|
+
terrs (alist)
|
|
1624
|
+
vstore (merge (alist-of [(lhm) store]) 1)]
|
|
1625
|
+
(.put ^Map vstore S-DTOP tval)
|
|
1626
|
+
(let [out (validate tval spec (doto (lhm) (.put "extra" vstore) (.put "errs" terrs) (.put "meta" (ig inj :meta))))]
|
|
1627
|
+
(and (zero? (size terrs)) (or (not held) (_keeps val out))))))
|
|
1628
|
+
|
|
1629
|
+
;; The bounds of a $NOF count, and the words for it, which are absent when
|
|
1630
|
+
;; the count is invalid. Without a max, the bound is the number of specs.
|
|
1631
|
+
;; An integral decimal counts as that integer, as 2.0 is 2 in JavaScript.
|
|
1632
|
+
(defn- _nofcount [cnt numtvals]
|
|
1633
|
+
(let [whole (fn [n] (if (and (jdouble? n) (== n (Math/rint (double n))) (< (Math/abs (double n)) 9.0E18))
|
|
1634
|
+
(long n)
|
|
1635
|
+
n))
|
|
1636
|
+
isnat (fn [n] (and (pos? (bit-and T_integer (typify n))) (>= n 0)))
|
|
1637
|
+
cnt (whole cnt)]
|
|
1638
|
+
(if (isnat cnt)
|
|
1639
|
+
[cnt cnt (if (zero? cnt) "none" (str "exactly " cnt))]
|
|
1640
|
+
(let [cmin (whole (_lookup cnt "min"))
|
|
1641
|
+
cmax (whole (_lookup cnt "max"))
|
|
1642
|
+
valid (and (ismap cnt)
|
|
1643
|
+
(pos? (size cnt))
|
|
1644
|
+
(= (size cnt) (+ (if (nil? cmin) 0 1) (if (nil? cmax) 0 1)))
|
|
1645
|
+
(or (nil? cmin) (isnat cmin))
|
|
1646
|
+
(or (nil? cmax) (isnat cmax))
|
|
1647
|
+
(or (nil? cmin) (nil? cmax) (<= cmin cmax)))]
|
|
1648
|
+
(if-not valid
|
|
1649
|
+
[0 0 nil]
|
|
1650
|
+
(let [lo (if (nil? cmin) 0 cmin)
|
|
1651
|
+
hi (if (nil? cmax) numtvals cmax)]
|
|
1652
|
+
[lo hi (cond
|
|
1653
|
+
(nil? cmax) (str "at least " lo)
|
|
1654
|
+
(zero? hi) "none"
|
|
1655
|
+
(nil? cmin) (str "at most " hi)
|
|
1656
|
+
(== lo hi) (str "exactly " lo)
|
|
1657
|
+
:else (str lo " to " hi))]))))))
|
|
1658
|
+
|
|
1659
|
+
;; The counting list directives. Without a count, every spec has to admit.
|
|
1660
|
+
(defn- _validatecount [inj store name counted]
|
|
1465
1661
|
(let [mode (ig inj :mode) parent (ig inj :parent) keyI (ig inj :keyI)]
|
|
1466
|
-
(
|
|
1467
|
-
(
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1662
|
+
(cond
|
|
1663
|
+
(not= mode S-MVAL) nil
|
|
1664
|
+
|
|
1665
|
+
(or (not (islist parent)) (not= keyI 0))
|
|
1666
|
+
(do (.add ^List (ig inj :errs) (str "The " name " validator at field " (pathify (ig inj :path) 1 1) " must be the first element of an array.")) nil)
|
|
1667
|
+
|
|
1668
|
+
:else
|
|
1669
|
+
(let [[cval held] (_slotval inj)]
|
|
1670
|
+
(is! inj :keyI (size (ig inj :keys)))
|
|
1671
|
+
;; Replace the directive's list with the data value. Each return is SKIP, so
|
|
1672
|
+
;; that inject leaves the detached list alone and validates nothing in it.
|
|
1673
|
+
(_slotset inj cval held)
|
|
1674
|
+
(is! inj :path (slice (ig inj :path) -1))
|
|
1675
|
+
(let [cnt (when counted (_lookup parent 1))
|
|
1676
|
+
^List tvals (alist-of (drop (if counted 2 1) parent))
|
|
1677
|
+
numtvals (size tvals)
|
|
1678
|
+
field (str "The " name " validator at field " (pathify (ig inj :path) 1))]
|
|
1679
|
+
(if (zero? numtvals)
|
|
1680
|
+
(.add ^List (ig inj :errs) (str field (if counted " must have a count and" " must have") " at least one argument."))
|
|
1681
|
+
(let [[lo hi countdesc] (if counted (_nofcount cnt numtvals) [numtvals numtvals "all"])]
|
|
1682
|
+
(if (nil? countdesc)
|
|
1683
|
+
(.add ^List (ig inj :errs) (str field " has an invalid count: " (stringify cnt) "."))
|
|
1684
|
+
(let [admitted (loop [tI 0 admitted 0]
|
|
1685
|
+
(let [left (- numtvals tI)]
|
|
1686
|
+
;; Stop once the specs left cannot change the verdict.
|
|
1687
|
+
(if (or (>= tI numtvals) (< hi admitted) (< (+ admitted left) lo)
|
|
1688
|
+
(and (<= lo admitted) (<= (+ admitted left) hi)))
|
|
1689
|
+
admitted
|
|
1690
|
+
(recur (inc tI) (if (_admits cval held (.get tvals (int tI)) inj store)
|
|
1691
|
+
(inc admitted) admitted)))))]
|
|
1692
|
+
(when (or (< admitted lo) (< hi admitted))
|
|
1693
|
+
(let [valdesc (clojure.string/join ", " (map #(stringify (nth % 1)) (items tvals)))
|
|
1694
|
+
valdesc (re_replace R-TRANSFORM-NAME valdesc (fn [g] (clojure.string/lower-case (nth g 1))))]
|
|
1695
|
+
(.add ^List (ig inj :errs)
|
|
1696
|
+
(_invalidTypeMsg (ig inj :path) (str countdesc " of " valdesc) (typify cval) cval "V0310"))))))))
|
|
1697
|
+
SKIP)))))
|
|
1492
1698
|
|
|
1493
1699
|
(defn- validate_EXACT [inj _val _ref _store]
|
|
1494
1700
|
(let [mode (ig inj :mode) parent (ig inj :parent) key (ig inj :key) keyI (ig inj :keyI)]
|
|
1495
1701
|
(if (= mode S-MVAL)
|
|
1496
1702
|
(if (or (not (islist parent)) (not= keyI 0))
|
|
1497
1703
|
(do (.add ^List (ig inj :errs) (str "The $EXACT validator at field " (pathify (ig inj :path) 1 1) " must be the first element of an array.")) nil)
|
|
1498
|
-
(
|
|
1704
|
+
(let [[cval held] (_slotval inj)]
|
|
1499
1705
|
(is! inj :keyI (size (ig inj :keys)))
|
|
1500
|
-
|
|
1706
|
+
;; Replace [$EXACT, ...] with the data value; SKIP keeps inject off the detached list.
|
|
1707
|
+
(_slotset inj cval held)
|
|
1501
1708
|
(is! inj :path (slice (ig inj :path) 0 (dec (size (ig inj :path)))))
|
|
1502
|
-
(is! inj :key (getelem (ig inj :path) -1))
|
|
1503
1709
|
(let [tvals (alist-of (subvec (vec parent) 1))]
|
|
1504
|
-
(
|
|
1505
|
-
(
|
|
1506
|
-
(
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1710
|
+
(cond
|
|
1711
|
+
(= (size tvals) 0)
|
|
1712
|
+
(.add ^List (ig inj :errs) (str "The $EXACT validator at field " (pathify (ig inj :path) 1 1) " must have at least one argument."))
|
|
1713
|
+
|
|
1714
|
+
;; An absent value equals no argument.
|
|
1715
|
+
(and held (some #(_deepequal % cval) tvals))
|
|
1716
|
+
nil
|
|
1717
|
+
|
|
1718
|
+
:else
|
|
1719
|
+
(let [valdesc (clojure.string/join ", " (map #(stringify (nth % 1)) (items tvals)))
|
|
1720
|
+
valdesc (re_replace R-TRANSFORM-NAME valdesc (fn [g] (clojure.string/lower-case (nth g 1))))]
|
|
1721
|
+
(.add ^List (ig inj :errs)
|
|
1722
|
+
(_invalidTypeMsg (ig inj :path)
|
|
1723
|
+
(str (if (> (size (ig inj :path)) 1) "" "value ")
|
|
1724
|
+
"exactly equal to " (if (= (size tvals) 1) "" "one of ") valdesc)
|
|
1725
|
+
(typify cval) cval "V0110")))))
|
|
1726
|
+
SKIP))
|
|
1727
|
+
(do (delprop parent key) nil))))
|
|
1728
|
+
|
|
1729
|
+
;; Count the specs that admit the value: ['`$NOF`', count, spec, ...], where
|
|
1730
|
+
;; count is an integer, or a map holding min, max or both.
|
|
1731
|
+
(defn- validate_NOF [inj _val _ref store] (_validatecount inj store "$NOF" true))
|
|
1732
|
+
|
|
1733
|
+
;; Every spec admits the value: ['`$ALL`', spec, ...].
|
|
1734
|
+
(defn- validate_ALL [inj _val _ref store] (_validatecount inj store "$ALL" false))
|
|
1735
|
+
|
|
1736
|
+
;; The bounds of a $LEN bound, with -1 for no maximum, and the words for it,
|
|
1737
|
+
;; which are absent when the bound is invalid.
|
|
1738
|
+
(defn- _lenbound [bound]
|
|
1739
|
+
(let [[lo hi countdesc] (_nofcount bound -1)]
|
|
1740
|
+
(if (nil? countdesc)
|
|
1741
|
+
[0 0 nil]
|
|
1742
|
+
[lo hi (str "of length " (cond
|
|
1743
|
+
(== lo hi) lo
|
|
1744
|
+
(== -1 hi) (str "at least " lo)
|
|
1745
|
+
(zero? lo) (str "at most " hi)
|
|
1746
|
+
:else (str lo " to " hi)))])))
|
|
1747
|
+
|
|
1748
|
+
;; A $LIKE pattern compiled by the port's own regex engine; absent unless it compiles.
|
|
1749
|
+
(defn- _likere [pattern]
|
|
1750
|
+
(when (string? pattern)
|
|
1751
|
+
(try (re_compile pattern)
|
|
1752
|
+
(catch PatternSyntaxException _ nil))))
|
|
1753
|
+
|
|
1754
|
+
;; The words for a $RANGE bound, which are absent when the bound is invalid.
|
|
1755
|
+
(defn- _rangedesc [bound]
|
|
1756
|
+
(when (ismap bound)
|
|
1757
|
+
(let [bmin (_lookup bound "min")
|
|
1758
|
+
bmax (_lookup bound "max")
|
|
1759
|
+
bgt (_lookup bound "gt")
|
|
1760
|
+
blt (_lookup bound "lt")
|
|
1761
|
+
lower (if (nil? bmin) bgt bmin)
|
|
1762
|
+
upper (if (nil? bmax) blt bmax)
|
|
1763
|
+
isnum (fn [n] (or (nil? n) (pos? (bit-and T_number (typify n)))))
|
|
1764
|
+
valid (and (pos? (size bound))
|
|
1765
|
+
(= (size bound) (count (remove nil? [bmin bmax bgt blt])))
|
|
1766
|
+
(or (nil? bmin) (nil? bgt))
|
|
1767
|
+
(or (nil? bmax) (nil? blt))
|
|
1768
|
+
(isnum bmin) (isnum bmax) (isnum bgt) (isnum blt)
|
|
1769
|
+
(or (nil? lower) (nil? upper) (<= lower upper)))]
|
|
1770
|
+
(when valid
|
|
1771
|
+
(clojure.string/join " and "
|
|
1772
|
+
(remove nil? [(cond (some? bmin) (str "at least " (stringify bmin))
|
|
1773
|
+
(some? bgt) (str "greater than " (stringify bgt)))
|
|
1774
|
+
(cond (some? bmax) (str "at most " (stringify bmax))
|
|
1775
|
+
(some? blt) (str "less than " (stringify blt)))]))))))
|
|
1776
|
+
|
|
1777
|
+
;; A number within a valid $RANGE bound.
|
|
1778
|
+
(defn- _inrange [bound val]
|
|
1779
|
+
(let [bmin (_lookup bound "min")
|
|
1780
|
+
bmax (_lookup bound "max")
|
|
1781
|
+
bgt (_lookup bound "gt")
|
|
1782
|
+
blt (_lookup bound "lt")]
|
|
1783
|
+
(and (or (nil? bmin) (<= bmin val))
|
|
1784
|
+
(or (nil? bmax) (<= val bmax))
|
|
1785
|
+
(or (nil? bgt) (< bgt val))
|
|
1786
|
+
(or (nil? blt) (< val blt)))))
|
|
1787
|
+
|
|
1788
|
+
;; The bounding list directives: a bound or pattern, then at most one spec that also admits.
|
|
1789
|
+
(defn- _validatebound [inj store name]
|
|
1790
|
+
(let [mode (ig inj :mode) parent (ig inj :parent) keyI (ig inj :keyI)]
|
|
1791
|
+
(cond
|
|
1792
|
+
(not= mode S-MVAL) nil
|
|
1793
|
+
|
|
1794
|
+
(or (not (islist parent)) (not= keyI 0))
|
|
1795
|
+
(do (.add ^List (ig inj :errs) (str "The " name " validator at field " (pathify (ig inj :path) 1 1) " must be the first element of an array.")) nil)
|
|
1796
|
+
|
|
1797
|
+
:else
|
|
1798
|
+
(let [[cval held] (_slotval inj)]
|
|
1799
|
+
(is! inj :keyI (size (ig inj :keys)))
|
|
1800
|
+
;; As for the counting directives: SKIP keeps inject off the detached list.
|
|
1801
|
+
(_slotset inj cval held)
|
|
1802
|
+
(is! inj :path (slice (ig inj :path) -1))
|
|
1803
|
+
(let [field (str "The " name " validator at field " (pathify (ig inj :path) 1))
|
|
1804
|
+
nargs (dec (size parent))
|
|
1805
|
+
islen (= "$LEN" name)
|
|
1806
|
+
islike (= "$LIKE" name)
|
|
1807
|
+
argname (if islike "pattern" "bound")]
|
|
1808
|
+
(if (or (< nargs 1) (< 2 nargs))
|
|
1809
|
+
(.add ^List (ig inj :errs) (str field " must have a " argname " and at most one spec."))
|
|
1810
|
+
(let [bound (_lookup parent 1)
|
|
1811
|
+
like (when islike (_likere bound))
|
|
1812
|
+
[lo hi desc] (if islen
|
|
1813
|
+
(_lenbound bound)
|
|
1814
|
+
[0 0 (if islike (when like (str "like /" bound "/")) (_rangedesc bound))])
|
|
1815
|
+
ctype (typify cval)]
|
|
1816
|
+
(cond
|
|
1817
|
+
(nil? desc)
|
|
1818
|
+
(.add ^List (ig inj :errs) (str field " has an invalid " argname ": " (stringify bound) "."))
|
|
1819
|
+
|
|
1820
|
+
(and (= 2 nargs) (not (_admits cval held (_lookup parent 2) inj store)))
|
|
1821
|
+
(let [specdesc (re_replace R-TRANSFORM-NAME (stringify (_lookup parent 2))
|
|
1822
|
+
(fn [g] (clojure.string/lower-case (nth g 1))))]
|
|
1823
|
+
(.add ^List (ig inj :errs) (_invalidTypeMsg (ig inj :path) specdesc ctype cval "V0410")))
|
|
1824
|
+
|
|
1825
|
+
(zero? (bit-and (cond islen (bit-or T_string T_list T_map) islike T_string :else T_number) ctype))
|
|
1826
|
+
(.add ^List (ig inj :errs)
|
|
1827
|
+
(_invalidTypeMsg (ig inj :path) (cond islen "string, list or map" islike S-string :else S-number)
|
|
1828
|
+
ctype cval "V0420"))
|
|
1829
|
+
|
|
1830
|
+
;; size counts a string in UTF-16 units, not code points.
|
|
1831
|
+
(not (cond
|
|
1832
|
+
islen (let [len (if (string? cval) (.codePointCount ^String cval 0 (.length ^String cval)) (size cval))]
|
|
1833
|
+
(and (<= lo len) (or (== -1 hi) (<= len hi))))
|
|
1834
|
+
islike (re_test like cval)
|
|
1835
|
+
:else (_inrange bound cval)))
|
|
1836
|
+
(.add ^List (ig inj :errs)
|
|
1837
|
+
(_invalidTypeMsg (ig inj :path) (str (if (> (size (ig inj :path)) 1) "" "value ") desc) ctype cval "V0430"))))))
|
|
1838
|
+
SKIP))))
|
|
1839
|
+
|
|
1840
|
+
;; The value's length is within a bound: ['`$LEN`', bound, spec?], where the
|
|
1841
|
+
;; bound is as for a $NOF count. A string's length is in code points.
|
|
1842
|
+
(defn- validate_LEN [inj _val _ref store] (_validatebound inj store "$LEN"))
|
|
1843
|
+
|
|
1844
|
+
;; The value is a number within a bound: ['`$RANGE`', bound, spec?], where the
|
|
1845
|
+
;; bound holds min or gt, max or lt, or one of each.
|
|
1846
|
+
(defn- validate_RANGE [inj _val _ref store] (_validatebound inj store "$RANGE"))
|
|
1847
|
+
|
|
1848
|
+
(defn- validate_LIKE [inj _val _ref store] (_validatebound inj store "$LIKE"))
|
|
1523
1849
|
|
|
1524
1850
|
(defn- _validation [pval key parent inj]
|
|
1525
1851
|
(when (and (some? inj) (not (identical? pval SKIP)))
|
|
@@ -1537,8 +1863,16 @@
|
|
|
1537
1863
|
(if-not (ismap pval)
|
|
1538
1864
|
(.add ^List (ig inj :errs) (_invalidTypeMsg (ig inj :path) (typename ptype) ctype cval "V0020"))
|
|
1539
1865
|
(let [ckeys (keysof cval) pkeys (keysof pval)]
|
|
1540
|
-
|
|
1541
|
-
|
|
1866
|
+
;; Only a spec written as {} is open, even if named keys resolved away.
|
|
1867
|
+
(if (and (or (> (count pkeys) 0) (ig inj :named)) (not (true? (getprop pval "`$OPEN`"))))
|
|
1868
|
+
;; Literal presence: the shape DECLARES the key even when
|
|
1869
|
+
;; its value is nil. Canonical uses `NONE === _lookup`;
|
|
1870
|
+
;; `haskey` is Group A (value-based) and would drop records
|
|
1871
|
+
;; with a nil field from an open ($AND) select.
|
|
1872
|
+
(let [badkeys (clojure.core/filter
|
|
1873
|
+
#(not (and (instance? Map pval)
|
|
1874
|
+
(.containsKey ^Map pval (str %))))
|
|
1875
|
+
ckeys)]
|
|
1542
1876
|
(when (> (size badkeys) 0)
|
|
1543
1877
|
(.add ^List (ig inj :errs)
|
|
1544
1878
|
(str "Unexpected keys at field " (pathify (ig inj :path) 1) S-VIZ (join (alist-of badkeys) ", ")))))
|
|
@@ -1546,8 +1880,19 @@
|
|
|
1546
1880
|
(when (isnode pval) (delprop pval "`$OPEN`"))))))
|
|
1547
1881
|
|
|
1548
1882
|
(islist cval)
|
|
1549
|
-
(
|
|
1550
|
-
(
|
|
1883
|
+
(cond
|
|
1884
|
+
(not (islist pval))
|
|
1885
|
+
(.add ^List (ig inj :errs) (_invalidTypeMsg (ig inj :path) (typename ptype) ctype cval "V0030"))
|
|
1886
|
+
|
|
1887
|
+
;; Closed list, so reject items past the end of the shape.
|
|
1888
|
+
(> (size pval) 0)
|
|
1889
|
+
(let [badkeys (alist-of (map strkey (range (size pval) (size cval))))]
|
|
1890
|
+
(when (> (size badkeys) 0)
|
|
1891
|
+
(.add ^List (ig inj :errs)
|
|
1892
|
+
(str "Unexpected keys at field " (pathify (ig inj :path) 1) S-VIZ (join badkeys ", ")))))
|
|
1893
|
+
|
|
1894
|
+
;; Empty spec list [] means list can be open (any items).
|
|
1895
|
+
:else (merge (alist-of [pval cval])))
|
|
1551
1896
|
|
|
1552
1897
|
exact
|
|
1553
1898
|
(when (not= cval pval)
|
|
@@ -1567,6 +1912,59 @@
|
|
|
1567
1912
|
SKIP)
|
|
1568
1913
|
(_injecthandler inj val ref store))))
|
|
1569
1914
|
|
|
1915
|
+
;; Names a validate spec may use besides its checkers: transform's that it keeps, and $OPEN.
|
|
1916
|
+
(def ^:private VALIDATE-NAMES
|
|
1917
|
+
#{"$TOP" "$SPEC" "$BT" "$DS" "$WHEN" "$ANNO" "$REF" "$FORMAT" "$APPLY" "$OPEN"})
|
|
1918
|
+
|
|
1919
|
+
;; The name a whole-string reference gives, when it is a checker name in any case.
|
|
1920
|
+
(defn- _refname [val]
|
|
1921
|
+
(let [m (when (string? val) (re_find R-INJECT-FULL val))]
|
|
1922
|
+
(when (and (some? m) (re_test R-CHECKER-NAME (.toUpperCase ^String (nth m 1) java.util.Locale/ROOT)))
|
|
1923
|
+
(nth m 1))))
|
|
1924
|
+
|
|
1925
|
+
;; Unknown: undefined and upper case, or a defined name in another case. Null disables a name.
|
|
1926
|
+
(defn- _unknownname [name store]
|
|
1927
|
+
(let [known (fn [n] (or (contains? VALIDATE-NAMES n) (some? (_lookup store n))))
|
|
1928
|
+
upper (.toUpperCase ^String name java.util.Locale/ROOT)]
|
|
1929
|
+
(and (not (known name)) (or (= upper name) (known upper)))))
|
|
1930
|
+
|
|
1931
|
+
;; Report each checker the spec names that validate lacks, and each misplaced
|
|
1932
|
+
;; $REST; $EXACT's arguments are literals. islast: spec is a list's last item.
|
|
1933
|
+
(defn- _checknames
|
|
1934
|
+
([spec store path errs] (_checknames spec store path errs false))
|
|
1935
|
+
([spec store path errs islast]
|
|
1936
|
+
(let [name (_refname spec)
|
|
1937
|
+
head (when (islist spec) (_refname (_lookup spec 0)))
|
|
1938
|
+
restkey "`$REST`"]
|
|
1939
|
+
(cond
|
|
1940
|
+
(some? name)
|
|
1941
|
+
(cond
|
|
1942
|
+
(_unknownname name store)
|
|
1943
|
+
(.add ^List errs (str "Unknown validator " name " at field " (pathify (alist-of path)) "."))
|
|
1944
|
+
(= "$REST" name)
|
|
1945
|
+
(.add ^List errs (_restmsg (alist-of path) " must be the last element of an array.")))
|
|
1946
|
+
|
|
1947
|
+
(= "$EXACT" head)
|
|
1948
|
+
nil
|
|
1949
|
+
|
|
1950
|
+
(= "$REST" head)
|
|
1951
|
+
(do
|
|
1952
|
+
(cond
|
|
1953
|
+
(not (true? islast))
|
|
1954
|
+
(.add ^List errs (_restmsg (alist-of path) " must be the last element of an array."))
|
|
1955
|
+
(not= 2 (size spec))
|
|
1956
|
+
(.add ^List errs (_restmsg (alist-of path) " must have exactly one spec.")))
|
|
1957
|
+
(_checknames (_lookup spec 1) store (conj path 1) errs))
|
|
1958
|
+
|
|
1959
|
+
:else
|
|
1960
|
+
(do
|
|
1961
|
+
(when (and (ismap spec) (_holds spec restkey) (_holds spec "`$CHILD`"))
|
|
1962
|
+
(.add ^List errs (_restmsg (alist-of path) " cannot be used with $CHILD.")))
|
|
1963
|
+
(let [lastkey (when (islist spec) (strkey (dec (size spec))))]
|
|
1964
|
+
(doseq [key (keysof spec)]
|
|
1965
|
+
(when (and (ismap spec) (not= restkey key)) (_checknames key store path errs))
|
|
1966
|
+
(_checknames (_lookup spec key) store (conj path key) errs (= lastkey key)))))))))
|
|
1967
|
+
|
|
1570
1968
|
(defn validate
|
|
1571
1969
|
([data spec] (validate data spec nil))
|
|
1572
1970
|
([data spec injdef]
|
|
@@ -1580,29 +1978,37 @@
|
|
|
1580
1978
|
["$DECIMAL" validate_TYPE] ["$BOOLEAN" validate_TYPE] ["$NULL" validate_TYPE]
|
|
1581
1979
|
["$NIL" validate_TYPE] ["$MAP" validate_TYPE] ["$LIST" validate_TYPE]
|
|
1582
1980
|
["$FUNCTION" validate_TYPE] ["$INSTANCE" validate_TYPE]
|
|
1583
|
-
["$ANY" validate_ANY] ["$CHILD" validate_CHILD]
|
|
1584
|
-
["$EXACT" validate_EXACT]]]
|
|
1981
|
+
["$ANY" validate_ANY] ["$CHILD" validate_CHILD]
|
|
1982
|
+
["$EXACT" validate_EXACT] ["$NOF" validate_NOF] ["$ALL" validate_ALL]
|
|
1983
|
+
["$LEN" validate_LEN] ["$RANGE" validate_RANGE] ["$LIKE" validate_LIKE]
|
|
1984
|
+
["$REST" validate_REST]]]
|
|
1585
1985
|
(.put base k v))
|
|
1586
1986
|
(let [store (merge (alist-of [base (if (nil? extra) (lhm) extra) (doto (lhm) (.put "$ERRS" errs))]) 1)
|
|
1587
|
-
meta (getprop injdef "meta" (lhm))
|
|
1987
|
+
meta (getprop injdef "meta" (lhm))
|
|
1988
|
+
numerrs (size errs)]
|
|
1588
1989
|
(setprop meta S-BEXACT (getprop meta S-BEXACT false))
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1990
|
+
;; A spec that names an unknown checker validates nothing.
|
|
1991
|
+
(_checknames spec store [] errs)
|
|
1992
|
+
(let [out (if (< numerrs (size errs))
|
|
1993
|
+
(clone data)
|
|
1994
|
+
(transform data spec (doto (lhm)
|
|
1995
|
+
(.put "meta" meta)
|
|
1996
|
+
(.put "extra" store)
|
|
1997
|
+
(.put "modify" _validation)
|
|
1998
|
+
(.put "handler" _validatehandler)
|
|
1999
|
+
(.put "errs" errs))))]
|
|
1595
2000
|
(when (and (> (size errs) 0) (not collect))
|
|
1596
2001
|
(throw (RuntimeException. (clojure.string/join " | " (vec errs)))))
|
|
1597
2002
|
out)))))
|
|
1598
2003
|
|
|
1599
2004
|
(defn- _invalidTypeMsg [path needtype vt v _whence]
|
|
1600
|
-
(let [
|
|
2005
|
+
(let [novalue (or (nil? v) (identical? v NOARG))
|
|
2006
|
+
vs (if novalue "no value" (stringify v))]
|
|
1601
2007
|
(str "Expected "
|
|
1602
2008
|
(if (> (size path) 1) (str "field " (pathify path 1) " to be ") "")
|
|
1603
2009
|
(str needtype)
|
|
1604
2010
|
", but found "
|
|
1605
|
-
(if
|
|
2011
|
+
(if novalue "" (str (typename vt) S-VIZ))
|
|
1606
2012
|
vs ".")))
|
|
1607
2013
|
|
|
1608
2014
|
;; ---------------------------------------------------------------------------
|
|
@@ -1665,22 +2071,43 @@
|
|
|
1665
2071
|
(catch Exception _ false)))
|
|
1666
2072
|
|
|
1667
2073
|
(defn- select_CMP [inj _val ref store]
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
2074
|
+
;; The list form of $LIKE is validate's checker; the key form is this operator.
|
|
2075
|
+
(if (and (= (ig inj :mode) S-MVAL) (= ref "$LIKE"))
|
|
2076
|
+
(validate_LIKE inj _val ref store)
|
|
2077
|
+
(do
|
|
2078
|
+
(when (= (ig inj :mode) S-MKEYPRE)
|
|
2079
|
+
(let [term (getprop (ig inj :parent) (ig inj :key))
|
|
2080
|
+
gkey (getelem (ig inj :path) -2)
|
|
2081
|
+
ppath (slice (ig inj :path) -1)
|
|
2082
|
+
point (getpath store ppath)
|
|
2083
|
+
pass (cond
|
|
2084
|
+
(= ref "$GT") (num-cmp point term :gt)
|
|
2085
|
+
(= ref "$LT") (num-cmp point term :lt)
|
|
2086
|
+
(= ref "$GTE") (num-cmp point term :gte)
|
|
2087
|
+
(= ref "$LTE") (num-cmp point term :lte)
|
|
2088
|
+
(= ref "$LIKE") (boolean (re_test (re_compile term) (stringify point)))
|
|
2089
|
+
:else false)]
|
|
2090
|
+
(if pass
|
|
2091
|
+
(let [gp (getelem (ig inj :nodes) -2)] (setprop gp gkey point))
|
|
2092
|
+
(.add ^List (ig inj :errs) (str "CMP: " (pathify ppath) "⨯" (stringify point) " fail:" ref " " (stringify term))))))
|
|
2093
|
+
nil)))
|
|
2094
|
+
|
|
2095
|
+
;; Open every map in a select query, so a child may hold keys the query does
|
|
2096
|
+
;; not name, but leave a directive's literals as written: what $EXACT
|
|
2097
|
+
;; compares, and the count or bound of $NOF, $LEN and $RANGE.
|
|
2098
|
+
(defn- _openquery [q]
|
|
2099
|
+
(cond
|
|
2100
|
+
(ismap q)
|
|
2101
|
+
(do (setprop q "`$OPEN`" (getprop q "`$OPEN`" true))
|
|
2102
|
+
(doseq [key (keysof q)] (_openquery (_lookup q key))))
|
|
2103
|
+
|
|
2104
|
+
(islist q)
|
|
2105
|
+
(let [head (_lookup q 0)
|
|
2106
|
+
exact (= "`$EXACT`" head)
|
|
2107
|
+
bounded (contains? #{"`$NOF`" "`$LEN`" "`$RANGE`"} head)]
|
|
2108
|
+
(dotimes [i (size q)]
|
|
2109
|
+
(when (or (= 0 i) (not (or exact (and bounded (= 1 i)))))
|
|
2110
|
+
(_openquery (_lookup q i)))))))
|
|
1684
2111
|
|
|
1685
2112
|
(defn select [children query]
|
|
1686
2113
|
(if-not (isnode children)
|
|
@@ -1694,7 +2121,7 @@
|
|
|
1694
2121
|
(.put "$GT" select_CMP) (.put "$LT" select_CMP) (.put "$GTE" select_CMP)
|
|
1695
2122
|
(.put "$LTE" select_CMP) (.put "$LIKE" select_CMP))
|
|
1696
2123
|
q (clone query)]
|
|
1697
|
-
(
|
|
2124
|
+
(_openquery q)
|
|
1698
2125
|
(doseq [child children]
|
|
1699
2126
|
(let [errs (alist)
|
|
1700
2127
|
injdef (doto (lhm) (.put "errs" errs) (.put "meta" (doto (lhm) (.put S-BEXACT true))) (.put "extra" extra))]
|
|
@@ -1702,6 +2129,258 @@
|
|
|
1702
2129
|
(when (= (size errs) 0) (.add results child))))
|
|
1703
2130
|
results)))
|
|
1704
2131
|
|
|
2132
|
+
;; ---------------------------------------------------------------------------
|
|
2133
|
+
;; condense
|
|
2134
|
+
;; ---------------------------------------------------------------------------
|
|
2135
|
+
|
|
2136
|
+
;; Code-point order, the order the format sorts symbols in. String.compareTo
|
|
2137
|
+
;; orders by code unit, which would put U+10000 before U+FFFF.
|
|
2138
|
+
(defn- condensecmp [^String a ^String b]
|
|
2139
|
+
(let [na (.length a) nb (.length b)]
|
|
2140
|
+
(loop [i 0 j 0]
|
|
2141
|
+
(if (and (< i na) (< j nb))
|
|
2142
|
+
(let [ca (.codePointAt a (int i)) cb (.codePointAt b (int j))]
|
|
2143
|
+
(if (== ca cb)
|
|
2144
|
+
(recur (+ i (Character/charCount ca)) (+ j (Character/charCount cb)))
|
|
2145
|
+
(if (< ca cb) -1 1)))
|
|
2146
|
+
(compare (- na i) (- nb j))))))
|
|
2147
|
+
|
|
2148
|
+
;; The version has to match, not merely be a number: a later format read with
|
|
2149
|
+
;; this one's schema would decode wrongly without failing.
|
|
2150
|
+
(defn iscondensed
|
|
2151
|
+
([] false)
|
|
2152
|
+
([val]
|
|
2153
|
+
(and (ismap val)
|
|
2154
|
+
(let [v (_lookup val S-condense)] (and (number? v) (== v CONDENSE_VERSION)))
|
|
2155
|
+
(islist (_lookup val S-condsym))
|
|
2156
|
+
(islist (_lookup val S-condnode))
|
|
2157
|
+
(number? (_lookup val S-condroot)))))
|
|
2158
|
+
|
|
2159
|
+
(defn- condensecollect [val ^java.util.Set acc]
|
|
2160
|
+
(cond
|
|
2161
|
+
(ismap val) (doseq [k (map-keys val)]
|
|
2162
|
+
(.add acc (str k))
|
|
2163
|
+
(condensecollect (.get ^Map val k) acc))
|
|
2164
|
+
(islist val) (doseq [x val] (condensecollect x acc))
|
|
2165
|
+
(string? val) (.add acc val))
|
|
2166
|
+
acc)
|
|
2167
|
+
|
|
2168
|
+
;; An integral number keys as a long, so 1 and 1.0 share one node.
|
|
2169
|
+
(defn- condensenumkey [n]
|
|
2170
|
+
(cond
|
|
2171
|
+
(jdouble? n) (let [d (double n)]
|
|
2172
|
+
(if (and (== d (Math/rint d)) (< (Math/abs d) 9.0E18)) (long d) d))
|
|
2173
|
+
(instance? Integer n) (long n)
|
|
2174
|
+
:else n))
|
|
2175
|
+
|
|
2176
|
+
;; Post-order, so a subtree is interned before its parent refers to it, and
|
|
2177
|
+
;; map pairs in ascending symbol id, so that a lookup can bisect them.
|
|
2178
|
+
(defn- condensebuild [val ^Map symid intern]
|
|
2179
|
+
(cond
|
|
2180
|
+
(ismap val)
|
|
2181
|
+
(let [enc (alist-of [CONDENSE_MAP])]
|
|
2182
|
+
(doseq [k (sort condensecmp (map str (map-keys val)))]
|
|
2183
|
+
(.add enc (.get symid k))
|
|
2184
|
+
(.add enc (condensebuild (.get ^Map val k) symid intern)))
|
|
2185
|
+
(intern enc))
|
|
2186
|
+
|
|
2187
|
+
(islist val)
|
|
2188
|
+
(let [enc (alist-of [CONDENSE_LIST])]
|
|
2189
|
+
(doseq [x val] (.add enc (condensebuild x symid intern)))
|
|
2190
|
+
(intern enc))
|
|
2191
|
+
|
|
2192
|
+
(string? val) (intern (alist-of [CONDENSE_STR (.get symid val)]))
|
|
2193
|
+
(and (number? val) (not (jbool? val))) (intern (alist-of [CONDENSE_NUM val]))
|
|
2194
|
+
(true? val) (intern (alist-of [CONDENSE_TRUE]))
|
|
2195
|
+
(false? val) (intern (alist-of [CONDENSE_FALSE]))
|
|
2196
|
+
:else (intern (alist-of [CONDENSE_NULL]))))
|
|
2197
|
+
|
|
2198
|
+
(defn condense [val]
|
|
2199
|
+
(let [sym (vec (sort condensecmp (condensecollect val (java.util.HashSet.))))
|
|
2200
|
+
symid (java.util.HashMap.)
|
|
2201
|
+
nodes (alist)
|
|
2202
|
+
seen (java.util.HashMap.)
|
|
2203
|
+
intern (fn [^List enc]
|
|
2204
|
+
(let [k (mapv condensenumkey enc)
|
|
2205
|
+
hit (.get seen k)]
|
|
2206
|
+
(if (some? hit)
|
|
2207
|
+
hit
|
|
2208
|
+
(let [idx (long (.size nodes))]
|
|
2209
|
+
(.add nodes enc)
|
|
2210
|
+
(.put seen k idx)
|
|
2211
|
+
idx))))]
|
|
2212
|
+
(doseq [[i s] (map-indexed vector sym)] (.put symid s (long i)))
|
|
2213
|
+
(let [root (condensebuild val symid intern)]
|
|
2214
|
+
(doto (lhm)
|
|
2215
|
+
(.put S-condense CONDENSE_VERSION)
|
|
2216
|
+
(.put S-condsym (alist-of sym))
|
|
2217
|
+
(.put S-condnode nodes)
|
|
2218
|
+
(.put S-condroot root)))))
|
|
2219
|
+
|
|
2220
|
+
;; The string form a key takes, as canonical's '' + key gives it.
|
|
2221
|
+
(defn- condensekey [key]
|
|
2222
|
+
(cond
|
|
2223
|
+
(string? key) key
|
|
2224
|
+
(jdouble? key) (let [d (double key)]
|
|
2225
|
+
(if (and (== d (Math/rint d)) (< (Math/abs d) 1.0E15)) (str (long d)) (str d)))
|
|
2226
|
+
:else (jsstr key)))
|
|
2227
|
+
|
|
2228
|
+
(defn- condenseindex [idx]
|
|
2229
|
+
(cond
|
|
2230
|
+
(integer? idx) idx
|
|
2231
|
+
(jdouble? idx) (let [d (double idx)]
|
|
2232
|
+
(when (and (== d (Math/rint d)) (< (Math/abs d) 2.0E9)) (long d)))
|
|
2233
|
+
:else nil))
|
|
2234
|
+
|
|
2235
|
+
(defn- condensefound [idx] (and (number? idx) (not (neg? idx))))
|
|
2236
|
+
|
|
2237
|
+
(defn- condensesym [cd id]
|
|
2238
|
+
(let [sym (_lookup cd S-condsym)
|
|
2239
|
+
i (condenseindex id)]
|
|
2240
|
+
(when (and (islist sym) (some? i) (<= 0 i) (< i (.size ^List sym)))
|
|
2241
|
+
(.get ^List sym (int i)))))
|
|
2242
|
+
|
|
2243
|
+
;; Node idx as the list of its encoding, or nil when there is no such node.
|
|
2244
|
+
(defn- condenseenc [cd idx]
|
|
2245
|
+
(let [node (_lookup cd S-condnode)
|
|
2246
|
+
i (condenseindex idx)]
|
|
2247
|
+
(when (and (islist node) (some? i) (<= 0 i) (< i (.size ^List node)))
|
|
2248
|
+
(let [enc (.get ^List node (int i))]
|
|
2249
|
+
(cond
|
|
2250
|
+
(islist enc) enc
|
|
2251
|
+
(nil? enc) nil
|
|
2252
|
+
:else (alist))))))
|
|
2253
|
+
|
|
2254
|
+
(defn- condenseis [^List enc kind]
|
|
2255
|
+
(let [k (when (pos? (.size enc)) (.get enc 0))]
|
|
2256
|
+
(and (number? k) (== k kind))))
|
|
2257
|
+
|
|
2258
|
+
(defn- condensesymid [cd ^String key]
|
|
2259
|
+
(let [sym (_lookup cd S-condsym)]
|
|
2260
|
+
(if-not (islist sym)
|
|
2261
|
+
-1
|
|
2262
|
+
(loop [lo 0 hi (dec (.size ^List sym))]
|
|
2263
|
+
(if (<= lo hi)
|
|
2264
|
+
(let [mid (quot (+ lo hi) 2)
|
|
2265
|
+
s (.get ^List sym (int mid))]
|
|
2266
|
+
(cond
|
|
2267
|
+
(= s key) mid
|
|
2268
|
+
(and (string? s) (neg? (condensecmp s key))) (recur (inc mid) hi)
|
|
2269
|
+
:else (recur lo (dec mid))))
|
|
2270
|
+
-1)))))
|
|
2271
|
+
|
|
2272
|
+
(defn- condensechild [cd idx key]
|
|
2273
|
+
(let [^List enc (condenseenc cd idx)]
|
|
2274
|
+
(cond
|
|
2275
|
+
(or (nil? enc) (not (readkey? key))) -1
|
|
2276
|
+
|
|
2277
|
+
(condenseis enc CONDENSE_MAP)
|
|
2278
|
+
(let [symid (condensesymid cd (condensekey key))]
|
|
2279
|
+
(if (neg? symid)
|
|
2280
|
+
-1
|
|
2281
|
+
(loop [lo 0 hi (dec (quot (dec (.size enc)) 2))]
|
|
2282
|
+
(if (<= lo hi)
|
|
2283
|
+
(let [mid (quot (+ lo hi) 2)
|
|
2284
|
+
k (.get enc (int (inc (* 2 mid))))]
|
|
2285
|
+
(cond
|
|
2286
|
+
(and (number? k) (== k symid)) (.get enc (int (+ 2 (* 2 mid))))
|
|
2287
|
+
(and (number? k) (< k symid)) (recur (inc mid) hi)
|
|
2288
|
+
:else (recur lo (dec mid))))
|
|
2289
|
+
-1))))
|
|
2290
|
+
|
|
2291
|
+
(condenseis enc CONDENSE_LIST)
|
|
2292
|
+
(let [i (listindex key)]
|
|
2293
|
+
(if (and i (<= 0 i) (< i (dec (.size enc))))
|
|
2294
|
+
(.get enc (int (inc i)))
|
|
2295
|
+
-1))
|
|
2296
|
+
|
|
2297
|
+
:else -1)))
|
|
2298
|
+
|
|
2299
|
+
;; Walk a path from node idx: the node index reached, or -1.
|
|
2300
|
+
(defn- condenseresolve [cd idx path]
|
|
2301
|
+
(let [parts (cond
|
|
2302
|
+
(islist path) (vec path)
|
|
2303
|
+
(string? path) (if (= path S-MT) [] (vec (.split ^String path "\\." -1)))
|
|
2304
|
+
(or (nil? path) (identical? path NOARG)) []
|
|
2305
|
+
:else [(condensekey path)])]
|
|
2306
|
+
(loop [at idx ps (seq parts)]
|
|
2307
|
+
(cond
|
|
2308
|
+
(nil? ps) at
|
|
2309
|
+
(and (number? at) (neg? at)) -1
|
|
2310
|
+
(= S-MT (first ps)) (recur at (next ps))
|
|
2311
|
+
:else (recur (condensechild cd at (first ps)) (next ps))))))
|
|
2312
|
+
|
|
2313
|
+
;; A fresh tree each call: no materialisation shares a container with another,
|
|
2314
|
+
;; even where the condensed form shares the node.
|
|
2315
|
+
(defn- condensematerialise [cd idx]
|
|
2316
|
+
(letfn [(rebuild [i]
|
|
2317
|
+
(when-let [^List enc (condenseenc cd i)]
|
|
2318
|
+
(let [n (.size enc)]
|
|
2319
|
+
(cond
|
|
2320
|
+
(condenseis enc CONDENSE_MAP)
|
|
2321
|
+
(let [out (lhm)]
|
|
2322
|
+
(doseq [j (range 1 n 2)]
|
|
2323
|
+
(.put out (condensekey (condensesym cd (.get enc (int j))))
|
|
2324
|
+
(rebuild (when (< (inc j) n) (.get enc (int (inc j)))))))
|
|
2325
|
+
out)
|
|
2326
|
+
|
|
2327
|
+
(condenseis enc CONDENSE_LIST)
|
|
2328
|
+
(let [out (alist)]
|
|
2329
|
+
(doseq [j (range 1 n)] (.add out (rebuild (.get enc (int j)))))
|
|
2330
|
+
out)
|
|
2331
|
+
|
|
2332
|
+
(condenseis enc CONDENSE_STR) (when (> n 1) (condensesym cd (.get enc 1)))
|
|
2333
|
+
(condenseis enc CONDENSE_NUM) (when (> n 1) (.get enc 1))
|
|
2334
|
+
(condenseis enc CONDENSE_TRUE) true
|
|
2335
|
+
(condenseis enc CONDENSE_FALSE) false
|
|
2336
|
+
:else nil))))]
|
|
2337
|
+
(when-not (and (number? idx) (neg? idx))
|
|
2338
|
+
(rebuild idx))))
|
|
2339
|
+
|
|
2340
|
+
(defn expand [cd]
|
|
2341
|
+
(if (iscondensed cd) (condensematerialise cd (_lookup cd S-condroot)) cd))
|
|
2342
|
+
|
|
2343
|
+
(defn- condensekeys [cd idx]
|
|
2344
|
+
(let [^List enc (condenseenc cd idx)]
|
|
2345
|
+
(cond
|
|
2346
|
+
(nil? enc) []
|
|
2347
|
+
(condenseis enc CONDENSE_MAP) (mapv #(condensesym cd (.get enc (int %))) (range 1 (.size enc) 2))
|
|
2348
|
+
(condenseis enc CONDENSE_LIST) (mapv str (range (dec (.size enc))))
|
|
2349
|
+
:else [])))
|
|
2350
|
+
|
|
2351
|
+
(defn- condensesize [cd idx]
|
|
2352
|
+
(let [^List enc (condenseenc cd idx)]
|
|
2353
|
+
(cond
|
|
2354
|
+
(nil? enc) 0
|
|
2355
|
+
(condenseis enc CONDENSE_MAP) (quot (dec (.size enc)) 2)
|
|
2356
|
+
(condenseis enc CONDENSE_LIST) (dec (.size enc))
|
|
2357
|
+
:else 0)))
|
|
2358
|
+
|
|
2359
|
+
;; A cursor, as a map of closures: :get, :keys, :has and :at take an optional
|
|
2360
|
+
;; path, the rest take nothing. :ref hands out ONE shared materialisation per
|
|
2361
|
+
;; node, through a memo every view reached by :at shares; mutating it changes
|
|
2362
|
+
;; what every other :ref of that node sees.
|
|
2363
|
+
(defn condenseview
|
|
2364
|
+
([cd] (condenseview cd nil nil))
|
|
2365
|
+
([cd idx] (condenseview cd idx nil))
|
|
2366
|
+
([cd idx memo]
|
|
2367
|
+
(let [start (if (nil? idx) (if (iscondensed cd) (_lookup cd S-condroot) -1) idx)
|
|
2368
|
+
^Map refmemo (if (nil? memo) (java.util.HashMap.) memo)
|
|
2369
|
+
walkto (fn [path] (condenseresolve cd start path))
|
|
2370
|
+
pathfn (fn [f] (fn ([] (f nil)) ([path] (f path))))]
|
|
2371
|
+
{:get (pathfn #(condensematerialise cd (walkto %)))
|
|
2372
|
+
:keys (pathfn #(condensekeys cd (walkto %)))
|
|
2373
|
+
:has (pathfn #(condensefound (walkto %)))
|
|
2374
|
+
:at (pathfn #(condenseview cd (walkto %) refmemo))
|
|
2375
|
+
:value (fn [] (condensematerialise cd start))
|
|
2376
|
+
:size (fn [] (condensesize cd start))
|
|
2377
|
+
:exists (fn [] (condensefound start))
|
|
2378
|
+
:ref (fn []
|
|
2379
|
+
(let [k (condensekey start)]
|
|
2380
|
+
(when-not (.containsKey refmemo k)
|
|
2381
|
+
(.put refmemo k (condensematerialise cd start)))
|
|
2382
|
+
(.get refmemo k)))})))
|
|
2383
|
+
|
|
1705
2384
|
;; ---------------------------------------------------------------------------
|
|
1706
2385
|
;; JSON builders
|
|
1707
2386
|
;; ---------------------------------------------------------------------------
|
|
@@ -1735,4 +2414,5 @@
|
|
|
1735
2414
|
:re_compile re_compile :re_find re_find :re_find_all re_find_all
|
|
1736
2415
|
:re_replace re_replace :re_test re_test :re_escape re_escape
|
|
1737
2416
|
:SKIP SKIP :DELETE DELETE :tn tn
|
|
1738
|
-
:checkPlacement checkPlacement :injectorArgs injectorArgs :injectChild injectChild
|
|
2417
|
+
:checkPlacement checkPlacement :injectorArgs injectorArgs :injectChild injectChild
|
|
2418
|
+
:condense condense :condenseview condenseview :expand expand :iscondensed iscondensed})
|