@voxgig/sdkgen 4.34.0 → 4.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/voxgig-sdkgen +1 -1
- package/dist/action/copies.d.ts +4 -3
- package/dist/action/copies.js +142 -45
- package/dist/action/copies.js.map +1 -1
- package/dist/action/doctor.d.ts +1 -0
- package/dist/action/doctor.js +6 -2
- package/dist/action/doctor.js.map +1 -1
- package/dist/action/package.d.ts +3 -1
- package/dist/action/package.js +12 -5
- package/dist/action/package.js.map +1 -1
- package/dist/action/resolve.d.ts +11 -2
- package/dist/action/resolve.js +27 -0
- package/dist/action/resolve.js.map +1 -1
- package/dist/admin/npm-trust.js +7 -7
- package/dist/admin/npm-trust.js.map +1 -1
- package/dist/cmp/AgentGuide.js +4 -3
- package/dist/cmp/AgentGuide.js.map +1 -1
- package/dist/cmp/AgentGuideFeature.js +3 -2
- package/dist/cmp/AgentGuideFeature.js.map +1 -1
- package/dist/cmp/AgentGuideTop.js +2 -1
- package/dist/cmp/AgentGuideTop.js.map +1 -1
- package/dist/cmp/Changelog.js +2 -1
- package/dist/cmp/Changelog.js.map +1 -1
- package/dist/cmp/Deploy.js +2 -1
- package/dist/cmp/Deploy.js.map +1 -1
- package/dist/cmp/Entity.js +2 -2
- package/dist/cmp/Entity.js.map +1 -1
- package/dist/cmp/ExternalTarget.js +2 -1
- package/dist/cmp/ExternalTarget.js.map +1 -1
- package/dist/cmp/Feature.js +2 -1
- package/dist/cmp/Feature.js.map +1 -1
- package/dist/cmp/FeatureHook.js +2 -1
- package/dist/cmp/FeatureHook.js.map +1 -1
- package/dist/cmp/License.js +6 -4
- package/dist/cmp/License.js.map +1 -1
- package/dist/cmp/Main.js +2 -2
- package/dist/cmp/Main.js.map +1 -1
- package/dist/cmp/PublishWorkflow.js +2 -1
- package/dist/cmp/PublishWorkflow.js.map +1 -1
- package/dist/cmp/Readme.js +2 -1
- package/dist/cmp/Readme.js.map +1 -1
- package/dist/cmp/ReadmeEntity.js +4 -4
- package/dist/cmp/ReadmeEntity.js.map +1 -1
- package/dist/cmp/ReadmeErrors.js +6 -4
- package/dist/cmp/ReadmeErrors.js.map +1 -1
- package/dist/cmp/ReadmeExplanation.js +4 -3
- package/dist/cmp/ReadmeExplanation.js.map +1 -1
- package/dist/cmp/ReadmeFeatures.js +4 -3
- package/dist/cmp/ReadmeFeatures.js.map +1 -1
- package/dist/cmp/ReadmeHowto.js +4 -3
- package/dist/cmp/ReadmeHowto.js.map +1 -1
- package/dist/cmp/ReadmeInstall.js +4 -3
- package/dist/cmp/ReadmeInstall.js.map +1 -1
- package/dist/cmp/ReadmeIntro.js +4 -4
- package/dist/cmp/ReadmeIntro.js.map +1 -1
- package/dist/cmp/ReadmeModel.js +6 -3
- package/dist/cmp/ReadmeModel.js.map +1 -1
- package/dist/cmp/ReadmeOptions.js +4 -4
- package/dist/cmp/ReadmeOptions.js.map +1 -1
- package/dist/cmp/ReadmeQuick.js +4 -3
- package/dist/cmp/ReadmeQuick.js.map +1 -1
- package/dist/cmp/ReadmeRef.js +4 -4
- package/dist/cmp/ReadmeRef.js.map +1 -1
- package/dist/cmp/ReadmeRefFeatures.js +2 -1
- package/dist/cmp/ReadmeRefFeatures.js.map +1 -1
- package/dist/cmp/ReadmeStation.js +2 -1
- package/dist/cmp/ReadmeStation.js.map +1 -1
- package/dist/cmp/ReadmeTop.js +104 -35
- package/dist/cmp/ReadmeTop.js.map +1 -1
- package/dist/cmp/ReadmeUnions.js +2 -1
- package/dist/cmp/ReadmeUnions.js.map +1 -1
- package/dist/cmp/Registered.js +4 -3
- package/dist/cmp/Registered.js.map +1 -1
- package/dist/cmp/Security.js +10 -6
- package/dist/cmp/Security.js.map +1 -1
- package/dist/cmp/Test.js +2 -1
- package/dist/cmp/Test.js.map +1 -1
- package/dist/cmp/TestControl.js +2 -1
- package/dist/cmp/TestControl.js.map +1 -1
- package/dist/helpers/component.d.ts +4 -0
- package/dist/helpers/component.js +54 -0
- package/dist/helpers/component.js.map +1 -0
- package/dist/helpers/definition.js +2 -2
- package/dist/helpers/definition.js.map +1 -1
- package/dist/helpers/definitionPlan.d.ts +16 -0
- package/dist/helpers/definitionPlan.js +116 -12
- package/dist/helpers/definitionPlan.js.map +1 -1
- package/dist/helpers/featureSource.d.ts +2 -1
- package/dist/helpers/featureSource.js +44 -2
- package/dist/helpers/featureSource.js.map +1 -1
- package/dist/helpers/flowGuard.d.ts +8 -0
- package/dist/helpers/flowGuard.js +84 -0
- package/dist/helpers/flowGuard.js.map +1 -0
- package/dist/helpers/generated.d.ts +26 -0
- package/dist/helpers/generated.js +363 -0
- package/dist/helpers/generated.js.map +1 -0
- package/dist/helpers/mcpTools.d.ts +11 -0
- package/dist/helpers/mcpTools.js +28 -0
- package/dist/helpers/mcpTools.js.map +1 -0
- package/dist/helpers/media.d.ts +9 -0
- package/dist/helpers/media.js +61 -0
- package/dist/helpers/media.js.map +1 -0
- package/dist/helpers/modelNames.js +147 -14
- package/dist/helpers/modelNames.js.map +1 -1
- package/dist/helpers/naming.d.ts +11 -1
- package/dist/helpers/naming.js +143 -0
- package/dist/helpers/naming.js.map +1 -1
- package/dist/helpers/npm.d.ts +13 -0
- package/dist/helpers/npm.js +41 -0
- package/dist/helpers/npm.js.map +1 -0
- package/dist/helpers/npmScripts.d.ts +4 -0
- package/dist/helpers/npmScripts.js +30 -0
- package/dist/helpers/npmScripts.js.map +1 -0
- package/dist/helpers/opExample.d.ts +5 -4
- package/dist/helpers/opExample.js +10 -7
- package/dist/helpers/opExample.js.map +1 -1
- package/dist/helpers/opShape.d.ts +20 -4
- package/dist/helpers/opShape.js +197 -30
- package/dist/helpers/opShape.js.map +1 -1
- package/dist/helpers/optional.d.ts +20 -0
- package/dist/helpers/optional.js +51 -0
- package/dist/helpers/optional.js.map +1 -0
- package/dist/helpers/packageMeta.d.ts +9 -1
- package/dist/helpers/packageMeta.js +70 -11
- package/dist/helpers/packageMeta.js.map +1 -1
- package/dist/helpers/stdrep.js +3 -0
- package/dist/helpers/stdrep.js.map +1 -1
- package/dist/helpers/testPolicy.d.ts +9 -1
- package/dist/helpers/testPolicy.js +48 -0
- package/dist/helpers/testPolicy.js.map +1 -1
- package/dist/helpers/text.d.ts +2 -0
- package/dist/helpers/text.js +27 -0
- package/dist/helpers/text.js.map +1 -0
- package/dist/sdkgen.d.ts +15 -8
- package/dist/sdkgen.js +79 -12
- package/dist/sdkgen.js.map +1 -1
- package/dist/testkit.js +2 -1
- package/dist/testkit.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utility.d.ts +2 -1
- package/dist/utility.js +33 -18
- package/dist/utility.js.map +1 -1
- package/model/sdkgen.aontu +24 -1
- package/package.json +8 -2
- package/project/.sdk/model/feature/timeout.aontu +2 -0
- package/project/.sdk/model/target/go-mcp.aontu +2 -0
- package/project/.sdk/src/cmp/c/Config_c.ts +5 -0
- package/project/.sdk/src/cmp/c/EntityTypes_c.ts +1 -1
- package/project/.sdk/src/cmp/c/Entity_c.ts +1 -1
- package/project/.sdk/src/cmp/c/Main_c.ts +4 -20
- package/project/.sdk/src/cmp/c/PrepareAuth_c.ts +169 -51
- package/project/.sdk/src/cmp/c/ReadmeEntity_c.ts +22 -13
- package/project/.sdk/src/cmp/c/ReadmeHowto_c.ts +10 -5
- package/project/.sdk/src/cmp/c/ReadmeInstall_c.ts +2 -2
- package/project/.sdk/src/cmp/c/ReadmeIntro_c.ts +3 -3
- package/project/.sdk/src/cmp/c/ReadmeModel_c.ts +11 -10
- package/project/.sdk/src/cmp/c/ReadmeQuick_c.ts +37 -20
- package/project/.sdk/src/cmp/c/ReadmeRef_c.ts +39 -21
- package/project/.sdk/src/cmp/c/ReadmeTopQuick_c.ts +9 -7
- package/project/.sdk/src/cmp/c/ReadmeTopTest_c.ts +15 -4
- package/project/.sdk/src/cmp/c/TestClean_c.ts +56 -22
- package/project/.sdk/src/cmp/c/TestDirect_c.ts +2 -2
- package/project/.sdk/src/cmp/c/TestEntity_c.ts +77 -4
- package/project/.sdk/src/cmp/c/fragment/Entity.fragment.c +33 -27
- package/project/.sdk/src/cmp/c/fragment/EntityPatchOp.fragment.c +36 -0
- package/project/.sdk/src/cmp/c/fragment/Main.fragment.c +40 -7
- package/project/.sdk/src/cmp/clojure/Entity_clojure.ts +1 -1
- package/project/.sdk/src/cmp/clojure/Main_clojure.ts +3 -1
- package/project/.sdk/src/cmp/clojure/PrepareAuth_clojure.ts +44 -28
- package/project/.sdk/src/cmp/clojure/ReadmeEntity_clojure.ts +7 -4
- package/project/.sdk/src/cmp/clojure/ReadmeHowto_clojure.ts +1 -1
- package/project/.sdk/src/cmp/clojure/ReadmeInstall_clojure.ts +3 -3
- package/project/.sdk/src/cmp/clojure/ReadmeIntro_clojure.ts +3 -3
- package/project/.sdk/src/cmp/clojure/ReadmeModel_clojure.ts +7 -5
- package/project/.sdk/src/cmp/clojure/ReadmeQuick_clojure.ts +12 -4
- package/project/.sdk/src/cmp/clojure/ReadmeRef_clojure.ts +24 -7
- package/project/.sdk/src/cmp/clojure/ReadmeTopQuick_clojure.ts +2 -2
- package/project/.sdk/src/cmp/clojure/ReadmeTopTest_clojure.ts +1 -1
- package/project/.sdk/src/cmp/clojure/TestClean_clojure.ts +53 -23
- package/project/.sdk/src/cmp/clojure/TestEntity_clojure.ts +64 -5
- package/project/.sdk/src/cmp/clojure/fragment/Entity.fragment.clj +22 -11
- package/project/.sdk/src/cmp/clojure/fragment/EntityListOp.fragment.clj +7 -9
- package/project/.sdk/src/cmp/clojure/fragment/EntityPatchOp.fragment.clj +15 -0
- package/project/.sdk/src/cmp/cpp/EntityTypes_cpp.ts +1 -1
- package/project/.sdk/src/cmp/cpp/Entity_cpp.ts +2 -2
- package/project/.sdk/src/cmp/cpp/Main_cpp.ts +3 -19
- package/project/.sdk/src/cmp/cpp/PrepareAuth_cpp.ts +38 -39
- package/project/.sdk/src/cmp/cpp/ReadmeEntity_cpp.ts +19 -12
- package/project/.sdk/src/cmp/cpp/ReadmeHowto_cpp.ts +11 -6
- package/project/.sdk/src/cmp/cpp/ReadmeInstall_cpp.ts +2 -2
- package/project/.sdk/src/cmp/cpp/ReadmeIntro_cpp.ts +3 -3
- package/project/.sdk/src/cmp/cpp/ReadmeModel_cpp.ts +10 -9
- package/project/.sdk/src/cmp/cpp/ReadmeQuick_cpp.ts +26 -18
- package/project/.sdk/src/cmp/cpp/ReadmeRef_cpp.ts +42 -25
- package/project/.sdk/src/cmp/cpp/ReadmeTopQuick_cpp.ts +7 -7
- package/project/.sdk/src/cmp/cpp/ReadmeTopTest_cpp.ts +11 -4
- package/project/.sdk/src/cmp/cpp/TestClean_cpp.ts +69 -21
- package/project/.sdk/src/cmp/cpp/TestEntity_cpp.ts +135 -6
- package/project/.sdk/src/cmp/cpp/fragment/Entity.fragment.cpp +2 -0
- package/project/.sdk/src/cmp/cpp/fragment/EntityPatchOp.fragment.cpp +28 -0
- package/project/.sdk/src/cmp/csharp/EntityTypes_csharp.ts +1 -1
- package/project/.sdk/src/cmp/csharp/Entity_csharp.ts +1 -1
- package/project/.sdk/src/cmp/csharp/Main_csharp.ts +3 -1
- package/project/.sdk/src/cmp/csharp/Package_csharp.ts +4 -1
- package/project/.sdk/src/cmp/csharp/PrepareAuth_csharp.ts +69 -23
- package/project/.sdk/src/cmp/csharp/ReadmeEntity_csharp.ts +7 -4
- package/project/.sdk/src/cmp/csharp/ReadmeHowto_csharp.ts +3 -3
- package/project/.sdk/src/cmp/csharp/ReadmeInstall_csharp.ts +3 -3
- package/project/.sdk/src/cmp/csharp/ReadmeIntro_csharp.ts +3 -3
- package/project/.sdk/src/cmp/csharp/ReadmeModel_csharp.ts +11 -9
- package/project/.sdk/src/cmp/csharp/ReadmeQuick_csharp.ts +17 -6
- package/project/.sdk/src/cmp/csharp/ReadmeRef_csharp.ts +33 -16
- package/project/.sdk/src/cmp/csharp/ReadmeTopQuick_csharp.ts +1 -1
- package/project/.sdk/src/cmp/csharp/ReadmeTopTest_csharp.ts +1 -1
- package/project/.sdk/src/cmp/csharp/TestClean_csharp.ts +67 -14
- package/project/.sdk/src/cmp/csharp/TestDirect_csharp.ts +43 -31
- package/project/.sdk/src/cmp/csharp/TestEntity_csharp.ts +187 -15
- package/project/.sdk/src/cmp/csharp/fragment/Entity.fragment.cs +2 -0
- package/project/.sdk/src/cmp/csharp/fragment/EntityBase.fragment.cs +11 -2
- package/project/.sdk/src/cmp/csharp/fragment/EntityPatchOp.fragment.cs +41 -0
- package/project/.sdk/src/cmp/csharp/fragment/Main.fragment.cs +28 -4
- package/project/.sdk/src/cmp/csharp/utility_csharp.ts +6 -0
- package/project/.sdk/src/cmp/elixir/EntityOperation_elixir.ts +5 -0
- package/project/.sdk/src/cmp/elixir/EntityTypes_elixir.ts +3 -3
- package/project/.sdk/src/cmp/elixir/Entity_elixir.ts +22 -1
- package/project/.sdk/src/cmp/elixir/MainEntity_elixir.ts +4 -2
- package/project/.sdk/src/cmp/elixir/Main_elixir.ts +6 -2
- package/project/.sdk/src/cmp/elixir/Package_elixir.ts +7 -0
- package/project/.sdk/src/cmp/elixir/PrepareAuth_elixir.ts +40 -30
- package/project/.sdk/src/cmp/elixir/ReadmeEntity_elixir.ts +13 -9
- package/project/.sdk/src/cmp/elixir/ReadmeHowto_elixir.ts +6 -5
- package/project/.sdk/src/cmp/elixir/ReadmeInstall_elixir.ts +2 -2
- package/project/.sdk/src/cmp/elixir/ReadmeIntro_elixir.ts +4 -4
- package/project/.sdk/src/cmp/elixir/ReadmeModel_elixir.ts +13 -11
- package/project/.sdk/src/cmp/elixir/ReadmeQuick_elixir.ts +25 -12
- package/project/.sdk/src/cmp/elixir/ReadmeRef_elixir.ts +29 -13
- package/project/.sdk/src/cmp/elixir/ReadmeTopQuick_elixir.ts +5 -4
- package/project/.sdk/src/cmp/elixir/ReadmeTopTest_elixir.ts +5 -4
- package/project/.sdk/src/cmp/elixir/TestClean_elixir.ts +41 -12
- package/project/.sdk/src/cmp/elixir/TestEntity_elixir.ts +152 -23
- package/project/.sdk/src/cmp/elixir/fragment/Entity.fragment.ex +4 -4
- package/project/.sdk/src/cmp/elixir/fragment/EntityPatchOp.fragment.ex +35 -0
- package/project/.sdk/src/cmp/elixir/fragment/Main.fragment.ex +29 -5
- package/project/.sdk/src/cmp/elixir/fragment/Pipeline.fragment.ex +23 -16
- package/project/.sdk/src/cmp/go/EntityTypes_go.ts +1 -1
- package/project/.sdk/src/cmp/go/Entity_go.ts +1 -1
- package/project/.sdk/src/cmp/go/Main_go.ts +5 -6
- package/project/.sdk/src/cmp/go/PrepareAuth_go.ts +40 -26
- package/project/.sdk/src/cmp/go/ReadmeEntity_go.ts +1 -0
- package/project/.sdk/src/cmp/go/ReadmeExamplesTest_go.ts +6 -1
- package/project/.sdk/src/cmp/go/ReadmeHowto_go.ts +1 -1
- package/project/.sdk/src/cmp/go/ReadmeInstall_go.ts +3 -3
- package/project/.sdk/src/cmp/go/ReadmeIntro_go.ts +3 -3
- package/project/.sdk/src/cmp/go/ReadmeModel_go.ts +3 -2
- package/project/.sdk/src/cmp/go/ReadmeQuick_go.ts +14 -0
- package/project/.sdk/src/cmp/go/ReadmeRef_go.ts +29 -7
- package/project/.sdk/src/cmp/go/ReadmeTopTest_go.ts +1 -1
- package/project/.sdk/src/cmp/go/TestClean_go.ts +81 -18
- package/project/.sdk/src/cmp/go/TestDirect_go.ts +47 -53
- package/project/.sdk/src/cmp/go/TestEntity_go.ts +204 -24
- package/project/.sdk/src/cmp/go/fragment/Entity.fragment.go +79 -60
- package/project/.sdk/src/cmp/go/fragment/EntityPatchOp.fragment.go +49 -0
- package/project/.sdk/src/cmp/go/fragment/Main.fragment.go +26 -5
- package/project/.sdk/src/cmp/go-cli/Main_go-cli.ts +8 -10
- package/project/.sdk/src/cmp/go-mcp/Main_go-mcp.ts +240 -121
- package/project/.sdk/src/cmp/go-mcp/fragment/main.fragment.go +1 -1
- package/project/.sdk/src/cmp/go-mcp/fragment/tools.fragment.go +34 -27
- package/project/.sdk/src/cmp/java/EntityTypes_java.ts +1 -1
- package/project/.sdk/src/cmp/java/Entity_java.ts +1 -1
- package/project/.sdk/src/cmp/java/Main_java.ts +3 -1
- package/project/.sdk/src/cmp/java/PrepareAuth_java.ts +58 -23
- package/project/.sdk/src/cmp/java/ReadmeEntity_java.ts +7 -4
- package/project/.sdk/src/cmp/java/ReadmeHowto_java.ts +1 -1
- package/project/.sdk/src/cmp/java/ReadmeInstall_java.ts +3 -3
- package/project/.sdk/src/cmp/java/ReadmeIntro_java.ts +3 -3
- package/project/.sdk/src/cmp/java/ReadmeModel_java.ts +2 -1
- package/project/.sdk/src/cmp/java/ReadmeQuick_java.ts +10 -1
- package/project/.sdk/src/cmp/java/ReadmeRef_java.ts +22 -5
- package/project/.sdk/src/cmp/java/ReadmeTopTest_java.ts +1 -1
- package/project/.sdk/src/cmp/java/TestClean_java.ts +57 -12
- package/project/.sdk/src/cmp/java/TestDirect_java.ts +50 -36
- package/project/.sdk/src/cmp/java/TestEntity_java.ts +180 -13
- package/project/.sdk/src/cmp/java/fragment/Entity.fragment.java +2 -0
- package/project/.sdk/src/cmp/java/fragment/EntityBase.fragment.java +5 -3
- package/project/.sdk/src/cmp/java/fragment/EntityPatchOp.fragment.java +45 -0
- package/project/.sdk/src/cmp/js/EntityTypes_js.ts +1 -1
- package/project/.sdk/src/cmp/js/Entity_js.ts +1 -1
- package/project/.sdk/src/cmp/js/Main_js.ts +2 -0
- package/project/.sdk/src/cmp/js/Package_js.ts +11 -8
- package/project/.sdk/src/cmp/js/PrepareAuth_js.ts +39 -27
- package/project/.sdk/src/cmp/js/ReadmeEntity_js.ts +7 -4
- package/project/.sdk/src/cmp/js/ReadmeHowto_js.ts +0 -3
- package/project/.sdk/src/cmp/js/ReadmeInstall_js.ts +3 -3
- package/project/.sdk/src/cmp/js/ReadmeIntro_js.ts +3 -3
- package/project/.sdk/src/cmp/js/ReadmeModel_js.ts +4 -3
- package/project/.sdk/src/cmp/js/ReadmeQuick_js.ts +17 -0
- package/project/.sdk/src/cmp/js/ReadmeRef_js.ts +37 -8
- package/project/.sdk/src/cmp/js/ReadmeTopHowto_js.ts +2 -3
- package/project/.sdk/src/cmp/js/ReadmeTopTest_js.ts +1 -1
- package/project/.sdk/src/cmp/js/TestClean_js.ts +52 -8
- package/project/.sdk/src/cmp/js/TestDirect_js.ts +81 -54
- package/project/.sdk/src/cmp/js/TestEntity_js.ts +95 -2
- package/project/.sdk/src/cmp/js/TestLive_js.ts +4 -3
- package/project/.sdk/src/cmp/js/fragment/Direct.test.fragment.js +4 -0
- package/project/.sdk/src/cmp/js/fragment/Entity.fragment.js +2 -0
- package/project/.sdk/src/cmp/js/fragment/Entity.test.fragment.js +2 -0
- package/project/.sdk/src/cmp/js/fragment/EntityBase.fragment.js +51 -25
- package/project/.sdk/src/cmp/js/fragment/EntityPatchOp.fragment.js +129 -0
- package/project/.sdk/src/cmp/js/fragment/Main.fragment.js +39 -15
- package/project/.sdk/src/cmp/kotlin/Config_kotlin.ts +4 -0
- package/project/.sdk/src/cmp/kotlin/EntityTypes_kotlin.ts +1 -1
- package/project/.sdk/src/cmp/kotlin/Entity_kotlin.ts +1 -1
- package/project/.sdk/src/cmp/kotlin/Main_kotlin.ts +3 -1
- package/project/.sdk/src/cmp/kotlin/PrepareAuth_kotlin.ts +56 -31
- package/project/.sdk/src/cmp/kotlin/ReadmeEntity_kotlin.ts +7 -4
- package/project/.sdk/src/cmp/kotlin/ReadmeHowto_kotlin.ts +1 -1
- package/project/.sdk/src/cmp/kotlin/ReadmeInstall_kotlin.ts +3 -3
- package/project/.sdk/src/cmp/kotlin/ReadmeIntro_kotlin.ts +3 -3
- package/project/.sdk/src/cmp/kotlin/ReadmeModel_kotlin.ts +2 -1
- package/project/.sdk/src/cmp/kotlin/ReadmeQuick_kotlin.ts +10 -1
- package/project/.sdk/src/cmp/kotlin/ReadmeRef_kotlin.ts +22 -5
- package/project/.sdk/src/cmp/kotlin/ReadmeTopTest_kotlin.ts +1 -1
- package/project/.sdk/src/cmp/kotlin/TestClean_kotlin.ts +45 -10
- package/project/.sdk/src/cmp/kotlin/TestDirect_kotlin.ts +49 -26
- package/project/.sdk/src/cmp/kotlin/TestEntity_kotlin.ts +168 -10
- package/project/.sdk/src/cmp/kotlin/fragment/Entity.fragment.kt +2 -0
- package/project/.sdk/src/cmp/kotlin/fragment/EntityBase.fragment.kt +2 -1
- package/project/.sdk/src/cmp/kotlin/fragment/EntityPatchOp.fragment.kt +40 -0
- package/project/.sdk/src/cmp/lua/EntityTypes_lua.ts +1 -1
- package/project/.sdk/src/cmp/lua/Entity_lua.ts +1 -1
- package/project/.sdk/src/cmp/lua/Main_lua.ts +2 -1
- package/project/.sdk/src/cmp/lua/PrepareAuth_lua.ts +42 -23
- package/project/.sdk/src/cmp/lua/ReadmeEntity_lua.ts +7 -4
- package/project/.sdk/src/cmp/lua/ReadmeExamplesTest_lua.ts +8 -2
- package/project/.sdk/src/cmp/lua/ReadmeHowto_lua.ts +1 -1
- package/project/.sdk/src/cmp/lua/ReadmeInstall_lua.ts +2 -2
- package/project/.sdk/src/cmp/lua/ReadmeIntro_lua.ts +3 -3
- package/project/.sdk/src/cmp/lua/ReadmeModel_lua.ts +3 -2
- package/project/.sdk/src/cmp/lua/ReadmeQuick_lua.ts +9 -1
- package/project/.sdk/src/cmp/lua/ReadmeRef_lua.ts +22 -6
- package/project/.sdk/src/cmp/lua/ReadmeTopTest_lua.ts +1 -1
- package/project/.sdk/src/cmp/lua/TestClean_lua.ts +46 -12
- package/project/.sdk/src/cmp/lua/TestDirect_lua.ts +100 -124
- package/project/.sdk/src/cmp/lua/TestEntity_lua.ts +173 -20
- package/project/.sdk/src/cmp/lua/fragment/Entity.fragment.lua +85 -48
- package/project/.sdk/src/cmp/lua/fragment/EntityPatchOp.fragment.lua +34 -0
- package/project/.sdk/src/cmp/lua/fragment/Main.fragment.lua +28 -6
- package/project/.sdk/src/cmp/ocaml/EntityOperation_ocaml.ts +8 -11
- package/project/.sdk/src/cmp/ocaml/Entity_ocaml.ts +8 -3
- package/project/.sdk/src/cmp/ocaml/Main_ocaml.ts +2 -1
- package/project/.sdk/src/cmp/ocaml/Package_ocaml.ts +7 -5
- package/project/.sdk/src/cmp/ocaml/PrepareAuth_ocaml.ts +39 -34
- package/project/.sdk/src/cmp/ocaml/ReadmeEntity_ocaml.ts +7 -4
- package/project/.sdk/src/cmp/ocaml/ReadmeHowto_ocaml.ts +3 -8
- package/project/.sdk/src/cmp/ocaml/ReadmeInstall_ocaml.ts +2 -2
- package/project/.sdk/src/cmp/ocaml/ReadmeIntro_ocaml.ts +3 -3
- package/project/.sdk/src/cmp/ocaml/ReadmeModel_ocaml.ts +2 -1
- package/project/.sdk/src/cmp/ocaml/ReadmeQuick_ocaml.ts +9 -1
- package/project/.sdk/src/cmp/ocaml/ReadmeRef_ocaml.ts +22 -6
- package/project/.sdk/src/cmp/ocaml/ReadmeTopTest_ocaml.ts +3 -7
- package/project/.sdk/src/cmp/ocaml/TestClean_ocaml.ts +47 -14
- package/project/.sdk/src/cmp/ocaml/TestEntity_ocaml.ts +88 -3
- package/project/.sdk/src/cmp/ocaml/fragment/RunOp.fragment.ml +10 -11
- package/project/.sdk/src/cmp/ocaml/utility_ocaml.ts +7 -0
- package/project/.sdk/src/cmp/perl/Entity_perl.ts +1 -1
- package/project/.sdk/src/cmp/perl/Main_perl.ts +3 -1
- package/project/.sdk/src/cmp/perl/Package_perl.ts +5 -4
- package/project/.sdk/src/cmp/perl/PrepareAuth_perl.ts +48 -33
- package/project/.sdk/src/cmp/perl/ReadmeEntity_perl.ts +9 -4
- package/project/.sdk/src/cmp/perl/ReadmeExamplesTest_perl.ts +2 -2
- package/project/.sdk/src/cmp/perl/ReadmeHowto_perl.ts +1 -1
- package/project/.sdk/src/cmp/perl/ReadmeInstall_perl.ts +9 -3
- package/project/.sdk/src/cmp/perl/ReadmeIntro_perl.ts +3 -3
- package/project/.sdk/src/cmp/perl/ReadmeModel_perl.ts +7 -5
- package/project/.sdk/src/cmp/perl/ReadmeQuick_perl.ts +12 -4
- package/project/.sdk/src/cmp/perl/ReadmeRef_perl.ts +26 -9
- package/project/.sdk/src/cmp/perl/ReadmeTopQuick_perl.ts +2 -2
- package/project/.sdk/src/cmp/perl/ReadmeTopTest_perl.ts +1 -1
- package/project/.sdk/src/cmp/perl/TestClean_perl.ts +42 -11
- package/project/.sdk/src/cmp/perl/TestDirect_perl.ts +121 -149
- package/project/.sdk/src/cmp/perl/TestEntity_perl.ts +178 -17
- package/project/.sdk/src/cmp/perl/fragment/Entity.fragment.pm +16 -2
- package/project/.sdk/src/cmp/perl/fragment/EntityListOp.fragment.pm +2 -13
- package/project/.sdk/src/cmp/perl/fragment/EntityPatchOp.fragment.pm +32 -0
- package/project/.sdk/src/cmp/perl/fragment/Main.fragment.pm +23 -5
- package/project/.sdk/src/cmp/perl/utility_perl.ts +16 -0
- package/project/.sdk/src/cmp/php/EntityTypes_php.ts +3 -3
- package/project/.sdk/src/cmp/php/Entity_php.ts +4 -3
- package/project/.sdk/src/cmp/php/MainEntity_php.ts +1 -1
- package/project/.sdk/src/cmp/php/Main_php.ts +3 -1
- package/project/.sdk/src/cmp/php/Package_php.ts +1 -1
- package/project/.sdk/src/cmp/php/PrepareAuth_php.ts +36 -28
- package/project/.sdk/src/cmp/php/ReadmeEntity_php.ts +7 -4
- package/project/.sdk/src/cmp/php/ReadmeExamplesTest_php.ts +3 -3
- package/project/.sdk/src/cmp/php/ReadmeHowto_php.ts +1 -1
- package/project/.sdk/src/cmp/php/ReadmeInstall_php.ts +2 -2
- package/project/.sdk/src/cmp/php/ReadmeIntro_php.ts +3 -3
- package/project/.sdk/src/cmp/php/ReadmeModel_php.ts +2 -1
- package/project/.sdk/src/cmp/php/ReadmeQuick_php.ts +9 -1
- package/project/.sdk/src/cmp/php/ReadmeRef_php.ts +23 -6
- package/project/.sdk/src/cmp/php/ReadmeTopTest_php.ts +1 -1
- package/project/.sdk/src/cmp/php/TestClean_php.ts +73 -12
- package/project/.sdk/src/cmp/php/TestDirect_php.ts +95 -127
- package/project/.sdk/src/cmp/php/TestEntity_php.ts +219 -20
- package/project/.sdk/src/cmp/php/fragment/Entity.fragment.php +82 -45
- package/project/.sdk/src/cmp/php/fragment/EntityPatchOp.fragment.php +38 -0
- package/project/.sdk/src/cmp/php/fragment/Main.fragment.php +26 -5
- package/project/.sdk/src/cmp/py/EntityTypes_py.ts +1 -1
- package/project/.sdk/src/cmp/py/Entity_py.ts +2 -2
- package/project/.sdk/src/cmp/py/Main_py.ts +6 -2
- package/project/.sdk/src/cmp/py/Package_py.ts +7 -0
- package/project/.sdk/src/cmp/py/PrepareAuth_py.ts +52 -26
- package/project/.sdk/src/cmp/py/ReadmeEntity_py.ts +7 -4
- package/project/.sdk/src/cmp/py/ReadmeExamplesTest_py.ts +12 -6
- package/project/.sdk/src/cmp/py/ReadmeHowto_py.ts +1 -1
- package/project/.sdk/src/cmp/py/ReadmeInstall_py.ts +3 -3
- package/project/.sdk/src/cmp/py/ReadmeIntro_py.ts +3 -3
- package/project/.sdk/src/cmp/py/ReadmeModel_py.ts +2 -1
- package/project/.sdk/src/cmp/py/ReadmeQuick_py.ts +9 -1
- package/project/.sdk/src/cmp/py/ReadmeRef_py.ts +23 -6
- package/project/.sdk/src/cmp/py/ReadmeTopTest_py.ts +1 -1
- package/project/.sdk/src/cmp/py/TestClean_py.ts +41 -10
- package/project/.sdk/src/cmp/py/TestDirect_py.ts +91 -121
- package/project/.sdk/src/cmp/py/TestEntity_py.ts +146 -20
- package/project/.sdk/src/cmp/py/fragment/Entity.fragment.py +62 -42
- package/project/.sdk/src/cmp/py/fragment/EntityPatchOp.fragment.py +27 -0
- package/project/.sdk/src/cmp/py/fragment/Main.fragment.py +23 -5
- package/project/.sdk/src/cmp/py-data/Main_py-data.ts +1 -1
- package/project/.sdk/src/cmp/rb/EntityTypes_rb.ts +3 -3
- package/project/.sdk/src/cmp/rb/Entity_rb.ts +1 -1
- package/project/.sdk/src/cmp/rb/Main_rb.ts +5 -6
- package/project/.sdk/src/cmp/rb/Package_rb.ts +3 -1
- package/project/.sdk/src/cmp/rb/PrepareAuth_rb.ts +30 -28
- package/project/.sdk/src/cmp/rb/ReadmeEntity_rb.ts +9 -5
- package/project/.sdk/src/cmp/rb/ReadmeExamplesTest_rb.ts +16 -8
- package/project/.sdk/src/cmp/rb/ReadmeHowto_rb.ts +1 -1
- package/project/.sdk/src/cmp/rb/ReadmeInstall_rb.ts +2 -2
- package/project/.sdk/src/cmp/rb/ReadmeIntro_rb.ts +3 -3
- package/project/.sdk/src/cmp/rb/ReadmeModel_rb.ts +3 -2
- package/project/.sdk/src/cmp/rb/ReadmeQuick_rb.ts +14 -5
- package/project/.sdk/src/cmp/rb/ReadmeRef_rb.ts +26 -8
- package/project/.sdk/src/cmp/rb/ReadmeTopQuick_rb.ts +2 -2
- package/project/.sdk/src/cmp/rb/ReadmeTopTest_rb.ts +1 -1
- package/project/.sdk/src/cmp/rb/TestClean_rb.ts +36 -10
- package/project/.sdk/src/cmp/rb/TestDirect_rb.ts +95 -126
- package/project/.sdk/src/cmp/rb/TestEntity_rb.ts +177 -21
- package/project/.sdk/src/cmp/rb/fragment/Entity.fragment.rb +49 -29
- package/project/.sdk/src/cmp/rb/fragment/EntityListOp.fragment.rb +2 -11
- package/project/.sdk/src/cmp/rb/fragment/EntityPatchOp.fragment.rb +31 -0
- package/project/.sdk/src/cmp/rb/fragment/Main.fragment.rb +19 -5
- package/project/.sdk/src/cmp/rust/EntityTypes_rust.ts +1 -1
- package/project/.sdk/src/cmp/rust/Entity_rust.ts +2 -2
- package/project/.sdk/src/cmp/rust/Main_rust.ts +7 -6
- package/project/.sdk/src/cmp/rust/PrepareAuth_rust.ts +56 -29
- package/project/.sdk/src/cmp/rust/ReadmeEntity_rust.ts +16 -9
- package/project/.sdk/src/cmp/rust/ReadmeHowto_rust.ts +11 -4
- package/project/.sdk/src/cmp/rust/ReadmeInstall_rust.ts +3 -3
- package/project/.sdk/src/cmp/rust/ReadmeIntro_rust.ts +3 -3
- package/project/.sdk/src/cmp/rust/ReadmeModel_rust.ts +12 -9
- package/project/.sdk/src/cmp/rust/ReadmeQuick_rust.ts +25 -17
- package/project/.sdk/src/cmp/rust/ReadmeRef_rust.ts +35 -21
- package/project/.sdk/src/cmp/rust/ReadmeTopQuick_rust.ts +6 -8
- package/project/.sdk/src/cmp/rust/ReadmeTopTest_rust.ts +13 -5
- package/project/.sdk/src/cmp/rust/TestClean_rust.ts +80 -21
- package/project/.sdk/src/cmp/rust/TestDirect_rust.ts +124 -79
- package/project/.sdk/src/cmp/rust/TestEntity_rust.ts +164 -17
- package/project/.sdk/src/cmp/rust/fragment/Entity.fragment.rs +44 -23
- package/project/.sdk/src/cmp/rust/fragment/EntityPatchOp.fragment.rs +41 -0
- package/project/.sdk/src/cmp/rust/fragment/Main.fragment.rs +39 -9
- package/project/.sdk/src/cmp/scala/Config_scala.ts +4 -0
- package/project/.sdk/src/cmp/scala/EntityTypes_scala.ts +1 -1
- package/project/.sdk/src/cmp/scala/Entity_scala.ts +1 -1
- package/project/.sdk/src/cmp/scala/Main_scala.ts +4 -20
- package/project/.sdk/src/cmp/scala/PrepareAuth_scala.ts +56 -24
- package/project/.sdk/src/cmp/scala/ReadmeEntity_scala.ts +7 -4
- package/project/.sdk/src/cmp/scala/ReadmeHowto_scala.ts +1 -1
- package/project/.sdk/src/cmp/scala/ReadmeInstall_scala.ts +3 -3
- package/project/.sdk/src/cmp/scala/ReadmeIntro_scala.ts +3 -3
- package/project/.sdk/src/cmp/scala/ReadmeModel_scala.ts +2 -1
- package/project/.sdk/src/cmp/scala/ReadmeQuick_scala.ts +10 -1
- package/project/.sdk/src/cmp/scala/ReadmeRef_scala.ts +22 -5
- package/project/.sdk/src/cmp/scala/ReadmeTopTest_scala.ts +1 -1
- package/project/.sdk/src/cmp/scala/TestClean_scala.ts +39 -10
- package/project/.sdk/src/cmp/scala/TestEntity_scala.ts +113 -3
- package/project/.sdk/src/cmp/scala/fragment/Entity.fragment.scala +2 -0
- package/project/.sdk/src/cmp/scala/fragment/EntityBase.fragment.scala +4 -2
- package/project/.sdk/src/cmp/scala/fragment/EntityPatchOp.fragment.scala +33 -0
- package/project/.sdk/src/cmp/swift/EntityTypes_swift.ts +3 -3
- package/project/.sdk/src/cmp/swift/Entity_swift.ts +1 -1
- package/project/.sdk/src/cmp/swift/Main_swift.ts +6 -2
- package/project/.sdk/src/cmp/swift/PrepareAuth_swift.ts +56 -29
- package/project/.sdk/src/cmp/swift/ReadmeEntity_swift.ts +7 -4
- package/project/.sdk/src/cmp/swift/ReadmeHowto_swift.ts +1 -1
- package/project/.sdk/src/cmp/swift/ReadmeInstall_swift.ts +3 -3
- package/project/.sdk/src/cmp/swift/ReadmeIntro_swift.ts +3 -3
- package/project/.sdk/src/cmp/swift/ReadmeModel_swift.ts +2 -1
- package/project/.sdk/src/cmp/swift/ReadmeQuick_swift.ts +10 -1
- package/project/.sdk/src/cmp/swift/ReadmeRef_swift.ts +21 -5
- package/project/.sdk/src/cmp/swift/ReadmeTopTest_swift.ts +1 -1
- package/project/.sdk/src/cmp/swift/TestClean_swift.ts +44 -10
- package/project/.sdk/src/cmp/swift/TestEntity_swift.ts +90 -2
- package/project/.sdk/src/cmp/swift/fragment/Entity.fragment.swift +2 -0
- package/project/.sdk/src/cmp/swift/fragment/EntityBase.fragment.swift +9 -1
- package/project/.sdk/src/cmp/swift/fragment/EntityPatchOp.fragment.swift +24 -0
- package/project/.sdk/src/cmp/swift/fragment/Main.fragment.swift +23 -3
- package/project/.sdk/src/cmp/ts/EntityTypes_ts.ts +9 -3
- package/project/.sdk/src/cmp/ts/Entity_ts.ts +5 -5
- package/project/.sdk/src/cmp/ts/Main_ts.ts +4 -3
- package/project/.sdk/src/cmp/ts/Package_ts.ts +18 -10
- package/project/.sdk/src/cmp/ts/PrepareAuth_ts.ts +37 -28
- package/project/.sdk/src/cmp/ts/ReadmeEntity_ts.ts +7 -4
- package/project/.sdk/src/cmp/ts/ReadmeExamplesTest_ts.ts +39 -21
- package/project/.sdk/src/cmp/ts/ReadmeHowto_ts.ts +0 -3
- package/project/.sdk/src/cmp/ts/ReadmeInstall_ts.ts +3 -3
- package/project/.sdk/src/cmp/ts/ReadmeIntro_ts.ts +3 -3
- package/project/.sdk/src/cmp/ts/ReadmeModel_ts.ts +4 -3
- package/project/.sdk/src/cmp/ts/ReadmeQuick_ts.ts +10 -1
- package/project/.sdk/src/cmp/ts/ReadmeRef_ts.ts +37 -8
- package/project/.sdk/src/cmp/ts/ReadmeTopHowto_ts.ts +2 -3
- package/project/.sdk/src/cmp/ts/ReadmeTopTest_ts.ts +1 -1
- package/project/.sdk/src/cmp/ts/TestClean_ts.ts +52 -8
- package/project/.sdk/src/cmp/ts/TestDirect_ts.ts +50 -109
- package/project/.sdk/src/cmp/ts/TestEntity_ts.ts +92 -2
- package/project/.sdk/src/cmp/ts/TestLive_ts.ts +4 -3
- package/project/.sdk/src/cmp/ts/fragment/Direct.test.fragment.ts +3 -0
- package/project/.sdk/src/cmp/ts/fragment/Entity.fragment.ts +2 -0
- package/project/.sdk/src/cmp/ts/fragment/Entity.test.fragment.ts +3 -1
- package/project/.sdk/src/cmp/ts/fragment/EntityBase.fragment.ts +49 -24
- package/project/.sdk/src/cmp/ts/fragment/EntityPatchOp.fragment.ts +126 -0
- package/project/.sdk/src/cmp/ts/fragment/Main.fragment.ts +50 -18
- package/project/.sdk/src/cmp/zig/Entity_zig.ts +2 -2
- package/project/.sdk/src/cmp/zig/Main_zig.ts +5 -22
- package/project/.sdk/src/cmp/zig/Package_zig.ts +11 -2
- package/project/.sdk/src/cmp/zig/PrepareAuth_zig.ts +57 -31
- package/project/.sdk/src/cmp/zig/ReadmeEntity_zig.ts +17 -9
- package/project/.sdk/src/cmp/zig/ReadmeHowto_zig.ts +14 -4
- package/project/.sdk/src/cmp/zig/ReadmeInstall_zig.ts +2 -2
- package/project/.sdk/src/cmp/zig/ReadmeIntro_zig.ts +3 -3
- package/project/.sdk/src/cmp/zig/ReadmeModel_zig.ts +12 -10
- package/project/.sdk/src/cmp/zig/ReadmeQuick_zig.ts +29 -12
- package/project/.sdk/src/cmp/zig/ReadmeRef_zig.ts +45 -22
- package/project/.sdk/src/cmp/zig/ReadmeTopQuick_zig.ts +8 -4
- package/project/.sdk/src/cmp/zig/ReadmeTopTest_zig.ts +10 -3
- package/project/.sdk/src/cmp/zig/TestClean_zig.ts +67 -28
- package/project/.sdk/src/cmp/zig/TestEntity_zig.ts +54 -5
- package/project/.sdk/src/cmp/zig/Test_zig.ts +1 -0
- package/project/.sdk/src/cmp/zig/fragment/Entity.fragment.zig +44 -34
- package/project/.sdk/src/cmp/zig/fragment/EntityPatchOp.fragment.zig +26 -0
- package/project/.sdk/src/cmp/zig/fragment/Main.fragment.zig +30 -6
- package/project/.sdk/src/cmp/zig/fragment/Root.fragment.zig +1 -0
- package/project/.sdk/tm/c/LICENSE +1 -1
- package/project/.sdk/tm/c/core/context.c +2 -1
- package/project/.sdk/tm/c/core/helpers.c +21 -0
- package/project/.sdk/tm/c/core/response.c +103 -0
- package/project/.sdk/tm/c/core/sdk.h +26 -0
- package/project/.sdk/tm/c/core/spec.c +10 -0
- package/project/.sdk/tm/c/feature/test.c +46 -2
- package/project/.sdk/tm/c/feature/validate.c +2 -0
- package/project/.sdk/tm/c/tests/feature_harness.h +1 -1
- package/project/.sdk/tm/c/tests/primary_utility_test.c +9 -5
- package/project/.sdk/tm/c/tests/server_variable_test.c +80 -0
- package/project/.sdk/tm/c/utility/make_fetch_def.c +5 -1
- package/project/.sdk/tm/c/utility/make_options.c +84 -6
- package/project/.sdk/tm/c/utility/make_point.c +100 -8
- package/project/.sdk/tm/c/utility/make_spec.c +17 -1
- package/project/.sdk/tm/c/utility/make_url.c +38 -1
- package/project/.sdk/tm/c/utility/media.c +107 -0
- package/project/.sdk/tm/c/utility/param.c +52 -28
- package/project/.sdk/tm/c/utility/prepare_body.c +1 -0
- package/project/.sdk/tm/c/utility/prepare_headers.c +199 -29
- package/project/.sdk/tm/c/utility/prepare_query.c +24 -2
- package/project/.sdk/tm/c/utility/result_body.c +4 -0
- package/project/.sdk/tm/c/utility/transform_request.c +54 -17
- package/project/.sdk/tm/clojure/LICENSE +1 -1
- package/project/.sdk/tm/clojure/feature/secrets/sdk/feature/secrets.clj +0 -3
- package/project/.sdk/tm/clojure/src/sdk/client.clj +19 -5
- package/project/.sdk/tm/clojure/src/sdk/core.clj +415 -117
- package/project/.sdk/tm/clojure/src/sdk/features.clj +44 -20
- package/project/.sdk/tm/clojure/test/sdk/test/feature.clj +21 -1
- package/project/.sdk/tm/clojure/test/sdk/test_runner.clj +10 -2
- package/project/.sdk/tm/cpp/LICENSE +1 -1
- package/project/.sdk/tm/cpp/core/types.hpp +131 -7
- package/project/.sdk/tm/cpp/feature/test.hpp +32 -2
- package/project/.sdk/tm/cpp/feature/timeout.hpp +29 -9
- package/project/.sdk/tm/cpp/feature/validate.hpp +2 -0
- package/project/.sdk/tm/cpp/test/feature_test.cpp +37 -0
- package/project/.sdk/tm/cpp/test/harness.hpp +1 -1
- package/project/.sdk/tm/cpp/test/primary_utility_test.cpp +6 -2
- package/project/.sdk/tm/cpp/test/server_variable_test.cpp +57 -0
- package/project/.sdk/tm/cpp/utility/cookie.hpp +36 -0
- package/project/.sdk/tm/cpp/utility/pipeline.hpp +441 -82
- package/project/.sdk/tm/csharp/LICENSE +1 -1
- package/project/.sdk/tm/csharp/core/Context.cs +1 -1
- package/project/.sdk/tm/csharp/core/Helpers.cs +17 -0
- package/project/.sdk/tm/csharp/core/Response.cs +75 -0
- package/project/.sdk/tm/csharp/core/Spec.cs +3 -0
- package/project/.sdk/tm/csharp/feature/TestFeature.cs +41 -3
- package/project/.sdk/tm/csharp/feature/TimeoutFeature.cs +31 -3
- package/project/.sdk/tm/csharp/feature/ValidateFeature.cs +2 -0
- package/project/.sdk/tm/csharp/test/FeatureHarness.cs +1 -1
- package/project/.sdk/tm/csharp/test/FeatureTest.cs +35 -0
- package/project/.sdk/tm/csharp/test/PipelineTest.cs +28 -0
- package/project/.sdk/tm/csharp/test/Runner.cs +119 -0
- package/project/.sdk/tm/csharp/test/feature/secrets/SecretsFeatureTest.cs +8 -3
- package/project/.sdk/tm/csharp/utility/Fetcher.cs +25 -7
- package/project/.sdk/tm/csharp/utility/MakeFetchDef.cs +1 -5
- package/project/.sdk/tm/csharp/utility/MakeOptions.cs +8 -6
- package/project/.sdk/tm/csharp/utility/MakePoint.cs +68 -17
- package/project/.sdk/tm/csharp/utility/MakeSpec.cs +24 -6
- package/project/.sdk/tm/csharp/utility/MakeUrl.cs +21 -1
- package/project/.sdk/tm/csharp/utility/Media.cs +124 -0
- package/project/.sdk/tm/csharp/utility/Param.cs +57 -20
- package/project/.sdk/tm/csharp/utility/PrepareBody.cs +4 -0
- package/project/.sdk/tm/csharp/utility/PrepareHeaders.cs +103 -24
- package/project/.sdk/tm/csharp/utility/PrepareQuery.cs +33 -3
- package/project/.sdk/tm/csharp/utility/ResultBody.cs +5 -0
- package/project/.sdk/tm/csharp/utility/TransformRequest.cs +21 -13
- package/project/.sdk/tm/csharp/utility/struct/Struct.cs +3 -2
- package/project/.sdk/tm/elixir/LICENSE +1 -1
- package/project/.sdk/tm/elixir/lib/projectname/context.ex +1 -1
- package/project/.sdk/tm/elixir/lib/projectname/core.ex +7 -2
- package/project/.sdk/tm/elixir/lib/projectname/entity_base.ex +43 -12
- package/project/.sdk/tm/elixir/lib/projectname/feature/test.ex +47 -21
- package/project/.sdk/tm/elixir/lib/projectname/feature/validate.ex +2 -0
- package/project/.sdk/tm/elixir/lib/projectname/utility.ex +482 -129
- package/project/.sdk/tm/elixir/test/support/feature_harness.ex +1 -0
- package/project/.sdk/tm/go/LICENSE +1 -1
- package/project/.sdk/tm/go/core/context.go +1 -1
- package/project/.sdk/tm/go/core/helpers.go +19 -1
- package/project/.sdk/tm/go/core/response.go +72 -0
- package/project/.sdk/tm/go/core/spec.go +3 -0
- package/project/.sdk/tm/go/core/types.go +9 -1
- package/project/.sdk/tm/go/feature/test_feature.go +44 -3
- package/project/.sdk/tm/go/feature/timeout_feature.go +39 -22
- package/project/.sdk/tm/go/feature/validate_feature.go +2 -0
- package/project/.sdk/tm/go/test/feature_corpus_test.go +45 -1
- package/project/.sdk/tm/go/test/feature_harness_test.go +1 -1
- package/project/.sdk/tm/go/test/feature_test.go +86 -0
- package/project/.sdk/tm/go/test/primary_utility_test.go +37 -1
- package/project/.sdk/tm/go/test/testsupport_test.go +106 -0
- package/project/.sdk/tm/go/utility/fetcher.go +20 -6
- package/project/.sdk/tm/go/utility/make_fetch_def.go +1 -7
- package/project/.sdk/tm/go/utility/make_options.go +12 -6
- package/project/.sdk/tm/go/utility/make_point.go +52 -3
- package/project/.sdk/tm/go/utility/make_spec.go +23 -3
- package/project/.sdk/tm/go/utility/make_url.go +23 -1
- package/project/.sdk/tm/go/utility/media.go +111 -0
- package/project/.sdk/tm/go/utility/param.go +61 -20
- package/project/.sdk/tm/go/utility/prepare_body.go +3 -0
- package/project/.sdk/tm/go/utility/prepare_headers.go +108 -22
- package/project/.sdk/tm/go/utility/prepare_query.go +25 -2
- package/project/.sdk/tm/go/utility/result_body.go +8 -0
- package/project/.sdk/tm/go/utility/transform_request.go +20 -9
- package/project/.sdk/tm/java/LICENSE +1 -1
- package/project/.sdk/tm/java/core/Context.java +1 -1
- package/project/.sdk/tm/java/core/Helpers.java +13 -0
- package/project/.sdk/tm/java/core/Response.java +61 -0
- package/project/.sdk/tm/java/core/SdkClient.java +21 -3
- package/project/.sdk/tm/java/core/SdkEntity.java +2 -0
- package/project/.sdk/tm/java/core/Spec.java +4 -0
- package/project/.sdk/tm/java/feature/TestFeature.java +46 -3
- package/project/.sdk/tm/java/feature/TimeoutFeature.java +51 -18
- package/project/.sdk/tm/java/feature/ValidateFeature.java +2 -0
- package/project/.sdk/tm/java/test/FeatureCorpusTest.java +93 -35
- package/project/.sdk/tm/java/test/FeatureHarness.java +1 -0
- package/project/.sdk/tm/java/test/FeatureTest.java +33 -0
- package/project/.sdk/tm/java/test/PipelineTest.java +4 -1
- package/project/.sdk/tm/java/test/RunnerSupport.java +97 -0
- package/project/.sdk/tm/java/utility/Clean.java +17 -7
- package/project/.sdk/tm/java/utility/Fetcher.java +27 -3
- package/project/.sdk/tm/java/utility/MakeFetchDef.java +1 -7
- package/project/.sdk/tm/java/utility/MakePoint.java +62 -10
- package/project/.sdk/tm/java/utility/MakeSpec.java +26 -1
- package/project/.sdk/tm/java/utility/MakeUrl.java +23 -1
- package/project/.sdk/tm/java/utility/Media.java +117 -0
- package/project/.sdk/tm/java/utility/Param.java +59 -20
- package/project/.sdk/tm/java/utility/PrepareBody.java +3 -0
- package/project/.sdk/tm/java/utility/PrepareHeaders.java +76 -18
- package/project/.sdk/tm/java/utility/PrepareMethod.java +2 -1
- package/project/.sdk/tm/java/utility/PrepareQuery.java +26 -2
- package/project/.sdk/tm/java/utility/ResultBody.java +5 -0
- package/project/.sdk/tm/java/utility/TransformRequest.java +24 -11
- package/project/.sdk/tm/js/LICENSE +1 -1
- package/project/.sdk/tm/js/src/Context.js +1 -1
- package/project/.sdk/tm/js/src/Control.js +1 -0
- package/project/.sdk/tm/js/src/Response.js +10 -1
- package/project/.sdk/tm/js/src/Spec.js +3 -0
- package/project/.sdk/tm/js/src/feature/base/BaseFeature.js +28 -0
- package/project/.sdk/tm/js/src/feature/netsim/NetsimFeature.js +10 -8
- package/project/.sdk/tm/js/src/feature/ratelimit/RatelimitFeature.js +8 -6
- package/project/.sdk/tm/js/src/feature/retry/RetryFeature.js +17 -4
- package/project/.sdk/tm/js/src/feature/test/TestFeature.js +40 -12
- package/project/.sdk/tm/js/src/feature/timeout/TimeoutFeature.js +17 -3
- package/project/.sdk/tm/js/src/feature/validate/ValidateFeature.js +2 -0
- package/project/.sdk/tm/js/src/utility/CleanUtility.js +25 -1
- package/project/.sdk/tm/js/src/utility/FetcherUtility.js +23 -1
- package/project/.sdk/tm/js/src/utility/MakeErrorUtility.js +2 -2
- package/project/.sdk/tm/js/src/utility/MakeFetchDefUtility.js +14 -2
- package/project/.sdk/tm/js/src/utility/MakeOptionsUtility.js +6 -6
- package/project/.sdk/tm/js/src/utility/MakePointUtility.js +39 -2
- package/project/.sdk/tm/js/src/utility/MakeRequestUtility.js +27 -2
- package/project/.sdk/tm/js/src/utility/MakeResponseUtility.js +2 -1
- package/project/.sdk/tm/js/src/utility/MakeSpecUtility.js +14 -1
- package/project/.sdk/tm/js/src/utility/MakeUrlUtility.js +23 -0
- package/project/.sdk/tm/js/src/utility/MediaUtility.js +145 -0
- package/project/.sdk/tm/js/src/utility/ParamUtility.js +46 -18
- package/project/.sdk/tm/js/src/utility/PrepareBodyUtility.js +6 -0
- package/project/.sdk/tm/js/src/utility/PrepareHeadersUtility.js +55 -14
- package/project/.sdk/tm/js/src/utility/PrepareMethodUtility.js +9 -0
- package/project/.sdk/tm/js/src/utility/PrepareQueryUtility.js +23 -6
- package/project/.sdk/tm/js/src/utility/ResultBodyUtility.js +60 -3
- package/project/.sdk/tm/js/src/utility/TransformRequestUtility.js +16 -7
- package/project/.sdk/tm/js/test/definition-runner.js +103 -3
- package/project/.sdk/tm/js/test/feature/Corpus.test.js +47 -16
- package/project/.sdk/tm/js/test/feature/harness.js +4 -1
- package/project/.sdk/tm/js/test/feature/secrets/Secrets.test.js +7 -7
- package/project/.sdk/tm/js/test/feature.test.js +134 -0
- package/project/.sdk/tm/js/test/live-contract.js +73 -3
- package/project/.sdk/tm/js/test/live-entity.js +34 -15
- package/project/.sdk/tm/js/test/live-runner.js +52 -7
- package/project/.sdk/tm/js/test/live-scenarios.js +4 -4
- package/project/.sdk/tm/js/test/pipeline.test.js +52 -1
- package/project/.sdk/tm/js/test/utility.js +30 -4
- package/project/.sdk/tm/kotlin/LICENSE +1 -1
- package/project/.sdk/tm/kotlin/core/Context.kt +1 -1
- package/project/.sdk/tm/kotlin/core/Helpers.kt +8 -0
- package/project/.sdk/tm/kotlin/core/Interfaces.kt +2 -0
- package/project/.sdk/tm/kotlin/core/Response.kt +65 -0
- package/project/.sdk/tm/kotlin/core/SdkClient.kt +20 -3
- package/project/.sdk/tm/kotlin/core/Spec.kt +3 -0
- package/project/.sdk/tm/kotlin/feature/TestFeature.kt +23 -3
- package/project/.sdk/tm/kotlin/feature/TimeoutFeature.kt +42 -15
- package/project/.sdk/tm/kotlin/feature/ValidateFeature.kt +2 -0
- package/project/.sdk/tm/kotlin/test/FeatureHarness.kt +1 -1
- package/project/.sdk/tm/kotlin/test/FeatureTest.kt +32 -0
- package/project/.sdk/tm/kotlin/test/RunnerSupport.kt +90 -0
- package/project/.sdk/tm/kotlin/test/ServerVariableTest.kt +50 -0
- package/project/.sdk/tm/kotlin/utility/CoreUtil.kt +9 -7
- package/project/.sdk/tm/kotlin/utility/Fetcher.kt +24 -4
- package/project/.sdk/tm/kotlin/utility/MakeOptions.kt +26 -0
- package/project/.sdk/tm/kotlin/utility/MakePoint.kt +57 -12
- package/project/.sdk/tm/kotlin/utility/MakeSpecUrl.kt +26 -7
- package/project/.sdk/tm/kotlin/utility/Media.kt +83 -0
- package/project/.sdk/tm/kotlin/utility/Prepare.kt +127 -48
- package/project/.sdk/tm/kotlin/utility/ResultTransform.kt +18 -7
- package/project/.sdk/tm/lua/LICENSE +1 -1
- package/project/.sdk/tm/lua/core/context.lua +1 -1
- package/project/.sdk/tm/lua/core/helpers.lua +103 -0
- package/project/.sdk/tm/lua/core/response.lua +3 -0
- package/project/.sdk/tm/lua/core/spec.lua +3 -0
- package/project/.sdk/tm/lua/feature/test_feature.lua +36 -3
- package/project/.sdk/tm/lua/feature/validate_feature.lua +2 -0
- package/project/.sdk/tm/lua/test/feature_test.lua +1 -1
- package/project/.sdk/tm/lua/test/runner.lua +107 -0
- package/project/.sdk/tm/lua/utility/fetcher.lua +9 -2
- package/project/.sdk/tm/lua/utility/make_fetch_def.lua +2 -6
- package/project/.sdk/tm/lua/utility/make_options.lua +10 -7
- package/project/.sdk/tm/lua/utility/make_point.lua +65 -12
- package/project/.sdk/tm/lua/utility/make_spec.lua +19 -4
- package/project/.sdk/tm/lua/utility/make_url.lua +22 -1
- package/project/.sdk/tm/lua/utility/media.lua +106 -0
- package/project/.sdk/tm/lua/utility/param.lua +5 -45
- package/project/.sdk/tm/lua/utility/prepare_body.lua +5 -0
- package/project/.sdk/tm/lua/utility/prepare_headers.lua +71 -21
- package/project/.sdk/tm/lua/utility/prepare_query.lua +28 -6
- package/project/.sdk/tm/lua/utility/result_body.lua +7 -0
- package/project/.sdk/tm/lua/utility/transform_request.lua +23 -10
- package/project/.sdk/tm/lua/utility/unreadable_body.lua +70 -0
- package/project/.sdk/tm/ocaml/LICENSE +1 -1
- package/project/.sdk/tm/ocaml/sdk_features.ml +56 -10
- package/project/.sdk/tm/ocaml/sdk_helpers.ml +9 -0
- package/project/.sdk/tm/ocaml/sdk_runtime.ml +359 -85
- package/project/.sdk/tm/ocaml/sdk_types.ml +6 -0
- package/project/.sdk/tm/ocaml/test/harness.ml +1 -1
- package/project/.sdk/tm/ocaml/test/t_pipeline.ml +2 -1
- package/project/.sdk/tm/perl/LICENSE +1 -1
- package/project/.sdk/tm/perl/core/context.pm +1 -1
- package/project/.sdk/tm/perl/core/response.pm +2 -0
- package/project/.sdk/tm/perl/core/spec.pm +3 -0
- package/project/.sdk/tm/perl/feature/test_feature.pm +26 -3
- package/project/.sdk/tm/perl/feature/validate_feature.pm +2 -0
- package/project/.sdk/tm/perl/t/feature.t +1 -1
- package/project/.sdk/tm/perl/t/feature_corpus.t +72 -33
- package/project/.sdk/tm/perl/t/runner.pm +86 -0
- package/project/.sdk/tm/perl/t/server_variables.t +39 -0
- package/project/.sdk/tm/perl/utility/clean.pm +12 -7
- package/project/.sdk/tm/perl/utility/fetcher.pm +32 -19
- package/project/.sdk/tm/perl/utility/make_fetch_def.pm +4 -4
- package/project/.sdk/tm/perl/utility/make_options.pm +24 -0
- package/project/.sdk/tm/perl/utility/make_point.pm +55 -9
- package/project/.sdk/tm/perl/utility/make_spec.pm +27 -3
- package/project/.sdk/tm/perl/utility/make_url.pm +13 -1
- package/project/.sdk/tm/perl/utility/media.pm +109 -0
- package/project/.sdk/tm/perl/utility/param.pm +50 -24
- package/project/.sdk/tm/perl/utility/prepare_body.pm +11 -3
- package/project/.sdk/tm/perl/utility/prepare_headers.pm +63 -16
- package/project/.sdk/tm/perl/utility/prepare_method.pm +13 -0
- package/project/.sdk/tm/perl/utility/prepare_query.pm +18 -4
- package/project/.sdk/tm/perl/utility/result_body.pm +60 -0
- package/project/.sdk/tm/perl/utility/transform_request.pm +23 -8
- package/project/.sdk/tm/php/LICENSE +1 -1
- package/project/.sdk/tm/php/core/Context.php +1 -1
- package/project/.sdk/tm/php/core/Response.php +3 -0
- package/project/.sdk/tm/php/core/Spec.php +4 -0
- package/project/.sdk/tm/php/feature/CostFeature.php +2 -7
- package/project/.sdk/tm/php/feature/TestFeature.php +33 -3
- package/project/.sdk/tm/php/feature/ValidateFeature.php +14 -12
- package/project/.sdk/tm/php/test/FeatureCorpusTest.php +90 -35
- package/project/.sdk/tm/php/test/FeatureTest.php +4 -5
- package/project/.sdk/tm/php/test/PipelineTest.php +18 -1
- package/project/.sdk/tm/php/test/Runner.php +86 -0
- package/project/.sdk/tm/php/utility/Clean.php +10 -5
- package/project/.sdk/tm/php/utility/Fetcher.php +48 -6
- package/project/.sdk/tm/php/utility/MakeFetchDef.php +2 -1
- package/project/.sdk/tm/php/utility/MakePoint.php +55 -11
- package/project/.sdk/tm/php/utility/MakeSpec.php +21 -4
- package/project/.sdk/tm/php/utility/MakeUrl.php +16 -1
- package/project/.sdk/tm/php/utility/Media.php +111 -0
- package/project/.sdk/tm/php/utility/Param.php +66 -27
- package/project/.sdk/tm/php/utility/PrepareBody.php +5 -0
- package/project/.sdk/tm/php/utility/PrepareHeaders.php +83 -23
- package/project/.sdk/tm/php/utility/PrepareMethod.php +15 -0
- package/project/.sdk/tm/php/utility/PrepareQuery.php +22 -8
- package/project/.sdk/tm/php/utility/ResultBody.php +71 -0
- package/project/.sdk/tm/php/utility/TransformRequest.php +22 -11
- package/project/.sdk/tm/py/LICENSE +1 -1
- package/project/.sdk/tm/py/pkg/core/context.py +1 -1
- package/project/.sdk/tm/py/pkg/core/response.py +3 -0
- package/project/.sdk/tm/py/pkg/core/spec.py +3 -0
- package/project/.sdk/tm/py/pkg/feature/test_feature.py +27 -3
- package/project/.sdk/tm/py/pkg/feature/validate_feature.py +2 -0
- package/project/.sdk/tm/py/pkg/utility/fetcher.py +17 -7
- package/project/.sdk/tm/py/pkg/utility/make_fetch_def.py +2 -5
- package/project/.sdk/tm/py/pkg/utility/make_options.py +14 -8
- package/project/.sdk/tm/py/pkg/utility/make_point.py +40 -4
- package/project/.sdk/tm/py/pkg/utility/make_spec.py +12 -4
- package/project/.sdk/tm/py/pkg/utility/make_url.py +19 -1
- package/project/.sdk/tm/py/pkg/utility/media.py +88 -0
- package/project/.sdk/tm/py/pkg/utility/param.py +47 -18
- package/project/.sdk/tm/py/pkg/utility/prepare_body.py +4 -0
- package/project/.sdk/tm/py/pkg/utility/prepare_headers.py +56 -20
- package/project/.sdk/tm/py/pkg/utility/prepare_method.py +7 -0
- package/project/.sdk/tm/py/pkg/utility/prepare_query.py +17 -8
- package/project/.sdk/tm/py/pkg/utility/result_body.py +51 -0
- package/project/.sdk/tm/py/pkg/utility/transform_request.py +18 -9
- package/project/.sdk/tm/py/test/feature_harness.py +1 -1
- package/project/.sdk/tm/py/test/runner.py +77 -2
- package/project/.sdk/tm/py/test/test_feature_corpus.py +69 -32
- package/project/.sdk/tm/py-data/LICENSE +1 -1
- package/project/.sdk/tm/py-data/Makefile +2 -2
- package/project/.sdk/tm/rb/LICENSE +1 -1
- package/project/.sdk/tm/rb/core/context.rb +1 -1
- package/project/.sdk/tm/rb/core/response.rb +3 -1
- package/project/.sdk/tm/rb/core/spec.rb +4 -1
- package/project/.sdk/tm/rb/feature/test_feature.rb +27 -8
- package/project/.sdk/tm/rb/feature/validate_feature.rb +3 -1
- package/project/.sdk/tm/rb/test/feature_corpus_test.rb +74 -30
- package/project/.sdk/tm/rb/test/feature_test.rb +1 -1
- package/project/.sdk/tm/rb/test/runner.rb +54 -2
- package/project/.sdk/tm/rb/utility/clean.rb +14 -6
- package/project/.sdk/tm/rb/utility/fetcher.rb +22 -14
- package/project/.sdk/tm/rb/utility/make_fetch_def.rb +2 -4
- package/project/.sdk/tm/rb/utility/make_point.rb +44 -8
- package/project/.sdk/tm/rb/utility/make_spec.rb +14 -2
- package/project/.sdk/tm/rb/utility/make_url.rb +13 -1
- package/project/.sdk/tm/rb/utility/media.rb +75 -0
- package/project/.sdk/tm/rb/utility/param.rb +44 -25
- package/project/.sdk/tm/rb/utility/prepare_body.rb +4 -1
- package/project/.sdk/tm/rb/utility/prepare_headers.rb +50 -16
- package/project/.sdk/tm/rb/utility/prepare_method.rb +6 -0
- package/project/.sdk/tm/rb/utility/prepare_query.rb +12 -4
- package/project/.sdk/tm/rb/utility/result_body.rb +45 -0
- package/project/.sdk/tm/rb/utility/transform_request.rb +17 -7
- package/project/.sdk/tm/rust/LICENSE +1 -1
- package/project/.sdk/tm/rust/core/context.rs +1 -1
- package/project/.sdk/tm/rust/core/helpers.rs +10 -0
- package/project/.sdk/tm/rust/core/response.rs +80 -1
- package/project/.sdk/tm/rust/core/spec.rs +4 -0
- package/project/.sdk/tm/rust/core/types.rs +1 -0
- package/project/.sdk/tm/rust/feature/test.rs +29 -2
- package/project/.sdk/tm/rust/feature/validate.rs +2 -0
- package/project/.sdk/tm/rust/tests/common/mod.rs +108 -1
- package/project/.sdk/tm/rust/utility/clean.rs +0 -2
- package/project/.sdk/tm/rust/utility/fetcher.rs +19 -11
- package/project/.sdk/tm/rust/utility/make_fetch_def.rs +12 -1
- package/project/.sdk/tm/rust/utility/make_options.rs +6 -5
- package/project/.sdk/tm/rust/utility/make_point.rs +80 -16
- package/project/.sdk/tm/rust/utility/make_spec.rs +23 -4
- package/project/.sdk/tm/rust/utility/make_url.rs +39 -2
- package/project/.sdk/tm/rust/utility/media.rs +116 -0
- package/project/.sdk/tm/rust/utility/mod.rs +1 -0
- package/project/.sdk/tm/rust/utility/param.rs +66 -19
- package/project/.sdk/tm/rust/utility/prepare_body.rs +4 -0
- package/project/.sdk/tm/rust/utility/prepare_headers.rs +85 -28
- package/project/.sdk/tm/rust/utility/prepare_query.rs +27 -5
- package/project/.sdk/tm/rust/utility/result_body.rs +15 -2
- package/project/.sdk/tm/rust/utility/transform_request.rs +27 -14
- package/project/.sdk/tm/scala/LICENSE +1 -1
- package/project/.sdk/tm/scala/Makefile +3 -1
- package/project/.sdk/tm/scala/core/Context.scala +1 -1
- package/project/.sdk/tm/scala/core/Contracts.scala +1 -0
- package/project/.sdk/tm/scala/core/Helpers.scala +7 -0
- package/project/.sdk/tm/scala/core/Response.scala +55 -0
- package/project/.sdk/tm/scala/core/SdkClient.scala +18 -5
- package/project/.sdk/tm/scala/core/Spec.scala +3 -0
- package/project/.sdk/tm/scala/feature/TestFeature.scala +36 -3
- package/project/.sdk/tm/scala/feature/TimeoutFeature.scala +39 -13
- package/project/.sdk/tm/scala/feature/ValidateFeature.scala +2 -0
- package/project/.sdk/tm/scala/sdktest/SdkTestMain.scala +16 -1
- package/project/.sdk/tm/scala/sdktest/ServerVariableTest.scala +49 -0
- package/project/.sdk/tm/scala/sdktest/feature/secrets/SecretsTestMain.scala +1 -0
- package/project/.sdk/tm/scala/utility/Fetcher.scala +17 -2
- package/project/.sdk/tm/scala/utility/Make.scala +141 -43
- package/project/.sdk/tm/scala/utility/MakeSpec.scala +20 -2
- package/project/.sdk/tm/scala/utility/Media.scala +96 -0
- package/project/.sdk/tm/scala/utility/Misc.scala +56 -23
- package/project/.sdk/tm/scala/utility/Prepare.scala +84 -31
- package/project/.sdk/tm/scala/utility/Results.scala +5 -0
- package/project/.sdk/tm/scala/utility/Transform.scala +15 -19
- package/project/.sdk/tm/swift/LICENSE +1 -1
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Context.swift +1 -1
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Response.swift +57 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Spec.swift +3 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Support.swift +8 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TestFeature.swift +34 -3
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TimeoutFeature.swift +19 -3
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/ValidateFeature.swift +2 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Fetcher.swift +21 -12
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Make.swift +85 -18
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeOptions.swift +73 -7
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Media.swift +76 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Prepare.swift +118 -43
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/ResultUtil.swift +18 -8
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/FeatureTest.swift +31 -1
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/PrimaryUtilityTest.swift +6 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/ServerVariableTest.swift +42 -0
- package/project/.sdk/tm/ts/LICENSE +1 -1
- package/project/.sdk/tm/ts/src/Context.ts +1 -1
- package/project/.sdk/tm/ts/src/Control.ts +3 -0
- package/project/.sdk/tm/ts/src/Response.ts +10 -1
- package/project/.sdk/tm/ts/src/Spec.ts +4 -0
- package/project/.sdk/tm/ts/src/feature/base/BaseFeature.ts +28 -0
- package/project/.sdk/tm/ts/src/feature/netsim/NetsimFeature.ts +10 -8
- package/project/.sdk/tm/ts/src/feature/ratelimit/RatelimitFeature.ts +8 -6
- package/project/.sdk/tm/ts/src/feature/retry/RetryFeature.ts +17 -4
- package/project/.sdk/tm/ts/src/feature/test/TestFeature.ts +41 -13
- package/project/.sdk/tm/ts/src/feature/timeout/TimeoutFeature.ts +17 -3
- package/project/.sdk/tm/ts/src/feature/validate/ValidateFeature.ts +2 -0
- package/project/.sdk/tm/ts/src/tsconfig.json +2 -1
- package/project/.sdk/tm/ts/src/utility/CleanUtility.ts +25 -1
- package/project/.sdk/tm/ts/src/utility/FetcherUtility.ts +24 -1
- package/project/.sdk/tm/ts/src/utility/MakeErrorUtility.ts +2 -2
- package/project/.sdk/tm/ts/src/utility/MakeFetchDefUtility.ts +15 -2
- package/project/.sdk/tm/ts/src/utility/MakeOptionsUtility.ts +6 -6
- package/project/.sdk/tm/ts/src/utility/MakePointUtility.ts +38 -2
- package/project/.sdk/tm/ts/src/utility/MakeRequestUtility.ts +29 -2
- package/project/.sdk/tm/ts/src/utility/MakeResponseUtility.ts +3 -1
- package/project/.sdk/tm/ts/src/utility/MakeSpecUtility.ts +16 -6
- package/project/.sdk/tm/ts/src/utility/MakeUrlUtility.ts +16 -2
- package/project/.sdk/tm/ts/src/utility/MediaUtility.ts +143 -0
- package/project/.sdk/tm/ts/src/utility/ParamUtility.ts +50 -18
- package/project/.sdk/tm/ts/src/utility/PrepareBodyUtility.ts +6 -0
- package/project/.sdk/tm/ts/src/utility/PrepareHeadersUtility.ts +53 -11
- package/project/.sdk/tm/ts/src/utility/PrepareMethodUtility.ts +9 -0
- package/project/.sdk/tm/ts/src/utility/PrepareQueryUtility.ts +22 -6
- package/project/.sdk/tm/ts/src/utility/ResultBodyUtility.ts +68 -3
- package/project/.sdk/tm/ts/src/utility/TransformRequestUtility.ts +16 -6
- package/project/.sdk/tm/ts/test/definition-runner.ts +109 -3
- package/project/.sdk/tm/ts/test/feature/Corpus.test.ts +47 -16
- package/project/.sdk/tm/ts/test/feature/harness.ts +4 -1
- package/project/.sdk/tm/ts/test/feature/secrets/Secrets.test.ts +1 -1
- package/project/.sdk/tm/ts/test/feature.test.ts +134 -0
- package/project/.sdk/tm/ts/test/live-contract.ts +60 -2
- package/project/.sdk/tm/ts/test/live-entity.ts +36 -12
- package/project/.sdk/tm/ts/test/live-runner.ts +79 -12
- package/project/.sdk/tm/ts/test/live-scenarios.ts +5 -4
- package/project/.sdk/tm/ts/test/pipeline.test.ts +52 -1
- package/project/.sdk/tm/ts/test/tsconfig.json +2 -1
- package/project/.sdk/tm/ts/test/utility.ts +35 -7
- package/project/.sdk/tm/zig/LICENSE +1 -1
- package/project/.sdk/tm/zig/core/context.zig +2 -1
- package/project/.sdk/tm/zig/core/helpers.zig +33 -0
- package/project/.sdk/tm/zig/core/response.zig +3 -0
- package/project/.sdk/tm/zig/core/spec.zig +27 -0
- package/project/.sdk/tm/zig/core/types.zig +6 -0
- package/project/.sdk/tm/zig/core/utility.zig +456 -84
- package/project/.sdk/tm/zig/feature/test.zig +31 -2
- package/project/.sdk/tm/zig/feature/validate.zig +2 -0
- package/project/.sdk/tm/zig/test/fh.zig +1 -1
- package/project/sdkgen-package.json +1 -1
- package/src/action/copies.ts +179 -46
- package/src/action/doctor.ts +13 -3
- package/src/action/package.ts +17 -9
- package/src/action/resolve.ts +41 -0
- package/src/admin/npm-trust.ts +9 -8
- package/src/cmp/AgentGuide.ts +4 -3
- package/src/cmp/AgentGuideFeature.ts +3 -2
- package/src/cmp/AgentGuideTop.ts +2 -1
- package/src/cmp/Changelog.ts +2 -1
- package/src/cmp/Deploy.ts +2 -1
- package/src/cmp/Entity.ts +1 -3
- package/src/cmp/ExternalTarget.ts +2 -1
- package/src/cmp/Feature.ts +2 -1
- package/src/cmp/FeatureHook.ts +2 -1
- package/src/cmp/License.ts +7 -5
- package/src/cmp/Main.ts +2 -1
- package/src/cmp/PublishWorkflow.ts +2 -1
- package/src/cmp/Readme.ts +2 -1
- package/src/cmp/ReadmeEntity.ts +3 -3
- package/src/cmp/ReadmeErrors.ts +6 -4
- package/src/cmp/ReadmeExplanation.ts +4 -3
- package/src/cmp/ReadmeFeatures.ts +4 -3
- package/src/cmp/ReadmeHowto.ts +4 -3
- package/src/cmp/ReadmeInstall.ts +4 -3
- package/src/cmp/ReadmeIntro.ts +3 -3
- package/src/cmp/ReadmeModel.ts +6 -3
- package/src/cmp/ReadmeOptions.ts +3 -3
- package/src/cmp/ReadmeQuick.ts +4 -3
- package/src/cmp/ReadmeRef.ts +3 -3
- package/src/cmp/ReadmeRefFeatures.ts +2 -1
- package/src/cmp/ReadmeStation.ts +2 -1
- package/src/cmp/ReadmeTop.ts +121 -37
- package/src/cmp/ReadmeUnions.ts +2 -1
- package/src/cmp/Registered.ts +4 -4
- package/src/cmp/Security.ts +14 -7
- package/src/cmp/Test.ts +2 -1
- package/src/cmp/TestControl.ts +1 -1
- package/src/helpers/component.ts +25 -0
- package/src/helpers/definition.ts +2 -2
- package/src/helpers/definitionPlan.ts +135 -13
- package/src/helpers/featureSource.ts +55 -2
- package/src/helpers/flowGuard.ts +111 -0
- package/src/helpers/generated.ts +488 -0
- package/src/helpers/mcpTools.ts +47 -0
- package/src/helpers/media.ts +79 -0
- package/src/helpers/modelNames.ts +186 -16
- package/src/helpers/naming.ts +188 -0
- package/src/helpers/npm.ts +68 -0
- package/src/helpers/npmScripts.ts +37 -0
- package/src/helpers/opExample.ts +19 -11
- package/src/helpers/opShape.ts +235 -29
- package/src/helpers/optional.ts +76 -0
- package/src/helpers/packageMeta.ts +83 -11
- package/src/helpers/stdrep.ts +5 -1
- package/src/helpers/testPolicy.ts +68 -1
- package/src/helpers/text.ts +33 -0
- package/src/sdkgen.ts +97 -14
- package/src/testkit.ts +2 -1
- package/src/utility.ts +41 -19
- package/project/.sdk/src/cmp/go/fragment/SdkError.fragment.go +0 -22
- package/project/.sdk/src/cmp/lua/fragment/SdkError.fragment.lua +0 -38
- package/project/.sdk/src/cmp/perl/fragment/SdkError.fragment.pm +0 -27
- package/project/.sdk/src/cmp/php/fragment/SdkError.fragment.php +0 -35
- package/project/.sdk/src/cmp/py/fragment/SdkError.fragment.py +0 -27
- package/project/.sdk/src/cmp/rb/fragment/SdkError.fragment.rb +0 -25
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { cmp, each, Content, canonToType, canonKey, canonScalarKey, File, isAuthActive, entityIdField, opRequestShape , targetFeatures } from '@voxgig/sdkgen'
|
|
2
|
+
import { cmp, each, Content, canonToType, canonKey, canonScalarKey, File, isAuthActive, entityIdField, opRequestShape , targetFeatures, opNeedsAction, bodyNote } from '@voxgig/sdkgen'
|
|
3
3
|
import { ReadmeRefFeatures } from '@voxgig/sdkgen'
|
|
4
4
|
|
|
5
5
|
import {
|
|
@@ -45,6 +45,11 @@ const OP_SIGNATURES: Record<string, { sig: string, returns: string, desc: string
|
|
|
45
45
|
returns: 'the updated entity data',
|
|
46
46
|
desc: 'Update an existing entity. The data must include the entity `id`. Returns the updated entity data and throws on error.',
|
|
47
47
|
},
|
|
48
|
+
patch: {
|
|
49
|
+
sig: 'patch(reqdata, ctrl) throws -> Value',
|
|
50
|
+
returns: 'the patched entity data',
|
|
51
|
+
desc: 'Change part of an existing entity: only the fields given are sent. The data must include the entity `id`. Returns the patched entity data and throws on error.',
|
|
52
|
+
},
|
|
48
53
|
remove: {
|
|
49
54
|
sig: 'remove(reqmatch, ctrl) throws -> Value',
|
|
50
55
|
returns: 'the removed entity data',
|
|
@@ -216,7 +221,7 @@ let ${eVar} = client.${accessor}()
|
|
|
216
221
|
// Field operations breakdown
|
|
217
222
|
const hasFieldOps = fields.some((f: any) => f.op && Object.keys(f.op).length > 0)
|
|
218
223
|
if (hasFieldOps) {
|
|
219
|
-
const opcols = ['load', 'list', 'create', 'update', 'remove']
|
|
224
|
+
const opcols = ['load', 'list', 'create', 'update', 'patch', 'remove']
|
|
220
225
|
.filter((op: string) => opnames.includes(op) && ent.op[op]?.active !== false)
|
|
221
226
|
Content(`### Field Usage by Operation
|
|
222
227
|
|
|
@@ -257,6 +262,10 @@ ${info.desc}
|
|
|
257
262
|
|
|
258
263
|
`)
|
|
259
264
|
|
|
265
|
+
if (opNeedsAction(ent.op[opname])) {
|
|
266
|
+
return
|
|
267
|
+
}
|
|
268
|
+
|
|
260
269
|
if ('load' === opname || 'remove' === opname) {
|
|
261
270
|
const matchItems = opRequestShape(ent, opname).items
|
|
262
271
|
.filter((it: any) => !it.optional || it.name === idF)
|
|
@@ -297,8 +306,8 @@ let result = try client.${accessor}().create(VMap([
|
|
|
297
306
|
|
|
298
307
|
`)
|
|
299
308
|
}
|
|
300
|
-
else if ('update' === opname) {
|
|
301
|
-
const updateItems = opRequestShape(ent,
|
|
309
|
+
else if ('update' === opname || 'patch' === opname) {
|
|
310
|
+
const updateItems = opRequestShape(ent, opname).items
|
|
302
311
|
.filter((it: any) => !it.optional || it.name === idF)
|
|
303
312
|
.sort((a: any, b: any) =>
|
|
304
313
|
(a.name === idF ? 0 : 1) - (b.name === idF ? 0 : 1))
|
|
@@ -308,12 +317,19 @@ let result = try client.${accessor}().create(VMap([
|
|
|
308
317
|
it.name === idF ? ent.name + '_id' : it.name)})${comma}\n`
|
|
309
318
|
}).join('')
|
|
310
319
|
Content(`\`\`\`swift
|
|
311
|
-
let result = try client.${accessor}()
|
|
320
|
+
let result = try client.${accessor}().${opname}(VMap([
|
|
312
321
|
${updateLines}]), nil)
|
|
313
322
|
\`\`\`
|
|
314
323
|
|
|
315
324
|
`)
|
|
316
325
|
}
|
|
326
|
+
|
|
327
|
+
if ('create' === opname || 'update' === opname || 'patch' === opname) {
|
|
328
|
+
const note = bodyNote(ent.op[opname], {
|
|
329
|
+
values: 'a `String`, or `Data` or `[UInt8]` as a `.nat` value',
|
|
330
|
+
})
|
|
331
|
+
if ('' !== note) Content(note)
|
|
332
|
+
}
|
|
317
333
|
})
|
|
318
334
|
}
|
|
319
335
|
|
|
@@ -52,7 +52,7 @@ let client = ${SDK}.testSDK(nil, nil)
|
|
|
52
52
|
? `VMap([${items.map((it: any) =>
|
|
53
53
|
`("${it.name}", ${it.name === idF ? '.string("test01")' : swiftLit(it.type)})`).join(', ')}])`
|
|
54
54
|
: 'nil'
|
|
55
|
-
} else if ('create' === primaryOp || 'update' === primaryOp) {
|
|
55
|
+
} else if ('create' === primaryOp || 'update' === primaryOp || 'patch' === primaryOp) {
|
|
56
56
|
const items = opRequestShape(exampleEntity, primaryOp).items
|
|
57
57
|
.filter((it: any) => it.name !== idF && it.name !== 'id')
|
|
58
58
|
const required = items.filter((it: any) => !it.optional)
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
isHttpBasicAuth,
|
|
9
9
|
resolveAuthIn,
|
|
10
10
|
resolveAuthName,
|
|
11
|
+
targetFeatures,
|
|
11
12
|
} from '@voxgig/sdkgen'
|
|
12
13
|
|
|
13
14
|
|
|
@@ -31,6 +32,10 @@ const TestClean = cmp(function TestClean(props: any) {
|
|
|
31
32
|
basic: isHttpBasicAuth(model),
|
|
32
33
|
}
|
|
33
34
|
|
|
35
|
+
// CostRecord is declared by the cost feature's source, which ships only
|
|
36
|
+
// when the model selects the feature.
|
|
37
|
+
const cost = null != targetFeatures(model, target).cost
|
|
38
|
+
|
|
34
39
|
// Same order the ts sweep tries: list, then load, then the rest.
|
|
35
40
|
const rank: Record<string, number> = { list: 0, load: 1 }
|
|
36
41
|
const candidates = each(entityCollection(model))
|
|
@@ -47,7 +52,7 @@ const TestClean = cmp(function TestClean(props: any) {
|
|
|
47
52
|
|
|
48
53
|
// Inside Tests/<Name>SdkTests already: Test_swift.ts opens those folders.
|
|
49
54
|
File({ name: 'CleanTest.' + target.ext }, () =>
|
|
50
|
-
Content(render(model.const.Name, auth, candidates)))
|
|
55
|
+
Content(render(model.const.Name, auth, candidates, cost)))
|
|
51
56
|
})
|
|
52
57
|
|
|
53
58
|
|
|
@@ -71,6 +76,7 @@ function render(
|
|
|
71
76
|
Name: string,
|
|
72
77
|
auth: { suppressed: boolean, where: string, name: string, basic: boolean },
|
|
73
78
|
candidates: { name: string, Name: string, ops: string[], params: Record<string, string[]> }[],
|
|
79
|
+
cost: boolean,
|
|
74
80
|
): string {
|
|
75
81
|
const swiftList = (items: string[]) => '[' + items.map((i) => swiftString(i)).join(', ') + ']'
|
|
76
82
|
const candidateLines = candidates.map((c) =>
|
|
@@ -329,8 +335,19 @@ final class ${Name}CleanTest: XCTestCase {
|
|
|
329
335
|
gp(SdkConfig.makeConfig(), "feature").asMap?.entries[name] != nil
|
|
330
336
|
}
|
|
331
337
|
|
|
338
|
+
// Offline, as every generated suite is: the test OPTION resolves a required
|
|
339
|
+
// server variable to test-<name>, and installs no transport. A construction
|
|
340
|
+
// that fails traps, which no harness can catch, so the option is the guard.
|
|
341
|
+
static func offline(_ opts: VMap) -> VMap {
|
|
342
|
+
let out = VMap()
|
|
343
|
+
for (k, v) in opts.entries { out.entries[k] = v }
|
|
344
|
+
out.entries["test"] = .map(vm(("active", .bool(true))))
|
|
345
|
+
return out
|
|
346
|
+
}
|
|
347
|
+
|
|
332
348
|
static func makeSdk(
|
|
333
|
-
_ scenario: Scenario, _ box: SinkBox, _ cleanopts: VMap? = nil, _ extra: [BaseFeature] = []
|
|
349
|
+
_ scenario: Scenario, _ box: SinkBox, _ cleanopts: VMap? = nil, _ extra: [BaseFeature] = [],
|
|
350
|
+
auth: VMap? = nil
|
|
334
351
|
) -> ${Name}SDK {
|
|
335
352
|
func capture(_ name: String) -> (VMap) -> Void {
|
|
336
353
|
return { rec in box.sinks += formsOf(name, rec) }
|
|
@@ -352,11 +369,11 @@ final class ${Name}CleanTest: XCTestCase {
|
|
|
352
369
|
if hasFeature("telemetry") {
|
|
353
370
|
feature.entries["telemetry"] = .map(vm(("active", .bool(true)), ("exporter", .nat(capture("telemetry")))))
|
|
354
371
|
}
|
|
355
|
-
if hasFeature("cost") {
|
|
372
|
+
${cost ? ` if hasFeature("cost") {
|
|
356
373
|
let sink: (CostRecord) -> Void = { rec in box.sinks += formsOf("cost", rec) }
|
|
357
374
|
feature.entries["cost"] = .map(vm(("active", .bool(true)), ("sink", .nat(sink))))
|
|
358
375
|
}
|
|
359
|
-
if hasFeature("metrics") {
|
|
376
|
+
` : ''} if hasFeature("metrics") {
|
|
360
377
|
feature.entries["metrics"] = .map(vm(("active", .bool(true))))
|
|
361
378
|
}
|
|
362
379
|
if hasFeature("clienttrack") {
|
|
@@ -381,7 +398,8 @@ final class ${Name}CleanTest: XCTestCase {
|
|
|
381
398
|
for f in extra { extend.append(.nat(f)) }
|
|
382
399
|
opts.entries["extend"] = .list(VList(extend))
|
|
383
400
|
opts.entries["utility"] = .map(vm(("fetcher", .nat(fetch))))
|
|
384
|
-
|
|
401
|
+
if let a = auth { opts.entries["auth"] = .map(a) }
|
|
402
|
+
return ${Name}SDK(${Name}CleanTest.offline(opts))
|
|
385
403
|
}
|
|
386
404
|
|
|
387
405
|
// Emitted from the model: every active entity with the operations it
|
|
@@ -400,6 +418,7 @@ ${candidateLines}
|
|
|
400
418
|
case "load": return try ent.load(args, ctrl)
|
|
401
419
|
case "create": return try ent.create(args, ctrl)
|
|
402
420
|
case "update": return try ent.update(args, ctrl)
|
|
421
|
+
case "patch": return try ent.patch(args, ctrl)
|
|
403
422
|
case "remove": return try ent.remove(args, ctrl)
|
|
404
423
|
default: throw TransportError(message: "unknown operation: " + op)
|
|
405
424
|
}
|
|
@@ -412,7 +431,7 @@ ${candidateLines}
|
|
|
412
431
|
let opts = VMap()
|
|
413
432
|
opts.entries["apikey"] = .string(canaryApikey)
|
|
414
433
|
opts.entries["utility"] = .map(vm(("fetcher", .nat(fetch))))
|
|
415
|
-
let plain = ${Name}SDK(opts)
|
|
434
|
+
let plain = ${Name}SDK(${Name}CleanTest.offline(opts))
|
|
416
435
|
for candidate in candidates {
|
|
417
436
|
for op in candidate.ops {
|
|
418
437
|
let filled: [String] = candidate.params[op] ?? []
|
|
@@ -429,15 +448,18 @@ ${candidateLines}
|
|
|
429
448
|
static func drive(_ sdk: ${Name}SDK, _ target: Target, _ ctrl: VMap, _ box: SinkBox) -> Error? {
|
|
430
449
|
// A caller may keep the record it passed rather than read ctrl["explain"].
|
|
431
450
|
let held = ctrl.entries["explain"]?.asMap
|
|
451
|
+
let entity = target.candidate.accessor(sdk)
|
|
432
452
|
var out: Value = .noval
|
|
433
453
|
var err: Error? = nil
|
|
434
454
|
do {
|
|
435
|
-
out = try invoke(
|
|
455
|
+
out = try invoke(entity, target.op, target.params, ctrl)
|
|
436
456
|
} catch {
|
|
437
457
|
err = error
|
|
438
458
|
}
|
|
439
459
|
if let e = err { box.sinks += formsOf("error", e) }
|
|
440
460
|
if !isNil(out) { box.sinks += formsOf("result", out) }
|
|
461
|
+
// Raw, as a caller copying the match into another query reads it.
|
|
462
|
+
box.sinks += formsOf("match", entity.matchv(nil))
|
|
441
463
|
if let explain = ctrl.entries["explain"]?.asMap { box.sinks += formsOf("explain", explain) }
|
|
442
464
|
if let h = held, h !== ctrl.entries["explain"]?.asMap { box.sinks += formsOf("explain:held", h) }
|
|
443
465
|
return err
|
|
@@ -470,13 +492,19 @@ ${candidateLines}
|
|
|
470
492
|
}
|
|
471
493
|
}
|
|
472
494
|
|
|
495
|
+
// A name given at run time replaces the declared one: the match leaves
|
|
496
|
+
// out whichever name prepareAuth placed.
|
|
497
|
+
_ = ${Name}CleanTest.drive(
|
|
498
|
+
${Name}CleanTest.makeSdk(${Name}CleanTest.scenarios[0], box, auth: vm(("name", .string("zzcred")))),
|
|
499
|
+
target, VMap(), box)
|
|
500
|
+
|
|
473
501
|
// A credential mistyped as a map. This struct port's validate collects
|
|
474
502
|
// its errors instead of throwing, so nothing rejects it: the client it
|
|
475
503
|
// produced is swept instead.
|
|
476
504
|
let mistyped = VMap()
|
|
477
505
|
mistyped.entries["apikey"] = .map(vm(("value", .string(canaryApikey))))
|
|
478
506
|
mistyped.entries["clean"] = .map(vm(("values", .string(canaryValue))))
|
|
479
|
-
box.sinks += ${Name}CleanTest.formsOf("mistyped", ${Name}SDK(mistyped))
|
|
507
|
+
box.sinks += ${Name}CleanTest.formsOf("mistyped", ${Name}SDK(${Name}CleanTest.offline(mistyped)))
|
|
480
508
|
|
|
481
509
|
// An error a feature hook raises, quoting the request, skips makeError.
|
|
482
510
|
// A swift hook cannot throw, so no variant fails from PreUnexpected.
|
|
@@ -532,13 +560,15 @@ ${candidateLines}
|
|
|
532
560
|
if !isNil(clean) {
|
|
533
561
|
bareopts.entries["clean"] = clean
|
|
534
562
|
}
|
|
535
|
-
let bareerr = ${Name}CleanTest.drive(
|
|
563
|
+
let bareerr = ${Name}CleanTest.drive(
|
|
564
|
+
${Name}SDK(${Name}CleanTest.offline(bareopts)), target, vm(("explain", .map(VMap()))), box)
|
|
536
565
|
XCTAssertNotNil(bareerr, "the 404 should fail with clean: " + stringify(clean))
|
|
537
566
|
}
|
|
538
567
|
|
|
539
568
|
// A feature's name is not a field name: only the sensitive names inside
|
|
540
569
|
// its settings register. An entity block, of entity settings or seeded
|
|
541
|
-
// records keyed by entity name and id, is not read at all
|
|
570
|
+
// records keyed by entity name and id, is not read at all, and nor are
|
|
571
|
+
// rbac's rules, keyed by entity and operation names.
|
|
542
572
|
let record = vm(("zztoken", .map(vm(("ZZTOKEN01", .map(vm(("note", .string("PLAINRECORD-t5r3e1w9")))))))))
|
|
543
573
|
let alias = vm(("zztoken", .map(vm(("alias", .map(vm(("zzkey", .string("PLAINALIAS-m2n4b6v8")))))))))
|
|
544
574
|
let featopts = VMap()
|
|
@@ -546,6 +576,8 @@ ${candidateLines}
|
|
|
546
576
|
featopts.entries["feature"] = .map(vm(
|
|
547
577
|
("zzsecrets", .map(vm(("active", .bool(false)), ("kind", .string("PLAINSETTING-q8w2e4r6"))))),
|
|
548
578
|
("zzfeat", .map(vm(("active", .bool(false)), ("apitoken", .string("FEATTOKEN-z9y8x7w6"))))),
|
|
579
|
+
("rbac", .map(vm(("active", .bool(false)),
|
|
580
|
+
("rules", .map(vm(("zztoken.load", .string("PLAINRULE-k7j5h3g1")))))))),
|
|
549
581
|
("test", .map(vm(("active", .bool(false)), ("entity", .map(record)))))))
|
|
550
582
|
featopts.entries["entity"] = .map(alias)
|
|
551
583
|
let fctx = Context(["options": makeOptionsUtil(Context(["options": featopts], nil))], nil)
|
|
@@ -553,6 +585,7 @@ ${candidateLines}
|
|
|
553
585
|
let ftoken = cleanUtil(fctx, .string("token FEATTOKEN-z9y8x7w6")).asString
|
|
554
586
|
let frecord = cleanUtil(fctx, .string("record PLAINRECORD-t5r3e1w9")).asString
|
|
555
587
|
let falias = cleanUtil(fctx, .string("alias PLAINALIAS-m2n4b6v8")).asString
|
|
588
|
+
let frule = cleanUtil(fctx, .string("rule PLAINRULE-k7j5h3g1")).asString
|
|
556
589
|
|
|
557
590
|
// direct() returns its error rather than throwing it. Only the SDK's own
|
|
558
591
|
// error can be cleaned in place, so the coded transport is the one used.
|
|
@@ -597,6 +630,7 @@ ${candidateLines}
|
|
|
597
630
|
XCTAssertEqual(ftoken, "token " + mask)
|
|
598
631
|
XCTAssertEqual(frecord, "record PLAINRECORD-t5r3e1w9")
|
|
599
632
|
XCTAssertEqual(falias, "alias PLAINALIAS-m2n4b6v8")
|
|
633
|
+
XCTAssertEqual(frule, "rule PLAINRULE-k7j5h3g1")
|
|
600
634
|
XCTAssertEqual(rawerr?.code, "denied_" + mask)
|
|
601
635
|
|
|
602
636
|
let explained = explains["ok/explain"] ?? VMap()
|
|
@@ -3,6 +3,8 @@ import {
|
|
|
3
3
|
Content,
|
|
4
4
|
File,
|
|
5
5
|
cmp,
|
|
6
|
+
invalidRequest,
|
|
7
|
+
opReachable,
|
|
6
8
|
} from '@voxgig/sdkgen'
|
|
7
9
|
|
|
8
10
|
|
|
@@ -16,7 +18,8 @@ const TestEntity = cmp(function TestEntity(props: any) {
|
|
|
16
18
|
const { target, entity } = props
|
|
17
19
|
const Name = model.const.Name
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
// The stream test lists with no match, so a bare call must reach a route.
|
|
22
|
+
const hasList = opReachable(entity.op?.list, [])
|
|
20
23
|
|
|
21
24
|
File({ name: entity.Name + 'EntityTest.' + target.ext }, () => {
|
|
22
25
|
Content(`// ${entity.name} entity test (generated from the API model).
|
|
@@ -66,15 +69,100 @@ final class ${entity.Name}EntityTest: XCTestCase {
|
|
|
66
69
|
for await item in seq2 { streamed2.append(item) }
|
|
67
70
|
XCTAssertEqual(streamed2.count, listedN)
|
|
68
71
|
}
|
|
72
|
+
|
|
73
|
+
// A failed operation throws from a stream as it does from the operation; under
|
|
74
|
+
// throw false the stream ends quietly. The caller's ctrl stays its own.
|
|
75
|
+
func testStreamError() async throws {
|
|
76
|
+
let offline = vm(("net", .map(vm(("offline", .bool(true))))))
|
|
77
|
+
var err: Error? = nil
|
|
78
|
+
do { _ = try ${Name}SDK.testSDK(offline, nil).${entity.Name}().stream("list", VMap(), nil) } catch { err = error }
|
|
79
|
+
XCTAssertTrue((err as? ${Name}Error)?.message.contains("offline") ?? false,
|
|
80
|
+
"expected the transport failure to raise from the stream, got \\(String(describing: err))")
|
|
81
|
+
|
|
82
|
+
var quiet: [Value] = []
|
|
83
|
+
let seq = try ${Name}SDK.testSDK(offline, nil).${entity.Name}()
|
|
84
|
+
.stream("list", VMap(), vm(("ctrl", .map(vm(("throw", .bool(false)))))))
|
|
85
|
+
for await item in seq { quiet.append(item) }
|
|
86
|
+
XCTAssertEqual(quiet.count, 0, "throw false should end the stream quietly")
|
|
87
|
+
|
|
88
|
+
if ${entity.Name}EntityTest.hasFeature("rbac") {
|
|
89
|
+
let denied = ${Name}SDK.testSDK(nil,
|
|
90
|
+
vm(("feature", .map(vm(("rbac", .map(vm(("active", .bool(true)), ("deny", .bool(true))))))))))
|
|
91
|
+
var denyerr: Error? = nil
|
|
92
|
+
do { _ = try denied.${entity.Name}().stream("list", VMap(), nil) } catch { denyerr = error }
|
|
93
|
+
XCTAssertEqual((denyerr as? ${Name}Error)?.code, "rbac_denied",
|
|
94
|
+
"expected the rbac denial to raise from the stream, got \\(String(describing: denyerr))")
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
func testStreamCtrl() async throws {
|
|
99
|
+
let explain = VMap()
|
|
100
|
+
let ctrl = vm(("explain", .map(explain)))
|
|
101
|
+
let seq = try ${Name}SDK.testSDK(nil, nil).${entity.Name}().stream("list", VMap(), vm(("ctrl", .map(ctrl))))
|
|
102
|
+
for await _ in seq {}
|
|
103
|
+
XCTAssertEqual(ctrl.entries.count, 1, "the stream changed the caller's ctrl")
|
|
104
|
+
XCTAssertTrue(ctrl.entries["explain"]?.asMap === explain, "the caller's explain record is not its own")
|
|
105
|
+
XCTAssertFalse(explain.entries.isEmpty, "the caller's explain record was not filled")
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// A swift hook cannot throw, so the failure here is the transport's: makeError
|
|
109
|
+
// fires PreUnexpected for it, under throw false too.
|
|
110
|
+
func testUnexpected() throws {
|
|
111
|
+
final class CountHook: BaseFeature {
|
|
112
|
+
var unexpected = 0
|
|
113
|
+
override init() { super.init(); name = "counthook"; version = "0.0.1"; active = true }
|
|
114
|
+
override func preUnexpected(_ ctx: Context) { unexpected += 1 }
|
|
115
|
+
}
|
|
116
|
+
let hook = CountHook()
|
|
117
|
+
let sdk = ${Name}SDK.testSDK(vm(("net", .map(vm(("offline", .bool(true)))))), nil)
|
|
118
|
+
sdk.features.append(hook)
|
|
119
|
+
var err: Error? = nil
|
|
120
|
+
do { _ = try sdk.${entity.Name}().list(VMap(), nil) } catch { err = error }
|
|
121
|
+
XCTAssertTrue((err as? ${Name}Error)?.message.contains("offline") ?? false,
|
|
122
|
+
"expected the transport failure, got \\(String(describing: err))")
|
|
123
|
+
XCTAssertGreaterThan(hook.unexpected, 0, "PreUnexpected did not fire")
|
|
124
|
+
|
|
125
|
+
let fired = hook.unexpected
|
|
126
|
+
_ = try sdk.${entity.Name}().list(VMap(), vm(("throw", .bool(false))))
|
|
127
|
+
XCTAssertGreaterThan(hook.unexpected, fired, "PreUnexpected did not fire under throw false")
|
|
128
|
+
}
|
|
69
129
|
`)
|
|
70
130
|
}
|
|
71
131
|
|
|
72
|
-
|
|
132
|
+
const bad = invalidRequest(entity)
|
|
133
|
+
if (null != bad) {
|
|
134
|
+
const args = Object.entries(bad.args)
|
|
135
|
+
.map(([k, v]) => '(' + JSON.stringify(k) + ', ' + swiftValue(v) + ')').join(', ')
|
|
136
|
+
Content(`
|
|
137
|
+
// An invalid request fails with validate's own error, before it is sent.
|
|
138
|
+
func testValidate() throws {
|
|
139
|
+
try XCTSkipUnless(${entity.Name}EntityTest.hasFeature("validate"), "feature not present in this SDK: validate")
|
|
140
|
+
let client = ${Name}SDK.testSDK(nil, vm(("feature", .map(vm(("validate", .map(vm(("active", .bool(true))))))))))
|
|
141
|
+
var err: Error? = nil
|
|
142
|
+
do { _ = try client.${entity.Name}().${bad.op}(vm(${args}), nil) } catch { err = error }
|
|
143
|
+
XCTAssertEqual((err as? ${Name}Error)?.code, "validate_failed",
|
|
144
|
+
"expected validate_failed, got \\(String(describing: err))")
|
|
145
|
+
}
|
|
146
|
+
`)
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
Content(`
|
|
150
|
+
// True when this SDK was generated with the named feature.
|
|
151
|
+
static func hasFeature(_ name: String) -> Bool {
|
|
152
|
+
gp(SdkConfig.makeConfig(), "feature").asMap?.entries[name] != nil
|
|
153
|
+
}
|
|
154
|
+
}
|
|
73
155
|
`)
|
|
74
156
|
})
|
|
75
157
|
})
|
|
76
158
|
|
|
77
159
|
|
|
160
|
+
function swiftValue(v: any): string {
|
|
161
|
+
return 'number' === typeof v ? '.int(' + v + ')' :
|
|
162
|
+
'boolean' === typeof v ? '.bool(' + v + ')' : '.string(' + JSON.stringify(v) + ')'
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
|
|
78
166
|
export {
|
|
79
167
|
TestEntity
|
|
80
168
|
}
|
|
@@ -80,6 +80,10 @@ open class ProjectNameEntityBase: Entity {
|
|
|
80
80
|
throw unsupportedOp("update", name)
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
open func patch(_ reqdata: VMap?, _ ctrl: VMap?) throws -> Value {
|
|
84
|
+
throw unsupportedOp("patch", name)
|
|
85
|
+
}
|
|
86
|
+
|
|
83
87
|
open func remove(_ reqmatch: VMap?, _ ctrl: VMap?) throws -> Value {
|
|
84
88
|
throw unsupportedOp("remove", name)
|
|
85
89
|
}
|
|
@@ -188,7 +192,11 @@ open class ProjectNameEntityBase: Entity {
|
|
|
188
192
|
|
|
189
193
|
let signal = opts.entries["signal"]?.asNative as? @Sendable () -> Bool
|
|
190
194
|
|
|
191
|
-
|
|
195
|
+
// A copy: the caller's ctrl gains no key, and explain stays its own record.
|
|
196
|
+
let ctrl = VMap()
|
|
197
|
+
if let given = opts.entries["ctrl"]?.asMap {
|
|
198
|
+
ctrl.entries = given.entries
|
|
199
|
+
}
|
|
192
200
|
ctrl.entries["stream"] = .map(opts)
|
|
193
201
|
|
|
194
202
|
var ctxmap: [String: Any?] = [
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Patch operation fragment (spliced into the entity class by
|
|
2
|
+
// EntityOperation_swift; only the EJECT region is emitted).
|
|
3
|
+
|
|
4
|
+
import Foundation
|
|
5
|
+
|
|
6
|
+
final class EntyClassPatchOpFragment: EntyClass {
|
|
7
|
+
// EJECT-START
|
|
8
|
+
public override func patch(_ reqdata: VMap?, _ ctrl: VMap?) throws -> Value {
|
|
9
|
+
var ctxmap: [String: Any?] = ["opname": "patch", "match": match, "data": data]
|
|
10
|
+
if let ctrl = ctrl { ctxmap["ctrl"] = ctrl }
|
|
11
|
+
if let reqdata = reqdata { ctxmap["reqdata"] = reqdata }
|
|
12
|
+
let ctx = utility.makeContext(ctxmap, entctx)
|
|
13
|
+
|
|
14
|
+
return try runOp(ctx) {
|
|
15
|
+
if let result = ctx.result {
|
|
16
|
+
if let rm = result.resmatch { self.match = rm }
|
|
17
|
+
if !isNil(result.resdata) {
|
|
18
|
+
self.data = clone(result.resdata).asMap ?? VMap()
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
// EJECT-END
|
|
24
|
+
}
|
|
@@ -107,6 +107,13 @@ public final class ProjectNameSDK {
|
|
|
107
107
|
let path = gp(fetchargs, "path").asString ?? ""
|
|
108
108
|
var method = gp(fetchargs, "method").asString ?? ""
|
|
109
109
|
if method == "" { method = "GET" }
|
|
110
|
+
method = method.uppercased()
|
|
111
|
+
|
|
112
|
+
if !allowed(gpath(options, "allow", "method"), method) {
|
|
113
|
+
throw ctx.makeError("spec_method_allow",
|
|
114
|
+
"Method \"\(method)\" not allowed by SDK option allow.method value: \""
|
|
115
|
+
+ (gpath(options, "allow", "method").asString ?? "") + "\"")
|
|
116
|
+
}
|
|
110
117
|
|
|
111
118
|
let pathParams = gp(fetchargs, "params").asMap ?? ProjectNameSdk.VMap()
|
|
112
119
|
let query = gp(fetchargs, "query").asMap ?? ProjectNameSdk.VMap()
|
|
@@ -155,8 +162,7 @@ public final class ProjectNameSDK {
|
|
|
155
162
|
|
|
156
163
|
// Is this raw-access op permitted by the SDK's allow.op option?
|
|
157
164
|
private func opAllowed(_ op: String) -> Bool {
|
|
158
|
-
|
|
159
|
-
return allow.contains(op)
|
|
165
|
+
return allowed(gpath(options, "allow", "op"), op)
|
|
160
166
|
}
|
|
161
167
|
|
|
162
168
|
private func opDenied(_ op: String) -> ProjectNameSdk.VMap {
|
|
@@ -230,11 +236,25 @@ public final class ProjectNameSDK {
|
|
|
230
236
|
jsonData = jf()
|
|
231
237
|
}
|
|
232
238
|
|
|
239
|
+
var bodyErr: Swift.Error? = nil
|
|
240
|
+
if !noBody, gp(fm, "unreadable") == .bool(true) {
|
|
241
|
+
var failed: Swift.Error? = nil
|
|
242
|
+
if status < 200 || status >= 300 {
|
|
243
|
+
failed = ctx.makeError(
|
|
244
|
+
"request_status", "request: \(status): \(gp(fm, "statusText").asString ?? "")")
|
|
245
|
+
}
|
|
246
|
+
bodyErr = ProjectNameSdk.Response.unreadableBody(
|
|
247
|
+
ctx, status, headers, gp(fm, "body"), gp(fetchdef, "headers"), failed)
|
|
248
|
+
}
|
|
249
|
+
|
|
233
250
|
let r = ProjectNameSdk.VMap()
|
|
234
|
-
r.entries["ok"] = .bool(status >= 200 && status < 300)
|
|
251
|
+
r.entries["ok"] = .bool(bodyErr == nil && status >= 200 && status < 300)
|
|
235
252
|
r.entries["status"] = .int(Int64(status))
|
|
236
253
|
r.entries["headers"] = headers
|
|
237
254
|
r.entries["data"] = jsonData
|
|
255
|
+
if let bodyErr = bodyErr {
|
|
256
|
+
r.entries["err"] = utility.clean(ctx, .nat(bodyErr))
|
|
257
|
+
}
|
|
238
258
|
return r
|
|
239
259
|
}
|
|
240
260
|
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
File, Content,
|
|
7
7
|
} from '@voxgig/sdkgen'
|
|
8
8
|
|
|
9
|
-
import { canonToType, opTypeName, opRequestShape, warnEntityTypeCollisions , deriveEntityNames, opActions,
|
|
9
|
+
import { canonToType, opTypeName, opRequestShape, warnEntityTypeCollisions , deriveEntityNames, opActions, opRawBody, tsTypeName, entityCollection } from '@voxgig/sdkgen'
|
|
10
10
|
|
|
11
11
|
import {
|
|
12
12
|
KIT,
|
|
@@ -51,7 +51,7 @@ const EntityTypes = cmp(function EntityTypes(props: any) {
|
|
|
51
51
|
|
|
52
52
|
entityList.forEach((ent: any) => {
|
|
53
53
|
const Name = ent.Name
|
|
54
|
-
const TypeName =
|
|
54
|
+
const TypeName = tsTypeName(ent, entityCollection(model))
|
|
55
55
|
const fields = (ent.fields ? each(ent.fields) : [])
|
|
56
56
|
.filter((f: any) => f.a !== false)
|
|
57
57
|
|
|
@@ -67,7 +67,7 @@ const EntityTypes = cmp(function EntityTypes(props: any) {
|
|
|
67
67
|
`)
|
|
68
68
|
|
|
69
69
|
const ops = ent.op || {}
|
|
70
|
-
;['load', 'list', 'create', 'update', 'remove'].forEach((opname: string) => {
|
|
70
|
+
;['load', 'list', 'create', 'update', 'patch', 'remove'].forEach((opname: string) => {
|
|
71
71
|
if (null == ops[opname]) {
|
|
72
72
|
return
|
|
73
73
|
}
|
|
@@ -83,6 +83,12 @@ const EntityTypes = cmp(function EntityTypes(props: any) {
|
|
|
83
83
|
`)
|
|
84
84
|
})
|
|
85
85
|
|
|
86
|
+
if (('create' === opname || 'update' === opname || 'patch' === opname) &&
|
|
87
|
+
null != opRawBody(ops[opname])) {
|
|
88
|
+
Content(` $body?: Uint8Array | ArrayBuffer | Blob | ReadableStream | AsyncIterable<Uint8Array> | string
|
|
89
|
+
`)
|
|
90
|
+
}
|
|
91
|
+
|
|
86
92
|
const actions = opActions(ops[opname])
|
|
87
93
|
if (0 < actions.length) {
|
|
88
94
|
Content(`
|
|
@@ -4,7 +4,7 @@ import * as Path from 'node:path'
|
|
|
4
4
|
import {
|
|
5
5
|
cmp, each, camelify, names,
|
|
6
6
|
File, Content, Folder, Fragment, Line, FeatureHook, Slot,
|
|
7
|
-
opTypeName, entityClassName, entityCollection,
|
|
7
|
+
opTypeName, entityClassName, entityCollection, tsTypeName,
|
|
8
8
|
} from '@voxgig/sdkgen'
|
|
9
9
|
|
|
10
10
|
import {
|
|
@@ -33,13 +33,13 @@ const Entity = cmp(function Entity(props: any) {
|
|
|
33
33
|
names(entrep, entity.Name, 'EntityName')
|
|
34
34
|
|
|
35
35
|
// A TS/JS global (Record, Array, Promise, ...) would shadow itself for
|
|
36
|
-
// the rest of the file — see
|
|
36
|
+
// the rest of the file — see tsTypeName. The runtime `this.Name`
|
|
37
37
|
// string stays entity.Name; only the TYPE reference is ever renamed.
|
|
38
|
-
const dataType =
|
|
38
|
+
const dataType = tsTypeName(entity, entityColl)
|
|
39
39
|
|
|
40
40
|
const typeNames = [dataType]
|
|
41
41
|
const opnamesAll = Object.keys(entity.op || {})
|
|
42
|
-
;['load', 'list', 'create', 'update', 'remove'].forEach((opname: string) => {
|
|
42
|
+
;['load', 'list', 'create', 'update', 'patch', 'remove'].forEach((opname: string) => {
|
|
43
43
|
if (opnamesAll.includes(opname)) {
|
|
44
44
|
typeNames.push(opTypeName(entity.Name, opname))
|
|
45
45
|
}
|
|
@@ -57,7 +57,7 @@ const Entity = cmp(function Entity(props: any) {
|
|
|
57
57
|
const opnames = Object.keys(entity.op || {})
|
|
58
58
|
|
|
59
59
|
const opfrags =
|
|
60
|
-
(['load', 'list', 'create', 'update', 'remove']
|
|
60
|
+
(['load', 'list', 'create', 'update', 'patch', 'remove']
|
|
61
61
|
.reduce((a: any, opname: string) =>
|
|
62
62
|
(a['#' + camelify(opname) + 'Op'] =
|
|
63
63
|
!opnames.includes(opname) ? '' : ({ indent }: any) => {
|
|
@@ -4,6 +4,7 @@ import * as Path from 'node:path'
|
|
|
4
4
|
import {
|
|
5
5
|
cmp, each, names, cmap,
|
|
6
6
|
List, File, Content, Copy, Folder, Fragment, Line, FeatureHook,
|
|
7
|
+
inactiveFeatureExcludes,
|
|
7
8
|
entityClassName, entityCollection, srcFeatureExcludes, pluginExcludes,
|
|
8
9
|
stationLibrary,
|
|
9
10
|
targetFeatures,
|
|
@@ -55,11 +56,11 @@ const Main = cmp(async function Main(props: any) {
|
|
|
55
56
|
Copy({
|
|
56
57
|
from: 'tm/' + target.name,
|
|
57
58
|
// Root copies src/feature/<name>/ per ACTIVE feature; keep this blanket
|
|
58
|
-
// copy from restoring one that
|
|
59
|
-
//
|
|
60
|
-
// deeper. See helpers/featureSource.pluginExcludes.
|
|
59
|
+
// copy from restoring one that is off, its tests, or an inactive plugin
|
|
60
|
+
// group. See helpers/featureSource.
|
|
61
61
|
exclude: [
|
|
62
62
|
...srcFeatureExcludes(model),
|
|
63
|
+
...inactiveFeatureExcludes(props.ctx$, target),
|
|
63
64
|
...pluginExcludes(model),
|
|
64
65
|
TEST_CONTROL_EXCLUDE,
|
|
65
66
|
],
|
|
@@ -15,6 +15,9 @@ import {
|
|
|
15
15
|
authorInfo,
|
|
16
16
|
targetFeatures, envName,
|
|
17
17
|
hasLiveScenarios,
|
|
18
|
+
npmScriptRm,
|
|
19
|
+
npmScriptEnv,
|
|
20
|
+
npmScriptTestSome,
|
|
18
21
|
} from '@voxgig/sdkgen'
|
|
19
22
|
|
|
20
23
|
|
|
@@ -73,36 +76,41 @@ const Package = cmp(async function Package(props: any) {
|
|
|
73
76
|
type: 'commonjs',
|
|
74
77
|
types: `dist/${SdkName}SDK.d.ts`,
|
|
75
78
|
|
|
76
|
-
files: ['dist', 'src', 'README.md'],
|
|
79
|
+
files: ['dist', '!dist/**/*.tsbuildinfo', 'src', 'README.md', 'REFERENCE.md'],
|
|
77
80
|
scripts: {
|
|
78
81
|
...(hasLiveScenarios(model) ? {
|
|
79
|
-
'test:live':
|
|
82
|
+
'test:live': 'npm run build && node ' +
|
|
83
|
+
npmScriptEnv(envName(model) + '_TEST_LIVE', 'TRUE') + ' --test dist-test/live.test.js',
|
|
80
84
|
} : {}),
|
|
81
85
|
|
|
82
86
|
'pretest': 'npm run build',
|
|
83
|
-
'test': 'node --enable-source-maps --test-concurrency=1 --test
|
|
84
|
-
'test-some':
|
|
85
|
-
'--
|
|
86
|
-
'
|
|
87
|
+
'test': 'node --enable-source-maps --test-concurrency=1 --test "dist-test/**/*.test.js"',
|
|
88
|
+
'test-some': npmScriptTestSome(
|
|
89
|
+
['--enable-source-maps', '--experimental-test-isolation=none'], 'dist-test/**/*.test.js'),
|
|
90
|
+
'pretest-utility': 'npm run build',
|
|
91
|
+
'test-utility': 'node --enable-source-maps --test "dist-test/utility/*.test.js"',
|
|
87
92
|
|
|
88
93
|
'pretest-coverage': 'npm run build',
|
|
89
94
|
'test-coverage': 'node --test-concurrency=1 --experimental-test-coverage ' +
|
|
90
|
-
'--test-coverage-exclude
|
|
95
|
+
'--test-coverage-exclude="**/dist-test/**" ' +
|
|
91
96
|
'--test-coverage-lines=85 --test-coverage-branches=68 --test-coverage-functions=88 ' +
|
|
92
|
-
'--test
|
|
97
|
+
'--test "dist-test/**/*.test.js"',
|
|
93
98
|
|
|
94
99
|
"watch": "tsc --build src test -w",
|
|
95
100
|
// Prune compiled output before building: `tsc --build` is incremental and
|
|
96
101
|
// never deletes .js for a removed source, so entity tests that the model
|
|
97
102
|
// folds away would otherwise keep running from stale dist-test/ and fail.
|
|
98
|
-
"build":
|
|
99
|
-
"clean":
|
|
103
|
+
"build": npmScriptRm(['dist', 'dist-test']) + ' && tsc --build src test',
|
|
104
|
+
"clean": npmScriptRm(['node_modules', 'yarn.lock', 'package-lock.json', 'dist', 'dist-test']),
|
|
100
105
|
"reset": "npm run clean && npm i && npm run build && npm test",
|
|
101
106
|
},
|
|
102
107
|
author,
|
|
103
108
|
|
|
104
109
|
license: 'MIT',
|
|
105
110
|
|
|
111
|
+
// node:module strips the README examples' types under TypeScript 7.
|
|
112
|
+
engines: { node: '>=22.13' },
|
|
113
|
+
|
|
106
114
|
dependencies: deps.prod,
|
|
107
115
|
peerDependencies: deps.peer,
|
|
108
116
|
devDependencies: deps.dev,
|