@voxgig/sdkgen 4.21.0 → 4.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/voxgig-sdkgen +1 -1
- package/dist/action/action.js +0 -65
- package/dist/action/action.js.map +1 -1
- package/dist/action/check.js +0 -88
- package/dist/action/check.js.map +1 -1
- package/dist/action/dispatch.js +0 -27
- package/dist/action/dispatch.js.map +1 -1
- package/dist/action/doctor.d.ts +1 -0
- package/dist/action/doctor.js +55 -321
- package/dist/action/doctor.js.map +1 -1
- package/dist/action/edition.js +1 -87
- package/dist/action/edition.js.map +1 -1
- package/dist/action/feature.js +0 -48
- package/dist/action/feature.js.map +1 -1
- package/dist/action/kind.js +0 -132
- package/dist/action/kind.js.map +1 -1
- package/dist/action/package.js +0 -221
- package/dist/action/package.js.map +1 -1
- package/dist/action/resolve.js +0 -145
- package/dist/action/resolve.js.map +1 -1
- package/dist/action/target.js +0 -177
- package/dist/action/target.js.map +1 -1
- package/dist/cmp/AgentGuide.js +0 -7
- package/dist/cmp/AgentGuide.js.map +1 -1
- package/dist/cmp/AgentGuideContent.js +0 -24
- package/dist/cmp/AgentGuideContent.js.map +1 -1
- package/dist/cmp/AgentGuideTop.js +0 -7
- package/dist/cmp/AgentGuideTop.js.map +1 -1
- package/dist/cmp/Changelog.js +0 -14
- package/dist/cmp/Changelog.js.map +1 -1
- package/dist/cmp/Deploy.js +1 -31
- package/dist/cmp/Deploy.js.map +1 -1
- package/dist/cmp/Entity.js +0 -4
- package/dist/cmp/Entity.js.map +1 -1
- package/dist/cmp/ExternalTarget.js +0 -36
- package/dist/cmp/ExternalTarget.js.map +1 -1
- package/dist/cmp/Feature.js +0 -14
- package/dist/cmp/Feature.js.map +1 -1
- package/dist/cmp/FeatureDocs.js +0 -25
- package/dist/cmp/FeatureDocs.js.map +1 -1
- package/dist/cmp/PublishWorkflow.js +0 -60
- package/dist/cmp/PublishWorkflow.js.map +1 -1
- package/dist/cmp/ReadmeErrors.js +0 -2
- package/dist/cmp/ReadmeErrors.js.map +1 -1
- package/dist/cmp/ReadmeExplanation.js +0 -5
- package/dist/cmp/ReadmeExplanation.js.map +1 -1
- package/dist/cmp/ReadmeFeatures.js +0 -10
- package/dist/cmp/ReadmeFeatures.js.map +1 -1
- package/dist/cmp/ReadmeRefFeatures.js +0 -19
- package/dist/cmp/ReadmeRefFeatures.js.map +1 -1
- package/dist/cmp/ReadmeStation.js +0 -19
- package/dist/cmp/ReadmeStation.js.map +1 -1
- package/dist/cmp/ReadmeTop.js +1 -81
- package/dist/cmp/ReadmeTop.js.map +1 -1
- package/dist/cmp/ReadmeUnions.js +1 -16
- package/dist/cmp/ReadmeUnions.js.map +1 -1
- package/dist/cmp/Registered.js +0 -30
- package/dist/cmp/Registered.js.map +1 -1
- package/dist/cmp/Security.js +0 -2
- package/dist/cmp/Security.js.map +1 -1
- package/dist/cmp/Test.js +3 -2
- package/dist/cmp/Test.js.map +1 -1
- package/dist/cmp/TestControl.js +0 -25
- package/dist/cmp/TestControl.js.map +1 -1
- package/dist/helpers/applicability.js +0 -60
- package/dist/helpers/applicability.js.map +1 -1
- package/dist/helpers/buildIdNames.d.ts +3 -1
- package/dist/helpers/buildIdNames.js +15 -19
- package/dist/helpers/buildIdNames.js.map +1 -1
- package/dist/helpers/canonSpec.js +2 -116
- package/dist/helpers/canonSpec.js.map +1 -1
- package/dist/helpers/canonType.js +0 -87
- package/dist/helpers/canonType.js.map +1 -1
- package/dist/helpers/collectDeps.js +0 -27
- package/dist/helpers/collectDeps.js.map +1 -1
- package/dist/helpers/definition.js +0 -29
- package/dist/helpers/definition.js.map +1 -1
- package/dist/helpers/dryrun.js +0 -8
- package/dist/helpers/dryrun.js.map +1 -1
- package/dist/helpers/featureSource.js +0 -145
- package/dist/helpers/featureSource.js.map +1 -1
- package/dist/helpers/getMatchEntries.js +2 -6
- package/dist/helpers/getMatchEntries.js.map +1 -1
- package/dist/helpers/junk.js +9 -85
- package/dist/helpers/junk.js.map +1 -1
- package/dist/helpers/manifest.js +0 -138
- package/dist/helpers/manifest.js.map +1 -1
- package/dist/helpers/modelNames.js +5 -79
- package/dist/helpers/modelNames.js.map +1 -1
- package/dist/helpers/modelcheck.js +0 -106
- package/dist/helpers/modelcheck.js.map +1 -1
- package/dist/helpers/naming.d.ts +0 -1
- package/dist/helpers/naming.js +0 -303
- package/dist/helpers/naming.js.map +1 -1
- package/dist/helpers/opExample.js +0 -51
- package/dist/helpers/opExample.js.map +1 -1
- package/dist/helpers/opShape.js +33 -231
- package/dist/helpers/opShape.js.map +1 -1
- package/dist/helpers/optspec.js +0 -77
- package/dist/helpers/optspec.js.map +1 -1
- package/dist/helpers/packageMeta.js +1 -200
- package/dist/helpers/packageMeta.js.map +1 -1
- package/dist/helpers/pointPath.js +5 -65
- package/dist/helpers/pointPath.js.map +1 -1
- package/dist/helpers/resolved.d.ts +6 -0
- package/dist/helpers/resolved.js +22 -0
- package/dist/helpers/resolved.js.map +1 -0
- package/dist/helpers/semver.js +0 -61
- package/dist/helpers/semver.js.map +1 -1
- package/dist/helpers/serverVars.js +0 -44
- package/dist/helpers/serverVars.js.map +1 -1
- package/dist/helpers/shipped.js +0 -14
- package/dist/helpers/shipped.js.map +1 -1
- package/dist/helpers/station.js +0 -32
- package/dist/helpers/station.js.map +1 -1
- package/dist/helpers/stdrep.js +0 -26
- package/dist/helpers/stdrep.js.map +1 -1
- package/dist/helpers/testPolicy.js +0 -4
- package/dist/helpers/testPolicy.js.map +1 -1
- package/dist/sdkgen.d.ts +3 -2
- package/dist/sdkgen.js +15 -242
- package/dist/sdkgen.js.map +1 -1
- package/dist/testkit.js +6 -266
- package/dist/testkit.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utility.js +15 -250
- package/dist/utility.js.map +1 -1
- package/model/sdkgen.aon +12 -489
- package/package.json +4 -4
- package/project/.sdk/model/feature/audit.aon +0 -7
- package/project/.sdk/model/feature/cache.aon +0 -7
- package/project/.sdk/model/feature/clienttrack.aon +0 -7
- package/project/.sdk/model/feature/cost.aon +0 -13
- package/project/.sdk/model/feature/debug.aon +0 -7
- package/project/.sdk/model/feature/idempotency.aon +0 -7
- package/project/.sdk/model/feature/log.aon +0 -7
- package/project/.sdk/model/feature/metrics.aon +0 -7
- package/project/.sdk/model/feature/netsim.aon +0 -10
- package/project/.sdk/model/feature/paging.aon +0 -7
- package/project/.sdk/model/feature/proxy.aon +0 -7
- package/project/.sdk/model/feature/ratelimit.aon +0 -7
- package/project/.sdk/model/feature/retry.aon +0 -7
- package/project/.sdk/model/feature/secrets.aon +0 -482
- package/project/.sdk/model/feature/streaming.aon +0 -7
- package/project/.sdk/model/feature/telemetry.aon +0 -7
- package/project/.sdk/model/feature/test.aon +1 -8
- package/project/.sdk/model/feature/timeout.aon +0 -7
- package/project/.sdk/model/feature/validate.aon +0 -32
- package/project/.sdk/model/target/c.aon +0 -41
- package/project/.sdk/model/target/clojure.aon +0 -36
- package/project/.sdk/model/target/cpp.aon +0 -42
- package/project/.sdk/model/target/csharp.aon +0 -26
- package/project/.sdk/model/target/elixir.aon +0 -22
- package/project/.sdk/model/target/go-cli.aon +0 -30
- package/project/.sdk/model/target/go-mcp.aon +0 -21
- package/project/.sdk/model/target/go.aon +0 -9
- package/project/.sdk/model/target/java.aon +0 -29
- package/project/.sdk/model/target/js.aon +2 -21
- package/project/.sdk/model/target/kotlin.aon +0 -31
- package/project/.sdk/model/target/lua.aon +0 -32
- package/project/.sdk/model/target/ocaml.aon +0 -64
- package/project/.sdk/model/target/perl.aon +0 -20
- package/project/.sdk/model/target/php.aon +0 -17
- package/project/.sdk/model/target/py-data.aon +0 -33
- package/project/.sdk/model/target/py.aon +0 -17
- package/project/.sdk/model/target/rb.aon +0 -17
- package/project/.sdk/model/target/rust.aon +0 -25
- package/project/.sdk/model/target/scala.aon +0 -74
- package/project/.sdk/model/target/swift.aon +0 -41
- package/project/.sdk/model/target/ts.aon +3 -25
- package/project/.sdk/model/target/zig.aon +0 -50
- package/project/.sdk/src/cmp/c/Config_c.ts +0 -100
- package/project/.sdk/src/cmp/c/EntityTypes_c.ts +4 -40
- package/project/.sdk/src/cmp/c/Main_c.ts +0 -44
- package/project/.sdk/src/cmp/c/Package_c.ts +0 -14
- package/project/.sdk/src/cmp/c/PrepareAuth_c.ts +0 -85
- package/project/.sdk/src/cmp/c/ReadmeEntity_c.ts +3 -3
- package/project/.sdk/src/cmp/c/ReadmeExamplesTest_c.ts +0 -20
- package/project/.sdk/src/cmp/c/ReadmeModel_c.ts +3 -3
- package/project/.sdk/src/cmp/c/ReadmeRef_c.ts +7 -10
- package/project/.sdk/src/cmp/c/ReadmeTopQuick_c.ts +0 -2
- package/project/.sdk/src/cmp/c/Schema_c.ts +1 -20
- package/project/.sdk/src/cmp/c/TestDirect_c.ts +12 -12
- package/project/.sdk/src/cmp/c/utility_c.ts +0 -47
- package/project/.sdk/src/cmp/clojure/Config_clojure.ts +0 -63
- package/project/.sdk/src/cmp/clojure/Entity_clojure.ts +0 -1
- package/project/.sdk/src/cmp/clojure/Main_clojure.ts +0 -41
- package/project/.sdk/src/cmp/clojure/Package_clojure.ts +0 -20
- package/project/.sdk/src/cmp/clojure/PrepareAuth_clojure.ts +0 -130
- package/project/.sdk/src/cmp/clojure/ReadmeEntity_clojure.ts +3 -3
- package/project/.sdk/src/cmp/clojure/ReadmeExamplesTest_clojure.ts +0 -16
- package/project/.sdk/src/cmp/clojure/ReadmeModel_clojure.ts +3 -3
- package/project/.sdk/src/cmp/clojure/ReadmeRef_clojure.ts +7 -10
- package/project/.sdk/src/cmp/clojure/Schema_clojure.ts +1 -21
- package/project/.sdk/src/cmp/clojure/TestDirect_clojure.ts +0 -6
- package/project/.sdk/src/cmp/clojure/TestEntity_clojure.ts +0 -10
- package/project/.sdk/src/cmp/clojure/Test_clojure.ts +0 -8
- package/project/.sdk/src/cmp/clojure/featureextra_clojure.ts +0 -34
- package/project/.sdk/src/cmp/clojure/utility_clojure.ts +0 -47
- package/project/.sdk/src/cmp/cpp/Config_cpp.ts +0 -109
- package/project/.sdk/src/cmp/cpp/EntityTypes_cpp.ts +3 -39
- package/project/.sdk/src/cmp/cpp/Main_cpp.ts +0 -47
- package/project/.sdk/src/cmp/cpp/Package_cpp.ts +0 -14
- package/project/.sdk/src/cmp/cpp/PrepareAuth_cpp.ts +0 -125
- package/project/.sdk/src/cmp/cpp/ReadmeEntity_cpp.ts +3 -3
- package/project/.sdk/src/cmp/cpp/ReadmeExamplesTest_cpp.ts +0 -19
- package/project/.sdk/src/cmp/cpp/ReadmeModel_cpp.ts +3 -3
- package/project/.sdk/src/cmp/cpp/ReadmeQuick_cpp.ts +0 -7
- package/project/.sdk/src/cmp/cpp/ReadmeRef_cpp.ts +7 -10
- package/project/.sdk/src/cmp/cpp/Schema_cpp.ts +1 -22
- package/project/.sdk/src/cmp/cpp/TestDirect_cpp.ts +14 -14
- package/project/.sdk/src/cmp/cpp/TestEntity_cpp.ts +51 -53
- package/project/.sdk/src/cmp/cpp/Test_cpp.ts +0 -3
- package/project/.sdk/src/cmp/cpp/utility_cpp.ts +0 -28
- package/project/.sdk/src/cmp/csharp/Config_csharp.ts +0 -79
- package/project/.sdk/src/cmp/csharp/EntityOperation_csharp.ts +0 -3
- package/project/.sdk/src/cmp/csharp/EntityTypes_csharp.ts +4 -54
- package/project/.sdk/src/cmp/csharp/Entity_csharp.ts +0 -1
- package/project/.sdk/src/cmp/csharp/Main_csharp.ts +0 -24
- package/project/.sdk/src/cmp/csharp/Package_csharp.ts +0 -20
- package/project/.sdk/src/cmp/csharp/PrepareAuth_csharp.ts +0 -81
- package/project/.sdk/src/cmp/csharp/ReadmeEntity_csharp.ts +3 -4
- package/project/.sdk/src/cmp/csharp/ReadmeExamplesTest_csharp.ts +0 -23
- package/project/.sdk/src/cmp/csharp/ReadmeModel_csharp.ts +3 -3
- package/project/.sdk/src/cmp/csharp/ReadmeRef_csharp.ts +7 -10
- package/project/.sdk/src/cmp/csharp/ReadmeTopQuick_csharp.ts +0 -2
- package/project/.sdk/src/cmp/csharp/Schema_csharp.ts +1 -19
- package/project/.sdk/src/cmp/csharp/TestDirect_csharp.ts +30 -30
- package/project/.sdk/src/cmp/csharp/TestEntity_csharp.ts +66 -69
- package/project/.sdk/src/cmp/csharp/utility_csharp.ts +0 -72
- package/project/.sdk/src/cmp/elixir/Config_elixir.ts +0 -78
- package/project/.sdk/src/cmp/elixir/EntityTypes_elixir.ts +4 -42
- package/project/.sdk/src/cmp/elixir/Main_elixir.ts +0 -40
- package/project/.sdk/src/cmp/elixir/Package_elixir.ts +0 -13
- package/project/.sdk/src/cmp/elixir/PrepareAuth_elixir.ts +0 -123
- package/project/.sdk/src/cmp/elixir/ReadmeEntity_elixir.ts +3 -3
- package/project/.sdk/src/cmp/elixir/ReadmeExamplesTest_elixir.ts +0 -19
- package/project/.sdk/src/cmp/elixir/ReadmeModel_elixir.ts +3 -3
- package/project/.sdk/src/cmp/elixir/ReadmeRef_elixir.ts +6 -9
- package/project/.sdk/src/cmp/elixir/Schema_elixir.ts +1 -25
- package/project/.sdk/src/cmp/elixir/utility_elixir.ts +0 -34
- package/project/.sdk/src/cmp/go/Config_go.ts +0 -41
- package/project/.sdk/src/cmp/go/EntityTypes_go.ts +4 -75
- package/project/.sdk/src/cmp/go/Entity_go.ts +0 -5
- package/project/.sdk/src/cmp/go/Main_go.ts +0 -28
- package/project/.sdk/src/cmp/go/Package_go.ts +0 -7
- package/project/.sdk/src/cmp/go/PrepareAuth_go.ts +0 -64
- package/project/.sdk/src/cmp/go/ReadmeEntity_go.ts +3 -8
- package/project/.sdk/src/cmp/go/ReadmeExamplesTest_go.ts +0 -30
- package/project/.sdk/src/cmp/go/ReadmeHowto_go.ts +0 -3
- package/project/.sdk/src/cmp/go/ReadmeIntro_go.ts +0 -7
- package/project/.sdk/src/cmp/go/ReadmeModel_go.ts +3 -14
- package/project/.sdk/src/cmp/go/ReadmeQuick_go.ts +0 -21
- package/project/.sdk/src/cmp/go/ReadmeRef_go.ts +7 -19
- package/project/.sdk/src/cmp/go/ReadmeTopQuick_go.ts +0 -9
- package/project/.sdk/src/cmp/go/Schema_go.ts +1 -22
- package/project/.sdk/src/cmp/go/TestDirect_go.ts +38 -61
- package/project/.sdk/src/cmp/go/TestEntity_go.ts +75 -82
- package/project/.sdk/src/cmp/go/fragment/Entity.fragment.go +0 -21
- package/project/.sdk/src/cmp/go/fragment/Main.fragment.go +0 -12
- package/project/.sdk/src/cmp/go/utility_go.ts +5 -75
- package/project/.sdk/src/cmp/go-cli/Main_go-cli.ts +0 -49
- package/project/.sdk/src/cmp/go-cli/fragment/words.fragment.go +0 -12
- package/project/.sdk/src/cmp/go-mcp/Main_go-mcp.ts +0 -36
- package/project/.sdk/src/cmp/go-mcp/fragment/main.fragment.go +0 -20
- package/project/.sdk/src/cmp/go-mcp/fragment/tools.fragment.go +0 -3
- package/project/.sdk/src/cmp/java/Config_java.ts +0 -63
- package/project/.sdk/src/cmp/java/EntityTypes_java.ts +4 -54
- package/project/.sdk/src/cmp/java/Entity_java.ts +0 -6
- package/project/.sdk/src/cmp/java/Main_java.ts +0 -24
- package/project/.sdk/src/cmp/java/PrepareAuth_java.ts +0 -55
- package/project/.sdk/src/cmp/java/ReadmeEntity_java.ts +3 -4
- package/project/.sdk/src/cmp/java/ReadmeExamplesTest_java.ts +0 -20
- package/project/.sdk/src/cmp/java/ReadmeModel_java.ts +3 -3
- package/project/.sdk/src/cmp/java/ReadmeQuick_java.ts +0 -4
- package/project/.sdk/src/cmp/java/ReadmeRef_java.ts +7 -10
- package/project/.sdk/src/cmp/java/ReadmeTopQuick_java.ts +0 -7
- package/project/.sdk/src/cmp/java/Schema_java.ts +1 -20
- package/project/.sdk/src/cmp/java/TestDirect_java.ts +30 -37
- package/project/.sdk/src/cmp/java/TestEntity_java.ts +69 -72
- package/project/.sdk/src/cmp/java/Test_java.ts +0 -6
- package/project/.sdk/src/cmp/java/utility_java.ts +0 -33
- package/project/.sdk/src/cmp/js/Config_js.ts +0 -46
- package/project/.sdk/src/cmp/js/EntityTypes_js.ts +5 -38
- package/project/.sdk/src/cmp/js/Main_js.ts +0 -33
- package/project/.sdk/src/cmp/js/Package_js.ts +2 -7
- package/project/.sdk/src/cmp/js/PrepareAuth_js.ts +0 -57
- package/project/.sdk/src/cmp/js/ReadmeEntity_js.ts +3 -12
- package/project/.sdk/src/cmp/js/ReadmeHowto_js.ts +0 -2
- package/project/.sdk/src/cmp/js/ReadmeModel_js.ts +3 -3
- package/project/.sdk/src/cmp/js/ReadmeQuick_js.ts +0 -15
- package/project/.sdk/src/cmp/js/ReadmeRef_js.ts +7 -12
- package/project/.sdk/src/cmp/js/ReadmeTopQuick_js.ts +0 -7
- package/project/.sdk/src/cmp/js/Schema_js.ts +1 -22
- package/project/.sdk/src/cmp/js/TestDirect_js.ts +29 -43
- package/project/.sdk/src/cmp/js/TestEntity_js.ts +69 -82
- package/project/.sdk/src/cmp/js/TestLive_js.ts +12 -5
- package/project/.sdk/src/cmp/js/utility_js.ts +5 -63
- package/project/.sdk/src/cmp/kotlin/Config_kotlin.ts +0 -46
- package/project/.sdk/src/cmp/kotlin/EntityOperation_kotlin.ts +0 -2
- package/project/.sdk/src/cmp/kotlin/EntityTypes_kotlin.ts +4 -57
- package/project/.sdk/src/cmp/kotlin/Entity_kotlin.ts +0 -4
- package/project/.sdk/src/cmp/kotlin/Main_kotlin.ts +0 -46
- package/project/.sdk/src/cmp/kotlin/PrepareAuth_kotlin.ts +0 -113
- package/project/.sdk/src/cmp/kotlin/ReadmeEntity_kotlin.ts +3 -4
- package/project/.sdk/src/cmp/kotlin/ReadmeExamplesTest_kotlin.ts +0 -20
- package/project/.sdk/src/cmp/kotlin/ReadmeModel_kotlin.ts +3 -3
- package/project/.sdk/src/cmp/kotlin/ReadmeRef_kotlin.ts +7 -10
- package/project/.sdk/src/cmp/kotlin/ReadmeTopQuick_kotlin.ts +0 -5
- package/project/.sdk/src/cmp/kotlin/Schema_kotlin.ts +1 -20
- package/project/.sdk/src/cmp/kotlin/TestDirect_kotlin.ts +30 -30
- package/project/.sdk/src/cmp/kotlin/TestEntity_kotlin.ts +67 -70
- package/project/.sdk/src/cmp/kotlin/Test_kotlin.ts +0 -6
- package/project/.sdk/src/cmp/kotlin/utility_kotlin.ts +0 -33
- package/project/.sdk/src/cmp/lua/Config_lua.ts +0 -56
- package/project/.sdk/src/cmp/lua/EntityTypes_lua.ts +5 -35
- package/project/.sdk/src/cmp/lua/Entity_lua.ts +0 -7
- package/project/.sdk/src/cmp/lua/Main_lua.ts +0 -58
- package/project/.sdk/src/cmp/lua/Package_lua.ts +0 -20
- package/project/.sdk/src/cmp/lua/PrepareAuth_lua.ts +0 -61
- package/project/.sdk/src/cmp/lua/ReadmeEntity_lua.ts +3 -11
- package/project/.sdk/src/cmp/lua/ReadmeExamplesTest_lua.ts +0 -24
- package/project/.sdk/src/cmp/lua/ReadmeModel_lua.ts +3 -13
- package/project/.sdk/src/cmp/lua/ReadmeQuick_lua.ts +4 -25
- package/project/.sdk/src/cmp/lua/ReadmeRef_lua.ts +7 -17
- package/project/.sdk/src/cmp/lua/ReadmeTopQuick_lua.ts +0 -3
- package/project/.sdk/src/cmp/lua/Schema_lua.ts +1 -17
- package/project/.sdk/src/cmp/lua/TestDirect_lua.ts +25 -27
- package/project/.sdk/src/cmp/lua/TestEntity_lua.ts +66 -65
- package/project/.sdk/src/cmp/lua/utility_lua.ts +0 -30
- package/project/.sdk/src/cmp/ocaml/Config_ocaml.ts +0 -98
- package/project/.sdk/src/cmp/ocaml/EntityOperation_ocaml.ts +0 -6
- package/project/.sdk/src/cmp/ocaml/Main_ocaml.ts +0 -78
- package/project/.sdk/src/cmp/ocaml/Package_ocaml.ts +0 -13
- package/project/.sdk/src/cmp/ocaml/PrepareAuth_ocaml.ts +0 -145
- package/project/.sdk/src/cmp/ocaml/ReadmeEntity_ocaml.ts +3 -3
- package/project/.sdk/src/cmp/ocaml/ReadmeExamplesTest_ocaml.ts +0 -17
- package/project/.sdk/src/cmp/ocaml/ReadmeModel_ocaml.ts +3 -3
- package/project/.sdk/src/cmp/ocaml/ReadmeRef_ocaml.ts +7 -10
- package/project/.sdk/src/cmp/ocaml/Schema_ocaml.ts +1 -24
- package/project/.sdk/src/cmp/ocaml/SdkError_ocaml.ts +0 -4
- package/project/.sdk/src/cmp/ocaml/TestEntity_ocaml.ts +0 -5
- package/project/.sdk/src/cmp/ocaml/utility_ocaml.ts +0 -27
- package/project/.sdk/src/cmp/perl/Config_perl.ts +0 -52
- package/project/.sdk/src/cmp/perl/Entity_perl.ts +0 -3
- package/project/.sdk/src/cmp/perl/Main_perl.ts +0 -33
- package/project/.sdk/src/cmp/perl/Package_perl.ts +0 -8
- package/project/.sdk/src/cmp/perl/PrepareAuth_perl.ts +0 -84
- package/project/.sdk/src/cmp/perl/ReadmeEntity_perl.ts +3 -6
- package/project/.sdk/src/cmp/perl/ReadmeExamplesTest_perl.ts +0 -27
- package/project/.sdk/src/cmp/perl/ReadmeModel_perl.ts +3 -3
- package/project/.sdk/src/cmp/perl/ReadmeRef_perl.ts +7 -10
- package/project/.sdk/src/cmp/perl/ReadmeTopQuick_perl.ts +0 -2
- package/project/.sdk/src/cmp/perl/Schema_perl.ts +1 -19
- package/project/.sdk/src/cmp/perl/TestDirect_perl.ts +25 -27
- package/project/.sdk/src/cmp/perl/TestEntity_perl.ts +60 -59
- package/project/.sdk/src/cmp/perl/utility_perl.ts +0 -26
- package/project/.sdk/src/cmp/php/Config_php.ts +0 -76
- package/project/.sdk/src/cmp/php/EntityTypes_php.ts +5 -56
- package/project/.sdk/src/cmp/php/MainEntity_php.ts +0 -6
- package/project/.sdk/src/cmp/php/Main_php.ts +0 -15
- package/project/.sdk/src/cmp/php/PrepareAuth_php.ts +0 -73
- package/project/.sdk/src/cmp/php/ReadmeEntity_php.ts +3 -7
- package/project/.sdk/src/cmp/php/ReadmeExamplesTest_php.ts +0 -33
- package/project/.sdk/src/cmp/php/ReadmeHowto_php.ts +0 -1
- package/project/.sdk/src/cmp/php/ReadmeModel_php.ts +3 -3
- package/project/.sdk/src/cmp/php/ReadmeQuick_php.ts +4 -23
- package/project/.sdk/src/cmp/php/ReadmeRef_php.ts +7 -12
- package/project/.sdk/src/cmp/php/Schema_php.ts +1 -16
- package/project/.sdk/src/cmp/php/TestDirect_php.ts +25 -25
- package/project/.sdk/src/cmp/php/TestEntity_php.ts +66 -74
- package/project/.sdk/src/cmp/php/utility_php.ts +0 -22
- package/project/.sdk/src/cmp/py/Config_py.ts +0 -53
- package/project/.sdk/src/cmp/py/EntityTypes_py.ts +4 -59
- package/project/.sdk/src/cmp/py/Entity_py.ts +0 -16
- package/project/.sdk/src/cmp/py/Main_py.ts +1 -61
- package/project/.sdk/src/cmp/py/Package_py.ts +0 -3
- package/project/.sdk/src/cmp/py/PrepareAuth_py.ts +0 -69
- package/project/.sdk/src/cmp/py/ReadmeEntity_py.ts +3 -16
- package/project/.sdk/src/cmp/py/ReadmeExamplesTest_py.ts +0 -31
- package/project/.sdk/src/cmp/py/ReadmeHowto_py.ts +0 -3
- package/project/.sdk/src/cmp/py/ReadmeModel_py.ts +3 -3
- package/project/.sdk/src/cmp/py/ReadmeQuick_py.ts +0 -28
- package/project/.sdk/src/cmp/py/ReadmeRef_py.ts +7 -21
- package/project/.sdk/src/cmp/py/ReadmeTopQuick_py.ts +0 -14
- package/project/.sdk/src/cmp/py/Schema_py.ts +1 -20
- package/project/.sdk/src/cmp/py/TestDirect_py.ts +25 -27
- package/project/.sdk/src/cmp/py/TestEntity_py.ts +66 -65
- package/project/.sdk/src/cmp/py/utility_py.ts +0 -22
- package/project/.sdk/src/cmp/py-data/Main_py-data.ts +13 -47
- package/project/.sdk/src/cmp/rb/Config_rb.ts +0 -56
- package/project/.sdk/src/cmp/rb/EntityTypes_rb.ts +4 -62
- package/project/.sdk/src/cmp/rb/Entity_rb.ts +0 -3
- package/project/.sdk/src/cmp/rb/Main_rb.ts +0 -10
- package/project/.sdk/src/cmp/rb/Package_rb.ts +0 -5
- package/project/.sdk/src/cmp/rb/PrepareAuth_rb.ts +0 -81
- package/project/.sdk/src/cmp/rb/ReadmeEntity_rb.ts +3 -10
- package/project/.sdk/src/cmp/rb/ReadmeExamplesTest_rb.ts +0 -32
- package/project/.sdk/src/cmp/rb/ReadmeHowto_rb.ts +0 -9
- package/project/.sdk/src/cmp/rb/ReadmeModel_rb.ts +3 -3
- package/project/.sdk/src/cmp/rb/ReadmeQuick_rb.ts +4 -27
- package/project/.sdk/src/cmp/rb/ReadmeRef_rb.ts +7 -15
- package/project/.sdk/src/cmp/rb/ReadmeTopQuick_rb.ts +0 -5
- package/project/.sdk/src/cmp/rb/ReadmeTopTest_rb.ts +0 -3
- package/project/.sdk/src/cmp/rb/Schema_rb.ts +1 -16
- package/project/.sdk/src/cmp/rb/TestDirect_rb.ts +25 -27
- package/project/.sdk/src/cmp/rb/TestEntity_rb.ts +66 -65
- package/project/.sdk/src/cmp/rb/utility_rb.ts +0 -22
- package/project/.sdk/src/cmp/rust/Config_rust.ts +0 -35
- package/project/.sdk/src/cmp/rust/EntityTypes_rust.ts +4 -38
- package/project/.sdk/src/cmp/rust/Entity_rust.ts +0 -9
- package/project/.sdk/src/cmp/rust/Main_rust.ts +0 -58
- package/project/.sdk/src/cmp/rust/Package_rust.ts +0 -30
- package/project/.sdk/src/cmp/rust/PrepareAuth_rust.ts +0 -84
- package/project/.sdk/src/cmp/rust/ReadmeEntity_rust.ts +3 -3
- package/project/.sdk/src/cmp/rust/ReadmeExamplesTest_rust.ts +0 -16
- package/project/.sdk/src/cmp/rust/ReadmeModel_rust.ts +3 -3
- package/project/.sdk/src/cmp/rust/ReadmeRef_rust.ts +7 -10
- package/project/.sdk/src/cmp/rust/Schema_rust.ts +1 -19
- package/project/.sdk/src/cmp/rust/TestDirect_rust.ts +18 -25
- package/project/.sdk/src/cmp/rust/TestEntity_rust.ts +63 -71
- package/project/.sdk/src/cmp/rust/fragment/Entity.fragment.rs +0 -14
- package/project/.sdk/src/cmp/rust/fragment/EntityRemoveOp.fragment.rs +0 -4
- package/project/.sdk/src/cmp/rust/fragment/Main.fragment.rs +0 -20
- package/project/.sdk/src/cmp/rust/fragment/SdkError.fragment.rs +0 -6
- package/project/.sdk/src/cmp/rust/utility_rust.ts +0 -47
- package/project/.sdk/src/cmp/scala/Config_scala.ts +0 -31
- package/project/.sdk/src/cmp/scala/EntityTypes_scala.ts +4 -55
- package/project/.sdk/src/cmp/scala/Main_scala.ts +0 -78
- package/project/.sdk/src/cmp/scala/PrepareAuth_scala.ts +0 -102
- package/project/.sdk/src/cmp/scala/ReadmeEntity_scala.ts +3 -4
- package/project/.sdk/src/cmp/scala/ReadmeExamplesTest_scala.ts +0 -23
- package/project/.sdk/src/cmp/scala/ReadmeModel_scala.ts +3 -3
- package/project/.sdk/src/cmp/scala/ReadmeRef_scala.ts +7 -10
- package/project/.sdk/src/cmp/scala/ReadmeTopQuick_scala.ts +0 -5
- package/project/.sdk/src/cmp/scala/Schema_scala.ts +1 -20
- package/project/.sdk/src/cmp/scala/TestDirect_scala.ts +14 -14
- package/project/.sdk/src/cmp/scala/TestEntity_scala.ts +60 -67
- package/project/.sdk/src/cmp/scala/Test_scala.ts +0 -3
- package/project/.sdk/src/cmp/scala/utility_scala.ts +0 -31
- package/project/.sdk/src/cmp/swift/Config_swift.ts +0 -62
- package/project/.sdk/src/cmp/swift/EntityOperation_swift.ts +0 -3
- package/project/.sdk/src/cmp/swift/EntityTypes_swift.ts +5 -44
- package/project/.sdk/src/cmp/swift/Main_swift.ts +0 -42
- package/project/.sdk/src/cmp/swift/Package_swift.ts +0 -69
- package/project/.sdk/src/cmp/swift/PrepareAuth_swift.ts +0 -134
- package/project/.sdk/src/cmp/swift/ReadmeEntity_swift.ts +3 -5
- package/project/.sdk/src/cmp/swift/ReadmeExamplesTest_swift.ts +0 -22
- package/project/.sdk/src/cmp/swift/ReadmeModel_swift.ts +3 -3
- package/project/.sdk/src/cmp/swift/ReadmeRef_swift.ts +7 -10
- package/project/.sdk/src/cmp/swift/Schema_swift.ts +1 -19
- package/project/.sdk/src/cmp/swift/TestEntity_swift.ts +0 -4
- package/project/.sdk/src/cmp/swift/utility_swift.ts +0 -51
- package/project/.sdk/src/cmp/ts/Config_ts.ts +0 -46
- package/project/.sdk/src/cmp/ts/EntityTypes_ts.ts +5 -39
- package/project/.sdk/src/cmp/ts/Entity_ts.ts +0 -6
- package/project/.sdk/src/cmp/ts/Main_ts.ts +0 -28
- package/project/.sdk/src/cmp/ts/Package_ts.ts +2 -26
- package/project/.sdk/src/cmp/ts/PrepareAuth_ts.ts +0 -55
- package/project/.sdk/src/cmp/ts/ReadmeEntity_ts.ts +3 -12
- package/project/.sdk/src/cmp/ts/ReadmeExampleTest_ts.ts +0 -6
- package/project/.sdk/src/cmp/ts/ReadmeExamplesTest_ts.ts +0 -25
- package/project/.sdk/src/cmp/ts/ReadmeHowto_ts.ts +4 -9
- package/project/.sdk/src/cmp/ts/ReadmeIntro_ts.ts +0 -7
- package/project/.sdk/src/cmp/ts/ReadmeModel_ts.ts +3 -6
- package/project/.sdk/src/cmp/ts/ReadmeQuick_ts.ts +1 -44
- package/project/.sdk/src/cmp/ts/ReadmeRef_ts.ts +7 -25
- package/project/.sdk/src/cmp/ts/ReadmeTopQuick_ts.ts +0 -11
- package/project/.sdk/src/cmp/ts/ReadmeTopTest_ts.ts +6 -9
- package/project/.sdk/src/cmp/ts/Schema_ts.ts +1 -22
- package/project/.sdk/src/cmp/ts/TestDirect_ts.ts +42 -93
- package/project/.sdk/src/cmp/ts/TestEntity_ts.ts +76 -107
- package/project/.sdk/src/cmp/ts/TestLive_ts.ts +12 -6
- package/project/.sdk/src/cmp/ts/Test_ts.ts +0 -4
- package/project/.sdk/src/cmp/ts/fragment/Config.data.fragment.ts +0 -27
- package/project/.sdk/src/cmp/ts/fragment/Config.fragment.ts +0 -7
- package/project/.sdk/src/cmp/ts/fragment/Direct.test.fragment.ts +0 -7
- package/project/.sdk/src/cmp/ts/fragment/Entity.fragment.ts +0 -1
- package/project/.sdk/src/cmp/ts/fragment/Entity.test.fragment.ts +0 -4
- package/project/.sdk/src/cmp/ts/fragment/EntityBase.fragment.ts +0 -20
- package/project/.sdk/src/cmp/ts/fragment/EntityCreateOp.fragment.ts +0 -6
- package/project/.sdk/src/cmp/ts/fragment/EntityLoadOp.fragment.ts +0 -6
- package/project/.sdk/src/cmp/ts/fragment/EntityRemoveOp.fragment.ts +0 -15
- package/project/.sdk/src/cmp/ts/fragment/EntityUpdateOp.fragment.ts +0 -6
- package/project/.sdk/src/cmp/ts/fragment/Main.fragment.ts +0 -15
- package/project/.sdk/src/cmp/ts/fragment/MainStation.fragment.ts +0 -12
- package/project/.sdk/src/cmp/ts/fragment/SdkError.fragment.ts +0 -9
- package/project/.sdk/src/cmp/ts/utility_ts.ts +5 -64
- package/project/.sdk/src/cmp/zig/Config_zig.ts +0 -70
- package/project/.sdk/src/cmp/zig/Entity_zig.ts +0 -3
- package/project/.sdk/src/cmp/zig/Main_zig.ts +0 -83
- package/project/.sdk/src/cmp/zig/Package_zig.ts +0 -22
- package/project/.sdk/src/cmp/zig/PrepareAuth_zig.ts +0 -136
- package/project/.sdk/src/cmp/zig/ReadmeEntity_zig.ts +3 -3
- package/project/.sdk/src/cmp/zig/ReadmeExamplesTest_zig.ts +0 -18
- package/project/.sdk/src/cmp/zig/ReadmeModel_zig.ts +3 -3
- package/project/.sdk/src/cmp/zig/ReadmeQuick_zig.ts +0 -3
- package/project/.sdk/src/cmp/zig/ReadmeRef_zig.ts +7 -10
- package/project/.sdk/src/cmp/zig/Schema_zig.ts +1 -24
- package/project/.sdk/src/cmp/zig/TestDirect_zig.ts +0 -11
- package/project/.sdk/src/cmp/zig/TestEntity_zig.ts +0 -8
- package/project/.sdk/src/cmp/zig/Test_zig.ts +0 -11
- package/project/.sdk/src/cmp/zig/utility_zig.ts +0 -47
- package/project/.sdk/tm/c/feature/test.c +20 -4
- package/project/.sdk/tm/clojure/src/sdk/features.clj +6 -4
- package/project/.sdk/tm/cpp/feature/test.hpp +17 -6
- package/project/.sdk/tm/csharp/feature/FeatureOptions.cs +18 -5
- package/project/.sdk/tm/csharp/feature/TestFeature.cs +10 -4
- package/project/.sdk/tm/elixir/lib/projectname/feature/test.ex +11 -5
- package/project/.sdk/tm/go/core/context.go +0 -9
- package/project/.sdk/tm/go/core/types.go +0 -3
- package/project/.sdk/tm/go/feature/audit_feature.go +0 -9
- package/project/.sdk/tm/go/feature/cache_feature.go +0 -8
- package/project/.sdk/tm/go/feature/clienttrack_feature.go +0 -7
- package/project/.sdk/tm/go/feature/cost_feature.go +0 -51
- package/project/.sdk/tm/go/feature/debug_feature.go +0 -6
- package/project/.sdk/tm/go/feature/feature_options.go +108 -21
- package/project/.sdk/tm/go/feature/idempotency_feature.go +0 -6
- package/project/.sdk/tm/go/feature/metrics_feature.go +0 -6
- package/project/.sdk/tm/go/feature/netsim_feature.go +0 -8
- package/project/.sdk/tm/go/feature/paging_feature.go +0 -9
- package/project/.sdk/tm/go/feature/proxy_feature.go +0 -7
- package/project/.sdk/tm/go/feature/ratelimit_feature.go +0 -6
- package/project/.sdk/tm/go/feature/rbac_feature.go +0 -10
- package/project/.sdk/tm/go/feature/retry_feature.go +0 -6
- package/project/.sdk/tm/go/feature/secrets_feature.go +0 -173
- package/project/.sdk/tm/go/feature/streaming_feature.go +0 -7
- package/project/.sdk/tm/go/feature/telemetry_feature.go +0 -8
- package/project/.sdk/tm/go/feature/test_feature.go +0 -23
- package/project/.sdk/tm/go/feature/validate_feature.go +0 -66
- package/project/.sdk/tm/go/test/custom_utility_test.go +0 -29
- package/project/.sdk/tm/go/test/feature/secrets/secrets_feature_test.go +0 -100
- package/project/.sdk/tm/go/test/feature_corpus_test.go +1 -60
- package/project/.sdk/tm/go/test/feature_harness_test.go +0 -10
- package/project/.sdk/tm/go/test/feature_test.go +107 -9
- package/project/.sdk/tm/go/test/omniresolver_test.go +0 -74
- package/project/.sdk/tm/go/test/omnismoke_test.go +0 -4
- package/project/.sdk/tm/go/test/pipeline_test.go +0 -10
- package/project/.sdk/tm/go/test/primary_utility_test.go +0 -32
- package/project/.sdk/tm/go/test/struct_utility_test.go +0 -38
- package/project/.sdk/tm/go/test/testsupport_test.go +0 -25
- package/project/.sdk/tm/go/utility/feature_add.go +0 -6
- package/project/.sdk/tm/go/utility/fetcher.go +0 -6
- package/project/.sdk/tm/go/utility/graphql.go +1 -31
- package/project/.sdk/tm/go/utility/make_options.go +38 -49
- package/project/.sdk/tm/go/utility/make_point.go +0 -11
- package/project/.sdk/tm/go/utility/make_spec.go +0 -15
- package/project/.sdk/tm/go/utility/register.go +0 -28
- package/project/.sdk/tm/go/utility/transform_request.go +0 -20
- package/project/.sdk/tm/go/utility/transform_response.go +0 -8
- package/project/.sdk/tm/java/feature/TestFeature.java +11 -6
- package/project/.sdk/tm/js/src/feature/test/TestFeature.js +12 -4
- package/project/.sdk/tm/js/test/live-entity.js +29 -29
- package/project/.sdk/tm/js/test/live-scenarios.js +4 -4
- package/project/.sdk/tm/kotlin/feature/TestFeature.kt +8 -4
- package/project/.sdk/tm/ocaml/sdk_features.ml +6 -4
- package/project/.sdk/tm/perl/feature/test_feature.pm +6 -4
- package/project/.sdk/tm/rb/feature/test_feature.rb +6 -4
- package/project/.sdk/tm/rust/core/context.rs +0 -5
- package/project/.sdk/tm/rust/core/control.rs +0 -1
- package/project/.sdk/tm/rust/core/helpers.rs +0 -15
- package/project/.sdk/tm/rust/core/operation.rs +0 -1
- package/project/.sdk/tm/rust/core/point.rs +0 -3
- package/project/.sdk/tm/rust/core/response.rs +0 -2
- package/project/.sdk/tm/rust/core/result.rs +0 -1
- package/project/.sdk/tm/rust/core/spec.rs +0 -1
- package/project/.sdk/tm/rust/core/types.rs +0 -20
- package/project/.sdk/tm/rust/core/utility_type.rs +0 -5
- package/project/.sdk/tm/rust/feature/audit.rs +0 -9
- package/project/.sdk/tm/rust/feature/base.rs +0 -3
- package/project/.sdk/tm/rust/feature/cache.rs +0 -9
- package/project/.sdk/tm/rust/feature/clienttrack.rs +0 -7
- package/project/.sdk/tm/rust/feature/cost.rs +0 -48
- package/project/.sdk/tm/rust/feature/debug.rs +0 -7
- package/project/.sdk/tm/rust/feature/idempotency.rs +0 -7
- package/project/.sdk/tm/rust/feature/log.rs +0 -3
- package/project/.sdk/tm/rust/feature/metrics.rs +0 -7
- package/project/.sdk/tm/rust/feature/netsim.rs +0 -9
- package/project/.sdk/tm/rust/feature/paging.rs +0 -10
- package/project/.sdk/tm/rust/feature/proxy.rs +0 -8
- package/project/.sdk/tm/rust/feature/ratelimit.rs +0 -6
- package/project/.sdk/tm/rust/feature/rbac.rs +0 -10
- package/project/.sdk/tm/rust/feature/retry.rs +0 -6
- package/project/.sdk/tm/rust/feature/secrets.rs +1 -187
- package/project/.sdk/tm/rust/feature/streaming.rs +0 -7
- package/project/.sdk/tm/rust/feature/support.rs +0 -6
- package/project/.sdk/tm/rust/feature/telemetry.rs +0 -9
- package/project/.sdk/tm/rust/feature/test.rs +8 -23
- package/project/.sdk/tm/rust/feature/timeout.rs +0 -7
- package/project/.sdk/tm/rust/feature/validate.rs +0 -81
- package/project/.sdk/tm/rust/tests/common/mod.rs +0 -35
- package/project/.sdk/tm/rust/tests/custom_utility_test.rs +0 -2
- package/project/.sdk/tm/rust/tests/feature/secrets/main.rs +0 -95
- package/project/.sdk/tm/rust/tests/feature_test.rs +0 -16
- package/project/.sdk/tm/rust/tests/netsim_test.rs +0 -6
- package/project/.sdk/tm/rust/tests/omni_resolver/mod.rs +0 -135
- package/project/.sdk/tm/rust/tests/omni_smoke_test.rs +0 -15
- package/project/.sdk/tm/rust/tests/pipeline_test.rs +0 -6
- package/project/.sdk/tm/rust/tests/primary_utility_test.rs +0 -22
- package/project/.sdk/tm/rust/tests/struct_utility_test.rs +0 -25
- package/project/.sdk/tm/rust/utility/fetcher.rs +0 -5
- package/project/.sdk/tm/rust/utility/graphql.rs +1 -30
- package/project/.sdk/tm/rust/utility/make_error.rs +0 -2
- package/project/.sdk/tm/rust/utility/make_options.rs +0 -46
- package/project/.sdk/tm/rust/utility/make_point.rs +0 -12
- package/project/.sdk/tm/rust/utility/make_spec.rs +0 -4
- package/project/.sdk/tm/rust/utility/voxgigstruct/consts.rs +14 -20
- package/project/.sdk/tm/rust/utility/voxgigstruct/major.rs +0 -13
- package/project/.sdk/tm/rust/utility/voxgigstruct/mini.rs +0 -14
- package/project/.sdk/tm/rust/utility/voxgigstruct/mod.rs +0 -2
- package/project/.sdk/tm/rust/utility/voxgigstruct/ordered_map.rs +0 -18
- package/project/.sdk/tm/rust/utility/voxgigstruct/re.rs +0 -11
- package/project/.sdk/tm/rust/utility/voxgigstruct/value.rs +0 -3
- package/project/.sdk/tm/scala/feature/TestFeature.scala +10 -6
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TestFeature.swift +10 -6
- package/project/.sdk/tm/ts/src/Context.ts +0 -5
- package/project/.sdk/tm/ts/src/feature/audit/AuditFeature.ts +0 -7
- package/project/.sdk/tm/ts/src/feature/cache/CacheFeature.ts +0 -8
- package/project/.sdk/tm/ts/src/feature/clienttrack/ClienttrackFeature.ts +0 -7
- package/project/.sdk/tm/ts/src/feature/cost/CostFeature.ts +0 -52
- package/project/.sdk/tm/ts/src/feature/debug/DebugFeature.ts +0 -6
- package/project/.sdk/tm/ts/src/feature/metrics/MetricsFeature.ts +0 -6
- package/project/.sdk/tm/ts/src/feature/netsim/NetsimFeature.ts +0 -8
- package/project/.sdk/tm/ts/src/feature/paging/PagingFeature.ts +0 -13
- package/project/.sdk/tm/ts/src/feature/proxy/ProxyFeature.ts +0 -8
- package/project/.sdk/tm/ts/src/feature/ratelimit/RatelimitFeature.ts +0 -6
- package/project/.sdk/tm/ts/src/feature/rbac/RbacFeature.ts +0 -9
- package/project/.sdk/tm/ts/src/feature/retry/RetryFeature.ts +0 -6
- package/project/.sdk/tm/ts/src/feature/secrets/SecretsFeature.ts +0 -136
- package/project/.sdk/tm/ts/src/feature/streaming/StreamingFeature.ts +0 -7
- package/project/.sdk/tm/ts/src/feature/telemetry/TelemetryFeature.ts +0 -7
- package/project/.sdk/tm/ts/src/feature/test/TestFeature.ts +13 -88
- package/project/.sdk/tm/ts/src/feature/validate/ValidateFeature.ts +0 -87
- package/project/.sdk/tm/ts/src/utility/CleanUtility.ts +0 -12
- package/project/.sdk/tm/ts/src/utility/FeatureAddUtility.ts +0 -1
- package/project/.sdk/tm/ts/src/utility/GraphqlUtility.ts +2 -30
- package/project/.sdk/tm/ts/src/utility/MakeErrorUtility.ts +0 -4
- package/project/.sdk/tm/ts/src/utility/MakeOptionsUtility.ts +0 -46
- package/project/.sdk/tm/ts/src/utility/MakePointUtility.ts +0 -34
- package/project/.sdk/tm/ts/src/utility/MakeRequestUtility.ts +0 -1
- package/project/.sdk/tm/ts/src/utility/MakeSpecUtility.ts +0 -5
- package/project/.sdk/tm/ts/src/utility/MakeUrlUtility.ts +0 -1
- package/project/.sdk/tm/ts/src/utility/ParamUtility.ts +0 -8
- package/project/.sdk/tm/ts/src/utility/PrepareBodyUtility.ts +0 -3
- package/project/.sdk/tm/ts/src/utility/PrepareParamsUtility.ts +0 -6
- package/project/.sdk/tm/ts/src/utility/ResultBasicUtility.ts +0 -1
- package/project/.sdk/tm/ts/src/utility/TransformRequestUtility.ts +0 -20
- package/project/.sdk/tm/ts/src/utility/TransformResponseUtility.ts +0 -4
- package/project/.sdk/tm/ts/test/exists.test.ts +0 -10
- package/project/.sdk/tm/ts/test/feature/Corpus.test.ts +0 -56
- package/project/.sdk/tm/ts/test/feature/harness.ts +0 -9
- package/project/.sdk/tm/ts/test/feature/secrets/Secrets.test.ts +0 -106
- package/project/.sdk/tm/ts/test/live-contract.ts +0 -2
- package/project/.sdk/tm/ts/test/live-entity.ts +26 -26
- package/project/.sdk/tm/ts/test/live-scenarios.ts +3 -3
- package/project/.sdk/tm/ts/test/omni.ts +0 -32
- package/project/.sdk/tm/ts/test/pipeline.test.ts +45 -28
- package/project/.sdk/tm/ts/test/utility/Corpus.test.ts +0 -13
- package/project/.sdk/tm/ts/test/utility/PrimaryUtility.test.ts +56 -29
- package/project/.sdk/tm/ts/test/utility/StructUtility.test.ts +0 -7
- package/project/.sdk/tm/ts/test/utility.ts +0 -55
- package/project/.sdk/tm/zig/feature/test.zig +11 -4
- package/project/sdkgen-package.json +1 -1
- package/src/action/action.ts +0 -65
- package/src/action/check.ts +0 -88
- package/src/action/dispatch.ts +0 -27
- package/src/action/doctor.ts +69 -329
- package/src/action/edition.ts +1 -87
- package/src/action/feature.ts +1 -49
- package/src/action/kind.ts +0 -149
- package/src/action/package.ts +0 -228
- package/src/action/resolve.ts +0 -148
- package/src/action/target.ts +0 -177
- package/src/cmp/AgentGuide.ts +0 -7
- package/src/cmp/AgentGuideContent.ts +0 -24
- package/src/cmp/AgentGuideTop.ts +0 -7
- package/src/cmp/Changelog.ts +0 -14
- package/src/cmp/Deploy.ts +1 -31
- package/src/cmp/Entity.ts +0 -4
- package/src/cmp/ExternalTarget.ts +0 -36
- package/src/cmp/Feature.ts +0 -14
- package/src/cmp/FeatureDocs.ts +0 -37
- package/src/cmp/PublishWorkflow.ts +0 -60
- package/src/cmp/ReadmeErrors.ts +0 -17
- package/src/cmp/ReadmeExplanation.ts +2 -11
- package/src/cmp/ReadmeFeatures.ts +0 -10
- package/src/cmp/ReadmeRefFeatures.ts +0 -19
- package/src/cmp/ReadmeStation.ts +0 -19
- package/src/cmp/ReadmeTop.ts +1 -81
- package/src/cmp/ReadmeUnions.ts +1 -16
- package/src/cmp/Registered.ts +0 -30
- package/src/cmp/Security.ts +0 -2
- package/src/cmp/Test.ts +4 -2
- package/src/cmp/TestControl.ts +0 -25
- package/src/helpers/applicability.ts +0 -60
- package/src/helpers/buildIdNames.ts +17 -19
- package/src/helpers/canonSpec.ts +2 -116
- package/src/helpers/canonType.ts +0 -87
- package/src/helpers/collectDeps.ts +0 -27
- package/src/helpers/definition.ts +0 -29
- package/src/helpers/dryrun.ts +0 -8
- package/src/helpers/featureSource.ts +0 -152
- package/src/helpers/getMatchEntries.ts +2 -6
- package/src/helpers/junk.ts +13 -89
- package/src/helpers/manifest.ts +0 -169
- package/src/helpers/modelNames.ts +6 -82
- package/src/helpers/modelcheck.ts +0 -106
- package/src/helpers/naming.ts +0 -303
- package/src/helpers/opExample.ts +0 -56
- package/src/helpers/opShape.ts +33 -233
- package/src/helpers/optspec.ts +0 -77
- package/src/helpers/packageMeta.ts +1 -200
- package/src/helpers/pointPath.ts +5 -65
- package/src/helpers/resolved.ts +39 -0
- package/src/helpers/semver.ts +0 -61
- package/src/helpers/serverVars.ts +0 -44
- package/src/helpers/shipped.ts +0 -14
- package/src/helpers/station.ts +0 -32
- package/src/helpers/stdrep.ts +0 -52
- package/src/helpers/testPolicy.ts +0 -4
- package/src/sdkgen.ts +18 -264
- package/src/testkit.ts +6 -312
- package/src/types.ts +1 -30
- package/src/utility.ts +16 -250
package/src/utility.ts
CHANGED
|
@@ -12,14 +12,6 @@ import { pointParts } from './helpers/pointPath'
|
|
|
12
12
|
import { packageVersion } from './helpers/packageMeta'
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
// Where a per-target component is loaded from: `<project>/.sdk/dist/<path>`.
|
|
16
|
-
//
|
|
17
|
-
// `ctx$.folder` is jostraca's OUTPUT folder, which is the project for an
|
|
18
|
-
// ordinary target but the destination repo for one generating out of tree
|
|
19
|
-
// (`output: path`). Components always live in the project that owns the
|
|
20
|
-
// model, never in the place its files land, so an external pass sets
|
|
21
|
-
// `ctx$.cmpfolder` and this prefers it. Without that, generating out of tree
|
|
22
|
-
// looks for `<destination>/.sdk/dist/cmp/...` and fails to resolve.
|
|
23
15
|
function resolvePath(ctx$: any, path: string): any {
|
|
24
16
|
const base = null == ctx$.cmpfolder ? ctx$.folder : ctx$.cmpfolder
|
|
25
17
|
const fullpath = Path.join(base, '.sdk', 'dist', path)
|
|
@@ -27,21 +19,6 @@ function resolvePath(ctx$: any, path: string): any {
|
|
|
27
19
|
}
|
|
28
20
|
|
|
29
21
|
|
|
30
|
-
// True unless the model declares auth off. Templates use this to gate
|
|
31
|
-
// apikey-related code, docs, and examples for public APIs that need no
|
|
32
|
-
// authentication.
|
|
33
|
-
//
|
|
34
|
-
// The project's own word comes first: `main.kit.config.auth.active` set
|
|
35
|
-
// EXPLICITLY (true or false) decides. GitHub's official OpenAPI declares no
|
|
36
|
-
// securitySchemes, so apidef faithfully writes `info.auth: false` and every
|
|
37
|
-
// generated client sent no credential; the only override lived in a
|
|
38
|
-
// generated file. A project that knows its API takes a bearer token says so
|
|
39
|
-
// once in its own config and that wins over the spec's silence.
|
|
40
|
-
//
|
|
41
|
-
// Otherwise the spec-derived signal governs:
|
|
42
|
-
// 1. main.kit.config.auth.active: true|false (per-SDK, in config.aon)
|
|
43
|
-
// 2. main.kit.info.auth: false (apidef: the spec declares
|
|
44
|
-
// no authentication)
|
|
45
22
|
function isAuthActive(model: any): boolean {
|
|
46
23
|
const auth = getModelPath(model, `main.${KIT}.config.auth`,
|
|
47
24
|
{ only_active: false, required: false })
|
|
@@ -53,15 +30,6 @@ function isAuthActive(model: any): boolean {
|
|
|
53
30
|
}
|
|
54
31
|
|
|
55
32
|
|
|
56
|
-
// The credential prefix for the Authorization header value, resolved in
|
|
57
|
-
// priority order:
|
|
58
|
-
// 1. main.kit.config.auth.prefix (per-SDK user override)
|
|
59
|
-
// 2. main.kit.info.security.prefix (spec-derived, set by apidef from the
|
|
60
|
-
// API's securityScheme — e.g. 'OAuth' for Statuspage)
|
|
61
|
-
// 3. 'Bearer' (conventional fallback)
|
|
62
|
-
// '' is a valid resolved value: it means a raw credential with no prefix
|
|
63
|
-
// (e.g. an apiKey scheme in a custom header). Config generators for every
|
|
64
|
-
// language target must use this instead of hardcoding 'Bearer'.
|
|
65
33
|
function resolveAuthPrefix(model: any): string {
|
|
66
34
|
const auth = getModelPath(model, `main.${KIT}.config.auth`,
|
|
67
35
|
{ only_active: false, required: false })
|
|
@@ -75,21 +43,6 @@ function resolveAuthPrefix(model: any): string {
|
|
|
75
43
|
}
|
|
76
44
|
|
|
77
45
|
|
|
78
|
-
// AUTH SUPPRESSED AT GENERATION TIME — and ONLY by an explicit opt-out.
|
|
79
|
-
//
|
|
80
|
-
// NOT `isAuthActive`, and the difference is load-bearing. That helper is
|
|
81
|
-
// also false when `main.kit.info.auth` is false, which only means the SPEC
|
|
82
|
-
// declared no security scheme. Such an SDK still carries a credential:
|
|
83
|
-
// `optspec` always declares `apikey`, and makeOptions fills `options.auth`
|
|
84
|
-
// from the optspec defaults, so the runtime `null == options.auth` guard
|
|
85
|
-
// never fires and the credential has always been sent. Emitting a no-op
|
|
86
|
-
// prepareAuth for those SDKs silently breaks a working credential — and
|
|
87
|
-
// takes the secrets feature with it, since that resolves a secret into
|
|
88
|
-
// `options.apikey` and prepareAuth then places nothing.
|
|
89
|
-
//
|
|
90
|
-
// `main.kit.config.auth.active: false` is the project saying "this SDK
|
|
91
|
-
// sends no credential, ever". That is the only signal that can be honoured
|
|
92
|
-
// before runtime, so it is the only one used here.
|
|
93
46
|
function isAuthSuppressed(model: any): boolean {
|
|
94
47
|
const auth = getModelPath(model, `main.${KIT}.config.auth`,
|
|
95
48
|
{ only_active: false, required: false })
|
|
@@ -97,22 +50,6 @@ function isAuthSuppressed(model: any): boolean {
|
|
|
97
50
|
}
|
|
98
51
|
|
|
99
52
|
|
|
100
|
-
// WHERE the credential goes, and UNDER WHAT NAME. Same priority order as
|
|
101
|
-
// resolveAuthPrefix: a per-SDK override first, then what apidef derived
|
|
102
|
-
// from the spec's securityScheme, then the convention.
|
|
103
|
-
//
|
|
104
|
-
// THESE EXISTED IN THE MODEL AND WERE DROPPED AT GENERATION. apidef has
|
|
105
|
-
// always resolved `in` and `name` (transform/top.ts resolveSecurity), and
|
|
106
|
-
// api-info.aon records them — joplin's says `in: "query", name: "token"`.
|
|
107
|
-
// But nothing read them: every target's prepare_auth template hardcoded an
|
|
108
|
-
// `authorization` header, so an apiKey-in-query API got a header it does
|
|
109
|
-
// not read and never got the query parameter it does. Four repos in the
|
|
110
|
-
// cedar fleet ship SDKs that cannot authenticate for this reason
|
|
111
|
-
// (joplin `token`, pipedrive `api_token`, trello `key`,
|
|
112
|
-
// lm-umbrella `apiKey`).
|
|
113
|
-
//
|
|
114
|
-
// 'header' and 'Authorization' remain the defaults, so every SDK whose
|
|
115
|
-
// scheme is header-based generates exactly what it generated before.
|
|
116
53
|
function resolveAuthIn(model: any): string {
|
|
117
54
|
const auth = getModelPath(model, `main.${KIT}.config.auth`,
|
|
118
55
|
{ only_active: false, required: false })
|
|
@@ -147,12 +84,6 @@ function resolveAuthName(model: any): string {
|
|
|
147
84
|
}
|
|
148
85
|
|
|
149
86
|
|
|
150
|
-
// True when the spec's security scheme is genuine HTTP Basic Auth (two
|
|
151
|
-
// credentials, base64-joined) rather than a single bearer-style token with
|
|
152
|
-
// a prefix. Priority order mirrors resolveAuthPrefix:
|
|
153
|
-
// 1. main.kit.config.auth.basic (per-SDK user override)
|
|
154
|
-
// 2. main.kit.info.security, spec-derived: type 'http' + a 'basic' prefix
|
|
155
|
-
// (apidef sets prefix from the OpenAPI `scheme: basic` value, title-cased)
|
|
156
87
|
function isHttpBasicAuth(model: any): boolean {
|
|
157
88
|
const auth = getModelPath(model, `main.${KIT}.config.auth`,
|
|
158
89
|
{ only_active: false, required: false })
|
|
@@ -165,21 +96,6 @@ function isHttpBasicAuth(model: any): boolean {
|
|
|
165
96
|
}
|
|
166
97
|
|
|
167
98
|
|
|
168
|
-
// The API's ACCESS-TOKEN EXCHANGE, as apidef recorded it from the spec
|
|
169
|
-
// (main.kit.info.security.exchange): where the token endpoint lives, and the
|
|
170
|
-
// field names it sends and answers with. Null when the spec describes none,
|
|
171
|
-
// which is the common case.
|
|
172
|
-
//
|
|
173
|
-
// These are FACTS ABOUT THE API, so they belong in the generated config
|
|
174
|
-
// rather than in a project's hand-written model: an SDK whose spec says the
|
|
175
|
-
// exchange is at `auth/token` should not need to be told so again. A feature
|
|
176
|
-
// opts in to receiving them with `spec: { authexchange: '<options-key>' }`;
|
|
177
|
-
// configDefinition does the overlay.
|
|
178
|
-
//
|
|
179
|
-
// Deliberately NOT included: `active`. Whether a client performs the
|
|
180
|
-
// exchange is the project's decision (some resolve a static credential
|
|
181
|
-
// through the same feature on an API that also has a token endpoint), so
|
|
182
|
-
// apidef records only what the exchange IS, never that it should run.
|
|
183
99
|
function resolveAuthExchange(model: any): Record<string, any> | null {
|
|
184
100
|
const security = getModelPath(model, `main.${KIT}.info.security`,
|
|
185
101
|
{ only_active: false, required: false })
|
|
@@ -246,57 +162,9 @@ export {
|
|
|
246
162
|
}
|
|
247
163
|
|
|
248
164
|
|
|
249
|
-
// CONFIG REPRESENTATION (design rung L1, threshold from design Q7).
|
|
250
|
-
//
|
|
251
|
-
// Above a size threshold the API model is emitted as DATA - a JSON string
|
|
252
|
-
// constant parsed once - rather than as a composite literal. Below it the
|
|
253
|
-
// literal stays, because for a small model the literal is smaller, simpler,
|
|
254
|
-
// faster to load and far easier to debug, and a symbol table would be pure
|
|
255
|
-
// complexity.
|
|
256
|
-
//
|
|
257
|
-
// The threshold is on the JSON, not the emitted source, because the emitted
|
|
258
|
-
// source size varies by language while the model does not. It is measured in
|
|
259
|
-
// UTF-8 BYTES rather than string length: `.length` counts UTF-16 code units,
|
|
260
|
-
// so a CJK-heavy model would read as roughly a third of its real size and
|
|
261
|
-
// stay on the expensive literal path well past the point where it hurts.
|
|
262
|
-
//
|
|
263
|
-
// Measured on the real gitlab model (923.5 KB of JSON), Go, cold cache,
|
|
264
|
-
// recompiling only the config package:
|
|
265
|
-
//
|
|
266
|
-
// composite literal JSON string constant
|
|
267
|
-
// compile+link wall 30.80 s 0.34 s 91x faster
|
|
268
|
-
// peak compiler RSS 2.49 GB 0.06 GB 39x less
|
|
269
|
-
// binary 7.44 MB 3.51 MB 2.1x smaller
|
|
270
|
-
//
|
|
271
|
-
// The reader side is unchanged either way: make_config returns the same map,
|
|
272
|
-
// so nothing downstream can tell which representation it got.
|
|
273
|
-
//
|
|
274
|
-
// For two targets the literal is not merely expensive but IMPOSSIBLE past a
|
|
275
|
-
// point, which is what fixes the threshold rather than leaving it a taste
|
|
276
|
-
// question:
|
|
277
|
-
//
|
|
278
|
-
// haskell GHC 9.4.7 refuses a large static structure outright -
|
|
279
|
-
// "sorry! (unimplemented feature or known bug) ... Trying to
|
|
280
|
-
// allocate more than 129024 bytes ... Suggestion: read data from a
|
|
281
|
-
// file instead of having large static data structures in code"
|
|
282
|
-
// (GHC issue 4505). Measured: the CV literal compiles at 828 KB of
|
|
283
|
-
// model and fails at 1.4 MB, so 256 KB clears it by more than 3x.
|
|
284
|
-
//
|
|
285
|
-
// clojure a string literal is a constant-pool UTF-8 entry capped at 65,535
|
|
286
|
-
// bytes, so the DATA constant has to be chunked - see cljStringChunks.
|
|
287
|
-
//
|
|
288
|
-
// Anything above the threshold therefore takes the data path in every target,
|
|
289
|
-
// and the languages with a hard ceiling are the ones with the most margin.
|
|
290
165
|
const CONFIG_DATA_THRESHOLD = 256 * 1024
|
|
291
166
|
|
|
292
167
|
|
|
293
|
-
// Should this model be emitted as data rather than as a literal?
|
|
294
|
-
//
|
|
295
|
-
// `repr` is the per-SDK override from `main.kit.config.repr`: 'auto' (the
|
|
296
|
-
// default) decides by size, 'data' and 'literal' pin it. The override is what
|
|
297
|
-
// lets a small fixture exercise the data path - by size alone no test model
|
|
298
|
-
// comes near the threshold, so the branch every large SDK depends on would
|
|
299
|
-
// never be generated, compiled or run in CI.
|
|
300
168
|
const CONFIG_REPR_VALUES = ['auto', 'data', 'literal']
|
|
301
169
|
|
|
302
170
|
function isConfigData(configJson: string, repr?: string): boolean {
|
|
@@ -340,26 +208,6 @@ function configReprSetting(model: any): string {
|
|
|
340
208
|
}
|
|
341
209
|
|
|
342
210
|
|
|
343
|
-
// L0 NORMALISATION: strip what the emitted config must not carry.
|
|
344
|
-
//
|
|
345
|
-
// Three kinds of noise, and the distinction between them matters:
|
|
346
|
-
//
|
|
347
|
-
// MODEL_META jostraca's `each` injects index$/key$/val$ into every node
|
|
348
|
-
// it iterates. Pure bookkeeping, and it leaked into every
|
|
349
|
-
// generated SDK for years (5,231 occurrences in gitlab
|
|
350
|
-
// alone) because this helper deleted keys during a walk that
|
|
351
|
-
// assigned them straight back.
|
|
352
|
-
//
|
|
353
|
-
// CONFIG_DEFAULT a key whose value equals the default the reader already
|
|
354
|
-
// applies. Emitting it is pure bulk. Only these three names
|
|
355
|
-
// are dropped, and only at their default value - `entity$`
|
|
356
|
-
// is real Seneca data, so no blanket suffix rule.
|
|
357
|
-
//
|
|
358
|
-
// PAYLOAD_KEYS the boundary. Under `default`/`example`/`examples` the
|
|
359
|
-
// value is API DATA, not config, and an example that happens
|
|
360
|
-
// to contain `active: true` must survive intact. Below one of
|
|
361
|
-
// these keys default-dropping stops; metadata stripping does
|
|
362
|
-
// not, because jostraca's bookkeeping is never payload.
|
|
363
211
|
const MODEL_META = ['index$', 'key$', 'val$']
|
|
364
212
|
|
|
365
213
|
const CONFIG_DEFAULT: Record<string, any> = {
|
|
@@ -380,15 +228,6 @@ function clean(o: any, dropDefaults?: boolean): any {
|
|
|
380
228
|
const out: any = {}
|
|
381
229
|
for (const k of Object.keys(node)) {
|
|
382
230
|
if (MODEL_META.includes(k)) continue
|
|
383
|
-
// An ABSENT optional member, dropped rather than carried as undefined.
|
|
384
|
-
//
|
|
385
|
-
// Callers build `{fields, name, op, relations}` from an entity, and
|
|
386
|
-
// `op` and `relations` are optional - so the key exists with value
|
|
387
|
-
// undefined. JSON.stringify silently omits such a key, while the
|
|
388
|
-
// literal formatters emit it as None/nil/null, and the two
|
|
389
|
-
// representations would describe different configs for any entity
|
|
390
|
-
// without an `op`. Dropping it here fixes both branches at once,
|
|
391
|
-
// because both reach the emitter through this function.
|
|
392
231
|
if (undefined === node[k]) continue
|
|
393
232
|
if (defaults && k in CONFIG_DEFAULT && CONFIG_DEFAULT[k] === node[k]) continue
|
|
394
233
|
out[k] = prune(node[k], defaults && !PAYLOAD_KEYS.includes(k))
|
|
@@ -401,16 +240,6 @@ function clean(o: any, dropDefaults?: boolean): any {
|
|
|
401
240
|
}
|
|
402
241
|
|
|
403
242
|
|
|
404
|
-
// The JSON as a source-level string literal, for a language whose SINGLE
|
|
405
|
-
// quoted literal neither interpolates nor processes escapes beyond the quote
|
|
406
|
-
// and the backslash - Ruby, PHP, Perl, Lua.
|
|
407
|
-
//
|
|
408
|
-
// Reproducing the JSON text VERBATIM is all that is needed, because the JSON
|
|
409
|
-
// already encodes control characters and non-ASCII itself. That is why this is
|
|
410
|
-
// preferred over the double-quoted form in those languages: Ruby and PHP
|
|
411
|
-
// interpolate (`#{...}`, `$var`) and Lua does not understand `\uXXXX` at all,
|
|
412
|
-
// so a double-quoted literal would need a language-specific escape table and
|
|
413
|
-
// would get it wrong for exactly the inputs nobody tests.
|
|
414
243
|
function rawStringLiteral(s: string): string {
|
|
415
244
|
return "'" + s.replace(/\\/g, '\\\\').replace(/'/g, "\\'") + "'"
|
|
416
245
|
}
|
|
@@ -425,28 +254,6 @@ const SPEC_FACTS: Record<string, (model: any) => any> = {
|
|
|
425
254
|
}
|
|
426
255
|
|
|
427
256
|
|
|
428
|
-
// THE CANONICAL CONFIG OBJECT, and the JSON the threshold is measured on.
|
|
429
|
-
//
|
|
430
|
-
// Every target builds its config from this one function, so the literal a
|
|
431
|
-
// target emits and the data that replaces it above the threshold cannot
|
|
432
|
-
// describe different configs - which is the entire promise of rung L1. Before
|
|
433
|
-
// this existed each target assembled its own, and they had already drifted:
|
|
434
|
-
// `feature.<name>` came out as `{}` in Go and as nothing at all in ts when a
|
|
435
|
-
// feature declared no config.
|
|
436
|
-
//
|
|
437
|
-
// Key order is `each`'s order, which is sorted, so the JSON is byte-stable
|
|
438
|
-
// across runs exactly like the literal it replaces.
|
|
439
|
-
// The embedded config still speaks the braced-string path form
|
|
440
|
-
// (`['element', '{id}']`) that every generated runtime reads. apidef now
|
|
441
|
-
// emits the resolved vector instead (its ADR-003), so the old shape is
|
|
442
|
-
// reconstructed HERE — the single point at which a point reaches generated
|
|
443
|
-
// output — via the single reconstruction in helpers/pointPath.
|
|
444
|
-
//
|
|
445
|
-
// Both are written: `parts` for the runtimes as they stand, `segments`
|
|
446
|
-
// alongside it so a runtime can be moved over one language at a time. That
|
|
447
|
-
// duplication is deliberate and temporary, and it lives in GENERATED output,
|
|
448
|
-
// not in the model — which is what ADR-003 forbids. It ends when the last
|
|
449
|
-
// runtime reads segments and `parts` is dropped from this function.
|
|
450
257
|
function withPointParts(op: any): any {
|
|
451
258
|
if (null == op) {
|
|
452
259
|
return op
|
|
@@ -456,13 +263,19 @@ function withPointParts(op: any): any {
|
|
|
456
263
|
each(op, (o: any, opname: string) => {
|
|
457
264
|
out[opname] = null == o || null == o.points ? o : {
|
|
458
265
|
...o,
|
|
459
|
-
points: each(o.points).map((pt: any) => {
|
|
266
|
+
points: each(o.points).filter((pt: any) => false !== pt?.a).map((pt: any) => {
|
|
460
267
|
if (null == pt) return pt
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
268
|
+
const args = Object.fromEntries(Object.entries(pt.g || {}).map(([kind, values]) =>
|
|
269
|
+
[kind, each(values as any).filter((arg: any) => false !== arg.a).map((arg: any) => ({
|
|
270
|
+
name: arg.n, orig: arg.or, type: arg.t, kind: arg.k,
|
|
271
|
+
reqd: arg.r, example: arg.ex,
|
|
272
|
+
}))]))
|
|
273
|
+
// Runtime hooks expose descriptive names independently of the model schema.
|
|
274
|
+
return {
|
|
275
|
+
active: pt.a, kind: pt.k, method: pt.m, orig: pt.o,
|
|
276
|
+
segments: pt.s, parts: pointParts(pt), rename: pt.r,
|
|
277
|
+
transform: pt.t, args, select: pt.q, live: pt.li, graphql: pt.gq,
|
|
278
|
+
}
|
|
466
279
|
}),
|
|
467
280
|
}
|
|
468
281
|
})
|
|
@@ -474,11 +287,6 @@ function withPointParts(op: any): any {
|
|
|
474
287
|
function configDefinition(model: any, targetname?: string): { def: any, json: string } {
|
|
475
288
|
const entity = getModelPath(model, `main.${KIT}.entity`)
|
|
476
289
|
|
|
477
|
-
// Gated by the target when one is named, so the embedded config cannot
|
|
478
|
-
// advertise a feature this target has no implementation for — the exact
|
|
479
|
-
// hybrid state the applicability gate exists to prevent. With no
|
|
480
|
-
// targetname (a caller that cannot say which target it is building) the
|
|
481
|
-
// helper returns every active feature, i.e. the old behaviour.
|
|
482
290
|
const feature = targetFeatures(model, targetname)
|
|
483
291
|
|
|
484
292
|
const headers = getModelPath(model, `main.${KIT}.config.headers`) || {}
|
|
@@ -496,23 +304,10 @@ function configDefinition(model: any, targetname?: string): { def: any, json: st
|
|
|
496
304
|
const entityStubs: any = {}
|
|
497
305
|
each(entity, (e: any) => {
|
|
498
306
|
entityDefs[e.name] = clean({
|
|
499
|
-
fields: e.fields
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
// record: which path parameters name it, what joins them into the one
|
|
504
|
-
// id an SDK entity carries, and — the part only a response can
|
|
505
|
-
// answer — WHERE each parameter's value lives in a returned record.
|
|
506
|
-
// github's repo is `{owner}/{repo}`, returned as `owner.login` and
|
|
507
|
-
// `name`.
|
|
508
|
-
//
|
|
509
|
-
// Code that runs, not just code that is written, needs this. The
|
|
510
|
-
// offline test transport resolves a request parameter against a
|
|
511
|
-
// stored record, and a record whose identifying values are nested
|
|
512
|
-
// (or named differently) cannot be matched by parameter name alone —
|
|
513
|
-
// it matched nothing, so every seeded composite record was
|
|
514
|
-
// unfindable. `clean` drops the key for the ordinary entity whose
|
|
515
|
-
// model carries no descriptor, so nothing else moves.
|
|
307
|
+
fields: each(e.fields || {}).filter((f: any) => false !== f.a).map((f: any) => ({
|
|
308
|
+
name: f.n, title: f.h, type: f.t, req: f.r, op: f.op,
|
|
309
|
+
short: f.sh, readOnly: f.ro, writeOnly: f.wo, deprecated: f.de, format: f.fo,
|
|
310
|
+
})),
|
|
516
311
|
id: e.id,
|
|
517
312
|
name: e.name,
|
|
518
313
|
op: withPointParts(e.op),
|
|
@@ -523,33 +318,11 @@ function configDefinition(model: any, targetname?: string): { def: any, json: st
|
|
|
523
318
|
|
|
524
319
|
const featureDefs: any = {}
|
|
525
320
|
each(feature, (f: any) => {
|
|
526
|
-
// The feature's declared config (its `options` key set with typed
|
|
527
|
-
// defaults) PLUS its transport role (station design §8.4): 'base'
|
|
528
|
-
// replaces the transport slot, 'wrap' wraps it, 'none' is hook-only.
|
|
529
|
-
// Station's descriptor (normalizeDescriptor in voxgig/station) reads
|
|
530
|
-
// `transport` beside `options` to validate the resolved feature order.
|
|
531
|
-
// The role is DECLARED in the feature model, never inferred - an empty
|
|
532
|
-
// `hook: {}` is wrong for station, which both wraps and dispatches
|
|
533
|
-
// hooks. Additive: a model unified without the schema's `transport`
|
|
534
|
-
// default simply omits the key, which station tolerates by degrading
|
|
535
|
-
// its role checks to nothing.
|
|
536
321
|
const fdef: any = { ...(f.config || {}) }
|
|
537
322
|
if (null != f.transport && '' !== f.transport) {
|
|
538
323
|
fdef.transport = String(f.transport)
|
|
539
324
|
}
|
|
540
325
|
|
|
541
|
-
// SPEC-DERIVED OPTIONS. A feature declares `spec: { <fact>: <options
|
|
542
|
-
// key> }` to receive facts apidef recorded from the OpenAPI spec — the
|
|
543
|
-
// same declare-never-infer rule `needs` and `transport` follow, and for
|
|
544
|
-
// the same reason: the alternative is this function knowing feature
|
|
545
|
-
// names, which is exactly the coupling the generic feature loop exists
|
|
546
|
-
// to avoid.
|
|
547
|
-
//
|
|
548
|
-
// The fact overlays the feature's DECLARED DEFAULTS, and rightly: a
|
|
549
|
-
// default like `path: 'auth/token'` is a generic guess, while the spec
|
|
550
|
-
// states where this API's endpoint actually is. A project that needs
|
|
551
|
-
// something else still overrides at runtime through `options.feature`,
|
|
552
|
-
// which beats the embedded config either way.
|
|
553
326
|
for (const factname of Object.keys(f.spec || {}).sort()) {
|
|
554
327
|
const optkey = f.spec[factname]
|
|
555
328
|
const fact = SPEC_FACTS[factname]?.(model)
|
|
@@ -573,13 +346,6 @@ function configDefinition(model: any, targetname?: string): { def: any, json: st
|
|
|
573
346
|
options.headers = headers
|
|
574
347
|
options.entity = entityStubs
|
|
575
348
|
|
|
576
|
-
// Identity beyond the camel Name: the hyphenated slug is CARRIED, never
|
|
577
|
-
// derived from the camel form downstream (deriving swallows hyphens - the
|
|
578
|
-
// packageMeta envToken defect), and version/target let a running SDK say
|
|
579
|
-
// what it is. Station's descriptor (voxgig/station) reads all three.
|
|
580
|
-
// Gated on targetname so a target that does not pass its name emits the
|
|
581
|
-
// exact config it always has - each target opts in when its literal
|
|
582
|
-
// emitter learns the fields too, keeping data and literal reps in step.
|
|
583
349
|
const main: any = { name: model.const.Name }
|
|
584
350
|
if (null != targetname) {
|
|
585
351
|
main.slug = model.name
|