@bike4mind/sdk 1.1.2 → 1.3.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.
package/dist/index.d.cts CHANGED
@@ -119,7 +119,7 @@ interface paths {
119
119
  put?: never;
120
120
  /**
121
121
  * Execute a server-side tool
122
- * @description Runs one of the built-in server-side tools (`weather_info`, `web_search`, `web_fetch`) and returns its result as JSON. Authenticate with a JWT access token only - API keys are NOT accepted on this endpoint. Rate-limited to 100 requests/hour per user, counted separately from other endpoints. `request_id` echoes the X-Request-ID response header.
122
+ * @description Runs one of the built-in server-side tools (`weather_info`, `web_search`, `web_fetch`, `decide`) and returns its result as JSON. Authenticate with a JWT access token only - API keys are NOT accepted on this endpoint. Rate-limited to 100 requests/hour per user, counted separately from other endpoints. `request_id` echoes the X-Request-ID response header.
123
123
  */
124
124
  post: operations['executeTool'];
125
125
  delete?: never;
@@ -332,7 +332,7 @@ interface paths {
332
332
  put?: never;
333
333
  /**
334
334
  * Start a file upload
335
- * @description Registers a file and returns a presigned `upload_url`. Uploading is three steps: (1) call this endpoint with the file name, MIME type, and size in bytes; (2) `PUT` the raw bytes to `upload_url` before `upload_url_expires_at` - send no `Authorization` header, the URL signature is the credential, and do send a `Content-Type` matching `mime_type`; (3) poll `GET /api/v1/files/{id}` until `moderation_status` is `clean` (usually a few seconds after the PUT), then pass `id` wherever an endpoint takes a file id (for example `fabFileIds` and `referenceImageFabFileIds` on `POST /api/v1/image-edits`). Unsupported types, a size over the upload limit, or a size that would exceed your storage quota are rejected with 400 before any URL is issued. Authenticate with an API key (`b4m_live_`) carrying `files:write`, or a JWT.
335
+ * @description Registers a file and returns a presigned `upload_url`. Uploading is three steps: (1) call this endpoint with the file name, MIME type, and size in bytes; (2) `PUT` the raw bytes to `upload_url` before `upload_url_expires_at` - send no `Authorization` header, the URL signature is the credential, and do send a `Content-Type` matching `mime_type`; the URL is bound to `file_size`, so the body must be exactly that many bytes or storage refuses it with 403; (3) poll `GET /api/v1/files/{id}` until `moderation_status` is `clean` (usually a few seconds after the PUT), then pass `id` wherever an endpoint takes a file id (for example `fabFileIds` and `referenceImageFabFileIds` on `POST /api/v1/image-edits`). Unsupported types, a size over the upload limit, or a size that would exceed your storage quota are rejected with 400 before any URL is issued. Authenticate with an API key (`b4m_live_`) carrying `files:write`, or a JWT.
336
336
  */
337
337
  post: operations['createFileUpload'];
338
338
  delete?: never;
@@ -1335,6 +1335,21 @@ interface components {
1335
1335
  poll_url: string;
1336
1336
  };
1337
1337
  };
1338
+ startAgentExecutionResponse403: {
1339
+ error: string;
1340
+ request_id?: string;
1341
+ /**
1342
+ * @deprecated
1343
+ * @description Deprecated, sunset 2026-12-01. The `name` of whatever the server threw - usually one of our own error classes (`NotFoundError`, `UnprocessableEntityError`, ...), but on an unhandled 500 it can be a library or driver class name instead. Unstable by nature: these are internal names we rename at will, and the set is open. Documented only so the wire and this spec agree for the deprecation window; it is removed on the sunset date. Branch on the HTTP status, not on this.
1344
+ */
1345
+ name?: string;
1346
+ /** @description API key scopes this route accepts. Holding any one of them satisfies it. */
1347
+ required_scopes?: string[];
1348
+ /** @description API key scopes this route also requires. Every one must be held, on top of `required_scopes`. */
1349
+ also_required_scopes?: string[];
1350
+ /** @enum {string} */
1351
+ errorCode?: 'billing_organization_mismatch';
1352
+ };
1338
1353
  /**
1339
1354
  * @example {
1340
1355
  * "session_id": "<sessionId>",
@@ -1346,6 +1361,7 @@ interface components {
1346
1361
  message: string;
1347
1362
  model?: string;
1348
1363
  agent_id?: string;
1364
+ /** @description The organization whose credit pool pays for this run. You must belong to it; a non-member gets 404. Omit it to bill your personal credits. An organization-billed API key always bills its own organization: omit this or set it to the key's; any other value is a 403 (`errorCode: billing_organization_mismatch`). */
1349
1365
  organization_id?: string;
1350
1366
  tools?: string[];
1351
1367
  max_iterations?: number;
@@ -1525,7 +1541,7 @@ interface components {
1525
1541
  */
1526
1542
  executeToolRequest: {
1527
1543
  /** @enum {string} */
1528
- toolName: 'weather_info' | 'web_search' | 'web_fetch';
1544
+ toolName: 'weather_info' | 'web_search' | 'web_fetch' | 'decide';
1529
1545
  input: {
1530
1546
  [key: string]: unknown;
1531
1547
  };
@@ -1603,7 +1619,7 @@ interface components {
1603
1619
  */
1604
1620
  name?: string;
1605
1621
  /** @enum {string} */
1606
- errorCode?: 'unknown_model' | 'tool_search_unsupported' | 'all_tools_deferred' | 'deferred_tool_cache_control' | 'unknown_tool_reference';
1622
+ errorCode?: 'unknown_model' | 'tool_search_unsupported' | 'all_tools_deferred' | 'deferred_tool_cache_control' | 'unknown_tool_reference' | 'tool_changes_unsupported' | 'invalid_tool_change';
1607
1623
  };
1608
1624
  createCompletionResponse422: {
1609
1625
  error: string;
@@ -1644,6 +1660,7 @@ interface components {
1644
1660
  messages: {
1645
1661
  /** @enum {string} */
1646
1662
  role: 'user' | 'assistant' | 'system';
1663
+ /** @description A string, or an array of content blocks. A `system` message may instead hold only `tool_addition` / `tool_removal` blocks (`{ type, tool: { type: "tool_reference", name } }`) to load or unload a tool named in `tools` mid-conversation without invalidating the prompt cache. It must follow a user turn or an assistant turn ending in a tool search result, and be the last message or precede an assistant turn. Only on models whose `supports_tool_changes` is true and that are served by the direct Anthropic API; otherwise refused with `errorCode: "tool_changes_unsupported"` (or `invalid_tool_change` / `unknown_tool_reference` when malformed). */
1647
1664
  content: string | unknown[];
1648
1665
  cache?: boolean;
1649
1666
  }[];
@@ -2421,7 +2438,7 @@ interface components {
2421
2438
  /** @default [] */
2422
2439
  fabFileIds?: string[];
2423
2440
  referenceImageFabFileIds?: string[];
2424
- tools?: (('dice_roll' | 'image_generation' | 'edit_image' | 'music_generation' | 'audio_generation' | 'video_generation' | 'weather_info' | 'web_search' | 'web_fetch' | 'wolfram_alpha' | 'math_evaluate' | 'mermaid_chart' | 'current_datetime' | 'deep_research' | 'prompt_enhancement' | 'recharts' | 'edit_file' | 'blog_publish' | 'blog_edit' | 'blog_draft' | 'wikipedia_on_this_day' | 'moon_phase' | 'sunrise_sunset' | 'iss_tracker' | 'planet_visibility' | 'search_knowledge_base' | 'chess_engine' | 'retrieve_knowledge_content' | 'count_knowledge_base' | 'describe_knowledge_base' | 'list_my_data_lakes' | 'create_data_lake' | 'save_content_to_data_lake' | 'delegate_to_agent' | 'optihashi_schedule' | 'optihashi_formulate' | 'optihashi_edit_problem' | 'navigate_view' | 'generate_jupyter_notebook' | 'excel_generation' | 'fmp_financial_data' | 'bob_panel_read' | 'skill') | string)[];
2441
+ tools?: (('dice_roll' | 'image_generation' | 'edit_image' | 'music_generation' | 'audio_generation' | 'video_generation' | 'weather_info' | 'web_search' | 'web_fetch' | 'wolfram_alpha' | 'math_evaluate' | 'mermaid_chart' | 'current_datetime' | 'deep_research' | 'prompt_enhancement' | 'recharts' | 'edit_file' | 'blog_publish' | 'blog_edit' | 'blog_draft' | 'wikipedia_on_this_day' | 'moon_phase' | 'sunrise_sunset' | 'iss_tracker' | 'planet_visibility' | 'search_knowledge_base' | 'chess_engine' | 'retrieve_knowledge_content' | 'count_knowledge_base' | 'describe_knowledge_base' | 'decide' | 'list_my_data_lakes' | 'create_data_lake' | 'save_content_to_data_lake' | 'delegate_to_agent' | 'optihashi_schedule' | 'optihashi_formulate' | 'optihashi_edit_problem' | 'navigate_view' | 'generate_jupyter_notebook' | 'excel_generation' | 'fmp_financial_data' | 'bob_panel_read' | 'skill') | string)[];
2425
2442
  /** @default 2 */
2426
2443
  safety_tolerance?: number;
2427
2444
  prompt_upsampling?: boolean;
@@ -4985,7 +5002,7 @@ interface operations {
4985
5002
  'application/json': components['schemas']['startAgentExecutionResponse202'];
4986
5003
  };
4987
5004
  };
4988
- /** @description No usable default chat model is configured and none was supplied. */
5005
+ /** @description No usable default chat model is configured and none was supplied. An organization-billed API key bills an organization that no longer exists, or one its owner is no longer a member of; re-mint the key. */
4989
5006
  400: {
4990
5007
  headers: {
4991
5008
  /** @description Correlation id for this request; safe to log and quote in support requests. */
@@ -5019,15 +5036,27 @@ interface operations {
5019
5036
  'application/json': components['schemas']['ErrorResponse'];
5020
5037
  };
5021
5038
  };
5022
- /** @description The API key does not hold any of the required scopes. */
5039
+ /** @description The API key holds neither the `ai:chat` nor the `ai:generate` scope, or an organization-billed API key names any organization but its own (`errorCode: billing_organization_mismatch`). */
5023
5040
  403: {
5024
5041
  headers: {
5025
5042
  /** @description Correlation id for this request; safe to log and quote in support requests. */
5026
5043
  'X-Request-ID'?: string;
5044
+ /** @description Request quota per minute. */
5045
+ 'X-RateLimit-Limit-Minute'?: number;
5046
+ /** @description Requests remaining in the current minute. */
5047
+ 'X-RateLimit-Remaining-Minute'?: number;
5048
+ /** @description Unix epoch (seconds) when the minute window resets. */
5049
+ 'X-RateLimit-Reset-Minute'?: number;
5050
+ /** @description Request quota per day. */
5051
+ 'X-RateLimit-Limit-Day'?: number;
5052
+ /** @description Requests remaining in the current day. */
5053
+ 'X-RateLimit-Remaining-Day'?: number;
5054
+ /** @description Unix epoch (seconds) when the day window resets. */
5055
+ 'X-RateLimit-Reset-Day'?: number;
5027
5056
  [name: string]: unknown;
5028
5057
  };
5029
5058
  content: {
5030
- 'application/json': components['schemas']['ScopeForbiddenResponse'];
5059
+ 'application/json': components['schemas']['startAgentExecutionResponse403'];
5031
5060
  };
5032
5061
  };
5033
5062
  /** @description No session with the given `session_id` is owned by the caller, or `organization_id` names an organization the caller does not belong to. "Exists but is not yours" is reported as 404 too, so neither session ids nor org membership can be probed through this endpoint. */
@@ -6034,7 +6063,7 @@ interface operations {
6034
6063
  'text/event-stream': components['schemas']['createCompletionResponse200'];
6035
6064
  };
6036
6065
  };
6037
- /** @description Malformed or otherwise invalid request (no `errorCode`), or a `model` the caller cannot use (`errorCode: "unknown_model"`): not in the catalog or not available to the caller. List valid ids with `GET /api/v1/models`. Tool search requests are refused with: `tool_search_unsupported` (a server tool, `tool_reference` or echoed tool search block on a model that cannot serve tool search here), `all_tools_deferred` (every tool deferred and no server tool), `deferred_tool_cache_control` (`cache_control` on a deferred tool), `unknown_tool_reference` (a `tool_reference` naming a tool not in `tools`, or carrying no string `tool_name`). */
6066
+ /** @description Malformed or otherwise invalid request (no `errorCode`), or a `model` the caller cannot use (`errorCode: "unknown_model"`): not in the catalog or not available to the caller. List valid ids with `GET /api/v1/models`. Tool search requests are refused with: `tool_search_unsupported` (a server tool, `tool_reference` or echoed tool search block on a model that cannot serve tool search here), `all_tools_deferred` (every tool deferred and no server tool), `deferred_tool_cache_control` (`cache_control` on a deferred tool), `unknown_tool_reference` (a `tool_reference` naming a tool not in `tools`, or carrying no string `tool_name`). Mid-conversation tool changes are refused with: `tool_changes_unsupported` (a `tool_addition` / `tool_removal` system message on a model that cannot serve it here), `invalid_tool_change` (a malformed block, or one placed where the provider does not accept it), and `unknown_tool_reference` (a changed tool not in `tools`). */
6038
6067
  400: {
6039
6068
  headers: {
6040
6069
  /** @description Correlation id for this request; safe to log and quote in support requests. */
package/dist/index.d.mts CHANGED
@@ -119,7 +119,7 @@ interface paths {
119
119
  put?: never;
120
120
  /**
121
121
  * Execute a server-side tool
122
- * @description Runs one of the built-in server-side tools (`weather_info`, `web_search`, `web_fetch`) and returns its result as JSON. Authenticate with a JWT access token only - API keys are NOT accepted on this endpoint. Rate-limited to 100 requests/hour per user, counted separately from other endpoints. `request_id` echoes the X-Request-ID response header.
122
+ * @description Runs one of the built-in server-side tools (`weather_info`, `web_search`, `web_fetch`, `decide`) and returns its result as JSON. Authenticate with a JWT access token only - API keys are NOT accepted on this endpoint. Rate-limited to 100 requests/hour per user, counted separately from other endpoints. `request_id` echoes the X-Request-ID response header.
123
123
  */
124
124
  post: operations['executeTool'];
125
125
  delete?: never;
@@ -332,7 +332,7 @@ interface paths {
332
332
  put?: never;
333
333
  /**
334
334
  * Start a file upload
335
- * @description Registers a file and returns a presigned `upload_url`. Uploading is three steps: (1) call this endpoint with the file name, MIME type, and size in bytes; (2) `PUT` the raw bytes to `upload_url` before `upload_url_expires_at` - send no `Authorization` header, the URL signature is the credential, and do send a `Content-Type` matching `mime_type`; (3) poll `GET /api/v1/files/{id}` until `moderation_status` is `clean` (usually a few seconds after the PUT), then pass `id` wherever an endpoint takes a file id (for example `fabFileIds` and `referenceImageFabFileIds` on `POST /api/v1/image-edits`). Unsupported types, a size over the upload limit, or a size that would exceed your storage quota are rejected with 400 before any URL is issued. Authenticate with an API key (`b4m_live_`) carrying `files:write`, or a JWT.
335
+ * @description Registers a file and returns a presigned `upload_url`. Uploading is three steps: (1) call this endpoint with the file name, MIME type, and size in bytes; (2) `PUT` the raw bytes to `upload_url` before `upload_url_expires_at` - send no `Authorization` header, the URL signature is the credential, and do send a `Content-Type` matching `mime_type`; the URL is bound to `file_size`, so the body must be exactly that many bytes or storage refuses it with 403; (3) poll `GET /api/v1/files/{id}` until `moderation_status` is `clean` (usually a few seconds after the PUT), then pass `id` wherever an endpoint takes a file id (for example `fabFileIds` and `referenceImageFabFileIds` on `POST /api/v1/image-edits`). Unsupported types, a size over the upload limit, or a size that would exceed your storage quota are rejected with 400 before any URL is issued. Authenticate with an API key (`b4m_live_`) carrying `files:write`, or a JWT.
336
336
  */
337
337
  post: operations['createFileUpload'];
338
338
  delete?: never;
@@ -1335,6 +1335,21 @@ interface components {
1335
1335
  poll_url: string;
1336
1336
  };
1337
1337
  };
1338
+ startAgentExecutionResponse403: {
1339
+ error: string;
1340
+ request_id?: string;
1341
+ /**
1342
+ * @deprecated
1343
+ * @description Deprecated, sunset 2026-12-01. The `name` of whatever the server threw - usually one of our own error classes (`NotFoundError`, `UnprocessableEntityError`, ...), but on an unhandled 500 it can be a library or driver class name instead. Unstable by nature: these are internal names we rename at will, and the set is open. Documented only so the wire and this spec agree for the deprecation window; it is removed on the sunset date. Branch on the HTTP status, not on this.
1344
+ */
1345
+ name?: string;
1346
+ /** @description API key scopes this route accepts. Holding any one of them satisfies it. */
1347
+ required_scopes?: string[];
1348
+ /** @description API key scopes this route also requires. Every one must be held, on top of `required_scopes`. */
1349
+ also_required_scopes?: string[];
1350
+ /** @enum {string} */
1351
+ errorCode?: 'billing_organization_mismatch';
1352
+ };
1338
1353
  /**
1339
1354
  * @example {
1340
1355
  * "session_id": "<sessionId>",
@@ -1346,6 +1361,7 @@ interface components {
1346
1361
  message: string;
1347
1362
  model?: string;
1348
1363
  agent_id?: string;
1364
+ /** @description The organization whose credit pool pays for this run. You must belong to it; a non-member gets 404. Omit it to bill your personal credits. An organization-billed API key always bills its own organization: omit this or set it to the key's; any other value is a 403 (`errorCode: billing_organization_mismatch`). */
1349
1365
  organization_id?: string;
1350
1366
  tools?: string[];
1351
1367
  max_iterations?: number;
@@ -1525,7 +1541,7 @@ interface components {
1525
1541
  */
1526
1542
  executeToolRequest: {
1527
1543
  /** @enum {string} */
1528
- toolName: 'weather_info' | 'web_search' | 'web_fetch';
1544
+ toolName: 'weather_info' | 'web_search' | 'web_fetch' | 'decide';
1529
1545
  input: {
1530
1546
  [key: string]: unknown;
1531
1547
  };
@@ -1603,7 +1619,7 @@ interface components {
1603
1619
  */
1604
1620
  name?: string;
1605
1621
  /** @enum {string} */
1606
- errorCode?: 'unknown_model' | 'tool_search_unsupported' | 'all_tools_deferred' | 'deferred_tool_cache_control' | 'unknown_tool_reference';
1622
+ errorCode?: 'unknown_model' | 'tool_search_unsupported' | 'all_tools_deferred' | 'deferred_tool_cache_control' | 'unknown_tool_reference' | 'tool_changes_unsupported' | 'invalid_tool_change';
1607
1623
  };
1608
1624
  createCompletionResponse422: {
1609
1625
  error: string;
@@ -1644,6 +1660,7 @@ interface components {
1644
1660
  messages: {
1645
1661
  /** @enum {string} */
1646
1662
  role: 'user' | 'assistant' | 'system';
1663
+ /** @description A string, or an array of content blocks. A `system` message may instead hold only `tool_addition` / `tool_removal` blocks (`{ type, tool: { type: "tool_reference", name } }`) to load or unload a tool named in `tools` mid-conversation without invalidating the prompt cache. It must follow a user turn or an assistant turn ending in a tool search result, and be the last message or precede an assistant turn. Only on models whose `supports_tool_changes` is true and that are served by the direct Anthropic API; otherwise refused with `errorCode: "tool_changes_unsupported"` (or `invalid_tool_change` / `unknown_tool_reference` when malformed). */
1647
1664
  content: string | unknown[];
1648
1665
  cache?: boolean;
1649
1666
  }[];
@@ -2421,7 +2438,7 @@ interface components {
2421
2438
  /** @default [] */
2422
2439
  fabFileIds?: string[];
2423
2440
  referenceImageFabFileIds?: string[];
2424
- tools?: (('dice_roll' | 'image_generation' | 'edit_image' | 'music_generation' | 'audio_generation' | 'video_generation' | 'weather_info' | 'web_search' | 'web_fetch' | 'wolfram_alpha' | 'math_evaluate' | 'mermaid_chart' | 'current_datetime' | 'deep_research' | 'prompt_enhancement' | 'recharts' | 'edit_file' | 'blog_publish' | 'blog_edit' | 'blog_draft' | 'wikipedia_on_this_day' | 'moon_phase' | 'sunrise_sunset' | 'iss_tracker' | 'planet_visibility' | 'search_knowledge_base' | 'chess_engine' | 'retrieve_knowledge_content' | 'count_knowledge_base' | 'describe_knowledge_base' | 'list_my_data_lakes' | 'create_data_lake' | 'save_content_to_data_lake' | 'delegate_to_agent' | 'optihashi_schedule' | 'optihashi_formulate' | 'optihashi_edit_problem' | 'navigate_view' | 'generate_jupyter_notebook' | 'excel_generation' | 'fmp_financial_data' | 'bob_panel_read' | 'skill') | string)[];
2441
+ tools?: (('dice_roll' | 'image_generation' | 'edit_image' | 'music_generation' | 'audio_generation' | 'video_generation' | 'weather_info' | 'web_search' | 'web_fetch' | 'wolfram_alpha' | 'math_evaluate' | 'mermaid_chart' | 'current_datetime' | 'deep_research' | 'prompt_enhancement' | 'recharts' | 'edit_file' | 'blog_publish' | 'blog_edit' | 'blog_draft' | 'wikipedia_on_this_day' | 'moon_phase' | 'sunrise_sunset' | 'iss_tracker' | 'planet_visibility' | 'search_knowledge_base' | 'chess_engine' | 'retrieve_knowledge_content' | 'count_knowledge_base' | 'describe_knowledge_base' | 'decide' | 'list_my_data_lakes' | 'create_data_lake' | 'save_content_to_data_lake' | 'delegate_to_agent' | 'optihashi_schedule' | 'optihashi_formulate' | 'optihashi_edit_problem' | 'navigate_view' | 'generate_jupyter_notebook' | 'excel_generation' | 'fmp_financial_data' | 'bob_panel_read' | 'skill') | string)[];
2425
2442
  /** @default 2 */
2426
2443
  safety_tolerance?: number;
2427
2444
  prompt_upsampling?: boolean;
@@ -4985,7 +5002,7 @@ interface operations {
4985
5002
  'application/json': components['schemas']['startAgentExecutionResponse202'];
4986
5003
  };
4987
5004
  };
4988
- /** @description No usable default chat model is configured and none was supplied. */
5005
+ /** @description No usable default chat model is configured and none was supplied. An organization-billed API key bills an organization that no longer exists, or one its owner is no longer a member of; re-mint the key. */
4989
5006
  400: {
4990
5007
  headers: {
4991
5008
  /** @description Correlation id for this request; safe to log and quote in support requests. */
@@ -5019,15 +5036,27 @@ interface operations {
5019
5036
  'application/json': components['schemas']['ErrorResponse'];
5020
5037
  };
5021
5038
  };
5022
- /** @description The API key does not hold any of the required scopes. */
5039
+ /** @description The API key holds neither the `ai:chat` nor the `ai:generate` scope, or an organization-billed API key names any organization but its own (`errorCode: billing_organization_mismatch`). */
5023
5040
  403: {
5024
5041
  headers: {
5025
5042
  /** @description Correlation id for this request; safe to log and quote in support requests. */
5026
5043
  'X-Request-ID'?: string;
5044
+ /** @description Request quota per minute. */
5045
+ 'X-RateLimit-Limit-Minute'?: number;
5046
+ /** @description Requests remaining in the current minute. */
5047
+ 'X-RateLimit-Remaining-Minute'?: number;
5048
+ /** @description Unix epoch (seconds) when the minute window resets. */
5049
+ 'X-RateLimit-Reset-Minute'?: number;
5050
+ /** @description Request quota per day. */
5051
+ 'X-RateLimit-Limit-Day'?: number;
5052
+ /** @description Requests remaining in the current day. */
5053
+ 'X-RateLimit-Remaining-Day'?: number;
5054
+ /** @description Unix epoch (seconds) when the day window resets. */
5055
+ 'X-RateLimit-Reset-Day'?: number;
5027
5056
  [name: string]: unknown;
5028
5057
  };
5029
5058
  content: {
5030
- 'application/json': components['schemas']['ScopeForbiddenResponse'];
5059
+ 'application/json': components['schemas']['startAgentExecutionResponse403'];
5031
5060
  };
5032
5061
  };
5033
5062
  /** @description No session with the given `session_id` is owned by the caller, or `organization_id` names an organization the caller does not belong to. "Exists but is not yours" is reported as 404 too, so neither session ids nor org membership can be probed through this endpoint. */
@@ -6034,7 +6063,7 @@ interface operations {
6034
6063
  'text/event-stream': components['schemas']['createCompletionResponse200'];
6035
6064
  };
6036
6065
  };
6037
- /** @description Malformed or otherwise invalid request (no `errorCode`), or a `model` the caller cannot use (`errorCode: "unknown_model"`): not in the catalog or not available to the caller. List valid ids with `GET /api/v1/models`. Tool search requests are refused with: `tool_search_unsupported` (a server tool, `tool_reference` or echoed tool search block on a model that cannot serve tool search here), `all_tools_deferred` (every tool deferred and no server tool), `deferred_tool_cache_control` (`cache_control` on a deferred tool), `unknown_tool_reference` (a `tool_reference` naming a tool not in `tools`, or carrying no string `tool_name`). */
6066
+ /** @description Malformed or otherwise invalid request (no `errorCode`), or a `model` the caller cannot use (`errorCode: "unknown_model"`): not in the catalog or not available to the caller. List valid ids with `GET /api/v1/models`. Tool search requests are refused with: `tool_search_unsupported` (a server tool, `tool_reference` or echoed tool search block on a model that cannot serve tool search here), `all_tools_deferred` (every tool deferred and no server tool), `deferred_tool_cache_control` (`cache_control` on a deferred tool), `unknown_tool_reference` (a `tool_reference` naming a tool not in `tools`, or carrying no string `tool_name`). Mid-conversation tool changes are refused with: `tool_changes_unsupported` (a `tool_addition` / `tool_removal` system message on a model that cannot serve it here), `invalid_tool_change` (a malformed block, or one placed where the provider does not accept it), and `unknown_tool_reference` (a changed tool not in `tools`). */
6038
6067
  400: {
6039
6068
  headers: {
6040
6069
  /** @description Correlation id for this request; safe to log and quote in support requests. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bike4mind/sdk",
3
- "version": "1.1.2",
3
+ "version": "1.3.0",
4
4
  "description": "Typed client for the Bike4Mind HTTP API, generated from its OpenAPI spec",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Bike4Mind",