@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,8 +1,8 @@
|
|
|
1
|
-
// VENDORED: @voxgig/struct 0.
|
|
2
|
-
// Source: https://github.com/voxgig/struct @
|
|
1
|
+
// VENDORED: @voxgig/struct 0.2.0 (javascript/src/struct.js)
|
|
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
|
-
// VERSION: @voxgig/struct-js 0.
|
|
5
|
+
// VERSION: @voxgig/struct-js 0.2.0
|
|
6
6
|
/* Voxgig Struct
|
|
7
7
|
* =============
|
|
8
8
|
*
|
|
@@ -152,7 +152,7 @@ const NONE = undefined
|
|
|
152
152
|
const SKIP = { '`$SKIP`': true }
|
|
153
153
|
const DELETE = { '`$DELETE`': true }
|
|
154
154
|
// Regular expression constants
|
|
155
|
-
const R_INTEGER_KEY = /^[-0-9]
|
|
155
|
+
const R_INTEGER_KEY = /^(0|-?[1-9][0-9]*)$/ // Integer keys as String(n) prints them (including <0).
|
|
156
156
|
const R_ESCAPE_REGEXP = /[.*+?^${}()|[\]\\]/g // Chars that need escaping in regexp.
|
|
157
157
|
const R_QUOTES = /"/g // Double quotes for removal.
|
|
158
158
|
const R_DOT = /\./g // Dots in path strings.
|
|
@@ -161,6 +161,7 @@ const R_META_PATH = /^([^$]+)\$([=~])(.+)$/ // Meta path syntax.
|
|
|
161
161
|
const R_DOUBLE_DOLLAR = /\$\$/g // Double dollar escape sequence.
|
|
162
162
|
const R_TRANSFORM_NAME = /`\$([A-Z]+)`/g // Transform command names.
|
|
163
163
|
const R_INJECTION_FULL = /^`(\$[A-Z]+|[^`]*)[0-9]*`$/ // Full string injection pattern.
|
|
164
|
+
const R_CHECKER_NAME = /^\$[A-Z]+$/ // Validate checker name.
|
|
164
165
|
const R_BT_ESCAPE = /\$BT/g // Backtick escape sequence.
|
|
165
166
|
const R_DS_ESCAPE = /\$DS/g // Dollar sign escape sequence.
|
|
166
167
|
const R_INJECTION_PARTIAL = /`([^`]+)`/g // Partial string injection pattern.
|
|
@@ -337,20 +338,52 @@ function typify(value) {
|
|
|
337
338
|
// Anything else (e.g. bigint) is considered T_any
|
|
338
339
|
return T_any
|
|
339
340
|
}
|
|
340
|
-
//
|
|
341
|
-
|
|
341
|
+
// A list key's index: an integral number, or the string String(n) prints, else NaN.
|
|
342
|
+
function _listkey(key) {
|
|
343
|
+
if (S_number === typeof key) {
|
|
344
|
+
return Number.isInteger(key) ? key + 0 : NaN
|
|
345
|
+
}
|
|
346
|
+
return S_string === typeof key && R_INTEGER_KEY.test(key) ? +key : NaN
|
|
347
|
+
}
|
|
348
|
+
// The stored value; a plain map yields own properties only, never __proto__.
|
|
349
|
+
function _readprop(val, key) {
|
|
350
|
+
if (islist(val)) {
|
|
351
|
+
const keyI = _listkey(key)
|
|
352
|
+
return 0 <= keyI ? val[keyI] : NONE
|
|
353
|
+
}
|
|
354
|
+
if (S_string !== typeof key && S_number !== typeof key) {
|
|
355
|
+
return NONE
|
|
356
|
+
}
|
|
357
|
+
if (0 < (T_instance & typify(val))) {
|
|
358
|
+
return val[key]
|
|
359
|
+
}
|
|
360
|
+
return Object.prototype.hasOwnProperty.call(val, key) ? val[key] : NONE
|
|
361
|
+
}
|
|
362
|
+
function _setown(obj, key, val) {
|
|
363
|
+
if ('__proto__' === key) {
|
|
364
|
+
Object.defineProperty(obj, key, {
|
|
365
|
+
value: val,
|
|
366
|
+
enumerable: true,
|
|
367
|
+
writable: true,
|
|
368
|
+
configurable: true,
|
|
369
|
+
})
|
|
370
|
+
} else {
|
|
371
|
+
obj[key] = val
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
// Get a list element; a negative integer key counts from the end.
|
|
342
375
|
function getelem(val, key, alt) {
|
|
343
376
|
let out = NONE
|
|
344
377
|
if (NONE === val || NONE === key) {
|
|
345
378
|
return alt
|
|
346
379
|
}
|
|
347
380
|
if (islist(val)) {
|
|
348
|
-
let
|
|
349
|
-
if (
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
out = val[
|
|
381
|
+
let keyI = _listkey(key)
|
|
382
|
+
if (keyI < 0) {
|
|
383
|
+
keyI = val.length + keyI
|
|
384
|
+
}
|
|
385
|
+
if (0 <= keyI) {
|
|
386
|
+
out = val[keyI]
|
|
354
387
|
}
|
|
355
388
|
}
|
|
356
389
|
// Group A: a stored JSON null is treated as "no value".
|
|
@@ -367,7 +400,7 @@ function getprop(val, key, alt) {
|
|
|
367
400
|
return alt
|
|
368
401
|
}
|
|
369
402
|
if (isnode(val)) {
|
|
370
|
-
out = val
|
|
403
|
+
out = _readprop(val, key)
|
|
371
404
|
}
|
|
372
405
|
if (null == out) {
|
|
373
406
|
return alt
|
|
@@ -379,7 +412,7 @@ function getprop(val, key, alt) {
|
|
|
379
412
|
// absent. Group A's getprop conflates them.
|
|
380
413
|
function _lookup(val, key) {
|
|
381
414
|
if (NONE === val || NONE === key) return NONE
|
|
382
|
-
if (isnode(val)) return val
|
|
415
|
+
if (isnode(val)) return _readprop(val, key)
|
|
383
416
|
return NONE
|
|
384
417
|
}
|
|
385
418
|
// Convert different types of keys to string representation.
|
|
@@ -712,7 +745,7 @@ function jm(...kv) {
|
|
|
712
745
|
// with value null" from "slot beyond end of kv".
|
|
713
746
|
let k = i < kv.length ? kv[i] : '$KEY' + i
|
|
714
747
|
k = 'string' === typeof k ? k : stringify(k)
|
|
715
|
-
o
|
|
748
|
+
_setown(o, k, i + 1 < kv.length ? kv[i + 1] : null)
|
|
716
749
|
}
|
|
717
750
|
return o
|
|
718
751
|
}
|
|
@@ -735,16 +768,19 @@ function delprop(parent, key) {
|
|
|
735
768
|
if (!iskey(key)) {
|
|
736
769
|
return parent
|
|
737
770
|
}
|
|
771
|
+
if (iscondensed(parent)) {
|
|
772
|
+
throw new Error(
|
|
773
|
+
'struct: condensed structures are immutable - ' + 'expand() first, then modify the copy',
|
|
774
|
+
)
|
|
775
|
+
}
|
|
738
776
|
if (ismap(parent)) {
|
|
739
777
|
key = strkey(key)
|
|
740
778
|
delete parent[key]
|
|
741
779
|
} else if (islist(parent)) {
|
|
742
|
-
|
|
743
|
-
let keyI = +key
|
|
780
|
+
const keyI = _listkey(key)
|
|
744
781
|
if (isNaN(keyI)) {
|
|
745
782
|
return parent
|
|
746
783
|
}
|
|
747
|
-
keyI = Math.floor(keyI)
|
|
748
784
|
// Delete list element at position keyI, shifting later elements down.
|
|
749
785
|
const psize = size(parent)
|
|
750
786
|
if (0 <= keyI && keyI < psize) {
|
|
@@ -765,18 +801,18 @@ function setprop(parent, key, val) {
|
|
|
765
801
|
if (!iskey(key)) {
|
|
766
802
|
return parent
|
|
767
803
|
}
|
|
804
|
+
if (iscondensed(parent)) {
|
|
805
|
+
throw new Error(
|
|
806
|
+
'struct: condensed structures are immutable - ' + 'expand() first, then modify the copy',
|
|
807
|
+
)
|
|
808
|
+
}
|
|
768
809
|
if (ismap(parent)) {
|
|
769
|
-
|
|
770
|
-
const pany = parent
|
|
771
|
-
pany[key] = val
|
|
810
|
+
_setown(parent, S_MT + key, val)
|
|
772
811
|
} else if (islist(parent)) {
|
|
773
|
-
|
|
774
|
-
let keyI = +key
|
|
812
|
+
const keyI = _listkey(key)
|
|
775
813
|
if (isNaN(keyI)) {
|
|
776
814
|
return parent
|
|
777
815
|
}
|
|
778
|
-
keyI = Math.floor(keyI)
|
|
779
|
-
// TODO: DELETE list element
|
|
780
816
|
// Set or append value at position keyI, or append if keyI out of bounds.
|
|
781
817
|
if (0 <= keyI) {
|
|
782
818
|
parent[slice(keyI, 0, size(parent) + 1)] = val
|
|
@@ -933,6 +969,12 @@ function merge(val, maxdepth) {
|
|
|
933
969
|
// Set a value using a path. Missing path parts are created.
|
|
934
970
|
// String paths create only maps. Use a string list to create list parts.
|
|
935
971
|
function setpath(store, path, val, injdef) {
|
|
972
|
+
// Same contract as setprop/delprop: a condensed store is immutable.
|
|
973
|
+
if (iscondensed(store)) {
|
|
974
|
+
throw new Error(
|
|
975
|
+
'struct: condensed structures are immutable - ' + 'expand() first, then modify the copy',
|
|
976
|
+
)
|
|
977
|
+
}
|
|
936
978
|
const pathType = typify(path)
|
|
937
979
|
const parts =
|
|
938
980
|
0 < (T_list & pathType)
|
|
@@ -966,16 +1008,45 @@ function setpath(store, path, val, injdef) {
|
|
|
966
1008
|
}
|
|
967
1009
|
function getpath(store, path, injdef) {
|
|
968
1010
|
// Operate on a string array.
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
1011
|
+
let parts = NONE
|
|
1012
|
+
if (islist(path)) {
|
|
1013
|
+
parts = []
|
|
1014
|
+
for (const part of path) {
|
|
1015
|
+
if (S_number === typeof part) {
|
|
1016
|
+
parts.push(S_MT + part)
|
|
1017
|
+
} else if (S_string === typeof part) {
|
|
1018
|
+
parts.push(part)
|
|
1019
|
+
} else {
|
|
1020
|
+
return NONE
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
} else if (S_string === typeof path) {
|
|
1024
|
+
parts = path.split(S_DT)
|
|
1025
|
+
} else if (S_number === typeof path) {
|
|
1026
|
+
parts = [S_MT + path]
|
|
1027
|
+
}
|
|
976
1028
|
if (NONE === parts) {
|
|
977
1029
|
return NONE
|
|
978
1030
|
}
|
|
1031
|
+
// TRANSPARENT CONDENSED READ. A condensed store answers the same path with
|
|
1032
|
+
// the same value as the ordinary node it was built from - the caller does
|
|
1033
|
+
// not need to know which it holds. Only the nodes ON the path are touched,
|
|
1034
|
+
// so this never materialises the whole structure.
|
|
1035
|
+
if (iscondensed(store)) {
|
|
1036
|
+
// The fast path applies only when there are no injection options to
|
|
1037
|
+
// honour. base/dparent/dpath/meta change what the walk below resolves
|
|
1038
|
+
// against, and silently ignoring them would make a condensed store
|
|
1039
|
+
// answer differently from the node it was built from - the opposite of
|
|
1040
|
+
// the transparent-read contract. Rare enough to be worth materialising.
|
|
1041
|
+
if (null == injdef || null == getprop(injdef, S_base)) {
|
|
1042
|
+
const found = condenseResolve(store, store[S_condroot], parts)
|
|
1043
|
+
const val = 0 > found ? undefined : condenseMaterialise(store, found)
|
|
1044
|
+
// Group A null-as-absent: an ordinary getpath observes a stored null
|
|
1045
|
+
// through getprop and reports it as absent, so this must too.
|
|
1046
|
+
return null == val ? undefined : val
|
|
1047
|
+
}
|
|
1048
|
+
store = expand(store)
|
|
1049
|
+
}
|
|
979
1050
|
// let root = store
|
|
980
1051
|
let val = store
|
|
981
1052
|
const base = getprop(injdef, S_base)
|
|
@@ -1081,6 +1152,7 @@ function inject(val, store, injdef) {
|
|
|
1081
1152
|
inj.descend()
|
|
1082
1153
|
// console.log('INJ-START', val, inj.mode, inj.key, inj.val,
|
|
1083
1154
|
// 't=', inj.path, 'P=', inj.parent, 'dp=', inj.dparent, 'ST=', store.$TOP)
|
|
1155
|
+
inj.named = false
|
|
1084
1156
|
// Descend into node.
|
|
1085
1157
|
if (isnode(val)) {
|
|
1086
1158
|
// Keys are sorted alphanumerically to ensure determinism.
|
|
@@ -1090,10 +1162,9 @@ function inject(val, store, injdef) {
|
|
|
1090
1162
|
let nodekeys
|
|
1091
1163
|
nodekeys = keysof(val)
|
|
1092
1164
|
if (ismap(val)) {
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
])
|
|
1165
|
+
const named = filter(nodekeys, (n) => !n[1].includes(S_DS))
|
|
1166
|
+
nodekeys = flatten([named, filter(nodekeys, (n) => n[1].includes(S_DS))])
|
|
1167
|
+
inj.named = 0 < size(named)
|
|
1097
1168
|
} else {
|
|
1098
1169
|
nodekeys = keysof(val)
|
|
1099
1170
|
}
|
|
@@ -1128,6 +1199,15 @@ function inject(val, store, injdef) {
|
|
|
1128
1199
|
nodekeys = childinj.keys
|
|
1129
1200
|
}
|
|
1130
1201
|
}
|
|
1202
|
+
if (islist(val)) {
|
|
1203
|
+
let kept = 0
|
|
1204
|
+
for (let i = 0; i < val.length; i++) {
|
|
1205
|
+
if (SKIP !== val[i]) {
|
|
1206
|
+
val[kept++] = val[i]
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
val.length = kept
|
|
1210
|
+
}
|
|
1131
1211
|
}
|
|
1132
1212
|
// Inject paths into string scalars.
|
|
1133
1213
|
else if (S_string === valtype) {
|
|
@@ -1142,7 +1222,7 @@ function inject(val, store, injdef) {
|
|
|
1142
1222
|
let mkey = inj.key
|
|
1143
1223
|
let mparent = inj.parent
|
|
1144
1224
|
let mval = getprop(mparent, mkey)
|
|
1145
|
-
inj.modify(mval, mkey, mparent, inj, store)
|
|
1225
|
+
inj.modify(SKIP === mval ? NONE : mval, mkey, mparent, inj, store)
|
|
1146
1226
|
}
|
|
1147
1227
|
// console.log('INJ-VAL', val)
|
|
1148
1228
|
inj.val = val
|
|
@@ -1385,27 +1465,30 @@ const transform_PACK = (inj, _val, _ref, store) => {
|
|
|
1385
1465
|
// Drop transform key.
|
|
1386
1466
|
return NONE
|
|
1387
1467
|
}
|
|
1388
|
-
// TODO: not found ref should removed key (setprop NONE)
|
|
1389
1468
|
// Reference original spec (enables recursice transformations)
|
|
1390
1469
|
// Format: ['`$REF`', '`spec-path`']
|
|
1391
|
-
const transform_REF = (inj,
|
|
1392
|
-
const { nodes } = inj
|
|
1470
|
+
const transform_REF = (inj, _val, _ref, store) => {
|
|
1393
1471
|
if (M_VAL !== inj.mode) {
|
|
1394
1472
|
return NONE
|
|
1395
1473
|
}
|
|
1396
|
-
//
|
|
1474
|
+
// ['`$REF`', 'ref-path']: a relative path starts where this slot is, so .x is a sibling.
|
|
1397
1475
|
const refpath = _lookup(inj.parent, 1)
|
|
1398
1476
|
inj.keyI = size(inj.keys)
|
|
1399
1477
|
// Spec reference.
|
|
1400
1478
|
const spec = getprop(store, S_DSPEC)()
|
|
1401
|
-
const dpath = slice(inj.path, 1)
|
|
1402
|
-
const
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1479
|
+
const dpath = slice(inj.path, 1, -2)
|
|
1480
|
+
const refinj = { dpath, dparent: getpath(spec, dpath) }
|
|
1481
|
+
let ref = getpath(spec, refpath, refinj)
|
|
1482
|
+
// A chain of references that comes back to a path it has named names nothing.
|
|
1483
|
+
const seen = [refpath]
|
|
1484
|
+
for (let next = ref; islist(next) && '`$REF`' === next[0];) {
|
|
1485
|
+
if (seen.includes(next[1])) {
|
|
1486
|
+
ref = NONE
|
|
1487
|
+
break
|
|
1488
|
+
}
|
|
1489
|
+
seen.push(next[1])
|
|
1490
|
+
next = getpath(spec, next[1], refinj)
|
|
1491
|
+
}
|
|
1409
1492
|
let hasSubRef = false
|
|
1410
1493
|
if (isnode(ref)) {
|
|
1411
1494
|
walk(ref, (_k, v) => {
|
|
@@ -1415,30 +1498,20 @@ const transform_REF = (inj, val, _ref, store) => {
|
|
|
1415
1498
|
return v
|
|
1416
1499
|
})
|
|
1417
1500
|
}
|
|
1418
|
-
|
|
1419
|
-
const
|
|
1420
|
-
const
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
let rval = NONE
|
|
1424
|
-
if (!hasSubRef || NONE !== tval) {
|
|
1425
|
-
const tinj = inj.child(0, [getelem(tpath, -1)])
|
|
1426
|
-
tinj.path = tpath
|
|
1427
|
-
tinj.nodes = slice(inj.nodes, -1)
|
|
1428
|
-
tinj.parent = getelem(nodes, -2)
|
|
1429
|
-
tinj.val = tref
|
|
1430
|
-
tinj.dpath = flatten([cpath])
|
|
1431
|
-
tinj.dparent = tcur
|
|
1432
|
-
inject(tref, store, tinj)
|
|
1433
|
-
rval = tinj.val
|
|
1434
|
-
} else {
|
|
1435
|
-
rval = NONE
|
|
1436
|
-
}
|
|
1501
|
+
// A recursive reference stops where the data does.
|
|
1502
|
+
const tval = getpath(store, slice(inj.path, -1))
|
|
1503
|
+
const rval = !hasSubRef || NONE !== tval ? clone(ref) : NONE
|
|
1504
|
+
// The enclosing loop injects the referenced spec in this list's place, so
|
|
1505
|
+
// neither this pass nor this element leaves a value for modify to check.
|
|
1437
1506
|
const grandparent = inj.setval(rval, 2)
|
|
1438
|
-
|
|
1439
|
-
|
|
1507
|
+
const prior = inj.prior
|
|
1508
|
+
if (prior) {
|
|
1509
|
+
prior.modify = NONE
|
|
1510
|
+
if (islist(grandparent) || NONE !== rval) {
|
|
1511
|
+
prior.keyI--
|
|
1512
|
+
}
|
|
1440
1513
|
}
|
|
1441
|
-
return
|
|
1514
|
+
return SKIP
|
|
1442
1515
|
}
|
|
1443
1516
|
const transform_FORMAT = (inj, _val, _ref, store) => {
|
|
1444
1517
|
// console.log('FORMAT-START', inj, _val)
|
|
@@ -1591,24 +1664,25 @@ const validate_STRING = (inj) => {
|
|
|
1591
1664
|
if (0 === (T_string & t)) {
|
|
1592
1665
|
let msg = _invalidTypeMsg(inj.path, S_string, t, out, 'V1010')
|
|
1593
1666
|
inj.errs.push(msg)
|
|
1594
|
-
return
|
|
1667
|
+
return out
|
|
1595
1668
|
}
|
|
1596
1669
|
if (S_MT === out) {
|
|
1597
1670
|
let msg = 'Empty string at ' + pathify(inj.path, 1)
|
|
1598
1671
|
inj.errs.push(msg)
|
|
1599
|
-
return
|
|
1672
|
+
return out
|
|
1600
1673
|
}
|
|
1601
1674
|
return out
|
|
1602
1675
|
}
|
|
1603
1676
|
const validate_TYPE = (inj, _val, ref) => {
|
|
1604
1677
|
const tname = slice(ref, 1).toLowerCase()
|
|
1605
|
-
|
|
1678
|
+
// $NIL is absent or null.
|
|
1679
|
+
const typev = (1 << (31 - TYPENAME.indexOf(tname))) | (S_nil === tname ? T_null : 0)
|
|
1606
1680
|
let out = _lookup(inj.dparent, inj.key)
|
|
1607
1681
|
const t = typify(out)
|
|
1608
1682
|
// console.log('TYPE', tname, typev, tn(typev), 'O=', t, tn(t), out, 'C=', t & typev)
|
|
1609
1683
|
if (0 === (t & typev)) {
|
|
1610
1684
|
inj.errs.push(_invalidTypeMsg(inj.path, tname, t, out, 'V1001'))
|
|
1611
|
-
return
|
|
1685
|
+
return out
|
|
1612
1686
|
}
|
|
1613
1687
|
return out
|
|
1614
1688
|
}
|
|
@@ -1632,7 +1706,7 @@ const validate_CHILD = (inj) => {
|
|
|
1632
1706
|
if (NONE == tval) {
|
|
1633
1707
|
tval = {}
|
|
1634
1708
|
} else if (!ismap(tval)) {
|
|
1635
|
-
|
|
1709
|
+
// _validation reports the mismatch, once.
|
|
1636
1710
|
return NONE
|
|
1637
1711
|
}
|
|
1638
1712
|
const ckeys = keysof(tval)
|
|
@@ -1660,14 +1734,6 @@ const validate_CHILD = (inj) => {
|
|
|
1660
1734
|
return NONE
|
|
1661
1735
|
}
|
|
1662
1736
|
if (!islist(inj.dparent)) {
|
|
1663
|
-
const msg = _invalidTypeMsg(
|
|
1664
|
-
slice(inj.path, -1),
|
|
1665
|
-
S_list,
|
|
1666
|
-
typify(inj.dparent),
|
|
1667
|
-
inj.dparent,
|
|
1668
|
-
'V0230',
|
|
1669
|
-
)
|
|
1670
|
-
inj.errs.push(msg)
|
|
1671
1737
|
inj.keyI = size(parent)
|
|
1672
1738
|
return inj.dparent
|
|
1673
1739
|
}
|
|
@@ -1691,72 +1757,51 @@ const validate_CHILD = (inj) => {
|
|
|
1691
1757
|
}
|
|
1692
1758
|
return NONE
|
|
1693
1759
|
}
|
|
1694
|
-
//
|
|
1695
|
-
//
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
const
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
' must be the first element of an array.',
|
|
1708
|
-
)
|
|
1709
|
-
return
|
|
1710
|
-
}
|
|
1711
|
-
inj.keyI = size(inj.keys)
|
|
1712
|
-
// Clean up structure, replacing [$ONE, ...] with current
|
|
1713
|
-
inj.setval(inj.dparent, 2)
|
|
1714
|
-
inj.path = slice(inj.path, -1)
|
|
1715
|
-
let tvals = slice(parent, 1)
|
|
1716
|
-
if (0 === size(tvals)) {
|
|
1717
|
-
inj.errs.push(
|
|
1718
|
-
'The $ONE validator at field ' +
|
|
1719
|
-
pathify(inj.path, 1, 1) +
|
|
1720
|
-
' must have at least one argument.',
|
|
1721
|
-
)
|
|
1722
|
-
return
|
|
1723
|
-
}
|
|
1724
|
-
// See if we can find a match.
|
|
1725
|
-
for (let tval of tvals) {
|
|
1726
|
-
// If match, then errs.length = 0
|
|
1727
|
-
let terrs = []
|
|
1728
|
-
const vstore = merge([{}, store], 1)
|
|
1729
|
-
vstore.$TOP = inj.dparent
|
|
1730
|
-
const vcurrent = validate(inj.dparent, tval, {
|
|
1731
|
-
extra: vstore,
|
|
1732
|
-
errs: terrs,
|
|
1733
|
-
meta: inj.meta,
|
|
1734
|
-
})
|
|
1735
|
-
inj.setval(vcurrent, -2)
|
|
1736
|
-
// Accept current value if there was a match
|
|
1737
|
-
if (0 === size(terrs)) {
|
|
1738
|
-
return
|
|
1760
|
+
// The members a spec does not name: the map form is a key, the list form a
|
|
1761
|
+
// tuple's last item. Each places clones of its spec for the loop to check.
|
|
1762
|
+
const validate_REST = (inj) => {
|
|
1763
|
+
const { mode, key, parent, keys, path } = inj
|
|
1764
|
+
if (M_KEYPRE === mode) {
|
|
1765
|
+
const resttm = _lookup(parent, key)
|
|
1766
|
+
const tval = getprop(inj.dparent, getelem(path, -2))
|
|
1767
|
+
if (ismap(tval)) {
|
|
1768
|
+
for (const ckey of keysof(tval)) {
|
|
1769
|
+
if (!keys.includes(ckey)) {
|
|
1770
|
+
setprop(parent, ckey, clone(resttm))
|
|
1771
|
+
keys.push(ckey)
|
|
1772
|
+
}
|
|
1739
1773
|
}
|
|
1740
1774
|
}
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1775
|
+
inj.setval(NONE)
|
|
1776
|
+
return NONE
|
|
1777
|
+
}
|
|
1778
|
+
const prior = inj.prior
|
|
1779
|
+
if (M_VAL !== mode || NONE === prior || !islist(prior.parent) || 0 !== inj.keyI) {
|
|
1780
|
+
inj.errs.push(_restmsg(slice(path, 1), ' must be the last element of an array.'))
|
|
1781
|
+
return NONE
|
|
1782
|
+
}
|
|
1783
|
+
inj.keyI = size(keys)
|
|
1784
|
+
prior.modify = NONE
|
|
1785
|
+
const tuple = prior.parent
|
|
1786
|
+
const slot = _listkey(prior.key)
|
|
1787
|
+
const dlist = prior.dparent
|
|
1788
|
+
const numitems = islist(dlist) ? size(dlist) : 0
|
|
1789
|
+
if (numitems <= slot) {
|
|
1790
|
+
inj.setval(NONE, 2)
|
|
1791
|
+
return SKIP
|
|
1792
|
+
}
|
|
1793
|
+
const resttm = _lookup(parent, 1)
|
|
1794
|
+
for (let i = slot; i < numitems; i++) {
|
|
1795
|
+
setprop(tuple, i, clone(resttm))
|
|
1796
|
+
}
|
|
1797
|
+
for (let i = size(prior.keys); i < numitems; i++) {
|
|
1798
|
+
prior.keys.push(strkey(i))
|
|
1759
1799
|
}
|
|
1800
|
+
prior.keyI--
|
|
1801
|
+
return SKIP
|
|
1802
|
+
}
|
|
1803
|
+
function _restmsg(path, problem) {
|
|
1804
|
+
return 'The $REST validator at field ' + pathify(path) + problem
|
|
1760
1805
|
}
|
|
1761
1806
|
const validate_EXACT = (inj) => {
|
|
1762
1807
|
const { mode, parent, key, keyI } = inj
|
|
@@ -1770,12 +1815,11 @@ const validate_EXACT = (inj) => {
|
|
|
1770
1815
|
)
|
|
1771
1816
|
return
|
|
1772
1817
|
}
|
|
1818
|
+
const cval = _slotval(inj)
|
|
1773
1819
|
inj.keyI = size(inj.keys)
|
|
1774
|
-
//
|
|
1775
|
-
inj.setval(
|
|
1776
|
-
// inj.path = slice(inj.path, 0, size(inj.path) - 1)
|
|
1820
|
+
// Replace [$EXACT, ...] with the data value; SKIP keeps inject off the detached list.
|
|
1821
|
+
inj.setval(cval, 2)
|
|
1777
1822
|
inj.path = slice(inj.path, 0, -1)
|
|
1778
|
-
inj.key = getelem(inj.path, -1)
|
|
1779
1823
|
let tvals = slice(parent, 1)
|
|
1780
1824
|
if (0 === size(tvals)) {
|
|
1781
1825
|
inj.errs.push(
|
|
@@ -1783,19 +1827,12 @@ const validate_EXACT = (inj) => {
|
|
|
1783
1827
|
pathify(inj.path, 1, 1) +
|
|
1784
1828
|
' must have at least one argument.',
|
|
1785
1829
|
)
|
|
1786
|
-
return
|
|
1830
|
+
return SKIP
|
|
1787
1831
|
}
|
|
1788
1832
|
// See if we can find an exact value match.
|
|
1789
|
-
let currentstr = undefined
|
|
1790
1833
|
for (let tval of tvals) {
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
currentstr = undefined === currentstr ? stringify(inj.dparent) : currentstr
|
|
1794
|
-
const tvalstr = stringify(tval)
|
|
1795
|
-
exactmatch = tvalstr === currentstr
|
|
1796
|
-
}
|
|
1797
|
-
if (exactmatch) {
|
|
1798
|
-
return
|
|
1834
|
+
if (_deepequal(tval, cval)) {
|
|
1835
|
+
return SKIP
|
|
1799
1836
|
}
|
|
1800
1837
|
}
|
|
1801
1838
|
// There was no match.
|
|
@@ -1814,15 +1851,232 @@ const validate_EXACT = (inj) => {
|
|
|
1814
1851
|
'exactly equal to ' +
|
|
1815
1852
|
(1 === size(tvals) ? '' : 'one of ') +
|
|
1816
1853
|
valdesc,
|
|
1817
|
-
typify(
|
|
1818
|
-
|
|
1854
|
+
typify(cval),
|
|
1855
|
+
cval,
|
|
1819
1856
|
'V0110',
|
|
1820
1857
|
),
|
|
1821
1858
|
)
|
|
1859
|
+
return SKIP
|
|
1822
1860
|
} else {
|
|
1823
1861
|
delprop(parent, key)
|
|
1824
1862
|
}
|
|
1825
1863
|
}
|
|
1864
|
+
// Count the specs that admit the value: ['`$NOF`', count, spec, ...], where
|
|
1865
|
+
// count is an integer, or a map holding min, max or both.
|
|
1866
|
+
const validate_NOF = (inj, _val, _ref, store) => _validatecount(inj, store, '$NOF', true)
|
|
1867
|
+
// Every spec admits the value: ['`$ALL`', spec, ...].
|
|
1868
|
+
const validate_ALL = (inj, _val, _ref, store) => _validatecount(inj, store, '$ALL', false)
|
|
1869
|
+
// The counting list directives. Without a count, every spec has to admit.
|
|
1870
|
+
function _validatecount(inj, store, name, counted) {
|
|
1871
|
+
const { mode, parent, keyI } = inj
|
|
1872
|
+
if (M_VAL !== mode) {
|
|
1873
|
+
return NONE
|
|
1874
|
+
}
|
|
1875
|
+
if (!islist(parent) || 0 !== keyI) {
|
|
1876
|
+
inj.errs.push(
|
|
1877
|
+
'The ' +
|
|
1878
|
+
name +
|
|
1879
|
+
' validator at field ' +
|
|
1880
|
+
pathify(inj.path, 1, 1) +
|
|
1881
|
+
' must be the first element of an array.',
|
|
1882
|
+
)
|
|
1883
|
+
return NONE
|
|
1884
|
+
}
|
|
1885
|
+
const cval = _slotval(inj)
|
|
1886
|
+
inj.keyI = size(inj.keys)
|
|
1887
|
+
// Replace the directive's list with the data value. Each return is SKIP, so
|
|
1888
|
+
// that inject leaves the detached list alone and validates nothing in it.
|
|
1889
|
+
inj.setval(cval, 2)
|
|
1890
|
+
inj.path = slice(inj.path, -1)
|
|
1891
|
+
const count = counted ? _lookup(parent, 1) : NONE
|
|
1892
|
+
const tvals = slice(parent, counted ? 2 : 1)
|
|
1893
|
+
const numtvals = size(tvals)
|
|
1894
|
+
const field = 'The ' + name + ' validator at field ' + pathify(inj.path, 1)
|
|
1895
|
+
if (0 === numtvals) {
|
|
1896
|
+
inj.errs.push(
|
|
1897
|
+
field + (counted ? ' must have a count and' : ' must have') + ' at least one argument.',
|
|
1898
|
+
)
|
|
1899
|
+
return SKIP
|
|
1900
|
+
}
|
|
1901
|
+
const [lo, hi, countdesc] = counted ? _nofcount(count, numtvals) : [numtvals, numtvals, 'all']
|
|
1902
|
+
if (NONE === countdesc) {
|
|
1903
|
+
inj.errs.push(field + ' has an invalid count: ' + stringify(count) + '.')
|
|
1904
|
+
return SKIP
|
|
1905
|
+
}
|
|
1906
|
+
let admitted = 0
|
|
1907
|
+
for (let tI = 0; tI < numtvals; tI++) {
|
|
1908
|
+
const left = numtvals - tI
|
|
1909
|
+
// Stop once the specs left cannot change the verdict.
|
|
1910
|
+
if (hi < admitted || admitted + left < lo || (lo <= admitted && admitted + left <= hi)) {
|
|
1911
|
+
break
|
|
1912
|
+
}
|
|
1913
|
+
if (_admits(cval, tvals[tI], inj, store)) {
|
|
1914
|
+
admitted++
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
if (admitted < lo || hi < admitted) {
|
|
1918
|
+
const valdesc = replace(
|
|
1919
|
+
join(
|
|
1920
|
+
items(tvals, (n) => stringify(n[1])),
|
|
1921
|
+
', ',
|
|
1922
|
+
),
|
|
1923
|
+
R_TRANSFORM_NAME,
|
|
1924
|
+
(_m, p1) => p1.toLowerCase(),
|
|
1925
|
+
)
|
|
1926
|
+
inj.errs.push(
|
|
1927
|
+
_invalidTypeMsg(inj.path, countdesc + ' of ' + valdesc, typify(cval), cval, 'V0310'),
|
|
1928
|
+
)
|
|
1929
|
+
}
|
|
1930
|
+
return SKIP
|
|
1931
|
+
}
|
|
1932
|
+
// The value's length is within a bound: ['`$LEN`', bound, spec?], where the
|
|
1933
|
+
// bound is as for a $NOF count. A string's length is in code points.
|
|
1934
|
+
const validate_LEN = (inj, _val, _ref, store) => _validatebound(inj, store, '$LEN')
|
|
1935
|
+
// The value is a number within a bound: ['`$RANGE`', bound, spec?], where the
|
|
1936
|
+
// bound holds min or gt, max or lt, or one of each.
|
|
1937
|
+
const validate_RANGE = (inj, _val, _ref, store) => _validatebound(inj, store, '$RANGE')
|
|
1938
|
+
const validate_LIKE = (inj, _val, _ref, store) => _validatebound(inj, store, '$LIKE')
|
|
1939
|
+
// The bounding list directives: a bound or pattern, then at most one spec that also admits.
|
|
1940
|
+
function _validatebound(inj, store, name) {
|
|
1941
|
+
const { mode, parent, keyI } = inj
|
|
1942
|
+
if (M_VAL !== mode) {
|
|
1943
|
+
return NONE
|
|
1944
|
+
}
|
|
1945
|
+
if (!islist(parent) || 0 !== keyI) {
|
|
1946
|
+
inj.errs.push(
|
|
1947
|
+
'The ' +
|
|
1948
|
+
name +
|
|
1949
|
+
' validator at field ' +
|
|
1950
|
+
pathify(inj.path, 1, 1) +
|
|
1951
|
+
' must be the first element of an array.',
|
|
1952
|
+
)
|
|
1953
|
+
return NONE
|
|
1954
|
+
}
|
|
1955
|
+
const cval = _slotval(inj)
|
|
1956
|
+
inj.keyI = size(inj.keys)
|
|
1957
|
+
// As for the counting directives: SKIP keeps inject off the detached list.
|
|
1958
|
+
inj.setval(cval, 2)
|
|
1959
|
+
inj.path = slice(inj.path, -1)
|
|
1960
|
+
const field = 'The ' + name + ' validator at field ' + pathify(inj.path, 1)
|
|
1961
|
+
const nargs = size(parent) - 1
|
|
1962
|
+
const islen = '$LEN' === name
|
|
1963
|
+
const islike = '$LIKE' === name
|
|
1964
|
+
const argname = islike ? 'pattern' : 'bound'
|
|
1965
|
+
if (nargs < 1 || 2 < nargs) {
|
|
1966
|
+
inj.errs.push(field + ' must have a ' + argname + ' and at most one spec.')
|
|
1967
|
+
return SKIP
|
|
1968
|
+
}
|
|
1969
|
+
const bound = _lookup(parent, 1)
|
|
1970
|
+
const like = islike ? _likere(bound) : NONE
|
|
1971
|
+
const [lo, hi, desc] = islen
|
|
1972
|
+
? _lenbound(bound)
|
|
1973
|
+
: [0, 0, islike ? (NONE === like ? NONE : 'like /' + bound + '/') : _rangedesc(bound)]
|
|
1974
|
+
if (NONE === desc) {
|
|
1975
|
+
inj.errs.push(field + ' has an invalid ' + argname + ': ' + stringify(bound) + '.')
|
|
1976
|
+
return SKIP
|
|
1977
|
+
}
|
|
1978
|
+
const ctype = typify(cval)
|
|
1979
|
+
if (2 === nargs && !_admits(cval, _lookup(parent, 2), inj, store)) {
|
|
1980
|
+
const specdesc = replace(stringify(_lookup(parent, 2)), R_TRANSFORM_NAME, (_m, p1) =>
|
|
1981
|
+
p1.toLowerCase(),
|
|
1982
|
+
)
|
|
1983
|
+
inj.errs.push(_invalidTypeMsg(inj.path, specdesc, ctype, cval, 'V0410'))
|
|
1984
|
+
return SKIP
|
|
1985
|
+
}
|
|
1986
|
+
if (0 === ((islen ? T_string | T_list | T_map : islike ? T_string : T_number) & ctype)) {
|
|
1987
|
+
const needtype = islen ? 'string, list or map' : islike ? S_string : S_number
|
|
1988
|
+
inj.errs.push(_invalidTypeMsg(inj.path, needtype, ctype, cval, 'V0420'))
|
|
1989
|
+
return SKIP
|
|
1990
|
+
}
|
|
1991
|
+
const len = islen ? (S_string === typeof cval ? Array.from(cval).length : size(cval)) : 0
|
|
1992
|
+
const inbound = islen
|
|
1993
|
+
? lo <= len && (-1 === hi || len <= hi)
|
|
1994
|
+
: islike
|
|
1995
|
+
? re_test(like, cval)
|
|
1996
|
+
: _inrange(bound, cval)
|
|
1997
|
+
if (!inbound) {
|
|
1998
|
+
const needtype = (1 < size(inj.path) ? '' : 'value ') + desc
|
|
1999
|
+
inj.errs.push(_invalidTypeMsg(inj.path, needtype, ctype, cval, 'V0430'))
|
|
2000
|
+
}
|
|
2001
|
+
return SKIP
|
|
2002
|
+
}
|
|
2003
|
+
// The bounds of a $LEN bound, with -1 for no maximum, and the words for it,
|
|
2004
|
+
// which are absent when the bound is invalid.
|
|
2005
|
+
function _lenbound(bound) {
|
|
2006
|
+
const [lo, hi, countdesc] = _nofcount(bound, -1)
|
|
2007
|
+
if (NONE === countdesc) {
|
|
2008
|
+
return [0, 0, NONE]
|
|
2009
|
+
}
|
|
2010
|
+
const desc =
|
|
2011
|
+
'of length ' +
|
|
2012
|
+
(lo === hi ? lo : -1 === hi ? 'at least ' + lo : 0 === lo ? 'at most ' + hi : lo + ' to ' + hi)
|
|
2013
|
+
return [lo, hi, desc]
|
|
2014
|
+
}
|
|
2015
|
+
// A $LIKE pattern compiled by the port's own regex engine; absent unless it compiles.
|
|
2016
|
+
function _likere(pattern) {
|
|
2017
|
+
if (S_string !== typeof pattern) {
|
|
2018
|
+
return NONE
|
|
2019
|
+
}
|
|
2020
|
+
try {
|
|
2021
|
+
return re_compile(pattern)
|
|
2022
|
+
} catch {
|
|
2023
|
+
return NONE
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
// The words for a $RANGE bound, which are absent when the bound is invalid.
|
|
2027
|
+
function _rangedesc(bound) {
|
|
2028
|
+
if (!ismap(bound)) {
|
|
2029
|
+
return NONE
|
|
2030
|
+
}
|
|
2031
|
+
const min = _lookup(bound, 'min')
|
|
2032
|
+
const max = _lookup(bound, 'max')
|
|
2033
|
+
const gt = _lookup(bound, 'gt')
|
|
2034
|
+
const lt = _lookup(bound, 'lt')
|
|
2035
|
+
const lower = NONE === min ? gt : min
|
|
2036
|
+
const upper = NONE === max ? lt : max
|
|
2037
|
+
const isnum = (n) => NONE === n || 0 < (T_number & typify(n))
|
|
2038
|
+
const valid =
|
|
2039
|
+
0 < size(bound) &&
|
|
2040
|
+
size(bound) === [min, max, gt, lt].filter((n) => NONE !== n).length &&
|
|
2041
|
+
(NONE === min || NONE === gt) &&
|
|
2042
|
+
(NONE === max || NONE === lt) &&
|
|
2043
|
+
isnum(min) &&
|
|
2044
|
+
isnum(max) &&
|
|
2045
|
+
isnum(gt) &&
|
|
2046
|
+
isnum(lt) &&
|
|
2047
|
+
(NONE === lower || NONE === upper || lower <= upper)
|
|
2048
|
+
if (!valid) {
|
|
2049
|
+
return NONE
|
|
2050
|
+
}
|
|
2051
|
+
return join(
|
|
2052
|
+
[
|
|
2053
|
+
NONE !== min
|
|
2054
|
+
? 'at least ' + stringify(min)
|
|
2055
|
+
: NONE !== gt
|
|
2056
|
+
? 'greater than ' + stringify(gt)
|
|
2057
|
+
: NONE,
|
|
2058
|
+
NONE !== max
|
|
2059
|
+
? 'at most ' + stringify(max)
|
|
2060
|
+
: NONE !== lt
|
|
2061
|
+
? 'less than ' + stringify(lt)
|
|
2062
|
+
: NONE,
|
|
2063
|
+
],
|
|
2064
|
+
' and ',
|
|
2065
|
+
)
|
|
2066
|
+
}
|
|
2067
|
+
// A number within a valid $RANGE bound.
|
|
2068
|
+
function _inrange(bound, val) {
|
|
2069
|
+
const min = _lookup(bound, 'min')
|
|
2070
|
+
const max = _lookup(bound, 'max')
|
|
2071
|
+
const gt = _lookup(bound, 'gt')
|
|
2072
|
+
const lt = _lookup(bound, 'lt')
|
|
2073
|
+
return (
|
|
2074
|
+
(NONE === min || min <= val) &&
|
|
2075
|
+
(NONE === max || val <= max) &&
|
|
2076
|
+
(NONE === gt || gt < val) &&
|
|
2077
|
+
(NONE === lt || val < lt)
|
|
2078
|
+
)
|
|
2079
|
+
}
|
|
1826
2080
|
// This is the "modify" argument to inject. Use this to perform
|
|
1827
2081
|
// generic validation. Runs *after* any special commands.
|
|
1828
2082
|
const _validation = (pval, key, parent, inj) => {
|
|
@@ -1857,8 +2111,8 @@ const _validation = (pval, key, parent, inj) => {
|
|
|
1857
2111
|
}
|
|
1858
2112
|
const ckeys = keysof(cval)
|
|
1859
2113
|
const pkeys = keysof(pval)
|
|
1860
|
-
//
|
|
1861
|
-
if (0 < size(pkeys) && true !== getprop(pval, '`$OPEN`')) {
|
|
2114
|
+
// Only a spec written as {} is open, even if named keys resolved away.
|
|
2115
|
+
if ((0 < size(pkeys) || inj.named) && true !== getprop(pval, '`$OPEN`')) {
|
|
1862
2116
|
const badkeys = []
|
|
1863
2117
|
for (let ckey of ckeys) {
|
|
1864
2118
|
if (NONE === _lookup(pval, ckey)) {
|
|
@@ -1880,6 +2134,19 @@ const _validation = (pval, key, parent, inj) => {
|
|
|
1880
2134
|
} else if (islist(cval)) {
|
|
1881
2135
|
if (!islist(pval)) {
|
|
1882
2136
|
inj.errs.push(_invalidTypeMsg(inj.path, typename(ptype), ctype, cval, 'V0030'))
|
|
2137
|
+
} else if (0 < size(pval)) {
|
|
2138
|
+
// Closed list, so reject items past the end of the shape.
|
|
2139
|
+
const badkeys = []
|
|
2140
|
+
for (let i = size(pval); i < size(cval); i++) {
|
|
2141
|
+
badkeys.push(strkey(i))
|
|
2142
|
+
}
|
|
2143
|
+
if (0 < size(badkeys)) {
|
|
2144
|
+
const msg = 'Unexpected keys at field ' + pathify(inj.path, 1) + S_VIZ + join(badkeys, ', ')
|
|
2145
|
+
inj.errs.push(msg)
|
|
2146
|
+
}
|
|
2147
|
+
} else {
|
|
2148
|
+
// Empty spec list [] means list can be open (any items).
|
|
2149
|
+
merge([pval, cval])
|
|
1883
2150
|
}
|
|
1884
2151
|
} else if (exact) {
|
|
1885
2152
|
if (cval !== pval) {
|
|
@@ -1934,8 +2201,13 @@ function validate(
|
|
|
1934
2201
|
$INSTANCE: validate_TYPE,
|
|
1935
2202
|
$ANY: validate_ANY,
|
|
1936
2203
|
$CHILD: validate_CHILD,
|
|
1937
|
-
$ONE: validate_ONE,
|
|
1938
2204
|
$EXACT: validate_EXACT,
|
|
2205
|
+
$NOF: validate_NOF,
|
|
2206
|
+
$ALL: validate_ALL,
|
|
2207
|
+
$LEN: validate_LEN,
|
|
2208
|
+
$RANGE: validate_RANGE,
|
|
2209
|
+
$LIKE: validate_LIKE,
|
|
2210
|
+
$REST: validate_REST,
|
|
1939
2211
|
},
|
|
1940
2212
|
getdef(extra, {}),
|
|
1941
2213
|
// A special top level value to collect errors.
|
|
@@ -1948,13 +2220,19 @@ function validate(
|
|
|
1948
2220
|
)
|
|
1949
2221
|
let meta = getprop(injdef, 'meta', {})
|
|
1950
2222
|
setprop(meta, S_BEXACT, getprop(meta, S_BEXACT, false))
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
2223
|
+
// A spec that names an unknown checker validates nothing.
|
|
2224
|
+
const numerrs = size(errs)
|
|
2225
|
+
_checknames(spec, store, [], errs)
|
|
2226
|
+
const out =
|
|
2227
|
+
numerrs < size(errs)
|
|
2228
|
+
? clone(data)
|
|
2229
|
+
: transform(data, spec, {
|
|
2230
|
+
meta,
|
|
2231
|
+
extra: store,
|
|
2232
|
+
modify: _validation,
|
|
2233
|
+
handler: _validatehandler,
|
|
2234
|
+
errs,
|
|
2235
|
+
})
|
|
1958
2236
|
const generr = 0 < size(errs) && !collect
|
|
1959
2237
|
if (generr) {
|
|
1960
2238
|
throw new Error(join(errs, ' | '))
|
|
@@ -2032,6 +2310,10 @@ const select_NOT = (inj, _val, _ref, store) => {
|
|
|
2032
2310
|
}
|
|
2033
2311
|
}
|
|
2034
2312
|
const select_CMP = (inj, _val, ref, store) => {
|
|
2313
|
+
// The list form of $LIKE is validate's checker; the key form is this operator.
|
|
2314
|
+
if (M_VAL === inj.mode && '$LIKE' === ref) {
|
|
2315
|
+
return validate_LIKE(inj, _val, ref, store)
|
|
2316
|
+
}
|
|
2035
2317
|
if (M_KEYPRE === inj.mode) {
|
|
2036
2318
|
const term = _lookup(inj.parent, inj.key)
|
|
2037
2319
|
// const src = getprop(store, inj.base, store)
|
|
@@ -2102,12 +2384,7 @@ function select(children, query) {
|
|
|
2102
2384
|
},
|
|
2103
2385
|
}
|
|
2104
2386
|
const q = clone(query)
|
|
2105
|
-
|
|
2106
|
-
if (ismap(v)) {
|
|
2107
|
-
setprop(v, '`$OPEN`', getprop(v, '`$OPEN`', true))
|
|
2108
|
-
}
|
|
2109
|
-
return v
|
|
2110
|
-
})
|
|
2387
|
+
_openquery(q)
|
|
2111
2388
|
for (const child of children) {
|
|
2112
2389
|
injdef.errs = []
|
|
2113
2390
|
validate(child, clone(q), injdef)
|
|
@@ -2117,12 +2394,33 @@ function select(children, query) {
|
|
|
2117
2394
|
}
|
|
2118
2395
|
return results
|
|
2119
2396
|
}
|
|
2397
|
+
// Open every map in a select query, so a child may hold keys the query does
|
|
2398
|
+
// not name, but leave a directive's literals as written: what $EXACT
|
|
2399
|
+
// compares, and the count or bound of $NOF, $LEN and $RANGE.
|
|
2400
|
+
function _openquery(q) {
|
|
2401
|
+
if (ismap(q)) {
|
|
2402
|
+
setprop(q, '`$OPEN`', getprop(q, '`$OPEN`', true))
|
|
2403
|
+
for (const key of keysof(q)) {
|
|
2404
|
+
_openquery(q[key])
|
|
2405
|
+
}
|
|
2406
|
+
} else if (islist(q)) {
|
|
2407
|
+
const head = q[0]
|
|
2408
|
+
const exact = '`$EXACT`' === head
|
|
2409
|
+
const bounded = '`$NOF`' === head || '`$LEN`' === head || '`$RANGE`' === head
|
|
2410
|
+
for (let i = 0; i < size(q); i++) {
|
|
2411
|
+
if (0 === i || !(exact || (bounded && 1 === i))) {
|
|
2412
|
+
_openquery(q[i])
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
}
|
|
2120
2417
|
// Injection state used for recursive injection into JSON - like data structures.
|
|
2121
2418
|
class Injection {
|
|
2122
2419
|
constructor(val, parent) {
|
|
2123
2420
|
this.val = val
|
|
2124
2421
|
this.parent = parent
|
|
2125
2422
|
this.errs = []
|
|
2423
|
+
this.named = false // Current map node names keys of its own (not $ commands).
|
|
2126
2424
|
this.dparent = NONE
|
|
2127
2425
|
this.dpath = [S_DTOP]
|
|
2128
2426
|
this.mode = M_VAL
|
|
@@ -2213,9 +2511,12 @@ class Injection {
|
|
|
2213
2511
|
setval(val, ancestor) {
|
|
2214
2512
|
let parent = NONE
|
|
2215
2513
|
if (null == ancestor || ancestor < 2) {
|
|
2514
|
+
// A list keeps the removed slot as a hole until inject's loop ends.
|
|
2216
2515
|
parent =
|
|
2217
2516
|
NONE === val
|
|
2218
|
-
? (this.parent
|
|
2517
|
+
? islist(this.parent)
|
|
2518
|
+
? setprop(this.parent, this.key, SKIP)
|
|
2519
|
+
: (this.parent = delprop(this.parent, this.key))
|
|
2219
2520
|
: setprop(this.parent, this.key, val)
|
|
2220
2521
|
} else {
|
|
2221
2522
|
const aval = getelem(this.nodes, 0 - ancestor)
|
|
@@ -2248,6 +2549,157 @@ function _invalidTypeMsg(path, needtype, vt, v, _whence) {
|
|
|
2248
2549
|
'.'
|
|
2249
2550
|
)
|
|
2250
2551
|
}
|
|
2552
|
+
// Names a validate spec may use besides its checkers: transform's that it keeps, and $OPEN.
|
|
2553
|
+
const VALIDATE_NAMES = [
|
|
2554
|
+
'$TOP',
|
|
2555
|
+
'$SPEC',
|
|
2556
|
+
'$BT',
|
|
2557
|
+
'$DS',
|
|
2558
|
+
'$WHEN',
|
|
2559
|
+
'$ANNO',
|
|
2560
|
+
'$REF',
|
|
2561
|
+
'$FORMAT',
|
|
2562
|
+
'$APPLY',
|
|
2563
|
+
'$OPEN',
|
|
2564
|
+
]
|
|
2565
|
+
// Report each checker the spec names that validate lacks, and each misplaced
|
|
2566
|
+
// $REST; $EXACT's arguments are literals. Last: spec is a list's last item.
|
|
2567
|
+
function _checknames(spec, store, path, errs, last) {
|
|
2568
|
+
const name = _refname(spec)
|
|
2569
|
+
if (NONE !== name) {
|
|
2570
|
+
if (_unknownname(name, store)) {
|
|
2571
|
+
errs.push('Unknown validator ' + name + ' at field ' + pathify(path) + '.')
|
|
2572
|
+
} else if ('$REST' === name) {
|
|
2573
|
+
errs.push(_restmsg(path, ' must be the last element of an array.'))
|
|
2574
|
+
}
|
|
2575
|
+
return
|
|
2576
|
+
}
|
|
2577
|
+
const head = islist(spec) ? _refname(spec[0]) : NONE
|
|
2578
|
+
if ('$EXACT' === head) {
|
|
2579
|
+
return
|
|
2580
|
+
}
|
|
2581
|
+
if ('$REST' === head) {
|
|
2582
|
+
if (true !== last) {
|
|
2583
|
+
errs.push(_restmsg(path, ' must be the last element of an array.'))
|
|
2584
|
+
} else if (2 !== size(spec)) {
|
|
2585
|
+
errs.push(_restmsg(path, ' must have exactly one spec.'))
|
|
2586
|
+
}
|
|
2587
|
+
_checknames(spec[1], store, flatten([path, 1]), errs)
|
|
2588
|
+
return
|
|
2589
|
+
}
|
|
2590
|
+
const restkey = '`$REST`'
|
|
2591
|
+
if (ismap(spec) && NONE !== _lookup(spec, restkey) && NONE !== _lookup(spec, '`$CHILD`')) {
|
|
2592
|
+
errs.push(_restmsg(path, ' cannot be used with $CHILD.'))
|
|
2593
|
+
}
|
|
2594
|
+
const lastkey = islist(spec) ? strkey(size(spec) - 1) : NONE
|
|
2595
|
+
for (const key of keysof(spec)) {
|
|
2596
|
+
if (ismap(spec) && restkey !== key) {
|
|
2597
|
+
_checknames(key, store, path, errs)
|
|
2598
|
+
}
|
|
2599
|
+
_checknames(spec[key], store, flatten([path, key]), errs, lastkey === key)
|
|
2600
|
+
}
|
|
2601
|
+
}
|
|
2602
|
+
// The name a whole-string reference gives, when it is a checker name in any case.
|
|
2603
|
+
function _refname(val) {
|
|
2604
|
+
const m = S_string === typeof val ? re_find(R_INJECTION_FULL, val) : null
|
|
2605
|
+
return null != m && re_test(R_CHECKER_NAME, m[1].toUpperCase()) ? m[1] : NONE
|
|
2606
|
+
}
|
|
2607
|
+
// Unknown: undefined and upper case, or a defined name in another case. Null disables a name.
|
|
2608
|
+
function _unknownname(name, store) {
|
|
2609
|
+
const known = (n) => VALIDATE_NAMES.includes(n) || null != _lookup(store, n)
|
|
2610
|
+
const upper = name.toUpperCase()
|
|
2611
|
+
return !known(name) && (upper === name || known(upper))
|
|
2612
|
+
}
|
|
2613
|
+
// The data value at a list directive's slot. The directive's own dparent was
|
|
2614
|
+
// read with getprop, which reports a stored null as absent.
|
|
2615
|
+
function _slotval(inj) {
|
|
2616
|
+
const prior = inj.prior
|
|
2617
|
+
return NONE === prior ? inj.dparent : _lookup(prior.dparent, prior.key)
|
|
2618
|
+
}
|
|
2619
|
+
// JSON equality: numbers by value, lists in order, maps by key in any order.
|
|
2620
|
+
function _deepequal(a, b) {
|
|
2621
|
+
if (a === b) {
|
|
2622
|
+
return true
|
|
2623
|
+
}
|
|
2624
|
+
const atype = typify(a)
|
|
2625
|
+
if (atype !== typify(b) || 0 === ((T_list | T_map) & atype)) {
|
|
2626
|
+
return false
|
|
2627
|
+
}
|
|
2628
|
+
const akeys = keysof(a)
|
|
2629
|
+
const bkeys = keysof(b)
|
|
2630
|
+
if (size(akeys) !== size(bkeys)) {
|
|
2631
|
+
return false
|
|
2632
|
+
}
|
|
2633
|
+
for (let kI = 0; kI < size(akeys); kI++) {
|
|
2634
|
+
const k = akeys[kI]
|
|
2635
|
+
if (k !== bkeys[kI] || !_deepequal(a[k], b[k])) {
|
|
2636
|
+
return false
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
return true
|
|
2640
|
+
}
|
|
2641
|
+
// Every member val has is in out, unchanged. A member only out has is a
|
|
2642
|
+
// default the spec supplied, and is ignored.
|
|
2643
|
+
function _keeps(val, out) {
|
|
2644
|
+
if (NONE === val) {
|
|
2645
|
+
return true
|
|
2646
|
+
}
|
|
2647
|
+
if (0 === ((T_list | T_map) & typify(val)) || islist(val) !== islist(out) || !isnode(out)) {
|
|
2648
|
+
return _deepequal(val, out)
|
|
2649
|
+
}
|
|
2650
|
+
for (const k of keysof(val)) {
|
|
2651
|
+
if (!_keeps(val[k], _lookup(out, k))) {
|
|
2652
|
+
return false
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2655
|
+
return true
|
|
2656
|
+
}
|
|
2657
|
+
// A spec admits a value when validating the value against it finds no error
|
|
2658
|
+
// and gives back the value as it is.
|
|
2659
|
+
function _admits(val, spec, inj, store) {
|
|
2660
|
+
const terrs = []
|
|
2661
|
+
const vstore = merge([{}, store], 1)
|
|
2662
|
+
vstore.$TOP = val
|
|
2663
|
+
const out = validate(val, spec, {
|
|
2664
|
+
extra: vstore,
|
|
2665
|
+
errs: terrs,
|
|
2666
|
+
meta: inj.meta,
|
|
2667
|
+
})
|
|
2668
|
+
return 0 === size(terrs) && _keeps(val, out)
|
|
2669
|
+
}
|
|
2670
|
+
// The bounds of a $NOF count, and the words for it, which are absent when
|
|
2671
|
+
// the count is invalid. Without a max, the bound is the number of specs.
|
|
2672
|
+
function _nofcount(count, numtvals) {
|
|
2673
|
+
const isnat = (n) => 0 < (T_integer & typify(n)) && 0 <= n
|
|
2674
|
+
if (isnat(count)) {
|
|
2675
|
+
return [count, count, 0 === count ? 'none' : 'exactly ' + count]
|
|
2676
|
+
}
|
|
2677
|
+
const min = _lookup(count, 'min')
|
|
2678
|
+
const max = _lookup(count, 'max')
|
|
2679
|
+
const valid =
|
|
2680
|
+
ismap(count) &&
|
|
2681
|
+
0 < size(count) &&
|
|
2682
|
+
size(count) === (NONE === min ? 0 : 1) + (NONE === max ? 0 : 1) &&
|
|
2683
|
+
(NONE === min || isnat(min)) &&
|
|
2684
|
+
(NONE === max || isnat(max)) &&
|
|
2685
|
+
(NONE === min || NONE === max || min <= max)
|
|
2686
|
+
if (!valid) {
|
|
2687
|
+
return [0, 0, NONE]
|
|
2688
|
+
}
|
|
2689
|
+
const lo = NONE === min ? 0 : min
|
|
2690
|
+
const hi = NONE === max ? numtvals : max
|
|
2691
|
+
const desc =
|
|
2692
|
+
NONE === max
|
|
2693
|
+
? 'at least ' + lo
|
|
2694
|
+
: 0 === hi
|
|
2695
|
+
? 'none'
|
|
2696
|
+
: NONE === min
|
|
2697
|
+
? 'at most ' + hi
|
|
2698
|
+
: lo === hi
|
|
2699
|
+
? 'exactly ' + lo
|
|
2700
|
+
: lo + ' to ' + hi
|
|
2701
|
+
return [lo, hi, desc]
|
|
2702
|
+
}
|
|
2251
2703
|
// Default inject handler for transforms. If the path resolves to a function,
|
|
2252
2704
|
// call the function passing the injection inj. This is how transforms operate.
|
|
2253
2705
|
const _injecthandler = (inj, val, ref, store) => {
|
|
@@ -2429,9 +2881,12 @@ function injectChild(child, store, inj) {
|
|
|
2429
2881
|
class StructUtility {
|
|
2430
2882
|
constructor() {
|
|
2431
2883
|
this.clone = clone
|
|
2884
|
+
this.condense = condense
|
|
2885
|
+
this.condenseview = condenseview
|
|
2432
2886
|
this.delprop = delprop
|
|
2433
2887
|
this.escre = escre
|
|
2434
2888
|
this.escurl = escurl
|
|
2889
|
+
this.expand = expand
|
|
2435
2890
|
this.filter = filter
|
|
2436
2891
|
this.flatten = flatten
|
|
2437
2892
|
this.getdef = getdef
|
|
@@ -2441,6 +2896,7 @@ class StructUtility {
|
|
|
2441
2896
|
this.haskey = haskey
|
|
2442
2897
|
this.inject = inject
|
|
2443
2898
|
this.isempty = isempty
|
|
2899
|
+
this.iscondensed = iscondensed
|
|
2444
2900
|
this.isfunc = isfunc
|
|
2445
2901
|
this.iskey = iskey
|
|
2446
2902
|
this.islist = islist
|
|
@@ -2496,6 +2952,338 @@ class StructUtility {
|
|
|
2496
2952
|
this.injectChild = injectChild
|
|
2497
2953
|
}
|
|
2498
2954
|
}
|
|
2955
|
+
const CONDENSE_VERSION = 1
|
|
2956
|
+
const CONDENSE_MAP = 0
|
|
2957
|
+
const CONDENSE_LIST = 1
|
|
2958
|
+
const CONDENSE_STR = 2
|
|
2959
|
+
const CONDENSE_NUM = 3
|
|
2960
|
+
const CONDENSE_TRUE = 4
|
|
2961
|
+
const CONDENSE_FALSE = 5
|
|
2962
|
+
const CONDENSE_NULL = 6
|
|
2963
|
+
const S_condense = '$condense'
|
|
2964
|
+
const S_condsym = 'sym'
|
|
2965
|
+
const S_condnode = 'node'
|
|
2966
|
+
const S_condroot = 'root'
|
|
2967
|
+
function condenseCmp(a, b) {
|
|
2968
|
+
let i = 0
|
|
2969
|
+
let j = 0
|
|
2970
|
+
while (i < a.length && j < b.length) {
|
|
2971
|
+
const ca = a.codePointAt(i)
|
|
2972
|
+
const cb = b.codePointAt(j)
|
|
2973
|
+
if (ca !== cb) {
|
|
2974
|
+
return ca < cb ? -1 : 1
|
|
2975
|
+
}
|
|
2976
|
+
i += 0xffff < ca ? 2 : 1
|
|
2977
|
+
j += 0xffff < cb ? 2 : 1
|
|
2978
|
+
}
|
|
2979
|
+
return a.length - i - (b.length - j)
|
|
2980
|
+
}
|
|
2981
|
+
function iscondensed(val) {
|
|
2982
|
+
// The version must MATCH, not merely be numeric: a future profile would
|
|
2983
|
+
// otherwise be decoded under this one's schema.
|
|
2984
|
+
return (
|
|
2985
|
+
ismap(val) &&
|
|
2986
|
+
CONDENSE_VERSION === val[S_condense] &&
|
|
2987
|
+
islist(val[S_condsym]) &&
|
|
2988
|
+
islist(val[S_condnode]) &&
|
|
2989
|
+
'number' === typeof val[S_condroot]
|
|
2990
|
+
)
|
|
2991
|
+
}
|
|
2992
|
+
// Condense any JSON-shaped node. Pure: the same input always produces a
|
|
2993
|
+
// byte-identical result, on every port.
|
|
2994
|
+
function condense(val) {
|
|
2995
|
+
// Pass one: every distinct map key and string value, once, sorted.
|
|
2996
|
+
const symset = Object.create(null)
|
|
2997
|
+
const collect = (n) => {
|
|
2998
|
+
if (ismap(n)) {
|
|
2999
|
+
const keys = keysof(n)
|
|
3000
|
+
for (let i = 0; i < keys.length; i++) {
|
|
3001
|
+
symset[keys[i]] = true
|
|
3002
|
+
collect(n[keys[i]])
|
|
3003
|
+
}
|
|
3004
|
+
} else if (islist(n)) {
|
|
3005
|
+
for (let i = 0; i < n.length; i++) {
|
|
3006
|
+
collect(n[i])
|
|
3007
|
+
}
|
|
3008
|
+
} else if ('string' === typeof n) {
|
|
3009
|
+
symset[n] = true
|
|
3010
|
+
}
|
|
3011
|
+
}
|
|
3012
|
+
collect(val)
|
|
3013
|
+
const sym = Object.keys(symset).sort(condenseCmp)
|
|
3014
|
+
const symid = Object.create(null)
|
|
3015
|
+
for (let i = 0; i < sym.length; i++) {
|
|
3016
|
+
symid[sym[i]] = i
|
|
3017
|
+
}
|
|
3018
|
+
// Pass two: build post-order, interning on the canonical encoding. Because
|
|
3019
|
+
// children are built first, identical subtrees have already been interned
|
|
3020
|
+
// by the time a parent references them, so sharing costs nothing extra.
|
|
3021
|
+
const node = []
|
|
3022
|
+
const seen = Object.create(null)
|
|
3023
|
+
const intern = (enc) => {
|
|
3024
|
+
// The kind tag leads every encoding, so a string node and a number node
|
|
3025
|
+
// can never collide on the same joined key.
|
|
3026
|
+
const enckey = enc.join(',')
|
|
3027
|
+
const hit = seen[enckey]
|
|
3028
|
+
if (undefined !== hit) {
|
|
3029
|
+
return hit
|
|
3030
|
+
}
|
|
3031
|
+
const idx = node.length
|
|
3032
|
+
node.push(enc)
|
|
3033
|
+
seen[enckey] = idx
|
|
3034
|
+
return idx
|
|
3035
|
+
}
|
|
3036
|
+
const build = (n) => {
|
|
3037
|
+
if (ismap(n)) {
|
|
3038
|
+
const enc = [CONDENSE_MAP]
|
|
3039
|
+
// Code-point order, not keysof's code-unit order, so the key ids ascend for bisection.
|
|
3040
|
+
const keys = keysof(n).sort(condenseCmp)
|
|
3041
|
+
for (let i = 0; i < keys.length; i++) {
|
|
3042
|
+
enc.push(symid[keys[i]])
|
|
3043
|
+
enc.push(build(n[keys[i]]))
|
|
3044
|
+
}
|
|
3045
|
+
return intern(enc)
|
|
3046
|
+
}
|
|
3047
|
+
if (islist(n)) {
|
|
3048
|
+
const enc = [CONDENSE_LIST]
|
|
3049
|
+
for (let i = 0; i < n.length; i++) {
|
|
3050
|
+
enc.push(build(n[i]))
|
|
3051
|
+
}
|
|
3052
|
+
return intern(enc)
|
|
3053
|
+
}
|
|
3054
|
+
if ('string' === typeof n) {
|
|
3055
|
+
return intern([CONDENSE_STR, symid[n]])
|
|
3056
|
+
}
|
|
3057
|
+
if ('number' === typeof n) {
|
|
3058
|
+
return intern([CONDENSE_NUM, n])
|
|
3059
|
+
}
|
|
3060
|
+
if (true === n) {
|
|
3061
|
+
return intern([CONDENSE_TRUE])
|
|
3062
|
+
}
|
|
3063
|
+
if (false === n) {
|
|
3064
|
+
return intern([CONDENSE_FALSE])
|
|
3065
|
+
}
|
|
3066
|
+
return intern([CONDENSE_NULL])
|
|
3067
|
+
}
|
|
3068
|
+
const root = build(val)
|
|
3069
|
+
const out = {}
|
|
3070
|
+
out[S_condense] = CONDENSE_VERSION
|
|
3071
|
+
out[S_condsym] = sym
|
|
3072
|
+
out[S_condnode] = node
|
|
3073
|
+
out[S_condroot] = root
|
|
3074
|
+
return out
|
|
3075
|
+
}
|
|
3076
|
+
// Resolve a symbol to its id by bisecting the sorted symbol table. -1 when
|
|
3077
|
+
// the string does not occur anywhere in the structure, which is itself a fast
|
|
3078
|
+
// negative answer for a key lookup.
|
|
3079
|
+
function condenseSymId(cond, key) {
|
|
3080
|
+
const sym = cond[S_condsym]
|
|
3081
|
+
let lo = 0
|
|
3082
|
+
let hi = sym.length - 1
|
|
3083
|
+
while (lo <= hi) {
|
|
3084
|
+
const mid = (lo + hi) >> 1
|
|
3085
|
+
if (sym[mid] === key) {
|
|
3086
|
+
return mid
|
|
3087
|
+
}
|
|
3088
|
+
if (0 > condenseCmp(sym[mid], key)) {
|
|
3089
|
+
lo = mid + 1
|
|
3090
|
+
} else {
|
|
3091
|
+
hi = mid - 1
|
|
3092
|
+
}
|
|
3093
|
+
}
|
|
3094
|
+
return -1
|
|
3095
|
+
}
|
|
3096
|
+
// The node index of `key` inside node `idx`, or -1. Touches only this node.
|
|
3097
|
+
function condenseChild(cond, idx, key) {
|
|
3098
|
+
const enc = cond[S_condnode][idx]
|
|
3099
|
+
if (null == enc || (S_string !== typeof key && S_number !== typeof key)) {
|
|
3100
|
+
return -1
|
|
3101
|
+
}
|
|
3102
|
+
if (CONDENSE_MAP === enc[0]) {
|
|
3103
|
+
const symid = condenseSymId(cond, S_MT + key)
|
|
3104
|
+
if (0 > symid) {
|
|
3105
|
+
return -1
|
|
3106
|
+
}
|
|
3107
|
+
// Pairs live at [1,2], [3,4], ... with keys ascending: bisect the pairs.
|
|
3108
|
+
let lo = 0
|
|
3109
|
+
let hi = (enc.length - 1) / 2 - 1
|
|
3110
|
+
while (lo <= hi) {
|
|
3111
|
+
const mid = (lo + hi) >> 1
|
|
3112
|
+
const k = enc[1 + mid * 2]
|
|
3113
|
+
if (k === symid) {
|
|
3114
|
+
return enc[2 + mid * 2]
|
|
3115
|
+
}
|
|
3116
|
+
if (k < symid) {
|
|
3117
|
+
lo = mid + 1
|
|
3118
|
+
} else {
|
|
3119
|
+
hi = mid - 1
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
return -1
|
|
3123
|
+
}
|
|
3124
|
+
if (CONDENSE_LIST === enc[0]) {
|
|
3125
|
+
// Canonical integer keys ONLY. Unary + would accept "01", "1e0", " 1"
|
|
3126
|
+
// and "+1", which an ordinary list lookup treats as plain (absent)
|
|
3127
|
+
// properties - condensing must not change which value a path selects.
|
|
3128
|
+
const k = S_MT + key
|
|
3129
|
+
if (!/^(0|[1-9][0-9]*)$/.test(k)) {
|
|
3130
|
+
return -1
|
|
3131
|
+
}
|
|
3132
|
+
const i = +k
|
|
3133
|
+
if (i >= enc.length - 1) {
|
|
3134
|
+
return -1
|
|
3135
|
+
}
|
|
3136
|
+
return enc[1 + i]
|
|
3137
|
+
}
|
|
3138
|
+
return -1
|
|
3139
|
+
}
|
|
3140
|
+
// Walk a path from a starting node, returning the node index or -1.
|
|
3141
|
+
function condenseResolve(cond, idx, path) {
|
|
3142
|
+
const parts = islist(path)
|
|
3143
|
+
? path
|
|
3144
|
+
: 'string' === typeof path
|
|
3145
|
+
? '' === path
|
|
3146
|
+
? []
|
|
3147
|
+
: path.split(S_DT)
|
|
3148
|
+
: null == path
|
|
3149
|
+
? []
|
|
3150
|
+
: [S_MT + path]
|
|
3151
|
+
let at = idx
|
|
3152
|
+
for (let i = 0; i < parts.length; i++) {
|
|
3153
|
+
if (0 > at) {
|
|
3154
|
+
return -1
|
|
3155
|
+
}
|
|
3156
|
+
if (S_MT === parts[i]) {
|
|
3157
|
+
continue
|
|
3158
|
+
}
|
|
3159
|
+
at = condenseChild(cond, at, parts[i])
|
|
3160
|
+
}
|
|
3161
|
+
return at
|
|
3162
|
+
}
|
|
3163
|
+
function condenseMaterialise(cond, idx) {
|
|
3164
|
+
const sym = cond[S_condsym]
|
|
3165
|
+
const node = cond[S_condnode]
|
|
3166
|
+
const rebuild = (i) => {
|
|
3167
|
+
const enc = node[i]
|
|
3168
|
+
if (null == enc) {
|
|
3169
|
+
return undefined
|
|
3170
|
+
}
|
|
3171
|
+
const kind = enc[0]
|
|
3172
|
+
if (CONDENSE_MAP === kind) {
|
|
3173
|
+
const out = {}
|
|
3174
|
+
for (let j = 1; j < enc.length; j += 2) {
|
|
3175
|
+
_setown(out, sym[enc[j]], rebuild(enc[j + 1]))
|
|
3176
|
+
}
|
|
3177
|
+
return out
|
|
3178
|
+
}
|
|
3179
|
+
if (CONDENSE_LIST === kind) {
|
|
3180
|
+
const out = []
|
|
3181
|
+
for (let j = 1; j < enc.length; j++) {
|
|
3182
|
+
out.push(rebuild(enc[j]))
|
|
3183
|
+
}
|
|
3184
|
+
return out
|
|
3185
|
+
}
|
|
3186
|
+
if (CONDENSE_STR === kind) {
|
|
3187
|
+
return sym[enc[1]]
|
|
3188
|
+
}
|
|
3189
|
+
if (CONDENSE_NUM === kind) {
|
|
3190
|
+
return enc[1]
|
|
3191
|
+
}
|
|
3192
|
+
if (CONDENSE_TRUE === kind) {
|
|
3193
|
+
return true
|
|
3194
|
+
}
|
|
3195
|
+
if (CONDENSE_FALSE === kind) {
|
|
3196
|
+
return false
|
|
3197
|
+
}
|
|
3198
|
+
return null
|
|
3199
|
+
}
|
|
3200
|
+
return 0 > idx ? undefined : rebuild(idx)
|
|
3201
|
+
}
|
|
3202
|
+
// Fully materialise a condensed structure. The escape hatch: correct for any
|
|
3203
|
+
// caller, but it gives up every benefit of condensing, so prefer a view or a
|
|
3204
|
+
// path read.
|
|
3205
|
+
function expand(cond) {
|
|
3206
|
+
if (!iscondensed(cond)) {
|
|
3207
|
+
return cond
|
|
3208
|
+
}
|
|
3209
|
+
return condenseMaterialise(cond, cond[S_condroot])
|
|
3210
|
+
}
|
|
3211
|
+
// The keys of node `idx`, WITHOUT materialising any of its values. This is
|
|
3212
|
+
// the point of the whole exercise for enumeration: listing the names in a
|
|
3213
|
+
// large collection should cost a symbol-table read, not a full decode.
|
|
3214
|
+
function condenseKeys(cond, idx) {
|
|
3215
|
+
const enc = cond[S_condnode][idx]
|
|
3216
|
+
if (null == enc) {
|
|
3217
|
+
return []
|
|
3218
|
+
}
|
|
3219
|
+
const sym = cond[S_condsym]
|
|
3220
|
+
const out = []
|
|
3221
|
+
if (CONDENSE_MAP === enc[0]) {
|
|
3222
|
+
for (let j = 1; j < enc.length; j += 2) {
|
|
3223
|
+
out.push(sym[enc[j]])
|
|
3224
|
+
}
|
|
3225
|
+
return out
|
|
3226
|
+
}
|
|
3227
|
+
if (CONDENSE_LIST === enc[0]) {
|
|
3228
|
+
for (let j = 1; j < enc.length; j++) {
|
|
3229
|
+
out.push(S_MT + (j - 1))
|
|
3230
|
+
}
|
|
3231
|
+
return out
|
|
3232
|
+
}
|
|
3233
|
+
return []
|
|
3234
|
+
}
|
|
3235
|
+
// A cursor into a condensed structure. Reads resolve by integer index and
|
|
3236
|
+
// touch only the nodes on the path, so the cost of a lookup is proportional
|
|
3237
|
+
// to path depth and result size, never to total structure size.
|
|
3238
|
+
function condenseview(cond, idx, memo) {
|
|
3239
|
+
const start = null == idx ? (iscondensed(cond) ? cond[S_condroot] : -1) : idx
|
|
3240
|
+
// Shared materialisations, handed out ONLY by ref(). Threaded through at()
|
|
3241
|
+
// so every cursor into the same structure shares one memo - otherwise
|
|
3242
|
+
// ref() would hand out a different object per cursor and quietly stop
|
|
3243
|
+
// being the shared-reference escape hatch it claims to be.
|
|
3244
|
+
const refmemo = null == memo ? {} : memo
|
|
3245
|
+
const view = {
|
|
3246
|
+
// The value at path, materialised. Scalars come back directly; a
|
|
3247
|
+
// container comes back as an independent copy.
|
|
3248
|
+
get: (path) => condenseMaterialise(cond, condenseResolve(cond, start, path)),
|
|
3249
|
+
// Key names at path, with no value decoding at all.
|
|
3250
|
+
keys: (path) => {
|
|
3251
|
+
const at = condenseResolve(cond, start, path)
|
|
3252
|
+
return 0 > at ? [] : condenseKeys(cond, at)
|
|
3253
|
+
},
|
|
3254
|
+
has: (path) => 0 <= condenseResolve(cond, start, path),
|
|
3255
|
+
// Chainable cursor. Cheap: no decoding happens here.
|
|
3256
|
+
at: (path) => condenseview(cond, condenseResolve(cond, start, path), refmemo),
|
|
3257
|
+
value: () => condenseMaterialise(cond, start),
|
|
3258
|
+
size: () => {
|
|
3259
|
+
const enc = 0 > start ? null : cond[S_condnode][start]
|
|
3260
|
+
if (null == enc) {
|
|
3261
|
+
return 0
|
|
3262
|
+
}
|
|
3263
|
+
if (CONDENSE_MAP === enc[0]) {
|
|
3264
|
+
return (enc.length - 1) / 2
|
|
3265
|
+
}
|
|
3266
|
+
if (CONDENSE_LIST === enc[0]) {
|
|
3267
|
+
return enc.length - 1
|
|
3268
|
+
}
|
|
3269
|
+
return 0
|
|
3270
|
+
},
|
|
3271
|
+
exists: () => 0 <= start,
|
|
3272
|
+
// DANGER, and named to say so. Returns a SHARED materialisation: the same
|
|
3273
|
+
// object for the same node, every time. Mutating it corrupts every other
|
|
3274
|
+
// reader of that node, including ones reached by a different path,
|
|
3275
|
+
// because the structure is a DAG. Use value() unless a profile says this
|
|
3276
|
+
// matters.
|
|
3277
|
+
ref: () => {
|
|
3278
|
+
const k = S_MT + start
|
|
3279
|
+
if (undefined === refmemo[k]) {
|
|
3280
|
+
refmemo[k] = condenseMaterialise(cond, start)
|
|
3281
|
+
}
|
|
3282
|
+
return refmemo[k]
|
|
3283
|
+
},
|
|
3284
|
+
}
|
|
3285
|
+
return view
|
|
3286
|
+
}
|
|
2499
3287
|
|
|
2500
3288
|
module.exports = {
|
|
2501
3289
|
StructUtility,
|
|
@@ -2509,6 +3297,10 @@ module.exports = {
|
|
|
2509
3297
|
re_escape,
|
|
2510
3298
|
|
|
2511
3299
|
clone,
|
|
3300
|
+
condense,
|
|
3301
|
+
condenseview,
|
|
3302
|
+
expand,
|
|
3303
|
+
iscondensed,
|
|
2512
3304
|
delprop,
|
|
2513
3305
|
escre,
|
|
2514
3306
|
escurl,
|