@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,23 +1,30 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
1
|
+
// VENDORED: @voxgig/struct 0.1.1 (java/src/Struct.java)
|
|
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.
|
|
3
4
|
package SCALAPACKAGE.utility.struct;
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
import java.net.URLEncoder;
|
|
7
8
|
import java.nio.charset.StandardCharsets;
|
|
8
9
|
import java.util.ArrayList;
|
|
10
|
+
import java.util.Arrays;
|
|
9
11
|
import java.util.Collections;
|
|
10
12
|
import java.util.Comparator;
|
|
13
|
+
import java.util.HashMap;
|
|
14
|
+
import java.util.HashSet;
|
|
11
15
|
import java.util.IdentityHashMap;
|
|
12
16
|
import java.util.LinkedHashMap;
|
|
13
17
|
import java.util.List;
|
|
14
18
|
import java.util.Locale;
|
|
15
19
|
import java.util.Map;
|
|
16
20
|
import java.util.Objects;
|
|
21
|
+
import java.util.Set;
|
|
22
|
+
import java.util.StringJoiner;
|
|
17
23
|
import java.util.function.Function;
|
|
18
24
|
import java.util.function.Supplier;
|
|
19
25
|
import java.util.regex.Matcher;
|
|
20
26
|
import java.util.regex.Pattern;
|
|
27
|
+
import java.util.regex.PatternSyntaxException;
|
|
21
28
|
|
|
22
29
|
@SuppressWarnings({"unchecked", "rawtypes"})
|
|
23
30
|
public class Struct {
|
|
@@ -77,6 +84,7 @@ public class Struct {
|
|
|
77
84
|
|
|
78
85
|
private static final Pattern R_META_PATH = Pattern.compile("^([^$]+)\\$([=~])(.+)$");
|
|
79
86
|
private static final Pattern R_INJECT_FULL = Pattern.compile("^`(\\$[A-Z]+|[^`]*)[0-9]*`$");
|
|
87
|
+
private static final Pattern R_CHECKER_NAME = Pattern.compile("^\\$[A-Z]+$");
|
|
80
88
|
private static final Pattern R_INJECT_PART = Pattern.compile("`([^`]+)`");
|
|
81
89
|
private static final Pattern R_CMD_KEY = Pattern.compile("^`(\\$[A-Z]+)(\\d*)`$");
|
|
82
90
|
private static final Pattern R_BT_ESCAPE = Pattern.compile("\\$BT");
|
|
@@ -84,6 +92,7 @@ public class Struct {
|
|
|
84
92
|
private static final Pattern R_TRANSFORM_NAME = Pattern.compile("`\\$([A-Z]+)`");
|
|
85
93
|
private static final Pattern R_DOUBLE_DOLLAR = Pattern.compile("\\$\\$");
|
|
86
94
|
private static final Pattern R_CLONE_REF = Pattern.compile("^`\\$REF:([0-9]+)`$");
|
|
95
|
+
private static final Pattern R_LIST_INDEX = Pattern.compile("^(0|-?[1-9][0-9]*)$");
|
|
87
96
|
|
|
88
97
|
/**
|
|
89
98
|
* Sentinel returned from a transform/inject step to omit the current key.
|
|
@@ -360,25 +369,19 @@ public class Struct {
|
|
|
360
369
|
return alt;
|
|
361
370
|
}
|
|
362
371
|
|
|
363
|
-
|
|
364
|
-
if (idx == null || !isIntegerKeyString(key)) {
|
|
365
|
-
if (alt instanceof Function<?, ?> f) {
|
|
366
|
-
return ((Function<Object, Object>) f).apply(null);
|
|
367
|
-
}
|
|
368
|
-
return alt;
|
|
369
|
-
}
|
|
370
|
-
|
|
372
|
+
double idx = listIndex(key);
|
|
371
373
|
if (idx < 0) {
|
|
372
|
-
|
|
374
|
+
// A negative key counts from the end.
|
|
375
|
+
idx += list.size();
|
|
373
376
|
}
|
|
374
|
-
if (
|
|
377
|
+
if (!(0 <= idx && idx < list.size())) {
|
|
375
378
|
if (alt instanceof Function<?, ?> f) {
|
|
376
379
|
return ((Function<Object, Object>) f).apply(null);
|
|
377
380
|
}
|
|
378
381
|
return alt;
|
|
379
382
|
}
|
|
380
383
|
|
|
381
|
-
Object out = list.get(idx);
|
|
384
|
+
Object out = list.get((int) idx);
|
|
382
385
|
// Group A null-unification: a JSON null (or absent) slot counts as "no
|
|
383
386
|
// value" — return the alt. Mirrors canonical TS getelem `if (null == out)`.
|
|
384
387
|
if (out == null || out == UNDEF) {
|
|
@@ -402,14 +405,14 @@ public class Struct {
|
|
|
402
405
|
Object out = UNDEF;
|
|
403
406
|
|
|
404
407
|
if (val instanceof Map<?, ?> m) {
|
|
405
|
-
String sk =
|
|
406
|
-
if (m.containsKey(sk)) {
|
|
408
|
+
String sk = mapKey(key);
|
|
409
|
+
if (null != sk && m.containsKey(sk)) {
|
|
407
410
|
out = ((Map<Object, Object>) m).get(sk);
|
|
408
411
|
}
|
|
409
412
|
} else if (val instanceof List<?> l) {
|
|
410
|
-
|
|
411
|
-
if (
|
|
412
|
-
out = l.get(idx);
|
|
413
|
+
double idx = listIndex(key);
|
|
414
|
+
if (0 <= idx && idx < l.size()) {
|
|
415
|
+
out = l.get((int) idx);
|
|
413
416
|
}
|
|
414
417
|
}
|
|
415
418
|
|
|
@@ -436,28 +439,41 @@ public class Struct {
|
|
|
436
439
|
return UNDEF;
|
|
437
440
|
}
|
|
438
441
|
if (val instanceof Map<?, ?> m) {
|
|
439
|
-
String sk =
|
|
440
|
-
return m.containsKey(sk) ? ((Map<Object, Object>) m).get(sk) : UNDEF;
|
|
442
|
+
String sk = mapKey(key);
|
|
443
|
+
return null != sk && m.containsKey(sk) ? ((Map<Object, Object>) m).get(sk) : UNDEF;
|
|
441
444
|
}
|
|
442
445
|
if (val instanceof List<?> l) {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
return UNDEF;
|
|
446
|
-
}
|
|
447
|
-
int i = idx < 0 ? l.size() + idx : idx;
|
|
448
|
-
if (i < 0 || i >= l.size()) {
|
|
449
|
-
return UNDEF;
|
|
450
|
-
}
|
|
451
|
-
return l.get(i);
|
|
446
|
+
double idx = listIndex(key);
|
|
447
|
+
return 0 <= idx && idx < l.size() ? l.get((int) idx) : UNDEF;
|
|
452
448
|
}
|
|
453
449
|
return UNDEF;
|
|
454
450
|
}
|
|
455
451
|
|
|
452
|
+
// The key a map read takes, or null for one that is neither a string nor a
|
|
453
|
+
// number, which misses.
|
|
454
|
+
private static String mapKey(Object key) {
|
|
455
|
+
return key instanceof String || key instanceof Number ? strkey(key) : null;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
// A list key's index, or NaN: an integral number, or the string String(n)
|
|
459
|
+
// prints for one, negative or not ("01", "+1", "1.0" and "-0" are not).
|
|
460
|
+
private static double listIndex(Object key) {
|
|
461
|
+
if (key instanceof Number n) {
|
|
462
|
+
double d = n.doubleValue();
|
|
463
|
+
return Double.isFinite(d) && Math.floor(d) == d ? d : Double.NaN;
|
|
464
|
+
}
|
|
465
|
+
return key instanceof String s && R_LIST_INDEX.matcher(s).matches() ? Double.parseDouble(s) : Double.NaN;
|
|
466
|
+
}
|
|
467
|
+
|
|
456
468
|
public static Object setprop(Object parent, Object key, Object val) {
|
|
457
469
|
if (!iskey(key)) {
|
|
458
470
|
return parent;
|
|
459
471
|
}
|
|
460
472
|
|
|
473
|
+
if (iscondensed(parent)) {
|
|
474
|
+
throw new IllegalArgumentException(CONDENSE_IMMUTABLE);
|
|
475
|
+
}
|
|
476
|
+
|
|
461
477
|
if (parent instanceof Map<?, ?>) {
|
|
462
478
|
Map<Object, Object> m = (Map<Object, Object>) parent;
|
|
463
479
|
m.put(strkey(key), val);
|
|
@@ -466,16 +482,14 @@ public class Struct {
|
|
|
466
482
|
|
|
467
483
|
if (parent instanceof List<?>) {
|
|
468
484
|
List<Object> l = (List<Object>) parent;
|
|
469
|
-
|
|
470
|
-
if (idx
|
|
485
|
+
double idx = listIndex(key);
|
|
486
|
+
if (Double.isNaN(idx)) {
|
|
471
487
|
return parent;
|
|
472
488
|
}
|
|
473
|
-
idx = (int) Math.floor(idx);
|
|
474
489
|
|
|
475
490
|
if (idx >= 0) {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
l.set(target, val);
|
|
491
|
+
if (idx < l.size()) {
|
|
492
|
+
l.set((int) idx, val);
|
|
479
493
|
} else {
|
|
480
494
|
l.add(val);
|
|
481
495
|
}
|
|
@@ -493,14 +507,18 @@ public class Struct {
|
|
|
493
507
|
return parent;
|
|
494
508
|
}
|
|
495
509
|
|
|
510
|
+
if (iscondensed(parent)) {
|
|
511
|
+
throw new IllegalArgumentException(CONDENSE_IMMUTABLE);
|
|
512
|
+
}
|
|
513
|
+
|
|
496
514
|
if (parent instanceof Map<?, ?> m) {
|
|
497
515
|
((Map<Object, Object>) m).remove(strkey(key));
|
|
498
516
|
return parent;
|
|
499
517
|
}
|
|
500
518
|
|
|
501
519
|
if (parent instanceof List<?> l) {
|
|
502
|
-
|
|
503
|
-
if (
|
|
520
|
+
double idx = listIndex(key);
|
|
521
|
+
if (0 <= idx && idx < l.size()) {
|
|
504
522
|
((List<Object>) l).remove((int) idx);
|
|
505
523
|
}
|
|
506
524
|
return parent;
|
|
@@ -509,30 +527,6 @@ public class Struct {
|
|
|
509
527
|
return parent;
|
|
510
528
|
}
|
|
511
529
|
|
|
512
|
-
public static boolean isIntegerKeyString(Object key) {
|
|
513
|
-
if (key instanceof Number) {
|
|
514
|
-
return true;
|
|
515
|
-
}
|
|
516
|
-
if (!(key instanceof String s)) {
|
|
517
|
-
return false;
|
|
518
|
-
}
|
|
519
|
-
return s.matches("^[-0-9]+$");
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
private static Integer parseIntKey(Object key) {
|
|
523
|
-
if (key instanceof Number n) {
|
|
524
|
-
return (int) Math.floor(n.doubleValue());
|
|
525
|
-
}
|
|
526
|
-
if (key instanceof String s) {
|
|
527
|
-
try {
|
|
528
|
-
return Integer.parseInt(s);
|
|
529
|
-
} catch (Exception e) {
|
|
530
|
-
return null;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
return null;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
530
|
public static Object clone(Object val) {
|
|
537
531
|
return cloneInner(val, new IdentityHashMap<>());
|
|
538
532
|
}
|
|
@@ -1086,6 +1080,10 @@ public class Struct {
|
|
|
1086
1080
|
}
|
|
1087
1081
|
|
|
1088
1082
|
public static Object setpath(Object store, Object path, Object val) {
|
|
1083
|
+
if (iscondensed(store)) {
|
|
1084
|
+
throw new IllegalArgumentException(CONDENSE_IMMUTABLE);
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1089
1087
|
List<Object> parts;
|
|
1090
1088
|
if (path instanceof List<?> l) {
|
|
1091
1089
|
parts = new ArrayList<>(l);
|
|
@@ -1266,6 +1264,22 @@ public class Struct {
|
|
|
1266
1264
|
|
|
1267
1265
|
public static Object getpath(Object store, Object path, Map<String, Object> inj) {
|
|
1268
1266
|
List<String> parts = pathParts(path);
|
|
1267
|
+
if (null == parts) {
|
|
1268
|
+
return UNDEF;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
// A condensed store answers as the node it was built from, touching only
|
|
1272
|
+
// the nodes on the path. A base changes what the path resolves against,
|
|
1273
|
+
// so that read needs the materialised store.
|
|
1274
|
+
if (iscondensed(store)) {
|
|
1275
|
+
if (null == inj || UNDEF == getprop(inj, "base")) {
|
|
1276
|
+
Object found = condenseMaterialise(store, condenseResolve(store, condenseRoot(store), parts));
|
|
1277
|
+
// Group A: a stored null reads as absent, as it does through getprop.
|
|
1278
|
+
return null == found ? UNDEF : found;
|
|
1279
|
+
}
|
|
1280
|
+
store = expand(store);
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1269
1283
|
Object val = getpathInner(store, path, parts, inj);
|
|
1270
1284
|
if (inj != null) {
|
|
1271
1285
|
Object handlerObj = inj.get("handler");
|
|
@@ -1301,6 +1315,8 @@ public class Struct {
|
|
|
1301
1315
|
return pathify(path);
|
|
1302
1316
|
}
|
|
1303
1317
|
|
|
1318
|
+
// A new list, so the caller's path is never rewritten; null when it is no
|
|
1319
|
+
// path, or names a part that is neither a string nor a number.
|
|
1304
1320
|
private static List<String> pathParts(Object path) {
|
|
1305
1321
|
if (path instanceof String s) {
|
|
1306
1322
|
if (s.isEmpty()) {
|
|
@@ -1308,15 +1324,18 @@ public class Struct {
|
|
|
1308
1324
|
}
|
|
1309
1325
|
return new ArrayList<>(List.of(s.split("\\.", -1)));
|
|
1310
1326
|
}
|
|
1327
|
+
if (path instanceof Number n) {
|
|
1328
|
+
return new ArrayList<>(List.of(jsString(n)));
|
|
1329
|
+
}
|
|
1311
1330
|
if (path instanceof List<?> l) {
|
|
1312
1331
|
List<String> out = new ArrayList<>();
|
|
1313
1332
|
for (Object x : l) {
|
|
1314
|
-
if (x instanceof String) {
|
|
1315
|
-
out.add(
|
|
1333
|
+
if (x instanceof String s) {
|
|
1334
|
+
out.add(s);
|
|
1316
1335
|
} else if (x instanceof Number n) {
|
|
1317
|
-
out.add(
|
|
1336
|
+
out.add(jsString(n));
|
|
1318
1337
|
} else {
|
|
1319
|
-
|
|
1338
|
+
return null;
|
|
1320
1339
|
}
|
|
1321
1340
|
}
|
|
1322
1341
|
return out;
|
|
@@ -1325,10 +1344,6 @@ public class Struct {
|
|
|
1325
1344
|
}
|
|
1326
1345
|
|
|
1327
1346
|
private static Object getpathInner(Object store, Object pathOrig, List<String> parts, Map<String, Object> inj) {
|
|
1328
|
-
if (parts == null) {
|
|
1329
|
-
return null;
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
1347
|
Object base = inj != null ? inj.get("base") : null;
|
|
1333
1348
|
Object src = getprop(store, base, store);
|
|
1334
1349
|
Object dparent = inj != null ? inj.get("dparent") : null;
|
|
@@ -1415,7 +1430,7 @@ public class Struct {
|
|
|
1415
1430
|
if (ascends <= size(dpath)) {
|
|
1416
1431
|
val = getpath(store, fullpath);
|
|
1417
1432
|
} else {
|
|
1418
|
-
val =
|
|
1433
|
+
val = UNDEF;
|
|
1419
1434
|
}
|
|
1420
1435
|
break;
|
|
1421
1436
|
}
|
|
@@ -1505,6 +1520,8 @@ public class Struct {
|
|
|
1505
1520
|
|
|
1506
1521
|
inj.descend();
|
|
1507
1522
|
|
|
1523
|
+
inj.named = false;
|
|
1524
|
+
|
|
1508
1525
|
if (isnode(val)) {
|
|
1509
1526
|
List<String> nodekeys = keysof(val);
|
|
1510
1527
|
|
|
@@ -1523,6 +1540,7 @@ public class Struct {
|
|
|
1523
1540
|
nodekeys = new ArrayList<>(nonDollar.size() + dollar.size());
|
|
1524
1541
|
nodekeys.addAll(nonDollar);
|
|
1525
1542
|
nodekeys.addAll(dollar);
|
|
1543
|
+
inj.named = !nonDollar.isEmpty();
|
|
1526
1544
|
}
|
|
1527
1545
|
|
|
1528
1546
|
for (int nkI = 0; nkI < nodekeys.size(); nkI++) {
|
|
@@ -1549,6 +1567,23 @@ public class Struct {
|
|
|
1549
1567
|
nodekeys = childinj.keys;
|
|
1550
1568
|
}
|
|
1551
1569
|
}
|
|
1570
|
+
|
|
1571
|
+
if (val instanceof List<?> l) {
|
|
1572
|
+
List<Object> list = (List<Object>) l;
|
|
1573
|
+
int kept = 0;
|
|
1574
|
+
for (int i = 0; i < list.size(); i++) {
|
|
1575
|
+
Object item = list.get(i);
|
|
1576
|
+
if (item != SKIP) {
|
|
1577
|
+
if (kept != i) {
|
|
1578
|
+
list.set(kept, item);
|
|
1579
|
+
}
|
|
1580
|
+
kept++;
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
while (list.size() > kept) {
|
|
1584
|
+
list.remove(list.size() - 1);
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1552
1587
|
} else if (val instanceof String s) {
|
|
1553
1588
|
inj.mode = M_VAL;
|
|
1554
1589
|
Object newVal = _injectstr(s, store, inj);
|
|
@@ -1562,7 +1597,7 @@ public class Struct {
|
|
|
1562
1597
|
Object mkey = inj.key;
|
|
1563
1598
|
Object mparent = inj.parent;
|
|
1564
1599
|
Object mval = getprop(mparent, mkey);
|
|
1565
|
-
inj.modify.apply(mval, mkey, mparent, inj, store);
|
|
1600
|
+
inj.modify.apply(SKIP == mval ? UNDEF : mval, mkey, mparent, inj, store);
|
|
1566
1601
|
}
|
|
1567
1602
|
|
|
1568
1603
|
inj.val = val;
|
|
@@ -1627,7 +1662,9 @@ public class Struct {
|
|
|
1627
1662
|
* can hook command dispatch.
|
|
1628
1663
|
*/
|
|
1629
1664
|
public static Object getpath(Object store, Object path, Injection inj) {
|
|
1630
|
-
|
|
1665
|
+
// No path, or a condensed read without a base, returns before any handler
|
|
1666
|
+
// runs, as in canonical.
|
|
1667
|
+
if (inj == null || null == pathParts(path) || (inj.base == null && iscondensed(store))) {
|
|
1631
1668
|
return getpath(store, path, (Map<String, Object>) null);
|
|
1632
1669
|
}
|
|
1633
1670
|
Map<String, Object> view = new LinkedHashMap<>();
|
|
@@ -2353,7 +2390,7 @@ public class Struct {
|
|
|
2353
2390
|
if (!(injObj instanceof Injection inj)) return UNDEF;
|
|
2354
2391
|
if (inj.mode != M_VAL) return UNDEF;
|
|
2355
2392
|
|
|
2356
|
-
// Group B:
|
|
2393
|
+
// Group B: ['`$REF`','ref-path'] read raw; a relative path starts where this slot is, so .x is a sibling.
|
|
2357
2394
|
Object refpath = lookup(inj.parent, 1);
|
|
2358
2395
|
inj.keyI = size(inj.keys);
|
|
2359
2396
|
|
|
@@ -2366,7 +2403,7 @@ public class Struct {
|
|
|
2366
2403
|
spec = specHolder;
|
|
2367
2404
|
}
|
|
2368
2405
|
|
|
2369
|
-
Object dpathRaw = slice(inj.path, 1,
|
|
2406
|
+
Object dpathRaw = slice(inj.path, 1, -2);
|
|
2370
2407
|
List<String> dpath =
|
|
2371
2408
|
dpathRaw instanceof List<?> dl
|
|
2372
2409
|
? new ArrayList<>((List<String>) dl)
|
|
@@ -2377,6 +2414,19 @@ public class Struct {
|
|
|
2377
2414
|
refInj.handler = _injecthandler;
|
|
2378
2415
|
Object refResolved = getpath(spec, refpath, refInj);
|
|
2379
2416
|
|
|
2417
|
+
// A chain of references that comes back to a path it has named names nothing.
|
|
2418
|
+
List<Object> seen = new ArrayList<>();
|
|
2419
|
+
seen.add(refpath);
|
|
2420
|
+
for (Object next = refResolved; islist(next) && "`$REF`".equals(lookup(next, 0)); ) {
|
|
2421
|
+
Object nextpath = lookup(next, 1);
|
|
2422
|
+
if (seen.contains(nextpath)) {
|
|
2423
|
+
refResolved = UNDEF;
|
|
2424
|
+
break;
|
|
2425
|
+
}
|
|
2426
|
+
seen.add(nextpath);
|
|
2427
|
+
next = getpath(spec, nextpath, refInj);
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2380
2430
|
Object tref = clone(refResolved);
|
|
2381
2431
|
|
|
2382
2432
|
boolean[] hasSubRef = {false};
|
|
@@ -2389,47 +2439,23 @@ public class Struct {
|
|
|
2389
2439
|
});
|
|
2390
2440
|
}
|
|
2391
2441
|
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
? new ArrayList<>((List<String>) cl)
|
|
2396
|
-
: new ArrayList<>();
|
|
2397
|
-
Object tpathRaw = slice(inj.path, -1, null);
|
|
2398
|
-
List<String> tpath =
|
|
2399
|
-
tpathRaw instanceof List<?> tpl
|
|
2400
|
-
? new ArrayList<>((List<String>) tpl)
|
|
2401
|
-
: new ArrayList<>();
|
|
2402
|
-
Object tval = getpath(store, tpath);
|
|
2403
|
-
Object rval = UNDEF;
|
|
2404
|
-
|
|
2405
|
-
if (!hasSubRef[0] || tval != UNDEF) {
|
|
2406
|
-
Object lastKey = getelem(tpath, -1);
|
|
2407
|
-
List<String> singleKey = new ArrayList<>();
|
|
2408
|
-
singleKey.add(strkey(lastKey));
|
|
2409
|
-
Injection tinj = inj.child(0, singleKey);
|
|
2410
|
-
tinj.path = tpath;
|
|
2411
|
-
Object slicedNodes = slice(inj.nodes, -1, null);
|
|
2412
|
-
tinj.nodes =
|
|
2413
|
-
slicedNodes instanceof List<?> snl
|
|
2414
|
-
? new ArrayList<>((List<Object>) snl)
|
|
2415
|
-
: new ArrayList<>();
|
|
2416
|
-
tinj.parent = getelem(inj.nodes, -2);
|
|
2417
|
-
tinj.val = tref;
|
|
2418
|
-
|
|
2419
|
-
List<String> flatCpath = new ArrayList<>(cpath);
|
|
2420
|
-
tinj.dpath = flatCpath;
|
|
2421
|
-
tinj.dparent = getpath(store, cpath);
|
|
2422
|
-
|
|
2423
|
-
inject(tref, store, tinj);
|
|
2424
|
-
rval = tinj.val;
|
|
2425
|
-
}
|
|
2442
|
+
// A recursive reference stops where the data does.
|
|
2443
|
+
Object tval = getpath(store, slice(inj.path, -1, null));
|
|
2444
|
+
Object rval = !hasSubRef[0] || tval != UNDEF ? tref : UNDEF;
|
|
2426
2445
|
|
|
2446
|
+
// The enclosing loop injects the referenced spec in this list's place, so
|
|
2447
|
+
// neither this pass nor this element leaves a value for modify to check.
|
|
2427
2448
|
Object grandparent = inj.setval(rval, 2);
|
|
2428
|
-
|
|
2429
|
-
|
|
2449
|
+
|
|
2450
|
+
Injection prior = inj.prior;
|
|
2451
|
+
if (prior != null) {
|
|
2452
|
+
prior.modify = null;
|
|
2453
|
+
if (islist(grandparent) || rval != UNDEF) {
|
|
2454
|
+
prior.keyI--;
|
|
2455
|
+
}
|
|
2430
2456
|
}
|
|
2431
2457
|
|
|
2432
|
-
return
|
|
2458
|
+
return SKIP;
|
|
2433
2459
|
};
|
|
2434
2460
|
|
|
2435
2461
|
public static Object transform(Object data, Object spec) {
|
|
@@ -2539,11 +2565,11 @@ public class Struct {
|
|
|
2539
2565
|
int t = typify(out);
|
|
2540
2566
|
if ((T_string & t) == 0) {
|
|
2541
2567
|
inj.errs.add(_invalidTypeMsg(inj.path, "string", t, out, "V1010"));
|
|
2542
|
-
return
|
|
2568
|
+
return out;
|
|
2543
2569
|
}
|
|
2544
2570
|
if ("".equals(out)) {
|
|
2545
2571
|
inj.errs.add("Empty string at " + pathify(inj.path, 1));
|
|
2546
|
-
return
|
|
2572
|
+
return out;
|
|
2547
2573
|
}
|
|
2548
2574
|
return out;
|
|
2549
2575
|
};
|
|
@@ -2561,13 +2587,14 @@ public class Struct {
|
|
|
2561
2587
|
}
|
|
2562
2588
|
}
|
|
2563
2589
|
if (idx < 0) return UNDEF;
|
|
2564
|
-
|
|
2590
|
+
// $NIL is absent or null.
|
|
2591
|
+
int typev = (1 << (31 - idx)) | ("nil".equals(tname) ? T_null : 0);
|
|
2565
2592
|
// Group B: type-check the raw data value (TS _lookup(dparent,key)).
|
|
2566
2593
|
Object out = lookup(inj.dparent, inj.key);
|
|
2567
2594
|
int t = typify(out);
|
|
2568
2595
|
if ((t & typev) == 0) {
|
|
2569
2596
|
inj.errs.add(_invalidTypeMsg(inj.path, tname, t, out, "V1001"));
|
|
2570
|
-
return
|
|
2597
|
+
return out;
|
|
2571
2598
|
}
|
|
2572
2599
|
return out;
|
|
2573
2600
|
};
|
|
@@ -2599,8 +2626,7 @@ public class Struct {
|
|
|
2599
2626
|
if (tval == UNDEF || tval == null) {
|
|
2600
2627
|
tval = new LinkedHashMap<>();
|
|
2601
2628
|
} else if (!ismap(tval)) {
|
|
2602
|
-
|
|
2603
|
-
inj.errs.add(_invalidTypeMsg(sp, "object", typify(tval), tval, "V0220"));
|
|
2629
|
+
// _validation reports the mismatch, once.
|
|
2604
2630
|
return UNDEF;
|
|
2605
2631
|
}
|
|
2606
2632
|
|
|
@@ -2627,9 +2653,6 @@ public class Struct {
|
|
|
2627
2653
|
}
|
|
2628
2654
|
|
|
2629
2655
|
if (!islist(inj.dparent)) {
|
|
2630
|
-
Object sp = slice(inj.path, -1, null);
|
|
2631
|
-
inj.errs.add(
|
|
2632
|
-
_invalidTypeMsg(sp, "list", typify(inj.dparent), inj.dparent, "V0230"));
|
|
2633
2656
|
inj.keyI = size(inj.parent);
|
|
2634
2657
|
return inj.dparent;
|
|
2635
2658
|
}
|
|
@@ -2640,105 +2663,108 @@ public class Struct {
|
|
|
2640
2663
|
setprop(pl, i, clone(childtm));
|
|
2641
2664
|
}
|
|
2642
2665
|
while (pl.size() > dpl.size()) pl.remove(pl.size() - 1);
|
|
2643
|
-
inj.keyI = 0;
|
|
2644
2666
|
|
|
2645
|
-
|
|
2667
|
+
// NOTE: modifying inj! This extends the child value loop in inject
|
|
2668
|
+
// to cover every cloned child.
|
|
2669
|
+
for (int ckeyI = size(inj.keys); ckeyI < size(pl); ckeyI++) {
|
|
2670
|
+
inj.keys.add(strkey(ckeyI));
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
// Restart the child value loop at the first element (the loop
|
|
2674
|
+
// increments keyI on resume) so that the first element is also
|
|
2675
|
+
// validated against the child template.
|
|
2676
|
+
inj.keyI = -1;
|
|
2677
|
+
|
|
2678
|
+
// SKIP leaves the cloned child template in place at the first
|
|
2679
|
+
// element so the resumed loop can validate it.
|
|
2680
|
+
return SKIP;
|
|
2646
2681
|
}
|
|
2647
2682
|
|
|
2648
2683
|
return UNDEF;
|
|
2649
2684
|
};
|
|
2650
2685
|
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
*/
|
|
2655
|
-
public static final Injector validate_ONE =
|
|
2686
|
+
// The members a spec does not name: the map form is a key, the list form a
|
|
2687
|
+
// tuple's last item. Each places clones of its spec for the loop to check.
|
|
2688
|
+
public static final Injector validate_REST =
|
|
2656
2689
|
(injObj, val, ref, store) -> {
|
|
2657
2690
|
if (!(injObj instanceof Injection inj)) return UNDEF;
|
|
2658
|
-
if (inj.mode != M_VAL) return UNDEF;
|
|
2659
2691
|
|
|
2660
|
-
if (
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2692
|
+
if (inj.mode == M_KEYPRE) {
|
|
2693
|
+
// Group B: a null template is a spec, so it is read raw (TS _lookup(parent,key)).
|
|
2694
|
+
Object resttm = lookup(inj.parent, inj.key);
|
|
2695
|
+
Object tval = getprop(inj.dparent, getelem(inj.path, -2));
|
|
2696
|
+
|
|
2697
|
+
if (ismap(tval)) {
|
|
2698
|
+
for (String ckey : keysof(tval)) {
|
|
2699
|
+
if (!inj.keys.contains(ckey)) {
|
|
2700
|
+
setprop(inj.parent, ckey, clone(resttm));
|
|
2701
|
+
inj.keys.add(ckey);
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
inj.setval(UNDEF);
|
|
2707
|
+
return UNDEF;
|
|
2708
|
+
}
|
|
2709
|
+
|
|
2710
|
+
Injection prior = inj.prior;
|
|
2711
|
+
if (inj.mode != M_VAL || prior == null || !islist(prior.parent) || inj.keyI != 0) {
|
|
2712
|
+
inj.errs.add(_restmsg(slice(inj.path, 1, null), " must be the last element of an array."));
|
|
2665
2713
|
return UNDEF;
|
|
2666
2714
|
}
|
|
2667
2715
|
|
|
2668
2716
|
inj.keyI = size(inj.keys);
|
|
2669
|
-
|
|
2717
|
+
prior.modify = null;
|
|
2670
2718
|
|
|
2671
|
-
Object
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
: new ArrayList<>();
|
|
2676
|
-
inj.key = strkey(getelem(inj.path, -1));
|
|
2719
|
+
Object tuple = prior.parent;
|
|
2720
|
+
int slot = (int) listIndex(prior.key);
|
|
2721
|
+
Object dlist = prior.dparent;
|
|
2722
|
+
int numitems = islist(dlist) ? size(dlist) : 0;
|
|
2677
2723
|
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
? new ArrayList<>((List<Object>) tl)
|
|
2682
|
-
: new ArrayList<>();
|
|
2683
|
-
if (tvals.isEmpty()) {
|
|
2684
|
-
inj.errs.add(
|
|
2685
|
-
"The $ONE validator at field "
|
|
2686
|
-
+ pathify(inj.path, 1, 1)
|
|
2687
|
-
+ " must have at least one argument.");
|
|
2688
|
-
return UNDEF;
|
|
2724
|
+
if (numitems <= slot) {
|
|
2725
|
+
inj.setval(UNDEF, 2);
|
|
2726
|
+
return SKIP;
|
|
2689
2727
|
}
|
|
2690
2728
|
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
for (Map.Entry<?, ?> e : sm.entrySet()) {
|
|
2696
|
-
vstore.put(Objects.toString(e.getKey()), e.getValue());
|
|
2697
|
-
}
|
|
2698
|
-
}
|
|
2699
|
-
vstore.put(S_DTOP, inj.dparent);
|
|
2700
|
-
Map<String, Object> opts = new LinkedHashMap<>();
|
|
2701
|
-
opts.put("extra", vstore);
|
|
2702
|
-
opts.put("errs", terrs);
|
|
2703
|
-
opts.put("meta", inj.meta);
|
|
2704
|
-
Object vcurrent;
|
|
2705
|
-
try {
|
|
2706
|
-
vcurrent = validate(inj.dparent, tval, opts);
|
|
2707
|
-
} catch (Exception e) {
|
|
2708
|
-
terrs.add(e.getMessage());
|
|
2709
|
-
vcurrent = inj.dparent;
|
|
2710
|
-
}
|
|
2711
|
-
inj.setval(vcurrent, -2);
|
|
2712
|
-
if (terrs.isEmpty()) return UNDEF;
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2715
|
-
// No match; describe alternatives.
|
|
2716
|
-
StringBuilder valdesc = new StringBuilder();
|
|
2717
|
-
for (int i = 0; i < tvals.size(); i++) {
|
|
2718
|
-
if (i > 0) valdesc.append(", ");
|
|
2719
|
-
Object tv = tvals.get(i);
|
|
2720
|
-
if (tv instanceof String s) {
|
|
2721
|
-
Matcher m = R_TRANSFORM_NAME.matcher(s);
|
|
2722
|
-
if (m.matches()) {
|
|
2723
|
-
valdesc.append(m.group(1).toLowerCase(Locale.ROOT));
|
|
2724
|
-
continue;
|
|
2725
|
-
}
|
|
2726
|
-
}
|
|
2727
|
-
valdesc.append(stringify(tv));
|
|
2729
|
+
// Group B: the $REST spec is read raw (TS _lookup(parent,1)).
|
|
2730
|
+
Object resttm = lookup(inj.parent, 1);
|
|
2731
|
+
for (int i = slot; i < numitems; i++) {
|
|
2732
|
+
setprop(tuple, i, clone(resttm));
|
|
2728
2733
|
}
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
"V0210"));
|
|
2736
|
-
return UNDEF;
|
|
2734
|
+
for (int i = size(prior.keys); i < numitems; i++) {
|
|
2735
|
+
prior.keys.add(strkey(i));
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2738
|
+
prior.keyI--;
|
|
2739
|
+
return SKIP;
|
|
2737
2740
|
};
|
|
2738
2741
|
|
|
2742
|
+
private static String _restmsg(Object path, String problem) {
|
|
2743
|
+
return "The $REST validator at field " + pathify(path) + problem;
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
private static String _describeAlternatives(List<Object> tvals) {
|
|
2747
|
+
List<Object> parts = new ArrayList<>(tvals.size());
|
|
2748
|
+
for (Object tval : tvals) {
|
|
2749
|
+
parts.add(stringify(tval));
|
|
2750
|
+
}
|
|
2751
|
+
return _lowernames(join(parts, ", ", false));
|
|
2752
|
+
}
|
|
2753
|
+
|
|
2754
|
+
// Lowers every `$NAME` marker in the description, nested ones included.
|
|
2755
|
+
private static String _lowernames(String desc) {
|
|
2756
|
+
Matcher m = R_TRANSFORM_NAME.matcher(desc);
|
|
2757
|
+
StringBuilder out = new StringBuilder();
|
|
2758
|
+
while (m.find()) {
|
|
2759
|
+
m.appendReplacement(out, Matcher.quoteReplacement(m.group(1).toLowerCase(Locale.ROOT)));
|
|
2760
|
+
}
|
|
2761
|
+
m.appendTail(out);
|
|
2762
|
+
return out.toString();
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2739
2765
|
/**
|
|
2740
2766
|
* $EXACT: validate against any one of a list of literal alternatives.
|
|
2741
|
-
* Format: {@code [`$EXACT`, lit0, lit1, ...]}. Mirrors TS
|
|
2767
|
+
* Format: {@code [`$EXACT`, lit0, lit1, ...]}. Mirrors TS {@code validate_EXACT}.
|
|
2742
2768
|
*/
|
|
2743
2769
|
public static final Injector validate_EXACT =
|
|
2744
2770
|
(injObj, val, ref, store) -> {
|
|
@@ -2753,54 +2779,29 @@ public class Struct {
|
|
|
2753
2779
|
return UNDEF;
|
|
2754
2780
|
}
|
|
2755
2781
|
|
|
2782
|
+
Object cval = _slotval(inj);
|
|
2783
|
+
|
|
2756
2784
|
inj.keyI = size(inj.keys);
|
|
2757
|
-
inj.setval(inj.dparent, 2);
|
|
2758
2785
|
|
|
2759
|
-
|
|
2760
|
-
inj.
|
|
2761
|
-
slicedPath instanceof List<?> spl
|
|
2762
|
-
? new ArrayList<>((List<String>) spl)
|
|
2763
|
-
: new ArrayList<>();
|
|
2764
|
-
inj.key = strkey(getelem(inj.path, -1));
|
|
2786
|
+
// Replace [$EXACT, ...] with the data value; SKIP keeps inject off the detached list.
|
|
2787
|
+
inj.setval(cval, 2);
|
|
2765
2788
|
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
? new ArrayList<>((List<Object>) tl)
|
|
2770
|
-
: new ArrayList<>();
|
|
2789
|
+
inj.path = (List<String>) slice(inj.path, 0, -1);
|
|
2790
|
+
|
|
2791
|
+
List<Object> tvals = (List<Object>) slice(inj.parent, 1, null);
|
|
2771
2792
|
if (tvals.isEmpty()) {
|
|
2772
2793
|
inj.errs.add(
|
|
2773
2794
|
"The $EXACT validator at field "
|
|
2774
2795
|
+ pathify(inj.path, 1, 1)
|
|
2775
2796
|
+ " must have at least one argument.");
|
|
2776
|
-
return
|
|
2797
|
+
return SKIP;
|
|
2777
2798
|
}
|
|
2778
2799
|
|
|
2779
|
-
String currentstr = null;
|
|
2780
2800
|
for (Object tval : tvals) {
|
|
2781
|
-
|
|
2782
|
-
if (!exactmatch && isnode(tval)) {
|
|
2783
|
-
if (currentstr == null) currentstr = stringify(inj.dparent);
|
|
2784
|
-
String tvalstr = stringify(tval);
|
|
2785
|
-
exactmatch = tvalstr.equals(currentstr);
|
|
2786
|
-
}
|
|
2787
|
-
if (exactmatch) return UNDEF;
|
|
2801
|
+
if (_deepequal(tval, cval)) return SKIP;
|
|
2788
2802
|
}
|
|
2789
2803
|
|
|
2790
|
-
|
|
2791
|
-
StringBuilder valdesc = new StringBuilder();
|
|
2792
|
-
for (int i = 0; i < tvals.size(); i++) {
|
|
2793
|
-
if (i > 0) valdesc.append(", ");
|
|
2794
|
-
Object tv = tvals.get(i);
|
|
2795
|
-
if (tv instanceof String s) {
|
|
2796
|
-
Matcher m = R_TRANSFORM_NAME.matcher(s);
|
|
2797
|
-
if (m.matches()) {
|
|
2798
|
-
valdesc.append(m.group(1).toLowerCase(Locale.ROOT));
|
|
2799
|
-
continue;
|
|
2800
|
-
}
|
|
2801
|
-
}
|
|
2802
|
-
valdesc.append(stringify(tv));
|
|
2803
|
-
}
|
|
2804
|
+
String valdesc = _describeAlternatives(tvals);
|
|
2804
2805
|
inj.errs.add(
|
|
2805
2806
|
_invalidTypeMsg(
|
|
2806
2807
|
inj.path,
|
|
@@ -2808,21 +2809,520 @@ public class Struct {
|
|
|
2808
2809
|
+ "exactly equal to "
|
|
2809
2810
|
+ (size(tvals) == 1 ? "" : "one of ")
|
|
2810
2811
|
+ valdesc,
|
|
2811
|
-
typify(
|
|
2812
|
-
|
|
2812
|
+
typify(cval),
|
|
2813
|
+
cval,
|
|
2813
2814
|
"V0110"));
|
|
2814
|
-
return
|
|
2815
|
+
return SKIP;
|
|
2815
2816
|
} else {
|
|
2816
2817
|
delprop(inj.parent, inj.key);
|
|
2817
2818
|
return UNDEF;
|
|
2818
2819
|
}
|
|
2819
2820
|
};
|
|
2820
2821
|
|
|
2822
|
+
/**
|
|
2823
|
+
* $NOF: count the specs that admit the value. Format:
|
|
2824
|
+
* {@code [`$NOF`, count, spec, ...]}, where count is an integer, or a map
|
|
2825
|
+
* holding {@code min}, {@code max} or both. Mirrors TS {@code validate_NOF}.
|
|
2826
|
+
*/
|
|
2827
|
+
public static final Injector validate_NOF =
|
|
2828
|
+
(injObj, val, ref, store) ->
|
|
2829
|
+
injObj instanceof Injection inj ? _validatecount(inj, store, "$NOF", true) : UNDEF;
|
|
2830
|
+
|
|
2831
|
+
/**
|
|
2832
|
+
* $ALL: every spec admits the value. Format: {@code [`$ALL`, spec, ...]}.
|
|
2833
|
+
* Mirrors TS {@code validate_ALL}.
|
|
2834
|
+
*/
|
|
2835
|
+
public static final Injector validate_ALL =
|
|
2836
|
+
(injObj, val, ref, store) ->
|
|
2837
|
+
injObj instanceof Injection inj ? _validatecount(inj, store, "$ALL", false) : UNDEF;
|
|
2838
|
+
|
|
2839
|
+
// The counting list directives. Without a count, every spec has to admit.
|
|
2840
|
+
private static Object _validatecount(Injection inj, Object store, String name, boolean counted) {
|
|
2841
|
+
if (inj.mode != M_VAL) {
|
|
2842
|
+
return UNDEF;
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
Object parent = inj.parent;
|
|
2846
|
+
|
|
2847
|
+
if (!islist(parent) || inj.keyI != 0) {
|
|
2848
|
+
inj.errs.add(
|
|
2849
|
+
"The "
|
|
2850
|
+
+ name
|
|
2851
|
+
+ " validator at field "
|
|
2852
|
+
+ pathify(inj.path, 1, 1)
|
|
2853
|
+
+ " must be the first element of an array.");
|
|
2854
|
+
return UNDEF;
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
Object cval = _slotval(inj);
|
|
2858
|
+
|
|
2859
|
+
inj.keyI = size(inj.keys);
|
|
2860
|
+
|
|
2861
|
+
// Replace the directive's list with the data value. Each return is SKIP, so
|
|
2862
|
+
// that inject leaves the detached list alone and validates nothing in it.
|
|
2863
|
+
inj.setval(cval, 2);
|
|
2864
|
+
|
|
2865
|
+
inj.path = (List<String>) slice(inj.path, -1, null);
|
|
2866
|
+
|
|
2867
|
+
Object count = counted ? lookup(parent, 1) : UNDEF;
|
|
2868
|
+
List<Object> tvals = (List<Object>) slice(parent, counted ? 2 : 1, null);
|
|
2869
|
+
int numtvals = tvals.size();
|
|
2870
|
+
String field = "The " + name + " validator at field " + pathify(inj.path, 1);
|
|
2871
|
+
|
|
2872
|
+
if (0 == numtvals) {
|
|
2873
|
+
inj.errs.add(
|
|
2874
|
+
field + (counted ? " must have a count and" : " must have") + " at least one argument.");
|
|
2875
|
+
return SKIP;
|
|
2876
|
+
}
|
|
2877
|
+
|
|
2878
|
+
Object[] bounds =
|
|
2879
|
+
counted ? _nofcount(count, numtvals) : new Object[] {(long) numtvals, (long) numtvals, "all"};
|
|
2880
|
+
long lo = (Long) bounds[0];
|
|
2881
|
+
long hi = (Long) bounds[1];
|
|
2882
|
+
String countdesc = (String) bounds[2];
|
|
2883
|
+
|
|
2884
|
+
if (null == countdesc) {
|
|
2885
|
+
inj.errs.add(field + " has an invalid count: " + stringify(count) + ".");
|
|
2886
|
+
return SKIP;
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2889
|
+
int admitted = 0;
|
|
2890
|
+
for (int tI = 0; tI < numtvals; tI++) {
|
|
2891
|
+
int left = numtvals - tI;
|
|
2892
|
+
|
|
2893
|
+
// Stop once the specs left cannot change the verdict.
|
|
2894
|
+
if (hi < admitted || admitted + left < lo || (lo <= admitted && admitted + left <= hi)) {
|
|
2895
|
+
break;
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
if (_admits(cval, tvals.get(tI), inj, store)) {
|
|
2899
|
+
admitted++;
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
if (admitted < lo || hi < admitted) {
|
|
2904
|
+
String valdesc = _describeAlternatives(tvals);
|
|
2905
|
+
inj.errs.add(
|
|
2906
|
+
_invalidTypeMsg(inj.path, countdesc + " of " + valdesc, typify(cval), cval, "V0310"));
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
return SKIP;
|
|
2910
|
+
}
|
|
2911
|
+
|
|
2912
|
+
/**
|
|
2913
|
+
* $LEN: the value's length is within a bound. Format:
|
|
2914
|
+
* {@code [`$LEN`, bound, spec?]}, where the bound is as for a $NOF count. A
|
|
2915
|
+
* string's length is in code points. Mirrors TS {@code validate_LEN}.
|
|
2916
|
+
*/
|
|
2917
|
+
public static final Injector validate_LEN =
|
|
2918
|
+
(injObj, val, ref, store) ->
|
|
2919
|
+
injObj instanceof Injection inj ? _validatebound(inj, store, "$LEN") : UNDEF;
|
|
2920
|
+
|
|
2921
|
+
/**
|
|
2922
|
+
* $RANGE: the value is a number within a bound. Format:
|
|
2923
|
+
* {@code [`$RANGE`, bound, spec?]}, where the bound holds {@code min} or
|
|
2924
|
+
* {@code gt}, {@code max} or {@code lt}, or one of each. Mirrors TS
|
|
2925
|
+
* {@code validate_RANGE}.
|
|
2926
|
+
*/
|
|
2927
|
+
public static final Injector validate_RANGE =
|
|
2928
|
+
(injObj, val, ref, store) ->
|
|
2929
|
+
injObj instanceof Injection inj ? _validatebound(inj, store, "$RANGE") : UNDEF;
|
|
2930
|
+
|
|
2931
|
+
/**
|
|
2932
|
+
* $LIKE: the value is a string the pattern finds. Format:
|
|
2933
|
+
* {@code [`$LIKE`, pattern, spec?]}, where the pattern is a
|
|
2934
|
+
* {@code java.util.regex} expression that matches anywhere unless anchored.
|
|
2935
|
+
* Mirrors TS {@code validate_LIKE}.
|
|
2936
|
+
*/
|
|
2937
|
+
public static final Injector validate_LIKE =
|
|
2938
|
+
(injObj, val, ref, store) ->
|
|
2939
|
+
injObj instanceof Injection inj ? _validatebound(inj, store, "$LIKE") : UNDEF;
|
|
2940
|
+
|
|
2941
|
+
// The bounding list directives: a bound or pattern, then at most one spec that also admits.
|
|
2942
|
+
private static Object _validatebound(Injection inj, Object store, String name) {
|
|
2943
|
+
if (inj.mode != M_VAL) {
|
|
2944
|
+
return UNDEF;
|
|
2945
|
+
}
|
|
2946
|
+
|
|
2947
|
+
Object parent = inj.parent;
|
|
2948
|
+
|
|
2949
|
+
if (!islist(parent) || inj.keyI != 0) {
|
|
2950
|
+
inj.errs.add(
|
|
2951
|
+
"The "
|
|
2952
|
+
+ name
|
|
2953
|
+
+ " validator at field "
|
|
2954
|
+
+ pathify(inj.path, 1, 1)
|
|
2955
|
+
+ " must be the first element of an array.");
|
|
2956
|
+
return UNDEF;
|
|
2957
|
+
}
|
|
2958
|
+
|
|
2959
|
+
Object cval = _slotval(inj);
|
|
2960
|
+
|
|
2961
|
+
inj.keyI = size(inj.keys);
|
|
2962
|
+
|
|
2963
|
+
// As for the counting directives: SKIP keeps inject off the detached list.
|
|
2964
|
+
inj.setval(cval, 2);
|
|
2965
|
+
|
|
2966
|
+
inj.path = (List<String>) slice(inj.path, -1, null);
|
|
2967
|
+
|
|
2968
|
+
String field = "The " + name + " validator at field " + pathify(inj.path, 1);
|
|
2969
|
+
int nargs = size(parent) - 1;
|
|
2970
|
+
boolean islen = "$LEN".equals(name);
|
|
2971
|
+
boolean islike = "$LIKE".equals(name);
|
|
2972
|
+
String argname = islike ? "pattern" : "bound";
|
|
2973
|
+
|
|
2974
|
+
if (nargs < 1 || 2 < nargs) {
|
|
2975
|
+
inj.errs.add(field + " must have a " + argname + " and at most one spec.");
|
|
2976
|
+
return SKIP;
|
|
2977
|
+
}
|
|
2978
|
+
|
|
2979
|
+
Object bound = lookup(parent, 1);
|
|
2980
|
+
String like = islike ? _likere(bound) : null;
|
|
2981
|
+
Object[] lenbound = islen ? _lenbound(bound) : null;
|
|
2982
|
+
String desc =
|
|
2983
|
+
islen
|
|
2984
|
+
? (String) lenbound[2]
|
|
2985
|
+
: islike ? (null == like ? null : "like /" + like + "/") : _rangedesc(bound);
|
|
2986
|
+
|
|
2987
|
+
if (null == desc) {
|
|
2988
|
+
inj.errs.add(field + " has an invalid " + argname + ": " + stringify(bound) + ".");
|
|
2989
|
+
return SKIP;
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
int ctype = typify(cval);
|
|
2993
|
+
|
|
2994
|
+
if (2 == nargs && !_admits(cval, lookup(parent, 2), inj, store)) {
|
|
2995
|
+
String specdesc = _lowernames(stringify(lookup(parent, 2)));
|
|
2996
|
+
inj.errs.add(_invalidTypeMsg(inj.path, specdesc, ctype, cval, "V0410"));
|
|
2997
|
+
return SKIP;
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
if (0 == ((islen ? T_string | T_list | T_map : islike ? T_string : T_number) & ctype)) {
|
|
3001
|
+
String needtype = islen ? "string, list or map" : islike ? "string" : "number";
|
|
3002
|
+
inj.errs.add(_invalidTypeMsg(inj.path, needtype, ctype, cval, "V0420"));
|
|
3003
|
+
return SKIP;
|
|
3004
|
+
}
|
|
3005
|
+
|
|
3006
|
+
boolean inbound;
|
|
3007
|
+
if (islen) {
|
|
3008
|
+
long lo = (Long) lenbound[0];
|
|
3009
|
+
long hi = (Long) lenbound[1];
|
|
3010
|
+
int len = cval instanceof String s ? s.codePointCount(0, s.length()) : size(cval);
|
|
3011
|
+
inbound = lo <= len && (-1 == hi || len <= hi);
|
|
3012
|
+
} else if (islike) {
|
|
3013
|
+
inbound = reTest(like, (String) cval);
|
|
3014
|
+
} else {
|
|
3015
|
+
inbound = _inrange(bound, ((Number) cval).doubleValue());
|
|
3016
|
+
}
|
|
3017
|
+
|
|
3018
|
+
if (!inbound) {
|
|
3019
|
+
String needtype = (1 < size(inj.path) ? "" : "value ") + desc;
|
|
3020
|
+
inj.errs.add(_invalidTypeMsg(inj.path, needtype, ctype, cval, "V0430"));
|
|
3021
|
+
}
|
|
3022
|
+
|
|
3023
|
+
return SKIP;
|
|
3024
|
+
}
|
|
3025
|
+
|
|
3026
|
+
// The bounds of a $LEN bound, with -1 for no maximum, and the words for it,
|
|
3027
|
+
// which are null when the bound is invalid.
|
|
3028
|
+
private static Object[] _lenbound(Object bound) {
|
|
3029
|
+
Object[] count = _nofcount(bound, -1);
|
|
3030
|
+
|
|
3031
|
+
if (null == count[2]) {
|
|
3032
|
+
return new Object[] {0L, 0L, null};
|
|
3033
|
+
}
|
|
3034
|
+
|
|
3035
|
+
long lo = (Long) count[0];
|
|
3036
|
+
long hi = (Long) count[1];
|
|
3037
|
+
|
|
3038
|
+
String desc =
|
|
3039
|
+
lo == hi
|
|
3040
|
+
? String.valueOf(lo)
|
|
3041
|
+
: -1 == hi ? "at least " + lo : 0 == lo ? "at most " + hi : lo + " to " + hi;
|
|
3042
|
+
|
|
3043
|
+
return new Object[] {lo, hi, "of length " + desc};
|
|
3044
|
+
}
|
|
3045
|
+
|
|
3046
|
+
// A $LIKE pattern that the port's own regex engine compiles; null unless it does.
|
|
3047
|
+
private static String _likere(Object pattern) {
|
|
3048
|
+
if (!(pattern instanceof String s)) {
|
|
3049
|
+
return null;
|
|
3050
|
+
}
|
|
3051
|
+
try {
|
|
3052
|
+
reCompile(s);
|
|
3053
|
+
return s;
|
|
3054
|
+
} catch (PatternSyntaxException e) {
|
|
3055
|
+
return null;
|
|
3056
|
+
}
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
// The words for a $RANGE bound, which are null when the bound is invalid.
|
|
3060
|
+
private static String _rangedesc(Object bound) {
|
|
3061
|
+
if (!ismap(bound)) {
|
|
3062
|
+
return null;
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
Object min = lookup(bound, "min");
|
|
3066
|
+
Object max = lookup(bound, "max");
|
|
3067
|
+
Object gt = lookup(bound, "gt");
|
|
3068
|
+
Object lt = lookup(bound, "lt");
|
|
3069
|
+
Object lower = UNDEF == min ? gt : min;
|
|
3070
|
+
Object upper = UNDEF == max ? lt : max;
|
|
3071
|
+
|
|
3072
|
+
int numkeys = 0;
|
|
3073
|
+
for (Object n : new Object[] {min, max, gt, lt}) {
|
|
3074
|
+
if (UNDEF != n) {
|
|
3075
|
+
numkeys++;
|
|
3076
|
+
}
|
|
3077
|
+
}
|
|
3078
|
+
|
|
3079
|
+
boolean valid =
|
|
3080
|
+
0 < size(bound)
|
|
3081
|
+
&& size(bound) == numkeys
|
|
3082
|
+
&& (UNDEF == min || UNDEF == gt)
|
|
3083
|
+
&& (UNDEF == max || UNDEF == lt)
|
|
3084
|
+
&& _isnum(min)
|
|
3085
|
+
&& _isnum(max)
|
|
3086
|
+
&& _isnum(gt)
|
|
3087
|
+
&& _isnum(lt)
|
|
3088
|
+
&& (UNDEF == lower
|
|
3089
|
+
|| UNDEF == upper
|
|
3090
|
+
|| ((Number) lower).doubleValue() <= ((Number) upper).doubleValue());
|
|
3091
|
+
|
|
3092
|
+
if (!valid) {
|
|
3093
|
+
return null;
|
|
3094
|
+
}
|
|
3095
|
+
|
|
3096
|
+
StringJoiner desc = new StringJoiner(" and ");
|
|
3097
|
+
if (UNDEF != min) {
|
|
3098
|
+
desc.add("at least " + stringify(min));
|
|
3099
|
+
} else if (UNDEF != gt) {
|
|
3100
|
+
desc.add("greater than " + stringify(gt));
|
|
3101
|
+
}
|
|
3102
|
+
if (UNDEF != max) {
|
|
3103
|
+
desc.add("at most " + stringify(max));
|
|
3104
|
+
} else if (UNDEF != lt) {
|
|
3105
|
+
desc.add("less than " + stringify(lt));
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
return desc.toString();
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3111
|
+
// A number within a valid $RANGE bound.
|
|
3112
|
+
private static boolean _inrange(Object bound, double val) {
|
|
3113
|
+
Object min = lookup(bound, "min");
|
|
3114
|
+
Object max = lookup(bound, "max");
|
|
3115
|
+
Object gt = lookup(bound, "gt");
|
|
3116
|
+
Object lt = lookup(bound, "lt");
|
|
3117
|
+
|
|
3118
|
+
return (UNDEF == min || ((Number) min).doubleValue() <= val)
|
|
3119
|
+
&& (UNDEF == max || val <= ((Number) max).doubleValue())
|
|
3120
|
+
&& (UNDEF == gt || ((Number) gt).doubleValue() < val)
|
|
3121
|
+
&& (UNDEF == lt || val < ((Number) lt).doubleValue());
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3124
|
+
private static boolean _isnum(Object n) {
|
|
3125
|
+
return UNDEF == n || 0 != (T_number & typify(n));
|
|
3126
|
+
}
|
|
3127
|
+
|
|
3128
|
+
// Names a validate spec may use besides its checkers: transform's that it keeps, and $OPEN.
|
|
3129
|
+
private static final List<String> VALIDATE_NAMES =
|
|
3130
|
+
List.of("$TOP", "$SPEC", "$BT", "$DS", "$WHEN", "$ANNO", "$REF", "$FORMAT", "$APPLY", "$OPEN");
|
|
3131
|
+
|
|
3132
|
+
// Report each checker the spec names that validate lacks, and each misplaced
|
|
3133
|
+
// $REST; $EXACT's arguments are literals. Last: spec is a list's last item.
|
|
3134
|
+
private static void _checknames(
|
|
3135
|
+
Object spec, Object store, List<String> path, List<Object> errs, boolean last) {
|
|
3136
|
+
String name = _refname(spec);
|
|
3137
|
+
if (null != name) {
|
|
3138
|
+
if (_unknownname(name, store)) {
|
|
3139
|
+
errs.add("Unknown validator " + name + " at field " + pathify(path) + ".");
|
|
3140
|
+
} else if ("$REST".equals(name)) {
|
|
3141
|
+
errs.add(_restmsg(path, " must be the last element of an array."));
|
|
3142
|
+
}
|
|
3143
|
+
return;
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
String head = islist(spec) ? _refname(lookup(spec, 0)) : null;
|
|
3147
|
+
if ("$EXACT".equals(head)) {
|
|
3148
|
+
return;
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3151
|
+
if ("$REST".equals(head)) {
|
|
3152
|
+
if (!last) {
|
|
3153
|
+
errs.add(_restmsg(path, " must be the last element of an array."));
|
|
3154
|
+
} else if (2 != size(spec)) {
|
|
3155
|
+
errs.add(_restmsg(path, " must have exactly one spec."));
|
|
3156
|
+
}
|
|
3157
|
+
List<String> spath = new ArrayList<>(path);
|
|
3158
|
+
spath.add("1");
|
|
3159
|
+
_checknames(lookup(spec, 1), store, spath, errs, false);
|
|
3160
|
+
return;
|
|
3161
|
+
}
|
|
3162
|
+
|
|
3163
|
+
String restkey = "`$REST`";
|
|
3164
|
+
if (ismap(spec) && UNDEF != lookup(spec, restkey) && UNDEF != lookup(spec, "`$CHILD`")) {
|
|
3165
|
+
errs.add(_restmsg(path, " cannot be used with $CHILD."));
|
|
3166
|
+
}
|
|
3167
|
+
|
|
3168
|
+
String lastkey = islist(spec) ? strkey(size(spec) - 1) : null;
|
|
3169
|
+
for (String key : keysof(spec)) {
|
|
3170
|
+
if (ismap(spec) && !restkey.equals(key)) {
|
|
3171
|
+
_checknames(key, store, path, errs, false);
|
|
3172
|
+
}
|
|
3173
|
+
List<String> kpath = new ArrayList<>(path);
|
|
3174
|
+
kpath.add(key);
|
|
3175
|
+
_checknames(lookup(spec, key), store, kpath, errs, key.equals(lastkey));
|
|
3176
|
+
}
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3179
|
+
// The name a whole-string reference gives, when it is a checker name in any case.
|
|
3180
|
+
private static String _refname(Object val) {
|
|
3181
|
+
Matcher m = val instanceof String s ? R_INJECT_FULL.matcher(s) : null;
|
|
3182
|
+
return null != m && m.matches() && R_CHECKER_NAME.matcher(m.group(1).toUpperCase(Locale.ROOT)).matches()
|
|
3183
|
+
? m.group(1)
|
|
3184
|
+
: null;
|
|
3185
|
+
}
|
|
3186
|
+
|
|
3187
|
+
// Unknown: undefined and upper case, or a defined name in another case. Null disables a name.
|
|
3188
|
+
private static boolean _unknownname(String name, Object store) {
|
|
3189
|
+
String upper = name.toUpperCase(Locale.ROOT);
|
|
3190
|
+
return !_knownname(name, store) && (upper.equals(name) || _knownname(upper, store));
|
|
3191
|
+
}
|
|
3192
|
+
|
|
3193
|
+
private static boolean _knownname(String name, Object store) {
|
|
3194
|
+
Object val = lookup(store, name);
|
|
3195
|
+
return VALIDATE_NAMES.contains(name) || (null != val && UNDEF != val);
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3198
|
+
// The data value at a list directive's slot. The directive's own dparent was
|
|
3199
|
+
// read with getprop, which reports a stored null as absent.
|
|
3200
|
+
private static Object _slotval(Injection inj) {
|
|
3201
|
+
Injection prior = inj.prior;
|
|
3202
|
+
return null == prior ? inj.dparent : lookup(prior.dparent, prior.key);
|
|
3203
|
+
}
|
|
3204
|
+
|
|
3205
|
+
// JSON equality: numbers by value, lists in order, maps by key in any order.
|
|
3206
|
+
private static boolean _deepequal(Object a, Object b) {
|
|
3207
|
+
// TS ===: identity, or value equality for numbers, strings and booleans.
|
|
3208
|
+
if (a == b
|
|
3209
|
+
|| (a instanceof Number an && b instanceof Number bn && an.doubleValue() == bn.doubleValue())
|
|
3210
|
+
|| ((a instanceof String || a instanceof Boolean) && a.equals(b))) {
|
|
3211
|
+
return true;
|
|
3212
|
+
}
|
|
3213
|
+
|
|
3214
|
+
int atype = typify(a);
|
|
3215
|
+
if (atype != typify(b) || 0 == ((T_list | T_map) & atype)) {
|
|
3216
|
+
return false;
|
|
3217
|
+
}
|
|
3218
|
+
|
|
3219
|
+
List<String> akeys = keysof(a);
|
|
3220
|
+
List<String> bkeys = keysof(b);
|
|
3221
|
+
if (akeys.size() != bkeys.size()) {
|
|
3222
|
+
return false;
|
|
3223
|
+
}
|
|
3224
|
+
|
|
3225
|
+
for (int kI = 0; kI < akeys.size(); kI++) {
|
|
3226
|
+
String k = akeys.get(kI);
|
|
3227
|
+
if (!k.equals(bkeys.get(kI)) || !_deepequal(lookup(a, k), lookup(b, k))) {
|
|
3228
|
+
return false;
|
|
3229
|
+
}
|
|
3230
|
+
}
|
|
3231
|
+
|
|
3232
|
+
return true;
|
|
3233
|
+
}
|
|
3234
|
+
|
|
3235
|
+
// Every member val has is in out, unchanged. A member only out has is a
|
|
3236
|
+
// default the spec supplied, and is ignored.
|
|
3237
|
+
private static boolean _keeps(Object val, Object out) {
|
|
3238
|
+
if (UNDEF == val) {
|
|
3239
|
+
return true;
|
|
3240
|
+
}
|
|
3241
|
+
|
|
3242
|
+
if (0 == ((T_list | T_map) & typify(val)) || islist(val) != islist(out) || !isnode(out)) {
|
|
3243
|
+
return _deepequal(val, out);
|
|
3244
|
+
}
|
|
3245
|
+
|
|
3246
|
+
for (String k : keysof(val)) {
|
|
3247
|
+
if (!_keeps(lookup(val, k), lookup(out, k))) {
|
|
3248
|
+
return false;
|
|
3249
|
+
}
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3252
|
+
return true;
|
|
3253
|
+
}
|
|
3254
|
+
|
|
3255
|
+
// A spec admits a value when validating the value against it finds no error
|
|
3256
|
+
// and gives back the value as it is.
|
|
3257
|
+
private static boolean _admits(Object val, Object spec, Injection inj, Object store) {
|
|
3258
|
+
List<Object> terrs = new ArrayList<>();
|
|
3259
|
+
|
|
3260
|
+
List<Object> mergeList = new ArrayList<>();
|
|
3261
|
+
mergeList.add(new LinkedHashMap<String, Object>());
|
|
3262
|
+
mergeList.add(store);
|
|
3263
|
+
Map<String, Object> vstore = (Map<String, Object>) merge(mergeList, 1);
|
|
3264
|
+
vstore.put(S_DTOP, val);
|
|
3265
|
+
|
|
3266
|
+
Map<String, Object> opts = new LinkedHashMap<>();
|
|
3267
|
+
opts.put("extra", vstore);
|
|
3268
|
+
opts.put("errs", terrs);
|
|
3269
|
+
opts.put("meta", inj.meta);
|
|
3270
|
+
Object out = validate(val, spec, opts);
|
|
3271
|
+
|
|
3272
|
+
return terrs.isEmpty() && _keeps(val, out);
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
// The bounds of a $NOF count, and the words for it, which are null when the
|
|
3276
|
+
// count is invalid. Without a max, the bound is the number of specs.
|
|
3277
|
+
private static Object[] _nofcount(Object count, int numtvals) {
|
|
3278
|
+
if (_isnat(count)) {
|
|
3279
|
+
long n = ((Number) count).longValue();
|
|
3280
|
+
return new Object[] {n, n, 0 == n ? "none" : "exactly " + n};
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3283
|
+
Object min = lookup(count, "min");
|
|
3284
|
+
Object max = lookup(count, "max");
|
|
3285
|
+
|
|
3286
|
+
boolean valid =
|
|
3287
|
+
ismap(count)
|
|
3288
|
+
&& 0 < size(count)
|
|
3289
|
+
&& size(count) == (UNDEF == min ? 0 : 1) + (UNDEF == max ? 0 : 1)
|
|
3290
|
+
&& (UNDEF == min || _isnat(min))
|
|
3291
|
+
&& (UNDEF == max || _isnat(max))
|
|
3292
|
+
&& (UNDEF == min
|
|
3293
|
+
|| UNDEF == max
|
|
3294
|
+
|| ((Number) min).doubleValue() <= ((Number) max).doubleValue());
|
|
3295
|
+
|
|
3296
|
+
if (!valid) {
|
|
3297
|
+
return new Object[] {0L, 0L, null};
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
long lo = UNDEF == min ? 0 : ((Number) min).longValue();
|
|
3301
|
+
long hi = UNDEF == max ? numtvals : ((Number) max).longValue();
|
|
3302
|
+
|
|
3303
|
+
String desc =
|
|
3304
|
+
UNDEF == max
|
|
3305
|
+
? "at least " + lo
|
|
3306
|
+
: 0 == hi
|
|
3307
|
+
? "none"
|
|
3308
|
+
: UNDEF == min
|
|
3309
|
+
? "at most " + hi
|
|
3310
|
+
: lo == hi
|
|
3311
|
+
? "exactly " + lo
|
|
3312
|
+
: lo + " to " + hi;
|
|
3313
|
+
|
|
3314
|
+
return new Object[] {lo, hi, desc};
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
private static boolean _isnat(Object n) {
|
|
3318
|
+
return 0 != (T_integer & typify(n)) && 0 <= ((Number) n).doubleValue();
|
|
3319
|
+
}
|
|
3320
|
+
|
|
2821
3321
|
/**
|
|
2822
3322
|
* Modify hook used by {@link #validate(Object, Object)}: runs after each
|
|
2823
|
-
* inject step; performs type-mismatch checks, open-vs-closed map
|
|
2824
|
-
*
|
|
2825
|
-
*
|
|
3323
|
+
* inject step; performs type-mismatch checks, open-vs-closed map and list
|
|
3324
|
+
* handling, exact-mode comparison, and default-value copy-over. Mirrors TS
|
|
3325
|
+
* {@code _validation}.
|
|
2826
3326
|
*/
|
|
2827
3327
|
public static final Modify _validation =
|
|
2828
3328
|
(pval, key, parent, injObj, store) -> {
|
|
@@ -2853,7 +3353,8 @@ public class Struct {
|
|
|
2853
3353
|
List<String> ckeys = keysof(cval);
|
|
2854
3354
|
List<String> pkeys = keysof(pval);
|
|
2855
3355
|
|
|
2856
|
-
|
|
3356
|
+
// Only a spec written as {} is open, even if named keys resolved away.
|
|
3357
|
+
if ((size(pkeys) > 0 || inj.named) && !Boolean.TRUE.equals(getprop(pval, "`$OPEN`"))) {
|
|
2857
3358
|
List<String> badkeys = new ArrayList<>();
|
|
2858
3359
|
for (String ck : ckeys) {
|
|
2859
3360
|
// Group B literal presence: a key the SHAPE declares is allowed
|
|
@@ -2880,6 +3381,25 @@ public class Struct {
|
|
|
2880
3381
|
} else if (islist(cval)) {
|
|
2881
3382
|
if (!islist(pval)) {
|
|
2882
3383
|
inj.errs.add(_invalidTypeMsg(inj.path, typename(ptype), ctype, cval, "V0030"));
|
|
3384
|
+
} else if (size(pval) > 0) {
|
|
3385
|
+
// Closed list, so reject items past the end of the shape.
|
|
3386
|
+
List<String> badkeys = new ArrayList<>();
|
|
3387
|
+
for (int i = size(pval); i < size(cval); i++) {
|
|
3388
|
+
badkeys.add(strkey(i));
|
|
3389
|
+
}
|
|
3390
|
+
if (!badkeys.isEmpty()) {
|
|
3391
|
+
inj.errs.add(
|
|
3392
|
+
"Unexpected keys at field "
|
|
3393
|
+
+ pathify(inj.path, 1)
|
|
3394
|
+
+ ": "
|
|
3395
|
+
+ String.join(", ", badkeys));
|
|
3396
|
+
}
|
|
3397
|
+
} else {
|
|
3398
|
+
// Empty spec list [] means list can be open (any items).
|
|
3399
|
+
List<Object> mergeArgs = new ArrayList<>();
|
|
3400
|
+
mergeArgs.add(pval);
|
|
3401
|
+
mergeArgs.add(cval);
|
|
3402
|
+
merge(mergeArgs);
|
|
2883
3403
|
}
|
|
2884
3404
|
} else if (exact) {
|
|
2885
3405
|
if (!Objects.equals(cval, pval)) {
|
|
@@ -3037,6 +3557,8 @@ public class Struct {
|
|
|
3037
3557
|
public static final Injector select_CMP =
|
|
3038
3558
|
(injObj, val, ref, store) -> {
|
|
3039
3559
|
if (!(injObj instanceof Injection inj)) return UNDEF;
|
|
3560
|
+
// The list form of $LIKE is validate's checker; the key form is this operator.
|
|
3561
|
+
if (inj.mode == M_VAL && "$LIKE".equals(ref)) return validate_LIKE.apply(inj, val, ref, store);
|
|
3040
3562
|
if (inj.mode != M_KEYPRE) return UNDEF;
|
|
3041
3563
|
// Group B: select $CMP term is read raw (TS _lookup(parent,key)).
|
|
3042
3564
|
Object term = lookup(inj.parent, inj.key);
|
|
@@ -3120,8 +3642,13 @@ public class Struct {
|
|
|
3120
3642
|
baseStore.put("$INSTANCE", validate_TYPE);
|
|
3121
3643
|
baseStore.put("$ANY", validate_ANY);
|
|
3122
3644
|
baseStore.put("$CHILD", validate_CHILD);
|
|
3123
|
-
baseStore.put("$ONE", validate_ONE);
|
|
3124
3645
|
baseStore.put("$EXACT", validate_EXACT);
|
|
3646
|
+
baseStore.put("$NOF", validate_NOF);
|
|
3647
|
+
baseStore.put("$ALL", validate_ALL);
|
|
3648
|
+
baseStore.put("$LEN", validate_LEN);
|
|
3649
|
+
baseStore.put("$RANGE", validate_RANGE);
|
|
3650
|
+
baseStore.put("$LIKE", validate_LIKE);
|
|
3651
|
+
baseStore.put("$REST", validate_REST);
|
|
3125
3652
|
|
|
3126
3653
|
List<Object> mergeList = new ArrayList<>();
|
|
3127
3654
|
mergeList.add(baseStore);
|
|
@@ -3152,7 +3679,11 @@ public class Struct {
|
|
|
3152
3679
|
opts.put("handler", _validatehandler);
|
|
3153
3680
|
opts.put("errs", errs);
|
|
3154
3681
|
|
|
3155
|
-
|
|
3682
|
+
// A spec that names an unknown checker validates nothing.
|
|
3683
|
+
int numerrs = errs.size();
|
|
3684
|
+
_checknames(spec, store, new ArrayList<>(), errs, false);
|
|
3685
|
+
|
|
3686
|
+
Object out = numerrs < errs.size() ? clone(data) : transform(data, spec, opts);
|
|
3156
3687
|
|
|
3157
3688
|
if (!errs.isEmpty() && !collect) {
|
|
3158
3689
|
throw new IllegalArgumentException(String.join(" | ", errsAsStrings(errs)));
|
|
@@ -3161,8 +3692,8 @@ public class Struct {
|
|
|
3161
3692
|
}
|
|
3162
3693
|
|
|
3163
3694
|
/**
|
|
3164
|
-
* TS-faithful select: tag each child node with {@code $KEY},
|
|
3165
|
-
* (cloned) query
|
|
3695
|
+
* TS-faithful select: tag each child node with {@code $KEY}, open the
|
|
3696
|
+
* (cloned) query's maps with {@code _openquery}, then run
|
|
3166
3697
|
* {@link #validate} against each child with the {@code select_*} injectors
|
|
3167
3698
|
* available as extras and {@code meta.`$EXACT`} = true.
|
|
3168
3699
|
* Mirrors TS lines 2558–2609.
|
|
@@ -3209,16 +3740,8 @@ public class Struct {
|
|
|
3209
3740
|
extra.put("$LTE", select_CMP);
|
|
3210
3741
|
extra.put("$LIKE", select_CMP);
|
|
3211
3742
|
|
|
3212
|
-
// Clone query and annotate every map with `$OPEN`=true.
|
|
3213
3743
|
Object q = clone(query);
|
|
3214
|
-
|
|
3215
|
-
q,
|
|
3216
|
-
(k, v, p, t) -> {
|
|
3217
|
-
if (ismap(v)) {
|
|
3218
|
-
setprop(v, "`$OPEN`", getprop(v, "`$OPEN`", true));
|
|
3219
|
-
}
|
|
3220
|
-
return v;
|
|
3221
|
-
});
|
|
3744
|
+
_openquery(q);
|
|
3222
3745
|
|
|
3223
3746
|
List<Object> results = new ArrayList<>();
|
|
3224
3747
|
for (Object child : childList) {
|
|
@@ -3239,6 +3762,482 @@ public class Struct {
|
|
|
3239
3762
|
return results;
|
|
3240
3763
|
}
|
|
3241
3764
|
|
|
3765
|
+
// Open every map in a select query, so a child may hold keys the query does
|
|
3766
|
+
// not name, but leave a directive's literals as written: what $EXACT
|
|
3767
|
+
// compares, and the count or bound of $NOF, $LEN and $RANGE.
|
|
3768
|
+
private static void _openquery(Object q) {
|
|
3769
|
+
if (q instanceof Map<?, ?> m) {
|
|
3770
|
+
setprop(q, "`$OPEN`", getprop(q, "`$OPEN`", true));
|
|
3771
|
+
for (String key : keysof(q)) {
|
|
3772
|
+
_openquery(m.get(key));
|
|
3773
|
+
}
|
|
3774
|
+
} else if (q instanceof List<?> l) {
|
|
3775
|
+
Object head = l.isEmpty() ? null : l.get(0);
|
|
3776
|
+
boolean exact = "`$EXACT`".equals(head);
|
|
3777
|
+
boolean bounded = "`$NOF`".equals(head) || "`$LEN`".equals(head) || "`$RANGE`".equals(head);
|
|
3778
|
+
for (int i = 0; i < l.size(); i++) {
|
|
3779
|
+
if (0 == i || !(exact || (bounded && 1 == i))) {
|
|
3780
|
+
_openquery(l.get(i));
|
|
3781
|
+
}
|
|
3782
|
+
}
|
|
3783
|
+
}
|
|
3784
|
+
}
|
|
3785
|
+
|
|
3786
|
+
|
|
3787
|
+
// ===========================================================================
|
|
3788
|
+
// Condense
|
|
3789
|
+
// ===========================================================================
|
|
3790
|
+
|
|
3791
|
+
private static final int CONDENSE_VERSION = 1;
|
|
3792
|
+
|
|
3793
|
+
private static final int CONDENSE_MAP = 0;
|
|
3794
|
+
private static final int CONDENSE_LIST = 1;
|
|
3795
|
+
private static final int CONDENSE_STR = 2;
|
|
3796
|
+
private static final int CONDENSE_NUM = 3;
|
|
3797
|
+
private static final int CONDENSE_TRUE = 4;
|
|
3798
|
+
private static final int CONDENSE_FALSE = 5;
|
|
3799
|
+
private static final int CONDENSE_NULL = 6;
|
|
3800
|
+
|
|
3801
|
+
private static final String S_condense = "$condense";
|
|
3802
|
+
private static final String S_condsym = "sym";
|
|
3803
|
+
private static final String S_condnode = "node";
|
|
3804
|
+
private static final String S_condroot = "root";
|
|
3805
|
+
|
|
3806
|
+
private static final String CONDENSE_IMMUTABLE =
|
|
3807
|
+
"struct: condensed structures are immutable - expand() first, then modify the copy";
|
|
3808
|
+
|
|
3809
|
+
// Code point order: String.compareTo uses UTF-16 code unit order, which
|
|
3810
|
+
// puts U+FFFF after a supplementary character.
|
|
3811
|
+
private static int condenseCmp(String a, String b) {
|
|
3812
|
+
int i = 0;
|
|
3813
|
+
int j = 0;
|
|
3814
|
+
while (i < a.length() && j < b.length()) {
|
|
3815
|
+
int ca = a.codePointAt(i);
|
|
3816
|
+
int cb = b.codePointAt(j);
|
|
3817
|
+
if (ca != cb) {
|
|
3818
|
+
return ca < cb ? -1 : 1;
|
|
3819
|
+
}
|
|
3820
|
+
i += Character.charCount(ca);
|
|
3821
|
+
j += Character.charCount(cb);
|
|
3822
|
+
}
|
|
3823
|
+
return a.length() - i - (b.length() - j);
|
|
3824
|
+
}
|
|
3825
|
+
|
|
3826
|
+
public static boolean iscondensed(Object val) {
|
|
3827
|
+
// The version must MATCH, not merely be numeric: a future profile would
|
|
3828
|
+
// otherwise be decoded under this one's schema.
|
|
3829
|
+
return val instanceof Map<?, ?> m
|
|
3830
|
+
&& m.get(S_condense) instanceof Number version
|
|
3831
|
+
&& CONDENSE_VERSION == version.doubleValue()
|
|
3832
|
+
&& m.get(S_condsym) instanceof List
|
|
3833
|
+
&& m.get(S_condnode) instanceof List
|
|
3834
|
+
&& m.get(S_condroot) instanceof Number;
|
|
3835
|
+
}
|
|
3836
|
+
|
|
3837
|
+
/**
|
|
3838
|
+
* Condense any JSON-shaped node. Pure: the same input always produces a
|
|
3839
|
+
* byte-identical result, on every port.
|
|
3840
|
+
*/
|
|
3841
|
+
public static Map<String, Object> condense(Object val) {
|
|
3842
|
+
Set<String> symset = new HashSet<>();
|
|
3843
|
+
condenseCollect(val, symset);
|
|
3844
|
+
|
|
3845
|
+
List<String> sym = new ArrayList<>(symset);
|
|
3846
|
+
sym.sort(Struct::condenseCmp);
|
|
3847
|
+
Map<String, Integer> symid = new HashMap<>();
|
|
3848
|
+
for (int i = 0; i < sym.size(); i++) {
|
|
3849
|
+
symid.put(sym.get(i), i);
|
|
3850
|
+
}
|
|
3851
|
+
|
|
3852
|
+
List<Object> node = new ArrayList<>();
|
|
3853
|
+
int root = condenseBuild(val, symid, node, new HashMap<>());
|
|
3854
|
+
|
|
3855
|
+
Map<String, Object> out = new LinkedHashMap<>();
|
|
3856
|
+
out.put(S_condense, CONDENSE_VERSION);
|
|
3857
|
+
out.put(S_condsym, new ArrayList<Object>(sym));
|
|
3858
|
+
out.put(S_condnode, node);
|
|
3859
|
+
out.put(S_condroot, root);
|
|
3860
|
+
return out;
|
|
3861
|
+
}
|
|
3862
|
+
|
|
3863
|
+
private static void condenseCollect(Object n, Set<String> symset) {
|
|
3864
|
+
if (ismap(n)) {
|
|
3865
|
+
for (String key : keysof(n)) {
|
|
3866
|
+
symset.add(key);
|
|
3867
|
+
condenseCollect(((Map<?, ?>) n).get(key), symset);
|
|
3868
|
+
}
|
|
3869
|
+
} else if (n instanceof List<?> l) {
|
|
3870
|
+
for (Object item : l) {
|
|
3871
|
+
condenseCollect(item, symset);
|
|
3872
|
+
}
|
|
3873
|
+
} else if (n instanceof String s) {
|
|
3874
|
+
symset.add(s);
|
|
3875
|
+
}
|
|
3876
|
+
}
|
|
3877
|
+
|
|
3878
|
+
// Post-order, so identical subtrees are already interned when a parent
|
|
3879
|
+
// refers to them.
|
|
3880
|
+
private static int condenseBuild(Object n, Map<String, Integer> symid, List<Object> node,
|
|
3881
|
+
Map<String, Integer> seen) {
|
|
3882
|
+
List<Object> enc = new ArrayList<>();
|
|
3883
|
+
if (ismap(n)) {
|
|
3884
|
+
enc.add(CONDENSE_MAP);
|
|
3885
|
+
// Code-point order, not keysof's code-unit order, so the key ids ascend.
|
|
3886
|
+
List<String> keys = new ArrayList<>(keysof(n));
|
|
3887
|
+
keys.sort(Struct::condenseCmp);
|
|
3888
|
+
for (String key : keys) {
|
|
3889
|
+
enc.add(symid.get(key));
|
|
3890
|
+
enc.add(condenseBuild(((Map<?, ?>) n).get(key), symid, node, seen));
|
|
3891
|
+
}
|
|
3892
|
+
} else if (n instanceof List<?> l) {
|
|
3893
|
+
enc.add(CONDENSE_LIST);
|
|
3894
|
+
for (Object item : l) {
|
|
3895
|
+
enc.add(condenseBuild(item, symid, node, seen));
|
|
3896
|
+
}
|
|
3897
|
+
} else if (n instanceof String s) {
|
|
3898
|
+
enc.add(CONDENSE_STR);
|
|
3899
|
+
enc.add(symid.get(s));
|
|
3900
|
+
} else if (n instanceof Number num) {
|
|
3901
|
+
enc.add(CONDENSE_NUM);
|
|
3902
|
+
enc.add(num);
|
|
3903
|
+
} else if (Boolean.TRUE.equals(n)) {
|
|
3904
|
+
enc.add(CONDENSE_TRUE);
|
|
3905
|
+
} else if (Boolean.FALSE.equals(n)) {
|
|
3906
|
+
enc.add(CONDENSE_FALSE);
|
|
3907
|
+
} else {
|
|
3908
|
+
enc.add(CONDENSE_NULL);
|
|
3909
|
+
}
|
|
3910
|
+
return condenseIntern(enc, node, seen);
|
|
3911
|
+
}
|
|
3912
|
+
|
|
3913
|
+
private static int condenseIntern(List<Object> enc, List<Object> node, Map<String, Integer> seen) {
|
|
3914
|
+
StringBuilder key = new StringBuilder();
|
|
3915
|
+
for (Object part : enc) {
|
|
3916
|
+
key.append(condenseNumKey((Number) part)).append(',');
|
|
3917
|
+
}
|
|
3918
|
+
String enckey = key.toString();
|
|
3919
|
+
Integer hit = seen.get(enckey);
|
|
3920
|
+
if (null != hit) {
|
|
3921
|
+
return hit;
|
|
3922
|
+
}
|
|
3923
|
+
int idx = node.size();
|
|
3924
|
+
node.add(enc);
|
|
3925
|
+
seen.put(enckey, idx);
|
|
3926
|
+
return idx;
|
|
3927
|
+
}
|
|
3928
|
+
|
|
3929
|
+
// By value, so an integer and a decimal that are equal share one node.
|
|
3930
|
+
private static String condenseNumKey(Number n) {
|
|
3931
|
+
if (n instanceof Integer || n instanceof Long || n instanceof Short || n instanceof Byte) {
|
|
3932
|
+
return Long.toString(n.longValue());
|
|
3933
|
+
}
|
|
3934
|
+
double d = n.doubleValue();
|
|
3935
|
+
return Math.floor(d) == d && Math.abs(d) < Long.MAX_VALUE ? Long.toString((long) d) : Double.toString(d);
|
|
3936
|
+
}
|
|
3937
|
+
|
|
3938
|
+
private static List<?> condenseList(Object cond, String name) {
|
|
3939
|
+
return cond instanceof Map<?, ?> m && m.get(name) instanceof List<?> l ? l : List.of();
|
|
3940
|
+
}
|
|
3941
|
+
|
|
3942
|
+
private static Object condenseAt(List<?> list, int i) {
|
|
3943
|
+
return 0 <= i && i < list.size() ? list.get(i) : UNDEF;
|
|
3944
|
+
}
|
|
3945
|
+
|
|
3946
|
+
// A stored index: -1 when negative, past every node when not an integer.
|
|
3947
|
+
private static int condenseIndex(Object n) {
|
|
3948
|
+
if (!(n instanceof Number num)) {
|
|
3949
|
+
return -1;
|
|
3950
|
+
}
|
|
3951
|
+
double d = num.doubleValue();
|
|
3952
|
+
if (Double.isNaN(d) || d < 0) {
|
|
3953
|
+
return -1;
|
|
3954
|
+
}
|
|
3955
|
+
return Math.floor(d) == d && d < Integer.MAX_VALUE ? (int) d : Integer.MAX_VALUE;
|
|
3956
|
+
}
|
|
3957
|
+
|
|
3958
|
+
private static int condenseRoot(Object cond) {
|
|
3959
|
+
return condenseIndex(((Map<?, ?>) cond).get(S_condroot));
|
|
3960
|
+
}
|
|
3961
|
+
|
|
3962
|
+
private static Object condenseEnc(Object cond, int idx) {
|
|
3963
|
+
Object enc = condenseAt(condenseList(cond, S_condnode), idx);
|
|
3964
|
+
return UNDEF == enc ? null : enc;
|
|
3965
|
+
}
|
|
3966
|
+
|
|
3967
|
+
private static boolean condenseIs(Object enc, int kind) {
|
|
3968
|
+
return enc instanceof List<?> l && !l.isEmpty() && l.get(0) instanceof Number n && n.doubleValue() == kind;
|
|
3969
|
+
}
|
|
3970
|
+
|
|
3971
|
+
private static String condenseKey(Object key) {
|
|
3972
|
+
if (key instanceof String s) {
|
|
3973
|
+
return s;
|
|
3974
|
+
}
|
|
3975
|
+
return UNDEF == key ? "undefined" : jsString(key);
|
|
3976
|
+
}
|
|
3977
|
+
|
|
3978
|
+
// Bisects the sorted symbol table; -1 when the string occurs nowhere.
|
|
3979
|
+
private static int condenseSymId(Object cond, String key) {
|
|
3980
|
+
List<?> sym = condenseList(cond, S_condsym);
|
|
3981
|
+
int lo = 0;
|
|
3982
|
+
int hi = sym.size() - 1;
|
|
3983
|
+
while (lo <= hi) {
|
|
3984
|
+
int mid = (lo + hi) >>> 1;
|
|
3985
|
+
Object s = sym.get(mid);
|
|
3986
|
+
if (key.equals(s)) {
|
|
3987
|
+
return mid;
|
|
3988
|
+
}
|
|
3989
|
+
if (0 > condenseCmp(condenseKey(s), key)) {
|
|
3990
|
+
lo = mid + 1;
|
|
3991
|
+
} else {
|
|
3992
|
+
hi = mid - 1;
|
|
3993
|
+
}
|
|
3994
|
+
}
|
|
3995
|
+
return -1;
|
|
3996
|
+
}
|
|
3997
|
+
|
|
3998
|
+
// The node index of key inside node idx, or -1. Touches only this node.
|
|
3999
|
+
private static int condenseChild(Object cond, int idx, Object key) {
|
|
4000
|
+
Object enc = condenseEnc(cond, idx);
|
|
4001
|
+
if (null == enc || !(key instanceof String || key instanceof Number)) {
|
|
4002
|
+
return -1;
|
|
4003
|
+
}
|
|
4004
|
+
|
|
4005
|
+
if (condenseIs(enc, CONDENSE_MAP)) {
|
|
4006
|
+
int symid = condenseSymId(cond, condenseKey(key));
|
|
4007
|
+
if (0 > symid) {
|
|
4008
|
+
return -1;
|
|
4009
|
+
}
|
|
4010
|
+
// Pairs live at [1,2], [3,4], ... with keys ascending: bisect the pairs.
|
|
4011
|
+
List<?> pairs = (List<?>) enc;
|
|
4012
|
+
int lo = 0;
|
|
4013
|
+
int hi = (pairs.size() - 1) / 2 - 1;
|
|
4014
|
+
while (lo <= hi) {
|
|
4015
|
+
int mid = (lo + hi) >>> 1;
|
|
4016
|
+
double k = pairs.get(1 + mid * 2) instanceof Number n ? n.doubleValue() : Double.NaN;
|
|
4017
|
+
if (k == symid) {
|
|
4018
|
+
return condenseIndex(pairs.get(2 + mid * 2));
|
|
4019
|
+
}
|
|
4020
|
+
if (k < symid) {
|
|
4021
|
+
lo = mid + 1;
|
|
4022
|
+
} else {
|
|
4023
|
+
hi = mid - 1;
|
|
4024
|
+
}
|
|
4025
|
+
}
|
|
4026
|
+
return -1;
|
|
4027
|
+
}
|
|
4028
|
+
|
|
4029
|
+
if (condenseIs(enc, CONDENSE_LIST)) {
|
|
4030
|
+
List<?> items = (List<?>) enc;
|
|
4031
|
+
double i = listIndex(key);
|
|
4032
|
+
if (!(0 <= i && i < items.size() - 1)) {
|
|
4033
|
+
return -1;
|
|
4034
|
+
}
|
|
4035
|
+
return condenseIndex(items.get(1 + (int) i));
|
|
4036
|
+
}
|
|
4037
|
+
|
|
4038
|
+
return -1;
|
|
4039
|
+
}
|
|
4040
|
+
|
|
4041
|
+
private static int condenseResolve(Object cond, int idx, Object path) {
|
|
4042
|
+
List<?> parts;
|
|
4043
|
+
if (path instanceof List<?> l) {
|
|
4044
|
+
parts = l;
|
|
4045
|
+
} else if (path instanceof String s) {
|
|
4046
|
+
parts = s.isEmpty() ? List.of() : Arrays.asList(s.split("\\.", -1));
|
|
4047
|
+
} else if (null == path || UNDEF == path) {
|
|
4048
|
+
parts = List.of();
|
|
4049
|
+
} else {
|
|
4050
|
+
parts = List.of(condenseKey(path));
|
|
4051
|
+
}
|
|
4052
|
+
|
|
4053
|
+
int at = idx;
|
|
4054
|
+
for (Object part : parts) {
|
|
4055
|
+
if (0 > at) {
|
|
4056
|
+
return -1;
|
|
4057
|
+
}
|
|
4058
|
+
if (S_MT.equals(part)) {
|
|
4059
|
+
continue;
|
|
4060
|
+
}
|
|
4061
|
+
at = condenseChild(cond, at, part);
|
|
4062
|
+
}
|
|
4063
|
+
return at;
|
|
4064
|
+
}
|
|
4065
|
+
|
|
4066
|
+
private static Object condenseMaterialise(Object cond, int idx) {
|
|
4067
|
+
return 0 > idx
|
|
4068
|
+
? UNDEF
|
|
4069
|
+
: condenseRebuild(condenseList(cond, S_condsym), condenseList(cond, S_condnode), idx);
|
|
4070
|
+
}
|
|
4071
|
+
|
|
4072
|
+
// Every call builds new containers, so materialisations never share one.
|
|
4073
|
+
private static Object condenseRebuild(List<?> sym, List<?> node, int i) {
|
|
4074
|
+
Object enc = condenseAt(node, i);
|
|
4075
|
+
if (null == enc || UNDEF == enc) {
|
|
4076
|
+
return UNDEF;
|
|
4077
|
+
}
|
|
4078
|
+
if (condenseIs(enc, CONDENSE_MAP)) {
|
|
4079
|
+
List<?> pairs = (List<?>) enc;
|
|
4080
|
+
Map<String, Object> out = new LinkedHashMap<>();
|
|
4081
|
+
for (int j = 1; j < pairs.size(); j += 2) {
|
|
4082
|
+
out.put(condenseKey(condenseAt(sym, condenseIndex(pairs.get(j)))),
|
|
4083
|
+
condenseRebuild(sym, node, condenseIndex(condenseAt(pairs, j + 1))));
|
|
4084
|
+
}
|
|
4085
|
+
return out;
|
|
4086
|
+
}
|
|
4087
|
+
if (condenseIs(enc, CONDENSE_LIST)) {
|
|
4088
|
+
List<?> items = (List<?>) enc;
|
|
4089
|
+
List<Object> out = new ArrayList<>(items.size() - 1);
|
|
4090
|
+
for (int j = 1; j < items.size(); j++) {
|
|
4091
|
+
out.add(condenseRebuild(sym, node, condenseIndex(items.get(j))));
|
|
4092
|
+
}
|
|
4093
|
+
return out;
|
|
4094
|
+
}
|
|
4095
|
+
if (condenseIs(enc, CONDENSE_STR)) {
|
|
4096
|
+
return condenseAt(sym, condenseIndex(condenseAt((List<?>) enc, 1)));
|
|
4097
|
+
}
|
|
4098
|
+
if (condenseIs(enc, CONDENSE_NUM)) {
|
|
4099
|
+
return condenseAt((List<?>) enc, 1);
|
|
4100
|
+
}
|
|
4101
|
+
if (condenseIs(enc, CONDENSE_TRUE)) {
|
|
4102
|
+
return true;
|
|
4103
|
+
}
|
|
4104
|
+
if (condenseIs(enc, CONDENSE_FALSE)) {
|
|
4105
|
+
return false;
|
|
4106
|
+
}
|
|
4107
|
+
return null;
|
|
4108
|
+
}
|
|
4109
|
+
|
|
4110
|
+
/**
|
|
4111
|
+
* Fully materialise a condensed structure; any other value comes back
|
|
4112
|
+
* unchanged. Correct for any caller, but it gives up every benefit of
|
|
4113
|
+
* condensing, so prefer a view or a path read.
|
|
4114
|
+
*/
|
|
4115
|
+
public static Object expand(Object cond) {
|
|
4116
|
+
if (!iscondensed(cond)) {
|
|
4117
|
+
return cond;
|
|
4118
|
+
}
|
|
4119
|
+
return condenseMaterialise(cond, condenseRoot(cond));
|
|
4120
|
+
}
|
|
4121
|
+
|
|
4122
|
+
// The keys of node idx, without materialising any of its values.
|
|
4123
|
+
private static List<String> condenseKeys(Object cond, int idx) {
|
|
4124
|
+
Object enc = condenseEnc(cond, idx);
|
|
4125
|
+
List<String> out = new ArrayList<>();
|
|
4126
|
+
if (condenseIs(enc, CONDENSE_MAP)) {
|
|
4127
|
+
List<?> sym = condenseList(cond, S_condsym);
|
|
4128
|
+
List<?> pairs = (List<?>) enc;
|
|
4129
|
+
for (int j = 1; j < pairs.size(); j += 2) {
|
|
4130
|
+
out.add(condenseKey(condenseAt(sym, condenseIndex(pairs.get(j)))));
|
|
4131
|
+
}
|
|
4132
|
+
} else if (condenseIs(enc, CONDENSE_LIST)) {
|
|
4133
|
+
for (int j = 1; j < ((List<?>) enc).size(); j++) {
|
|
4134
|
+
out.add(Integer.toString(j - 1));
|
|
4135
|
+
}
|
|
4136
|
+
}
|
|
4137
|
+
return out;
|
|
4138
|
+
}
|
|
4139
|
+
|
|
4140
|
+
/**
|
|
4141
|
+
* A cursor into a condensed structure. Reads resolve by integer index and
|
|
4142
|
+
* touch only the nodes on the path, so a lookup costs path depth and result
|
|
4143
|
+
* size, never total structure size.
|
|
4144
|
+
*/
|
|
4145
|
+
public static final class CondenseView {
|
|
4146
|
+
private final Object cond;
|
|
4147
|
+
private final int start;
|
|
4148
|
+
private final Map<Integer, Object> refmemo;
|
|
4149
|
+
|
|
4150
|
+
private CondenseView(Object cond, int start, Map<Integer, Object> refmemo) {
|
|
4151
|
+
this.cond = cond;
|
|
4152
|
+
this.start = start;
|
|
4153
|
+
this.refmemo = refmemo;
|
|
4154
|
+
}
|
|
4155
|
+
|
|
4156
|
+
/** The value at path, materialised: a container comes back as an independent copy. */
|
|
4157
|
+
public Object get(Object path) {
|
|
4158
|
+
return condenseMaterialise(cond, condenseResolve(cond, start, path));
|
|
4159
|
+
}
|
|
4160
|
+
|
|
4161
|
+
public Object get() {
|
|
4162
|
+
return get(UNDEF);
|
|
4163
|
+
}
|
|
4164
|
+
|
|
4165
|
+
/** Key names at path, with no value decoding at all. */
|
|
4166
|
+
public List<String> keys(Object path) {
|
|
4167
|
+
int at = condenseResolve(cond, start, path);
|
|
4168
|
+
return 0 > at ? new ArrayList<>() : condenseKeys(cond, at);
|
|
4169
|
+
}
|
|
4170
|
+
|
|
4171
|
+
public List<String> keys() {
|
|
4172
|
+
return keys(UNDEF);
|
|
4173
|
+
}
|
|
4174
|
+
|
|
4175
|
+
public boolean has(Object path) {
|
|
4176
|
+
return 0 <= condenseResolve(cond, start, path);
|
|
4177
|
+
}
|
|
4178
|
+
|
|
4179
|
+
public boolean has() {
|
|
4180
|
+
return has(UNDEF);
|
|
4181
|
+
}
|
|
4182
|
+
|
|
4183
|
+
/** A view at path, sharing this view's ref() memo. No decoding happens here. */
|
|
4184
|
+
public CondenseView at(Object path) {
|
|
4185
|
+
return condenseview(cond, condenseResolve(cond, start, path), refmemo);
|
|
4186
|
+
}
|
|
4187
|
+
|
|
4188
|
+
public CondenseView at() {
|
|
4189
|
+
return at(UNDEF);
|
|
4190
|
+
}
|
|
4191
|
+
|
|
4192
|
+
public Object value() {
|
|
4193
|
+
return condenseMaterialise(cond, start);
|
|
4194
|
+
}
|
|
4195
|
+
|
|
4196
|
+
public int size() {
|
|
4197
|
+
Object enc = condenseEnc(cond, start);
|
|
4198
|
+
if (condenseIs(enc, CONDENSE_MAP)) {
|
|
4199
|
+
return (((List<?>) enc).size() - 1) / 2;
|
|
4200
|
+
}
|
|
4201
|
+
if (condenseIs(enc, CONDENSE_LIST)) {
|
|
4202
|
+
return ((List<?>) enc).size() - 1;
|
|
4203
|
+
}
|
|
4204
|
+
return 0;
|
|
4205
|
+
}
|
|
4206
|
+
|
|
4207
|
+
public boolean exists() {
|
|
4208
|
+
return 0 <= start;
|
|
4209
|
+
}
|
|
4210
|
+
|
|
4211
|
+
/**
|
|
4212
|
+
* A SHARED materialisation: the same object for the same node, every time.
|
|
4213
|
+
* Mutating it corrupts every other reader of that node, including ones
|
|
4214
|
+
* reached by a different path, because the structure is a DAG.
|
|
4215
|
+
*/
|
|
4216
|
+
public Object ref() {
|
|
4217
|
+
Object got = refmemo.getOrDefault(start, UNDEF);
|
|
4218
|
+
if (UNDEF == got) {
|
|
4219
|
+
got = condenseMaterialise(cond, start);
|
|
4220
|
+
refmemo.put(start, got);
|
|
4221
|
+
}
|
|
4222
|
+
return got;
|
|
4223
|
+
}
|
|
4224
|
+
}
|
|
4225
|
+
|
|
4226
|
+
public static CondenseView condenseview(Object cond) {
|
|
4227
|
+
return condenseview(cond, null, null);
|
|
4228
|
+
}
|
|
4229
|
+
|
|
4230
|
+
public static CondenseView condenseview(Object cond, Integer idx) {
|
|
4231
|
+
return condenseview(cond, idx, null);
|
|
4232
|
+
}
|
|
4233
|
+
|
|
4234
|
+
public static CondenseView condenseview(Object cond, Integer idx, Map<Integer, Object> memo) {
|
|
4235
|
+
int start = null != idx ? idx : iscondensed(cond) ? condenseRoot(cond) : -1;
|
|
4236
|
+
// The memo is threaded through at(), so every view into one structure
|
|
4237
|
+
// hands out the same ref() node.
|
|
4238
|
+
return new CondenseView(cond, start, null == memo ? new HashMap<>() : memo);
|
|
4239
|
+
}
|
|
4240
|
+
|
|
3242
4241
|
|
|
3243
4242
|
// ===========================================================================
|
|
3244
4243
|
// Injection
|
|
@@ -3282,12 +4281,14 @@ public class Struct {
|
|
|
3282
4281
|
public Modify modify; // optional value-mutation hook
|
|
3283
4282
|
public Injection prior; // calling injection (chain upwards)
|
|
3284
4283
|
public Object extra; // free-form passthrough
|
|
4284
|
+
public boolean named; // current map node names keys of its own (not $ commands)
|
|
3285
4285
|
|
|
3286
4286
|
/** Top-level constructor: mirrors {@code new Injection(val, parent)} in TS. */
|
|
3287
4287
|
public Injection(Object val, Object parent) {
|
|
3288
4288
|
this.val = val;
|
|
3289
4289
|
this.parent = parent;
|
|
3290
4290
|
this.errs = new ArrayList<>();
|
|
4291
|
+
this.named = false;
|
|
3291
4292
|
this.dparent = UNDEF;
|
|
3292
4293
|
this.dpath = new ArrayList<>(List.of(S_DTOP));
|
|
3293
4294
|
this.mode = M_VAL;
|
|
@@ -3390,7 +4391,10 @@ public class Struct {
|
|
|
3390
4391
|
public Object setval(Object val, int ancestor) {
|
|
3391
4392
|
Object parent;
|
|
3392
4393
|
if (ancestor < 2) {
|
|
3393
|
-
if (val == UNDEF) {
|
|
4394
|
+
if (val == UNDEF && islist(this.parent)) {
|
|
4395
|
+
// A list keeps the removed slot as a hole until inject's loop ends.
|
|
4396
|
+
parent = setprop(this.parent, this.key, SKIP);
|
|
4397
|
+
} else if (val == UNDEF) {
|
|
3394
4398
|
parent = delprop(this.parent, this.key);
|
|
3395
4399
|
this.parent = parent;
|
|
3396
4400
|
} else {
|
|
@@ -3538,6 +4542,16 @@ public class Struct {
|
|
|
3538
4542
|
}
|
|
3539
4543
|
public List<Object> select(Object c, Object q) { return Struct.select(c, q); }
|
|
3540
4544
|
|
|
4545
|
+
// Condense
|
|
4546
|
+
public Map<String, Object> condense(Object v) { return Struct.condense(v); }
|
|
4547
|
+
public Object expand(Object c) { return Struct.expand(c); }
|
|
4548
|
+
public boolean iscondensed(Object v) { return Struct.iscondensed(v); }
|
|
4549
|
+
public CondenseView condenseview(Object c) { return Struct.condenseview(c); }
|
|
4550
|
+
public CondenseView condenseview(Object c, Integer i) { return Struct.condenseview(c, i); }
|
|
4551
|
+
public CondenseView condenseview(Object c, Integer i, Map<Integer, Object> m) {
|
|
4552
|
+
return Struct.condenseview(c, i, m);
|
|
4553
|
+
}
|
|
4554
|
+
|
|
3541
4555
|
// Injection helpers
|
|
3542
4556
|
public boolean checkPlacement(int m, String n, int pt, Injection i) {
|
|
3543
4557
|
return Struct.checkPlacement(m, n, pt, i);
|