@voxgig/sdkgen 4.47.0 → 4.48.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/voxgig-sdkgen +1 -1
- package/dist/action/check.js +4 -1
- package/dist/action/check.js.map +1 -1
- package/dist/action/doctor.js +7 -2
- package/dist/action/doctor.js.map +1 -1
- package/dist/action/target.js +55 -29
- package/dist/action/target.js.map +1 -1
- package/dist/cmp/AgentGuide.js +26 -17
- package/dist/cmp/AgentGuide.js.map +1 -1
- package/dist/cmp/AgentGuideContent.js +4 -8
- package/dist/cmp/AgentGuideContent.js.map +1 -1
- package/dist/cmp/AgentGuideTop.js +14 -13
- package/dist/cmp/AgentGuideTop.js.map +1 -1
- package/dist/cmp/Deploy.js +18 -8
- package/dist/cmp/Deploy.js.map +1 -1
- package/dist/cmp/FeatureDocs.d.ts +1 -0
- package/dist/cmp/FeatureDocs.js +2 -1
- package/dist/cmp/FeatureDocs.js.map +1 -1
- package/dist/cmp/License.d.ts +3 -1
- package/dist/cmp/License.js +25 -7
- package/dist/cmp/License.js.map +1 -1
- package/dist/cmp/Readme.js +0 -2
- package/dist/cmp/Readme.js.map +1 -1
- package/dist/cmp/ReadmeErrors.js +77 -77
- package/dist/cmp/ReadmeErrors.js.map +1 -1
- package/dist/cmp/ReadmeExplanation.js +5 -10
- package/dist/cmp/ReadmeExplanation.js.map +1 -1
- package/dist/cmp/ReadmeFeatures.js +13 -9
- package/dist/cmp/ReadmeFeatures.js.map +1 -1
- package/dist/cmp/ReadmeModel.js +13 -9
- package/dist/cmp/ReadmeModel.js.map +1 -1
- package/dist/cmp/ReadmeOptions.js +3 -11
- package/dist/cmp/ReadmeOptions.js.map +1 -1
- package/dist/cmp/ReadmeQuick.js +10 -2
- package/dist/cmp/ReadmeQuick.js.map +1 -1
- package/dist/cmp/ReadmeRefFeatures.js +34 -30
- package/dist/cmp/ReadmeRefFeatures.js.map +1 -1
- package/dist/cmp/ReadmeTop.js +82 -47
- package/dist/cmp/ReadmeTop.js.map +1 -1
- package/dist/helpers/canonSpec.d.ts +5 -1
- package/dist/helpers/canonSpec.js +44 -10
- package/dist/helpers/canonSpec.js.map +1 -1
- package/dist/helpers/clientOptions.d.ts +9 -0
- package/dist/helpers/clientOptions.js +44 -0
- package/dist/helpers/clientOptions.js.map +1 -0
- package/dist/helpers/consumer.d.ts +10 -0
- package/dist/helpers/consumer.js +42 -0
- package/dist/helpers/consumer.js.map +1 -0
- package/dist/helpers/doctext.js +9 -1
- package/dist/helpers/doctext.js.map +1 -1
- package/dist/helpers/facts.js +25 -1
- package/dist/helpers/facts.js.map +1 -1
- package/dist/helpers/flowGuard.js +1 -1
- package/dist/helpers/flowGuard.js.map +1 -1
- package/dist/helpers/mcpTools.d.ts +1 -1
- package/dist/helpers/mcpTools.js +2 -3
- package/dist/helpers/mcpTools.js.map +1 -1
- package/dist/helpers/naming.js +3 -2
- package/dist/helpers/naming.js.map +1 -1
- package/dist/helpers/opShape.d.ts +8 -2
- package/dist/helpers/opShape.js +32 -2
- package/dist/helpers/opShape.js.map +1 -1
- package/dist/helpers/optional.d.ts +0 -1
- package/dist/helpers/optional.js +0 -1
- package/dist/helpers/optional.js.map +1 -1
- package/dist/helpers/optspec.js +16 -4
- package/dist/helpers/optspec.js.map +1 -1
- package/dist/helpers/packageMeta.d.ts +2 -1
- package/dist/helpers/packageMeta.js +62 -1
- package/dist/helpers/packageMeta.js.map +1 -1
- package/dist/helpers/readerdir.d.ts +4 -0
- package/dist/helpers/readerdir.js +26 -0
- package/dist/helpers/readerdir.js.map +1 -0
- package/dist/helpers/sourcestring.d.ts +2 -1
- package/dist/helpers/sourcestring.js +6 -0
- package/dist/helpers/sourcestring.js.map +1 -1
- package/dist/helpers/stdrep.js +3 -3
- package/dist/helpers/stdrep.js.map +1 -1
- package/dist/helpers/surface.d.ts +6 -1
- package/dist/helpers/surface.js +17 -5
- package/dist/helpers/surface.js.map +1 -1
- package/dist/helpers/testPolicy.js +3 -3
- package/dist/helpers/testPolicy.js.map +1 -1
- package/dist/helpers/title.js +1 -1
- package/dist/helpers/title.js.map +1 -1
- package/dist/sdkgen.d.ts +13 -7
- package/dist/sdkgen.js +22 -6
- package/dist/sdkgen.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utility.js +21 -5
- package/dist/utility.js.map +1 -1
- package/model/fact.aontu +1 -1
- package/model/sdkgen.aontu +2 -0
- package/package.json +1 -1
- package/project/.sdk/model/feature/netsim.aontu +1 -1
- package/project/.sdk/model/feature/secrets.aontu +1 -0
- package/project/.sdk/model/feature/test.aontu +1 -1
- package/project/.sdk/model/feature/validate.aontu +1 -1
- package/project/.sdk/model/target/c.aontu +1 -0
- package/project/.sdk/model/target/clojure.aontu +1 -0
- package/project/.sdk/model/target/cpp.aontu +1 -0
- package/project/.sdk/model/target/csharp.aontu +1 -0
- package/project/.sdk/model/target/elixir.aontu +1 -0
- package/project/.sdk/model/target/go-cli.aontu +5 -5
- package/project/.sdk/model/target/go-mcp.aontu +6 -8
- package/project/.sdk/model/target/go.aontu +1 -1
- package/project/.sdk/model/target/java.aontu +1 -0
- package/project/.sdk/model/target/kotlin.aontu +1 -0
- package/project/.sdk/model/target/ocaml.aontu +1 -0
- package/project/.sdk/model/target/perl.aontu +1 -0
- package/project/.sdk/model/target/py-data.aontu +2 -0
- package/project/.sdk/model/target/rust.aontu +1 -0
- package/project/.sdk/model/target/scala.aontu +1 -0
- package/project/.sdk/model/target/zig.aontu +1 -0
- package/project/.sdk/src/cmp/c/Config_c.ts +8 -33
- package/project/.sdk/src/cmp/c/EntityTypes_c.ts +6 -5
- package/project/.sdk/src/cmp/c/Main_c.ts +4 -0
- package/project/.sdk/src/cmp/c/PrepareAuth_c.ts +9 -19
- package/project/.sdk/src/cmp/c/ReadmeEntity_c.ts +8 -10
- package/project/.sdk/src/cmp/c/ReadmeExamplesTest_c.ts +12 -4
- package/project/.sdk/src/cmp/c/ReadmeExplanation_c.ts +4 -2
- package/project/.sdk/src/cmp/c/ReadmeHowto_c.ts +18 -22
- package/project/.sdk/src/cmp/c/ReadmeInstall_c.ts +19 -15
- package/project/.sdk/src/cmp/c/ReadmeIntro_c.ts +5 -7
- package/project/.sdk/src/cmp/c/ReadmeModel_c.ts +32 -33
- package/project/.sdk/src/cmp/c/ReadmeQuick_c.ts +28 -11
- package/project/.sdk/src/cmp/c/ReadmeRef_c.ts +35 -26
- package/project/.sdk/src/cmp/c/ReadmeTopHowto_c.ts +5 -4
- package/project/.sdk/src/cmp/c/ReadmeTopQuick_c.ts +19 -6
- package/project/.sdk/src/cmp/c/TestClean_c.ts +298 -22
- package/project/.sdk/src/cmp/c/TestDirect_c.ts +1 -1
- package/project/.sdk/src/cmp/c/fragment/Entity.fragment.c +9 -9
- package/project/.sdk/src/cmp/c/fragment/EntityCreateOp.fragment.c +0 -1
- package/project/.sdk/src/cmp/c/fragment/EntityLoadOp.fragment.c +0 -1
- package/project/.sdk/src/cmp/c/fragment/EntityPatchOp.fragment.c +0 -1
- package/project/.sdk/src/cmp/c/fragment/EntityRemoveOp.fragment.c +0 -1
- package/project/.sdk/src/cmp/c/fragment/EntityUpdateOp.fragment.c +0 -1
- package/project/.sdk/src/cmp/c/fragment/Main.fragment.c +19 -7
- package/project/.sdk/src/cmp/clojure/Config_clojure.ts +4 -25
- package/project/.sdk/src/cmp/clojure/Main_clojure.ts +4 -0
- package/project/.sdk/src/cmp/clojure/PrepareAuth_clojure.ts +10 -21
- package/project/.sdk/src/cmp/clojure/ReadmeEntity_clojure.ts +8 -10
- package/project/.sdk/src/cmp/clojure/ReadmeExamplesTest_clojure.ts +13 -5
- package/project/.sdk/src/cmp/clojure/ReadmeExplanation_clojure.ts +13 -3
- package/project/.sdk/src/cmp/clojure/ReadmeHowto_clojure.ts +9 -8
- package/project/.sdk/src/cmp/clojure/ReadmeInstall_clojure.ts +13 -11
- package/project/.sdk/src/cmp/clojure/ReadmeIntro_clojure.ts +5 -7
- package/project/.sdk/src/cmp/clojure/ReadmeModel_clojure.ts +24 -33
- package/project/.sdk/src/cmp/clojure/ReadmeQuick_clojure.ts +20 -9
- package/project/.sdk/src/cmp/clojure/ReadmeRef_clojure.ts +23 -23
- package/project/.sdk/src/cmp/clojure/ReadmeTopHowto_clojure.ts +5 -4
- package/project/.sdk/src/cmp/clojure/ReadmeTopQuick_clojure.ts +11 -4
- package/project/.sdk/src/cmp/clojure/Schema_clojure.ts +2 -1
- package/project/.sdk/src/cmp/clojure/TestClean_clojure.ts +177 -12
- package/project/.sdk/src/cmp/clojure/fragment/Entity.fragment.clj +11 -12
- package/project/.sdk/src/cmp/clojure/fragment/EntityLoadOp.fragment.clj +1 -1
- package/project/.sdk/src/cmp/clojure/fragment/EntityRemoveOp.fragment.clj +2 -2
- package/project/.sdk/src/cmp/cpp/Config_cpp.ts +2 -17
- package/project/.sdk/src/cmp/cpp/EntityTypes_cpp.ts +4 -9
- package/project/.sdk/src/cmp/cpp/Main_cpp.ts +4 -0
- package/project/.sdk/src/cmp/cpp/PrepareAuth_cpp.ts +10 -21
- package/project/.sdk/src/cmp/cpp/ReadmeEntity_cpp.ts +10 -12
- package/project/.sdk/src/cmp/cpp/ReadmeExamplesTest_cpp.ts +12 -4
- package/project/.sdk/src/cmp/cpp/ReadmeExplanation_cpp.ts +5 -2
- package/project/.sdk/src/cmp/cpp/ReadmeHowto_cpp.ts +28 -11
- package/project/.sdk/src/cmp/cpp/ReadmeInstall_cpp.ts +16 -11
- package/project/.sdk/src/cmp/cpp/ReadmeIntro_cpp.ts +5 -7
- package/project/.sdk/src/cmp/cpp/ReadmeModel_cpp.ts +26 -35
- package/project/.sdk/src/cmp/cpp/ReadmeQuick_cpp.ts +22 -12
- package/project/.sdk/src/cmp/cpp/ReadmeRef_cpp.ts +30 -29
- package/project/.sdk/src/cmp/cpp/ReadmeTopHowto_cpp.ts +5 -4
- package/project/.sdk/src/cmp/cpp/ReadmeTopQuick_cpp.ts +13 -7
- package/project/.sdk/src/cmp/cpp/TestClean_cpp.ts +285 -14
- package/project/.sdk/src/cmp/cpp/TestEntity_cpp.ts +44 -24
- package/project/.sdk/src/cmp/cpp/fragment/EntityCreateOp.fragment.cpp +0 -1
- package/project/.sdk/src/cmp/cpp/fragment/EntityLoadOp.fragment.cpp +0 -1
- package/project/.sdk/src/cmp/cpp/fragment/EntityPatchOp.fragment.cpp +0 -1
- package/project/.sdk/src/cmp/cpp/fragment/EntityRemoveOp.fragment.cpp +0 -1
- package/project/.sdk/src/cmp/cpp/fragment/EntityUpdateOp.fragment.cpp +0 -1
- package/project/.sdk/src/cmp/csharp/Config_csharp.ts +5 -27
- package/project/.sdk/src/cmp/csharp/EntityTypes_csharp.ts +4 -5
- package/project/.sdk/src/cmp/csharp/Main_csharp.ts +5 -1
- package/project/.sdk/src/cmp/csharp/Package_csharp.ts +2 -1
- package/project/.sdk/src/cmp/csharp/PrepareAuth_csharp.ts +9 -20
- package/project/.sdk/src/cmp/csharp/ReadmeEntity_csharp.ts +10 -12
- package/project/.sdk/src/cmp/csharp/ReadmeExamplesTest_csharp.ts +18 -10
- package/project/.sdk/src/cmp/csharp/ReadmeExplanation_csharp.ts +1 -1
- package/project/.sdk/src/cmp/csharp/ReadmeHowto_csharp.ts +24 -12
- package/project/.sdk/src/cmp/csharp/ReadmeInstall_csharp.ts +9 -6
- package/project/.sdk/src/cmp/csharp/ReadmeIntro_csharp.ts +4 -6
- package/project/.sdk/src/cmp/csharp/ReadmeModel_csharp.ts +25 -35
- package/project/.sdk/src/cmp/csharp/ReadmeQuick_csharp.ts +21 -10
- package/project/.sdk/src/cmp/csharp/ReadmeRef_csharp.ts +25 -25
- package/project/.sdk/src/cmp/csharp/ReadmeTopHowto_csharp.ts +5 -4
- package/project/.sdk/src/cmp/csharp/ReadmeTopQuick_csharp.ts +11 -4
- package/project/.sdk/src/cmp/csharp/TestClean_csharp.ts +420 -27
- package/project/.sdk/src/cmp/csharp/TestDirect_csharp.ts +13 -13
- package/project/.sdk/src/cmp/csharp/TestEntity_csharp.ts +34 -35
- package/project/.sdk/src/cmp/csharp/fragment/EntityBase.fragment.cs +8 -7
- package/project/.sdk/src/cmp/csharp/fragment/Main.fragment.cs +4 -4
- package/project/.sdk/src/cmp/elixir/Config_elixir.ts +5 -26
- package/project/.sdk/src/cmp/elixir/EntityTypes_elixir.ts +8 -6
- package/project/.sdk/src/cmp/elixir/Main_elixir.ts +8 -2
- package/project/.sdk/src/cmp/elixir/Package_elixir.ts +3 -3
- package/project/.sdk/src/cmp/elixir/PrepareAuth_elixir.ts +10 -18
- package/project/.sdk/src/cmp/elixir/ReadmeEntity_elixir.ts +10 -12
- package/project/.sdk/src/cmp/elixir/ReadmeExamplesTest_elixir.ts +12 -5
- package/project/.sdk/src/cmp/elixir/ReadmeExplanation_elixir.ts +4 -2
- package/project/.sdk/src/cmp/elixir/ReadmeHowto_elixir.ts +13 -21
- package/project/.sdk/src/cmp/elixir/ReadmeInstall_elixir.ts +12 -8
- package/project/.sdk/src/cmp/elixir/ReadmeIntro_elixir.ts +5 -7
- package/project/.sdk/src/cmp/elixir/ReadmeModel_elixir.ts +24 -35
- package/project/.sdk/src/cmp/elixir/ReadmeQuick_elixir.ts +21 -10
- package/project/.sdk/src/cmp/elixir/ReadmeRef_elixir.ts +24 -24
- package/project/.sdk/src/cmp/elixir/ReadmeTopHowto_elixir.ts +5 -4
- package/project/.sdk/src/cmp/elixir/ReadmeTopQuick_elixir.ts +11 -4
- package/project/.sdk/src/cmp/elixir/Schema_elixir.ts +2 -1
- package/project/.sdk/src/cmp/elixir/TestClean_elixir.ts +231 -12
- package/project/.sdk/src/cmp/elixir/TestEntity_elixir.ts +3 -3
- package/project/.sdk/src/cmp/elixir/app_elixir.ts +14 -0
- package/project/.sdk/src/cmp/elixir/fragment/Main.fragment.ex +4 -4
- package/project/.sdk/src/cmp/go/Config_go.ts +16 -31
- package/project/.sdk/src/cmp/go/EntityTypes_go.ts +13 -7
- package/project/.sdk/src/cmp/go/Main_go.ts +10 -12
- package/project/.sdk/src/cmp/go/PrepareAuth_go.ts +12 -21
- package/project/.sdk/src/cmp/go/ReadmeEntity_go.ts +5 -5
- package/project/.sdk/src/cmp/go/ReadmeExamplesTest_go.ts +20 -9
- package/project/.sdk/src/cmp/go/ReadmeExplanation_go.ts +4 -2
- package/project/.sdk/src/cmp/go/ReadmeHowto_go.ts +28 -13
- package/project/.sdk/src/cmp/go/ReadmeInstall_go.ts +11 -6
- package/project/.sdk/src/cmp/go/ReadmeIntro_go.ts +5 -4
- package/project/.sdk/src/cmp/go/ReadmeModel_go.ts +32 -34
- package/project/.sdk/src/cmp/go/ReadmeQuick_go.ts +15 -11
- package/project/.sdk/src/cmp/go/ReadmeRef_go.ts +32 -22
- package/project/.sdk/src/cmp/go/ReadmeTopHowto_go.ts +5 -4
- package/project/.sdk/src/cmp/go/ReadmeTopQuick_go.ts +7 -4
- package/project/.sdk/src/cmp/go/Schema_go.ts +2 -1
- package/project/.sdk/src/cmp/go/TestClean_go.ts +484 -45
- package/project/.sdk/src/cmp/go/TestDirect_go.ts +15 -13
- package/project/.sdk/src/cmp/go/TestEntity_go.ts +35 -35
- package/project/.sdk/src/cmp/go/fragment/Entity.fragment.go +1 -1
- package/project/.sdk/src/cmp/go/fragment/Main.fragment.go +14 -6
- package/project/.sdk/src/cmp/go-cli/Main_go-cli.ts +238 -96
- package/project/.sdk/src/cmp/go-cli/fragment/main.fragment.go +13 -12
- package/project/.sdk/src/cmp/go-cli/fragment/words.fragment.go +3 -8
- package/project/.sdk/src/cmp/go-mcp/Main_go-mcp.ts +183 -66
- package/project/.sdk/src/cmp/go-mcp/fragment/main.fragment.go +7 -7
- package/project/.sdk/src/cmp/java/Config_java.ts +8 -32
- package/project/.sdk/src/cmp/java/EntityTypes_java.ts +4 -5
- package/project/.sdk/src/cmp/java/Main_java.ts +5 -1
- package/project/.sdk/src/cmp/java/Package_java.ts +4 -7
- package/project/.sdk/src/cmp/java/PrepareAuth_java.ts +13 -11
- package/project/.sdk/src/cmp/java/ReadmeEntity_java.ts +10 -12
- package/project/.sdk/src/cmp/java/ReadmeExamplesTest_java.ts +17 -9
- package/project/.sdk/src/cmp/java/ReadmeExplanation_java.ts +1 -1
- package/project/.sdk/src/cmp/java/ReadmeHowto_java.ts +24 -12
- package/project/.sdk/src/cmp/java/ReadmeInstall_java.ts +8 -10
- package/project/.sdk/src/cmp/java/ReadmeIntro_java.ts +5 -7
- package/project/.sdk/src/cmp/java/ReadmeModel_java.ts +24 -35
- package/project/.sdk/src/cmp/java/ReadmeQuick_java.ts +11 -9
- package/project/.sdk/src/cmp/java/ReadmeRef_java.ts +25 -25
- package/project/.sdk/src/cmp/java/ReadmeTopHowto_java.ts +5 -4
- package/project/.sdk/src/cmp/java/ReadmeTopQuick_java.ts +3 -3
- package/project/.sdk/src/cmp/java/Schema_java.ts +2 -1
- package/project/.sdk/src/cmp/java/TestClean_java.ts +386 -19
- package/project/.sdk/src/cmp/java/TestDirect_java.ts +12 -11
- package/project/.sdk/src/cmp/java/TestEntity_java.ts +27 -27
- package/project/.sdk/src/cmp/java/fragment/EntityBase.fragment.java +8 -7
- package/project/.sdk/src/cmp/java/utility_java.ts +7 -23
- package/project/.sdk/src/cmp/js/Config_js.ts +13 -35
- package/project/.sdk/src/cmp/js/EntityBase_js.ts +1 -1
- package/project/.sdk/src/cmp/js/EntityTypes_js.ts +4 -5
- package/project/.sdk/src/cmp/js/Entity_js.ts +1 -1
- package/project/.sdk/src/cmp/js/Main_js.ts +6 -9
- package/project/.sdk/src/cmp/js/Package_js.ts +3 -2
- package/project/.sdk/src/cmp/js/PrepareAuth_js.ts +9 -17
- package/project/.sdk/src/cmp/js/ReadmeEntity_js.ts +12 -14
- package/project/.sdk/src/cmp/js/ReadmeExplanation_js.ts +1 -1
- package/project/.sdk/src/cmp/js/ReadmeHowto_js.ts +41 -16
- package/project/.sdk/src/cmp/js/ReadmeInstall_js.ts +9 -6
- package/project/.sdk/src/cmp/js/ReadmeIntro_js.ts +6 -3
- package/project/.sdk/src/cmp/js/ReadmeModel_js.ts +23 -37
- package/project/.sdk/src/cmp/js/ReadmeQuick_js.ts +14 -4
- package/project/.sdk/src/cmp/js/ReadmeRef_js.ts +31 -35
- package/project/.sdk/src/cmp/js/ReadmeTopHowto_js.ts +5 -4
- package/project/.sdk/src/cmp/js/ReadmeTopQuick_js.ts +12 -4
- package/project/.sdk/src/cmp/js/Schema_js.ts +2 -1
- package/project/.sdk/src/cmp/js/TestClean_js.ts +229 -13
- package/project/.sdk/src/cmp/js/TestDirect_js.ts +16 -14
- package/project/.sdk/src/cmp/js/TestEntity_js.ts +30 -28
- package/project/.sdk/src/cmp/js/TestLive_js.ts +7 -6
- package/project/.sdk/src/cmp/js/fragment/Direct.test.fragment.js +1 -1
- package/project/.sdk/src/cmp/js/fragment/Entity.test.fragment.js +1 -1
- package/project/.sdk/src/cmp/js/fragment/EntityBase.fragment.js +5 -4
- package/project/.sdk/src/cmp/js/fragment/EntityCreateOp.fragment.js +1 -2
- package/project/.sdk/src/cmp/js/fragment/EntityLoadOp.fragment.js +1 -2
- package/project/.sdk/src/cmp/js/fragment/EntityPatchOp.fragment.js +1 -2
- package/project/.sdk/src/cmp/js/fragment/EntityRemoveOp.fragment.js +1 -2
- package/project/.sdk/src/cmp/js/fragment/EntityUpdateOp.fragment.js +1 -2
- package/project/.sdk/src/cmp/js/fragment/Main.fragment.js +4 -4
- package/project/.sdk/src/cmp/kotlin/Config_kotlin.ts +3 -25
- package/project/.sdk/src/cmp/kotlin/EntityTypes_kotlin.ts +4 -5
- package/project/.sdk/src/cmp/kotlin/Main_kotlin.ts +5 -1
- package/project/.sdk/src/cmp/kotlin/Package_kotlin.ts +5 -5
- package/project/.sdk/src/cmp/kotlin/PrepareAuth_kotlin.ts +13 -12
- package/project/.sdk/src/cmp/kotlin/ReadmeEntity_kotlin.ts +10 -12
- package/project/.sdk/src/cmp/kotlin/ReadmeExamplesTest_kotlin.ts +17 -9
- package/project/.sdk/src/cmp/kotlin/ReadmeExplanation_kotlin.ts +1 -1
- package/project/.sdk/src/cmp/kotlin/ReadmeHowto_kotlin.ts +24 -12
- package/project/.sdk/src/cmp/kotlin/ReadmeInstall_kotlin.ts +8 -10
- package/project/.sdk/src/cmp/kotlin/ReadmeIntro_kotlin.ts +5 -7
- package/project/.sdk/src/cmp/kotlin/ReadmeModel_kotlin.ts +24 -35
- package/project/.sdk/src/cmp/kotlin/ReadmeQuick_kotlin.ts +22 -23
- package/project/.sdk/src/cmp/kotlin/ReadmeRef_kotlin.ts +25 -25
- package/project/.sdk/src/cmp/kotlin/ReadmeTopHowto_kotlin.ts +5 -4
- package/project/.sdk/src/cmp/kotlin/ReadmeTopQuick_kotlin.ts +12 -10
- package/project/.sdk/src/cmp/kotlin/Schema_kotlin.ts +2 -1
- package/project/.sdk/src/cmp/kotlin/TestClean_kotlin.ts +306 -18
- package/project/.sdk/src/cmp/kotlin/TestDirect_kotlin.ts +19 -8
- package/project/.sdk/src/cmp/kotlin/TestEntity_kotlin.ts +34 -24
- package/project/.sdk/src/cmp/kotlin/fragment/EntityBase.fragment.kt +8 -7
- package/project/.sdk/src/cmp/kotlin/utility_kotlin.ts +7 -23
- package/project/.sdk/src/cmp/lua/Config_lua.ts +16 -26
- package/project/.sdk/src/cmp/lua/EntityTypes_lua.ts +4 -5
- package/project/.sdk/src/cmp/lua/Main_lua.ts +5 -4
- package/project/.sdk/src/cmp/lua/Package_lua.ts +12 -6
- package/project/.sdk/src/cmp/lua/PrepareAuth_lua.ts +13 -12
- package/project/.sdk/src/cmp/lua/ReadmeEntity_lua.ts +10 -12
- package/project/.sdk/src/cmp/lua/ReadmeExamplesTest_lua.ts +12 -5
- package/project/.sdk/src/cmp/lua/ReadmeExplanation_lua.ts +5 -3
- package/project/.sdk/src/cmp/lua/ReadmeHowto_lua.ts +25 -13
- package/project/.sdk/src/cmp/lua/ReadmeInstall_lua.ts +5 -4
- package/project/.sdk/src/cmp/lua/ReadmeIntro_lua.ts +6 -5
- package/project/.sdk/src/cmp/lua/ReadmeModel_lua.ts +32 -43
- package/project/.sdk/src/cmp/lua/ReadmeQuick_lua.ts +21 -10
- package/project/.sdk/src/cmp/lua/ReadmeRef_lua.ts +22 -26
- package/project/.sdk/src/cmp/lua/ReadmeTopHowto_lua.ts +5 -4
- package/project/.sdk/src/cmp/lua/ReadmeTopQuick_lua.ts +11 -4
- package/project/.sdk/src/cmp/lua/Schema_lua.ts +2 -1
- package/project/.sdk/src/cmp/lua/TestClean_lua.ts +297 -13
- package/project/.sdk/src/cmp/lua/TestDirect_lua.ts +13 -12
- package/project/.sdk/src/cmp/lua/TestEntity_lua.ts +30 -30
- package/project/.sdk/src/cmp/lua/fragment/Entity.fragment.lua +10 -10
- package/project/.sdk/src/cmp/lua/fragment/Main.fragment.lua +4 -4
- package/project/.sdk/src/cmp/ocaml/Config_ocaml.ts +4 -20
- package/project/.sdk/src/cmp/ocaml/Main_ocaml.ts +4 -0
- package/project/.sdk/src/cmp/ocaml/Package_ocaml.ts +8 -5
- package/project/.sdk/src/cmp/ocaml/PrepareAuth_ocaml.ts +11 -24
- package/project/.sdk/src/cmp/ocaml/ReadmeEntity_ocaml.ts +8 -10
- package/project/.sdk/src/cmp/ocaml/ReadmeExamplesTest_ocaml.ts +11 -4
- package/project/.sdk/src/cmp/ocaml/ReadmeExplanation_ocaml.ts +1 -1
- package/project/.sdk/src/cmp/ocaml/ReadmeHowto_ocaml.ts +12 -20
- package/project/.sdk/src/cmp/ocaml/ReadmeInstall_ocaml.ts +12 -11
- package/project/.sdk/src/cmp/ocaml/ReadmeIntro_ocaml.ts +8 -10
- package/project/.sdk/src/cmp/ocaml/ReadmeModel_ocaml.ts +26 -35
- package/project/.sdk/src/cmp/ocaml/ReadmeQuick_ocaml.ts +21 -10
- package/project/.sdk/src/cmp/ocaml/ReadmeRef_ocaml.ts +24 -23
- package/project/.sdk/src/cmp/ocaml/ReadmeTopHowto_ocaml.ts +5 -4
- package/project/.sdk/src/cmp/ocaml/ReadmeTopQuick_ocaml.ts +11 -4
- package/project/.sdk/src/cmp/ocaml/TestClean_ocaml.ts +179 -14
- package/project/.sdk/src/cmp/ocaml/TestEntity_ocaml.ts +1 -1
- package/project/.sdk/src/cmp/ocaml/utility_ocaml.ts +0 -9
- package/project/.sdk/src/cmp/perl/Config_perl.ts +2 -16
- package/project/.sdk/src/cmp/perl/Main_perl.ts +3 -1
- package/project/.sdk/src/cmp/perl/PrepareAuth_perl.ts +12 -10
- package/project/.sdk/src/cmp/perl/ReadmeEntity_perl.ts +8 -10
- package/project/.sdk/src/cmp/perl/ReadmeExamplesTest_perl.ts +16 -10
- package/project/.sdk/src/cmp/perl/ReadmeExplanation_perl.ts +1 -1
- package/project/.sdk/src/cmp/perl/ReadmeHowto_perl.ts +25 -13
- package/project/.sdk/src/cmp/perl/ReadmeInstall_perl.ts +10 -9
- package/project/.sdk/src/cmp/perl/ReadmeIntro_perl.ts +4 -6
- package/project/.sdk/src/cmp/perl/ReadmeModel_perl.ts +24 -35
- package/project/.sdk/src/cmp/perl/ReadmeQuick_perl.ts +21 -10
- package/project/.sdk/src/cmp/perl/ReadmeRef_perl.ts +23 -23
- package/project/.sdk/src/cmp/perl/ReadmeTopHowto_perl.ts +5 -4
- package/project/.sdk/src/cmp/perl/ReadmeTopQuick_perl.ts +11 -4
- package/project/.sdk/src/cmp/perl/TestClean_perl.ts +407 -26
- package/project/.sdk/src/cmp/perl/TestDirect_perl.ts +13 -12
- package/project/.sdk/src/cmp/perl/TestEntity_perl.ts +29 -30
- package/project/.sdk/src/cmp/perl/fragment/Entity.fragment.pm +20 -11
- package/project/.sdk/src/cmp/perl/fragment/EntityLoadOp.fragment.pm +5 -5
- package/project/.sdk/src/cmp/perl/fragment/EntityRemoveOp.fragment.pm +3 -3
- package/project/.sdk/src/cmp/perl/fragment/Main.fragment.pm +10 -5
- package/project/.sdk/src/cmp/php/Config_php.ts +18 -33
- package/project/.sdk/src/cmp/php/EntityTypes_php.ts +4 -5
- package/project/.sdk/src/cmp/php/Main_php.ts +5 -9
- package/project/.sdk/src/cmp/php/PrepareAuth_php.ts +7 -17
- package/project/.sdk/src/cmp/php/ReadmeEntity_php.ts +10 -12
- package/project/.sdk/src/cmp/php/ReadmeExamplesTest_php.ts +15 -9
- package/project/.sdk/src/cmp/php/ReadmeExplanation_php.ts +5 -3
- package/project/.sdk/src/cmp/php/ReadmeHowto_php.ts +24 -12
- package/project/.sdk/src/cmp/php/ReadmeInstall_php.ts +8 -5
- package/project/.sdk/src/cmp/php/ReadmeIntro_php.ts +1 -1
- package/project/.sdk/src/cmp/php/ReadmeModel_php.ts +31 -37
- package/project/.sdk/src/cmp/php/ReadmeQuick_php.ts +21 -10
- package/project/.sdk/src/cmp/php/ReadmeRef_php.ts +32 -29
- package/project/.sdk/src/cmp/php/ReadmeTopHowto_php.ts +5 -4
- package/project/.sdk/src/cmp/php/ReadmeTopQuick_php.ts +11 -4
- package/project/.sdk/src/cmp/php/Schema_php.ts +2 -1
- package/project/.sdk/src/cmp/php/TestClean_php.ts +416 -39
- package/project/.sdk/src/cmp/php/TestDirect_php.ts +13 -12
- package/project/.sdk/src/cmp/php/TestEntity_php.ts +56 -31
- package/project/.sdk/src/cmp/php/fragment/Entity.fragment.php +8 -8
- package/project/.sdk/src/cmp/php/fragment/EntityCreateOp.fragment.php +1 -1
- package/project/.sdk/src/cmp/php/fragment/EntityListOp.fragment.php +1 -1
- package/project/.sdk/src/cmp/php/fragment/EntityLoadOp.fragment.php +3 -3
- package/project/.sdk/src/cmp/php/fragment/EntityPatchOp.fragment.php +1 -1
- package/project/.sdk/src/cmp/php/fragment/EntityRemoveOp.fragment.php +3 -3
- package/project/.sdk/src/cmp/php/fragment/EntityUpdateOp.fragment.php +1 -1
- package/project/.sdk/src/cmp/php/fragment/Main.fragment.php +4 -4
- package/project/.sdk/src/cmp/py/Config_py.ts +18 -33
- package/project/.sdk/src/cmp/py/EntityTypes_py.ts +4 -5
- package/project/.sdk/src/cmp/py/Main_py.ts +3 -9
- package/project/.sdk/src/cmp/py/PrepareAuth_py.ts +8 -19
- package/project/.sdk/src/cmp/py/ReadmeEntity_py.ts +10 -12
- package/project/.sdk/src/cmp/py/ReadmeExamplesTest_py.ts +21 -14
- package/project/.sdk/src/cmp/py/ReadmeExplanation_py.ts +25 -15
- package/project/.sdk/src/cmp/py/ReadmeHowto_py.ts +25 -13
- package/project/.sdk/src/cmp/py/ReadmeInstall_py.ts +5 -4
- package/project/.sdk/src/cmp/py/ReadmeIntro_py.ts +4 -6
- package/project/.sdk/src/cmp/py/ReadmeModel_py.ts +25 -36
- package/project/.sdk/src/cmp/py/ReadmeQuick_py.ts +10 -8
- package/project/.sdk/src/cmp/py/ReadmeRef_py.ts +28 -28
- package/project/.sdk/src/cmp/py/ReadmeTopHowto_py.ts +5 -4
- package/project/.sdk/src/cmp/py/ReadmeTopQuick_py.ts +3 -3
- package/project/.sdk/src/cmp/py/Schema_py.ts +2 -1
- package/project/.sdk/src/cmp/py/TestClean_py.ts +342 -28
- package/project/.sdk/src/cmp/py/TestDirect_py.ts +12 -11
- package/project/.sdk/src/cmp/py/TestEntity_py.ts +31 -31
- package/project/.sdk/src/cmp/py/fragment/Entity.fragment.py +10 -9
- package/project/.sdk/src/cmp/py/fragment/Main.fragment.py +4 -6
- package/project/.sdk/src/cmp/py-data/Main_py-data.ts +280 -145
- package/project/.sdk/src/cmp/rb/Config_rb.ts +16 -26
- package/project/.sdk/src/cmp/rb/Main_rb.ts +3 -9
- package/project/.sdk/src/cmp/rb/PrepareAuth_rb.ts +9 -18
- package/project/.sdk/src/cmp/rb/ReadmeEntity_rb.ts +10 -12
- package/project/.sdk/src/cmp/rb/ReadmeExamplesTest_rb.ts +15 -10
- package/project/.sdk/src/cmp/rb/ReadmeExplanation_rb.ts +5 -3
- package/project/.sdk/src/cmp/rb/ReadmeHowto_rb.ts +24 -12
- package/project/.sdk/src/cmp/rb/ReadmeInstall_rb.ts +8 -5
- package/project/.sdk/src/cmp/rb/ReadmeIntro_rb.ts +1 -1
- package/project/.sdk/src/cmp/rb/ReadmeModel_rb.ts +28 -37
- package/project/.sdk/src/cmp/rb/ReadmeQuick_rb.ts +21 -10
- package/project/.sdk/src/cmp/rb/ReadmeRef_rb.ts +27 -27
- package/project/.sdk/src/cmp/rb/ReadmeTopHowto_rb.ts +5 -4
- package/project/.sdk/src/cmp/rb/ReadmeTopQuick_rb.ts +11 -4
- package/project/.sdk/src/cmp/rb/Schema_rb.ts +2 -1
- package/project/.sdk/src/cmp/rb/TestClean_rb.ts +270 -23
- package/project/.sdk/src/cmp/rb/TestDirect_rb.ts +13 -12
- package/project/.sdk/src/cmp/rb/TestEntity_rb.ts +30 -30
- package/project/.sdk/src/cmp/rb/fragment/Entity.fragment.rb +9 -9
- package/project/.sdk/src/cmp/rb/fragment/EntityLoadOp.fragment.rb +1 -1
- package/project/.sdk/src/cmp/rb/fragment/EntityRemoveOp.fragment.rb +1 -1
- package/project/.sdk/src/cmp/rb/fragment/Main.fragment.rb +4 -4
- package/project/.sdk/src/cmp/rust/Config_rust.ts +4 -34
- package/project/.sdk/src/cmp/rust/EntityTypes_rust.ts +3 -4
- package/project/.sdk/src/cmp/rust/Main_rust.ts +6 -2
- package/project/.sdk/src/cmp/rust/Package_rust.ts +6 -3
- package/project/.sdk/src/cmp/rust/PrepareAuth_rust.ts +13 -12
- package/project/.sdk/src/cmp/rust/ReadmeEntity_rust.ts +10 -12
- package/project/.sdk/src/cmp/rust/ReadmeExamplesTest_rust.ts +13 -6
- package/project/.sdk/src/cmp/rust/ReadmeExplanation_rust.ts +4 -2
- package/project/.sdk/src/cmp/rust/ReadmeHowto_rust.ts +26 -13
- package/project/.sdk/src/cmp/rust/ReadmeInstall_rust.ts +11 -10
- package/project/.sdk/src/cmp/rust/ReadmeIntro_rust.ts +5 -7
- package/project/.sdk/src/cmp/rust/ReadmeModel_rust.ts +35 -37
- package/project/.sdk/src/cmp/rust/ReadmeQuick_rust.ts +21 -9
- package/project/.sdk/src/cmp/rust/ReadmeRef_rust.ts +41 -32
- package/project/.sdk/src/cmp/rust/ReadmeTopHowto_rust.ts +5 -4
- package/project/.sdk/src/cmp/rust/ReadmeTopQuick_rust.ts +12 -4
- package/project/.sdk/src/cmp/rust/TestClean_rust.ts +391 -18
- package/project/.sdk/src/cmp/rust/TestDirect_rust.ts +17 -14
- package/project/.sdk/src/cmp/rust/TestEntity_rust.ts +35 -34
- package/project/.sdk/src/cmp/rust/fragment/Entity.fragment.rs +2 -2
- package/project/.sdk/src/cmp/rust/fragment/EntityCreateOp.fragment.rs +0 -1
- package/project/.sdk/src/cmp/rust/fragment/EntityListOp.fragment.rs +1 -1
- package/project/.sdk/src/cmp/rust/fragment/EntityLoadOp.fragment.rs +0 -1
- package/project/.sdk/src/cmp/rust/fragment/EntityPatchOp.fragment.rs +0 -1
- package/project/.sdk/src/cmp/rust/fragment/EntityUpdateOp.fragment.rs +0 -1
- package/project/.sdk/src/cmp/rust/fragment/Main.fragment.rs +5 -4
- package/project/.sdk/src/cmp/rust/utility_rust.ts +0 -8
- package/project/.sdk/src/cmp/scala/Config_scala.ts +5 -26
- package/project/.sdk/src/cmp/scala/EntityTypes_scala.ts +4 -5
- package/project/.sdk/src/cmp/scala/Main_scala.ts +5 -1
- package/project/.sdk/src/cmp/scala/PrepareAuth_scala.ts +13 -13
- package/project/.sdk/src/cmp/scala/ReadmeEntity_scala.ts +10 -12
- package/project/.sdk/src/cmp/scala/ReadmeExamplesTest_scala.ts +11 -4
- package/project/.sdk/src/cmp/scala/ReadmeExplanation_scala.ts +3 -3
- package/project/.sdk/src/cmp/scala/ReadmeHowto_scala.ts +12 -20
- package/project/.sdk/src/cmp/scala/ReadmeInstall_scala.ts +11 -15
- package/project/.sdk/src/cmp/scala/ReadmeIntro_scala.ts +5 -7
- package/project/.sdk/src/cmp/scala/ReadmeModel_scala.ts +24 -35
- package/project/.sdk/src/cmp/scala/ReadmeQuick_scala.ts +23 -23
- package/project/.sdk/src/cmp/scala/ReadmeRef_scala.ts +25 -25
- package/project/.sdk/src/cmp/scala/ReadmeTopHowto_scala.ts +5 -4
- package/project/.sdk/src/cmp/scala/ReadmeTopQuick_scala.ts +13 -10
- package/project/.sdk/src/cmp/scala/Schema_scala.ts +2 -1
- package/project/.sdk/src/cmp/scala/TestClean_scala.ts +324 -20
- package/project/.sdk/src/cmp/scala/TestEntity_scala.ts +16 -16
- package/project/.sdk/src/cmp/scala/fragment/EntityBase.fragment.scala +8 -7
- package/project/.sdk/src/cmp/scala/utility_scala.ts +4 -19
- package/project/.sdk/src/cmp/swift/Config_swift.ts +3 -14
- package/project/.sdk/src/cmp/swift/EntityTypes_swift.ts +3 -4
- package/project/.sdk/src/cmp/swift/Main_swift.ts +4 -0
- package/project/.sdk/src/cmp/swift/PrepareAuth_swift.ts +14 -14
- package/project/.sdk/src/cmp/swift/ReadmeEntity_swift.ts +10 -12
- package/project/.sdk/src/cmp/swift/ReadmeExamplesTest_swift.ts +14 -7
- package/project/.sdk/src/cmp/swift/ReadmeExplanation_swift.ts +3 -3
- package/project/.sdk/src/cmp/swift/ReadmeHowto_swift.ts +12 -20
- package/project/.sdk/src/cmp/swift/ReadmeInstall_swift.ts +13 -13
- package/project/.sdk/src/cmp/swift/ReadmeIntro_swift.ts +4 -6
- package/project/.sdk/src/cmp/swift/ReadmeModel_swift.ts +24 -35
- package/project/.sdk/src/cmp/swift/ReadmeQuick_swift.ts +24 -25
- package/project/.sdk/src/cmp/swift/ReadmeRef_swift.ts +25 -25
- package/project/.sdk/src/cmp/swift/ReadmeTopHowto_swift.ts +5 -4
- package/project/.sdk/src/cmp/swift/ReadmeTopQuick_swift.ts +13 -11
- package/project/.sdk/src/cmp/swift/TestClean_swift.ts +352 -23
- package/project/.sdk/src/cmp/swift/fragment/EntityBase.fragment.swift +8 -7
- package/project/.sdk/src/cmp/swift/fragment/Main.fragment.swift +5 -5
- package/project/.sdk/src/cmp/ts/Config_ts.ts +13 -35
- package/project/.sdk/src/cmp/ts/EntityBase_ts.ts +1 -1
- package/project/.sdk/src/cmp/ts/EntityTypes_ts.ts +4 -5
- package/project/.sdk/src/cmp/ts/Entity_ts.ts +1 -1
- package/project/.sdk/src/cmp/ts/Main_ts.ts +6 -9
- package/project/.sdk/src/cmp/ts/Package_ts.ts +3 -2
- package/project/.sdk/src/cmp/ts/PrepareAuth_ts.ts +11 -10
- package/project/.sdk/src/cmp/ts/ReadmeEntity_ts.ts +9 -11
- package/project/.sdk/src/cmp/ts/ReadmeExampleTest_ts.ts +33 -9
- package/project/.sdk/src/cmp/ts/ReadmeExamplesTest_ts.ts +35 -7
- package/project/.sdk/src/cmp/ts/ReadmeExplanation_ts.ts +1 -1
- package/project/.sdk/src/cmp/ts/ReadmeHowto_ts.ts +38 -18
- package/project/.sdk/src/cmp/ts/ReadmeInstall_ts.ts +9 -5
- package/project/.sdk/src/cmp/ts/ReadmeIntro_ts.ts +6 -3
- package/project/.sdk/src/cmp/ts/ReadmeModel_ts.ts +32 -53
- package/project/.sdk/src/cmp/ts/ReadmeQuick_ts.ts +10 -8
- package/project/.sdk/src/cmp/ts/ReadmeRef_ts.ts +22 -26
- package/project/.sdk/src/cmp/ts/ReadmeTopHowto_ts.ts +5 -4
- package/project/.sdk/src/cmp/ts/ReadmeTopQuick_ts.ts +6 -6
- package/project/.sdk/src/cmp/ts/Schema_ts.ts +2 -1
- package/project/.sdk/src/cmp/ts/TestClean_ts.ts +229 -13
- package/project/.sdk/src/cmp/ts/TestDirect_ts.ts +17 -17
- package/project/.sdk/src/cmp/ts/TestEntity_ts.ts +30 -30
- package/project/.sdk/src/cmp/ts/TestLive_ts.ts +7 -6
- package/project/.sdk/src/cmp/ts/fragment/Direct.test.fragment.ts +1 -1
- package/project/.sdk/src/cmp/ts/fragment/Entity.test.fragment.ts +1 -1
- package/project/.sdk/src/cmp/ts/fragment/EntityBase.fragment.ts +3 -3
- package/project/.sdk/src/cmp/ts/fragment/Main.fragment.ts +2 -2
- package/project/.sdk/src/cmp/zig/Config_zig.ts +5 -21
- package/project/.sdk/src/cmp/zig/Main_zig.ts +4 -0
- package/project/.sdk/src/cmp/zig/Package_zig.ts +3 -2
- package/project/.sdk/src/cmp/zig/PrepareAuth_zig.ts +10 -21
- package/project/.sdk/src/cmp/zig/ReadmeEntity_zig.ts +9 -11
- package/project/.sdk/src/cmp/zig/ReadmeExamplesTest_zig.ts +8 -7
- package/project/.sdk/src/cmp/zig/ReadmeExplanation_zig.ts +1 -1
- package/project/.sdk/src/cmp/zig/ReadmeHowto_zig.ts +17 -22
- package/project/.sdk/src/cmp/zig/ReadmeInstall_zig.ts +12 -9
- package/project/.sdk/src/cmp/zig/ReadmeIntro_zig.ts +5 -7
- package/project/.sdk/src/cmp/zig/ReadmeModel_zig.ts +40 -37
- package/project/.sdk/src/cmp/zig/ReadmeQuick_zig.ts +24 -10
- package/project/.sdk/src/cmp/zig/ReadmeRef_zig.ts +46 -30
- package/project/.sdk/src/cmp/zig/ReadmeTopHowto_zig.ts +5 -4
- package/project/.sdk/src/cmp/zig/ReadmeTopQuick_zig.ts +15 -5
- package/project/.sdk/src/cmp/zig/TestClean_zig.ts +259 -26
- package/project/.sdk/src/cmp/zig/fragment/Build.fragment.zig +1 -0
- package/project/.sdk/src/cmp/zig/fragment/Entity.fragment.zig +16 -17
- package/project/.sdk/src/cmp/zig/fragment/Main.fragment.zig +23 -12
- package/project/.sdk/src/cmp/zig/fragment/Root.fragment.zig +2 -1
- package/project/.sdk/src/cmp/zig/utility_zig.ts +0 -13
- package/project/.sdk/tm/c/Makefile +2 -1
- package/project/.sdk/tm/c/core/response.c +27 -4
- package/project/.sdk/tm/c/core/sdk.h +14 -7
- package/project/.sdk/tm/c/feature/secrets/plugin/capability.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/capability.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/catalog.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/catalog.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/config.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/config.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/depend.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/depend.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/env.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/env.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/export.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/export.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/graph.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/graph.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/host.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/host.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/order.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/order.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/point.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/point.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/ref.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/ref.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/resolve.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/resolve.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/types.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/types.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/value.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/value.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/version.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/version.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/aws.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/azuresecrets.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/boru.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/clock.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/doppler.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/encode.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/gcpsecrets.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/hashicorp.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/httpjson.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/infisical.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/minivault.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/onepassword.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/proc.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/secretspec.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/sekretoplugins.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/sha256.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/sigv4.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/support.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/tls.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/internal.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/json.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/providers.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/sekreto.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/sekreto.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/util.c +2 -2
- package/project/.sdk/tm/c/feature/secrets.c +4 -2
- package/project/.sdk/tm/c/feature/validate.c +5 -5
- package/project/.sdk/tm/c/tests/feature/secrets/secrets_test.c +200 -1
- package/project/.sdk/tm/c/tests/pipeline_test.c +1 -1
- package/project/.sdk/tm/c/tests/primary_corpus_test.c +17 -4
- package/project/.sdk/tm/c/tests/primary_utility_test.c +7 -7
- package/project/.sdk/tm/c/tests/sdk_pipeline_test.c +2 -2
- package/project/.sdk/tm/c/tests/server_variable_test.c +10 -48
- package/project/.sdk/tm/c/tests/struct_corpus_test.c +68 -2
- package/project/.sdk/tm/c/tests/transport_test.c +161 -3
- package/project/.sdk/tm/c/tests/vendor/omni/json.c +65 -26
- package/project/.sdk/tm/c/tests/vendor/omni/omni.h +2 -2
- package/project/.sdk/tm/c/tests/vendor/omni/runner.c +2 -2
- package/project/.sdk/tm/c/tests/vendor/omni/util.c +2 -2
- package/project/.sdk/tm/c/utility/clean.c +94 -12
- package/project/.sdk/tm/c/utility/fetcher.c +22 -6
- package/project/.sdk/tm/c/utility/make_error.c +4 -4
- package/project/.sdk/tm/c/utility/make_options.c +22 -16
- package/project/.sdk/tm/c/utility/make_spec.c +1 -1
- package/project/.sdk/tm/c/utility/prepare_body.c +64 -1
- package/project/.sdk/tm/c/utility/prepare_query.c +11 -6
- package/project/.sdk/tm/c/utility/struct/inject.c +23 -2
- package/project/.sdk/tm/c/utility/struct/re_util.c +3 -0
- package/project/.sdk/tm/c/utility/struct/regex.c +43 -22
- package/project/.sdk/tm/c/utility/struct/regex.h +4 -1
- package/project/.sdk/tm/c/utility/struct/transform.c +982 -296
- package/project/.sdk/tm/c/utility/struct/utility.c +712 -136
- package/project/.sdk/tm/c/utility/struct/value.c +3 -0
- package/project/.sdk/tm/c/utility/struct/value.h +3 -0
- package/project/.sdk/tm/c/utility/struct/value_io.c +3 -0
- package/project/.sdk/tm/c/utility/struct/value_io.h +3 -0
- package/project/.sdk/tm/c/utility/struct/voxgig_struct.h +36 -1
- package/project/.sdk/tm/clojure/feature/secrets/sdk/feature/secrets.clj +3 -1
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/capability.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/catalog.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/config.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/depend.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/env.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/export.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/graph.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/host.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/json.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/order.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/point.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/ref.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/resolve.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/types.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/version.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/addr.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/chain.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/core.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/json.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/aws.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/azuresecrets.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/boru.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/doppler.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/gcpsecrets.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/hashicorp.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/httpjson.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/infisical.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/minivault.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/onepassword.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/proc.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/secretspec.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/sigv4.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/provider.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/providers.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto.clj +2 -2
- package/project/.sdk/tm/clojure/src/sdk/client.clj +4 -4
- package/project/.sdk/tm/clojure/src/sdk/core.clj +215 -41
- package/project/.sdk/tm/clojure/src/sdk/features.clj +6 -7
- package/project/.sdk/tm/clojure/src/voxgig/struct.clj +866 -186
- package/project/.sdk/tm/clojure/test/sdk/test/feature/secrets.clj +85 -2
- package/project/.sdk/tm/clojure/test/sdk/test/feature.clj +1 -1
- package/project/.sdk/tm/clojure/test/sdk/test/omni_smoke.clj +1 -1
- package/project/.sdk/tm/clojure/test/sdk/test/pipeline.clj +98 -3
- package/project/.sdk/tm/clojure/test/sdk/test/primary.clj +7 -2
- package/project/.sdk/tm/clojure/test/sdk/test/struct_corpus.clj +22 -9
- package/project/.sdk/tm/clojure/test/sdk/test_runner.clj +15 -14
- package/project/.sdk/tm/clojure/test/vendor/omni/voxgig/omni/json.clj +2 -2
- package/project/.sdk/tm/clojure/test/vendor/omni/voxgig/omni/runner.clj +2 -2
- package/project/.sdk/tm/clojure/test/vendor/omni/voxgig/omni/util.clj +2 -2
- package/project/.sdk/tm/cpp/Makefile +3 -3
- package/project/.sdk/tm/cpp/core/types.hpp +49 -30
- package/project/.sdk/tm/cpp/feature/secrets/plugin/capability.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/capability.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/catalog.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/catalog.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/config.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/config.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/depend.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/depend.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/env.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/env.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/export.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/export.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/graph.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/graph.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/host.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/host.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/order.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/order.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/point.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/point.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/ref.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/ref.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/resolve.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/resolve.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/types.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/types.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/value.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/value.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/version.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/version.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Aws.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Aws.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Azuresecrets.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Azuresecrets.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Boru.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Boru.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Crypto.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Crypto.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Doppler.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Doppler.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Gcpsecrets.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Gcpsecrets.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Hashicorp.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Hashicorp.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Httpjson.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Httpjson.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Infisical.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Infisical.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Minivault.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Minivault.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Onepassword.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Onepassword.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Proc.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Proc.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Secretspec.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Secretspec.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Sigv4.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Sigv4.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Tls.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Tls.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Json.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Json.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Provider.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Provider.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Providers.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Providers.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Sekreto.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Sekreto.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets.hpp +3 -1
- package/project/.sdk/tm/cpp/feature/validate.hpp +5 -5
- package/project/.sdk/tm/cpp/test/custom_utility_test.cpp +1 -1
- package/project/.sdk/tm/cpp/test/feature/secrets/secrets_test.cpp +226 -0
- package/project/.sdk/tm/cpp/test/omni_resolver.hpp +1 -1
- package/project/.sdk/tm/cpp/test/primary_utility_test.cpp +9 -3
- package/project/.sdk/tm/cpp/test/runner_support.hpp +25 -4
- package/project/.sdk/tm/cpp/test/struct_corpus_test.cpp +32 -3
- package/project/.sdk/tm/cpp/test/vendor/omni/json.hpp +55 -17
- package/project/.sdk/tm/cpp/test/vendor/omni/omni.hpp +2 -2
- package/project/.sdk/tm/cpp/test/vendor/omni/util.hpp +2 -2
- package/project/.sdk/tm/cpp/utility/pipeline.hpp +148 -24
- package/project/.sdk/tm/cpp/utility/voxgigstruct/value.hpp +3 -0
- package/project/.sdk/tm/cpp/utility/voxgigstruct/value_io.hpp +3 -0
- package/project/.sdk/tm/cpp/utility/voxgigstruct/voxgig_struct.hpp +1374 -371
- package/project/.sdk/tm/csharp/Makefile +6 -6
- package/project/.sdk/tm/csharp/core/Point.cs +6 -0
- package/project/.sdk/tm/csharp/core/Response.cs +21 -2
- package/project/.sdk/tm/csharp/core/Result.cs +2 -2
- package/project/.sdk/tm/csharp/core/Utility.cs +2 -0
- package/project/.sdk/tm/csharp/feature/SecretsFeature.cs +7 -6
- package/project/.sdk/tm/csharp/feature/ValidateFeature.cs +4 -5
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Capability.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Catalog.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Config.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Definition.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Depend.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Entry.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Env.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Export.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Graph.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Host.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Inst.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Json.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Order.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Plugin.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Point.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Refs.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Resolve.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Types.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Version.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Aws.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/AzureSecrets.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Boru.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Child.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Doppler.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/GcpSecrets.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Hashicorp.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/HttpJson.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Infisical.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/MiniVault.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/OnePassword.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/SecretSpec.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Sigv4.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/sekreto/Json.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/sekreto/Providers.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/sekreto/Sekreto.cs +2 -2
- package/project/.sdk/tm/csharp/test/PipelineTest.cs +1 -1
- package/project/.sdk/tm/csharp/test/PrimaryUtilityTest.cs +242 -1
- package/project/.sdk/tm/csharp/test/Runner.cs +4 -4
- package/project/.sdk/tm/csharp/test/StructUtilityTest.cs +38 -38
- package/project/.sdk/tm/csharp/test/feature/secrets/SecretsFeatureTest.cs +267 -0
- package/project/.sdk/tm/csharp/test/vendor/omni/Runner.cs +2 -2
- package/project/.sdk/tm/csharp/test/vendor/omni/Util.cs +2 -2
- package/project/.sdk/tm/csharp/utility/Clean.cs +139 -12
- package/project/.sdk/tm/csharp/utility/Fetcher.cs +115 -35
- package/project/.sdk/tm/csharp/utility/MakeError.cs +4 -5
- package/project/.sdk/tm/csharp/utility/MakeOptions.cs +5 -5
- package/project/.sdk/tm/csharp/utility/MakeSpec.cs +2 -2
- package/project/.sdk/tm/csharp/utility/PrepareBody.cs +42 -0
- package/project/.sdk/tm/csharp/utility/PrepareQuery.cs +13 -2
- package/project/.sdk/tm/csharp/utility/Register.cs +1 -0
- package/project/.sdk/tm/csharp/utility/struct/Struct.cs +1587 -325
- package/project/.sdk/tm/elixir/lib/projectname/entity_base.ex +9 -11
- package/project/.sdk/tm/elixir/lib/projectname/error.ex +1 -1
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/capability.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/catalog.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/config.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/depend.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/env.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/error.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/export.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/graph.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/host.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/inst.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/json.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/order.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/point.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/ref.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/resolve.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/types.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/version.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/voxgig_plugin.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/json.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/aws.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/azuresecrets.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/boru.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/doppler.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/gcpsecrets.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/hashicorp.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/http.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/httpjson.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/infisical.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/minivault.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/onepassword.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/proc.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/secretspec.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/sigv4.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/provider.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/providers.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/sekreto.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets.ex +4 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/validate.ex +4 -5
- package/project/.sdk/tm/elixir/lib/projectname/utility.ex +281 -43
- package/project/.sdk/tm/elixir/lib/utility/struct/voxgig_struct.ex +1088 -253
- package/project/.sdk/tm/elixir/test/feature/secrets/secrets_test.exs +147 -1
- package/project/.sdk/tm/elixir/test/pipeline_test.exs +167 -1
- package/project/.sdk/tm/elixir/test/primary_utility_test.exs +12 -1
- package/project/.sdk/tm/elixir/test/struct_corpus_test.exs +43 -21
- package/project/.sdk/tm/elixir/test/support/omni.ex +2 -2
- package/project/.sdk/tm/elixir/test/vendor/omni/json.ex +33 -5
- package/project/.sdk/tm/elixir/test/vendor/omni/runner.ex +2 -2
- package/project/.sdk/tm/elixir/test/vendor/omni/util.ex +2 -2
- package/project/.sdk/tm/go/Makefile +4 -4
- package/project/.sdk/tm/go/core/response.go +17 -4
- package/project/.sdk/tm/go/core/result.go +2 -2
- package/project/.sdk/tm/go/core/target.go +8 -0
- package/project/.sdk/tm/go/core/utility_type.go +2 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/capability.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/catalog.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/config.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/depend.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/env.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/export.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/graph.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/host.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/order.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/point.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/ref.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/resolve.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/types.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/util.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/version.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/aws/aws.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/aws/sigv4.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/azuresecrets/azuresecrets.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/boru/boru.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/doppler/doppler.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/gcpsecrets/gcpsecrets.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/hashicorp/hashicorp.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/httpjson/httpjson.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/infisical/infisical.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/minivault/format.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/minivault/minivault.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/onepassword/onepassword.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/secretspec/secretspec.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/sekreto/addr.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/sekreto/providers.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/sekreto/sekreto.go +2 -2
- package/project/.sdk/tm/go/feature/secrets_feature.go +8 -1
- package/project/.sdk/tm/go/test/concurrency_test.go +1 -1
- package/project/.sdk/tm/go/test/custom_utility_test.go +5 -5
- package/project/.sdk/tm/go/test/feature/secrets/secrets_feature_test.go +160 -7
- package/project/.sdk/tm/go/test/feature_corpus_test.go +1 -1
- package/project/.sdk/tm/go/test/feature_test.go +5 -1
- package/project/.sdk/tm/go/test/omni/omni.go +2 -2
- package/project/.sdk/tm/go/test/omni/util.go +12 -5
- package/project/.sdk/tm/go/test/omniresolver_test.go +1 -1
- package/project/.sdk/tm/go/test/pipeline_test.go +4 -1
- package/project/.sdk/tm/go/test/primary_utility_test.go +181 -5
- package/project/.sdk/tm/go/test/server_variable_test.go +50 -0
- package/project/.sdk/tm/go/test/struct_utility_test.go +59 -56
- package/project/.sdk/tm/go/test/testsupport_test.go +13 -3
- package/project/.sdk/tm/go/utility/clean.go +223 -6
- package/project/.sdk/tm/go/utility/fetcher.go +59 -10
- package/project/.sdk/tm/go/utility/make_error.go +4 -4
- package/project/.sdk/tm/go/utility/make_options.go +12 -5
- package/project/.sdk/tm/go/utility/prepare_body.go +37 -1
- package/project/.sdk/tm/go/utility/prepare_query.go +10 -1
- package/project/.sdk/tm/go/utility/register.go +12 -1
- package/project/.sdk/tm/go/utility/struct/voxgigstruct.go +1510 -430
- package/project/.sdk/tm/java/Makefile +7 -6
- package/project/.sdk/tm/java/core/Point.java +7 -0
- package/project/.sdk/tm/java/core/Response.java +16 -2
- package/project/.sdk/tm/java/core/Result.java +2 -2
- package/project/.sdk/tm/java/core/SdkClient.java +4 -4
- package/project/.sdk/tm/java/core/Utility.java +7 -0
- package/project/.sdk/tm/java/feature/SecretsFeature.java +3 -0
- package/project/.sdk/tm/java/feature/ValidateFeature.java +4 -5
- package/project/.sdk/tm/java/feature/secrets/plugin/Capability.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Catalog.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Config.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Definition.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Depend.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Entry.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Env.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Export.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Graph.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Host.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Inst.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Json.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Order.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Plugin.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/PluginException.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Point.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Refs.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Resolve.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Types.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Version.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Addr.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Builtins.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Json.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Provider.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Sekreto.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Support.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Aws.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Azuresecrets.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Boru.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Doppler.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Gcpsecrets.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Hashicorp.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Httpjson.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Infisical.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Minivault.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Onepassword.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Proc.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Secretspec.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Sigv4.java +2 -2
- package/project/.sdk/tm/java/test/PipelineTest.java +1 -1
- package/project/.sdk/tm/java/test/PrimaryUtilityTest.java +199 -2
- package/project/.sdk/tm/java/test/RunnerSupport.java +4 -4
- package/project/.sdk/tm/java/test/StructCorpusTest.java +32 -3
- package/project/.sdk/tm/java/test/feature/secrets/SecretsFeatureTest.java +111 -2
- package/project/.sdk/tm/java/test/vendor/omni/Json.java +2 -2
- package/project/.sdk/tm/java/test/vendor/omni/Runner.java +2 -2
- package/project/.sdk/tm/java/test/vendor/omni/Util.java +2 -2
- package/project/.sdk/tm/java/utility/Clean.java +186 -19
- package/project/.sdk/tm/java/utility/Fetcher.java +109 -14
- package/project/.sdk/tm/java/utility/MakeError.java +4 -4
- package/project/.sdk/tm/java/utility/MakeOptions.java +5 -5
- package/project/.sdk/tm/java/utility/MakeSpec.java +1 -1
- package/project/.sdk/tm/java/utility/PrepareBody.java +50 -0
- package/project/.sdk/tm/java/utility/PrepareQuery.java +11 -1
- package/project/.sdk/tm/java/utility/Register.java +4 -0
- package/project/.sdk/tm/java/utility/TransformResponse.java +5 -0
- package/project/.sdk/tm/java/utility/struct/Struct.java +1239 -229
- package/project/.sdk/tm/js/Makefile +5 -4
- package/project/.sdk/tm/js/src/Point.js +2 -0
- package/project/.sdk/tm/js/src/feature/secrets/SecretsFeature.js +2 -0
- package/project/.sdk/tm/js/src/feature/secrets/plugin/capability.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/catalog.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/config.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/depend.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/env.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/export.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/graph.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/host.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/index.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/order.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/point.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/ref.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/resolve.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/types.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/version.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/Sekreto.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/index.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/aws.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/azuresecrets.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/boru.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/doppler.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/gcpsecrets.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/hashicorp.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/httpjson.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/infisical.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/minivault.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/onepassword.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/secretspec.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/sigv4.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/addr.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/builtin.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/dotenv.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/env.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/file.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/memory.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/support.js +1 -1
- package/project/.sdk/tm/js/src/feature/validate/ValidateFeature.js +4 -5
- package/project/.sdk/tm/js/src/utility/CleanUtility.js +104 -10
- package/project/.sdk/tm/js/src/utility/FetcherUtility.js +99 -1
- package/project/.sdk/tm/js/src/utility/MakeErrorUtility.js +4 -4
- package/project/.sdk/tm/js/src/utility/MakeOptionsUtility.js +5 -5
- package/project/.sdk/tm/js/src/utility/MakeSpecUtility.js +1 -1
- package/project/.sdk/tm/js/src/utility/MediaUtility.js +32 -0
- package/project/.sdk/tm/js/src/utility/PrepareBodyUtility.js +29 -0
- package/project/.sdk/tm/js/src/utility/PrepareQueryUtility.js +5 -3
- package/project/.sdk/tm/js/src/utility/ResultBodyUtility.js +6 -14
- package/project/.sdk/tm/js/src/utility/StructUtility.js +972 -180
- package/project/.sdk/tm/js/src/utility/Utility.js +2 -1
- package/project/.sdk/tm/js/test/feature/harness.js +6 -7
- package/project/.sdk/tm/js/test/feature/secrets/Secrets.test.js +92 -2
- package/project/.sdk/tm/js/test/live-entity.js +8 -8
- package/project/.sdk/tm/js/test/utility/PrimaryUtility.test.js +9 -1
- package/project/.sdk/tm/js/test/utility/StructUtility.test.js +32 -27
- package/project/.sdk/tm/js/test/utility/index.js +1 -1
- package/project/.sdk/tm/js/test/vendor/omni/index.js +1 -1
- package/project/.sdk/tm/js/test/vendor/omni/runner.js +1 -1
- package/project/.sdk/tm/js/test/vendor/omni/util.js +1 -1
- package/project/.sdk/tm/kotlin/Makefile +7 -6
- package/project/.sdk/tm/kotlin/core/Point.kt +7 -0
- package/project/.sdk/tm/kotlin/core/Response.kt +17 -2
- package/project/.sdk/tm/kotlin/core/Result.kt +2 -2
- package/project/.sdk/tm/kotlin/core/SdkClient.kt +4 -4
- package/project/.sdk/tm/kotlin/core/Utility.kt +4 -2
- package/project/.sdk/tm/kotlin/feature/SecretsFeature.kt +2 -0
- package/project/.sdk/tm/kotlin/feature/ValidateFeature.kt +4 -5
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Capability.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Catalog.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Config.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Depend.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Env.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Export.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Graph.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Host.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Json.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Order.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Plugin.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Point.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Refs.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Resolve.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Types.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Version.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Json.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Provider.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Providers.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Sekreto.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Spec.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Support.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Aws.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Azuresecrets.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Boru.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Doppler.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Gcpsecrets.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Hashicorp.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Httpjson.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Infisical.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Minivault.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Onepassword.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Secretspec.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Sigv4.kt +2 -2
- package/project/.sdk/tm/kotlin/test/PipelineTest.kt +1 -1
- package/project/.sdk/tm/kotlin/test/PrimaryUtilityTest.kt +188 -2
- package/project/.sdk/tm/kotlin/test/RunnerSupport.kt +23 -4
- package/project/.sdk/tm/kotlin/test/StructCorpusTest.kt +23 -3
- package/project/.sdk/tm/kotlin/test/feature/secrets/SecretsTest.kt +110 -1
- package/project/.sdk/tm/kotlin/test/vendor/omni/Json.kt +2 -2
- package/project/.sdk/tm/kotlin/test/vendor/omni/Runner.kt +2 -2
- package/project/.sdk/tm/kotlin/test/vendor/omni/Util.kt +2 -2
- package/project/.sdk/tm/kotlin/utility/CoreUtil.kt +142 -16
- package/project/.sdk/tm/kotlin/utility/Fetcher.kt +113 -14
- package/project/.sdk/tm/kotlin/utility/MakeOptions.kt +5 -5
- package/project/.sdk/tm/kotlin/utility/MakeSpecUrl.kt +1 -1
- package/project/.sdk/tm/kotlin/utility/Prepare.kt +40 -10
- package/project/.sdk/tm/kotlin/utility/Register.kt +1 -0
- package/project/.sdk/tm/kotlin/utility/struct/Struct.kt +1074 -164
- package/project/.sdk/tm/lua/Makefile +4 -3
- package/project/.sdk/tm/lua/core/utility_type.lua +2 -0
- package/project/.sdk/tm/lua/feature/secrets/native/sekretonet.c +2 -2
- package/project/.sdk/tm/lua/feature/secrets/native/sekretovault.c +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/capability.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/catalog.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/config.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/depend.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/env.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/export.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/graph.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/host.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/json.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/order.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/point.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/ref.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/resolve.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/types.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/version.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/addr.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/err.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/name.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/aws.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/azuresecrets.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/boru.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/crypto.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/doppler.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/gcpsecrets.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/hashicorp.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/httpjson.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/infisical.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/json.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/minivault.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/net.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/onepassword.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/secretspec.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/sigv4.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/support.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/providers.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets_feature.lua +3 -0
- package/project/.sdk/tm/lua/feature/validate_feature.lua +5 -6
- package/project/.sdk/tm/lua/test/feature/secrets/secrets_feature_test.lua +115 -2
- package/project/.sdk/tm/lua/test/omni.lua +1 -1
- package/project/.sdk/tm/lua/test/pipeline_test.lua +1 -1
- package/project/.sdk/tm/lua/test/primary_utility_test.lua +160 -1
- package/project/.sdk/tm/lua/test/runner.lua +3 -1
- package/project/.sdk/tm/lua/test/struct_utility_test.lua +152 -44
- package/project/.sdk/tm/lua/test/vendor/omni/json.lua +26 -6
- package/project/.sdk/tm/lua/test/vendor/omni/regex.lua +2 -2
- package/project/.sdk/tm/lua/test/vendor/omni/runner.lua +2 -2
- package/project/.sdk/tm/lua/test/vendor/omni/util.lua +2 -2
- package/project/.sdk/tm/lua/utility/clean.lua +86 -6
- package/project/.sdk/tm/lua/utility/fetcher.lua +19 -5
- package/project/.sdk/tm/lua/utility/make_error.lua +4 -5
- package/project/.sdk/tm/lua/utility/make_options.lua +5 -5
- package/project/.sdk/tm/lua/utility/make_spec.lua +1 -1
- package/project/.sdk/tm/lua/utility/media.lua +36 -0
- package/project/.sdk/tm/lua/utility/prepare_body.lua +40 -0
- package/project/.sdk/tm/lua/utility/prepare_query.lua +11 -1
- package/project/.sdk/tm/lua/utility/register.lua +1 -0
- package/project/.sdk/tm/lua/utility/struct/regex.lua +26 -9
- package/project/.sdk/tm/lua/utility/struct/struct.lua +1289 -245
- package/project/.sdk/tm/lua/utility/unreadable_body.lua +6 -16
- package/project/.sdk/tm/ocaml/Makefile +1 -1
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/capability.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/catalog.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/config.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/defs.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/depend.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/env.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/export.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/graph.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/host.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/order.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/point.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/ref.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/resolve.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/types.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/value.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/version.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/aws.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/azuresecrets.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/boru.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/crypto.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/doppler.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/gcpsecrets.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/hashicorp.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/http.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/httpjson.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/infisical.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/minivault.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/minivault_stubs.c +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/onepassword.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/runcmd.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/secretspec.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/sigv4.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/tls.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/tls_stubs.c +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/sekreto/json.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/sekreto/provider.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/sekreto/secret.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/sekreto/sekreto.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets_feature.ml +3 -1
- package/project/.sdk/tm/ocaml/sdk_features.ml +9 -10
- package/project/.sdk/tm/ocaml/sdk_runtime.ml +118 -20
- package/project/.sdk/tm/ocaml/sdk_types.ml +1 -1
- package/project/.sdk/tm/ocaml/test/feature/secrets/t_secrets.ml +154 -3
- package/project/.sdk/tm/ocaml/test/primary_utility_test.ml +14 -9
- package/project/.sdk/tm/ocaml/test/struct_corpus.ml +24 -15
- package/project/.sdk/tm/ocaml/test/vendor/omni/omni.ml +34 -28
- package/project/.sdk/tm/ocaml/utility/voxgig_struct.ml +807 -157
- package/project/.sdk/tm/ocaml/utility/vregex.ml +190 -60
- package/project/.sdk/tm/perl/Makefile +8 -7
- package/project/.sdk/tm/perl/core/control.pm +1 -1
- package/project/.sdk/tm/perl/core/error.pm +14 -1
- package/project/.sdk/tm/perl/core/helpers.pm +8 -7
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Capability.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Catalog.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Config.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Depend.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Env.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Export.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Graph.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Host.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Order.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Point.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Ref.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Resolve.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Types.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Version.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Aws.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Azuresecrets.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Boru.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Doppler.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Gcpsecrets.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Hashicorp.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Httpjson.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Infisical.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Minivault.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Onepassword.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Proc.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Secretspec.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Sigv4.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/sekreto/Voxgig/Sekreto/Addr.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/sekreto/Voxgig/Sekreto/Providers.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/sekreto/Voxgig/Sekreto.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets_feature.pm +2 -0
- package/project/.sdk/tm/perl/feature/validate_feature.pm +4 -5
- package/project/.sdk/tm/perl/lib/Voxgig/Struct.pm +1082 -149
- package/project/.sdk/tm/perl/t/feature/secrets/secrets.t +105 -0
- package/project/.sdk/tm/perl/t/feature_corpus.t +1 -1
- package/project/.sdk/tm/perl/t/omni.pm +16 -6
- package/project/.sdk/tm/perl/t/primary_utility.t +151 -2
- package/project/.sdk/tm/perl/t/runner.pm +1 -1
- package/project/.sdk/tm/perl/t/struct_utility.t +19 -11
- package/project/.sdk/tm/perl/t/vendor/omni/Voxgig/Omni/Runner.pm +1 -1
- package/project/.sdk/tm/perl/t/vendor/omni/Voxgig/Omni/Util.pm +1 -1
- package/project/.sdk/tm/perl/t/vendor/omni/Voxgig/Omni.pm +1 -1
- package/project/.sdk/tm/perl/utility/clean.pm +130 -15
- package/project/.sdk/tm/perl/utility/fetcher.pm +18 -5
- package/project/.sdk/tm/perl/utility/make_error.pm +4 -4
- package/project/.sdk/tm/perl/utility/make_options.pm +5 -5
- package/project/.sdk/tm/perl/utility/make_spec.pm +1 -1
- package/project/.sdk/tm/perl/utility/media.pm +29 -0
- package/project/.sdk/tm/perl/utility/prepare_body.pm +38 -4
- package/project/.sdk/tm/perl/utility/prepare_query.pm +7 -1
- package/project/.sdk/tm/perl/utility/result_body.pm +6 -13
- package/project/.sdk/tm/perl/utility/transform_response.pm +3 -0
- package/project/.sdk/tm/php/Makefile +4 -3
- package/project/.sdk/tm/php/core/Control.php +3 -2
- package/project/.sdk/tm/php/core/Helpers.php +49 -0
- package/project/.sdk/tm/php/core/UtilityType.php +2 -0
- package/project/.sdk/tm/php/feature/SecretsFeature.php +2 -0
- package/project/.sdk/tm/php/feature/ValidateFeature.php +6 -5
- package/project/.sdk/tm/php/feature/secrets/plugin/Capability.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Catalog.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Config.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Depend.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Env.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Export.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Graph.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Host.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Order.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Point.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Ref.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Resolve.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Types.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Version.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/plugin.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/aws.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/azuresecrets.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/boru.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/doppler.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/gcpsecrets.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/hashicorp.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/httpjson.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/infisical.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/minivault.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/onepassword.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/runcmd.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/secretspec.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/sigv4.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/src/Addr.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/src/Providers.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/src/Sekreto.php +2 -2
- package/project/.sdk/tm/php/test/FeatureCorpusTest.php +1 -1
- package/project/.sdk/tm/php/test/Omni.php +1 -1
- package/project/.sdk/tm/php/test/PipelineTest.php +146 -1
- package/project/.sdk/tm/php/test/PrimaryUtilityTest.php +23 -1
- package/project/.sdk/tm/php/test/Runner.php +1 -1
- package/project/.sdk/tm/php/test/StructUtilityTest.php +65 -116
- package/project/.sdk/tm/php/test/feature/secrets/SecretsTest.php +117 -1
- package/project/.sdk/tm/php/test/vendor/omni/Runner.php +2 -2
- package/project/.sdk/tm/php/test/vendor/omni/Util.php +2 -2
- package/project/.sdk/tm/php/utility/Clean.php +119 -19
- package/project/.sdk/tm/php/utility/Fetcher.php +24 -7
- package/project/.sdk/tm/php/utility/MakeError.php +4 -5
- package/project/.sdk/tm/php/utility/MakeOptions.php +9 -5
- package/project/.sdk/tm/php/utility/MakeSpec.php +2 -2
- package/project/.sdk/tm/php/utility/Media.php +29 -0
- package/project/.sdk/tm/php/utility/PrepareBody.php +38 -5
- package/project/.sdk/tm/php/utility/PrepareQuery.php +9 -2
- package/project/.sdk/tm/php/utility/Register.php +1 -0
- package/project/.sdk/tm/php/utility/ResultBody.php +6 -16
- package/project/.sdk/tm/php/utility/TransformResponse.php +5 -0
- package/project/.sdk/tm/php/utility/struct/Struct.php +1933 -530
- package/project/.sdk/tm/py/Makefile +3 -2
- package/project/.sdk/tm/py/pkg/core/utility_type.py +2 -0
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/__init__.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/capability.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/catalog.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/config.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/depend.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/env.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/export.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/graph.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/host.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/order.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/point.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/ref.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/resolve.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/types.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/version.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/__init__.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/addr.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/aws.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/azuresecrets.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/boru.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/doppler.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/gcpsecrets.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/hashicorp.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/httpjson.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/infisical.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/minivault.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/onepassword.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/secretspec.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/sigv4.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/providers.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/sekreto.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets_feature.py +12 -1
- package/project/.sdk/tm/py/pkg/feature/validate_feature.py +4 -5
- package/project/.sdk/tm/py/pkg/utility/clean.py +104 -16
- package/project/.sdk/tm/py/pkg/utility/fetcher.py +64 -4
- package/project/.sdk/tm/py/pkg/utility/make_error.py +4 -4
- package/project/.sdk/tm/py/pkg/utility/make_options.py +5 -5
- package/project/.sdk/tm/py/pkg/utility/make_spec.py +1 -1
- package/project/.sdk/tm/py/pkg/utility/media.py +24 -0
- package/project/.sdk/tm/py/pkg/utility/prepare_body.py +26 -0
- package/project/.sdk/tm/py/pkg/utility/prepare_query.py +7 -2
- package/project/.sdk/tm/py/pkg/utility/register.py +2 -1
- package/project/.sdk/tm/py/pkg/utility/result_body.py +7 -12
- package/project/.sdk/tm/py/pkg/utility/voxgig_struct/voxgig_struct.py +1057 -198
- package/project/.sdk/tm/py/test/feature/secrets/test_secrets.py +124 -0
- package/project/.sdk/tm/py/test/feature_harness.py +6 -6
- package/project/.sdk/tm/py/test/omni.py +1 -1
- package/project/.sdk/tm/py/test/runner.py +6 -4
- package/project/.sdk/tm/py/test/test_feature_corpus.py +2 -2
- package/project/.sdk/tm/py/test/test_pipeline.py +1 -1
- package/project/.sdk/tm/py/test/test_primary_utility.py +135 -1
- package/project/.sdk/tm/py/test/test_struct_utility.py +29 -30
- package/project/.sdk/tm/py/test/voxgig_omni/__init__.py +1 -1
- package/project/.sdk/tm/py/test/voxgig_omni/runner.py +1 -1
- package/project/.sdk/tm/py/test/voxgig_omni/util.py +1 -1
- package/project/.sdk/tm/py-data/Makefile +5 -4
- package/project/.sdk/tm/py-data/pkg/auth.py +8 -5
- package/project/.sdk/tm/py-data/pkg/fetch.py +8 -8
- package/project/.sdk/tm/py-data/test/conftest.py +6 -7
- package/project/.sdk/tm/py-data/test/test_auth.py +5 -0
- package/project/.sdk/tm/rb/Makefile +3 -2
- package/project/.sdk/tm/rb/core/control.rb +1 -1
- package/project/.sdk/tm/rb/core/utility_type.rb +2 -1
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/capability.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/catalog.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/config.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/depend.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/env.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/export.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/graph.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/host.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/order.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/point.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/ref.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/resolve.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/types.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/version.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/addr.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/aws.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/azuresecrets.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/boru.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/doppler.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/gcpsecrets.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/hashicorp.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/httpjson.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/infisical.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/minivault.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/onepassword.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/secretspec.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/sigv4.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/providers.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/sekreto.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets_feature.rb +3 -0
- package/project/.sdk/tm/rb/feature/validate_feature.rb +4 -5
- package/project/.sdk/tm/rb/test/feature/secrets/secrets_feature_test.rb +117 -0
- package/project/.sdk/tm/rb/test/feature_corpus_test.rb +1 -1
- package/project/.sdk/tm/rb/test/omni.rb +1 -1
- package/project/.sdk/tm/rb/test/pipeline_test.rb +1 -1
- package/project/.sdk/tm/rb/test/primary_utility_test.rb +121 -1
- package/project/.sdk/tm/rb/test/runner.rb +1 -1
- package/project/.sdk/tm/rb/test/struct_utility_test.rb +30 -34
- package/project/.sdk/tm/rb/test/vendor/omni/runner.rb +2 -2
- package/project/.sdk/tm/rb/test/vendor/omni/util.rb +2 -2
- package/project/.sdk/tm/rb/test/vendor/omni/voxgig_omni.rb +2 -2
- package/project/.sdk/tm/rb/utility/clean.rb +94 -14
- package/project/.sdk/tm/rb/utility/fetcher.rb +12 -3
- package/project/.sdk/tm/rb/utility/make_error.rb +4 -4
- package/project/.sdk/tm/rb/utility/make_options.rb +5 -5
- package/project/.sdk/tm/rb/utility/make_spec.rb +1 -1
- package/project/.sdk/tm/rb/utility/media.rb +21 -0
- package/project/.sdk/tm/rb/utility/prepare_body.rb +31 -3
- package/project/.sdk/tm/rb/utility/prepare_query.rb +7 -1
- package/project/.sdk/tm/rb/utility/register.rb +1 -0
- package/project/.sdk/tm/rb/utility/result_body.rb +7 -9
- package/project/.sdk/tm/rb/utility/struct/voxgig_struct.rb +1569 -678
- package/project/.sdk/tm/rust/Makefile +5 -5
- package/project/.sdk/tm/rust/core/helpers.rs +1 -1
- package/project/.sdk/tm/rust/core/response.rs +18 -2
- package/project/.sdk/tm/rust/core/result.rs +4 -4
- package/project/.sdk/tm/rust/core/utility_type.rs +5 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/capability.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/catalog.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/config.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/depend.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/env.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/export.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/graph.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/host.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/mod.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/order.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/point.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/refs.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/resolve.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/types.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/value.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/version.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/aws/crypto.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/aws/sigv4.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/aws.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/azuresecrets.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/boru.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/doppler.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/gcpsecrets.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/hashicorp.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/httpjson/http.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/httpjson/json.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/httpjson.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/infisical.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/minivault/format.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/minivault.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/onepassword.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/secretspec.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/sekreto/addr.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/sekreto/mod.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/sekreto/providers.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/sekreto/sekreto.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets.rs +10 -1
- package/project/.sdk/tm/rust/tests/common/mod.rs +3 -3
- package/project/.sdk/tm/rust/tests/feature/secrets/main.rs +309 -10
- package/project/.sdk/tm/rust/tests/omni_resolver/mod.rs +1 -1
- package/project/.sdk/tm/rust/tests/pipeline_test.rs +5 -2
- package/project/.sdk/tm/rust/tests/primary_utility_test.rs +281 -13
- package/project/.sdk/tm/rust/tests/server_variable_test.rs +48 -0
- package/project/.sdk/tm/rust/tests/struct_utility_test.rs +9 -1
- package/project/.sdk/tm/rust/tests/vendor/omni/json.rs +27 -11
- package/project/.sdk/tm/rust/tests/vendor/omni/mod.rs +1 -1
- package/project/.sdk/tm/rust/tests/vendor/omni/regex.rs +1 -1
- package/project/.sdk/tm/rust/tests/vendor/omni/runner.rs +1 -1
- package/project/.sdk/tm/rust/tests/vendor/omni/util.rs +1 -1
- package/project/.sdk/tm/rust/utility/clean.rs +128 -9
- package/project/.sdk/tm/rust/utility/fetcher.rs +107 -44
- package/project/.sdk/tm/rust/utility/make_error.rs +4 -4
- package/project/.sdk/tm/rust/utility/make_options.rs +12 -8
- package/project/.sdk/tm/rust/utility/prepare_body.rs +51 -0
- package/project/.sdk/tm/rust/utility/prepare_query.rs +12 -4
- package/project/.sdk/tm/rust/utility/voxgigstruct/consts.rs +18 -20
- package/project/.sdk/tm/rust/utility/voxgigstruct/major.rs +1328 -227
- package/project/.sdk/tm/rust/utility/voxgigstruct/mini.rs +90 -95
- package/project/.sdk/tm/rust/utility/voxgigstruct/mod.rs +12 -8
- package/project/.sdk/tm/rust/utility/voxgigstruct/ordered_map.rs +3 -1
- package/project/.sdk/tm/rust/utility/voxgigstruct/re.rs +49 -6
- package/project/.sdk/tm/rust/utility/voxgigstruct/value.rs +5 -2
- package/project/.sdk/tm/scala/Makefile +4 -4
- package/project/.sdk/tm/scala/core/Point.scala +3 -0
- package/project/.sdk/tm/scala/core/Response.scala +19 -2
- package/project/.sdk/tm/scala/core/Result.scala +2 -2
- package/project/.sdk/tm/scala/core/SdkClient.scala +4 -4
- package/project/.sdk/tm/scala/core/Types.scala +3 -0
- package/project/.sdk/tm/scala/core/Utility.scala +2 -0
- package/project/.sdk/tm/scala/feature/SecretsFeature.scala +2 -0
- package/project/.sdk/tm/scala/feature/ValidateFeature.scala +4 -5
- package/project/.sdk/tm/scala/feature/secrets/plugin/Capability.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Config.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Depend.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Env.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Export.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Graph.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Host.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Json.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Order.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Plugin.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Point.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Refs.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Resolve.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Types.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Value.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Version.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Json.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Provider.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Providers.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Sekreto.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Spec.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Support.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Aws.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Azuresecrets.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Boru.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Doppler.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Gcpsecrets.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Hashicorp.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Httpjson.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Infisical.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Minivault.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Onepassword.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Secretspec.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Sigv4.scala +2 -2
- package/project/.sdk/tm/scala/sdktest/PrimaryCorpus.scala +10 -4
- package/project/.sdk/tm/scala/sdktest/SdkTestMain.scala +219 -3
- package/project/.sdk/tm/scala/sdktest/StructCorpus.scala +20 -14
- package/project/.sdk/tm/scala/sdktest/feature/secrets/SecretsTestMain.scala +108 -0
- package/project/.sdk/tm/scala/sdktest/vendor/omni/Json.scala +2 -2
- package/project/.sdk/tm/scala/sdktest/vendor/omni/Runner.scala +2 -2
- package/project/.sdk/tm/scala/sdktest/vendor/omni/Util.scala +2 -2
- package/project/.sdk/tm/scala/utility/Fetcher.scala +101 -14
- package/project/.sdk/tm/scala/utility/Make.scala +4 -4
- package/project/.sdk/tm/scala/utility/MakeSpec.scala +1 -1
- package/project/.sdk/tm/scala/utility/Misc.scala +133 -13
- package/project/.sdk/tm/scala/utility/Prepare.scala +53 -12
- package/project/.sdk/tm/scala/utility/Register.scala +1 -0
- package/project/.sdk/tm/scala/utility/Transform.scala +6 -1
- package/project/.sdk/tm/scala/utility/struct/Struct.java +1267 -253
- package/project/.sdk/tm/scala/utility/struct/voxgig_struct.scala +909 -202
- package/project/.sdk/tm/swift/Makefile +5 -5
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Condense.swift +351 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Constants.swift +7 -4
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Inject.swift +39 -24
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Injection.swift +51 -14
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/JSON.swift +4 -1
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Merge.swift +3 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Minor.swift +190 -77
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/OrderedDictionary.swift +3 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Path.swift +37 -8
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Select.swift +37 -20
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Transform.swift +67 -46
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Validate.swift +602 -110
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Value.swift +22 -16
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Walk.swift +9 -1
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Point.swift +3 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Response.swift +20 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Result.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Support.swift +15 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Utility.swift +2 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/SecretsFeature.swift +2 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TestFeature.swift +6 -6
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/ValidateFeature.swift +5 -6
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Capability.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Catalog.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Config.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Depend.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Env.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Export.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Graph.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Host.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Json.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Order.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Point.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Refs.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Resolve.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Types.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Value.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Version.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Aws.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Azuresecrets.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Boru.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Crypto.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Doppler.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Gcpsecrets.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Hashicorp.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Httpjson.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Infisical.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Onepassword.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Proc.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Secretspec.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Sigv4.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Addr.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Json.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Provider.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Providers.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Sekreto.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Fetcher.swift +24 -8
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Make.swift +1 -1
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeError.swift +4 -4
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeOptions.swift +7 -7
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Prepare.swift +36 -1
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Register.swift +1 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/ResultUtil.swift +130 -30
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/OmniResolver.swift +2 -2
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/PipelineTest.swift +1 -1
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/PrimaryUtilityTest.swift +191 -1
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/Runner.swift +3 -3
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/StructUtilityTest.swift +36 -14
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/feature/secrets/SecretsFeatureTest.swift +167 -1
- package/project/.sdk/tm/swift/Tests/vendor/omni/Json.swift +32 -8
- package/project/.sdk/tm/swift/Tests/vendor/omni/Runner.swift +2 -2
- package/project/.sdk/tm/swift/Tests/vendor/omni/Util.swift +2 -2
- package/project/.sdk/tm/ts/Makefile +3 -2
- package/project/.sdk/tm/ts/src/Point.ts +3 -0
- package/project/.sdk/tm/ts/src/feature/secrets/SecretsFeature.ts +2 -0
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Capability.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Catalog.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Config.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Depend.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Env.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Export.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/FeatureHost.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Graph.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Host.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Order.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Point.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Ref.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Resolve.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Types.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Version.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/index.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/Sekreto.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/index.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/aws.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/azuresecrets.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/boru.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/doppler.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/gcpsecrets.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/hashicorp.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/httpjson.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/infisical.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/minivault.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/onepassword.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/secretspec.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/sigv4.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/addr.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/builtin.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/dotenv.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/env.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/file.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/memory.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/support.ts +1 -1
- package/project/.sdk/tm/ts/src/utility/CleanUtility.ts +115 -10
- package/project/.sdk/tm/ts/src/utility/FetcherUtility.ts +100 -1
- package/project/.sdk/tm/ts/src/utility/MakeErrorUtility.ts +2 -1
- package/project/.sdk/tm/ts/src/utility/MediaUtility.ts +32 -0
- package/project/.sdk/tm/ts/src/utility/PrepareBodyUtility.ts +29 -0
- package/project/.sdk/tm/ts/src/utility/PrepareQueryUtility.ts +5 -3
- package/project/.sdk/tm/ts/src/utility/ResultBodyUtility.ts +5 -14
- package/project/.sdk/tm/ts/src/utility/StructUtility.ts +708 -199
- package/project/.sdk/tm/ts/src/utility/Utility.ts +2 -1
- package/project/.sdk/tm/ts/test/feature/secrets/Secrets.test.ts +93 -2
- package/project/.sdk/tm/ts/test/live-entity.ts +8 -8
- package/project/.sdk/tm/ts/test/utility/PrimaryUtility.test.ts +9 -1
- package/project/.sdk/tm/ts/test/utility/StructUtility.test.ts +32 -27
- package/project/.sdk/tm/ts/test/utility/index.ts +1 -1
- package/project/.sdk/tm/ts/test/vendor/omni/Runner.ts +1 -1
- package/project/.sdk/tm/ts/test/vendor/omni/Util.ts +1 -1
- package/project/.sdk/tm/ts/test/vendor/omni/index.ts +1 -1
- package/project/.sdk/tm/zig/core/helpers.zig +2 -2
- package/project/.sdk/tm/zig/core/result.zig +2 -2
- package/project/.sdk/tm/zig/core/types.zig +2 -2
- package/project/.sdk/tm/zig/core/utility.zig +143 -24
- package/project/.sdk/tm/zig/feature/netsim.zig +1 -1
- package/project/.sdk/tm/zig/feature/rbac.zig +1 -1
- package/project/.sdk/tm/zig/feature/secrets/plugin/capability.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/catalog.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/config.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/depend.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/env.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/export.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/graph.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/host.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/inst.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/order.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/plugin.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/point.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/ref.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/resolve.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/types.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/value.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/version.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/aws.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/azuresecrets.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/boru.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/doppler.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/gcpsecrets.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/hashicorp.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/httpjson.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/infisical.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/minivault.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/onepassword.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/secretspec.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/sigv4.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/sekreto/addr.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/sekreto/builtins.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/sekreto/provider.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/sekreto/sekreto.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets.zig +3 -1
- package/project/.sdk/tm/zig/feature/validate.zig +4 -5
- package/project/.sdk/tm/zig/test/feature/secrets/secrets_test.zig +188 -37
- package/project/.sdk/tm/zig/test/fh.zig +11 -0
- package/project/.sdk/tm/zig/test/gotcha_test.zig +11 -10
- package/project/.sdk/tm/zig/test/omniresolver.zig +1 -1
- package/project/.sdk/tm/zig/test/pipeline_test.zig +1 -1
- package/project/.sdk/tm/zig/test/primary_utility_test.zig +17 -9
- package/project/.sdk/tm/zig/test/server_variable_test.zig +46 -0
- package/project/.sdk/tm/zig/test/struct_corpus.zig +54 -34
- package/project/.sdk/tm/zig/test/vendor/omni/omni.zig +2 -2
- package/project/.sdk/tm/zig/test/vendor/omni/regex.zig +2 -2
- package/project/.sdk/tm/zig/utility/voxgigstruct/regex.zig +35 -16
- package/project/.sdk/tm/zig/utility/voxgigstruct/struct.zig +1680 -563
- package/project/sdkgen-package.json +1 -1
- package/src/action/check.ts +5 -1
- package/src/action/doctor.ts +8 -2
- package/src/action/target.ts +75 -32
- package/src/cmp/AgentGuide.ts +29 -17
- package/src/cmp/AgentGuideContent.ts +4 -8
- package/src/cmp/AgentGuideTop.ts +17 -14
- package/src/cmp/Deploy.ts +20 -8
- package/src/cmp/FeatureDocs.ts +4 -2
- package/src/cmp/License.ts +33 -10
- package/src/cmp/Readme.ts +0 -2
- package/src/cmp/ReadmeErrors.ts +82 -81
- package/src/cmp/ReadmeExplanation.ts +7 -11
- package/src/cmp/ReadmeFeatures.ts +16 -9
- package/src/cmp/ReadmeModel.ts +15 -9
- package/src/cmp/ReadmeOptions.ts +3 -16
- package/src/cmp/ReadmeQuick.ts +11 -2
- package/src/cmp/ReadmeRefFeatures.ts +38 -33
- package/src/cmp/ReadmeTop.ts +90 -47
- package/src/helpers/canonSpec.ts +56 -10
- package/src/helpers/clientOptions.ts +67 -0
- package/src/helpers/consumer.ts +62 -0
- package/src/helpers/doctext.ts +9 -1
- package/src/helpers/facts.ts +31 -2
- package/src/helpers/flowGuard.ts +1 -1
- package/src/helpers/mcpTools.ts +5 -3
- package/src/helpers/naming.ts +3 -2
- package/src/helpers/opShape.ts +40 -2
- package/src/helpers/optional.ts +0 -1
- package/src/helpers/optspec.ts +22 -5
- package/src/helpers/packageMeta.ts +75 -2
- package/src/helpers/readerdir.ts +33 -0
- package/src/helpers/sourcestring.ts +8 -0
- package/src/helpers/stdrep.ts +3 -3
- package/src/helpers/surface.ts +23 -5
- package/src/helpers/testPolicy.ts +3 -3
- package/src/helpers/title.ts +1 -1
- package/src/sdkgen.ts +25 -4
- package/src/utility.ts +24 -6
- package/project/.sdk/src/cmp/c/ReadmeOptions_c.ts +0 -65
- package/project/.sdk/src/cmp/clojure/ReadmeOptions_clojure.ts +0 -61
- package/project/.sdk/src/cmp/cpp/ReadmeOptions_cpp.ts +0 -62
- package/project/.sdk/src/cmp/csharp/ReadmeOptions_csharp.ts +0 -60
- package/project/.sdk/src/cmp/elixir/ReadmeOptions_elixir.ts +0 -62
- package/project/.sdk/src/cmp/go/ReadmeOptions_go.ts +0 -59
- package/project/.sdk/src/cmp/java/ReadmeOptions_java.ts +0 -61
- package/project/.sdk/src/cmp/js/ReadmeOptions_js.ts +0 -59
- package/project/.sdk/src/cmp/kotlin/ReadmeOptions_kotlin.ts +0 -61
- package/project/.sdk/src/cmp/lua/ReadmeOptions_lua.ts +0 -59
- package/project/.sdk/src/cmp/ocaml/ReadmeOptions_ocaml.ts +0 -59
- package/project/.sdk/src/cmp/perl/ReadmeOptions_perl.ts +0 -59
- package/project/.sdk/src/cmp/php/ReadmeOptions_php.ts +0 -59
- package/project/.sdk/src/cmp/py/ReadmeOptions_py.ts +0 -59
- package/project/.sdk/src/cmp/rb/ReadmeOptions_rb.ts +0 -59
- package/project/.sdk/src/cmp/rust/ReadmeOptions_rust.ts +0 -60
- package/project/.sdk/src/cmp/scala/ReadmeOptions_scala.ts +0 -61
- package/project/.sdk/src/cmp/swift/ReadmeOptions_swift.ts +0 -62
- package/project/.sdk/src/cmp/ts/ReadmeOptions_ts.ts +0 -59
- package/project/.sdk/src/cmp/zig/ReadmeOptions_zig.ts +0 -60
- package/project/.sdk/tm/c/LICENSE +0 -22
- package/project/.sdk/tm/c/VERSION +0 -1
- package/project/.sdk/tm/clojure/LICENSE +0 -22
- package/project/.sdk/tm/clojure/VERSION +0 -1
- package/project/.sdk/tm/cpp/LICENSE +0 -22
- package/project/.sdk/tm/cpp/VERSION +0 -1
- package/project/.sdk/tm/csharp/LICENSE +0 -22
- package/project/.sdk/tm/csharp/VERSION +0 -1
- package/project/.sdk/tm/elixir/LICENSE +0 -21
- package/project/.sdk/tm/elixir/VERSION +0 -1
- package/project/.sdk/tm/go/LICENSE +0 -22
- package/project/.sdk/tm/go/VERSION +0 -1
- package/project/.sdk/tm/java/LICENSE +0 -22
- package/project/.sdk/tm/java/VERSION +0 -1
- package/project/.sdk/tm/js/LICENSE +0 -22
- package/project/.sdk/tm/kotlin/LICENSE +0 -22
- package/project/.sdk/tm/kotlin/VERSION +0 -1
- package/project/.sdk/tm/lua/LICENSE +0 -22
- package/project/.sdk/tm/ocaml/LICENSE +0 -21
- package/project/.sdk/tm/ocaml/VERSION +0 -1
- package/project/.sdk/tm/perl/LICENSE +0 -22
- package/project/.sdk/tm/php/LICENSE +0 -22
- package/project/.sdk/tm/php/VERSION +0 -1
- package/project/.sdk/tm/py/LICENSE +0 -22
- package/project/.sdk/tm/py-data/LICENSE +0 -22
- package/project/.sdk/tm/rb/LICENSE +0 -22
- package/project/.sdk/tm/rust/LICENSE +0 -22
- package/project/.sdk/tm/rust/VERSION +0 -1
- package/project/.sdk/tm/scala/LICENSE +0 -22
- package/project/.sdk/tm/scala/VERSION +0 -1
- package/project/.sdk/tm/swift/LICENSE +0 -22
- package/project/.sdk/tm/swift/VERSION +0 -1
- package/project/.sdk/tm/ts/LICENSE +0 -22
- package/project/.sdk/tm/zig/LICENSE +0 -21
- package/project/.sdk/tm/zig/VERSION +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/struct 0.
|
|
2
|
-
// Source: https://github.com/voxgig/struct @
|
|
1
|
+
// VENDORED: @voxgig/struct 0.2.0 (go/voxgigstruct.go)
|
|
2
|
+
// Source: https://github.com/voxgig/struct @ 358af9d51c90b589a295a70b2165dbe4629eaf8e [tag: sdk-20261125-1959-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* Copyright (c) 2025 Voxgig Ltd. MIT LICENSE. */
|
|
5
5
|
|
|
@@ -13,10 +13,12 @@ import (
|
|
|
13
13
|
"math/bits"
|
|
14
14
|
"reflect"
|
|
15
15
|
"regexp"
|
|
16
|
+
"slices"
|
|
16
17
|
"sort"
|
|
17
18
|
"strconv"
|
|
18
19
|
"strings"
|
|
19
20
|
"time"
|
|
21
|
+
"unicode/utf8"
|
|
20
22
|
)
|
|
21
23
|
|
|
22
24
|
const Version = "0.1.0"
|
|
@@ -121,12 +123,16 @@ var DELETE = &_sentinel{"DELETE"}
|
|
|
121
123
|
|
|
122
124
|
var NOVAL = &_sentinel{"NOVAL"}
|
|
123
125
|
|
|
124
|
-
//
|
|
125
|
-
var reIntegerKey = regexp.MustCompile(`^[-0-9]
|
|
126
|
+
// A list key as String(n) prints an integer: "01", "+1" and "-0" are not.
|
|
127
|
+
var reIntegerKey = regexp.MustCompile(`^(0|-?[1-9][0-9]*)$`)
|
|
126
128
|
|
|
127
129
|
// Meta path syntax regex: matches patterns like "q0$=x1" or "q0$~x1"
|
|
128
130
|
var reMetaPath = regexp.MustCompile(`^([^$]+)\$([=~])(.+)$`)
|
|
129
131
|
|
|
132
|
+
var reInjectionFull = regexp.MustCompile("^`(\\$[A-Z]+|[^`]*)[0-9]*`$")
|
|
133
|
+
var reTransformName = regexp.MustCompile("`\\$([A-Z]+)`")
|
|
134
|
+
var reCheckerName = regexp.MustCompile(`^\$[A-Z]+$`)
|
|
135
|
+
|
|
130
136
|
// The standard undefined value for this language.
|
|
131
137
|
// NOTE: `nil` must be used directly.
|
|
132
138
|
|
|
@@ -163,6 +169,7 @@ type Injection struct {
|
|
|
163
169
|
Modify Modify // Modify injection output.
|
|
164
170
|
Prior *Injection // Parent (aka prior) injection.
|
|
165
171
|
Extra any // Extra data.
|
|
172
|
+
Named bool // Current map node names keys of its own (not $ commands).
|
|
166
173
|
}
|
|
167
174
|
|
|
168
175
|
// Apply a custom modification to injections.
|
|
@@ -221,7 +228,10 @@ func (inj *Injection) setval(val any, ancestor ...int) any {
|
|
|
221
228
|
}
|
|
222
229
|
|
|
223
230
|
if anc < 2 {
|
|
224
|
-
|
|
231
|
+
// A list keeps the removed slot as a hole until Inject's loop ends.
|
|
232
|
+
if val == nil && IsList(inj.Parent) {
|
|
233
|
+
SetProp(inj.Parent, inj.Key, SKIP)
|
|
234
|
+
} else if val == nil {
|
|
225
235
|
inj.Parent = DelProp(inj.Parent, inj.Key)
|
|
226
236
|
} else {
|
|
227
237
|
SetProp(inj.Parent, inj.Key, val)
|
|
@@ -384,6 +394,11 @@ func denoval(val any) any {
|
|
|
384
394
|
return val
|
|
385
395
|
}
|
|
386
396
|
|
|
397
|
+
// A list slot setval removed, left until Inject's loop for the list ends.
|
|
398
|
+
func _ishole(val any) bool {
|
|
399
|
+
return SKIP == val
|
|
400
|
+
}
|
|
401
|
+
|
|
387
402
|
func IsEmpty(val any) bool {
|
|
388
403
|
val = denoval(val)
|
|
389
404
|
if val == nil {
|
|
@@ -667,8 +682,7 @@ func Pad(str any, args ...any) string {
|
|
|
667
682
|
return s
|
|
668
683
|
}
|
|
669
684
|
|
|
670
|
-
// Get a list element
|
|
671
|
-
// that parses to an integer. Negative integers count from the end.
|
|
685
|
+
// Get a list element; a negative integer key counts from the end.
|
|
672
686
|
func GetElem(val any, key any, alts ...any) any {
|
|
673
687
|
var alt any
|
|
674
688
|
if len(alts) > 0 {
|
|
@@ -685,20 +699,16 @@ func GetElem(val any, key any, alts ...any) any {
|
|
|
685
699
|
var out any
|
|
686
700
|
|
|
687
701
|
if IsList(val) {
|
|
688
|
-
|
|
689
|
-
if
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
}
|
|
699
|
-
if nkey >= 0 && nkey < len(list) {
|
|
700
|
-
out = list[nkey]
|
|
701
|
-
}
|
|
702
|
+
list, ok := _asList(val)
|
|
703
|
+
if !ok {
|
|
704
|
+
list = _listify(val)
|
|
705
|
+
}
|
|
706
|
+
if ki, ok := _listkey(key); ok {
|
|
707
|
+
if 0 > ki {
|
|
708
|
+
ki += len(list)
|
|
709
|
+
}
|
|
710
|
+
if 0 <= ki && ki < len(list) {
|
|
711
|
+
out = list[ki]
|
|
702
712
|
}
|
|
703
713
|
}
|
|
704
714
|
}
|
|
@@ -735,78 +745,142 @@ func GetProp(val any, key any, alts ...any) any {
|
|
|
735
745
|
return alt
|
|
736
746
|
}
|
|
737
747
|
|
|
738
|
-
if
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
748
|
+
if IsNode(val) {
|
|
749
|
+
out = _readprop(val, key)
|
|
750
|
+
|
|
751
|
+
} else if ks, ok := _keystr(key); ok {
|
|
752
|
+
valRef := reflect.ValueOf(val)
|
|
753
|
+
if valRef.Kind() == reflect.Pointer {
|
|
754
|
+
valRef = valRef.Elem()
|
|
742
755
|
}
|
|
743
756
|
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
757
|
+
if valRef.Kind() == reflect.Struct {
|
|
758
|
+
field := valRef.FieldByName(ks)
|
|
759
|
+
if field.IsValid() {
|
|
760
|
+
out = field.Interface()
|
|
761
|
+
}
|
|
748
762
|
}
|
|
763
|
+
}
|
|
749
764
|
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
switch kf := key.(type) {
|
|
754
|
-
case float64:
|
|
755
|
-
ki = int(kf)
|
|
765
|
+
if nil == denoval(out) {
|
|
766
|
+
return alt
|
|
767
|
+
}
|
|
756
768
|
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
769
|
+
return out
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
// The value stored at key in a map or list, nil included, or NOVAL. A list
|
|
773
|
+
// reads a non-negative list key, a map a string or number key.
|
|
774
|
+
func _readprop(val any, key any) any {
|
|
775
|
+
if m, ok := val.(map[string]any); ok {
|
|
776
|
+
if ks, ok := _keystr(key); ok {
|
|
777
|
+
if out, has := m[ks]; has {
|
|
778
|
+
return out
|
|
763
779
|
}
|
|
764
780
|
}
|
|
781
|
+
return NOVAL
|
|
782
|
+
}
|
|
765
783
|
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
}
|
|
770
|
-
} else {
|
|
771
|
-
v, ok := val.([]any)
|
|
784
|
+
if !IsList(val) {
|
|
785
|
+
return NOVAL
|
|
786
|
+
}
|
|
772
787
|
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
}
|
|
788
|
+
ki, ok := _listkey(key)
|
|
789
|
+
if !ok || 0 > ki {
|
|
790
|
+
return NOVAL
|
|
791
|
+
}
|
|
778
792
|
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
793
|
+
switch list := val.(type) {
|
|
794
|
+
case *ListRef[any]:
|
|
795
|
+
if ki < len(list.List) {
|
|
796
|
+
return list.List[ki]
|
|
797
|
+
}
|
|
798
|
+
case []any:
|
|
799
|
+
if ki < len(list) {
|
|
800
|
+
return list[ki]
|
|
801
|
+
}
|
|
802
|
+
default:
|
|
803
|
+
if rv := reflect.ValueOf(val); ki < rv.Len() {
|
|
804
|
+
return rv.Index(ki).Interface()
|
|
784
805
|
}
|
|
806
|
+
}
|
|
785
807
|
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
808
|
+
return NOVAL
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
// A list key's index: an integral number, or the string String(n) prints for
|
|
812
|
+
// one. An index beyond int saturates, so it stays past that end of any list.
|
|
813
|
+
func _listkey(key any) (int, bool) {
|
|
814
|
+
switch k := key.(type) {
|
|
815
|
+
case int:
|
|
816
|
+
return k, true
|
|
817
|
+
case string:
|
|
818
|
+
if !reIntegerKey.MatchString(k) {
|
|
819
|
+
return 0, false
|
|
820
|
+
}
|
|
821
|
+
if n, err := strconv.Atoi(k); nil == err {
|
|
822
|
+
return n, true
|
|
823
|
+
}
|
|
824
|
+
if '-' == k[0] {
|
|
825
|
+
return math.MinInt, true
|
|
790
826
|
}
|
|
827
|
+
return math.MaxInt, true
|
|
828
|
+
}
|
|
791
829
|
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
830
|
+
f, err := _toFloat64(key)
|
|
831
|
+
if nil != err || f != math.Trunc(f) || math.IsInf(f, 0) {
|
|
832
|
+
return 0, false
|
|
833
|
+
}
|
|
834
|
+
if f >= math.MaxInt {
|
|
835
|
+
return math.MaxInt, true
|
|
836
|
+
}
|
|
837
|
+
if f <= math.MinInt {
|
|
838
|
+
return math.MinInt, true
|
|
839
|
+
}
|
|
840
|
+
return int(f), true
|
|
841
|
+
}
|
|
797
842
|
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
843
|
+
// The string a key names in a map: a string itself, a number as String(n)
|
|
844
|
+
// prints it. Anything else names no key.
|
|
845
|
+
func _keystr(key any) (string, bool) {
|
|
846
|
+
switch k := key.(type) {
|
|
847
|
+
case string:
|
|
848
|
+
return k, true
|
|
849
|
+
case *string:
|
|
850
|
+
if nil != k {
|
|
851
|
+
return *k, true
|
|
802
852
|
}
|
|
853
|
+
return S_MT, false
|
|
803
854
|
}
|
|
804
855
|
|
|
805
|
-
if
|
|
806
|
-
return
|
|
856
|
+
if _, err := _toFloat64(key); nil != err {
|
|
857
|
+
return S_MT, false
|
|
807
858
|
}
|
|
859
|
+
return _numstr(key), true
|
|
860
|
+
}
|
|
808
861
|
|
|
809
|
-
|
|
862
|
+
// The string JavaScript's String(n) prints for a number.
|
|
863
|
+
func _numstr(n any) string {
|
|
864
|
+
switch n.(type) {
|
|
865
|
+
case int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64:
|
|
866
|
+
return fmt.Sprintf("%d", n)
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
f, _ := _toFloat64(n)
|
|
870
|
+
switch {
|
|
871
|
+
case 0 == f:
|
|
872
|
+
return "0"
|
|
873
|
+
case math.IsNaN(f):
|
|
874
|
+
return "NaN"
|
|
875
|
+
case math.IsInf(f, 1):
|
|
876
|
+
return "Infinity"
|
|
877
|
+
case math.IsInf(f, -1):
|
|
878
|
+
return "-Infinity"
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
// encoding/json writes a float as ES6 Number.prototype.toString does.
|
|
882
|
+
b, _ := json.Marshal(f)
|
|
883
|
+
return string(b)
|
|
810
884
|
}
|
|
811
885
|
|
|
812
886
|
// Sorted keys of a map, or indexes of a list.
|
|
@@ -1410,13 +1484,16 @@ func DelProp(parent any, key any) any {
|
|
|
1410
1484
|
return parent
|
|
1411
1485
|
}
|
|
1412
1486
|
|
|
1487
|
+
if IsCondensed(parent) {
|
|
1488
|
+
panic(errCondensedImmutable)
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1413
1491
|
if IsMap(parent) {
|
|
1414
1492
|
ks := StrKey(key)
|
|
1415
1493
|
delete(parent.(map[string]any), ks)
|
|
1416
1494
|
} else if IsList(parent) {
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
if err != nil {
|
|
1495
|
+
ki, ok := _listkey(key)
|
|
1496
|
+
if !ok {
|
|
1420
1497
|
return parent
|
|
1421
1498
|
}
|
|
1422
1499
|
if lr, isLR := parent.(*ListRef[any]); isLR {
|
|
@@ -1460,12 +1537,16 @@ func SetProp(parent any, key any, newval any) any {
|
|
|
1460
1537
|
return parent
|
|
1461
1538
|
}
|
|
1462
1539
|
|
|
1540
|
+
if IsCondensed(parent) {
|
|
1541
|
+
panic(errCondensedImmutable)
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1463
1544
|
if IsMap(parent) {
|
|
1464
|
-
|
|
1465
|
-
|
|
1545
|
+
ks, _ := _keystr(key)
|
|
1546
|
+
parent.(map[string]any)[ks] = newval
|
|
1466
1547
|
|
|
1467
1548
|
} else if IsList(parent) {
|
|
1468
|
-
ki, ok :=
|
|
1549
|
+
ki, ok := _listkey(key)
|
|
1469
1550
|
if !ok {
|
|
1470
1551
|
return parent
|
|
1471
1552
|
}
|
|
@@ -1529,20 +1610,6 @@ func SetProp(parent any, key any, newval any) any {
|
|
|
1529
1610
|
return parent
|
|
1530
1611
|
}
|
|
1531
1612
|
|
|
1532
|
-
// The list index SetProp reads from key; false when key names no index.
|
|
1533
|
-
func _listKey(key any) (int, bool) {
|
|
1534
|
-
switch k := key.(type) {
|
|
1535
|
-
case int:
|
|
1536
|
-
return k, true
|
|
1537
|
-
case float64:
|
|
1538
|
-
return int(k), true
|
|
1539
|
-
case string:
|
|
1540
|
-
ki, err := _parseInt(k)
|
|
1541
|
-
return ki, nil == err
|
|
1542
|
-
}
|
|
1543
|
-
return 0, false
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
1613
|
func Walk(
|
|
1547
1614
|
val any,
|
|
1548
1615
|
apply WalkApply,
|
|
@@ -1863,7 +1930,8 @@ func GetPath(store any, path any, injdefs ...*Injection) any {
|
|
|
1863
1930
|
|
|
1864
1931
|
var parts []string
|
|
1865
1932
|
|
|
1866
|
-
// Operate on a string array
|
|
1933
|
+
// Operate on a string array: a number part reads as String(n), and any
|
|
1934
|
+
// other part that is not a string makes the whole path miss.
|
|
1867
1935
|
switch pp := path.(type) {
|
|
1868
1936
|
case []string:
|
|
1869
1937
|
parts = make([]string, len(pp))
|
|
@@ -1877,12 +1945,33 @@ func GetPath(store any, path any, injdefs ...*Injection) any {
|
|
|
1877
1945
|
}
|
|
1878
1946
|
default:
|
|
1879
1947
|
if IsList(path) {
|
|
1880
|
-
|
|
1948
|
+
list := _listify(path)
|
|
1949
|
+
parts = make([]string, len(list))
|
|
1950
|
+
for i, part := range list {
|
|
1951
|
+
ps, ok := _keystr(part)
|
|
1952
|
+
if !ok {
|
|
1953
|
+
return nil
|
|
1954
|
+
}
|
|
1955
|
+
parts[i] = ps
|
|
1956
|
+
}
|
|
1957
|
+
} else if _, err := _toFloat64(path); nil == err {
|
|
1958
|
+
parts = []string{_numstr(path)}
|
|
1881
1959
|
} else {
|
|
1882
1960
|
return nil
|
|
1883
1961
|
}
|
|
1884
1962
|
}
|
|
1885
1963
|
|
|
1964
|
+
// A condensed store reads as the node it was built from, touching only the
|
|
1965
|
+
// nodes on the path. A base changes what the walk below starts from, so a
|
|
1966
|
+
// read with one expands the store instead.
|
|
1967
|
+
if IsCondensed(store) {
|
|
1968
|
+
if nil == inj || S_MT == inj.Base {
|
|
1969
|
+
root := _condenseInt(store.(map[string]any)[S_condroot])
|
|
1970
|
+
return _condenseMaterialise(store, _condenseResolve(store, root, parts))
|
|
1971
|
+
}
|
|
1972
|
+
store = Expand(store)
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1886
1975
|
val := store
|
|
1887
1976
|
var base any = nil
|
|
1888
1977
|
if nil != inj {
|
|
@@ -2007,6 +2096,10 @@ func GetPath(store any, path any, injdefs ...*Injection) any {
|
|
|
2007
2096
|
// String paths are split on ".". If val is the DELETE sentinel,
|
|
2008
2097
|
// the final key is deleted instead of set.
|
|
2009
2098
|
func SetPath(store any, path any, val any, injdefs ...map[string]any) any {
|
|
2099
|
+
if IsCondensed(store) {
|
|
2100
|
+
panic(errCondensedImmutable)
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2010
2103
|
pathType := Typify(path)
|
|
2011
2104
|
|
|
2012
2105
|
var parts []any
|
|
@@ -2070,7 +2163,7 @@ func SetPath(store any, path any, val any, injdefs ...map[string]any) any {
|
|
|
2070
2163
|
|
|
2071
2164
|
// The index where SetProp puts a value written to list under key.
|
|
2072
2165
|
func _listSlot(list any, key any) any {
|
|
2073
|
-
ki, ok :=
|
|
2166
|
+
ki, ok := _listkey(key)
|
|
2074
2167
|
if !ok || !IsList(list) {
|
|
2075
2168
|
return key
|
|
2076
2169
|
}
|
|
@@ -2093,9 +2186,11 @@ func _keepList(holders []any, keys []any, list any, written any) any {
|
|
|
2093
2186
|
// SetProp refuses some keys GetProp reads, such as "".
|
|
2094
2187
|
func _writeBack(holder any, key any, val any) any {
|
|
2095
2188
|
if m, ok := holder.(map[string]any); ok {
|
|
2096
|
-
if
|
|
2097
|
-
m[
|
|
2098
|
-
|
|
2189
|
+
if ks, ok := _keystr(key); ok {
|
|
2190
|
+
if _, has := m[ks]; has {
|
|
2191
|
+
m[ks] = val
|
|
2192
|
+
return m
|
|
2193
|
+
}
|
|
2099
2194
|
}
|
|
2100
2195
|
}
|
|
2101
2196
|
return SetProp(holder, key, val)
|
|
@@ -2245,6 +2340,8 @@ func Inject(
|
|
|
2245
2340
|
|
|
2246
2341
|
inj.descend()
|
|
2247
2342
|
|
|
2343
|
+
inj.Named = false
|
|
2344
|
+
|
|
2248
2345
|
// Descend into node
|
|
2249
2346
|
if IsNode(val) {
|
|
2250
2347
|
childkeys := KeysOf(val)
|
|
@@ -2264,6 +2361,7 @@ func Inject(
|
|
|
2264
2361
|
sort.Strings(normalKeys)
|
|
2265
2362
|
sort.Strings(transformKeys)
|
|
2266
2363
|
nodekeys := append(normalKeys, transformKeys...)
|
|
2364
|
+
inj.Named = IsMap(val) && 0 < len(normalKeys)
|
|
2267
2365
|
|
|
2268
2366
|
nkI := 0
|
|
2269
2367
|
for nkI < len(nodekeys) {
|
|
@@ -2301,6 +2399,13 @@ func Inject(
|
|
|
2301
2399
|
nkI = nkI + 1
|
|
2302
2400
|
}
|
|
2303
2401
|
|
|
2402
|
+
if lr, ok := val.(*ListRef[any]); ok {
|
|
2403
|
+
lr.List = slices.DeleteFunc(lr.List, _ishole)
|
|
2404
|
+
} else if list, ok := val.([]any); ok && slices.ContainsFunc(list, _ishole) {
|
|
2405
|
+
val = slices.DeleteFunc(list, _ishole)
|
|
2406
|
+
SetProp(inj.Parent, inj.Key, val)
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2304
2409
|
} else if 0 < (T_string & valType) {
|
|
2305
2410
|
|
|
2306
2411
|
// Inject paths into string scalars.
|
|
@@ -2319,6 +2424,9 @@ func Inject(
|
|
|
2319
2424
|
mkey := inj.Key
|
|
2320
2425
|
mparent := inj.Parent
|
|
2321
2426
|
mval := GetProp(mparent, mkey)
|
|
2427
|
+
if _ishole(mval) {
|
|
2428
|
+
mval = nil
|
|
2429
|
+
}
|
|
2322
2430
|
inj.Modify(
|
|
2323
2431
|
mval,
|
|
2324
2432
|
mkey,
|
|
@@ -2833,7 +2941,7 @@ var Transform_REF Injector = func(
|
|
|
2833
2941
|
return nil
|
|
2834
2942
|
}
|
|
2835
2943
|
|
|
2836
|
-
//
|
|
2944
|
+
// ['`$REF`', 'ref-path']: a relative path starts where this slot is, so .x is a sibling.
|
|
2837
2945
|
refpath := GetProp(inj.Parent, 1)
|
|
2838
2946
|
inj.KeyI = len(inj.Keys.List)
|
|
2839
2947
|
|
|
@@ -2850,13 +2958,23 @@ var Transform_REF Injector = func(
|
|
|
2850
2958
|
}
|
|
2851
2959
|
|
|
2852
2960
|
dpath := make([]string, 0)
|
|
2853
|
-
if len(inj.Path.List) >
|
|
2854
|
-
dpath = append(dpath, inj.Path.List[1:]...)
|
|
2961
|
+
if n := len(inj.Path.List); n > 3 {
|
|
2962
|
+
dpath = append(dpath, inj.Path.List[1:n-2]...)
|
|
2963
|
+
}
|
|
2964
|
+
refinj := &Injection{Dpath: dpath, Dparent: GetPath(spec, dpath)}
|
|
2965
|
+
refResult := GetPath(spec, refpath, refinj)
|
|
2966
|
+
|
|
2967
|
+
// A chain of references that comes back to a path it has named names nothing.
|
|
2968
|
+
seen := []any{refpath}
|
|
2969
|
+
for next := refResult; IsList(next) && "`$REF`" == GetProp(next, 0); {
|
|
2970
|
+
nextpath := GetProp(next, 1)
|
|
2971
|
+
if slices.ContainsFunc(seen, func(p any) bool { return _deepequal(p, nextpath) }) {
|
|
2972
|
+
refResult = nil
|
|
2973
|
+
break
|
|
2974
|
+
}
|
|
2975
|
+
seen = append(seen, nextpath)
|
|
2976
|
+
next = GetPath(spec, nextpath, refinj)
|
|
2855
2977
|
}
|
|
2856
|
-
refResult := GetPath(spec, refpath, &Injection{
|
|
2857
|
-
Dpath: dpath,
|
|
2858
|
-
Dparent: GetPath(spec, dpath),
|
|
2859
|
-
})
|
|
2860
2978
|
|
|
2861
2979
|
hasSubRef := false
|
|
2862
2980
|
if IsNode(refResult) {
|
|
@@ -2868,61 +2986,26 @@ var Transform_REF Injector = func(
|
|
|
2868
2986
|
})
|
|
2869
2987
|
}
|
|
2870
2988
|
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
cpath := make([]string, 0)
|
|
2874
|
-
if len(inj.Path.List) > 3 {
|
|
2875
|
-
cpath = append(cpath, inj.Path.List[:len(inj.Path.List)-3]...)
|
|
2876
|
-
}
|
|
2877
|
-
tpath := make([]string, 0)
|
|
2878
|
-
if len(inj.Path.List) >= 1 {
|
|
2879
|
-
tpath = append(tpath, inj.Path.List[:len(inj.Path.List)]...)
|
|
2880
|
-
}
|
|
2881
|
-
tpath = tpath[:len(tpath)-1]
|
|
2882
|
-
|
|
2883
|
-
tcur := GetPath(store, cpath)
|
|
2884
|
-
tval := GetPath(store, tpath)
|
|
2885
|
-
|
|
2989
|
+
// A recursive reference stops where the data does.
|
|
2990
|
+
tval := GetPath(store, inj.Path.List[:len(inj.Path.List)-1])
|
|
2886
2991
|
var rval any
|
|
2887
|
-
|
|
2888
2992
|
if !hasSubRef || tval != nil {
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
lastPath = tpath[len(tpath)-1]
|
|
2892
|
-
}
|
|
2893
|
-
tinj := inj.child(0, []string{lastPath})
|
|
2894
|
-
tinj.Path = &ListRef[string]{List: tpath}
|
|
2895
|
-
|
|
2896
|
-
// TS: tinj.nodes = slice(inj.nodes, -1) → nodes[0:len-1] (all except last)
|
|
2897
|
-
nodesLen := len(inj.Nodes.List)
|
|
2898
|
-
if nodesLen > 1 {
|
|
2899
|
-
tnodeslist := make([]any, nodesLen-1)
|
|
2900
|
-
copy(tnodeslist, inj.Nodes.List[:nodesLen-1])
|
|
2901
|
-
tinj.Nodes = &ListRef[any]{List: tnodeslist}
|
|
2902
|
-
} else {
|
|
2903
|
-
tinj.Nodes = &ListRef[any]{List: []any{}}
|
|
2904
|
-
}
|
|
2905
|
-
|
|
2906
|
-
// TS: tinj.parent = getelem(nodes, -2)
|
|
2907
|
-
if nodesLen >= 2 {
|
|
2908
|
-
tinj.Parent = inj.Nodes.List[nodesLen-2]
|
|
2909
|
-
}
|
|
2910
|
-
tinj.Val = tref
|
|
2911
|
-
|
|
2912
|
-
tinj.Dpath = cpath
|
|
2913
|
-
tinj.Dparent = tcur
|
|
2914
|
-
|
|
2915
|
-
Inject(tref, store, tinj)
|
|
2916
|
-
rval = tinj.Val
|
|
2993
|
+
// Wrapped as the injected spec is: a list directive rewrites its list in place.
|
|
2994
|
+
rval = CloneFlags(refResult, map[string]bool{"wrap": true})
|
|
2917
2995
|
}
|
|
2918
2996
|
|
|
2997
|
+
// The enclosing loop injects the referenced spec in this list's place, so
|
|
2998
|
+
// neither this pass nor this element leaves a value for modify to check.
|
|
2919
2999
|
grandparent := inj.setval(rval, 2)
|
|
2920
3000
|
|
|
2921
|
-
if
|
|
2922
|
-
|
|
3001
|
+
if prior := inj.Prior; prior != nil {
|
|
3002
|
+
prior.Modify = nil
|
|
3003
|
+
if IsList(grandparent) || rval != nil {
|
|
3004
|
+
prior.KeyI--
|
|
3005
|
+
}
|
|
2923
3006
|
}
|
|
2924
3007
|
|
|
2925
|
-
return
|
|
3008
|
+
return SKIP
|
|
2926
3009
|
}
|
|
2927
3010
|
|
|
2928
3011
|
var Transform_APPLY Injector = func(
|
|
@@ -3474,68 +3557,36 @@ var validate_STRING Injector = func(
|
|
|
3474
3557
|
store any,
|
|
3475
3558
|
) any {
|
|
3476
3559
|
out := GetProp(inj.Dparent, inj.Key)
|
|
3560
|
+
if nil == out {
|
|
3561
|
+
out = _lookup(inj.Dparent, inj.Key)
|
|
3562
|
+
}
|
|
3477
3563
|
|
|
3478
3564
|
t := Typify(out)
|
|
3479
3565
|
if 0 == (T_string & t) {
|
|
3480
|
-
msg := _invalidTypeMsg(inj.Path.List, S_string, Typename(t), out)
|
|
3566
|
+
msg := _invalidTypeMsg(inj.Path.List, S_string, Typename(t), denoval(out))
|
|
3481
3567
|
inj.Errs.Append(msg)
|
|
3482
|
-
return
|
|
3568
|
+
return _checked(inj, out)
|
|
3483
3569
|
}
|
|
3484
3570
|
|
|
3485
3571
|
if S_MT == out.(string) {
|
|
3486
3572
|
msg := "Empty string at " + Pathify(inj.Path.List, 1)
|
|
3487
3573
|
inj.Errs.Append(msg)
|
|
3488
|
-
return nil
|
|
3489
|
-
}
|
|
3490
|
-
|
|
3491
|
-
return out
|
|
3492
|
-
}
|
|
3493
|
-
|
|
3494
|
-
var validate_OBJECT Injector = func(
|
|
3495
|
-
inj *Injection,
|
|
3496
|
-
_val any,
|
|
3497
|
-
ref *string,
|
|
3498
|
-
store any,
|
|
3499
|
-
) any {
|
|
3500
|
-
out := GetProp(inj.Dparent, inj.Key)
|
|
3501
|
-
|
|
3502
|
-
t := Typify(out)
|
|
3503
|
-
|
|
3504
|
-
if 0 == (T_map & t) {
|
|
3505
|
-
msg := _invalidTypeMsg(inj.Path.List, S_object, Typename(t), out)
|
|
3506
|
-
inj.Errs.Append(msg)
|
|
3507
|
-
|
|
3508
|
-
return nil
|
|
3509
3574
|
}
|
|
3510
3575
|
|
|
3511
3576
|
return out
|
|
3512
3577
|
}
|
|
3513
3578
|
|
|
3514
|
-
var
|
|
3579
|
+
var validate_ANY Injector = func(
|
|
3515
3580
|
inj *Injection,
|
|
3516
3581
|
_val any,
|
|
3517
3582
|
ref *string,
|
|
3518
3583
|
store any,
|
|
3519
3584
|
) any {
|
|
3520
3585
|
out := GetProp(inj.Dparent, inj.Key)
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
if 0 == (T_list & t) {
|
|
3524
|
-
msg := _invalidTypeMsg(inj.Path.List, S_array, Typename(t), out)
|
|
3525
|
-
inj.Errs.Append(msg)
|
|
3526
|
-
return nil
|
|
3586
|
+
if nil == out {
|
|
3587
|
+
out = _lookup(inj.Dparent, inj.Key)
|
|
3527
3588
|
}
|
|
3528
|
-
|
|
3529
|
-
return out
|
|
3530
|
-
}
|
|
3531
|
-
|
|
3532
|
-
var validate_ANY Injector = func(
|
|
3533
|
-
inj *Injection,
|
|
3534
|
-
_val any,
|
|
3535
|
-
ref *string,
|
|
3536
|
-
store any,
|
|
3537
|
-
) any {
|
|
3538
|
-
return GetProp(inj.Dparent, inj.Key)
|
|
3589
|
+
return _checked(inj, out)
|
|
3539
3590
|
}
|
|
3540
3591
|
|
|
3541
3592
|
// Generic type validator: handles $INTEGER, $DECIMAL, $NULL, $NIL, $MAP, $LIST, $INSTANCE
|
|
@@ -3560,25 +3611,35 @@ var validate_TYPE Injector = func(
|
|
|
3560
3611
|
}
|
|
3561
3612
|
}
|
|
3562
3613
|
|
|
3614
|
+
// GetProp reads a missing field as nil, and _lookup tells it from a stored
|
|
3615
|
+
// null as NOVAL, which $NULL refuses.
|
|
3563
3616
|
out := GetProp(inj.Dparent, inj.Key)
|
|
3617
|
+
if nil == out {
|
|
3618
|
+
out = _lookup(inj.Dparent, inj.Key)
|
|
3619
|
+
}
|
|
3564
3620
|
t := Typify(out)
|
|
3565
3621
|
|
|
3566
|
-
//
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
return out
|
|
3570
|
-
}
|
|
3571
|
-
if tname == "null" && out == nil {
|
|
3572
|
-
return out
|
|
3622
|
+
// $NIL is absent or null.
|
|
3623
|
+
if tname == "nil" && nil == denoval(out) {
|
|
3624
|
+
return _checked(inj, out)
|
|
3573
3625
|
}
|
|
3574
3626
|
|
|
3575
3627
|
if 0 == (t & typev) {
|
|
3576
|
-
msg := _invalidTypeMsg(inj.Path.List, tname, Typename(t), out)
|
|
3628
|
+
msg := _invalidTypeMsg(inj.Path.List, tname, Typename(t), denoval(out))
|
|
3577
3629
|
inj.Errs.Append(msg)
|
|
3578
|
-
return nil
|
|
3579
3630
|
}
|
|
3580
3631
|
|
|
3581
|
-
return out
|
|
3632
|
+
return _checked(inj, out)
|
|
3633
|
+
}
|
|
3634
|
+
|
|
3635
|
+
// A checker's result from a _lookup read. setval deletes on nil, so a null
|
|
3636
|
+
// the data holds is written into the slot here, and inject skips the slot.
|
|
3637
|
+
func _checked(inj *Injection, out any) any {
|
|
3638
|
+
if nil == out && M_VAL == inj.Mode && inj.Full {
|
|
3639
|
+
SetProp(inj.Parent, inj.Key, nil)
|
|
3640
|
+
return SKIP
|
|
3641
|
+
}
|
|
3642
|
+
return denoval(out)
|
|
3582
3643
|
}
|
|
3583
3644
|
|
|
3584
3645
|
var validate_CHILD Injector = func(
|
|
@@ -3598,13 +3659,7 @@ var validate_CHILD Injector = func(
|
|
|
3598
3659
|
tval = map[string]any{}
|
|
3599
3660
|
|
|
3600
3661
|
} else if !IsMap(tval) {
|
|
3601
|
-
|
|
3602
|
-
_invalidTypeMsg(
|
|
3603
|
-
inj.Path.List[:len(inj.Path.List)-1],
|
|
3604
|
-
S_object,
|
|
3605
|
-
Typename(Typify(tval)),
|
|
3606
|
-
tval,
|
|
3607
|
-
))
|
|
3662
|
+
// The validation modify reports the mismatch, once.
|
|
3608
3663
|
return nil
|
|
3609
3664
|
}
|
|
3610
3665
|
|
|
@@ -3641,15 +3696,8 @@ var validate_CHILD Injector = func(
|
|
|
3641
3696
|
return nil
|
|
3642
3697
|
}
|
|
3643
3698
|
|
|
3644
|
-
//
|
|
3699
|
+
// Not a list: the validation modify reports the mismatch.
|
|
3645
3700
|
if !IsList(dparent) {
|
|
3646
|
-
inj.Errs.Append(
|
|
3647
|
-
_invalidTypeMsg(
|
|
3648
|
-
inj.Path.List[:len(inj.Path.List)-1],
|
|
3649
|
-
S_array,
|
|
3650
|
-
Typename(Typify(dparent)),
|
|
3651
|
-
dparent,
|
|
3652
|
-
))
|
|
3653
3701
|
parentList := _listify(inj.Parent)
|
|
3654
3702
|
inj.KeyI = len(parentList)
|
|
3655
3703
|
return dparent
|
|
@@ -3690,108 +3738,130 @@ var validate_CHILD Injector = func(
|
|
|
3690
3738
|
return nil
|
|
3691
3739
|
}
|
|
3692
3740
|
|
|
3693
|
-
//
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
inj
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
Pathify(inj.Path.List, 1, 1) +
|
|
3712
|
-
" must be the first element of an array.")
|
|
3713
|
-
return nil
|
|
3714
|
-
}
|
|
3715
|
-
|
|
3716
|
-
inj.KeyI = len(inj.Keys.List)
|
|
3717
|
-
|
|
3718
|
-
// The parent is assumed to be a slice: ["`$ONE`", alt0, alt1, ...].
|
|
3719
|
-
parentSlice, ok := _asList(inj.Parent)
|
|
3720
|
-
if !ok {
|
|
3721
|
-
return nil
|
|
3741
|
+
// The members a spec does not name: the map form is a key, the list form a
|
|
3742
|
+
// tuple's last item. Each places clones of its spec for the loop to check.
|
|
3743
|
+
var validate_REST Injector = func(
|
|
3744
|
+
inj *Injection,
|
|
3745
|
+
_val any,
|
|
3746
|
+
ref *string,
|
|
3747
|
+
store any,
|
|
3748
|
+
) any {
|
|
3749
|
+
if M_KEYPRE == inj.Mode {
|
|
3750
|
+
resttm := denoval(_lookup(inj.Parent, inj.Key))
|
|
3751
|
+
tval := GetProp(inj.Dparent, inj.Path.List[len(inj.Path.List)-2])
|
|
3752
|
+
|
|
3753
|
+
if IsMap(tval) {
|
|
3754
|
+
for _, ckey := range KeysOf(tval) {
|
|
3755
|
+
if !slices.Contains(inj.Keys.List, ckey) {
|
|
3756
|
+
SetProp(inj.Parent, ckey, Clone(resttm))
|
|
3757
|
+
inj.Keys.Append(ckey)
|
|
3758
|
+
}
|
|
3722
3759
|
}
|
|
3760
|
+
}
|
|
3723
3761
|
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
inj.setval(inj.Dparent, 2)
|
|
3762
|
+
inj.setval(nil)
|
|
3763
|
+
return nil
|
|
3764
|
+
}
|
|
3728
3765
|
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3766
|
+
prior := inj.Prior
|
|
3767
|
+
if M_VAL != inj.Mode || nil == prior || !IsList(prior.Parent) || 0 != inj.KeyI {
|
|
3768
|
+
inj.Errs.Append(_restmsg(inj.Path.List[1:], " must be the last element of an array."))
|
|
3769
|
+
return nil
|
|
3770
|
+
}
|
|
3732
3771
|
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
tvals := append([]any(nil), parentSlice[1:]...) // alt0, alt1, ...
|
|
3772
|
+
inj.KeyI = len(inj.Keys.List)
|
|
3773
|
+
prior.Modify = nil
|
|
3736
3774
|
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3775
|
+
tuple := prior.Parent
|
|
3776
|
+
slot, _ := _listkey(prior.Key)
|
|
3777
|
+
dlist := prior.Dparent
|
|
3778
|
+
numitems := 0
|
|
3779
|
+
if IsList(dlist) {
|
|
3780
|
+
numitems = Size(dlist)
|
|
3781
|
+
}
|
|
3743
3782
|
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3783
|
+
if numitems <= slot {
|
|
3784
|
+
inj.setval(nil, 2)
|
|
3785
|
+
return SKIP
|
|
3786
|
+
}
|
|
3748
3787
|
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3788
|
+
resttm := denoval(_lookup(inj.Parent, 1))
|
|
3789
|
+
for i := slot; i < numitems; i++ {
|
|
3790
|
+
SetProp(tuple, i, Clone(resttm))
|
|
3791
|
+
}
|
|
3792
|
+
for i := len(prior.Keys.List); i < numitems; i++ {
|
|
3793
|
+
prior.Keys.Append(StrKey(i))
|
|
3794
|
+
}
|
|
3752
3795
|
|
|
3753
|
-
|
|
3754
|
-
|
|
3796
|
+
prior.KeyI--
|
|
3797
|
+
return SKIP
|
|
3798
|
+
}
|
|
3755
3799
|
|
|
3756
|
-
|
|
3800
|
+
func _restmsg(path []string, problem string) string {
|
|
3801
|
+
return "The $REST validator at field " + Pathify(path) + problem
|
|
3802
|
+
}
|
|
3757
3803
|
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3804
|
+
// Set after Validate is defined: these validators call Validate.
|
|
3805
|
+
var validate_NOF Injector
|
|
3806
|
+
var validate_ALL Injector
|
|
3807
|
+
var validate_LEN Injector
|
|
3808
|
+
var validate_RANGE Injector
|
|
3809
|
+
var validate_LIKE Injector
|
|
3762
3810
|
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
mapped[i] = Stringify(v)
|
|
3766
|
-
}
|
|
3811
|
+
// Forward declaration for validate_EXACT
|
|
3812
|
+
var validate_EXACT Injector
|
|
3767
3813
|
|
|
3768
|
-
|
|
3814
|
+
func init_validate_count() {
|
|
3815
|
+
// Count the specs that admit the value: ['`$NOF`', count, spec, ...], where
|
|
3816
|
+
// count is an integer, or a map holding min, max or both.
|
|
3817
|
+
validate_NOF = func(
|
|
3818
|
+
inj *Injection,
|
|
3819
|
+
_val any,
|
|
3820
|
+
ref *string,
|
|
3821
|
+
store any,
|
|
3822
|
+
) any {
|
|
3823
|
+
return _validatecount(inj, store, "$NOF", true)
|
|
3824
|
+
}
|
|
3769
3825
|
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3826
|
+
// Every spec admits the value: ['`$ALL`', spec, ...].
|
|
3827
|
+
validate_ALL = func(
|
|
3828
|
+
inj *Injection,
|
|
3829
|
+
_val any,
|
|
3830
|
+
ref *string,
|
|
3831
|
+
store any,
|
|
3832
|
+
) any {
|
|
3833
|
+
return _validatecount(inj, store, "$ALL", false)
|
|
3834
|
+
}
|
|
3778
3835
|
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3836
|
+
// The value's length is within a bound: ['`$LEN`', bound, spec?], where the
|
|
3837
|
+
// bound is as for a $NOF count. A string's length is in code points.
|
|
3838
|
+
validate_LEN = func(
|
|
3839
|
+
inj *Injection,
|
|
3840
|
+
_val any,
|
|
3841
|
+
ref *string,
|
|
3842
|
+
store any,
|
|
3843
|
+
) any {
|
|
3844
|
+
return _validatebound(inj, store, "$LEN")
|
|
3845
|
+
}
|
|
3783
3846
|
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3847
|
+
// The value is a number within a bound: ['`$RANGE`', bound, spec?], where the
|
|
3848
|
+
// bound holds min or gt, max or lt, or one of each.
|
|
3849
|
+
validate_RANGE = func(
|
|
3850
|
+
inj *Injection,
|
|
3851
|
+
_val any,
|
|
3852
|
+
ref *string,
|
|
3853
|
+
store any,
|
|
3854
|
+
) any {
|
|
3855
|
+
return _validatebound(inj, store, "$RANGE")
|
|
3856
|
+
}
|
|
3793
3857
|
|
|
3794
|
-
|
|
3858
|
+
validate_LIKE = func(
|
|
3859
|
+
inj *Injection,
|
|
3860
|
+
_val any,
|
|
3861
|
+
ref *string,
|
|
3862
|
+
store any,
|
|
3863
|
+
) any {
|
|
3864
|
+
return _validatebound(inj, store, "$LIKE")
|
|
3795
3865
|
}
|
|
3796
3866
|
}
|
|
3797
3867
|
|
|
@@ -3811,79 +3881,29 @@ func init_validate_EXACT() {
|
|
|
3811
3881
|
return nil
|
|
3812
3882
|
}
|
|
3813
3883
|
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
// The parent is assumed to be a slice: ["`$EXACT`", alt0, alt1, ...].
|
|
3817
|
-
parentSlice, ok := _asList(inj.Parent)
|
|
3818
|
-
if !ok {
|
|
3819
|
-
return nil
|
|
3820
|
-
}
|
|
3884
|
+
cval := _slotval(inj)
|
|
3821
3885
|
|
|
3822
|
-
|
|
3823
|
-
grandparent := inj.Nodes.List[len(inj.Nodes.List)-2]
|
|
3824
|
-
grandkey := inj.Path.List[len(inj.Path.List)-2]
|
|
3886
|
+
inj.KeyI = len(inj.Keys.List)
|
|
3825
3887
|
|
|
3826
|
-
//
|
|
3827
|
-
|
|
3828
|
-
inj.Parent = inj.Dparent
|
|
3888
|
+
// Replace [$EXACT, ...] with the data value; SKIP keeps inject off the detached list.
|
|
3889
|
+
_setslot(inj, cval)
|
|
3829
3890
|
|
|
3830
|
-
// Adjust the path
|
|
3831
3891
|
inj.Path.List = inj.Path.List[:len(inj.Path.List)-1]
|
|
3832
|
-
inj.Key = inj.Path.List[len(inj.Path.List)-1]
|
|
3833
|
-
|
|
3834
|
-
// The exact values to match are everything after the first element.
|
|
3835
|
-
tvals := parentSlice[1:] // alt0, alt1, ...
|
|
3836
3892
|
|
|
3893
|
+
tvals := Slice(inj.Parent, 1).([]any)
|
|
3837
3894
|
if len(tvals) == 0 {
|
|
3838
3895
|
inj.Errs.Append("The $EXACT validator at field " +
|
|
3839
3896
|
Pathify(inj.Path.List, 1, 1) +
|
|
3840
3897
|
" must have at least one argument.")
|
|
3841
|
-
return
|
|
3898
|
+
return SKIP
|
|
3842
3899
|
}
|
|
3843
3900
|
|
|
3844
|
-
var currentStr *string
|
|
3845
3901
|
for _, tval := range tvals {
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
if !exactMatch {
|
|
3849
|
-
// Unwrap ListRefs for comparison since data and spec may have
|
|
3850
|
-
// different wrapping levels.
|
|
3851
|
-
unwrapFlags := map[string]bool{"unwrap": true}
|
|
3852
|
-
utval := CloneFlags(tval, unwrapFlags)
|
|
3853
|
-
ucurrent := CloneFlags(inj.Dparent, unwrapFlags)
|
|
3854
|
-
exactMatch = reflect.DeepEqual(utval, ucurrent)
|
|
3855
|
-
}
|
|
3856
|
-
|
|
3857
|
-
if !exactMatch && IsNode(tval) {
|
|
3858
|
-
if nil == currentStr {
|
|
3859
|
-
tmpstr := Stringify(inj.Dparent)
|
|
3860
|
-
currentStr = &tmpstr
|
|
3861
|
-
}
|
|
3862
|
-
tvalStr := Stringify(tval)
|
|
3863
|
-
exactMatch = tvalStr == *currentStr
|
|
3864
|
-
}
|
|
3865
|
-
|
|
3866
|
-
if exactMatch {
|
|
3867
|
-
return nil
|
|
3902
|
+
if _deepequal(tval, cval) {
|
|
3903
|
+
return SKIP
|
|
3868
3904
|
}
|
|
3869
3905
|
}
|
|
3870
3906
|
|
|
3871
|
-
mapped := make([]string, len(tvals))
|
|
3872
|
-
for i, v := range tvals {
|
|
3873
|
-
mapped[i] = Stringify(v)
|
|
3874
|
-
}
|
|
3875
|
-
|
|
3876
|
-
joined := strings.Join(mapped, ", ")
|
|
3877
|
-
|
|
3878
|
-
re := regexp.MustCompile("`\\$([A-Z]+)`")
|
|
3879
|
-
valdesc := re.ReplaceAllStringFunc(joined, func(match string) string {
|
|
3880
|
-
submatches := re.FindStringSubmatch(match)
|
|
3881
|
-
if len(submatches) == 2 {
|
|
3882
|
-
return strings.ToLower(submatches[1])
|
|
3883
|
-
}
|
|
3884
|
-
return match
|
|
3885
|
-
})
|
|
3886
|
-
|
|
3887
3907
|
prefix := ""
|
|
3888
3908
|
if len(inj.Path.List) <= 1 {
|
|
3889
3909
|
prefix = "value "
|
|
@@ -3894,14 +3914,17 @@ func init_validate_EXACT() {
|
|
|
3894
3914
|
oneOf = "one of "
|
|
3895
3915
|
}
|
|
3896
3916
|
|
|
3917
|
+
found := denoval(cval)
|
|
3897
3918
|
msg := _invalidTypeMsg(
|
|
3898
3919
|
inj.Path.List,
|
|
3899
|
-
prefix+"exactly equal to "+oneOf+
|
|
3900
|
-
Typename(Typify(
|
|
3901
|
-
|
|
3920
|
+
prefix+"exactly equal to "+oneOf+_valdesc(tvals),
|
|
3921
|
+
Typename(Typify(found)),
|
|
3922
|
+
found,
|
|
3902
3923
|
"V0110",
|
|
3903
3924
|
)
|
|
3904
3925
|
inj.Errs.Append(msg)
|
|
3926
|
+
|
|
3927
|
+
return SKIP
|
|
3905
3928
|
} else {
|
|
3906
3929
|
DelProp(inj.Parent, inj.Key)
|
|
3907
3930
|
}
|
|
@@ -3910,6 +3933,300 @@ func init_validate_EXACT() {
|
|
|
3910
3933
|
}
|
|
3911
3934
|
}
|
|
3912
3935
|
|
|
3936
|
+
// The counting list directives. Without a count, every spec has to admit.
|
|
3937
|
+
func _validatecount(inj *Injection, store any, name string, counted bool) any {
|
|
3938
|
+
if M_VAL != inj.Mode {
|
|
3939
|
+
return nil
|
|
3940
|
+
}
|
|
3941
|
+
|
|
3942
|
+
if !IsList(inj.Parent) || 0 != inj.KeyI {
|
|
3943
|
+
inj.Errs.Append("The " + name + " validator at field " +
|
|
3944
|
+
Pathify(inj.Path.List, 1, 1) +
|
|
3945
|
+
" must be the first element of an array.")
|
|
3946
|
+
return nil
|
|
3947
|
+
}
|
|
3948
|
+
|
|
3949
|
+
cval := _slotval(inj)
|
|
3950
|
+
|
|
3951
|
+
inj.KeyI = len(inj.Keys.List)
|
|
3952
|
+
|
|
3953
|
+
// Replace the directive's list with the data value. Each return is SKIP, so
|
|
3954
|
+
// that inject leaves the detached list alone and validates nothing in it.
|
|
3955
|
+
_setslot(inj, cval)
|
|
3956
|
+
|
|
3957
|
+
inj.Path.List = inj.Path.List[:len(inj.Path.List)-1]
|
|
3958
|
+
|
|
3959
|
+
var count any = NOVAL
|
|
3960
|
+
argsfrom := 1
|
|
3961
|
+
if counted {
|
|
3962
|
+
count = _lookup(inj.Parent, 1)
|
|
3963
|
+
argsfrom = 2
|
|
3964
|
+
}
|
|
3965
|
+
tvals := Slice(inj.Parent, argsfrom).([]any)
|
|
3966
|
+
numtvals := len(tvals)
|
|
3967
|
+
field := "The " + name + " validator at field " + Pathify(inj.Path.List, 1)
|
|
3968
|
+
|
|
3969
|
+
if 0 == numtvals {
|
|
3970
|
+
if counted {
|
|
3971
|
+
inj.Errs.Append(field + " must have a count and at least one argument.")
|
|
3972
|
+
} else {
|
|
3973
|
+
inj.Errs.Append(field + " must have at least one argument.")
|
|
3974
|
+
}
|
|
3975
|
+
return SKIP
|
|
3976
|
+
}
|
|
3977
|
+
|
|
3978
|
+
lo, hi, countdesc := numtvals, numtvals, "all"
|
|
3979
|
+
if counted {
|
|
3980
|
+
lo, hi, countdesc = _nofcount(count, numtvals)
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3983
|
+
if "" == countdesc {
|
|
3984
|
+
inj.Errs.Append(field + " has an invalid count: " + Stringify(denoval(count)) + ".")
|
|
3985
|
+
return SKIP
|
|
3986
|
+
}
|
|
3987
|
+
|
|
3988
|
+
admitted := 0
|
|
3989
|
+
for tI := 0; tI < numtvals; tI++ {
|
|
3990
|
+
left := numtvals - tI
|
|
3991
|
+
|
|
3992
|
+
// Stop once the specs left cannot change the verdict.
|
|
3993
|
+
if hi < admitted || admitted+left < lo || (lo <= admitted && admitted+left <= hi) {
|
|
3994
|
+
break
|
|
3995
|
+
}
|
|
3996
|
+
|
|
3997
|
+
if _admits(cval, tvals[tI], inj, store) {
|
|
3998
|
+
admitted++
|
|
3999
|
+
}
|
|
4000
|
+
}
|
|
4001
|
+
|
|
4002
|
+
if admitted < lo || hi < admitted {
|
|
4003
|
+
found := denoval(cval)
|
|
4004
|
+
inj.Errs.Append(_invalidTypeMsg(
|
|
4005
|
+
inj.Path.List,
|
|
4006
|
+
countdesc+" of "+_valdesc(tvals),
|
|
4007
|
+
Typename(Typify(found)),
|
|
4008
|
+
found,
|
|
4009
|
+
"V0310",
|
|
4010
|
+
))
|
|
4011
|
+
}
|
|
4012
|
+
|
|
4013
|
+
return SKIP
|
|
4014
|
+
}
|
|
4015
|
+
|
|
4016
|
+
// The bounding list directives: a bound or pattern, then at most one spec that also admits.
|
|
4017
|
+
func _validatebound(inj *Injection, store any, name string) any {
|
|
4018
|
+
if M_VAL != inj.Mode {
|
|
4019
|
+
return nil
|
|
4020
|
+
}
|
|
4021
|
+
|
|
4022
|
+
if !IsList(inj.Parent) || 0 != inj.KeyI {
|
|
4023
|
+
inj.Errs.Append("The " + name + " validator at field " +
|
|
4024
|
+
Pathify(inj.Path.List, 1, 1) +
|
|
4025
|
+
" must be the first element of an array.")
|
|
4026
|
+
return nil
|
|
4027
|
+
}
|
|
4028
|
+
|
|
4029
|
+
cval := _slotval(inj)
|
|
4030
|
+
|
|
4031
|
+
inj.KeyI = len(inj.Keys.List)
|
|
4032
|
+
|
|
4033
|
+
// As for the counting directives: SKIP keeps inject off the detached list.
|
|
4034
|
+
_setslot(inj, cval)
|
|
4035
|
+
|
|
4036
|
+
inj.Path.List = inj.Path.List[:len(inj.Path.List)-1]
|
|
4037
|
+
|
|
4038
|
+
field := "The " + name + " validator at field " + Pathify(inj.Path.List, 1)
|
|
4039
|
+
nargs := Size(inj.Parent) - 1
|
|
4040
|
+
islen := "$LEN" == name
|
|
4041
|
+
islike := "$LIKE" == name
|
|
4042
|
+
argname := "bound"
|
|
4043
|
+
if islike {
|
|
4044
|
+
argname = "pattern"
|
|
4045
|
+
}
|
|
4046
|
+
|
|
4047
|
+
if nargs < 1 || 2 < nargs {
|
|
4048
|
+
inj.Errs.Append(field + " must have a " + argname + " and at most one spec.")
|
|
4049
|
+
return SKIP
|
|
4050
|
+
}
|
|
4051
|
+
|
|
4052
|
+
bound := _lookup(inj.Parent, 1)
|
|
4053
|
+
pattern, _ := bound.(string)
|
|
4054
|
+
lo, hi, desc := 0, 0, ""
|
|
4055
|
+
if islen {
|
|
4056
|
+
lo, hi, desc = _lenbound(bound)
|
|
4057
|
+
} else if !islike {
|
|
4058
|
+
desc = _rangedesc(bound)
|
|
4059
|
+
} else if nil != _likere(bound) {
|
|
4060
|
+
desc = "like /" + pattern + "/"
|
|
4061
|
+
}
|
|
4062
|
+
|
|
4063
|
+
if "" == desc {
|
|
4064
|
+
inj.Errs.Append(field + " has an invalid " + argname + ": " + Stringify(denoval(bound)) + ".")
|
|
4065
|
+
return SKIP
|
|
4066
|
+
}
|
|
4067
|
+
|
|
4068
|
+
found := denoval(cval)
|
|
4069
|
+
ctypename := Typename(Typify(found))
|
|
4070
|
+
|
|
4071
|
+
if 2 == nargs {
|
|
4072
|
+
spec := _lookup(inj.Parent, 2)
|
|
4073
|
+
if !_admits(cval, spec, inj, store) {
|
|
4074
|
+
inj.Errs.Append(_invalidTypeMsg(inj.Path.List, _valdesc([]any{spec}), ctypename, found, "V0410"))
|
|
4075
|
+
return SKIP
|
|
4076
|
+
}
|
|
4077
|
+
}
|
|
4078
|
+
|
|
4079
|
+
needtype, needbits := S_number, T_number
|
|
4080
|
+
if islen {
|
|
4081
|
+
needtype, needbits = "string, list or map", T_string|T_list|T_map
|
|
4082
|
+
} else if islike {
|
|
4083
|
+
needtype, needbits = S_string, T_string
|
|
4084
|
+
}
|
|
4085
|
+
|
|
4086
|
+
if 0 == (needbits & Typify(cval)) {
|
|
4087
|
+
inj.Errs.Append(_invalidTypeMsg(inj.Path.List, needtype, ctypename, found, "V0420"))
|
|
4088
|
+
return SKIP
|
|
4089
|
+
}
|
|
4090
|
+
|
|
4091
|
+
inbound := false
|
|
4092
|
+
if islen {
|
|
4093
|
+
length := Size(cval)
|
|
4094
|
+
if s, ok := cval.(string); ok {
|
|
4095
|
+
length = utf8.RuneCountInString(s)
|
|
4096
|
+
}
|
|
4097
|
+
inbound = lo <= length && (-1 == hi || length <= hi)
|
|
4098
|
+
} else if islike {
|
|
4099
|
+
inbound = ReTest(pattern, cval.(string))
|
|
4100
|
+
} else {
|
|
4101
|
+
inbound = _inrange(bound, cval)
|
|
4102
|
+
}
|
|
4103
|
+
|
|
4104
|
+
if !inbound {
|
|
4105
|
+
prefix := ""
|
|
4106
|
+
if len(inj.Path.List) <= 1 {
|
|
4107
|
+
prefix = "value "
|
|
4108
|
+
}
|
|
4109
|
+
inj.Errs.Append(_invalidTypeMsg(inj.Path.List, prefix+desc, ctypename, found, "V0430"))
|
|
4110
|
+
}
|
|
4111
|
+
|
|
4112
|
+
return SKIP
|
|
4113
|
+
}
|
|
4114
|
+
|
|
4115
|
+
// The bounds of a $LEN bound, with -1 for no maximum, and the words for it,
|
|
4116
|
+
// which are "" when the bound is invalid.
|
|
4117
|
+
func _lenbound(bound any) (int, int, string) {
|
|
4118
|
+
lo, hi, countdesc := _nofcount(bound, -1)
|
|
4119
|
+
|
|
4120
|
+
if "" == countdesc {
|
|
4121
|
+
return 0, 0, ""
|
|
4122
|
+
}
|
|
4123
|
+
|
|
4124
|
+
desc := ""
|
|
4125
|
+
if lo == hi {
|
|
4126
|
+
desc = strconv.Itoa(lo)
|
|
4127
|
+
} else if -1 == hi {
|
|
4128
|
+
desc = "at least " + strconv.Itoa(lo)
|
|
4129
|
+
} else if 0 == lo {
|
|
4130
|
+
desc = "at most " + strconv.Itoa(hi)
|
|
4131
|
+
} else {
|
|
4132
|
+
desc = strconv.Itoa(lo) + " to " + strconv.Itoa(hi)
|
|
4133
|
+
}
|
|
4134
|
+
|
|
4135
|
+
return lo, hi, "of length " + desc
|
|
4136
|
+
}
|
|
4137
|
+
|
|
4138
|
+
// A $LIKE pattern compiled by the port's own regex engine; nil unless it
|
|
4139
|
+
// compiles. ReCompile panics on a pattern regexp refuses.
|
|
4140
|
+
func _likere(pattern any) (like *regexp.Regexp) {
|
|
4141
|
+
s, ok := pattern.(string)
|
|
4142
|
+
if !ok {
|
|
4143
|
+
return nil
|
|
4144
|
+
}
|
|
4145
|
+
defer func() {
|
|
4146
|
+
if nil != recover() {
|
|
4147
|
+
like = nil
|
|
4148
|
+
}
|
|
4149
|
+
}()
|
|
4150
|
+
return ReCompile(s)
|
|
4151
|
+
}
|
|
4152
|
+
|
|
4153
|
+
// The words for a $RANGE bound, which are "" when the bound is invalid.
|
|
4154
|
+
func _rangedesc(bound any) string {
|
|
4155
|
+
if !IsMap(bound) {
|
|
4156
|
+
return ""
|
|
4157
|
+
}
|
|
4158
|
+
|
|
4159
|
+
cmin := _lookup(bound, "min")
|
|
4160
|
+
cmax := _lookup(bound, "max")
|
|
4161
|
+
gt := _lookup(bound, "gt")
|
|
4162
|
+
lt := _lookup(bound, "lt")
|
|
4163
|
+
|
|
4164
|
+
lower := cmin
|
|
4165
|
+
if NOVAL == cmin {
|
|
4166
|
+
lower = gt
|
|
4167
|
+
}
|
|
4168
|
+
upper := cmax
|
|
4169
|
+
if NOVAL == cmax {
|
|
4170
|
+
upper = lt
|
|
4171
|
+
}
|
|
4172
|
+
|
|
4173
|
+
numkeys := 0
|
|
4174
|
+
for _, n := range []any{cmin, cmax, gt, lt} {
|
|
4175
|
+
if NOVAL != n {
|
|
4176
|
+
if 0 == (T_number & Typify(n)) {
|
|
4177
|
+
return ""
|
|
4178
|
+
}
|
|
4179
|
+
numkeys++
|
|
4180
|
+
}
|
|
4181
|
+
}
|
|
4182
|
+
|
|
4183
|
+
lowerf, _ := _toFloat64(lower)
|
|
4184
|
+
upperf, _ := _toFloat64(upper)
|
|
4185
|
+
|
|
4186
|
+
valid := 0 < Size(bound) &&
|
|
4187
|
+
Size(bound) == numkeys &&
|
|
4188
|
+
(NOVAL == cmin || NOVAL == gt) &&
|
|
4189
|
+
(NOVAL == cmax || NOVAL == lt) &&
|
|
4190
|
+
(NOVAL == lower || NOVAL == upper || lowerf <= upperf)
|
|
4191
|
+
|
|
4192
|
+
if !valid {
|
|
4193
|
+
return ""
|
|
4194
|
+
}
|
|
4195
|
+
|
|
4196
|
+
parts := []string{}
|
|
4197
|
+
if NOVAL != cmin {
|
|
4198
|
+
parts = append(parts, "at least "+Stringify(cmin))
|
|
4199
|
+
} else if NOVAL != gt {
|
|
4200
|
+
parts = append(parts, "greater than "+Stringify(gt))
|
|
4201
|
+
}
|
|
4202
|
+
if NOVAL != cmax {
|
|
4203
|
+
parts = append(parts, "at most "+Stringify(cmax))
|
|
4204
|
+
} else if NOVAL != lt {
|
|
4205
|
+
parts = append(parts, "less than "+Stringify(lt))
|
|
4206
|
+
}
|
|
4207
|
+
|
|
4208
|
+
return strings.Join(parts, " and ")
|
|
4209
|
+
}
|
|
4210
|
+
|
|
4211
|
+
// A number within a valid $RANGE bound.
|
|
4212
|
+
func _inrange(bound any, val any) bool {
|
|
4213
|
+
v, _ := _toFloat64(val)
|
|
4214
|
+
limit := func(key string) (float64, bool) {
|
|
4215
|
+
b, err := _toFloat64(_lookup(bound, key))
|
|
4216
|
+
return b, nil == err
|
|
4217
|
+
}
|
|
4218
|
+
|
|
4219
|
+
cmin, hasmin := limit("min")
|
|
4220
|
+
cmax, hasmax := limit("max")
|
|
4221
|
+
gt, hasgt := limit("gt")
|
|
4222
|
+
lt, haslt := limit("lt")
|
|
4223
|
+
|
|
4224
|
+
return (!hasmin || cmin <= v) &&
|
|
4225
|
+
(!hasmax || v <= cmax) &&
|
|
4226
|
+
(!hasgt || gt < v) &&
|
|
4227
|
+
(!haslt || v < lt)
|
|
4228
|
+
}
|
|
4229
|
+
|
|
3913
4230
|
func makeValidation(exact bool) Modify {
|
|
3914
4231
|
return func(
|
|
3915
4232
|
val any,
|
|
@@ -3932,7 +4249,7 @@ func makeValidation(exact bool) Modify {
|
|
|
3932
4249
|
return
|
|
3933
4250
|
}
|
|
3934
4251
|
|
|
3935
|
-
pval :=
|
|
4252
|
+
pval := val
|
|
3936
4253
|
ptype := Typify(pval)
|
|
3937
4254
|
|
|
3938
4255
|
// Delete any special commands remaining.
|
|
@@ -3965,8 +4282,8 @@ func makeValidation(exact bool) Modify {
|
|
|
3965
4282
|
ckeys := KeysOf(cval)
|
|
3966
4283
|
pkeys := KeysOf(pval)
|
|
3967
4284
|
|
|
3968
|
-
//
|
|
3969
|
-
if len(pkeys) > 0 && GetProp(pval, "`$OPEN`") != true {
|
|
4285
|
+
// Only a spec written as {} is open, even if named keys resolved away.
|
|
4286
|
+
if (len(pkeys) > 0 || inj.Named) && GetProp(pval, "`$OPEN`") != true {
|
|
3970
4287
|
// Literal presence: the shape DECLARES ckey even when its value
|
|
3971
4288
|
// is nil. Canonical uses `NONE === _lookup`; HasKey is Group A
|
|
3972
4289
|
// (value-based) and would drop records with a nil field from an
|
|
@@ -3995,6 +4312,19 @@ func makeValidation(exact bool) Modify {
|
|
|
3995
4312
|
} else if IsList(cval) {
|
|
3996
4313
|
if !IsList(val) {
|
|
3997
4314
|
inj.Errs.Append(_invalidTypeMsg(inj.Path.List, Typename(ptype), Typename(ctype), cval))
|
|
4315
|
+
} else if 0 < Size(pval) {
|
|
4316
|
+
// Closed list, so reject items past the end of the shape.
|
|
4317
|
+
badkeys := []string{}
|
|
4318
|
+
for i := Size(pval); i < Size(cval); i++ {
|
|
4319
|
+
badkeys = append(badkeys, StrKey(i))
|
|
4320
|
+
}
|
|
4321
|
+
if len(badkeys) > 0 {
|
|
4322
|
+
inj.Errs.Append("Unexpected keys at field " + Pathify(inj.Path.List, 1) +
|
|
4323
|
+
": " + strings.Join(badkeys, ", "))
|
|
4324
|
+
}
|
|
4325
|
+
} else {
|
|
4326
|
+
// Empty spec list [] means list can be open (any items).
|
|
4327
|
+
Merge([]any{pval, cval})
|
|
3998
4328
|
}
|
|
3999
4329
|
} else if exact {
|
|
4000
4330
|
// Select needs exact matches for scalar values.
|
|
@@ -4084,10 +4414,10 @@ func Validate(
|
|
|
4084
4414
|
errs = ListRefCreate[any]()
|
|
4085
4415
|
}
|
|
4086
4416
|
|
|
4087
|
-
// Initialize
|
|
4088
|
-
// This avoids a circular reference error
|
|
4089
|
-
if
|
|
4090
|
-
|
|
4417
|
+
// Initialize the validators that call Validate if not already initialized.
|
|
4418
|
+
// This avoids a circular reference error.
|
|
4419
|
+
if validate_NOF == nil {
|
|
4420
|
+
init_validate_count()
|
|
4091
4421
|
}
|
|
4092
4422
|
|
|
4093
4423
|
// Initialize validate_EXACT if not already initialized.
|
|
@@ -4105,9 +4435,6 @@ func Validate(
|
|
|
4105
4435
|
"$MERGE": nil,
|
|
4106
4436
|
"$EACH": nil,
|
|
4107
4437
|
"$PACK": nil,
|
|
4108
|
-
"$BT": nil,
|
|
4109
|
-
"$DS": nil,
|
|
4110
|
-
"$WHEN": nil,
|
|
4111
4438
|
|
|
4112
4439
|
// Add validation commands
|
|
4113
4440
|
"$STRING": validate_STRING,
|
|
@@ -4121,12 +4448,15 @@ func Validate(
|
|
|
4121
4448
|
"$LIST": validate_TYPE,
|
|
4122
4449
|
"$FUNCTION": validate_TYPE,
|
|
4123
4450
|
"$INSTANCE": validate_TYPE,
|
|
4124
|
-
"$OBJECT": validate_OBJECT,
|
|
4125
|
-
"$ARRAY": validate_ARRAY,
|
|
4126
4451
|
"$ANY": validate_ANY,
|
|
4127
4452
|
"$CHILD": validate_CHILD,
|
|
4128
|
-
"$ONE": validate_ONE,
|
|
4129
4453
|
"$EXACT": validate_EXACT,
|
|
4454
|
+
"$NOF": validate_NOF,
|
|
4455
|
+
"$ALL": validate_ALL,
|
|
4456
|
+
"$LEN": validate_LEN,
|
|
4457
|
+
"$RANGE": validate_RANGE,
|
|
4458
|
+
"$LIKE": validate_LIKE,
|
|
4459
|
+
"$REST": validate_REST,
|
|
4130
4460
|
}
|
|
4131
4461
|
|
|
4132
4462
|
// Add any extra validation commands
|
|
@@ -4158,8 +4488,16 @@ func Validate(
|
|
|
4158
4488
|
validationFn = makeValidation(true)
|
|
4159
4489
|
}
|
|
4160
4490
|
|
|
4161
|
-
//
|
|
4162
|
-
|
|
4491
|
+
// A spec that names an unknown checker validates nothing.
|
|
4492
|
+
numerrs := len(errs.List)
|
|
4493
|
+
_checknames(spec, store, []string{}, errs, false)
|
|
4494
|
+
|
|
4495
|
+
var out any
|
|
4496
|
+
if numerrs < len(errs.List) {
|
|
4497
|
+
out = Clone(data)
|
|
4498
|
+
} else {
|
|
4499
|
+
out = TransformModifyHandler(data, spec, store, validationFn, _validatehandler, errs, meta)
|
|
4500
|
+
}
|
|
4163
4501
|
|
|
4164
4502
|
var err error
|
|
4165
4503
|
generr := 0 < len(errs.List) && collecterrs == nil
|
|
@@ -4354,6 +4692,11 @@ var select_CMP Injector = func(
|
|
|
4354
4692
|
ref *string,
|
|
4355
4693
|
store any,
|
|
4356
4694
|
) any {
|
|
4695
|
+
// The list form of $LIKE is validate's checker; the key form is this operator.
|
|
4696
|
+
if M_VAL == inj.Mode && nil != ref && "$LIKE" == *ref {
|
|
4697
|
+
return validate_LIKE(inj, val, ref, store)
|
|
4698
|
+
}
|
|
4699
|
+
|
|
4357
4700
|
if M_KEYPRE == inj.Mode {
|
|
4358
4701
|
term := GetProp(inj.Parent, inj.Key)
|
|
4359
4702
|
|
|
@@ -4423,8 +4766,8 @@ func validateCollectExact(
|
|
|
4423
4766
|
errs = ListRefCreate[any]()
|
|
4424
4767
|
}
|
|
4425
4768
|
|
|
4426
|
-
if
|
|
4427
|
-
|
|
4769
|
+
if validate_NOF == nil {
|
|
4770
|
+
init_validate_count()
|
|
4428
4771
|
}
|
|
4429
4772
|
if validate_EXACT == nil {
|
|
4430
4773
|
init_validate_EXACT()
|
|
@@ -4438,9 +4781,6 @@ func validateCollectExact(
|
|
|
4438
4781
|
"$MERGE": nil,
|
|
4439
4782
|
"$EACH": nil,
|
|
4440
4783
|
"$PACK": nil,
|
|
4441
|
-
"$BT": nil,
|
|
4442
|
-
"$DS": nil,
|
|
4443
|
-
"$WHEN": nil,
|
|
4444
4784
|
|
|
4445
4785
|
"$STRING": validate_STRING,
|
|
4446
4786
|
"$NUMBER": validate_TYPE,
|
|
@@ -4453,12 +4793,15 @@ func validateCollectExact(
|
|
|
4453
4793
|
"$LIST": validate_TYPE,
|
|
4454
4794
|
"$FUNCTION": validate_TYPE,
|
|
4455
4795
|
"$INSTANCE": validate_TYPE,
|
|
4456
|
-
"$OBJECT": validate_OBJECT,
|
|
4457
|
-
"$ARRAY": validate_ARRAY,
|
|
4458
4796
|
"$ANY": validate_ANY,
|
|
4459
4797
|
"$CHILD": validate_CHILD,
|
|
4460
|
-
"$ONE": validate_ONE,
|
|
4461
4798
|
"$EXACT": validate_EXACT,
|
|
4799
|
+
"$NOF": validate_NOF,
|
|
4800
|
+
"$ALL": validate_ALL,
|
|
4801
|
+
"$LEN": validate_LEN,
|
|
4802
|
+
"$RANGE": validate_RANGE,
|
|
4803
|
+
"$LIKE": validate_LIKE,
|
|
4804
|
+
"$REST": validate_REST,
|
|
4462
4805
|
}
|
|
4463
4806
|
|
|
4464
4807
|
for k, fn := range extra {
|
|
@@ -4467,6 +4810,13 @@ func validateCollectExact(
|
|
|
4467
4810
|
|
|
4468
4811
|
store["$ERRS"] = errs
|
|
4469
4812
|
|
|
4813
|
+
// A spec that names an unknown checker validates nothing.
|
|
4814
|
+
numerrs := len(errs.List)
|
|
4815
|
+
_checknames(spec, store, []string{}, errs, false)
|
|
4816
|
+
if numerrs < len(errs.List) {
|
|
4817
|
+
return
|
|
4818
|
+
}
|
|
4819
|
+
|
|
4470
4820
|
meta := map[string]any{S_BEXACT: true}
|
|
4471
4821
|
TransformModifyHandler(data, spec, store, makeValidation(true), _validatehandler, errs, meta)
|
|
4472
4822
|
}
|
|
@@ -4520,16 +4870,7 @@ func Select(children any, query any) []any {
|
|
|
4520
4870
|
|
|
4521
4871
|
q := Clone(query)
|
|
4522
4872
|
|
|
4523
|
-
|
|
4524
|
-
Walk(q, func(key *string, v any, parent any, path []string) any {
|
|
4525
|
-
if IsMap(v) {
|
|
4526
|
-
m := v.(map[string]any)
|
|
4527
|
-
if _, has := m[S_BOPEN]; !has {
|
|
4528
|
-
m[S_BOPEN] = true
|
|
4529
|
-
}
|
|
4530
|
-
}
|
|
4531
|
-
return v
|
|
4532
|
-
})
|
|
4873
|
+
_openquery(q)
|
|
4533
4874
|
|
|
4534
4875
|
for _, child := range childList {
|
|
4535
4876
|
errs := ListRefCreate[any]()
|
|
@@ -4542,6 +4883,502 @@ func Select(children any, query any) []any {
|
|
|
4542
4883
|
return results
|
|
4543
4884
|
}
|
|
4544
4885
|
|
|
4886
|
+
// Open every map in a select query, so a child may hold keys the query does
|
|
4887
|
+
// not name, but leave a directive's literals as written: what $EXACT
|
|
4888
|
+
// compares, and the count or bound of $NOF, $LEN and $RANGE.
|
|
4889
|
+
func _openquery(q any) {
|
|
4890
|
+
if m, ok := q.(map[string]any); ok {
|
|
4891
|
+
if nil == m[S_BOPEN] {
|
|
4892
|
+
m[S_BOPEN] = true
|
|
4893
|
+
}
|
|
4894
|
+
for _, v := range m {
|
|
4895
|
+
_openquery(v)
|
|
4896
|
+
}
|
|
4897
|
+
} else if IsList(q) {
|
|
4898
|
+
list := _listify(q)
|
|
4899
|
+
head := ""
|
|
4900
|
+
if 0 < len(list) {
|
|
4901
|
+
head, _ = list[0].(string)
|
|
4902
|
+
}
|
|
4903
|
+
exact := S_BEXACT == head
|
|
4904
|
+
bounded := "`$NOF`" == head || "`$LEN`" == head || "`$RANGE`" == head
|
|
4905
|
+
for i, v := range list {
|
|
4906
|
+
literal := 0 < i && (exact || (bounded && 1 == i))
|
|
4907
|
+
if !literal {
|
|
4908
|
+
_openquery(v)
|
|
4909
|
+
}
|
|
4910
|
+
}
|
|
4911
|
+
}
|
|
4912
|
+
}
|
|
4913
|
+
|
|
4914
|
+
// Condensed structures
|
|
4915
|
+
// ====================
|
|
4916
|
+
|
|
4917
|
+
const CONDENSE_VERSION = 1
|
|
4918
|
+
|
|
4919
|
+
// Node kinds: the first element of every node encoding.
|
|
4920
|
+
const (
|
|
4921
|
+
CONDENSE_MAP = iota
|
|
4922
|
+
CONDENSE_LIST
|
|
4923
|
+
CONDENSE_STR
|
|
4924
|
+
CONDENSE_NUM
|
|
4925
|
+
CONDENSE_TRUE
|
|
4926
|
+
CONDENSE_FALSE
|
|
4927
|
+
CONDENSE_NULL
|
|
4928
|
+
)
|
|
4929
|
+
|
|
4930
|
+
const (
|
|
4931
|
+
S_condense = "$condense"
|
|
4932
|
+
S_condsym = "sym"
|
|
4933
|
+
S_condnode = "node"
|
|
4934
|
+
S_condroot = "root"
|
|
4935
|
+
)
|
|
4936
|
+
|
|
4937
|
+
var errCondensedImmutable = errors.New(
|
|
4938
|
+
"struct: condensed structures are immutable - expand() first, then modify the copy")
|
|
4939
|
+
|
|
4940
|
+
// The version must match, not merely be numeric: a future profile would
|
|
4941
|
+
// otherwise be decoded under this one's schema.
|
|
4942
|
+
func IsCondensed(val any) bool {
|
|
4943
|
+
m, ok := val.(map[string]any)
|
|
4944
|
+
if !ok {
|
|
4945
|
+
return false
|
|
4946
|
+
}
|
|
4947
|
+
version, verr := _toFloat64(m[S_condense])
|
|
4948
|
+
_, rerr := _toFloat64(m[S_condroot])
|
|
4949
|
+
return nil == verr && CONDENSE_VERSION == version &&
|
|
4950
|
+
IsList(m[S_condsym]) && IsList(m[S_condnode]) && nil == rerr
|
|
4951
|
+
}
|
|
4952
|
+
|
|
4953
|
+
// Condense any JSON-shaped node. Pure: the same input always produces the
|
|
4954
|
+
// same result, on every port.
|
|
4955
|
+
func Condense(val any) any {
|
|
4956
|
+
// Pass one: every distinct map key and string value, once, sorted. Byte
|
|
4957
|
+
// order is code-point order in UTF-8.
|
|
4958
|
+
symset := map[string]bool{}
|
|
4959
|
+
var collect func(n any)
|
|
4960
|
+
collect = func(n any) {
|
|
4961
|
+
if m, ok := n.(map[string]any); ok {
|
|
4962
|
+
for k, v := range m {
|
|
4963
|
+
symset[k] = true
|
|
4964
|
+
collect(v)
|
|
4965
|
+
}
|
|
4966
|
+
} else if IsList(n) {
|
|
4967
|
+
for _, v := range _listify(n) {
|
|
4968
|
+
collect(v)
|
|
4969
|
+
}
|
|
4970
|
+
} else if s, ok := n.(string); ok {
|
|
4971
|
+
symset[s] = true
|
|
4972
|
+
}
|
|
4973
|
+
}
|
|
4974
|
+
collect(val)
|
|
4975
|
+
|
|
4976
|
+
syms := make([]string, 0, len(symset))
|
|
4977
|
+
for s := range symset {
|
|
4978
|
+
syms = append(syms, s)
|
|
4979
|
+
}
|
|
4980
|
+
sort.Strings(syms)
|
|
4981
|
+
|
|
4982
|
+
sym := make([]any, len(syms))
|
|
4983
|
+
symid := make(map[string]int, len(syms))
|
|
4984
|
+
for i, s := range syms {
|
|
4985
|
+
sym[i] = s
|
|
4986
|
+
symid[s] = i
|
|
4987
|
+
}
|
|
4988
|
+
|
|
4989
|
+
// Pass two: build post-order, interning on the encoding, so identical
|
|
4990
|
+
// subtrees are one node by the time a parent refers to them.
|
|
4991
|
+
node := []any{}
|
|
4992
|
+
seen := map[string]int{}
|
|
4993
|
+
|
|
4994
|
+
intern := func(enc []any) int {
|
|
4995
|
+
enckey := _condenseKey(enc)
|
|
4996
|
+
if hit, has := seen[enckey]; has {
|
|
4997
|
+
return hit
|
|
4998
|
+
}
|
|
4999
|
+
idx := len(node)
|
|
5000
|
+
node = append(node, enc)
|
|
5001
|
+
seen[enckey] = idx
|
|
5002
|
+
return idx
|
|
5003
|
+
}
|
|
5004
|
+
|
|
5005
|
+
var build func(n any) int
|
|
5006
|
+
build = func(n any) int {
|
|
5007
|
+
if m, ok := n.(map[string]any); ok {
|
|
5008
|
+
enc := []any{CONDENSE_MAP}
|
|
5009
|
+
// KeysOf sorts by byte, which is code-point order in UTF-8, so the
|
|
5010
|
+
// key ids ascend and lookup can bisect.
|
|
5011
|
+
for _, k := range KeysOf(m) {
|
|
5012
|
+
enc = append(enc, symid[k], build(m[k]))
|
|
5013
|
+
}
|
|
5014
|
+
return intern(enc)
|
|
5015
|
+
}
|
|
5016
|
+
if IsList(n) {
|
|
5017
|
+
enc := []any{CONDENSE_LIST}
|
|
5018
|
+
for _, v := range _listify(n) {
|
|
5019
|
+
enc = append(enc, build(v))
|
|
5020
|
+
}
|
|
5021
|
+
return intern(enc)
|
|
5022
|
+
}
|
|
5023
|
+
if s, ok := n.(string); ok {
|
|
5024
|
+
return intern([]any{CONDENSE_STR, symid[s]})
|
|
5025
|
+
}
|
|
5026
|
+
if _, err := _toFloat64(n); nil == err {
|
|
5027
|
+
return intern([]any{CONDENSE_NUM, n})
|
|
5028
|
+
}
|
|
5029
|
+
if b, ok := n.(bool); ok {
|
|
5030
|
+
if b {
|
|
5031
|
+
return intern([]any{CONDENSE_TRUE})
|
|
5032
|
+
}
|
|
5033
|
+
return intern([]any{CONDENSE_FALSE})
|
|
5034
|
+
}
|
|
5035
|
+
return intern([]any{CONDENSE_NULL})
|
|
5036
|
+
}
|
|
5037
|
+
|
|
5038
|
+
root := build(val)
|
|
5039
|
+
|
|
5040
|
+
return map[string]any{
|
|
5041
|
+
S_condense: CONDENSE_VERSION,
|
|
5042
|
+
S_condsym: sym,
|
|
5043
|
+
S_condnode: node,
|
|
5044
|
+
S_condroot: root,
|
|
5045
|
+
}
|
|
5046
|
+
}
|
|
5047
|
+
|
|
5048
|
+
// The value a condensed structure stands for. Any other value comes back
|
|
5049
|
+
// unchanged, so a caller holding either shape can call Expand.
|
|
5050
|
+
func Expand(cond any) any {
|
|
5051
|
+
if !IsCondensed(cond) {
|
|
5052
|
+
return cond
|
|
5053
|
+
}
|
|
5054
|
+
return _condenseMaterialise(cond, _condenseInt(cond.(map[string]any)[S_condroot]))
|
|
5055
|
+
}
|
|
5056
|
+
|
|
5057
|
+
// A cursor into a condensed structure. Reads resolve by integer index and
|
|
5058
|
+
// touch only the nodes on the path, so the cost of a lookup follows path
|
|
5059
|
+
// depth and result size, never total structure size.
|
|
5060
|
+
type CondensedView struct {
|
|
5061
|
+
cond any
|
|
5062
|
+
start int
|
|
5063
|
+
memo map[int]any
|
|
5064
|
+
}
|
|
5065
|
+
|
|
5066
|
+
// CondenseView starts at node opts[0] when given, else at the root. Views
|
|
5067
|
+
// made with At share opts[1], the memo that Ref reads.
|
|
5068
|
+
func CondenseView(cond any, opts ...any) *CondensedView {
|
|
5069
|
+
start := -1
|
|
5070
|
+
if 0 < len(opts) && nil != denoval(opts[0]) {
|
|
5071
|
+
start = _condenseInt(opts[0])
|
|
5072
|
+
} else if IsCondensed(cond) {
|
|
5073
|
+
start = _condenseInt(cond.(map[string]any)[S_condroot])
|
|
5074
|
+
}
|
|
5075
|
+
|
|
5076
|
+
var memo map[int]any
|
|
5077
|
+
if 1 < len(opts) {
|
|
5078
|
+
memo, _ = opts[1].(map[int]any)
|
|
5079
|
+
}
|
|
5080
|
+
if nil == memo {
|
|
5081
|
+
memo = map[int]any{}
|
|
5082
|
+
}
|
|
5083
|
+
|
|
5084
|
+
return &CondensedView{cond: cond, start: start, memo: memo}
|
|
5085
|
+
}
|
|
5086
|
+
|
|
5087
|
+
// The value at path, materialised: a container comes back as a copy.
|
|
5088
|
+
func (v *CondensedView) Get(path ...any) any {
|
|
5089
|
+
return _condenseMaterialise(v.cond, v.resolve(path))
|
|
5090
|
+
}
|
|
5091
|
+
|
|
5092
|
+
// The key names at path, with no value decoded.
|
|
5093
|
+
func (v *CondensedView) Keys(path ...any) []string {
|
|
5094
|
+
at := v.resolve(path)
|
|
5095
|
+
if 0 > at {
|
|
5096
|
+
return []string{}
|
|
5097
|
+
}
|
|
5098
|
+
return _condenseKeys(v.cond, at)
|
|
5099
|
+
}
|
|
5100
|
+
|
|
5101
|
+
func (v *CondensedView) Has(path ...any) bool {
|
|
5102
|
+
return 0 <= v.resolve(path)
|
|
5103
|
+
}
|
|
5104
|
+
|
|
5105
|
+
// A cursor at path, sharing this view's memo. Nothing is decoded.
|
|
5106
|
+
func (v *CondensedView) At(path ...any) *CondensedView {
|
|
5107
|
+
return CondenseView(v.cond, v.resolve(path), v.memo)
|
|
5108
|
+
}
|
|
5109
|
+
|
|
5110
|
+
func (v *CondensedView) Value() any {
|
|
5111
|
+
return _condenseMaterialise(v.cond, v.start)
|
|
5112
|
+
}
|
|
5113
|
+
|
|
5114
|
+
func (v *CondensedView) Size() int {
|
|
5115
|
+
enc, has := _condenseEnc(v.cond, v.start)
|
|
5116
|
+
if !has {
|
|
5117
|
+
return 0
|
|
5118
|
+
}
|
|
5119
|
+
switch _condenseKind(enc) {
|
|
5120
|
+
case CONDENSE_MAP:
|
|
5121
|
+
return (len(enc) - 1) / 2
|
|
5122
|
+
case CONDENSE_LIST:
|
|
5123
|
+
return len(enc) - 1
|
|
5124
|
+
}
|
|
5125
|
+
return 0
|
|
5126
|
+
}
|
|
5127
|
+
|
|
5128
|
+
func (v *CondensedView) Exists() bool {
|
|
5129
|
+
return 0 <= v.start
|
|
5130
|
+
}
|
|
5131
|
+
|
|
5132
|
+
// Unlike Value and Get, a shared materialisation: the same container for the
|
|
5133
|
+
// same node from every view on the memo, so a change to it reaches them all.
|
|
5134
|
+
func (v *CondensedView) Ref() any {
|
|
5135
|
+
if out, has := v.memo[v.start]; has {
|
|
5136
|
+
return out
|
|
5137
|
+
}
|
|
5138
|
+
out := _condenseMaterialise(v.cond, v.start)
|
|
5139
|
+
v.memo[v.start] = out
|
|
5140
|
+
return out
|
|
5141
|
+
}
|
|
5142
|
+
|
|
5143
|
+
func (v *CondensedView) resolve(path []any) int {
|
|
5144
|
+
var p any
|
|
5145
|
+
if 0 < len(path) {
|
|
5146
|
+
p = path[0]
|
|
5147
|
+
}
|
|
5148
|
+
parts, ok := _condenseParts(p)
|
|
5149
|
+
if !ok {
|
|
5150
|
+
return -1
|
|
5151
|
+
}
|
|
5152
|
+
return _condenseResolve(v.cond, v.start, parts)
|
|
5153
|
+
}
|
|
5154
|
+
|
|
5155
|
+
// The interning key of a node encoding. Every element is a number, keyed by
|
|
5156
|
+
// value, so an integer and a decimal with the same value share a node.
|
|
5157
|
+
func _condenseKey(enc []any) string {
|
|
5158
|
+
parts := make([]string, len(enc))
|
|
5159
|
+
for i, e := range enc {
|
|
5160
|
+
f, _ := _toFloat64(e)
|
|
5161
|
+
if 0 == f {
|
|
5162
|
+
f = 0 // Negative zero keys as zero.
|
|
5163
|
+
}
|
|
5164
|
+
parts[i] = strconv.FormatFloat(f, 'g', -1, 64)
|
|
5165
|
+
}
|
|
5166
|
+
return strings.Join(parts, ",")
|
|
5167
|
+
}
|
|
5168
|
+
|
|
5169
|
+
// A kind, symbol id or node index from an encoding, or -1 for anything but a
|
|
5170
|
+
// non-negative integer.
|
|
5171
|
+
func _condenseInt(v any) int {
|
|
5172
|
+
f, err := _toFloat64(v)
|
|
5173
|
+
if nil != err || f != math.Trunc(f) || f < 0 || f > math.MaxInt32 {
|
|
5174
|
+
return -1
|
|
5175
|
+
}
|
|
5176
|
+
return int(f)
|
|
5177
|
+
}
|
|
5178
|
+
|
|
5179
|
+
func _condenseTable(cond any, name string) []any {
|
|
5180
|
+
m, _ := cond.(map[string]any)
|
|
5181
|
+
return _listify(m[name])
|
|
5182
|
+
}
|
|
5183
|
+
|
|
5184
|
+
// The encoding of node idx, and whether there is such a node.
|
|
5185
|
+
func _condenseEnc(cond any, idx int) ([]any, bool) {
|
|
5186
|
+
node := _condenseTable(cond, S_condnode)
|
|
5187
|
+
if idx < 0 || idx >= len(node) || nil == node[idx] {
|
|
5188
|
+
return nil, false
|
|
5189
|
+
}
|
|
5190
|
+
return _listify(node[idx]), true
|
|
5191
|
+
}
|
|
5192
|
+
|
|
5193
|
+
func _condenseKind(enc []any) int {
|
|
5194
|
+
if 0 == len(enc) {
|
|
5195
|
+
return -1
|
|
5196
|
+
}
|
|
5197
|
+
return _condenseInt(enc[0])
|
|
5198
|
+
}
|
|
5199
|
+
|
|
5200
|
+
func _condenseSymAt(sym []any, v any) (string, bool) {
|
|
5201
|
+
i := _condenseInt(v)
|
|
5202
|
+
if i < 0 || i >= len(sym) {
|
|
5203
|
+
return S_MT, false
|
|
5204
|
+
}
|
|
5205
|
+
s, ok := sym[i].(string)
|
|
5206
|
+
return s, ok
|
|
5207
|
+
}
|
|
5208
|
+
|
|
5209
|
+
// Resolve a symbol to its id by bisecting the sorted symbol table. -1 when
|
|
5210
|
+
// the string occurs nowhere in the structure, a fast negative for a key.
|
|
5211
|
+
func _condenseSymId(cond any, key string) int {
|
|
5212
|
+
sym := _condenseTable(cond, S_condsym)
|
|
5213
|
+
lo, hi := 0, len(sym)-1
|
|
5214
|
+
for lo <= hi {
|
|
5215
|
+
mid := (lo + hi) >> 1
|
|
5216
|
+
s, _ := sym[mid].(string)
|
|
5217
|
+
if s == key {
|
|
5218
|
+
return mid
|
|
5219
|
+
}
|
|
5220
|
+
if s < key {
|
|
5221
|
+
lo = mid + 1
|
|
5222
|
+
} else {
|
|
5223
|
+
hi = mid - 1
|
|
5224
|
+
}
|
|
5225
|
+
}
|
|
5226
|
+
return -1
|
|
5227
|
+
}
|
|
5228
|
+
|
|
5229
|
+
// The node index of key inside node idx, or -1. Touches only this node.
|
|
5230
|
+
func _condenseChild(cond any, idx int, key string) int {
|
|
5231
|
+
enc, has := _condenseEnc(cond, idx)
|
|
5232
|
+
if !has {
|
|
5233
|
+
return -1
|
|
5234
|
+
}
|
|
5235
|
+
|
|
5236
|
+
switch _condenseKind(enc) {
|
|
5237
|
+
case CONDENSE_MAP:
|
|
5238
|
+
symid := _condenseSymId(cond, key)
|
|
5239
|
+
if 0 > symid {
|
|
5240
|
+
return -1
|
|
5241
|
+
}
|
|
5242
|
+
// Pairs live at [1,2], [3,4], ... with keys ascending: bisect the pairs.
|
|
5243
|
+
lo, hi := 0, (len(enc)-1)/2-1
|
|
5244
|
+
for lo <= hi {
|
|
5245
|
+
mid := (lo + hi) >> 1
|
|
5246
|
+
k := _condenseInt(enc[1+mid*2])
|
|
5247
|
+
if k == symid {
|
|
5248
|
+
return _condenseInt(enc[2+mid*2])
|
|
5249
|
+
}
|
|
5250
|
+
if k < symid {
|
|
5251
|
+
lo = mid + 1
|
|
5252
|
+
} else {
|
|
5253
|
+
hi = mid - 1
|
|
5254
|
+
}
|
|
5255
|
+
}
|
|
5256
|
+
|
|
5257
|
+
case CONDENSE_LIST:
|
|
5258
|
+
if i, ok := _listkey(key); ok && 0 <= i && i < len(enc)-1 {
|
|
5259
|
+
return _condenseInt(enc[1+i])
|
|
5260
|
+
}
|
|
5261
|
+
}
|
|
5262
|
+
|
|
5263
|
+
return -1
|
|
5264
|
+
}
|
|
5265
|
+
|
|
5266
|
+
// A path as parts: a list is its parts, a string splits on dots, no path is
|
|
5267
|
+
// no parts, and any other value is one part, its string form. False when a
|
|
5268
|
+
// list part is neither a string nor a number, which names no child.
|
|
5269
|
+
func _condenseParts(path any) ([]string, bool) {
|
|
5270
|
+
path = denoval(path)
|
|
5271
|
+
if IsList(path) {
|
|
5272
|
+
list := _listify(path)
|
|
5273
|
+
parts := make([]string, len(list))
|
|
5274
|
+
for i, p := range list {
|
|
5275
|
+
ps, ok := _keystr(p)
|
|
5276
|
+
if !ok {
|
|
5277
|
+
return nil, false
|
|
5278
|
+
}
|
|
5279
|
+
parts[i] = ps
|
|
5280
|
+
}
|
|
5281
|
+
return parts, true
|
|
5282
|
+
}
|
|
5283
|
+
if s, ok := path.(string); ok {
|
|
5284
|
+
if S_MT == s {
|
|
5285
|
+
return nil, true
|
|
5286
|
+
}
|
|
5287
|
+
return strings.Split(s, S_DT), true
|
|
5288
|
+
}
|
|
5289
|
+
if nil == path {
|
|
5290
|
+
return nil, true
|
|
5291
|
+
}
|
|
5292
|
+
return []string{Stringify(path)}, true
|
|
5293
|
+
}
|
|
5294
|
+
|
|
5295
|
+
// Walk path parts from a starting node, returning the node index or -1.
|
|
5296
|
+
func _condenseResolve(cond any, idx int, parts []string) int {
|
|
5297
|
+
at := idx
|
|
5298
|
+
for _, part := range parts {
|
|
5299
|
+
if 0 > at {
|
|
5300
|
+
return -1
|
|
5301
|
+
}
|
|
5302
|
+
if S_MT == part {
|
|
5303
|
+
continue
|
|
5304
|
+
}
|
|
5305
|
+
at = _condenseChild(cond, at, part)
|
|
5306
|
+
}
|
|
5307
|
+
return at
|
|
5308
|
+
}
|
|
5309
|
+
|
|
5310
|
+
// The value of node idx as a fresh tree, nil when there is no such node.
|
|
5311
|
+
// Materialisations never share a container, though the condensed form shares
|
|
5312
|
+
// nodes.
|
|
5313
|
+
func _condenseMaterialise(cond any, idx int) any {
|
|
5314
|
+
sym := _condenseTable(cond, S_condsym)
|
|
5315
|
+
node := _condenseTable(cond, S_condnode)
|
|
5316
|
+
|
|
5317
|
+
var rebuild func(i int) any
|
|
5318
|
+
rebuild = func(i int) any {
|
|
5319
|
+
if i < 0 || i >= len(node) || nil == node[i] {
|
|
5320
|
+
return nil
|
|
5321
|
+
}
|
|
5322
|
+
enc := _listify(node[i])
|
|
5323
|
+
switch _condenseKind(enc) {
|
|
5324
|
+
case CONDENSE_MAP:
|
|
5325
|
+
out := map[string]any{}
|
|
5326
|
+
for j := 1; j+1 < len(enc); j += 2 {
|
|
5327
|
+
if k, ok := _condenseSymAt(sym, enc[j]); ok {
|
|
5328
|
+
out[k] = rebuild(_condenseInt(enc[j+1]))
|
|
5329
|
+
}
|
|
5330
|
+
}
|
|
5331
|
+
return out
|
|
5332
|
+
case CONDENSE_LIST:
|
|
5333
|
+
out := make([]any, 0, len(enc)-1)
|
|
5334
|
+
for _, e := range enc[1:] {
|
|
5335
|
+
out = append(out, rebuild(_condenseInt(e)))
|
|
5336
|
+
}
|
|
5337
|
+
return out
|
|
5338
|
+
case CONDENSE_STR:
|
|
5339
|
+
if 1 < len(enc) {
|
|
5340
|
+
if s, ok := _condenseSymAt(sym, enc[1]); ok {
|
|
5341
|
+
return s
|
|
5342
|
+
}
|
|
5343
|
+
}
|
|
5344
|
+
case CONDENSE_NUM:
|
|
5345
|
+
if 1 < len(enc) {
|
|
5346
|
+
return enc[1]
|
|
5347
|
+
}
|
|
5348
|
+
case CONDENSE_TRUE:
|
|
5349
|
+
return true
|
|
5350
|
+
case CONDENSE_FALSE:
|
|
5351
|
+
return false
|
|
5352
|
+
}
|
|
5353
|
+
return nil
|
|
5354
|
+
}
|
|
5355
|
+
|
|
5356
|
+
return rebuild(idx)
|
|
5357
|
+
}
|
|
5358
|
+
|
|
5359
|
+
// The keys of node idx, without materialising any of its values.
|
|
5360
|
+
func _condenseKeys(cond any, idx int) []string {
|
|
5361
|
+
out := []string{}
|
|
5362
|
+
enc, has := _condenseEnc(cond, idx)
|
|
5363
|
+
if !has {
|
|
5364
|
+
return out
|
|
5365
|
+
}
|
|
5366
|
+
switch _condenseKind(enc) {
|
|
5367
|
+
case CONDENSE_MAP:
|
|
5368
|
+
sym := _condenseTable(cond, S_condsym)
|
|
5369
|
+
for j := 1; j < len(enc); j += 2 {
|
|
5370
|
+
if k, ok := _condenseSymAt(sym, enc[j]); ok {
|
|
5371
|
+
out = append(out, k)
|
|
5372
|
+
}
|
|
5373
|
+
}
|
|
5374
|
+
case CONDENSE_LIST:
|
|
5375
|
+
for j := 1; j < len(enc); j++ {
|
|
5376
|
+
out = append(out, strconv.Itoa(j-1))
|
|
5377
|
+
}
|
|
5378
|
+
}
|
|
5379
|
+
return out
|
|
5380
|
+
}
|
|
5381
|
+
|
|
4545
5382
|
// Internal utilities
|
|
4546
5383
|
// ==================
|
|
4547
5384
|
|
|
@@ -4585,6 +5422,280 @@ func _invalidTypeMsg(path []string, needtype string, vt string, v any, whence ..
|
|
|
4585
5422
|
return message + "."
|
|
4586
5423
|
}
|
|
4587
5424
|
|
|
5425
|
+
// Names a validate spec may use besides its checkers: transform's that it keeps, and $OPEN.
|
|
5426
|
+
var validateNames = []string{
|
|
5427
|
+
"$TOP",
|
|
5428
|
+
"$SPEC",
|
|
5429
|
+
"$BT",
|
|
5430
|
+
"$DS",
|
|
5431
|
+
"$WHEN",
|
|
5432
|
+
"$ANNO",
|
|
5433
|
+
"$REF",
|
|
5434
|
+
"$FORMAT",
|
|
5435
|
+
"$APPLY",
|
|
5436
|
+
"$OPEN",
|
|
5437
|
+
}
|
|
5438
|
+
|
|
5439
|
+
// Report each checker the spec names that validate lacks, and each misplaced
|
|
5440
|
+
// $REST; $EXACT's arguments are literals. Last: spec is a list's last item.
|
|
5441
|
+
func _checknames(spec any, store map[string]any, path []string, errs *ListRef[any], last bool) {
|
|
5442
|
+
name := _refname(spec)
|
|
5443
|
+
if "" != name {
|
|
5444
|
+
if _unknownname(name, store) {
|
|
5445
|
+
errs.Append("Unknown validator " + name + " at field " + Pathify(path) + ".")
|
|
5446
|
+
} else if "$REST" == name {
|
|
5447
|
+
errs.Append(_restmsg(path, " must be the last element of an array."))
|
|
5448
|
+
}
|
|
5449
|
+
return
|
|
5450
|
+
}
|
|
5451
|
+
|
|
5452
|
+
head := ""
|
|
5453
|
+
if IsList(spec) {
|
|
5454
|
+
head = _refname(GetProp(spec, 0))
|
|
5455
|
+
}
|
|
5456
|
+
if "$EXACT" == head {
|
|
5457
|
+
return
|
|
5458
|
+
}
|
|
5459
|
+
|
|
5460
|
+
if "$REST" == head {
|
|
5461
|
+
if !last {
|
|
5462
|
+
errs.Append(_restmsg(path, " must be the last element of an array."))
|
|
5463
|
+
} else if 2 != Size(spec) {
|
|
5464
|
+
errs.Append(_restmsg(path, " must have exactly one spec."))
|
|
5465
|
+
}
|
|
5466
|
+
_checknames(GetProp(spec, 1), store, append(append(make([]string, 0, len(path)+1), path...), "1"), errs, false)
|
|
5467
|
+
return
|
|
5468
|
+
}
|
|
5469
|
+
|
|
5470
|
+
restkey := "`$REST`"
|
|
5471
|
+
if IsMap(spec) && NOVAL != _lookup(spec, restkey) && NOVAL != _lookup(spec, "`$CHILD`") {
|
|
5472
|
+
errs.Append(_restmsg(path, " cannot be used with $CHILD."))
|
|
5473
|
+
}
|
|
5474
|
+
|
|
5475
|
+
lastkey := StrKey(Size(spec) - 1)
|
|
5476
|
+
for _, key := range KeysOf(spec) {
|
|
5477
|
+
if IsMap(spec) && restkey != key {
|
|
5478
|
+
_checknames(key, store, path, errs, false)
|
|
5479
|
+
}
|
|
5480
|
+
kpath := append(append(make([]string, 0, len(path)+1), path...), key)
|
|
5481
|
+
_checknames(GetProp(spec, key), store, kpath, errs, IsList(spec) && lastkey == key)
|
|
5482
|
+
}
|
|
5483
|
+
}
|
|
5484
|
+
|
|
5485
|
+
// The name a whole-string reference gives, when it is a checker name in any
|
|
5486
|
+
// case, else "".
|
|
5487
|
+
func _refname(val any) string {
|
|
5488
|
+
if s, ok := val.(string); ok {
|
|
5489
|
+
m := reInjectionFull.FindStringSubmatch(s)
|
|
5490
|
+
if nil != m && reCheckerName.MatchString(strings.ToUpper(m[1])) {
|
|
5491
|
+
return m[1]
|
|
5492
|
+
}
|
|
5493
|
+
}
|
|
5494
|
+
return ""
|
|
5495
|
+
}
|
|
5496
|
+
|
|
5497
|
+
// Unknown: undefined and upper case, or a defined name in another case. Nil disables a name.
|
|
5498
|
+
func _unknownname(name string, store map[string]any) bool {
|
|
5499
|
+
known := func(n string) bool {
|
|
5500
|
+
return slices.Contains(validateNames, n) || nil != store[n]
|
|
5501
|
+
}
|
|
5502
|
+
upper := strings.ToUpper(name)
|
|
5503
|
+
return !known(name) && (upper == name || known(upper))
|
|
5504
|
+
}
|
|
5505
|
+
|
|
5506
|
+
// The value stored at key, nil included, or NOVAL when val holds no such
|
|
5507
|
+
// key. GetProp reads both as nil.
|
|
5508
|
+
func _lookup(val any, key any) any {
|
|
5509
|
+
return _readprop(val, key)
|
|
5510
|
+
}
|
|
5511
|
+
|
|
5512
|
+
// The data value at a list directive's slot: nil when null, NOVAL when
|
|
5513
|
+
// absent. The directive's own Dparent was read with GetProp.
|
|
5514
|
+
func _slotval(inj *Injection) any {
|
|
5515
|
+
prior := inj.Prior
|
|
5516
|
+
if nil == prior {
|
|
5517
|
+
return inj.Dparent
|
|
5518
|
+
}
|
|
5519
|
+
return _lookup(prior.Dparent, prior.Key)
|
|
5520
|
+
}
|
|
5521
|
+
|
|
5522
|
+
// Replace a list directive's list with its slot value. setval deletes on
|
|
5523
|
+
// nil, so a null is set directly, and NOVAL deletes.
|
|
5524
|
+
func _setslot(inj *Injection, cval any) {
|
|
5525
|
+
if nil == cval {
|
|
5526
|
+
SetProp(GetElem(inj.Nodes.List, -2), GetElem(inj.Path.List, -2), nil)
|
|
5527
|
+
} else {
|
|
5528
|
+
inj.setval(denoval(cval), 2)
|
|
5529
|
+
}
|
|
5530
|
+
}
|
|
5531
|
+
|
|
5532
|
+
// Directive arguments for a message: stringified, with checker names
|
|
5533
|
+
// lower-cased.
|
|
5534
|
+
func _valdesc(tvals []any) string {
|
|
5535
|
+
descs := make([]string, len(tvals))
|
|
5536
|
+
for i, tval := range tvals {
|
|
5537
|
+
descs[i] = Stringify(tval)
|
|
5538
|
+
}
|
|
5539
|
+
return reTransformName.ReplaceAllStringFunc(strings.Join(descs, ", "),
|
|
5540
|
+
func(m string) string { return strings.ToLower(m[2 : len(m)-1]) })
|
|
5541
|
+
}
|
|
5542
|
+
|
|
5543
|
+
// JSON equality: numbers by value, lists in order, maps by key in any order.
|
|
5544
|
+
func _deepequal(a any, b any) bool {
|
|
5545
|
+
atype := Typify(a)
|
|
5546
|
+
btype := Typify(b)
|
|
5547
|
+
|
|
5548
|
+
if 0 < (T_number&atype) && 0 < (T_number&btype) {
|
|
5549
|
+
af, aerr := _toFloat64(a)
|
|
5550
|
+
bf, berr := _toFloat64(b)
|
|
5551
|
+
return nil == aerr && nil == berr && af == bf
|
|
5552
|
+
}
|
|
5553
|
+
|
|
5554
|
+
if atype != btype {
|
|
5555
|
+
return false
|
|
5556
|
+
}
|
|
5557
|
+
|
|
5558
|
+
if IsNode(a) || IsNode(b) {
|
|
5559
|
+
if !IsNode(a) || !IsNode(b) {
|
|
5560
|
+
return false
|
|
5561
|
+
}
|
|
5562
|
+
|
|
5563
|
+
akeys := KeysOf(a)
|
|
5564
|
+
bkeys := KeysOf(b)
|
|
5565
|
+
if len(akeys) != len(bkeys) {
|
|
5566
|
+
return false
|
|
5567
|
+
}
|
|
5568
|
+
|
|
5569
|
+
for kI, k := range akeys {
|
|
5570
|
+
if k != bkeys[kI] || !_deepequal(_lookup(a, k), _lookup(b, k)) {
|
|
5571
|
+
return false
|
|
5572
|
+
}
|
|
5573
|
+
}
|
|
5574
|
+
|
|
5575
|
+
return true
|
|
5576
|
+
}
|
|
5577
|
+
|
|
5578
|
+
// A function or instance equals only itself; a value Go cannot compare
|
|
5579
|
+
// equals nothing.
|
|
5580
|
+
switch reflect.ValueOf(a).Kind() {
|
|
5581
|
+
case reflect.Func:
|
|
5582
|
+
return reflect.ValueOf(a).Pointer() == reflect.ValueOf(b).Pointer()
|
|
5583
|
+
case reflect.Invalid, reflect.Bool, reflect.String, reflect.Pointer:
|
|
5584
|
+
return a == b
|
|
5585
|
+
}
|
|
5586
|
+
|
|
5587
|
+
return false
|
|
5588
|
+
}
|
|
5589
|
+
|
|
5590
|
+
// Every member val has is in out, unchanged. A member only out has is a
|
|
5591
|
+
// default the spec supplied, and is ignored.
|
|
5592
|
+
func _keeps(val any, out any) bool {
|
|
5593
|
+
if NOVAL == val {
|
|
5594
|
+
return true
|
|
5595
|
+
}
|
|
5596
|
+
|
|
5597
|
+
if !IsNode(val) || IsList(val) != IsList(out) || !IsNode(out) {
|
|
5598
|
+
return _deepequal(val, out)
|
|
5599
|
+
}
|
|
5600
|
+
|
|
5601
|
+
for _, k := range KeysOf(val) {
|
|
5602
|
+
if !_keeps(_lookup(val, k), _lookup(out, k)) {
|
|
5603
|
+
return false
|
|
5604
|
+
}
|
|
5605
|
+
}
|
|
5606
|
+
|
|
5607
|
+
return true
|
|
5608
|
+
}
|
|
5609
|
+
|
|
5610
|
+
// A spec admits a value when validating the value against it finds no error
|
|
5611
|
+
// and gives back the value as it is.
|
|
5612
|
+
func _admits(val any, spec any, inj *Injection, store any) bool {
|
|
5613
|
+
terrs := ListRefCreate[any]()
|
|
5614
|
+
|
|
5615
|
+
vstore, _ := Merge([]any{map[string]any{}, store}, 1).(map[string]any)
|
|
5616
|
+
if nil == vstore {
|
|
5617
|
+
vstore = map[string]any{}
|
|
5618
|
+
}
|
|
5619
|
+
vstore[S_DTOP] = val
|
|
5620
|
+
|
|
5621
|
+
// Validate reads its meta from extra.
|
|
5622
|
+
if nil != inj.Meta {
|
|
5623
|
+
vstore["meta"] = inj.Meta
|
|
5624
|
+
}
|
|
5625
|
+
|
|
5626
|
+
out, _ := Validate(val, spec, &Injection{Extra: vstore, Errs: terrs})
|
|
5627
|
+
|
|
5628
|
+
return 0 == len(terrs.List) && _keeps(val, out)
|
|
5629
|
+
}
|
|
5630
|
+
|
|
5631
|
+
// The bounds of a $NOF count, and the words for it, which are "" when the
|
|
5632
|
+
// count is invalid. Without a max, the bound is the number of specs.
|
|
5633
|
+
func _nofcount(count any, numtvals int) (int, int, string) {
|
|
5634
|
+
isnat := func(n any) bool {
|
|
5635
|
+
f, err := _toFloat64(n)
|
|
5636
|
+
return 0 < (T_integer&Typify(n)) && nil == err && 0 <= f
|
|
5637
|
+
}
|
|
5638
|
+
nat := func(n any) int {
|
|
5639
|
+
f, _ := _toFloat64(n)
|
|
5640
|
+
return int(f)
|
|
5641
|
+
}
|
|
5642
|
+
|
|
5643
|
+
if isnat(count) {
|
|
5644
|
+
n := nat(count)
|
|
5645
|
+
if 0 == n {
|
|
5646
|
+
return n, n, "none"
|
|
5647
|
+
}
|
|
5648
|
+
return n, n, "exactly " + strconv.Itoa(n)
|
|
5649
|
+
}
|
|
5650
|
+
|
|
5651
|
+
cmin := _lookup(count, "min")
|
|
5652
|
+
cmax := _lookup(count, "max")
|
|
5653
|
+
|
|
5654
|
+
numkeys := 0
|
|
5655
|
+
if NOVAL != cmin {
|
|
5656
|
+
numkeys++
|
|
5657
|
+
}
|
|
5658
|
+
if NOVAL != cmax {
|
|
5659
|
+
numkeys++
|
|
5660
|
+
}
|
|
5661
|
+
|
|
5662
|
+
valid := IsMap(count) &&
|
|
5663
|
+
0 < Size(count) &&
|
|
5664
|
+
Size(count) == numkeys &&
|
|
5665
|
+
(NOVAL == cmin || isnat(cmin)) &&
|
|
5666
|
+
(NOVAL == cmax || isnat(cmax)) &&
|
|
5667
|
+
(NOVAL == cmin || NOVAL == cmax || nat(cmin) <= nat(cmax))
|
|
5668
|
+
|
|
5669
|
+
if !valid {
|
|
5670
|
+
return 0, 0, ""
|
|
5671
|
+
}
|
|
5672
|
+
|
|
5673
|
+
lo := 0
|
|
5674
|
+
if NOVAL != cmin {
|
|
5675
|
+
lo = nat(cmin)
|
|
5676
|
+
}
|
|
5677
|
+
|
|
5678
|
+
hi := numtvals
|
|
5679
|
+
if NOVAL != cmax {
|
|
5680
|
+
hi = nat(cmax)
|
|
5681
|
+
}
|
|
5682
|
+
|
|
5683
|
+
desc := ""
|
|
5684
|
+
if NOVAL == cmax {
|
|
5685
|
+
desc = "at least " + strconv.Itoa(lo)
|
|
5686
|
+
} else if 0 == hi {
|
|
5687
|
+
desc = "none"
|
|
5688
|
+
} else if NOVAL == cmin {
|
|
5689
|
+
desc = "at most " + strconv.Itoa(hi)
|
|
5690
|
+
} else if lo == hi {
|
|
5691
|
+
desc = "exactly " + strconv.Itoa(lo)
|
|
5692
|
+
} else {
|
|
5693
|
+
desc = strconv.Itoa(lo) + " to " + strconv.Itoa(hi)
|
|
5694
|
+
}
|
|
5695
|
+
|
|
5696
|
+
return lo, hi, desc
|
|
5697
|
+
}
|
|
5698
|
+
|
|
4588
5699
|
// StrKey converts different types of keys to string representation.
|
|
4589
5700
|
// String keys are returned as is.
|
|
4590
5701
|
// Number keys are converted to strings.
|
|
@@ -4621,20 +5732,6 @@ func StrKey(key any) string {
|
|
|
4621
5732
|
}
|
|
4622
5733
|
}
|
|
4623
5734
|
|
|
4624
|
-
func _resolveStrings(input []any) []string {
|
|
4625
|
-
var result []string
|
|
4626
|
-
|
|
4627
|
-
for _, v := range input {
|
|
4628
|
-
if str, ok := v.(string); ok {
|
|
4629
|
-
result = append(result, str)
|
|
4630
|
-
} else {
|
|
4631
|
-
result = append(result, StrKey(v))
|
|
4632
|
-
}
|
|
4633
|
-
}
|
|
4634
|
-
|
|
4635
|
-
return result
|
|
4636
|
-
}
|
|
4637
|
-
|
|
4638
5735
|
// Extract a bare []any from either a []any or a *ListRef[any].
|
|
4639
5736
|
// Recursively unwrap *ListRef[any] to []any for JSON marshaling.
|
|
4640
5737
|
func _unwrapListRefs(val any) any {
|
|
@@ -4739,23 +5836,6 @@ func _toFloat64(val any) (float64, error) {
|
|
|
4739
5836
|
}
|
|
4740
5837
|
}
|
|
4741
5838
|
|
|
4742
|
-
// _parseInt is a helper to convert a string to int safely.
|
|
4743
|
-
func _parseInt(s string) (int, error) {
|
|
4744
|
-
var x int
|
|
4745
|
-
sign := 1
|
|
4746
|
-
for i, c := range s {
|
|
4747
|
-
if c == '-' && i == 0 {
|
|
4748
|
-
sign = -1
|
|
4749
|
-
continue
|
|
4750
|
-
}
|
|
4751
|
-
if c < '0' || c > '9' {
|
|
4752
|
-
return 0, &ParseIntError{s}
|
|
4753
|
-
}
|
|
4754
|
-
x = 10*x + int(c-'0')
|
|
4755
|
-
}
|
|
4756
|
-
return x * sign, nil
|
|
4757
|
-
}
|
|
4758
|
-
|
|
4759
5839
|
type ParseIntError struct{ input string }
|
|
4760
5840
|
|
|
4761
5841
|
func (e *ParseIntError) Error() string {
|