Codewerk
graphql to ts
Parses and validates the SDL with graphql-js 17.0.2 (a missing Query root is tolerated for type-only fragments) and walks the schema itself: object and interface types become interfaces with an optional __typename literal, nullable fields become "T | null", lists become Array<.>, input objects get optional keys for nullable fields, enums become string-literal unions (or TS enums), unions become union types, custom scalars become aliases (default unknown, mappable to string/number/boolean)..
POST https://code.halowerk.com/v1/graphql-to-tsInputs
| Field | Type | Required | Description |
|---|---|---|---|
| sdl | string | Yes | GraphQL schema definition language (SDL). |
| enums | string | No | Render enums as string-literal unions or as TypeScript enums. |
| scalars | object | No | TypeScript type per custom scalar name, e.g. {"DateTime": "string"}. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"sdl"
],
"properties": {
"sdl": {
"type": "string",
"minLength": 3,
"maxLength": 1000000,
"description": "GraphQL schema definition language (SDL)."
},
"enums": {
"type": "string",
"enum": [
"union",
"enum"
],
"default": "union",
"description": "Render enums as string-literal unions or as TypeScript enums."
},
"scalars": {
"type": "object",
"maxProperties": 100,
"additionalProperties": {
"type": "string",
"enum": [
"string",
"number",
"boolean",
"unknown",
"Record<string, unknown>",
"Array<unknown>"
]
},
"description": "TypeScript type per custom scalar name, e.g. {\"DateTime\": \"string\"}."
}
}
}Published input example
{
"sdl": "type Query { user(id: ID!): User }\n\"\"\"A registered user\"\"\"\ntype User { id: ID! name: String friends: [User!]! role: Role! }\nenum Role { ADMIN MEMBER }",
"scalars": {}
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Codewerk0.003 USDC
action sha pin
POSThttps://code.halowerk.com/v1/action-sha-pinFinds every "uses: owner/repo[/path]@ref" in a GitHub Actions workflow, resolves tags (including annotated tags) and branches to the commit SHA with git ls-remote against github.com, and rewrites the line to "uses: owner/repo[/path]@<sha> #
- Codewerk0.003 USDC
actionlint
POSThttps://code.halowerk.com/v1/actionlintRuns the official statically linked actionlint 1.7.12 release binary (MIT, SHA-256 checked against the published checksums) in an isolated child process without network, with the bundled ShellCheck 0.11.0 for run: scripts (pyflakes is not a
- Codewerk0.004 USDC
api changelog
POSThttps://code.halowerk.com/v1/api-changelogCompares operations, parameters, request bodies, response codes and media types, component schemas (one property level), servers and security schemes of two documents (Swagger 2.0 is converted with swagger2openapi first; 3.0 and 3.1 are rea