@deepraxis/sdk 0.1.1-dev.07df50c → 0.1.1-dev.0bd6238

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.
@@ -1536,7 +1536,7 @@ export declare const operations: readonly [{
1536
1536
  readonly resource: "agent.sessions";
1537
1537
  readonly method: "create";
1538
1538
  readonly summary: "Create session";
1539
- readonly description: "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (light for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive integer string of US cents (\"2000\" is USD 20.00); omitted budget defaults to \"2000\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.";
1539
+ readonly description: "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (light for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive decimal string of US dollars with at most 2 decimal places (\"20.00\" is USD 20.00); omitted budget defaults to \"20.00\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.";
1540
1540
  readonly http: "POST";
1541
1541
  readonly path: "/agent/v1/sessions";
1542
1542
  readonly streaming: "no";
@@ -1990,9 +1990,9 @@ export declare const operations: readonly [{
1990
1990
  }];
1991
1991
  readonly query: readonly [{
1992
1992
  readonly name: "limit";
1993
- readonly type: "number";
1993
+ readonly type: "integer";
1994
1994
  readonly required: false;
1995
- readonly description: "Number of items per page.";
1995
+ readonly description: "Number of resources per page, from 1 to 100; defaults to 100.";
1996
1996
  }, {
1997
1997
  readonly name: "page";
1998
1998
  readonly type: "string";
@@ -7702,6 +7702,7 @@ export declare const operations: readonly [{
7702
7702
  readonly name: "file_id";
7703
7703
  readonly type: "string";
7704
7704
  readonly required: true;
7705
+ readonly description: "File ID to copy into this library; passed as the upload source instead of file bytes.";
7705
7706
  }, {
7706
7707
  readonly name: "public_id";
7707
7708
  readonly type: "string";
@@ -1898,7 +1898,7 @@ export const operations = [
1898
1898
  "resource": "agent.sessions",
1899
1899
  "method": "create",
1900
1900
  "summary": "Create session",
1901
- "description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (light for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive integer string of US cents (\"2000\" is USD 20.00); omitted budget defaults to \"2000\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.",
1901
+ "description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (light for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive decimal string of US dollars with at most 2 decimal places (\"20.00\" is USD 20.00); omitted budget defaults to \"20.00\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.",
1902
1902
  "http": "POST",
1903
1903
  "path": "/agent/v1/sessions",
1904
1904
  "streaming": "no",
@@ -2451,9 +2451,9 @@ export const operations = [
2451
2451
  "query": [
2452
2452
  {
2453
2453
  "name": "limit",
2454
- "type": "number",
2454
+ "type": "integer",
2455
2455
  "required": false,
2456
- "description": "Number of items per page."
2456
+ "description": "Number of resources per page, from 1 to 100; defaults to 100."
2457
2457
  },
2458
2458
  {
2459
2459
  "name": "page",
@@ -9494,7 +9494,8 @@ export const operations = [
9494
9494
  {
9495
9495
  "name": "file_id",
9496
9496
  "type": "string",
9497
- "required": true
9497
+ "required": true,
9498
+ "description": "File ID to copy into this library; passed as the upload source instead of file bytes."
9498
9499
  },
9499
9500
  {
9500
9501
  "name": "public_id",
@@ -1056,6 +1056,7 @@ export declare function createAgent(transport: Transport): {
1056
1056
  type: "agent";
1057
1057
  updated_at: string;
1058
1058
  version: number;
1059
+ latest_version?: number;
1059
1060
  active_version: number;
1060
1061
  created_by: {
1061
1062
  type: "user";
@@ -2333,6 +2334,15 @@ export declare function createAgent(transport: Transport): {
2333
2334
  parent_tool_use_id?: string;
2334
2335
  user_once?: true;
2335
2336
  guarded_rule?: string;
2337
+ permission_suggestions?: Array<{
2338
+ type: "add_rules";
2339
+ behavior: "allow";
2340
+ destination: "agent" | "session";
2341
+ rules: Array<{
2342
+ tool_name: string;
2343
+ rule_content: string;
2344
+ }>;
2345
+ }>;
2336
2346
  title?: string;
2337
2347
  input_titles?: {
2338
2348
  [key: string]: string;
@@ -2363,6 +2373,15 @@ export declare function createAgent(transport: Transport): {
2363
2373
  run_id: string | null;
2364
2374
  user_once?: true;
2365
2375
  guarded_rule?: string;
2376
+ permission_suggestions?: Array<{
2377
+ type: "add_rules";
2378
+ behavior: "allow";
2379
+ destination: "agent" | "session";
2380
+ rules: Array<{
2381
+ tool_name: string;
2382
+ rule_content: string;
2383
+ }>;
2384
+ }>;
2366
2385
  } | {
2367
2386
  id: string;
2368
2387
  processed_at: string;
@@ -3007,10 +3026,10 @@ export declare function createAgent(transport: Transport): {
3007
3026
  web_fetch_requests?: number;
3008
3027
  web_search_requests?: number;
3009
3028
  };
3010
- runtime_cost?: {
3011
- amount: string;
3012
- currency: "USD";
3029
+ cost_by_product?: {
3030
+ [key: string]: string;
3013
3031
  };
3032
+ subagent_cost_micro_usd?: number;
3014
3033
  };
3015
3034
  vault_ids: Array<string>;
3016
3035
  deployment_id?: null | string;
@@ -3322,6 +3341,15 @@ export declare function createAgent(transport: Transport): {
3322
3341
  source?: "app" | "codemode";
3323
3342
  user_once?: true;
3324
3343
  guarded_rule?: string;
3344
+ permission_suggestions?: Array<{
3345
+ type: "add_rules";
3346
+ behavior: "allow";
3347
+ destination: "agent" | "session";
3348
+ rules: Array<{
3349
+ tool_name: string;
3350
+ rule_content: string;
3351
+ }>;
3352
+ }>;
3325
3353
  title?: string;
3326
3354
  input_titles?: {
3327
3355
  [key: string]: string;
@@ -3352,6 +3380,15 @@ export declare function createAgent(transport: Transport): {
3352
3380
  run_id: string | null;
3353
3381
  user_once?: true;
3354
3382
  guarded_rule?: string;
3383
+ permission_suggestions?: Array<{
3384
+ type: "add_rules";
3385
+ behavior: "allow";
3386
+ destination: "agent" | "session";
3387
+ rules: Array<{
3388
+ tool_name: string;
3389
+ rule_content: string;
3390
+ }>;
3391
+ }>;
3355
3392
  } | {
3356
3393
  id: string;
3357
3394
  processed_at: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.1.1-dev.07df50c",
3
+ "version": "0.1.1-dev.0bd6238",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {