@voxgig/sdkgen-langpack 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.sdk/model/target/dart.aon +63 -0
- package/.sdk/model/target/haskell.aon +72 -0
- package/.sdk/model/target/lean.aon +91 -0
- package/.sdk/src/cmp/dart/Config_dart.ts +248 -0
- package/.sdk/src/cmp/dart/EntityBase_dart.ts +34 -0
- package/.sdk/src/cmp/dart/EntityOperation_dart.ts +43 -0
- package/.sdk/src/cmp/dart/EntityTypes_dart.ts +207 -0
- package/.sdk/src/cmp/dart/Entity_dart.ts +87 -0
- package/.sdk/src/cmp/dart/Gitignore_dart.ts +34 -0
- package/.sdk/src/cmp/dart/MainEntity_dart.ts +33 -0
- package/.sdk/src/cmp/dart/Main_dart.ts +178 -0
- package/.sdk/src/cmp/dart/Package_dart.ts +82 -0
- package/.sdk/src/cmp/dart/ReadmeEntity_dart.ts +177 -0
- package/.sdk/src/cmp/dart/ReadmeExamplesTest_dart.ts +238 -0
- package/.sdk/src/cmp/dart/ReadmeExplanation_dart.ts +53 -0
- package/.sdk/src/cmp/dart/ReadmeHowto_dart.ts +152 -0
- package/.sdk/src/cmp/dart/ReadmeInstall_dart.ts +59 -0
- package/.sdk/src/cmp/dart/ReadmeIntro_dart.ts +65 -0
- package/.sdk/src/cmp/dart/ReadmeModel_dart.ts +151 -0
- package/.sdk/src/cmp/dart/ReadmeOptions_dart.ts +63 -0
- package/.sdk/src/cmp/dart/ReadmeQuick_dart.ts +225 -0
- package/.sdk/src/cmp/dart/ReadmeRef_dart.ts +397 -0
- package/.sdk/src/cmp/dart/ReadmeTopHowto_dart.ts +24 -0
- package/.sdk/src/cmp/dart/ReadmeTopQuick_dart.ts +106 -0
- package/.sdk/src/cmp/dart/ReadmeTopTest_dart.ts +78 -0
- package/.sdk/src/cmp/dart/SdkError_dart.ts +42 -0
- package/.sdk/src/cmp/dart/TestDirect_dart.ts +516 -0
- package/.sdk/src/cmp/dart/TestEntity_dart.ts +628 -0
- package/.sdk/src/cmp/dart/Test_dart.ts +138 -0
- package/.sdk/src/cmp/dart/fragment/Config.data.fragment.dart +98 -0
- package/.sdk/src/cmp/dart/fragment/Config.fragment.dart +70 -0
- package/.sdk/src/cmp/dart/fragment/Direct.test.fragment.dart +25 -0
- package/.sdk/src/cmp/dart/fragment/Entity.fragment.dart +29 -0
- package/.sdk/src/cmp/dart/fragment/Entity.test.fragment.dart +28 -0
- package/.sdk/src/cmp/dart/fragment/EntityBase.fragment.dart +302 -0
- package/.sdk/src/cmp/dart/fragment/EntityCreateOp.fragment.dart +98 -0
- package/.sdk/src/cmp/dart/fragment/EntityListOp.fragment.dart +90 -0
- package/.sdk/src/cmp/dart/fragment/EntityLoadOp.fragment.dart +102 -0
- package/.sdk/src/cmp/dart/fragment/EntityRemoveOp.fragment.dart +108 -0
- package/.sdk/src/cmp/dart/fragment/EntityUpdateOp.fragment.dart +102 -0
- package/.sdk/src/cmp/dart/fragment/Main.fragment.dart +339 -0
- package/.sdk/src/cmp/dart/fragment/SdkError.fragment.dart +26 -0
- package/.sdk/src/cmp/dart/tsconfig.json +15 -0
- package/.sdk/src/cmp/dart/utility_dart.ts +155 -0
- package/.sdk/src/cmp/haskell/Config_haskell.ts +98 -0
- package/.sdk/src/cmp/haskell/Entity_haskell.ts +13 -0
- package/.sdk/src/cmp/haskell/Gitignore_haskell.ts +27 -0
- package/.sdk/src/cmp/haskell/Main_haskell.ts +123 -0
- package/.sdk/src/cmp/haskell/Package_haskell.ts +60 -0
- package/.sdk/src/cmp/haskell/ReadmeEntity_haskell.ts +186 -0
- package/.sdk/src/cmp/haskell/ReadmeExamplesTest_haskell.ts +135 -0
- package/.sdk/src/cmp/haskell/ReadmeExplanation_haskell.ts +48 -0
- package/.sdk/src/cmp/haskell/ReadmeHowto_haskell.ts +168 -0
- package/.sdk/src/cmp/haskell/ReadmeInstall_haskell.ts +51 -0
- package/.sdk/src/cmp/haskell/ReadmeIntro_haskell.ts +67 -0
- package/.sdk/src/cmp/haskell/ReadmeModel_haskell.ts +162 -0
- package/.sdk/src/cmp/haskell/ReadmeOptions_haskell.ts +74 -0
- package/.sdk/src/cmp/haskell/ReadmeQuick_haskell.ts +241 -0
- package/.sdk/src/cmp/haskell/ReadmeRef_haskell.ts +408 -0
- package/.sdk/src/cmp/haskell/ReadmeTopHowto_haskell.ts +31 -0
- package/.sdk/src/cmp/haskell/ReadmeTopQuick_haskell.ts +104 -0
- package/.sdk/src/cmp/haskell/ReadmeTopTest_haskell.ts +80 -0
- package/.sdk/src/cmp/haskell/Test_haskell.ts +297 -0
- package/.sdk/src/cmp/haskell/tsconfig.json +15 -0
- package/.sdk/src/cmp/haskell/utility_haskell.ts +166 -0
- package/.sdk/src/cmp/lean/Config_lean.ts +93 -0
- package/.sdk/src/cmp/lean/Entity_lean.ts +9 -0
- package/.sdk/src/cmp/lean/Gitignore_lean.ts +18 -0
- package/.sdk/src/cmp/lean/Main_lean.ts +120 -0
- package/.sdk/src/cmp/lean/Package_lean.ts +93 -0
- package/.sdk/src/cmp/lean/ReadmeEntity_lean.ts +29 -0
- package/.sdk/src/cmp/lean/ReadmeExplanation_lean.ts +19 -0
- package/.sdk/src/cmp/lean/ReadmeHowto_lean.ts +25 -0
- package/.sdk/src/cmp/lean/ReadmeInstall_lean.ts +39 -0
- package/.sdk/src/cmp/lean/ReadmeIntro_lean.ts +25 -0
- package/.sdk/src/cmp/lean/ReadmeModel_lean.ts +24 -0
- package/.sdk/src/cmp/lean/ReadmeOptions_lean.ts +22 -0
- package/.sdk/src/cmp/lean/ReadmeQuick_lean.ts +50 -0
- package/.sdk/src/cmp/lean/ReadmeRef_lean.ts +40 -0
- package/.sdk/src/cmp/lean/ReadmeTopHowto_lean.ts +16 -0
- package/.sdk/src/cmp/lean/ReadmeTopQuick_lean.ts +23 -0
- package/.sdk/src/cmp/lean/ReadmeTopTest_lean.ts +19 -0
- package/.sdk/src/cmp/lean/Test_lean.ts +261 -0
- package/.sdk/src/cmp/lean/utility_lean.ts +129 -0
- package/.sdk/tm/dart/LICENSE +22 -0
- package/.sdk/tm/dart/Makefile +50 -0
- package/.sdk/tm/dart/lib/Context.dart +150 -0
- package/.sdk/tm/dart/lib/Control.dart +15 -0
- package/.sdk/tm/dart/lib/Operation.dart +31 -0
- package/.sdk/tm/dart/lib/Point.dart +51 -0
- package/.sdk/tm/dart/lib/Response.dart +32 -0
- package/.sdk/tm/dart/lib/Result.dart +39 -0
- package/.sdk/tm/dart/lib/Spec.dart +49 -0
- package/.sdk/tm/dart/lib/feature/audit/AuditFeature.dart +103 -0
- package/.sdk/tm/dart/lib/feature/base/BaseFeature.dart +76 -0
- package/.sdk/tm/dart/lib/feature/cache/CacheFeature.dart +152 -0
- package/.sdk/tm/dart/lib/feature/clienttrack/ClienttrackFeature.dart +104 -0
- package/.sdk/tm/dart/lib/feature/cost/CostFeature.dart +446 -0
- package/.sdk/tm/dart/lib/feature/debug/DebugFeature.dart +153 -0
- package/.sdk/tm/dart/lib/feature/idempotency/IdempotencyFeature.dart +92 -0
- package/.sdk/tm/dart/lib/feature/log/LogFeature.dart +85 -0
- package/.sdk/tm/dart/lib/feature/metrics/MetricsFeature.dart +103 -0
- package/.sdk/tm/dart/lib/feature/netsim/NetsimFeature.dart +186 -0
- package/.sdk/tm/dart/lib/feature/paging/PagingFeature.dart +240 -0
- package/.sdk/tm/dart/lib/feature/proxy/ProxyFeature.dart +118 -0
- package/.sdk/tm/dart/lib/feature/ratelimit/RatelimitFeature.dart +103 -0
- package/.sdk/tm/dart/lib/feature/rbac/RbacFeature.dart +121 -0
- package/.sdk/tm/dart/lib/feature/retry/RetryFeature.dart +155 -0
- package/.sdk/tm/dart/lib/feature/secrets/SecretsFeature.dart +649 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/capability.dart +105 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/catalog.dart +46 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/config.dart +297 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/depend.dart +198 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/env.dart +144 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/export.dart +58 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/graph.dart +160 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/host.dart +1067 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/order.dart +172 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/plugin.dart +23 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/point.dart +117 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/ref.dart +105 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/resolve.dart +58 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/types.dart +201 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/version.dart +116 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/aws.dart +285 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/azuresecrets.dart +178 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/boru.dart +145 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/crypto.dart +194 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/doppler.dart +101 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/gcpsecrets.dart +143 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/hashicorp.dart +190 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/httpjson.dart +363 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/infisical.dart +149 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/onepassword.dart +146 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/secretspec.dart +116 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/sigv4.dart +237 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/src/addr.dart +138 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/src/json.dart +276 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/src/provider.dart +31 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/src/providers.dart +243 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/src/sekreto.dart +730 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/src/spec.dart +200 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/src/support.dart +217 -0
- package/.sdk/tm/dart/lib/feature/streaming/StreamingFeature.dart +97 -0
- package/.sdk/tm/dart/lib/feature/telemetry/TelemetryFeature.dart +136 -0
- package/.sdk/tm/dart/lib/feature/test/TestFeature.dart +328 -0
- package/.sdk/tm/dart/lib/feature/timeout/TimeoutFeature.dart +104 -0
- package/.sdk/tm/dart/lib/utility/CleanUtility.dart +12 -0
- package/.sdk/tm/dart/lib/utility/DoneUtility.dart +18 -0
- package/.sdk/tm/dart/lib/utility/ErrUtility.dart +46 -0
- package/.sdk/tm/dart/lib/utility/FeatureAddUtility.dart +35 -0
- package/.sdk/tm/dart/lib/utility/FeatureHookUtility.dart +20 -0
- package/.sdk/tm/dart/lib/utility/FeatureInitUtility.dart +9 -0
- package/.sdk/tm/dart/lib/utility/FetcherUtility.dart +104 -0
- package/.sdk/tm/dart/lib/utility/GraphqlUtility.dart +162 -0
- package/.sdk/tm/dart/lib/utility/MakeContextUtility.dart +6 -0
- package/.sdk/tm/dart/lib/utility/MakeErrorUtility.dart +71 -0
- package/.sdk/tm/dart/lib/utility/MakeFetchDefUtility.dart +42 -0
- package/.sdk/tm/dart/lib/utility/MakeOptionsUtility.dart +233 -0
- package/.sdk/tm/dart/lib/utility/MakePointUtility.dart +130 -0
- package/.sdk/tm/dart/lib/utility/MakeRequestUtility.dart +66 -0
- package/.sdk/tm/dart/lib/utility/MakeResponseUtility.dart +59 -0
- package/.sdk/tm/dart/lib/utility/MakeResultUtility.dart +49 -0
- package/.sdk/tm/dart/lib/utility/MakeSpecUtility.dart +77 -0
- package/.sdk/tm/dart/lib/utility/MakeUrlUtility.dart +51 -0
- package/.sdk/tm/dart/lib/utility/ParamUtility.dart +56 -0
- package/.sdk/tm/dart/lib/utility/PrepareAuthUtility.dart +46 -0
- package/.sdk/tm/dart/lib/utility/PrepareBodyUtility.dart +19 -0
- package/.sdk/tm/dart/lib/utility/PrepareHeadersUtility.dart +11 -0
- package/.sdk/tm/dart/lib/utility/PrepareMethodUtility.dart +30 -0
- package/.sdk/tm/dart/lib/utility/PrepareParamsUtility.dart +23 -0
- package/.sdk/tm/dart/lib/utility/PreparePathUtility.dart +9 -0
- package/.sdk/tm/dart/lib/utility/PrepareQueryUtility.dart +18 -0
- package/.sdk/tm/dart/lib/utility/ResultBasicUtility.dart +29 -0
- package/.sdk/tm/dart/lib/utility/ResultBodyUtility.dart +15 -0
- package/.sdk/tm/dart/lib/utility/ResultHeadersUtility.dart +18 -0
- package/.sdk/tm/dart/lib/utility/StructUtility.dart +127 -0
- package/.sdk/tm/dart/lib/utility/TransformRequestUtility.dart +28 -0
- package/.sdk/tm/dart/lib/utility/TransformResponseUtility.dart +44 -0
- package/.sdk/tm/dart/lib/utility/Utility.dart +239 -0
- package/.sdk/tm/dart/lib/utility/voxgig_struct.dart +2462 -0
- package/.sdk/tm/dart/src/feature/README.md +3 -0
- package/.sdk/tm/dart/src/feature/audit/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/base/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/cache/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/clienttrack/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/cost/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/debug/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/idempotency/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/log/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/metrics/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/netsim/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/paging/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/proxy/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/ratelimit/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/rbac/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/retry/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/secrets/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/streaming/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/telemetry/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/test/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/timeout/.gitkeep +0 -0
- package/.sdk/tm/dart/test/custom_test.dart +65 -0
- package/.sdk/tm/dart/test/exists_test.dart +12 -0
- package/.sdk/tm/dart/test/feature/harness.dart +347 -0
- package/.sdk/tm/dart/test/feature/secrets/secrets_test.dart +1107 -0
- package/.sdk/tm/dart/test/feature_test.dart +1193 -0
- package/.sdk/tm/dart/test/harness.dart +153 -0
- package/.sdk/tm/dart/test/netsim_test.dart +48 -0
- package/.sdk/tm/dart/test/omni.dart +520 -0
- package/.sdk/tm/dart/test/omni_smoke_test.dart +143 -0
- package/.sdk/tm/dart/test/pipeline_test.dart +608 -0
- package/.sdk/tm/dart/test/primary_test.dart +476 -0
- package/.sdk/tm/dart/test/sdk-test-control.json +19 -0
- package/.sdk/tm/dart/test/struct_test.dart +468 -0
- package/.sdk/tm/dart/test/utility.dart +198 -0
- package/.sdk/tm/dart/test/vendor/omni/omni.dart +7 -0
- package/.sdk/tm/dart/test/vendor/omni/runner.dart +653 -0
- package/.sdk/tm/dart/test/vendor/omni/util.dart +232 -0
- package/.sdk/tm/haskell/LICENSE +21 -0
- package/.sdk/tm/haskell/Makefile +22 -0
- package/.sdk/tm/haskell/VERSION +1 -0
- package/.sdk/tm/haskell/src/SdkFeatures.hs +1440 -0
- package/.sdk/tm/haskell/src/SdkHelpers.hs +337 -0
- package/.sdk/tm/haskell/src/SdkJson.hs +111 -0
- package/.sdk/tm/haskell/src/SdkRuntime.hs +1279 -0
- package/.sdk/tm/haskell/src/SdkTypes.hs +195 -0
- package/.sdk/tm/haskell/src/VoxgigStruct.hs +2299 -0
- package/.sdk/tm/haskell/src/Vregex.hs +237 -0
- package/.sdk/tm/haskell/src/feature/README.md +5 -0
- package/.sdk/tm/haskell/src/feature/audit/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/base/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/cache/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/clienttrack/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/debug/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/idempotency/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/log/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/metrics/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/netsim/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/paging/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/proxy/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/ratelimit/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/rbac/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/retry/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/streaming/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/telemetry/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/test/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/timeout/.gitkeep +0 -0
- package/.sdk/tm/haskell/test/Harness.hs +281 -0
- package/.sdk/tm/haskell/test/OmniResolver.hs +252 -0
- package/.sdk/tm/haskell/test/Runner.hs +49 -0
- package/.sdk/tm/haskell/test/StructCorpus.hs +449 -0
- package/.sdk/tm/haskell/test/TCustomUtility.hs +38 -0
- package/.sdk/tm/haskell/test/TFeature.hs +794 -0
- package/.sdk/tm/haskell/test/TNetsim.hs +50 -0
- package/.sdk/tm/haskell/test/TPipeline.hs +334 -0
- package/.sdk/tm/haskell/test/TPrimaryCorpus.hs +263 -0
- package/.sdk/tm/haskell/test/TPrimaryUtility.hs +386 -0
- package/.sdk/tm/haskell/test/Testutil.hs +59 -0
- package/.sdk/tm/haskell/test/vendor/omni/Omni.hs +1147 -0
- package/.sdk/tm/lean/LICENSE +21 -0
- package/.sdk/tm/lean/Makefile +32 -0
- package/.sdk/tm/lean/VERSION +1 -0
- package/.sdk/tm/lean/src/SdkFeature.lean +171 -0
- package/.sdk/tm/lean/src/SdkFeatures.lean +787 -0
- package/.sdk/tm/lean/src/SdkJson.lean +134 -0
- package/.sdk/tm/lean/src/SdkRuntime.lean +374 -0
- package/.sdk/tm/lean/src/SdkUtility.lean +809 -0
- package/.sdk/tm/lean/src/VoxgigStruct.lean +2880 -0
- package/.sdk/tm/lean/src/Vregex.lean +412 -0
- package/.sdk/tm/lean/src/feature/README.md +5 -0
- package/.sdk/tm/lean/src/feature/audit/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/base/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/cache/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/clienttrack/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/cost/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/debug/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/idempotency/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/log/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/metrics/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/netsim/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/paging/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/proxy/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/ratelimit/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/rbac/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/retry/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/streaming/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/telemetry/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/test/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/timeout/.gitkeep +0 -0
- package/.sdk/tm/lean/test/OmniResolver.lean +358 -0
- package/.sdk/tm/lean/test/OmniSmoke.lean +174 -0
- package/.sdk/tm/lean/test/StructCorpus.lean +368 -0
- package/.sdk/tm/lean/test/TFeature.lean +281 -0
- package/.sdk/tm/lean/test/TPrimaryUtility.lean +227 -0
- package/.sdk/tm/lean/test/vendor/omni/Omni.lean +997 -0
- package/LICENSE +21 -0
- package/README.md +104 -0
- package/package.json +78 -0
- package/sdkgen-package.json +22 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
-- ProjectName SDK core types.
|
|
2
|
+
--
|
|
3
|
+
-- The SDK data model is the vendored voxgig struct `Value` type
|
|
4
|
+
-- (VoxgigStruct.hs): a JSON-shaped, reference-stable (IORef-backed) node used
|
|
5
|
+
-- for ctx data, specs, options, transport payloads and results — exactly as
|
|
6
|
+
-- the Python/Go SDKs pass map[string]any around.
|
|
7
|
+
--
|
|
8
|
+
-- Haskell is purely functional, but the operation pipeline is inherently a
|
|
9
|
+
-- shared-mutable state machine (feature hooks observe and mutate the context
|
|
10
|
+
-- across stages, transport wrappers re-bind the fetcher). So the pipeline
|
|
11
|
+
-- objects — context, control (as Value maps), the utility bundle, features and
|
|
12
|
+
-- entities — carry `IORef` cells and the whole pipeline runs in `IO`. The
|
|
13
|
+
-- feature/utility indirection the dynamic donors get from late binding is
|
|
14
|
+
-- reproduced with function-valued record fields (the utility "registrar"
|
|
15
|
+
-- pattern). spec/response/result/operation/point/control are struct `Value`
|
|
16
|
+
-- maps (already IORef-backed, reference-stable), so no separate record types.
|
|
17
|
+
--
|
|
18
|
+
-- An SDK error is a struct Value map tagged `__sdkerr__` (see SdkHelpers.mkErr)
|
|
19
|
+
-- so it can travel on `ctx.out` alongside pipeline products; the throwing path
|
|
20
|
+
-- raises it as `SdkException`.
|
|
21
|
+
|
|
22
|
+
module SdkTypes where
|
|
23
|
+
|
|
24
|
+
import Control.Exception (Exception)
|
|
25
|
+
import Data.IORef (IORef)
|
|
26
|
+
import qualified Data.Map.Strict as Map
|
|
27
|
+
|
|
28
|
+
import VoxgigStruct (Value (..))
|
|
29
|
+
|
|
30
|
+
-- | Transport: (ctx, url, fetchdef) -> (response-map, Maybe error-map).
|
|
31
|
+
type Fetcher = Context -> String -> Value -> IO (Value, Maybe Value)
|
|
32
|
+
|
|
33
|
+
-- | param(ctx, paramdef) -> value.
|
|
34
|
+
type ParamFn = Context -> Value -> IO Value
|
|
35
|
+
|
|
36
|
+
-- | (product, Maybe error-map) — the pipeline utility return shape.
|
|
37
|
+
type UResult = IO (Value, Maybe Value)
|
|
38
|
+
|
|
39
|
+
-- | A lean view of the vendored struct exposed on utility.struct.
|
|
40
|
+
data StructApi = StructApi
|
|
41
|
+
{ sGetprop :: Value -> Value -> IO Value
|
|
42
|
+
, sSetprop :: Value -> Value -> Value -> IO Value
|
|
43
|
+
, sGetpath :: Value -> Value -> IO Value
|
|
44
|
+
, sGetelem :: Value -> Value -> IO Value
|
|
45
|
+
, sClone :: Value -> IO Value
|
|
46
|
+
, sMerge :: [Value] -> IO Value
|
|
47
|
+
, sItems :: Value -> IO Value
|
|
48
|
+
, sKeysof :: Value -> IO [String]
|
|
49
|
+
, sSize :: Value -> IO Int
|
|
50
|
+
, sIsempty :: Value -> IO Bool
|
|
51
|
+
, sStringify :: Value -> IO String
|
|
52
|
+
, sJsonify :: Value -> IO String
|
|
53
|
+
, sEscurl :: Value -> IO String
|
|
54
|
+
, sEscre :: Value -> IO String
|
|
55
|
+
, sTransform :: Value -> Value -> IO Value
|
|
56
|
+
, sValidate :: Value -> Value -> IO Value
|
|
57
|
+
, sSelect :: Value -> Value -> IO Value
|
|
58
|
+
, sWalk :: (Value -> Value -> Value -> Value -> IO Value) -> Value -> IO Value
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
-- | The utility bundle. `fetcher` (transport, wrapped by features) and `param`
|
|
62
|
+
-- vary per client/test; `custom` holds caller-supplied callables; the fixed
|
|
63
|
+
-- pipeline utilities are top-level functions in SdkRuntime.
|
|
64
|
+
data Utility = Utility
|
|
65
|
+
{ uCustom :: IORef Value
|
|
66
|
+
, uStruct :: StructApi
|
|
67
|
+
, uFetcher :: IORef Fetcher
|
|
68
|
+
, uParam :: IORef ParamFn
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
-- | A pipeline feature: name/version/active bookkeeping, the `fOptions`
|
|
72
|
+
-- ordering carrier consulted by feature_add (__before__/__after__/__replace__),
|
|
73
|
+
-- an `init` and a name-keyed hook dispatch.
|
|
74
|
+
data Feature = Feature
|
|
75
|
+
{ fName :: String
|
|
76
|
+
, fVersion :: String
|
|
77
|
+
, fActive :: IORef Bool
|
|
78
|
+
, fOptions :: IORef Value
|
|
79
|
+
, fInit :: Context -> Value -> IO ()
|
|
80
|
+
, fHook :: String -> Context -> IO ()
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
-- | Operation description. entity/name/input are strings; points/alias Values.
|
|
84
|
+
data Operation = Operation
|
|
85
|
+
{ opEntity :: String
|
|
86
|
+
, opName :: String
|
|
87
|
+
, opInput :: String
|
|
88
|
+
, opPoints :: Value
|
|
89
|
+
, opAlias :: Value
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
data Client = Client
|
|
93
|
+
{ clMode :: IORef String
|
|
94
|
+
, clFeatures :: IORef [Feature]
|
|
95
|
+
, clOptions :: IORef Value
|
|
96
|
+
, clUtility :: Utility
|
|
97
|
+
, clRootctx :: IORef (Maybe Context)
|
|
98
|
+
, clTrack :: IORef Value
|
|
99
|
+
, clConfig :: Value
|
|
100
|
+
, clMakeFeature :: String -> IO Feature
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
data Entity = Entity
|
|
104
|
+
{ eName :: String
|
|
105
|
+
, eClient :: Client
|
|
106
|
+
, eUtility :: Utility
|
|
107
|
+
, eEntopts :: Value
|
|
108
|
+
, eData :: IORef Value
|
|
109
|
+
, eMatch :: IORef Value
|
|
110
|
+
, eEntctx :: IORef (Maybe Context)
|
|
111
|
+
, eMake :: IO Entity
|
|
112
|
+
, eDataSet :: Value -> IO ()
|
|
113
|
+
, eDataGet :: IO Value
|
|
114
|
+
-- | Every operation resolves to the ENTITY, not the raw data — 'eList' to
|
|
115
|
+
-- one per record. The record is reached through 'eDataGet'. 'Value' cannot
|
|
116
|
+
-- carry an entity (it is a closed data union), so the CONTRACT lives in
|
|
117
|
+
-- these signatures. See AGENTS.md "Entity operations return ENTITIES".
|
|
118
|
+
, eLoad :: Value -> Value -> IO Entity
|
|
119
|
+
, eList :: Value -> Value -> IO [Entity]
|
|
120
|
+
, eCreate :: Value -> Value -> IO Entity
|
|
121
|
+
, eUpdate :: Value -> Value -> IO Entity
|
|
122
|
+
, eRemove :: Value -> Value -> IO Entity
|
|
123
|
+
-- | 'eRemove' resolves to the entity, marked. The instance KEEPS the data
|
|
124
|
+
-- it held — a caller can still read what was deleted — but it is no longer
|
|
125
|
+
-- a live record.
|
|
126
|
+
, eDeleted :: IORef Bool
|
|
127
|
+
, eMarkDeleted :: IO ()
|
|
128
|
+
-- | stream action args callopts -> a lazy list of result items.
|
|
129
|
+
, eStream :: String -> Value -> Value -> IO [Value]
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
data Context = Context
|
|
133
|
+
{ cId :: String
|
|
134
|
+
, cOut :: IORef Value
|
|
135
|
+
, cCtrl :: IORef Value
|
|
136
|
+
, cMeta :: IORef Value
|
|
137
|
+
, cClient :: IORef (Maybe Client)
|
|
138
|
+
, cUtility :: IORef (Maybe Utility)
|
|
139
|
+
, cOp :: IORef Operation
|
|
140
|
+
, cPoint :: IORef Value
|
|
141
|
+
, cConfig :: IORef Value
|
|
142
|
+
, cEntopts :: IORef Value
|
|
143
|
+
, cOptions :: IORef Value
|
|
144
|
+
, cOpmap :: IORef (Map.Map String Operation)
|
|
145
|
+
, cResponse :: IORef Value
|
|
146
|
+
, cResult :: IORef Value
|
|
147
|
+
, cSpec :: IORef Value
|
|
148
|
+
, cData :: IORef Value
|
|
149
|
+
, cReqdata :: IORef Value
|
|
150
|
+
, cMatch :: IORef Value
|
|
151
|
+
, cReqmatch :: IORef Value
|
|
152
|
+
, cEntity :: IORef (Maybe Entity)
|
|
153
|
+
, cShared :: IORef Value
|
|
154
|
+
, cScratch :: IORef Value
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
-- | Construction spec for a context (the dynamic donors pass an untyped
|
|
158
|
+
-- ctxmap; here a typed optional-field builder, mirroring the rust CtxSpec).
|
|
159
|
+
data CtxSpec = CtxSpec
|
|
160
|
+
{ csOpname :: Maybe String
|
|
161
|
+
, csClient :: Maybe Client
|
|
162
|
+
, csUtility :: Maybe Utility
|
|
163
|
+
, csCtrl :: Maybe Value
|
|
164
|
+
, csMeta :: Maybe Value
|
|
165
|
+
, csConfig :: Maybe Value
|
|
166
|
+
, csEntopts :: Maybe Value
|
|
167
|
+
, csOptions :: Maybe Value
|
|
168
|
+
, csEntity :: Maybe Entity
|
|
169
|
+
, csShared :: Maybe Value
|
|
170
|
+
, csOpmap :: Maybe (IORef (Map.Map String Operation))
|
|
171
|
+
, csData :: Maybe Value
|
|
172
|
+
, csReqdata :: Maybe Value
|
|
173
|
+
, csMatch :: Maybe Value
|
|
174
|
+
, csReqmatch :: Maybe Value
|
|
175
|
+
, csPoint :: Maybe Value
|
|
176
|
+
, csSpec :: Maybe Value
|
|
177
|
+
, csResult :: Maybe Value
|
|
178
|
+
, csResponse :: Maybe Value
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
defaultCtxSpec :: CtxSpec
|
|
182
|
+
defaultCtxSpec = CtxSpec
|
|
183
|
+
{ csOpname = Nothing, csClient = Nothing, csUtility = Nothing, csCtrl = Nothing
|
|
184
|
+
, csMeta = Nothing, csConfig = Nothing, csEntopts = Nothing, csOptions = Nothing
|
|
185
|
+
, csEntity = Nothing, csShared = Nothing, csOpmap = Nothing, csData = Nothing
|
|
186
|
+
, csReqdata = Nothing, csMatch = Nothing, csReqmatch = Nothing, csPoint = Nothing
|
|
187
|
+
, csSpec = Nothing, csResult = Nothing, csResponse = Nothing }
|
|
188
|
+
|
|
189
|
+
-- | The exception raised on the throwing pipeline path; carries the error-map.
|
|
190
|
+
newtype SdkException = SdkException Value
|
|
191
|
+
|
|
192
|
+
instance Show SdkException where
|
|
193
|
+
show (SdkException _) = "ProjectNameSDK error"
|
|
194
|
+
|
|
195
|
+
instance Exception SdkException
|