@modelrelay/sdk 4.0.0 → 5.1.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.
@@ -945,7 +945,7 @@ interface paths {
945
945
  };
946
946
  get?: never;
947
947
  put?: never;
948
- /** Compile a Claude Code skill to workflow.v1 */
948
+ /** Compile a Claude Code skill to workflow */
949
949
  post: operations["compileSkill"];
950
950
  delete?: never;
951
951
  options?: never;
@@ -964,7 +964,7 @@ interface paths {
964
964
  put?: never;
965
965
  /**
966
966
  * Start a workflow run
967
- * @description Starts a run for a `workflow.v1` spec and returns a `run_id`. Auth matches `/responses` (API key or frontend bearer token). Session owner tokens from `/auth/login` are not accepted. Provide `session_id` to link the run to a session; when linked, assistant messages are appended to the session on completion.
967
+ * @description Starts a run for a `workflow` spec and returns a `run_id`. Auth matches `/responses` (API key or frontend bearer token). Session owner tokens from `/auth/login` are not accepted. Provide `session_id` to link the run to a session; when linked, assistant messages are appended to the session on completion. The workflow spec must include resolved models for all llm.responses/route.switch nodes; /runs does not resolve tier defaults.
968
968
  */
969
969
  post: operations["createRun"];
970
970
  delete?: never;
@@ -1093,46 +1093,6 @@ interface paths {
1093
1093
  patch?: never;
1094
1094
  trace?: never;
1095
1095
  };
1096
- "/schemas/workflow_v1.schema.json": {
1097
- parameters: {
1098
- query?: never;
1099
- header?: never;
1100
- path?: never;
1101
- cookie?: never;
1102
- };
1103
- /**
1104
- * Get JSON Schema for workflow.v1
1105
- * @description Returns the canonical JSON Schema (draft-07) for `workflow.v1`.
1106
- */
1107
- get: operations["getWorkflowV1Schema"];
1108
- put?: never;
1109
- post?: never;
1110
- delete?: never;
1111
- options?: never;
1112
- head?: never;
1113
- patch?: never;
1114
- trace?: never;
1115
- };
1116
- "/schemas/workflow_v1.strict.schema.json": {
1117
- parameters: {
1118
- query?: never;
1119
- header?: never;
1120
- path?: never;
1121
- cookie?: never;
1122
- };
1123
- /**
1124
- * Get strict JSON Schema for workflow.v1
1125
- * @description Returns the strict JSON Schema (draft-07) for `workflow.v1` structured outputs.
1126
- */
1127
- get: operations["getWorkflowV1StrictSchema"];
1128
- put?: never;
1129
- post?: never;
1130
- delete?: never;
1131
- options?: never;
1132
- head?: never;
1133
- patch?: never;
1134
- trace?: never;
1135
- };
1136
1096
  "/sessions": {
1137
1097
  parameters: {
1138
1098
  query?: never;
@@ -1231,6 +1191,26 @@ interface paths {
1231
1191
  patch?: never;
1232
1192
  trace?: never;
1233
1193
  };
1194
+ "/schemas/workflow.schema.json": {
1195
+ parameters: {
1196
+ query?: never;
1197
+ header?: never;
1198
+ path?: never;
1199
+ cookie?: never;
1200
+ };
1201
+ /**
1202
+ * Get JSON Schema for workflow
1203
+ * @description Returns the canonical JSON Schema (draft-07) for `workflow`.
1204
+ */
1205
+ get: operations["getWorkflowSchema"];
1206
+ put?: never;
1207
+ post?: never;
1208
+ delete?: never;
1209
+ options?: never;
1210
+ head?: never;
1211
+ patch?: never;
1212
+ trace?: never;
1213
+ };
1234
1214
  }
1235
1215
  type webhooks = Record<string, never>;
1236
1216
  interface components {
@@ -1785,20 +1765,30 @@ interface components {
1785
1765
  version?: string;
1786
1766
  };
1787
1767
  SkillSummaryV0: {
1788
- agents: string[];
1768
+ agents: components["schemas"]["PluginAgentV0"][];
1789
1769
  description?: string;
1790
1770
  name: string;
1791
1771
  };
1772
+ /** @description Request to compile a skill into a workflow. One of source, content, or files must be provided (mutually exclusive). */
1792
1773
  SkillsCompileRequest: {
1774
+ /** @description Inline skill content (single SKILL.md file). Mutually exclusive with source and files. */
1775
+ content?: string;
1776
+ /** @description Map of file paths to content for inline skills with multiple files (e.g., SKILL.md, agents/worker.md, commands/run.md). Mutually exclusive with source and content. */
1777
+ files?: {
1778
+ [key: string]: string;
1779
+ };
1780
+ /** @default 3 */
1781
+ max_attempts: number;
1793
1782
  model?: string;
1794
- source: string;
1783
+ /** @description GitHub URL to fetch skill from. Mutually exclusive with content and files. */
1784
+ source?: string;
1795
1785
  };
1796
1786
  SkillsCompileResponse: {
1797
1787
  /** Format: date-time */
1798
1788
  compiled_at: string;
1799
1789
  skill: components["schemas"]["SkillSummaryV0"];
1800
1790
  source_ref: string;
1801
- workflow: components["schemas"]["WorkflowSpecV1"];
1791
+ workflow: components["schemas"]["WorkflowSpec"];
1802
1792
  };
1803
1793
  /**
1804
1794
  * @description Billing interval for a tier.
@@ -1929,6 +1919,7 @@ interface components {
1929
1919
  RunsCreateOptionsV0: {
1930
1920
  idempotency_key?: string;
1931
1921
  };
1922
+ /** @description Create a workflow run. The workflow spec must include a resolved model for every llm.responses/route.switch node (including map.fanout subnodes); /runs does not resolve tiers or default models. */
1932
1923
  RunsCreateRequest: {
1933
1924
  /** @description Runtime inputs for the workflow. Required when the spec uses from_input references (e.g., map.fanout with items.from_input). Each key is the input name, and the value is the JSON data to provide. */
1934
1925
  input?: {
@@ -1940,7 +1931,7 @@ interface components {
1940
1931
  * @description Optional session ID to link this run to a session.
1941
1932
  */
1942
1933
  session_id?: string;
1943
- spec: components["schemas"]["WorkflowSpecV1"];
1934
+ spec: components["schemas"]["WorkflowSpec"];
1944
1935
  };
1945
1936
  RunsCreateResponse: {
1946
1937
  plan_hash: components["schemas"]["PlanHash"];
@@ -2679,8 +2670,8 @@ interface components {
2679
2670
  /** @enum {string} */
2680
2671
  status?: "delivered" | "failed";
2681
2672
  };
2682
- /** @description A `workflow.v1` spec. The canonical JSON Schema is available at `/schemas/workflow_v1.schema.json`. */
2683
- WorkflowSpecV1: {
2673
+ /** @description A `workflow` spec. The canonical JSON Schema is available at `/schemas/workflow.schema.json`. */
2674
+ WorkflowSpec: {
2684
2675
  [key: string]: unknown;
2685
2676
  };
2686
2677
  };
@@ -4980,46 +4971,6 @@ interface operations {
4980
4971
  };
4981
4972
  };
4982
4973
  };
4983
- getWorkflowV1Schema: {
4984
- parameters: {
4985
- query?: never;
4986
- header?: never;
4987
- path?: never;
4988
- cookie?: never;
4989
- };
4990
- requestBody?: never;
4991
- responses: {
4992
- /** @description Schema document */
4993
- 200: {
4994
- headers: {
4995
- [name: string]: unknown;
4996
- };
4997
- content: {
4998
- "application/schema+json": Record<string, never>;
4999
- };
5000
- };
5001
- };
5002
- };
5003
- getWorkflowV1StrictSchema: {
5004
- parameters: {
5005
- query?: never;
5006
- header?: never;
5007
- path?: never;
5008
- cookie?: never;
5009
- };
5010
- requestBody?: never;
5011
- responses: {
5012
- /** @description Schema document */
5013
- 200: {
5014
- headers: {
5015
- [name: string]: unknown;
5016
- };
5017
- content: {
5018
- "application/schema+json": Record<string, never>;
5019
- };
5020
- };
5021
- };
5022
- };
5023
4974
  listSessions: {
5024
4975
  parameters: {
5025
4976
  query?: {
@@ -5285,6 +5236,26 @@ interface operations {
5285
5236
  };
5286
5237
  };
5287
5238
  };
5239
+ getWorkflowSchema: {
5240
+ parameters: {
5241
+ query?: never;
5242
+ header?: never;
5243
+ path?: never;
5244
+ cookie?: never;
5245
+ };
5246
+ requestBody?: never;
5247
+ responses: {
5248
+ /** @description Schema document */
5249
+ 200: {
5250
+ headers: {
5251
+ [name: string]: unknown;
5252
+ };
5253
+ content: {
5254
+ "application/schema+json": Record<string, never>;
5255
+ };
5256
+ };
5257
+ };
5258
+ };
5288
5259
  }
5289
5260
 
5290
5261
  export type { $defs as $, components as c, operations as o, paths as p, webhooks as w };
@@ -945,7 +945,7 @@ interface paths {
945
945
  };
946
946
  get?: never;
947
947
  put?: never;
948
- /** Compile a Claude Code skill to workflow.v1 */
948
+ /** Compile a Claude Code skill to workflow */
949
949
  post: operations["compileSkill"];
950
950
  delete?: never;
951
951
  options?: never;
@@ -964,7 +964,7 @@ interface paths {
964
964
  put?: never;
965
965
  /**
966
966
  * Start a workflow run
967
- * @description Starts a run for a `workflow.v1` spec and returns a `run_id`. Auth matches `/responses` (API key or frontend bearer token). Session owner tokens from `/auth/login` are not accepted. Provide `session_id` to link the run to a session; when linked, assistant messages are appended to the session on completion.
967
+ * @description Starts a run for a `workflow` spec and returns a `run_id`. Auth matches `/responses` (API key or frontend bearer token). Session owner tokens from `/auth/login` are not accepted. Provide `session_id` to link the run to a session; when linked, assistant messages are appended to the session on completion. The workflow spec must include resolved models for all llm.responses/route.switch nodes; /runs does not resolve tier defaults.
968
968
  */
969
969
  post: operations["createRun"];
970
970
  delete?: never;
@@ -1093,46 +1093,6 @@ interface paths {
1093
1093
  patch?: never;
1094
1094
  trace?: never;
1095
1095
  };
1096
- "/schemas/workflow_v1.schema.json": {
1097
- parameters: {
1098
- query?: never;
1099
- header?: never;
1100
- path?: never;
1101
- cookie?: never;
1102
- };
1103
- /**
1104
- * Get JSON Schema for workflow.v1
1105
- * @description Returns the canonical JSON Schema (draft-07) for `workflow.v1`.
1106
- */
1107
- get: operations["getWorkflowV1Schema"];
1108
- put?: never;
1109
- post?: never;
1110
- delete?: never;
1111
- options?: never;
1112
- head?: never;
1113
- patch?: never;
1114
- trace?: never;
1115
- };
1116
- "/schemas/workflow_v1.strict.schema.json": {
1117
- parameters: {
1118
- query?: never;
1119
- header?: never;
1120
- path?: never;
1121
- cookie?: never;
1122
- };
1123
- /**
1124
- * Get strict JSON Schema for workflow.v1
1125
- * @description Returns the strict JSON Schema (draft-07) for `workflow.v1` structured outputs.
1126
- */
1127
- get: operations["getWorkflowV1StrictSchema"];
1128
- put?: never;
1129
- post?: never;
1130
- delete?: never;
1131
- options?: never;
1132
- head?: never;
1133
- patch?: never;
1134
- trace?: never;
1135
- };
1136
1096
  "/sessions": {
1137
1097
  parameters: {
1138
1098
  query?: never;
@@ -1231,6 +1191,26 @@ interface paths {
1231
1191
  patch?: never;
1232
1192
  trace?: never;
1233
1193
  };
1194
+ "/schemas/workflow.schema.json": {
1195
+ parameters: {
1196
+ query?: never;
1197
+ header?: never;
1198
+ path?: never;
1199
+ cookie?: never;
1200
+ };
1201
+ /**
1202
+ * Get JSON Schema for workflow
1203
+ * @description Returns the canonical JSON Schema (draft-07) for `workflow`.
1204
+ */
1205
+ get: operations["getWorkflowSchema"];
1206
+ put?: never;
1207
+ post?: never;
1208
+ delete?: never;
1209
+ options?: never;
1210
+ head?: never;
1211
+ patch?: never;
1212
+ trace?: never;
1213
+ };
1234
1214
  }
1235
1215
  type webhooks = Record<string, never>;
1236
1216
  interface components {
@@ -1785,20 +1765,30 @@ interface components {
1785
1765
  version?: string;
1786
1766
  };
1787
1767
  SkillSummaryV0: {
1788
- agents: string[];
1768
+ agents: components["schemas"]["PluginAgentV0"][];
1789
1769
  description?: string;
1790
1770
  name: string;
1791
1771
  };
1772
+ /** @description Request to compile a skill into a workflow. One of source, content, or files must be provided (mutually exclusive). */
1792
1773
  SkillsCompileRequest: {
1774
+ /** @description Inline skill content (single SKILL.md file). Mutually exclusive with source and files. */
1775
+ content?: string;
1776
+ /** @description Map of file paths to content for inline skills with multiple files (e.g., SKILL.md, agents/worker.md, commands/run.md). Mutually exclusive with source and content. */
1777
+ files?: {
1778
+ [key: string]: string;
1779
+ };
1780
+ /** @default 3 */
1781
+ max_attempts: number;
1793
1782
  model?: string;
1794
- source: string;
1783
+ /** @description GitHub URL to fetch skill from. Mutually exclusive with content and files. */
1784
+ source?: string;
1795
1785
  };
1796
1786
  SkillsCompileResponse: {
1797
1787
  /** Format: date-time */
1798
1788
  compiled_at: string;
1799
1789
  skill: components["schemas"]["SkillSummaryV0"];
1800
1790
  source_ref: string;
1801
- workflow: components["schemas"]["WorkflowSpecV1"];
1791
+ workflow: components["schemas"]["WorkflowSpec"];
1802
1792
  };
1803
1793
  /**
1804
1794
  * @description Billing interval for a tier.
@@ -1929,6 +1919,7 @@ interface components {
1929
1919
  RunsCreateOptionsV0: {
1930
1920
  idempotency_key?: string;
1931
1921
  };
1922
+ /** @description Create a workflow run. The workflow spec must include a resolved model for every llm.responses/route.switch node (including map.fanout subnodes); /runs does not resolve tiers or default models. */
1932
1923
  RunsCreateRequest: {
1933
1924
  /** @description Runtime inputs for the workflow. Required when the spec uses from_input references (e.g., map.fanout with items.from_input). Each key is the input name, and the value is the JSON data to provide. */
1934
1925
  input?: {
@@ -1940,7 +1931,7 @@ interface components {
1940
1931
  * @description Optional session ID to link this run to a session.
1941
1932
  */
1942
1933
  session_id?: string;
1943
- spec: components["schemas"]["WorkflowSpecV1"];
1934
+ spec: components["schemas"]["WorkflowSpec"];
1944
1935
  };
1945
1936
  RunsCreateResponse: {
1946
1937
  plan_hash: components["schemas"]["PlanHash"];
@@ -2679,8 +2670,8 @@ interface components {
2679
2670
  /** @enum {string} */
2680
2671
  status?: "delivered" | "failed";
2681
2672
  };
2682
- /** @description A `workflow.v1` spec. The canonical JSON Schema is available at `/schemas/workflow_v1.schema.json`. */
2683
- WorkflowSpecV1: {
2673
+ /** @description A `workflow` spec. The canonical JSON Schema is available at `/schemas/workflow.schema.json`. */
2674
+ WorkflowSpec: {
2684
2675
  [key: string]: unknown;
2685
2676
  };
2686
2677
  };
@@ -4980,46 +4971,6 @@ interface operations {
4980
4971
  };
4981
4972
  };
4982
4973
  };
4983
- getWorkflowV1Schema: {
4984
- parameters: {
4985
- query?: never;
4986
- header?: never;
4987
- path?: never;
4988
- cookie?: never;
4989
- };
4990
- requestBody?: never;
4991
- responses: {
4992
- /** @description Schema document */
4993
- 200: {
4994
- headers: {
4995
- [name: string]: unknown;
4996
- };
4997
- content: {
4998
- "application/schema+json": Record<string, never>;
4999
- };
5000
- };
5001
- };
5002
- };
5003
- getWorkflowV1StrictSchema: {
5004
- parameters: {
5005
- query?: never;
5006
- header?: never;
5007
- path?: never;
5008
- cookie?: never;
5009
- };
5010
- requestBody?: never;
5011
- responses: {
5012
- /** @description Schema document */
5013
- 200: {
5014
- headers: {
5015
- [name: string]: unknown;
5016
- };
5017
- content: {
5018
- "application/schema+json": Record<string, never>;
5019
- };
5020
- };
5021
- };
5022
- };
5023
4974
  listSessions: {
5024
4975
  parameters: {
5025
4976
  query?: {
@@ -5285,6 +5236,26 @@ interface operations {
5285
5236
  };
5286
5237
  };
5287
5238
  };
5239
+ getWorkflowSchema: {
5240
+ parameters: {
5241
+ query?: never;
5242
+ header?: never;
5243
+ path?: never;
5244
+ cookie?: never;
5245
+ };
5246
+ requestBody?: never;
5247
+ responses: {
5248
+ /** @description Schema document */
5249
+ 200: {
5250
+ headers: {
5251
+ [name: string]: unknown;
5252
+ };
5253
+ content: {
5254
+ "application/schema+json": Record<string, never>;
5255
+ };
5256
+ };
5257
+ };
5258
+ };
5288
5259
  }
5289
5260
 
5290
5261
  export type { $defs as $, components as c, operations as o, paths as p, webhooks as w };
@@ -1,4 +1,4 @@
1
- import { c as components } from '../api-Bitsm1tl.cjs';
1
+ import { c as components } from '../api-c1j5ycVR.cjs';
2
2
 
3
3
  /**
4
4
  * Billing client for customer self-service operations.
@@ -1,4 +1,4 @@
1
- import { c as components } from '../api-Bitsm1tl.js';
1
+ import { c as components } from '../api-c1j5ycVR.js';
2
2
 
3
3
  /**
4
4
  * Billing client for customer self-service operations.
@@ -220,7 +220,7 @@ async function parseErrorResponse(response, retries) {
220
220
  // package.json
221
221
  var package_default = {
222
222
  name: "@modelrelay/sdk",
223
- version: "4.0.0",
223
+ version: "5.1.0",
224
224
  description: "TypeScript SDK for the ModelRelay API",
225
225
  type: "module",
226
226
  main: "dist/index.cjs",