@voxgig/sdkgen 4.46.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 +61 -4
- package/dist/action/check.js.map +1 -1
- package/dist/action/doctor.d.ts +5 -0
- package/dist/action/doctor.js +51 -6
- package/dist/action/doctor.js.map +1 -1
- package/dist/action/package.d.ts +1 -1
- package/dist/action/package.js +6 -16
- package/dist/action/package.js.map +1 -1
- package/dist/action/remove.js +15 -4
- package/dist/action/remove.js.map +1 -1
- package/dist/action/resolve.d.ts +1 -0
- package/dist/action/resolve.js +10 -4
- package/dist/action/resolve.js.map +1 -1
- package/dist/action/target.js +55 -29
- package/dist/action/target.js.map +1 -1
- package/dist/admin/status.d.ts +7 -1
- package/dist/admin/status.js +34 -5
- package/dist/admin/status.js.map +1 -1
- package/dist/cmp/AgentGuide.js +53 -32
- package/dist/cmp/AgentGuide.js.map +1 -1
- package/dist/cmp/AgentGuideContent.d.ts +3 -3
- package/dist/cmp/AgentGuideContent.js +26 -19
- package/dist/cmp/AgentGuideContent.js.map +1 -1
- package/dist/cmp/AgentGuideFeature.js +14 -6
- package/dist/cmp/AgentGuideFeature.js.map +1 -1
- package/dist/cmp/AgentGuideTop.js +25 -16
- package/dist/cmp/AgentGuideTop.js.map +1 -1
- package/dist/cmp/Changelog.js +37 -7
- package/dist/cmp/Changelog.js.map +1 -1
- package/dist/cmp/Deploy.js +67 -21
- package/dist/cmp/Deploy.js.map +1 -1
- package/dist/cmp/Entity.js +1 -1
- package/dist/cmp/Entity.js.map +1 -1
- package/dist/cmp/ExternalTarget.js +5 -0
- package/dist/cmp/ExternalTarget.js.map +1 -1
- package/dist/cmp/Feature.js +2 -2
- package/dist/cmp/Feature.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/Main.js +1 -1
- package/dist/cmp/Main.js.map +1 -1
- package/dist/cmp/PublishWorkflow.js +63 -53
- package/dist/cmp/PublishWorkflow.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/ReadmeIntro.js +1 -1
- package/dist/cmp/ReadmeIntro.js.map +1 -1
- package/dist/cmp/ReadmeModel.js +15 -11
- 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/ReadmeStation.js +3 -3
- package/dist/cmp/ReadmeStation.js.map +1 -1
- package/dist/cmp/ReadmeTop.js +135 -102
- package/dist/cmp/ReadmeTop.js.map +1 -1
- package/dist/cmp/Registered.js +1 -1
- package/dist/cmp/Registered.js.map +1 -1
- package/dist/cmp/Security.js +23 -3
- package/dist/cmp/Security.js.map +1 -1
- package/dist/cmp/Test.js +1 -1
- package/dist/cmp/Test.js.map +1 -1
- package/dist/helpers/alongside.d.ts +2 -3
- package/dist/helpers/alongside.js +16 -15
- package/dist/helpers/alongside.js.map +1 -1
- package/dist/helpers/applicability.d.ts +2 -1
- package/dist/helpers/applicability.js +14 -1
- package/dist/helpers/applicability.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/component.js +9 -1
- package/dist/helpers/component.js.map +1 -1
- 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/definitionPlan.js +0 -1
- package/dist/helpers/definitionPlan.js.map +1 -1
- package/dist/helpers/doctext.js +10 -1
- package/dist/helpers/doctext.js.map +1 -1
- package/dist/helpers/facts.js +198 -4
- package/dist/helpers/facts.js.map +1 -1
- package/dist/helpers/flowGuard.d.ts +1 -1
- package/dist/helpers/flowGuard.js +21 -8
- package/dist/helpers/flowGuard.js.map +1 -1
- package/dist/helpers/generated.d.ts +1 -0
- package/dist/helpers/generated.js +1 -1
- package/dist/helpers/generated.js.map +1 -1
- package/dist/helpers/graphqlPoint.d.ts +2 -1
- package/dist/helpers/graphqlPoint.js +17 -0
- package/dist/helpers/graphqlPoint.js.map +1 -1
- package/dist/helpers/guardModel.d.ts +2 -0
- package/dist/helpers/guardModel.js +41 -0
- package/dist/helpers/guardModel.js.map +1 -0
- package/dist/helpers/manifest.d.ts +2 -1
- package/dist/helpers/manifest.js +16 -0
- package/dist/helpers/manifest.js.map +1 -1
- package/dist/helpers/mcpTools.d.ts +3 -2
- package/dist/helpers/mcpTools.js +9 -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 +48 -18
- 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 +7 -4
- package/dist/helpers/packageMeta.js +130 -47
- package/dist/helpers/packageMeta.js.map +1 -1
- package/dist/helpers/placement.d.ts +15 -0
- package/dist/helpers/placement.js +76 -0
- package/dist/helpers/placement.js.map +1 -0
- 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/semver.d.ts +2 -1
- package/dist/helpers/semver.js +21 -0
- package/dist/helpers/semver.js.map +1 -1
- package/dist/helpers/serverVars.js +3 -2
- package/dist/helpers/serverVars.js.map +1 -1
- package/dist/helpers/shipped.d.ts +2 -1
- package/dist/helpers/shipped.js +12 -0
- package/dist/helpers/shipped.js.map +1 -1
- package/dist/helpers/sourcestring.d.ts +4 -0
- package/dist/helpers/sourcestring.js +49 -0
- package/dist/helpers/sourcestring.js.map +1 -0
- package/dist/helpers/stdrep.d.ts +1 -1
- package/dist/helpers/stdrep.js +8 -4
- package/dist/helpers/stdrep.js.map +1 -1
- package/dist/helpers/surface.d.ts +12 -0
- package/dist/helpers/surface.js +81 -0
- package/dist/helpers/surface.js.map +1 -0
- package/dist/helpers/targetguard.d.ts +13 -0
- package/dist/helpers/targetguard.js +65 -0
- package/dist/helpers/targetguard.js.map +1 -0
- package/dist/helpers/testPolicy.js +3 -3
- package/dist/helpers/testPolicy.js.map +1 -1
- package/dist/helpers/text.d.ts +3 -1
- package/dist/helpers/text.js +16 -0
- package/dist/helpers/text.js.map +1 -1
- package/dist/helpers/textguard.d.ts +31 -0
- package/dist/helpers/textguard.js +157 -0
- package/dist/helpers/textguard.js.map +1 -0
- package/dist/helpers/title.d.ts +4 -0
- package/dist/helpers/title.js +52 -0
- package/dist/helpers/title.js.map +1 -0
- package/dist/sdkgen.d.ts +15 -11
- package/dist/sdkgen.js +77 -71
- package/dist/sdkgen.js.map +1 -1
- package/dist/testkit.d.ts +6 -2
- package/dist/testkit.js +4 -1
- package/dist/testkit.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 +106 -0
- package/model/sdkgen.aontu +11 -1
- 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 +29 -12
- 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 +21 -10
- 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 +23 -13
- 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 +22 -11
- 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 +22 -11
- 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 +16 -12
- 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 +12 -10
- 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 +15 -5
- 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 +23 -24
- 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 +22 -11
- 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 +22 -11
- 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 +22 -11
- 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 +22 -11
- 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 +11 -9
- 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 +22 -11
- 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 +22 -10
- 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 +24 -24
- 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 +25 -26
- 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 +11 -9
- 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/TestDefinition_ts.ts +3 -1
- 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 +25 -11
- 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 +157 -4
- 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 +119 -2
- 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 +199 -39
- 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 +82 -4
- package/src/action/doctor.ts +70 -6
- package/src/action/package.ts +1 -13
- package/src/action/remove.ts +19 -5
- package/src/action/resolve.ts +11 -4
- package/src/action/target.ts +75 -32
- package/src/admin/status.ts +25 -5
- package/src/cmp/AgentGuide.ts +57 -32
- package/src/cmp/AgentGuideContent.ts +26 -19
- package/src/cmp/AgentGuideFeature.ts +15 -6
- package/src/cmp/AgentGuideTop.ts +28 -16
- package/src/cmp/Changelog.ts +46 -6
- package/src/cmp/Deploy.ts +76 -25
- package/src/cmp/Entity.ts +1 -1
- package/src/cmp/ExternalTarget.ts +6 -0
- package/src/cmp/Feature.ts +3 -3
- package/src/cmp/FeatureDocs.ts +4 -2
- package/src/cmp/License.ts +33 -10
- package/src/cmp/Main.ts +1 -1
- package/src/cmp/PublishWorkflow.ts +66 -58
- 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/ReadmeIntro.ts +1 -1
- package/src/cmp/ReadmeModel.ts +17 -11
- package/src/cmp/ReadmeOptions.ts +3 -16
- package/src/cmp/ReadmeQuick.ts +11 -2
- package/src/cmp/ReadmeRefFeatures.ts +38 -33
- package/src/cmp/ReadmeStation.ts +4 -5
- package/src/cmp/ReadmeTop.ts +145 -102
- package/src/cmp/Registered.ts +1 -1
- package/src/cmp/Security.ts +32 -5
- package/src/cmp/Test.ts +1 -1
- package/src/helpers/alongside.ts +16 -19
- package/src/helpers/applicability.ts +16 -1
- package/src/helpers/canonSpec.ts +56 -10
- package/src/helpers/clientOptions.ts +67 -0
- package/src/helpers/component.ts +11 -1
- package/src/helpers/consumer.ts +62 -0
- package/src/helpers/definitionPlan.ts +0 -1
- package/src/helpers/doctext.ts +12 -2
- package/src/helpers/facts.ts +243 -5
- package/src/helpers/flowGuard.ts +23 -8
- package/src/helpers/generated.ts +3 -1
- package/src/helpers/graphqlPoint.ts +20 -1
- package/src/helpers/guardModel.ts +50 -0
- package/src/helpers/manifest.ts +19 -0
- package/src/helpers/mcpTools.ts +15 -3
- package/src/helpers/naming.ts +3 -2
- package/src/helpers/opShape.ts +56 -18
- package/src/helpers/optional.ts +0 -1
- package/src/helpers/optspec.ts +22 -5
- package/src/helpers/packageMeta.ts +142 -45
- package/src/helpers/placement.ts +114 -0
- package/src/helpers/readerdir.ts +33 -0
- package/src/helpers/semver.ts +26 -0
- package/src/helpers/serverVars.ts +4 -2
- package/src/helpers/shipped.ts +13 -0
- package/src/helpers/sourcestring.ts +55 -0
- package/src/helpers/stdrep.ts +9 -4
- package/src/helpers/surface.ts +100 -0
- package/src/helpers/targetguard.ts +91 -0
- package/src/helpers/testPolicy.ts +3 -3
- package/src/helpers/text.ts +22 -0
- package/src/helpers/textguard.ts +208 -0
- package/src/helpers/title.ts +59 -0
- package/src/sdkgen.ts +89 -88
- package/src/testkit.ts +12 -0
- package/src/utility.ts +12 -5
- package/project/.sdk/src/cmp/c/ReadmeOptions_c.ts +0 -65
- package/project/.sdk/src/cmp/clojure/ReadmeOptions_clojure.ts +0 -61
- package/project/.sdk/src/cmp/cpp/ReadmeOptions_cpp.ts +0 -62
- package/project/.sdk/src/cmp/csharp/ReadmeOptions_csharp.ts +0 -60
- package/project/.sdk/src/cmp/elixir/ReadmeOptions_elixir.ts +0 -62
- package/project/.sdk/src/cmp/go/ReadmeOptions_go.ts +0 -59
- package/project/.sdk/src/cmp/java/ReadmeOptions_java.ts +0 -61
- package/project/.sdk/src/cmp/js/ReadmeOptions_js.ts +0 -59
- package/project/.sdk/src/cmp/kotlin/ReadmeOptions_kotlin.ts +0 -61
- package/project/.sdk/src/cmp/lua/ReadmeOptions_lua.ts +0 -59
- package/project/.sdk/src/cmp/ocaml/ReadmeOptions_ocaml.ts +0 -59
- package/project/.sdk/src/cmp/perl/ReadmeOptions_perl.ts +0 -59
- package/project/.sdk/src/cmp/php/ReadmeOptions_php.ts +0 -59
- package/project/.sdk/src/cmp/py/ReadmeOptions_py.ts +0 -59
- package/project/.sdk/src/cmp/rb/ReadmeOptions_rb.ts +0 -59
- package/project/.sdk/src/cmp/rust/ReadmeOptions_rust.ts +0 -60
- package/project/.sdk/src/cmp/scala/ReadmeOptions_scala.ts +0 -61
- package/project/.sdk/src/cmp/swift/ReadmeOptions_swift.ts +0 -62
- package/project/.sdk/src/cmp/ts/ReadmeOptions_ts.ts +0 -59
- package/project/.sdk/src/cmp/zig/ReadmeOptions_zig.ts +0 -60
- package/project/.sdk/tm/c/LICENSE +0 -22
- package/project/.sdk/tm/c/VERSION +0 -1
- package/project/.sdk/tm/clojure/LICENSE +0 -22
- package/project/.sdk/tm/clojure/VERSION +0 -1
- package/project/.sdk/tm/cpp/LICENSE +0 -22
- package/project/.sdk/tm/cpp/VERSION +0 -1
- package/project/.sdk/tm/csharp/LICENSE +0 -22
- package/project/.sdk/tm/csharp/VERSION +0 -1
- package/project/.sdk/tm/elixir/LICENSE +0 -21
- package/project/.sdk/tm/elixir/VERSION +0 -1
- package/project/.sdk/tm/go/LICENSE +0 -22
- package/project/.sdk/tm/go/VERSION +0 -1
- package/project/.sdk/tm/java/LICENSE +0 -22
- package/project/.sdk/tm/java/VERSION +0 -1
- package/project/.sdk/tm/js/LICENSE +0 -22
- package/project/.sdk/tm/kotlin/LICENSE +0 -22
- package/project/.sdk/tm/kotlin/VERSION +0 -1
- package/project/.sdk/tm/lua/LICENSE +0 -22
- package/project/.sdk/tm/ocaml/LICENSE +0 -21
- package/project/.sdk/tm/ocaml/VERSION +0 -1
- package/project/.sdk/tm/perl/LICENSE +0 -22
- package/project/.sdk/tm/php/LICENSE +0 -22
- package/project/.sdk/tm/php/VERSION +0 -1
- package/project/.sdk/tm/py/LICENSE +0 -22
- package/project/.sdk/tm/py-data/LICENSE +0 -22
- package/project/.sdk/tm/rb/LICENSE +0 -22
- package/project/.sdk/tm/rust/LICENSE +0 -22
- package/project/.sdk/tm/rust/VERSION +0 -1
- package/project/.sdk/tm/scala/LICENSE +0 -22
- package/project/.sdk/tm/scala/VERSION +0 -1
- package/project/.sdk/tm/swift/LICENSE +0 -22
- package/project/.sdk/tm/swift/VERSION +0 -1
- package/project/.sdk/tm/ts/LICENSE +0 -22
- package/project/.sdk/tm/zig/LICENSE +0 -21
- package/project/.sdk/tm/zig/VERSION +0 -1
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// VENDORED: @voxgig/struct 0.1.7 (rust/src/major.rs)
|
|
2
|
+
// Source: https://github.com/voxgig/struct @ 358af9d51c90b589a295a70b2165dbe4629eaf8e [tag: sdk-20261125-1959-0]
|
|
3
|
+
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
1
4
|
// Copyright (c) 2025-2026 Voxgig Ltd. MIT LICENSE.
|
|
2
5
|
// VERSION: @voxgig/struct 0.1.0
|
|
3
6
|
//
|
|
@@ -10,13 +13,14 @@
|
|
|
10
13
|
// `&mut` to the same Vec).
|
|
11
14
|
|
|
12
15
|
use std::cell::RefCell;
|
|
16
|
+
use std::collections::{BTreeSet, HashMap};
|
|
13
17
|
use std::rc::Rc;
|
|
14
18
|
|
|
15
|
-
use
|
|
16
|
-
use
|
|
17
|
-
use
|
|
18
|
-
use
|
|
19
|
-
use
|
|
19
|
+
use super::consts::*;
|
|
20
|
+
use super::mini::*;
|
|
21
|
+
use super::ordered_map::OrderedMap;
|
|
22
|
+
use super::value::{is_integer_f64, js_string, js_to_int32, js_to_number, num_to_string, Value};
|
|
23
|
+
use super::StructError;
|
|
20
24
|
|
|
21
25
|
// ---------------------------------------------------------------------
|
|
22
26
|
// callback / function types
|
|
@@ -28,10 +32,10 @@ use crate::utility::voxgigstruct::StructError;
|
|
|
28
32
|
pub type WalkClosure<'a> = dyn FnMut(&Value, &Value, &Value, &[String]) -> Value + 'a;
|
|
29
33
|
|
|
30
34
|
/// `Injector` — `(inj, val, ref, store) -> any`.
|
|
31
|
-
pub type NativeFn =
|
|
35
|
+
pub type NativeFn = super::value::NativeFn;
|
|
32
36
|
|
|
33
37
|
/// `Modify` — `(val, key, parent, inj, store)`.
|
|
34
|
-
pub type Modify =
|
|
38
|
+
pub type Modify = super::value::ModifyFn;
|
|
35
39
|
|
|
36
40
|
pub type Inj = Rc<RefCell<Injection>>;
|
|
37
41
|
pub type SVec = Rc<RefCell<Vec<String>>>;
|
|
@@ -274,6 +278,7 @@ pub struct Injection {
|
|
|
274
278
|
pub modify: Option<Modify>,
|
|
275
279
|
pub extra: Option<Value>,
|
|
276
280
|
pub prior: Option<Inj>,
|
|
281
|
+
pub named: bool, // Current map node names keys of its own (not $ commands).
|
|
277
282
|
}
|
|
278
283
|
|
|
279
284
|
/// Public `injdef` argument — the subset of `Partial<Injection>` callers set.
|
|
@@ -313,6 +318,7 @@ impl Injection {
|
|
|
313
318
|
modify: None,
|
|
314
319
|
extra: None,
|
|
315
320
|
prior: None,
|
|
321
|
+
named: false,
|
|
316
322
|
};
|
|
317
323
|
let inj = Rc::new(RefCell::new(inj));
|
|
318
324
|
if let Some(d) = def {
|
|
@@ -374,6 +380,7 @@ impl Injection {
|
|
|
374
380
|
modify: None,
|
|
375
381
|
extra: None,
|
|
376
382
|
prior: None,
|
|
383
|
+
named: false,
|
|
377
384
|
}))
|
|
378
385
|
}
|
|
379
386
|
|
|
@@ -493,6 +500,7 @@ impl Injection {
|
|
|
493
500
|
modify,
|
|
494
501
|
extra: None,
|
|
495
502
|
prior: Some(Rc::clone(this)),
|
|
503
|
+
named: false,
|
|
496
504
|
}))
|
|
497
505
|
}
|
|
498
506
|
|
|
@@ -503,7 +511,10 @@ impl Injection {
|
|
|
503
511
|
let b = this.borrow();
|
|
504
512
|
(b.parent.clone(), b.key.clone())
|
|
505
513
|
};
|
|
506
|
-
|
|
514
|
+
// A list keeps the removed slot as a hole until inject's loop ends.
|
|
515
|
+
if val.is_noval() && is_list(&parent) {
|
|
516
|
+
set_prop(parent, &Value::str(key), Value::skip())
|
|
517
|
+
} else if val.is_noval() {
|
|
507
518
|
let np = del_prop(parent, &Value::str(key));
|
|
508
519
|
this.borrow_mut().parent = np.clone();
|
|
509
520
|
np
|
|
@@ -549,19 +560,39 @@ pub fn get_path(store: &Value, path: &Value, injdef: Option<&InjectDef>) -> Valu
|
|
|
549
560
|
/// machinery and by the public `get_path` wrapper).
|
|
550
561
|
pub fn get_path_inj(store: &Value, path: &Value, injdef: Option<&Inj>) -> Value {
|
|
551
562
|
let mut parts: Vec<String> = match path {
|
|
552
|
-
Value::List(l) =>
|
|
553
|
-
|
|
554
|
-
.iter()
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
563
|
+
Value::List(l) => {
|
|
564
|
+
let mut parts = Vec::new();
|
|
565
|
+
for part in l.borrow().iter() {
|
|
566
|
+
match part {
|
|
567
|
+
Value::Num(n) => parts.push(num_to_string(*n)),
|
|
568
|
+
Value::Str(s) => parts.push(s.clone()),
|
|
569
|
+
_ => return Value::Noval,
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
parts
|
|
573
|
+
}
|
|
560
574
|
Value::Str(s) => s.split('.').map(|p| p.to_string()).collect(),
|
|
561
|
-
Value::Num(n) => vec![
|
|
575
|
+
Value::Num(n) => vec![num_to_string(*n)],
|
|
562
576
|
_ => return Value::Noval,
|
|
563
577
|
};
|
|
564
578
|
|
|
579
|
+
// A condensed store answers a path with the value of the node it was built
|
|
580
|
+
// from, touching only the nodes on the path. A base changes what the walk
|
|
581
|
+
// below starts from, so a read with one expands the store instead.
|
|
582
|
+
let expanded = if is_condensed(store) {
|
|
583
|
+
if injdef.map(|i| i.borrow().base.is_none()).unwrap_or(true) {
|
|
584
|
+
let partlist = Value::list(parts.iter().cloned().map(Value::Str).collect());
|
|
585
|
+
let found = condense_resolve(store, condense_root(store), &partlist);
|
|
586
|
+
let val = condense_materialise(store, found);
|
|
587
|
+
// Group A: an ordinary getpath reads a stored null as absent.
|
|
588
|
+
return if val.is_nullish() { Value::Noval } else { val };
|
|
589
|
+
}
|
|
590
|
+
Some(expand(store))
|
|
591
|
+
} else {
|
|
592
|
+
None
|
|
593
|
+
};
|
|
594
|
+
let store = expanded.as_ref().unwrap_or(store);
|
|
595
|
+
|
|
565
596
|
let base = injdef.and_then(|i| i.borrow().base.clone());
|
|
566
597
|
let src = match &base {
|
|
567
598
|
Some(b) => get_prop(store, &Value::str(b.clone()), store.clone()),
|
|
@@ -620,7 +651,11 @@ pub fn get_path_inj(store: &Value, path: &Value, injdef: Option<&Inj>) -> Value
|
|
|
620
651
|
}
|
|
621
652
|
}
|
|
622
653
|
|
|
623
|
-
|
|
654
|
+
// str::replace allocates a fresh String even with no match, so
|
|
655
|
+
// skip it for the common no-`$$` segment.
|
|
656
|
+
if part.contains("$$") {
|
|
657
|
+
part = part.replace("$$", "$");
|
|
658
|
+
}
|
|
624
659
|
|
|
625
660
|
if part.is_empty() {
|
|
626
661
|
let mut ascends = 0i64;
|
|
@@ -697,6 +732,11 @@ fn drop_last(s: &str) -> String {
|
|
|
697
732
|
// ---------------------------------------------------------------------
|
|
698
733
|
|
|
699
734
|
pub fn set_path(store: &Value, path: &Value, val: Value, injdef: Option<&InjectDef>) -> Value {
|
|
735
|
+
// Same contract as set_prop and del_prop: a condensed store is immutable.
|
|
736
|
+
if is_condensed(store) {
|
|
737
|
+
panic!("{CONDENSE_IMMUTABLE}");
|
|
738
|
+
}
|
|
739
|
+
|
|
700
740
|
// Keep parts as Values so a numeric part (only possible when `path` is an
|
|
701
741
|
// array) makes its parent a list, while a string part makes a map.
|
|
702
742
|
let parts: Vec<Value> = match path {
|
|
@@ -747,7 +787,9 @@ pub fn set_path(store: &Value, path: &Value, val: Value, injdef: Option<&InjectD
|
|
|
747
787
|
parent
|
|
748
788
|
}
|
|
749
789
|
|
|
750
|
-
|
|
790
|
+
/// Default inject handler (`_injecthandler`): if the value is a `$NAME`
|
|
791
|
+
/// command function, call it; otherwise, in `val` mode for a full-string
|
|
792
|
+
/// injection, write the value back into the parent.
|
|
751
793
|
pub fn inject_handler_fn() -> NativeFn {
|
|
752
794
|
Rc::new(inject_handler)
|
|
753
795
|
}
|
|
@@ -769,6 +811,7 @@ fn inject_handler(inj: &Inj, val: &Value, r: &str, store: &Value) -> Value {
|
|
|
769
811
|
val.clone()
|
|
770
812
|
}
|
|
771
813
|
|
|
814
|
+
/// `_injectstr` — substitute `` `path` `` references inside a string.
|
|
772
815
|
fn injectstr(val: &str, store: &Value, inj: Option<&Inj>) -> Value {
|
|
773
816
|
if val.is_empty() {
|
|
774
817
|
return Value::str("");
|
|
@@ -787,7 +830,7 @@ fn injectstr(val: &str, store: &Value, inj: Option<&Inj>) -> Value {
|
|
|
787
830
|
|
|
788
831
|
// partial injection: replace each `ref` occurrence
|
|
789
832
|
let out_str = R_INJECTION_PARTIAL
|
|
790
|
-
.replace_all(val, |caps: &
|
|
833
|
+
.replace_all(val, |caps: &super::re::Captures<'_>| -> String {
|
|
791
834
|
let mut r = caps[1].to_string();
|
|
792
835
|
if r.chars().count() > 3 {
|
|
793
836
|
r = r.replace("$BT", S_BT).replace("$DS", S_DS);
|
|
@@ -866,6 +909,8 @@ fn make_root_injection(val: Value, store: &Value, injdef: Option<&InjectDef>) ->
|
|
|
866
909
|
fn inject_inj(mut val: Value, store: &Value, inj: &Inj) -> Value {
|
|
867
910
|
Injection::descend(inj);
|
|
868
911
|
|
|
912
|
+
inj.borrow_mut().named = false;
|
|
913
|
+
|
|
869
914
|
if is_node(&val) {
|
|
870
915
|
// node keys: sorted, then `$`-bearing keys last (for maps).
|
|
871
916
|
let nodekeys: SVec = {
|
|
@@ -873,6 +918,7 @@ fn inject_inj(mut val: Value, store: &Value, inj: &Inj) -> Value {
|
|
|
873
918
|
if is_map(&val) {
|
|
874
919
|
let (mut plain, dollar): (Vec<String>, Vec<String>) =
|
|
875
920
|
ks.into_iter().partition(|k| !k.contains(S_DS));
|
|
921
|
+
inj.borrow_mut().named = !plain.is_empty();
|
|
876
922
|
plain.extend(dollar);
|
|
877
923
|
Rc::new(RefCell::new(plain))
|
|
878
924
|
} else {
|
|
@@ -916,6 +962,10 @@ fn inject_inj(mut val: Value, store: &Value, inj: &Inj) -> Value {
|
|
|
916
962
|
|
|
917
963
|
nk_i += 1;
|
|
918
964
|
}
|
|
965
|
+
|
|
966
|
+
if let Value::List(l) = &val {
|
|
967
|
+
l.borrow_mut().retain(|v| !v.is_skip());
|
|
968
|
+
}
|
|
919
969
|
} else if let Value::Str(s) = val.clone() {
|
|
920
970
|
inj.borrow_mut().mode = M_VAL;
|
|
921
971
|
let r = injectstr(&s, store, Some(inj));
|
|
@@ -933,7 +983,10 @@ fn inject_inj(mut val: Value, store: &Value, inj: &Inj) -> Value {
|
|
|
933
983
|
let b = inj.borrow();
|
|
934
984
|
(b.key.clone(), b.parent.clone())
|
|
935
985
|
};
|
|
936
|
-
let mval = get_prop(&mparent, &Value::str(mkey.clone()), Value::Noval)
|
|
986
|
+
let mval = match get_prop(&mparent, &Value::str(mkey.clone()), Value::Noval) {
|
|
987
|
+
hole if hole.is_skip() => Value::Noval,
|
|
988
|
+
mval => mval,
|
|
989
|
+
};
|
|
937
990
|
m(&mval, &Value::str(mkey), &mparent, inj, store);
|
|
938
991
|
}
|
|
939
992
|
}
|
|
@@ -1318,10 +1371,10 @@ fn slice_str_vec(v: &[String], start: Option<i64>, end: Option<i64>) -> Vec<Stri
|
|
|
1318
1371
|
}
|
|
1319
1372
|
|
|
1320
1373
|
// `$REF` — reference the original spec (enables recursive transforms).
|
|
1321
|
-
fn transform_ref(inj: &Inj,
|
|
1322
|
-
let (mode, parent, path
|
|
1374
|
+
fn transform_ref(inj: &Inj, _val: &Value, _r: &str, store: &Value) -> Value {
|
|
1375
|
+
let (mode, parent, path) = {
|
|
1323
1376
|
let b = inj.borrow();
|
|
1324
|
-
(b.mode, b.parent.clone(), b.path.clone()
|
|
1377
|
+
(b.mode, b.parent.clone(), b.path.clone())
|
|
1325
1378
|
};
|
|
1326
1379
|
if mode != M_VAL {
|
|
1327
1380
|
return Value::Noval;
|
|
@@ -1339,14 +1392,28 @@ fn transform_ref(inj: &Inj, val: &Value, _r: &str, store: &Value) -> Value {
|
|
|
1339
1392
|
_ => Value::Noval,
|
|
1340
1393
|
}
|
|
1341
1394
|
};
|
|
1342
|
-
|
|
1395
|
+
// A relative path starts at the node holding this slot, so .x is a sibling.
|
|
1396
|
+
let dpath = slice_str_vec(&path, Some(1), Some(-2));
|
|
1343
1397
|
let dparent_for_ref = get_path_inj(&spec, &path_value(&dpath), None);
|
|
1344
1398
|
let ref_def = InjectDef {
|
|
1345
1399
|
dpath: Some(dpath.clone()),
|
|
1346
1400
|
dparent: Some(dparent_for_ref),
|
|
1347
1401
|
..Default::default()
|
|
1348
1402
|
};
|
|
1349
|
-
let refval = get_path(&spec, &refpath, Some(&ref_def));
|
|
1403
|
+
let mut refval = get_path(&spec, &refpath, Some(&ref_def));
|
|
1404
|
+
|
|
1405
|
+
// A chain of references that comes back to a path it has named names nothing.
|
|
1406
|
+
let mut seen = vec![refpath.clone()];
|
|
1407
|
+
let mut next = refval.clone();
|
|
1408
|
+
while is_list(&next) && lookup(&next, &Value::Num(0.0)) == Value::str("`$REF`") {
|
|
1409
|
+
let nextpath = lookup(&next, &Value::Num(1.0));
|
|
1410
|
+
if seen.contains(&nextpath) {
|
|
1411
|
+
refval = Value::Noval;
|
|
1412
|
+
break;
|
|
1413
|
+
}
|
|
1414
|
+
seen.push(nextpath.clone());
|
|
1415
|
+
next = get_path(&spec, &nextpath, Some(&ref_def));
|
|
1416
|
+
}
|
|
1350
1417
|
|
|
1351
1418
|
let mut has_sub_ref = false;
|
|
1352
1419
|
if is_node(&refval) {
|
|
@@ -1359,54 +1426,33 @@ fn transform_ref(inj: &Inj, val: &Value, _r: &str, store: &Value) -> Value {
|
|
|
1359
1426
|
walk(refval.clone(), Some(&mut probe), None, None);
|
|
1360
1427
|
}
|
|
1361
1428
|
|
|
1362
|
-
|
|
1363
|
-
let
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
let rval = if !has_sub_ref || !
|
|
1369
|
-
|
|
1370
|
-
inj,
|
|
1371
|
-
0,
|
|
1372
|
-
Rc::new(RefCell::new(vec![tpath
|
|
1373
|
-
.last()
|
|
1374
|
-
.cloned()
|
|
1375
|
-
.unwrap_or_default()])),
|
|
1376
|
-
);
|
|
1377
|
-
{
|
|
1378
|
-
let mut b = tinj.borrow_mut();
|
|
1379
|
-
b.path = tpath.clone();
|
|
1380
|
-
let nlen = nodes.len();
|
|
1381
|
-
b.nodes = if nlen >= 1 {
|
|
1382
|
-
nodes[..nlen - 1].to_vec()
|
|
1383
|
-
} else {
|
|
1384
|
-
Vec::new()
|
|
1385
|
-
};
|
|
1386
|
-
b.parent = if nlen >= 2 {
|
|
1387
|
-
nodes[nlen - 2].clone()
|
|
1388
|
-
} else {
|
|
1389
|
-
Value::Noval
|
|
1390
|
-
};
|
|
1391
|
-
b.val = tref.clone();
|
|
1392
|
-
b.dpath = cpath.clone();
|
|
1393
|
-
b.dparent = tcur.clone();
|
|
1394
|
-
}
|
|
1395
|
-
let _ = inject_inj(tref.clone(), store, &tinj);
|
|
1396
|
-
let v = tinj.borrow().val.clone();
|
|
1397
|
-
v
|
|
1429
|
+
// A recursive reference stops where the data does.
|
|
1430
|
+
let tval = get_path_inj(
|
|
1431
|
+
store,
|
|
1432
|
+
&path_value(&slice_str_vec(&path, Some(-1), None)),
|
|
1433
|
+
None,
|
|
1434
|
+
);
|
|
1435
|
+
let rval = if !has_sub_ref || !tval.is_noval() {
|
|
1436
|
+
clone(&refval)
|
|
1398
1437
|
} else {
|
|
1399
1438
|
Value::Noval
|
|
1400
1439
|
};
|
|
1440
|
+
let placed = !rval.is_noval();
|
|
1401
1441
|
|
|
1442
|
+
// The enclosing loop injects the referenced spec in this list's place, so
|
|
1443
|
+
// neither this pass nor this element leaves a value for modify to check.
|
|
1402
1444
|
let grandparent = Injection::setval(inj, rval, Some(2));
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1445
|
+
|
|
1446
|
+
let prior = inj.borrow().prior.clone();
|
|
1447
|
+
if let Some(p) = prior {
|
|
1448
|
+
let mut b = p.borrow_mut();
|
|
1449
|
+
b.modify = None;
|
|
1450
|
+
if is_list(&grandparent) || placed {
|
|
1451
|
+
b.key_i -= 1;
|
|
1407
1452
|
}
|
|
1408
1453
|
}
|
|
1409
|
-
|
|
1454
|
+
|
|
1455
|
+
Value::skip()
|
|
1410
1456
|
}
|
|
1411
1457
|
|
|
1412
1458
|
fn srcpath_split(srcpath: &str) -> Vec<String> {
|
|
@@ -1872,7 +1918,7 @@ fn validate_string(inj: &Inj, _v: &Value, _r: &str, _store: &Value) -> Value {
|
|
|
1872
1918
|
let t = typify(&out);
|
|
1873
1919
|
if t & (T_STRING as i64) == 0 {
|
|
1874
1920
|
errs_push(inj, invalid_type_msg(&path, "string", t, &out));
|
|
1875
|
-
return
|
|
1921
|
+
return out;
|
|
1876
1922
|
}
|
|
1877
1923
|
if matches!(&out, Value::Str(s) if s.is_empty()) {
|
|
1878
1924
|
errs_push(
|
|
@@ -1882,17 +1928,18 @@ fn validate_string(inj: &Inj, _v: &Value, _r: &str, _store: &Value) -> Value {
|
|
|
1882
1928
|
pathify(&path_value(&path), Some(1), None)
|
|
1883
1929
|
),
|
|
1884
1930
|
);
|
|
1885
|
-
return Value::Noval;
|
|
1886
1931
|
}
|
|
1887
1932
|
out
|
|
1888
1933
|
}
|
|
1889
1934
|
|
|
1890
1935
|
fn validate_type(inj: &Inj, _v: &Value, r: &str, _store: &Value) -> Value {
|
|
1891
1936
|
let tname: String = r.chars().skip(1).collect::<String>().to_lowercase();
|
|
1937
|
+
|
|
1938
|
+
// $NIL is absent or null.
|
|
1892
1939
|
let typev: i64 = match TYPENAME.iter().position(|x| *x == tname) {
|
|
1893
1940
|
Some(idx) => 1i64 << (31 - idx as i64),
|
|
1894
1941
|
None => 0,
|
|
1895
|
-
};
|
|
1942
|
+
} | if S_nil == tname { T_NULL as i64 } else { 0 };
|
|
1896
1943
|
let (dparent, key, path) = {
|
|
1897
1944
|
let b = inj.borrow();
|
|
1898
1945
|
(b.dparent.clone(), b.key.clone(), b.path.clone())
|
|
@@ -1901,7 +1948,6 @@ fn validate_type(inj: &Inj, _v: &Value, r: &str, _store: &Value) -> Value {
|
|
|
1901
1948
|
let t = typify(&out);
|
|
1902
1949
|
if t & typev == 0 {
|
|
1903
1950
|
errs_push(inj, invalid_type_msg(&path, &tname, t, &out));
|
|
1904
|
-
return Value::Noval;
|
|
1905
1951
|
}
|
|
1906
1952
|
out
|
|
1907
1953
|
}
|
|
@@ -1922,7 +1968,7 @@ fn tvals_desc(tvals: &[Value]) -> String {
|
|
|
1922
1968
|
.collect::<Vec<_>>()
|
|
1923
1969
|
.join(", ");
|
|
1924
1970
|
R_TRANSFORM_NAME
|
|
1925
|
-
.replace_all(&joined, |caps: &
|
|
1971
|
+
.replace_all(&joined, |caps: &super::re::Captures<'_>| {
|
|
1926
1972
|
caps[1].to_lowercase()
|
|
1927
1973
|
})
|
|
1928
1974
|
.to_string()
|
|
@@ -1951,15 +1997,7 @@ fn validate_child(inj: &Inj, _v: &Value, _r: &str, _store: &Value) -> Value {
|
|
|
1951
1997
|
if tval.is_noval() {
|
|
1952
1998
|
tval = Value::empty_map();
|
|
1953
1999
|
} else if !is_map(&tval) {
|
|
1954
|
-
|
|
1955
|
-
inj,
|
|
1956
|
-
invalid_type_msg(
|
|
1957
|
-
&path[..path.len().saturating_sub(1)],
|
|
1958
|
-
S_object,
|
|
1959
|
-
typify(&tval),
|
|
1960
|
-
&tval,
|
|
1961
|
-
),
|
|
1962
|
-
);
|
|
2000
|
+
// validation_modify reports the mismatch, once.
|
|
1963
2001
|
return Value::Noval;
|
|
1964
2002
|
}
|
|
1965
2003
|
let ckeys = keysof_vec(&tval);
|
|
@@ -1984,15 +2022,6 @@ fn validate_child(inj: &Inj, _v: &Value, _r: &str, _store: &Value) -> Value {
|
|
|
1984
2022
|
return Value::Noval;
|
|
1985
2023
|
}
|
|
1986
2024
|
if !is_list(&dparent) {
|
|
1987
|
-
errs_push(
|
|
1988
|
-
inj,
|
|
1989
|
-
invalid_type_msg(
|
|
1990
|
-
&path[..path.len().saturating_sub(1)],
|
|
1991
|
-
S_list,
|
|
1992
|
-
typify(&dparent),
|
|
1993
|
-
&dparent,
|
|
1994
|
-
),
|
|
1995
|
-
);
|
|
1996
2025
|
let plen = parent.as_list().map(|l| l.borrow().len()).unwrap_or(0) as i64;
|
|
1997
2026
|
inj.borrow_mut().key_i = plen;
|
|
1998
2027
|
return dparent;
|
|
@@ -2002,20 +2031,124 @@ fn validate_child(inj: &Inj, _v: &Value, _r: &str, _store: &Value) -> Value {
|
|
|
2002
2031
|
set_prop(parent.clone(), &Value::Num(n as f64), clone(&childtm));
|
|
2003
2032
|
}
|
|
2004
2033
|
slice(parent.clone(), Some(0), Some(dlen as i64), true);
|
|
2005
|
-
|
|
2006
|
-
|
|
2034
|
+
|
|
2035
|
+
// NOTE: modifying inj! This extends the child value loop in inject
|
|
2036
|
+
// to cover every cloned child.
|
|
2037
|
+
{
|
|
2038
|
+
let keys = inj.borrow().keys.clone();
|
|
2039
|
+
let plen = parent.as_list().map(|l| l.borrow().len()).unwrap_or(0);
|
|
2040
|
+
let mut ks = keys.borrow_mut();
|
|
2041
|
+
for ckey_i in ks.len()..plen {
|
|
2042
|
+
ks.push(str_key(Value::Num(ckey_i as f64)));
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2046
|
+
// Restart the child value loop at the first element (the loop
|
|
2047
|
+
// increments key_i on resume) so that the first element is also
|
|
2048
|
+
// validated against the child template.
|
|
2049
|
+
inj.borrow_mut().key_i = -1;
|
|
2050
|
+
|
|
2051
|
+
// SKIP leaves the cloned child template in place at the first
|
|
2052
|
+
// element so the resumed loop can validate it.
|
|
2053
|
+
return Value::skip();
|
|
2007
2054
|
}
|
|
2008
2055
|
|
|
2009
2056
|
Value::Noval
|
|
2010
2057
|
}
|
|
2011
2058
|
|
|
2012
|
-
//
|
|
2013
|
-
|
|
2014
|
-
|
|
2059
|
+
// The members a spec does not name: the map form is a key, the list form a
|
|
2060
|
+
// tuple's last item. Each places clones of its spec for the loop to check.
|
|
2061
|
+
fn validate_rest(inj: &Inj, _v: &Value, _r: &str, _store: &Value) -> Value {
|
|
2062
|
+
let (mode, key, parent, path, dparent, key_i, keys, prior) = {
|
|
2015
2063
|
let b = inj.borrow();
|
|
2016
|
-
(
|
|
2064
|
+
(
|
|
2065
|
+
b.mode,
|
|
2066
|
+
b.key.clone(),
|
|
2067
|
+
b.parent.clone(),
|
|
2068
|
+
b.path.clone(),
|
|
2069
|
+
b.dparent.clone(),
|
|
2070
|
+
b.key_i,
|
|
2071
|
+
b.keys.clone(),
|
|
2072
|
+
b.prior.clone(),
|
|
2073
|
+
)
|
|
2074
|
+
};
|
|
2075
|
+
|
|
2076
|
+
if mode == M_KEYPRE {
|
|
2077
|
+
let resttm = lookup(&parent, &Value::str(key));
|
|
2078
|
+
let pkey = path
|
|
2079
|
+
.get(path.len().saturating_sub(2))
|
|
2080
|
+
.cloned()
|
|
2081
|
+
.unwrap_or_default();
|
|
2082
|
+
let tval = get_prop(&dparent, &Value::str(pkey), Value::Noval);
|
|
2083
|
+
if is_map(&tval) {
|
|
2084
|
+
for ckey in keysof_vec(&tval) {
|
|
2085
|
+
if !keys.borrow().contains(&ckey) {
|
|
2086
|
+
set_prop(parent.clone(), &Value::str(ckey.clone()), clone(&resttm));
|
|
2087
|
+
keys.borrow_mut().push(ckey);
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
Injection::setval(inj, Value::Noval, None);
|
|
2092
|
+
return Value::Noval;
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
let prior = match prior {
|
|
2096
|
+
Some(p) if M_VAL == mode && 0 == key_i && is_list(&p.borrow().parent) => p,
|
|
2097
|
+
_ => {
|
|
2098
|
+
let fpath = path.get(1..).unwrap_or_default();
|
|
2099
|
+
errs_push(
|
|
2100
|
+
inj,
|
|
2101
|
+
restmsg(fpath, " must be the last element of an array."),
|
|
2102
|
+
);
|
|
2103
|
+
return Value::Noval;
|
|
2104
|
+
}
|
|
2105
|
+
};
|
|
2106
|
+
|
|
2107
|
+
inj.borrow_mut().key_i = keys.borrow().len() as i64;
|
|
2108
|
+
|
|
2109
|
+
let (tuple, slot, dlist, pkeys) = {
|
|
2110
|
+
let mut p = prior.borrow_mut();
|
|
2111
|
+
p.modify = None;
|
|
2112
|
+
let slot = list_key(&Value::str(p.key.clone())).unwrap_or(0);
|
|
2113
|
+
(p.parent.clone(), slot, p.dparent.clone(), p.keys.clone())
|
|
2114
|
+
};
|
|
2115
|
+
let numitems = if is_list(&dlist) { size(&dlist) } else { 0 };
|
|
2116
|
+
|
|
2117
|
+
if numitems <= slot {
|
|
2118
|
+
Injection::setval(inj, Value::Noval, Some(2));
|
|
2119
|
+
return Value::skip();
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
let resttm = lookup(&parent, &Value::Num(1.0));
|
|
2123
|
+
for i in slot..numitems {
|
|
2124
|
+
set_prop(tuple.clone(), &Value::Num(i as f64), clone(&resttm));
|
|
2125
|
+
}
|
|
2126
|
+
{
|
|
2127
|
+
let mut ks = pkeys.borrow_mut();
|
|
2128
|
+
for i in ks.len() as i64..numitems {
|
|
2129
|
+
ks.push(str_key(Value::Num(i as f64)));
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
prior.borrow_mut().key_i -= 1;
|
|
2134
|
+
Value::skip()
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
fn restmsg(path: &[String], problem: &str) -> String {
|
|
2138
|
+
format!(
|
|
2139
|
+
"The $REST validator at field {}{problem}",
|
|
2140
|
+
pathify(&path_value(path), None, None)
|
|
2141
|
+
)
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
// `$EXACT`: value must equal a literal exactly (no shape coercion).
|
|
2145
|
+
fn validate_exact(inj: &Inj, _v: &Value, _r: &str, _store: &Value) -> Value {
|
|
2146
|
+
let (mode, parent, key, key_i) = {
|
|
2147
|
+
let b = inj.borrow();
|
|
2148
|
+
(b.mode, b.parent.clone(), b.key.clone(), b.key_i)
|
|
2017
2149
|
};
|
|
2018
2150
|
if mode != M_VAL {
|
|
2151
|
+
del_prop(parent, &Value::str(key));
|
|
2019
2152
|
return Value::Noval;
|
|
2020
2153
|
}
|
|
2021
2154
|
if !is_list(&parent) || key_i != 0 {
|
|
@@ -2023,24 +2156,24 @@ fn validate_one(inj: &Inj, _v: &Value, _r: &str, store: &Value) -> Value {
|
|
|
2023
2156
|
errs_push(
|
|
2024
2157
|
inj,
|
|
2025
2158
|
format!(
|
|
2026
|
-
"The $
|
|
2159
|
+
"The $EXACT validator at field {} must be the first element of an array.",
|
|
2027
2160
|
pathify(&path_value(&path), Some(1), Some(1))
|
|
2028
2161
|
),
|
|
2029
2162
|
);
|
|
2030
2163
|
return Value::Noval;
|
|
2031
2164
|
}
|
|
2165
|
+
let cval = slotval(inj);
|
|
2032
2166
|
let keylen = inj.borrow().keys.borrow().len() as i64;
|
|
2033
2167
|
inj.borrow_mut().key_i = keylen;
|
|
2034
|
-
|
|
2035
|
-
|
|
2168
|
+
|
|
2169
|
+
// Replace [$EXACT, ...] with the data value; SKIP keeps inject off the detached list.
|
|
2170
|
+
Injection::setval(inj, cval.clone(), Some(2));
|
|
2036
2171
|
{
|
|
2037
2172
|
let mut b = inj.borrow_mut();
|
|
2038
2173
|
let n = b.path.len();
|
|
2039
2174
|
b.path.truncate(n.saturating_sub(1));
|
|
2040
|
-
b.key = b.path.last().cloned().unwrap_or_default();
|
|
2041
2175
|
}
|
|
2042
2176
|
let path_after = inj.borrow().path.clone();
|
|
2043
|
-
let meta = inj.borrow().meta.clone();
|
|
2044
2177
|
let tvals: Vec<Value> = slice(parent.clone(), Some(1), None, false)
|
|
2045
2178
|
.as_list()
|
|
2046
2179
|
.map(|l| l.borrow().clone())
|
|
@@ -2049,61 +2182,49 @@ fn validate_one(inj: &Inj, _v: &Value, _r: &str, store: &Value) -> Value {
|
|
|
2049
2182
|
errs_push(
|
|
2050
2183
|
inj,
|
|
2051
2184
|
format!(
|
|
2052
|
-
"The $
|
|
2185
|
+
"The $EXACT validator at field {} must have at least one argument.",
|
|
2053
2186
|
pathify(&path_value(&path_after), Some(1), Some(1))
|
|
2054
2187
|
),
|
|
2055
2188
|
);
|
|
2056
|
-
return Value::
|
|
2189
|
+
return Value::skip();
|
|
2057
2190
|
}
|
|
2058
2191
|
for tval in &tvals {
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
&Value::list(vec![Value::empty_map(), store.clone()]),
|
|
2062
|
-
Some(1),
|
|
2063
|
-
) {
|
|
2064
|
-
v @ Value::Map(_) => v,
|
|
2065
|
-
_ => Value::empty_map(),
|
|
2066
|
-
};
|
|
2067
|
-
set_prop(vstore.clone(), &Value::str(S_DTOP), dparent.clone());
|
|
2068
|
-
let _ = &mut vstore;
|
|
2069
|
-
let vd = InjectDef {
|
|
2070
|
-
extra: Some(vstore.clone()),
|
|
2071
|
-
errs: Some(terrs.clone()),
|
|
2072
|
-
meta: Some(meta.clone()),
|
|
2073
|
-
..Default::default()
|
|
2074
|
-
};
|
|
2075
|
-
let vcur = validate(&dparent, tval, Some(&vd)).unwrap_or(Value::Noval);
|
|
2076
|
-
Injection::setval(inj, vcur, Some(-2)); // hmm: ancestor -2 -> handled below
|
|
2077
|
-
let terrlen = terrs.as_list().map(|l| l.borrow().len()).unwrap_or(0);
|
|
2078
|
-
if terrlen == 0 {
|
|
2079
|
-
return Value::Noval;
|
|
2192
|
+
if deepequal(tval, &cval) {
|
|
2193
|
+
return Value::skip();
|
|
2080
2194
|
}
|
|
2081
2195
|
}
|
|
2082
2196
|
let valdesc = tvals_desc(&tvals);
|
|
2197
|
+
let need = format!(
|
|
2198
|
+
"{}exactly equal to {}{}",
|
|
2199
|
+
if path_after.len() > 1 { "" } else { "value " },
|
|
2200
|
+
if tvals.len() == 1 { "" } else { "one of " },
|
|
2201
|
+
valdesc
|
|
2202
|
+
);
|
|
2083
2203
|
errs_push(
|
|
2084
2204
|
inj,
|
|
2085
|
-
invalid_type_msg(
|
|
2086
|
-
&path_after,
|
|
2087
|
-
&format!(
|
|
2088
|
-
"{}{}",
|
|
2089
|
-
if tvals.len() > 1 { "one of " } else { "" },
|
|
2090
|
-
valdesc
|
|
2091
|
-
),
|
|
2092
|
-
typify(&dparent),
|
|
2093
|
-
&dparent,
|
|
2094
|
-
),
|
|
2205
|
+
invalid_type_msg(&path_after, &need, typify(&cval), &cval),
|
|
2095
2206
|
);
|
|
2096
|
-
Value::
|
|
2207
|
+
Value::skip()
|
|
2097
2208
|
}
|
|
2098
2209
|
|
|
2099
|
-
//
|
|
2100
|
-
|
|
2101
|
-
|
|
2210
|
+
// Count the specs that admit the value: ['`$NOF`', count, spec, ...], where
|
|
2211
|
+
// count is an integer, or a map holding min, max or both.
|
|
2212
|
+
fn validate_nof(inj: &Inj, _v: &Value, _r: &str, store: &Value) -> Value {
|
|
2213
|
+
validatecount(inj, store, "$NOF", true)
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
// Every spec admits the value: ['`$ALL`', spec, ...].
|
|
2217
|
+
fn validate_all(inj: &Inj, _v: &Value, _r: &str, store: &Value) -> Value {
|
|
2218
|
+
validatecount(inj, store, "$ALL", false)
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
// The counting list directives. Without a count, every spec has to admit.
|
|
2222
|
+
fn validatecount(inj: &Inj, store: &Value, name: &str, counted: bool) -> Value {
|
|
2223
|
+
let (mode, parent, key_i) = {
|
|
2102
2224
|
let b = inj.borrow();
|
|
2103
|
-
(b.mode, b.parent.clone(), b.
|
|
2225
|
+
(b.mode, b.parent.clone(), b.key_i)
|
|
2104
2226
|
};
|
|
2105
2227
|
if mode != M_VAL {
|
|
2106
|
-
del_prop(parent, &Value::str(key));
|
|
2107
2228
|
return Value::Noval;
|
|
2108
2229
|
}
|
|
2109
2230
|
if !is_list(&parent) || key_i != 0 {
|
|
@@ -2111,112 +2232,386 @@ fn validate_exact(inj: &Inj, _v: &Value, _r: &str, _store: &Value) -> Value {
|
|
|
2111
2232
|
errs_push(
|
|
2112
2233
|
inj,
|
|
2113
2234
|
format!(
|
|
2114
|
-
"The
|
|
2235
|
+
"The {name} validator at field {} must be the first element of an array.",
|
|
2115
2236
|
pathify(&path_value(&path), Some(1), Some(1))
|
|
2116
2237
|
),
|
|
2117
2238
|
);
|
|
2118
2239
|
return Value::Noval;
|
|
2119
2240
|
}
|
|
2241
|
+
|
|
2242
|
+
let cval = slotval(inj);
|
|
2243
|
+
|
|
2120
2244
|
let keylen = inj.borrow().keys.borrow().len() as i64;
|
|
2121
2245
|
inj.borrow_mut().key_i = keylen;
|
|
2122
|
-
|
|
2123
|
-
|
|
2246
|
+
|
|
2247
|
+
// Replace the directive's list with the data value. Each return is SKIP, so
|
|
2248
|
+
// that inject leaves the detached list alone and validates nothing in it.
|
|
2249
|
+
Injection::setval(inj, cval.clone(), Some(2));
|
|
2250
|
+
|
|
2124
2251
|
{
|
|
2125
2252
|
let mut b = inj.borrow_mut();
|
|
2126
2253
|
let n = b.path.len();
|
|
2127
2254
|
b.path.truncate(n.saturating_sub(1));
|
|
2128
|
-
b.key = b.path.last().cloned().unwrap_or_default();
|
|
2129
2255
|
}
|
|
2130
|
-
let
|
|
2131
|
-
|
|
2256
|
+
let path = inj.borrow().path.clone();
|
|
2257
|
+
|
|
2258
|
+
let count = if counted {
|
|
2259
|
+
lookup(&parent, &Value::Num(1.0))
|
|
2260
|
+
} else {
|
|
2261
|
+
Value::Noval
|
|
2262
|
+
};
|
|
2263
|
+
let argsfrom = if counted { 2 } else { 1 };
|
|
2264
|
+
let tvals: Vec<Value> = slice(parent.clone(), Some(argsfrom), None, false)
|
|
2132
2265
|
.as_list()
|
|
2133
2266
|
.map(|l| l.borrow().clone())
|
|
2134
2267
|
.unwrap_or_default();
|
|
2135
|
-
|
|
2268
|
+
let numtvals = tvals.len() as i64;
|
|
2269
|
+
let field = format!(
|
|
2270
|
+
"The {name} validator at field {}",
|
|
2271
|
+
pathify(&path_value(&path), Some(1), None)
|
|
2272
|
+
);
|
|
2273
|
+
|
|
2274
|
+
if 0 == numtvals {
|
|
2136
2275
|
errs_push(
|
|
2137
2276
|
inj,
|
|
2138
2277
|
format!(
|
|
2139
|
-
"
|
|
2140
|
-
|
|
2278
|
+
"{field}{} at least one argument.",
|
|
2279
|
+
if counted {
|
|
2280
|
+
" must have a count and"
|
|
2281
|
+
} else {
|
|
2282
|
+
" must have"
|
|
2283
|
+
}
|
|
2141
2284
|
),
|
|
2142
2285
|
);
|
|
2143
|
-
return Value::
|
|
2286
|
+
return Value::skip();
|
|
2144
2287
|
}
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2288
|
+
|
|
2289
|
+
let (lo, hi, countdesc) = if counted {
|
|
2290
|
+
nofcount(&count, numtvals)
|
|
2291
|
+
} else {
|
|
2292
|
+
(numtvals, numtvals, Some("all".to_string()))
|
|
2293
|
+
};
|
|
2294
|
+
|
|
2295
|
+
let Some(countdesc) = countdesc else {
|
|
2296
|
+
errs_push(
|
|
2297
|
+
inj,
|
|
2298
|
+
format!(
|
|
2299
|
+
"{field} has an invalid count: {}.",
|
|
2300
|
+
stringify(&count, None, false)
|
|
2301
|
+
),
|
|
2302
|
+
);
|
|
2303
|
+
return Value::skip();
|
|
2304
|
+
};
|
|
2305
|
+
|
|
2306
|
+
let mut admitted: i64 = 0;
|
|
2307
|
+
for (t_i, tval) in tvals.iter().enumerate() {
|
|
2308
|
+
let left = numtvals - t_i as i64;
|
|
2309
|
+
|
|
2310
|
+
// Stop once the specs left cannot change the verdict.
|
|
2311
|
+
if hi < admitted || admitted + left < lo || (lo <= admitted && admitted + left <= hi) {
|
|
2312
|
+
break;
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
if admits(&cval, tval, inj, store) {
|
|
2316
|
+
admitted += 1;
|
|
2156
2317
|
}
|
|
2157
2318
|
}
|
|
2158
|
-
let valdesc = tvals_desc(&tvals);
|
|
2159
|
-
let need = format!(
|
|
2160
|
-
"{}exactly equal to {}{}",
|
|
2161
|
-
if path_after.len() > 1 { "" } else { "value " },
|
|
2162
|
-
if tvals.len() == 1 { "" } else { "one of " },
|
|
2163
|
-
valdesc
|
|
2164
|
-
);
|
|
2165
|
-
errs_push(
|
|
2166
|
-
inj,
|
|
2167
|
-
invalid_type_msg(&path_after, &need, typify(&dparent), &dparent),
|
|
2168
|
-
);
|
|
2169
|
-
Value::Noval
|
|
2170
|
-
}
|
|
2171
2319
|
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2320
|
+
if admitted < lo || hi < admitted {
|
|
2321
|
+
errs_push(
|
|
2322
|
+
inj,
|
|
2323
|
+
invalid_type_msg(
|
|
2324
|
+
&path,
|
|
2325
|
+
&format!("{countdesc} of {}", tvals_desc(&tvals)),
|
|
2326
|
+
typify(&cval),
|
|
2327
|
+
&cval,
|
|
2328
|
+
),
|
|
2329
|
+
);
|
|
2175
2330
|
}
|
|
2176
|
-
|
|
2331
|
+
|
|
2332
|
+
Value::skip()
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
// The value's length is within a bound: ['`$LEN`', bound, spec?], where the
|
|
2336
|
+
// bound is as for a $NOF count. A string's length is in code points.
|
|
2337
|
+
fn validate_len(inj: &Inj, _v: &Value, _r: &str, store: &Value) -> Value {
|
|
2338
|
+
validatebound(inj, store, "$LEN")
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
// The value is a number within a bound: ['`$RANGE`', bound, spec?], where the
|
|
2342
|
+
// bound holds min or gt, max or lt, or one of each.
|
|
2343
|
+
fn validate_range(inj: &Inj, _v: &Value, _r: &str, store: &Value) -> Value {
|
|
2344
|
+
validatebound(inj, store, "$RANGE")
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
fn validate_like(inj: &Inj, _v: &Value, _r: &str, store: &Value) -> Value {
|
|
2348
|
+
validatebound(inj, store, "$LIKE")
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
// The bounding list directives: a bound or pattern, then at most one spec that also admits.
|
|
2352
|
+
fn validatebound(inj: &Inj, store: &Value, name: &str) -> Value {
|
|
2353
|
+
let (mode, parent, key_i) = {
|
|
2177
2354
|
let b = inj.borrow();
|
|
2178
|
-
(b.
|
|
2355
|
+
(b.mode, b.parent.clone(), b.key_i)
|
|
2179
2356
|
};
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
Value::Bool(true)
|
|
2183
|
-
);
|
|
2184
|
-
let cval = get_prop(&dparent, key, Value::Noval);
|
|
2185
|
-
if !exact && cval.is_noval() {
|
|
2186
|
-
return;
|
|
2187
|
-
}
|
|
2188
|
-
let ptype = typify(pval);
|
|
2189
|
-
if ptype & (T_STRING as i64) != 0 {
|
|
2190
|
-
if let Value::Str(s) = pval {
|
|
2191
|
-
if s.contains(S_DS) {
|
|
2192
|
-
return; // remaining special command — leave it
|
|
2193
|
-
}
|
|
2194
|
-
}
|
|
2357
|
+
if mode != M_VAL {
|
|
2358
|
+
return Value::Noval;
|
|
2195
2359
|
}
|
|
2196
|
-
|
|
2197
|
-
|
|
2360
|
+
if !is_list(&parent) || key_i != 0 {
|
|
2361
|
+
let path = inj.borrow().path.clone();
|
|
2198
2362
|
errs_push(
|
|
2199
2363
|
inj,
|
|
2200
|
-
|
|
2364
|
+
format!(
|
|
2365
|
+
"The {name} validator at field {} must be the first element of an array.",
|
|
2366
|
+
pathify(&path_value(&path), Some(1), Some(1))
|
|
2367
|
+
),
|
|
2201
2368
|
);
|
|
2202
|
-
return;
|
|
2369
|
+
return Value::Noval;
|
|
2203
2370
|
}
|
|
2204
2371
|
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2372
|
+
let cval = slotval(inj);
|
|
2373
|
+
|
|
2374
|
+
let keylen = inj.borrow().keys.borrow().len() as i64;
|
|
2375
|
+
inj.borrow_mut().key_i = keylen;
|
|
2376
|
+
|
|
2377
|
+
// As for the counting directives: SKIP keeps inject off the detached list.
|
|
2378
|
+
Injection::setval(inj, cval.clone(), Some(2));
|
|
2379
|
+
|
|
2380
|
+
{
|
|
2381
|
+
let mut b = inj.borrow_mut();
|
|
2382
|
+
let n = b.path.len();
|
|
2383
|
+
b.path.truncate(n.saturating_sub(1));
|
|
2384
|
+
}
|
|
2385
|
+
let path = inj.borrow().path.clone();
|
|
2386
|
+
|
|
2387
|
+
let field = format!(
|
|
2388
|
+
"The {name} validator at field {}",
|
|
2389
|
+
pathify(&path_value(&path), Some(1), None)
|
|
2390
|
+
);
|
|
2391
|
+
let nargs = size(&parent) - 1;
|
|
2392
|
+
let islen = "$LEN" == name;
|
|
2393
|
+
let islike = "$LIKE" == name;
|
|
2394
|
+
let argname = if islike { "pattern" } else { "bound" };
|
|
2395
|
+
|
|
2396
|
+
if !(1..=2).contains(&nargs) {
|
|
2397
|
+
errs_push(
|
|
2398
|
+
inj,
|
|
2399
|
+
format!("{field} must have a {argname} and at most one spec."),
|
|
2400
|
+
);
|
|
2401
|
+
return Value::skip();
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
let bound = lookup(&parent, &Value::Num(1.0));
|
|
2405
|
+
let like = if islike { likere(&bound) } else { None };
|
|
2406
|
+
let (lo, hi, desc) = if islen {
|
|
2407
|
+
lenbound(&bound)
|
|
2408
|
+
} else if islike {
|
|
2409
|
+
(0, 0, like.map(|pattern| format!("like /{pattern}/")))
|
|
2410
|
+
} else {
|
|
2411
|
+
(0, 0, rangedesc(&bound))
|
|
2412
|
+
};
|
|
2413
|
+
|
|
2414
|
+
let Some(desc) = desc else {
|
|
2415
|
+
errs_push(
|
|
2416
|
+
inj,
|
|
2417
|
+
format!(
|
|
2418
|
+
"{field} has an invalid {argname}: {}.",
|
|
2419
|
+
stringify(&bound, None, false)
|
|
2420
|
+
),
|
|
2421
|
+
);
|
|
2422
|
+
return Value::skip();
|
|
2423
|
+
};
|
|
2424
|
+
|
|
2425
|
+
let ctype = typify(&cval);
|
|
2426
|
+
|
|
2427
|
+
if 2 == nargs {
|
|
2428
|
+
let spec = lookup(&parent, &Value::Num(2.0));
|
|
2429
|
+
if !admits(&cval, &spec, inj, store) {
|
|
2430
|
+
errs_push(
|
|
2431
|
+
inj,
|
|
2432
|
+
invalid_type_msg(&path, &tvals_desc(&[spec]), ctype, &cval),
|
|
2433
|
+
);
|
|
2434
|
+
return Value::skip();
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
let (needtype, needbits) = if islen {
|
|
2439
|
+
("string, list or map", (T_STRING | T_LIST | T_MAP) as i64)
|
|
2440
|
+
} else if islike {
|
|
2441
|
+
("string", T_STRING as i64)
|
|
2442
|
+
} else {
|
|
2443
|
+
("number", T_NUMBER as i64)
|
|
2444
|
+
};
|
|
2445
|
+
|
|
2446
|
+
if 0 == needbits & ctype {
|
|
2447
|
+
errs_push(inj, invalid_type_msg(&path, needtype, ctype, &cval));
|
|
2448
|
+
return Value::skip();
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
let inbound = if islen {
|
|
2452
|
+
let len = match &cval {
|
|
2453
|
+
Value::Str(s) => s.chars().count() as i64,
|
|
2454
|
+
_ => size(&cval),
|
|
2455
|
+
};
|
|
2456
|
+
lo <= len && (-1 == hi || len <= hi)
|
|
2457
|
+
} else if islike {
|
|
2458
|
+
re_test(like.unwrap_or_default(), cval.as_str().unwrap_or_default())
|
|
2459
|
+
} else {
|
|
2460
|
+
inrange(&bound, &cval)
|
|
2461
|
+
};
|
|
2462
|
+
|
|
2463
|
+
if !inbound {
|
|
2464
|
+
let need = format!("{}{desc}", if path.len() > 1 { "" } else { "value " });
|
|
2465
|
+
errs_push(inj, invalid_type_msg(&path, &need, ctype, &cval));
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
Value::skip()
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2471
|
+
// The bounds of a $LEN bound, with -1 for no maximum, and the words for it,
|
|
2472
|
+
// which are absent when the bound is invalid.
|
|
2473
|
+
fn lenbound(bound: &Value) -> (i64, i64, Option<String>) {
|
|
2474
|
+
let (lo, hi, countdesc) = nofcount(bound, -1);
|
|
2475
|
+
|
|
2476
|
+
if countdesc.is_none() {
|
|
2477
|
+
return (0, 0, None);
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
let desc = if lo == hi {
|
|
2481
|
+
lo.to_string()
|
|
2482
|
+
} else if -1 == hi {
|
|
2483
|
+
format!("at least {lo}")
|
|
2484
|
+
} else if 0 == lo {
|
|
2485
|
+
format!("at most {hi}")
|
|
2486
|
+
} else {
|
|
2487
|
+
format!("{lo} to {hi}")
|
|
2488
|
+
};
|
|
2489
|
+
|
|
2490
|
+
(lo, hi, Some(format!("of length {desc}")))
|
|
2491
|
+
}
|
|
2492
|
+
|
|
2493
|
+
// A $LIKE pattern, absent unless the port's own regex engine compiles it.
|
|
2494
|
+
fn likere(pattern: &Value) -> Option<&str> {
|
|
2495
|
+
let pattern = pattern.as_str()?;
|
|
2496
|
+
re_compile(pattern).ok().map(|_| pattern)
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
// The words for a $RANGE bound, which are absent when the bound is invalid.
|
|
2500
|
+
fn rangedesc(bound: &Value) -> Option<String> {
|
|
2501
|
+
if !is_map(bound) {
|
|
2502
|
+
return None;
|
|
2503
|
+
}
|
|
2504
|
+
|
|
2505
|
+
let [min, max, gt, lt] = ["min", "max", "gt", "lt"].map(|k| lookup(bound, &Value::str(k)));
|
|
2506
|
+
let lower = if min.is_noval() { > } else { &min };
|
|
2507
|
+
let upper = if max.is_noval() { < } else { &max };
|
|
2508
|
+
let given = [&min, &max, >, <];
|
|
2509
|
+
|
|
2510
|
+
let valid = 0 < size(bound)
|
|
2511
|
+
&& size(bound) == given.iter().filter(|n| !n.is_noval()).count() as i64
|
|
2512
|
+
&& (min.is_noval() || gt.is_noval())
|
|
2513
|
+
&& (max.is_noval() || lt.is_noval())
|
|
2514
|
+
&& given
|
|
2515
|
+
.iter()
|
|
2516
|
+
.all(|n| n.is_noval() || 0 != (T_NUMBER as i64 & typify(n)))
|
|
2517
|
+
&& match (lower.as_num(), upper.as_num()) {
|
|
2518
|
+
(Some(l), Some(u)) => l <= u,
|
|
2519
|
+
_ => true,
|
|
2520
|
+
};
|
|
2521
|
+
|
|
2522
|
+
if !valid {
|
|
2523
|
+
return None;
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
let words = |word: &str, n: &Value| format!("{word} {}", stringify(n, None, false));
|
|
2527
|
+
let lowerdesc = if !min.is_noval() {
|
|
2528
|
+
Some(words("at least", &min))
|
|
2529
|
+
} else if !gt.is_noval() {
|
|
2530
|
+
Some(words("greater than", >))
|
|
2531
|
+
} else {
|
|
2532
|
+
None
|
|
2533
|
+
};
|
|
2534
|
+
let upperdesc = if !max.is_noval() {
|
|
2535
|
+
Some(words("at most", &max))
|
|
2536
|
+
} else if !lt.is_noval() {
|
|
2537
|
+
Some(words("less than", <))
|
|
2538
|
+
} else {
|
|
2539
|
+
None
|
|
2540
|
+
};
|
|
2541
|
+
|
|
2542
|
+
Some(
|
|
2543
|
+
[lowerdesc, upperdesc]
|
|
2544
|
+
.into_iter()
|
|
2545
|
+
.flatten()
|
|
2546
|
+
.collect::<Vec<_>>()
|
|
2547
|
+
.join(" and "),
|
|
2548
|
+
)
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2551
|
+
// A number within a valid $RANGE bound.
|
|
2552
|
+
fn inrange(bound: &Value, val: &Value) -> bool {
|
|
2553
|
+
let Some(v) = val.as_num() else {
|
|
2554
|
+
return false;
|
|
2555
|
+
};
|
|
2556
|
+
let limit = |key: &str| lookup(bound, &Value::str(key)).as_num();
|
|
2557
|
+
|
|
2558
|
+
limit("min").into_iter().all(|b| b <= v)
|
|
2559
|
+
&& limit("max").into_iter().all(|b| v <= b)
|
|
2560
|
+
&& limit("gt").into_iter().all(|b| b < v)
|
|
2561
|
+
&& limit("lt").into_iter().all(|b| v < b)
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2564
|
+
/// `_validation` — the modify hook installed by `validate` (runs after the
|
|
2565
|
+
/// per-key special commands).
|
|
2566
|
+
fn validation_modify(pval: &Value, key: &Value, parent: &Value, inj: &Inj, _store: &Value) {
|
|
2567
|
+
if pval.is_skip() {
|
|
2568
|
+
return;
|
|
2569
|
+
}
|
|
2570
|
+
let (meta, dparent, path, named) = {
|
|
2571
|
+
let b = inj.borrow();
|
|
2572
|
+
(b.meta.clone(), b.dparent.clone(), b.path.clone(), b.named)
|
|
2573
|
+
};
|
|
2574
|
+
let exact = matches!(
|
|
2575
|
+
get_prop(&meta, &Value::str(S_BEXACT), Value::Bool(false)),
|
|
2576
|
+
Value::Bool(true)
|
|
2577
|
+
);
|
|
2578
|
+
let cval = get_prop(&dparent, key, Value::Noval);
|
|
2579
|
+
if !exact && cval.is_noval() {
|
|
2580
|
+
return;
|
|
2581
|
+
}
|
|
2582
|
+
let ptype = typify(pval);
|
|
2583
|
+
if ptype & (T_STRING as i64) != 0 {
|
|
2584
|
+
if let Value::Str(s) = pval {
|
|
2585
|
+
if s.contains(S_DS) {
|
|
2586
|
+
return; // remaining special command — leave it
|
|
2587
|
+
}
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
let ctype = typify(&cval);
|
|
2591
|
+
if ptype != ctype && !pval.is_noval() {
|
|
2592
|
+
errs_push(
|
|
2593
|
+
inj,
|
|
2594
|
+
invalid_type_msg(&path, &type_name(ptype), ctype, &cval),
|
|
2595
|
+
);
|
|
2596
|
+
return;
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
if is_map(&cval) {
|
|
2600
|
+
if !is_map(pval) {
|
|
2601
|
+
errs_push(
|
|
2602
|
+
inj,
|
|
2603
|
+
invalid_type_msg(&path, &type_name(ptype), ctype, &cval),
|
|
2604
|
+
);
|
|
2605
|
+
return;
|
|
2606
|
+
}
|
|
2213
2607
|
let ckeys = keysof_vec(&cval);
|
|
2214
2608
|
let pkeys = keysof_vec(pval);
|
|
2215
2609
|
let open = matches!(
|
|
2216
2610
|
get_prop(pval, &Value::str(S_BOPEN), Value::Noval),
|
|
2217
2611
|
Value::Bool(true)
|
|
2218
2612
|
);
|
|
2219
|
-
|
|
2613
|
+
// Only a spec written as {} is open, even if named keys resolved away.
|
|
2614
|
+
if (!pkeys.is_empty() || named) && !open {
|
|
2220
2615
|
// Literal presence: the shape must be checked with a raw lookup
|
|
2221
2616
|
// (canonical TS `NONE === _lookup(pval, ckey)`); the Group A
|
|
2222
2617
|
// has_key would treat a null-valued shape slot as absent.
|
|
@@ -2248,6 +2643,25 @@ fn validation_modify(pval: &Value, key: &Value, parent: &Value, inj: &Inj, _stor
|
|
|
2248
2643
|
inj,
|
|
2249
2644
|
invalid_type_msg(&path, &type_name(ptype), ctype, &cval),
|
|
2250
2645
|
);
|
|
2646
|
+
} else if 0 < size(pval) {
|
|
2647
|
+
// Closed list, so reject items past the end of the shape.
|
|
2648
|
+
let badkeys: Vec<String> = (size(pval)..size(&cval))
|
|
2649
|
+
.map(|i| str_key(Value::Num(i as f64)))
|
|
2650
|
+
.collect();
|
|
2651
|
+
if !badkeys.is_empty() {
|
|
2652
|
+
errs_push(
|
|
2653
|
+
inj,
|
|
2654
|
+
format!(
|
|
2655
|
+
"Unexpected keys at field {}{}{}",
|
|
2656
|
+
pathify(&path_value(&path), Some(1), None),
|
|
2657
|
+
S_VIZ,
|
|
2658
|
+
badkeys.join(", ")
|
|
2659
|
+
),
|
|
2660
|
+
);
|
|
2661
|
+
}
|
|
2662
|
+
} else {
|
|
2663
|
+
// Empty spec list [] means list can be open (any items).
|
|
2664
|
+
merge(&Value::list(vec![pval.clone(), cval.clone()]), None);
|
|
2251
2665
|
}
|
|
2252
2666
|
} else if exact {
|
|
2253
2667
|
if &cval != pval {
|
|
@@ -2276,6 +2690,7 @@ fn validation_modify(pval: &Value, key: &Value, parent: &Value, inj: &Inj, _stor
|
|
|
2276
2690
|
}
|
|
2277
2691
|
}
|
|
2278
2692
|
|
|
2693
|
+
/// `_validatehandler` — `getpath`/`_injectstr` handler installed by `validate`.
|
|
2279
2694
|
fn validatehandler(inj: &Inj, val: &Value, r: &str, store: &Value) -> Value {
|
|
2280
2695
|
if let Some(caps) = R_META_PATH.captures(r) {
|
|
2281
2696
|
if &caps[2] == "=" {
|
|
@@ -2328,8 +2743,13 @@ pub fn validate(
|
|
|
2328
2743
|
}
|
|
2329
2744
|
vmap.insert("$ANY".to_string(), Value::func(validate_any));
|
|
2330
2745
|
vmap.insert("$CHILD".to_string(), Value::func(validate_child));
|
|
2331
|
-
vmap.insert("$ONE".to_string(), Value::func(validate_one));
|
|
2332
2746
|
vmap.insert("$EXACT".to_string(), Value::func(validate_exact));
|
|
2747
|
+
vmap.insert("$NOF".to_string(), Value::func(validate_nof));
|
|
2748
|
+
vmap.insert("$ALL".to_string(), Value::func(validate_all));
|
|
2749
|
+
vmap.insert("$LEN".to_string(), Value::func(validate_len));
|
|
2750
|
+
vmap.insert("$RANGE".to_string(), Value::func(validate_range));
|
|
2751
|
+
vmap.insert("$LIKE".to_string(), Value::func(validate_like));
|
|
2752
|
+
vmap.insert("$REST".to_string(), Value::func(validate_rest));
|
|
2333
2753
|
|
|
2334
2754
|
let extra_or_empty = match &extra {
|
|
2335
2755
|
Some(e) => e.clone(),
|
|
@@ -2351,16 +2771,24 @@ pub fn validate(
|
|
|
2351
2771
|
let exact_cur = get_prop(&meta, &Value::str(S_BEXACT), Value::Bool(false));
|
|
2352
2772
|
set_prop(meta.clone(), &Value::str(S_BEXACT), exact_cur);
|
|
2353
2773
|
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
handler: Some(Rc::new(validatehandler) as NativeFn),
|
|
2359
|
-
errs: Some(errs.clone()),
|
|
2360
|
-
..Default::default()
|
|
2361
|
-
};
|
|
2774
|
+
// A spec that names an unknown checker validates nothing.
|
|
2775
|
+
let errcount = |errs: &Value| errs.as_list().map(|l| l.borrow().len()).unwrap_or(0);
|
|
2776
|
+
let numerrs = errcount(&errs);
|
|
2777
|
+
checknames(spec, &store, &[], &errs, false);
|
|
2362
2778
|
|
|
2363
|
-
let out =
|
|
2779
|
+
let out = if numerrs < errcount(&errs) {
|
|
2780
|
+
clone(data)
|
|
2781
|
+
} else {
|
|
2782
|
+
let td = InjectDef {
|
|
2783
|
+
meta: Some(meta),
|
|
2784
|
+
extra: Some(store),
|
|
2785
|
+
modify: Some(Rc::new(validation_modify) as Modify),
|
|
2786
|
+
handler: Some(Rc::new(validatehandler) as NativeFn),
|
|
2787
|
+
errs: Some(errs.clone()),
|
|
2788
|
+
..Default::default()
|
|
2789
|
+
};
|
|
2790
|
+
transform(data, spec, Some(&td)).unwrap_or(Value::Noval)
|
|
2791
|
+
};
|
|
2364
2792
|
|
|
2365
2793
|
let errlen = errs.as_list().map(|l| l.borrow().len()).unwrap_or(0);
|
|
2366
2794
|
if errlen > 0 && !collect {
|
|
@@ -2376,6 +2804,229 @@ pub fn validate(
|
|
|
2376
2804
|
Ok(out)
|
|
2377
2805
|
}
|
|
2378
2806
|
|
|
2807
|
+
// Names a validate spec may use besides its checkers: transform's that it keeps, and $OPEN.
|
|
2808
|
+
const VALIDATE_NAMES: [&str; 10] = [
|
|
2809
|
+
"$TOP", "$SPEC", "$BT", "$DS", "$WHEN", "$ANNO", "$REF", "$FORMAT", "$APPLY", "$OPEN",
|
|
2810
|
+
];
|
|
2811
|
+
|
|
2812
|
+
// Report each checker the spec names that validate lacks, and each misplaced
|
|
2813
|
+
// $REST; $EXACT's arguments are literals. Last: spec is a list's last item.
|
|
2814
|
+
fn checknames(spec: &Value, store: &Value, path: &[String], errs: &Value, last: bool) {
|
|
2815
|
+
let push = |msg: String| {
|
|
2816
|
+
if let Value::List(l) = errs {
|
|
2817
|
+
l.borrow_mut().push(Value::Str(msg));
|
|
2818
|
+
}
|
|
2819
|
+
};
|
|
2820
|
+
|
|
2821
|
+
if let Some(name) = refname(spec) {
|
|
2822
|
+
if unknownname(&name, store) {
|
|
2823
|
+
push(format!(
|
|
2824
|
+
"Unknown validator {name} at field {}.",
|
|
2825
|
+
pathify(&path_value(path), None, None)
|
|
2826
|
+
));
|
|
2827
|
+
} else if "$REST" == name {
|
|
2828
|
+
push(restmsg(path, " must be the last element of an array."));
|
|
2829
|
+
}
|
|
2830
|
+
return;
|
|
2831
|
+
}
|
|
2832
|
+
|
|
2833
|
+
let head = if is_list(spec) {
|
|
2834
|
+
refname(&lookup(spec, &Value::Num(0.0)))
|
|
2835
|
+
} else {
|
|
2836
|
+
None
|
|
2837
|
+
};
|
|
2838
|
+
if Some("$EXACT") == head.as_deref() {
|
|
2839
|
+
return;
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
if Some("$REST") == head.as_deref() {
|
|
2843
|
+
if !last {
|
|
2844
|
+
push(restmsg(path, " must be the last element of an array."));
|
|
2845
|
+
} else if 2 != size(spec) {
|
|
2846
|
+
push(restmsg(path, " must have exactly one spec."));
|
|
2847
|
+
}
|
|
2848
|
+
let mut kpath = path.to_vec();
|
|
2849
|
+
kpath.push("1".to_string());
|
|
2850
|
+
checknames(&lookup(spec, &Value::Num(1.0)), store, &kpath, errs, false);
|
|
2851
|
+
return;
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
let restkey = "`$REST`";
|
|
2855
|
+
if is_map(spec)
|
|
2856
|
+
&& !lookup(spec, &Value::str(restkey)).is_noval()
|
|
2857
|
+
&& !lookup(spec, &Value::str("`$CHILD`")).is_noval()
|
|
2858
|
+
{
|
|
2859
|
+
push(restmsg(path, " cannot be used with $CHILD."));
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
let lastkey = is_list(spec).then(|| str_key(Value::Num((size(spec) - 1) as f64)));
|
|
2863
|
+
for key in keysof_vec(spec) {
|
|
2864
|
+
if is_map(spec) && restkey != key {
|
|
2865
|
+
checknames(&Value::str(key.clone()), store, path, errs, false);
|
|
2866
|
+
}
|
|
2867
|
+
let islast = lastkey.as_deref() == Some(key.as_str());
|
|
2868
|
+
let mut kpath = path.to_vec();
|
|
2869
|
+
kpath.push(key.clone());
|
|
2870
|
+
checknames(&lookup(spec, &Value::str(key)), store, &kpath, errs, islast);
|
|
2871
|
+
}
|
|
2872
|
+
}
|
|
2873
|
+
|
|
2874
|
+
// The name a whole-string reference gives, when it is a checker name in any case.
|
|
2875
|
+
fn refname(val: &Value) -> Option<String> {
|
|
2876
|
+
let Value::Str(s) = val else {
|
|
2877
|
+
return None;
|
|
2878
|
+
};
|
|
2879
|
+
let caps = R_INJECTION_FULL.captures(s)?;
|
|
2880
|
+
let name = caps[1].to_string();
|
|
2881
|
+
R_CHECKER_NAME
|
|
2882
|
+
.is_match(&name.to_uppercase())
|
|
2883
|
+
.then_some(name)
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2886
|
+
// Unknown: undefined and upper case, or a defined name in another case. Null disables a name.
|
|
2887
|
+
fn unknownname(name: &str, store: &Value) -> bool {
|
|
2888
|
+
let known =
|
|
2889
|
+
|n: &str| VALIDATE_NAMES.contains(&n) || !lookup(store, &Value::str(n)).is_nullish();
|
|
2890
|
+
let upper = name.to_uppercase();
|
|
2891
|
+
!known(name) && (upper == name || known(&upper))
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
// The data value at a list directive's slot. The directive's own dparent was
|
|
2895
|
+
// read with get_prop, which reports a stored null as absent.
|
|
2896
|
+
fn slotval(inj: &Inj) -> Value {
|
|
2897
|
+
let prior = inj.borrow().prior.clone();
|
|
2898
|
+
match prior {
|
|
2899
|
+
None => inj.borrow().dparent.clone(),
|
|
2900
|
+
Some(p) => {
|
|
2901
|
+
let b = p.borrow();
|
|
2902
|
+
lookup(&b.dparent, &Value::str(b.key.clone()))
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2907
|
+
// JSON equality: numbers by value, lists in order, maps by key in any order.
|
|
2908
|
+
fn deepequal(a: &Value, b: &Value) -> bool {
|
|
2909
|
+
let same = match (a, b) {
|
|
2910
|
+
(Value::List(x), Value::List(y)) => Rc::ptr_eq(x, y),
|
|
2911
|
+
(Value::Map(x), Value::Map(y)) => Rc::ptr_eq(x, y),
|
|
2912
|
+
(Value::Func(x), Value::Func(y)) => Rc::ptr_eq(x, y),
|
|
2913
|
+
_ => a == b,
|
|
2914
|
+
};
|
|
2915
|
+
if same {
|
|
2916
|
+
return true;
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
let atype = typify(a);
|
|
2920
|
+
if atype != typify(b) || 0 == ((T_LIST | T_MAP) as i64 & atype) {
|
|
2921
|
+
return false;
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
let akeys = keysof_vec(a);
|
|
2925
|
+
let bkeys = keysof_vec(b);
|
|
2926
|
+
if akeys.len() != bkeys.len() {
|
|
2927
|
+
return false;
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
akeys.iter().zip(bkeys.iter()).all(|(k, bk)| {
|
|
2931
|
+
let kv = Value::str(k.clone());
|
|
2932
|
+
k == bk && deepequal(&lookup(a, &kv), &lookup(b, &kv))
|
|
2933
|
+
})
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
// Every member val has is in out, unchanged. A member only out has is a
|
|
2937
|
+
// default the spec supplied, and is ignored.
|
|
2938
|
+
fn keeps(val: &Value, out: &Value) -> bool {
|
|
2939
|
+
if val.is_noval() {
|
|
2940
|
+
return true;
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
if 0 == ((T_LIST | T_MAP) as i64 & typify(val)) || is_list(val) != is_list(out) || !is_node(out)
|
|
2944
|
+
{
|
|
2945
|
+
return deepequal(val, out);
|
|
2946
|
+
}
|
|
2947
|
+
|
|
2948
|
+
keysof_vec(val).into_iter().all(|k| {
|
|
2949
|
+
let kv = Value::str(k);
|
|
2950
|
+
keeps(&lookup(val, &kv), &lookup(out, &kv))
|
|
2951
|
+
})
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
// A spec admits a value when validating the value against it finds no error
|
|
2955
|
+
// and gives back the value as it is.
|
|
2956
|
+
fn admits(val: &Value, spec: &Value, inj: &Inj, store: &Value) -> bool {
|
|
2957
|
+
let terrs = Value::empty_list();
|
|
2958
|
+
|
|
2959
|
+
let vstore = match merge(
|
|
2960
|
+
&Value::list(vec![Value::empty_map(), store.clone()]),
|
|
2961
|
+
Some(1),
|
|
2962
|
+
) {
|
|
2963
|
+
v @ Value::Map(_) => v,
|
|
2964
|
+
_ => Value::empty_map(),
|
|
2965
|
+
};
|
|
2966
|
+
set_prop(vstore.clone(), &Value::str(S_DTOP), val.clone());
|
|
2967
|
+
|
|
2968
|
+
let meta = inj.borrow().meta.clone();
|
|
2969
|
+
let vd = InjectDef {
|
|
2970
|
+
extra: Some(vstore),
|
|
2971
|
+
errs: Some(terrs.clone()),
|
|
2972
|
+
meta: Some(meta),
|
|
2973
|
+
..Default::default()
|
|
2974
|
+
};
|
|
2975
|
+
let out = validate(val, spec, Some(&vd)).unwrap_or(Value::Noval);
|
|
2976
|
+
|
|
2977
|
+
let terrlen = terrs.as_list().map(|l| l.borrow().len()).unwrap_or(0);
|
|
2978
|
+
0 == terrlen && keeps(val, &out)
|
|
2979
|
+
}
|
|
2980
|
+
|
|
2981
|
+
// The bounds of a $NOF count, and the words for it, which are absent when
|
|
2982
|
+
// the count is invalid. Without a max, the bound is the number of specs.
|
|
2983
|
+
fn nofcount(count: &Value, numtvals: i64) -> (i64, i64, Option<String>) {
|
|
2984
|
+
let isnat =
|
|
2985
|
+
|n: &Value| 0 != (T_INTEGER as i64 & typify(n)) && n.as_num().is_some_and(|x| 0.0 <= x);
|
|
2986
|
+
let nat = |n: &Value| n.as_num().unwrap_or(0.0) as i64;
|
|
2987
|
+
|
|
2988
|
+
if isnat(count) {
|
|
2989
|
+
let n = nat(count);
|
|
2990
|
+
let desc = if 0 == n {
|
|
2991
|
+
"none".to_string()
|
|
2992
|
+
} else {
|
|
2993
|
+
format!("exactly {n}")
|
|
2994
|
+
};
|
|
2995
|
+
return (n, n, Some(desc));
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2998
|
+
let min = lookup(count, &Value::str("min"));
|
|
2999
|
+
let max = lookup(count, &Value::str("max"));
|
|
3000
|
+
|
|
3001
|
+
let valid = is_map(count)
|
|
3002
|
+
&& 0 < size(count)
|
|
3003
|
+
&& size(count) == i64::from(!min.is_noval()) + i64::from(!max.is_noval())
|
|
3004
|
+
&& (min.is_noval() || isnat(&min))
|
|
3005
|
+
&& (max.is_noval() || isnat(&max))
|
|
3006
|
+
&& (min.is_noval() || max.is_noval() || nat(&min) <= nat(&max));
|
|
3007
|
+
|
|
3008
|
+
if !valid {
|
|
3009
|
+
return (0, 0, None);
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
let lo = if min.is_noval() { 0 } else { nat(&min) };
|
|
3013
|
+
let hi = if max.is_noval() { numtvals } else { nat(&max) };
|
|
3014
|
+
|
|
3015
|
+
let desc = if max.is_noval() {
|
|
3016
|
+
format!("at least {lo}")
|
|
3017
|
+
} else if 0 == hi {
|
|
3018
|
+
"none".to_string()
|
|
3019
|
+
} else if min.is_noval() {
|
|
3020
|
+
format!("at most {hi}")
|
|
3021
|
+
} else if lo == hi {
|
|
3022
|
+
format!("exactly {lo}")
|
|
3023
|
+
} else {
|
|
3024
|
+
format!("{lo} to {hi}")
|
|
3025
|
+
};
|
|
3026
|
+
|
|
3027
|
+
(lo, hi, Some(desc))
|
|
3028
|
+
}
|
|
3029
|
+
|
|
2379
3030
|
// ---- select ----------------------------------------------------------
|
|
2380
3031
|
|
|
2381
3032
|
fn js_lt(a: &Value, b: &Value) -> bool {
|
|
@@ -2551,7 +3202,12 @@ fn select_not(inj: &Inj, _v: &Value, _r: &str, store: &Value) -> Value {
|
|
|
2551
3202
|
Value::Noval
|
|
2552
3203
|
}
|
|
2553
3204
|
|
|
2554
|
-
fn select_cmp(inj: &Inj,
|
|
3205
|
+
fn select_cmp(inj: &Inj, v: &Value, r: &str, store: &Value) -> Value {
|
|
3206
|
+
// The list form of $LIKE is validate's checker; the key form is this operator.
|
|
3207
|
+
if M_VAL == inj.borrow().mode && "$LIKE" == r {
|
|
3208
|
+
return validate_like(inj, v, r, store);
|
|
3209
|
+
}
|
|
3210
|
+
|
|
2555
3211
|
if inj.borrow().mode != M_KEYPRE {
|
|
2556
3212
|
return Value::Noval;
|
|
2557
3213
|
}
|
|
@@ -2579,7 +3235,7 @@ fn select_cmp(inj: &Inj, _v: &Value, r: &str, store: &Value) -> Value {
|
|
|
2579
3235
|
"$LTE" => js_lt(&point, &term) || point == term,
|
|
2580
3236
|
"$LIKE" => {
|
|
2581
3237
|
let pat = term.as_str().unwrap_or("").to_string();
|
|
2582
|
-
|
|
3238
|
+
super::re::Regex::new(&pat)
|
|
2583
3239
|
.map(|re| re.is_match(&stringify(&point, None, false)))
|
|
2584
3240
|
.unwrap_or(false)
|
|
2585
3241
|
}
|
|
@@ -2647,14 +3303,8 @@ pub fn select(children: &Value, query: &Value) -> Value {
|
|
|
2647
3303
|
let meta = Value::map_of([(S_BEXACT.to_string(), Value::Bool(true))]);
|
|
2648
3304
|
|
|
2649
3305
|
let q = clone(query);
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
let cur = get_prop(v, &Value::str(S_BOPEN), Value::Bool(true));
|
|
2653
|
-
set_prop(v.clone(), &Value::str(S_BOPEN), cur);
|
|
2654
|
-
}
|
|
2655
|
-
v.clone()
|
|
2656
|
-
};
|
|
2657
|
-
walk(q.clone(), Some(&mut open), None, None);
|
|
3306
|
+
|
|
3307
|
+
openquery(&q);
|
|
2658
3308
|
|
|
2659
3309
|
let mut results: Vec<Value> = Vec::new();
|
|
2660
3310
|
for child in &child_list {
|
|
@@ -2677,6 +3327,457 @@ pub fn select(children: &Value, query: &Value) -> Value {
|
|
|
2677
3327
|
Value::list(results)
|
|
2678
3328
|
}
|
|
2679
3329
|
|
|
3330
|
+
// Open every map in a select query, so a child may hold keys the query does
|
|
3331
|
+
// not name, but leave a directive's literals as written: what $EXACT
|
|
3332
|
+
// compares, and the count or bound of $NOF, $LEN and $RANGE.
|
|
3333
|
+
fn openquery(q: &Value) {
|
|
3334
|
+
if is_map(q) {
|
|
3335
|
+
let cur = get_prop(q, &Value::str(S_BOPEN), Value::Bool(true));
|
|
3336
|
+
set_prop(q.clone(), &Value::str(S_BOPEN), cur);
|
|
3337
|
+
for (_, v) in items_vec(q) {
|
|
3338
|
+
openquery(&v);
|
|
3339
|
+
}
|
|
3340
|
+
} else if let Value::List(l) = q {
|
|
3341
|
+
let elems = l.borrow().clone();
|
|
3342
|
+
let head = elems.first().and_then(Value::as_str);
|
|
3343
|
+
let exact = Some(S_BEXACT) == head;
|
|
3344
|
+
let bounded = matches!(head, Some("`$NOF`" | "`$LEN`" | "`$RANGE`"));
|
|
3345
|
+
for (i, v) in elems.iter().enumerate() {
|
|
3346
|
+
if 0 == i || !(exact || (bounded && 1 == i)) {
|
|
3347
|
+
openquery(v);
|
|
3348
|
+
}
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
}
|
|
3352
|
+
|
|
3353
|
+
// ---------------------------------------------------------------------
|
|
3354
|
+
// condense
|
|
3355
|
+
// ---------------------------------------------------------------------
|
|
3356
|
+
|
|
3357
|
+
const CONDENSE_MAP: f64 = 0.0;
|
|
3358
|
+
const CONDENSE_LIST: f64 = 1.0;
|
|
3359
|
+
const CONDENSE_STR: f64 = 2.0;
|
|
3360
|
+
const CONDENSE_NUM: f64 = 3.0;
|
|
3361
|
+
const CONDENSE_TRUE: f64 = 4.0;
|
|
3362
|
+
const CONDENSE_FALSE: f64 = 5.0;
|
|
3363
|
+
const CONDENSE_NULL: f64 = 6.0;
|
|
3364
|
+
|
|
3365
|
+
/// `condense(val)` — any JSON-shaped node as a sorted symbol table and a table
|
|
3366
|
+
/// of shared nodes. Pure: the same input always produces a byte-identical
|
|
3367
|
+
/// result, on every port.
|
|
3368
|
+
pub fn condense(val: &Value) -> Value {
|
|
3369
|
+
// Pass one: every distinct map key and string value, once, sorted. Byte
|
|
3370
|
+
// order is code-point order in UTF-8.
|
|
3371
|
+
fn collect(n: &Value, symset: &mut BTreeSet<String>) {
|
|
3372
|
+
match n {
|
|
3373
|
+
Value::Map(m) => {
|
|
3374
|
+
for (k, v) in m.borrow().iter() {
|
|
3375
|
+
symset.insert(k.clone());
|
|
3376
|
+
collect(v, symset);
|
|
3377
|
+
}
|
|
3378
|
+
}
|
|
3379
|
+
Value::List(l) => {
|
|
3380
|
+
for v in l.borrow().iter() {
|
|
3381
|
+
collect(v, symset);
|
|
3382
|
+
}
|
|
3383
|
+
}
|
|
3384
|
+
Value::Str(s) => {
|
|
3385
|
+
symset.insert(s.clone());
|
|
3386
|
+
}
|
|
3387
|
+
_ => {}
|
|
3388
|
+
}
|
|
3389
|
+
}
|
|
3390
|
+
|
|
3391
|
+
// Pass two: build post-order, interning on the encoding. Children are built
|
|
3392
|
+
// first, so identical subtrees are one node by the time a parent refers to
|
|
3393
|
+
// them.
|
|
3394
|
+
fn build(
|
|
3395
|
+
n: &Value,
|
|
3396
|
+
symid: &HashMap<&str, f64>,
|
|
3397
|
+
node: &mut Vec<Value>,
|
|
3398
|
+
seen: &mut HashMap<String, usize>,
|
|
3399
|
+
) -> usize {
|
|
3400
|
+
let enc: Vec<f64> = match n {
|
|
3401
|
+
Value::Map(m) => {
|
|
3402
|
+
let m = m.borrow();
|
|
3403
|
+
let mut enc = vec![CONDENSE_MAP];
|
|
3404
|
+
// keysof sorts by byte, which is code-point order in UTF-8, so
|
|
3405
|
+
// the key ids ascend and lookup can bisect.
|
|
3406
|
+
for k in keysof_vec(n) {
|
|
3407
|
+
enc.push(symid[k.as_str()]);
|
|
3408
|
+
enc.push(build(&m[k.as_str()], symid, node, seen) as f64);
|
|
3409
|
+
}
|
|
3410
|
+
enc
|
|
3411
|
+
}
|
|
3412
|
+
Value::List(l) => {
|
|
3413
|
+
let mut enc = vec![CONDENSE_LIST];
|
|
3414
|
+
for v in l.borrow().iter() {
|
|
3415
|
+
enc.push(build(v, symid, node, seen) as f64);
|
|
3416
|
+
}
|
|
3417
|
+
enc
|
|
3418
|
+
}
|
|
3419
|
+
Value::Str(s) => vec![CONDENSE_STR, symid[s.as_str()]],
|
|
3420
|
+
Value::Num(x) => vec![CONDENSE_NUM, *x],
|
|
3421
|
+
Value::Bool(true) => vec![CONDENSE_TRUE],
|
|
3422
|
+
Value::Bool(false) => vec![CONDENSE_FALSE],
|
|
3423
|
+
_ => vec![CONDENSE_NULL],
|
|
3424
|
+
};
|
|
3425
|
+
|
|
3426
|
+
// The kind leads every encoding, so a string node and a number node
|
|
3427
|
+
// never share a key.
|
|
3428
|
+
let enckey = enc
|
|
3429
|
+
.iter()
|
|
3430
|
+
.map(|x| num_to_string(*x))
|
|
3431
|
+
.collect::<Vec<_>>()
|
|
3432
|
+
.join(",");
|
|
3433
|
+
if let Some(&hit) = seen.get(&enckey) {
|
|
3434
|
+
return hit;
|
|
3435
|
+
}
|
|
3436
|
+
let idx = node.len();
|
|
3437
|
+
node.push(Value::list(enc.into_iter().map(Value::Num).collect()));
|
|
3438
|
+
seen.insert(enckey, idx);
|
|
3439
|
+
idx
|
|
3440
|
+
}
|
|
3441
|
+
|
|
3442
|
+
let mut symset = BTreeSet::new();
|
|
3443
|
+
collect(val, &mut symset);
|
|
3444
|
+
let sym: Vec<String> = symset.into_iter().collect();
|
|
3445
|
+
let symid: HashMap<&str, f64> = sym
|
|
3446
|
+
.iter()
|
|
3447
|
+
.enumerate()
|
|
3448
|
+
.map(|(i, s)| (s.as_str(), i as f64))
|
|
3449
|
+
.collect();
|
|
3450
|
+
|
|
3451
|
+
let mut node: Vec<Value> = Vec::new();
|
|
3452
|
+
let mut seen: HashMap<String, usize> = HashMap::new();
|
|
3453
|
+
let root = build(val, &symid, &mut node, &mut seen);
|
|
3454
|
+
|
|
3455
|
+
let mut out = OrderedMap::new();
|
|
3456
|
+
out.insert(S_condense.to_string(), Value::Num(CONDENSE_VERSION));
|
|
3457
|
+
out.insert(
|
|
3458
|
+
S_condsym.to_string(),
|
|
3459
|
+
Value::list(sym.iter().cloned().map(Value::Str).collect()),
|
|
3460
|
+
);
|
|
3461
|
+
out.insert(S_condnode.to_string(), Value::list(node));
|
|
3462
|
+
out.insert(S_condroot.to_string(), Value::Num(root as f64));
|
|
3463
|
+
Value::map(out)
|
|
3464
|
+
}
|
|
3465
|
+
|
|
3466
|
+
/// A kind, symbol id or node index read from an encoding, or -1 for anything
|
|
3467
|
+
/// but a non-negative integer.
|
|
3468
|
+
fn condense_index(v: &Value) -> i64 {
|
|
3469
|
+
match v {
|
|
3470
|
+
Value::Num(n) if is_integer_f64(*n) && 0.0 <= *n => *n as i64,
|
|
3471
|
+
_ => -1,
|
|
3472
|
+
}
|
|
3473
|
+
}
|
|
3474
|
+
|
|
3475
|
+
/// Element `i` of a list, or `Noval`. Unlike `lookup`, a negative index
|
|
3476
|
+
/// counts from nowhere.
|
|
3477
|
+
fn condense_at(list: &Value, i: i64) -> Value {
|
|
3478
|
+
let found = match list {
|
|
3479
|
+
Value::List(l) if 0 <= i => l.borrow().get(i as usize).cloned(),
|
|
3480
|
+
_ => None,
|
|
3481
|
+
};
|
|
3482
|
+
found.unwrap_or(Value::Noval)
|
|
3483
|
+
}
|
|
3484
|
+
|
|
3485
|
+
fn condense_root(cond: &Value) -> i64 {
|
|
3486
|
+
condense_index(&lookup(cond, &Value::str(S_condroot)))
|
|
3487
|
+
}
|
|
3488
|
+
|
|
3489
|
+
/// The encoding of node `idx`, or `Noval` when there is no such node.
|
|
3490
|
+
fn condense_enc(cond: &Value, idx: i64) -> Value {
|
|
3491
|
+
condense_at(&lookup(cond, &Value::str(S_condnode)), idx)
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3494
|
+
/// Resolve a symbol to its id by bisecting the sorted symbol table. -1 when
|
|
3495
|
+
/// the string occurs nowhere in the structure, which is itself a fast negative
|
|
3496
|
+
/// answer for a key lookup.
|
|
3497
|
+
fn condense_sym_id(cond: &Value, key: &str) -> i64 {
|
|
3498
|
+
let sym = lookup(cond, &Value::str(S_condsym));
|
|
3499
|
+
let Value::List(sym) = &sym else {
|
|
3500
|
+
return -1;
|
|
3501
|
+
};
|
|
3502
|
+
let sym = sym.borrow();
|
|
3503
|
+
let mut lo: i64 = 0;
|
|
3504
|
+
let mut hi: i64 = sym.len() as i64 - 1;
|
|
3505
|
+
while lo <= hi {
|
|
3506
|
+
let mid = (lo + hi) >> 1;
|
|
3507
|
+
match sym[mid as usize].as_str() {
|
|
3508
|
+
Some(s) if s == key => return mid,
|
|
3509
|
+
Some(s) if s < key => lo = mid + 1,
|
|
3510
|
+
_ => hi = mid - 1,
|
|
3511
|
+
}
|
|
3512
|
+
}
|
|
3513
|
+
-1
|
|
3514
|
+
}
|
|
3515
|
+
|
|
3516
|
+
/// The node index of `key` inside node `idx`, or -1. Touches only this node.
|
|
3517
|
+
fn condense_child(cond: &Value, idx: i64, key: &Value) -> i64 {
|
|
3518
|
+
let enc = condense_enc(cond, idx);
|
|
3519
|
+
let Value::List(enc) = &enc else {
|
|
3520
|
+
return -1;
|
|
3521
|
+
};
|
|
3522
|
+
if !matches!(key, Value::Str(_) | Value::Num(_)) {
|
|
3523
|
+
return -1;
|
|
3524
|
+
}
|
|
3525
|
+
let enc = enc.borrow();
|
|
3526
|
+
let kind = enc.first().and_then(Value::as_num);
|
|
3527
|
+
|
|
3528
|
+
if Some(CONDENSE_MAP) == kind {
|
|
3529
|
+
let symid = condense_sym_id(cond, &js_string(key));
|
|
3530
|
+
if 0 > symid {
|
|
3531
|
+
return -1;
|
|
3532
|
+
}
|
|
3533
|
+
// Pairs live at [1,2], [3,4], ... with keys ascending: bisect the pairs.
|
|
3534
|
+
let mut lo: i64 = 0;
|
|
3535
|
+
let mut hi: i64 = (enc.len() as i64 - 1) / 2 - 1;
|
|
3536
|
+
while lo <= hi {
|
|
3537
|
+
let mid = (lo + hi) >> 1;
|
|
3538
|
+
let k = condense_index(&enc[(1 + mid * 2) as usize]);
|
|
3539
|
+
if k == symid {
|
|
3540
|
+
return condense_index(&enc[(2 + mid * 2) as usize]);
|
|
3541
|
+
}
|
|
3542
|
+
if k < symid {
|
|
3543
|
+
lo = mid + 1;
|
|
3544
|
+
} else {
|
|
3545
|
+
hi = mid - 1;
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
return -1;
|
|
3549
|
+
}
|
|
3550
|
+
|
|
3551
|
+
if Some(CONDENSE_LIST) == kind {
|
|
3552
|
+
return match list_key(key).and_then(|i| usize::try_from(i).ok()) {
|
|
3553
|
+
Some(i) if i < enc.len() - 1 => condense_index(&enc[1 + i]),
|
|
3554
|
+
_ => -1,
|
|
3555
|
+
};
|
|
3556
|
+
}
|
|
3557
|
+
|
|
3558
|
+
-1
|
|
3559
|
+
}
|
|
3560
|
+
|
|
3561
|
+
/// Walk a path from a starting node, returning the node index or -1.
|
|
3562
|
+
fn condense_resolve(cond: &Value, idx: i64, path: &Value) -> i64 {
|
|
3563
|
+
let parts: Vec<Value> = match path {
|
|
3564
|
+
Value::List(l) => l.borrow().clone(),
|
|
3565
|
+
Value::Str(s) if s.is_empty() => Vec::new(),
|
|
3566
|
+
Value::Str(s) => s.split('.').map(Value::str).collect(),
|
|
3567
|
+
Value::Noval | Value::Null => Vec::new(),
|
|
3568
|
+
other => vec![Value::str(js_string(other))],
|
|
3569
|
+
};
|
|
3570
|
+
|
|
3571
|
+
let mut at = idx;
|
|
3572
|
+
for part in &parts {
|
|
3573
|
+
if 0 > at {
|
|
3574
|
+
return -1;
|
|
3575
|
+
}
|
|
3576
|
+
if matches!(part, Value::Str(s) if s.is_empty()) {
|
|
3577
|
+
continue;
|
|
3578
|
+
}
|
|
3579
|
+
at = condense_child(cond, at, part);
|
|
3580
|
+
}
|
|
3581
|
+
at
|
|
3582
|
+
}
|
|
3583
|
+
|
|
3584
|
+
/// Node `idx` as a fresh tree, `Noval` when there is no such node. Every
|
|
3585
|
+
/// materialisation is independent, even where the condensed form shares a node.
|
|
3586
|
+
fn condense_materialise(cond: &Value, idx: i64) -> Value {
|
|
3587
|
+
fn rebuild(sym: &Value, node: &Value, i: i64) -> Value {
|
|
3588
|
+
let enc = condense_at(node, i);
|
|
3589
|
+
let Value::List(enc) = &enc else {
|
|
3590
|
+
return if enc.is_nullish() {
|
|
3591
|
+
Value::Noval
|
|
3592
|
+
} else {
|
|
3593
|
+
Value::Null
|
|
3594
|
+
};
|
|
3595
|
+
};
|
|
3596
|
+
let enc = enc.borrow();
|
|
3597
|
+
let kind = enc.first().and_then(Value::as_num);
|
|
3598
|
+
let arg = |j: usize| enc.get(j).cloned().unwrap_or(Value::Noval);
|
|
3599
|
+
|
|
3600
|
+
if Some(CONDENSE_MAP) == kind {
|
|
3601
|
+
let mut out = OrderedMap::new();
|
|
3602
|
+
for j in (1..enc.len()).step_by(2) {
|
|
3603
|
+
out.insert(
|
|
3604
|
+
js_string(&condense_at(sym, condense_index(&enc[j]))),
|
|
3605
|
+
rebuild(sym, node, condense_index(&arg(j + 1))),
|
|
3606
|
+
);
|
|
3607
|
+
}
|
|
3608
|
+
return Value::map(out);
|
|
3609
|
+
}
|
|
3610
|
+
if Some(CONDENSE_LIST) == kind {
|
|
3611
|
+
return Value::list(
|
|
3612
|
+
enc.iter()
|
|
3613
|
+
.skip(1)
|
|
3614
|
+
.map(|e| rebuild(sym, node, condense_index(e)))
|
|
3615
|
+
.collect(),
|
|
3616
|
+
);
|
|
3617
|
+
}
|
|
3618
|
+
if Some(CONDENSE_STR) == kind {
|
|
3619
|
+
return condense_at(sym, condense_index(&arg(1)));
|
|
3620
|
+
}
|
|
3621
|
+
if Some(CONDENSE_NUM) == kind {
|
|
3622
|
+
return arg(1);
|
|
3623
|
+
}
|
|
3624
|
+
if Some(CONDENSE_TRUE) == kind {
|
|
3625
|
+
return Value::Bool(true);
|
|
3626
|
+
}
|
|
3627
|
+
if Some(CONDENSE_FALSE) == kind {
|
|
3628
|
+
return Value::Bool(false);
|
|
3629
|
+
}
|
|
3630
|
+
Value::Null
|
|
3631
|
+
}
|
|
3632
|
+
|
|
3633
|
+
let sym = lookup(cond, &Value::str(S_condsym));
|
|
3634
|
+
let node = lookup(cond, &Value::str(S_condnode));
|
|
3635
|
+
if 0 > idx {
|
|
3636
|
+
Value::Noval
|
|
3637
|
+
} else {
|
|
3638
|
+
rebuild(&sym, &node, idx)
|
|
3639
|
+
}
|
|
3640
|
+
}
|
|
3641
|
+
|
|
3642
|
+
/// `expand(cond)` — the value a condensed structure stands for. Any other
|
|
3643
|
+
/// value comes back unchanged, so a caller holding either shape can call it.
|
|
3644
|
+
pub fn expand(cond: &Value) -> Value {
|
|
3645
|
+
if !is_condensed(cond) {
|
|
3646
|
+
return cond.clone();
|
|
3647
|
+
}
|
|
3648
|
+
condense_materialise(cond, condense_root(cond))
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3651
|
+
/// The keys of node `idx`, without materialising any of its values.
|
|
3652
|
+
fn condense_keys(cond: &Value, idx: i64) -> Value {
|
|
3653
|
+
let enc = condense_enc(cond, idx);
|
|
3654
|
+
let Value::List(enc) = &enc else {
|
|
3655
|
+
return Value::empty_list();
|
|
3656
|
+
};
|
|
3657
|
+
let enc = enc.borrow();
|
|
3658
|
+
let kind = enc.first().and_then(Value::as_num);
|
|
3659
|
+
|
|
3660
|
+
if Some(CONDENSE_MAP) == kind {
|
|
3661
|
+
let sym = lookup(cond, &Value::str(S_condsym));
|
|
3662
|
+
return Value::list(
|
|
3663
|
+
enc.iter()
|
|
3664
|
+
.skip(1)
|
|
3665
|
+
.step_by(2)
|
|
3666
|
+
.map(|k| condense_at(&sym, condense_index(k)))
|
|
3667
|
+
.collect(),
|
|
3668
|
+
);
|
|
3669
|
+
}
|
|
3670
|
+
if Some(CONDENSE_LIST) == kind {
|
|
3671
|
+
return Value::list(
|
|
3672
|
+
(1..enc.len())
|
|
3673
|
+
.map(|j| Value::str((j - 1).to_string()))
|
|
3674
|
+
.collect(),
|
|
3675
|
+
);
|
|
3676
|
+
}
|
|
3677
|
+
Value::empty_list()
|
|
3678
|
+
}
|
|
3679
|
+
|
|
3680
|
+
/// A cursor into a condensed structure. Reads resolve by integer index and
|
|
3681
|
+
/// touch only the nodes on the path, so the cost of a lookup follows path depth
|
|
3682
|
+
/// and result size, never total structure size.
|
|
3683
|
+
#[derive(Clone)]
|
|
3684
|
+
pub struct CondenseView {
|
|
3685
|
+
cond: Value,
|
|
3686
|
+
start: i64,
|
|
3687
|
+
refmemo: Value,
|
|
3688
|
+
}
|
|
3689
|
+
|
|
3690
|
+
/// `condenseview(cond, idx?, memo?)` — a cursor at node `idx`, else at the
|
|
3691
|
+
/// root of `cond`.
|
|
3692
|
+
pub fn condense_view(cond: &Value, idx: Option<i64>, memo: Option<&Value>) -> CondenseView {
|
|
3693
|
+
let start = match idx {
|
|
3694
|
+
Some(i) => i,
|
|
3695
|
+
None if is_condensed(cond) => condense_root(cond),
|
|
3696
|
+
None => -1,
|
|
3697
|
+
};
|
|
3698
|
+
|
|
3699
|
+
// Shared materialisations, handed out only by `ref`. Threaded through `at`,
|
|
3700
|
+
// so every cursor into one structure shares one memo.
|
|
3701
|
+
let refmemo = match memo {
|
|
3702
|
+
Some(m) if !m.is_nullish() => m.clone(),
|
|
3703
|
+
_ => Value::empty_map(),
|
|
3704
|
+
};
|
|
3705
|
+
|
|
3706
|
+
CondenseView {
|
|
3707
|
+
cond: cond.clone(),
|
|
3708
|
+
start,
|
|
3709
|
+
refmemo,
|
|
3710
|
+
}
|
|
3711
|
+
}
|
|
3712
|
+
|
|
3713
|
+
impl CondenseView {
|
|
3714
|
+
/// The value at `path`, materialised: a container comes back as an
|
|
3715
|
+
/// independent copy.
|
|
3716
|
+
pub fn get(&self, path: &Value) -> Value {
|
|
3717
|
+
condense_materialise(&self.cond, condense_resolve(&self.cond, self.start, path))
|
|
3718
|
+
}
|
|
3719
|
+
|
|
3720
|
+
/// The key names at `path`, with no value decoded.
|
|
3721
|
+
pub fn keys(&self, path: &Value) -> Value {
|
|
3722
|
+
let at = condense_resolve(&self.cond, self.start, path);
|
|
3723
|
+
if 0 > at {
|
|
3724
|
+
Value::empty_list()
|
|
3725
|
+
} else {
|
|
3726
|
+
condense_keys(&self.cond, at)
|
|
3727
|
+
}
|
|
3728
|
+
}
|
|
3729
|
+
|
|
3730
|
+
pub fn has(&self, path: &Value) -> bool {
|
|
3731
|
+
0 <= condense_resolve(&self.cond, self.start, path)
|
|
3732
|
+
}
|
|
3733
|
+
|
|
3734
|
+
/// A cursor at `path`, sharing this view's memo. Nothing is decoded.
|
|
3735
|
+
pub fn at(&self, path: &Value) -> CondenseView {
|
|
3736
|
+
let idx = condense_resolve(&self.cond, self.start, path);
|
|
3737
|
+
condense_view(&self.cond, Some(idx), Some(&self.refmemo))
|
|
3738
|
+
}
|
|
3739
|
+
|
|
3740
|
+
pub fn value(&self) -> Value {
|
|
3741
|
+
condense_materialise(&self.cond, self.start)
|
|
3742
|
+
}
|
|
3743
|
+
|
|
3744
|
+
pub fn size(&self) -> i64 {
|
|
3745
|
+
let enc = condense_enc(&self.cond, self.start);
|
|
3746
|
+
let Value::List(enc) = &enc else {
|
|
3747
|
+
return 0;
|
|
3748
|
+
};
|
|
3749
|
+
let enc = enc.borrow();
|
|
3750
|
+
let len = enc.len() as i64;
|
|
3751
|
+
let kind = enc.first().and_then(Value::as_num);
|
|
3752
|
+
if Some(CONDENSE_MAP) == kind {
|
|
3753
|
+
(len - 1) / 2
|
|
3754
|
+
} else if Some(CONDENSE_LIST) == kind {
|
|
3755
|
+
len - 1
|
|
3756
|
+
} else {
|
|
3757
|
+
0
|
|
3758
|
+
}
|
|
3759
|
+
}
|
|
3760
|
+
|
|
3761
|
+
pub fn exists(&self) -> bool {
|
|
3762
|
+
0 <= self.start
|
|
3763
|
+
}
|
|
3764
|
+
|
|
3765
|
+
/// Unlike `value` and `get`, a SHARED materialisation: the same node every
|
|
3766
|
+
/// time for the same index, across views sharing the memo. Mutating it
|
|
3767
|
+
/// changes what every other such reader sees.
|
|
3768
|
+
pub fn r#ref(&self) -> Value {
|
|
3769
|
+
let k = Value::str(self.start.to_string());
|
|
3770
|
+
if lookup(&self.refmemo, &k).is_noval() {
|
|
3771
|
+
set_prop(
|
|
3772
|
+
self.refmemo.clone(),
|
|
3773
|
+
&k,
|
|
3774
|
+
condense_materialise(&self.cond, self.start),
|
|
3775
|
+
);
|
|
3776
|
+
}
|
|
3777
|
+
lookup(&self.refmemo, &k)
|
|
3778
|
+
}
|
|
3779
|
+
}
|
|
3780
|
+
|
|
2680
3781
|
// keep `Injection::has_handler` referenced (used once staging is complete)
|
|
2681
3782
|
#[allow(dead_code)]
|
|
2682
3783
|
fn _keepalive() {
|