@voxgig/sdkgen 4.33.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 +22 -0
- package/dist/action/copies.js +243 -0
- package/dist/action/copies.js.map +1 -0
- package/dist/action/doctor.d.ts +16 -2
- package/dist/action/doctor.js +173 -23
- package/dist/action/doctor.js.map +1 -1
- package/dist/action/edition.js +6 -2
- package/dist/action/edition.js.map +1 -1
- package/dist/action/feature.js +6 -2
- package/dist/action/feature.js.map +1 -1
- package/dist/action/package.d.ts +3 -1
- package/dist/action/package.js +36 -11
- package/dist/action/package.js.map +1 -1
- package/dist/action/remove.js +2 -0
- package/dist/action/remove.js.map +1 -1
- package/dist/action/resolve.d.ts +12 -2
- package/dist/action/resolve.js +37 -2
- package/dist/action/resolve.js.map +1 -1
- package/dist/action/target.js +6 -2
- package/dist/action/target.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 +16 -8
- package/dist/sdkgen.js +115 -15
- 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 +352 -0
- package/src/action/doctor.ts +257 -21
- package/src/action/edition.ts +10 -2
- package/src/action/feature.ts +11 -2
- package/src/action/package.ts +43 -14
- package/src/action/remove.ts +4 -0
- package/src/action/resolve.ts +57 -3
- package/src/action/target.ts +10 -2
- 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 +142 -19
- 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
|
@@ -17,17 +17,26 @@ type DefinitionPoint = {
|
|
|
17
17
|
args: { name: string, wire: string, value: any }[]
|
|
18
18
|
select: Record<string, any>
|
|
19
19
|
headers?: { name: string, wire: string, value: any }[]
|
|
20
|
+
cookies?: { name: string, wire: string, value: any }[]
|
|
21
|
+
responseMedia?: string[]
|
|
22
|
+
rawBody?: { media: string[], text: boolean }
|
|
20
23
|
query: string[]
|
|
24
|
+
queryArgs?: { name: string, wire: string }[]
|
|
25
|
+
bodyArgs?: string[]
|
|
21
26
|
auth: Credential[][] | null
|
|
22
27
|
status: number
|
|
23
28
|
sample: any
|
|
24
29
|
idField: string
|
|
30
|
+
ownQuery?: string
|
|
25
31
|
}
|
|
26
32
|
|
|
27
33
|
|
|
28
34
|
const KEY = 'definition-test-key'
|
|
29
35
|
const BASE = 'http://definition.test'
|
|
30
36
|
|
|
37
|
+
const RAW_TEXT = 'definition-test-body'
|
|
38
|
+
const RAW_BYTES = Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0xff])
|
|
39
|
+
|
|
31
40
|
|
|
32
41
|
async function runDefinitionPoint(SDK: any, point: DefinitionPoint): Promise<void> {
|
|
33
42
|
const sent: { url: URL, init: any }[] = []
|
|
@@ -51,7 +60,9 @@ async function runDefinitionPoint(SDK: any, point: DefinitionPoint): Promise<voi
|
|
|
51
60
|
const input: any = { ...point.select }
|
|
52
61
|
for (const arg of point.args) input[arg.name] = arg.value
|
|
53
62
|
for (const h of point.headers || []) input[h.name] = h.value
|
|
63
|
+
for (const c of point.cookies || []) input[c.name] = c.value
|
|
54
64
|
if (null != point.action) input.$action = point.action
|
|
65
|
+
if (null != point.rawBody) input.$body = rawSample(point)
|
|
55
66
|
|
|
56
67
|
let result: any
|
|
57
68
|
let error: any
|
|
@@ -79,11 +90,19 @@ async function runDefinitionPoint(SDK: any, point: DefinitionPoint): Promise<voi
|
|
|
79
90
|
// Only what the definition declares, so never a path parameter again.
|
|
80
91
|
const credentialQuery = (point.auth || []).flat()
|
|
81
92
|
.filter((c) => 'query' === c.in).map((c) => c.name)
|
|
93
|
+
// prepareAuth sends the key whether or not this operation applies its scheme.
|
|
94
|
+
if (null != point.ownQuery) {
|
|
95
|
+
credentialQuery.push(point.ownQuery)
|
|
96
|
+
}
|
|
82
97
|
for (const key of url.searchParams.keys()) {
|
|
83
98
|
assert(point.query.includes(key) || credentialQuery.includes(key),
|
|
84
99
|
'query parameter not in the definition: ' + key)
|
|
85
100
|
}
|
|
86
101
|
|
|
102
|
+
for (const q of point.queryArgs || []) {
|
|
103
|
+
assert(url.searchParams.has(q.wire), 'query parameter not sent: ' + q.wire)
|
|
104
|
+
}
|
|
105
|
+
|
|
87
106
|
// From the apikey alone, placed as the definition's security scheme says.
|
|
88
107
|
if (null != point.auth && 0 < point.auth.length) {
|
|
89
108
|
const headers = new Headers(init.headers)
|
|
@@ -99,8 +118,63 @@ async function runDefinitionPoint(SDK: any, point: DefinitionPoint): Promise<voi
|
|
|
99
118
|
for (const h of point.headers || []) {
|
|
100
119
|
const wire = h.wire.toLowerCase()
|
|
101
120
|
if (credentialHeaders.includes(wire) || 'content-type' === wire) continue
|
|
102
|
-
|
|
103
|
-
|
|
121
|
+
const sentValue = new Headers(init.headers).get(wire)
|
|
122
|
+
// A Cookie header argument is cookie pieces, which the cookie arguments and
|
|
123
|
+
// the cookie credential join, each replacing the piece whose name it owns.
|
|
124
|
+
if ('cookie' === wire) {
|
|
125
|
+
const owned = (point.cookies || []).map((c) => c.wire).concat((point.auth || []).flat()
|
|
126
|
+
.filter((c) => 'cookie' === c.in).map((c) => c.name))
|
|
127
|
+
const pieces = String(sentValue ?? '').split(';').map((c) => c.trim())
|
|
128
|
+
for (const piece of String(h.value).split(';').map((c) => c.trim()).filter((c) => '' !== c)) {
|
|
129
|
+
if (owned.includes(piece.split('=')[0].trim())) continue
|
|
130
|
+
assert(pieces.includes(piece), 'header parameter not sent as a header: ' + h.wire)
|
|
131
|
+
}
|
|
132
|
+
continue
|
|
133
|
+
}
|
|
134
|
+
assert.equal(sentValue, String(h.value), 'header parameter not sent as a header: ' + h.wire)
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// A cookie parameter goes out in the cookie header as name=value, percent-encoded.
|
|
138
|
+
const cookies = String(new Headers(init.headers).get('cookie') ?? '')
|
|
139
|
+
.split(';').map((c) => c.trim())
|
|
140
|
+
for (const c of point.cookies || []) {
|
|
141
|
+
assert(cookies.includes(c.wire + '=' + encodeURIComponent(String(c.value))),
|
|
142
|
+
'cookie parameter not sent in the cookie header: ' + c.wire)
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Accept asks only for what a success response declares: its JSON type
|
|
146
|
+
// alone, when it declares one.
|
|
147
|
+
if (null != point.responseMedia) {
|
|
148
|
+
const declared = point.responseMedia
|
|
149
|
+
const asked = String(new Headers(init.headers).get('accept') ?? '').split(',')
|
|
150
|
+
.map(baseMedia).filter((type) => '' !== type)
|
|
151
|
+
assert(0 < asked.length, 'no Accept for a declared response body: ' + declared.join(', '))
|
|
152
|
+
for (const type of asked) {
|
|
153
|
+
assert(declared.some((d) => covers(d, type)),
|
|
154
|
+
'Accept asks for a type no success response declares: ' + type)
|
|
155
|
+
}
|
|
156
|
+
if (declared.some(isJson)) {
|
|
157
|
+
assert(1 === asked.length && isJson(asked[0]),
|
|
158
|
+
'Accept is not the declared JSON type alone: ' + asked.join(', '))
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// A raw body goes out as given, under a type the definition declares.
|
|
163
|
+
if (null != point.rawBody) {
|
|
164
|
+
const type = baseMedia(new Headers(init.headers).get('content-type') ?? '')
|
|
165
|
+
assert(point.rawBody.media.some((d) => covers(d, type)),
|
|
166
|
+
'raw body sent as a type the definition does not declare: ' + type)
|
|
167
|
+
assert.deepEqual(bytesOf(init.body), bytesOf(rawSample(point)), 'raw body not sent as given')
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// An argument the request body declares too goes out in the body as well.
|
|
171
|
+
if (0 < (point.bodyArgs || []).length) {
|
|
172
|
+
let sentBody: any
|
|
173
|
+
try { sentBody = JSON.parse(String(init.body)) }
|
|
174
|
+
catch (_e) { sentBody = undefined }
|
|
175
|
+
for (const name of point.bodyArgs!) {
|
|
176
|
+
assert.deepEqual(sentBody?.[name], input[name], 'argument not sent in the body as well: ' + name)
|
|
177
|
+
}
|
|
104
178
|
}
|
|
105
179
|
|
|
106
180
|
if (null != error) {
|
|
@@ -120,7 +194,8 @@ async function runDefinitionPoint(SDK: any, point: DefinitionPoint): Promise<voi
|
|
|
120
194
|
records.length)
|
|
121
195
|
}
|
|
122
196
|
}
|
|
123
|
-
else if ('load' === point.op || 'create' === point.op || 'update' === point.op
|
|
197
|
+
else if ('load' === point.op || 'create' === point.op || 'update' === point.op ||
|
|
198
|
+
'patch' === point.op) {
|
|
124
199
|
const record = recordOf(point.sample, point.idField, point.entity)
|
|
125
200
|
if (null != record) {
|
|
126
201
|
assert.equal(result?.data?.()?.[point.idField], record[point.idField],
|
|
@@ -130,6 +205,37 @@ async function runDefinitionPoint(SDK: any, point: DefinitionPoint): Promise<voi
|
|
|
130
205
|
}
|
|
131
206
|
|
|
132
207
|
|
|
208
|
+
function rawSample(point: DefinitionPoint): any {
|
|
209
|
+
return point.rawBody?.text ? RAW_TEXT : RAW_BYTES
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
function bytesOf(body: any): Buffer {
|
|
214
|
+
return 'string' === typeof body ? Buffer.from(body, 'utf8') :
|
|
215
|
+
body instanceof ArrayBuffer ? Buffer.from(new Uint8Array(body)) :
|
|
216
|
+
ArrayBuffer.isView(body) ? Buffer.from(body.buffer, body.byteOffset, body.byteLength) :
|
|
217
|
+
Buffer.from(String(body))
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
function baseMedia(type: string): string {
|
|
222
|
+
return type.split(';')[0].trim().toLowerCase()
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
function isJson(type: string): boolean {
|
|
227
|
+
const media = baseMedia(type)
|
|
228
|
+
return 'application/json' === media || 'text/json' === media || media.endsWith('+json')
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
function covers(declared: string, type: string): boolean {
|
|
233
|
+
const media = baseMedia(declared)
|
|
234
|
+
return media === type || '*/*' === media ||
|
|
235
|
+
(media.endsWith('/*') && type.startsWith(media.slice(0, -1)))
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
|
|
133
239
|
function placed(cred: Credential, headers: Headers, url: URL): boolean {
|
|
134
240
|
if ('query' === cred.in) {
|
|
135
241
|
return KEY === url.searchParams.get(cred.name)
|
|
@@ -148,6 +148,15 @@ function tokensUsed(kase: any): number {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
|
|
151
|
+
// The first feature a case composes that this SDK does not generate. Such a
|
|
152
|
+
// case is skipped rather than failed, as a section naming one is.
|
|
153
|
+
function missingFeature(probe: any, kase: any): string | undefined {
|
|
154
|
+
const named = Array.isArray(kase.feature) ? kase.feature.map((f: any) => f?.name) :
|
|
155
|
+
Object.keys(kase.feature || {})
|
|
156
|
+
return named.find((n: any) => 'string' === typeof n && !probe._rootctx.config.hasFeature(n))
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
|
|
151
160
|
// Assert that `actual` contains `expect`, recursively. Cases assert only the
|
|
152
161
|
// fields they are about, so a full deepStrictEqual would force every case to
|
|
153
162
|
// restate the whole record.
|
|
@@ -216,6 +225,7 @@ describe('FeatureCorpus', () => {
|
|
|
216
225
|
`or an emptied fixture must fail loudly, not pass silently`)
|
|
217
226
|
|
|
218
227
|
let ran = 0
|
|
228
|
+
const failed: string[] = []
|
|
219
229
|
for (const raw of cases) {
|
|
220
230
|
const need = tokensUsed(raw)
|
|
221
231
|
if (ops.length < need) {
|
|
@@ -223,33 +233,52 @@ describe('FeatureCorpus', () => {
|
|
|
223
233
|
continue
|
|
224
234
|
}
|
|
225
235
|
|
|
236
|
+
const missing = missingFeature(probe, raw)
|
|
237
|
+
if (null != missing) {
|
|
238
|
+
t.diagnostic(`skip "${raw.name}": needs the ${missing} feature, ` +
|
|
239
|
+
'which this SDK does not generate')
|
|
240
|
+
continue
|
|
241
|
+
}
|
|
242
|
+
|
|
226
243
|
const tokens: Record<string, string> = {}
|
|
227
244
|
for (let i = 0; i < need; i++) { tokens['#OP' + (i + 1)] = ops[i].key }
|
|
228
245
|
|
|
229
246
|
const kase = resolve(raw, tokens)
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
247
|
+
ran++
|
|
248
|
+
|
|
249
|
+
// Every failing case is reported, not only the first.
|
|
250
|
+
try {
|
|
251
|
+
const client = makeClient(kase)
|
|
252
|
+
|
|
253
|
+
for (const step of (kase.op || [])) {
|
|
254
|
+
const ref = byKey[step.op]
|
|
255
|
+
ok(null != ref, `${kase.name}: no operation ${step.op}`)
|
|
256
|
+
let err: any = undefined
|
|
257
|
+
try {
|
|
258
|
+
await client[ref.accessor]()[ref.op]({}, step.ctrl || {})
|
|
259
|
+
}
|
|
260
|
+
catch (e: any) {
|
|
261
|
+
err = e
|
|
262
|
+
}
|
|
263
|
+
if (null == step.err) {
|
|
264
|
+
ok(undefined === err,
|
|
265
|
+
`${kase.name}: ${step.op} failed unexpectedly: ${err?.message}`)
|
|
266
|
+
continue
|
|
267
|
+
}
|
|
268
|
+
ok(undefined !== err, `${kase.name}: ${step.op} was expected to fail, and did not`)
|
|
242
269
|
if ('string' === typeof step.err) {
|
|
243
270
|
deepStrictEqual(err.code, step.err, `${kase.name}: wrong error code`)
|
|
244
271
|
}
|
|
245
272
|
}
|
|
246
|
-
}
|
|
247
273
|
|
|
248
|
-
|
|
249
|
-
|
|
274
|
+
subset(client[`_${name}`], kase.out, `${kase.name}: _${name}`)
|
|
275
|
+
}
|
|
276
|
+
catch (err: any) {
|
|
277
|
+
const msg = String(err?.message ?? err)
|
|
278
|
+
failed.push(msg.startsWith(kase.name) ? msg : kase.name + ': ' + msg)
|
|
279
|
+
}
|
|
250
280
|
}
|
|
251
281
|
|
|
252
|
-
ok(0 < ran, `every feature.${name} case was skipped`)
|
|
253
282
|
// Say how many ran. A partial run is legitimate (an SDK with one
|
|
254
283
|
// operation skips the cases needing two) but it should be visible
|
|
255
284
|
// rather than inferred from a green tick - and it is the one line
|
|
@@ -257,6 +286,8 @@ describe('FeatureCorpus', () => {
|
|
|
257
286
|
// language's runner.
|
|
258
287
|
t.diagnostic(`feature.${name}: ran ${ran} of ${cases.length} ` +
|
|
259
288
|
`case(s) against ${ops.length} operation(s)`)
|
|
289
|
+
ok(0 < ran, `every feature.${name} case was skipped`)
|
|
290
|
+
deepStrictEqual(failed, [], `feature.${name}: ${failed.length} case(s) failed`)
|
|
260
291
|
})
|
|
261
292
|
}
|
|
262
293
|
})
|
|
@@ -60,7 +60,7 @@ function defaultServer(): ServerFn {
|
|
|
60
60
|
|
|
61
61
|
function defaultMethod(op: string): string {
|
|
62
62
|
if ('create' === op) return 'POST'
|
|
63
|
-
if ('update' === op) return 'PATCH'
|
|
63
|
+
if ('update' === op || 'patch' === op) return 'PATCH'
|
|
64
64
|
if ('remove' === op) return 'DELETE'
|
|
65
65
|
return 'GET'
|
|
66
66
|
}
|
|
@@ -252,6 +252,9 @@ function makeClient(spec: {
|
|
|
252
252
|
headers: ctx.spec.headers,
|
|
253
253
|
body: ctx.spec.body,
|
|
254
254
|
}
|
|
255
|
+
if (null != ctx.ctrl.signal) {
|
|
256
|
+
fetchdef.signal = ctx.ctrl.signal
|
|
257
|
+
}
|
|
255
258
|
response = await utility.fetcher(ctx, fetchdef.url, fetchdef)
|
|
256
259
|
}
|
|
257
260
|
ctx.response = response
|
|
@@ -628,7 +628,7 @@ describe('secrets exchange', () => {
|
|
|
628
628
|
|
|
629
629
|
const res = await sdk.direct({ path: '/thing' })
|
|
630
630
|
|
|
631
|
-
assert.ok(res
|
|
631
|
+
assert.ok(res && false === res.ok && null != res.err,
|
|
632
632
|
'expected a failure, got: ' + JSON.stringify(res))
|
|
633
633
|
assert.equal(stub.api().length, 0,
|
|
634
634
|
'a request must not go out unauthenticated because the chain was empty')
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
import { test, describe } from 'node:test'
|
|
8
8
|
import { strictEqual, ok, deepStrictEqual } from 'node:assert'
|
|
9
|
+
import { getEventListeners } from 'node:events'
|
|
9
10
|
|
|
11
|
+
import { ProjectNameSDK } from '..'
|
|
10
12
|
import { hasFeature, makeClient, makeClock, makeResponse } from './feature/harness'
|
|
11
13
|
|
|
12
14
|
|
|
@@ -21,6 +23,23 @@ function recordingServer(reply?: (n: number, fetchdef: any) => any) {
|
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
|
|
26
|
+
// Answers after `ms` unless the request's signal aborts first, when it rejects
|
|
27
|
+
// with the signal's reason, as fetch does.
|
|
28
|
+
function slowServer(ms: number) {
|
|
29
|
+
return (_ctx: any, _url: string, fetchdef: any) => new Promise((resolve, reject) => {
|
|
30
|
+
const timer = setTimeout(() => resolve(makeResponse(200, { ok: true })), ms)
|
|
31
|
+
const signal = fetchdef.signal
|
|
32
|
+
if (null == signal) return
|
|
33
|
+
const abort = () => {
|
|
34
|
+
clearTimeout(timer)
|
|
35
|
+
reject(signal.reason)
|
|
36
|
+
}
|
|
37
|
+
if (signal.aborted) return abort()
|
|
38
|
+
signal.addEventListener('abort', abort, { once: true })
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
24
43
|
// A subtest that drives a second feature (netsim as the simulated network)
|
|
25
44
|
// can only run when this SDK was generated with it: the harness skips
|
|
26
45
|
// absent features, which would leave the scenario unsimulated and the
|
|
@@ -786,4 +805,119 @@ describe('feature', () => {
|
|
|
786
805
|
strictEqual(h.client._netsim.calls, 1)
|
|
787
806
|
})
|
|
788
807
|
}
|
|
808
|
+
|
|
809
|
+
// --- abort ----------------------------------------------------------------
|
|
810
|
+
// A caller's signal ends a request wherever it waits. Each wait is far longer
|
|
811
|
+
// than the abort, so a request that ignored the signal would take seconds.
|
|
812
|
+
describe('abort', () => {
|
|
813
|
+
|
|
814
|
+
test('a caller abort cancels a request the timeout feature wraps', { skip: skipWithout('timeout') }, async () => {
|
|
815
|
+
const h = makeClient({ features: [{ name: 'timeout', options: { ms: 5000 } }], server: slowServer(2000) })
|
|
816
|
+
const ac = new AbortController()
|
|
817
|
+
const reason = new Error('stop')
|
|
818
|
+
setTimeout(() => ac.abort(reason), 20)
|
|
819
|
+
const start = Date.now()
|
|
820
|
+
const res = await h.op({ op: 'load', ctrl: { signal: ac.signal } })
|
|
821
|
+
ok(Date.now() - start < 1000, 'the request ended at the abort')
|
|
822
|
+
strictEqual(res.error, reason)
|
|
823
|
+
strictEqual(h.client._timeout, undefined, 'an abort is not a timeout')
|
|
824
|
+
})
|
|
825
|
+
|
|
826
|
+
test('the deadline still fires while the caller signal stays live', { skip: skipWithout('timeout') }, async () => {
|
|
827
|
+
const h = makeClient({ features: [{ name: 'timeout', options: { ms: 20 } }], server: slowServer(2000) })
|
|
828
|
+
const ac = new AbortController()
|
|
829
|
+
const res = await h.op({ op: 'load', ctrl: { signal: ac.signal } })
|
|
830
|
+
strictEqual(res.error.code, 'timeout')
|
|
831
|
+
strictEqual(getEventListeners(ac.signal, 'abort').length, 0,
|
|
832
|
+
'the timeout leaves no listener on the caller signal')
|
|
833
|
+
})
|
|
834
|
+
|
|
835
|
+
test('an aborted request is not retried', { skip: skipWithout('retry') }, async () => {
|
|
836
|
+
const ac = new AbortController()
|
|
837
|
+
const rec = recordingServer(() => {
|
|
838
|
+
ac.abort()
|
|
839
|
+
return makeResponse(503)
|
|
840
|
+
})
|
|
841
|
+
const clock = makeClock()
|
|
842
|
+
const h = makeClient({
|
|
843
|
+
features: [{ name: 'retry', options: { retries: 3, minDelay: 10, jitter: false, sleep: clock.sleep } }],
|
|
844
|
+
server: rec.server,
|
|
845
|
+
})
|
|
846
|
+
const res = await h.op({ op: 'load', ctrl: { signal: ac.signal } })
|
|
847
|
+
strictEqual(rec.calls.length, 1)
|
|
848
|
+
strictEqual(res.error, ac.signal.reason)
|
|
849
|
+
strictEqual(h.client._retry, undefined, 'no retry was scheduled')
|
|
850
|
+
})
|
|
851
|
+
|
|
852
|
+
test('an abort whose reason is not an Error is not retried either', { skip: skipWithout('retry') }, async () => {
|
|
853
|
+
// fetch rejects with the reason itself, so a string or a number reaches
|
|
854
|
+
// retry as a non-Error: it must still end the request, not become a response.
|
|
855
|
+
const server = slowServer(2000)
|
|
856
|
+
const h = makeClient({
|
|
857
|
+
features: [{ name: 'retry', options: { retries: 3, minDelay: 10, jitter: false } }],
|
|
858
|
+
server,
|
|
859
|
+
})
|
|
860
|
+
const ac = new AbortController()
|
|
861
|
+
setTimeout(() => ac.abort('user cancelled'), 20)
|
|
862
|
+
const start = Date.now()
|
|
863
|
+
const res = await h.op({ op: 'load', ctrl: { signal: ac.signal } })
|
|
864
|
+
ok(Date.now() - start < 1000, 'the request ended at the abort')
|
|
865
|
+
strictEqual(res.ok, false)
|
|
866
|
+
strictEqual(res.error, 'user cancelled')
|
|
867
|
+
strictEqual(h.client._retry, undefined, 'no retry was scheduled')
|
|
868
|
+
})
|
|
869
|
+
|
|
870
|
+
test('an abort during the retry backoff ends it', { skip: skipWithout('retry') }, async () => {
|
|
871
|
+
const ac = new AbortController()
|
|
872
|
+
const rec = recordingServer(() => makeResponse(503))
|
|
873
|
+
const h = makeClient({
|
|
874
|
+
features: [{ name: 'retry', options: { retries: 3, minDelay: 2000, jitter: false } }],
|
|
875
|
+
server: rec.server,
|
|
876
|
+
})
|
|
877
|
+
setTimeout(() => ac.abort(), 20)
|
|
878
|
+
const start = Date.now()
|
|
879
|
+
const res = await h.op({ op: 'load', ctrl: { signal: ac.signal } })
|
|
880
|
+
ok(Date.now() - start < 1000, 'the backoff ended at the abort')
|
|
881
|
+
strictEqual(rec.calls.length, 1)
|
|
882
|
+
strictEqual(res.error, ac.signal.reason)
|
|
883
|
+
})
|
|
884
|
+
|
|
885
|
+
test('an abort during simulated latency ends the request before the transport', { skip: skipWithout('netsim') }, async () => {
|
|
886
|
+
const ac = new AbortController()
|
|
887
|
+
const rec = recordingServer()
|
|
888
|
+
const h = makeClient({ features: [{ name: 'netsim', options: { latency: 2000 } }], server: rec.server })
|
|
889
|
+
setTimeout(() => ac.abort(), 20)
|
|
890
|
+
const start = Date.now()
|
|
891
|
+
const res = await h.op({ op: 'load', ctrl: { signal: ac.signal } })
|
|
892
|
+
ok(Date.now() - start < 1000, 'the latency ended at the abort')
|
|
893
|
+
strictEqual(rec.calls.length, 0)
|
|
894
|
+
strictEqual(res.error, ac.signal.reason)
|
|
895
|
+
})
|
|
896
|
+
|
|
897
|
+
test('an abort while waiting for a rate-limit token ends the wait', { skip: skipWithout('ratelimit') }, async () => {
|
|
898
|
+
const ac = new AbortController()
|
|
899
|
+
const rec = recordingServer()
|
|
900
|
+
const h = makeClient({ features: [{ name: 'ratelimit', options: { rate: 0.5, burst: 1 } }], server: rec.server })
|
|
901
|
+
await h.op({ op: 'load' })
|
|
902
|
+
setTimeout(() => ac.abort(), 20)
|
|
903
|
+
const start = Date.now()
|
|
904
|
+
const res = await h.op({ op: 'load', ctrl: { signal: ac.signal } })
|
|
905
|
+
ok(Date.now() - start < 1000, 'the wait ended at the abort')
|
|
906
|
+
strictEqual(rec.calls.length, 1)
|
|
907
|
+
strictEqual(res.error, ac.signal.reason)
|
|
908
|
+
})
|
|
909
|
+
|
|
910
|
+
test('the test transport aborts a request in flight', async () => {
|
|
911
|
+
const sdk = ProjectNameSDK.test({ net: { latency: 2000 } })
|
|
912
|
+
const ac = new AbortController()
|
|
913
|
+
const reason = new Error('stop')
|
|
914
|
+
setTimeout(() => ac.abort(reason), 20)
|
|
915
|
+
const start = Date.now()
|
|
916
|
+
const res: any = await sdk.direct({ path: '/ping', ctrl: { signal: ac.signal } })
|
|
917
|
+
ok(Date.now() - start < 1000, 'the request ended at the abort')
|
|
918
|
+
strictEqual(res.ok, false)
|
|
919
|
+
strictEqual(res.err.code, 'request_aborted')
|
|
920
|
+
strictEqual(res.err.cause, reason)
|
|
921
|
+
})
|
|
922
|
+
})
|
|
789
923
|
})
|
|
@@ -69,9 +69,9 @@ export function synthesizeInput(schema: any, explicit?: any, depth = 0): any {
|
|
|
69
69
|
for (const choice of schema.oneOf || schema.anyOf || []) {
|
|
70
70
|
try { const v = synthesizeInput(choice, undefined, depth + 1); validateContract(schema, v); return v } catch {}
|
|
71
71
|
}
|
|
72
|
+
if (schema.allOf) return allOfInput(schema, depth)
|
|
72
73
|
let value: any
|
|
73
|
-
if (schema.
|
|
74
|
-
else if (schema.type === 'object' || schema.properties) {
|
|
74
|
+
if (schema.type === 'object' || schema.properties) {
|
|
75
75
|
value = {}
|
|
76
76
|
for (const key of schema.required || []) if (!schema.properties?.[key]?.readOnly) {
|
|
77
77
|
value[key] = synthesizeInput(schema.properties?.[key], undefined, depth + 1)
|
|
@@ -90,6 +90,64 @@ export function synthesizeInput(schema: any, explicit?: any, depth = 0): any {
|
|
|
90
90
|
return value
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
// An allOf's objects merged, else the first value its parts give that the whole schema
|
|
94
|
+
// accepts: a declared value, then a synthesized one. A part that gives no value is left
|
|
95
|
+
// to that validation, unless it carries a constraint the validator does not check.
|
|
96
|
+
function allOfInput(schema: any, depth: number): any {
|
|
97
|
+
let blocked: unknown
|
|
98
|
+
const given = schema.allOf.map((part: any) => {
|
|
99
|
+
try { return synthesizeInput(part, undefined, depth + 1) }
|
|
100
|
+
catch (error) {
|
|
101
|
+
const unchecked = uncheckedConstraint(part)
|
|
102
|
+
if (unchecked) throw new LiveBlocked('Unsupported contract constraint: ' + unchecked)
|
|
103
|
+
blocked ??= error
|
|
104
|
+
}
|
|
105
|
+
})
|
|
106
|
+
const objects = given.filter((v: any) => v !== null && typeof v === 'object' && !Array.isArray(v))
|
|
107
|
+
const candidates = [...(objects.length ? [Object.assign({}, ...objects)] : []),
|
|
108
|
+
...declaredValues(schema.allOf), ...given.filter((v: any) => v !== undefined)]
|
|
109
|
+
let mismatch: unknown
|
|
110
|
+
for (const value of candidates) {
|
|
111
|
+
try { validateContract(schema, value); return value } catch (error) { mismatch ??= error }
|
|
112
|
+
}
|
|
113
|
+
throw blocked ?? mismatch ?? new LiveBlocked('Required input needs a guide recipe or validated example')
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// What the parts declare, each kind in part order: every example, then every enum
|
|
117
|
+
// value, then every default.
|
|
118
|
+
function declaredValues(parts: any[]): any[] {
|
|
119
|
+
const schemas = parts.filter(part => part !== null && typeof part === 'object')
|
|
120
|
+
const values: any[] = []
|
|
121
|
+
const add = (value: any) => {
|
|
122
|
+
if (!values.some(v => JSON.stringify(v) === JSON.stringify(value))) values.push(value)
|
|
123
|
+
}
|
|
124
|
+
for (const part of schemas) {
|
|
125
|
+
if (part.example !== undefined) add(part.example)
|
|
126
|
+
for (const value of Array.isArray(part.examples) ? part.examples : []) add(value)
|
|
127
|
+
}
|
|
128
|
+
for (const part of schemas) for (const value of Array.isArray(part.enum) ? part.enum : []) add(value)
|
|
129
|
+
for (const part of schemas) if (part.default !== undefined) add(part.default)
|
|
130
|
+
return values
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// The keywords validateContract reads, and those that only annotate; any other
|
|
134
|
+
// keyword on a part is a constraint no validation of the whole schema can enforce.
|
|
135
|
+
const CHECKED_KEYWORDS = new Set(['$ref', 'type', 'enum', 'const', 'format', 'pattern',
|
|
136
|
+
'minLength', 'maxLength', 'minimum', 'maximum', 'exclusiveMinimum', 'exclusiveMaximum',
|
|
137
|
+
'multipleOf', 'items', 'prefixItems', 'minItems', 'maxItems', 'uniqueItems', 'properties',
|
|
138
|
+
'required', 'additionalProperties', 'allOf', 'oneOf', 'anyOf', 'not', 'if', 'then', 'else',
|
|
139
|
+
'dependentRequired', 'dependentSchemas', 'patternProperties', 'contains',
|
|
140
|
+
'unevaluatedProperties', 'unevaluatedItems'])
|
|
141
|
+
const ANNOTATION_KEYWORDS = new Set(['description', 'title', 'example', 'examples', 'default',
|
|
142
|
+
'deprecated', 'readOnly', 'writeOnly', 'externalDocs', 'xml', 'nullable', 'discriminator',
|
|
143
|
+
'$comment', '$schema', '$id'])
|
|
144
|
+
|
|
145
|
+
function uncheckedConstraint(part: any): string | undefined {
|
|
146
|
+
if (part === null || typeof part !== 'object') return undefined
|
|
147
|
+
return Object.keys(part).find(key =>
|
|
148
|
+
!CHECKED_KEYWORDS.has(key) && !ANNOTATION_KEYWORDS.has(key) && !key.startsWith('x-'))
|
|
149
|
+
}
|
|
150
|
+
|
|
93
151
|
export function requestContract(facts: any): { schema?: any, example?: any, required?: boolean } {
|
|
94
152
|
const body = facts?.requestBody
|
|
95
153
|
if (body) {
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import assert from 'node:assert/strict'
|
|
2
2
|
import { requestContract, synthesizeInput } from './live-contract'
|
|
3
|
-
import { runLiveSteps,
|
|
3
|
+
import { runLiveSteps, settleLiveReport, LiveBlocked, LiveEmpty } from './live-runner'
|
|
4
|
+
import type { LiveSettle } from './live-runner'
|
|
4
5
|
import { isControlSkipped, liveDelayMs } from './utility'
|
|
5
6
|
|
|
6
7
|
// The offline flow keeps its deterministic fixture assertions. Live flows
|
|
7
8
|
// resolve real prerequisites per operation and collect failures until done.
|
|
8
|
-
async function runLiveEntity(
|
|
9
|
+
async function runLiveEntity(
|
|
10
|
+
setup: any, entity: any, flow: any, accessor: string, facts: any = {}, settle: LiveSettle = {},
|
|
11
|
+
) {
|
|
9
12
|
const { client, transport } = setup
|
|
10
|
-
|
|
13
|
+
// A step switched off only because the offline call reaches no route of
|
|
14
|
+
// its operation still runs here, where each route's inputs are resolved.
|
|
15
|
+
const steps: any[] = (flow.step || [])
|
|
16
|
+
.filter((step: any) => false !== step.a || true === step.unreachable)
|
|
11
17
|
const created = new Map<string, any>()
|
|
12
18
|
const listed: any[] = []
|
|
19
|
+
let listedEmpty = false
|
|
20
|
+
const recordFields = new Set<string>(['id', entity.id?.field || 'id',
|
|
21
|
+
...Object.values(entity.fields || {}).map((field: any) => field?.n).filter(Boolean)])
|
|
13
22
|
const marks = new Map<string, { name: string, value: any }>()
|
|
14
23
|
const idField = entity.id?.field || 'id'
|
|
15
24
|
const copy = (value: any) => JSON.parse(JSON.stringify(value ?? {}))
|
|
@@ -52,14 +61,17 @@ async function runLiveEntity(setup: any, entity: any, flow: any, accessor: strin
|
|
|
52
61
|
}
|
|
53
62
|
// A nested route needing a parent id must not hide an available
|
|
54
63
|
// parameter-free route for the same operation. Use the first viable
|
|
55
|
-
// candidate
|
|
64
|
+
// candidate. An action route is taken only when the step names its
|
|
65
|
+
// action or the operation has no other route, and then by name.
|
|
56
66
|
let resolved: any
|
|
57
67
|
let selected: any
|
|
58
|
-
const missing =
|
|
68
|
+
const unusable: { route: string, missing: string[] }[] = []
|
|
69
|
+
const actionOnly = points.every((point: any) => null != point.q?.$action)
|
|
59
70
|
for (const point of points) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
71
|
+
const action = point.q?.$action
|
|
72
|
+
if (null == input.$action ? null != action && !actionOnly : action !== input.$action) continue
|
|
73
|
+
const candidate = null == action ? { ...input } : { ...input, $action: action }
|
|
74
|
+
const missing: string[] = []
|
|
63
75
|
const params = point.g?.params || []
|
|
64
76
|
const query = (point.g?.query || []).filter((arg: any) => arg.r)
|
|
65
77
|
for (const arg of [...params, ...query]) {
|
|
@@ -67,11 +79,21 @@ async function runLiveEntity(setup: any, entity: any, flow: any, accessor: strin
|
|
|
67
79
|
const key = arg.n === 'id' ? entity.name + '01' : arg.n.replace(/_id$/, '') + '01'
|
|
68
80
|
const value = setup.idmap[key] ?? setup.idmap[arg.n] ?? loaded?.[arg.n] ?? arg.ex
|
|
69
81
|
if (undefined !== value && null !== value) candidate[arg.n] = value
|
|
70
|
-
else if (arg.r !== false)
|
|
82
|
+
else if (arg.r !== false) missing.push(arg.n)
|
|
71
83
|
}
|
|
72
|
-
if (
|
|
84
|
+
if (0 === missing.length) { resolved = candidate; selected = point; break }
|
|
85
|
+
unusable.push({ route: null == action ? point.m + ' ' + point.o : '$action ' + action, missing })
|
|
86
|
+
}
|
|
87
|
+
if (!resolved) {
|
|
88
|
+
// An empty list is a valid answer: the account has no record to load.
|
|
89
|
+
if (op === 'load' && !record && listedEmpty &&
|
|
90
|
+
unusable.every(route => route.missing.every(name => recordFields.has(name)))) {
|
|
91
|
+
throw new LiveEmpty('The account has no ' + entity.name + ' record to load')
|
|
92
|
+
}
|
|
93
|
+
throw new LiveBlocked(0 === unusable.length ? 'No route for $action ' + input.$action :
|
|
94
|
+
'No usable route: ' + unusable.map(route => route.route + ' needs ' +
|
|
95
|
+
route.missing.join(', ')).join('; '))
|
|
73
96
|
}
|
|
74
|
-
if (!resolved) throw new LiveBlocked('No usable route; missing arguments: ' + [...missing].join(', '))
|
|
75
97
|
input = resolved
|
|
76
98
|
if (op === 'create' && facts[selected.m + ' ' + selected.o]) {
|
|
77
99
|
const selectedFacts = facts[selected.m + ' ' + selected.o]
|
|
@@ -79,6 +101,7 @@ async function runLiveEntity(setup: any, entity: any, flow: any, accessor: strin
|
|
|
79
101
|
if (request.schema) input = { ...synthesizeInput(request.schema, selected.li?.input ?? request.example) }
|
|
80
102
|
else if (selectedFacts.protocol === 'http') input = {}
|
|
81
103
|
for (const arg of selected.g?.params || []) if (resolved[arg.n] !== undefined) input[arg.n] = resolved[arg.n]
|
|
104
|
+
if (undefined !== resolved.$action) input.$action = resolved.$action
|
|
82
105
|
}
|
|
83
106
|
let intendedMark: { name: string, value: any } | undefined
|
|
84
107
|
if (op === 'update') {
|
|
@@ -102,6 +125,7 @@ async function runLiveEntity(setup: any, entity: any, flow: any, accessor: strin
|
|
|
102
125
|
return item.data()
|
|
103
126
|
})
|
|
104
127
|
listed.splice(0, listed.length, ...data)
|
|
128
|
+
listedEmpty = 0 === data.length
|
|
105
129
|
context.publish(data)
|
|
106
130
|
for (const validation of step.v || []) {
|
|
107
131
|
const previous = created.get(validation.def?.ref)
|
|
@@ -136,7 +160,7 @@ async function runLiveEntity(setup: any, entity: any, flow: any, accessor: strin
|
|
|
136
160
|
report: result => console.log('LIVE STEP ' + JSON.stringify(result)),
|
|
137
161
|
})
|
|
138
162
|
console.log('LIVE SUMMARY ' + JSON.stringify({ entity: entity.name, ...report }))
|
|
139
|
-
|
|
163
|
+
settleLiveReport(report, settle)
|
|
140
164
|
}
|
|
141
165
|
|
|
142
166
|
export { runLiveEntity }
|