@@ -89,7 +89,7 @@ The `mdk.rs` file contains all the glue code including the typegraph types.
{
- require("!!code-loader!../../../../../examples/typegraphs/metagen/rs/mdk.rs")
+ require("!!code-loader!../../../../../examples/typegraphs/metagen/rs/fdk.rs")
.content
}
@@ -119,7 +119,7 @@ meta gen metagen_rs
# variablize common names
TARGET=wasm32-wasi
-CRATE_NAME=metagen_rs_mdk
+CRATE_NAME=metagen_rs_fdk
# build in release mode for smallest sizes
cargo build -p $CRATE_NAME --target $TARGET --release
diff --git a/docs/metatype.dev/docs/reference/meta-cli/available-commands.mdx b/docs/metatype.dev/docs/reference/meta-cli/available-commands.mdx
index de6a1b0596..b971a3960f 100644
--- a/docs/metatype.dev/docs/reference/meta-cli/available-commands.mdx
+++ b/docs/metatype.dev/docs/reference/meta-cli/available-commands.mdx
@@ -6,7 +6,7 @@
| -------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| deploy | meta deploy --target dev --file path/to/typegraph.py
meta --dir folder/to/typegraphs dev --run-destructive-migrations
| Deploy typegraph to a typegate instance |
| undeploy | meta undeploy --target dev --typegraph logs accounting services
| Undeploy typegraphs by name |
-| gen | meta gen mod --file path/to/typegraph.py
meta gen mdk
| Generate script or files that are used in your typegraph |
+| gen | meta gen mod --file path/to/typegraph.py
meta gen fdk
| Generate script or files that are used in your typegraph |
| typegate | meta typegate --quiet
| Access a minimal deno CLI |
| dev | meta dev
| Launch CLI in dev mode |
diff --git a/docs/metatype.dev/docs/reference/metagen/index.mdx b/docs/metatype.dev/docs/reference/metagen/index.mdx
index 69551b684c..3f9832b43e 100644
--- a/docs/metatype.dev/docs/reference/metagen/index.mdx
+++ b/docs/metatype.dev/docs/reference/metagen/index.mdx
@@ -30,20 +30,20 @@ metagen:
targets:
main:
# generator to use
- - generator: mdk_rust
+ - generator: fdk_rust
# path to generate to
path: ./bff/
# typegraph path to use
typegraph_path: ./typegraphs/svc-bff.ts
# we can have multiple generators per target
- - generator: mdk_rust
+ - generator: fdk_rust
path: ./telemetry/
typegraph_path: ./typegraphs/svc-telemetry.ts
# generators might have custom keys
stubbed_runtimes: ["wasm_wire", "deno"]
# more than one targets avail if you need them
iter:
- - generator: mdk_typescript
+ - generator: fdk_typescript
path: ./ts/
# name of typegraph to read from typegate
typegraph: svc_products
@@ -77,7 +77,7 @@ To resolve this concern, the SDKs support a serialization mode that skips resolu
:::
-### `mdk_typescript`
+### `fdk_typescript`
This generator supports:
@@ -110,7 +110,7 @@ Custom function:
@@ -121,14 +121,14 @@ It supports the following extra configuration keys.
| ------------------ | ---------- | ---------- | ------------------------------------------ |
| `stubbed_runtimes` | `string[]` | `["deno"]` | Runtimes for which to generate stub types. |
-### `mdk_python`
+### `fdk_python`
This generator supports:
- Python classes that map to typegraph types
- Decorators for custom functions implementors that require adherance to typegraph function types.
- By default, all functions from the `PythonRuntime` get stub types.
- - TODO: `stubbed_runtimes` for `mdk_python`
+ - TODO: `stubbed_runtimes` for `fdk_python`
- TODO: types for interacting with the typegate from within custom functions.
If the referenced module for the custom function is not found, the generator will also output stub implementation (in addition to the types) at the given type. It will not replace our code on a second run.
@@ -160,7 +160,7 @@ Custom function:
/>
-### `mdk_rust`
+### `fdk_rust`
This generator generates types, serializers and bindings needed to implement custom functions in Rust. Rust implementations will need to be compiled to wasm components to be executed on the metatype platform and the generator assumes such usage.
@@ -200,7 +200,7 @@ Custom function: