@bike4mind/sdk 1.2.0 → 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 +34 -6
- package/dist/index.d.mts +34 -6
- package/package.json +1 -1
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;
|
|
@@ -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
|
};
|
|
@@ -2422,7 +2438,7 @@ interface components {
|
|
|
2422
2438
|
/** @default [] */
|
|
2423
2439
|
fabFileIds?: string[];
|
|
2424
2440
|
referenceImageFabFileIds?: string[];
|
|
2425
|
-
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)[];
|
|
2426
2442
|
/** @default 2 */
|
|
2427
2443
|
safety_tolerance?: number;
|
|
2428
2444
|
prompt_upsampling?: boolean;
|
|
@@ -4986,7 +5002,7 @@ interface operations {
|
|
|
4986
5002
|
'application/json': components['schemas']['startAgentExecutionResponse202'];
|
|
4987
5003
|
};
|
|
4988
5004
|
};
|
|
4989
|
-
/** @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. */
|
|
4990
5006
|
400: {
|
|
4991
5007
|
headers: {
|
|
4992
5008
|
/** @description Correlation id for this request; safe to log and quote in support requests. */
|
|
@@ -5020,15 +5036,27 @@ interface operations {
|
|
|
5020
5036
|
'application/json': components['schemas']['ErrorResponse'];
|
|
5021
5037
|
};
|
|
5022
5038
|
};
|
|
5023
|
-
/** @description The API key
|
|
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`). */
|
|
5024
5040
|
403: {
|
|
5025
5041
|
headers: {
|
|
5026
5042
|
/** @description Correlation id for this request; safe to log and quote in support requests. */
|
|
5027
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;
|
|
5028
5056
|
[name: string]: unknown;
|
|
5029
5057
|
};
|
|
5030
5058
|
content: {
|
|
5031
|
-
'application/json': components['schemas']['
|
|
5059
|
+
'application/json': components['schemas']['startAgentExecutionResponse403'];
|
|
5032
5060
|
};
|
|
5033
5061
|
};
|
|
5034
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. */
|
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;
|
|
@@ -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
|
};
|
|
@@ -2422,7 +2438,7 @@ interface components {
|
|
|
2422
2438
|
/** @default [] */
|
|
2423
2439
|
fabFileIds?: string[];
|
|
2424
2440
|
referenceImageFabFileIds?: string[];
|
|
2425
|
-
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)[];
|
|
2426
2442
|
/** @default 2 */
|
|
2427
2443
|
safety_tolerance?: number;
|
|
2428
2444
|
prompt_upsampling?: boolean;
|
|
@@ -4986,7 +5002,7 @@ interface operations {
|
|
|
4986
5002
|
'application/json': components['schemas']['startAgentExecutionResponse202'];
|
|
4987
5003
|
};
|
|
4988
5004
|
};
|
|
4989
|
-
/** @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. */
|
|
4990
5006
|
400: {
|
|
4991
5007
|
headers: {
|
|
4992
5008
|
/** @description Correlation id for this request; safe to log and quote in support requests. */
|
|
@@ -5020,15 +5036,27 @@ interface operations {
|
|
|
5020
5036
|
'application/json': components['schemas']['ErrorResponse'];
|
|
5021
5037
|
};
|
|
5022
5038
|
};
|
|
5023
|
-
/** @description The API key
|
|
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`). */
|
|
5024
5040
|
403: {
|
|
5025
5041
|
headers: {
|
|
5026
5042
|
/** @description Correlation id for this request; safe to log and quote in support requests. */
|
|
5027
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;
|
|
5028
5056
|
[name: string]: unknown;
|
|
5029
5057
|
};
|
|
5030
5058
|
content: {
|
|
5031
|
-
'application/json': components['schemas']['
|
|
5059
|
+
'application/json': components['schemas']['startAgentExecutionResponse403'];
|
|
5032
5060
|
};
|
|
5033
5061
|
};
|
|
5034
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. */
|