@maudecode/talaria-web-contracts 0.0.0

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.
Files changed (79) hide show
  1. package/dist/index.d.ts +14 -0
  2. package/dist/index.js +15 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/openapi.d.ts +7 -0
  5. package/dist/openapi.js +29 -0
  6. package/dist/openapi.js.map +1 -0
  7. package/dist/router.d.ts +4772 -0
  8. package/dist/router.js +25 -0
  9. package/dist/router.js.map +1 -0
  10. package/dist/routes/automation.d.ts +794 -0
  11. package/dist/routes/automation.js +70 -0
  12. package/dist/routes/automation.js.map +1 -0
  13. package/dist/routes/chat.d.ts +382 -0
  14. package/dist/routes/chat.js +33 -0
  15. package/dist/routes/chat.js.map +1 -0
  16. package/dist/routes/core.d.ts +400 -0
  17. package/dist/routes/core.js +128 -0
  18. package/dist/routes/core.js.map +1 -0
  19. package/dist/routes/git.d.ts +785 -0
  20. package/dist/routes/git.js +62 -0
  21. package/dist/routes/git.js.map +1 -0
  22. package/dist/routes/raw.d.ts +24 -0
  23. package/dist/routes/raw.js +107 -0
  24. package/dist/routes/raw.js.map +1 -0
  25. package/dist/routes/sessions.d.ts +1621 -0
  26. package/dist/routes/sessions.js +75 -0
  27. package/dist/routes/sessions.js.map +1 -0
  28. package/dist/routes/settings.d.ts +590 -0
  29. package/dist/routes/settings.js +57 -0
  30. package/dist/routes/settings.js.map +1 -0
  31. package/dist/routes/tools.d.ts +482 -0
  32. package/dist/routes/tools.js +65 -0
  33. package/dist/routes/tools.js.map +1 -0
  34. package/dist/routes/workspaces.d.ts +161 -0
  35. package/dist/routes/workspaces.js +31 -0
  36. package/dist/routes/workspaces.js.map +1 -0
  37. package/dist/sidecar/index.d.ts +5 -0
  38. package/dist/sidecar/index.js +6 -0
  39. package/dist/sidecar/index.js.map +1 -0
  40. package/dist/sidecar/methods.d.ts +1544 -0
  41. package/dist/sidecar/methods.js +38 -0
  42. package/dist/sidecar/methods.js.map +1 -0
  43. package/dist/sidecar/namespaces.d.ts +1766 -0
  44. package/dist/sidecar/namespaces.js +239 -0
  45. package/dist/sidecar/namespaces.js.map +1 -0
  46. package/dist/sidecar/rpc.d.ts +96 -0
  47. package/dist/sidecar/rpc.js +49 -0
  48. package/dist/sidecar/rpc.js.map +1 -0
  49. package/dist/sidecar/runtime.d.ts +53 -0
  50. package/dist/sidecar/runtime.js +29 -0
  51. package/dist/sidecar/runtime.js.map +1 -0
  52. package/dist/sidecar/version.d.ts +6 -0
  53. package/dist/sidecar/version.js +7 -0
  54. package/dist/sidecar/version.js.map +1 -0
  55. package/dist/sse.d.ts +335 -0
  56. package/dist/sse.js +91 -0
  57. package/dist/sse.js.map +1 -0
  58. package/dist/views.d.ts +2200 -0
  59. package/dist/views.js +249 -0
  60. package/dist/views.js.map +1 -0
  61. package/fixtures/sidecar/aux.json +14 -0
  62. package/fixtures/sidecar/commands.json +1232 -0
  63. package/fixtures/sidecar/config.json +15 -0
  64. package/fixtures/sidecar/cron.json +503 -0
  65. package/fixtures/sidecar/goals.json +164 -0
  66. package/fixtures/sidecar/kanban.json +952 -0
  67. package/fixtures/sidecar/mcp.json +22 -0
  68. package/fixtures/sidecar/models.json +63 -0
  69. package/fixtures/sidecar/plugins.json +1069 -0
  70. package/fixtures/sidecar/process.json +58 -0
  71. package/fixtures/sidecar/profiles.json +82 -0
  72. package/fixtures/sidecar/providers.json +1201 -0
  73. package/fixtures/sidecar/rpc.json +120 -0
  74. package/fixtures/sidecar/runtime.json +75 -0
  75. package/fixtures/sidecar/skills.json +490 -0
  76. package/fixtures/sidecar/state_db.json +61 -0
  77. package/fixtures/sidecar/stt.json +13 -0
  78. package/fixtures/sidecar/text.json +41 -0
  79. package/package.json +49 -0
@@ -0,0 +1,14 @@
1
+ export * from './sidecar/index.js';
2
+ export * from './routes/core.js';
3
+ export * from './routes/sessions.js';
4
+ export * from './routes/workspaces.js';
5
+ export * from './routes/git.js';
6
+ export * from './routes/raw.js';
7
+ export * from './routes/chat.js';
8
+ export * from './routes/settings.js';
9
+ export * from './routes/tools.js';
10
+ export * from './routes/automation.js';
11
+ export * from './views.js';
12
+ export * from './sse.js';
13
+ export { routeContract, type RouteContract } from './router.js';
14
+ export { generateOpenApiDocument, OPENAPI_INFO } from './openapi.js';
package/dist/index.js ADDED
@@ -0,0 +1,15 @@
1
+ export * from './sidecar/index.js';
2
+ export * from './routes/core.js';
3
+ export * from './routes/sessions.js';
4
+ export * from './routes/workspaces.js';
5
+ export * from './routes/git.js';
6
+ export * from './routes/raw.js';
7
+ export * from './routes/chat.js';
8
+ export * from './routes/settings.js';
9
+ export * from './routes/tools.js';
10
+ export * from './routes/automation.js';
11
+ export * from './views.js';
12
+ export * from './sse.js';
13
+ export { routeContract } from './router.js';
14
+ export { generateOpenApiDocument, OPENAPI_INFO } from './openapi.js';
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,aAAa,EAAsB,MAAM,aAAa,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,7 @@
1
+ export declare const OPENAPI_INFO: {
2
+ readonly title: "Talaria Web API";
3
+ readonly version: "1";
4
+ readonly description: "HTTP and SSE contract of the Talaria Web server. Generated from @maudecode/talaria-web-contracts; do not edit by hand.";
5
+ };
6
+ /** Generate the OpenAPI 3.1 document for the route contract. */
7
+ export declare function generateOpenApiDocument(): Promise<Record<string, unknown>>;
@@ -0,0 +1,29 @@
1
+ import { OpenAPIGenerator } from '@orpc/openapi';
2
+ import { ZodToJsonSchemaConverter } from '@orpc/zod/zod4';
3
+ import { routeContract } from './router.js';
4
+ import { RAW_ROUTES } from './routes/raw.js';
5
+ export const OPENAPI_INFO = {
6
+ title: 'Talaria Web API',
7
+ version: '1',
8
+ description: 'HTTP and SSE contract of the Talaria Web server. Generated from @maudecode/talaria-web-contracts; do not edit by hand.',
9
+ };
10
+ /** Generate the OpenAPI 3.1 document for the route contract. */
11
+ export async function generateOpenApiDocument() {
12
+ const generator = new OpenAPIGenerator({ schemaConverters: [new ZodToJsonSchemaConverter()] });
13
+ const document = await generator.generate(routeContract, { info: OPENAPI_INFO });
14
+ const paths = (document.paths ?? {});
15
+ for (const route of RAW_ROUTES) {
16
+ const operation = {
17
+ summary: route.summary,
18
+ tags: route.tags,
19
+ parameters: Object.entries(route.query ?? {}).map(([name, q]) => ({ name, in: 'query', required: q.required ?? false, description: q.description, schema: { type: 'string' } })),
20
+ responses: Object.fromEntries(Object.entries(route.responses).map(([status, r]) => [status, { description: r.description, ...(r.contentType ? { content: { [r.contentType]: {} } } : {}) }])),
21
+ };
22
+ if (route.requestBody)
23
+ operation.requestBody = { required: true, description: route.requestBody.description, content: { [route.requestBody.contentType]: {} } };
24
+ paths[route.path] = { ...(paths[route.path] ?? {}), [route.method.toLowerCase()]: operation };
25
+ }
26
+ document.paths = paths;
27
+ return document;
28
+ }
29
+ //# sourceMappingURL=openapi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openapi.js","sourceRoot":"","sources":["../src/openapi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,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