(schemaPath?: string)
| 1410 | } |
| 1411 | |
| 1412 | export async function generateSessionEvents(schemaPath?: string): Promise<void> { |
| 1413 | console.log("C#: generating session-events..."); |
| 1414 | const resolvedPath = schemaPath ?? (await getSessionEventsSchemaPath()); |
| 1415 | const schema = cloneSchemaForCodegen((await loadSchemaJson(resolvedPath)) as JSONSchema7); |
| 1416 | const processed = propagateInternalVisibility(postProcessSchema(schema)); |
| 1417 | const code = generateSessionEventsCode(processed); |
| 1418 | const outPath = await writeGeneratedFile("dotnet/src/Generated/SessionEvents.cs", code); |
| 1419 | console.log(` ✓ ${outPath}`); |
| 1420 | await formatCSharpFile(outPath); |
| 1421 | } |
| 1422 | |
| 1423 | // ══════════════════════════════════════════════════════════════════════════════ |
| 1424 | // RPC TYPES |
no test coverage detected
searching dependent graphs…