@deepraxis/sdk 0.1.0-dev.d939e0f → 0.1.0-dev.ed6ad1b

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.
@@ -61,7 +61,7 @@ export const operations = [
61
61
  "resource": "agent.agents",
62
62
  "method": "create",
63
63
  "summary": "Create agent",
64
- "description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. Unlike Anthropic Managed Agents, nonempty skills attachments and custom tool entries return 400; the native skill tool is separate from the skills field. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write, enter_plan_mode, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. Example: {\"name\":\"helper\",\"model\":{\"id\":\"deepseek-flash\"},\"tools\":[{\"type\":\"agent_toolset_20260401\"}]}.",
64
+ "description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. Unlike Anthropic Managed Agents, nonempty skills attachments return 400; the native skill tool is separate from the skills field. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write, enter_plan_mode, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. Example: {\"name\":\"helper\",\"model\":{\"id\":\"deepseek-flash\"},\"tools\":[{\"type\":\"agent_toolset_20260401\"}]}.",
65
65
  "http": "POST",
66
66
  "path": "/agent/v1/agents",
67
67
  "streaming": "no",
@@ -175,6 +175,17 @@ export const operations = [
175
175
  "type": "object",
176
176
  "required": false,
177
177
  "description": "Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable."
178
+ },
179
+ {
180
+ "name": "preset",
181
+ "type": "string",
182
+ "enum": [
183
+ "minimal",
184
+ "data-editor",
185
+ "full"
186
+ ],
187
+ "required": false,
188
+ "description": "Optional tool preset. minimal enables read, glob, grep and ask_user_question; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor."
178
189
  }
179
190
  ]
180
191
  }
@@ -207,7 +218,7 @@ export const operations = [
207
218
  "resource": "agent.agents",
208
219
  "method": "update",
209
220
  "summary": "Update agent",
210
- "description": "Update an agent. Send the current version in the body for optimistic concurrency: a stale version returns 409, and an update that changes nothing keeps the version number. Any real change saves a new version; existing sessions keep the version they were created with. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. Unlike Anthropic Managed Agents, nonempty skills attachments and custom tools return 400; use the native skill tool for available runtime skills.",
221
+ "description": "Update an agent. Send the current version in the body for optimistic concurrency: a stale version returns 409, and an update that changes nothing keeps the version number. Any real change saves a new version; existing sessions keep the version they were created with. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. Unlike Anthropic Managed Agents, nonempty skills attachments return 400; use the native skill tool for available runtime skills.",
211
222
  "http": "POST",
212
223
  "path": "/agent/v1/agents/{agent_id}",
213
224
  "streaming": "no",
@@ -332,6 +343,17 @@ export const operations = [
332
343
  "type": "object",
333
344
  "required": false,
334
345
  "description": "Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable."
346
+ },
347
+ {
348
+ "name": "preset",
349
+ "type": "string",
350
+ "enum": [
351
+ "minimal",
352
+ "data-editor",
353
+ "full"
354
+ ],
355
+ "required": false,
356
+ "description": "Optional tool preset. minimal enables read, glob, grep and ask_user_question; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor."
335
357
  }
336
358
  ]
337
359
  }
@@ -389,6 +411,34 @@ export const operations = [
389
411
  }
390
412
  ]
391
413
  },
414
+ {
415
+ "resource": "agent.agents.endUsers",
416
+ "method": "delete",
417
+ "summary": "Delete end-user data",
418
+ "description": "Delete a host application's end-user data from one service agent after explicit confirmation.\n\nDevelop only. Set confirm to the exact external_user_id; missing or mismatched confirmation returns 400. Returns 202 with a pending task id, not completion. Poll the deletion endpoint. Concurrent requests reuse the unfinished task; retry DELETE after failure to resume it. Tokens are revoked and the user is blocked before a seven-day recovery snapshot is verified. Sessions including child sessions, conversation data, grants and feedback are then removed. A pre-existing block remains; a temporary block is removed on success. Attachment metadata is recorded and File attachments are retained. No charge is introduced by this operation. Example: DELETE /agent/v1/agents/agent_example/end_users/customer_123?confirm=customer_123.",
419
+ "http": "DELETE",
420
+ "path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
421
+ "streaming": "no",
422
+ "pagination": false,
423
+ "pathParams": [
424
+ {
425
+ "name": "agent_id",
426
+ "sdkName": "agent_id"
427
+ },
428
+ {
429
+ "name": "external_user_id",
430
+ "sdkName": "external_user_id"
431
+ }
432
+ ],
433
+ "query": [
434
+ {
435
+ "name": "confirm",
436
+ "type": "string",
437
+ "required": true,
438
+ "description": "Must exactly equal the external_user_id path parameter to confirm destructive deletion."
439
+ }
440
+ ]
441
+ },
392
442
  {
393
443
  "resource": "agent.agents.endUsers",
394
444
  "method": "retrieve",
@@ -431,6 +481,27 @@ export const operations = [
431
481
  ],
432
482
  "query": []
433
483
  },
484
+ {
485
+ "resource": "agent.agents.endUsers",
486
+ "method": "retrieveDeletion",
487
+ "summary": "Get end-user deletion",
488
+ "description": "Poll the latest deletion task for an end user, including after the user data has been removed.\n\nUse the same agent_id and external_user_id as the confirmed DELETE. Status is pending, snapshotting, deleting, done or failed. Counts are empty until a verified snapshot exists. A failed task remains blocked and resumes when DELETE is retried with matching confirmation. snapshot_key is an operator recovery reference retained for seven days, not a public download URL. End-user credentials, inaccessible or personal agents, and missing tasks return 404. This read does not create a task or charge usage.",
489
+ "http": "GET",
490
+ "path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/deletion",
491
+ "streaming": "no",
492
+ "pagination": false,
493
+ "pathParams": [
494
+ {
495
+ "name": "agent_id",
496
+ "sdkName": "agent_id"
497
+ },
498
+ {
499
+ "name": "external_user_id",
500
+ "sdkName": "external_user_id"
501
+ }
502
+ ],
503
+ "query": []
504
+ },
434
505
  {
435
506
  "resource": "agent.agents.endUsers.revokeTokens",
436
507
  "method": "create",
@@ -473,6 +544,23 @@ export const operations = [
473
544
  ],
474
545
  "query": []
475
546
  },
547
+ {
548
+ "resource": "agent.agents.unarchive",
549
+ "method": "create",
550
+ "summary": "Unarchive Agent",
551
+ "description": "Restore an archived agent without creating a configuration version. Already active agents are unchanged. Missing or inaccessible agents return 404. Use the returned agent id to create new sessions.",
552
+ "http": "POST",
553
+ "path": "/agent/v1/agents/{agent_id}/unarchive",
554
+ "streaming": "no",
555
+ "pagination": false,
556
+ "pathParams": [
557
+ {
558
+ "name": "agent_id",
559
+ "sdkName": "agent_id"
560
+ }
561
+ ],
562
+ "query": []
563
+ },
476
564
  {
477
565
  "resource": "agent.agents.versions",
478
566
  "method": "list",
@@ -668,7 +756,7 @@ export const operations = [
668
756
  "resource": "agent.computers",
669
757
  "method": "connect",
670
758
  "summary": "Connect computer",
671
- "description": "Resume the computer and issue a sandbox connection.\n\nOwn-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.",
759
+ "description": "Resume the computer and issue a sandbox connection.\n\nOwn-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus the machine tier the computer is on now (light or heavy) and the lease that keeps it there (lease_id, lease_expires_at; lease_id is null when no lease exists). Keep the lease while the connection stays open: renew it about every 20 seconds (POST .../leases/{lease_id}/renew) and release it on close (DELETE .../leases/{lease_id}). An unrenewed lease simply expires, and the full machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.\n\nConnect to a computer with a caller-held lease. Omit the body or send {} to request light: the lightweight shell, or the heavy instance while it is running. Send {\"need\":\"heavy\"} to request full Linux for interactive programs; files are synchronized before the heavy connection is returned with tier heavy. Renew the lease while using the connection and release it with DELETE when finished.",
672
760
  "http": "POST",
673
761
  "path": "/agent/v1/computers/{computer_id}/connect",
674
762
  "streaming": "no",
@@ -679,7 +767,22 @@ export const operations = [
679
767
  "sdkName": "computer_id"
680
768
  }
681
769
  ],
682
- "query": []
770
+ "query": [],
771
+ "body": {
772
+ "required": false,
773
+ "fields": [
774
+ {
775
+ "name": "need",
776
+ "type": "string",
777
+ "enum": [
778
+ "light",
779
+ "heavy"
780
+ ],
781
+ "required": false,
782
+ "description": "Defaults to light. light uses the lightweight shell, or the heavy instance while it is running. heavy requests a full Linux computer for interactive programs; heavy running time counts toward the daily budget in seconds."
783
+ }
784
+ ]
785
+ }
683
786
  },
684
787
  {
685
788
  "resource": "agent.computers.files",
@@ -729,6 +832,48 @@ export const operations = [
729
832
  }
730
833
  ]
731
834
  },
835
+ {
836
+ "resource": "agent.computers.leases",
837
+ "method": "delete",
838
+ "summary": "Release computer lease",
839
+ "description": "Give the lease back when a connection closes so the full machine can be reclaimed without waiting for it to expire.\n\nOwn-face extension. Idempotent: an unknown or already released lease succeeds as well. Foreign or absent computers return 404.",
840
+ "http": "DELETE",
841
+ "path": "/agent/v1/computers/{computer_id}/leases/{lease_id}",
842
+ "streaming": "no",
843
+ "pagination": false,
844
+ "pathParams": [
845
+ {
846
+ "name": "computer_id",
847
+ "sdkName": "computer_id"
848
+ },
849
+ {
850
+ "name": "lease_id",
851
+ "sdkName": "lease_id"
852
+ }
853
+ ],
854
+ "query": []
855
+ },
856
+ {
857
+ "resource": "agent.computers.leases.renew",
858
+ "method": "create",
859
+ "summary": "Renew computer lease",
860
+ "description": "Extend the lease a connection holds so the full machine stays in service while the connection is open.\n\nOwn-face extension. A lease that is no longer valid (released, expired, or the computer moved to another machine) returns 409 LEASE_STALE; call connect again for a new connection and lease. Foreign or absent computers return 404.",
861
+ "http": "POST",
862
+ "path": "/agent/v1/computers/{computer_id}/leases/{lease_id}/renew",
863
+ "streaming": "no",
864
+ "pagination": false,
865
+ "pathParams": [
866
+ {
867
+ "name": "computer_id",
868
+ "sdkName": "computer_id"
869
+ },
870
+ {
871
+ "name": "lease_id",
872
+ "sdkName": "lease_id"
873
+ }
874
+ ],
875
+ "query": []
876
+ },
732
877
  {
733
878
  "resource": "agent.deploymentRuns",
734
879
  "method": "list",
@@ -1146,6 +1291,41 @@ export const operations = [
1146
1291
  ],
1147
1292
  "query": []
1148
1293
  },
1294
+ {
1295
+ "resource": "agent.embed",
1296
+ "method": "retrieveAppearance",
1297
+ "summary": "Read chat appearance",
1298
+ "description": "Load saved appearance for an iframe or Hosted chat page. Supply an end-user embed token as Bearer authorization, or a console-issued publishable key in Praxis-Publishable-Key before anonymous token issuance. The credential selects the agent; identity_number and agent_id query parameters are rejected with 400. Missing appearance returns an empty object. Kit option names retain camelCase. Responses are private and cacheable for 60 seconds. Component hosts configure Kit in their own code instead.",
1299
+ "http": "GET",
1300
+ "path": "/agent/v1/embed/appearance",
1301
+ "streaming": "no",
1302
+ "pagination": false,
1303
+ "pathParams": [],
1304
+ "query": []
1305
+ },
1306
+ {
1307
+ "resource": "agent.embed.exchange",
1308
+ "method": "create",
1309
+ "summary": "Exchange Hosted Code",
1310
+ "description": "Redeem a single-use hosted link credential for an end-user token.\n\nRead code from the c fragment parameter of hosted_url returned by embed token creation with hosted true, then remove the fragment before exchanging. No Authorization header is required; the code authenticates this request. The code expires after 60 seconds and is consumed atomically on exchange, so concurrent attempts have only one winner. Expired, used and unknown codes return the same 404 body. Keep the token in memory and return to the host website for a fresh link when it expires; exchange cannot refresh it. Requests are IP limited per minute using the anonymous entrypoint budget (default 20). Example body is {\"code\":\"<code from hosted_url>\"}.",
1311
+ "http": "POST",
1312
+ "path": "/agent/v1/embed/exchange",
1313
+ "streaming": "no",
1314
+ "pagination": false,
1315
+ "pathParams": [],
1316
+ "query": [],
1317
+ "body": {
1318
+ "required": true,
1319
+ "fields": [
1320
+ {
1321
+ "name": "code",
1322
+ "type": "string",
1323
+ "required": true,
1324
+ "description": "Single-use credential from the c fragment parameter of hosted_url returned by embed token creation. Valid for 60 seconds."
1325
+ }
1326
+ ]
1327
+ }
1328
+ },
1149
1329
  {
1150
1330
  "resource": "agent.embedTokens",
1151
1331
  "method": "list",
@@ -1187,7 +1367,7 @@ export const operations = [
1187
1367
  "resource": "agent.embedTokens",
1188
1368
  "method": "create",
1189
1369
  "summary": "Create Embed Token",
1190
- "description": "Issue a short-lived credential on your backend for an end user of a service agent.\n\nRequires an active service agent in your organization with an embed policy. Pins the requested version or the latest version and snapshots the policy environment, vaults and resources; metadata comes from the request. Blocked users cannot receive tokens. Keep your API key on the backend and pass only the returned token to the frontend. Every call creates a new grant; issuance is not idempotent. The hosted field is not supported.",
1370
+ "description": "Issue a short-lived credential on your backend for an end user of a service agent.\n\nRequires an active service agent in your organization with an embed policy. Pins the requested version or the latest version and snapshots the policy environment, vaults and resources; metadata comes from the request. Blocked users cannot receive tokens. Keep your API key on the backend and pass only the returned token to the frontend. Every call creates a new grant; issuance is not idempotent. Set hosted to true to also receive hosted_url; redirect the user there within 60 seconds. The agent must have an identity_number. The URL fragment contains a single-use exchange credential, not the token. Omit hosted or set false for ordinary token issuance.",
1191
1371
  "http": "POST",
1192
1372
  "path": "/agent/v1/embed_tokens",
1193
1373
  "streaming": "no",
@@ -1197,6 +1377,12 @@ export const operations = [
1197
1377
  "body": {
1198
1378
  "required": true,
1199
1379
  "fields": [
1380
+ {
1381
+ "name": "hosted",
1382
+ "type": "boolean",
1383
+ "required": false,
1384
+ "description": "Set true to also return a hosted chat URL with a single-use credential valid for 60 seconds. Defaults to false; the agent must have an identity_number."
1385
+ },
1200
1386
  {
1201
1387
  "name": "agent",
1202
1388
  "type": "string",
@@ -1256,6 +1442,35 @@ export const operations = [
1256
1442
  ]
1257
1443
  }
1258
1444
  },
1445
+ {
1446
+ "resource": "agent.embedTokens.anonymous",
1447
+ "method": "create",
1448
+ "summary": "Issue anonymous visitor token",
1449
+ "description": "Obtain a short-lived embedding token for a visitor without an account using the agent owner's publishable key.\n\nNo Authorization header is required. Send the browser Origin allowed by the agent policy. Save a returned visitor_secret and reuse it for refreshes; only new visitors receive one. Unknown secrets create new visitors, and extra fields including visitor_id return 400. Issuance uses the key creator's organization membership, the key session budget and the smaller of the policy TTL maximum and 3600 seconds. IP requests are limited per minute (default 20); UTC daily session and spending caps are checked across the key's primary sessions created that day. Token issuance itself does not create a session or charge usage; subsequent sessions bill the host organization. Example body: {\"publishable_key\":\"pk_praxis_example\"}.",
1450
+ "http": "POST",
1451
+ "path": "/agent/v1/embed_tokens/anonymous",
1452
+ "streaming": "no",
1453
+ "pagination": false,
1454
+ "pathParams": [],
1455
+ "query": [],
1456
+ "body": {
1457
+ "required": true,
1458
+ "fields": [
1459
+ {
1460
+ "name": "publishable_key",
1461
+ "type": "string",
1462
+ "required": true,
1463
+ "description": "Public key created by the service agent owner; safe to include in browser code."
1464
+ },
1465
+ {
1466
+ "name": "visitor_secret",
1467
+ "type": "string",
1468
+ "required": false,
1469
+ "description": "Secret returned by a previous anonymous issuance for this key. Omit for a new visitor; an unknown secret creates a new visitor."
1470
+ }
1471
+ ]
1472
+ }
1473
+ },
1259
1474
  {
1260
1475
  "resource": "agent.embedTokens.revoke",
1261
1476
  "method": "create",
@@ -1672,6 +1887,23 @@ export const operations = [
1672
1887
  ]
1673
1888
  }
1674
1889
  },
1890
+ {
1891
+ "resource": "agent.sessions",
1892
+ "method": "delete",
1893
+ "summary": "Delete session",
1894
+ "description": "Delete an idle or terminated session and its event history after saving a deletion snapshot. Supply the session id from creation or listing. Running sessions return 409 INVALID_STATE: interrupt first or wait until idle or terminated. Afterwards retrieval and event listing return 404 and lists omit the session. Example: DELETE /agent/v1/sessions/sesn_example.",
1895
+ "http": "DELETE",
1896
+ "path": "/agent/v1/sessions/{session_id}",
1897
+ "streaming": "no",
1898
+ "pagination": false,
1899
+ "pathParams": [
1900
+ {
1901
+ "name": "session_id",
1902
+ "sdkName": "session_id"
1903
+ }
1904
+ ],
1905
+ "query": []
1906
+ },
1675
1907
  {
1676
1908
  "resource": "agent.sessions",
1677
1909
  "method": "retrieve",
@@ -1930,7 +2162,7 @@ export const operations = [
1930
2162
  "resource": "agent.sessions.events",
1931
2163
  "method": "list",
1932
2164
  "summary": "List session events",
1933
- "description": "Read the event history of a session as a page of events, oldest first by default (order=desc for newest first). Use it after sending a message to collect the reply, to find tool calls that wait for approval (session.status_idle with stop_reason requires_action lists their event_ids), or to audit a run; to follow a running session live use sessions.events.stream instead. Filter by types and by a created_at range on processed_at; pages hold at most 100 events (default 20) and next_page continues. A failed run emits session.error before session.status_terminated. Native history also includes user.steer, user.withdraw, system.notification, session.forked, session.goal_changed and session.goal_verification; these are not accepted by the /anthropic/v1 event-type filter.",
2165
+ "description": "Read the event history of a session as a page of events, oldest first by default (order=desc for newest first). Use it after sending a message to collect the reply, to find tool calls that wait for approval or client custom tool results (session.status_idle with stop_reason requires_action lists their event_ids), or to audit a run; to follow a running session live use sessions.events.stream instead. Filter by types and by a created_at range on processed_at; pages hold at most 100 events (default 20) and next_page continues. A failed run emits session.error before session.status_terminated. Native history also includes user.steer, user.withdraw, system.notification, session.forked, session.goal_changed and session.goal_verification; these are not accepted by the /anthropic/v1 event-type filter.",
1934
2166
  "http": "GET",
1935
2167
  "path": "/agent/v1/sessions/{session_id}/events",
1936
2168
  "streaming": "no",
@@ -2001,7 +2233,7 @@ export const operations = [
2001
2233
  "resource": "agent.sessions.events",
2002
2234
  "method": "send",
2003
2235
  "summary": "Send session events",
2004
- "description": "Send events to a session: user.message (exactly one nonempty text block), user.interrupt, user.tool_confirmation to allow or deny a pending tool call, user.steer to inject a queued user.message into a turn that is still running, and user.withdraw to retract a queued message. The response only acknowledges the inputs; read replies with sessions.events.list or sessions.events.stream. A message sent while the session waits for tool approval is queued (processed_at null) and runs in order after the approval is resolved. Archived sessions reject new messages. To approve, read a pending agent.tool_use or agent.mcp_tool_use event and send {type: \"user.tool_confirmation\", tool_use_id: <that event id>, result: \"allow\"} (or deny); include session_thread_id for a child approval. Native confirmations also accept updated_permissions, answers and annotations, which /anthropic/v1 rejects.",
2236
+ "description": "Attach optional praxis_context={items:[{name,value}]} to user.message for untrusted page context on this turn only (maximum 32 items, 4096 UTF-8 JSON bytes). /anthropic/v1 rejects this field. Send events to a session: user.message (exactly one nonempty text block), user.interrupt, user.tool_confirmation to allow or deny a pending tool call, user.custom_tool_result to return a custom tool result, user.steer to inject a queued user.message into a turn that is still running, and user.withdraw to retract a queued message. The response only acknowledges the inputs; read replies with sessions.events.list or sessions.events.stream. A message sent while the session waits for tool approval is queued (processed_at null) and runs in order after the approval is resolved. Archived sessions reject new messages. To approve, read a pending agent.tool_use or agent.mcp_tool_use event and send {type: \"user.tool_confirmation\", tool_use_id: <that event id>, result: \"allow\"} (or deny); include session_thread_id for a child approval. Native confirmations also accept updated_permissions, answers and annotations, which /anthropic/v1 rejects. Both faces accept user.custom_tool_result with custom_tool_use_id from agent.custom_tool_use.id or the requires_action stop_reason.event_ids. Unlike Anthropic, result content accepts only text blocks (omit it for an empty array). Omitted or null is_error means false. The server routes child calls by id; session_thread_id is rejected in this input. Unknown call ids return 400; duplicate results or calls no longer waiting return 409.",
2005
2237
  "http": "POST",
2006
2238
  "path": "/agent/v1/sessions/{session_id}/events",
2007
2239
  "streaming": "no",
@@ -3165,6 +3397,27 @@ export const operations = [
3165
3397
  ],
3166
3398
  "query": []
3167
3399
  },
3400
+ {
3401
+ "resource": "application.workers.versions.assets",
3402
+ "method": "retrieveManifest",
3403
+ "summary": "Get version asset manifest",
3404
+ "description": "Read the retained asset paths, content hashes and byte sizes of a version for publication planning. This read creates no session or version. A version without assets returns an empty manifest; unavailable artifacts and foreign resources return 404.",
3405
+ "http": "GET",
3406
+ "path": "/application/v1/workers/{worker_id}/versions/{version_id}/assets/manifest",
3407
+ "streaming": "no",
3408
+ "pagination": false,
3409
+ "pathParams": [
3410
+ {
3411
+ "name": "worker_id",
3412
+ "sdkName": "worker_id"
3413
+ },
3414
+ {
3415
+ "name": "version_id",
3416
+ "sdkName": "version_id"
3417
+ }
3418
+ ],
3419
+ "query": []
3420
+ },
3168
3421
  {
3169
3422
  "resource": "automation.actions",
3170
3423
  "method": "list",
@@ -6588,7 +6841,7 @@ export const operations = [
6588
6841
  "name": "{column}",
6589
6842
  "type": "string",
6590
6843
  "required": false,
6591
- "description": "Horizontal filter: replace {column} with a field name or JSON path, e.g. title=eq.summary. Repeat for more columns. See the filter operator matrix."
6844
+ "description": "Horizontal filter: replace {column} with a field name or JSON path, e.g. title=eq.summary. Repeat for more columns. Supported operators: eq (equal), neq (not equal; ne is not supported), gt/gte/lt/lte (comparisons), like (case-sensitive text pattern), ilike (case-insensitive text pattern), in (membership), is (null/boolean test), cs (contains), cd (contained by), and ov (array overlap). For like/ilike, * or % matches any sequence and _ matches one character, e.g. title=ilike.*spring*; URL-encode a literal % as %25. Use days=in.(1,2,3), title=is.null, active=is.true or active=is.false; is.not_null and is.unknown are also accepted (unknown means null). Negate a condition with not., e.g. title=not.eq.draft. Multiple filters are ANDed; use or=(title.eq.a,title.eq.b), and=(days.gte.1,days.lte.3), not.or=(...) or not.and=(...), with nested and(...) and or(...) groups as needed. cs/cd accept JSON objects or arrays on JSON fields; cs also accepts a JSON scalar. For array values or multi-link fields, use cs.{a,b}, cd.{a,b} or ov.{a,b}. JSON paths use -> for JSON and ->> for text, e.g. attributes->>has_onsen=eq.true or attributes->tags=cs.[1,2]; chain -> segments and end with ->> for text. Dot paths such as attributes.has_onsen are unsupported. Full-text, regex, range operators and any/all modifiers are unsupported."
6592
6845
  },
6593
6846
  {
6594
6847
  "name": "and",
@@ -6636,7 +6889,7 @@ export const operations = [
6636
6889
  "name": "on_conflict",
6637
6890
  "type": "string",
6638
6891
  "required": false,
6639
- "description": "POST upsert: id or one unique field with resolution=merge-duplicates|ignore-duplicates. POST accepts an optional client id matching [A-Za-z0-9_-]{1,64}; omitted ids are generated. PATCH cannot change id."
6892
+ "description": "POST upsert: id or one unique field with resolution=merge-duplicates|ignore-duplicates. With resolution=merge-duplicates, a conflicting row keeps columns omitted from the request; supplied values replace the whole field value (including JSON objects), and explicit null clears a nullable field. With resolution=ignore-duplicates, a conflicting row is left unchanged. Without a conflict, both modes insert a new row using field defaults for omitted fields. In a batch, a key present in another row is filled with null when omitted in this row unless missing=default is set; that null can overwrite a value during merge. With missing=default, omitted keys stay omitted for conflict merges (existing values are preserved); new rows use defaults, or null when no default exists. Explicit null never invokes a default. POST accepts an optional client id matching [A-Za-z0-9_-]{1,64}; omitted ids are generated. PATCH cannot change id."
6640
6893
  },
6641
6894
  {
6642
6895
  "name": "columns",
@@ -6650,7 +6903,7 @@ export const operations = [
6650
6903
  "resource": "database.databases.rest",
6651
6904
  "method": "retrieve",
6652
6905
  "summary": "Select rows",
6653
- "description": "Read matching rows with filters, selected columns and ordering. Returns at most 1000 rows per request, including when limit is omitted. Content-Range reports the actual returned interval and the total when count is requested. PATCH and DELETE are not subject to this read cap. Unlike Supabase, casts, aggregates, spread and join modifiers are unsupported. Each table supports up to 1,000,000 rows. Query budget: 8,000 ms with a shared 3,000,000-row safety ceiling. Create indexes on filtered or sorted fields, or narrow the request when it exceeds its budget. Synchronous SQLite aggregates use candidate-row throughput estimates before execution; deployed Workers freeze clocks during synchronous CPU work, so the timer is not a guaranteed server-side interrupt. Count preferences: without filters, exact, planned and estimated all use SQLite's exact b-tree count. With filters, exact counts within budget; planned skips counting and reports an unknown total (Content-Range: 0-24/*); estimated attempts exact counting only when the preflight budget allows it, otherwise reports an unknown total. Preference-Applied echoes the requested count mode. Error table: QUERY_CANCELED / PostgREST 57014 is HTTP 500, retryable=false: Query timed out: index filtered or sorted fields, or narrow the range. DATABASE_INVALID_STATE is HTTP 409 for operations on a deleting database. Cleared or nonexistent databases return DATABASE_NOT_FOUND / HTTP 404. The count is an HTTP Content-Range response header, not a JSON property. Praxis SDK/codemode methods return the body only; a page length is not a total unless you know all matches fit in that page.",
6906
+ "description": "Read matching rows with filters, selected columns and ordering. Returns at most 1000 rows per request, including when limit is omitted. Content-Range reports the actual returned interval and the total when count is requested. PATCH and DELETE are not subject to this read cap. Unlike Supabase, casts, aggregates, spread and join modifiers are unsupported. Each table supports up to 1,000,000 rows. Query budget: 8,000 ms with a shared 3,000,000-row safety ceiling. Create indexes on filtered or sorted fields, or narrow the request when it exceeds its budget. Synchronous SQLite aggregates use candidate-row throughput estimates before execution; deployed Workers freeze clocks during synchronous CPU work, so the timer is not a guaranteed server-side interrupt. Count preferences: without filters, exact, planned and estimated all use SQLite's exact b-tree count. With filters, exact counts within budget; planned skips counting and reports an unknown total (Content-Range: 0-24/*); estimated attempts exact counting only when the preflight budget allows it, otherwise reports an unknown total. Preference-Applied echoes the requested count mode. Error table: QUERY_CANCELED / PostgREST 57014 is HTTP 500, retryable=false: Query timed out: index filtered or sorted fields, or narrow the range. DATABASE_INVALID_STATE is HTTP 409 for operations on a deleting database. Cleared or nonexistent databases return DATABASE_NOT_FOUND / HTTP 404. The count is an HTTP Content-Range response header, not a JSON property. Use praxis.database.count in the SDK or codemode to return { count: number | null }; a page length is not a total unless you know all matches fit in that page.",
6654
6907
  "http": "GET",
6655
6908
  "path": "/database/v1/databases/{database_id}/rest/{table}",
6656
6909
  "streaming": "no",
@@ -6676,7 +6929,7 @@ export const operations = [
6676
6929
  "name": "{column}",
6677
6930
  "type": "string",
6678
6931
  "required": false,
6679
- "description": "Horizontal filter: replace {column} with a field name or JSON path, e.g. title=eq.summary. Repeat for more columns. See the filter operator matrix."
6932
+ "description": "Horizontal filter: replace {column} with a field name or JSON path, e.g. title=eq.summary. Repeat for more columns. Supported operators: eq (equal), neq (not equal; ne is not supported), gt/gte/lt/lte (comparisons), like (case-sensitive text pattern), ilike (case-insensitive text pattern), in (membership), is (null/boolean test), cs (contains), cd (contained by), and ov (array overlap). For like/ilike, * or % matches any sequence and _ matches one character, e.g. title=ilike.*spring*; URL-encode a literal % as %25. Use days=in.(1,2,3), title=is.null, active=is.true or active=is.false; is.not_null and is.unknown are also accepted (unknown means null). Negate a condition with not., e.g. title=not.eq.draft. Multiple filters are ANDed; use or=(title.eq.a,title.eq.b), and=(days.gte.1,days.lte.3), not.or=(...) or not.and=(...), with nested and(...) and or(...) groups as needed. cs/cd accept JSON objects or arrays on JSON fields; cs also accepts a JSON scalar. For array values or multi-link fields, use cs.{a,b}, cd.{a,b} or ov.{a,b}. JSON paths use -> for JSON and ->> for text, e.g. attributes->>has_onsen=eq.true or attributes->tags=cs.[1,2]; chain -> segments and end with ->> for text. Dot paths such as attributes.has_onsen are unsupported. Full-text, regex, range operators and any/all modifiers are unsupported."
6680
6933
  },
6681
6934
  {
6682
6935
  "name": "and",
@@ -6724,7 +6977,7 @@ export const operations = [
6724
6977
  "name": "on_conflict",
6725
6978
  "type": "string",
6726
6979
  "required": false,
6727
- "description": "POST upsert: id or one unique field with resolution=merge-duplicates|ignore-duplicates. POST accepts an optional client id matching [A-Za-z0-9_-]{1,64}; omitted ids are generated. PATCH cannot change id."
6980
+ "description": "POST upsert: id or one unique field with resolution=merge-duplicates|ignore-duplicates. With resolution=merge-duplicates, a conflicting row keeps columns omitted from the request; supplied values replace the whole field value (including JSON objects), and explicit null clears a nullable field. With resolution=ignore-duplicates, a conflicting row is left unchanged. Without a conflict, both modes insert a new row using field defaults for omitted fields. In a batch, a key present in another row is filled with null when omitted in this row unless missing=default is set; that null can overwrite a value during merge. With missing=default, omitted keys stay omitted for conflict merges (existing values are preserved); new rows use defaults, or null when no default exists. Explicit null never invokes a default. POST accepts an optional client id matching [A-Za-z0-9_-]{1,64}; omitted ids are generated. PATCH cannot change id."
6728
6981
  },
6729
6982
  {
6730
6983
  "name": "columns",
@@ -6738,7 +6991,7 @@ export const operations = [
6738
6991
  "resource": "database.databases.rest",
6739
6992
  "method": "head",
6740
6993
  "summary": "Count rows",
6741
- "description": "Inspect the HTTP row count and range without retrieving row data; send Prefer: count=exact for a filtered count. Returns no body and does not fetch or serialize row data. A known count determines the interval using limit/offset or Range with a default and maximum page size of 1000. Without a count preference, or when the selected count mode cannot supply a total, Content-Range is */*. Singular Accept still validates page cardinality. Unlike Supabase, planned and estimated counts do not use PostgreSQL planner estimates. Count preferences: without filters, exact, planned and estimated all use SQLite's exact b-tree count. With filters, exact counts within budget; planned skips counting and reports an unknown total (Content-Range: 0-24/*); estimated attempts exact counting only when the preflight budget allows it, otherwise reports an unknown total. Preference-Applied echoes the requested count mode. Praxis SDK/codemode methods return only the empty body, not the Content-Range response header; use an HTTP client when you need that header.",
6994
+ "description": "Inspect the HTTP row count and range without retrieving row data; send Prefer: count=exact for a filtered count. Returns no body and does not fetch or serialize row data. A known count determines the interval using limit/offset or Range with a default and maximum page size of 1000. Without a count preference, or when the selected count mode cannot supply a total, Content-Range is */*. Singular Accept still validates page cardinality. Unlike Supabase, planned and estimated counts do not use PostgreSQL planner estimates. Count preferences: without filters, exact, planned and estimated all use SQLite's exact b-tree count. With filters, exact counts within budget; planned skips counting and reports an unknown total (Content-Range: 0-24/*); estimated attempts exact counting only when the preflight budget allows it, otherwise reports an unknown total. Preference-Applied echoes the requested count mode. Use praxis.database.count in the SDK or codemode to return { count: number | null } from this header without retrieving rows.",
6742
6995
  "http": "HEAD",
6743
6996
  "path": "/database/v1/databases/{database_id}/rest/{table}",
6744
6997
  "streaming": "no",
@@ -6764,7 +7017,7 @@ export const operations = [
6764
7017
  "name": "{column}",
6765
7018
  "type": "string",
6766
7019
  "required": false,
6767
- "description": "Horizontal filter: replace {column} with a field name or JSON path, e.g. title=eq.summary. Repeat for more columns. See the filter operator matrix."
7020
+ "description": "Horizontal filter: replace {column} with a field name or JSON path, e.g. title=eq.summary. Repeat for more columns. Supported operators: eq (equal), neq (not equal; ne is not supported), gt/gte/lt/lte (comparisons), like (case-sensitive text pattern), ilike (case-insensitive text pattern), in (membership), is (null/boolean test), cs (contains), cd (contained by), and ov (array overlap). For like/ilike, * or % matches any sequence and _ matches one character, e.g. title=ilike.*spring*; URL-encode a literal % as %25. Use days=in.(1,2,3), title=is.null, active=is.true or active=is.false; is.not_null and is.unknown are also accepted (unknown means null). Negate a condition with not., e.g. title=not.eq.draft. Multiple filters are ANDed; use or=(title.eq.a,title.eq.b), and=(days.gte.1,days.lte.3), not.or=(...) or not.and=(...), with nested and(...) and or(...) groups as needed. cs/cd accept JSON objects or arrays on JSON fields; cs also accepts a JSON scalar. For array values or multi-link fields, use cs.{a,b}, cd.{a,b} or ov.{a,b}. JSON paths use -> for JSON and ->> for text, e.g. attributes->>has_onsen=eq.true or attributes->tags=cs.[1,2]; chain -> segments and end with ->> for text. Dot paths such as attributes.has_onsen are unsupported. Full-text, regex, range operators and any/all modifiers are unsupported."
6768
7021
  },
6769
7022
  {
6770
7023
  "name": "and",
@@ -6812,7 +7065,7 @@ export const operations = [
6812
7065
  "name": "on_conflict",
6813
7066
  "type": "string",
6814
7067
  "required": false,
6815
- "description": "POST upsert: id or one unique field with resolution=merge-duplicates|ignore-duplicates. POST accepts an optional client id matching [A-Za-z0-9_-]{1,64}; omitted ids are generated. PATCH cannot change id."
7068
+ "description": "POST upsert: id or one unique field with resolution=merge-duplicates|ignore-duplicates. With resolution=merge-duplicates, a conflicting row keeps columns omitted from the request; supplied values replace the whole field value (including JSON objects), and explicit null clears a nullable field. With resolution=ignore-duplicates, a conflicting row is left unchanged. Without a conflict, both modes insert a new row using field defaults for omitted fields. In a batch, a key present in another row is filled with null when omitted in this row unless missing=default is set; that null can overwrite a value during merge. With missing=default, omitted keys stay omitted for conflict merges (existing values are preserved); new rows use defaults, or null when no default exists. Explicit null never invokes a default. POST accepts an optional client id matching [A-Za-z0-9_-]{1,64}; omitted ids are generated. PATCH cannot change id."
6816
7069
  },
6817
7070
  {
6818
7071
  "name": "columns",
@@ -6852,7 +7105,7 @@ export const operations = [
6852
7105
  "name": "{column}",
6853
7106
  "type": "string",
6854
7107
  "required": false,
6855
- "description": "Horizontal filter: replace {column} with a field name or JSON path, e.g. title=eq.summary. Repeat for more columns. See the filter operator matrix."
7108
+ "description": "Horizontal filter: replace {column} with a field name or JSON path, e.g. title=eq.summary. Repeat for more columns. Supported operators: eq (equal), neq (not equal; ne is not supported), gt/gte/lt/lte (comparisons), like (case-sensitive text pattern), ilike (case-insensitive text pattern), in (membership), is (null/boolean test), cs (contains), cd (contained by), and ov (array overlap). For like/ilike, * or % matches any sequence and _ matches one character, e.g. title=ilike.*spring*; URL-encode a literal % as %25. Use days=in.(1,2,3), title=is.null, active=is.true or active=is.false; is.not_null and is.unknown are also accepted (unknown means null). Negate a condition with not., e.g. title=not.eq.draft. Multiple filters are ANDed; use or=(title.eq.a,title.eq.b), and=(days.gte.1,days.lte.3), not.or=(...) or not.and=(...), with nested and(...) and or(...) groups as needed. cs/cd accept JSON objects or arrays on JSON fields; cs also accepts a JSON scalar. For array values or multi-link fields, use cs.{a,b}, cd.{a,b} or ov.{a,b}. JSON paths use -> for JSON and ->> for text, e.g. attributes->>has_onsen=eq.true or attributes->tags=cs.[1,2]; chain -> segments and end with ->> for text. Dot paths such as attributes.has_onsen are unsupported. Full-text, regex, range operators and any/all modifiers are unsupported."
6856
7109
  },
6857
7110
  {
6858
7111
  "name": "and",
@@ -6900,7 +7153,7 @@ export const operations = [
6900
7153
  "name": "on_conflict",
6901
7154
  "type": "string",
6902
7155
  "required": false,
6903
- "description": "POST upsert: id or one unique field with resolution=merge-duplicates|ignore-duplicates. POST accepts an optional client id matching [A-Za-z0-9_-]{1,64}; omitted ids are generated. PATCH cannot change id."
7156
+ "description": "POST upsert: id or one unique field with resolution=merge-duplicates|ignore-duplicates. With resolution=merge-duplicates, a conflicting row keeps columns omitted from the request; supplied values replace the whole field value (including JSON objects), and explicit null clears a nullable field. With resolution=ignore-duplicates, a conflicting row is left unchanged. Without a conflict, both modes insert a new row using field defaults for omitted fields. In a batch, a key present in another row is filled with null when omitted in this row unless missing=default is set; that null can overwrite a value during merge. With missing=default, omitted keys stay omitted for conflict merges (existing values are preserved); new rows use defaults, or null when no default exists. Explicit null never invokes a default. POST accepts an optional client id matching [A-Za-z0-9_-]{1,64}; omitted ids are generated. PATCH cannot change id."
6904
7157
  },
6905
7158
  {
6906
7159
  "name": "columns",
@@ -6918,7 +7171,7 @@ export const operations = [
6918
7171
  "resource": "database.databases.rest",
6919
7172
  "method": "create",
6920
7173
  "summary": "Insert rows",
6921
- "description": "Insert rows into an existing table after defining its fields; at most 500 rows per request. Each request is atomic: any failure rolls back the entire batch. There are no transactions across requests.\nRows are filled to the union of their keys with null; send Prefer: missing=default to use field defaults for missing keys.\nThe default is return=minimal: success returns HTTP 201 with an empty body. Send Prefer: return=representation to return the inserted rows. Unlike Supabase, upsert conflicts can target only id or one unique field, not a composite key. Each table supports up to 1,000,000 rows.",
7174
+ "description": "Insert rows into an existing table after defining its fields; at most 500 rows per request. Each request is atomic: any failure rolls back the entire batch. There are no transactions across requests.\nRows are filled to the union of their keys with null; send Prefer: missing=default to use field defaults for missing keys.\nThe default is return=minimal: success returns HTTP 201 with an empty body. Send Prefer: return=representation to return the inserted rows. With resolution=merge-duplicates, a conflicting row keeps columns omitted from the request; supplied values replace the whole field value (including JSON objects), and explicit null clears a nullable field. With resolution=ignore-duplicates, a conflicting row is left unchanged. Without a conflict, both modes insert a new row using field defaults for omitted fields. In a batch, a key present in another row is filled with null when omitted in this row unless missing=default is set; that null can overwrite a value during merge. With missing=default, omitted keys stay omitted for conflict merges (existing values are preserved); new rows use defaults, or null when no default exists. Explicit null never invokes a default. Unlike Supabase, upsert conflicts can target only id or one unique field, not a composite key. Each table supports up to 1,000,000 rows.",
6922
7175
  "http": "POST",
6923
7176
  "path": "/database/v1/databases/{database_id}/rest/{table}",
6924
7177
  "streaming": "no",
@@ -6944,7 +7197,7 @@ export const operations = [
6944
7197
  "name": "{column}",
6945
7198
  "type": "string",
6946
7199
  "required": false,
6947
- "description": "Horizontal filter: replace {column} with a field name or JSON path, e.g. title=eq.summary. Repeat for more columns. See the filter operator matrix."
7200
+ "description": "Horizontal filter: replace {column} with a field name or JSON path, e.g. title=eq.summary. Repeat for more columns. Supported operators: eq (equal), neq (not equal; ne is not supported), gt/gte/lt/lte (comparisons), like (case-sensitive text pattern), ilike (case-insensitive text pattern), in (membership), is (null/boolean test), cs (contains), cd (contained by), and ov (array overlap). For like/ilike, * or % matches any sequence and _ matches one character, e.g. title=ilike.*spring*; URL-encode a literal % as %25. Use days=in.(1,2,3), title=is.null, active=is.true or active=is.false; is.not_null and is.unknown are also accepted (unknown means null). Negate a condition with not., e.g. title=not.eq.draft. Multiple filters are ANDed; use or=(title.eq.a,title.eq.b), and=(days.gte.1,days.lte.3), not.or=(...) or not.and=(...), with nested and(...) and or(...) groups as needed. cs/cd accept JSON objects or arrays on JSON fields; cs also accepts a JSON scalar. For array values or multi-link fields, use cs.{a,b}, cd.{a,b} or ov.{a,b}. JSON paths use -> for JSON and ->> for text, e.g. attributes->>has_onsen=eq.true or attributes->tags=cs.[1,2]; chain -> segments and end with ->> for text. Dot paths such as attributes.has_onsen are unsupported. Full-text, regex, range operators and any/all modifiers are unsupported."
6948
7201
  },
6949
7202
  {
6950
7203
  "name": "and",
@@ -6992,7 +7245,7 @@ export const operations = [
6992
7245
  "name": "on_conflict",
6993
7246
  "type": "string",
6994
7247
  "required": false,
6995
- "description": "POST upsert: id or one unique field with resolution=merge-duplicates|ignore-duplicates. POST accepts an optional client id matching [A-Za-z0-9_-]{1,64}; omitted ids are generated. PATCH cannot change id."
7248
+ "description": "POST upsert: id or one unique field with resolution=merge-duplicates|ignore-duplicates. With resolution=merge-duplicates, a conflicting row keeps columns omitted from the request; supplied values replace the whole field value (including JSON objects), and explicit null clears a nullable field. With resolution=ignore-duplicates, a conflicting row is left unchanged. Without a conflict, both modes insert a new row using field defaults for omitted fields. In a batch, a key present in another row is filled with null when omitted in this row unless missing=default is set; that null can overwrite a value during merge. With missing=default, omitted keys stay omitted for conflict merges (existing values are preserved); new rows use defaults, or null when no default exists. Explicit null never invokes a default. POST accepts an optional client id matching [A-Za-z0-9_-]{1,64}; omitted ids are generated. PATCH cannot change id."
6996
7249
  },
6997
7250
  {
6998
7251
  "name": "columns",
@@ -7044,7 +7297,7 @@ export const operations = [
7044
7297
  "resource": "database.databases.tables",
7045
7298
  "method": "create",
7046
7299
  "summary": "Create table",
7047
- "description": "Creates a table together with its initial fields in one call and returns it (HTTP 201) with generated tbl_ and fld_ ids. name must match ^[a-z_][a-z0-9_]{0,62}$ and be unused in this database (duplicate: 409 UNIQUE_VIOLATION). fields is required and may be an empty array; fields can also be added later with databaseAddField. Limits: 50 tables per database, 64 fields per table, and 16 indexed or unique fields per table; exceeding one returns 400 LIMIT_EXCEEDED. Every row also has a system id column, which is not declared as a field. Insert data afterwards with databaseInsert. Unlike Supabase, define schema with this table API and the field APIs; PostgreSQL DDL and SQL migration files cannot be submitted. Each table supports up to 1,000,000 rows.",
7300
+ "description": "Creates a table together with its initial fields in one call and returns it (HTTP 201) with generated tbl_ and fld_ ids. name must match ^[a-z_][a-z0-9_]{0,62}$ and be unused in this database (duplicate: 409 UNIQUE_VIOLATION). fields is required and may be an empty array; fields can also be added later with databaseAddField. Limits: 50 tables per database, 64 fields per table, and 16 indexed or unique fields per table; exceeding one returns 400 LIMIT_EXCEEDED. Fields default to indexed:false. Set indexed:true explicitly for fields used in filters or ordering. Only indexed:true or unique:true consumes one of the 16 indexed-or-unique field slots; a field with both consumes one slot. Unique fields still consume a slot even with indexed:false. Existing fields are unchanged. Minimal field example: {\"name\":\"notes\",\"type\":\"string\",\"indexed\":false}. Every row also has a system id column, which is not declared as a field. Insert data afterwards with databaseInsert. Unlike Supabase, define schema with this table API and the field APIs; PostgreSQL DDL and SQL migration files cannot be submitted. Each table supports up to 1,000,000 rows.",
7048
7301
  "http": "POST",
7049
7302
  "path": "/database/v1/databases/{database_id}/tables",
7050
7303
  "streaming": "no",
@@ -7165,7 +7418,7 @@ export const operations = [
7165
7418
  "resource": "database.databases.tables.fields",
7166
7419
  "method": "create",
7167
7420
  "summary": "Add field",
7168
- "description": "Adds one field to an existing table and returns the updated table (HTTP 201). Required inputs are name (lowercase letters, digits and underscores; id and names starting with _ are reserved) and type (string, integer, number, boolean, datetime, json or link); json needs options.schema and link needs options.linked_table_id and options.multiple. Adding a required field to a table that already has rows needs a default, otherwise the call fails with 400 VALIDATION_FAILED; a default is written into every existing row. Scalar fields are indexed by default, while json and link fields cannot be indexed. Limits: 64 fields and 16 indexed or unique fields per table (400 LIMIT_EXCEEDED). Unlike Supabase, schema evolution uses field definitions rather than ALTER TABLE statements or SQL migrations.",
7421
+ "description": "Adds one field to an existing table and returns the updated table (HTTP 201). Required inputs are name (lowercase letters, digits and underscores; id and names starting with _ are reserved) and type (string, integer, number, boolean, datetime, json or link); json needs options.schema and link needs options.linked_table_id and options.multiple. Adding a required field to a table that already has rows needs a default, otherwise the call fails with 400 VALIDATION_FAILED; a default is written into every existing row. Fields default to indexed:false. Set indexed:true explicitly for fields used in filters or ordering. Only indexed:true or unique:true consumes one of the 16 indexed-or-unique field slots; a field with both consumes one slot. Unique fields still consume a slot even with indexed:false. Existing fields are unchanged. Minimal field example: {\"name\":\"notes\",\"type\":\"string\",\"indexed\":false}. JSON and link fields cannot be indexed. Limits: 64 fields and 16 indexed or unique fields per table (400 LIMIT_EXCEEDED). Unlike Supabase, schema evolution uses field definitions rather than ALTER TABLE statements or SQL migrations.",
7169
7422
  "http": "POST",
7170
7423
  "path": "/database/v1/databases/{database_id}/tables/{table}/fields",
7171
7424
  "streaming": "no",