@voxgig/sdkgen 1.3.7 → 1.3.9
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/cmp/AgentGuide.d.ts +2 -0
- package/dist/cmp/AgentGuide.js +124 -0
- package/dist/cmp/AgentGuide.js.map +1 -0
- package/dist/cmp/AgentGuideContent.d.ts +25 -0
- package/dist/cmp/AgentGuideContent.js +248 -0
- package/dist/cmp/AgentGuideContent.js.map +1 -0
- package/dist/cmp/AgentGuideFeature.d.ts +2 -0
- package/dist/cmp/AgentGuideFeature.js +92 -0
- package/dist/cmp/AgentGuideFeature.js.map +1 -0
- package/dist/cmp/AgentGuideTop.d.ts +2 -0
- package/dist/cmp/AgentGuideTop.js +97 -0
- package/dist/cmp/AgentGuideTop.js.map +1 -0
- package/dist/cmp/ReadmeTop.js +16 -3
- package/dist/cmp/ReadmeTop.js.map +1 -1
- package/dist/sdkgen.d.ts +4 -1
- package/dist/sdkgen.js +8 -2
- package/dist/sdkgen.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/project/.sdk/model/feature/audit.aontu +22 -0
- package/project/.sdk/model/feature/cache.aontu +23 -0
- package/project/.sdk/model/feature/clienttrack.aontu +20 -0
- package/project/.sdk/model/feature/debug.aontu +25 -0
- package/project/.sdk/model/feature/feature-index.aontu +20 -1
- package/project/.sdk/model/feature/idempotency.aontu +21 -0
- package/project/.sdk/model/feature/metrics.aontu +20 -0
- package/project/.sdk/model/feature/netsim.aontu +36 -0
- package/project/.sdk/model/feature/paging.aontu +23 -0
- package/project/.sdk/model/feature/proxy.aontu +23 -0
- package/project/.sdk/model/feature/ratelimit.aontu +21 -0
- package/project/.sdk/model/feature/rbac.aontu +24 -0
- package/project/.sdk/model/feature/retry.aontu +23 -0
- package/project/.sdk/model/feature/streaming.aontu +22 -0
- package/project/.sdk/model/feature/telemetry.aontu +21 -0
- package/project/.sdk/model/feature/timeout.aontu +18 -0
- package/project/.sdk/model/target/c.aontu +37 -0
- package/project/.sdk/model/target/clojure.aontu +36 -0
- package/project/.sdk/model/target/cpp.aontu +35 -0
- package/project/.sdk/model/target/csharp.aontu +35 -0
- package/project/.sdk/model/target/dart.aontu +34 -0
- package/project/.sdk/model/target/elixir.aontu +33 -0
- package/project/.sdk/model/target/go-cli.aontu +5 -4
- package/project/.sdk/model/target/go-mcp.aontu +5 -4
- package/project/.sdk/model/target/haskell.aontu +47 -0
- package/project/.sdk/model/target/java.aontu +37 -0
- package/project/.sdk/model/target/kotlin.aontu +37 -0
- package/project/.sdk/model/target/ocaml.aontu +36 -0
- package/project/.sdk/model/target/perl.aontu +37 -0
- package/project/.sdk/model/target/rust.aontu +37 -0
- package/project/.sdk/model/target/scala.aontu +37 -0
- package/project/.sdk/model/target/swift.aontu +35 -0
- package/project/.sdk/model/target/zig.aontu +27 -0
- package/project/.sdk/src/cmp/c/Config_c.ts +109 -0
- package/project/.sdk/src/cmp/c/EntityBase_c.ts +61 -0
- package/project/.sdk/src/cmp/c/EntityOperation_c.ts +41 -0
- package/project/.sdk/src/cmp/c/Entity_c.ts +85 -0
- package/project/.sdk/src/cmp/c/Gitignore_c.ts +29 -0
- package/project/.sdk/src/cmp/c/MainEntity_c.ts +31 -0
- package/project/.sdk/src/cmp/c/Main_c.ts +83 -0
- package/project/.sdk/src/cmp/c/Package_c.ts +17 -0
- package/project/.sdk/src/cmp/c/TestDirect_c.ts +227 -0
- package/project/.sdk/src/cmp/c/TestEntity_c.ts +82 -0
- package/project/.sdk/src/cmp/c/Test_c.ts +51 -0
- package/project/.sdk/src/cmp/c/fragment/Entity.fragment.c +265 -0
- package/project/.sdk/src/cmp/c/fragment/EntityCreateOp.fragment.c +27 -0
- package/project/.sdk/src/cmp/c/fragment/EntityListOp.fragment.c +24 -0
- package/project/.sdk/src/cmp/c/fragment/EntityLoadOp.fragment.c +29 -0
- package/project/.sdk/src/cmp/c/fragment/EntityRemoveOp.fragment.c +29 -0
- package/project/.sdk/src/cmp/c/fragment/EntityUpdateOp.fragment.c +29 -0
- package/project/.sdk/src/cmp/c/fragment/Main.fragment.c +220 -0
- package/project/.sdk/src/cmp/c/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/c/utility_c.ts +102 -0
- package/project/.sdk/src/cmp/clojure/Config_clojure.ts +94 -0
- package/project/.sdk/src/cmp/clojure/EntityOperation_clojure.ts +35 -0
- package/project/.sdk/src/cmp/clojure/Entity_clojure.ts +77 -0
- package/project/.sdk/src/cmp/clojure/Gitignore_clojure.ts +28 -0
- package/project/.sdk/src/cmp/clojure/MainEntity_clojure.ts +21 -0
- package/project/.sdk/src/cmp/clojure/Main_clojure.ts +88 -0
- package/project/.sdk/src/cmp/clojure/Package_clojure.ts +41 -0
- package/project/.sdk/src/cmp/clojure/Test_clojure.ts +120 -0
- package/project/.sdk/src/cmp/clojure/fragment/Entity.fragment.clj +158 -0
- package/project/.sdk/src/cmp/clojure/fragment/EntityCreateOp.fragment.clj +14 -0
- package/project/.sdk/src/cmp/clojure/fragment/EntityListOp.fragment.clj +17 -0
- package/project/.sdk/src/cmp/clojure/fragment/EntityLoadOp.fragment.clj +15 -0
- package/project/.sdk/src/cmp/clojure/fragment/EntityRemoveOp.fragment.clj +15 -0
- package/project/.sdk/src/cmp/clojure/fragment/EntityUpdateOp.fragment.clj +15 -0
- package/project/.sdk/src/cmp/clojure/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/clojure/utility_clojure.ts +82 -0
- package/project/.sdk/src/cmp/cpp/Config_cpp.ts +136 -0
- package/project/.sdk/src/cmp/cpp/EntityBase_cpp.ts +51 -0
- package/project/.sdk/src/cmp/cpp/EntityOperation_cpp.ts +37 -0
- package/project/.sdk/src/cmp/cpp/Entity_cpp.ts +78 -0
- package/project/.sdk/src/cmp/cpp/Gitignore_cpp.ts +27 -0
- package/project/.sdk/src/cmp/cpp/MainEntity_cpp.ts +35 -0
- package/project/.sdk/src/cmp/cpp/Main_cpp.ts +84 -0
- package/project/.sdk/src/cmp/cpp/Package_cpp.ts +17 -0
- package/project/.sdk/src/cmp/cpp/TestDirect_cpp.ts +258 -0
- package/project/.sdk/src/cmp/cpp/TestEntity_cpp.ts +454 -0
- package/project/.sdk/src/cmp/cpp/Test_cpp.ts +36 -0
- package/project/.sdk/src/cmp/cpp/fragment/Entity.fragment.cpp +40 -0
- package/project/.sdk/src/cmp/cpp/fragment/EntityCreateOp.fragment.cpp +22 -0
- package/project/.sdk/src/cmp/cpp/fragment/EntityListOp.fragment.cpp +21 -0
- package/project/.sdk/src/cmp/cpp/fragment/EntityLoadOp.fragment.cpp +25 -0
- package/project/.sdk/src/cmp/cpp/fragment/EntityRemoveOp.fragment.cpp +21 -0
- package/project/.sdk/src/cmp/cpp/fragment/EntityUpdateOp.fragment.cpp +22 -0
- package/project/.sdk/src/cmp/cpp/fragment/Main.fragment.cpp +43 -0
- package/project/.sdk/src/cmp/cpp/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/cpp/utility_cpp.ts +83 -0
- package/project/.sdk/src/cmp/csharp/Config_csharp.ts +134 -0
- package/project/.sdk/src/cmp/csharp/EntityBase_csharp.ts +39 -0
- package/project/.sdk/src/cmp/csharp/EntityOperation_csharp.ts +41 -0
- package/project/.sdk/src/cmp/csharp/Entity_csharp.ts +85 -0
- package/project/.sdk/src/cmp/csharp/Gitignore_csharp.ts +38 -0
- package/project/.sdk/src/cmp/csharp/MainEntity_csharp.ts +36 -0
- package/project/.sdk/src/cmp/csharp/Main_csharp.ts +91 -0
- package/project/.sdk/src/cmp/csharp/Package_csharp.ts +101 -0
- package/project/.sdk/src/cmp/csharp/SdkError_csharp.ts +42 -0
- package/project/.sdk/src/cmp/csharp/TestDirect_csharp.ts +560 -0
- package/project/.sdk/src/cmp/csharp/TestEntity_csharp.ts +618 -0
- package/project/.sdk/src/cmp/csharp/Test_csharp.ts +38 -0
- package/project/.sdk/src/cmp/csharp/fragment/Entity.fragment.cs +28 -0
- package/project/.sdk/src/cmp/csharp/fragment/EntityBase.fragment.cs +268 -0
- package/project/.sdk/src/cmp/csharp/fragment/EntityCreateOp.fragment.cs +37 -0
- package/project/.sdk/src/cmp/csharp/fragment/EntityListOp.fragment.cs +35 -0
- package/project/.sdk/src/cmp/csharp/fragment/EntityLoadOp.fragment.cs +41 -0
- package/project/.sdk/src/cmp/csharp/fragment/EntityRemoveOp.fragment.cs +41 -0
- package/project/.sdk/src/cmp/csharp/fragment/EntityUpdateOp.fragment.cs +41 -0
- package/project/.sdk/src/cmp/csharp/fragment/Main.fragment.cs +278 -0
- package/project/.sdk/src/cmp/csharp/fragment/SdkError.fragment.cs +21 -0
- package/project/.sdk/src/cmp/csharp/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/csharp/utility_csharp.ts +143 -0
- package/project/.sdk/src/cmp/dart/Config_dart.ts +99 -0
- package/project/.sdk/src/cmp/dart/EntityBase_dart.ts +34 -0
- package/project/.sdk/src/cmp/dart/EntityOperation_dart.ts +43 -0
- package/project/.sdk/src/cmp/dart/EntityTypes_dart.ts +190 -0
- package/project/.sdk/src/cmp/dart/Entity_dart.ts +79 -0
- package/project/.sdk/src/cmp/dart/Gitignore_dart.ts +34 -0
- package/project/.sdk/src/cmp/dart/MainEntity_dart.ts +33 -0
- package/project/.sdk/src/cmp/dart/Main_dart.ts +105 -0
- package/project/.sdk/src/cmp/dart/Package_dart.ts +81 -0
- package/project/.sdk/src/cmp/dart/SdkError_dart.ts +42 -0
- package/project/.sdk/src/cmp/dart/TestDirect_dart.ts +498 -0
- package/project/.sdk/src/cmp/dart/TestEntity_dart.ts +552 -0
- package/project/.sdk/src/cmp/dart/Test_dart.ts +105 -0
- package/project/.sdk/src/cmp/dart/fragment/Config.fragment.dart +48 -0
- package/project/.sdk/src/cmp/dart/fragment/Direct.test.fragment.dart +25 -0
- package/project/.sdk/src/cmp/dart/fragment/Entity.fragment.dart +31 -0
- package/project/.sdk/src/cmp/dart/fragment/Entity.test.fragment.dart +67 -0
- package/project/.sdk/src/cmp/dart/fragment/EntityBase.fragment.dart +285 -0
- package/project/.sdk/src/cmp/dart/fragment/EntityCreateOp.fragment.dart +90 -0
- package/project/.sdk/src/cmp/dart/fragment/EntityListOp.fragment.dart +90 -0
- package/project/.sdk/src/cmp/dart/fragment/EntityLoadOp.fragment.dart +94 -0
- package/project/.sdk/src/cmp/dart/fragment/EntityRemoveOp.fragment.dart +94 -0
- package/project/.sdk/src/cmp/dart/fragment/EntityUpdateOp.fragment.dart +94 -0
- package/project/.sdk/src/cmp/dart/fragment/Main.fragment.dart +240 -0
- package/project/.sdk/src/cmp/dart/fragment/SdkError.fragment.dart +18 -0
- package/project/.sdk/src/cmp/dart/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/dart/utility_dart.ts +86 -0
- package/project/.sdk/src/cmp/elixir/Config_elixir.ts +101 -0
- package/project/.sdk/src/cmp/elixir/EntityOperation_elixir.ts +27 -0
- package/project/.sdk/src/cmp/elixir/Entity_elixir.ts +54 -0
- package/project/.sdk/src/cmp/elixir/Gitignore_elixir.ts +28 -0
- package/project/.sdk/src/cmp/elixir/MainEntity_elixir.ts +26 -0
- package/project/.sdk/src/cmp/elixir/Main_elixir.ts +124 -0
- package/project/.sdk/src/cmp/elixir/Package_elixir.ts +64 -0
- package/project/.sdk/src/cmp/elixir/TestDirect_elixir.ts +95 -0
- package/project/.sdk/src/cmp/elixir/TestEntity_elixir.ts +115 -0
- package/project/.sdk/src/cmp/elixir/Test_elixir.ts +47 -0
- package/project/.sdk/src/cmp/elixir/fragment/Entity.fragment.ex +37 -0
- package/project/.sdk/src/cmp/elixir/fragment/EntityCreateOp.fragment.ex +28 -0
- package/project/.sdk/src/cmp/elixir/fragment/EntityListOp.fragment.ex +30 -0
- package/project/.sdk/src/cmp/elixir/fragment/EntityLoadOp.fragment.ex +32 -0
- package/project/.sdk/src/cmp/elixir/fragment/EntityRemoveOp.fragment.ex +32 -0
- package/project/.sdk/src/cmp/elixir/fragment/EntityUpdateOp.fragment.ex +30 -0
- package/project/.sdk/src/cmp/elixir/fragment/Main.fragment.ex +218 -0
- package/project/.sdk/src/cmp/elixir/fragment/Pipeline.fragment.ex +62 -0
- package/project/.sdk/src/cmp/elixir/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/elixir/utility_elixir.ts +85 -0
- package/project/.sdk/src/cmp/go/TestEntity_go.ts +54 -0
- package/project/.sdk/src/cmp/go/fragment/Entity.fragment.go +133 -0
- package/project/.sdk/src/cmp/go/fragment/Main.fragment.go +14 -8
- package/project/.sdk/src/cmp/go-cli/Main_go-cli.ts +20 -2
- package/project/.sdk/src/cmp/go-mcp/Main_go-mcp.ts +42 -2
- package/project/.sdk/src/cmp/haskell/Config_haskell.ts +115 -0
- package/project/.sdk/src/cmp/haskell/Entity_haskell.ts +13 -0
- package/project/.sdk/src/cmp/haskell/Gitignore_haskell.ts +27 -0
- package/project/.sdk/src/cmp/haskell/Main_haskell.ts +123 -0
- package/project/.sdk/src/cmp/haskell/Package_haskell.ts +58 -0
- package/project/.sdk/src/cmp/haskell/Test_haskell.ts +263 -0
- package/project/.sdk/src/cmp/haskell/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/haskell/utility_haskell.ts +105 -0
- package/project/.sdk/src/cmp/java/Config_java.ts +138 -0
- package/project/.sdk/src/cmp/java/EntityBase_java.ts +50 -0
- package/project/.sdk/src/cmp/java/EntityOperation_java.ts +48 -0
- package/project/.sdk/src/cmp/java/Entity_java.ts +95 -0
- package/project/.sdk/src/cmp/java/Gitignore_java.ts +37 -0
- package/project/.sdk/src/cmp/java/MainEntity_java.ts +41 -0
- package/project/.sdk/src/cmp/java/Main_java.ts +100 -0
- package/project/.sdk/src/cmp/java/Package_java.ts +126 -0
- package/project/.sdk/src/cmp/java/SdkError_java.ts +49 -0
- package/project/.sdk/src/cmp/java/TestDirect_java.ts +509 -0
- package/project/.sdk/src/cmp/java/TestEntity_java.ts +599 -0
- package/project/.sdk/src/cmp/java/Test_java.ts +42 -0
- package/project/.sdk/src/cmp/java/fragment/Entity.fragment.java +35 -0
- package/project/.sdk/src/cmp/java/fragment/EntityBase.fragment.java +235 -0
- package/project/.sdk/src/cmp/java/fragment/EntityCreateOp.fragment.java +42 -0
- package/project/.sdk/src/cmp/java/fragment/EntityListOp.fragment.java +39 -0
- package/project/.sdk/src/cmp/java/fragment/EntityLoadOp.fragment.java +45 -0
- package/project/.sdk/src/cmp/java/fragment/EntityRemoveOp.fragment.java +45 -0
- package/project/.sdk/src/cmp/java/fragment/EntityUpdateOp.fragment.java +45 -0
- package/project/.sdk/src/cmp/java/fragment/Main.fragment.java +34 -0
- package/project/.sdk/src/cmp/java/fragment/SdkError.fragment.java +27 -0
- package/project/.sdk/src/cmp/java/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/java/utility_java.ts +102 -0
- package/project/.sdk/src/cmp/js/Config_js.ts +4 -2
- package/project/.sdk/src/cmp/js/TestEntity_js.ts +1 -0
- package/project/.sdk/src/cmp/js/fragment/Entity.test.fragment.js +32 -1
- package/project/.sdk/src/cmp/js/fragment/EntityBase.fragment.js +81 -0
- package/project/.sdk/src/cmp/js/fragment/Main.fragment.js +10 -5
- package/project/.sdk/src/cmp/kotlin/Config_kotlin.ts +128 -0
- package/project/.sdk/src/cmp/kotlin/EntityBase_kotlin.ts +50 -0
- package/project/.sdk/src/cmp/kotlin/EntityOperation_kotlin.ts +48 -0
- package/project/.sdk/src/cmp/kotlin/Entity_kotlin.ts +93 -0
- package/project/.sdk/src/cmp/kotlin/Gitignore_kotlin.ts +41 -0
- package/project/.sdk/src/cmp/kotlin/MainEntity_kotlin.ts +40 -0
- package/project/.sdk/src/cmp/kotlin/Main_kotlin.ts +94 -0
- package/project/.sdk/src/cmp/kotlin/Package_kotlin.ts +110 -0
- package/project/.sdk/src/cmp/kotlin/SdkError_kotlin.ts +48 -0
- package/project/.sdk/src/cmp/kotlin/TestDirect_kotlin.ts +479 -0
- package/project/.sdk/src/cmp/kotlin/TestEntity_kotlin.ts +567 -0
- package/project/.sdk/src/cmp/kotlin/Test_kotlin.ts +42 -0
- package/project/.sdk/src/cmp/kotlin/fragment/Entity.fragment.kt +28 -0
- package/project/.sdk/src/cmp/kotlin/fragment/EntityBase.fragment.kt +195 -0
- package/project/.sdk/src/cmp/kotlin/fragment/EntityCreateOp.fragment.kt +37 -0
- package/project/.sdk/src/cmp/kotlin/fragment/EntityListOp.fragment.kt +34 -0
- package/project/.sdk/src/cmp/kotlin/fragment/EntityLoadOp.fragment.kt +40 -0
- package/project/.sdk/src/cmp/kotlin/fragment/EntityRemoveOp.fragment.kt +40 -0
- package/project/.sdk/src/cmp/kotlin/fragment/EntityUpdateOp.fragment.kt +40 -0
- package/project/.sdk/src/cmp/kotlin/fragment/Main.fragment.kt +28 -0
- package/project/.sdk/src/cmp/kotlin/fragment/SdkError.fragment.kt +24 -0
- package/project/.sdk/src/cmp/kotlin/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/kotlin/utility_kotlin.ts +101 -0
- package/project/.sdk/src/cmp/lua/Entity_lua.ts +7 -2
- package/project/.sdk/src/cmp/lua/TestEntity_lua.ts +47 -0
- package/project/.sdk/src/cmp/lua/fragment/Entity.fragment.lua +137 -0
- package/project/.sdk/src/cmp/lua/fragment/Main.fragment.lua +9 -6
- package/project/.sdk/src/cmp/ocaml/Config_ocaml.ts +114 -0
- package/project/.sdk/src/cmp/ocaml/EntityOperation_ocaml.ts +63 -0
- package/project/.sdk/src/cmp/ocaml/Entity_ocaml.ts +152 -0
- package/project/.sdk/src/cmp/ocaml/Gitignore_ocaml.ts +37 -0
- package/project/.sdk/src/cmp/ocaml/MainEntity_ocaml.ts +28 -0
- package/project/.sdk/src/cmp/ocaml/Main_ocaml.ts +111 -0
- package/project/.sdk/src/cmp/ocaml/Package_ocaml.ts +47 -0
- package/project/.sdk/src/cmp/ocaml/SdkError_ocaml.ts +42 -0
- package/project/.sdk/src/cmp/ocaml/TestDirect_ocaml.ts +47 -0
- package/project/.sdk/src/cmp/ocaml/TestEntity_ocaml.ts +130 -0
- package/project/.sdk/src/cmp/ocaml/Test_ocaml.ts +35 -0
- package/project/.sdk/src/cmp/ocaml/fragment/RunOp.fragment.ml +32 -0
- package/project/.sdk/src/cmp/ocaml/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/ocaml/utility_ocaml.ts +129 -0
- package/project/.sdk/src/cmp/perl/Config_perl.ts +127 -0
- package/project/.sdk/src/cmp/perl/EntityOperation_perl.ts +42 -0
- package/project/.sdk/src/cmp/perl/Entity_perl.ts +84 -0
- package/project/.sdk/src/cmp/perl/Gitignore_perl.ts +32 -0
- package/project/.sdk/src/cmp/perl/MainEntity_perl.ts +34 -0
- package/project/.sdk/src/cmp/perl/Main_perl.ts +140 -0
- package/project/.sdk/src/cmp/perl/Package_perl.ts +63 -0
- package/project/.sdk/src/cmp/perl/TestDirect_perl.ts +433 -0
- package/project/.sdk/src/cmp/perl/TestEntity_perl.ts +515 -0
- package/project/.sdk/src/cmp/perl/Test_perl.ts +54 -0
- package/project/.sdk/src/cmp/perl/fragment/Entity.fragment.pm +235 -0
- package/project/.sdk/src/cmp/perl/fragment/EntityCreateOp.fragment.pm +31 -0
- package/project/.sdk/src/cmp/perl/fragment/EntityListOp.fragment.pm +43 -0
- package/project/.sdk/src/cmp/perl/fragment/EntityLoadOp.fragment.pm +34 -0
- package/project/.sdk/src/cmp/perl/fragment/EntityRemoveOp.fragment.pm +32 -0
- package/project/.sdk/src/cmp/perl/fragment/EntityUpdateOp.fragment.pm +32 -0
- package/project/.sdk/src/cmp/perl/fragment/Main.fragment.pm +263 -0
- package/project/.sdk/src/cmp/perl/fragment/SdkError.fragment.pm +27 -0
- package/project/.sdk/src/cmp/perl/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/perl/utility_perl.ts +30 -0
- package/project/.sdk/src/cmp/php/TestEntity_php.ts +45 -0
- package/project/.sdk/src/cmp/php/fragment/Entity.fragment.php +124 -0
- package/project/.sdk/src/cmp/php/fragment/Main.fragment.php +13 -6
- package/project/.sdk/src/cmp/py/Entity_py.ts +8 -2
- package/project/.sdk/src/cmp/py/TestEntity_py.ts +40 -0
- package/project/.sdk/src/cmp/py/fragment/Entity.fragment.py +135 -28
- package/project/.sdk/src/cmp/py/fragment/Main.fragment.py +9 -6
- package/project/.sdk/src/cmp/rb/Entity_rb.ts +8 -2
- package/project/.sdk/src/cmp/rb/ReadmeExamplesTest_rb.ts +4 -1
- package/project/.sdk/src/cmp/rb/TestEntity_rb.ts +42 -0
- package/project/.sdk/src/cmp/rb/fragment/Entity.fragment.rb +122 -23
- package/project/.sdk/src/cmp/rb/fragment/Main.fragment.rb +9 -6
- package/project/.sdk/src/cmp/rust/Config_rust.ts +118 -0
- package/project/.sdk/src/cmp/rust/EntityBase_rust.ts +59 -0
- package/project/.sdk/src/cmp/rust/EntityOperation_rust.ts +44 -0
- package/project/.sdk/src/cmp/rust/Entity_rust.ts +94 -0
- package/project/.sdk/src/cmp/rust/Gitignore_rust.ts +29 -0
- package/project/.sdk/src/cmp/rust/MainEntity_rust.ts +37 -0
- package/project/.sdk/src/cmp/rust/Main_rust.ts +146 -0
- package/project/.sdk/src/cmp/rust/Package_rust.ts +80 -0
- package/project/.sdk/src/cmp/rust/SdkError_rust.ts +42 -0
- package/project/.sdk/src/cmp/rust/TestDirect_rust.ts +448 -0
- package/project/.sdk/src/cmp/rust/TestEntity_rust.ts +635 -0
- package/project/.sdk/src/cmp/rust/Test_rust.ts +51 -0
- package/project/.sdk/src/cmp/rust/fragment/Entity.fragment.rs +288 -0
- package/project/.sdk/src/cmp/rust/fragment/EntityCreateOp.fragment.rs +29 -0
- package/project/.sdk/src/cmp/rust/fragment/EntityListOp.fragment.rs +26 -0
- package/project/.sdk/src/cmp/rust/fragment/EntityLoadOp.fragment.rs +35 -0
- package/project/.sdk/src/cmp/rust/fragment/EntityRemoveOp.fragment.rs +35 -0
- package/project/.sdk/src/cmp/rust/fragment/EntityUpdateOp.fragment.rs +35 -0
- package/project/.sdk/src/cmp/rust/fragment/Main.fragment.rs +296 -0
- package/project/.sdk/src/cmp/rust/fragment/SdkError.fragment.rs +34 -0
- package/project/.sdk/src/cmp/rust/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/rust/utility_rust.ts +104 -0
- package/project/.sdk/src/cmp/scala/Config_scala.ts +126 -0
- package/project/.sdk/src/cmp/scala/EntityBase_scala.ts +50 -0
- package/project/.sdk/src/cmp/scala/EntityOperation_scala.ts +46 -0
- package/project/.sdk/src/cmp/scala/Entity_scala.ts +87 -0
- package/project/.sdk/src/cmp/scala/Gitignore_scala.ts +31 -0
- package/project/.sdk/src/cmp/scala/MainEntity_scala.ts +40 -0
- package/project/.sdk/src/cmp/scala/Main_scala.ts +93 -0
- package/project/.sdk/src/cmp/scala/Package_scala.ts +22 -0
- package/project/.sdk/src/cmp/scala/TestDirect_scala.ts +233 -0
- package/project/.sdk/src/cmp/scala/TestEntity_scala.ts +397 -0
- package/project/.sdk/src/cmp/scala/Test_scala.ts +93 -0
- package/project/.sdk/src/cmp/scala/fragment/Entity.fragment.scala +24 -0
- package/project/.sdk/src/cmp/scala/fragment/EntityBase.fragment.scala +169 -0
- package/project/.sdk/src/cmp/scala/fragment/EntityCreateOp.fragment.scala +32 -0
- package/project/.sdk/src/cmp/scala/fragment/EntityListOp.fragment.scala +28 -0
- package/project/.sdk/src/cmp/scala/fragment/EntityLoadOp.fragment.scala +33 -0
- package/project/.sdk/src/cmp/scala/fragment/EntityRemoveOp.fragment.scala +33 -0
- package/project/.sdk/src/cmp/scala/fragment/EntityUpdateOp.fragment.scala +33 -0
- package/project/.sdk/src/cmp/scala/fragment/Main.fragment.scala +27 -0
- package/project/.sdk/src/cmp/scala/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/scala/utility_scala.ts +99 -0
- package/project/.sdk/src/cmp/swift/Config_swift.ts +127 -0
- package/project/.sdk/src/cmp/swift/EntityBase_swift.ts +38 -0
- package/project/.sdk/src/cmp/swift/EntityOperation_swift.ts +39 -0
- package/project/.sdk/src/cmp/swift/Entity_swift.ts +86 -0
- package/project/.sdk/src/cmp/swift/Gitignore_swift.ts +32 -0
- package/project/.sdk/src/cmp/swift/MainEntity_swift.ts +35 -0
- package/project/.sdk/src/cmp/swift/Main_swift.ts +94 -0
- package/project/.sdk/src/cmp/swift/Package_swift.ts +66 -0
- package/project/.sdk/src/cmp/swift/SdkError_swift.ts +41 -0
- package/project/.sdk/src/cmp/swift/TestDirect_swift.ts +84 -0
- package/project/.sdk/src/cmp/swift/TestEntity_swift.ts +84 -0
- package/project/.sdk/src/cmp/swift/Test_swift.ts +39 -0
- package/project/.sdk/src/cmp/swift/fragment/Entity.fragment.swift +23 -0
- package/project/.sdk/src/cmp/swift/fragment/EntityBase.fragment.swift +202 -0
- package/project/.sdk/src/cmp/swift/fragment/EntityCreateOp.fragment.swift +23 -0
- package/project/.sdk/src/cmp/swift/fragment/EntityListOp.fragment.swift +21 -0
- package/project/.sdk/src/cmp/swift/fragment/EntityLoadOp.fragment.swift +24 -0
- package/project/.sdk/src/cmp/swift/fragment/EntityRemoveOp.fragment.swift +24 -0
- package/project/.sdk/src/cmp/swift/fragment/EntityUpdateOp.fragment.swift +24 -0
- package/project/.sdk/src/cmp/swift/fragment/Main.fragment.swift +211 -0
- package/project/.sdk/src/cmp/swift/fragment/SdkError.fragment.swift +22 -0
- package/project/.sdk/src/cmp/swift/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/swift/utility_swift.ts +76 -0
- package/project/.sdk/src/cmp/ts/Config_ts.ts +4 -2
- package/project/.sdk/src/cmp/ts/Package_ts.ts +17 -2
- package/project/.sdk/src/cmp/ts/fragment/EntityBase.fragment.ts +81 -0
- package/project/.sdk/src/cmp/ts/fragment/Main.fragment.ts +10 -5
- package/project/.sdk/src/cmp/zig/Config_zig.ts +113 -0
- package/project/.sdk/src/cmp/zig/EntityOperation_zig.ts +39 -0
- package/project/.sdk/src/cmp/zig/Entity_zig.ts +89 -0
- package/project/.sdk/src/cmp/zig/Gitignore_zig.ts +27 -0
- package/project/.sdk/src/cmp/zig/MainEntity_zig.ts +38 -0
- package/project/.sdk/src/cmp/zig/Main_zig.ts +78 -0
- package/project/.sdk/src/cmp/zig/Test_zig.ts +114 -0
- package/project/.sdk/src/cmp/zig/fragment/Entity.fragment.zig +278 -0
- package/project/.sdk/src/cmp/zig/fragment/EntityCreateOp.fragment.zig +24 -0
- package/project/.sdk/src/cmp/zig/fragment/EntityListOp.fragment.zig +21 -0
- package/project/.sdk/src/cmp/zig/fragment/EntityLoadOp.fragment.zig +26 -0
- package/project/.sdk/src/cmp/zig/fragment/EntityRemoveOp.fragment.zig +26 -0
- package/project/.sdk/src/cmp/zig/fragment/EntityUpdateOp.fragment.zig +26 -0
- package/project/.sdk/src/cmp/zig/fragment/Main.fragment.zig +258 -0
- package/project/.sdk/src/cmp/zig/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/zig/utility_zig.ts +95 -0
- package/project/.sdk/tm/c/LICENSE +22 -0
- package/project/.sdk/tm/c/Makefile +50 -0
- package/project/.sdk/tm/c/VERSION +1 -0
- package/project/.sdk/tm/c/core/context.c +145 -0
- package/project/.sdk/tm/c/core/control.c +19 -0
- package/project/.sdk/tm/c/core/error.c +24 -0
- package/project/.sdk/tm/c/core/helpers.c +228 -0
- package/project/.sdk/tm/c/core/operation.c +34 -0
- package/project/.sdk/tm/c/core/point.c +49 -0
- package/project/.sdk/tm/c/core/response.c +29 -0
- package/project/.sdk/tm/c/core/result.c +60 -0
- package/project/.sdk/tm/c/core/sdk.h +514 -0
- package/project/.sdk/tm/c/core/spec.c +94 -0
- package/project/.sdk/tm/c/core/utility.c +74 -0
- package/project/.sdk/tm/c/feature/audit.c +134 -0
- package/project/.sdk/tm/c/feature/base.c +40 -0
- package/project/.sdk/tm/c/feature/cache.c +262 -0
- package/project/.sdk/tm/c/feature/clienttrack.c +144 -0
- package/project/.sdk/tm/c/feature/debug.c +230 -0
- package/project/.sdk/tm/c/feature/idempotency.c +164 -0
- package/project/.sdk/tm/c/feature/log.c +79 -0
- package/project/.sdk/tm/c/feature/metrics.c +177 -0
- package/project/.sdk/tm/c/feature/netsim.c +211 -0
- package/project/.sdk/tm/c/feature/paging.c +223 -0
- package/project/.sdk/tm/c/feature/proxy.c +249 -0
- package/project/.sdk/tm/c/feature/ratelimit.c +124 -0
- package/project/.sdk/tm/c/feature/rbac.c +167 -0
- package/project/.sdk/tm/c/feature/retry.c +164 -0
- package/project/.sdk/tm/c/feature/streaming.c +147 -0
- package/project/.sdk/tm/c/feature/support.c +115 -0
- package/project/.sdk/tm/c/feature/telemetry.c +205 -0
- package/project/.sdk/tm/c/feature/test.c +385 -0
- package/project/.sdk/tm/c/feature/timeout.c +106 -0
- package/project/.sdk/tm/c/src/feature/README.md +1 -0
- package/project/.sdk/tm/c/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/c/tests/ctest.h +58 -0
- package/project/.sdk/tm/c/tests/feature_harness.h +441 -0
- package/project/.sdk/tm/c/tests/feature_test.c +1210 -0
- package/project/.sdk/tm/c/tests/pipeline_test.c +561 -0
- package/project/.sdk/tm/c/tests/primary_utility_test.c +573 -0
- package/project/.sdk/tm/c/tests/runner.h +274 -0
- package/project/.sdk/tm/c/tests/sdk_pipeline_test.c +89 -0
- package/project/.sdk/tm/c/tests/struct_corpus_test.c +939 -0
- package/project/.sdk/tm/c/utility/clean.c +20 -0
- package/project/.sdk/tm/c/utility/done.c +26 -0
- package/project/.sdk/tm/c/utility/feature_add.c +42 -0
- package/project/.sdk/tm/c/utility/feature_hook.c +22 -0
- package/project/.sdk/tm/c/utility/feature_init.c +22 -0
- package/project/.sdk/tm/c/utility/fetcher.c +78 -0
- package/project/.sdk/tm/c/utility/jsonparse.c +11 -0
- package/project/.sdk/tm/c/utility/make_context.c +7 -0
- package/project/.sdk/tm/c/utility/make_error.c +66 -0
- package/project/.sdk/tm/c/utility/make_fetch_def.c +43 -0
- package/project/.sdk/tm/c/utility/make_options.c +179 -0
- package/project/.sdk/tm/c/utility/make_point.c +109 -0
- package/project/.sdk/tm/c/utility/make_request.c +62 -0
- package/project/.sdk/tm/c/utility/make_response.c +45 -0
- package/project/.sdk/tm/c/utility/make_result.c +61 -0
- package/project/.sdk/tm/c/utility/make_spec.c +60 -0
- package/project/.sdk/tm/c/utility/make_url.c +88 -0
- package/project/.sdk/tm/c/utility/param.c +58 -0
- package/project/.sdk/tm/c/utility/prepare_auth.c +65 -0
- package/project/.sdk/tm/c/utility/prepare_body.c +12 -0
- package/project/.sdk/tm/c/utility/prepare_headers.c +13 -0
- package/project/.sdk/tm/c/utility/prepare_method.c +16 -0
- package/project/.sdk/tm/c/utility/prepare_params.c +30 -0
- package/project/.sdk/tm/c/utility/prepare_path.c +17 -0
- package/project/.sdk/tm/c/utility/prepare_query.c +37 -0
- package/project/.sdk/tm/c/utility/result_basic.c +43 -0
- package/project/.sdk/tm/c/utility/result_body.c +17 -0
- package/project/.sdk/tm/c/utility/result_headers.c +17 -0
- package/project/.sdk/tm/c/utility/struct/inject.c +703 -0
- package/project/.sdk/tm/c/utility/struct/re_util.c +221 -0
- package/project/.sdk/tm/c/utility/struct/regex.c +1103 -0
- package/project/.sdk/tm/c/utility/struct/regex.h +84 -0
- package/project/.sdk/tm/c/utility/struct/transform.c +2224 -0
- package/project/.sdk/tm/c/utility/struct/utility.c +1971 -0
- package/project/.sdk/tm/c/utility/struct/value.c +640 -0
- package/project/.sdk/tm/c/utility/struct/value.h +273 -0
- package/project/.sdk/tm/c/utility/struct/value_io.c +366 -0
- package/project/.sdk/tm/c/utility/struct/value_io.h +31 -0
- package/project/.sdk/tm/c/utility/struct/voxgig_struct.h +216 -0
- package/project/.sdk/tm/c/utility/transform_request.c +21 -0
- package/project/.sdk/tm/c/utility/transform_response.c +36 -0
- package/project/.sdk/tm/clojure/LICENSE +22 -0
- package/project/.sdk/tm/clojure/Makefile +15 -0
- package/project/.sdk/tm/clojure/VERSION +1 -0
- package/project/.sdk/tm/clojure/src/feature/README.md +1 -0
- package/project/.sdk/tm/clojure/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/sdk/client.clj +119 -0
- package/project/.sdk/tm/clojure/src/sdk/core.clj +901 -0
- package/project/.sdk/tm/clojure/src/sdk/features.clj +1027 -0
- package/project/.sdk/tm/clojure/src/voxgig/struct.clj +1734 -0
- package/project/.sdk/tm/clojure/test/sdk/test/feature.clj +596 -0
- package/project/.sdk/tm/clojure/test/sdk/test/netsim.clj +42 -0
- package/project/.sdk/tm/clojure/test/sdk/test/pipeline.clj +314 -0
- package/project/.sdk/tm/clojure/test/sdk/test/primary.clj +52 -0
- package/project/.sdk/tm/clojure/test/sdk/test/struct_corpus.clj +337 -0
- package/project/.sdk/tm/clojure/test/sdk/test_runner.clj +39 -0
- package/project/.sdk/tm/clojure/test/sdk/testutil.clj +35 -0
- package/project/.sdk/tm/cpp/LICENSE +22 -0
- package/project/.sdk/tm/cpp/Makefile +36 -0
- package/project/.sdk/tm/cpp/VERSION +1 -0
- package/project/.sdk/tm/cpp/core/sdk.hpp +16 -0
- package/project/.sdk/tm/cpp/core/struct.hpp +225 -0
- package/project/.sdk/tm/cpp/core/types.hpp +1105 -0
- package/project/.sdk/tm/cpp/feature/audit.hpp +107 -0
- package/project/.sdk/tm/cpp/feature/base.hpp +34 -0
- package/project/.sdk/tm/cpp/feature/cache.hpp +189 -0
- package/project/.sdk/tm/cpp/feature/clienttrack.hpp +105 -0
- package/project/.sdk/tm/cpp/feature/debug.hpp +157 -0
- package/project/.sdk/tm/cpp/feature/idempotency.hpp +119 -0
- package/project/.sdk/tm/cpp/feature/log.hpp +90 -0
- package/project/.sdk/tm/cpp/feature/metrics.hpp +103 -0
- package/project/.sdk/tm/cpp/feature/netsim.hpp +152 -0
- package/project/.sdk/tm/cpp/feature/options.hpp +156 -0
- package/project/.sdk/tm/cpp/feature/paging.hpp +156 -0
- package/project/.sdk/tm/cpp/feature/proxy.hpp +145 -0
- package/project/.sdk/tm/cpp/feature/ratelimit.hpp +87 -0
- package/project/.sdk/tm/cpp/feature/rbac.hpp +108 -0
- package/project/.sdk/tm/cpp/feature/retry.hpp +130 -0
- package/project/.sdk/tm/cpp/feature/streaming.hpp +98 -0
- package/project/.sdk/tm/cpp/feature/telemetry.hpp +139 -0
- package/project/.sdk/tm/cpp/feature/test.hpp +289 -0
- package/project/.sdk/tm/cpp/feature/timeout.hpp +88 -0
- package/project/.sdk/tm/cpp/src/feature/README.md +1 -0
- package/project/.sdk/tm/cpp/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/test/custom_utility_test.cpp +57 -0
- package/project/.sdk/tm/cpp/test/exists_test.cpp +16 -0
- package/project/.sdk/tm/cpp/test/feature_test.cpp +911 -0
- package/project/.sdk/tm/cpp/test/harness.hpp +344 -0
- package/project/.sdk/tm/cpp/test/netsim_test.cpp +48 -0
- package/project/.sdk/tm/cpp/test/pipeline_test.cpp +526 -0
- package/project/.sdk/tm/cpp/test/primary_utility_test.cpp +841 -0
- package/project/.sdk/tm/cpp/test/runner_support.hpp +437 -0
- package/project/.sdk/tm/cpp/test/sdk-test-control.json +19 -0
- package/project/.sdk/tm/cpp/test/struct_corpus_test.cpp +494 -0
- package/project/.sdk/tm/cpp/test/struct_runner.hpp +314 -0
- package/project/.sdk/tm/cpp/test/testlib.hpp +82 -0
- package/project/.sdk/tm/cpp/utility/pipeline.hpp +1054 -0
- package/project/.sdk/tm/cpp/utility/voxgigstruct/value.hpp +525 -0
- package/project/.sdk/tm/cpp/utility/voxgigstruct/value_io.hpp +315 -0
- package/project/.sdk/tm/cpp/utility/voxgigstruct/voxgig_struct.hpp +3379 -0
- package/project/.sdk/tm/csharp/LICENSE +22 -0
- package/project/.sdk/tm/csharp/Makefile +43 -0
- package/project/.sdk/tm/csharp/VERSION +1 -0
- package/project/.sdk/tm/csharp/core/Context.cs +257 -0
- package/project/.sdk/tm/csharp/core/Control.cs +17 -0
- package/project/.sdk/tm/csharp/core/Helpers.cs +61 -0
- package/project/.sdk/tm/csharp/core/Operation.cs +51 -0
- package/project/.sdk/tm/csharp/core/Point.cs +68 -0
- package/project/.sdk/tm/csharp/core/Response.cs +45 -0
- package/project/.sdk/tm/csharp/core/Result.cs +63 -0
- package/project/.sdk/tm/csharp/core/Spec.cs +81 -0
- package/project/.sdk/tm/csharp/core/Types.cs +21 -0
- package/project/.sdk/tm/csharp/core/Utility.cs +88 -0
- package/project/.sdk/tm/csharp/feature/AuditFeature.cs +116 -0
- package/project/.sdk/tm/csharp/feature/BaseFeature.cs +39 -0
- package/project/.sdk/tm/csharp/feature/CacheFeature.cs +186 -0
- package/project/.sdk/tm/csharp/feature/ClienttrackFeature.cs +103 -0
- package/project/.sdk/tm/csharp/feature/DebugFeature.cs +157 -0
- package/project/.sdk/tm/csharp/feature/FeatureOptions.cs +197 -0
- package/project/.sdk/tm/csharp/feature/IdempotencyFeature.cs +97 -0
- package/project/.sdk/tm/csharp/feature/LogFeature.cs +109 -0
- package/project/.sdk/tm/csharp/feature/MetricsFeature.cs +117 -0
- package/project/.sdk/tm/csharp/feature/NetsimFeature.cs +200 -0
- package/project/.sdk/tm/csharp/feature/PagingFeature.cs +187 -0
- package/project/.sdk/tm/csharp/feature/ProxyFeature.cs +138 -0
- package/project/.sdk/tm/csharp/feature/RatelimitFeature.cs +89 -0
- package/project/.sdk/tm/csharp/feature/RbacFeature.cs +124 -0
- package/project/.sdk/tm/csharp/feature/RetryFeature.cs +174 -0
- package/project/.sdk/tm/csharp/feature/StreamingFeature.cs +93 -0
- package/project/.sdk/tm/csharp/feature/TelemetryFeature.cs +145 -0
- package/project/.sdk/tm/csharp/feature/TestFeature.cs +368 -0
- package/project/.sdk/tm/csharp/feature/TimeoutFeature.cs +69 -0
- package/project/.sdk/tm/csharp/src/feature/README.md +1 -0
- package/project/.sdk/tm/csharp/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/test/CustomUtilityTest.cs +51 -0
- package/project/.sdk/tm/csharp/test/ExistsTest.cs +17 -0
- package/project/.sdk/tm/csharp/test/FeatureTest.cs +1653 -0
- package/project/.sdk/tm/csharp/test/NetsimTest.cs +67 -0
- package/project/.sdk/tm/csharp/test/PipelineTest.cs +605 -0
- package/project/.sdk/tm/csharp/test/PrimaryUtilityTest.cs +957 -0
- package/project/.sdk/tm/csharp/test/Runner.cs +626 -0
- package/project/.sdk/tm/csharp/test/StructRunner.cs +276 -0
- package/project/.sdk/tm/csharp/test/StructUtilityTest.cs +1273 -0
- package/project/.sdk/tm/csharp/test/sdk-test-control.json +19 -0
- package/project/.sdk/tm/csharp/utility/Clean.cs +11 -0
- package/project/.sdk/tm/csharp/utility/Done.cs +28 -0
- package/project/.sdk/tm/csharp/utility/FeatureAdd.cs +54 -0
- package/project/.sdk/tm/csharp/utility/FeatureHook.cs +35 -0
- package/project/.sdk/tm/csharp/utility/FeatureInit.cs +28 -0
- package/project/.sdk/tm/csharp/utility/Fetcher.cs +181 -0
- package/project/.sdk/tm/csharp/utility/MakeContext.cs +11 -0
- package/project/.sdk/tm/csharp/utility/MakeError.cs +69 -0
- package/project/.sdk/tm/csharp/utility/MakeFetchDef.cs +38 -0
- package/project/.sdk/tm/csharp/utility/MakeOptions.cs +203 -0
- package/project/.sdk/tm/csharp/utility/MakePoint.cs +127 -0
- package/project/.sdk/tm/csharp/utility/MakeRequest.cs +87 -0
- package/project/.sdk/tm/csharp/utility/MakeResponse.cs +55 -0
- package/project/.sdk/tm/csharp/utility/MakeResult.cs +64 -0
- package/project/.sdk/tm/csharp/utility/MakeSpec.cs +64 -0
- package/project/.sdk/tm/csharp/utility/MakeUrl.cs +54 -0
- package/project/.sdk/tm/csharp/utility/Param.cs +67 -0
- package/project/.sdk/tm/csharp/utility/PrepareAuth.cs +54 -0
- package/project/.sdk/tm/csharp/utility/PrepareBody.cs +19 -0
- package/project/.sdk/tm/csharp/utility/PrepareHeaders.cs +22 -0
- package/project/.sdk/tm/csharp/utility/PrepareMethod.cs +22 -0
- package/project/.sdk/tm/csharp/utility/PrepareParams.cs +38 -0
- package/project/.sdk/tm/csharp/utility/PreparePath.cs +18 -0
- package/project/.sdk/tm/csharp/utility/PrepareQuery.cs +40 -0
- package/project/.sdk/tm/csharp/utility/Register.cs +41 -0
- package/project/.sdk/tm/csharp/utility/ResultBasic.cs +39 -0
- package/project/.sdk/tm/csharp/utility/ResultBody.cs +22 -0
- package/project/.sdk/tm/csharp/utility/ResultHeaders.cs +26 -0
- package/project/.sdk/tm/csharp/utility/TransformRequest.cs +39 -0
- package/project/.sdk/tm/csharp/utility/TransformResponse.cs +53 -0
- package/project/.sdk/tm/csharp/utility/struct/Struct.cs +3582 -0
- package/project/.sdk/tm/dart/LICENSE +22 -0
- package/project/.sdk/tm/dart/Makefile +50 -0
- package/project/.sdk/tm/dart/lib/Context.dart +150 -0
- package/project/.sdk/tm/dart/lib/Control.dart +15 -0
- package/project/.sdk/tm/dart/lib/Operation.dart +31 -0
- package/project/.sdk/tm/dart/lib/Point.dart +43 -0
- package/project/.sdk/tm/dart/lib/Response.dart +32 -0
- package/project/.sdk/tm/dart/lib/Result.dart +39 -0
- package/project/.sdk/tm/dart/lib/Spec.dart +49 -0
- package/project/.sdk/tm/dart/lib/feature/audit/AuditFeature.dart +103 -0
- package/project/.sdk/tm/dart/lib/feature/base/BaseFeature.dart +76 -0
- package/project/.sdk/tm/dart/lib/feature/cache/CacheFeature.dart +152 -0
- package/project/.sdk/tm/dart/lib/feature/clienttrack/ClienttrackFeature.dart +104 -0
- package/project/.sdk/tm/dart/lib/feature/debug/DebugFeature.dart +153 -0
- package/project/.sdk/tm/dart/lib/feature/idempotency/IdempotencyFeature.dart +92 -0
- package/project/.sdk/tm/dart/lib/feature/log/LogFeature.dart +85 -0
- package/project/.sdk/tm/dart/lib/feature/metrics/MetricsFeature.dart +103 -0
- package/project/.sdk/tm/dart/lib/feature/netsim/NetsimFeature.dart +186 -0
- package/project/.sdk/tm/dart/lib/feature/paging/PagingFeature.dart +145 -0
- package/project/.sdk/tm/dart/lib/feature/proxy/ProxyFeature.dart +118 -0
- package/project/.sdk/tm/dart/lib/feature/ratelimit/RatelimitFeature.dart +103 -0
- package/project/.sdk/tm/dart/lib/feature/rbac/RbacFeature.dart +121 -0
- package/project/.sdk/tm/dart/lib/feature/retry/RetryFeature.dart +155 -0
- package/project/.sdk/tm/dart/lib/feature/streaming/StreamingFeature.dart +97 -0
- package/project/.sdk/tm/dart/lib/feature/telemetry/TelemetryFeature.dart +136 -0
- package/project/.sdk/tm/dart/lib/feature/test/TestFeature.dart +270 -0
- package/project/.sdk/tm/dart/lib/feature/timeout/TimeoutFeature.dart +104 -0
- package/project/.sdk/tm/dart/lib/utility/CleanUtility.dart +12 -0
- package/project/.sdk/tm/dart/lib/utility/DoneUtility.dart +18 -0
- package/project/.sdk/tm/dart/lib/utility/ErrUtility.dart +46 -0
- package/project/.sdk/tm/dart/lib/utility/FeatureAddUtility.dart +35 -0
- package/project/.sdk/tm/dart/lib/utility/FeatureHookUtility.dart +20 -0
- package/project/.sdk/tm/dart/lib/utility/FeatureInitUtility.dart +9 -0
- package/project/.sdk/tm/dart/lib/utility/FetcherUtility.dart +95 -0
- package/project/.sdk/tm/dart/lib/utility/MakeContextUtility.dart +6 -0
- package/project/.sdk/tm/dart/lib/utility/MakeErrorUtility.dart +67 -0
- package/project/.sdk/tm/dart/lib/utility/MakeFetchDefUtility.dart +42 -0
- package/project/.sdk/tm/dart/lib/utility/MakeOptionsUtility.dart +147 -0
- package/project/.sdk/tm/dart/lib/utility/MakePointUtility.dart +84 -0
- package/project/.sdk/tm/dart/lib/utility/MakeRequestUtility.dart +63 -0
- package/project/.sdk/tm/dart/lib/utility/MakeResponseUtility.dart +54 -0
- package/project/.sdk/tm/dart/lib/utility/MakeResultUtility.dart +49 -0
- package/project/.sdk/tm/dart/lib/utility/MakeSpecUtility.dart +61 -0
- package/project/.sdk/tm/dart/lib/utility/MakeUrlUtility.dart +51 -0
- package/project/.sdk/tm/dart/lib/utility/ParamUtility.dart +56 -0
- package/project/.sdk/tm/dart/lib/utility/PrepareAuthUtility.dart +46 -0
- package/project/.sdk/tm/dart/lib/utility/PrepareBodyUtility.dart +19 -0
- package/project/.sdk/tm/dart/lib/utility/PrepareHeadersUtility.dart +11 -0
- package/project/.sdk/tm/dart/lib/utility/PrepareMethodUtility.dart +15 -0
- package/project/.sdk/tm/dart/lib/utility/PrepareParamsUtility.dart +23 -0
- package/project/.sdk/tm/dart/lib/utility/PreparePathUtility.dart +9 -0
- package/project/.sdk/tm/dart/lib/utility/PrepareQueryUtility.dart +18 -0
- package/project/.sdk/tm/dart/lib/utility/ResultBasicUtility.dart +29 -0
- package/project/.sdk/tm/dart/lib/utility/ResultBodyUtility.dart +15 -0
- package/project/.sdk/tm/dart/lib/utility/ResultHeadersUtility.dart +18 -0
- package/project/.sdk/tm/dart/lib/utility/StructUtility.dart +127 -0
- package/project/.sdk/tm/dart/lib/utility/TransformRequestUtility.dart +28 -0
- package/project/.sdk/tm/dart/lib/utility/TransformResponseUtility.dart +44 -0
- package/project/.sdk/tm/dart/lib/utility/Utility.dart +230 -0
- package/project/.sdk/tm/dart/lib/utility/voxgig_struct.dart +2456 -0
- package/project/.sdk/tm/dart/src/feature/README.md +3 -0
- package/project/.sdk/tm/dart/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/dart/test/custom_test.dart +65 -0
- package/project/.sdk/tm/dart/test/exists_test.dart +12 -0
- package/project/.sdk/tm/dart/test/feature/harness.dart +329 -0
- package/project/.sdk/tm/dart/test/feature_test.dart +1139 -0
- package/project/.sdk/tm/dart/test/harness.dart +153 -0
- package/project/.sdk/tm/dart/test/netsim_test.dart +48 -0
- package/project/.sdk/tm/dart/test/pipeline_test.dart +608 -0
- package/project/.sdk/tm/dart/test/primary_test.dart +411 -0
- package/project/.sdk/tm/dart/test/runner.dart +406 -0
- package/project/.sdk/tm/dart/test/sdk-test-control.json +19 -0
- package/project/.sdk/tm/dart/test/struct_corpus.dart +531 -0
- package/project/.sdk/tm/dart/test/struct_test.dart +41 -0
- package/project/.sdk/tm/dart/test/utility.dart +159 -0
- package/project/.sdk/tm/elixir/LICENSE +21 -0
- package/project/.sdk/tm/elixir/Makefile +15 -0
- package/project/.sdk/tm/elixir/VERSION +1 -0
- package/project/.sdk/tm/elixir/lib/projectname/context.ex +138 -0
- package/project/.sdk/tm/elixir/lib/projectname/core.ex +125 -0
- package/project/.sdk/tm/elixir/lib/projectname/entity_base.ex +155 -0
- package/project/.sdk/tm/elixir/lib/projectname/error.ex +16 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/audit.ex +125 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/cache.ex +170 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/clienttrack.ex +136 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/debug.ex +232 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/idempotency.ex +107 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/log.ex +62 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/metrics.ex +130 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/netsim.ex +213 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/paging.ex +191 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/proxy.ex +142 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/ratelimit.ex +81 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/rbac.ex +139 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/retry.ex +150 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/streaming.ex +107 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/telemetry.ex +172 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/test.ex +285 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/timeout.ex +64 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature.ex +90 -0
- package/project/.sdk/tm/elixir/lib/projectname/helpers.ex +66 -0
- package/project/.sdk/tm/elixir/lib/projectname/json.ex +115 -0
- package/project/.sdk/tm/elixir/lib/projectname/utility.ex +1257 -0
- package/project/.sdk/tm/elixir/lib/utility/struct/voxgig_struct.ex +2615 -0
- package/project/.sdk/tm/elixir/src/feature/README.md +3 -0
- package/project/.sdk/tm/elixir/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/test/feature_test.exs +879 -0
- package/project/.sdk/tm/elixir/test/netsim_test.exs +58 -0
- package/project/.sdk/tm/elixir/test/pipeline_test.exs +558 -0
- package/project/.sdk/tm/elixir/test/primary_utility_test.exs +133 -0
- package/project/.sdk/tm/elixir/test/stream_test.exs +119 -0
- package/project/.sdk/tm/elixir/test/struct_corpus_test.exs +18 -0
- package/project/.sdk/tm/elixir/test/support/feature_harness.ex +346 -0
- package/project/.sdk/tm/elixir/test/support/struct_corpus.ex +677 -0
- package/project/.sdk/tm/elixir/test/test_helper.exs +1 -0
- package/project/.sdk/tm/go/core/context.go +10 -0
- package/project/.sdk/tm/go/core/control.go +2 -0
- package/project/.sdk/tm/go/core/result.go +6 -0
- package/project/.sdk/tm/go/core/types.go +1 -0
- package/project/.sdk/tm/go/feature/audit_feature.go +110 -0
- package/project/.sdk/tm/go/feature/base_feature.go +8 -0
- package/project/.sdk/tm/go/feature/cache_feature.go +171 -0
- package/project/.sdk/tm/go/feature/clienttrack_feature.go +100 -0
- package/project/.sdk/tm/go/feature/debug_feature.go +159 -0
- package/project/.sdk/tm/go/feature/feature_options.go +204 -0
- package/project/.sdk/tm/go/feature/idempotency_feature.go +115 -0
- package/project/.sdk/tm/go/feature/metrics_feature.go +112 -0
- package/project/.sdk/tm/go/feature/netsim_feature.go +184 -0
- package/project/.sdk/tm/go/feature/paging_feature.go +173 -0
- package/project/.sdk/tm/go/feature/proxy_feature.go +121 -0
- package/project/.sdk/tm/go/feature/ratelimit_feature.go +88 -0
- package/project/.sdk/tm/go/feature/rbac_feature.go +126 -0
- package/project/.sdk/tm/go/feature/retry_feature.go +165 -0
- package/project/.sdk/tm/go/feature/streaming_feature.go +119 -0
- package/project/.sdk/tm/go/feature/telemetry_feature.go +142 -0
- package/project/.sdk/tm/go/feature/test_feature.go +78 -3
- package/project/.sdk/tm/go/feature/timeout_feature.go +88 -0
- package/project/.sdk/tm/go/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/go/test/feature_test.go +1465 -0
- package/project/.sdk/tm/go/test/netsim_test.go +70 -0
- package/project/.sdk/tm/go/test/pipeline_test.go +571 -0
- package/project/.sdk/tm/go/utility/feature_add.go +38 -0
- package/project/.sdk/tm/go/utility/fetcher.go +13 -1
- package/project/.sdk/tm/go/utility/make_error.go +8 -0
- package/project/.sdk/tm/go/utility/make_options.go +62 -0
- package/project/.sdk/tm/go/utility/make_point.go +6 -0
- package/project/.sdk/tm/go-cli/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/LICENSE +21 -0
- package/project/.sdk/tm/haskell/Makefile +22 -0
- package/project/.sdk/tm/haskell/VERSION +1 -0
- package/project/.sdk/tm/haskell/src/SdkFeatures.hs +1278 -0
- package/project/.sdk/tm/haskell/src/SdkHelpers.hs +337 -0
- package/project/.sdk/tm/haskell/src/SdkRuntime.hs +1007 -0
- package/project/.sdk/tm/haskell/src/SdkTypes.hs +186 -0
- package/project/.sdk/tm/haskell/src/VoxgigStruct.hs +2299 -0
- package/project/.sdk/tm/haskell/src/Vregex.hs +237 -0
- package/project/.sdk/tm/haskell/src/feature/README.md +5 -0
- package/project/.sdk/tm/haskell/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/test/Harness.hs +276 -0
- package/project/.sdk/tm/haskell/test/Runner.hs +47 -0
- package/project/.sdk/tm/haskell/test/StructCorpus.hs +449 -0
- package/project/.sdk/tm/haskell/test/TCustomUtility.hs +38 -0
- package/project/.sdk/tm/haskell/test/TFeature.hs +794 -0
- package/project/.sdk/tm/haskell/test/TNetsim.hs +50 -0
- package/project/.sdk/tm/haskell/test/TPipeline.hs +334 -0
- package/project/.sdk/tm/haskell/test/TPrimaryUtility.hs +386 -0
- package/project/.sdk/tm/haskell/test/TestJson.hs +107 -0
- package/project/.sdk/tm/haskell/test/Testutil.hs +59 -0
- package/project/.sdk/tm/java/LICENSE +22 -0
- package/project/.sdk/tm/java/Makefile +44 -0
- package/project/.sdk/tm/java/VERSION +1 -0
- package/project/.sdk/tm/java/core/Context.java +269 -0
- package/project/.sdk/tm/java/core/Control.java +23 -0
- package/project/.sdk/tm/java/core/Entity.java +13 -0
- package/project/.sdk/tm/java/core/Feature.java +45 -0
- package/project/.sdk/tm/java/core/FeaturePlacement.java +13 -0
- package/project/.sdk/tm/java/core/Helpers.java +50 -0
- package/project/.sdk/tm/java/core/Operation.java +47 -0
- package/project/.sdk/tm/java/core/Point.java +90 -0
- package/project/.sdk/tm/java/core/Response.java +48 -0
- package/project/.sdk/tm/java/core/Result.java +64 -0
- package/project/.sdk/tm/java/core/SdkClient.java +280 -0
- package/project/.sdk/tm/java/core/SdkEntity.java +28 -0
- package/project/.sdk/tm/java/core/Spec.java +84 -0
- package/project/.sdk/tm/java/core/Utility.java +128 -0
- package/project/.sdk/tm/java/feature/AuditFeature.java +113 -0
- package/project/.sdk/tm/java/feature/BaseFeature.java +91 -0
- package/project/.sdk/tm/java/feature/CacheFeature.java +184 -0
- package/project/.sdk/tm/java/feature/ClienttrackFeature.java +103 -0
- package/project/.sdk/tm/java/feature/DebugFeature.java +163 -0
- package/project/.sdk/tm/java/feature/FeatureOptions.java +204 -0
- package/project/.sdk/tm/java/feature/IdempotencyFeature.java +115 -0
- package/project/.sdk/tm/java/feature/LogFeature.java +143 -0
- package/project/.sdk/tm/java/feature/MetricsFeature.java +115 -0
- package/project/.sdk/tm/java/feature/NetsimFeature.java +181 -0
- package/project/.sdk/tm/java/feature/PagingFeature.java +178 -0
- package/project/.sdk/tm/java/feature/ProxyFeature.java +122 -0
- package/project/.sdk/tm/java/feature/RatelimitFeature.java +83 -0
- package/project/.sdk/tm/java/feature/RbacFeature.java +132 -0
- package/project/.sdk/tm/java/feature/RetryFeature.java +156 -0
- package/project/.sdk/tm/java/feature/StreamingFeature.java +110 -0
- package/project/.sdk/tm/java/feature/TelemetryFeature.java +146 -0
- package/project/.sdk/tm/java/feature/TestFeature.java +333 -0
- package/project/.sdk/tm/java/feature/TimeoutFeature.java +89 -0
- package/project/.sdk/tm/java/src/feature/README.md +1 -0
- package/project/.sdk/tm/java/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/java/test/CustomUtilityTest.java +59 -0
- package/project/.sdk/tm/java/test/ExistsTest.java +16 -0
- package/project/.sdk/tm/java/test/FeatureHarness.java +448 -0
- package/project/.sdk/tm/java/test/FeatureTest.java +1018 -0
- package/project/.sdk/tm/java/test/NetsimTest.java +59 -0
- package/project/.sdk/tm/java/test/PipelineTest.java +618 -0
- package/project/.sdk/tm/java/test/PrimaryUtilityTest.java +864 -0
- package/project/.sdk/tm/java/test/RunnerSupport.java +545 -0
- package/project/.sdk/tm/java/test/StructCorpusTest.java +351 -0
- package/project/.sdk/tm/java/test/StructRunner.java +281 -0
- package/project/.sdk/tm/java/test/sdk-test-control.json +19 -0
- package/project/.sdk/tm/java/utility/Clean.java +12 -0
- package/project/.sdk/tm/java/utility/Done.java +29 -0
- package/project/.sdk/tm/java/utility/FeatureAdd.java +59 -0
- package/project/.sdk/tm/java/utility/FeatureHookUtil.java +72 -0
- package/project/.sdk/tm/java/utility/FeatureInit.java +35 -0
- package/project/.sdk/tm/java/utility/Fetcher.java +170 -0
- package/project/.sdk/tm/java/utility/Json.java +268 -0
- package/project/.sdk/tm/java/utility/MakeContext.java +14 -0
- package/project/.sdk/tm/java/utility/MakeError.java +81 -0
- package/project/.sdk/tm/java/utility/MakeFetchDef.java +48 -0
- package/project/.sdk/tm/java/utility/MakeOptions.java +168 -0
- package/project/.sdk/tm/java/utility/MakePoint.java +118 -0
- package/project/.sdk/tm/java/utility/MakeRequest.java +83 -0
- package/project/.sdk/tm/java/utility/MakeResponse.java +54 -0
- package/project/.sdk/tm/java/utility/MakeResult.java +68 -0
- package/project/.sdk/tm/java/utility/MakeSpec.java +69 -0
- package/project/.sdk/tm/java/utility/MakeUrl.java +67 -0
- package/project/.sdk/tm/java/utility/Param.java +74 -0
- package/project/.sdk/tm/java/utility/PrepareAuth.java +66 -0
- package/project/.sdk/tm/java/utility/PrepareBody.java +16 -0
- package/project/.sdk/tm/java/utility/PrepareHeaders.java +28 -0
- package/project/.sdk/tm/java/utility/PrepareMethod.java +28 -0
- package/project/.sdk/tm/java/utility/PrepareParams.java +50 -0
- package/project/.sdk/tm/java/utility/PreparePath.java +26 -0
- package/project/.sdk/tm/java/utility/PrepareQuery.java +54 -0
- package/project/.sdk/tm/java/utility/Register.java +41 -0
- package/project/.sdk/tm/java/utility/ResultBasic.java +36 -0
- package/project/.sdk/tm/java/utility/ResultBody.java +23 -0
- package/project/.sdk/tm/java/utility/ResultHeaders.java +36 -0
- package/project/.sdk/tm/java/utility/TransformRequest.java +35 -0
- package/project/.sdk/tm/java/utility/TransformResponse.java +52 -0
- package/project/.sdk/tm/java/utility/struct/Struct.java +3550 -0
- package/project/.sdk/tm/js/src/feature/audit/AuditFeature.js +96 -0
- package/project/.sdk/tm/js/src/feature/cache/CacheFeature.js +150 -0
- package/project/.sdk/tm/js/src/feature/clienttrack/ClienttrackFeature.js +104 -0
- package/project/.sdk/tm/js/src/feature/debug/DebugFeature.js +132 -0
- package/project/.sdk/tm/js/src/feature/idempotency/IdempotencyFeature.js +95 -0
- package/project/.sdk/tm/js/src/feature/metrics/MetricsFeature.js +102 -0
- package/project/.sdk/tm/js/src/feature/netsim/NetsimFeature.js +187 -0
- package/project/.sdk/tm/js/src/feature/paging/PagingFeature.js +139 -0
- package/project/.sdk/tm/js/src/feature/proxy/ProxyFeature.js +110 -0
- package/project/.sdk/tm/js/src/feature/ratelimit/RatelimitFeature.js +106 -0
- package/project/.sdk/tm/js/src/feature/rbac/RbacFeature.js +102 -0
- package/project/.sdk/tm/js/src/feature/retry/RetryFeature.js +158 -0
- package/project/.sdk/tm/js/src/feature/streaming/StreamingFeature.js +96 -0
- package/project/.sdk/tm/js/src/feature/telemetry/TelemetryFeature.js +128 -0
- package/project/.sdk/tm/js/src/feature/test/TestFeature.js +58 -1
- package/project/.sdk/tm/js/src/feature/timeout/TimeoutFeature.js +101 -0
- package/project/.sdk/tm/js/src/utility/FeatureHookUtility.js +4 -1
- package/project/.sdk/tm/js/src/utility/MakeErrorUtility.js +9 -0
- package/project/.sdk/tm/js/src/utility/MakeOptionsUtility.js +31 -1
- package/project/.sdk/tm/js/test/feature/harness.js +275 -0
- package/project/.sdk/tm/js/test/feature.test.js +772 -0
- package/project/.sdk/tm/js/test/netsim.test.js +43 -0
- package/project/.sdk/tm/js/test/pipeline.test.js +382 -0
- package/project/.sdk/tm/kotlin/LICENSE +22 -0
- package/project/.sdk/tm/kotlin/Makefile +43 -0
- package/project/.sdk/tm/kotlin/VERSION +1 -0
- package/project/.sdk/tm/kotlin/core/Context.kt +247 -0
- package/project/.sdk/tm/kotlin/core/Control.kt +21 -0
- package/project/.sdk/tm/kotlin/core/Helpers.kt +49 -0
- package/project/.sdk/tm/kotlin/core/Interfaces.kt +88 -0
- package/project/.sdk/tm/kotlin/core/Operation.kt +43 -0
- package/project/.sdk/tm/kotlin/core/Point.kt +83 -0
- package/project/.sdk/tm/kotlin/core/Response.kt +43 -0
- package/project/.sdk/tm/kotlin/core/Result.kt +61 -0
- package/project/.sdk/tm/kotlin/core/SdkClient.kt +266 -0
- package/project/.sdk/tm/kotlin/core/Spec.kt +76 -0
- package/project/.sdk/tm/kotlin/core/Utility.kt +93 -0
- package/project/.sdk/tm/kotlin/feature/AuditFeature.kt +96 -0
- package/project/.sdk/tm/kotlin/feature/BaseFeature.kt +57 -0
- package/project/.sdk/tm/kotlin/feature/CacheFeature.kt +167 -0
- package/project/.sdk/tm/kotlin/feature/ClienttrackFeature.kt +84 -0
- package/project/.sdk/tm/kotlin/feature/DebugFeature.kt +141 -0
- package/project/.sdk/tm/kotlin/feature/FeatureOptions.kt +191 -0
- package/project/.sdk/tm/kotlin/feature/IdempotencyFeature.kt +98 -0
- package/project/.sdk/tm/kotlin/feature/LogFeature.kt +92 -0
- package/project/.sdk/tm/kotlin/feature/MetricsFeature.kt +96 -0
- package/project/.sdk/tm/kotlin/feature/NetsimFeature.kt +162 -0
- package/project/.sdk/tm/kotlin/feature/PagingFeature.kt +143 -0
- package/project/.sdk/tm/kotlin/feature/ProxyFeature.kt +109 -0
- package/project/.sdk/tm/kotlin/feature/RatelimitFeature.kt +77 -0
- package/project/.sdk/tm/kotlin/feature/RbacFeature.kt +100 -0
- package/project/.sdk/tm/kotlin/feature/RetryFeature.kt +140 -0
- package/project/.sdk/tm/kotlin/feature/StreamingFeature.kt +90 -0
- package/project/.sdk/tm/kotlin/feature/TelemetryFeature.kt +118 -0
- package/project/.sdk/tm/kotlin/feature/TestFeature.kt +306 -0
- package/project/.sdk/tm/kotlin/feature/TimeoutFeature.kt +74 -0
- package/project/.sdk/tm/kotlin/src/feature/README.md +1 -0
- package/project/.sdk/tm/kotlin/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/test/CustomUtilityTest.kt +51 -0
- package/project/.sdk/tm/kotlin/test/ExistsTest.kt +15 -0
- package/project/.sdk/tm/kotlin/test/FeatureHarness.kt +380 -0
- package/project/.sdk/tm/kotlin/test/FeatureTest.kt +924 -0
- package/project/.sdk/tm/kotlin/test/NetsimTest.kt +50 -0
- package/project/.sdk/tm/kotlin/test/PipelineTest.kt +556 -0
- package/project/.sdk/tm/kotlin/test/PrimaryUtilityTest.kt +829 -0
- package/project/.sdk/tm/kotlin/test/RunnerSupport.kt +477 -0
- package/project/.sdk/tm/kotlin/test/StructCorpusTest.kt +297 -0
- package/project/.sdk/tm/kotlin/test/StructRunner.kt +177 -0
- package/project/.sdk/tm/kotlin/test/sdk-test-control.json +19 -0
- package/project/.sdk/tm/kotlin/utility/CoreUtil.kt +96 -0
- package/project/.sdk/tm/kotlin/utility/FeatureUtil.kt +121 -0
- package/project/.sdk/tm/kotlin/utility/Fetcher.kt +156 -0
- package/project/.sdk/tm/kotlin/utility/Json.kt +237 -0
- package/project/.sdk/tm/kotlin/utility/MakeOptions.kt +152 -0
- package/project/.sdk/tm/kotlin/utility/MakePoint.kt +108 -0
- package/project/.sdk/tm/kotlin/utility/MakeReqRes.kt +152 -0
- package/project/.sdk/tm/kotlin/utility/MakeSpecUrl.kt +142 -0
- package/project/.sdk/tm/kotlin/utility/Prepare.kt +236 -0
- package/project/.sdk/tm/kotlin/utility/Register.kt +39 -0
- package/project/.sdk/tm/kotlin/utility/ResultTransform.kt +109 -0
- package/project/.sdk/tm/kotlin/utility/struct/Struct.kt +2697 -0
- package/project/.sdk/tm/lua/feature/audit_feature.lua +132 -0
- package/project/.sdk/tm/lua/feature/cache_feature.lua +188 -0
- package/project/.sdk/tm/lua/feature/clienttrack_feature.lua +127 -0
- package/project/.sdk/tm/lua/feature/debug_feature.lua +194 -0
- package/project/.sdk/tm/lua/feature/idempotency_feature.lua +127 -0
- package/project/.sdk/tm/lua/feature/metrics_feature.lua +135 -0
- package/project/.sdk/tm/lua/feature/netsim_feature.lua +205 -0
- package/project/.sdk/tm/lua/feature/paging_feature.lua +180 -0
- package/project/.sdk/tm/lua/feature/proxy_feature.lua +147 -0
- package/project/.sdk/tm/lua/feature/ratelimit_feature.lua +120 -0
- package/project/.sdk/tm/lua/feature/rbac_feature.lua +141 -0
- package/project/.sdk/tm/lua/feature/retry_feature.lua +188 -0
- package/project/.sdk/tm/lua/feature/streaming_feature.lua +143 -0
- package/project/.sdk/tm/lua/feature/telemetry_feature.lua +159 -0
- package/project/.sdk/tm/lua/feature/test_feature.lua +85 -1
- package/project/.sdk/tm/lua/feature/timeout_feature.lua +94 -0
- package/project/.sdk/tm/lua/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/lua/test/feature_test.lua +1244 -0
- package/project/.sdk/tm/lua/test/netsim_test.lua +61 -0
- package/project/.sdk/tm/lua/test/pipeline_test.lua +613 -0
- package/project/.sdk/tm/lua/utility/feature_add.lua +28 -1
- package/project/.sdk/tm/lua/utility/make_error.lua +9 -0
- package/project/.sdk/tm/lua/utility/make_options.lua +58 -0
- package/project/.sdk/tm/lua/utility/make_point.lua +8 -1
- package/project/.sdk/tm/ocaml/LICENSE +21 -0
- package/project/.sdk/tm/ocaml/Makefile +58 -0
- package/project/.sdk/tm/ocaml/VERSION +1 -0
- package/project/.sdk/tm/ocaml/sdk_features.ml +1127 -0
- package/project/.sdk/tm/ocaml/sdk_helpers.ml +110 -0
- package/project/.sdk/tm/ocaml/sdk_runtime.ml +942 -0
- package/project/.sdk/tm/ocaml/sdk_types.ml +259 -0
- package/project/.sdk/tm/ocaml/src/feature/README.md +1 -0
- package/project/.sdk/tm/ocaml/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/test/custom_utility.ml +30 -0
- package/project/.sdk/tm/ocaml/test/harness.ml +198 -0
- package/project/.sdk/tm/ocaml/test/struct_corpus.ml +487 -0
- package/project/.sdk/tm/ocaml/test/t_feature.ml +533 -0
- package/project/.sdk/tm/ocaml/test/t_main.ml +5 -0
- package/project/.sdk/tm/ocaml/test/t_pipeline.ml +354 -0
- package/project/.sdk/tm/ocaml/test/testutil.ml +57 -0
- package/project/.sdk/tm/ocaml/utility/voxgig_struct.ml +1858 -0
- package/project/.sdk/tm/ocaml/utility/vregex.ml +254 -0
- package/project/.sdk/tm/perl/LICENSE +22 -0
- package/project/.sdk/tm/perl/Makefile +57 -0
- package/project/.sdk/tm/perl/core/context.pm +138 -0
- package/project/.sdk/tm/perl/core/control.pm +22 -0
- package/project/.sdk/tm/perl/core/error.pm +30 -0
- package/project/.sdk/tm/perl/core/helpers.pm +142 -0
- package/project/.sdk/tm/perl/core/operation.pm +47 -0
- package/project/.sdk/tm/perl/core/response.pm +40 -0
- package/project/.sdk/tm/perl/core/result.pm +45 -0
- package/project/.sdk/tm/perl/core/spec.pm +33 -0
- package/project/.sdk/tm/perl/core/utility_type.pm +32 -0
- package/project/.sdk/tm/perl/feature/audit_feature.pm +128 -0
- package/project/.sdk/tm/perl/feature/base_feature.pm +41 -0
- package/project/.sdk/tm/perl/feature/cache_feature.pm +168 -0
- package/project/.sdk/tm/perl/feature/clienttrack_feature.pm +126 -0
- package/project/.sdk/tm/perl/feature/debug_feature.pm +168 -0
- package/project/.sdk/tm/perl/feature/idempotency_feature.pm +104 -0
- package/project/.sdk/tm/perl/feature/log_feature.pm +77 -0
- package/project/.sdk/tm/perl/feature/metrics_feature.pm +124 -0
- package/project/.sdk/tm/perl/feature/netsim_feature.pm +215 -0
- package/project/.sdk/tm/perl/feature/paging_feature.pm +158 -0
- package/project/.sdk/tm/perl/feature/proxy_feature.pm +128 -0
- package/project/.sdk/tm/perl/feature/ratelimit_feature.pm +126 -0
- package/project/.sdk/tm/perl/feature/rbac_feature.pm +124 -0
- package/project/.sdk/tm/perl/feature/retry_feature.pm +153 -0
- package/project/.sdk/tm/perl/feature/streaming_feature.pm +112 -0
- package/project/.sdk/tm/perl/feature/telemetry_feature.pm +155 -0
- package/project/.sdk/tm/perl/feature/test_feature.pm +314 -0
- package/project/.sdk/tm/perl/feature/timeout_feature.pm +110 -0
- package/project/.sdk/tm/perl/lib/Voxgig/Struct.pm +2897 -0
- package/project/.sdk/tm/perl/src/feature/README.md +3 -0
- package/project/.sdk/tm/perl/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/perl/t/feature.t +1054 -0
- package/project/.sdk/tm/perl/t/netsim.t +55 -0
- package/project/.sdk/tm/perl/t/pipeline.t +632 -0
- package/project/.sdk/tm/perl/t/primary_utility.t +1023 -0
- package/project/.sdk/tm/perl/t/runner.pm +140 -0
- package/project/.sdk/tm/perl/t/sdk-test-control.json +19 -0
- package/project/.sdk/tm/perl/t/stream.t +132 -0
- package/project/.sdk/tm/perl/t/struct_runner.pm +275 -0
- package/project/.sdk/tm/perl/t/struct_utility.t +438 -0
- package/project/.sdk/tm/perl/utility/clean.pm +15 -0
- package/project/.sdk/tm/perl/utility/done.pm +34 -0
- package/project/.sdk/tm/perl/utility/feature_add.pm +47 -0
- package/project/.sdk/tm/perl/utility/feature_hook.pm +25 -0
- package/project/.sdk/tm/perl/utility/feature_init.pm +33 -0
- package/project/.sdk/tm/perl/utility/fetcher.pm +112 -0
- package/project/.sdk/tm/perl/utility/make_context.pm +22 -0
- package/project/.sdk/tm/perl/utility/make_error.pm +74 -0
- package/project/.sdk/tm/perl/utility/make_fetch_def.pm +46 -0
- package/project/.sdk/tm/perl/utility/make_options.pm +123 -0
- package/project/.sdk/tm/perl/utility/make_point.pm +104 -0
- package/project/.sdk/tm/perl/utility/make_request.pm +66 -0
- package/project/.sdk/tm/perl/utility/make_response.pm +38 -0
- package/project/.sdk/tm/perl/utility/make_result.pm +53 -0
- package/project/.sdk/tm/perl/utility/make_spec.pm +71 -0
- package/project/.sdk/tm/perl/utility/make_url.pm +63 -0
- package/project/.sdk/tm/perl/utility/param.pm +65 -0
- package/project/.sdk/tm/perl/utility/prepare_auth.pm +56 -0
- package/project/.sdk/tm/perl/utility/prepare_body.pm +17 -0
- package/project/.sdk/tm/perl/utility/prepare_headers.pm +27 -0
- package/project/.sdk/tm/perl/utility/prepare_method.pm +25 -0
- package/project/.sdk/tm/perl/utility/prepare_params.pm +41 -0
- package/project/.sdk/tm/perl/utility/prepare_path.pm +29 -0
- package/project/.sdk/tm/perl/utility/prepare_query.pm +40 -0
- package/project/.sdk/tm/perl/utility/register.pm +53 -0
- package/project/.sdk/tm/perl/utility/result_basic.pm +38 -0
- package/project/.sdk/tm/perl/utility/result_body.pm +28 -0
- package/project/.sdk/tm/perl/utility/result_headers.pm +32 -0
- package/project/.sdk/tm/perl/utility/transform_request.pm +30 -0
- package/project/.sdk/tm/perl/utility/transform_response.pm +43 -0
- package/project/.sdk/tm/php/core/Result.php +10 -0
- package/project/.sdk/tm/php/feature/AuditFeature.php +125 -0
- package/project/.sdk/tm/php/feature/BaseFeature.php +6 -0
- package/project/.sdk/tm/php/feature/CacheFeature.php +158 -0
- package/project/.sdk/tm/php/feature/ClienttrackFeature.php +126 -0
- package/project/.sdk/tm/php/feature/DebugFeature.php +167 -0
- package/project/.sdk/tm/php/feature/IdempotencyFeature.php +102 -0
- package/project/.sdk/tm/php/feature/MetricsFeature.php +122 -0
- package/project/.sdk/tm/php/feature/NetsimFeature.php +190 -0
- package/project/.sdk/tm/php/feature/PagingFeature.php +153 -0
- package/project/.sdk/tm/php/feature/ProxyFeature.php +136 -0
- package/project/.sdk/tm/php/feature/RatelimitFeature.php +116 -0
- package/project/.sdk/tm/php/feature/RbacFeature.php +133 -0
- package/project/.sdk/tm/php/feature/RetryFeature.php +159 -0
- package/project/.sdk/tm/php/feature/StreamingFeature.php +107 -0
- package/project/.sdk/tm/php/feature/TelemetryFeature.php +156 -0
- package/project/.sdk/tm/php/feature/TestFeature.php +80 -1
- package/project/.sdk/tm/php/feature/TimeoutFeature.php +95 -0
- package/project/.sdk/tm/php/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/php/test/FeatureTest.php +1259 -0
- package/project/.sdk/tm/php/test/NetsimTest.php +53 -0
- package/project/.sdk/tm/php/test/PipelineTest.php +674 -0
- package/project/.sdk/tm/php/utility/FeatureAdd.php +32 -1
- package/project/.sdk/tm/php/utility/MakeError.php +9 -0
- package/project/.sdk/tm/php/utility/MakeOptions.php +46 -0
- package/project/.sdk/tm/php/utility/MakePoint.php +7 -0
- package/project/.sdk/tm/py/core/context.py +4 -0
- package/project/.sdk/tm/py/core/control.py +3 -0
- package/project/.sdk/tm/py/feature/audit_feature.py +98 -0
- package/project/.sdk/tm/py/feature/cache_feature.py +138 -0
- package/project/.sdk/tm/py/feature/clienttrack_feature.py +97 -0
- package/project/.sdk/tm/py/feature/debug_feature.py +134 -0
- package/project/.sdk/tm/py/feature/idempotency_feature.py +89 -0
- package/project/.sdk/tm/py/feature/metrics_feature.py +93 -0
- package/project/.sdk/tm/py/feature/netsim_feature.py +170 -0
- package/project/.sdk/tm/py/feature/paging_feature.py +134 -0
- package/project/.sdk/tm/py/feature/proxy_feature.py +104 -0
- package/project/.sdk/tm/py/feature/ratelimit_feature.py +98 -0
- package/project/.sdk/tm/py/feature/rbac_feature.py +102 -0
- package/project/.sdk/tm/py/feature/retry_feature.py +142 -0
- package/project/.sdk/tm/py/feature/streaming_feature.py +84 -0
- package/project/.sdk/tm/py/feature/telemetry_feature.py +128 -0
- package/project/.sdk/tm/py/feature/test_feature.py +70 -1
- package/project/.sdk/tm/py/feature/timeout_feature.py +78 -0
- package/project/.sdk/tm/py/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/py/test/feature_harness.py +336 -0
- package/project/.sdk/tm/py/test/test_feature.py +807 -0
- package/project/.sdk/tm/py/test/test_netsim.py +52 -0
- package/project/.sdk/tm/py/test/test_pipeline.py +606 -0
- package/project/.sdk/tm/py/utility/feature_add.py +25 -1
- package/project/.sdk/tm/py/utility/make_error.py +8 -0
- package/project/.sdk/tm/py/utility/make_options.py +32 -0
- package/project/.sdk/tm/py/utility/make_point.py +8 -2
- package/project/.sdk/tm/py/utility/make_request.py +6 -2
- package/project/.sdk/tm/py/utility/make_response.py +6 -2
- package/project/.sdk/tm/py/utility/make_result.py +6 -2
- package/project/.sdk/tm/py/utility/make_spec.py +6 -2
- package/project/.sdk/tm/rb/core/context.rb +2 -0
- package/project/.sdk/tm/rb/core/control.rb +5 -1
- package/project/.sdk/tm/rb/core/result.rb +2 -1
- package/project/.sdk/tm/rb/feature/audit_feature.rb +103 -0
- package/project/.sdk/tm/rb/feature/base_feature.rb +5 -0
- package/project/.sdk/tm/rb/feature/cache_feature.rb +133 -0
- package/project/.sdk/tm/rb/feature/clienttrack_feature.rb +91 -0
- package/project/.sdk/tm/rb/feature/debug_feature.rb +138 -0
- package/project/.sdk/tm/rb/feature/idempotency_feature.rb +78 -0
- package/project/.sdk/tm/rb/feature/metrics_feature.rb +91 -0
- package/project/.sdk/tm/rb/feature/netsim_feature.rb +167 -0
- package/project/.sdk/tm/rb/feature/paging_feature.rb +120 -0
- package/project/.sdk/tm/rb/feature/proxy_feature.rb +93 -0
- package/project/.sdk/tm/rb/feature/ratelimit_feature.rb +95 -0
- package/project/.sdk/tm/rb/feature/rbac_feature.rb +96 -0
- package/project/.sdk/tm/rb/feature/retry_feature.rb +116 -0
- package/project/.sdk/tm/rb/feature/streaming_feature.rb +85 -0
- package/project/.sdk/tm/rb/feature/telemetry_feature.rb +122 -0
- package/project/.sdk/tm/rb/feature/test_feature.rb +65 -1
- package/project/.sdk/tm/rb/feature/timeout_feature.rb +74 -0
- package/project/.sdk/tm/rb/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/rb/test/feature_test.rb +1031 -0
- package/project/.sdk/tm/rb/test/netsim_test.rb +48 -0
- package/project/.sdk/tm/rb/test/pipeline_test.rb +584 -0
- package/project/.sdk/tm/rb/utility/feature_add.rb +28 -1
- package/project/.sdk/tm/rb/utility/make_error.rb +8 -0
- package/project/.sdk/tm/rb/utility/make_options.rb +35 -0
- package/project/.sdk/tm/rb/utility/make_point.rb +7 -1
- package/project/.sdk/tm/rust/LICENSE +22 -0
- package/project/.sdk/tm/rust/Makefile +41 -0
- package/project/.sdk/tm/rust/VERSION +1 -0
- package/project/.sdk/tm/rust/core/context.rs +320 -0
- package/project/.sdk/tm/rust/core/control.rs +37 -0
- package/project/.sdk/tm/rust/core/helpers.rs +168 -0
- package/project/.sdk/tm/rust/core/mod.rs +18 -0
- package/project/.sdk/tm/rust/core/operation.rs +35 -0
- package/project/.sdk/tm/rust/core/point.rs +68 -0
- package/project/.sdk/tm/rust/core/response.rs +38 -0
- package/project/.sdk/tm/rust/core/result.rs +90 -0
- package/project/.sdk/tm/rust/core/spec.rs +109 -0
- package/project/.sdk/tm/rust/core/types.rs +105 -0
- package/project/.sdk/tm/rust/core/utility_type.rs +184 -0
- package/project/.sdk/tm/rust/feature/audit.rs +138 -0
- package/project/.sdk/tm/rust/feature/base.rs +49 -0
- package/project/.sdk/tm/rust/feature/cache.rs +198 -0
- package/project/.sdk/tm/rust/feature/clienttrack.rs +154 -0
- package/project/.sdk/tm/rust/feature/debug.rs +188 -0
- package/project/.sdk/tm/rust/feature/idempotency.rs +139 -0
- package/project/.sdk/tm/rust/feature/log.rs +114 -0
- package/project/.sdk/tm/rust/feature/metrics.rs +136 -0
- package/project/.sdk/tm/rust/feature/mod.rs +24 -0
- package/project/.sdk/tm/rust/feature/netsim.rs +233 -0
- package/project/.sdk/tm/rust/feature/paging.rs +209 -0
- package/project/.sdk/tm/rust/feature/proxy.rs +165 -0
- package/project/.sdk/tm/rust/feature/ratelimit.rs +116 -0
- package/project/.sdk/tm/rust/feature/rbac.rs +152 -0
- package/project/.sdk/tm/rust/feature/retry.rs +190 -0
- package/project/.sdk/tm/rust/feature/streaming.rs +124 -0
- package/project/.sdk/tm/rust/feature/support.rs +145 -0
- package/project/.sdk/tm/rust/feature/telemetry.rs +185 -0
- package/project/.sdk/tm/rust/feature/test.rs +397 -0
- package/project/.sdk/tm/rust/feature/timeout.rs +103 -0
- package/project/.sdk/tm/rust/src/feature/README.md +1 -0
- package/project/.sdk/tm/rust/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/rust/tests/common/mod.rs +969 -0
- package/project/.sdk/tm/rust/tests/custom_utility_test.rs +69 -0
- package/project/.sdk/tm/rust/tests/feature_test.rs +1864 -0
- package/project/.sdk/tm/rust/tests/netsim_test.rs +78 -0
- package/project/.sdk/tm/rust/tests/pipeline_test.rs +699 -0
- package/project/.sdk/tm/rust/tests/primary_utility_test.rs +999 -0
- package/project/.sdk/tm/rust/tests/sdk-test-control.json +19 -0
- package/project/.sdk/tm/rust/tests/struct_runner/mod.rs +424 -0
- package/project/.sdk/tm/rust/tests/struct_utility_test.rs +733 -0
- package/project/.sdk/tm/rust/utility/clean.rs +13 -0
- package/project/.sdk/tm/rust/utility/done.rs +31 -0
- package/project/.sdk/tm/rust/utility/feature_add.rs +46 -0
- package/project/.sdk/tm/rust/utility/feature_hook.rs +18 -0
- package/project/.sdk/tm/rust/utility/feature_init.rs +26 -0
- package/project/.sdk/tm/rust/utility/fetcher.rs +142 -0
- package/project/.sdk/tm/rust/utility/jsonparse.rs +211 -0
- package/project/.sdk/tm/rust/utility/make_context.rs +7 -0
- package/project/.sdk/tm/rust/utility/make_error.rs +79 -0
- package/project/.sdk/tm/rust/utility/make_fetch_def.rs +42 -0
- package/project/.sdk/tm/rust/utility/make_options.rs +175 -0
- package/project/.sdk/tm/rust/utility/make_point.rs +116 -0
- package/project/.sdk/tm/rust/utility/make_request.rs +73 -0
- package/project/.sdk/tm/rust/utility/make_response.rs +56 -0
- package/project/.sdk/tm/rust/utility/make_result.rs +64 -0
- package/project/.sdk/tm/rust/utility/make_spec.rs +70 -0
- package/project/.sdk/tm/rust/utility/make_url.rs +83 -0
- package/project/.sdk/tm/rust/utility/mod.rs +36 -0
- package/project/.sdk/tm/rust/utility/param.rs +67 -0
- package/project/.sdk/tm/rust/utility/prepare_auth.rs +65 -0
- package/project/.sdk/tm/rust/utility/prepare_body.rs +14 -0
- package/project/.sdk/tm/rust/utility/prepare_headers.rs +23 -0
- package/project/.sdk/tm/rust/utility/prepare_method.rs +18 -0
- package/project/.sdk/tm/rust/utility/prepare_params.rs +33 -0
- package/project/.sdk/tm/rust/utility/prepare_path.rs +17 -0
- package/project/.sdk/tm/rust/utility/prepare_query.rs +47 -0
- package/project/.sdk/tm/rust/utility/result_basic.rs +35 -0
- package/project/.sdk/tm/rust/utility/result_body.rs +26 -0
- package/project/.sdk/tm/rust/utility/result_headers.rs +24 -0
- package/project/.sdk/tm/rust/utility/transform_request.rs +31 -0
- package/project/.sdk/tm/rust/utility/transform_response.rs +55 -0
- package/project/.sdk/tm/rust/utility/voxgigstruct/consts.rs +122 -0
- package/project/.sdk/tm/rust/utility/voxgigstruct/major.rs +2688 -0
- package/project/.sdk/tm/rust/utility/voxgigstruct/mini.rs +1081 -0
- package/project/.sdk/tm/rust/utility/voxgigstruct/mod.rs +70 -0
- package/project/.sdk/tm/rust/utility/voxgigstruct/ordered_map.rs +159 -0
- package/project/.sdk/tm/rust/utility/voxgigstruct/re.rs +1229 -0
- package/project/.sdk/tm/rust/utility/voxgigstruct/value.rs +372 -0
- package/project/.sdk/tm/scala/LICENSE +22 -0
- package/project/.sdk/tm/scala/Makefile +24 -0
- package/project/.sdk/tm/scala/VERSION +1 -0
- package/project/.sdk/tm/scala/core/Context.scala +160 -0
- package/project/.sdk/tm/scala/core/Contracts.scala +76 -0
- package/project/.sdk/tm/scala/core/Control.scala +23 -0
- package/project/.sdk/tm/scala/core/Helpers.scala +38 -0
- package/project/.sdk/tm/scala/core/Operation.scala +37 -0
- package/project/.sdk/tm/scala/core/Point.scala +44 -0
- package/project/.sdk/tm/scala/core/Response.scala +37 -0
- package/project/.sdk/tm/scala/core/Result.scala +42 -0
- package/project/.sdk/tm/scala/core/SdkClient.scala +220 -0
- package/project/.sdk/tm/scala/core/SdkError.scala +15 -0
- package/project/.sdk/tm/scala/core/Spec.scala +39 -0
- package/project/.sdk/tm/scala/core/Types.scala +31 -0
- package/project/.sdk/tm/scala/core/Utility.scala +85 -0
- package/project/.sdk/tm/scala/feature/AuditFeature.scala +101 -0
- package/project/.sdk/tm/scala/feature/BaseFeature.scala +21 -0
- package/project/.sdk/tm/scala/feature/CacheFeature.scala +181 -0
- package/project/.sdk/tm/scala/feature/ClienttrackFeature.scala +93 -0
- package/project/.sdk/tm/scala/feature/DebugFeature.scala +149 -0
- package/project/.sdk/tm/scala/feature/FeatureOptions.scala +111 -0
- package/project/.sdk/tm/scala/feature/IdempotencyFeature.scala +106 -0
- package/project/.sdk/tm/scala/feature/LogFeature.scala +64 -0
- package/project/.sdk/tm/scala/feature/MetricsFeature.scala +105 -0
- package/project/.sdk/tm/scala/feature/NetsimFeature.scala +134 -0
- package/project/.sdk/tm/scala/feature/PagingFeature.scala +170 -0
- package/project/.sdk/tm/scala/feature/ProxyFeature.scala +113 -0
- package/project/.sdk/tm/scala/feature/RatelimitFeature.scala +58 -0
- package/project/.sdk/tm/scala/feature/RbacFeature.scala +90 -0
- package/project/.sdk/tm/scala/feature/RetryFeature.scala +104 -0
- package/project/.sdk/tm/scala/feature/StreamingFeature.scala +98 -0
- package/project/.sdk/tm/scala/feature/TelemetryFeature.scala +129 -0
- package/project/.sdk/tm/scala/feature/TestFeature.scala +253 -0
- package/project/.sdk/tm/scala/feature/TimeoutFeature.scala +57 -0
- package/project/.sdk/tm/scala/sdktest/SdkTestMain.scala +766 -0
- package/project/.sdk/tm/scala/sdktest/SdkTestSupport.scala +93 -0
- package/project/.sdk/tm/scala/sdktest/StructCorpus.scala +0 -0
- package/project/.sdk/tm/scala/sdktest/sdk-test-control.json +19 -0
- package/project/.sdk/tm/scala/src/feature/README.md +1 -0
- package/project/.sdk/tm/scala/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/scala/utility/FeatureUtils.scala +68 -0
- package/project/.sdk/tm/scala/utility/Fetcher.scala +129 -0
- package/project/.sdk/tm/scala/utility/Json.java +268 -0
- package/project/.sdk/tm/scala/utility/Make.scala +463 -0
- package/project/.sdk/tm/scala/utility/MakeSpec.scala +49 -0
- package/project/.sdk/tm/scala/utility/Misc.scala +68 -0
- package/project/.sdk/tm/scala/utility/Prepare.scala +142 -0
- package/project/.sdk/tm/scala/utility/Register.scala +38 -0
- package/project/.sdk/tm/scala/utility/Results.scala +63 -0
- package/project/.sdk/tm/scala/utility/StructUtility.scala +29 -0
- package/project/.sdk/tm/scala/utility/Transform.scala +52 -0
- package/project/.sdk/tm/scala/utility/struct/Struct.java +3550 -0
- package/project/.sdk/tm/scala/utility/struct/voxgig_struct.scala +1833 -0
- package/project/.sdk/tm/swift/LICENSE +22 -0
- package/project/.sdk/tm/swift/Makefile +41 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Constants.swift +113 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Inject.swift +260 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Injection.swift +111 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/JSON.swift +327 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Merge.swift +55 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Minor.swift +601 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/OrderedDictionary.swift +79 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Path.swift +157 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Select.swift +259 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Transform.swift +462 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Validate.swift +378 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Value.swift +184 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Walk.swift +44 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Context.swift +161 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Control.swift +20 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Operation.swift +27 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Point.swift +37 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Response.swift +29 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Result.swift +41 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Spec.swift +36 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Support.swift +98 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Types.swift +25 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Utility.swift +81 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/AuditFeature.swift +99 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/BaseFeature.swift +60 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/CacheFeature.swift +164 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/ClienttrackFeature.swift +95 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/DebugFeature.swift +126 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/FeatureOptions.swift +96 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/IdempotencyFeature.swift +80 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/LogFeature.swift +69 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/MetricsFeature.swift +103 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/NetsimFeature.swift +177 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/PagingFeature.swift +154 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/ProxyFeature.swift +122 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/RatelimitFeature.swift +79 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/RbacFeature.swift +103 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/RetryFeature.swift +150 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/StreamingFeature.swift +82 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TelemetryFeature.swift +119 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TestFeature.swift +257 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TimeoutFeature.swift +83 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Feature.swift +56 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Fetcher.swift +107 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Make.swift +321 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeError.swift +56 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeOptions.swift +151 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Prepare.swift +157 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Register.swift +40 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/ResultUtil.swift +107 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/CustomUtilityTest.swift +44 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/ExistsTest.swift +12 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/FeatureTest.swift +1049 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/NetsimTest.swift +50 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/PipelineTest.swift +398 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/PrimaryUtilityTest.swift +750 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/Runner.swift +237 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/StructUtilityTest.swift +523 -0
- package/project/.sdk/tm/swift/VERSION +1 -0
- package/project/.sdk/tm/swift/src/feature/README.md +6 -0
- package/project/.sdk/tm/swift/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/ts/Makefile +6 -1
- package/project/.sdk/tm/ts/src/feature/audit/AuditFeature.ts +98 -0
- package/project/.sdk/tm/ts/src/feature/cache/CacheFeature.ts +152 -0
- package/project/.sdk/tm/ts/src/feature/clienttrack/ClienttrackFeature.ts +106 -0
- package/project/.sdk/tm/ts/src/feature/debug/DebugFeature.ts +134 -0
- package/project/.sdk/tm/ts/src/feature/idempotency/IdempotencyFeature.ts +97 -0
- package/project/.sdk/tm/ts/src/feature/metrics/MetricsFeature.ts +104 -0
- package/project/.sdk/tm/ts/src/feature/netsim/NetsimFeature.ts +189 -0
- package/project/.sdk/tm/ts/src/feature/paging/PagingFeature.ts +141 -0
- package/project/.sdk/tm/ts/src/feature/proxy/ProxyFeature.ts +112 -0
- package/project/.sdk/tm/ts/src/feature/ratelimit/RatelimitFeature.ts +108 -0
- package/project/.sdk/tm/ts/src/feature/rbac/RbacFeature.ts +104 -0
- package/project/.sdk/tm/ts/src/feature/retry/RetryFeature.ts +160 -0
- package/project/.sdk/tm/ts/src/feature/streaming/StreamingFeature.ts +98 -0
- package/project/.sdk/tm/ts/src/feature/telemetry/TelemetryFeature.ts +130 -0
- package/project/.sdk/tm/ts/src/feature/test/TestFeature.ts +58 -1
- package/project/.sdk/tm/ts/src/feature/timeout/TimeoutFeature.ts +103 -0
- package/project/.sdk/tm/ts/src/utility/FeatureHookUtility.ts +4 -1
- package/project/.sdk/tm/ts/src/utility/MakeErrorUtility.ts +9 -0
- package/project/.sdk/tm/ts/src/utility/MakeOptionsUtility.ts +31 -1
- package/project/.sdk/tm/ts/test/feature/harness.ts +293 -0
- package/project/.sdk/tm/ts/test/feature.test.ts +772 -0
- package/project/.sdk/tm/ts/test/netsim.test.ts +43 -0
- package/project/.sdk/tm/ts/test/pipeline.test.ts +382 -0
- package/project/.sdk/tm/zig/LICENSE +21 -0
- package/project/.sdk/tm/zig/Makefile +31 -0
- package/project/.sdk/tm/zig/VERSION +1 -0
- package/project/.sdk/tm/zig/build.zig +58 -0
- package/project/.sdk/tm/zig/build.zig.zon +11 -0
- package/project/.sdk/tm/zig/core/context.zig +258 -0
- package/project/.sdk/tm/zig/core/control.zig +26 -0
- package/project/.sdk/tm/zig/core/error.zig +28 -0
- package/project/.sdk/tm/zig/core/helpers.zig +326 -0
- package/project/.sdk/tm/zig/core/mem.zig +20 -0
- package/project/.sdk/tm/zig/core/operation.zig +34 -0
- package/project/.sdk/tm/zig/core/point.zig +63 -0
- package/project/.sdk/tm/zig/core/response.zig +32 -0
- package/project/.sdk/tm/zig/core/result.zig +73 -0
- package/project/.sdk/tm/zig/core/spec.zig +68 -0
- package/project/.sdk/tm/zig/core/types.zig +101 -0
- package/project/.sdk/tm/zig/core/utility.zig +1115 -0
- package/project/.sdk/tm/zig/feature/audit.zig +131 -0
- package/project/.sdk/tm/zig/feature/base.zig +52 -0
- package/project/.sdk/tm/zig/feature/cache.zig +216 -0
- package/project/.sdk/tm/zig/feature/clienttrack.zig +129 -0
- package/project/.sdk/tm/zig/feature/debug.zig +191 -0
- package/project/.sdk/tm/zig/feature/idempotency.zig +121 -0
- package/project/.sdk/tm/zig/feature/log.zig +93 -0
- package/project/.sdk/tm/zig/feature/metrics.zig +145 -0
- package/project/.sdk/tm/zig/feature/netsim.zig +186 -0
- package/project/.sdk/tm/zig/feature/paging.zig +201 -0
- package/project/.sdk/tm/zig/feature/proxy.zig +180 -0
- package/project/.sdk/tm/zig/feature/ratelimit.zig +123 -0
- package/project/.sdk/tm/zig/feature/rbac.zig +126 -0
- package/project/.sdk/tm/zig/feature/retry.zig +167 -0
- package/project/.sdk/tm/zig/feature/streaming.zig +127 -0
- package/project/.sdk/tm/zig/feature/support.zig +128 -0
- package/project/.sdk/tm/zig/feature/telemetry.zig +165 -0
- package/project/.sdk/tm/zig/feature/test.zig +315 -0
- package/project/.sdk/tm/zig/feature/timeout.zig +105 -0
- package/project/.sdk/tm/zig/root.zig +74 -0
- package/project/.sdk/tm/zig/src/feature/README.md +1 -0
- package/project/.sdk/tm/zig/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/zig/test/feature_test.zig +1045 -0
- package/project/.sdk/tm/zig/test/fh.zig +531 -0
- package/project/.sdk/tm/zig/test/gotcha_test.zig +230 -0
- package/project/.sdk/tm/zig/test/pipeline_test.zig +493 -0
- package/project/.sdk/tm/zig/test/primary_utility_test.zig +346 -0
- package/project/.sdk/tm/zig/test/struct_corpus.zig +1145 -0
- package/project/.sdk/tm/zig/test/struct_runner.zig +226 -0
- package/project/.sdk/tm/zig/utility/jsonparse.zig +13 -0
- package/project/.sdk/tm/zig/utility/voxgigstruct/regex.zig +779 -0
- package/project/.sdk/tm/zig/utility/voxgigstruct/struct.zig +4400 -0
- package/src/cmp/AgentGuide.ts +150 -0
- package/src/cmp/AgentGuideContent.ts +286 -0
- package/src/cmp/AgentGuideFeature.ts +107 -0
- package/src/cmp/AgentGuideTop.ts +121 -0
- package/src/cmp/ReadmeTop.ts +16 -3
- package/src/sdkgen.ts +6 -0
|
@@ -0,0 +1,1244 @@
|
|
|
1
|
+
-- ProjectName SDK feature test
|
|
2
|
+
--
|
|
3
|
+
-- Behavioural + coverage tests for the enterprise features shipped with
|
|
4
|
+
-- this SDK. Each block runs only when its feature is present (see
|
|
5
|
+
-- has_feature), driving the real feature module through an offline
|
|
6
|
+
-- harness pipeline against a simulated network. The harness is a faithful
|
|
7
|
+
-- miniature of the real operation pipeline: the same hook order,
|
|
8
|
+
-- short-circuit rules and fetcher-chain (res, err) conventions as the
|
|
9
|
+
-- generated entity code, but with no live server and no API-specific
|
|
10
|
+
-- fixtures.
|
|
11
|
+
|
|
12
|
+
local vs = require("utility.struct.struct")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
-- True when this SDK was generated with the named feature.
|
|
16
|
+
local function has_feature(name)
|
|
17
|
+
local ok = pcall(require, "feature." .. name .. "_feature")
|
|
18
|
+
return ok
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
-- Build a feature instance by name: prefer the generated `features`
|
|
23
|
+
-- factory, falling back to the feature module directly (so this test also
|
|
24
|
+
-- runs against the raw templates).
|
|
25
|
+
local function make_feature(name)
|
|
26
|
+
local ok, factory = pcall(require, "features")
|
|
27
|
+
if ok and type(factory) == "table" and type(factory[name]) == "function" then
|
|
28
|
+
return factory[name]()
|
|
29
|
+
end
|
|
30
|
+
local mod = require("feature." .. name .. "_feature")
|
|
31
|
+
return mod.new()
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
-- A deterministic virtual clock: `now()` advances only when `sleep(ms)`
|
|
36
|
+
-- is called, so timing-based features can be asserted without real
|
|
37
|
+
-- delays.
|
|
38
|
+
local function make_clock(start)
|
|
39
|
+
local t = start or 0
|
|
40
|
+
return {
|
|
41
|
+
now = function() return t end,
|
|
42
|
+
sleep = function(ms) t = t + (ms or 0) end,
|
|
43
|
+
advance = function(ms) t = t + (ms or 0) end,
|
|
44
|
+
time = function() return t end,
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
local function make_err(code, msg)
|
|
50
|
+
return { is_sdk_error = true, code = code, msg = msg }
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
local function is_err(v)
|
|
54
|
+
return type(v) == "table" and v.is_sdk_error == true
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
-- Build a transport-shaped response the pipeline understands (plain
|
|
59
|
+
-- lowercase header table, re-readable json body).
|
|
60
|
+
local function make_response(status, data, headers)
|
|
61
|
+
local h = {}
|
|
62
|
+
for k, v in pairs(headers or {}) do
|
|
63
|
+
h[string.lower(k)] = v
|
|
64
|
+
end
|
|
65
|
+
return {
|
|
66
|
+
status = status,
|
|
67
|
+
statusText = status < 400 and "OK" or "ERR",
|
|
68
|
+
body = "not-used",
|
|
69
|
+
json = function() return data end,
|
|
70
|
+
headers = h,
|
|
71
|
+
}
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
local function default_server(fctx, fullurl, fetchdef)
|
|
76
|
+
local method = string.upper(fetchdef["method"] or "GET")
|
|
77
|
+
if method == "GET" then
|
|
78
|
+
return make_response(200, { ok = true, method = method })
|
|
79
|
+
end
|
|
80
|
+
return make_response(200, { ok = true, method = method, echo = fetchdef["body"] })
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
-- A server that records every call; `reply(n, fetchdef)` may customise
|
|
85
|
+
-- the n-th response.
|
|
86
|
+
local function recording_server(reply)
|
|
87
|
+
local calls = {}
|
|
88
|
+
local function server(fctx, fullurl, fetchdef)
|
|
89
|
+
table.insert(calls, { url = fullurl, fetchdef = fetchdef })
|
|
90
|
+
if reply ~= nil then
|
|
91
|
+
return reply(#calls, fetchdef)
|
|
92
|
+
end
|
|
93
|
+
return make_response(200, { ok = true, n = #calls })
|
|
94
|
+
end
|
|
95
|
+
return { server = server, calls = calls }
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
local function default_method(opname)
|
|
100
|
+
if opname == "create" then return "POST" end
|
|
101
|
+
if opname == "update" then return "PATCH" end
|
|
102
|
+
if opname == "remove" then return "DELETE" end
|
|
103
|
+
return "GET"
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
-- Construct a fake client wired with the given features (in init order)
|
|
108
|
+
-- and a mini operation pipeline. `spec.features` is a list of
|
|
109
|
+
-- { name = ..., options = ... }.
|
|
110
|
+
local function make_client(spec)
|
|
111
|
+
local base = spec.base or "http://api.test"
|
|
112
|
+
local server = spec.server or default_server
|
|
113
|
+
|
|
114
|
+
local utility = { fetcher = server }
|
|
115
|
+
|
|
116
|
+
local client = {
|
|
117
|
+
mode = "test",
|
|
118
|
+
features = {},
|
|
119
|
+
_options = { base = base, headers = spec.headers or {}, feature = {} },
|
|
120
|
+
}
|
|
121
|
+
function client:options_map()
|
|
122
|
+
local out = vs.clone(self._options)
|
|
123
|
+
if type(out) == "table" then
|
|
124
|
+
return out
|
|
125
|
+
end
|
|
126
|
+
return {}
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
local idseq = 0
|
|
130
|
+
local function make_ctx(over)
|
|
131
|
+
idseq = idseq + 1
|
|
132
|
+
local ctx = {
|
|
133
|
+
id = "C" .. idseq,
|
|
134
|
+
client = client,
|
|
135
|
+
utility = utility,
|
|
136
|
+
out = {},
|
|
137
|
+
ctrl = over.ctrl or {},
|
|
138
|
+
meta = {},
|
|
139
|
+
op = over.op,
|
|
140
|
+
entity = over.entity,
|
|
141
|
+
}
|
|
142
|
+
function ctx:make_error(code, msg)
|
|
143
|
+
return make_err(code, msg)
|
|
144
|
+
end
|
|
145
|
+
return ctx
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
local function feature_hook(ctx, name)
|
|
149
|
+
for _, f in ipairs(client.features) do
|
|
150
|
+
local fn = f[name]
|
|
151
|
+
if type(fn) == "function" then
|
|
152
|
+
fn(f, ctx)
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
local rootctx = make_ctx({ op = { name = "root", entity = "_" } })
|
|
158
|
+
|
|
159
|
+
-- Instantiate + init the requested features (skipping any not present
|
|
160
|
+
-- in this SDK). PostConstruct fires via ready(), as in the real client.
|
|
161
|
+
for _, fspec in ipairs(spec.features) do
|
|
162
|
+
if has_feature(fspec.name) then
|
|
163
|
+
local f = make_feature(fspec.name)
|
|
164
|
+
local fopts = { active = true }
|
|
165
|
+
for k, v in pairs(fspec.options or {}) do
|
|
166
|
+
fopts[k] = v
|
|
167
|
+
end
|
|
168
|
+
client._options.feature[f:get_name()] = fopts
|
|
169
|
+
f:init(rootctx, fopts)
|
|
170
|
+
table.insert(client.features, f)
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
local function build_url(sp)
|
|
175
|
+
local q = sp.query or {}
|
|
176
|
+
local keys = {}
|
|
177
|
+
for k, v in pairs(q) do
|
|
178
|
+
if v ~= nil then
|
|
179
|
+
table.insert(keys, k)
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
table.sort(keys)
|
|
183
|
+
local parts = {}
|
|
184
|
+
for _, k in ipairs(keys) do
|
|
185
|
+
table.insert(parts, vs.escurl(tostring(k)) .. "=" .. vs.escurl(tostring(q[k])))
|
|
186
|
+
end
|
|
187
|
+
local qs = table.concat(parts, "&")
|
|
188
|
+
if qs ~= "" then
|
|
189
|
+
return sp.base .. (sp.path or "") .. "?" .. qs
|
|
190
|
+
end
|
|
191
|
+
return sp.base .. (sp.path or "")
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
local function populate_result(ctx, response, rerr)
|
|
195
|
+
local result = { ok = false, status = -1, statusText = "", headers = {} }
|
|
196
|
+
ctx.result = result
|
|
197
|
+
|
|
198
|
+
if rerr ~= nil then
|
|
199
|
+
result.err = rerr
|
|
200
|
+
return
|
|
201
|
+
end
|
|
202
|
+
if response == nil then
|
|
203
|
+
result.err = make_err("no_response", "response: nil")
|
|
204
|
+
return
|
|
205
|
+
end
|
|
206
|
+
result.status = response["status"]
|
|
207
|
+
result.statusText = response["statusText"]
|
|
208
|
+
if type(response["headers"]) == "table" then
|
|
209
|
+
for k, v in pairs(response["headers"]) do
|
|
210
|
+
result.headers[k] = v
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
if type(response["json"]) == "function" then
|
|
214
|
+
local ok, body = pcall(response["json"])
|
|
215
|
+
if ok then
|
|
216
|
+
result.body = body
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
result.resdata = result.body
|
|
220
|
+
if type(result.status) == "number" and result.status >= 400 then
|
|
221
|
+
result.err = make_err("request_status",
|
|
222
|
+
"request: " .. result.status .. ": " .. tostring(result.statusText))
|
|
223
|
+
end
|
|
224
|
+
if result.err == nil then
|
|
225
|
+
result.ok = true
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
local h = {
|
|
230
|
+
client = client,
|
|
231
|
+
utility = utility,
|
|
232
|
+
rootctx = rootctx,
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
-- Fire PostConstruct (the real client does this at construction).
|
|
236
|
+
function h.ready()
|
|
237
|
+
feature_hook(rootctx, "PostConstruct")
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
function h.feature(name)
|
|
241
|
+
for _, f in ipairs(client.features) do
|
|
242
|
+
if f:get_name() == name then
|
|
243
|
+
return f
|
|
244
|
+
end
|
|
245
|
+
end
|
|
246
|
+
return nil
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
-- Run one operation through the mini pipeline (mirrors the generated
|
|
250
|
+
-- _run_op: hook, short-circuit, make*, hook, ...).
|
|
251
|
+
function h.op(o)
|
|
252
|
+
o = o or {}
|
|
253
|
+
local entity = o.entity or "widget"
|
|
254
|
+
local opname = o.op or "load"
|
|
255
|
+
local method = o.method or default_method(opname)
|
|
256
|
+
|
|
257
|
+
local ctx = make_ctx({
|
|
258
|
+
op = { name = opname, entity = entity },
|
|
259
|
+
entity = { name = entity },
|
|
260
|
+
ctrl = o.ctrl or {},
|
|
261
|
+
})
|
|
262
|
+
|
|
263
|
+
feature_hook(ctx, "PostConstructEntity")
|
|
264
|
+
|
|
265
|
+
feature_hook(ctx, "PrePoint")
|
|
266
|
+
if is_err(ctx.out["point"]) then
|
|
267
|
+
ctx.ctrl.err = ctx.out["point"]
|
|
268
|
+
feature_hook(ctx, "PreUnexpected")
|
|
269
|
+
return { ok = false, error = ctx.out["point"], result = ctx.result, ctx = ctx }
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
feature_hook(ctx, "PreSpec")
|
|
273
|
+
if ctx.out["spec"] ~= nil then
|
|
274
|
+
ctx.spec = ctx.out["spec"]
|
|
275
|
+
else
|
|
276
|
+
local headers = {}
|
|
277
|
+
for k, v in pairs(spec.headers or {}) do
|
|
278
|
+
headers[k] = v
|
|
279
|
+
end
|
|
280
|
+
for k, v in pairs(o.headers or {}) do
|
|
281
|
+
headers[k] = v
|
|
282
|
+
end
|
|
283
|
+
local query = {}
|
|
284
|
+
for k, v in pairs(o.query or {}) do
|
|
285
|
+
query[k] = v
|
|
286
|
+
end
|
|
287
|
+
ctx.spec = {
|
|
288
|
+
method = method,
|
|
289
|
+
base = base,
|
|
290
|
+
path = o.path or ("/" .. entity),
|
|
291
|
+
params = {},
|
|
292
|
+
headers = headers,
|
|
293
|
+
query = query,
|
|
294
|
+
body = o.body,
|
|
295
|
+
step = "start",
|
|
296
|
+
}
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
feature_hook(ctx, "PreRequest")
|
|
300
|
+
ctx.spec.url = build_url(ctx.spec)
|
|
301
|
+
|
|
302
|
+
local response, rerr
|
|
303
|
+
if ctx.out["request"] ~= nil then
|
|
304
|
+
response = ctx.out["request"]
|
|
305
|
+
else
|
|
306
|
+
local fetchdef = {
|
|
307
|
+
url = ctx.spec.url,
|
|
308
|
+
method = ctx.spec.method,
|
|
309
|
+
headers = ctx.spec.headers,
|
|
310
|
+
body = ctx.spec.body,
|
|
311
|
+
}
|
|
312
|
+
response, rerr = utility.fetcher(ctx, fetchdef.url, fetchdef)
|
|
313
|
+
end
|
|
314
|
+
ctx.response = response
|
|
315
|
+
|
|
316
|
+
feature_hook(ctx, "PreResponse")
|
|
317
|
+
populate_result(ctx, response, rerr)
|
|
318
|
+
feature_hook(ctx, "PreResult")
|
|
319
|
+
feature_hook(ctx, "PreDone")
|
|
320
|
+
|
|
321
|
+
if ctx.result ~= nil and ctx.result.ok then
|
|
322
|
+
return { ok = true, data = ctx.result.resdata, result = ctx.result, ctx = ctx }
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
local err = (ctx.result ~= nil and ctx.result.err) or
|
|
326
|
+
make_err("op_failed", "operation failed")
|
|
327
|
+
ctx.ctrl.err = err
|
|
328
|
+
feature_hook(ctx, "PreUnexpected")
|
|
329
|
+
return { ok = false, error = err, result = ctx.result, ctx = ctx }
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
return h
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
describe("feature", function()
|
|
337
|
+
|
|
338
|
+
it("at least the test feature is present", function()
|
|
339
|
+
assert.is_true(has_feature("test"))
|
|
340
|
+
end)
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
-- netsim --------------------------------------------------------------
|
|
344
|
+
if has_feature("netsim") then describe("netsim", function()
|
|
345
|
+
|
|
346
|
+
it("fixed latency then delegate", function()
|
|
347
|
+
local clock = make_clock()
|
|
348
|
+
local h = make_client({ features = {
|
|
349
|
+
{ name = "netsim", options = { latency = 250, sleep = clock.sleep } },
|
|
350
|
+
} })
|
|
351
|
+
local res = h.op({ op = "load", ctrl = { explain = {} } })
|
|
352
|
+
assert.is_true(res.ok)
|
|
353
|
+
assert.are.equal(250, clock.time())
|
|
354
|
+
assert.are.equal(1, h.client._netsim.calls)
|
|
355
|
+
end)
|
|
356
|
+
|
|
357
|
+
it("ranged latency samples within [min,max)", function()
|
|
358
|
+
local clock = make_clock()
|
|
359
|
+
local h = make_client({ features = {
|
|
360
|
+
{ name = "netsim", options = {
|
|
361
|
+
latency = { min = 100, max = 300 }, seed = 7, sleep = clock.sleep } },
|
|
362
|
+
} })
|
|
363
|
+
h.op({ op = "load" })
|
|
364
|
+
assert.is_true(clock.time() >= 100 and clock.time() < 300,
|
|
365
|
+
"latency in range, got " .. clock.time())
|
|
366
|
+
end)
|
|
367
|
+
|
|
368
|
+
it("equal min/max latency is exact", function()
|
|
369
|
+
local clock = make_clock()
|
|
370
|
+
local h = make_client({ features = {
|
|
371
|
+
{ name = "netsim", options = {
|
|
372
|
+
latency = { min = 50, max = 50 }, sleep = clock.sleep } },
|
|
373
|
+
} })
|
|
374
|
+
h.op({ op = "load" })
|
|
375
|
+
assert.are.equal(50, clock.time())
|
|
376
|
+
end)
|
|
377
|
+
|
|
378
|
+
it("failTimes returns a retryable status", function()
|
|
379
|
+
local h = make_client({ features = {
|
|
380
|
+
{ name = "netsim", options = { failTimes = 2, failStatus = 503 } },
|
|
381
|
+
} })
|
|
382
|
+
assert.are.equal(503, h.op({ op = "load" }).result.status)
|
|
383
|
+
assert.are.equal(503, h.op({ op = "load" }).result.status)
|
|
384
|
+
assert.is_true(h.op({ op = "load" }).ok)
|
|
385
|
+
end)
|
|
386
|
+
|
|
387
|
+
it("failEvery fails every Nth call", function()
|
|
388
|
+
local h = make_client({ features = {
|
|
389
|
+
{ name = "netsim", options = { failEvery = 2 } },
|
|
390
|
+
} })
|
|
391
|
+
assert.is_true(h.op({ op = "load" }).ok)
|
|
392
|
+
assert.is_false(h.op({ op = "load" }).ok)
|
|
393
|
+
assert.is_true(h.op({ op = "load" }).ok)
|
|
394
|
+
end)
|
|
395
|
+
|
|
396
|
+
it("failRate with a seed is deterministic", function()
|
|
397
|
+
local h = make_client({ features = {
|
|
398
|
+
{ name = "netsim", options = { failRate = 1, seed = 5 } },
|
|
399
|
+
} })
|
|
400
|
+
assert.is_false(h.op({ op = "load" }).ok)
|
|
401
|
+
end)
|
|
402
|
+
|
|
403
|
+
it("errorTimes returns a connection error", function()
|
|
404
|
+
local h = make_client({ features = {
|
|
405
|
+
{ name = "netsim", options = { errorTimes = 1 } },
|
|
406
|
+
} })
|
|
407
|
+
assert.are.equal("netsim_conn", h.op({ op = "load" }).error.code)
|
|
408
|
+
end)
|
|
409
|
+
|
|
410
|
+
it("offline fails every call", function()
|
|
411
|
+
local h = make_client({ features = {
|
|
412
|
+
{ name = "netsim", options = { offline = true } },
|
|
413
|
+
} })
|
|
414
|
+
assert.are.equal("netsim_offline", h.op({ op = "load" }).error.code)
|
|
415
|
+
end)
|
|
416
|
+
|
|
417
|
+
it("rateLimitTimes returns 429 + Retry-After", function()
|
|
418
|
+
local h = make_client({ features = {
|
|
419
|
+
{ name = "netsim", options = { rateLimitTimes = 1, retryAfter = 3 } },
|
|
420
|
+
} })
|
|
421
|
+
local res = h.op({ op = "load" })
|
|
422
|
+
assert.are.equal(429, res.result.status)
|
|
423
|
+
assert.are.equal("3", res.result.headers["retry-after"])
|
|
424
|
+
end)
|
|
425
|
+
|
|
426
|
+
it("inactive netsim does not wrap", function()
|
|
427
|
+
local h = make_client({ features = {
|
|
428
|
+
{ name = "netsim", options = { active = false } },
|
|
429
|
+
} })
|
|
430
|
+
assert.is_true(h.op({ op = "load" }).ok)
|
|
431
|
+
assert.is_nil(h.client._netsim)
|
|
432
|
+
end)
|
|
433
|
+
|
|
434
|
+
it("no latency option delays nothing", function()
|
|
435
|
+
local h = make_client({ features = { { name = "netsim", options = {} } } })
|
|
436
|
+
assert.is_true(h.op({ op = "load" }).ok)
|
|
437
|
+
end)
|
|
438
|
+
end) end
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
-- retry ---------------------------------------------------------------
|
|
442
|
+
if has_feature("retry") then describe("retry", function()
|
|
443
|
+
|
|
444
|
+
it("retries transient failures then succeeds", function()
|
|
445
|
+
local clock = make_clock()
|
|
446
|
+
local h = make_client({ features = {
|
|
447
|
+
{ name = "netsim", options = { failTimes = 2, failStatus = 503 } },
|
|
448
|
+
{ name = "retry", options = {
|
|
449
|
+
retries = 3, minDelay = 10, jitter = false, sleep = clock.sleep } },
|
|
450
|
+
} })
|
|
451
|
+
assert.is_true(h.op({ op = "load" }).ok)
|
|
452
|
+
assert.are.equal(2, h.client._retry.attempts)
|
|
453
|
+
end)
|
|
454
|
+
|
|
455
|
+
it("gives up after the budget", function()
|
|
456
|
+
local clock = make_clock()
|
|
457
|
+
local h = make_client({ features = {
|
|
458
|
+
{ name = "netsim", options = { failTimes = 9, failStatus = 500 } },
|
|
459
|
+
{ name = "retry", options = {
|
|
460
|
+
retries = 2, minDelay = 1, jitter = false, sleep = clock.sleep } },
|
|
461
|
+
} })
|
|
462
|
+
assert.are.equal(500, h.op({ op = "load" }).result.status)
|
|
463
|
+
end)
|
|
464
|
+
|
|
465
|
+
it("does not retry a non-retryable status", function()
|
|
466
|
+
local rec = recording_server(function() return make_response(404) end)
|
|
467
|
+
local h = make_client({ features = {
|
|
468
|
+
{ name = "retry", options = { retries = 3, minDelay = 0 } },
|
|
469
|
+
}, server = rec.server })
|
|
470
|
+
h.op({ op = "load" })
|
|
471
|
+
assert.are.equal(1, #rec.calls)
|
|
472
|
+
end)
|
|
473
|
+
|
|
474
|
+
it("retries a transport error then surfaces it when exhausted", function()
|
|
475
|
+
local clock = make_clock()
|
|
476
|
+
local n = 0
|
|
477
|
+
local function server()
|
|
478
|
+
n = n + 1
|
|
479
|
+
return nil, make_err("boom", "boom")
|
|
480
|
+
end
|
|
481
|
+
local h = make_client({ features = {
|
|
482
|
+
{ name = "retry", options = {
|
|
483
|
+
retries = 2, minDelay = 1, jitter = false, sleep = clock.sleep } },
|
|
484
|
+
}, server = server })
|
|
485
|
+
local res = h.op({ op = "load" })
|
|
486
|
+
assert.is_false(res.ok)
|
|
487
|
+
assert.are.equal(3, n)
|
|
488
|
+
end)
|
|
489
|
+
|
|
490
|
+
it("honours a server Retry-After", function()
|
|
491
|
+
local clock = make_clock()
|
|
492
|
+
local h = make_client({ features = {
|
|
493
|
+
{ name = "netsim", options = { rateLimitTimes = 1, retryAfter = 2 } },
|
|
494
|
+
{ name = "retry", options = {
|
|
495
|
+
retries = 2, minDelay = 10, maxDelay = 60000,
|
|
496
|
+
jitter = false, sleep = clock.sleep } },
|
|
497
|
+
} })
|
|
498
|
+
assert.is_true(h.op({ op = "load" }).ok)
|
|
499
|
+
assert.are.equal(2000, clock.time())
|
|
500
|
+
end)
|
|
501
|
+
|
|
502
|
+
it("default jitter path still succeeds", function()
|
|
503
|
+
local h = make_client({ features = {
|
|
504
|
+
{ name = "netsim", options = { failTimes = 1 } },
|
|
505
|
+
{ name = "retry", options = { retries = 2, minDelay = 0 } },
|
|
506
|
+
} })
|
|
507
|
+
assert.is_true(h.op({ op = "load" }).ok)
|
|
508
|
+
end)
|
|
509
|
+
|
|
510
|
+
it("inactive retry does not wrap", function()
|
|
511
|
+
local rec = recording_server(function() return make_response(503) end)
|
|
512
|
+
local h = make_client({ features = {
|
|
513
|
+
{ name = "retry", options = { active = false } },
|
|
514
|
+
}, server = rec.server })
|
|
515
|
+
h.op({ op = "load" })
|
|
516
|
+
assert.are.equal(1, #rec.calls)
|
|
517
|
+
end)
|
|
518
|
+
|
|
519
|
+
it("retries a nil transport result", function()
|
|
520
|
+
local n = 0
|
|
521
|
+
local function server()
|
|
522
|
+
n = n + 1
|
|
523
|
+
if n < 2 then
|
|
524
|
+
return nil
|
|
525
|
+
end
|
|
526
|
+
return make_response(200, { ok = true })
|
|
527
|
+
end
|
|
528
|
+
local h = make_client({ features = {
|
|
529
|
+
{ name = "retry", options = { retries = 3, minDelay = 0 } },
|
|
530
|
+
}, server = server })
|
|
531
|
+
assert.is_true(h.op({ op = "load" }).ok)
|
|
532
|
+
assert.are.equal(2, n)
|
|
533
|
+
end)
|
|
534
|
+
|
|
535
|
+
it("non-numeric status is not retryable", function()
|
|
536
|
+
local rec = recording_server(function()
|
|
537
|
+
return { status = "weird", json = function() return {} end, headers = {} }
|
|
538
|
+
end)
|
|
539
|
+
local h = make_client({ features = {
|
|
540
|
+
{ name = "retry", options = { retries = 3, minDelay = 0 } },
|
|
541
|
+
}, server = rec.server })
|
|
542
|
+
h.op({ op = "load" })
|
|
543
|
+
assert.are.equal(1, #rec.calls)
|
|
544
|
+
end)
|
|
545
|
+
end) end
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
-- timeout -------------------------------------------------------------
|
|
549
|
+
-- Lua transports are synchronous: the timeout feature applies a
|
|
550
|
+
-- wall-clock deadline after the attempt rather than racing it, so the
|
|
551
|
+
-- shared virtual clock stands in for elapsed transport time.
|
|
552
|
+
if has_feature("timeout") then describe("timeout", function()
|
|
553
|
+
|
|
554
|
+
it("a slow request times out", function()
|
|
555
|
+
local clock = make_clock()
|
|
556
|
+
local h = make_client({ features = {
|
|
557
|
+
{ name = "netsim", options = { latency = 80, sleep = clock.sleep } },
|
|
558
|
+
{ name = "timeout", options = { ms = 10, now = clock.now } },
|
|
559
|
+
} })
|
|
560
|
+
local res = h.op({ op = "load" })
|
|
561
|
+
assert.are.equal("timeout", res.error.code)
|
|
562
|
+
assert.are.equal(1, h.client._timeout.count)
|
|
563
|
+
end)
|
|
564
|
+
|
|
565
|
+
it("a fast request passes through", function()
|
|
566
|
+
local clock = make_clock()
|
|
567
|
+
local h = make_client({ features = {
|
|
568
|
+
{ name = "timeout", options = { ms = 1000, now = clock.now } },
|
|
569
|
+
} })
|
|
570
|
+
assert.is_true(h.op({ op = "load" }).ok)
|
|
571
|
+
end)
|
|
572
|
+
|
|
573
|
+
it("ms<=0 disables the timeout", function()
|
|
574
|
+
local h = make_client({ features = {
|
|
575
|
+
{ name = "timeout", options = { ms = 0 } },
|
|
576
|
+
} })
|
|
577
|
+
assert.is_true(h.op({ op = "load" }).ok)
|
|
578
|
+
end)
|
|
579
|
+
|
|
580
|
+
it("inactive timeout does not wrap", function()
|
|
581
|
+
local h = make_client({ features = {
|
|
582
|
+
{ name = "timeout", options = { active = false } },
|
|
583
|
+
} })
|
|
584
|
+
assert.is_true(h.op({ op = "load" }).ok)
|
|
585
|
+
end)
|
|
586
|
+
end) end
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
-- ratelimit -----------------------------------------------------------
|
|
590
|
+
if has_feature("ratelimit") then describe("ratelimit", function()
|
|
591
|
+
|
|
592
|
+
it("throttles once the burst is spent", function()
|
|
593
|
+
local clock = make_clock()
|
|
594
|
+
local h = make_client({ features = {
|
|
595
|
+
{ name = "ratelimit", options = {
|
|
596
|
+
rate = 1, burst = 2, now = clock.now, sleep = clock.sleep } },
|
|
597
|
+
} })
|
|
598
|
+
h.op({ op = "load" })
|
|
599
|
+
h.op({ op = "load" })
|
|
600
|
+
h.op({ op = "load" })
|
|
601
|
+
assert.are.equal(1, h.client._ratelimit.throttled)
|
|
602
|
+
assert.is_true(clock.time() > 0)
|
|
603
|
+
end)
|
|
604
|
+
|
|
605
|
+
it("burst defaults to rate and refills over time", function()
|
|
606
|
+
local clock = make_clock()
|
|
607
|
+
local h = make_client({ features = {
|
|
608
|
+
{ name = "ratelimit", options = {
|
|
609
|
+
rate = 2, now = clock.now, sleep = clock.sleep } },
|
|
610
|
+
} })
|
|
611
|
+
h.op({ op = "load" })
|
|
612
|
+
h.op({ op = "load" })
|
|
613
|
+
clock.advance(1000) -- refill
|
|
614
|
+
h.op({ op = "load" })
|
|
615
|
+
local throttled = h.client._ratelimit == nil and 0 or h.client._ratelimit.throttled
|
|
616
|
+
assert.are.equal(0, throttled)
|
|
617
|
+
end)
|
|
618
|
+
|
|
619
|
+
it("inactive ratelimit does not wrap", function()
|
|
620
|
+
local h = make_client({ features = {
|
|
621
|
+
{ name = "ratelimit", options = { active = false } },
|
|
622
|
+
} })
|
|
623
|
+
assert.is_true(h.op({ op = "load" }).ok)
|
|
624
|
+
end)
|
|
625
|
+
end) end
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
-- cache ---------------------------------------------------------------
|
|
629
|
+
if has_feature("cache") then describe("cache", function()
|
|
630
|
+
|
|
631
|
+
it("serves a repeated read from cache", function()
|
|
632
|
+
local rec = recording_server()
|
|
633
|
+
local h = make_client({ features = {
|
|
634
|
+
{ name = "cache", options = { ttl = 10000 } },
|
|
635
|
+
}, server = rec.server })
|
|
636
|
+
local a = h.op({ op = "load", path = "/w/1" })
|
|
637
|
+
local b = h.op({ op = "load", path = "/w/1" })
|
|
638
|
+
assert.are.equal(1, #rec.calls)
|
|
639
|
+
assert.are.same(a.data, b.data)
|
|
640
|
+
assert.are.equal(1, h.client._cache.hit)
|
|
641
|
+
end)
|
|
642
|
+
|
|
643
|
+
it("does not cache non-GET", function()
|
|
644
|
+
local rec = recording_server()
|
|
645
|
+
local h = make_client({ features = {
|
|
646
|
+
{ name = "cache" },
|
|
647
|
+
}, server = rec.server })
|
|
648
|
+
h.op({ op = "create", path = "/w" })
|
|
649
|
+
h.op({ op = "create", path = "/w" })
|
|
650
|
+
assert.are.equal(2, #rec.calls)
|
|
651
|
+
end)
|
|
652
|
+
|
|
653
|
+
it("does not cache a non-2xx (bypass)", function()
|
|
654
|
+
local rec = recording_server(function() return make_response(500) end)
|
|
655
|
+
local h = make_client({ features = {
|
|
656
|
+
{ name = "cache" },
|
|
657
|
+
}, server = rec.server })
|
|
658
|
+
h.op({ op = "load", path = "/w" })
|
|
659
|
+
h.op({ op = "load", path = "/w" })
|
|
660
|
+
assert.are.equal(2, #rec.calls)
|
|
661
|
+
assert.are.equal(2, h.client._cache.bypass)
|
|
662
|
+
end)
|
|
663
|
+
|
|
664
|
+
it("re-fetches after the ttl", function()
|
|
665
|
+
local clock = make_clock()
|
|
666
|
+
local rec = recording_server()
|
|
667
|
+
local h = make_client({ features = {
|
|
668
|
+
{ name = "cache", options = { ttl = 1000, now = clock.now } },
|
|
669
|
+
}, server = rec.server })
|
|
670
|
+
h.op({ op = "load", path = "/w" })
|
|
671
|
+
clock.advance(1500)
|
|
672
|
+
h.op({ op = "load", path = "/w" })
|
|
673
|
+
assert.are.equal(2, #rec.calls)
|
|
674
|
+
end)
|
|
675
|
+
|
|
676
|
+
it("evicts the oldest entry past max", function()
|
|
677
|
+
local rec = recording_server()
|
|
678
|
+
local h = make_client({ features = {
|
|
679
|
+
{ name = "cache", options = { ttl = 10000, max = 1 } },
|
|
680
|
+
}, server = rec.server })
|
|
681
|
+
h.op({ op = "load", path = "/a" })
|
|
682
|
+
h.op({ op = "load", path = "/b" }) -- evicts /a
|
|
683
|
+
h.op({ op = "load", path = "/a" }) -- miss again
|
|
684
|
+
assert.are.equal(3, #rec.calls)
|
|
685
|
+
end)
|
|
686
|
+
|
|
687
|
+
it("inactive cache does not wrap", function()
|
|
688
|
+
local rec = recording_server()
|
|
689
|
+
local h = make_client({ features = {
|
|
690
|
+
{ name = "cache", options = { active = false } },
|
|
691
|
+
}, server = rec.server })
|
|
692
|
+
h.op({ op = "load", path = "/x" })
|
|
693
|
+
h.op({ op = "load", path = "/x" })
|
|
694
|
+
assert.are.equal(2, #rec.calls)
|
|
695
|
+
end)
|
|
696
|
+
end) end
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
-- idempotency ---------------------------------------------------------
|
|
700
|
+
if has_feature("idempotency") then describe("idempotency", function()
|
|
701
|
+
|
|
702
|
+
it("adds a key to mutating ops", function()
|
|
703
|
+
local rec = recording_server()
|
|
704
|
+
local h = make_client({ features = {
|
|
705
|
+
{ name = "idempotency" },
|
|
706
|
+
}, server = rec.server })
|
|
707
|
+
h.op({ op = "create", path = "/w" })
|
|
708
|
+
assert.is_not_nil(rec.calls[1].fetchdef.headers["Idempotency-Key"])
|
|
709
|
+
end)
|
|
710
|
+
|
|
711
|
+
it("adds a key based on HTTP method", function()
|
|
712
|
+
local rec = recording_server()
|
|
713
|
+
local h = make_client({ features = {
|
|
714
|
+
{ name = "idempotency" },
|
|
715
|
+
}, server = rec.server })
|
|
716
|
+
h.op({ op = "act", method = "PUT", path = "/w" })
|
|
717
|
+
assert.is_not_nil(rec.calls[1].fetchdef.headers["Idempotency-Key"])
|
|
718
|
+
end)
|
|
719
|
+
|
|
720
|
+
it("leaves reads untouched", function()
|
|
721
|
+
local rec = recording_server()
|
|
722
|
+
local h = make_client({ features = {
|
|
723
|
+
{ name = "idempotency" },
|
|
724
|
+
}, server = rec.server })
|
|
725
|
+
h.op({ op = "load", path = "/w/1" })
|
|
726
|
+
assert.is_nil(rec.calls[1].fetchdef.headers["Idempotency-Key"])
|
|
727
|
+
end)
|
|
728
|
+
|
|
729
|
+
it("preserves a caller key and honours a custom header", function()
|
|
730
|
+
local rec = recording_server()
|
|
731
|
+
local h = make_client({ features = {
|
|
732
|
+
{ name = "idempotency", options = { header = "X-Idem" } },
|
|
733
|
+
}, server = rec.server })
|
|
734
|
+
h.op({ op = "create", path = "/w", headers = { ["X-Idem"] = "caller-1" } })
|
|
735
|
+
assert.are.equal("caller-1", rec.calls[1].fetchdef.headers["X-Idem"])
|
|
736
|
+
end)
|
|
737
|
+
|
|
738
|
+
it("default key generation yields a hex key", function()
|
|
739
|
+
local rec = recording_server()
|
|
740
|
+
local h = make_client({ features = {
|
|
741
|
+
{ name = "idempotency" },
|
|
742
|
+
}, server = rec.server })
|
|
743
|
+
h.op({ op = "create", path = "/w" })
|
|
744
|
+
local key = rec.calls[1].fetchdef.headers["Idempotency-Key"]
|
|
745
|
+
assert.is_truthy(string.match(key, "^[0-9a-f]+$"))
|
|
746
|
+
end)
|
|
747
|
+
|
|
748
|
+
it("injected keygen is used", function()
|
|
749
|
+
local rec = recording_server()
|
|
750
|
+
local h = make_client({ features = {
|
|
751
|
+
{ name = "idempotency", options = { keygen = function() return "fixed-key" end } },
|
|
752
|
+
}, server = rec.server })
|
|
753
|
+
h.op({ op = "create", path = "/w" })
|
|
754
|
+
assert.are.equal("fixed-key", rec.calls[1].fetchdef.headers["Idempotency-Key"])
|
|
755
|
+
assert.are.equal("fixed-key", h.client._idempotency.last)
|
|
756
|
+
end)
|
|
757
|
+
|
|
758
|
+
it("inactive idempotency adds nothing", function()
|
|
759
|
+
local rec = recording_server()
|
|
760
|
+
local h = make_client({ features = {
|
|
761
|
+
{ name = "idempotency", options = { active = false } },
|
|
762
|
+
}, server = rec.server })
|
|
763
|
+
h.op({ op = "create", path = "/w" })
|
|
764
|
+
assert.is_nil(rec.calls[1].fetchdef.headers["Idempotency-Key"])
|
|
765
|
+
end)
|
|
766
|
+
end) end
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
-- rbac ----------------------------------------------------------------
|
|
770
|
+
if has_feature("rbac") then describe("rbac", function()
|
|
771
|
+
|
|
772
|
+
it("denies before any call", function()
|
|
773
|
+
local rec = recording_server()
|
|
774
|
+
local h = make_client({ features = {
|
|
775
|
+
{ name = "rbac", options = {
|
|
776
|
+
rules = { ["widget.remove"] = "admin" }, permissions = {} } },
|
|
777
|
+
}, server = rec.server })
|
|
778
|
+
local res = h.op({ op = "remove", path = "/w/1" })
|
|
779
|
+
assert.are.equal("rbac_denied", res.error.code)
|
|
780
|
+
assert.are.equal(0, #rec.calls)
|
|
781
|
+
assert.are.equal(1, h.client._rbac.denied)
|
|
782
|
+
end)
|
|
783
|
+
|
|
784
|
+
it("allows a held permission", function()
|
|
785
|
+
local h = make_client({ features = {
|
|
786
|
+
{ name = "rbac", options = {
|
|
787
|
+
rules = { ["widget.remove"] = "admin" }, permissions = { "admin" } } },
|
|
788
|
+
} })
|
|
789
|
+
assert.is_true(h.op({ op = "remove", path = "/w/1" }).ok)
|
|
790
|
+
end)
|
|
791
|
+
|
|
792
|
+
it("rule by op name and wildcard grant", function()
|
|
793
|
+
local h = make_client({ features = {
|
|
794
|
+
{ name = "rbac", options = { rules = { load = "read" }, permissions = { "*" } } },
|
|
795
|
+
} })
|
|
796
|
+
assert.is_true(h.op({ op = "load" }).ok)
|
|
797
|
+
end)
|
|
798
|
+
|
|
799
|
+
it("no rule allows by default; deny=true blocks", function()
|
|
800
|
+
local allow = make_client({ features = {
|
|
801
|
+
{ name = "rbac", options = { permissions = {} } },
|
|
802
|
+
} })
|
|
803
|
+
assert.is_true(allow.op({ op = "load" }).ok)
|
|
804
|
+
local deny = make_client({ features = {
|
|
805
|
+
{ name = "rbac", options = { deny = true, permissions = {} } },
|
|
806
|
+
} })
|
|
807
|
+
assert.are.equal("rbac_denied", deny.op({ op = "load" }).error.code)
|
|
808
|
+
end)
|
|
809
|
+
|
|
810
|
+
it("inactive rbac does not deny", function()
|
|
811
|
+
local h = make_client({ features = {
|
|
812
|
+
{ name = "rbac", options = { active = false, deny = true, permissions = {} } },
|
|
813
|
+
} })
|
|
814
|
+
assert.is_true(h.op({ op = "load" }).ok)
|
|
815
|
+
end)
|
|
816
|
+
end) end
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
-- metrics ---------------------------------------------------------------
|
|
820
|
+
if has_feature("metrics") then describe("metrics", function()
|
|
821
|
+
|
|
822
|
+
it("counts ok and err per op", function()
|
|
823
|
+
local h = make_client({ features = {
|
|
824
|
+
{ name = "netsim", options = { failTimes = 1, failStatus = 500 } },
|
|
825
|
+
{ name = "metrics", options = {} },
|
|
826
|
+
} })
|
|
827
|
+
h.op({ op = "load" })
|
|
828
|
+
h.op({ op = "load" })
|
|
829
|
+
h.op({ op = "list" })
|
|
830
|
+
local m = h.client._metrics
|
|
831
|
+
assert.are.equal(3, m.total.count)
|
|
832
|
+
assert.are.equal(2, m.total.ok)
|
|
833
|
+
assert.are.equal(1, m.total.err)
|
|
834
|
+
assert.are.equal(2, m.ops["widget.load"].count)
|
|
835
|
+
end)
|
|
836
|
+
|
|
837
|
+
it("injected clock accumulates durations", function()
|
|
838
|
+
local t = 0
|
|
839
|
+
local h = make_client({ features = {
|
|
840
|
+
{ name = "metrics", options = { now = function() t = t + 10; return t end } },
|
|
841
|
+
} })
|
|
842
|
+
h.op({ op = "load" })
|
|
843
|
+
assert.is_true(h.client._metrics.total.totalMs >= 0)
|
|
844
|
+
assert.are.equal(1, h.client._metrics.total.count)
|
|
845
|
+
end)
|
|
846
|
+
|
|
847
|
+
it("inactive metrics records nothing", function()
|
|
848
|
+
local h = make_client({ features = {
|
|
849
|
+
{ name = "metrics", options = { active = false } },
|
|
850
|
+
} })
|
|
851
|
+
h.op({ op = "load" })
|
|
852
|
+
assert.is_nil(h.client._metrics)
|
|
853
|
+
end)
|
|
854
|
+
end) end
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
-- telemetry -------------------------------------------------------------
|
|
858
|
+
if has_feature("telemetry") then describe("telemetry", function()
|
|
859
|
+
|
|
860
|
+
it("opens spans and propagates trace headers", function()
|
|
861
|
+
local rec = recording_server()
|
|
862
|
+
local spans = {}
|
|
863
|
+
local h = make_client({ features = {
|
|
864
|
+
{ name = "telemetry", options = { exporter = function(s) table.insert(spans, s) end } },
|
|
865
|
+
}, server = rec.server })
|
|
866
|
+
local res = h.op({ op = "load" })
|
|
867
|
+
assert.is_true(res.ok)
|
|
868
|
+
assert.are.equal(1, #h.client._telemetry.spans)
|
|
869
|
+
assert.are.equal(1, #spans)
|
|
870
|
+
local sent = rec.calls[1].fetchdef.headers
|
|
871
|
+
assert.are.equal(h.client._telemetry.spans[1].traceId, sent["X-Trace-Id"])
|
|
872
|
+
assert.is_truthy(string.match(sent["traceparent"], "^00%-.+%-.+%-01$"))
|
|
873
|
+
end)
|
|
874
|
+
|
|
875
|
+
it("records a failed span on error", function()
|
|
876
|
+
local h = make_client({ features = {
|
|
877
|
+
{ name = "netsim", options = { failTimes = 1, failStatus = 500 } },
|
|
878
|
+
{ name = "telemetry", options = {} },
|
|
879
|
+
} })
|
|
880
|
+
h.op({ op = "load" })
|
|
881
|
+
assert.is_false(h.client._telemetry.spans[1].ok)
|
|
882
|
+
end)
|
|
883
|
+
|
|
884
|
+
it("default id generation and no exporter", function()
|
|
885
|
+
local h = make_client({ features = { { name = "telemetry" } } })
|
|
886
|
+
h.op({ op = "load" })
|
|
887
|
+
assert.is_truthy(string.match(h.client._telemetry.spans[1].traceId, "^t"))
|
|
888
|
+
end)
|
|
889
|
+
|
|
890
|
+
it("injected idgen + clock", function()
|
|
891
|
+
local h = make_client({ features = {
|
|
892
|
+
{ name = "telemetry", options = {
|
|
893
|
+
idgen = function(k) return k .. "-X" end, now = function() return 5 end } },
|
|
894
|
+
} })
|
|
895
|
+
h.op({ op = "load" })
|
|
896
|
+
local span = h.client._telemetry.spans[1]
|
|
897
|
+
assert.are.equal("trace-X", span.traceId)
|
|
898
|
+
assert.are.equal(0, span.durationMs)
|
|
899
|
+
end)
|
|
900
|
+
|
|
901
|
+
it("inactive telemetry records nothing", function()
|
|
902
|
+
local h = make_client({ features = {
|
|
903
|
+
{ name = "telemetry", options = { active = false } },
|
|
904
|
+
} })
|
|
905
|
+
h.op({ op = "load" })
|
|
906
|
+
assert.is_nil(h.client._telemetry)
|
|
907
|
+
end)
|
|
908
|
+
end) end
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
-- debug -----------------------------------------------------------------
|
|
912
|
+
if has_feature("debug") then describe("debug", function()
|
|
913
|
+
|
|
914
|
+
it("captures a redacted trace and honours on_entry + max", function()
|
|
915
|
+
local seen = {}
|
|
916
|
+
local h = make_client({ features = {
|
|
917
|
+
{ name = "debug", options = {
|
|
918
|
+
max = 1, on_entry = function(e) table.insert(seen, e) end } },
|
|
919
|
+
} })
|
|
920
|
+
h.op({ op = "load", headers = { authorization = "Bearer secret" } })
|
|
921
|
+
h.op({ op = "list" })
|
|
922
|
+
local entries = h.client._debug.entries
|
|
923
|
+
assert.are.equal(1, #entries) -- ring buffer capped at max
|
|
924
|
+
assert.are.equal(2, #seen)
|
|
925
|
+
assert.are.equal("<redacted>", seen[1].headers.authorization)
|
|
926
|
+
end)
|
|
927
|
+
|
|
928
|
+
it("captures failures", function()
|
|
929
|
+
local h = make_client({ features = {
|
|
930
|
+
{ name = "netsim", options = { failTimes = 1, failStatus = 500 } },
|
|
931
|
+
{ name = "debug", options = {} },
|
|
932
|
+
} })
|
|
933
|
+
h.op({ op = "load" })
|
|
934
|
+
assert.is_false(h.client._debug.entries[1].ok)
|
|
935
|
+
end)
|
|
936
|
+
|
|
937
|
+
it("injected clock + custom redact", function()
|
|
938
|
+
local h = make_client({ features = {
|
|
939
|
+
{ name = "debug", options = { now = function() return 7 end, redact = { "x-secret" } } },
|
|
940
|
+
} })
|
|
941
|
+
h.op({ op = "load", headers = { ["x-secret"] = "hide", ["x-ok"] = "show" } })
|
|
942
|
+
local e = h.client._debug.entries[1]
|
|
943
|
+
assert.are.equal("<redacted>", e.headers["x-secret"])
|
|
944
|
+
assert.are.equal("show", e.headers["x-ok"])
|
|
945
|
+
end)
|
|
946
|
+
|
|
947
|
+
it("inactive debug records nothing", function()
|
|
948
|
+
local h = make_client({ features = {
|
|
949
|
+
{ name = "debug", options = { active = false } },
|
|
950
|
+
} })
|
|
951
|
+
h.op({ op = "load" })
|
|
952
|
+
assert.is_nil(h.client._debug)
|
|
953
|
+
end)
|
|
954
|
+
end) end
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
-- audit -----------------------------------------------------------------
|
|
958
|
+
if has_feature("audit") then describe("audit", function()
|
|
959
|
+
|
|
960
|
+
it("one record per op with sink + actor", function()
|
|
961
|
+
local sink = {}
|
|
962
|
+
local h = make_client({ features = {
|
|
963
|
+
{ name = "netsim", options = { failTimes = 1, failStatus = 500 } },
|
|
964
|
+
{ name = "audit", options = {
|
|
965
|
+
actor = "svc", sink = function(r) table.insert(sink, r) end, max = 5 } },
|
|
966
|
+
} })
|
|
967
|
+
h.op({ op = "remove", path = "/w/1" })
|
|
968
|
+
h.op({ op = "load", ctrl = { actor = "per-call" } })
|
|
969
|
+
local recs = h.client._audit.records
|
|
970
|
+
assert.are.equal(2, #recs)
|
|
971
|
+
assert.are.equal("error", recs[1].outcome)
|
|
972
|
+
assert.are.equal("svc", recs[1].actor)
|
|
973
|
+
assert.are.equal("per-call", recs[2].actor)
|
|
974
|
+
assert.are.equal(2, #sink)
|
|
975
|
+
end)
|
|
976
|
+
|
|
977
|
+
it("default actor is anonymous", function()
|
|
978
|
+
local h = make_client({ features = { { name = "audit" } } })
|
|
979
|
+
h.op({ op = "load" })
|
|
980
|
+
assert.are.equal("anonymous", h.client._audit.records[1].actor)
|
|
981
|
+
end)
|
|
982
|
+
|
|
983
|
+
it("injected clock stamps ts", function()
|
|
984
|
+
local h = make_client({ features = {
|
|
985
|
+
{ name = "audit", options = { now = function() return 42 end } },
|
|
986
|
+
} })
|
|
987
|
+
h.op({ op = "load" })
|
|
988
|
+
assert.are.equal(42, h.client._audit.records[1].ts)
|
|
989
|
+
end)
|
|
990
|
+
|
|
991
|
+
it("inactive audit records nothing", function()
|
|
992
|
+
local h = make_client({ features = {
|
|
993
|
+
{ name = "audit", options = { active = false } },
|
|
994
|
+
} })
|
|
995
|
+
h.op({ op = "load" })
|
|
996
|
+
assert.is_nil(h.client._audit)
|
|
997
|
+
end)
|
|
998
|
+
end) end
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
-- clienttrack -------------------------------------------------------------
|
|
1002
|
+
if has_feature("clienttrack") then describe("clienttrack", function()
|
|
1003
|
+
|
|
1004
|
+
it("stable client id, unique request ids, UA", function()
|
|
1005
|
+
local rec = recording_server()
|
|
1006
|
+
local h = make_client({ features = {
|
|
1007
|
+
{ name = "clienttrack", options = { clientName = "Acme", clientVersion = "2.0.0" } },
|
|
1008
|
+
}, server = rec.server })
|
|
1009
|
+
h.ready()
|
|
1010
|
+
h.op({ op = "load" })
|
|
1011
|
+
h.op({ op = "load" })
|
|
1012
|
+
local h0 = rec.calls[1].fetchdef.headers
|
|
1013
|
+
local h1 = rec.calls[2].fetchdef.headers
|
|
1014
|
+
assert.are.equal("Acme/2.0.0", h0["User-Agent"])
|
|
1015
|
+
assert.are.equal(h0["X-Client-Id"], h1["X-Client-Id"])
|
|
1016
|
+
assert.is_true(h0["X-Request-Id"] ~= h1["X-Request-Id"])
|
|
1017
|
+
assert.are.equal(2, h.client._clienttrack.requests)
|
|
1018
|
+
end)
|
|
1019
|
+
|
|
1020
|
+
it("does not clobber a caller User-Agent", function()
|
|
1021
|
+
local rec = recording_server()
|
|
1022
|
+
local h = make_client({ features = {
|
|
1023
|
+
{ name = "clienttrack" },
|
|
1024
|
+
}, server = rec.server })
|
|
1025
|
+
h.ready()
|
|
1026
|
+
h.op({ op = "load", headers = { ["User-Agent"] = "mine" } })
|
|
1027
|
+
assert.are.equal("mine", rec.calls[1].fetchdef.headers["User-Agent"])
|
|
1028
|
+
end)
|
|
1029
|
+
|
|
1030
|
+
it("lazy session id without PostConstruct", function()
|
|
1031
|
+
local rec = recording_server()
|
|
1032
|
+
local h = make_client({ features = {
|
|
1033
|
+
{ name = "clienttrack" },
|
|
1034
|
+
}, server = rec.server })
|
|
1035
|
+
-- no ready() -> PreRequest lazily creates the session id
|
|
1036
|
+
h.op({ op = "load" })
|
|
1037
|
+
assert.is_not_nil(rec.calls[1].fetchdef.headers["X-Client-Id"])
|
|
1038
|
+
end)
|
|
1039
|
+
|
|
1040
|
+
it("injected idgen + fixed session", function()
|
|
1041
|
+
local rec = recording_server()
|
|
1042
|
+
local h = make_client({ features = {
|
|
1043
|
+
{ name = "clienttrack", options = {
|
|
1044
|
+
sessionId = "S1", idgen = function(k) return k .. "-1" end } },
|
|
1045
|
+
}, server = rec.server })
|
|
1046
|
+
h.ready()
|
|
1047
|
+
h.op({ op = "load" })
|
|
1048
|
+
assert.are.equal("S1", rec.calls[1].fetchdef.headers["X-Client-Id"])
|
|
1049
|
+
assert.are.equal("request-1", rec.calls[1].fetchdef.headers["X-Request-Id"])
|
|
1050
|
+
end)
|
|
1051
|
+
|
|
1052
|
+
it("inactive clienttrack adds nothing", function()
|
|
1053
|
+
local rec = recording_server()
|
|
1054
|
+
local h = make_client({ features = {
|
|
1055
|
+
{ name = "clienttrack", options = { active = false } },
|
|
1056
|
+
}, server = rec.server })
|
|
1057
|
+
h.ready()
|
|
1058
|
+
h.op({ op = "load" })
|
|
1059
|
+
assert.is_nil(rec.calls[1].fetchdef.headers["X-Client-Id"])
|
|
1060
|
+
end)
|
|
1061
|
+
end) end
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
-- paging ------------------------------------------------------------------
|
|
1065
|
+
if has_feature("paging") then describe("paging", function()
|
|
1066
|
+
|
|
1067
|
+
it("stamps page/limit and reads header signals", function()
|
|
1068
|
+
local rec = recording_server(function()
|
|
1069
|
+
return make_response(200, { items = { 1, 2 } }, {
|
|
1070
|
+
["x-next-page"] = "2",
|
|
1071
|
+
["x-total-count"] = "5",
|
|
1072
|
+
["link"] = '</w?page=2>; rel="next"',
|
|
1073
|
+
})
|
|
1074
|
+
end)
|
|
1075
|
+
local h = make_client({ features = {
|
|
1076
|
+
{ name = "paging", options = { limit = 2 } },
|
|
1077
|
+
}, server = rec.server })
|
|
1078
|
+
local res = h.op({ op = "list", path = "/w" })
|
|
1079
|
+
assert.is_truthy(string.find(rec.calls[1].url, "[?&]page=1"))
|
|
1080
|
+
assert.is_truthy(string.find(rec.calls[1].url, "[?&]limit=2"))
|
|
1081
|
+
assert.are.equal(2, res.result.paging.nextPage)
|
|
1082
|
+
assert.are.equal(5, res.result.paging.totalCount)
|
|
1083
|
+
assert.are.equal("/w?page=2", res.result.paging.next)
|
|
1084
|
+
end)
|
|
1085
|
+
|
|
1086
|
+
it("body cursor + explicit cursor request", function()
|
|
1087
|
+
local rec = recording_server(function()
|
|
1088
|
+
return make_response(200, { nextCursor = "abc", hasMore = true })
|
|
1089
|
+
end)
|
|
1090
|
+
local h = make_client({ features = {
|
|
1091
|
+
{ name = "paging" },
|
|
1092
|
+
}, server = rec.server })
|
|
1093
|
+
local res = h.op({ op = "list", path = "/w", ctrl = { paging = { cursor = "xyz" } } })
|
|
1094
|
+
assert.is_truthy(string.find(rec.calls[1].url, "[?&]cursor=xyz"))
|
|
1095
|
+
assert.are.equal("abc", res.result.paging.cursor)
|
|
1096
|
+
assert.is_true(res.result.paging.hasMore)
|
|
1097
|
+
end)
|
|
1098
|
+
|
|
1099
|
+
it("non-list op is not paged", function()
|
|
1100
|
+
local rec = recording_server()
|
|
1101
|
+
local h = make_client({ features = {
|
|
1102
|
+
{ name = "paging" },
|
|
1103
|
+
}, server = rec.server })
|
|
1104
|
+
h.op({ op = "load", path = "/w/1" })
|
|
1105
|
+
assert.is_nil(string.find(rec.calls[1].url, "[?&]page="))
|
|
1106
|
+
end)
|
|
1107
|
+
|
|
1108
|
+
it("inactive paging adds nothing", function()
|
|
1109
|
+
local rec = recording_server()
|
|
1110
|
+
local h = make_client({ features = {
|
|
1111
|
+
{ name = "paging", options = { active = false } },
|
|
1112
|
+
}, server = rec.server })
|
|
1113
|
+
h.op({ op = "list", path = "/w" })
|
|
1114
|
+
assert.is_nil(string.find(rec.calls[1].url, "[?&]page="))
|
|
1115
|
+
end)
|
|
1116
|
+
end) end
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
-- streaming ---------------------------------------------------------------
|
|
1120
|
+
if has_feature("streaming") then describe("streaming", function()
|
|
1121
|
+
|
|
1122
|
+
it("streams list items", function()
|
|
1123
|
+
local clock = make_clock()
|
|
1124
|
+
local rec = recording_server(function()
|
|
1125
|
+
return make_response(200, { "a", "b", "c" })
|
|
1126
|
+
end)
|
|
1127
|
+
local h = make_client({ features = {
|
|
1128
|
+
{ name = "streaming", options = { chunkDelay = 5, sleep = clock.sleep } },
|
|
1129
|
+
}, server = rec.server })
|
|
1130
|
+
local res = h.op({ op = "list", path = "/w" })
|
|
1131
|
+
assert.is_true(res.result.streaming)
|
|
1132
|
+
local seen = {}
|
|
1133
|
+
for item in res.result.stream() do
|
|
1134
|
+
table.insert(seen, item)
|
|
1135
|
+
end
|
|
1136
|
+
assert.are.same({ "a", "b", "c" }, seen)
|
|
1137
|
+
assert.are.equal(15, clock.time())
|
|
1138
|
+
end)
|
|
1139
|
+
|
|
1140
|
+
it("batches with chunkSize", function()
|
|
1141
|
+
local rec = recording_server(function()
|
|
1142
|
+
return make_response(200, { 1, 2, 3, 4, 5 })
|
|
1143
|
+
end)
|
|
1144
|
+
local h = make_client({ features = {
|
|
1145
|
+
{ name = "streaming", options = { chunkSize = 2 } },
|
|
1146
|
+
}, server = rec.server })
|
|
1147
|
+
local res = h.op({ op = "list", path = "/w" })
|
|
1148
|
+
local batches = {}
|
|
1149
|
+
for b in res.result.stream() do
|
|
1150
|
+
table.insert(batches, b)
|
|
1151
|
+
end
|
|
1152
|
+
assert.are.same({ { 1, 2 }, { 3, 4 }, { 5 } }, batches)
|
|
1153
|
+
end)
|
|
1154
|
+
|
|
1155
|
+
it("non-list op is not streamed", function()
|
|
1156
|
+
local h = make_client({ features = { { name = "streaming" } } })
|
|
1157
|
+
local res = h.op({ op = "load" })
|
|
1158
|
+
assert.is_nil(res.result.streaming)
|
|
1159
|
+
end)
|
|
1160
|
+
|
|
1161
|
+
it("inactive streaming attaches nothing", function()
|
|
1162
|
+
local rec = recording_server(function()
|
|
1163
|
+
return make_response(200, { "a" })
|
|
1164
|
+
end)
|
|
1165
|
+
local h = make_client({ features = {
|
|
1166
|
+
{ name = "streaming", options = { active = false } },
|
|
1167
|
+
}, server = rec.server })
|
|
1168
|
+
local res = h.op({ op = "list", path = "/w" })
|
|
1169
|
+
assert.is_nil(res.result.streaming)
|
|
1170
|
+
end)
|
|
1171
|
+
end) end
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
-- proxy ---------------------------------------------------------------
|
|
1175
|
+
if has_feature("proxy") then describe("proxy", function()
|
|
1176
|
+
|
|
1177
|
+
it("routes through the proxy and invokes an agent factory", function()
|
|
1178
|
+
local rec = recording_server()
|
|
1179
|
+
local agent_url = ""
|
|
1180
|
+
local h = make_client({ features = {
|
|
1181
|
+
{ name = "proxy", options = {
|
|
1182
|
+
url = "http://proxy:8080",
|
|
1183
|
+
agent = function(u) agent_url = u; return { a = 1 } end } },
|
|
1184
|
+
}, server = rec.server })
|
|
1185
|
+
h.op({ op = "load" })
|
|
1186
|
+
assert.are.equal("http://proxy:8080", rec.calls[1].fetchdef.proxy)
|
|
1187
|
+
assert.are.equal(1, rec.calls[1].fetchdef.dispatcher.a)
|
|
1188
|
+
assert.are.equal("http://proxy:8080", agent_url)
|
|
1189
|
+
assert.are.equal(1, h.client._proxy.routed)
|
|
1190
|
+
end)
|
|
1191
|
+
|
|
1192
|
+
it("bypasses noProxy hosts", function()
|
|
1193
|
+
local rec = recording_server()
|
|
1194
|
+
local h = make_client({ features = {
|
|
1195
|
+
{ name = "proxy", options = { url = "http://proxy:8080", noProxy = { "api.test" } } },
|
|
1196
|
+
}, server = rec.server, base = "http://api.test" })
|
|
1197
|
+
h.op({ op = "load" })
|
|
1198
|
+
assert.is_nil(rec.calls[1].fetchdef.proxy)
|
|
1199
|
+
end)
|
|
1200
|
+
|
|
1201
|
+
it("inactive proxy does not wrap", function()
|
|
1202
|
+
local rec = recording_server()
|
|
1203
|
+
local h = make_client({ features = {
|
|
1204
|
+
{ name = "proxy", options = { active = false, url = "http://proxy:8080" } },
|
|
1205
|
+
}, server = rec.server })
|
|
1206
|
+
h.op({ op = "load" })
|
|
1207
|
+
assert.is_nil(rec.calls[1].fetchdef.proxy)
|
|
1208
|
+
end)
|
|
1209
|
+
|
|
1210
|
+
it("no url set is a no-op", function()
|
|
1211
|
+
local rec = recording_server()
|
|
1212
|
+
local h = make_client({ features = {
|
|
1213
|
+
{ name = "proxy", options = {} },
|
|
1214
|
+
}, server = rec.server })
|
|
1215
|
+
h.op({ op = "load" })
|
|
1216
|
+
assert.is_nil(rec.calls[1].fetchdef.proxy)
|
|
1217
|
+
end)
|
|
1218
|
+
|
|
1219
|
+
it("fromEnv reads HTTPS_PROXY via the injectable getenv", function()
|
|
1220
|
+
local rec = recording_server()
|
|
1221
|
+
local env = { HTTPS_PROXY = "http://env-proxy:8080" }
|
|
1222
|
+
local h = make_client({ features = {
|
|
1223
|
+
{ name = "proxy", options = {
|
|
1224
|
+
fromEnv = true, getenv = function(k) return env[k] end } },
|
|
1225
|
+
}, server = rec.server })
|
|
1226
|
+
h.op({ op = "load" })
|
|
1227
|
+
assert.are.equal("http://env-proxy:8080", rec.calls[1].fetchdef.proxy)
|
|
1228
|
+
end)
|
|
1229
|
+
end) end
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
-- composition ---------------------------------------------------------
|
|
1233
|
+
if has_feature("cache") and has_feature("netsim") then
|
|
1234
|
+
it("cache + netsim: a hit skips the simulated failure", function()
|
|
1235
|
+
local h = make_client({ features = {
|
|
1236
|
+
{ name = "netsim", options = { failEvery = 2 } },
|
|
1237
|
+
{ name = "cache", options = { ttl = 10000 } },
|
|
1238
|
+
} })
|
|
1239
|
+
assert.is_true(h.op({ op = "load", path = "/w" }).ok)
|
|
1240
|
+
assert.is_true(h.op({ op = "load", path = "/w" }).ok)
|
|
1241
|
+
assert.are.equal(1, h.client._netsim.calls)
|
|
1242
|
+
end)
|
|
1243
|
+
end
|
|
1244
|
+
end)
|