@voxgig/sdkgen 4.47.0 → 4.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/voxgig-sdkgen +1 -1
- package/dist/action/check.js +4 -1
- package/dist/action/check.js.map +1 -1
- package/dist/action/doctor.js +7 -2
- package/dist/action/doctor.js.map +1 -1
- package/dist/action/target.js +55 -29
- package/dist/action/target.js.map +1 -1
- package/dist/cmp/AgentGuide.js +26 -17
- package/dist/cmp/AgentGuide.js.map +1 -1
- package/dist/cmp/AgentGuideContent.js +4 -8
- package/dist/cmp/AgentGuideContent.js.map +1 -1
- package/dist/cmp/AgentGuideTop.js +14 -13
- package/dist/cmp/AgentGuideTop.js.map +1 -1
- package/dist/cmp/Deploy.js +18 -8
- package/dist/cmp/Deploy.js.map +1 -1
- package/dist/cmp/FeatureDocs.d.ts +1 -0
- package/dist/cmp/FeatureDocs.js +2 -1
- package/dist/cmp/FeatureDocs.js.map +1 -1
- package/dist/cmp/License.d.ts +3 -1
- package/dist/cmp/License.js +25 -7
- package/dist/cmp/License.js.map +1 -1
- package/dist/cmp/Readme.js +0 -2
- package/dist/cmp/Readme.js.map +1 -1
- package/dist/cmp/ReadmeErrors.js +77 -77
- package/dist/cmp/ReadmeErrors.js.map +1 -1
- package/dist/cmp/ReadmeExplanation.js +5 -10
- package/dist/cmp/ReadmeExplanation.js.map +1 -1
- package/dist/cmp/ReadmeFeatures.js +13 -9
- package/dist/cmp/ReadmeFeatures.js.map +1 -1
- package/dist/cmp/ReadmeModel.js +13 -9
- package/dist/cmp/ReadmeModel.js.map +1 -1
- package/dist/cmp/ReadmeOptions.js +3 -11
- package/dist/cmp/ReadmeOptions.js.map +1 -1
- package/dist/cmp/ReadmeQuick.js +10 -2
- package/dist/cmp/ReadmeQuick.js.map +1 -1
- package/dist/cmp/ReadmeRefFeatures.js +34 -30
- package/dist/cmp/ReadmeRefFeatures.js.map +1 -1
- package/dist/cmp/ReadmeTop.js +82 -47
- package/dist/cmp/ReadmeTop.js.map +1 -1
- package/dist/helpers/canonSpec.d.ts +5 -1
- package/dist/helpers/canonSpec.js +44 -10
- package/dist/helpers/canonSpec.js.map +1 -1
- package/dist/helpers/clientOptions.d.ts +9 -0
- package/dist/helpers/clientOptions.js +44 -0
- package/dist/helpers/clientOptions.js.map +1 -0
- package/dist/helpers/consumer.d.ts +10 -0
- package/dist/helpers/consumer.js +42 -0
- package/dist/helpers/consumer.js.map +1 -0
- package/dist/helpers/doctext.js +9 -1
- package/dist/helpers/doctext.js.map +1 -1
- package/dist/helpers/facts.js +25 -1
- package/dist/helpers/facts.js.map +1 -1
- package/dist/helpers/flowGuard.js +1 -1
- package/dist/helpers/flowGuard.js.map +1 -1
- package/dist/helpers/mcpTools.d.ts +1 -1
- package/dist/helpers/mcpTools.js +2 -3
- package/dist/helpers/mcpTools.js.map +1 -1
- package/dist/helpers/naming.js +3 -2
- package/dist/helpers/naming.js.map +1 -1
- package/dist/helpers/opShape.d.ts +8 -2
- package/dist/helpers/opShape.js +32 -2
- package/dist/helpers/opShape.js.map +1 -1
- package/dist/helpers/optional.d.ts +0 -1
- package/dist/helpers/optional.js +0 -1
- package/dist/helpers/optional.js.map +1 -1
- package/dist/helpers/optspec.js +16 -4
- package/dist/helpers/optspec.js.map +1 -1
- package/dist/helpers/packageMeta.d.ts +2 -1
- package/dist/helpers/packageMeta.js +62 -1
- package/dist/helpers/packageMeta.js.map +1 -1
- package/dist/helpers/readerdir.d.ts +4 -0
- package/dist/helpers/readerdir.js +26 -0
- package/dist/helpers/readerdir.js.map +1 -0
- package/dist/helpers/sourcestring.d.ts +2 -1
- package/dist/helpers/sourcestring.js +6 -0
- package/dist/helpers/sourcestring.js.map +1 -1
- package/dist/helpers/stdrep.js +3 -3
- package/dist/helpers/stdrep.js.map +1 -1
- package/dist/helpers/surface.d.ts +6 -1
- package/dist/helpers/surface.js +17 -5
- package/dist/helpers/surface.js.map +1 -1
- package/dist/helpers/testPolicy.js +3 -3
- package/dist/helpers/testPolicy.js.map +1 -1
- package/dist/helpers/title.js +1 -1
- package/dist/helpers/title.js.map +1 -1
- package/dist/sdkgen.d.ts +13 -7
- package/dist/sdkgen.js +22 -6
- package/dist/sdkgen.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utility.js +12 -4
- package/dist/utility.js.map +1 -1
- package/model/fact.aontu +1 -1
- package/model/sdkgen.aontu +2 -0
- package/package.json +1 -1
- package/project/.sdk/model/feature/netsim.aontu +1 -1
- package/project/.sdk/model/feature/secrets.aontu +1 -0
- package/project/.sdk/model/feature/test.aontu +1 -1
- package/project/.sdk/model/feature/validate.aontu +1 -1
- package/project/.sdk/model/target/c.aontu +1 -0
- package/project/.sdk/model/target/clojure.aontu +1 -0
- package/project/.sdk/model/target/cpp.aontu +1 -0
- package/project/.sdk/model/target/csharp.aontu +1 -0
- package/project/.sdk/model/target/elixir.aontu +1 -0
- package/project/.sdk/model/target/go-cli.aontu +5 -5
- package/project/.sdk/model/target/go-mcp.aontu +6 -8
- package/project/.sdk/model/target/go.aontu +1 -1
- package/project/.sdk/model/target/java.aontu +1 -0
- package/project/.sdk/model/target/kotlin.aontu +1 -0
- package/project/.sdk/model/target/ocaml.aontu +1 -0
- package/project/.sdk/model/target/perl.aontu +1 -0
- package/project/.sdk/model/target/py-data.aontu +2 -0
- package/project/.sdk/model/target/rust.aontu +1 -0
- package/project/.sdk/model/target/scala.aontu +1 -0
- package/project/.sdk/model/target/zig.aontu +1 -0
- package/project/.sdk/src/cmp/c/Config_c.ts +8 -33
- package/project/.sdk/src/cmp/c/EntityTypes_c.ts +6 -5
- package/project/.sdk/src/cmp/c/Main_c.ts +4 -0
- package/project/.sdk/src/cmp/c/PrepareAuth_c.ts +9 -19
- package/project/.sdk/src/cmp/c/ReadmeEntity_c.ts +8 -10
- package/project/.sdk/src/cmp/c/ReadmeExamplesTest_c.ts +12 -4
- package/project/.sdk/src/cmp/c/ReadmeExplanation_c.ts +4 -2
- package/project/.sdk/src/cmp/c/ReadmeHowto_c.ts +18 -22
- package/project/.sdk/src/cmp/c/ReadmeInstall_c.ts +19 -15
- package/project/.sdk/src/cmp/c/ReadmeIntro_c.ts +5 -7
- package/project/.sdk/src/cmp/c/ReadmeModel_c.ts +32 -33
- package/project/.sdk/src/cmp/c/ReadmeQuick_c.ts +28 -11
- package/project/.sdk/src/cmp/c/ReadmeRef_c.ts +35 -26
- package/project/.sdk/src/cmp/c/ReadmeTopHowto_c.ts +5 -4
- package/project/.sdk/src/cmp/c/ReadmeTopQuick_c.ts +19 -6
- package/project/.sdk/src/cmp/c/TestClean_c.ts +298 -22
- package/project/.sdk/src/cmp/c/TestDirect_c.ts +1 -1
- package/project/.sdk/src/cmp/c/fragment/Entity.fragment.c +9 -9
- package/project/.sdk/src/cmp/c/fragment/EntityCreateOp.fragment.c +0 -1
- package/project/.sdk/src/cmp/c/fragment/EntityLoadOp.fragment.c +0 -1
- package/project/.sdk/src/cmp/c/fragment/EntityPatchOp.fragment.c +0 -1
- package/project/.sdk/src/cmp/c/fragment/EntityRemoveOp.fragment.c +0 -1
- package/project/.sdk/src/cmp/c/fragment/EntityUpdateOp.fragment.c +0 -1
- package/project/.sdk/src/cmp/c/fragment/Main.fragment.c +19 -7
- package/project/.sdk/src/cmp/clojure/Config_clojure.ts +4 -25
- package/project/.sdk/src/cmp/clojure/Main_clojure.ts +4 -0
- package/project/.sdk/src/cmp/clojure/PrepareAuth_clojure.ts +10 -21
- package/project/.sdk/src/cmp/clojure/ReadmeEntity_clojure.ts +8 -10
- package/project/.sdk/src/cmp/clojure/ReadmeExamplesTest_clojure.ts +13 -5
- package/project/.sdk/src/cmp/clojure/ReadmeExplanation_clojure.ts +13 -3
- package/project/.sdk/src/cmp/clojure/ReadmeHowto_clojure.ts +9 -8
- package/project/.sdk/src/cmp/clojure/ReadmeInstall_clojure.ts +13 -11
- package/project/.sdk/src/cmp/clojure/ReadmeIntro_clojure.ts +5 -7
- package/project/.sdk/src/cmp/clojure/ReadmeModel_clojure.ts +24 -33
- package/project/.sdk/src/cmp/clojure/ReadmeQuick_clojure.ts +20 -9
- package/project/.sdk/src/cmp/clojure/ReadmeRef_clojure.ts +23 -23
- package/project/.sdk/src/cmp/clojure/ReadmeTopHowto_clojure.ts +5 -4
- package/project/.sdk/src/cmp/clojure/ReadmeTopQuick_clojure.ts +11 -4
- package/project/.sdk/src/cmp/clojure/Schema_clojure.ts +2 -1
- package/project/.sdk/src/cmp/clojure/TestClean_clojure.ts +177 -12
- package/project/.sdk/src/cmp/clojure/fragment/Entity.fragment.clj +11 -12
- package/project/.sdk/src/cmp/clojure/fragment/EntityLoadOp.fragment.clj +1 -1
- package/project/.sdk/src/cmp/clojure/fragment/EntityRemoveOp.fragment.clj +2 -2
- package/project/.sdk/src/cmp/cpp/Config_cpp.ts +2 -17
- package/project/.sdk/src/cmp/cpp/EntityTypes_cpp.ts +4 -9
- package/project/.sdk/src/cmp/cpp/Main_cpp.ts +4 -0
- package/project/.sdk/src/cmp/cpp/PrepareAuth_cpp.ts +10 -21
- package/project/.sdk/src/cmp/cpp/ReadmeEntity_cpp.ts +10 -12
- package/project/.sdk/src/cmp/cpp/ReadmeExamplesTest_cpp.ts +12 -4
- package/project/.sdk/src/cmp/cpp/ReadmeExplanation_cpp.ts +5 -2
- package/project/.sdk/src/cmp/cpp/ReadmeHowto_cpp.ts +28 -11
- package/project/.sdk/src/cmp/cpp/ReadmeInstall_cpp.ts +16 -11
- package/project/.sdk/src/cmp/cpp/ReadmeIntro_cpp.ts +5 -7
- package/project/.sdk/src/cmp/cpp/ReadmeModel_cpp.ts +26 -35
- package/project/.sdk/src/cmp/cpp/ReadmeQuick_cpp.ts +22 -12
- package/project/.sdk/src/cmp/cpp/ReadmeRef_cpp.ts +30 -29
- package/project/.sdk/src/cmp/cpp/ReadmeTopHowto_cpp.ts +5 -4
- package/project/.sdk/src/cmp/cpp/ReadmeTopQuick_cpp.ts +13 -7
- package/project/.sdk/src/cmp/cpp/TestClean_cpp.ts +285 -14
- package/project/.sdk/src/cmp/cpp/TestEntity_cpp.ts +44 -24
- package/project/.sdk/src/cmp/cpp/fragment/EntityCreateOp.fragment.cpp +0 -1
- package/project/.sdk/src/cmp/cpp/fragment/EntityLoadOp.fragment.cpp +0 -1
- package/project/.sdk/src/cmp/cpp/fragment/EntityPatchOp.fragment.cpp +0 -1
- package/project/.sdk/src/cmp/cpp/fragment/EntityRemoveOp.fragment.cpp +0 -1
- package/project/.sdk/src/cmp/cpp/fragment/EntityUpdateOp.fragment.cpp +0 -1
- package/project/.sdk/src/cmp/csharp/Config_csharp.ts +5 -27
- package/project/.sdk/src/cmp/csharp/EntityTypes_csharp.ts +4 -5
- package/project/.sdk/src/cmp/csharp/Main_csharp.ts +5 -1
- package/project/.sdk/src/cmp/csharp/Package_csharp.ts +2 -1
- package/project/.sdk/src/cmp/csharp/PrepareAuth_csharp.ts +9 -20
- package/project/.sdk/src/cmp/csharp/ReadmeEntity_csharp.ts +10 -12
- package/project/.sdk/src/cmp/csharp/ReadmeExamplesTest_csharp.ts +18 -10
- package/project/.sdk/src/cmp/csharp/ReadmeExplanation_csharp.ts +1 -1
- package/project/.sdk/src/cmp/csharp/ReadmeHowto_csharp.ts +24 -12
- package/project/.sdk/src/cmp/csharp/ReadmeInstall_csharp.ts +9 -6
- package/project/.sdk/src/cmp/csharp/ReadmeIntro_csharp.ts +4 -6
- package/project/.sdk/src/cmp/csharp/ReadmeModel_csharp.ts +25 -35
- package/project/.sdk/src/cmp/csharp/ReadmeQuick_csharp.ts +21 -10
- package/project/.sdk/src/cmp/csharp/ReadmeRef_csharp.ts +25 -25
- package/project/.sdk/src/cmp/csharp/ReadmeTopHowto_csharp.ts +5 -4
- package/project/.sdk/src/cmp/csharp/ReadmeTopQuick_csharp.ts +11 -4
- package/project/.sdk/src/cmp/csharp/TestClean_csharp.ts +420 -27
- package/project/.sdk/src/cmp/csharp/TestDirect_csharp.ts +13 -13
- package/project/.sdk/src/cmp/csharp/TestEntity_csharp.ts +34 -35
- package/project/.sdk/src/cmp/csharp/fragment/EntityBase.fragment.cs +8 -7
- package/project/.sdk/src/cmp/csharp/fragment/Main.fragment.cs +4 -4
- package/project/.sdk/src/cmp/elixir/Config_elixir.ts +5 -26
- package/project/.sdk/src/cmp/elixir/EntityTypes_elixir.ts +8 -6
- package/project/.sdk/src/cmp/elixir/Main_elixir.ts +8 -2
- package/project/.sdk/src/cmp/elixir/Package_elixir.ts +3 -3
- package/project/.sdk/src/cmp/elixir/PrepareAuth_elixir.ts +10 -18
- package/project/.sdk/src/cmp/elixir/ReadmeEntity_elixir.ts +10 -12
- package/project/.sdk/src/cmp/elixir/ReadmeExamplesTest_elixir.ts +12 -5
- package/project/.sdk/src/cmp/elixir/ReadmeExplanation_elixir.ts +4 -2
- package/project/.sdk/src/cmp/elixir/ReadmeHowto_elixir.ts +13 -21
- package/project/.sdk/src/cmp/elixir/ReadmeInstall_elixir.ts +12 -8
- package/project/.sdk/src/cmp/elixir/ReadmeIntro_elixir.ts +5 -7
- package/project/.sdk/src/cmp/elixir/ReadmeModel_elixir.ts +24 -35
- package/project/.sdk/src/cmp/elixir/ReadmeQuick_elixir.ts +21 -10
- package/project/.sdk/src/cmp/elixir/ReadmeRef_elixir.ts +24 -24
- package/project/.sdk/src/cmp/elixir/ReadmeTopHowto_elixir.ts +5 -4
- package/project/.sdk/src/cmp/elixir/ReadmeTopQuick_elixir.ts +11 -4
- package/project/.sdk/src/cmp/elixir/Schema_elixir.ts +2 -1
- package/project/.sdk/src/cmp/elixir/TestClean_elixir.ts +231 -12
- package/project/.sdk/src/cmp/elixir/TestEntity_elixir.ts +3 -3
- package/project/.sdk/src/cmp/elixir/app_elixir.ts +14 -0
- package/project/.sdk/src/cmp/elixir/fragment/Main.fragment.ex +4 -4
- package/project/.sdk/src/cmp/go/Config_go.ts +16 -31
- package/project/.sdk/src/cmp/go/EntityTypes_go.ts +13 -7
- package/project/.sdk/src/cmp/go/Main_go.ts +10 -12
- package/project/.sdk/src/cmp/go/PrepareAuth_go.ts +12 -21
- package/project/.sdk/src/cmp/go/ReadmeEntity_go.ts +5 -5
- package/project/.sdk/src/cmp/go/ReadmeExamplesTest_go.ts +20 -9
- package/project/.sdk/src/cmp/go/ReadmeExplanation_go.ts +4 -2
- package/project/.sdk/src/cmp/go/ReadmeHowto_go.ts +28 -13
- package/project/.sdk/src/cmp/go/ReadmeInstall_go.ts +11 -6
- package/project/.sdk/src/cmp/go/ReadmeIntro_go.ts +5 -4
- package/project/.sdk/src/cmp/go/ReadmeModel_go.ts +32 -34
- package/project/.sdk/src/cmp/go/ReadmeQuick_go.ts +15 -11
- package/project/.sdk/src/cmp/go/ReadmeRef_go.ts +32 -22
- package/project/.sdk/src/cmp/go/ReadmeTopHowto_go.ts +5 -4
- package/project/.sdk/src/cmp/go/ReadmeTopQuick_go.ts +7 -4
- package/project/.sdk/src/cmp/go/Schema_go.ts +2 -1
- package/project/.sdk/src/cmp/go/TestClean_go.ts +484 -45
- package/project/.sdk/src/cmp/go/TestDirect_go.ts +15 -13
- package/project/.sdk/src/cmp/go/TestEntity_go.ts +35 -35
- package/project/.sdk/src/cmp/go/fragment/Entity.fragment.go +1 -1
- package/project/.sdk/src/cmp/go/fragment/Main.fragment.go +14 -6
- package/project/.sdk/src/cmp/go-cli/Main_go-cli.ts +238 -96
- package/project/.sdk/src/cmp/go-cli/fragment/main.fragment.go +13 -12
- package/project/.sdk/src/cmp/go-cli/fragment/words.fragment.go +3 -8
- package/project/.sdk/src/cmp/go-mcp/Main_go-mcp.ts +183 -66
- package/project/.sdk/src/cmp/go-mcp/fragment/main.fragment.go +7 -7
- package/project/.sdk/src/cmp/java/Config_java.ts +8 -32
- package/project/.sdk/src/cmp/java/EntityTypes_java.ts +4 -5
- package/project/.sdk/src/cmp/java/Main_java.ts +5 -1
- package/project/.sdk/src/cmp/java/Package_java.ts +4 -7
- package/project/.sdk/src/cmp/java/PrepareAuth_java.ts +13 -11
- package/project/.sdk/src/cmp/java/ReadmeEntity_java.ts +10 -12
- package/project/.sdk/src/cmp/java/ReadmeExamplesTest_java.ts +17 -9
- package/project/.sdk/src/cmp/java/ReadmeExplanation_java.ts +1 -1
- package/project/.sdk/src/cmp/java/ReadmeHowto_java.ts +24 -12
- package/project/.sdk/src/cmp/java/ReadmeInstall_java.ts +8 -10
- package/project/.sdk/src/cmp/java/ReadmeIntro_java.ts +5 -7
- package/project/.sdk/src/cmp/java/ReadmeModel_java.ts +24 -35
- package/project/.sdk/src/cmp/java/ReadmeQuick_java.ts +11 -9
- package/project/.sdk/src/cmp/java/ReadmeRef_java.ts +25 -25
- package/project/.sdk/src/cmp/java/ReadmeTopHowto_java.ts +5 -4
- package/project/.sdk/src/cmp/java/ReadmeTopQuick_java.ts +3 -3
- package/project/.sdk/src/cmp/java/Schema_java.ts +2 -1
- package/project/.sdk/src/cmp/java/TestClean_java.ts +386 -19
- package/project/.sdk/src/cmp/java/TestDirect_java.ts +12 -11
- package/project/.sdk/src/cmp/java/TestEntity_java.ts +27 -27
- package/project/.sdk/src/cmp/java/fragment/EntityBase.fragment.java +8 -7
- package/project/.sdk/src/cmp/java/utility_java.ts +7 -23
- package/project/.sdk/src/cmp/js/Config_js.ts +13 -35
- package/project/.sdk/src/cmp/js/EntityBase_js.ts +1 -1
- package/project/.sdk/src/cmp/js/EntityTypes_js.ts +4 -5
- package/project/.sdk/src/cmp/js/Entity_js.ts +1 -1
- package/project/.sdk/src/cmp/js/Main_js.ts +6 -9
- package/project/.sdk/src/cmp/js/Package_js.ts +3 -2
- package/project/.sdk/src/cmp/js/PrepareAuth_js.ts +9 -17
- package/project/.sdk/src/cmp/js/ReadmeEntity_js.ts +12 -14
- package/project/.sdk/src/cmp/js/ReadmeExplanation_js.ts +1 -1
- package/project/.sdk/src/cmp/js/ReadmeHowto_js.ts +41 -16
- package/project/.sdk/src/cmp/js/ReadmeInstall_js.ts +9 -6
- package/project/.sdk/src/cmp/js/ReadmeIntro_js.ts +6 -3
- package/project/.sdk/src/cmp/js/ReadmeModel_js.ts +23 -37
- package/project/.sdk/src/cmp/js/ReadmeQuick_js.ts +14 -4
- package/project/.sdk/src/cmp/js/ReadmeRef_js.ts +31 -35
- package/project/.sdk/src/cmp/js/ReadmeTopHowto_js.ts +5 -4
- package/project/.sdk/src/cmp/js/ReadmeTopQuick_js.ts +12 -4
- package/project/.sdk/src/cmp/js/Schema_js.ts +2 -1
- package/project/.sdk/src/cmp/js/TestClean_js.ts +229 -13
- package/project/.sdk/src/cmp/js/TestDirect_js.ts +16 -14
- package/project/.sdk/src/cmp/js/TestEntity_js.ts +30 -28
- package/project/.sdk/src/cmp/js/TestLive_js.ts +7 -6
- package/project/.sdk/src/cmp/js/fragment/Direct.test.fragment.js +1 -1
- package/project/.sdk/src/cmp/js/fragment/Entity.test.fragment.js +1 -1
- package/project/.sdk/src/cmp/js/fragment/EntityBase.fragment.js +5 -4
- package/project/.sdk/src/cmp/js/fragment/EntityCreateOp.fragment.js +1 -2
- package/project/.sdk/src/cmp/js/fragment/EntityLoadOp.fragment.js +1 -2
- package/project/.sdk/src/cmp/js/fragment/EntityPatchOp.fragment.js +1 -2
- package/project/.sdk/src/cmp/js/fragment/EntityRemoveOp.fragment.js +1 -2
- package/project/.sdk/src/cmp/js/fragment/EntityUpdateOp.fragment.js +1 -2
- package/project/.sdk/src/cmp/js/fragment/Main.fragment.js +4 -4
- package/project/.sdk/src/cmp/kotlin/Config_kotlin.ts +3 -25
- package/project/.sdk/src/cmp/kotlin/EntityTypes_kotlin.ts +4 -5
- package/project/.sdk/src/cmp/kotlin/Main_kotlin.ts +5 -1
- package/project/.sdk/src/cmp/kotlin/Package_kotlin.ts +5 -5
- package/project/.sdk/src/cmp/kotlin/PrepareAuth_kotlin.ts +13 -12
- package/project/.sdk/src/cmp/kotlin/ReadmeEntity_kotlin.ts +10 -12
- package/project/.sdk/src/cmp/kotlin/ReadmeExamplesTest_kotlin.ts +17 -9
- package/project/.sdk/src/cmp/kotlin/ReadmeExplanation_kotlin.ts +1 -1
- package/project/.sdk/src/cmp/kotlin/ReadmeHowto_kotlin.ts +24 -12
- package/project/.sdk/src/cmp/kotlin/ReadmeInstall_kotlin.ts +8 -10
- package/project/.sdk/src/cmp/kotlin/ReadmeIntro_kotlin.ts +5 -7
- package/project/.sdk/src/cmp/kotlin/ReadmeModel_kotlin.ts +24 -35
- package/project/.sdk/src/cmp/kotlin/ReadmeQuick_kotlin.ts +22 -23
- package/project/.sdk/src/cmp/kotlin/ReadmeRef_kotlin.ts +25 -25
- package/project/.sdk/src/cmp/kotlin/ReadmeTopHowto_kotlin.ts +5 -4
- package/project/.sdk/src/cmp/kotlin/ReadmeTopQuick_kotlin.ts +12 -10
- package/project/.sdk/src/cmp/kotlin/Schema_kotlin.ts +2 -1
- package/project/.sdk/src/cmp/kotlin/TestClean_kotlin.ts +306 -18
- package/project/.sdk/src/cmp/kotlin/TestDirect_kotlin.ts +19 -8
- package/project/.sdk/src/cmp/kotlin/TestEntity_kotlin.ts +34 -24
- package/project/.sdk/src/cmp/kotlin/fragment/EntityBase.fragment.kt +8 -7
- package/project/.sdk/src/cmp/kotlin/utility_kotlin.ts +7 -23
- package/project/.sdk/src/cmp/lua/Config_lua.ts +16 -26
- package/project/.sdk/src/cmp/lua/EntityTypes_lua.ts +4 -5
- package/project/.sdk/src/cmp/lua/Main_lua.ts +5 -4
- package/project/.sdk/src/cmp/lua/Package_lua.ts +12 -6
- package/project/.sdk/src/cmp/lua/PrepareAuth_lua.ts +13 -12
- package/project/.sdk/src/cmp/lua/ReadmeEntity_lua.ts +10 -12
- package/project/.sdk/src/cmp/lua/ReadmeExamplesTest_lua.ts +12 -5
- package/project/.sdk/src/cmp/lua/ReadmeExplanation_lua.ts +5 -3
- package/project/.sdk/src/cmp/lua/ReadmeHowto_lua.ts +25 -13
- package/project/.sdk/src/cmp/lua/ReadmeInstall_lua.ts +5 -4
- package/project/.sdk/src/cmp/lua/ReadmeIntro_lua.ts +6 -5
- package/project/.sdk/src/cmp/lua/ReadmeModel_lua.ts +32 -43
- package/project/.sdk/src/cmp/lua/ReadmeQuick_lua.ts +21 -10
- package/project/.sdk/src/cmp/lua/ReadmeRef_lua.ts +22 -26
- package/project/.sdk/src/cmp/lua/ReadmeTopHowto_lua.ts +5 -4
- package/project/.sdk/src/cmp/lua/ReadmeTopQuick_lua.ts +11 -4
- package/project/.sdk/src/cmp/lua/Schema_lua.ts +2 -1
- package/project/.sdk/src/cmp/lua/TestClean_lua.ts +297 -13
- package/project/.sdk/src/cmp/lua/TestDirect_lua.ts +13 -12
- package/project/.sdk/src/cmp/lua/TestEntity_lua.ts +30 -30
- package/project/.sdk/src/cmp/lua/fragment/Entity.fragment.lua +10 -10
- package/project/.sdk/src/cmp/lua/fragment/Main.fragment.lua +4 -4
- package/project/.sdk/src/cmp/ocaml/Config_ocaml.ts +4 -20
- package/project/.sdk/src/cmp/ocaml/Main_ocaml.ts +4 -0
- package/project/.sdk/src/cmp/ocaml/Package_ocaml.ts +8 -5
- package/project/.sdk/src/cmp/ocaml/PrepareAuth_ocaml.ts +11 -24
- package/project/.sdk/src/cmp/ocaml/ReadmeEntity_ocaml.ts +8 -10
- package/project/.sdk/src/cmp/ocaml/ReadmeExamplesTest_ocaml.ts +11 -4
- package/project/.sdk/src/cmp/ocaml/ReadmeExplanation_ocaml.ts +1 -1
- package/project/.sdk/src/cmp/ocaml/ReadmeHowto_ocaml.ts +12 -20
- package/project/.sdk/src/cmp/ocaml/ReadmeInstall_ocaml.ts +12 -11
- package/project/.sdk/src/cmp/ocaml/ReadmeIntro_ocaml.ts +8 -10
- package/project/.sdk/src/cmp/ocaml/ReadmeModel_ocaml.ts +26 -35
- package/project/.sdk/src/cmp/ocaml/ReadmeQuick_ocaml.ts +21 -10
- package/project/.sdk/src/cmp/ocaml/ReadmeRef_ocaml.ts +24 -23
- package/project/.sdk/src/cmp/ocaml/ReadmeTopHowto_ocaml.ts +5 -4
- package/project/.sdk/src/cmp/ocaml/ReadmeTopQuick_ocaml.ts +11 -4
- package/project/.sdk/src/cmp/ocaml/TestClean_ocaml.ts +179 -14
- package/project/.sdk/src/cmp/ocaml/TestEntity_ocaml.ts +1 -1
- package/project/.sdk/src/cmp/ocaml/utility_ocaml.ts +0 -9
- package/project/.sdk/src/cmp/perl/Config_perl.ts +2 -16
- package/project/.sdk/src/cmp/perl/Main_perl.ts +3 -1
- package/project/.sdk/src/cmp/perl/PrepareAuth_perl.ts +12 -10
- package/project/.sdk/src/cmp/perl/ReadmeEntity_perl.ts +8 -10
- package/project/.sdk/src/cmp/perl/ReadmeExamplesTest_perl.ts +16 -10
- package/project/.sdk/src/cmp/perl/ReadmeExplanation_perl.ts +1 -1
- package/project/.sdk/src/cmp/perl/ReadmeHowto_perl.ts +25 -13
- package/project/.sdk/src/cmp/perl/ReadmeInstall_perl.ts +10 -9
- package/project/.sdk/src/cmp/perl/ReadmeIntro_perl.ts +4 -6
- package/project/.sdk/src/cmp/perl/ReadmeModel_perl.ts +24 -35
- package/project/.sdk/src/cmp/perl/ReadmeQuick_perl.ts +21 -10
- package/project/.sdk/src/cmp/perl/ReadmeRef_perl.ts +23 -23
- package/project/.sdk/src/cmp/perl/ReadmeTopHowto_perl.ts +5 -4
- package/project/.sdk/src/cmp/perl/ReadmeTopQuick_perl.ts +11 -4
- package/project/.sdk/src/cmp/perl/TestClean_perl.ts +407 -26
- package/project/.sdk/src/cmp/perl/TestDirect_perl.ts +13 -12
- package/project/.sdk/src/cmp/perl/TestEntity_perl.ts +29 -30
- package/project/.sdk/src/cmp/perl/fragment/Entity.fragment.pm +20 -11
- package/project/.sdk/src/cmp/perl/fragment/EntityLoadOp.fragment.pm +5 -5
- package/project/.sdk/src/cmp/perl/fragment/EntityRemoveOp.fragment.pm +3 -3
- package/project/.sdk/src/cmp/perl/fragment/Main.fragment.pm +10 -5
- package/project/.sdk/src/cmp/php/Config_php.ts +18 -33
- package/project/.sdk/src/cmp/php/EntityTypes_php.ts +4 -5
- package/project/.sdk/src/cmp/php/Main_php.ts +5 -9
- package/project/.sdk/src/cmp/php/PrepareAuth_php.ts +7 -17
- package/project/.sdk/src/cmp/php/ReadmeEntity_php.ts +10 -12
- package/project/.sdk/src/cmp/php/ReadmeExamplesTest_php.ts +15 -9
- package/project/.sdk/src/cmp/php/ReadmeExplanation_php.ts +5 -3
- package/project/.sdk/src/cmp/php/ReadmeHowto_php.ts +24 -12
- package/project/.sdk/src/cmp/php/ReadmeInstall_php.ts +8 -5
- package/project/.sdk/src/cmp/php/ReadmeIntro_php.ts +1 -1
- package/project/.sdk/src/cmp/php/ReadmeModel_php.ts +31 -37
- package/project/.sdk/src/cmp/php/ReadmeQuick_php.ts +21 -10
- package/project/.sdk/src/cmp/php/ReadmeRef_php.ts +32 -29
- package/project/.sdk/src/cmp/php/ReadmeTopHowto_php.ts +5 -4
- package/project/.sdk/src/cmp/php/ReadmeTopQuick_php.ts +11 -4
- package/project/.sdk/src/cmp/php/Schema_php.ts +2 -1
- package/project/.sdk/src/cmp/php/TestClean_php.ts +416 -39
- package/project/.sdk/src/cmp/php/TestDirect_php.ts +13 -12
- package/project/.sdk/src/cmp/php/TestEntity_php.ts +56 -31
- package/project/.sdk/src/cmp/php/fragment/Entity.fragment.php +8 -8
- package/project/.sdk/src/cmp/php/fragment/EntityCreateOp.fragment.php +1 -1
- package/project/.sdk/src/cmp/php/fragment/EntityListOp.fragment.php +1 -1
- package/project/.sdk/src/cmp/php/fragment/EntityLoadOp.fragment.php +3 -3
- package/project/.sdk/src/cmp/php/fragment/EntityPatchOp.fragment.php +1 -1
- package/project/.sdk/src/cmp/php/fragment/EntityRemoveOp.fragment.php +3 -3
- package/project/.sdk/src/cmp/php/fragment/EntityUpdateOp.fragment.php +1 -1
- package/project/.sdk/src/cmp/php/fragment/Main.fragment.php +4 -4
- package/project/.sdk/src/cmp/py/Config_py.ts +18 -33
- package/project/.sdk/src/cmp/py/EntityTypes_py.ts +4 -5
- package/project/.sdk/src/cmp/py/Main_py.ts +3 -9
- package/project/.sdk/src/cmp/py/PrepareAuth_py.ts +8 -19
- package/project/.sdk/src/cmp/py/ReadmeEntity_py.ts +10 -12
- package/project/.sdk/src/cmp/py/ReadmeExamplesTest_py.ts +21 -14
- package/project/.sdk/src/cmp/py/ReadmeExplanation_py.ts +25 -15
- package/project/.sdk/src/cmp/py/ReadmeHowto_py.ts +25 -13
- package/project/.sdk/src/cmp/py/ReadmeInstall_py.ts +5 -4
- package/project/.sdk/src/cmp/py/ReadmeIntro_py.ts +4 -6
- package/project/.sdk/src/cmp/py/ReadmeModel_py.ts +25 -36
- package/project/.sdk/src/cmp/py/ReadmeQuick_py.ts +10 -8
- package/project/.sdk/src/cmp/py/ReadmeRef_py.ts +28 -28
- package/project/.sdk/src/cmp/py/ReadmeTopHowto_py.ts +5 -4
- package/project/.sdk/src/cmp/py/ReadmeTopQuick_py.ts +3 -3
- package/project/.sdk/src/cmp/py/Schema_py.ts +2 -1
- package/project/.sdk/src/cmp/py/TestClean_py.ts +342 -28
- package/project/.sdk/src/cmp/py/TestDirect_py.ts +12 -11
- package/project/.sdk/src/cmp/py/TestEntity_py.ts +31 -31
- package/project/.sdk/src/cmp/py/fragment/Entity.fragment.py +10 -9
- package/project/.sdk/src/cmp/py/fragment/Main.fragment.py +4 -6
- package/project/.sdk/src/cmp/py-data/Main_py-data.ts +280 -145
- package/project/.sdk/src/cmp/rb/Config_rb.ts +16 -26
- package/project/.sdk/src/cmp/rb/Main_rb.ts +3 -9
- package/project/.sdk/src/cmp/rb/PrepareAuth_rb.ts +9 -18
- package/project/.sdk/src/cmp/rb/ReadmeEntity_rb.ts +10 -12
- package/project/.sdk/src/cmp/rb/ReadmeExamplesTest_rb.ts +15 -10
- package/project/.sdk/src/cmp/rb/ReadmeExplanation_rb.ts +5 -3
- package/project/.sdk/src/cmp/rb/ReadmeHowto_rb.ts +24 -12
- package/project/.sdk/src/cmp/rb/ReadmeInstall_rb.ts +8 -5
- package/project/.sdk/src/cmp/rb/ReadmeIntro_rb.ts +1 -1
- package/project/.sdk/src/cmp/rb/ReadmeModel_rb.ts +28 -37
- package/project/.sdk/src/cmp/rb/ReadmeQuick_rb.ts +21 -10
- package/project/.sdk/src/cmp/rb/ReadmeRef_rb.ts +27 -27
- package/project/.sdk/src/cmp/rb/ReadmeTopHowto_rb.ts +5 -4
- package/project/.sdk/src/cmp/rb/ReadmeTopQuick_rb.ts +11 -4
- package/project/.sdk/src/cmp/rb/Schema_rb.ts +2 -1
- package/project/.sdk/src/cmp/rb/TestClean_rb.ts +270 -23
- package/project/.sdk/src/cmp/rb/TestDirect_rb.ts +13 -12
- package/project/.sdk/src/cmp/rb/TestEntity_rb.ts +30 -30
- package/project/.sdk/src/cmp/rb/fragment/Entity.fragment.rb +9 -9
- package/project/.sdk/src/cmp/rb/fragment/EntityLoadOp.fragment.rb +1 -1
- package/project/.sdk/src/cmp/rb/fragment/EntityRemoveOp.fragment.rb +1 -1
- package/project/.sdk/src/cmp/rb/fragment/Main.fragment.rb +4 -4
- package/project/.sdk/src/cmp/rust/Config_rust.ts +4 -34
- package/project/.sdk/src/cmp/rust/EntityTypes_rust.ts +3 -4
- package/project/.sdk/src/cmp/rust/Main_rust.ts +6 -2
- package/project/.sdk/src/cmp/rust/Package_rust.ts +6 -3
- package/project/.sdk/src/cmp/rust/PrepareAuth_rust.ts +13 -12
- package/project/.sdk/src/cmp/rust/ReadmeEntity_rust.ts +10 -12
- package/project/.sdk/src/cmp/rust/ReadmeExamplesTest_rust.ts +13 -6
- package/project/.sdk/src/cmp/rust/ReadmeExplanation_rust.ts +4 -2
- package/project/.sdk/src/cmp/rust/ReadmeHowto_rust.ts +26 -13
- package/project/.sdk/src/cmp/rust/ReadmeInstall_rust.ts +11 -10
- package/project/.sdk/src/cmp/rust/ReadmeIntro_rust.ts +5 -7
- package/project/.sdk/src/cmp/rust/ReadmeModel_rust.ts +35 -37
- package/project/.sdk/src/cmp/rust/ReadmeQuick_rust.ts +21 -9
- package/project/.sdk/src/cmp/rust/ReadmeRef_rust.ts +41 -32
- package/project/.sdk/src/cmp/rust/ReadmeTopHowto_rust.ts +5 -4
- package/project/.sdk/src/cmp/rust/ReadmeTopQuick_rust.ts +12 -4
- package/project/.sdk/src/cmp/rust/TestClean_rust.ts +391 -18
- package/project/.sdk/src/cmp/rust/TestDirect_rust.ts +17 -14
- package/project/.sdk/src/cmp/rust/TestEntity_rust.ts +35 -34
- package/project/.sdk/src/cmp/rust/fragment/Entity.fragment.rs +2 -2
- package/project/.sdk/src/cmp/rust/fragment/EntityCreateOp.fragment.rs +0 -1
- package/project/.sdk/src/cmp/rust/fragment/EntityListOp.fragment.rs +1 -1
- package/project/.sdk/src/cmp/rust/fragment/EntityLoadOp.fragment.rs +0 -1
- package/project/.sdk/src/cmp/rust/fragment/EntityPatchOp.fragment.rs +0 -1
- package/project/.sdk/src/cmp/rust/fragment/EntityUpdateOp.fragment.rs +0 -1
- package/project/.sdk/src/cmp/rust/fragment/Main.fragment.rs +5 -4
- package/project/.sdk/src/cmp/rust/utility_rust.ts +0 -8
- package/project/.sdk/src/cmp/scala/Config_scala.ts +5 -26
- package/project/.sdk/src/cmp/scala/EntityTypes_scala.ts +4 -5
- package/project/.sdk/src/cmp/scala/Main_scala.ts +5 -1
- package/project/.sdk/src/cmp/scala/PrepareAuth_scala.ts +13 -13
- package/project/.sdk/src/cmp/scala/ReadmeEntity_scala.ts +10 -12
- package/project/.sdk/src/cmp/scala/ReadmeExamplesTest_scala.ts +11 -4
- package/project/.sdk/src/cmp/scala/ReadmeExplanation_scala.ts +3 -3
- package/project/.sdk/src/cmp/scala/ReadmeHowto_scala.ts +12 -20
- package/project/.sdk/src/cmp/scala/ReadmeInstall_scala.ts +11 -15
- package/project/.sdk/src/cmp/scala/ReadmeIntro_scala.ts +5 -7
- package/project/.sdk/src/cmp/scala/ReadmeModel_scala.ts +24 -35
- package/project/.sdk/src/cmp/scala/ReadmeQuick_scala.ts +23 -23
- package/project/.sdk/src/cmp/scala/ReadmeRef_scala.ts +25 -25
- package/project/.sdk/src/cmp/scala/ReadmeTopHowto_scala.ts +5 -4
- package/project/.sdk/src/cmp/scala/ReadmeTopQuick_scala.ts +13 -10
- package/project/.sdk/src/cmp/scala/Schema_scala.ts +2 -1
- package/project/.sdk/src/cmp/scala/TestClean_scala.ts +324 -20
- package/project/.sdk/src/cmp/scala/TestEntity_scala.ts +16 -16
- package/project/.sdk/src/cmp/scala/fragment/EntityBase.fragment.scala +8 -7
- package/project/.sdk/src/cmp/scala/utility_scala.ts +4 -19
- package/project/.sdk/src/cmp/swift/Config_swift.ts +3 -14
- package/project/.sdk/src/cmp/swift/EntityTypes_swift.ts +3 -4
- package/project/.sdk/src/cmp/swift/Main_swift.ts +4 -0
- package/project/.sdk/src/cmp/swift/PrepareAuth_swift.ts +14 -14
- package/project/.sdk/src/cmp/swift/ReadmeEntity_swift.ts +10 -12
- package/project/.sdk/src/cmp/swift/ReadmeExamplesTest_swift.ts +14 -7
- package/project/.sdk/src/cmp/swift/ReadmeExplanation_swift.ts +3 -3
- package/project/.sdk/src/cmp/swift/ReadmeHowto_swift.ts +12 -20
- package/project/.sdk/src/cmp/swift/ReadmeInstall_swift.ts +13 -13
- package/project/.sdk/src/cmp/swift/ReadmeIntro_swift.ts +4 -6
- package/project/.sdk/src/cmp/swift/ReadmeModel_swift.ts +24 -35
- package/project/.sdk/src/cmp/swift/ReadmeQuick_swift.ts +24 -25
- package/project/.sdk/src/cmp/swift/ReadmeRef_swift.ts +25 -25
- package/project/.sdk/src/cmp/swift/ReadmeTopHowto_swift.ts +5 -4
- package/project/.sdk/src/cmp/swift/ReadmeTopQuick_swift.ts +13 -11
- package/project/.sdk/src/cmp/swift/TestClean_swift.ts +352 -23
- package/project/.sdk/src/cmp/swift/fragment/EntityBase.fragment.swift +8 -7
- package/project/.sdk/src/cmp/swift/fragment/Main.fragment.swift +5 -5
- package/project/.sdk/src/cmp/ts/Config_ts.ts +13 -35
- package/project/.sdk/src/cmp/ts/EntityBase_ts.ts +1 -1
- package/project/.sdk/src/cmp/ts/EntityTypes_ts.ts +4 -5
- package/project/.sdk/src/cmp/ts/Entity_ts.ts +1 -1
- package/project/.sdk/src/cmp/ts/Main_ts.ts +6 -9
- package/project/.sdk/src/cmp/ts/Package_ts.ts +3 -2
- package/project/.sdk/src/cmp/ts/PrepareAuth_ts.ts +11 -10
- package/project/.sdk/src/cmp/ts/ReadmeEntity_ts.ts +9 -11
- package/project/.sdk/src/cmp/ts/ReadmeExampleTest_ts.ts +33 -9
- package/project/.sdk/src/cmp/ts/ReadmeExamplesTest_ts.ts +35 -7
- package/project/.sdk/src/cmp/ts/ReadmeExplanation_ts.ts +1 -1
- package/project/.sdk/src/cmp/ts/ReadmeHowto_ts.ts +38 -18
- package/project/.sdk/src/cmp/ts/ReadmeInstall_ts.ts +9 -5
- package/project/.sdk/src/cmp/ts/ReadmeIntro_ts.ts +6 -3
- package/project/.sdk/src/cmp/ts/ReadmeModel_ts.ts +32 -53
- package/project/.sdk/src/cmp/ts/ReadmeQuick_ts.ts +10 -8
- package/project/.sdk/src/cmp/ts/ReadmeRef_ts.ts +22 -26
- package/project/.sdk/src/cmp/ts/ReadmeTopHowto_ts.ts +5 -4
- package/project/.sdk/src/cmp/ts/ReadmeTopQuick_ts.ts +6 -6
- package/project/.sdk/src/cmp/ts/Schema_ts.ts +2 -1
- package/project/.sdk/src/cmp/ts/TestClean_ts.ts +229 -13
- package/project/.sdk/src/cmp/ts/TestDirect_ts.ts +17 -17
- package/project/.sdk/src/cmp/ts/TestEntity_ts.ts +30 -30
- package/project/.sdk/src/cmp/ts/TestLive_ts.ts +7 -6
- package/project/.sdk/src/cmp/ts/fragment/Direct.test.fragment.ts +1 -1
- package/project/.sdk/src/cmp/ts/fragment/Entity.test.fragment.ts +1 -1
- package/project/.sdk/src/cmp/ts/fragment/EntityBase.fragment.ts +3 -3
- package/project/.sdk/src/cmp/ts/fragment/Main.fragment.ts +2 -2
- package/project/.sdk/src/cmp/zig/Config_zig.ts +5 -21
- package/project/.sdk/src/cmp/zig/Main_zig.ts +4 -0
- package/project/.sdk/src/cmp/zig/Package_zig.ts +3 -2
- package/project/.sdk/src/cmp/zig/PrepareAuth_zig.ts +10 -21
- package/project/.sdk/src/cmp/zig/ReadmeEntity_zig.ts +9 -11
- package/project/.sdk/src/cmp/zig/ReadmeExamplesTest_zig.ts +8 -7
- package/project/.sdk/src/cmp/zig/ReadmeExplanation_zig.ts +1 -1
- package/project/.sdk/src/cmp/zig/ReadmeHowto_zig.ts +17 -22
- package/project/.sdk/src/cmp/zig/ReadmeInstall_zig.ts +12 -9
- package/project/.sdk/src/cmp/zig/ReadmeIntro_zig.ts +5 -7
- package/project/.sdk/src/cmp/zig/ReadmeModel_zig.ts +40 -37
- package/project/.sdk/src/cmp/zig/ReadmeQuick_zig.ts +24 -10
- package/project/.sdk/src/cmp/zig/ReadmeRef_zig.ts +46 -30
- package/project/.sdk/src/cmp/zig/ReadmeTopHowto_zig.ts +5 -4
- package/project/.sdk/src/cmp/zig/ReadmeTopQuick_zig.ts +15 -5
- package/project/.sdk/src/cmp/zig/TestClean_zig.ts +259 -26
- package/project/.sdk/src/cmp/zig/fragment/Build.fragment.zig +1 -0
- package/project/.sdk/src/cmp/zig/fragment/Entity.fragment.zig +16 -17
- package/project/.sdk/src/cmp/zig/fragment/Main.fragment.zig +23 -12
- package/project/.sdk/src/cmp/zig/fragment/Root.fragment.zig +2 -1
- package/project/.sdk/src/cmp/zig/utility_zig.ts +0 -13
- package/project/.sdk/tm/c/Makefile +2 -1
- package/project/.sdk/tm/c/core/response.c +27 -4
- package/project/.sdk/tm/c/core/sdk.h +14 -7
- package/project/.sdk/tm/c/feature/secrets/plugin/capability.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/capability.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/catalog.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/catalog.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/config.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/config.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/depend.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/depend.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/env.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/env.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/export.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/export.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/graph.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/graph.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/host.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/host.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/order.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/order.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/point.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/point.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/ref.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/ref.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/resolve.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/resolve.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/types.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/types.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/value.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/value.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/version.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/version.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/aws.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/azuresecrets.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/boru.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/clock.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/doppler.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/encode.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/gcpsecrets.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/hashicorp.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/httpjson.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/infisical.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/minivault.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/onepassword.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/proc.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/secretspec.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/sekretoplugins.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/sha256.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/sigv4.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/support.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/tls.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/internal.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/json.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/providers.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/sekreto.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/sekreto.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/util.c +2 -2
- package/project/.sdk/tm/c/feature/secrets.c +4 -2
- package/project/.sdk/tm/c/feature/validate.c +5 -5
- package/project/.sdk/tm/c/tests/feature/secrets/secrets_test.c +200 -1
- package/project/.sdk/tm/c/tests/pipeline_test.c +1 -1
- package/project/.sdk/tm/c/tests/primary_corpus_test.c +17 -4
- package/project/.sdk/tm/c/tests/primary_utility_test.c +7 -7
- package/project/.sdk/tm/c/tests/sdk_pipeline_test.c +2 -2
- package/project/.sdk/tm/c/tests/server_variable_test.c +10 -48
- package/project/.sdk/tm/c/tests/struct_corpus_test.c +68 -2
- package/project/.sdk/tm/c/tests/transport_test.c +161 -3
- package/project/.sdk/tm/c/tests/vendor/omni/json.c +65 -26
- package/project/.sdk/tm/c/tests/vendor/omni/omni.h +2 -2
- package/project/.sdk/tm/c/tests/vendor/omni/runner.c +2 -2
- package/project/.sdk/tm/c/tests/vendor/omni/util.c +2 -2
- package/project/.sdk/tm/c/utility/clean.c +94 -12
- package/project/.sdk/tm/c/utility/fetcher.c +22 -6
- package/project/.sdk/tm/c/utility/make_error.c +4 -4
- package/project/.sdk/tm/c/utility/make_options.c +22 -16
- package/project/.sdk/tm/c/utility/struct/inject.c +23 -2
- package/project/.sdk/tm/c/utility/struct/re_util.c +3 -0
- package/project/.sdk/tm/c/utility/struct/regex.c +43 -22
- package/project/.sdk/tm/c/utility/struct/regex.h +4 -1
- package/project/.sdk/tm/c/utility/struct/transform.c +982 -296
- package/project/.sdk/tm/c/utility/struct/utility.c +712 -136
- package/project/.sdk/tm/c/utility/struct/value.c +3 -0
- package/project/.sdk/tm/c/utility/struct/value.h +3 -0
- package/project/.sdk/tm/c/utility/struct/value_io.c +3 -0
- package/project/.sdk/tm/c/utility/struct/value_io.h +3 -0
- package/project/.sdk/tm/c/utility/struct/voxgig_struct.h +36 -1
- package/project/.sdk/tm/clojure/feature/secrets/sdk/feature/secrets.clj +3 -1
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/capability.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/catalog.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/config.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/depend.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/env.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/export.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/graph.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/host.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/json.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/order.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/point.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/ref.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/resolve.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/types.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/version.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/addr.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/chain.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/core.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/json.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/aws.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/azuresecrets.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/boru.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/doppler.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/gcpsecrets.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/hashicorp.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/httpjson.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/infisical.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/minivault.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/onepassword.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/proc.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/secretspec.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/sigv4.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/provider.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/providers.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto.clj +2 -2
- package/project/.sdk/tm/clojure/src/sdk/client.clj +4 -4
- package/project/.sdk/tm/clojure/src/sdk/core.clj +175 -32
- package/project/.sdk/tm/clojure/src/sdk/features.clj +6 -7
- package/project/.sdk/tm/clojure/src/voxgig/struct.clj +866 -186
- package/project/.sdk/tm/clojure/test/sdk/test/feature/secrets.clj +85 -2
- package/project/.sdk/tm/clojure/test/sdk/test/feature.clj +1 -1
- package/project/.sdk/tm/clojure/test/sdk/test/omni_smoke.clj +1 -1
- package/project/.sdk/tm/clojure/test/sdk/test/pipeline.clj +98 -3
- package/project/.sdk/tm/clojure/test/sdk/test/primary.clj +7 -2
- package/project/.sdk/tm/clojure/test/sdk/test/struct_corpus.clj +22 -9
- package/project/.sdk/tm/clojure/test/sdk/test_runner.clj +15 -14
- package/project/.sdk/tm/clojure/test/vendor/omni/voxgig/omni/json.clj +2 -2
- package/project/.sdk/tm/clojure/test/vendor/omni/voxgig/omni/runner.clj +2 -2
- package/project/.sdk/tm/clojure/test/vendor/omni/voxgig/omni/util.clj +2 -2
- package/project/.sdk/tm/cpp/Makefile +3 -3
- package/project/.sdk/tm/cpp/core/types.hpp +49 -30
- package/project/.sdk/tm/cpp/feature/secrets/plugin/capability.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/capability.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/catalog.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/catalog.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/config.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/config.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/depend.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/depend.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/env.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/env.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/export.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/export.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/graph.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/graph.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/host.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/host.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/order.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/order.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/point.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/point.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/ref.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/ref.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/resolve.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/resolve.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/types.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/types.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/value.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/value.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/version.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/version.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Aws.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Aws.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Azuresecrets.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Azuresecrets.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Boru.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Boru.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Crypto.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Crypto.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Doppler.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Doppler.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Gcpsecrets.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Gcpsecrets.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Hashicorp.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Hashicorp.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Httpjson.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Httpjson.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Infisical.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Infisical.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Minivault.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Minivault.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Onepassword.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Onepassword.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Proc.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Proc.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Secretspec.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Secretspec.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Sigv4.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Sigv4.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Tls.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Tls.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Json.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Json.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Provider.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Provider.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Providers.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Providers.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Sekreto.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Sekreto.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets.hpp +3 -1
- package/project/.sdk/tm/cpp/feature/validate.hpp +5 -5
- package/project/.sdk/tm/cpp/test/custom_utility_test.cpp +1 -1
- package/project/.sdk/tm/cpp/test/feature/secrets/secrets_test.cpp +226 -0
- package/project/.sdk/tm/cpp/test/omni_resolver.hpp +1 -1
- package/project/.sdk/tm/cpp/test/primary_utility_test.cpp +9 -3
- package/project/.sdk/tm/cpp/test/runner_support.hpp +25 -4
- package/project/.sdk/tm/cpp/test/struct_corpus_test.cpp +32 -3
- package/project/.sdk/tm/cpp/test/vendor/omni/json.hpp +55 -17
- package/project/.sdk/tm/cpp/test/vendor/omni/omni.hpp +2 -2
- package/project/.sdk/tm/cpp/test/vendor/omni/util.hpp +2 -2
- package/project/.sdk/tm/cpp/utility/pipeline.hpp +96 -20
- package/project/.sdk/tm/cpp/utility/voxgigstruct/value.hpp +3 -0
- package/project/.sdk/tm/cpp/utility/voxgigstruct/value_io.hpp +3 -0
- package/project/.sdk/tm/cpp/utility/voxgigstruct/voxgig_struct.hpp +1374 -371
- package/project/.sdk/tm/csharp/Makefile +6 -6
- package/project/.sdk/tm/csharp/core/Response.cs +21 -2
- package/project/.sdk/tm/csharp/core/Result.cs +2 -2
- package/project/.sdk/tm/csharp/core/Utility.cs +2 -0
- package/project/.sdk/tm/csharp/feature/SecretsFeature.cs +7 -6
- package/project/.sdk/tm/csharp/feature/ValidateFeature.cs +4 -5
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Capability.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Catalog.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Config.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Definition.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Depend.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Entry.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Env.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Export.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Graph.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Host.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Inst.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Json.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Order.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Plugin.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Point.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Refs.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Resolve.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Types.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Version.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Aws.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/AzureSecrets.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Boru.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Child.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Doppler.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/GcpSecrets.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Hashicorp.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/HttpJson.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Infisical.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/MiniVault.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/OnePassword.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/SecretSpec.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Sigv4.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/sekreto/Json.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/sekreto/Providers.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/sekreto/Sekreto.cs +2 -2
- package/project/.sdk/tm/csharp/test/PipelineTest.cs +1 -1
- package/project/.sdk/tm/csharp/test/PrimaryUtilityTest.cs +242 -1
- package/project/.sdk/tm/csharp/test/Runner.cs +4 -4
- package/project/.sdk/tm/csharp/test/StructUtilityTest.cs +38 -38
- package/project/.sdk/tm/csharp/test/feature/secrets/SecretsFeatureTest.cs +267 -0
- package/project/.sdk/tm/csharp/test/vendor/omni/Runner.cs +2 -2
- package/project/.sdk/tm/csharp/test/vendor/omni/Util.cs +2 -2
- package/project/.sdk/tm/csharp/utility/Clean.cs +139 -12
- package/project/.sdk/tm/csharp/utility/Fetcher.cs +115 -35
- package/project/.sdk/tm/csharp/utility/MakeError.cs +4 -5
- package/project/.sdk/tm/csharp/utility/MakeOptions.cs +5 -5
- package/project/.sdk/tm/csharp/utility/Register.cs +1 -0
- package/project/.sdk/tm/csharp/utility/struct/Struct.cs +1587 -325
- package/project/.sdk/tm/elixir/lib/projectname/entity_base.ex +9 -11
- package/project/.sdk/tm/elixir/lib/projectname/error.ex +1 -1
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/capability.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/catalog.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/config.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/depend.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/env.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/error.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/export.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/graph.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/host.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/inst.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/json.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/order.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/point.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/ref.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/resolve.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/types.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/version.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/voxgig_plugin.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/json.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/aws.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/azuresecrets.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/boru.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/doppler.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/gcpsecrets.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/hashicorp.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/http.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/httpjson.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/infisical.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/minivault.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/onepassword.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/proc.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/secretspec.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/sigv4.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/provider.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/providers.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/sekreto.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets.ex +4 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/validate.ex +4 -5
- package/project/.sdk/tm/elixir/lib/projectname/utility.ex +219 -37
- package/project/.sdk/tm/elixir/lib/utility/struct/voxgig_struct.ex +1088 -253
- package/project/.sdk/tm/elixir/test/feature/secrets/secrets_test.exs +147 -1
- package/project/.sdk/tm/elixir/test/pipeline_test.exs +167 -1
- package/project/.sdk/tm/elixir/test/primary_utility_test.exs +12 -1
- package/project/.sdk/tm/elixir/test/struct_corpus_test.exs +43 -21
- package/project/.sdk/tm/elixir/test/support/omni.ex +2 -2
- package/project/.sdk/tm/elixir/test/vendor/omni/json.ex +33 -5
- package/project/.sdk/tm/elixir/test/vendor/omni/runner.ex +2 -2
- package/project/.sdk/tm/elixir/test/vendor/omni/util.ex +2 -2
- package/project/.sdk/tm/go/Makefile +4 -4
- package/project/.sdk/tm/go/core/response.go +17 -4
- package/project/.sdk/tm/go/core/result.go +2 -2
- package/project/.sdk/tm/go/core/utility_type.go +2 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/capability.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/catalog.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/config.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/depend.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/env.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/export.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/graph.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/host.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/order.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/point.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/ref.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/resolve.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/types.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/util.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/version.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/aws/aws.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/aws/sigv4.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/azuresecrets/azuresecrets.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/boru/boru.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/doppler/doppler.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/gcpsecrets/gcpsecrets.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/hashicorp/hashicorp.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/httpjson/httpjson.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/infisical/infisical.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/minivault/format.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/minivault/minivault.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/onepassword/onepassword.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/secretspec/secretspec.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/sekreto/addr.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/sekreto/providers.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/sekreto/sekreto.go +2 -2
- package/project/.sdk/tm/go/feature/secrets_feature.go +8 -1
- package/project/.sdk/tm/go/test/concurrency_test.go +1 -1
- package/project/.sdk/tm/go/test/custom_utility_test.go +5 -5
- package/project/.sdk/tm/go/test/feature/secrets/secrets_feature_test.go +160 -7
- package/project/.sdk/tm/go/test/feature_corpus_test.go +1 -1
- package/project/.sdk/tm/go/test/feature_test.go +5 -1
- package/project/.sdk/tm/go/test/omni/omni.go +2 -2
- package/project/.sdk/tm/go/test/omni/util.go +12 -5
- package/project/.sdk/tm/go/test/omniresolver_test.go +1 -1
- package/project/.sdk/tm/go/test/pipeline_test.go +4 -1
- package/project/.sdk/tm/go/test/primary_utility_test.go +181 -5
- package/project/.sdk/tm/go/test/server_variable_test.go +50 -0
- package/project/.sdk/tm/go/test/struct_utility_test.go +59 -56
- package/project/.sdk/tm/go/test/testsupport_test.go +13 -3
- package/project/.sdk/tm/go/utility/clean.go +223 -6
- package/project/.sdk/tm/go/utility/fetcher.go +59 -10
- package/project/.sdk/tm/go/utility/make_error.go +4 -4
- package/project/.sdk/tm/go/utility/make_options.go +12 -5
- package/project/.sdk/tm/go/utility/register.go +12 -1
- package/project/.sdk/tm/go/utility/struct/voxgigstruct.go +1510 -430
- package/project/.sdk/tm/java/Makefile +7 -6
- package/project/.sdk/tm/java/core/Response.java +16 -2
- package/project/.sdk/tm/java/core/Result.java +2 -2
- package/project/.sdk/tm/java/core/SdkClient.java +4 -4
- package/project/.sdk/tm/java/core/Utility.java +7 -0
- package/project/.sdk/tm/java/feature/SecretsFeature.java +3 -0
- package/project/.sdk/tm/java/feature/ValidateFeature.java +4 -5
- package/project/.sdk/tm/java/feature/secrets/plugin/Capability.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Catalog.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Config.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Definition.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Depend.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Entry.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Env.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Export.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Graph.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Host.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Inst.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Json.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Order.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Plugin.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/PluginException.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Point.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Refs.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Resolve.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Types.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Version.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Addr.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Builtins.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Json.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Provider.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Sekreto.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Support.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Aws.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Azuresecrets.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Boru.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Doppler.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Gcpsecrets.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Hashicorp.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Httpjson.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Infisical.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Minivault.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Onepassword.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Proc.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Secretspec.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Sigv4.java +2 -2
- package/project/.sdk/tm/java/test/PipelineTest.java +1 -1
- package/project/.sdk/tm/java/test/PrimaryUtilityTest.java +199 -2
- package/project/.sdk/tm/java/test/RunnerSupport.java +4 -4
- package/project/.sdk/tm/java/test/StructCorpusTest.java +32 -3
- package/project/.sdk/tm/java/test/feature/secrets/SecretsFeatureTest.java +111 -2
- package/project/.sdk/tm/java/test/vendor/omni/Json.java +2 -2
- package/project/.sdk/tm/java/test/vendor/omni/Runner.java +2 -2
- package/project/.sdk/tm/java/test/vendor/omni/Util.java +2 -2
- package/project/.sdk/tm/java/utility/Clean.java +186 -19
- package/project/.sdk/tm/java/utility/Fetcher.java +109 -14
- package/project/.sdk/tm/java/utility/MakeError.java +4 -4
- package/project/.sdk/tm/java/utility/MakeOptions.java +5 -5
- package/project/.sdk/tm/java/utility/Register.java +4 -0
- package/project/.sdk/tm/java/utility/TransformResponse.java +5 -0
- package/project/.sdk/tm/java/utility/struct/Struct.java +1239 -229
- package/project/.sdk/tm/js/Makefile +5 -4
- package/project/.sdk/tm/js/src/feature/secrets/SecretsFeature.js +2 -0
- package/project/.sdk/tm/js/src/feature/secrets/plugin/capability.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/catalog.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/config.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/depend.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/env.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/export.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/graph.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/host.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/index.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/order.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/point.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/ref.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/resolve.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/types.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/version.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/Sekreto.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/index.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/aws.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/azuresecrets.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/boru.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/doppler.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/gcpsecrets.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/hashicorp.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/httpjson.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/infisical.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/minivault.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/onepassword.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/secretspec.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/sigv4.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/addr.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/builtin.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/dotenv.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/env.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/file.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/memory.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/support.js +1 -1
- package/project/.sdk/tm/js/src/feature/validate/ValidateFeature.js +4 -5
- package/project/.sdk/tm/js/src/utility/CleanUtility.js +104 -10
- package/project/.sdk/tm/js/src/utility/FetcherUtility.js +99 -1
- package/project/.sdk/tm/js/src/utility/MakeErrorUtility.js +4 -4
- package/project/.sdk/tm/js/src/utility/MakeOptionsUtility.js +5 -5
- package/project/.sdk/tm/js/src/utility/MediaUtility.js +32 -0
- package/project/.sdk/tm/js/src/utility/ResultBodyUtility.js +6 -14
- package/project/.sdk/tm/js/src/utility/StructUtility.js +972 -180
- package/project/.sdk/tm/js/src/utility/Utility.js +2 -1
- package/project/.sdk/tm/js/test/feature/harness.js +6 -7
- package/project/.sdk/tm/js/test/feature/secrets/Secrets.test.js +92 -2
- package/project/.sdk/tm/js/test/live-entity.js +8 -8
- package/project/.sdk/tm/js/test/utility/PrimaryUtility.test.js +9 -1
- package/project/.sdk/tm/js/test/utility/StructUtility.test.js +32 -27
- package/project/.sdk/tm/js/test/utility/index.js +1 -1
- package/project/.sdk/tm/js/test/vendor/omni/index.js +1 -1
- package/project/.sdk/tm/js/test/vendor/omni/runner.js +1 -1
- package/project/.sdk/tm/js/test/vendor/omni/util.js +1 -1
- package/project/.sdk/tm/kotlin/Makefile +7 -6
- package/project/.sdk/tm/kotlin/core/Response.kt +17 -2
- package/project/.sdk/tm/kotlin/core/Result.kt +2 -2
- package/project/.sdk/tm/kotlin/core/SdkClient.kt +4 -4
- package/project/.sdk/tm/kotlin/core/Utility.kt +4 -2
- package/project/.sdk/tm/kotlin/feature/SecretsFeature.kt +2 -0
- package/project/.sdk/tm/kotlin/feature/ValidateFeature.kt +4 -5
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Capability.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Catalog.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Config.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Depend.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Env.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Export.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Graph.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Host.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Json.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Order.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Plugin.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Point.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Refs.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Resolve.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Types.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Version.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Json.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Provider.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Providers.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Sekreto.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Spec.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Support.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Aws.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Azuresecrets.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Boru.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Doppler.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Gcpsecrets.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Hashicorp.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Httpjson.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Infisical.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Minivault.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Onepassword.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Secretspec.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Sigv4.kt +2 -2
- package/project/.sdk/tm/kotlin/test/PipelineTest.kt +1 -1
- package/project/.sdk/tm/kotlin/test/PrimaryUtilityTest.kt +188 -2
- package/project/.sdk/tm/kotlin/test/RunnerSupport.kt +23 -4
- package/project/.sdk/tm/kotlin/test/StructCorpusTest.kt +23 -3
- package/project/.sdk/tm/kotlin/test/feature/secrets/SecretsTest.kt +110 -1
- package/project/.sdk/tm/kotlin/test/vendor/omni/Json.kt +2 -2
- package/project/.sdk/tm/kotlin/test/vendor/omni/Runner.kt +2 -2
- package/project/.sdk/tm/kotlin/test/vendor/omni/Util.kt +2 -2
- package/project/.sdk/tm/kotlin/utility/CoreUtil.kt +142 -16
- package/project/.sdk/tm/kotlin/utility/Fetcher.kt +113 -14
- package/project/.sdk/tm/kotlin/utility/MakeOptions.kt +5 -5
- package/project/.sdk/tm/kotlin/utility/Register.kt +1 -0
- package/project/.sdk/tm/kotlin/utility/struct/Struct.kt +1074 -164
- package/project/.sdk/tm/lua/Makefile +4 -3
- package/project/.sdk/tm/lua/core/utility_type.lua +2 -0
- package/project/.sdk/tm/lua/feature/secrets/native/sekretonet.c +2 -2
- package/project/.sdk/tm/lua/feature/secrets/native/sekretovault.c +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/capability.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/catalog.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/config.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/depend.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/env.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/export.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/graph.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/host.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/json.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/order.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/point.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/ref.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/resolve.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/types.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/version.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/addr.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/err.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/name.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/aws.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/azuresecrets.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/boru.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/crypto.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/doppler.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/gcpsecrets.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/hashicorp.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/httpjson.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/infisical.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/json.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/minivault.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/net.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/onepassword.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/secretspec.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/sigv4.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/support.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/providers.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets_feature.lua +3 -0
- package/project/.sdk/tm/lua/feature/validate_feature.lua +5 -6
- package/project/.sdk/tm/lua/test/feature/secrets/secrets_feature_test.lua +115 -2
- package/project/.sdk/tm/lua/test/omni.lua +1 -1
- package/project/.sdk/tm/lua/test/pipeline_test.lua +1 -1
- package/project/.sdk/tm/lua/test/primary_utility_test.lua +160 -1
- package/project/.sdk/tm/lua/test/runner.lua +3 -1
- package/project/.sdk/tm/lua/test/struct_utility_test.lua +152 -44
- package/project/.sdk/tm/lua/test/vendor/omni/json.lua +26 -6
- package/project/.sdk/tm/lua/test/vendor/omni/regex.lua +2 -2
- package/project/.sdk/tm/lua/test/vendor/omni/runner.lua +2 -2
- package/project/.sdk/tm/lua/test/vendor/omni/util.lua +2 -2
- package/project/.sdk/tm/lua/utility/clean.lua +86 -6
- package/project/.sdk/tm/lua/utility/fetcher.lua +19 -5
- package/project/.sdk/tm/lua/utility/make_error.lua +4 -5
- package/project/.sdk/tm/lua/utility/make_options.lua +5 -5
- package/project/.sdk/tm/lua/utility/media.lua +36 -0
- package/project/.sdk/tm/lua/utility/register.lua +1 -0
- package/project/.sdk/tm/lua/utility/struct/regex.lua +26 -9
- package/project/.sdk/tm/lua/utility/struct/struct.lua +1289 -245
- package/project/.sdk/tm/lua/utility/unreadable_body.lua +6 -16
- package/project/.sdk/tm/ocaml/Makefile +1 -1
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/capability.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/catalog.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/config.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/defs.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/depend.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/env.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/export.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/graph.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/host.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/order.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/point.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/ref.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/resolve.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/types.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/value.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/version.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/aws.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/azuresecrets.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/boru.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/crypto.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/doppler.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/gcpsecrets.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/hashicorp.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/http.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/httpjson.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/infisical.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/minivault.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/minivault_stubs.c +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/onepassword.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/runcmd.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/secretspec.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/sigv4.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/tls.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/tls_stubs.c +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/sekreto/json.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/sekreto/provider.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/sekreto/secret.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/sekreto/sekreto.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets_feature.ml +3 -1
- package/project/.sdk/tm/ocaml/sdk_features.ml +9 -10
- package/project/.sdk/tm/ocaml/sdk_runtime.ml +78 -15
- package/project/.sdk/tm/ocaml/sdk_types.ml +1 -1
- package/project/.sdk/tm/ocaml/test/feature/secrets/t_secrets.ml +154 -3
- package/project/.sdk/tm/ocaml/test/primary_utility_test.ml +14 -9
- package/project/.sdk/tm/ocaml/test/struct_corpus.ml +24 -15
- package/project/.sdk/tm/ocaml/test/vendor/omni/omni.ml +34 -28
- package/project/.sdk/tm/ocaml/utility/voxgig_struct.ml +807 -157
- package/project/.sdk/tm/ocaml/utility/vregex.ml +190 -60
- package/project/.sdk/tm/perl/Makefile +8 -7
- package/project/.sdk/tm/perl/core/control.pm +1 -1
- package/project/.sdk/tm/perl/core/error.pm +14 -1
- package/project/.sdk/tm/perl/core/helpers.pm +8 -7
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Capability.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Catalog.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Config.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Depend.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Env.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Export.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Graph.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Host.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Order.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Point.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Ref.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Resolve.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Types.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Version.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Aws.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Azuresecrets.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Boru.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Doppler.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Gcpsecrets.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Hashicorp.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Httpjson.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Infisical.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Minivault.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Onepassword.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Proc.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Secretspec.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Sigv4.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/sekreto/Voxgig/Sekreto/Addr.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/sekreto/Voxgig/Sekreto/Providers.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/sekreto/Voxgig/Sekreto.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets_feature.pm +2 -0
- package/project/.sdk/tm/perl/feature/validate_feature.pm +4 -5
- package/project/.sdk/tm/perl/lib/Voxgig/Struct.pm +1082 -149
- package/project/.sdk/tm/perl/t/feature/secrets/secrets.t +105 -0
- package/project/.sdk/tm/perl/t/feature_corpus.t +1 -1
- package/project/.sdk/tm/perl/t/omni.pm +16 -6
- package/project/.sdk/tm/perl/t/primary_utility.t +151 -2
- package/project/.sdk/tm/perl/t/runner.pm +1 -1
- package/project/.sdk/tm/perl/t/struct_utility.t +19 -11
- package/project/.sdk/tm/perl/t/vendor/omni/Voxgig/Omni/Runner.pm +1 -1
- package/project/.sdk/tm/perl/t/vendor/omni/Voxgig/Omni/Util.pm +1 -1
- package/project/.sdk/tm/perl/t/vendor/omni/Voxgig/Omni.pm +1 -1
- package/project/.sdk/tm/perl/utility/clean.pm +130 -15
- package/project/.sdk/tm/perl/utility/fetcher.pm +18 -5
- package/project/.sdk/tm/perl/utility/make_error.pm +4 -4
- package/project/.sdk/tm/perl/utility/make_options.pm +5 -5
- package/project/.sdk/tm/perl/utility/media.pm +29 -0
- package/project/.sdk/tm/perl/utility/result_body.pm +6 -13
- package/project/.sdk/tm/perl/utility/transform_response.pm +3 -0
- package/project/.sdk/tm/php/Makefile +4 -3
- package/project/.sdk/tm/php/core/Control.php +3 -2
- package/project/.sdk/tm/php/core/Helpers.php +49 -0
- package/project/.sdk/tm/php/core/UtilityType.php +2 -0
- package/project/.sdk/tm/php/feature/SecretsFeature.php +2 -0
- package/project/.sdk/tm/php/feature/ValidateFeature.php +6 -5
- package/project/.sdk/tm/php/feature/secrets/plugin/Capability.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Catalog.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Config.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Depend.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Env.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Export.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Graph.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Host.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Order.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Point.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Ref.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Resolve.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Types.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Version.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/plugin.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/aws.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/azuresecrets.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/boru.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/doppler.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/gcpsecrets.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/hashicorp.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/httpjson.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/infisical.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/minivault.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/onepassword.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/runcmd.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/secretspec.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/sigv4.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/src/Addr.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/src/Providers.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/src/Sekreto.php +2 -2
- package/project/.sdk/tm/php/test/FeatureCorpusTest.php +1 -1
- package/project/.sdk/tm/php/test/Omni.php +1 -1
- package/project/.sdk/tm/php/test/PipelineTest.php +146 -1
- package/project/.sdk/tm/php/test/PrimaryUtilityTest.php +23 -1
- package/project/.sdk/tm/php/test/Runner.php +1 -1
- package/project/.sdk/tm/php/test/StructUtilityTest.php +65 -116
- package/project/.sdk/tm/php/test/feature/secrets/SecretsTest.php +117 -1
- package/project/.sdk/tm/php/test/vendor/omni/Runner.php +2 -2
- package/project/.sdk/tm/php/test/vendor/omni/Util.php +2 -2
- package/project/.sdk/tm/php/utility/Clean.php +119 -19
- package/project/.sdk/tm/php/utility/Fetcher.php +24 -7
- package/project/.sdk/tm/php/utility/MakeError.php +4 -5
- package/project/.sdk/tm/php/utility/MakeOptions.php +9 -5
- package/project/.sdk/tm/php/utility/Media.php +29 -0
- package/project/.sdk/tm/php/utility/PrepareBody.php +7 -5
- package/project/.sdk/tm/php/utility/Register.php +1 -0
- package/project/.sdk/tm/php/utility/ResultBody.php +6 -16
- package/project/.sdk/tm/php/utility/TransformResponse.php +5 -0
- package/project/.sdk/tm/php/utility/struct/Struct.php +1933 -530
- package/project/.sdk/tm/py/Makefile +3 -2
- package/project/.sdk/tm/py/pkg/core/utility_type.py +2 -0
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/__init__.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/capability.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/catalog.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/config.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/depend.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/env.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/export.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/graph.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/host.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/order.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/point.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/ref.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/resolve.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/types.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/version.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/__init__.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/addr.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/aws.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/azuresecrets.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/boru.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/doppler.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/gcpsecrets.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/hashicorp.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/httpjson.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/infisical.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/minivault.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/onepassword.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/secretspec.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/sigv4.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/providers.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/sekreto.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets_feature.py +12 -1
- package/project/.sdk/tm/py/pkg/feature/validate_feature.py +4 -5
- package/project/.sdk/tm/py/pkg/utility/clean.py +104 -16
- package/project/.sdk/tm/py/pkg/utility/fetcher.py +64 -4
- package/project/.sdk/tm/py/pkg/utility/make_error.py +4 -4
- package/project/.sdk/tm/py/pkg/utility/make_options.py +5 -5
- package/project/.sdk/tm/py/pkg/utility/media.py +24 -0
- package/project/.sdk/tm/py/pkg/utility/register.py +2 -1
- package/project/.sdk/tm/py/pkg/utility/result_body.py +7 -12
- package/project/.sdk/tm/py/pkg/utility/voxgig_struct/voxgig_struct.py +1057 -198
- package/project/.sdk/tm/py/test/feature/secrets/test_secrets.py +124 -0
- package/project/.sdk/tm/py/test/feature_harness.py +6 -6
- package/project/.sdk/tm/py/test/omni.py +1 -1
- package/project/.sdk/tm/py/test/runner.py +6 -4
- package/project/.sdk/tm/py/test/test_feature_corpus.py +2 -2
- package/project/.sdk/tm/py/test/test_pipeline.py +1 -1
- package/project/.sdk/tm/py/test/test_primary_utility.py +135 -1
- package/project/.sdk/tm/py/test/test_struct_utility.py +29 -30
- package/project/.sdk/tm/py/test/voxgig_omni/__init__.py +1 -1
- package/project/.sdk/tm/py/test/voxgig_omni/runner.py +1 -1
- package/project/.sdk/tm/py/test/voxgig_omni/util.py +1 -1
- package/project/.sdk/tm/py-data/Makefile +5 -4
- package/project/.sdk/tm/py-data/pkg/auth.py +8 -5
- package/project/.sdk/tm/py-data/pkg/fetch.py +8 -8
- package/project/.sdk/tm/py-data/test/conftest.py +6 -7
- package/project/.sdk/tm/py-data/test/test_auth.py +5 -0
- package/project/.sdk/tm/rb/Makefile +3 -2
- package/project/.sdk/tm/rb/core/control.rb +1 -1
- package/project/.sdk/tm/rb/core/utility_type.rb +2 -1
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/capability.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/catalog.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/config.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/depend.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/env.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/export.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/graph.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/host.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/order.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/point.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/ref.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/resolve.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/types.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/version.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/addr.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/aws.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/azuresecrets.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/boru.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/doppler.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/gcpsecrets.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/hashicorp.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/httpjson.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/infisical.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/minivault.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/onepassword.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/secretspec.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/sigv4.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/providers.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/sekreto.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets_feature.rb +3 -0
- package/project/.sdk/tm/rb/feature/validate_feature.rb +4 -5
- package/project/.sdk/tm/rb/test/feature/secrets/secrets_feature_test.rb +117 -0
- package/project/.sdk/tm/rb/test/feature_corpus_test.rb +1 -1
- package/project/.sdk/tm/rb/test/omni.rb +1 -1
- package/project/.sdk/tm/rb/test/pipeline_test.rb +1 -1
- package/project/.sdk/tm/rb/test/primary_utility_test.rb +121 -1
- package/project/.sdk/tm/rb/test/runner.rb +1 -1
- package/project/.sdk/tm/rb/test/struct_utility_test.rb +30 -34
- package/project/.sdk/tm/rb/test/vendor/omni/runner.rb +2 -2
- package/project/.sdk/tm/rb/test/vendor/omni/util.rb +2 -2
- package/project/.sdk/tm/rb/test/vendor/omni/voxgig_omni.rb +2 -2
- package/project/.sdk/tm/rb/utility/clean.rb +94 -14
- package/project/.sdk/tm/rb/utility/fetcher.rb +12 -3
- package/project/.sdk/tm/rb/utility/make_error.rb +4 -4
- package/project/.sdk/tm/rb/utility/make_options.rb +5 -5
- package/project/.sdk/tm/rb/utility/media.rb +21 -0
- package/project/.sdk/tm/rb/utility/register.rb +1 -0
- package/project/.sdk/tm/rb/utility/result_body.rb +7 -9
- package/project/.sdk/tm/rb/utility/struct/voxgig_struct.rb +1569 -678
- package/project/.sdk/tm/rust/Makefile +5 -5
- package/project/.sdk/tm/rust/core/helpers.rs +1 -1
- package/project/.sdk/tm/rust/core/response.rs +18 -2
- package/project/.sdk/tm/rust/core/result.rs +4 -4
- package/project/.sdk/tm/rust/core/utility_type.rs +5 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/capability.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/catalog.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/config.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/depend.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/env.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/export.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/graph.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/host.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/mod.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/order.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/point.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/refs.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/resolve.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/types.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/value.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/version.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/aws/crypto.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/aws/sigv4.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/aws.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/azuresecrets.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/boru.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/doppler.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/gcpsecrets.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/hashicorp.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/httpjson/http.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/httpjson/json.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/httpjson.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/infisical.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/minivault/format.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/minivault.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/onepassword.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/secretspec.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/sekreto/addr.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/sekreto/mod.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/sekreto/providers.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/sekreto/sekreto.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets.rs +10 -1
- package/project/.sdk/tm/rust/tests/common/mod.rs +3 -3
- package/project/.sdk/tm/rust/tests/feature/secrets/main.rs +309 -10
- package/project/.sdk/tm/rust/tests/omni_resolver/mod.rs +1 -1
- package/project/.sdk/tm/rust/tests/pipeline_test.rs +5 -2
- package/project/.sdk/tm/rust/tests/primary_utility_test.rs +281 -13
- package/project/.sdk/tm/rust/tests/server_variable_test.rs +48 -0
- package/project/.sdk/tm/rust/tests/struct_utility_test.rs +9 -1
- package/project/.sdk/tm/rust/tests/vendor/omni/json.rs +27 -11
- package/project/.sdk/tm/rust/tests/vendor/omni/mod.rs +1 -1
- package/project/.sdk/tm/rust/tests/vendor/omni/regex.rs +1 -1
- package/project/.sdk/tm/rust/tests/vendor/omni/runner.rs +1 -1
- package/project/.sdk/tm/rust/tests/vendor/omni/util.rs +1 -1
- package/project/.sdk/tm/rust/utility/clean.rs +128 -9
- package/project/.sdk/tm/rust/utility/fetcher.rs +107 -44
- package/project/.sdk/tm/rust/utility/make_error.rs +4 -4
- package/project/.sdk/tm/rust/utility/make_options.rs +12 -8
- package/project/.sdk/tm/rust/utility/voxgigstruct/consts.rs +18 -20
- package/project/.sdk/tm/rust/utility/voxgigstruct/major.rs +1328 -227
- package/project/.sdk/tm/rust/utility/voxgigstruct/mini.rs +90 -95
- package/project/.sdk/tm/rust/utility/voxgigstruct/mod.rs +12 -8
- package/project/.sdk/tm/rust/utility/voxgigstruct/ordered_map.rs +3 -1
- package/project/.sdk/tm/rust/utility/voxgigstruct/re.rs +49 -6
- package/project/.sdk/tm/rust/utility/voxgigstruct/value.rs +5 -2
- package/project/.sdk/tm/scala/Makefile +4 -4
- package/project/.sdk/tm/scala/core/Response.scala +19 -2
- package/project/.sdk/tm/scala/core/Result.scala +2 -2
- package/project/.sdk/tm/scala/core/SdkClient.scala +4 -4
- package/project/.sdk/tm/scala/core/Types.scala +3 -0
- package/project/.sdk/tm/scala/core/Utility.scala +2 -0
- package/project/.sdk/tm/scala/feature/SecretsFeature.scala +2 -0
- package/project/.sdk/tm/scala/feature/ValidateFeature.scala +4 -5
- package/project/.sdk/tm/scala/feature/secrets/plugin/Capability.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Config.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Depend.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Env.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Export.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Graph.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Host.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Json.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Order.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Plugin.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Point.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Refs.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Resolve.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Types.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Value.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Version.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Json.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Provider.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Providers.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Sekreto.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Spec.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Support.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Aws.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Azuresecrets.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Boru.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Doppler.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Gcpsecrets.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Hashicorp.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Httpjson.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Infisical.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Minivault.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Onepassword.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Secretspec.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Sigv4.scala +2 -2
- package/project/.sdk/tm/scala/sdktest/PrimaryCorpus.scala +10 -4
- package/project/.sdk/tm/scala/sdktest/SdkTestMain.scala +219 -3
- package/project/.sdk/tm/scala/sdktest/StructCorpus.scala +20 -14
- package/project/.sdk/tm/scala/sdktest/feature/secrets/SecretsTestMain.scala +108 -0
- package/project/.sdk/tm/scala/sdktest/vendor/omni/Json.scala +2 -2
- package/project/.sdk/tm/scala/sdktest/vendor/omni/Runner.scala +2 -2
- package/project/.sdk/tm/scala/sdktest/vendor/omni/Util.scala +2 -2
- package/project/.sdk/tm/scala/utility/Fetcher.scala +101 -14
- package/project/.sdk/tm/scala/utility/Make.scala +4 -4
- package/project/.sdk/tm/scala/utility/Misc.scala +133 -13
- package/project/.sdk/tm/scala/utility/Register.scala +1 -0
- package/project/.sdk/tm/scala/utility/Transform.scala +6 -1
- package/project/.sdk/tm/scala/utility/struct/Struct.java +1267 -253
- package/project/.sdk/tm/scala/utility/struct/voxgig_struct.scala +909 -202
- package/project/.sdk/tm/swift/Makefile +5 -5
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Condense.swift +351 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Constants.swift +7 -4
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Inject.swift +39 -24
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Injection.swift +51 -14
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/JSON.swift +4 -1
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Merge.swift +3 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Minor.swift +190 -77
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/OrderedDictionary.swift +3 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Path.swift +37 -8
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Select.swift +37 -20
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Transform.swift +67 -46
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Validate.swift +602 -110
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Value.swift +22 -16
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Walk.swift +9 -1
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Response.swift +20 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Result.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Support.swift +15 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Utility.swift +2 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/SecretsFeature.swift +2 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TestFeature.swift +6 -6
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/ValidateFeature.swift +5 -6
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Capability.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Catalog.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Config.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Depend.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Env.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Export.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Graph.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Host.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Json.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Order.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Point.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Refs.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Resolve.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Types.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Value.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Version.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Aws.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Azuresecrets.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Boru.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Crypto.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Doppler.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Gcpsecrets.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Hashicorp.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Httpjson.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Infisical.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Onepassword.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Proc.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Secretspec.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Sigv4.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Addr.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Json.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Provider.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Providers.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Sekreto.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Fetcher.swift +24 -8
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeError.swift +4 -4
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeOptions.swift +7 -7
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Register.swift +1 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/ResultUtil.swift +130 -30
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/OmniResolver.swift +2 -2
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/PipelineTest.swift +1 -1
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/PrimaryUtilityTest.swift +191 -1
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/Runner.swift +3 -3
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/StructUtilityTest.swift +36 -14
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/feature/secrets/SecretsFeatureTest.swift +167 -1
- package/project/.sdk/tm/swift/Tests/vendor/omni/Json.swift +32 -8
- package/project/.sdk/tm/swift/Tests/vendor/omni/Runner.swift +2 -2
- package/project/.sdk/tm/swift/Tests/vendor/omni/Util.swift +2 -2
- package/project/.sdk/tm/ts/Makefile +3 -2
- package/project/.sdk/tm/ts/src/feature/secrets/SecretsFeature.ts +2 -0
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Capability.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Catalog.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Config.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Depend.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Env.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Export.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/FeatureHost.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Graph.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Host.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Order.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Point.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Ref.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Resolve.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Types.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Version.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/index.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/Sekreto.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/index.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/aws.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/azuresecrets.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/boru.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/doppler.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/gcpsecrets.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/hashicorp.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/httpjson.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/infisical.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/minivault.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/onepassword.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/secretspec.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/sigv4.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/addr.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/builtin.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/dotenv.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/env.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/file.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/memory.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/support.ts +1 -1
- package/project/.sdk/tm/ts/src/utility/CleanUtility.ts +115 -10
- package/project/.sdk/tm/ts/src/utility/FetcherUtility.ts +100 -1
- package/project/.sdk/tm/ts/src/utility/MakeErrorUtility.ts +2 -1
- package/project/.sdk/tm/ts/src/utility/MediaUtility.ts +32 -0
- package/project/.sdk/tm/ts/src/utility/ResultBodyUtility.ts +5 -14
- package/project/.sdk/tm/ts/src/utility/StructUtility.ts +708 -199
- package/project/.sdk/tm/ts/src/utility/Utility.ts +2 -1
- package/project/.sdk/tm/ts/test/feature/secrets/Secrets.test.ts +93 -2
- package/project/.sdk/tm/ts/test/live-entity.ts +8 -8
- package/project/.sdk/tm/ts/test/utility/PrimaryUtility.test.ts +9 -1
- package/project/.sdk/tm/ts/test/utility/StructUtility.test.ts +32 -27
- package/project/.sdk/tm/ts/test/utility/index.ts +1 -1
- package/project/.sdk/tm/ts/test/vendor/omni/Runner.ts +1 -1
- package/project/.sdk/tm/ts/test/vendor/omni/Util.ts +1 -1
- package/project/.sdk/tm/ts/test/vendor/omni/index.ts +1 -1
- package/project/.sdk/tm/zig/core/helpers.zig +2 -2
- package/project/.sdk/tm/zig/core/result.zig +2 -2
- package/project/.sdk/tm/zig/core/types.zig +2 -2
- package/project/.sdk/tm/zig/core/utility.zig +96 -20
- package/project/.sdk/tm/zig/feature/netsim.zig +1 -1
- package/project/.sdk/tm/zig/feature/rbac.zig +1 -1
- package/project/.sdk/tm/zig/feature/secrets/plugin/capability.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/catalog.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/config.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/depend.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/env.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/export.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/graph.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/host.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/inst.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/order.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/plugin.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/point.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/ref.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/resolve.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/types.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/value.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/version.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/aws.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/azuresecrets.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/boru.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/doppler.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/gcpsecrets.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/hashicorp.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/httpjson.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/infisical.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/minivault.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/onepassword.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/secretspec.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/sigv4.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/sekreto/addr.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/sekreto/builtins.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/sekreto/provider.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/sekreto/sekreto.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets.zig +3 -1
- package/project/.sdk/tm/zig/feature/validate.zig +4 -5
- package/project/.sdk/tm/zig/test/feature/secrets/secrets_test.zig +188 -37
- package/project/.sdk/tm/zig/test/fh.zig +11 -0
- package/project/.sdk/tm/zig/test/gotcha_test.zig +11 -10
- package/project/.sdk/tm/zig/test/omniresolver.zig +1 -1
- package/project/.sdk/tm/zig/test/pipeline_test.zig +1 -1
- package/project/.sdk/tm/zig/test/primary_utility_test.zig +17 -9
- package/project/.sdk/tm/zig/test/server_variable_test.zig +46 -0
- package/project/.sdk/tm/zig/test/struct_corpus.zig +54 -34
- package/project/.sdk/tm/zig/test/vendor/omni/omni.zig +2 -2
- package/project/.sdk/tm/zig/test/vendor/omni/regex.zig +2 -2
- package/project/.sdk/tm/zig/utility/voxgigstruct/regex.zig +35 -16
- package/project/.sdk/tm/zig/utility/voxgigstruct/struct.zig +1680 -563
- package/project/sdkgen-package.json +1 -1
- package/src/action/check.ts +5 -1
- package/src/action/doctor.ts +8 -2
- package/src/action/target.ts +75 -32
- package/src/cmp/AgentGuide.ts +29 -17
- package/src/cmp/AgentGuideContent.ts +4 -8
- package/src/cmp/AgentGuideTop.ts +17 -14
- package/src/cmp/Deploy.ts +20 -8
- package/src/cmp/FeatureDocs.ts +4 -2
- package/src/cmp/License.ts +33 -10
- package/src/cmp/Readme.ts +0 -2
- package/src/cmp/ReadmeErrors.ts +82 -81
- package/src/cmp/ReadmeExplanation.ts +7 -11
- package/src/cmp/ReadmeFeatures.ts +16 -9
- package/src/cmp/ReadmeModel.ts +15 -9
- package/src/cmp/ReadmeOptions.ts +3 -16
- package/src/cmp/ReadmeQuick.ts +11 -2
- package/src/cmp/ReadmeRefFeatures.ts +38 -33
- package/src/cmp/ReadmeTop.ts +90 -47
- package/src/helpers/canonSpec.ts +56 -10
- package/src/helpers/clientOptions.ts +67 -0
- package/src/helpers/consumer.ts +62 -0
- package/src/helpers/doctext.ts +9 -1
- package/src/helpers/facts.ts +31 -2
- package/src/helpers/flowGuard.ts +1 -1
- package/src/helpers/mcpTools.ts +5 -3
- package/src/helpers/naming.ts +3 -2
- package/src/helpers/opShape.ts +40 -2
- package/src/helpers/optional.ts +0 -1
- package/src/helpers/optspec.ts +22 -5
- package/src/helpers/packageMeta.ts +75 -2
- package/src/helpers/readerdir.ts +33 -0
- package/src/helpers/sourcestring.ts +8 -0
- package/src/helpers/stdrep.ts +3 -3
- package/src/helpers/surface.ts +23 -5
- package/src/helpers/testPolicy.ts +3 -3
- package/src/helpers/title.ts +1 -1
- package/src/sdkgen.ts +25 -4
- package/src/utility.ts +12 -5
- package/project/.sdk/src/cmp/c/ReadmeOptions_c.ts +0 -65
- package/project/.sdk/src/cmp/clojure/ReadmeOptions_clojure.ts +0 -61
- package/project/.sdk/src/cmp/cpp/ReadmeOptions_cpp.ts +0 -62
- package/project/.sdk/src/cmp/csharp/ReadmeOptions_csharp.ts +0 -60
- package/project/.sdk/src/cmp/elixir/ReadmeOptions_elixir.ts +0 -62
- package/project/.sdk/src/cmp/go/ReadmeOptions_go.ts +0 -59
- package/project/.sdk/src/cmp/java/ReadmeOptions_java.ts +0 -61
- package/project/.sdk/src/cmp/js/ReadmeOptions_js.ts +0 -59
- package/project/.sdk/src/cmp/kotlin/ReadmeOptions_kotlin.ts +0 -61
- package/project/.sdk/src/cmp/lua/ReadmeOptions_lua.ts +0 -59
- package/project/.sdk/src/cmp/ocaml/ReadmeOptions_ocaml.ts +0 -59
- package/project/.sdk/src/cmp/perl/ReadmeOptions_perl.ts +0 -59
- package/project/.sdk/src/cmp/php/ReadmeOptions_php.ts +0 -59
- package/project/.sdk/src/cmp/py/ReadmeOptions_py.ts +0 -59
- package/project/.sdk/src/cmp/rb/ReadmeOptions_rb.ts +0 -59
- package/project/.sdk/src/cmp/rust/ReadmeOptions_rust.ts +0 -60
- package/project/.sdk/src/cmp/scala/ReadmeOptions_scala.ts +0 -61
- package/project/.sdk/src/cmp/swift/ReadmeOptions_swift.ts +0 -62
- package/project/.sdk/src/cmp/ts/ReadmeOptions_ts.ts +0 -59
- package/project/.sdk/src/cmp/zig/ReadmeOptions_zig.ts +0 -60
- package/project/.sdk/tm/c/LICENSE +0 -22
- package/project/.sdk/tm/c/VERSION +0 -1
- package/project/.sdk/tm/clojure/LICENSE +0 -22
- package/project/.sdk/tm/clojure/VERSION +0 -1
- package/project/.sdk/tm/cpp/LICENSE +0 -22
- package/project/.sdk/tm/cpp/VERSION +0 -1
- package/project/.sdk/tm/csharp/LICENSE +0 -22
- package/project/.sdk/tm/csharp/VERSION +0 -1
- package/project/.sdk/tm/elixir/LICENSE +0 -21
- package/project/.sdk/tm/elixir/VERSION +0 -1
- package/project/.sdk/tm/go/LICENSE +0 -22
- package/project/.sdk/tm/go/VERSION +0 -1
- package/project/.sdk/tm/java/LICENSE +0 -22
- package/project/.sdk/tm/java/VERSION +0 -1
- package/project/.sdk/tm/js/LICENSE +0 -22
- package/project/.sdk/tm/kotlin/LICENSE +0 -22
- package/project/.sdk/tm/kotlin/VERSION +0 -1
- package/project/.sdk/tm/lua/LICENSE +0 -22
- package/project/.sdk/tm/ocaml/LICENSE +0 -21
- package/project/.sdk/tm/ocaml/VERSION +0 -1
- package/project/.sdk/tm/perl/LICENSE +0 -22
- package/project/.sdk/tm/php/LICENSE +0 -22
- package/project/.sdk/tm/php/VERSION +0 -1
- package/project/.sdk/tm/py/LICENSE +0 -22
- package/project/.sdk/tm/py-data/LICENSE +0 -22
- package/project/.sdk/tm/rb/LICENSE +0 -22
- package/project/.sdk/tm/rust/LICENSE +0 -22
- package/project/.sdk/tm/rust/VERSION +0 -1
- package/project/.sdk/tm/scala/LICENSE +0 -22
- package/project/.sdk/tm/scala/VERSION +0 -1
- package/project/.sdk/tm/swift/LICENSE +0 -22
- package/project/.sdk/tm/swift/VERSION +0 -1
- package/project/.sdk/tm/ts/LICENSE +0 -22
- package/project/.sdk/tm/zig/LICENSE +0 -21
- package/project/.sdk/tm/zig/VERSION +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
-- VENDORED: @voxgig/struct 0.1.1 (lua/src/struct.lua)
|
|
2
|
-
-- Source: https://github.com/voxgig/struct @
|
|
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-2026 Voxgig Ltd. MIT LICENSE.
|
|
5
5
|
|
|
@@ -226,6 +226,24 @@ end
|
|
|
226
226
|
|
|
227
227
|
local MAXDEPTH = 32
|
|
228
228
|
|
|
229
|
+
-- Condensed structures: the format version, and the kind leading each node.
|
|
230
|
+
local CONDENSE_VERSION = 1
|
|
231
|
+
local CONDENSE_MAP = 0
|
|
232
|
+
local CONDENSE_LIST = 1
|
|
233
|
+
local CONDENSE_STR = 2
|
|
234
|
+
local CONDENSE_NUM = 3
|
|
235
|
+
local CONDENSE_TRUE = 4
|
|
236
|
+
local CONDENSE_FALSE = 5
|
|
237
|
+
local CONDENSE_NULL = 6
|
|
238
|
+
|
|
239
|
+
local S_condense = "$condense"
|
|
240
|
+
local S_condsym = "sym"
|
|
241
|
+
local S_condnode = "node"
|
|
242
|
+
local S_condroot = "root"
|
|
243
|
+
|
|
244
|
+
local S_CONDENSE_IMMUTABLE =
|
|
245
|
+
"struct: condensed structures are immutable - expand() first, then modify the copy"
|
|
246
|
+
|
|
229
247
|
----------------------------------------------------------
|
|
230
248
|
-- Forward declarations to work around the lack of function hoisting
|
|
231
249
|
----------------------------------------------------------
|
|
@@ -234,6 +252,15 @@ local _injecthandler
|
|
|
234
252
|
local _validatehandler
|
|
235
253
|
local _invalidTypeMsg
|
|
236
254
|
local _validation
|
|
255
|
+
local _checknames
|
|
256
|
+
local _refname
|
|
257
|
+
local _unknownname
|
|
258
|
+
local _slotval
|
|
259
|
+
local _deepequal
|
|
260
|
+
local _keeps
|
|
261
|
+
local _admits
|
|
262
|
+
local _nofcount
|
|
263
|
+
local _openquery
|
|
237
264
|
local stringify
|
|
238
265
|
local ismap
|
|
239
266
|
local islist
|
|
@@ -242,6 +269,10 @@ local setprop
|
|
|
242
269
|
local delprop
|
|
243
270
|
local checkPlacement
|
|
244
271
|
local injectorArgs
|
|
272
|
+
local iscondensed
|
|
273
|
+
local expand
|
|
274
|
+
local condenseResolve
|
|
275
|
+
local condenseMaterialise
|
|
245
276
|
|
|
246
277
|
-- Return type string for narrowest type.
|
|
247
278
|
local function typename(t)
|
|
@@ -474,6 +505,35 @@ local function typify(value)
|
|
|
474
505
|
return T_any
|
|
475
506
|
end
|
|
476
507
|
|
|
508
|
+
-- A number as JavaScript's String(n) prints it: 2.0 is "2" and -0.0 is "0".
|
|
509
|
+
local function numstr(n)
|
|
510
|
+
return tostring(math.tointeger(n) or n)
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
-- A list key's index, or nil: an integral number, or a string as JavaScript's
|
|
514
|
+
-- String(n) prints one, so "1" and "-1" but not "01", "+1", " 1", "1.0", "-0" or 1.5.
|
|
515
|
+
local function listkey(key)
|
|
516
|
+
if type(key) == S_string then
|
|
517
|
+
if "0" ~= key and nil == key:match("^%-?[1-9][0-9]*$") then
|
|
518
|
+
return nil
|
|
519
|
+
end
|
|
520
|
+
key = tonumber(key)
|
|
521
|
+
elseif type(key) ~= S_number or key % 1 ~= 0 then
|
|
522
|
+
return nil
|
|
523
|
+
end
|
|
524
|
+
-- Beyond the integer range a key can only fall past an end of the list.
|
|
525
|
+
return math.tointeger(key) or (0 < key and math.maxinteger or math.mininteger)
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
-- The 0-based index a key reads in a list, or nil.
|
|
529
|
+
local function listindex(key)
|
|
530
|
+
local i = listkey(key)
|
|
531
|
+
if nil ~= i and 0 <= i then
|
|
532
|
+
return i
|
|
533
|
+
end
|
|
534
|
+
return nil
|
|
535
|
+
end
|
|
536
|
+
|
|
477
537
|
-- Safely get a property of a node. Nil arguments return nil.
|
|
478
538
|
-- If the key is not found, return the alternative value, if any.
|
|
479
539
|
-- @param val (any) The parent object/table
|
|
@@ -490,26 +550,16 @@ local function getprop(val, key, alt)
|
|
|
490
550
|
|
|
491
551
|
-- Handle tables (maps and arrays in Lua)
|
|
492
552
|
if type(val) == "table" then
|
|
493
|
-
-- Convert key to string if it's a number
|
|
494
|
-
local lookup_key = key
|
|
495
|
-
if type(key) == "number" then
|
|
496
|
-
-- Lua arrays are 1-based
|
|
497
|
-
lookup_key = tostring(math.floor(key))
|
|
498
|
-
elseif type(key) ~= "string" then
|
|
499
|
-
-- Convert other types to string
|
|
500
|
-
lookup_key = tostring(key)
|
|
501
|
-
end
|
|
502
553
|
if islist(val) then
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
out = val[i]
|
|
508
|
-
break
|
|
509
|
-
end
|
|
554
|
+
local i = listindex(key)
|
|
555
|
+
if nil ~= i and i < #val then
|
|
556
|
+
-- Lua arrays are 1-based
|
|
557
|
+
out = val[i + 1]
|
|
510
558
|
end
|
|
511
|
-
|
|
512
|
-
out = val[
|
|
559
|
+
elseif type(key) == S_number then
|
|
560
|
+
out = val[numstr(key)]
|
|
561
|
+
elseif type(key) == S_string then
|
|
562
|
+
out = val[key]
|
|
513
563
|
end
|
|
514
564
|
end
|
|
515
565
|
|
|
@@ -522,8 +572,7 @@ local function getprop(val, key, alt)
|
|
|
522
572
|
return out
|
|
523
573
|
end
|
|
524
574
|
|
|
525
|
-
-- Get a list element
|
|
526
|
-
-- that can parse to an integer only. Negative integers count from the end of the list.
|
|
575
|
+
-- Get a list element; a negative integer key counts from the end.
|
|
527
576
|
local function getelem(val, key, alt)
|
|
528
577
|
local out = NONE
|
|
529
578
|
|
|
@@ -532,11 +581,11 @@ local function getelem(val, key, alt)
|
|
|
532
581
|
end
|
|
533
582
|
|
|
534
583
|
if islist(val) then
|
|
535
|
-
local nkey =
|
|
536
|
-
if
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
584
|
+
local nkey = listkey(key)
|
|
585
|
+
if nil ~= nkey and nkey < 0 then
|
|
586
|
+
nkey = #val + nkey
|
|
587
|
+
end
|
|
588
|
+
if nil ~= nkey and 0 <= nkey and nkey < #val then
|
|
540
589
|
-- Convert 0-based to 1-based
|
|
541
590
|
out = val[nkey + 1]
|
|
542
591
|
end
|
|
@@ -855,18 +904,17 @@ delprop = function(parent, key)
|
|
|
855
904
|
return parent
|
|
856
905
|
end
|
|
857
906
|
|
|
907
|
+
if iscondensed(parent) then
|
|
908
|
+
error(S_CONDENSE_IMMUTABLE)
|
|
909
|
+
end
|
|
910
|
+
|
|
858
911
|
if ismap(parent) then
|
|
859
|
-
key =
|
|
860
|
-
parent[key] = nil
|
|
912
|
+
parent[strkey(key)] = nil
|
|
861
913
|
elseif islist(parent) then
|
|
862
|
-
local keyI =
|
|
863
|
-
if
|
|
864
|
-
keyI = math.floor(keyI)
|
|
914
|
+
local keyI = listindex(key)
|
|
915
|
+
if nil ~= keyI and keyI < #parent then
|
|
865
916
|
-- Convert 0-based to 1-based
|
|
866
|
-
|
|
867
|
-
if luaIndex >= 1 and luaIndex <= #parent then
|
|
868
|
-
table.remove(parent, luaIndex)
|
|
869
|
-
end
|
|
917
|
+
table.remove(parent, keyI + 1)
|
|
870
918
|
end
|
|
871
919
|
end
|
|
872
920
|
|
|
@@ -1292,6 +1340,11 @@ end
|
|
|
1292
1340
|
|
|
1293
1341
|
-- Set a value deep inside a node at a key path.
|
|
1294
1342
|
local function setpath(store, path, val, injdef)
|
|
1343
|
+
-- Same contract as setprop/delprop: a condensed store is immutable.
|
|
1344
|
+
if iscondensed(store) then
|
|
1345
|
+
error(S_CONDENSE_IMMUTABLE)
|
|
1346
|
+
end
|
|
1347
|
+
|
|
1295
1348
|
local pathType = typify(path)
|
|
1296
1349
|
|
|
1297
1350
|
local parts
|
|
@@ -1425,29 +1478,23 @@ setprop = function(parent, key, val)
|
|
|
1425
1478
|
return parent
|
|
1426
1479
|
end
|
|
1427
1480
|
|
|
1481
|
+
if iscondensed(parent) then
|
|
1482
|
+
error(S_CONDENSE_IMMUTABLE)
|
|
1483
|
+
end
|
|
1484
|
+
|
|
1428
1485
|
if ismap(parent) then
|
|
1429
|
-
key
|
|
1430
|
-
parent[key] = val
|
|
1486
|
+
parent[type(key) == S_number and numstr(key) or key] = val
|
|
1431
1487
|
elseif islist(parent) then
|
|
1432
|
-
|
|
1433
|
-
local keyI = tonumber(key)
|
|
1488
|
+
local keyI = listkey(key)
|
|
1434
1489
|
|
|
1435
1490
|
if keyI == nil then
|
|
1436
1491
|
return parent
|
|
1437
1492
|
end
|
|
1438
1493
|
|
|
1439
|
-
keyI = math.floor(keyI)
|
|
1440
|
-
|
|
1441
1494
|
-- Set or append value at position keyI
|
|
1442
1495
|
if keyI >= 0 then
|
|
1443
|
-
--
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
-- Clamp: if index is beyond current length, append to end
|
|
1447
|
-
if luaIndex > #parent + 1 then
|
|
1448
|
-
luaIndex = #parent + 1
|
|
1449
|
-
end
|
|
1450
|
-
parent[luaIndex] = val
|
|
1496
|
+
-- Clamp to the end (append), then convert to Lua 1-based indexing.
|
|
1497
|
+
parent[math.min(keyI, #parent) + 1] = val
|
|
1451
1498
|
-- Prepend value if keyI is negative
|
|
1452
1499
|
else
|
|
1453
1500
|
table.insert(parent, 1, val)
|
|
@@ -1635,7 +1682,7 @@ local function merge(val, maxdepth)
|
|
|
1635
1682
|
end
|
|
1636
1683
|
|
|
1637
1684
|
-- walk writes this back into the override, so it is the override's
|
|
1638
|
-
-- own child.
|
|
1685
|
+
-- own child.
|
|
1639
1686
|
if islist(parent) then
|
|
1640
1687
|
return parent[tonumber(key) + 1]
|
|
1641
1688
|
end
|
|
@@ -1661,10 +1708,21 @@ end
|
|
|
1661
1708
|
-- @param injdef (table) Optional injection definition
|
|
1662
1709
|
-- @return (any) The value at the path
|
|
1663
1710
|
getpath = function(store, path, injdef)
|
|
1664
|
-
-- Operate on a string array
|
|
1711
|
+
-- Operate on a string array, a copy: a number part reads as its string
|
|
1712
|
+
-- form, and any other non-string part misses.
|
|
1665
1713
|
local parts
|
|
1666
1714
|
if islist(path) then
|
|
1667
|
-
parts =
|
|
1715
|
+
parts = setmetatable({}, { __jsontype = "array" })
|
|
1716
|
+
for i = 1, #path do
|
|
1717
|
+
local part = path[i]
|
|
1718
|
+
if type(part) == S_number then
|
|
1719
|
+
parts[i] = numstr(part)
|
|
1720
|
+
elseif type(part) == S_string then
|
|
1721
|
+
parts[i] = part
|
|
1722
|
+
else
|
|
1723
|
+
return NONE
|
|
1724
|
+
end
|
|
1725
|
+
end
|
|
1668
1726
|
elseif type(path) == S_string then
|
|
1669
1727
|
-- Split by '.' like JS split('.'): "a.b" -> ["a","b"], "." -> ["",""], "" -> [""]
|
|
1670
1728
|
parts = {}
|
|
@@ -1692,11 +1750,22 @@ getpath = function(store, path, injdef)
|
|
|
1692
1750
|
table.insert(parts, S_MT)
|
|
1693
1751
|
end
|
|
1694
1752
|
elseif type(path) == S_number then
|
|
1695
|
-
parts = {
|
|
1753
|
+
parts = { numstr(path) }
|
|
1696
1754
|
else
|
|
1697
1755
|
return NONE
|
|
1698
1756
|
end
|
|
1699
1757
|
|
|
1758
|
+
-- A condensed store answers a path as the node it was built from does,
|
|
1759
|
+
-- touching only the nodes on the path. A base changes what the path
|
|
1760
|
+
-- resolves against, so then it is expanded instead.
|
|
1761
|
+
if iscondensed(store) then
|
|
1762
|
+
if nil == injdef or nil == getprop(injdef, S_base) then
|
|
1763
|
+
-- A stored null materialises as nil, so it reads as absent (Group A).
|
|
1764
|
+
return condenseMaterialise(store, condenseResolve(store, store[S_condroot], parts))
|
|
1765
|
+
end
|
|
1766
|
+
store = expand(store)
|
|
1767
|
+
end
|
|
1768
|
+
|
|
1700
1769
|
local val = store
|
|
1701
1770
|
local base = getprop(injdef, S_base)
|
|
1702
1771
|
local src = getprop(store, base, store)
|
|
@@ -1823,6 +1892,7 @@ function Injection:new(val, parent)
|
|
|
1823
1892
|
modify = NONE,
|
|
1824
1893
|
prior = NONE,
|
|
1825
1894
|
extra = NONE,
|
|
1895
|
+
named = false,
|
|
1826
1896
|
}
|
|
1827
1897
|
setmetatable(o, self)
|
|
1828
1898
|
return o
|
|
@@ -1869,7 +1939,7 @@ function Injection:descend()
|
|
|
1869
1939
|
end
|
|
1870
1940
|
else
|
|
1871
1941
|
if parentkey ~= nil then
|
|
1872
|
-
self.dparent = getprop(self.dparent, parentkey)
|
|
1942
|
+
self.dparent = denoval(getprop(self.dparent, parentkey))
|
|
1873
1943
|
|
|
1874
1944
|
local lastpart = getelem(self.dpath, -1)
|
|
1875
1945
|
if lastpart == "$:" .. tostring(parentkey) then
|
|
@@ -1912,7 +1982,10 @@ end
|
|
|
1912
1982
|
function Injection:setval(val, ancestor)
|
|
1913
1983
|
local parent
|
|
1914
1984
|
if ancestor == nil or ancestor < 2 then
|
|
1915
|
-
|
|
1985
|
+
-- A list keeps the removed slot as a hole until inject's loop ends.
|
|
1986
|
+
if NONE == val and islist(self.parent) then
|
|
1987
|
+
parent = setprop(self.parent, self.key, SKIP)
|
|
1988
|
+
elseif NONE == val then
|
|
1916
1989
|
self.parent = delprop(self.parent, self.key)
|
|
1917
1990
|
parent = self.parent
|
|
1918
1991
|
else
|
|
@@ -1957,6 +2030,8 @@ local function inject(val, store, injdef)
|
|
|
1957
2030
|
|
|
1958
2031
|
inj:descend()
|
|
1959
2032
|
|
|
2033
|
+
inj.named = false
|
|
2034
|
+
|
|
1960
2035
|
-- Descend into node.
|
|
1961
2036
|
if isnode(val) then
|
|
1962
2037
|
local nodekeys
|
|
@@ -1974,6 +2049,7 @@ local function inject(val, store, injdef)
|
|
|
1974
2049
|
table.sort(regular_keys)
|
|
1975
2050
|
table.sort(ds_keys)
|
|
1976
2051
|
nodekeys = flatten({ regular_keys, ds_keys })
|
|
2052
|
+
inj.named = 0 < #regular_keys
|
|
1977
2053
|
else
|
|
1978
2054
|
nodekeys = {}
|
|
1979
2055
|
for i = 1, #val do
|
|
@@ -2012,6 +2088,17 @@ local function inject(val, store, injdef)
|
|
|
2012
2088
|
|
|
2013
2089
|
nkI = nkI + 1
|
|
2014
2090
|
end
|
|
2091
|
+
|
|
2092
|
+
if islist(val) then
|
|
2093
|
+
local kept = 0
|
|
2094
|
+
for i = 1, #val do
|
|
2095
|
+
if SKIP ~= val[i] then
|
|
2096
|
+
kept = kept + 1
|
|
2097
|
+
val[kept] = val[i]
|
|
2098
|
+
end
|
|
2099
|
+
end
|
|
2100
|
+
slice(val, 0, kept, true)
|
|
2101
|
+
end
|
|
2015
2102
|
elseif S_string == valtype then
|
|
2016
2103
|
inj.mode = M_VAL
|
|
2017
2104
|
val = _injectstr(val, store, inj)
|
|
@@ -2025,6 +2112,9 @@ local function inject(val, store, injdef)
|
|
|
2025
2112
|
local mkey = inj.key
|
|
2026
2113
|
local mparent = inj.parent
|
|
2027
2114
|
local mval = getprop(mparent, mkey)
|
|
2115
|
+
if SKIP == mval then
|
|
2116
|
+
mval = NONE
|
|
2117
|
+
end
|
|
2028
2118
|
inj.modify(mval, mkey, mparent, inj, store)
|
|
2029
2119
|
end
|
|
2030
2120
|
|
|
@@ -2448,16 +2538,23 @@ injectorArgs = function(argTypes, args)
|
|
|
2448
2538
|
return found
|
|
2449
2539
|
end
|
|
2450
2540
|
|
|
2541
|
+
local function _includes(list, val)
|
|
2542
|
+
for _, item in ipairs(list) do
|
|
2543
|
+
if item == val then
|
|
2544
|
+
return true
|
|
2545
|
+
end
|
|
2546
|
+
end
|
|
2547
|
+
return false
|
|
2548
|
+
end
|
|
2549
|
+
|
|
2451
2550
|
-- Transform: resolve a reference to another part of the spec.
|
|
2452
2551
|
-- Format: ['`$REF`', 'ref-path']
|
|
2453
|
-
local function transform_REF(inj,
|
|
2454
|
-
local nodes = inj.nodes
|
|
2455
|
-
|
|
2552
|
+
local function transform_REF(inj, _val, _ref, store)
|
|
2456
2553
|
if M_VAL ~= inj.mode then
|
|
2457
2554
|
return NONE
|
|
2458
2555
|
end
|
|
2459
2556
|
|
|
2460
|
-
--
|
|
2557
|
+
-- ['`$REF`', 'ref-path']: a relative path starts where this slot is, so .x is a sibling.
|
|
2461
2558
|
local refpath = getprop(inj.parent, 1)
|
|
2462
2559
|
inj.keyI = size(inj.keys)
|
|
2463
2560
|
|
|
@@ -2465,11 +2562,22 @@ local function transform_REF(inj, val, _ref, store)
|
|
|
2465
2562
|
local specfn = getprop(store, S_DSPEC)
|
|
2466
2563
|
local spec = specfn()
|
|
2467
2564
|
|
|
2468
|
-
local dpath = slice(inj.path, 1)
|
|
2469
|
-
local
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2565
|
+
local dpath = slice(inj.path, 1, -2)
|
|
2566
|
+
local refinj = { dpath = dpath, dparent = getpath(spec, dpath) }
|
|
2567
|
+
local ref = getpath(spec, refpath, refinj)
|
|
2568
|
+
|
|
2569
|
+
-- A chain of references that comes back to a path it has named names nothing.
|
|
2570
|
+
local seen = { refpath }
|
|
2571
|
+
local nextref = ref
|
|
2572
|
+
while islist(nextref) and "`$REF`" == getprop(nextref, 0) do
|
|
2573
|
+
local nextpath = getprop(nextref, 1)
|
|
2574
|
+
if _includes(seen, nextpath) then
|
|
2575
|
+
ref = NONE
|
|
2576
|
+
break
|
|
2577
|
+
end
|
|
2578
|
+
table.insert(seen, nextpath)
|
|
2579
|
+
nextref = getpath(spec, nextpath, refinj)
|
|
2580
|
+
end
|
|
2473
2581
|
|
|
2474
2582
|
local hasSubRef = false
|
|
2475
2583
|
if isnode(ref) then
|
|
@@ -2481,39 +2589,26 @@ local function transform_REF(inj, val, _ref, store)
|
|
|
2481
2589
|
end)
|
|
2482
2590
|
end
|
|
2483
2591
|
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
local
|
|
2487
|
-
local tpath = slice(inj.path, -1)
|
|
2488
|
-
local tcur = getpath(store, cpath)
|
|
2489
|
-
local tval = getpath(store, tpath)
|
|
2490
|
-
local rval
|
|
2491
|
-
|
|
2592
|
+
-- A recursive reference stops where the data does.
|
|
2593
|
+
local tval = getpath(store, slice(inj.path, -1))
|
|
2594
|
+
local rval = NONE
|
|
2492
2595
|
if not hasSubRef or NONE ~= tval then
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
tinj.path = tpath
|
|
2496
|
-
tinj.nodes = slice(inj.nodes, -1)
|
|
2497
|
-
tinj.parent = getelem(nodes, -2)
|
|
2498
|
-
tinj.val = tref
|
|
2499
|
-
|
|
2500
|
-
tinj.dpath = flatten({ cpath })
|
|
2501
|
-
tinj.dparent = tcur
|
|
2502
|
-
|
|
2503
|
-
inject(tref, store, tinj)
|
|
2504
|
-
|
|
2505
|
-
rval = tinj.val
|
|
2506
|
-
else
|
|
2507
|
-
rval = NONE
|
|
2596
|
+
rval = clone(ref)
|
|
2508
2597
|
end
|
|
2509
2598
|
|
|
2599
|
+
-- The enclosing loop injects the referenced spec in this list's place, so
|
|
2600
|
+
-- neither this pass nor this element leaves a value for modify to check.
|
|
2510
2601
|
local grandparent = inj:setval(rval, 2)
|
|
2511
2602
|
|
|
2512
|
-
|
|
2513
|
-
|
|
2603
|
+
local prior = inj.prior
|
|
2604
|
+
if prior then
|
|
2605
|
+
prior.modify = NONE
|
|
2606
|
+
if islist(grandparent) or NONE ~= rval then
|
|
2607
|
+
prior.keyI = prior.keyI - 1
|
|
2608
|
+
end
|
|
2514
2609
|
end
|
|
2515
2610
|
|
|
2516
|
-
return
|
|
2611
|
+
return SKIP
|
|
2517
2612
|
end
|
|
2518
2613
|
|
|
2519
2614
|
-- Named formatters for transform_FORMAT.
|
|
@@ -2627,6 +2722,15 @@ local function transform_APPLY(inj, _val, _ref, store)
|
|
|
2627
2722
|
return out
|
|
2628
2723
|
end
|
|
2629
2724
|
|
|
2725
|
+
-- merge reads NOVAL as nil and writes that back into extra, so a $TOP that
|
|
2726
|
+
-- extra gives as NOVAL (canonical undefined, from a $NOF or $ALL trial) is
|
|
2727
|
+
-- read before the merge and put back after it.
|
|
2728
|
+
local function _keeptop(store, top)
|
|
2729
|
+
if NOVAL == top then
|
|
2730
|
+
store[S_DTOP] = NOVAL
|
|
2731
|
+
end
|
|
2732
|
+
end
|
|
2733
|
+
|
|
2630
2734
|
-- Transform data using spec.
|
|
2631
2735
|
-- @param data (any) Source data to transform
|
|
2632
2736
|
-- @param spec (any) Transform specification
|
|
@@ -2663,6 +2767,7 @@ local function transform(data, spec, injdef)
|
|
|
2663
2767
|
end
|
|
2664
2768
|
|
|
2665
2769
|
-- Define a top level store that provides transform operations.
|
|
2770
|
+
local top = getprop(extra, S_DTOP)
|
|
2666
2771
|
local store = merge({
|
|
2667
2772
|
{
|
|
2668
2773
|
[S_DTOP] = dataClone,
|
|
@@ -2695,6 +2800,7 @@ local function transform(data, spec, injdef)
|
|
|
2695
2800
|
extraTransforms,
|
|
2696
2801
|
{ ["$ERRS"] = errs },
|
|
2697
2802
|
}, 1)
|
|
2803
|
+
_keeptop(store, top)
|
|
2698
2804
|
|
|
2699
2805
|
local out = inject(spec, store, injdef)
|
|
2700
2806
|
|
|
@@ -2714,13 +2820,13 @@ local function validate_STRING(inj)
|
|
|
2714
2820
|
if 0 == (T_string & t) then
|
|
2715
2821
|
local msg = _invalidTypeMsg(inj.path, S_string, t, out, "V1010")
|
|
2716
2822
|
table.insert(inj.errs, msg)
|
|
2717
|
-
return
|
|
2823
|
+
return out
|
|
2718
2824
|
end
|
|
2719
2825
|
|
|
2720
2826
|
if S_MT == out then
|
|
2721
2827
|
local msg = "Empty string at " .. pathify(inj.path, 1)
|
|
2722
2828
|
table.insert(inj.errs, msg)
|
|
2723
|
-
return
|
|
2829
|
+
return out
|
|
2724
2830
|
end
|
|
2725
2831
|
|
|
2726
2832
|
return out
|
|
@@ -2739,17 +2845,18 @@ local function validate_TYPE(inj, _val, ref)
|
|
|
2739
2845
|
end
|
|
2740
2846
|
end
|
|
2741
2847
|
|
|
2742
|
-
--
|
|
2848
|
+
-- $NIL is absent or null.
|
|
2743
2849
|
if tname == S_nil then
|
|
2744
2850
|
typev = typev | T_null
|
|
2745
2851
|
end
|
|
2746
2852
|
|
|
2747
2853
|
local out = getprop(inj.dparent, inj.key)
|
|
2748
2854
|
|
|
2749
|
-
|
|
2855
|
+
-- A Lua node holds no null, so a nil slot below the root is a missing value.
|
|
2856
|
+
local t = typify(nil == out and 1 < #inj.path and NOVAL or out)
|
|
2750
2857
|
if 0 == (t & typev) then
|
|
2751
2858
|
table.insert(inj.errs, _invalidTypeMsg(inj.path, tname, t, out, "V1001"))
|
|
2752
|
-
return
|
|
2859
|
+
return out
|
|
2753
2860
|
end
|
|
2754
2861
|
|
|
2755
2862
|
return out
|
|
@@ -2773,15 +2880,12 @@ local function validate_CHILD(inj)
|
|
|
2773
2880
|
|
|
2774
2881
|
-- Get corresponding current object.
|
|
2775
2882
|
local pkey = getelem(path, -2)
|
|
2776
|
-
local tval = getprop(inj.dparent, pkey)
|
|
2883
|
+
local tval = denoval(getprop(inj.dparent, pkey))
|
|
2777
2884
|
|
|
2778
2885
|
if NONE == tval then
|
|
2779
2886
|
tval = {}
|
|
2780
2887
|
elseif not ismap(tval) then
|
|
2781
|
-
|
|
2782
|
-
inj.errs,
|
|
2783
|
-
_invalidTypeMsg(slice(inj.path, 0, -1), S_object, typify(tval), tval, "V0220")
|
|
2784
|
-
)
|
|
2888
|
+
-- _validation reports the mismatch, once.
|
|
2785
2889
|
return NONE
|
|
2786
2890
|
end
|
|
2787
2891
|
|
|
@@ -2815,9 +2919,6 @@ local function validate_CHILD(inj)
|
|
|
2815
2919
|
end
|
|
2816
2920
|
|
|
2817
2921
|
if not islist(inj.dparent) then
|
|
2818
|
-
local msg =
|
|
2819
|
-
_invalidTypeMsg(slice(inj.path, 0, -1), S_list, typify(inj.dparent), inj.dparent, "V0230")
|
|
2820
|
-
table.insert(inj.errs, msg)
|
|
2821
2922
|
inj.keyI = size(parent)
|
|
2822
2923
|
return inj.dparent
|
|
2823
2924
|
end
|
|
@@ -2849,6 +2950,63 @@ local function validate_CHILD(inj)
|
|
|
2849
2950
|
return NONE
|
|
2850
2951
|
end
|
|
2851
2952
|
|
|
2953
|
+
local function _restmsg(path, problem)
|
|
2954
|
+
return "The $REST validator at field " .. pathify(path) .. problem
|
|
2955
|
+
end
|
|
2956
|
+
|
|
2957
|
+
-- The members a spec does not name: the map form is a key, the list form a
|
|
2958
|
+
-- tuple's last item. Each places clones of its spec for the loop to check.
|
|
2959
|
+
local function validate_REST(inj)
|
|
2960
|
+
local mode, key, parent, keys, path = inj.mode, inj.key, inj.parent, inj.keys, inj.path
|
|
2961
|
+
|
|
2962
|
+
if M_KEYPRE == mode then
|
|
2963
|
+
local resttm = getprop(parent, key)
|
|
2964
|
+
local tval = denoval(getprop(inj.dparent, getelem(path, -2)))
|
|
2965
|
+
|
|
2966
|
+
if ismap(tval) then
|
|
2967
|
+
for _, ckey in ipairs(keysof(tval)) do
|
|
2968
|
+
if not _includes(keys, ckey) then
|
|
2969
|
+
setprop(parent, ckey, clone(resttm))
|
|
2970
|
+
table.insert(keys, ckey)
|
|
2971
|
+
end
|
|
2972
|
+
end
|
|
2973
|
+
end
|
|
2974
|
+
|
|
2975
|
+
inj:setval(NONE)
|
|
2976
|
+
return NONE
|
|
2977
|
+
end
|
|
2978
|
+
|
|
2979
|
+
local prior = inj.prior
|
|
2980
|
+
if M_VAL ~= mode or NONE == prior or not islist(prior.parent) or 0 ~= inj.keyI then
|
|
2981
|
+
table.insert(inj.errs, _restmsg(slice(path, 1), " must be the last element of an array."))
|
|
2982
|
+
return NONE
|
|
2983
|
+
end
|
|
2984
|
+
|
|
2985
|
+
inj.keyI = size(keys)
|
|
2986
|
+
prior.modify = NONE
|
|
2987
|
+
|
|
2988
|
+
local tuple = prior.parent
|
|
2989
|
+
local slot = listkey(prior.key)
|
|
2990
|
+
local dlist = prior.dparent
|
|
2991
|
+
local numitems = islist(dlist) and size(dlist) or 0
|
|
2992
|
+
|
|
2993
|
+
if numitems <= slot then
|
|
2994
|
+
inj:setval(NONE, 2)
|
|
2995
|
+
return SKIP
|
|
2996
|
+
end
|
|
2997
|
+
|
|
2998
|
+
local resttm = getprop(parent, 1)
|
|
2999
|
+
for i = slot, numitems - 1 do
|
|
3000
|
+
setprop(tuple, i, clone(resttm))
|
|
3001
|
+
end
|
|
3002
|
+
for i = size(prior.keys), numitems - 1 do
|
|
3003
|
+
table.insert(prior.keys, i)
|
|
3004
|
+
end
|
|
3005
|
+
|
|
3006
|
+
prior.keyI = prior.keyI - 1
|
|
3007
|
+
return SKIP
|
|
3008
|
+
end
|
|
3009
|
+
|
|
2852
3010
|
----------------------------------------------------------
|
|
2853
3011
|
-- Forward declaration for validate to resolve lack of function hoisting
|
|
2854
3012
|
----------------------------------------------------------
|
|
@@ -2864,27 +3022,29 @@ local function describeAlternatives(tvals)
|
|
|
2864
3022
|
return out
|
|
2865
3023
|
end
|
|
2866
3024
|
|
|
2867
|
-
-- Match
|
|
2868
|
-
-- Syntax: ['`$
|
|
2869
|
-
local function
|
|
2870
|
-
local mode, parent, keyI = inj.mode, inj.parent, inj.keyI
|
|
3025
|
+
-- Match exactly one of the specified values.
|
|
3026
|
+
-- Syntax: ['`$EXACT`', val1, val2, ...]
|
|
3027
|
+
local function validate_EXACT(inj)
|
|
3028
|
+
local mode, parent, key, keyI = inj.mode, inj.parent, inj.key, inj.keyI
|
|
2871
3029
|
|
|
2872
3030
|
-- Only operate in val mode, since parent is a list.
|
|
2873
3031
|
if M_VAL == mode then
|
|
2874
3032
|
if not islist(parent) or 0 ~= keyI then
|
|
2875
3033
|
table.insert(
|
|
2876
3034
|
inj.errs,
|
|
2877
|
-
"The $
|
|
3035
|
+
"The $EXACT validator at field "
|
|
2878
3036
|
.. pathify(inj.path, 1, 1)
|
|
2879
3037
|
.. " must be the first element of an array."
|
|
2880
3038
|
)
|
|
2881
3039
|
return
|
|
2882
3040
|
end
|
|
2883
3041
|
|
|
3042
|
+
local cval = _slotval(inj)
|
|
3043
|
+
|
|
2884
3044
|
inj.keyI = size(inj.keys)
|
|
2885
3045
|
|
|
2886
|
-
--
|
|
2887
|
-
inj:setval(
|
|
3046
|
+
-- Replace [$EXACT, ...] with the data value; SKIP keeps inject off the detached list.
|
|
3047
|
+
inj:setval(cval, 2)
|
|
2888
3048
|
|
|
2889
3049
|
inj.path = slice(inj.path, 0, -1)
|
|
2890
3050
|
|
|
@@ -2892,183 +3052,411 @@ local function validate_ONE(inj, _val, _ref, store)
|
|
|
2892
3052
|
if 0 == size(tvals) then
|
|
2893
3053
|
table.insert(
|
|
2894
3054
|
inj.errs,
|
|
2895
|
-
"The $
|
|
3055
|
+
"The $EXACT validator at field "
|
|
2896
3056
|
.. pathify(inj.path, 1, 1)
|
|
2897
3057
|
.. " must have at least one argument."
|
|
2898
3058
|
)
|
|
2899
|
-
return
|
|
3059
|
+
return SKIP
|
|
2900
3060
|
end
|
|
2901
3061
|
|
|
2902
|
-
-- See if we can find a match.
|
|
2903
3062
|
for _, tval in ipairs(tvals) do
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
local vstore = merge({ {}, store }, 1)
|
|
2908
|
-
vstore["$TOP"] = inj.dparent
|
|
2909
|
-
|
|
2910
|
-
local vcurrent = validate(inj.dparent, tval, {
|
|
2911
|
-
extra = vstore,
|
|
2912
|
-
errs = terrs,
|
|
2913
|
-
meta = inj.meta,
|
|
2914
|
-
})
|
|
2915
|
-
|
|
2916
|
-
inj:setval(vcurrent, -2)
|
|
2917
|
-
|
|
2918
|
-
-- Accept current value if there was a match
|
|
2919
|
-
if 0 == size(terrs) then
|
|
2920
|
-
return
|
|
3063
|
+
if _deepequal(tval, cval) then
|
|
3064
|
+
return SKIP
|
|
2921
3065
|
end
|
|
2922
3066
|
end
|
|
2923
3067
|
|
|
2924
|
-
-- There was no match.
|
|
2925
3068
|
local valdesc_str = describeAlternatives(tvals)
|
|
2926
3069
|
|
|
2927
3070
|
table.insert(
|
|
2928
3071
|
inj.errs,
|
|
2929
3072
|
_invalidTypeMsg(
|
|
2930
3073
|
inj.path,
|
|
2931
|
-
(1 < size(
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
3074
|
+
(1 < size(inj.path) and "" or "value ")
|
|
3075
|
+
.. "exactly equal to "
|
|
3076
|
+
.. (1 == size(tvals) and "" or "one of ")
|
|
3077
|
+
.. valdesc_str,
|
|
3078
|
+
typify(cval),
|
|
3079
|
+
cval,
|
|
3080
|
+
"V0110"
|
|
2935
3081
|
)
|
|
2936
3082
|
)
|
|
3083
|
+
|
|
3084
|
+
return SKIP
|
|
3085
|
+
else
|
|
3086
|
+
delprop(parent, key)
|
|
2937
3087
|
end
|
|
2938
3088
|
end
|
|
2939
3089
|
|
|
2940
|
-
--
|
|
2941
|
-
|
|
2942
|
-
local
|
|
2943
|
-
local mode, parent, key, keyI = inj.mode, inj.parent, inj.key, inj.keyI
|
|
3090
|
+
-- The counting list directives. Without a count, every spec has to admit.
|
|
3091
|
+
local function _validatecount(inj, store, name, counted)
|
|
3092
|
+
local mode, parent, keyI = inj.mode, inj.parent, inj.keyI
|
|
2944
3093
|
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
table.insert(
|
|
2949
|
-
inj.errs,
|
|
2950
|
-
"The $EXACT validator at field "
|
|
2951
|
-
.. pathify(inj.path, 1, 1)
|
|
2952
|
-
.. " must be the first element of an array."
|
|
2953
|
-
)
|
|
2954
|
-
return
|
|
2955
|
-
end
|
|
3094
|
+
if M_VAL ~= mode then
|
|
3095
|
+
return NONE
|
|
3096
|
+
end
|
|
2956
3097
|
|
|
2957
|
-
|
|
3098
|
+
if not islist(parent) or 0 ~= keyI then
|
|
3099
|
+
table.insert(
|
|
3100
|
+
inj.errs,
|
|
3101
|
+
"The "
|
|
3102
|
+
.. name
|
|
3103
|
+
.. " validator at field "
|
|
3104
|
+
.. pathify(inj.path, 1, 1)
|
|
3105
|
+
.. " must be the first element of an array."
|
|
3106
|
+
)
|
|
3107
|
+
return NONE
|
|
3108
|
+
end
|
|
2958
3109
|
|
|
2959
|
-
|
|
2960
|
-
inj:setval(inj.dparent, 2)
|
|
3110
|
+
local cval = _slotval(inj)
|
|
2961
3111
|
|
|
2962
|
-
|
|
2963
|
-
inj.key = getelem(inj.path, -1)
|
|
3112
|
+
inj.keyI = size(inj.keys)
|
|
2964
3113
|
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
inj.errs,
|
|
2969
|
-
"The $EXACT validator at field "
|
|
2970
|
-
.. pathify(inj.path, 1, 1)
|
|
2971
|
-
.. " must have at least one argument."
|
|
2972
|
-
)
|
|
2973
|
-
return
|
|
2974
|
-
end
|
|
3114
|
+
-- Replace the directive's list with the data value. Each return is SKIP, so
|
|
3115
|
+
-- that inject leaves the detached list alone and validates nothing in it.
|
|
3116
|
+
inj:setval(cval, 2)
|
|
2975
3117
|
|
|
2976
|
-
|
|
2977
|
-
local currentstr = nil
|
|
2978
|
-
for _, tval in ipairs(tvals) do
|
|
2979
|
-
local exactmatch = tval == inj.dparent
|
|
3118
|
+
inj.path = slice(inj.path, -1)
|
|
2980
3119
|
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
3120
|
+
local count = NONE
|
|
3121
|
+
if counted then
|
|
3122
|
+
count = getprop(parent, 1)
|
|
3123
|
+
end
|
|
3124
|
+
local tvals = slice(parent, counted and 2 or 1)
|
|
3125
|
+
local numtvals = size(tvals)
|
|
3126
|
+
local field = "The " .. name .. " validator at field " .. pathify(inj.path, 1)
|
|
2988
3127
|
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
3128
|
+
if 0 == numtvals then
|
|
3129
|
+
table.insert(
|
|
3130
|
+
inj.errs,
|
|
3131
|
+
field .. (counted and " must have a count and" or " must have") .. " at least one argument."
|
|
3132
|
+
)
|
|
3133
|
+
return SKIP
|
|
3134
|
+
end
|
|
3135
|
+
|
|
3136
|
+
local lo, hi, countdesc = numtvals, numtvals, "all"
|
|
3137
|
+
if counted then
|
|
3138
|
+
lo, hi, countdesc = _nofcount(count, numtvals)
|
|
3139
|
+
end
|
|
3140
|
+
|
|
3141
|
+
if NONE == countdesc then
|
|
3142
|
+
table.insert(inj.errs, field .. " has an invalid count: " .. stringify(count) .. ".")
|
|
3143
|
+
return SKIP
|
|
3144
|
+
end
|
|
3145
|
+
|
|
3146
|
+
local admitted = 0
|
|
3147
|
+
for tI = 0, numtvals - 1 do
|
|
3148
|
+
local left = numtvals - tI
|
|
3149
|
+
|
|
3150
|
+
-- Stop once the specs left cannot change the verdict.
|
|
3151
|
+
if hi < admitted or admitted + left < lo or (lo <= admitted and admitted + left <= hi) then
|
|
3152
|
+
break
|
|
2992
3153
|
end
|
|
2993
3154
|
|
|
2994
|
-
|
|
3155
|
+
if _admits(cval, tvals[tI + 1], inj, store) then
|
|
3156
|
+
admitted = admitted + 1
|
|
3157
|
+
end
|
|
3158
|
+
end
|
|
2995
3159
|
|
|
3160
|
+
if admitted < lo or hi < admitted then
|
|
2996
3161
|
table.insert(
|
|
2997
3162
|
inj.errs,
|
|
2998
3163
|
_invalidTypeMsg(
|
|
2999
3164
|
inj.path,
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
typify(inj.dparent),
|
|
3005
|
-
inj.dparent,
|
|
3006
|
-
"V0110"
|
|
3165
|
+
countdesc .. " of " .. describeAlternatives(tvals),
|
|
3166
|
+
typify(cval),
|
|
3167
|
+
cval,
|
|
3168
|
+
"V0310"
|
|
3007
3169
|
)
|
|
3008
3170
|
)
|
|
3009
|
-
else
|
|
3010
|
-
delprop(parent, key)
|
|
3011
3171
|
end
|
|
3172
|
+
|
|
3173
|
+
return SKIP
|
|
3012
3174
|
end
|
|
3013
3175
|
|
|
3014
|
-
--
|
|
3015
|
-
--
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
end
|
|
3176
|
+
-- Count the specs that admit the value: ['`$NOF`', count, spec, ...], where
|
|
3177
|
+
-- count is an integer, or a map holding min, max or both.
|
|
3178
|
+
local function validate_NOF(inj, _val, _ref, store)
|
|
3179
|
+
return _validatecount(inj, store, "$NOF", true)
|
|
3180
|
+
end
|
|
3020
3181
|
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3182
|
+
-- Every spec admits the value: ['`$ALL`', spec, ...].
|
|
3183
|
+
local function validate_ALL(inj, _val, _ref, store)
|
|
3184
|
+
return _validatecount(inj, store, "$ALL", false)
|
|
3185
|
+
end
|
|
3024
3186
|
|
|
3025
|
-
|
|
3026
|
-
|
|
3187
|
+
-- The bounds of a $LEN bound, with -1 for no maximum, and the words for it,
|
|
3188
|
+
-- which are absent when the bound is invalid.
|
|
3189
|
+
local function _lenbound(bound)
|
|
3190
|
+
local lo, hi, countdesc = _nofcount(bound, -1)
|
|
3027
3191
|
|
|
3028
|
-
|
|
3029
|
-
|
|
3192
|
+
if NONE == countdesc then
|
|
3193
|
+
return 0, 0, NONE
|
|
3194
|
+
end
|
|
3030
3195
|
|
|
3031
|
-
|
|
3032
|
-
|
|
3196
|
+
local desc
|
|
3197
|
+
if lo == hi then
|
|
3198
|
+
desc = stringify(lo)
|
|
3199
|
+
elseif -1 == hi then
|
|
3200
|
+
desc = "at least " .. stringify(lo)
|
|
3201
|
+
elseif 0 == lo then
|
|
3202
|
+
desc = "at most " .. stringify(hi)
|
|
3203
|
+
else
|
|
3204
|
+
desc = stringify(lo) .. " to " .. stringify(hi)
|
|
3033
3205
|
end
|
|
3034
3206
|
|
|
3035
|
-
|
|
3207
|
+
return lo, hi, "of length " .. desc
|
|
3208
|
+
end
|
|
3036
3209
|
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3210
|
+
-- The words for a $RANGE bound, which are absent when the bound is invalid.
|
|
3211
|
+
local function _rangedesc(bound)
|
|
3212
|
+
if not ismap(bound) then
|
|
3213
|
+
return NONE
|
|
3040
3214
|
end
|
|
3041
3215
|
|
|
3042
|
-
local
|
|
3216
|
+
local min = getprop(bound, "min")
|
|
3217
|
+
local max = getprop(bound, "max")
|
|
3218
|
+
local gt = getprop(bound, "gt")
|
|
3219
|
+
local lt = getprop(bound, "lt")
|
|
3043
3220
|
|
|
3044
|
-
|
|
3045
|
-
if
|
|
3046
|
-
|
|
3047
|
-
|
|
3221
|
+
local lower, upper = min, max
|
|
3222
|
+
if NONE == lower then
|
|
3223
|
+
lower = gt
|
|
3224
|
+
end
|
|
3225
|
+
if NONE == upper then
|
|
3226
|
+
upper = lt
|
|
3048
3227
|
end
|
|
3049
3228
|
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3229
|
+
local function isnum(n)
|
|
3230
|
+
return NONE == n or 0 < (T_number & typify(n))
|
|
3231
|
+
end
|
|
3232
|
+
|
|
3233
|
+
local numkeys = 0
|
|
3234
|
+
for _, key in ipairs({ "min", "max", "gt", "lt" }) do
|
|
3235
|
+
if NONE ~= getprop(bound, key) then
|
|
3236
|
+
numkeys = numkeys + 1
|
|
3054
3237
|
end
|
|
3238
|
+
end
|
|
3055
3239
|
|
|
3056
|
-
|
|
3057
|
-
|
|
3240
|
+
local valid = 0 < size(bound)
|
|
3241
|
+
and size(bound) == numkeys
|
|
3242
|
+
and (NONE == min or NONE == gt)
|
|
3243
|
+
and (NONE == max or NONE == lt)
|
|
3244
|
+
and isnum(min)
|
|
3245
|
+
and isnum(max)
|
|
3246
|
+
and isnum(gt)
|
|
3247
|
+
and isnum(lt)
|
|
3248
|
+
and (NONE == lower or NONE == upper or lower <= upper)
|
|
3058
3249
|
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3250
|
+
if not valid then
|
|
3251
|
+
return NONE
|
|
3252
|
+
end
|
|
3062
3253
|
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3254
|
+
local parts = {}
|
|
3255
|
+
if NONE ~= min then
|
|
3256
|
+
table.insert(parts, "at least " .. stringify(min))
|
|
3257
|
+
elseif NONE ~= gt then
|
|
3258
|
+
table.insert(parts, "greater than " .. stringify(gt))
|
|
3259
|
+
end
|
|
3260
|
+
if NONE ~= max then
|
|
3261
|
+
table.insert(parts, "at most " .. stringify(max))
|
|
3262
|
+
elseif NONE ~= lt then
|
|
3263
|
+
table.insert(parts, "less than " .. stringify(lt))
|
|
3264
|
+
end
|
|
3068
3265
|
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3266
|
+
return table.concat(parts, " and ")
|
|
3267
|
+
end
|
|
3268
|
+
|
|
3269
|
+
-- A number within a valid $RANGE bound.
|
|
3270
|
+
local function _inrange(bound, val)
|
|
3271
|
+
local min = getprop(bound, "min")
|
|
3272
|
+
local max = getprop(bound, "max")
|
|
3273
|
+
local gt = getprop(bound, "gt")
|
|
3274
|
+
local lt = getprop(bound, "lt")
|
|
3275
|
+
|
|
3276
|
+
return (NONE == min or min <= val)
|
|
3277
|
+
and (NONE == max or val <= max)
|
|
3278
|
+
and (NONE == gt or gt < val)
|
|
3279
|
+
and (NONE == lt or val < lt)
|
|
3280
|
+
end
|
|
3281
|
+
|
|
3282
|
+
-- A $LIKE pattern compiled by the in-tree engine in src/regex.lua, which raises
|
|
3283
|
+
-- on a bad pattern; absent unless it compiles.
|
|
3284
|
+
local function _likere(pattern)
|
|
3285
|
+
if S_string ~= type(pattern) then
|
|
3286
|
+
return NONE
|
|
3287
|
+
end
|
|
3288
|
+
local ok, re = pcall(re_compile, pattern)
|
|
3289
|
+
return ok and re or NONE
|
|
3290
|
+
end
|
|
3291
|
+
|
|
3292
|
+
-- The bounding list directives: a bound or pattern, then at most one spec that also admits.
|
|
3293
|
+
local function _validatebound(inj, store, name)
|
|
3294
|
+
local mode, parent, keyI = inj.mode, inj.parent, inj.keyI
|
|
3295
|
+
|
|
3296
|
+
if M_VAL ~= mode then
|
|
3297
|
+
return NONE
|
|
3298
|
+
end
|
|
3299
|
+
|
|
3300
|
+
if not islist(parent) or 0 ~= keyI then
|
|
3301
|
+
table.insert(
|
|
3302
|
+
inj.errs,
|
|
3303
|
+
"The "
|
|
3304
|
+
.. name
|
|
3305
|
+
.. " validator at field "
|
|
3306
|
+
.. pathify(inj.path, 1, 1)
|
|
3307
|
+
.. " must be the first element of an array."
|
|
3308
|
+
)
|
|
3309
|
+
return NONE
|
|
3310
|
+
end
|
|
3311
|
+
|
|
3312
|
+
local cval = _slotval(inj)
|
|
3313
|
+
|
|
3314
|
+
inj.keyI = size(inj.keys)
|
|
3315
|
+
|
|
3316
|
+
-- As for the counting directives: SKIP keeps inject off the detached list.
|
|
3317
|
+
inj:setval(cval, 2)
|
|
3318
|
+
|
|
3319
|
+
inj.path = slice(inj.path, -1)
|
|
3320
|
+
|
|
3321
|
+
local field = "The " .. name .. " validator at field " .. pathify(inj.path, 1)
|
|
3322
|
+
local nargs = size(parent) - 1
|
|
3323
|
+
local islen = "$LEN" == name
|
|
3324
|
+
local islike = "$LIKE" == name
|
|
3325
|
+
local argname = islike and "pattern" or "bound"
|
|
3326
|
+
|
|
3327
|
+
if nargs < 1 or 2 < nargs then
|
|
3328
|
+
table.insert(inj.errs, field .. " must have a " .. argname .. " and at most one spec.")
|
|
3329
|
+
return SKIP
|
|
3330
|
+
end
|
|
3331
|
+
|
|
3332
|
+
local bound = getprop(parent, 1)
|
|
3333
|
+
local like = islike and _likere(bound) or NONE
|
|
3334
|
+
local lo, hi, desc = 0, 0, NONE
|
|
3335
|
+
if islen then
|
|
3336
|
+
lo, hi, desc = _lenbound(bound)
|
|
3337
|
+
elseif islike then
|
|
3338
|
+
if NONE ~= like then
|
|
3339
|
+
desc = "like /" .. bound .. "/"
|
|
3340
|
+
end
|
|
3341
|
+
else
|
|
3342
|
+
desc = _rangedesc(bound)
|
|
3343
|
+
end
|
|
3344
|
+
|
|
3345
|
+
if NONE == desc then
|
|
3346
|
+
table.insert(
|
|
3347
|
+
inj.errs,
|
|
3348
|
+
field .. " has an invalid " .. argname .. ": " .. stringify(bound) .. "."
|
|
3349
|
+
)
|
|
3350
|
+
return SKIP
|
|
3351
|
+
end
|
|
3352
|
+
|
|
3353
|
+
local ctype = typify(cval)
|
|
3354
|
+
|
|
3355
|
+
if 2 == nargs and not _admits(cval, getprop(parent, 2), inj, store) then
|
|
3356
|
+
local specdesc = stringify(getprop(parent, 2)):gsub("`%$([A-Z]+)`", string.lower)
|
|
3357
|
+
table.insert(inj.errs, _invalidTypeMsg(inj.path, specdesc, ctype, cval, "V0410"))
|
|
3358
|
+
return SKIP
|
|
3359
|
+
end
|
|
3360
|
+
|
|
3361
|
+
if 0 == ((islen and (T_string | T_list | T_map) or islike and T_string or T_number) & ctype) then
|
|
3362
|
+
local needtype = islen and "string, list or map" or islike and S_string or S_number
|
|
3363
|
+
table.insert(inj.errs, _invalidTypeMsg(inj.path, needtype, ctype, cval, "V0420"))
|
|
3364
|
+
return SKIP
|
|
3365
|
+
end
|
|
3366
|
+
|
|
3367
|
+
local inbound
|
|
3368
|
+
if islen then
|
|
3369
|
+
-- utf8.len fails on invalid UTF-8, which then counts its bytes.
|
|
3370
|
+
local len = S_string == type(cval) and utf8.len(cval) or size(cval)
|
|
3371
|
+
inbound = lo <= len and (-1 == hi or len <= hi)
|
|
3372
|
+
elseif islike then
|
|
3373
|
+
inbound = re_test(like, cval)
|
|
3374
|
+
else
|
|
3375
|
+
inbound = _inrange(bound, cval)
|
|
3376
|
+
end
|
|
3377
|
+
|
|
3378
|
+
if not inbound then
|
|
3379
|
+
local needtype = (1 < size(inj.path) and "" or "value ") .. desc
|
|
3380
|
+
table.insert(inj.errs, _invalidTypeMsg(inj.path, needtype, ctype, cval, "V0430"))
|
|
3381
|
+
end
|
|
3382
|
+
|
|
3383
|
+
return SKIP
|
|
3384
|
+
end
|
|
3385
|
+
|
|
3386
|
+
-- The value's length is within a bound: ['`$LEN`', bound, spec?], where the
|
|
3387
|
+
-- bound is as for a $NOF count. A string's length is in code points.
|
|
3388
|
+
local function validate_LEN(inj, _val, _ref, store)
|
|
3389
|
+
return _validatebound(inj, store, "$LEN")
|
|
3390
|
+
end
|
|
3391
|
+
|
|
3392
|
+
-- The value is a number within a bound: ['`$RANGE`', bound, spec?], where the
|
|
3393
|
+
-- bound holds min or gt, max or lt, or one of each.
|
|
3394
|
+
local function validate_RANGE(inj, _val, _ref, store)
|
|
3395
|
+
return _validatebound(inj, store, "$RANGE")
|
|
3396
|
+
end
|
|
3397
|
+
|
|
3398
|
+
local function validate_LIKE(inj, _val, _ref, store)
|
|
3399
|
+
return _validatebound(inj, store, "$LIKE")
|
|
3400
|
+
end
|
|
3401
|
+
|
|
3402
|
+
-- This is the "modify" argument to inject. Use this to perform
|
|
3403
|
+
-- generic validation. Runs *after* any special commands.
|
|
3404
|
+
_validation = function(pval, key, parent, inj)
|
|
3405
|
+
if NONE == inj then
|
|
3406
|
+
return
|
|
3407
|
+
end
|
|
3408
|
+
|
|
3409
|
+
if SKIP == pval then
|
|
3410
|
+
return
|
|
3411
|
+
end
|
|
3412
|
+
|
|
3413
|
+
-- select needs exact matches
|
|
3414
|
+
local exact = getprop(inj.meta, S_BEXACT, false)
|
|
3415
|
+
|
|
3416
|
+
-- Current val to verify.
|
|
3417
|
+
local cval = denoval(getprop(inj.dparent, key))
|
|
3418
|
+
|
|
3419
|
+
if NONE == inj or (not exact and NONE == cval) then
|
|
3420
|
+
return
|
|
3421
|
+
end
|
|
3422
|
+
|
|
3423
|
+
local ptype = typify(pval)
|
|
3424
|
+
|
|
3425
|
+
-- Delete any special commands remaining.
|
|
3426
|
+
if 0 < (T_string & ptype) and string.find(pval, S_DS, 1, true) then
|
|
3427
|
+
return
|
|
3428
|
+
end
|
|
3429
|
+
|
|
3430
|
+
local ctype = typify(cval)
|
|
3431
|
+
|
|
3432
|
+
-- Type mismatch.
|
|
3433
|
+
if ptype ~= ctype and NONE ~= pval then
|
|
3434
|
+
table.insert(inj.errs, _invalidTypeMsg(inj.path, typename(ptype), ctype, cval, "V0010"))
|
|
3435
|
+
return
|
|
3436
|
+
end
|
|
3437
|
+
|
|
3438
|
+
if ismap(cval) then
|
|
3439
|
+
if not ismap(pval) then
|
|
3440
|
+
table.insert(inj.errs, _invalidTypeMsg(inj.path, typename(ptype), ctype, cval, "V0020"))
|
|
3441
|
+
return
|
|
3442
|
+
end
|
|
3443
|
+
|
|
3444
|
+
local ckeys = keysof(cval)
|
|
3445
|
+
local pkeys = keysof(pval)
|
|
3446
|
+
|
|
3447
|
+
-- Only a spec written as {} is open, even if named keys resolved away.
|
|
3448
|
+
if (0 < size(pkeys) or inj.named) and true ~= getprop(pval, "`$OPEN`") then
|
|
3449
|
+
local badkeys = {}
|
|
3450
|
+
|
|
3451
|
+
for _, ckey in ipairs(ckeys) do
|
|
3452
|
+
if not haskey(pval, ckey) then
|
|
3453
|
+
table.insert(badkeys, ckey)
|
|
3454
|
+
end
|
|
3455
|
+
end
|
|
3456
|
+
|
|
3457
|
+
-- Closed object, so reject extra keys not in shape.
|
|
3458
|
+
if 0 < size(badkeys) then
|
|
3459
|
+
local msg = "Unexpected keys at field "
|
|
3072
3460
|
.. pathify(inj.path, 1)
|
|
3073
3461
|
.. S_VIZ
|
|
3074
3462
|
.. table.concat(badkeys, ", ")
|
|
@@ -3084,6 +3472,22 @@ _validation = function(pval, key, parent, inj)
|
|
|
3084
3472
|
elseif islist(cval) then
|
|
3085
3473
|
if not islist(pval) then
|
|
3086
3474
|
table.insert(inj.errs, _invalidTypeMsg(inj.path, typename(ptype), ctype, cval, "V0030"))
|
|
3475
|
+
elseif 0 < size(pval) then
|
|
3476
|
+
-- Closed list, so reject items past the end of the shape.
|
|
3477
|
+
local badkeys = {}
|
|
3478
|
+
for i = size(pval), size(cval) - 1 do
|
|
3479
|
+
table.insert(badkeys, strkey(i))
|
|
3480
|
+
end
|
|
3481
|
+
if 0 < size(badkeys) then
|
|
3482
|
+
local msg = "Unexpected keys at field "
|
|
3483
|
+
.. pathify(inj.path, 1)
|
|
3484
|
+
.. S_VIZ
|
|
3485
|
+
.. table.concat(badkeys, ", ")
|
|
3486
|
+
table.insert(inj.errs, msg)
|
|
3487
|
+
end
|
|
3488
|
+
else
|
|
3489
|
+
-- Empty spec list [] means list can be open (any items).
|
|
3490
|
+
merge({ pval, cval })
|
|
3087
3491
|
end
|
|
3088
3492
|
elseif exact then
|
|
3089
3493
|
if cval ~= pval then
|
|
@@ -3121,6 +3525,7 @@ validate = function(data, spec, injdef)
|
|
|
3121
3525
|
local errs = (injdef and injdef.errs) or {}
|
|
3122
3526
|
setmetatable(errs, { __jsontype = "array" })
|
|
3123
3527
|
|
|
3528
|
+
local top = getprop(extra, S_DTOP)
|
|
3124
3529
|
local store = merge({
|
|
3125
3530
|
{
|
|
3126
3531
|
-- Remove the transform commands.
|
|
@@ -3146,8 +3551,13 @@ validate = function(data, spec, injdef)
|
|
|
3146
3551
|
["$INSTANCE"] = validate_TYPE,
|
|
3147
3552
|
["$ANY"] = validate_ANY,
|
|
3148
3553
|
["$CHILD"] = validate_CHILD,
|
|
3149
|
-
["$ONE"] = validate_ONE,
|
|
3150
3554
|
["$EXACT"] = validate_EXACT,
|
|
3555
|
+
["$NOF"] = validate_NOF,
|
|
3556
|
+
["$ALL"] = validate_ALL,
|
|
3557
|
+
["$LEN"] = validate_LEN,
|
|
3558
|
+
["$RANGE"] = validate_RANGE,
|
|
3559
|
+
["$LIKE"] = validate_LIKE,
|
|
3560
|
+
["$REST"] = validate_REST,
|
|
3151
3561
|
},
|
|
3152
3562
|
|
|
3153
3563
|
getdef(extra, {}),
|
|
@@ -3157,17 +3567,27 @@ validate = function(data, spec, injdef)
|
|
|
3157
3567
|
["$ERRS"] = errs,
|
|
3158
3568
|
},
|
|
3159
3569
|
}, 1)
|
|
3570
|
+
_keeptop(store, top)
|
|
3160
3571
|
|
|
3161
3572
|
local meta = (injdef and injdef.meta) or {}
|
|
3162
3573
|
setprop(meta, S_BEXACT, getprop(meta, S_BEXACT, false))
|
|
3163
3574
|
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3575
|
+
-- A spec that names an unknown checker validates nothing.
|
|
3576
|
+
local numerrs = size(errs)
|
|
3577
|
+
_checknames(spec, store, setmetatable({}, { __jsontype = "array" }), errs)
|
|
3578
|
+
|
|
3579
|
+
local out
|
|
3580
|
+
if numerrs < size(errs) then
|
|
3581
|
+
out = clone(data)
|
|
3582
|
+
else
|
|
3583
|
+
out = transform(data, spec, {
|
|
3584
|
+
meta = meta,
|
|
3585
|
+
extra = store,
|
|
3586
|
+
modify = _validation,
|
|
3587
|
+
handler = _validatehandler,
|
|
3588
|
+
errs = errs,
|
|
3589
|
+
})
|
|
3590
|
+
end
|
|
3171
3591
|
|
|
3172
3592
|
local generr = (0 < size(errs) and not collect)
|
|
3173
3593
|
|
|
@@ -3280,7 +3700,12 @@ local function select_NOT(inj, _val, _ref, store)
|
|
|
3280
3700
|
end
|
|
3281
3701
|
end
|
|
3282
3702
|
|
|
3283
|
-
local function select_CMP(inj,
|
|
3703
|
+
local function select_CMP(inj, val, ref, store)
|
|
3704
|
+
-- The list form of $LIKE is validate's checker; the key form is this operator.
|
|
3705
|
+
if M_VAL == inj.mode and "$LIKE" == ref then
|
|
3706
|
+
return validate_LIKE(inj, val, ref, store)
|
|
3707
|
+
end
|
|
3708
|
+
|
|
3284
3709
|
if M_KEYPRE == inj.mode then
|
|
3285
3710
|
local term = getprop(inj.parent, inj.key)
|
|
3286
3711
|
local gkey = getelem(inj.path, -2)
|
|
@@ -3364,12 +3789,7 @@ local function select_fn(children, query)
|
|
|
3364
3789
|
|
|
3365
3790
|
local q = clone(query)
|
|
3366
3791
|
|
|
3367
|
-
|
|
3368
|
-
if ismap(v) then
|
|
3369
|
-
setprop(v, "`$OPEN`", getprop(v, "`$OPEN`", true))
|
|
3370
|
-
end
|
|
3371
|
-
return v
|
|
3372
|
-
end)
|
|
3792
|
+
_openquery(q)
|
|
3373
3793
|
|
|
3374
3794
|
for _, child in ipairs(children) do
|
|
3375
3795
|
injdef.errs = {}
|
|
@@ -3384,11 +3804,33 @@ local function select_fn(children, query)
|
|
|
3384
3804
|
return results
|
|
3385
3805
|
end
|
|
3386
3806
|
|
|
3807
|
+
-- Open every map in a select query, so a child may hold keys the query does
|
|
3808
|
+
-- not name, but leave a directive's literals as written: what $EXACT
|
|
3809
|
+
-- compares, and the count or bound of $NOF, $LEN and $RANGE.
|
|
3810
|
+
_openquery = function(q)
|
|
3811
|
+
if ismap(q) then
|
|
3812
|
+
setprop(q, "`$OPEN`", getprop(q, "`$OPEN`", true))
|
|
3813
|
+
for _, key in ipairs(keysof(q)) do
|
|
3814
|
+
_openquery(q[key])
|
|
3815
|
+
end
|
|
3816
|
+
elseif islist(q) then
|
|
3817
|
+
local head = q[1]
|
|
3818
|
+
local exact = "`$EXACT`" == head
|
|
3819
|
+
local bounded = "`$NOF`" == head or "`$LEN`" == head or "`$RANGE`" == head
|
|
3820
|
+
for i = 1, size(q) do
|
|
3821
|
+
if 1 == i or not (exact or (bounded and 2 == i)) then
|
|
3822
|
+
_openquery(q[i])
|
|
3823
|
+
end
|
|
3824
|
+
end
|
|
3825
|
+
end
|
|
3826
|
+
end
|
|
3827
|
+
|
|
3387
3828
|
-- Internal utilities
|
|
3388
3829
|
-- ==================
|
|
3389
3830
|
|
|
3390
3831
|
-- Build a type validation error message.
|
|
3391
3832
|
_invalidTypeMsg = function(path, needtype, vt, v, _whence)
|
|
3833
|
+
v = denoval(v)
|
|
3392
3834
|
local vs = (v == nil or v == S_null) and "no value" or stringify(v)
|
|
3393
3835
|
local vtname = type(vt) == S_number and typename(vt) or tostring(vt)
|
|
3394
3836
|
|
|
@@ -3403,6 +3845,215 @@ _invalidTypeMsg = function(path, needtype, vt, v, _whence)
|
|
|
3403
3845
|
return msg
|
|
3404
3846
|
end
|
|
3405
3847
|
|
|
3848
|
+
-- Names a validate spec may use besides its checkers: transform's that it keeps, and $OPEN.
|
|
3849
|
+
local VALIDATE_NAMES = {
|
|
3850
|
+
"$TOP",
|
|
3851
|
+
"$SPEC",
|
|
3852
|
+
"$BT",
|
|
3853
|
+
"$DS",
|
|
3854
|
+
"$WHEN",
|
|
3855
|
+
"$ANNO",
|
|
3856
|
+
"$REF",
|
|
3857
|
+
"$FORMAT",
|
|
3858
|
+
"$APPLY",
|
|
3859
|
+
"$OPEN",
|
|
3860
|
+
}
|
|
3861
|
+
|
|
3862
|
+
-- Report each checker the spec names that validate lacks, and each misplaced
|
|
3863
|
+
-- $REST; $EXACT's arguments are literals. Last: spec is a list's last item.
|
|
3864
|
+
_checknames = function(spec, store, path, errs, last)
|
|
3865
|
+
local name = _refname(spec)
|
|
3866
|
+
if NONE ~= name then
|
|
3867
|
+
if _unknownname(name, store) then
|
|
3868
|
+
table.insert(errs, "Unknown validator " .. name .. " at field " .. pathify(path) .. ".")
|
|
3869
|
+
elseif "$REST" == name then
|
|
3870
|
+
table.insert(errs, _restmsg(path, " must be the last element of an array."))
|
|
3871
|
+
end
|
|
3872
|
+
return
|
|
3873
|
+
end
|
|
3874
|
+
|
|
3875
|
+
local head = islist(spec) and _refname(spec[1]) or NONE
|
|
3876
|
+
if "$EXACT" == head then
|
|
3877
|
+
return
|
|
3878
|
+
end
|
|
3879
|
+
|
|
3880
|
+
if "$REST" == head then
|
|
3881
|
+
if true ~= last then
|
|
3882
|
+
table.insert(errs, _restmsg(path, " must be the last element of an array."))
|
|
3883
|
+
elseif 2 ~= size(spec) then
|
|
3884
|
+
table.insert(errs, _restmsg(path, " must have exactly one spec."))
|
|
3885
|
+
end
|
|
3886
|
+
_checknames(spec[2], store, flatten({ path, 1 }), errs)
|
|
3887
|
+
return
|
|
3888
|
+
end
|
|
3889
|
+
|
|
3890
|
+
local restkey = "`$REST`"
|
|
3891
|
+
if ismap(spec) and NONE ~= getprop(spec, restkey) and NONE ~= getprop(spec, "`$CHILD`") then
|
|
3892
|
+
table.insert(errs, _restmsg(path, " cannot be used with $CHILD."))
|
|
3893
|
+
end
|
|
3894
|
+
|
|
3895
|
+
local lastkey = islist(spec) and strkey(size(spec) - 1) or NONE
|
|
3896
|
+
for _, key in ipairs(keysof(spec)) do
|
|
3897
|
+
if ismap(spec) and restkey ~= key then
|
|
3898
|
+
_checknames(key, store, path, errs)
|
|
3899
|
+
end
|
|
3900
|
+
_checknames(getprop(spec, key), store, flatten({ path, key }), errs, lastkey == key)
|
|
3901
|
+
end
|
|
3902
|
+
end
|
|
3903
|
+
|
|
3904
|
+
-- The name a whole-string reference gives, when it is a checker name in any case.
|
|
3905
|
+
-- The reference is read as _injectstr reads a full injection.
|
|
3906
|
+
_refname = function(val)
|
|
3907
|
+
local ref = type(val) == S_string and val:match("^`([^`]*)`$") or NONE
|
|
3908
|
+
if NONE ~= ref then
|
|
3909
|
+
ref = ref:match("^(%$[A-Z]+)%d+$") or ref
|
|
3910
|
+
if ref:upper():match("^%$[A-Z]+$") then
|
|
3911
|
+
return ref
|
|
3912
|
+
end
|
|
3913
|
+
end
|
|
3914
|
+
return NONE
|
|
3915
|
+
end
|
|
3916
|
+
|
|
3917
|
+
-- Unknown: undefined and upper case, or a defined name in another case. Null
|
|
3918
|
+
-- disables a name; this port's store spells that null `false`.
|
|
3919
|
+
_unknownname = function(name, store)
|
|
3920
|
+
local function known(n)
|
|
3921
|
+
for _, vname in ipairs(VALIDATE_NAMES) do
|
|
3922
|
+
if vname == n then
|
|
3923
|
+
return true
|
|
3924
|
+
end
|
|
3925
|
+
end
|
|
3926
|
+
local found = getprop(store, n)
|
|
3927
|
+
return NONE ~= found and false ~= found
|
|
3928
|
+
end
|
|
3929
|
+
local upper = name:upper()
|
|
3930
|
+
return not known(name) and (upper == name or known(upper))
|
|
3931
|
+
end
|
|
3932
|
+
|
|
3933
|
+
-- The data value at a list directive's slot. The directive's own dparent was
|
|
3934
|
+
-- read with getprop, which reports a stored null as absent.
|
|
3935
|
+
_slotval = function(inj)
|
|
3936
|
+
local prior = inj.prior
|
|
3937
|
+
if NONE == prior then
|
|
3938
|
+
return inj.dparent
|
|
3939
|
+
end
|
|
3940
|
+
return getprop(prior.dparent, prior.key)
|
|
3941
|
+
end
|
|
3942
|
+
|
|
3943
|
+
-- JSON equality: numbers by value, lists in order, maps by key in any order.
|
|
3944
|
+
_deepequal = function(a, b)
|
|
3945
|
+
if a == b then
|
|
3946
|
+
return true
|
|
3947
|
+
end
|
|
3948
|
+
|
|
3949
|
+
local atype = typify(a)
|
|
3950
|
+
if atype ~= typify(b) or 0 == ((T_list | T_map) & atype) then
|
|
3951
|
+
return false
|
|
3952
|
+
end
|
|
3953
|
+
|
|
3954
|
+
local akeys = keysof(a)
|
|
3955
|
+
local bkeys = keysof(b)
|
|
3956
|
+
if size(akeys) ~= size(bkeys) then
|
|
3957
|
+
return false
|
|
3958
|
+
end
|
|
3959
|
+
|
|
3960
|
+
for kI = 1, #akeys do
|
|
3961
|
+
local k = akeys[kI]
|
|
3962
|
+
if k ~= bkeys[kI] or not _deepequal(getprop(a, k), getprop(b, k)) then
|
|
3963
|
+
return false
|
|
3964
|
+
end
|
|
3965
|
+
end
|
|
3966
|
+
|
|
3967
|
+
return true
|
|
3968
|
+
end
|
|
3969
|
+
|
|
3970
|
+
-- Every member val has is in out, unchanged. A member only out has is a
|
|
3971
|
+
-- default the spec supplied, and is ignored.
|
|
3972
|
+
_keeps = function(val, out)
|
|
3973
|
+
if NONE == val then
|
|
3974
|
+
return true
|
|
3975
|
+
end
|
|
3976
|
+
|
|
3977
|
+
if 0 == ((T_list | T_map) & typify(val)) or islist(val) ~= islist(out) or not isnode(out) then
|
|
3978
|
+
return _deepequal(val, out)
|
|
3979
|
+
end
|
|
3980
|
+
|
|
3981
|
+
for _, k in ipairs(keysof(val)) do
|
|
3982
|
+
if not _keeps(getprop(val, k), getprop(out, k)) then
|
|
3983
|
+
return false
|
|
3984
|
+
end
|
|
3985
|
+
end
|
|
3986
|
+
|
|
3987
|
+
return true
|
|
3988
|
+
end
|
|
3989
|
+
|
|
3990
|
+
-- A spec admits a value when validating the value against it finds no error
|
|
3991
|
+
-- and gives back the value as it is.
|
|
3992
|
+
_admits = function(val, spec, inj, store)
|
|
3993
|
+
-- A Lua node holds no null, so a nil slot below the root is a missing value,
|
|
3994
|
+
-- which the nested validation must see as no value: NOVAL.
|
|
3995
|
+
if nil == val and NONE ~= inj.prior and NONE ~= inj.prior.prior then
|
|
3996
|
+
val = NOVAL
|
|
3997
|
+
end
|
|
3998
|
+
|
|
3999
|
+
local terrs = setmetatable({}, { __jsontype = "array" })
|
|
4000
|
+
|
|
4001
|
+
local vstore = merge({ {}, store }, 1)
|
|
4002
|
+
vstore["$TOP"] = val
|
|
4003
|
+
|
|
4004
|
+
local out = validate(val, spec, {
|
|
4005
|
+
extra = vstore,
|
|
4006
|
+
errs = terrs,
|
|
4007
|
+
meta = inj.meta,
|
|
4008
|
+
})
|
|
4009
|
+
|
|
4010
|
+
return 0 == size(terrs) and _keeps(denoval(val), out)
|
|
4011
|
+
end
|
|
4012
|
+
|
|
4013
|
+
-- The bounds of a $NOF count, and the words for it, which are absent when
|
|
4014
|
+
-- the count is invalid. Without a max, the bound is the number of specs.
|
|
4015
|
+
_nofcount = function(count, numtvals)
|
|
4016
|
+
local function isnat(n)
|
|
4017
|
+
return 0 < (T_integer & typify(n)) and 0 <= n
|
|
4018
|
+
end
|
|
4019
|
+
|
|
4020
|
+
if isnat(count) then
|
|
4021
|
+
return count, count, 0 == count and "none" or ("exactly " .. stringify(count))
|
|
4022
|
+
end
|
|
4023
|
+
|
|
4024
|
+
local min = getprop(count, "min")
|
|
4025
|
+
local max = getprop(count, "max")
|
|
4026
|
+
|
|
4027
|
+
local valid = ismap(count)
|
|
4028
|
+
and 0 < size(count)
|
|
4029
|
+
and size(count) == (NONE == min and 0 or 1) + (NONE == max and 0 or 1)
|
|
4030
|
+
and (NONE == min or isnat(min))
|
|
4031
|
+
and (NONE == max or isnat(max))
|
|
4032
|
+
and (NONE == min or NONE == max or min <= max)
|
|
4033
|
+
|
|
4034
|
+
if not valid then
|
|
4035
|
+
return 0, 0, NONE
|
|
4036
|
+
end
|
|
4037
|
+
|
|
4038
|
+
local lo = NONE == min and 0 or min
|
|
4039
|
+
local hi = NONE == max and numtvals or max
|
|
4040
|
+
|
|
4041
|
+
local desc
|
|
4042
|
+
if NONE == max then
|
|
4043
|
+
desc = "at least " .. stringify(lo)
|
|
4044
|
+
elseif 0 == hi then
|
|
4045
|
+
desc = "none"
|
|
4046
|
+
elseif NONE == min then
|
|
4047
|
+
desc = "at most " .. stringify(hi)
|
|
4048
|
+
elseif lo == hi then
|
|
4049
|
+
desc = "exactly " .. stringify(lo)
|
|
4050
|
+
else
|
|
4051
|
+
desc = stringify(lo) .. " to " .. stringify(hi)
|
|
4052
|
+
end
|
|
4053
|
+
|
|
4054
|
+
return lo, hi, desc
|
|
4055
|
+
end
|
|
4056
|
+
|
|
3406
4057
|
-- Default inject handler for transforms.
|
|
3407
4058
|
_injecthandler = function(inj, val, ref, store)
|
|
3408
4059
|
local out = val
|
|
@@ -3518,10 +4169,399 @@ _injectstr = function(val, store, inj)
|
|
|
3518
4169
|
return out
|
|
3519
4170
|
end
|
|
3520
4171
|
|
|
4172
|
+
----------------------------------------------------------
|
|
4173
|
+
-- Condense: a JSON-shaped node as a symbol table and a list of shared nodes.
|
|
4174
|
+
----------------------------------------------------------
|
|
4175
|
+
|
|
4176
|
+
iscondensed = function(val)
|
|
4177
|
+
-- The version must MATCH, not merely be numeric: a future profile would
|
|
4178
|
+
-- otherwise be decoded under this one's schema.
|
|
4179
|
+
return type(val) == "table"
|
|
4180
|
+
and CONDENSE_VERSION == val[S_condense]
|
|
4181
|
+
and ismap(val)
|
|
4182
|
+
and islist(val[S_condsym])
|
|
4183
|
+
and islist(val[S_condnode])
|
|
4184
|
+
and type(val[S_condroot]) == S_number
|
|
4185
|
+
end
|
|
4186
|
+
|
|
4187
|
+
-- One key per number value, as joining a JS number gives: -0 is 0.
|
|
4188
|
+
local function condenseNumKey(n)
|
|
4189
|
+
local f = n + 0.0
|
|
4190
|
+
if 0 == f then
|
|
4191
|
+
return "0"
|
|
4192
|
+
end
|
|
4193
|
+
return string.format("%.17g", f)
|
|
4194
|
+
end
|
|
4195
|
+
|
|
4196
|
+
-- Condense any JSON-shaped node. Pure: the same input always produces a
|
|
4197
|
+
-- byte-identical result, on every port.
|
|
4198
|
+
local function condense(val)
|
|
4199
|
+
val = denoval(val)
|
|
4200
|
+
|
|
4201
|
+
local symset = {}
|
|
4202
|
+
|
|
4203
|
+
local function collect(n)
|
|
4204
|
+
if ismap(n) then
|
|
4205
|
+
for k, v in pairs(n) do
|
|
4206
|
+
symset[k] = true
|
|
4207
|
+
collect(v)
|
|
4208
|
+
end
|
|
4209
|
+
elseif islist(n) then
|
|
4210
|
+
for i = 1, #n do
|
|
4211
|
+
collect(n[i])
|
|
4212
|
+
end
|
|
4213
|
+
elseif type(n) == S_string then
|
|
4214
|
+
symset[n] = true
|
|
4215
|
+
end
|
|
4216
|
+
end
|
|
4217
|
+
collect(val)
|
|
4218
|
+
|
|
4219
|
+
local sym = setmetatable({}, { __jsontype = "array" })
|
|
4220
|
+
for s in pairs(symset) do
|
|
4221
|
+
table.insert(sym, s)
|
|
4222
|
+
end
|
|
4223
|
+
table.sort(sym)
|
|
4224
|
+
local symid = {}
|
|
4225
|
+
for i, s in ipairs(sym) do
|
|
4226
|
+
symid[s] = i - 1
|
|
4227
|
+
end
|
|
4228
|
+
|
|
4229
|
+
local node = setmetatable({}, { __jsontype = "array" })
|
|
4230
|
+
local seen = {}
|
|
4231
|
+
|
|
4232
|
+
local function intern(enc)
|
|
4233
|
+
local enckey
|
|
4234
|
+
if CONDENSE_NUM == enc[1] then
|
|
4235
|
+
-- Numbers key by value, as a JS join spells them: 1 and 1.0 share a node.
|
|
4236
|
+
enckey = CONDENSE_NUM .. "," .. condenseNumKey(enc[2])
|
|
4237
|
+
else
|
|
4238
|
+
enckey = table.concat(enc, ",")
|
|
4239
|
+
end
|
|
4240
|
+
local hit = seen[enckey]
|
|
4241
|
+
if nil ~= hit then
|
|
4242
|
+
return hit
|
|
4243
|
+
end
|
|
4244
|
+
local idx = #node
|
|
4245
|
+
table.insert(node, enc)
|
|
4246
|
+
seen[enckey] = idx
|
|
4247
|
+
return idx
|
|
4248
|
+
end
|
|
4249
|
+
|
|
4250
|
+
-- Post-order, so identical subtrees are interned before a parent refers to them.
|
|
4251
|
+
local function build(n)
|
|
4252
|
+
local enc
|
|
4253
|
+
if ismap(n) then
|
|
4254
|
+
enc = { CONDENSE_MAP }
|
|
4255
|
+
-- keysof sorts bytewise, which is code-point order, so the key ids ascend for bisection.
|
|
4256
|
+
for _, k in ipairs(keysof(n)) do
|
|
4257
|
+
table.insert(enc, symid[k])
|
|
4258
|
+
table.insert(enc, build(n[k]))
|
|
4259
|
+
end
|
|
4260
|
+
elseif islist(n) then
|
|
4261
|
+
enc = { CONDENSE_LIST }
|
|
4262
|
+
for i = 1, #n do
|
|
4263
|
+
table.insert(enc, build(n[i]))
|
|
4264
|
+
end
|
|
4265
|
+
elseif type(n) == S_string then
|
|
4266
|
+
enc = { CONDENSE_STR, symid[n] }
|
|
4267
|
+
elseif type(n) == S_number then
|
|
4268
|
+
enc = { CONDENSE_NUM, n }
|
|
4269
|
+
elseif true == n then
|
|
4270
|
+
enc = { CONDENSE_TRUE }
|
|
4271
|
+
elseif false == n then
|
|
4272
|
+
enc = { CONDENSE_FALSE }
|
|
4273
|
+
else
|
|
4274
|
+
enc = { CONDENSE_NULL }
|
|
4275
|
+
end
|
|
4276
|
+
return intern(setmetatable(enc, { __jsontype = "array" }))
|
|
4277
|
+
end
|
|
4278
|
+
|
|
4279
|
+
local root = build(val)
|
|
4280
|
+
|
|
4281
|
+
local out = setmetatable({}, { __jsontype = "object" })
|
|
4282
|
+
out[S_condense] = CONDENSE_VERSION
|
|
4283
|
+
out[S_condsym] = sym
|
|
4284
|
+
out[S_condnode] = node
|
|
4285
|
+
out[S_condroot] = root
|
|
4286
|
+
return out
|
|
4287
|
+
end
|
|
4288
|
+
|
|
4289
|
+
-- A path part as JavaScript's String() spells it.
|
|
4290
|
+
local function condenseStr(val)
|
|
4291
|
+
if type(val) == S_string then
|
|
4292
|
+
return val
|
|
4293
|
+
elseif type(val) == S_number then
|
|
4294
|
+
return numstr(val)
|
|
4295
|
+
elseif type(val) == S_boolean then
|
|
4296
|
+
return tostring(val)
|
|
4297
|
+
end
|
|
4298
|
+
return stringify(val)
|
|
4299
|
+
end
|
|
4300
|
+
|
|
4301
|
+
-- The encoding of node idx, or nil when there is none.
|
|
4302
|
+
local function condenseEnc(cond, idx)
|
|
4303
|
+
local node = type(cond) == "table" and cond[S_condnode] or nil
|
|
4304
|
+
if type(idx) ~= S_number or not islist(node) then
|
|
4305
|
+
return nil
|
|
4306
|
+
end
|
|
4307
|
+
local enc = node[idx + 1]
|
|
4308
|
+
if islist(enc) then
|
|
4309
|
+
return enc
|
|
4310
|
+
end
|
|
4311
|
+
return nil
|
|
4312
|
+
end
|
|
4313
|
+
|
|
4314
|
+
-- Bisect the sorted symbol table: -1 when the string occurs nowhere.
|
|
4315
|
+
local function condenseSymId(cond, key)
|
|
4316
|
+
local sym = cond[S_condsym]
|
|
4317
|
+
local lo, hi = 0, #sym - 1
|
|
4318
|
+
while lo <= hi do
|
|
4319
|
+
local mid = (lo + hi) // 2
|
|
4320
|
+
local s = condenseStr(sym[mid + 1])
|
|
4321
|
+
if s == key then
|
|
4322
|
+
return mid
|
|
4323
|
+
elseif s < key then
|
|
4324
|
+
lo = mid + 1
|
|
4325
|
+
else
|
|
4326
|
+
hi = mid - 1
|
|
4327
|
+
end
|
|
4328
|
+
end
|
|
4329
|
+
return -1
|
|
4330
|
+
end
|
|
4331
|
+
|
|
4332
|
+
-- The node index of key inside node idx, or -1. Touches only this node.
|
|
4333
|
+
local function condenseChild(cond, idx, key)
|
|
4334
|
+
local enc = condenseEnc(cond, idx)
|
|
4335
|
+
if nil == enc or (type(key) ~= S_string and type(key) ~= S_number) then
|
|
4336
|
+
return -1
|
|
4337
|
+
end
|
|
4338
|
+
|
|
4339
|
+
local k = condenseStr(key)
|
|
4340
|
+
|
|
4341
|
+
if CONDENSE_MAP == enc[1] then
|
|
4342
|
+
local symid = condenseSymId(cond, k)
|
|
4343
|
+
if 0 > symid then
|
|
4344
|
+
return -1
|
|
4345
|
+
end
|
|
4346
|
+
-- Pairs live at [2,3], [4,5], ... with keys ascending: bisect the pairs.
|
|
4347
|
+
local lo, hi = 0, (#enc - 1) // 2 - 1
|
|
4348
|
+
while lo <= hi do
|
|
4349
|
+
local mid = (lo + hi) // 2
|
|
4350
|
+
local pk = enc[2 + mid * 2] or -1
|
|
4351
|
+
if pk == symid then
|
|
4352
|
+
return enc[3 + mid * 2] or -1
|
|
4353
|
+
elseif pk < symid then
|
|
4354
|
+
lo = mid + 1
|
|
4355
|
+
else
|
|
4356
|
+
hi = mid - 1
|
|
4357
|
+
end
|
|
4358
|
+
end
|
|
4359
|
+
return -1
|
|
4360
|
+
end
|
|
4361
|
+
|
|
4362
|
+
if CONDENSE_LIST == enc[1] then
|
|
4363
|
+
local i = listindex(k)
|
|
4364
|
+
if nil == i or i >= #enc - 1 then
|
|
4365
|
+
return -1
|
|
4366
|
+
end
|
|
4367
|
+
return enc[2 + i]
|
|
4368
|
+
end
|
|
4369
|
+
|
|
4370
|
+
return -1
|
|
4371
|
+
end
|
|
4372
|
+
|
|
4373
|
+
-- Walk a path from node idx, returning the node index or -1.
|
|
4374
|
+
condenseResolve = function(cond, idx, path)
|
|
4375
|
+
local parts
|
|
4376
|
+
if islist(path) then
|
|
4377
|
+
parts = path
|
|
4378
|
+
elseif type(path) == S_string then
|
|
4379
|
+
-- As JavaScript's split('.'), except that "" is no parts.
|
|
4380
|
+
parts = {}
|
|
4381
|
+
if S_MT ~= path then
|
|
4382
|
+
for part in (path .. S_DT):gmatch("(.-)%.") do
|
|
4383
|
+
table.insert(parts, part)
|
|
4384
|
+
end
|
|
4385
|
+
end
|
|
4386
|
+
elseif nil == denoval(path) then
|
|
4387
|
+
parts = {}
|
|
4388
|
+
else
|
|
4389
|
+
parts = { condenseStr(path) }
|
|
4390
|
+
end
|
|
4391
|
+
|
|
4392
|
+
local at = idx
|
|
4393
|
+
for i = 1, #parts do
|
|
4394
|
+
if 0 > at then
|
|
4395
|
+
return -1
|
|
4396
|
+
end
|
|
4397
|
+
if S_MT ~= parts[i] then
|
|
4398
|
+
at = condenseChild(cond, at, parts[i])
|
|
4399
|
+
end
|
|
4400
|
+
end
|
|
4401
|
+
return at
|
|
4402
|
+
end
|
|
4403
|
+
|
|
4404
|
+
-- Node idx as a fresh, independent tree; nil when there is no such node.
|
|
4405
|
+
condenseMaterialise = function(cond, idx)
|
|
4406
|
+
if type(idx) ~= S_number or 0 > idx then
|
|
4407
|
+
return nil
|
|
4408
|
+
end
|
|
4409
|
+
|
|
4410
|
+
local sym = cond[S_condsym]
|
|
4411
|
+
|
|
4412
|
+
local function rebuild(i)
|
|
4413
|
+
local enc = condenseEnc(cond, i)
|
|
4414
|
+
if nil == enc then
|
|
4415
|
+
return nil
|
|
4416
|
+
end
|
|
4417
|
+
local kind = enc[1]
|
|
4418
|
+
if CONDENSE_MAP == kind then
|
|
4419
|
+
local out = setmetatable({}, { __jsontype = "object" })
|
|
4420
|
+
for j = 2, #enc, 2 do
|
|
4421
|
+
local key = type(enc[j]) == S_number and sym[enc[j] + 1] or nil
|
|
4422
|
+
if nil ~= key then
|
|
4423
|
+
out[condenseStr(key)] = rebuild(enc[j + 1])
|
|
4424
|
+
end
|
|
4425
|
+
end
|
|
4426
|
+
return out
|
|
4427
|
+
end
|
|
4428
|
+
if CONDENSE_LIST == kind then
|
|
4429
|
+
local out = setmetatable({}, { __jsontype = "array" })
|
|
4430
|
+
for j = 2, #enc do
|
|
4431
|
+
local child = rebuild(enc[j])
|
|
4432
|
+
-- A Lua list cannot hold nil, so a null element is NULLMARK.
|
|
4433
|
+
if nil == child then
|
|
4434
|
+
child = NULLMARK
|
|
4435
|
+
end
|
|
4436
|
+
table.insert(out, child)
|
|
4437
|
+
end
|
|
4438
|
+
return out
|
|
4439
|
+
end
|
|
4440
|
+
if CONDENSE_STR == kind then
|
|
4441
|
+
return type(enc[2]) == S_number and sym[enc[2] + 1] or nil
|
|
4442
|
+
end
|
|
4443
|
+
if CONDENSE_NUM == kind then
|
|
4444
|
+
return enc[2]
|
|
4445
|
+
end
|
|
4446
|
+
if CONDENSE_TRUE == kind then
|
|
4447
|
+
return true
|
|
4448
|
+
end
|
|
4449
|
+
if CONDENSE_FALSE == kind then
|
|
4450
|
+
return false
|
|
4451
|
+
end
|
|
4452
|
+
return nil
|
|
4453
|
+
end
|
|
4454
|
+
|
|
4455
|
+
return rebuild(idx)
|
|
4456
|
+
end
|
|
4457
|
+
|
|
4458
|
+
-- Fully materialise a condensed structure. A value that is not condensed comes
|
|
4459
|
+
-- back unchanged.
|
|
4460
|
+
expand = function(cond)
|
|
4461
|
+
if not iscondensed(cond) then
|
|
4462
|
+
return cond
|
|
4463
|
+
end
|
|
4464
|
+
return condenseMaterialise(cond, cond[S_condroot])
|
|
4465
|
+
end
|
|
4466
|
+
|
|
4467
|
+
-- The keys of node idx, without materialising any of its values.
|
|
4468
|
+
local function condenseKeys(cond, idx)
|
|
4469
|
+
local out = setmetatable({}, { __jsontype = "array" })
|
|
4470
|
+
local enc = condenseEnc(cond, idx)
|
|
4471
|
+
if nil == enc then
|
|
4472
|
+
return out
|
|
4473
|
+
end
|
|
4474
|
+
if CONDENSE_MAP == enc[1] then
|
|
4475
|
+
local sym = cond[S_condsym]
|
|
4476
|
+
for j = 2, #enc, 2 do
|
|
4477
|
+
local key = type(enc[j]) == S_number and sym[enc[j] + 1] or nil
|
|
4478
|
+
if nil ~= key then
|
|
4479
|
+
table.insert(out, condenseStr(key))
|
|
4480
|
+
end
|
|
4481
|
+
end
|
|
4482
|
+
elseif CONDENSE_LIST == enc[1] then
|
|
4483
|
+
for j = 2, #enc do
|
|
4484
|
+
table.insert(out, tostring(j - 2))
|
|
4485
|
+
end
|
|
4486
|
+
end
|
|
4487
|
+
return out
|
|
4488
|
+
end
|
|
4489
|
+
|
|
4490
|
+
-- A cursor into a condensed structure. Reads resolve by node index and touch
|
|
4491
|
+
-- only the nodes on the path, so a lookup costs path depth, not total size.
|
|
4492
|
+
local function condenseview(cond, idx, memo)
|
|
4493
|
+
local start = denoval(idx)
|
|
4494
|
+
if nil == start then
|
|
4495
|
+
start = iscondensed(cond) and cond[S_condroot] or -1
|
|
4496
|
+
elseif type(start) ~= S_number or start ~= start then
|
|
4497
|
+
start = -1
|
|
4498
|
+
end
|
|
4499
|
+
|
|
4500
|
+
-- Shared through at(), so that every view into the structure shares one
|
|
4501
|
+
-- memo: otherwise ref() would hand out a different node per view.
|
|
4502
|
+
local refmemo = type(memo) == "table" and memo or {}
|
|
4503
|
+
|
|
4504
|
+
local view = {}
|
|
4505
|
+
|
|
4506
|
+
-- The value at path, materialised: a container comes back as a fresh copy.
|
|
4507
|
+
view.get = function(path)
|
|
4508
|
+
return condenseMaterialise(cond, condenseResolve(cond, start, path))
|
|
4509
|
+
end
|
|
4510
|
+
|
|
4511
|
+
-- Key names at path, with no value decoding at all.
|
|
4512
|
+
view.keys = function(path)
|
|
4513
|
+
return condenseKeys(cond, condenseResolve(cond, start, path))
|
|
4514
|
+
end
|
|
4515
|
+
|
|
4516
|
+
view.has = function(path)
|
|
4517
|
+
return 0 <= condenseResolve(cond, start, path)
|
|
4518
|
+
end
|
|
4519
|
+
|
|
4520
|
+
-- Chainable cursor. Cheap: no decoding happens here.
|
|
4521
|
+
view.at = function(path)
|
|
4522
|
+
return condenseview(cond, condenseResolve(cond, start, path), refmemo)
|
|
4523
|
+
end
|
|
4524
|
+
|
|
4525
|
+
view.value = function()
|
|
4526
|
+
return condenseMaterialise(cond, start)
|
|
4527
|
+
end
|
|
4528
|
+
|
|
4529
|
+
view.size = function()
|
|
4530
|
+
local enc = condenseEnc(cond, start)
|
|
4531
|
+
if nil == enc then
|
|
4532
|
+
return 0
|
|
4533
|
+
elseif CONDENSE_MAP == enc[1] then
|
|
4534
|
+
return (#enc - 1) // 2
|
|
4535
|
+
elseif CONDENSE_LIST == enc[1] then
|
|
4536
|
+
return #enc - 1
|
|
4537
|
+
end
|
|
4538
|
+
return 0
|
|
4539
|
+
end
|
|
4540
|
+
|
|
4541
|
+
view.exists = function()
|
|
4542
|
+
return 0 <= start
|
|
4543
|
+
end
|
|
4544
|
+
|
|
4545
|
+
-- DANGER, and named to say so: the SAME node for the same index, every time.
|
|
4546
|
+
-- Mutating it corrupts every other reader of that node, however reached.
|
|
4547
|
+
view.ref = function()
|
|
4548
|
+
if nil == refmemo[start] then
|
|
4549
|
+
refmemo[start] = condenseMaterialise(cond, start)
|
|
4550
|
+
end
|
|
4551
|
+
return refmemo[start]
|
|
4552
|
+
end
|
|
4553
|
+
|
|
4554
|
+
return view
|
|
4555
|
+
end
|
|
4556
|
+
|
|
3521
4557
|
-- Define the StructUtility "class"
|
|
3522
4558
|
local StructUtility = {
|
|
3523
4559
|
NOVAL = NOVAL,
|
|
3524
4560
|
clone = clone,
|
|
4561
|
+
condense = condense,
|
|
4562
|
+
condenseview = condenseview,
|
|
4563
|
+
expand = expand,
|
|
4564
|
+
iscondensed = iscondensed,
|
|
3525
4565
|
delprop = delprop,
|
|
3526
4566
|
escre = escre,
|
|
3527
4567
|
escurl = escurl,
|
|
@@ -3612,6 +4652,10 @@ return {
|
|
|
3612
4652
|
StructUtility = StructUtility,
|
|
3613
4653
|
NOVAL = NOVAL,
|
|
3614
4654
|
clone = clone,
|
|
4655
|
+
condense = condense,
|
|
4656
|
+
condenseview = condenseview,
|
|
4657
|
+
expand = expand,
|
|
4658
|
+
iscondensed = iscondensed,
|
|
3615
4659
|
delprop = delprop,
|
|
3616
4660
|
escre = escre,
|
|
3617
4661
|
escurl = escurl,
|