@deepraxis/sdk 0.1.0-dev.13103a0 → 0.1.0-dev.331f4e7

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.
@@ -1,6 +1,24 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  import { formDataBodySerializer } from './client/index.js';
3
3
  import { client } from './client.gen.js';
4
+ /**
5
+ * Apply Agent Version
6
+ *
7
+ * Apply a version from agents.versions.list by its version number. This idempotent operation changes active_version without creating a version; existing sessions and tokens keep their version. The response is the latest saved agent with its current active_version. Missing versions return 404 Agent version not found; archived agents return 409 Agent is archived. For example, POST /agent/v1/agents/{agent_id}/versions/2/apply with no body.
8
+ */
9
+ export const applyAgentVersion = (options) => (options.client ?? client).post({
10
+ security: [{
11
+ key: 'BearerAuth',
12
+ scheme: 'bearer',
13
+ type: 'http'
14
+ }, {
15
+ key: 'ApiKeyAuth',
16
+ name: 'X-API-Key',
17
+ type: 'apiKey'
18
+ }],
19
+ url: '/agent/v1/agents/{agent_id}/versions/{version}/apply',
20
+ ...options
21
+ });
4
22
  /**
5
23
  * Unarchive Agent
6
24
  *
@@ -496,6 +514,8 @@ export const computersFilesContent = (options) => (options.client ?? client).get
496
514
  * Resume the computer and issue a sandbox connection.
497
515
  *
498
516
  * Own-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.
517
+ *
518
+ * Connect 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.
499
519
  */
500
520
  export const connectComputer = (options) => (options.client ?? client).post({
501
521
  security: [{
@@ -508,7 +528,11 @@ export const connectComputer = (options) => (options.client ?? client).post({
508
528
  type: 'apiKey'
509
529
  }],
510
530
  url: '/agent/v1/computers/{computer_id}/connect',
511
- ...options
531
+ ...options,
532
+ headers: {
533
+ 'Content-Type': 'application/json',
534
+ ...options.headers
535
+ }
512
536
  });
513
537
  /**
514
538
  * Renew computer lease
@@ -1077,7 +1101,7 @@ export const fileListFiles = (options) => (options?.client ?? client).get({
1077
1101
  /**
1078
1102
  * Upload file
1079
1103
  *
1080
- * Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 104857600 bytes, and only user_data, assistants and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File(["Return within 23 days."], "policy.txt", { type: "text/plain" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. OpenAI Uploads chunking is not supported. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–2592000), or praxis[expires_in_seconds] (3600–7776000), never both. Without expiry, the file persists until deleted.
1104
+ * Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data, assistants and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File(["Return within 23 days."], "policy.txt", { type: "text/plain" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–2592000), or praxis[expires_in_seconds] (3600–7776000), never both. Without expiry, the file persists until deleted.
1081
1105
  */
1082
1106
  export const fileCreateFile = (options) => (options.client ?? client).post({
1083
1107
  ...formDataBodySerializer,
@@ -1118,7 +1142,7 @@ export const fileDeleteFile = (options) => (options.client ?? client).delete({
1118
1142
  /**
1119
1143
  * Retrieve file
1120
1144
  *
1121
- * Retrieve metadata for a live file owned by your tenant. Use its file_dp_ ID from upload or list. Missing, deleted, expired and other-tenant files return 404; use the content endpoint to download the bytes.
1145
+ * Retrieve metadata for a live file owned by your tenant. Use its file- ID from upload or list. Missing, deleted, expired and other-tenant files return 404; use the content endpoint to download the bytes.
1122
1146
  */
1123
1147
  export const fileRetrieveFile = (options) => (options.client ?? client).get({
1124
1148
  security: [{
@@ -1136,7 +1160,7 @@ export const fileRetrieveFile = (options) => (options.client ?? client).get({
1136
1160
  /**
1137
1161
  * Retrieve file content
1138
1162
  *
1139
- * Download the original bytes of a live file owned by your tenant. Supply its file_dp_ ID from upload or list. A single byte Range can return a partial response; a range outside the file returns 416. Missing, deleted, expired and other-tenant files return 404.
1163
+ * Download the original bytes of a live file owned by your tenant. Supply its file- ID from upload or list. A single byte Range can return a partial response; a range outside the file returns 416. Missing, deleted, expired and other-tenant files return 404.
1140
1164
  */
1141
1165
  export const fileRetrieveFileContent = (options) => (options.client ?? client).get({
1142
1166
  security: [{
@@ -1151,6 +1175,75 @@ export const fileRetrieveFileContent = (options) => (options.client ?? client).g
1151
1175
  url: '/file/v1/files/{file_id}/content',
1152
1176
  ...options
1153
1177
  });
1178
+ /**
1179
+ * Create an upload
1180
+ *
1181
+ * Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, uploads accept at most 2 GiB (2147483648 bytes) and only user_data, assistants and vision purposes. Add parts of at most 64000000 bytes and complete within one hour. Optional part_size enables fixed-size, retryable parts. expires_after applies to the resulting file (3600–7776000 seconds on this own face); without it the file persists until deleted.
1182
+ */
1183
+ export const fileCreateUpload = (options) => (options.client ?? client).post({
1184
+ security: [{
1185
+ key: 'BearerAuth',
1186
+ scheme: 'bearer',
1187
+ type: 'http'
1188
+ }],
1189
+ url: '/file/v1/uploads',
1190
+ ...options,
1191
+ headers: {
1192
+ 'Content-Type': 'application/json',
1193
+ ...options.headers
1194
+ }
1195
+ });
1196
+ /**
1197
+ * Add an upload part
1198
+ *
1199
+ * Send one nonempty part as the multipart data field, at most 64000000 bytes. Parts may arrive concurrently in any order. Use upload_id from create. For a fixed-size upload, supply part_number starting at 1 and exactly part_size bytes except for the final remainder; retry the same number with identical bytes to recover its part ID. Without part_size, each request creates a new part and part_number is ignored. Save the returned part IDs for complete.
1200
+ */
1201
+ export const fileAddUploadPart = (options) => (options.client ?? client).post({
1202
+ ...formDataBodySerializer,
1203
+ security: [{
1204
+ key: 'BearerAuth',
1205
+ scheme: 'bearer',
1206
+ type: 'http'
1207
+ }],
1208
+ url: '/file/v1/uploads/{upload_id}/parts',
1209
+ ...options,
1210
+ headers: {
1211
+ 'Content-Type': null,
1212
+ ...options.headers
1213
+ }
1214
+ });
1215
+ /**
1216
+ * Complete an upload
1217
+ *
1218
+ * Assemble the uploaded parts into a file. Supply upload_id from create and part_ids from addPart in file byte order; their sizes must total the declared bytes. Optional md5 verifies the assembled content. Retrying identical part_ids and normalized md5 returns the same result; different inputs return 409. Unlike OpenAI, completed can contain a file still processing (status uploaded). Poll files.retrieve using file.id until status processed (own face state active); error, expiry or 404 means processing failed and the file cannot be used.
1219
+ */
1220
+ export const fileCompleteUpload = (options) => (options.client ?? client).post({
1221
+ security: [{
1222
+ key: 'BearerAuth',
1223
+ scheme: 'bearer',
1224
+ type: 'http'
1225
+ }],
1226
+ url: '/file/v1/uploads/{upload_id}/complete',
1227
+ ...options,
1228
+ headers: {
1229
+ 'Content-Type': 'application/json',
1230
+ ...options.headers
1231
+ }
1232
+ });
1233
+ /**
1234
+ * Cancel an upload
1235
+ *
1236
+ * Cancel an unfinished upload using upload_id from create and release its reserved storage. Further parts and completion are rejected. Cancelling an already cancelled upload returns the same terminal result; a completed upload cannot be cancelled. Delete its resulting file instead.
1237
+ */
1238
+ export const fileCancelUpload = (options) => (options.client ?? client).post({
1239
+ security: [{
1240
+ key: 'BearerAuth',
1241
+ scheme: 'bearer',
1242
+ type: 'http'
1243
+ }],
1244
+ url: '/file/v1/uploads/{upload_id}/cancel',
1245
+ ...options
1246
+ });
1154
1247
  /**
1155
1248
  * Health Check
1156
1249
  *
@@ -2426,7 +2519,7 @@ export const agentsRetrieve = (options) => (options.client ?? client).get({
2426
2519
  /**
2427
2520
  * Update agent
2428
2521
  *
2429
- * 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.
2522
+ * 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. apply defaults to true and moves active_version to the new version, or to the latest when configuration is unchanged; apply false saves without applying. version_note optionally records up to 280 characters on a newly created version. Existing sessions and tokens keep their version. 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.
2430
2523
  */
2431
2524
  export const agentsUpdate = (options) => (options.client ?? client).post({
2432
2525
  security: [{
@@ -2502,7 +2595,7 @@ export const sessionsList = (options) => (options?.client ?? client).get({
2502
2595
  /**
2503
2596
  * Create session
2504
2597
  *
2505
- * Create a session: one conversation with an agent, running on a machine. Pass agent as an agent id (latest version) or {id, version, type:"agent"}. Unlike Anthropic Managed Agents, omit environment_id to get a light machine, unless computer_id (explicit, or the agent's default) selects a Computer; pass environment_id for a sandbox recipe. 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. Inline agent overrides are not supported. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Omitted budget defaults to USD 20; null removes the limit, and a limit object uses a positive integer string of USD cents. 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.
2598
+ * Create a session: one conversation with an agent. Pass agent as an agent id (active_version) or {id, version, type:"agent"}. Unlike Anthropic Managed Agents, omit environment_id to get a light machine, unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, omission returns environment_id=light; 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. Inline agent overrides are not supported. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Omitted budget defaults to USD 20; null removes the limit, and a limit object uses a positive integer string of USD cents. 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.
2506
2599
  */
2507
2600
  export const sessionsCreate = (options) => (options.client ?? client).post({
2508
2601
  security: [{
@@ -3481,9 +3574,9 @@ export const automationActionsCreate = (options) => (options.client ?? client).p
3481
3574
  }
3482
3575
  });
3483
3576
  /**
3484
- * Get an action
3577
+ * Get an Action with its current input and output JSON Schemas
3485
3578
  *
3486
- * Read the action and its full current implementation. The response ETag is the current revision ID for conditional updates.
3579
+ * Read the Action and its full current implementation, with input and output JSON Schemas at current_revision.input_schema and current_revision.output_schema. To read a built-in Action, use ns=praxis and name=<bare name>, for example name=ocr; invoke it in a script with call("ocr", input). The response ETag is the current revision ID for conditional updates.
3487
3580
  */
3488
3581
  export const automationActionsGet = (options) => (options.client ?? client).get({
3489
3582
  security: [{
@@ -3681,7 +3774,7 @@ export const automationScriptsList = (options) => (options?.client ?? client).ge
3681
3774
  /**
3682
3775
  * Create a script
3683
3776
  *
3684
- * Save a TypeScript script as an editable draft for later reuse; this does not publish or start a run. Choose your own namespace without registering it first; praxis is read-only. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. The draft is a source string with a default-exported function, for example `export default async (input: {name: string}) => ({greeting: "Hello, " + input.name});`. To test it, pass that source and language=ts to praxis.automation.runs.create without publishing. To publish later, use the returned draft.revision as expected_draft_revision.
3777
+ * Save a TypeScript script as an editable draft for later reuse; this does not publish or start a run. Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. The draft is a source string with a default-exported function, for example `export default async (input: {name: string}) => ({greeting: "Hello, " + input.name});`. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call("ocr", input) calls a built-in Action, and invoke("namespace/name", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist. To test it, pass that source and language=ts to praxis.automation.runs.create without publishing. To publish later, use the returned draft.revision as expected_draft_revision.
3685
3778
  */
3686
3779
  export const automationScriptsCreate = (options) => (options.client ?? client).post({
3687
3780
  security: [{
@@ -3721,7 +3814,7 @@ export const automationScriptsGet = (options) => (options.client ?? client).get(
3721
3814
  /**
3722
3815
  * Update a script draft
3723
3816
  *
3724
- * Update description, labels or draft with the current draft revision in If-Match. Even metadata-only updates create a new draft revision.
3817
+ * Update description, labels or draft with the current draft revision in If-Match. Even metadata-only updates create a new draft revision. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call("ocr", input) calls a built-in Action, and invoke("namespace/name", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist.
3725
3818
  */
3726
3819
  export const automationScriptsPatch = (options) => (options.client ?? client).patch({
3727
3820
  security: [{
@@ -3944,7 +4037,7 @@ export const automationWorkflowsList = (options) => (options?.client ?? client).
3944
4037
  /**
3945
4038
  * Create a workflow
3946
4039
  *
3947
- * Save a YAML workflow as an editable draft without publishing or starting a run. Choose your own namespace without registering it first; praxis is read-only. To test the draft, send its source and language=yaml to praxis.automation.runs.create. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. run.workflow accepts ns/name@range or {namespace, name, version, input}; run.script uses the same reference shape as a platform extension. Object namespace, name and version are required; version accepts an exact version, dist-tag or range, locked at publication. Object input defaults to {} and supports expressions; string references retain task-level with. run.await defaults to true and returns the child output. With false, the child uses detach and the task immediately returns {run_id}; parent cancellation does not cascade. Inline script.code returns DEFINITION_INVALID with a detail asking you to save a script and reference it first. raise.error retains its type URI, status, title and detail in the run error.
4040
+ * Save a YAML workflow as an editable draft without publishing or starting a run. Choose your own namespace without registering it first; praxis is reserved for built-in Actions. To test the draft, send its source and language=yaml to praxis.automation.runs.create. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. run.workflow accepts ns/name@range or {namespace, name, version, input}; run.script uses the same reference shape as a platform extension. Object namespace, name and version are required; version accepts an exact version, dist-tag or range, locked at publication. Object input defaults to {} and supports expressions; string references retain task-level with. run.await defaults to true and returns the child output. With false, the child uses detach and the task immediately returns {run_id}; parent cancellation does not cascade. Inline script.code returns DEFINITION_INVALID with a detail asking you to save a script and reference it first. raise.error retains its type URI, status, title and detail in the run error.
3948
4041
  */
3949
4042
  export const automationWorkflowsCreate = (options) => (options.client ?? client).post({
3950
4043
  security: [{
@@ -4274,9 +4367,9 @@ export const automationRunsList = (options) => (options?.client ?? client).get({
4274
4367
  ...options
4275
4368
  });
4276
4369
  /**
4277
- * Create a run
4370
+ * Run a published target or execute draft source
4278
4371
  *
4279
- * Execute a published script or workflow with target, or test unpublished code directly with source and language (ts for TypeScript, yaml for workflow YAML), without first saving or publishing a definition. target and source are mutually exclusive; target accepts ns/name@version, @tag or @range and defaults to latest when @ is omitted. Source/input validation precedes run creation, so a separate validate call is optional. input defaults to {} and must match the input schema and fit within 1 MiB. wait is 0–60 seconds (default 0): a terminal run returns 200, otherwise 202. Use the returned id with praxis.automation.runs.retrieve and inspect status, output and error; acceptance does not mean successful completion. Idempotency-Key is scoped to tenant, method and path for 24 hours, excluding wait from the fingerprint; replay returns the current run with Idempotent-Replayed: true, changed contents return 422 and an in-flight request returns 409. New non-deterministic run IDs contain 78 characters (run_ + 10-character base36 millisecond timestamp + 64-character hexadecimal DO ID), compared with 46 for legacy random IDs. Historical and deterministic IDs remain valid; same-millisecond order is not guaranteed. Minimal body: {"source":"export default async () => ({ok: true});","language":"ts","wait":10}.
4372
+ * Execute a published script or workflow with target, or test unpublished code directly with source and language (ts for TypeScript, yaml for workflow YAML), without first saving or publishing a definition. Minimal script: `export default async ({ file_id }: { file_id: string }) => { const result = await call("ocr", { document: { type: "file", file_id } }); return result; }`; send it as source with language="ts", input={"file_id":"<uploaded file ID>"} and wait=0, using a PDF or image already uploaded to your account. To call a platform API directly in the same script, use the praxis SDK object, for example `praxis.model.ocr.create({ body: { model: "glm-ocr", document: { type: "file", file_id } } })`; Action IDs are strings passed to call(), not SDK methods such as praxis.ocr(...). praxis, call, invoke, console and codemode are module-scope bindings, not on globalThis, and need no import; invoke("namespace/name", input) starts a child run. target and source are mutually exclusive; target accepts ns/name@version, @tag or @range and defaults to latest when @ is omitted. Source/input validation precedes run creation, so a separate validate call is optional. input defaults to {} and must match the input schema and fit within 1 MiB. wait is 0–60 seconds (default 0): a terminal run returns 200, otherwise 202. Use the returned id with praxis.automation.runs.retrieve and inspect status, output and error; acceptance does not mean successful completion. For long-running, background or batch work, use wait: 0 and poll the run, or split work into child runs or a workflow; wait only controls the response wait and does not extend execution limits. Actions time out after 30 s (run-sandbox after 10 min); scripts have a 5 min wall-clock limit and a 30 s CPU limit; workflows default to 24 h and allow up to 7 days. Each run can start at most 100 child runs, with at most 20 active at once; nesting depth is limited to 10. Idempotency-Key is scoped to tenant, method and path for 24 hours, excluding wait from the fingerprint; replay returns the current run with Idempotent-Replayed: true, changed contents return 422 and an in-flight request returns 409. New non-deterministic run IDs contain 78 characters, compared with 46 for legacy random IDs; treat IDs as opaque strings. Historical and deterministic IDs remain valid; same-millisecond order is not guaranteed.
4280
4373
  */
4281
4374
  export const automationRunsCreate = (options) => (options.client ?? client).post({
4282
4375
  security: [{
@@ -4902,7 +4995,7 @@ export const databaseListTables = (options) => (options.client ?? client).get({
4902
4995
  /**
4903
4996
  * Create table
4904
4997
  *
4905
- * 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.
4998
+ * 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.
4906
4999
  */
4907
5000
  export const databaseCreateTable = (options) => (options.client ?? client).post({
4908
5001
  security: [{
@@ -4966,7 +5059,7 @@ export const databaseUpdateTable = (options) => (options.client ?? client).patch
4966
5059
  /**
4967
5060
  * Add field
4968
5061
  *
4969
- * 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.
5062
+ * 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.
4970
5063
  */
4971
5064
  export const databaseAddField = (options) => (options.client ?? client).post({
4972
5065
  security: [{
@@ -5044,7 +5137,7 @@ export const databaseDelete = (options) => (options.client ?? client).delete({
5044
5137
  /**
5045
5138
  * Select rows
5046
5139
  *
5047
- * 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.
5140
+ * 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.
5048
5141
  */
5049
5142
  export const databaseSelect = (options) => (options.client ?? client).get({
5050
5143
  security: [{
@@ -5058,7 +5151,7 @@ export const databaseSelect = (options) => (options.client ?? client).get({
5058
5151
  /**
5059
5152
  * Count rows
5060
5153
  *
5061
- * 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.
5154
+ * 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.
5062
5155
  */
5063
5156
  export const databaseHead = (options) => (options.client ?? client).head({
5064
5157
  security: [{
@@ -5092,7 +5185,7 @@ export const databaseUpdate = (options) => (options.client ?? client).patch({
5092
5185
  *
5093
5186
  * 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.
5094
5187
  * Rows are filled to the union of their keys with null; send Prefer: missing=default to use field defaults for missing keys.
5095
- * The 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.
5188
+ * The 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.
5096
5189
  */
5097
5190
  export const databaseInsert = (options) => (options.client ?? client).post({
5098
5191
  security: [{
@@ -5878,7 +5971,7 @@ export const getSandboxV1Sandboxes = (options) => (options?.client ?? client).ge
5878
5971
  /**
5879
5972
  * Create sandbox (v2)
5880
5973
  *
5881
- * Start an isolated environment using a templateID from templates.list, then retain sandboxID for lifecycle calls. Unlike E2B, templateID resolves to your ready Environment or a public Base; omit it to use the default base template (`base`), as the E2B SDK does. timeout is seconds from creation and defaults to 300. envVars supplies environment variables and metadata stores your string labels. All system communication is secured; use the returned envdAccessToken for files and commands through the envd data plane, not the management methods. Never print that token.
5974
+ * Create a sandbox from the template. All system communication with the sandbox is secured.
5882
5975
  */
5883
5976
  export const postSandboxV1Sandboxes = (options) => (options.client ?? client).post({
5884
5977
  security: [
@@ -5919,7 +6012,7 @@ export const postSandboxV1Sandboxes = (options) => (options.client ?? client).po
5919
6012
  /**
5920
6013
  * Sandbox metrics
5921
6014
  *
5922
- * Read CPU, memory and disk usage over the requested interval; start and end are Unix seconds. Unlike E2B, light sandboxes do not provide metrics; check the returned capabilities before requesting them.
6015
+ * Read CPU, memory and disk usage samples of a sandbox over a time window. Use it to size a sandbox or find out why it is slow. start and end are Unix timestamps in seconds; without them the recent samples are returned. An unknown id answers 404.
5923
6016
  */
5924
6017
  export const getSandboxV1SandboxesBySandboxIdMetrics = (options) => (options.client ?? client).get({
5925
6018
  security: [
@@ -5956,7 +6049,7 @@ export const getSandboxV1SandboxesBySandboxIdMetrics = (options) => (options.cli
5956
6049
  /**
5957
6050
  * Pause sandbox
5958
6051
  *
5959
- * Suspend a running sandbox for later connection; use delete to discard it instead. Unlike E2B, light sandboxes preserve disk rather than memory, and persistent sandboxes can resume on data-plane traffic even when autoResume is false. Inspect paused state with the management retrieve operation to avoid waking the sandbox. Explicitly ephemeral sandboxes cannot pause. memory defaults to true, but only a memory-capable sandbox preserves running processes; memory=false saves disk state and resumes with a cold boot. Success returns 204; connect resumes the saved sandbox.
6052
+ * Pause a running sandbox, keeping its files and memory so that connectSandbox can resume it later. Use it to stop paying for compute without losing state; to discard the sandbox use killSandbox. Success answers 204. A sandbox that is not running answers 409.
5960
6053
  */
5961
6054
  export const postSandboxV1SandboxesBySandboxIdPause = (options) => (options.client ?? client).post({
5962
6055
  security: [
@@ -6038,7 +6131,7 @@ export const postSandboxV1SandboxesBySandboxIdTimeout = (options) => (options.cl
6038
6131
  /**
6039
6132
  * Connect sandbox (v2)
6040
6133
  *
6041
- * Reconnect to an existing sandbox and resume it if paused. The optional timeout is seconds from now and defaults to 300; a later existing deadline is preserved. A running sandbox returns 200 and a resumed sandbox returns 201. Read sandboxID, domain and envdAccessToken from the response for subsequent data-plane access; never treat connecting as executing a command.
6134
+ * Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. The request body is optional; an omitted timeout defaults to 300 seconds.
6042
6135
  */
6043
6136
  export const postSandboxV1SandboxesBySandboxIdConnect = (options) => (options.client ?? client).post({
6044
6137
  security: [
@@ -6079,7 +6172,7 @@ export const postSandboxV1SandboxesBySandboxIdConnect = (options) => (options.cl
6079
6172
  /**
6080
6173
  * List templates (v2)
6081
6174
  *
6082
- * Choose a templateID before creating a sandbox. Unlike E2B, this catalog lists your ready Environments and public Bases; use a returned ID or alias; `base` is the default template that create uses when templateID is omitted. Page through results using nextToken.
6175
+ * List the templates you can create sandboxes from. Use it to pick the template id or alias for createSandbox. `base` is the default template that createSandbox uses when templateID is omitted. limit is 1 to 100 (default 100); send the cursor from the response back as nextToken to continue.
6083
6176
  */
6084
6177
  export const getSandboxV1Templates = (options) => (options?.client ?? client).get({
6085
6178
  security: [
@@ -6945,3 +7038,779 @@ export const vaultConnectContinue = (options) => (options.client ?? client).post
6945
7038
  * Consume a pending authorization's one-time connect token and mark it failed with access_denied. Redirect to the configured return URL, or display a result page when none was supplied.
6946
7039
  */
6947
7040
  export const vaultConnectDeny = (options) => (options.client ?? client).post({ url: '/vault/v1/connect/{token}/deny', ...options });
7041
+ /**
7042
+ * List tickets
7043
+ *
7044
+ * List tickets within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Pass next_page_token as page_token to continue with the same filter. Service authorization applies to the verified human subject.
7045
+ */
7046
+ export const ticketGetTickets = (options) => (options?.client ?? client).get({
7047
+ security: [{
7048
+ key: 'BearerAuth',
7049
+ scheme: 'bearer',
7050
+ type: 'http'
7051
+ }, {
7052
+ key: 'ApiKeyAuth',
7053
+ name: 'X-API-Key',
7054
+ type: 'apiKey'
7055
+ }],
7056
+ url: '/ticket/v1/tickets',
7057
+ ...options
7058
+ });
7059
+ /**
7060
+ * Create or add tickets
7061
+ *
7062
+ * Create or add tickets within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7063
+ */
7064
+ export const ticketPostTickets = (options) => (options.client ?? client).post({
7065
+ security: [{
7066
+ key: 'BearerAuth',
7067
+ scheme: 'bearer',
7068
+ type: 'http'
7069
+ }, {
7070
+ key: 'ApiKeyAuth',
7071
+ name: 'X-API-Key',
7072
+ type: 'apiKey'
7073
+ }],
7074
+ url: '/ticket/v1/tickets',
7075
+ ...options,
7076
+ headers: {
7077
+ 'Content-Type': 'application/json',
7078
+ ...options.headers
7079
+ }
7080
+ });
7081
+ /**
7082
+ * Read tickets
7083
+ *
7084
+ * Read tickets within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7085
+ */
7086
+ export const ticketGetTicketsNumber = (options) => (options.client ?? client).get({
7087
+ security: [{
7088
+ key: 'BearerAuth',
7089
+ scheme: 'bearer',
7090
+ type: 'http'
7091
+ }, {
7092
+ key: 'ApiKeyAuth',
7093
+ name: 'X-API-Key',
7094
+ type: 'apiKey'
7095
+ }],
7096
+ url: '/ticket/v1/tickets/{number}',
7097
+ ...options
7098
+ });
7099
+ /**
7100
+ * Update tickets
7101
+ *
7102
+ * Update tickets within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7103
+ */
7104
+ export const ticketPatchTicketsNumber = (options) => (options.client ?? client).patch({
7105
+ security: [{
7106
+ key: 'BearerAuth',
7107
+ scheme: 'bearer',
7108
+ type: 'http'
7109
+ }, {
7110
+ key: 'ApiKeyAuth',
7111
+ name: 'X-API-Key',
7112
+ type: 'apiKey'
7113
+ }],
7114
+ url: '/ticket/v1/tickets/{number}',
7115
+ ...options,
7116
+ headers: {
7117
+ 'Content-Type': 'application/json',
7118
+ ...options.headers
7119
+ }
7120
+ });
7121
+ /**
7122
+ * Remove lock
7123
+ *
7124
+ * Remove lock within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.
7125
+ */
7126
+ export const ticketDeleteTicketsNumberLock = (options) => (options.client ?? client).delete({
7127
+ security: [{
7128
+ key: 'BearerAuth',
7129
+ scheme: 'bearer',
7130
+ type: 'http'
7131
+ }, {
7132
+ key: 'ApiKeyAuth',
7133
+ name: 'X-API-Key',
7134
+ type: 'apiKey'
7135
+ }],
7136
+ url: '/ticket/v1/tickets/{number}/lock',
7137
+ ...options
7138
+ });
7139
+ /**
7140
+ * Update lock
7141
+ *
7142
+ * Update lock within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.
7143
+ */
7144
+ export const ticketPutTicketsNumberLock = (options) => (options.client ?? client).put({
7145
+ security: [{
7146
+ key: 'BearerAuth',
7147
+ scheme: 'bearer',
7148
+ type: 'http'
7149
+ }, {
7150
+ key: 'ApiKeyAuth',
7151
+ name: 'X-API-Key',
7152
+ type: 'apiKey'
7153
+ }],
7154
+ url: '/ticket/v1/tickets/{number}/lock',
7155
+ ...options,
7156
+ headers: {
7157
+ 'Content-Type': 'application/json',
7158
+ ...options.headers
7159
+ }
7160
+ });
7161
+ /**
7162
+ * List comments
7163
+ *
7164
+ * List comments within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Pass next_page_token as page_token to continue with the same filter. Service authorization applies to the verified human subject.
7165
+ */
7166
+ export const ticketGetTicketsNumberComments = (options) => (options.client ?? client).get({
7167
+ security: [{
7168
+ key: 'BearerAuth',
7169
+ scheme: 'bearer',
7170
+ type: 'http'
7171
+ }, {
7172
+ key: 'ApiKeyAuth',
7173
+ name: 'X-API-Key',
7174
+ type: 'apiKey'
7175
+ }],
7176
+ url: '/ticket/v1/tickets/{number}/comments',
7177
+ ...options
7178
+ });
7179
+ /**
7180
+ * Create or add comments
7181
+ *
7182
+ * Create or add comments within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7183
+ */
7184
+ export const ticketPostTicketsNumberComments = (options) => (options.client ?? client).post({
7185
+ security: [{
7186
+ key: 'BearerAuth',
7187
+ scheme: 'bearer',
7188
+ type: 'http'
7189
+ }, {
7190
+ key: 'ApiKeyAuth',
7191
+ name: 'X-API-Key',
7192
+ type: 'apiKey'
7193
+ }],
7194
+ url: '/ticket/v1/tickets/{number}/comments',
7195
+ ...options,
7196
+ headers: {
7197
+ 'Content-Type': 'application/json',
7198
+ ...options.headers
7199
+ }
7200
+ });
7201
+ /**
7202
+ * Remove comments
7203
+ *
7204
+ * Remove comments within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7205
+ */
7206
+ export const ticketDeleteCommentsId = (options) => (options.client ?? client).delete({
7207
+ security: [{
7208
+ key: 'BearerAuth',
7209
+ scheme: 'bearer',
7210
+ type: 'http'
7211
+ }, {
7212
+ key: 'ApiKeyAuth',
7213
+ name: 'X-API-Key',
7214
+ type: 'apiKey'
7215
+ }],
7216
+ url: '/ticket/v1/comments/{id}',
7217
+ ...options
7218
+ });
7219
+ /**
7220
+ * Read comments
7221
+ *
7222
+ * Read comments within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7223
+ */
7224
+ export const ticketGetCommentsId = (options) => (options.client ?? client).get({
7225
+ security: [{
7226
+ key: 'BearerAuth',
7227
+ scheme: 'bearer',
7228
+ type: 'http'
7229
+ }, {
7230
+ key: 'ApiKeyAuth',
7231
+ name: 'X-API-Key',
7232
+ type: 'apiKey'
7233
+ }],
7234
+ url: '/ticket/v1/comments/{id}',
7235
+ ...options
7236
+ });
7237
+ /**
7238
+ * Update comments
7239
+ *
7240
+ * Update comments within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7241
+ */
7242
+ export const ticketPatchCommentsId = (options) => (options.client ?? client).patch({
7243
+ security: [{
7244
+ key: 'BearerAuth',
7245
+ scheme: 'bearer',
7246
+ type: 'http'
7247
+ }, {
7248
+ key: 'ApiKeyAuth',
7249
+ name: 'X-API-Key',
7250
+ type: 'apiKey'
7251
+ }],
7252
+ url: '/ticket/v1/comments/{id}',
7253
+ ...options,
7254
+ headers: {
7255
+ 'Content-Type': 'application/json',
7256
+ ...options.headers
7257
+ }
7258
+ });
7259
+ /**
7260
+ * List labels
7261
+ *
7262
+ * List labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Pass next_page_token as page_token to continue with the same filter. Service authorization applies to the verified human subject.
7263
+ */
7264
+ export const ticketGetLabels = (options) => (options?.client ?? client).get({
7265
+ security: [{
7266
+ key: 'BearerAuth',
7267
+ scheme: 'bearer',
7268
+ type: 'http'
7269
+ }, {
7270
+ key: 'ApiKeyAuth',
7271
+ name: 'X-API-Key',
7272
+ type: 'apiKey'
7273
+ }],
7274
+ url: '/ticket/v1/labels',
7275
+ ...options
7276
+ });
7277
+ /**
7278
+ * Create or add labels
7279
+ *
7280
+ * Create or add labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.
7281
+ */
7282
+ export const ticketPostLabels = (options) => (options.client ?? client).post({
7283
+ security: [{
7284
+ key: 'BearerAuth',
7285
+ scheme: 'bearer',
7286
+ type: 'http'
7287
+ }, {
7288
+ key: 'ApiKeyAuth',
7289
+ name: 'X-API-Key',
7290
+ type: 'apiKey'
7291
+ }],
7292
+ url: '/ticket/v1/labels',
7293
+ ...options,
7294
+ headers: {
7295
+ 'Content-Type': 'application/json',
7296
+ ...options.headers
7297
+ }
7298
+ });
7299
+ /**
7300
+ * Remove labels
7301
+ *
7302
+ * Remove labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.
7303
+ */
7304
+ export const ticketDeleteLabelsName = (options) => (options.client ?? client).delete({
7305
+ security: [{
7306
+ key: 'BearerAuth',
7307
+ scheme: 'bearer',
7308
+ type: 'http'
7309
+ }, {
7310
+ key: 'ApiKeyAuth',
7311
+ name: 'X-API-Key',
7312
+ type: 'apiKey'
7313
+ }],
7314
+ url: '/ticket/v1/labels/{name}',
7315
+ ...options
7316
+ });
7317
+ /**
7318
+ * Update labels
7319
+ *
7320
+ * Update labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.
7321
+ */
7322
+ export const ticketPatchLabelsName = (options) => (options.client ?? client).patch({
7323
+ security: [{
7324
+ key: 'BearerAuth',
7325
+ scheme: 'bearer',
7326
+ type: 'http'
7327
+ }, {
7328
+ key: 'ApiKeyAuth',
7329
+ name: 'X-API-Key',
7330
+ type: 'apiKey'
7331
+ }],
7332
+ url: '/ticket/v1/labels/{name}',
7333
+ ...options,
7334
+ headers: {
7335
+ 'Content-Type': 'application/json',
7336
+ ...options.headers
7337
+ }
7338
+ });
7339
+ /**
7340
+ * Read types
7341
+ *
7342
+ * Read types within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7343
+ */
7344
+ export const ticketGetTypes = (options) => (options?.client ?? client).get({
7345
+ security: [{
7346
+ key: 'BearerAuth',
7347
+ scheme: 'bearer',
7348
+ type: 'http'
7349
+ }, {
7350
+ key: 'ApiKeyAuth',
7351
+ name: 'X-API-Key',
7352
+ type: 'apiKey'
7353
+ }],
7354
+ url: '/ticket/v1/types',
7355
+ ...options
7356
+ });
7357
+ /**
7358
+ * List milestones
7359
+ *
7360
+ * List milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Pass next_page_token as page_token to continue with the same filter. Service authorization applies to the verified human subject.
7361
+ */
7362
+ export const ticketGetMilestones = (options) => (options?.client ?? client).get({
7363
+ security: [{
7364
+ key: 'BearerAuth',
7365
+ scheme: 'bearer',
7366
+ type: 'http'
7367
+ }, {
7368
+ key: 'ApiKeyAuth',
7369
+ name: 'X-API-Key',
7370
+ type: 'apiKey'
7371
+ }],
7372
+ url: '/ticket/v1/milestones',
7373
+ ...options
7374
+ });
7375
+ /**
7376
+ * Create or add milestones
7377
+ *
7378
+ * Create or add milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.
7379
+ */
7380
+ export const ticketPostMilestones = (options) => (options.client ?? client).post({
7381
+ security: [{
7382
+ key: 'BearerAuth',
7383
+ scheme: 'bearer',
7384
+ type: 'http'
7385
+ }, {
7386
+ key: 'ApiKeyAuth',
7387
+ name: 'X-API-Key',
7388
+ type: 'apiKey'
7389
+ }],
7390
+ url: '/ticket/v1/milestones',
7391
+ ...options,
7392
+ headers: {
7393
+ 'Content-Type': 'application/json',
7394
+ ...options.headers
7395
+ }
7396
+ });
7397
+ /**
7398
+ * Remove milestones
7399
+ *
7400
+ * Remove milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.
7401
+ */
7402
+ export const ticketDeleteMilestonesNumber = (options) => (options.client ?? client).delete({
7403
+ security: [{
7404
+ key: 'BearerAuth',
7405
+ scheme: 'bearer',
7406
+ type: 'http'
7407
+ }, {
7408
+ key: 'ApiKeyAuth',
7409
+ name: 'X-API-Key',
7410
+ type: 'apiKey'
7411
+ }],
7412
+ url: '/ticket/v1/milestones/{number}',
7413
+ ...options
7414
+ });
7415
+ /**
7416
+ * Read milestones
7417
+ *
7418
+ * Read milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7419
+ */
7420
+ export const ticketGetMilestonesNumber = (options) => (options.client ?? client).get({
7421
+ security: [{
7422
+ key: 'BearerAuth',
7423
+ scheme: 'bearer',
7424
+ type: 'http'
7425
+ }, {
7426
+ key: 'ApiKeyAuth',
7427
+ name: 'X-API-Key',
7428
+ type: 'apiKey'
7429
+ }],
7430
+ url: '/ticket/v1/milestones/{number}',
7431
+ ...options
7432
+ });
7433
+ /**
7434
+ * Update milestones
7435
+ *
7436
+ * Update milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.
7437
+ */
7438
+ export const ticketPatchMilestonesNumber = (options) => (options.client ?? client).patch({
7439
+ security: [{
7440
+ key: 'BearerAuth',
7441
+ scheme: 'bearer',
7442
+ type: 'http'
7443
+ }, {
7444
+ key: 'ApiKeyAuth',
7445
+ name: 'X-API-Key',
7446
+ type: 'apiKey'
7447
+ }],
7448
+ url: '/ticket/v1/milestones/{number}',
7449
+ ...options,
7450
+ headers: {
7451
+ 'Content-Type': 'application/json',
7452
+ ...options.headers
7453
+ }
7454
+ });
7455
+ /**
7456
+ * List sub tickets
7457
+ *
7458
+ * List sub tickets within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Pass next_page_token as page_token to continue with the same filter. Service authorization applies to the verified human subject.
7459
+ */
7460
+ export const ticketGetTicketsNumberSubTickets = (options) => (options.client ?? client).get({
7461
+ security: [{
7462
+ key: 'BearerAuth',
7463
+ scheme: 'bearer',
7464
+ type: 'http'
7465
+ }, {
7466
+ key: 'ApiKeyAuth',
7467
+ name: 'X-API-Key',
7468
+ type: 'apiKey'
7469
+ }],
7470
+ url: '/ticket/v1/tickets/{number}/sub_tickets',
7471
+ ...options
7472
+ });
7473
+ /**
7474
+ * Create or add sub tickets
7475
+ *
7476
+ * Create or add sub tickets within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7477
+ */
7478
+ export const ticketPostTicketsNumberSubTickets = (options) => (options.client ?? client).post({
7479
+ security: [{
7480
+ key: 'BearerAuth',
7481
+ scheme: 'bearer',
7482
+ type: 'http'
7483
+ }, {
7484
+ key: 'ApiKeyAuth',
7485
+ name: 'X-API-Key',
7486
+ type: 'apiKey'
7487
+ }],
7488
+ url: '/ticket/v1/tickets/{number}/sub_tickets',
7489
+ ...options,
7490
+ headers: {
7491
+ 'Content-Type': 'application/json',
7492
+ ...options.headers
7493
+ }
7494
+ });
7495
+ /**
7496
+ * Remove sub tickets
7497
+ *
7498
+ * Remove sub tickets within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7499
+ */
7500
+ export const ticketDeleteTicketsNumberSubTicketsChild = (options) => (options.client ?? client).delete({
7501
+ security: [{
7502
+ key: 'BearerAuth',
7503
+ scheme: 'bearer',
7504
+ type: 'http'
7505
+ }, {
7506
+ key: 'ApiKeyAuth',
7507
+ name: 'X-API-Key',
7508
+ type: 'apiKey'
7509
+ }],
7510
+ url: '/ticket/v1/tickets/{number}/sub_tickets/{child}',
7511
+ ...options
7512
+ });
7513
+ /**
7514
+ * List blocked by
7515
+ *
7516
+ * List blocked by within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Pass next_page_token as page_token to continue with the same filter. Service authorization applies to the verified human subject.
7517
+ */
7518
+ export const ticketGetTicketsNumberDependenciesBlockedBy = (options) => (options.client ?? client).get({
7519
+ security: [{
7520
+ key: 'BearerAuth',
7521
+ scheme: 'bearer',
7522
+ type: 'http'
7523
+ }, {
7524
+ key: 'ApiKeyAuth',
7525
+ name: 'X-API-Key',
7526
+ type: 'apiKey'
7527
+ }],
7528
+ url: '/ticket/v1/tickets/{number}/dependencies/blocked_by',
7529
+ ...options
7530
+ });
7531
+ /**
7532
+ * Create or add blocked by
7533
+ *
7534
+ * Create or add blocked by within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7535
+ */
7536
+ export const ticketPostTicketsNumberDependenciesBlockedBy = (options) => (options.client ?? client).post({
7537
+ security: [{
7538
+ key: 'BearerAuth',
7539
+ scheme: 'bearer',
7540
+ type: 'http'
7541
+ }, {
7542
+ key: 'ApiKeyAuth',
7543
+ name: 'X-API-Key',
7544
+ type: 'apiKey'
7545
+ }],
7546
+ url: '/ticket/v1/tickets/{number}/dependencies/blocked_by',
7547
+ ...options,
7548
+ headers: {
7549
+ 'Content-Type': 'application/json',
7550
+ ...options.headers
7551
+ }
7552
+ });
7553
+ /**
7554
+ * Remove blocked by
7555
+ *
7556
+ * Remove blocked by within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7557
+ */
7558
+ export const ticketDeleteTicketsNumberDependenciesBlockedByN = (options) => (options.client ?? client).delete({
7559
+ security: [{
7560
+ key: 'BearerAuth',
7561
+ scheme: 'bearer',
7562
+ type: 'http'
7563
+ }, {
7564
+ key: 'ApiKeyAuth',
7565
+ name: 'X-API-Key',
7566
+ type: 'apiKey'
7567
+ }],
7568
+ url: '/ticket/v1/tickets/{number}/dependencies/blocked_by/{n}',
7569
+ ...options
7570
+ });
7571
+ /**
7572
+ * List relations
7573
+ *
7574
+ * List relations within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Pass next_page_token as page_token to continue with the same filter. Service authorization applies to the verified human subject.
7575
+ */
7576
+ export const ticketGetTicketsNumberRelations = (options) => (options.client ?? client).get({
7577
+ security: [{
7578
+ key: 'BearerAuth',
7579
+ scheme: 'bearer',
7580
+ type: 'http'
7581
+ }, {
7582
+ key: 'ApiKeyAuth',
7583
+ name: 'X-API-Key',
7584
+ type: 'apiKey'
7585
+ }],
7586
+ url: '/ticket/v1/tickets/{number}/relations',
7587
+ ...options
7588
+ });
7589
+ /**
7590
+ * Create or add relations
7591
+ *
7592
+ * Create or add relations within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7593
+ */
7594
+ export const ticketPostTicketsNumberRelations = (options) => (options.client ?? client).post({
7595
+ security: [{
7596
+ key: 'BearerAuth',
7597
+ scheme: 'bearer',
7598
+ type: 'http'
7599
+ }, {
7600
+ key: 'ApiKeyAuth',
7601
+ name: 'X-API-Key',
7602
+ type: 'apiKey'
7603
+ }],
7604
+ url: '/ticket/v1/tickets/{number}/relations',
7605
+ ...options,
7606
+ headers: {
7607
+ 'Content-Type': 'application/json',
7608
+ ...options.headers
7609
+ }
7610
+ });
7611
+ /**
7612
+ * Remove relations
7613
+ *
7614
+ * Remove relations within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7615
+ */
7616
+ export const ticketDeleteTicketsNumberRelationsN = (options) => (options.client ?? client).delete({
7617
+ security: [{
7618
+ key: 'BearerAuth',
7619
+ scheme: 'bearer',
7620
+ type: 'http'
7621
+ }, {
7622
+ key: 'ApiKeyAuth',
7623
+ name: 'X-API-Key',
7624
+ type: 'apiKey'
7625
+ }],
7626
+ url: '/ticket/v1/tickets/{number}/relations/{n}',
7627
+ ...options
7628
+ });
7629
+ /**
7630
+ * List blocking
7631
+ *
7632
+ * List blocking within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Pass next_page_token as page_token to continue with the same filter. Service authorization applies to the verified human subject.
7633
+ */
7634
+ export const ticketGetTicketsNumberDependenciesBlocking = (options) => (options.client ?? client).get({
7635
+ security: [{
7636
+ key: 'BearerAuth',
7637
+ scheme: 'bearer',
7638
+ type: 'http'
7639
+ }, {
7640
+ key: 'ApiKeyAuth',
7641
+ name: 'X-API-Key',
7642
+ type: 'apiKey'
7643
+ }],
7644
+ url: '/ticket/v1/tickets/{number}/dependencies/blocking',
7645
+ ...options
7646
+ });
7647
+ /**
7648
+ * List events
7649
+ *
7650
+ * List events within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Pass next_page_token as page_token to continue with the same filter. Service authorization applies to the verified human subject.
7651
+ */
7652
+ export const ticketGetTicketsNumberEvents = (options) => (options.client ?? client).get({
7653
+ security: [{
7654
+ key: 'BearerAuth',
7655
+ scheme: 'bearer',
7656
+ type: 'http'
7657
+ }, {
7658
+ key: 'ApiKeyAuth',
7659
+ name: 'X-API-Key',
7660
+ type: 'apiKey'
7661
+ }],
7662
+ url: '/ticket/v1/tickets/{number}/events',
7663
+ ...options
7664
+ });
7665
+ /**
7666
+ * List reactions
7667
+ *
7668
+ * List reactions within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Pass next_page_token as page_token to continue with the same filter. Service authorization applies to the verified human subject.
7669
+ */
7670
+ export const ticketGetTicketsNumberReactions = (options) => (options.client ?? client).get({
7671
+ security: [{
7672
+ key: 'BearerAuth',
7673
+ scheme: 'bearer',
7674
+ type: 'http'
7675
+ }, {
7676
+ key: 'ApiKeyAuth',
7677
+ name: 'X-API-Key',
7678
+ type: 'apiKey'
7679
+ }],
7680
+ url: '/ticket/v1/tickets/{number}/reactions',
7681
+ ...options
7682
+ });
7683
+ /**
7684
+ * Create or add reactions
7685
+ *
7686
+ * Create or add reactions within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7687
+ */
7688
+ export const ticketPostTicketsNumberReactions = (options) => (options.client ?? client).post({
7689
+ security: [{
7690
+ key: 'BearerAuth',
7691
+ scheme: 'bearer',
7692
+ type: 'http'
7693
+ }, {
7694
+ key: 'ApiKeyAuth',
7695
+ name: 'X-API-Key',
7696
+ type: 'apiKey'
7697
+ }],
7698
+ url: '/ticket/v1/tickets/{number}/reactions',
7699
+ ...options,
7700
+ headers: {
7701
+ 'Content-Type': 'application/json',
7702
+ ...options.headers
7703
+ }
7704
+ });
7705
+ /**
7706
+ * Remove reactions
7707
+ *
7708
+ * Remove reactions within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7709
+ */
7710
+ export const ticketDeleteTicketsNumberReactionsContent = (options) => (options.client ?? client).delete({
7711
+ security: [{
7712
+ key: 'BearerAuth',
7713
+ scheme: 'bearer',
7714
+ type: 'http'
7715
+ }, {
7716
+ key: 'ApiKeyAuth',
7717
+ name: 'X-API-Key',
7718
+ type: 'apiKey'
7719
+ }],
7720
+ url: '/ticket/v1/tickets/{number}/reactions/{content}',
7721
+ ...options
7722
+ });
7723
+ /**
7724
+ * List reactions
7725
+ *
7726
+ * List reactions within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Pass next_page_token as page_token to continue with the same filter. Service authorization applies to the verified human subject.
7727
+ */
7728
+ export const ticketGetCommentsIdReactions = (options) => (options.client ?? client).get({
7729
+ security: [{
7730
+ key: 'BearerAuth',
7731
+ scheme: 'bearer',
7732
+ type: 'http'
7733
+ }, {
7734
+ key: 'ApiKeyAuth',
7735
+ name: 'X-API-Key',
7736
+ type: 'apiKey'
7737
+ }],
7738
+ url: '/ticket/v1/comments/{id}/reactions',
7739
+ ...options
7740
+ });
7741
+ /**
7742
+ * Create or add reactions
7743
+ *
7744
+ * Create or add reactions within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7745
+ */
7746
+ export const ticketPostCommentsIdReactions = (options) => (options.client ?? client).post({
7747
+ security: [{
7748
+ key: 'BearerAuth',
7749
+ scheme: 'bearer',
7750
+ type: 'http'
7751
+ }, {
7752
+ key: 'ApiKeyAuth',
7753
+ name: 'X-API-Key',
7754
+ type: 'apiKey'
7755
+ }],
7756
+ url: '/ticket/v1/comments/{id}/reactions',
7757
+ ...options,
7758
+ headers: {
7759
+ 'Content-Type': 'application/json',
7760
+ ...options.headers
7761
+ }
7762
+ });
7763
+ /**
7764
+ * Remove reactions
7765
+ *
7766
+ * Remove reactions within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
7767
+ */
7768
+ export const ticketDeleteCommentsIdReactionsContent = (options) => (options.client ?? client).delete({
7769
+ security: [{
7770
+ key: 'BearerAuth',
7771
+ scheme: 'bearer',
7772
+ type: 'http'
7773
+ }, {
7774
+ key: 'ApiKeyAuth',
7775
+ name: 'X-API-Key',
7776
+ type: 'apiKey'
7777
+ }],
7778
+ url: '/ticket/v1/comments/{id}/reactions/{content}',
7779
+ ...options
7780
+ });
7781
+ /**
7782
+ * List activity
7783
+ *
7784
+ * List activity within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Pass next_page_token as page_token to continue with the same filter. Service authorization applies to the verified human subject.
7785
+ */
7786
+ export const ticketGetActivity = (options) => (options?.client ?? client).get({
7787
+ security: [{
7788
+ key: 'BearerAuth',
7789
+ scheme: 'bearer',
7790
+ type: 'http'
7791
+ }, {
7792
+ key: 'ApiKeyAuth',
7793
+ name: 'X-API-Key',
7794
+ type: 'apiKey'
7795
+ }],
7796
+ url: '/ticket/v1/activity',
7797
+ ...options
7798
+ });
7799
+ /**
7800
+ * List repositories
7801
+ *
7802
+ * List repositories within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Pass next_page_token as page_token to continue with the same filter. Service authorization applies to the verified human subject.
7803
+ */
7804
+ export const ticketGetRepositories = (options) => (options?.client ?? client).get({
7805
+ security: [{
7806
+ key: 'BearerAuth',
7807
+ scheme: 'bearer',
7808
+ type: 'http'
7809
+ }, {
7810
+ key: 'ApiKeyAuth',
7811
+ name: 'X-API-Key',
7812
+ type: 'apiKey'
7813
+ }],
7814
+ url: '/ticket/v1/repositories',
7815
+ ...options
7816
+ });